xiaoju
c04e7c31af
refactor: move llmExtract, extractMeta, buildDescriptor, types to workflow-util-role
...
workflow-role-llm now only contains LLM-as-agent specifics:
- createRole (wires agent + extract)
- createLlmAdapter (OpenAI chat completions agent)
workflow-util-role now provides all role infrastructure:
- decorators (decorateRole, withDryRun, onFail)
- llmExtract / extractMetaOrThrow (structured extraction)
- buildDescriptorFromRoles (zod → JSON Schema)
- LlmProvider, LlmMessage types
2026-05-06 08:13:27 +00:00
xiaoju
6e62c7458d
refactor: remove schemaDefaults, use caller-provided dryRunMeta
...
Cursor completed removal of schemaDefaults. All dry-run paths now
use explicit dryRunMeta from the caller.
2026-05-06 08:10:40 +00:00
xiaoju
82d3478895
refactor: extract @uncaged/workflow-util-role from role-llm ( #15 )
...
Move pure role utilities (decorateRole, withDryRun, onFail, schemaDefaults)
into @uncaged/workflow-util-role. extractMetaOrThrow stays in role-llm
since it depends on LLM capabilities.
Dependency graph (no cycles):
util-role → workflow
role-llm → workflow, util-role
committer → workflow, util-role, role-llm
Closes #15
2026-05-06 07:27:11 +00:00
xiaoju
f21014fcdd
feat: @uncaged/workflow-agent-cursor + @uncaged/workflow-agent-hermes
...
- Cursor adapter: spawn cursor-agent CLI, auto/specified model
- Hermes adapter: spawn hermes chat CLI
- Both: AgentFn interface, no nerve-core deps, Result-based config validation
- 93 tests pass, biome clean
Closes #10 , Closes #11
小橘 <xiaoju@shazhou.work >
2026-05-06 06:54:24 +00:00
xiaoju
c2a8f2d81b
feat: @uncaged/workflow-role-llm — role factory + zod@4 schema
...
Migrated from nerve/workflow-utils:
- createRole with zod@4 schema → typed meta + JSON Schema
- createLlmAdapter — LLM provider abstraction
- llmExtract/llmExtractWithRetry — structured output extraction
- decorateRole/withDryRun/onFail — role decorators
- buildDescriptorFromRoles — auto-generate descriptor from zod schemas
- Zero nerve-core dependencies
- 83 tests pass, biome clean
Closes #9
小橘 <xiaoju@shazhou.work >
2026-05-06 06:50:19 +00:00