@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.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkS5QJEY5X_cjs = require('../chunk-S5QJEY5X.cjs');
|
|
4
4
|
var chunkXUAWHRUO_cjs = require('../chunk-XUAWHRUO.cjs');
|
|
5
5
|
var chunkDUUXEPE5_cjs = require('../chunk-DUUXEPE5.cjs');
|
|
6
6
|
var chunkC73WLCY3_cjs = require('../chunk-C73WLCY3.cjs');
|
|
@@ -916,6 +916,59 @@ var StoreOperations = class extends chunkKXCUCBEI_cjs.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 chunkC73WLCY3_cjs.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 chunkC73WLCY3_cjs.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 chunkC73WLCY3_cjs.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 chunkC73WLCY3_cjs.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
|
|
@@ -1365,7 +1418,7 @@ var WorkflowsInMemory = class extends WorkflowsStorage {
|
|
|
1365
1418
|
};
|
|
1366
1419
|
|
|
1367
1420
|
// src/storage/mock.ts
|
|
1368
|
-
var InMemoryStore = class extends
|
|
1421
|
+
var InMemoryStore = class extends chunkS5QJEY5X_cjs.MastraStorage {
|
|
1369
1422
|
stores;
|
|
1370
1423
|
constructor() {
|
|
1371
1424
|
super({ name: "InMemoryStorage" });
|
|
@@ -1415,7 +1468,8 @@ var InMemoryStore = class extends chunkKICLFGCP_cjs.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({
|
|
@@ -1649,19 +1703,19 @@ function safelyParseJSON(input) {
|
|
|
1649
1703
|
|
|
1650
1704
|
Object.defineProperty(exports, "MastraStorage", {
|
|
1651
1705
|
enumerable: true,
|
|
1652
|
-
get: function () { return
|
|
1706
|
+
get: function () { return chunkS5QJEY5X_cjs.MastraStorage; }
|
|
1653
1707
|
});
|
|
1654
1708
|
Object.defineProperty(exports, "ensureDate", {
|
|
1655
1709
|
enumerable: true,
|
|
1656
|
-
get: function () { return
|
|
1710
|
+
get: function () { return chunkS5QJEY5X_cjs.ensureDate; }
|
|
1657
1711
|
});
|
|
1658
1712
|
Object.defineProperty(exports, "resolveMessageLimit", {
|
|
1659
1713
|
enumerable: true,
|
|
1660
|
-
get: function () { return
|
|
1714
|
+
get: function () { return chunkS5QJEY5X_cjs.resolveMessageLimit; }
|
|
1661
1715
|
});
|
|
1662
1716
|
Object.defineProperty(exports, "serializeDate", {
|
|
1663
1717
|
enumerable: true,
|
|
1664
|
-
get: function () { return
|
|
1718
|
+
get: function () { return chunkS5QJEY5X_cjs.serializeDate; }
|
|
1665
1719
|
});
|
|
1666
1720
|
Object.defineProperty(exports, "AI_SPAN_SCHEMA", {
|
|
1667
1721
|
enumerable: true,
|