@mastra/core 0.2.0-alpha.89 → 0.2.0-alpha.92
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/README.md +1 -2
- package/dist/action/index.d.ts +3 -3
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +4 -4
- package/dist/base.d.ts +1 -1
- package/dist/base.js +2 -2
- package/dist/bundler/index.d.ts +12 -4
- package/dist/bundler/index.js +3 -3
- package/dist/{chunk-D6SEHWUL.js → chunk-4LJFWC2Q.js} +1 -1
- package/dist/chunk-5DYJZVB7.js +66 -0
- package/dist/chunk-AD6IIOCI.js +11 -0
- package/dist/{chunk-5NQ3MEZM.js → chunk-BOS3IA23.js} +0 -1
- package/dist/chunk-CQU72KBX.js +54 -0
- package/dist/{chunk-SKEBFXFK.js → chunk-DINPURQT.js} +5 -10
- package/dist/{chunk-FFZKACHZ.js → chunk-E3TBVBIO.js} +12 -84
- package/dist/{chunk-ADU6ZLCT.js → chunk-ECUVL2G5.js} +1 -1
- package/dist/{chunk-WLG2YHOZ.js → chunk-G4MCO7XF.js} +1 -1
- package/dist/{chunk-IO3KMCXV.js → chunk-ICMEXHKD.js} +0 -1
- package/dist/{chunk-HILJW64N.js → chunk-IE37CBXB.js} +20 -9
- package/dist/chunk-IEFQZ3IL.js +78 -0
- package/dist/{chunk-GTJIVA2D.js → chunk-IJ55HGH4.js} +1 -1
- package/dist/{chunk-BCNHUSA6.js → chunk-JJ57BXQR.js} +1 -1
- package/dist/{chunk-RIATJJC3.js → chunk-MCB4M5W4.js} +3 -3
- package/dist/chunk-NNNAWW2H.js +66 -0
- package/dist/{chunk-T5ZUXYWC.js → chunk-NYBGZL6Z.js} +1 -1
- package/dist/{chunk-654VMNVR.js → chunk-QX2CHXA7.js} +12 -5
- package/dist/chunk-RAR7V3E3.js +66 -0
- package/dist/{chunk-Y7YCQUOD.js → chunk-RI3ECMVF.js} +2 -3
- package/dist/{chunk-SMVXLIV7.js → chunk-U7WDR4WO.js} +1 -1
- package/dist/{chunk-J556NL2S.js → chunk-UCOTMN3J.js} +2 -2
- package/dist/chunk-VPSYTVWP.js +66 -0
- package/dist/{chunk-KHPTZCPA.js → chunk-WBPDZBUT.js} +5 -33
- package/dist/{chunk-Z2KRB7Z4.js → chunk-XDXRDRTQ.js} +1 -1
- package/dist/chunk-ZA7MIXNW.js +66 -0
- package/dist/deployer/index.d.ts +7 -4
- package/dist/deployer/index.js +4 -4
- package/dist/embeddings/index.js +1 -1
- package/dist/embeddings/model/providers/bedrock.d.ts +42 -0
- package/dist/embeddings/model/providers/bedrock.js +3 -0
- package/dist/embeddings/model/providers/bedrock.test.d.ts +2 -0
- package/dist/embeddings/model/providers/bedrock.test.js +37 -0
- package/dist/embeddings/model/providers/cohere.d.ts +34 -0
- package/dist/embeddings/model/providers/cohere.js +3 -0
- package/dist/embeddings/model/providers/cohere.test.d.ts +2 -0
- package/dist/embeddings/model/providers/cohere.test.js +37 -0
- package/dist/embeddings/model/providers/embedder.d.ts +28 -0
- package/dist/embeddings/model/providers/embedder.js +2 -0
- package/dist/embeddings/model/providers/google.d.ts +34 -0
- package/dist/embeddings/model/providers/google.js +3 -0
- package/dist/embeddings/model/providers/google.test.d.ts +2 -0
- package/dist/embeddings/model/providers/google.test.js +37 -0
- package/dist/embeddings/model/providers/mistral.d.ts +34 -0
- package/dist/embeddings/model/providers/mistral.js +3 -0
- package/dist/embeddings/model/providers/mistral.test.d.ts +2 -0
- package/dist/embeddings/model/providers/mistral.test.js +37 -0
- package/dist/embeddings/model/providers/mock.d.ts +20 -0
- package/dist/embeddings/model/providers/mock.js +3 -0
- package/dist/embeddings/model/providers/mock.test.d.ts +2 -0
- package/dist/embeddings/model/providers/mock.test.js +29 -0
- package/dist/embeddings/model/providers/openai.d.ts +34 -0
- package/dist/embeddings/model/providers/openai.js +3 -0
- package/dist/embeddings/model/providers/openai.test.d.ts +2 -0
- package/dist/embeddings/model/providers/openai.test.js +37 -0
- package/dist/embeddings/model/providers/voyage.d.ts +34 -0
- package/dist/embeddings/model/providers/voyage.js +3 -0
- package/dist/embeddings/model/providers/voyage.test.d.ts +2 -0
- package/dist/embeddings/model/providers/voyage.test.js +37 -0
- package/dist/eval/index.d.ts +4 -4
- package/dist/filter/index.d.ts +1 -1
- package/dist/filter/index.js +1 -1
- package/dist/{index-D-mqcYwN.d.ts → index-B48181D5.d.ts} +6 -13
- package/dist/{index-Cktbxvxx.d.ts → index-CBZ2mk2H.d.ts} +0 -1
- package/dist/index.d.ts +7 -8
- package/dist/index.js +17 -18
- package/dist/integration/index.d.ts +5 -5
- package/dist/llm/index.d.ts +4 -4
- package/dist/llm/index.js +3 -3
- package/dist/{model-CD0nIpJn.d.ts → llm/model/index.d.ts} +17 -3
- package/dist/llm/model/index.js +5 -0
- package/dist/llm/model/providers/anthropic-vertex.d.ts +5 -5
- package/dist/llm/model/providers/anthropic-vertex.js +3 -3
- package/dist/llm/model/providers/anthropic.d.ts +5 -5
- package/dist/llm/model/providers/anthropic.js +3 -3
- package/dist/llm/model/providers/azure.d.ts +5 -5
- package/dist/llm/model/providers/azure.js +3 -3
- package/dist/llm/model/providers/baseten.d.ts +5 -5
- package/dist/llm/model/providers/baseten.js +4 -4
- package/dist/llm/model/providers/bedrock.d.ts +5 -5
- package/dist/llm/model/providers/bedrock.js +3 -3
- package/dist/llm/model/providers/cerebras.d.ts +5 -5
- package/dist/llm/model/providers/cerebras.js +3 -3
- package/dist/llm/model/providers/cohere.d.ts +5 -5
- package/dist/llm/model/providers/cohere.js +3 -3
- package/dist/llm/model/providers/deepinfra.d.ts +5 -5
- package/dist/llm/model/providers/deepinfra.js +3 -3
- package/dist/llm/model/providers/deepseek.d.ts +5 -5
- package/dist/llm/model/providers/deepseek.js +3 -3
- package/dist/llm/model/providers/fireworks.d.ts +5 -5
- package/dist/llm/model/providers/fireworks.js +3 -3
- package/dist/llm/model/providers/google-vertex.d.ts +5 -5
- package/dist/llm/model/providers/google-vertex.js +3 -3
- package/dist/llm/model/providers/google.d.ts +5 -5
- package/dist/llm/model/providers/google.js +3 -3
- package/dist/llm/model/providers/grok.d.ts +5 -5
- package/dist/llm/model/providers/grok.js +3 -3
- package/dist/llm/model/providers/groq.d.ts +5 -5
- package/dist/llm/model/providers/groq.js +3 -3
- package/dist/llm/model/providers/lmstudio.d.ts +5 -5
- package/dist/llm/model/providers/lmstudio.js +4 -4
- package/dist/llm/model/providers/mistral.d.ts +5 -5
- package/dist/llm/model/providers/mistral.js +3 -3
- package/dist/llm/model/providers/mock.d.ts +5 -5
- package/dist/llm/model/providers/mock.js +3 -3
- package/dist/llm/model/providers/ollama.d.ts +5 -5
- package/dist/llm/model/providers/ollama.js +3 -3
- package/dist/llm/model/providers/openai-compat.d.ts +5 -5
- package/dist/llm/model/providers/openai-compat.js +4 -4
- package/dist/llm/model/providers/openai.d.ts +5 -5
- package/dist/llm/model/providers/openai.js +4 -4
- package/dist/llm/model/providers/openai.test.js +4 -4
- package/dist/llm/model/providers/perplexity.d.ts +5 -5
- package/dist/llm/model/providers/perplexity.js +3 -3
- package/dist/llm/model/providers/portkey.d.ts +5 -5
- package/dist/llm/model/providers/portkey.js +3 -3
- package/dist/llm/model/providers/togetherai.d.ts +5 -5
- package/dist/llm/model/providers/togetherai.js +3 -3
- package/dist/logger/index.d.ts +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/mastra/index.d.ts +5 -7
- package/dist/mastra/index.js +4 -4
- package/dist/memory/index.d.ts +4 -4
- package/dist/memory/index.js +3 -3
- package/dist/relevance/index.d.ts +4 -4
- package/dist/relevance/index.js +5 -5
- package/dist/storage/index.d.ts +5 -5
- package/dist/storage/index.js +3 -3
- package/dist/tools/index.d.ts +5 -5
- package/dist/tts/index.d.ts +1 -1
- package/dist/tts/index.js +3 -3
- package/dist/vector/index.d.ts +1 -1
- package/dist/vector/index.js +4 -4
- package/dist/vector/libsql/index.d.ts +31 -0
- package/dist/vector/libsql/index.js +662 -0
- package/dist/{workflow-4u4hE9mG.d.ts → workflow-CSwxE-4q.d.ts} +1 -19
- package/dist/workflows/index.d.ts +6 -6
- package/dist/workflows/index.js +3 -3
- package/package.json +14 -8
- package/dist/chunk-NIYVERVP.js +0 -199
- package/dist/engine/index.d.ts +0 -59
- package/dist/engine/index.js +0 -4
- package/dist/engine-EwEG-4Iv.d.ts +0 -127
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as CustomModelConfig } from '../index-B48181D5.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-CBZ2mk2H.js';
|
|
8
8
|
import 'pino';
|
|
9
9
|
import 'stream';
|
|
10
10
|
import '../telemetry-oCUM52DG.js';
|
|
@@ -12,9 +12,9 @@ import '@opentelemetry/sdk-node';
|
|
|
12
12
|
import '@opentelemetry/sdk-trace-base';
|
|
13
13
|
import '../metric-D2V4CR8D.js';
|
|
14
14
|
import 'sift';
|
|
15
|
-
import '../
|
|
15
|
+
import '../embeddings/model/providers/embedder.js';
|
|
16
16
|
import '../vector/index.js';
|
|
17
|
-
import '../
|
|
17
|
+
import '../types-M16hSruO.js';
|
|
18
18
|
import '../tts/index.js';
|
|
19
19
|
|
|
20
20
|
interface RelevanceScoreProvider {
|
package/dist/relevance/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { CohereRelevanceScorer, MastraAgentRelevanceScorer, createSimilarityPrompt } from '../chunk-U7WDR4WO.js';
|
|
2
|
+
import '../chunk-DINPURQT.js';
|
|
3
3
|
import '../chunk-HBTQNIAX.js';
|
|
4
4
|
import '../chunk-SDKEPBBH.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-RI3ECMVF.js';
|
|
6
6
|
import '../chunk-6ZVFVYLE.js';
|
|
7
7
|
import '../chunk-KNPBNSJ7.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-G4MCO7XF.js';
|
|
9
|
+
import '../chunk-ICMEXHKD.js';
|
|
10
10
|
import '../chunk-AJJZUHB4.js';
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { M as MastraStorage,
|
|
2
|
-
export {
|
|
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
|
+
export { n as WorkflowRow } from '../index-B48181D5.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-CBZ2mk2H.js';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import 'stream';
|
|
11
11
|
import '../telemetry-oCUM52DG.js';
|
|
@@ -13,9 +13,9 @@ import '@opentelemetry/sdk-node';
|
|
|
13
13
|
import '@opentelemetry/sdk-trace-base';
|
|
14
14
|
import '../metric-D2V4CR8D.js';
|
|
15
15
|
import 'sift';
|
|
16
|
-
import '../
|
|
16
|
+
import '../embeddings/model/providers/embedder.js';
|
|
17
17
|
import '../vector/index.js';
|
|
18
|
-
import '../
|
|
18
|
+
import '../types-M16hSruO.js';
|
|
19
19
|
import '../tts/index.js';
|
|
20
20
|
|
|
21
21
|
interface LibSQLConfig {
|
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-XDXRDRTQ.js';
|
|
2
|
+
import '../chunk-G4MCO7XF.js';
|
|
3
|
+
import '../chunk-ICMEXHKD.js';
|
|
4
4
|
import '../chunk-AJJZUHB4.js';
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { k as ToolExecutionContext, T as ToolAction, d as MastraPrimitives } from '../index-B48181D5.js';
|
|
3
|
+
export { at as CoreTool } from '../index-B48181D5.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-CBZ2mk2H.js';
|
|
9
9
|
import 'pino';
|
|
10
10
|
import 'stream';
|
|
11
11
|
import '../telemetry-oCUM52DG.js';
|
|
@@ -13,9 +13,9 @@ import '@opentelemetry/sdk-node';
|
|
|
13
13
|
import '@opentelemetry/sdk-trace-base';
|
|
14
14
|
import '../metric-D2V4CR8D.js';
|
|
15
15
|
import 'sift';
|
|
16
|
-
import '../
|
|
16
|
+
import '../embeddings/model/providers/embedder.js';
|
|
17
17
|
import '../vector/index.js';
|
|
18
|
-
import '../
|
|
18
|
+
import '../types-M16hSruO.js';
|
|
19
19
|
import '../tts/index.js';
|
|
20
20
|
|
|
21
21
|
declare class Tool<TId extends string, TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined, TContext extends ToolExecutionContext<TSchemaIn> = ToolExecutionContext<TSchemaIn>> implements ToolAction<TId, TSchemaIn, TSchemaOut, TContext> {
|
package/dist/tts/index.d.ts
CHANGED
package/dist/tts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { MastraTTS } from '../chunk-
|
|
1
|
+
export { MastraTTS } from '../chunk-ECUVL2G5.js';
|
|
2
2
|
import '../chunk-SDKEPBBH.js';
|
|
3
3
|
import '../chunk-6ZVFVYLE.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-G4MCO7XF.js';
|
|
5
|
+
import '../chunk-ICMEXHKD.js';
|
|
6
6
|
import '../chunk-AJJZUHB4.js';
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MastraBase } from '../base.js';
|
|
2
2
|
import { E as EmbeddingOptions } from '../types-M16hSruO.js';
|
|
3
3
|
import '@opentelemetry/api';
|
|
4
|
-
import '../index-
|
|
4
|
+
import '../index-CBZ2mk2H.js';
|
|
5
5
|
import 'pino';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import '../telemetry-oCUM52DG.js';
|
package/dist/vector/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { MastraVector } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { MastraVector } from '../chunk-UCOTMN3J.js';
|
|
2
|
+
import '../chunk-G4MCO7XF.js';
|
|
3
|
+
import '../chunk-ICMEXHKD.js';
|
|
4
|
+
import '../chunk-BOS3IA23.js';
|
|
5
5
|
import '../chunk-AJJZUHB4.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Filter } from '../../filter/index.js';
|
|
2
|
+
import { MastraVector, QueryResult, IndexStats } from '../index.js';
|
|
3
|
+
import '../../base.js';
|
|
4
|
+
import '@opentelemetry/api';
|
|
5
|
+
import '../../index-CBZ2mk2H.js';
|
|
6
|
+
import 'pino';
|
|
7
|
+
import 'stream';
|
|
8
|
+
import '../../telemetry-oCUM52DG.js';
|
|
9
|
+
import '@opentelemetry/sdk-node';
|
|
10
|
+
import '@opentelemetry/sdk-trace-base';
|
|
11
|
+
import '../../types-M16hSruO.js';
|
|
12
|
+
|
|
13
|
+
declare class LibSQLVector extends MastraVector {
|
|
14
|
+
private turso;
|
|
15
|
+
constructor({ connectionUrl, authToken, syncUrl, syncInterval, }: {
|
|
16
|
+
connectionUrl: string;
|
|
17
|
+
authToken?: string;
|
|
18
|
+
syncUrl?: string;
|
|
19
|
+
syncInterval?: number;
|
|
20
|
+
});
|
|
21
|
+
transformFilter(filter?: Filter): Filter;
|
|
22
|
+
query(indexName: string, queryVector: number[], topK?: number, filter?: Filter, includeVector?: boolean, minScore?: number): Promise<QueryResult[]>;
|
|
23
|
+
upsert(indexName: string, vectors: number[][], metadata?: Record<string, any>[], ids?: string[]): Promise<string[]>;
|
|
24
|
+
createIndex(indexName: string, dimension: number, _metric?: 'cosine' | 'euclidean' | 'dotproduct'): Promise<void>;
|
|
25
|
+
deleteIndex(indexName: string): Promise<void>;
|
|
26
|
+
listIndexes(): Promise<string[]>;
|
|
27
|
+
describeIndex(indexName: string): Promise<IndexStats>;
|
|
28
|
+
truncateIndex(indexName: string): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { LibSQLVector };
|