@morlay/session-rdb 0.1.2 → 0.1.3
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/artifact.d.mts +1 -1
- package/dist/artifact.mjs +1 -1
- package/dist/{branch-IQii6Muq.mjs → branch-aiXPmnKC.mjs} +1 -1
- package/dist/deletion.d.mts +3 -3
- package/dist/deletion.mjs +1 -1
- package/dist/export.d.mts +3 -3
- package/dist/gc.d.mts +3 -3
- package/dist/import.d.mts +7 -7
- package/dist/import.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/invariant.d.mts +4 -5
- package/dist/{log-D5C8-TGs.mjs → log-DYxdjJ-l.mjs} +1 -0
- package/dist/{log-tZMKFRKi.d.mts → log-DYyxRh7j.d.mts} +2172 -99
- package/dist/rolldown-runtime-EAsCxrDo.mjs +14 -0
- package/dist/{sqlite-CMMSn5kE.mjs → sqlite-YCr2-Fov.mjs} +1 -1
- package/dist/{src-dsd2H70D.mjs → src-BmogreEz.mjs} +3 -3
- package/dist/storage.d.mts +5 -5
- package/dist/storage.mjs +1 -1
- package/dist/testing.d.mts +7 -7
- package/dist/testing.mjs +2 -4
- package/dist/usage.d.mts +1 -1
- package/package.json +2 -2
- package/src/log.ts +4 -0
package/dist/artifact.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as usageRowOf, Pt as SESSION_IMPORT_PATH, S as toJsonlArtifact, _ as sealOwnEvents, a as normalizeToCurrentShape, b as syncMeteringRanges, c as renameLegacyPtcEvents, d as repairReadView, f as repairRequestHeaders, g as scanRows, h as rowToMeta, i as needsShapeAdoption, l as repairAssistantSettlement, m as rowToEvent, n as OWN_EVENT_TYPES, o as orphanInboxSpliceSeqs, p as repairSurfaceOps, r as findSurfaceRepairs, s as recomputeReplaceProvenance, t as EventUsageRow, u as repairOrphanInboxSplices, v as sessionConflictRow, x as titleOfEventData, y as sessionInsertRow } from "./log-
|
|
1
|
+
import { C as usageRowOf, Pt as SESSION_IMPORT_PATH, S as toJsonlArtifact, _ as sealOwnEvents, a as normalizeToCurrentShape, b as syncMeteringRanges, c as renameLegacyPtcEvents, d as repairReadView, f as repairRequestHeaders, g as scanRows, h as rowToMeta, i as needsShapeAdoption, l as repairAssistantSettlement, m as rowToEvent, n as OWN_EVENT_TYPES, o as orphanInboxSpliceSeqs, p as repairSurfaceOps, r as findSurfaceRepairs, s as recomputeReplaceProvenance, t as EventUsageRow, u as repairOrphanInboxSplices, v as sessionConflictRow, x as titleOfEventData, y as sessionInsertRow } from "./log-DYyxRh7j.mjs";
|
|
2
2
|
import { SESSION_LOG_ARTIFACT_FILENAME, parseImportZip, parseJsonlArtifact, persistImport, registerSessionImport } from "./import.mjs";
|
|
3
3
|
export { EventUsageRow, OWN_EVENT_TYPES, SESSION_IMPORT_PATH, SESSION_LOG_ARTIFACT_FILENAME, findSurfaceRepairs, needsShapeAdoption, normalizeToCurrentShape, orphanInboxSpliceSeqs, parseImportZip, parseJsonlArtifact, persistImport, recomputeReplaceProvenance, registerSessionImport, renameLegacyPtcEvents, repairAssistantSettlement, repairOrphanInboxSplices, repairReadView, repairRequestHeaders, repairSurfaceOps, rowToEvent, rowToMeta, scanRows, sealOwnEvents, sessionConflictRow, sessionInsertRow, syncMeteringRanges, titleOfEventData, toJsonlArtifact, usageRowOf };
|
package/dist/artifact.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { i as SESSION_IMPORT_PATH } from "./routes-DGBlBE_I.mjs";
|
|
2
|
-
import { S as usageRowOf, _ as sessionConflictRow, a as orphanInboxSpliceSeqs, b as titleOfEventData, c as repairAssistantSettlement, d as repairRequestHeaders, f as repairSurfaceOps, g as sealOwnEvents, h as scanRows, i as normalizeToCurrentShape, l as repairOrphanInboxSplices, m as rowToMeta, n as findSurfaceRepairs, o as recomputeReplaceProvenance, p as rowToEvent, r as needsShapeAdoption, s as renameLegacyPtcEvents, t as OWN_EVENT_TYPES, u as repairReadView, v as sessionInsertRow, x as toJsonlArtifact, y as syncMeteringRanges } from "./log-
|
|
2
|
+
import { S as usageRowOf, _ as sessionConflictRow, a as orphanInboxSpliceSeqs, b as titleOfEventData, c as repairAssistantSettlement, d as repairRequestHeaders, f as repairSurfaceOps, g as sealOwnEvents, h as scanRows, i as normalizeToCurrentShape, l as repairOrphanInboxSplices, m as rowToMeta, n as findSurfaceRepairs, o as recomputeReplaceProvenance, p as rowToEvent, r as needsShapeAdoption, s as renameLegacyPtcEvents, t as OWN_EVENT_TYPES, u as repairReadView, v as sessionInsertRow, x as toJsonlArtifact, y as syncMeteringRanges } from "./log-DYxdjJ-l.mjs";
|
|
3
3
|
import { SESSION_LOG_ARTIFACT_FILENAME, parseImportZip, parseJsonlArtifact, persistImport, registerSessionImport } from "./import.mjs";
|
|
4
4
|
export { OWN_EVENT_TYPES, SESSION_IMPORT_PATH, SESSION_LOG_ARTIFACT_FILENAME, findSurfaceRepairs, needsShapeAdoption, normalizeToCurrentShape, orphanInboxSpliceSeqs, parseImportZip, parseJsonlArtifact, persistImport, recomputeReplaceProvenance, registerSessionImport, renameLegacyPtcEvents, repairAssistantSettlement, repairOrphanInboxSplices, repairReadView, repairRequestHeaders, repairSurfaceOps, rowToEvent, rowToMeta, scanRows, sealOwnEvents, sessionConflictRow, sessionInsertRow, syncMeteringRanges, titleOfEventData, toJsonlArtifact, usageRowOf };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as repairRequestHeaders, h as scanRows, i as normalizeToCurrentShape, m as rowToMeta } from "./log-
|
|
1
|
+
import { d as repairRequestHeaders, h as scanRows, i as normalizeToCurrentShape, m as rowToMeta } from "./log-DYxdjJ-l.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { SESSION_FORMAT_VERSION, SessionLogOffset } from "@deepseek-ai/dsh-session";
|
|
4
4
|
import { createSessionFormatCatalogWithChildren } from "@deepseek-ai/dsh-session-format-catalog";
|
package/dist/deletion.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { et as SessionPersistenceRdb, jt as SESSION_DELETE_PATH } from "./log-
|
|
1
|
+
import { et as SessionPersistenceRdb, jt as SESSION_DELETE_PATH } from "./log-DYyxRh7j.mjs";
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
3
|
//#region src/deletion.d.ts
|
|
4
|
-
declare function registerSessionDeletion(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
4
|
+
export declare function registerSessionDeletion(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { SESSION_DELETE_PATH
|
|
6
|
+
export { SESSION_DELETE_PATH };
|
package/dist/deletion.mjs
CHANGED
package/dist/export.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Mt as SESSION_EXPORT_PATH, et as SessionPersistenceRdb } from "./log-
|
|
1
|
+
import { Mt as SESSION_EXPORT_PATH, et as SessionPersistenceRdb } from "./log-DYyxRh7j.mjs";
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
3
|
//#region src/export.d.ts
|
|
4
|
-
declare function registerSessionExport(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
4
|
+
export declare function registerSessionExport(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { SESSION_EXPORT_PATH
|
|
6
|
+
export { SESSION_EXPORT_PATH };
|
package/dist/gc.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Nt as SESSION_GC_PATH, et as SessionPersistenceRdb } from "./log-
|
|
1
|
+
import { Nt as SESSION_GC_PATH, et as SessionPersistenceRdb } from "./log-DYyxRh7j.mjs";
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
3
|
//#region src/gc.d.ts
|
|
4
|
-
declare function registerSessionGc(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
4
|
+
export declare function registerSessionGc(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { SESSION_GC_PATH
|
|
6
|
+
export { SESSION_GC_PATH };
|
package/dist/import.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Pt as SESSION_IMPORT_PATH, et as SessionPersistenceRdb } from "./log-
|
|
1
|
+
import { Pt as SESSION_IMPORT_PATH, et as SessionPersistenceRdb } from "./log-DYyxRh7j.mjs";
|
|
2
2
|
import { SessionStorageMetadata } from "@deepseek-ai/dsh-session-persistence";
|
|
3
3
|
import { Session, SessionEvent, SessionId } from "@deepseek-ai/dsh-session";
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
5
5
|
//#region src/import.d.ts
|
|
6
|
-
declare const SESSION_LOG_ARTIFACT_FILENAME = "session.jsonl";
|
|
7
|
-
declare function parseJsonlArtifact(content: string): SessionStorageMetadata & {
|
|
6
|
+
export declare const SESSION_LOG_ARTIFACT_FILENAME = "session.jsonl";
|
|
7
|
+
export declare function parseJsonlArtifact(content: string): SessionStorageMetadata & {
|
|
8
8
|
events: SessionEvent[];
|
|
9
9
|
};
|
|
10
|
-
declare function parseImportZip(zip: Uint8Array): Promise<SessionStorageMetadata & {
|
|
10
|
+
export declare function parseImportZip(zip: Uint8Array): Promise<SessionStorageMetadata & {
|
|
11
11
|
events: SessionEvent[];
|
|
12
12
|
}>;
|
|
13
|
-
declare function persistImport(persistence: SessionPersistenceRdb, branch: {
|
|
13
|
+
export declare function persistImport(persistence: SessionPersistenceRdb, branch: {
|
|
14
14
|
rewind(id: SessionId, toBoundary: number): Promise<unknown>;
|
|
15
15
|
resetLiveDerivedState?(session: Session): void;
|
|
16
16
|
} | undefined, imported: SessionStorageMetadata & {
|
|
@@ -18,6 +18,6 @@ declare function persistImport(persistence: SessionPersistenceRdb, branch: {
|
|
|
18
18
|
}, targetId?: SessionId, sessions?: {
|
|
19
19
|
get(id: SessionId): Session | undefined;
|
|
20
20
|
}, stopLoop?: (id: SessionId) => Promise<void>): Promise<SessionId>;
|
|
21
|
-
declare function registerSessionImport(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
21
|
+
export declare function registerSessionImport(ctx: Context, persistence: SessionPersistenceRdb): void;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { SESSION_IMPORT_PATH
|
|
23
|
+
export { SESSION_IMPORT_PATH };
|
package/dist/import.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as SESSION_IMPORT_PATH } from "./routes-DGBlBE_I.mjs";
|
|
2
|
-
import { i as replaceLiveSessionLog, l as restoreCatalog } from "./branch-
|
|
2
|
+
import { i as replaceLiveSessionLog, l as restoreCatalog } from "./branch-aiXPmnKC.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { SESSION_FORMAT_VERSION, SessionLogOffset } from "@deepseek-ai/dsh-session";
|
|
5
5
|
import { parseSessionFormatLogFilename } from "@deepseek-ai/dsh-session-format";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as SessionDeletionErrorCode, Ft as SESSION_ROWS_PATH, Q as SessionDeletionError, X as ProjectionCacheOptions, Y as Config, Z as ResolvedConfig, et as SessionPersistenceRdb, it as locateTurnEnd, nt as SessionBranchRdb, ot as SessionRowsItem, pt as SCHEMA_VERSION, rt as SessionBranchRdbProvider, st as SessionRowsValue, tt as SessionPersistenceRdbInternals } from "./log-
|
|
1
|
+
import { $ as SessionDeletionErrorCode, Ft as SESSION_ROWS_PATH, Q as SessionDeletionError, X as ProjectionCacheOptions, Y as Config, Z as ResolvedConfig, et as SessionPersistenceRdb, it as locateTurnEnd, nt as SessionBranchRdb, ot as SessionRowsItem, pt as SCHEMA_VERSION, rt as SessionBranchRdbProvider, st as SessionRowsValue, tt as SessionPersistenceRdbInternals } from "./log-DYyxRh7j.mjs";
|
|
2
2
|
export { Config, ProjectionCacheOptions, ResolvedConfig, SCHEMA_VERSION, SESSION_ROWS_PATH, SessionBranchRdb, SessionBranchRdbProvider, SessionDeletionError, SessionDeletionErrorCode, SessionPersistenceRdb, SessionPersistenceRdb as default, SessionPersistenceRdbInternals, type SessionRowsItem, type SessionRowsValue, locateTurnEnd };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as SCHEMA_VERSION } from "./sqlite-
|
|
1
|
+
import { o as SCHEMA_VERSION } from "./sqlite-YCr2-Fov.mjs";
|
|
2
2
|
import { a as SESSION_ROWS_PATH } from "./routes-DGBlBE_I.mjs";
|
|
3
|
-
import { n as SessionPersistenceRdb, t as SessionDeletionError } from "./src-
|
|
4
|
-
import { n as SessionBranchRdbProvider, r as locateTurnEnd, t as SessionBranchRdb } from "./branch-
|
|
3
|
+
import { n as SessionPersistenceRdb, t as SessionDeletionError } from "./src-BmogreEz.mjs";
|
|
4
|
+
import { n as SessionBranchRdbProvider, r as locateTurnEnd, t as SessionBranchRdb } from "./branch-aiXPmnKC.mjs";
|
|
5
5
|
export { SCHEMA_VERSION, SESSION_ROWS_PATH, SessionBranchRdb, SessionBranchRdbProvider, SessionDeletionError, SessionPersistenceRdb, SessionPersistenceRdb as default, locateTurnEnd };
|
package/dist/invariant.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
2
|
//#region src/invariant.d.ts
|
|
3
|
-
declare const name = "session-rdb-invariant";
|
|
4
|
-
declare const inject: string[];
|
|
5
|
-
declare const apply: (ctx: Context) => Promise<() => void>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { apply, inject, name };
|
|
3
|
+
export declare const name = "session-rdb-invariant";
|
|
4
|
+
export declare const inject: string[];
|
|
5
|
+
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
6
|
+
//#endregion
|