bermudis-pi-goodies 0.27.4 → 0.27.5

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 (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/vision.ts +6 -0
package/README.md CHANGED
@@ -25,7 +25,7 @@ extensions. One entry point, thirteen independent features.
25
25
  First install, pinned to a published version:
26
26
 
27
27
  ```bash
28
- pi install npm:bermudis-pi-goodies@0.27.4
28
+ pi install npm:bermudis-pi-goodies@0.27.5
29
29
  ```
30
30
 
31
31
  Picking up a new release on an existing install (`pi install` is not the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bermudis-pi-goodies",
3
- "version": "0.27.4",
3
+ "version": "0.27.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/bermudi/agent-extensions.git",
package/vision.ts CHANGED
@@ -319,6 +319,12 @@ export default function (pi: ExtensionAPI): void {
319
319
  pi.on("model_select", (event) => {
320
320
  syncVisionToolVisibility(event.model);
321
321
  });
322
+ // model_select only fires on identity change (provider/id) — a registry
323
+ // refresh can swap the model object with a different input list silently.
324
+ // Re-check at the last checkpoint before each turn's loadout is built.
325
+ pi.on("before_agent_start", (_event, ctx) => {
326
+ syncVisionToolVisibility(ctx.model);
327
+ });
322
328
 
323
329
  // Burst-style rows while clean-tui is active — a load-time decision: the
324
330
  // flag is settled before this module registers (index.ts loads clean-tui