@pleri/olam-cli 0.1.60 → 0.1.61
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/image-digests.json +2 -2
- package/host-cp/compose.yaml +11 -5
- package/host-cp/src/server.mjs +10 -3
- package/package.json +1 -1
package/dist/image-digests.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"auth": "sha256:1e6d3574077ba70ba908b5ae343e9ff669937468ff1f48e3e9a449ac38578cc6",
|
|
3
3
|
"devbox": "sha256:74ccac7911aad8f9679d27b1c05a74a5414e4aba0c12e336735161ea3d08a19a",
|
|
4
|
-
"host-cp": "sha256:
|
|
4
|
+
"host-cp": "sha256:c747251056dda0aa8c53a69f69972ff789a842d4ca2cf2cdfd91bc51e803ec9b",
|
|
5
5
|
"mcp-auth": "sha256:f48ddee58c4126a8c23db41859d722991c5feef8887af0f465ac2f462d0f97e7",
|
|
6
6
|
"$schema_version": 1,
|
|
7
|
-
"$published_version": "0.1.
|
|
7
|
+
"$published_version": "0.1.61",
|
|
8
8
|
"$registry": "ghcr.io/pleri"
|
|
9
9
|
}
|
package/host-cp/compose.yaml
CHANGED
|
@@ -67,11 +67,17 @@ services:
|
|
|
67
67
|
OLAM_WORLDS_DB: "/data/worlds.db"
|
|
68
68
|
OLAM_PR_POLL_INTERVAL_MS: "300000"
|
|
69
69
|
OLAM_MERGE_GRACE_MS: "600000"
|
|
70
|
-
#
|
|
71
|
-
#
|
|
72
|
-
#
|
|
73
|
-
#
|
|
74
|
-
|
|
70
|
+
# NOTE: OLAM_REPO_PATH is intentionally NOT passed into the
|
|
71
|
+
# container env. The HOST-side variable names a bind-mount source
|
|
72
|
+
# (a host path like /Users/.../olam — see the volumes block below).
|
|
73
|
+
# Inside the container, the bind-mount target is always
|
|
74
|
+
# `/operator-repo`. Pre-fix the env was passed through, server.mjs
|
|
75
|
+
# consumers (version-status.mjs, /api/prs handler) read it
|
|
76
|
+
# expecting a container-side path, then `cwd:` to a host path that
|
|
77
|
+
# doesn't exist inside the container — `gh pr list` failed with
|
|
78
|
+
# "not a git repository", `gh` itself failed with `spawn ENOENT`.
|
|
79
|
+
# Server-side consumers default to `/operator-repo` which is
|
|
80
|
+
# always correct.
|
|
75
81
|
# Auth-service inter-service auth. The secret is shared with the
|
|
76
82
|
# long-lived olam-auth container (generated on first `olam auth
|
|
77
83
|
# up` at ~/.olam/auth-secret). Without it, X-Olam-Secret is never
|
package/host-cp/src/server.mjs
CHANGED
|
@@ -1572,9 +1572,16 @@ const server = http.createServer(async (req, res) => {
|
|
|
1572
1572
|
// working tree — so without an explicit cwd, gh exits with
|
|
1573
1573
|
// `fatal: not a git repository`. Run the command from the
|
|
1574
1574
|
// bind-mounted operator repo (`/operator-repo` per compose.yaml).
|
|
1575
|
-
//
|
|
1576
|
-
//
|
|
1577
|
-
|
|
1575
|
+
//
|
|
1576
|
+
// Use `||` (not `??`) so empty-string OLAM_REPO_PATH falls back
|
|
1577
|
+
// too. compose.yaml passes through `${OLAM_REPO_PATH:-}` which
|
|
1578
|
+
// injects an empty string into the container env when the operator
|
|
1579
|
+
// hasn't set the var; nullish-coalescing would treat that empty as
|
|
1580
|
+
// present and pass `cwd: ""` (defaults to process.cwd() = /app, no
|
|
1581
|
+
// .git). The original /api/prs cwd fix landed without catching
|
|
1582
|
+
// this — both bug shapes had to be exercised before the gap
|
|
1583
|
+
// surfaced.
|
|
1584
|
+
const operatorRepoPath = process.env.OLAM_REPO_PATH || '/operator-repo';
|
|
1578
1585
|
const { stdout } = await execFileAsync('gh', [
|
|
1579
1586
|
'pr', 'list',
|
|
1580
1587
|
'--state', 'all',
|