@ljwei-stak/model-router-galgame 0.4.14 → 0.4.15
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/.dsh-plugin/shared/approval-gate.mjs +3 -2
- package/README.md +7 -5
- package/README.zh.md +8 -6
- package/cordis.patch.yml +2 -1
- package/package.json +75 -62
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* another profile layer as well as when it is bundled by this plugin.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
export const APPROVAL_GATE_PACKAGE = 'dsh-approval-gate'
|
|
12
|
-
export const APPROVAL_GATE_VERSION = '0.5.
|
|
11
|
+
export const APPROVAL_GATE_PACKAGE = '@ljwei-stak/dsh-approval-gate'
|
|
12
|
+
export const APPROVAL_GATE_VERSION = '0.5.2'
|
|
13
13
|
|
|
14
14
|
const ESCALATION_RE = /escalate\s+sandbox\s+to\s+([^\s:]+):?\s*([\s\S]*)/i
|
|
15
15
|
|
|
@@ -106,3 +106,4 @@ export function approvalGateStatus(ctx) {
|
|
|
106
106
|
policy: 'hard-risk-human-review',
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
+
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ This plugin installs on an original DeepSeek Harness checkout. It adds a cost-aw
|
|
|
15
15
|
- **GAL view** turns each new conversation into an archive. Every line retains its actual provider/model, so the nameplate, color, and portrait follow the active model. ERNIE, Wenxin, and Baidu provider/model identifiers consistently select `ERNIE娘` and `ernie1.png`. The route explanation is an auditable summary, not private model chain-of-thought.
|
|
16
16
|
- **Markdown/KaTeX** reuses Harness `MarkdownText` for headings, lists, tables, quotes, code, links, and formulas. Wide content scrolls inside the dialogue box; player input remains plain text.
|
|
17
17
|
- **Attachments and multimodality** use the native image pipeline and extract Markdown/TXT/JSON/code as text. PDF/DOCX and other binary files keep an explicit parsing state rather than silently inventing content.
|
|
18
|
-
- **Multi-task safety approval adapter** bundles
|
|
18
|
+
- **Multi-task safety approval adapter** bundles `@ljwei-stak/dsh-approval-gate@0.5.2`. Every sandbox escalation in a complex collective task carries the work package, stage, route, and task-count context; multi-task work is marked as a `bulk` risk candidate for Flash classification, hard-risk human review, learning, audit, and snapshots. Single-session mode is never forcibly rerouted.
|
|
19
19
|
- **Web search and anti-bot browsing** bundle `@liustack/modsearch@5.10.1` and `dsh-ego-browser@0.8.0`. ModSearch handles `web_search`, `read_page`, and `x_search`; Ego Browser opens a real Chrome/Edge window for JavaScript pages, login state, screenshots, and human verification. Search failures and anti-bot pages are routed to the visible browser flow.
|
|
20
20
|
- **OpenCode Zen compatibility** repairs official website overrides to the catalog-owned `/zen` and `/zen/v1` endpoints while leaving custom gateways untouched.
|
|
21
21
|
- **Release updates and desktop support** provide release checks and a one-click updater. When the desktop is outdated it updates the full client and bundled plugin; otherwise it updates only the plugin. Browser-only installs open Releases because they cannot write local files.
|
|
@@ -31,7 +31,7 @@ This plugin installs on an original DeepSeek Harness checkout. It adds a cost-aw
|
|
|
31
31
|
|
|
32
32
|
### Recommended: install the published npm package
|
|
33
33
|
|
|
34
|
-
The package is public and already includes the official `@liustack/modlens@3.25.4`,
|
|
34
|
+
The package is public and already includes the official `@liustack/modlens@3.25.4`, `@ljwei-stak/dsh-approval-gate@0.5.2`, `@liustack/modsearch@5.10.1`, and the registry package `dsh-ego-browser@0.8.0` plus its runtime peers (`@deepseek-ai/dsh-tools@0.1.0-rc.8`, `schemastery@3.18.0`). You do not need to clone the Ego Browser GitHub repository or install these dependencies separately.
|
|
35
35
|
|
|
36
36
|
1. Open PowerShell in the DSH Desktop checkout:
|
|
37
37
|
|
|
@@ -103,7 +103,7 @@ pnpm dsh plugin --profile web add "@ljwei-stak/model-router-galgame@$routerVersi
|
|
|
103
103
|
Do not add `dsh-approval-gate` separately to the same profile. If it was previously installed as a standalone entry, remove it before reinstalling the router to avoid a duplicate loader:
|
|
104
104
|
|
|
105
105
|
```powershell
|
|
106
|
-
pnpm dsh plugin --profile web remove dsh-approval-gate
|
|
106
|
+
pnpm dsh plugin --profile web remove @ljwei-stak/dsh-approval-gate
|
|
107
107
|
pnpm dsh plugin --profile web add "@ljwei-stak/model-router-galgame@$routerVersion"
|
|
108
108
|
```
|
|
109
109
|
|
|
@@ -164,10 +164,10 @@ pnpm dsh plugin --profile web add "@ljwei-stak/model-router-galgame@$routerVersi
|
|
|
164
164
|
```
|
|
165
165
|
|
|
166
166
|
For a reproducible deployment, replace `$routerVersion` with a concrete version
|
|
167
|
-
that you have verified with `npm view` (for example `0.4.
|
|
167
|
+
that you have verified with `npm view` (for example `0.4.15`):
|
|
168
168
|
|
|
169
169
|
```powershell
|
|
170
|
-
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.
|
|
170
|
+
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.15
|
|
171
171
|
```
|
|
172
172
|
|
|
173
173
|
You can also ask pnpm to update an already-installed package within its declared
|
|
@@ -568,3 +568,5 @@ The GAL interaction is inspired by [`Ayase34/gal-view`](https://github.com/Ayase
|
|
|
568
568
|
## Desktop application
|
|
569
569
|
|
|
570
570
|
The root `desktop/` directory provides server/local mode selection and Windows packaging. The desktop window, launcher, and Windows installer use the square icon derived from `DeepSeek_Harness娘.avif`. Source, settings schema, and reproducible build scripts remain in the repository; installers are published through the project Releases.
|
|
571
|
+
|
|
572
|
+
|
package/README.zh.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
- **GAL 视窗**:新会话自动形成存档;历史记录保留实际 provider/model,名牌、颜色和立绘随当前模型变化。ERNIE、文心一言和百度 provider/model 标识统一显示 `ERNIE娘` 与 `ernie1.png`。路由分析显示的是可审计摘要,不是模型私有思维链。
|
|
16
16
|
- **Markdown/KaTeX**:复用 Harness 的 `MarkdownText`,支持标题、列表、表格、引用、代码、链接和数学公式;宽表格、代码块和公式在对话框内滚动,玩家输入保持纯文本。
|
|
17
17
|
- **附件与多模态**:图片使用原生多模态管线,Markdown/TXT/JSON/代码文件提取为文本;PDF/DOCX 等二进制文件保留解析状态,不会静默伪造内容。
|
|
18
|
-
- **多任务安全审批适配**:内置
|
|
18
|
+
- **多任务安全审批适配**:内置 `@ljwei-stak/dsh-approval-gate@0.5.2` 适配。复杂集体任务的每次沙箱升级都会附带工作包、阶段、路由和任务数量上下文;批量任务标记为 `bulk` 风险候选,由审批插件执行 Flash 判定、硬风险人工确认、学习白名单、审计和快照。单独会话不会被路由器强制切换。
|
|
19
19
|
- **联网与反爬窗口**:内置 `@liustack/modsearch@5.10.1` 接管原生 `web_search`,并提供 `read_page`/`x_search`;内置 `dsh-ego-browser@0.8.0` 提供真实 Chrome 窗口、语义树、截图、点击、登录态和验证码检测。ModSearch 抓取失败或遇到动态/反爬页面时,路由指导模型切换到 Ego Browser;检测到人机验证会暂停并让用户在观察窗完成。
|
|
20
20
|
- **OpenCode Zen**:官方站点覆盖会自动恢复模型目录所需的 `/zen`、`/zen/v1` 端点;自定义网关不受影响。
|
|
21
21
|
- **更新与桌面端**:插件设置页提供 GitHub Release 检查和一键更新;客户端过期时更新完整客户端及内置插件,否则只更新插件。网页端无法写入本机文件时会打开 Releases 页面。
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
### 推荐方式:安装已发布的 npm 包
|
|
33
33
|
|
|
34
|
-
这个公开包会从 npm registry 安装官方 `@liustack/modlens@3.25.4
|
|
34
|
+
这个公开包会从 npm registry 安装官方 `@liustack/modlens@3.25.4`、`@ljwei-stak/dsh-approval-gate@0.5.2`、`@liustack/modsearch@5.10.1` 和 `dsh-ego-browser@0.8.0`,同时带上 Ego Browser 实际运行所需的 `@deepseek-ai/dsh-tools@0.1.0-rc.8`、`schemastery@3.18.0`。无需克隆 Ego Browser GitHub 仓库,也无需单独安装这些依赖。
|
|
35
35
|
|
|
36
36
|
1. 在 PowerShell 中进入 DSH Desktop 目录:
|
|
37
37
|
|
|
@@ -111,7 +111,7 @@ pnpm dsh plugin --profile web add "@ljwei-stak/model-router-galgame@$routerVersi
|
|
|
111
111
|
先删除旧条目再安装本插件,避免重复 loader:
|
|
112
112
|
|
|
113
113
|
```powershell
|
|
114
|
-
pnpm dsh plugin --profile web remove dsh-approval-gate
|
|
114
|
+
pnpm dsh plugin --profile web remove @ljwei-stak/dsh-approval-gate
|
|
115
115
|
pnpm dsh plugin --profile web add "@ljwei-stak/model-router-galgame@$routerVersion"
|
|
116
116
|
```
|
|
117
117
|
|
|
@@ -151,10 +151,10 @@ pnpm dsh plugin --profile web add "@ljwei-stak/model-router-galgame@$routerVersi
|
|
|
151
151
|
```
|
|
152
152
|
|
|
153
153
|
如果需要可复现部署,请把 `$routerVersion` 替换为通过 `npm view` 确认过的具体版本号
|
|
154
|
-
(例如 `0.4.
|
|
154
|
+
(例如 `0.4.15`):
|
|
155
155
|
|
|
156
156
|
```powershell
|
|
157
|
-
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.
|
|
157
|
+
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.15
|
|
158
158
|
```
|
|
159
159
|
|
|
160
160
|
已经安装过插件时,也可以让 pnpm 在当前版本范围内更新:
|
|
@@ -251,7 +251,7 @@ Harness 原生审批界面处理。路由器不会改变审批结论,只会在
|
|
|
251
251
|
|
|
252
252
|
## 数学路由模型
|
|
253
253
|
|
|
254
|
-
本节按照 `RESEARCH_PAPER_FRAMEWORK.md` 的论文框架,完整说明当前 `0.4.
|
|
254
|
+
本节按照 `RESEARCH_PAPER_FRAMEWORK.md` 的论文框架,完整说明当前 `0.4.15`
|
|
255
255
|
实现。生产路由器与离线实验插件共用质量下限、费用模型、目标函数和回退语义;
|
|
256
256
|
生产实现进一步加入 Pareto 剪枝与有界全局搜索,因此不再是互相独立的逐阶段局部贪心。
|
|
257
257
|
|
|
@@ -524,3 +524,5 @@ GAL 交互方式参考 [`Ayase34/gal-view`](https://github.com/Ayase34/gal-view)
|
|
|
524
524
|
## 桌面端
|
|
525
525
|
|
|
526
526
|
仓库根目录 `desktop/` 提供服务器端/本地运行模式切换和 Windows 打包配置。桌面窗口、启动器与 Windows 安装包使用 `DeepSeek_Harness娘.avif` 生成的方形图标。插件源码、设置 schema 和构建脚本均保留在仓库,安装包通过项目 Release 发布。
|
|
527
|
+
|
|
528
|
+
|
package/cordis.patch.yml
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
# The router annotates multi-task approval requests; dsh-approval-gate
|
|
13
13
|
# owns the Flash decision, human handoff, audit and snapshot UI.
|
|
14
14
|
- id: dsh-approval-gate
|
|
15
|
-
name: 'dsh-approval-gate'
|
|
15
|
+
name: '@ljwei-stak/dsh-approval-gate'
|
|
16
16
|
# The package dependency is transitive from the profile's point of view,
|
|
17
17
|
# so this bundle entry is needed when the router is installed by itself.
|
|
18
18
|
- id: model-router-galgame
|
|
@@ -30,3 +30,4 @@
|
|
|
30
30
|
name: '@linxin666/dsh-tool-describe-image'
|
|
31
31
|
config:
|
|
32
32
|
interceptImageSend: false
|
|
33
|
+
|
package/package.json
CHANGED
|
@@ -1,62 +1,75 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@ljwei-stak/model-router-galgame",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "DeepSeek Harness plugin: adaptive model routing, cost analysis and GAL view",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/ljwei-stak/model-router-galgame.git"
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://github.com/ljwei-stak/model-router-galgame#readme",
|
|
11
|
-
"bugs": {
|
|
12
|
-
"url": "https://github.com/ljwei-stak/model-router-galgame/issues"
|
|
13
|
-
},
|
|
14
|
-
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
},
|
|
17
|
-
"main": "./.dsh-plugin/index.mjs",
|
|
18
|
-
"exports": {
|
|
19
|
-
".": "./.dsh-plugin/index.mjs",
|
|
20
|
-
"./client": "./.dsh-plugin/client.js",
|
|
21
|
-
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
22
|
-
"./package.json": "./package.json"
|
|
23
|
-
},
|
|
24
|
-
"dsh": {
|
|
25
|
-
"bundle": {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@ljwei-stak/model-router-galgame",
|
|
3
|
+
"version": "0.4.15",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "DeepSeek Harness plugin: adaptive model routing, cost analysis and GAL view",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/ljwei-stak/model-router-galgame.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/ljwei-stak/model-router-galgame#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/ljwei-stak/model-router-galgame/issues"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"main": "./.dsh-plugin/index.mjs",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": "./.dsh-plugin/index.mjs",
|
|
20
|
+
"./client": "./.dsh-plugin/client.js",
|
|
21
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
"dsh": {
|
|
25
|
+
"bundle": {
|
|
26
|
+
"patch": "./cordis.patch.yml"
|
|
27
|
+
},
|
|
28
|
+
"client": {
|
|
29
|
+
"platform": "web",
|
|
30
|
+
"inject": [
|
|
31
|
+
"slots",
|
|
32
|
+
"sessions",
|
|
33
|
+
"modelDirectories",
|
|
34
|
+
"conversation",
|
|
35
|
+
"connection",
|
|
36
|
+
"remote",
|
|
37
|
+
"remote.session"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"dshUpdater": {
|
|
42
|
+
"minDesktopVersion": "0.4.8",
|
|
43
|
+
"minRuntimeVersion": "0.4.8"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
".dsh-plugin/index.mjs",
|
|
47
|
+
".dsh-plugin/client.js",
|
|
48
|
+
".dsh-plugin/shared/**/*.mjs",
|
|
49
|
+
"cordis.patch.yml",
|
|
50
|
+
"README.md",
|
|
51
|
+
"README.zh.md",
|
|
52
|
+
"LICENSE"
|
|
53
|
+
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build:client": "node scripts/build-client.mjs",
|
|
56
|
+
"check:client": "node scripts/build-client.mjs --check",
|
|
57
|
+
"test": "node --test tests/*.test.mjs"
|
|
58
|
+
},
|
|
59
|
+
"license": "MIT",
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=22.19"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@deepseek-ai/dsh-tools": "0.1.0-rc.8",
|
|
65
|
+
"@liustack/modlens": "3.25.4",
|
|
66
|
+
"@liustack/modsearch": "5.10.1",
|
|
67
|
+
"@ljwei-stak/dsh-approval-gate": "0.5.2",
|
|
68
|
+
"dsh-ego-browser": "0.8.0",
|
|
69
|
+
"schemastery": "3.18.0"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@deepseek-ai/dsh-settings": "^0.1.1-rc.1",
|
|
73
|
+
"@deepseek-ai/schemastery": "^3.18.1"
|
|
74
|
+
}
|
|
75
|
+
}
|