@hexis-ai/engram-sdk 0.7.0 → 0.8.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/client.d.ts CHANGED
@@ -117,10 +117,15 @@ export declare class Engram {
117
117
  * `null` clears. Returns the materialized session post-update.
118
118
  */
119
119
  updateSession(id: string, patch: SessionUpdate): Promise<SessionEnvelope>;
120
- /** List recent sessions plus the deduped persons map across them. */
120
+ /**
121
+ * List recent sessions plus the deduped persons map across them.
122
+ * Sorted by `updated_at` desc (most recent activity first); pass
123
+ * `status` to filter by lifecycle state.
124
+ */
121
125
  listSessions(opts?: {
122
126
  limit?: number;
123
127
  channel?: string;
128
+ status?: "active" | "idle" | "completed";
124
129
  }): Promise<SessionListEnvelope>;
125
130
  /** Run a search. */
126
131
  search(req: SearchRequest): Promise<SearchEnvelope>;
package/dist/client.js CHANGED
@@ -57,13 +57,19 @@ export class Engram {
57
57
  async updateSession(id, patch) {
58
58
  return this.request("PATCH", `/v1/sessions/${encodeURIComponent(id)}`, patch);
59
59
  }
60
- /** List recent sessions plus the deduped persons map across them. */
60
+ /**
61
+ * List recent sessions plus the deduped persons map across them.
62
+ * Sorted by `updated_at` desc (most recent activity first); pass
63
+ * `status` to filter by lifecycle state.
64
+ */
61
65
  async listSessions(opts = {}) {
62
66
  const qs = new URLSearchParams();
63
67
  if (opts.limit !== undefined)
64
68
  qs.set("limit", String(opts.limit));
65
69
  if (opts.channel)
66
70
  qs.set("channel", opts.channel);
71
+ if (opts.status)
72
+ qs.set("status", opts.status);
67
73
  const tail = qs.toString();
68
74
  return this.request("GET", `/v1/sessions${tail ? `?${tail}` : ""}`);
69
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexis-ai/engram-sdk",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Host SDK for engram. Records agent session steps and ships them to an engram server.",
5
5
  "keywords": [
6
6
  "engram",