dsh-deeppilot 0.9.7 → 0.9.8
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/COMPATIBILITY.md +74 -9
- package/README.md +10 -9
- package/README.zh-CN.md +6 -5
- package/docs/DSH_RELEASE_MEMORY.md +135 -8
- package/docs/NPM_PUBLISHING.md +18 -0
- package/lib/index.d.ts +87 -3
- package/lib/index.js +443 -0
- package/lib/index.js.map +1 -1
- package/package.json +12 -12
package/COMPATIBILITY.md
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Compatibility
|
|
2
2
|
|
|
3
|
-
This branch targets exactly **
|
|
4
|
-
`latest
|
|
5
|
-
`0.2.1-alpha.5`, which the `alpha` channel has pointed at in turn
|
|
3
|
+
This branch targets exactly **five DSH releases**: `0.2.0-rc.2`, which the npm
|
|
4
|
+
`latest` channel points at; `0.2.1-alpha.3`, `0.2.1-alpha.4`, and
|
|
5
|
+
`0.2.1-alpha.5`, which the `alpha` channel has pointed at in turn; and
|
|
6
|
+
`0.2.1-rc.2`, which the `next` channel points at. All five are
|
|
6
7
|
named in both `engines.dsh` and `peerDependencies`; no other version is accepted.
|
|
7
8
|
DSH evaluates that declaration before composing a profile — on every start, not
|
|
8
9
|
only on install — so a newly published DSH release deactivates this plugin until
|
|
@@ -13,13 +14,14 @@ The decision and the reversal it represents are recorded in
|
|
|
13
14
|
[`docs/DSH_RELEASE_MEMORY.md`](./docs/DSH_RELEASE_MEMORY.md).
|
|
14
15
|
|
|
15
16
|
The development packages this branch builds and typechecks against stay pinned
|
|
16
|
-
to the exact release-candidate baseline, currently `0.2.0-rc.2`; the
|
|
17
|
-
|
|
17
|
+
to the exact release-candidate baseline, currently `0.2.0-rc.2`; the audited
|
|
18
|
+
`alpha` and `rc` hosts are covered by the isolated composes and live runs
|
|
19
|
+
recorded in the release memory.
|
|
18
20
|
|
|
19
21
|
| Component | Current contract | Evidence |
|
|
20
22
|
|---|---|---|
|
|
21
23
|
| Node.js | 22 or newer | Package engine and CI |
|
|
22
|
-
| DSH CLI and Host API | `engines.dsh` and `peerDependencies` both name `0.2.0-rc.2 \|\| 0.2.1-alpha.3 \|\| 0.2.1-alpha.4 \|\| 0.2.1-alpha.5` (dev pins `0.2.0-rc.2`) | Peer metadata, source typecheck, unit tests, bundle build, and config schema projection against a real 0.2.0-rc.2 CLI, plus isolated composes and live phone-protocol runs with the published 0.2.1-alpha.2, 0.2.1-alpha.3, and 0.2.1-alpha.4 CLIs,
|
|
24
|
+
| DSH CLI and Host API | `engines.dsh` and `peerDependencies` both name `0.2.0-rc.2 \|\| 0.2.1-alpha.3 \|\| 0.2.1-alpha.4 \|\| 0.2.1-alpha.5 \|\| 0.2.1-rc.2` (dev pins `0.2.0-rc.2`) | Peer metadata, source typecheck, unit tests, bundle build, and config schema projection against a real 0.2.0-rc.2 CLI, plus isolated composes and live phone-protocol runs with the published 0.2.1-alpha.2, 0.2.1-alpha.3, and 0.2.1-alpha.4 CLIs, an isolated 0.2.1-alpha.5 host where this plugin now composes, starts, and answers `/phone/health` with 200 on its own LAN listener, and a pre-widening 0.2.1-rc.2 host run where the unchanged declaration is refused at compose time (audits below) |
|
|
23
25
|
| iOS bridge | DeepPilot protocol v2 | Bridge protocol tests; device behavior must be checked with the running Host and app |
|
|
24
26
|
| Remote access | Tailscale Funnel on ports 443, 8443, or 10000 | Helper and supervisor tests |
|
|
25
27
|
|
|
@@ -71,6 +73,66 @@ carries the old top-level `debug: true` is accepted but that value is ignored:
|
|
|
71
73
|
verbose logging must be turned on again from the settings page. No other config
|
|
72
74
|
field changed shape, and the old key is not read anywhere in this version.
|
|
73
75
|
|
|
76
|
+
## 0.2.1-rc.2 audit outcome
|
|
77
|
+
|
|
78
|
+
The artifact-level audit of `dsh-v0.2.1-rc.2` against `dsh-v0.2.1-alpha.5` found
|
|
79
|
+
no change that reaches this plugin's call surface. Fifteen packages were compared
|
|
80
|
+
as whole trees rather than by `lib/` alone: all ten peer packages carry
|
|
81
|
+
**byte-identical `lib/` trees**, and across 137 modules **no export symbol is
|
|
82
|
+
added or removed**. The 245 dependency differences are spec-value moves only,
|
|
83
|
+
with zero structural difference: 78 `@deepseek-ai/dsh*` entries are pinned to
|
|
84
|
+
`0.2.1-rc.2`, and five vendor ranges are promoted from prerelease to GA —
|
|
85
|
+
`cordis ~4.0.5-alpha.2` → `~4.0.5`, `schemastery ~3.18.5-alpha.2` → `~3.18.5`,
|
|
86
|
+
plus `cordis-plugin-include`, `cordis-plugin-loader`, and `cordis-plugin-timer`.
|
|
87
|
+
No dependency package name is added or removed.
|
|
88
|
+
|
|
89
|
+
**One file outside `package.json` differs, and it is additive.**
|
|
90
|
+
`@deepseek-ai/dsh-web-app/cordis.patch.yml` gained one hunk / +3−0 that inserts
|
|
91
|
+
the `ui-deepseek-model-label-1017` bundle (the DeepSeek-V4.1-Flash-1017
|
|
92
|
+
adaptation named in the rc.2 release notes). It cannot reach this plugin: the
|
|
93
|
+
patch anchor this plugin targets, `id: directory-picker`, is byte-identical at
|
|
94
|
+
lines 113–114 on both sides, the new entry sits at lines 412–417, and the new
|
|
95
|
+
package name appears zero times in this plugin's `cordis.patch.yml` and
|
|
96
|
+
`package.json`.
|
|
97
|
+
|
|
98
|
+
That file is also why the audit method changed: **comparing only `lib/` would
|
|
99
|
+
have missed it**, and it is exactly the surface this plugin's own patch layer
|
|
100
|
+
acts on. Whole-tree comparison is now a required step of every future audit, not
|
|
101
|
+
a fallback.
|
|
102
|
+
|
|
103
|
+
The vendor peers need no widening either. `0.2.1-rc.2` vendors the same GA pair
|
|
104
|
+
as `0.2.1-alpha.5` — `cordis 4.0.5` and `schemastery 3.18.5` — and four
|
|
105
|
+
independent solver paths (host-tree and repository `semver`, each with and
|
|
106
|
+
without `includePrerelease`) agree that both already satisfy the existing
|
|
107
|
+
`~4.0.4 || ~4.0.5-alpha.1` / `~3.18.4 || ~3.18.5-alpha.1` ranges.
|
|
108
|
+
|
|
109
|
+
The activation verdict is the same shape as alpha.5: rc.2 resolves the
|
|
110
|
+
requirements path from a declared `engines.dsh` alone, so its refusal names that
|
|
111
|
+
single requirement rather than the ten peers, and `exempted` is false because no
|
|
112
|
+
profile exemption file exists on the audit machine. Before the widening, a real
|
|
113
|
+
rc.2 CLI refused the unchanged declaration —
|
|
114
|
+
|
|
115
|
+
```text
|
|
116
|
+
dsh: skipping profile bundle "dsh-deeppilot": … Plugin dsh-deeppilot@0.9.7 is incompatible with dsh 0.2.1-rc.2: requirements {"engines.dsh":"0.2.0-rc.2 || 0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5"}. … Exact-version exemption: not active.
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
— while the host itself still booted and served its web port. Three published
|
|
120
|
+
evaluators agree on all 14 candidates, and the widened declaration admits
|
|
121
|
+
`0.2.1-rc.2` while adding no other acceptance. **`0.2.1-rc.1` is deliberately not
|
|
122
|
+
added and remains refused**: the rc line reached this plugin one release later, so
|
|
123
|
+
admitting the earlier rc would extend support to a host that was never audited as
|
|
124
|
+
its own. `0.2.1-alpha.1`, `0.2.1-alpha.2`, `0.2.0-rc.1`, `0.2.0`, `0.2.1`,
|
|
125
|
+
`0.2.1-rc.3`, `0.3.0-rc.1`, `0.3.0`, `1.0.0`, and `0.1.7-rc.2` remain refused.
|
|
126
|
+
|
|
127
|
+
**Audit limits, stated rather than implied.** Loading this plugin on a real
|
|
128
|
+
isolated `0.2.1-rc.2` host — the positive half of the rc.2 verification — had
|
|
129
|
+
**not** been completed when this entry was written; the rc.2 evidence here is the
|
|
130
|
+
pre-widening refusal log plus the published evaluators' verdict on the widened
|
|
131
|
+
declaration. Until the positive load and the full release check set run against
|
|
132
|
+
that host, this release is recorded as audited at the declaration and
|
|
133
|
+
artifact-diff level only; no plugin release has been made from this tree, and
|
|
134
|
+
nothing here claims one.
|
|
135
|
+
|
|
74
136
|
## 0.2.1-alpha.5 audit outcome
|
|
75
137
|
|
|
76
138
|
The source-level audit of `dsh-v0.2.1-alpha.5` against `dsh-v0.2.1-alpha.4` found
|
|
@@ -210,9 +272,12 @@ needs a documentation update, not a peer-range widening.
|
|
|
210
272
|
> 0.2.1-alpha.3 outcome above and `docs/决策记录.md` (章节一). The paragraphs in
|
|
211
273
|
> this historical entry describe the policy as it stood on 2026-09-29.
|
|
212
274
|
> **This note is in turn superseded:** `0.2.1-alpha.4` was added the next day by
|
|
213
|
-
> the same deliberate audit step, `0.2.1-alpha.5` on 2026-10-16, and
|
|
214
|
-
>
|
|
215
|
-
>
|
|
275
|
+
> the same deliberate audit step, `0.2.1-alpha.5` on 2026-10-16, and
|
|
276
|
+
> `0.2.1-rc.2` on 2026-10-17 — each one its own audit, never an automatic
|
|
277
|
+
> consequence of a new DSH tag. The closed five-release list now lives in
|
|
278
|
+
> `engines.dsh` as well as in `peerDependencies`. `0.2.1-rc.1` shows zero code
|
|
279
|
+
> delta on this plugin's call surface but is deliberately left out, because it
|
|
280
|
+
> was never audited as its own host. See the 0.2.1-rc.2 outcome above.
|
|
216
281
|
|
|
217
282
|
## 0.2.0-rc.1 audit outcome
|
|
218
283
|
|
package/README.md
CHANGED
|
@@ -32,18 +32,19 @@ Host on your own computer and does not replace or modify the DSH Web UI.
|
|
|
32
32
|
|
|
33
33
|
## Install from npm
|
|
34
34
|
|
|
35
|
-
This source checkout targets Node.js 22+ and the
|
|
36
|
-
audited against — `0.2.0-rc.2` (the `latest
|
|
37
|
-
|
|
38
|
-
`web` profile. DSH checks a plugin's declared
|
|
39
|
-
profile, on every start rather than only on
|
|
40
|
-
refuses to activate this plugin. From DSH
|
|
41
|
-
`
|
|
42
|
-
range, so both name the same
|
|
35
|
+
This source checkout targets Node.js 22+ and the five DSH releases it has been
|
|
36
|
+
audited against — `0.2.0-rc.2` (the `latest` channel), the `alpha` channel
|
|
37
|
+
releases `0.2.1-alpha.3`, `0.2.1-alpha.4`, and `0.2.1-alpha.5`, and `0.2.1-rc.2`
|
|
38
|
+
(the `next` channel) — with a `web` profile. DSH checks a plugin's declared
|
|
39
|
+
requirements before composing a profile, on every start rather than only on
|
|
40
|
+
install, so any other host version refuses to activate this plugin. From DSH
|
|
41
|
+
`0.2.1-alpha.4` on, that check reads `engines.dsh` and ignores
|
|
42
|
+
`peerDependencies`; older hosts know only the peer range, so both name the same
|
|
43
|
+
five releases. The package includes Funnel helpers
|
|
43
44
|
for macOS, Linux, and Windows on amd64/arm64; trusted-LAN mode does not require
|
|
44
45
|
the helper.
|
|
45
46
|
|
|
46
|
-
The current working tree names exactly those
|
|
47
|
+
The current working tree names exactly those five versions in `engines.dsh` and
|
|
47
48
|
`peerDependencies` and is built/typechecked against `0.2.0-rc.2`. A previously
|
|
48
49
|
published plugin package may still carry its own older compatibility
|
|
49
50
|
declaration until a release is made from this tree.
|
package/README.zh-CN.md
CHANGED
|
@@ -30,16 +30,17 @@
|
|
|
30
30
|
|
|
31
31
|
## 从 npm 安装
|
|
32
32
|
|
|
33
|
-
当前源码面向 Node.js 22+ 与带 `web` profile
|
|
34
|
-
`0.2.0-rc.2`(`latest
|
|
35
|
-
`0.2.1-alpha.4` 与 `0.2.1-alpha.5
|
|
33
|
+
当前源码面向 Node.js 22+ 与带 `web` profile 的**五个已审计 DSH 版本**:
|
|
34
|
+
`0.2.0-rc.2`(`latest` 通道)、`alpha` 通道的 `0.2.1-alpha.3`、
|
|
35
|
+
`0.2.1-alpha.4` 与 `0.2.1-alpha.5`,以及 `0.2.1-rc.2`(`next` 通道)。
|
|
36
|
+
DSH 在组合 profile 前会校验插件声明的
|
|
36
37
|
兼容要求,且**每次启动都会校验**(不只是安装时),因此其他宿主版本会拒绝
|
|
37
38
|
激活本插件。从 DSH `0.2.1-alpha.4` 起,该校验只读 `engines.dsh` 并忽略
|
|
38
|
-
`peerDependencies`;更早的宿主只认 peer
|
|
39
|
+
`peerDependencies`;更早的宿主只认 peer 范围,因此两处列出同一组五个版本。
|
|
39
40
|
npm 包内置 macOS、Linux、Windows 的 amd64/arm64 Funnel helper;可信局域网
|
|
40
41
|
模式不依赖 helper。
|
|
41
42
|
|
|
42
|
-
当前工作树的 `engines.dsh` 与 `peerDependencies`
|
|
43
|
+
当前工作树的 `engines.dsh` 与 `peerDependencies` 精确列出这五个版本,构建与
|
|
43
44
|
类型检查针对 `0.2.0-rc.2`。从此工作树发布新版本前,已发布的旧插件包仍可能
|
|
44
45
|
带有各自旧的兼容声明。
|
|
45
46
|
|
|
@@ -3,10 +3,104 @@
|
|
|
3
3
|
> This is the durable audit record for DeepPilot's public DSH plugin. Re-audit
|
|
4
4
|
> the next DSH release instead of assuming that an rc upgrade is runtime-safe.
|
|
5
5
|
|
|
6
|
-
## Current decision — `dsh-v0.2.1-
|
|
6
|
+
## Current decision — `dsh-v0.2.1-rc.2`
|
|
7
|
+
|
|
8
|
+
- **Audited release:** `dsh-v0.2.1-rc.2`, published 2026-10-17T08:36:31.655Z. It is
|
|
9
|
+
**not** `latest`: `latest` still points at `0.2.0-rc.2`, and `alpha` still points
|
|
10
|
+
at `0.2.1-alpha.5`. It **is** the npm **`next`** channel release — this is the
|
|
11
|
+
first release on the rc line to enter the supported list.
|
|
12
|
+
- **Comparison baseline:** `dsh-v0.2.1-alpha.5` (the previous audited tag).
|
|
13
|
+
- **Plugin runtime verdict: no break, and no `src/` change was needed.** Fifteen
|
|
14
|
+
packages were compared **as whole trees, not by `lib/` alone**: all ten peer
|
|
15
|
+
packages ship a byte-identical `lib/` tree, and across 137 modules **no export
|
|
16
|
+
symbol is added or removed**, so every earlier fix still holds unchanged.
|
|
17
|
+
- **The one file outside `package.json` that differs is additive.**
|
|
18
|
+
`@deepseek-ai/dsh-web-app/cordis.patch.yml` gained one hunk / +3−0 inserting the
|
|
19
|
+
`ui-deepseek-model-label-1017` bundle (the DeepSeek-V4.1-Flash-1017 adaptation
|
|
20
|
+
named in the release notes). The patch anchor this plugin targets,
|
|
21
|
+
`id: directory-picker`, is byte-identical at lines 113–114 on both sides, the new
|
|
22
|
+
entry sits at lines 412–417, and the new package name appears zero times in this
|
|
23
|
+
plugin's `cordis.patch.yml` and `package.json`, so the change cannot reach any
|
|
24
|
+
patch this plugin applies.
|
|
25
|
+
- **Methodology change, now mandatory.** Comparing only `lib/` would have missed
|
|
26
|
+
exactly that file — and it is the surface this plugin's own patch layer acts on.
|
|
27
|
+
Whole-tree comparison is a required step of every future audit; do not fall back
|
|
28
|
+
to a `lib/`-only diff. See "Re-audit rule" below.
|
|
29
|
+
- **Activation verdict: the new release is admitted by both declarations, and the
|
|
30
|
+
earlier rc on the same line is deliberately left out.** This is the fourth
|
|
31
|
+
consecutive release on this line to trip the closed-list policy: rc.2 was refused
|
|
32
|
+
before the widening. rc.2 reads a declared `engines.dsh` alone, so its refusal
|
|
33
|
+
reported a **single** `engines.dsh` requirement rather than ten peers, and
|
|
34
|
+
`exempted: false` — the list is the only thing that admits a host, and no
|
|
35
|
+
exemption fallback exists on this machine (no profile `compatibility.json` under
|
|
36
|
+
`DSH_HOME`). Widening admits `0.2.1-rc.2` and nothing else. `0.2.1-rc.1` stays
|
|
37
|
+
refused even though it shows **zero code delta on this plugin's call surface**:
|
|
38
|
+
it was never audited as its own host, and the rc line reached this plugin one
|
|
39
|
+
release later.
|
|
40
|
+
- **Evidence: the published artifacts, the published evaluators, and a real rc.2
|
|
41
|
+
CLI run — all taken before any declaration changed.**
|
|
42
|
+
- **Change surface:** `.rc2-verify/CHANGE_SURFACE.md`. Raw logs:
|
|
43
|
+
`.rc2-verify/logs/lib-hash-compare.txt` and `lib-diff-exitcodes.txt` (10 of 10
|
|
44
|
+
peer `lib/` trees byte-identical), `whole-tree-compare.txt` (the 15-package
|
|
45
|
+
whole-tree fallback, which is what surfaced the `dsh-web-app` patch file),
|
|
46
|
+
`export-symbol-diff.out.json` (137 modules, zero symbol changes),
|
|
47
|
+
`pkg-manifest-delta.out.json` (245 spec-value differences, zero structural
|
|
48
|
+
differences), `webapp-cordis-patch-diff.txt` and `patch-anchor-verification.txt`
|
|
49
|
+
(the one differing file and its anchor), `rc1-delta.txt` (`0.2.1-rc.1` has zero
|
|
50
|
+
code delta on this plugin's call surface), and `evaluator-repro.out.json`
|
|
51
|
+
(three published evaluators × 14 candidates, all agreeing).
|
|
52
|
+
- **Activation decision, reproduced against rc.2's own published evaluator
|
|
53
|
+
before any edit:** `.rc2-verify/ACTIVATION.md` and `rc2-matrix.out.json`.
|
|
54
|
+
Unchanged, rc.2 was refused with a single `engines.dsh` requirement and
|
|
55
|
+
`exempted: false`; deleting `engines.dsh` from a copy of the manifest fell back
|
|
56
|
+
to all ten peers, confirming the short-circuit is unchanged. Projecting the
|
|
57
|
+
widening in memory admitted exactly `0.2.1-rc.2` with zero new refusals, while
|
|
58
|
+
`0.2.1-rc.3`, `0.2.1-rc.20`, `0.2.1-rc.2.1`, `0.2.1-RC.2`, and `0.2.1-rc.10`
|
|
59
|
+
stayed refused (`rc2-matrix-projected.out.json`).
|
|
60
|
+
- **Real CLI refusal, captured while the declaration was still unchanged:**
|
|
61
|
+
`.rc2-verify/PRECHANGE-BOOT.md`. Under an isolated `DSH_HOME` the real rc.2 CLI
|
|
62
|
+
printed `dsh: skipping profile bundle "dsh-deeppilot": … incompatible with dsh
|
|
63
|
+
0.2.1-rc.2: requirements {"engines.dsh":…}` plus `Exact-version exemption: not
|
|
64
|
+
active.`, `--dump-config` exited 0 with no plugin row in the composed tree, and
|
|
65
|
+
the host itself still booted (web port answered, while the plugin's own port
|
|
66
|
+
3098 had no listener). Raw logs: `PRECHANGE-dumpconfig.stderr.txt`,
|
|
67
|
+
`PRECHANGE-dumpconfig.stdout.txt`, `PRECHANGE-host.log`, `PRECHANGE-probes.txt`.
|
|
68
|
+
A control run of the same profile under the `0.2.1-alpha.5` CLI — which admits
|
|
69
|
+
`0.9.7` — loaded the plugin and answered `200` on port 3098
|
|
70
|
+
(`PRECHANGE-control-alpha5-host.log`, `PRECHANGE-control-alpha5-probes.txt`),
|
|
71
|
+
showing the negative probe has discriminating power.
|
|
72
|
+
- **Vendor pins: no range change needed.** rc.2 vendors the same GA pair as
|
|
73
|
+
alpha.5 — `cordis 4.0.5` and `schemastery 3.18.5` — and four independent solver
|
|
74
|
+
paths (host-tree and repository `semver`, each with and without
|
|
75
|
+
`includePrerelease`) agree both already satisfy the existing `~4.0.4 ||
|
|
76
|
+
~4.0.5-alpha.1` / `~3.18.4 || ~3.18.5-alpha.1` ranges
|
|
77
|
+
(`.rc2-verify/rc2-vendor.out.json`). Neither vendor published a new
|
|
78
|
+
per-DSH-release dist-tag for rc.2; their `latest` is already `4.0.5` / `3.18.5`.
|
|
79
|
+
- **Install verdict: the two declarations now agree on five releases.**
|
|
80
|
+
`engines.dsh` and all ten `@deepseek-ai/dsh*` peers name `0.2.0-rc.2 ||
|
|
81
|
+
0.2.1-alpha.3 || 0.2.1-alpha.4 || 0.2.1-alpha.5 || 0.2.1-rc.2`, mirrored in
|
|
82
|
+
`tests/compatibility-metadata.test.ts`, `package-lock.json` (root entry only),
|
|
83
|
+
both READMEs, `COMPATIBILITY.md`, `AGENTS.md`, and the local
|
|
84
|
+
`docs/决策记录.md` (章节一, 条目5). The tests now also pin `0.2.1-rc.1` and
|
|
85
|
+
`0.2.1-rc.3` as negative probes, so neither the skipped rc nor the next rc can be
|
|
86
|
+
admitted by accident. The dev pins and `DSH_BASELINE` stay at the exact
|
|
87
|
+
`0.2.0-rc.2` this branch builds and typechecks against.
|
|
88
|
+
- **Protocol verdict: no phone-protocol change.** Protocol v2, pairing state, and
|
|
89
|
+
device records are untouched by this release; no phone needs to re-pair.
|
|
90
|
+
- **Audit limits, stated rather than implied.** The positive half of the rc.2
|
|
91
|
+
verification — loading this plugin on a real isolated `0.2.1-rc.2` host after the
|
|
92
|
+
widening — had **not** been completed when this entry was written, and neither had
|
|
93
|
+
the full release check set against that host. Until they run, rc.2 is recorded as
|
|
94
|
+
audited at the artifact-diff and declaration level only; no plugin release has
|
|
95
|
+
been made from this tree.
|
|
96
|
+
|
|
97
|
+
### Previous decision — `dsh-v0.2.1-alpha.5`
|
|
7
98
|
|
|
8
99
|
- **Audited release:** `dsh-v0.2.1-alpha.5`, the newest `alpha` channel release.
|
|
9
100
|
It is **not** `latest`; `latest`/`next` still point at `0.2.0-rc.2`.
|
|
101
|
+
*(Superseded 2026-10-17 by `dsh-v0.2.1-rc.2`: `next` now points at
|
|
102
|
+
`0.2.1-rc.2`. `alpha` still points at `0.2.1-alpha.5` and `latest` still points
|
|
103
|
+
at `0.2.0-rc.2`. See the current decision above.)*
|
|
10
104
|
- **Comparison baseline:** `dsh-v0.2.1-alpha.4` (the previous audited tag).
|
|
11
105
|
- **Plugin runtime verdict: no break, and no `src/` change was needed.** Nine of
|
|
12
106
|
the ten peer packages ship a byte-identical `lib/` tree, including
|
|
@@ -91,10 +185,12 @@
|
|
|
91
185
|
committed tree), `npm run check:config-schema` against the pinned
|
|
92
186
|
`0.2.0-rc.2` CLI, `go test ./...` for the helper, and all six
|
|
93
187
|
`bin/SHA256SUMS` entries verified.
|
|
94
|
-
- **
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
188
|
+
- **Published as 0.9.7 on 2026-10-17.** `npm view dsh-deeppilot dist-tags` reads
|
|
189
|
+
`latest: 0.9.7`, and the version carries an npm provenance attestation
|
|
190
|
+
(`https://slsa.dev/provenance/v1`). The release commit `bf18755` is on `main`,
|
|
191
|
+
the annotated tag `v0.9.7` dereferences to it, and the GitHub release was made
|
|
192
|
+
public only after a clean-profile install had been verified — see the publish
|
|
193
|
+
verification section below.
|
|
98
194
|
|
|
99
195
|
### Previous decision — `dsh-v0.2.1-alpha.4`
|
|
100
196
|
|
|
@@ -588,9 +684,13 @@ close that gap rather than assume it.
|
|
|
588
684
|
`npm run typecheck`, `npm run build` with a byte-identical regenerated `lib/`,
|
|
589
685
|
`npm run check:config-schema` against the pinned `0.2.0-rc.2` CLI, the Go helper
|
|
590
686
|
tests, and the six `bin/SHA256SUMS` entries.
|
|
591
|
-
- **
|
|
592
|
-
|
|
593
|
-
|
|
687
|
+
- **Release action completed — 0.9.7 published on 2026-10-17.** The annotated tag
|
|
688
|
+
`v0.9.7` points at `bf18755` on `main`; the publish workflow ran on that tag and
|
|
689
|
+
all of its steps passed, including the post-publish registry check whose retry
|
|
690
|
+
window this release widened. Registry `latest` reads `0.9.7` with provenance,
|
|
691
|
+
and a clean isolated profile installed `dsh-deeppilot@0.9.7` from npm, composed
|
|
692
|
+
it on a real `0.2.1-alpha.5` host, and answered `/phone/health` with `200` and
|
|
693
|
+
`serverVersion: "0.9.7"`.
|
|
594
694
|
- **The declaration mirrors have drifted historically.** `README.md`,
|
|
595
695
|
`README.zh-CN.md`, `COMPATIBILITY.md`, and `AGENTS.md` all said "three
|
|
596
696
|
releases" while `package.json` already named four; that contradiction was
|
|
@@ -1644,3 +1744,30 @@ For every future DSH release, compare the new tag against the last audited tag,
|
|
|
1644
1744
|
inspect the package/service surfaces actually imported by this repository,
|
|
1645
1745
|
classify install/runtime/protocol risk separately, and append a dated decision
|
|
1646
1746
|
here. Do not treat a release-note summary as proof of compatibility.
|
|
1747
|
+
|
|
1748
|
+
Compare **whole package trees**, not just `lib/`. The rc.2 audit found its only
|
|
1749
|
+
non-`package.json` difference in `@deepseek-ai/dsh-web-app/cordis.patch.yml`, a
|
|
1750
|
+
file outside every `lib/` directory and the exact surface this plugin's own patch
|
|
1751
|
+
layer acts on; a `lib/`-only diff would have reported "no difference" and missed
|
|
1752
|
+
it. Take the published registry tarballs as the source of truth, enumerate the
|
|
1753
|
+
package set explicitly (peers, plus every package raw `dsh` dependencies add or
|
|
1754
|
+
remove, plus any peer that is not hoisted into the host tree), and only then read
|
|
1755
|
+
release notes.
|
|
1756
|
+
|
|
1757
|
+
## 2026-10-15 — 移动端技能发现扩展
|
|
1758
|
+
|
|
1759
|
+
新增可选的 `skills` 手机能力,使用官方 `sessionSkillCatalog.list({sessionId}, AbortSignal)` 服务,已对照本机 `0.2.0-rc.2` 和 `0.2.1-alpha.3` 发行声明。缺少服务只关闭该特性,晚挂载服务会重新探测,不缓存缺席。未修改宿主版本范围、鉴权、包版本或命令派发契约。手机只接收元数据,技能注册表和会话预设、工作目录变化触发目录失效。完整文档清单与四类差异表见《技能提示对接说明》。此源码改动尚未发布,真实主机与真机技能加载仍未验收。
|
|
1760
|
+
|
|
1761
|
+
## 2026-10-16 — 移动端系统指令扩展
|
|
1762
|
+
|
|
1763
|
+
1. 安装:本轮命令改动未调整依赖范围、包版本或发布状态。命令接口核对基于 `0.2.0-rc.2` 与 `0.2.1-alpha.3`;工作区并行的 `alpha.4` 兼容改动以其独立审计为准,不把本轮合成测试算作新版本真实业务验收。
|
|
1764
|
+
2. 运行:对照两版生成声明和实现,使用公开 `typertGateway.invoke` 的 `commands/list`、`commands/execute`、`fileUploads/upload`、`permissionPresets/catalog`、`sessionFeedback/record`;当前权限来自会话投影,日志复用官方共享 Fetch 归档路由。alpha.3 创建不参与审批的 owner Peer,rc.2 回退既有 operator。详情及上游全接口清单见[移动端命令对接说明](移动端命令对接说明.md)。
|
|
1765
|
+
3. 手机协议:v2 可选 `commands` 能力和五个新请求;读取使用 `sessions.read`,执行/反馈使用 `prompt.send`,小组件默认拒绝。旧手机忽略新字段,旧桥接不展示新增入口。导出分块不重放,接收方完整校验后分享。
|
|
1766
|
+
4. 验证:576 项测试通过、1 项原有待办;类型检查、构建和配置检查通过。新增逻辑为合成服务测试,未在两版真实 Host 会话执行系统指令,不据此声称运行验收或发布完成。
|
|
1767
|
+
|
|
1768
|
+
## 2026-10-16 — 移动端目录缓存
|
|
1769
|
+
|
|
1770
|
+
1. 安装与主机 API:本轮不改安装范围或依赖;读取沿用现有技能、命令和模型接口。工作区另有 alpha.4 兼容改动,命令对接已重新枚举该版 29 包、144 个接口,相关主机实现与 alpha.3 相同;不据此宣称真实业务验收。
|
|
1771
|
+
2. 手机协议:模型当前选择投影新增 `s2c.models.changed`,受 `sessions.read` 控制;原生权限执行可附加 `expectedDefinitionId`,重读目录核对来源,旧客户端字段缺省兼容。无新增周期轮询或第二层主机时间缓存。
|
|
1772
|
+
3. 客户端:内存五分钟、磁盘最长七天,重启旧目录先展示并校验,按配对身份/主机/会话隔离;当前模型、权限和执行结果不落盘。具体约定和格式重建见[移动端目录缓存](移动端目录缓存.md)。
|
|
1773
|
+
4. 验证:插件 577 项通过、1 项原有待办,类型检查、生成产物构建和使用本机固定版本的离线配置校验通过;两端缓存单元与模拟器证据见各自文档。未发布。
|
package/docs/NPM_PUBLISHING.md
CHANGED
|
@@ -87,6 +87,24 @@
|
|
|
87
87
|
线性递增并封顶 20 秒(约 7 分钟),仍然只读元数据、不重复上传包。这样既避免
|
|
88
88
|
「上传成功 + 核对延迟」在 Actions 页留下误导性的红色结论,也不会把真正的失败
|
|
89
89
|
伪装成成功——超出窗口依旧抛错。
|
|
90
|
+
6. `0.9.7` 是放宽窗口后的第一次发布,也是首次全绿的发布:工作流在附注标签
|
|
91
|
+
`v0.9.7`(提交 `bf18755`)上运行,19 个步骤全部成功,包含此前两次失败的末尾
|
|
92
|
+
核对。发布后核验:注册表 `latest = 0.9.7`、来源证明类型为
|
|
93
|
+
`https://slsa.dev/provenance/v1`;在全新隔离 profile 中从 npm 安装该版本,并在
|
|
94
|
+
真实 `0.2.1-alpha.5` 宿主上启动,`/phone/health` 返回 200 且 `serverVersion`
|
|
95
|
+
为 `0.9.7`。公开 GitHub Release 之前先完成了这一步安装验证。
|
|
96
|
+
7. `0.9.8` 的本地发布清单在**待发布工作树**上执行并通过(详细数字见
|
|
97
|
+
`docs/RELEASE_NOTES-0.9.8.md` 第三节):`npm ci`、单元测试 581 项
|
|
98
|
+
(580 通过、0 失败、1 项既有待办)、类型检查、构建前后 `lib/` 逐文件
|
|
99
|
+
sha256 一致、`check:config-schema`(仍针对锁定的 `0.2.0-rc.2` CLI)、
|
|
100
|
+
helper 的 Go 测试、`bin/SHA256SUMS` 6/6。宿主侧本轮改用
|
|
101
|
+
**`0.2.1-rc.2`**:隔离 `DSH_HOME` 下改动前被拒绝激活(单键 `engines.dsh`
|
|
102
|
+
要求 + `Exact-version exemption: not active`),扩围后组合树含插件与
|
|
103
|
+
web-app 补丁、真实启动出现 4 条 `[deeppilot]`,插件自有端口 3098 的
|
|
104
|
+
`/phone/health` 返回 200 且 `serverVersion` 为 `0.9.8`。打包为 68 个条目。
|
|
105
|
+
本轮还确认了一个易漏点:升版本号必须同步重录
|
|
106
|
+
`tests/apply-baseline.snapshot.json`,否则 `npm test` 会失败——已写入
|
|
107
|
+
`AGENTS.md` 的发布流程第 1 步。
|
|
90
108
|
|
|
91
109
|
## 五、官方资料
|
|
92
110
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import z from "@deepseek-ai/schemastery";
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
|
+
//#region src/device-auth.d.ts
|
|
4
|
+
declare const DEVICE_SCOPES: readonly ['sessions.read', 'prompt.send', 'sessions.manage', 'interactions.respond', 'notifications.register', 'schedule.manage'];
|
|
5
|
+
type DeviceScope = (typeof DEVICE_SCOPES)[number];
|
|
6
|
+
//#endregion
|
|
3
7
|
//#region src/wire-errors.d.ts
|
|
4
8
|
/**
|
|
5
9
|
* 错误词表(error vocabulary)的唯一属主。
|
|
@@ -198,12 +202,50 @@ type MutationDispatchResult<T> = {
|
|
|
198
202
|
replayed?: boolean;
|
|
199
203
|
};
|
|
200
204
|
//#endregion
|
|
201
|
-
//#region src/
|
|
202
|
-
|
|
203
|
-
|
|
205
|
+
//#region src/command-api.d.ts
|
|
206
|
+
interface CommandSummary {
|
|
207
|
+
name: string;
|
|
208
|
+
description: string;
|
|
209
|
+
definitionId?: string;
|
|
210
|
+
input?: {
|
|
211
|
+
hint: string;
|
|
212
|
+
attachments?: boolean;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
interface CommandCatalog {
|
|
216
|
+
commands: CommandSummary[];
|
|
217
|
+
permissions: boolean;
|
|
218
|
+
export: boolean;
|
|
219
|
+
}
|
|
220
|
+
interface CommandExecution {
|
|
221
|
+
commandId: string;
|
|
222
|
+
result: {
|
|
223
|
+
kind: 'success' | 'error';
|
|
224
|
+
text?: string;
|
|
225
|
+
sourceEventSeq?: number;
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
interface CommandAttachment {
|
|
229
|
+
type: 'image' | 'document';
|
|
230
|
+
name: string;
|
|
231
|
+
mediaType: string;
|
|
232
|
+
data: string;
|
|
233
|
+
}
|
|
234
|
+
interface PermissionOption {
|
|
235
|
+
value: string;
|
|
236
|
+
name: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
confirmation: boolean;
|
|
239
|
+
}
|
|
240
|
+
interface PermissionCatalog {
|
|
241
|
+
options: PermissionOption[];
|
|
242
|
+
currentValue?: string;
|
|
243
|
+
}
|
|
204
244
|
//#endregion
|
|
205
245
|
//#region src/protocol.d.ts
|
|
206
246
|
interface WelcomeCapabilities {
|
|
247
|
+
/** 会话命令目录、执行、权限与原生日志导出入口。缺省不支持。 */
|
|
248
|
+
commands?: boolean;
|
|
207
249
|
historyPaging: boolean;
|
|
208
250
|
replay: boolean;
|
|
209
251
|
approvals: boolean;
|
|
@@ -214,6 +256,8 @@ interface WelcomeCapabilities {
|
|
|
214
256
|
/** Bridge emits s2c.notify for all four notification categories. */
|
|
215
257
|
notifyAllCategories?: boolean;
|
|
216
258
|
models: boolean;
|
|
259
|
+
/** Session-scoped user-invocable skill metadata and invalidation notices. */
|
|
260
|
+
skills?: boolean;
|
|
217
261
|
sessionManagement: boolean;
|
|
218
262
|
/** Bridge can fork a session at an exact event boundary. */
|
|
219
263
|
sessionFork?: boolean;
|
|
@@ -348,6 +392,12 @@ interface MessageProjection {
|
|
|
348
392
|
ts: number;
|
|
349
393
|
truncated?: boolean;
|
|
350
394
|
}
|
|
395
|
+
/** Metadata only: loading instructions remains the Host's responsibility. */
|
|
396
|
+
interface SkillSummary {
|
|
397
|
+
name: string;
|
|
398
|
+
description: string;
|
|
399
|
+
modelInvocable: boolean;
|
|
400
|
+
}
|
|
351
401
|
type NotifyCategory = 'turn.completed' | 'approval.required' | 'question.asked' | 'session.error';
|
|
352
402
|
/**
|
|
353
403
|
* One offline-push-worthy event (same facts as s2c.notify / pending frames,
|
|
@@ -391,6 +441,28 @@ interface PendingSnapshotPayload {
|
|
|
391
441
|
}
|
|
392
442
|
//#endregion
|
|
393
443
|
//#region src/host-api.d.ts
|
|
444
|
+
interface CommandsApiLike {
|
|
445
|
+
list(req: RpcRequestLike<{
|
|
446
|
+
sessionId: string;
|
|
447
|
+
}>): Promise<RpcResponseLike<CommandCatalog>>;
|
|
448
|
+
execute(req: RpcRequestLike<{
|
|
449
|
+
sessionId: string;
|
|
450
|
+
line: string;
|
|
451
|
+
attachments: CommandAttachment[];
|
|
452
|
+
expectedDefinitionId?: string;
|
|
453
|
+
}>): Promise<RpcResponseLike<CommandExecution>>;
|
|
454
|
+
permissions(req: RpcRequestLike<{
|
|
455
|
+
sessionId: string;
|
|
456
|
+
}>): Promise<RpcResponseLike<PermissionCatalog>>;
|
|
457
|
+
feedback(req: RpcRequestLike<{
|
|
458
|
+
sessionId: string;
|
|
459
|
+
text: string;
|
|
460
|
+
category?: string;
|
|
461
|
+
}>): Promise<RpcResponseLike<void>>;
|
|
462
|
+
export(req: RpcRequestLike<{
|
|
463
|
+
sessionId: string;
|
|
464
|
+
}>, signal: AbortSignal): Promise<Response>;
|
|
465
|
+
}
|
|
394
466
|
interface RpcOk<T> {
|
|
395
467
|
ok: true;
|
|
396
468
|
value: T;
|
|
@@ -441,6 +513,11 @@ interface SessionsApiLike {
|
|
|
441
513
|
models?(req: RpcRequestLike<{
|
|
442
514
|
sessionId: string;
|
|
443
515
|
}>): Promise<RpcResponseLike<HostSessionModels>>;
|
|
516
|
+
skills?(req: RpcRequestLike<{
|
|
517
|
+
sessionId: string;
|
|
518
|
+
}>): Promise<RpcResponseLike<{
|
|
519
|
+
skills: SkillSummary[];
|
|
520
|
+
}>>;
|
|
444
521
|
selectModel?(req: RpcRequestLike<{
|
|
445
522
|
sessionId: string;
|
|
446
523
|
provider: string;
|
|
@@ -729,6 +806,7 @@ interface ApiStreamItemLike {
|
|
|
729
806
|
payload: MuxFrameLike;
|
|
730
807
|
}
|
|
731
808
|
interface ApiProxyLike {
|
|
809
|
+
commands?: CommandsApiLike;
|
|
732
810
|
sessions: SessionsApiLike;
|
|
733
811
|
workspace?: WorkspaceApiLike;
|
|
734
812
|
schedule?: ScheduleApiLike;
|
|
@@ -952,6 +1030,12 @@ declare class HostBridge {
|
|
|
952
1030
|
mediaType?: string;
|
|
953
1031
|
data: string;
|
|
954
1032
|
} | null>;
|
|
1033
|
+
commandOperation(operation: 'list' | 'execute' | 'permissions' | 'feedback', payload: Record<string, unknown>): Promise<SessionManagementResult<unknown>>;
|
|
1034
|
+
exportSession(sessionId: string, signal: AbortSignal): Promise<Response>;
|
|
1035
|
+
/** 由会话目录决定技能可见性;不读取正文,也不把本机路径发给移动端。 */
|
|
1036
|
+
sessionSkills(sessionId: string): Promise<SessionManagementResult<{
|
|
1037
|
+
skills: SkillSummary[];
|
|
1038
|
+
}>>;
|
|
955
1039
|
sessionModels(sessionId: string): Promise<ModelBridgeResult<HostSessionModels>>;
|
|
956
1040
|
selectSessionModel(sessionId: string, selection: HostModelSelection): Promise<ModelBridgeResult<HostModelSelection>>;
|
|
957
1041
|
renameSession(sessionId: string, title: string): Promise<SessionManagementResult<string>>;
|