@unieai/rabi-session-persistence-jsonl 0.2.1-rc.3 → 0.2.2-rc.5
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/lib/index.js +12 -4
- package/lib/types/zstd.d.ts +1 -1
- package/lib/worker.cjs +1357 -1030
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +12 -9
- package/src/catalog-migration.ts +92 -0
- package/src/format.ts +538 -0
- package/src/generation.ts +1059 -0
- package/src/index.ts +1839 -0
- package/src/lease.ts +135 -0
- package/src/migration-verifier.ts +198 -0
- package/src/storage.ts +571 -0
- package/src/testing/generation.ts +16 -0
- package/src/win32.ts +208 -0
- package/src/worker.ts +56 -0
- package/src/zstd-private-decoder.ts +178 -0
- package/src/zstd-public-decoder.ts +40 -0
- package/src/zstd.ts +156 -0
package/lib/index.js
CHANGED
|
@@ -1146,7 +1146,7 @@ function privateZstdStream(stream) {
|
|
|
1146
1146
|
const candidate = stream;
|
|
1147
1147
|
const handle = candidate._handle;
|
|
1148
1148
|
const errorKey = Reflect.ownKeys(stream).find((key) => typeof key === "symbol" && key.description === "kError");
|
|
1149
|
-
/* v8 ignore next -- one test runtime exposes one Node-private shape; the Node
|
|
1149
|
+
/* v8 ignore next -- one test runtime exposes one Node-private shape; the Node 24/26 matrix checks compatibility. */
|
|
1150
1150
|
if (typeof handle !== "object" || handle === null || typeof handle.writeSync !== "function" || !(candidate._writeState instanceof Uint32Array) || candidate._writeState.length < 2 || typeof candidate._defaultFlushFlag !== "number" || errorKey === void 0 || candidate[errorKey] !== null) return void 0;
|
|
1151
1151
|
return {
|
|
1152
1152
|
stream,
|
|
@@ -1383,7 +1383,7 @@ async function decompressZstdFrame(input) {
|
|
|
1383
1383
|
return zstdDecompressAsync(input);
|
|
1384
1384
|
}
|
|
1385
1385
|
/**
|
|
1386
|
-
* Select the shared private decoder when the running Node
|
|
1386
|
+
* Select the shared private decoder when the running Node 24/26 shape is
|
|
1387
1387
|
* compatible, otherwise preserve correctness with the public one-shot API.
|
|
1388
1388
|
* @returns a synchronous decoder with an implementation-independent lifecycle.
|
|
1389
1389
|
*/
|
|
@@ -2586,7 +2586,11 @@ var JsonlSessionPersistence = class extends SessionPersistence {
|
|
|
2586
2586
|
return {
|
|
2587
2587
|
...metadata,
|
|
2588
2588
|
revision: selected.sourceVersion < SESSION_FORMAT_VERSION ? SessionPersistenceRevision(`${fileRevision(identity)}:${await this.historicalCorpusRevision(options?.signal)}`) : fileRevision(identity),
|
|
2589
|
-
sizeBytes: Number(identity.size)
|
|
2589
|
+
sizeBytes: Number(identity.size),
|
|
2590
|
+
location: {
|
|
2591
|
+
kind: "jsonl",
|
|
2592
|
+
path: selected.sourcePath
|
|
2593
|
+
}
|
|
2590
2594
|
};
|
|
2591
2595
|
} catch (error) {
|
|
2592
2596
|
options?.signal?.throwIfAborted();
|
|
@@ -2630,7 +2634,11 @@ var JsonlSessionPersistence = class extends SessionPersistence {
|
|
|
2630
2634
|
header: artifact.header,
|
|
2631
2635
|
formatStatus: artifact.formatStatus,
|
|
2632
2636
|
revision: artifact.sourceVersion < SESSION_FORMAT_VERSION ? SessionPersistenceRevision(`${fileRevision(identity)}:${corpusRevision}`) : fileRevision(identity),
|
|
2633
|
-
sizeBytes: Number(identity.size)
|
|
2637
|
+
sizeBytes: Number(identity.size),
|
|
2638
|
+
location: {
|
|
2639
|
+
kind: "jsonl",
|
|
2640
|
+
path: artifact.path
|
|
2641
|
+
}
|
|
2634
2642
|
});
|
|
2635
2643
|
}
|
|
2636
2644
|
for (const [id, entry] of pending) if (!listed.has(id)) snapshots.push({
|
package/lib/types/zstd.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export interface ZstdFrameDecoder {
|
|
|
52
52
|
close(): void;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
* Select the shared private decoder when the running Node
|
|
55
|
+
* Select the shared private decoder when the running Node 24/26 shape is
|
|
56
56
|
* compatible, otherwise preserve correctness with the public one-shot API.
|
|
57
57
|
* @returns a synchronous decoder with an implementation-independent lifecycle.
|
|
58
58
|
*/
|