xiaoju
e95e76c145
feat: workflowAsAgent factory
...
- workflowAsAgent(name) resolves via registry → bundle → child thread
- System-level depth limit (max 3, constant)
- Returns summary string, errors as string (no throw)
- Integration test with nested workflow execution
- 146 tests passing
Fixes #33
2026-05-07 10:52:26 +00:00
xiaoju
30e4e99908
feat: add refs tracking to RoleStep
...
- RoleOutput gains refs: string[] for CAS reference tracking
- RoleDefinition gains extractRefs: ((meta) => string[]) | null
- planner: phases.map(p => p.hash), coder: [completedPhase]
- Engine persists refs, fork preserves refs
- Backward compat: missing refs normalized to []
- 137 tests passing
Fixes #31
2026-05-07 10:44:25 +00:00
xiaoju
2482fb7e62
chore: remove all dryRun infrastructure
...
dryRun no longer needed — tests use mock agents + mock fetch instead.
Removes isDryRun from WorkflowFnOptions, dryRun from ExtractConfig,
dryRunMeta from RoleDefinition, --dry-run from CLI, and all related
plumbing in engine/worker/fork/extract.
小橘 <xiaoju@shazhou.work >
2026-05-06 14:25:44 +00:00
xiaoju
dfbba0f58c
feat: Phase 4 — fork threads + bun publish verified
...
- fork-thread.ts: parse .data.jsonl, trim steps by role
- cmd-fork.ts: --from-role <role> or retry last step
- engine: forkFrom lineage tracking, prefilled step replay
- worker: accept steps in run IPC command
- bun publish --dry-run: both packages pass
- 53 tests pass, biome clean
Closes #5
小橘 <xiaoju@shazhou.work >
2026-05-06 05:45:01 +00:00