@mcowger/pi-plexus 1.4.3 → 1.4.6

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/dist/extension.js CHANGED
@@ -169,11 +169,18 @@ function convertToDescriptor(raw, baseUrl) {
169
169
  function isChatModel(model) {
170
170
  if (!model.id)
171
171
  return false;
172
+ const inputModalities = model.architecture?.input_modalities;
173
+ if (inputModalities !== undefined && inputModalities.length > 0 && !inputModalities.includes("text")) {
174
+ return false;
175
+ }
172
176
  const outputModalities = model.architecture?.output_modalities;
173
177
  if (outputModalities !== undefined && !outputModalities.includes("text"))
174
178
  return false;
175
179
  const modality = model.architecture?.modality;
176
180
  if (modality?.includes("->")) {
181
+ const input = modality.split("->")[0] ?? "";
182
+ if (!input.toLowerCase().includes("text"))
183
+ return false;
177
184
  const output = modality.split("->").at(-1) ?? "";
178
185
  if (!output.toLowerCase().includes("text"))
179
186
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/pi-plexus",
3
- "version": "1.4.3",
3
+ "version": "1.4.6",
4
4
  "description": "Plexus AI proxy plugin for the pi coding agent",
5
5
  "type": "module",
6
6
  "files": [
@@ -25,12 +25,12 @@
25
25
  "build": "bun run build.ts"
26
26
  },
27
27
  "peerDependencies": {
28
- "@earendil-works/pi-ai": ">=0.84.0",
29
- "@earendil-works/pi-coding-agent": ">=0.84.0"
28
+ "@earendil-works/pi-ai": ">=0.84.3",
29
+ "@earendil-works/pi-coding-agent": ">=0.84.3"
30
30
  },
31
31
  "devDependencies": {
32
- "@earendil-works/pi-ai": "^0.84.0",
33
- "@earendil-works/pi-coding-agent": "^0.84.0",
32
+ "@earendil-works/pi-ai": "^0.84.3",
33
+ "@earendil-works/pi-coding-agent": "^0.84.3",
34
34
  "@types/bun": "latest"
35
35
  },
36
36
  "repository": {