@mastra/mcp-docs-server 1.0.2-alpha.2 → 1.0.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 (36) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +3 -1
  2. package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +3 -1
  3. package/.docs/organized/changelogs/%40internal%2Fplayground.md +14 -0
  4. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +8 -8
  5. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +3 -1
  6. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +13 -13
  7. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +14 -14
  8. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +78 -78
  9. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +148 -148
  10. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +76 -76
  11. package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +41 -0
  12. package/.docs/organized/changelogs/%40mastra%2Fconvex.md +10 -10
  13. package/.docs/organized/changelogs/%40mastra%2Fcore.md +103 -103
  14. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +10 -10
  15. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +17 -17
  16. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +9 -9
  17. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +9 -9
  18. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +98 -98
  19. package/.docs/organized/changelogs/%40mastra%2Fevals.md +11 -11
  20. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +98 -98
  21. package/.docs/organized/changelogs/%40mastra%2Floggers.md +10 -10
  22. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +8 -8
  23. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +25 -25
  24. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +94 -94
  25. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +12 -12
  26. package/.docs/organized/changelogs/%40mastra%2Fpg.md +98 -98
  27. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +184 -184
  28. package/.docs/organized/changelogs/%40mastra%2Frag.md +70 -70
  29. package/.docs/organized/changelogs/%40mastra%2Freact.md +34 -34
  30. package/.docs/organized/changelogs/%40mastra%2Fserver.md +186 -186
  31. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +9 -0
  32. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +10 -10
  33. package/.docs/organized/changelogs/create-mastra.md +7 -7
  34. package/.docs/organized/changelogs/mastra.md +101 -101
  35. package/CHANGELOG.md +7 -0
  36. package/package.json +5 -5
@@ -1,5 +1,190 @@
1
1
  # @mastra/server
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Restructured stored agents to use a thin metadata record with versioned configuration snapshots. ([#12488](https://github.com/mastra-ai/mastra/pull/12488))
8
+
9
+ The agent record now only stores metadata fields (id, status, activeVersionId, authorId, metadata, timestamps). All configuration fields (name, instructions, model, tools, etc.) live exclusively in version snapshot rows, enabling full version history and rollback.
10
+
11
+ **Key changes:**
12
+ - Stored Agent records are now thin metadata-only (StorageAgentType)
13
+ - All config lives in version snapshots (StorageAgentSnapshotType)
14
+ - New resolved type (StorageResolvedAgentType) merges agent record + active version config
15
+ - Renamed `ownerId` to `authorId` for multi-tenant filtering
16
+ - Changed `memory` field type from `string` to `Record<string, unknown>`
17
+ - Added `status` field ('draft' | 'published') to agent records
18
+ - Flattened CreateAgent/UpdateAgent input types (config fields at top level, no nested snapshot)
19
+ - Version config columns are top-level in the agent_versions table (no single snapshot jsonb column)
20
+ - List endpoints return resolved agents (thin record + active version config)
21
+ - Auto-versioning on update with retention limits and race condition handling
22
+
23
+ - Added explicit auth control to built-in API routes. All routes now have a requiresAuth property that determines whether authentication is required. This eliminates route matching overhead and makes auth requirements clear in route definitions. Routes default to requiresAuth: true (protected) for security. To make a route public, set requiresAuth: false in the route definition. ([#12153](https://github.com/mastra-ai/mastra/pull/12153))
24
+
25
+ - Added dynamic agent management with CRUD operations and version tracking ([#12038](https://github.com/mastra-ai/mastra/pull/12038))
26
+
27
+ **New Features:**
28
+ - Create, edit, and delete agents directly from the Mastra Studio UI
29
+ - Full version history for agents with compare and restore capabilities
30
+ - Visual diff viewer to compare agent configurations across versions
31
+ - Agent creation modal with comprehensive configuration options (model selection, instructions, tools, workflows, sub-agents, memory)
32
+ - AI-powered instruction enhancement
33
+
34
+ **Storage:**
35
+ - New storage interfaces for stored agents and agent versions
36
+ - PostgreSQL, LibSQL, and MongoDB implementations included
37
+ - In-memory storage for development and testing
38
+
39
+ **API:**
40
+ - RESTful endpoints for agent CRUD operations
41
+ - Version management endpoints (create, list, activate, restore, delete, compare)
42
+ - Automatic versioning on agent updates when enabled
43
+
44
+ **Client SDK:**
45
+ - JavaScript client with full support for stored agents and versions
46
+ - Type-safe methods for all CRUD and version operations
47
+
48
+ **Usage Example:**
49
+
50
+ ```typescript
51
+ // Server-side: Configure storage
52
+ import { Mastra } from '@mastra/core';
53
+ import { PgAgentsStorage } from '@mastra/pg';
54
+
55
+ const mastra = new Mastra({
56
+ agents: { agentOne },
57
+ storage: {
58
+ agents: new PgAgentsStorage({
59
+ connectionString: process.env.DATABASE_URL,
60
+ }),
61
+ },
62
+ });
63
+
64
+ // Client-side: Use the SDK
65
+ import { MastraClient } from '@mastra/client-js';
66
+
67
+ const client = new MastraClient({ baseUrl: 'http://localhost:3000' });
68
+
69
+ // Create a stored agent
70
+ const agent = await client.createStoredAgent({
71
+ name: 'Customer Support Agent',
72
+ description: 'Handles customer inquiries',
73
+ model: { provider: 'ANTHROPIC', name: 'claude-sonnet-4-5' },
74
+ instructions: 'You are a helpful customer support agent...',
75
+ tools: ['search', 'email'],
76
+ });
77
+
78
+ // Create a version snapshot
79
+ await client.storedAgent(agent.id).createVersion({
80
+ name: 'v1.0 - Initial release',
81
+ changeMessage: 'First production version',
82
+ });
83
+
84
+ // Compare versions
85
+ const diff = await client.storedAgent(agent.id).compareVersions('version-1', 'version-2');
86
+ ```
87
+
88
+ **Why:**
89
+ This feature enables teams to manage agents dynamically without code changes, making it easier to iterate on agent configurations and maintain a complete audit trail of changes.
90
+
91
+ - Added support for including custom API routes in the generated OpenAPI documentation. Custom routes registered via `registerApiRoute()` now appear in the OpenAPI spec alongside built-in Mastra routes. ([#11786](https://github.com/mastra-ai/mastra/pull/11786))
92
+
93
+ - Added workspace API endpoints for filesystem operations, skill management, and content search. ([#11986](https://github.com/mastra-ai/mastra/pull/11986))
94
+
95
+ **New endpoints:**
96
+ - `GET /workspaces` - List all workspaces (from Mastra instance and agents)
97
+ - `GET /workspaces/:workspaceId` - Get workspace info and capabilities
98
+ - `GET/POST/DELETE /workspaces/:workspaceId/fs/*` - Filesystem operations (read, write, list, delete, mkdir, stat)
99
+ - `GET /workspaces/:workspaceId/skills` - List available skills
100
+ - `GET /workspaces/:workspaceId/skills/:skillName` - Get skill details
101
+ - `GET /workspaces/:workspaceId/skills/:skillName/references` - List skill references
102
+ - `GET /workspaces/:workspaceId/search` - Search indexed content
103
+
104
+ **Usage:**
105
+
106
+ ```typescript
107
+ // List workspaces
108
+ const { workspaces } = await fetch('/api/workspaces').then(r => r.json());
109
+ const workspaceId = workspaces[0].id;
110
+
111
+ // Read a file
112
+ const response = await fetch(`/api/workspaces/${workspaceId}/fs/read?path=/docs/guide.md`);
113
+ const { content } = await response.json();
114
+
115
+ // List skills
116
+ const skills = await fetch(`/api/workspaces/${workspaceId}/skills`).then(r => r.json());
117
+
118
+ // Search content
119
+ const results = await fetch(`/api/workspaces/${workspaceId}/search?query=authentication&mode=hybrid`).then(r =>
120
+ r.json(),
121
+ );
122
+ ```
123
+
124
+ ### Patch Changes
125
+
126
+ - Fixed server handlers to find stored and sub-agents, not just registered agents. Agents created via the API or stored in the database are now correctly resolved in A2A, memory, scores, tools, and voice endpoints. ([#12481](https://github.com/mastra-ai/mastra/pull/12481))
127
+
128
+ - Fixed a bug introduced in PR #12251 where requestContext was not passed through to agent and workflow operations. This could cause tools and nested operations that rely on requestContext values to fail or behave incorrectly. ([#12428](https://github.com/mastra-ai/mastra/pull/12428))
129
+
130
+ - Fix broken import for deepEqual by inlining the function into server. ([#12446](https://github.com/mastra-ai/mastra/pull/12446))
131
+
132
+ - Added requestContextSchema type support. ([#12259](https://github.com/mastra-ai/mastra/pull/12259))
133
+
134
+ - Fixed authentication bypass for custom routes in dev mode. Routes registered with registerApiRoute and requiresAuth: true now correctly enforce authentication even when MASTRA_DEV=true. ([#12339](https://github.com/mastra-ai/mastra/pull/12339))
135
+
136
+ - Fixed malformed JSON body handling in Hono adapter. When a POST request contains invalid JSON (e.g., missing closing braces), the server now returns HTTP 400 Bad Request with a structured error message instead of silently accepting the request with HTTP 200. This prevents workflows from starting with undefined input data. ([#12310](https://github.com/mastra-ai/mastra/issues/12310)) ([#12332](https://github.com/mastra-ai/mastra/pull/12332))
137
+
138
+ - Fix path parameter routes not respecting requiresAuth setting ([#12143](https://github.com/mastra-ai/mastra/pull/12143))
139
+
140
+ Fixes issue where custom API routes with path parameters (e.g., `/users/:id`) were incorrectly requiring authentication even when `requiresAuth` was set to `false`. The authentication middleware now uses pattern matching to correctly match dynamic routes against registered patterns.
141
+
142
+ Changes:
143
+ - Inlined path pattern matching utility (based on regexparam) to avoid dependency complexity
144
+ - Updated `isCustomRoutePublic()` to iterate through routes and match path patterns
145
+ - Enhanced `pathMatchesPattern()` to support path parameters (`:id`), optional parameters (`:id?`), and wildcards (`*`)
146
+ - Added comprehensive test coverage for path parameter matching scenarios
147
+
148
+ Fixes #12106
149
+
150
+ - Improves CommonJS support by adding typefiles to the root directory ([#12068](https://github.com/mastra-ai/mastra/pull/12068))
151
+
152
+ - Added `mcpOptions` to server adapters for serverless MCP support. ([#12324](https://github.com/mastra-ai/mastra/pull/12324))
153
+
154
+ **Why:** MCP HTTP transport uses session management by default, which requires persistent state across requests. This doesn't work in serverless environments like Cloudflare Workers or Vercel Edge where each request runs in isolation. The new `mcpOptions` parameter lets you enable stateless mode without overriding the entire `sendResponse()` method.
155
+
156
+ **Before:**
157
+
158
+ ```typescript
159
+ const server = new MastraServer({
160
+ app,
161
+ mastra,
162
+ });
163
+ // No way to pass serverless option to MCP HTTP transport
164
+ ```
165
+
166
+ **After:**
167
+
168
+ ```typescript
169
+ const server = new MastraServer({
170
+ app,
171
+ mastra,
172
+ mcpOptions: {
173
+ serverless: true,
174
+ },
175
+ });
176
+ // MCP HTTP transport now runs in stateless mode
177
+ ```
178
+
179
+ - Fixed memory API endpoints to respect MASTRA_RESOURCE_ID_KEY and MASTRA_THREAD_ID_KEY from middleware. Previously, these endpoints ignored the reserved context keys and used client-provided values directly, allowing authenticated users to potentially access other users' threads and messages. Now when middleware sets these reserved keys, they take precedence over client-provided values for secure user isolation. ([#12251](https://github.com/mastra-ai/mastra/pull/12251))
180
+
181
+ - Route prefixes are now normalized for consistent handling (trailing slashes removed, leading slashes added, multiple slashes collapsed). ([#12295](https://github.com/mastra-ai/mastra/pull/12295))
182
+
183
+ - Fixed route prefix behavior to correctly replace the default /api prefix instead of prepending to it. Previously, setting prefix: '/api/v2' resulted in routes at /api/v2/api/agents. Now routes correctly appear at /api/v2/agents as documented. ([#12221](https://github.com/mastra-ai/mastra/pull/12221))
184
+
185
+ - Updated dependencies [[`90fc0e5`](https://github.com/mastra-ai/mastra/commit/90fc0e5717cb280c2d4acf4f0410b510bb4c0a72), [`1cf5d2e`](https://github.com/mastra-ai/mastra/commit/1cf5d2ea1b085be23e34fb506c80c80a4e6d9c2b), [`b99ceac`](https://github.com/mastra-ai/mastra/commit/b99ceace2c830dbdef47c8692d56a91954aefea2), [`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f), [`833ae96`](https://github.com/mastra-ai/mastra/commit/833ae96c3e34370e58a1e979571c41f39a720592), [`943772b`](https://github.com/mastra-ai/mastra/commit/943772b4378f625f0f4e19ea2b7c392bd8e71786), [`b5c711b`](https://github.com/mastra-ai/mastra/commit/b5c711b281dd1fb81a399a766bc9f86c55efc13e), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`1e49e7a`](https://github.com/mastra-ai/mastra/commit/1e49e7ab5f173582154cb26b29d424de67d09aef), [`751eaab`](https://github.com/mastra-ai/mastra/commit/751eaab4e0d3820a94e4c3d39a2ff2663ded3d91), [`69d8156`](https://github.com/mastra-ai/mastra/commit/69d81568bcf062557c24471ce26812446bec465d), [`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`5c544c8`](https://github.com/mastra-ai/mastra/commit/5c544c8d12b08ab40d64d8f37b3c4215bee95b87), [`771ad96`](https://github.com/mastra-ai/mastra/commit/771ad962441996b5c43549391a3e6a02c6ddedc2), [`2b0936b`](https://github.com/mastra-ai/mastra/commit/2b0936b0c9a43eeed9bef63e614d7e02ee803f7e), [`3b04f30`](https://github.com/mastra-ai/mastra/commit/3b04f3010604f3cdfc8a0674731700ad66471cee), [`97e26de`](https://github.com/mastra-ai/mastra/commit/97e26deaebd9836647a67b96423281d66421ca07), [`ac9ec66`](https://github.com/mastra-ai/mastra/commit/ac9ec6672779b2e6d4344e415481d1a6a7d4911a), [`10523f4`](https://github.com/mastra-ai/mastra/commit/10523f4882d9b874b40ce6e3715f66dbcd4947d2), [`cb72d20`](https://github.com/mastra-ai/mastra/commit/cb72d2069d7339bda8a0e76d4f35615debb07b84), [`42856b1`](https://github.com/mastra-ai/mastra/commit/42856b1c8aeea6371c9ee77ae2f5f5fe34400933), [`66f33ff`](https://github.com/mastra-ai/mastra/commit/66f33ff68620018513e499c394411d1d39b3aa5c), [`ab3c190`](https://github.com/mastra-ai/mastra/commit/ab3c1901980a99910ca9b96a7090c22e24060113), [`d4f06c8`](https://github.com/mastra-ai/mastra/commit/d4f06c85ffa5bb0da38fb82ebf3b040cc6b4ec4e), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`bc9fa00`](https://github.com/mastra-ai/mastra/commit/bc9fa00859c5c4a796d53a0a5cae46ab4a3072e4), [`f46a478`](https://github.com/mastra-ai/mastra/commit/f46a4782f595949c696569e891f81c8d26338508), [`90fc0e5`](https://github.com/mastra-ai/mastra/commit/90fc0e5717cb280c2d4acf4f0410b510bb4c0a72), [`f05a3a5`](https://github.com/mastra-ai/mastra/commit/f05a3a5cf2b9a9c2d40c09cb8c762a4b6cd5d565), [`a291da9`](https://github.com/mastra-ai/mastra/commit/a291da9363efd92dafd8775dccb4f2d0511ece7a), [`c5d71da`](https://github.com/mastra-ai/mastra/commit/c5d71da1c680ce5640b1a7f8ca0e024a4ab1cfed), [`07042f9`](https://github.com/mastra-ai/mastra/commit/07042f9f89080f38b8f72713ba1c972d5b1905b8), [`0423442`](https://github.com/mastra-ai/mastra/commit/0423442b7be2dfacba95890bea8f4a810db4d603)]:
186
+ - @mastra/core@1.1.0
187
+
3
188
  ## 1.1.0-alpha.2
4
189
 
5
190
  ### Patch Changes
@@ -314,189 +499,4 @@
314
499
 
315
500
  The response format remains the same.
316
501
 
317
- **Removed `StorageGetMessagesArg` type**
318
-
319
- Use `StorageListMessagesInput` instead:
320
-
321
- ```typescript
322
- // Before
323
- import type { StorageGetMessagesArg } from '@mastra/core';
324
-
325
- // After
326
- import type { StorageListMessagesInput } from '@mastra/core';
327
- ```
328
-
329
- - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
330
-
331
- - 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))
332
-
333
- - This simplifies the Memory API by removing the confusing rememberMessages method and renaming query to recall for better clarity. ([#9701](https://github.com/mastra-ai/mastra/pull/9701))
334
-
335
- The rememberMessages method name implied it might persist data when it was actually just retrieving messages, same as query. Having two methods that did essentially the same thing was unnecessary.
336
-
337
- Before:
338
-
339
- ```typescript
340
- // Two methods that did the same thing
341
- memory.rememberMessages({ threadId, resourceId, config, vectorMessageSearch });
342
- memory.query({ threadId, resourceId, perPage, vectorSearchString });
343
- ```
344
-
345
- After:
346
-
347
- ```typescript
348
- // Single unified method with clear purpose
349
- memory.recall({ threadId, resourceId, perPage, vectorMessageSearch, threadConfig });
350
- ```
351
-
352
- All usages have been updated across the codebase including tests. The agent now calls recall directly with the appropriate parameters.
353
-
354
- - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
355
-
356
- - Rename `defaultVNextStreamOptions` to `defaultOptions`. Add "Legacy" suffix to v1 option properties and methods (`defaultGenerateOptions` → `defaultGenerateOptionsLegacy`, `defaultStreamOptions` → `defaultStreamOptionsLegacy`). ([#9535](https://github.com/mastra-ai/mastra/pull/9535))
357
-
358
- - **Breaking Change**: Convert OUTPUT generic from `OutputSchema` constraint to plain generic ([#11741](https://github.com/mastra-ai/mastra/pull/11741))
359
-
360
- This change removes the direct dependency on Zod typings in the public API by converting all `OUTPUT extends OutputSchema` generic constraints to plain `OUTPUT` generics throughout the codebase. This is preparation for moving to a standard schema approach.
361
- - All generic type parameters previously constrained to `OutputSchema` (e.g., `<OUTPUT extends OutputSchema = undefined>`) are now plain generics with defaults (e.g., `<OUTPUT = undefined>`)
362
- - Affects all public APIs including `Agent`, `MastraModelOutput`, `AgentExecutionOptions`, and stream/generate methods
363
- - `InferSchemaOutput<OUTPUT>` replaced with `OUTPUT` throughout
364
- - `PartialSchemaOutput<OUTPUT>` replaced with `Partial<OUTPUT>`
365
- - Schema fields now use `NonNullable<OutputSchema<OUTPUT>>` instead of `OUTPUT` directly
366
- - Added `FullOutput<OUTPUT>` type representing complete output with all fields
367
- - Added `AgentExecutionOptionsBase<OUTPUT>` type
368
- - `getFullOutput()` method now returns `Promise<FullOutput<OUTPUT>>`
369
- - `Agent` class now generic: `Agent<TAgentId, TTools, TOutput>`
370
- - `agent.generate()` and `agent.stream()` methods have updated signatures
371
- - `MastraModelOutput<OUTPUT>` no longer requires `OutputSchema` constraint
372
- - Network route and streaming APIs updated to use plain OUTPUT generic
373
-
374
- **Before:**
375
-
376
- ```typescript
377
- const output = await agent.generate<z.ZodType>([...], {
378
- structuredOutput: { schema: mySchema }
379
- });
380
-
381
- **After:**
382
- const output = await agent.generate<z.infer<typeof mySchema>>([...], {
383
- structuredOutput: { schema: mySchema }
384
- });
385
- // Or rely on type inference:
386
- const output = await agent.generate([...], {
387
- structuredOutput: { schema: mySchema }
388
- });
389
-
390
- ```
391
-
392
- - 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))
393
-
394
- - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
395
-
396
- - **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
397
-
398
- This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
399
-
400
- **What's Changed**
401
- - Removed legacy v1 watch event handlers and types
402
- - Renamed `watch-v2` to `watch` throughout the codebase
403
- - Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
404
- - Removed `/watch` HTTP endpoints from server and deployer
405
- - Removed `WorkflowWatchResult` and v1 `WatchEvent` types
406
-
407
- - Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
408
-
409
- 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.
410
-
411
- **Affected APIs:**
412
- - `Memory.listThreadsByResourceId()`
413
- - `Memory.listMessages()`
414
- - `Storage.listWorkflowRuns()`
415
-
416
- **Migration:**
417
-
418
- ```typescript
419
- // Before
420
- await memory.listThreadsByResourceId({
421
- resourceId: 'user-123',
422
- offset: 20,
423
- limit: 10,
424
- });
425
-
426
- // After
427
- await memory.listThreadsByResourceId({
428
- resourceId: 'user-123',
429
- page: 2, // page = Math.floor(offset / limit)
430
- perPage: 10,
431
- });
432
-
433
- // Before
434
- await memory.listMessages({
435
- threadId: 'thread-456',
436
- offset: 20,
437
- limit: 10,
438
- });
439
-
440
- // After
441
- await memory.listMessages({
442
- threadId: 'thread-456',
443
- page: 2,
444
- perPage: 10,
445
- });
446
-
447
- // Before
448
- await storage.listWorkflowRuns({
449
- workflowName: 'my-workflow',
450
- offset: 20,
451
- limit: 10,
452
- });
453
-
454
- // After
455
- await storage.listWorkflowRuns({
456
- workflowName: 'my-workflow',
457
- page: 2,
458
- perPage: 10,
459
- });
460
- ```
461
-
462
- **Additional improvements:**
463
- - Added validation for negative `page` values in all storage implementations
464
- - Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
465
- - Added reusable query parser utilities for consistent validation in handlers
466
-
467
- - Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
468
-
469
- - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
470
-
471
- - Remove deprecated vector prompts and cohere provider from code ([#9596](https://github.com/mastra-ai/mastra/pull/9596))
472
-
473
- - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
474
-
475
- - Enforcing id required on Processor primitive ([#9591](https://github.com/mastra-ai/mastra/pull/9591))
476
-
477
- - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
478
- Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
479
-
480
- - moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
481
-
482
- - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
483
-
484
- ### Minor Changes
485
-
486
- - Add stored agents support ([#10953](https://github.com/mastra-ai/mastra/pull/10953))
487
-
488
- Agents can now be stored in the database and loaded at runtime. This lets you persist agent configurations and dynamically create executable Agent instances from storage.
489
-
490
- ```typescript
491
- import { Mastra } from '@mastra/core';
492
- import { LibSQLStore } from '@mastra/libsql';
493
-
494
- const mastra = new Mastra({
495
- storage: new LibSQLStore({ url: ':memory:' }),
496
- tools: { myTool },
497
- scorers: { myScorer },
498
- });
499
-
500
- // Create agent in storage via API or directly
501
-
502
- ... 6298 more lines hidden. See full changelog in package directory.
502
+ ... 6483 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,14 @@
1
1
  # @mastra/voice-google-gemini-live
2
2
 
3
+ ## 0.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dependencies updates: ([#11645](https://github.com/mastra-ai/mastra/pull/11645))
8
+ - Updated dependency [`ws@^8.19.0` ↗︎](https://www.npmjs.com/package/ws/v/8.19.0) (from `^8.18.3`, in `dependencies`)
9
+ - Updated dependencies [[`90fc0e5`](https://github.com/mastra-ai/mastra/commit/90fc0e5717cb280c2d4acf4f0410b510bb4c0a72), [`1cf5d2e`](https://github.com/mastra-ai/mastra/commit/1cf5d2ea1b085be23e34fb506c80c80a4e6d9c2b), [`b99ceac`](https://github.com/mastra-ai/mastra/commit/b99ceace2c830dbdef47c8692d56a91954aefea2), [`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f), [`833ae96`](https://github.com/mastra-ai/mastra/commit/833ae96c3e34370e58a1e979571c41f39a720592), [`943772b`](https://github.com/mastra-ai/mastra/commit/943772b4378f625f0f4e19ea2b7c392bd8e71786), [`b5c711b`](https://github.com/mastra-ai/mastra/commit/b5c711b281dd1fb81a399a766bc9f86c55efc13e), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`1e49e7a`](https://github.com/mastra-ai/mastra/commit/1e49e7ab5f173582154cb26b29d424de67d09aef), [`751eaab`](https://github.com/mastra-ai/mastra/commit/751eaab4e0d3820a94e4c3d39a2ff2663ded3d91), [`69d8156`](https://github.com/mastra-ai/mastra/commit/69d81568bcf062557c24471ce26812446bec465d), [`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`5c544c8`](https://github.com/mastra-ai/mastra/commit/5c544c8d12b08ab40d64d8f37b3c4215bee95b87), [`771ad96`](https://github.com/mastra-ai/mastra/commit/771ad962441996b5c43549391a3e6a02c6ddedc2), [`2b0936b`](https://github.com/mastra-ai/mastra/commit/2b0936b0c9a43eeed9bef63e614d7e02ee803f7e), [`3b04f30`](https://github.com/mastra-ai/mastra/commit/3b04f3010604f3cdfc8a0674731700ad66471cee), [`97e26de`](https://github.com/mastra-ai/mastra/commit/97e26deaebd9836647a67b96423281d66421ca07), [`ac9ec66`](https://github.com/mastra-ai/mastra/commit/ac9ec6672779b2e6d4344e415481d1a6a7d4911a), [`10523f4`](https://github.com/mastra-ai/mastra/commit/10523f4882d9b874b40ce6e3715f66dbcd4947d2), [`cb72d20`](https://github.com/mastra-ai/mastra/commit/cb72d2069d7339bda8a0e76d4f35615debb07b84), [`42856b1`](https://github.com/mastra-ai/mastra/commit/42856b1c8aeea6371c9ee77ae2f5f5fe34400933), [`66f33ff`](https://github.com/mastra-ai/mastra/commit/66f33ff68620018513e499c394411d1d39b3aa5c), [`ab3c190`](https://github.com/mastra-ai/mastra/commit/ab3c1901980a99910ca9b96a7090c22e24060113), [`d4f06c8`](https://github.com/mastra-ai/mastra/commit/d4f06c85ffa5bb0da38fb82ebf3b040cc6b4ec4e), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`bc9fa00`](https://github.com/mastra-ai/mastra/commit/bc9fa00859c5c4a796d53a0a5cae46ab4a3072e4), [`f46a478`](https://github.com/mastra-ai/mastra/commit/f46a4782f595949c696569e891f81c8d26338508), [`90fc0e5`](https://github.com/mastra-ai/mastra/commit/90fc0e5717cb280c2d4acf4f0410b510bb4c0a72), [`f05a3a5`](https://github.com/mastra-ai/mastra/commit/f05a3a5cf2b9a9c2d40c09cb8c762a4b6cd5d565), [`a291da9`](https://github.com/mastra-ai/mastra/commit/a291da9363efd92dafd8775dccb4f2d0511ece7a), [`c5d71da`](https://github.com/mastra-ai/mastra/commit/c5d71da1c680ce5640b1a7f8ca0e024a4ab1cfed), [`07042f9`](https://github.com/mastra-ai/mastra/commit/07042f9f89080f38b8f72713ba1c972d5b1905b8), [`0423442`](https://github.com/mastra-ai/mastra/commit/0423442b7be2dfacba95890bea8f4a810db4d603)]:
10
+ - @mastra/core@1.1.0
11
+
3
12
  ## 0.11.1-alpha.0
4
13
 
5
14
  ### Patch Changes
@@ -1,5 +1,14 @@
1
1
  # @mastra/voice-openai-realtime
2
2
 
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dependencies updates: ([#11645](https://github.com/mastra-ai/mastra/pull/11645))
8
+ - Updated dependency [`ws@^8.19.0` ↗︎](https://www.npmjs.com/package/ws/v/8.19.0) (from `^8.18.3`, in `dependencies`)
9
+ - Updated dependencies [[`90fc0e5`](https://github.com/mastra-ai/mastra/commit/90fc0e5717cb280c2d4acf4f0410b510bb4c0a72), [`1cf5d2e`](https://github.com/mastra-ai/mastra/commit/1cf5d2ea1b085be23e34fb506c80c80a4e6d9c2b), [`b99ceac`](https://github.com/mastra-ai/mastra/commit/b99ceace2c830dbdef47c8692d56a91954aefea2), [`deea43e`](https://github.com/mastra-ai/mastra/commit/deea43eb1366d03a864c5e597d16a48592b9893f), [`833ae96`](https://github.com/mastra-ai/mastra/commit/833ae96c3e34370e58a1e979571c41f39a720592), [`943772b`](https://github.com/mastra-ai/mastra/commit/943772b4378f625f0f4e19ea2b7c392bd8e71786), [`b5c711b`](https://github.com/mastra-ai/mastra/commit/b5c711b281dd1fb81a399a766bc9f86c55efc13e), [`3efbe5a`](https://github.com/mastra-ai/mastra/commit/3efbe5ae20864c4f3143457f4f3ee7dc2fa5ca76), [`1e49e7a`](https://github.com/mastra-ai/mastra/commit/1e49e7ab5f173582154cb26b29d424de67d09aef), [`751eaab`](https://github.com/mastra-ai/mastra/commit/751eaab4e0d3820a94e4c3d39a2ff2663ded3d91), [`69d8156`](https://github.com/mastra-ai/mastra/commit/69d81568bcf062557c24471ce26812446bec465d), [`60d9d89`](https://github.com/mastra-ai/mastra/commit/60d9d899e44b35bc43f1bcd967a74e0ce010b1af), [`5c544c8`](https://github.com/mastra-ai/mastra/commit/5c544c8d12b08ab40d64d8f37b3c4215bee95b87), [`771ad96`](https://github.com/mastra-ai/mastra/commit/771ad962441996b5c43549391a3e6a02c6ddedc2), [`2b0936b`](https://github.com/mastra-ai/mastra/commit/2b0936b0c9a43eeed9bef63e614d7e02ee803f7e), [`3b04f30`](https://github.com/mastra-ai/mastra/commit/3b04f3010604f3cdfc8a0674731700ad66471cee), [`97e26de`](https://github.com/mastra-ai/mastra/commit/97e26deaebd9836647a67b96423281d66421ca07), [`ac9ec66`](https://github.com/mastra-ai/mastra/commit/ac9ec6672779b2e6d4344e415481d1a6a7d4911a), [`10523f4`](https://github.com/mastra-ai/mastra/commit/10523f4882d9b874b40ce6e3715f66dbcd4947d2), [`cb72d20`](https://github.com/mastra-ai/mastra/commit/cb72d2069d7339bda8a0e76d4f35615debb07b84), [`42856b1`](https://github.com/mastra-ai/mastra/commit/42856b1c8aeea6371c9ee77ae2f5f5fe34400933), [`66f33ff`](https://github.com/mastra-ai/mastra/commit/66f33ff68620018513e499c394411d1d39b3aa5c), [`ab3c190`](https://github.com/mastra-ai/mastra/commit/ab3c1901980a99910ca9b96a7090c22e24060113), [`d4f06c8`](https://github.com/mastra-ai/mastra/commit/d4f06c85ffa5bb0da38fb82ebf3b040cc6b4ec4e), [`0350626`](https://github.com/mastra-ai/mastra/commit/03506267ec41b67add80d994c0c0fcce93bbc75f), [`bc9fa00`](https://github.com/mastra-ai/mastra/commit/bc9fa00859c5c4a796d53a0a5cae46ab4a3072e4), [`f46a478`](https://github.com/mastra-ai/mastra/commit/f46a4782f595949c696569e891f81c8d26338508), [`90fc0e5`](https://github.com/mastra-ai/mastra/commit/90fc0e5717cb280c2d4acf4f0410b510bb4c0a72), [`f05a3a5`](https://github.com/mastra-ai/mastra/commit/f05a3a5cf2b9a9c2d40c09cb8c762a4b6cd5d565), [`a291da9`](https://github.com/mastra-ai/mastra/commit/a291da9363efd92dafd8775dccb4f2d0511ece7a), [`c5d71da`](https://github.com/mastra-ai/mastra/commit/c5d71da1c680ce5640b1a7f8ca0e024a4ab1cfed), [`07042f9`](https://github.com/mastra-ai/mastra/commit/07042f9f89080f38b8f72713ba1c972d5b1905b8), [`0423442`](https://github.com/mastra-ai/mastra/commit/0423442b7be2dfacba95890bea8f4a810db4d603)]:
10
+ - @mastra/core@1.1.0
11
+
3
12
  ## 0.12.1-alpha.0
4
13
 
5
14
  ### Patch Changes
@@ -490,13 +499,4 @@
490
499
 
491
500
  ### Patch Changes
492
501
 
493
- - 03997ae: Update peerdeps
494
- - @mastra/core@0.14.0-alpha.7
495
-
496
- ## 0.10.7
497
-
498
- ### Patch Changes
499
-
500
- - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
501
-
502
- ... 1093 more lines hidden. See full changelog in package directory.
502
+ ... 1102 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,11 @@
1
1
  # create-mastra
2
2
 
3
+ ## 1.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - fix workflow run input caching bug in studio UI ([#11784](https://github.com/mastra-ai/mastra/pull/11784))
8
+
3
9
  ## 1.1.0-alpha.3
4
10
 
5
11
  ## 1.1.0-alpha.2
@@ -492,11 +498,5 @@
492
498
 
493
499
  - add refetch interval to traces to make it feel "instant" ([#8386](https://github.com/mastra-ai/mastra/pull/8386))
494
500
 
495
- - better memory message ([#8382](https://github.com/mastra-ai/mastra/pull/8382))
496
-
497
- - fix codeblock line number color contrast for legacy traces ([#8385](https://github.com/mastra-ai/mastra/pull/8385))
498
-
499
- - Model router documentation and playground UI improvements ([#8372](https://github.com/mastra-ai/mastra/pull/8372))
500
-
501
501
 
502
- ... 1878 more lines hidden. See full changelog in package directory.
502
+ ... 1884 more lines hidden. See full changelog in package directory.