tofu-box 1.1.1 → 1.2.1
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 +5 -4
- package/package.json +8 -5
- package/patches/billing-card.yml +29 -0
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
|
|
@@ -19,6 +19,7 @@ dsh plugin --profile <你的profile> add tofu-box
|
|
|
19
19
|
| dsh-plugin-shell-selector | 「设置 → Shell」选择 AI 用的 shell |
|
|
20
20
|
| dsh-plugin-computer-use | 13 个 `computer_*` 桌面操作工具 |
|
|
21
21
|
| dsh-plugin-mcp-ui | 「设置 → MCP 服务器」管理页 |
|
|
22
|
+
| dsh-plugin-billing-card | 输入框下方的实时费用卡片(DeepSeek 官方峰谷价 + 搜索/抓取按次计费,可配置扩展) |
|
|
22
23
|
|
|
23
24
|
各功能的说明、已知限制与兼容性见仓库
|
|
24
25
|
[README](https://github.com/tofu-zyc/dsh-plugin-tofu-box#中文)。
|
|
@@ -26,9 +27,9 @@ dsh plugin --profile <你的profile> add tofu-box
|
|
|
26
27
|
## 机制
|
|
27
28
|
|
|
28
29
|
本包不含任何代码,是 dsh 官方 `dsh-base` 同款的 bundle 模式:
|
|
29
|
-
`dependencies`
|
|
30
|
-
`dsh.bundle.patch`
|
|
31
|
-
`tools/check-umbrella-sync.mjs`
|
|
30
|
+
`dependencies` 拉入六个子包(作为传递依赖,不会各自注册成独立层),
|
|
31
|
+
`dsh.bundle.patch` 用六个 patch 副本(`patches/`,与子包源文件逐字节一致,
|
|
32
|
+
`tools/check-umbrella-sync.mjs` 防漂移)在一个层里插入全部六条插件行。
|
|
32
33
|
Host 侧按闭包解析行,浏览器侧按行读各子包自己的 `dsh.client` 声明——
|
|
33
34
|
两条路径都是 dsh 的正式机制,无需 fork。
|
|
34
35
|
|
package/package.json
CHANGED
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tofu-box",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
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-tuning、read-image-preview、shell-selector、computer-use、mcp-ui)。本包不含代码,只做两件事:以 dependencies
|
|
10
|
+
"description": "TOFU BOX 伞包:一条命令装齐 tofu-zyc 的全套 dsh 插件(model-tuning、read-image-preview、shell-selector、computer-use、mcp-ui、billing-card)。本包不含代码,只做两件事:以 dependencies 拉入六个子包,以 patch 层注册它们的插件行——即 dsh-base 同款 bundle 模式。装本包或单装子包,二选一,不要混装。",
|
|
11
11
|
"type": "module",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"dsh-plugin-model-tuning": "^3.0.0",
|
|
14
14
|
"dsh-plugin-read-image-preview": "^1.7.0",
|
|
15
15
|
"dsh-plugin-shell-selector": "^0.1.0",
|
|
16
16
|
"dsh-plugin-computer-use": "^2.5.0",
|
|
17
|
-
"dsh-plugin-mcp-ui": "^1.0.3"
|
|
17
|
+
"dsh-plugin-mcp-ui": "^1.0.3",
|
|
18
|
+
"dsh-plugin-billing-card": "^0.2.0"
|
|
18
19
|
},
|
|
19
20
|
"peerDependencies": {
|
|
20
21
|
"@deepseek-ai/dsh-tools": ">=0.1.6-alpha.1",
|
|
21
22
|
"@deepseek-ai/dsh-typert-protocol": ">=0.1.6-alpha.1",
|
|
22
|
-
"@deepseek-ai/schemastery": "^3.18.2"
|
|
23
|
+
"@deepseek-ai/schemastery": "^3.18.2",
|
|
24
|
+
"@deepseek-ai/dsh-session-projection": ">=0.2.1-rc.1"
|
|
23
25
|
},
|
|
24
26
|
"exports": {
|
|
25
27
|
"./package.json": "./package.json"
|
|
@@ -31,7 +33,8 @@
|
|
|
31
33
|
"./patches/read-image-preview.yml",
|
|
32
34
|
"./patches/shell-selector.yml",
|
|
33
35
|
"./patches/computer-use.yml",
|
|
34
|
-
"./patches/mcp-ui.yml"
|
|
36
|
+
"./patches/mcp-ui.yml",
|
|
37
|
+
"./patches/billing-card.yml"
|
|
35
38
|
]
|
|
36
39
|
}
|
|
37
40
|
},
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# dsh-plugin-billing-card
|
|
2
|
+
#
|
|
3
|
+
# One insert over the existing profile composition. This bundle does not
|
|
4
|
+
# override, disable, or replace any shipped row: the Host half only registers
|
|
5
|
+
# one client-visible Session projection unit, and the Client half only adds one
|
|
6
|
+
# entry to the existing `conversation.composer.dock` slot (beside the shipped
|
|
7
|
+
# activity/usage pills, not in place of them).
|
|
8
|
+
#
|
|
9
|
+
# Tunables live in the row config and survive upgrades; see README.md for the
|
|
10
|
+
# `currency`, `pricing`, `peak`, and `search` fields. Override the whole config
|
|
11
|
+
# of this row from the profile's cordis.patch.yml:
|
|
12
|
+
#
|
|
13
|
+
# - id: billing-card
|
|
14
|
+
# config:
|
|
15
|
+
# currency: CNY
|
|
16
|
+
# pricing:
|
|
17
|
+
# - model: deepseek-flash
|
|
18
|
+
# inputPerM: 1
|
|
19
|
+
# cacheReadPerM: 0.02
|
|
20
|
+
# outputPerM: 4
|
|
21
|
+
# search:
|
|
22
|
+
# perRequest: 0.005 # CNY per successful Search / Fetch request
|
|
23
|
+
# searchFreeUntil: 2026-10-31T16:00:00.000Z # or null when billed already
|
|
24
|
+
# trackFetch: true # count direct Fetch API calls too
|
|
25
|
+
#
|
|
26
|
+
# The row below starts with no config so the built-in DeepSeek defaults apply.
|
|
27
|
+
- insert:
|
|
28
|
+
- id: billing-card
|
|
29
|
+
name: dsh-plugin-billing-card
|