@bli-cockpit/cli 0.2.274 → 0.2.275
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,4 +1,4 @@
|
|
|
1
|
-
import { setupReceiptPieces } from "@bli-cockpit/telemetry-core";
|
|
1
|
+
import { CODEX_HOOKS_TRUST_GUIDE_URL, setupReceiptPieces } from "@bli-cockpit/telemetry-core";
|
|
2
2
|
import { redactedHealthDetail } from "../health-detail.js";
|
|
3
3
|
import { setupReceiptBlock } from "./setup-receipt-lines.js";
|
|
4
4
|
export function ok(id, code, message) {
|
|
@@ -193,7 +193,7 @@ export function doctorNeedsPerson(rows, receipt) {
|
|
|
193
193
|
const step = key === "device" || key === "browser" ? "authed" : key === "collector.autostart" ? "autostart-alive" : "memory-registered";
|
|
194
194
|
if (piece.status !== "needs_trust" && items.some((item) => item.step === step))
|
|
195
195
|
continue;
|
|
196
|
-
items.push({ step: key, reason: piece.reason ?? piece.status, action: piece.status === "needs_trust" ?
|
|
196
|
+
items.push({ step: key, reason: piece.reason ?? piece.status, action: piece.status === "needs_trust" ? `Open Codex and run /hooks to trust the installed hooks. Step by step: ${CODEX_HOOKS_TRUST_GUIDE_URL}` : defaults[step] });
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
return items;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* one outcome, and rendering that outcome for a log line or a terminal.
|
|
4
4
|
* Sibling of `memory-install.ts`, named in its header.
|
|
5
5
|
*/
|
|
6
|
-
import { memoryInstallGaps } from "@bli-cockpit/telemetry-core";
|
|
6
|
+
import { CODEX_HOOKS_TRUST_GUIDE_URL, memoryInstallGaps } from "@bli-cockpit/telemetry-core";
|
|
7
7
|
import { memoryDaemonLine } from "./memory-daemon-probe.js";
|
|
8
8
|
import { memoryReceiptLine } from "./memory-install-receipt.js";
|
|
9
9
|
import { DEFAULT_DASHBOARD_URL, getCollectorRuntimePaths, readLocalCollectorConfig, } from "../local-state.js";
|
|
@@ -93,7 +93,8 @@ export function memoryOutcomeLines(outcome) {
|
|
|
93
93
|
// here in words rather than left as a status word they have to look up.
|
|
94
94
|
if (outcome.receipt.codex.hooks === "needs_trust") {
|
|
95
95
|
lines.push(" Codex will NOT run these hooks until you trust them: open Codex in any folder, " +
|
|
96
|
-
"run /hooks, and trust
|
|
96
|
+
"run /hooks, and trust every bli-memory entry. One time, per machine. " +
|
|
97
|
+
`Step by step, with pictures: ${CODEX_HOOKS_TRUST_GUIDE_URL}`);
|
|
97
98
|
}
|
|
98
99
|
if (outcome.receipt.codex.hooks === "unsupported") {
|
|
99
100
|
lines.push(" Codex hooks are turned off in your ~/.codex/config.toml ([features] hooks = false), " +
|
|
@@ -21,7 +21,7 @@ export async function runCockpitCli(argv, io) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
if (command === "--version" || command === "-V" || command === "version") {
|
|
24
|
-
writeLine(io?.stdout ?? process.stdout, "0.2.
|
|
24
|
+
writeLine(io?.stdout ?? process.stdout, "0.2.275");
|
|
25
25
|
return 0;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* refusal that does not say what to do next is half a message. Every gap here
|
|
10
10
|
* gets ONE command or ONE click, never a paragraph and never "see the docs".
|
|
11
11
|
*/
|
|
12
|
-
import { setupPieceMark, setupReceiptLine, setupReceiptPieces, } from "@bli-cockpit/telemetry-core";
|
|
12
|
+
import { CODEX_HOOKS_TRUST_GUIDE_URL, setupPieceMark, setupReceiptLine, setupReceiptPieces, } from "@bli-cockpit/telemetry-core";
|
|
13
13
|
/** Cached host facts are old after the same seven-day window as their readers. */
|
|
14
14
|
const OLD_READING_MS = 7 * 24 * 60 * 60 * 1000;
|
|
15
15
|
/** The one fix for each piece, by key. Present for every key the block prints. */
|
|
@@ -45,7 +45,7 @@ const UNSUPPORTED_FIX = "Switched off in your own config; nothing to do.";
|
|
|
45
45
|
* and waiting to be trusted are finished by a PERSON, in the Codex UI, and no
|
|
46
46
|
* command we could print would do it.
|
|
47
47
|
*/
|
|
48
|
-
const NEEDS_TRUST_FIX =
|
|
48
|
+
const NEEDS_TRUST_FIX = `Open Codex and press \`/hooks\` to trust them (once, ~15s). Step by step: ${CODEX_HOOKS_TRUST_GUIDE_URL}`;
|
|
49
49
|
/**
|
|
50
50
|
* The block a terminal prints: the one line, then one fix per gap, then
|
|
51
51
|
* nothing. A fully connected machine gets one line and no advice — a receipt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bli-cockpit/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.275",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"test": "node dist/cli.js --help && node ../../scripts/assert-public-cli-routing.mjs && node ../../scripts/assert-public-cli-verb-help.mjs && node ../../scripts/assert-public-cli-surface-doors.mjs && node ../../scripts/assert-public-cli-runtime-files.mjs && node ../../scripts/assert-public-cli-exit-contract.mjs && node ../../scripts/assert-public-cli-no-fleet-posts.mjs && node ../../scripts/assert-public-cli-doctor-json.mjs && node ../../scripts/assert-public-package-pack.mjs --workspace=@bli-cockpit/cli"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@bli-cockpit/memory-mcp": "0.1.
|
|
31
|
-
"@bli-cockpit/mcp": "0.1.
|
|
32
|
-
"@bli-cockpit/telemetry-core": "0.1.
|
|
30
|
+
"@bli-cockpit/memory-mcp": "0.1.84",
|
|
31
|
+
"@bli-cockpit/mcp": "0.1.168",
|
|
32
|
+
"@bli-cockpit/telemetry-core": "0.1.91",
|
|
33
33
|
"unpdf": "1.8.1"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|