@ljwei-stak/model-router-galgame 0.4.21 → 0.4.23
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/client.js +1 -1
- package/INSTALLATION_GUIDE.zh.md +19 -7
- package/README.md +35 -10
- package/README.zh.md +35 -10
- package/cordis.patch.yml +3 -0
- package/package.json +3 -2
package/.dsh-plugin/client.js
CHANGED
|
@@ -43528,7 +43528,7 @@ var gal_scene_default = { version: 1, settings: { stageW: 1920, stageH: 1080, sh
|
|
|
43528
43528
|
|
|
43529
43529
|
// .dsh-plugin/client/index.mjs
|
|
43530
43530
|
var name = "gal-view";
|
|
43531
|
-
var PLUGIN_VERSION = "0.4.
|
|
43531
|
+
var PLUGIN_VERSION = "0.4.23";
|
|
43532
43532
|
function createUpdateApi2(ctx) {
|
|
43533
43533
|
let connection;
|
|
43534
43534
|
try {
|
package/INSTALLATION_GUIDE.zh.md
CHANGED
|
@@ -16,6 +16,18 @@
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
+
## PPT 生成扩展
|
|
20
|
+
|
|
21
|
+
从 0.4.22 起,Router 聚合包自动安装并加载 PPT Master;当前 0.4.23 固定使用 `@ljwei-stak/ppt-master-for-mgr@6.3.2`,修复 Python 3.13 及更新版本在 Windows DSH 沙箱中导出 PPTX 时的临时目录权限错误。制作 PPT 时使用普通工作会话或 GAL 工作会话,在代理预设中启用 DSH 原生 `skill`、文件和终端工具,并在实际执行环境中安装 Python 3.10+;继续保留宿主沙箱和审批设置。
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr doctor
|
|
25
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr setup
|
|
26
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr doctor
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
`setup` 主动运行 pip 安装依赖,npm 安装本身不会安装 Python 依赖。指定解释器时为命令添加 `--python <解释器绝对路径>`,也可使用 `PPT_MASTER_PYTHON`;工作代理需使用相同解释器。随后在可写工作目录中请求“使用 ppt-master 生成 PPTX”,确认模型通过原生 `skill` 加载 `ppt-master` 后生成并检查文件。剧情模式和自由模式的角色对话不承担 PPT 工作流。完整配置与可选功能要求见 [README 的 PPT 安装步骤](README.zh.md#4-准备-ppt-生成环境) 和 [PPT Master 项目](https://github.com/ljwei-stak/ppt-master-for-MGR)。
|
|
30
|
+
|
|
19
31
|
## 1. 前置要求
|
|
20
32
|
|
|
21
33
|
### ✅ 确认 DeepSeek Harness 已安装
|
|
@@ -86,8 +98,8 @@ sudo mv dsh /usr/local/bin/
|
|
|
86
98
|
|
|
87
99
|
```powershell
|
|
88
100
|
pnpm config set registry https://registry.npmjs.org/
|
|
89
|
-
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.
|
|
90
|
-
pnpm dsh plugin --profile desktop add @ljwei-stak/model-router-galgame@0.4.
|
|
101
|
+
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.23
|
|
102
|
+
pnpm dsh plugin --profile desktop add @ljwei-stak/model-router-galgame@0.4.23
|
|
91
103
|
```
|
|
92
104
|
|
|
93
105
|
### 方法2: Git 克隆(仅源码开发)
|
|
@@ -151,11 +163,11 @@ model-router-galgame/
|
|
|
151
163
|
|
|
152
164
|
```powershell
|
|
153
165
|
pnpm config set registry https://registry.npmjs.org/
|
|
154
|
-
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.
|
|
155
|
-
pnpm dsh plugin --profile desktop add @ljwei-stak/model-router-galgame@0.4.
|
|
166
|
+
pnpm dsh plugin --profile web add @ljwei-stak/model-router-galgame@0.4.23
|
|
167
|
+
pnpm dsh plugin --profile desktop add @ljwei-stak/model-router-galgame@0.4.23
|
|
156
168
|
```
|
|
157
169
|
|
|
158
|
-
其中 `@0.4.
|
|
170
|
+
其中 `@0.4.23` 可以替换为通过 `npm view @ljwei-stak/model-router-galgame version --registry=https://registry.npmjs.org/` 查询到的版本号。官方 ModLens、审批门控、ModSearch、Ego Browser 和 PPT Master 依赖会自动解析;PPT 的 Python 依赖另按本指南开头步骤配置。
|
|
159
171
|
|
|
160
172
|
如果正在本地开发,再使用目录安装:
|
|
161
173
|
|
|
@@ -182,7 +194,7 @@ dsh plugin --profile web add /path/to/model-router-galgame
|
|
|
182
194
|
dsh plugin --profile web list
|
|
183
195
|
|
|
184
196
|
# 预期输出包含:
|
|
185
|
-
# @ljwei-stak/model-router-galgame@0.4.
|
|
197
|
+
# @ljwei-stak/model-router-galgame@0.4.23
|
|
186
198
|
```
|
|
187
199
|
|
|
188
200
|
### 步骤4: 重启 Harness
|
|
@@ -789,5 +801,5 @@ dsh restart
|
|
|
789
801
|
|
|
790
802
|
**文档版本**: 1.0
|
|
791
803
|
**更新日期**: 2026-09-01
|
|
792
|
-
**适用插件版本**: 0.4.
|
|
804
|
+
**适用插件版本**: 0.4.23
|
|
793
805
|
**已验证宿主版本**: DSH Desktop 2.0.5 / `@deepseek-ai/dsh@0.1.2-rc.1`
|
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
English | [中文](README.zh.md)
|
|
4
4
|
|
|
5
|
-
A model-routing and GAL conversation plugin for DeepSeek Harness / DSH Desktop. It combines task assignment, cost estimates, model-character dialogue, web tools, and approval integration in one npm package, and runs inside an existing DSH host.
|
|
5
|
+
A model-routing and GAL conversation plugin for DeepSeek Harness / DSH Desktop. It combines task assignment, cost estimates, model-character dialogue, web tools, PPT generation skills, and approval integration in one npm package, and runs inside an existing DSH host.
|
|
6
6
|
|
|
7
|
-
**Current release: 0.4.
|
|
7
|
+
**Current release: 0.4.23** · [npm package](https://www.npmjs.com/package/@ljwei-stak/model-router-galgame) · [GitHub Releases](https://github.com/ljwei-stak/model-router-galgame/releases) · [DSH Desktop](https://github.com/anywhere-labs/dsh-desktop/releases)
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -43,11 +43,18 @@ Story mode does not require provider credentials. Free mode requires a working m
|
|
|
43
43
|
- **Approval integration** attaches work-package, stage, model, and task-count context to sandbox escalation requests in multi-task work. Approval decisions, human confirmation, auditing, and learning are handled by `@ljwei-stak/dsh-approval-gate` and the host permission policy. Installing the router does not enable automatic approval.
|
|
44
44
|
- **OpenCode Zen compatibility** repairs OpenCode endpoint overrides mistakenly set to official website URLs while preserving custom gateways.
|
|
45
45
|
|
|
46
|
+
### PowerPoint generation with PPT Master
|
|
47
|
+
|
|
48
|
+
- **PPT Master** is bundled as a native DSH skill. In a normal work conversation, a PowerPoint/PPT/PPTX request can load `ppt-master` through the host's `skill` tool and follow its planning, SVG, validation, and PPTX export workflow.
|
|
49
|
+
- Model Router keeps the host's skill catalog, loaded skill instructions, and file/terminal tools available when it chooses a model or advances a work stage. Use ordinary chat or the GAL conversation view for presentation work; story mode does not run tools, and free-play character dialogue is not the work agent.
|
|
50
|
+
- The package includes the skill, Python scripts, and templates. Python dependencies require the explicit setup below; npm installation does not install Python or run pip. Generated presentations belong in the conversation's writable workspace.
|
|
51
|
+
- Router 0.4.23 bundles PPT Master 6.3.2, which fixes PPTX staging-directory permissions under the Windows DSH sandbox with Python 3.13 or newer. Host sandbox and approval settings remain in effect.
|
|
52
|
+
|
|
46
53
|
### Separate plugin and desktop updates
|
|
47
54
|
|
|
48
55
|
"GAL 视窗 → 项目更新" (GAL view → Project updates) checks the plugin's npm version and the official DSH Desktop version separately. It offers "仅更新 npm 插件" (Update only the npm plugin), "仅更新完整客户端" (Update only the full client), and "一键更新插件与客户端" (Update plugin and client). Desktop plugin installation runs through the authenticated host connection. Fully exit and restart DSH Desktop after a successful installation.
|
|
49
56
|
|
|
50
|
-
A page opened in a regular browser can check the plugin version and open download pages, but cannot install the desktop client or change its profile directly. The plugin's `0.4.
|
|
57
|
+
A page opened in a regular browser can check the plugin version and open download pages, but cannot install the desktop client or change its profile directly. The plugin's `0.4.23` version and DSH Desktop's version are independent.
|
|
51
58
|
|
|
52
59
|
## Installation
|
|
53
60
|
|
|
@@ -69,7 +76,7 @@ Installing this npm package does not install DSH Desktop, model services, or a b
|
|
|
69
76
|
|
|
70
77
|
```sh
|
|
71
78
|
dsh --version
|
|
72
|
-
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.
|
|
79
|
+
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.23
|
|
73
80
|
```
|
|
74
81
|
|
|
75
82
|
3. After installation succeeds, use the desktop restart control, or explicitly quit from the system tray and reopen the app. Select the same profile. Closing the window may only hide the application.
|
|
@@ -84,7 +91,7 @@ If you do not have a global `dsh` but already have Node.js/npm and pnpm, replace
|
|
|
84
91
|
|
|
85
92
|
```sh
|
|
86
93
|
dsh --version
|
|
87
|
-
dsh plugin --profile web add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.
|
|
94
|
+
dsh plugin --profile web add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.23
|
|
88
95
|
dsh --profile web --dump-config
|
|
89
96
|
```
|
|
90
97
|
|
|
@@ -106,20 +113,37 @@ For desktop, run this in the DSH terminal opened by the app:
|
|
|
106
113
|
dsh --dump-config
|
|
107
114
|
```
|
|
108
115
|
|
|
109
|
-
For Web / CLI, use `dsh --profile web --dump-config`. The combined configuration should include all
|
|
116
|
+
For Web / CLI, use `dsh --profile web --dump-config`. The combined configuration should include all six plugins below, with no duplicate loader IDs. A configuration dump does not replace checking that the host starts successfully. Install only the Router aggregate package; its dependencies and bundle entries are added automatically.
|
|
110
117
|
|
|
111
|
-
| Plugin | Pinned version for 0.4.
|
|
118
|
+
| Plugin | Pinned version for 0.4.23 | Purpose |
|
|
112
119
|
| --- | --- | --- |
|
|
113
|
-
| `@ljwei-stak/model-router-galgame` | `0.4.
|
|
120
|
+
| `@ljwei-stak/model-router-galgame` | `0.4.23` | Routing, GAL view, story/free modes, and update controls |
|
|
114
121
|
| `@liustack/modlens` | `3.25.4` | Image understanding through compatible routes |
|
|
115
122
|
| `@liustack/modsearch` | `5.10.1` | Search and page reading |
|
|
116
123
|
| `@ljwei-stak/dsh-ego-browser` | `0.8.3` | Visible browser tools |
|
|
117
124
|
| `@ljwei-stak/dsh-approval-gate` | `0.5.3` | Approval policies and auditing |
|
|
125
|
+
| `@ljwei-stak/ppt-master-for-mgr` | `6.3.2` | Native PPT skill, scripts, and templates |
|
|
118
126
|
|
|
119
|
-
`schemastery@3.18.0`
|
|
127
|
+
`schemastery@3.18.0` and PPT Master's native skill provider are also installed automatically as runtime dependencies. These dependencies are pinned: updating Router uses the dependency combination declared by the new Router package, rather than updating every dependency to its own `latest`.
|
|
120
128
|
|
|
121
129
|
Create a conversation in DSH and confirm that the **"GAL视窗" (GAL view)** tab appears. If it is missing, first confirm the profile, restart the host, and check "启用 GAL 视窗" (Enable GAL view) in Settings.
|
|
122
130
|
|
|
131
|
+
### 4. Prepare PPT generation
|
|
132
|
+
|
|
133
|
+
Install Python 3.10 or newer in the environment where the DSH work agent executes commands. Enable the host's native `skill` tool (`@deepseek-ai/dsh-tool-skill`) and the file/terminal tools in that agent's preset. The bundled provider adds `ppt-master` to the native catalog; it does not override the preset's tools or permissions.
|
|
134
|
+
|
|
135
|
+
Run in the DSH terminal or the same execution environment as the work agent:
|
|
136
|
+
|
|
137
|
+
```sh
|
|
138
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr doctor
|
|
139
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr setup
|
|
140
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr doctor
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`setup` explicitly runs pip for the bundled requirements. Use a dedicated Python virtual environment when appropriate, then add `--python /absolute/path/to/python` to each command, or set `PPT_MASTER_PYTHON` to that interpreter. On Windows, quote interpreter paths containing spaces. Configure the work agent to use that same interpreter. `doctor` checks core Python imports; it is not a visual quality or complete optional-service check. Some conversion, rendering, speech, or image features need additional software or credentials described in [PPT Master](https://github.com/ljwei-stak/ppt-master-for-MGR).
|
|
144
|
+
|
|
145
|
+
Restart DSH, open a normal work conversation with a writable workspace, and request, for example: "Use ppt-master to create a 10-slide project report and save the PPTX in this workspace." Confirm that the agent loads `ppt-master` through `skill`, then generates and checks the output. Follow the host's normal approval prompts for file and command access. A PowerPoint file is generated by the work agent; the GAL attachment input still does not parse binary documents directly.
|
|
146
|
+
|
|
123
147
|
## First use
|
|
124
148
|
|
|
125
149
|
To play without a model API, open **"GAL视窗 → GAL游戏 → 剧情模式" (GAL view → GAL game → Story mode)**. The steps below configure the existing routing and AI conversation features; the same host model configuration is used by free mode.
|
|
@@ -183,13 +207,14 @@ For Web / CLI, use `dsh plugin --profile web remove @ljwei-stak/model-router-gal
|
|
|
183
207
|
| `duplicate loader entry id` | A dependency may be installed separately and also loaded by the Router bundle in the same profile. Remove only standalone entries confirmed to be duplicates. |
|
|
184
208
|
| `EADDRINUSE` / `task-board ledger is already owned` | Shut down the old host process using that profile normally. Changing the port does not release the profile lock. |
|
|
185
209
|
| Image understanding fails | Check the ModLens engine, credentials, and available routes. Convert PDF/DOCX files to text first. |
|
|
210
|
+
| PPT skill is absent or PPTX export fails | Confirm the `ppt-master-for-mgr` bundle entry and native `skill` tool are enabled in the same profile, use a work conversation, then run `doctor` with the agent's Python interpreter. Run `setup` for missing core dependencies and check workspace permissions. |
|
|
186
211
|
| Update check fails | Check npm / GitHub connectivity. "Unable to confirm version" does not mean the installation is current. |
|
|
187
212
|
|
|
188
213
|
For example, only after confirming that ModLens is a duplicate standalone dependency in the same profile, run:
|
|
189
214
|
|
|
190
215
|
```sh
|
|
191
216
|
dsh plugin remove @liustack/modlens
|
|
192
|
-
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.
|
|
217
|
+
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.23
|
|
193
218
|
```
|
|
194
219
|
|
|
195
220
|
For Web / CLI, add `--profile web` after `plugin` in both commands. Handle other duplicate dependencies according to the actual error; do not remove all plugins at once. These removal commands are unnecessary when no duplicate entry exists.
|
package/README.zh.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 中文
|
|
4
4
|
|
|
5
|
-
适用于 DeepSeek Harness / DSH Desktop 的模型路由与 GAL
|
|
5
|
+
适用于 DeepSeek Harness / DSH Desktop 的模型路由与 GAL 对话插件。它把任务分配、费用估算、模型角色对话、联网工具、PPT 生成技能和审批适配整合为一个 npm 插件包,需要在已有的 DSH 宿主中使用。
|
|
6
6
|
|
|
7
|
-
**当前发布版本:0.4.
|
|
7
|
+
**当前发布版本:0.4.23** · [npm 包](https://www.npmjs.com/package/@ljwei-stak/model-router-galgame) · [GitHub Releases](https://github.com/ljwei-stak/model-router-galgame/releases) · [DSH Desktop](https://github.com/anywhere-labs/dsh-desktop/releases)
|
|
8
8
|
|
|
9
9
|
## 功能介绍
|
|
10
10
|
|
|
@@ -43,11 +43,18 @@
|
|
|
43
43
|
- **审批适配**:在多任务沙箱升级请求中附加工作包、阶段、模型和任务数量。审批决定、人工确认、审计与学习由 `@ljwei-stak/dsh-approval-gate` 和宿主权限策略负责,安装路由器不等于开启自动批准。
|
|
44
44
|
- **OpenCode Zen 兼容**:修复误填成官方网页地址的 OpenCode 端点覆盖,保留自定义网关。
|
|
45
45
|
|
|
46
|
+
### PPT Master 演示文稿生成
|
|
47
|
+
|
|
48
|
+
- **PPT Master** 以 DSH 原生 skill 随包加载。在普通工作会话中收到 PowerPoint/PPT/PPTX 需求后,模型可通过宿主 `skill` 工具加载 `ppt-master`,按规划、SVG 制作、检查和 PPTX 导出的流程执行。
|
|
49
|
+
- Model Router 在选择模型和推进工作阶段时保留宿主技能目录、已加载的技能指令及文件/终端工具。制作 PPT 应使用普通聊天或 GAL 工作会话;剧情模式不调用工具,自由模式的角色对话也不是工作代理。
|
|
50
|
+
- 包内包含技能、Python 脚本和模板。Python 依赖需按下方步骤主动安装,npm 安装不会自动安装 Python 或运行 pip。生成的演示文稿保存在会话可写工作目录中。
|
|
51
|
+
- Router 0.4.23 随包加载 PPT Master 6.3.2,修复 Python 3.13 及更新版本在 Windows DSH 沙箱中导出 PPTX 时的临时目录权限错误,宿主沙箱和审批设置仍然生效。
|
|
52
|
+
|
|
46
53
|
### 插件与桌面端分别更新
|
|
47
54
|
|
|
48
55
|
“GAL 视窗 → 项目更新”分别检查插件 npm 版本和官方 DSH Desktop 版本。支持“仅更新 npm 插件”“仅更新完整客户端”和“一键更新插件与客户端”。桌面端插件安装通过已认证的宿主连接执行,成功后需要完全退出并重启 DSH Desktop。
|
|
49
56
|
|
|
50
|
-
普通浏览器中的页面可以查询插件版本、打开下载页面,但不能直接安装桌面端或修改其 profile。插件的 `0.4.
|
|
57
|
+
普通浏览器中的页面可以查询插件版本、打开下载页面,但不能直接安装桌面端或修改其 profile。插件的 `0.4.23` 与 DSH Desktop 的版本号相互独立。
|
|
51
58
|
|
|
52
59
|
## 安装
|
|
53
60
|
|
|
@@ -69,7 +76,7 @@
|
|
|
69
76
|
|
|
70
77
|
```sh
|
|
71
78
|
dsh --version
|
|
72
|
-
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.
|
|
79
|
+
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.23
|
|
73
80
|
```
|
|
74
81
|
|
|
75
82
|
3. 安装成功后,使用桌面端的重启入口,或从托盘明确退出后重新打开,仍选择刚才的 profile。仅关闭窗口可能只是隐藏应用。
|
|
@@ -84,7 +91,7 @@ dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/m
|
|
|
84
91
|
|
|
85
92
|
```sh
|
|
86
93
|
dsh --version
|
|
87
|
-
dsh plugin --profile web add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.
|
|
94
|
+
dsh plugin --profile web add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.23
|
|
88
95
|
dsh --profile web --dump-config
|
|
89
96
|
```
|
|
90
97
|
|
|
@@ -106,20 +113,37 @@ dsh web
|
|
|
106
113
|
dsh --dump-config
|
|
107
114
|
```
|
|
108
115
|
|
|
109
|
-
Web / CLI 使用 `dsh --profile web --dump-config
|
|
116
|
+
Web / CLI 使用 `dsh --profile web --dump-config`。组合后的配置应包含以下六个插件,且没有重复 loader ID。配置导出不能替代实际启动验证;只需安装 Router 聚合包,依赖和 bundle 条目会自动加入。
|
|
110
117
|
|
|
111
|
-
| 插件 | 0.4.
|
|
118
|
+
| 插件 | 0.4.23 固定依赖版本 | 用途 |
|
|
112
119
|
| --- | --- | --- |
|
|
113
|
-
| `@ljwei-stak/model-router-galgame` | `0.4.
|
|
120
|
+
| `@ljwei-stak/model-router-galgame` | `0.4.23` | 路由、GAL 视窗、剧情/自由模式和更新入口 |
|
|
114
121
|
| `@liustack/modlens` | `3.25.4` | 兼容路由的图片理解 |
|
|
115
122
|
| `@liustack/modsearch` | `5.10.1` | 搜索与页面读取 |
|
|
116
123
|
| `@ljwei-stak/dsh-ego-browser` | `0.8.3` | 可见浏览器工具 |
|
|
117
124
|
| `@ljwei-stak/dsh-approval-gate` | `0.5.3` | 审批策略与审计 |
|
|
125
|
+
| `@ljwei-stak/ppt-master-for-mgr` | `6.3.2` | 原生 PPT 技能、脚本和模板 |
|
|
118
126
|
|
|
119
|
-
`schemastery@3.18.0`
|
|
127
|
+
`schemastery@3.18.0` 和 PPT Master 的原生技能提供器也会作为运行依赖自动安装。上述依赖采用固定版本;更新 Router 时使用新 Router 包声明的依赖组合,而不是自动升级每个依赖到各自的 `latest`。
|
|
120
128
|
|
|
121
129
|
在 DSH 中新建会话,确认有 **“GAL视窗”** 标签。若没有,先确认 profile 正确、已重启宿主,并检查设置中的“启用 GAL 视窗”。
|
|
122
130
|
|
|
131
|
+
### 4. 准备 PPT 生成环境
|
|
132
|
+
|
|
133
|
+
在 DSH 工作代理执行命令的环境中安装 Python 3.10 或更新版本。在该代理的预设中启用宿主原生 `skill` 工具(`@deepseek-ai/dsh-tool-skill`)以及文件和终端工具。随包加载的提供器会把 `ppt-master` 注册到原生技能目录,不会改写预设的工具和权限。
|
|
134
|
+
|
|
135
|
+
在 DSH 终端或与工作代理相同的执行环境中运行:
|
|
136
|
+
|
|
137
|
+
```sh
|
|
138
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr doctor
|
|
139
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr setup
|
|
140
|
+
npx --yes --package=@ljwei-stak/ppt-master-for-mgr@6.3.2 ppt-master-for-mgr doctor
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`setup` 会明确运行 pip 安装包内 requirements。可以先创建专用 Python 虚拟环境,再为每条命令添加 `--python /absolute/path/to/python`,或将环境变量 `PPT_MASTER_PYTHON` 设置为该解释器;Windows 路径包含空格时需加引号。工作代理也应使用同一个解释器。`doctor` 检查核心 Python 模块,不代表视觉质量或全部可选服务已通过检查。部分转换、渲染、配音和生图功能还需要 [PPT Master 文档](https://github.com/ljwei-stak/ppt-master-for-MGR) 中说明的额外软件或凭据。
|
|
144
|
+
|
|
145
|
+
重启 DSH,在可写工作目录中开启普通工作会话,例如发送:“请使用 ppt-master 制作一份 10 页的项目汇报,并将 PPTX 保存到当前工作目录。”确认模型通过 `skill` 加载 `ppt-master`,随后生成并检查文件。文件和命令访问仍遵循宿主正常审批。PPT 由工作代理生成;GAL 附件入口仍不会直接解析二进制文档。
|
|
146
|
+
|
|
123
147
|
## 首次使用
|
|
124
148
|
|
|
125
149
|
只玩剧情时,直接打开 **“GAL视窗 → GAL游戏 → 剧情模式”**,无需模型 API。以下步骤用于配置原有路由与 AI 对话,自由模式也使用宿主的模型配置。
|
|
@@ -183,13 +207,14 @@ Web / CLI 使用 `dsh plugin --profile web remove @ljwei-stak/model-router-galga
|
|
|
183
207
|
| `duplicate loader entry id` | 同一 profile 中某个依赖可能被单独安装,又被 Router bundle 加载;只删除确认重复的独立条目。 |
|
|
184
208
|
| `EADDRINUSE` / `task-board ledger is already owned` | 先正常关闭占用该 profile 的旧宿主进程。换端口不能解除 profile 锁。 |
|
|
185
209
|
| 图片不能识别 | 检查 ModLens 引擎、凭据和可用路由。PDF/DOCX 先转换为文本。 |
|
|
210
|
+
| 找不到 PPT 技能或 PPTX 导出失败 | 确认同一 profile 中存在 `ppt-master-for-mgr` bundle 条目,并在工作代理预设启用原生 `skill`;使用工作会话,按代理实际 Python 运行 `doctor`,缺少核心依赖时执行 `setup`,同时检查工作目录权限。 |
|
|
186
211
|
| 更新检查失败 | 检查 npm / GitHub 网络连接;“无法确认版本”不表示已经是最新版。 |
|
|
187
212
|
|
|
188
213
|
例如,仅在确认 ModLens 是同一 profile 中重复安装的独立依赖后,执行:
|
|
189
214
|
|
|
190
215
|
```sh
|
|
191
216
|
dsh plugin remove @liustack/modlens
|
|
192
|
-
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.
|
|
217
|
+
dsh plugin add --save-exact --registry=https://registry.npmjs.org/ @ljwei-stak/model-router-galgame@0.4.23
|
|
193
218
|
```
|
|
194
219
|
|
|
195
220
|
Web / CLI 在两条命令的 `plugin` 后加 `--profile web`。其他重复依赖按实际报错处理,不要一次删除全部插件。没有重复条目时不需要执行这些移除命令。
|
package/cordis.patch.yml
CHANGED
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
# Ego Browser supplies visible Chromium tools for JS-heavy and anti-bot pages.
|
|
10
10
|
- id: ego-browser
|
|
11
11
|
name: '@ljwei-stak/dsh-ego-browser'
|
|
12
|
+
# Register PPT Master in the host's native skill catalog.
|
|
13
|
+
- id: ppt-master-for-mgr
|
|
14
|
+
name: '@ljwei-stak/ppt-master-for-mgr'
|
|
12
15
|
# The router annotates multi-task approval requests; dsh-approval-gate
|
|
13
16
|
# owns the Flash decision, human handoff, audit and snapshot UI.
|
|
14
17
|
- id: dsh-approval-gate
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ljwei-stak/model-router-galgame",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "DeepSeek Harness plugin: adaptive model routing, cost analysis and GAL view",
|
|
6
6
|
"repository": {
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
"@liustack/modsearch": "5.10.1",
|
|
67
67
|
"@ljwei-stak/dsh-approval-gate": "0.5.3",
|
|
68
68
|
"schemastery": "3.18.0",
|
|
69
|
-
"@ljwei-stak/dsh-ego-browser": "0.8.3"
|
|
69
|
+
"@ljwei-stak/dsh-ego-browser": "0.8.3",
|
|
70
|
+
"@ljwei-stak/ppt-master-for-mgr": "6.3.2"
|
|
70
71
|
},
|
|
71
72
|
"peerDependencies": {
|
|
72
73
|
"@deepseek-ai/dsh-settings": "^0.1.1-rc.1",
|