@mastra/core 0.2.0-alpha.91 → 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.
@@ -2,8 +2,8 @@ import 'zod';
2
2
  export { I as IAction, aT as IExecutionContext, d as MastraPrimitives } from '../index-B48181D5.js';
3
3
  import '../index-CBZ2mk2H.js';
4
4
  import '../telemetry-oCUM52DG.js';
5
- import '../tts/index.js';
6
5
  import '../vector/index.js';
6
+ import '../tts/index.js';
7
7
  import 'ai';
8
8
  import 'json-schema';
9
9
  import '../base.js';
@@ -1,9 +1,9 @@
1
- export { Agent } from '../chunk-MMJCCJNP.js';
2
- import '../chunk-HBTQNIAX.js';
1
+ export { Agent } from '../chunk-JWVCENG2.js';
3
2
  import '../chunk-SDKEPBBH.js';
4
- import '../chunk-YPMAHKBC.js';
3
+ import '../chunk-RI3ECMVF.js';
5
4
  import '../chunk-6ZVFVYLE.js';
6
5
  import '../chunk-KNPBNSJ7.js';
7
6
  import '../chunk-G4MCO7XF.js';
8
7
  import '../chunk-ICMEXHKD.js';
8
+ import '../chunk-HBTQNIAX.js';
9
9
  import '../chunk-AJJZUHB4.js';
@@ -7,15 +7,23 @@ import '../telemetry-oCUM52DG.js';
7
7
  import '@opentelemetry/sdk-node';
8
8
  import '@opentelemetry/sdk-trace-base';
9
9
 
10
- declare abstract class MastraBundler extends MastraBase {
10
+ interface IBundler {
11
+ loadEnvVars(): Promise<Map<string, string>>;
12
+ getEnvFiles(): Promise<string[]>;
13
+ bundle(entryFile: string, outputDirectory: string): Promise<void>;
14
+ prepare(outputDirectory: string): Promise<void>;
15
+ writePackageJson(outputDirectory: string, dependencies: Map<string, string>): Promise<void>;
16
+ }
17
+ declare abstract class MastraBundler extends MastraBase implements IBundler {
11
18
  constructor({ name, component }: {
12
19
  name: string;
13
20
  component?: 'BUNDLER' | 'DEPLOYER';
14
21
  });
15
22
  loadEnvVars(): Promise<Map<string, string>>;
16
23
  abstract prepare(outputDirectory: string): Promise<void>;
24
+ abstract writePackageJson(outputDirectory: string, dependencies: Map<string, string>): Promise<void>;
17
25
  abstract getEnvFiles(): Promise<string[]>;
18
- abstract bundle(mastraDir: string, outputDirectory: string): Promise<void>;
26
+ abstract bundle(entryFile: string, outputDirectory: string): Promise<void>;
19
27
  }
20
28
 
21
- export { MastraBundler };
29
+ export { type IBundler, MastraBundler };
@@ -1,4 +1,4 @@
1
- export { MastraBundler } from '../chunk-RDEXABVY.js';
1
+ export { MastraBundler } from '../chunk-MCB4M5W4.js';
2
2
  import '../chunk-G4MCO7XF.js';
3
3
  import '../chunk-ICMEXHKD.js';
4
4
  import '../chunk-AJJZUHB4.js';
@@ -6,7 +6,6 @@ import { createMistral } from '@ai-sdk/mistral';
6
6
  import { createOpenAI } from '@ai-sdk/openai';
7
7
  import { embed as embed$1, embedMany as embedMany$1 } from 'ai';
8
8
  import { createVoyage } from 'voyage-ai-provider';
9
- import 'dotenv/config';
10
9
 
11
10
  function getEmbeddingModel(embedding) {
12
11
  let embeddingModel;
@@ -206,7 +206,7 @@ __publicField(_MastraStorage, "TABLE_EVALS", "mastra_evals");
206
206
  __publicField(_MastraStorage, "TABLE_MESSAGES", "mastra_messages");
207
207
  __publicField(_MastraStorage, "TABLE_THREADS", "mastra_threads");
208
208
  var MastraStorage = _MastraStorage;
209
- var _MastraStorageLibSql = class _MastraStorageLibSql extends MastraStorage {
209
+ var _DefaultStorage = class _DefaultStorage extends MastraStorage {
210
210
  constructor({ config }) {
211
211
  super({
212
212
  name: `MastraStorageLibSql`
@@ -502,7 +502,7 @@ var _MastraStorageLibSql = class _MastraStorageLibSql extends MastraStorage {
502
502
  }
503
503
  }
504
504
  };
505
- __name(_MastraStorageLibSql, "MastraStorageLibSql");
506
- var MastraStorageLibSql = _MastraStorageLibSql;
505
+ __name(_DefaultStorage, "DefaultStorage");
506
+ var DefaultStorage = _DefaultStorage;
507
507
 
508
- export { MastraStorage, MastraStorageLibSql };
508
+ export { DefaultStorage, MastraStorage };