@mastra/core 1.23.0-alpha.4 → 1.23.0-alpha.5
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 +8 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/base.cjs +2 -2
- package/dist/base.d.ts.map +1 -1
- package/dist/base.js +1 -1
- package/dist/browser/index.cjs +6 -6
- package/dist/browser/index.js +3 -3
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/cache/index.cjs +3 -3
- package/dist/cache/index.js +1 -1
- package/dist/channels/index.cjs +4 -4
- package/dist/channels/index.js +1 -1
- package/dist/{chunk-CIV5MFO6.cjs → chunk-25EDFTQD.cjs} +4 -4
- package/dist/{chunk-CIV5MFO6.cjs.map → chunk-25EDFTQD.cjs.map} +1 -1
- package/dist/{chunk-K6W2C7PA.js → chunk-3APK6ZID.js} +3 -3
- package/dist/{chunk-K6W2C7PA.js.map → chunk-3APK6ZID.js.map} +1 -1
- package/dist/{chunk-YRDMMXBW.cjs → chunk-47RKHZIP.cjs} +34 -2
- package/dist/chunk-47RKHZIP.cjs.map +1 -0
- package/dist/{chunk-JK5YBBUS.cjs → chunk-4W26D7S6.cjs} +13 -13
- package/dist/chunk-4W26D7S6.cjs.map +1 -0
- package/dist/{chunk-7273BIRR.js → chunk-6UQKQBIB.js} +3 -3
- package/dist/{chunk-7273BIRR.js.map → chunk-6UQKQBIB.js.map} +1 -1
- package/dist/{chunk-G5WUD7SF.js → chunk-72EQLBZY.js} +3 -3
- package/dist/{chunk-G5WUD7SF.js.map → chunk-72EQLBZY.js.map} +1 -1
- package/dist/{chunk-C3G6OQ52.cjs → chunk-7DONY7OL.cjs} +10 -11
- package/dist/chunk-7DONY7OL.cjs.map +1 -0
- package/dist/{chunk-HBO2PK7W.cjs → chunk-7GW2TQXP.cjs} +4 -3
- package/dist/chunk-7GW2TQXP.cjs.map +1 -0
- package/dist/{chunk-74IXDLKF.cjs → chunk-7STIIXEL.cjs} +3 -3
- package/dist/{chunk-74IXDLKF.cjs.map → chunk-7STIIXEL.cjs.map} +1 -1
- package/dist/{chunk-44P7C37G.js → chunk-BMS7MLQV.js} +31 -3
- package/dist/chunk-BMS7MLQV.js.map +1 -0
- package/dist/{chunk-GEI2HTYE.js → chunk-C77V6J36.js} +3 -3
- package/dist/{chunk-GEI2HTYE.js.map → chunk-C77V6J36.js.map} +1 -1
- package/dist/{chunk-ANFGVHG2.cjs → chunk-DAQ4JZQA.cjs} +4 -4
- package/dist/{chunk-ANFGVHG2.cjs.map → chunk-DAQ4JZQA.cjs.map} +1 -1
- package/dist/{chunk-M3LRSDLL.js → chunk-DBBWTK24.js} +4 -3
- package/dist/chunk-DBBWTK24.js.map +1 -0
- package/dist/{chunk-JSG6FULW.cjs → chunk-DO4JBKMT.cjs} +109 -110
- package/dist/chunk-DO4JBKMT.cjs.map +1 -0
- package/dist/{chunk-PGXL3YYH.js → chunk-EG3UGEUZ.js} +4 -4
- package/dist/{chunk-PGXL3YYH.js.map → chunk-EG3UGEUZ.js.map} +1 -1
- package/dist/{chunk-KRDAO5BB.js → chunk-EXORPYDN.js} +3 -3
- package/dist/{chunk-KRDAO5BB.js.map → chunk-EXORPYDN.js.map} +1 -1
- package/dist/{chunk-DKK77FIJ.cjs → chunk-FCQNDFEW.cjs} +7 -7
- package/dist/chunk-FCQNDFEW.cjs.map +1 -0
- package/dist/{chunk-SQXNHM6M.cjs → chunk-FSHOQBGF.cjs} +28 -28
- package/dist/{chunk-SQXNHM6M.cjs.map → chunk-FSHOQBGF.cjs.map} +1 -1
- package/dist/{chunk-3EXOZA2Y.js → chunk-HQXVBGBM.js} +3 -3
- package/dist/{chunk-3EXOZA2Y.js.map → chunk-HQXVBGBM.js.map} +1 -1
- package/dist/{chunk-UUVQS3OG.js → chunk-HWAEQSOO.js} +12 -12
- package/dist/{chunk-UUVQS3OG.js.map → chunk-HWAEQSOO.js.map} +1 -1
- package/dist/{chunk-OF675HEC.cjs → chunk-I4YMMVQ3.cjs} +4 -4
- package/dist/{chunk-OF675HEC.cjs.map → chunk-I4YMMVQ3.cjs.map} +1 -1
- package/dist/{chunk-C264FG5X.js → chunk-I6XSSR4Z.js} +8 -8
- package/dist/{chunk-C264FG5X.js.map → chunk-I6XSSR4Z.js.map} +1 -1
- package/dist/{chunk-JAAICSXU.cjs → chunk-JF3WPB75.cjs} +32 -32
- package/dist/{chunk-JAAICSXU.cjs.map → chunk-JF3WPB75.cjs.map} +1 -1
- package/dist/{chunk-R577LMHJ.cjs → chunk-JJFGNYVY.cjs} +7 -7
- package/dist/{chunk-R577LMHJ.cjs.map → chunk-JJFGNYVY.cjs.map} +1 -1
- package/dist/{chunk-MISEF5LK.js → chunk-JNXWDPCZ.js} +6 -6
- package/dist/chunk-JNXWDPCZ.js.map +1 -0
- package/dist/{chunk-AQUKI2MV.js → chunk-L2MCWEEX.js} +6 -6
- package/dist/{chunk-AQUKI2MV.js.map → chunk-L2MCWEEX.js.map} +1 -1
- package/dist/{chunk-6VIWRHC3.js → chunk-QIJFD7ZC.js} +5 -5
- package/dist/{chunk-6VIWRHC3.js.map → chunk-QIJFD7ZC.js.map} +1 -1
- package/dist/{chunk-7QI6WHSE.js → chunk-QRK2HWHI.js} +8 -8
- package/dist/{chunk-7QI6WHSE.js.map → chunk-QRK2HWHI.js.map} +1 -1
- package/dist/{chunk-KCVSVDQ2.js → chunk-QYQSXRFZ.js} +13 -14
- package/dist/chunk-QYQSXRFZ.js.map +1 -0
- package/dist/{chunk-T26CFBWF.cjs → chunk-RAD2NM47.cjs} +4 -4
- package/dist/{chunk-T26CFBWF.cjs.map → chunk-RAD2NM47.cjs.map} +1 -1
- package/dist/{chunk-NBOTSCZC.js → chunk-TG46FM6X.js} +4 -4
- package/dist/{chunk-NBOTSCZC.js.map → chunk-TG46FM6X.js.map} +1 -1
- package/dist/{chunk-Y67VWDR7.cjs → chunk-TKH2A57J.cjs} +185 -185
- package/dist/{chunk-Y67VWDR7.cjs.map → chunk-TKH2A57J.cjs.map} +1 -1
- package/dist/{chunk-DBN5B2LH.cjs → chunk-UENWRQLR.cjs} +18 -18
- package/dist/{chunk-DBN5B2LH.cjs.map → chunk-UENWRQLR.cjs.map} +1 -1
- package/dist/{chunk-ZOLIH66J.cjs → chunk-V7AX2MSJ.cjs} +20 -20
- package/dist/{chunk-ZOLIH66J.cjs.map → chunk-V7AX2MSJ.cjs.map} +1 -1
- package/dist/{chunk-Z2IR7J5I.js → chunk-VO6R5RZT.js} +8 -9
- package/dist/chunk-VO6R5RZT.js.map +1 -0
- package/dist/{chunk-DNW46JHP.js → chunk-WENZPAHS.js} +4 -4
- package/dist/chunk-WENZPAHS.js.map +1 -0
- package/dist/{chunk-HIC3WGQU.cjs → chunk-X6CDTXAM.cjs} +11 -11
- package/dist/{chunk-HIC3WGQU.cjs.map → chunk-X6CDTXAM.cjs.map} +1 -1
- package/dist/{chunk-CHY6AP6N.cjs → chunk-XFLQVMNH.cjs} +26 -26
- package/dist/{chunk-CHY6AP6N.cjs.map → chunk-XFLQVMNH.cjs.map} +1 -1
- package/dist/{chunk-OFABGAOY.cjs → chunk-XZCYFQ4N.cjs} +64 -65
- package/dist/chunk-XZCYFQ4N.cjs.map +1 -0
- package/dist/{chunk-LBL7GNPF.cjs → chunk-YR7XRMDN.cjs} +10 -10
- package/dist/{chunk-LBL7GNPF.cjs.map → chunk-YR7XRMDN.cjs.map} +1 -1
- package/dist/{chunk-XGUUUEE4.js → chunk-Z34TVGNZ.js} +4 -4
- package/dist/{chunk-XGUUUEE4.js.map → chunk-Z34TVGNZ.js.map} +1 -1
- package/dist/{chunk-EHBTASCW.js → chunk-Z63F3XHK.js} +5 -6
- package/dist/chunk-Z63F3XHK.js.map +1 -0
- package/dist/{chunk-KJDRVBAH.cjs → chunk-Z67JQNEH.cjs} +11 -11
- package/dist/{chunk-KJDRVBAH.cjs.map → chunk-Z67JQNEH.cjs.map} +1 -1
- package/dist/{chunk-QVTTP5HC.js → chunk-ZCBMZ24O.js} +3 -3
- package/dist/{chunk-QVTTP5HC.js.map → chunk-ZCBMZ24O.js.map} +1 -1
- package/dist/{chunk-NMO7ITAY.js → chunk-ZHYPWNWS.js} +5 -5
- package/dist/{chunk-NMO7ITAY.js.map → chunk-ZHYPWNWS.js.map} +1 -1
- package/dist/{chunk-B7JN64YW.cjs → chunk-ZUN5CMDY.cjs} +86 -86
- package/dist/{chunk-B7JN64YW.cjs.map → chunk-ZUN5CMDY.cjs.map} +1 -1
- package/dist/datasets/index.cjs +17 -17
- package/dist/datasets/index.js +2 -2
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/docs/SKILL.md +2 -2
- package/dist/docs/assets/SOURCE_MAP.json +499 -499
- package/dist/docs/references/reference-templates-overview.md +88 -14
- 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 +13 -13
- package/dist/harness/index.js +7 -7
- 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/logger/default-logger.d.ts +1 -1
- package/dist/logger/default-logger.d.ts.map +1 -1
- package/dist/logger/index.cjs +12 -12
- package/dist/logger/index.js +2 -2
- 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.js +1 -1
- package/dist/mastra-O4WWP6N5.js +3 -0
- package/dist/{mastra-5WYO5ZWG.js.map → mastra-O4WWP6N5.js.map} +1 -1
- package/dist/mastra-VHS7LVQG.cjs +12 -0
- package/dist/{mastra-LIISVKXT.cjs.map → mastra-VHS7LVQG.cjs.map} +1 -1
- package/dist/mcp/index.cjs +4 -4
- package/dist/mcp/index.js +2 -2
- package/dist/memory/index.cjs +17 -17
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-3IPTEPRM.cjs +12 -0
- package/dist/{models-dev-GD4LL56A.cjs.map → models-dev-3IPTEPRM.cjs.map} +1 -1
- package/dist/models-dev-4W7JQVWR.js +3 -0
- package/dist/{models-dev-CJ7IIPNG.js.map → models-dev-4W7JQVWR.js.map} +1 -1
- package/dist/netlify-FZBGNFDI.js +3 -0
- package/dist/{netlify-PMGHRONJ.js.map → netlify-FZBGNFDI.js.map} +1 -1
- package/dist/netlify-XT32D45G.cjs +12 -0
- package/dist/{netlify-6V7UBVTK.cjs.map → netlify-XT32D45G.cjs.map} +1 -1
- package/dist/observability/context-storage.cjs +28 -14
- package/dist/observability/context-storage.cjs.map +1 -1
- package/dist/observability/context-storage.d.ts.map +1 -1
- package/dist/observability/context-storage.js +28 -1
- package/dist/observability/context-storage.js.map +1 -1
- package/dist/observability/index.cjs +26 -10
- package/dist/observability/index.js +1 -1
- package/dist/observability/utils.d.ts +27 -0
- package/dist/observability/utils.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-AWL2JDVF.js +3 -0
- package/dist/{provider-registry-JV46DWD7.js.map → provider-registry-AWL2JDVF.js.map} +1 -1
- package/dist/provider-registry-X5PBSJ2G.cjs +40 -0
- package/dist/{provider-registry-U26G7C4O.cjs.map → provider-registry-X5PBSJ2G.cjs.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +5 -5
- package/dist/server/index.js +2 -2
- 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 +8 -8
- package/dist/stream/index.js +1 -1
- 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/tts/index.cjs +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/utils.cjs +25 -25
- package/dist/utils.js +1 -1
- package/dist/vector/index.cjs +9 -9
- package/dist/vector/index.js +2 -2
- package/dist/voice/index.cjs +6 -6
- package/dist/voice/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/dist/workspace/index.cjs +68 -68
- package/dist/workspace/index.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-2DKOLMVJ.js +0 -28
- package/dist/chunk-2DKOLMVJ.js.map +0 -1
- package/dist/chunk-44P7C37G.js.map +0 -1
- package/dist/chunk-C3G6OQ52.cjs.map +0 -1
- package/dist/chunk-D5FMOLQZ.cjs +0 -32
- package/dist/chunk-D5FMOLQZ.cjs.map +0 -1
- package/dist/chunk-DKK77FIJ.cjs.map +0 -1
- package/dist/chunk-DNW46JHP.js.map +0 -1
- package/dist/chunk-EHBTASCW.js.map +0 -1
- package/dist/chunk-HBO2PK7W.cjs.map +0 -1
- package/dist/chunk-JK5YBBUS.cjs.map +0 -1
- package/dist/chunk-JSG6FULW.cjs.map +0 -1
- package/dist/chunk-KCVSVDQ2.js.map +0 -1
- package/dist/chunk-M3LRSDLL.js.map +0 -1
- package/dist/chunk-MISEF5LK.js.map +0 -1
- package/dist/chunk-OFABGAOY.cjs.map +0 -1
- package/dist/chunk-YRDMMXBW.cjs.map +0 -1
- package/dist/chunk-Z2IR7J5I.js.map +0 -1
- package/dist/mastra-5WYO5ZWG.js +0 -3
- package/dist/mastra-LIISVKXT.cjs +0 -12
- package/dist/models-dev-CJ7IIPNG.js +0 -3
- package/dist/models-dev-GD4LL56A.cjs +0 -12
- package/dist/netlify-6V7UBVTK.cjs +0 -12
- package/dist/netlify-PMGHRONJ.js +0 -3
- package/dist/provider-registry-JV46DWD7.js +0 -3
- package/dist/provider-registry-U26G7C4O.cjs +0 -40
|
@@ -4,10 +4,10 @@ This reference provides comprehensive information about Mastra templates, includ
|
|
|
4
4
|
|
|
5
5
|
Mastra templates are pre-built project structures that demonstrate specific use cases and patterns. They provide:
|
|
6
6
|
|
|
7
|
-
- **Working examples
|
|
8
|
-
- **Best practices
|
|
9
|
-
- **Educational resources
|
|
10
|
-
- **Quickstarts
|
|
7
|
+
- **Working examples**: Complete, functional Mastra applications
|
|
8
|
+
- **Best practices**: Proper project structure and coding conventions
|
|
9
|
+
- **Educational resources**: Learn Mastra patterns through real implementations
|
|
10
|
+
- **Quickstarts**: Bootstrap projects faster than building from scratch
|
|
11
11
|
|
|
12
12
|
## Using templates
|
|
13
13
|
|
|
@@ -15,10 +15,30 @@ Mastra templates are pre-built project structures that demonstrate specific use
|
|
|
15
15
|
|
|
16
16
|
Install a template using the `create-mastra` command:
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
**npm**:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
19
21
|
npx create-mastra@latest --template template-name
|
|
20
22
|
```
|
|
21
23
|
|
|
24
|
+
**pnpm**:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
pnpm dlx create-mastra@latest --template template-name
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**Yarn**:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
yarn dlx create-mastra@latest --template template-name
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Bun**:
|
|
37
|
+
|
|
38
|
+
```sh
|
|
39
|
+
bun x create-mastra@latest --template template-name
|
|
40
|
+
```
|
|
41
|
+
|
|
22
42
|
This creates a complete project with all necessary code and configuration.
|
|
23
43
|
|
|
24
44
|
### Setup Process
|
|
@@ -41,20 +61,74 @@ After installation:
|
|
|
41
61
|
|
|
42
62
|
3. **Install dependencies** (if not done automatically):
|
|
43
63
|
|
|
44
|
-
|
|
64
|
+
**npm**:
|
|
65
|
+
|
|
66
|
+
```sh
|
|
45
67
|
npm install
|
|
46
68
|
```
|
|
47
69
|
|
|
70
|
+
**pnpm**:
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
pnpm install
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Yarn**:
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
yarn install
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**Bun**:
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
bun install
|
|
86
|
+
```
|
|
87
|
+
|
|
48
88
|
4. **Start development server**:
|
|
49
89
|
|
|
50
|
-
|
|
90
|
+
**npm**:
|
|
91
|
+
|
|
92
|
+
```sh
|
|
51
93
|
npm run dev
|
|
52
94
|
```
|
|
53
95
|
|
|
54
|
-
|
|
96
|
+
**pnpm**:
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
pnpm run dev
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
**Yarn**:
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
yarn dev
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Bun**:
|
|
109
|
+
|
|
110
|
+
```sh
|
|
111
|
+
bun run dev
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Template structure
|
|
55
115
|
|
|
56
116
|
All templates follow this standardized structure:
|
|
57
117
|
|
|
118
|
+
```text
|
|
119
|
+
your-template/
|
|
120
|
+
├── src/
|
|
121
|
+
│ └── mastra/
|
|
122
|
+
│ ├── agents/ # Agent definitions
|
|
123
|
+
│ ├── tools/ # Tool definitions
|
|
124
|
+
│ ├── workflows/ # Workflow definitions
|
|
125
|
+
│ └── index.ts # Main Mastra config
|
|
126
|
+
├── .env.example # Required environment variables
|
|
127
|
+
├── package.json
|
|
128
|
+
├── tsconfig.json
|
|
129
|
+
└── README.md
|
|
130
|
+
```
|
|
131
|
+
|
|
58
132
|
## Creating templates
|
|
59
133
|
|
|
60
134
|
### Requirements
|
|
@@ -127,12 +201,12 @@ const agent = new Agent({
|
|
|
127
201
|
|
|
128
202
|
Templates must be:
|
|
129
203
|
|
|
130
|
-
- **Single projects
|
|
131
|
-
- **Framework-free
|
|
132
|
-
- **Mastra-focused
|
|
133
|
-
- **Mergeable
|
|
134
|
-
- **Node.js compatible
|
|
135
|
-
- **ESM modules
|
|
204
|
+
- **Single projects**: Not monorepos with multiple applications
|
|
205
|
+
- **Framework-free**: No Next.js, Express, or other web framework boilerplate
|
|
206
|
+
- **Mastra-focused**: Demonstrate Mastra functionality without additional layers
|
|
207
|
+
- **Mergeable**: Structure code for seamless integration into existing projects
|
|
208
|
+
- **Node.js compatible**: Support Node.js v22.13.0 and later
|
|
209
|
+
- **ESM modules**: Use ES modules (`"type": "module"` in package.json)
|
|
136
210
|
|
|
137
211
|
### Documentation Requirements
|
|
138
212
|
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkUENWRQLR_cjs = require('../chunk-UENWRQLR.cjs');
|
|
4
|
+
var chunkDO4JBKMT_cjs = require('../chunk-DO4JBKMT.cjs');
|
|
5
|
+
var chunkJF3WPB75_cjs = require('../chunk-JF3WPB75.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 chunkUENWRQLR_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkDO4JBKMT_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkDO4JBKMT_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "extractTrajectory", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkJF3WPB75_cjs.extractTrajectory; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "extractTrajectoryFromTrace", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkJF3WPB75_cjs.extractTrajectoryFromTrace; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "extractWorkflowTrajectory", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkJF3WPB75_cjs.extractWorkflowTrajectory; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "listScoresResponseSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkJF3WPB75_cjs.listScoresResponseSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "saveScorePayloadSchema", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkJF3WPB75_cjs.saveScorePayloadSchema; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "scoreResultSchema", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkJF3WPB75_cjs.scoreResultSchema; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "scoreRowDataSchema", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkJF3WPB75_cjs.scoreRowDataSchema; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "scoringEntityTypeSchema", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkJF3WPB75_cjs.scoringEntityTypeSchema; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "scoringExtractStepResultSchema", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkJF3WPB75_cjs.scoringExtractStepResultSchema; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "scoringHookInputSchema", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkJF3WPB75_cjs.scoringHookInputSchema; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "scoringInputSchema", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkJF3WPB75_cjs.scoringInputSchema; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndAnalyzeStepResultSchema", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkJF3WPB75_cjs.scoringInputWithExtractStepResultAndAnalyzeStepResultSchema; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultAndScoreAndReasonSchema", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkJF3WPB75_cjs.scoringInputWithExtractStepResultAndScoreAndReasonSchema; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "scoringInputWithExtractStepResultSchema", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkJF3WPB75_cjs.scoringInputWithExtractStepResultSchema; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "scoringPromptsSchema", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkJF3WPB75_cjs.scoringPromptsSchema; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "scoringSourceSchema", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkJF3WPB75_cjs.scoringSourceSchema; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "scoringValueSchema", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkJF3WPB75_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-QIJFD7ZC.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-QYQSXRFZ.js';
|
|
3
|
+
export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-ZCBMZ24O.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 chunkXZCYFQ4N_cjs = require('../../chunk-XZCYFQ4N.cjs');
|
|
4
|
+
var chunkJF3WPB75_cjs = require('../../chunk-JF3WPB75.cjs');
|
|
5
|
+
var chunk47RKHZIP_cjs = require('../../chunk-47RKHZIP.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 = chunkXZCYFQ4N_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: chunk47RKHZIP_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 = chunkJF3WPB75_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 = chunkXZCYFQ4N_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-VO6R5RZT.js';
|
|
2
|
+
import { saveScorePayloadSchema } from '../../chunk-ZCBMZ24O.js';
|
|
3
|
+
import { getEntityTypeForSpan } from '../../chunk-BMS7MLQV.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
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkXFLQVMNH_cjs = require('../chunk-XFLQVMNH.cjs');
|
|
4
|
+
var chunkDO4JBKMT_cjs = require('../chunk-DO4JBKMT.cjs');
|
|
5
|
+
var chunkX6CDTXAM_cjs = require('../chunk-X6CDTXAM.cjs');
|
|
6
|
+
var chunk7DONY7OL_cjs = require('../chunk-7DONY7OL.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 chunkDO4JBKMT_cjs.Agent({
|
|
317
317
|
id: `subagent-${definition.id}`,
|
|
318
318
|
name: `${definition.name} Subagent`,
|
|
319
319
|
instructions: definition.instructions,
|
|
@@ -324,7 +324,7 @@ Use this tool when:
|
|
|
324
324
|
const allowedWs = definition.allowedWorkspaceTools ? new Set(definition.allowedWorkspaceTools) : void 0;
|
|
325
325
|
const allWorkspaceToolNames = workspace && allowedWs ? new Set(
|
|
326
326
|
Object.keys(
|
|
327
|
-
await
|
|
327
|
+
await chunkX6CDTXAM_cjs.createWorkspaceTools(workspace, {
|
|
328
328
|
requestContext: context?.requestContext ?? {},
|
|
329
329
|
workspace
|
|
330
330
|
})
|
|
@@ -550,7 +550,7 @@ var Harness = class {
|
|
|
550
550
|
throw new Error("Harness requires at least one agent mode");
|
|
551
551
|
}
|
|
552
552
|
this.currentModeId = defaultMode.id;
|
|
553
|
-
if (config.workspace instanceof
|
|
553
|
+
if (config.workspace instanceof chunkX6CDTXAM_cjs.Workspace) {
|
|
554
554
|
this.workspace = config.workspace;
|
|
555
555
|
} else if (typeof config.workspace === "function") {
|
|
556
556
|
this.workspaceFn = config.workspace;
|
|
@@ -569,13 +569,13 @@ var Harness = class {
|
|
|
569
569
|
*/
|
|
570
570
|
async init() {
|
|
571
571
|
if (this.config.storage) {
|
|
572
|
-
this.#internalMastra = new
|
|
572
|
+
this.#internalMastra = new chunkXFLQVMNH_cjs.Mastra({ logger: false, storage: this.config.storage });
|
|
573
573
|
await this.#internalMastra.getStorage().init();
|
|
574
574
|
}
|
|
575
575
|
if (this.config.workspace && !this.workspaceInitialized && !this.workspaceFn) {
|
|
576
576
|
try {
|
|
577
577
|
if (!this.workspace) {
|
|
578
|
-
this.workspace = new
|
|
578
|
+
this.workspace = new chunkX6CDTXAM_cjs.Workspace(this.config.workspace);
|
|
579
579
|
}
|
|
580
580
|
this.emit({ type: "workspace_status_changed", status: "initializing" });
|
|
581
581
|
await this.workspace.init();
|
|
@@ -821,7 +821,7 @@ var Harness = class {
|
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
823
|
try {
|
|
824
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
824
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-X5PBSJ2G.cjs');
|
|
825
825
|
const registry = PROVIDER_REGISTRY;
|
|
826
826
|
const providerConfig = registry[provider];
|
|
827
827
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -841,7 +841,7 @@ var Harness = class {
|
|
|
841
841
|
*/
|
|
842
842
|
async listAvailableModels() {
|
|
843
843
|
try {
|
|
844
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
844
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-X5PBSJ2G.cjs');
|
|
845
845
|
if (!PROVIDER_REGISTRY) return [];
|
|
846
846
|
const registry = PROVIDER_REGISTRY;
|
|
847
847
|
const providers = Object.keys(registry);
|
|
@@ -900,7 +900,7 @@ var Harness = class {
|
|
|
900
900
|
}
|
|
901
901
|
async getProviderApiKeyEnvVar(provider) {
|
|
902
902
|
try {
|
|
903
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
903
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-X5PBSJ2G.cjs');
|
|
904
904
|
const registry = PROVIDER_REGISTRY;
|
|
905
905
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
906
906
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
|
@@ -2562,7 +2562,7 @@ ${textContent}
|
|
|
2562
2562
|
case "tool_update": {
|
|
2563
2563
|
const tool = ds.activeTools.get(event.toolCallId);
|
|
2564
2564
|
if (tool) {
|
|
2565
|
-
tool.partialResult = typeof event.partialResult === "string" ? event.partialResult :
|
|
2565
|
+
tool.partialResult = typeof event.partialResult === "string" ? event.partialResult : chunk7DONY7OL_cjs.safeStringify(event.partialResult);
|
|
2566
2566
|
}
|
|
2567
2567
|
break;
|
|
2568
2568
|
}
|
package/dist/harness/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Mastra } from '../chunk-
|
|
2
|
-
import { Agent } from '../chunk-
|
|
3
|
-
import { Workspace, createWorkspaceTools } from '../chunk-
|
|
4
|
-
import { safeStringify } from '../chunk-
|
|
1
|
+
import { Mastra } from '../chunk-HWAEQSOO.js';
|
|
2
|
+
import { Agent } from '../chunk-QYQSXRFZ.js';
|
|
3
|
+
import { Workspace, createWorkspaceTools } from '../chunk-EG3UGEUZ.js';
|
|
4
|
+
import { safeStringify } from '../chunk-Z63F3XHK.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';
|
|
@@ -819,7 +819,7 @@ var Harness = class {
|
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
try {
|
|
822
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
822
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-AWL2JDVF.js');
|
|
823
823
|
const registry = PROVIDER_REGISTRY;
|
|
824
824
|
const providerConfig = registry[provider];
|
|
825
825
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -839,7 +839,7 @@ var Harness = class {
|
|
|
839
839
|
*/
|
|
840
840
|
async listAvailableModels() {
|
|
841
841
|
try {
|
|
842
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
842
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-AWL2JDVF.js');
|
|
843
843
|
if (!PROVIDER_REGISTRY) return [];
|
|
844
844
|
const registry = PROVIDER_REGISTRY;
|
|
845
845
|
const providers = Object.keys(registry);
|
|
@@ -898,7 +898,7 @@ var Harness = class {
|
|
|
898
898
|
}
|
|
899
899
|
async getProviderApiKeyEnvVar(provider) {
|
|
900
900
|
try {
|
|
901
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
901
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-AWL2JDVF.js');
|
|
902
902
|
const registry = PROVIDER_REGISTRY;
|
|
903
903
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
904
904
|
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 chunkXFLQVMNH_cjs = require('./chunk-XFLQVMNH.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 chunkXFLQVMNH_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 chunkZUN5CMDY_cjs = require('../chunk-ZUN5CMDY.cjs');
|
|
4
|
+
var chunkV7AX2MSJ_cjs = require('../chunk-V7AX2MSJ.cjs');
|
|
5
|
+
var chunkTKH2A57J_cjs = require('../chunk-TKH2A57J.cjs');
|
|
6
|
+
var chunkZ67JQNEH_cjs = require('../chunk-Z67JQNEH.cjs');
|
|
7
|
+
var chunk7STIIXEL_cjs = require('../chunk-7STIIXEL.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 chunkZUN5CMDY_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZUN5CMDY_cjs.EMBEDDING_MODELS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZUN5CMDY_cjs.ModelRouterEmbeddingModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZUN5CMDY_cjs.ModelRouterLanguageModel; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "defaultGateways", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkZUN5CMDY_cjs.defaultGateways; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkZUN5CMDY_cjs.resolveModelConfig; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "GatewayRegistry", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkV7AX2MSJ_cjs.GatewayRegistry; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MastraGateway", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkV7AX2MSJ_cjs.MastraGateway; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkV7AX2MSJ_cjs.PROVIDER_REGISTRY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkV7AX2MSJ_cjs.getProviderConfig; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseModelString", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkV7AX2MSJ_cjs.parseModelString; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkTKH2A57J_cjs.ModelsDevGateway; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "NetlifyGateway", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkZ67JQNEH_cjs.NetlifyGateway; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "GATEWAY_AUTH_HEADER", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk7STIIXEL_cjs.GATEWAY_AUTH_HEADER; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "MastraModelGateway", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk7STIIXEL_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-QRK2HWHI.js';
|
|
2
|
+
export { GatewayRegistry, MastraGateway, PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-I6XSSR4Z.js';
|
|
3
|
+
export { ModelsDevGateway } from '../chunk-6UQKQBIB.js';
|
|
4
|
+
export { NetlifyGateway } from '../chunk-TG46FM6X.js';
|
|
5
|
+
export { GATEWAY_AUTH_HEADER, MastraModelGateway } from '../chunk-EXORPYDN.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
|
@@ -24,7 +24,7 @@ export declare class ConsoleLogger extends MastraLogger {
|
|
|
24
24
|
protected component?: RegisteredLogger;
|
|
25
25
|
protected filter?: LogFilter;
|
|
26
26
|
constructor(options?: ConsoleLoggerOptions);
|
|
27
|
-
child(
|
|
27
|
+
child(componentOrBindings: RegisteredLogger | Record<string, unknown>): ConsoleLogger;
|
|
28
28
|
private shouldLog;
|
|
29
29
|
private prefix;
|
|
30
30
|
debug(message: string, ...args: any[]): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-logger.d.ts","sourceRoot":"","sources":["../../src/logger/default-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,C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