@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/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 under a .basou/ directory. Exit
1921
- codes: 0 when the record was written, or with --dry-run when everything
1922
- checked out (nothing is written then); 1 when it was refused (nothing is
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 moved since the judgement, or basou was rebuilt or upgraded since that measurement. Measure again and judge that; nothing was written.`
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({
@@ -14137,7 +14138,8 @@ var BOARD_HTML = `<!doctype html>
14137
14138
  ]);
14138
14139
  }
14139
14140
 
14140
- function effort(b) {
14141
+ // live: the board measured now, which reads no declaration.
14142
+ function effort(b, live) {
14141
14143
  var e = b.effort;
14142
14144
  var tile = function (k, v, sub) {
14143
14145
  return el('div', { class: 'tile' }, [
@@ -14170,7 +14172,9 @@ var BOARD_HTML = `<!doctype html>
14170
14172
  children.push(dailyChart(days));
14171
14173
  children.push(cumulativeChart(days, e.milestones));
14172
14174
  }
14173
- children.push(e.milestones.length === 0
14175
+ children.push(live
14176
+ ? el('p', { class: 'muted', text: S.effort.milestonesNotRead })
14177
+ : e.milestones.length === 0
14174
14178
  ? el('p', { class: 'muted', text: S.effort.noMilestones })
14175
14179
  : el('ul', null, e.milestones.map(function (m) {
14176
14180
  return el('li', null, [m.date + ' ', el('b', { text: m.label }), el('span', { class: 'muted', text: ' ' + m.ref })]);
@@ -14328,7 +14332,9 @@ var BOARD_HTML = `<!doctype html>
14328
14332
  }
14329
14333
  setStatus('', false);
14330
14334
  var b = page.board;
14331
- [heading(b), summary(b), effort(b), matrix(b), lanes(b), composition(b), turns(b), footnotes(b)]
14335
+ // The board's own title, so that boards open in other tabs can be told apart.
14336
+ document.title = b.heading.title;
14337
+ [heading(b), summary(b), effort(b, false), matrix(b), lanes(b), composition(b), turns(b), footnotes(b)]
14332
14338
  .forEach(function (node) { root.appendChild(node); });
14333
14339
  }
14334
14340
 
@@ -14437,7 +14443,8 @@ var BOARD_HTML = `<!doctype html>
14437
14443
  S = d.strings;
14438
14444
  lang = d.language;
14439
14445
  document.documentElement.lang = lang;
14440
- document.title = S.pageTitle;
14446
+ // As the heading names it, so that boards open in other tabs can be told apart.
14447
+ document.title = d.live.heading.title;
14441
14448
  var drawn = ++liveDrawn;
14442
14449
  var nav = $('records');
14443
14450
  clear(nav);
@@ -14452,7 +14459,7 @@ var BOARD_HTML = `<!doctype html>
14452
14459
  clear(root);
14453
14460
  setStatus('', false);
14454
14461
  var l = d.live;
14455
- [liveHeading(l, why), effort(l), liveRepos(l), liveTrail(l), liveComponents(l), liveFootnotes(l, why)]
14462
+ [liveHeading(l, why), effort(l, true), liveRepos(l), liveTrail(l), liveComponents(l), liveFootnotes(l, why)]
14456
14463
  .forEach(function (node) { root.appendChild(node); });
14457
14464
  }
14458
14465
 
@@ -16038,7 +16045,7 @@ function installExperimentalNotice(program, names = EXPERIMENTAL_COMMANDS, write
16038
16045
  function readBuildStamp() {
16039
16046
  if (false) return void 0;
16040
16047
  try {
16041
- return JSON.parse('{"version":"0.68.1","commit":"e413cb0","committedAt":"2026-10-10T15:13:41+09:00"}');
16048
+ return JSON.parse('{"version":"0.68.3","commit":"42d94c5","committedAt":"2026-10-13T15:23:54+09:00"}');
16042
16049
  } catch {
16043
16050
  return void 0;
16044
16051
  }