@mastra/react 0.1.0-beta.10 → 0.1.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.
@@ -1,7 +1,20 @@
1
1
  import { UIMessage } from '@ai-sdk/react';
2
2
  import { CompleteAttachment } from '@assistant-ui/react';
3
+ /**
4
+ * Tripwire metadata included when a processor triggers a tripwire
5
+ */
6
+ export type TripwireMetadata = {
7
+ /** Whether the agent should retry with feedback */
8
+ retry?: boolean;
9
+ /** Custom metadata from the processor */
10
+ tripwirePayload?: unknown;
11
+ /** ID of the processor that triggered the tripwire */
12
+ processorId?: string;
13
+ };
3
14
  export type MastraUIMessageMetadata = {
4
- status?: 'warning' | 'error';
15
+ status?: 'warning' | 'error' | 'tripwire';
16
+ /** Tripwire-specific metadata when status is 'tripwire' */
17
+ tripwire?: TripwireMetadata;
5
18
  } & ({
6
19
  mode: 'generate';
7
20
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/react",
3
- "version": "0.1.0-beta.10",
3
+ "version": "0.1.0-beta.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/mastra-ai/mastra.git",
@@ -39,7 +39,7 @@
39
39
  "lucide-react": "^0.522.0",
40
40
  "shiki": "^1.29.2",
41
41
  "tailwind-merge": "^3.3.1",
42
- "@mastra/client-js": "1.0.0-beta.10"
42
+ "@mastra/client-js": "1.0.0-beta.11"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=19.0.0",
@@ -66,7 +66,7 @@
66
66
  "vite": "^7.1.9",
67
67
  "vite-plugin-dts": "^4.5.4",
68
68
  "vitest": "4.0.12",
69
- "@mastra/core": "1.0.0-beta.10"
69
+ "@mastra/core": "1.0.0-beta.11"
70
70
  },
71
71
  "eslintConfig": {
72
72
  "extends": [