dsh-life-pipline 0.3.0 → 0.3.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 +4 -3
- package/package.json +49 -49
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ dsh-life-pipline/ # 整合包:只声明依赖,不插组件行
|
|
|
42
42
|
| --- | --- | --- | --- |
|
|
43
43
|
| 插件列表卡片(整合包) | `dsh-life-pipline` | **Life Pipline** | [`assets/icon.png`](assets/icon.png) |
|
|
44
44
|
| 插件列表卡片(组件) | `dsh-lpipe-chat` | **Lpipe Chat** | [`components/dsh-lpipe-chat/assets/icon.png`](components/dsh-lpipe-chat/assets/icon.png) |
|
|
45
|
-
| 设置侧栏条目与页面标题 | `dsh-lpipe-chat` | **Lpipe
|
|
45
|
+
| 设置侧栏条目与页面标题 | 由 `dsh-lpipe-chat` 托管整页 | **Lpipe 设置** | — |
|
|
46
46
|
|
|
47
47
|
标题和简介来自包导出的 `locale/en.json`、`locale/zh.json` 的 `meta.title` / `meta.description`,由宿主的 `readPluginMeta` 读取,缺失时才回退 `package.json` 的 `name` / `description`;图标来自 `package.json` 的 `icon` 字段,必须在包目录内、≤256 KiB。两条路径都要在 `exports` 里放行,否则宿主解析不到。
|
|
48
48
|
|
|
@@ -71,7 +71,7 @@ dsh-life-pipline/ # 整合包:只声明依赖,不插组件行
|
|
|
71
71
|
|
|
72
72
|
工具:`chat_send`、`chat_history`、`chat_login`、`chat_status`。
|
|
73
73
|
|
|
74
|
-
**配置页**:设置 → **Lpipe
|
|
74
|
+
**配置页**:设置 → **Lpipe 设置**(宿主 `settings.section` 槽,`id: lpipe`、`order: 60`)。整个 `dsh-lpipe-` 系列只有这一个侧栏条目:这一页由 `dsh-lpipe-chat` 托管,并声明子槽 `lpipe.settings.panel`(`kind: 'list'`),每个组件把自己的那一块注册进去,按 `order` 从上往下排——加组件不需要新增侧栏条目,也不改这一页的代码。主会话 id 输入并回显会话标题、兜窗口秒数、微信/QQ 状态与扫码接入(二维码直接画在页面上,需要配对码时出现输入框)。主会话在会话栏的行首带一枚小气泡标记(`assets/session-mark.png`,青蓝对半,内联成 data URL;挂在宿主的 `sidebar.session.row.leading` 槽位上,按 `sessionId` 判断是不是主会话)。面板只用宿主的 `--dsw-alias-*` 设计 token,深浅色主题跟着宿主走。
|
|
75
75
|
|
|
76
76
|
配置页通过 Host 的 `/api/dsh-lpipe-chat` 管理通道与页面通信(`chat.status` / `chat.config.save` / `chat.session.title` / `chat.login.begin` / `chat.login.state` / `chat.login.code` / `chat.login.cancel`),凭据只留在 Host 侧,页面只能看到「已连接/未连接」。
|
|
77
77
|
|
|
@@ -86,7 +86,8 @@ node components/dsh-lpipe-chat/scripts/build-client.mjs # → lib/client.js(
|
|
|
86
86
|
1. `components/<包名>/` 建包,`package.json` 里写 `name`、`icon`、`exports`(含 `./icon`、`./locale/en.json`、`./locale/zh.json`)、`dsh.bundle.patch`、`dsh.client`。
|
|
87
87
|
2. `locale/{en,zh}.json` 写 `meta.title` / `meta.description`。
|
|
88
88
|
3. 包里放 `cordis.patch.yml`,一行插自己(`id` 与 `name` 都用裸包名)。
|
|
89
|
-
4.
|
|
89
|
+
4. 设置页不用新建侧栏条目:往 `lpipe.settings.panel` 槽注册一块即可——`ctx.slots.inject('lpipe.settings.panel', () => ctx.slots.register({ name: 'lpipe.settings.panel', id: '<组件短名>', order: 20, inject: () => ({ rpcCall }) }, 你的面板))`。`id` 在同一槽内唯一,`order` 决定上下顺序。
|
|
90
|
+
5. 跑 `node scripts/install-local.mjs` 重新装进 profile(脚本会把每个组件也列进 `dsh.profile.bundles`)。
|
|
90
91
|
|
|
91
92
|
## 安装
|
|
92
93
|
|
package/package.json
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-life-pipline",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "A DSH life bundle that grows one component at a time.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "index.js",
|
|
7
|
-
"icon": "assets/icon.png",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": "./index.js",
|
|
10
|
-
"./icon": "./assets/icon.png",
|
|
11
|
-
"./locale/en.json": "./locale/en.json",
|
|
12
|
-
"./locale/zh.json": "./locale/zh.json",
|
|
13
|
-
"./package.json": "./package.json"
|
|
14
|
-
},
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": "^22.19 || >=24",
|
|
17
|
-
"dsh": ">=0.2.0-rc.2 <0.2.2-0"
|
|
18
|
-
},
|
|
19
|
-
"license": "AGPL-3.0-or-later",
|
|
20
|
-
"scripts": {
|
|
21
|
-
"test": "node --test \"components/*/test/*.test.mjs\"",
|
|
22
|
-
"install-local": "node scripts/install-local.mjs",
|
|
23
|
-
"build-client": "node components/dsh-lpipe-chat/scripts/build-client.mjs"
|
|
24
|
-
},
|
|
25
|
-
"dsh": {
|
|
26
|
-
"bundle": {
|
|
27
|
-
"patch": "./cordis.patch.yml"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"repository": {
|
|
31
|
-
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/Kaczev/dsh-life-pipline.git"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"index.js",
|
|
36
|
-
"cordis.patch.yml",
|
|
37
|
-
"assets",
|
|
38
|
-
"locale",
|
|
39
|
-
"LICENSE"
|
|
40
|
-
],
|
|
41
|
-
"keywords": [
|
|
42
|
-
"dsh",
|
|
43
|
-
"dsh-bundle",
|
|
44
|
-
"deepseek-harness"
|
|
45
|
-
],
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"dsh-lpipe-chat": "^0.3.
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-life-pipline",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "A DSH life bundle that grows one component at a time.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"icon": "assets/icon.png",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./icon": "./assets/icon.png",
|
|
11
|
+
"./locale/en.json": "./locale/en.json",
|
|
12
|
+
"./locale/zh.json": "./locale/zh.json",
|
|
13
|
+
"./package.json": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": "^22.19 || >=24",
|
|
17
|
+
"dsh": ">=0.2.0-rc.2 <0.2.2-0"
|
|
18
|
+
},
|
|
19
|
+
"license": "AGPL-3.0-or-later",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "node --test \"components/*/test/*.test.mjs\"",
|
|
22
|
+
"install-local": "node scripts/install-local.mjs",
|
|
23
|
+
"build-client": "node components/dsh-lpipe-chat/scripts/build-client.mjs"
|
|
24
|
+
},
|
|
25
|
+
"dsh": {
|
|
26
|
+
"bundle": {
|
|
27
|
+
"patch": "./cordis.patch.yml"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/Kaczev/dsh-life-pipline.git"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"index.js",
|
|
36
|
+
"cordis.patch.yml",
|
|
37
|
+
"assets",
|
|
38
|
+
"locale",
|
|
39
|
+
"LICENSE"
|
|
40
|
+
],
|
|
41
|
+
"keywords": [
|
|
42
|
+
"dsh",
|
|
43
|
+
"dsh-bundle",
|
|
44
|
+
"deepseek-harness"
|
|
45
|
+
],
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"dsh-lpipe-chat": "^0.3.1"
|
|
48
|
+
}
|
|
49
|
+
}
|