@basou/cli 0.54.0 → 0.55.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 CHANGED
@@ -139,6 +139,7 @@ import {
139
139
  LOCAL_CLI_EVENT_SOURCE,
140
140
  linkYamlFile,
141
141
  loadApproval,
142
+ normalizeApprovalTimestamps,
142
143
  prefixedUlid,
143
144
  readSessionYaml,
144
145
  readYamlFile,
@@ -226,7 +227,7 @@ async function readApprovalListRecord(paths, id, location, now) {
226
227
  console.error(`Skipped ${shortId(id)}: ${describeReadError(error)}`);
227
228
  return null;
228
229
  }
229
- const parse = ApprovalSchema.safeParse(raw);
230
+ const parse = ApprovalSchema.safeParse(normalizeApprovalTimestamps(raw));
230
231
  if (!parse.success) {
231
232
  console.error(`Skipped ${shortId(id)}: invalid approval schema`);
232
233
  return null;
@@ -323,7 +324,7 @@ async function doRunApprovalResolve(idInput, options, ctx, decision) {
323
324
  }
324
325
  throw new Error("Failed to read approval", { cause: error });
325
326
  }
326
- const approvalParse = ApprovalSchema.safeParse(pendingRaw);
327
+ const approvalParse = ApprovalSchema.safeParse(normalizeApprovalTimestamps(pendingRaw));
327
328
  if (!approvalParse.success) {
328
329
  throw new Error("Failed to read approval", { cause: approvalParse.error });
329
330
  }
@@ -10025,6 +10026,7 @@ import {
10025
10026
  importSessionFromJson as importSessionFromJson2,
10026
10027
  LOCAL_CLI_EVENT_SOURCE as LOCAL_CLI_EVENT_SOURCE4,
10027
10028
  loadSessionEntries as loadSessionEntries2,
10029
+ normalizeSessionTimestamps,
10028
10030
  readAllEvents,
10029
10031
  readManifest as readManifest11,
10030
10032
  readObservedDuration,
@@ -10147,7 +10149,7 @@ async function doRunSessionShow(idInput, options, ctx) {
10147
10149
  let session;
10148
10150
  try {
10149
10151
  const raw = await readYamlFile7(sessionYamlPath);
10150
- session = SessionSchema3.parse(raw);
10152
+ session = SessionSchema3.parse(normalizeSessionTimestamps(raw));
10151
10153
  } catch (error) {
10152
10154
  if (findErrorCode12(error, "ENOENT")) {
10153
10155
  throw new Error(`Session not found: ${idInput}`);
@@ -14111,7 +14113,7 @@ async function assertWorkspaceInitialized15(basouRoot) {
14111
14113
  function readBuildStamp() {
14112
14114
  if (false) return void 0;
14113
14115
  try {
14114
- return JSON.parse('{"version":"0.54.0","commit":"ac2e5dd","committedAt":"2026-09-25T23:04:16+09:00"}');
14116
+ return JSON.parse('{"version":"0.55.0","commit":"c59daeb","committedAt":"2026-09-30T10:04:37+09:00"}');
14115
14117
  } catch {
14116
14118
  return void 0;
14117
14119
  }