@mastra/core 0.9.0-alpha.3 → 0.9.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.d.ts +1 -0
- package/base.d.ts +1 -0
- package/bundler.d.ts +1 -0
- package/deployer.d.ts +1 -0
- package/di.d.ts +1 -0
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/bundler/index.d.cts +2 -2
- package/dist/bundler/index.d.ts +2 -2
- package/dist/{chunk-G7ZBKTMO.js → chunk-K2ND7GWX.js} +1 -1
- package/dist/{chunk-N65SIUYB.cjs → chunk-SWEQNJKB.cjs} +2 -2
- package/dist/{chunk-R7ZC6FMT.cjs → chunk-WBSBDECU.cjs} +5 -3
- package/dist/{chunk-TSJJG4WC.js → chunk-XD3ZW5QR.js} +5 -3
- package/dist/index.cjs +28 -28
- package/dist/index.js +3 -3
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.js +1 -1
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/workflows/index.cjs +23 -23
- package/dist/workflows/index.js +1 -1
- package/eval.d.ts +1 -0
- package/hooks.d.ts +1 -0
- package/integration.d.ts +1 -0
- package/llm.d.ts +1 -0
- package/logger.d.ts +1 -0
- package/mastra.d.ts +1 -0
- package/memory.d.ts +1 -0
- package/network.d.ts +1 -0
- package/package.json +8 -4
- package/relevance.d.ts +1 -0
- package/server.d.ts +1 -0
- package/storage/libsql.d.ts +1 -0
- package/storage.d.ts +1 -0
- package/telemetry/otel-vendor.d.ts +1 -0
- package/telemetry.d.ts +1 -0
- package/tools.d.ts +1 -0
- package/tts.d.ts +1 -0
- package/utils.d.ts +1 -0
- package/vector/filter.d.ts +1 -0
- package/vector/libsql.d.ts +1 -0
- package/vector.d.ts +1 -0
- package/voice.d.ts +1 -0
- package/workflows.d.ts +1 -0
package/agent.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/agent';
|
package/base.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/base.d.cts';
|
package/bundler.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/bundler';
|
package/deployer.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/deployer';
|
package/di.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/di';
|
package/dist/agent/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWBSBDECU_cjs = require('../chunk-WBSBDECU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Agent", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkWBSBDECU_cjs.Agent; }
|
|
10
10
|
});
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-XD3ZW5QR.js';
|
package/dist/bundler/index.d.cts
CHANGED
|
@@ -8,7 +8,7 @@ import '@opentelemetry/sdk-trace-base';
|
|
|
8
8
|
interface IBundler {
|
|
9
9
|
loadEnvVars(): Promise<Map<string, string>>;
|
|
10
10
|
getEnvFiles(): Promise<string[]>;
|
|
11
|
-
bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
11
|
+
bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
12
12
|
prepare(outputDirectory: string): Promise<void>;
|
|
13
13
|
writePackageJson(outputDirectory: string, dependencies: Map<string, string>): Promise<void>;
|
|
14
14
|
}
|
|
@@ -22,7 +22,7 @@ declare abstract class MastraBundler extends MastraBase implements IBundler {
|
|
|
22
22
|
abstract writePackageJson(outputDirectory: string, dependencies: Map<string, string>): Promise<void>;
|
|
23
23
|
abstract writeInstrumentationFile(outputDirectory: string): Promise<void>;
|
|
24
24
|
abstract getEnvFiles(): Promise<string[]>;
|
|
25
|
-
abstract bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
25
|
+
abstract bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { type IBundler, MastraBundler };
|
package/dist/bundler/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import '@opentelemetry/sdk-trace-base';
|
|
|
8
8
|
interface IBundler {
|
|
9
9
|
loadEnvVars(): Promise<Map<string, string>>;
|
|
10
10
|
getEnvFiles(): Promise<string[]>;
|
|
11
|
-
bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
11
|
+
bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
12
12
|
prepare(outputDirectory: string): Promise<void>;
|
|
13
13
|
writePackageJson(outputDirectory: string, dependencies: Map<string, string>): Promise<void>;
|
|
14
14
|
}
|
|
@@ -22,7 +22,7 @@ declare abstract class MastraBundler extends MastraBase implements IBundler {
|
|
|
22
22
|
abstract writePackageJson(outputDirectory: string, dependencies: Map<string, string>): Promise<void>;
|
|
23
23
|
abstract writeInstrumentationFile(outputDirectory: string): Promise<void>;
|
|
24
24
|
abstract getEnvFiles(): Promise<string[]>;
|
|
25
|
-
abstract bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
25
|
+
abstract bundle(entryFile: string, outputDirectory: string, toolsPaths: string[]): Promise<void>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export { type IBundler, MastraBundler };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWBSBDECU_cjs = require('./chunk-WBSBDECU.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 chunkWBSBDECU_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.
|
|
@@ -936,11 +936,11 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
936
936
|
getResponseMessages({
|
|
937
937
|
response,
|
|
938
938
|
threadId,
|
|
939
|
-
resourceId
|
|
939
|
+
resourceId,
|
|
940
|
+
now
|
|
940
941
|
}) {
|
|
941
942
|
if (!response.messages) return [];
|
|
942
943
|
const messagesArray = Array.isArray(response.messages) ? response.messages : [response.messages];
|
|
943
|
-
const now = Date.now();
|
|
944
944
|
return this.sanitizeResponseMessages(messagesArray).map((message, index) => {
|
|
945
945
|
const messageId = crypto$1.randomUUID();
|
|
946
946
|
let toolCallIds;
|
|
@@ -1349,6 +1349,7 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
1349
1349
|
type: "text"
|
|
1350
1350
|
};
|
|
1351
1351
|
});
|
|
1352
|
+
const dateResponseMessagesFrom = (threadMessages.at(-1)?.createdAt?.getTime?.() || Date.now()) + 1;
|
|
1352
1353
|
void (async () => {
|
|
1353
1354
|
if (!thread.title?.startsWith("New Thread")) {
|
|
1354
1355
|
return;
|
|
@@ -1369,7 +1370,8 @@ exports.Agent = class Agent extends (_a = chunkD63P5O4Q_cjs.MastraBase) {
|
|
|
1369
1370
|
messages: [...threadMessages, ...this.getResponseMessages({
|
|
1370
1371
|
threadId: threadId2,
|
|
1371
1372
|
resourceId,
|
|
1372
|
-
response: result.response
|
|
1373
|
+
response: result.response,
|
|
1374
|
+
now: dateResponseMessagesFrom
|
|
1373
1375
|
})],
|
|
1374
1376
|
memoryConfig: memoryConfig2
|
|
1375
1377
|
});
|
|
@@ -929,11 +929,11 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
929
929
|
getResponseMessages({
|
|
930
930
|
response,
|
|
931
931
|
threadId,
|
|
932
|
-
resourceId
|
|
932
|
+
resourceId,
|
|
933
|
+
now
|
|
933
934
|
}) {
|
|
934
935
|
if (!response.messages) return [];
|
|
935
936
|
const messagesArray = Array.isArray(response.messages) ? response.messages : [response.messages];
|
|
936
|
-
const now = Date.now();
|
|
937
937
|
return this.sanitizeResponseMessages(messagesArray).map((message, index) => {
|
|
938
938
|
const messageId = randomUUID();
|
|
939
939
|
let toolCallIds;
|
|
@@ -1342,6 +1342,7 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
1342
1342
|
type: "text"
|
|
1343
1343
|
};
|
|
1344
1344
|
});
|
|
1345
|
+
const dateResponseMessagesFrom = (threadMessages.at(-1)?.createdAt?.getTime?.() || Date.now()) + 1;
|
|
1345
1346
|
void (async () => {
|
|
1346
1347
|
if (!thread.title?.startsWith("New Thread")) {
|
|
1347
1348
|
return;
|
|
@@ -1362,7 +1363,8 @@ var Agent = class extends (_a = MastraBase) {
|
|
|
1362
1363
|
messages: [...threadMessages, ...this.getResponseMessages({
|
|
1363
1364
|
threadId: threadId2,
|
|
1364
1365
|
resourceId,
|
|
1365
|
-
response: result.response
|
|
1366
|
+
response: result.response,
|
|
1367
|
+
now: dateResponseMessagesFrom
|
|
1366
1368
|
})],
|
|
1367
1369
|
memoryConfig: memoryConfig2
|
|
1368
1370
|
});
|
package/dist/index.cjs
CHANGED
|
@@ -6,8 +6,8 @@ var chunkD6OBOFCM_cjs = require('./chunk-D6OBOFCM.cjs');
|
|
|
6
6
|
var chunkGHIBOJBM_cjs = require('./chunk-GHIBOJBM.cjs');
|
|
7
7
|
var chunk7JBINHJX_cjs = require('./chunk-7JBINHJX.cjs');
|
|
8
8
|
var chunkFPM2XCMS_cjs = require('./chunk-FPM2XCMS.cjs');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var chunkSWEQNJKB_cjs = require('./chunk-SWEQNJKB.cjs');
|
|
10
|
+
var chunkWBSBDECU_cjs = require('./chunk-WBSBDECU.cjs');
|
|
11
11
|
var chunkRIBNDTA6_cjs = require('./chunk-RIBNDTA6.cjs');
|
|
12
12
|
var chunkGNLZQNPE_cjs = require('./chunk-GNLZQNPE.cjs');
|
|
13
13
|
var chunkRZCYBC7D_cjs = require('./chunk-RZCYBC7D.cjs');
|
|
@@ -17,7 +17,7 @@ var chunk3C6V2FEP_cjs = require('./chunk-3C6V2FEP.cjs');
|
|
|
17
17
|
var chunkST5RMVLG_cjs = require('./chunk-ST5RMVLG.cjs');
|
|
18
18
|
|
|
19
19
|
// src/agent/index.warning.ts
|
|
20
|
-
var Agent2 = class extends
|
|
20
|
+
var Agent2 = class extends chunkWBSBDECU_cjs.Agent {
|
|
21
21
|
constructor(config) {
|
|
22
22
|
super(config);
|
|
23
23
|
this.logger.warn('Please import "Agent from "@mastra/core/agent" instead of "@mastra/core"');
|
|
@@ -105,7 +105,7 @@ var MastraVector2 = class extends chunk7JBINHJX_cjs.MastraVector {
|
|
|
105
105
|
};
|
|
106
106
|
|
|
107
107
|
// src/workflows/workflow.warning.ts
|
|
108
|
-
var Workflow2 = class extends
|
|
108
|
+
var Workflow2 = class extends chunkWBSBDECU_cjs.Workflow {
|
|
109
109
|
constructor(args) {
|
|
110
110
|
super(args);
|
|
111
111
|
this.logger.warn('Please import "Workflow" from "@mastra/core/workflows" instead of "@mastra/core"');
|
|
@@ -122,99 +122,99 @@ Object.defineProperty(exports, "MemoryProcessor", {
|
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "CohereRelevanceScorer", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkSWEQNJKB_cjs.CohereRelevanceScorer; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkSWEQNJKB_cjs.MastraAgentRelevanceScorer; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkSWEQNJKB_cjs.createSimilarityPrompt; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "Step", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkWBSBDECU_cjs.Step; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkWBSBDECU_cjs.WhenConditionReturnValue; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "agentToStep", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkWBSBDECU_cjs.agentToStep; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "createStep", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkWBSBDECU_cjs.createStep; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkWBSBDECU_cjs.getActivePathsAndStatus; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkWBSBDECU_cjs.getResultActivePaths; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "getStepResult", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkWBSBDECU_cjs.getStepResult; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkWBSBDECU_cjs.getSuspendedPaths; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "isAgent", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkWBSBDECU_cjs.isAgent; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkWBSBDECU_cjs.isConditionalKey; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkWBSBDECU_cjs.isErrorEvent; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "isFinalState", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkWBSBDECU_cjs.isFinalState; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "isLimboState", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkWBSBDECU_cjs.isLimboState; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkWBSBDECU_cjs.isTransitionEvent; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "isVariableReference", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkWBSBDECU_cjs.isVariableReference; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "isWorkflow", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkWBSBDECU_cjs.isWorkflow; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkWBSBDECU_cjs.mergeChildValue; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkWBSBDECU_cjs.recursivelyCheckForFinalState; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "resolveVariables", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkWBSBDECU_cjs.resolveVariables; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkWBSBDECU_cjs.updateStepInHierarchy; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "workflowToStep", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkWBSBDECU_cjs.workflowToStep; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "InstrumentClass", {
|
|
220
220
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { MastraMemory } from './chunk-2A2M2HHE.js';
|
|
|
5
5
|
export { MemoryProcessor } from './chunk-2A2M2HHE.js';
|
|
6
6
|
import { MastraVector } from './chunk-FY57LEMC.js';
|
|
7
7
|
import { MastraStorage } from './chunk-KWV5ZLOF.js';
|
|
8
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
9
|
-
import { Agent, Workflow } from './chunk-
|
|
10
|
-
export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-
|
|
8
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-K2ND7GWX.js';
|
|
9
|
+
import { Agent, Workflow } from './chunk-XD3ZW5QR.js';
|
|
10
|
+
export { Step, WhenConditionReturnValue, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-XD3ZW5QR.js';
|
|
11
11
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-HFOT2NFM.js';
|
|
12
12
|
import { Tool } from './chunk-4EEVN2IP.js';
|
|
13
13
|
export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-4EEVN2IP.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWBSBDECU_cjs = require('../chunk-WBSBDECU.cjs');
|
|
4
4
|
var chunkGNLZQNPE_cjs = require('../chunk-GNLZQNPE.cjs');
|
|
5
5
|
var chunkD63P5O4Q_cjs = require('../chunk-D63P5O4Q.cjs');
|
|
6
6
|
var chunkO7IW545H_cjs = require('../chunk-O7IW545H.cjs');
|
|
@@ -17,7 +17,7 @@ var AgentNetwork = class extends chunkD63P5O4Q_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 chunkWBSBDECU_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
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 chunkSWEQNJKB_cjs = require('../chunk-SWEQNJKB.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 chunkSWEQNJKB_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSWEQNJKB_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkSWEQNJKB_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-K2ND7GWX.js';
|
package/dist/workflows/index.cjs
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWBSBDECU_cjs = require('../chunk-WBSBDECU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Step", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkWBSBDECU_cjs.Step; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "WhenConditionReturnValue", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWBSBDECU_cjs.WhenConditionReturnValue; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "Workflow", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWBSBDECU_cjs.Workflow; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "agentToStep", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWBSBDECU_cjs.agentToStep; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "createStep", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWBSBDECU_cjs.createStep; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "getActivePathsAndStatus", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkWBSBDECU_cjs.getActivePathsAndStatus; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "getResultActivePaths", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkWBSBDECU_cjs.getResultActivePaths; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "getStepResult", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkWBSBDECU_cjs.getStepResult; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "getSuspendedPaths", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkWBSBDECU_cjs.getSuspendedPaths; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "isAgent", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkWBSBDECU_cjs.isAgent; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "isConditionalKey", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkWBSBDECU_cjs.isConditionalKey; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "isErrorEvent", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkWBSBDECU_cjs.isErrorEvent; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "isFinalState", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkWBSBDECU_cjs.isFinalState; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "isLimboState", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkWBSBDECU_cjs.isLimboState; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "isTransitionEvent", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkWBSBDECU_cjs.isTransitionEvent; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "isVariableReference", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkWBSBDECU_cjs.isVariableReference; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "isWorkflow", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkWBSBDECU_cjs.isWorkflow; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "mergeChildValue", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkWBSBDECU_cjs.mergeChildValue; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "recursivelyCheckForFinalState", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkWBSBDECU_cjs.recursivelyCheckForFinalState; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "resolveVariables", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkWBSBDECU_cjs.resolveVariables; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "updateStepInHierarchy", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkWBSBDECU_cjs.updateStepInHierarchy; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "workflowToStep", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkWBSBDECU_cjs.workflowToStep; }
|
|
94
94
|
});
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-
|
|
1
|
+
export { Step, WhenConditionReturnValue, Workflow, agentToStep, createStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from '../chunk-XD3ZW5QR.js';
|
package/eval.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/eval';
|
package/hooks.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/hooks';
|
package/integration.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/integration';
|
package/llm.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/llm';
|
package/logger.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/logger';
|
package/mastra.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/mastra';
|
package/memory.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/memory';
|
package/network.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/network';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "0.9.0-alpha.
|
|
3
|
+
"version": "0.9.0-alpha.5",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -121,8 +121,10 @@
|
|
|
121
121
|
"pino-pretty": "^13.0.0",
|
|
122
122
|
"radash": "^12.1.0",
|
|
123
123
|
"sift": "^17.1.3",
|
|
124
|
-
"xstate": "^5.19.2"
|
|
125
|
-
|
|
124
|
+
"xstate": "^5.19.2"
|
|
125
|
+
},
|
|
126
|
+
"peerDependencies": {
|
|
127
|
+
"zod": "^3.24.0"
|
|
126
128
|
},
|
|
127
129
|
"devDependencies": {
|
|
128
130
|
"@ai-sdk/openai": "^1.2.1",
|
|
@@ -142,6 +144,7 @@
|
|
|
142
144
|
"tsup": "^8.4.0",
|
|
143
145
|
"typescript": "^5.8.2",
|
|
144
146
|
"vitest": "^3.0.9",
|
|
147
|
+
"zod": "^3.24.2",
|
|
145
148
|
"@internal/lint": "0.0.2"
|
|
146
149
|
},
|
|
147
150
|
"engines": {
|
|
@@ -169,7 +172,8 @@
|
|
|
169
172
|
"check": "tsc --noEmit",
|
|
170
173
|
"analyze": "size-limit --why",
|
|
171
174
|
"lint": "eslint .",
|
|
172
|
-
"build": "tsup --config tsup.config.ts --format esm,cjs",
|
|
175
|
+
"pre-build": "tsup --config tsup.config.ts --format esm,cjs",
|
|
176
|
+
"build": "node ./tools/commonjs-tsc-fixer.js",
|
|
173
177
|
"build:watch": "pnpm build --watch",
|
|
174
178
|
"size": "size-limit",
|
|
175
179
|
"test": "vitest run"
|
package/relevance.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/relevance';
|
package/server.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/server';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/storage/libsql';
|
package/storage.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/storage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/telemetry/otel-vendor.d.cts';
|
package/telemetry.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/telemetry';
|
package/tools.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/tools';
|
package/tts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/tts';
|
package/utils.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/utils.d.cts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/vector/filter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/vector/libsql';
|
package/vector.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/vector';
|
package/voice.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/voice';
|
package/workflows.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/workflows';
|