@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,456 @@
1
+ /*
2
+ * What Shuttle's parts need to look right: the colour and type tokens, and the few classes the
3
+ * parts use that Tailwind's utilities do not cover. A host imports it after Tailwind:
4
+ *
5
+ * @import 'tailwindcss';
6
+ * @import '@shuttle/react/theme.css';
7
+ *
8
+ * and may set the tokens under `:root` again after it to give the parts its own colours. The
9
+ * parts ask for Inter Variable and JetBrains Mono, which the host loads.
10
+ */
11
+
12
+ /* Tailwind reads the parts' own files for the utilities they use, wherever this is imported. */
13
+ @source './';
14
+ @custom-variant dark (&:is(.dark *));
15
+
16
+ @theme inline {
17
+ --font-sans:
18
+ 'Inter Variable', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
19
+ --font-mono: 'JetBrains Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
20
+
21
+ --color-background: var(--background);
22
+ --color-foreground: var(--foreground);
23
+ --color-card: var(--card);
24
+ --color-card-foreground: var(--card-foreground);
25
+ --color-popover: var(--popover);
26
+ --color-popover-foreground: var(--popover-foreground);
27
+ --color-primary: var(--primary);
28
+ --color-primary-foreground: var(--primary-foreground);
29
+ --color-secondary: var(--secondary);
30
+ --color-secondary-foreground: var(--secondary-foreground);
31
+ --color-muted: var(--muted);
32
+ --color-muted-foreground: var(--muted-foreground);
33
+ --color-accent: var(--accent);
34
+ --color-accent-foreground: var(--accent-foreground);
35
+ --color-destructive: var(--destructive);
36
+ --color-border: var(--border);
37
+ --color-input: var(--input);
38
+ --color-ring: var(--ring);
39
+ --color-sidebar: var(--sidebar);
40
+ --color-sidebar-foreground: var(--sidebar-foreground);
41
+ --color-brand: var(--brand);
42
+ --color-brand-foreground: var(--brand-foreground);
43
+
44
+ --color-status-running: var(--status-running);
45
+ --color-status-waiting: var(--status-waiting);
46
+ --color-status-completed: var(--status-completed);
47
+ --color-status-failed: var(--status-failed);
48
+ --color-status-cancelled: var(--status-cancelled);
49
+
50
+ --color-route-question: var(--route-question);
51
+ --color-route-idea: var(--route-idea);
52
+ --color-route-constraint: var(--route-constraint);
53
+ --color-route-correction: var(--route-correction);
54
+ --color-route-task: var(--route-task);
55
+ --color-route-stop: var(--route-stop);
56
+
57
+ --color-json-key: var(--json-key);
58
+ --color-json-string: var(--json-string);
59
+ --color-json-number: var(--json-number);
60
+ --color-json-boolean: var(--json-boolean);
61
+ --color-json-null: var(--json-null);
62
+
63
+ --radius-sm: calc(var(--radius) - 4px);
64
+ --radius-md: calc(var(--radius) - 2px);
65
+ --radius-lg: var(--radius);
66
+ --radius-xl: calc(var(--radius) + 4px);
67
+
68
+ --ease-snappy: cubic-bezier(0.23, 1, 0.32, 1);
69
+ --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
70
+ --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
71
+ }
72
+
73
+ :root {
74
+ color-scheme: dark;
75
+ --radius: 0.625rem;
76
+
77
+ --background: oklch(0.155 0.004 265);
78
+ --foreground: oklch(0.94 0.006 265);
79
+ --card: oklch(0.185 0.005 265);
80
+ --card-foreground: oklch(0.94 0.006 265);
81
+ --popover: oklch(0.2 0.006 265);
82
+ --popover-foreground: oklch(0.94 0.006 265);
83
+ --primary: oklch(0.94 0.006 265);
84
+ --primary-foreground: oklch(0.2 0.006 265);
85
+ --secondary: oklch(0.235 0.006 265);
86
+ --secondary-foreground: oklch(0.94 0.006 265);
87
+ --muted: oklch(0.235 0.006 265);
88
+ --muted-foreground: oklch(0.66 0.012 265);
89
+ --accent: oklch(0.255 0.008 265);
90
+ --accent-foreground: oklch(0.96 0.006 265);
91
+ --destructive: oklch(0.66 0.19 25);
92
+ --border: oklch(1 0 0 / 8%);
93
+ --input: oklch(1 0 0 / 11%);
94
+ --ring: oklch(0.62 0.12 250);
95
+ --sidebar: oklch(0.17 0.004 265);
96
+ --sidebar-foreground: oklch(0.94 0.006 265);
97
+ --brand: oklch(0.74 0.13 245);
98
+ --brand-foreground: oklch(0.18 0.03 250);
99
+
100
+ --status-running: oklch(0.74 0.13 245);
101
+ --status-waiting: oklch(0.8 0.14 85);
102
+ --status-completed: oklch(0.76 0.13 155);
103
+ --status-failed: oklch(0.68 0.18 25);
104
+ --status-cancelled: oklch(0.6 0.01 265);
105
+
106
+ --route-question: oklch(0.76 0.12 230);
107
+ --route-idea: oklch(0.8 0.13 85);
108
+ --route-constraint: oklch(0.74 0.12 300);
109
+ --route-correction: oklch(0.72 0.16 35);
110
+ --route-task: oklch(0.76 0.13 155);
111
+ --route-stop: oklch(0.68 0.18 20);
112
+
113
+ --json-key: oklch(0.8 0.06 280);
114
+ --json-string: oklch(0.8 0.1 150);
115
+ --json-number: oklch(0.8 0.1 230);
116
+ --json-boolean: oklch(0.82 0.11 70);
117
+ --json-null: oklch(0.6 0.01 265);
118
+ }
119
+
120
+ @layer base {
121
+ * {
122
+ @apply border-border outline-ring/50;
123
+ }
124
+
125
+ html,
126
+ body,
127
+ #root {
128
+ height: 100%;
129
+ }
130
+
131
+ body {
132
+ @apply bg-background text-foreground overflow-hidden font-sans antialiased;
133
+ font-feature-settings:
134
+ 'cv11' 1,
135
+ 'ss01' 1;
136
+ text-rendering: optimizeLegibility;
137
+ }
138
+
139
+ ::selection {
140
+ background: oklch(0.74 0.13 245 / 30%);
141
+ }
142
+ }
143
+
144
+ @keyframes pop-in {
145
+ from {
146
+ opacity: 0;
147
+ transform: scale(0.97);
148
+ }
149
+ }
150
+
151
+ @keyframes pop-out {
152
+ to {
153
+ opacity: 0;
154
+ transform: scale(0.97);
155
+ }
156
+ }
157
+
158
+ @keyframes fade-in {
159
+ from {
160
+ opacity: 0;
161
+ }
162
+ }
163
+
164
+ @keyframes fade-out {
165
+ to {
166
+ opacity: 0;
167
+ }
168
+ }
169
+
170
+ @keyframes rise-in {
171
+ from {
172
+ opacity: 0;
173
+ transform: translateY(6px);
174
+ }
175
+ }
176
+
177
+ @keyframes modal-in {
178
+ from {
179
+ opacity: 0;
180
+ transform: scale(0.96);
181
+ }
182
+ }
183
+
184
+ @keyframes modal-out {
185
+ to {
186
+ opacity: 0;
187
+ transform: scale(0.96);
188
+ }
189
+ }
190
+
191
+ @keyframes breathe {
192
+ 50% {
193
+ opacity: 0.35;
194
+ }
195
+ }
196
+
197
+ @keyframes spin-ring {
198
+ to {
199
+ transform: rotate(360deg);
200
+ }
201
+ }
202
+
203
+ /* Anchored overlays grow from their trigger; exits settle quicker than entrances. */
204
+ .pop {
205
+ transform-origin: var(--radix-popper-transform-origin);
206
+ animation: pop-in 150ms var(--ease-snappy);
207
+ }
208
+
209
+ .pop[data-state='closed'] {
210
+ animation: pop-out 100ms var(--ease-snappy);
211
+ }
212
+
213
+ /* Modals are not anchored, so they scale from center; exits are quicker than entrances. */
214
+ .modal[data-state='open'] {
215
+ animation: modal-in 200ms var(--ease-snappy);
216
+ }
217
+
218
+ .modal[data-state='closed'] {
219
+ animation: modal-out 150ms var(--ease-snappy);
220
+ }
221
+
222
+ .modal-backdrop[data-state='open'] {
223
+ animation: fade-in 200ms var(--ease-snappy);
224
+ }
225
+
226
+ .modal-backdrop[data-state='closed'] {
227
+ animation: fade-out 150ms var(--ease-snappy);
228
+ }
229
+
230
+ @keyframes sheet-in {
231
+ from {
232
+ transform: translateX(100%);
233
+ }
234
+ }
235
+
236
+ @keyframes sheet-out {
237
+ to {
238
+ transform: translateX(100%);
239
+ }
240
+ }
241
+
242
+ /* Side sheets slide from the edge they live on, on the iOS drawer curve. */
243
+ .sheet[data-state='open'] {
244
+ animation: sheet-in 300ms var(--ease-drawer);
245
+ }
246
+
247
+ .sheet[data-state='closed'] {
248
+ animation: sheet-out 200ms var(--ease-drawer);
249
+ }
250
+
251
+ /* Agents working right now; opacity only so the row never shifts. */
252
+ .breathe {
253
+ animation: breathe 1.6s var(--ease-in-out-strong) infinite;
254
+ }
255
+
256
+ /* Active thread work in the sidebar; GPU-only rotation off the main thread. */
257
+ .spinner-ring {
258
+ animation: spin-ring 750ms linear infinite;
259
+ }
260
+
261
+ /* Expanded thinking prose fades in without resizing the FollowList row abruptly. */
262
+ .thinking-trace-body {
263
+ transition: opacity 150ms var(--ease-snappy);
264
+
265
+ @starting-style {
266
+ opacity: 0;
267
+ }
268
+ }
269
+
270
+ /* The narrow-viewport sidebar slides over content instead of squeezing it. */
271
+ .drawer-in {
272
+ transition: transform 300ms var(--ease-drawer);
273
+
274
+ @starting-style {
275
+ transform: translateX(-100%);
276
+ }
277
+ }
278
+
279
+ .drawer-scrim {
280
+ transition: opacity 300ms var(--ease-drawer);
281
+
282
+ @starting-style {
283
+ opacity: 0;
284
+ }
285
+ }
286
+
287
+ /* The docked PR inbox eases its width so centered folder content glides instead of jumping. */
288
+ .pull-inbox {
289
+ transition: width 220ms var(--ease-snappy);
290
+ }
291
+
292
+ .pull-inbox-layer {
293
+ transition: opacity 180ms var(--ease-snappy);
294
+
295
+ @starting-style {
296
+ opacity: 0;
297
+ }
298
+ }
299
+
300
+ /* Long lists fade out at the bottom instead of slicing a row mid-glyph. */
301
+ .scroll-fade {
302
+ mask-image: linear-gradient(to bottom, black calc(100% - 20px), transparent);
303
+ }
304
+
305
+ /* Conversation rows dissolve softly into the composer deck below. */
306
+ .conversation-fade {
307
+ mask-image: linear-gradient(to bottom, black calc(100% - 28px), transparent);
308
+ }
309
+
310
+ /* New feed items settle in; transitions stay interruptible as items stream. */
311
+ .rise-in {
312
+ transition:
313
+ opacity 220ms var(--ease-snappy),
314
+ transform 220ms var(--ease-snappy);
315
+
316
+ @starting-style {
317
+ opacity: 0;
318
+ transform: translateY(6px);
319
+ }
320
+ }
321
+
322
+ .float-in {
323
+ transition:
324
+ opacity 150ms var(--ease-snappy),
325
+ transform 150ms var(--ease-snappy),
326
+ scale 150ms var(--ease-snappy),
327
+ color 100ms ease,
328
+ background-color 100ms ease;
329
+
330
+ @starting-style {
331
+ opacity: 0;
332
+ transform: translateY(4px);
333
+ }
334
+ }
335
+
336
+ .stagger > * {
337
+ animation: rise-in 260ms var(--ease-snappy) both;
338
+ }
339
+
340
+ .stagger > *:nth-child(2) {
341
+ animation-delay: 40ms;
342
+ }
343
+
344
+ .stagger > *:nth-child(3) {
345
+ animation-delay: 80ms;
346
+ }
347
+
348
+ .stagger > *:nth-child(4) {
349
+ animation-delay: 120ms;
350
+ }
351
+
352
+ .stagger > *:nth-child(n + 5) {
353
+ animation-delay: 160ms;
354
+ }
355
+
356
+ /* Markdown wraps text in blocks, so the caret follows the last one. */
357
+ .caret > :last-child::after,
358
+ .caret:not(:has(> *))::after {
359
+ content: '';
360
+ display: inline-block;
361
+ width: 0.45em;
362
+ height: 1em;
363
+ margin-left: 2px;
364
+ vertical-align: text-bottom;
365
+ border-radius: 1px;
366
+ background: currentColor;
367
+ opacity: 0.6;
368
+ animation: fade-in 900ms steps(2, jump-none) infinite alternate;
369
+ }
370
+
371
+ /*
372
+ * The conversation keeps message times out of the way: each shows while its row is hovered or
373
+ * holds focus. The space stays reserved, so nothing moves when one appears. Where there is no
374
+ * hover, as on a touch screen, times always show.
375
+ */
376
+ .message-row .message-time {
377
+ opacity: 0;
378
+ transition: opacity 100ms ease;
379
+ }
380
+
381
+ .message-row:hover .message-time,
382
+ .message-row:focus-within .message-time {
383
+ opacity: 1;
384
+ }
385
+
386
+ @media (hover: none) {
387
+ .message-row .message-time {
388
+ opacity: 1;
389
+ }
390
+ }
391
+
392
+ @media (prefers-reduced-motion: reduce) {
393
+ .pop,
394
+ .modal[data-state='open'] {
395
+ animation-name: fade-in;
396
+ }
397
+
398
+ .pop[data-state='closed'],
399
+ .modal[data-state='closed'],
400
+ .sheet[data-state='closed'] {
401
+ animation-name: fade-out;
402
+ }
403
+
404
+ .sheet[data-state='open'] {
405
+ animation-name: fade-in;
406
+ }
407
+
408
+ .breathe,
409
+ .spinner-ring {
410
+ animation: none;
411
+ }
412
+
413
+ .thinking-trace-body {
414
+ transition: none;
415
+ }
416
+
417
+ .drawer-in,
418
+ .pull-inbox {
419
+ transition: none;
420
+ }
421
+
422
+ .rise-in,
423
+ .float-in {
424
+ transition-property: opacity;
425
+ }
426
+
427
+ .stagger > * {
428
+ animation-name: fade-in;
429
+ }
430
+
431
+ .caret > :last-child::after,
432
+ .caret:not(:has(> *))::after {
433
+ animation: none;
434
+ }
435
+ }
436
+
437
+ .event-stream {
438
+ container-type: inline-size;
439
+ }
440
+
441
+ .event-offset,
442
+ .event-thread {
443
+ display: none;
444
+ }
445
+
446
+ @container (min-width: 22rem) {
447
+ .event-offset {
448
+ display: inline;
449
+ }
450
+ }
451
+
452
+ @container (min-width: 32rem) {
453
+ .event-thread {
454
+ display: inline;
455
+ }
456
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The plain controls and helpers Shuttle's parts are drawn with, for a host that wants its own
3
+ * pages to match.
4
+ */
5
+ export { FollowList } from './components/follow-list.js';
6
+ export { ShuttleMark } from './components/shuttle-mark.js';
7
+ export { Button } from './components/ui/button.js';
8
+ export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from './components/ui/dialog.js';
9
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, } from './components/ui/dropdown-menu.js';
10
+ export { Input } from './components/ui/input.js';
11
+ export { EmptyState, Kbd, PanelHeader, PanelTitle } from './components/ui/panel.js';
12
+ export { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from './components/ui/select.js';
13
+ export { Textarea } from './components/ui/textarea.js';
14
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/ui/tooltip.js';
15
+ export { cn, errorMessage, shortId } from './lib/cn.js';
16
+ export { compactRelativeTime, fullDateTime } from './lib/time.js';
17
+ export { useMediaQuery } from './lib/use-media-query.js';
18
+ export { useNow } from './lib/use-now.js';
19
+ export { useWidthBucket } from './lib/use-width-bucket.js';
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The plain controls and helpers Shuttle's parts are drawn with, for a host that wants its own
3
+ * pages to match.
4
+ */
5
+ export { FollowList } from './components/follow-list.js';
6
+ export { ShuttleMark } from './components/shuttle-mark.js';
7
+ export { Button } from './components/ui/button.js';
8
+ export { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from './components/ui/dialog.js';
9
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, } from './components/ui/dropdown-menu.js';
10
+ export { Input } from './components/ui/input.js';
11
+ export { EmptyState, Kbd, PanelHeader, PanelTitle } from './components/ui/panel.js';
12
+ export { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from './components/ui/select.js';
13
+ export { Textarea } from './components/ui/textarea.js';
14
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/ui/tooltip.js';
15
+ export { cn, errorMessage, shortId } from './lib/cn.js';
16
+ export { compactRelativeTime, fullDateTime } from './lib/time.js';
17
+ export { useMediaQuery } from './lib/use-media-query.js';
18
+ export { useNow } from './lib/use-now.js';
19
+ export { useWidthBucket } from './lib/use-width-bucket.js';
package/package.json CHANGED
@@ -1,6 +1,102 @@
1
1
  {
2
2
  "name": "@swirls/shuttle",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Shuttle as parts: React components for a development environment built around coding agents, with the API contract and run events they speak",
5
+ "homepage": "https://github.com/ByteSliceHQ/shuttle#readme",
6
+ "bugs": {
7
+ "url": "https://github.com/ByteSliceHQ/shuttle/issues"
8
+ },
9
+ "license": "Apache-2.0",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/ByteSliceHQ/shuttle.git",
13
+ "directory": "packages/shuttle"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "CHANGELOG.md",
19
+ "LICENSE",
20
+ "NOTICE"
21
+ ],
22
+ "type": "module",
23
+ "sideEffects": [
24
+ "**/*.css"
25
+ ],
26
+ "exports": {
27
+ "./api": {
28
+ "types": "./dist/api/index.d.ts",
29
+ "import": "./dist/api/index.js"
30
+ },
31
+ "./core/pulls": {
32
+ "types": "./dist/core/pulls.d.ts",
33
+ "import": "./dist/core/pulls.js"
34
+ },
35
+ "./core/workspace": {
36
+ "types": "./dist/core/workspace.d.ts",
37
+ "import": "./dist/core/workspace.js"
38
+ },
39
+ "./react": {
40
+ "types": "./dist/react/index.d.ts",
41
+ "import": "./dist/react/index.js"
42
+ },
43
+ "./react/ui": {
44
+ "types": "./dist/react/ui.d.ts",
45
+ "import": "./dist/react/ui.js"
46
+ },
47
+ "./react/theme.css": "./dist/react/theme.css"
48
+ },
49
+ "publishConfig": {
50
+ "access": "public"
51
+ },
52
+ "scripts": {
53
+ "build": "bun run scripts/assemble.ts"
54
+ },
55
+ "dependencies": {
56
+ "@orpc/client": "1.16.2",
57
+ "@orpc/contract": "1.16.2",
58
+ "@orpc/openapi-client": "1.16.2",
59
+ "@orpc/tanstack-query": "1.16.2",
60
+ "@pierre/diffs": "1.6.4",
61
+ "@swirls/looms": "^0.17.0",
62
+ "@tanstack/react-virtual": "^3.14.26",
63
+ "@xterm/addon-fit": "^0.11.0",
64
+ "@xterm/addon-webgl": "^0.19.0",
65
+ "@xterm/xterm": "^6.0.0",
66
+ "class-variance-authority": "^0.7.1",
67
+ "clsx": "^2.1.1",
68
+ "effect": "4.0.0-rc.112",
69
+ "lucide-react": "^1.70.0",
70
+ "radix-ui": "^1.8.1",
71
+ "react-markdown": "^10.1.0",
72
+ "react-resizable-panels": "^4.21.0",
73
+ "remark-gfm": "^4.0.1",
74
+ "tailwind-merge": "^3.7.0",
75
+ "zod": "^4.6.7"
76
+ },
77
+ "devDependencies": {
78
+ "@shuttle/api": "workspace:*",
79
+ "@shuttle/core": "workspace:*",
80
+ "@shuttle/react": "workspace:*"
81
+ },
82
+ "peerDependencies": {
83
+ "@tanstack/react-query": "^5.107.1",
84
+ "react": "^19.0.0",
85
+ "react-dom": "^19.0.0",
86
+ "tailwindcss": "^4.3.3"
87
+ },
88
+ "peerDependenciesMeta": {
89
+ "@tanstack/react-query": {
90
+ "optional": true
91
+ },
92
+ "react": {
93
+ "optional": true
94
+ },
95
+ "react-dom": {
96
+ "optional": true
97
+ },
98
+ "tailwindcss": {
99
+ "optional": true
100
+ }
101
+ }
102
+ }