driver.ts 551 B

123456789101112131415
  1. #!/usr/bin/env node
  2. /** Test driver: one delegation turn through a headless Loader composition. */
  3. import { boot, resolveConfigPath } from '@deepseek-ai/dsh-app-boot'
  4. import { runFixtureTurn } from '@deepseek-ai/dsh-loader-smoke'
  5. const configPath = process.argv[2]
  6. if (configPath === undefined) throw new Error('sdk-subagent cwd driver requires a config path')
  7. const ctx = await boot('sdk-subagent-cwd-e2e', resolveConfigPath(configPath, undefined))
  8. try {
  9. await runFixtureTurn(ctx, { task: 'delegate' })
  10. } finally {
  11. await ctx.fiber.dispose()
  12. }