create-egregore 0.21.0-runtime-mvp.7 → 0.21.0-runtime-mvp.8
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// egregore-launcher-version: 0.21.0-runtime-mvp.
|
|
2
|
+
// egregore-launcher-version: 0.21.0-runtime-mvp.8
|
|
3
3
|
//
|
|
4
4
|
// egregore — launch and browse Egregore instances from your terminal.
|
|
5
5
|
// Installed by create-egregore. Reads ~/.egregore/instances.json.
|
|
@@ -35,7 +35,7 @@ const crypto = require("node:crypto");
|
|
|
35
35
|
const { spawnSync, spawn } = require("node:child_process");
|
|
36
36
|
const readline = require("node:readline");
|
|
37
37
|
|
|
38
|
-
const VERSION = "0.21.0-runtime-mvp.
|
|
38
|
+
const VERSION = "0.21.0-runtime-mvp.8";
|
|
39
39
|
const REGISTRY = path.join(os.homedir(), ".egregore", "instances.json");
|
|
40
40
|
const DEFAULT_FILE = path.join(os.homedir(), ".egregore", "default");
|
|
41
41
|
const UPDATE_CACHE_FILE = path.join(os.homedir(), ".egregore", "update-check.json");
|
|
@@ -3143,6 +3143,7 @@ function renderUpgradePanel({ inst, data, candidate, retrieval, mode, notice, wi
|
|
|
3143
3143
|
if (notice) lines.push(boxLine(notice, innerWidth, margin));
|
|
3144
3144
|
const keys = [];
|
|
3145
3145
|
if (!status || status === "none" || ["pending", "failed", "interrupted", "cancelled", "rolled-back"].includes(status)) keys.push(`${BOLD}p${RESET}${DIM} prepare${RESET}`);
|
|
3146
|
+
if (status === "active" && candidate && candidate !== (data && data.active_version)) keys.push(`${BOLD}p${RESET}${DIM} prepare update${RESET}`);
|
|
3146
3147
|
if (status === "ready-to-activate") keys.push(`${BOLD}a${RESET}${DIM} activate${RESET}`);
|
|
3147
3148
|
if (status === "preparing") keys.push(`${BOLD}c${RESET}${DIM} cancel${RESET}`);
|
|
3148
3149
|
if (status === "active") keys.push(`${BOLD}r${RESET}${DIM} roll back${RESET}`);
|
|
@@ -3861,9 +3862,12 @@ async function browser(args = {}) {
|
|
|
3861
3862
|
render(); return;
|
|
3862
3863
|
}
|
|
3863
3864
|
const status = state.upgradeData && state.upgradeData.status;
|
|
3864
|
-
|
|
3865
|
+
const activeUpdatable = status === "active"
|
|
3866
|
+
&& state.upgradeCandidate
|
|
3867
|
+
&& state.upgradeCandidate !== (state.upgradeData && state.upgradeData.active_version);
|
|
3868
|
+
if (chunk === "p" && (!status || activeUpdatable || ["none", "pending", "failed", "interrupted", "cancelled", "rolled-back"].includes(status))) {
|
|
3865
3869
|
const staged = state.upgradeData
|
|
3866
|
-
&& !["none", "cancelled", "rolled-back"].includes(status)
|
|
3870
|
+
&& !["none", "cancelled", "rolled-back", "active"].includes(status)
|
|
3867
3871
|
&& state.upgradeData.candidate_version;
|
|
3868
3872
|
if (!staged) {
|
|
3869
3873
|
const candidate = state.upgradeCandidate;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-egregore",
|
|
3
|
-
"version": "0.21.0-runtime-mvp.
|
|
3
|
+
"version": "0.21.0-runtime-mvp.8",
|
|
4
4
|
"description": "Set up Egregore for your team in one command — installs the egregore launcher and your choice of Claude Code, Codex, or Pi.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|