@basou/cli 0.55.0 → 0.57.0
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 +11 -6
- package/dist/index.js.map +1 -1
- package/dist/program.js +11 -6
- package/dist/program.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3154,7 +3154,7 @@ async function importDerivedSessions(paths, manifest, options, sourceKind, candi
|
|
|
3154
3154
|
dryRun: options.dryRun === true
|
|
3155
3155
|
});
|
|
3156
3156
|
if (outcome.status === "skipped") {
|
|
3157
|
-
const detail = outcome.reason === "prior_events_unreadable" ? "prior events.jsonl has unreadable lines" : outcome.reason === "prior_chain_broken" ? "prior events.jsonl failed hash-chain verification (run 'basou verify')" : "source changed in a non-append way (derived events would be dropped)";
|
|
3157
|
+
const detail = outcome.reason === "prior_events_unreadable" ? "prior events.jsonl has unreadable lines" : outcome.reason === "prior_chain_broken" ? "prior events.jsonl failed hash-chain verification (run 'basou verify')" : outcome.reason === "prior_yaml_invalid" ? "prior session.yaml does not load as a whole document" : "source changed in a non-append way (derived events would be dropped)";
|
|
3158
3158
|
console.error(`Import: ${externalId} ${detail}; re-import skipped`);
|
|
3159
3159
|
counts.skippedUnverifiable++;
|
|
3160
3160
|
continue;
|
|
@@ -12085,22 +12085,25 @@ async function doRunVerify(options, ctx) {
|
|
|
12085
12085
|
status: verdict.status,
|
|
12086
12086
|
event_count: verdict.eventCount,
|
|
12087
12087
|
...verdict.reason !== void 0 ? { reason: verdict.reason } : {},
|
|
12088
|
-
...verdict.line !== void 0 ? { line: verdict.line } : {}
|
|
12088
|
+
...verdict.line !== void 0 ? { line: verdict.line } : {},
|
|
12089
|
+
...verdict.sessionYamlInvalid === true ? { session_yaml_invalid: true } : {}
|
|
12089
12090
|
});
|
|
12090
12091
|
}
|
|
12091
12092
|
const tamperedCount = rows.filter((r) => r.status === "tampered").length;
|
|
12093
|
+
const unsupportedCount = rows.filter((r) => r.status === "unsupported").length;
|
|
12092
12094
|
if (options.json === true) {
|
|
12093
12095
|
console.log(JSON.stringify(rows, null, 2));
|
|
12094
12096
|
} else {
|
|
12095
12097
|
for (const row of rows) {
|
|
12096
|
-
|
|
12098
|
+
const note = row.session_yaml_invalid === true ? " \u2014 session.yaml does not load as a whole document (session_yaml_invalid)" : "";
|
|
12099
|
+
console.log(`${row.session_id} ${renderVerdict(row)}${note}`);
|
|
12097
12100
|
}
|
|
12098
12101
|
const tally = (status) => rows.filter((r) => r.status === status).length;
|
|
12099
12102
|
console.log(
|
|
12100
|
-
`Sessions: ${rows.length} total \u2014 ${tally("verified")} verified, ${tally("unchained")} unchained, ${tally("empty")} empty, ${tally("incomplete")} incomplete, ${tally("in_progress")} in_progress, ${tamperedCount} tampered`
|
|
12103
|
+
`Sessions: ${rows.length} total \u2014 ${tally("verified")} verified, ${tally("unchained")} unchained, ${tally("empty")} empty, ${tally("incomplete")} incomplete, ${tally("in_progress")} in_progress, ${unsupportedCount} unsupported, ${tamperedCount} tampered`
|
|
12101
12104
|
);
|
|
12102
12105
|
}
|
|
12103
|
-
if (tamperedCount > 0) {
|
|
12106
|
+
if (tamperedCount > 0 || unsupportedCount > 0) {
|
|
12104
12107
|
process.exitCode = 1;
|
|
12105
12108
|
}
|
|
12106
12109
|
}
|
|
@@ -12114,6 +12117,8 @@ function renderVerdict(row) {
|
|
|
12114
12117
|
return "incomplete (session.yaml missing; re-import to repair)";
|
|
12115
12118
|
case "in_progress":
|
|
12116
12119
|
return `in_progress (${row.event_count} events; live session, anchor written at finalize)`;
|
|
12120
|
+
case "unsupported":
|
|
12121
|
+
return "unsupported (session.yaml written by a newer basou; upgrade basou to verify it)";
|
|
12117
12122
|
case "unchained":
|
|
12118
12123
|
return "unchained (session created before event-log chaining)";
|
|
12119
12124
|
case "empty":
|
|
@@ -14113,7 +14118,7 @@ async function assertWorkspaceInitialized15(basouRoot) {
|
|
|
14113
14118
|
function readBuildStamp() {
|
|
14114
14119
|
if (false) return void 0;
|
|
14115
14120
|
try {
|
|
14116
|
-
return JSON.parse('{"version":"0.
|
|
14121
|
+
return JSON.parse('{"version":"0.57.0","commit":"d86f273","committedAt":"2026-09-30T19:10:55+09:00"}');
|
|
14117
14122
|
} catch {
|
|
14118
14123
|
return void 0;
|
|
14119
14124
|
}
|