feat(core): RFC-003 Phase 1 — agent config types + nerve.yaml schema

- Add AgentFn, WorkflowContext (workdir + AbortSignal), ExtractFn, ExtractError
- Add AgentConfig, ExtractConfig types to NerveConfig
- Extend parseNerveConfig: agents (kebab-case keys) + extract sections
- Export all new types from @nerve/core
- Add config parse tests (7 new tests)
- Update all existing test fixtures with agents/extract fields

Closes #235
Ref: #234
This commit is contained in:
2026-04-29 04:43:08 +00:00
parent 7a4e16381c
commit 36e5aed1b1
19 changed files with 339 additions and 0 deletions
@@ -200,6 +200,8 @@ function defaultTestConfig(withNoopWorkflow: boolean): NerveConfig {
...(withNoopWorkflow ? { noop: { concurrency: 1, overflow: "drop" as const } } : {}),
},
maxRounds: 10,
agents: {},
extract: null,
api: { port: null, token: null, host: "127.0.0.1" },
};
}