@sorbetai/runtime 0.1.0-alpha.16 → 0.1.0-alpha.18
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-CFmBr0LI.d.ts → catalog-BePaQpKY.d.ts} +1311 -1012
- package/dist/index.d.ts +232 -119
- package/dist/index.js +5392 -12112
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +33 -5
- package/dist/node.js +2 -1877
- 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-BePaQpKY.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
|
|
@@ -139,11 +139,32 @@ declare class JsonlUnitStore implements UnitStore {
|
|
|
139
139
|
readonly signal?: AbortSignal;
|
|
140
140
|
readonly unitKinds?: readonly UnitFact['kind'][];
|
|
141
141
|
}): AsyncGenerator<UnitInspectionPage>;
|
|
142
|
-
/**
|
|
142
|
+
/**
|
|
143
|
+
* Complete lifecycle scan without diagnostic budgets or historical content hydration.
|
|
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
|
|
146
|
+
* prior scan's committed `endOffset`; the prefix is trusted (append-only) so its global
|
|
147
|
+
* sequence check is skipped, while per-Session sequence still flows through the projection.
|
|
148
|
+
*/
|
|
143
149
|
readRecovery(options: {
|
|
144
|
-
readonly sessionId
|
|
150
|
+
readonly sessionId?: string;
|
|
151
|
+
readonly fromBytes?: number;
|
|
145
152
|
readonly signal?: AbortSignal;
|
|
153
|
+
readonly unitOnly?: boolean;
|
|
146
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>;
|
|
147
168
|
open(options?: UnitOpenOptions): Promise<OpenedUnitStore>;
|
|
148
169
|
/**
|
|
149
170
|
* Pins a complete observed prefix without writer ownership or tail repair.
|
|
@@ -196,5 +217,12 @@ declare function unsealUnit(journalPath: string, options?: {
|
|
|
196
217
|
/** Removes a seal that cannot be trusted because the Journal it describes is still present. */
|
|
197
218
|
declare function discardIncompleteSeal(journalPath: string): Promise<void>;
|
|
198
219
|
//#endregion
|
|
199
|
-
|
|
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 };
|
|
200
228
|
//# sourceMappingURL=node.d.ts.map
|