@mastra/mcp-docs-server 1.0.0-beta.10 → 1.0.0-beta.11
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%2Fai-sdk.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +91 -91
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +30 -30
- package/.docs/organized/changelogs/%40mastra%2Freact.md +26 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +31 -31
- package/.docs/organized/changelogs/create-mastra.md +3 -3
- package/.docs/organized/changelogs/mastra.md +15 -15
- package/.docs/raw/agents/guardrails.mdx +43 -6
- package/.docs/raw/agents/processors.mdx +151 -0
- package/.docs/raw/getting-started/mcp-docs-server.mdx +57 -0
- package/.docs/raw/getting-started/studio.mdx +24 -1
- package/.docs/raw/guides/migrations/upgrade-to-v1/agent.mdx +70 -0
- package/.docs/raw/reference/agents/agent.mdx +11 -4
- package/.docs/raw/reference/core/getServer.mdx +1 -1
- package/.docs/raw/reference/processors/processor-interface.mdx +314 -13
- package/.docs/raw/reference/streaming/ChunkType.mdx +23 -2
- package/.docs/raw/reference/streaming/agents/stream.mdx +16 -29
- package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +68 -3
- package/.docs/raw/reference/workflows/workflow.mdx +23 -0
- package/.docs/raw/server-db/mastra-server.mdx +7 -5
- package/.docs/raw/workflows/control-flow.mdx +348 -2
- package/CHANGELOG.md +7 -0
- package/package.json +5 -5
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @mastra/ai-sdk
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
|
|
8
|
+
|
|
9
|
+
When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
|
|
10
|
+
|
|
11
|
+
```typescript showLineNumbers copy
|
|
12
|
+
const run = await workflow.createRun();
|
|
13
|
+
const result = await run.start({ inputData: { message: 'Hello' } });
|
|
14
|
+
|
|
15
|
+
if (result.status === 'tripwire') {
|
|
16
|
+
console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
|
|
17
|
+
console.log('Processor ID:', result.tripwire?.processorId);
|
|
18
|
+
console.log('Retry requested:', result.tripwire?.retry);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Adds new UI state for tripwire in agent chat and workflow UI.
|
|
23
|
+
|
|
24
|
+
This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
27
|
+
- @mastra/core@1.0.0-beta.11
|
|
28
|
+
|
|
3
29
|
## 1.0.0-beta.7
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -473,30 +499,4 @@
|
|
|
473
499
|
|
|
474
500
|
- Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
|
|
475
501
|
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
- Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
|
|
479
|
-
- @mastra/core@0.20.0
|
|
480
|
-
|
|
481
|
-
## 0.1.0-alpha.0
|
|
482
|
-
|
|
483
|
-
### Minor Changes
|
|
484
|
-
|
|
485
|
-
- Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
|
|
486
|
-
|
|
487
|
-
### Patch Changes
|
|
488
|
-
|
|
489
|
-
- Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
|
|
490
|
-
- @mastra/core@0.20.0-alpha.0
|
|
491
|
-
|
|
492
|
-
## 0.0.5
|
|
493
|
-
|
|
494
|
-
### Patch Changes
|
|
495
|
-
|
|
496
|
-
- Update peer deps ([#8154](https://github.com/mastra-ai/mastra/pull/8154))
|
|
497
|
-
|
|
498
|
-
- Add transformer to support workflows in useChat ([#7829](https://github.com/mastra-ai/mastra/pull/7829))
|
|
499
|
-
|
|
500
|
-
- Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`504438b`](https://github.com/mastra-ai/mastra/commit/504438b961bde211071186bba63a842c4e3db879), [`b342a68`](https://github.com/mastra-ai/mastra/commit/b342a68e1399cf1ece9ba11bda112db89d21118c), [`a7243e2`](https://github.com/mastra-ai/mastra/commit/a7243e2e58762667a6e3921e755e89d6bb0a3282), [`7fceb0a`](https://github.com/mastra-ai/mastra/commit/7fceb0a327d678e812f90f5387c5bc4f38bd039e), [`303a9c0`](https://github.com/mastra-ai/mastra/commit/303a9c0d7dd58795915979f06a0512359e4532fb), [`df64f9e`](https://github.com/mastra-ai/mastra/commit/df64f9ef814916fff9baedd861c988084e7c41de), [`370f8a6`](https://github.com/mastra-ai/mastra/commit/370f8a6480faec70fef18d72e5f7538f27004301), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`683e5a1`](https://github.com/mastra-ai/mastra/commit/683e5a1466e48b686825b2c11f84680f296138e4), [`3679378`](https://github.com/mastra-ai/mastra/commit/3679378673350aa314741dc826f837b1984149bc), [`7775bc2`](https://github.com/mastra-ai/mastra/commit/7775bc20bb1ad1ab24797fb420e4f96c65b0d8ec), [`623ffaf`](https://github.com/mastra-ai/mastra/commit/623ffaf2d969e11e99a0224633cf7b5a0815c857), [`9fc1613`](https://github.com/mastra-ai/mastra/commit/9fc16136400186648880fd990119ac15f7c02ee4), [`61f62aa`](https://github.com/mastra-ai/mastra/commit/61f62aa31bc88fe4ddf8da6240dbcfbeb07358bd), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`e8f379d`](https://github.com/mastra-ai/mastra/commit/e8f379d390efa264c4e0874f9ac0cf8839b07777), [`652066b`](https://github.com/mastra-ai/mastra/commit/652066bd1efc6bb6813ba950ed1d7573e8b7d9d4), [`3e292ba`](https://github.com/mastra-ai/mastra/commit/3e292ba00837886d5d68a34cbc0d9b703c991883), [`418c136`](https://github.com/mastra-ai/mastra/commit/418c1366843d88e491bca3f87763899ce855ca29), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`67b0f00`](https://github.com/mastra-ai/mastra/commit/67b0f005b520335c71fb85cbaa25df4ce8484a81), [`c2a4919`](https://github.com/mastra-ai/mastra/commit/c2a4919ba6797d8bdb1509e02287496eef69303e), [`c84b7d0`](https://github.com/mastra-ai/mastra/commit/c84b7d093c4657772140cbfd2b15ef72f3315ed5), [`0130986`](https://github.com/mastra-ai/mastra/commit/0130986fc62d0edcc626dd593282661dbb9af141)]:
|
|
501
|
-
|
|
502
|
-
... 152 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 178 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/chroma
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Adding Chroma's advanced Search API (hybrid serch) ([#11046](https://github.com/mastra-ai/mastra/pull/11046))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
10
|
+
- @mastra/core@1.0.0-beta.11
|
|
11
|
+
|
|
3
12
|
## 1.0.0-beta.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -489,14 +498,5 @@
|
|
|
489
498
|
|
|
490
499
|
## 0.10.4-alpha.0
|
|
491
500
|
|
|
492
|
-
### Patch Changes
|
|
493
|
-
|
|
494
|
-
- 0e17048: Throw mastra errors in storage packages
|
|
495
|
-
- Updated dependencies [d1baedb]
|
|
496
|
-
- Updated dependencies [4d21bf2]
|
|
497
|
-
- Updated dependencies [2097952]
|
|
498
|
-
- Updated dependencies [4fb0cc2]
|
|
499
|
-
- Updated dependencies [d2a7a31]
|
|
500
|
-
- Updated dependencies [0e17048]
|
|
501
501
|
|
|
502
|
-
...
|
|
502
|
+
... 1891 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
|
|
8
|
+
|
|
9
|
+
When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
|
|
10
|
+
|
|
11
|
+
```typescript showLineNumbers copy
|
|
12
|
+
const run = await workflow.createRun();
|
|
13
|
+
const result = await run.start({ inputData: { message: 'Hello' } });
|
|
14
|
+
|
|
15
|
+
if (result.status === 'tripwire') {
|
|
16
|
+
console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
|
|
17
|
+
console.log('Processor ID:', result.tripwire?.processorId);
|
|
18
|
+
console.log('Retry requested:', result.tripwire?.retry);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Adds new UI state for tripwire in agent chat and workflow UI.
|
|
23
|
+
|
|
24
|
+
This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
27
|
+
- @mastra/core@1.0.0-beta.11
|
|
28
|
+
|
|
3
29
|
## 1.0.0-beta.10
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -472,31 +498,5 @@
|
|
|
472
498
|
} else if (mcp) {
|
|
473
499
|
doSomething(inputData.something, mcp)
|
|
474
500
|
} else {
|
|
475
|
-
// Running a tool in no execution context
|
|
476
|
-
return doSomething(inputData.something);
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
```
|
|
480
|
-
|
|
481
|
-
- Add search memory in client-js ([#9326](https://github.com/mastra-ai/mastra/pull/9326))
|
|
482
|
-
|
|
483
|
-
- Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
|
|
484
|
-
|
|
485
|
-
- Fix error handling and serialization in agent streaming to ensure errors are consistently exposed and preserved. ([#9144](https://github.com/mastra-ai/mastra/pull/9144))
|
|
486
|
-
|
|
487
|
-
- Fixes issue where clicking the reset button in the model picker would fail to restore the original LanguageModelV2 (or any other types) object that was passed during agent construction. ([#9481](https://github.com/mastra-ai/mastra/pull/9481))
|
|
488
|
-
|
|
489
|
-
- Move the enhance instruction fetch call to client-js ([#9302](https://github.com/mastra-ai/mastra/pull/9302))
|
|
490
|
-
|
|
491
|
-
- fix list memory ([#9751](https://github.com/mastra-ai/mastra/pull/9751))
|
|
492
|
-
|
|
493
|
-
- Remove unused /model-providers API ([#9533](https://github.com/mastra-ai/mastra/pull/9533))
|
|
494
|
-
|
|
495
|
-
- Backward compat for list threads ([#9758](https://github.com/mastra-ai/mastra/pull/9758))
|
|
496
|
-
|
|
497
|
-
- add client-js function to fetch model providers ([#9376](https://github.com/mastra-ai/mastra/pull/9376))
|
|
498
|
-
|
|
499
|
-
- Fix undefined runtimeContext using memory from playground ([#9328](https://github.com/mastra-ai/mastra/pull/9328))
|
|
500
|
-
|
|
501
501
|
|
|
502
|
-
...
|
|
502
|
+
... 3293 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,95 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Respect structured outputs for v2 models so tool schemas aren’t stripped ([#11038](https://github.com/mastra-ai/mastra/pull/11038))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Fix type safety for message ordering - restrict `orderBy` to only accept `'createdAt'` field ([#11069](https://github.com/mastra-ai/mastra/pull/11069))
|
|
12
|
+
|
|
13
|
+
Messages don't have an `updatedAt` field, but the previous type allowed ordering by it, which would return empty results. This change adds compile-time type safety by making `StorageOrderBy` generic and restricting `StorageListMessagesInput.orderBy` to only accept `'createdAt'`. The API validation schemas have also been updated to reject invalid orderBy values at runtime.
|
|
14
|
+
|
|
15
|
+
- Loosen tools types in processInputStep / prepareStep. ([#11071](https://github.com/mastra-ai/mastra/pull/11071))
|
|
16
|
+
|
|
17
|
+
- Added the ability to provide a base path for Mastra Studio. ([#10441](https://github.com/mastra-ai/mastra/pull/10441))
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { Mastra } from '@mastra/core';
|
|
21
|
+
|
|
22
|
+
export const mastra = new Mastra({
|
|
23
|
+
server: {
|
|
24
|
+
studioBase: '/my-mastra-studio',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This will make Mastra Studio available at `http://localhost:4111/my-mastra-studio`.
|
|
30
|
+
|
|
31
|
+
- Expand `processInputStep` processor method and integrate `prepareStep` as a processor ([#10774](https://github.com/mastra-ai/mastra/pull/10774))
|
|
32
|
+
|
|
33
|
+
**New Features:**
|
|
34
|
+
- `prepareStep` callback now runs through the standard `processInputStep` pipeline
|
|
35
|
+
- Processors can now modify per-step: `model`, `tools`, `toolChoice`, `activeTools`, `messages`, `systemMessages`, `providerOptions`, `modelSettings`, and `structuredOutput`
|
|
36
|
+
- Processor chaining: each processor receives accumulated state from previous processors
|
|
37
|
+
- System messages are isolated per-step (reset at start of each step)
|
|
38
|
+
|
|
39
|
+
**Breaking Change:**
|
|
40
|
+
- `prepareStep` messages format changed from AI SDK v5 model messages to `MastraDBMessage` format
|
|
41
|
+
- Migration: Use `messageList.get.all.aiV5.model()` if you need the old format
|
|
42
|
+
|
|
43
|
+
- Multiple Processor improvements including: ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
|
|
44
|
+
- Workflows can now return tripwires, they bubble up from agents that return tripwires in a step
|
|
45
|
+
- You can write processors as workflows using the existing Workflow primitive, every processor flow is now a workflow.
|
|
46
|
+
- tripwires that you throw can now return additional information including ability to retry the step
|
|
47
|
+
- New processor method `processOutputStep` added which runs after every step.
|
|
48
|
+
|
|
49
|
+
**What's new:**
|
|
50
|
+
|
|
51
|
+
**1. Retry mechanism with LLM feedback** - Processors can now request retries with feedback that gets sent back to the LLM:
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
processOutputStep: async ({ text, abort, retryCount }) => {
|
|
55
|
+
if (isLowQuality(text)) {
|
|
56
|
+
abort('Response quality too low', { retry: true, metadata: { score: 0.6 } });
|
|
57
|
+
}
|
|
58
|
+
return [];
|
|
59
|
+
};
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Configure with `maxProcessorRetries` (default: 3). Rejected steps are preserved in `result.steps[n].tripwire`. Retries are only available in `processOutputStep` and `processInputStep`. It will replay the step with additional context added.
|
|
63
|
+
|
|
64
|
+
**2. Workflow orchestration for processors** - Processors can now be composed using workflow primitives:
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import { createStep, createWorkflow } from '@mastra/core/workflows';
|
|
68
|
+
import {
|
|
69
|
+
ProcessorStepSchema,
|
|
70
|
+
} from '@mastra/core/processors';
|
|
71
|
+
|
|
72
|
+
const moderationWorkflow = createWorkflow({ id: 'moderation', inputSchema: ProcessorStepSchema, outputSchema: ProcessorStepSchema })
|
|
73
|
+
.then(createStep(new lengthValidator({...})))
|
|
74
|
+
.parallel([createStep(new piiDetector({...}), createStep(new toxicityChecker({...}))])
|
|
75
|
+
.commit();
|
|
76
|
+
|
|
77
|
+
const agent = new Agent({ inputProcessors: [moderationWorkflow] });
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Every processor array that gets passed to an agent gets added as a workflow
|
|
81
|
+
<img width="614" height="673" alt="image" src="https://github.com/user-attachments/assets/0d79f1fd-8fca-4d86-8b45-22fddea984a8" />
|
|
82
|
+
|
|
83
|
+
**3. Extended tripwire API** - `abort()` now accepts options for retry control and typed metadata:
|
|
84
|
+
|
|
85
|
+
```typescript
|
|
86
|
+
abort('reason', { retry: true, metadata: { score: 0.8, category: 'quality' } });
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**4. New `processOutputStep` method** - Per-step output processing with access to step number, finish reason, tool calls, and retry count.
|
|
90
|
+
|
|
91
|
+
**5. Workflow tripwire status** - Workflows now have a `'tripwire'` status distinct from `'failed'`, properly bubbling up processor rejections.
|
|
92
|
+
|
|
3
93
|
## 1.0.0-beta.10
|
|
4
94
|
|
|
5
95
|
### Patch Changes
|
|
@@ -409,94 +499,4 @@
|
|
|
409
499
|
- `nullValuePattern`: Skip values matching pattern (ClickHouse's `'_null_'`)
|
|
410
500
|
- `fieldMappings`: Map source column names to schema fields (LibSQL's `additionalLLMContext`)
|
|
411
501
|
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
### Patch Changes
|
|
415
|
-
|
|
416
|
-
- dependencies updates: ([#10110](https://github.com/mastra-ai/mastra/pull/10110))
|
|
417
|
-
- Updated dependency [`hono-openapi@^1.1.1` ↗︎](https://www.npmjs.com/package/hono-openapi/v/1.1.1) (from `^0.4.8`, in `dependencies`)
|
|
418
|
-
|
|
419
|
-
- unexpected json parse issue, log error but dont fail ([#10241](https://github.com/mastra-ai/mastra/pull/10241))
|
|
420
|
-
|
|
421
|
-
- Fixed a bug in agent networks where sometimes the task name was empty ([#10629](https://github.com/mastra-ai/mastra/pull/10629))
|
|
422
|
-
|
|
423
|
-
- Adds `tool-result` and `tool-error` chunks to the processor.processOutputStream path. Processors now have access to these two chunks. ([#10645](https://github.com/mastra-ai/mastra/pull/10645))
|
|
424
|
-
|
|
425
|
-
- Include `.input` in workflow results for both engines and remove the option to omit them from Inngest workflows. ([#10688](https://github.com/mastra-ai/mastra/pull/10688))
|
|
426
|
-
|
|
427
|
-
- `getSpeakers` endpoint returns an empty array if voice is not configured on the agent and `getListeners` endpoint returns `{ enabled: false }` if voice is not figured on the agent. ([#10560](https://github.com/mastra-ai/mastra/pull/10560))
|
|
428
|
-
|
|
429
|
-
When no voice is set on agent don't throw error, by default set voice to undefined rather than DefaultVoice which throws errors when it is accessed.
|
|
430
|
-
|
|
431
|
-
- SimpleAuth and improved CloudAuth ([#10490](https://github.com/mastra-ai/mastra/pull/10490))
|
|
432
|
-
|
|
433
|
-
- When LLMs like Claude Sonnet 4.5 and Gemini 2.4 call tools with all-optional parameters, they send `args: undefined` instead of `args: {}`. This caused validation to fail with "root: Required". ([#10728](https://github.com/mastra-ai/mastra/pull/10728))
|
|
434
|
-
|
|
435
|
-
The fix normalizes `undefined`/`null` to `{}` for object schemas and `[]` for array schemas before validation.
|
|
436
|
-
|
|
437
|
-
- Fixed tool validation error messages so logs show Zod validation errors directly instead of hiding them inside structured JSON. ([#10579](https://github.com/mastra-ai/mastra/pull/10579))
|
|
438
|
-
|
|
439
|
-
- Fix error when spreading config objects in Mastra constructor ([#10718](https://github.com/mastra-ai/mastra/pull/10718))
|
|
440
|
-
|
|
441
|
-
Adds validation guards to handle undefined/null values that can occur when config objects are spread (`{ ...config }`). Previously, if getters or non-enumerable properties resulted in undefined values during spread, the constructor would throw cryptic errors when accessing `.id` or `.name` on undefined objects.
|
|
442
|
-
|
|
443
|
-
- Fix GPT-5/o3 reasoning models failing with "required reasoning item" errors when using memory with tools. Empty reasoning is now stored with providerMetadata to preserve OpenAI's item_reference. ([#10585](https://github.com/mastra-ai/mastra/pull/10585))
|
|
444
|
-
|
|
445
|
-
- Fix generateTitle model type to accept AI SDK LanguageModelV2 ([#10541](https://github.com/mastra-ai/mastra/pull/10541))
|
|
446
|
-
|
|
447
|
-
Updated the `generateTitle.model` config option to accept `MastraModelConfig` instead of `MastraLanguageModel`. This allows users to pass raw AI SDK `LanguageModelV2` models (e.g., `anthropic.languageModel('claude-3-5-haiku-20241022')`) directly without type errors.
|
|
448
|
-
|
|
449
|
-
Previously, passing a standard `LanguageModelV2` would fail because `MastraLanguageModelV2` has different `doGenerate`/`doStream` return types. Now `MastraModelConfig` is used consistently across:
|
|
450
|
-
- `memory/types.ts` - `generateTitle.model` config
|
|
451
|
-
- `agent.ts` - `genTitle`, `generateTitleFromUserMessage`, `resolveTitleGenerationConfig`
|
|
452
|
-
- `agent-legacy.ts` - `AgentLegacyCapabilities` interface
|
|
453
|
-
|
|
454
|
-
- Fix message ordering when using toAISdkV5Messages or prepareStep ([#10686](https://github.com/mastra-ai/mastra/pull/10686))
|
|
455
|
-
|
|
456
|
-
Messages without `createdAt` timestamps were getting shuffled because they all received identical timestamps during conversion. Now messages are assigned monotonically increasing timestamps via `generateCreatedAt()`, preserving input order.
|
|
457
|
-
|
|
458
|
-
Before:
|
|
459
|
-
|
|
460
|
-
```
|
|
461
|
-
Input: [user: "hello", assistant: "Hi!", user: "bye"]
|
|
462
|
-
Output: [user: "bye", assistant: "Hi!", user: "hello"] // shuffled!
|
|
463
|
-
```
|
|
464
|
-
|
|
465
|
-
After:
|
|
466
|
-
|
|
467
|
-
```
|
|
468
|
-
Input: [user: "hello", assistant: "Hi!", user: "bye"]
|
|
469
|
-
Output: [user: "hello", assistant: "Hi!", user: "bye"] // correct order
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
- Fix Scorer not using custom gateways registered with Mastra ([#10778](https://github.com/mastra-ai/mastra/pull/10778))
|
|
473
|
-
|
|
474
|
-
Scorers now have access to custom gateways when resolving models. Previously, calling `resolveModelConfig` in the scorer didn't pass the Mastra instance, so custom gateways were never available.
|
|
475
|
-
|
|
476
|
-
- Fix workflow run status not being updated from storage snapshot in createRun ([#10664](https://github.com/mastra-ai/mastra/pull/10664))
|
|
477
|
-
|
|
478
|
-
When createRun is called with an existing runId, it now correctly updates the run's status from the storage snapshot. This fixes the issue where different workflow instances (e.g., different API requests) would get a run with 'pending' status instead of the correct status from storage (e.g., 'suspended').
|
|
479
|
-
|
|
480
|
-
- Pass resourceId and threadId to network agent's subAgent when it has its own memory ([#10592](https://github.com/mastra-ai/mastra/pull/10592))
|
|
481
|
-
|
|
482
|
-
- use `agent.getMemory` to fetch the memory instance on the Agent class to make sure that storage gets set if memory doesn't set it itself. ([#10556](https://github.com/mastra-ai/mastra/pull/10556))
|
|
483
|
-
|
|
484
|
-
- Built-in processors that use internal agents (PromptInjectionDetector, ModerationProcessor, PIIDetector, LanguageDetector, StructuredOutputProcessor) now accept `providerOptions` to control model behavior. ([#10651](https://github.com/mastra-ai/mastra/pull/10651))
|
|
485
|
-
|
|
486
|
-
This lets you pass provider-specific settings like `reasoningEffort` for OpenAI thinking models:
|
|
487
|
-
|
|
488
|
-
```typescript
|
|
489
|
-
const processor = new PromptInjectionDetector({
|
|
490
|
-
model: 'openai/o1-mini',
|
|
491
|
-
threshold: 0.7,
|
|
492
|
-
strategy: 'block',
|
|
493
|
-
providerOptions: {
|
|
494
|
-
openai: {
|
|
495
|
-
reasoningEffort: 'low',
|
|
496
|
-
},
|
|
497
|
-
},
|
|
498
|
-
});
|
|
499
|
-
```
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
... 6056 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 6146 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/deployer-cloud
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
8
|
+
- @mastra/core@1.0.0-beta.11
|
|
9
|
+
- @mastra/deployer@1.0.0-beta.11
|
|
10
|
+
|
|
3
11
|
## 1.0.0-beta.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -490,13 +498,5 @@
|
|
|
490
498
|
|
|
491
499
|
### Patch Changes
|
|
492
500
|
|
|
493
|
-
- dependencies updates: ([#8007](https://github.com/mastra-ai/mastra/pull/8007))
|
|
494
|
-
- Updated dependency [`fs-extra@^11.3.2` ↗︎](https://www.npmjs.com/package/fs-extra/v/11.3.2) (from `^11.3.1`, in `dependencies`)
|
|
495
|
-
- Updated dependencies [[`288745a`](https://github.com/mastra-ai/mastra/commit/288745a19aa9557db3ab3c877d667ff59f14d79c), [`c45298a`](https://github.com/mastra-ai/mastra/commit/c45298a0a0791db35cf79f1199d77004da0704cb)]:
|
|
496
|
-
- @mastra/deployer@0.17.2-alpha.1
|
|
497
|
-
- @mastra/core@0.17.2-alpha.1
|
|
498
|
-
|
|
499
|
-
## 0.17.2-alpha.0
|
|
500
|
-
|
|
501
501
|
|
|
502
|
-
...
|
|
502
|
+
... 495 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Internal changes to enable a custom base path for Mastra Studio ([#10441](https://github.com/mastra-ai/mastra/pull/10441))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
10
|
+
- @mastra/server@1.0.0-beta.11
|
|
11
|
+
- @mastra/core@1.0.0-beta.11
|
|
12
|
+
|
|
3
13
|
## 1.0.0-beta.10
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -489,14 +499,4 @@
|
|
|
489
499
|
|
|
490
500
|
- Add better error handling during `mastra build` for `ERR_MODULE_NOT_FOUND` cases. ([#9127](https://github.com/mastra-ai/mastra/pull/9127))
|
|
491
501
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
- Remove format from stream/generate ([#9577](https://github.com/mastra-ai/mastra/pull/9577))
|
|
495
|
-
|
|
496
|
-
- fix: add /api route to default public routes to allow unauthenticated ([#9662](https://github.com/mastra-ai/mastra/pull/9662))
|
|
497
|
-
access
|
|
498
|
-
|
|
499
|
-
The /api route was returning 401 instead of 200 because it was being caught
|
|
500
|
-
by the /api/_ protected pattern. Adding it to the default public routes
|
|
501
|
-
|
|
502
|
-
... 5138 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 5148 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
8
|
+
- @mastra/core@1.0.0-beta.11
|
|
9
|
+
|
|
3
10
|
## 1.0.0-beta.10
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -492,11 +499,4 @@
|
|
|
492
499
|
|
|
493
500
|
### Patch Changes
|
|
494
501
|
|
|
495
|
-
|
|
496
|
-
- @mastra/core@0.17.0-alpha.5
|
|
497
|
-
|
|
498
|
-
## 0.13.22-alpha.4
|
|
499
|
-
|
|
500
|
-
### Patch Changes
|
|
501
|
-
|
|
502
|
-
... 2060 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 2067 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 7.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
|
|
8
|
+
|
|
9
|
+
When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
|
|
10
|
+
|
|
11
|
+
```typescript showLineNumbers copy
|
|
12
|
+
const run = await workflow.createRun();
|
|
13
|
+
const result = await run.start({ inputData: { message: 'Hello' } });
|
|
14
|
+
|
|
15
|
+
if (result.status === 'tripwire') {
|
|
16
|
+
console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
|
|
17
|
+
console.log('Processor ID:', result.tripwire?.processorId);
|
|
18
|
+
console.log('Retry requested:', result.tripwire?.retry);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Adds new UI state for tripwire in agent chat and workflow UI.
|
|
23
|
+
|
|
24
|
+
This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
27
|
+
- @mastra/core@1.0.0-beta.11
|
|
28
|
+
- @mastra/client-js@1.0.0-beta.11
|
|
29
|
+
- @mastra/ai-sdk@1.0.0-beta.8
|
|
30
|
+
- @mastra/react@0.1.0-beta.11
|
|
31
|
+
|
|
3
32
|
## 7.0.0-beta.10
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
|
@@ -470,33 +499,4 @@
|
|
|
470
499
|
|
|
471
500
|
- Add breacrumb action for popovers ([#9378](https://github.com/mastra-ai/mastra/pull/9378))
|
|
472
501
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
Example agent code
|
|
476
|
-
|
|
477
|
-
```@typescript
|
|
478
|
-
export const chefModelV2Agent = new Agent({
|
|
479
|
-
name: 'Chef Agent V2 Model',
|
|
480
|
-
description: 'A chef agent that can help you cook great meals with whatever ingredients you have available.',
|
|
481
|
-
instructions: {
|
|
482
|
-
content: `
|
|
483
|
-
You are Michel, a practical and experienced home chef who helps people cook great meals with whatever
|
|
484
|
-
ingredients they have available. Your first priority is understanding what ingredients and equipment the user has access to, then suggesting achievable recipes.
|
|
485
|
-
You explain cooking steps clearly and offer substitutions when needed, maintaining a friendly and encouraging tone throughout.
|
|
486
|
-
`,
|
|
487
|
-
role: 'system',
|
|
488
|
-
providerOptions: {
|
|
489
|
-
openai: {
|
|
490
|
-
reasoning_effort: 'high',
|
|
491
|
-
},
|
|
492
|
-
},
|
|
493
|
-
},
|
|
494
|
-
model: openai('gpt-4o-mini'),
|
|
495
|
-
tools: {
|
|
496
|
-
cookingTool,
|
|
497
|
-
},
|
|
498
|
-
memory
|
|
499
|
-
});
|
|
500
|
-
```
|
|
501
|
-
|
|
502
|
-
... 4187 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 4216 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @mastra/react-hooks
|
|
2
2
|
|
|
3
|
+
## 0.1.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
|
|
8
|
+
|
|
9
|
+
When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
|
|
10
|
+
|
|
11
|
+
```typescript showLineNumbers copy
|
|
12
|
+
const run = await workflow.createRun();
|
|
13
|
+
const result = await run.start({ inputData: { message: 'Hello' } });
|
|
14
|
+
|
|
15
|
+
if (result.status === 'tripwire') {
|
|
16
|
+
console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
|
|
17
|
+
console.log('Processor ID:', result.tripwire?.processorId);
|
|
18
|
+
console.log('Retry requested:', result.tripwire?.retry);
|
|
19
|
+
}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Adds new UI state for tripwire in agent chat and workflow UI.
|
|
23
|
+
|
|
24
|
+
This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
|
|
25
|
+
|
|
26
|
+
- Updated dependencies [[`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
27
|
+
- @mastra/client-js@1.0.0-beta.11
|
|
28
|
+
|
|
3
29
|
## 0.1.0-beta.10
|
|
4
30
|
|
|
5
31
|
### Minor Changes
|
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix type safety for message ordering - restrict `orderBy` to only accept `'createdAt'` field ([#11069](https://github.com/mastra-ai/mastra/pull/11069))
|
|
8
|
+
|
|
9
|
+
Messages don't have an `updatedAt` field, but the previous type allowed ordering by it, which would return empty results. This change adds compile-time type safety by making `StorageOrderBy` generic and restricting `StorageListMessagesInput.orderBy` to only accept `'createdAt'`. The API validation schemas have also been updated to reject invalid orderBy values at runtime.
|
|
10
|
+
|
|
11
|
+
- Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
|
|
12
|
+
|
|
13
|
+
When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
|
|
14
|
+
|
|
15
|
+
```typescript showLineNumbers copy
|
|
16
|
+
const run = await workflow.createRun();
|
|
17
|
+
const result = await run.start({ inputData: { message: 'Hello' } });
|
|
18
|
+
|
|
19
|
+
if (result.status === 'tripwire') {
|
|
20
|
+
console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
|
|
21
|
+
console.log('Processor ID:', result.tripwire?.processorId);
|
|
22
|
+
console.log('Retry requested:', result.tripwire?.retry);
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Adds new UI state for tripwire in agent chat and workflow UI.
|
|
27
|
+
|
|
28
|
+
This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
|
|
31
|
+
- @mastra/core@1.0.0-beta.11
|
|
32
|
+
|
|
3
33
|
## 1.0.0-beta.10
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -469,34 +499,4 @@
|
|
|
469
499
|
- Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
|
|
470
500
|
- Added reusable query parser utilities for consistent validation in handlers
|
|
471
501
|
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
- Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
|
|
475
|
-
|
|
476
|
-
- Remove deprecated vector prompts and cohere provider from code ([#9596](https://github.com/mastra-ai/mastra/pull/9596))
|
|
477
|
-
|
|
478
|
-
- Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
|
|
479
|
-
|
|
480
|
-
- Enforcing id required on Processor primitive ([#9591](https://github.com/mastra-ai/mastra/pull/9591))
|
|
481
|
-
|
|
482
|
-
- Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
|
|
483
|
-
Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
|
|
484
|
-
|
|
485
|
-
- moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
|
|
486
|
-
|
|
487
|
-
- Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
|
|
488
|
-
|
|
489
|
-
### Minor Changes
|
|
490
|
-
|
|
491
|
-
- Update peer dependencies to match core package version bump (1.0.0) ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
|
|
492
|
-
|
|
493
|
-
- **BREAKING CHANGE**: Memory scope defaults changed from 'thread' to 'resource' ([#8983](https://github.com/mastra-ai/mastra/pull/8983))
|
|
494
|
-
|
|
495
|
-
Both `workingMemory.scope` and `semanticRecall.scope` now default to `'resource'` instead of `'thread'`. This means:
|
|
496
|
-
- Working memory persists across all conversations for the same user/resource
|
|
497
|
-
- Semantic recall searches across all threads for the same user/resource
|
|
498
|
-
|
|
499
|
-
**Migration**: To maintain the previous thread-scoped behavior, explicitly set `scope: 'thread'`:
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
... 4259 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 4289 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.9
|
|
4
|
+
|
|
3
5
|
## 1.0.0-beta.8
|
|
4
6
|
|
|
5
7
|
### Patch Changes
|
|
@@ -497,6 +499,4 @@
|
|
|
497
499
|
- dependencies updates: ([#7544](https://github.com/mastra-ai/mastra/pull/7544))
|
|
498
500
|
- Updated dependency [`fs-extra@^11.3.1` ↗︎](https://www.npmjs.com/package/fs-extra/v/11.3.1) (from `^11.3.0`, in `dependencies`)
|
|
499
501
|
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
... 1658 more lines hidden. See full changelog in package directory.
|
|
502
|
+
... 1660 more lines hidden. See full changelog in package directory.
|