@intentius/behold 0.29.12 → 0.29.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/behold",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.13",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "behold — a live control plane on chant. See your whole estate (every substrate in one graph), coloured by drift; act through delegated, gated Ops.",
|
package/web/kiosk-roots.test.js
CHANGED
|
@@ -38,8 +38,8 @@ describe("a colour per root (behold#571)", () => {
|
|
|
38
38
|
|
|
39
39
|
describe("root names in a line (behold#571)", () => {
|
|
40
40
|
it("finds whole-word names, possessives and names in brackets, and keeps the line's text", () => {
|
|
41
|
-
const line = "app reads subnet_id from network,
|
|
42
|
-
expect(names(line)).toEqual(["app", "network", "network"
|
|
41
|
+
const line = "app reads subnet_id from network, set when network applies.";
|
|
42
|
+
expect(names(line)).toEqual(["app", "network", "network"]);
|
|
43
43
|
expect(rootSegments(line, ROOTS).map((s) => s.text).join("")).toBe(line);
|
|
44
44
|
expect(names("approves wave 2 (app) with network's key")).toEqual(["app", "network"]);
|
|
45
45
|
expect(names("app: Plan: 0 to add, 1 to change, 0 to destroy.")).toEqual(["app"]);
|
package/web/kiosk.js
CHANGED
|
@@ -223,7 +223,7 @@ export function unreviewedLines(answer) {
|
|
|
223
223
|
if (!pr) return [];
|
|
224
224
|
return pr.reads
|
|
225
225
|
.filter((r) => r.outputs === "planned" && r.unknown && r.unknown.length)
|
|
226
|
-
.map((r) => `${r.root} reads ${r.unknown.join(", ")} from ${r.upstream},
|
|
226
|
+
.map((r) => `${r.root} reads ${r.unknown.join(", ")} from ${r.upstream}, set when ${r.upstream} applies.`);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
/**
|
package/web/terragucci-change.js
CHANGED
|
@@ -333,7 +333,7 @@ export function changeHead(answer, progress, now = new Date()) {
|
|
|
333
333
|
const stage = changeStage(answer, progress);
|
|
334
334
|
if (stage === "pull-request") {
|
|
335
335
|
const r = answer.pull_request.run;
|
|
336
|
-
return { text: `pull request #${r.pull_request}, planned ${clock(r.finished, now)}, ${ago(r.finished, now)};
|
|
336
|
+
return { text: `pull request #${r.pull_request}, planned ${clock(r.finished, now)}, ${ago(r.finished, now)}; the run view follows the merge`, href: hrefOf(answer, r.report), pr: r.pull_request_url || null };
|
|
337
337
|
}
|
|
338
338
|
if (stage === "apply") {
|
|
339
339
|
const r = progress.run;
|
|
@@ -505,7 +505,7 @@ export function rootStates(answer, progress) {
|
|
|
505
505
|
roots[root] = { wave: w.number, state: "planned", tone: STATE_TONE.planned, words: `wave ${w.number} · planned${c ? ", composed" : ""}`, facts };
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
for (const root of known) if (!roots[root]) roots[root] = { wave: null, state: "outside", tone: STATE_TONE.outside, words: "
|
|
508
|
+
for (const root of known) if (!roots[root]) roots[root] = { wave: null, state: "outside", tone: STATE_TONE.outside, words: "unchanged", facts: [] };
|
|
509
509
|
return { stage, roots };
|
|
510
510
|
}
|
|
511
511
|
if (stage === "apply") {
|
|
@@ -544,12 +544,12 @@ export function rootStates(answer, progress) {
|
|
|
544
544
|
return { stage, roots };
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
/** The short label on a read's line: "reads network's planned http_proxy_port,
|
|
547
|
+
/** The short label on a read's line: "reads network's planned http_proxy_port, set when network applies". */
|
|
548
548
|
export function readLabel(e) {
|
|
549
549
|
if (e.composed !== undefined) {
|
|
550
550
|
return `reads ${e.to} in wave ${e.composed}'s composed run${e.unknown.length ? `: ${list(e.unknown)} known once ${e.to}'s part applies` : ""}`;
|
|
551
551
|
}
|
|
552
|
-
if (e.outputs === "planned") return e.unknown.length ? `reads ${list(e.unknown)} from ${e.to}
|
|
552
|
+
if (e.outputs === "planned") return e.unknown.length ? `reads ${list(e.unknown)} from ${e.to}, set when ${e.to} applies` : `reads ${e.to}'s planned outputs`;
|
|
553
553
|
return `reads ${e.to}'s applied state`;
|
|
554
554
|
}
|
|
555
555
|
|
|
@@ -607,7 +607,7 @@ export function viewCaption(answer, progress, now = new Date()) {
|
|
|
607
607
|
const stage = changeStage(answer, progress);
|
|
608
608
|
if (stage === "pull-request") {
|
|
609
609
|
const r = answer.pull_request.run;
|
|
610
|
-
return `the plan of pull request #${r.pull_request} at ${clock(r.finished, now)}
|
|
610
|
+
return `the plan of pull request #${r.pull_request} at ${clock(r.finished, now)}, before the merge`;
|
|
611
611
|
}
|
|
612
612
|
if (stage === "apply") {
|
|
613
613
|
const r = progress.run;
|
|
@@ -23,7 +23,7 @@ describe("rootStates (#569)", () => {
|
|
|
23
23
|
expect(stage).toBe("pull-request");
|
|
24
24
|
expect(r.network).toMatchObject({ wave: 1, state: "planned", tone: "plan", words: "wave 1 · planned", facts: ["plan f8851fb61921"] });
|
|
25
25
|
expect(r.app.facts).toEqual(["plans again once wave 1 applies", "will wait for an approval"]);
|
|
26
|
-
expect(r.other).toMatchObject({ state: "outside", words: "
|
|
26
|
+
expect(r.other).toMatchObject({ state: "outside", words: "unchanged" });
|
|
27
27
|
});
|
|
28
28
|
it("shows a failed wave's roots failed and the waves before it applied", () => {
|
|
29
29
|
const p = run(
|
|
@@ -76,7 +76,7 @@ describe("rootStates, a root that plans no change (#569 review)", () => {
|
|
|
76
76
|
|
|
77
77
|
describe("readLabel (#569)", () => {
|
|
78
78
|
it("says what is read and when it is known", () => {
|
|
79
|
-
expect(readLabel({ from: "app", to: "network", outputs: "planned", unknown: ["http_proxy_port"] })).toBe("reads http_proxy_port from network
|
|
79
|
+
expect(readLabel({ from: "app", to: "network", outputs: "planned", unknown: ["http_proxy_port"] })).toBe("reads http_proxy_port from network, set when network applies");
|
|
80
80
|
expect(readLabel({ from: "app", to: "network", outputs: "planned", unknown: [] })).toBe("reads network's planned outputs");
|
|
81
81
|
expect(readLabel({ from: "app", to: "network", outputs: "applied", unknown: [] })).toBe("reads network's applied state");
|
|
82
82
|
expect(readLabel({ from: "app", to: "network", outputs: "planned", unknown: ["subnet_id"], composed: 1 })).toBe("reads network in wave 1's composed run: subnet_id known once network's part applies");
|
|
@@ -93,7 +93,7 @@ describe("readCardIds (#569)", () => {
|
|
|
93
93
|
describe("viewCaption (#569)", () => {
|
|
94
94
|
it("says which run the marks come from", () => {
|
|
95
95
|
const now = new Date("2026-10-15T03:30:00Z");
|
|
96
|
-
expect(viewCaption(prAnswer, null, now)).toBe("the plan of pull request #201 at 03:11 UTC
|
|
96
|
+
expect(viewCaption(prAnswer, null, now)).toBe("the plan of pull request #201 at 03:11 UTC, before the merge");
|
|
97
97
|
expect(viewCaption(prAnswer, run([{ number: 1, state: "applied", roots: ["network"], reads: [] }], []), now)).toBe("the run of merge 6b9f7e25, as of 03:20 UTC");
|
|
98
98
|
});
|
|
99
99
|
});
|
|
@@ -120,7 +120,7 @@ describe("the component marks (#571)", () => {
|
|
|
120
120
|
const m = componentMarks(answer, null, facets, { runs: runs(run(11, MERGE, [job("apply-wave-2", "waiting")])), pin: `pull-41-a1b2c3d4` });
|
|
121
121
|
expect(m.stage).toBe("pull-request");
|
|
122
122
|
expect(m.cards.network).toMatchObject({ state: "planned", words: "planned" });
|
|
123
|
-
expect(m.cards.other).toMatchObject({ state: "outside", words: "
|
|
123
|
+
expect(m.cards.other).toMatchObject({ state: "outside", words: "unchanged" });
|
|
124
124
|
expect(m.waves[2]).toMatchObject({ state: "planned", status: null, title: "apply-wave-2" });
|
|
125
125
|
expect(m.waves[1].facts).toEqual(["plan aaaaaaaaaaaa"]);
|
|
126
126
|
});
|