@mastra/server 1.6.0-alpha.0 → 1.7.0-alpha.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 +66 -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 +9 -9
  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,71 @@
1
1
  # @mastra/server
2
2
 
3
+ ## 1.7.0-alpha.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), [`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-alpha.0
13
+
14
+ ## 1.6.0
15
+
16
+ ### Minor Changes
17
+
18
+ - Added Processor Providers — a new system for configuring and hydrating processors on stored agents. Define custom processor types with config schemas, available phases, and a factory method, then compose them into serializable processor graphs that support sequential, parallel, and conditional execution. ([#13219](https://github.com/mastra-ai/mastra/pull/13219))
19
+
20
+ **Example — custom processor provider:**
21
+
22
+ ```ts
23
+ import { MastraEditor } from '@mastra/editor';
24
+
25
+ // Built-in processors (token-limiter, unicode-normalizer, etc.) are registered automatically.
26
+ // Only register custom providers for your own processors:
27
+ const editor = new MastraEditor({
28
+ processorProviders: {
29
+ 'my-custom-filter': myCustomFilterProvider,
30
+ },
31
+ });
32
+ ```
33
+
34
+ **Example — stored agent with a processor graph:**
35
+
36
+ ```ts
37
+ const agentConfig = {
38
+ inputProcessors: {
39
+ steps: [
40
+ {
41
+ type: 'step',
42
+ step: { id: 'norm', providerId: 'unicode-normalizer', config: {}, enabledPhases: ['processInput'] },
43
+ },
44
+ {
45
+ type: 'step',
46
+ step: {
47
+ id: 'limit',
48
+ providerId: 'token-limiter',
49
+ config: { limit: 4000 },
50
+ enabledPhases: ['processInput', 'processOutputStream'],
51
+ },
52
+ },
53
+ ],
54
+ },
55
+ };
56
+ ```
57
+
58
+ ### Patch Changes
59
+
60
+ - Added skill editing and workspace support in the agent CMS. Agents can now toggle skills on/off and associate a workspace. Fixed auto-versioning to compare against the latest draft version instead of the published one, preventing stale draft configs from being returned after saves. ([#13314](https://github.com/mastra-ai/mastra/pull/13314))
61
+
62
+ - Fixed recursive schema warnings for processor graph entries by unrolling to a fixed depth of 3 levels, matching the existing rule group pattern ([#13292](https://github.com/mastra-ai/mastra/pull/13292))
63
+
64
+ - Workspace tools like `ast_edit` are now correctly detected at runtime based on available dependencies (e.g. `@ast-grep/napi`), preventing missing tools from being advertised to agents. ([#13233](https://github.com/mastra-ai/mastra/pull/13233))
65
+
66
+ - Updated dependencies [[`0d9efb4`](https://github.com/mastra-ai/mastra/commit/0d9efb47992c34aa90581c18b9f51f774f6252a5), [`5caa13d`](https://github.com/mastra-ai/mastra/commit/5caa13d1b2a496e2565ab124a11de9a51ad3e3b9), [`940163f`](https://github.com/mastra-ai/mastra/commit/940163fc492401d7562301e6f106ccef4fefe06f), [`47892c8`](https://github.com/mastra-ai/mastra/commit/47892c85708eac348209f99f10f9a5f5267e11c0), [`45bb78b`](https://github.com/mastra-ai/mastra/commit/45bb78b70bd9db29678fe49476cd9f4ed01bfd0b), [`70eef84`](https://github.com/mastra-ai/mastra/commit/70eef84b8f44493598fdafa2980a0e7283415eda), [`d84e52d`](https://github.com/mastra-ai/mastra/commit/d84e52d0f6511283ddd21ed5fe7f945449d0f799), [`24b80af`](https://github.com/mastra-ai/mastra/commit/24b80af87da93bb84d389340181e17b7477fa9ca), [`608e156`](https://github.com/mastra-ai/mastra/commit/608e156def954c9604c5e3f6d9dfce3bcc7aeab0), [`2b2e157`](https://github.com/mastra-ai/mastra/commit/2b2e157a092cd597d9d3f0000d62b8bb4a7348ed), [`59d30b5`](https://github.com/mastra-ai/mastra/commit/59d30b5d0cb44ea7a1c440e7460dfb57eac9a9b5), [`453693b`](https://github.com/mastra-ai/mastra/commit/453693bf9e265ddccecef901d50da6caaea0fbc6), [`78d1c80`](https://github.com/mastra-ai/mastra/commit/78d1c808ad90201897a300af551bcc1d34458a20), [`c204b63`](https://github.com/mastra-ai/mastra/commit/c204b632d19e66acb6d6e19b11c4540dd6ad5380), [`742a417`](https://github.com/mastra-ai/mastra/commit/742a417896088220a3b5560c354c45c5ca6d88b9)]:
67
+ - @mastra/core@1.6.0
68
+
3
69
  ## 1.6.0-alpha.0
4
70
 
5
71
  ### 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