novyx 2.2.0 → 2.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/index.d.mts CHANGED
@@ -56,6 +56,7 @@ declare class NovyxSession {
56
56
  space_id?: string;
57
57
  metadata?: Record<string, any>;
58
58
  ttl_seconds?: number;
59
+ auto_link?: boolean;
59
60
  }): Promise<Record<string, any>>;
60
61
  recall(query: string, opts?: {
61
62
  limit?: number;
@@ -102,6 +103,7 @@ declare class Novyx {
102
103
  space_id?: string;
103
104
  metadata?: Record<string, any>;
104
105
  ttl_seconds?: number;
106
+ auto_link?: boolean;
105
107
  }): Promise<Record<string, any>>;
106
108
  recall(query: string, opts?: {
107
109
  limit?: number;
@@ -161,6 +163,7 @@ declare class Novyx {
161
163
  usage(): Promise<Record<string, any>>;
162
164
  plans(): Promise<Record<string, any>[]>;
163
165
  health(): Promise<Record<string, any>>;
166
+ contextNow(): Promise<Record<string, any>>;
164
167
  session(sessionId: string): NovyxSession;
165
168
  link(sourceId: string, targetId: string, opts?: {
166
169
  relation?: string;
package/dist/index.d.ts CHANGED
@@ -56,6 +56,7 @@ declare class NovyxSession {
56
56
  space_id?: string;
57
57
  metadata?: Record<string, any>;
58
58
  ttl_seconds?: number;
59
+ auto_link?: boolean;
59
60
  }): Promise<Record<string, any>>;
60
61
  recall(query: string, opts?: {
61
62
  limit?: number;
@@ -102,6 +103,7 @@ declare class Novyx {
102
103
  space_id?: string;
103
104
  metadata?: Record<string, any>;
104
105
  ttl_seconds?: number;
106
+ auto_link?: boolean;
105
107
  }): Promise<Record<string, any>>;
106
108
  recall(query: string, opts?: {
107
109
  limit?: number;
@@ -161,6 +163,7 @@ declare class Novyx {
161
163
  usage(): Promise<Record<string, any>>;
162
164
  plans(): Promise<Record<string, any>[]>;
163
165
  health(): Promise<Record<string, any>>;
166
+ contextNow(): Promise<Record<string, any>>;
164
167
  session(sessionId: string): NovyxSession;
165
168
  link(sourceId: string, targetId: string, opts?: {
166
169
  relation?: string;
package/dist/index.js CHANGED
@@ -213,6 +213,7 @@ var Novyx = class {
213
213
  if (resolvedAgentId) body.agent_id = resolvedAgentId;
214
214
  if (opts?.space_id) body.space_id = opts.space_id;
215
215
  if (opts?.ttl_seconds !== void 0) body.ttl_seconds = opts.ttl_seconds;
216
+ if (opts?.auto_link) body.auto_link = true;
216
217
  if (opts?.context) {
217
218
  body.context = opts.context;
218
219
  } else if (opts?.metadata) {
@@ -400,6 +401,12 @@ var Novyx = class {
400
401
  }
401
402
  }
402
403
  // ========================================================================
404
+ // Context
405
+ // ========================================================================
406
+ async contextNow() {
407
+ return this._request("GET", "/v1/context/now");
408
+ }
409
+ // ========================================================================
403
410
  // Sessions
404
411
  // ========================================================================
405
412
  session(sessionId) {
package/dist/index.mjs CHANGED
@@ -180,6 +180,7 @@ var Novyx = class {
180
180
  if (resolvedAgentId) body.agent_id = resolvedAgentId;
181
181
  if (opts?.space_id) body.space_id = opts.space_id;
182
182
  if (opts?.ttl_seconds !== void 0) body.ttl_seconds = opts.ttl_seconds;
183
+ if (opts?.auto_link) body.auto_link = true;
183
184
  if (opts?.context) {
184
185
  body.context = opts.context;
185
186
  } else if (opts?.metadata) {
@@ -367,6 +368,12 @@ var Novyx = class {
367
368
  }
368
369
  }
369
370
  // ========================================================================
371
+ // Context
372
+ // ========================================================================
373
+ async contextNow() {
374
+ return this._request("GET", "/v1/context/now");
375
+ }
376
+ // ========================================================================
370
377
  // Sessions
371
378
  // ========================================================================
372
379
  session(sessionId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "novyx",
3
- "version": "2.2.0",
3
+ "version": "2.4.0",
4
4
  "description": "Novyx SDK - Persistent memory, rollback, and audit trail for AI agents",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",