@pleri/olam-cli 0.1.56 → 0.1.58
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/__tests__/services.test.d.ts +8 -0
- package/dist/__tests__/services.test.d.ts.map +1 -0
- package/dist/__tests__/services.test.js +185 -0
- package/dist/__tests__/services.test.js.map +1 -0
- package/dist/commands/__tests__/__fixtures__/upgrade-helpers.d.ts +6 -0
- package/dist/commands/__tests__/__fixtures__/upgrade-helpers.d.ts.map +1 -0
- package/dist/commands/__tests__/__fixtures__/upgrade-helpers.js +26 -0
- package/dist/commands/__tests__/__fixtures__/upgrade-helpers.js.map +1 -0
- package/dist/commands/__tests__/upgrade.all-three.test.js +1 -13
- package/dist/commands/__tests__/upgrade.all-three.test.js.map +1 -1
- package/dist/commands/__tests__/upgrade.compose-path.test.js +1 -13
- package/dist/commands/__tests__/upgrade.compose-path.test.js.map +1 -1
- package/dist/commands/__tests__/upgrade.olam-tag.test.js +1 -14
- package/dist/commands/__tests__/upgrade.olam-tag.test.js.map +1 -1
- package/dist/commands/__tests__/upgrade.recreate.test.js +1 -13
- package/dist/commands/__tests__/upgrade.recreate.test.js.map +1 -1
- package/dist/commands/__tests__/upgrade.rollback.test.js +1 -21
- package/dist/commands/__tests__/upgrade.rollback.test.js.map +1 -1
- package/dist/commands/__tests__/upgrade.smoke.test.js +1 -21
- package/dist/commands/__tests__/upgrade.smoke.test.js.map +1 -1
- package/dist/commands/__tests__/upgrade.swap.test.js +1 -22
- package/dist/commands/__tests__/upgrade.swap.test.js.map +1 -1
- package/dist/commands/auth.d.ts.map +1 -1
- package/dist/commands/auth.js +15 -38
- package/dist/commands/auth.js.map +1 -1
- package/dist/commands/bootstrap.d.ts +2 -0
- package/dist/commands/bootstrap.d.ts.map +1 -1
- package/dist/commands/bootstrap.js +3 -3
- package/dist/commands/bootstrap.js.map +1 -1
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +1 -9
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/services.d.ts +39 -0
- package/dist/commands/services.d.ts.map +1 -0
- package/dist/commands/services.js +220 -0
- package/dist/commands/services.js.map +1 -0
- package/dist/commands/upgrade.d.ts +11 -0
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +70 -6
- package/dist/commands/upgrade.js.map +1 -1
- package/dist/image-digests.json +4 -3
- package/dist/index.js +953 -1023
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.js +258 -370
- package/host-cp/src/server.mjs +9 -1
- package/package.json +1 -1
package/host-cp/src/server.mjs
CHANGED
|
@@ -1567,12 +1567,20 @@ const server = http.createServer(async (req, res) => {
|
|
|
1567
1567
|
return jsonReply(res, 200, prListCacheEntry.data);
|
|
1568
1568
|
}
|
|
1569
1569
|
try {
|
|
1570
|
+
// `gh pr list` infers the target repo from `cwd`'s git origin.
|
|
1571
|
+
// host-cp's process cwd is `/app` (the install dir) — NOT a git
|
|
1572
|
+
// working tree — so without an explicit cwd, gh exits with
|
|
1573
|
+
// `fatal: not a git repository`. Run the command from the
|
|
1574
|
+
// bind-mounted operator repo (`/operator-repo` per compose.yaml).
|
|
1575
|
+
// Pre-fix the endpoint always 500'd inside the container; the
|
|
1576
|
+
// dashboard's PR filter quietly stayed empty.
|
|
1577
|
+
const operatorRepoPath = process.env.OLAM_REPO_PATH ?? '/operator-repo';
|
|
1570
1578
|
const { stdout } = await execFileAsync('gh', [
|
|
1571
1579
|
'pr', 'list',
|
|
1572
1580
|
'--state', 'all',
|
|
1573
1581
|
'--limit', '50',
|
|
1574
1582
|
'--json', 'number,title,state,headRefName',
|
|
1575
|
-
], { timeout: 10_000 });
|
|
1583
|
+
], { timeout: 10_000, cwd: operatorRepoPath });
|
|
1576
1584
|
const data = JSON.parse(stdout.trim() || '[]');
|
|
1577
1585
|
prListCacheEntry = { data, fetchedAt: Date.now() };
|
|
1578
1586
|
return jsonReply(res, 200, data);
|