@mastra/core 0.3.0 → 0.4.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +1 -1
- package/dist/{base-BkPogSXS.d.ts → base-BTUaTXvc.d.ts} +2 -2
- 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-5HXXWLRX.js → chunk-6CWY2XAM.js} +1 -1
- package/dist/{chunk-K36NSQWH.js → chunk-COG5YSSN.js} +1 -1
- package/dist/{chunk-JCI6BYYU.js → chunk-DAWQ5R4C.js} +2 -2
- package/dist/{chunk-22LC46YN.js → chunk-DIMNBNEX.js} +1 -1
- package/dist/{chunk-V4WSAQOP.js → chunk-DRJVJ64U.js} +1 -1
- package/dist/{chunk-AN562ICT.js → chunk-KDUL7NPA.js} +1 -1
- package/dist/{chunk-V5UMPUKC.js → chunk-KMVLZUIO.js} +5 -5
- package/dist/{chunk-CUIUUULJ.js → chunk-P3SL77QB.js} +3 -3
- 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-55GTEVHJ.js → chunk-WIBGG4X6.js} +31 -2
- 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 +17 -17
- 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 +4 -4
- 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/utils.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-Bw6ymh0r.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-P3SL77QB.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
|
/**
|
|
@@ -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,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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DefaultStorage } from './chunk-
|
|
2
|
-
import { DefaultVectorDB } from './chunk-
|
|
3
|
-
import { defaultEmbedder } from './chunk-
|
|
4
|
-
import { deepMerge } from './chunk-
|
|
5
|
-
import { MastraBase } from './chunk-
|
|
1
|
+
import { DefaultStorage } from './chunk-6CWY2XAM.js';
|
|
2
|
+
import { DefaultVectorDB } from './chunk-KDUL7NPA.js';
|
|
3
|
+
import { defaultEmbedder } from './chunk-VIJVUFTB.js';
|
|
4
|
+
import { deepMerge } from './chunk-WIBGG4X6.js';
|
|
5
|
+
import { MastraBase } from './chunk-SYZAQCKZ.js';
|
|
6
6
|
|
|
7
7
|
// src/memory/memory.ts
|
|
8
8
|
var MastraMemory = class extends MastraBase {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InstrumentClass } from './chunk-4ZRHVG25.js';
|
|
2
|
-
import { delay } from './chunk-
|
|
3
|
-
import { MastraBase } from './chunk-
|
|
4
|
-
import { RegisteredLogger, LogLevel } from './chunk-
|
|
2
|
+
import { delay } from './chunk-WIBGG4X6.js';
|
|
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';
|
|
@@ -104,15 +104,35 @@ async function* maskStreamTags(stream, tag, options = {}) {
|
|
|
104
104
|
let fullContent = "";
|
|
105
105
|
let isMasking = false;
|
|
106
106
|
let isBuffering = false;
|
|
107
|
-
const
|
|
107
|
+
const trimOutsideDelimiter = (text, delimiter, trim) => {
|
|
108
|
+
if (!text.includes(delimiter)) {
|
|
109
|
+
return text;
|
|
110
|
+
}
|
|
111
|
+
const parts = text.split(delimiter);
|
|
112
|
+
if (trim === `before-start`) {
|
|
113
|
+
return `${delimiter}${parts[1]}`;
|
|
114
|
+
}
|
|
115
|
+
return `${parts[0]}${delimiter}`;
|
|
116
|
+
};
|
|
117
|
+
const startsWith = (text, pattern) => {
|
|
118
|
+
if (pattern.includes(openTag.substring(0, 3))) {
|
|
119
|
+
pattern = trimOutsideDelimiter(pattern, `<`, `before-start`);
|
|
120
|
+
}
|
|
121
|
+
return text.trim().startsWith(pattern.trim());
|
|
122
|
+
};
|
|
108
123
|
for await (const chunk of stream) {
|
|
109
124
|
fullContent += chunk;
|
|
110
125
|
if (isBuffering) buffer += chunk;
|
|
111
126
|
const chunkHasTag = startsWith(chunk, openTag);
|
|
112
127
|
const bufferHasTag = !chunkHasTag && isBuffering && startsWith(openTag, buffer);
|
|
128
|
+
let toYieldBeforeMaskedStartTag = ``;
|
|
113
129
|
if (!isMasking && (chunkHasTag || bufferHasTag)) {
|
|
114
130
|
isMasking = true;
|
|
115
131
|
isBuffering = false;
|
|
132
|
+
const taggedTextToMask = trimOutsideDelimiter(buffer, `<`, `before-start`);
|
|
133
|
+
if (taggedTextToMask !== buffer.trim()) {
|
|
134
|
+
toYieldBeforeMaskedStartTag = buffer.replace(taggedTextToMask, ``);
|
|
135
|
+
}
|
|
116
136
|
buffer = "";
|
|
117
137
|
onStart?.();
|
|
118
138
|
}
|
|
@@ -127,14 +147,23 @@ async function* maskStreamTags(stream, tag, options = {}) {
|
|
|
127
147
|
isBuffering = false;
|
|
128
148
|
continue;
|
|
129
149
|
}
|
|
130
|
-
if (isMasking && fullContent.
|
|
150
|
+
if (isMasking && fullContent.includes(closeTag)) {
|
|
131
151
|
onMask?.(chunk);
|
|
132
152
|
onEnd?.();
|
|
133
153
|
isMasking = false;
|
|
154
|
+
const lastFullContent = fullContent;
|
|
155
|
+
fullContent = ``;
|
|
156
|
+
const textUntilEndTag = trimOutsideDelimiter(lastFullContent, closeTag, "after-end");
|
|
157
|
+
if (textUntilEndTag !== lastFullContent) {
|
|
158
|
+
yield lastFullContent.replace(textUntilEndTag, ``);
|
|
159
|
+
}
|
|
134
160
|
continue;
|
|
135
161
|
}
|
|
136
162
|
if (isMasking) {
|
|
137
163
|
onMask?.(chunk);
|
|
164
|
+
if (toYieldBeforeMaskedStartTag) {
|
|
165
|
+
yield toYieldBeforeMaskedStartTag;
|
|
166
|
+
}
|
|
138
167
|
continue;
|
|
139
168
|
}
|
|
140
169
|
yield chunk;
|
|
@@ -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, M as MastraStorage$1, a as MastraMemory$1, j as ToolExecutionContext, W as WorkflowOptions } from './base-
|
|
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-KMVLZUIO.js';
|
|
9
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-DRJVJ64U.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-P3SL77QB.js';
|
|
16
16
|
export { InstrumentClass, OTLPTraceExporter as OTLPStorageExporter, Telemetry, hasActiveTelemetry, withSpan } from './chunk-4ZRHVG25.js';
|
|
17
|
-
export { deepMerge, delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, maskStreamTags } from './chunk-
|
|
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-
|
|
17
|
+
export { deepMerge, delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, maskStreamTags } from './chunk-WIBGG4X6.js';
|
|
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 MastraStorage, a as MastraMemory } from '../base-
|
|
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';
|
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 { a as MastraMemory, N as MemoryConfig, K as MessageResponse, H as MessageType, P as SharedMemoryConfig, J as StorageThreadType } from '../base-
|
|
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-KMVLZUIO.js';
|
package/dist/relevance/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-DRJVJ64U.js';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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 { M as MastraStorage } from '../base-
|
|
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/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { deepMerge, delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, maskStreamTags } from './chunk-
|
|
1
|
+
export { deepMerge, delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel, maskStreamTags } from './chunk-WIBGG4X6.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';
|