dsh-code-index 0.11.1 → 0.12.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 +16 -0
- package/README.md +32 -19
- package/README.zh.md +32 -19
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +55 -1
- package/dist/index.js +433 -100
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/scripts/release-smoke.mjs +49 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to dsh-code-index are documented here.
|
|
4
4
|
|
|
5
|
+
## 0.12.0 — Reliable Context & Evidence (prepared, not published)
|
|
6
|
+
|
|
7
|
+
- Fix normal npm prerelease peer resolution for the verified DSH 0.2.1 and 0.2.2 RC groups; installation no longer needs --force. Keep the existing stable-version range and DSH runtime behavior.
|
|
8
|
+
- Complete bounded real-Agent rechecks for change impact/candidate tests and zero static callers; retain earlier token, Host permission and transport failures in the evidence history.
|
|
9
|
+
- Prepare local version metadata, bilingual Release Notes and PR text. Publication still requires final approval.
|
|
10
|
+
|
|
11
|
+
- Improve deterministic Chinese task routing, distinguish path components from explicit identifiers, and prioritize task-relevant implementation source without increasing default budgets or graph limits.
|
|
12
|
+
- Add optional bounded Evidence Summary to Context Packs and change context, with minimal X-Ray metadata reuse. Preserve exact / import-scoped / name-only and clearly label candidate tests, unknown targets and indexed-static scope.
|
|
13
|
+
- Allow optional evidence to shrink or be omitted under the existing text/JSON cap; absence is not proof that no evidence gaps exist. Keep tool names, parameters and canonical string output compatible.
|
|
14
|
+
- Fix English intent words inside source paths triggering unrelated change/test analysis; retain actual English change requests and explicit test-path routing.
|
|
15
|
+
- Establish six historical quality regressions and record package, runtime and Agent gates separately. This entry prepares a local RC only; no publication or successful real-Agent acceptance is implied. See `docs/development/v0.12.0/INTEGRATION.zh-CN.md`.
|
|
16
|
+
|
|
17
|
+
## 0.11.2 — DSH compatibility range
|
|
18
|
+
|
|
19
|
+
- Allow DSH versions from `0.2.0-rc.2` onward, including prereleases, without claiming future versions have been verified.
|
|
20
|
+
|
|
5
21
|
## 0.11.1 — DSH rc.3 compatibility
|
|
6
22
|
|
|
7
23
|
- Add the verified exact `@deepseek-ai/dsh-tools@0.2.1-rc.3` host group; retain `0.2.0-rc.2` and `0.2.1-rc.2` support without exemptions or an open-ended range.
|
package/README.md
CHANGED
|
@@ -5,36 +5,48 @@
|
|
|
5
5
|
|
|
6
6
|
English | [中文](README.zh.md)
|
|
7
7
|
|
|
8
|
+
## v0.12.0 release preparation — not published
|
|
9
|
+
|
|
10
|
+
**Reliable Context & Evidence** is prepared on the local development branch. The package version is 0.12.0, but it has not been published. The current public stable release is v0.11.2; the installation examples below still refer to that release.
|
|
11
|
+
|
|
12
|
+
- Deterministic Chinese task routing, path-aware identifier detection and source-first candidate selection improve Context Packs while retaining English task regressions.
|
|
13
|
+
- Optional `ContextPack.evidence` describes indexed-file diagnostics, static relationship grades, candidate tests and detected gaps. `parsed` is not semantic completeness; zero static callers does not prove there are no callers.
|
|
14
|
+
- Evidence may be compacted or omitted under the same text/JSON budget. Missing optional evidence means **not provided**, not “no gaps.” Default 5000 and 300–20000 character bounds remain unchanged.
|
|
15
|
+
- Test associations are leads, not execution, passing tests or verified coverage. Real Agent validation is a separate release gate; unexecuted or blocked runs are never counted as passed.
|
|
16
|
+
|
|
17
|
+
See the [candidate integration record](docs/development/v0.12.0/INTEGRATION.zh-CN.md) and [M2 evidence contract](docs/development/v0.12.0/M2.zh-CN.md) for actual methods, outcomes and limits.
|
|
18
|
+
|
|
19
|
+
The [final release-blocker check](docs/development/v0.12.0/RELEASE_READINESS.zh-CN.md) records normal npm peer resolution and bounded real-Agent rechecks. Future RC groups are not automatically treated as verified.
|
|
20
|
+
|
|
8
21
|
## Impact X-Ray
|
|
9
22
|
|
|
10
23
|
**See the blast radius before your AI edits the code.**
|
|
11
24
|
|
|
12
|
-
A local
|
|
25
|
+
A local [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) plugin that turns a code diff into an inspectable map of potentially affected callers, imports and test leads. Click a relationship to check its source file, line and evidence.
|
|
13
26
|
|
|
14
|
-
**
|
|
27
|
+
**For DSH users working with existing code:** inspect likely ripple effects before asking an AI agent to edit. Until v0.12.0 is published, install the stable **v0.11.2** in a compatible DSH profile:
|
|
15
28
|
|
|
16
29
|
```sh
|
|
17
|
-
dsh plugin --profile desktop add dsh-code-index@0.11.
|
|
30
|
+
dsh plugin --profile desktop add dsh-code-index@0.11.2
|
|
18
31
|
```
|
|
19
32
|
|
|
20
|
-
Restart Desktop after installation.
|
|
33
|
+
Restart Desktop after installation. v0.11.1 declares DSH `0.2.0-rc.2`, `0.2.1-rc.2` and `0.2.1-rc.3` host groups; for Desktop rc.3, the compatibility warning was reported gone, but full Electron Desktop feature and Agent acceptance is not claimed. [Install details](#install) · [v0.11.1 verification and limits](RELEASE_EVIDENCE_v0.11.1.md).
|
|
21
34
|
|
|
22
|
-
**30-second real Desktop demo:** `normalize()`
|
|
35
|
+
**Watch the 30-second real Desktop demo:** a change to `normalize()` → inspect callers and a test lead → click a relationship to see the actual source location.
|
|
23
36
|
|
|
24
37
|

|
|
25
38
|
|
|
26
|
-
[
|
|
39
|
+
[Watch MP4](assets/impact-xray-mvp.mp4) · [Full-size GIF](assets/impact-xray-mvp.gif) · [Demo notes and reproduction](assets/impact-xray-mvp-demo.md) · [Install v0.11.1 from npm](https://www.npmjs.com/package/dsh-code-index/v/0.11.1) · [Project](https://github.com/lemonxiny55/dsh-code-index)
|
|
27
40
|
|
|
28
|
-
The recording is the
|
|
41
|
+
The recording is an actual DSH Desktop interaction with the `0.11.0-dev.0` MVP in Desktop 0.2.1-rc.2. It shows existing analysis and source evidence; it is not a model-driven Agent latency or success claim. See [recording provenance](assets/impact-xray-mvp-demo.md).
|
|
29
42
|
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
- **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.
|
|
43
|
+
- Start from a Git diff or an explicitly selected file/symbol; inspect callers, import dependents, paths and candidate tests.
|
|
44
|
+
- Click a relationship to inspect its provenance and available source snapshot at a file and line.
|
|
45
|
+
- Treat candidates as leads: `name-only` matches can be uncertain, and a test lead does not prove coverage or failure.
|
|
34
46
|
|
|
35
|
-
|
|
47
|
+
Impact X-Ray is an interactive view of the existing `code_change_context` analysis and source reader; it does not add an impact-analysis engine. Relationships are static evidence, not guaranteed runtime impact.
|
|
36
48
|
|
|
37
|
-
**Verified
|
|
49
|
+
**Verified:** full X-Ray UI in Desktop 0.2.1-rc.2; Web/Host rc.3 verified for all eight tools and X-Ray (no model-driven Agent run). Desktop 0.2.0-rc.2 passed installation and ToolRuntime checks, not full X-Ray UI. Keep each host's first-party packages on the same declared version. [v0.11.1 evidence and limits](RELEASE_EVIDENCE_v0.11.1.md).
|
|
38
50
|
|
|
39
51
|
Ask the Agent to call `code_change_context` with:
|
|
40
52
|
|
|
@@ -88,16 +100,16 @@ This supports syntax and static code context, without full HarmonyOS SDK semanti
|
|
|
88
100
|
|
|
89
101
|
## Quick start
|
|
90
102
|
|
|
91
|
-
Requires Node 22/24
|
|
103
|
+
Requires Node 22/24. The v0.11.2 candidate allows DSH `>=0.2.0-rc.2`, including prereleases; matching first-party packages should be used. Later versions may attempt to load but have not all been verified. Install into an existing Desktop profile using its bundled `dsh` CLI:
|
|
92
104
|
|
|
93
105
|
```sh
|
|
94
|
-
dsh plugin --profile desktop add dsh-code-index@0.11.
|
|
106
|
+
dsh plugin --profile desktop add dsh-code-index@0.11.2
|
|
95
107
|
```
|
|
96
108
|
|
|
97
109
|
Restart Desktop after installation. For a matching Web profile:
|
|
98
110
|
|
|
99
111
|
```sh
|
|
100
|
-
npx @deepseek-ai/dsh@0.2.1-rc.2 plugin --profile web add dsh-code-index@0.11.
|
|
112
|
+
npx @deepseek-ai/dsh@0.2.1-rc.2 plugin --profile web add dsh-code-index@0.11.2
|
|
101
113
|
npx @deepseek-ai/dsh@0.2.1-rc.2 web
|
|
102
114
|
```
|
|
103
115
|
|
|
@@ -149,13 +161,13 @@ Plus an optional **auto-injected system prompt section** (`code-index:repo-map`,
|
|
|
149
161
|
|
|
150
162
|
Requires `dsh` (any install path — npx, npm, or source) and Node ≥ 22.
|
|
151
163
|
|
|
152
|
-
v0.11.
|
|
164
|
+
The v0.11.2 candidate declares `@deepseek-ai/dsh-tools: >=0.2.0-rc.2`, with no upper bound. DSH includes prereleases when checking this range, so future DSH versions may attempt to load the plugin; this does not mean every version has been verified. Use matching DSH/dsh-tools groups. The plugin surface remains a preview API, and future releases may introduce incompatibilities.
|
|
153
165
|
|
|
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
|
|
166
|
+
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 enumerated the then-supported groups; v0.11.2 removes that enumeration. Its development dependency stays on `0.2.0-rc.2` for backward API checks.
|
|
155
167
|
|
|
156
168
|
```sh
|
|
157
169
|
# from npm (prebuilt)
|
|
158
|
-
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.11.
|
|
170
|
+
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.11.2
|
|
159
171
|
|
|
160
172
|
# or from a directory containing this checkout
|
|
161
173
|
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add ./dsh-code-index
|
|
@@ -323,3 +335,4 @@ To make a report actionable, include the approximate repository size and languag
|
|
|
323
335
|
|
|
324
336
|
MIT. Not affiliated with DeepSeek; built on the public `dsh` plugin surface.
|
|
325
337
|
|
|
338
|
+
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# dsh-code-index
|
|
2
2
|
|
|
3
|
+
## v0.12.0 发布准备——尚未发布
|
|
4
|
+
|
|
5
|
+
**Reliable Context & Evidence** 已在本地开发分支准备,package 版本更新为 0.12.0,但尚未发布。当前公开正式版为 v0.11.2,下文安装示例仍指向该版本。
|
|
6
|
+
|
|
7
|
+
- 确定性中文任务路由、路径与显式符号区分、源码优先的候选选择改进 Context Pack,并保留英文任务回归。
|
|
8
|
+
- 可选 `ContextPack.evidence` 说明已索引文件诊断、静态关系等级、候选测试及实际检测到的缺口。parsed 不等于语义完整;零静态调用者不能证明不存在调用者。
|
|
9
|
+
- evidence 可在同一 text/JSON 预算内缩减或省略;字段缺省表示**未提供**,不能解释为没有缺口。默认 5000、300~20000 字符边界不变。
|
|
10
|
+
- 测试关联只是线索,不代表已执行、通过或覆盖已验证。真实 Agent 是单独的验收项,未运行或受阻的项目不会计为通过。
|
|
11
|
+
|
|
12
|
+
实际方法、结果和边界见[候选集成验收记录](docs/development/v0.12.0/INTEGRATION.zh-CN.md)及 [M2 证据契约](docs/development/v0.12.0/M2.zh-CN.md)。
|
|
13
|
+
|
|
14
|
+
[最后一轮阻断检查](docs/development/v0.12.0/RELEASE_READINESS.zh-CN.md)记录正常 npm peer 解析和有限真实 Agent 复验;未验证的未来 RC 版本组不会自动视为已验证。
|
|
15
|
+
|
|
3
16
|
[English](README.md) | 中文
|
|
4
17
|
|
|
5
18
|
## Impact X-Ray
|
|
@@ -8,32 +21,31 @@
|
|
|
8
21
|
|
|
9
22
|
**在 AI 修改代码前,看清潜在影响范围。**
|
|
10
23
|
|
|
11
|
-
这是 [DeepSeek Harness(DSH)](https://github.com/deepseek-ai/deepseek-harness)
|
|
24
|
+
这是 [DeepSeek Harness(DSH)](https://github.com/deepseek-ai/deepseek-harness) 的本地插件:把代码 diff 呈现为一张可检查的潜在影响图,列出可能受影响的调用者、导入和测试线索。点击关系即可核对源码文件、行号与证据。
|
|
12
25
|
|
|
13
|
-
|
|
26
|
+
**适合正在维护现有代码的 DSH 用户:** 在让 AI Agent 修改代码前,先查看可能的连带影响。v0.12.0 发布前仍使用正式稳定版 **v0.11.2**,安装到兼容的 DSH profile:
|
|
14
27
|
|
|
15
28
|
```sh
|
|
16
|
-
dsh plugin --profile desktop add dsh-code-index@0.11.
|
|
29
|
+
dsh plugin --profile desktop add dsh-code-index@0.11.2
|
|
17
30
|
```
|
|
18
31
|
|
|
19
|
-
安装后重启 Desktop。
|
|
32
|
+
安装后重启 Desktop。v0.11.1 声明支持 DSH `0.2.0-rc.2`、`0.2.1-rc.2` 和 `0.2.1-rc.3` 宿主版本组;Desktop rc.3 的兼容性提示据反馈已消失,但这不代表 Electron Desktop 全部功能或 Agent 验收通过。[安装说明](#安装) · [v0.11.1 验证与限制](RELEASE_EVIDENCE_v0.11.1.md)。
|
|
20
33
|
|
|
21
|
-
|
|
34
|
+
**观看 30 秒真实 Desktop 演示:**`normalize()` 被修改 → 查看调用者与测试线索 → 点击关系查看真实源码位置。
|
|
22
35
|
|
|
23
36
|

|
|
24
37
|
|
|
25
|
-
[
|
|
38
|
+
[观看 MP4](assets/impact-xray-mvp.mp4) · [全尺寸 GIF](assets/impact-xray-mvp.gif) · [演示说明与复现](assets/impact-xray-mvp-demo.md) · [从 npm 安装 v0.11.1](https://www.npmjs.com/package/dsh-code-index/v/0.11.1) · [项目主页](https://github.com/lemonxiny55/dsh-code-index)
|
|
26
39
|
|
|
27
|
-
录屏来自真实 Desktop 0.2.1-rc.2 中的 `0.11.0-dev.0` MVP
|
|
40
|
+
录屏来自真实 DSH Desktop 0.2.1-rc.2 中的 `0.11.0-dev.0` MVP 操作,展示的是既有分析与源码证据;它不代表模型驱动 Agent 的耗时或成功率。详见[录制来源](assets/impact-xray-mvp-demo.md)。
|
|
28
41
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- **了解不确定性:** 黄色点线的 `name-only` 候选、导入范围、未映射行、缺失源码和裁剪均明确呈现;测试线索不证明覆盖率或必然失败。
|
|
42
|
+
- 从 Git diff 或明确选定的文件/符号出发,查看调用者、导入依赖、影响路径和测试候选。
|
|
43
|
+
- 点击关系,查看其来源,以及可用的文件行号和源码快照。
|
|
44
|
+
- 把候选视为线索:`name-only` 匹配可能不确定;测试线索不证明覆盖率或测试失败。
|
|
33
45
|
|
|
34
|
-
|
|
46
|
+
Impact X-Ray 是既有 `code_change_context` 分析及源码读取能力的交互展示,并未新增影响分析引擎。关系属于静态证据,不保证运行时必然受影响。
|
|
35
47
|
|
|
36
|
-
|
|
48
|
+
**验证范围:** Desktop 0.2.1-rc.2 完成完整 X-Ray UI 验证;Web/Host rc.3 完成全部八个工具及 X-Ray 验证(未运行模型驱动 Agent);Desktop 0.2.0-rc.2 通过安装和 ToolRuntime 检查,未验证完整 X-Ray UI。宿主中的第一方包须使用同一已声明版本。[v0.11.1 验证与限制](RELEASE_EVIDENCE_v0.11.1.md)。
|
|
37
49
|
|
|
38
50
|
让 Agent 调用 `code_change_context`:
|
|
39
51
|
|
|
@@ -87,16 +99,16 @@ node scripts/impact-xray-demo.mjs D:/absolute/path/to/new-demo-repo
|
|
|
87
99
|
|
|
88
100
|
## 快速开始
|
|
89
101
|
|
|
90
|
-
需要 Node 22/24
|
|
102
|
+
需要 Node 22/24。v0.11.2 候选版本允许 DSH `>=0.2.0-rc.2`(包括预发布版本),第一方包应使用配套版本。后续版本可以尝试加载,但并不代表全部经过验证。用 Desktop 自带的 `dsh` CLI 安装到现有 profile:
|
|
91
103
|
|
|
92
104
|
```sh
|
|
93
|
-
dsh plugin --profile desktop add dsh-code-index@0.11.
|
|
105
|
+
dsh plugin --profile desktop add dsh-code-index@0.11.2
|
|
94
106
|
```
|
|
95
107
|
|
|
96
108
|
安装后重启 Desktop。匹配的 Web profile 可使用:
|
|
97
109
|
|
|
98
110
|
```sh
|
|
99
|
-
npx @deepseek-ai/dsh@0.2.1-rc.2 plugin --profile web add dsh-code-index@0.11.
|
|
111
|
+
npx @deepseek-ai/dsh@0.2.1-rc.2 plugin --profile web add dsh-code-index@0.11.2
|
|
100
112
|
npx @deepseek-ai/dsh@0.2.1-rc.2 web
|
|
101
113
|
```
|
|
102
114
|
|
|
@@ -148,13 +160,13 @@ npx @deepseek-ai/dsh@0.2.1-rc.2 web
|
|
|
148
160
|
|
|
149
161
|
需要 `dsh`(任意安装方式——npx、npm 或源码)与 Node ≥ 22。
|
|
150
162
|
|
|
151
|
-
v0.11.
|
|
163
|
+
v0.11.2 候选版本声明 `@deepseek-ai/dsh-tools: >=0.2.0-rc.2`,不设置上限。DSH 检查范围时包含预发布版本,因此未来版本可以尝试加载插件,但这不代表每个版本都经过验证。请使用配套的 DSH/dsh-tools 版本组;插件接口仍是预览 API,未来版本可能产生兼容问题。
|
|
152
164
|
|
|
153
|
-
Desktop 在激活前检查 DSH peer 约束。v0.10.0 的精确 `0.2.0-rc.2` pin 会被 DSH `0.2.1-rc.2` 拒绝;v0.10.1
|
|
165
|
+
Desktop 在激活前检查 DSH peer 约束。v0.10.0 的精确 `0.2.0-rc.2` pin 会被 DSH `0.2.1-rc.2` 拒绝;v0.10.1 列举了当时支持的版本组;v0.11.2 移除这一枚举。开发依赖保留 `0.2.0-rc.2`,继续检查旧版 API。
|
|
154
166
|
|
|
155
167
|
```sh
|
|
156
168
|
# 从 npm(预编译)
|
|
157
|
-
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.11.
|
|
169
|
+
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add dsh-code-index@0.11.2
|
|
158
170
|
|
|
159
171
|
# 或从包含本仓库检查副本的目录
|
|
160
172
|
npx @deepseek-ai/dsh@0.2.0-rc.2 plugin --profile web add ./dsh-code-index
|
|
@@ -314,3 +326,4 @@ node.exe scripts\fix-wsl-links.mjs C:\Users\you\.dsh\profiles\web # dsh profil
|
|
|
314
326
|
|
|
315
327
|
MIT。与 DeepSeek 无关;基于公开的 `dsh` 插件接口构建。
|
|
316
328
|
|
|
329
|
+
|