dsh-vision-router 3.0.4 → 3.0.5

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.
@@ -1203,12 +1203,23 @@ export const CLIENT_PRESENTATION_PRELUDE = String.raw`(function(){
1203
1203
  var setToast = toastState[1];
1204
1204
  var busy = state.status === 'selecting' || selectionInFlight;
1205
1205
  var loading = settling;
1206
+ // Host's model-catalog refresh retains the last good current/groups,
1207
+ // but briefly reports 'loading'. When that *complete* pair is still
1208
+ // present, its selection may be sent to Host for fresh validation;
1209
+ // don't flip the native HTML disabled bit in the middle of a user's
1210
+ // pointer gesture (Chromium drops the click even after re-enabling).
1211
+ // A cold load, reconnect, unavailable pair, or selection in flight
1212
+ // remains blocked. We never infer a new mode or optimistically commit.
1213
+ var refreshWithPair = state.status === 'loading' && complete &&
1214
+ !!livePair.target && state.pending == null && state.error == null &&
1215
+ state.routable !== false;
1216
+ var blockingLoad = loading && !refreshWithPair;
1206
1217
  var removed = props.session && props.session.removed === true;
1207
- var disabled = props.available !== true || removed || busy || loading || livePair.mode === 'unavailable';
1218
+ var disabled = props.available !== true || removed || busy || blockingLoad || livePair.mode === 'unavailable';
1208
1219
  var t = typeof props.t === 'function' ? props.t : fallbackTranslate(active);
1209
1220
  var title = busy || ownSettling
1210
1221
  ? t('switching')
1211
- : loading
1222
+ : blockingLoad
1212
1223
  ? t('loading')
1213
1224
  : livePair.mode === 'unavailable'
1214
1225
  ? t('unavailable')
@@ -1236,12 +1247,12 @@ export const CLIENT_PRESENTATION_PRELUDE = String.raw`(function(){
1236
1247
  'data-vision-router-mode-toggle': 'true',
1237
1248
  'aria-pressed': active,
1238
1249
  'aria-label': title,
1239
- 'aria-busy': busy || loading,
1250
+ 'aria-busy': busy || blockingLoad,
1240
1251
  title: title,
1241
1252
  disabled: disabled,
1242
1253
  className: 'vr-vision-toggle',
1243
1254
  'data-active': active ? 'true' : 'false',
1244
- 'data-dimmed': disabled && !ownSettling && (livePair.mode === 'unavailable' || loading) ? 'true' : 'false',
1255
+ 'data-dimmed': disabled && !ownSettling && (livePair.mode === 'unavailable' || blockingLoad) ? 'true' : 'false',
1245
1256
  onClick: function() {
1246
1257
  if (disabled || !pair.target || typeof props.select !== 'function' ||
1247
1258
  (selectionTransaction.current && selectionTransaction.current.directory === directory)) return;
package/lib/client.js CHANGED
@@ -249,7 +249,7 @@ openLogFolder,
249
249
  builtinFallbackLabel: '内置免费兜底(自动)',
250
250
  builtinFallbackEnabled: '已启用',
251
251
  builtinFallbackDisabled: '已关闭',
252
- builtinFallbackBody: 'OVHcloud 匿名视觉链共 {count} 个模型,首选 {primary}。匿名限额为每 IP、每模型 2 次/分钟;5 个模型独立限额,理论合计约 10 次/分钟,实际以 OVH 限流为准。它固定在上面用户模型之后尝试,免注册、免 Key。',
252
+ builtinFallbackBody: 'OVHcloud 匿名视觉链共 {count} 个模型,首选 {primary}。匿名限额为每 IP、每模型 {perModelRpm} 次/分钟;{count} 个模型独立限额,理论合计约 {totalRpm} 次/分钟,实际以 OVH 限流为准。它固定在上面用户模型之后尝试,免注册、免 Key。',
253
253
  chainLabel: '识图模型',
254
254
  chainHint: '选择 Vision Router 用来读取图片的模型。将按从上到下的顺序尝试,失败时自动切换到下一个。',
255
255
  addFallback: '+ 添加备用识图模型',
@@ -535,7 +535,7 @@ openLogFolder,
535
535
  builtinFallbackLabel: 'Built-in free fallback (automatic)',
536
536
  builtinFallbackEnabled: 'Enabled',
537
537
  builtinFallbackDisabled: 'Disabled',
538
- builtinFallbackBody: 'The anonymous OVHcloud vision chain contains {count} models, starting with {primary}. Anonymous limits are 2 requests/minute per IP per model; five independent model buckets are about 10 RPM in theory, subject to OVH rate limiting. It always runs after your user models and needs no signup or API key.',
538
+ builtinFallbackBody: 'The anonymous OVHcloud vision chain contains {count} models, starting with {primary}. Anonymous limits are {perModelRpm} requests/minute per IP per model; {count} independent model buckets are about {totalRpm} RPM in theory, subject to OVH rate limiting. It always runs after your user models and needs no signup or API key.',
539
539
  chainLabel: 'Vision model',
540
540
  chainHint: 'Choose the models Vision Router uses to read images. They are tried from top to bottom, with automatic failover.',
541
541
  addFallback: '+ Add fallback vision model',
@@ -3932,13 +3932,16 @@ openLogFolder,
3932
3932
  const list = Array.isArray(visionCaps.builtinFallback) ? visionCaps.builtinFallback : []
3933
3933
  const enabled = format('freeFallback') !== false
3934
3934
  const primary = list[0] && list[0].model ? list[0].model : 'Qwen3.5-397B-A17B'
3935
- const count = list.length > 0 ? list.length : 5
3935
+ const count = list.length > 0 ? list.length : 4
3936
+ const perModelRpm = Number.isFinite(visionCaps.anonymousRpmPerModel)
3937
+ ? Math.max(0, visionCaps.anonymousRpmPerModel)
3938
+ : 2
3936
3939
  return h('div', { className: 'vr-field' },
3937
3940
  h('div', { className: 'vr-field-head' },
3938
3941
  h('span', { className: 'vr-label' }, t('builtinFallbackLabel')),
3939
3942
  h('span', { className: 'vr-badge' }, enabled ? t('builtinFallbackEnabled') : t('builtinFallbackDisabled')),
3940
3943
  ),
3941
- h('p', { className: 'vr-hint' }, t('builtinFallbackBody', { count, primary })),
3944
+ h('p', { className: 'vr-hint' }, t('builtinFallbackBody', { count, primary, perModelRpm, totalRpm: count * perModelRpm })),
3942
3945
  )
3943
3946
  }
3944
3947
  const textProviderEditor = () => {
@@ -1778,12 +1778,12 @@ export async function downscaleImage(bytes, maxPixels, options = {}) {
1778
1778
  */
1779
1779
  export const DEFAULT_HTTP_PROVIDERS = [
1780
1780
  // OVHcloud anonymous quota is per IP AND per model. Keep the free chain
1781
- // ordered largest -> smallest so quality wins first. A 429 on one model can
1781
+ // ordered by preferred quality so quality wins first. Retired models are
1782
+ // removed from this implicit chain; explicit user rows are never rewritten. A 429 on one model can
1782
1783
  // immediately fall through to the next model's independent anonymous bucket.
1783
1784
  { name: 'ovh', baseURL: 'https://oai.endpoints.kepler.ai.cloud.ovh.net/v1', model: 'Qwen3.5-397B-A17B', apiKeyEnv: '', maxTokens: 4096 },
1784
1785
  { name: 'ovh', baseURL: 'https://oai.endpoints.kepler.ai.cloud.ovh.net/v1', model: 'Qwen2.5-VL-72B-Instruct', apiKeyEnv: '', maxTokens: 4096 },
1785
1786
  { name: 'ovh', baseURL: 'https://oai.endpoints.kepler.ai.cloud.ovh.net/v1', model: 'Qwen3.6-27B', apiKeyEnv: '', maxTokens: 4096 },
1786
- { name: 'ovh', baseURL: 'https://oai.endpoints.kepler.ai.cloud.ovh.net/v1', model: 'Mistral-Small-3.2-24B-Instruct-2506', apiKeyEnv: '', maxTokens: 4096 },
1787
1787
  { name: 'ovh', baseURL: 'https://oai.endpoints.kepler.ai.cloud.ovh.net/v1', model: 'Qwen3.5-9B', apiKeyEnv: '', maxTokens: 4096 },
1788
1788
  ]
1789
1789
 
@@ -1,6 +1,9 @@
1
1
 
2
2
  const GLM_4V_FLASH = /^glm-4v-flash(?:$|[-_.])/i
3
3
  export const DEFAULT_HTTP_ERROR_DETAIL_MAX_BYTES = 64 * 1024
4
+ // OVHcloud documents a 10 MB total request-body cap for VLM endpoints.
5
+ // Count actual serialized UTF-8 JSON, not image pixels or pre-base64 bytes.
6
+ export const OVH_VLM_MAX_JSON_BYTES = 10_000_000
4
7
 
5
8
  /**
6
9
  * Known OpenAI-compatible transport quirks. Rules are intentionally sparse:
@@ -110,6 +113,9 @@ export function parseMaxTokensLimit(detail) {
110
113
  return undefined
111
114
  }
112
115
  const patterns = [
116
+ // Two-sided English ranges must use the upper bound, not the first number.
117
+ // The generic max_tokens fallback below would otherwise parse the lower bound.
118
+ /(?:max(?:_completion)?[_ -]?tokens?)[^\d\n]{0,48}(?:between|from|(?:in|within)(?:\s+the)?(?:\s+(?:valid|allowed))?(?:\s+range)?)[^\d\n]{0,12}\d+\s*(?:,|and|to|[-–—])\s*(\d+)/i,
113
119
  /(?:限制数值范围|range)\s*[\[(]\s*\d+\s*,\s*(\d+)\s*[\])]/i,
114
120
  /(?:less than or equal to|at most|maximum(?: allowed)?|max(?:imum)?(?: value)?|<=)\D{0,24}(\d+)/i,
115
121
  /(?:上限|最大(?:值|输出)?)[^\d]{0,16}(\d+)/i,
@@ -306,7 +312,32 @@ export async function fetchWithOpenAICompatibility(fetchImpl, input, init, conte
306
312
  prompt: context.prompt,
307
313
  })
308
314
  let requestBody = prepared.body
309
- let response = await requestFetch(input, { ...init, body: JSON.stringify(requestBody) })
315
+ // The official OVH VLM API caps the *whole HTTP JSON body* at 10 MB.
316
+ // An image under downscaleMaxPixels can still exceed this after base64,
317
+ // and several smaller images can exceed it together. Refuse the doomed
318
+ // request before network egress; never silently degrade OCR quality or
319
+ // apply this vendor-specific limit to a user's other HTTP providers.
320
+ const ovhUrl = asUrl(url)
321
+ const isOfficialOvhVlm = ovhUrl?.protocol === 'https:' &&
322
+ ovhUrl.hostname === 'oai.endpoints.kepler.ai.cloud.ovh.net' &&
323
+ ovhUrl.port === ''
324
+ const serializeWireBody = (body) => {
325
+ const wire = JSON.stringify(body)
326
+ if (isOfficialOvhVlm && Array.isArray(body.messages) &&
327
+ body.messages.some((message) => Array.isArray(message?.content) &&
328
+ message.content.some((block) => block?.type === 'image_url'))) {
329
+ const bytes = Buffer.byteLength(wire, 'utf8')
330
+ if (bytes > OVH_VLM_MAX_JSON_BYTES) {
331
+ const error = new Error(
332
+ `OVHcloud VLM request is ${bytes} bytes, above its 10 MB JSON payload limit; reduce the image file size or image count before retrying`,
333
+ )
334
+ error.code = 'INVALID_REQUEST'
335
+ throw error
336
+ }
337
+ }
338
+ return wire
339
+ }
340
+ let response = await requestFetch(input, { ...init, body: serializeWireBody(requestBody) })
310
341
 
311
342
  for (let correction = 0; correction < 2; correction++) {
312
343
  if (response.ok || (response.status !== 400 && response.status !== 422)) return response
@@ -323,7 +354,7 @@ export async function fetchWithOpenAICompatibility(fetchImpl, input, init, conte
323
354
  }
324
355
 
325
356
  requestBody = retryBody
326
- response = await requestFetch(input, { ...init, body: JSON.stringify(requestBody) })
357
+ response = await requestFetch(input, { ...init, body: serializeWireBody(requestBody) })
327
358
  }
328
359
 
329
360
  return response
@@ -23,12 +23,21 @@ export function normalizeVisionRouterMessageSource(message, session) {
23
23
  if (!message || typeof message !== 'object' || Array.isArray(message)) return message
24
24
  if (!isVisionRouterSource(message.source)) return message
25
25
  const source = sourceKindForSession(session)
26
- if (message.source.kind === source.kind
27
- && (source.kind !== 'plugin' || message.source.plugin === source.plugin)
28
- && Object.keys(message.source).length === Object.keys(source).length) {
26
+ // A DSH ContextFormed notice needs both form and summary. Keep those two
27
+ // protocol fields across Session V3/V4 attribution normalization, but do
28
+ // not forward arbitrary source properties from a malformed DVR message.
29
+ const notice = message.source.form === 'notice'
30
+ && typeof message.source.summary === 'string'
31
+ && message.source.summary.trim().length > 0
32
+ const normalized = {
33
+ ...source,
34
+ ...(notice ? { form: 'notice', summary: message.source.summary } : {}),
35
+ }
36
+ if (Object.keys(message.source).length === Object.keys(normalized).length
37
+ && Object.entries(normalized).every(([key, value]) => message.source[key] === value)) {
29
38
  return message
30
39
  }
31
- return { ...message, source: { ...source } }
40
+ return { ...message, source: normalized }
32
41
  }
33
42
 
34
43
  function normalizeMessageList(list, session) {
@@ -2,8 +2,6 @@ import z from '@deepseek-ai/schemastery'
2
2
  import { mkdir, writeFile, readFile, unlink } from 'node:fs/promises'
3
3
  import path from 'node:path'
4
4
  import { tmpdir } from 'node:os'
5
- import { DeepSeekAdapter, resolveAdapterOptions } from '@deepseek-ai/dsh-llm-deepseek'
6
- import { getOrCreateAnonymousUserId } from '@deepseek-ai/dsh-anonymous-user-id'
7
5
  import { existsSync } from 'node:fs'
8
6
  import { execFile } from 'node:child_process'
9
7
  import { Worker } from 'node:worker_threads'
@@ -36,6 +36,12 @@ export function visionDescribeSuccessContext(exec, result) {
36
36
  role: 'user',
37
37
  id: `vision-router-evidence-success-${String(exec.callId)}`,
38
38
  content: [{ type: 'text', text: VISION_SUCCESS_GUIDANCE }],
39
- source: visionRouterMessageSource(exec.agent.session),
39
+ source: {
40
+ ...visionRouterMessageSource(exec.agent.session),
41
+ // DSH 通过 ContextFormed 的 form:'notice' 区分「注入的上下文」与「真实用户发言」。
42
+ // 缺少该字段时,这条注入消息会被当成用户插话,当前助手回合就此结束。
43
+ form: 'notice',
44
+ summary: 'vision_describe succeeded',
45
+ },
40
46
  }
41
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-vision-router",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
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": {
@@ -90,7 +90,7 @@
90
90
  "@deepseek-ai/dsh-storage-domain": "0.2.0-rc.2"
91
91
  },
92
92
  "scripts": {
93
- "test": "node --test 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/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/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/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",
93
+ "test": "node --test 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/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/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/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",
94
94
  "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",
95
95
  "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",
96
96
  "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",