dsh-code-index 0.10.1 → 0.11.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.
package/CHANGELOG.md CHANGED
@@ -2,10 +2,30 @@
2
2
 
3
3
  All notable changes to dsh-code-index are documented here.
4
4
 
5
- ## 0.10.1 — unreleased
5
+ ## 0.11.0 — Impact X-Ray
6
+
7
+ - Present the existing `code_change_context` analysis in an interactive bilingual Desktop view with source-backed nodes and relationships; keep default text output and `code_context` Context Packs compatible.
8
+ - Highlight the change center, bounded relation counts and name-only / unmapped uncertainty. Preserve `exact`, `import-scoped` and `name-only` semantics and do not infer missing call edges.
9
+ - Add bounded graph projection, actual source inspection, native preview and saved-result replay without a graph framework or runtime dependencies.
10
+ - Record measured six-file and real Express observations, with underlying index-memory, static-analysis and snapshot limits in the release evidence. Desktop 0.2.1-rc.2 UI is verified; 0.2.0-rc.2 is verified for installation and ToolRuntime only.
11
+
12
+ ## 0.11.0-dev.0 — Impact X-Ray (development preview, unpublished)
13
+
14
+ - Add opt-in `code_change_context` `outputFormat: "xray"`: project existing analysis into a bounded, persisted evidence card. Preserve default canonical text, Context Packs and all provenance semantics.
15
+ - Add English / 简体中文 Desktop UI, expanded graph/evidence view, actual call/import arrows, candidate tests, whole-path provenance, depth/confidence filters, selection history, local expansion and native current-file preview.
16
+ - Expose unmapped line ranges, source gaps, analysis versus presentation clipping and saved-snapshot caveats. Keep PoC v1 replay readable; validate untrusted metadata and render source as text.
17
+ - Cap graph/metadata/source size without new runtime dependencies. Add real Git fixtures, installed ToolRuntime coverage, measured observations and genuine Desktop demo material. See `IMPACT_XRAY_MVP.md` for verification methods and remaining limits. No release or RC approval is implied.
18
+
19
+ ## 0.10.2 — Rust declaration signatures
20
+
21
+ - **fix(rust):** render struct/enum/trait signatures from their declared `name` field, rather than a leading visibility node. Correct `pub`, restricted visibility and ordinary declarations across symbol search, repo maps, context and reference definition labels. Names and stable IDs were already correct; no new reference edges are inferred.
22
+ - **fix(cache):** advance cache generation to 4 and reject old extraction on both disk and direct incremental-build paths, rebuilding unchanged source once.
23
+ - Preserve normalized `exported` semantics, tool contracts, the two exact supported DSH host groups, all nine languages and ArkTS resources. Add Rust regression and installed-runtime smoke coverage. See `RELEASE_EVIDENCE_v0.10.2.md` and bilingual `RELEASE_NOTES_v0.10.2.md`.
24
+
25
+ ## 0.10.1 — DSH Desktop compatibility fix (2026-10-18)
6
26
 
7
27
  - **fix(compat):** enumerate DSH/dsh-tools `0.2.0-rc.2 || 0.2.1-rc.2` so Desktop `0.2.1-rc.2` can activate the plugin without a version exemption. Keep the old development API baseline; no new feature or parser/resource change.
8
- - **chore(release):** allow installation smoke to select either supported RC group against one candidate archive; document local candidate installation and bilingual compatibility evidence.
28
+ - **chore(release):** allow installation smoke to select either supported RC group against one archive; document installation and bilingual compatibility evidence. Published as npm `latest` with tag `v0.10.1`; post-merge main Node 22/24 CI and exact registry-archive verification passed. See `RELEASE_EVIDENCE_v0.10.1.md`.
9
29
 
10
30
  ## 0.10.0 — ArkTS & Reliable Code Context (2026-10-13)
11
31
 
package/README.md CHANGED
@@ -5,9 +5,63 @@
5
5
 
6
6
  English | [中文](README.zh.md)
7
7
 
8
- **v0.10.0 released — ArkTS & Reliable Code Context**
8
+ **v0.11.0 — Impact X-Ray.** See the potential blast radius before AI edits code, then inspect each relationship against real source evidence. The 30-second recording shows the real `0.11.0-dev.0` MVP; the dev.1 first-screen change-center and uncertainty improvements are shown in separate [real Desktop screenshots](IMPACT_XRAY_RC.md#first-screen-and-visual-evidence). The release preserves existing `code_change_context` analysis and `code_context` packs.
9
9
 
10
- **v0.10.1 compatibility candidate (unpublished):** adds DSH Desktop `0.2.1-rc.2` support while retaining `0.2.0-rc.2`. Only these two exact DSH/dsh-tools host groups are supported; keep each host's first-party packages on the same version. See [candidate evidence](RELEASE_EVIDENCE_v0.10.1.md) and [bilingual fix notes](RELEASE_NOTES_v0.10.1.md) for verification and release status.
10
+ **Supported Desktop versions**
11
+
12
+ The compatibility support introduced in [v0.10.1](https://github.com/lemonxiny55/dsh-code-index/releases/tag/v0.10.1) remains: only DSH/dsh-tools `0.2.0-rc.2` and `0.2.1-rc.2` host groups are supported. Keep each host's first-party packages on the same version.
13
+
14
+ ## Impact X-Ray
15
+
16
+ **See the blast radius before your AI edits the code.**
17
+
18
+ - **Before AI edits your code:** start from a real working-tree Git diff, a supplied diff, or an explicitly labeled file/symbol selection.
19
+ - **See what may break:** inspect changed declarations, direct callers, indirect paths, module imports and candidate tests.
20
+ - **Inspect the evidence:** select a node or arrow to see its reason, provenance, file, line and actual source snapshot. Expand the view for a graph and evidence side by side; open current files in Desktop's native preview.
21
+ - **Know what remains uncertain:** dotted amber `name-only` candidates, import scope, unmapped ranges, missing source and truncation stay visible. A test lead does not prove coverage or failure.
22
+
23
+ This is an interactive presentation of the existing `code_change_context` analysis, with source from the existing reader. It does not introduce a new impact-analysis engine.
24
+
25
+ ![Impact X-Ray in actual DSH Desktop](assets/impact-xray-mvp.gif)
26
+
27
+ [Actual recording and reproduction notes](assets/impact-xray-mvp-demo.md) · [Release evidence and remaining limits](RELEASE_EVIDENCE_v0.11.0.md) · [Bilingual release notes](RELEASE_NOTES_v0.11.0.md)
28
+
29
+ The recording shows the real `dev.0` MVP; its first 10 seconds show the changed function, caller/test lanes and source-backed exact relationship. The `dev.1` first-screen improvements are documented separately with actual Desktop screenshots; the video has not been represented as a recording of those later header changes.
30
+
31
+ Install v0.11.0 into an existing supported Desktop profile with Desktop's bundled CLI:
32
+
33
+ ```sh
34
+ dsh plugin --profile desktop add dsh-code-index@0.11.0
35
+ ```
36
+
37
+ Restart Desktop after installation. For local development, use Node 22/24 and pnpm 11. Desktop 0.2.1-rc.2 received full UI verification. Desktop 0.2.0-rc.2 passed installation and ToolRuntime checks; its full Impact X-Ray UI was not validated. The peer range remains unchanged. See the release evidence for actual methods, performance observations and limitations.
38
+
39
+ Ask the Agent to call `code_change_context` with:
40
+
41
+ ```json
42
+ {"repoRoot":"/absolute/path/to/repo","outputFormat":"xray"}
43
+ ```
44
+
45
+ Expand the tool result, choose **Expand view**, and select an arrow. The UI follows the host language and also offers English / 简体中文. Call graph, import graph, test leads, impact paths and gaps each have their own tab. Depth/confidence filters and local expansion only reveal the bounded snapshot; they do not fetch more analysis.
46
+
47
+ | Relationship | Display | Meaning |
48
+ | --- | --- | --- |
49
+ | `exact` | Solid | Structurally resolved under the existing index; not guaranteed runtime impact |
50
+ | `import-scoped` | Dashed | Import-scope evidence, with the original reason retained |
51
+ | `name-only` | Dotted amber | Name candidate; inspect and verify manually |
52
+
53
+ Arrows retain actual caller → callee or importer → module endpoints. Test conventions never become invented function-call arrows. Whole-path confidence retains the weakest relation. Saved source is a snapshot; rerun after edits. Deleted declarations use baseline source when available and do not offer a misleading current-file preview.
54
+
55
+ The presentation caps at **32 nodes, 48 arrows, 12 paths, 8 test/import leads each**, 900 characters per source window and 96,000 UTF-8 bytes of metadata. Call relationships reserve at most 24 symbol nodes / 32 arrows. Optional X-Ray text caps at 24,000 JS characters; the default canonical text and `code_context` packs remain unchanged. The existing index/reference analysis runs before projection, so these UI caps are not a constant-memory guarantee for large repositories. See the measured costs and host compatibility methods in the [MVP report](IMPACT_XRAY_MVP.md).
56
+
57
+ Reproduce the real demo without overwriting an existing directory:
58
+
59
+ ```sh
60
+ npm run build
61
+ node scripts/impact-xray-demo.mjs /absolute/path/to/new-demo-repo
62
+ ```
63
+
64
+ The script commits a six-source-file baseline and changes `normalize()` from trimming to uppercase conversion. Its baseline Node test passes; the edited test intentionally fails. `looseUsage` deliberately lacks an import, so its name-only relation remains uncertain.
11
65
 
12
66
  Give your [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) agent the bounded source context it needs to start a code task. One `code_context` call selects primary declarations, strong callers/callees, imports, current changes, and likely tests, with exact source ranges and reasons for inclusion. When evidence is missing, the pack says so.
13
67
 
@@ -16,7 +70,7 @@ Give your [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) ag
16
70
  - **Evidence you can inspect:** inclusion reasons are separate from `exact` / `import-scoped` / `name-only` relationship provenance. No probability or confidence estimate is invented.
17
71
  - **Local and current:** isolated repo/worktree indexes, external add/change/delete freshness, no external indexing API key. Existing full/compact surfaces and v0.8 configuration remain supported.
18
72
 
19
- [v0.10.0 is released](https://github.com/lemonxiny55/dsh-code-index/releases/tag/v0.10.0) and npm `latest` is `0.10.0`. ArkTS `.ets` files use a dedicated, pinned parser: find component structs, methods, fields and decorators, navigate statically identifiable ETS/TS references, and retrieve actual source in bounded Context Packs. The installed stable package passed real DSH Desktop Agent verification and Node 22/24 release checks. Partial or failed parses report bounded diagnostics.
73
+ Introduced in [v0.10.0](https://github.com/lemonxiny55/dsh-code-index/releases/tag/v0.10.0) and retained in v0.11.0: ArkTS `.ets` files use a dedicated, pinned parser to find component structs, methods, fields and decorators, navigate statically identifiable ETS/TS references, and retrieve actual source in bounded Context Packs. The installed package passed real DSH Desktop Agent verification and Node 22/24 release checks. Partial or failed parses report bounded diagnostics.
20
74
 
21
75
  This supports syntax and static code context, without full HarmonyOS SDK semantics, HAR/module-alias resolution or state-update/UI rerender graphs. See [release evidence](RELEASE_EVIDENCE_v0.10.0.md), [ArkTS PoC](ARKTS_POC_v0.10.0.md) and [the bilingual announcement](assets/v0.10.0-announcement.md). The v0.9.1 Gitignore directory whitelist fix remains included.
22
76
 
@@ -34,17 +88,17 @@ This supports syntax and static code context, without full HarmonyOS SDK semanti
34
88
 
35
89
  ## Quick start
36
90
 
37
- Requires Node 22/24. The published v0.10.0 requires DSH `0.2.0-rc.2`; the unpublished v0.10.1 candidate also supports `0.2.1-rc.2`. To install the candidate into an existing Desktop profile, using its bundled `dsh` CLI:
91
+ Requires Node 22/24 and a matching DSH `0.2.0-rc.2` or `0.2.1-rc.2` host group. Install into an existing Desktop profile using its bundled `dsh` CLI:
38
92
 
39
93
  ```sh
40
- dsh plugin --profile desktop add /absolute/path/to/dsh-code-index-0.10.1.tgz
94
+ dsh plugin --profile desktop add dsh-code-index@0.11.0
41
95
  ```
42
96
 
43
- Restart Desktop after installation. Until v0.10.1 is published, the following registry commands install v0.10.0 on its original host:
97
+ Restart Desktop after installation. For a matching Web profile:
44
98
 
45
99
  ```sh
46
- npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.10.0
47
- npx @deepseek-ai/dsh@0.2.0-rc.2 web
100
+ npx @deepseek-ai/dsh@0.2.1-rc.2 plugin --profile web add dsh-code-index@0.11.0
101
+ npx @deepseek-ai/dsh@0.2.1-rc.2 web
48
102
  ```
49
103
 
50
104
  For local development, run `pnpm install` and `pnpm build` at the repository root, then use `plugin --profile web add .`. See [Install](#install) for profile options.
@@ -74,7 +128,7 @@ The earlier [bilingual terminal replay](assets/agent-context-demo.md) remains av
74
128
 
75
129
  Try asking: **“Use code_context to locate a config-loading bug, show the relevant source and callers, and identify likely tests.”** Tell us what helped or what context was missing in the [DSH discussion](https://github.com/deepseek-ai/deepseek-harness/discussions/5623).
76
130
 
77
- The earlier [30-second local tool demo](assets/context-pack-demo.html) remains available and can be reproduced with `pnpm build`, then `node scripts/context-pack-demo.mjs`. Web Context Card remains deferred; Card replay and file navigation have not been verified.
131
+ The earlier [30-second local tool demo](assets/context-pack-demo.html) remains available and can be reproduced with `pnpm build`, then `node scripts/context-pack-demo.mjs`. It is a separate Context Pack demo, not the Impact X-Ray Desktop recording above.
78
132
 
79
133
  ## Tools
80
134
 
@@ -95,13 +149,13 @@ Plus an optional **auto-injected system prompt section** (`code-index:repo-map`,
95
149
 
96
150
  Requires `dsh` (any install path — npx, npm, or source) and Node ≥ 22.
97
151
 
98
- The v0.10.1 candidate declares `@deepseek-ai/dsh-tools: 0.2.0-rc.2 || 0.2.1-rc.2`. Use matching DSH/dsh-tools groups, rather than mixing first-party RC packages. The DSH plugin surface remains a preview API; other RCs and future releases are outside this compatibility declaration.
152
+ The compatibility range introduced in v0.10.1 remains `@deepseek-ai/dsh-tools: 0.2.0-rc.2 || 0.2.1-rc.2`. Use matching DSH/dsh-tools groups, rather than mixing first-party RC packages. The DSH plugin surface remains a preview API; other RCs and future releases are outside this compatibility declaration.
99
153
 
100
154
  Desktop checks DSH peer requirements before activation. v0.10.0's exact `0.2.0-rc.2` pin is rejected by DSH `0.2.1-rc.2`; v0.10.1 enumerates the supported groups instead of requiring a version exemption or an unbounded range. Its development dependency stays on `0.2.0-rc.2` for backward API checks.
101
155
 
102
156
  ```sh
103
157
  # from npm (prebuilt)
104
- npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.10.0
158
+ npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.11.0
105
159
 
106
160
  # or from a directory containing this checkout
107
161
  npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add ./dsh-code-index
package/README.zh.md CHANGED
@@ -2,9 +2,63 @@
2
2
 
3
3
  [English](README.md) | 中文
4
4
 
5
- **v0.10.0 已发布 — ArkTS & Reliable Code Context**
5
+ **v0.11.0 — Impact X-Ray。**在 AI 修改代码前查看潜在影响范围,并用真实源码证据核对每条关系。30 秒录屏来自真实运行的 `0.11.0-dev.0` MVP;dev.1 首屏对变更中心及不确定性的改进另有[真实 Desktop 截图](IMPACT_XRAY_RC.md#first-screen-and-visual-evidence)。本版本复用现有 `code_change_context` 分析,保留 `code_context` pack 行为。
6
6
 
7
- **v0.10.1 兼容修复候选(未发布):**增加 DSH Desktop `0.2.1-rc.2` 支持,保留 `0.2.0-rc.2`。仅支持这两个精确的 DSH/dsh-tools 宿主版本组;每组第一方包必须保持同版。验证方法和发布状态见[候选发布证据](RELEASE_EVIDENCE_v0.10.1.md)及[中英文修复说明](RELEASE_NOTES_v0.10.1.md)。
7
+ **支持的 Desktop 版本**
8
+
9
+ [v0.10.1](https://github.com/lemonxiny55/dsh-code-index/releases/tag/v0.10.1) 引入的兼容范围保持不变:仅支持 DSH/dsh-tools `0.2.0-rc.2`、`0.2.1-rc.2` 两个精确宿主组,每组第一方包必须同版。
10
+
11
+ ## Impact X-Ray
12
+
13
+ **See the blast radius before your AI edits the code.**
14
+
15
+ - **在 AI 修改之前:**从真实工作区 Git diff、输入 diff,或明确标注的文件/符号选择开始。
16
+ - **看清可能影响什么:**检查变更声明、直接调用者、间接路径、模块导入和测试候选。
17
+ - **检查真实证据:**点击节点或箭头,查看纳入原因、关系来源、文件行号及实际源码快照。放大视图中图与证据并排展示,可打开 Desktop 原生文件预览。
18
+ - **了解不确定性:**黄色点线的 `name-only` 候选、导入范围、未映射行、缺失源码和裁剪均明确呈现;测试线索不证明覆盖率或必然失败。
19
+
20
+ 这是既有 `code_change_context` 分析和源码读取能力的交互展示,不是新开发的影响分析算法。
21
+
22
+ ![真实 DSH Desktop 中的 Impact X-Ray](assets/impact-xray-mvp.gif)
23
+
24
+ [真实录制与复现说明](assets/impact-xray-mvp-demo.md) · [发布证据与已知限制](RELEASE_EVIDENCE_v0.11.0.md) · [中英文发布说明](RELEASE_NOTES_v0.11.0.md)
25
+
26
+ 视频展示真实 `dev.0` MVP;前 10 秒可看到变更函数、调用者/测试和有源码证据的 exact 关系。`dev.1` 首屏的变更中心改进另以实机截图记录,没有把视频描述成后续首屏版本的录制。
27
+
28
+ 使用 Desktop 自带的 CLI 将 v0.11.0 安装到现有受支持的 Desktop profile:
29
+
30
+ ```sh
31
+ dsh plugin --profile desktop add dsh-code-index@0.11.0
32
+ ```
33
+
34
+ 安装后重启 Desktop。本版本的完整 UI 已在 DSH Desktop 0.2.1-rc.2 实机验证;0.2.0-rc.2 通过安装及 ToolRuntime 检查,但未完成完整 Impact X-Ray UI 验收。peer 范围未扩大。实际验证方法、性能观察和已知限制见发布证据。开发构建使用 Node 22/24 与 pnpm 11。
35
+
36
+ 让 Agent 调用 `code_change_context`:
37
+
38
+ ```json
39
+ {"repoRoot":"D:/absolute/path/to/repo","outputFormat":"xray"}
40
+ ```
41
+
42
+ 展开工具结果,选择“放大查看”,再点击箭头。界面跟随宿主语言,也可切换 English / 简体中文。调用图、导入图、测试线索、影响路径和缺口分别展示。深度/来源筛选和本地展开只操作本次有界快照,不会额外请求分析。
43
+
44
+ | 关系 | 视觉 | 含义 |
45
+ | --- | --- | --- |
46
+ | `exact` | 实线 | 既有索引模型中的结构解析,不保证运行时必然受影响 |
47
+ | `import-scoped` | 虚线 | 导入范围证据,保留原始原因 |
48
+ | `name-only` | 黄色点线 | 名称候选,需要人工核实 |
49
+
50
+ 箭头保留真实 caller → callee 或 importer → module 端点;测试惯例不会被补成函数调用边。整条路径保留最弱关系的来源等级。源码是请求时的快照,编辑后应重新运行。删除声明在可用时显示基线源码,不提供误导性的“打开当前文件”入口。
51
+
52
+ 展示上限为 **32 节点、48 箭头、12 路径、测试/导入各 8 条**;每段源码最多 900 字符、metadata 最多 96,000 UTF-8 bytes。调用关系最多使用 24 个符号节点 / 32 条箭头,给模块线索留出预算。可选 X-Ray 文本最多 24,000 JS 字符;默认 canonical 文本和 `code_context` pack 保持不变。底层索引/引用分析先于展示投影执行,因此 UI 上限不代表大仓库分析的固定内存保证。实际测量和宿主兼容方法见 [MVP 报告](IMPACT_XRAY_MVP.md)。
53
+
54
+ 复现真实 Demo(已有目录会拒绝覆盖):
55
+
56
+ ```sh
57
+ npm run build
58
+ node scripts/impact-xray-demo.mjs D:/absolute/path/to/new-demo-repo
59
+ ```
60
+
61
+ 脚本提交六个源码文件的基线,再将 `normalize()` 从 trim 改为大写转换。基线 Node 测试通过;改动后的测试故意失败。`looseUsage` 故意没有 import,保留为不确定的 name-only 候选。
8
62
 
9
63
  让 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Agent 用一次 `code_context` 调用拿到开始处理任务所需的有界源码上下文:主要声明、强相关 caller/callee、imports、当前变化和相关测试。每个关键 item 都有入选理由,源码有准确行号;证据不足时明确说明缺口。
10
64
 
@@ -13,7 +67,7 @@
13
67
  - **可检查的证据:**入选 reason 与关系的 `exact` / `import-scoped` / `name-only` provenance 分开,不编造概率或 confidence。
14
68
  - **本地、隔离、实时:**repo/worktree 独立,外部增改删自动刷新,不需要外部索引 API key;保留 full/compact surface 和 v0.8 配置。
15
69
 
16
- [v0.10.0 已正式发布](https://github.com/lemonxiny55/dsh-code-index/releases/tag/v0.10.0),npm `latest` 为 `0.10.0`。ArkTS `.ets` 使用独立、版本锁定的 parser:定位组件 struct、方法、字段和装饰器,查看静态可确定的 ETS/TS 引用,并通过有界 Context Pack 获取真实源码。稳定安装包已通过 DSH Desktop 真实 Agent 验证及 Node 22/24 发布检查;部分解析或解析失败会提供有限诊断。
70
+ [v0.10.0](https://github.com/lemonxiny55/dsh-code-index/releases/tag/v0.10.0) 引入的 ArkTS 功能在 v0.11.0 继续保留:`.ets` 使用独立、版本锁定的 parser,定位组件 struct、方法、字段和装饰器,查看静态可确定的 ETS/TS 引用,并通过有界 Context Pack 获取真实源码。安装包已通过 DSH Desktop 真实 Agent 验证及 Node 22/24 发布检查;部分解析或解析失败会提供有限诊断。
17
71
 
18
72
  支持范围是语法和静态代码上下文,不包含完整 HarmonyOS SDK 语义、HAR/模块别名解析、状态更新或 UI 重渲染调用图。见[发布证据](RELEASE_EVIDENCE_v0.10.0.md)、[ArkTS PoC](ARKTS_POC_v0.10.0.md) 和[双语公告](assets/v0.10.0-announcement.md)。v0.9.1 的 Gitignore 目录白名单修复继续保留。
19
73
 
@@ -31,17 +85,17 @@
31
85
 
32
86
  ## 快速开始
33
87
 
34
- 需要 Node 22/24。已发布的 v0.10.0 要求 DSH `0.2.0-rc.2`;未发布的 v0.10.1 候选同时支持 `0.2.1-rc.2`。用 Desktop 自带的 `dsh` CLI 将候选包安装到现有 profile:
88
+ 需要 Node 22/24 与匹配的 DSH `0.2.0-rc.2` 或 `0.2.1-rc.2` 宿主版本组。用 Desktop 自带的 `dsh` CLI 安装到现有 profile:
35
89
 
36
90
  ```sh
37
- dsh plugin --profile desktop add /absolute/path/to/dsh-code-index-0.10.1.tgz
91
+ dsh plugin --profile desktop add dsh-code-index@0.11.0
38
92
  ```
39
93
 
40
- 安装后重启 Desktop。v0.10.1 发布前,下面的 registry 命令仍安装原宿主对应的 v0.10.0:
94
+ 安装后重启 Desktop。匹配的 Web profile 可使用:
41
95
 
42
96
  ```sh
43
- npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.10.0
44
- npx @deepseek-ai/dsh@0.2.0-rc.2 web
97
+ npx @deepseek-ai/dsh@0.2.1-rc.2 plugin --profile web add dsh-code-index@0.11.0
98
+ npx @deepseek-ai/dsh@0.2.1-rc.2 web
45
99
  ```
46
100
 
47
101
  本地开发时,在仓库根目录运行 `pnpm install`、`pnpm build`,然后使用 `plugin --profile web add .`。其他 profile 选项见[安装说明](#安装)。
@@ -71,7 +125,7 @@ npx @deepseek-ai/dsh@0.2.0-rc.2 web
71
125
 
72
126
  可以先试一句:**“用 code_context 定位一个配置加载 Bug,给出相关源码、调用者和可能受影响的测试。”** 欢迎在 [DSH Discussion](https://github.com/deepseek-ai/deepseek-harness/discussions/5623) 分享哪些上下文有帮助、哪些被漏掉。
73
127
 
74
- 早期的 [30 秒本地工具演示](assets/context-pack-demo.html) 仍然保留,可用 `pnpm build` 后运行 `node scripts/context-pack-demo.mjs` 复现。Web Context Card 继续延期,Card replay 和文件跳转尚未验证。
128
+ 早期的 [30 秒本地工具演示](assets/context-pack-demo.html) 仍然保留,可用 `pnpm build` 后运行 `node scripts/context-pack-demo.mjs` 复现。它是独立的 Context Pack 演示,不是上方 Impact X-Ray 的 Desktop 实录。
75
129
 
76
130
  ## 工具一览
77
131
 
@@ -92,13 +146,13 @@ npx @deepseek-ai/dsh@0.2.0-rc.2 web
92
146
 
93
147
  需要 `dsh`(任意安装方式——npx、npm 或源码)与 Node ≥ 22。
94
148
 
95
- v0.10.1 候选声明 `@deepseek-ai/dsh-tools: 0.2.0-rc.2 || 0.2.1-rc.2`。使用配套的 DSH/dsh-tools 版本组,不混装第一方 RC 包。DSH 插件接口仍属于预览 API;其他 RC 和未来版本不在此兼容声明范围内。
149
+ v0.10.1 引入的兼容范围继续保持 `@deepseek-ai/dsh-tools: 0.2.0-rc.2 || 0.2.1-rc.2`。使用配套的 DSH/dsh-tools 版本组,不混装第一方 RC 包。DSH 插件接口仍属于预览 API;其他 RC 和未来版本不在此兼容声明范围内。
96
150
 
97
151
  Desktop 在激活前检查 DSH peer 约束。v0.10.0 的精确 `0.2.0-rc.2` pin 会被 DSH `0.2.1-rc.2` 拒绝;v0.10.1 明确列举支持组,不依赖版本豁免或无上限范围。开发依赖保留 `0.2.0-rc.2`,继续检查旧版 API。
98
152
 
99
153
  ```sh
100
154
  # 从 npm(预编译)
101
- npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.10.0
155
+ npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.11.0
102
156
 
103
157
  # 或从包含本仓库检查副本的目录
104
158
  npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add ./dsh-code-index