xiaoju
4a43a7f3dd
refactor: update all consumers to import from @uncaged/workflow
...
- workflow-utils, workflow-meta: import workflow types from @uncaged/workflow
- adapter-cursor, adapter-hermes: same
- cli: same
- core: remove workflow re-exports, no longer depends on @uncaged/workflow
Phase 5+6 of #320 , Testing: #323
2026-05-05 11:01:08 +00:00
xiaomo
975f15c66d
refactor(workflow-utils): RFC-005 Phase 2 — adapt to ThreadContext, new AgentFn signature ( closes #269 )
2026-04-30 06:59:15 +00:00
小橘 🍊(NEKO Team)
77500ee6dd
feat(daemon): pass dryRun into compileWorkflowSpec extractFn
...
Adds optional CursorAdapter.mode for ask/plan. Export zodMeta from workflow-utils for RoleSpec meta schemas.
Made-with: Cursor
2026-04-29 09:35:12 +00:00
小橘 🍊(NEKO Team)
3d02ea20ad
fix(core): consolidate spawn-safe into nerve-core
...
Move spawnSafe, nerveCommandEnv, and related types to @uncaged/nerve-core.
Update adapter-cursor, adapter-hermes, and workflow-utils to consume from core.
Refs #247
Made-with: Cursor
2026-04-29 09:14:28 +00:00
xiaoju
ede59ebcc2
feat(core): remove AgentRegistry, roles declare adapter directly
...
RoleSpec uses adapter: AgentFn; timeouts are configured via adapter factories.
nerve.yaml no longer accepts agents:; extract merge is global to role only.
Added cursorAdapter/hermesAdapter defaults; removed daemon registry and deps.
Signed-off-by: 小橘 🍊 (NEKO Team)
Made-with: Cursor
2026-04-29 08:40:37 +00:00
xiaoju
b7d9a37981
feat: RFC-003 adapter plugin architecture + dynamic prompts
...
AgentRegistry plugin model:
- createAgentRegistry(agents, adapterFactories) — second param for adapter map
- Echo adapter built-in, cursor/hermes via factory injection
- Unknown type throws with available adapter list
Dynamic prompts:
- RoleSpec.prompt: string | ((start, messages) => Promise<string>)
- compileWorkflowSpec handles both static and dynamic prompts
Adapter packages:
- @uncaged/nerve-adapter-cursor — cursor-agent CLI spawn
- @uncaged/nerve-adapter-hermes — hermes CLI subagent spawn
- Each with own spawn-safe (inline, avoids circular dep)
- Moved spawn logic from workflow-utils, kept role factories as thin wrappers
Kernel integration:
- defaultAgentAdapterFactories() registers cursor + hermes
- Hot-reload passes factories on rebuild
Ref: #234
2026-04-29 07:24:19 +00:00