@mastra/core 1.30.0-alpha.1 → 1.30.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.
Files changed (131) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/dist/agent/durable/index.cjs +22 -22
  3. package/dist/agent/durable/index.js +4 -4
  4. package/dist/agent/index.cjs +9 -9
  5. package/dist/agent/index.js +1 -1
  6. package/dist/browser/index.cjs +2 -2
  7. package/dist/browser/index.js +1 -1
  8. package/dist/channels/index.cjs +4 -4
  9. package/dist/channels/index.js +1 -1
  10. package/dist/{chunk-KL73E6QK.js → chunk-2UGZF32K.js} +6 -6
  11. package/dist/{chunk-KL73E6QK.js.map → chunk-2UGZF32K.js.map} +1 -1
  12. package/dist/{chunk-RQUGR73M.cjs → chunk-36SQPELR.cjs} +59 -59
  13. package/dist/{chunk-RQUGR73M.cjs.map → chunk-36SQPELR.cjs.map} +1 -1
  14. package/dist/{chunk-JFHZ6ZSE.cjs → chunk-3DW73O5A.cjs} +18 -18
  15. package/dist/{chunk-JFHZ6ZSE.cjs.map → chunk-3DW73O5A.cjs.map} +1 -1
  16. package/dist/{chunk-UBAE2LKC.js → chunk-3ZNPHDSY.js} +3 -3
  17. package/dist/{chunk-UBAE2LKC.js.map → chunk-3ZNPHDSY.js.map} +1 -1
  18. package/dist/{chunk-XPZUMGBT.cjs → chunk-4CXGZ7PZ.cjs} +6 -6
  19. package/dist/{chunk-XPZUMGBT.cjs.map → chunk-4CXGZ7PZ.cjs.map} +1 -1
  20. package/dist/{chunk-WKVOUMIY.js → chunk-54B23CPR.js} +3 -3
  21. package/dist/{chunk-WKVOUMIY.js.map → chunk-54B23CPR.js.map} +1 -1
  22. package/dist/{chunk-2CJAA244.js → chunk-CIE4UPHM.js} +3 -3
  23. package/dist/{chunk-2CJAA244.js.map → chunk-CIE4UPHM.js.map} +1 -1
  24. package/dist/{chunk-JPTP5VH4.js → chunk-ESRIWSIA.js} +4 -4
  25. package/dist/{chunk-JPTP5VH4.js.map → chunk-ESRIWSIA.js.map} +1 -1
  26. package/dist/{chunk-7JM7UHFE.cjs → chunk-F6ZJ6PMP.cjs} +3 -3
  27. package/dist/chunk-F6ZJ6PMP.cjs.map +1 -0
  28. package/dist/{chunk-Z4SWV2ZC.cjs → chunk-FAHETYAI.cjs} +14 -14
  29. package/dist/{chunk-Z4SWV2ZC.cjs.map → chunk-FAHETYAI.cjs.map} +1 -1
  30. package/dist/{chunk-OWG4YA2G.cjs → chunk-GCVSTCZ7.cjs} +4 -4
  31. package/dist/{chunk-OWG4YA2G.cjs.map → chunk-GCVSTCZ7.cjs.map} +1 -1
  32. package/dist/{chunk-6MHTL3F2.cjs → chunk-JAL5PN6F.cjs} +5 -5
  33. package/dist/{chunk-6MHTL3F2.cjs.map → chunk-JAL5PN6F.cjs.map} +1 -1
  34. package/dist/{chunk-RBRVVKHA.cjs → chunk-KGMUYIZN.cjs} +7 -7
  35. package/dist/{chunk-RBRVVKHA.cjs.map → chunk-KGMUYIZN.cjs.map} +1 -1
  36. package/dist/{chunk-G7A2HVQC.js → chunk-MHTNREIQ.js} +3 -3
  37. package/dist/chunk-MHTNREIQ.js.map +1 -0
  38. package/dist/{chunk-SYPXPX2B.js → chunk-OS3XEPVO.js} +4 -4
  39. package/dist/{chunk-SYPXPX2B.js.map → chunk-OS3XEPVO.js.map} +1 -1
  40. package/dist/{chunk-UNTMYRPU.js → chunk-OWO4JJNR.js} +9 -9
  41. package/dist/{chunk-UNTMYRPU.js.map → chunk-OWO4JJNR.js.map} +1 -1
  42. package/dist/{chunk-CCRG7RQX.js → chunk-TBGHF2UC.js} +4 -4
  43. package/dist/{chunk-CCRG7RQX.js.map → chunk-TBGHF2UC.js.map} +1 -1
  44. package/dist/{chunk-P2N3N22H.cjs → chunk-TOCDOYTX.cjs} +224 -224
  45. package/dist/{chunk-P2N3N22H.cjs.map → chunk-TOCDOYTX.cjs.map} +1 -1
  46. package/dist/{chunk-RVDDKJFA.js → chunk-U3IFSZTQ.js} +8 -8
  47. package/dist/{chunk-RVDDKJFA.js.map → chunk-U3IFSZTQ.js.map} +1 -1
  48. package/dist/{chunk-QN5MTCJK.cjs → chunk-UZ6ONJMX.cjs} +9 -9
  49. package/dist/{chunk-QN5MTCJK.cjs.map → chunk-UZ6ONJMX.cjs.map} +1 -1
  50. package/dist/{chunk-SHRPNMLE.cjs → chunk-WA4G4MJC.cjs} +389 -389
  51. package/dist/{chunk-SHRPNMLE.cjs.map → chunk-WA4G4MJC.cjs.map} +1 -1
  52. package/dist/{chunk-D6TN663R.js → chunk-WAHKXJC6.js} +4 -4
  53. package/dist/{chunk-D6TN663R.js.map → chunk-WAHKXJC6.js.map} +1 -1
  54. package/dist/{chunk-OKAHBYIU.js → chunk-X2PAQJZT.js} +4 -4
  55. package/dist/{chunk-OKAHBYIU.js.map → chunk-X2PAQJZT.js.map} +1 -1
  56. package/dist/{chunk-IQBFEGDE.cjs → chunk-YA6EYERE.cjs} +20 -20
  57. package/dist/{chunk-IQBFEGDE.cjs.map → chunk-YA6EYERE.cjs.map} +1 -1
  58. package/dist/datasets/index.cjs +17 -17
  59. package/dist/datasets/index.js +2 -2
  60. package/dist/docs/SKILL.md +2 -1
  61. package/dist/docs/assets/SOURCE_MAP.json +215 -215
  62. package/dist/docs/references/reference-storage-clickhouse.md +24 -18
  63. package/dist/docs/references/reference-storage-duckdb.md +150 -0
  64. package/dist/docs/references/reference.md +1 -0
  65. package/dist/evals/index.cjs +6 -6
  66. package/dist/evals/index.js +2 -2
  67. package/dist/evals/scoreTraces/index.cjs +3 -3
  68. package/dist/evals/scoreTraces/index.js +1 -1
  69. package/dist/harness/index.cjs +7 -7
  70. package/dist/harness/index.js +5 -5
  71. package/dist/index.cjs +2 -2
  72. package/dist/index.js +1 -1
  73. package/dist/llm/index.cjs +20 -20
  74. package/dist/llm/index.js +5 -5
  75. package/dist/loop/index.cjs +14 -14
  76. package/dist/loop/index.js +1 -1
  77. package/dist/mastra/index.cjs +2 -2
  78. package/dist/mastra/index.js +1 -1
  79. package/dist/mastra-DJUZZMNG.cjs +12 -0
  80. package/dist/{mastra-BAFUPFGB.cjs.map → mastra-DJUZZMNG.cjs.map} +1 -1
  81. package/dist/mastra-VWDGYZDW.js +3 -0
  82. package/dist/{mastra-5EFMIVHA.js.map → mastra-VWDGYZDW.js.map} +1 -1
  83. package/dist/memory/index.cjs +19 -19
  84. package/dist/memory/index.js +1 -1
  85. package/dist/models-dev-K5B2DUKV.js +3 -0
  86. package/dist/{models-dev-JPGUFR4T.js.map → models-dev-K5B2DUKV.js.map} +1 -1
  87. package/dist/models-dev-VDEV47JP.cjs +12 -0
  88. package/dist/{models-dev-RBI2SKEN.cjs.map → models-dev-VDEV47JP.cjs.map} +1 -1
  89. package/dist/netlify-7VI4LKAU.cjs +12 -0
  90. package/dist/{netlify-WHNPHSNE.cjs.map → netlify-7VI4LKAU.cjs.map} +1 -1
  91. package/dist/netlify-UL5XNQ7Y.js +3 -0
  92. package/dist/{netlify-YBQ6ABL3.js.map → netlify-UL5XNQ7Y.js.map} +1 -1
  93. package/dist/processor-provider/index.cjs +10 -10
  94. package/dist/processor-provider/index.js +1 -1
  95. package/dist/processors/index.cjs +49 -49
  96. package/dist/processors/index.js +1 -1
  97. package/dist/provider-registry-27CRYYRB.js +3 -0
  98. package/dist/{provider-registry-FU6AHZJL.js.map → provider-registry-27CRYYRB.js.map} +1 -1
  99. package/dist/provider-registry-GCGWKQD6.cjs +44 -0
  100. package/dist/{provider-registry-MMLUXVHQ.cjs.map → provider-registry-GCGWKQD6.cjs.map} +1 -1
  101. package/dist/relevance/index.cjs +3 -3
  102. package/dist/relevance/index.js +1 -1
  103. package/dist/runner-2NS3MIME.js +3 -0
  104. package/dist/{runner-UWLNDQQV.js.map → runner-2NS3MIME.js.map} +1 -1
  105. package/dist/runner-UDQYOIEQ.cjs +16 -0
  106. package/dist/{runner-RWI6TW2Q.cjs.map → runner-UDQYOIEQ.cjs.map} +1 -1
  107. package/dist/storage/index.cjs +72 -72
  108. package/dist/storage/index.js +3 -3
  109. package/dist/stream/index.cjs +11 -11
  110. package/dist/stream/index.js +1 -1
  111. package/dist/tool-loop-agent/index.cjs +4 -4
  112. package/dist/tool-loop-agent/index.js +1 -1
  113. package/dist/vector/index.cjs +7 -7
  114. package/dist/vector/index.js +1 -1
  115. package/dist/workflows/evented/index.cjs +10 -10
  116. package/dist/workflows/evented/index.js +1 -1
  117. package/dist/workflows/index.cjs +24 -24
  118. package/dist/workflows/index.js +1 -1
  119. package/package.json +9 -9
  120. package/dist/chunk-7JM7UHFE.cjs.map +0 -1
  121. package/dist/chunk-G7A2HVQC.js.map +0 -1
  122. package/dist/mastra-5EFMIVHA.js +0 -3
  123. package/dist/mastra-BAFUPFGB.cjs +0 -12
  124. package/dist/models-dev-JPGUFR4T.js +0 -3
  125. package/dist/models-dev-RBI2SKEN.cjs +0 -12
  126. package/dist/netlify-WHNPHSNE.cjs +0 -12
  127. package/dist/netlify-YBQ6ABL3.js +0 -3
  128. package/dist/provider-registry-FU6AHZJL.js +0 -3
  129. package/dist/provider-registry-MMLUXVHQ.cjs +0 -44
  130. package/dist/runner-RWI6TW2Q.cjs +0 -16
  131. package/dist/runner-UWLNDQQV.js +0 -3
@@ -2,15 +2,13 @@
2
2
 
3
3
  [ClickHouse](https://clickhouse.com/) is a columnar database designed for analytical workloads. The `@mastra/clickhouse` package provides storage adapters for several Mastra storage domains and is the recommended backend for production observability.
4
4
 
5
- ClickHouse is most commonly used as the dedicated observability backend in a [composite storage](https://mastra.ai/reference/storage/composite) setup, with another database serving the remaining domains. It can also back the supported domains on its own through `ClickhouseStore`.
5
+ ClickHouse is most commonly used as the dedicated observability backend in a [composite storage](https://mastra.ai/reference/storage/composite) setup, with another database serving the remaining domains.
6
6
 
7
7
  ## When to use ClickHouse
8
8
 
9
- - Production observability for traces, logs, metrics, scores, and feedback.
10
- - Append-heavy workloads where columnar storage and compression help keep costs down.
11
- - Deployment platforms with ephemeral filesystems (such as [Railway](#deploying-with-railway-and-similar-platforms), Fly.io, Render, Heroku, or container schedulers) where embedded backends like DuckDB cannot persist data.
9
+ Production observability for traces, logs, metrics, scores, and feedback.
12
10
 
13
- For local development, [LibSQL](https://mastra.ai/reference/storage/libsql) or `@mastra/duckdb` are usually a better fit because they need no external service.
11
+ For local development, use a composite store that combines [LibSQL](https://mastra.ai/reference/storage/libsql) (for memory and workflows) and `@mastra/duckdb` (for observability). Neither alone covers a development setup: LibSQL does not implement the observability domain, and DuckDB does not implement the other domains. See the [observability overview](https://mastra.ai/docs/observability/overview) for an example.
14
12
 
15
13
  ## Installation
16
14
 
@@ -51,7 +49,7 @@ Compose it with another storage adapter so observability writes do not contend w
51
49
  ```typescript
52
50
  import { Mastra } from '@mastra/core'
53
51
  import { MastraCompositeStore } from '@mastra/core/storage'
54
- import { LibSQLStore } from '@mastra/libsql'
52
+ import { PostgresStore } from '@mastra/pg'
55
53
  import { ObservabilityStorageClickhouseVNext } from '@mastra/clickhouse'
56
54
  import { Observability, DefaultExporter } from '@mastra/observability'
57
55
 
@@ -64,9 +62,9 @@ const observabilityStore = new ObservabilityStorageClickhouseVNext({
64
62
  export const mastra = new Mastra({
65
63
  storage: new MastraCompositeStore({
66
64
  id: 'composite-storage',
67
- default: new LibSQLStore({
68
- id: 'mastra-storage',
69
- url: 'file:./mastra.db',
65
+ default: new PostgresStore({
66
+ id: 'pg',
67
+ connectionString: process.env.DATABASE_URL!,
70
68
  }),
71
69
  domains: {
72
70
  observability: observabilityStore,
@@ -101,20 +99,28 @@ const observabilityStore = new ObservabilityStorageClickhouse({
101
99
 
102
100
  New projects should use `ObservabilityStorageClickhouseVNext` instead.
103
101
 
104
- ### Full storage with `ClickhouseStore`
102
+ ### ClickHouse for every domain
105
103
 
106
- `ClickhouseStore` implements the `memory`, `workflows`, `scores`, and `observability` domains. Use it when you want a single backend for the supported domains. For most observability deployments, the composite setup above is preferable because it isolates observability writes from primary application data.
104
+ `ClickhouseStore` implements the `memory`, `workflows`, and `observability` domains, and is suitable when you want ClickHouse to back the entire application. Its built-in observability domain uses the legacy adapter, so wrap it in a composite store that overrides the `observability` domain with `ObservabilityStorageClickhouseVNext`:
107
105
 
108
106
  ```typescript
109
107
  import { Mastra } from '@mastra/core'
110
- import { ClickhouseStore } from '@mastra/clickhouse'
108
+ import { MastraCompositeStore } from '@mastra/core/storage'
109
+ import { ClickhouseStore, ObservabilityStorageClickhouseVNext } from '@mastra/clickhouse'
110
+
111
+ const credentials = {
112
+ url: process.env.CLICKHOUSE_URL!,
113
+ username: process.env.CLICKHOUSE_USERNAME!,
114
+ password: process.env.CLICKHOUSE_PASSWORD!,
115
+ }
111
116
 
112
117
  export const mastra = new Mastra({
113
- storage: new ClickhouseStore({
114
- id: 'clickhouse-storage',
115
- url: process.env.CLICKHOUSE_URL!,
116
- username: process.env.CLICKHOUSE_USERNAME!,
117
- password: process.env.CLICKHOUSE_PASSWORD!,
118
+ storage: new MastraCompositeStore({
119
+ id: 'composite-storage',
120
+ default: new ClickhouseStore({ id: 'clickhouse-storage', ...credentials }),
121
+ domains: {
122
+ observability: new ObservabilityStorageClickhouseVNext(credentials),
123
+ },
118
124
  }),
119
125
  })
120
126
  ```
@@ -150,7 +156,7 @@ The same `client` form is accepted by `ObservabilityStorageClickhouse` and `Obse
150
156
 
151
157
  **username** (`string`): ClickHouse username. Required when not passing a pre-configured \`client\`.
152
158
 
153
- **password** (`string`): ClickHouse password. Required when not passing a pre-configured \`client\`. Can be an empty string for the default user on a local instance.
159
+ **password** (`string`): ClickHouse password. Required when not passing a pre-configured \`client\`. It can be an empty string for the default user on a local instance.
154
160
 
155
161
  **client** (`ClickHouseClient`): Pre-configured ClickHouse client from \`@clickhouse/client\`. Use this when you need custom request settings. Mutually exclusive with the credential fields above.
156
162
 
@@ -0,0 +1,150 @@
1
+ # DuckDB storage
2
+
3
+ [DuckDB](https://duckdb.org/) is an embedded, in-process analytical database. The `@mastra/duckdb` package provides an OLAP-backed observability store for local development, suitable for traces, logs, metrics, scores, and feedback without running an external service.
4
+
5
+ For vector search, see the [DuckDB vector store reference](https://mastra.ai/reference/vectors/duckdb), which is a separate API in the same package.
6
+
7
+ ## When to use DuckDB
8
+
9
+ Local development of observability features. DuckDB is embedded and file-based, so it does not require a server and starts instantly. It supports the same observability signals as ClickHouse, which makes it useful for testing dashboards and trace exploration before deploying to a production backend.
10
+
11
+ DuckDB currently implements only the `observability` domain. Pair it with another storage adapter (such as [LibSQL](https://mastra.ai/reference/storage/libsql)) for `memory` and `workflows` in a [composite storage](https://mastra.ai/reference/storage/composite) setup.
12
+
13
+ > **Warning:** DuckDB is for development and not recommended for production. It runs in-process, persists to a single local file, and does not work on platforms with ephemeral filesystems (such as Railway, Fly.io, Render, Heroku, or serverless containers). For production observability, use [ClickHouse](https://mastra.ai/reference/storage/clickhouse).
14
+
15
+ ## Installation
16
+
17
+ **npm**:
18
+
19
+ ```bash
20
+ npm install @mastra/duckdb@latest
21
+ ```
22
+
23
+ **pnpm**:
24
+
25
+ ```bash
26
+ pnpm add @mastra/duckdb@latest
27
+ ```
28
+
29
+ **Yarn**:
30
+
31
+ ```bash
32
+ yarn add @mastra/duckdb@latest
33
+ ```
34
+
35
+ **Bun**:
36
+
37
+ ```bash
38
+ bun add @mastra/duckdb@latest
39
+ ```
40
+
41
+ ## Usage
42
+
43
+ ### As the observability domain in a composite store
44
+
45
+ This is the standard local-development setup. LibSQL handles the other domains, and DuckDB handles observability.
46
+
47
+ ```typescript
48
+ import { Mastra } from '@mastra/core'
49
+ import { MastraCompositeStore } from '@mastra/core/storage'
50
+ import { LibSQLStore } from '@mastra/libsql'
51
+ import { DuckDBStore } from '@mastra/duckdb'
52
+ import { Observability, DefaultExporter } from '@mastra/observability'
53
+
54
+ export const mastra = new Mastra({
55
+ storage: new MastraCompositeStore({
56
+ id: 'composite-storage',
57
+ default: new LibSQLStore({
58
+ id: 'mastra-storage',
59
+ url: 'file:./mastra.db',
60
+ }),
61
+ domains: {
62
+ observability: new DuckDBStore().observability,
63
+ },
64
+ }),
65
+ observability: new Observability({
66
+ configs: {
67
+ default: {
68
+ serviceName: 'mastra',
69
+ exporters: [new DefaultExporter()],
70
+ },
71
+ },
72
+ }),
73
+ })
74
+ ```
75
+
76
+ The `.observability` accessor returns the observability domain store directly. The equivalent generic form uses `getStore()`, which works for any composite-style storage adapter:
77
+
78
+ ```typescript
79
+ const observability = await new DuckDBStore().getStore('observability')
80
+ ```
81
+
82
+ ### Standalone
83
+
84
+ When you need only observability storage outside the `Mastra` composite, instantiate `DuckDBStore` directly and access the observability domain:
85
+
86
+ ```typescript
87
+ import { DuckDBStore } from '@mastra/duckdb'
88
+
89
+ const duckdb = new DuckDBStore({ path: './traces.duckdb' })
90
+ const observability = duckdb.observability
91
+
92
+ await observability.init()
93
+ ```
94
+
95
+ ### In-memory database
96
+
97
+ Pass `:memory:` to use an ephemeral DuckDB instance. Data is lost when the process exits, which is appropriate for unit tests and short-lived scripts.
98
+
99
+ ```typescript
100
+ const duckdb = new DuckDBStore({ path: ':memory:' })
101
+ ```
102
+
103
+ ## Configuration
104
+
105
+ ### `DuckDBStore` options
106
+
107
+ **id** (`string`): Unique identifier for this storage instance. (Default: `'duckdb'`)
108
+
109
+ **path** (`string`): Path to the DuckDB database file. Use \`:memory:\` for an ephemeral in-memory database. (Default: `'mastra.duckdb'`)
110
+
111
+ ### Lower-level types
112
+
113
+ `@mastra/duckdb` also exports `DuckDBConnection` for sharing a single underlying database across multiple Mastra storage instances, and the corresponding `DuckDBStorageConfig` type. Most applications will not need these directly.
114
+
115
+ ## Supported domains
116
+
117
+ DuckDB currently implements one storage domain:
118
+
119
+ | Domain | Supported |
120
+ | --------------- | --------- |
121
+ | `observability` | Yes |
122
+ | `memory` | No |
123
+ | `workflows` | No |
124
+ | `scores` | No |
125
+ | `agents` | No |
126
+
127
+ For a full storage solution, compose `DuckDBStore` with an adapter that covers the missing domains (most commonly [LibSQL](https://mastra.ai/reference/storage/libsql) for local development).
128
+
129
+ ## Initialization
130
+
131
+ When passed to `Mastra` through `MastraCompositeStore`, the observability domain initializes itself on first use. To run initialization explicitly outside of `Mastra`, call `init()` on the observability store:
132
+
133
+ ```typescript
134
+ import { DuckDBStore } from '@mastra/duckdb'
135
+
136
+ const duckdb = new DuckDBStore({ path: './traces.duckdb' })
137
+ await duckdb.observability.init()
138
+ ```
139
+
140
+ ## Observability strategy
141
+
142
+ DuckDB supports the `event-sourced` strategy used by `DefaultExporter`, which buffers spans in memory and writes completed events in batches. This is appropriate for development-scale traffic. For high-volume production workloads, see [`DefaultExporter` storage provider support](https://mastra.ai/docs/observability/tracing/exporters/default).
143
+
144
+ ## Related
145
+
146
+ - [Storage overview](https://mastra.ai/reference/storage/overview)
147
+ - [Composite storage](https://mastra.ai/reference/storage/composite)
148
+ - [ClickHouse storage](https://mastra.ai/reference/storage/clickhouse): Production observability backend
149
+ - [DuckDB vector store](https://mastra.ai/reference/vectors/duckdb): Vector search using the same package
150
+ - [Observability overview](https://mastra.ai/docs/observability/overview)
@@ -199,6 +199,7 @@ The Reference section provides documentation of Mastra's API, including paramete
199
199
  - [Cloudflare KV Storage](https://mastra.ai/reference/storage/cloudflare)
200
200
  - [Composite Storage](https://mastra.ai/reference/storage/composite)
201
201
  - [Convex Storage](https://mastra.ai/reference/storage/convex)
202
+ - [DuckDB Storage](https://mastra.ai/reference/storage/duckdb)
202
203
  - [DynamoDB Storage](https://mastra.ai/reference/storage/dynamodb)
203
204
  - [LanceDB Storage](https://mastra.ai/reference/storage/lance)
204
205
  - [libSQL Storage](https://mastra.ai/reference/storage/libsql)
@@ -1,26 +1,26 @@
1
1
  'use strict';
2
2
 
3
- var chunk6MHTL3F2_cjs = require('../chunk-6MHTL3F2.cjs');
4
- var chunkZ4SWV2ZC_cjs = require('../chunk-Z4SWV2ZC.cjs');
3
+ var chunkJAL5PN6F_cjs = require('../chunk-JAL5PN6F.cjs');
4
+ var chunkFAHETYAI_cjs = require('../chunk-FAHETYAI.cjs');
5
5
  var chunkEEC3EO3T_cjs = require('../chunk-EEC3EO3T.cjs');
6
6
 
7
7
 
8
8
 
9
9
  Object.defineProperty(exports, "runEvals", {
10
10
  enumerable: true,
11
- get: function () { return chunk6MHTL3F2_cjs.runEvals; }
11
+ get: function () { return chunkJAL5PN6F_cjs.runEvals; }
12
12
  });
13
13
  Object.defineProperty(exports, "MastraScorer", {
14
14
  enumerable: true,
15
- get: function () { return chunkZ4SWV2ZC_cjs.MastraScorer; }
15
+ get: function () { return chunkFAHETYAI_cjs.MastraScorer; }
16
16
  });
17
17
  Object.defineProperty(exports, "createScorer", {
18
18
  enumerable: true,
19
- get: function () { return chunkZ4SWV2ZC_cjs.createScorer; }
19
+ get: function () { return chunkFAHETYAI_cjs.createScorer; }
20
20
  });
21
21
  Object.defineProperty(exports, "filterRun", {
22
22
  enumerable: true,
23
- get: function () { return chunkZ4SWV2ZC_cjs.filterRun; }
23
+ get: function () { return chunkFAHETYAI_cjs.filterRun; }
24
24
  });
25
25
  Object.defineProperty(exports, "extractTrajectory", {
26
26
  enumerable: true,
@@ -1,5 +1,5 @@
1
- export { runEvals } from '../chunk-2CJAA244.js';
2
- export { MastraScorer, createScorer, filterRun } from '../chunk-D6TN663R.js';
1
+ export { runEvals } from '../chunk-CIE4UPHM.js';
2
+ export { MastraScorer, createScorer, filterRun } from '../chunk-WAHKXJC6.js';
3
3
  export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-I6R27AUG.js';
4
4
  //# sourceMappingURL=index.js.map
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkRQUGR73M_cjs = require('../../chunk-RQUGR73M.cjs');
3
+ var chunk36SQPELR_cjs = require('../../chunk-36SQPELR.cjs');
4
4
  var chunkEEC3EO3T_cjs = require('../../chunk-EEC3EO3T.cjs');
5
5
  var chunkYGD6CZV4_cjs = require('../../chunk-YGD6CZV4.cjs');
6
6
  var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
@@ -234,7 +234,7 @@ function transformTraceToScorerInputAndOutput(trace) {
234
234
  }
235
235
 
236
236
  // src/evals/scoreTraces/scoreTracesWorkflow.ts
237
- var getTraceStep = chunkRQUGR73M_cjs.createStep({
237
+ var getTraceStep = chunk36SQPELR_cjs.createStep({
238
238
  id: "__process-trace-scoring",
239
239
  inputSchema: v4.z.object({
240
240
  targets: v4.z.array(
@@ -429,7 +429,7 @@ async function attachScoreToSpan({
429
429
  } catch {
430
430
  }
431
431
  }
432
- var scoreTracesWorkflow = chunkRQUGR73M_cjs.createWorkflow({
432
+ var scoreTracesWorkflow = chunk36SQPELR_cjs.createWorkflow({
433
433
  id: "__batch-scoring-traces",
434
434
  inputSchema: v4.z.object({
435
435
  targets: v4.z.array(
@@ -1,4 +1,4 @@
1
- import { createStep, createWorkflow } from '../../chunk-SYPXPX2B.js';
1
+ import { createStep, createWorkflow } from '../../chunk-OS3XEPVO.js';
2
2
  import { saveScorePayloadSchema } from '../../chunk-I6R27AUG.js';
3
3
  import { getEntityTypeForSpan } from '../../chunk-G2SVLNSC.js';
4
4
  import { MastraError } from '../../chunk-FJEVLHJT.js';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkJFHZ6ZSE_cjs = require('../chunk-JFHZ6ZSE.cjs');
4
- var chunkZ4SWV2ZC_cjs = require('../chunk-Z4SWV2ZC.cjs');
3
+ var chunk3DW73O5A_cjs = require('../chunk-3DW73O5A.cjs');
4
+ var chunkFAHETYAI_cjs = require('../chunk-FAHETYAI.cjs');
5
5
  var chunkYQR772OH_cjs = require('../chunk-YQR772OH.cjs');
6
6
  var chunkNNRGAKKH_cjs = require('../chunk-NNRGAKKH.cjs');
7
7
  var chunkM4KUR53T_cjs = require('../chunk-M4KUR53T.cjs');
@@ -419,7 +419,7 @@ ${FORKED_SUBAGENT_NESTING_NOTICE}`;
419
419
  isError: true
420
420
  };
421
421
  }
422
- subagentToRun = new chunkZ4SWV2ZC_cjs.Agent({
422
+ subagentToRun = new chunkFAHETYAI_cjs.Agent({
423
423
  id: `subagent-${definition.id}`,
424
424
  name: `${definition.name} Subagent`,
425
425
  instructions: definition.instructions,
@@ -698,7 +698,7 @@ var Harness = class {
698
698
  */
699
699
  async init() {
700
700
  if (this.config.storage) {
701
- this.#internalMastra = new chunkJFHZ6ZSE_cjs.Mastra({
701
+ this.#internalMastra = new chunk3DW73O5A_cjs.Mastra({
702
702
  logger: false,
703
703
  storage: this.config.storage,
704
704
  ...this.config.observability ? { observability: this.config.observability } : {}
@@ -958,7 +958,7 @@ var Harness = class {
958
958
  }
959
959
  }
960
960
  try {
961
- const { PROVIDER_REGISTRY } = await import('../provider-registry-MMLUXVHQ.cjs');
961
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-GCGWKQD6.cjs');
962
962
  const registry = PROVIDER_REGISTRY;
963
963
  const providerConfig = registry[provider];
964
964
  const envVars = providerConfig?.apiKeyEnvVar;
@@ -978,7 +978,7 @@ var Harness = class {
978
978
  */
979
979
  async listAvailableModels() {
980
980
  try {
981
- const { PROVIDER_REGISTRY } = await import('../provider-registry-MMLUXVHQ.cjs');
981
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-GCGWKQD6.cjs');
982
982
  if (!PROVIDER_REGISTRY) return [];
983
983
  const registry = PROVIDER_REGISTRY;
984
984
  const providers = Object.keys(registry);
@@ -1037,7 +1037,7 @@ var Harness = class {
1037
1037
  }
1038
1038
  async getProviderApiKeyEnvVar(provider) {
1039
1039
  try {
1040
- const { PROVIDER_REGISTRY } = await import('../provider-registry-MMLUXVHQ.cjs');
1040
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-GCGWKQD6.cjs');
1041
1041
  const registry = PROVIDER_REGISTRY;
1042
1042
  const envVars = registry[provider]?.apiKeyEnvVar;
1043
1043
  return Array.isArray(envVars) ? envVars[0] : envVars;
@@ -1,5 +1,5 @@
1
- import { Mastra } from '../chunk-UNTMYRPU.js';
2
- import { Agent } from '../chunk-D6TN663R.js';
1
+ import { Mastra } from '../chunk-OWO4JJNR.js';
2
+ import { Agent } from '../chunk-WAHKXJC6.js';
3
3
  import { Workspace, createWorkspaceTools } from '../chunk-KGL33Q5K.js';
4
4
  import { safeStringify } from '../chunk-5A3PCABN.js';
5
5
  import { createTool } from '../chunk-PXOIM2JE.js';
@@ -956,7 +956,7 @@ var Harness = class {
956
956
  }
957
957
  }
958
958
  try {
959
- const { PROVIDER_REGISTRY } = await import('../provider-registry-FU6AHZJL.js');
959
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-27CRYYRB.js');
960
960
  const registry = PROVIDER_REGISTRY;
961
961
  const providerConfig = registry[provider];
962
962
  const envVars = providerConfig?.apiKeyEnvVar;
@@ -976,7 +976,7 @@ var Harness = class {
976
976
  */
977
977
  async listAvailableModels() {
978
978
  try {
979
- const { PROVIDER_REGISTRY } = await import('../provider-registry-FU6AHZJL.js');
979
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-27CRYYRB.js');
980
980
  if (!PROVIDER_REGISTRY) return [];
981
981
  const registry = PROVIDER_REGISTRY;
982
982
  const providers = Object.keys(registry);
@@ -1035,7 +1035,7 @@ var Harness = class {
1035
1035
  }
1036
1036
  async getProviderApiKeyEnvVar(provider) {
1037
1037
  try {
1038
- const { PROVIDER_REGISTRY } = await import('../provider-registry-FU6AHZJL.js');
1038
+ const { PROVIDER_REGISTRY } = await import('../provider-registry-27CRYYRB.js');
1039
1039
  const registry = PROVIDER_REGISTRY;
1040
1040
  const envVars = registry[provider]?.apiKeyEnvVar;
1041
1041
  return Array.isArray(envVars) ? envVars[0] : envVars;
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkJFHZ6ZSE_cjs = require('./chunk-JFHZ6ZSE.cjs');
3
+ var chunk3DW73O5A_cjs = require('./chunk-3DW73O5A.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkJFHZ6ZSE_cjs.Mastra; }
9
+ get: function () { return chunk3DW73O5A_cjs.Mastra; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { Mastra } from './chunk-UNTMYRPU.js';
1
+ export { Mastra } from './chunk-OWO4JJNR.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,72 +1,72 @@
1
1
  'use strict';
2
2
 
3
- var chunkSHRPNMLE_cjs = require('../chunk-SHRPNMLE.cjs');
4
- var chunkIQBFEGDE_cjs = require('../chunk-IQBFEGDE.cjs');
5
- var chunkP2N3N22H_cjs = require('../chunk-P2N3N22H.cjs');
6
- var chunkQN5MTCJK_cjs = require('../chunk-QN5MTCJK.cjs');
7
- var chunk7JM7UHFE_cjs = require('../chunk-7JM7UHFE.cjs');
3
+ var chunkWA4G4MJC_cjs = require('../chunk-WA4G4MJC.cjs');
4
+ var chunkYA6EYERE_cjs = require('../chunk-YA6EYERE.cjs');
5
+ var chunkTOCDOYTX_cjs = require('../chunk-TOCDOYTX.cjs');
6
+ var chunkUZ6ONJMX_cjs = require('../chunk-UZ6ONJMX.cjs');
7
+ var chunkF6ZJ6PMP_cjs = require('../chunk-F6ZJ6PMP.cjs');
8
8
 
9
9
 
10
10
 
11
11
  Object.defineProperty(exports, "AzureOpenAIGateway", {
12
12
  enumerable: true,
13
- get: function () { return chunkSHRPNMLE_cjs.AzureOpenAIGateway; }
13
+ get: function () { return chunkWA4G4MJC_cjs.AzureOpenAIGateway; }
14
14
  });
15
15
  Object.defineProperty(exports, "EMBEDDING_MODELS", {
16
16
  enumerable: true,
17
- get: function () { return chunkSHRPNMLE_cjs.EMBEDDING_MODELS; }
17
+ get: function () { return chunkWA4G4MJC_cjs.EMBEDDING_MODELS; }
18
18
  });
19
19
  Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
20
20
  enumerable: true,
21
- get: function () { return chunkSHRPNMLE_cjs.ModelRouterEmbeddingModel; }
21
+ get: function () { return chunkWA4G4MJC_cjs.ModelRouterEmbeddingModel; }
22
22
  });
23
23
  Object.defineProperty(exports, "ModelRouterLanguageModel", {
24
24
  enumerable: true,
25
- get: function () { return chunkSHRPNMLE_cjs.ModelRouterLanguageModel; }
25
+ get: function () { return chunkWA4G4MJC_cjs.ModelRouterLanguageModel; }
26
26
  });
27
27
  Object.defineProperty(exports, "defaultGateways", {
28
28
  enumerable: true,
29
- get: function () { return chunkSHRPNMLE_cjs.defaultGateways; }
29
+ get: function () { return chunkWA4G4MJC_cjs.defaultGateways; }
30
30
  });
31
31
  Object.defineProperty(exports, "resolveModelConfig", {
32
32
  enumerable: true,
33
- get: function () { return chunkSHRPNMLE_cjs.resolveModelConfig; }
33
+ get: function () { return chunkWA4G4MJC_cjs.resolveModelConfig; }
34
34
  });
35
35
  Object.defineProperty(exports, "GatewayRegistry", {
36
36
  enumerable: true,
37
- get: function () { return chunkIQBFEGDE_cjs.GatewayRegistry; }
37
+ get: function () { return chunkYA6EYERE_cjs.GatewayRegistry; }
38
38
  });
39
39
  Object.defineProperty(exports, "MastraGateway", {
40
40
  enumerable: true,
41
- get: function () { return chunkIQBFEGDE_cjs.MastraGateway; }
41
+ get: function () { return chunkYA6EYERE_cjs.MastraGateway; }
42
42
  });
43
43
  Object.defineProperty(exports, "PROVIDER_REGISTRY", {
44
44
  enumerable: true,
45
- get: function () { return chunkIQBFEGDE_cjs.PROVIDER_REGISTRY; }
45
+ get: function () { return chunkYA6EYERE_cjs.PROVIDER_REGISTRY; }
46
46
  });
47
47
  Object.defineProperty(exports, "getProviderConfig", {
48
48
  enumerable: true,
49
- get: function () { return chunkIQBFEGDE_cjs.getProviderConfig; }
49
+ get: function () { return chunkYA6EYERE_cjs.getProviderConfig; }
50
50
  });
51
51
  Object.defineProperty(exports, "parseModelString", {
52
52
  enumerable: true,
53
- get: function () { return chunkIQBFEGDE_cjs.parseModelString; }
53
+ get: function () { return chunkYA6EYERE_cjs.parseModelString; }
54
54
  });
55
55
  Object.defineProperty(exports, "ModelsDevGateway", {
56
56
  enumerable: true,
57
- get: function () { return chunkP2N3N22H_cjs.ModelsDevGateway; }
57
+ get: function () { return chunkTOCDOYTX_cjs.ModelsDevGateway; }
58
58
  });
59
59
  Object.defineProperty(exports, "NetlifyGateway", {
60
60
  enumerable: true,
61
- get: function () { return chunkQN5MTCJK_cjs.NetlifyGateway; }
61
+ get: function () { return chunkUZ6ONJMX_cjs.NetlifyGateway; }
62
62
  });
63
63
  Object.defineProperty(exports, "GATEWAY_AUTH_HEADER", {
64
64
  enumerable: true,
65
- get: function () { return chunk7JM7UHFE_cjs.GATEWAY_AUTH_HEADER; }
65
+ get: function () { return chunkF6ZJ6PMP_cjs.GATEWAY_AUTH_HEADER; }
66
66
  });
67
67
  Object.defineProperty(exports, "MastraModelGateway", {
68
68
  enumerable: true,
69
- get: function () { return chunk7JM7UHFE_cjs.MastraModelGateway; }
69
+ get: function () { return chunkF6ZJ6PMP_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-KL73E6QK.js';
2
- export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-RVDDKJFA.js';
3
- export { ModelsDevGateway } from '../chunk-WKVOUMIY.js';
4
- export { NetlifyGateway } from '../chunk-UBAE2LKC.js';
5
- export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-G7A2HVQC.js';
1
+ export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, defaultGateways, resolveModelConfig } from '../chunk-2UGZF32K.js';
2
+ export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-U3IFSZTQ.js';
3
+ export { ModelsDevGateway } from '../chunk-54B23CPR.js';
4
+ export { NetlifyGateway } from '../chunk-3ZNPHDSY.js';
5
+ export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-MHTNREIQ.js';
6
6
  //# sourceMappingURL=index.js.map
7
7
  //# sourceMappingURL=index.js.map
@@ -1,60 +1,60 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ4SWV2ZC_cjs = require('../chunk-Z4SWV2ZC.cjs');
3
+ var chunkFAHETYAI_cjs = require('../chunk-FAHETYAI.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createScorer", {
8
8
  enumerable: true,
9
- get: function () { return chunkZ4SWV2ZC_cjs.createScorer; }
9
+ get: function () { return chunkFAHETYAI_cjs.createScorer; }
10
10
  });
11
11
  Object.defineProperty(exports, "formatCheckFeedback", {
12
12
  enumerable: true,
13
- get: function () { return chunkZ4SWV2ZC_cjs.formatCheckFeedback; }
13
+ get: function () { return chunkFAHETYAI_cjs.formatCheckFeedback; }
14
14
  });
15
15
  Object.defineProperty(exports, "formatCompletionFeedback", {
16
16
  enumerable: true,
17
- get: function () { return chunkZ4SWV2ZC_cjs.formatCompletionFeedback; }
17
+ get: function () { return chunkFAHETYAI_cjs.formatCompletionFeedback; }
18
18
  });
19
19
  Object.defineProperty(exports, "formatStreamCompletionFeedback", {
20
20
  enumerable: true,
21
- get: function () { return chunkZ4SWV2ZC_cjs.formatStreamCompletionFeedback; }
21
+ get: function () { return chunkFAHETYAI_cjs.formatStreamCompletionFeedback; }
22
22
  });
23
23
  Object.defineProperty(exports, "formatValidationFeedback", {
24
24
  enumerable: true,
25
- get: function () { return chunkZ4SWV2ZC_cjs.formatValidationFeedback; }
25
+ get: function () { return chunkFAHETYAI_cjs.formatValidationFeedback; }
26
26
  });
27
27
  Object.defineProperty(exports, "generateFinalResult", {
28
28
  enumerable: true,
29
- get: function () { return chunkZ4SWV2ZC_cjs.generateFinalResult; }
29
+ get: function () { return chunkFAHETYAI_cjs.generateFinalResult; }
30
30
  });
31
31
  Object.defineProperty(exports, "generateStructuredFinalResult", {
32
32
  enumerable: true,
33
- get: function () { return chunkZ4SWV2ZC_cjs.generateStructuredFinalResult; }
33
+ get: function () { return chunkFAHETYAI_cjs.generateStructuredFinalResult; }
34
34
  });
35
35
  Object.defineProperty(exports, "loop", {
36
36
  enumerable: true,
37
- get: function () { return chunkZ4SWV2ZC_cjs.loop; }
37
+ get: function () { return chunkFAHETYAI_cjs.loop; }
38
38
  });
39
39
  Object.defineProperty(exports, "runChecks", {
40
40
  enumerable: true,
41
- get: function () { return chunkZ4SWV2ZC_cjs.runChecks; }
41
+ get: function () { return chunkFAHETYAI_cjs.runChecks; }
42
42
  });
43
43
  Object.defineProperty(exports, "runCompletionScorers", {
44
44
  enumerable: true,
45
- get: function () { return chunkZ4SWV2ZC_cjs.runCompletionScorers; }
45
+ get: function () { return chunkFAHETYAI_cjs.runCompletionScorers; }
46
46
  });
47
47
  Object.defineProperty(exports, "runDefaultCompletionCheck", {
48
48
  enumerable: true,
49
- get: function () { return chunkZ4SWV2ZC_cjs.runDefaultCompletionCheck; }
49
+ get: function () { return chunkFAHETYAI_cjs.runDefaultCompletionCheck; }
50
50
  });
51
51
  Object.defineProperty(exports, "runStreamCompletionScorers", {
52
52
  enumerable: true,
53
- get: function () { return chunkZ4SWV2ZC_cjs.runStreamCompletionScorers; }
53
+ get: function () { return chunkFAHETYAI_cjs.runStreamCompletionScorers; }
54
54
  });
55
55
  Object.defineProperty(exports, "runValidation", {
56
56
  enumerable: true,
57
- get: function () { return chunkZ4SWV2ZC_cjs.runValidation; }
57
+ get: function () { return chunkFAHETYAI_cjs.runValidation; }
58
58
  });
59
59
  //# sourceMappingURL=index.cjs.map
60
60
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-D6TN663R.js';
1
+ export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-WAHKXJC6.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkJFHZ6ZSE_cjs = require('../chunk-JFHZ6ZSE.cjs');
3
+ var chunk3DW73O5A_cjs = require('../chunk-3DW73O5A.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Mastra", {
8
8
  enumerable: true,
9
- get: function () { return chunkJFHZ6ZSE_cjs.Mastra; }
9
+ get: function () { return chunk3DW73O5A_cjs.Mastra; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
@@ -1,3 +1,3 @@
1
- export { Mastra } from '../chunk-UNTMYRPU.js';
1
+ export { Mastra } from '../chunk-OWO4JJNR.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map