opencode-see-image 0.5.7 → 0.5.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.
- package/index.ts +3 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -435,14 +435,15 @@ async function maybeAutoUpdate(
|
|
|
435
435
|
|
|
436
436
|
log(`update available: ${current} -> ${latest}; updating`, "info")
|
|
437
437
|
|
|
438
|
+
const specifier = `${PKG_NAME}@${latest}`
|
|
438
439
|
const opencodeBin =
|
|
439
440
|
process.env.OPENCODE_BIN ||
|
|
440
441
|
path.join(os.homedir(), ".opencode/bin/opencode")
|
|
441
442
|
try {
|
|
442
|
-
await $`${opencodeBin} plugin ${
|
|
443
|
+
await $`${opencodeBin} plugin ${specifier} --force --global`.quiet()
|
|
443
444
|
} catch (e: any) {
|
|
444
445
|
try {
|
|
445
|
-
await $`opencode plugin ${
|
|
446
|
+
await $`opencode plugin ${specifier} --force --global`.quiet()
|
|
446
447
|
} catch (e2: any) {
|
|
447
448
|
log(`plugin update failed: ${e2?.message ?? e2}`, "warn")
|
|
448
449
|
return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-see-image",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "Give non-vision opencode models the ability to see images/screenshots by routing them to a vision-capable model (MiniMax M3 via opencode-go by default).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|