@sensu-ai/sdk 0.6.0 → 0.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/client.d.ts CHANGED
@@ -101,7 +101,7 @@ export declare class SensuClient {
101
101
  constructor(opts?: SensuClientOptions);
102
102
  /** Enqueue an event for batched sending */
103
103
  enqueue(event: TelemetryEvent): void;
104
- /** Flush all buffered events to the Senzu API */
104
+ /** Flush all buffered events to the Sensu API */
105
105
  flush(): Promise<void>;
106
106
  /** Track a tool call for loop detection; fires onLoopDetected when threshold is reached. */
107
107
  notifyToolCall(runId: string, toolName: string): void;
@@ -169,7 +169,7 @@ export declare class SensuClient {
169
169
  deployPromptVersion(opts: DeployPromptVersionOptions): void;
170
170
  /**
171
171
  * Resolve per-1M-token pricing for a model.
172
- * Fetches from the Senzu API on first use and caches for the session lifetime.
172
+ * Fetches from the Sensu API on first use and caches for the session lifetime.
173
173
  * Falls back to the bundled MODEL_PRICING table if the API is unreachable or the
174
174
  * model is unknown, and to a near-zero sentinel if it's missing from both.
175
175
  */
package/dist/client.js CHANGED
@@ -559,16 +559,16 @@ export class SensuClient {
559
559
  void this.flush();
560
560
  }
561
561
  }
562
- /** Flush all buffered events to the Senzu API */
562
+ /** Flush all buffered events to the Sensu API */
563
563
  async flush() {
564
564
  if (this.disabled || this.buffer.length === 0)
565
565
  return;
566
566
  const events = this.buffer.splice(0);
567
567
  if (this.debugMode) {
568
568
  for (const ev of events) {
569
- console.log(`[Senzu] ${formatDebugEvent(ev)}`);
569
+ console.log(`[Sensu] ${formatDebugEvent(ev)}`);
570
570
  }
571
- console.log(`[Senzu] → Flushing ${events.length} event${events.length === 1 ? '' : 's'}`);
571
+ console.log(`[Sensu] → Flushing ${events.length} event${events.length === 1 ? '' : 's'}`);
572
572
  }
573
573
  try {
574
574
  const res = await fetch(`${this.baseUrl}/api/v1/events`, {
@@ -875,7 +875,7 @@ export class SensuClient {
875
875
  }
876
876
  /**
877
877
  * Resolve per-1M-token pricing for a model.
878
- * Fetches from the Senzu API on first use and caches for the session lifetime.
878
+ * Fetches from the Sensu API on first use and caches for the session lifetime.
879
879
  * Falls back to the bundled MODEL_PRICING table if the API is unreachable or the
880
880
  * model is unknown, and to a near-zero sentinel if it's missing from both.
881
881
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Anthropic SDK wrapper for Senzu telemetry.
2
+ * Anthropic SDK wrapper for Sensu telemetry.
3
3
  * Wraps the Anthropic client to automatically track all messages.create() calls.
4
4
  *
5
5
  * Node.js (concurrent-safe via AsyncLocalStorage):
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Anthropic SDK wrapper for Senzu telemetry.
2
+ * Anthropic SDK wrapper for Sensu telemetry.
3
3
  * Wraps the Anthropic client to automatically track all messages.create() calls.
4
4
  *
5
5
  * Node.js (concurrent-safe via AsyncLocalStorage):
@@ -216,7 +216,7 @@ export class SensuCallbackHandler {
216
216
  });
217
217
  }
218
218
  }
219
- // Map LangChain LLM class names to Senzu provider strings
219
+ // Map LangChain LLM class names to Sensu provider strings
220
220
  function inferProvider(name) {
221
221
  const n = name.toLowerCase();
222
222
  if (n.includes('anthropic') || n.includes('claude'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sensu-ai/sdk",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",