@basou/cli 0.68.0 → 0.68.2
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 +22 -11
- package/dist/index.js.map +1 -1
- package/dist/program.js +22 -11
- package/dist/program.js.map +1 -1
- package/package.json +2 -2
package/dist/program.js
CHANGED
|
@@ -1917,10 +1917,10 @@ The input is a JSON object: measure_digest (the digest of the measurement the
|
|
|
1917
1917
|
judgement saw), observed (exactly the observations the board declares, when it
|
|
1918
1918
|
declares any), cells (every lane at every stage), prose, judged_by and
|
|
1919
1919
|
axis_review. The board is measured again, and nothing is written when the
|
|
1920
|
-
digest differs. Records are never written
|
|
1921
|
-
codes: 0 when the record was written, or with
|
|
1922
|
-
checked out (nothing is written then); 1 when it
|
|
1923
|
-
written; the reasons are on stderr).`
|
|
1920
|
+
digest differs (it covers board.yaml as read). Records are never written
|
|
1921
|
+
under a .basou/ directory. Exit codes: 0 when the record was written, or with
|
|
1922
|
+
--dry-run when everything checked out (nothing is written then); 1 when it
|
|
1923
|
+
was refused (nothing is written; the reasons are on stderr).`
|
|
1924
1924
|
).action(async (options) => {
|
|
1925
1925
|
await runBoardRecord(options);
|
|
1926
1926
|
});
|
|
@@ -2081,6 +2081,7 @@ async function doRunBoardGuide(_options, ctx) {
|
|
|
2081
2081
|
language: resolveViewLanguage(manifest),
|
|
2082
2082
|
basouCommand: ctx.basouCommand ?? [process.execPath, process.argv[1] ?? ""].filter((part) => part !== "").map(shellWord).join(" "),
|
|
2083
2083
|
basouVersion: BASOU_CLI_VERSION,
|
|
2084
|
+
basouBuild: ctx.basouBuild !== void 0 ? ctx.basouBuild : BASOU_BUILD?.commit ?? null,
|
|
2084
2085
|
now: ctx.nowProvider?.() ?? /* @__PURE__ */ new Date()
|
|
2085
2086
|
};
|
|
2086
2087
|
let guide;
|
|
@@ -2180,7 +2181,7 @@ ${parsed.errors.map((e) => ` - ${displayPath3(e)}`).join("\n")}`
|
|
|
2180
2181
|
const measurement = await measureLoaded(loaded, ctx, parsed.input.judged_by.model, previous);
|
|
2181
2182
|
if (measurement.digest !== parsed.input.measure_digest) {
|
|
2182
2183
|
throw new RecordRefusal(
|
|
2183
|
-
`measure_digest is ${parsed.input.measure_digest}, but the board measures ${measurement.digest} now: something it measures
|
|
2184
|
+
`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.`
|
|
2184
2185
|
);
|
|
2185
2186
|
}
|
|
2186
2187
|
const record = buildRecord({
|
|
@@ -14272,13 +14273,23 @@ var BOARD_HTML = `<!doctype html>
|
|
|
14272
14273
|
var f = b.footnotes;
|
|
14273
14274
|
var items = f.notes.map(function (n) { return el('li', null, [prose(n, 'span'), reported()]); });
|
|
14274
14275
|
var last = f.axis.last_review;
|
|
14275
|
-
|
|
14276
|
-
|
|
14277
|
-
|
|
14278
|
-
|
|
14276
|
+
// The last review and the need were measured before the record was
|
|
14277
|
+
// written: when it reviews the axis itself, they are the ones before it.
|
|
14278
|
+
var own = f.axis.this_review || null;
|
|
14279
|
+
var review = !f.axis.last_review_known ? (own ? S.footnotes.previousReviewUnknown : S.footnotes.reviewUnknown)
|
|
14280
|
+
: last === null ? (own ? S.footnotes.noPreviousReview : S.footnotes.noReview)
|
|
14281
|
+
: last.from === 'record' ? fill(own ? S.footnotes.previousReviewFromRecord : S.footnotes.lastReviewFromRecord, { date: last.date, model: last.model, record: last.record || '' })
|
|
14282
|
+
: fill(own ? S.footnotes.previousReview : S.footnotes.lastReview, { date: last.date, model: last.model });
|
|
14279
14283
|
var answer = f.axis.review_needed === true ? S.footnotes.reviewNeededYes
|
|
14280
14284
|
: f.axis.review_needed === false ? S.footnotes.reviewNeededNo : S.footnotes.reviewNeededUnknown;
|
|
14281
|
-
items.push(el('li', { text: fill(S.footnotes.axis, { version: f.axis.version }) + ' / ' + review + ' / ' + fill(S.footnotes.reviewNeeded, { answer: answer }) }));
|
|
14285
|
+
items.push(el('li', { text: fill(S.footnotes.axis, { version: f.axis.version }) + ' / ' + review + ' / ' + fill(own ? S.footnotes.reviewNeededBefore : S.footnotes.reviewNeeded, { answer: answer }) }));
|
|
14286
|
+
if (own) {
|
|
14287
|
+
items.push(el('li', null, [
|
|
14288
|
+
el('span', { text: fill(S.footnotes.thisReview, { triggers: own.triggers.join(', ') }) }),
|
|
14289
|
+
prose(own.summary, 'span'),
|
|
14290
|
+
reported()
|
|
14291
|
+
]));
|
|
14292
|
+
}
|
|
14282
14293
|
items.push(el('li', { text: fill(S.footnotes.judgedBy, { model: f.model }) }));
|
|
14283
14294
|
items.push(el('li', { text: S.footnotes.reportedNote }));
|
|
14284
14295
|
if (f.not_found.length > 0) {
|
|
@@ -16028,7 +16039,7 @@ function installExperimentalNotice(program, names = EXPERIMENTAL_COMMANDS, write
|
|
|
16028
16039
|
function readBuildStamp() {
|
|
16029
16040
|
if (false) return void 0;
|
|
16030
16041
|
try {
|
|
16031
|
-
return JSON.parse('{"version":"0.68.
|
|
16042
|
+
return JSON.parse('{"version":"0.68.2","commit":"db6d49f","committedAt":"2026-10-13T11:10:06+09:00"}');
|
|
16032
16043
|
} catch {
|
|
16033
16044
|
return void 0;
|
|
16034
16045
|
}
|