@mastra/core 1.23.1-alpha.0 → 1.24.0-alpha.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/CHANGELOG.md +71 -0
- package/dist/agent/index.cjs +13 -13
- package/dist/agent/index.js +2 -2
- package/dist/agent/message-list/adapters/AIV5Adapter.d.ts.map +1 -1
- package/dist/agent/message-list/conversion/input-converter.d.ts.map +1 -1
- package/dist/agent/message-list/index.cjs +19 -19
- package/dist/agent/message-list/index.js +1 -1
- package/dist/agent/message-list/message-list.d.ts.map +1 -1
- package/dist/agent/message-list/state/types.d.ts +7 -4
- package/dist/agent/message-list/state/types.d.ts.map +1 -1
- package/dist/agent/message-list/utils/stamp-part.d.ts +4 -0
- package/dist/agent/message-list/utils/stamp-part.d.ts.map +1 -0
- package/dist/browser/index.cjs +2 -2
- package/dist/browser/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-LB3GO6MV.js → chunk-234T424F.js} +5 -5
- package/dist/{chunk-LB3GO6MV.js.map → chunk-234T424F.js.map} +1 -1
- package/dist/{chunk-WCQOOGVM.cjs → chunk-365PDOQ4.cjs} +9 -9
- package/dist/{chunk-WCQOOGVM.cjs.map → chunk-365PDOQ4.cjs.map} +1 -1
- package/dist/{chunk-N7W2KRUH.js → chunk-3RI7ILBW.js} +3 -3
- package/dist/{chunk-N7W2KRUH.js.map → chunk-3RI7ILBW.js.map} +1 -1
- package/dist/{chunk-B4OOPFD3.cjs → chunk-4FFOOHE5.cjs} +27 -2
- package/dist/chunk-4FFOOHE5.cjs.map +1 -0
- package/dist/{chunk-S2546L42.js → chunk-7BBERBXP.js} +6 -6
- package/dist/{chunk-S2546L42.js.map → chunk-7BBERBXP.js.map} +1 -1
- package/dist/{chunk-BG3IPQZ7.cjs → chunk-B2FQ6L2I.cjs} +21 -21
- package/dist/{chunk-BG3IPQZ7.cjs.map → chunk-B2FQ6L2I.cjs.map} +1 -1
- package/dist/{chunk-UNQCLA7I.cjs → chunk-BFOZOAU2.cjs} +54 -26
- package/dist/chunk-BFOZOAU2.cjs.map +1 -0
- package/dist/{chunk-JC2RW3N5.js → chunk-CN6AFOVV.js} +4 -4
- package/dist/{chunk-JC2RW3N5.js.map → chunk-CN6AFOVV.js.map} +1 -1
- package/dist/{chunk-IAUQYADS.cjs → chunk-CY4AMNDV.cjs} +7 -7
- package/dist/{chunk-IAUQYADS.cjs.map → chunk-CY4AMNDV.cjs.map} +1 -1
- package/dist/{chunk-MW6HBUMV.cjs → chunk-D64ZY3NT.cjs} +29 -27
- package/dist/chunk-D64ZY3NT.cjs.map +1 -0
- package/dist/{chunk-JVXQTSRU.js → chunk-E7PBOS66.js} +3 -3
- package/dist/{chunk-JVXQTSRU.js.map → chunk-E7PBOS66.js.map} +1 -1
- package/dist/{chunk-GBUKRAUU.cjs → chunk-EAQQP6OK.cjs} +75 -75
- package/dist/{chunk-GBUKRAUU.cjs.map → chunk-EAQQP6OK.cjs.map} +1 -1
- package/dist/chunk-EGIEQEHP.js +35 -0
- package/dist/chunk-EGIEQEHP.js.map +1 -0
- package/dist/{chunk-C3RGHCOG.js → chunk-EJ62D3QH.js} +7 -7
- package/dist/{chunk-C3RGHCOG.js.map → chunk-EJ62D3QH.js.map} +1 -1
- package/dist/{chunk-J5JND5CL.cjs → chunk-FCW225T4.cjs} +84 -84
- package/dist/{chunk-J5JND5CL.cjs.map → chunk-FCW225T4.cjs.map} +1 -1
- package/dist/{chunk-OVQVLGT2.cjs → chunk-FLMCO42Y.cjs} +4 -4
- package/dist/{chunk-OVQVLGT2.cjs.map → chunk-FLMCO42Y.cjs.map} +1 -1
- package/dist/{chunk-RNKRA4W6.js → chunk-GAW7WFCY.js} +6 -6
- package/dist/{chunk-RNKRA4W6.js.map → chunk-GAW7WFCY.js.map} +1 -1
- package/dist/{chunk-7CWIKWHN.js → chunk-I7DUPZFN.js} +90 -43
- package/dist/chunk-I7DUPZFN.js.map +1 -0
- package/dist/{chunk-HMVCVSAM.js → chunk-IKUMKFM4.js} +5 -5
- package/dist/{chunk-HMVCVSAM.js.map → chunk-IKUMKFM4.js.map} +1 -1
- package/dist/{chunk-YTLU3Q7Q.js → chunk-JBFAGOAG.js} +13 -11
- package/dist/chunk-JBFAGOAG.js.map +1 -0
- package/dist/{chunk-6WRVZNQL.cjs → chunk-L56725IW.cjs} +7 -2
- package/dist/chunk-L56725IW.cjs.map +1 -0
- package/dist/{chunk-FDSY7ZGW.cjs → chunk-L73KZFX6.cjs} +10 -10
- package/dist/{chunk-FDSY7ZGW.cjs.map → chunk-L73KZFX6.cjs.map} +1 -1
- package/dist/{chunk-QX5YBALM.js → chunk-LUEXY2QV.js} +3 -3
- package/dist/{chunk-QX5YBALM.js.map → chunk-LUEXY2QV.js.map} +1 -1
- package/dist/{chunk-235IILEY.js → chunk-MD3VGE3F.js} +7 -2
- package/dist/chunk-MD3VGE3F.js.map +1 -0
- package/dist/{chunk-Q2RTFBSF.js → chunk-MK5IF24D.js} +8 -8
- package/dist/{chunk-Q2RTFBSF.js.map → chunk-MK5IF24D.js.map} +1 -1
- package/dist/{chunk-PJ5YCHXB.js → chunk-MZJQ7OKW.js} +3 -3
- package/dist/{chunk-PJ5YCHXB.js.map → chunk-MZJQ7OKW.js.map} +1 -1
- package/dist/{chunk-3UBTJXPW.cjs → chunk-P5C4HEAB.cjs} +32 -32
- package/dist/{chunk-3UBTJXPW.cjs.map → chunk-P5C4HEAB.cjs.map} +1 -1
- package/dist/{chunk-AMQICJHD.js → chunk-PCHML5XO.js} +11 -11
- package/dist/{chunk-AMQICJHD.js.map → chunk-PCHML5XO.js.map} +1 -1
- package/dist/{chunk-4LJ4M2DI.js → chunk-PQKSETS5.js} +3 -3
- package/dist/{chunk-4LJ4M2DI.js.map → chunk-PQKSETS5.js.map} +1 -1
- package/dist/{chunk-PHSDY5MP.cjs → chunk-QFGYBEP3.cjs} +10 -10
- package/dist/{chunk-PHSDY5MP.cjs.map → chunk-QFGYBEP3.cjs.map} +1 -1
- package/dist/{chunk-2M6QAFRM.cjs → chunk-RJAOQKHJ.cjs} +90 -43
- package/dist/chunk-RJAOQKHJ.cjs.map +1 -0
- package/dist/{chunk-WXCT24DY.cjs → chunk-SRQR5UN6.cjs} +27 -27
- package/dist/{chunk-WXCT24DY.cjs.map → chunk-SRQR5UN6.cjs.map} +1 -1
- package/dist/{chunk-7OU57YXD.cjs → chunk-SUEVJYTA.cjs} +185 -185
- package/dist/{chunk-7OU57YXD.cjs.map → chunk-SUEVJYTA.cjs.map} +1 -1
- package/dist/{chunk-LYCAEN2H.cjs → chunk-SYH64AGV.cjs} +219 -219
- package/dist/{chunk-LYCAEN2H.cjs.map → chunk-SYH64AGV.cjs.map} +1 -1
- package/dist/{chunk-ZHMULBPD.js → chunk-V2HSN7VZ.js} +26 -3
- package/dist/chunk-V2HSN7VZ.js.map +1 -0
- package/dist/{chunk-KPNURYWF.js → chunk-V657RNGK.js} +42 -14
- package/dist/chunk-V657RNGK.js.map +1 -0
- package/dist/{chunk-JGPMCTG4.cjs → chunk-XEDVYHBK.cjs} +3 -3
- package/dist/{chunk-JGPMCTG4.cjs.map → chunk-XEDVYHBK.cjs.map} +1 -1
- package/dist/{chunk-CLNGCSHU.cjs → chunk-XEM4OYJI.cjs} +15 -15
- package/dist/{chunk-CLNGCSHU.cjs.map → chunk-XEM4OYJI.cjs.map} +1 -1
- package/dist/{chunk-QG5JWMFX.cjs → chunk-XS3FHQ34.cjs} +11 -11
- package/dist/{chunk-QG5JWMFX.cjs.map → chunk-XS3FHQ34.cjs.map} +1 -1
- package/dist/{chunk-STZTHX32.js → chunk-XS75QEED.js} +5 -5
- package/dist/{chunk-STZTHX32.js.map → chunk-XS75QEED.js.map} +1 -1
- package/dist/{chunk-5OXVECLF.js → chunk-Y4SL4WJQ.js} +3 -3
- package/dist/{chunk-5OXVECLF.js.map → chunk-Y4SL4WJQ.js.map} +1 -1
- package/dist/chunk-ZPHI6QAA.cjs +40 -0
- package/dist/chunk-ZPHI6QAA.cjs.map +1 -0
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/docs/SKILL.md +2 -1
- package/dist/docs/assets/SOURCE_MAP.json +450 -450
- package/dist/docs/references/reference-observability-tracing-configuration.md +8 -1
- package/dist/docs/references/reference-observability-tracing-span-filtering.md +95 -0
- package/dist/docs/references/reference.md +1 -0
- package/dist/evals/index.cjs +23 -23
- package/dist/evals/index.js +3 -3
- package/dist/evals/scoreTraces/index.cjs +7 -7
- package/dist/evals/scoreTraces/index.js +3 -3
- package/dist/harness/index.cjs +9 -9
- package/dist/harness/index.js +6 -6
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +20 -20
- package/dist/llm/index.js +5 -5
- package/dist/llm/model/provider-types.generated.d.ts +11 -1
- package/dist/logger/index.cjs +6 -6
- package/dist/logger/index.js +1 -1
- package/dist/loop/index.cjs +14 -14
- package/dist/loop/index.js +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.ts.map +1 -1
- package/dist/mastra/index.js +1 -1
- package/dist/mastra-5YHFXAJO.js +3 -0
- package/dist/{mastra-JWFZL5TC.js.map → mastra-5YHFXAJO.js.map} +1 -1
- package/dist/mastra-7CFH7DGM.cjs +12 -0
- package/dist/{mastra-ZQK3PKEU.cjs.map → mastra-7CFH7DGM.cjs.map} +1 -1
- package/dist/memory/index.cjs +19 -19
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-X2MWNPAU.cjs +12 -0
- package/dist/{models-dev-6DVNVKP4.cjs.map → models-dev-X2MWNPAU.cjs.map} +1 -1
- package/dist/models-dev-ZXC3IYLG.js +3 -0
- package/dist/{models-dev-FOTHHSEK.js.map → models-dev-ZXC3IYLG.js.map} +1 -1
- package/dist/netlify-GOILLTQO.cjs +12 -0
- package/dist/{netlify-S2IW3O2X.cjs.map → netlify-GOILLTQO.cjs.map} +1 -1
- package/dist/netlify-HJL7EXHY.js +3 -0
- package/dist/{netlify-NMTX7SVL.js.map → netlify-HJL7EXHY.js.map} +1 -1
- package/dist/observability/context-storage.cjs +18 -28
- package/dist/observability/context-storage.cjs.map +1 -1
- package/dist/observability/context-storage.d.ts +9 -0
- package/dist/observability/context-storage.d.ts.map +1 -1
- package/dist/observability/context-storage.js +1 -28
- package/dist/observability/context-storage.js.map +1 -1
- package/dist/observability/index.cjs +33 -25
- package/dist/observability/index.d.ts +2 -0
- package/dist/observability/index.d.ts.map +1 -1
- package/dist/observability/index.js +3 -3
- package/dist/observability/rag-ingestion.d.ts +108 -0
- package/dist/observability/rag-ingestion.d.ts.map +1 -0
- package/dist/observability/types/core.d.ts +31 -1
- package/dist/observability/types/core.d.ts.map +1 -1
- package/dist/observability/types/tracing.d.ts +133 -1
- package/dist/observability/types/tracing.d.ts.map +1 -1
- package/dist/processor-provider/index.cjs +10 -10
- package/dist/processor-provider/index.js +1 -1
- package/dist/processors/index.cjs +44 -44
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-25ELOB67.cjs +44 -0
- package/dist/{provider-registry-7WS3N5BF.cjs.map → provider-registry-25ELOB67.cjs.map} +1 -1
- package/dist/provider-registry-UWTCPEFF.js +3 -0
- package/dist/{provider-registry-YADLRYW6.js.map → provider-registry-UWTCPEFF.js.map} +1 -1
- package/dist/provider-registry.json +34 -6
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/storage/constants.cjs +56 -56
- package/dist/storage/constants.js +1 -1
- package/dist/storage/index.cjs +286 -286
- package/dist/storage/index.js +3 -3
- package/dist/stream/index.cjs +11 -11
- package/dist/stream/index.js +2 -2
- package/dist/test-utils/llm-mock.cjs +4 -4
- package/dist/test-utils/llm-mock.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/index.js +1 -1
- package/dist/utils.cjs +25 -25
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +7 -7
- package/dist/vector/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +24 -24
- package/dist/workflows/index.js +1 -1
- package/package.json +5 -5
- package/src/llm/model/provider-types.generated.d.ts +11 -1
- package/dist/chunk-235IILEY.js.map +0 -1
- package/dist/chunk-2M6QAFRM.cjs.map +0 -1
- package/dist/chunk-6WRVZNQL.cjs.map +0 -1
- package/dist/chunk-7CWIKWHN.js.map +0 -1
- package/dist/chunk-B4OOPFD3.cjs.map +0 -1
- package/dist/chunk-KPNURYWF.js.map +0 -1
- package/dist/chunk-MW6HBUMV.cjs.map +0 -1
- package/dist/chunk-UNQCLA7I.cjs.map +0 -1
- package/dist/chunk-YTLU3Q7Q.js.map +0 -1
- package/dist/chunk-ZHMULBPD.js.map +0 -1
- package/dist/mastra-JWFZL5TC.js +0 -3
- package/dist/mastra-ZQK3PKEU.cjs +0 -12
- package/dist/models-dev-6DVNVKP4.cjs +0 -12
- package/dist/models-dev-FOTHHSEK.js +0 -3
- package/dist/netlify-NMTX7SVL.js +0 -3
- package/dist/netlify-S2IW3O2X.cjs +0 -12
- package/dist/provider-registry-7WS3N5BF.cjs +0 -44
- package/dist/provider-registry-YADLRYW6.js +0 -3
|
@@ -26,6 +26,8 @@ interface ObservabilityInstanceConfig {
|
|
|
26
26
|
exporters?: ObservabilityExporter[]
|
|
27
27
|
spanOutputProcessors?: SpanOutputProcessor[]
|
|
28
28
|
includeInternalSpans?: boolean
|
|
29
|
+
excludeSpanTypes?: SpanType[]
|
|
30
|
+
spanFilter?: (span: AnyExportedSpan) => boolean
|
|
29
31
|
requestContextKeys?: string[]
|
|
30
32
|
serializationOptions?: SerializationOptions
|
|
31
33
|
logging?: { enabled?: boolean; level?: LogLevel }
|
|
@@ -44,6 +46,10 @@ interface ObservabilityInstanceConfig {
|
|
|
44
46
|
|
|
45
47
|
**includeInternalSpans** (`boolean`): Include spans internal to Mastra operations
|
|
46
48
|
|
|
49
|
+
**excludeSpanTypes** (`SpanType[]`): Span types to exclude from export. Useful for reducing noise and costs in per-span billing platforms. See the \[Span filtering reference]\(/reference/observability/tracing/span-filtering) for details.
|
|
50
|
+
|
|
51
|
+
**spanFilter** (`(span: AnyExportedSpan) => boolean`): Filter function to control which spans are exported. Return true to keep, false to drop. Runs after excludeSpanTypes and spanOutputProcessors. See the \[Span filtering reference]\(/reference/observability/tracing/span-filtering) for details.
|
|
52
|
+
|
|
47
53
|
**requestContextKeys** (`string[]`): RequestContext keys to extract as metadata (supports dot notation)
|
|
48
54
|
|
|
49
55
|
**serializationOptions** (`SerializationOptions`): Options for controlling serialization of span data (input/output/attributes)
|
|
@@ -199,4 +205,5 @@ Shuts down all observability instances and clears the registry.
|
|
|
199
205
|
- [CloudExporter](https://mastra.ai/reference/observability/tracing/exporters/cloud-exporter) - Cloud setup
|
|
200
206
|
- [Braintrust](https://mastra.ai/reference/observability/tracing/exporters/braintrust) - Braintrust integration
|
|
201
207
|
- [Langfuse](https://mastra.ai/reference/observability/tracing/exporters/langfuse) - Langfuse integration
|
|
202
|
-
- [LangSmith](https://mastra.ai/reference/observability/tracing/exporters/langsmith) - LangSmith integration
|
|
208
|
+
- [LangSmith](https://mastra.ai/reference/observability/tracing/exporters/langsmith) - LangSmith integration
|
|
209
|
+
- [Span filtering](https://mastra.ai/reference/observability/tracing/span-filtering) - Selectively exclude spans
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Span filtering
|
|
2
|
+
|
|
3
|
+
Span filtering controls which spans are exported from an observability config. Use it to reduce noise, lower per-span costs, or keep only the spans that matter for a specific exporter or environment.
|
|
4
|
+
|
|
5
|
+
For a shorter overview of tracing configuration, see [Tracing](https://mastra.ai/docs/observability/tracing/overview).
|
|
6
|
+
|
|
7
|
+
## Usage example
|
|
8
|
+
|
|
9
|
+
The following example demonstrates how to combine `excludeSpanTypes` and `spanFilter` in one observability config:
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { Mastra } from '@mastra/core'
|
|
13
|
+
import { SpanType } from '@mastra/core/observability'
|
|
14
|
+
import { Observability, DefaultExporter } from '@mastra/observability'
|
|
15
|
+
import { LangfuseExporter } from '@mastra/langfuse'
|
|
16
|
+
|
|
17
|
+
export const mastra = new Mastra({
|
|
18
|
+
observability: new Observability({
|
|
19
|
+
configs: {
|
|
20
|
+
default: {
|
|
21
|
+
serviceName: 'my-app',
|
|
22
|
+
exporters: [new DefaultExporter(), new LangfuseExporter()],
|
|
23
|
+
excludeSpanTypes: [SpanType.MODEL_CHUNK, SpanType.MODEL_STEP],
|
|
24
|
+
spanFilter: span => {
|
|
25
|
+
if (span.type === SpanType.TOOL_CALL && span.attributes?.success) {
|
|
26
|
+
return false
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
return true
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
})
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Configuration options
|
|
38
|
+
|
|
39
|
+
**excludeSpanTypes** (`SpanType[]`): Drops spans by type before processors and spanFilter run. Use this for broad, low-overhead filtering.
|
|
40
|
+
|
|
41
|
+
**spanFilter** (`(span: AnyExportedSpan) => boolean`): Receives the exported span and returns true to keep it or false to drop it. Use this when filtering depends on attributes, metadata, timing, or entity identifiers.
|
|
42
|
+
|
|
43
|
+
### `excludeSpanTypes`
|
|
44
|
+
|
|
45
|
+
Use `excludeSpanTypes` when you want to suppress whole categories of spans with minimal configuration.
|
|
46
|
+
|
|
47
|
+
For the current set of supported values, see the [`SpanType` enum](https://github.com/mastra-ai/mastra/blob/main/packages/core/src/observability/types/tracing.ts).
|
|
48
|
+
|
|
49
|
+
```ts
|
|
50
|
+
import { SpanType } from '@mastra/core/observability'
|
|
51
|
+
|
|
52
|
+
excludeSpanTypes: [SpanType.MODEL_CHUNK, SpanType.MODEL_STEP, SpanType.WORKFLOW_SLEEP]
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### `spanFilter`
|
|
56
|
+
|
|
57
|
+
When filtering depends on the exported span contents, use `spanFilter`.
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
import { SpanType } from '@mastra/core/observability'
|
|
61
|
+
|
|
62
|
+
spanFilter: span => {
|
|
63
|
+
if (span.type === SpanType.MODEL_CHUNK) return false
|
|
64
|
+
if (span.type === SpanType.TOOL_CALL && span.attributes?.success) return false
|
|
65
|
+
|
|
66
|
+
return true
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Additional examples:
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
// Only export spans from production
|
|
74
|
+
spanFilter: span => span.metadata?.environment === 'production'
|
|
75
|
+
|
|
76
|
+
// Exclude spans from a specific entity
|
|
77
|
+
spanFilter: span => span.entityId !== 'noisy-agent'
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## Processing order
|
|
81
|
+
|
|
82
|
+
Span filtering happens at export time in this order:
|
|
83
|
+
|
|
84
|
+
1. Internal spans are dropped unless `includeInternalSpans` is `true`.
|
|
85
|
+
2. `excludeSpanTypes` removes matching span types.
|
|
86
|
+
3. `spanOutputProcessors` transform the remaining spans.
|
|
87
|
+
4. `spanFilter` decides whether to keep the final exported span.
|
|
88
|
+
|
|
89
|
+
If `spanFilter` throws an error, Mastra keeps the span and logs the error to avoid silent data loss.
|
|
90
|
+
|
|
91
|
+
## Related
|
|
92
|
+
|
|
93
|
+
- [Tracing overview](https://mastra.ai/docs/observability/tracing/overview) for setup and concepts
|
|
94
|
+
- [Configuration API](https://mastra.ai/reference/observability/tracing/configuration) for `ObservabilityInstanceConfig`
|
|
95
|
+
- [Sensitive data filter](https://mastra.ai/docs/observability/tracing/processors/sensitive-data-filter) for redacting span data
|
|
@@ -151,6 +151,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
151
151
|
- [Configuration](https://mastra.ai/reference/observability/tracing/configuration)
|
|
152
152
|
- [Instances](https://mastra.ai/reference/observability/tracing/instances)
|
|
153
153
|
- [Interfaces](https://mastra.ai/reference/observability/tracing/interfaces)
|
|
154
|
+
- [Span filtering](https://mastra.ai/reference/observability/tracing/span-filtering)
|
|
154
155
|
- [Spans](https://mastra.ai/reference/observability/tracing/spans)
|
|
155
156
|
- [BatchPartsProcessor](https://mastra.ai/reference/processors/batch-parts-processor)
|
|
156
157
|
- [LanguageDetector](https://mastra.ai/reference/processors/language-detector)
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkB2FQ6L2I_cjs = require('../chunk-B2FQ6L2I.cjs');
|
|
4
|
+
var chunkSYH64AGV_cjs = require('../chunk-SYH64AGV.cjs');
|
|
5
|
+
var chunkP5C4HEAB_cjs = require('../chunk-P5C4HEAB.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "runEvals", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkB2FQ6L2I_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkSYH64AGV_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkSYH64AGV_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "extractTrajectory", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkP5C4HEAB_cjs.extractTrajectory; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "extractTrajectoryFromTrace", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkP5C4HEAB_cjs.extractTrajectoryFromTrace; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "extractWorkflowTrajectory", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkP5C4HEAB_cjs.extractWorkflowTrajectory; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listScoresResponseSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkP5C4HEAB_cjs.listScoresResponseSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "saveScorePayloadSchema", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkP5C4HEAB_cjs.saveScorePayloadSchema; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "scoreResultSchema", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkP5C4HEAB_cjs.scoreResultSchema; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "scoreRowDataSchema", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkP5C4HEAB_cjs.scoreRowDataSchema; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "scoringEntityTypeSchema", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringEntityTypeSchema; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "scoringExtractStepResultSchema", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringExtractStepResultSchema; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "scoringHookInputSchema", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringHookInputSchema; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "scoringInputSchema", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringInputSchema; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndAnalyzeStepResultSchema", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringInputWithExtractStepResultAndAnalyzeStepResultSchema; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndScoreAndReasonSchema", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringInputWithExtractStepResultAndScoreAndReasonSchema; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultSchema", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringInputWithExtractStepResultSchema; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "scoringPromptsSchema", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringPromptsSchema; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "scoringSourceSchema", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringSourceSchema; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "scoringValueSchema", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkP5C4HEAB_cjs.scoringValueSchema; }
|
|
88
88
|
});
|
|
89
89
|
//# sourceMappingURL=index.cjs.map
|
|
90
90
|
//# sourceMappingURL=index.cjs.map
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
3
|
-
export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-GAW7WFCY.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-PCHML5XO.js';
|
|
3
|
+
export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-Y4SL4WJQ.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkEAQQP6OK_cjs = require('../../chunk-EAQQP6OK.cjs');
|
|
4
|
+
var chunkP5C4HEAB_cjs = require('../../chunk-P5C4HEAB.cjs');
|
|
5
|
+
var chunkQFGYBEP3_cjs = require('../../chunk-QFGYBEP3.cjs');
|
|
6
6
|
var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
|
|
7
7
|
var pMap = require('p-map');
|
|
8
8
|
var v4 = require('zod/v4');
|
|
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
// src/evals/scoreTraces/scoreTracesWorkflow.ts
|
|
237
|
-
var getTraceStep =
|
|
237
|
+
var getTraceStep = chunkEAQQP6OK_cjs.createStep({
|
|
238
238
|
id: "__process-trace-scoring",
|
|
239
239
|
inputSchema: v4.z.object({
|
|
240
240
|
targets: v4.z.array(
|
|
@@ -350,7 +350,7 @@ async function runScorerOnTarget({
|
|
|
350
350
|
...scorerRun,
|
|
351
351
|
scoreSource: "trace",
|
|
352
352
|
targetScope: "span",
|
|
353
|
-
targetEntityType:
|
|
353
|
+
targetEntityType: chunkQFGYBEP3_cjs.getEntityTypeForSpan(span),
|
|
354
354
|
targetTraceId: target.traceId,
|
|
355
355
|
targetSpanId: span.spanId
|
|
356
356
|
});
|
|
@@ -383,7 +383,7 @@ async function validateAndSaveScore({ storage, scorerResult }) {
|
|
|
383
383
|
text: "Scores storage domain is not available"
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
const payloadToSave =
|
|
386
|
+
const payloadToSave = chunkP5C4HEAB_cjs.saveScorePayloadSchema.parse(scorerResult);
|
|
387
387
|
const result = await scoresStore.saveScore(payloadToSave);
|
|
388
388
|
return result.score;
|
|
389
389
|
}
|
|
@@ -429,7 +429,7 @@ async function attachScoreToSpan({
|
|
|
429
429
|
} catch {
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
-
var scoreTracesWorkflow =
|
|
432
|
+
var scoreTracesWorkflow = chunkEAQQP6OK_cjs.createWorkflow({
|
|
433
433
|
id: "__batch-scoring-traces",
|
|
434
434
|
inputSchema: v4.z.object({
|
|
435
435
|
targets: v4.z.array(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
2
|
-
import { saveScorePayloadSchema } from '../../chunk-
|
|
3
|
-
import { getEntityTypeForSpan } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-MK5IF24D.js';
|
|
2
|
+
import { saveScorePayloadSchema } from '../../chunk-Y4SL4WJQ.js';
|
|
3
|
+
import { getEntityTypeForSpan } from '../../chunk-E7PBOS66.js';
|
|
4
4
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
|
5
5
|
import pMap from 'p-map';
|
|
6
6
|
import { z } from 'zod/v4';
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkD64ZY3NT_cjs = require('../chunk-D64ZY3NT.cjs');
|
|
4
|
+
var chunkSYH64AGV_cjs = require('../chunk-SYH64AGV.cjs');
|
|
5
5
|
var chunkRNJ2FXGD_cjs = require('../chunk-RNJ2FXGD.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkXS3FHQ34_cjs = require('../chunk-XS3FHQ34.cjs');
|
|
7
7
|
var chunkLDLHW3QN_cjs = require('../chunk-LDLHW3QN.cjs');
|
|
8
8
|
var chunkXB4FLS7A_cjs = require('../chunk-XB4FLS7A.cjs');
|
|
9
9
|
var chunk5WBEMKE2_cjs = require('../chunk-5WBEMKE2.cjs');
|
|
@@ -313,7 +313,7 @@ Use this tool when:
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
const workspace = context?.workspace;
|
|
316
|
-
const subagent = new
|
|
316
|
+
const subagent = new chunkSYH64AGV_cjs.Agent({
|
|
317
317
|
id: `subagent-${definition.id}`,
|
|
318
318
|
name: `${definition.name} Subagent`,
|
|
319
319
|
instructions: definition.instructions,
|
|
@@ -576,7 +576,7 @@ var Harness = class {
|
|
|
576
576
|
*/
|
|
577
577
|
async init() {
|
|
578
578
|
if (this.config.storage) {
|
|
579
|
-
this.#internalMastra = new
|
|
579
|
+
this.#internalMastra = new chunkD64ZY3NT_cjs.Mastra({ logger: false, storage: this.config.storage });
|
|
580
580
|
await this.#internalMastra.getStorage().init();
|
|
581
581
|
}
|
|
582
582
|
if (this.config.workspace && !this.workspaceInitialized && !this.workspaceFn) {
|
|
@@ -832,7 +832,7 @@ var Harness = class {
|
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
try {
|
|
835
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
835
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-25ELOB67.cjs');
|
|
836
836
|
const registry = PROVIDER_REGISTRY;
|
|
837
837
|
const providerConfig = registry[provider];
|
|
838
838
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -852,7 +852,7 @@ var Harness = class {
|
|
|
852
852
|
*/
|
|
853
853
|
async listAvailableModels() {
|
|
854
854
|
try {
|
|
855
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
855
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-25ELOB67.cjs');
|
|
856
856
|
if (!PROVIDER_REGISTRY) return [];
|
|
857
857
|
const registry = PROVIDER_REGISTRY;
|
|
858
858
|
const providers = Object.keys(registry);
|
|
@@ -911,7 +911,7 @@ var Harness = class {
|
|
|
911
911
|
}
|
|
912
912
|
async getProviderApiKeyEnvVar(provider) {
|
|
913
913
|
try {
|
|
914
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
914
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-25ELOB67.cjs');
|
|
915
915
|
const registry = PROVIDER_REGISTRY;
|
|
916
916
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
917
917
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
|
@@ -2573,7 +2573,7 @@ ${textContent}
|
|
|
2573
2573
|
case "tool_update": {
|
|
2574
2574
|
const tool = ds.activeTools.get(event.toolCallId);
|
|
2575
2575
|
if (tool) {
|
|
2576
|
-
tool.partialResult = typeof event.partialResult === "string" ? event.partialResult :
|
|
2576
|
+
tool.partialResult = typeof event.partialResult === "string" ? event.partialResult : chunkXS3FHQ34_cjs.safeStringify(event.partialResult);
|
|
2577
2577
|
}
|
|
2578
2578
|
break;
|
|
2579
2579
|
}
|
package/dist/harness/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Mastra } from '../chunk-
|
|
2
|
-
import { Agent } from '../chunk-
|
|
1
|
+
import { Mastra } from '../chunk-JBFAGOAG.js';
|
|
2
|
+
import { Agent } from '../chunk-PCHML5XO.js';
|
|
3
3
|
import { Workspace, createWorkspaceTools } from '../chunk-TD7IL7ZC.js';
|
|
4
|
-
import { safeStringify } from '../chunk-
|
|
4
|
+
import { safeStringify } from '../chunk-234T424F.js';
|
|
5
5
|
import { createTool } from '../chunk-JTIQYXE2.js';
|
|
6
6
|
import { toStandardSchema } from '../chunk-6SRTDZ7S.js';
|
|
7
7
|
import { RequestContext } from '../chunk-JGOH7RWL.js';
|
|
@@ -830,7 +830,7 @@ var Harness = class {
|
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
832
|
try {
|
|
833
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
833
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-UWTCPEFF.js');
|
|
834
834
|
const registry = PROVIDER_REGISTRY;
|
|
835
835
|
const providerConfig = registry[provider];
|
|
836
836
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -850,7 +850,7 @@ var Harness = class {
|
|
|
850
850
|
*/
|
|
851
851
|
async listAvailableModels() {
|
|
852
852
|
try {
|
|
853
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
853
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-UWTCPEFF.js');
|
|
854
854
|
if (!PROVIDER_REGISTRY) return [];
|
|
855
855
|
const registry = PROVIDER_REGISTRY;
|
|
856
856
|
const providers = Object.keys(registry);
|
|
@@ -909,7 +909,7 @@ var Harness = class {
|
|
|
909
909
|
}
|
|
910
910
|
async getProviderApiKeyEnvVar(provider) {
|
|
911
911
|
try {
|
|
912
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
912
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-UWTCPEFF.js');
|
|
913
913
|
const registry = PROVIDER_REGISTRY;
|
|
914
914
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
915
915
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkD64ZY3NT_cjs = require('./chunk-D64ZY3NT.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkD64ZY3NT_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
package/dist/llm/index.cjs
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkFCW225T4_cjs = require('../chunk-FCW225T4.cjs');
|
|
4
|
+
var chunkBFOZOAU2_cjs = require('../chunk-BFOZOAU2.cjs');
|
|
5
|
+
var chunkSUEVJYTA_cjs = require('../chunk-SUEVJYTA.cjs');
|
|
6
|
+
var chunk365PDOQ4_cjs = require('../chunk-365PDOQ4.cjs');
|
|
7
|
+
var chunkXEDVYHBK_cjs = require('../chunk-XEDVYHBK.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "AzureOpenAIGateway", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkFCW225T4_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkFCW225T4_cjs.EMBEDDING_MODELS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFCW225T4_cjs.ModelRouterEmbeddingModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkFCW225T4_cjs.ModelRouterLanguageModel; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "defaultGateways", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkFCW225T4_cjs.defaultGateways; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkFCW225T4_cjs.resolveModelConfig; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "GatewayRegistry", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkBFOZOAU2_cjs.GatewayRegistry; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MastraGateway", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkBFOZOAU2_cjs.MastraGateway; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkBFOZOAU2_cjs.PROVIDER_REGISTRY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkBFOZOAU2_cjs.getProviderConfig; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseModelString", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkBFOZOAU2_cjs.parseModelString; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkSUEVJYTA_cjs.ModelsDevGateway; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "NetlifyGateway", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk365PDOQ4_cjs.NetlifyGateway; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "GATEWAY_AUTH_HEADER", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkXEDVYHBK_cjs.GATEWAY_AUTH_HEADER; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "MastraModelGateway", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkXEDVYHBK_cjs.MastraModelGateway; }
|
|
70
70
|
});
|
|
71
71
|
//# sourceMappingURL=index.cjs.map
|
|
72
72
|
//# sourceMappingURL=index.cjs.map
|
package/dist/llm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-
|
|
2
|
-
export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-
|
|
3
|
-
export { ModelsDevGateway } from '../chunk-
|
|
4
|
-
export { NetlifyGateway } from '../chunk-
|
|
5
|
-
export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-
|
|
1
|
+
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-EJ62D3QH.js';
|
|
2
|
+
export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-V657RNGK.js';
|
|
3
|
+
export { ModelsDevGateway } from '../chunk-3RI7ILBW.js';
|
|
4
|
+
export { NetlifyGateway } from '../chunk-PQKSETS5.js';
|
|
5
|
+
export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-LUEXY2QV.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -21,6 +21,7 @@ export type ProviderModelsMap = {
|
|
|
21
21
|
'glm-4.6',
|
|
22
22
|
'glm-4.7',
|
|
23
23
|
'glm-5',
|
|
24
|
+
'glm-5.1',
|
|
24
25
|
'gpt-oss:120b',
|
|
25
26
|
'gpt-oss:20b',
|
|
26
27
|
'kimi-k2-thinking',
|
|
@@ -1833,6 +1834,7 @@ export type ProviderModelsMap = {
|
|
|
1833
1834
|
'z-ai/glm-4.7-flash',
|
|
1834
1835
|
'z-ai/glm-5',
|
|
1835
1836
|
'z-ai/glm-5-turbo',
|
|
1837
|
+
'z-ai/glm-5.1',
|
|
1836
1838
|
];
|
|
1837
1839
|
readonly zenmux: readonly [
|
|
1838
1840
|
'anthropic/claude-3.5-haiku',
|
|
@@ -2126,8 +2128,9 @@ export type ProviderModelsMap = {
|
|
|
2126
2128
|
'zai-org/GLM-4.7',
|
|
2127
2129
|
'zai-org/GLM-4.7-Flash',
|
|
2128
2130
|
'zai-org/GLM-5',
|
|
2131
|
+
'zai-org/GLM-5.1',
|
|
2129
2132
|
];
|
|
2130
|
-
readonly stepfun: readonly ['step-1-32k', 'step-2-16k', 'step-3.5-flash'];
|
|
2133
|
+
readonly stepfun: readonly ['step-1-32k', 'step-2-16k', 'step-3.5-flash', 'step-3.5-flash-2603'];
|
|
2131
2134
|
readonly fastrouter: readonly [
|
|
2132
2135
|
'anthropic/claude-opus-4.1',
|
|
2133
2136
|
'anthropic/claude-sonnet-4',
|
|
@@ -2736,6 +2739,13 @@ export type ProviderModelsMap = {
|
|
|
2736
2739
|
'qwen3.6-plus',
|
|
2737
2740
|
'qwq-plus',
|
|
2738
2741
|
];
|
|
2742
|
+
readonly mixlayer: readonly [
|
|
2743
|
+
'qwen/qwen3.5-122b-a10b',
|
|
2744
|
+
'qwen/qwen3.5-27b',
|
|
2745
|
+
'qwen/qwen3.5-35b-a3b',
|
|
2746
|
+
'qwen/qwen3.5-397b-a17b',
|
|
2747
|
+
'qwen/qwen3.5-9b',
|
|
2748
|
+
];
|
|
2739
2749
|
readonly mistral: readonly [
|
|
2740
2750
|
'codestral-latest',
|
|
2741
2751
|
'devstral-2512',
|
package/dist/logger/index.cjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFLMCO42Y_cjs = require('../chunk-FLMCO42Y.cjs');
|
|
4
4
|
var chunk7GW2TQXP_cjs = require('../chunk-7GW2TQXP.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "DualLogger", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkFLMCO42Y_cjs.DualLogger; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "LoggerTransport", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkFLMCO42Y_cjs.LoggerTransport; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "MultiLogger", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkFLMCO42Y_cjs.MultiLogger; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "createCustomTransport", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkFLMCO42Y_cjs.createCustomTransport; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "noopLogger", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkFLMCO42Y_cjs.noopLogger; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "ConsoleLogger", {
|
|
29
29
|
enumerable: true,
|
package/dist/logger/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DualLogger, LoggerTransport, MultiLogger, createCustomTransport, noopLogger } from '../chunk-
|
|
1
|
+
export { DualLogger, LoggerTransport, MultiLogger, createCustomTransport, noopLogger } from '../chunk-MZJQ7OKW.js';
|
|
2
2
|
export { ConsoleLogger, LogLevel, MastraLogger, RegisteredLogger, createLogger } from '../chunk-DBBWTK24.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|