@mastra/mcp-docs-server 1.0.0-beta.6 → 1.0.0-beta.8
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%2Fagent-builder.md +12 -12
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +10 -10
- 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 +48 -48
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +65 -65
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +47 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +196 -196
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +19 -19
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Felasticsearch.md +9 -0
- package/.docs/organized/changelogs/%40mastra%2Flance.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +40 -40
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +43 -43
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +52 -52
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Freact.md +14 -0
- package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +9 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +65 -65
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +48 -48
- 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/build-your-ui/ai-sdk-ui.mdx +381 -431
- package/.docs/raw/guides/getting-started/quickstart.mdx +11 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +40 -1
- 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/ai-sdk/chat-route.mdx +127 -0
- package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +117 -0
- package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +64 -0
- package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +116 -0
- package/.docs/raw/reference/ai-sdk/network-route.mdx +99 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-stream.mdx +289 -0
- package/.docs/raw/reference/ai-sdk/workflow-route.mdx +110 -0
- 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/custom-api-routes.mdx +5 -5
- package/.docs/raw/server-db/mastra-server.mdx +11 -32
- package/.docs/raw/server-db/server-adapters.mdx +286 -0
- package/.docs/raw/workflows/workflow-state.mdx +4 -5
- package/CHANGELOG.md +15 -0
- package/package.json +4 -4
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @mastra/convex
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix saveScore not persisting ID correctly, breaking getScoreById retrieval ([#10915](https://github.com/mastra-ai/mastra/pull/10915))
|
|
8
|
+
|
|
9
|
+
**What Changed**
|
|
10
|
+
- saveScore now correctly returns scores that can be retrieved with getScoreById
|
|
11
|
+
- Validation errors now include contextual information (scorer, entity, trace details) for easier debugging
|
|
12
|
+
|
|
13
|
+
**Impact**
|
|
14
|
+
Previously, calling getScoreById after saveScore would return null because the generated ID wasn't persisted to the database. This is now fixed across all store implementations, ensuring consistent behavior and data integrity.
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
|
|
17
|
+
- @mastra/core@1.0.0-beta.8
|
|
18
|
+
|
|
19
|
+
## 0.1.0-beta.1
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- Add `disableInit` option to all storage adapters ([#10851](https://github.com/mastra-ai/mastra/pull/10851))
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
// CI/CD script - run migrations
|
|
29
|
+
const storage = new PostgresStore({
|
|
30
|
+
connectionString: DATABASE_URL,
|
|
31
|
+
id: 'pg-storage',
|
|
32
|
+
});
|
|
33
|
+
await storage.init();
|
|
34
|
+
|
|
35
|
+
// Runtime - skip auto-init
|
|
36
|
+
const storage = new PostgresStore({
|
|
37
|
+
connectionString: DATABASE_URL,
|
|
38
|
+
id: 'pg-storage',
|
|
39
|
+
disableInit: true,
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 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))
|
|
46
|
+
|
|
47
|
+
- 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)]:
|
|
48
|
+
- @mastra/core@1.0.0-beta.7
|
|
49
|
+
|
|
3
50
|
## 0.0.2-beta.0
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|
|
@@ -1,5 +1,200 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix saveScore not persisting ID correctly, breaking getScoreById retrieval ([#10915](https://github.com/mastra-ai/mastra/pull/10915))
|
|
8
|
+
|
|
9
|
+
**What Changed**
|
|
10
|
+
- saveScore now correctly returns scores that can be retrieved with getScoreById
|
|
11
|
+
- Validation errors now include contextual information (scorer, entity, trace details) for easier debugging
|
|
12
|
+
|
|
13
|
+
**Impact**
|
|
14
|
+
Previously, calling getScoreById after saveScore would return null because the generated ID wasn't persisted to the database. This is now fixed across all store implementations, ensuring consistent behavior and data integrity.
|
|
15
|
+
|
|
16
|
+
- `setState` is now async ([#10944](https://github.com/mastra-ai/mastra/pull/10944))
|
|
17
|
+
- `setState` must now be awaited: `await setState({ key: value })`
|
|
18
|
+
- State updates are merged automatically—no need to spread the previous state
|
|
19
|
+
- State data is validated against the step's `stateSchema` when `validateInputs` is enabled (default: `true`)
|
|
20
|
+
|
|
21
|
+
- Add human-in-the-loop support for workflows used in agent ([#10871](https://github.com/mastra-ai/mastra/pull/10871))
|
|
22
|
+
|
|
23
|
+
## 1.0.0-beta.7
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- Add `disableInit` option to all storage adapters ([#10851](https://github.com/mastra-ai/mastra/pull/10851))
|
|
28
|
+
|
|
29
|
+
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.
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
// CI/CD script - run migrations
|
|
33
|
+
const storage = new PostgresStore({
|
|
34
|
+
connectionString: DATABASE_URL,
|
|
35
|
+
id: 'pg-storage',
|
|
36
|
+
});
|
|
37
|
+
await storage.init();
|
|
38
|
+
|
|
39
|
+
// Runtime - skip auto-init
|
|
40
|
+
const storage = new PostgresStore({
|
|
41
|
+
connectionString: DATABASE_URL,
|
|
42
|
+
id: 'pg-storage',
|
|
43
|
+
disableInit: true,
|
|
44
|
+
});
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Add time-to-first-token (TTFT) support for Langfuse integration ([#10781](https://github.com/mastra-ai/mastra/pull/10781))
|
|
50
|
+
|
|
51
|
+
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.
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
// completionStartTime is now automatically captured and sent to Langfuse
|
|
55
|
+
// enabling TTFT metrics in your Langfuse dashboard
|
|
56
|
+
const result = await agent.stream('Hello');
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- 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))
|
|
60
|
+
https://github.com/open-telemetry/semantic-conventions/blob/v1.38.0/docs/gen-ai/README.md
|
|
61
|
+
|
|
62
|
+
- 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))
|
|
63
|
+
|
|
64
|
+
- fix: generate unique text IDs for Anthropic/Google providers ([#10740](https://github.com/mastra-ai/mastra/pull/10740))
|
|
65
|
+
|
|
66
|
+
Workaround for duplicate text-start/text-end IDs in multi-step agentic flows.
|
|
67
|
+
|
|
68
|
+
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.
|
|
69
|
+
|
|
70
|
+
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.
|
|
71
|
+
|
|
72
|
+
Related: #9909
|
|
73
|
+
|
|
74
|
+
- Fix sub-agent requestContext propagation in listAgentTools ([#10844](https://github.com/mastra-ai/mastra/pull/10844))
|
|
75
|
+
|
|
76
|
+
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.
|
|
77
|
+
|
|
78
|
+
No code changes required for consumers - this fix restores expected behavior for dynamic model configurations in sub-agents.
|
|
79
|
+
|
|
80
|
+
- Fix ToolStream type error when piping streams with different types ([#10845](https://github.com/mastra-ai/mastra/pull/10845))
|
|
81
|
+
|
|
82
|
+
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.
|
|
83
|
+
|
|
84
|
+
Before:
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
// TypeError: ToolStream<ChunkType> is not assignable to WritableStream<Partial<StoryPlan>>
|
|
88
|
+
await response.objectStream.pipeTo(writer);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
After:
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
// Works without type errors
|
|
95
|
+
await response.objectStream.pipeTo(writer);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
- feat: add native Perplexity provider support ([#10885](https://github.com/mastra-ai/mastra/pull/10885))
|
|
99
|
+
|
|
100
|
+
- 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))
|
|
101
|
+
|
|
102
|
+
**Before:**
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
threadObject = await memory.createThread({
|
|
106
|
+
// ...
|
|
107
|
+
saveThread: false, // thread not in DB yet
|
|
108
|
+
});
|
|
109
|
+
// Later: MessageHistory calls saveMessages() -> PostgresStore throws "Thread not found"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**After:**
|
|
113
|
+
|
|
114
|
+
```ts
|
|
115
|
+
threadObject = await memory.createThread({
|
|
116
|
+
// ...
|
|
117
|
+
saveThread: true, // thread persisted immediately
|
|
118
|
+
});
|
|
119
|
+
// MessageHistory can now save messages without error
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
- Emit error chunk and call onError when agent workflow step fails ([#10907](https://github.com/mastra-ai/mastra/pull/10907))
|
|
123
|
+
|
|
124
|
+
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.
|
|
125
|
+
|
|
126
|
+
- fix(core): use agent description when converting agent to tool ([#10879](https://github.com/mastra-ai/mastra/pull/10879))
|
|
127
|
+
|
|
128
|
+
- Adds native @ai-sdk/deepseek provider support instead of using the OpenAI-compatible fallback. ([#10822](https://github.com/mastra-ai/mastra/pull/10822))
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
const agent = new Agent({
|
|
132
|
+
model: 'deepseek/deepseek-reasoner',
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
// With provider options for reasoning
|
|
136
|
+
const response = await agent.generate('Solve this problem', {
|
|
137
|
+
providerOptions: {
|
|
138
|
+
deepseek: {
|
|
139
|
+
thinking: { type: 'enabled' },
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
});
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Also updates the doc generation scripts so DeepSeek provider options show up in the generated docs.
|
|
146
|
+
|
|
147
|
+
- Return state too if `includeState: true` is in `outputOptions` and workflow run is not successful ([#10806](https://github.com/mastra-ai/mastra/pull/10806))
|
|
148
|
+
|
|
149
|
+
- feat: Add partial response support for agent and workflow list endpoints ([#10886](https://github.com/mastra-ai/mastra/pull/10886))
|
|
150
|
+
|
|
151
|
+
Add optional `partial` query parameter to `/api/agents` and `/api/workflows` endpoints to return minimal data without schemas, reducing payload size for list views:
|
|
152
|
+
- When `partial=true`: tool schemas (inputSchema, outputSchema) are omitted
|
|
153
|
+
- When `partial=true`: workflow steps are replaced with stepCount integer
|
|
154
|
+
- When `partial=true`: workflow root schemas (inputSchema, outputSchema) are omitted
|
|
155
|
+
- Maintains backward compatibility when partial parameter is not provided
|
|
156
|
+
|
|
157
|
+
## Server Endpoint Usage
|
|
158
|
+
|
|
159
|
+
```http
|
|
160
|
+
# Get partial agent data (no tool schemas)
|
|
161
|
+
GET /api/agents?partial=true
|
|
162
|
+
|
|
163
|
+
# Get full agent data (default behavior)
|
|
164
|
+
GET /api/agents
|
|
165
|
+
|
|
166
|
+
# Get partial workflow data (stepCount instead of steps, no schemas)
|
|
167
|
+
GET /api/workflows?partial=true
|
|
168
|
+
|
|
169
|
+
# Get full workflow data (default behavior)
|
|
170
|
+
GET /api/workflows
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
## Client SDK Usage
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
import { MastraClient } from '@mastra/client-js';
|
|
177
|
+
|
|
178
|
+
const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
|
|
179
|
+
|
|
180
|
+
// Get partial agent list (smaller payload)
|
|
181
|
+
const partialAgents = await client.listAgents({ partial: true });
|
|
182
|
+
|
|
183
|
+
// Get full agent list with tool schemas
|
|
184
|
+
const fullAgents = await client.listAgents();
|
|
185
|
+
|
|
186
|
+
// Get partial workflow list (smaller payload)
|
|
187
|
+
const partialWorkflows = await client.listWorkflows({ partial: true });
|
|
188
|
+
|
|
189
|
+
// Get full workflow list with steps and schemas
|
|
190
|
+
const fullWorkflows = await client.listWorkflows();
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
- Fix processInputStep so it runs correctly. ([#10909](https://github.com/mastra-ai/mastra/pull/10909))
|
|
194
|
+
|
|
195
|
+
- 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)]:
|
|
196
|
+
- @mastra/observability@1.0.0-beta.3
|
|
197
|
+
|
|
3
198
|
## 1.0.0-beta.6
|
|
4
199
|
|
|
5
200
|
### Major Changes
|
|
@@ -303,200 +498,5 @@
|
|
|
303
498
|
|
|
304
499
|
// Dynamic discovery mode
|
|
305
500
|
export const mastra = new Mastra({
|
|
306
|
-
gateways: [
|
|
307
|
-
new AzureOpenAIGateway({
|
|
308
|
-
resourceName: process.env.AZURE_RESOURCE_NAME!,
|
|
309
|
-
apiKey: process.env.AZURE_API_KEY!,
|
|
310
|
-
management: {
|
|
311
|
-
tenantId: process.env.AZURE_TENANT_ID!,
|
|
312
|
-
clientId: process.env.AZURE_CLIENT_ID!,
|
|
313
|
-
clientSecret: process.env.AZURE_CLIENT_SECRET!,
|
|
314
|
-
subscriptionId: process.env.AZURE_SUBSCRIPTION_ID!,
|
|
315
|
-
resourceGroup: 'my-resource-group',
|
|
316
|
-
},
|
|
317
|
-
}),
|
|
318
|
-
],
|
|
319
|
-
});
|
|
320
|
-
|
|
321
|
-
// Use Azure OpenAI models
|
|
322
|
-
const agent = new Agent({
|
|
323
|
-
model: 'azure-openai/gpt-4-deployment',
|
|
324
|
-
instructions: 'You are a helpful assistant',
|
|
325
|
-
});
|
|
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
|
+
... 5936 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,23 @@
|
|
|
1
1
|
# @mastra/deployer-cloud
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`38c98bc`](https://github.com/mastra-ai/mastra/commit/38c98bca79aa028d6ac324073779483ace4d665b), [`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`2a54120`](https://github.com/mastra-ai/mastra/commit/2a541203a7ede20c7b4dca11adaed387e717d6e0), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
|
|
8
|
+
- @mastra/loggers@1.0.0-beta.3
|
|
9
|
+
- @mastra/core@1.0.0-beta.8
|
|
10
|
+
- @mastra/deployer@1.0.0-beta.8
|
|
11
|
+
|
|
12
|
+
## 1.0.0-beta.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 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)]:
|
|
17
|
+
- @mastra/core@1.0.0-beta.7
|
|
18
|
+
- @mastra/deployer@1.0.0-beta.7
|
|
19
|
+
- @mastra/loggers@1.0.0-beta.2
|
|
20
|
+
|
|
3
21
|
## 1.0.0-beta.6
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -480,23 +498,5 @@
|
|
|
480
498
|
|
|
481
499
|
## 0.17.1-alpha.0
|
|
482
500
|
|
|
483
|
-
### Patch Changes
|
|
484
|
-
|
|
485
|
-
- Updated dependencies [[`fd00e63`](https://github.com/mastra-ai/mastra/commit/fd00e63759cbcca3473c40cac9843280b0557cff), [`ab610f6`](https://github.com/mastra-ai/mastra/commit/ab610f6f41dbfe6c9502368671485ca7a0aac09b), [`e6bda5f`](https://github.com/mastra-ai/mastra/commit/e6bda5f954ee8493ea18adc1a883f0a5b785ad9b)]:
|
|
486
|
-
- @mastra/core@0.17.1-alpha.0
|
|
487
|
-
- @mastra/deployer@0.17.1-alpha.0
|
|
488
|
-
|
|
489
|
-
## 0.17.0
|
|
490
|
-
|
|
491
|
-
### Minor Changes
|
|
492
|
-
|
|
493
|
-
- The `IBundler` and subsequently the `IDeployer` interface changed, making the third argument of `bundle()` an object. ([#7619](https://github.com/mastra-ai/mastra/pull/7619))
|
|
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
501
|
|
|
502
|
-
...
|
|
502
|
+
... 471 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix tsconfig.json parsing when file contains JSONC comments ([#10952](https://github.com/mastra-ai/mastra/pull/10952))
|
|
8
|
+
|
|
9
|
+
The `hasPaths()` function now uses `strip-json-comments` to properly parse tsconfig.json files that contain comments. Previously, `JSON.parse()` would fail silently on JSONC comments, causing path aliases like `@src/*` to be incorrectly treated as npm scoped packages.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
|
|
12
|
+
- @mastra/core@1.0.0-beta.8
|
|
13
|
+
- @mastra/server@1.0.0-beta.8
|
|
14
|
+
|
|
15
|
+
## 1.0.0-beta.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Remove cast as any from MastraServer in deployer ([#10796](https://github.com/mastra-ai/mastra/pull/10796))
|
|
20
|
+
|
|
21
|
+
- 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))
|
|
22
|
+
|
|
23
|
+
- Add simple virtual check for tsconfigpaths plugin, misbehaves on CI ([#10832](https://github.com/mastra-ai/mastra/pull/10832))
|
|
24
|
+
|
|
25
|
+
- 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)]:
|
|
26
|
+
- @mastra/core@1.0.0-beta.7
|
|
27
|
+
- @mastra/server@1.0.0-beta.7
|
|
28
|
+
|
|
3
29
|
## 1.0.0-beta.6
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -472,31 +498,5 @@
|
|
|
472
498
|
|
|
473
499
|
### Patch Changes
|
|
474
500
|
|
|
475
|
-
- Get agent registered on a parent agent via API ([#9106](https://github.com/mastra-ai/mastra/pull/9106))
|
|
476
|
-
|
|
477
|
-
- Updated dependencies [[`69ff5d5`](https://github.com/mastra-ai/mastra/commit/69ff5d58e4bc4054ce76bbb25a8fa5d3177c49ea)]:
|
|
478
|
-
- @mastra/server@0.22.1-alpha.0
|
|
479
|
-
- @mastra/core@0.22.1-alpha.0
|
|
480
|
-
|
|
481
|
-
## 0.22.0
|
|
482
|
-
|
|
483
|
-
### Minor Changes
|
|
484
|
-
|
|
485
|
-
- Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
|
|
486
|
-
|
|
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
|
+
... 5101 more lines hidden. See full changelog in package directory.
|