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