@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 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 under a .basou/ directory. Exit
1923
- codes: 0 when the record was written, or with --dry-run when everything
1924
- checked out (nothing is written then); 1 when it was refused (nothing is
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 moved since the judgement, or basou was rebuilt or upgraded since that measurement. Measure again and judge that; nothing was written.`
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({
@@ -14274,13 +14275,23 @@ var BOARD_HTML = `<!doctype html>
14274
14275
  var f = b.footnotes;
14275
14276
  var items = f.notes.map(function (n) { return el('li', null, [prose(n, 'span'), reported()]); });
14276
14277
  var last = f.axis.last_review;
14277
- var review = !f.axis.last_review_known ? S.footnotes.reviewUnknown
14278
- : last === null ? S.footnotes.noReview
14279
- : last.from === 'record' ? fill(S.footnotes.lastReviewFromRecord, { date: last.date, model: last.model, record: last.record || '' })
14280
- : fill(S.footnotes.lastReview, { date: last.date, model: last.model });
14278
+ // The last review and the need were measured before the record was
14279
+ // written: when it reviews the axis itself, they are the ones before it.
14280
+ var own = f.axis.this_review || null;
14281
+ var review = !f.axis.last_review_known ? (own ? S.footnotes.previousReviewUnknown : S.footnotes.reviewUnknown)
14282
+ : last === null ? (own ? S.footnotes.noPreviousReview : S.footnotes.noReview)
14283
+ : last.from === 'record' ? fill(own ? S.footnotes.previousReviewFromRecord : S.footnotes.lastReviewFromRecord, { date: last.date, model: last.model, record: last.record || '' })
14284
+ : fill(own ? S.footnotes.previousReview : S.footnotes.lastReview, { date: last.date, model: last.model });
14281
14285
  var answer = f.axis.review_needed === true ? S.footnotes.reviewNeededYes
14282
14286
  : f.axis.review_needed === false ? S.footnotes.reviewNeededNo : S.footnotes.reviewNeededUnknown;
14283
- items.push(el('li', { text: fill(S.footnotes.axis, { version: f.axis.version }) + ' / ' + review + ' / ' + fill(S.footnotes.reviewNeeded, { answer: answer }) }));
14287
+ items.push(el('li', { text: fill(S.footnotes.axis, { version: f.axis.version }) + ' / ' + review + ' / ' + fill(own ? S.footnotes.reviewNeededBefore : S.footnotes.reviewNeeded, { answer: answer }) }));
14288
+ if (own) {
14289
+ items.push(el('li', null, [
14290
+ el('span', { text: fill(S.footnotes.thisReview, { triggers: own.triggers.join(', ') }) }),
14291
+ prose(own.summary, 'span'),
14292
+ reported()
14293
+ ]));
14294
+ }
14284
14295
  items.push(el('li', { text: fill(S.footnotes.judgedBy, { model: f.model }) }));
14285
14296
  items.push(el('li', { text: S.footnotes.reportedNote }));
14286
14297
  if (f.not_found.length > 0) {
@@ -16030,7 +16041,7 @@ function installExperimentalNotice(program2, names = EXPERIMENTAL_COMMANDS, writ
16030
16041
  function readBuildStamp() {
16031
16042
  if (false) return void 0;
16032
16043
  try {
16033
- return JSON.parse('{"version":"0.68.0","commit":"52aa4d4","committedAt":"2026-10-09T22:45:36+09:00"}');
16044
+ return JSON.parse('{"version":"0.68.2","commit":"db6d49f","committedAt":"2026-10-13T11:10:06+09:00"}');
16034
16045
  } catch {
16035
16046
  return void 0;
16036
16047
  }