Skip to content

Commit f093bb7

Browse files
committed
cleanup cursor clone demo
1 parent fdb0994 commit f093bb7

File tree

6 files changed

+1482
-1863
lines changed

6 files changed

+1482
-1863
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
import { Meta, StoryObj } from "@storybook/react";
2+
import "xterm/css/xterm.css";
3+
import Cursor from "./Cursor";
4+
5+
const agentMeta: Meta<typeof Cursor> = {
6+
title: "Cursor/Editor",
7+
component: Cursor,
8+
parameters: {
9+
layout: "fullscreen",
10+
docs: {
11+
description: {
12+
component: `
13+
# WebContainer Agent
14+
15+
An AI assistant that helps users interact with code in a WebContainer environment.
16+
17+
## Features
18+
19+
- Chat interface for communicating with the AI assistant
20+
- File system operations (read, write, create, delete)
21+
- Terminal command execution
22+
- Code analysis and editing
23+
- Test execution and reporting
24+
25+
The agent uses Claude 3.7 Sonnet to provide intelligent assistance with coding tasks.
26+
`,
27+
},
28+
},
29+
},
30+
args: {
31+
messages: [
32+
{
33+
id: "1",
34+
type: "assistant_message",
35+
content: "Hello! I'm your coding assistant. How can I help you today?",
36+
timestamp: new Date(),
37+
},
38+
],
39+
setMessages: () => {},
40+
apiKey: "dummy-key",
41+
testResults: {},
42+
},
43+
};
44+
45+
type Story = StoryObj<typeof Cursor>;
46+
47+
export const Default: Story = {
48+
args: {
49+
},
50+
};
51+
export default agentMeta;

0 commit comments

Comments
 (0)