novyx 2.6.0 → 2.6.1

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
@@ -208,7 +208,7 @@ declare class Novyx {
208
208
  auditExport(format?: string): Promise<Response>;
209
209
  auditVerify(): Promise<Record<string, any>>;
210
210
  traceCreate(agentId: string, sessionId?: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
211
- traceStep(traceId: string, stepType: string, name: string, content?: string, attributes?: Record<string, any>): Promise<Record<string, any>>;
211
+ traceStep(traceId: string, stepType: string, content: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
212
212
  traceComplete(traceId: string): Promise<Record<string, any>>;
213
213
  traceVerify(traceId: string): Promise<Record<string, any>>;
214
214
  usage(): Promise<Record<string, any>>;
package/dist/index.d.ts CHANGED
@@ -208,7 +208,7 @@ declare class Novyx {
208
208
  auditExport(format?: string): Promise<Response>;
209
209
  auditVerify(): Promise<Record<string, any>>;
210
210
  traceCreate(agentId: string, sessionId?: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
211
- traceStep(traceId: string, stepType: string, name: string, content?: string, attributes?: Record<string, any>): Promise<Record<string, any>>;
211
+ traceStep(traceId: string, stepType: string, content: string, metadata?: Record<string, any>): Promise<Record<string, any>>;
212
212
  traceComplete(traceId: string): Promise<Record<string, any>>;
213
213
  traceVerify(traceId: string): Promise<Record<string, any>>;
214
214
  usage(): Promise<Record<string, any>>;
package/dist/index.js CHANGED
@@ -369,21 +369,19 @@ var Novyx = class {
369
369
  }
370
370
  });
371
371
  }
372
- async traceStep(traceId, stepType, name, content, attributes) {
373
- return this._request("POST", `/v1/traces/${traceId}/steps`, {
374
- body: {
375
- step_type: stepType,
376
- name,
377
- content,
378
- attributes: attributes ?? {}
379
- }
380
- });
372
+ async traceStep(traceId, stepType, content, metadata) {
373
+ const body = {
374
+ type: stepType,
375
+ content
376
+ };
377
+ if (metadata) body.metadata = metadata;
378
+ return this._request("POST", `/v1/traces/${traceId}/steps`, { body });
381
379
  }
382
380
  async traceComplete(traceId) {
383
381
  return this._request("POST", `/v1/traces/${traceId}/complete`);
384
382
  }
385
383
  async traceVerify(traceId) {
386
- return this._request("GET", `/v1/traces/${traceId}/verify`);
384
+ return this._request("POST", `/v1/traces/${traceId}/verify`);
387
385
  }
388
386
  // ========================================================================
389
387
  // Usage & Plans
package/dist/index.mjs CHANGED
@@ -336,21 +336,19 @@ var Novyx = class {
336
336
  }
337
337
  });
338
338
  }
339
- async traceStep(traceId, stepType, name, content, attributes) {
340
- return this._request("POST", `/v1/traces/${traceId}/steps`, {
341
- body: {
342
- step_type: stepType,
343
- name,
344
- content,
345
- attributes: attributes ?? {}
346
- }
347
- });
339
+ async traceStep(traceId, stepType, content, metadata) {
340
+ const body = {
341
+ type: stepType,
342
+ content
343
+ };
344
+ if (metadata) body.metadata = metadata;
345
+ return this._request("POST", `/v1/traces/${traceId}/steps`, { body });
348
346
  }
349
347
  async traceComplete(traceId) {
350
348
  return this._request("POST", `/v1/traces/${traceId}/complete`);
351
349
  }
352
350
  async traceVerify(traceId) {
353
- return this._request("GET", `/v1/traces/${traceId}/verify`);
351
+ return this._request("POST", `/v1/traces/${traceId}/verify`);
354
352
  }
355
353
  // ========================================================================
356
354
  // Usage & Plans
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "novyx",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
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",