@mastra/core 0.10.4-alpha.2 → 0.10.4
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.d.cts +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/{base-Bi9KB0TN.d.ts → base-BbdvunNJ.d.ts} +1 -1
- package/dist/{base-SdLa5kEB.d.cts → base-Bdc5hWla.d.cts} +28 -12
- package/dist/{base-CO-L7hF9.d.cts → base-DVVTzIQy.d.cts} +1 -1
- package/dist/{base-CKzmjMsr.d.ts → base-icHjkcs-.d.ts} +28 -12
- package/dist/base.d.cts +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/bundler/index.d.cts +1 -1
- package/dist/bundler/index.d.ts +1 -1
- package/dist/deployer/index.d.cts +1 -1
- package/dist/deployer/index.d.ts +1 -1
- package/dist/eval/index.d.cts +2 -2
- package/dist/eval/index.d.ts +2 -2
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/integration/index.d.cts +2 -2
- package/dist/integration/index.d.ts +2 -2
- package/dist/llm/index.d.cts +2 -2
- package/dist/llm/index.d.ts +2 -2
- package/dist/mastra/index.d.cts +2 -2
- package/dist/mastra/index.d.ts +2 -2
- package/dist/mcp/index.d.cts +2 -2
- package/dist/mcp/index.d.ts +2 -2
- package/dist/memory/index.d.cts +2 -2
- package/dist/memory/index.d.ts +2 -2
- package/dist/network/index.d.cts +2 -2
- package/dist/network/index.d.ts +2 -2
- package/dist/relevance/index.d.cts +2 -2
- package/dist/relevance/index.d.ts +2 -2
- package/dist/server/index.d.cts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/storage/index.cjs +63 -0
- package/dist/storage/index.d.cts +27 -4
- package/dist/storage/index.d.ts +27 -4
- package/dist/storage/index.js +63 -0
- package/dist/telemetry/index.d.cts +2 -2
- package/dist/telemetry/index.d.ts +2 -2
- package/dist/tools/index.d.cts +3 -3
- package/dist/tools/index.d.ts +3 -3
- package/dist/tts/index.d.cts +1 -1
- package/dist/tts/index.d.ts +1 -1
- package/dist/utils.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/dist/vector/index.d.cts +1 -1
- package/dist/vector/index.d.ts +1 -1
- package/dist/voice/index.d.cts +2 -2
- package/dist/voice/index.d.ts +2 -2
- package/dist/workflows/index.d.cts +3 -3
- package/dist/workflows/index.d.ts +3 -3
- package/dist/workflows/legacy/index.d.cts +3 -3
- package/dist/workflows/legacy/index.d.ts +3 -3
- package/package.json +3 -3
package/dist/agent/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { A as Agent,
|
|
5
|
-
import '../base-
|
|
4
|
+
export { A as Agent, as as AgentConfig, bU as AgentGenerateOptions, bV as AgentStreamOptions, bT as DynamicArgument, br as MastraLanguageModel, bW as MastraMessageContentV2, s as MastraMessageV2, bR as MessageList, T as ToolsInput, bS as ToolsetsInput } from '../base-Bdc5hWla.cjs';
|
|
5
|
+
import '../base-DVVTzIQy.cjs';
|
|
6
6
|
import '../types-Bo1uigWx.cjs';
|
|
7
7
|
import '../runtime-context/index.cjs';
|
|
8
8
|
import '../logger-CpL0z5v_.cjs';
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { Message as AiMessageType } from 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { A as Agent,
|
|
5
|
-
import '../base-
|
|
4
|
+
export { A as Agent, as as AgentConfig, bU as AgentGenerateOptions, bV as AgentStreamOptions, bT as DynamicArgument, br as MastraLanguageModel, bW as MastraMessageContentV2, s as MastraMessageV2, bR as MessageList, T as ToolsInput, bS as ToolsetsInput } from '../base-icHjkcs-.js';
|
|
5
|
+
import '../base-BbdvunNJ.js';
|
|
6
6
|
import '../types-Bo1uigWx.js';
|
|
7
7
|
import '../runtime-context/index.js';
|
|
8
8
|
import '../logger-DtVDdb81.js';
|
|
@@ -159,4 +159,4 @@ declare class MastraBase {
|
|
|
159
159
|
} | undefined;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
export { MastraBase as M, type OtelConfig as O, type SamplingStrategy as S,
|
|
162
|
+
export { MastraBase as M, type OtelConfig as O, type SamplingStrategy as S, type Trace as T, Telemetry as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { Tool as Tool$1, Schema, ToolExecutionOptions, TextStreamPart, UserContent, AssistantContent, ToolContent, EmbeddingModel, CoreMessage as CoreMessage$1, UIMessage, IDGenerator as IDGenerator$1, Message, CoreSystemMessage as CoreSystemMessage$1, LanguageModel as LanguageModel$1, GenerateTextResult, GenerateObjectResult, StreamTextResult, StreamObjectResult, DeepPartial, generateText, generateObject, streamText, streamObject, TelemetrySettings, CoreAssistantMessage as CoreAssistantMessage$1, CoreUserMessage as CoreUserMessage$1, CoreToolMessage as CoreToolMessage$1, EmbedResult as EmbedResult$1, EmbedManyResult as EmbedManyResult$1, LanguageModelV1, GenerateTextOnStepFinishCallback, StreamTextOnFinishCallback, StreamObjectOnFinishCallback, StreamTextOnStepFinishCallback } from 'ai';
|
|
3
|
-
import { M as MastraBase,
|
|
3
|
+
import { M as MastraBase, a as Telemetry, O as OtelConfig, T as Trace } from './base-DVVTzIQy.cjs';
|
|
4
4
|
import { z, ZodSchema } from 'zod';
|
|
5
5
|
import { B as BaseLogMessage, R as RegisteredLogger, I as IMastraLogger, a as LogLevel } from './logger-CpL0z5v_.cjs';
|
|
6
6
|
import { JSONSchema7Type, JSONSchema7 } from 'json-schema';
|
|
@@ -1613,6 +1613,16 @@ type EvalRow = {
|
|
|
1613
1613
|
globalRunId: string;
|
|
1614
1614
|
testInfo?: TestInfo;
|
|
1615
1615
|
};
|
|
1616
|
+
type StorageGetTracesArg = {
|
|
1617
|
+
name?: string;
|
|
1618
|
+
scope?: string;
|
|
1619
|
+
page: number;
|
|
1620
|
+
perPage: number;
|
|
1621
|
+
attributes?: Record<string, string>;
|
|
1622
|
+
filters?: Record<string, any>;
|
|
1623
|
+
fromDate?: Date;
|
|
1624
|
+
toDate?: Date;
|
|
1625
|
+
};
|
|
1616
1626
|
|
|
1617
1627
|
declare const TABLE_WORKFLOW_SNAPSHOT = "mastra_workflow_snapshot";
|
|
1618
1628
|
declare const TABLE_EVALS = "mastra_evals";
|
|
@@ -3470,16 +3480,7 @@ declare abstract class MastraStorage extends MastraBase {
|
|
|
3470
3480
|
messages: MastraMessageV2[];
|
|
3471
3481
|
format: 'v2';
|
|
3472
3482
|
}): Promise<MastraMessageV2[] | MastraMessageV1[]>;
|
|
3473
|
-
abstract getTraces(
|
|
3474
|
-
name?: string;
|
|
3475
|
-
scope?: string;
|
|
3476
|
-
page: number;
|
|
3477
|
-
perPage: number;
|
|
3478
|
-
attributes?: Record<string, string>;
|
|
3479
|
-
filters?: Record<string, any>;
|
|
3480
|
-
fromDate?: Date;
|
|
3481
|
-
toDate?: Date;
|
|
3482
|
-
}): Promise<any[]>;
|
|
3483
|
+
abstract getTraces(args: StorageGetTracesArg): Promise<any[]>;
|
|
3483
3484
|
init(): Promise<void>;
|
|
3484
3485
|
persistWorkflowSnapshot({ workflowName, runId, snapshot, }: {
|
|
3485
3486
|
workflowName: string;
|
|
@@ -3503,6 +3504,21 @@ declare abstract class MastraStorage extends MastraBase {
|
|
|
3503
3504
|
runId: string;
|
|
3504
3505
|
workflowName?: string;
|
|
3505
3506
|
}): Promise<WorkflowRun | null>;
|
|
3507
|
+
abstract getTracesPaginated(args: StorageGetTracesArg): Promise<PaginationInfo & {
|
|
3508
|
+
traces: Trace[];
|
|
3509
|
+
}>;
|
|
3510
|
+
abstract getThreadsByResourceIdPaginated(args: {
|
|
3511
|
+
resourceId: string;
|
|
3512
|
+
page: number;
|
|
3513
|
+
perPage: number;
|
|
3514
|
+
}): Promise<PaginationInfo & {
|
|
3515
|
+
threads: StorageThreadType[];
|
|
3516
|
+
}>;
|
|
3517
|
+
abstract getMessagesPaginated(args: StorageGetMessagesArg & {
|
|
3518
|
+
format?: 'v1' | 'v2';
|
|
3519
|
+
}): Promise<PaginationInfo & {
|
|
3520
|
+
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
3521
|
+
}>;
|
|
3506
3522
|
}
|
|
3507
3523
|
|
|
3508
|
-
export {
|
|
3524
|
+
export { type ActionContext as $, Agent as A, type StorageGetTracesArg as B, type CoreTool as C, TABLE_WORKFLOW_SNAPSHOT as D, type EvalRow as E, TABLE_EVALS as F, TABLE_MESSAGES as G, TABLE_THREADS as H, TABLE_TRACES as I, TABLE_SCHEMAS as J, type VariableReference$1 as K, LegacyWorkflow as L, Mastra as M, type StepResult$1 as N, type StepAction as O, type PaginationInfo as P, type LegacyWorkflowRunResult as Q, type WorkflowOptions as R, type StepExecutionContext as S, type ToolsInput as T, type StepVariableType as U, type VercelTool as V, type WorkflowContext as W, type StepNode as X, type StepGraph as Y, type RetryConfig as Z, type BaseCondition as _, type MastraPrimitives as a, memoryDefaultOptions as a$, WhenConditionReturnValue as a0, type StepDef as a1, type StepCondition as a2, type StepConfig as a3, type StepsRecord$1 as a4, type WorkflowLogMessage as a5, type WorkflowEvent as a6, type ResolverFunctionInput as a7, type ResolverFunctionOutput as a8, type SubscriberFunctionOutput as a9, type EmbedResult as aA, type EmbedManyResult as aB, type BaseStructuredOutputType as aC, type StructuredOutputType as aD, type StructuredOutputArrayItem as aE, type StructuredOutput as aF, type GenerateReturn as aG, type StreamReturn as aH, type OutputType as aI, type DefaultLLMTextOptions as aJ, type DefaultLLMTextObjectOptions as aK, type DefaultLLMStreamOptions as aL, type DefaultLLMStreamObjectOptions as aM, type LLMTextOptions as aN, type LLMTextObjectOptions as aO, type LLMStreamOptions as aP, type LLMInnerStreamOptions as aQ, type LLMStreamObjectOptions as aR, createMockModel as aS, type Config as aT, type MessageType as aU, type MessageResponse as aV, type MemoryConfig as aW, type SharedMemoryConfig as aX, type TraceType as aY, type MemoryProcessorOpts as aZ, MemoryProcessor as a_, type DependencyCheckOutput as aa, type StepResolverOutput as ab, type WorkflowActors as ac, type WorkflowActionParams as ad, type WorkflowActions as ae, type LegacyWorkflowState as af, type StepId as ag, type ExtractSchemaFromStep$1 as ah, type ExtractStepResult as ai, type StepInputType as aj, type ExtractSchemaType$1 as ak, type PathsToStringProps$1 as al, type LegacyWorkflowRunState as am, type WorkflowResumeResult as an, Tool as ao, createTool as ap, type InternalCoreTool as aq, type ToolExecutionContext as ar, type AgentConfig as as, type WorkflowConfig as at, type LanguageModel as au, type CoreMessage as av, type CoreSystemMessage as aw, type CoreAssistantMessage as ax, type CoreUserMessage as ay, type CoreToolMessage as az, MastraMemory as b, type StepFlowEntry as b0, type SerializedStep as b1, type SerializedStepFlowEntry as b2, createStep as b3, cloneStep as b4, createWorkflow as b5, cloneWorkflow as b6, type WorkflowResult as b7, Run as b8, type ExecutionGraph as b9, type MCPServerSSEOptions as bA, type MCPServerHonoSSEOptions as bB, type MCPServerHTTPOptions as bC, type Repository as bD, type VersionDetail as bE, type ArgumentInfo as bF, type PositionalArgumentInfo as bG, type NamedArgumentInfo as bH, type SubcommandInfo as bI, type CommandInfo as bJ, type EnvironmentVariableInfo as bK, type PackageInfo as bL, type RemoteInfo as bM, type MCPServerConfig as bN, type ServerInfo as bO, type ServerDetailInfo as bP, type MCPToolType as bQ, MessageList as bR, type ToolsetsInput as bS, type DynamicArgument as bT, type AgentGenerateOptions as bU, type AgentStreamOptions as bV, type MastraMessageContentV2 as bW, ExecutionEngine as ba, type ExecuteFunction as bb, type StepSuccess as bc, type StepFailure as bd, type StepSuspended as be, type StepRunning as bf, type StepResult as bg, type StepsRecord as bh, type DynamicMapping as bi, type PathsToStringProps as bj, type ExtractSchemaType as bk, type ExtractSchemaFromStep as bl, type VariableReference as bm, type StreamEvent as bn, type WatchEvent as bo, type ZodPathType as bp, type WorkflowRunState as bq, type MastraLanguageModel as br, type VoiceEventType as bs, type VoiceEventMap as bt, type VoiceConfig as bu, MastraVoice as bv, CompositeVoice as bw, DefaultVoice as bx, type AgentNetworkConfig as by, type ConvertedTool as bz, type ToolAction as c, LegacyStep as d, Workflow as e, type Step as f, AgentNetwork as g, MCPServerBase as h, type Methods as i, type ApiRoute as j, type MastraAuthConfig as k, type ContextWithMastra as l, MastraAuthProvider as m, type MastraAuthProviderOptions as n, MastraStorage as o, type TABLE_NAMES as p, type StorageColumn as q, type StorageThreadType as r, type MastraMessageV2 as s, type StorageGetMessagesArg as t, type MastraMessageV1 as u, type WorkflowRuns as v, type WorkflowRun as w, type LegacyWorkflowRuns as x, type LegacyWorkflowRun as y, type PaginationArgs as z };
|
|
@@ -159,4 +159,4 @@ declare class MastraBase {
|
|
|
159
159
|
} | undefined;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
export { MastraBase as M, type OtelConfig as O, type SamplingStrategy as S,
|
|
162
|
+
export { MastraBase as M, type OtelConfig as O, type SamplingStrategy as S, type Trace as T, Telemetry as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { Tool as Tool$1, Schema, ToolExecutionOptions, TextStreamPart, UserContent, AssistantContent, ToolContent, EmbeddingModel, CoreMessage as CoreMessage$1, UIMessage, IDGenerator as IDGenerator$1, Message, CoreSystemMessage as CoreSystemMessage$1, LanguageModel as LanguageModel$1, GenerateTextResult, GenerateObjectResult, StreamTextResult, StreamObjectResult, DeepPartial, generateText, generateObject, streamText, streamObject, TelemetrySettings, CoreAssistantMessage as CoreAssistantMessage$1, CoreUserMessage as CoreUserMessage$1, CoreToolMessage as CoreToolMessage$1, EmbedResult as EmbedResult$1, EmbedManyResult as EmbedManyResult$1, LanguageModelV1, GenerateTextOnStepFinishCallback, StreamTextOnFinishCallback, StreamObjectOnFinishCallback, StreamTextOnStepFinishCallback } from 'ai';
|
|
3
|
-
import { M as MastraBase,
|
|
3
|
+
import { M as MastraBase, a as Telemetry, O as OtelConfig, T as Trace } from './base-BbdvunNJ.js';
|
|
4
4
|
import { z, ZodSchema } from 'zod';
|
|
5
5
|
import { B as BaseLogMessage, R as RegisteredLogger, I as IMastraLogger, a as LogLevel } from './logger-DtVDdb81.js';
|
|
6
6
|
import { JSONSchema7Type, JSONSchema7 } from 'json-schema';
|
|
@@ -1613,6 +1613,16 @@ type EvalRow = {
|
|
|
1613
1613
|
globalRunId: string;
|
|
1614
1614
|
testInfo?: TestInfo;
|
|
1615
1615
|
};
|
|
1616
|
+
type StorageGetTracesArg = {
|
|
1617
|
+
name?: string;
|
|
1618
|
+
scope?: string;
|
|
1619
|
+
page: number;
|
|
1620
|
+
perPage: number;
|
|
1621
|
+
attributes?: Record<string, string>;
|
|
1622
|
+
filters?: Record<string, any>;
|
|
1623
|
+
fromDate?: Date;
|
|
1624
|
+
toDate?: Date;
|
|
1625
|
+
};
|
|
1616
1626
|
|
|
1617
1627
|
declare const TABLE_WORKFLOW_SNAPSHOT = "mastra_workflow_snapshot";
|
|
1618
1628
|
declare const TABLE_EVALS = "mastra_evals";
|
|
@@ -3470,16 +3480,7 @@ declare abstract class MastraStorage extends MastraBase {
|
|
|
3470
3480
|
messages: MastraMessageV2[];
|
|
3471
3481
|
format: 'v2';
|
|
3472
3482
|
}): Promise<MastraMessageV2[] | MastraMessageV1[]>;
|
|
3473
|
-
abstract getTraces(
|
|
3474
|
-
name?: string;
|
|
3475
|
-
scope?: string;
|
|
3476
|
-
page: number;
|
|
3477
|
-
perPage: number;
|
|
3478
|
-
attributes?: Record<string, string>;
|
|
3479
|
-
filters?: Record<string, any>;
|
|
3480
|
-
fromDate?: Date;
|
|
3481
|
-
toDate?: Date;
|
|
3482
|
-
}): Promise<any[]>;
|
|
3483
|
+
abstract getTraces(args: StorageGetTracesArg): Promise<any[]>;
|
|
3483
3484
|
init(): Promise<void>;
|
|
3484
3485
|
persistWorkflowSnapshot({ workflowName, runId, snapshot, }: {
|
|
3485
3486
|
workflowName: string;
|
|
@@ -3503,6 +3504,21 @@ declare abstract class MastraStorage extends MastraBase {
|
|
|
3503
3504
|
runId: string;
|
|
3504
3505
|
workflowName?: string;
|
|
3505
3506
|
}): Promise<WorkflowRun | null>;
|
|
3507
|
+
abstract getTracesPaginated(args: StorageGetTracesArg): Promise<PaginationInfo & {
|
|
3508
|
+
traces: Trace[];
|
|
3509
|
+
}>;
|
|
3510
|
+
abstract getThreadsByResourceIdPaginated(args: {
|
|
3511
|
+
resourceId: string;
|
|
3512
|
+
page: number;
|
|
3513
|
+
perPage: number;
|
|
3514
|
+
}): Promise<PaginationInfo & {
|
|
3515
|
+
threads: StorageThreadType[];
|
|
3516
|
+
}>;
|
|
3517
|
+
abstract getMessagesPaginated(args: StorageGetMessagesArg & {
|
|
3518
|
+
format?: 'v1' | 'v2';
|
|
3519
|
+
}): Promise<PaginationInfo & {
|
|
3520
|
+
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
3521
|
+
}>;
|
|
3506
3522
|
}
|
|
3507
3523
|
|
|
3508
|
-
export {
|
|
3524
|
+
export { type ActionContext as $, Agent as A, type StorageGetTracesArg as B, type CoreTool as C, TABLE_WORKFLOW_SNAPSHOT as D, type EvalRow as E, TABLE_EVALS as F, TABLE_MESSAGES as G, TABLE_THREADS as H, TABLE_TRACES as I, TABLE_SCHEMAS as J, type VariableReference$1 as K, LegacyWorkflow as L, Mastra as M, type StepResult$1 as N, type StepAction as O, type PaginationInfo as P, type LegacyWorkflowRunResult as Q, type WorkflowOptions as R, type StepExecutionContext as S, type ToolsInput as T, type StepVariableType as U, type VercelTool as V, type WorkflowContext as W, type StepNode as X, type StepGraph as Y, type RetryConfig as Z, type BaseCondition as _, type MastraPrimitives as a, memoryDefaultOptions as a$, WhenConditionReturnValue as a0, type StepDef as a1, type StepCondition as a2, type StepConfig as a3, type StepsRecord$1 as a4, type WorkflowLogMessage as a5, type WorkflowEvent as a6, type ResolverFunctionInput as a7, type ResolverFunctionOutput as a8, type SubscriberFunctionOutput as a9, type EmbedResult as aA, type EmbedManyResult as aB, type BaseStructuredOutputType as aC, type StructuredOutputType as aD, type StructuredOutputArrayItem as aE, type StructuredOutput as aF, type GenerateReturn as aG, type StreamReturn as aH, type OutputType as aI, type DefaultLLMTextOptions as aJ, type DefaultLLMTextObjectOptions as aK, type DefaultLLMStreamOptions as aL, type DefaultLLMStreamObjectOptions as aM, type LLMTextOptions as aN, type LLMTextObjectOptions as aO, type LLMStreamOptions as aP, type LLMInnerStreamOptions as aQ, type LLMStreamObjectOptions as aR, createMockModel as aS, type Config as aT, type MessageType as aU, type MessageResponse as aV, type MemoryConfig as aW, type SharedMemoryConfig as aX, type TraceType as aY, type MemoryProcessorOpts as aZ, MemoryProcessor as a_, type DependencyCheckOutput as aa, type StepResolverOutput as ab, type WorkflowActors as ac, type WorkflowActionParams as ad, type WorkflowActions as ae, type LegacyWorkflowState as af, type StepId as ag, type ExtractSchemaFromStep$1 as ah, type ExtractStepResult as ai, type StepInputType as aj, type ExtractSchemaType$1 as ak, type PathsToStringProps$1 as al, type LegacyWorkflowRunState as am, type WorkflowResumeResult as an, Tool as ao, createTool as ap, type InternalCoreTool as aq, type ToolExecutionContext as ar, type AgentConfig as as, type WorkflowConfig as at, type LanguageModel as au, type CoreMessage as av, type CoreSystemMessage as aw, type CoreAssistantMessage as ax, type CoreUserMessage as ay, type CoreToolMessage as az, MastraMemory as b, type StepFlowEntry as b0, type SerializedStep as b1, type SerializedStepFlowEntry as b2, createStep as b3, cloneStep as b4, createWorkflow as b5, cloneWorkflow as b6, type WorkflowResult as b7, Run as b8, type ExecutionGraph as b9, type MCPServerSSEOptions as bA, type MCPServerHonoSSEOptions as bB, type MCPServerHTTPOptions as bC, type Repository as bD, type VersionDetail as bE, type ArgumentInfo as bF, type PositionalArgumentInfo as bG, type NamedArgumentInfo as bH, type SubcommandInfo as bI, type CommandInfo as bJ, type EnvironmentVariableInfo as bK, type PackageInfo as bL, type RemoteInfo as bM, type MCPServerConfig as bN, type ServerInfo as bO, type ServerDetailInfo as bP, type MCPToolType as bQ, MessageList as bR, type ToolsetsInput as bS, type DynamicArgument as bT, type AgentGenerateOptions as bU, type AgentStreamOptions as bV, type MastraMessageContentV2 as bW, ExecutionEngine as ba, type ExecuteFunction as bb, type StepSuccess as bc, type StepFailure as bd, type StepSuspended as be, type StepRunning as bf, type StepResult as bg, type StepsRecord as bh, type DynamicMapping as bi, type PathsToStringProps as bj, type ExtractSchemaType as bk, type ExtractSchemaFromStep as bl, type VariableReference as bm, type StreamEvent as bn, type WatchEvent as bo, type ZodPathType as bp, type WorkflowRunState as bq, type MastraLanguageModel as br, type VoiceEventType as bs, type VoiceEventMap as bt, type VoiceConfig as bu, MastraVoice as bv, CompositeVoice as bw, DefaultVoice as bx, type AgentNetworkConfig as by, type ConvertedTool as bz, type ToolAction as c, LegacyStep as d, Workflow as e, type Step as f, AgentNetwork as g, MCPServerBase as h, type Methods as i, type ApiRoute as j, type MastraAuthConfig as k, type ContextWithMastra as l, MastraAuthProvider as m, type MastraAuthProviderOptions as n, MastraStorage as o, type TABLE_NAMES as p, type StorageColumn as q, type StorageThreadType as r, type MastraMessageV2 as s, type StorageGetMessagesArg as t, type MastraMessageV1 as u, type WorkflowRuns as v, type WorkflowRun as w, type LegacyWorkflowRuns as x, type LegacyWorkflowRun as y, type PaginationArgs as z };
|
package/dist/base.d.cts
CHANGED
package/dist/base.d.ts
CHANGED
package/dist/bundler/index.d.cts
CHANGED
package/dist/bundler/index.d.ts
CHANGED
package/dist/deployer/index.d.ts
CHANGED
package/dist/eval/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.cjs';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.cjs';
|
|
3
|
-
import { A as Agent } from '../base-
|
|
3
|
+
import { A as Agent } from '../base-Bdc5hWla.cjs';
|
|
4
4
|
import 'ai';
|
|
5
|
-
import '../base-
|
|
5
|
+
import '../base-DVVTzIQy.cjs';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
7
|
import '../logger-CpL0z5v_.cjs';
|
|
8
8
|
import '../error/index.cjs';
|
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { M as Metric, T as TestInfo, E as EvaluationResult } from '../types-Bo1uigWx.js';
|
|
2
2
|
export { a as MetricResult } from '../types-Bo1uigWx.js';
|
|
3
|
-
import { A as Agent } from '../base-
|
|
3
|
+
import { A as Agent } from '../base-icHjkcs-.js';
|
|
4
4
|
import 'ai';
|
|
5
|
-
import '../base-
|
|
5
|
+
import '../base-BbdvunNJ.js';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
7
|
import '../logger-DtVDdb81.js';
|
|
8
8
|
import '../error/index.js';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.cjs';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.cjs';
|
|
3
|
-
import { c as ToolAction, A as Agent$1,
|
|
4
|
-
export {
|
|
5
|
-
import { M as MastraBase$1 } from './base-
|
|
6
|
-
export { O as OtelConfig, S as SamplingStrategy,
|
|
3
|
+
import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, f as Step, e as Workflow$1, at as WorkflowConfig } from './base-Bdc5hWla.cjs';
|
|
4
|
+
export { aC as BaseStructuredOutputType, aT as Config, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, C as CoreTool, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, bi as DynamicMapping, aB as EmbedManyResult, aA as EmbedResult, E as EvalRow, bb as ExecuteFunction, ba as ExecutionEngine, b9 as ExecutionGraph, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, aG as GenerateReturn, aq as InternalCoreTool, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aI as OutputType, z as PaginationArgs, P as PaginationInfo, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, b2 as SerializedStepFlowEntry, aX as SharedMemoryConfig, bd as StepFailure, b0 as StepFlowEntry, bg as StepResult, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bn as StreamEvent, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aY as TraceType, bm as VariableReference, V as VercelTool, bo as WatchEvent, b7 as WorkflowResult, w as WorkflowRun, bq as WorkflowRunState, v as WorkflowRuns, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, aS as createMockModel, b3 as createStep, ap as createTool, b5 as createWorkflow, a$ as memoryDefaultOptions } from './base-Bdc5hWla.cjs';
|
|
5
|
+
import { M as MastraBase$1 } from './base-DVVTzIQy.cjs';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-DVVTzIQy.cjs';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-CpL0z5v_.cjs';
|
|
8
8
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.cjs';
|
|
9
9
|
export { evaluate } from './eval/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { M as Metric } from './types-Bo1uigWx.js';
|
|
2
2
|
export { E as EvaluationResult, a as MetricResult, T as TestInfo } from './types-Bo1uigWx.js';
|
|
3
|
-
import { c as ToolAction, A as Agent$1,
|
|
4
|
-
export {
|
|
5
|
-
import { M as MastraBase$1 } from './base-
|
|
6
|
-
export { O as OtelConfig, S as SamplingStrategy,
|
|
3
|
+
import { c as ToolAction, A as Agent$1, as as AgentConfig, o as MastraStorage$1, b as MastraMemory$1, ar as ToolExecutionContext, ao as Tool$1, f as Step, e as Workflow$1, at as WorkflowConfig } from './base-icHjkcs-.js';
|
|
4
|
+
export { aC as BaseStructuredOutputType, aT as Config, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, C as CoreTool, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, bi as DynamicMapping, aB as EmbedManyResult, aA as EmbedResult, E as EvalRow, bb as ExecuteFunction, ba as ExecutionEngine, b9 as ExecutionGraph, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, aG as GenerateReturn, aq as InternalCoreTool, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, y as LegacyWorkflowRun, x as LegacyWorkflowRuns, M as Mastra, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aI as OutputType, z as PaginationArgs, P as PaginationInfo, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, b2 as SerializedStepFlowEntry, aX as SharedMemoryConfig, bd as StepFailure, b0 as StepFlowEntry, bg as StepResult, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, q as StorageColumn, t as StorageGetMessagesArg, B as StorageGetTracesArg, r as StorageThreadType, bn as StreamEvent, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aY as TraceType, bm as VariableReference, V as VercelTool, bo as WatchEvent, b7 as WorkflowResult, w as WorkflowRun, bq as WorkflowRunState, v as WorkflowRuns, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, aS as createMockModel, b3 as createStep, ap as createTool, b5 as createWorkflow, a$ as memoryDefaultOptions } from './base-icHjkcs-.js';
|
|
5
|
+
import { M as MastraBase$1 } from './base-BbdvunNJ.js';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from './base-BbdvunNJ.js';
|
|
7
7
|
import { R as RegisteredLogger } from './logger-DtVDdb81.js';
|
|
8
8
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
|
|
9
9
|
export { evaluate } from './eval/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import { e as Workflow, c as ToolAction } from '../base-
|
|
1
|
+
import '../base-DVVTzIQy.cjs';
|
|
2
|
+
import { e as Workflow, c as ToolAction } from '../base-Bdc5hWla.cjs';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
4
|
import '../logger-CpL0z5v_.cjs';
|
|
5
5
|
import '../error/index.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '../base-
|
|
2
|
-
import { e as Workflow, c as ToolAction } from '../base-
|
|
1
|
+
import '../base-BbdvunNJ.js';
|
|
2
|
+
import { e as Workflow, c as ToolAction } from '../base-icHjkcs-.js';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
4
|
import '../logger-DtVDdb81.js';
|
|
5
5
|
import '../error/index.js';
|
package/dist/llm/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { aC as BaseStructuredOutputType, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, aB as EmbedManyResult, aA as EmbedResult, aG as GenerateReturn, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, aI as OutputType, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aS as createMockModel } from '../base-Bdc5hWla.cjs';
|
|
5
5
|
import '../runtime-context/index.cjs';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-DVVTzIQy.cjs';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
8
|
import '../logger-CpL0z5v_.cjs';
|
|
9
9
|
import '../error/index.cjs';
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { aC as BaseStructuredOutputType, ax as CoreAssistantMessage, av as CoreMessage, aw as CoreSystemMessage, az as CoreToolMessage, ay as CoreUserMessage, aM as DefaultLLMStreamObjectOptions, aL as DefaultLLMStreamOptions, aK as DefaultLLMTextObjectOptions, aJ as DefaultLLMTextOptions, aB as EmbedManyResult, aA as EmbedResult, aG as GenerateReturn, aQ as LLMInnerStreamOptions, aR as LLMStreamObjectOptions, aP as LLMStreamOptions, aO as LLMTextObjectOptions, aN as LLMTextOptions, au as LanguageModel, aI as OutputType, aH as StreamReturn, aF as StructuredOutput, aE as StructuredOutputArrayItem, aD as StructuredOutputType, aS as createMockModel } from '../base-icHjkcs-.js';
|
|
5
5
|
import '../runtime-context/index.js';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-BbdvunNJ.js';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
8
|
import '../logger-DtVDdb81.js';
|
|
9
9
|
import '../error/index.js';
|
package/dist/mastra/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../logger-CpL0z5v_.cjs';
|
|
2
|
-
export {
|
|
2
|
+
export { aT as Config, M as Mastra } from '../base-Bdc5hWla.cjs';
|
|
3
3
|
import '../deployer/index.cjs';
|
|
4
4
|
import '../vector/index.cjs';
|
|
5
|
-
import '../base-
|
|
5
|
+
import '../base-DVVTzIQy.cjs';
|
|
6
6
|
import '../tts/index.cjs';
|
|
7
7
|
import '../error/index.cjs';
|
|
8
8
|
import 'stream';
|
package/dist/mastra/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../logger-DtVDdb81.js';
|
|
2
|
-
export {
|
|
2
|
+
export { aT as Config, M as Mastra } from '../base-icHjkcs-.js';
|
|
3
3
|
import '../deployer/index.js';
|
|
4
4
|
import '../vector/index.js';
|
|
5
|
-
import '../base-
|
|
5
|
+
import '../base-BbdvunNJ.js';
|
|
6
6
|
import '../tts/index.js';
|
|
7
7
|
import '../error/index.js';
|
|
8
8
|
import 'stream';
|
package/dist/mcp/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../base-
|
|
1
|
+
export { bF as ArgumentInfo, bJ as CommandInfo, bz as ConvertedTool, bK as EnvironmentVariableInfo, h as MCPServerBase, bN as MCPServerConfig, bC as MCPServerHTTPOptions, bB as MCPServerHonoSSEOptions, bA as MCPServerSSEOptions, bQ as MCPToolType, bH as NamedArgumentInfo, bL as PackageInfo, bG as PositionalArgumentInfo, bM as RemoteInfo, bD as Repository, bP as ServerDetailInfo, bO as ServerInfo, bI as SubcommandInfo, bE as VersionDetail } from '../base-Bdc5hWla.cjs';
|
|
2
|
+
import '../base-DVVTzIQy.cjs';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../logger-CpL0z5v_.cjs';
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import '../base-
|
|
1
|
+
export { bF as ArgumentInfo, bJ as CommandInfo, bz as ConvertedTool, bK as EnvironmentVariableInfo, h as MCPServerBase, bN as MCPServerConfig, bC as MCPServerHTTPOptions, bB as MCPServerHonoSSEOptions, bA as MCPServerSSEOptions, bQ as MCPToolType, bH as NamedArgumentInfo, bL as PackageInfo, bG as PositionalArgumentInfo, bM as RemoteInfo, bD as Repository, bP as ServerDetailInfo, bO as ServerInfo, bI as SubcommandInfo, bE as VersionDetail } from '../base-icHjkcs-.js';
|
|
2
|
+
import '../base-BbdvunNJ.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../logger-DtVDdb81.js';
|
package/dist/memory/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2,
|
|
1
|
+
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aX as SharedMemoryConfig, r as StorageThreadType, aY as TraceType, a$ as memoryDefaultOptions } from '../base-Bdc5hWla.cjs';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-DVVTzIQy.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
5
|
import '../logger-CpL0z5v_.cjs';
|
|
6
6
|
import '../error/index.cjs';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2,
|
|
1
|
+
export { b as MastraMemory, u as MastraMessageV1, s as MastraMessageV2, aW as MemoryConfig, a_ as MemoryProcessor, aZ as MemoryProcessorOpts, aV as MessageResponse, aU as MessageType, aX as SharedMemoryConfig, r as StorageThreadType, aY as TraceType, a$ as memoryDefaultOptions } from '../base-icHjkcs-.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-BbdvunNJ.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
5
|
import '../logger-DtVDdb81.js';
|
|
6
6
|
import '../error/index.js';
|
package/dist/network/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { g as AgentNetwork,
|
|
1
|
+
export { g as AgentNetwork, by as AgentNetworkConfig } from '../base-Bdc5hWla.cjs';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-DVVTzIQy.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
5
|
import '../logger-CpL0z5v_.cjs';
|
|
6
6
|
import '../error/index.cjs';
|
package/dist/network/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { g as AgentNetwork,
|
|
1
|
+
export { g as AgentNetwork, by as AgentNetworkConfig } from '../base-icHjkcs-.js';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-BbdvunNJ.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
5
|
import '../logger-DtVDdb81.js';
|
|
6
6
|
import '../error/index.js';
|
package/dist/server/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-
|
|
4
|
-
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-Bdc5hWla.cjs';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-Bdc5hWla.cjs';
|
|
5
5
|
import 'ai';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-DVVTzIQy.cjs';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
8
|
import '../logger-CpL0z5v_.cjs';
|
|
9
9
|
import '../error/index.cjs';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Handler, Context, MiddlewareHandler } from 'hono';
|
|
2
2
|
import { DescribeRouteOptions } from 'hono-openapi';
|
|
3
|
-
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-
|
|
4
|
-
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-
|
|
3
|
+
import { i as Methods, M as Mastra, j as ApiRoute, k as MastraAuthConfig } from '../base-icHjkcs-.js';
|
|
4
|
+
export { l as ContextWithMastra, m as MastraAuthProvider, n as MastraAuthProviderOptions } from '../base-icHjkcs-.js';
|
|
5
5
|
import 'ai';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-BbdvunNJ.js';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
8
|
import '../logger-DtVDdb81.js';
|
|
9
9
|
import '../error/index.js';
|
package/dist/storage/index.cjs
CHANGED
|
@@ -191,6 +191,69 @@ var MockStore = class extends chunkZKUUYDOQ_cjs.MastraStorage {
|
|
|
191
191
|
};
|
|
192
192
|
return parsedRun;
|
|
193
193
|
}
|
|
194
|
+
async getTracesPaginated({
|
|
195
|
+
name,
|
|
196
|
+
scope,
|
|
197
|
+
attributes,
|
|
198
|
+
page,
|
|
199
|
+
perPage,
|
|
200
|
+
fromDate,
|
|
201
|
+
toDate
|
|
202
|
+
}) {
|
|
203
|
+
this.logger.debug(`MockStore: getTracesPaginated called`);
|
|
204
|
+
let traces = Object.values(this.data.mastra_traces);
|
|
205
|
+
if (name) traces = traces.filter((t) => t.name?.startsWith(name));
|
|
206
|
+
if (scope) traces = traces.filter((t) => t.scope === scope);
|
|
207
|
+
if (attributes) {
|
|
208
|
+
traces = traces.filter(
|
|
209
|
+
(t) => Object.entries(attributes).every(([key, value]) => t.attributes?.[key] === value)
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
if (fromDate) traces = traces.filter((t) => new Date(t.createdAt) >= fromDate);
|
|
213
|
+
if (toDate) traces = traces.filter((t) => new Date(t.createdAt) <= toDate);
|
|
214
|
+
traces.sort((a, b) => new Date(b.startTime).getTime() - new Date(a.startTime).getTime());
|
|
215
|
+
const start = page * perPage;
|
|
216
|
+
const end = start + perPage;
|
|
217
|
+
return {
|
|
218
|
+
traces: traces.slice(start, end),
|
|
219
|
+
total: traces.length,
|
|
220
|
+
page,
|
|
221
|
+
perPage,
|
|
222
|
+
hasMore: traces.length > end
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
async getThreadsByResourceIdPaginated(args) {
|
|
226
|
+
this.logger.debug(`MockStore: getThreadsByResourceIdPaginated called for ${args.resourceId}`);
|
|
227
|
+
const threads = Object.values(this.data.mastra_threads).filter((t) => t.resourceId === args.resourceId);
|
|
228
|
+
return {
|
|
229
|
+
threads: threads.slice(args.page * args.perPage, (args.page + 1) * args.perPage),
|
|
230
|
+
total: threads.length,
|
|
231
|
+
page: args.page,
|
|
232
|
+
perPage: args.perPage,
|
|
233
|
+
hasMore: threads.length > (args.page + 1) * args.perPage
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
async getMessagesPaginated({
|
|
237
|
+
threadId,
|
|
238
|
+
selectBy
|
|
239
|
+
}) {
|
|
240
|
+
this.logger.debug(`MockStore: getMessagesPaginated called for thread ${threadId}`);
|
|
241
|
+
const { page = 0, perPage = 40 } = selectBy?.pagination || {};
|
|
242
|
+
let messages = Object.values(this.data.mastra_messages).filter((msg) => msg.threadId === threadId);
|
|
243
|
+
if (selectBy?.last) {
|
|
244
|
+
messages = messages.slice(-selectBy.last);
|
|
245
|
+
}
|
|
246
|
+
messages.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
|
|
247
|
+
const start = page * perPage;
|
|
248
|
+
const end = start + perPage;
|
|
249
|
+
return {
|
|
250
|
+
messages: messages.slice(start, end),
|
|
251
|
+
total: messages.length,
|
|
252
|
+
page,
|
|
253
|
+
perPage,
|
|
254
|
+
hasMore: messages.length > end
|
|
255
|
+
};
|
|
256
|
+
}
|
|
194
257
|
};
|
|
195
258
|
|
|
196
259
|
Object.defineProperty(exports, "MastraStorage", {
|
package/dist/storage/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-
|
|
2
|
-
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns,
|
|
3
|
-
import '../base-
|
|
1
|
+
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-Bdc5hWla.cjs';
|
|
2
|
+
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, F as TABLE_EVALS, G as TABLE_MESSAGES, J as TABLE_SCHEMAS, H as TABLE_THREADS, I as TABLE_TRACES, D as TABLE_WORKFLOW_SNAPSHOT } from '../base-Bdc5hWla.cjs';
|
|
3
|
+
import { T as Trace } from '../base-DVVTzIQy.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../logger-CpL0z5v_.cjs';
|
|
@@ -103,6 +103,29 @@ declare class MockStore extends MastraStorage {
|
|
|
103
103
|
runId: string;
|
|
104
104
|
workflowName?: string;
|
|
105
105
|
}): Promise<WorkflowRun | null>;
|
|
106
|
+
getTracesPaginated({ name, scope, attributes, page, perPage, fromDate, toDate, }: {
|
|
107
|
+
name?: string;
|
|
108
|
+
scope?: string;
|
|
109
|
+
attributes?: Record<string, string>;
|
|
110
|
+
page: number;
|
|
111
|
+
perPage: number;
|
|
112
|
+
fromDate?: Date;
|
|
113
|
+
toDate?: Date;
|
|
114
|
+
}): Promise<PaginationInfo & {
|
|
115
|
+
traces: Trace[];
|
|
116
|
+
}>;
|
|
117
|
+
getThreadsByResourceIdPaginated(args: {
|
|
118
|
+
resourceId: string;
|
|
119
|
+
page: number;
|
|
120
|
+
perPage: number;
|
|
121
|
+
}): Promise<PaginationInfo & {
|
|
122
|
+
threads: StorageThreadType[];
|
|
123
|
+
}>;
|
|
124
|
+
getMessagesPaginated({ threadId, selectBy, }: StorageGetMessagesArg & {
|
|
125
|
+
format?: 'v1' | 'v2';
|
|
126
|
+
}): Promise<PaginationInfo & {
|
|
127
|
+
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
128
|
+
}>;
|
|
106
129
|
}
|
|
107
130
|
|
|
108
|
-
export { EvalRow, MastraStorage, MockStore, StorageColumn, StorageGetMessagesArg, TABLE_NAMES, WorkflowRun, WorkflowRuns };
|
|
131
|
+
export { EvalRow, MastraStorage, MockStore, PaginationInfo, StorageColumn, StorageGetMessagesArg, TABLE_NAMES, WorkflowRun, WorkflowRuns };
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun } from '../base-
|
|
2
|
-
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns,
|
|
3
|
-
import '../base-
|
|
1
|
+
import { o as MastraStorage, p as TABLE_NAMES, q as StorageColumn, r as StorageThreadType, s as MastraMessageV2, t as StorageGetMessagesArg, u as MastraMessageV1, E as EvalRow, v as WorkflowRuns, w as WorkflowRun, P as PaginationInfo } from '../base-icHjkcs-.js';
|
|
2
|
+
export { y as LegacyWorkflowRun, x as LegacyWorkflowRuns, z as PaginationArgs, B as StorageGetTracesArg, F as TABLE_EVALS, G as TABLE_MESSAGES, J as TABLE_SCHEMAS, H as TABLE_THREADS, I as TABLE_TRACES, D as TABLE_WORKFLOW_SNAPSHOT } from '../base-icHjkcs-.js';
|
|
3
|
+
import { T as Trace } from '../base-BbdvunNJ.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../logger-DtVDdb81.js';
|
|
@@ -103,6 +103,29 @@ declare class MockStore extends MastraStorage {
|
|
|
103
103
|
runId: string;
|
|
104
104
|
workflowName?: string;
|
|
105
105
|
}): Promise<WorkflowRun | null>;
|
|
106
|
+
getTracesPaginated({ name, scope, attributes, page, perPage, fromDate, toDate, }: {
|
|
107
|
+
name?: string;
|
|
108
|
+
scope?: string;
|
|
109
|
+
attributes?: Record<string, string>;
|
|
110
|
+
page: number;
|
|
111
|
+
perPage: number;
|
|
112
|
+
fromDate?: Date;
|
|
113
|
+
toDate?: Date;
|
|
114
|
+
}): Promise<PaginationInfo & {
|
|
115
|
+
traces: Trace[];
|
|
116
|
+
}>;
|
|
117
|
+
getThreadsByResourceIdPaginated(args: {
|
|
118
|
+
resourceId: string;
|
|
119
|
+
page: number;
|
|
120
|
+
perPage: number;
|
|
121
|
+
}): Promise<PaginationInfo & {
|
|
122
|
+
threads: StorageThreadType[];
|
|
123
|
+
}>;
|
|
124
|
+
getMessagesPaginated({ threadId, selectBy, }: StorageGetMessagesArg & {
|
|
125
|
+
format?: 'v1' | 'v2';
|
|
126
|
+
}): Promise<PaginationInfo & {
|
|
127
|
+
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
128
|
+
}>;
|
|
106
129
|
}
|
|
107
130
|
|
|
108
|
-
export { EvalRow, MastraStorage, MockStore, StorageColumn, StorageGetMessagesArg, TABLE_NAMES, WorkflowRun, WorkflowRuns };
|
|
131
|
+
export { EvalRow, MastraStorage, MockStore, PaginationInfo, StorageColumn, StorageGetMessagesArg, TABLE_NAMES, WorkflowRun, WorkflowRuns };
|
package/dist/storage/index.js
CHANGED
|
@@ -190,6 +190,69 @@ var MockStore = class extends MastraStorage {
|
|
|
190
190
|
};
|
|
191
191
|
return parsedRun;
|
|
192
192
|
}
|
|
193
|
+
async getTracesPaginated({
|
|
194
|
+
name,
|
|
195
|
+
scope,
|
|
196
|
+
attributes,
|
|
197
|
+
page,
|
|
198
|
+
perPage,
|
|
199
|
+
fromDate,
|
|
200
|
+
toDate
|
|
201
|
+
}) {
|
|
202
|
+
this.logger.debug(`MockStore: getTracesPaginated called`);
|
|
203
|
+
let traces = Object.values(this.data.mastra_traces);
|
|
204
|
+
if (name) traces = traces.filter((t) => t.name?.startsWith(name));
|
|
205
|
+
if (scope) traces = traces.filter((t) => t.scope === scope);
|
|
206
|
+
if (attributes) {
|
|
207
|
+
traces = traces.filter(
|
|
208
|
+
(t) => Object.entries(attributes).every(([key, value]) => t.attributes?.[key] === value)
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
if (fromDate) traces = traces.filter((t) => new Date(t.createdAt) >= fromDate);
|
|
212
|
+
if (toDate) traces = traces.filter((t) => new Date(t.createdAt) <= toDate);
|
|
213
|
+
traces.sort((a, b) => new Date(b.startTime).getTime() - new Date(a.startTime).getTime());
|
|
214
|
+
const start = page * perPage;
|
|
215
|
+
const end = start + perPage;
|
|
216
|
+
return {
|
|
217
|
+
traces: traces.slice(start, end),
|
|
218
|
+
total: traces.length,
|
|
219
|
+
page,
|
|
220
|
+
perPage,
|
|
221
|
+
hasMore: traces.length > end
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
async getThreadsByResourceIdPaginated(args) {
|
|
225
|
+
this.logger.debug(`MockStore: getThreadsByResourceIdPaginated called for ${args.resourceId}`);
|
|
226
|
+
const threads = Object.values(this.data.mastra_threads).filter((t) => t.resourceId === args.resourceId);
|
|
227
|
+
return {
|
|
228
|
+
threads: threads.slice(args.page * args.perPage, (args.page + 1) * args.perPage),
|
|
229
|
+
total: threads.length,
|
|
230
|
+
page: args.page,
|
|
231
|
+
perPage: args.perPage,
|
|
232
|
+
hasMore: threads.length > (args.page + 1) * args.perPage
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
async getMessagesPaginated({
|
|
236
|
+
threadId,
|
|
237
|
+
selectBy
|
|
238
|
+
}) {
|
|
239
|
+
this.logger.debug(`MockStore: getMessagesPaginated called for thread ${threadId}`);
|
|
240
|
+
const { page = 0, perPage = 40 } = selectBy?.pagination || {};
|
|
241
|
+
let messages = Object.values(this.data.mastra_messages).filter((msg) => msg.threadId === threadId);
|
|
242
|
+
if (selectBy?.last) {
|
|
243
|
+
messages = messages.slice(-selectBy.last);
|
|
244
|
+
}
|
|
245
|
+
messages.sort((a, b) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
|
|
246
|
+
const start = page * perPage;
|
|
247
|
+
const end = start + perPage;
|
|
248
|
+
return {
|
|
249
|
+
messages: messages.slice(start, end),
|
|
250
|
+
total: messages.length,
|
|
251
|
+
page,
|
|
252
|
+
perPage,
|
|
253
|
+
hasMore: messages.length > end
|
|
254
|
+
};
|
|
255
|
+
}
|
|
193
256
|
};
|
|
194
257
|
|
|
195
258
|
export { MockStore };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { O as OtelConfig, S as SamplingStrategy,
|
|
1
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from '../base-DVVTzIQy.cjs';
|
|
2
2
|
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-CpL0z5v_.cjs';
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
6
|
+
import { o as MastraStorage } from '../base-Bdc5hWla.cjs';
|
|
7
7
|
import '../error/index.cjs';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'ai';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { O as OtelConfig, S as SamplingStrategy,
|
|
1
|
+
export { O as OtelConfig, S as SamplingStrategy, a as Telemetry, T as Trace } from '../base-BbdvunNJ.js';
|
|
2
2
|
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-DtVDdb81.js';
|
|
6
|
-
import { o as MastraStorage } from '../base-
|
|
6
|
+
import { o as MastraStorage } from '../base-icHjkcs-.js';
|
|
7
7
|
import '../error/index.js';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'ai';
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool,
|
|
3
|
-
import '../base-
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-Bdc5hWla.cjs';
|
|
2
|
+
export { C as CoreTool, aq as InternalCoreTool, ao as Tool, ar as ToolExecutionContext, ap as createTool } from '../base-Bdc5hWla.cjs';
|
|
3
|
+
import '../base-DVVTzIQy.cjs';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../logger-CpL0z5v_.cjs';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { V as VercelTool, c as ToolAction } from '../base-
|
|
2
|
-
export { C as CoreTool,
|
|
3
|
-
import '../base-
|
|
1
|
+
import { V as VercelTool, c as ToolAction } from '../base-icHjkcs-.js';
|
|
2
|
+
export { C as CoreTool, aq as InternalCoreTool, ao as Tool, ar as ToolExecutionContext, ap as createTool } from '../base-icHjkcs-.js';
|
|
3
|
+
import '../base-BbdvunNJ.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../logger-DtVDdb81.js';
|
package/dist/tts/index.d.cts
CHANGED
package/dist/tts/index.d.ts
CHANGED
package/dist/utils.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-Bdc5hWla.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';
|
|
5
5
|
import { M as Metric } from './types-Bo1uigWx.cjs';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { I as IMastraLogger } from './logger-CpL0z5v_.cjs';
|
|
8
|
-
import './base-
|
|
8
|
+
import './base-DVVTzIQy.cjs';
|
|
9
9
|
import { RuntimeContext } from './runtime-context/index.cjs';
|
|
10
10
|
import 'json-schema';
|
|
11
11
|
import 'sift';
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-
|
|
1
|
+
import { M as Mastra, a as MastraPrimitives, b as MastraMemory, T as ToolsInput, V as VercelTool, c as ToolAction, C as CoreTool, A as Agent, L as LegacyWorkflow, d as LegacyStep, S as StepExecutionContext, W as WorkflowContext, e as Workflow, f as Step, g as AgentNetwork, h as MCPServerBase } from './base-icHjkcs-.js';
|
|
2
2
|
import { LanguageModelV1, CoreMessage, Message } from 'ai';
|
|
3
3
|
import { MastraTTS } from './tts/index.js';
|
|
4
4
|
import { MastraVector } from './vector/index.js';
|
|
5
5
|
import { M as Metric } from './types-Bo1uigWx.js';
|
|
6
6
|
import { z } from 'zod';
|
|
7
7
|
import { I as IMastraLogger } from './logger-DtVDdb81.js';
|
|
8
|
-
import './base-
|
|
8
|
+
import './base-BbdvunNJ.js';
|
|
9
9
|
import { RuntimeContext } from './runtime-context/index.js';
|
|
10
10
|
import 'json-schema';
|
|
11
11
|
import 'sift';
|
package/dist/vector/index.d.cts
CHANGED
package/dist/vector/index.d.ts
CHANGED
package/dist/voice/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bw as CompositeVoice, bx as DefaultVoice, bv as MastraVoice, bu as VoiceConfig, bt as VoiceEventMap, bs as VoiceEventType } from '../base-Bdc5hWla.cjs';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-DVVTzIQy.cjs';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
5
|
import '../logger-CpL0z5v_.cjs';
|
|
6
6
|
import '../error/index.cjs';
|
package/dist/voice/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { bw as CompositeVoice, bx as DefaultVoice, bv as MastraVoice, bu as VoiceConfig, bt as VoiceEventMap, bs as VoiceEventType } from '../base-icHjkcs-.js';
|
|
2
2
|
import 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-BbdvunNJ.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
5
|
import '../logger-DtVDdb81.js';
|
|
6
6
|
import '../error/index.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ba as ExecutionEngine, bg as StepResult, b9 as ExecutionGraph, b2 as SerializedStepFlowEntry, b0 as StepFlowEntry, f as Step, bb as ExecuteFunction } from '../base-Bdc5hWla.cjs';
|
|
2
|
+
export { bi as DynamicMapping, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, bd as StepFailure, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, bn as StreamEvent, bm as VariableReference, bo as WatchEvent, e as Workflow, at as WorkflowConfig, b7 as WorkflowResult, bq as WorkflowRunState, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, b3 as createStep, b5 as createWorkflow } from '../base-Bdc5hWla.cjs';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.cjs';
|
|
5
5
|
import 'ai';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-DVVTzIQy.cjs';
|
|
7
7
|
import '../logger-CpL0z5v_.cjs';
|
|
8
8
|
import '../error/index.cjs';
|
|
9
9
|
import 'stream';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { ba as ExecutionEngine, bg as StepResult, b9 as ExecutionGraph, b2 as SerializedStepFlowEntry, b0 as StepFlowEntry, f as Step, bb as ExecuteFunction } from '../base-icHjkcs-.js';
|
|
2
|
+
export { bi as DynamicMapping, bl as ExtractSchemaFromStep, bk as ExtractSchemaType, bj as PathsToStringProps, b8 as Run, b1 as SerializedStep, bd as StepFailure, bf as StepRunning, bc as StepSuccess, be as StepSuspended, bh as StepsRecord, bn as StreamEvent, bm as VariableReference, bo as WatchEvent, e as Workflow, at as WorkflowConfig, b7 as WorkflowResult, bq as WorkflowRunState, bp as ZodPathType, b4 as cloneStep, b6 as cloneWorkflow, b3 as createStep, b5 as createWorkflow } from '../base-icHjkcs-.js';
|
|
3
3
|
import { Span } from '@opentelemetry/api';
|
|
4
4
|
import { RuntimeContext } from '../runtime-context/index.js';
|
|
5
5
|
import 'ai';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-BbdvunNJ.js';
|
|
7
7
|
import '../logger-DtVDdb81.js';
|
|
8
8
|
import '../error/index.js';
|
|
9
9
|
import 'stream';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { K as VariableReference, N as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, O as StepAction, Q as LegacyWorkflowRunResult } from '../../base-Bdc5hWla.cjs';
|
|
2
|
+
export { $ as ActionContext, _ as BaseCondition, aa as DependencyCheckOutput, ah as ExtractSchemaFromStep, ak as ExtractSchemaType, ai as ExtractStepResult, am as LegacyWorkflowRunState, af as LegacyWorkflowState, al as PathsToStringProps, a7 as ResolverFunctionInput, a8 as ResolverFunctionOutput, Z as RetryConfig, a2 as StepCondition, a3 as StepConfig, a1 as StepDef, S as StepExecutionContext, Y as StepGraph, ag as StepId, aj as StepInputType, X as StepNode, ab as StepResolverOutput, U as StepVariableType, a4 as StepsRecord, a9 as SubscriberFunctionOutput, a0 as WhenConditionReturnValue, ad as WorkflowActionParams, ae as WorkflowActions, ac as WorkflowActors, a6 as WorkflowEvent, a5 as WorkflowLogMessage, R as WorkflowOptions, an as WorkflowResumeResult } from '../../base-Bdc5hWla.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { M as Metric } from '../../types-Bo1uigWx.cjs';
|
|
5
5
|
import { I as IMastraLogger } from '../../logger-CpL0z5v_.cjs';
|
|
6
|
-
import '../../base-
|
|
6
|
+
import '../../base-DVVTzIQy.cjs';
|
|
7
7
|
import 'ai';
|
|
8
8
|
import 'json-schema';
|
|
9
9
|
import '../../tts/index.cjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { K as VariableReference, N as StepResult, d as LegacyStep, L as LegacyWorkflow, A as Agent, W as WorkflowContext, T as ToolsInput, M as Mastra, O as StepAction, Q as LegacyWorkflowRunResult } from '../../base-icHjkcs-.js';
|
|
2
|
+
export { $ as ActionContext, _ as BaseCondition, aa as DependencyCheckOutput, ah as ExtractSchemaFromStep, ak as ExtractSchemaType, ai as ExtractStepResult, am as LegacyWorkflowRunState, af as LegacyWorkflowState, al as PathsToStringProps, a7 as ResolverFunctionInput, a8 as ResolverFunctionOutput, Z as RetryConfig, a2 as StepCondition, a3 as StepConfig, a1 as StepDef, S as StepExecutionContext, Y as StepGraph, ag as StepId, aj as StepInputType, X as StepNode, ab as StepResolverOutput, U as StepVariableType, a4 as StepsRecord, a9 as SubscriberFunctionOutput, a0 as WhenConditionReturnValue, ad as WorkflowActionParams, ae as WorkflowActions, ac as WorkflowActors, a6 as WorkflowEvent, a5 as WorkflowLogMessage, R as WorkflowOptions, an as WorkflowResumeResult } from '../../base-icHjkcs-.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { M as Metric } from '../../types-Bo1uigWx.js';
|
|
5
5
|
import { I as IMastraLogger } from '../../logger-DtVDdb81.js';
|
|
6
|
-
import '../../base-
|
|
6
|
+
import '../../base-BbdvunNJ.js';
|
|
7
7
|
import 'ai';
|
|
8
8
|
import 'json-schema';
|
|
9
9
|
import '../../tts/index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/core",
|
|
3
|
-
"version": "0.10.4
|
|
3
|
+
"version": "0.10.4",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"radash": "^12.1.0",
|
|
125
125
|
"sift": "^17.1.3",
|
|
126
126
|
"xstate": "^5.19.2",
|
|
127
|
-
"@mastra/schema-compat": "0.10.2
|
|
127
|
+
"@mastra/schema-compat": "0.10.2"
|
|
128
128
|
},
|
|
129
129
|
"peerDependencies": {
|
|
130
130
|
"zod": "^3.0.0"
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"typescript": "^5.8.2",
|
|
150
150
|
"vitest": "^3.2.2",
|
|
151
151
|
"zod": "^3.25.56",
|
|
152
|
-
"@internal/lint": "0.0.
|
|
152
|
+
"@internal/lint": "0.0.11"
|
|
153
153
|
},
|
|
154
154
|
"engines": {
|
|
155
155
|
"node": ">=20"
|