shariq-pi-extensions 0.2.30 → 0.2.31

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.
@@ -254,8 +254,11 @@ export function buildModelPickerItems(
254
254
  }
255
255
  }
256
256
 
257
- const all = ctx.modelRegistry.getAll();
258
- for (const model of all) {
257
+ // Show models from active / configured providers, exactly matching Pi's native /model selector
258
+ const available = ctx.modelRegistry.getAvailable ? ctx.modelRegistry.getAvailable() : [];
259
+ const models = available.length > 0 ? available : (ctx.modelRegistry.getAll ? ctx.modelRegistry.getAll() : []);
260
+
261
+ for (const model of models) {
259
262
  const fullId = `${model.provider}/${model.id}`;
260
263
  items.push({
261
264
  provider: model.provider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shariq-pi-extensions",
3
- "version": "0.2.30",
3
+ "version": "0.2.31",
4
4
  "description": "Cross-platform extension suite for the Pi coding agent.",
5
5
  "license": "MIT",
6
6
  "author": "Shariq Riaz",