dsh-vision-router 2.2.7 → 2.2.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.
Files changed (33) hide show
  1. package/README.md +2 -2
  2. package/README.zh.md +2 -2
  3. package/docs/architecture/dsh-020-rc2-adaptation.md +23 -0
  4. package/docs/architecture/dsh-compatibility-matrix.md +1 -1
  5. package/docs/architecture/dsh-support-window.md +4 -2
  6. package/docs/architecture/host-first-proxy-convergence.md +1 -1
  7. package/docs/releases/v2.2.8.md +25 -0
  8. package/lib/client-host-compat-prelude.js +7 -12
  9. package/lib/client-presentation-boundary-main.js +7 -15
  10. package/lib/client-presentation-boundary.js +7 -12
  11. package/lib/client-script-carrier.js +90 -0
  12. package/lib/client.js +2 -2
  13. package/lib/dsh-support-window.js +1 -1
  14. package/lib/guide-vision-toggle-highlight.js +7 -10
  15. package/lib/live-model-client-prelude.js +7 -14
  16. package/lib/local-remote-settings-permission.js +8 -9
  17. package/lib/session-vision-mode-boundary.js +43 -8
  18. package/lib/settings-client-rc8-lifecycle.js +7 -12
  19. package/lib/settings-factory-lifecycle.js +25 -14
  20. package/lib/settings-ia-client-prelude.js +11 -11
  21. package/lib/settings-limit-client-prelude.js +7 -9
  22. package/lib/strict-live-model-client-prelude.js +7 -10
  23. package/lib/v2-settings-ia-integration.js +21 -6
  24. package/lib/vision-background-benchmark.js +3 -5
  25. package/lib/vision-capability-benchmark-client.js +7 -10
  26. package/lib/vision-exact-check-client.js +11 -6
  27. package/lib/vision-model-visibility-boundary-main.js +7 -11
  28. package/lib/vision-model-visibility-boundary.js +7 -12
  29. package/lib/vision-routing-settings-prelude.js +7 -11
  30. package/lib/vision-toggle-root-hardening.js +28 -3
  31. package/lib/vision-turn-budget-client-prelude.js +7 -10
  32. package/lib/web/remote-settings-client.js +7 -12
  33. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { htmlHasScriptMarker } from '../html-script-marker.js'
1
+ import { injectClientCarrierHtml, installClientScriptCarriers } from '../client-script-carrier.js'
2
2
  import { installVisionRouterRemoteSettingsBridge } from '../remote-settings-bridge.js'
3
3
  import { installSettingsRc8ClientLifecycle } from '../settings-client-rc8-lifecycle.js'
4
4
 
@@ -187,20 +187,15 @@ export const SETTINGS_CONFIG_FORMS_CLIENT_PRELUDE = String.raw`(function(){
187
187
  })();`
188
188
 
189
189
  export function injectSettingsConfigFormsCompatPrelude(html) {
190
- if (typeof html !== 'string' || htmlHasScriptMarker(html, SETTINGS_CONFIG_FORMS_MARK)) return html
191
- const safe = SETTINGS_CONFIG_FORMS_CLIENT_PRELUDE.replace(/<\/script/gi, '<\\/script')
192
- const script = `<script ${SETTINGS_CONFIG_FORMS_MARK}>${safe}</script>`
193
- const closeHead = html.indexOf('</head>')
194
- return closeHead === -1 ? `${html}${script}` : `${html.slice(0, closeHead)}${script}${html.slice(closeHead)}`
190
+ return injectClientCarrierHtml(html, SETTINGS_CONFIG_FORMS_MARK, SETTINGS_CONFIG_FORMS_CLIENT_PRELUDE)
195
191
  }
196
192
 
197
193
  export function installSettingsConfigFormsCompat(ctx) {
198
- if (!ctx || typeof ctx.inject !== 'function') return
199
- ctx.inject(['webServer'], (webCtx) => {
200
- webCtx.effect(
201
- () => webCtx.webServer.tapIndex(injectSettingsConfigFormsCompatPrelude),
202
- 'vision-router: settings configForms compatibility',
203
- )
194
+ installClientScriptCarriers(ctx, {
195
+ marker: SETTINGS_CONFIG_FORMS_MARK,
196
+ prelude: SETTINGS_CONFIG_FORMS_CLIENT_PRELUDE,
197
+ label: 'vision-router: settings configForms compatibility',
198
+ injectHtml: injectSettingsConfigFormsCompatPrelude,
204
199
  })
205
200
  }
206
201
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-vision-router",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
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": {