@swirls/shuttle 0.0.0-stage → 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 (298) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +190 -0
  3. package/NOTICE +5 -0
  4. package/README.md +42 -2
  5. package/dist/api/auth.d.ts +18 -0
  6. package/dist/api/auth.js +15 -0
  7. package/dist/api/common.d.ts +8 -0
  8. package/dist/api/common.js +4 -0
  9. package/dist/api/connections.d.ts +292 -0
  10. package/dist/api/connections.js +114 -0
  11. package/dist/api/github.d.ts +20 -0
  12. package/dist/api/github.js +13 -0
  13. package/dist/api/harness.d.ts +97 -0
  14. package/dist/api/harness.js +47 -0
  15. package/dist/api/index.d.ts +2059 -0
  16. package/dist/api/index.js +37 -0
  17. package/dist/api/runners.d.ts +93 -0
  18. package/dist/api/runners.js +45 -0
  19. package/dist/api/sandbox.d.ts +550 -0
  20. package/dist/api/sandbox.js +210 -0
  21. package/dist/api/sessions.d.ts +318 -0
  22. package/dist/api/sessions.js +154 -0
  23. package/dist/api/tenant.d.ts +54 -0
  24. package/dist/api/tenant.js +19 -0
  25. package/dist/api/timings.d.ts +36 -0
  26. package/dist/api/timings.js +48 -0
  27. package/dist/api/workspace.d.ts +738 -0
  28. package/dist/api/workspace.js +246 -0
  29. package/dist/core/pulls.d.ts +1001 -0
  30. package/dist/core/pulls.js +170 -0
  31. package/dist/core/workspace.d.ts +985 -0
  32. package/dist/core/workspace.js +174 -0
  33. package/dist/react/components/command-palette.d.ts +22 -0
  34. package/dist/react/components/command-palette.js +66 -0
  35. package/dist/react/components/follow-list.d.ts +20 -0
  36. package/dist/react/components/follow-list.js +98 -0
  37. package/dist/react/components/json-tree.d.ts +11 -0
  38. package/dist/react/components/json-tree.js +120 -0
  39. package/dist/react/components/markdown.d.ts +5 -0
  40. package/dist/react/components/markdown.js +29 -0
  41. package/dist/react/components/shuttle-mark.d.ts +7 -0
  42. package/dist/react/components/shuttle-mark.js +9 -0
  43. package/dist/react/components/status-dot.d.ts +9 -0
  44. package/dist/react/components/status-dot.js +27 -0
  45. package/dist/react/components/status.d.ts +6 -0
  46. package/dist/react/components/status.js +66 -0
  47. package/dist/react/components/ui/badge.d.ts +7 -0
  48. package/dist/react/components/ui/badge.js +19 -0
  49. package/dist/react/components/ui/button.d.ts +10 -0
  50. package/dist/react/components/ui/button.js +40 -0
  51. package/dist/react/components/ui/dialog.d.ts +19 -0
  52. package/dist/react/components/ui/dialog.js +34 -0
  53. package/dist/react/components/ui/dropdown-menu.d.ts +14 -0
  54. package/dist/react/components/ui/dropdown-menu.js +33 -0
  55. package/dist/react/components/ui/input.d.ts +3 -0
  56. package/dist/react/components/ui/input.js +6 -0
  57. package/dist/react/components/ui/panel.d.ts +18 -0
  58. package/dist/react/components/ui/panel.js +22 -0
  59. package/dist/react/components/ui/popover.d.ts +7 -0
  60. package/dist/react/components/ui/popover.js +16 -0
  61. package/dist/react/components/ui/resizable.d.ts +7 -0
  62. package/dist/react/components/ui/resizable.js +14 -0
  63. package/dist/react/components/ui/scroll-area.d.ts +14 -0
  64. package/dist/react/components/ui/scroll-area.js +12 -0
  65. package/dist/react/components/ui/select.d.ts +10 -0
  66. package/dist/react/components/ui/select.js +20 -0
  67. package/dist/react/components/ui/sheet.d.ts +8 -0
  68. package/dist/react/components/ui/sheet.js +20 -0
  69. package/dist/react/components/ui/tabs.d.ts +7 -0
  70. package/dist/react/components/ui/tabs.js +16 -0
  71. package/dist/react/components/ui/textarea.d.ts +3 -0
  72. package/dist/react/components/ui/textarea.js +6 -0
  73. package/dist/react/components/ui/tooltip.d.ts +8 -0
  74. package/dist/react/components/ui/tooltip.js +17 -0
  75. package/dist/react/features/artifacts/artifact-links.d.ts +9 -0
  76. package/dist/react/features/artifacts/artifact-links.js +38 -0
  77. package/dist/react/features/artifacts/artifact-pane.d.ts +19 -0
  78. package/dist/react/features/artifacts/artifact-pane.js +64 -0
  79. package/dist/react/features/artifacts/artifact-types.d.ts +59 -0
  80. package/dist/react/features/artifacts/artifact-types.js +69 -0
  81. package/dist/react/features/artifacts/browser-viewer.d.ts +5 -0
  82. package/dist/react/features/artifacts/browser-viewer.js +60 -0
  83. package/dist/react/features/artifacts/diff-style.d.ts +10 -0
  84. package/dist/react/features/artifacts/diff-style.js +21 -0
  85. package/dist/react/features/artifacts/file-pane.d.ts +13 -0
  86. package/dist/react/features/artifacts/file-pane.js +305 -0
  87. package/dist/react/features/artifacts/file-quick-open.d.ts +15 -0
  88. package/dist/react/features/artifacts/file-quick-open.js +74 -0
  89. package/dist/react/features/artifacts/file-search.d.ts +12 -0
  90. package/dist/react/features/artifacts/file-search.js +90 -0
  91. package/dist/react/features/artifacts/media-viewer.d.ts +8 -0
  92. package/dist/react/features/artifacts/media-viewer.js +41 -0
  93. package/dist/react/features/artifacts/review-diff.d.ts +19 -0
  94. package/dist/react/features/artifacts/review-diff.js +59 -0
  95. package/dist/react/features/artifacts/review-viewer.d.ts +4 -0
  96. package/dist/react/features/artifacts/review-viewer.js +337 -0
  97. package/dist/react/features/artifacts/sandbox.d.ts +43 -0
  98. package/dist/react/features/artifacts/sandbox.js +109 -0
  99. package/dist/react/features/artifacts/tab-strip.d.ts +11 -0
  100. package/dist/react/features/artifacts/tab-strip.js +55 -0
  101. package/dist/react/features/artifacts/terminal-theme.d.ts +34 -0
  102. package/dist/react/features/artifacts/terminal-theme.js +62 -0
  103. package/dist/react/features/artifacts/terminal-viewer.d.ts +5 -0
  104. package/dist/react/features/artifacts/terminal-viewer.js +209 -0
  105. package/dist/react/features/artifacts/unified-diff.d.ts +16 -0
  106. package/dist/react/features/artifacts/unified-diff.js +55 -0
  107. package/dist/react/features/artifacts/workspace-viewer.d.ts +16 -0
  108. package/dist/react/features/artifacts/workspace-viewer.js +275 -0
  109. package/dist/react/features/connections/agent-sign-in.d.ts +71 -0
  110. package/dist/react/features/connections/agent-sign-in.js +251 -0
  111. package/dist/react/features/connections/connections-panel.d.ts +8 -0
  112. package/dist/react/features/connections/connections-panel.js +42 -0
  113. package/dist/react/features/connections/login.d.ts +24 -0
  114. package/dist/react/features/connections/login.js +35 -0
  115. package/dist/react/features/connections/places.d.ts +20 -0
  116. package/dist/react/features/connections/places.js +27 -0
  117. package/dist/react/features/connections/queries.d.ts +28 -0
  118. package/dist/react/features/connections/queries.js +8 -0
  119. package/dist/react/features/events/event-cache.d.ts +4 -0
  120. package/dist/react/features/events/event-cache.js +29 -0
  121. package/dist/react/features/events/event-catalog.d.ts +17 -0
  122. package/dist/react/features/events/event-catalog.js +261 -0
  123. package/dist/react/features/events/event-inspector.d.ts +7 -0
  124. package/dist/react/features/events/event-inspector.js +29 -0
  125. package/dist/react/features/events/event-row.d.ts +21 -0
  126. package/dist/react/features/events/event-row.js +34 -0
  127. package/dist/react/features/events/event-stream.d.ts +18 -0
  128. package/dist/react/features/events/event-stream.js +58 -0
  129. package/dist/react/features/events/global-events.d.ts +122 -0
  130. package/dist/react/features/events/global-events.js +329 -0
  131. package/dist/react/features/events/shuttle-events.d.ts +7 -0
  132. package/dist/react/features/events/shuttle-events.js +1 -0
  133. package/dist/react/features/playbook/playbook-page.d.ts +2 -0
  134. package/dist/react/features/playbook/playbook-page.js +36 -0
  135. package/dist/react/features/playbook/playbook-query.d.ts +111 -0
  136. package/dist/react/features/playbook/playbook-query.js +17 -0
  137. package/dist/react/features/pulls/linked-session.d.ts +12 -0
  138. package/dist/react/features/pulls/linked-session.js +22 -0
  139. package/dist/react/features/pulls/pull-detail-sheet.d.ts +10 -0
  140. package/dist/react/features/pulls/pull-detail-sheet.js +41 -0
  141. package/dist/react/features/pulls/pull-fixtures.d.ts +8 -0
  142. package/dist/react/features/pulls/pull-fixtures.js +258 -0
  143. package/dist/react/features/pulls/pull-glyphs.d.ts +24 -0
  144. package/dist/react/features/pulls/pull-glyphs.js +89 -0
  145. package/dist/react/features/pulls/pull-inbox-list.d.ts +13 -0
  146. package/dist/react/features/pulls/pull-inbox-list.js +230 -0
  147. package/dist/react/features/pulls/pull-inbox-pref.d.ts +2 -0
  148. package/dist/react/features/pulls/pull-inbox-pref.js +19 -0
  149. package/dist/react/features/pulls/pull-inbox.d.ts +30 -0
  150. package/dist/react/features/pulls/pull-inbox.js +110 -0
  151. package/dist/react/features/pulls/pull-threads.d.ts +39 -0
  152. package/dist/react/features/pulls/pull-threads.js +145 -0
  153. package/dist/react/features/pulls/pulls.d.ts +120 -0
  154. package/dist/react/features/pulls/pulls.js +414 -0
  155. package/dist/react/features/pulls/session-pull-groups.d.ts +14 -0
  156. package/dist/react/features/pulls/session-pull-groups.js +29 -0
  157. package/dist/react/features/pulls/stack-ladder.d.ts +9 -0
  158. package/dist/react/features/pulls/stack-ladder.js +32 -0
  159. package/dist/react/features/sessions/agent-tree.d.ts +16 -0
  160. package/dist/react/features/sessions/agent-tree.js +100 -0
  161. package/dist/react/features/sessions/agents.d.ts +34 -0
  162. package/dist/react/features/sessions/agents.js +146 -0
  163. package/dist/react/features/sessions/attention.d.ts +32 -0
  164. package/dist/react/features/sessions/attention.js +42 -0
  165. package/dist/react/features/sessions/composer-attachments.d.ts +33 -0
  166. package/dist/react/features/sessions/composer-attachments.js +126 -0
  167. package/dist/react/features/sessions/composer.d.ts +15 -0
  168. package/dist/react/features/sessions/composer.js +327 -0
  169. package/dist/react/features/sessions/context-usage-meter.d.ts +5 -0
  170. package/dist/react/features/sessions/context-usage-meter.js +122 -0
  171. package/dist/react/features/sessions/context-usage.d.ts +54 -0
  172. package/dist/react/features/sessions/context-usage.js +206 -0
  173. package/dist/react/features/sessions/conversation.d.ts +21 -0
  174. package/dist/react/features/sessions/conversation.js +549 -0
  175. package/dist/react/features/sessions/harness-switcher.d.ts +26 -0
  176. package/dist/react/features/sessions/harness-switcher.js +118 -0
  177. package/dist/react/features/sessions/intake-heuristic.d.ts +5 -0
  178. package/dist/react/features/sessions/intake-heuristic.js +28 -0
  179. package/dist/react/features/sessions/interjection-routes.d.ts +13 -0
  180. package/dist/react/features/sessions/interjection-routes.js +72 -0
  181. package/dist/react/features/sessions/llm-models.d.ts +128 -0
  182. package/dist/react/features/sessions/llm-models.js +174 -0
  183. package/dist/react/features/sessions/media-strip.d.ts +25 -0
  184. package/dist/react/features/sessions/media-strip.js +56 -0
  185. package/dist/react/features/sessions/media.d.ts +43 -0
  186. package/dist/react/features/sessions/media.js +115 -0
  187. package/dist/react/features/sessions/model-search.d.ts +6 -0
  188. package/dist/react/features/sessions/model-search.js +16 -0
  189. package/dist/react/features/sessions/model-switcher.d.ts +16 -0
  190. package/dist/react/features/sessions/model-switcher.js +262 -0
  191. package/dist/react/features/sessions/open-pull-request.d.ts +20 -0
  192. package/dist/react/features/sessions/open-pull-request.js +92 -0
  193. package/dist/react/features/sessions/pull-publish-card.d.ts +14 -0
  194. package/dist/react/features/sessions/pull-publish-card.js +88 -0
  195. package/dist/react/features/sessions/recent-sessions.d.ts +11 -0
  196. package/dist/react/features/sessions/recent-sessions.js +29 -0
  197. package/dist/react/features/sessions/seen-sessions.d.ts +16 -0
  198. package/dist/react/features/sessions/seen-sessions.js +108 -0
  199. package/dist/react/features/sessions/session-activity.d.ts +95 -0
  200. package/dist/react/features/sessions/session-activity.js +785 -0
  201. package/dist/react/features/sessions/session-context.d.ts +8 -0
  202. package/dist/react/features/sessions/session-context.js +98 -0
  203. package/dist/react/features/sessions/session-feed.d.ts +243 -0
  204. package/dist/react/features/sessions/session-feed.js +883 -0
  205. package/dist/react/features/sessions/session-header.d.ts +24 -0
  206. package/dist/react/features/sessions/session-header.js +97 -0
  207. package/dist/react/features/sessions/session-layout.d.ts +7 -0
  208. package/dist/react/features/sessions/session-layout.js +87 -0
  209. package/dist/react/features/sessions/session-panes.d.ts +49 -0
  210. package/dist/react/features/sessions/session-panes.js +142 -0
  211. package/dist/react/features/sessions/session-parts.d.ts +35 -0
  212. package/dist/react/features/sessions/session-parts.js +74 -0
  213. package/dist/react/features/sessions/session-place.d.ts +9 -0
  214. package/dist/react/features/sessions/session-place.js +109 -0
  215. package/dist/react/features/sessions/session-pr-pills.d.ts +7 -0
  216. package/dist/react/features/sessions/session-pr-pills.js +28 -0
  217. package/dist/react/features/sessions/session-queries.d.ts +172 -0
  218. package/dist/react/features/sessions/session-queries.js +90 -0
  219. package/dist/react/features/sessions/session-repos.d.ts +8 -0
  220. package/dist/react/features/sessions/session-repos.js +15 -0
  221. package/dist/react/features/sessions/session-share.d.ts +8 -0
  222. package/dist/react/features/sessions/session-share.js +112 -0
  223. package/dist/react/features/sessions/session-tabs.d.ts +38 -0
  224. package/dist/react/features/sessions/session-tabs.js +191 -0
  225. package/dist/react/features/sessions/session.d.ts +103 -0
  226. package/dist/react/features/sessions/session.js +216 -0
  227. package/dist/react/features/sessions/signals.d.ts +13 -0
  228. package/dist/react/features/sessions/signals.js +34 -0
  229. package/dist/react/features/sessions/tab-set.d.ts +20 -0
  230. package/dist/react/features/sessions/tab-set.js +58 -0
  231. package/dist/react/features/sessions/team.d.ts +16 -0
  232. package/dist/react/features/sessions/team.js +35 -0
  233. package/dist/react/features/sessions/timeline.d.ts +53 -0
  234. package/dist/react/features/sessions/timeline.js +153 -0
  235. package/dist/react/features/sessions/use-session-tabs.d.ts +18 -0
  236. package/dist/react/features/sessions/use-session-tabs.js +119 -0
  237. package/dist/react/features/sessions/vendor-models.d.ts +23 -0
  238. package/dist/react/features/sessions/vendor-models.js +61 -0
  239. package/dist/react/features/workspace/activity-dot.d.ts +15 -0
  240. package/dist/react/features/workspace/activity-dot.js +36 -0
  241. package/dist/react/features/workspace/app-sidebar.d.ts +16 -0
  242. package/dist/react/features/workspace/app-sidebar.js +227 -0
  243. package/dist/react/features/workspace/fixture-toggle.d.ts +2 -0
  244. package/dist/react/features/workspace/fixture-toggle.js +72 -0
  245. package/dist/react/features/workspace/folder-group.d.ts +18 -0
  246. package/dist/react/features/workspace/folder-group.js +83 -0
  247. package/dist/react/features/workspace/inline-name-input.d.ts +10 -0
  248. package/dist/react/features/workspace/inline-name-input.js +33 -0
  249. package/dist/react/features/workspace/link-repo-dialog.d.ts +9 -0
  250. package/dist/react/features/workspace/link-repo-dialog.js +76 -0
  251. package/dist/react/features/workspace/repo-chip.d.ts +13 -0
  252. package/dist/react/features/workspace/repo-chip.js +15 -0
  253. package/dist/react/features/workspace/session-row.d.ts +20 -0
  254. package/dist/react/features/workspace/session-row.js +23 -0
  255. package/dist/react/features/workspace/use-debounced.d.ts +2 -0
  256. package/dist/react/features/workspace/use-debounced.js +10 -0
  257. package/dist/react/features/workspace/workspace-context.d.ts +45 -0
  258. package/dist/react/features/workspace/workspace-context.js +245 -0
  259. package/dist/react/features/workspace/workspace-fixtures.d.ts +16 -0
  260. package/dist/react/features/workspace/workspace-fixtures.js +175 -0
  261. package/dist/react/features/workspace/workspace-tree.d.ts +30 -0
  262. package/dist/react/features/workspace/workspace-tree.js +69 -0
  263. package/dist/react/features/workspace/workspace.d.ts +107 -0
  264. package/dist/react/features/workspace/workspace.js +458 -0
  265. package/dist/react/index.d.ts +33 -0
  266. package/dist/react/index.js +35 -0
  267. package/dist/react/lib/cn.d.ts +6 -0
  268. package/dist/react/lib/cn.js +20 -0
  269. package/dist/react/lib/initials.d.ts +6 -0
  270. package/dist/react/lib/initials.js +32 -0
  271. package/dist/react/lib/json.d.ts +33 -0
  272. package/dist/react/lib/json.js +101 -0
  273. package/dist/react/lib/time.d.ts +8 -0
  274. package/dist/react/lib/time.js +57 -0
  275. package/dist/react/lib/use-media-query.d.ts +1 -0
  276. package/dist/react/lib/use-media-query.js +9 -0
  277. package/dist/react/lib/use-now.d.ts +2 -0
  278. package/dist/react/lib/use-now.js +10 -0
  279. package/dist/react/lib/use-width-bucket.d.ts +6 -0
  280. package/dist/react/lib/use-width-bucket.js +28 -0
  281. package/dist/react/parts/index.d.ts +43 -0
  282. package/dist/react/parts/index.js +43 -0
  283. package/dist/react/shuttle/device.d.ts +42 -0
  284. package/dist/react/shuttle/device.js +10 -0
  285. package/dist/react/shuttle/host.d.ts +1126 -0
  286. package/dist/react/shuttle/host.js +93 -0
  287. package/dist/react/shuttle/identity.d.ts +31 -0
  288. package/dist/react/shuttle/identity.js +20 -0
  289. package/dist/react/shuttle/index.d.ts +14 -0
  290. package/dist/react/shuttle/index.js +13 -0
  291. package/dist/react/shuttle/provider.d.ts +41 -0
  292. package/dist/react/shuttle/provider.js +59 -0
  293. package/dist/react/shuttle/router.d.ts +43 -0
  294. package/dist/react/shuttle/router.js +1 -0
  295. package/dist/react/theme.css +456 -0
  296. package/dist/react/ui.d.ts +19 -0
  297. package/dist/react/ui.js +19 -0
  298. package/package.json +100 -4
@@ -0,0 +1,66 @@
1
+ import { cn } from '../lib/cn.js';
2
+ export function statusTone(status) {
3
+ switch (status) {
4
+ case 'working':
5
+ case 'running':
6
+ case 'pending':
7
+ return 'running';
8
+ case 'delegating':
9
+ return 'delegating';
10
+ case 'needs_input':
11
+ case 'waiting':
12
+ case 'blocked':
13
+ return 'waiting';
14
+ case 'completed':
15
+ case 'approved':
16
+ return 'completed';
17
+ case 'failed':
18
+ case 'error':
19
+ case 'rejected':
20
+ return 'failed';
21
+ default:
22
+ return 'idle';
23
+ }
24
+ }
25
+ const textClass = {
26
+ running: 'text-status-running',
27
+ delegating: 'text-status-running/80',
28
+ waiting: 'text-status-waiting',
29
+ completed: 'text-status-completed',
30
+ failed: 'text-status-failed',
31
+ idle: 'text-muted-foreground',
32
+ };
33
+ const dotClass = {
34
+ running: 'bg-status-running',
35
+ delegating: 'border-status-running/60 border-[1.5px]',
36
+ waiting: 'bg-status-waiting',
37
+ completed: 'bg-status-completed',
38
+ failed: 'bg-status-failed',
39
+ idle: 'border-muted-foreground/45 border',
40
+ };
41
+ const LABELS = {
42
+ working: 'Working',
43
+ running: 'Working',
44
+ starting: 'Starting',
45
+ delegating: 'Delegating',
46
+ needs_input: 'Needs input',
47
+ waiting: 'Waiting',
48
+ idle: 'Idle',
49
+ completed: 'Completed',
50
+ failed: 'Failed',
51
+ error: 'Failed',
52
+ cancelled: 'Cancelled',
53
+ };
54
+ export function statusLabel(status) {
55
+ return LABELS[status] ?? status;
56
+ }
57
+ export function statusClass(status) {
58
+ return textClass[statusTone(status)];
59
+ }
60
+ export function statusDotClass(status) {
61
+ const tone = statusTone(status);
62
+ return cn('inline-block size-1.5 shrink-0 rounded-full', dotClass[tone]);
63
+ }
64
+ export function isLive(status) {
65
+ return statusTone(status) === 'running';
66
+ }
@@ -0,0 +1,7 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import type { ComponentProps } from 'react';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "outline" | "tinted" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
+ declare function Badge({ className, variant, ...props }: ComponentProps<'span'> & VariantProps<typeof badgeVariants>): import("react").JSX.Element;
7
+ export { Badge, badgeVariants };
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cva } from 'class-variance-authority';
3
+ import { cn } from '../../lib/cn.js';
4
+ const badgeVariants = cva('inline-flex h-5 shrink-0 items-center gap-1 rounded-full px-2 text-[11px] font-medium whitespace-nowrap [&_svg]:size-3', {
5
+ variants: {
6
+ variant: {
7
+ default: 'bg-secondary text-secondary-foreground',
8
+ outline: 'border-border text-muted-foreground border',
9
+ tinted: 'bg-current/12 ring-1 ring-current/15 ring-inset',
10
+ },
11
+ },
12
+ defaultVariants: {
13
+ variant: 'default',
14
+ },
15
+ });
16
+ function Badge({ className, variant, ...props }) {
17
+ return _jsx("span", { "data-slot": "badge", className: cn(badgeVariants({ variant }), className), ...props });
18
+ }
19
+ export { Badge, badgeVariants };
@@ -0,0 +1,10 @@
1
+ import { type VariantProps } from 'class-variance-authority';
2
+ import type { ComponentProps } from 'react';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "brand" | "default" | "destructive" | "ghost" | "outline" | "secondary" | "success" | null | undefined;
5
+ size?: "default" | "icon" | "icon-sm" | "icon-xs" | "lg" | "sm" | "xs" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ declare function Button({ className, variant, size, asChild, ...props }: ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
8
+ asChild?: boolean;
9
+ }): import("react").JSX.Element;
10
+ export { Button, buttonVariants };
@@ -0,0 +1,40 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cva } from 'class-variance-authority';
3
+ import { Slot } from 'radix-ui';
4
+ import { cn } from '../../lib/cn.js';
5
+ const buttonVariants = cva([
6
+ 'inline-flex shrink-0 items-center justify-center font-medium whitespace-nowrap outline-none select-none',
7
+ 'focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50',
8
+ 'ease-snappy transition-[transform,background-color,color,opacity,box-shadow] duration-150 active:scale-[0.97]',
9
+ '[&_svg]:pointer-events-none [&_svg]:shrink-0',
10
+ ], {
11
+ variants: {
12
+ variant: {
13
+ default: 'bg-primary text-primary-foreground hover:bg-primary/90',
14
+ brand: 'bg-brand text-brand-foreground hover:bg-brand/90 shadow-[inset_0_1px_0_oklch(1_0_0/25%)]',
15
+ secondary: 'bg-secondary text-secondary-foreground hover:bg-accent',
16
+ outline: 'border-input hover:bg-accent hover:text-accent-foreground border bg-transparent',
17
+ ghost: 'text-muted-foreground hover:bg-accent hover:text-foreground',
18
+ destructive: 'bg-destructive/15 text-destructive hover:bg-destructive/25',
19
+ success: 'bg-status-completed/15 text-status-completed hover:bg-status-completed/25',
20
+ },
21
+ size: {
22
+ xs: 'h-6 gap-1 rounded-sm px-2 text-[11px] [&_svg]:size-3',
23
+ sm: 'h-7 gap-1.5 rounded-md px-2.5 text-xs [&_svg]:size-3.5',
24
+ default: 'h-8 gap-1.5 rounded-md px-3 text-[13px] [&_svg]:size-3.5',
25
+ lg: 'h-9 gap-2 rounded-lg px-4 text-sm [&_svg]:size-4',
26
+ 'icon-xs': 'size-6 rounded-sm [&_svg]:size-3',
27
+ 'icon-sm': 'size-7 rounded-md [&_svg]:size-3.5',
28
+ icon: 'size-8 rounded-md [&_svg]:size-4',
29
+ },
30
+ },
31
+ defaultVariants: {
32
+ variant: 'default',
33
+ size: 'default',
34
+ },
35
+ });
36
+ function Button({ className, variant, size, asChild = false, ...props }) {
37
+ const Comp = asChild ? Slot.Root : 'button';
38
+ return (_jsx(Comp, { "data-slot": "button", type: asChild ? undefined : (props.type ?? 'button'), className: cn(buttonVariants({ variant, size }), className), ...props }));
39
+ }
40
+ export { Button, buttonVariants };
@@ -0,0 +1,19 @@
1
+ import { Dialog as DialogPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ declare function Dialog(props: ComponentProps<typeof DialogPrimitive.Root>): import("react").JSX.Element;
4
+ declare function DialogTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>): import("react").JSX.Element;
5
+ declare function DialogPortal(props: ComponentProps<typeof DialogPrimitive.Portal>): import("react").JSX.Element;
6
+ declare function DialogClose(props: ComponentProps<typeof DialogPrimitive.Close>): import("react").JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: ComponentProps<typeof DialogPrimitive.Overlay>): import("react").JSX.Element;
8
+ declare function DialogContent({ className, children, instant, ...props }: ComponentProps<typeof DialogPrimitive.Content> & {
9
+ /**
10
+ * Appears and leaves with no animation. For dialogs opened from the keyboard many times a
11
+ * day, such as a command palette, where an entrance only makes the shortcut feel slow.
12
+ */
13
+ instant?: boolean;
14
+ }): import("react").JSX.Element;
15
+ declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
16
+ declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
17
+ declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react").JSX.Element;
18
+ declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react").JSX.Element;
19
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Dialog as DialogPrimitive } from 'radix-ui';
3
+ import { cn } from '../../lib/cn.js';
4
+ function Dialog(props) {
5
+ return _jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
6
+ }
7
+ function DialogTrigger(props) {
8
+ return _jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
9
+ }
10
+ function DialogPortal(props) {
11
+ return _jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
12
+ }
13
+ function DialogClose(props) {
14
+ return _jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
15
+ }
16
+ function DialogOverlay({ className, ...props }) {
17
+ return (_jsx(DialogPrimitive.Overlay, { "data-slot": "dialog-overlay", className: cn('modal-backdrop fixed inset-0 z-50 bg-black/60 backdrop-blur-[2px]', className), ...props }));
18
+ }
19
+ function DialogContent({ className, children, instant = false, ...props }) {
20
+ return (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, { className: instant ? 'animate-none!' : undefined }), _jsx(DialogPrimitive.Content, { "data-slot": "dialog-content", className: cn('modal bg-popover text-popover-foreground border-border fixed top-1/2 left-1/2 z-50 grid w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl border p-5 shadow-xl shadow-black/40', instant && 'animate-none!', className), ...props, children: children })] }));
21
+ }
22
+ function DialogHeader({ className, ...props }) {
23
+ return _jsx("div", { className: cn('flex flex-col gap-1.5', className), ...props });
24
+ }
25
+ function DialogFooter({ className, ...props }) {
26
+ return _jsx("div", { className: cn('flex justify-end gap-2', className), ...props });
27
+ }
28
+ function DialogTitle({ className, ...props }) {
29
+ return (_jsx(DialogPrimitive.Title, { className: cn('text-[15px] font-semibold tracking-tight', className), ...props }));
30
+ }
31
+ function DialogDescription({ className, ...props }) {
32
+ return (_jsx(DialogPrimitive.Description, { className: cn('text-muted-foreground text-xs leading-relaxed', className), ...props }));
33
+ }
34
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,14 @@
1
+ import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ declare function DropdownMenu(props: ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react").JSX.Element;
4
+ declare function DropdownMenuTrigger(props: ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react").JSX.Element;
5
+ declare function DropdownMenuContent({ className, sideOffset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react").JSX.Element;
6
+ declare function DropdownMenuLabel({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label>): import("react").JSX.Element;
7
+ declare function DropdownMenuItem({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Item>): import("react").JSX.Element;
8
+ declare function DropdownMenuCheckboxItem({ className, children, ...props }: ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react").JSX.Element;
9
+ declare function DropdownMenuRadioGroup(props: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react").JSX.Element;
10
+ declare function DropdownMenuRadioItem({ className, children, description, ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
11
+ description?: string;
12
+ }): import("react").JSX.Element;
13
+ declare function DropdownMenuSeparator({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react").JSX.Element;
14
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, };
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Check } from 'lucide-react';
3
+ import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
4
+ import { cn } from '../../lib/cn.js';
5
+ const itemClass = 'focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-xs outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:size-3.5 [&_svg]:shrink-0';
6
+ function DropdownMenu(props) {
7
+ return _jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
8
+ }
9
+ function DropdownMenuTrigger(props) {
10
+ return _jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
11
+ }
12
+ function DropdownMenuContent({ className, sideOffset = 6, ...props }) {
13
+ return (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { "data-slot": "dropdown-menu-content", sideOffset: sideOffset, className: cn('pop bg-popover text-popover-foreground border-border z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-44 overflow-x-hidden overflow-y-auto overscroll-contain rounded-lg border p-1 shadow-xl shadow-black/40', className), ...props }) }));
14
+ }
15
+ function DropdownMenuLabel({ className, ...props }) {
16
+ return (_jsx(DropdownMenuPrimitive.Label, { "data-slot": "dropdown-menu-label", className: cn('text-muted-foreground px-2 pt-2 pb-1 text-[11px] font-medium', className), ...props }));
17
+ }
18
+ function DropdownMenuItem({ className, ...props }) {
19
+ return (_jsx(DropdownMenuPrimitive.Item, { "data-slot": "dropdown-menu-item", className: cn(itemClass, className), ...props }));
20
+ }
21
+ function DropdownMenuCheckboxItem({ className, children, ...props }) {
22
+ return (_jsxs(DropdownMenuPrimitive.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", className: cn(itemClass, 'pl-7', className), ...props, children: [_jsx("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Check, {}) }) }), children] }));
23
+ }
24
+ function DropdownMenuRadioGroup(props) {
25
+ return _jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
26
+ }
27
+ function DropdownMenuRadioItem({ className, children, description, ...props }) {
28
+ return (_jsxs(DropdownMenuPrimitive.RadioItem, { "data-slot": "dropdown-menu-radio-item", className: cn('focus:bg-accent focus:text-accent-foreground relative flex cursor-default flex-col items-start rounded-sm py-1.5 pr-2.5 pl-7 text-xs outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50', className), ...props, children: [_jsx("span", { className: "absolute top-2 left-2 flex size-3.5 items-center justify-center", children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: "size-3.5" }) }) }), _jsx("span", { className: "flex items-center gap-1.5", children: children }), description ? (_jsx("span", { className: "text-muted-foreground mt-0.5 text-[11px] leading-snug", children: description })) : null] }));
29
+ }
30
+ function DropdownMenuSeparator({ className, ...props }) {
31
+ return (_jsx(DropdownMenuPrimitive.Separator, { "data-slot": "dropdown-menu-separator", className: cn('bg-border -mx-1 my-1 h-px', className), ...props }));
32
+ }
33
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, };
@@ -0,0 +1,3 @@
1
+ import type { ComponentProps } from 'react';
2
+ declare function Input({ className, type, ...props }: ComponentProps<'input'>): import("react").JSX.Element;
3
+ export { Input };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../lib/cn.js';
3
+ function Input({ className, type, ...props }) {
4
+ return (_jsx("input", { type: type, "data-slot": "input", className: cn('border-input placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-ring/30 flex h-9 w-full min-w-0 rounded-lg border bg-black/15 px-3 py-1 text-[13px] transition-[border-color,box-shadow] duration-150 outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50', className), ...props }));
5
+ }
6
+ export { Input };
@@ -0,0 +1,18 @@
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ /**
3
+ * Every panel header shares this height, which is also the app sidebar's top bar, so the
4
+ * columns and their dividers line up as one surface.
5
+ */
6
+ declare function PanelHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
7
+ declare function PanelTitle({ className, children, meta, ...props }: ComponentProps<'h2'> & {
8
+ meta?: ReactNode;
9
+ }): import("react").JSX.Element;
10
+ declare function SectionLabel({ className, ...props }: ComponentProps<'h3'>): import("react").JSX.Element;
11
+ declare function EmptyState({ icon, title, children, className, }: {
12
+ icon?: ReactNode;
13
+ title: string;
14
+ children?: ReactNode;
15
+ className?: string;
16
+ }): import("react").JSX.Element;
17
+ declare function Kbd({ className, ...props }: ComponentProps<'kbd'>): import("react").JSX.Element;
18
+ export { EmptyState, Kbd, PanelHeader, PanelTitle, SectionLabel };
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from '../../lib/cn.js';
3
+ /**
4
+ * Every panel header shares this height, which is also the app sidebar's top bar, so the
5
+ * columns and their dividers line up as one surface.
6
+ */
7
+ function PanelHeader({ className, ...props }) {
8
+ return (_jsx("div", { "data-slot": "panel-header", className: cn('flex h-12 shrink-0 items-center gap-2 border-b px-3', className), ...props }));
9
+ }
10
+ function PanelTitle({ className, children, meta, ...props }) {
11
+ return (_jsxs("h2", { "data-slot": "panel-title", className: cn('flex min-w-0 items-baseline gap-2 text-[13px] font-medium', className), ...props, children: [_jsx("span", { className: "truncate", children: children }), meta !== undefined && meta !== null ? (_jsx("span", { className: "text-muted-foreground shrink-0 font-mono text-[11px] font-normal tabular-nums", children: meta })) : null] }));
12
+ }
13
+ function SectionLabel({ className, ...props }) {
14
+ return (_jsx("h3", { className: cn('text-muted-foreground px-3 pt-3 pb-1.5 text-[11px] font-medium', className), ...props }));
15
+ }
16
+ function EmptyState({ icon, title, children, className, }) {
17
+ return (_jsxs("div", { className: cn('flex h-full min-h-32 flex-col items-center justify-center gap-2 px-6 text-center', className), children: [icon ? (_jsx("div", { className: "text-muted-foreground/70 bg-card mb-1 flex size-9 items-center justify-center rounded-lg border [&_svg]:size-4", children: icon })) : null, _jsx("p", { className: "text-foreground text-[13px] font-medium", children: title }), children ? (_jsx("p", { className: "text-muted-foreground max-w-64 text-xs leading-relaxed", children: children })) : null] }));
18
+ }
19
+ function Kbd({ className, ...props }) {
20
+ return (_jsx("kbd", { "data-slot": "kbd", className: cn('bg-background/60 text-muted-foreground pointer-events-none inline-flex h-5 min-w-5 items-center justify-center rounded border px-1 font-sans text-[10px] font-medium', className), ...props }));
21
+ }
22
+ export { EmptyState, Kbd, PanelHeader, PanelTitle, SectionLabel };
@@ -0,0 +1,7 @@
1
+ import { Popover as PopoverPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ declare function Popover(props: ComponentProps<typeof PopoverPrimitive.Root>): import("react").JSX.Element;
4
+ declare function PopoverTrigger(props: ComponentProps<typeof PopoverPrimitive.Trigger>): import("react").JSX.Element;
5
+ declare function PopoverContent({ className, sideOffset, align, ...props }: ComponentProps<typeof PopoverPrimitive.Content>): import("react").JSX.Element;
6
+ declare function PopoverClose(props: ComponentProps<typeof PopoverPrimitive.Close>): import("react").JSX.Element;
7
+ export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Popover as PopoverPrimitive } from 'radix-ui';
3
+ import { cn } from '../../lib/cn.js';
4
+ function Popover(props) {
5
+ return _jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
6
+ }
7
+ function PopoverTrigger(props) {
8
+ return _jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
9
+ }
10
+ function PopoverContent({ className, sideOffset = 8, align = 'start', ...props }) {
11
+ return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { "data-slot": "popover-content", sideOffset: sideOffset, align: align, className: cn('pop bg-popover text-popover-foreground border-border z-50 w-72 rounded-xl border p-0 shadow-xl shadow-black/40 outline-none', className), ...props }) }));
12
+ }
13
+ function PopoverClose(props) {
14
+ return _jsx(PopoverPrimitive.Close, { "data-slot": "popover-close", ...props });
15
+ }
16
+ export { Popover, PopoverClose, PopoverContent, PopoverTrigger };
@@ -0,0 +1,7 @@
1
+ import type { ComponentProps } from 'react';
2
+ import { Group, Panel, Separator } from 'react-resizable-panels';
3
+ declare function ResizablePanelGroup({ className, ...props }: ComponentProps<typeof Group>): import("react").JSX.Element;
4
+ declare function ResizablePanel(props: ComponentProps<typeof Panel>): import("react").JSX.Element;
5
+ /** A hairline divider with a wider invisible hit area that brightens while hovered or dragged. */
6
+ declare function ResizableHandle({ className, ...props }: ComponentProps<typeof Separator>): import("react").JSX.Element;
7
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Group, Panel, Separator } from 'react-resizable-panels';
3
+ import { cn } from '../../lib/cn.js';
4
+ function ResizablePanelGroup({ className, ...props }) {
5
+ return (_jsx(Group, { "data-slot": "resizable-panel-group", className: cn('flex size-full aria-[orientation=vertical]:flex-col', className), ...props }));
6
+ }
7
+ function ResizablePanel(props) {
8
+ return _jsx(Panel, { "data-slot": "resizable-panel", ...props });
9
+ }
10
+ /** A hairline divider with a wider invisible hit area that brightens while hovered or dragged. */
11
+ function ResizableHandle({ className, ...props }) {
12
+ return (_jsx(Separator, { "data-slot": "resizable-handle", className: cn('bg-border relative w-px shrink-0 outline-none after:absolute after:inset-y-0 after:left-1/2 after:w-2 after:-translate-x-1/2', 'data-[separator=active]:bg-ring data-[separator=focus]:bg-ring data-[separator=hover]:bg-ring/60 transition-colors duration-150', className), ...props }));
13
+ }
14
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,14 @@
1
+ import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
2
+ import type { ComponentProps, Ref, UIEventHandler } from 'react';
3
+ declare function ScrollArea({ className, children, viewportRef, viewportClassName, onViewportScroll, horizontal, vertical, barClassName, ...props }: ComponentProps<typeof ScrollAreaPrimitive.Root> & {
4
+ viewportRef?: Ref<HTMLDivElement>;
5
+ viewportClassName?: string;
6
+ onViewportScroll?: UIEventHandler<HTMLDivElement>;
7
+ horizontal?: boolean;
8
+ /** False for a strip that only scrolls sideways. */
9
+ vertical?: boolean;
10
+ /** Extra classes for the scrollbars, for example a thinner bar under a row of tabs. */
11
+ barClassName?: string;
12
+ }): import("react").JSX.Element;
13
+ declare function ScrollBar({ className, orientation, ...props }: ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react").JSX.Element;
14
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
3
+ import { cn } from '../../lib/cn.js';
4
+ function ScrollArea({ className, children, viewportRef, viewportClassName, onViewportScroll, horizontal = false, vertical = true, barClassName, ...props }) {
5
+ return (_jsxs(ScrollAreaPrimitive.Root, { "data-slot": "scroll-area", type: "hover", scrollHideDelay: 400, className: cn('relative overflow-hidden', className), ...props, children: [_jsx(ScrollAreaPrimitive.Viewport, { ref: viewportRef, "data-slot": "scroll-area-viewport", className: cn(
6
+ // Radix wraps content in `display: table`, which lets long lines widen the viewport.
7
+ 'size-full overscroll-contain rounded-[inherit] outline-none [&>div]:block!', viewportClassName), onScroll: onViewportScroll, children: children }), vertical ? _jsx(ScrollBar, { className: barClassName }) : null, horizontal ? _jsx(ScrollBar, { orientation: "horizontal", className: barClassName }) : null, _jsx(ScrollAreaPrimitive.Corner, {})] }));
8
+ }
9
+ function ScrollBar({ className, orientation = 'vertical', ...props }) {
10
+ return (_jsx(ScrollAreaPrimitive.ScrollAreaScrollbar, { "data-slot": "scroll-area-scrollbar", orientation: orientation, className: cn('z-10 flex touch-none p-px transition-opacity duration-150 select-none data-[state=hidden]:opacity-0', orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent', orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent', className), ...props, children: _jsx(ScrollAreaPrimitive.ScrollAreaThumb, { "data-slot": "scroll-area-thumb", className: "bg-foreground/15 hover:bg-foreground/25 relative flex-1 rounded-full transition-colors" }) }));
11
+ }
12
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,10 @@
1
+ import { Select as SelectPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ declare function Select(props: ComponentProps<typeof SelectPrimitive.Root>): import("react").JSX.Element;
4
+ declare function SelectValue(props: ComponentProps<typeof SelectPrimitive.Value>): import("react").JSX.Element;
5
+ declare function SelectTrigger({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Trigger>): import("react").JSX.Element;
6
+ declare function SelectContent({ className, children, position, sideOffset, ...props }: ComponentProps<typeof SelectPrimitive.Content>): import("react").JSX.Element;
7
+ declare function SelectItem({ className, children, description, ...props }: ComponentProps<typeof SelectPrimitive.Item> & {
8
+ description?: string;
9
+ }): import("react").JSX.Element;
10
+ export { Select, SelectContent, SelectItem, SelectTrigger, SelectValue };
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Check, ChevronDown } from 'lucide-react';
3
+ import { Select as SelectPrimitive } from 'radix-ui';
4
+ import { cn } from '../../lib/cn.js';
5
+ function Select(props) {
6
+ return _jsx(SelectPrimitive.Root, { "data-slot": "select", ...props });
7
+ }
8
+ function SelectValue(props) {
9
+ return _jsx(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
10
+ }
11
+ function SelectTrigger({ className, children, ...props }) {
12
+ return (_jsxs(SelectPrimitive.Trigger, { "data-slot": "select-trigger", className: cn('text-muted-foreground hover:bg-accent hover:text-foreground focus-visible:ring-ring/50 data-[state=open]:bg-accent data-[state=open]:text-foreground flex h-7 items-center gap-1 rounded-md px-2 text-xs whitespace-nowrap transition-colors duration-150 outline-none focus-visible:ring-[3px] disabled:opacity-50', className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx(ChevronDown, { className: "size-3 opacity-60" }) })] }));
13
+ }
14
+ function SelectContent({ className, children, position = 'popper', sideOffset = 6, ...props }) {
15
+ return (_jsx(SelectPrimitive.Portal, { children: _jsx(SelectPrimitive.Content, { "data-slot": "select-content", position: position, sideOffset: sideOffset, className: cn('pop bg-popover text-popover-foreground border-border z-50 min-w-44 overflow-hidden rounded-lg border p-1 shadow-xl shadow-black/40', className), ...props, children: _jsx(SelectPrimitive.Viewport, { children: children }) }) }));
16
+ }
17
+ function SelectItem({ className, children, description, ...props }) {
18
+ return (_jsxs(SelectPrimitive.Item, { "data-slot": "select-item", className: cn('focus:bg-accent relative flex cursor-default flex-col items-start rounded-sm py-1.5 pr-2 pl-7 text-xs outline-none select-none data-disabled:opacity-50', className), ...props, children: [_jsx("span", { className: "absolute top-2 left-2 flex size-3.5 items-center justify-center", children: _jsx(SelectPrimitive.ItemIndicator, { children: _jsx(Check, { className: "size-3.5" }) }) }), _jsx(SelectPrimitive.ItemText, { children: children }), description ? (_jsx("span", { className: "text-muted-foreground text-[11px]", children: description })) : null] }));
19
+ }
20
+ export { Select, SelectContent, SelectItem, SelectTrigger, SelectValue };
@@ -0,0 +1,8 @@
1
+ import { Dialog as DialogPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ declare function Sheet(props: ComponentProps<typeof DialogPrimitive.Root>): import("react").JSX.Element;
4
+ declare function SheetTrigger(props: ComponentProps<typeof DialogPrimitive.Trigger>): import("react").JSX.Element;
5
+ declare function SheetContent({ className, children, ...props }: ComponentProps<typeof DialogPrimitive.Content>): import("react").JSX.Element;
6
+ declare function SheetTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): import("react").JSX.Element;
7
+ declare function SheetDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): import("react").JSX.Element;
8
+ export { Sheet, SheetContent, SheetDescription, SheetTitle, SheetTrigger };
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { X } from 'lucide-react';
3
+ import { Dialog as DialogPrimitive } from 'radix-ui';
4
+ import { cn } from '../../lib/cn.js';
5
+ function Sheet(props) {
6
+ return _jsx(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
7
+ }
8
+ function SheetTrigger(props) {
9
+ return _jsx(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
10
+ }
11
+ function SheetContent({ className, children, ...props }) {
12
+ return (_jsxs(DialogPrimitive.Portal, { children: [_jsx(DialogPrimitive.Overlay, { className: "modal-backdrop fixed inset-0 z-50 bg-black/40" }), _jsxs(DialogPrimitive.Content, { "data-slot": "sheet-content", className: cn('sheet bg-sidebar text-foreground fixed inset-y-0 right-0 z-50 flex w-[min(28rem,calc(100vw-2rem))] flex-col border-l shadow-2xl shadow-black/50 outline-none', className), ...props, children: [children, _jsx(DialogPrimitive.Close, { "aria-label": "Close", className: "text-muted-foreground hover:text-foreground hover:bg-accent focus-visible:ring-ring/50 absolute top-3 right-3 flex size-7 items-center justify-center rounded-md transition-colors duration-100 outline-none focus-visible:ring-[3px] [&_svg]:size-4", children: _jsx(X, {}) })] })] }));
13
+ }
14
+ function SheetTitle({ className, ...props }) {
15
+ return (_jsx(DialogPrimitive.Title, { className: cn('text-[15px] font-semibold tracking-tight', className), ...props }));
16
+ }
17
+ function SheetDescription({ className, ...props }) {
18
+ return (_jsx(DialogPrimitive.Description, { className: cn('text-muted-foreground text-xs leading-relaxed', className), ...props }));
19
+ }
20
+ export { Sheet, SheetContent, SheetDescription, SheetTitle, SheetTrigger };
@@ -0,0 +1,7 @@
1
+ import { Tabs as TabsPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ declare function Tabs({ className, ...props }: ComponentProps<typeof TabsPrimitive.Root>): import("react").JSX.Element;
4
+ declare function TabsList({ className, ...props }: ComponentProps<typeof TabsPrimitive.List>): import("react").JSX.Element;
5
+ declare function TabsTrigger({ className, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): import("react").JSX.Element;
6
+ declare function TabsContent({ className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): import("react").JSX.Element;
7
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Tabs as TabsPrimitive } from 'radix-ui';
3
+ import { cn } from '../../lib/cn.js';
4
+ function Tabs({ className, ...props }) {
5
+ return (_jsx(TabsPrimitive.Root, { "data-slot": "tabs", className: cn('flex flex-col gap-2', className), ...props }));
6
+ }
7
+ function TabsList({ className, ...props }) {
8
+ return (_jsx(TabsPrimitive.List, { "data-slot": "tabs-list", className: cn('bg-secondary/70 text-muted-foreground inline-flex h-7 w-fit shrink-0 items-center justify-center rounded-md p-0.5', className), ...props }));
9
+ }
10
+ function TabsTrigger({ className, ...props }) {
11
+ return (_jsx(TabsPrimitive.Trigger, { "data-slot": "tabs-trigger", className: cn('focus-visible:ring-ring/50 hover:text-foreground data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex h-6 items-center justify-center gap-1.5 rounded-sm px-2.5 text-xs font-medium whitespace-nowrap transition-colors duration-150 focus-visible:ring-[3px] focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:size-3.5', className), ...props }));
12
+ }
13
+ function TabsContent({ className, ...props }) {
14
+ return (_jsx(TabsPrimitive.Content, { "data-slot": "tabs-content", className: cn('min-h-0 flex-1 outline-none', className), ...props }));
15
+ }
16
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
@@ -0,0 +1,3 @@
1
+ import type { ComponentProps } from 'react';
2
+ declare function Textarea({ className, ...props }: ComponentProps<'textarea'>): import("react").JSX.Element;
3
+ export { Textarea };
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '../../lib/cn.js';
3
+ function Textarea({ className, ...props }) {
4
+ return (_jsx("textarea", { "data-slot": "textarea", className: cn('border-input placeholder:text-muted-foreground/70 focus-visible:border-ring focus-visible:ring-ring/30 flex field-sizing-content min-h-16 w-full rounded-lg border bg-black/15 px-3 py-2.5 text-[13px] leading-relaxed transition-[border-color,box-shadow] duration-150 outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50', className), ...props }));
5
+ }
6
+ export { Textarea };
@@ -0,0 +1,8 @@
1
+ import { Tooltip as TooltipPrimitive } from 'radix-ui';
2
+ import type { ComponentProps } from 'react';
3
+ /** One provider per app so moving between triggers skips the open delay. */
4
+ declare function TooltipProvider({ delayDuration, skipDelayDuration, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>): import("react").JSX.Element;
5
+ declare function Tooltip(props: ComponentProps<typeof TooltipPrimitive.Root>): import("react").JSX.Element;
6
+ declare function TooltipTrigger(props: ComponentProps<typeof TooltipPrimitive.Trigger>): import("react").JSX.Element;
7
+ declare function TooltipContent({ className, sideOffset, ...props }: ComponentProps<typeof TooltipPrimitive.Content>): import("react").JSX.Element;
8
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Tooltip as TooltipPrimitive } from 'radix-ui';
3
+ import { cn } from '../../lib/cn.js';
4
+ /** One provider per app so moving between triggers skips the open delay. */
5
+ function TooltipProvider({ delayDuration = 400, skipDelayDuration = 300, ...props }) {
6
+ return (_jsx(TooltipPrimitive.Provider, { "data-slot": "tooltip-provider", delayDuration: delayDuration, skipDelayDuration: skipDelayDuration, ...props }));
7
+ }
8
+ function Tooltip(props) {
9
+ return _jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
10
+ }
11
+ function TooltipTrigger(props) {
12
+ return _jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
13
+ }
14
+ function TooltipContent({ className, sideOffset = 6, ...props }) {
15
+ return (_jsx(TooltipPrimitive.Portal, { children: _jsx(TooltipPrimitive.Content, { "data-slot": "tooltip-content", sideOffset: sideOffset, className: cn('pop bg-popover text-popover-foreground border-border z-50 max-w-72 rounded-md border px-2 py-1 text-[11px] shadow-lg shadow-black/40 data-[state=instant-open]:animate-none', className), ...props }) }));
16
+ }
17
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,9 @@
1
+ import type { ToolCallItem } from '../sessions/session-feed.js';
2
+ /**
3
+ * The preview ports an agent's message points at, in the order it mentions them. An agent says
4
+ * where its app is running in prose, so this reads the prose: a local address with a port, or
5
+ * the word "port" followed by one.
6
+ */
7
+ export declare function previewPorts(text: string): string[];
8
+ /** The files a burst of tool calls wrote or edited, each once, in the order first touched. */
9
+ export declare function changedPaths(calls: readonly ToolCallItem[]): string[];
@@ -0,0 +1,38 @@
1
+ import { jsonFields, jsonText } from '../../lib/json.js';
2
+ const MAX_PORTS = 3;
3
+ const HOST_PORT = /\b(?:localhost|127\.0\.0\.1|0\.0\.0\.0):(\d{2,5})\b/g;
4
+ /** "port 3000", also when the number is bold or in code, as agents tend to write it. */
5
+ const NAMED_PORT = /\bport\s+(?:\*\*|`)?(\d{4,5})\b/gi;
6
+ /**
7
+ * The preview ports an agent's message points at, in the order it mentions them. An agent says
8
+ * where its app is running in prose, so this reads the prose: a local address with a port, or
9
+ * the word "port" followed by one.
10
+ */
11
+ export function previewPorts(text) {
12
+ const found = [];
13
+ for (const pattern of [HOST_PORT, NAMED_PORT]) {
14
+ for (const match of text.matchAll(pattern)) {
15
+ const port = match[1];
16
+ if (port && Number(port) > 0 && Number(port) <= 65535) {
17
+ found.push({ index: match.index, port });
18
+ }
19
+ }
20
+ }
21
+ const ordered = found.toSorted((left, right) => left.index - right.index).map((hit) => hit.port);
22
+ return [...new Set(ordered)].slice(0, MAX_PORTS);
23
+ }
24
+ const WRITING_TOOLS = new Set(['write_file', 'edit_file']);
25
+ /** The files a burst of tool calls wrote or edited, each once, in the order first touched. */
26
+ export function changedPaths(calls) {
27
+ const paths = new Set();
28
+ for (const call of calls) {
29
+ if (call.status !== 'ok' || !WRITING_TOOLS.has(call.name)) {
30
+ continue;
31
+ }
32
+ const path = jsonText(jsonFields(call.args).path);
33
+ if (path) {
34
+ paths.add(path);
35
+ }
36
+ }
37
+ return [...paths];
38
+ }
@@ -0,0 +1,19 @@
1
+ import type { SessionEvent } from '../events/event-catalog.js';
2
+ import type { AgentIdentity } from '../sessions/agents.js';
3
+ import type { SessionMedia } from '../sessions/media.js';
4
+ import type { SessionTabsController } from '../sessions/use-session-tabs.js';
5
+ import { type ArtifactType } from './artifact-types.js';
6
+ export declare function ArtifactPane({ runId, folderId, events, media, identities, controller, onReveal, types, }: {
7
+ runId: string;
8
+ folderId?: string;
9
+ events: readonly SessionEvent[];
10
+ /** The session's files: what people attached and what agents shared. */
11
+ media: readonly SessionMedia[];
12
+ identities: ReadonlyMap<string, AgentIdentity>;
13
+ /** The session's tabs. The page owns them, since whether the pane shows depends on them. */
14
+ controller: SessionTabsController;
15
+ /** Asks the page to show the pane, for a shortcut that opens a tab while it is closed. */
16
+ onReveal?: () => void;
17
+ /** The kinds of tab the pane can show. Shuttle's own, unless the session was given others. */
18
+ types?: readonly ArtifactType[];
19
+ }): import("react").JSX.Element;