@hexis-ai/engram-server 0.2.0 → 0.4.0

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/server.js CHANGED
@@ -53,6 +53,7 @@ export function createServer(opts) {
53
53
  sessions: "POST/GET /v1/sessions",
54
54
  sessionById: "GET /v1/sessions/:id",
55
55
  events: "POST /v1/sessions/:id/events",
56
+ sessionEvents: "GET /v1/sessions/:id/events",
56
57
  search: "POST /v1/search",
57
58
  persons: "POST/GET /v1/persons",
58
59
  personById: "GET/PUT/PATCH /v1/persons/:id",
package/dist/storage.d.ts CHANGED
@@ -18,6 +18,14 @@ export interface StorageAdapter {
18
18
  appendEvents(sessionId: string, events: SessionEvent[]): Promise<void>;
19
19
  /** Materialize a session (events folded into Session shape). */
20
20
  getSession(sessionId: string): Promise<Session | null>;
21
+ /**
22
+ * Raw event log for a session, ordered by `seq`. Unlike `getSession`,
23
+ * this does not fold events — callers get per-event timestamps and the
24
+ * participant / title / end events as recorded. Returns `null` when the
25
+ * session doesn't exist (distinct from an existing session with no
26
+ * events, which returns `[]`).
27
+ */
28
+ getSessionEvents(sessionId: string): Promise<SessionEvent[] | null>;
21
29
  /** List recent sessions. */
22
30
  listSessions(opts: {
23
31
  limit: number;