$DSH_HOME/.env had just become an ordinary environment layer, which left the harness resolving user-facing values from a flattened process.env that could no longer say where a value came from. A key stored through the web page stayed shadowed by an older key in the user's own .env. An endpoint could be redirected by the project: the invoking directory's .env is materialized like every other layer, and a base URL decides where a resolved API key is sent, so a DEEPSEEK_BASE_URL written into a model-editable workspace would send the user's credential — and the prompts carrying their code — to whatever host that file named. Give every user-facing value one ordering, with four kinds of source: explicit for this run per-operation override, CLI argument > authored by deployment --config / --config-replace > this launch's shell inherited process environment > product-managed store settings.yaml, .credentials.yaml > discovered file $DSH_HOME/.env > defaults schema default, shipped base, public default The domains differ only in which tiers exist. The earlier split — credentials ranking the environment over the managed file while settings ranked over the environment — was inconsistent: the distinguishing fact is who authored the source, not the domain. packages/util/environment owns an immutable snapshot with per-layer provenance. getFrom(name, sources) searches only the layers a caller names, and omitting one is a refusal rather than a demotion: the adapters ask for ['process', 'user-env'], so no reordering can let a project file back into a decision it was excluded from. isBootstrapOnly rejects, before anything is materialized, any .env setting a variable that governs how a process launches (PATH, SHELL, NODE_OPTIONS, LD_PRELOAD), where code or model-visible instructions load from (the whole DSH_* namespace, HOME, XDG_*), or how the network is reached (proxy and CA variables). The namespace is denied wholesale so a switch added later cannot become settable by being forgotten, and there is no opt-out. verify-config-source-ownership keeps both rules: no unregistered process.env read under packages/*/*/src (26 allowlisted with reasons), and no apiKey, baseURL, or headers inlined from the environment in shipped Cordis config — removing those inlines is what makes the deployment tier meaningful.
151 lines
6.9 KiB
JSON
151 lines
6.9 KiB
JSON
{
|
|
"name": "@deepseek-ai/dsh",
|
|
"description": "dsh CLI: interactive TUI, headless task, and browser UI surfaces",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"bin": {
|
|
"dsh": "lib/bin.js"
|
|
},
|
|
"files": [
|
|
"lib/bin.js",
|
|
"assets",
|
|
"config",
|
|
"src"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"dependencies": {
|
|
"@cordisjs/plugin-hmr": "workspace:*",
|
|
"@cordisjs/plugin-include": "workspace:*",
|
|
"@cordisjs/plugin-loader": "workspace:*",
|
|
"@cordisjs/plugin-timer": "workspace:*",
|
|
"@deepseek-ai/dsh-agent": "workspace:^",
|
|
"@deepseek-ai/dsh-agent-loop": "workspace:^",
|
|
"@deepseek-ai/dsh-app-boot": "workspace:^",
|
|
"@deepseek-ai/dsh-bash-local": "workspace:^",
|
|
"@deepseek-ai/dsh-bash-sandbox": "workspace:^",
|
|
"@deepseek-ai/dsh-client-connection": "workspace:^",
|
|
"@deepseek-ai/dsh-client-hmr": "workspace:^",
|
|
"@deepseek-ai/dsh-client-locale": "workspace:^",
|
|
"@deepseek-ai/dsh-client-modules": "workspace:^",
|
|
"@deepseek-ai/dsh-client-runtime": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-command": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-conversation": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-goal": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-layout": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-model": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-models": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-permission": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-plan": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-question": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-settings": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-settings-general": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-sidebar": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-skill": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-slash": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-subagent": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-theme": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-trajectory": "workspace:^",
|
|
"@deepseek-ai/dsh-client-ui-workspace": "workspace:^",
|
|
"@deepseek-ai/dsh-code-runtime-worker": "workspace:^",
|
|
"@deepseek-ai/dsh-command-compact": "workspace:^",
|
|
"@deepseek-ai/dsh-command-goal": "workspace:^",
|
|
"@deepseek-ai/dsh-commands": "workspace:^",
|
|
"@deepseek-ai/dsh-compact-basic": "workspace:^",
|
|
"@deepseek-ai/dsh-compact-tool-result-prune": "workspace:^",
|
|
"@deepseek-ai/dsh-credentials-local": "workspace:^",
|
|
"@deepseek-ai/dsh-environment": "workspace:^",
|
|
"@deepseek-ai/dsh-frontend": "workspace:^",
|
|
"@deepseek-ai/dsh-fs-local": "workspace:^",
|
|
"@deepseek-ai/dsh-fs-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-fs-sandbox": "workspace:^",
|
|
"@deepseek-ai/dsh-goal": "workspace:^",
|
|
"@deepseek-ai/dsh-goal-session": "workspace:^",
|
|
"@deepseek-ai/dsh-host-apiproxy": "workspace:^",
|
|
"@deepseek-ai/dsh-host-directory-picker-auto": "workspace:^",
|
|
"@deepseek-ai/dsh-host-directory-picker-browse": "workspace:^",
|
|
"@deepseek-ai/dsh-host-directory-picker-native": "workspace:^",
|
|
"@deepseek-ai/dsh-host-webserver": "workspace:^",
|
|
"@deepseek-ai/dsh-invariants": "workspace:^",
|
|
"@deepseek-ai/dsh-llm": "workspace:^",
|
|
"@deepseek-ai/dsh-llm-deepseek": "workspace:^",
|
|
"@deepseek-ai/dsh-llm-pi-ai": "workspace:^",
|
|
"@deepseek-ai/dsh-llm-retry": "workspace:^",
|
|
"@deepseek-ai/dsh-mcp-client": "workspace:^",
|
|
"@deepseek-ai/dsh-paths": "workspace:^",
|
|
"@deepseek-ai/dsh-permission": "workspace:^",
|
|
"@deepseek-ai/dsh-plan-mode": "workspace:^",
|
|
"@deepseek-ai/dsh-pty": "workspace:^",
|
|
"@deepseek-ai/dsh-pty-local": "workspace:^",
|
|
"@deepseek-ai/dsh-repeat-tool-guard": "workspace:^",
|
|
"@deepseek-ai/dsh-repository-plugin": "workspace:^",
|
|
"@deepseek-ai/dsh-sandbox-local": "workspace:^",
|
|
"@deepseek-ai/dsh-sandbox-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-scope": "workspace:^",
|
|
"@deepseek-ai/dsh-session": "workspace:^",
|
|
"@deepseek-ai/dsh-session-checkpoint-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-session-persistence-jsonl": "workspace:^",
|
|
"@deepseek-ai/dsh-session-projection": "workspace:^",
|
|
"@deepseek-ai/dsh-session-projection-cache": "workspace:^",
|
|
"@deepseek-ai/dsh-session-query": "workspace:^",
|
|
"@deepseek-ai/dsh-session-query-sqlite": "workspace:^",
|
|
"@deepseek-ai/dsh-session-reference": "workspace:^",
|
|
"@deepseek-ai/dsh-session-telemetry-otel": "workspace:^",
|
|
"@deepseek-ai/dsh-session-title": "workspace:^",
|
|
"@deepseek-ai/dsh-session-title-first-message-llm": "workspace:^",
|
|
"@deepseek-ai/dsh-settings-local": "workspace:^",
|
|
"@deepseek-ai/dsh-skill": "workspace:^",
|
|
"@deepseek-ai/dsh-skill-local": "workspace:^",
|
|
"@deepseek-ai/dsh-spill-local": "workspace:^",
|
|
"@deepseek-ai/dsh-spill-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-storage": "workspace:^",
|
|
"@deepseek-ai/dsh-storage-domain": "workspace:^",
|
|
"@deepseek-ai/dsh-storage-json": "workspace:^",
|
|
"@deepseek-ai/dsh-subagent": "workspace:^",
|
|
"@deepseek-ai/dsh-subagent-fork": "workspace:^",
|
|
"@deepseek-ai/dsh-subagent-spawn": "workspace:^",
|
|
"@deepseek-ai/dsh-subprocess-local": "workspace:^",
|
|
"@deepseek-ai/dsh-system-prompt": "workspace:^",
|
|
"@deepseek-ai/dsh-tasks-local": "workspace:^",
|
|
"@deepseek-ai/dsh-timeout-policy": "workspace:^",
|
|
"@deepseek-ai/dsh-tmux-context": "workspace:^",
|
|
"@deepseek-ai/dsh-token-meter": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-ask-user": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-bash": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-bash-persistent": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-cordis": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-fs": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-fs-search": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-goal": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-ralph": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-skill": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-str-replace-editor": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-subagent": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-subagent-control": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-subagent-report": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-tasks": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-todo": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-web": "workspace:^",
|
|
"@deepseek-ai/dsh-tool-workflow": "workspace:^",
|
|
"@deepseek-ai/dsh-tools": "workspace:^",
|
|
"@deepseek-ai/dsh-tui": "workspace:^",
|
|
"@deepseek-ai/dsh-user-approval": "workspace:^",
|
|
"@deepseek-ai/dsh-user-interaction": "workspace:^",
|
|
"@deepseek-ai/dsh-web": "workspace:^",
|
|
"@deepseek-ai/dsh-web-search-deepseek": "workspace:^",
|
|
"@deepseek-ai/dsh-workflow-workerthread": "workspace:^",
|
|
"@deepseek-ai/dsh-workspace": "workspace:^",
|
|
"@deepseek-ai/dsh-workspace-context": "workspace:^",
|
|
"@earendil-works/pi-tui": "0.80.7",
|
|
"commander": "^15.0.0",
|
|
"cordis": "^4.0.0-rc.7",
|
|
"js-yaml": "^4.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@deepseek-ai/dsh-llm-mock-server": "workspace:^",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"execa": "^10.0.0",
|
|
"node-pty": "1.1.0"
|
|
}
|
|
}
|