@posthog/ai 8.3.0 → 8.3.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/LICENSE +2 -2
- package/dist/anthropic/index.cjs +1 -1
- package/dist/anthropic/index.mjs +1 -1
- package/dist/gemini/index.cjs +1 -1
- package/dist/gemini/index.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +1 -1
- package/dist/langchain/index.cjs +1 -1
- package/dist/langchain/index.mjs +1 -1
- package/dist/openai/index.cjs +39 -2
- package/dist/openai/index.cjs.map +1 -1
- package/dist/openai/index.mjs +39 -2
- package/dist/openai/index.mjs.map +1 -1
- package/dist/openai-agents/index.cjs +1 -1
- package/dist/openai-agents/index.d.ts +2 -1
- package/dist/openai-agents/index.mjs +1 -1
- package/dist/otel/index.d.ts +2 -1
- package/dist/vercel/index.cjs +1 -1
- package/dist/vercel/index.mjs +1 -1
- package/package.json +5 -5
|
@@ -143,7 +143,7 @@ const truncate = input => {
|
|
|
143
143
|
return `${truncatedStr}... [truncated]`;
|
|
144
144
|
};
|
|
145
145
|
|
|
146
|
-
var version = "8.3.
|
|
146
|
+
var version = "8.3.1";
|
|
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 {
|
|
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.
|
|
144
|
+
var version = "8.3.1";
|
|
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
|
package/dist/otel/index.d.ts
CHANGED
|
@@ -110,4 +110,5 @@ declare class PostHogSpanProcessor implements SpanProcessor {
|
|
|
110
110
|
forceFlush(): Promise<void>;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export { PostHogSpanProcessor,
|
|
113
|
+
export { PostHogSpanProcessor, PostHogTraceExporter };
|
|
114
|
+
export type { PostHogSpanProcessorOptions, PostHogTraceExporterOptions };
|
package/dist/vercel/index.cjs
CHANGED
package/dist/vercel/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posthog/ai",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.1",
|
|
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/
|
|
33
|
-
"posthog-node": "^5.
|
|
34
|
-
"@posthog-tooling/
|
|
32
|
+
"@posthog-tooling/rollup-utils": "1.1.1",
|
|
33
|
+
"posthog-node": "^5.44.0",
|
|
34
|
+
"@posthog-tooling/tsconfig-base": "1.1.1"
|
|
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.
|
|
52
|
+
"@posthog/core": "^1.42.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@anthropic-ai/sdk": "^0.78.0",
|