Files
deepseek-harness/examples/jsonrpc-agent/tests/fixtures/subagent/subagent-dsh-sdk/driver.ts
T

16 lines
578 B
JavaScript

#!/usr/bin/env node
/** Test driver: one delegation turn through a headless Loader composition. */
import { boot, resolveConfigPath } from '@deepseek-ai/dsh-app-boot'
import { runFixtureTurn } from '../../../../../headless-agent/tests/fixtures/one-shot.ts'
const configPath = process.argv[2]
if (configPath === undefined) throw new Error('sdk-subagent cwd driver requires a config path')
const ctx = await boot('sdk-subagent-cwd-e2e', resolveConfigPath(configPath, undefined))
try {
await runFixtureTurn(ctx, { task: 'delegate' })
} finally {
await ctx.fiber.dispose()
}