@mastra/mcp-docs-server 0.13.2-alpha.3 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +19 -19
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +7 -7
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +8 -8
- package/.docs/organized/changelogs/create-mastra.md +7 -7
- package/.docs/organized/changelogs/mastra.md +10 -10
- package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +3 -2
- package/.docs/raw/course/04-workflows/05-chaining-steps-together.md +6 -5
- package/.docs/raw/course/04-workflows/18-understanding-conditional-branching.md +6 -3
- package/package.json +4 -4
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.10.6-alpha.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c0d41f6: Fix streaming for agent tool calls
|
|
8
|
+
|
|
9
|
+
## 0.10.6-alpha.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- bee3fe4: Fix client side tool calling
|
|
14
|
+
- @mastra/core@0.10.7-alpha.5
|
|
15
|
+
|
|
3
16
|
## 0.10.6-alpha.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -285,18 +298,5 @@
|
|
|
285
298
|
Highlight borders for conditions too on workflow graph
|
|
286
299
|
Fix watch stream
|
|
287
300
|
- 5343f93: Move emitter to symbol to make private
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
- Updated dependencies [d70b807]
|
|
291
|
-
- Updated dependencies [6d16390]
|
|
292
|
-
- Updated dependencies [1e4a421]
|
|
293
|
-
- Updated dependencies [200d0da]
|
|
294
|
-
- Updated dependencies [bf5f17b]
|
|
295
|
-
- Updated dependencies [5343f93]
|
|
296
|
-
- Updated dependencies [38aee50]
|
|
297
|
-
- Updated dependencies [5c41100]
|
|
298
|
-
- Updated dependencies [d6a759b]
|
|
299
|
-
- Updated dependencies [6015bdf]
|
|
300
|
-
- @mastra/core@0.10.1
|
|
301
|
-
|
|
302
|
-
... 1305 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 1318 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/cloudflare-d1
|
|
2
2
|
|
|
3
|
+
## 0.12.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e6b8e5: dependencies updates:
|
|
8
|
+
- Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
|
|
9
|
+
|
|
3
10
|
## 0.12.0-alpha.3
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Updated dependencies [0b8b868]
|
|
292
299
|
- Updated dependencies [9e1eff5]
|
|
293
300
|
- Updated dependencies [6fa1ad1]
|
|
294
|
-
- Updated dependencies [c28d7a0]
|
|
295
|
-
- Updated dependencies [edf1e88]
|
|
296
|
-
- @mastra/core@0.9.4
|
|
297
|
-
|
|
298
|
-
## 0.1.9-alpha.4
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 327 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.11.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e6b8e5: dependencies updates:
|
|
8
|
+
- Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
|
|
9
|
+
|
|
3
10
|
## 0.11.0-alpha.3
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Updated dependencies [973e5ac]
|
|
292
299
|
- Updated dependencies [daf942f]
|
|
293
300
|
- Updated dependencies [0b8b868]
|
|
294
|
-
- Updated dependencies [9e1eff5]
|
|
295
|
-
- Updated dependencies [6fa1ad1]
|
|
296
|
-
- Updated dependencies [c28d7a0]
|
|
297
|
-
- Updated dependencies [edf1e88]
|
|
298
|
-
- @mastra/core@0.9.4
|
|
299
|
-
|
|
300
|
-
## 0.1.4-alpha.4
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 521 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a853c43]
|
|
8
|
+
- @mastra/schema-compat@0.10.3-alpha.1
|
|
9
|
+
|
|
3
10
|
## 0.10.7-alpha.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
|
|
292
299
|
### Patch Changes
|
|
293
300
|
|
|
294
|
-
- ee77e78: Type fixes for dynamodb and MessageList
|
|
295
|
-
- 2901125: feat: set mastra server middleware after Mastra has been initialized
|
|
296
|
-
|
|
297
|
-
## 0.10.2-alpha.0
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1940 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/deployer-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e6b8e5: dependencies updates:
|
|
8
|
+
- Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
|
|
9
|
+
|
|
10
|
+
## 0.10.7-alpha.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- @mastra/core@0.10.7-alpha.5
|
|
15
|
+
- @mastra/deployer@0.10.7-alpha.5
|
|
16
|
+
|
|
3
17
|
## 0.10.7-alpha.4
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -284,19 +298,5 @@
|
|
|
284
298
|
|
|
285
299
|
### Patch Changes
|
|
286
300
|
|
|
287
|
-
- Updated dependencies [2b0fc7e]
|
|
288
|
-
- @mastra/core@0.10.3
|
|
289
|
-
- @mastra/deployer@0.10.3
|
|
290
|
-
|
|
291
|
-
## 0.10.3-alpha.0
|
|
292
|
-
|
|
293
|
-
### Patch Changes
|
|
294
|
-
|
|
295
|
-
- Updated dependencies [2b0fc7e]
|
|
296
|
-
- @mastra/core@0.10.3-alpha.0
|
|
297
|
-
- @mastra/deployer@0.10.3-alpha.0
|
|
298
|
-
|
|
299
|
-
## 0.10.2
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2501 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/deployer-netlify
|
|
2
2
|
|
|
3
|
+
## 0.11.0-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @mastra/core@0.10.7-alpha.5
|
|
8
|
+
- @mastra/deployer@0.10.7-alpha.5
|
|
9
|
+
|
|
3
10
|
## 0.11.0-alpha.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -292,11 +299,4 @@
|
|
|
292
299
|
|
|
293
300
|
### Patch Changes
|
|
294
301
|
|
|
295
|
-
|
|
296
|
-
- Updated dependencies [ee77e78]
|
|
297
|
-
- Updated dependencies [592a2db]
|
|
298
|
-
- Updated dependencies [e5dc18d]
|
|
299
|
-
- Updated dependencies [ab5adbe]
|
|
300
|
-
- Updated dependencies [e8d2aff]
|
|
301
|
-
|
|
302
|
-
... 2447 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2454 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/deployer-vercel
|
|
2
2
|
|
|
3
|
+
## 0.11.0-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @mastra/core@0.10.7-alpha.5
|
|
8
|
+
- @mastra/deployer@0.10.7-alpha.5
|
|
9
|
+
|
|
3
10
|
## 0.11.0-alpha.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Updated dependencies [8dc94d8]
|
|
292
299
|
- Updated dependencies [ecebbeb]
|
|
293
300
|
- Updated dependencies [4187ed4]
|
|
294
|
-
- Updated dependencies [79d5145]
|
|
295
|
-
- Updated dependencies [12b7002]
|
|
296
|
-
- Updated dependencies [f0d559f]
|
|
297
|
-
- Updated dependencies [2901125]
|
|
298
|
-
- @mastra/core@0.10.2
|
|
299
|
-
- @mastra/deployer@0.10.2
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2438 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @mastra/core@0.10.7-alpha.5
|
|
8
|
+
- @mastra/server@0.10.7-alpha.5
|
|
9
|
+
|
|
3
10
|
## 0.10.7-alpha.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Updated dependencies [bebd27c]
|
|
292
299
|
- Updated dependencies [f7f8293]
|
|
293
300
|
- @mastra/core@0.10.4-alpha.1
|
|
294
|
-
- @mastra/server@0.10.4-alpha.1
|
|
295
|
-
|
|
296
|
-
## 0.10.4-alpha.0
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- d1ed912: dependencies updates:
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2519 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
+
## 0.12.0-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e6b8e5: dependencies updates:
|
|
8
|
+
- Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
|
|
9
|
+
|
|
3
10
|
## 0.12.0-alpha.3
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Updated dependencies [b2ae5aa]
|
|
292
299
|
- Updated dependencies [a7292b0]
|
|
293
300
|
- Updated dependencies [0dcb9f0]
|
|
294
|
-
- @mastra/core@0.10.0-alpha.1
|
|
295
|
-
|
|
296
|
-
## 0.0.6-alpha.0
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- d0ee3c6: Change all public functions and constructors in vector stores to use named args and prepare to phase out positional args
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 294 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 5.1.7-alpha.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c0d41f6]
|
|
8
|
+
- @mastra/client-js@0.10.6-alpha.6
|
|
9
|
+
|
|
10
|
+
## 5.1.7-alpha.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- b9f5599: dependencies updates:
|
|
15
|
+
- Updated dependency [`@codemirror/lang-json@^6.0.2` ↗︎](https://www.npmjs.com/package/@codemirror/lang-json/v/6.0.2) (from `^6.0.1`, in `dependencies`)
|
|
16
|
+
- 5af21a8: fix: remove final output on workflows for now
|
|
17
|
+
- Updated dependencies [bee3fe4]
|
|
18
|
+
- @mastra/client-js@0.10.6-alpha.5
|
|
19
|
+
- @mastra/core@0.10.7-alpha.5
|
|
20
|
+
|
|
3
21
|
## 5.1.7-alpha.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -281,22 +299,4 @@
|
|
|
281
299
|
|
|
282
300
|
### Patch Changes
|
|
283
301
|
|
|
284
|
-
|
|
285
|
-
- @mastra/core@0.10.4-alpha.3
|
|
286
|
-
- @mastra/client-js@0.10.3-alpha.3
|
|
287
|
-
|
|
288
|
-
## 5.1.4-alpha.3
|
|
289
|
-
|
|
290
|
-
### Patch Changes
|
|
291
|
-
|
|
292
|
-
- Updated dependencies [48eddb9]
|
|
293
|
-
- @mastra/core@0.10.4-alpha.2
|
|
294
|
-
- @mastra/client-js@0.10.3-alpha.2
|
|
295
|
-
|
|
296
|
-
## 5.1.4-alpha.2
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- e719504: don't start posthog when the browser is Brave
|
|
301
|
-
|
|
302
|
-
... 1656 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1674 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @mastra/core@0.10.7-alpha.5
|
|
8
|
+
|
|
3
9
|
## 0.10.7-alpha.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -292,11 +298,5 @@
|
|
|
292
298
|
|
|
293
299
|
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
294
300
|
- Updated dependencies [c5bf1ce]
|
|
295
|
-
- Updated dependencies [12b7002]
|
|
296
|
-
- @mastra/core@0.10.2-alpha.4
|
|
297
|
-
|
|
298
|
-
## 0.10.2-alpha.3
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2120 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/vectorize
|
|
2
2
|
|
|
3
|
+
## 0.11.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e6b8e5: dependencies updates:
|
|
8
|
+
- Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
|
|
9
|
+
|
|
3
10
|
## 0.11.0-alpha.1
|
|
4
11
|
|
|
5
12
|
### Minor Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Updated dependencies [8398d89]
|
|
292
299
|
- @mastra/core@0.9.2
|
|
293
300
|
|
|
294
|
-
## 0.2.8-alpha.6
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- Updated dependencies [6052aa6]
|
|
299
|
-
- Updated dependencies [7d8b7c7]
|
|
300
|
-
- Updated dependencies [3a5f1e1]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1604 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/voice-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.10.4-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8e6b8e5: dependencies updates:
|
|
8
|
+
- Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
|
|
9
|
+
|
|
3
10
|
## 0.10.4-alpha.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Updated dependencies [26738f4]
|
|
292
299
|
- Updated dependencies [4155f47]
|
|
293
300
|
- Updated dependencies [7eeb2bc]
|
|
294
|
-
- Updated dependencies [b804723]
|
|
295
|
-
- Updated dependencies [8607972]
|
|
296
|
-
- Updated dependencies [ccef9f9]
|
|
297
|
-
- Updated dependencies [0097d50]
|
|
298
|
-
- Updated dependencies [7eeb2bc]
|
|
299
|
-
- Updated dependencies [17826a9]
|
|
300
|
-
- Updated dependencies [7d8b7c7]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 537 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.6-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f9b4350: fix icons not showing on all agents
|
|
8
|
+
|
|
3
9
|
## 0.10.6-alpha.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -293,10 +299,4 @@
|
|
|
293
299
|
|
|
294
300
|
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
295
301
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- b5d2de0: In vNext workflow serializedStepGraph, return only serializedStepFlow for steps created from a workflow
|
|
301
|
-
|
|
302
|
-
... 902 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 908 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f9b4350: fix icons not showing on all agents
|
|
8
|
+
- @mastra/core@0.10.7-alpha.5
|
|
9
|
+
- @mastra/deployer@0.10.7-alpha.5
|
|
10
|
+
|
|
3
11
|
## 0.10.7-alpha.4
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -290,13 +298,5 @@
|
|
|
290
298
|
- Updated dependencies [d90c49f]
|
|
291
299
|
- Updated dependencies [1ccccff]
|
|
292
300
|
- Updated dependencies [1ccccff]
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
- Updated dependencies [dffb67b]
|
|
296
|
-
- Updated dependencies [f1f1f1b]
|
|
297
|
-
- Updated dependencies [925ab94]
|
|
298
|
-
- Updated dependencies [9597ee5]
|
|
299
|
-
- Updated dependencies [f9816ae]
|
|
300
|
-
- Updated dependencies [82090c1]
|
|
301
|
-
|
|
302
|
-
... 3970 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 3978 more lines hidden. See full changelog in package directory.
|
|
@@ -18,13 +18,14 @@ export const mastra = new Mastra({
|
|
|
18
18
|
url: ":memory:",
|
|
19
19
|
}),
|
|
20
20
|
logger: new PinoLogger({
|
|
21
|
-
name:
|
|
22
|
-
level:
|
|
21
|
+
name: "Mastra",
|
|
22
|
+
level: "info",
|
|
23
23
|
}),
|
|
24
24
|
});
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
This creates a new Mastra instance that includes:
|
|
28
|
+
|
|
28
29
|
- Your financial agent
|
|
29
30
|
- In-memory storage for development
|
|
30
31
|
- A logger for debugging and monitoring
|
|
@@ -14,7 +14,7 @@ export const contentWorkflow = createWorkflow({
|
|
|
14
14
|
description: "Validates and enhances content",
|
|
15
15
|
inputSchema: z.object({
|
|
16
16
|
content: z.string(),
|
|
17
|
-
type: z.enum(["article", "blog", "social"]).default("article")
|
|
17
|
+
type: z.enum(["article", "blog", "social"]).default("article"),
|
|
18
18
|
}),
|
|
19
19
|
outputSchema: z.object({
|
|
20
20
|
content: z.string(),
|
|
@@ -23,9 +23,9 @@ export const contentWorkflow = createWorkflow({
|
|
|
23
23
|
metadata: z.object({
|
|
24
24
|
readingTime: z.number(),
|
|
25
25
|
difficulty: z.enum(["easy", "medium", "hard"]),
|
|
26
|
-
processedAt: z.string()
|
|
27
|
-
})
|
|
28
|
-
})
|
|
26
|
+
processedAt: z.string(),
|
|
27
|
+
}),
|
|
28
|
+
}),
|
|
29
29
|
})
|
|
30
30
|
.then(validateContentStep)
|
|
31
31
|
.then(enhanceContentStep)
|
|
@@ -49,8 +49,9 @@ export const contentWorkflow = createWorkflow({
|
|
|
49
49
|
## Schema Validation
|
|
50
50
|
|
|
51
51
|
The workflow automatically validates:
|
|
52
|
+
|
|
52
53
|
- Input data matches the workflow's input schema
|
|
53
54
|
- Each step's output matches the next step's input schema
|
|
54
55
|
- Final output matches the workflow's output schema
|
|
55
56
|
|
|
56
|
-
Your workflow is now ready to run! Next, you'll test the complete workflow.
|
|
57
|
+
Your workflow is now ready to run! Next, you'll test the complete workflow.
|
|
@@ -5,14 +5,16 @@ Learn how to create workflows that take different paths based on data conditions
|
|
|
5
5
|
## What is Conditional Branching?
|
|
6
6
|
|
|
7
7
|
Conditional branching allows workflows to:
|
|
8
|
+
|
|
8
9
|
- **Make decisions**: Choose different processing paths based on data
|
|
9
|
-
- **Handle variations**: Process different content types differently
|
|
10
|
+
- **Handle variations**: Process different content types differently
|
|
10
11
|
- **Optimize performance**: Skip unnecessary steps for certain inputs
|
|
11
12
|
- **Customize behavior**: Provide different experiences based on conditions
|
|
12
13
|
|
|
13
14
|
## Real-World Example
|
|
14
15
|
|
|
15
16
|
Imagine a content processing workflow that:
|
|
17
|
+
|
|
16
18
|
- **Short content** (< 50 words): Gets quick processing
|
|
17
19
|
- **Medium content** (50-200 words): Gets standard processing
|
|
18
20
|
- **Long content** (> 200 words): Gets detailed processing with extra analysis
|
|
@@ -28,6 +30,7 @@ Imagine a content processing workflow that:
|
|
|
28
30
|
```
|
|
29
31
|
|
|
30
32
|
Where:
|
|
33
|
+
|
|
31
34
|
- **condition**: An async function that returns `true` or `false`
|
|
32
35
|
- **step**: The step to execute if the condition is `true`
|
|
33
36
|
|
|
@@ -39,7 +42,7 @@ Conditions are functions that examine the input data:
|
|
|
39
42
|
// Example condition function
|
|
40
43
|
async ({ inputData }) => {
|
|
41
44
|
return inputData.wordCount < 50;
|
|
42
|
-
}
|
|
45
|
+
};
|
|
43
46
|
```
|
|
44
47
|
|
|
45
48
|
## Multiple Paths
|
|
@@ -55,4 +58,4 @@ async ({ inputData }) => {
|
|
|
55
58
|
- **Flexibility**: Handle different scenarios in one workflow
|
|
56
59
|
- **Maintainability**: Clear logic for different processing paths
|
|
57
60
|
|
|
58
|
-
Next, you'll create a workflow with conditional branches!
|
|
61
|
+
Next, you'll create a workflow with conditional branches!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "0.13.2
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"uuid": "^11.1.0",
|
|
33
33
|
"zod": "^3.25.67",
|
|
34
34
|
"zod-to-json-schema": "^3.24.5",
|
|
35
|
-
"@mastra/mcp": "^0.10.5
|
|
35
|
+
"@mastra/mcp": "^0.10.5"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@hono/node-server": "^1.14.4",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"tsx": "^4.19.4",
|
|
48
48
|
"typescript": "^5.8.3",
|
|
49
49
|
"vitest": "^3.2.3",
|
|
50
|
-
"@internal/lint": "0.0.
|
|
51
|
-
"@mastra/core": "0.10.7
|
|
50
|
+
"@internal/lint": "0.0.14",
|
|
51
|
+
"@mastra/core": "0.10.7"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@mastra/core": "^0.10.0-alpha.0"
|