@morlay/session-rdb 0.1.2 → 0.1.4

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.
@@ -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-tZMKFRKi.mjs";
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-D5C8-TGs.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-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-D5C8-TGs.mjs";
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";
@@ -1,6 +1,6 @@
1
- import { et as SessionPersistenceRdb, jt as SESSION_DELETE_PATH } from "./log-tZMKFRKi.mjs";
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, registerSessionDeletion };
6
+ export { SESSION_DELETE_PATH };
package/dist/deletion.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { t as SESSION_DELETE_PATH } from "./routes-DGBlBE_I.mjs";
2
- import { r as registerSessionDeletion } from "./src-dsd2H70D.mjs";
2
+ import { r as registerSessionDeletion } from "./src-BmogreEz.mjs";
3
3
  export { SESSION_DELETE_PATH, registerSessionDeletion };
package/dist/export.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { Mt as SESSION_EXPORT_PATH, et as SessionPersistenceRdb } from "./log-tZMKFRKi.mjs";
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, registerSessionExport };
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-tZMKFRKi.mjs";
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, registerSessionGc };
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-tZMKFRKi.mjs";
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, SESSION_LOG_ARTIFACT_FILENAME, parseImportZip, parseJsonlArtifact, persistImport, registerSessionImport };
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-IQii6Muq.mjs";
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-tZMKFRKi.mjs";
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-CMMSn5kE.mjs";
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-dsd2H70D.mjs";
4
- import { n as SessionBranchRdbProvider, r as locateTurnEnd, t as SessionBranchRdb } from "./branch-IQii6Muq.mjs";
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 };
@@ -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
@@ -79,6 +79,7 @@ function rowToEvent(row) {
79
79
  }
80
80
  const SURFACE_EVENT_TYPES = /* @__PURE__ */ new Set([
81
81
  "system/message",
82
+ "developer/message",
82
83
  "user/message",
83
84
  "assistant/message",
84
85
  "tool/result"