tofu-box 1.0.2 → 1.1.0

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,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 tofu-zyc (TOFU BOX)
4
-
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:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 tofu-zyc (TOFU BOX)
4
+
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:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
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.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  一条命令装齐 [TOFU BOX](https://github.com/tofu-zyc/dsh-plugin-tofu-box) 的全套
4
4
  [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (dsh) 插件。
5
- 桌面端 / Web 端的插件管理页一次只能装一个包,本包把「六个一起装」压成一次。
5
+ 桌面端 / Web 端的插件管理页一次只能装一个包,本包把「五个一起装」压成一次。
6
6
 
7
7
  ```sh
8
8
  dsh plugin --profile <你的profile> add tofu-box
@@ -14,9 +14,8 @@ dsh plugin --profile <你的profile> add tofu-box
14
14
 
15
15
  | 子包 | 功能 |
16
16
  | --- | --- |
17
- | dsh-plugin-model-search | 模型选择菜单加搜索框 |
18
- | dsh-plugin-model-tuning | 「设置 → 模型调参」:模型参数 / 标题路由 / 绘图 |
19
- | dsh-plugin-read-image-preview | 工具结果图片渲染成可缩放卡片 |
17
+ | dsh-plugin-model-tuning | 官方 Models 卡片里的兼容/推理补丁 + 「设置 → 绘图」绘图模型与 `generate_image` 工具 |
18
+ | dsh-plugin-read-image-preview | 会话图片的全屏查看、标注、一键截图,回车直接进输入框 |
20
19
  | dsh-plugin-shell-selector | 「设置 → Shell」选择 AI 用的 shell |
21
20
  | dsh-plugin-computer-use | 13 个 `computer_*` 桌面操作工具 |
22
21
  | dsh-plugin-mcp-ui | 「设置 → MCP 服务器」管理页 |
@@ -27,9 +26,9 @@ dsh plugin --profile <你的profile> add tofu-box
27
26
  ## 机制
28
27
 
29
28
  本包不含任何代码,是 dsh 官方 `dsh-base` 同款的 bundle 模式:
30
- `dependencies` 拉入六个子包(作为传递依赖,不会各自注册成独立层),
31
- `dsh.bundle.patch` 用六个 patch 副本(`patches/`,与子包源文件逐字节一致,
32
- `tools/check-umbrella-sync.mjs` 防漂移)在一个层里插入全部六条插件行。
29
+ `dependencies` 拉入五个子包(作为传递依赖,不会各自注册成独立层),
30
+ `dsh.bundle.patch` 用五个 patch 副本(`patches/`,与子包源文件逐字节一致,
31
+ `tools/check-umbrella-sync.mjs` 防漂移)在一个层里插入全部五条插件行。
33
32
  Host 侧按闭包解析行,浏览器侧按行读各子包自己的 `dsh.client` 声明——
34
33
  两条路径都是 dsh 的正式机制,无需 fork。
35
34
 
package/package.json CHANGED
@@ -1,30 +1,25 @@
1
1
  {
2
2
  "name": "tofu-box",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "license": "MIT",
5
5
  "keywords": ["dsh-plugin", "deepseek-harness", "dsh", "tofu-box", "pack"],
6
6
  "publishConfig": { "registry": "https://registry.npmjs.org" },
7
7
  "repository": { "type": "git", "url": "git+https://github.com/tofu-zyc/dsh-plugin-tofu-box.git", "directory": "tofu-box" },
8
8
  "bugs": { "url": "https://github.com/tofu-zyc/dsh-plugin-tofu-box/issues" },
9
9
  "homepage": "https://github.com/tofu-zyc/dsh-plugin-tofu-box",
10
- "description": "TOFU BOX 伞包:一条命令装齐 tofu-zyc 的全套 dsh 插件(model-search、model-tuning、read-image-preview、shell-selector、computer-use、mcp-ui)。本包不含代码,只做两件事:以 dependencies 拉入六个子包,以 patch 层注册它们的插件行——即 dsh-base 同款 bundle 模式。装本包或单装子包,二选一,不要混装。",
10
+ "description": "TOFU BOX 伞包:一条命令装齐 tofu-zyc 的全套 dsh 插件(model-tuning、read-image-preview、shell-selector、computer-use、mcp-ui)。本包不含代码,只做两件事:以 dependencies 拉入五个子包,以 patch 层注册它们的插件行——即 dsh-base 同款 bundle 模式。装本包或单装子包,二选一,不要混装。",
11
11
  "type": "module",
12
12
  "dependencies": {
13
- "dsh-plugin-model-search": "^1.1.1",
14
- "dsh-plugin-model-tuning": "^2.0.1",
15
- "dsh-plugin-read-image-preview": "^1.4.1",
13
+ "dsh-plugin-model-tuning": "^3.0.0",
14
+ "dsh-plugin-read-image-preview": "^1.6.0",
16
15
  "dsh-plugin-shell-selector": "^0.1.0",
17
- "dsh-plugin-computer-use": "^2.4.1",
16
+ "dsh-plugin-computer-use": "^2.5.0",
18
17
  "dsh-plugin-mcp-ui": "^1.0.3"
19
18
  },
20
19
  "peerDependencies": {
21
20
  "@deepseek-ai/dsh-tools": ">=0.1.6-alpha.1",
22
21
  "@deepseek-ai/dsh-typert-protocol": ">=0.1.6-alpha.1",
23
- "@deepseek-ai/schemastery": "^3.18.2",
24
- "@deepseek-ai/dsh-session-title-llm": ">=0.1.6-alpha.2"
25
- },
26
- "peerDependenciesMeta": {
27
- "@deepseek-ai/dsh-session-title-llm": { "optional": true }
22
+ "@deepseek-ai/schemastery": "^3.18.2"
28
23
  },
29
24
  "exports": {
30
25
  "./package.json": "./package.json"
@@ -32,7 +27,6 @@
32
27
  "dsh": {
33
28
  "bundle": {
34
29
  "patch": [
35
- "./patches/model-search.yml",
36
30
  "./patches/model-tuning.yml",
37
31
  "./patches/read-image-preview.yml",
38
32
  "./patches/shell-selector.yml",
@@ -1,24 +1,15 @@
1
- # dsh-plugin-model-tuning v2 — 自 wiring + 显式替换宿主自带的标题生成行。
1
+ # dsh-plugin-model-tuning v3 self-wiring (dsh.bundle.patch mechanism).
2
2
  #
3
- # 顺序即语义:
4
- # 1. 先 disable dsh-base 的 `session-title-llm` 行(@deepseek-ai/dsh-session-title-first-prompt-llm)。
5
- # `ctx.sessionTitle.register()` 只允许一个 provider,第二次注册直接抛错,
6
- # 所以必须先摘掉原行再插入本行;反过来 boot 会失败。
7
- # 2. 再 insert 本包(v2 起一个包承担:模型参数页 + 标题路由 + 绘图工具/面板)。
3
+ # v3 keeps only the drawing capability: the `generate_image` /
4
+ # `list_image_models` tools plus the `imageGeneration` Remote service behind the
5
+ # settings page. The per-model compatibility switches on the official Models
6
+ # page and the drawing page need no extra rows.
8
7
  #
9
- # config 中标题预算字段与 dsh-base 的 `session-title-llm` 完全一致,因此无论
10
- # 设置处于默认「继承」还是被卸载回退,标题生成的提示词预算、字节上限、
11
- # 超时行为都不变。绘图 models/defaultModel 与标题 titleMode/titleProvider/
12
- # titleModel 是 volatile 字段,热更新即时生效。
13
- - id: session-title-llm
14
- disabled: true
15
-
8
+ # The v2 patch disabled the shipped `session-title-llm` row and inserted this
9
+ # bundle as a replacement title provider. That is gone: the shipped row already
10
+ # supports a provider/model route plus budgets in its Config, so title routing
11
+ # is configured again in the profile's cordis.patch.yml (and the official
12
+ # "标题随对话更新" optional bundle can be used normally).
16
13
  - insert:
17
14
  - id: model-tuning
18
15
  name: dsh-plugin-model-tuning
19
- config:
20
- targetWords: 5
21
- targetCjkCharacters: 10
22
- maxInputBytes: 4096
23
- maxOutputTokens: 64
24
- timeoutMs: 60000
@@ -1,5 +0,0 @@
1
- # dsh-plugin-model-search 自 wiring(dsh.bundle.patch 机制):安装即注册,
2
- # 无需在 profile 的 cordis.patch.yml 手动 insert。
3
- - insert:
4
- - id: model-search
5
- name: dsh-plugin-model-search