@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.
Files changed (83) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/agent/index.cjs +8 -8
  3. package/dist/agent/index.js +1 -1
  4. package/dist/agent/input-processor/index.cjs +6 -6
  5. package/dist/agent/input-processor/index.js +1 -1
  6. package/dist/{chunk-PRTH6W72.js → chunk-4VP3M5T7.js} +3 -3
  7. package/dist/{chunk-PRTH6W72.js.map → chunk-4VP3M5T7.js.map} +1 -1
  8. package/dist/{chunk-J52TTT6T.js → chunk-CF3TI576.js} +7 -10
  9. package/dist/chunk-CF3TI576.js.map +1 -0
  10. package/dist/{chunk-WNN3LIOF.js → chunk-ES5UWPHJ.js} +3 -3
  11. package/dist/{chunk-WNN3LIOF.js.map → chunk-ES5UWPHJ.js.map} +1 -1
  12. package/dist/{chunk-BIXBJ4DU.cjs → chunk-FTDM75SW.cjs} +7 -7
  13. package/dist/{chunk-BIXBJ4DU.cjs.map → chunk-FTDM75SW.cjs.map} +1 -1
  14. package/dist/{chunk-ENZVBXRB.js → chunk-K3JIDVC4.js} +69 -3
  15. package/dist/chunk-K3JIDVC4.js.map +1 -0
  16. package/dist/{chunk-KFXKSOXF.js → chunk-LVKX346H.js} +3 -3
  17. package/dist/{chunk-KFXKSOXF.js.map → chunk-LVKX346H.js.map} +1 -1
  18. package/dist/{chunk-KICLFGCP.cjs → chunk-S5QJEY5X.cjs} +69 -3
  19. package/dist/chunk-S5QJEY5X.cjs.map +1 -0
  20. package/dist/{chunk-DORWTJUT.cjs → chunk-UIFZI5XX.cjs} +7 -7
  21. package/dist/{chunk-DORWTJUT.cjs.map → chunk-UIFZI5XX.cjs.map} +1 -1
  22. package/dist/{chunk-L34N5NMP.cjs → chunk-VVH4BOE4.cjs} +4 -4
  23. package/dist/{chunk-L34N5NMP.cjs.map → chunk-VVH4BOE4.cjs.map} +1 -1
  24. package/dist/{chunk-EE5TG5UG.cjs → chunk-W4GRW6AV.cjs} +6 -6
  25. package/dist/{chunk-EE5TG5UG.cjs.map → chunk-W4GRW6AV.cjs.map} +1 -1
  26. package/dist/{chunk-ELLP4WJF.cjs → chunk-YLR7PB3B.cjs} +7 -10
  27. package/dist/chunk-YLR7PB3B.cjs.map +1 -0
  28. package/dist/{chunk-CLEXBHVL.js → chunk-YYZT5JKX.js} +4 -4
  29. package/dist/{chunk-CLEXBHVL.js.map → chunk-YYZT5JKX.js.map} +1 -1
  30. package/dist/index.cjs +22 -22
  31. package/dist/index.js +6 -6
  32. package/dist/loop/index.cjs +2 -2
  33. package/dist/loop/index.js +1 -1
  34. package/dist/loop/loop.d.ts.map +1 -1
  35. package/dist/loop/test-utils/fullStream.d.ts.map +1 -1
  36. package/dist/loop/test-utils/options.d.ts.map +1 -1
  37. package/dist/loop/test-utils/toUIMessageStream.d.ts.map +1 -1
  38. package/dist/loop/test-utils/tools.d.ts.map +1 -1
  39. package/dist/loop/types.d.ts +1 -0
  40. package/dist/loop/types.d.ts.map +1 -1
  41. package/dist/loop/workflow/llm-execution.d.ts.map +1 -1
  42. package/dist/loop/workflow/stream.d.ts +1 -1
  43. package/dist/loop/workflow/stream.d.ts.map +1 -1
  44. package/dist/mastra/index.cjs +2 -2
  45. package/dist/mastra/index.js +1 -1
  46. package/dist/network/index.cjs +2 -2
  47. package/dist/network/index.js +1 -1
  48. package/dist/network/vNext/index.cjs +27 -27
  49. package/dist/network/vNext/index.js +1 -1
  50. package/dist/processors/index.cjs +8 -8
  51. package/dist/processors/index.js +2 -2
  52. package/dist/relevance/index.cjs +4 -4
  53. package/dist/relevance/index.js +1 -1
  54. package/dist/scores/index.cjs +8 -8
  55. package/dist/scores/index.js +1 -1
  56. package/dist/storage/base.d.ts +27 -1
  57. package/dist/storage/base.d.ts.map +1 -1
  58. package/dist/storage/domains/operations/base.d.ts +26 -1
  59. package/dist/storage/domains/operations/base.d.ts.map +1 -1
  60. package/dist/storage/index.cjs +61 -7
  61. package/dist/storage/index.cjs.map +1 -1
  62. package/dist/storage/index.js +57 -3
  63. package/dist/storage/index.js.map +1 -1
  64. package/dist/storage/mock.d.ts +1 -0
  65. package/dist/storage/mock.d.ts.map +1 -1
  66. package/dist/storage/types.d.ts +27 -0
  67. package/dist/storage/types.d.ts.map +1 -1
  68. package/dist/stream/aisdk/v5/output.d.ts.map +1 -1
  69. package/dist/stream/base/output.d.ts +3 -1
  70. package/dist/stream/base/output.d.ts.map +1 -1
  71. package/dist/stream/index.cjs +3 -3
  72. package/dist/stream/index.js +1 -1
  73. package/dist/workflows/evented/index.cjs +10 -10
  74. package/dist/workflows/evented/index.js +1 -1
  75. package/dist/workflows/index.cjs +10 -10
  76. package/dist/workflows/index.js +1 -1
  77. package/dist/workflows/legacy/index.cjs +22 -22
  78. package/dist/workflows/legacy/index.js +1 -1
  79. package/package.json +1 -1
  80. package/dist/chunk-ELLP4WJF.cjs.map +0 -1
  81. package/dist/chunk-ENZVBXRB.js.map +0 -1
  82. package/dist/chunk-J52TTT6T.js.map +0 -1
  83. package/dist/chunk-KICLFGCP.cjs.map +0 -1
@@ -1,5 +1,5 @@
1
- import { MastraStorage } from '../chunk-ENZVBXRB.js';
2
- export { MastraStorage, ensureDate, resolveMessageLimit, serializeDate } from '../chunk-ENZVBXRB.js';
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({