Files
deepseek-harness/packages/bundle/headless/src/startup-internals.ts
T
lsdsjy 6d05765405 refactor(headless): keep the startup process seam out of the public entry
Address the Code Entropy finding on f67d722243: the `./startup` entry exported
`internals` only so tests could substitute process facts, which added avoidable
package API. Move the seam to `src/startup-internals.ts`, which no package
export names, and have the provider and its tests import it from there.
2026-09-10 17:29:15 +08:00

15 lines
441 B
TypeScript

/**
* Process facts the startup provider reads, kept out of the `./startup` entry
* so substituting them in tests adds no public package API.
* @module @deepseek-ai/dsh-headless/startup-internals
*/
/** Process facts the provider reads; tests substitute them. */
export const internals: {
stdinIsTty: () => boolean
stdout: { write(chunk: string): unknown }
} = {
stdinIsTty: () => process.stdin.isTTY,
stdout: process.stdout,
}