@agentuity/workbench 1.0.1 → 1.0.3
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/README.md +126 -0
- package/dist/standalone.css +3 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# @agentuity/workbench
|
|
2
|
+
|
|
3
|
+
React UI components for building agent testing and debugging interfaces. Provides a pre-built workbench UI with chat, schema visualization, and real-time agent interaction.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add @agentuity/workbench
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
`@agentuity/workbench` provides a complete UI toolkit for testing and interacting with Agentuity agents during development. It includes chat interfaces, schema visualization, and WebSocket-based real-time communication.
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- **Chat Interface**: Pre-built chat component with AI message rendering
|
|
18
|
+
- **Schema Visualization**: Display and interact with agent input/output schemas
|
|
19
|
+
- **Real-time Communication**: WebSocket-based connection to running agents
|
|
20
|
+
- **Theme Support**: Light and dark mode with customizable theming
|
|
21
|
+
- **Markdown Rendering**: Code blocks with syntax highlighting
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
### Basic Usage
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import { App, WorkbenchProvider } from '@agentuity/workbench';
|
|
29
|
+
import '@agentuity/workbench/styles';
|
|
30
|
+
|
|
31
|
+
function MyWorkbench() {
|
|
32
|
+
return (
|
|
33
|
+
<WorkbenchProvider>
|
|
34
|
+
<App />
|
|
35
|
+
</WorkbenchProvider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Custom Configuration
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
import { createWorkbench, WorkbenchProvider, Chat } from '@agentuity/workbench';
|
|
44
|
+
import '@agentuity/workbench/styles';
|
|
45
|
+
|
|
46
|
+
const workbench = createWorkbench({
|
|
47
|
+
route: '/workbench',
|
|
48
|
+
headers: {
|
|
49
|
+
Authorization: 'Bearer token',
|
|
50
|
+
},
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
function CustomWorkbench() {
|
|
54
|
+
return (
|
|
55
|
+
<WorkbenchProvider>
|
|
56
|
+
<Chat />
|
|
57
|
+
</WorkbenchProvider>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Server-Side Usage
|
|
63
|
+
|
|
64
|
+
For server components or SSR, import from the server entry point:
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
import { createWorkbench } from '@agentuity/workbench/server';
|
|
68
|
+
|
|
69
|
+
const workbench = createWorkbench({
|
|
70
|
+
route: '/workbench',
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Components
|
|
75
|
+
|
|
76
|
+
### App
|
|
77
|
+
|
|
78
|
+
The main workbench application component with full UI.
|
|
79
|
+
|
|
80
|
+
### Chat
|
|
81
|
+
|
|
82
|
+
Chat interface component for agent conversations.
|
|
83
|
+
|
|
84
|
+
### Schema
|
|
85
|
+
|
|
86
|
+
Schema visualization component for displaying agent input/output types.
|
|
87
|
+
|
|
88
|
+
### StatusIndicator
|
|
89
|
+
|
|
90
|
+
Connection status indicator showing real-time connectivity.
|
|
91
|
+
|
|
92
|
+
### WorkbenchProvider
|
|
93
|
+
|
|
94
|
+
Context provider for workbench state management.
|
|
95
|
+
|
|
96
|
+
```tsx
|
|
97
|
+
import { WorkbenchProvider, useWorkbench } from '@agentuity/workbench';
|
|
98
|
+
|
|
99
|
+
function MyComponent() {
|
|
100
|
+
const workbench = useWorkbench();
|
|
101
|
+
// Access workbench state and methods
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Styling
|
|
106
|
+
|
|
107
|
+
Import styles based on your setup:
|
|
108
|
+
|
|
109
|
+
```tsx
|
|
110
|
+
// For integration into existing apps (minimal styles)
|
|
111
|
+
import '@agentuity/workbench/styles';
|
|
112
|
+
|
|
113
|
+
// For standalone usage (includes all dependencies)
|
|
114
|
+
import '@agentuity/workbench/styles-standalone';
|
|
115
|
+
|
|
116
|
+
// Base styles only
|
|
117
|
+
import '@agentuity/workbench/base';
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Peer Dependencies
|
|
121
|
+
|
|
122
|
+
This package requires React 19+ and several Radix UI components. See `package.json` for the complete list.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
Apache 2.0
|
package/dist/standalone.css
CHANGED
|
@@ -1260,6 +1260,9 @@ button:not([disabled]):not([aria-disabled='true']), [role='button']:not([disable
|
|
|
1260
1260
|
.fade-in-0 {
|
|
1261
1261
|
--tw-enter-opacity: 0;
|
|
1262
1262
|
}
|
|
1263
|
+
.running {
|
|
1264
|
+
animation-play-state: running;
|
|
1265
|
+
}
|
|
1263
1266
|
.zoom-in-95 {
|
|
1264
1267
|
--tw-enter-scale: .95;
|
|
1265
1268
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/workbench",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity",
|
|
6
6
|
"type": "module",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"prepublishOnly": "bun run clean && bun run build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@agentuity/core": "1.0.
|
|
42
|
-
"@agentuity/react": "1.0.
|
|
41
|
+
"@agentuity/core": "1.0.3",
|
|
42
|
+
"@agentuity/react": "1.0.3",
|
|
43
43
|
"@ai-sdk/react": "^3.0.1",
|
|
44
44
|
"@hookform/resolvers": "^5.2.2",
|
|
45
45
|
"@monaco-editor/react": "^4.6.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"zod-from-json-schema": "^0.5.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@agentuity/test-utils": "1.0.
|
|
71
|
+
"@agentuity/test-utils": "1.0.3",
|
|
72
72
|
"@tailwindcss/cli": "^4.1.12",
|
|
73
73
|
"@tailwindcss/vite": "^4.1.12",
|
|
74
74
|
"@vitejs/plugin-react": "^4.5.3",
|