dsh-toolview-kit 0.3.2 → 0.3.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.4 - 2026-12-01
4
+
5
+ - Removed an FAQ entry about patching the DSH client bundle; the README now covers installation and usage only.
6
+
7
+ ## 0.3.3 - 2026-12-01
8
+
9
+ - Put the npm install command first in the README and dropped the note that said the package was not published yet.
10
+ - Restored the npm version badge.
11
+
3
12
  ## 0.3.2 - 2026-12-01
4
13
 
5
14
  - Added `assets/` screenshots of the shell card and the `ops_edit_file` Diff card, plus a `screenshots.json` manifest that plugin storefronts read.
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  给 DSH 的工具调用换上可读卡片。
4
4
 
5
+ [![npm](https://img.shields.io/npm/v/dsh-toolview-kit.svg)](https://www.npmjs.com/package/dsh-toolview-kit)
5
6
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
6
7
  [![node](https://img.shields.io/badge/node-%3E%3D22.19-3c873a.svg)](package.json)
7
8
  [![dsh](https://img.shields.io/badge/DSH-%3E%3D0.1.0--rc.5-4b5563.svg)](package.json)
@@ -24,7 +25,13 @@ DSH 的对话界面按工具名挑卡片视图:`bash`、`read`、`grep` 有专
24
25
 
25
26
  ## 安装
26
27
 
27
- 目前从源码装:
28
+ ```bash
29
+ dsh plugin --profile desktop add dsh-toolview-kit
30
+ ```
31
+
32
+ 装完重开 DSH Desktop。客户端 bundle 在启动时加载,热装不会立刻出现卡片。
33
+
34
+ 从源码装,或改完代码想本地验证:
28
35
 
29
36
  ```bash
30
37
  git clone https://github.com/ViCrack/dsh-toolview-kit.git
@@ -35,14 +42,6 @@ dsh plugin --profile desktop add file://$PWD
35
42
 
36
43
  `npm test` 会先构建再跑 13 个用例,覆盖工具映射、loader 形状、注册数量、卡片渲染、Diff 和 JumpServer 回执。测试不需要 DSH 运行时:用 `node:vm` 模拟 `window.__ModuleLoader__`,配一个极小的 React stub 渲染并断言文本。
37
44
 
38
- 装完重开 DSH Desktop。客户端 bundle 在启动时加载,热装不会立刻出现卡片。
39
-
40
- 包已按 npm 发布的形式打包(`npm pack` 产出 11 个文件),但还没发布到 registry。等发布后可改用:
41
-
42
- ```bash
43
- dsh plugin --profile desktop add dsh-toolview-kit
44
- ```
45
-
46
45
  手工登记、junction 接入、回滚和排障写在 [docs/installation.md](docs/installation.md)。
47
46
 
48
47
  ## 覆盖范围
@@ -127,8 +126,6 @@ npm run verify # 检查本机 desktop profile 的依赖、bundle 和 junction
127
126
 
128
127
  **卡片颜色不跟随皮肤。** 重开 DSH Desktop;仍不对就检查皮肤是否覆盖宿主 `--dsw-*` 令牌。
129
128
 
130
- **和改过的 `app.asar` 冲突吗。** 不冲突。本仓库是可升级方案;直接改 `app.asar` 是另一条路,补丁让官方终端卡片接住 `ops_bash`,插件再补官方没有的文件工具和 MCP 命令。要回到纯净安装,从备份恢复 `app.asar` 即可,插件不受影响。
131
-
132
129
  ## License
133
130
 
134
131
  MIT
package/lib/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * makes the package safe to load in profiles that do not expose client slots.
6
6
  */
7
7
  export const name = 'dsh-toolview-kit';
8
- export const version = '0.3.2';
8
+ export const version = '0.3.4';
9
9
 
10
10
  export function apply() {
11
11
  // Client registration is performed by the web bundle.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-toolview-kit",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "Data-driven readable tool cards for DSH shell, file, and JumpServer MCP calls.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -40,7 +40,7 @@
40
40
  "dsh": {
41
41
  "id": "dsh-toolview-kit",
42
42
  "name": "DSH Toolview Kit",
43
- "version": "0.3.2",
43
+ "version": "0.3.4",
44
44
  "bundle": {
45
45
  "patch": "./cordis.patch.yml"
46
46
  },