@kapishdima/ai-ledger 0.0.2 → 0.0.3
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/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4307,7 +4307,8 @@ async function detectProvidersFromOpenCode() {
|
|
|
4307
4307
|
});
|
|
4308
4308
|
if (res.ok) {
|
|
4309
4309
|
const data = await res.json();
|
|
4310
|
-
const
|
|
4310
|
+
const all = data.all ?? data;
|
|
4311
|
+
const ids = all.filter((p2) => p2.source === "api").map((p2) => p2.id);
|
|
4311
4312
|
if (ids.length > 0)
|
|
4312
4313
|
return ids;
|
|
4313
4314
|
}
|