dsh-rolegroup 0.6.0 → 0.6.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.en.md +3 -2
- package/README.md +3 -2
- package/lib/client.js +1 -1
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +5 -3
- package/scripts/build-client.mjs +11 -1
package/README.en.md
CHANGED
|
@@ -7,7 +7,7 @@ instance, so the tool name is the role name.
|
|
|
7
7
|
The role/category binding is inspired by
|
|
8
8
|
[oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent) ("omo"); see §10.
|
|
9
9
|
|
|
10
|
-
> Version **0.6.
|
|
10
|
+
> Version **0.6.1** | dsh **≥ 0.2.1-rc.1** | MIT
|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
@@ -255,7 +255,7 @@ fails to activate goes into `invalid[]` and is not registered.
|
|
|
255
255
|
```sh
|
|
256
256
|
npm run link:deps # first after cloning: create the schemastery symlink
|
|
257
257
|
npm install # then install the esbuild devDependency
|
|
258
|
-
npm test # offline smoke suite,
|
|
258
|
+
npm test # offline smoke suite, 134 cases; pretest runs link:deps
|
|
259
259
|
npm run build:client # after editing src/client/** or lib/roles.js
|
|
260
260
|
```
|
|
261
261
|
|
|
@@ -279,6 +279,7 @@ Layout:
|
|
|
279
279
|
| `src/client/` | Client sources (`controller.js` / `card.jsx` / `locales.js` / `meta.js` / `config-file.js`); `lib/client.js` is the esbuild artifact and must be rebuilt after edits |
|
|
280
280
|
| `tests/` | Offline smoke suite (plain Node, no browser) |
|
|
281
281
|
| `scripts/` | `build-client.mjs` (esbuild bundle; injects the `package.json` version) and `link-deployment-deps.mjs` (environment symlink) |
|
|
282
|
+
| `locale/` | Plugin metadata: `meta.title` and `meta.description` in `en.json` / `zh.json`, shown by the Plugins page and the Plugin Market |
|
|
282
283
|
|
|
283
284
|
## 8. Compatibility
|
|
284
285
|
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ dsh 的角色化委派插件。先定义角色(名字、绑定模型、persona
|
|
|
6
6
|
角色/类别绑定的思路参考了 [oh-my-openagent](https://github.com/code-yeongyu/oh-my-openagent)(omo),
|
|
7
7
|
详见 §10。
|
|
8
8
|
|
|
9
|
-
> 版本 **0.6.
|
|
9
|
+
> 版本 **0.6.1** | 要求 dsh **≥ 0.2.1-rc.1** | MIT
|
|
10
10
|
|
|
11
11
|
---
|
|
12
12
|
|
|
@@ -231,7 +231,7 @@ fallback deepseek-official/deepseek-flash ✅ ✅
|
|
|
231
231
|
```sh
|
|
232
232
|
npm run link:deps # 首次 clone 后先跑:建 schemastery 软链
|
|
233
233
|
npm install # 再装 devDependency esbuild
|
|
234
|
-
npm test # 离线 smoke test,
|
|
234
|
+
npm test # 离线 smoke test,134 项;pretest 会自动跑 link:deps
|
|
235
235
|
npm run build:client # 改了 src/client/** 或 lib/roles.js 后重建 lib/client.js
|
|
236
236
|
```
|
|
237
237
|
|
|
@@ -253,6 +253,7 @@ npm run build:client # 改了 src/client/** 或 lib/roles.js 后重建 lib/clie
|
|
|
253
253
|
| `src/client/` | 客户端源码(`controller.js` / `card.jsx` / `locales.js` / `meta.js` / `config-file.js`);`lib/client.js` 是 esbuild 产物,改完要重建 |
|
|
254
254
|
| `tests/` | 离线 smoke suite(Node 直跑,不需要浏览器) |
|
|
255
255
|
| `scripts/` | `build-client.mjs`(esbuild 打包,注入 `package.json` 的版本号)、`link-deployment-deps.mjs`(环境软链) |
|
|
256
|
+
| `locale/` | 插件元数据:`en.json` / `zh.json` 里的 `meta.title` 与 `meta.description`,供插件页与插件市场显示本地化名称和说明 |
|
|
256
257
|
|
|
257
258
|
## 8. 兼容性
|
|
258
259
|
|
package/lib/client.js
CHANGED
|
@@ -33,7 +33,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
33
33
|
var PLUGIN_VERSION, PLUGIN_REPO_URL;
|
|
34
34
|
var init_meta = __esm({
|
|
35
35
|
"src/client/meta.js"() {
|
|
36
|
-
PLUGIN_VERSION = true ? "0.6.
|
|
36
|
+
PLUGIN_VERSION = true ? "0.6.1" : "dev";
|
|
37
37
|
PLUGIN_REPO_URL = "https://github.com/zhouxnsz/dsh-rolegroup";
|
|
38
38
|
}
|
|
39
39
|
});
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-rolegroup",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "角色化委派插件:把「这类活该用哪个模型」固化为角色(名字 + 绑定模型 + persona),按角色名委派 · Role-based delegation: bind each kind of work to a model once and delegate by role name",
|
|
5
5
|
"icon": "assets/icon.svg",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Zhou.XiaoNing",
|
|
@@ -26,13 +26,15 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
".": "./lib/index.js",
|
|
28
28
|
"./client": "./lib/client.js",
|
|
29
|
-
"./package.json": "./package.json"
|
|
29
|
+
"./package.json": "./package.json",
|
|
30
|
+
"./locale/*.json": "./locale/*.json"
|
|
30
31
|
},
|
|
31
32
|
"files": [
|
|
32
33
|
"lib",
|
|
33
34
|
"src",
|
|
34
35
|
"scripts",
|
|
35
36
|
"cordis.patch.yml",
|
|
37
|
+
"locale",
|
|
36
38
|
"README.md",
|
|
37
39
|
"assets/icon.svg"
|
|
38
40
|
],
|
package/scripts/build-client.mjs
CHANGED
|
@@ -4,11 +4,21 @@
|
|
|
4
4
|
// $NM/dsh-client-ui-settings-plugins/lib/client.js 头部/尾部)逐字同构。
|
|
5
5
|
// react / react/jsx-runtime / @deepseek-ai/dsh-client-ui-slots 由 shell seed 解析(C3),
|
|
6
6
|
// 必须保持 external,不得进 bundle。
|
|
7
|
-
import { build } from 'esbuild'
|
|
8
7
|
import { readFileSync } from 'node:fs'
|
|
9
8
|
import { fileURLToPath } from 'node:url'
|
|
10
9
|
import { join } from 'node:path'
|
|
11
10
|
|
|
11
|
+
// esbuild 是 devDependency:缺了要给可执行的提示,而不是把 Node 的
|
|
12
|
+
// ERR_MODULE_NOT_FOUND 堆栈(含 Buffer dump)直接甩给用户。
|
|
13
|
+
let build
|
|
14
|
+
try {
|
|
15
|
+
({ build } = await import('esbuild'))
|
|
16
|
+
} catch (error) {
|
|
17
|
+
console.error('[build-client] 缺少 esbuild(devDependency)。请先在本仓库跑 `npm install`,然后重试。')
|
|
18
|
+
console.error(`[build-client] ${error?.message ?? error}`)
|
|
19
|
+
process.exit(1)
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
const root = fileURLToPath(new URL('..', import.meta.url))
|
|
13
23
|
// 设置页头部展示的版本号:唯一真源是 package.json。浏览器侧读不到包文件,
|
|
14
24
|
// 故在构建期把 version 作为字面量注入(src/client/meta.js 消费 `__ROLEGROUP_VERSION__`)。
|