mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-22 15:30:59 +01:00
A single-file Node script with only node: imports. It claims calls with the agent token, keeps each lease secret in a 0600 store keyed by lease id, fetches the bundle, prepares git (bare-clone cache, trees keyed by repo and commit), tarball and inline mounts without instruction files, writes the per-lease MCP config, and runs claude in bubblewrap with the same fixed paths and clean environment as the server's sandbox. Heartbeats carry the last progress line; a 410 stops the run. Session stores are kept for three hours so follow-up turns resume them. Commands: login, harness claude, claim, run [--detach], wait, work [--parallel N], doctor and a stdio-to-HTTP MCP proxy. The test checks stream-json parsing, instruction-file removal, the model swap and that the helper's copy of the wire format matches src/remote/protocol.ts.
17 lines
398 B
JSON
17 lines
398 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "es2024",
|
|
"module": "nodenext",
|
|
"moduleResolution": "nodenext",
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"allowImportingTsExtensions": true,
|
|
"erasableSyntaxOnly": true,
|
|
"verbatimModuleSyntax": true,
|
|
"skipLibCheck": true,
|
|
"types": ["node"],
|
|
"allowJs": true
|
|
},
|
|
"include": ["src", "test", "worker", "scripts/golive-gate.ts"]
|
|
}
|