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.
15 lines
441 B
TypeScript
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,
|
|
}
|