Files
Codeman/package.json
T
arkon 1b21e1b8d8 fix: server shutdown no longer kills tmux sessions — detach instead of cleanup
Previously, server.stop() called cleanupSession(killMux=false) for all sessions,
which still tore down session state, removed listeners, killed PTY processes via
node-pty SIGHUP, and broadcast session:deleted. This caused Claude sessions
running inside tmux to be disrupted during COM deploys.

Now server shutdown just persists state, removes listeners, and lets the Node.js
process exit naturally. The tmux sessions survive independently, and
restoreMuxSessions() finds them alive on restart.

Also adds defense-in-depth in session.stop(): when killMux=false, skip PTY kill
entirely (just null the reference). And adds 'detached' lifecycle event type for
accurate audit logging.
2026-02-19 22:15:36 +01:00

84 lines
2.8 KiB
JSON

{
"name": "claudeman",
"version": "0.1561",
"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",
"types": "dist/index.d.ts",
"bin": {
"claudeman": "./dist/index.js"
},
"scripts": {
"postinstall": "node scripts/postinstall.js",
"build": "tsc && chmod +x dist/index.js && mkdir -p dist/web dist/templates dist/web/public/vendor && cp -r src/web/public dist/web/ && cp src/templates/case-template.md dist/templates/ && cp node_modules/xterm/css/xterm.css dist/web/public/vendor/ && npx esbuild node_modules/xterm/lib/xterm.js --minify --outfile=dist/web/public/vendor/xterm.min.js && npx esbuild node_modules/xterm-addon-fit/lib/xterm-addon-fit.js --minify --outfile=dist/web/public/vendor/xterm-addon-fit.min.js && npx esbuild dist/web/public/app.js --minify --drop:console --outfile=dist/web/public/app.js --allow-overwrite && npx esbuild dist/web/public/styles.css --minify --outfile=dist/web/public/styles.css --allow-overwrite && npx esbuild dist/web/public/mobile.css --minify --outfile=dist/web/public/mobile.css --allow-overwrite",
"start": "node dist/index.js",
"dev": "tsx src/index.ts",
"web": "node dist/index.js web",
"clean": "rm -rf dist",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit",
"capture:subagents": "node scripts/capture-subagent-screenshots.mjs"
},
"keywords": [
"claude",
"claude-code",
"anthropic",
"ai-agent",
"automation",
"session-manager",
"terminal",
"cli",
"llm",
"autonomous-agent",
"ralph-loop"
],
"author": "arkon",
"license": "MIT",
"dependencies": {
"@fastify/compress": "^8.3.1",
"@fastify/static": "^8.0.0",
"chalk": "^5.3.0",
"chokidar": "^3.6.0",
"commander": "^12.1.0",
"fastify": "^5.1.0",
"node-pty": "^1.1.0",
"uuid": "^10.0.0",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^20.14.0",
"@types/pngjs": "^6.0.5",
"@types/uuid": "^10.0.0",
"@vitest/coverage-v8": "^4.0.18",
"agent-browser": "^0.6.0",
"esbuild": "^0.27.3",
"pixelmatch": "^6.0.0",
"playwright": "^1.58.0",
"pngjs": "^7.0.0",
"puppeteer": "^24.36.0",
"tsx": "^4.15.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"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"
]
}