@mastra/playground-ui 7.0.0-beta.10 → 7.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.
@@ -0,0 +1,6 @@
1
+ import { TripwireMetadata } from '@mastra/react';
2
+ export interface TripwireNoticeProps {
3
+ reason: string;
4
+ tripwire?: TripwireMetadata;
5
+ }
6
+ export declare const TripwireNotice: ({ reason, tripwire }: TripwireNoticeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,20 @@
1
+ /**
2
+ * Tripwire data from workflow steps.
3
+ * This matches the core TripwireData schema in packages/core/src/agent/trip-wire.ts
4
+ */
5
+ export type TripwireData = {
6
+ /** The reason for the tripwire */
7
+ reason: string;
8
+ /** If true, the agent should retry with the tripwire reason as feedback */
9
+ retry?: boolean;
10
+ /** Strongly typed metadata from the processor */
11
+ metadata?: unknown;
12
+ /** The ID of the processor that triggered the tripwire */
13
+ processorId?: string;
14
+ };
1
15
  export type Step = {
2
16
  error?: any;
17
+ tripwire?: TripwireData;
3
18
  startedAt: number;
4
19
  endedAt?: number;
5
20
  status: 'running' | 'success' | 'failed' | 'suspended' | 'waiting';
@@ -1,6 +1,13 @@
1
+ export interface TripwireInfo {
2
+ reason?: string;
3
+ retry?: boolean;
4
+ metadata?: unknown;
5
+ processorId?: string;
6
+ }
1
7
  export interface WorkflowStatusProps {
2
8
  stepId: string;
3
9
  status: string;
4
10
  result: Record<string, unknown>;
11
+ tripwire?: TripwireInfo;
5
12
  }
6
- export declare const WorkflowStatus: ({ stepId, status, result }: WorkflowStatusProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const WorkflowStatus: ({ stepId, status, result, tripwire }: WorkflowStatusProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,16 @@
1
+ import { TripwireData } from '../context/use-current-run';
1
2
  export interface WorkflowStepActionBarProps {
2
3
  input?: any;
3
4
  output?: any;
4
5
  suspendOutput?: any;
5
6
  resumeData?: any;
6
7
  error?: any;
8
+ tripwire?: TripwireData;
7
9
  stepName: string;
8
10
  stepId?: string;
9
11
  mapConfig?: string;
10
12
  onShowNestedGraph?: () => void;
11
- status?: 'running' | 'success' | 'failed' | 'suspended' | 'waiting';
13
+ status?: 'running' | 'success' | 'failed' | 'suspended' | 'waiting' | 'tripwire';
12
14
  stepKey?: string;
13
15
  }
14
- export declare const WorkflowStepActionBar: ({ input, output, resumeData, suspendOutput, error, mapConfig, stepName, stepId, onShowNestedGraph, status, stepKey, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const WorkflowStepActionBar: ({ input, output, resumeData, suspendOutput, error, tripwire, mapConfig, stepName, stepId, onShowNestedGraph, status, stepKey, }: WorkflowStepActionBarProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mastra/playground-ui",
3
3
  "type": "module",
4
- "version": "7.0.0-beta.10",
4
+ "version": "7.0.0-beta.11",
5
5
  "description": "Mastra Playground components",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
@@ -111,9 +111,9 @@
111
111
  "react": ">=19.0.0",
112
112
  "react-dom": ">=19.0.0",
113
113
  "tailwindcss": "^3.0.0",
114
- "@mastra/ai-sdk": "^1.0.0-beta.7",
115
- "@mastra/client-js": "^1.0.0-beta.10",
116
- "@mastra/react": "0.1.0-beta.10",
114
+ "@mastra/client-js": "^1.0.0-beta.11",
115
+ "@mastra/react": "0.1.0-beta.11",
116
+ "@mastra/ai-sdk": "^1.0.0-beta.8",
117
117
  "@mastra/schema-compat": "1.0.0-beta.2"
118
118
  },
119
119
  "devDependencies": {
@@ -139,11 +139,11 @@
139
139
  "vite-plugin-dts": "^4.5.4",
140
140
  "vite-plugin-lib-inject-css": "^2.2.2",
141
141
  "vitest": "4.0.12",
142
- "@mastra/ai-sdk": "^1.0.0-beta.7",
143
- "@mastra/react": "0.1.0-beta.10",
144
- "@mastra/client-js": "^1.0.0-beta.10",
145
- "@mastra/core": "1.0.0-beta.10",
146
- "@mastra/schema-compat": "1.0.0-beta.2"
142
+ "@mastra/core": "1.0.0-beta.11",
143
+ "@mastra/ai-sdk": "^1.0.0-beta.8",
144
+ "@mastra/react": "0.1.0-beta.11",
145
+ "@mastra/schema-compat": "1.0.0-beta.2",
146
+ "@mastra/client-js": "^1.0.0-beta.11"
147
147
  },
148
148
  "homepage": "https://mastra.ai",
149
149
  "repository": {