pi-vision-handoff 0.10.7 → 0.10.9
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 +3 -3
- package/package.json +5 -5
- package/src/describer.ts +1 -1
package/README.md
CHANGED
|
@@ -16,13 +16,13 @@ _Describe images with a vision model you pick, then feed the text to models that
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
## Pi 0
|
|
19
|
+
## Pi 1.0 compatibility (0.10.8)
|
|
20
20
|
|
|
21
|
-
Tested with Pi **0.
|
|
21
|
+
Tested with Pi **1.0.0**. Host-provided Pi packages and TypeBox are peers (`*`), not bundled runtime dependencies; development uses exact Pi 1.0.0 pins and host-compatible TypeBox where needed.
|
|
22
22
|
|
|
23
23
|
Vision calls use the native ModelRegistry streaming runtime (including native providers/auth/hooks). Fetch energy capture remains necessary for raw SSE comments, but cleanup now preserves later wrappers and retained predecessors cannot recurse after reinstall. Native nested read results are covered.
|
|
24
24
|
|
|
25
|
-
Run `bun run test:host` for the offline real-host load, native codemode/nested-call, module-identity and reload checks. Set `
|
|
25
|
+
Run `bun run test:host` for the offline real-host load, native codemode/nested-call, module-identity and reload checks. Set `PI1_HOST_PACKAGE` to an installed Pi package directory to test that host explicitly; add `PI1_HOST_ENTRY=bundle` to check the bundled CLI runtime's constructors.
|
|
26
26
|
|
|
27
27
|
## The Problem
|
|
28
28
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-vision-handoff",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
4
4
|
"description": "Give text-only pi models vision — describe images with a vision model you pick via an interactive picker, then hand off the text description to non-vision models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Tom X Nguyen",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"README.md"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"test:host": "node scripts/
|
|
34
|
+
"test:host": "node scripts/pi1-host.mjs",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"test:watch": "vitest",
|
|
37
37
|
"test:coverage": "vitest run --coverage",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"lint:dead": "knip --no-gitignore"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@earendil-works/pi-ai": "
|
|
43
|
-
"@earendil-works/pi-coding-agent": "
|
|
44
|
-
"@earendil-works/pi-tui": "
|
|
42
|
+
"@earendil-works/pi-ai": "1.1.0",
|
|
43
|
+
"@earendil-works/pi-coding-agent": "1.1.0",
|
|
44
|
+
"@earendil-works/pi-tui": "1.1.0",
|
|
45
45
|
"@types/node": "25.9.1",
|
|
46
46
|
"@vitest/coverage-v8": "4.1.7",
|
|
47
47
|
"knip": "6.14.1",
|
package/src/describer.ts
CHANGED
|
@@ -178,7 +178,7 @@ export async function completeVisionModel(
|
|
|
178
178
|
// here, then hand the same transcript to both the registered-provider stream and
|
|
179
179
|
// the compat `completeSimple` fallback (which also accepts a TranscriptContext).
|
|
180
180
|
const transcript: TranscriptContext = normalizeContext(context);
|
|
181
|
-
// Pi 0
|
|
181
|
+
// Pi 1.0's runtime owns native providers, auth, environment and request hooks.
|
|
182
182
|
// Calling a legacy provider config directly bypasses those contracts.
|
|
183
183
|
if (typeof modelRegistry.streamSimple === "function") {
|
|
184
184
|
return modelRegistry.streamSimple(model, transcript, isolatedOptions).result();
|