feat: Phase 2 — Thread lifecycle, execution engine, worker, CLI

- types.ts: START/END, RoleMeta, ThreadContext, Role, Moderator, WorkflowDefinition
- engine.ts: executeThread with JSONL persistence + AbortSignal
- worker.ts: per-bundle process, TCP IPC, kill individual threads
- CLI: run/ps/kill/threads/thread/thread rm commands
- 32 tests pass, biome clean

小橘 <xiaoju@shazhou.work>
This commit is contained in:
2026-05-06 04:59:54 +00:00
parent 01e930df8f
commit 7582a88d6b
46 changed files with 2829 additions and 167 deletions
+1 -4
View File
@@ -15,8 +15,5 @@
"composite": true,
"outDir": "dist"
},
"references": [
{ "path": "packages/workflow" },
{ "path": "packages/cli-workflow" }
]
"references": [{ "path": "packages/workflow" }, { "path": "packages/cli-workflow" }]
}