|
|
@@ -1,7 +1,7 @@
|
|
|
#!/usr/bin/env node
|
|
|
/** Snapshot-only Loader driver: stream one fixture turn as canonical JSONL. */
|
|
|
|
|
|
-import type { Context } from '@deepseek-ai/cordis'
|
|
|
+import type { Context, FiberState } from '@deepseek-ai/cordis'
|
|
|
import { installFailLoud, loadEnv, resolveConfigPath } from '@deepseek-ai/dsh-app-boot'
|
|
|
import { runFixtureTurn } from '@deepseek-ai/dsh-loader-smoke'
|
|
|
import type { SessionEvent } from '@deepseek-ai/dsh-session'
|
|
|
@@ -9,7 +9,7 @@ import { bootProductionProfile } from './production-profile.ts'
|
|
|
|
|
|
const NAME = 'headless-test-driver'
|
|
|
const REQUIRED_ENTRY_ENV = 'DSH_LOADER_SMOKE_REQUIRED_ENTRY_ID'
|
|
|
-const FIBER_ACTIVE = 2
|
|
|
+const FIBER_ACTIVE = 2 as FiberState.ACTIVE
|
|
|
const [configPath, ...taskParts] = process.argv.slice(2)
|
|
|
if (configPath === undefined || taskParts.length === 0 || taskParts.every(part => part.trim() === '')) {
|
|
|
throw new Error(`${NAME}: expected <config-path> <task...>`)
|