time-context-driver.ts 585 B

12345678910111213141516
  1. #!/usr/bin/env node
  2. /** Test driver that sends two turns through one Headless Loader composition. */
  3. import { boot, resolveConfigPath } from '@deepseek-ai/dsh-app-boot'
  4. import { runOneShot } from '@deepseek-ai/dsh-cli-demo/src/cli.ts'
  5. const configPath = process.argv[2]
  6. if (configPath === undefined) throw new Error('time-context driver requires a config path')
  7. const ctx = await boot('time-context-e2e', resolveConfigPath(configPath, undefined))
  8. try {
  9. await runOneShot(ctx, { task: 'first' })
  10. await runOneShot(ctx, { task: 'second' })
  11. } finally {
  12. await ctx.fiber.dispose()
  13. }