@deepseek-ai/dsh 0.0.1-rc.5 → 0.1.0-rc.2

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/LICENSE CHANGED
@@ -1,28 +1,21 @@
1
- BSD 3-Clause License
1
+ MIT License
2
2
 
3
- Copyright (c) 2026, DeepSeek
3
+ Copyright (c) 2026 DeepSeek
4
4
 
5
- Redistribution and use in source and binary forms, with or without
6
- modification, are permitted provided that the following conditions are met:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
7
11
 
8
- 1. Redistributions of source code must retain the above copyright notice, this
9
- list of conditions and the following disclaimer.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
10
14
 
11
- 2. Redistributions in binary form must reproduce the above copyright notice,
12
- this list of conditions and the following disclaimer in the documentation
13
- and/or other materials provided with the distribution.
14
-
15
- 3. Neither the name of the copyright holder nor the names of its
16
- contributors may be used to endorse or promote products derived from
17
- this software without specific prior written permission.
18
-
19
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.i18n.yaml CHANGED
@@ -3,4 +3,4 @@
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write apps/cli/README.md
5
5
  README.md: 9a8d722b044ed5d8e31e3c27e54f8c9ef0839f82
6
- README.zh.md: dc40a4a6f54f99507bccb6b989aee0015e9604b3
6
+ README.zh.md: 7889b4180b5ce2f65550f98708d498f324ac349d
package/README.zh.md CHANGED
@@ -2,22 +2,22 @@
2
2
 
3
3
  [English](README.md) | 中文
4
4
 
5
- `dsh` 命令是 profile 的产品启动器:profile 是按序叠放的插件组合包 patch 层,之上再叠加用户自己的覆盖层。[`src/args.ts`](src/args.ts) 负责命令语法,[`src/bin.ts`](src/bin.ts) 只加载选中的运行器。无效命令、来自其他模式的选项、配置错误和启动失败都会以非零状态退出。
5
+ `dsh` DeepSeek Harness 中用于启动 profile 的命令;profile 由多个插件组合包 patch 层按顺序叠加而成,其上再应用用户自己的覆盖配置。[`src/args.ts`](src/args.ts) 负责命令语法,[`src/bin.ts`](src/bin.ts) 只加载选中的运行器。无效命令、来自其他模式的选项、配置错误和启动失败都会以非零状态退出。
6
6
 
7
7
  ## 入口模式
8
8
 
9
9
  | 命令 | 用途 |
10
10
  |---|---|
11
11
  | `dsh --profile <name>` | 启动位于 `$DSH_HOME/profiles/<name>` 的指定 profile。 |
12
- | `dsh --profile headless "job"` | 运行一个新的持久化会话,打印最终答案并退出。 |
12
+ | `dsh --profile headless "job"` | 运行一个全新的持久化会话,打印最终答案并退出。 |
13
13
  | `dsh web` | `--profile web` 的别名。 |
14
14
  | `dsh plugin --profile <name> <pnpm args>` | 通过在 profile 目录中转发给 pnpm 来管理该 profile 的插件。 |
15
15
 
16
- 调用目录是默认 workspace 根目录。`web` 和 `headless` profile 在首次使用时会从随附模板自动初始化;其他任何 profile 都必须通过 `dsh plugin` 创建。
16
+ 运行命令时所在的目录将作为默认 workspace 根目录。`web` 和 `headless` profile 在首次使用时会从随附模板自动初始化;其他任何 profile 都必须通过 `dsh plugin` 创建。
17
17
 
18
18
  ## 应用参数
19
19
 
20
- 启动器只解析属于自己的 flag,并把其后的一切交给启动起来的 profile,任何注入它的应用插件都可以解析这份共享的不可变快照([`dsh-cmdline`](../../packages/boot/cmdline/README.md))。因此启动器的 flag 必须写在前面,而启动器不认识的第一个 token 就是应用参数的起点:
20
+ 启动器只解析自身的 flag,并将其后的所有内容交给已启动的 profile;注入该 profile 的任意应用插件都可以解析这份共享的不可变快照([`dsh-cmdline`](../../packages/boot/cmdline/README.md))。因此,启动器的 flag 必须写在最前面;启动器无法识别的第一个 token 标志着应用参数的开始:
21
21
 
22
22
  ```sh
23
23
  dsh --profile web --port 8080 # --port belongs to the web app
@@ -29,19 +29,19 @@ dsh --help # the launcher's own help
29
29
 
30
30
  ## Profile
31
31
 
32
- profile 目录包含一个 `package.json`(树外插件依赖,加上 profile manifest(元数据清单)`dsh.profile` 及其有序的 `bundles` 列表)和一个 `cordis.patch.yml`(用户自己的 patch 层)。
32
+ profile 目录包含一个 `package.json`,其中记录树外插件依赖,以及 profile manifest(元数据清单)`dsh.profile` 和其中按顺序排列的 `bundles` 列表;还包含一个 `cordis.patch.yml`,其中保存用户自己的 patch 层。
33
33
 
34
- 配置树在空根之上组合:
35
- - 先按 `dsh.profile.bundles` 顺序应用各组合包的 patch
36
- - 然后是 profile `cordis.patch.yml`,然后是 home 级的 `$DSH_HOME/cordis.patch.yml`
37
- - 最后是 `--patch` overlay
34
+ 配置树以空根为起点,依次叠加以下配置层:
35
+ - `dsh.profile.bundles` 中各组合包的 patch
36
+ - profile 自身的 `cordis.patch.yml`,然后是 home 级的 `$DSH_HOME/cordis.patch.yml`
37
+ - `--patch` 指定的覆盖层
38
38
 
39
- `dsh.profile.bundles` 中列出的组合包先从 dsh 安装目录解析(`@deepseek-ai/dsh-base`、`@deepseek-ai/dsh-web-app`、`@deepseek-ai/dsh-headless`),再从 profile 自己的 `node_modules` 解析;pnpm 把树外插件安装在后者。
39
+ `dsh.profile.bundles` 中列出的组合包先从 dsh 安装目录解析(`@deepseek-ai/dsh-base`、`@deepseek-ai/dsh-web-app`、`@deepseek-ai/dsh-headless`),再从 profile 自身的 `node_modules` 解析;pnpm 会将树外插件安装到该目录。
40
40
 
41
41
  使用 `--dump-default-config` 和 `--dump-config` 可在不启动的情况下检查组合后的配置树。
42
42
 
43
- [CLI(命令行界面)行为参考](reference/README.md)负责确切的层优先级、flag、关闭行为、部署默认值和源码执行。
43
+ 层的确切优先级、flag、关闭行为、部署默认值和源码执行方式,以 [CLI(命令行界面)行为参考](reference/README.md)为准。
44
44
 
45
45
  ## 开发
46
46
 
47
- 生产运行需要已构建的包与前端产物。请在仓库根目录单独运行 `pnpm run build`,然后使用 `pnpm dsh <args...>` 运行 TypeScript 入口并转发所有参数;模块解析约定由[源码执行参考](reference/README.md#source-execution)负责。
47
+ 生产运行需要已构建的包与前端产物。请在仓库根目录单独运行 `pnpm run build`,然后使用 `pnpm dsh <args...>` 运行 TypeScript 入口并转发所有参数;模块解析约定以[源码执行参考](reference/README.md#source-execution)为准。
@@ -1,15 +1,16 @@
1
1
  # The `minimal` agent preset: a fixed-prompt, two-tool coding-agent composition.
2
2
  #
3
3
  # The persona is the complete system prompt, so global identity, Web orientation,
4
- # tool guidance, and later assembly listeners cannot add prompt text. The model
5
- # composes only the persistent `bash` and `str_replace_editor` tools. Context
6
- # compaction is deliberately absent.
4
+ # tool guidance, and later assembly listeners cannot add prompt text. Runtime
5
+ # context snapshots are suppressed for this preset, and the model composes only
6
+ # persistent `bash` and `str_replace_editor`. Context compaction is absent.
7
7
 
8
8
  - id: persona
9
9
  name: '@deepseek-ai/dsh-persona'
10
10
  config:
11
11
  text: You are a helpful software engineer assistant.
12
12
  complete: true
13
+ includeRuntimeContext: false
13
14
 
14
15
  # The PTY registry is an agent-owned service, so it lives in an entry-local
15
16
  # realm. The backend still consumes the host sandbox policy and subprocess
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh",
3
3
  "description": "dsh CLI: profile boot, plugin management, and the browser UI alias",
4
- "version": "0.0.1-rc.5",
4
+ "version": "0.1.0-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "restricted"
7
7
  },
@@ -18,84 +18,84 @@
18
18
  "lib/*.js",
19
19
  "config"
20
20
  ],
21
- "license": "BSD-3-Clause",
21
+ "license": "MIT",
22
22
  "dependencies": {
23
23
  "commander": "^15.0.0",
24
24
  "js-yaml": "^4.2.0",
25
25
  "node-addon-require-builtin": "^0.1.4",
26
- "@deepseek-ai/cordis-plugin-include": "^1.0.6-rc.4",
27
- "@deepseek-ai/cordis-plugin-loader": "^1.0.2-rc.4",
28
- "@deepseek-ai/cordis-plugin-timer": "^1.1.3-rc.4",
29
- "@deepseek-ai/dsh-agent-tool-presentation": "^0.0.1-rc.5",
30
- "@deepseek-ai/dsh-app-boot": "^0.0.1-rc.5",
31
- "@deepseek-ai/cordis-plugin-hmr": "^1.0.16-rc.4",
32
- "@deepseek-ai/dsh-base": "^0.0.1-rc.5",
33
- "@deepseek-ai/dsh-client-ui-agent-preset": "^0.0.1-rc.5",
34
- "@deepseek-ai/dsh-client-ui-cordis": "^0.0.1-rc.5",
35
- "@deepseek-ai/dsh-cordis-client-runner": "^0.0.1-rc.5",
36
- "@deepseek-ai/dsh-command-compact": "^0.0.1-rc.5",
37
- "@deepseek-ai/dsh-command-goal": "^0.0.1-rc.5",
38
- "@deepseek-ai/dsh-compaction-basic": "^0.0.1-rc.5",
39
- "@deepseek-ai/dsh-compaction-tool-result-pruner": "^0.0.1-rc.5",
40
- "@deepseek-ai/dsh-goal": "^0.0.1-rc.5",
41
- "@deepseek-ai/dsh-goal-round-driver": "^0.0.1-rc.5",
42
- "@deepseek-ai/dsh-fs-local": "^0.0.1-rc.5",
43
- "@deepseek-ai/dsh-headless": "^0.0.1-rc.5",
44
- "@deepseek-ai/dsh-mcp-client": "^0.0.1-rc.5",
45
- "@deepseek-ai/dsh-home-paths": "^0.0.1-rc.5",
46
- "@deepseek-ai/dsh-persona": "^0.0.1-rc.5",
47
- "@deepseek-ai/dsh-plan-mode": "^0.0.1-rc.5",
48
- "@deepseek-ai/dsh-terminal": "^0.0.1-rc.5",
49
- "@deepseek-ai/dsh-terminal-bash": "^0.0.1-rc.5",
50
- "@deepseek-ai/dsh-pwsh-local": "^0.0.1-rc.5",
51
- "@deepseek-ai/dsh-pwsh-sandbox": "^0.0.1-rc.5",
52
- "@deepseek-ai/dsh-time-context": "^0.0.1-rc.5",
53
- "@deepseek-ai/dsh-skill": "^0.0.1-rc.5",
54
- "@deepseek-ai/dsh-session-projection": "^0.0.1-rc.5",
55
- "@deepseek-ai/dsh-session-reference": "^0.0.1-rc.5",
56
- "@deepseek-ai/dsh-skill-filesystem": "^0.0.1-rc.5",
57
- "@deepseek-ai/dsh-jobs-local": "^0.0.1-rc.5",
58
- "@deepseek-ai/dsh-tmux-context": "^0.0.1-rc.5",
59
- "@deepseek-ai/dsh-token-meter": "^0.0.1-rc.5",
60
- "@deepseek-ai/dsh-tool-ask-user": "^0.0.1-rc.5",
61
- "@deepseek-ai/dsh-tool-bash": "^0.0.1-rc.5",
62
- "@deepseek-ai/dsh-tool-bash-persistent": "^0.0.1-rc.5",
63
- "@deepseek-ai/dsh-tool-cordis": "^0.0.1-rc.5",
64
- "@deepseek-ai/dsh-tool-fs": "^0.0.1-rc.5",
65
- "@deepseek-ai/dsh-launch-environment": "^0.0.1-rc.5",
66
- "@deepseek-ai/dsh-cmdline": "^0.0.1-rc.5",
67
- "@deepseek-ai/dsh-tool-goal": "^0.0.1-rc.5",
68
- "@deepseek-ai/dsh-tool-fs-search": "^0.0.1-rc.5",
69
- "@deepseek-ai/dsh-tool-pwsh": "^0.0.1-rc.5",
70
- "@deepseek-ai/dsh-tool-ralph": "^0.0.1-rc.5",
71
- "@deepseek-ai/dsh-tool-skill": "^0.0.1-rc.5",
72
- "@deepseek-ai/dsh-schedule": "^0.0.1-rc.5",
73
- "@deepseek-ai/dsh-tool-str-replace-editor": "^0.0.1-rc.5",
74
- "@deepseek-ai/dsh-tool-subagent-control": "^0.0.1-rc.5",
75
- "@deepseek-ai/dsh-tool-jobs": "^0.0.1-rc.5",
76
- "@deepseek-ai/dsh-tool-web": "^0.0.1-rc.5",
77
- "@deepseek-ai/dsh-tool-todo": "^0.0.1-rc.5",
78
- "@deepseek-ai/dsh-web-app": "^0.0.1-rc.5",
79
- "@deepseek-ai/dsh-workflow-worker-thread": "^0.0.1-rc.5",
80
- "@deepseek-ai/cordis": "^4.0.1-rc.4",
81
- "@deepseek-ai/dsh-agent-instructions": "^0.0.1-rc.5",
82
- "@deepseek-ai/dsh-tool-subagent": "^0.0.1-rc.5",
83
- "@deepseek-ai/dsh-tool-workflow": "^0.0.1-rc.5"
26
+ "@deepseek-ai/cordis-plugin-hmr": "^1.0.16",
27
+ "@deepseek-ai/cordis-plugin-include": "^1.0.6",
28
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.2",
29
+ "@deepseek-ai/cordis-plugin-timer": "^1.1.3",
30
+ "@deepseek-ai/dsh-agent-tool-presentation": "^0.1.0-rc.2",
31
+ "@deepseek-ai/dsh-base": "^0.1.0-rc.2",
32
+ "@deepseek-ai/dsh-cordis-client-runner": "^0.1.0-rc.2",
33
+ "@deepseek-ai/dsh-client-ui-agent-preset": "^0.1.0-rc.2",
34
+ "@deepseek-ai/dsh-client-ui-cordis": "^0.1.0-rc.2",
35
+ "@deepseek-ai/dsh-command-compact": "^0.1.0-rc.2",
36
+ "@deepseek-ai/dsh-command-goal": "^0.1.0-rc.2",
37
+ "@deepseek-ai/dsh-compaction-basic": "^0.1.0-rc.2",
38
+ "@deepseek-ai/dsh-compaction-tool-result-pruner": "^0.1.0-rc.2",
39
+ "@deepseek-ai/dsh-goal": "^0.1.0-rc.2",
40
+ "@deepseek-ai/dsh-goal-round-driver": "^0.1.0-rc.2",
41
+ "@deepseek-ai/dsh-cmdline": "^0.1.0-rc.2",
42
+ "@deepseek-ai/dsh-launch-environment": "^0.1.0-rc.2",
43
+ "@deepseek-ai/dsh-fs-local": "^0.1.0-rc.2",
44
+ "@deepseek-ai/dsh-headless": "^0.1.0-rc.2",
45
+ "@deepseek-ai/dsh-mcp-client": "^0.1.0-rc.2",
46
+ "@deepseek-ai/dsh-home-paths": "^0.1.0-rc.2",
47
+ "@deepseek-ai/dsh-persona": "^0.1.0-rc.2",
48
+ "@deepseek-ai/dsh-plan-mode": "^0.1.0-rc.2",
49
+ "@deepseek-ai/dsh-terminal": "^0.1.0-rc.2",
50
+ "@deepseek-ai/dsh-terminal-bash": "^0.1.0-rc.2",
51
+ "@deepseek-ai/dsh-pwsh-local": "^0.1.0-rc.2",
52
+ "@deepseek-ai/dsh-pwsh-sandbox": "^0.1.0-rc.2",
53
+ "@deepseek-ai/dsh-session-projection": "^0.1.0-rc.2",
54
+ "@deepseek-ai/dsh-session-reference": "^0.1.0-rc.2",
55
+ "@deepseek-ai/dsh-time-context": "^0.1.0-rc.2",
56
+ "@deepseek-ai/dsh-skill": "^0.1.0-rc.2",
57
+ "@deepseek-ai/dsh-skill-filesystem": "^0.1.0-rc.2",
58
+ "@deepseek-ai/dsh-jobs-local": "^0.1.0-rc.2",
59
+ "@deepseek-ai/dsh-tmux-context": "^0.1.0-rc.2",
60
+ "@deepseek-ai/dsh-token-meter": "^0.1.0-rc.2",
61
+ "@deepseek-ai/dsh-tool-ask-user": "^0.1.0-rc.2",
62
+ "@deepseek-ai/dsh-tool-bash": "^0.1.0-rc.2",
63
+ "@deepseek-ai/dsh-tool-bash-persistent": "^0.1.0-rc.2",
64
+ "@deepseek-ai/dsh-tool-cordis": "^0.1.0-rc.2",
65
+ "@deepseek-ai/dsh-tool-fs": "^0.1.0-rc.2",
66
+ "@deepseek-ai/dsh-tool-fs-search": "^0.1.0-rc.2",
67
+ "@deepseek-ai/dsh-tool-goal": "^0.1.0-rc.2",
68
+ "@deepseek-ai/dsh-tool-pwsh": "^0.1.0-rc.2",
69
+ "@deepseek-ai/dsh-tool-ralph": "^0.1.0-rc.2",
70
+ "@deepseek-ai/dsh-schedule": "^0.1.0-rc.2",
71
+ "@deepseek-ai/dsh-tool-skill": "^0.1.0-rc.2",
72
+ "@deepseek-ai/dsh-tool-subagent": "^0.1.0-rc.2",
73
+ "@deepseek-ai/dsh-tool-subagent-control": "^0.1.0-rc.2",
74
+ "@deepseek-ai/dsh-tool-jobs": "^0.1.0-rc.2",
75
+ "@deepseek-ai/dsh-tool-todo": "^0.1.0-rc.2",
76
+ "@deepseek-ai/dsh-tool-web": "^0.1.0-rc.2",
77
+ "@deepseek-ai/dsh-tool-workflow": "^0.1.0-rc.2",
78
+ "@deepseek-ai/dsh-web-app": "^0.1.0-rc.2",
79
+ "@deepseek-ai/dsh-workflow-worker-thread": "^0.1.0-rc.2",
80
+ "@deepseek-ai/cordis": "^4.0.1",
81
+ "@deepseek-ai/dsh-agent-instructions": "^0.1.0-rc.2",
82
+ "@deepseek-ai/dsh-tool-str-replace-editor": "^0.1.0-rc.2",
83
+ "@deepseek-ai/dsh-app-boot": "^0.1.0-rc.2"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@types/js-yaml": "^4.0.9",
87
87
  "execa": "^10.0.0",
88
- "@deepseek-ai/dsh-agent": "^0.0.1-rc.5",
89
- "@deepseek-ai/dsh-host-frontend-static": "^0.0.1-rc.5",
90
- "@deepseek-ai/dsh-host-webserver": "^0.0.1-rc.5",
91
- "@deepseek-ai/dsh-llm": "^0.0.1-rc.5",
92
- "@deepseek-ai/dsh-llm-mock-server": "^0.0.1-rc.5",
93
- "@deepseek-ai/dsh-host-apiproxy": "^0.0.1-rc.5",
94
- "@deepseek-ai/dsh-loader-smoke": "^0.0.1-rc.5",
95
- "@deepseek-ai/dsh-session": "^0.0.1-rc.5",
96
- "@deepseek-ai/dsh-subagent": "^0.0.1-rc.5",
97
- "@deepseek-ai/dsh-system-prompt": "^0.0.1-rc.5",
98
- "@deepseek-ai/dsh-tools": "^0.0.1-rc.5",
99
- "@deepseek-ai/dsh-settings": "^0.0.1-rc.5"
88
+ "@deepseek-ai/dsh-agent": "^0.1.0-rc.2",
89
+ "@deepseek-ai/dsh-host-frontend-static": "^0.1.0-rc.2",
90
+ "@deepseek-ai/dsh-host-apiproxy": "^0.1.0-rc.2",
91
+ "@deepseek-ai/dsh-host-webserver": "^0.1.0-rc.2",
92
+ "@deepseek-ai/dsh-llm": "^0.1.0-rc.2",
93
+ "@deepseek-ai/dsh-llm-mock-server": "^0.1.0-rc.2",
94
+ "@deepseek-ai/dsh-session": "^0.1.0-rc.2",
95
+ "@deepseek-ai/dsh-settings": "^0.1.0-rc.2",
96
+ "@deepseek-ai/dsh-subagent": "^0.1.0-rc.2",
97
+ "@deepseek-ai/dsh-system-prompt": "^0.1.0-rc.2",
98
+ "@deepseek-ai/dsh-loader-smoke": "^0.1.0-rc.2",
99
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.2"
100
100
  }
101
101
  }