@mastra/langsmith 0.0.0-remove-unused-model-providers-api-20251030210744 → 0.0.0-remove-ai-peer-dep-from-evals-20260105220639

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.
@@ -1,17 +1,24 @@
1
1
  /**
2
- * LangSmith Exporter for Mastra AI Tracing
2
+ * LangSmith Exporter for Mastra Tracing
3
3
  *
4
- * This exporter sends tracing data to LangSmith for AI observability.
4
+ * This exporter sends observability data to LangSmith
5
5
  * Root spans become top-level LangSmith RunTrees (no trace wrapper).
6
6
  * Events are handled as zero-duration RunTrees with matching start/end times.
7
7
  */
8
- import type { AITracingEvent, BaseExporterConfig } from '@mastra/core/ai-tracing';
9
- import { BaseExporter } from '@mastra/core/ai-tracing';
8
+ import type { TracingEvent } from '@mastra/core/observability';
9
+ import { BaseExporter } from '@mastra/observability';
10
+ import type { BaseExporterConfig } from '@mastra/observability';
10
11
  import type { ClientConfig } from 'langsmith';
11
12
  import { Client } from 'langsmith';
12
13
  export interface LangSmithExporterConfig extends ClientConfig, BaseExporterConfig {
13
14
  /** LangSmith client instance */
14
15
  client?: Client;
16
+ /**
17
+ * The name of the LangSmith project to send traces to.
18
+ * Overrides the LANGCHAIN_PROJECT environment variable.
19
+ * If neither is set, traces are sent to the "default" project.
20
+ */
21
+ projectName?: string;
15
22
  }
16
23
  export declare class LangSmithExporter extends BaseExporter {
17
24
  name: string;
@@ -19,7 +26,7 @@ export declare class LangSmithExporter extends BaseExporter {
19
26
  private config;
20
27
  private client;
21
28
  constructor(config: LangSmithExporterConfig);
22
- protected _exportEvent(event: AITracingEvent): Promise<void>;
29
+ protected _exportTracingEvent(event: TracingEvent): Promise<void>;
23
30
  private initializeRootSpan;
24
31
  private handleSpanStarted;
25
32
  private handleSpanUpdateOrEnd;
@@ -29,4 +36,4 @@ export declare class LangSmithExporter extends BaseExporter {
29
36
  private buildRunTreePayload;
30
37
  shutdown(): Promise<void>;
31
38
  }
32
- //# sourceMappingURL=ai-tracing.d.ts.map
39
+ //# sourceMappingURL=tracing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../src/tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAA8C,MAAM,4BAA4B,CAAC;AAG3G,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAW,MAAM,WAAW,CAAC;AAI5C,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,kBAAkB;IAC/E,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA4BD,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,IAAI,SAAe;IACnB,OAAO,CAAC,QAAQ,CAA+B;IAC/C,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,MAAM,CAAS;gBAEX,MAAM,EAAE,uBAAuB;cAgB3B,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBvE,OAAO,CAAC,kBAAkB;YAcZ,iBAAiB;YAoCjB,qBAAqB;YAsErB,eAAe;IAsC7B,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,kBAAkB;IAiC1B,OAAO,CAAC,mBAAmB;IA8ErB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAehC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/langsmith",
3
- "version": "0.0.0-remove-unused-model-providers-api-20251030210744",
4
- "description": "Langsmith observability provider for Mastra - includes AI tracing and future observability features",
3
+ "version": "0.0.0-remove-ai-peer-dep-from-evals-20260105220639",
4
+ "description": "Langsmith observability provider for Mastra - includes tracing and future observability features",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -24,24 +24,26 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "langsmith": ">=0.3.72"
27
+ "langsmith": ">=0.3.79",
28
+ "@mastra/observability": "0.0.0-remove-ai-peer-dep-from-evals-20260105220639"
28
29
  },
29
30
  "devDependencies": {
30
31
  "@ai-sdk/openai": "^2.0.35",
31
- "@microsoft/api-extractor": "^7.52.8",
32
- "@types/node": "^20.19.0",
32
+ "@types/node": "22.13.17",
33
+ "@vitest/coverage-v8": "4.0.12",
34
+ "@vitest/ui": "4.0.12",
33
35
  "dotenv": "^17.2.2",
34
36
  "eslint": "^9.37.0",
35
37
  "tsup": "^8.5.0",
36
- "typescript": "^5.8.3",
37
- "vitest": "^3.2.4",
38
+ "typescript": "^5.9.3",
39
+ "vitest": "4.0.16",
38
40
  "zod": "^3.25.76",
39
- "@internal/lint": "0.0.0-remove-unused-model-providers-api-20251030210744",
40
- "@internal/types-builder": "0.0.0-remove-unused-model-providers-api-20251030210744",
41
- "@mastra/core": "0.0.0-remove-unused-model-providers-api-20251030210744"
41
+ "@internal/lint": "0.0.0-remove-ai-peer-dep-from-evals-20260105220639",
42
+ "@internal/types-builder": "0.0.0-remove-ai-peer-dep-from-evals-20260105220639",
43
+ "@mastra/core": "0.0.0-remove-ai-peer-dep-from-evals-20260105220639"
42
44
  },
43
45
  "peerDependencies": {
44
- "@mastra/core": "0.0.0-remove-unused-model-providers-api-20251030210744"
46
+ "@mastra/core": "0.0.0-remove-ai-peer-dep-from-evals-20260105220639"
45
47
  },
46
48
  "homepage": "https://mastra.ai",
47
49
  "repository": {
@@ -52,6 +54,9 @@
52
54
  "bugs": {
53
55
  "url": "https://github.com/mastra-ai/mastra/issues"
54
56
  },
57
+ "engines": {
58
+ "node": ">=22.13.0"
59
+ },
55
60
  "scripts": {
56
61
  "build": "tsup --silent --config tsup.config.ts",
57
62
  "build:watch": "pnpm build --watch",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ai-tracing.d.ts","sourceRoot":"","sources":["../src/ai-tracing.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,cAAc,EAGd,kBAAkB,EACnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAwB,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAW,MAAM,WAAW,CAAC;AAI5C,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,kBAAkB;IAC/E,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA6BD,qBAAa,iBAAkB,SAAQ,YAAY;IACjD,IAAI,SAAe;IACnB,OAAO,CAAC,QAAQ,CAA+B;IAC/C,OAAO,CAAC,MAAM,CAA0B;IACxC,OAAO,CAAC,MAAM,CAAS;gBAEX,MAAM,EAAE,uBAAuB;cAgB3B,YAAY,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAmBlE,OAAO,CAAC,kBAAkB;YAIZ,iBAAiB;YAoCjB,qBAAqB;YA2DrB,eAAe;IAsC7B,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,kBAAkB;IAiC1B,OAAO,CAAC,mBAAmB;IAoErB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAehC"}