synartesis 0.3.0 → 0.3.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  What changed, and why it mattered. Dates are release dates.
4
4
 
5
+ ## 0.3.1 — 2026-08-30
6
+
7
+ ### Fixed
8
+
9
+ - **`--older-than` no longer crashes on a number too large to be a date.**
10
+ `Number.isFinite` is true for 1e9, but a cutoff that many days back sits
11
+ before the earliest date a `Date` can hold, so `toISOString` threw and
12
+ `synartesis prune --older-than 999999999` answered `Invalid time value` and
13
+ exited 1. That names neither the flag nor the problem, and exit 1 means
14
+ "halted or refused" — so it read as a prune that had failed partway through
15
+ rather than a mistyped argument. Bounded to 0–36500 days, with the range in
16
+ the message and exit 2 where it belongs.
17
+ - **A journal that cannot be read is reported as unknown, not as `1 kB`.**
18
+ `sizeOf` could never throw, because the function it called already swallowed
19
+ the error and returned zero, so the "unknown" branch was unreachable and a
20
+ missing file was reported at a confident wrong size.
21
+
22
+ ### Documentation
23
+
24
+ - `synartesis prune` is on the landing page, which listed eleven commands and
25
+ not the twelfth.
26
+ - The doc comment promising that a failed journal write is never swallowed sits
27
+ on the method that does that again, rather than on `prunableRuns`, which is a
28
+ read and promises no such thing.
29
+
5
30
  ## 0.3.0 — 2026-08-29
6
31
 
7
32
  ### Security
@@ -615,10 +615,6 @@ var SqliteJournal = class {
615
615
  close() {
616
616
  this.#db.close();
617
617
  }
618
- /**
619
- * A failed journal write means the record of what the agent did is
620
- * incomplete. It is never swallowed and never merely logged.
621
- */
622
618
  prunableRuns(before) {
623
619
  return this.#run(
624
620
  "prunableRuns",
@@ -674,6 +670,10 @@ var SqliteJournal = class {
674
670
  this.#db.pragma("wal_checkpoint(TRUNCATE)");
675
671
  });
676
672
  }
673
+ /**
674
+ * A failed journal write means the record of what the agent did is
675
+ * incomplete. It is never swallowed and never merely logged.
676
+ */
677
677
  #run(operation, body) {
678
678
  try {
679
679
  return body();
@@ -1479,4 +1479,4 @@ export {
1479
1479
  observeState,
1480
1480
  connectStdioUpstream
1481
1481
  };
1482
- //# sourceMappingURL=chunk-FIIKQECN.js.map
1482
+ //# sourceMappingURL=chunk-COIPI27I.js.map