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:
@@ -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" },
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user