@mastra/deployer 0.24.0-alpha.0 → 1.0.0-beta.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 (89) hide show
  1. package/CHANGELOG.md +244 -75
  2. package/dist/build/analyze.cjs +2 -2
  3. package/dist/build/analyze.js +1 -1
  4. package/dist/build/bundler.cjs +3 -3
  5. package/dist/build/bundler.js +1 -1
  6. package/dist/build/index.cjs +10 -15
  7. package/dist/build/index.d.ts +0 -1
  8. package/dist/build/index.d.ts.map +1 -1
  9. package/dist/build/index.js +3 -4
  10. package/dist/bundler/index.cjs +2 -2
  11. package/dist/bundler/index.d.ts +2 -2
  12. package/dist/bundler/index.d.ts.map +1 -1
  13. package/dist/bundler/index.js +1 -1
  14. package/dist/{chunk-OART5HV7.cjs → chunk-AQAOWLJJ.cjs} +29 -124
  15. package/dist/chunk-AQAOWLJJ.cjs.map +1 -0
  16. package/dist/{chunk-IAEJ3C3J.cjs → chunk-C74EXQSL.cjs} +12 -12
  17. package/dist/chunk-C74EXQSL.cjs.map +1 -0
  18. package/dist/{chunk-CVRN2K4O.js → chunk-H3LLQ2MW.js} +12 -12
  19. package/dist/chunk-H3LLQ2MW.js.map +1 -0
  20. package/dist/{chunk-FD5X42ZU.js → chunk-HQJR52M7.js} +4 -4
  21. package/dist/{chunk-FD5X42ZU.js.map → chunk-HQJR52M7.js.map} +1 -1
  22. package/dist/{chunk-NSINCI76.cjs → chunk-IL2VLNIJ.cjs} +9 -9
  23. package/dist/{chunk-NSINCI76.cjs.map → chunk-IL2VLNIJ.cjs.map} +1 -1
  24. package/dist/{chunk-XHLN6E4D.js → chunk-OFUWEVGF.js} +3 -3
  25. package/dist/{chunk-XHLN6E4D.js.map → chunk-OFUWEVGF.js.map} +1 -1
  26. package/dist/{chunk-Z546LAA6.cjs → chunk-TDWIGFVF.cjs} +14 -14
  27. package/dist/{chunk-Z546LAA6.cjs.map → chunk-TDWIGFVF.cjs.map} +1 -1
  28. package/dist/{chunk-VDRZB7JQ.js → chunk-WBAWUM7Z.js} +23 -116
  29. package/dist/chunk-WBAWUM7Z.js.map +1 -0
  30. package/dist/index.cjs +5 -5
  31. package/dist/index.js +2 -2
  32. package/dist/server/handlers/health.d.ts +5 -0
  33. package/dist/server/handlers/health.d.ts.map +1 -0
  34. package/dist/server/handlers/prompt.d.ts.map +1 -1
  35. package/dist/server/handlers/routes/agent-builder/handlers.d.ts +5 -2
  36. package/dist/server/handlers/routes/agent-builder/handlers.d.ts.map +1 -1
  37. package/dist/server/handlers/routes/agent-builder/router.d.ts.map +1 -1
  38. package/dist/server/handlers/routes/agents/handlers.d.ts +21 -143
  39. package/dist/server/handlers/routes/agents/handlers.d.ts.map +1 -1
  40. package/dist/server/handlers/routes/agents/router.d.ts.map +1 -1
  41. package/dist/server/handlers/routes/logs/handlers.d.ts +3 -3
  42. package/dist/server/handlers/routes/logs/handlers.d.ts.map +1 -1
  43. package/dist/server/handlers/routes/mcp/handlers.d.ts +1 -1
  44. package/dist/server/handlers/routes/mcp/handlers.d.ts.map +1 -1
  45. package/dist/server/handlers/routes/memory/handlers.d.ts +2 -4
  46. package/dist/server/handlers/routes/memory/handlers.d.ts.map +1 -1
  47. package/dist/server/handlers/routes/memory/router.d.ts.map +1 -1
  48. package/dist/server/handlers/routes/observability/handlers.d.ts +3 -3
  49. package/dist/server/handlers/routes/observability/handlers.d.ts.map +1 -1
  50. package/dist/server/handlers/routes/observability/router.d.ts.map +1 -1
  51. package/dist/server/handlers/routes/scores/handlers.d.ts +8 -6
  52. package/dist/server/handlers/routes/scores/handlers.d.ts.map +1 -1
  53. package/dist/server/handlers/routes/tools/handlers.d.ts +1 -1
  54. package/dist/server/handlers/routes/tools/handlers.d.ts.map +1 -1
  55. package/dist/server/handlers/routes/workflows/handlers.d.ts +2 -4
  56. package/dist/server/handlers/routes/workflows/handlers.d.ts.map +1 -1
  57. package/dist/server/handlers/routes/workflows/router.d.ts.map +1 -1
  58. package/dist/server/handlers/utils/query-parsers.d.ts +15 -0
  59. package/dist/server/handlers/utils/query-parsers.d.ts.map +1 -1
  60. package/dist/server/index.cjs +1207 -1559
  61. package/dist/server/index.cjs.map +1 -1
  62. package/dist/server/index.d.ts +2 -2
  63. package/dist/server/index.d.ts.map +1 -1
  64. package/dist/server/index.js +1214 -1566
  65. package/dist/server/index.js.map +1 -1
  66. package/dist/server/welcome.d.ts +1 -1
  67. package/dist/server/welcome.d.ts.map +1 -1
  68. package/package.json +11 -15
  69. package/dist/build/babel/remove-all-options-telemetry.d.ts +0 -5
  70. package/dist/build/babel/remove-all-options-telemetry.d.ts.map +0 -1
  71. package/dist/build/customInstrumentation.d.ts +0 -10
  72. package/dist/build/customInstrumentation.d.ts.map +0 -1
  73. package/dist/build/telemetry.d.ts +0 -8
  74. package/dist/build/telemetry.d.ts.map +0 -1
  75. package/dist/chunk-AJX72IGP.cjs +0 -28
  76. package/dist/chunk-AJX72IGP.cjs.map +0 -1
  77. package/dist/chunk-B2Q76NIL.js +0 -26
  78. package/dist/chunk-B2Q76NIL.js.map +0 -1
  79. package/dist/chunk-CVRN2K4O.js.map +0 -1
  80. package/dist/chunk-IAEJ3C3J.cjs.map +0 -1
  81. package/dist/chunk-OART5HV7.cjs.map +0 -1
  82. package/dist/chunk-VDRZB7JQ.js.map +0 -1
  83. package/dist/server/handlers/routes/telemetry/handlers.d.ts +0 -4
  84. package/dist/server/handlers/routes/telemetry/handlers.d.ts.map +0 -1
  85. package/dist/server/handlers/routes/telemetry/router.d.ts +0 -3
  86. package/dist/server/handlers/routes/telemetry/router.d.ts.map +0 -1
  87. package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts +0 -11
  88. package/dist/server/handlers/routes/workflows/legacyWorkflows.d.ts.map +0 -1
  89. package/dist/templates/instrumentation-template.js +0 -172
package/CHANGELOG.md CHANGED
@@ -1,140 +1,309 @@
1
1
  # @mastra/deployer
2
2
 
3
- ## 0.24.0-alpha.0
3
+ ## 1.0.0-beta.0
4
4
 
5
- ### Minor Changes
5
+ ### Major Changes
6
6
 
7
- - Update peer dependencies to match core package version bump (0.23.4) ([#9487](https://github.com/mastra-ai/mastra/pull/9487))
7
+ - Moving scorers under the eval domain, api method consistency, prebuilt evals, scorers require ids. ([#9589](https://github.com/mastra-ai/mastra/pull/9589))
8
8
 
9
- ### Patch Changes
9
+ - Every Mastra primitive (agent, MCPServer, workflow, tool, processor, scorer, and vector) now has a get, list, and add method associated with it. Each primitive also now requires an id to be set. ([#9675](https://github.com/mastra-ai/mastra/pull/9675))
10
10
 
11
- - update peerdeps ([`5ca1cca`](https://github.com/mastra-ai/mastra/commit/5ca1ccac61ffa7141e6d9fa8f22d3ad4d03bf5dc))
11
+ Primitives that are added to other primitives are also automatically added to the Mastra instance
12
12
 
13
- - Improve analyze recursion in bundler when using monorepos ([#9520](https://github.com/mastra-ai/mastra/pull/9520))
13
+ - Update handlers to use `listWorkflowRuns` instead of `getWorkflowRuns`. Fix type names from `StoragelistThreadsByResourceIdInput/Output` to `StorageListThreadsByResourceIdInput/Output`. ([#9507](https://github.com/mastra-ai/mastra/pull/9507))
14
14
 
15
- - Fixes issue where clicking the reset button in the model picker would fail to restore the original LanguageModelV2 (or any other types) object that was passed during agent construction. ([#9487](https://github.com/mastra-ai/mastra/pull/9487))
15
+ - **BREAKING:** Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
16
16
 
17
- - Make sure external deps are built with side-effects. Fixes an issue with reflect-metadata #7328 ([#9733](https://github.com/mastra-ai/mastra/pull/9733))
17
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
18
18
 
19
- - Remove unused /model-providers API ([#9554](https://github.com/mastra-ai/mastra/pull/9554))
19
+ **Storage changes:**
20
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
21
+ - All storage implementations support `perPage: false`:
22
+ - Memory: `listMessages()`
23
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
24
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
20
25
 
21
- - Fix undefined runtimeContext using memory from playground ([#9548](https://github.com/mastra-ai/mastra/pull/9548))
26
+ **Memory changes:**
27
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
28
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
22
29
 
23
- - Add readable-streams to global externals, not compatible with CJS compilation ([#9738](https://github.com/mastra-ai/mastra/pull/9738))
30
+ **Stricter validation:**
31
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
24
32
 
25
- - fix: add /api route to default public routes to allow unauthenticated ([#9731](https://github.com/mastra-ai/mastra/pull/9731))
26
- access
33
+ **Migration:**
27
34
 
28
- The /api route was returning 401 instead of 200 because it was being caught
29
- by the /api/_ protected pattern. Adding it to the default public routes
30
- ensures the root API endpoint is accessible without authentication while
31
- keeping /api/_ routes protected.
35
+ ```typescript
36
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
37
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
38
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
39
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
40
+
41
+ // Memory: Replace selectBy with flat parameters
42
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
43
+ + memory.query({ threadId, perPage: 20, include: [...] })
44
+
45
+ // Client SDK
46
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
47
+ + thread.listMessages({ page: 0, perPage: 20 })
48
+ ```
32
49
 
33
- - Updated dependencies [[`5ca1cca`](https://github.com/mastra-ai/mastra/commit/5ca1ccac61ffa7141e6d9fa8f22d3ad4d03bf5dc), [`6d7e90d`](https://github.com/mastra-ai/mastra/commit/6d7e90db09713e6250f4d6c3d3cff1b4740e50f9), [`23c2614`](https://github.com/mastra-ai/mastra/commit/23c26140fdbf04b8c59e8d7d52106d67dad962ec), [`f78b908`](https://github.com/mastra-ai/mastra/commit/f78b9080e11af765969b36b4a619761056030840), [`23c2614`](https://github.com/mastra-ai/mastra/commit/23c26140fdbf04b8c59e8d7d52106d67dad962ec), [`186b29b`](https://github.com/mastra-ai/mastra/commit/186b29bd51ac1dcc24ad3825fdb7207a6d6391a6), [`e365eda`](https://github.com/mastra-ai/mastra/commit/e365eda45795b43707310531cac1e2ce4e5a0712)]:
34
- - @mastra/server@0.24.0-alpha.0
35
- - @mastra/core@0.24.0-alpha.0
50
+ - # Major Changes ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
36
51
 
37
- ## 0.23.3
52
+ ## Storage Layer
38
53
 
39
- ### Patch Changes
54
+ ### BREAKING: Removed `storage.getMessages()`
40
55
 
41
- - Make step optional in all resume APIs ([#9462](https://github.com/mastra-ai/mastra/pull/9462))
56
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
42
57
 
43
- - Make step optional in resumeStreamVNext API ([#9461](https://github.com/mastra-ai/mastra/pull/9461))
58
+ **Migration:**
44
59
 
45
- - Updated dependencies [[`b55bbce`](https://github.com/mastra-ai/mastra/commit/b55bbce89404d35fdd967012dd503fae343d4c2d), [`d6cb18e`](https://github.com/mastra-ai/mastra/commit/d6cb18e189fd0ac95d4934cf0d6f2866876d1a2e), [`d0ecff7`](https://github.com/mastra-ai/mastra/commit/d0ecff793d5cd50408cd8d1d113f02e28d897a3d), [`e84a959`](https://github.com/mastra-ai/mastra/commit/e84a9592bfdec4f1c9fdf108c9d4ea4e2ee8f7e3), [`e742d37`](https://github.com/mastra-ai/mastra/commit/e742d371f24ef8059670cc05e9aee308eac068b9)]:
46
- - @mastra/server@0.23.3
47
- - @mastra/core@0.23.3
60
+ ```typescript
61
+ // Before
62
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
63
+
64
+ // After
65
+ const result = await storage.listMessages({
66
+ threadId: 'thread-1',
67
+ page: 0,
68
+ perPage: 50,
69
+ });
70
+ const messages = result.messages; // Access messages array
71
+ console.log(result.total); // Total count
72
+ console.log(result.hasMore); // Whether more pages exist
73
+ ```
48
74
 
49
- ## 0.23.3-alpha.0
75
+ ### Message ordering default
50
76
 
51
- ### Patch Changes
77
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
52
78
 
53
- - Make step optional in all resume APIs ([#9462](https://github.com/mastra-ai/mastra/pull/9462))
79
+ **To use DESC ordering (newest first):**
54
80
 
55
- - Make step optional in resumeStreamVNext API ([#9461](https://github.com/mastra-ai/mastra/pull/9461))
81
+ ```typescript
82
+ const result = await storage.listMessages({
83
+ threadId: 'thread-1',
84
+ orderBy: { field: 'createdAt', direction: 'DESC' },
85
+ });
86
+ ```
56
87
 
57
- - Updated dependencies [[`b55bbce`](https://github.com/mastra-ai/mastra/commit/b55bbce89404d35fdd967012dd503fae343d4c2d), [`d6cb18e`](https://github.com/mastra-ai/mastra/commit/d6cb18e189fd0ac95d4934cf0d6f2866876d1a2e), [`d0ecff7`](https://github.com/mastra-ai/mastra/commit/d0ecff793d5cd50408cd8d1d113f02e28d897a3d), [`e84a959`](https://github.com/mastra-ai/mastra/commit/e84a9592bfdec4f1c9fdf108c9d4ea4e2ee8f7e3), [`e742d37`](https://github.com/mastra-ai/mastra/commit/e742d371f24ef8059670cc05e9aee308eac068b9)]:
58
- - @mastra/server@0.23.3-alpha.0
59
- - @mastra/core@0.23.3-alpha.0
88
+ ## Client SDK
60
89
 
61
- ## 0.23.2
90
+ ### BREAKING: Renamed `client.getThreadMessages()` → `client.listThreadMessages()`
62
91
 
63
- ### Patch Changes
92
+ **Migration:**
64
93
 
65
- - Add exportConditions options to nodeResolve plugin to ensure proper handling of Node.js export condition resolution during production builds. ([#9394](https://github.com/mastra-ai/mastra/pull/9394))
94
+ ```typescript
95
+ // Before
96
+ const response = await client.getThreadMessages(threadId, { agentId });
66
97
 
67
- - Add better error handling during `mastra build` for `ERR_MODULE_NOT_FOUND` cases. ([#9338](https://github.com/mastra-ai/mastra/pull/9338))
98
+ // After
99
+ const response = await client.listThreadMessages(threadId, { agentId });
100
+ ```
68
101
 
69
- - Updated dependencies [[`f57a81e`](https://github.com/mastra-ai/mastra/commit/f57a81e6ce644e45bf1c9618778cc54c50a84ad4), [`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`fc79af3`](https://github.com/mastra-ai/mastra/commit/fc79af3915d1c456729cbd753673b0c0564340d8), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`60bd45d`](https://github.com/mastra-ai/mastra/commit/60bd45de021f0dfbe6583928f6da5169cb5585ba), [`a30093d`](https://github.com/mastra-ai/mastra/commit/a30093de98c1836dcd5dfddf09649010712b8c95), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`e40d4d0`](https://github.com/mastra-ai/mastra/commit/e40d4d0a0971b4505e7c9de73c656066c7565653), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78), [`ff16f9b`](https://github.com/mastra-ai/mastra/commit/ff16f9b9dbc701b26b6c4e9872f759f3880f9327), [`35e6cf7`](https://github.com/mastra-ai/mastra/commit/35e6cf722fef16ea0301eb9cf5a32fe9ccb12d22), [`30a2e36`](https://github.com/mastra-ai/mastra/commit/30a2e369485e0e59c4faa1d83c5635c2260b304c)]:
70
- - @mastra/core@0.23.2
71
- - @mastra/server@0.23.2
102
+ The response format remains the same.
72
103
 
73
- ## 0.23.2-alpha.1
104
+ ## Type Changes
74
105
 
75
- ### Patch Changes
106
+ ### BREAKING: Removed `StorageGetMessagesArg` type
76
107
 
77
- - Updated dependencies [[`f57a81e`](https://github.com/mastra-ai/mastra/commit/f57a81e6ce644e45bf1c9618778cc54c50a84ad4), [`fc79af3`](https://github.com/mastra-ai/mastra/commit/fc79af3915d1c456729cbd753673b0c0564340d8), [`60bd45d`](https://github.com/mastra-ai/mastra/commit/60bd45de021f0dfbe6583928f6da5169cb5585ba), [`a30093d`](https://github.com/mastra-ai/mastra/commit/a30093de98c1836dcd5dfddf09649010712b8c95), [`e40d4d0`](https://github.com/mastra-ai/mastra/commit/e40d4d0a0971b4505e7c9de73c656066c7565653), [`ff16f9b`](https://github.com/mastra-ai/mastra/commit/ff16f9b9dbc701b26b6c4e9872f759f3880f9327), [`35e6cf7`](https://github.com/mastra-ai/mastra/commit/35e6cf722fef16ea0301eb9cf5a32fe9ccb12d22), [`30a2e36`](https://github.com/mastra-ai/mastra/commit/30a2e369485e0e59c4faa1d83c5635c2260b304c)]:
78
- - @mastra/core@0.23.2-alpha.1
79
- - @mastra/server@0.23.2-alpha.1
108
+ Use `StorageListMessagesInput` instead:
80
109
 
81
- ## 0.23.2-alpha.0
110
+ ```typescript
111
+ // Before
112
+ import type { StorageGetMessagesArg } from '@mastra/core';
82
113
 
83
- ### Patch Changes
114
+ // After
115
+ import type { StorageListMessagesInput } from '@mastra/core';
116
+ ```
84
117
 
85
- - Add exportConditions options to nodeResolve plugin to ensure proper handling of Node.js export condition resolution during production builds. ([#9394](https://github.com/mastra-ai/mastra/pull/9394))
118
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
86
119
 
87
- - Add better error handling during `mastra build` for `ERR_MODULE_NOT_FOUND` cases. ([#9338](https://github.com/mastra-ai/mastra/pull/9338))
120
+ - Replace `getThreadsByResourceIdPaginated` with `listThreadsByResourceId` across memory handlers. Update client SDK to use `listThreads()` with `offset`/`limit` parameters instead of deprecated `getMemoryThreads()`. Consolidate `/api/memory/threads` routes to single paginated endpoint. ([#9508](https://github.com/mastra-ai/mastra/pull/9508))
88
121
 
89
- - Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
90
- - @mastra/core@0.23.2-alpha.0
91
- - @mastra/server@0.23.2-alpha.0
122
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
92
123
 
93
- ## 0.23.1
124
+ - Remove `getThreadsByResourceId` and `getThreadsByResourceIdPaginated` methods from storage interfaces in favor of `listThreadsByResourceId`. The new method uses `offset`/`limit` pagination and a nested `orderBy` object structure (`{ field, direction }`). ([#9536](https://github.com/mastra-ai/mastra/pull/9536))
94
125
 
95
- ### Patch Changes
126
+ - Experimental auth -> auth ([#9660](https://github.com/mastra-ai/mastra/pull/9660))
96
127
 
97
- - Fix peerdependencies ([`eb7c1c8`](https://github.com/mastra-ai/mastra/commit/eb7c1c8c592d8fb16dfd250e337d9cdc73c8d5de))
128
+ - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
98
129
 
99
- - Updated dependencies [[`eb7c1c8`](https://github.com/mastra-ai/mastra/commit/eb7c1c8c592d8fb16dfd250e337d9cdc73c8d5de)]:
100
- - @mastra/server@0.23.1
101
- - @mastra/core@0.23.1
130
+ - **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
102
131
 
103
- ## 0.23.0
132
+ This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
104
133
 
105
- ### Minor Changes
134
+ ### What's Changed
135
+ - Removed legacy v1 watch event handlers and types
136
+ - Renamed `watch-v2` to `watch` throughout the codebase
137
+ - Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
138
+ - Removed `/watch` HTTP endpoints from server and deployer
139
+ - Removed `WorkflowWatchResult` and v1 `WatchEvent` types
106
140
 
107
- - Update peer dependencies to match core package version bump (0.22.1) ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
141
+ - **BREAKING CHANGE**: Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
108
142
 
109
- - Update peer dependencies to match core package version bump (0.22.3) ([#9192](https://github.com/mastra-ai/mastra/pull/9192))
143
+ All storage and memory pagination APIs have been updated to use `page` (0-indexed) and `perPage` instead of `offset` and `limit`, aligning with standard REST API patterns.
110
144
 
111
- ### Patch Changes
145
+ **Affected APIs:**
146
+ - `Memory.listThreadsByResourceId()`
147
+ - `Memory.listMessages()`
148
+ - `Storage.listWorkflowRuns()`
112
149
 
113
- - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
150
+ **Migration:**
151
+
152
+ ```typescript
153
+ // Before
154
+ await memory.listThreadsByResourceId({
155
+ resourceId: 'user-123',
156
+ offset: 20,
157
+ limit: 10,
158
+ });
159
+
160
+ // After
161
+ await memory.listThreadsByResourceId({
162
+ resourceId: 'user-123',
163
+ page: 2, // page = Math.floor(offset / limit)
164
+ perPage: 10,
165
+ });
166
+
167
+ // Before
168
+ await memory.listMessages({
169
+ threadId: 'thread-456',
170
+ offset: 20,
171
+ limit: 10,
172
+ });
173
+
174
+ // After
175
+ await memory.listMessages({
176
+ threadId: 'thread-456',
177
+ page: 2,
178
+ perPage: 10,
179
+ });
180
+
181
+ // Before
182
+ await storage.listWorkflowRuns({
183
+ workflowName: 'my-workflow',
184
+ offset: 20,
185
+ limit: 10,
186
+ });
187
+
188
+ // After
189
+ await storage.listWorkflowRuns({
190
+ workflowName: 'my-workflow',
191
+ page: 2,
192
+ perPage: 10,
193
+ });
194
+ ```
195
+
196
+ **Additional improvements:**
197
+ - Added validation for negative `page` values in all storage implementations
198
+ - Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
199
+ - Added reusable query parser utilities for consistent validation in handlers
200
+
201
+ - ```([#9709](https://github.com/mastra-ai/mastra/pull/9709))
202
+ import { Mastra } from '@mastra/core';
203
+ import { Observability } from '@mastra/observability'; // Explicit import
204
+
205
+ const mastra = new Mastra({
206
+ ...other_config,
207
+ observability: new Observability({
208
+ default: { enabled: true }
209
+ }) // Instance
210
+ });
211
+ ```
114
212
 
115
- - Fix error handling and serialization in agent streaming to ensure errors are consistently exposed and preserved. ([#9192](https://github.com/mastra-ai/mastra/pull/9192))
213
+ Instead of:
116
214
 
117
- - Updated dependencies [[`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`2060766`](https://github.com/mastra-ai/mastra/commit/20607667bf78ea104cca3e15dfb93ae0b62c9d18), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3)]:
118
- - @mastra/core@0.23.0
119
- - @mastra/server@0.23.0
215
+ ```
216
+ import { Mastra } from '@mastra/core';
217
+ import '@mastra/observability/init'; // Explicit import
218
+
219
+ const mastra = new Mastra({
220
+ ...other_config,
221
+ observability: {
222
+ default: { enabled: true }
223
+ }
224
+ });
225
+ ```
226
+
227
+ Also renamed a bunch of:
228
+ - `Tracing` things to `Observability` things.
229
+ - `AI-` things to just things.
230
+
231
+ - Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
232
+
233
+ - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
120
234
 
121
- ## 0.23.0-alpha.0
235
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
236
+
237
+ - moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
238
+
239
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
122
240
 
123
241
  ### Minor Changes
124
242
 
243
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
244
+
125
245
  - Update peer dependencies to match core package version bump (0.22.1) ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
126
246
 
127
- - Update peer dependencies to match core package version bump (0.22.3) ([#9192](https://github.com/mastra-ai/mastra/pull/9192))
247
+ - Add observeStream support for agent-builder template installation ([#9372](https://github.com/mastra-ai/mastra/pull/9372))
248
+ - Add observeStream, observeStreamVNext, observeStreamLegacy, and resumeStream methods to agent-builder client SDK
249
+ - Add corresponding server handlers and deployer routes for observe streaming
250
+ - Add tracingOptions parameter to existing agent-builder handlers for parity with workflows
251
+ - Update template installation processor to support both legacy and VNext streaming event formats
252
+
253
+ - Added /health endpoint for service monitoring ([#9142](https://github.com/mastra-ai/mastra/pull/9142))
254
+
255
+ - Update peer dependencies to match core package version bump (0.22.3) ([#9144](https://github.com/mastra-ai/mastra/pull/9144))
128
256
 
129
257
  ### Patch Changes
130
258
 
259
+ - dependencies updates: ([`77ff370`](https://github.com/mastra-ai/mastra/commit/77ff370186ba77955620c465fd2e95360e1947ea))
260
+ - Updated dependency [`@babel/core@^7.28.5` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.28.5) (from `^7.28.4`, in `dependencies`)
261
+
262
+ - Make step optional in all resume APIs ([#9454](https://github.com/mastra-ai/mastra/pull/9454))
263
+
264
+ - Improve analyze recursion in bundler when using monorepos ([#9490](https://github.com/mastra-ai/mastra/pull/9490))
265
+
266
+ - Add exportConditions options to nodeResolve plugin to ensure proper handling of Node.js export condition resolution during production builds. ([#9394](https://github.com/mastra-ai/mastra/pull/9394))
267
+
131
268
  - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
132
269
 
133
- - Fix error handling and serialization in agent streaming to ensure errors are consistently exposed and preserved. ([#9192](https://github.com/mastra-ai/mastra/pull/9192))
270
+ - Fix error handling and serialization in agent streaming to ensure errors are consistently exposed and preserved. ([#9144](https://github.com/mastra-ai/mastra/pull/9144))
271
+
272
+ - Fixes issue where clicking the reset button in the model picker would fail to restore the original LanguageModelV2 (or any other types) object that was passed during agent construction. ([#9481](https://github.com/mastra-ai/mastra/pull/9481))
273
+
274
+ - Make sure external deps are built with side-effects. Fixes an issue with reflect-metadata #7328 ([#9714](https://github.com/mastra-ai/mastra/pull/9714))
275
+
276
+ - Simplify mastra intro doc template ([#9794](https://github.com/mastra-ai/mastra/pull/9794))
277
+
278
+ - Use a shared `getAllToolPaths()` method from the bundler to discover tool paths. ([#9204](https://github.com/mastra-ai/mastra/pull/9204))
279
+
280
+ - Remove unused /model-providers API ([#9533](https://github.com/mastra-ai/mastra/pull/9533))
281
+
282
+ - Fix undefined runtimeContext using memory from playground ([#9328](https://github.com/mastra-ai/mastra/pull/9328))
283
+
284
+ - Make step optional in resumeStreamVNext API ([#9453](https://github.com/mastra-ai/mastra/pull/9453))
285
+
286
+ - Add readable-streams to global externals, not compatible with CJS compilation ([#9735](https://github.com/mastra-ai/mastra/pull/9735))
287
+
288
+ - Remove `waitForEvent` from workflows. `waitForEvent` is now removed, please use suspend & resume flow instead. See https://mastra.ai/en/docs/workflows/suspend-and-resume for more details on suspend & resume flow. ([#9214](https://github.com/mastra-ai/mastra/pull/9214))
289
+
290
+ - Add better error handling during `mastra build` for `ERR_MODULE_NOT_FOUND` cases. ([#9127](https://github.com/mastra-ai/mastra/pull/9127))
291
+
292
+ - Fix generate system prompt by updating deprecated function call. ([#9242](https://github.com/mastra-ai/mastra/pull/9242))
293
+
294
+ - Remove format from stream/generate ([#9577](https://github.com/mastra-ai/mastra/pull/9577))
295
+
296
+ - fix: add /api route to default public routes to allow unauthenticated ([#9662](https://github.com/mastra-ai/mastra/pull/9662))
297
+ access
298
+
299
+ The /api route was returning 401 instead of 200 because it was being caught
300
+ by the /api/_ protected pattern. Adding it to the default public routes
301
+ ensures the root API endpoint is accessible without authentication while
302
+ keeping /api/_ routes protected.
134
303
 
135
- - Updated dependencies [[`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`2060766`](https://github.com/mastra-ai/mastra/commit/20607667bf78ea104cca3e15dfb93ae0b62c9d18), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3)]:
136
- - @mastra/core@0.23.0-alpha.0
137
- - @mastra/server@0.23.0-alpha.0
304
+ - Updated dependencies [[`39c9743`](https://github.com/mastra-ai/mastra/commit/39c97432d084294f8ba85fbf3ef28098ff21459e), [`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`3852192`](https://github.com/mastra-ai/mastra/commit/3852192c81b2a4f1f883f17d80ce50e0c60dba55), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`0491e7c`](https://github.com/mastra-ai/mastra/commit/0491e7c9b714cb0ba22187ee062147ec2dd7c712), [`f6f4903`](https://github.com/mastra-ai/mastra/commit/f6f4903397314f73362061dc5a3e8e7c61ea34aa), [`0e8ed46`](https://github.com/mastra-ai/mastra/commit/0e8ed467c54d6901a6a365f270ec15d6faadb36c), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`2f897df`](https://github.com/mastra-ai/mastra/commit/2f897df208508f46f51b7625e5dd20c37f93e0e3), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`1521d71`](https://github.com/mastra-ai/mastra/commit/1521d716e5daedc74690c983fbd961123c56756b), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`8940859`](https://github.com/mastra-ai/mastra/commit/89408593658199b4ad67f7b65e888f344e64a442), [`ffd8f1b`](https://github.com/mastra-ai/mastra/commit/ffd8f1b904181c68fcbf5a1974e2b96a9303b042), [`e629310`](https://github.com/mastra-ai/mastra/commit/e629310f1a73fa236d49ec7a1d1cceb6229dc7cc), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`b7de533`](https://github.com/mastra-ai/mastra/commit/b7de53361667eb51fefd89fcaed924f3c57cee8d), [`f15fb34`](https://github.com/mastra-ai/mastra/commit/f15fb347b76581ef91a16770bc21e2d50dbe3864), [`71c8d6c`](https://github.com/mastra-ai/mastra/commit/71c8d6c161253207b2b9588bdadb7eed604f7253), [`6179a9b`](https://github.com/mastra-ai/mastra/commit/6179a9ba36ffac326de3cc3c43cdc8028d37c251), [`00f4921`](https://github.com/mastra-ai/mastra/commit/00f4921dd2c91a1e5446799599ef7116a8214a1a), [`70189fc`](https://github.com/mastra-ai/mastra/commit/70189fc9611c3be54e5e655910b672b21ddefb94), [`ca8041c`](https://github.com/mastra-ai/mastra/commit/ca8041cce0379fda22ed293a565bcb5b6ddca68a), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`a8f1494`](https://github.com/mastra-ai/mastra/commit/a8f1494f4bbdc2770bcf327d4c7d869e332183f1), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`a854ede`](https://github.com/mastra-ai/mastra/commit/a854ede62bf5ac0945a624ac48913dd69c73aabf), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`8e85939`](https://github.com/mastra-ai/mastra/commit/8e859393c1cda6ff3d11618ac1150ca6f68175b6), [`3defc80`](https://github.com/mastra-ai/mastra/commit/3defc80cf2b88a1b7fc1cc4ddcb91e982a614609), [`16153fe`](https://github.com/mastra-ai/mastra/commit/16153fe7eb13c99401f48e6ca32707c965ee28b9), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`bc94344`](https://github.com/mastra-ai/mastra/commit/bc943444a1342d8a662151b7bce1df7dae32f59c), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`903f67d`](https://github.com/mastra-ai/mastra/commit/903f67d184504a273893818c02b961f5423a79ad), [`2a90c55`](https://github.com/mastra-ai/mastra/commit/2a90c55a86a9210697d5adaab5ee94584b079adc), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`96d35f6`](https://github.com/mastra-ai/mastra/commit/96d35f61376bc2b1bf148648a2c1985bd51bef55), [`5cbe88a`](https://github.com/mastra-ai/mastra/commit/5cbe88aefbd9f933bca669fd371ea36bf939ac6d), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`d78b38d`](https://github.com/mastra-ai/mastra/commit/d78b38d898fce285260d3bbb4befade54331617f), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`c710c16`](https://github.com/mastra-ai/mastra/commit/c710c1652dccfdc4111c8412bca7a6bb1d48b441), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`398fde3`](https://github.com/mastra-ai/mastra/commit/398fde3f39e707cda79372cdae8f9870e3b57c8d), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`0d7618b`](https://github.com/mastra-ai/mastra/commit/0d7618bc650bf2800934b243eca5648f4aeed9c2), [`7b763e5`](https://github.com/mastra-ai/mastra/commit/7b763e52fc3eaf699c2a99f2adf418dd46e4e9a5), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`3697853`](https://github.com/mastra-ai/mastra/commit/3697853deeb72017d90e0f38a93c1e29221aeca0), [`c23200d`](https://github.com/mastra-ai/mastra/commit/c23200ddfd60830effb39329674ba4ca93be6aac), [`b2e45ec`](https://github.com/mastra-ai/mastra/commit/b2e45eca727a8db01a81ba93f1a5219c7183c839), [`d6d49f7`](https://github.com/mastra-ai/mastra/commit/d6d49f7b8714fa19a52ff9c7cf7fb7e73751901e), [`a534e95`](https://github.com/mastra-ai/mastra/commit/a534e9591f83b3cc1ebff99c67edf4cda7bf81d3), [`9d0e7fe`](https://github.com/mastra-ai/mastra/commit/9d0e7feca8ed98de959f53476ee1456073673348), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`3f2faf2`](https://github.com/mastra-ai/mastra/commit/3f2faf2e2d685d6c053cc5af1bf9fedf267b2ce5), [`22f64bc`](https://github.com/mastra-ai/mastra/commit/22f64bc1d37149480b58bf2fefe35b79a1e3e7d5), [`363284b`](https://github.com/mastra-ai/mastra/commit/363284bb974e850f06f40f89a28c79d9f432d7e4), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`bda6370`](https://github.com/mastra-ai/mastra/commit/bda637009360649aaf579919e7873e33553c273e), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`d7acd8e`](https://github.com/mastra-ai/mastra/commit/d7acd8e987b5d7eff4fd98b0906c17c06a2e83d5), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`735d8c1`](https://github.com/mastra-ai/mastra/commit/735d8c1c0d19fbc09e6f8b66cf41bc7655993838), [`acf322e`](https://github.com/mastra-ai/mastra/commit/acf322e0f1fd0189684cf529d91c694bea918a45), [`c942802`](https://github.com/mastra-ai/mastra/commit/c942802a477a925b01859a7b8688d4355715caaa), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`cc34739`](https://github.com/mastra-ai/mastra/commit/cc34739c34b6266a91bea561119240a7acf47887), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`2b8893c`](https://github.com/mastra-ai/mastra/commit/2b8893cb108ef9acb72ee7835cd625610d2c1a4a), [`8e5c75b`](https://github.com/mastra-ai/mastra/commit/8e5c75bdb1d08a42d45309a4c72def4b6890230f), [`e59e0d3`](https://github.com/mastra-ai/mastra/commit/e59e0d32afb5fcf2c9f3c00c8f81f6c21d3a63fa), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019)]:
305
+ - @mastra/core@1.0.0-beta.0
306
+ - @mastra/server@1.0.0-beta.0
138
307
 
139
308
  ## 0.22.2
140
309
 
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkIAEJ3C3J_cjs = require('../chunk-IAEJ3C3J.cjs');
3
+ var chunkC74EXQSL_cjs = require('../chunk-C74EXQSL.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "analyzeBundle", {
8
8
  enumerable: true,
9
- get: function () { return chunkIAEJ3C3J_cjs.analyzeBundle; }
9
+ get: function () { return chunkC74EXQSL_cjs.analyzeBundle; }
10
10
  });
11
11
  //# sourceMappingURL=analyze.cjs.map
12
12
  //# sourceMappingURL=analyze.cjs.map
@@ -1,3 +1,3 @@
1
- export { analyzeBundle } from '../chunk-CVRN2K4O.js';
1
+ export { analyzeBundle } from '../chunk-H3LLQ2MW.js';
2
2
  //# sourceMappingURL=analyze.js.map
3
3
  //# sourceMappingURL=analyze.js.map
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var chunkNSINCI76_cjs = require('../chunk-NSINCI76.cjs');
3
+ var chunkIL2VLNIJ_cjs = require('../chunk-IL2VLNIJ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "createBundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkNSINCI76_cjs.createBundler; }
9
+ get: function () { return chunkIL2VLNIJ_cjs.createBundler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getInputOptions", {
12
12
  enumerable: true,
13
- get: function () { return chunkNSINCI76_cjs.getInputOptions; }
13
+ get: function () { return chunkIL2VLNIJ_cjs.getInputOptions; }
14
14
  });
15
15
  //# sourceMappingURL=bundler.cjs.map
16
16
  //# sourceMappingURL=bundler.cjs.map
@@ -1,3 +1,3 @@
1
- export { createBundler, getInputOptions } from '../chunk-XHLN6E4D.js';
1
+ export { createBundler, getInputOptions } from '../chunk-OFUWEVGF.js';
2
2
  //# sourceMappingURL=bundler.js.map
3
3
  //# sourceMappingURL=bundler.js.map
@@ -1,44 +1,39 @@
1
1
  'use strict';
2
2
 
3
- var chunkZ546LAA6_cjs = require('../chunk-Z546LAA6.cjs');
4
- var chunkAJX72IGP_cjs = require('../chunk-AJX72IGP.cjs');
5
- var chunkNSINCI76_cjs = require('../chunk-NSINCI76.cjs');
6
- var chunkIAEJ3C3J_cjs = require('../chunk-IAEJ3C3J.cjs');
3
+ var chunkTDWIGFVF_cjs = require('../chunk-TDWIGFVF.cjs');
4
+ var chunkIL2VLNIJ_cjs = require('../chunk-IL2VLNIJ.cjs');
5
+ var chunkC74EXQSL_cjs = require('../chunk-C74EXQSL.cjs');
7
6
  var chunk3JYRSECU_cjs = require('../chunk-3JYRSECU.cjs');
8
7
 
9
8
 
10
9
 
11
10
  Object.defineProperty(exports, "createWatcher", {
12
11
  enumerable: true,
13
- get: function () { return chunkZ546LAA6_cjs.createWatcher; }
12
+ get: function () { return chunkTDWIGFVF_cjs.createWatcher; }
14
13
  });
15
14
  Object.defineProperty(exports, "getServerOptions", {
16
15
  enumerable: true,
17
- get: function () { return chunkZ546LAA6_cjs.getServerOptions; }
16
+ get: function () { return chunkTDWIGFVF_cjs.getServerOptions; }
18
17
  });
19
18
  Object.defineProperty(exports, "getWatcherInputOptions", {
20
19
  enumerable: true,
21
- get: function () { return chunkZ546LAA6_cjs.getInputOptions; }
22
- });
23
- Object.defineProperty(exports, "writeTelemetryConfig", {
24
- enumerable: true,
25
- get: function () { return chunkAJX72IGP_cjs.writeTelemetryConfig; }
20
+ get: function () { return chunkTDWIGFVF_cjs.getInputOptions; }
26
21
  });
27
22
  Object.defineProperty(exports, "createBundler", {
28
23
  enumerable: true,
29
- get: function () { return chunkNSINCI76_cjs.createBundler; }
24
+ get: function () { return chunkIL2VLNIJ_cjs.createBundler; }
30
25
  });
31
26
  Object.defineProperty(exports, "getBundlerInputOptions", {
32
27
  enumerable: true,
33
- get: function () { return chunkNSINCI76_cjs.getInputOptions; }
28
+ get: function () { return chunkIL2VLNIJ_cjs.getInputOptions; }
34
29
  });
35
30
  Object.defineProperty(exports, "analyzeBundle", {
36
31
  enumerable: true,
37
- get: function () { return chunkIAEJ3C3J_cjs.analyzeBundle; }
32
+ get: function () { return chunkC74EXQSL_cjs.analyzeBundle; }
38
33
  });
39
34
  Object.defineProperty(exports, "getBundlerOptions", {
40
35
  enumerable: true,
41
- get: function () { return chunkIAEJ3C3J_cjs.getBundlerOptions; }
36
+ get: function () { return chunkC74EXQSL_cjs.getBundlerOptions; }
42
37
  });
43
38
  Object.defineProperty(exports, "Deps", {
44
39
  enumerable: true,
@@ -3,7 +3,6 @@ export { createWatcher, getInputOptions as getWatcherInputOptions } from './watc
3
3
  export { analyzeBundle } from './analyze/index.js';
4
4
  export { FileService } from '../services/fs.js';
5
5
  export { Deps } from '../services/deps.js';
6
- export { writeTelemetryConfig } from './telemetry.js';
7
6
  export { getServerOptions } from './serverOptions.js';
8
7
  export { getBundlerOptions } from './bundlerOptions.js';
9
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/build/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,eAAe,IAAI,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
@@ -1,7 +1,6 @@
1
- export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-FD5X42ZU.js';
2
- export { writeTelemetryConfig } from '../chunk-B2Q76NIL.js';
3
- export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-XHLN6E4D.js';
4
- export { analyzeBundle, getBundlerOptions } from '../chunk-CVRN2K4O.js';
1
+ export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-HQJR52M7.js';
2
+ export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-OFUWEVGF.js';
3
+ export { analyzeBundle, getBundlerOptions } from '../chunk-H3LLQ2MW.js';
5
4
  export { Deps, FileService } from '../chunk-5QFG6SCM.js';
6
5
  //# sourceMappingURL=index.js.map
7
6
  //# sourceMappingURL=index.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkOART5HV7_cjs = require('../chunk-OART5HV7.cjs');
3
+ var chunkAQAOWLJJ_cjs = require('../chunk-AQAOWLJJ.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "Bundler", {
8
8
  enumerable: true,
9
- get: function () { return chunkOART5HV7_cjs.Bundler; }
9
+ get: function () { return chunkAQAOWLJJ_cjs.Bundler; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
@@ -6,7 +6,6 @@ export declare abstract class Bundler extends MastraBundler {
6
6
  protected outputDir: string;
7
7
  constructor(name: string, component?: 'BUNDLER' | 'DEPLOYER');
8
8
  prepare(outputDirectory: string): Promise<void>;
9
- writeInstrumentationFile(outputDirectory: string, customInstrumentationFile?: string): Promise<void>;
10
9
  writePackageJson(outputDirectory: string, dependencies: Map<string, string>, resolutions?: Record<string, string>): Promise<void>;
11
10
  protected createBundler(inputOptions: InputOptions, outputOptions: Partial<OutputOptions> & {
12
11
  dir: string;
@@ -31,7 +30,8 @@ export declare abstract class Bundler extends MastraBundler {
31
30
  enableSourcemap?: boolean;
32
31
  enableEsmShim?: boolean;
33
32
  }): Promise<InputOptions>;
34
- getToolsInputOptions(toolsPaths: (string | string[])[]): Promise<Record<string, string>>;
33
+ getAllToolPaths(mastraDir: string, toolsPaths?: (string | string[])[]): (string | string[])[];
34
+ listToolsInputOptions(toolsPaths: (string | string[])[]): Promise<Record<string, string>>;
35
35
  protected _bundle(serverFile: string, mastraEntryFile: string, { projectRoot, outputDirectory, enableEsmShim, }: {
36
36
  projectRoot: string;
37
37
  outputDirectory: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bundler/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAKrD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE1D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAUjD,8BAAsB,OAAQ,SAAQ,aAAa;IACjD,SAAS,CAAC,gBAAgB,SAAY;IACtC,SAAS,CAAC,SAAS,SAAY;gBAEnB,IAAI,EAAE,MAAM,EAAE,SAAS,GAAE,SAAS,GAAG,UAAsB;IAIjE,OAAO,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ/C,wBAAwB,CAAC,eAAe,EAAE,MAAM,EAAE,yBAAyB,CAAC,EAAE,MAAM;IAWpF,gBAAgB,CACpB,eAAe,EAAE,MAAM,EACvB,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IA0DtC,S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