@mcp-use/cli 3.3.2-canary.5 → 3.3.2-canary.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/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/api.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1473,14 +1473,23 @@ var McpUseAPI = class _McpUseAPI {
|
|
|
1473
1473
|
return { user: { login: "", id: 0, avatar_url: "" }, repos: [] };
|
|
1474
1474
|
}
|
|
1475
1475
|
const inst = installResp.installations[0];
|
|
1476
|
-
const
|
|
1476
|
+
const repoLists = await Promise.all(
|
|
1477
|
+
installResp.installations.map(async (installation) => {
|
|
1478
|
+
try {
|
|
1479
|
+
const reposResp = await this.request(`/github/installations/${installation.installationId}/repos`);
|
|
1480
|
+
return reposResp.repos;
|
|
1481
|
+
} catch {
|
|
1482
|
+
return [];
|
|
1483
|
+
}
|
|
1484
|
+
})
|
|
1485
|
+
);
|
|
1477
1486
|
return {
|
|
1478
1487
|
user: {
|
|
1479
1488
|
login: inst.account?.login ?? "",
|
|
1480
1489
|
id: 0,
|
|
1481
1490
|
avatar_url: inst.account?.avatar_url ?? ""
|
|
1482
1491
|
},
|
|
1483
|
-
repos:
|
|
1492
|
+
repos: repoLists.flat().map((r) => ({
|
|
1484
1493
|
id: r.id,
|
|
1485
1494
|
name: r.name,
|
|
1486
1495
|
full_name: r.fullName,
|