@mastra/core 1.18.0-alpha.1 → 1.18.0-alpha.2
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 +6 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-WYFCQAHY.js → chunk-45M6KUQZ.js} +6 -6
- package/dist/{chunk-WYFCQAHY.js.map → chunk-45M6KUQZ.js.map} +1 -1
- package/dist/{chunk-UEZU2TA2.cjs → chunk-4KGTZPYF.cjs} +185 -185
- package/dist/{chunk-UEZU2TA2.cjs.map → chunk-4KGTZPYF.cjs.map} +1 -1
- package/dist/{chunk-UPCNNWXW.cjs → chunk-5AVTFQEP.cjs} +5 -5
- package/dist/{chunk-UPCNNWXW.cjs.map → chunk-5AVTFQEP.cjs.map} +1 -1
- package/dist/{chunk-MSDZQ4DW.cjs → chunk-6WVZQBYQ.cjs} +9 -9
- package/dist/{chunk-MSDZQ4DW.cjs.map → chunk-6WVZQBYQ.cjs.map} +1 -1
- package/dist/{chunk-KL2IRBNK.cjs → chunk-DQYOFNZ7.cjs} +5 -5
- package/dist/{chunk-KL2IRBNK.cjs.map → chunk-DQYOFNZ7.cjs.map} +1 -1
- package/dist/{chunk-D4DCPE5Y.js → chunk-E6XNM5ES.js} +3 -3
- package/dist/{chunk-D4DCPE5Y.js.map → chunk-E6XNM5ES.js.map} +1 -1
- package/dist/{chunk-2U4M4SGY.cjs → chunk-H5O522FY.cjs} +15 -15
- package/dist/{chunk-2U4M4SGY.cjs.map → chunk-H5O522FY.cjs.map} +1 -1
- package/dist/{chunk-TKKBZUWD.js → chunk-IOCCTQYZ.js} +4 -4
- package/dist/{chunk-TKKBZUWD.js.map → chunk-IOCCTQYZ.js.map} +1 -1
- package/dist/{chunk-UQ2HAEHL.js → chunk-JEWTRDRI.js} +3 -3
- package/dist/{chunk-UQ2HAEHL.js.map → chunk-JEWTRDRI.js.map} +1 -1
- package/dist/{chunk-BYJDWJCX.js → chunk-L53NRDFU.js} +3 -3
- package/dist/{chunk-BYJDWJCX.js.map → chunk-L53NRDFU.js.map} +1 -1
- package/dist/{chunk-PQWEJELD.cjs → chunk-LUONHWL6.cjs} +6 -6
- package/dist/{chunk-PQWEJELD.cjs.map → chunk-LUONHWL6.cjs.map} +1 -1
- package/dist/{chunk-HEHK7LXS.js → chunk-M5CZCWWW.js} +4 -4
- package/dist/{chunk-HEHK7LXS.js.map → chunk-M5CZCWWW.js.map} +1 -1
- package/dist/{chunk-K22Q6XPG.js → chunk-QR2Z4WQ7.js} +3 -3
- package/dist/{chunk-K22Q6XPG.js.map → chunk-QR2Z4WQ7.js.map} +1 -1
- package/dist/{chunk-JFPVUKPB.cjs → chunk-T2CILERS.cjs} +48 -48
- package/dist/{chunk-JFPVUKPB.cjs.map → chunk-T2CILERS.cjs.map} +1 -1
- package/dist/{chunk-RB2QRGRV.js → chunk-URN2SKVG.js} +4 -4
- package/dist/{chunk-RB2QRGRV.js.map → chunk-URN2SKVG.js.map} +1 -1
- package/dist/{chunk-GFBH7Q4W.cjs → chunk-VAVK4KJI.cjs} +26 -26
- package/dist/chunk-VAVK4KJI.cjs.map +1 -0
- package/dist/{chunk-3U4ZNZIF.js → chunk-VF3CL3JV.js} +18 -18
- package/dist/chunk-VF3CL3JV.js.map +1 -0
- package/dist/{chunk-Z3VUDCXI.cjs → chunk-WPDB2VAM.cjs} +7 -7
- package/dist/{chunk-Z3VUDCXI.cjs.map → chunk-WPDB2VAM.cjs.map} +1 -1
- package/dist/{chunk-A2Z26HFR.js → chunk-WVTVBWOQ.js} +8 -8
- package/dist/{chunk-A2Z26HFR.js.map → chunk-WVTVBWOQ.js.map} +1 -1
- package/dist/{chunk-G62XEVSI.cjs → chunk-XRZNAZRP.cjs} +3 -3
- package/dist/{chunk-G62XEVSI.cjs.map → chunk-XRZNAZRP.cjs.map} +1 -1
- package/dist/{chunk-3O73Q6M2.cjs → chunk-YEKQKMCU.cjs} +75 -75
- package/dist/{chunk-3O73Q6M2.cjs.map → chunk-YEKQKMCU.cjs.map} +1 -1
- package/dist/{chunk-3NMSFQPY.js → chunk-YN3FI4AD.js} +3 -3
- package/dist/{chunk-3NMSFQPY.js.map → chunk-YN3FI4AD.js.map} +1 -1
- package/dist/datasets/index.cjs +11 -11
- package/dist/datasets/index.js +1 -1
- package/dist/docs/SKILL.md +1 -3
- package/dist/docs/assets/SOURCE_MAP.json +121 -121
- package/dist/docs/references/reference-logging-pino-logger.md +58 -0
- package/dist/docs/references/reference.md +0 -2
- package/dist/evals/index.cjs +5 -5
- package/dist/evals/index.js +2 -2
- package/dist/evals/scoreTraces/index.cjs +3 -3
- package/dist/evals/scoreTraces/index.js +1 -1
- package/dist/harness/index.cjs +7 -7
- package/dist/harness/index.js +5 -5
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +16 -16
- package/dist/llm/index.js +5 -5
- 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/memory/index.cjs +14 -14
- package/dist/memory/index.js +1 -1
- package/dist/models-dev-GLFQVCT4.cjs +12 -0
- package/dist/{models-dev-BJHT4GXA.cjs.map → models-dev-GLFQVCT4.cjs.map} +1 -1
- package/dist/models-dev-WSLKK6FO.js +3 -0
- package/dist/{models-dev-3U6ICCNW.js.map → models-dev-WSLKK6FO.js.map} +1 -1
- package/dist/netlify-SNTN56QS.js +3 -0
- package/dist/{netlify-DE3IXMT2.js.map → netlify-SNTN56QS.js.map} +1 -1
- package/dist/netlify-VFRYJYBK.cjs +12 -0
- package/dist/{netlify-UARJYMCW.cjs.map → netlify-VFRYJYBK.cjs.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-L6KDLMFM.cjs +40 -0
- package/dist/{provider-registry-65CPGTUU.cjs.map → provider-registry-L6KDLMFM.cjs.map} +1 -1
- package/dist/provider-registry-LEXW2E53.js +3 -0
- package/dist/{provider-registry-EQAT7FXK.js.map → provider-registry-LEXW2E53.js.map} +1 -1
- package/dist/relevance/index.cjs +3 -3
- package/dist/relevance/index.js +1 -1
- package/dist/stream/index.cjs +8 -8
- package/dist/stream/index.js +1 -1
- package/dist/tool-loop-agent/index.cjs +4 -4
- package/dist/tool-loop-agent/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 +4 -4
- package/dist/chunk-3U4ZNZIF.js.map +0 -1
- package/dist/chunk-GFBH7Q4W.cjs.map +0 -1
- package/dist/docs/references/reference-core-getStoredAgentById.md +0 -87
- package/dist/docs/references/reference-core-listStoredAgents.md +0 -91
- package/dist/models-dev-3U6ICCNW.js +0 -3
- package/dist/models-dev-BJHT4GXA.cjs +0 -12
- package/dist/netlify-DE3IXMT2.js +0 -3
- package/dist/netlify-UARJYMCW.cjs +0 -12
- package/dist/provider-registry-65CPGTUU.cjs +0 -40
- package/dist/provider-registry-EQAT7FXK.js +0 -3
|
@@ -30,6 +30,64 @@ export const mastra = new Mastra({
|
|
|
30
30
|
|
|
31
31
|
**formatters** (`pino.LoggerOptions['formatters']`): Custom Pino formatters for log serialization.
|
|
32
32
|
|
|
33
|
+
**redact** (`pino.LoggerOptions['redact']`): Paths or options for redacting sensitive fields from log output (Pino \`redact\`).
|
|
34
|
+
|
|
35
|
+
**prettyPrint** (`boolean`): When false, disables \`pino-pretty\` and writes raw JSON lines (useful for log aggregators). (Default: `true`)
|
|
36
|
+
|
|
37
|
+
**mixin** (`pino.MixinFn`): Pino mixin function merged into every log object (for example request-scoped \`traceId\` or other shared metadata).
|
|
38
|
+
|
|
39
|
+
**customLevels** (`Record<string, number>`): Custom log levels and numeric values, forwarded to Pino. Standard severity is still logged via \`debug\`, \`info\`, \`warn\`, and \`error\`; extra levels follow Pino’s custom-level behavior.
|
|
40
|
+
|
|
41
|
+
## Log enrichment with `mixin`
|
|
42
|
+
|
|
43
|
+
Use `mixin` when you want the same structured fields on every line (for correlation with the rest of your services):
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { Mastra } from '@mastra/core'
|
|
47
|
+
import { PinoLogger } from '@mastra/loggers'
|
|
48
|
+
|
|
49
|
+
function getTraceContext() {
|
|
50
|
+
return { traceId: 'abc-123' }
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const mastra = new Mastra({
|
|
54
|
+
logger: new PinoLogger({
|
|
55
|
+
name: 'Mastra',
|
|
56
|
+
level: 'info',
|
|
57
|
+
mixin() {
|
|
58
|
+
return getTraceContext()
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
})
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Custom levels
|
|
65
|
+
|
|
66
|
+
`customLevels` is passed through to Pino. `PinoLogger` only exposes `debug`, `info`, `warn`, and `error`; for any extra level name (for example `audit`), subclass and forward to the underlying Pino instance:
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import { Mastra } from '@mastra/core'
|
|
70
|
+
import { PinoLogger } from '@mastra/loggers'
|
|
71
|
+
|
|
72
|
+
type AuditLevel = 'audit'
|
|
73
|
+
|
|
74
|
+
class MastraPinoWithAudit extends PinoLogger<AuditLevel> {
|
|
75
|
+
audit(message: string, meta: Record<string, unknown> = {}) {
|
|
76
|
+
this.logger.audit(meta, message)
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const logger = new MastraPinoWithAudit({
|
|
81
|
+
name: 'Mastra',
|
|
82
|
+
level: 'info',
|
|
83
|
+
customLevels: { audit: 35 },
|
|
84
|
+
})
|
|
85
|
+
|
|
86
|
+
export const mastra = new Mastra({ logger })
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Numeric values follow Pino’s ordering (built-in levels use 10–60). A level of `35` sits between `info` (30) and `warn` (40), so with `level: 'info'` both `info` and `audit` lines are emitted.
|
|
90
|
+
|
|
33
91
|
## File transport (structured logs)
|
|
34
92
|
|
|
35
93
|
Writes structured logs to a file using the `FileTransport`. The logger accepts a plain message as the first argument and structured metadata as the second argument. These are internally converted to a `BaseLogMessage` and persisted to the configured file path.
|
|
@@ -66,7 +66,6 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
66
66
|
- [.getScorerById()](https://mastra.ai/reference/core/getScorerById)
|
|
67
67
|
- [.getServer()](https://mastra.ai/reference/core/getServer)
|
|
68
68
|
- [.getStorage()](https://mastra.ai/reference/core/getStorage)
|
|
69
|
-
- [.getStoredAgentById()](https://mastra.ai/reference/core/getStoredAgentById)
|
|
70
69
|
- [.getTelemetry()](https://mastra.ai/reference/core/getTelemetry)
|
|
71
70
|
- [.getVector()](https://mastra.ai/reference/core/getVector)
|
|
72
71
|
- [.getWorkflow()](https://mastra.ai/reference/core/getWorkflow)
|
|
@@ -77,7 +76,6 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
77
76
|
- [.listMCPServers()](https://mastra.ai/reference/core/listMCPServers)
|
|
78
77
|
- [.listMemory()](https://mastra.ai/reference/core/listMemory)
|
|
79
78
|
- [.listScorers()](https://mastra.ai/reference/core/listScorers)
|
|
80
|
-
- [.listStoredAgents()](https://mastra.ai/reference/core/listStoredAgents)
|
|
81
79
|
- [.listVectors()](https://mastra.ai/reference/core/listVectors)
|
|
82
80
|
- [.listWorkflows()](https://mastra.ai/reference/core/listWorkflows)
|
|
83
81
|
- [.setLogger()](https://mastra.ai/reference/core/setLogger)
|
package/dist/evals/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk5AVTFQEP_cjs = require('../chunk-5AVTFQEP.cjs');
|
|
4
|
+
var chunkVAVK4KJI_cjs = require('../chunk-VAVK4KJI.cjs');
|
|
5
5
|
var chunk7IDACSBM_cjs = require('../chunk-7IDACSBM.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 chunk5AVTFQEP_cjs.runEvals; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "MastraScorer", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkVAVK4KJI_cjs.MastraScorer; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "createScorer", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkVAVK4KJI_cjs.createScorer; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "extractTrajectory", {
|
|
22
22
|
enumerable: true,
|
package/dist/evals/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { runEvals } from '../chunk-
|
|
2
|
-
export { MastraScorer, createScorer } from '../chunk-
|
|
1
|
+
export { runEvals } from '../chunk-JEWTRDRI.js';
|
|
2
|
+
export { MastraScorer, createScorer } from '../chunk-VF3CL3JV.js';
|
|
3
3
|
export { extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, listScoresResponseSchema, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema } from '../chunk-VMKNS3YO.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
|
|
3
|
+
var chunkT2CILERS_cjs = require('../../chunk-T2CILERS.cjs');
|
|
4
4
|
var chunk7IDACSBM_cjs = require('../../chunk-7IDACSBM.cjs');
|
|
5
5
|
var chunkG5HKDGNT_cjs = require('../../chunk-G5HKDGNT.cjs');
|
|
6
6
|
var chunk4U7ZLI36_cjs = require('../../chunk-4U7ZLI36.cjs');
|
|
@@ -235,7 +235,7 @@ function transformTraceToScorerInputAndOutput(trace) {
|
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
// src/evals/scoreTraces/scoreTracesWorkflow.ts
|
|
238
|
-
var getTraceStep =
|
|
238
|
+
var getTraceStep = chunkT2CILERS_cjs.createStep({
|
|
239
239
|
id: "__process-trace-scoring",
|
|
240
240
|
inputSchema: v4.z.object({
|
|
241
241
|
targets: v4.z.array(
|
|
@@ -446,7 +446,7 @@ async function attachScoreToSpan({
|
|
|
446
446
|
} catch {
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
var scoreTracesWorkflow =
|
|
449
|
+
var scoreTracesWorkflow = chunkT2CILERS_cjs.createWorkflow({
|
|
450
450
|
id: "__batch-scoring-traces",
|
|
451
451
|
inputSchema: v4.z.object({
|
|
452
452
|
targets: v4.z.array(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-YN3FI4AD.js';
|
|
2
2
|
import { saveScorePayloadSchema } from '../../chunk-VMKNS3YO.js';
|
|
3
3
|
import { resolveObservabilityContext } from '../../chunk-CT4YYQI3.js';
|
|
4
4
|
import { MastraError } from '../../chunk-FJEVLHJT.js';
|
package/dist/harness/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkH5O522FY_cjs = require('../chunk-H5O522FY.cjs');
|
|
4
|
+
var chunkVAVK4KJI_cjs = require('../chunk-VAVK4KJI.cjs');
|
|
5
5
|
var chunkQVVWKMFM_cjs = require('../chunk-QVVWKMFM.cjs');
|
|
6
6
|
var chunkK4NN2KQQ_cjs = require('../chunk-K4NN2KQQ.cjs');
|
|
7
7
|
var chunkXB4FLS7A_cjs = require('../chunk-XB4FLS7A.cjs');
|
|
@@ -312,7 +312,7 @@ Use this tool when:
|
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
const workspace = context?.workspace;
|
|
315
|
-
const subagent = new
|
|
315
|
+
const subagent = new chunkVAVK4KJI_cjs.Agent({
|
|
316
316
|
id: `subagent-${definition.id}`,
|
|
317
317
|
name: `${definition.name} Subagent`,
|
|
318
318
|
instructions: definition.instructions,
|
|
@@ -561,7 +561,7 @@ var Harness = class {
|
|
|
561
561
|
*/
|
|
562
562
|
async init() {
|
|
563
563
|
if (this.config.storage) {
|
|
564
|
-
this.#internalMastra = new
|
|
564
|
+
this.#internalMastra = new chunkH5O522FY_cjs.Mastra({ logger: false, storage: this.config.storage });
|
|
565
565
|
await this.#internalMastra.getStorage().init();
|
|
566
566
|
}
|
|
567
567
|
if (this.config.workspace && !this.workspaceInitialized && !this.workspaceFn) {
|
|
@@ -813,7 +813,7 @@ var Harness = class {
|
|
|
813
813
|
}
|
|
814
814
|
}
|
|
815
815
|
try {
|
|
816
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
816
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-L6KDLMFM.cjs');
|
|
817
817
|
const registry = PROVIDER_REGISTRY;
|
|
818
818
|
const providerConfig = registry[provider];
|
|
819
819
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -833,7 +833,7 @@ var Harness = class {
|
|
|
833
833
|
*/
|
|
834
834
|
async listAvailableModels() {
|
|
835
835
|
try {
|
|
836
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
836
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-L6KDLMFM.cjs');
|
|
837
837
|
if (!PROVIDER_REGISTRY) return [];
|
|
838
838
|
const registry = PROVIDER_REGISTRY;
|
|
839
839
|
const providers = Object.keys(registry);
|
|
@@ -892,7 +892,7 @@ var Harness = class {
|
|
|
892
892
|
}
|
|
893
893
|
async getProviderApiKeyEnvVar(provider) {
|
|
894
894
|
try {
|
|
895
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
895
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-L6KDLMFM.cjs');
|
|
896
896
|
const registry = PROVIDER_REGISTRY;
|
|
897
897
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
898
898
|
return Array.isArray(envVars) ? envVars[0] : envVars;
|
package/dist/harness/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Mastra } from '../chunk-
|
|
2
|
-
import { Agent } from '../chunk-
|
|
1
|
+
import { Mastra } from '../chunk-WVTVBWOQ.js';
|
|
2
|
+
import { Agent } from '../chunk-VF3CL3JV.js';
|
|
3
3
|
import { Workspace, createWorkspaceTools } from '../chunk-ABA3KD3X.js';
|
|
4
4
|
import { createTool } from '../chunk-GRMC2OYN.js';
|
|
5
5
|
import { toStandardSchema } from '../chunk-6SRTDZ7S.js';
|
|
@@ -811,7 +811,7 @@ var Harness = class {
|
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
813
|
try {
|
|
814
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
814
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-LEXW2E53.js');
|
|
815
815
|
const registry = PROVIDER_REGISTRY;
|
|
816
816
|
const providerConfig = registry[provider];
|
|
817
817
|
const envVars = providerConfig?.apiKeyEnvVar;
|
|
@@ -831,7 +831,7 @@ var Harness = class {
|
|
|
831
831
|
*/
|
|
832
832
|
async listAvailableModels() {
|
|
833
833
|
try {
|
|
834
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
834
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-LEXW2E53.js');
|
|
835
835
|
if (!PROVIDER_REGISTRY) return [];
|
|
836
836
|
const registry = PROVIDER_REGISTRY;
|
|
837
837
|
const providers = Object.keys(registry);
|
|
@@ -890,7 +890,7 @@ var Harness = class {
|
|
|
890
890
|
}
|
|
891
891
|
async getProviderApiKeyEnvVar(provider) {
|
|
892
892
|
try {
|
|
893
|
-
const { PROVIDER_REGISTRY } = await import('../provider-registry-
|
|
893
|
+
const { PROVIDER_REGISTRY } = await import('../provider-registry-LEXW2E53.js');
|
|
894
894
|
const registry = PROVIDER_REGISTRY;
|
|
895
895
|
const envVars = registry[provider]?.apiKeyEnvVar;
|
|
896
896
|
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 chunkH5O522FY_cjs = require('./chunk-H5O522FY.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 chunkH5O522FY_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,56 +1,56 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunkYEKQKMCU_cjs = require('../chunk-YEKQKMCU.cjs');
|
|
4
|
+
var chunk4KGTZPYF_cjs = require('../chunk-4KGTZPYF.cjs');
|
|
5
|
+
var chunk6WVZQBYQ_cjs = require('../chunk-6WVZQBYQ.cjs');
|
|
6
|
+
var chunkXRZNAZRP_cjs = require('../chunk-XRZNAZRP.cjs');
|
|
7
|
+
var chunkDQYOFNZ7_cjs = require('../chunk-DQYOFNZ7.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 chunkYEKQKMCU_cjs.AzureOpenAIGateway; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "EMBEDDING_MODELS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkYEKQKMCU_cjs.EMBEDDING_MODELS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "ModelRouterEmbeddingModel", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkYEKQKMCU_cjs.ModelRouterEmbeddingModel; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ModelRouterLanguageModel", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkYEKQKMCU_cjs.ModelRouterLanguageModel; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "resolveModelConfig", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkYEKQKMCU_cjs.resolveModelConfig; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk4KGTZPYF_cjs.ModelsDevGateway; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "NetlifyGateway", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk6WVZQBYQ_cjs.NetlifyGateway; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "MastraModelGateway", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkXRZNAZRP_cjs.MastraModelGateway; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "PROVIDER_REGISTRY", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkDQYOFNZ7_cjs.PROVIDER_REGISTRY; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getProviderConfig", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkDQYOFNZ7_cjs.getProviderConfig; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseModelString", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkDQYOFNZ7_cjs.parseModelString; }
|
|
54
54
|
});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|
|
56
56
|
//# sourceMappingURL=index.cjs.map
|
package/dist/llm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-
|
|
2
|
-
export { ModelsDevGateway } from '../chunk-
|
|
3
|
-
export { NetlifyGateway } from '../chunk-
|
|
4
|
-
export { MastraModelGateway } from '../chunk-
|
|
5
|
-
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-
|
|
1
|
+
export { AzureOpenAIGateway, EMBEDDING_MODELS, ModelRouterEmbeddingModel, ModelRouterLanguageModel, resolveModelConfig } from '../chunk-45M6KUQZ.js';
|
|
2
|
+
export { ModelsDevGateway } from '../chunk-L53NRDFU.js';
|
|
3
|
+
export { NetlifyGateway } from '../chunk-E6XNM5ES.js';
|
|
4
|
+
export { MastraModelGateway } from '../chunk-QR2Z4WQ7.js';
|
|
5
|
+
export { PROVIDER_REGISTRY, getProviderConfig, parseModelString } from '../chunk-IOCCTQYZ.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/loop/index.cjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVAVK4KJI_cjs = require('../chunk-VAVK4KJI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "createScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkVAVK4KJI_cjs.createScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "formatCheckFeedback", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkVAVK4KJI_cjs.formatCheckFeedback; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "formatCompletionFeedback", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkVAVK4KJI_cjs.formatCompletionFeedback; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "formatStreamCompletionFeedback", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkVAVK4KJI_cjs.formatStreamCompletionFeedback; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "formatValidationFeedback", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkVAVK4KJI_cjs.formatValidationFeedback; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "generateFinalResult", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkVAVK4KJI_cjs.generateFinalResult; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "generateStructuredFinalResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkVAVK4KJI_cjs.generateStructuredFinalResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "loop", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkVAVK4KJI_cjs.loop; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "runChecks", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkVAVK4KJI_cjs.runChecks; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "runCompletionScorers", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkVAVK4KJI_cjs.runCompletionScorers; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "runDefaultCompletionCheck", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkVAVK4KJI_cjs.runDefaultCompletionCheck; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "runStreamCompletionScorers", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkVAVK4KJI_cjs.runStreamCompletionScorers; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "runValidation", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkVAVK4KJI_cjs.runValidation; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/loop/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-
|
|
1
|
+
export { createScorer, formatCheckFeedback, formatCompletionFeedback, formatStreamCompletionFeedback, formatValidationFeedback, generateFinalResult, generateStructuredFinalResult, loop, runChecks, runCompletionScorers, runDefaultCompletionCheck, runStreamCompletionScorers, runValidation } from '../chunk-VF3CL3JV.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkH5O522FY_cjs = require('../chunk-H5O522FY.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 chunkH5O522FY_cjs.Mastra; }
|
|
10
10
|
});
|
|
11
11
|
//# sourceMappingURL=index.cjs.map
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
package/dist/mastra/index.js
CHANGED
package/dist/memory/index.cjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVAVK4KJI_cjs = require('../chunk-VAVK4KJI.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "MastraMemory", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkVAVK4KJI_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkVAVK4KJI_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "MockMemory", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkVAVK4KJI_cjs.MockMemory; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "WORKING_MEMORY_END_TAG", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkVAVK4KJI_cjs.WORKING_MEMORY_END_TAG; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "WORKING_MEMORY_START_TAG", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkVAVK4KJI_cjs.WORKING_MEMORY_START_TAG; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "extractWorkingMemoryContent", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkVAVK4KJI_cjs.extractWorkingMemoryContent; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "extractWorkingMemoryTags", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkVAVK4KJI_cjs.extractWorkingMemoryTags; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getThreadOMMetadata", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkVAVK4KJI_cjs.getThreadOMMetadata; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isObservationalMemoryEnabled", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkVAVK4KJI_cjs.isObservationalMemoryEnabled; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkVAVK4KJI_cjs.memoryDefaultOptions; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "parseMemoryRequestContext", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkVAVK4KJI_cjs.parseMemoryRequestContext; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "removeWorkingMemoryTags", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkVAVK4KJI_cjs.removeWorkingMemoryTags; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "setThreadOMMetadata", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkVAVK4KJI_cjs.setThreadOMMetadata; }
|
|
58
58
|
});
|
|
59
59
|
//# sourceMappingURL=index.cjs.map
|
|
60
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/memory/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, MockMemory, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, getThreadOMMetadata, isObservationalMemoryEnabled, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, MockMemory, WORKING_MEMORY_END_TAG, WORKING_MEMORY_START_TAG, extractWorkingMemoryContent, extractWorkingMemoryTags, getThreadOMMetadata, isObservationalMemoryEnabled, memoryDefaultOptions, parseMemoryRequestContext, removeWorkingMemoryTags, setThreadOMMetadata } from '../chunk-VF3CL3JV.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4KGTZPYF_cjs = require('./chunk-4KGTZPYF.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "ModelsDevGateway", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk4KGTZPYF_cjs.ModelsDevGateway; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=models-dev-GLFQVCT4.cjs.map
|
|
12
|
+
//# sourceMappingURL=models-dev-GLFQVCT4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-GLFQVCT4.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"models-dev-WSLKK6FO.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-SNTN56QS.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk6WVZQBYQ_cjs = require('./chunk-6WVZQBYQ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "NetlifyGateway", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk6WVZQBYQ_cjs.NetlifyGateway; }
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=netlify-VFRYJYBK.cjs.map
|
|
12
|
+
//# sourceMappingURL=netlify-VFRYJYBK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"netlify-VFRYJYBK.cjs"}
|