@mastra/server 1.6.0 → 1.7.0

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 (48) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{chunk-P4O7OBGH.cjs → chunk-3BKGGOC6.cjs} +3 -3
  3. package/dist/{chunk-P4O7OBGH.cjs.map → chunk-3BKGGOC6.cjs.map} +1 -1
  4. package/dist/{chunk-CMYJ32N3.js → chunk-EFKPTKKF.js} +51 -15
  5. package/dist/chunk-EFKPTKKF.js.map +1 -0
  6. package/dist/{chunk-NC6UUX6D.js → chunk-KTGIAURI.js} +3 -2
  7. package/dist/chunk-KTGIAURI.js.map +1 -0
  8. package/dist/{chunk-NGFAF6WW.cjs → chunk-MJLQLQ6K.cjs} +51 -15
  9. package/dist/chunk-MJLQLQ6K.cjs.map +1 -0
  10. package/dist/{chunk-VHBLYGH7.js → chunk-PGB5HYV7.js} +3 -3
  11. package/dist/{chunk-VHBLYGH7.js.map → chunk-PGB5HYV7.js.map} +1 -1
  12. package/dist/{chunk-GPRCK7GP.cjs → chunk-ZE4IJKQD.cjs} +3 -2
  13. package/dist/chunk-ZE4IJKQD.cjs.map +1 -0
  14. package/dist/{observational-memory-ZNTAIUGT-565A3END.cjs → observational-memory-AJWSMZVP-HI6EWRCH.cjs} +29 -12
  15. package/dist/observational-memory-AJWSMZVP-HI6EWRCH.cjs.map +1 -0
  16. package/dist/{observational-memory-ZNTAIUGT-VIXA4SKE.js → observational-memory-AJWSMZVP-J3OYOGXO.js} +29 -12
  17. package/dist/observational-memory-AJWSMZVP-J3OYOGXO.js.map +1 -0
  18. package/dist/server/handlers/agent-builder.cjs +16 -16
  19. package/dist/server/handlers/agent-builder.js +1 -1
  20. package/dist/server/handlers/prompt-block-versions.cjs +8 -8
  21. package/dist/server/handlers/prompt-block-versions.d.ts +6 -0
  22. package/dist/server/handlers/prompt-block-versions.d.ts.map +1 -1
  23. package/dist/server/handlers/prompt-block-versions.js +1 -1
  24. package/dist/server/handlers/stored-prompt-blocks.cjs +6 -6
  25. package/dist/server/handlers/stored-prompt-blocks.d.ts +16 -4
  26. package/dist/server/handlers/stored-prompt-blocks.d.ts.map +1 -1
  27. package/dist/server/handlers/stored-prompt-blocks.js +1 -1
  28. package/dist/server/handlers.cjs +2 -2
  29. package/dist/server/handlers.js +1 -1
  30. package/dist/server/schemas/prompt-block-versions.d.ts +27 -0
  31. package/dist/server/schemas/prompt-block-versions.d.ts.map +1 -1
  32. package/dist/server/schemas/stored-prompt-blocks.d.ts +44 -4
  33. package/dist/server/schemas/stored-prompt-blocks.d.ts.map +1 -1
  34. package/dist/server/server-adapter/index.cjs +30 -30
  35. package/dist/server/server-adapter/index.js +3 -3
  36. package/package.json +6 -6
  37. package/dist/chunk-CMYJ32N3.js.map +0 -1
  38. package/dist/chunk-GPRCK7GP.cjs.map +0 -1
  39. package/dist/chunk-NC6UUX6D.js.map +0 -1
  40. package/dist/chunk-NGFAF6WW.cjs.map +0 -1
  41. package/dist/docs/SKILL.md +0 -28
  42. package/dist/docs/assets/SOURCE_MAP.json +0 -6
  43. package/dist/docs/references/docs-server-custom-adapters.md +0 -374
  44. package/dist/docs/references/reference-server-create-route.md +0 -260
  45. package/dist/docs/references/reference-server-mastra-server.md +0 -298
  46. package/dist/docs/references/reference-server-routes.md +0 -306
  47. package/dist/observational-memory-ZNTAIUGT-565A3END.cjs.map +0 -1
  48. package/dist/observational-memory-ZNTAIUGT-VIXA4SKE.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @mastra/server
2
2
 
3
+ ## 1.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Prompt blocks can now define their own variables schema (`requestContextSchema`), allowing you to create reusable prompt blocks with typed variable placeholders. The server now correctly computes and returns draft/published status for prompt blocks. Existing databases are automatically migrated when upgrading. ([#13351](https://github.com/mastra-ai/mastra/pull/13351))
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`24284ff`](https://github.com/mastra-ai/mastra/commit/24284ffae306ddf0ab83273e13f033520839ef40), [`f5097cc`](https://github.com/mastra-ai/mastra/commit/f5097cc8a813c82c3378882c31178320cadeb655), [`71e237f`](https://github.com/mastra-ai/mastra/commit/71e237fa852a3ad9a50a3ddb3b5f3b20b9a8181c), [`13a291e`](https://github.com/mastra-ai/mastra/commit/13a291ebb9f9bca80befa0d9166b916bb348e8e9), [`397af5a`](https://github.com/mastra-ai/mastra/commit/397af5a69f34d4157f51a7c8da3f1ded1e1d611c), [`d4701f7`](https://github.com/mastra-ai/mastra/commit/d4701f7e24822b081b70f9c806c39411b1a712e7), [`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc), [`6184727`](https://github.com/mastra-ai/mastra/commit/6184727e812bf7a65cee209bacec3a2f5a16e923), [`0c338b8`](https://github.com/mastra-ai/mastra/commit/0c338b87362dcd95ff8191ca00df645b6953f534), [`6f6385b`](https://github.com/mastra-ai/mastra/commit/6f6385be5b33687cd21e71fc27e972e6928bb34c), [`14aba61`](https://github.com/mastra-ai/mastra/commit/14aba61b9cff76d72bc7ef6f3a83ae2c5d059193), [`dd9dd1c`](https://github.com/mastra-ai/mastra/commit/dd9dd1c9ae32ae79093f8c4adde1732ac6357233)]:
12
+ - @mastra/core@1.7.0
13
+
14
+ ## 1.7.0-alpha.0
15
+
16
+ ### Minor Changes
17
+
18
+ - Prompt blocks can now define their own variables schema (`requestContextSchema`), allowing you to create reusable prompt blocks with typed variable placeholders. The server now correctly computes and returns draft/published status for prompt blocks. Existing databases are automatically migrated when upgrading. ([#13351](https://github.com/mastra-ai/mastra/pull/13351))
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`24284ff`](https://github.com/mastra-ai/mastra/commit/24284ffae306ddf0ab83273e13f033520839ef40), [`f5097cc`](https://github.com/mastra-ai/mastra/commit/f5097cc8a813c82c3378882c31178320cadeb655), [`71e237f`](https://github.com/mastra-ai/mastra/commit/71e237fa852a3ad9a50a3ddb3b5f3b20b9a8181c), [`13a291e`](https://github.com/mastra-ai/mastra/commit/13a291ebb9f9bca80befa0d9166b916bb348e8e9), [`397af5a`](https://github.com/mastra-ai/mastra/commit/397af5a69f34d4157f51a7c8da3f1ded1e1d611c), [`d4701f7`](https://github.com/mastra-ai/mastra/commit/d4701f7e24822b081b70f9c806c39411b1a712e7), [`2b40831`](https://github.com/mastra-ai/mastra/commit/2b40831dcca2275c9570ddf09b7f25ba3e8dc7fc), [`6184727`](https://github.com/mastra-ai/mastra/commit/6184727e812bf7a65cee209bacec3a2f5a16e923), [`6f6385b`](https://github.com/mastra-ai/mastra/commit/6f6385be5b33687cd21e71fc27e972e6928bb34c), [`14aba61`](https://github.com/mastra-ai/mastra/commit/14aba61b9cff76d72bc7ef6f3a83ae2c5d059193), [`dd9dd1c`](https://github.com/mastra-ai/mastra/commit/dd9dd1c9ae32ae79093f8c4adde1732ac6357233)]:
23
+ - @mastra/core@1.7.0-alpha.0
24
+
3
25
  ## 1.6.0
4
26
 
5
27
  ### Minor Changes
@@ -29286,7 +29286,7 @@ Notes:
29286
29286
  "Observational memory async buffering is enabled by default but the installed version of @mastra/core does not support it. Either upgrade @mastra/core, @mastra/memory, and your storage adapter (@mastra/libsql, @mastra/pg, or @mastra/mongodb) to the latest version, or explicitly disable async buffering by setting `observation: { bufferTokens: false }` in your observationalMemory config."
29287
29287
  );
29288
29288
  }
29289
- const { ObservationalMemory } = await import('./observational-memory-ZNTAIUGT-565A3END.cjs');
29289
+ const { ObservationalMemory } = await import('./observational-memory-AJWSMZVP-HI6EWRCH.cjs');
29290
29290
  return new ObservationalMemory({
29291
29291
  storage: memoryStore,
29292
29292
  scope: omConfig.scope,
@@ -40204,5 +40204,5 @@ exports.START_ASYNC_AGENT_BUILDER_ACTION_ROUTE = START_ASYNC_AGENT_BUILDER_ACTIO
40204
40204
  exports.STREAM_AGENT_BUILDER_ACTION_ROUTE = STREAM_AGENT_BUILDER_ACTION_ROUTE;
40205
40205
  exports.STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE = STREAM_LEGACY_AGENT_BUILDER_ACTION_ROUTE;
40206
40206
  exports.agent_builder_exports = agent_builder_exports;
40207
- //# sourceMappingURL=chunk-P4O7OBGH.cjs.map
40208
- //# sourceMappingURL=chunk-P4O7OBGH.cjs.map
40207
+ //# sourceMappingURL=chunk-3BKGGOC6.cjs.map
40208
+ //# sourceMappingURL=chunk-3BKGGOC6.cjs.map