2026-06-21 12:03:44 +08:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
/**
|
2026-07-15 15:57:57 +08:00
|
|
|
* Boot a stdio app from a leaf `cordis.yml`; usage is `dsh-stdio-demo [config]`, defaulting to the
|
2026-07-13 23:27:00 +08:00
|
|
|
* cwd file. Shared `.env` loading, fail-loud Loader guards, and settled-tree boot live in
|
|
|
|
|
* dsh-app-boot. The echo and REPL demos invoke this bin with their own leaf configs.
|
2026-07-15 15:57:57 +08:00
|
|
|
* @module @deepseek-ai/dsh-stdio-demo/bin
|
2026-06-21 12:03:44 +08:00
|
|
|
*/
|
|
|
|
|
|
2026-07-04 16:43:06 +08:00
|
|
|
import { boot, installFailLoud, loadEnv, resolveConfigPath } from '@deepseek-ai/dsh-app-boot'
|
2026-06-21 12:03:44 +08:00
|
|
|
|
2026-07-15 15:57:57 +08:00
|
|
|
const NAME = 'dsh-stdio-demo'
|
2026-06-21 12:03:44 +08:00
|
|
|
|
2026-07-04 16:43:06 +08:00
|
|
|
/* v8 ignore start -- thin self-executing composition over the unit-tested
|
|
|
|
|
dsh-app-boot helpers; exercised end-to-end by the keyless Loader-path and
|
|
|
|
|
built-bin smokes */
|
|
|
|
|
installFailLoud(NAME)
|
|
|
|
|
loadEnv(NAME)
|
|
|
|
|
await boot(NAME, resolveConfigPath(process.argv[2] ?? './cordis.yml', undefined))
|
2026-06-21 12:03:44 +08:00
|
|
|
/* v8 ignore stop */
|