dsh-vision-router 2.1.2 → 2.1.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/README.md +1 -1
- package/README.zh.md +1 -1
- package/docs/architecture/compat-inventory.md +6 -6
- package/docs/architecture/dsh-compatibility-matrix.md +7 -6
- package/docs/architecture/dsh-support-window.md +36 -16
- package/docs/architecture/p3-compat-retirement.md +7 -5
- package/docs/architecture/p3-host-native-seams.md +3 -1
- package/docs/doctor.md +4 -1
- package/docs/releases/v2.1.3.md +34 -0
- package/docs/releases/v2.1.4.md +34 -0
- package/docs/v2-capability-routing.md +20 -11
- package/index.js +156 -129
- package/lib/catalog-corrections.js +2 -0
- package/lib/client-presentation-boundary-main.js +478 -2
- package/lib/client-presentation-boundary.js +121 -1
- package/lib/client.js +4 -4
- package/lib/depth-guidance.js +4 -4
- package/lib/doctor-cli-p0.js +3 -1
- package/lib/doctor-cli.js +4 -1
- package/lib/doctor-runtime.js +8 -3
- package/lib/dsh-support-window.js +15 -7
- package/lib/live-model-discovery.js +20 -13
- package/lib/local-vision-stabilizer.js +1 -1
- package/lib/mixed-router.js +8 -8
- package/lib/pi-ai-bridge-wire-compat.js +69 -10
- package/lib/runtime-i18n-boundary.js +27 -2
- package/lib/runtime-i18n.js +6 -6
- package/lib/session-affinity-runtime.js +104 -0
- package/lib/session-affinity.js +93 -0
- package/lib/settings-ia-client-prelude.js +1 -1
- package/lib/structured-bootstrap.js +2 -2
- package/lib/structured-flow-hardening.js +159 -158
- package/lib/tesseract-exec-compat.js +9 -36
- package/lib/vision-backend-runtime-policy.js +1 -0
- package/lib/vision-background-benchmark.js +79 -52
- package/lib/vision-background-failure-policy.js +1 -24
- package/lib/vision-background-stop-store.js +10 -13
- package/lib/vision-capability-benchmark-service.js +14 -2
- package/lib/vision-tool-runtime-boundary.js +20 -3
- package/lib/windows-desktop-capture.js +247 -0
- package/package.json +5 -5
- package/lib/windows-screenshot-dpi-compat.js +0 -148
package/README.md
CHANGED
|
@@ -413,7 +413,7 @@ ollama pull qwen2.5vl
|
|
|
413
413
|
## Requirements
|
|
414
414
|
|
|
415
415
|
- DeepSeek Harness Web profile. Normal installs can use `npx @deepseek-ai/dsh ...`; source checkouts use `pnpm dsh ...`. A bare `dsh ...` command only works when the CLI is already on your shell `PATH`.
|
|
416
|
-
- **DSH Host support
|
|
416
|
+
- **DSH Host support policy:** DVR 2.1.x keeps DSH `0.1.0-rc.8` as the public minimum and currently supports the released stable channel through `0.1.2-rc.1`. Exact `0.1.3-alpha.2` coverage is **verification evidence only**, not a preview support promise; scheduled `latest`/`alpha` canaries monitor drift without changing the support policy. DVR 2.0.x was the final train with public support for rc.6/rc.7. See [DSH Host support window](docs/architecture/dsh-support-window.md).
|
|
417
417
|
- Node ≥ 22 (host side).
|
|
418
418
|
- No API key for the default free chain; a credential reference (`apiKeyEnv`) only for paid `httpProviders`.
|
|
419
419
|
- Chrome / Chromium / Edge is needed only for `vision_html_screenshot`; every other tool works without a browser.
|
package/README.zh.md
CHANGED
|
@@ -411,7 +411,7 @@ ollama pull qwen2.5vl
|
|
|
411
411
|
## 环境要求
|
|
412
412
|
|
|
413
413
|
- DeepSeek Harness 的 Web profile。普通安装可用 `npx @deepseek-ai/dsh ...`;从源码仓库运行时用 `pnpm dsh ...`。只有 CLI 已经进入系统 `PATH` 时才能直接写 `dsh ...`。
|
|
414
|
-
- **DSH Host
|
|
414
|
+
- **DSH Host 支持策略:** DVR 2.1.x 的公开最低 Host 仍为 DSH `0.1.0-rc.8`,当前正式发布通道已验证并支持到 `0.1.2-rc.1`。对 `0.1.3-alpha.2` 的精确覆盖**只属于验证证据**,不代表对 preview 的公开支持承诺;定时 `latest`/`alpha` canary 只负责发现上游漂移,也不会自动改变支持策略。DVR 2.0.x 是最后公开支持 rc.6/rc.7 的版本线。详见 [DSH Host 支持窗口](docs/architecture/dsh-support-window.md)。
|
|
415
415
|
- Node ≥ 22(宿主侧)。
|
|
416
416
|
- 默认免费链路无需 API Key;付费 `httpProviders` 只需一个凭据引用(`apiKeyEnv`)。
|
|
417
417
|
- 只有 `vision_html_screenshot` 需要 Chrome / Chromium / Edge;其余工具无浏览器也能用。
|
|
@@ -40,12 +40,12 @@ P0 records why each major compatibility seam exists and the condition that permi
|
|
|
40
40
|
|
|
41
41
|
## `lib/pi-ai-bridge-wire-compat.js`
|
|
42
42
|
|
|
43
|
-
- **Reason:**
|
|
44
|
-
- **Host gap:** the direct bridge predates route/model wire metadata such as max-token fields and route-owned headers.
|
|
45
|
-
- **First needed for:** DSH 0.1.1 pi-ai declared provider/wire compatibility.
|
|
46
|
-
- **Feature detection:** exact non-streaming OpenAI-compatible image bridge fingerprint plus resolved route/model facts
|
|
47
|
-
- **Removal condition:**
|
|
48
|
-
- **Tests:** `pi-ai-bridge-wire-compat`, native process-restart/cold-resume contract.
|
|
43
|
+
- **Reason:** keep the legacy direct image bridge transport-equivalent to pi-ai declared wire compatibility and, while upstream lacks the OpenCode-specific carrier, project Vision Router-owned session affinity onto the final Go wire without taking ownership of ordinary Host traffic. `lib/session-affinity-runtime.js` is the scoped AsyncLocalStorage companion; it carries affinity only while a Router-owned lazy stream is executing.
|
|
44
|
+
- **Host gap:** the direct bridge predates route/model wire metadata such as max-token fields and route-owned headers; current DSH/pi-ai accepts `GenerateOptions.sessionId` but emits generic affinity carriers rather than OpenCode Go's required `x-opencode-session`.
|
|
45
|
+
- **First needed for:** DSH 0.1.1 pi-ai declared provider/wire compatibility; OpenCode Go's September 2026 required session header.
|
|
46
|
+
- **Feature detection:** legacy wire recovery still requires the exact non-streaming OpenAI-compatible image bridge fingerprint plus resolved route/model facts. OpenCode affinity requires an active Vision Router AsyncLocalStorage scope, the exact official HTTPS `opencode.ai/zen/go...` endpoint, and absence of an upstream-native `x-opencode-session`; unrelated Host/plugin traffic is inert.
|
|
47
|
+
- **Removal condition:** remove legacy bridge recovery when every supported Host executes that image path through native pi-ai wire facts; remove the scoped OpenCode projection independently once every supported DSH/pi-ai path emits `x-opencode-session` from `GenerateOptions.sessionId`. The native header must win before deletion so the compatibility rule self-retires.
|
|
48
|
+
- **Tests:** `pi-ai-bridge-wire-compat`, real `opencode-session-wire-contract`, native process-restart/cold-resume contract.
|
|
49
49
|
|
|
50
50
|
## `lib/settings-client-rc8-lifecycle.js`
|
|
51
51
|
|
|
@@ -8,10 +8,11 @@ The matrix is capability-based. Runtime code must feature-detect the seam it nee
|
|
|
8
8
|
|
|
9
9
|
| CI fixture | DSH package line | Role |
|
|
10
10
|
| --- | --- | --- |
|
|
11
|
-
| `minimum-contract` | `0.1.0-rc.6` |
|
|
12
|
-
| `legacy-contract` | `0.1.0-rc.8` |
|
|
13
|
-
| `current-contract` | `0.1.
|
|
14
|
-
| `
|
|
11
|
+
| `minimum-contract` | `0.1.0-rc.6` | Historical compatibility-retention fixture. The name is legacy; DVR 2.1.x public support starts at rc.8. |
|
|
12
|
+
| `legacy-contract` | `0.1.0-rc.8` | Public support-floor fixture carrying batch attachments and dimension policy. |
|
|
13
|
+
| `current-contract` | `0.1.2-rc.1` | Current stable Host contract baseline. Must remain green. |
|
|
14
|
+
| exact preview gates | `0.1.3-alpha.2` | Required verification evidence only; not a public preview-support claim. |
|
|
15
|
+
| `latest-dsh` / alpha canaries | resolved dynamically from npm dist-tags | Scheduled drift surveillance only. Never changes support policy by itself. |
|
|
15
16
|
|
|
16
17
|
Node 22 and Node 24 remain the general required runtime matrix. The Host contract jobs are additive; they do not replace the normal test matrix.
|
|
17
18
|
|
|
@@ -19,7 +20,7 @@ Node 22 and Node 24 remain the general required runtime matrix. The Host contrac
|
|
|
19
20
|
|
|
20
21
|
`yes` means the fixture has a direct positive test or feature probe. `no` means a direct negative probe exists. `compat` means the fixture proves Vision Router can safely carry the newer input/config through that Host, but does **not** claim the Host owns that capability. `probe` means the capability is intentionally not inferred from the version label and is verified at runtime/contract-test time.
|
|
21
22
|
|
|
22
|
-
| Capability | minimum-contract rc.6 | legacy-contract rc.8 | current-contract rc.2 | Evidence / detection |
|
|
23
|
+
| Capability | minimum-contract rc.6 | legacy-contract rc.8 | current-contract rc.1 (0.1.2) | Evidence / detection |
|
|
23
24
|
| --- | --- | --- | --- | --- |
|
|
24
25
|
| Batch attachment save | no | yes | yes | `hasBatchAttachmentContract()` checks the released `attachments.saveImages` prototype; `tests/rc6-rc7-compat.test.js`; contract CI. |
|
|
25
26
|
| Max image dimension policy | compat | yes | yes | All fixtures parse the complete attachment-local row; rc.8/current positively retain the field and the established admission tests exercise the 10000/10001 boundary. Older Schemastery passthrough is not treated as ownership evidence. |
|
|
@@ -53,5 +54,5 @@ Every compatibility seam must answer the same six questions: **Reason**, **Host
|
|
|
53
54
|
|
|
54
55
|
1. A new version-specific branch requires evidence that no stable capability probe exists.
|
|
55
56
|
2. A compatibility layer may narrow behavior to preserve an existing product contract; it may not expand routing authority.
|
|
56
|
-
3.
|
|
57
|
+
3. Exact preview and dynamic canary evidence can reveal upstream drift, but neither may silently redefine the public support policy.
|
|
57
58
|
4. P1 may begin only when all three gating fixtures and the existing cold-resume/resource baselines are green.
|
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
# DSH Host support window
|
|
2
2
|
|
|
3
|
-
Status: normative for the DVR 2.x compatibility program.
|
|
3
|
+
Status: normative for the current DVR 2.x compatibility program.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Public support policy
|
|
6
|
+
|
|
7
|
+
The public support policy contains only released Host semantics. Preview/canary versions are intentionally excluded from this table.
|
|
6
8
|
|
|
7
9
|
| Role | DSH train | Meaning |
|
|
8
10
|
|---|---|---|
|
|
9
11
|
| Minimum Supported Host | `0.1.0-rc.8` | Oldest Host generation that DVR 2.1.x publicly supports. |
|
|
10
|
-
|
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
| Current Stable Host | `0.1.2-rc.1` | Current npm stable-channel release covered by required exact Host and browser evidence. |
|
|
13
|
+
|
|
14
|
+
DVR `2.1.x` therefore keeps `0.1.0-rc.8` as its public floor and supports released Host trains through the current stable channel. Runtime branching remains capability-based rather than version-string-driven.
|
|
15
|
+
|
|
16
|
+
No later support-floor increase is currently announced.
|
|
17
|
+
|
|
18
|
+
## Verification evidence — not support policy
|
|
19
|
+
|
|
20
|
+
Compatibility evidence answers a different question: what exact upstream releases and moving channels have current CI proof? It must never be interpreted as a public support-floor change.
|
|
21
|
+
|
|
22
|
+
| Evidence role | DSH source | Meaning |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| Exact stable evidence | `0.1.2-rc.1` | Required Host/wire and real Host + Chromium coverage for the current stable release. |
|
|
25
|
+
| Exact preview evidence | `0.1.3-alpha.2` | Required preview Host/wire/lifecycle/browser evidence. This is not a preview support promise. |
|
|
26
|
+
| Stable drift canary | npm dist-tag `latest` | Scheduled, dynamically resolved surveillance. A failure starts compatibility investigation; it does not rewrite support policy. |
|
|
27
|
+
| Preview drift canary | npm dist-tag `alpha` | Scheduled, dynamically resolved surveillance with preview-specific lifecycle coverage. A failure does not rewrite support policy. |
|
|
28
|
+
|
|
29
|
+
The exact evidence values may move in a patch-level maintenance PR when CI proof advances. The public minimum may move only under the support-floor protocol below.
|
|
30
|
+
|
|
31
|
+
Historical release notes under `docs/releases/` are release-time snapshots and are not rewritten when later evidence advances.
|
|
32
|
+
|
|
13
33
|
|
|
14
|
-
|
|
34
|
+
The optional peer-dependency range may admit an exact preview version so CI/users can install a verified preview Host without peer-resolution noise. That install admission is compatibility evidence, not a public preview support promise.
|
|
15
35
|
|
|
16
36
|
## Floor transition from DVR 2.0.x
|
|
17
37
|
|
|
18
|
-
DVR 2.0.x was released with DSH `0.1.0-rc.6` as its minimum Host. The 2.1.0 boundary was announced in advance and
|
|
38
|
+
DVR 2.0.x was released with DSH `0.1.0-rc.6` as its minimum Host. The 2.1.0 boundary was announced in advance and raised the public minimum to DSH `0.1.0-rc.8`.
|
|
19
39
|
|
|
20
40
|
```text
|
|
21
41
|
DVR 2.0.x minimum: DSH 0.1.0-rc.6
|
|
@@ -26,24 +46,24 @@ Users still on rc.6/rc.7 should upgrade DSH before upgrading to DVR 2.1.x.
|
|
|
26
46
|
|
|
27
47
|
This support-floor transition does **not** require deleting every rc.6-era compatibility seam in the same release. Compatibility code is retired only after a separate proof shows it is unreachable or unnecessary on every supported Host and durable-history path.
|
|
28
48
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## Support-window change protocol
|
|
49
|
+
## Support-policy change protocol
|
|
32
50
|
|
|
33
|
-
A Host support-floor change is valid only when all of the following are true:
|
|
51
|
+
A public Host support-floor change is valid only when all of the following are true:
|
|
34
52
|
|
|
35
|
-
1. the change is announced in a DVR minor or major release, never only in a patch release;
|
|
53
|
+
1. the floor change is announced in a DVR minor or major release, never only in a patch release;
|
|
36
54
|
2. README / support documentation and release notes state the old and new floors;
|
|
37
|
-
3. Doctor reports the effective support
|
|
38
|
-
4. required CI
|
|
55
|
+
3. Doctor reports the effective public support policy and gives a capability-based upgrade result for Hosts below the active floor;
|
|
56
|
+
4. required CI proves the public floor and current stable Host, while preview and dynamic canaries remain separately labelled verification evidence;
|
|
39
57
|
5. compatibility seams are removed only after the new minimum Host proves the replacement capability;
|
|
40
58
|
6. removal PRs keep restart, settings, native-image coexistence, tool execution, Node 22/24 and supported-platform regressions green.
|
|
41
59
|
|
|
60
|
+
Advancing an exact stable/preview evidence version or a moving canary target does **not** by itself change the public support floor.
|
|
61
|
+
|
|
42
62
|
## Capability-first rule
|
|
43
63
|
|
|
44
|
-
Version labels describe
|
|
64
|
+
Version labels describe support policy and CI evidence; runtime branching still uses capabilities.
|
|
45
65
|
|
|
46
|
-
DVR must not turn
|
|
66
|
+
DVR must not turn these tables into widespread version-string conditionals. Runtime compatibility continues to feature-detect the concrete Host seam it needs. If a capability cannot be proven safely, the compatibility path fails open or reports an explicit unsupported/unknown state according to that seam's contract.
|
|
47
67
|
|
|
48
68
|
## Compatibility-retirement rule
|
|
49
69
|
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Decision date: 2026-08-28
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Status: historical P3-B audit snapshot. It records the 2.0.x support policy in force at the decision date; it is **not** the current Host support policy. See [`dsh-support-window.md`](dsh-support-window.md) for the normative current policy and verification evidence.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
DVR train at decision time: `2.0.x`
|
|
8
|
+
|
|
9
|
+
Minimum supported Host at decision time: DSH `0.1.0-rc.6`
|
|
8
10
|
|
|
9
11
|
## Result
|
|
10
12
|
|
|
11
13
|
**NO COMPAT DELETION IS CURRENTLY AUTHORIZED.**
|
|
12
14
|
|
|
13
|
-
P3-B is intentionally a retirement audit, not a quota to delete files. Under the
|
|
15
|
+
P3-B is intentionally a retirement audit, not a quota to delete files. Under the 2.0.x support window in force at the decision date, every Host-generation compatibility seam that materially exists for rc.6/rc.8 users still has a reachable support case.
|
|
14
16
|
|
|
15
17
|
## Seam review
|
|
16
18
|
|
|
@@ -18,7 +20,7 @@ P3-B is intentionally a retirement audit, not a quota to delete files. Under the
|
|
|
18
20
|
|---|---|---|
|
|
19
21
|
| attachment contract / Android attachment fallback | rc.6 remains the minimum and does not provide the later batch-attachment contract used by the modern path | after the released minimum Host no longer needs the single-attachment/permission fallback and the replacement is proven on the new minimum |
|
|
20
22
|
| Host settings compatibility | rc.6 remains supported; live settings/client behavior differs across the support window | after the new minimum exposes the stable settings seam used by DVR without compatibility wrapping |
|
|
21
|
-
| rc.8 browser/client lifecycle compatibility | rc.8 is still inside the declared support window and
|
|
23
|
+
| rc.8 browser/client lifecycle compatibility | rc.8 is still inside the declared support window and was the Previous Supported Train at the decision date | only after rc.8 itself leaves the support window or the same path becomes unreachable by capability proof |
|
|
22
24
|
| replay envelope v2 compatibility | old durable histories remain valid inputs even when the live Host is newer | only when the supported history/runtime window no longer needs producer rebinding or Host provides an equivalent native replay identity seam |
|
|
23
25
|
| adapter prepareCall/coalescing compatibility | the support matrix still spans Host generations with different adapter-registration/update behavior | only when the minimum Host and every DVR-owned adapter satisfy one stable registration/update contract |
|
|
24
26
|
| pi-ai bridge wire compatibility | legacy direct-bridge traffic remains a supported route shape | only after the direct bridge is retired or all supported Hosts execute that path through an equivalent native wire seam |
|
|
@@ -41,6 +43,6 @@ Each deletion still requires proof on:
|
|
|
41
43
|
|
|
42
44
|
## P3-B verdict
|
|
43
45
|
|
|
44
|
-
`PASS — no expired seam under the
|
|
46
|
+
`PASS — no expired seam under the 2.0.x support window in force at the decision date.`
|
|
45
47
|
|
|
46
48
|
Deleting a still-supported rc.6 seam merely to make the compatibility inventory smaller would violate the P3 plan and the published 2.0.x compatibility contract.
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Decision date: 2026-08-28
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Status: historical P3-D audit snapshot. It records the support policy in force when this decision was made; it is **not** the current Host support policy. See [`dsh-support-window.md`](dsh-support-window.md) for the normative current policy and verification evidence.
|
|
6
|
+
|
|
7
|
+
Support window at decision time: DVR `2.0.x` / minimum DSH `0.1.0-rc.6` / previous `0.1.0-rc.8` / current `0.1.1-rc.2`.
|
|
6
8
|
|
|
7
9
|
P3-D permits a migration only when all four conditions are true:
|
|
8
10
|
|
package/docs/doctor.md
CHANGED
|
@@ -79,7 +79,7 @@ or `DSH_WEB_URL`. To perform offline checks only:
|
|
|
79
79
|
npx dsh-vision-router doctor --no-runtime
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
An unreachable DSH process is advisory rather than a doctor failure; offline checks still complete. When `--profile` is used against
|
|
82
|
+
An unreachable DSH process is advisory rather than a doctor failure; offline checks still complete. DSH Web may also require its signed browser-session cookie before any `/api` route is visible. If every side-effect-free route probe is rejected with `401`, Doctor reports the runtime as **reachable but authentication-required** and keeps plugin route health/ownership unknown instead of printing false route failures or bypassing Host authentication. The JSON report exposes `runtime.authenticationRequired: true`; capability support advice remains unknown because no Host seam was actually observed. When `--profile` is used against an authenticated reachable runtime, Doctor still does not attribute green route health to that profile unless the runtime exposes a verified Vision Router profile identity. If ownership cannot be proven, the human report shows `? runtime profile ownership unknown` instead of a false green binding.
|
|
83
83
|
|
|
84
84
|
### Local capability diagnostics
|
|
85
85
|
|
|
@@ -91,6 +91,9 @@ Doctor reports the local platform, Node version, and whether it can find:
|
|
|
91
91
|
|
|
92
92
|
Tesseract, Chromium and profile-local Sharp are advisory because the corresponding optional tool may be unused or supplied by the host through another resolution path.
|
|
93
93
|
|
|
94
|
+
|
|
95
|
+
Doctor also keeps **public Host support policy** separate from **compatibility verification evidence**. Human output lists the DVR support floor/current stable Host in the support section, then lists exact stable/preview CI evidence and moving npm canary channels in a separate verification section. In `--json`, these are separate `hostSupportWindow` and `hostVerificationEvidence` objects; preview/canary values never appear inside `hostSupportWindow`.
|
|
96
|
+
|
|
94
97
|
### Scan historical sessions
|
|
95
98
|
|
|
96
99
|
Session scanning is opt-in because a large session store can take longer to read/decompress:
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# v2.1.3
|
|
2
|
+
|
|
3
|
+
DVR 2.1.3 is a reliability and quality release for Structured 1+x vision. It closes the remaining evidence-completion edge cases from Round 1, then simplifies model-visible guidance so capable agents can choose the smallest useful visual tool instead of following prescriptive call recipes.
|
|
4
|
+
|
|
5
|
+
## Structured 1+x reliability
|
|
6
|
+
|
|
7
|
+
- Makes `structured-flow-hardening` the sole post-bootstrap completion authority. Core keeps bootstrap sequencing and presentation only; mixed classification remains advisory and never becomes a hidden branch quota.
|
|
8
|
+
- Uses tool-specific usable-evidence validation for 1+x completion instead of generic execution metadata. Successful artifacts, engine names, chunk counts, or malformed payloads cannot masquerade as visual evidence.
|
|
9
|
+
- Separates all-turn successful evidence accounting from post-bootstrap evidence accounting. Evidence collected before `vision_bootstrap` still consumes an explicit call cap when configured, but it cannot satisfy the required post-bootstrap `x >= 1` step.
|
|
10
|
+
- Tightens `vision_detect`: malformed inventories fail instead of collapsing into fake zero-detection evidence, explicit `elements: []` remains a valid negative result, and fully off-image boxes are rejected before clamping while genuine partial overlaps remain supported.
|
|
11
|
+
- Restores the public OCR contract everywhere: `vision_ocr` with omitted `engine` or `engine=auto` always tries local Tesseract first, then falls back to the vision model only when local OCR fails or returns no text. Structured mode does not silently rewrite this order.
|
|
12
|
+
|
|
13
|
+
## Smarter, less prescriptive agent guidance
|
|
14
|
+
|
|
15
|
+
- Removes the nonexistent `vision_ask` affordance from model-visible guidance and adds a closed-world contract test so future `vision_*` references must correspond to registered tools.
|
|
16
|
+
- Treats bootstrap `recommended_followups` as task-independent suggestions, not a downstream plan. The agent chooses follow-up evidence from the user question and the evidence still missing.
|
|
17
|
+
- Stops encouraging extra calls once the required post-bootstrap evidence is sufficient; depth strategies remain guidance rather than hidden call-count promises.
|
|
18
|
+
- UI guidance no longer implies a fixed `detect + ground` sequence, code guidance requires verbatim fidelity only when the task truly depends on exact/executable code, and mixed images verify only the branch or branches relevant to the user question.
|
|
19
|
+
|
|
20
|
+
## Settings, clipboard, and DSH compatibility
|
|
21
|
+
|
|
22
|
+
- Aligns the vision-task timeout defaults across Settings and runtime behavior so the UI no longer advertises a different default from execution.
|
|
23
|
+
- Marks progressive vision-tool exposure as restart-only, matching the actual tool-registration lifecycle instead of implying a hot runtime toggle.
|
|
24
|
+
- Hardens Web clipboard intake across Windows, QQ/WeChat, bitmap-style screenshots, and misleading MIME declarations: duplicate screenshots are deduplicated and supported image types are reconciled against magic bytes before DSH intake.
|
|
25
|
+
- Adds real alpha browser cold-toggle coverage and keeps the presentation/main source contract in CI so model-directory and Vision-toggle compatibility cannot silently regress between queue-loader and live-loader phases.
|
|
26
|
+
|
|
27
|
+
## Validation
|
|
28
|
+
|
|
29
|
+
- Release-candidate behavior is covered by the closed-world default test manifest, Node 22/24 CI, DSH rc.6/rc.7/rc.8 contracts, native multimodal cold-resume, P1 routing parity, architecture closure, large-image resource stress, and Windows/macOS/Linux host-sharp integration.
|
|
30
|
+
- No settings migration is required. Restart the DSH Web/Desktop process after upgrading so restart-bound tool registration and the updated runtime guidance are loaded.
|
|
31
|
+
|
|
32
|
+
## Upgrade
|
|
33
|
+
|
|
34
|
+
Upgrade to 2.1.3 and restart DSH Web/Desktop. Existing Vision Router settings remain compatible.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# v2.1.4
|
|
2
|
+
|
|
3
|
+
DVR 2.1.4 is a compatibility and reliability patch for the current DSH stable/preview trains. It hardens Windows capture, OpenCode Go session affinity, attachment/timeout lifecycle boundaries, live-model credentials, background capability measurement, and Doctor diagnostics without changing the public 2.1.x routing model.
|
|
4
|
+
|
|
5
|
+
## Runtime reliability
|
|
6
|
+
|
|
7
|
+
- Replaces the legacy Windows DPI screenshot shim with a dedicated PMv2 → PMv1 DPI-aware desktop capture path. Compilation uses an isolated ASCII temp directory so non-ASCII Windows user profiles no longer break `Add-Type`, while incorrect DPI contexts still fail closed instead of returning a cropped desktop.
|
|
8
|
+
- Propagates the real DSH session identity through vision child calls and isolates OpenCode Go wire affinity from internal Session identity. Direct Go requests without a stable session fail closed, existing upstream `x-opencode-session` headers remain authoritative, and benchmark traffic uses isolated synthetic affinity rather than contaminating user sessions.
|
|
9
|
+
- Bounds the user-facing lifetime of vision tools across Host attachment saves by combining the ambient turn signal, Host execution signal, and live `visionTaskTimeoutMs` deadline. Late plugin work observes the spent signal even though the Host attachment store itself has no physical cancellation primitive.
|
|
10
|
+
- Keeps `visionTaskTimeoutMs` hot: Settings changes are read on the next invocation without restarting DSH or re-registering tools.
|
|
11
|
+
|
|
12
|
+
## DSH stable / preview compatibility
|
|
13
|
+
|
|
14
|
+
- Adds exact compatibility evidence for DSH `0.1.2-rc.1` and `0.1.3-alpha.2`, including real Host contracts, pi-ai wire behavior, Session-v2 restart coverage, cold Vision-toggle browser smoke, and alpha mixed generic-file paste lifecycle.
|
|
15
|
+
- Splits scheduled release canaries into npm `latest` (stable) and npm `alpha` (preview). These moving canaries automatically test newly published DSH trains while fixed exact-version gates preserve reproducible compatibility evidence.
|
|
16
|
+
- Hardens bitmap normalization and alpha mixed paste so MIME/extension mismatches, text+image+generic-file combinations, and duplicate lifecycle delivery cannot silently corrupt attachment intake.
|
|
17
|
+
|
|
18
|
+
## Security, discovery, and diagnostics
|
|
19
|
+
|
|
20
|
+
- Separates public Host support policy from compatibility verification evidence. DVR 2.1.x keeps `0.1.0-rc.8` as its public minimum and `0.1.2-rc.1` as the current stable Host, while exact preview evidence and moving npm canaries are reported separately and never become an implicit support promise.
|
|
21
|
+
- Removes secret-derived data from live-model route fingerprints and from persisted background AUTH stops. Credential rotation is handled by the current `credentials/reference-updated` event with legacy-event compatibility, immediately invalidating stale evidence and revalidating with the new credential.
|
|
22
|
+
- Makes unattended background failures quieter and more accurate: authentication, protocol, and rate-limit failures share bounded transport-scope cooldowns instead of rotating through sibling models/axes every short gap, while ordinary network/timeout failures remain narrowly axis-scoped.
|
|
23
|
+
- Treats token-authenticated DSH Web correctly in Doctor. A blanket `401` now means “runtime reachable, browser authentication required, route health unknown” instead of a false route failure; Doctor does not bypass the Host’s signed-cookie boundary.
|
|
24
|
+
- Closes the remaining CodeQL findings without dismissing them; current Code Scanning is clean.
|
|
25
|
+
|
|
26
|
+
## Validation
|
|
27
|
+
|
|
28
|
+
- Covered by Node 22/24, DSH rc.6/rc.7/rc.8 contracts, exact stable `0.1.2-rc.1`, exact preview `0.1.3-alpha.2`, Windows Node 24 screenshot runtime, provider transport, routing parity, Session surfaces, real browser lifecycle gates, and CodeQL.
|
|
29
|
+
- Local release-candidate verification completed with the full test suite at zero failures, contract tests at zero failures, and backend runtime policy coverage green.
|
|
30
|
+
- No Settings migration is required. Restart DSH Web/Desktop after upgrading so the new runtime and browser-side compatibility logic are loaded.
|
|
31
|
+
|
|
32
|
+
## Upgrade
|
|
33
|
+
|
|
34
|
+
Upgrade to 2.1.4 and restart DSH Web/Desktop. Existing Vision Router settings remain compatible.
|
|
@@ -156,17 +156,26 @@ intentional: standing background authority is the user's permission to verify
|
|
|
156
156
|
capability within the selected local/free/paid cost boundary, not permission to
|
|
157
157
|
trust possibly stale Host modality metadata as ground truth.
|
|
158
158
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
159
|
+
Failure lifetime follows the narrowest authority that can explain the failure.
|
|
160
|
+
Timeout, network, visual-proof, and Benchmark-infrastructure failures remain
|
|
161
|
+
model/axis-scoped, so one failed axis does not suppress another axis or an
|
|
162
|
+
independent route. Authentication and unsupported-protocol failures apply to the
|
|
163
|
+
same transport scope (provider + endpoint + protocol + credential reference), and
|
|
164
|
+
rate-limit backoff is shared by sibling models on that same scope, preventing an
|
|
165
|
+
invalid or throttled account/endpoint from rotating through every model and axis
|
|
166
|
+
at the normal 15-second background gap.
|
|
167
|
+
|
|
168
|
+
Authentication stops are process-local and bounded; Vision Router never persists
|
|
169
|
+
an API-key value or deterministic derivative just to recognize a later key
|
|
170
|
+
rotation. Current `credentials/reference-updated` and legacy
|
|
171
|
+
`credentials/updated` notifications synchronously revoke the in-memory AUTH stop
|
|
172
|
+
and rescan with the new credential. Unsupported-protocol and unavailable-model
|
|
173
|
+
stops remain bounded persistent evidence (the former also suppresses sibling
|
|
174
|
+
models on the same transport; the latter stays model-specific). Visual-proof and
|
|
175
|
+
Benchmark-infrastructure failures do not manufacture a text-only verdict or
|
|
176
|
+
disable other axes. An explicit image-input rejection is persisted separately as
|
|
177
|
+
a measured text-only verdict. A changed deployment fingerprint creates a new
|
|
178
|
+
evidence scope, and an explicit successful Test Vision clears the corresponding
|
|
170
179
|
same-fingerprint stop. Public background status exposes only a sanitized failure
|
|
171
180
|
class/code; raw provider responses and credentials are not published to the
|
|
172
181
|
browser.
|