1119c537d0
Move the interactive pi-tui front door into @deepseek-ai/dsh-tui while keeping @deepseek-ai/dsh-stdio line-oriented for pipes. Select the terminal package in the demo app, preserve logger ownership, and cover the production Loader composition with a PTY smoke test.
20 lines
797 B
JavaScript
20 lines
797 B
JavaScript
#!/usr/bin/env node
|
|
/**
|
|
* Boot a stdio app from a leaf `cordis.yml`; usage is `dsh-stdio-demo [config]`, defaulting to the
|
|
* cwd file. Shared `.env` loading, fail-loud Loader guards, and settled-tree boot live in
|
|
* dsh-app-boot. The echo and coding-agent demos invoke this bin with their own leaf configs.
|
|
* @module @deepseek-ai/dsh-stdio-demo/bin
|
|
*/
|
|
|
|
import { boot, installFailLoud, loadEnv, resolveConfigPath } from '@deepseek-ai/dsh-app-boot'
|
|
|
|
const NAME = 'dsh-stdio-demo'
|
|
|
|
/* 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))
|
|
/* v8 ignore stop */
|