dsh-vscode-mode 0.1.4 → 0.1.5

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 CHANGED
@@ -29,6 +29,23 @@ dsh plugin --profile web add https://github.com/Lenonss/DSH_VsCodeMode/releases/
29
29
  > 再按 `dsh.bundle` 声明自动加入 profile 的 bundles 层。若 pnpm 提示构建脚本需批准,按提示把 key
30
30
  > 加到 `~/.dsh/profiles/<profile>/pnpm-workspace.yaml` 的 `allowBuilds` 后重跑。
31
31
 
32
+ **安装即生效,无需任何手动配置**:本包自带的 `cordis.patch.yml` 是标准 bundle 自挂载补丁
33
+ (`- insert: { id: dsh-vscode-mode, name: dsh-vscode-mode }`),加入 bundles 层后重启
34
+ DSH 即自动把插件行挂进 loader 树,**不要**再往 profile 用户层 `cordis.patch.yml` 手写
35
+ `insert`(旧的非标准做法,会与本 bundle 行撞同一 id,触发 duplicate loader entry id 启动失败)。
36
+
37
+ 自定义配置(如图标目录 `imageDir`)用 **id 定向覆盖**合并到 bundle 行上,而不是再 insert 一次:
38
+
39
+ ```yaml
40
+ # ~/.dsh/profiles/<profile>/cordis.patch.yml(用户层,应用顺序在 bundle 层之后)
41
+ - id: dsh-vscode-mode
42
+ config:
43
+ imageDir: C:/Users/me/Pictures # 可选,默认读插件包内 assets/
44
+ ```
45
+
46
+ > 迁移提示:若你之前按旧版指引在 profile 用户层手写过 `insert`(id 恰为 `dsh-vscode-mode`),
47
+ > 升级后请把那一段 `insert` 改成上面的 id 定向覆盖(或直接删除),避免与本 bundle 行重复装配。
48
+
32
49
  更新:`dsh plugin --profile web update dsh-vscode-mode`;卸载:`dsh plugin --profile web remove dsh-vscode-mode`。
33
50
 
34
51
  ## 开发构建(自足,无需 DSH 源码 checkout)
package/cordis.patch.yml CHANGED
@@ -1,5 +1,21 @@
1
- # dsh-edit-review bundle overlay:空列表,不插入任何插件行。
2
- # 插件装配由 profile 用户层 cordis.patch.yml 的 insert 完成(可带自定义 config,
3
- # imageDir),此处仅满足 dsh.bundle.patch 声明校验;
4
- # bundle 层与用户层同时 insert 同一 id,会触发 duplicate loader entry id。
5
- []
1
+ # dsh bundle patch:标准 bundle 自挂载。
2
+ #
3
+ # 只要任意 DSH profile 把本包加进 dsh.profile.bundles(`dsh plugin add` 即自动完成),
4
+ # 重启后这里就把插件行插入 loader —— 不再依赖用户往 profile 用户层
5
+ # cordis.patch.yml 手写 insert(旧的非标准设计,已废弃)。
6
+ #
7
+ # 行的 `name` 必须是包名原样:它既是 Host 半的 Node 导入说明符(经 package main
8
+ # 解析到 lib/index.js),也是 dsh-client-modules 扫描"浏览器半"的键(经
9
+ # exports["./client"] 解析到 lib/client.js,见本包 dsh.client 声明)——所以
10
+ # Host/Client 两个半共享这一行即可,无需第二个 loader 行。
11
+ #
12
+ # `id` 是稳定身份:profile 用户层(或任何更晚的补丁层)用该 id 做"id 定向覆盖"
13
+ # 即可合并自定义 config(例如自定义图标目录):
14
+ # - id: dsh-vscode-mode
15
+ # config:
16
+ # imageDir: /path/to/icons
17
+ # 注意:是覆盖(override),不是再 insert 一次同 id 的行,否则触发
18
+ # duplicate loader entry id 启动失败。
19
+ - insert:
20
+ - id: dsh-vscode-mode
21
+ name: 'dsh-vscode-mode'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-vscode-mode",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "DSH 上的类 VSCode 编码体验:Monaco 中央编辑器(文件页签/QuickOpen/状态栏)+ Agent 编辑差异审查(整文件差异/采纳/拒绝/归档/回滚),状态持久化到工作区旁车",
5
5
  "keywords": [
6
6
  "dsh",