@mastra/core 0.10.2 → 0.10.3
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/dist/agent/index.cjs +4 -4
- package/dist/agent/index.d.cts +1 -1
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +2 -2
- package/dist/{base-BEjkhvZ_.d.ts → base-Bdo-CPMn.d.ts} +2 -1
- package/dist/{base-BJBoI-g2.d.cts → base-Dmg7H-Iz.d.cts} +2 -1
- package/dist/{chunk-B2RDYK2X.js → chunk-4TEWSQS5.js} +1 -1
- package/dist/{chunk-7AWGDSGR.js → chunk-5EB62G6T.js} +1 -1
- package/dist/{chunk-JAVP6ACT.js → chunk-677GIYFF.js} +3 -0
- package/dist/{chunk-JBTXWDNO.js → chunk-B4TMM6NT.js} +3 -3
- package/dist/{chunk-5G3XWKIU.cjs → chunk-ERUGEZPR.cjs} +2 -2
- package/dist/{chunk-KUJQVCEL.cjs → chunk-FHLDRRKJ.cjs} +3 -0
- package/dist/{chunk-SKYO5NFQ.cjs → chunk-IBIGJYTD.cjs} +2 -2
- package/dist/{chunk-WE5ABCZN.js → chunk-K7BZ4VXX.js} +1 -1
- package/dist/{chunk-S4TS74VT.cjs → chunk-LMTSGD2E.cjs} +2 -2
- package/dist/{chunk-TO5645ZP.cjs → chunk-MVXVUMLA.cjs} +6 -6
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +25 -25
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/llm/index.d.cts +1 -1
- package/dist/llm/index.d.ts +1 -1
- package/dist/mastra/index.d.cts +1 -1
- package/dist/mastra/index.d.ts +1 -1
- package/dist/mcp/index.d.cts +1 -1
- package/dist/mcp/index.d.ts +1 -1
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +1 -1
- package/dist/memory/index.d.ts +1 -1
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +1 -1
- package/dist/relevance/index.d.ts +1 -1
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.d.cts +2 -2
- package/dist/server/index.d.ts +2 -2
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.d.cts +2 -2
- package/dist/storage/index.d.ts +2 -2
- package/dist/storage/index.js +1 -1
- package/dist/telemetry/index.d.cts +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/tools/index.d.cts +2 -2
- package/dist/tools/index.d.ts +2 -2
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/voice/index.d.cts +1 -1
- package/dist/voice/index.d.ts +1 -1
- package/dist/workflows/index.cjs +9 -9
- package/dist/workflows/index.d.cts +2 -2
- package/dist/workflows/index.d.ts +2 -2
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.d.cts +2 -2
- package/dist/workflows/legacy/index.d.ts +2 -2
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +2 -2
package/dist/agent/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkMVXVUMLA_cjs = require('../chunk-MVXVUMLA.cjs');
|
|
4
|
+
var chunkFHLDRRKJ_cjs = require('../chunk-FHLDRRKJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Agent", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkMVXVUMLA_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "MessageList", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkFHLDRRKJ_cjs.MessageList; }
|
|
15
15
|
});
|
package/dist/agent/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { A as Agent, ap as AgentConfig, bQ as AgentGenerateOptions, bR as AgentStreamOptions, bP as DynamicArgument, bn as MastraLanguageModel, bS as MastraMessageContentV2, s as MastraMessageV2, bN as MessageList, T as ToolsInput, bO as ToolsetsInput } from '../base-
|
|
4
|
+
export { A as Agent, ap as AgentConfig, bQ as AgentGenerateOptions, bR as AgentStreamOptions, bP as DynamicArgument, bn as MastraLanguageModel, bS as MastraMessageContentV2, s as MastraMessageV2, bN as MessageList, T as ToolsInput, bO as ToolsetsInput } from '../base-Dmg7H-Iz.cjs';
|
|
5
5
|
import '../base-BY9WFI65.cjs';
|
|
6
6
|
import '../types-Bo1uigWx.cjs';
|
|
7
7
|
import '../runtime-context/index.cjs';
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { A as Agent, ap as AgentConfig, bQ as AgentGenerateOptions, bR as AgentStreamOptions, bP as DynamicArgument, bn as MastraLanguageModel, bS as MastraMessageContentV2, s as MastraMessageV2, bN as MessageList, T as ToolsInput, bO as ToolsetsInput } from '../base-
|
|
4
|
+
export { A as Agent, ap as AgentConfig, bQ as AgentGenerateOptions, bR as AgentStreamOptions, bP as DynamicArgument, bn as MastraLanguageModel, bS as MastraMessageContentV2, s as MastraMessageV2, bN as MessageList, T as ToolsInput, bO as ToolsetsInput } from '../base-Bdo-CPMn.js';
|
|
5
5
|
import '../base-C0yUw8BC.js';
|
|
6
6
|
import '../types-Bo1uigWx.js';
|
|
7
7
|
import '../runtime-context/index.js';
|
package/dist/agent/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
2
|
-
export { MessageList } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-B4TMM6NT.js';
|
|
2
|
+
export { MessageList } from '../chunk-677GIYFF.js';
|
|
@@ -1680,7 +1680,7 @@ type MastraMessageV2 = {
|
|
|
1680
1680
|
type?: string;
|
|
1681
1681
|
};
|
|
1682
1682
|
type MessageInput = UIMessage | Message | MastraMessageV1 | CoreMessage$1 | MastraMessageV2;
|
|
1683
|
-
type MessageSource = 'memory' | 'response' | 'user' | 'system';
|
|
1683
|
+
type MessageSource = 'memory' | 'response' | 'user' | 'system' | 'context';
|
|
1684
1684
|
declare class MessageList {
|
|
1685
1685
|
private messages;
|
|
1686
1686
|
private systemMessages;
|
|
@@ -1689,6 +1689,7 @@ declare class MessageList {
|
|
|
1689
1689
|
private memoryMessages;
|
|
1690
1690
|
private newUserMessages;
|
|
1691
1691
|
private newResponseMessages;
|
|
1692
|
+
private userContextMessages;
|
|
1692
1693
|
private generateMessageId?;
|
|
1693
1694
|
constructor({ threadId, resourceId, generateMessageId, }?: {
|
|
1694
1695
|
threadId?: string;
|
|
@@ -1680,7 +1680,7 @@ type MastraMessageV2 = {
|
|
|
1680
1680
|
type?: string;
|
|
1681
1681
|
};
|
|
1682
1682
|
type MessageInput = UIMessage | Message | MastraMessageV1 | CoreMessage$1 | MastraMessageV2;
|
|
1683
|
-
type MessageSource = 'memory' | 'response' | 'user' | 'system';
|
|
1683
|
+
type MessageSource = 'memory' | 'response' | 'user' | 'system' | 'context';
|
|
1684
1684
|
declare class MessageList {
|
|
1685
1685
|
private messages;
|
|
1686
1686
|
private systemMessages;
|
|
@@ -1689,6 +1689,7 @@ declare class MessageList {
|
|
|
1689
1689
|
private memoryMessages;
|
|
1690
1690
|
private newUserMessages;
|
|
1691
1691
|
private newResponseMessages;
|
|
1692
|
+
private userContextMessages;
|
|
1692
1693
|
private generateMessageId?;
|
|
1693
1694
|
constructor({ threadId, resourceId, generateMessageId, }?: {
|
|
1694
1695
|
threadId?: string;
|
|
@@ -354,6 +354,7 @@ var MessageList = class _MessageList {
|
|
|
354
354
|
memoryMessages = /* @__PURE__ */ new Set();
|
|
355
355
|
newUserMessages = /* @__PURE__ */ new Set();
|
|
356
356
|
newResponseMessages = /* @__PURE__ */ new Set();
|
|
357
|
+
userContextMessages = /* @__PURE__ */ new Set();
|
|
357
358
|
generateMessageId;
|
|
358
359
|
constructor({
|
|
359
360
|
threadId,
|
|
@@ -643,6 +644,8 @@ ${JSON.stringify(message, null, 2)}`
|
|
|
643
644
|
this.newResponseMessages.add(messageV2);
|
|
644
645
|
} else if (messageSource === `user`) {
|
|
645
646
|
this.newUserMessages.add(messageV2);
|
|
647
|
+
} else if (messageSource === `context`) {
|
|
648
|
+
this.userContextMessages.add(messageV2);
|
|
646
649
|
} else {
|
|
647
650
|
throw new Error(`Missing message source for message ${messageV2}`);
|
|
648
651
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DefaultVoice } from './chunk-FLPSXJWQ.js';
|
|
2
|
-
import { MessageList } from './chunk-JAVP6ACT.js';
|
|
3
2
|
import { executeHook } from './chunk-BB4KXGBU.js';
|
|
4
3
|
import { MastraLLM } from './chunk-FGBS7VRU.js';
|
|
4
|
+
import { MessageList } from './chunk-677GIYFF.js';
|
|
5
5
|
import { InstrumentClass } from './chunk-EWDGXKOQ.js';
|
|
6
6
|
import { ensureToolProperties, makeCoreTool, createMastraProxy } from './chunk-Y5BGCPNZ.js';
|
|
7
7
|
import { MastraBase } from './chunk-JOCKZ2US.js';
|
|
@@ -763,7 +763,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
763
763
|
}).addSystem({
|
|
764
764
|
role: "system",
|
|
765
765
|
content: instructions || `${this.instructions}.`
|
|
766
|
-
}).add(context || [], "
|
|
766
|
+
}).add(context || [], "context");
|
|
767
767
|
if (!memory || !threadId && !resourceId) {
|
|
768
768
|
messageList.add(messages, "user");
|
|
769
769
|
return {
|
|
@@ -821,7 +821,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
821
821
|
const processedList = new MessageList({
|
|
822
822
|
threadId,
|
|
823
823
|
resourceId
|
|
824
|
-
}).addSystem(instructions || `${this.instructions}.`).addSystem(memorySystemMessage).add(context || [], "
|
|
824
|
+
}).addSystem(instructions || `${this.instructions}.`).addSystem(memorySystemMessage).add(context || [], "context").add(processedMemoryMessages, "memory").add(messageList.get.input.v2(), "user").get.all.prompt();
|
|
825
825
|
return {
|
|
826
826
|
convertedTools,
|
|
827
827
|
threadId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMVXVUMLA_cjs = require('./chunk-MVXVUMLA.cjs');
|
|
4
4
|
var cohereAi = require('cohere-ai');
|
|
5
5
|
|
|
6
6
|
var CohereRelevanceScorer = class {
|
|
@@ -38,7 +38,7 @@ Relevance score (0-1):`;
|
|
|
38
38
|
var MastraAgentRelevanceScorer = class {
|
|
39
39
|
agent;
|
|
40
40
|
constructor(name, model) {
|
|
41
|
-
this.agent = new
|
|
41
|
+
this.agent = new chunkMVXVUMLA_cjs.Agent({
|
|
42
42
|
name: `Relevance Scorer ${name}`,
|
|
43
43
|
instructions: `You are a specialized agent for evaluating the relevance of text to queries.
|
|
44
44
|
Your task is to rate how well a text passage answers a given query.
|
|
@@ -356,6 +356,7 @@ var MessageList = class _MessageList {
|
|
|
356
356
|
memoryMessages = /* @__PURE__ */ new Set();
|
|
357
357
|
newUserMessages = /* @__PURE__ */ new Set();
|
|
358
358
|
newResponseMessages = /* @__PURE__ */ new Set();
|
|
359
|
+
userContextMessages = /* @__PURE__ */ new Set();
|
|
359
360
|
generateMessageId;
|
|
360
361
|
constructor({
|
|
361
362
|
threadId,
|
|
@@ -645,6 +646,8 @@ ${JSON.stringify(message, null, 2)}`
|
|
|
645
646
|
this.newResponseMessages.add(messageV2);
|
|
646
647
|
} else if (messageSource === `user`) {
|
|
647
648
|
this.newUserMessages.add(messageV2);
|
|
649
|
+
} else if (messageSource === `context`) {
|
|
650
|
+
this.userContextMessages.add(messageV2);
|
|
648
651
|
} else {
|
|
649
652
|
throw new Error(`Missing message source for message ${messageV2}`);
|
|
650
653
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkBB6DPGIV_cjs = require('./chunk-BB6DPGIV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkMVXVUMLA_cjs = require('./chunk-MVXVUMLA.cjs');
|
|
5
5
|
var chunk4Z3OU5RY_cjs = require('./chunk-4Z3OU5RY.cjs');
|
|
6
6
|
var chunkVHZPWE5L_cjs = require('./chunk-VHZPWE5L.cjs');
|
|
7
7
|
var chunkRFAN7FAT_cjs = require('./chunk-RFAN7FAT.cjs');
|
|
@@ -720,7 +720,7 @@ var DefaultExecutionEngine = class extends ExecutionEngine {
|
|
|
720
720
|
|
|
721
721
|
// src/workflows/workflow.ts
|
|
722
722
|
function createStep(params) {
|
|
723
|
-
if (params instanceof
|
|
723
|
+
if (params instanceof chunkMVXVUMLA_cjs.Agent) {
|
|
724
724
|
return {
|
|
725
725
|
id: params.name,
|
|
726
726
|
// @ts-ignore
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EMITTER_SYMBOL } from './chunk-Y7D2JLKS.js';
|
|
2
|
-
import { Agent } from './chunk-
|
|
2
|
+
import { Agent } from './chunk-B4TMM6NT.js';
|
|
3
3
|
import { Tool } from './chunk-C4LMN2IR.js';
|
|
4
4
|
import { MastraBase } from './chunk-JOCKZ2US.js';
|
|
5
5
|
import { RegisteredLogger } from './chunk-XXVGT7SJ.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLXFZUKP3_cjs = require('./chunk-LXFZUKP3.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkFHLDRRKJ_cjs = require('./chunk-FHLDRRKJ.cjs');
|
|
5
5
|
var chunkWWLMZIHW_cjs = require('./chunk-WWLMZIHW.cjs');
|
|
6
6
|
var chunkVHZPWE5L_cjs = require('./chunk-VHZPWE5L.cjs');
|
|
7
7
|
|
|
@@ -221,7 +221,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
221
221
|
toolCallIds
|
|
222
222
|
};
|
|
223
223
|
const savedMessages = await this.saveMessages({ messages: [message], memoryConfig: config });
|
|
224
|
-
const list = new
|
|
224
|
+
const list = new chunkFHLDRRKJ_cjs.MessageList({ threadId, resourceId }).add(savedMessages[0], "memory");
|
|
225
225
|
return list.get.all.v1()[0];
|
|
226
226
|
}
|
|
227
227
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk3JGO7S6X_cjs = require('./chunk-3JGO7S6X.cjs');
|
|
4
|
-
var chunkKUJQVCEL_cjs = require('./chunk-KUJQVCEL.cjs');
|
|
5
4
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
6
5
|
var chunkVBSKHNCY_cjs = require('./chunk-VBSKHNCY.cjs');
|
|
6
|
+
var chunkFHLDRRKJ_cjs = require('./chunk-FHLDRRKJ.cjs');
|
|
7
7
|
var chunkTICDQWVJ_cjs = require('./chunk-TICDQWVJ.cjs');
|
|
8
8
|
var chunkWWLMZIHW_cjs = require('./chunk-WWLMZIHW.cjs');
|
|
9
9
|
var chunkVHZPWE5L_cjs = require('./chunk-VHZPWE5L.cjs');
|
|
@@ -393,7 +393,7 @@ exports.Agent = class Agent extends (_a = chunkVHZPWE5L_cjs.MastraBase) {
|
|
|
393
393
|
memoryConfig,
|
|
394
394
|
resourceId,
|
|
395
395
|
runId,
|
|
396
|
-
messageList = new
|
|
396
|
+
messageList = new chunkFHLDRRKJ_cjs.MessageList({
|
|
397
397
|
threadId,
|
|
398
398
|
resourceId
|
|
399
399
|
})
|
|
@@ -763,14 +763,14 @@ exports.Agent = class Agent extends (_a = chunkVHZPWE5L_cjs.MastraBase) {
|
|
|
763
763
|
runId,
|
|
764
764
|
runtimeContext
|
|
765
765
|
});
|
|
766
|
-
const messageList = new
|
|
766
|
+
const messageList = new chunkFHLDRRKJ_cjs.MessageList({
|
|
767
767
|
threadId,
|
|
768
768
|
resourceId,
|
|
769
769
|
generateMessageId
|
|
770
770
|
}).addSystem({
|
|
771
771
|
role: "system",
|
|
772
772
|
content: instructions || `${this.instructions}.`
|
|
773
|
-
}).add(context || [], "
|
|
773
|
+
}).add(context || [], "context");
|
|
774
774
|
if (!memory || !threadId && !resourceId) {
|
|
775
775
|
messageList.add(messages, "user");
|
|
776
776
|
return {
|
|
@@ -825,10 +825,10 @@ exports.Agent = class Agent extends (_a = chunkVHZPWE5L_cjs.MastraBase) {
|
|
|
825
825
|
systemMessage,
|
|
826
826
|
memorySystemMessage: memorySystemMessage || void 0
|
|
827
827
|
});
|
|
828
|
-
const processedList = new
|
|
828
|
+
const processedList = new chunkFHLDRRKJ_cjs.MessageList({
|
|
829
829
|
threadId,
|
|
830
830
|
resourceId
|
|
831
|
-
}).addSystem(instructions || `${this.instructions}.`).addSystem(memorySystemMessage).add(context || [], "
|
|
831
|
+
}).addSystem(instructions || `${this.instructions}.`).addSystem(memorySystemMessage).add(context || [], "context").add(processedMemoryMessages, "memory").add(messageList.get.input.v2(), "user").get.all.prompt();
|
|
832
832
|
return {
|
|
833
833
|
convertedTools,
|
|
834
834
|
threadId,
|
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.cjs';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.cjs';
|
|
3
|
-
import { A as Agent } from '../base-
|
|
3
|
+
import { A as Agent } from '../base-Dmg7H-Iz.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-BY9WFI65.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.js';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.js';
|
|
3
|
-
import { A as Agent } from '../base-
|
|
3
|
+
import { A as Agent } from '../base-Bdo-CPMn.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import '../base-C0yUw8BC.js';
|
|
6
6
|
import '@opentelemetry/api';
|
package/dist/index.cjs
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkHZ7ME4LD_cjs = require('./chunk-HZ7ME4LD.cjs');
|
|
4
4
|
var chunkTAHSAZUN_cjs = require('./chunk-TAHSAZUN.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var chunk5G3XWKIU_cjs = require('./chunk-5G3XWKIU.cjs');
|
|
5
|
+
var chunkIBIGJYTD_cjs = require('./chunk-IBIGJYTD.cjs');
|
|
6
|
+
var chunkERUGEZPR_cjs = require('./chunk-ERUGEZPR.cjs');
|
|
8
7
|
var chunkX6VHQCYN_cjs = require('./chunk-X6VHQCYN.cjs');
|
|
9
8
|
var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
10
9
|
var chunkB7SQOKEC_cjs = require('./chunk-B7SQOKEC.cjs');
|
|
11
10
|
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
11
|
+
var chunkLMTSGD2E_cjs = require('./chunk-LMTSGD2E.cjs');
|
|
12
12
|
var chunkSH2C4VTJ_cjs = require('./chunk-SH2C4VTJ.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkMVXVUMLA_cjs = require('./chunk-MVXVUMLA.cjs');
|
|
14
14
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
15
15
|
var chunkTICDQWVJ_cjs = require('./chunk-TICDQWVJ.cjs');
|
|
16
16
|
var chunkWWLMZIHW_cjs = require('./chunk-WWLMZIHW.cjs');
|
|
@@ -19,7 +19,7 @@ var chunkPKYG5CWB_cjs = require('./chunk-PKYG5CWB.cjs');
|
|
|
19
19
|
var chunkVHZPWE5L_cjs = require('./chunk-VHZPWE5L.cjs');
|
|
20
20
|
|
|
21
21
|
// src/agent/index.warning.ts
|
|
22
|
-
var Agent2 = class extends
|
|
22
|
+
var Agent2 = class extends chunkMVXVUMLA_cjs.Agent {
|
|
23
23
|
constructor(config) {
|
|
24
24
|
super(config);
|
|
25
25
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -69,7 +69,7 @@ var OpenAPIToolset2 = class extends chunkB7SQOKEC_cjs.OpenAPIToolset {
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
// src/memory/index.warning.ts
|
|
72
|
-
var MastraMemory2 = class extends
|
|
72
|
+
var MastraMemory2 = class extends chunkLMTSGD2E_cjs.MastraMemory {
|
|
73
73
|
constructor(_arg) {
|
|
74
74
|
super({ name: `Deprecated memory` });
|
|
75
75
|
this.logger.warn('Please import "MastraMemory" from "@mastra/core/memory" instead of "@mastra/core"');
|
|
@@ -101,7 +101,7 @@ var MastraVector2 = class extends chunkTAHSAZUN_cjs.MastraVector {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
// src/workflows/workflow.warning.ts
|
|
104
|
-
var Workflow2 = class extends
|
|
104
|
+
var Workflow2 = class extends chunkIBIGJYTD_cjs.Workflow {
|
|
105
105
|
constructor(args) {
|
|
106
106
|
super(args);
|
|
107
107
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -110,51 +110,43 @@ var Workflow2 = class extends chunkSKYO5NFQ_cjs.Workflow {
|
|
|
110
110
|
|
|
111
111
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkIBIGJYTD_cjs.DefaultExecutionEngine; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkIBIGJYTD_cjs.ExecutionEngine; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "Run", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkIBIGJYTD_cjs.Run; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "cloneStep", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkIBIGJYTD_cjs.cloneStep; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkIBIGJYTD_cjs.cloneWorkflow; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "createStep", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkIBIGJYTD_cjs.createStep; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "createWorkflow", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(exports, "MemoryProcessor", {
|
|
140
|
-
enumerable: true,
|
|
141
|
-
get: function () { return chunkS4TS74VT_cjs.MemoryProcessor; }
|
|
142
|
-
});
|
|
143
|
-
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
144
|
-
enumerable: true,
|
|
145
|
-
get: function () { return chunkS4TS74VT_cjs.memoryDefaultOptions; }
|
|
137
|
+
get: function () { return chunkIBIGJYTD_cjs.createWorkflow; }
|
|
146
138
|
});
|
|
147
139
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
148
140
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkERUGEZPR_cjs.CohereRelevanceScorer; }
|
|
150
142
|
});
|
|
151
143
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
152
144
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkERUGEZPR_cjs.MastraAgentRelevanceScorer; }
|
|
154
146
|
});
|
|
155
147
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
156
148
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkERUGEZPR_cjs.createSimilarityPrompt; }
|
|
158
150
|
});
|
|
159
151
|
Object.defineProperty(exports, "Metric", {
|
|
160
152
|
enumerable: true,
|
|
@@ -168,6 +160,14 @@ Object.defineProperty(exports, "createMockModel", {
|
|
|
168
160
|
enumerable: true,
|
|
169
161
|
get: function () { return chunkMUNFCOMB_cjs.createMockModel; }
|
|
170
162
|
});
|
|
163
|
+
Object.defineProperty(exports, "MemoryProcessor", {
|
|
164
|
+
enumerable: true,
|
|
165
|
+
get: function () { return chunkLMTSGD2E_cjs.MemoryProcessor; }
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function () { return chunkLMTSGD2E_cjs.memoryDefaultOptions; }
|
|
170
|
+
});
|
|
171
171
|
Object.defineProperty(exports, "Mastra", {
|
|
172
172
|
enumerable: true,
|
|
173
173
|
get: function () { return chunkSH2C4VTJ_cjs.Mastra; }
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.cjs';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
|
|
3
|
-
import { c as ToolAction, A as Agent$1, ap as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ao as ToolExecutionContext, al as Tool$1, f as Step, e as Workflow$1, aq as WorkflowConfig } from './base-
|
|
4
|
-
export { az as BaseStructuredOutputType, aQ as Config, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, C as CoreTool, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, be as DynamicMapping, ay as EmbedManyResult, ax as EmbedResult, E as EvalRow, b7 as ExecuteFunction, b6 as ExecutionEngine, b5 as ExecutionGraph, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, aD as GenerateReturn, an as InternalCoreTool, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aF as OutputType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, a_ as SerializedStepFlowEntry, aU as SharedMemoryConfig, b9 as StepFailure, aY as StepFlowEntry, bc as StepResult, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bj as StreamEvent, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, bi as VariableReference, V as VercelTool, bk as WatchEvent, b3 as WorkflowResult, w as WorkflowRun, bm as WorkflowRunState, v as WorkflowRuns, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, aP as createMockModel, a$ as createStep, am as createTool, b1 as createWorkflow, aX as memoryDefaultOptions } from './base-
|
|
3
|
+
import { c as ToolAction, A as Agent$1, ap as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ao as ToolExecutionContext, al as Tool$1, f as Step, e as Workflow$1, aq as WorkflowConfig } from './base-Dmg7H-Iz.cjs';
|
|
4
|
+
export { az as BaseStructuredOutputType, aQ as Config, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, C as CoreTool, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, be as DynamicMapping, ay as EmbedManyResult, ax as EmbedResult, E as EvalRow, b7 as ExecuteFunction, b6 as ExecutionEngine, b5 as ExecutionGraph, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, aD as GenerateReturn, an as InternalCoreTool, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aF as OutputType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, a_ as SerializedStepFlowEntry, aU as SharedMemoryConfig, b9 as StepFailure, aY as StepFlowEntry, bc as StepResult, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bj as StreamEvent, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, bi as VariableReference, V as VercelTool, bk as WatchEvent, b3 as WorkflowResult, w as WorkflowRun, bm as WorkflowRunState, v as WorkflowRuns, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, aP as createMockModel, a$ as createStep, am as createTool, b1 as createWorkflow, aX as memoryDefaultOptions } from './base-Dmg7H-Iz.cjs';
|
|
5
5
|
import { M as MastraBase$1 } from './base-BY9WFI65.cjs';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-BY9WFI65.cjs';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-BF2Sn7JX.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.js';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
|
|
3
|
-
import { c as ToolAction, A as Agent$1, ap as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ao as ToolExecutionContext, al as Tool$1, f as Step, e as Workflow$1, aq as WorkflowConfig } from './base-
|
|
4
|
-
export { az as BaseStructuredOutputType, aQ as Config, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, C as CoreTool, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, be as DynamicMapping, ay as EmbedManyResult, ax as EmbedResult, E as EvalRow, b7 as ExecuteFunction, b6 as ExecutionEngine, b5 as ExecutionGraph, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, aD as GenerateReturn, an as InternalCoreTool, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aF as OutputType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, a_ as SerializedStepFlowEntry, aU as SharedMemoryConfig, b9 as StepFailure, aY as StepFlowEntry, bc as StepResult, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bj as StreamEvent, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, bi as VariableReference, V as VercelTool, bk as WatchEvent, b3 as WorkflowResult, w as WorkflowRun, bm as WorkflowRunState, v as WorkflowRuns, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, aP as createMockModel, a$ as createStep, am as createTool, b1 as createWorkflow, aX as memoryDefaultOptions } from './base-
|
|
3
|
+
import { c as ToolAction, A as Agent$1, ap as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ao as ToolExecutionContext, al as Tool$1, f as Step, e as Workflow$1, aq as WorkflowConfig } from './base-Bdo-CPMn.js';
|
|
4
|
+
export { az as BaseStructuredOutputType, aQ as Config, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, C as CoreTool, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, be as DynamicMapping, ay as EmbedManyResult, ax as EmbedResult, E as EvalRow, b7 as ExecuteFunction, b6 as ExecutionEngine, b5 as ExecutionGraph, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, aD as GenerateReturn, an as InternalCoreTool, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aF as OutputType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, a_ as SerializedStepFlowEntry, aU as SharedMemoryConfig, b9 as StepFailure, aY as StepFlowEntry, bc as StepResult, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, r as StorageThreadType, bj as StreamEvent, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, bi as VariableReference, V as VercelTool, bk as WatchEvent, b3 as WorkflowResult, w as WorkflowRun, bm as WorkflowRunState, v as WorkflowRuns, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, aP as createMockModel, a$ as createStep, am as createTool, b1 as createWorkflow, aX as memoryDefaultOptions } from './base-Bdo-CPMn.js';
|
|
5
5
|
import { M as MastraBase$1 } from './base-C0yUw8BC.js';
|
|
6
6
|
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-C0yUw8BC.js';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-BF2Sn7JX.js';
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { MastraTTS } from './chunk-ZPOETARN.js';
|
|
2
2
|
import { MastraVector } from './chunk-PMAVDBJY.js';
|
|
3
|
-
import { Workflow } from './chunk-
|
|
4
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-
|
|
5
|
-
|
|
6
|
-
export { MemoryProcessor, memoryDefaultOptions } from './chunk-7AWGDSGR.js';
|
|
7
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-B2RDYK2X.js';
|
|
3
|
+
import { Workflow } from './chunk-K7BZ4VXX.js';
|
|
4
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-K7BZ4VXX.js';
|
|
5
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-4TEWSQS5.js';
|
|
8
6
|
import { MastraStorage } from './chunk-7MWWPVCE.js';
|
|
9
7
|
export { Metric, evaluate } from './chunk-PK5QRKSG.js';
|
|
10
8
|
import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
|
|
11
9
|
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
10
|
+
import { MastraMemory } from './chunk-5EB62G6T.js';
|
|
11
|
+
export { MemoryProcessor, memoryDefaultOptions } from './chunk-5EB62G6T.js';
|
|
12
12
|
export { Mastra } from './chunk-TIPFGQCO.js';
|
|
13
|
-
import { Agent } from './chunk-
|
|
13
|
+
import { Agent } from './chunk-B4TMM6NT.js';
|
|
14
14
|
export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
|
|
15
15
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-EWDGXKOQ.js';
|
|
16
16
|
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-Y5BGCPNZ.js';
|
package/dist/llm/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-
|
|
4
|
+
export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-Dmg7H-Iz.cjs';
|
|
5
5
|
import '../runtime-context/index.cjs';
|
|
6
6
|
import '../base-BY9WFI65.cjs';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-
|
|
4
|
+
export { az as BaseStructuredOutputType, au as CoreAssistantMessage, as as CoreMessage, at as CoreSystemMessage, aw as CoreToolMessage, av as CoreUserMessage, aJ as DefaultLLMStreamObjectOptions, aI as DefaultLLMStreamOptions, aH as DefaultLLMTextObjectOptions, aG as DefaultLLMTextOptions, ay as EmbedManyResult, ax as EmbedResult, aD as GenerateReturn, aN as LLMInnerStreamOptions, aO as LLMStreamObjectOptions, aM as LLMStreamOptions, aL as LLMTextObjectOptions, aK as LLMTextOptions, ar as LanguageModel, aF as OutputType, aE as StreamReturn, aC as StructuredOutput, aB as StructuredOutputArrayItem, aA as StructuredOutputType, aP as createMockModel } from '../base-Bdo-CPMn.js';
|
|
5
5
|
import '../runtime-context/index.js';
|
|
6
6
|
import '../base-C0yUw8BC.js';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/mastra/index.d.cts
CHANGED
package/dist/mastra/index.d.ts
CHANGED
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, h as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-
|
|
1
|
+
export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, h as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-Dmg7H-Iz.cjs';
|
|
2
2
|
import '../base-BY9WFI65.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import 'zod';
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, h as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-
|
|
1
|
+
export { bB as ArgumentInfo, bF as CommandInfo, bv as ConvertedTool, bG as EnvironmentVariableInfo, h as MCPServerBase, bJ as MCPServerConfig, by as MCPServerHTTPOptions, bx as MCPServerHonoSSEOptions, bw as MCPServerSSEOptions, bM as MCPToolType, bD as NamedArgumentInfo, bH as PackageInfo, bC as PositionalArgumentInfo, bI as RemoteInfo, bz as Repository, bL as ServerDetailInfo, bK as ServerInfo, bE as SubcommandInfo, bA as VersionDetail } from '../base-Bdo-CPMn.js';
|
|
2
2
|
import '../base-C0yUw8BC.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import 'zod';
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkLMTSGD2E_cjs = require('../chunk-LMTSGD2E.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 chunkLMTSGD2E_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkLMTSGD2E_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkLMTSGD2E_cjs.memoryDefaultOptions; }
|
|
18
18
|
});
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aU as SharedMemoryConfig, r as StorageThreadType, aX as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aU as SharedMemoryConfig, r as StorageThreadType, aX as memoryDefaultOptions } from '../base-Dmg7H-Iz.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-BY9WFI65.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aU as SharedMemoryConfig, r as StorageThreadType, aX as memoryDefaultOptions } from '../base-
|
|
1
|
+
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aT as MemoryConfig, aW as MemoryProcessor, aV as MemoryProcessorOpts, aS as MessageResponse, aR as MessageType, aU as SharedMemoryConfig, r as StorageThreadType, aX as memoryDefaultOptions } from '../base-Bdo-CPMn.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
3
|
import '../base-C0yUw8BC.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/memory/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-5EB62G6T.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMVXVUMLA_cjs = require('../chunk-MVXVUMLA.cjs');
|
|
4
4
|
var chunk4Z3OU5RY_cjs = require('../chunk-4Z3OU5RY.cjs');
|
|
5
5
|
var chunkVHZPWE5L_cjs = require('../chunk-VHZPWE5L.cjs');
|
|
6
6
|
var chunkRFAN7FAT_cjs = require('../chunk-RFAN7FAT.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkVHZPWE5L_cjs.MastraBase {
|
|
|
17
17
|
this.#instructions = config.instructions;
|
|
18
18
|
this.#agents = config.agents;
|
|
19
19
|
this.#model = config.model;
|
|
20
|
-
this.#routingAgent = new
|
|
20
|
+
this.#routingAgent = new chunkMVXVUMLA_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
package/dist/network/index.d.cts
CHANGED
package/dist/network/index.d.ts
CHANGED
package/dist/network/index.js
CHANGED
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkERUGEZPR_cjs = require('../chunk-ERUGEZPR.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkERUGEZPR_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkERUGEZPR_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkERUGEZPR_cjs.createSimilarityPrompt; }
|
|
18
18
|
});
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-4TEWSQS5.js';
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-
|
|
4
|
-
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-Dmg7H-Iz.cjs';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-Dmg7H-Iz.cjs';
|
|
5
5
|
import 'ai';
|
|
6
6
|
import '../base-BY9WFI65.cjs';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-
|
|
4
|
-
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-Bdo-CPMn.js';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-Bdo-CPMn.js';
|
|
5
5
|
import 'ai';
|
|
6
6
|
import '../base-C0yUw8BC.js';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkX6VHQCYN_cjs = require('../chunk-X6VHQCYN.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkFHLDRRKJ_cjs = require('../chunk-FHLDRRKJ.cjs');
|
|
5
5
|
var chunkTICDQWVJ_cjs = require('../chunk-TICDQWVJ.cjs');
|
|
6
6
|
|
|
7
7
|
// src/storage/mock.ts
|
|
@@ -92,7 +92,7 @@ var MockStore = class extends chunkX6VHQCYN_cjs.MastraStorage {
|
|
|
92
92
|
const key = message.id;
|
|
93
93
|
this.data.mastra_messages[key] = message;
|
|
94
94
|
}
|
|
95
|
-
const list = new
|
|
95
|
+
const list = new chunkFHLDRRKJ_cjs.MessageList().add(messages, "memory");
|
|
96
96
|
if (format === `v2`) return list.get.all.v2();
|
|
97
97
|
return list.get.all.v1();
|
|
98
98
|
}
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-
|
|
2
|
-
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, B as TABLE_EVALS, D as TABLE_MESSAGES, H as TABLE_SCHEMAS, F as TABLE_THREADS, G as TABLE_TRACES, z as TABLE_WORKFLOW_SNAPSHOT } from '../base-
|
|
1
|
+
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-Dmg7H-Iz.cjs';
|
|
2
|
+
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, B as TABLE_EVALS, D as TABLE_MESSAGES, H as TABLE_SCHEMAS, F as TABLE_THREADS, G as TABLE_TRACES, z as TABLE_WORKFLOW_SNAPSHOT } from '../base-Dmg7H-Iz.cjs';
|
|
3
3
|
import '../base-BY9WFI65.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-
|
|
2
|
-
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, B as TABLE_EVALS, D as TABLE_MESSAGES, H as TABLE_SCHEMAS, F as TABLE_THREADS, G as TABLE_TRACES, z as TABLE_WORKFLOW_SNAPSHOT } from '../base-
|
|
1
|
+
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-Bdo-CPMn.js';
|
|
2
|
+
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, B as TABLE_EVALS, D as TABLE_MESSAGES, H as TABLE_SCHEMAS, F as TABLE_THREADS, G as TABLE_TRACES, z as TABLE_WORKFLOW_SNAPSHOT } from '../base-Bdo-CPMn.js';
|
|
3
3
|
import '../base-C0yUw8BC.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MastraStorage } from '../chunk-7MWWPVCE.js';
|
|
2
2
|
export { MastraStorage } from '../chunk-7MWWPVCE.js';
|
|
3
|
-
import { MessageList } from '../chunk-
|
|
3
|
+
import { MessageList } from '../chunk-677GIYFF.js';
|
|
4
4
|
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-EWDGXKOQ.js';
|
|
5
5
|
|
|
6
6
|
// src/storage/mock.ts
|
|
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { I as IMastraLogger } from '../logger-BF2Sn7JX.cjs';
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
6
|
+
import { o as MastraStorage } from '../base-Dmg7H-Iz.cjs';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'ai';
|
|
9
9
|
import 'zod';
|
|
@@ -3,7 +3,7 @@ import { SpanKind, Context } from '@opentelemetry/api';
|
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
import { I as IMastraLogger } from '../logger-BF2Sn7JX.js';
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
6
|
+
import { o as MastraStorage } from '../base-Bdo-CPMn.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'ai';
|
|
9
9
|
import 'zod';
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-Dmg7H-Iz.cjs';
|
|
2
|
+
export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-Dmg7H-Iz.cjs';
|
|
3
3
|
import '../base-BY9WFI65.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-Bdo-CPMn.js';
|
|
2
|
+
export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-Bdo-CPMn.js';
|
|
3
3
|
import '../base-C0yUw8BC.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-Dmg7H-Iz.cjs';
|
|
2
2
|
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.cjs';
|
|
4
4
|
import { MastraVector } from './vector/index.cjs';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-Bdo-CPMn.js';
|
|
2
2
|
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bs as CompositeVoice, bt as DefaultVoice, br as MastraVoice, bq as VoiceConfig, bp as VoiceEventMap, bo as VoiceEventType } from '../base-
|
|
1
|
+
export { bs as CompositeVoice, bt as DefaultVoice, br as MastraVoice, bq as VoiceConfig, bp as VoiceEventMap, bo as VoiceEventType } from '../base-Dmg7H-Iz.cjs';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-BY9WFI65.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bs as CompositeVoice, bt as DefaultVoice, br as MastraVoice, bq as VoiceConfig, bp as VoiceEventMap, bo as VoiceEventType } from '../base-
|
|
1
|
+
export { bs as CompositeVoice, bt as DefaultVoice, br as MastraVoice, bq as VoiceConfig, bp as VoiceEventMap, bo as VoiceEventType } from '../base-Bdo-CPMn.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import '../base-C0yUw8BC.js';
|
|
4
4
|
import '@opentelemetry/api';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkIBIGJYTD_cjs = require('../chunk-IBIGJYTD.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkIBIGJYTD_cjs.DefaultExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkIBIGJYTD_cjs.ExecutionEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Run", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkIBIGJYTD_cjs.Run; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "Workflow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkIBIGJYTD_cjs.Workflow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cloneStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkIBIGJYTD_cjs.cloneStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkIBIGJYTD_cjs.cloneWorkflow; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "createStep", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkIBIGJYTD_cjs.createStep; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createWorkflow", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkIBIGJYTD_cjs.createWorkflow; }
|
|
38
38
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b6 as ExecutionEngine, bc as StepResult, b5 as ExecutionGraph, a_ as SerializedStepFlowEntry, aY as StepFlowEntry, f as Step, b7 as ExecuteFunction } from '../base-
|
|
2
|
-
export { be as DynamicMapping, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, b9 as StepFailure, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, bj as StreamEvent, bi as VariableReference, bk as WatchEvent, e as Workflow, aq as WorkflowConfig, b3 as WorkflowResult, bm as WorkflowRunState, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, a$ as createStep, b1 as createWorkflow } from '../base-
|
|
1
|
+
import { b6 as ExecutionEngine, bc as StepResult, b5 as ExecutionGraph, a_ as SerializedStepFlowEntry, aY as StepFlowEntry, f as Step, b7 as ExecuteFunction } from '../base-Dmg7H-Iz.cjs';
|
|
2
|
+
export { be as DynamicMapping, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, b9 as StepFailure, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, bj as StreamEvent, bi as VariableReference, bk as WatchEvent, e as Workflow, aq as WorkflowConfig, b3 as WorkflowResult, bm as WorkflowRunState, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, a$ as createStep, b1 as createWorkflow } from '../base-Dmg7H-Iz.cjs';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.cjs';
|
|
5
5
|
import 'ai';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b6 as ExecutionEngine, bc as StepResult, b5 as ExecutionGraph, a_ as SerializedStepFlowEntry, aY as StepFlowEntry, f as Step, b7 as ExecuteFunction } from '../base-
|
|
2
|
-
export { be as DynamicMapping, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, b9 as StepFailure, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, bj as StreamEvent, bi as VariableReference, bk as WatchEvent, e as Workflow, aq as WorkflowConfig, b3 as WorkflowResult, bm as WorkflowRunState, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, a$ as createStep, b1 as createWorkflow } from '../base-
|
|
1
|
+
import { b6 as ExecutionEngine, bc as StepResult, b5 as ExecutionGraph, a_ as SerializedStepFlowEntry, aY as StepFlowEntry, f as Step, b7 as ExecuteFunction } from '../base-Bdo-CPMn.js';
|
|
2
|
+
export { be as DynamicMapping, bh as ExtractSchemaFromStep, bg as ExtractSchemaType, bf as PathsToStringProps, b4 as Run, aZ as SerializedStep, b9 as StepFailure, bb as StepRunning, b8 as StepSuccess, ba as StepSuspended, bd as StepsRecord, bj as StreamEvent, bi as VariableReference, bk as WatchEvent, e as Workflow, aq as WorkflowConfig, b3 as WorkflowResult, bm as WorkflowRunState, bl as ZodPathType, b0 as cloneStep, b2 as cloneWorkflow, a$ as createStep, b1 as createWorkflow } from '../base-Bdo-CPMn.js';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.js';
|
|
5
5
|
import 'ai';
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../chunk-
|
|
1
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow } from '../chunk-K7BZ4VXX.js';
|
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMVXVUMLA_cjs = require('../../chunk-MVXVUMLA.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "LegacyStep", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkMVXVUMLA_cjs.LegacyStep; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "LegacyWorkflow", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkMVXVUMLA_cjs.LegacyWorkflow; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkMVXVUMLA_cjs.WhenConditionReturnValue; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkMVXVUMLA_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkMVXVUMLA_cjs.getActivePathsAndStatus; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkMVXVUMLA_cjs.getResultActivePaths; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getStepResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkMVXVUMLA_cjs.getStepResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkMVXVUMLA_cjs.getSuspendedPaths; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isAgent", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkMVXVUMLA_cjs.isAgent; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkMVXVUMLA_cjs.isConditionalKey; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkMVXVUMLA_cjs.isErrorEvent; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isFinalState", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkMVXVUMLA_cjs.isFinalState; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isLimboState", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkMVXVUMLA_cjs.isLimboState; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkMVXVUMLA_cjs.isTransitionEvent; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "isVariableReference", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkMVXVUMLA_cjs.isVariableReference; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isWorkflow", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkMVXVUMLA_cjs.isWorkflow; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkMVXVUMLA_cjs.mergeChildValue; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkMVXVUMLA_cjs.recursivelyCheckForFinalState; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "resolveVariables", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkMVXVUMLA_cjs.resolveVariables; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkMVXVUMLA_cjs.updateStepInHierarchy; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "workflowToStep", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkMVXVUMLA_cjs.workflowToStep; }
|
|
90
90
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as VariableReference, J as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, K as StepAction, N as LegacyWorkflowRunResult } from '../../base-
|
|
2
|
-
export { Y as ActionContext, X as BaseCondition, a7 as DependencyCheckOutput, ae as ExtractSchemaFromStep, ah as ExtractSchemaType, af as ExtractStepResult, aj as LegacyWorkflowRunState, ac as LegacyWorkflowState, ai as PathsToStringProps, a4 as ResolverFunctionInput, a5 as ResolverFunctionOutput, U as RetryConfig, $ as StepCondition, a0 as StepConfig, _ as StepDef, S as StepExecutionContext, R as StepGraph, ad as StepId, ag as StepInputType, Q as StepNode, a8 as StepResolverOutput, P as StepVariableType, a1 as StepsRecord, a6 as SubscriberFunctionOutput, Z as WhenConditionReturnValue, aa as WorkflowActionParams, ab as WorkflowActions, a9 as WorkflowActors, a3 as WorkflowEvent, a2 as WorkflowLogMessage, O as WorkflowOptions, ak as WorkflowResumeResult } from '../../base-
|
|
1
|
+
import { I as VariableReference, J as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, K as StepAction, N as LegacyWorkflowRunResult } from '../../base-Dmg7H-Iz.cjs';
|
|
2
|
+
export { Y as ActionContext, X as BaseCondition, a7 as DependencyCheckOutput, ae as ExtractSchemaFromStep, ah as ExtractSchemaType, af as ExtractStepResult, aj as LegacyWorkflowRunState, ac as LegacyWorkflowState, ai as PathsToStringProps, a4 as ResolverFunctionInput, a5 as ResolverFunctionOutput, U as RetryConfig, $ as StepCondition, a0 as StepConfig, _ as StepDef, S as StepExecutionContext, R as StepGraph, ad as StepId, ag as StepInputType, Q as StepNode, a8 as StepResolverOutput, P as StepVariableType, a1 as StepsRecord, a6 as SubscriberFunctionOutput, Z as WhenConditionReturnValue, aa as WorkflowActionParams, ab as WorkflowActions, a9 as WorkflowActors, a3 as WorkflowEvent, a2 as WorkflowLogMessage, O as WorkflowOptions, ak as WorkflowResumeResult } from '../../base-Dmg7H-Iz.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { M as Metric } from '../../types-Bo1uigWx.cjs';
|
|
5
5
|
import { I as IMastraLogger } from '../../logger-BF2Sn7JX.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as VariableReference, J as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, K as StepAction, N as LegacyWorkflowRunResult } from '../../base-
|
|
2
|
-
export { Y as ActionContext, X as BaseCondition, a7 as DependencyCheckOutput, ae as ExtractSchemaFromStep, ah as ExtractSchemaType, af as ExtractStepResult, aj as LegacyWorkflowRunState, ac as LegacyWorkflowState, ai as PathsToStringProps, a4 as ResolverFunctionInput, a5 as ResolverFunctionOutput, U as RetryConfig, $ as StepCondition, a0 as StepConfig, _ as StepDef, S as StepExecutionContext, R as StepGraph, ad as StepId, ag as StepInputType, Q as StepNode, a8 as StepResolverOutput, P as StepVariableType, a1 as StepsRecord, a6 as SubscriberFunctionOutput, Z as WhenConditionReturnValue, aa as WorkflowActionParams, ab as WorkflowActions, a9 as WorkflowActors, a3 as WorkflowEvent, a2 as WorkflowLogMessage, O as WorkflowOptions, ak as WorkflowResumeResult } from '../../base-
|
|
1
|
+
import { I as VariableReference, J as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, K as StepAction, N as LegacyWorkflowRunResult } from '../../base-Bdo-CPMn.js';
|
|
2
|
+
export { Y as ActionContext, X as BaseCondition, a7 as DependencyCheckOutput, ae as ExtractSchemaFromStep, ah as ExtractSchemaType, af as ExtractStepResult, aj as LegacyWorkflowRunState, ac as LegacyWorkflowState, ai as PathsToStringProps, a4 as ResolverFunctionInput, a5 as ResolverFunctionOutput, U as RetryConfig, $ as StepCondition, a0 as StepConfig, _ as StepDef, S as StepExecutionContext, R as StepGraph, ad as StepId, ag as StepInputType, Q as StepNode, a8 as StepResolverOutput, P as StepVariableType, a1 as StepsRecord, a6 as SubscriberFunctionOutput, Z as WhenConditionReturnValue, aa as WorkflowActionParams, ab as WorkflowActions, a9 as WorkflowActors, a3 as WorkflowEvent, a2 as WorkflowLogMessage, O as WorkflowOptions, ak as WorkflowResumeResult } from '../../base-Bdo-CPMn.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { M as Metric } from '../../types-Bo1uigWx.js';
|
|
5
5
|
import { I as IMastraLogger } from '../../logger-BF2Sn7JX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LegacyStep, LegacyWorkflow, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../../chunk-
|
|
1
|
+
export { LegacyStep, LegacyWorkflow, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../../chunk-B4TMM6NT.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.3",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
"typescript": "^5.8.2",
|
|
151
151
|
"vitest": "^3.1.2",
|
|
152
152
|
"zod": "^3.24.3",
|
|
153
|
-
"@internal/lint": "0.0.
|
|
153
|
+
"@internal/lint": "0.0.10"
|
|
154
154
|
},
|
|
155
155
|
"engines": {
|
|
156
156
|
"node": ">=20"
|