@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.
Files changed (46) hide show
  1. package/dist/__tests__/services.test.d.ts +8 -0
  2. package/dist/__tests__/services.test.d.ts.map +1 -0
  3. package/dist/__tests__/services.test.js +185 -0
  4. package/dist/__tests__/services.test.js.map +1 -0
  5. package/dist/commands/__tests__/__fixtures__/upgrade-helpers.d.ts +6 -0
  6. package/dist/commands/__tests__/__fixtures__/upgrade-helpers.d.ts.map +1 -0
  7. package/dist/commands/__tests__/__fixtures__/upgrade-helpers.js +26 -0
  8. package/dist/commands/__tests__/__fixtures__/upgrade-helpers.js.map +1 -0
  9. package/dist/commands/__tests__/upgrade.all-three.test.js +1 -13
  10. package/dist/commands/__tests__/upgrade.all-three.test.js.map +1 -1
  11. package/dist/commands/__tests__/upgrade.compose-path.test.js +1 -13
  12. package/dist/commands/__tests__/upgrade.compose-path.test.js.map +1 -1
  13. package/dist/commands/__tests__/upgrade.olam-tag.test.js +1 -14
  14. package/dist/commands/__tests__/upgrade.olam-tag.test.js.map +1 -1
  15. package/dist/commands/__tests__/upgrade.recreate.test.js +1 -13
  16. package/dist/commands/__tests__/upgrade.recreate.test.js.map +1 -1
  17. package/dist/commands/__tests__/upgrade.rollback.test.js +1 -21
  18. package/dist/commands/__tests__/upgrade.rollback.test.js.map +1 -1
  19. package/dist/commands/__tests__/upgrade.smoke.test.js +1 -21
  20. package/dist/commands/__tests__/upgrade.smoke.test.js.map +1 -1
  21. package/dist/commands/__tests__/upgrade.swap.test.js +1 -22
  22. package/dist/commands/__tests__/upgrade.swap.test.js.map +1 -1
  23. package/dist/commands/auth.d.ts.map +1 -1
  24. package/dist/commands/auth.js +15 -38
  25. package/dist/commands/auth.js.map +1 -1
  26. package/dist/commands/bootstrap.d.ts +2 -0
  27. package/dist/commands/bootstrap.d.ts.map +1 -1
  28. package/dist/commands/bootstrap.js +3 -3
  29. package/dist/commands/bootstrap.js.map +1 -1
  30. package/dist/commands/create.d.ts.map +1 -1
  31. package/dist/commands/create.js +1 -9
  32. package/dist/commands/create.js.map +1 -1
  33. package/dist/commands/services.d.ts +39 -0
  34. package/dist/commands/services.d.ts.map +1 -0
  35. package/dist/commands/services.js +220 -0
  36. package/dist/commands/services.js.map +1 -0
  37. package/dist/commands/upgrade.d.ts +11 -0
  38. package/dist/commands/upgrade.d.ts.map +1 -1
  39. package/dist/commands/upgrade.js +70 -6
  40. package/dist/commands/upgrade.js.map +1 -1
  41. package/dist/image-digests.json +4 -3
  42. package/dist/index.js +953 -1023
  43. package/dist/index.js.map +1 -1
  44. package/dist/mcp-server.js +258 -370
  45. package/host-cp/src/server.mjs +9 -1
  46. package/package.json +1 -1
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pleri/olam-cli",
3
- "version": "0.1.56",
3
+ "version": "0.1.58",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "olam": "./bin/olam.cjs"