@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.
- package/dist/action/index.d.ts +1 -1
- package/dist/agent/index.js +3 -3
- package/dist/bundler/index.d.ts +11 -3
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-5NQ3MEZM.js → chunk-BOS3IA23.js} +0 -1
- package/dist/{chunk-XDXRDRTQ.js → chunk-EULBQ77C.js} +4 -4
- package/dist/chunk-F7ILHRX5.js +659 -0
- package/dist/{chunk-WGUGRCAP.js → chunk-GGYXCZUW.js} +1 -1
- package/dist/{chunk-FD4KOA4T.js → chunk-HH5JIATB.js} +1 -1
- package/dist/{chunk-YKASGA6R.js → chunk-JJ57BXQR.js} +1 -1
- package/dist/{chunk-MMJCCJNP.js → chunk-JWVCENG2.js} +2 -3
- package/dist/{chunk-RDEXABVY.js → chunk-MCB4M5W4.js} +2 -2
- package/dist/{chunk-YPMAHKBC.js → chunk-RI3ECMVF.js} +0 -1
- package/dist/{chunk-ECXV3EAT.js → chunk-WBPDZBUT.js} +3 -9
- package/dist/deployer/index.d.ts +6 -3
- package/dist/deployer/index.js +2 -2
- package/dist/embeddings/index.js +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +17 -15
- package/dist/llm/index.js +1 -1
- package/dist/mastra/index.d.ts +2 -2
- package/dist/mastra/index.js +2 -2
- package/dist/relevance/index.js +4 -4
- package/dist/storage/index.d.ts +5 -3
- package/dist/storage/index.js +5 -1
- package/dist/vector/index.js +2 -2
- package/dist/vector/libsql/index.d.ts +2 -2
- package/dist/vector/libsql/index.js +5 -660
- package/package.json +1 -1
package/dist/action/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/agent/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { Agent } from '../chunk-
|
|
2
|
-
import '../chunk-HBTQNIAX.js';
|
|
1
|
+
export { Agent } from '../chunk-JWVCENG2.js';
|
|
3
2
|
import '../chunk-SDKEPBBH.js';
|
|
4
|
-
import '../chunk-
|
|
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';
|
package/dist/bundler/index.d.ts
CHANGED
|
@@ -7,15 +7,23 @@ import '../telemetry-oCUM52DG.js';
|
|
|
7
7
|
import '@opentelemetry/sdk-node';
|
|
8
8
|
import '@opentelemetry/sdk-trace-base';
|
|
9
9
|
|
|
10
|
-
|
|
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(
|
|
26
|
+
abstract bundle(entryFile: string, outputDirectory: string): Promise<void>;
|
|
19
27
|
}
|
|
20
28
|
|
|
21
|
-
export { MastraBundler };
|
|
29
|
+
export { type IBundler, MastraBundler };
|
package/dist/bundler/index.js
CHANGED
|
@@ -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
|
|
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(
|
|
506
|
-
var
|
|
505
|
+
__name(_DefaultStorage, "DefaultStorage");
|
|
506
|
+
var DefaultStorage = _DefaultStorage;
|
|
507
507
|
|
|
508
|
-
export {
|
|
508
|
+
export { DefaultStorage, MastraStorage };
|