opencode-see-image 0.5.5 → 0.5.7

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 (2) hide show
  1. package/index.ts +5 -8
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -449,15 +449,11 @@ async function maybeAutoUpdate(
449
449
  }
450
450
  }
451
451
 
452
+ log(`update applied: ${current} -> ${latest}; restart opencode to load`, "info")
452
453
  try {
453
- await client?.tui?.showToast?.({
454
- body: {
455
- message: `${PKG_NAME} updated to ${latest}, restart opencode to apply`,
456
- variant: "success",
457
- },
458
- })
454
+ await client?.tui?.showToast?.({ body: { message: `${PKG_NAME} updated to ${latest}, restart opencode to apply`, variant: "success" } })
459
455
  } catch {
460
- log(`update applied: ${current} -> ${latest}; restart opencode to load`, "info")
456
+ // toast is non-critical, log already captured
461
457
  }
462
458
  }
463
459
 
@@ -475,7 +471,8 @@ const SeeImagePlugin: Plugin = async (ctx) => {
475
471
  }
476
472
  }
477
473
 
478
- log(`plugin initialized`, "info")
474
+ const version = currentVersion() || "unknown"
475
+ log(`plugin initialized v${version}`, "info")
479
476
  maybeAutoUpdate(client, $, log).catch((e) => {
480
477
  log(`auto-update error: ${e?.message ?? e}`, "warn")
481
478
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-see-image",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
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",