@basou/cli 0.68.1 → 0.68.3
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/index.js +18 -11
- package/dist/index.js.map +1 -1
- package/dist/program.js +18 -11
- package/dist/program.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1919,10 +1919,10 @@ The input is a JSON object: measure_digest (the digest of the measurement the
|
|
|
1919
1919
|
judgement saw), observed (exactly the observations the board declares, when it
|
|
1920
1920
|
declares any), cells (every lane at every stage), prose, judged_by and
|
|
1921
1921
|
axis_review. The board is measured again, and nothing is written when the
|
|
1922
|
-
digest differs. Records are never written
|
|
1923
|
-
codes: 0 when the record was written, or with
|
|
1924
|
-
checked out (nothing is written then); 1 when it
|
|
1925
|
-
written; the reasons are on stderr).`
|
|
1922
|
+
digest differs (it covers board.yaml as read). Records are never written
|
|
1923
|
+
under a .basou/ directory. Exit codes: 0 when the record was written, or with
|
|
1924
|
+
--dry-run when everything checked out (nothing is written then); 1 when it
|
|
1925
|
+
was refused (nothing is written; the reasons are on stderr).`
|
|
1926
1926
|
).action(async (options) => {
|
|
1927
1927
|
await runBoardRecord(options);
|
|
1928
1928
|
});
|
|
@@ -2083,6 +2083,7 @@ async function doRunBoardGuide(_options, ctx) {
|
|
|
2083
2083
|
language: resolveViewLanguage(manifest),
|
|
2084
2084
|
basouCommand: ctx.basouCommand ?? [process.execPath, process.argv[1] ?? ""].filter((part) => part !== "").map(shellWord).join(" "),
|
|
2085
2085
|
basouVersion: BASOU_CLI_VERSION,
|
|
2086
|
+
basouBuild: ctx.basouBuild !== void 0 ? ctx.basouBuild : BASOU_BUILD?.commit ?? null,
|
|
2086
2087
|
now: ctx.nowProvider?.() ?? /* @__PURE__ */ new Date()
|
|
2087
2088
|
};
|
|
2088
2089
|
let guide;
|
|
@@ -2182,7 +2183,7 @@ ${parsed.errors.map((e) => ` - ${displayPath3(e)}`).join("\n")}`
|
|
|
2182
2183
|
const measurement = await measureLoaded(loaded, ctx, parsed.input.judged_by.model, previous);
|
|
2183
2184
|
if (measurement.digest !== parsed.input.measure_digest) {
|
|
2184
2185
|
throw new RecordRefusal(
|
|
2185
|
-
`measure_digest is ${parsed.input.measure_digest}, but the board measures ${measurement.digest} now: something it measures
|
|
2186
|
+
`measure_digest is ${parsed.input.measure_digest}, but the board measures ${measurement.digest} now: something it measures or board.yaml changed since the judgement, or basou was rebuilt or upgraded since that measurement. Measure again and judge that; nothing was written.`
|
|
2186
2187
|
);
|
|
2187
2188
|
}
|
|
2188
2189
|
const record = buildRecord({
|
|
@@ -14139,7 +14140,8 @@ var BOARD_HTML = `<!doctype html>
|
|
|
14139
14140
|
]);
|
|
14140
14141
|
}
|
|
14141
14142
|
|
|
14142
|
-
|
|
14143
|
+
// live: the board measured now, which reads no declaration.
|
|
14144
|
+
function effort(b, live) {
|
|
14143
14145
|
var e = b.effort;
|
|
14144
14146
|
var tile = function (k, v, sub) {
|
|
14145
14147
|
return el('div', { class: 'tile' }, [
|
|
@@ -14172,7 +14174,9 @@ var BOARD_HTML = `<!doctype html>
|
|
|
14172
14174
|
children.push(dailyChart(days));
|
|
14173
14175
|
children.push(cumulativeChart(days, e.milestones));
|
|
14174
14176
|
}
|
|
14175
|
-
children.push(
|
|
14177
|
+
children.push(live
|
|
14178
|
+
? el('p', { class: 'muted', text: S.effort.milestonesNotRead })
|
|
14179
|
+
: e.milestones.length === 0
|
|
14176
14180
|
? el('p', { class: 'muted', text: S.effort.noMilestones })
|
|
14177
14181
|
: el('ul', null, e.milestones.map(function (m) {
|
|
14178
14182
|
return el('li', null, [m.date + ' ', el('b', { text: m.label }), el('span', { class: 'muted', text: ' ' + m.ref })]);
|
|
@@ -14330,7 +14334,9 @@ var BOARD_HTML = `<!doctype html>
|
|
|
14330
14334
|
}
|
|
14331
14335
|
setStatus('', false);
|
|
14332
14336
|
var b = page.board;
|
|
14333
|
-
|
|
14337
|
+
// The board's own title, so that boards open in other tabs can be told apart.
|
|
14338
|
+
document.title = b.heading.title;
|
|
14339
|
+
[heading(b), summary(b), effort(b, false), matrix(b), lanes(b), composition(b), turns(b), footnotes(b)]
|
|
14334
14340
|
.forEach(function (node) { root.appendChild(node); });
|
|
14335
14341
|
}
|
|
14336
14342
|
|
|
@@ -14439,7 +14445,8 @@ var BOARD_HTML = `<!doctype html>
|
|
|
14439
14445
|
S = d.strings;
|
|
14440
14446
|
lang = d.language;
|
|
14441
14447
|
document.documentElement.lang = lang;
|
|
14442
|
-
|
|
14448
|
+
// As the heading names it, so that boards open in other tabs can be told apart.
|
|
14449
|
+
document.title = d.live.heading.title;
|
|
14443
14450
|
var drawn = ++liveDrawn;
|
|
14444
14451
|
var nav = $('records');
|
|
14445
14452
|
clear(nav);
|
|
@@ -14454,7 +14461,7 @@ var BOARD_HTML = `<!doctype html>
|
|
|
14454
14461
|
clear(root);
|
|
14455
14462
|
setStatus('', false);
|
|
14456
14463
|
var l = d.live;
|
|
14457
|
-
[liveHeading(l, why), effort(l), liveRepos(l), liveTrail(l), liveComponents(l), liveFootnotes(l, why)]
|
|
14464
|
+
[liveHeading(l, why), effort(l, true), liveRepos(l), liveTrail(l), liveComponents(l), liveFootnotes(l, why)]
|
|
14458
14465
|
.forEach(function (node) { root.appendChild(node); });
|
|
14459
14466
|
}
|
|
14460
14467
|
|
|
@@ -16040,7 +16047,7 @@ function installExperimentalNotice(program2, names = EXPERIMENTAL_COMMANDS, writ
|
|
|
16040
16047
|
function readBuildStamp() {
|
|
16041
16048
|
if (false) return void 0;
|
|
16042
16049
|
try {
|
|
16043
|
-
return JSON.parse('{"version":"0.68.
|
|
16050
|
+
return JSON.parse('{"version":"0.68.3","commit":"42d94c5","committedAt":"2026-10-13T15:23:54+09:00"}');
|
|
16044
16051
|
} catch {
|
|
16045
16052
|
return void 0;
|
|
16046
16053
|
}
|