@mastra/core 1.1.0-alpha.1 → 1.1.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.
- package/CHANGELOG.md +364 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/{chunk-C6YO523J.cjs → chunk-4ACKGMN2.cjs} +5 -5
- package/dist/{chunk-C6YO523J.cjs.map → chunk-4ACKGMN2.cjs.map} +1 -1
- package/dist/{chunk-NVRAVZZM.js → chunk-4KQEQ4NM.js} +2 -216
- package/dist/chunk-4KQEQ4NM.js.map +1 -0
- package/dist/{chunk-O7II2PSR.cjs → chunk-4PERRFZD.cjs} +44 -44
- package/dist/{chunk-O7II2PSR.cjs.map → chunk-4PERRFZD.cjs.map} +1 -1
- package/dist/{chunk-LMNHODU4.cjs → chunk-4QJBNJI4.cjs} +5 -5
- package/dist/{chunk-LMNHODU4.cjs.map → chunk-4QJBNJI4.cjs.map} +1 -1
- package/dist/{chunk-UJRSZGKO.js → chunk-BG6DCMO2.js} +6 -4
- package/dist/chunk-BG6DCMO2.js.map +1 -0
- package/dist/{chunk-SFICZTYL.js → chunk-FVVQY6UU.js} +4 -4
- package/dist/{chunk-SFICZTYL.js.map → chunk-FVVQY6UU.js.map} +1 -1
- package/dist/{chunk-64LMKFD3.js → chunk-FZZI2V2T.js} +3 -3
- package/dist/{chunk-64LMKFD3.js.map → chunk-FZZI2V2T.js.map} +1 -1
- package/dist/{chunk-BKUNHQZ4.cjs → chunk-HR67B4UM.cjs} +15 -15
- package/dist/{chunk-BKUNHQZ4.cjs.map → chunk-HR67B4UM.cjs.map} +1 -1
- package/dist/{chunk-TO7IB5JE.cjs → chunk-MGOFRL36.cjs} +7 -5
- package/dist/chunk-MGOFRL36.cjs.map +1 -0
- package/dist/{chunk-HKD4NSHR.js → chunk-OSIE5L6N.js} +7 -7
- package/dist/{chunk-HKD4NSHR.js.map → chunk-OSIE5L6N.js.map} +1 -1
- package/dist/{chunk-QT56V3PE.js → chunk-OW7H7G5N.js} +4 -4
- package/dist/{chunk-QT56V3PE.js.map → chunk-OW7H7G5N.js.map} +1 -1
- package/dist/{chunk-66462UTX.cjs → chunk-RYVRCT7Z.cjs} +2 -216
- package/dist/chunk-RYVRCT7Z.cjs.map +1 -0
- package/dist/{chunk-IKS5Z56O.cjs → chunk-SLMSUZBA.cjs} +14 -14
- package/dist/{chunk-IKS5Z56O.cjs.map → chunk-SLMSUZBA.cjs.map} +1 -1
- package/dist/{chunk-RQGER4J4.js → chunk-VAJRNUEF.js} +3 -3
- package/dist/{chunk-RQGER4J4.js.map → chunk-VAJRNUEF.js.map} +1 -1
- package/dist/{chunk-EZWVMAC6.cjs → chunk-VNGQXHUE.cjs} +7 -7
- package/dist/{chunk-EZWVMAC6.cjs.map → chunk-VNGQXHUE.cjs.map} +1 -1
- package/dist/{chunk-SJUNV5AS.js → chunk-YQMDMIP6.js} +3 -3
- package/dist/{chunk-SJUNV5AS.js.map → chunk-YQMDMIP6.js.map} +1 -1
- package/dist/docs/README.md +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/SOURCE_MAP.json +109 -109
- package/dist/docs/agents/01-overview.md +2 -2
- package/dist/docs/evals/01-overview.md +5 -5
- package/dist/docs/mcp/01-overview.md +2 -2
- package/dist/docs/observability/01-overview.md +1 -1
- package/dist/docs/observability/03-overview.md +3 -3
- package/dist/docs/rag/01-overview.md +1 -1
- package/dist/docs/tools-mcp/01-mcp-overview.md +2 -2
- package/dist/docs/voice/01-overview.md +1 -1
- package/dist/docs/workflows/01-overview.md +5 -5
- package/dist/docs/workspace/01-overview.md +2 -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/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/llm/index.cjs +9 -9
- package/dist/llm/index.js +2 -2
- package/dist/llm/model/provider-types.generated.d.ts +1 -0
- package/dist/loop/index.cjs +12 -12
- 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 +11 -11
- package/dist/memory/index.js +1 -1
- package/dist/processors/index.cjs +40 -40
- package/dist/processors/index.js +1 -1
- package/dist/provider-registry-B3CGX3OF.js +3 -0
- package/dist/{provider-registry-SQTJTKSM.js.map → provider-registry-B3CGX3OF.js.map} +1 -1
- package/dist/provider-registry-CHV3DFFA.cjs +40 -0
- package/dist/{provider-registry-JZ6QRIVL.cjs.map → provider-registry-CHV3DFFA.cjs.map} +1 -1
- package/dist/provider-registry.json +4 -2
- 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/dist/workspace/index.cjs +32 -32
- package/dist/workspace/index.d.ts +1 -1
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/skills/skill-source.d.ts +1 -13
- package/dist/workspace/skills/skill-source.d.ts.map +1 -1
- package/dist/workspace/skills/types.d.ts +5 -70
- package/dist/workspace/skills/types.d.ts.map +1 -1
- package/dist/workspace/skills/workspace-skills.d.ts +2 -19
- package/dist/workspace/skills/workspace-skills.d.ts.map +1 -1
- package/dist/workspace/workspace.d.ts +0 -12
- package/dist/workspace/workspace.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/llm/model/provider-types.generated.d.ts +1 -0
- package/dist/chunk-66462UTX.cjs.map +0 -1
- package/dist/chunk-NVRAVZZM.js.map +0 -1
- package/dist/chunk-TO7IB5JE.cjs.map +0 -1
- package/dist/chunk-UJRSZGKO.js.map +0 -1
- package/dist/provider-registry-JZ6QRIVL.cjs +0 -40
- package/dist/provider-registry-SQTJTKSM.js +0 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRYVRCT7Z_cjs = require('./chunk-RYVRCT7Z.cjs');
|
|
4
4
|
var chunk6FG6FU5Y_cjs = require('./chunk-6FG6FU5Y.cjs');
|
|
5
5
|
var chunkLJOQ7WYC_cjs = require('./chunk-LJOQ7WYC.cjs');
|
|
6
6
|
var chunkYSFYUEEG_cjs = require('./chunk-YSFYUEEG.cjs');
|
|
7
7
|
var chunkIUODLQMU_cjs = require('./chunk-IUODLQMU.cjs');
|
|
8
8
|
var chunkZIEQA3YP_cjs = require('./chunk-ZIEQA3YP.cjs');
|
|
9
9
|
var chunkPM3UIIBK_cjs = require('./chunk-PM3UIIBK.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunk4QJBNJI4_cjs = require('./chunk-4QJBNJI4.cjs');
|
|
11
11
|
var chunkKNPIRLQQ_cjs = require('./chunk-KNPIRLQQ.cjs');
|
|
12
12
|
var chunk6BJ7XHRH_cjs = require('./chunk-6BJ7XHRH.cjs');
|
|
13
13
|
var chunk4D4KB75Y_cjs = require('./chunk-4D4KB75Y.cjs');
|
|
@@ -1827,7 +1827,7 @@ var ProcessorRunner = class _ProcessorRunner {
|
|
|
1827
1827
|
}
|
|
1828
1828
|
const { model: _model, ...rest } = result;
|
|
1829
1829
|
if (result.model) {
|
|
1830
|
-
const resolvedModel = await
|
|
1830
|
+
const resolvedModel = await chunk4QJBNJI4_cjs.resolveModelConfig(result.model);
|
|
1831
1831
|
const isSupported = isSupportedLanguageModel(resolvedModel);
|
|
1832
1832
|
if (!isSupported) {
|
|
1833
1833
|
throw new chunk4U7ZLI36_cjs.MastraError({
|
|
@@ -12682,7 +12682,7 @@ var MastraScorer = class _MastraScorer {
|
|
|
12682
12682
|
}
|
|
12683
12683
|
});
|
|
12684
12684
|
}
|
|
12685
|
-
const resolvedModel = await
|
|
12685
|
+
const resolvedModel = await chunk4QJBNJI4_cjs.resolveModelConfig(modelConfig, void 0, this.#mastra);
|
|
12686
12686
|
const judge = new Agent({
|
|
12687
12687
|
id: "judge",
|
|
12688
12688
|
name: "judge",
|
|
@@ -15755,7 +15755,7 @@ ${skillInstructions}`;
|
|
|
15755
15755
|
message: `Reference file "${referencePath}" not found in skill "${skillName}". Available references: ${availableRefs.join(", ") || "none"}`
|
|
15756
15756
|
};
|
|
15757
15757
|
}
|
|
15758
|
-
const result =
|
|
15758
|
+
const result = chunkRYVRCT7Z_cjs.extractLines(fullContent, startLine, endLine);
|
|
15759
15759
|
return {
|
|
15760
15760
|
success: true,
|
|
15761
15761
|
content: result.content,
|
|
@@ -15801,7 +15801,7 @@ ${skillInstructions}`;
|
|
|
15801
15801
|
message: `Script file "${scriptPath}" not found in skill "${skillName}". Available scripts: ${availableScripts.join(", ") || "none"}`
|
|
15802
15802
|
};
|
|
15803
15803
|
}
|
|
15804
|
-
const result =
|
|
15804
|
+
const result = chunkRYVRCT7Z_cjs.extractLines(fullContent, startLine, endLine);
|
|
15805
15805
|
return {
|
|
15806
15806
|
success: true,
|
|
15807
15807
|
content: result.content,
|
|
@@ -18460,7 +18460,7 @@ ${errorMessages}`,
|
|
|
18460
18460
|
*/
|
|
18461
18461
|
async resolveModelConfig(modelConfig, requestContext) {
|
|
18462
18462
|
try {
|
|
18463
|
-
return await
|
|
18463
|
+
return await chunk4QJBNJI4_cjs.resolveModelConfig(modelConfig, requestContext, this.#mastra);
|
|
18464
18464
|
} catch (error) {
|
|
18465
18465
|
const mastraError = new chunk4U7ZLI36_cjs.MastraError({
|
|
18466
18466
|
id: "AGENT_GET_MODEL_MISSING_MODEL_INSTANCE",
|
|
@@ -18837,7 +18837,7 @@ ${errorMessages}`,
|
|
|
18837
18837
|
if (!workspace) {
|
|
18838
18838
|
return convertedWorkspaceTools;
|
|
18839
18839
|
}
|
|
18840
|
-
const workspaceTools =
|
|
18840
|
+
const workspaceTools = chunkRYVRCT7Z_cjs.createWorkspaceTools(workspace);
|
|
18841
18841
|
if (Object.keys(workspaceTools).length > 0) {
|
|
18842
18842
|
this.logger.debug(`[Agent:${this.name}] - Adding workspace tools: ${Object.keys(workspaceTools).join(", ")}`, {
|
|
18843
18843
|
runId
|
|
@@ -19753,7 +19753,7 @@ ${errorMessages}`,
|
|
|
19753
19753
|
throw mastraError;
|
|
19754
19754
|
}
|
|
19755
19755
|
let headers;
|
|
19756
|
-
if (resolvedModel instanceof
|
|
19756
|
+
if (resolvedModel instanceof chunk4QJBNJI4_cjs.ModelRouterLanguageModel) {
|
|
19757
19757
|
headers = resolvedModel.config?.headers;
|
|
19758
19758
|
}
|
|
19759
19759
|
return [
|
|
@@ -19799,7 +19799,7 @@ ${errorMessages}`,
|
|
|
19799
19799
|
throw mastraError;
|
|
19800
19800
|
}
|
|
19801
19801
|
let headers;
|
|
19802
|
-
if (model2 instanceof
|
|
19802
|
+
if (model2 instanceof chunk4QJBNJI4_cjs.ModelRouterLanguageModel) {
|
|
19803
19803
|
headers = model2.config?.headers;
|
|
19804
19804
|
}
|
|
19805
19805
|
return {
|
|
@@ -23499,7 +23499,7 @@ https://mastra.ai/en/docs/memory/semantic-recall`
|
|
|
23499
23499
|
);
|
|
23500
23500
|
}
|
|
23501
23501
|
if (typeof config.embedder === "string") {
|
|
23502
|
-
this.embedder = new
|
|
23502
|
+
this.embedder = new chunk4QJBNJI4_cjs.ModelRouterEmbeddingModel(config.embedder);
|
|
23503
23503
|
} else {
|
|
23504
23504
|
this.embedder = config.embedder;
|
|
23505
23505
|
}
|
|
@@ -23538,7 +23538,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
23538
23538
|
}
|
|
23539
23539
|
setEmbedder(embedder, embedderOptions) {
|
|
23540
23540
|
if (typeof embedder === "string") {
|
|
23541
|
-
this.embedder = new
|
|
23541
|
+
this.embedder = new chunk4QJBNJI4_cjs.ModelRouterEmbeddingModel(embedder);
|
|
23542
23542
|
} else {
|
|
23543
23543
|
this.embedder = embedder;
|
|
23544
23544
|
}
|
|
@@ -24154,5 +24154,5 @@ exports.validateStepRequestContext = validateStepRequestContext;
|
|
|
24154
24154
|
exports.validateStepResumeData = validateStepResumeData;
|
|
24155
24155
|
exports.validateStepStateData = validateStepStateData;
|
|
24156
24156
|
exports.validateStepSuspendData = validateStepSuspendData;
|
|
24157
|
-
//# sourceMappingURL=chunk-
|
|
24158
|
-
//# sourceMappingURL=chunk-
|
|
24157
|
+
//# sourceMappingURL=chunk-SLMSUZBA.cjs.map
|
|
24158
|
+
//# sourceMappingURL=chunk-SLMSUZBA.cjs.map
|