@mastra/core 0.2.1 → 0.4.0-alpha.0
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.ts +3 -3
- package/dist/agent/index.js +1 -1
- package/dist/{base-C7R9FwZ6.d.ts → base-BTUaTXvc.d.ts} +3 -3
- package/dist/{base-BbtPAA6f.d.ts → base-CmtknnDz.d.ts} +1 -1
- package/dist/base.d.ts +2 -2
- package/dist/base.js +1 -1
- package/dist/bundler/index.d.ts +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-CUIUUULJ.js → chunk-4DNSLET5.js} +2 -2
- package/dist/{chunk-5HXXWLRX.js → chunk-6CWY2XAM.js} +1 -1
- package/dist/{chunk-K36NSQWH.js → chunk-COG5YSSN.js} +1 -1
- package/dist/{chunk-VE4JJJSW.js → chunk-DAWQ5R4C.js} +15 -2
- package/dist/{chunk-22LC46YN.js → chunk-DIMNBNEX.js} +1 -1
- package/dist/{chunk-V4WSAQOP.js → chunk-E3DDYOSO.js} +1 -1
- package/dist/{chunk-AN562ICT.js → chunk-KDUL7NPA.js} +1 -1
- package/dist/{chunk-V5UMPUKC.js → chunk-NMB3HO5N.js} +4 -4
- package/dist/{chunk-6TCTOQ3G.js → chunk-PI5YQB75.js} +1 -1
- package/dist/{chunk-AWEACB2T.js → chunk-SYZAQCKZ.js} +1 -1
- package/dist/{chunk-ZJOXJFJI.js → chunk-VIJVUFTB.js} +1 -1
- package/dist/{chunk-HT63PEVD.js → chunk-WVNTGARP.js} +1 -1
- package/dist/{chunk-O2VP5JBC.js → chunk-XS2VY7YW.js} +1 -0
- package/dist/deployer/index.d.ts +2 -2
- package/dist/deployer/index.js +1 -1
- package/dist/eval/index.d.ts +3 -3
- package/dist/{index-B2JCcAQt.d.ts → index-BIpeWPEO.d.ts} +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +16 -16
- package/dist/integration/index.d.ts +4 -4
- package/dist/llm/index.d.ts +3 -3
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/mastra/index.d.ts +5 -5
- package/dist/mastra/index.js +1 -1
- package/dist/memory/index.d.ts +3 -3
- package/dist/memory/index.js +1 -1
- package/dist/relevance/index.js +1 -1
- package/dist/storage/index.d.ts +4 -4
- package/dist/storage/index.js +2 -2
- package/dist/telemetry/index.d.ts +3 -3
- package/dist/tools/index.d.ts +4 -4
- package/dist/tts/index.d.ts +2 -2
- package/dist/tts/index.js +1 -1
- package/dist/vector/index.d.ts +2 -2
- package/dist/vector/index.js +1 -1
- package/dist/vector/libsql/index.d.ts +2 -2
- package/dist/vector/libsql/index.js +1 -1
- package/dist/voice/index.d.ts +52 -0
- package/dist/voice/index.js +43 -0
- package/dist/{workflow-7xHmmFH5.d.ts → workflow-CwuYLcTS.d.ts} +2 -2
- package/dist/workflows/index.d.ts +5 -5
- package/dist/workflows/index.js +1 -1
- package/package.json +1 -1
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { A as Agent } from '../base-
|
|
5
|
-
import '../base-
|
|
4
|
+
export { A as Agent } from '../base-BTUaTXvc.js';
|
|
5
|
+
import '../base-CmtknnDz.js';
|
|
6
6
|
import '../types-m9RryK9a.js';
|
|
7
7
|
import 'sift';
|
|
8
8
|
import '../vector/index.js';
|
|
9
9
|
import '@opentelemetry/api';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-BIpeWPEO.js';
|
|
11
11
|
import 'pino';
|
|
12
12
|
import 'stream';
|
|
13
13
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/agent/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
1
|
+
export { Agent } from '../chunk-4DNSLET5.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { EmbeddingModel, CoreMessage as CoreMessage$1, Message, UserContent, AssistantContent, LanguageModelV1, GenerateTextResult, GenerateObjectResult, StreamTextResult, StreamObjectResult, CoreSystemMessage as CoreSystemMessage$1, CoreAssistantMessage as CoreAssistantMessage$1, CoreUserMessage as CoreUserMessage$1, CoreToolMessage as CoreToolMessage$1, EmbedResult as EmbedResult$1, EmbedManyResult as EmbedManyResult$1, LanguageModel as LanguageModel$1, DeepPartial, ToolContent } from 'ai';
|
|
3
|
-
import { M as MastraBase, T as Telemetry } from './base-
|
|
3
|
+
import { M as MastraBase, T as Telemetry } from './base-CmtknnDz.js';
|
|
4
4
|
import { a as Metric, M as MetricResult, T as TestInfo } from './types-m9RryK9a.js';
|
|
5
5
|
import { Query } from 'sift';
|
|
6
6
|
import { z, ZodSchema } from 'zod';
|
|
7
7
|
import { JSONSchema7 } from 'json-schema';
|
|
8
8
|
import { MastraVector } from './vector/index.js';
|
|
9
|
-
import { B as BaseLogMessage, R as RegisteredLogger, L as Logger, d as Run } from './index-
|
|
9
|
+
import { B as BaseLogMessage, R as RegisteredLogger, L as Logger, d as Run } from './index-BIpeWPEO.js';
|
|
10
10
|
import { MastraTTS } from './tts/index.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
@@ -860,4 +860,4 @@ declare abstract class MastraStorage extends MastraBase {
|
|
|
860
860
|
__getEvalsByAgentName(agentName: string, type?: 'test' | 'live'): Promise<EvalRow[]>;
|
|
861
861
|
}
|
|
862
862
|
|
|
863
|
-
export { type WorkflowContext as $, Agent as A, type BaseStructuredOutputType as B, type CoreMessage as C, type LLMInnerStreamOptions as D, type EvalRow as E, type LLMStreamObjectOptions as F, type GenerateReturn as G, type MessageType as H, type IAction as I, type StorageThreadType as J, type MessageResponse as K, type LanguageModel as L,
|
|
863
|
+
export { type WorkflowContext as $, Agent as A, type BaseStructuredOutputType as B, type CoreMessage as C, type LLMInnerStreamOptions as D, type EvalRow as E, type LLMStreamObjectOptions as F, type GenerateReturn as G, type MessageType as H, type IAction as I, type StorageThreadType as J, type MessageResponse as K, type LanguageModel as L, MastraStorage as M, type MemoryConfig as N, type OutputType as O, type SharedMemoryConfig as P, type CoreTool as Q, type RetryConfig as R, type StepExecutionContext as S, type ToolAction as T, type StepNode as U, type VariableReference as V, type WorkflowOptions as W, type BaseCondition as X, type ActionContext as Y, type StepDef as Z, type StepCondition as _, MastraMemory as a, type WorkflowLogMessage as a0, type WorkflowEvent as a1, type ResolverFunctionInput as a2, type ResolverFunctionOutput as a3, type SubscriberFunctionOutput as a4, type DependencyCheckOutput as a5, type WorkflowActors as a6, type WorkflowActionParams as a7, type WorkflowActions as a8, type WorkflowState as a9, type StepId as aa, type ExtractSchemaFromStep as ab, type ExtractStepResult as ac, type StepInputType as ad, type ExtractSchemaType as ae, type PathsToStringProps as af, type TABLE_NAMES as ag, TABLE_WORKFLOW_SNAPSHOT as ah, TABLE_EVALS as ai, TABLE_MESSAGES as aj, TABLE_THREADS as ak, TABLE_TRACES as al, type StepAction as b, type MastraPrimitives as c, type StepVariableType as d, type StepConfig as e, type StepResult as f, type WorkflowRunState as g, type StepGraph as h, type AgentConfig as i, type ToolExecutionContext as j, type StorageColumn as k, type WorkflowRow as l, type StorageGetMessagesArg as m, type CoreSystemMessage as n, type CoreAssistantMessage as o, type CoreUserMessage as p, type CoreToolMessage as q, type EmbedResult as r, type EmbedManyResult as s, type StructuredOutputType as t, type StructuredOutputArrayItem as u, type StructuredOutput as v, type StreamReturn as w, type LLMStreamOptions as x, type LLMTextOptions as y, type LLMTextObjectOptions as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _opentelemetry_api from '@opentelemetry/api';
|
|
2
2
|
import { Tracer, Span } from '@opentelemetry/api';
|
|
3
|
-
import { R as RegisteredLogger, L as Logger, a as LogLevel } from './index-
|
|
3
|
+
import { R as RegisteredLogger, L as Logger, a as LogLevel } from './index-BIpeWPEO.js';
|
|
4
4
|
import { SpanExporter } from '@opentelemetry/sdk-trace-base';
|
|
5
5
|
|
|
6
6
|
/** Sampling strategy configuration for OpenTelemetry */
|
package/dist/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@opentelemetry/api';
|
|
2
|
-
import './index-
|
|
3
|
-
export { M as MastraBase } from './base-
|
|
2
|
+
import './index-BIpeWPEO.js';
|
|
3
|
+
export { M as MastraBase } from './base-CmtknnDz.js';
|
|
4
4
|
import 'pino';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/base.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraBase } from './chunk-
|
|
1
|
+
export { MastraBase } from './chunk-SYZAQCKZ.js';
|
package/dist/bundler/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-
|
|
1
|
+
import { M as MastraBase } from '../base-CmtknnDz.js';
|
|
2
2
|
import '@opentelemetry/api';
|
|
3
|
-
import '../index-
|
|
3
|
+
import '../index-BIpeWPEO.js';
|
|
4
4
|
import 'pino';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraBundler } from '../chunk-
|
|
1
|
+
export { MastraBundler } from '../chunk-DIMNBNEX.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InstrumentClass } from './chunk-4ZRHVG25.js';
|
|
2
2
|
import { delay } from './chunk-55GTEVHJ.js';
|
|
3
|
-
import { MastraBase } from './chunk-
|
|
4
|
-
import { RegisteredLogger, LogLevel } from './chunk-
|
|
3
|
+
import { MastraBase } from './chunk-SYZAQCKZ.js';
|
|
4
|
+
import { RegisteredLogger, LogLevel } from './chunk-XS2VY7YW.js';
|
|
5
5
|
import { executeHook } from './chunk-BB4KXGBU.js';
|
|
6
6
|
import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-C6A6W6XS.js';
|
|
7
7
|
import { randomUUID } from 'crypto';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TABLE_WORKFLOW_SNAPSHOT, TABLE_EVALS, TABLE_MESSAGES, TABLE_THREADS, TABLE_TRACES } from './chunk-RG66XEJT.js';
|
|
2
|
-
import { MastraBase } from './chunk-
|
|
2
|
+
import { MastraBase } from './chunk-SYZAQCKZ.js';
|
|
3
3
|
import { createClient } from '@libsql/client';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DefaultStorage } from './chunk-
|
|
1
|
+
import { DefaultStorage } from './chunk-6CWY2XAM.js';
|
|
2
2
|
import { InstrumentClass, OTLPTraceExporter, Telemetry } from './chunk-4ZRHVG25.js';
|
|
3
|
-
import { createLogger, LogLevel, noopLogger } from './chunk-
|
|
3
|
+
import { createLogger, LogLevel, noopLogger } from './chunk-XS2VY7YW.js';
|
|
4
4
|
import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-C6A6W6XS.js';
|
|
5
5
|
|
|
6
6
|
// src/mastra/index.ts
|
|
@@ -101,6 +101,19 @@ var Mastra = class {
|
|
|
101
101
|
this.memory.__setTelemetry(this.telemetry);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
+
if (config && `memory` in config) {
|
|
105
|
+
this.logger.warn(`
|
|
106
|
+
Memory should be added to Agents, not to Mastra.
|
|
107
|
+
|
|
108
|
+
Instead of:
|
|
109
|
+
new Mastra({ memory: new Memory() })
|
|
110
|
+
|
|
111
|
+
do:
|
|
112
|
+
new Agent({ memory: new Memory() })
|
|
113
|
+
|
|
114
|
+
This is a warning for now, but will throw an error in the future
|
|
115
|
+
`);
|
|
116
|
+
}
|
|
104
117
|
if (config?.tts) {
|
|
105
118
|
this.tts = config.tts;
|
|
106
119
|
Object.entries(this.tts).forEach(([key, ttsCl]) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DefaultStorage } from './chunk-
|
|
2
|
-
import { DefaultVectorDB } from './chunk-
|
|
3
|
-
import { defaultEmbedder } from './chunk-
|
|
1
|
+
import { DefaultStorage } from './chunk-6CWY2XAM.js';
|
|
2
|
+
import { DefaultVectorDB } from './chunk-KDUL7NPA.js';
|
|
3
|
+
import { defaultEmbedder } from './chunk-VIJVUFTB.js';
|
|
4
4
|
import { deepMerge } from './chunk-55GTEVHJ.js';
|
|
5
|
-
import { MastraBase } from './chunk-
|
|
5
|
+
import { MastraBase } from './chunk-SYZAQCKZ.js';
|
|
6
6
|
|
|
7
7
|
// src/memory/memory.ts
|
|
8
8
|
var MastraMemory = class extends MastraBase {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InstrumentClass } from './chunk-4ZRHVG25.js';
|
|
2
|
-
import { MastraBase } from './chunk-
|
|
2
|
+
import { MastraBase } from './chunk-SYZAQCKZ.js';
|
|
3
3
|
import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-C6A6W6XS.js';
|
|
4
4
|
|
|
5
5
|
// src/tts/index.ts
|
package/dist/deployer/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MastraBundler, IBundler } from '../bundler/index.js';
|
|
2
|
-
import '../base-
|
|
2
|
+
import '../base-CmtknnDz.js';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../index-
|
|
4
|
+
import '../index-BIpeWPEO.js';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/deployer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraDeployer } from '../chunk-
|
|
1
|
+
export { MastraDeployer } from '../chunk-COG5YSSN.js';
|
package/dist/eval/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as Metric, T as TestInfo, M as MetricResult } from '../types-m9RryK9a.js';
|
|
2
|
-
import { A as Agent } from '../base-
|
|
2
|
+
import { A as Agent } from '../base-BTUaTXvc.js';
|
|
3
3
|
import 'ai';
|
|
4
|
-
import '../base-
|
|
4
|
+
import '../base-CmtknnDz.js';
|
|
5
5
|
import '@opentelemetry/api';
|
|
6
|
-
import '../index-
|
|
6
|
+
import '../index-BIpeWPEO.js';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as Metric } from './types-m9RryK9a.js';
|
|
2
2
|
export { M as MetricResult, T as TestInfo } from './types-m9RryK9a.js';
|
|
3
|
-
import { T as ToolAction, A as Agent$1, i as AgentConfig,
|
|
4
|
-
export { Y as ActionContext, X as BaseCondition, B as BaseStructuredOutputType, o as CoreAssistantMessage, C as CoreMessage, n as CoreSystemMessage, Q as CoreTool, q as CoreToolMessage, p as CoreUserMessage, a5 as DependencyCheckOutput, s as EmbedManyResult, r as EmbedResult, E as EvalRow, ab as ExtractSchemaFromStep, ae as ExtractSchemaType, ac as ExtractStepResult, G as GenerateReturn, D as LLMInnerStreamOptions, F as LLMStreamObjectOptions, x as LLMStreamOptions, z as LLMTextObjectOptions, y as LLMTextOptions, L as LanguageModel, N as MemoryConfig, K as MessageResponse, H as MessageType, O as OutputType, af as PathsToStringProps, a2 as ResolverFunctionInput, a3 as ResolverFunctionOutput, R as RetryConfig, P as SharedMemoryConfig, b as StepAction, _ as StepCondition, e as StepConfig, Z as StepDef, S as StepExecutionContext, h as StepGraph, aa as StepId, ad as StepInputType, U as StepNode, f as StepResult, d as StepVariableType, k as StorageColumn, m as StorageGetMessagesArg, J as StorageThreadType, w as StreamReturn, v as StructuredOutput, u as StructuredOutputArrayItem, t as StructuredOutputType, a4 as SubscriberFunctionOutput, V as VariableReference, a7 as WorkflowActionParams, a8 as WorkflowActions, a6 as WorkflowActors, $ as WorkflowContext, a1 as WorkflowEvent, a0 as WorkflowLogMessage, l as WorkflowRow, g as WorkflowRunState, a9 as WorkflowState } from './base-
|
|
5
|
-
import { M as MastraBase$1 } from './base-
|
|
6
|
-
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-
|
|
7
|
-
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-
|
|
8
|
-
export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-
|
|
3
|
+
import { T as ToolAction, A as Agent$1, i as AgentConfig, M as MastraStorage$1, a as MastraMemory$1, j as ToolExecutionContext, W as WorkflowOptions } from './base-BTUaTXvc.js';
|
|
4
|
+
export { Y as ActionContext, X as BaseCondition, B as BaseStructuredOutputType, o as CoreAssistantMessage, C as CoreMessage, n as CoreSystemMessage, Q as CoreTool, q as CoreToolMessage, p as CoreUserMessage, a5 as DependencyCheckOutput, s as EmbedManyResult, r as EmbedResult, E as EvalRow, ab as ExtractSchemaFromStep, ae as ExtractSchemaType, ac as ExtractStepResult, G as GenerateReturn, D as LLMInnerStreamOptions, F as LLMStreamObjectOptions, x as LLMStreamOptions, z as LLMTextObjectOptions, y as LLMTextOptions, L as LanguageModel, N as MemoryConfig, K as MessageResponse, H as MessageType, O as OutputType, af as PathsToStringProps, a2 as ResolverFunctionInput, a3 as ResolverFunctionOutput, R as RetryConfig, P as SharedMemoryConfig, b as StepAction, _ as StepCondition, e as StepConfig, Z as StepDef, S as StepExecutionContext, h as StepGraph, aa as StepId, ad as StepInputType, U as StepNode, f as StepResult, d as StepVariableType, k as StorageColumn, m as StorageGetMessagesArg, J as StorageThreadType, w as StreamReturn, v as StructuredOutput, u as StructuredOutputArrayItem, t as StructuredOutputType, a4 as SubscriberFunctionOutput, V as VariableReference, a7 as WorkflowActionParams, a8 as WorkflowActions, a6 as WorkflowActors, $ as WorkflowContext, a1 as WorkflowEvent, a0 as WorkflowLogMessage, l as WorkflowRow, g as WorkflowRunState, a9 as WorkflowState } from './base-BTUaTXvc.js';
|
|
5
|
+
import { M as MastraBase$1 } from './base-CmtknnDz.js';
|
|
6
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './base-CmtknnDz.js';
|
|
7
|
+
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-BIpeWPEO.js';
|
|
8
|
+
export { B as BaseLogMessage, b as LoggerTransport, M as MultiLogger, c as combineLoggers, n as noopLogger } from './index-BIpeWPEO.js';
|
|
9
9
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
|
|
10
10
|
import { MastraStorageLibSql as DefaultStorage, LibSQLConfig } from './storage/index.js';
|
|
11
11
|
export { evaluate } from './eval/index.js';
|
|
@@ -20,8 +20,8 @@ import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.js';
|
|
|
20
20
|
export { TagMaskOptions, deepMerge, delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, maskStreamTags } from './utils.js';
|
|
21
21
|
import { MastraVector as MastraVector$1 } from './vector/index.js';
|
|
22
22
|
export { IndexStats, QueryResult, defaultEmbedder } from './vector/index.js';
|
|
23
|
-
import { S as Step, W as Workflow$1 } from './workflow-
|
|
24
|
-
export { c as createStep } from './workflow-
|
|
23
|
+
import { S as Step, W as Workflow$1 } from './workflow-CwuYLcTS.js';
|
|
24
|
+
export { c as createStep } from './workflow-CwuYLcTS.js';
|
|
25
25
|
export { getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './workflows/index.js';
|
|
26
26
|
export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
|
|
27
27
|
export { ArrayOperator, BaseFilterTranslator, BasicOperator, ElementOperator, FieldCondition, Filter, LogicalOperator, NumericOperator, OperatorCondition, OperatorSupport, QueryOperator, RegexOperator } from './filter/index.js';
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { MastraTTS } from './chunk-
|
|
2
|
-
import { Workflow } from './chunk-
|
|
3
|
-
export { Step, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './chunk-
|
|
1
|
+
import { MastraTTS } from './chunk-WVNTGARP.js';
|
|
2
|
+
import { Workflow } from './chunk-PI5YQB75.js';
|
|
3
|
+
export { Step, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './chunk-PI5YQB75.js';
|
|
4
4
|
import { Integration, OpenAPIToolset } from './chunk-PNZK456O.js';
|
|
5
5
|
import { Tool } from './chunk-ZINPRHAN.js';
|
|
6
6
|
export { createTool } from './chunk-ZINPRHAN.js';
|
|
7
|
-
export { Mastra } from './chunk-
|
|
8
|
-
import { MastraMemory } from './chunk-
|
|
9
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-
|
|
10
|
-
import { MastraStorage, DefaultStorage } from './chunk-
|
|
11
|
-
export { DefaultStorage } from './chunk-
|
|
12
|
-
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from './chunk-
|
|
13
|
-
import { MastraVector } from './chunk-
|
|
14
|
-
export { defaultEmbedder } from './chunk-
|
|
15
|
-
import { Agent } from './chunk-
|
|
7
|
+
export { Mastra } from './chunk-DAWQ5R4C.js';
|
|
8
|
+
import { MastraMemory } from './chunk-NMB3HO5N.js';
|
|
9
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-E3DDYOSO.js';
|
|
10
|
+
import { MastraStorage, DefaultStorage } from './chunk-6CWY2XAM.js';
|
|
11
|
+
export { DefaultStorage } from './chunk-6CWY2XAM.js';
|
|
12
|
+
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from './chunk-KDUL7NPA.js';
|
|
13
|
+
import { MastraVector } from './chunk-VIJVUFTB.js';
|
|
14
|
+
export { defaultEmbedder } from './chunk-VIJVUFTB.js';
|
|
15
|
+
import { Agent } from './chunk-4DNSLET5.js';
|
|
16
16
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-4ZRHVG25.js';
|
|
17
17
|
export { deepMerge, delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, maskStreamTags } from './chunk-55GTEVHJ.js';
|
|
18
|
-
import { MastraDeployer } from './chunk-
|
|
19
|
-
import { MastraBase } from './chunk-
|
|
20
|
-
import { createLogger } from './chunk-
|
|
21
|
-
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-
|
|
18
|
+
import { MastraDeployer } from './chunk-COG5YSSN.js';
|
|
19
|
+
import { MastraBase } from './chunk-SYZAQCKZ.js';
|
|
20
|
+
import { createLogger } from './chunk-XS2VY7YW.js';
|
|
21
|
+
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-XS2VY7YW.js';
|
|
22
22
|
export { Metric, evaluate } from './chunk-NUDAZEOG.js';
|
|
23
23
|
export { AvailableHooks, executeHook, registerHook } from './chunk-BB4KXGBU.js';
|
|
24
24
|
export { BaseFilterTranslator } from './chunk-SIFBBGY6.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { W as Workflow } from '../workflow-
|
|
2
|
-
import '../base-
|
|
3
|
-
import { T as ToolAction } from '../base-
|
|
1
|
+
import { W as Workflow } from '../workflow-CwuYLcTS.js';
|
|
2
|
+
import '../base-CmtknnDz.js';
|
|
3
|
+
import { T as ToolAction } from '../base-BTUaTXvc.js';
|
|
4
4
|
import 'xstate';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-BIpeWPEO.js';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'stream';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
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 { B as BaseStructuredOutputType, o as CoreAssistantMessage, C as CoreMessage, n as CoreSystemMessage, q as CoreToolMessage, p as CoreUserMessage, s as EmbedManyResult, r as EmbedResult, G as GenerateReturn, D as LLMInnerStreamOptions, F as LLMStreamObjectOptions, x as LLMStreamOptions, z as LLMTextObjectOptions, y as LLMTextOptions, L as LanguageModel, O as OutputType, w as StreamReturn, v as StructuredOutput, u as StructuredOutputArrayItem, t as StructuredOutputType } from '../base-
|
|
5
|
-
import '../index-
|
|
6
|
-
import '../base-
|
|
4
|
+
export { B as BaseStructuredOutputType, o as CoreAssistantMessage, C as CoreMessage, n as CoreSystemMessage, q as CoreToolMessage, p as CoreUserMessage, s as EmbedManyResult, r as EmbedResult, G as GenerateReturn, D as LLMInnerStreamOptions, F as LLMStreamObjectOptions, x as LLMStreamOptions, z as LLMTextObjectOptions, y as LLMTextOptions, L as LanguageModel, O as OutputType, w as StreamReturn, v as StructuredOutput, u as StructuredOutputArrayItem, t as StructuredOutputType } from '../base-BTUaTXvc.js';
|
|
5
|
+
import '../index-BIpeWPEO.js';
|
|
6
|
+
import '../base-CmtknnDz.js';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
9
|
import '../types-m9RryK9a.js';
|
package/dist/logger/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'pino';
|
|
2
2
|
import 'stream';
|
|
3
|
-
export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-
|
|
3
|
+
export { B as BaseLogMessage, a as LogLevel, L as Logger, b as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, c as combineLoggers, e as createLogger, n as noopLogger } from '../index-BIpeWPEO.js';
|
package/dist/logger/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, createLogger, noopLogger } from '../chunk-
|
|
1
|
+
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, createLogger, noopLogger } from '../chunk-XS2VY7YW.js';
|
package/dist/mastra/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as Agent, M as
|
|
2
|
-
import { L as Logger, B as BaseLogMessage } from '../index-
|
|
3
|
-
import { W as Workflow } from '../workflow-
|
|
1
|
+
import { A as Agent, M as MastraStorage, a as MastraMemory } from '../base-BTUaTXvc.js';
|
|
2
|
+
import { L as Logger, B as BaseLogMessage } from '../index-BIpeWPEO.js';
|
|
3
|
+
import { W as Workflow } from '../workflow-CwuYLcTS.js';
|
|
4
4
|
import { MastraVector } from '../vector/index.js';
|
|
5
|
-
import { O as OtelConfig, T as Telemetry } from '../base-
|
|
5
|
+
import { O as OtelConfig, T as Telemetry } from '../base-CmtknnDz.js';
|
|
6
6
|
import { MastraTTS } from '../tts/index.js';
|
|
7
7
|
import { MastraDeployer } from '../deployer/index.js';
|
|
8
8
|
import 'ai';
|
|
@@ -18,7 +18,6 @@ import '@opentelemetry/sdk-trace-base';
|
|
|
18
18
|
import '../bundler/index.js';
|
|
19
19
|
|
|
20
20
|
interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger> {
|
|
21
|
-
memory?: MastraMemory;
|
|
22
21
|
agents?: TAgents;
|
|
23
22
|
storage?: MastraStorage;
|
|
24
23
|
vectors?: TVectors;
|
|
@@ -27,6 +26,7 @@ interface Config<TAgents extends Record<string, Agent<any>> = Record<string, Age
|
|
|
27
26
|
tts?: TTTS;
|
|
28
27
|
telemetry?: OtelConfig;
|
|
29
28
|
deployer?: MastraDeployer;
|
|
29
|
+
memory?: MastraMemory;
|
|
30
30
|
}
|
|
31
31
|
declare class Mastra<TAgents extends Record<string, Agent<any>> = Record<string, Agent<any>>, TWorkflows extends Record<string, Workflow> = Record<string, Workflow>, TVectors extends Record<string, MastraVector> = Record<string, MastraVector>, TTTS extends Record<string, MastraTTS> = Record<string, MastraTTS>, TLogger extends Logger = Logger> {
|
|
32
32
|
private vectors?;
|
package/dist/mastra/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-DAWQ5R4C.js';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { a as MastraMemory, N as MemoryConfig, K as MessageResponse, H as MessageType, P as SharedMemoryConfig, J as StorageThreadType } from '../base-BTUaTXvc.js';
|
|
2
2
|
export { Message as AiMessageType } from 'ai';
|
|
3
|
-
import '../base-
|
|
3
|
+
import '../base-CmtknnDz.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../index-
|
|
5
|
+
import '../index-BIpeWPEO.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/memory/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraMemory } from '../chunk-
|
|
1
|
+
export { MastraMemory } from '../chunk-NMB3HO5N.js';
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-E3DDYOSO.js';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ai as TABLE_EVALS, aj as TABLE_MESSAGES, ak as TABLE_THREADS, al as TABLE_TRACES, ah as TABLE_WORKFLOW_SNAPSHOT, l as WorkflowRow } from '../base-
|
|
3
|
-
import '../base-
|
|
1
|
+
import { M as MastraStorage, ag as TABLE_NAMES, k as StorageColumn, J as StorageThreadType, H as MessageType, m as StorageGetMessagesArg, E as EvalRow } from '../base-BTUaTXvc.js';
|
|
2
|
+
export { ai as TABLE_EVALS, aj as TABLE_MESSAGES, ak as TABLE_THREADS, al as TABLE_TRACES, ah as TABLE_WORKFLOW_SNAPSHOT, l as WorkflowRow } from '../base-BTUaTXvc.js';
|
|
3
|
+
import '../base-CmtknnDz.js';
|
|
4
4
|
export { LibSQLVector as DefaultVectorDB, LibSQLVector } from '../vector/libsql/index.js';
|
|
5
5
|
import 'ai';
|
|
6
6
|
import '../types-m9RryK9a.js';
|
|
@@ -9,7 +9,7 @@ import 'zod';
|
|
|
9
9
|
import 'json-schema';
|
|
10
10
|
import '../vector/index.js';
|
|
11
11
|
import '@opentelemetry/api';
|
|
12
|
-
import '../index-
|
|
12
|
+
import '../index-BIpeWPEO.js';
|
|
13
13
|
import 'pino';
|
|
14
14
|
import 'stream';
|
|
15
15
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DefaultStorage, MastraStorage, DefaultStorage as MastraStorageLibSql } from '../chunk-
|
|
2
|
-
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../chunk-
|
|
1
|
+
export { DefaultStorage, MastraStorage, DefaultStorage as MastraStorageLibSql } from '../chunk-6CWY2XAM.js';
|
|
2
|
+
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../chunk-KDUL7NPA.js';
|
|
3
3
|
export { TABLE_EVALS, TABLE_MESSAGES, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-RG66XEJT.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from '../base-
|
|
1
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from '../base-CmtknnDz.js';
|
|
2
2
|
import { SpanKind } from '@opentelemetry/api';
|
|
3
3
|
import { ExportResult } from '@opentelemetry/core';
|
|
4
4
|
import { SpanExporter, ReadableSpan } from '@opentelemetry/sdk-trace-base';
|
|
5
|
-
import { L as Logger } from '../index-
|
|
6
|
-
import {
|
|
5
|
+
import { L as Logger } from '../index-BIpeWPEO.js';
|
|
6
|
+
import { M as MastraStorage } from '../base-BTUaTXvc.js';
|
|
7
7
|
import 'pino';
|
|
8
8
|
import 'stream';
|
|
9
9
|
import 'ai';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { j as ToolExecutionContext, T as ToolAction, c as MastraPrimitives } from '../base-
|
|
3
|
-
export { Q as CoreTool } from '../base-
|
|
2
|
+
import { j as ToolExecutionContext, T as ToolAction, c as MastraPrimitives } from '../base-BTUaTXvc.js';
|
|
3
|
+
export { Q as CoreTool } from '../base-BTUaTXvc.js';
|
|
4
4
|
import 'ai';
|
|
5
|
-
import '../base-
|
|
5
|
+
import '../base-CmtknnDz.js';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-BIpeWPEO.js';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'stream';
|
|
10
10
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/tts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-
|
|
1
|
+
import { M as MastraBase } from '../base-CmtknnDz.js';
|
|
2
2
|
import '@opentelemetry/api';
|
|
3
|
-
import '../index-
|
|
3
|
+
import '../index-BIpeWPEO.js';
|
|
4
4
|
import 'pino';
|
|
5
5
|
import 'stream';
|
|
6
6
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/tts/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraTTS } from '../chunk-
|
|
1
|
+
export { MastraTTS } from '../chunk-WVNTGARP.js';
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as MastraBase } from '../base-
|
|
1
|
+
import { M as MastraBase } from '../base-CmtknnDz.js';
|
|
2
2
|
import * as ai from 'ai';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../index-
|
|
4
|
+
import '../index-BIpeWPEO.js';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/vector/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { MastraVector, defaultEmbedder } from '../chunk-
|
|
1
|
+
export { MastraVector, defaultEmbedder } from '../chunk-VIJVUFTB.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Filter } from '../../filter/index.js';
|
|
2
2
|
import { MastraVector, QueryResult, IndexStats } from '../index.js';
|
|
3
|
-
import '../../base-
|
|
3
|
+
import '../../base-CmtknnDz.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
|
-
import '../../index-
|
|
5
|
+
import '../../index-BIpeWPEO.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'stream';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../../chunk-
|
|
1
|
+
export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../../chunk-KDUL7NPA.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { M as MastraBase } from '../base-CmtknnDz.js';
|
|
2
|
+
import '@opentelemetry/api';
|
|
3
|
+
import '../index-BIpeWPEO.js';
|
|
4
|
+
import 'pino';
|
|
5
|
+
import 'stream';
|
|
6
|
+
import '@opentelemetry/sdk-trace-base';
|
|
7
|
+
|
|
8
|
+
interface BuiltInModelConfig {
|
|
9
|
+
name: string;
|
|
10
|
+
apiKey?: string;
|
|
11
|
+
}
|
|
12
|
+
interface VoiceConfig {
|
|
13
|
+
listeningModel?: BuiltInModelConfig;
|
|
14
|
+
speechModel?: BuiltInModelConfig;
|
|
15
|
+
speaker?: string;
|
|
16
|
+
}
|
|
17
|
+
declare abstract class MastraVoice extends MastraBase {
|
|
18
|
+
protected listeningModel?: BuiltInModelConfig;
|
|
19
|
+
protected speechModel?: BuiltInModelConfig;
|
|
20
|
+
protected speaker?: string;
|
|
21
|
+
constructor({ listeningModel, speechModel, speaker }: VoiceConfig);
|
|
22
|
+
traced<T extends Function>(method: T, methodName: string): T;
|
|
23
|
+
/**
|
|
24
|
+
* Convert text to speech
|
|
25
|
+
* @param input Text or text stream to convert to speech
|
|
26
|
+
* @param options Speech options including speaker and provider-specific options
|
|
27
|
+
* @returns Audio stream
|
|
28
|
+
*/
|
|
29
|
+
abstract speak(input: string | NodeJS.ReadableStream, options?: {
|
|
30
|
+
speaker?: string;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}): Promise<NodeJS.ReadableStream>;
|
|
33
|
+
/**
|
|
34
|
+
* Convert speech to text
|
|
35
|
+
* @param audioStream Audio stream to transcribe
|
|
36
|
+
* @param options Provider-specific transcription options
|
|
37
|
+
* @returns Text or text stream
|
|
38
|
+
*/
|
|
39
|
+
abstract listen(audioStream: NodeJS.ReadableStream, options?: {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}): Promise<string | NodeJS.ReadableStream>;
|
|
42
|
+
/**
|
|
43
|
+
* Get available speakers/voices
|
|
44
|
+
* @returns Array of available voice IDs and their metadata
|
|
45
|
+
*/
|
|
46
|
+
abstract getSpeakers(): Promise<Array<{
|
|
47
|
+
voiceId: string;
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { MastraVoice, type VoiceConfig };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { InstrumentClass } from '../chunk-4ZRHVG25.js';
|
|
2
|
+
import { MastraBase } from '../chunk-SYZAQCKZ.js';
|
|
3
|
+
import { __decoratorStart, __decorateElement, __runInitializers } from '../chunk-C6A6W6XS.js';
|
|
4
|
+
|
|
5
|
+
// src/voice/index.ts
|
|
6
|
+
var _MastraVoice_decorators, _init, _a;
|
|
7
|
+
_MastraVoice_decorators = [InstrumentClass({
|
|
8
|
+
prefix: "voice",
|
|
9
|
+
excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"]
|
|
10
|
+
})];
|
|
11
|
+
var MastraVoice = class extends (_a = MastraBase) {
|
|
12
|
+
listeningModel;
|
|
13
|
+
speechModel;
|
|
14
|
+
speaker;
|
|
15
|
+
constructor({
|
|
16
|
+
listeningModel,
|
|
17
|
+
speechModel,
|
|
18
|
+
speaker
|
|
19
|
+
}) {
|
|
20
|
+
super({
|
|
21
|
+
component: "VOICE"
|
|
22
|
+
});
|
|
23
|
+
this.listeningModel = listeningModel;
|
|
24
|
+
this.speechModel = speechModel;
|
|
25
|
+
this.speaker = speaker;
|
|
26
|
+
}
|
|
27
|
+
traced(method, methodName) {
|
|
28
|
+
return this.telemetry?.traceMethod(method, {
|
|
29
|
+
spanName: `voice.${methodName}`,
|
|
30
|
+
attributes: {
|
|
31
|
+
"voice.type": this.speechModel?.name || this.listeningModel?.name || "unknown"
|
|
32
|
+
}
|
|
33
|
+
}) ?? method;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
MastraVoice = /*@__PURE__*/(_ => {
|
|
37
|
+
_init = __decoratorStart(_a);
|
|
38
|
+
MastraVoice = __decorateElement(_init, 0, "MastraVoice", _MastraVoice_decorators, MastraVoice);
|
|
39
|
+
__runInitializers(_init, 1, MastraVoice);
|
|
40
|
+
return MastraVoice;
|
|
41
|
+
})();
|
|
42
|
+
|
|
43
|
+
export { MastraVoice };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Snapshot } from 'xstate';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { S as StepExecutionContext, b as StepAction, R as RetryConfig, c as MastraPrimitives, W as WorkflowOptions, I as IAction, d as StepVariableType, e as StepConfig, f as StepResult, g as WorkflowRunState, h as StepGraph } from './base-
|
|
4
|
-
import { M as MastraBase } from './base-
|
|
3
|
+
import { S as StepExecutionContext, b as StepAction, R as RetryConfig, c as MastraPrimitives, W as WorkflowOptions, I as IAction, d as StepVariableType, e as StepConfig, f as StepResult, g as WorkflowRunState, h as StepGraph } from './base-BTUaTXvc.js';
|
|
4
|
+
import { M as MastraBase } from './base-CmtknnDz.js';
|
|
5
5
|
|
|
6
6
|
declare class Step<TStepId extends string = any, TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends StepExecutionContext<TSchemaIn> = StepExecutionContext<TSchemaIn>> implements StepAction<TStepId, TSchemaIn, TSchemaOut, TContext> {
|
|
7
7
|
id: TStepId;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { S as Step, W as Workflow, c as createStep } from '../workflow-
|
|
2
|
-
import { V as VariableReference, f as StepResult } from '../base-
|
|
3
|
-
export { Y as ActionContext, X as BaseCondition, a5 as DependencyCheckOutput, ab as ExtractSchemaFromStep, ae as ExtractSchemaType, ac as ExtractStepResult, af as PathsToStringProps, a2 as ResolverFunctionInput, a3 as ResolverFunctionOutput, R as RetryConfig, b as StepAction, _ as StepCondition, e as StepConfig, Z as StepDef, S as StepExecutionContext, h as StepGraph, aa as StepId, ad as StepInputType, U as StepNode, d as StepVariableType, a4 as SubscriberFunctionOutput, a7 as WorkflowActionParams, a8 as WorkflowActions, a6 as WorkflowActors, $ as WorkflowContext, a1 as WorkflowEvent, a0 as WorkflowLogMessage, W as WorkflowOptions, g as WorkflowRunState, a9 as WorkflowState } from '../base-
|
|
1
|
+
export { S as Step, W as Workflow, c as createStep } from '../workflow-CwuYLcTS.js';
|
|
2
|
+
import { V as VariableReference, f as StepResult } from '../base-BTUaTXvc.js';
|
|
3
|
+
export { Y as ActionContext, X as BaseCondition, a5 as DependencyCheckOutput, ab as ExtractSchemaFromStep, ae as ExtractSchemaType, ac as ExtractStepResult, af as PathsToStringProps, a2 as ResolverFunctionInput, a3 as ResolverFunctionOutput, R as RetryConfig, b as StepAction, _ as StepCondition, e as StepConfig, Z as StepDef, S as StepExecutionContext, h as StepGraph, aa as StepId, ad as StepInputType, U as StepNode, d as StepVariableType, a4 as SubscriberFunctionOutput, a7 as WorkflowActionParams, a8 as WorkflowActions, a6 as WorkflowActors, $ as WorkflowContext, a1 as WorkflowEvent, a0 as WorkflowLogMessage, W as WorkflowOptions, g as WorkflowRunState, a9 as WorkflowState } from '../base-BTUaTXvc.js';
|
|
4
4
|
import 'xstate';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import '../base-
|
|
6
|
+
import '../base-CmtknnDz.js';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
|
-
import '../index-
|
|
8
|
+
import '../index-BIpeWPEO.js';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import 'stream';
|
|
11
11
|
import '@opentelemetry/sdk-trace-base';
|
package/dist/workflows/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Step, Workflow, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from '../chunk-
|
|
1
|
+
export { Step, Workflow, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from '../chunk-PI5YQB75.js';
|