test(workflow): register real-engine route

This commit is contained in:
Tianyi Cui
2026-07-20 13:01:07 +08:00
parent 60eea35df5
commit b2f08eac4f

View File

@@ -230,6 +230,12 @@ describe('dsh-tool-workflow', () => {
await ctx.plugin(SystemPrompt)
await ctx.plugin(ToolRegistry)
await ctx.plugin(SubagentService)
ctx.subagents.registerProvider({
name: 'spawn',
capabilities: { outputSchema: true, depthLimit: true, toolFilter: true, persona: true },
inheritsParentContext: false,
start: () => Promise.reject(new Error('the parked-script fixture must not start a child')),
})
await ctx.plugin(WorkerWorkflowEngine, { disposeGraceMs: 30 })
await ctx.plugin(toolWorkflow, {})
const parent = { id: SessionId('caller'), options: {} } as unknown as Agent