@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.
- package/README.i18n.yaml +3 -3
- package/README.md +192 -343
- package/README.zh.md +192 -357
- package/assets/hero-v2.png +0 -0
- package/docs/requirements-traceability/README.i18n.yaml +2 -2
- package/docs/requirements-traceability/README.md +1 -1
- package/docs/requirements-traceability/README.zh.md +1 -1
- package/lib/client.js +172 -6
- package/lib/client.js.map +1 -1
- package/lib/config.js +10 -3
- package/lib/config.js.map +1 -1
- package/lib/image-input-variants.js +65 -23
- package/lib/image-input-variants.js.map +1 -1
- package/lib/paste-images.js +6 -1
- package/lib/paste-images.js.map +1 -1
- package/lib/plugin-update.js +1011 -0
- package/lib/plugin-update.js.map +1 -0
- package/lib/runtime-install.js +61 -1
- package/lib/runtime-install.js.map +1 -1
- package/lib/runtime.js +20 -3
- package/lib/runtime.js.map +1 -1
- package/lib/skill.js +7 -3
- package/lib/skill.js.map +1 -1
- package/lib/tools.js +3 -2
- package/lib/tools.js.map +1 -1
- package/lib/types/client/index.d.ts +55 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/config.d.ts +2 -2
- package/lib/types/config.d.ts.map +1 -1
- package/lib/types/image-input-variants.d.ts +6 -4
- package/lib/types/image-input-variants.d.ts.map +1 -1
- package/lib/types/paste-images.d.ts +10 -0
- package/lib/types/paste-images.d.ts.map +1 -1
- package/lib/types/plugin-update.d.ts +111 -0
- package/lib/types/plugin-update.d.ts.map +1 -0
- package/lib/types/runtime-install.d.ts +11 -0
- package/lib/types/runtime-install.d.ts.map +1 -1
- package/lib/types/runtime.d.ts +3 -0
- package/lib/types/runtime.d.ts.map +1 -1
- package/lib/types/skill.d.ts +1 -1
- package/lib/types/skill.d.ts.map +1 -1
- package/lib/types/tools.d.ts.map +1 -1
- package/lib/types/upstream.d.ts +1 -0
- package/lib/types/upstream.d.ts.map +1 -1
- package/lib/types/web.d.ts +13 -1
- package/lib/types/web.d.ts.map +1 -1
- package/lib/upstream.js +20 -8
- package/lib/upstream.js.map +1 -1
- package/lib/web.js +46 -7
- package/lib/web.js.map +1 -1
- package/package.json +1 -1
- package/src/client/index.tsx +228 -5
- package/src/config.ts +13 -5
- package/src/image-input-variants.ts +81 -23
- package/src/paste-images.ts +7 -2
- package/src/plugin-update.ts +1142 -0
- package/src/runtime-install.ts +77 -1
- package/src/runtime.ts +23 -3
- package/src/skill.ts +7 -3
- package/src/tools.ts +4 -2
- package/src/upstream.ts +21 -8
- package/src/web.ts +69 -3
- package/vendor/agent-vision-toolkit/UPSTREAM_MANIFEST.json +3 -3
- package/vendor/agent-vision-toolkit/skills/vision-tools/scripts/html_shot.py +323 -11
- package/assets/hero.png +0 -0
package/src/paste-images.ts
CHANGED
|
@@ -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
|
-
|
|
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
|