@anionex/dsh-vision-toolkit 0.1.11 → 0.1.13

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 (65) hide show
  1. package/README.i18n.yaml +3 -3
  2. package/README.md +192 -343
  3. package/README.zh.md +192 -357
  4. package/assets/hero-v2.png +0 -0
  5. package/docs/requirements-traceability/README.i18n.yaml +2 -2
  6. package/docs/requirements-traceability/README.md +1 -1
  7. package/docs/requirements-traceability/README.zh.md +1 -1
  8. package/lib/client.js +172 -6
  9. package/lib/client.js.map +1 -1
  10. package/lib/config.js +10 -3
  11. package/lib/config.js.map +1 -1
  12. package/lib/image-input-variants.js +65 -23
  13. package/lib/image-input-variants.js.map +1 -1
  14. package/lib/paste-images.js +6 -1
  15. package/lib/paste-images.js.map +1 -1
  16. package/lib/plugin-update.js +1011 -0
  17. package/lib/plugin-update.js.map +1 -0
  18. package/lib/runtime-install.js +61 -1
  19. package/lib/runtime-install.js.map +1 -1
  20. package/lib/runtime.js +20 -3
  21. package/lib/runtime.js.map +1 -1
  22. package/lib/skill.js +7 -3
  23. package/lib/skill.js.map +1 -1
  24. package/lib/tools.js +3 -2
  25. package/lib/tools.js.map +1 -1
  26. package/lib/types/client/index.d.ts +55 -1
  27. package/lib/types/client/index.d.ts.map +1 -1
  28. package/lib/types/config.d.ts +2 -2
  29. package/lib/types/config.d.ts.map +1 -1
  30. package/lib/types/image-input-variants.d.ts +6 -4
  31. package/lib/types/image-input-variants.d.ts.map +1 -1
  32. package/lib/types/paste-images.d.ts +10 -0
  33. package/lib/types/paste-images.d.ts.map +1 -1
  34. package/lib/types/plugin-update.d.ts +111 -0
  35. package/lib/types/plugin-update.d.ts.map +1 -0
  36. package/lib/types/runtime-install.d.ts +11 -0
  37. package/lib/types/runtime-install.d.ts.map +1 -1
  38. package/lib/types/runtime.d.ts +3 -0
  39. package/lib/types/runtime.d.ts.map +1 -1
  40. package/lib/types/skill.d.ts +1 -1
  41. package/lib/types/skill.d.ts.map +1 -1
  42. package/lib/types/tools.d.ts.map +1 -1
  43. package/lib/types/upstream.d.ts +1 -0
  44. package/lib/types/upstream.d.ts.map +1 -1
  45. package/lib/types/web.d.ts +13 -1
  46. package/lib/types/web.d.ts.map +1 -1
  47. package/lib/upstream.js +20 -8
  48. package/lib/upstream.js.map +1 -1
  49. package/lib/web.js +46 -7
  50. package/lib/web.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/client/index.tsx +228 -5
  53. package/src/config.ts +13 -5
  54. package/src/image-input-variants.ts +81 -23
  55. package/src/paste-images.ts +7 -2
  56. package/src/plugin-update.ts +1142 -0
  57. package/src/runtime-install.ts +77 -1
  58. package/src/runtime.ts +23 -3
  59. package/src/skill.ts +7 -3
  60. package/src/tools.ts +4 -2
  61. package/src/upstream.ts +21 -8
  62. package/src/web.ts +69 -3
  63. package/vendor/agent-vision-toolkit/UPSTREAM_MANIFEST.json +3 -3
  64. package/vendor/agent-vision-toolkit/skills/vision-tools/scripts/html_shot.py +323 -11
  65. package/assets/hero.png +0 -0
@@ -147,7 +147,7 @@ export function ensurePathInside(root: string, target: string): void {
147
147
  }
148
148
  }
149
149
 
150
- interface PasteRoot {
150
+ export interface PasteRoot {
151
151
  writeRoot: string
152
152
  visibleRoot: string
153
153
  }
@@ -168,7 +168,12 @@ async function ensureManagedDirectory(workspace: string, path: string): Promise<
168
168
  return canonical
169
169
  }
170
170
 
171
- async function sessionPasteRoot(ctx: Context, sessionId: string): Promise<PasteRoot> {
171
+ /**
172
+ * Resolve the managed per-session image directory used by both browser pastes
173
+ * and native attachment bridging. Keeping both flows under the same workspace
174
+ * root makes the resulting absolute path valid for the model's visual tools.
175
+ */
176
+ export async function sessionPasteRoot(ctx: Context, sessionId: string): Promise<PasteRoot> {
172
177
  const session = ctx.sessions.get(sessionId as never)
173
178
  if (session === undefined) throw new Error(`live Session not found: ${sessionId}`)
174
179
  const cwd = session.header.cwd