@mastra/core 0.16.4-alpha.1 → 0.16.4-alpha.2
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/CHANGELOG.md +8 -0
- package/dist/agent/index.cjs +8 -8
- package/dist/agent/index.js +1 -1
- package/dist/agent/input-processor/index.cjs +6 -6
- package/dist/agent/input-processor/index.js +1 -1
- package/dist/{chunk-PRTH6W72.js → chunk-4VP3M5T7.js} +3 -3
- package/dist/{chunk-PRTH6W72.js.map → chunk-4VP3M5T7.js.map} +1 -1
- package/dist/{chunk-J52TTT6T.js → chunk-CF3TI576.js} +7 -10
- package/dist/chunk-CF3TI576.js.map +1 -0
- package/dist/{chunk-WNN3LIOF.js → chunk-ES5UWPHJ.js} +3 -3
- package/dist/{chunk-WNN3LIOF.js.map → chunk-ES5UWPHJ.js.map} +1 -1
- package/dist/{chunk-BIXBJ4DU.cjs → chunk-FTDM75SW.cjs} +7 -7
- package/dist/{chunk-BIXBJ4DU.cjs.map → chunk-FTDM75SW.cjs.map} +1 -1
- package/dist/{chunk-ENZVBXRB.js → chunk-K3JIDVC4.js} +69 -3
- package/dist/chunk-K3JIDVC4.js.map +1 -0
- package/dist/{chunk-KFXKSOXF.js → chunk-LVKX346H.js} +3 -3
- package/dist/{chunk-KFXKSOXF.js.map → chunk-LVKX346H.js.map} +1 -1
- package/dist/{chunk-KICLFGCP.cjs → chunk-S5QJEY5X.cjs} +69 -3
- package/dist/chunk-S5QJEY5X.cjs.map +1 -0
- package/dist/{chunk-DORWTJUT.cjs → chunk-UIFZI5XX.cjs} +7 -7
- package/dist/{chunk-DORWTJUT.cjs.map → chunk-UIFZI5XX.cjs.map} +1 -1
- package/dist/{chunk-L34N5NMP.cjs → chunk-VVH4BOE4.cjs} +4 -4
- package/dist/{chunk-L34N5NMP.cjs.map → chunk-VVH4BOE4.cjs.map} +1 -1
- package/dist/{chunk-EE5TG5UG.cjs → chunk-W4GRW6AV.cjs} +6 -6
- package/dist/{chunk-EE5TG5UG.cjs.map → chunk-W4GRW6AV.cjs.map} +1 -1
- package/dist/{chunk-ELLP4WJF.cjs → chunk-YLR7PB3B.cjs} +7 -10
- package/dist/chunk-YLR7PB3B.cjs.map +1 -0
- package/dist/{chunk-CLEXBHVL.js → chunk-YYZT5JKX.js} +4 -4
- package/dist/{chunk-CLEXBHVL.js.map → chunk-YYZT5JKX.js.map} +1 -1
- package/dist/index.cjs +22 -22
- package/dist/index.js +6 -6
- package/dist/loop/index.cjs +2 -2
- package/dist/loop/index.js +1 -1
- package/dist/loop/loop.d.ts.map +1 -1
- package/dist/loop/test-utils/fullStream.d.ts.map +1 -1
- package/dist/loop/test-utils/options.d.ts.map +1 -1
- package/dist/loop/test-utils/toUIMessageStream.d.ts.map +1 -1
- package/dist/loop/test-utils/tools.d.ts.map +1 -1
- package/dist/loop/types.d.ts +1 -0
- package/dist/loop/types.d.ts.map +1 -1
- package/dist/loop/workflow/llm-execution.d.ts.map +1 -1
- package/dist/loop/workflow/stream.d.ts +1 -1
- package/dist/loop/workflow/stream.d.ts.map +1 -1
- package/dist/mastra/index.cjs +2 -2
- package/dist/mastra/index.js +1 -1
- package/dist/network/index.cjs +2 -2
- package/dist/network/index.js +1 -1
- package/dist/network/vNext/index.cjs +27 -27
- package/dist/network/vNext/index.js +1 -1
- package/dist/processors/index.cjs +8 -8
- package/dist/processors/index.js +2 -2
- package/dist/relevance/index.cjs +4 -4
- package/dist/relevance/index.js +1 -1
- package/dist/scores/index.cjs +8 -8
- package/dist/scores/index.js +1 -1
- package/dist/storage/base.d.ts +27 -1
- package/dist/storage/base.d.ts.map +1 -1
- package/dist/storage/domains/operations/base.d.ts +26 -1
- package/dist/storage/domains/operations/base.d.ts.map +1 -1
- package/dist/storage/index.cjs +61 -7
- package/dist/storage/index.cjs.map +1 -1
- package/dist/storage/index.js +57 -3
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/mock.d.ts +1 -0
- package/dist/storage/mock.d.ts.map +1 -1
- package/dist/storage/types.d.ts +27 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
- package/dist/stream/base/output.d.ts +3 -1
- package/dist/stream/base/output.d.ts.map +1 -1
- package/dist/stream/index.cjs +3 -3
- package/dist/stream/index.js +1 -1
- package/dist/workflows/evented/index.cjs +10 -10
- package/dist/workflows/evented/index.js +1 -1
- package/dist/workflows/index.cjs +10 -10
- package/dist/workflows/index.js +1 -1
- package/dist/workflows/legacy/index.cjs +22 -22
- package/dist/workflows/legacy/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-ELLP4WJF.cjs.map +0 -1
- package/dist/chunk-ENZVBXRB.js.map +0 -1
- package/dist/chunk-J52TTT6T.js.map +0 -1
- package/dist/chunk-KICLFGCP.cjs.map +0 -1
package/dist/storage/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MastraStorage } from '../chunk-
|
|
2
|
-
export { MastraStorage, ensureDate, resolveMessageLimit, serializeDate } from '../chunk-
|
|
1
|
+
import { MastraStorage } from '../chunk-K3JIDVC4.js';
|
|
2
|
+
export { MastraStorage, ensureDate, resolveMessageLimit, serializeDate } from '../chunk-K3JIDVC4.js';
|
|
3
3
|
import { TABLE_WORKFLOW_SNAPSHOT, TABLE_EVALS, TABLE_TRACES } from '../chunk-R5GESRGB.js';
|
|
4
4
|
export { AI_SPAN_SCHEMA, SCORERS_SCHEMA, TABLE_AI_SPANS, TABLE_EVALS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEMAS, TABLE_SCORERS, TABLE_THREADS, TABLE_TRACES, TABLE_WORKFLOW_SNAPSHOT } from '../chunk-R5GESRGB.js';
|
|
5
5
|
import { MessageList } from '../chunk-ZDMAOD35.js';
|
|
@@ -916,6 +916,59 @@ var StoreOperations = class extends MastraBase {
|
|
|
916
916
|
return "DEFAULT ''";
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
+
/**
|
|
920
|
+
* DATABASE INDEX MANAGEMENT
|
|
921
|
+
* Optional methods for database index management.
|
|
922
|
+
* Storage adapters can override these to provide index management capabilities.
|
|
923
|
+
*/
|
|
924
|
+
/**
|
|
925
|
+
* Creates a database index on specified columns
|
|
926
|
+
* @throws {MastraError} if not supported by the storage adapter
|
|
927
|
+
*/
|
|
928
|
+
async createIndex(_options) {
|
|
929
|
+
throw new MastraError({
|
|
930
|
+
id: "MASTRA_STORAGE_CREATE_INDEX_NOT_SUPPORTED",
|
|
931
|
+
domain: "STORAGE" /* STORAGE */,
|
|
932
|
+
category: "SYSTEM" /* SYSTEM */,
|
|
933
|
+
text: `Index management is not supported by this storage adapter`
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Drops a database index by name
|
|
938
|
+
* @throws {MastraError} if not supported by the storage adapter
|
|
939
|
+
*/
|
|
940
|
+
async dropIndex(_indexName) {
|
|
941
|
+
throw new MastraError({
|
|
942
|
+
id: "MASTRA_STORAGE_DROP_INDEX_NOT_SUPPORTED",
|
|
943
|
+
domain: "STORAGE" /* STORAGE */,
|
|
944
|
+
category: "SYSTEM" /* SYSTEM */,
|
|
945
|
+
text: `Index management is not supported by this storage adapter`
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* Lists database indexes for a table or all tables
|
|
950
|
+
* @throws {MastraError} if not supported by the storage adapter
|
|
951
|
+
*/
|
|
952
|
+
async listIndexes(_tableName) {
|
|
953
|
+
throw new MastraError({
|
|
954
|
+
id: "MASTRA_STORAGE_LIST_INDEXES_NOT_SUPPORTED",
|
|
955
|
+
domain: "STORAGE" /* STORAGE */,
|
|
956
|
+
category: "SYSTEM" /* SYSTEM */,
|
|
957
|
+
text: `Index management is not supported by this storage adapter`
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Gets detailed statistics for a specific index
|
|
962
|
+
* @throws {MastraError} if not supported by the storage adapter
|
|
963
|
+
*/
|
|
964
|
+
async describeIndex(_indexName) {
|
|
965
|
+
throw new MastraError({
|
|
966
|
+
id: "MASTRA_STORAGE_DESCRIBE_INDEX_NOT_SUPPORTED",
|
|
967
|
+
domain: "STORAGE" /* STORAGE */,
|
|
968
|
+
category: "SYSTEM" /* SYSTEM */,
|
|
969
|
+
text: `Index management is not supported by this storage adapter`
|
|
970
|
+
});
|
|
971
|
+
}
|
|
919
972
|
};
|
|
920
973
|
|
|
921
974
|
// src/storage/domains/operations/inmemory.ts
|
|
@@ -1415,7 +1468,8 @@ var InMemoryStore = class extends MastraStorage {
|
|
|
1415
1468
|
hasColumn: false,
|
|
1416
1469
|
createTable: false,
|
|
1417
1470
|
deleteMessages: true,
|
|
1418
|
-
aiTracing: true
|
|
1471
|
+
aiTracing: true,
|
|
1472
|
+
indexManagement: false
|
|
1419
1473
|
};
|
|
1420
1474
|
}
|
|
1421
1475
|
async persistWorkflowSnapshot({
|