@mastra/core 0.2.0-alpha.83 → 0.2.0-alpha.84
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/action/index.d.ts +4 -4
- package/dist/agent/index.d.ts +5 -5
- package/dist/agent/index.js +6 -6
- package/dist/base.d.ts +3 -3
- package/dist/base.js +2 -2
- package/dist/bundler/index.d.ts +21 -0
- package/dist/bundler/index.js +4 -0
- package/dist/{chunk-AO76Z4K3.js → chunk-3IV6WDJY.js} +1 -1
- package/dist/{chunk-BWEOV64I.js → chunk-3THCTISX.js} +1 -1
- package/dist/{chunk-LYNJHHQX.js → chunk-42THOFKJ.js} +1 -1
- package/dist/{chunk-K7KUCZT2.js → chunk-6WJREZ5F.js} +2 -2
- package/dist/chunk-CQYUMNLZ.js +28 -0
- package/dist/{chunk-FCRDS4YS.js → chunk-EH2PG7Q6.js} +10 -4
- package/dist/{chunk-27EL4TRB.js → chunk-JCRGAEY6.js} +1 -1
- package/dist/{chunk-BQMCLBCR.js → chunk-OOZGW5CY.js} +1 -1
- package/dist/{chunk-OJJ6QGX4.js → chunk-PRYZIZXD.js} +6 -6
- package/dist/{chunk-FROFMREE.js → chunk-RZYBOMIG.js} +7 -0
- package/dist/{chunk-RPBNMIV7.js → chunk-SAXFXAKK.js} +43 -28
- package/dist/{chunk-Q5JF3TKZ.js → chunk-SLWM3SEH.js} +1 -1
- package/dist/{chunk-NLQVQJOD.js → chunk-TJK6TGSR.js} +1 -0
- package/dist/{chunk-S45F6AHA.js → chunk-U25DBVJZ.js} +1 -1
- package/dist/chunk-XD5IQZRB.js +16 -0
- package/dist/deployer/index.d.ts +8 -25
- package/dist/deployer/index.js +4 -3
- package/dist/engine/index.d.ts +2 -2
- package/dist/engine/index.js +3 -3
- package/dist/eval/index.d.ts +4 -4
- package/dist/filter/index.d.ts +1 -0
- package/dist/filter/index.js +1 -1
- package/dist/{index-CA9EWqaj.d.ts → index-62DyKJRU.d.ts} +275 -270
- package/dist/{index-B9i6dmc0.d.ts → index-B0-NXUYv.d.ts} +1 -0
- package/dist/index.d.ts +13 -11
- package/dist/index.js +21 -20
- package/dist/integration/index.d.ts +9 -9
- package/dist/llm/index.d.ts +5 -5
- package/dist/llm/index.js +3 -3
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/mastra/index.d.ts +6 -5
- package/dist/mastra/index.js +5 -5
- package/dist/memory/index.d.ts +3 -3
- package/dist/memory/index.js +3 -3
- package/dist/relevance/index.d.ts +4 -4
- package/dist/relevance/index.js +7 -7
- package/dist/storage/index.d.ts +5 -5
- package/dist/storage/index.js +3 -3
- package/dist/telemetry/index.d.ts +5 -103
- package/dist/telemetry/index.js +1 -1
- package/dist/telemetry-oCUM52DG.d.ts +104 -0
- package/dist/tools/index.d.ts +5 -5
- package/dist/tts/index.d.ts +2 -2
- package/dist/tts/index.js +4 -4
- package/dist/vector/index.d.ts +2 -2
- package/dist/vector/index.js +3 -3
- package/dist/{workflow-Dam5GtdA.d.ts → workflow-DGktrYAL.d.ts} +1 -1
- package/dist/workflows/index.d.ts +6 -6
- package/dist/workflows/index.js +3 -3
- package/package.json +1 -2
- package/dist/chunk-5R6DBXQM.js +0 -57
- /package/dist/{chunk-OZZS5Y3C.js → chunk-SDKEPBBH.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { M as Metric } from './metric-D2V4CR8D.js';
|
|
2
2
|
export { a as MetricResult } from './metric-D2V4CR8D.js';
|
|
3
|
-
import { T as ToolAction, A as Agent$1, j as AgentConfig, M as MastraStorage$1, a as MastraMemory$1, k as ToolExecutionContext, W as WorkflowOptions } from './index-
|
|
4
|
-
export { ax as ActionContext, an as AiMessageType, a7 as AmazonConfig, a6 as AmazonModel, y as AnthropicConfig, x as AnthropicModel, a9 as AnthropicVertexConfig, a8 as AnthropicVertexModel, a3 as AzureConfig, a2 as AzureModel, aw as BaseCondition, ab as BaseStructuredOutputType, Q as BaseTenConfig, N as BasetenModel, a1 as CohereConfig, a0 as CohereModel, q as CoreAssistantMessage, C as CoreMessage, p as CoreSystemMessage, at as CoreTool, s as CoreToolMessage, r as CoreUserMessage, $ as CustomModelConfig, a5 as DeepseekConfig, a4 as DeepseekModel, aG as DependencyCheckOutput, t as EmbedManyResult, E as EmbedResult, aM as ExtractSchemaFromStep, aP as ExtractSchemaType, aN as ExtractStepResult, V as FireworksConfig, U as FireworksModel, af as GenerateReturn, v as GoogleConfig, w as GoogleGenerativeAISettings, G as GoogleModel, B as GroqConfig, z as GroqModel, al as LLMInnerStreamOptions, aa as LLMProvider, am as LLMStreamObjectOptions, ai as LLMStreamOptions, ak as LLMTextObjectOptions, aj as LLMTextOptions, K as LMStudioConfig, J as LMStudioModel, ar as MemoryConfig, aq as MessageResponse, ao as MessageType, Y as MistralConfig, X as MistralModel, b as ModelConfig, u as OpenAIConfig, O as OpenAIModel, ah as OutputType, aQ as PathsToStringProps, D as PerplexityConfig, P as PerplexityModel, aD as ResolverFunctionInput, aE as ResolverFunctionOutput, R as RetryConfig, as as SharedMemoryConfig, c as StepAction, az as StepCondition, f as StepConfig, ay as StepDef, S as StepExecutionContext, i as StepGraph, aL as StepId, aO as StepInputType, au as StepNode, g as StepResult, e as StepVariableType, m as StorageColumn, o as StorageGetMessagesArg, ap as StorageThreadType, ag as StreamReturn, ae as StructuredOutput, ad as StructuredOutputArrayItem, ac as StructuredOutputType, aF as SubscriberFunctionOutput, l as TABLE_NAMES, H as TogetherAiConfig, F as TogetherAiModel, av as VariableReference, aI as WorkflowActionParams, aJ as WorkflowActions, aH as WorkflowActors, aA as WorkflowContext, aC as WorkflowEvent, aB as WorkflowLogMessage, n as WorkflowRow, h as WorkflowRunState, aK as WorkflowState, _ as XGrokConfig, Z as XGrokModel } from './index-
|
|
5
|
-
export {
|
|
3
|
+
import { T as ToolAction, A as Agent$1, j as AgentConfig, M as MastraStorage$1, a as MastraMemory$1, k as ToolExecutionContext, W as WorkflowOptions } from './index-62DyKJRU.js';
|
|
4
|
+
export { ax as ActionContext, an as AiMessageType, a7 as AmazonConfig, a6 as AmazonModel, y as AnthropicConfig, x as AnthropicModel, a9 as AnthropicVertexConfig, a8 as AnthropicVertexModel, a3 as AzureConfig, a2 as AzureModel, aw as BaseCondition, ab as BaseStructuredOutputType, Q as BaseTenConfig, N as BasetenModel, a1 as CohereConfig, a0 as CohereModel, q as CoreAssistantMessage, C as CoreMessage, p as CoreSystemMessage, at as CoreTool, s as CoreToolMessage, r as CoreUserMessage, $ as CustomModelConfig, a5 as DeepseekConfig, a4 as DeepseekModel, aG as DependencyCheckOutput, t as EmbedManyResult, E as EmbedResult, aM as ExtractSchemaFromStep, aP as ExtractSchemaType, aN as ExtractStepResult, V as FireworksConfig, U as FireworksModel, af as GenerateReturn, v as GoogleConfig, w as GoogleGenerativeAISettings, G as GoogleModel, B as GroqConfig, z as GroqModel, al as LLMInnerStreamOptions, aa as LLMProvider, am as LLMStreamObjectOptions, ai as LLMStreamOptions, ak as LLMTextObjectOptions, aj as LLMTextOptions, K as LMStudioConfig, J as LMStudioModel, ar as MemoryConfig, aq as MessageResponse, ao as MessageType, Y as MistralConfig, X as MistralModel, b as ModelConfig, u as OpenAIConfig, O as OpenAIModel, ah as OutputType, aQ as PathsToStringProps, D as PerplexityConfig, P as PerplexityModel, aD as ResolverFunctionInput, aE as ResolverFunctionOutput, R as RetryConfig, as as SharedMemoryConfig, c as StepAction, az as StepCondition, f as StepConfig, ay as StepDef, S as StepExecutionContext, i as StepGraph, aL as StepId, aO as StepInputType, au as StepNode, g as StepResult, e as StepVariableType, m as StorageColumn, o as StorageGetMessagesArg, ap as StorageThreadType, ag as StreamReturn, ae as StructuredOutput, ad as StructuredOutputArrayItem, ac as StructuredOutputType, aF as SubscriberFunctionOutput, l as TABLE_NAMES, H as TogetherAiConfig, F as TogetherAiModel, av as VariableReference, aI as WorkflowActionParams, aJ as WorkflowActions, aH as WorkflowActors, aA as WorkflowContext, aC as WorkflowEvent, aB as WorkflowLogMessage, n as WorkflowRow, h as WorkflowRunState, aK as WorkflowState, _ as XGrokConfig, Z as XGrokModel } from './index-62DyKJRU.js';
|
|
5
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from './telemetry-oCUM52DG.js';
|
|
6
6
|
import { MastraBase as MastraBase$1 } from './base.js';
|
|
7
|
-
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-
|
|
8
|
-
export { B as BaseLogMessage, c as LoggerTransport, M as MultiLogger, d as combineLoggers, n as noopLogger } from './index-
|
|
7
|
+
import { R as RegisteredLogger, a as LogLevel, T as TransportMap, L as Logger } from './index-B0-NXUYv.js';
|
|
8
|
+
export { B as BaseLogMessage, c as LoggerTransport, M as MultiLogger, d as combineLoggers, n as noopLogger } from './index-B0-NXUYv.js';
|
|
9
9
|
import { MastraDeployer as MastraDeployer$1 } from './deployer/index.js';
|
|
10
10
|
import * as ai from 'ai';
|
|
11
11
|
import { E as EmbeddingOptions } from './types-M16hSruO.js';
|
|
@@ -17,6 +17,7 @@ export { evaluate } from './eval/index.js';
|
|
|
17
17
|
import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.js';
|
|
18
18
|
export { Mastra } from './mastra/index.js';
|
|
19
19
|
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, RelevanceScoreProvider, createSimilarityPrompt } from './relevance/index.js';
|
|
20
|
+
export { InstrumentClass, hasActiveTelemetry, withSpan } from './telemetry/index.js';
|
|
20
21
|
import { z } from 'zod';
|
|
21
22
|
import { Tool as Tool$1 } from './tools/index.js';
|
|
22
23
|
export { createTool } from './tools/index.js';
|
|
@@ -24,8 +25,8 @@ import { MastraTTS as MastraTTS$1, TTSConfig } from './tts/index.js';
|
|
|
24
25
|
export { delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel } from './utils.js';
|
|
25
26
|
import { MastraVector as MastraVector$1 } from './vector/index.js';
|
|
26
27
|
export { IndexStats, QueryResult } from './vector/index.js';
|
|
27
|
-
import { S as Step, W as Workflow$1 } from './workflow-
|
|
28
|
-
export { c as createStep } from './workflow-
|
|
28
|
+
import { S as Step, W as Workflow$1 } from './workflow-DGktrYAL.js';
|
|
29
|
+
export { c as createStep } from './workflow-DGktrYAL.js';
|
|
29
30
|
export { getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './workflows/index.js';
|
|
30
31
|
export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
|
|
31
32
|
export { ArrayOperator, BaseFilterTranslator, BasicOperator, ElementOperator, FieldCondition, Filter, LogicalOperator, NumericOperator, OperatorCondition, OperatorSupport, QueryOperator, RegexOperator } from './filter/index.js';
|
|
@@ -36,6 +37,7 @@ import '@opentelemetry/sdk-node';
|
|
|
36
37
|
import '@opentelemetry/sdk-trace-base';
|
|
37
38
|
import 'pino';
|
|
38
39
|
import 'stream';
|
|
40
|
+
import './bundler/index.js';
|
|
39
41
|
import 'xstate';
|
|
40
42
|
|
|
41
43
|
declare class Agent<TTools extends Record<string, ToolAction<any, any, any, any>> = Record<string, ToolAction<any, any, any, any>>, TMetrics extends Record<string, Metric> = Record<string, Metric>> extends Agent$1<TTools, TMetrics> {
|
|
@@ -49,11 +51,11 @@ declare class MastraBase extends MastraBase$1 {
|
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
53
|
|
|
52
|
-
declare class MastraDeployer extends MastraDeployer$1 {
|
|
54
|
+
declare abstract class MastraDeployer extends MastraDeployer$1 {
|
|
53
55
|
constructor(args: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
name: string;
|
|
57
|
+
mastraDir: string;
|
|
58
|
+
outputDirectory: string;
|
|
57
59
|
});
|
|
58
60
|
}
|
|
59
61
|
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
1
|
+
import { MastraMemory } from './chunk-PRYZIZXD.js';
|
|
2
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-3IV6WDJY.js';
|
|
3
|
+
import { MastraStorage, MastraStorageLibSql } from './chunk-3THCTISX.js';
|
|
4
|
+
import { MastraTTS } from './chunk-SLWM3SEH.js';
|
|
5
|
+
import { MastraVector } from './chunk-42THOFKJ.js';
|
|
6
|
+
import { Workflow } from './chunk-OOZGW5CY.js';
|
|
7
|
+
export { Step, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './chunk-OOZGW5CY.js';
|
|
8
|
+
export { FilterOperators, MastraEngine, MockMastraEngine, PropertyType } from './chunk-U25DBVJZ.js';
|
|
9
|
+
export { Metric, evaluate } from './chunk-QLN26TPI.js';
|
|
10
|
+
export { BaseFilterTranslator } from './chunk-RZYBOMIG.js';
|
|
9
11
|
import { Integration, OpenAPIToolset } from './chunk-42DYOLDV.js';
|
|
10
12
|
import { Tool } from './chunk-VOUPGVRD.js';
|
|
11
13
|
export { createTool } from './chunk-VOUPGVRD.js';
|
|
12
|
-
export { Mastra } from './chunk-
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
export { Telemetry } from './chunk-
|
|
16
|
-
import './chunk-
|
|
14
|
+
export { Mastra } from './chunk-EH2PG7Q6.js';
|
|
15
|
+
import { Agent } from './chunk-SAXFXAKK.js';
|
|
16
|
+
export { AvailableHooks, executeHook, registerHook } from './chunk-HBTQNIAX.js';
|
|
17
|
+
export { Telemetry } from './chunk-SDKEPBBH.js';
|
|
18
|
+
import './chunk-6WJREZ5F.js';
|
|
17
19
|
export { InstrumentClass, hasActiveTelemetry, withSpan } from './chunk-6ZVFVYLE.js';
|
|
18
20
|
export { delay, jsonSchemaPropertiesToTSTypes, jsonSchemaToModel } from './chunk-LUULSM4U.js';
|
|
19
|
-
import { MastraDeployer } from './chunk-
|
|
20
|
-
import
|
|
21
|
-
import {
|
|
22
|
-
|
|
21
|
+
import { MastraDeployer } from './chunk-XD5IQZRB.js';
|
|
22
|
+
import './chunk-CQYUMNLZ.js';
|
|
23
|
+
import { MastraBase } from './chunk-JCRGAEY6.js';
|
|
24
|
+
import { createLogger } from './chunk-TJK6TGSR.js';
|
|
25
|
+
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-TJK6TGSR.js';
|
|
23
26
|
import { embed, embedMany } from './chunk-Y7TKCKRI.js';
|
|
24
|
-
export { Metric, evaluate } from './chunk-QLN26TPI.js';
|
|
25
|
-
export { AvailableHooks, executeHook, registerHook } from './chunk-HBTQNIAX.js';
|
|
26
27
|
import { __name } from './chunk-AJJZUHB4.js';
|
|
27
28
|
|
|
28
29
|
// src/agent/index.warning.ts
|
|
@@ -49,7 +50,7 @@ var MastraBase2 = _MastraBase;
|
|
|
49
50
|
var _MastraDeployer = class _MastraDeployer extends MastraDeployer {
|
|
50
51
|
constructor(args) {
|
|
51
52
|
super(args);
|
|
52
|
-
this.logger.warn('Please import "MastraDeployer" from "@mastra/core/
|
|
53
|
+
this.logger.warn('Please import "MastraDeployer" from "@mastra/core/deployer" instead of "@mastra/core"');
|
|
53
54
|
}
|
|
54
55
|
};
|
|
55
56
|
__name(_MastraDeployer, "MastraDeployer");
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import '../telemetry
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import '../telemetry-oCUM52DG.js';
|
|
2
|
+
import { W as Workflow } from '../workflow-DGktrYAL.js';
|
|
3
|
+
import { T as ToolAction } from '../index-62DyKJRU.js';
|
|
4
4
|
import '@opentelemetry/api';
|
|
5
5
|
import '@opentelemetry/sdk-node';
|
|
6
6
|
import '@opentelemetry/sdk-trace-base';
|
|
7
|
-
import '
|
|
8
|
-
import 'json-schema';
|
|
7
|
+
import 'xstate';
|
|
9
8
|
import 'zod';
|
|
10
9
|
import '../base.js';
|
|
11
|
-
import '../index-
|
|
10
|
+
import '../index-B0-NXUYv.js';
|
|
12
11
|
import 'pino';
|
|
13
12
|
import 'stream';
|
|
13
|
+
import '../engine-EwEG-4Iv.js';
|
|
14
|
+
import 'ai';
|
|
15
|
+
import 'json-schema';
|
|
14
16
|
import '../metric-D2V4CR8D.js';
|
|
15
|
-
import 'sift';
|
|
16
17
|
import '../types-M16hSruO.js';
|
|
18
|
+
import 'sift';
|
|
17
19
|
import '../vector/index.js';
|
|
18
|
-
import '../engine-EwEG-4Iv.js';
|
|
19
20
|
import '../tts/index.js';
|
|
20
|
-
import 'xstate';
|
|
21
21
|
|
|
22
22
|
declare class Integration<ToolsParams = void, ApiClient = void> {
|
|
23
23
|
name: string;
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import 'json-schema';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { L as LLM } from '../index-
|
|
4
|
+
export { L as LLM } from '../index-62DyKJRU.js';
|
|
5
5
|
import '../base.js';
|
|
6
6
|
import '../metric-D2V4CR8D.js';
|
|
7
|
-
import '../
|
|
7
|
+
import '../types-M16hSruO.js';
|
|
8
|
+
import '../telemetry-oCUM52DG.js';
|
|
8
9
|
import '@opentelemetry/api';
|
|
9
10
|
import '@opentelemetry/sdk-node';
|
|
10
11
|
import '@opentelemetry/sdk-trace-base';
|
|
11
|
-
import '
|
|
12
|
+
import 'sift';
|
|
13
|
+
import '../index-B0-NXUYv.js';
|
|
12
14
|
import 'pino';
|
|
13
15
|
import 'stream';
|
|
14
|
-
import 'sift';
|
|
15
|
-
import '../types-M16hSruO.js';
|
|
16
16
|
import '../vector/index.js';
|
|
17
17
|
import '../engine-EwEG-4Iv.js';
|
|
18
18
|
import '../tts/index.js';
|
package/dist/llm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { LLM } from '../chunk-
|
|
1
|
+
export { LLM } from '../chunk-6WJREZ5F.js';
|
|
2
2
|
import '../chunk-6ZVFVYLE.js';
|
|
3
3
|
import '../chunk-LUULSM4U.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCRGAEY6.js';
|
|
5
|
+
import '../chunk-TJK6TGSR.js';
|
|
6
6
|
import '../chunk-AJJZUHB4.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, c as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, d as combineLoggers, e as createLogger, n as noopLogger } from '../index-
|
|
3
|
+
export { B as BaseLogMessage, a as LogLevel, L as Logger, c as LoggerTransport, M as MultiLogger, R as RegisteredLogger, T as TransportMap, d as combineLoggers, e as createLogger, n as noopLogger } from '../index-B0-NXUYv.js';
|
package/dist/logger/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, createLogger, noopLogger } from '../chunk-
|
|
1
|
+
export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, createLogger, noopLogger } from '../chunk-TJK6TGSR.js';
|
|
2
2
|
import '../chunk-AJJZUHB4.js';
|
package/dist/mastra/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as Agent, M as MastraStorage, a as MastraMemory, b as ModelConfig, L as LLM } from '../index-
|
|
1
|
+
import { A as Agent, M as MastraStorage, a as MastraMemory, b as ModelConfig, L as LLM } from '../index-62DyKJRU.js';
|
|
2
2
|
import { M as MastraEngine } from '../engine-EwEG-4Iv.js';
|
|
3
|
-
import { L as Logger, B as BaseLogMessage } from '../index-
|
|
4
|
-
import { W as Workflow } from '../workflow-
|
|
5
|
-
import { OtelConfig, Telemetry } from '../telemetry
|
|
3
|
+
import { L as Logger, B as BaseLogMessage } from '../index-B0-NXUYv.js';
|
|
4
|
+
import { W as Workflow } from '../workflow-DGktrYAL.js';
|
|
5
|
+
import { O as OtelConfig, T as Telemetry } from '../telemetry-oCUM52DG.js';
|
|
6
6
|
import { MastraTTS } from '../tts/index.js';
|
|
7
7
|
import { MastraVector } from '../vector/index.js';
|
|
8
8
|
import { MastraDeployer } from '../deployer/index.js';
|
|
@@ -12,13 +12,14 @@ import 'zod';
|
|
|
12
12
|
import '../base.js';
|
|
13
13
|
import '@opentelemetry/api';
|
|
14
14
|
import '../metric-D2V4CR8D.js';
|
|
15
|
-
import 'sift';
|
|
16
15
|
import '../types-M16hSruO.js';
|
|
16
|
+
import 'sift';
|
|
17
17
|
import 'pino';
|
|
18
18
|
import 'stream';
|
|
19
19
|
import 'xstate';
|
|
20
20
|
import '@opentelemetry/sdk-node';
|
|
21
21
|
import '@opentelemetry/sdk-trace-base';
|
|
22
|
+
import '../bundler/index.js';
|
|
22
23
|
|
|
23
24
|
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> {
|
|
24
25
|
private vectors?;
|
package/dist/mastra/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { Mastra } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { Mastra } from '../chunk-EH2PG7Q6.js';
|
|
2
|
+
import '../chunk-SDKEPBBH.js';
|
|
3
|
+
import '../chunk-6WJREZ5F.js';
|
|
4
4
|
import '../chunk-6ZVFVYLE.js';
|
|
5
5
|
import '../chunk-LUULSM4U.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-JCRGAEY6.js';
|
|
7
|
+
import '../chunk-TJK6TGSR.js';
|
|
8
8
|
import '../chunk-AJJZUHB4.js';
|
package/dist/memory/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import 'ai';
|
|
2
2
|
import '../base.js';
|
|
3
3
|
import '../types-M16hSruO.js';
|
|
4
|
-
export { an as AiMessageType, a as MastraMemory, ar as MemoryConfig, aq as MessageResponse, ao as MessageType, as as SharedMemoryConfig, ap as StorageThreadType } from '../index-
|
|
4
|
+
export { an as AiMessageType, a as MastraMemory, ar as MemoryConfig, aq as MessageResponse, ao as MessageType, as as SharedMemoryConfig, ap as StorageThreadType } from '../index-62DyKJRU.js';
|
|
5
5
|
import '../vector/index.js';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-B0-NXUYv.js';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'stream';
|
|
10
|
-
import '../telemetry
|
|
10
|
+
import '../telemetry-oCUM52DG.js';
|
|
11
11
|
import '@opentelemetry/sdk-node';
|
|
12
12
|
import '@opentelemetry/sdk-trace-base';
|
|
13
13
|
import 'json-schema';
|
package/dist/memory/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MastraMemory } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { MastraMemory } from '../chunk-PRYZIZXD.js';
|
|
2
|
+
import '../chunk-JCRGAEY6.js';
|
|
3
|
+
import '../chunk-TJK6TGSR.js';
|
|
4
4
|
import '../chunk-AJJZUHB4.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { $ as CustomModelConfig } from '../index-
|
|
1
|
+
import { $ as CustomModelConfig } from '../index-62DyKJRU.js';
|
|
2
2
|
import 'ai';
|
|
3
3
|
import 'json-schema';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../base.js';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
|
-
import '../index-
|
|
7
|
+
import '../index-B0-NXUYv.js';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'stream';
|
|
10
|
-
import '../telemetry
|
|
10
|
+
import '../telemetry-oCUM52DG.js';
|
|
11
11
|
import '@opentelemetry/sdk-node';
|
|
12
12
|
import '@opentelemetry/sdk-trace-base';
|
|
13
13
|
import '../metric-D2V4CR8D.js';
|
|
14
|
-
import 'sift';
|
|
15
14
|
import '../types-M16hSruO.js';
|
|
15
|
+
import 'sift';
|
|
16
16
|
import '../vector/index.js';
|
|
17
17
|
import '../engine-EwEG-4Iv.js';
|
|
18
18
|
import '../tts/index.js';
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-3IV6WDJY.js';
|
|
2
|
+
import '../chunk-SAXFXAKK.js';
|
|
3
|
+
import '../chunk-HBTQNIAX.js';
|
|
4
|
+
import '../chunk-SDKEPBBH.js';
|
|
5
|
+
import '../chunk-6WJREZ5F.js';
|
|
5
6
|
import '../chunk-6ZVFVYLE.js';
|
|
6
7
|
import '../chunk-LUULSM4U.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-HBTQNIAX.js';
|
|
8
|
+
import '../chunk-JCRGAEY6.js';
|
|
9
|
+
import '../chunk-TJK6TGSR.js';
|
|
10
10
|
import '../chunk-AJJZUHB4.js';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { M as MastraStorage, l as TABLE_NAMES, m as StorageColumn, ap as StorageThreadType, ao as MessageType, o as StorageGetMessagesArg } from '../index-
|
|
2
|
-
export { n as WorkflowRow } from '../index-
|
|
1
|
+
import { M as MastraStorage, l as TABLE_NAMES, m as StorageColumn, ap as StorageThreadType, ao as MessageType, o as StorageGetMessagesArg } from '../index-62DyKJRU.js';
|
|
2
|
+
export { n as WorkflowRow } from '../index-62DyKJRU.js';
|
|
3
3
|
import 'ai';
|
|
4
4
|
import 'json-schema';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '../base.js';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
|
-
import '../index-
|
|
8
|
+
import '../index-B0-NXUYv.js';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import 'stream';
|
|
11
|
-
import '../telemetry
|
|
11
|
+
import '../telemetry-oCUM52DG.js';
|
|
12
12
|
import '@opentelemetry/sdk-node';
|
|
13
13
|
import '@opentelemetry/sdk-trace-base';
|
|
14
14
|
import '../metric-D2V4CR8D.js';
|
|
15
|
-
import 'sift';
|
|
16
15
|
import '../types-M16hSruO.js';
|
|
16
|
+
import 'sift';
|
|
17
17
|
import '../vector/index.js';
|
|
18
18
|
import '../engine-EwEG-4Iv.js';
|
|
19
19
|
import '../tts/index.js';
|
package/dist/storage/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MastraStorage, MastraStorageLibSql } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { MastraStorage, MastraStorageLibSql } from '../chunk-3THCTISX.js';
|
|
2
|
+
import '../chunk-JCRGAEY6.js';
|
|
3
|
+
import '../chunk-TJK6TGSR.js';
|
|
4
4
|
import '../chunk-AJJZUHB4.js';
|
|
@@ -1,52 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
/** Sampling strategy configuration for OpenTelemetry */
|
|
6
|
-
type SamplingStrategy = {
|
|
7
|
-
/** Sample traces based on a probability between 0 and 1 */
|
|
8
|
-
type: 'ratio';
|
|
9
|
-
/** Probability between 0 and 1 (e.g., 0.1 for 10% sampling) */
|
|
10
|
-
probability: number;
|
|
11
|
-
} | {
|
|
12
|
-
/** Sample all traces */
|
|
13
|
-
type: 'always_on';
|
|
14
|
-
} | {
|
|
15
|
-
/** Don't sample any traces */
|
|
16
|
-
type: 'always_off';
|
|
17
|
-
} | {
|
|
18
|
-
/** Use parent sampling decision if available, otherwise use root sampler */
|
|
19
|
-
type: 'parent_based';
|
|
20
|
-
/** Configuration for the root sampler when no parent context exists */
|
|
21
|
-
root: {
|
|
22
|
-
/** Probability between 0 and 1 for the root sampler */
|
|
23
|
-
probability: number;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
/** Configuration options for OpenTelemetry */
|
|
27
|
-
type OtelConfig = {
|
|
28
|
-
/** Name of the service for telemetry identification */
|
|
29
|
-
serviceName?: string;
|
|
30
|
-
/** Whether telemetry is enabled. Defaults to true */
|
|
31
|
-
enabled?: boolean;
|
|
32
|
-
/** Sampling configuration to control trace data volume */
|
|
33
|
-
sampling?: SamplingStrategy;
|
|
34
|
-
/** Export configuration for sending telemetry data */
|
|
35
|
-
export?: {
|
|
36
|
-
/** Export to an OTLP (OpenTelemetry Protocol) endpoint */
|
|
37
|
-
type: 'otlp';
|
|
38
|
-
/** OTLP endpoint URL */
|
|
39
|
-
endpoint?: string;
|
|
40
|
-
/** Optional headers for OTLP requests */
|
|
41
|
-
headers?: Record<string, string>;
|
|
42
|
-
} | {
|
|
43
|
-
/** Export to console for development/debugging */
|
|
44
|
-
type: 'console';
|
|
45
|
-
} | {
|
|
46
|
-
type: 'custom';
|
|
47
|
-
exporter: SpanExporter;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
1
|
+
export { O as OtelConfig, S as SamplingStrategy, T as Telemetry } from '../telemetry-oCUM52DG.js';
|
|
2
|
+
import { SpanKind } from '@opentelemetry/api';
|
|
3
|
+
import '@opentelemetry/sdk-node';
|
|
4
|
+
import '@opentelemetry/sdk-trace-base';
|
|
50
5
|
|
|
51
6
|
declare function withSpan(options: {
|
|
52
7
|
spanName?: string;
|
|
@@ -62,57 +17,4 @@ declare function InstrumentClass(options?: {
|
|
|
62
17
|
|
|
63
18
|
declare function hasActiveTelemetry(): boolean;
|
|
64
19
|
|
|
65
|
-
|
|
66
|
-
var __OTEL_SDK__: NodeSDK | undefined;
|
|
67
|
-
var __TELEMETRY__: Telemetry | undefined;
|
|
68
|
-
}
|
|
69
|
-
declare class Telemetry {
|
|
70
|
-
private sdk;
|
|
71
|
-
tracer: Tracer;
|
|
72
|
-
name: string;
|
|
73
|
-
private static isInitialized;
|
|
74
|
-
private getSampler;
|
|
75
|
-
private constructor();
|
|
76
|
-
private shutdown;
|
|
77
|
-
/**
|
|
78
|
-
* Initialize telemetry with the given configuration
|
|
79
|
-
* @param config - Optional telemetry configuration object
|
|
80
|
-
* @returns Telemetry instance that can be used for tracing
|
|
81
|
-
*/
|
|
82
|
-
static init(config?: OtelConfig): Telemetry;
|
|
83
|
-
/**
|
|
84
|
-
* Get the global telemetry instance
|
|
85
|
-
* @throws {Error} If telemetry has not been initialized
|
|
86
|
-
* @returns {Telemetry} The global telemetry instance
|
|
87
|
-
*/
|
|
88
|
-
static get(): Telemetry;
|
|
89
|
-
/**
|
|
90
|
-
* Wraps a class instance with telemetry tracing
|
|
91
|
-
* @param instance The class instance to wrap
|
|
92
|
-
* @param options Optional configuration for tracing
|
|
93
|
-
* @returns Wrapped instance with all methods traced
|
|
94
|
-
*/
|
|
95
|
-
traceClass<T extends object>(instance: T, options?: {
|
|
96
|
-
/** Base name for spans (e.g. 'integration', 'agent') */
|
|
97
|
-
spanNamePrefix?: string;
|
|
98
|
-
/** Additional attributes to add to all spans */
|
|
99
|
-
attributes?: Record<string, string>;
|
|
100
|
-
/** Methods to exclude from tracing */
|
|
101
|
-
excludeMethods?: string[];
|
|
102
|
-
/** Skip tracing if telemetry is not active */
|
|
103
|
-
skipIfNoTelemetry?: boolean;
|
|
104
|
-
}): T;
|
|
105
|
-
/**
|
|
106
|
-
* method to trace individual methods with proper context
|
|
107
|
-
* @param method The method to trace
|
|
108
|
-
* @param context Additional context for the trace
|
|
109
|
-
* @returns Wrapped method with tracing
|
|
110
|
-
*/
|
|
111
|
-
traceMethod<TMethod extends Function>(method: TMethod, context: {
|
|
112
|
-
spanName: string;
|
|
113
|
-
attributes?: Record<string, string>;
|
|
114
|
-
skipIfNoTelemetry?: boolean;
|
|
115
|
-
}): TMethod;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export { InstrumentClass, type OtelConfig, type SamplingStrategy, Telemetry, hasActiveTelemetry, withSpan };
|
|
20
|
+
export { InstrumentClass, hasActiveTelemetry, withSpan };
|
package/dist/telemetry/index.js
CHANGED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Tracer } from '@opentelemetry/api';
|
|
2
|
+
import { NodeSDK } from '@opentelemetry/sdk-node';
|
|
3
|
+
import { SpanExporter } from '@opentelemetry/sdk-trace-base';
|
|
4
|
+
|
|
5
|
+
/** Sampling strategy configuration for OpenTelemetry */
|
|
6
|
+
type SamplingStrategy = {
|
|
7
|
+
/** Sample traces based on a probability between 0 and 1 */
|
|
8
|
+
type: 'ratio';
|
|
9
|
+
/** Probability between 0 and 1 (e.g., 0.1 for 10% sampling) */
|
|
10
|
+
probability: number;
|
|
11
|
+
} | {
|
|
12
|
+
/** Sample all traces */
|
|
13
|
+
type: 'always_on';
|
|
14
|
+
} | {
|
|
15
|
+
/** Don't sample any traces */
|
|
16
|
+
type: 'always_off';
|
|
17
|
+
} | {
|
|
18
|
+
/** Use parent sampling decision if available, otherwise use root sampler */
|
|
19
|
+
type: 'parent_based';
|
|
20
|
+
/** Configuration for the root sampler when no parent context exists */
|
|
21
|
+
root: {
|
|
22
|
+
/** Probability between 0 and 1 for the root sampler */
|
|
23
|
+
probability: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/** Configuration options for OpenTelemetry */
|
|
27
|
+
type OtelConfig = {
|
|
28
|
+
/** Name of the service for telemetry identification */
|
|
29
|
+
serviceName?: string;
|
|
30
|
+
/** Whether telemetry is enabled. Defaults to true */
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
/** Sampling configuration to control trace data volume */
|
|
33
|
+
sampling?: SamplingStrategy;
|
|
34
|
+
/** Export configuration for sending telemetry data */
|
|
35
|
+
export?: {
|
|
36
|
+
/** Export to an OTLP (OpenTelemetry Protocol) endpoint */
|
|
37
|
+
type: 'otlp';
|
|
38
|
+
/** OTLP endpoint URL */
|
|
39
|
+
endpoint?: string;
|
|
40
|
+
/** Optional headers for OTLP requests */
|
|
41
|
+
headers?: Record<string, string>;
|
|
42
|
+
} | {
|
|
43
|
+
/** Export to console for development/debugging */
|
|
44
|
+
type: 'console';
|
|
45
|
+
} | {
|
|
46
|
+
type: 'custom';
|
|
47
|
+
exporter: SpanExporter;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
declare global {
|
|
52
|
+
var __OTEL_SDK__: NodeSDK | undefined;
|
|
53
|
+
var __TELEMETRY__: Telemetry | undefined;
|
|
54
|
+
}
|
|
55
|
+
declare class Telemetry {
|
|
56
|
+
private sdk;
|
|
57
|
+
tracer: Tracer;
|
|
58
|
+
name: string;
|
|
59
|
+
private static isInitialized;
|
|
60
|
+
private getSampler;
|
|
61
|
+
private constructor();
|
|
62
|
+
private shutdown;
|
|
63
|
+
/**
|
|
64
|
+
* Initialize telemetry with the given configuration
|
|
65
|
+
* @param config - Optional telemetry configuration object
|
|
66
|
+
* @returns Telemetry instance that can be used for tracing
|
|
67
|
+
*/
|
|
68
|
+
static init(config?: OtelConfig): Telemetry;
|
|
69
|
+
/**
|
|
70
|
+
* Get the global telemetry instance
|
|
71
|
+
* @throws {Error} If telemetry has not been initialized
|
|
72
|
+
* @returns {Telemetry} The global telemetry instance
|
|
73
|
+
*/
|
|
74
|
+
static get(): Telemetry;
|
|
75
|
+
/**
|
|
76
|
+
* Wraps a class instance with telemetry tracing
|
|
77
|
+
* @param instance The class instance to wrap
|
|
78
|
+
* @param options Optional configuration for tracing
|
|
79
|
+
* @returns Wrapped instance with all methods traced
|
|
80
|
+
*/
|
|
81
|
+
traceClass<T extends object>(instance: T, options?: {
|
|
82
|
+
/** Base name for spans (e.g. 'integration', 'agent') */
|
|
83
|
+
spanNamePrefix?: string;
|
|
84
|
+
/** Additional attributes to add to all spans */
|
|
85
|
+
attributes?: Record<string, string>;
|
|
86
|
+
/** Methods to exclude from tracing */
|
|
87
|
+
excludeMethods?: string[];
|
|
88
|
+
/** Skip tracing if telemetry is not active */
|
|
89
|
+
skipIfNoTelemetry?: boolean;
|
|
90
|
+
}): T;
|
|
91
|
+
/**
|
|
92
|
+
* method to trace individual methods with proper context
|
|
93
|
+
* @param method The method to trace
|
|
94
|
+
* @param context Additional context for the trace
|
|
95
|
+
* @returns Wrapped method with tracing
|
|
96
|
+
*/
|
|
97
|
+
traceMethod<TMethod extends Function>(method: TMethod, context: {
|
|
98
|
+
spanName: string;
|
|
99
|
+
attributes?: Record<string, string>;
|
|
100
|
+
skipIfNoTelemetry?: boolean;
|
|
101
|
+
}): TMethod;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export { type OtelConfig as O, type SamplingStrategy as S, Telemetry as T };
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { k as ToolExecutionContext, T as ToolAction, d as MastraPrimitives } from '../index-
|
|
3
|
-
export { at as CoreTool } from '../index-
|
|
2
|
+
import { k as ToolExecutionContext, T as ToolAction, d as MastraPrimitives } from '../index-62DyKJRU.js';
|
|
3
|
+
export { at as CoreTool } from '../index-62DyKJRU.js';
|
|
4
4
|
import 'ai';
|
|
5
5
|
import 'json-schema';
|
|
6
6
|
import '../base.js';
|
|
7
7
|
import '@opentelemetry/api';
|
|
8
|
-
import '../index-
|
|
8
|
+
import '../index-B0-NXUYv.js';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import 'stream';
|
|
11
|
-
import '../telemetry
|
|
11
|
+
import '../telemetry-oCUM52DG.js';
|
|
12
12
|
import '@opentelemetry/sdk-node';
|
|
13
13
|
import '@opentelemetry/sdk-trace-base';
|
|
14
14
|
import '../metric-D2V4CR8D.js';
|
|
15
|
-
import 'sift';
|
|
16
15
|
import '../types-M16hSruO.js';
|
|
16
|
+
import 'sift';
|
|
17
17
|
import '../vector/index.js';
|
|
18
18
|
import '../engine-EwEG-4Iv.js';
|
|
19
19
|
import '../tts/index.js';
|
package/dist/tts/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { MastraBase } from '../base.js';
|
|
2
2
|
import '@opentelemetry/api';
|
|
3
|
-
import '../index-
|
|
3
|
+
import '../index-B0-NXUYv.js';
|
|
4
4
|
import 'pino';
|
|
5
5
|
import 'stream';
|
|
6
|
-
import '../telemetry
|
|
6
|
+
import '../telemetry-oCUM52DG.js';
|
|
7
7
|
import '@opentelemetry/sdk-node';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
9
|
|
package/dist/tts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { MastraTTS } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { MastraTTS } from '../chunk-SLWM3SEH.js';
|
|
2
|
+
import '../chunk-SDKEPBBH.js';
|
|
3
3
|
import '../chunk-6ZVFVYLE.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JCRGAEY6.js';
|
|
5
|
+
import '../chunk-TJK6TGSR.js';
|
|
6
6
|
import '../chunk-AJJZUHB4.js';
|