@mastra/mcp-docs-server 1.0.0-beta.6 → 1.0.0-beta.7
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.
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +12 -12
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +33 -33
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +58 -58
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +31 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +176 -176
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Felasticsearch.md +9 -0
- package/.docs/organized/changelogs/%40mastra%2Flance.md +33 -33
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +12 -12
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +43 -43
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +31 -31
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Freact.md +7 -0
- package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +9 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +58 -58
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +33 -33
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +10 -10
- package/.docs/organized/changelogs/create-mastra.md +7 -7
- package/.docs/organized/changelogs/mastra.md +14 -14
- package/.docs/organized/code-examples/ai-elements.md +1 -1
- package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -1
- package/.docs/organized/code-examples/ai-sdk-v5.md +1 -1
- package/.docs/organized/code-examples/assistant-ui.md +1 -1
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +1 -1
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +1 -1
- package/.docs/organized/code-examples/crypto-chatbot.md +1 -1
- package/.docs/organized/code-examples/mcp-server-adapters.md +2 -2
- package/.docs/organized/code-examples/server-app-access.md +2 -2
- package/.docs/organized/code-examples/server-express-adapter.md +87 -0
- package/.docs/organized/code-examples/server-hono-adapter.md +85 -0
- package/.docs/raw/agents/overview.mdx +2 -111
- package/.docs/raw/agents/processors.mdx +1 -1
- package/.docs/raw/agents/structured-output.mdx +224 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +10 -2
- package/.docs/raw/memory/working-memory.mdx +1 -0
- package/.docs/raw/observability/tracing/bridges/otel.mdx +25 -1
- package/.docs/raw/observability/tracing/exporters/arize.mdx +19 -0
- package/.docs/raw/observability/tracing/exporters/langfuse.mdx +63 -0
- package/.docs/raw/observability/tracing/exporters/otel.mdx +30 -19
- package/.docs/raw/observability/tracing/exporters/posthog.mdx +20 -0
- package/.docs/raw/observability/tracing/overview.mdx +6 -1
- package/.docs/raw/reference/observability/tracing/bridges/otel.mdx +27 -0
- package/.docs/raw/reference/observability/tracing/exporters/arize.mdx +25 -0
- package/.docs/raw/reference/observability/tracing/exporters/langfuse.mdx +43 -0
- package/.docs/raw/reference/observability/tracing/exporters/otel.mdx +27 -43
- package/.docs/raw/reference/server/create-route.mdx +314 -0
- package/.docs/raw/reference/server/express-adapter.mdx +193 -0
- package/.docs/raw/reference/server/hono-adapter.mdx +174 -0
- package/.docs/raw/reference/server/mastra-server.mdx +316 -0
- package/.docs/raw/reference/server/routes.mdx +250 -0
- package/.docs/raw/reference/streaming/workflows/timeTravelStream.mdx +170 -0
- package/.docs/raw/reference/tools/mcp-client.mdx +54 -1
- package/.docs/raw/reference/workflows/run-methods/timeTravel.mdx +310 -0
- package/.docs/raw/reference/workflows/run.mdx +14 -0
- package/.docs/raw/server-db/custom-adapters.mdx +380 -0
- package/.docs/raw/server-db/mastra-server.mdx +11 -32
- package/.docs/raw/server-db/server-adapters.mdx +286 -0
- package/CHANGELOG.md +8 -0
- package/package.json +4 -4
|
@@ -1,5 +1,180 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.7
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `disableInit` option to all storage adapters ([#10851](https://github.com/mastra-ai/mastra/pull/10851))
|
|
8
|
+
|
|
9
|
+
Adds a new `disableInit` config option to all storage providers that allows users to disable automatic table creation/migrations at runtime. This is useful for CI/CD pipelines where you want to run migrations during deployment with elevated credentials, then run the application with `disableInit: true` so it doesn't attempt schema changes at runtime.
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
// CI/CD script - run migrations
|
|
13
|
+
const storage = new PostgresStore({
|
|
14
|
+
connectionString: DATABASE_URL,
|
|
15
|
+
id: 'pg-storage',
|
|
16
|
+
});
|
|
17
|
+
await storage.init();
|
|
18
|
+
|
|
19
|
+
// Runtime - skip auto-init
|
|
20
|
+
const storage = new PostgresStore({
|
|
21
|
+
connectionString: DATABASE_URL,
|
|
22
|
+
id: 'pg-storage',
|
|
23
|
+
disableInit: true,
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Add time-to-first-token (TTFT) support for Langfuse integration ([#10781](https://github.com/mastra-ai/mastra/pull/10781))
|
|
30
|
+
|
|
31
|
+
Adds `completionStartTime` to model generation spans, which Langfuse uses to calculate TTFT metrics. The timestamp is automatically captured when the first content chunk arrives during streaming.
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
// completionStartTime is now automatically captured and sent to Langfuse
|
|
35
|
+
// enabling TTFT metrics in your Langfuse dashboard
|
|
36
|
+
const result = await agent.stream('Hello');
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
- Updated OtelExporters, Bridge, and Arize packages to better implement GenAI v1.38.0 Otel Semantic Conventions. See: ([#10591](https://github.com/mastra-ai/mastra/pull/10591))
|
|
40
|
+
https://github.com/open-telemetry/semantic-conventions/blob/v1.38.0/docs/gen-ai/README.md
|
|
41
|
+
|
|
42
|
+
- Standardize error IDs across all storage and vector stores using centralized helper functions (`createStorageErrorId` and `createVectorErrorId`). This ensures consistent error ID patterns (`MASTRA_STORAGE_{STORE}_{OPERATION}_{STATUS}` and `MASTRA_VECTOR_{STORE}_{OPERATION}_{STATUS}`) across the codebase for better error tracking and debugging. ([#10913](https://github.com/mastra-ai/mastra/pull/10913))
|
|
43
|
+
|
|
44
|
+
- fix: generate unique text IDs for Anthropic/Google providers ([#10740](https://github.com/mastra-ai/mastra/pull/10740))
|
|
45
|
+
|
|
46
|
+
Workaround for duplicate text-start/text-end IDs in multi-step agentic flows.
|
|
47
|
+
|
|
48
|
+
The `@ai-sdk/anthropic` and `@ai-sdk/google` providers use numeric indices ("0", "1", etc.) for text block IDs that reset for each LLM call. This caused duplicate IDs when an agent does TEXT → TOOL → TEXT, breaking message ordering and storage.
|
|
49
|
+
|
|
50
|
+
The fix replaces numeric IDs with UUIDs, maintaining a map per step so text-start, text-delta, and text-end chunks for the same block share the same UUID. OpenAI's UUIDs pass through unchanged.
|
|
51
|
+
|
|
52
|
+
Related: #9909
|
|
53
|
+
|
|
54
|
+
- Fix sub-agent requestContext propagation in listAgentTools ([#10844](https://github.com/mastra-ai/mastra/pull/10844))
|
|
55
|
+
|
|
56
|
+
Sub-agents with dynamic model configurations were broken because `requestContext` was not being passed to `getModel()` when creating agent tools. This caused sub-agents using function-based model configurations to receive an empty context instead of the parent's context.
|
|
57
|
+
|
|
58
|
+
No code changes required for consumers - this fix restores expected behavior for dynamic model configurations in sub-agents.
|
|
59
|
+
|
|
60
|
+
- Fix ToolStream type error when piping streams with different types ([#10845](https://github.com/mastra-ai/mastra/pull/10845))
|
|
61
|
+
|
|
62
|
+
Changes `ToolStream` to extend `WritableStream<unknown>` instead of `WritableStream<T>`. This fixes the TypeScript error when piping `objectStream` or `fullStream` to `writer` in workflow steps.
|
|
63
|
+
|
|
64
|
+
Before:
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
// TypeError: ToolStream<ChunkType> is not assignable to WritableStream<Partial<StoryPlan>>
|
|
68
|
+
await response.objectStream.pipeTo(writer);
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
After:
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
// Works without type errors
|
|
75
|
+
await response.objectStream.pipeTo(writer);
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
- feat: add native Perplexity provider support ([#10885](https://github.com/mastra-ai/mastra/pull/10885))
|
|
79
|
+
|
|
80
|
+
- When sending the first message to a new thread with PostgresStore, users would get a "Thread not found" error. This happened because the thread was created in memory but not persisted to the database before the MessageHistory output processor tried to save messages. ([#10881](https://github.com/mastra-ai/mastra/pull/10881))
|
|
81
|
+
|
|
82
|
+
**Before:**
|
|
83
|
+
|
|
84
|
+
```ts
|
|
85
|
+
threadObject = await memory.createThread({
|
|
86
|
+
// ...
|
|
87
|
+
saveThread: false, // thread not in DB yet
|
|
88
|
+
});
|
|
89
|
+
// Later: MessageHistory calls saveMessages() -> PostgresStore throws "Thread not found"
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**After:**
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
threadObject = await memory.createThread({
|
|
96
|
+
// ...
|
|
97
|
+
saveThread: true, // thread persisted immediately
|
|
98
|
+
});
|
|
99
|
+
// MessageHistory can now save messages without error
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
- Emit error chunk and call onError when agent workflow step fails ([#10907](https://github.com/mastra-ai/mastra/pull/10907))
|
|
103
|
+
|
|
104
|
+
When a workflow step fails (e.g., tool not found), the error is now properly emitted as an error chunk to the stream and the onError callback is called. This fixes the issue where agent.generate() would throw "promise 'text' was not resolved or rejected" instead of the actual error message.
|
|
105
|
+
|
|
106
|
+
- fix(core): use agent description when converting agent to tool ([#10879](https://github.com/mastra-ai/mastra/pull/10879))
|
|
107
|
+
|
|
108
|
+
- Adds native @ai-sdk/deepseek provider support instead of using the OpenAI-compatible fallback. ([#10822](https://github.com/mastra-ai/mastra/pull/10822))
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
const agent = new Agent({
|
|
112
|
+
model: 'deepseek/deepseek-reasoner',
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
// With provider options for reasoning
|
|
116
|
+
const response = await agent.generate('Solve this problem', {
|
|
117
|
+
providerOptions: {
|
|
118
|
+
deepseek: {
|
|
119
|
+
thinking: { type: 'enabled' },
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Also updates the doc generation scripts so DeepSeek provider options show up in the generated docs.
|
|
126
|
+
|
|
127
|
+
- Return state too if `includeState: true` is in `outputOptions` and workflow run is not successful ([#10806](https://github.com/mastra-ai/mastra/pull/10806))
|
|
128
|
+
|
|
129
|
+
- feat: Add partial response support for agent and workflow list endpoints ([#10886](https://github.com/mastra-ai/mastra/pull/10886))
|
|
130
|
+
|
|
131
|
+
Add optional `partial` query parameter to `/api/agents` and `/api/workflows` endpoints to return minimal data without schemas, reducing payload size for list views:
|
|
132
|
+
- When `partial=true`: tool schemas (inputSchema, outputSchema) are omitted
|
|
133
|
+
- When `partial=true`: workflow steps are replaced with stepCount integer
|
|
134
|
+
- When `partial=true`: workflow root schemas (inputSchema, outputSchema) are omitted
|
|
135
|
+
- Maintains backward compatibility when partial parameter is not provided
|
|
136
|
+
|
|
137
|
+
## Server Endpoint Usage
|
|
138
|
+
|
|
139
|
+
```http
|
|
140
|
+
# Get partial agent data (no tool schemas)
|
|
141
|
+
GET /api/agents?partial=true
|
|
142
|
+
|
|
143
|
+
# Get full agent data (default behavior)
|
|
144
|
+
GET /api/agents
|
|
145
|
+
|
|
146
|
+
# Get partial workflow data (stepCount instead of steps, no schemas)
|
|
147
|
+
GET /api/workflows?partial=true
|
|
148
|
+
|
|
149
|
+
# Get full workflow data (default behavior)
|
|
150
|
+
GET /api/workflows
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Client SDK Usage
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
import { MastraClient } from '@mastra/client-js';
|
|
157
|
+
|
|
158
|
+
const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
|
|
159
|
+
|
|
160
|
+
// Get partial agent list (smaller payload)
|
|
161
|
+
const partialAgents = await client.listAgents({ partial: true });
|
|
162
|
+
|
|
163
|
+
// Get full agent list with tool schemas
|
|
164
|
+
const fullAgents = await client.listAgents();
|
|
165
|
+
|
|
166
|
+
// Get partial workflow list (smaller payload)
|
|
167
|
+
const partialWorkflows = await client.listWorkflows({ partial: true });
|
|
168
|
+
|
|
169
|
+
// Get full workflow list with steps and schemas
|
|
170
|
+
const fullWorkflows = await client.listWorkflows();
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
- Fix processInputStep so it runs correctly. ([#10909](https://github.com/mastra-ai/mastra/pull/10909))
|
|
174
|
+
|
|
175
|
+
- Updated dependencies [[`6c59a40`](https://github.com/mastra-ai/mastra/commit/6c59a40e0ad160467bd13d63a8a287028d75b02d), [`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`0bada2f`](https://github.com/mastra-ai/mastra/commit/0bada2f2c1234932cf30c1c47a719ffb64b801c5), [`cc60ff6`](https://github.com/mastra-ai/mastra/commit/cc60ff616541a3b0fb531a7e469bf9ae7bb90528)]:
|
|
176
|
+
- @mastra/observability@1.0.0-beta.3
|
|
177
|
+
|
|
3
178
|
## 1.0.0-beta.6
|
|
4
179
|
|
|
5
180
|
### Major Changes
|
|
@@ -323,180 +498,5 @@
|
|
|
323
498
|
model: 'azure-openai/gpt-4-deployment',
|
|
324
499
|
instructions: 'You are a helpful assistant',
|
|
325
500
|
});
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
- - Fix tool suspension throwing error when `outputSchema` is passed to tool during creation ([#10444](https://github.com/mastra-ai/mastra/pull/10444))
|
|
329
|
-
- Pass `suspendSchema` and `resumeSchema` from tool into step created when creating step from tool
|
|
330
|
-
|
|
331
|
-
- Add `onOutput` hook for tools ([#10466](https://github.com/mastra-ai/mastra/pull/10466))
|
|
332
|
-
|
|
333
|
-
Tools now support an `onOutput` lifecycle hook that is invoked after successful tool execution. This complements the existing `onInputStart`, `onInputDelta`, and `onInputAvailable` hooks to provide complete visibility into the tool execution lifecycle.
|
|
334
|
-
|
|
335
|
-
The `onOutput` hook receives:
|
|
336
|
-
- `output`: The tool's return value (typed according to `outputSchema`)
|
|
337
|
-
- `toolCallId`: Unique identifier for the tool call
|
|
338
|
-
- `toolName`: The name of the tool that was executed
|
|
339
|
-
- `abortSignal`: Signal for detecting if the operation should be cancelled
|
|
340
|
-
|
|
341
|
-
Example usage:
|
|
342
|
-
|
|
343
|
-
```typescript
|
|
344
|
-
import { createTool } from '@mastra/core/tools';
|
|
345
|
-
import { z } from 'zod';
|
|
346
|
-
|
|
347
|
-
export const weatherTool = createTool({
|
|
348
|
-
id: 'weather-tool',
|
|
349
|
-
description: 'Get weather information',
|
|
350
|
-
outputSchema: z.object({
|
|
351
|
-
temperature: z.number(),
|
|
352
|
-
conditions: z.string(),
|
|
353
|
-
}),
|
|
354
|
-
execute: async input => {
|
|
355
|
-
return { temperature: 72, conditions: 'sunny' };
|
|
356
|
-
},
|
|
357
|
-
onOutput: ({ output, toolCallId, toolName }) => {
|
|
358
|
-
console.log(`${toolName} completed:`, output);
|
|
359
|
-
// output is fully typed based on outputSchema
|
|
360
|
-
},
|
|
361
|
-
});
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
Hook execution order:
|
|
365
|
-
1. `onInputStart` - Input streaming begins
|
|
366
|
-
2. `onInputDelta` - Input chunks arrive (called multiple times)
|
|
367
|
-
3. `onInputAvailable` - Complete input parsed and validated
|
|
368
|
-
4. Tool's `execute` function runs
|
|
369
|
-
5. `onOutput` - Tool completed successfully (NEW)
|
|
370
|
-
|
|
371
|
-
- Add new deleteVectors, updateVector by filter ([#10408](https://github.com/mastra-ai/mastra/pull/10408))
|
|
372
|
-
|
|
373
|
-
- Fix base64 encoded images with threads - issue #10480 ([#10483](https://github.com/mastra-ai/mastra/pull/10483))
|
|
374
|
-
|
|
375
|
-
Fixed "Invalid URL" error when using base64 encoded images (without `data:` prefix) in agent calls with threads and resources. Raw base64 strings are now automatically converted to proper data URIs before being processed.
|
|
376
|
-
|
|
377
|
-
**Changes:**
|
|
378
|
-
- Updated `attachments-to-parts.ts` to detect and convert raw base64 strings to data URIs
|
|
379
|
-
- Fixed `MessageList` image processing to handle raw base64 in two locations:
|
|
380
|
-
- Image part conversion in `aiV4CoreMessageToV1PromptMessage`
|
|
381
|
-
- File part to experimental_attachments conversion in `mastraDBMessageToAIV4UIMessage`
|
|
382
|
-
- Added comprehensive tests for base64 images, data URIs, and HTTP URLs with threads
|
|
383
|
-
|
|
384
|
-
**Breaking Change:** None - this is a bug fix that maintains backward compatibility while adding support for raw base64 strings.
|
|
385
|
-
|
|
386
|
-
- Fix message metadata not persisting when using simple message format. Previously, custom metadata passed in messages (e.g., `{role: 'user', content: 'text', metadata: {userId: '123'}}`) was not being saved to the database. This occurred because the CoreMessage conversion path didn't preserve metadata fields. ([#10488](https://github.com/mastra-ai/mastra/pull/10488))
|
|
387
|
-
|
|
388
|
-
Now metadata is properly preserved for all message input formats:
|
|
389
|
-
- Simple CoreMessage format: `{role, content, metadata}`
|
|
390
|
-
- Full UIMessage format: `{role, content, parts, metadata}`
|
|
391
|
-
- AI SDK v5 ModelMessage format with metadata
|
|
392
|
-
|
|
393
|
-
Fixes #8556
|
|
394
|
-
|
|
395
|
-
- feat: Composite auth implementation ([#10359](https://github.com/mastra-ai/mastra/pull/10359))
|
|
396
|
-
|
|
397
|
-
- Fix requireApproval property being ignored for tools passed via toolsets, clientTools, and memoryTools parameters. The requireApproval flag now correctly propagates through all tool conversion paths, ensuring tools requiring approval will properly request user approval before execution. ([#10464](https://github.com/mastra-ai/mastra/pull/10464))
|
|
398
|
-
|
|
399
|
-
- Add timeTravel APIs and add timeTravel feature to studio ([#10361](https://github.com/mastra-ai/mastra/pull/10361))
|
|
400
|
-
|
|
401
|
-
- Fix Azure Foundry rate limit handling for -1 values ([#10409](https://github.com/mastra-ai/mastra/pull/10409))
|
|
402
|
-
|
|
403
|
-
- Fix model headers not being passed through gateway system ([#10465](https://github.com/mastra-ai/mastra/pull/10465))
|
|
404
|
-
|
|
405
|
-
Previously, custom headers specified in `MastraModelConfig` were not being passed through the gateway system to model providers. This affected:
|
|
406
|
-
- OpenRouter (preventing activity tracking with `HTTP-Referer` and `X-Title`)
|
|
407
|
-
- Custom providers using custom URLs (headers not passed to `createOpenAICompatible`)
|
|
408
|
-
- Custom gateway implementations (headers not available in `resolveLanguageModel`)
|
|
409
|
-
|
|
410
|
-
Now headers are correctly passed through the entire gateway system:
|
|
411
|
-
- Base `MastraModelGateway` interface updated to accept headers
|
|
412
|
-
- `ModelRouterLanguageModel` passes headers from config to all gateways
|
|
413
|
-
- OpenRouter receives headers for activity tracking
|
|
414
|
-
- Custom URL providers receive headers via `createOpenAICompatible`
|
|
415
|
-
- Custom gateways can access headers in their `resolveLanguageModel` implementation
|
|
416
|
-
|
|
417
|
-
Example usage:
|
|
418
|
-
|
|
419
|
-
```typescript
|
|
420
|
-
// Works with OpenRouter
|
|
421
|
-
const agent = new Agent({
|
|
422
|
-
name: 'my-agent',
|
|
423
|
-
instructions: 'You are a helpful assistant.',
|
|
424
|
-
model: {
|
|
425
|
-
id: 'openrouter/anthropic/claude-3-5-sonnet',
|
|
426
|
-
headers: {
|
|
427
|
-
'HTTP-Referer': 'https://myapp.com',
|
|
428
|
-
'X-Title': 'My Application',
|
|
429
|
-
},
|
|
430
|
-
},
|
|
431
|
-
});
|
|
432
|
-
|
|
433
|
-
// Also works with custom providers
|
|
434
|
-
const customAgent = new Agent({
|
|
435
|
-
name: 'custom-agent',
|
|
436
|
-
instructions: 'You are a helpful assistant.',
|
|
437
|
-
model: {
|
|
438
|
-
id: 'custom-provider/model',
|
|
439
|
-
url: 'https://api.custom.com/v1',
|
|
440
|
-
apiKey: 'key',
|
|
441
|
-
headers: {
|
|
442
|
-
'X-Custom-Header': 'custom-value',
|
|
443
|
-
},
|
|
444
|
-
},
|
|
445
|
-
});
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
Fixes https://github.com/mastra-ai/mastra/issues/9760
|
|
449
|
-
|
|
450
|
-
- fix(agent): persist messages before tool suspension ([#10369](https://github.com/mastra-ai/mastra/pull/10369))
|
|
451
|
-
|
|
452
|
-
Fixes issues where thread and messages were not saved before suspension when tools require approval or call suspend() during execution. This caused conversation history to be lost if users refreshed during tool approval or suspension.
|
|
453
|
-
|
|
454
|
-
**Backend changes (@mastra/core):**
|
|
455
|
-
- Add assistant messages to messageList immediately after LLM execution
|
|
456
|
-
- Flush messages synchronously before suspension to persist state
|
|
457
|
-
- Create thread if it doesn't exist before flushing
|
|
458
|
-
- Add metadata helpers to persist and remove tool approval state
|
|
459
|
-
- Pass saveQueueManager and memory context through workflow for immediate persistence
|
|
460
|
-
|
|
461
|
-
**Frontend changes (@mastra/react):**
|
|
462
|
-
- Extract runId from pending approvals to enable resumption after refresh
|
|
463
|
-
- Convert `pendingToolApprovals` (DB format) to `requireApprovalMetadata` (runtime format)
|
|
464
|
-
- Handle both `dynamic-tool` and `tool-{NAME}` part types for approval state
|
|
465
|
-
- Change runId from hardcoded `agentId` to unique `uuid()`
|
|
466
|
-
|
|
467
|
-
**UI changes (@mastra/playground-ui):**
|
|
468
|
-
- Handle tool calls awaiting approval in message initialization
|
|
469
|
-
- Convert approval metadata format when loading initial messages
|
|
470
|
-
|
|
471
|
-
Fixes #9745, #9906
|
|
472
|
-
|
|
473
|
-
- Update MockMemory to work with new storage API changes. MockMemory now properly implements all abstract MastraMemory methods. This includes proper thread management, message saving with MessageList conversion, working memory operations with scope support, and resource listing. ([#10368](https://github.com/mastra-ai/mastra/pull/10368))
|
|
474
|
-
|
|
475
|
-
Add Zod v4 support for working memory schemas. Memory implementations now check for Zod v4's built-in `.toJsonSchema()` method before falling back to the `zodToJsonSchema` compatibility function, improving performance and forward compatibility while maintaining backward compatibility with Zod v3.
|
|
476
|
-
|
|
477
|
-
Add Gemini 3 Pro test coverage in agent-gemini.test.ts to validate the latest Gemini model integration.
|
|
478
|
-
|
|
479
|
-
- Fix race condition in parallel tool stream writes ([#10463](https://github.com/mastra-ai/mastra/pull/10463))
|
|
480
|
-
|
|
481
|
-
Introduces a write queue to ToolStream to serialize access to the underlying stream, preventing writer locked errors
|
|
482
|
-
|
|
483
|
-
- Remove unneeded console warning when flushing messages and no threadId or saveQueueManager is found. ([#10498](https://github.com/mastra-ai/mastra/pull/10498))
|
|
484
|
-
|
|
485
|
-
- Add optional includeRawChunks parameter to agent execution options, ([#10456](https://github.com/mastra-ai/mastra/pull/10456))
|
|
486
|
-
allowing users to include raw chunks in stream output where supported
|
|
487
|
-
by the model provider.
|
|
488
|
-
|
|
489
|
-
- When `mastra dev` runs, multiple processes can write to `provider-registry.json` concurrently (auto-refresh, syncGateways, syncGlobalCacheToLocal). This causes file corruption where the end of the JSON appears twice, making it unparseable. ([#10455](https://github.com/mastra-ai/mastra/pull/10455))
|
|
490
|
-
|
|
491
|
-
The fix uses atomic writes via the write-to-temp-then-rename pattern. Instead of:
|
|
492
|
-
|
|
493
|
-
```ts
|
|
494
|
-
fs.writeFileSync(filePath, content, 'utf-8');
|
|
495
|
-
```
|
|
496
|
-
|
|
497
|
-
We now do:
|
|
498
|
-
|
|
499
|
-
```ts
|
|
500
|
-
const tempPath = `${filePath}.${process.pid}.${Date.now()}.${randomSuffix}.tmp`;
|
|
501
501
|
|
|
502
|
-
...
|
|
502
|
+
... 5916 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/couchbase
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Standardize error IDs across all storage and vector stores using centralized helper functions (`createStorageErrorId` and `createVectorErrorId`). This ensures consistent error ID patterns (`MASTRA_STORAGE_{STORE}_{OPERATION}_{STATUS}` and `MASTRA_VECTOR_{STORE}_{OPERATION}_{STATUS}`) across the codebase for better error tracking and debugging. ([#10913](https://github.com/mastra-ai/mastra/pull/10913))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
|
|
10
|
+
- @mastra/core@1.0.0-beta.7
|
|
11
|
+
|
|
3
12
|
## 1.0.0-beta.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -489,14 +498,5 @@
|
|
|
489
498
|
- Updated dependencies [f6fd25f]
|
|
490
499
|
- Updated dependencies [dffb67b]
|
|
491
500
|
- Updated dependencies [f1f1f1b]
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
- Updated dependencies [82090c1]
|
|
495
|
-
- Updated dependencies [1b443fd]
|
|
496
|
-
- Updated dependencies [ce97900]
|
|
497
|
-
- Updated dependencies [f1309d3]
|
|
498
|
-
- Updated dependencies [14a2566]
|
|
499
|
-
- Updated dependencies [f7f8293]
|
|
500
|
-
- Updated dependencies [48eddb9]
|
|
501
|
-
|
|
502
|
-
... 265 more lines hidden. See full changelog in package directory.
|
|
501
|
+
|
|
502
|
+
... 274 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/deployer-cloud
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`692d4ee`](https://github.com/mastra-ai/mastra/commit/692d4ee72105ec59c3cb64431d10a9ea9dbbfbaa), [`80115db`](https://github.com/mastra-ai/mastra/commit/80115db81ab658404c1c3d81375e0adbc8f5e131), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`162d768`](https://github.com/mastra-ai/mastra/commit/162d76861e18ee7b4423482169f78bf1de015612), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`6540711`](https://github.com/mastra-ai/mastra/commit/65407118b4788400b29d5ff50e985505abee4c08), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
|
|
8
|
+
- @mastra/core@1.0.0-beta.7
|
|
9
|
+
- @mastra/deployer@1.0.0-beta.7
|
|
10
|
+
- @mastra/loggers@1.0.0-beta.2
|
|
11
|
+
|
|
3
12
|
## 1.0.0-beta.6
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -490,13 +499,4 @@
|
|
|
490
499
|
|
|
491
500
|
### Minor Changes
|
|
492
501
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
```diff
|
|
496
|
-
- bundle(entryFile: string, outputDirectory: string, toolsPaths: (string | string[])[]): Promise<void>;
|
|
497
|
-
+ bundle(entryFile: string, outputDirectory: string, options: { toolsPaths: (string | string[])[]; projectRoot: string }): Promise<void>;
|
|
498
|
-
```
|
|
499
|
-
|
|
500
|
-
If you're just using the deployer inside `src/mastra/index.ts` you're safe to upgrade, no changes needed.
|
|
501
|
-
|
|
502
|
-
... 453 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 462 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Remove cast as any from MastraServer in deployer ([#10796](https://github.com/mastra-ai/mastra/pull/10796))
|
|
8
|
+
|
|
9
|
+
- Fixed a bug where ESM shims were incorrectly injected even when the user had already declared `__filename` or `__dirname` ([#10809](https://github.com/mastra-ai/mastra/pull/10809))
|
|
10
|
+
|
|
11
|
+
- Add simple virtual check for tsconfigpaths plugin, misbehaves on CI ([#10832](https://github.com/mastra-ai/mastra/pull/10832))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`5fe71bc`](https://github.com/mastra-ai/mastra/commit/5fe71bc925dfce597df69c89241f33b378028c63), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
|
|
14
|
+
- @mastra/core@1.0.0-beta.7
|
|
15
|
+
- @mastra/server@1.0.0-beta.7
|
|
16
|
+
|
|
3
17
|
## 1.0.0-beta.6
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -484,19 +498,5 @@
|
|
|
484
498
|
|
|
485
499
|
- Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
|
|
486
500
|
|
|
487
|
-
- Update peer dependencies to match core package version bump (0.22.0) ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
|
|
488
|
-
|
|
489
|
-
### Patch Changes
|
|
490
|
-
|
|
491
|
-
- use mastra logger in error handler ([#9037](https://github.com/mastra-ai/mastra/pull/9037))
|
|
492
|
-
|
|
493
|
-
- Fix edge case bug around transitive dependencies in monorepos ([#8977](https://github.com/mastra-ai/mastra/pull/8977))
|
|
494
|
-
|
|
495
|
-
- Improve error related to finding possible binary dependencies ([#9056](https://github.com/mastra-ai/mastra/pull/9056))
|
|
496
|
-
|
|
497
|
-
- Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
|
|
498
|
-
|
|
499
|
-
- Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`ba201b8`](https://github.com/mastra-ai/mastra/commit/ba201b8f8feac4c72350f2dbd52c13c7297ba7b0), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`4fc4136`](https://github.com/mastra-ai/mastra/commit/4fc413652866a8d2240694fddb2562e9edbb70df), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`d10baf5`](https://github.com/mastra-ai/mastra/commit/d10baf5a3c924f2a6654e23a3e318ed03f189b76), [`038c55a`](https://github.com/mastra-ai/mastra/commit/038c55a7090fc1b1513a966386d3072617f836ac), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`182f045`](https://github.com/mastra-ai/mastra/commit/182f0458f25bd70aa774e64fd923c8a483eddbf1), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`7620d2b`](https://github.com/mastra-ai/mastra/commit/7620d2bddeb4fae4c3c0a0b4e672969795fca11a), [`b2365f0`](https://github.com/mastra-ai/mastra/commit/b2365f038dd4c5f06400428b224af963f399ad50), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e), [`9029ba3`](https://github.com/mastra-ai/mastra/commit/9029ba34459c8859fed4c6b73efd8e2d0021e7ba), [`426cc56`](https://github.com/mastra-ai/mastra/commit/426cc561c85ae76a112ded2385532a91f9f9f074), [`00931fb`](https://github.com/mastra-ai/mastra/commit/00931fb1a21aa42c4fbc20c2c40dd62466b8fc8f), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e), [`10188d6`](https://github.com/mastra-ai/mastra/commit/10188d632a729010441f9c7e2a41eab60afccb23)]:
|
|
500
|
-
- @mastra/core@0.22.0
|
|
501
501
|
|
|
502
|
-
...
|
|
502
|
+
... 5089 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @mastra/dynamodb
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `disableInit` option to all storage adapters ([#10851](https://github.com/mastra-ai/mastra/pull/10851))
|
|
8
|
+
|
|
9
|
+
Adds a new `disableInit` config option to all storage providers that allows users to disable automatic table creation/migrations at runtime. This is useful for CI/CD pipelines where you want to run migrations during deployment with elevated credentials, then run the application with `disableInit: true` so it doesn't attempt schema changes at runtime.
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
// CI/CD script - run migrations
|
|
13
|
+
const storage = new PostgresStore({
|
|
14
|
+
connectionString: DATABASE_URL,
|
|
15
|
+
id: 'pg-storage',
|
|
16
|
+
});
|
|
17
|
+
await storage.init();
|
|
18
|
+
|
|
19
|
+
// Runtime - skip auto-init
|
|
20
|
+
const storage = new PostgresStore({
|
|
21
|
+
connectionString: DATABASE_URL,
|
|
22
|
+
id: 'pg-storage',
|
|
23
|
+
disableInit: true,
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Standardize error IDs across all storage and vector stores using centralized helper functions (`createStorageErrorId` and `createVectorErrorId`). This ensures consistent error ID patterns (`MASTRA_STORAGE_{STORE}_{OPERATION}_{STATUS}` and `MASTRA_VECTOR_{STORE}_{OPERATION}_{STATUS}`) across the codebase for better error tracking and debugging. ([#10913](https://github.com/mastra-ai/mastra/pull/10913))
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
|
|
32
|
+
- @mastra/core@1.0.0-beta.7
|
|
33
|
+
|
|
3
34
|
## 1.0.0-beta.2
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -467,36 +498,5 @@
|
|
|
467
498
|
- Updated dependencies [a01cf14]
|
|
468
499
|
- Updated dependencies [a9e50ee]
|
|
469
500
|
- Updated dependencies [5397eb4]
|
|
470
|
-
- Updated dependencies [c9f4e4a]
|
|
471
|
-
- Updated dependencies [0acbc80]
|
|
472
|
-
- @mastra/core@0.16.0
|
|
473
|
-
|
|
474
|
-
## 0.15.0-alpha.1
|
|
475
|
-
|
|
476
|
-
### Minor Changes
|
|
477
|
-
|
|
478
|
-
- 376913a: Update peerdeps of @mastra/core
|
|
479
|
-
|
|
480
|
-
### Patch Changes
|
|
481
|
-
|
|
482
|
-
- 376913a: Update peerdeps
|
|
483
|
-
- Updated dependencies [8fbf79e]
|
|
484
|
-
- @mastra/core@0.16.0-alpha.1
|
|
485
|
-
|
|
486
|
-
## 0.14.7-alpha.0
|
|
487
|
-
|
|
488
|
-
### Patch Changes
|
|
489
|
-
|
|
490
|
-
- 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
|
|
491
|
-
- Updated dependencies [fd83526]
|
|
492
|
-
- Updated dependencies [d0b90ab]
|
|
493
|
-
- Updated dependencies [6f5eb7a]
|
|
494
|
-
- Updated dependencies [a01cf14]
|
|
495
|
-
- Updated dependencies [a9e50ee]
|
|
496
|
-
- Updated dependencies [5397eb4]
|
|
497
|
-
- Updated dependencies [c9f4e4a]
|
|
498
|
-
- Updated dependencies [0acbc80]
|
|
499
|
-
- @mastra/core@0.16.0-alpha.0
|
|
500
|
-
|
|
501
501
|
|
|
502
|
-
...
|
|
502
|
+
... 832 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/elasticsearch
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Standardize error IDs across all storage and vector stores using centralized helper functions (`createStorageErrorId` and `createVectorErrorId`). This ensures consistent error ID patterns (`MASTRA_STORAGE_{STORE}_{OPERATION}_{STATUS}` and `MASTRA_VECTOR_{STORE}_{OPERATION}_{STATUS}`) across the codebase for better error tracking and debugging. ([#10913](https://github.com/mastra-ai/mastra/pull/10913))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
|
|
10
|
+
- @mastra/core@1.0.0-beta.7
|
|
11
|
+
|
|
3
12
|
## 1.0.0-beta.2
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @mastra/lance
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Add `disableInit` option to all storage adapters ([#10851](https://github.com/mastra-ai/mastra/pull/10851))
|
|
8
|
+
|
|
9
|
+
Adds a new `disableInit` config option to all storage providers that allows users to disable automatic table creation/migrations at runtime. This is useful for CI/CD pipelines where you want to run migrations during deployment with elevated credentials, then run the application with `disableInit: true` so it doesn't attempt schema changes at runtime.
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
// CI/CD script - run migrations
|
|
13
|
+
const storage = new PostgresStore({
|
|
14
|
+
connectionString: DATABASE_URL,
|
|
15
|
+
id: 'pg-storage',
|
|
16
|
+
});
|
|
17
|
+
await storage.init();
|
|
18
|
+
|
|
19
|
+
// Runtime - skip auto-init
|
|
20
|
+
const storage = new PostgresStore({
|
|
21
|
+
connectionString: DATABASE_URL,
|
|
22
|
+
id: 'pg-storage',
|
|
23
|
+
disableInit: true,
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Standardize error IDs across all storage and vector stores using centralized helper functions (`createStorageErrorId` and `createVectorErrorId`). This ensures consistent error ID patterns (`MASTRA_STORAGE_{STORE}_{OPERATION}_{STATUS}` and `MASTRA_VECTOR_{STORE}_{OPERATION}_{STATUS}`) across the codebase for better error tracking and debugging. ([#10913](https://github.com/mastra-ai/mastra/pull/10913))
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
|
|
32
|
+
- @mastra/core@1.0.0-beta.7
|
|
33
|
+
|
|
3
34
|
## 1.0.0-beta.3
|
|
4
35
|
|
|
5
36
|
### Patch Changes
|
|
@@ -467,36 +498,5 @@
|
|
|
467
498
|
- Updated dependencies [a1111e2]
|
|
468
499
|
- Updated dependencies [b42a961]
|
|
469
500
|
- Updated dependencies [61debef]
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
- Updated dependencies [f643c65]
|
|
473
|
-
- Updated dependencies [00c74e7]
|
|
474
|
-
- Updated dependencies [fef7375]
|
|
475
|
-
- Updated dependencies [e3d8fea]
|
|
476
|
-
- Updated dependencies [45e4d39]
|
|
477
|
-
- Updated dependencies [9eee594]
|
|
478
|
-
- Updated dependencies [7149d8d]
|
|
479
|
-
- Updated dependencies [822c2e8]
|
|
480
|
-
- Updated dependencies [979912c]
|
|
481
|
-
- Updated dependencies [7dcf4c0]
|
|
482
|
-
- Updated dependencies [4106a58]
|
|
483
|
-
- Updated dependencies [ad78bfc]
|
|
484
|
-
- Updated dependencies [0302f50]
|
|
485
|
-
- Updated dependencies [6ac697e]
|
|
486
|
-
- Updated dependencies [74db265]
|
|
487
|
-
- Updated dependencies [0ce418a]
|
|
488
|
-
- Updated dependencies [af90672]
|
|
489
|
-
- Updated dependencies [8387952]
|
|
490
|
-
- Updated dependencies [7f3b8da]
|
|
491
|
-
- Updated dependencies [905352b]
|
|
492
|
-
- Updated dependencies [599d04c]
|
|
493
|
-
- Updated dependencies [56041d0]
|
|
494
|
-
- Updated dependencies [3412597]
|
|
495
|
-
- Updated dependencies [5eca5d2]
|
|
496
|
-
- Updated dependencies [f2cda47]
|
|
497
|
-
- Updated dependencies [5de1555]
|
|
498
|
-
- Updated dependencies [cfd377a]
|
|
499
|
-
- Updated dependencies [1ed5a3e]
|
|
500
|
-
- @mastra/core@0.15.3
|
|
501
|
-
|
|
502
|
-
... 437 more lines hidden. See full changelog in package directory.
|
|
501
|
+
|
|
502
|
+
... 468 more lines hidden. See full changelog in package directory.
|