@songtonyli/dsh-cli 0.1.41 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +16 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +6 -6
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +4 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +16 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ workspace and no build step. Native packages that ship one build per platform
|
|
|
26
26
|
ripgrep, the PTY backend's addons, sharp, koffi, and the Landlock launcher — are
|
|
27
27
|
ordinary optional dependencies, so npm resolves the right one for your machine.
|
|
28
28
|
|
|
29
|
-
Requires Node `^22.19.0 || >=24.0.0`. Version 0.1.
|
|
29
|
+
Requires Node `^22.19.0 || >=24.0.0`. Version 0.1.42; `dsh --version`
|
|
30
30
|
also reports the harness build the package was assembled from.
|
|
31
31
|
|
|
32
32
|
## License
|
package/bin/dsh.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const argv = process.argv.slice(2)
|
|
|
18
18
|
// version this package publishes. Reporting only one of the two would make an
|
|
19
19
|
// ordinary `npm install @songtonyli/dsh-cli@x` look like it installed something else.
|
|
20
20
|
if (argv.length === 1 && (argv[0] === '--version' || argv[0] === '-V')) {
|
|
21
|
-
console.log('@songtonyli/dsh-cli 0.1.
|
|
21
|
+
console.log('@songtonyli/dsh-cli 0.1.42 (deepseek-harness 0.1.7-rc.2)')
|
|
22
22
|
process.exit(0)
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -532,21 +532,29 @@ const PROFILE_TEMPLATES = {
|
|
|
532
532
|
headless: { bundles: ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-headless"] },
|
|
533
533
|
sdk: { bundles: ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-sdk-app"] },
|
|
534
534
|
"sdk-minimal": { bundles: ["@deepseek-ai/dsh-sdk-minimal"] },
|
|
535
|
-
tui: { bundles: [
|
|
535
|
+
tui: { bundles: [
|
|
536
|
+
"@deepseek-ai/dsh-base",
|
|
537
|
+
"@deepseek-ai/dsh-tui-app",
|
|
538
|
+
"@deepseek-ai/dsh-experimental-auto-review"
|
|
539
|
+
] }
|
|
536
540
|
};
|
|
537
541
|
/** Installation-owned bundle tuples normalized to the shipped template. */
|
|
538
|
-
const INSTALLATION_OWNED_PROFILE_TUPLES = {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
542
|
+
const INSTALLATION_OWNED_PROFILE_TUPLES = {
|
|
543
|
+
headless: [
|
|
544
|
+
"@deepseek-ai/dsh-base",
|
|
545
|
+
"@deepseek-ai/dsh-web-app",
|
|
546
|
+
"@deepseek-ai/dsh-headless"
|
|
547
|
+
],
|
|
548
|
+
tui: ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-tui-app"]
|
|
549
|
+
};
|
|
543
550
|
/** The bundle list a `dsh plugin` init uses for a name with no shipped template. */
|
|
544
551
|
const DEFAULT_PROFILE_BUNDLES = ["@deepseek-ai/dsh-base"];
|
|
545
552
|
/**
|
|
546
553
|
* The bundles the dsh installation ships for a person to switch on: each a
|
|
547
554
|
* runtime dependency of the installation that declares `dsh.bundle.patch`,
|
|
548
|
-
* an `icon`, and `./locale/*.json` display metadata,
|
|
549
|
-
*
|
|
555
|
+
* an `icon`, and `./locale/*.json` display metadata, and offered switched off
|
|
556
|
+
* by the plugin manager. The shipped TUI template selects Auto review; no
|
|
557
|
+
* other template does
|
|
550
558
|
* ([rationale](../../../../.agents/notes/implemented/process/2026-09-15-shipped-optional-bundles.md),
|
|
551
559
|
* [admission](../../../../.agents/notes/implemented/architecture/2026-09-21-experimental-capabilities-as-optional-bundles.md)).
|
|
552
560
|
*/
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"simple-icons": "16.31.0",
|
|
50
50
|
"@deepseek-ai/dsh-client-store": "0.1.7-rc.2",
|
|
51
51
|
"@deepseek-ai/dsh-util-code-language": "0.1.7-rc.2",
|
|
52
|
-
"@deepseek-ai/
|
|
53
|
-
"@deepseek-ai/
|
|
52
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
53
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.1.7-rc.2"
|
|
54
54
|
},
|
|
55
55
|
"files": [
|
|
56
56
|
"lib/index.js",
|
|
@@ -167,7 +167,7 @@ window.__ModuleLoader__.load({
|
|
|
167
167
|
const SCROLLBAR_LINGER_MS = 2e3;
|
|
168
168
|
/** Format complete-build metadata for the local brand badge. */
|
|
169
169
|
function localBuildVersion() {
|
|
170
|
-
return `0.1.7-rc.2-
|
|
170
|
+
return `0.1.7-rc.2-c25eeec` + ({}.DSH_CLIENT_GIT_DIRTY === "true" ? "-dirty" : "");
|
|
171
171
|
}
|
|
172
172
|
/** Each panel row subscribes only to its own selection state. */
|
|
173
173
|
function PanelRow({ id, label, wide, usePanelInfo, selectPanel, renderSlot }) {
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "~18.3.1",
|
|
27
|
-
"@deepseek-ai/
|
|
28
|
-
"@deepseek-ai/
|
|
27
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
28
|
+
"@deepseek-ai/dsh-client-store": "0.1.7-rc.2"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"lib/index.js",
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
# After editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/experimental/auto-review/README.md
|
|
5
5
|
/:
|
|
6
|
-
en:
|
|
7
|
-
zh:
|
|
6
|
+
en: 4ba7553052e868d6
|
|
7
|
+
zh: 84ef71a398b68599
|
|
8
8
|
/deepseek-ai-dsh-experimental-auto-review:
|
|
9
9
|
en: 566562e610f1b52b
|
|
10
10
|
zh: 88796a19ab0b98b8
|
|
11
11
|
/deepseek-ai-dsh-experimental-auto-review/summary:
|
|
12
|
-
en:
|
|
13
|
-
zh:
|
|
12
|
+
en: a9deacccf0e79927
|
|
13
|
+
zh: 089704e9f48555f3
|
|
14
14
|
/deepseek-ai-dsh-experimental-auto-review/table-of-contents:
|
|
15
15
|
en: d152484eb41ac6b4
|
|
16
16
|
zh: 09388d293f9be9cb
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
en: 8da1089dee147f94
|
|
58
58
|
zh: 87361347bfd10c6c
|
|
59
59
|
/deepseek-ai-dsh-experimental-auto-review/known-limitations-and-deferred-work:
|
|
60
|
-
en:
|
|
61
|
-
zh:
|
|
60
|
+
en: cf0c266006daf9a0
|
|
61
|
+
zh: a29542f770947bfd
|
|
62
62
|
/deepseek-ai-dsh-experimental-auto-review/known-limitations-and-deferred-work/dev-note:
|
|
63
63
|
en: e67f633dc6fe7773
|
|
64
64
|
zh: 3bb0c20c93f16f98
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "Add experimental per-call Auto review
|
|
2
|
+
description: "Add experimental per-call Auto review, using the current agent's model before tools execute with Full access."
|
|
3
3
|
kind: "package-bundle"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
|
|
|
9
9
|
|
|
10
10
|
## Summary
|
|
11
11
|
|
|
12
|
-
Add Auto review to the current-session permission pickers
|
|
12
|
+
Add Auto review to the current-session permission pickers. Before each native or PTC inner tool call, the current agent's provider and model assess the pending action; an allowed call executes with Full access, and a denied call asks the user. The shipped TUI profile includes this layer. Default Web keeps its three permission modes until it is switched on from the Web sidebar's Plugins page or installed explicitly. Auto review is experimental: it can allow unsafe actions, deny useful work, and spend additional tokens.
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
15
15
|
|
|
@@ -112,7 +112,7 @@ The denial appends an ordinary tool result; it does not rewrite earlier context
|
|
|
112
112
|
|
|
113
113
|
<a id="known-limitations-and-deferred-work"></a>
|
|
114
114
|
|
|
115
|
-
-
|
|
115
|
+
- The shipped TUI profile includes Auto review. Default Web, Headless, General settings, and new-session defaults omit it until this layer is switched on.
|
|
116
116
|
- Auto provides no file sandbox. The outer `run_code` transport and direct Node effects inside a PTC program do not pass through inner-tool review.
|
|
117
117
|
- Model classification can be wrong. There are no deterministic tool exemptions, persistent grants, configurable policy, or retry layer.
|
|
118
118
|
- In-process Auto children review their own calls. Out-of-process children retain their native permission systems after the parent delegation call is allowed.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: "
|
|
2
|
+
description: "添加实验性逐调用 Auto review,在工具以 Full access 执行前使用当前 agent 的模型审查。"
|
|
3
3
|
kind: "package-bundle"
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ kind: "package-bundle"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
为当前会话权限选择器添加 Auto review。每次原生或 PTC inner 工具调用前,当前 agent 的 provider 与模型会评估待执行动作;获准调用以 Full access 执行,被拒绝调用会请求用户审批。随附的 TUI profile 包含此层。在 Web 侧栏插件页开启或显式安装之前,默认 Web 保持三种权限模式。Auto review 是实验功能:它可能误放行不安全动作、误拒绝有用操作,并消耗额外 token。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -112,7 +112,7 @@ Reviewer 使用最新 `request/header.config` 的 provider 与模型,并沿用
|
|
|
112
112
|
|
|
113
113
|
<a id="known-limitations-and-deferred-work"></a>
|
|
114
114
|
|
|
115
|
-
-
|
|
115
|
+
- 随附的 TUI profile 包含 Auto review。默认 Web、Headless、通用设置与新会话默认值在开启此层之前都不包含它。
|
|
116
116
|
- Auto 不提供文件沙箱。外层 `run_code` transport 及PTC 程序内直接 Node 效果不经过 inner-tool review。
|
|
117
117
|
- 模型分类可能出错。不提供确定性工具豁免、持久 grant、可配置策略或重试层。
|
|
118
118
|
- 进程内 Auto child 独立审查自身调用。进程外 child 在父委派调用获准后保留原生权限系统。
|
|
@@ -86,7 +86,10 @@ function loggedSchema(value, expectedName, mode) {
|
|
|
86
86
|
function isAborted(signal) {
|
|
87
87
|
return signal.aborted;
|
|
88
88
|
}
|
|
89
|
-
/**
|
|
89
|
+
/**
|
|
90
|
+
* Whether this visible message is a person-admitted prompt.
|
|
91
|
+
* Web writes the browser request id; the terminal writes one id per submission.
|
|
92
|
+
*/
|
|
90
93
|
function isHumanInstruction(source) {
|
|
91
94
|
return source.kind === "user" && typeof source.rpcId === "string";
|
|
92
95
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
en: cb7406bf1aaf5cb0
|
|
25
25
|
zh: c4f3ca2e96b0b2df
|
|
26
26
|
/deepseek-ai-dsh-tui-app/use-this-package/keys-and-commands:
|
|
27
|
-
en:
|
|
28
|
-
zh:
|
|
27
|
+
en: 144dbbfb32211390
|
|
28
|
+
zh: b0999e01748b7a05
|
|
29
29
|
/deepseek-ai-dsh-tui-app/use-this-package/subscription-sign-in:
|
|
30
30
|
en: 7c1b0e685a3a9415
|
|
31
31
|
zh: 49f3bdc3e99d6259
|
|
@@ -169,7 +169,7 @@ Typing `/` at the start of the editor completes the terminal's own commands and
|
|
|
169
169
|
| `/help` | List the commands, and the keys each focus state answers; `?` on an empty input does the same |
|
|
170
170
|
| `/model` | Pick the model (type to filter the rows), then its reasoning effort when the model declares more than one, for the next request; `/model <provider>/<model>` selects directly, `/model save` stores the current selection as the default, and `Ctrl+S` in the model list stores the highlighted model as the default for the next launch without closing the list |
|
|
171
171
|
| `/effort [id]` | With no argument, open the current model's reasoning-effort picker for the next request, the same picker as editor `Shift+Tab`; an id selects directly and `/effort default` restores the provider default |
|
|
172
|
-
| `/permission [preset]` | With no argument, open the permission-preset picker; a preset selects directly |
|
|
172
|
+
| `/permission [preset]` | With no argument, open the permission-preset picker; a preset selects directly. The shipped profile includes experimental Auto review; `/permission auto` selects it for the current session |
|
|
173
173
|
| `/resume` | Open the same persisted-session picker as `/sessions` and resume the selected previous session |
|
|
174
174
|
| `/sessions` | Open the persisted-session picker and switch to the selected session |
|
|
175
175
|
| `/new` | Start a new session |
|
|
@@ -169,7 +169,7 @@ follow-ups 面板持有键盘时:
|
|
|
169
169
|
| `/help` | 列出命令,以及每个焦点状态所应答的按键;输入为空时按 `?` 效果相同 |
|
|
170
170
|
| `/model` | 为下一次请求选择模型(输入即可过滤行),若模型声明多于一种推理强度则接着选择强度;`/model <provider>/<model>` 直接选择,`/model save` 把当前选择存为默认,在模型列表中按 `Ctrl+S` 则把高亮的模型存为下次启动的默认而不关闭列表 |
|
|
171
171
|
| `/effort [id]` | 不带参数时为下一次请求打开当前模型的推理强度选择器,与编辑器中的 `Shift+Tab` 打开的是同一个;id 直接选择,`/effort default` 恢复提供方默认值 |
|
|
172
|
-
| `/permission [preset]` | 不带参数时打开权限预设选择器;preset
|
|
172
|
+
| `/permission [preset]` | 不带参数时打开权限预设选择器;preset 直接选择。随附 profile 包含实验性 Auto review;`/permission auto` 为当前会话选中它 |
|
|
173
173
|
| `/resume` | 打开与 `/sessions` 相同的持久化会话选择器,并恢复选中的先前会话 |
|
|
174
174
|
| `/sessions` | 打开持久化会话选择器,并切换到选中的会话 |
|
|
175
175
|
| `/new` | 开始新会话 |
|
|
@@ -10250,6 +10250,21 @@ function callingActivity(name) {
|
|
|
10250
10250
|
function isCallingActivity(activity) {
|
|
10251
10251
|
return activity === "calling" || activity.startsWith("calling ");
|
|
10252
10252
|
}
|
|
10253
|
+
/**
|
|
10254
|
+
* Source for a prompt the person typed in this terminal.
|
|
10255
|
+
* A string `rpcId` is the admission mark Auto review treats as a human instruction.
|
|
10256
|
+
* An edited draft keeps a non-user source; a user draft is admitted again.
|
|
10257
|
+
* @param draft - the queue draft being revised, when this submission replaces one.
|
|
10258
|
+
* @returns the source stored on the submitted user message.
|
|
10259
|
+
*/
|
|
10260
|
+
function terminalPromptSource(draft) {
|
|
10261
|
+
const preserved = draft?.source;
|
|
10262
|
+
if (preserved !== void 0 && preserved.kind !== "user") return preserved;
|
|
10263
|
+
return {
|
|
10264
|
+
kind: "user",
|
|
10265
|
+
rpcId: randomUUID()
|
|
10266
|
+
};
|
|
10267
|
+
}
|
|
10253
10268
|
/** The interactive terminal application; one instance per process. */
|
|
10254
10269
|
var TuiApp = class {
|
|
10255
10270
|
deps;
|
|
@@ -12455,7 +12470,7 @@ var TuiApp = class {
|
|
|
12455
12470
|
text
|
|
12456
12471
|
}
|
|
12457
12472
|
],
|
|
12458
|
-
source: draft
|
|
12473
|
+
source: terminalPromptSource(draft)
|
|
12459
12474
|
});
|
|
12460
12475
|
if (agent.status !== "running") {
|
|
12461
12476
|
this.submittedIds.add(message.id);
|
package/package.json
CHANGED