billion-context-dsh 0.2.18 → 0.2.19
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/README.en.md +2 -2
- package/README.md +2 -2
- package/dist/index.js +44 -26
- package/dist/index.js.map +1 -1
- package/dist/region.d.ts +13 -1
- package/package.json +1 -1
package/dist/region.d.ts
CHANGED
|
@@ -39,7 +39,19 @@ export interface AcpBlockLedgerEntry {
|
|
|
39
39
|
}
|
|
40
40
|
/** The open turn number, or null when the log ends between turns. */
|
|
41
41
|
export declare function findOpenTurn(events: readonly SessionEvent[]): number | null;
|
|
42
|
-
/**
|
|
42
|
+
/**
|
|
43
|
+
* Reject a second concurrent compaction for the same session.
|
|
44
|
+
*
|
|
45
|
+
* Compaction is synchronous and a session is single-writer, so a
|
|
46
|
+
* `compaction/start` with NO matching `compaction/end` in the durable log can
|
|
47
|
+
* only be a stale leftover from a prior run that died mid-write (a hard kill,
|
|
48
|
+
* not a caught throw — every caught throw is paired with a compensating
|
|
49
|
+
* `compaction/end` in runCompactionTransaction). Such a leftover must NOT
|
|
50
|
+
* permanently block every later compress call: this treats it as stale,
|
|
51
|
+
* surfaces it once, and lets a new compaction proceed. The old "already
|
|
52
|
+
* active" throw only fired when a genuine concurrent compaction existed,
|
|
53
|
+
* which the synchronous single-writer premise makes impossible.
|
|
54
|
+
*/
|
|
43
55
|
export declare function assertNoActiveCompaction(events: readonly SessionEvent[]): void;
|
|
44
56
|
/**
|
|
45
57
|
* A requested range whose EVERY live message was already shadowed by one or
|
package/package.json
CHANGED