@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.cjs
CHANGED
|
@@ -1493,14 +1493,23 @@ var McpUseAPI = class _McpUseAPI {
|
|
|
1493
1493
|
return { user: { login: "", id: 0, avatar_url: "" }, repos: [] };
|
|
1494
1494
|
}
|
|
1495
1495
|
const inst = installResp.installations[0];
|
|
1496
|
-
const
|
|
1496
|
+
const repoLists = await Promise.all(
|
|
1497
|
+
installResp.installations.map(async (installation) => {
|
|
1498
|
+
try {
|
|
1499
|
+
const reposResp = await this.request(`/github/installations/${installation.installationId}/repos`);
|
|
1500
|
+
return reposResp.repos;
|
|
1501
|
+
} catch {
|
|
1502
|
+
return [];
|
|
1503
|
+
}
|
|
1504
|
+
})
|
|
1505
|
+
);
|
|
1497
1506
|
return {
|
|
1498
1507
|
user: {
|
|
1499
1508
|
login: inst.account?.login ?? "",
|
|
1500
1509
|
id: 0,
|
|
1501
1510
|
avatar_url: inst.account?.avatar_url ?? ""
|
|
1502
1511
|
},
|
|
1503
|
-
repos:
|
|
1512
|
+
repos: repoLists.flat().map((r) => ({
|
|
1504
1513
|
id: r.id,
|
|
1505
1514
|
name: r.name,
|
|
1506
1515
|
full_name: r.fullName,
|