- First param is now { prompt, steps } instead of bare prompt - steps: [] for new thread, pre-filled for fork/resume - createRoleModerator naturally handles resume via moderator routing - No special replay logic needed 小橘 <xiaoju@shazhou.work>
- 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>
Ported from nerve's workflow types. Covers ThreadContext, StartStep, RoleStep, Moderator (pure router), Role (async actor), AgentFn (LLM adapter), WorkflowDefinition, and execution flow. 小橘 <xiaoju@shazhou.work>
- @uncaged/workflow (core lib) + @uncaged/cli-workflow (CLI) - RFC-001: full design doc covering storage, threading, CLI 小橘 <xiaoju@shazhou.work>