@mastra/core 0.2.0-alpha.92 → 0.2.0-alpha.93

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.
@@ -1,4 +1,4 @@
1
- import { Agent } from './chunk-DINPURQT.js';
1
+ import { Agent } from './chunk-JWVCENG2.js';
2
2
  import { __name, __publicField } from './chunk-AJJZUHB4.js';
3
3
  import { CohereClient } from 'cohere-ai';
4
4
 
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ 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';
12
12
  export { A as AmazonBedrockEmbeddingModelNames, C as CohereEmbeddingConfig, V as VoyageEmbeddingModelNames } from './types-M16hSruO.js';
13
- import { MastraStorageLibSql as MastraStorageLibSql$1, LibSQLConfig } from './storage/index.js';
13
+ import { MastraStorageLibSql as DefaultStorage, LibSQLConfig } from './storage/index.js';
14
14
  export { evaluate } from './eval/index.js';
15
15
  import { Integration as Integration$1, OpenAPIToolset as OpenAPIToolset$1 } from './integration/index.js';
16
16
  export { Mastra } from './mastra/index.js';
@@ -28,6 +28,7 @@ export { c as createStep } from './workflow-CSwxE-4q.js';
28
28
  export { getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './workflows/index.js';
29
29
  export { AvailableHooks, executeHook, registerHook } from './hooks/index.js';
30
30
  export { ArrayOperator, BaseFilterTranslator, BasicOperator, ElementOperator, FieldCondition, Filter, LogicalOperator, NumericOperator, OperatorCondition, OperatorSupport, QueryOperator, RegexOperator } from './filter/index.js';
31
+ export { LibSQLVector as DefaultVectorDB, LibSQLVector } from './vector/libsql/index.js';
31
32
  import 'json-schema';
32
33
  import 'sift';
33
34
  import './embeddings/model/providers/embedder.js';
@@ -67,7 +68,7 @@ declare abstract class MastraStorage extends MastraStorage$1 {
67
68
  });
68
69
  }
69
70
 
70
- declare class MastraStorageLibSql extends MastraStorageLibSql$1 {
71
+ declare class MastraStorageLibSql extends DefaultStorage {
71
72
  constructor(args: {
72
73
  config: LibSQLConfig;
73
74
  });
@@ -107,4 +108,4 @@ declare class Workflow<TSteps extends Step<any, any, any>[] = any, TTriggerSchem
107
108
  constructor(args: WorkflowOptions<TTriggerSchema>);
108
109
  }
109
110
 
110
- export { Agent, EmbeddingOptions, Integration, LibSQLConfig, LogLevel, Logger, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraStorageLibSql, MastraTTS, MastraVector, Metric, OpenAPIToolset, RegisteredLogger, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, TransportMap, Workflow, WorkflowOptions, createLogger, embed, embedMany };
111
+ export { Agent, DefaultStorage, EmbeddingOptions, Integration, LibSQLConfig, LogLevel, Logger, MastraBase, MastraDeployer, MastraMemory, MastraStorage, MastraStorageLibSql, MastraTTS, MastraVector, Metric, OpenAPIToolset, RegisteredLogger, Step, TTSConfig, Tool, ToolAction, ToolExecutionContext, TransportMap, Workflow, WorkflowOptions, createLogger, embed, embedMany };
package/dist/index.js CHANGED
@@ -1,18 +1,19 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-U7WDR4WO.js';
2
- import { MastraStorage, MastraStorageLibSql } from './chunk-XDXRDRTQ.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from './chunk-GGYXCZUW.js';
2
+ import { MastraStorage, DefaultStorage } from './chunk-EULBQ77C.js';
3
+ export { DefaultStorage } from './chunk-EULBQ77C.js';
4
+ export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from './chunk-F7ILHRX5.js';
3
5
  import { MastraTTS } from './chunk-ECUVL2G5.js';
4
- import { MastraVector } from './chunk-UCOTMN3J.js';
6
+ import { MastraVector } from './chunk-HH5JIATB.js';
5
7
  import { Workflow } from './chunk-E3TBVBIO.js';
6
8
  export { Step, createStep, getStepResult, isErrorEvent, isTransitionEvent, isVariableReference } from './chunk-E3TBVBIO.js';
7
- export { Metric, evaluate } from './chunk-QLN26TPI.js';
9
+ import { embed, embedMany } from './chunk-BOS3IA23.js';
8
10
  export { BaseFilterTranslator } from './chunk-4LJFWC2Q.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
14
  export { Mastra } from './chunk-WBPDZBUT.js';
13
15
  import { MastraMemory } from './chunk-IE37CBXB.js';
14
- import { Agent } from './chunk-DINPURQT.js';
15
- export { AvailableHooks, executeHook, registerHook } from './chunk-HBTQNIAX.js';
16
+ import { Agent } from './chunk-JWVCENG2.js';
16
17
  export { Telemetry } from './chunk-SDKEPBBH.js';
17
18
  import './chunk-RI3ECMVF.js';
18
19
  export { InstrumentClass, hasActiveTelemetry, withSpan } from './chunk-6ZVFVYLE.js';
@@ -22,7 +23,8 @@ import './chunk-MCB4M5W4.js';
22
23
  import { MastraBase } from './chunk-G4MCO7XF.js';
23
24
  import { createLogger } from './chunk-ICMEXHKD.js';
24
25
  export { LogLevel, Logger, LoggerTransport, MultiLogger, RegisteredLogger, combineLoggers, noopLogger } from './chunk-ICMEXHKD.js';
25
- import { embed, embedMany } from './chunk-BOS3IA23.js';
26
+ export { Metric, evaluate } from './chunk-QLN26TPI.js';
27
+ export { AvailableHooks, executeHook, registerHook } from './chunk-HBTQNIAX.js';
26
28
  import { __name } from './chunk-AJJZUHB4.js';
27
29
 
28
30
  // src/agent/index.warning.ts
@@ -80,14 +82,14 @@ __name(_MastraStorage, "MastraStorage");
80
82
  var MastraStorage2 = _MastraStorage;
81
83
 
82
84
  // src/storage/libsql.warning.ts
83
- var _MastraStorageLibSql = class _MastraStorageLibSql extends MastraStorageLibSql {
85
+ var _MastraStorageLibSql = class _MastraStorageLibSql extends DefaultStorage {
84
86
  constructor(args) {
85
87
  super(args);
86
88
  this.logger.warn('Please import "MastraStorageLibSql" from "@mastra/core/storage" instead of "@mastra/core"');
87
89
  }
88
90
  };
89
91
  __name(_MastraStorageLibSql, "MastraStorageLibSql");
90
- var MastraStorageLibSql2 = _MastraStorageLibSql;
92
+ var MastraStorageLibSql = _MastraStorageLibSql;
91
93
 
92
94
  // src/integration/integration.warning.ts
93
95
  var _Integration = class _Integration extends Integration {
@@ -168,4 +170,4 @@ var _Workflow = class _Workflow extends Workflow {
168
170
  __name(_Workflow, "Workflow");
169
171
  var Workflow2 = _Workflow;
170
172
 
171
- export { Agent2 as Agent, Integration2 as Integration, MastraBase2 as MastraBase, MastraDeployer2 as MastraDeployer, MastraMemory2 as MastraMemory, MastraStorage2 as MastraStorage, MastraStorageLibSql2 as MastraStorageLibSql, MastraTTS2 as MastraTTS, MastraVector2 as MastraVector, OpenAPIToolset2 as OpenAPIToolset, Tool2 as Tool, Workflow2 as Workflow, createLogger2 as createLogger, embed2 as embed, embedMany2 as embedMany };
173
+ export { Agent2 as Agent, Integration2 as Integration, MastraBase2 as MastraBase, MastraDeployer2 as MastraDeployer, MastraMemory2 as MastraMemory, MastraStorage2 as MastraStorage, MastraStorageLibSql, MastraTTS2 as MastraTTS, MastraVector2 as MastraVector, OpenAPIToolset2 as OpenAPIToolset, Tool2 as Tool, Workflow2 as Workflow, createLogger2 as createLogger, embed2 as embed, embedMany2 as embedMany };
@@ -1,9 +1,9 @@
1
1
  import { A as Agent, M as MastraStorage, a as MastraMemory, b as ModelConfig, L as LLM } from '../index-B48181D5.js';
2
2
  import { L as Logger, B as BaseLogMessage } from '../index-CBZ2mk2H.js';
3
3
  import { W as Workflow } from '../workflow-CSwxE-4q.js';
4
+ import { MastraVector } from '../vector/index.js';
4
5
  import { O as OtelConfig, T as Telemetry } from '../telemetry-oCUM52DG.js';
5
6
  import { MastraTTS } from '../tts/index.js';
6
- import { MastraVector } from '../vector/index.js';
7
7
  import { MastraDeployer } from '../deployer/index.js';
8
8
  import 'ai';
9
9
  import 'json-schema';
@@ -16,9 +16,9 @@ import '../embeddings/model/providers/embedder.js';
16
16
  import 'pino';
17
17
  import 'stream';
18
18
  import 'xstate';
19
+ import '../types-M16hSruO.js';
19
20
  import '@opentelemetry/sdk-node';
20
21
  import '@opentelemetry/sdk-trace-base';
21
- import '../types-M16hSruO.js';
22
22
  import '../bundler/index.js';
23
23
 
24
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> {
@@ -1,10 +1,10 @@
1
- export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-U7WDR4WO.js';
2
- import '../chunk-DINPURQT.js';
3
- import '../chunk-HBTQNIAX.js';
1
+ export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-GGYXCZUW.js';
2
+ import '../chunk-JWVCENG2.js';
4
3
  import '../chunk-SDKEPBBH.js';
5
4
  import '../chunk-RI3ECMVF.js';
6
5
  import '../chunk-6ZVFVYLE.js';
7
6
  import '../chunk-KNPBNSJ7.js';
8
7
  import '../chunk-G4MCO7XF.js';
9
8
  import '../chunk-ICMEXHKD.js';
9
+ import '../chunk-HBTQNIAX.js';
10
10
  import '../chunk-AJJZUHB4.js';
@@ -1,5 +1,7 @@
1
1
  import { M as MastraStorage, l as TABLE_NAMES, m as StorageColumn, ap as StorageThreadType, ao as MessageType, o as StorageGetMessagesArg } from '../index-B48181D5.js';
2
2
  export { n as WorkflowRow } from '../index-B48181D5.js';
3
+ import '../telemetry-oCUM52DG.js';
4
+ export { LibSQLVector as DefaultVectorDB, LibSQLVector } from '../vector/libsql/index.js';
3
5
  import 'ai';
4
6
  import 'json-schema';
5
7
  import 'zod';
@@ -8,7 +10,6 @@ import '@opentelemetry/api';
8
10
  import '../index-CBZ2mk2H.js';
9
11
  import 'pino';
10
12
  import 'stream';
11
- import '../telemetry-oCUM52DG.js';
12
13
  import '@opentelemetry/sdk-node';
13
14
  import '@opentelemetry/sdk-trace-base';
14
15
  import '../metric-D2V4CR8D.js';
@@ -17,12 +18,13 @@ import '../embeddings/model/providers/embedder.js';
17
18
  import '../vector/index.js';
18
19
  import '../types-M16hSruO.js';
19
20
  import '../tts/index.js';
21
+ import '../filter/index.js';
20
22
 
21
23
  interface LibSQLConfig {
22
24
  url: string;
23
25
  authToken?: string;
24
26
  }
25
- declare class MastraStorageLibSql extends MastraStorage {
27
+ declare class DefaultStorage extends MastraStorage {
26
28
  private client;
27
29
  constructor({ config }: {
28
30
  config: LibSQLConfig;
@@ -67,4 +69,4 @@ declare class MastraStorageLibSql extends MastraStorage {
67
69
  }): Promise<MessageType[]>;
68
70
  }
69
71
 
70
- export { type LibSQLConfig, MastraStorage, MastraStorageLibSql, StorageColumn, StorageGetMessagesArg, TABLE_NAMES };
72
+ export { DefaultStorage, type LibSQLConfig, MastraStorage, DefaultStorage as MastraStorageLibSql, StorageColumn, StorageGetMessagesArg, TABLE_NAMES };
@@ -1,4 +1,8 @@
1
- export { MastraStorage, MastraStorageLibSql } from '../chunk-XDXRDRTQ.js';
1
+ export { DefaultStorage, MastraStorage, DefaultStorage as MastraStorageLibSql } from '../chunk-EULBQ77C.js';
2
+ export { DefaultVectorDB, DefaultVectorDB as LibSQLVector } from '../chunk-F7ILHRX5.js';
3
+ import '../chunk-HH5JIATB.js';
4
+ import '../chunk-BOS3IA23.js';
5
+ import '../chunk-4LJFWC2Q.js';
2
6
  import '../chunk-G4MCO7XF.js';
3
7
  import '../chunk-ICMEXHKD.js';
4
8
  import '../chunk-AJJZUHB4.js';
@@ -1,5 +1,5 @@
1
- export { MastraVector } from '../chunk-UCOTMN3J.js';
1
+ export { MastraVector } from '../chunk-HH5JIATB.js';
2
+ import '../chunk-BOS3IA23.js';
2
3
  import '../chunk-G4MCO7XF.js';
3
4
  import '../chunk-ICMEXHKD.js';
4
- import '../chunk-BOS3IA23.js';
5
5
  import '../chunk-AJJZUHB4.js';
@@ -10,7 +10,7 @@ import '@opentelemetry/sdk-node';
10
10
  import '@opentelemetry/sdk-trace-base';
11
11
  import '../../types-M16hSruO.js';
12
12
 
13
- declare class LibSQLVector extends MastraVector {
13
+ declare class DefaultVectorDB extends MastraVector {
14
14
  private turso;
15
15
  constructor({ connectionUrl, authToken, syncUrl, syncInterval, }: {
16
16
  connectionUrl: string;
@@ -28,4 +28,4 @@ declare class LibSQLVector extends MastraVector {
28
28
  truncateIndex(indexName: string): Promise<void>;
29
29
  }
30
30
 
31
- export { LibSQLVector };
31
+ export { DefaultVectorDB, DefaultVectorDB as LibSQLVector };