@sorbetai/runtime 0.1.0-alpha.17 → 0.1.0-alpha.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/dist/{contracts-D0cczmsb.d.ts → catalog-AETfQ-ha.d.ts} +1375 -1078
- package/dist/index.d.ts +232 -134
- package/dist/index.js +5400 -12142
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +26 -4
- package/dist/node.js +2 -1903
- package/dist/units-DoehpsMM.js +12775 -0
- package/dist/units-DoehpsMM.js.map +1 -0
- package/package.json +7 -7
- package/dist/node.js.map +0 -1
- package/dist/observation-DyvvxD35.js +0 -2713
- package/dist/observation-DyvvxD35.js.map +0 -1
package/dist/node.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as JournalStore, Lt as JournalSubscription, Mt as JournalPage, Pt as JournalReadOptions, Rt as JournalSubscriptionOptions, T as UnitSnapshotFile, _ as UnitReader, a as OpenedUnitStore, b as UnitSnapshotWrite, ft as JournalRecoveryFact, kt as JournalFact, l as UnitFact, m as UnitOpenOptions, nt as RuntimeObservationPort, p as UnitInspectionPage, t as UnitSession, wt as JournalAppendOptions, x as UnitStore, y as UnitSnapshot, zt as JournalWrite } from "./catalog-AETfQ-ha.js";
|
|
2
2
|
import * as s from "@earendil-works/pi-schema";
|
|
3
|
-
import "@sorbetai/schema";
|
|
4
3
|
import "@sorbetai/context";
|
|
4
|
+
import "@sorbetai/schema";
|
|
5
5
|
import { ArtifactRef, ArtifactStore } from "@sorbetai/artifacts";
|
|
6
6
|
|
|
7
7
|
//#region src/journal/jsonl-store.d.ts
|
|
@@ -141,7 +141,8 @@ declare class JsonlUnitStore implements UnitStore {
|
|
|
141
141
|
}): AsyncGenerator<UnitInspectionPage>;
|
|
142
142
|
/**
|
|
143
143
|
* Complete lifecycle scan without diagnostic budgets or historical content hydration.
|
|
144
|
-
* Omit `sessionId` to fold every Session in the Unit in one pass
|
|
144
|
+
* Omit `sessionId` to fold every Session in the Unit in one pass, or set `unitOnly` when only
|
|
145
|
+
* Unit facts are projected. `fromBytes` resumes from a
|
|
145
146
|
* prior scan's committed `endOffset`; the prefix is trusted (append-only) so its global
|
|
146
147
|
* sequence check is skipped, while per-Session sequence still flows through the projection.
|
|
147
148
|
*/
|
|
@@ -149,7 +150,21 @@ declare class JsonlUnitStore implements UnitStore {
|
|
|
149
150
|
readonly sessionId?: string;
|
|
150
151
|
readonly fromBytes?: number;
|
|
151
152
|
readonly signal?: AbortSignal;
|
|
153
|
+
readonly unitOnly?: boolean;
|
|
152
154
|
}): AsyncGenerator<UnitInspectionPage>;
|
|
155
|
+
/**
|
|
156
|
+
* The persisted projection accelerator, if any. Reading and validating it never fails the
|
|
157
|
+
* caller's open: a missing, foreign, stale or unprovable file yields a candidate whose
|
|
158
|
+
* `validate()` reports false, or no candidate at all.
|
|
159
|
+
*/
|
|
160
|
+
readSnapshot(): Promise<UnitSnapshot | undefined>;
|
|
161
|
+
/**
|
|
162
|
+
* Replaces the accelerator. Best-effort by contract: callers invoke it only after the
|
|
163
|
+
* anchor's frame is durable, and a failure loses the cache rather than the commit.
|
|
164
|
+
*/
|
|
165
|
+
writeSnapshot(write: UnitSnapshotWrite): Promise<void>;
|
|
166
|
+
/** Snapshots are disposable: deleting one is always legal. */
|
|
167
|
+
discardSnapshot(): Promise<void>;
|
|
153
168
|
open(options?: UnitOpenOptions): Promise<OpenedUnitStore>;
|
|
154
169
|
/**
|
|
155
170
|
* Pins a complete observed prefix without writer ownership or tail repair.
|
|
@@ -202,5 +217,12 @@ declare function unsealUnit(journalPath: string, options?: {
|
|
|
202
217
|
/** Removes a seal that cannot be trusted because the Journal it describes is still present. */
|
|
203
218
|
declare function discardIncompleteSeal(journalPath: string): Promise<void>;
|
|
204
219
|
//#endregion
|
|
205
|
-
|
|
220
|
+
//#region src/units/read-sessions.d.ts
|
|
221
|
+
interface ReadUnitSessionsOptions extends JsonlUnitStoreOptions {
|
|
222
|
+
readonly signal?: AbortSignal;
|
|
223
|
+
}
|
|
224
|
+
/** Reads and folds one Unit without opening a Runtime or claiming its writer. */
|
|
225
|
+
declare function readUnitSessions(options: ReadUnitSessionsOptions): Promise<readonly UnitSession[]>;
|
|
226
|
+
//#endregion
|
|
227
|
+
export { JournalWriterLease, JsonlJournalIncrementalPage, JsonlJournalReader, JsonlJournalReaderOptions, JsonlJournalRecoveryPage, JsonlJournalStore, JsonlJournalStoreOptions, JsonlUnitStore, JsonlUnitStoreOptions, type ReadUnitSessionsOptions, SealUnitResult, SealedUnitLayout, SealedUnitManifest, UnitSnapshot, UnitSnapshotFile, UnitSnapshotWrite, acquireJournalWriterLease, discardIncompleteSeal, isUnitSealed, readJsonlJournal, readSealedUnitManifest, readUnitSessions, sealUnit, sealedUnitLayout, unsealUnit };
|
|
206
228
|
//# sourceMappingURL=node.d.ts.map
|