@mastra/core 0.9.4 → 0.10.0-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/README.md +3 -2
- package/dist/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +13 -14
- package/dist/agent/index.d.ts +13 -14
- package/dist/agent/index.js +1 -1
- package/dist/{base-BCfssGt6.d.ts → base-DttB7sJD.d.ts} +1187 -886
- package/dist/{base-CAEcd6q2.d.cts → base-aJ3etsh5.d.cts} +1187 -886
- package/dist/{base-H7siSAfu.d.cts → base-aPYtPBT2.d.cts} +3 -3
- package/dist/{base-4Z34GQL8.d.ts → base-tc5kgDTD.d.ts} +3 -3
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +2 -3
- package/dist/base.d.ts +2 -3
- package/dist/base.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.cts +2 -3
- package/dist/bundler/index.d.ts +2 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-W4BSLENO.js → chunk-2NTUAUGH.js} +1 -1
- package/dist/{chunk-S34QVMKE.js → chunk-2PW6UJMW.js} +77 -10
- package/dist/{chunk-WE36CRQV.cjs → chunk-2U7ZZUFO.cjs} +2 -2
- package/dist/{workflows/vNext/index.js → chunk-3SQ3G2EJ.js} +19 -16
- package/dist/chunk-5HULBQ2W.cjs +38 -0
- package/dist/{chunk-XRGDVLM4.cjs → chunk-5JRD3NDP.cjs} +15 -15
- package/dist/{chunk-GXKODTLA.cjs → chunk-5W2G7S44.cjs} +83 -68
- package/dist/chunk-75Z4BZEE.js +36 -0
- package/dist/{chunk-66GQROSI.cjs → chunk-AOGUTJUO.cjs} +58 -51
- package/dist/{chunk-WIKOYZ63.js → chunk-BPTSLJHA.js} +9 -9
- package/dist/{chunk-JBJ7KXN5.js → chunk-C3ICEF6E.js} +1 -1
- package/dist/{chunk-E4FAXBUV.cjs → chunk-CWSFP2HS.cjs} +2 -2
- package/dist/{chunk-FW5RS6WV.js → chunk-E7CLY6SK.js} +42 -35
- package/dist/{chunk-235X76GC.js → chunk-FI7R232B.js} +2 -2
- package/dist/chunk-GQ2XQ4UN.js +321 -0
- package/dist/{chunk-H4CEZSRM.js → chunk-J7GDGV6F.js} +1 -1
- package/dist/{chunk-NLBJOFNG.js → chunk-JW5TMK2L.js} +1 -1
- package/dist/{chunk-NOPY74PV.js → chunk-KJQFFEEQ.js} +1 -1
- package/dist/{chunk-V2Q2FEVO.cjs → chunk-KSPHQSZX.cjs} +2 -2
- package/dist/{chunk-NZV4OA6P.js → chunk-LHRZV5VG.js} +2 -23
- package/dist/chunk-NMDM4IZN.cjs +78 -0
- package/dist/chunk-OBEALYTK.js +74 -0
- package/dist/{chunk-PEK4TY3P.js → chunk-OCT2762Q.js} +1 -1
- package/dist/{chunk-5DUFC7TV.cjs → chunk-P7BGXOQV.cjs} +2 -2
- package/dist/{chunk-WQKOM7XM.cjs → chunk-PIZM25KI.cjs} +3 -24
- package/dist/{chunk-S7J63JOG.cjs → chunk-RVS6OUJN.cjs} +2 -2
- package/dist/{chunk-5JUWUTPJ.cjs → chunk-SKG2NIZW.cjs} +2 -2
- package/dist/chunk-SWW4EBUZ.cjs +96 -0
- package/dist/{chunk-RGE4UF6A.cjs → chunk-TMPFLJLG.cjs} +2 -2
- package/dist/{workflows/vNext/index.cjs → chunk-TTKQ37ZZ.cjs} +24 -21
- package/dist/{chunk-EJITEVAB.cjs → chunk-U3L3NEOM.cjs} +81 -10
- package/dist/chunk-VHLL4AZK.js +90 -0
- package/dist/{chunk-EG74VBSP.cjs → chunk-YEULQPUY.cjs} +6 -6
- package/dist/{chunk-SOLXHDNQ.js → chunk-ZB3LEHL2.js} +81 -66
- package/dist/{chunk-TAFOICHR.js → chunk-ZKN6HYYQ.js} +1 -1
- package/dist/chunk-ZZDAC5KD.cjs +325 -0
- package/dist/deployer/index.cjs +2 -2
- package/dist/deployer/index.d.cts +2 -3
- package/dist/deployer/index.d.ts +2 -3
- package/dist/deployer/index.js +1 -1
- package/dist/eval/index.d.cts +13 -14
- package/dist/eval/index.d.ts +13 -14
- package/dist/hooks/index.d.cts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/index.cjs +88 -159
- package/dist/index.d.cts +17 -25
- package/dist/index.d.ts +17 -25
- package/dist/index.js +18 -25
- package/dist/integration/index.cjs +3 -3
- package/dist/integration/index.d.cts +12 -13
- package/dist/integration/index.d.ts +12 -13
- package/dist/integration/index.js +1 -1
- package/dist/llm/index.d.cts +13 -14
- package/dist/llm/index.d.ts +13 -14
- package/dist/logger/index.cjs +18 -17
- package/dist/logger/index.d.cts +42 -2
- package/dist/logger/index.d.ts +42 -2
- package/dist/logger/index.js +2 -1
- package/dist/{index-QV27jkxQ.d.ts → logger-EhZkzZOr.d.cts} +38 -52
- package/dist/{index-QV27jkxQ.d.cts → logger-EhZkzZOr.d.ts} +38 -52
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.d.cts +11 -12
- package/dist/mastra/index.d.ts +11 -12
- package/dist/mastra/index.js +1 -1
- package/dist/mcp/index.cjs +75 -17
- package/dist/mcp/index.d.cts +14 -15
- package/dist/mcp/index.d.ts +14 -15
- package/dist/mcp/index.js +69 -15
- package/dist/memory/index.cjs +4 -4
- package/dist/memory/index.d.cts +12 -13
- package/dist/memory/index.d.ts +12 -13
- package/dist/memory/index.js +1 -1
- package/dist/network/index.cjs +8 -8
- package/dist/network/index.d.cts +12 -13
- package/dist/network/index.d.ts +12 -13
- package/dist/network/index.js +5 -5
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.d.cts +15 -16
- package/dist/relevance/index.d.ts +15 -16
- package/dist/relevance/index.js +1 -1
- package/dist/server/index.cjs +4 -0
- package/dist/server/index.d.cts +13 -12
- package/dist/server/index.d.ts +13 -12
- package/dist/server/index.js +4 -1
- package/dist/storage/index.cjs +184 -3
- package/dist/storage/index.d.cts +83 -13
- package/dist/storage/index.d.ts +83 -13
- package/dist/storage/index.js +186 -1
- package/dist/telemetry/index.d.cts +14 -15
- package/dist/telemetry/index.d.ts +14 -15
- package/dist/telemetry/otel-vendor.cjs +2 -2
- package/dist/telemetry/otel-vendor.d.cts +1 -1
- package/dist/telemetry/otel-vendor.d.ts +1 -1
- package/dist/telemetry/otel-vendor.js +1 -1
- package/dist/tools/index.cjs +4 -4
- package/dist/tools/index.d.cts +12 -13
- package/dist/tools/index.d.ts +12 -13
- package/dist/tools/index.js +1 -1
- package/dist/tts/index.cjs +2 -2
- package/dist/tts/index.d.cts +2 -3
- package/dist/tts/index.d.ts +2 -3
- package/dist/tts/index.js +1 -1
- package/dist/{types-BtMyV38I.d.ts → types-Bo1uigWx.d.cts} +1 -1
- package/dist/{types-BtMyV38I.d.cts → types-Bo1uigWx.d.ts} +1 -1
- package/dist/utils.cjs +28 -12
- package/dist/utils.d.cts +59 -16
- package/dist/utils.d.ts +59 -16
- package/dist/utils.js +1 -1
- package/dist/vector/filter/index.cjs +189 -7
- package/dist/vector/filter/index.js +190 -1
- package/dist/vector/index.cjs +2 -2
- package/dist/vector/index.d.cts +28 -20
- package/dist/vector/index.d.ts +28 -20
- package/dist/vector/index.js +1 -1
- package/dist/voice/index.cjs +4 -4
- package/dist/voice/index.d.cts +12 -13
- package/dist/voice/index.d.ts +12 -13
- package/dist/voice/index.js +1 -1
- package/dist/workflows/index.cjs +17 -69
- package/dist/workflows/index.d.cts +197 -77
- package/dist/workflows/index.d.ts +197 -77
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +90 -0
- package/dist/workflows/legacy/index.d.cts +87 -0
- package/dist/workflows/legacy/index.d.ts +87 -0
- package/dist/workflows/legacy/index.js +1 -0
- package/package.json +19 -40
- package/workflows/legacy.d.ts +1 -0
- package/dist/chunk-4WABQORE.js +0 -781
- package/dist/chunk-CIEPFV6B.js +0 -658
- package/dist/chunk-CMPPXW4U.js +0 -154
- package/dist/chunk-CTKNWYK2.js +0 -131
- package/dist/chunk-LGERQTJM.js +0 -190
- package/dist/chunk-O44MSFMZ.cjs +0 -168
- package/dist/chunk-QDAMIZY3.cjs +0 -783
- package/dist/chunk-QHDPLMHB.cjs +0 -667
- package/dist/chunk-RAQBTCIR.cjs +0 -134
- package/dist/chunk-YK3XJ52U.cjs +0 -192
- package/dist/storage/libsql/index.cjs +0 -581
- package/dist/storage/libsql/index.d.cts +0 -104
- package/dist/storage/libsql/index.d.ts +0 -104
- package/dist/storage/libsql/index.js +0 -578
- package/dist/vector/libsql/index.cjs +0 -14
- package/dist/vector/libsql/index.d.cts +0 -82
- package/dist/vector/libsql/index.d.ts +0 -82
- package/dist/vector/libsql/index.js +0 -1
- package/dist/workflows/vNext/index.d.cts +0 -209
- package/dist/workflows/vNext/index.d.ts +0 -209
- package/storage/libsql.d.ts +0 -1
- package/vector/libsql.d.ts +0 -1
- package/workflows/vNext.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
import {
|
|
7
|
-
export { MemoryProcessor, memoryDefaultOptions } from './chunk-CIEPFV6B.js';
|
|
8
|
-
import { MastraVector } from './chunk-NZV4OA6P.js';
|
|
9
|
-
import { MastraStorage } from './chunk-TAFOICHR.js';
|
|
10
|
-
import { Agent, Workflow } from './chunk-FW5RS6WV.js';
|
|
11
|
-
export { Step, WhenConditionReturnValue, agentToStep, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isAgent, isConditionalKey, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep } from './chunk-FW5RS6WV.js';
|
|
12
|
-
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-BFNYQFG2.js';
|
|
13
|
-
import { Tool } from './chunk-S34QVMKE.js';
|
|
14
|
-
export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isVercelTool, isZodType, makeCoreTool, maskStreamTags, resolveSerializedZodOutput } from './chunk-S34QVMKE.js';
|
|
1
|
+
import { MastraTTS } from './chunk-C3ICEF6E.js';
|
|
2
|
+
import { MastraVector } from './chunk-LHRZV5VG.js';
|
|
3
|
+
import { Workflow } from './chunk-3SQ3G2EJ.js';
|
|
4
|
+
export { DefaultExecutionEngine, ExecutionEngine, Run, cloneStep, cloneWorkflow, createStep, createWorkflow } from './chunk-3SQ3G2EJ.js';
|
|
5
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-J7GDGV6F.js';
|
|
6
|
+
import { MastraStorage } from './chunk-ZKN6HYYQ.js';
|
|
15
7
|
export { Metric, evaluate } from './chunk-PK5QRKSG.js';
|
|
8
|
+
import { Integration, OpenAPIToolset } from './chunk-OCT2762Q.js';
|
|
9
|
+
export { createMockModel } from './chunk-HNEE7IF4.js';
|
|
10
|
+
export { Mastra } from './chunk-ZB3LEHL2.js';
|
|
11
|
+
import { MastraMemory } from './chunk-GQ2XQ4UN.js';
|
|
12
|
+
export { MemoryProcessor, memoryDefaultOptions } from './chunk-GQ2XQ4UN.js';
|
|
13
|
+
import { Agent } from './chunk-E7CLY6SK.js';
|
|
16
14
|
export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, getBaggageValues, hasActiveTelemetry, withSpan } from './chunk-BFNYQFG2.js';
|
|
16
|
+
import { Tool } from './chunk-2PW6UJMW.js';
|
|
17
|
+
export { checkEvalStorageFields, createMastraProxy, createTool, deepMerge, delay, ensureAllMessagesAreCoreMessages, ensureToolProperties, isCoreMessage, isUiMessage, isVercelTool, isZodType, makeCoreTool, maskStreamTags, parseFieldKey, parseSqlIdentifier, resolveSerializedZodOutput } from './chunk-2PW6UJMW.js';
|
|
18
|
+
import { MastraDeployer } from './chunk-2NTUAUGH.js';
|
|
19
|
+
import { MastraBase } from './chunk-FI7R232B.js';
|
|
21
20
|
|
|
22
21
|
// src/agent/index.warning.ts
|
|
23
22
|
var Agent2 = class extends Agent {
|
|
@@ -69,12 +68,6 @@ var OpenAPIToolset2 = class extends OpenAPIToolset {
|
|
|
69
68
|
}
|
|
70
69
|
};
|
|
71
70
|
|
|
72
|
-
// src/logger/index.warning.ts
|
|
73
|
-
function createLogger2(options) {
|
|
74
|
-
console.warn('Please import "createLogger" from "@mastra/core/logger" instead of "@mastra/core"');
|
|
75
|
-
return createLogger(options);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
71
|
// src/memory/index.warning.ts
|
|
79
72
|
var MastraMemory2 = class extends MastraMemory {
|
|
80
73
|
constructor(_arg) {
|
|
@@ -115,4 +108,4 @@ var Workflow2 = class extends Workflow {
|
|
|
115
108
|
}
|
|
116
109
|
};
|
|
117
110
|
|
|
118
|
-
export { Agent2 as Agent, Integration2 as Integration, MastraBase2 as MastraBase, MastraDeployer2 as MastraDeployer, MastraMemory2 as MastraMemory, MastraStorage2 as MastraStorage, MastraTTS2 as MastraTTS, MastraVector2 as MastraVector, OpenAPIToolset2 as OpenAPIToolset, Tool2 as Tool, Workflow2 as Workflow
|
|
111
|
+
export { Agent2 as Agent, Integration2 as Integration, MastraBase2 as MastraBase, MastraDeployer2 as MastraDeployer, MastraMemory2 as MastraMemory, MastraStorage2 as MastraStorage, MastraTTS2 as MastraTTS, MastraVector2 as MastraVector, OpenAPIToolset2 as OpenAPIToolset, Tool2 as Tool, Workflow2 as Workflow };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSKG2NIZW_cjs = require('../chunk-SKG2NIZW.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 chunkSKG2NIZW_cjs.Integration; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "OpenAPIToolset", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkSKG2NIZW_cjs.OpenAPIToolset; }
|
|
14
14
|
});
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import {
|
|
1
|
+
import '../base-aPYtPBT2.cjs';
|
|
2
|
+
import { af as Workflow, a9 as ToolAction } from '../base-aJ3etsh5.cjs';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../
|
|
4
|
+
import '../logger-EhZkzZOr.cjs';
|
|
5
5
|
import 'stream';
|
|
6
|
-
import 'pino';
|
|
7
6
|
import '@opentelemetry/sdk-trace-base';
|
|
8
7
|
import 'ai';
|
|
9
|
-
import '../types-
|
|
8
|
+
import '../types-Bo1uigWx.cjs';
|
|
10
9
|
import 'sift';
|
|
11
10
|
import 'zod';
|
|
12
11
|
import 'json-schema';
|
|
12
|
+
import '../deployer/index.cjs';
|
|
13
|
+
import '../bundler/index.cjs';
|
|
14
|
+
import 'node:http';
|
|
15
|
+
import 'hono';
|
|
13
16
|
import '../runtime-context/index.cjs';
|
|
14
|
-
import 'xstate';
|
|
15
|
-
import 'node:events';
|
|
16
17
|
import '../vector/index.cjs';
|
|
17
18
|
import '../vector/filter/index.cjs';
|
|
18
|
-
import '../tts/index.cjs';
|
|
19
|
-
import 'node:http';
|
|
20
|
-
import 'hono';
|
|
21
|
-
import 'events';
|
|
22
|
-
import '../deployer/index.cjs';
|
|
23
|
-
import '../bundler/index.cjs';
|
|
24
19
|
import 'hono/cors';
|
|
25
20
|
import 'hono-openapi';
|
|
21
|
+
import '../tts/index.cjs';
|
|
22
|
+
import 'xstate';
|
|
23
|
+
import 'node:events';
|
|
24
|
+
import 'events';
|
|
26
25
|
import 'ai/test';
|
|
27
26
|
|
|
28
27
|
declare class Integration<ToolsParams = void, ApiClient = void> {
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import {
|
|
1
|
+
import '../base-tc5kgDTD.js';
|
|
2
|
+
import { af as Workflow, a9 as ToolAction } from '../base-DttB7sJD.js';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../
|
|
4
|
+
import '../logger-EhZkzZOr.js';
|
|
5
5
|
import 'stream';
|
|
6
|
-
import 'pino';
|
|
7
6
|
import '@opentelemetry/sdk-trace-base';
|
|
8
7
|
import 'ai';
|
|
9
|
-
import '../types-
|
|
8
|
+
import '../types-Bo1uigWx.js';
|
|
10
9
|
import 'sift';
|
|
11
10
|
import 'zod';
|
|
12
11
|
import 'json-schema';
|
|
12
|
+
import '../deployer/index.js';
|
|
13
|
+
import '../bundler/index.js';
|
|
14
|
+
import 'node:http';
|
|
15
|
+
import 'hono';
|
|
13
16
|
import '../runtime-context/index.js';
|
|
14
|
-
import 'xstate';
|
|
15
|
-
import 'node:events';
|
|
16
17
|
import '../vector/index.js';
|
|
17
18
|
import '../vector/filter/index.js';
|
|
18
|
-
import '../tts/index.js';
|
|
19
|
-
import 'node:http';
|
|
20
|
-
import 'hono';
|
|
21
|
-
import 'events';
|
|
22
|
-
import '../deployer/index.js';
|
|
23
|
-
import '../bundler/index.js';
|
|
24
19
|
import 'hono/cors';
|
|
25
20
|
import 'hono-openapi';
|
|
21
|
+
import '../tts/index.js';
|
|
22
|
+
import 'xstate';
|
|
23
|
+
import 'node:events';
|
|
24
|
+
import 'events';
|
|
26
25
|
import 'ai/test';
|
|
27
26
|
|
|
28
27
|
declare class Integration<ToolsParams = void, ApiClient = void> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Integration, OpenAPIToolset } from '../chunk-
|
|
1
|
+
export { Integration, OpenAPIToolset } from '../chunk-OCT2762Q.js';
|
package/dist/llm/index.d.cts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
5
|
-
import '../index-QV27jkxQ.cjs';
|
|
4
|
+
export { ap as BaseStructuredOutputType, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, ao as EmbedManyResult, an as EmbedResult, at as GenerateReturn, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, av as OutputType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, aF as createMockModel } from '../base-aJ3etsh5.cjs';
|
|
6
5
|
import '../runtime-context/index.cjs';
|
|
7
|
-
import '../base-
|
|
6
|
+
import '../base-aPYtPBT2.cjs';
|
|
8
7
|
import '@opentelemetry/api';
|
|
8
|
+
import '../logger-EhZkzZOr.cjs';
|
|
9
|
+
import 'stream';
|
|
9
10
|
import '@opentelemetry/sdk-trace-base';
|
|
10
|
-
import '../types-
|
|
11
|
+
import '../types-Bo1uigWx.cjs';
|
|
11
12
|
import 'sift';
|
|
12
|
-
import 'xstate';
|
|
13
|
-
import 'node:events';
|
|
14
|
-
import '../vector/index.cjs';
|
|
15
|
-
import '../vector/filter/index.cjs';
|
|
16
|
-
import 'stream';
|
|
17
|
-
import 'pino';
|
|
18
|
-
import '../tts/index.cjs';
|
|
19
|
-
import 'node:http';
|
|
20
|
-
import 'hono';
|
|
21
|
-
import 'events';
|
|
22
13
|
import '../deployer/index.cjs';
|
|
23
14
|
import '../bundler/index.cjs';
|
|
15
|
+
import 'node:http';
|
|
16
|
+
import 'hono';
|
|
17
|
+
import '../vector/index.cjs';
|
|
18
|
+
import '../vector/filter/index.cjs';
|
|
24
19
|
import 'hono/cors';
|
|
25
20
|
import 'hono-openapi';
|
|
21
|
+
import '../tts/index.cjs';
|
|
22
|
+
import 'xstate';
|
|
23
|
+
import 'node:events';
|
|
24
|
+
import 'events';
|
|
26
25
|
import 'ai/test';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
5
|
-
import '../index-QV27jkxQ.js';
|
|
4
|
+
export { ap as BaseStructuredOutputType, ak as CoreAssistantMessage, ai as CoreMessage, aj as CoreSystemMessage, am as CoreToolMessage, al as CoreUserMessage, az as DefaultLLMStreamObjectOptions, ay as DefaultLLMStreamOptions, ax as DefaultLLMTextObjectOptions, aw as DefaultLLMTextOptions, ao as EmbedManyResult, an as EmbedResult, at as GenerateReturn, aD as LLMInnerStreamOptions, aE as LLMStreamObjectOptions, aC as LLMStreamOptions, aB as LLMTextObjectOptions, aA as LLMTextOptions, ah as LanguageModel, av as OutputType, au as StreamReturn, as as StructuredOutput, ar as StructuredOutputArrayItem, aq as StructuredOutputType, aF as createMockModel } from '../base-DttB7sJD.js';
|
|
6
5
|
import '../runtime-context/index.js';
|
|
7
|
-
import '../base-
|
|
6
|
+
import '../base-tc5kgDTD.js';
|
|
8
7
|
import '@opentelemetry/api';
|
|
8
|
+
import '../logger-EhZkzZOr.js';
|
|
9
|
+
import 'stream';
|
|
9
10
|
import '@opentelemetry/sdk-trace-base';
|
|
10
|
-
import '../types-
|
|
11
|
+
import '../types-Bo1uigWx.js';
|
|
11
12
|
import 'sift';
|
|
12
|
-
import 'xstate';
|
|
13
|
-
import 'node:events';
|
|
14
|
-
import '../vector/index.js';
|
|
15
|
-
import '../vector/filter/index.js';
|
|
16
|
-
import 'stream';
|
|
17
|
-
import 'pino';
|
|
18
|
-
import '../tts/index.js';
|
|
19
|
-
import 'node:http';
|
|
20
|
-
import 'hono';
|
|
21
|
-
import 'events';
|
|
22
13
|
import '../deployer/index.js';
|
|
23
14
|
import '../bundler/index.js';
|
|
15
|
+
import 'node:http';
|
|
16
|
+
import 'hono';
|
|
17
|
+
import '../vector/index.js';
|
|
18
|
+
import '../vector/filter/index.js';
|
|
24
19
|
import 'hono/cors';
|
|
25
20
|
import 'hono-openapi';
|
|
21
|
+
import '../tts/index.js';
|
|
22
|
+
import 'xstate';
|
|
23
|
+
import 'node:events';
|
|
24
|
+
import 'events';
|
|
26
25
|
import 'ai/test';
|
package/dist/logger/index.cjs
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNMDM4IZN_cjs = require('../chunk-NMDM4IZN.cjs');
|
|
4
|
+
var chunkSWW4EBUZ_cjs = require('../chunk-SWW4EBUZ.cjs');
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
+
Object.defineProperty(exports, "LoggerTransport", {
|
|
8
9
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkNMDM4IZN_cjs.LoggerTransport; }
|
|
10
11
|
});
|
|
11
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "MultiLogger", {
|
|
12
13
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkNMDM4IZN_cjs.MultiLogger; }
|
|
14
15
|
});
|
|
15
|
-
Object.defineProperty(exports, "
|
|
16
|
+
Object.defineProperty(exports, "noopLogger", {
|
|
16
17
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkNMDM4IZN_cjs.noopLogger; }
|
|
18
19
|
});
|
|
19
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "ConsoleLogger", {
|
|
20
21
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkSWW4EBUZ_cjs.ConsoleLogger; }
|
|
22
23
|
});
|
|
23
|
-
Object.defineProperty(exports, "
|
|
24
|
+
Object.defineProperty(exports, "LogLevel", {
|
|
24
25
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkSWW4EBUZ_cjs.LogLevel; }
|
|
26
27
|
});
|
|
27
|
-
Object.defineProperty(exports, "
|
|
28
|
+
Object.defineProperty(exports, "MastraLogger", {
|
|
28
29
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkSWW4EBUZ_cjs.MastraLogger; }
|
|
30
31
|
});
|
|
31
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "RegisteredLogger", {
|
|
32
33
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkSWW4EBUZ_cjs.RegisteredLogger; }
|
|
34
35
|
});
|
|
35
|
-
Object.defineProperty(exports, "
|
|
36
|
+
Object.defineProperty(exports, "createLogger", {
|
|
36
37
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkSWW4EBUZ_cjs.createLogger; }
|
|
38
39
|
});
|
package/dist/logger/index.d.cts
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, M as MastraLogger } from '../logger-EhZkzZOr.cjs';
|
|
2
|
+
export { B as BaseLogMessage, R as RegisteredLogger } from '../logger-EhZkzZOr.cjs';
|
|
1
3
|
import 'stream';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
|
|
5
|
+
declare class MultiLogger implements IMastraLogger {
|
|
6
|
+
private loggers;
|
|
7
|
+
constructor(loggers: IMastraLogger[]);
|
|
8
|
+
debug(message: string, ...args: any[]): void;
|
|
9
|
+
info(message: string, ...args: any[]): void;
|
|
10
|
+
warn(message: string, ...args: any[]): void;
|
|
11
|
+
error(message: string, ...args: any[]): void;
|
|
12
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
13
|
+
getLogs(transportId: string): Promise<any[]>;
|
|
14
|
+
getLogsByRunId(args: {
|
|
15
|
+
transportId: string;
|
|
16
|
+
runId: string;
|
|
17
|
+
}): Promise<any[]>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const noopLogger: IMastraLogger;
|
|
21
|
+
|
|
22
|
+
declare const createLogger: (options: {
|
|
23
|
+
name?: string;
|
|
24
|
+
level?: LogLevel;
|
|
25
|
+
transports?: Record<string, LoggerTransport>;
|
|
26
|
+
}) => ConsoleLogger;
|
|
27
|
+
declare class ConsoleLogger extends MastraLogger {
|
|
28
|
+
constructor(options?: {
|
|
29
|
+
name?: string;
|
|
30
|
+
level?: LogLevel;
|
|
31
|
+
});
|
|
32
|
+
debug(message: string, ...args: any[]): void;
|
|
33
|
+
info(message: string, ...args: any[]): void;
|
|
34
|
+
warn(message: string, ...args: any[]): void;
|
|
35
|
+
error(message: string, ...args: any[]): void;
|
|
36
|
+
getLogs(_transportId: string): Promise<never[]>;
|
|
37
|
+
getLogsByRunId(_args: {
|
|
38
|
+
transportId: string;
|
|
39
|
+
runId: string;
|
|
40
|
+
}): Promise<never[]>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
+
import { I as IMastraLogger, L as LoggerTransport, a as LogLevel, M as MastraLogger } from '../logger-EhZkzZOr.js';
|
|
2
|
+
export { B as BaseLogMessage, R as RegisteredLogger } from '../logger-EhZkzZOr.js';
|
|
1
3
|
import 'stream';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
+
|
|
5
|
+
declare class MultiLogger implements IMastraLogger {
|
|
6
|
+
private loggers;
|
|
7
|
+
constructor(loggers: IMastraLogger[]);
|
|
8
|
+
debug(message: string, ...args: any[]): void;
|
|
9
|
+
info(message: string, ...args: any[]): void;
|
|
10
|
+
warn(message: string, ...args: any[]): void;
|
|
11
|
+
error(message: string, ...args: any[]): void;
|
|
12
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
13
|
+
getLogs(transportId: string): Promise<any[]>;
|
|
14
|
+
getLogsByRunId(args: {
|
|
15
|
+
transportId: string;
|
|
16
|
+
runId: string;
|
|
17
|
+
}): Promise<any[]>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const noopLogger: IMastraLogger;
|
|
21
|
+
|
|
22
|
+
declare const createLogger: (options: {
|
|
23
|
+
name?: string;
|
|
24
|
+
level?: LogLevel;
|
|
25
|
+
transports?: Record<string, LoggerTransport>;
|
|
26
|
+
}) => ConsoleLogger;
|
|
27
|
+
declare class ConsoleLogger extends MastraLogger {
|
|
28
|
+
constructor(options?: {
|
|
29
|
+
name?: string;
|
|
30
|
+
level?: LogLevel;
|
|
31
|
+
});
|
|
32
|
+
debug(message: string, ...args: any[]): void;
|
|
33
|
+
info(message: string, ...args: any[]): void;
|
|
34
|
+
warn(message: string, ...args: any[]): void;
|
|
35
|
+
error(message: string, ...args: any[]): void;
|
|
36
|
+
getLogs(_transportId: string): Promise<never[]>;
|
|
37
|
+
getLogsByRunId(_args: {
|
|
38
|
+
transportId: string;
|
|
39
|
+
runId: string;
|
|
40
|
+
}): Promise<never[]>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { ConsoleLogger, IMastraLogger, LogLevel, LoggerTransport, MastraLogger, MultiLogger, createLogger, noopLogger };
|
package/dist/logger/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { LoggerTransport, MultiLogger, noopLogger } from '../chunk-OBEALYTK.js';
|
|
2
|
+
export { ConsoleLogger, LogLevel, MastraLogger, RegisteredLogger, createLogger } from '../chunk-VHLL4AZK.js';
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { Transform } from 'stream';
|
|
2
|
-
import pino from 'pino';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
type Run = {
|
|
3
|
+
interface BaseLogMessage {
|
|
6
4
|
runId?: string;
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
msg: string;
|
|
6
|
+
level: number;
|
|
7
|
+
time: Date;
|
|
8
|
+
pid: number;
|
|
9
|
+
hostname: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
declare abstract class LoggerTransport extends Transform {
|
|
13
|
+
constructor(opts?: any);
|
|
14
|
+
getLogsByRunId(_args: {
|
|
15
|
+
runId: string;
|
|
16
|
+
}): Promise<BaseLogMessage[]>;
|
|
17
|
+
getLogs(): Promise<BaseLogMessage[]>;
|
|
18
|
+
}
|
|
9
19
|
|
|
10
20
|
declare const RegisteredLogger: {
|
|
11
21
|
readonly AGENT: "AGENT";
|
|
@@ -31,62 +41,38 @@ declare const LogLevel: {
|
|
|
31
41
|
readonly NONE: "silent";
|
|
32
42
|
};
|
|
33
43
|
type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
declare class LoggerTransport extends Transform {
|
|
43
|
-
constructor(opts?: any);
|
|
44
|
+
|
|
45
|
+
interface IMastraLogger {
|
|
46
|
+
debug(message: string, ...args: any[]): void;
|
|
47
|
+
info(message: string, ...args: any[]): void;
|
|
48
|
+
warn(message: string, ...args: any[]): void;
|
|
49
|
+
error(message: string, ...args: any[]): void;
|
|
50
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
51
|
+
getLogs(_transportId: string): Promise<any[]>;
|
|
44
52
|
getLogsByRunId(_args: {
|
|
53
|
+
transportId: string;
|
|
45
54
|
runId: string;
|
|
46
|
-
}): Promise<
|
|
47
|
-
getLogs(): Promise<BaseLogMessage[]>;
|
|
55
|
+
}): Promise<any[]>;
|
|
48
56
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
protected
|
|
52
|
-
transports:
|
|
57
|
+
declare abstract class MastraLogger implements IMastraLogger {
|
|
58
|
+
protected name: string;
|
|
59
|
+
protected level: LogLevel;
|
|
60
|
+
protected transports: Map<string, LoggerTransport>;
|
|
53
61
|
constructor(options?: {
|
|
54
62
|
name?: string;
|
|
55
63
|
level?: LogLevel;
|
|
56
|
-
transports?:
|
|
57
|
-
overrideDefaultTransports?: boolean;
|
|
64
|
+
transports?: Record<string, LoggerTransport>;
|
|
58
65
|
});
|
|
59
|
-
debug(message: string, args
|
|
60
|
-
info(message: string, args
|
|
61
|
-
warn(message: string, args
|
|
62
|
-
error(message: string, args
|
|
63
|
-
|
|
66
|
+
abstract debug(message: string, ...args: any[]): void;
|
|
67
|
+
abstract info(message: string, ...args: any[]): void;
|
|
68
|
+
abstract warn(message: string, ...args: any[]): void;
|
|
69
|
+
abstract error(message: string, ...args: any[]): void;
|
|
70
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
64
71
|
getLogs(transportId: string): Promise<BaseLogMessage[]>;
|
|
65
|
-
getLogsByRunId({
|
|
72
|
+
getLogsByRunId({ transportId, runId }: {
|
|
66
73
|
transportId: string;
|
|
67
74
|
runId: string;
|
|
68
|
-
}): Promise<BaseLogMessage[]
|
|
69
|
-
}
|
|
70
|
-
declare function createLogger(options: {
|
|
71
|
-
name?: string;
|
|
72
|
-
level?: LogLevel;
|
|
73
|
-
transports?: TransportMap;
|
|
74
|
-
}): Logger;
|
|
75
|
-
declare class MultiLogger {
|
|
76
|
-
private loggers;
|
|
77
|
-
constructor(loggers: Logger[]);
|
|
78
|
-
debug(message: string, ...args: any[]): void;
|
|
79
|
-
info(message: string, ...args: any[]): void;
|
|
80
|
-
warn(message: string, ...args: any[]): void;
|
|
81
|
-
error(message: string, ...args: any[]): void;
|
|
75
|
+
}): Promise<BaseLogMessage[]>;
|
|
82
76
|
}
|
|
83
|
-
declare function combineLoggers(loggers: Logger[]): MultiLogger;
|
|
84
|
-
declare const noopLogger: {
|
|
85
|
-
debug: () => void;
|
|
86
|
-
info: () => void;
|
|
87
|
-
warn: () => void;
|
|
88
|
-
error: () => void;
|
|
89
|
-
cleanup: () => Promise<void>;
|
|
90
|
-
};
|
|
91
77
|
|
|
92
|
-
export { type BaseLogMessage as B,
|
|
78
|
+
export { type BaseLogMessage as B, type IMastraLogger as I, LoggerTransport as L, MastraLogger as M, RegisteredLogger as R, LogLevel as a };
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { Transform } from 'stream';
|
|
2
|
-
import pino from 'pino';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
type Run = {
|
|
3
|
+
interface BaseLogMessage {
|
|
6
4
|
runId?: string;
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
msg: string;
|
|
6
|
+
level: number;
|
|
7
|
+
time: Date;
|
|
8
|
+
pid: number;
|
|
9
|
+
hostname: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
12
|
+
declare abstract class LoggerTransport extends Transform {
|
|
13
|
+
constructor(opts?: any);
|
|
14
|
+
getLogsByRunId(_args: {
|
|
15
|
+
runId: string;
|
|
16
|
+
}): Promise<BaseLogMessage[]>;
|
|
17
|
+
getLogs(): Promise<BaseLogMessage[]>;
|
|
18
|
+
}
|
|
9
19
|
|
|
10
20
|
declare const RegisteredLogger: {
|
|
11
21
|
readonly AGENT: "AGENT";
|
|
@@ -31,62 +41,38 @@ declare const LogLevel: {
|
|
|
31
41
|
readonly NONE: "silent";
|
|
32
42
|
};
|
|
33
43
|
type LogLevel = (typeof LogLevel)[keyof typeof LogLevel];
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
declare class LoggerTransport extends Transform {
|
|
43
|
-
constructor(opts?: any);
|
|
44
|
+
|
|
45
|
+
interface IMastraLogger {
|
|
46
|
+
debug(message: string, ...args: any[]): void;
|
|
47
|
+
info(message: string, ...args: any[]): void;
|
|
48
|
+
warn(message: string, ...args: any[]): void;
|
|
49
|
+
error(message: string, ...args: any[]): void;
|
|
50
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
51
|
+
getLogs(_transportId: string): Promise<any[]>;
|
|
44
52
|
getLogsByRunId(_args: {
|
|
53
|
+
transportId: string;
|
|
45
54
|
runId: string;
|
|
46
|
-
}): Promise<
|
|
47
|
-
getLogs(): Promise<BaseLogMessage[]>;
|
|
55
|
+
}): Promise<any[]>;
|
|
48
56
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
protected
|
|
52
|
-
transports:
|
|
57
|
+
declare abstract class MastraLogger implements IMastraLogger {
|
|
58
|
+
protected name: string;
|
|
59
|
+
protected level: LogLevel;
|
|
60
|
+
protected transports: Map<string, LoggerTransport>;
|
|
53
61
|
constructor(options?: {
|
|
54
62
|
name?: string;
|
|
55
63
|
level?: LogLevel;
|
|
56
|
-
transports?:
|
|
57
|
-
overrideDefaultTransports?: boolean;
|
|
64
|
+
transports?: Record<string, LoggerTransport>;
|
|
58
65
|
});
|
|
59
|
-
debug(message: string, args
|
|
60
|
-
info(message: string, args
|
|
61
|
-
warn(message: string, args
|
|
62
|
-
error(message: string, args
|
|
63
|
-
|
|
66
|
+
abstract debug(message: string, ...args: any[]): void;
|
|
67
|
+
abstract info(message: string, ...args: any[]): void;
|
|
68
|
+
abstract warn(message: string, ...args: any[]): void;
|
|
69
|
+
abstract error(message: string, ...args: any[]): void;
|
|
70
|
+
getTransports(): Map<string, LoggerTransport>;
|
|
64
71
|
getLogs(transportId: string): Promise<BaseLogMessage[]>;
|
|
65
|
-
getLogsByRunId({
|
|
72
|
+
getLogsByRunId({ transportId, runId }: {
|
|
66
73
|
transportId: string;
|
|
67
74
|
runId: string;
|
|
68
|
-
}): Promise<BaseLogMessage[]
|
|
69
|
-
}
|
|
70
|
-
declare function createLogger(options: {
|
|
71
|
-
name?: string;
|
|
72
|
-
level?: LogLevel;
|
|
73
|
-
transports?: TransportMap;
|
|
74
|
-
}): Logger;
|
|
75
|
-
declare class MultiLogger {
|
|
76
|
-
private loggers;
|
|
77
|
-
constructor(loggers: Logger[]);
|
|
78
|
-
debug(message: string, ...args: any[]): void;
|
|
79
|
-
info(message: string, ...args: any[]): void;
|
|
80
|
-
warn(message: string, ...args: any[]): void;
|
|
81
|
-
error(message: string, ...args: any[]): void;
|
|
75
|
+
}): Promise<BaseLogMessage[]>;
|
|
82
76
|
}
|
|
83
|
-
declare function combineLoggers(loggers: Logger[]): MultiLogger;
|
|
84
|
-
declare const noopLogger: {
|
|
85
|
-
debug: () => void;
|
|
86
|
-
info: () => void;
|
|
87
|
-
warn: () => void;
|
|
88
|
-
error: () => void;
|
|
89
|
-
cleanup: () => Promise<void>;
|
|
90
|
-
};
|
|
91
77
|
|
|
92
|
-
export { type BaseLogMessage as B,
|
|
78
|
+
export { type BaseLogMessage as B, type IMastraLogger as I, LoggerTransport as L, MastraLogger as M, RegisteredLogger as R, LogLevel as a };
|
package/dist/mastra/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5W2G7S44_cjs = require('../chunk-5W2G7S44.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Mastra", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunk5W2G7S44_cjs.Mastra; }
|
|
10
10
|
});
|