Skip to content

Instantly share code, notes, and snippets.

load README.md and use git diff since commit 36e1817057ce472ec854f807ccdbd84f824b1754 for paths packages/ai-adapters/codex-mcp/* and packages/ai-adapters-core/src/* to understand my recent refactoring. Note that we currently have 3 agent adapters (including the Codex Agent) with one more to come - just keep in mind during analysis.

(CC does git diff and loads relevant files)

⏺ Refactoring Analysis

  Core Architectural Shift

  You've moved from simple queue-based message handling to a sophisticated state machine with multi-queue lifecycle management. The driver appears to be the new chat.inTurnMessages capability.
@chris-schra
chris-schra / next.config.js
Last active May 20, 2024 09:40
Custom bootstrap for next js server
let entryModified = false;
module.exports = {
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
if(dev && config.entry && !entryModified)
{
require('@babel/register')({
extensions: ['.js', '.jsx', '.ts', '.tsx']
})
@chris-schra
chris-schra / ingress.yaml
Last active January 26, 2021 22:56
Kuard Demo for Kuma
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kuard-ingress
namespace: kuard
spec:
rules:
- http:
paths:
- path: /
@chris-schra
chris-schra / README.md
Last active July 23, 2020 13:04 — forked from deviantony/README.md
Portainer HTTP API by example

Introduction

This document presents a simple way to manage your Docker resource by using Portainer as a gateway (HTTP queries against the Portainer API).

The API documentation is available here: https://app.swaggerhub.com/apis/deviantony/portainer/

WARNING: This documentation is valid for Portainer >= 1.18.0.

NOTE: I'm using httpie to execute HTTP queries from the CLI.