@mastra/core 0.10.2-alpha.7 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-BVo_KTj_.d.ts → base-BEjkhvZ_.d.ts} +1 -1
- package/dist/{base-CCeahyG8.d.cts → base-BJBoI-g2.d.cts} +1 -1
- package/dist/chunk-32C7JDIZ.js +1 -0
- package/dist/{chunk-GNJ7CAHY.js → chunk-4UWPFBC6.js} +1 -1
- package/dist/chunk-4Z3OU5RY.cjs +31 -0
- package/dist/{chunk-II7UBNGM.cjs → chunk-5G3XWKIU.cjs} +2 -2
- package/dist/{chunk-LKO4XMRH.js → chunk-7AWGDSGR.js} +2 -2
- package/dist/{chunk-6NJLWXMZ.js → chunk-B2RDYK2X.js} +1 -1
- package/dist/{chunk-YZB2YQ63.cjs → chunk-B7SQOKEC.cjs} +2 -2
- package/dist/chunk-C4LMN2IR.js +27 -0
- package/dist/{chunk-DXK4HYTL.js → chunk-FGBS7VRU.js} +1 -1
- package/dist/{chunk-MWU2UKZI.js → chunk-JAVP6ACT.js} +1 -1
- package/dist/{chunk-2AFAKGJ4.js → chunk-JBTXWDNO.js} +4 -3
- package/dist/{chunk-PBHXIWAK.cjs → chunk-KUJQVCEL.cjs} +3 -3
- package/dist/chunk-QFTBW7ZZ.cjs +2 -0
- package/dist/{chunk-SMPHOXU3.cjs → chunk-S4TS74VT.cjs} +4 -4
- package/dist/{chunk-P5XIIDTT.cjs → chunk-SKYO5NFQ.cjs} +4 -4
- package/dist/{chunk-IJWOVA22.cjs → chunk-TO5645ZP.cjs} +16 -15
- package/dist/{chunk-PNPMKRS2.cjs → chunk-VBSKHNCY.cjs} +5 -5
- package/dist/{chunk-24D3CMWO.js → chunk-WE5ABCZN.js} +2 -2
- package/dist/{chunk-TN3TNMXO.cjs → chunk-WWLMZIHW.cjs} +6 -31
- package/dist/{chunk-26WUL725.js → chunk-Y5BGCPNZ.js} +2 -24
- package/dist/error/index.cjs +75 -0
- package/dist/error/index.d.cts +80 -0
- package/dist/error/index.d.ts +80 -0
- package/dist/error/index.js +70 -0
- package/dist/eval/index.d.cts +1 -1
- package/dist/eval/index.d.ts +1 -1
- package/dist/index.cjs +48 -51
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -9
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +1 -1
- package/dist/integration/index.d.ts +1 -1
- package/dist/integration/index.js +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 +4 -4
- package/dist/network/index.d.cts +1 -1
- package/dist/network/index.d.ts +1 -1
- package/dist/network/index.js +2 -2
- 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.cjs +4 -4
- package/dist/tools/index.d.cts +18 -7
- package/dist/tools/index.d.ts +18 -7
- package/dist/tools/index.js +1 -1
- package/dist/utils.cjs +14 -18
- package/dist/utils.d.cts +4 -10
- package/dist/utils.d.ts +4 -10
- package/dist/utils.js +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/error.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
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
|
-
|
|
3
|
+
import { Workflow } from './chunk-WE5ABCZN.js';
|
|
4
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-WE5ABCZN.js';
|
|
5
|
+
import { MastraMemory } from './chunk-7AWGDSGR.js';
|
|
6
|
+
export { MemoryProcessor, memoryDefaultOptions } from './chunk-7AWGDSGR.js';
|
|
7
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-B2RDYK2X.js';
|
|
6
8
|
import { MastraStorage } from './chunk-7MWWPVCE.js';
|
|
7
9
|
export { Metric, evaluate } from './chunk-PK5QRKSG.js';
|
|
8
|
-
import { Integration, OpenAPIToolset } from './chunk-
|
|
10
|
+
import { Integration, OpenAPIToolset } from './chunk-4UWPFBC6.js';
|
|
9
11
|
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
10
12
|
export { Mastra } from './chunk-TIPFGQCO.js';
|
|
11
|
-
import {
|
|
12
|
-
export { MemoryProcessor, memoryDefaultOptions } from './chunk-LKO4XMRH.js';
|
|
13
|
-
import { Agent } from './chunk-2AFAKGJ4.js';
|
|
13
|
+
import { Agent } from './chunk-JBTXWDNO.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
|
-
|
|
17
|
-
|
|
16
|
+
export { checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-Y5BGCPNZ.js';
|
|
17
|
+
import { Tool } from './chunk-C4LMN2IR.js';
|
|
18
|
+
export { createTool } from './chunk-C4LMN2IR.js';
|
|
18
19
|
import { MastraDeployer } from './chunk-XJCP3SLA.js';
|
|
19
20
|
import { MastraBase } from './chunk-JOCKZ2US.js';
|
|
20
21
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkB7SQOKEC_cjs = require('../chunk-B7SQOKEC.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Integration", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkB7SQOKEC_cjs.Integration; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "OpenAPIToolset", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkB7SQOKEC_cjs.OpenAPIToolset; }
|
|
14
14
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Integration, OpenAPIToolset } from '../chunk-
|
|
1
|
+
export { Integration, OpenAPIToolset } from '../chunk-4UWPFBC6.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 {
|
|
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-BJBoI-g2.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 {
|
|
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-BEjkhvZ_.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,
|
|
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-BJBoI-g2.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,
|
|
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-BEjkhvZ_.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 chunkS4TS74VT_cjs = require('../chunk-S4TS74VT.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 chunkS4TS74VT_cjs.MastraMemory; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MemoryProcessor", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkS4TS74VT_cjs.MemoryProcessor; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "memoryDefaultOptions", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkS4TS74VT_cjs.memoryDefaultOptions; }
|
|
18
18
|
});
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
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-BJBoI-g2.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 {
|
|
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-BEjkhvZ_.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-7AWGDSGR.js';
|
package/dist/network/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkTO5645ZP_cjs = require('../chunk-TO5645ZP.cjs');
|
|
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');
|
|
7
7
|
var zod = require('zod');
|
|
@@ -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 chunkTO5645ZP_cjs.Agent({
|
|
21
21
|
name: config.name,
|
|
22
22
|
instructions: this.getInstructions(),
|
|
23
23
|
model: this.#model,
|
|
@@ -29,7 +29,7 @@ var AgentNetwork = class extends chunkVHZPWE5L_cjs.MastraBase {
|
|
|
29
29
|
}
|
|
30
30
|
getTools() {
|
|
31
31
|
return {
|
|
32
|
-
transmit:
|
|
32
|
+
transmit: chunk4Z3OU5RY_cjs.createTool({
|
|
33
33
|
id: "transmit",
|
|
34
34
|
description: "Call one or more specialized agents to handle specific tasks",
|
|
35
35
|
inputSchema: zod.z.object({
|
package/dist/network/index.d.cts
CHANGED
package/dist/network/index.d.ts
CHANGED
package/dist/network/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Agent } from '../chunk-
|
|
2
|
-
import { createTool } from '../chunk-
|
|
1
|
+
import { Agent } from '../chunk-JBTXWDNO.js';
|
|
2
|
+
import { createTool } from '../chunk-C4LMN2IR.js';
|
|
3
3
|
import { MastraBase } from '../chunk-JOCKZ2US.js';
|
|
4
4
|
import { RegisteredLogger } from '../chunk-XXVGT7SJ.js';
|
|
5
5
|
import { z } from 'zod';
|
package/dist/relevance/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5G3XWKIU_cjs = require('../chunk-5G3XWKIU.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 chunk5G3XWKIU_cjs.CohereRelevanceScorer; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "MastraAgentRelevanceScorer", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk5G3XWKIU_cjs.MastraAgentRelevanceScorer; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "createSimilarityPrompt", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk5G3XWKIU_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-B2RDYK2X.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 {
|
|
4
|
-
export {
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-BJBoI-g2.cjs';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-BJBoI-g2.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 {
|
|
4
|
-
export {
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-BEjkhvZ_.js';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-BEjkhvZ_.js';
|
|
5
5
|
import 'ai';
|
|
6
6
|
import '../base-C0yUw8BC.js';
|
|
7
7
|
import '@opentelemetry/api';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkX6VHQCYN_cjs = require('../chunk-X6VHQCYN.cjs');
|
|
4
|
+
var chunkKUJQVCEL_cjs = require('../chunk-KUJQVCEL.cjs');
|
|
4
5
|
var chunkTICDQWVJ_cjs = require('../chunk-TICDQWVJ.cjs');
|
|
5
|
-
var chunkPBHXIWAK_cjs = require('../chunk-PBHXIWAK.cjs');
|
|
6
6
|
|
|
7
7
|
// src/storage/mock.ts
|
|
8
8
|
var MockStore = class extends chunkX6VHQCYN_cjs.MastraStorage {
|
|
@@ -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 chunkKUJQVCEL_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 {
|
|
2
|
-
export {
|
|
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-BJBoI-g2.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-BJBoI-g2.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 {
|
|
2
|
-
export {
|
|
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-BEjkhvZ_.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-BEjkhvZ_.js';
|
|
3
3
|
import '../base-C0yUw8BC.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MastraStorage } from '../chunk-7MWWPVCE.js';
|
|
2
2
|
export { MastraStorage } from '../chunk-7MWWPVCE.js';
|
|
3
|
+
import { MessageList } from '../chunk-JAVP6ACT.js';
|
|
3
4
|
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_SCHEMAS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-EWDGXKOQ.js';
|
|
4
|
-
import { MessageList } from '../chunk-MWU2UKZI.js';
|
|
5
5
|
|
|
6
6
|
// src/storage/mock.ts
|
|
7
7
|
var MockStore = class extends MastraStorage {
|
|
@@ -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 {
|
|
6
|
+
import { o as MastraStorage } from '../base-BJBoI-g2.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 {
|
|
6
|
+
import { o as MastraStorage } from '../base-BEjkhvZ_.js';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import 'ai';
|
|
9
9
|
import 'zod';
|
package/dist/tools/index.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk4Z3OU5RY_cjs = require('../chunk-4Z3OU5RY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Tool", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk4Z3OU5RY_cjs.Tool; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createTool", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk4Z3OU5RY_cjs.createTool; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "isVercelTool", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk4Z3OU5RY_cjs.isVercelTool; }
|
|
18
18
|
});
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import 'ai';
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-BJBoI-g2.cjs';
|
|
2
|
+
export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-BJBoI-g2.cjs';
|
|
4
3
|
import '../base-BY9WFI65.cjs';
|
|
5
|
-
import '
|
|
6
|
-
import '../logger-BF2Sn7JX.cjs';
|
|
7
|
-
import 'stream';
|
|
8
|
-
import '@opentelemetry/sdk-trace-base';
|
|
4
|
+
import 'ai';
|
|
9
5
|
import 'zod';
|
|
10
6
|
import 'json-schema';
|
|
7
|
+
import '../logger-BF2Sn7JX.cjs';
|
|
8
|
+
import 'stream';
|
|
11
9
|
import '../tts/index.cjs';
|
|
10
|
+
import '@opentelemetry/api';
|
|
11
|
+
import '@opentelemetry/sdk-trace-base';
|
|
12
12
|
import '../vector/index.cjs';
|
|
13
13
|
import '../vector/filter/index.cjs';
|
|
14
14
|
import '../types-Bo1uigWx.cjs';
|
|
@@ -25,3 +25,14 @@ import '../deployer/index.cjs';
|
|
|
25
25
|
import '../bundler/index.cjs';
|
|
26
26
|
import 'hono/cors';
|
|
27
27
|
import 'hono-openapi';
|
|
28
|
+
|
|
29
|
+
type ToolToConvert = VercelTool | ToolAction<any, any, any>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Checks if a tool is a Vercel Tool
|
|
33
|
+
* @param tool - The tool to check
|
|
34
|
+
* @returns True if the tool is a Vercel Tool, false otherwise
|
|
35
|
+
*/
|
|
36
|
+
declare function isVercelTool(tool?: ToolToConvert): tool is VercelTool;
|
|
37
|
+
|
|
38
|
+
export { ToolAction, VercelTool, isVercelTool };
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import 'ai';
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-BEjkhvZ_.js';
|
|
2
|
+
export { C as CoreTool, an as InternalCoreTool, al as Tool, ao as ToolExecutionContext, am as createTool } from '../base-BEjkhvZ_.js';
|
|
4
3
|
import '../base-C0yUw8BC.js';
|
|
5
|
-
import '
|
|
6
|
-
import '../logger-BF2Sn7JX.js';
|
|
7
|
-
import 'stream';
|
|
8
|
-
import '@opentelemetry/sdk-trace-base';
|
|
4
|
+
import 'ai';
|
|
9
5
|
import 'zod';
|
|
10
6
|
import 'json-schema';
|
|
7
|
+
import '../logger-BF2Sn7JX.js';
|
|
8
|
+
import 'stream';
|
|
11
9
|
import '../tts/index.js';
|
|
10
|
+
import '@opentelemetry/api';
|
|
11
|
+
import '@opentelemetry/sdk-trace-base';
|
|
12
12
|
import '../vector/index.js';
|
|
13
13
|
import '../vector/filter/index.js';
|
|
14
14
|
import '../types-Bo1uigWx.js';
|
|
@@ -25,3 +25,14 @@ import '../deployer/index.js';
|
|
|
25
25
|
import '../bundler/index.js';
|
|
26
26
|
import 'hono/cors';
|
|
27
27
|
import 'hono-openapi';
|
|
28
|
+
|
|
29
|
+
type ToolToConvert = VercelTool | ToolAction<any, any, any>;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Checks if a tool is a Vercel Tool
|
|
33
|
+
* @param tool - The tool to check
|
|
34
|
+
* @returns True if the tool is a Vercel Tool, false otherwise
|
|
35
|
+
*/
|
|
36
|
+
declare function isVercelTool(tool?: ToolToConvert): tool is VercelTool;
|
|
37
|
+
|
|
38
|
+
export { ToolAction, VercelTool, isVercelTool };
|
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Tool, createTool, isVercelTool } from '../chunk-
|
|
1
|
+
export { Tool, createTool, isVercelTool } from '../chunk-C4LMN2IR.js';
|
package/dist/utils.cjs
CHANGED
|
@@ -1,62 +1,58 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWWLMZIHW_cjs = require('./chunk-WWLMZIHW.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 chunkWWLMZIHW_cjs.checkEvalStorageFields; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "createMastraProxy", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkWWLMZIHW_cjs.createMastraProxy; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "deepMerge", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkWWLMZIHW_cjs.deepMerge; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "delay", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWWLMZIHW_cjs.delay; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "ensureToolProperties", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWWLMZIHW_cjs.ensureToolProperties; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "isCoreMessage", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkWWLMZIHW_cjs.isCoreMessage; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "isUiMessage", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(exports, "isVercelTool", {
|
|
36
|
-
enumerable: true,
|
|
37
|
-
get: function () { return chunkTN3TNMXO_cjs.isVercelTool; }
|
|
33
|
+
get: function () { return chunkWWLMZIHW_cjs.isUiMessage; }
|
|
38
34
|
});
|
|
39
35
|
Object.defineProperty(exports, "isZodType", {
|
|
40
36
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkWWLMZIHW_cjs.isZodType; }
|
|
42
38
|
});
|
|
43
39
|
Object.defineProperty(exports, "makeCoreTool", {
|
|
44
40
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkWWLMZIHW_cjs.makeCoreTool; }
|
|
46
42
|
});
|
|
47
43
|
Object.defineProperty(exports, "maskStreamTags", {
|
|
48
44
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkWWLMZIHW_cjs.maskStreamTags; }
|
|
50
46
|
});
|
|
51
47
|
Object.defineProperty(exports, "parseFieldKey", {
|
|
52
48
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkWWLMZIHW_cjs.parseFieldKey; }
|
|
54
50
|
});
|
|
55
51
|
Object.defineProperty(exports, "parseSqlIdentifier", {
|
|
56
52
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkWWLMZIHW_cjs.parseSqlIdentifier; }
|
|
58
54
|
});
|
|
59
55
|
Object.defineProperty(exports, "resolveSerializedZodOutput", {
|
|
60
56
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkWWLMZIHW_cjs.resolveSerializedZodOutput; }
|
|
62
58
|
});
|
package/dist/utils.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-BJBoI-g2.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';
|
|
@@ -19,11 +19,11 @@ import './workflows/constants.cjs';
|
|
|
19
19
|
import 'ai/test';
|
|
20
20
|
import './deployer/index.cjs';
|
|
21
21
|
import './bundler/index.cjs';
|
|
22
|
-
import 'stream';
|
|
23
|
-
import '@opentelemetry/sdk-trace-base';
|
|
24
22
|
import 'hono/cors';
|
|
25
23
|
import 'hono-openapi';
|
|
26
24
|
import './vector/filter/index.cjs';
|
|
25
|
+
import 'stream';
|
|
26
|
+
import '@opentelemetry/sdk-trace-base';
|
|
27
27
|
|
|
28
28
|
declare const delay: (ms: number) => Promise<unknown>;
|
|
29
29
|
/**
|
|
@@ -53,12 +53,6 @@ declare function maskStreamTags(stream: AsyncIterable<string>, tag: string, opti
|
|
|
53
53
|
* @returns resolved zod object
|
|
54
54
|
*/
|
|
55
55
|
declare function resolveSerializedZodOutput(schema: string): z.ZodType;
|
|
56
|
-
/**
|
|
57
|
-
* Checks if a tool is a Vercel Tool
|
|
58
|
-
* @param tool - The tool to check
|
|
59
|
-
* @returns True if the tool is a Vercel Tool, false otherwise
|
|
60
|
-
*/
|
|
61
|
-
declare function isVercelTool(tool?: ToolToConvert): tool is VercelTool;
|
|
62
56
|
interface ToolOptions {
|
|
63
57
|
name: string;
|
|
64
58
|
runId?: string;
|
|
@@ -149,4 +143,4 @@ declare function parseSqlIdentifier(name: string, kind?: string): SqlIdentifier;
|
|
|
149
143
|
*/
|
|
150
144
|
declare function parseFieldKey(key: string): FieldKey;
|
|
151
145
|
|
|
152
|
-
export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage,
|
|
146
|
+
export { type TagMaskOptions, type ToolOptions, checkEvalStorageFields, createMastraProxy, deepMerge, delay, ensureToolProperties, isCoreMessage, isUiMessage, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput };
|