Files
orca/src/shared/agent-node-package-entrypoints.ts
T
NeilandWooseong Kim af13da5db7 Recognize Build terminals and preserve Windows confirmation key routing
Recognize dsb terminal identity and preserve foreground Windows confirmation key routing.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>
2026-10-03 20:23:33 -07:00

21 lines
1.3 KiB
TypeScript

// Node CLIs whose shim launches a script named after the agent, but generic enough that
// the basename alone is not identity (`dsh-tui.js` could be anyone's file). The package
// directory in the resolved path is what makes the match authoritative.
//
// Split out of agent-process-recognition.ts so the recognizer keeps only its logic and a
// new agent's install path is a data edit, as in agent-node-entrypoint-identities.ts.
export const NODE_PACKAGE_SCRIPT_ENTRYPOINTS: Record<string, readonly string[]> = {
codex: ['node_modules/@openai/codex/'],
codebuddy: ['node_modules/@tencent-ai/codebuddy-code/'],
gemini: ['node_modules/@google/gemini-cli/'],
// Why: ZCode's npm bin is `dist/zcode.cjs`, so a package install runs as `node …zcode.cjs`
// and never shows `zcode` as the foreground name (a SEA build still matches by name).
zcode: ['node_modules/@zcode/cli/'],
// Why: the `dsh-tui` launcher is installed twice — once on PATH and once inside the
// profile it bootstraps — and the PATH copy re-execs the profile copy by absolute path.
'dsh-tui': ['node_modules/@deepseek-harness-tui/dsh-tui/'],
// Why: the dsb npm shim executes a Node script under its own package.
dsb: ['node_modules/@innocarpe/deepseek-build/'],
'deepseek-build': ['node_modules/@innocarpe/deepseek-build/']
}