mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 16:59:43 +02:00
docs: update CLAUDE.md with test ports and missing API routes
Add vitest port range note (3101-3108), shell mode PTY example, and 5 missing API endpoints (respawn/enable, inner-config, inner-state, auto-compact, auto-clear). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,7 +67,7 @@ src/
|
|||||||
└── templates/
|
└── templates/
|
||||||
└── claude-md.ts # CLAUDE.md generator for new cases
|
└── claude-md.ts # CLAUDE.md generator for new cases
|
||||||
|
|
||||||
test/
|
test/ # All tests use vitest, ports 3101-3108
|
||||||
├── session.test.ts # Core session creation, lifecycle, PTY behavior
|
├── session.test.ts # Core session creation, lifecycle, PTY behavior
|
||||||
├── pty-interactive.test.ts # Interactive mode, terminal input/output
|
├── pty-interactive.test.ts # Interactive mode, terminal input/output
|
||||||
├── respawn-controller.test.ts # Respawn state machine, idle detection
|
├── respawn-controller.test.ts # Respawn state machine, idle detection
|
||||||
@@ -140,6 +140,9 @@ pty.spawn('claude', ['-p', '--dangerously-skip-permissions', '--output-format',
|
|||||||
|
|
||||||
// Interactive mode (tokens parsed from status line)
|
// Interactive mode (tokens parsed from status line)
|
||||||
pty.spawn('claude', ['--dangerously-skip-permissions'], { ... })
|
pty.spawn('claude', ['--dangerously-skip-permissions'], { ... })
|
||||||
|
|
||||||
|
// Shell mode (debugging/testing - no Claude CLI)
|
||||||
|
pty.spawn('bash', [], { ... })
|
||||||
```
|
```
|
||||||
|
|
||||||
### Screen Input for Ink/Claude CLI
|
### Screen Input for Ink/Claude CLI
|
||||||
@@ -256,6 +259,11 @@ npx agent-browser open http://localhost:3000 && npx agent-browser snapshot
|
|||||||
| POST | `/api/sessions/:id/interactive` | Start interactive mode |
|
| POST | `/api/sessions/:id/interactive` | Start interactive mode |
|
||||||
| POST | `/api/sessions/:id/respawn/start` | Start respawn controller |
|
| POST | `/api/sessions/:id/respawn/start` | Start respawn controller |
|
||||||
| POST | `/api/sessions/:id/respawn/stop` | Stop respawn controller |
|
| POST | `/api/sessions/:id/respawn/stop` | Stop respawn controller |
|
||||||
|
| POST | `/api/sessions/:id/respawn/enable` | Enable respawn with config + optional timer |
|
||||||
|
| POST | `/api/sessions/:id/inner-config` | Configure Ralph Wiggum loop settings |
|
||||||
|
| GET | `/api/sessions/:id/inner-state` | Get Ralph loop state + todos |
|
||||||
|
| POST | `/api/sessions/:id/auto-compact` | Configure auto-compact threshold |
|
||||||
|
| POST | `/api/sessions/:id/auto-clear` | Configure auto-clear threshold |
|
||||||
| POST | `/api/quick-start` | Create case + start interactive session |
|
| POST | `/api/quick-start` | Create case + start interactive session |
|
||||||
| GET | `/api/cases` | List available cases |
|
| GET | `/api/cases` | List available cases |
|
||||||
| POST | `/api/cases` | Create new case |
|
| POST | `/api/cases` | Create new case |
|
||||||
|
|||||||
Reference in New Issue
Block a user