@rbbtsn0w/adg 0.11.0-dev.pr167.b948f1c → 0.11.1-beta.1

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.
@@ -392,19 +392,23 @@ export function parseCodexInspection(out, marketplace) {
392
392
  if (!Array.isArray(available))
393
393
  return undefined;
394
394
  const records = new Map();
395
- for (const record of [...parsed.installed, ...available]) {
396
- if (!record || typeof record !== "object" || Array.isArray(record) || typeof record.marketplaceName !== "string")
397
- return undefined;
398
- if (record.marketplaceName !== marketplace)
399
- continue;
400
- if (typeof record.name !== "string" || !record.name.trim() || record.pluginId !== `${record.name}@${marketplace}` || typeof record.installed !== "boolean" || typeof record.enabled !== "boolean" || (record.enabled && !record.installed))
401
- return undefined;
402
- if (record.version != null && (typeof record.version !== "string" || !record.version.trim()))
403
- return undefined;
404
- if (records.has(record.name))
405
- return undefined;
406
- records.set(record.name, { id: record.pluginId, name: record.name, installed: record.installed, enabled: record.enabled,
407
- ...(typeof record.version === "string" ? { version: record.version } : {}) });
395
+ for (const [entries, installed] of [[parsed.installed, true], [available, false]]) {
396
+ for (const record of entries) {
397
+ if (!record || typeof record !== "object" || Array.isArray(record) || typeof record.marketplaceName !== "string")
398
+ return undefined;
399
+ if (record.marketplaceName !== marketplace)
400
+ continue;
401
+ if (record.installed !== installed)
402
+ return undefined;
403
+ if (typeof record.name !== "string" || !record.name.trim() || record.pluginId !== `${record.name}@${marketplace}` || typeof record.installed !== "boolean" || typeof record.enabled !== "boolean" || (record.enabled && !record.installed))
404
+ return undefined;
405
+ if (record.version != null && (typeof record.version !== "string" || !record.version.trim()))
406
+ return undefined;
407
+ if (records.has(record.name))
408
+ return undefined;
409
+ records.set(record.name, { id: record.pluginId, name: record.name, installed: record.installed, enabled: record.enabled,
410
+ ...(typeof record.version === "string" ? { version: record.version } : {}) });
411
+ }
408
412
  }
409
413
  return [...records.values()];
410
414
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbbtsn0w/adg",
3
- "version": "0.11.0-dev.pr167.b948f1c",
3
+ "version": "0.11.1-beta.1",
4
4
  "description": "Agent Directory Group (ADG) toolkit — two domains: plugins and skills.",
5
5
  "type": "module",
6
6
  "license": "MIT",