@mastra/core 0.10.8-alpha.0 → 0.10.8-alpha.1
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.js +2 -2
- package/dist/{chunk-HMGBVYRZ.js → chunk-4HICEI7K.js} +1 -1
- package/dist/{chunk-LVHWPTTF.cjs → chunk-7ZBX25DV.cjs} +4 -2
- package/dist/{chunk-YNZWZHUB.cjs → chunk-CHBIZNA3.cjs} +4 -14
- package/dist/{chunk-ARLIH6PO.cjs → chunk-E4A4XDDG.cjs} +2 -2
- package/dist/{chunk-I27AAGKV.cjs → chunk-EYJXFYUH.cjs} +27 -22
- package/dist/{chunk-N234PKVU.js → chunk-FBURVKXA.js} +1 -1
- package/dist/{chunk-GF7LQBIM.cjs → chunk-GKCO24Z4.cjs} +2 -2
- package/dist/{chunk-TEKKVMXN.js → chunk-IUYII2WH.js} +4 -2
- package/dist/{chunk-ZAWJEWYW.js → chunk-QIQOR45O.js} +2 -12
- package/dist/{chunk-RG3R4Z7I.cjs → chunk-U2LC4K7N.cjs} +4 -4
- package/dist/{chunk-JQ7TNWEG.js → chunk-V73Z32LN.js} +1 -1
- package/dist/{chunk-SSDOXKZK.js → chunk-WK3SHUOG.js} +10 -5
- package/dist/{chunk-LVQUY7BQ.js → chunk-WTTYHREJ.js} +2 -2
- package/dist/{chunk-XMMNDVV2.cjs → chunk-ZPUHQGF5.cjs} +5 -5
- package/dist/index.cjs +34 -34
- package/dist/index.js +7 -7
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.js +1 -1
- package/dist/network/vNext/index.cjs +13 -13
- package/dist/network/vNext/index.js +2 -2
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.cjs +2 -2
- package/dist/storage/index.js +1 -1
- package/dist/utils.cjs +14 -14
- package/dist/utils.js +1 -1
- package/dist/workflows/index.cjs +10 -10
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +1 -1
package/dist/agent/index.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkEYJXFYUH_cjs = require('../chunk-EYJXFYUH.cjs');
|
|
4
|
+
var chunkCHBIZNA3_cjs = require('../chunk-CHBIZNA3.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 chunkEYJXFYUH_cjs.Agent; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "MessageList", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkCHBIZNA3_cjs.MessageList; }
|
|
15
15
|
});
|
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-WK3SHUOG.js';
|
|
2
|
+
export { MessageList } from '../chunk-QIQOR45O.js';
|
|
@@ -37,13 +37,15 @@ var CoreToolBuilder = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
37
37
|
// For provider-defined tools, we need to include all required properties
|
|
38
38
|
buildProviderTool(tool) {
|
|
39
39
|
if ("type" in tool && tool.type === "provider-defined" && "id" in tool && typeof tool.id === "string" && tool.id.includes(".")) {
|
|
40
|
+
const parameters = this.getParameters();
|
|
41
|
+
const outputSchema = this.getOutputSchema();
|
|
40
42
|
return {
|
|
41
43
|
type: "provider-defined",
|
|
42
44
|
id: tool.id,
|
|
43
45
|
args: "args" in this.originalTool ? this.originalTool.args : {},
|
|
44
46
|
description: tool.description,
|
|
45
|
-
parameters: schemaCompat.convertZodSchemaToAISDKSchema(
|
|
46
|
-
outputSchema: schemaCompat.convertZodSchemaToAISDKSchema(
|
|
47
|
+
parameters: schemaCompat.convertZodSchemaToAISDKSchema(parameters),
|
|
48
|
+
...outputSchema ? { outputSchema: schemaCompat.convertZodSchemaToAISDKSchema(outputSchema) } : {},
|
|
47
49
|
execute: this.originalTool.execute ? this.createExecute(
|
|
48
50
|
this.originalTool,
|
|
49
51
|
{ ...this.options, description: this.originalTool.description },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7ZBX25DV_cjs = require('./chunk-7ZBX25DV.cjs');
|
|
4
4
|
var crypto = require('crypto');
|
|
5
5
|
var ai = require('ai');
|
|
6
6
|
var providerUtils = require('@ai-sdk/provider-utils');
|
|
@@ -378,6 +378,7 @@ var MessageList = class _MessageList {
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
add(messages, messageSource) {
|
|
381
|
+
if (!messages) return this;
|
|
381
382
|
for (const message of Array.isArray(messages) ? messages : [messages]) {
|
|
382
383
|
this.addOne(
|
|
383
384
|
typeof message === `string` ? {
|
|
@@ -574,17 +575,6 @@ messageSource: ${messageSource}
|
|
|
574
575
|
${JSON.stringify(message, null, 2)}`
|
|
575
576
|
);
|
|
576
577
|
}
|
|
577
|
-
if (typeof message?.content?.content === "string") {
|
|
578
|
-
try {
|
|
579
|
-
message.content.content = JSON.parse(message.content.content);
|
|
580
|
-
} catch {
|
|
581
|
-
}
|
|
582
|
-
} else if (typeof message?.content === "string") {
|
|
583
|
-
try {
|
|
584
|
-
message.content = JSON.parse(message.content);
|
|
585
|
-
} catch {
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
578
|
const messageV2 = this.inputToMastraMessageV2(message, messageSource);
|
|
589
579
|
const { exists, shouldReplace, id } = this.shouldReplaceMessage(messageV2);
|
|
590
580
|
const latestMessage = this.messages.at(-1);
|
|
@@ -886,10 +876,10 @@ ${JSON.stringify(message, null, 2)}`
|
|
|
886
876
|
};
|
|
887
877
|
}
|
|
888
878
|
static isVercelUIMessage(msg) {
|
|
889
|
-
return !_MessageList.isMastraMessage(msg) &&
|
|
879
|
+
return !_MessageList.isMastraMessage(msg) && chunk7ZBX25DV_cjs.isUiMessage(msg);
|
|
890
880
|
}
|
|
891
881
|
static isVercelCoreMessage(msg) {
|
|
892
|
-
return !_MessageList.isMastraMessage(msg) &&
|
|
882
|
+
return !_MessageList.isMastraMessage(msg) && chunk7ZBX25DV_cjs.isCoreMessage(msg);
|
|
893
883
|
}
|
|
894
884
|
static isMastraMessage(msg) {
|
|
895
885
|
return _MessageList.isMastraMessageV2(msg) || _MessageList.isMastraMessageV1(msg);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkBB6DPGIV_cjs = require('./chunk-BB6DPGIV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkEYJXFYUH_cjs = require('./chunk-EYJXFYUH.cjs');
|
|
5
5
|
var chunk4Z3OU5RY_cjs = require('./chunk-4Z3OU5RY.cjs');
|
|
6
6
|
var chunkB6TOBUS6_cjs = require('./chunk-B6TOBUS6.cjs');
|
|
7
7
|
var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
|
|
@@ -1044,7 +1044,7 @@ function mapVariable(config) {
|
|
|
1044
1044
|
return config;
|
|
1045
1045
|
}
|
|
1046
1046
|
function createStep(params) {
|
|
1047
|
-
if (params instanceof
|
|
1047
|
+
if (params instanceof chunkEYJXFYUH_cjs.Agent) {
|
|
1048
1048
|
return {
|
|
1049
1049
|
id: params.name,
|
|
1050
1050
|
// @ts-ignore
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkZPOUMTTH_cjs = require('./chunk-ZPOUMTTH.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkCHBIZNA3_cjs = require('./chunk-CHBIZNA3.cjs');
|
|
5
5
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkZPUHQGF5_cjs = require('./chunk-ZPUHQGF5.cjs');
|
|
7
7
|
var chunkQQ5K5TZE_cjs = require('./chunk-QQ5K5TZE.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunk7ZBX25DV_cjs = require('./chunk-7ZBX25DV.cjs');
|
|
9
9
|
var chunkB6TOBUS6_cjs = require('./chunk-B6TOBUS6.cjs');
|
|
10
10
|
var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
|
|
11
11
|
var chunkZIZ3CVHN_cjs = require('./chunk-ZIZ3CVHN.cjs');
|
|
@@ -379,13 +379,13 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
379
379
|
this.logger.error(mastraError.toString());
|
|
380
380
|
throw mastraError;
|
|
381
381
|
}
|
|
382
|
-
return
|
|
382
|
+
return chunk7ZBX25DV_cjs.ensureToolProperties(this.#tools);
|
|
383
383
|
}
|
|
384
384
|
getTools({
|
|
385
385
|
runtimeContext = new chunkLABUWBKX_cjs.RuntimeContext()
|
|
386
386
|
} = {}) {
|
|
387
387
|
if (typeof this.#tools !== "function") {
|
|
388
|
-
return
|
|
388
|
+
return chunk7ZBX25DV_cjs.ensureToolProperties(this.#tools);
|
|
389
389
|
}
|
|
390
390
|
const result = this.#tools({
|
|
391
391
|
runtimeContext
|
|
@@ -405,7 +405,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
405
405
|
this.logger.error(mastraError.toString());
|
|
406
406
|
throw mastraError;
|
|
407
407
|
}
|
|
408
|
-
return
|
|
408
|
+
return chunk7ZBX25DV_cjs.ensureToolProperties(tools);
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
get llm() {
|
|
@@ -438,7 +438,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
438
438
|
runtimeContext
|
|
439
439
|
});
|
|
440
440
|
return resolveMaybePromise(model, model2 => {
|
|
441
|
-
const llm = new
|
|
441
|
+
const llm = new chunkZPUHQGF5_cjs.MastraLLM({
|
|
442
442
|
model: model2,
|
|
443
443
|
mastra: this.#mastra
|
|
444
444
|
});
|
|
@@ -539,7 +539,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
539
539
|
const llm = await this.getLLM({
|
|
540
540
|
runtimeContext
|
|
541
541
|
});
|
|
542
|
-
const normMessage = new
|
|
542
|
+
const normMessage = new chunkCHBIZNA3_cjs.MessageList().add(message, "user").get.all.ui().at(-1);
|
|
543
543
|
if (!normMessage) {
|
|
544
544
|
throw new Error(`Could not generate title from input ${JSON.stringify(message)}`);
|
|
545
545
|
}
|
|
@@ -588,7 +588,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
588
588
|
let title = `New Thread ${(/* @__PURE__ */new Date()).toISOString()}`;
|
|
589
589
|
try {
|
|
590
590
|
if (userMessage) {
|
|
591
|
-
const normMessage = new
|
|
591
|
+
const normMessage = new chunkCHBIZNA3_cjs.MessageList().add(userMessage, "user").get.all.ui().at(-1);
|
|
592
592
|
if (normMessage) {
|
|
593
593
|
title = await this.generateTitleFromUserMessage({
|
|
594
594
|
message: normMessage,
|
|
@@ -610,7 +610,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
610
610
|
runId,
|
|
611
611
|
userMessages,
|
|
612
612
|
systemMessage,
|
|
613
|
-
messageList = new
|
|
613
|
+
messageList = new chunkCHBIZNA3_cjs.MessageList({
|
|
614
614
|
threadId,
|
|
615
615
|
resourceId
|
|
616
616
|
})
|
|
@@ -662,7 +662,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
662
662
|
systemMessage: systemMessages,
|
|
663
663
|
memorySystemMessage: memorySystemMessage || void 0
|
|
664
664
|
});
|
|
665
|
-
const returnList = new
|
|
665
|
+
const returnList = new chunkCHBIZNA3_cjs.MessageList().addSystem(systemMessages).add(processedMemoryMessages, "memory").add(newMessages, "user");
|
|
666
666
|
return {
|
|
667
667
|
threadId: thread.id,
|
|
668
668
|
messages: returnList.get.all.prompt()
|
|
@@ -769,7 +769,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
769
769
|
runtimeContext
|
|
770
770
|
}) : this.model
|
|
771
771
|
};
|
|
772
|
-
return [k,
|
|
772
|
+
return [k, chunk7ZBX25DV_cjs.makeCoreTool(tool, options)];
|
|
773
773
|
}));
|
|
774
774
|
const assignedToolEntriesConverted = Object.fromEntries(assignedCoreToolEntries.filter(entry => Boolean(entry)));
|
|
775
775
|
toolsForRequest = {
|
|
@@ -809,7 +809,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
809
809
|
runtimeContext
|
|
810
810
|
}) : this.model
|
|
811
811
|
};
|
|
812
|
-
const convertedToCoreTool =
|
|
812
|
+
const convertedToCoreTool = chunk7ZBX25DV_cjs.makeCoreTool(toolObj, options, "toolset");
|
|
813
813
|
toolsForRequest[toolName] = convertedToCoreTool;
|
|
814
814
|
}
|
|
815
815
|
}
|
|
@@ -850,7 +850,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
850
850
|
runtimeContext
|
|
851
851
|
}) : this.model
|
|
852
852
|
};
|
|
853
|
-
const convertedToCoreTool =
|
|
853
|
+
const convertedToCoreTool = chunk7ZBX25DV_cjs.makeCoreTool(rest, options, "client-tool");
|
|
854
854
|
toolsForRequest[toolName] = convertedToCoreTool;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
@@ -925,7 +925,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
925
925
|
let mastraProxy = void 0;
|
|
926
926
|
const logger = this.logger;
|
|
927
927
|
if (this.#mastra) {
|
|
928
|
-
mastraProxy =
|
|
928
|
+
mastraProxy = chunk7ZBX25DV_cjs.createMastraProxy({
|
|
929
929
|
mastra: this.#mastra,
|
|
930
930
|
logger
|
|
931
931
|
});
|
|
@@ -1016,7 +1016,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
1016
1016
|
runId,
|
|
1017
1017
|
runtimeContext
|
|
1018
1018
|
});
|
|
1019
|
-
const messageList = new
|
|
1019
|
+
const messageList = new chunkCHBIZNA3_cjs.MessageList({
|
|
1020
1020
|
threadId,
|
|
1021
1021
|
resourceId,
|
|
1022
1022
|
generateMessageId
|
|
@@ -1085,7 +1085,7 @@ exports.Agent = class Agent extends (_a = chunkP3Q73CAW_cjs.MastraBase) {
|
|
|
1085
1085
|
resourceId,
|
|
1086
1086
|
config: memoryConfig,
|
|
1087
1087
|
// The new user messages aren't in the list yet cause we add memory messages first to try to make sure ordering is correct (memory comes before new user messages)
|
|
1088
|
-
vectorMessageSearch: new
|
|
1088
|
+
vectorMessageSearch: new chunkCHBIZNA3_cjs.MessageList().add(messages, `user`).getLatestUserContent() || ""
|
|
1089
1089
|
}).then(r => r.messagesV2), memory.getSystemMessage({
|
|
1090
1090
|
threadId: threadObject.id,
|
|
1091
1091
|
memoryConfig
|
|
@@ -1105,7 +1105,7 @@ The following messages were remembered from a different conversation:
|
|
|
1105
1105
|
<remembered_from_other_conversation>
|
|
1106
1106
|
${JSON.stringify(
|
|
1107
1107
|
// get v1 since they're closer to CoreMessages (which get sent to the LLM) but also include timestamps
|
|
1108
|
-
new
|
|
1108
|
+
new chunkCHBIZNA3_cjs.MessageList().add(resultsFromOtherThreads, "memory").get.all.v1())}
|
|
1109
1109
|
<end_remembered_from_other_conversation>`;
|
|
1110
1110
|
}
|
|
1111
1111
|
if (memorySystemMessage) {
|
|
@@ -1125,7 +1125,7 @@ ${JSON.stringify(
|
|
|
1125
1125
|
systemMessage,
|
|
1126
1126
|
memorySystemMessage: memorySystemMessage || void 0
|
|
1127
1127
|
});
|
|
1128
|
-
const processedList = new
|
|
1128
|
+
const processedList = new chunkCHBIZNA3_cjs.MessageList({
|
|
1129
1129
|
threadId: threadObject.id,
|
|
1130
1130
|
resourceId
|
|
1131
1131
|
}).addSystem(instructions || `${this.instructions}.`).addSystem(memorySystemMessage).add(context || [], "context").add(processedMemoryMessages, "memory").add(messageList.get.input.v2(), "user").get.all.prompt();
|
|
@@ -1169,9 +1169,14 @@ ${JSON.stringify(
|
|
|
1169
1169
|
threadId
|
|
1170
1170
|
});
|
|
1171
1171
|
const memory = this.getMemory();
|
|
1172
|
-
const
|
|
1172
|
+
const messageListResponses = new chunkCHBIZNA3_cjs.MessageList({
|
|
1173
|
+
threadId,
|
|
1174
|
+
resourceId
|
|
1175
|
+
}).add(result.response.messages, "response").get.all.core();
|
|
1176
|
+
const usedWorkingMemory = messageListResponses?.some(m => m.role === "tool" && m?.content?.some(c => c?.toolName === "updateWorkingMemory"));
|
|
1177
|
+
const thread2 = usedWorkingMemory ? threadId ? await memory?.getThreadById({
|
|
1173
1178
|
threadId
|
|
1174
|
-
}) : void 0
|
|
1179
|
+
}) : void 0 : threadAfter;
|
|
1175
1180
|
if (memory && resourceId && thread2) {
|
|
1176
1181
|
try {
|
|
1177
1182
|
let responseMessages = result.response.messages;
|
|
@@ -2344,7 +2349,7 @@ var Machine = class extends EventEmitter__default.default {
|
|
|
2344
2349
|
const logger = this.logger;
|
|
2345
2350
|
let mastraProxy = void 0;
|
|
2346
2351
|
if (this.#mastra) {
|
|
2347
|
-
mastraProxy =
|
|
2352
|
+
mastraProxy = chunk7ZBX25DV_cjs.createMastraProxy({
|
|
2348
2353
|
mastra: this.#mastra,
|
|
2349
2354
|
logger
|
|
2350
2355
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EMITTER_SYMBOL } from './chunk-Y7D2JLKS.js';
|
|
2
|
-
import { Agent } from './chunk-
|
|
2
|
+
import { Agent } from './chunk-WK3SHUOG.js';
|
|
3
3
|
import { Tool } from './chunk-C4LMN2IR.js';
|
|
4
4
|
import { MastraError } from './chunk-6UNGH46J.js';
|
|
5
5
|
import { MastraBase } from './chunk-5IEKR756.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEYJXFYUH_cjs = require('./chunk-EYJXFYUH.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 chunkEYJXFYUH_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.
|
|
@@ -31,13 +31,15 @@ var CoreToolBuilder = class extends MastraBase {
|
|
|
31
31
|
// For provider-defined tools, we need to include all required properties
|
|
32
32
|
buildProviderTool(tool) {
|
|
33
33
|
if ("type" in tool && tool.type === "provider-defined" && "id" in tool && typeof tool.id === "string" && tool.id.includes(".")) {
|
|
34
|
+
const parameters = this.getParameters();
|
|
35
|
+
const outputSchema = this.getOutputSchema();
|
|
34
36
|
return {
|
|
35
37
|
type: "provider-defined",
|
|
36
38
|
id: tool.id,
|
|
37
39
|
args: "args" in this.originalTool ? this.originalTool.args : {},
|
|
38
40
|
description: tool.description,
|
|
39
|
-
parameters: convertZodSchemaToAISDKSchema(
|
|
40
|
-
outputSchema: convertZodSchemaToAISDKSchema(
|
|
41
|
+
parameters: convertZodSchemaToAISDKSchema(parameters),
|
|
42
|
+
...outputSchema ? { outputSchema: convertZodSchemaToAISDKSchema(outputSchema) } : {},
|
|
41
43
|
execute: this.originalTool.execute ? this.createExecute(
|
|
42
44
|
this.originalTool,
|
|
43
45
|
{ ...this.options, description: this.originalTool.description },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isUiMessage, isCoreMessage } from './chunk-
|
|
1
|
+
import { isUiMessage, isCoreMessage } from './chunk-IUYII2WH.js';
|
|
2
2
|
import { randomUUID } from 'crypto';
|
|
3
3
|
import { convertToCoreMessages } from 'ai';
|
|
4
4
|
import { convertUint8ArrayToBase64, convertBase64ToUint8Array } from '@ai-sdk/provider-utils';
|
|
@@ -376,6 +376,7 @@ var MessageList = class _MessageList {
|
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
add(messages, messageSource) {
|
|
379
|
+
if (!messages) return this;
|
|
379
380
|
for (const message of Array.isArray(messages) ? messages : [messages]) {
|
|
380
381
|
this.addOne(
|
|
381
382
|
typeof message === `string` ? {
|
|
@@ -572,17 +573,6 @@ messageSource: ${messageSource}
|
|
|
572
573
|
${JSON.stringify(message, null, 2)}`
|
|
573
574
|
);
|
|
574
575
|
}
|
|
575
|
-
if (typeof message?.content?.content === "string") {
|
|
576
|
-
try {
|
|
577
|
-
message.content.content = JSON.parse(message.content.content);
|
|
578
|
-
} catch {
|
|
579
|
-
}
|
|
580
|
-
} else if (typeof message?.content === "string") {
|
|
581
|
-
try {
|
|
582
|
-
message.content = JSON.parse(message.content);
|
|
583
|
-
} catch {
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
576
|
const messageV2 = this.inputToMastraMessageV2(message, messageSource);
|
|
587
577
|
const { exists, shouldReplace, id } = this.shouldReplaceMessage(messageV2);
|
|
588
578
|
const latestMessage = this.messages.at(-1);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLXFZUKP3_cjs = require('./chunk-LXFZUKP3.cjs');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkCHBIZNA3_cjs = require('./chunk-CHBIZNA3.cjs');
|
|
5
|
+
var chunk7ZBX25DV_cjs = require('./chunk-7ZBX25DV.cjs');
|
|
6
6
|
var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
|
|
7
7
|
|
|
8
8
|
// src/memory/memory.ts
|
|
@@ -130,7 +130,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
130
130
|
if (config?.workingMemory && "use" in config.workingMemory) {
|
|
131
131
|
throw new Error("The workingMemory.use option has been removed. Working memory always uses tool-call mode.");
|
|
132
132
|
}
|
|
133
|
-
const mergedConfig =
|
|
133
|
+
const mergedConfig = chunk7ZBX25DV_cjs.deepMerge(this.threadConfig, config || {});
|
|
134
134
|
if (config?.workingMemory?.schema) {
|
|
135
135
|
if (mergedConfig.workingMemory) {
|
|
136
136
|
mergedConfig.workingMemory.schema = config.workingMemory.schema;
|
|
@@ -227,7 +227,7 @@ https://mastra.ai/en/docs/memory/overview`
|
|
|
227
227
|
toolCallIds
|
|
228
228
|
};
|
|
229
229
|
const savedMessages = await this.saveMessages({ messages: [message], memoryConfig: config });
|
|
230
|
-
const list = new
|
|
230
|
+
const list = new chunkCHBIZNA3_cjs.MessageList({ threadId, resourceId }).add(savedMessages[0], "memory");
|
|
231
231
|
return list.get.all.v1()[0];
|
|
232
232
|
}
|
|
233
233
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DefaultVoice } from './chunk-5HTMDAXP.js';
|
|
2
|
-
import { MessageList } from './chunk-
|
|
2
|
+
import { MessageList } from './chunk-QIQOR45O.js';
|
|
3
3
|
import { executeHook } from './chunk-BB4KXGBU.js';
|
|
4
|
-
import { MastraLLM } from './chunk-
|
|
4
|
+
import { MastraLLM } from './chunk-4HICEI7K.js';
|
|
5
5
|
import { InstrumentClass } from './chunk-TC2SCOTE.js';
|
|
6
|
-
import { ensureToolProperties, makeCoreTool, createMastraProxy } from './chunk-
|
|
6
|
+
import { ensureToolProperties, makeCoreTool, createMastraProxy } from './chunk-IUYII2WH.js';
|
|
7
7
|
import { MastraError } from './chunk-6UNGH46J.js';
|
|
8
8
|
import { MastraBase } from './chunk-5IEKR756.js';
|
|
9
9
|
import { RegisteredLogger } from './chunk-5YDTZN2X.js';
|
|
@@ -1162,9 +1162,14 @@ ${JSON.stringify(
|
|
|
1162
1162
|
threadId
|
|
1163
1163
|
});
|
|
1164
1164
|
const memory = this.getMemory();
|
|
1165
|
-
const
|
|
1165
|
+
const messageListResponses = new MessageList({
|
|
1166
|
+
threadId,
|
|
1167
|
+
resourceId
|
|
1168
|
+
}).add(result.response.messages, "response").get.all.core();
|
|
1169
|
+
const usedWorkingMemory = messageListResponses?.some(m => m.role === "tool" && m?.content?.some(c => c?.toolName === "updateWorkingMemory"));
|
|
1170
|
+
const thread2 = usedWorkingMemory ? threadId ? await memory?.getThreadById({
|
|
1166
1171
|
threadId
|
|
1167
|
-
}) : void 0
|
|
1172
|
+
}) : void 0 : threadAfter;
|
|
1168
1173
|
if (memory && resourceId && thread2) {
|
|
1169
1174
|
try {
|
|
1170
1175
|
let responseMessages = result.response.messages;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { augmentWithInit } from './chunk-YOQP5T77.js';
|
|
2
|
-
import { MessageList } from './chunk-
|
|
3
|
-
import { deepMerge } from './chunk-
|
|
2
|
+
import { MessageList } from './chunk-QIQOR45O.js';
|
|
3
|
+
import { deepMerge } from './chunk-IUYII2WH.js';
|
|
4
4
|
import { MastraBase } from './chunk-5IEKR756.js';
|
|
5
5
|
|
|
6
6
|
// src/memory/memory.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7ZBX25DV_cjs = require('./chunk-7ZBX25DV.cjs');
|
|
4
4
|
var chunkB6TOBUS6_cjs = require('./chunk-B6TOBUS6.cjs');
|
|
5
5
|
var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
|
|
6
6
|
var chunkZIZ3CVHN_cjs = require('./chunk-ZIZ3CVHN.cjs');
|
|
@@ -207,7 +207,7 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
207
207
|
});
|
|
208
208
|
if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
|
|
209
209
|
this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
|
|
210
|
-
await
|
|
210
|
+
await chunk7ZBX25DV_cjs.delay(10 * 1e3);
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
...rest
|
|
@@ -318,7 +318,7 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
318
318
|
});
|
|
319
319
|
if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
|
|
320
320
|
this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
|
|
321
|
-
await
|
|
321
|
+
await chunk7ZBX25DV_cjs.delay(10 * 1e3);
|
|
322
322
|
}
|
|
323
323
|
},
|
|
324
324
|
...rest
|
|
@@ -430,7 +430,7 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
430
430
|
});
|
|
431
431
|
if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
|
|
432
432
|
this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
|
|
433
|
-
await
|
|
433
|
+
await chunk7ZBX25DV_cjs.delay(10 * 1e3);
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
436
|
onFinish: async (props) => {
|
|
@@ -589,7 +589,7 @@ var MastraLLM = class extends MastraLLMBase {
|
|
|
589
589
|
});
|
|
590
590
|
if (props?.response?.headers?.["x-ratelimit-remaining-tokens"] && parseInt(props?.response?.headers?.["x-ratelimit-remaining-tokens"], 10) < 2e3) {
|
|
591
591
|
this.logger.warn("Rate limit approaching, waiting 10 seconds", { runId });
|
|
592
|
-
await
|
|
592
|
+
await chunk7ZBX25DV_cjs.delay(10 * 1e3);
|
|
593
593
|
}
|
|
594
594
|
},
|
|
595
595
|
onFinish: async (props) => {
|
package/dist/index.cjs
CHANGED
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkGWFS5DAR_cjs = require('./chunk-GWFS5DAR.cjs');
|
|
4
4
|
var chunkMP2QBLUJ_cjs = require('./chunk-MP2QBLUJ.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
5
|
+
var chunkE4A4XDDG_cjs = require('./chunk-E4A4XDDG.cjs');
|
|
6
|
+
var chunkU2LC4K7N_cjs = require('./chunk-U2LC4K7N.cjs');
|
|
7
|
+
var chunkGKCO24Z4_cjs = require('./chunk-GKCO24Z4.cjs');
|
|
8
8
|
var chunkF2WMR75C_cjs = require('./chunk-F2WMR75C.cjs');
|
|
9
9
|
var chunkJ52TXHZV_cjs = require('./chunk-J52TXHZV.cjs');
|
|
10
10
|
var chunkB7SQOKEC_cjs = require('./chunk-B7SQOKEC.cjs');
|
|
11
11
|
var chunkMUNFCOMB_cjs = require('./chunk-MUNFCOMB.cjs');
|
|
12
12
|
var chunkQZ3VZRUU_cjs = require('./chunk-QZ3VZRUU.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkEYJXFYUH_cjs = require('./chunk-EYJXFYUH.cjs');
|
|
14
14
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
15
15
|
var chunkQQ5K5TZE_cjs = require('./chunk-QQ5K5TZE.cjs');
|
|
16
|
-
var
|
|
16
|
+
var chunk7ZBX25DV_cjs = require('./chunk-7ZBX25DV.cjs');
|
|
17
17
|
var chunk4Z3OU5RY_cjs = require('./chunk-4Z3OU5RY.cjs');
|
|
18
18
|
var chunkZZLBNB3U_cjs = require('./chunk-ZZLBNB3U.cjs');
|
|
19
19
|
var chunkP3Q73CAW_cjs = require('./chunk-P3Q73CAW.cjs');
|
|
20
20
|
|
|
21
21
|
// src/agent/index.warning.ts
|
|
22
|
-
var Agent2 = class extends
|
|
22
|
+
var Agent2 = class extends chunkEYJXFYUH_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 chunkU2LC4K7N_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 chunkMP2QBLUJ_cjs.MastraVector {
|
|
|
101
101
|
};
|
|
102
102
|
|
|
103
103
|
// src/workflows/workflow.warning.ts
|
|
104
|
-
var Workflow2 = class extends
|
|
104
|
+
var Workflow2 = class extends chunkE4A4XDDG_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,55 +110,55 @@ var Workflow2 = class extends chunkARLIH6PO_cjs.Workflow {
|
|
|
110
110
|
|
|
111
111
|
Object.defineProperty(exports, "DefaultExecutionEngine", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkE4A4XDDG_cjs.DefaultExecutionEngine; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkE4A4XDDG_cjs.ExecutionEngine; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "Run", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkE4A4XDDG_cjs.Run; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "cloneStep", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkE4A4XDDG_cjs.cloneStep; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkE4A4XDDG_cjs.cloneWorkflow; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "createStep", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkE4A4XDDG_cjs.createStep; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "createWorkflow", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkE4A4XDDG_cjs.createWorkflow; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "mapVariable", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkE4A4XDDG_cjs.mapVariable; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkU2LC4K7N_cjs.MemoryProcessor; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkU2LC4K7N_cjs.memoryDefaultOptions; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkGKCO24Z4_cjs.CohereRelevanceScorer; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkGKCO24Z4_cjs.MastraAgentRelevanceScorer; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkGKCO24Z4_cjs.createSimilarityPrompt; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "Metric", {
|
|
164
164
|
enumerable: true,
|
|
@@ -214,55 +214,55 @@ Object.defineProperty(exports, "withSpan", {
|
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunk7ZBX25DV_cjs.checkEvalStorageFields; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunk7ZBX25DV_cjs.createMastraProxy; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "deepMerge", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunk7ZBX25DV_cjs.deepMerge; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "delay", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunk7ZBX25DV_cjs.delay; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunk7ZBX25DV_cjs.ensureToolProperties; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunk7ZBX25DV_cjs.isCoreMessage; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "isUiMessage", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunk7ZBX25DV_cjs.isUiMessage; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "isZodType", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunk7ZBX25DV_cjs.isZodType; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunk7ZBX25DV_cjs.makeCoreTool; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunk7ZBX25DV_cjs.maskStreamTags; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunk7ZBX25DV_cjs.parseFieldKey; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunk7ZBX25DV_cjs.parseSqlIdentifier; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunk7ZBX25DV_cjs.resolveSerializedZodOutput; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "createTool", {
|
|
268
268
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { MastraTTS } from './chunk-GH2KM66J.js';
|
|
2
2
|
import { MastraVector } from './chunk-V5D2LIF5.js';
|
|
3
|
-
import { Workflow } from './chunk-
|
|
4
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from './chunk-
|
|
5
|
-
import { MastraMemory } from './chunk-
|
|
6
|
-
export { MemoryProcessor, memoryDefaultOptions } from './chunk-
|
|
7
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
3
|
+
import { Workflow } from './chunk-FBURVKXA.js';
|
|
4
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from './chunk-FBURVKXA.js';
|
|
5
|
+
import { MastraMemory } from './chunk-WTTYHREJ.js';
|
|
6
|
+
export { MemoryProcessor, memoryDefaultOptions } from './chunk-WTTYHREJ.js';
|
|
7
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-V73Z32LN.js';
|
|
8
8
|
import { MastraStorage } from './chunk-FL5SZ2XU.js';
|
|
9
9
|
export { Metric, evaluate } from './chunk-AKYTYALY.js';
|
|
10
10
|
import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
|
|
11
11
|
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
12
12
|
export { Mastra } from './chunk-YXQF4U4L.js';
|
|
13
|
-
import { Agent } from './chunk-
|
|
13
|
+
import { Agent } from './chunk-WK3SHUOG.js';
|
|
14
14
|
export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
|
|
15
15
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-TC2SCOTE.js';
|
|
16
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-
|
|
16
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-IUYII2WH.js';
|
|
17
17
|
import { Tool } from './chunk-C4LMN2IR.js';
|
|
18
18
|
export { createTool } from './chunk-C4LMN2IR.js';
|
|
19
19
|
import { MastraDeployer } from './chunk-JNMQKJH4.js';
|
package/dist/memory/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkU2LC4K7N_cjs = require('../chunk-U2LC4K7N.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 chunkU2LC4K7N_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkU2LC4K7N_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkU2LC4K7N_cjs.memoryDefaultOptions; }
|
|
18
18
|
});
|
package/dist/memory/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-
|
|
1
|
+
export { MastraMemory, MemoryProcessor, memoryDefaultOptions } from '../chunk-WTTYHREJ.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEYJXFYUH_cjs = require('../chunk-EYJXFYUH.cjs');
|
|
4
4
|
var chunk4Z3OU5RY_cjs = require('../chunk-4Z3OU5RY.cjs');
|
|
5
5
|
var chunkB6TOBUS6_cjs = require('../chunk-B6TOBUS6.cjs');
|
|
6
6
|
var chunkP3Q73CAW_cjs = require('../chunk-P3Q73CAW.cjs');
|
|
@@ -18,7 +18,7 @@ var AgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
18
18
|
this.#instructions = config.instructions;
|
|
19
19
|
this.#agents = config.agents;
|
|
20
20
|
this.#model = config.model;
|
|
21
|
-
this.#routingAgent = new
|
|
21
|
+
this.#routingAgent = new chunkEYJXFYUH_cjs.Agent({
|
|
22
22
|
name: config.name,
|
|
23
23
|
instructions: this.getInstructions(),
|
|
24
24
|
model: this.#model,
|
package/dist/network/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkE4A4XDDG_cjs = require('../../chunk-E4A4XDDG.cjs');
|
|
4
4
|
var chunkBB6DPGIV_cjs = require('../../chunk-BB6DPGIV.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkEYJXFYUH_cjs = require('../../chunk-EYJXFYUH.cjs');
|
|
6
6
|
var chunkP3Q73CAW_cjs = require('../../chunk-P3Q73CAW.cjs');
|
|
7
7
|
var chunkZIZ3CVHN_cjs = require('../../chunk-ZIZ3CVHN.cjs');
|
|
8
8
|
var chunkLABUWBKX_cjs = require('../../chunk-LABUWBKX.cjs');
|
|
@@ -144,7 +144,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
144
144
|
|
|
145
145
|
Keep in mind that the user only sees the final result of the task. When reviewing completion, you should know that the user will not see the intermediate results.
|
|
146
146
|
`;
|
|
147
|
-
return new
|
|
147
|
+
return new chunkEYJXFYUH_cjs.Agent({
|
|
148
148
|
name: "routing-agent",
|
|
149
149
|
instructions,
|
|
150
150
|
model: this.#model,
|
|
@@ -156,7 +156,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
156
156
|
maxIterations
|
|
157
157
|
}) {
|
|
158
158
|
const networkWorkflow = this.createWorkflow({ runtimeContext });
|
|
159
|
-
const finalStep =
|
|
159
|
+
const finalStep = chunkE4A4XDDG_cjs.createStep({
|
|
160
160
|
id: "final-step",
|
|
161
161
|
inputSchema: networkWorkflow.outputSchema,
|
|
162
162
|
outputSchema: networkWorkflow.outputSchema,
|
|
@@ -170,7 +170,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
170
170
|
return inputData;
|
|
171
171
|
}
|
|
172
172
|
});
|
|
173
|
-
const mainWorkflow =
|
|
173
|
+
const mainWorkflow = chunkE4A4XDDG_cjs.createWorkflow({
|
|
174
174
|
id: "Agent-Network-Main-Workflow",
|
|
175
175
|
inputSchema: zod.z.object({
|
|
176
176
|
iteration: zod.z.number(),
|
|
@@ -207,7 +207,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
207
207
|
resourceId
|
|
208
208
|
}) {
|
|
209
209
|
const networkWorkflow = this.createWorkflow({ runtimeContext });
|
|
210
|
-
const finalStep =
|
|
210
|
+
const finalStep = chunkE4A4XDDG_cjs.createStep({
|
|
211
211
|
id: "final-step",
|
|
212
212
|
inputSchema: networkWorkflow.outputSchema,
|
|
213
213
|
outputSchema: networkWorkflow.outputSchema,
|
|
@@ -221,7 +221,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
221
221
|
return inputData;
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
|
-
const mainWorkflow =
|
|
224
|
+
const mainWorkflow = chunkE4A4XDDG_cjs.createWorkflow({
|
|
225
225
|
id: "Agent-Network-Main-Workflow",
|
|
226
226
|
inputSchema: zod.z.object({
|
|
227
227
|
iteration: zod.z.number(),
|
|
@@ -277,7 +277,7 @@ var NewAgentNetwork = class extends chunkP3Q73CAW_cjs.MastraBase {
|
|
|
277
277
|
createWorkflow({ runtimeContext }) {
|
|
278
278
|
const runId = crypto.randomUUID();
|
|
279
279
|
const runtimeContextToUse = runtimeContext || new chunkLABUWBKX_cjs.RuntimeContext();
|
|
280
|
-
const routingStep =
|
|
280
|
+
const routingStep = chunkE4A4XDDG_cjs.createStep({
|
|
281
281
|
id: "routing-step",
|
|
282
282
|
inputSchema: zod.z.object({
|
|
283
283
|
task: zod.z.string(),
|
|
@@ -387,7 +387,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
387
387
|
};
|
|
388
388
|
}
|
|
389
389
|
});
|
|
390
|
-
const agentStep =
|
|
390
|
+
const agentStep = chunkE4A4XDDG_cjs.createStep({
|
|
391
391
|
id: "agent-step",
|
|
392
392
|
inputSchema: zod.z.object({
|
|
393
393
|
task: zod.z.string(),
|
|
@@ -485,7 +485,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
485
485
|
};
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
|
-
const workflowStep =
|
|
488
|
+
const workflowStep = chunkE4A4XDDG_cjs.createStep({
|
|
489
489
|
id: "workflow-step",
|
|
490
490
|
inputSchema: zod.z.object({
|
|
491
491
|
task: zod.z.string(),
|
|
@@ -602,7 +602,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
|
-
const toolStep =
|
|
605
|
+
const toolStep = chunkE4A4XDDG_cjs.createStep({
|
|
606
606
|
id: "toolStep",
|
|
607
607
|
inputSchema: zod.z.object({
|
|
608
608
|
task: zod.z.string(),
|
|
@@ -672,7 +672,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
|
-
const finishStep =
|
|
675
|
+
const finishStep = chunkE4A4XDDG_cjs.createStep({
|
|
676
676
|
id: "finish-step",
|
|
677
677
|
inputSchema: zod.z.object({
|
|
678
678
|
task: zod.z.string(),
|
|
@@ -699,7 +699,7 @@ ${completionResult.object.finalResult}` : ""}
|
|
|
699
699
|
};
|
|
700
700
|
}
|
|
701
701
|
});
|
|
702
|
-
const networkWorkflow =
|
|
702
|
+
const networkWorkflow = chunkE4A4XDDG_cjs.createWorkflow({
|
|
703
703
|
id: "Agent-Network-Outer-Workflow",
|
|
704
704
|
inputSchema: zod.z.object({
|
|
705
705
|
task: zod.z.string(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createStep, createWorkflow } from '../../chunk-
|
|
1
|
+
import { createStep, createWorkflow } from '../../chunk-FBURVKXA.js';
|
|
2
2
|
import { EMITTER_SYMBOL } from '../../chunk-Y7D2JLKS.js';
|
|
3
|
-
import { Agent } from '../../chunk-
|
|
3
|
+
import { Agent } from '../../chunk-WK3SHUOG.js';
|
|
4
4
|
import { MastraBase } from '../../chunk-5IEKR756.js';
|
|
5
5
|
import { RegisteredLogger } from '../../chunk-5YDTZN2X.js';
|
|
6
6
|
import { RuntimeContext } from '../../chunk-SGGPJWRQ.js';
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkGKCO24Z4_cjs = require('../chunk-GKCO24Z4.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 chunkGKCO24Z4_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkGKCO24Z4_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkGKCO24Z4_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-V73Z32LN.js';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkF2WMR75C_cjs = require('../chunk-F2WMR75C.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkCHBIZNA3_cjs = require('../chunk-CHBIZNA3.cjs');
|
|
5
5
|
var chunkQQ5K5TZE_cjs = require('../chunk-QQ5K5TZE.cjs');
|
|
6
6
|
|
|
7
7
|
// src/storage/mock.ts
|
|
@@ -136,7 +136,7 @@ var MockStore = class extends chunkF2WMR75C_cjs.MastraStorage {
|
|
|
136
136
|
const key = message.id;
|
|
137
137
|
this.data.mastra_messages[key] = message;
|
|
138
138
|
}
|
|
139
|
-
const list = new
|
|
139
|
+
const list = new chunkCHBIZNA3_cjs.MessageList().add(messages, "memory");
|
|
140
140
|
if (format === `v2`) return list.get.all.v2();
|
|
141
141
|
return list.get.all.v1();
|
|
142
142
|
}
|
package/dist/storage/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MastraStorage } from '../chunk-FL5SZ2XU.js';
|
|
2
2
|
export { MastraStorage } from '../chunk-FL5SZ2XU.js';
|
|
3
|
-
import { MessageList } from '../chunk-
|
|
3
|
+
import { MessageList } from '../chunk-QIQOR45O.js';
|
|
4
4
|
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-TC2SCOTE.js';
|
|
5
5
|
|
|
6
6
|
// src/storage/mock.ts
|
package/dist/utils.cjs
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7ZBX25DV_cjs = require('./chunk-7ZBX25DV.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "checkEvalStorageFields", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk7ZBX25DV_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk7ZBX25DV_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7ZBX25DV_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7ZBX25DV_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk7ZBX25DV_cjs.ensureToolProperties; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk7ZBX25DV_cjs.isCoreMessage; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "isUiMessage", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk7ZBX25DV_cjs.isUiMessage; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "isZodType", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk7ZBX25DV_cjs.isZodType; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk7ZBX25DV_cjs.makeCoreTool; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk7ZBX25DV_cjs.maskStreamTags; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk7ZBX25DV_cjs.parseFieldKey; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk7ZBX25DV_cjs.parseSqlIdentifier; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk7ZBX25DV_cjs.resolveSerializedZodOutput; }
|
|
58
58
|
});
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-
|
|
1
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-IUYII2WH.js';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkE4A4XDDG_cjs = require('../chunk-E4A4XDDG.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 chunkE4A4XDDG_cjs.DefaultExecutionEngine; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "ExecutionEngine", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkE4A4XDDG_cjs.ExecutionEngine; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Run", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkE4A4XDDG_cjs.Run; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "Workflow", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkE4A4XDDG_cjs.Workflow; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "cloneStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkE4A4XDDG_cjs.cloneStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "cloneWorkflow", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkE4A4XDDG_cjs.cloneWorkflow; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "createStep", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkE4A4XDDG_cjs.createStep; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createWorkflow", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkE4A4XDDG_cjs.createWorkflow; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "mapVariable", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkE4A4XDDG_cjs.mapVariable; }
|
|
42
42
|
});
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-
|
|
1
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, Workflow, cloneStep, cloneWorkflow, createStep, createWorkflow, mapVariable } from '../chunk-FBURVKXA.js';
|
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkEYJXFYUH_cjs = require('../../chunk-EYJXFYUH.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 chunkEYJXFYUH_cjs.LegacyStep; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "LegacyWorkflow", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkEYJXFYUH_cjs.LegacyWorkflow; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkEYJXFYUH_cjs.WhenConditionReturnValue; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkEYJXFYUH_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkEYJXFYUH_cjs.getActivePathsAndStatus; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkEYJXFYUH_cjs.getResultActivePaths; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getStepResult", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkEYJXFYUH_cjs.getStepResult; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkEYJXFYUH_cjs.getSuspendedPaths; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "isAgent", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkEYJXFYUH_cjs.isAgent; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkEYJXFYUH_cjs.isConditionalKey; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkEYJXFYUH_cjs.isErrorEvent; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isFinalState", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkEYJXFYUH_cjs.isFinalState; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isLimboState", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkEYJXFYUH_cjs.isLimboState; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkEYJXFYUH_cjs.isTransitionEvent; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "isVariableReference", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkEYJXFYUH_cjs.isVariableReference; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isWorkflow", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkEYJXFYUH_cjs.isWorkflow; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkEYJXFYUH_cjs.mergeChildValue; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkEYJXFYUH_cjs.recursivelyCheckForFinalState; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "resolveVariables", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkEYJXFYUH_cjs.resolveVariables; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkEYJXFYUH_cjs.updateStepInHierarchy; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "workflowToStep", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkEYJXFYUH_cjs.workflowToStep; }
|
|
90
90
|
});
|
|
@@ -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-WK3SHUOG.js';
|