Scott Wei
34f5e655d1
refactor(workflow): unify extraction behind ExtractFn
...
Route createExtract through reactExtract with plain-JSON correction retry.
Remove WorkflowFnOptions.llmProvider, ExtractMode, RoleDefinition.extractMode, ResolveRoleMetaFn.
Runtime createWorkflow calls options.extract directly; engine passes extract only.
Update templates, CLI skill docs, and tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-08 17:08:01 +08:00
xiaoju
e9e4960714
refactor(workflow): migrate downstream packages to workflow-runtime (Phase 2+3)
...
- Verify createWorkflow in runtime has zero I/O imports
- Migrate agent-cursor, agent-hermes to pure workflow-runtime dependency
- Migrate agent-llm, util-agent, templates to dual dependency
(runtime for types, engine for CAS/merkle/buildDescriptor)
- All 377 tests passing
Refs #121 , relates #123 #124
2026-05-08 06:33:52 +00:00
xiaoju
495c000356
refactor(workflow): split @uncaged/workflow-runtime from engine (Phase 1)
...
Create packages/workflow-runtime with the minimal runtime subset:
- Types (WorkflowFn, RoleOutput, AgentBinding, etc.)
- createWorkflow (pure orchestration, zero I/O)
- validateWorkflowDescriptor
- Result/ok/err, START/END constants
Zero external dependencies (zod as peer only).
Zero node:fs/node:path imports.
Engine (@uncaged/workflow) now depends on workflow-runtime and
provides CAS/merkle/extract implementations via injection.
Refs #121 , relates #122
2026-05-08 06:29:49 +00:00