@alexanderolsen/create-deepagent 0.1.0
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/dist/index.d.ts +2 -0
- package/dist/index.js +661 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
- package/registry/frameworks/deno/.env.example +6 -0
- package/registry/frameworks/deno/README.md +137 -0
- package/registry/frameworks/deno/client/index.html +23 -0
- package/registry/frameworks/deno/client/package.json +30 -0
- package/registry/frameworks/deno/client/public/favicon.ico +0 -0
- package/registry/frameworks/deno/client/src/components/Chat.tsx +124 -0
- package/registry/frameworks/deno/client/src/components/ChatApp.tsx +129 -0
- package/registry/frameworks/deno/client/src/components/Conversation.tsx +91 -0
- package/registry/frameworks/deno/client/src/components/MessageBubbles.tsx +88 -0
- package/registry/frameworks/deno/client/src/components/MessageReasoning.tsx +71 -0
- package/registry/frameworks/deno/client/src/components/MessageThread.tsx +135 -0
- package/registry/frameworks/deno/client/src/components/StreamingIndicator.tsx +36 -0
- package/registry/frameworks/deno/client/src/components/Subagents.tsx +120 -0
- package/registry/frameworks/deno/client/src/components/ThemeIcons.tsx +31 -0
- package/registry/frameworks/deno/client/src/components/ThreadHistory.tsx +73 -0
- package/registry/frameworks/deno/client/src/components/ToolCall.tsx +89 -0
- package/registry/frameworks/deno/client/src/lib/agent-type.ts +4 -0
- package/registry/frameworks/deno/client/src/lib/chat/threads-client.ts +51 -0
- package/registry/frameworks/deno/client/src/main.tsx +11 -0
- package/registry/frameworks/deno/client/src/styles/globals.css +714 -0
- package/registry/frameworks/deno/client/src/vite-env.d.ts +1 -0
- package/registry/frameworks/deno/client/tsconfig.app.json +7 -0
- package/registry/frameworks/deno/client/tsconfig.json +24 -0
- package/registry/frameworks/deno/client/tsconfig.node.json +19 -0
- package/registry/frameworks/deno/client/vite.config.ts +24 -0
- package/registry/frameworks/deno/deno.json +16 -0
- package/registry/frameworks/deno/main.ts +23 -0
- package/registry/frameworks/deno/package.json +14 -0
- package/registry/frameworks/deno/server/agent/index.ts +60 -0
- package/registry/frameworks/deno/server/agent/middleware.ts +24 -0
- package/registry/frameworks/deno/server/agent/tools.ts +64 -0
- package/registry/frameworks/deno/server/registry.ts +40 -0
- package/registry/frameworks/deno/server/routes.ts +114 -0
- package/registry/frameworks/deno/server/serialize.ts +30 -0
- package/registry/frameworks/deno/server/session.ts +210 -0
- package/registry/frameworks/deno/server/threads.ts +404 -0
- package/registry/frameworks/deno.ts +17 -0
- package/registry/frameworks/hono/.env.example +6 -0
- package/registry/frameworks/hono/README.md +186 -0
- package/registry/frameworks/hono/index.html +22 -0
- package/registry/frameworks/hono/package.json +42 -0
- package/registry/frameworks/hono/src/components/Chat.tsx +124 -0
- package/registry/frameworks/hono/src/components/ChatApp.tsx +129 -0
- package/registry/frameworks/hono/src/components/Conversation.tsx +90 -0
- package/registry/frameworks/hono/src/components/MessageBubbles.tsx +88 -0
- package/registry/frameworks/hono/src/components/MessageReasoning.tsx +71 -0
- package/registry/frameworks/hono/src/components/MessageThread.tsx +135 -0
- package/registry/frameworks/hono/src/components/StreamingIndicator.tsx +36 -0
- package/registry/frameworks/hono/src/components/Subagents.tsx +120 -0
- package/registry/frameworks/hono/src/components/ThemeIcons.tsx +31 -0
- package/registry/frameworks/hono/src/components/ThreadHistory.tsx +73 -0
- package/registry/frameworks/hono/src/components/ToolCall.tsx +89 -0
- package/registry/frameworks/hono/src/lib/agent/types.ts +4 -0
- package/registry/frameworks/hono/src/lib/chat/threads-client.ts +57 -0
- package/registry/frameworks/hono/src/main.tsx +11 -0
- package/registry/frameworks/hono/src/styles/globals.css +714 -0
- package/registry/frameworks/hono/src/vite-env.d.ts +1 -0
- package/registry/frameworks/hono/tsconfig.app.json +22 -0
- package/registry/frameworks/hono/tsconfig.json +7 -0
- package/registry/frameworks/hono/tsconfig.worker.json +18 -0
- package/registry/frameworks/hono/vite.config.ts +16 -0
- package/registry/frameworks/hono/worker/agent/index.ts +53 -0
- package/registry/frameworks/hono/worker/agent/middleware.ts +20 -0
- package/registry/frameworks/hono/worker/agent/tools.ts +55 -0
- package/registry/frameworks/hono/worker/durable-objects/thread-session.ts +159 -0
- package/registry/frameworks/hono/worker/env.d.ts +17 -0
- package/registry/frameworks/hono/worker/index.ts +140 -0
- package/registry/frameworks/hono/worker/server/registry.ts +39 -0
- package/registry/frameworks/hono/worker/server/runs.ts +82 -0
- package/registry/frameworks/hono/worker/server/serialize.ts +30 -0
- package/registry/frameworks/hono/worker/server/threads.ts +404 -0
- package/registry/frameworks/hono/worker/tsconfig.json +4 -0
- package/registry/frameworks/hono/wrangler.jsonc +28 -0
- package/registry/frameworks/hono.ts +35 -0
- package/registry/frameworks/next/.env.example +6 -0
- package/registry/frameworks/next/README.md +173 -0
- package/registry/frameworks/next/app/api/threads/[threadId]/commands/route.ts +21 -0
- package/registry/frameworks/next/app/api/threads/[threadId]/history/route.ts +35 -0
- package/registry/frameworks/next/app/api/threads/[threadId]/route.ts +13 -0
- package/registry/frameworks/next/app/api/threads/[threadId]/state/route.ts +51 -0
- package/registry/frameworks/next/app/api/threads/[threadId]/stream/route.ts +30 -0
- package/registry/frameworks/next/app/api/threads/route.ts +11 -0
- package/registry/frameworks/next/app/favicon.ico +0 -0
- package/registry/frameworks/next/app/globals.css +712 -0
- package/registry/frameworks/next/app/layout.tsx +34 -0
- package/registry/frameworks/next/app/page.tsx +5 -0
- package/registry/frameworks/next/components/Chat.tsx +124 -0
- package/registry/frameworks/next/components/ChatApp.tsx +129 -0
- package/registry/frameworks/next/components/Conversation.tsx +90 -0
- package/registry/frameworks/next/components/MessageBubbles.tsx +88 -0
- package/registry/frameworks/next/components/MessageReasoning.tsx +71 -0
- package/registry/frameworks/next/components/MessageThread.tsx +135 -0
- package/registry/frameworks/next/components/StreamingIndicator.tsx +36 -0
- package/registry/frameworks/next/components/Subagents.tsx +120 -0
- package/registry/frameworks/next/components/ThemeIcons.tsx +31 -0
- package/registry/frameworks/next/components/ThreadHistory.tsx +73 -0
- package/registry/frameworks/next/components/ToolCall.tsx +89 -0
- package/registry/frameworks/next/eslint.config.mjs +18 -0
- package/registry/frameworks/next/lib/agent/index.ts +95 -0
- package/registry/frameworks/next/lib/agent/middleware.ts +40 -0
- package/registry/frameworks/next/lib/agent/tools.ts +66 -0
- package/registry/frameworks/next/lib/chat/threads-client.ts +57 -0
- package/registry/frameworks/next/lib/server/registry.ts +57 -0
- package/registry/frameworks/next/lib/server/serialize.ts +32 -0
- package/registry/frameworks/next/lib/server/session.ts +212 -0
- package/registry/frameworks/next/lib/server/threads.ts +406 -0
- package/registry/frameworks/next/next.config.ts +7 -0
- package/registry/frameworks/next/package.json +37 -0
- package/registry/frameworks/next/postcss.config.mjs +7 -0
- package/registry/frameworks/next/public/file.svg +1 -0
- package/registry/frameworks/next/public/globe.svg +1 -0
- package/registry/frameworks/next/public/next.svg +1 -0
- package/registry/frameworks/next/public/vercel.svg +1 -0
- package/registry/frameworks/next/public/window.svg +1 -0
- package/registry/frameworks/next/tsconfig.json +34 -0
- package/registry/frameworks/next.ts +17 -0
- package/registry/frameworks/nuxt/.env.example +3 -0
- package/registry/frameworks/nuxt/README.md +133 -0
- package/registry/frameworks/nuxt/app/app.vue +26 -0
- package/registry/frameworks/nuxt/app/assets/css/main.css +707 -0
- package/registry/frameworks/nuxt/app/components/Chat.vue +105 -0
- package/registry/frameworks/nuxt/app/components/ChatApp.vue +89 -0
- package/registry/frameworks/nuxt/app/components/ChatThread.vue +27 -0
- package/registry/frameworks/nuxt/app/components/MessageBubble.vue +60 -0
- package/registry/frameworks/nuxt/app/components/MessageBubbles.vue +213 -0
- package/registry/frameworks/nuxt/app/components/MessageList.vue +51 -0
- package/registry/frameworks/nuxt/app/components/MessageReasoning.vue +53 -0
- package/registry/frameworks/nuxt/app/components/StreamingIndicator.vue +9 -0
- package/registry/frameworks/nuxt/app/components/SubagentDetail.vue +51 -0
- package/registry/frameworks/nuxt/app/components/SubagentList.vue +49 -0
- package/registry/frameworks/nuxt/app/components/ThemeToggle.vue +43 -0
- package/registry/frameworks/nuxt/app/components/ThreadHistory.vue +65 -0
- package/registry/frameworks/nuxt/app/components/ToolCall.vue +81 -0
- package/registry/frameworks/nuxt/app/components/TypingDots.vue +14 -0
- package/registry/frameworks/nuxt/app/composables/useTheme.ts +14 -0
- package/registry/frameworks/nuxt/app/utils/streaming.ts +44 -0
- package/registry/frameworks/nuxt/app/utils/threads.ts +57 -0
- package/registry/frameworks/nuxt/nuxt.config.ts +6 -0
- package/registry/frameworks/nuxt/package.json +28 -0
- package/registry/frameworks/nuxt/public/favicon.ico +0 -0
- package/registry/frameworks/nuxt/public/robots.txt +2 -0
- package/registry/frameworks/nuxt/server/agent/index.ts +89 -0
- package/registry/frameworks/nuxt/server/agent/middleware.ts +38 -0
- package/registry/frameworks/nuxt/server/agent/tools.ts +66 -0
- package/registry/frameworks/nuxt/server/api/threads/[threadId]/commands.post.ts +16 -0
- package/registry/frameworks/nuxt/server/api/threads/[threadId]/history.post.ts +37 -0
- package/registry/frameworks/nuxt/server/api/threads/[threadId]/index.delete.ts +12 -0
- package/registry/frameworks/nuxt/server/api/threads/[threadId]/state.get.ts +22 -0
- package/registry/frameworks/nuxt/server/api/threads/[threadId]/state.post.ts +32 -0
- package/registry/frameworks/nuxt/server/api/threads/[threadId]/stream.post.ts +24 -0
- package/registry/frameworks/nuxt/server/api/threads/index.get.ts +13 -0
- package/registry/frameworks/nuxt/server/utils/runtime.ts +42 -0
- package/registry/frameworks/nuxt/server/utils/serialize.ts +30 -0
- package/registry/frameworks/nuxt/server/utils/session.ts +210 -0
- package/registry/frameworks/nuxt/server/utils/threads.ts +404 -0
- package/registry/frameworks/nuxt/tsconfig.json +18 -0
- package/registry/frameworks/nuxt.ts +17 -0
- package/registry/frameworks/vite/.env.example +20 -0
- package/registry/frameworks/vite/README.md +149 -0
- package/registry/frameworks/vite/agent/index.ts +59 -0
- package/registry/frameworks/vite/agent/middleware.ts +24 -0
- package/registry/frameworks/vite/agent/tools.ts +64 -0
- package/registry/frameworks/vite/index.html +23 -0
- package/registry/frameworks/vite/langgraph.json +16 -0
- package/registry/frameworks/vite/package.json +39 -0
- package/registry/frameworks/vite/public/favicon.ico +0 -0
- package/registry/frameworks/vite/scripts/vite-langgraph-proxy.ts +34 -0
- package/registry/frameworks/vite/src/components/Chat.tsx +124 -0
- package/registry/frameworks/vite/src/components/ChatApp.tsx +122 -0
- package/registry/frameworks/vite/src/components/Conversation.tsx +91 -0
- package/registry/frameworks/vite/src/components/MessageBubbles.tsx +88 -0
- package/registry/frameworks/vite/src/components/MessageReasoning.tsx +71 -0
- package/registry/frameworks/vite/src/components/MessageThread.tsx +135 -0
- package/registry/frameworks/vite/src/components/StreamingIndicator.tsx +36 -0
- package/registry/frameworks/vite/src/components/Subagents.tsx +120 -0
- package/registry/frameworks/vite/src/components/ThemeIcons.tsx +31 -0
- package/registry/frameworks/vite/src/components/ThreadHistory.tsx +73 -0
- package/registry/frameworks/vite/src/components/ToolCall.tsx +89 -0
- package/registry/frameworks/vite/src/lib/agent-type.ts +4 -0
- package/registry/frameworks/vite/src/lib/chat/threads-client.ts +114 -0
- package/registry/frameworks/vite/src/main.tsx +11 -0
- package/registry/frameworks/vite/src/styles/globals.css +714 -0
- package/registry/frameworks/vite/src/vite-env.d.ts +11 -0
- package/registry/frameworks/vite/tsconfig.app.json +24 -0
- package/registry/frameworks/vite/tsconfig.json +7 -0
- package/registry/frameworks/vite/tsconfig.node.json +21 -0
- package/registry/frameworks/vite/vercel.json +3 -0
- package/registry/frameworks/vite/vite.config.ts +24 -0
- package/registry/frameworks/vite.ts +17 -0
|
@@ -0,0 +1,707 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: dark;
|
|
3
|
+
--font-sans:
|
|
4
|
+
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
|
5
|
+
"Segoe UI", sans-serif;
|
|
6
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
* {
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
html,
|
|
14
|
+
body,
|
|
15
|
+
#__nuxt {
|
|
16
|
+
height: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
margin: 0;
|
|
21
|
+
background: #030710;
|
|
22
|
+
font-family: var(--font-sans);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.app-shell {
|
|
26
|
+
--bg-primary: #030710;
|
|
27
|
+
--bg-secondary: #0d1322;
|
|
28
|
+
--bg-card: #161f34;
|
|
29
|
+
--text-primary: #f2faff;
|
|
30
|
+
--text-secondary: #99d3ff;
|
|
31
|
+
--accent: #7fc8ff;
|
|
32
|
+
--accent-bright: #006ddd;
|
|
33
|
+
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row;
|
|
37
|
+
align-items: stretch;
|
|
38
|
+
height: 100vh;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
background: var(--bg-primary);
|
|
41
|
+
color: var(--text-primary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.app-shell.light {
|
|
45
|
+
--bg-primary: #f2faff;
|
|
46
|
+
--bg-secondary: #e5f4ff;
|
|
47
|
+
--bg-card: #cce9ff;
|
|
48
|
+
--text-primary: #030710;
|
|
49
|
+
--text-secondary: #161f34;
|
|
50
|
+
--accent: #006ddd;
|
|
51
|
+
--accent-bright: #0052a8;
|
|
52
|
+
color-scheme: light;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.eyebrow {
|
|
56
|
+
color: var(--accent);
|
|
57
|
+
font-family: var(--font-mono);
|
|
58
|
+
font-size: 0.74rem;
|
|
59
|
+
letter-spacing: 0.02em;
|
|
60
|
+
text-transform: uppercase;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
p {
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
code {
|
|
68
|
+
font-family: var(--font-mono);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* ----------------------------------------------------------------- sidebar */
|
|
72
|
+
|
|
73
|
+
.sidebar {
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
gap: 16px;
|
|
78
|
+
width: 280px;
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
padding: 24px 18px;
|
|
81
|
+
border-right: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
|
|
82
|
+
background: var(--bg-secondary);
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.sidebar-head {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.new-thread {
|
|
93
|
+
border: 0;
|
|
94
|
+
border-radius: 999px;
|
|
95
|
+
background: var(--accent);
|
|
96
|
+
color: #030710;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
padding: 8px 14px;
|
|
99
|
+
font-family: var(--font-mono);
|
|
100
|
+
font-size: 0.74rem;
|
|
101
|
+
letter-spacing: -0.02em;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.thread-list {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 6px;
|
|
108
|
+
margin: 0;
|
|
109
|
+
padding: 0;
|
|
110
|
+
list-style: none;
|
|
111
|
+
overflow-y: auto;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.thread-empty {
|
|
115
|
+
padding: 12px;
|
|
116
|
+
color: var(--text-secondary);
|
|
117
|
+
font-size: 0.85rem;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.thread-item {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: stretch;
|
|
123
|
+
gap: 4px;
|
|
124
|
+
border: 1px solid transparent;
|
|
125
|
+
border-radius: 14px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.thread-item.active {
|
|
129
|
+
border-color: color-mix(in srgb, var(--accent) 40%, transparent);
|
|
130
|
+
background: var(--bg-card);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.thread-open {
|
|
134
|
+
flex: 1;
|
|
135
|
+
min-width: 0;
|
|
136
|
+
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
138
|
+
gap: 4px;
|
|
139
|
+
border: 0;
|
|
140
|
+
border-radius: 14px;
|
|
141
|
+
background: transparent;
|
|
142
|
+
color: inherit;
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
padding: 10px 12px;
|
|
145
|
+
text-align: left;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.thread-title {
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
font-size: 0.92rem;
|
|
151
|
+
text-overflow: ellipsis;
|
|
152
|
+
white-space: nowrap;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.thread-time {
|
|
156
|
+
color: var(--text-secondary);
|
|
157
|
+
font-size: 0.72rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.thread-delete {
|
|
161
|
+
border: 0;
|
|
162
|
+
border-radius: 12px;
|
|
163
|
+
background: transparent;
|
|
164
|
+
color: var(--text-secondary);
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
padding: 0 12px;
|
|
167
|
+
font-size: 1.2rem;
|
|
168
|
+
line-height: 1;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.thread-delete:hover {
|
|
172
|
+
color: var(--accent);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* -------------------------------------------------------------------- main */
|
|
176
|
+
|
|
177
|
+
.chat-main {
|
|
178
|
+
box-sizing: border-box;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
flex: 1;
|
|
182
|
+
min-width: 0;
|
|
183
|
+
height: 100%;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.breadcrumb {
|
|
187
|
+
display: flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
gap: 10px;
|
|
190
|
+
flex-shrink: 0;
|
|
191
|
+
padding: 18px 48px;
|
|
192
|
+
border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
|
193
|
+
font-family: var(--font-mono);
|
|
194
|
+
font-size: 0.82rem;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.crumb-link {
|
|
198
|
+
border: 0;
|
|
199
|
+
background: transparent;
|
|
200
|
+
color: var(--accent);
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
padding: 0;
|
|
203
|
+
font: inherit;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.crumb-link:hover {
|
|
207
|
+
text-decoration: underline;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.crumb-sep {
|
|
211
|
+
color: var(--text-secondary);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.crumb-current {
|
|
215
|
+
color: var(--text-primary);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.conversation {
|
|
219
|
+
flex: 1;
|
|
220
|
+
min-height: 0;
|
|
221
|
+
overflow-y: auto;
|
|
222
|
+
padding: 32px 48px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.conversation-inner {
|
|
226
|
+
display: flex;
|
|
227
|
+
flex-direction: column;
|
|
228
|
+
gap: 16px;
|
|
229
|
+
width: min(760px, 100%);
|
|
230
|
+
margin: 0 auto;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.theme-toggle {
|
|
234
|
+
position: fixed;
|
|
235
|
+
top: 18px;
|
|
236
|
+
right: 24px;
|
|
237
|
+
z-index: 10;
|
|
238
|
+
display: grid;
|
|
239
|
+
width: 40px;
|
|
240
|
+
height: 40px;
|
|
241
|
+
place-items: center;
|
|
242
|
+
border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
|
|
243
|
+
border-radius: 999px;
|
|
244
|
+
background: var(--bg-secondary);
|
|
245
|
+
color: var(--accent);
|
|
246
|
+
cursor: pointer;
|
|
247
|
+
padding: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.theme-toggle svg {
|
|
251
|
+
width: 20px;
|
|
252
|
+
height: 20px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* --------------------------------------------------------------- messages */
|
|
256
|
+
|
|
257
|
+
.empty-state {
|
|
258
|
+
color: var(--text-secondary);
|
|
259
|
+
line-height: 1.5;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.empty-state.center {
|
|
263
|
+
display: grid;
|
|
264
|
+
place-items: center;
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 100%;
|
|
267
|
+
padding: 48px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.message {
|
|
271
|
+
max-width: 80%;
|
|
272
|
+
padding: 16px 18px;
|
|
273
|
+
border-radius: 20px;
|
|
274
|
+
background: var(--bg-card);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.message.user {
|
|
278
|
+
align-self: flex-end;
|
|
279
|
+
background: var(--accent);
|
|
280
|
+
color: #030710;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.message.tool {
|
|
284
|
+
max-width: 100%;
|
|
285
|
+
border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.tool-call-list {
|
|
289
|
+
margin: 0 0 10px;
|
|
290
|
+
padding-left: 18px;
|
|
291
|
+
color: var(--text-secondary);
|
|
292
|
+
font-size: 0.9rem;
|
|
293
|
+
line-height: 1.45;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.tool-call-list strong {
|
|
297
|
+
color: var(--accent);
|
|
298
|
+
font-weight: 600;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.message span {
|
|
302
|
+
display: block;
|
|
303
|
+
margin-bottom: 8px;
|
|
304
|
+
color: inherit;
|
|
305
|
+
font-family: var(--font-mono);
|
|
306
|
+
font-size: 0.7rem;
|
|
307
|
+
text-transform: uppercase;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.message p {
|
|
311
|
+
white-space: pre-wrap;
|
|
312
|
+
line-height: 1.5;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.error {
|
|
316
|
+
color: var(--text-secondary);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/* --------------------------------------------------------------- reasoning */
|
|
320
|
+
|
|
321
|
+
.reasoning {
|
|
322
|
+
margin-bottom: 10px;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.reasoning-toggle {
|
|
326
|
+
display: inline-flex;
|
|
327
|
+
align-items: center;
|
|
328
|
+
gap: 6px;
|
|
329
|
+
border: 0;
|
|
330
|
+
background: transparent;
|
|
331
|
+
color: var(--text-secondary);
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
padding: 0;
|
|
334
|
+
font-family: var(--font-mono);
|
|
335
|
+
font-size: 0.78rem;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.reasoning-toggle:hover {
|
|
339
|
+
color: var(--accent);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.reasoning-caret {
|
|
343
|
+
font-size: 0.7rem;
|
|
344
|
+
transition: transform 0.15s ease;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.reasoning.open .reasoning-caret {
|
|
348
|
+
transform: rotate(90deg);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.reasoning-icon {
|
|
352
|
+
display: inline-grid;
|
|
353
|
+
place-items: center;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.reasoning-icon svg {
|
|
357
|
+
width: 15px;
|
|
358
|
+
height: 15px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.reasoning-dots {
|
|
362
|
+
color: var(--accent);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.reasoning-text {
|
|
366
|
+
margin: 8px 0 0;
|
|
367
|
+
padding-left: 14px;
|
|
368
|
+
border-left: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
|
|
369
|
+
color: var(--text-secondary);
|
|
370
|
+
font-size: 0.86rem;
|
|
371
|
+
font-style: italic;
|
|
372
|
+
line-height: 1.5;
|
|
373
|
+
white-space: pre-wrap;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* ------------------------------------------------------------ tool calls */
|
|
377
|
+
|
|
378
|
+
.toolcall {
|
|
379
|
+
border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
|
|
380
|
+
border-radius: 14px;
|
|
381
|
+
background: color-mix(in srgb, var(--bg-secondary) 70%, transparent);
|
|
382
|
+
overflow: hidden;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.toolcall-head {
|
|
386
|
+
display: flex;
|
|
387
|
+
align-items: center;
|
|
388
|
+
gap: 10px;
|
|
389
|
+
width: 100%;
|
|
390
|
+
border: 0;
|
|
391
|
+
background: transparent;
|
|
392
|
+
color: inherit;
|
|
393
|
+
cursor: pointer;
|
|
394
|
+
padding: 10px 14px;
|
|
395
|
+
text-align: left;
|
|
396
|
+
font-family: var(--font-mono);
|
|
397
|
+
font-size: 0.82rem;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.toolcall-icon {
|
|
401
|
+
display: inline-grid;
|
|
402
|
+
place-items: center;
|
|
403
|
+
color: var(--accent);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.toolcall-icon svg {
|
|
407
|
+
width: 16px;
|
|
408
|
+
height: 16px;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.toolcall-name {
|
|
412
|
+
flex: 1;
|
|
413
|
+
min-width: 0;
|
|
414
|
+
overflow: hidden;
|
|
415
|
+
text-overflow: ellipsis;
|
|
416
|
+
white-space: nowrap;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.toolcall-chevron {
|
|
420
|
+
color: var(--text-secondary);
|
|
421
|
+
font-size: 0.72rem;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.toolcall-body {
|
|
425
|
+
display: grid;
|
|
426
|
+
gap: 10px;
|
|
427
|
+
padding: 0 14px 14px;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.toolcall-section {
|
|
431
|
+
display: grid;
|
|
432
|
+
gap: 4px;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.toolcall-section span {
|
|
436
|
+
color: var(--accent);
|
|
437
|
+
font-family: var(--font-mono);
|
|
438
|
+
font-size: 0.66rem;
|
|
439
|
+
text-transform: uppercase;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.toolcall-section pre {
|
|
443
|
+
margin: 0;
|
|
444
|
+
max-height: 260px;
|
|
445
|
+
overflow: auto;
|
|
446
|
+
padding: 10px 12px;
|
|
447
|
+
border-radius: 10px;
|
|
448
|
+
background: var(--bg-primary);
|
|
449
|
+
color: var(--text-secondary);
|
|
450
|
+
font-family: var(--font-mono);
|
|
451
|
+
font-size: 0.8rem;
|
|
452
|
+
line-height: 1.45;
|
|
453
|
+
white-space: pre-wrap;
|
|
454
|
+
word-break: break-word;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* ------------------------------------------------------------- subagents */
|
|
458
|
+
|
|
459
|
+
.subagent-list {
|
|
460
|
+
display: grid;
|
|
461
|
+
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
|
462
|
+
gap: 12px;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.subagent-chip {
|
|
466
|
+
display: flex;
|
|
467
|
+
flex-direction: column;
|
|
468
|
+
gap: 8px;
|
|
469
|
+
align-items: flex-start;
|
|
470
|
+
text-align: left;
|
|
471
|
+
padding: 14px 16px;
|
|
472
|
+
border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
|
|
473
|
+
border-radius: 16px;
|
|
474
|
+
background: var(--bg-card);
|
|
475
|
+
color: inherit;
|
|
476
|
+
cursor: pointer;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.subagent-chip:hover:not(:disabled) {
|
|
480
|
+
border-color: var(--accent);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.subagent-chip:disabled {
|
|
484
|
+
cursor: default;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.subagent-chip-head {
|
|
488
|
+
display: flex;
|
|
489
|
+
align-items: center;
|
|
490
|
+
justify-content: space-between;
|
|
491
|
+
gap: 8px;
|
|
492
|
+
width: 100%;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.subagent-chip-name {
|
|
496
|
+
font-family: var(--font-mono);
|
|
497
|
+
font-size: 0.92rem;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.subagent-chip-task {
|
|
501
|
+
color: var(--text-secondary);
|
|
502
|
+
font-size: 0.85rem;
|
|
503
|
+
line-height: 1.4;
|
|
504
|
+
display: -webkit-box;
|
|
505
|
+
-webkit-line-clamp: 2;
|
|
506
|
+
line-clamp: 2;
|
|
507
|
+
-webkit-box-orient: vertical;
|
|
508
|
+
overflow: hidden;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.subagent-status {
|
|
512
|
+
border-radius: 999px;
|
|
513
|
+
padding: 3px 10px;
|
|
514
|
+
font-size: 0.66rem;
|
|
515
|
+
text-transform: uppercase;
|
|
516
|
+
letter-spacing: 0.02em;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.status-running {
|
|
520
|
+
background: color-mix(in srgb, var(--accent) 28%, transparent);
|
|
521
|
+
color: var(--text-primary);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.status-complete {
|
|
525
|
+
background: color-mix(in srgb, #36d399 30%, transparent);
|
|
526
|
+
color: var(--text-primary);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.status-error {
|
|
530
|
+
background: color-mix(in srgb, #f87272 35%, transparent);
|
|
531
|
+
color: var(--text-primary);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.subagent-prompt {
|
|
535
|
+
display: grid;
|
|
536
|
+
gap: 6px;
|
|
537
|
+
padding: 14px 16px;
|
|
538
|
+
border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
|
|
539
|
+
border-radius: 16px;
|
|
540
|
+
background: var(--bg-secondary);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.subagent-prompt span {
|
|
544
|
+
color: var(--accent);
|
|
545
|
+
font-family: var(--font-mono);
|
|
546
|
+
font-size: 0.7rem;
|
|
547
|
+
text-transform: uppercase;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.subagent-prompt p {
|
|
551
|
+
line-height: 1.5;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* ----------------------------------------------------- typing indicator */
|
|
555
|
+
|
|
556
|
+
.streaming-indicator {
|
|
557
|
+
display: flex;
|
|
558
|
+
align-items: center;
|
|
559
|
+
min-height: 24px;
|
|
560
|
+
padding: 0 4px;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.typing-dots,
|
|
564
|
+
.inline-dots {
|
|
565
|
+
display: inline-flex;
|
|
566
|
+
flex-direction: row;
|
|
567
|
+
flex-wrap: nowrap;
|
|
568
|
+
gap: 5px;
|
|
569
|
+
align-items: center;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.typing-dots {
|
|
573
|
+
height: 24px;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.inline-dots {
|
|
577
|
+
gap: 3px;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
.typing-dots span,
|
|
581
|
+
.inline-dots span {
|
|
582
|
+
flex-shrink: 0;
|
|
583
|
+
border-radius: 50%;
|
|
584
|
+
background: currentColor;
|
|
585
|
+
animation: typing-bounce 1.4s infinite ease-in-out both;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
.typing-dots span {
|
|
589
|
+
width: 7px;
|
|
590
|
+
height: 7px;
|
|
591
|
+
background: var(--accent);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.inline-dots span {
|
|
595
|
+
width: 4px;
|
|
596
|
+
height: 4px;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.typing-dots span:nth-child(1),
|
|
600
|
+
.inline-dots span:nth-child(1) {
|
|
601
|
+
animation-delay: -0.32s;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.typing-dots span:nth-child(2),
|
|
605
|
+
.inline-dots span:nth-child(2) {
|
|
606
|
+
animation-delay: -0.16s;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
@keyframes typing-bounce {
|
|
610
|
+
0%,
|
|
611
|
+
80%,
|
|
612
|
+
100% {
|
|
613
|
+
transform: scale(0.6);
|
|
614
|
+
opacity: 0.4;
|
|
615
|
+
}
|
|
616
|
+
40% {
|
|
617
|
+
transform: scale(1);
|
|
618
|
+
opacity: 1;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/* --------------------------------------------------------------- composer */
|
|
623
|
+
|
|
624
|
+
.composer-bar {
|
|
625
|
+
flex-shrink: 0;
|
|
626
|
+
padding: 16px 48px 24px;
|
|
627
|
+
border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.composer {
|
|
631
|
+
box-sizing: border-box;
|
|
632
|
+
display: flex;
|
|
633
|
+
align-items: flex-end;
|
|
634
|
+
gap: 12px;
|
|
635
|
+
width: min(760px, 100%);
|
|
636
|
+
margin: 0 auto;
|
|
637
|
+
padding: 10px 10px 10px 16px;
|
|
638
|
+
border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
|
|
639
|
+
border-radius: 22px;
|
|
640
|
+
background: var(--bg-secondary);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.composer textarea {
|
|
644
|
+
box-sizing: border-box;
|
|
645
|
+
flex: 1;
|
|
646
|
+
min-height: 24px;
|
|
647
|
+
max-height: 200px;
|
|
648
|
+
resize: none;
|
|
649
|
+
border: 0;
|
|
650
|
+
background: transparent;
|
|
651
|
+
color: var(--text-primary);
|
|
652
|
+
font: inherit;
|
|
653
|
+
line-height: 1.5;
|
|
654
|
+
padding: 8px 0;
|
|
655
|
+
outline: none;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
.composer textarea::placeholder {
|
|
659
|
+
color: var(--text-secondary);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.composer button {
|
|
663
|
+
flex-shrink: 0;
|
|
664
|
+
border: 0;
|
|
665
|
+
border-radius: 999px;
|
|
666
|
+
background: var(--accent);
|
|
667
|
+
color: #030710;
|
|
668
|
+
cursor: pointer;
|
|
669
|
+
padding: 10px 20px;
|
|
670
|
+
font-family: var(--font-mono);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
.composer button:disabled {
|
|
674
|
+
cursor: not-allowed;
|
|
675
|
+
opacity: 0.55;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
@media (max-width: 860px) {
|
|
679
|
+
.app-shell {
|
|
680
|
+
flex-direction: column;
|
|
681
|
+
height: auto;
|
|
682
|
+
min-height: 100vh;
|
|
683
|
+
overflow: visible;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.sidebar {
|
|
687
|
+
width: 100%;
|
|
688
|
+
border-right: 0;
|
|
689
|
+
border-bottom: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.chat-main {
|
|
693
|
+
height: auto;
|
|
694
|
+
min-height: 70vh;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.breadcrumb,
|
|
698
|
+
.conversation,
|
|
699
|
+
.composer-bar {
|
|
700
|
+
padding-left: 24px;
|
|
701
|
+
padding-right: 24px;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
.message {
|
|
705
|
+
max-width: 100%;
|
|
706
|
+
}
|
|
707
|
+
}
|