Files
Codeman/package.json
T
arkonandClaude Opus 4.5 eb98caa812 fix: use temp file for plan checker prompt to avoid E2BIG + fix cancel race condition
The ai-plan-checker.ts was passing the prompt directly as a shell argument,
which can cause E2BIG errors when the terminal buffer is large (8KB+).
This fix applies the same temp file approach already used in ai-idle-checker.ts:
- Write prompt to a temp file instead of passing as shell argument
- Pipe the file to claude via stdin: `cat prompt.txt | claude -p ...`
- Clean up prompt file after check completes

Also fixes a race condition in the cancel() method of both AI checkers where
the poll timer could fire between setting checkCancelled and clearing timers.
Now timers are cleared before resolving the promise to prevent this race.

Includes test utilities and analysis documents for the respawn controller
created by other agents:
- test/respawn-test-utils.ts - MockSession, MockAiIdleChecker utilities
- test/respawn-analysis.md - Code analysis and issue identification
- test/respawn-scenarios.md - Test scenario documentation
- test/respawn-test-plan.md - Testing architecture documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 07:52:40 +01:00

79 lines
2.0 KiB
JSON

{
"name": "claudeman",
"version": "0.1346",
"description": "The missing control plane for Claude Code - run 20 autonomous agents with real-time monitoring and session persistence",
"type": "module",
"main": "dist/index.js",
"bin": {
"claudeman": "./dist/index.js",
"claudeman-mcp": "./dist/mcp-server.js"
},
"scripts": {
"build": "tsc && chmod +x dist/index.js dist/mcp-server.js && mkdir -p dist/web dist/templates && cp -r src/web/public dist/web/ && cp src/templates/case-template.md dist/templates/",
"start": "node dist/index.js",
"dev": "tsx src/index.ts",
"web": "node dist/index.js web",
"tui": "tsx src/index.ts tui",
"clean": "rm -rf dist",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit"
},
"keywords": [
"claude",
"claude-code",
"anthropic",
"ai-agent",
"automation",
"session-manager",
"terminal",
"cli",
"llm",
"autonomous-agent",
"ralph-loop"
],
"author": "",
"license": "MIT",
"dependencies": {
"@fastify/static": "^8.0.0",
"@modelcontextprotocol/sdk": "^1.25.3",
"chalk": "^5.3.0",
"commander": "^12.1.0",
"fastify": "^5.1.0",
"ink": "^6.6.0",
"ink-spinner": "^5.0.0",
"ink-text-input": "^6.0.0",
"node-pty": "^1.1.0",
"react": "^19.2.3",
"uuid": "^10.0.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^20.14.0",
"@types/react": "^19.2.9",
"@types/uuid": "^10.0.0",
"@vitest/coverage-v8": "^4.0.17",
"agent-browser": "^0.6.0",
"tsx": "^4.15.0",
"typescript": "^5.5.0",
"vitest": "^4.0.17"
},
"engines": {
"node": ">=18.0.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Ark0N/claudeman.git"
},
"bugs": {
"url": "https://github.com/Ark0N/claudeman/issues"
},
"homepage": "https://github.com/Ark0N/claudeman#readme",
"files": [
"dist",
"LICENSE",
"README.md"
]
}