dsh-vision-router 3.2.0 → 3.2.1
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 +4 -4
- package/README.zh.md +4 -4
- package/THIRD_PARTY_NOTICES.md +107 -0
- package/assets/licenses/apache-2.0.txt +202 -0
- package/assets/licenses/moxcms-BSD-3-Clause.txt +26 -0
- package/assets/licenses/roots-BSD-2-Clause.txt +24 -0
- package/assets/licenses/unicode-ident-Unicode-3.0.txt +39 -0
- package/assets/licenses/vtracer-MIT.txt +25 -0
- package/assets/licenses/zlib-rs-Zlib.txt +19 -0
- package/docs/compatibility/dsh-0.2.2-rc2-audit.md +40 -0
- package/docs/compliance/vtracer-alpha4-provenance.md +47 -0
- package/docs/compliance/vtracer-alpha4-reconstructed-Cargo.lock +567 -0
- package/docs/compliance/vtracer-alpha4-rust-inventory.json +421 -0
- package/docs/compliance/vtracer-alpha4-rust-license-texts.md +13018 -0
- package/docs/releases/v3.2.1.md +21 -0
- package/docs/remote-settings.md +83 -8
- package/index.js +15 -10
- package/lib/client.js +13 -13
- package/lib/core-primitives.js +69 -187
- package/lib/remote-settings-bridge.js +93 -57
- package/lib/remote-settings-risk-client-boundary.js +2 -2
- package/lib/settings-client-017-compat.js +4 -2
- package/lib/settings-ia-client-prelude.js +26 -10
- package/lib/trace-vtracer-worker.js +163 -0
- package/lib/web/dsh-settings-017-root-transport.js +52 -6
- package/lib/web-capability-boundary.js +6 -0
- package/package.json +8 -5
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
DSH_017_SETTINGS_COMPAT_MARK,
|
|
3
3
|
LOCAL_SETTINGS_PATH,
|
|
4
4
|
} from '../dsh-settings-017-compat.js'
|
|
5
|
+
import { isLocalUiRequest } from '../web-capability-boundary.js'
|
|
5
6
|
|
|
6
7
|
const BODY_LIMIT_BYTES = 256 * 1024
|
|
7
8
|
const ROOT_TRANSPORT_REGISTRY_KEY = Symbol.for('dsh-vision-router.settings-017-root-local-transport')
|
|
@@ -67,8 +68,13 @@ function serviceOf(ctx, name) {
|
|
|
67
68
|
|
|
68
69
|
function compatibleSettings(ctx) {
|
|
69
70
|
const settings = serviceOf(ctx, 'settings')
|
|
70
|
-
if (settings?.
|
|
71
|
-
|
|
71
|
+
if (typeof settings?.describe !== 'function' || typeof settings.mutate !== 'function') return undefined
|
|
72
|
+
// Modern Hosts can expose both native SettingsProvider.register() and
|
|
73
|
+
// configForms. Their browser uses the local bridge even without our
|
|
74
|
+
// ConfigEditor compatibility facade/marker. Keep legacy Hosts without
|
|
75
|
+
// configForms on their original settings path.
|
|
76
|
+
const forms = serviceOf(ctx, 'configForms')
|
|
77
|
+
if (settings[DSH_017_SETTINGS_COMPAT_MARK] !== true && typeof forms?.get !== 'function') return undefined
|
|
72
78
|
return settings
|
|
73
79
|
}
|
|
74
80
|
|
|
@@ -153,11 +159,33 @@ function beginSlowMutationWatch(root, requestId) {
|
|
|
153
159
|
}, SLOW_MUTATION_MS)
|
|
154
160
|
}
|
|
155
161
|
|
|
156
|
-
function
|
|
162
|
+
function allowLocalSettingsRequest(req, res, connection) {
|
|
163
|
+
// This root-owned route bypasses DVR's usual child-Context WebServer wrapper.
|
|
164
|
+
// Check *both* transport locality and the Host's authenticated browser
|
|
165
|
+
// session before reading or mutating the complete settings namespace.
|
|
166
|
+
let denied = !isLocalUiRequest(req) ? 403 : undefined
|
|
167
|
+
if (denied === undefined) {
|
|
168
|
+
try {
|
|
169
|
+
if (typeof connection?.requestRejection !== 'function') denied = 403
|
|
170
|
+
else {
|
|
171
|
+
const rejection = connection.requestRejection(req)
|
|
172
|
+
if (rejection !== undefined && rejection !== null) {
|
|
173
|
+
denied = rejection === 401 ? 401 : 403
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
} catch { denied = 403 }
|
|
177
|
+
}
|
|
178
|
+
if (denied === undefined) return true
|
|
179
|
+
sendJson(res, denied, { ok: false, error: { code: 'access-denied', message: 'Local settings require an authenticated local DSH browser' } })
|
|
180
|
+
return false
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function routeFor(root, state, getConnection) {
|
|
157
184
|
return {
|
|
158
185
|
kind: 'exact',
|
|
159
186
|
path: LOCAL_SETTINGS_PATH,
|
|
160
187
|
async handler(req, res) {
|
|
188
|
+
if (!allowLocalSettingsRequest(req, res, getConnection())) return
|
|
161
189
|
const requestId = ++state.requestSequence
|
|
162
190
|
trace('handler-enter', { requestId, method: req.method, generation: state.current?.id })
|
|
163
191
|
const settings = currentSettings(state)
|
|
@@ -230,14 +258,16 @@ function ensureRootRoute(root, state) {
|
|
|
230
258
|
|
|
231
259
|
state.routeInstalling = true
|
|
232
260
|
try {
|
|
233
|
-
const owner = root.inject(['webServer'], (webCtx) => {
|
|
261
|
+
const owner = root.inject(['webServer', 'connection'], (webCtx) => {
|
|
234
262
|
if (!webCtx?.webServer || typeof webCtx.webServer.register !== 'function' || typeof webCtx.effect !== 'function') {
|
|
235
263
|
throw new Error('Vision Router requires WebServer route registration on DSH 0.1.7')
|
|
236
264
|
}
|
|
237
265
|
trace('route-register', {})
|
|
238
266
|
webCtx.effect(
|
|
239
267
|
() => {
|
|
240
|
-
const dispose = webCtx.webServer.register(routeFor(root, state)
|
|
268
|
+
const dispose = webCtx.webServer.register(routeFor(root, state, () => {
|
|
269
|
+
try { return webCtx.connection } catch { return undefined }
|
|
270
|
+
}))
|
|
241
271
|
return () => {
|
|
242
272
|
trace('route-dispose', {})
|
|
243
273
|
dispose()
|
|
@@ -270,7 +300,7 @@ export function installDsh017RootLocalSettingsTransport(ctx) {
|
|
|
270
300
|
if (!objectLike(root)) return
|
|
271
301
|
const state = stateFor(root)
|
|
272
302
|
|
|
273
|
-
|
|
303
|
+
const mountGeneration = (settingsCtx) => {
|
|
274
304
|
const mounted = compatibleSettings(settingsCtx)
|
|
275
305
|
if (!mounted) return
|
|
276
306
|
|
|
@@ -310,5 +340,21 @@ export function installDsh017RootLocalSettingsTransport(ctx) {
|
|
|
310
340
|
disposeGeneration()
|
|
311
341
|
throw error
|
|
312
342
|
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// The 0.1.7 facade needs only settings and must continue to work when the
|
|
346
|
+
// modern configForms service does not exist.
|
|
347
|
+
ctx.inject(['settings'], (settingsCtx) => {
|
|
348
|
+
const settings = serviceOf(settingsCtx, 'settings')
|
|
349
|
+
if (settings?.[DSH_017_SETTINGS_COMPAT_MARK] === true) mountGeneration(settingsCtx)
|
|
350
|
+
})
|
|
351
|
+
|
|
352
|
+
// Native SettingsProvider + configForms is a two-service capability.
|
|
353
|
+
// Depending only on "settings" can observe it before configForms starts and
|
|
354
|
+
// permanently skip the route. Cordis reinvokes a multi-service inject when
|
|
355
|
+
// configForms becomes ready and disposes it if either service disappears.
|
|
356
|
+
ctx.inject(['settings', 'configForms'], (servicesCtx) => {
|
|
357
|
+
const settings = serviceOf(servicesCtx, 'settings')
|
|
358
|
+
if (settings?.[DSH_017_SETTINGS_COMPAT_MARK] !== true) mountGeneration(servicesCtx)
|
|
313
359
|
})
|
|
314
360
|
}
|
|
@@ -14,6 +14,12 @@ export const WEB_ROUTE_REMOTE_CAPABILITY = Object.freeze({
|
|
|
14
14
|
// callers that use isLocalMutationRoute(); local-only GET capabilities such as
|
|
15
15
|
// test-connection are intentionally not reclassified as mutations.
|
|
16
16
|
const ROUTE_CAPABILITY_POLICIES = new Map([
|
|
17
|
+
// The ConfigEditor-backed root route has its own explicit transport and
|
|
18
|
+
// BrowserAuth fence; declare its local-only semantics here as well.
|
|
19
|
+
['/_dsh/vision-router/local-settings', new Map([
|
|
20
|
+
['GET', { remote: WEB_ROUTE_REMOTE_CAPABILITY.LOCAL_ONLY }],
|
|
21
|
+
['POST', { remote: WEB_ROUTE_REMOTE_CAPABILITY.LOCAL_ONLY, legacyMutation: true }],
|
|
22
|
+
])],
|
|
17
23
|
['/_dsh/vision-router/self-update', new Map([
|
|
18
24
|
['POST', { remote: WEB_ROUTE_REMOTE_CAPABILITY.LOCAL_ONLY, legacyMutation: true }],
|
|
19
25
|
])],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-vision-router",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Eyes for text-only DeepSeek Harness agents: built-in free vision chain + pixel-level tools. Remote vision providers, including the default free fallback, receive image content unless strict local-only use is configured.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"LICENSE",
|
|
29
|
+
"THIRD_PARTY_NOTICES.md",
|
|
29
30
|
"README.md",
|
|
30
31
|
"README.zh.md",
|
|
31
32
|
"assets",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
],
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"@deepseek-ai/schemastery": ">=3.18.0",
|
|
57
|
-
"
|
|
58
|
+
"@visioncortex/vtracer": "1.0.0-alpha.4",
|
|
58
59
|
"puppeteer-core": "^25.16.0",
|
|
59
60
|
"semver": "7.7.3",
|
|
60
61
|
"undici": "^7.30.1",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"typescript": "6.0.3"
|
|
85
86
|
},
|
|
86
87
|
"scripts": {
|
|
87
|
-
"test": "node --test tests/dsh-alpha-pin.test.js tests/dsh-rc1-pin.test.js tests/agent-prestep-model-routing.test.js tests/native-plugin-icons.test.js tests/optional-peer-import-contract.test.js tests/index-modularization.test.js tests/adapter-prepare-call-compat.test.js tests/core.test.js tests/issue-374-delegated-call-config.test.js tests/grounding-coordinate-frame.test.js tests/grounding-coordinate-runtime.test.js tests/desktop-e2e-watchdog.test.js tests/capability-advisory.test.js tests/vision-execution-policy.test.js tests/vision-backend-diagnostics.test.js tests/live-model-discovery.test.js tests/cache-atomic-write-concurrency.test.js tests/live-model-credential-resolution.test.js tests/vision-model-registry.test.js tests/live-model-client-stability.test.js tests/providers-persistence.test.js tests/provider-directory-fallback.test.js tests/model-catalog-policy.test.js tests/settings-ia-client-prelude.test.js tests/settings-ia-fj.test.js tests/settings-ia-acceptance-regression.test.js tests/settings-migration.test.js tests/settings-section-order.test.js tests/attachment-admission-policy.test.js tests/vision-resilience.test.js tests/degraded-local-evidence.test.js tests/vision-resilience-lifecycle.test.js tests/vision-breaker-readonly.test.js tests/alpha1-browser-lifecycle-integration.test.js tests/issue-367-remote-session-inject.test.js tests/vision-mode-toggle-injection.test.js tests/dev-staged-build.test.js tests/dev-web-reload.test.js tests/client.test.js tests/issue-307-regression.test.js tests/issue-284-vision-mode-toggle.test.js tests/issue-284-vision-mode-hardening.test.js tests/issue-284-attachment-id-hint.test.js tests/issue-284-model-visibility.test.js tests/issue-284-vision-selection-effort.test.js tests/client-presentation-boundary.test.js tests/clipboard-image-paste-compat.test.js tests/remote-settings-bridge.test.js tests/remote-settings-v2-contract.test.js tests/remote-settings-risk-confirmation.test.js tests/local-remote-settings-permission.test.js tests/artifact-path-security.test.js tests/http-compat.test.js tests/catalog-corrections.test.js tests/release-registry-identity.test.js tests/update-check.test.js tests/update-check-signal-lifecycle.test.js tests/self-update.test.js tests/doctor.test.js tests/doctor-cli.test.js tests/legacy-session-repair.test.js tests/profile-pnpm-diagnostics.test.js tests/doctor-v2.test.js tests/doctor-cli-v2.test.js tests/doctor-runtime.test.js tests/dsh-host-capabilities.test.js tests/doctor-host-capabilities.test.js tests/session-repair-v2.test.js tests/activation-shim-contract.test.js tests/bundle-defaults.test.js tests/required-ci-contract.test.js tests/ci-electron-download-retry.test.js tests/file-logger.test.js tests/official-deepseek-catalog.test.js tests/replay-delegation.test.js tests/twin-image-capability-fallback.test.js tests/twin-image-custom-wrapper.test.js tests/adversarial-hardening.test.js tests/vision-adversarial-hardening-v2.test.js tests/vision-capability-benchmark-visual-proof.test.js tests/wrapper-directory.test.js tests/logging-ui.test.js tests/manifest-dependencies.test.js tests/provider-transport-threading.test.js tests/architecture-2.3-gate.test.js tests/host-settings-seam.test.js tests/drift-canary-settings-seam.test.js tests/esm-cycle-audit.test.js tests/structured-bootstrap.test.js tests/structured-bootstrap-gate.test.js tests/vision-model-guidance-contract.test.js tests/local-ollama.test.js tests/local-only-vision.test.js tests/ollama-cold-start.test.js tests/ollama-cold-start-loaded.test.js tests/zero-regression-gate.test.js tests/runtime-e2e.test.js tests/local-vision-stabilizer.test.js tests/local-connection-probe.test.js tests/vision-diagnostics-routes.test.js tests/repetition-guard.test.js tests/guide-scroll-gate.test.js tests/settings-scroll-jank-regression.test.js tests/free-cloud-first.test.js tests/dsh-host-compat.test.js tests/native-image-coexistence.test.js tests/issue-276-session-image-ownership.test.js tests/issue-276-entry-policy-bridge.test.js tests/issue-276-policy-hardening.test.js tests/issue-289-native-nonintervention.test.js tests/issue-512-tool-restriction.test.js tests/issue-606-session-source-ownership.test.js tests/pi-ai-bridge-wire-compat.test.js tests/fetch-wrapper-lifecycle.test.js tests/fetch-wrapper-composition.test.js tests/provider-probe-proxy-scope.test.js tests/lifecycle-invariants.test.js tests/vision-tool-settings-generation.test.js tests/release-package-content-identity.test.js tests/release-state-machine.test.js tests/mixed-router.test.js tests/depth-tier.test.js tests/depth-quota-behavior.test.js tests/structured-flow-hardening.test.js tests/structured-flow-adversarial.test.js tests/vision-budget-activation.test.js tests/runtime-boundary-fixes.test.js tests/vision-stream-iterator-cancellation.test.js tests/security-resource-boundaries.test.js tests/security-property-fuzz.test.js tests/security-adversarial-fuzz-contract.test.js tests/runtime-i18n.test.js tests/long-ocr-empty-retry.test.js tests/tesseract-adaptive-ocr.test.js tests/tesseract-node24-boot.test.js tests/session-vision-state.test.js tests/session-vision-state-integration.test.js tests/session-vision-event-feed.test.js tests/session-vision-policy.test.js tests/session-vision-policy-domain.test.js tests/session-vision-delegation.test.js tests/session-vision-delegation-boundary.test.js tests/subagent-vision-inheritance-characterization.test.js tests/subagent-vision-runtime-integration.test.js tests/subagent-vision-cold-resume.test.js tests/image-resource-governor.test.js tests/resource-retention-lifecycle.test.js tests/pixel-diff-stream.test.js tests/large-image-resource-integration.test.js tests/structured-guard-idempotency.test.js tests/vision-routing-product.test.js tests/vision-runtime-performance.test.js tests/vision-routing-settings-prelude.test.js tests/v2-settings-ia-integration.test.js tests/vision-capability-router.test.js tests/vision-capability-reference.test.js tests/vision-capability-benchmark.test.js tests/vision-capability-grounding-proof-contract.test.js tests/vision-capability-probe.test.js tests/vision-capability-axis-freshness.test.js tests/vision-capability-shadow-health.test.js tests/vision-capability-benchmark-service.test.js tests/vision-capability-preflight-hardening.test.js tests/vision-capability-benchmark-contract.test.js tests/vision-capability-benchmark-client.test.js tests/vision-capability-benchmark-client-productization.test.js tests/vision-capability-adapter-route.test.js tests/vision-background-benchmark.test.js tests/vision-background-lifecycle.test.js tests/vision-background-benchmark-productization.test.js tests/vision-capability-benchmark-budget.test.js tests/vision-image-input-verdict.test.js tests/vision-capability-failure-classification.test.js tests/vision-capability-gate-client.test.js tests/v2-product-review-fixes.test.js tests/qa-top5-reliability.test.js tests/qa-screenshot-runtime.test.js tests/qa-runtime-identity.test.js tests/qa-turn-budget-cancellation.test.js tests/qa-cancellation-publication.test.js tests/qa-reliability-tail.test.js tests/qa-endpoint-route-alias.test.js tests/settings-native-card-semantics.test.js tests/settings-native-card-lazy-data.test.js tests/settings-invalid-staged-dirty.test.js tests/vision-toggle-root-hardening.test.js && pnpm test:regression-closure && node --test tests/vision-backend-runtime-policy.test.js tests/vision-router-adversarial-review-fixes.test.js tests/web-panel-delegation.test.js",
|
|
88
|
+
"test": "node --test tests/dsh-alpha-pin.test.js tests/dsh-rc1-pin.test.js tests/dsh-rc2-pin.test.js tests/agent-prestep-model-routing.test.js tests/native-plugin-icons.test.js tests/optional-peer-import-contract.test.js tests/index-modularization.test.js tests/adapter-prepare-call-compat.test.js tests/core.test.js tests/issue-374-delegated-call-config.test.js tests/grounding-coordinate-frame.test.js tests/grounding-coordinate-runtime.test.js tests/desktop-e2e-watchdog.test.js tests/capability-advisory.test.js tests/vision-execution-policy.test.js tests/vision-backend-diagnostics.test.js tests/live-model-discovery.test.js tests/cache-atomic-write-concurrency.test.js tests/live-model-credential-resolution.test.js tests/vision-model-registry.test.js tests/live-model-client-stability.test.js tests/providers-persistence.test.js tests/provider-directory-fallback.test.js tests/model-catalog-policy.test.js tests/settings-ia-client-prelude.test.js tests/settings-ia-fj.test.js tests/settings-ia-acceptance-regression.test.js tests/settings-migration.test.js tests/settings-section-order.test.js tests/attachment-admission-policy.test.js tests/vision-resilience.test.js tests/degraded-local-evidence.test.js tests/vision-resilience-lifecycle.test.js tests/vision-breaker-readonly.test.js tests/alpha1-browser-lifecycle-integration.test.js tests/issue-367-remote-session-inject.test.js tests/vision-mode-toggle-injection.test.js tests/dev-staged-build.test.js tests/dev-web-reload.test.js tests/client.test.js tests/issue-307-regression.test.js tests/issue-284-vision-mode-toggle.test.js tests/issue-284-vision-mode-hardening.test.js tests/issue-284-attachment-id-hint.test.js tests/issue-284-model-visibility.test.js tests/issue-284-vision-selection-effort.test.js tests/client-presentation-boundary.test.js tests/clipboard-image-paste-compat.test.js tests/remote-settings-bridge.test.js tests/remote-settings-v2-contract.test.js tests/remote-settings-risk-confirmation.test.js tests/local-remote-settings-permission.test.js tests/artifact-path-security.test.js tests/http-compat.test.js tests/catalog-corrections.test.js tests/release-registry-identity.test.js tests/update-check.test.js tests/update-check-signal-lifecycle.test.js tests/self-update.test.js tests/doctor.test.js tests/doctor-cli.test.js tests/legacy-session-repair.test.js tests/profile-pnpm-diagnostics.test.js tests/doctor-v2.test.js tests/doctor-cli-v2.test.js tests/doctor-runtime.test.js tests/dsh-host-capabilities.test.js tests/doctor-host-capabilities.test.js tests/session-repair-v2.test.js tests/activation-shim-contract.test.js tests/bundle-defaults.test.js tests/required-ci-contract.test.js tests/ci-electron-download-retry.test.js tests/file-logger.test.js tests/official-deepseek-catalog.test.js tests/replay-delegation.test.js tests/twin-image-capability-fallback.test.js tests/twin-image-custom-wrapper.test.js tests/adversarial-hardening.test.js tests/vision-adversarial-hardening-v2.test.js tests/vision-capability-benchmark-visual-proof.test.js tests/wrapper-directory.test.js tests/logging-ui.test.js tests/manifest-dependencies.test.js tests/provider-transport-threading.test.js tests/architecture-2.3-gate.test.js tests/host-settings-seam.test.js tests/drift-canary-settings-seam.test.js tests/esm-cycle-audit.test.js tests/structured-bootstrap.test.js tests/structured-bootstrap-gate.test.js tests/vision-model-guidance-contract.test.js tests/local-ollama.test.js tests/local-only-vision.test.js tests/ollama-cold-start.test.js tests/ollama-cold-start-loaded.test.js tests/zero-regression-gate.test.js tests/runtime-e2e.test.js tests/local-vision-stabilizer.test.js tests/local-connection-probe.test.js tests/vision-diagnostics-routes.test.js tests/repetition-guard.test.js tests/guide-scroll-gate.test.js tests/settings-scroll-jank-regression.test.js tests/free-cloud-first.test.js tests/dsh-host-compat.test.js tests/native-image-coexistence.test.js tests/issue-276-session-image-ownership.test.js tests/issue-276-entry-policy-bridge.test.js tests/issue-276-policy-hardening.test.js tests/issue-289-native-nonintervention.test.js tests/issue-512-tool-restriction.test.js tests/issue-606-session-source-ownership.test.js tests/pi-ai-bridge-wire-compat.test.js tests/fetch-wrapper-lifecycle.test.js tests/fetch-wrapper-composition.test.js tests/provider-probe-proxy-scope.test.js tests/lifecycle-invariants.test.js tests/vision-tool-settings-generation.test.js tests/release-package-content-identity.test.js tests/release-state-machine.test.js tests/mixed-router.test.js tests/depth-tier.test.js tests/depth-quota-behavior.test.js tests/structured-flow-hardening.test.js tests/structured-flow-adversarial.test.js tests/vision-budget-activation.test.js tests/runtime-boundary-fixes.test.js tests/vision-stream-iterator-cancellation.test.js tests/security-resource-boundaries.test.js tests/security-property-fuzz.test.js tests/security-adversarial-fuzz-contract.test.js tests/runtime-i18n.test.js tests/long-ocr-empty-retry.test.js tests/tesseract-adaptive-ocr.test.js tests/tesseract-node24-boot.test.js tests/session-vision-state.test.js tests/session-vision-state-integration.test.js tests/session-vision-event-feed.test.js tests/session-vision-policy.test.js tests/session-vision-policy-domain.test.js tests/session-vision-delegation.test.js tests/session-vision-delegation-boundary.test.js tests/subagent-vision-inheritance-characterization.test.js tests/subagent-vision-runtime-integration.test.js tests/subagent-vision-cold-resume.test.js tests/image-resource-governor.test.js tests/resource-retention-lifecycle.test.js tests/pixel-diff-stream.test.js tests/large-image-resource-integration.test.js tests/structured-guard-idempotency.test.js tests/vision-routing-product.test.js tests/vision-runtime-performance.test.js tests/vision-routing-settings-prelude.test.js tests/v2-settings-ia-integration.test.js tests/vision-capability-router.test.js tests/vision-capability-reference.test.js tests/vision-capability-benchmark.test.js tests/vision-capability-grounding-proof-contract.test.js tests/vision-capability-probe.test.js tests/vision-capability-axis-freshness.test.js tests/vision-capability-shadow-health.test.js tests/vision-capability-benchmark-service.test.js tests/vision-capability-preflight-hardening.test.js tests/vision-capability-benchmark-contract.test.js tests/vision-capability-benchmark-client.test.js tests/vision-capability-benchmark-client-productization.test.js tests/vision-capability-adapter-route.test.js tests/vision-background-benchmark.test.js tests/vision-background-lifecycle.test.js tests/vision-background-benchmark-productization.test.js tests/vision-capability-benchmark-budget.test.js tests/vision-image-input-verdict.test.js tests/vision-capability-failure-classification.test.js tests/vision-capability-gate-client.test.js tests/v2-product-review-fixes.test.js tests/qa-top5-reliability.test.js tests/qa-screenshot-runtime.test.js tests/qa-runtime-identity.test.js tests/qa-turn-budget-cancellation.test.js tests/qa-cancellation-publication.test.js tests/qa-reliability-tail.test.js tests/qa-endpoint-route-alias.test.js tests/settings-native-card-semantics.test.js tests/settings-native-card-lazy-data.test.js tests/settings-invalid-staged-dirty.test.js tests/vision-toggle-root-hardening.test.js && pnpm test:regression-closure && node --test tests/vision-backend-runtime-policy.test.js tests/vision-router-adversarial-review-fixes.test.js tests/web-panel-delegation.test.js && node --test tests/vision-trace-vtracer.test.js tests/vision-trace-image-quality.test.js && pnpm license:check",
|
|
88
89
|
"test:core": "node --test tests/core.test.js tests/degraded-local-evidence.test.js tests/runtime-e2e.test.js tests/structured-bootstrap.test.js tests/structured-flow-hardening.test.js tests/structured-flow-adversarial.test.js tests/vision-execution-policy.test.js tests/vision-backend-runtime-policy.test.js",
|
|
89
90
|
"test:routing": "node --test tests/issue-374-delegated-call-config.test.js tests/twin-image-capability-fallback.test.js tests/twin-image-custom-wrapper.test.js tests/vision-routing-product.test.js tests/vision-capability-router.test.js tests/vision-capability-probe.test.js tests/vision-capability-shadow-health.test.js tests/vision-runtime-performance.test.js tests/vision-background-benchmark.test.js tests/vision-image-input-verdict.test.js",
|
|
90
91
|
"test:session": "node --test tests/session-vision-state.test.js tests/session-vision-state-integration.test.js tests/session-vision-policy.test.js tests/session-vision-delegation.test.js tests/session-vision-delegation-boundary.test.js tests/subagent-vision-inheritance-characterization.test.js tests/subagent-vision-runtime-integration.test.js tests/subagent-vision-cold-resume.test.js tests/session-vision-policy-domain.test.js tests/replay-delegation.test.js tests/legacy-session-repair.test.js tests/session-repair-v2.test.js tests/issue-276-session-image-ownership.test.js",
|
|
@@ -113,10 +114,12 @@
|
|
|
113
114
|
"typecheck:declaration": "tsc -p tsconfig.declaration.json",
|
|
114
115
|
"typecheck": "pnpm typecheck:host && pnpm typecheck:client && pnpm typecheck:declaration",
|
|
115
116
|
"prepare": "pnpm build",
|
|
116
|
-
"prepack": "pnpm build",
|
|
117
|
+
"prepack": "pnpm license:check && pnpm build",
|
|
117
118
|
"lint": "node scripts/lint-source-ownership.mjs && node scripts/lint-lifecycle-invariants.mjs",
|
|
118
119
|
"source:artifact:check": "node scripts/verify-source-artifact-map.mjs",
|
|
119
|
-
"test:regression-closure": "node --test tests/auto-wrap-model-removal.test.js tests/guard-stop-surface-shadow.test.js tests/release-package-content-identity.test.js tests/settings-card-race-safety.test.js tests/settings-guide-replay-safety.test.js tests/settings-ia-targeted-adversarial.test.js tests/v2-release-acceptance-regressions.test.js tests/vision-turn-budget-client-prelude.test.js tests/wrapper-scope-client-prelude.test.js"
|
|
120
|
+
"test:regression-closure": "node --test tests/auto-wrap-model-removal.test.js tests/guard-stop-surface-shadow.test.js tests/release-package-content-identity.test.js tests/settings-card-race-safety.test.js tests/settings-guide-replay-safety.test.js tests/settings-ia-targeted-adversarial.test.js tests/v2-release-acceptance-regressions.test.js tests/vision-turn-budget-client-prelude.test.js tests/wrapper-scope-client-prelude.test.js",
|
|
121
|
+
"test:trace": "node --test tests/vision-trace-vtracer.test.js tests/vision-trace-image-quality.test.js",
|
|
122
|
+
"license:check": "node scripts/verify-runtime-licenses.mjs"
|
|
120
123
|
},
|
|
121
124
|
"dsh": {
|
|
122
125
|
"client": {
|