@gavinc-cn/dsh-plugins 0.0.0-stage → 0.2.0

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -2
  3. package/package.json +27 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 @gavinc-cn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,40 @@
1
- # Temporary Holding Version
1
+ # @gavinc-cn/dsh-plugins(聚合元包)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **0.2.0 起本包不再是 bundle。** 它只是一个「装一个拿到全部」的 npm 入口:
4
+ > `dependencies` 指向拆分后的两个 bundle 包,自身不含 `dsh.bundle`、不含任何 `cordis.patch.yml`。
5
+
6
+ | 版本 | 语义 |
7
+ |---|---|
8
+ | `0.1.0` / `0.1.1` | 单包全量 bundle:`cordis.patch.yml` 里 13 条 `- insert:`,面板一张卡片 |
9
+ | `0.2.0` 起 | 聚合元包:13 个组件拆成两个 bundle(UI 5 个 / 运行时 8 个),本包只把它们一起装上 |
10
+
11
+ ## 拆分后的两个 bundle
12
+
13
+ | 包 | 组件数 | 判据 | 面板卡片 |
14
+ |---|---|---|---|
15
+ | [@gavinc-cn/dsh-plugins-ui](../dsh-plugins-ui/README.md) | 5 | 组件包声明了 `dsh.client.platform: "web"`(只作用于 Web GUI) | 「自研插件 · UI」 |
16
+ | [@gavinc-cn/dsh-plugins-runtime](../dsh-plugins-runtime/README.md) | 8 | 宿主(node)侧运行,没有 `dsh.client` | 「自研插件 · 运行时」 |
17
+
18
+ 两个包合起来 = `0.1.x` 的全部 13 个组件,行 id 与默认开关状态都保持不变。
19
+
20
+ ## 安装
21
+
22
+ ```bash
23
+ # 想一次拿到全部 13 个组件的依赖(但仍要分别选 bundle)
24
+ pnpm add @gavinc-cn/dsh-plugins
25
+
26
+ # 真正把它挂进某个 profile:分别装两个 bundle(dsh plugin 会把包名追加进 dsh.profile.bundles)
27
+ dsh plugin --profile web add @gavinc-cn/dsh-plugins-ui
28
+ dsh plugin --profile web add @gavinc-cn/dsh-plugins-runtime
29
+ ```
30
+
31
+ **不要**把本包名写进 `dsh.profile.bundles`:它声明不了 `dsh.bundle`,加载时会被判为
32
+ `declares no dsh.bundle` 并跳过该层(面板里也会显示成一条 `not-bundle` 异常卡片)。
33
+ 用 `dsh plugin add @gavinc-cn/dsh-plugins` 装它时,CLI 会按**普通依赖**安装并打一条同样的 warning —— 这是预期行为。
34
+
35
+ 两个 bundle 的 `dsh.profile.bundles` + `dependencies` 都要写(后者决定面板卡片是否显示),
36
+ 改完重启宿主才生效;行级开关是 live 热重载。
37
+
38
+ ## License
39
+
40
+ MIT
package/package.json CHANGED
@@ -1,6 +1,29 @@
1
1
  {
2
2
  "name": "@gavinc-cn/dsh-plugins",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "DSH 自研插件的聚合元包:自身不是 bundle(不含任何配置行),只把 @gavinc-cn/dsh-plugins-ui 与 @gavinc-cn/dsh-plugins-runtime 一起装上。",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/gavinc-cn/dsh-plugins.git",
9
+ "directory": "packages/bundles/dsh-plugins"
10
+ },
11
+ "homepage": "https://github.com/gavinc-cn/dsh-plugins/tree/master/packages/bundles/dsh-plugins#readme",
12
+ "bugs": "https://github.com/gavinc-cn/dsh-plugins/issues",
13
+ "keywords": [
14
+ "dsh",
15
+ "deepseek-harness",
16
+ "cordis",
17
+ "bundle",
18
+ "plugin",
19
+ "meta"
20
+ ],
21
+ "publishConfig": {
22
+ "registry": "https://registry.npmjs.org",
23
+ "access": "public"
24
+ },
25
+ "dependencies": {
26
+ "@gavinc-cn/dsh-plugins-ui": "^0.1.0",
27
+ "@gavinc-cn/dsh-plugins-runtime": "^0.1.0"
28
+ }
29
+ }