@posthog/ai 8.3.0 → 8.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.
@@ -143,7 +143,7 @@ const truncate = input => {
143
143
  return `${truncatedStr}... [truncated]`;
144
144
  };
145
145
 
146
- var version = "8.3.0";
146
+ var version = "8.4.0";
147
147
 
148
148
  // Warn when a wrapper's base_url points at the PostHog AI Gateway: the gateway
149
149
  // emits its own $ai_generation, so each call would be captured (and, for billable
@@ -103,4 +103,5 @@ type InstrumentOptions = PostHogTracingProcessorOptions;
103
103
  */
104
104
  declare function instrument(options: InstrumentOptions): Promise<PostHogTracingProcessor>;
105
105
 
106
- export { type DistinctIdResolver, type InstrumentOptions, PostHogTracingProcessor, type PostHogTracingProcessorOptions, type TracingProcessorErrorContext, type TracingProcessorErrorHandler, instrument };
106
+ export { PostHogTracingProcessor, instrument };
107
+ export type { DistinctIdResolver, InstrumentOptions, PostHogTracingProcessorOptions, TracingProcessorErrorContext, TracingProcessorErrorHandler };
@@ -141,7 +141,7 @@ const truncate = input => {
141
141
  return `${truncatedStr}... [truncated]`;
142
142
  };
143
143
 
144
- var version = "8.3.0";
144
+ var version = "8.4.0";
145
145
 
146
146
  // Warn when a wrapper's base_url points at the PostHog AI Gateway: the gateway
147
147
  // emits its own $ai_generation, so each call would be captured (and, for billable
@@ -110,4 +110,5 @@ declare class PostHogSpanProcessor implements SpanProcessor {
110
110
  forceFlush(): Promise<void>;
111
111
  }
112
112
 
113
- export { PostHogSpanProcessor, type PostHogSpanProcessorOptions, PostHogTraceExporter, type PostHogTraceExporterOptions };
113
+ export { PostHogSpanProcessor, PostHogTraceExporter };
114
+ export type { PostHogSpanProcessorOptions, PostHogTraceExporterOptions };
@@ -397,7 +397,7 @@ function sanitizeValues(obj) {
397
397
  return jsonSafe;
398
398
  }
399
399
 
400
- var version = "8.3.0";
400
+ var version = "8.4.0";
401
401
 
402
402
  const DEFAULT_MAX_DEPTH = 3;
403
403
  const MAX_STACK_LINES = 20;
@@ -395,7 +395,7 @@ function sanitizeValues(obj) {
395
395
  return jsonSafe;
396
396
  }
397
397
 
398
- var version = "8.3.0";
398
+ var version = "8.4.0";
399
399
 
400
400
  const DEFAULT_MAX_DEPTH = 3;
401
401
  const MAX_STACK_LINES = 20;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/ai",
3
- "version": "8.3.0",
3
+ "version": "8.4.0",
4
4
  "description": "PostHog Node.js AI integrations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  "@types/jest": "^29.5.14",
30
30
  "jest": "29.7.0",
31
31
  "node-fetch": "^3.3.2",
32
+ "@posthog-tooling/rollup-utils": "1.1.1",
32
33
  "@posthog-tooling/tsconfig-base": "1.1.1",
33
- "posthog-node": "^5.39.4",
34
- "@posthog-tooling/rollup-utils": "1.1.1"
34
+ "posthog-node": "^5.45.2"
35
35
  },
36
36
  "keywords": [
37
37
  "posthog",
@@ -49,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "uuid": "^11.1.0",
51
51
  "zod": "^4.1.13",
52
- "@posthog/core": "^1.39.6"
52
+ "@posthog/core": "^1.43.1"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@anthropic-ai/sdk": "^0.78.0",