driver.ts 737 B

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