@polderlabs/bizar 7.0.4 → 8.0.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 (489) hide show
  1. package/.claude/settings.local.json +8 -0
  2. package/bizar-dash/DESIGN.md +729 -969
  3. package/bizar-dash/GLYPH.md +418 -0
  4. package/bizar-dash/PLAN.md +1135 -0
  5. package/bizar-dash/dist/assets/ActivityFeed-BRBtQOHB.js +6 -0
  6. package/bizar-dash/dist/assets/ActivityFeed-BRBtQOHB.js.map +1 -0
  7. package/bizar-dash/dist/assets/ActivityView-CwqhxBfh.js +1 -0
  8. package/bizar-dash/dist/assets/ActivityView-CwqhxBfh.js.map +1 -0
  9. package/bizar-dash/dist/assets/AgentActivity-6MxU-a9F.js +1 -0
  10. package/bizar-dash/dist/assets/AgentActivity-6MxU-a9F.js.map +1 -0
  11. package/bizar-dash/dist/assets/AgentsView-BYrOFdwl.js +8 -0
  12. package/bizar-dash/dist/assets/AgentsView-BYrOFdwl.js.map +1 -0
  13. package/bizar-dash/dist/assets/Badge-Cd61wsBa.js +1 -0
  14. package/bizar-dash/dist/assets/Badge-Cd61wsBa.js.map +1 -0
  15. package/bizar-dash/dist/assets/Card-C_bvqXdQ.js +1 -0
  16. package/bizar-dash/dist/assets/Card-C_bvqXdQ.js.map +1 -0
  17. package/bizar-dash/dist/assets/EmptyState-BWQuKnk9.js +1 -0
  18. package/bizar-dash/dist/assets/EmptyState-BWQuKnk9.js.map +1 -0
  19. package/bizar-dash/dist/assets/GoalsView-Dok0yt9S.js +11 -0
  20. package/bizar-dash/dist/assets/GoalsView-Dok0yt9S.js.map +1 -0
  21. package/bizar-dash/dist/assets/Grid-C62gCPqt.js +1 -0
  22. package/bizar-dash/dist/assets/Grid-C62gCPqt.js.map +1 -0
  23. package/bizar-dash/dist/assets/KanbanCard-CtTKP6ZX.js +21 -0
  24. package/bizar-dash/dist/assets/KanbanCard-CtTKP6ZX.js.map +1 -0
  25. package/bizar-dash/dist/assets/LibrariesView-BcyBQXiY.js +67 -0
  26. package/bizar-dash/dist/assets/LibrariesView-BcyBQXiY.js.map +1 -0
  27. package/bizar-dash/dist/assets/MemoryView-49wR4u-y.js +13 -0
  28. package/bizar-dash/dist/assets/MemoryView-49wR4u-y.js.map +1 -0
  29. package/bizar-dash/dist/assets/OverviewView-BtQ_UWYj.js +1 -0
  30. package/bizar-dash/dist/assets/OverviewView-BtQ_UWYj.js.map +1 -0
  31. package/bizar-dash/dist/assets/ProgressBar-CpvDeq9F.js +1 -0
  32. package/bizar-dash/dist/assets/ProgressBar-CpvDeq9F.js.map +1 -0
  33. package/bizar-dash/dist/assets/SettingsRow-DmIe5OUu.js +30 -0
  34. package/bizar-dash/dist/assets/SettingsRow-DmIe5OUu.js.map +1 -0
  35. package/bizar-dash/dist/assets/SettingsView-D1KmGWbi.js +48 -0
  36. package/bizar-dash/dist/assets/SettingsView-D1KmGWbi.js.map +1 -0
  37. package/bizar-dash/dist/assets/StatTile-BkIP32gG.js +11 -0
  38. package/bizar-dash/dist/assets/StatTile-BkIP32gG.js.map +1 -0
  39. package/bizar-dash/dist/assets/TasksView-Cba3GJ42.js +1 -0
  40. package/bizar-dash/dist/assets/TasksView-Cba3GJ42.js.map +1 -0
  41. package/bizar-dash/dist/assets/ViewHeader-D6c2cw1b.js +6 -0
  42. package/bizar-dash/dist/assets/ViewHeader-D6c2cw1b.js.map +1 -0
  43. package/bizar-dash/dist/assets/brain-DeoXNDE2.js +6 -0
  44. package/bizar-dash/dist/assets/brain-DeoXNDE2.js.map +1 -0
  45. package/bizar-dash/dist/assets/calendar-DRlQkGJc.js +6 -0
  46. package/bizar-dash/dist/assets/calendar-DRlQkGJc.js.map +1 -0
  47. package/bizar-dash/dist/assets/circle-check-DmYQ3vGp.js +6 -0
  48. package/bizar-dash/dist/assets/circle-check-DmYQ3vGp.js.map +1 -0
  49. package/bizar-dash/dist/assets/cmdk-BwN8hcKQ.js +80 -0
  50. package/bizar-dash/dist/assets/cmdk-BwN8hcKQ.js.map +1 -0
  51. package/bizar-dash/dist/assets/dnd-kit-DR2Qzzxk.js +5 -0
  52. package/bizar-dash/dist/assets/dnd-kit-DR2Qzzxk.js.map +1 -0
  53. package/bizar-dash/dist/assets/git-merge-OoqBKQer.js +6 -0
  54. package/bizar-dash/dist/assets/git-merge-OoqBKQer.js.map +1 -0
  55. package/bizar-dash/dist/assets/git-pull-request-CXBQTR2f.js +6 -0
  56. package/bizar-dash/dist/assets/git-pull-request-CXBQTR2f.js.map +1 -0
  57. package/bizar-dash/dist/assets/main-COdgjqbZ.css +1 -0
  58. package/bizar-dash/dist/assets/main-Cw6gybzS.js +109 -0
  59. package/bizar-dash/dist/assets/main-Cw6gybzS.js.map +1 -0
  60. package/bizar-dash/dist/assets/message-square-DUTeIQAR.js +6 -0
  61. package/bizar-dash/dist/assets/message-square-DUTeIQAR.js.map +1 -0
  62. package/bizar-dash/dist/assets/minus-CrStJTZ7.js +6 -0
  63. package/bizar-dash/dist/assets/minus-CrStJTZ7.js.map +1 -0
  64. package/bizar-dash/dist/assets/wrench-BJ1WIC4u.js +6 -0
  65. package/bizar-dash/dist/assets/wrench-BJ1WIC4u.js.map +1 -0
  66. package/bizar-dash/dist/{mobile.html → v8.html} +6 -9
  67. package/bizar-dash/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  68. package/bizar-dash/src/server/server.mjs +1 -57
  69. package/bizar-dash/src/web/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -0
  70. package/bizar-dash/src/web/v8/App.tsx +188 -0
  71. package/bizar-dash/src/web/v8/__tests__/App.test.tsx +102 -0
  72. package/bizar-dash/src/web/v8/__tests__/AppShell.test.tsx +79 -0
  73. package/bizar-dash/src/web/v8/__tests__/PageSkeleton.test.tsx +12 -0
  74. package/bizar-dash/src/web/v8/__tests__/SettingsView.test.tsx +84 -0
  75. package/bizar-dash/src/web/v8/__tests__/Sidebar.test.tsx +95 -0
  76. package/bizar-dash/src/web/v8/__tests__/activity.test.tsx +63 -0
  77. package/bizar-dash/src/web/v8/__tests__/agents.test.tsx +90 -0
  78. package/bizar-dash/src/web/v8/__tests__/controls.test.tsx +135 -0
  79. package/bizar-dash/src/web/v8/__tests__/cx.test.ts +25 -0
  80. package/bizar-dash/src/web/v8/__tests__/data.test.tsx +293 -0
  81. package/bizar-dash/src/web/v8/__tests__/feedback.test.tsx +213 -0
  82. package/bizar-dash/src/web/v8/__tests__/goals.test.tsx +105 -0
  83. package/bizar-dash/src/web/v8/__tests__/kanban.test.tsx +176 -0
  84. package/bizar-dash/src/web/v8/__tests__/libraries.test.tsx +70 -0
  85. package/bizar-dash/src/web/v8/__tests__/memory.test.tsx +60 -0
  86. package/bizar-dash/src/web/v8/__tests__/navigation.test.tsx +137 -0
  87. package/bizar-dash/src/web/v8/__tests__/settings.test.tsx +104 -0
  88. package/bizar-dash/src/web/v8/__tests__/theme.test.tsx +98 -0
  89. package/bizar-dash/src/web/v8/__tests__/views.test.tsx +112 -0
  90. package/bizar-dash/src/web/v8/main.tsx +28 -0
  91. package/bizar-dash/src/web/v8/shell/AppShell.tsx +90 -0
  92. package/bizar-dash/src/web/v8/shell/PageSkeleton.tsx +29 -0
  93. package/bizar-dash/src/web/v8/shell/Sidebar.tsx +361 -0
  94. package/bizar-dash/src/web/v8/shell/StatusBar.tsx +63 -0
  95. package/bizar-dash/src/web/v8/shell/Topbar.tsx +113 -0
  96. package/bizar-dash/src/web/v8/shell/index.ts +15 -0
  97. package/bizar-dash/src/web/v8/ui/activity/ActivityFeed.tsx +137 -0
  98. package/bizar-dash/src/web/v8/ui/agents/AgentActivity.tsx +101 -0
  99. package/bizar-dash/src/web/v8/ui/agents/AgentCard.tsx +158 -0
  100. package/bizar-dash/src/web/v8/ui/controls/Button.tsx +141 -0
  101. package/bizar-dash/src/web/v8/ui/controls/ButtonGroup.tsx +32 -0
  102. package/bizar-dash/src/web/v8/ui/controls/Checkbox.tsx +49 -0
  103. package/bizar-dash/src/web/v8/ui/controls/Field.tsx +78 -0
  104. package/bizar-dash/src/web/v8/ui/controls/Form.tsx +23 -0
  105. package/bizar-dash/src/web/v8/ui/controls/IconButton.tsx +112 -0
  106. package/bizar-dash/src/web/v8/ui/controls/Input.tsx +94 -0
  107. package/bizar-dash/src/web/v8/ui/controls/RadioGroup.tsx +74 -0
  108. package/bizar-dash/src/web/v8/ui/controls/Select.tsx +171 -0
  109. package/bizar-dash/src/web/v8/ui/controls/Slider.tsx +68 -0
  110. package/bizar-dash/src/web/v8/ui/controls/Switch.tsx +56 -0
  111. package/bizar-dash/src/web/v8/ui/controls/Textarea.tsx +64 -0
  112. package/bizar-dash/src/web/v8/ui/controls/Toggle.tsx +36 -0
  113. package/bizar-dash/src/web/v8/ui/controls/ToggleGroup.tsx +85 -0
  114. package/bizar-dash/src/web/v8/ui/data/Accordion.tsx +134 -0
  115. package/bizar-dash/src/web/v8/ui/data/Avatar.tsx +175 -0
  116. package/bizar-dash/src/web/v8/ui/data/Badge.tsx +93 -0
  117. package/bizar-dash/src/web/v8/ui/data/BarList.tsx +101 -0
  118. package/bizar-dash/src/web/v8/ui/data/Card.tsx +140 -0
  119. package/bizar-dash/src/web/v8/ui/data/Chip.tsx +96 -0
  120. package/bizar-dash/src/web/v8/ui/data/Kbd.tsx +42 -0
  121. package/bizar-dash/src/web/v8/ui/data/ProgressBar.tsx +93 -0
  122. package/bizar-dash/src/web/v8/ui/data/Sparkline.tsx +98 -0
  123. package/bizar-dash/src/web/v8/ui/data/StatTile.tsx +150 -0
  124. package/bizar-dash/src/web/v8/ui/data/Table.tsx +170 -0
  125. package/bizar-dash/src/web/v8/ui/data/Timeline.tsx +130 -0
  126. package/bizar-dash/src/web/v8/ui/data/ViewHeader.tsx +122 -0
  127. package/bizar-dash/src/web/v8/ui/feedback/Alert.tsx +95 -0
  128. package/bizar-dash/src/web/v8/ui/feedback/Banner.tsx +39 -0
  129. package/bizar-dash/src/web/v8/ui/feedback/ContextMenu.tsx +143 -0
  130. package/bizar-dash/src/web/v8/ui/feedback/Dialog.tsx +149 -0
  131. package/bizar-dash/src/web/v8/ui/feedback/Drawer.tsx +8 -0
  132. package/bizar-dash/src/web/v8/ui/feedback/DropdownMenu.tsx +231 -0
  133. package/bizar-dash/src/web/v8/ui/feedback/EmptyState.tsx +48 -0
  134. package/bizar-dash/src/web/v8/ui/feedback/Popover.tsx +56 -0
  135. package/bizar-dash/src/web/v8/ui/feedback/Sheet.tsx +103 -0
  136. package/bizar-dash/src/web/v8/ui/feedback/Skeleton.tsx +67 -0
  137. package/bizar-dash/src/web/v8/ui/feedback/Spinner.tsx +30 -0
  138. package/bizar-dash/src/web/v8/ui/feedback/Toast.tsx +66 -0
  139. package/bizar-dash/src/web/v8/ui/feedback/Tooltip.tsx +89 -0
  140. package/bizar-dash/src/web/v8/ui/goals/GoalCard.tsx +176 -0
  141. package/bizar-dash/src/web/v8/ui/goals/KeyResult.tsx +115 -0
  142. package/bizar-dash/src/web/v8/ui/index.ts +322 -0
  143. package/bizar-dash/src/web/v8/ui/kanban/KanbanBoard.tsx +80 -0
  144. package/bizar-dash/src/web/v8/ui/kanban/KanbanCard.tsx +247 -0
  145. package/bizar-dash/src/web/v8/ui/kanban/KanbanColumn.tsx +181 -0
  146. package/bizar-dash/src/web/v8/ui/kanban/KanbanContextMenu.tsx +122 -0
  147. package/bizar-dash/src/web/v8/ui/kanban/KanbanQuickAdd.tsx +141 -0
  148. package/bizar-dash/src/web/v8/ui/libraries/LibraryGrid.tsx +30 -0
  149. package/bizar-dash/src/web/v8/ui/libraries/LibraryItem.tsx +161 -0
  150. package/bizar-dash/src/web/v8/ui/memory/MemoryVault.tsx +144 -0
  151. package/bizar-dash/src/web/v8/ui/navigation/CommandPalette.tsx +224 -0
  152. package/bizar-dash/src/web/v8/ui/navigation/NavLink.tsx +81 -0
  153. package/bizar-dash/src/web/v8/ui/navigation/Pagination.tsx +164 -0
  154. package/bizar-dash/src/web/v8/ui/navigation/Tabs.tsx +128 -0
  155. package/bizar-dash/src/web/v8/ui/navigation/useCommandPaletteHotkey.test.ts +79 -0
  156. package/bizar-dash/src/web/v8/ui/primitives/Box.tsx +144 -0
  157. package/bizar-dash/src/web/v8/ui/primitives/Center.tsx +40 -0
  158. package/bizar-dash/src/web/v8/ui/primitives/Cluster.tsx +67 -0
  159. package/bizar-dash/src/web/v8/ui/primitives/Grid.tsx +104 -0
  160. package/bizar-dash/src/web/v8/ui/primitives/Inline.tsx +77 -0
  161. package/bizar-dash/src/web/v8/ui/primitives/Portal.tsx +33 -0
  162. package/bizar-dash/src/web/v8/ui/primitives/ScrollArea.tsx +62 -0
  163. package/bizar-dash/src/web/v8/ui/primitives/Separator.tsx +42 -0
  164. package/bizar-dash/src/web/v8/ui/primitives/Stack.tsx +73 -0
  165. package/bizar-dash/src/web/v8/ui/primitives/VisuallyHidden.tsx +49 -0
  166. package/bizar-dash/src/web/v8/ui/settings/SettingsNav.tsx +91 -0
  167. package/bizar-dash/src/web/v8/ui/settings/SettingsRow.tsx +88 -0
  168. package/bizar-dash/src/web/v8/ui/settings/SettingsSection.tsx +109 -0
  169. package/bizar-dash/src/web/v8/ui/styles/globals.css +220 -0
  170. package/bizar-dash/src/web/v8/ui/styles/reset.css +57 -0
  171. package/bizar-dash/src/web/v8/ui/styles/tokens.css +217 -0
  172. package/bizar-dash/src/web/v8/ui/theme/DensityProvider.test.tsx +74 -0
  173. package/bizar-dash/src/web/v8/ui/theme/DensityProvider.tsx +66 -0
  174. package/bizar-dash/src/web/v8/ui/theme/ThemeProvider.test.tsx +86 -0
  175. package/bizar-dash/src/web/v8/ui/theme/ThemeProvider.tsx +94 -0
  176. package/bizar-dash/src/web/v8/ui/theme/ThemeToggle.tsx +88 -0
  177. package/bizar-dash/src/web/v8/ui/theme/useDensity.ts +15 -0
  178. package/bizar-dash/src/web/v8/ui/theme/useTheme.ts +16 -0
  179. package/bizar-dash/src/web/v8/ui/utils/cx.ts +19 -0
  180. package/bizar-dash/src/web/v8/views/Activity/ActivityView.tsx +33 -0
  181. package/bizar-dash/src/web/v8/views/Agents/AgentsView.tsx +108 -0
  182. package/bizar-dash/src/web/v8/views/CommandPalette/AppCommandPalette.test.tsx +142 -0
  183. package/bizar-dash/src/web/v8/views/CommandPalette/AppCommandPalette.tsx +144 -0
  184. package/bizar-dash/src/web/v8/views/Goals/GoalsView.tsx +84 -0
  185. package/bizar-dash/src/web/v8/views/Libraries/LibrariesView.tsx +41 -0
  186. package/bizar-dash/src/web/v8/views/Memory/MemoryView.tsx +61 -0
  187. package/bizar-dash/src/web/v8/views/Overview/OverviewView.tsx +92 -0
  188. package/bizar-dash/src/web/v8/views/Router.tsx +96 -0
  189. package/bizar-dash/src/web/v8/views/Settings/SettingsView.tsx +305 -0
  190. package/bizar-dash/src/web/v8/views/Tasks/CommandPalettePlaceholder.tsx +106 -0
  191. package/bizar-dash/src/web/v8/views/Tasks/TasksKanbanPlaceholder.tsx +62 -0
  192. package/bizar-dash/src/web/v8/views/Tasks/TasksView.tsx +74 -0
  193. package/bizar-dash/src/web/v8/vite-env.d.ts +15 -0
  194. package/bizar-dash/src/web/{mobile.html → v8.html} +4 -7
  195. package/bizar-dash/tests/setup.ts +26 -0
  196. package/bizar-dash/vite.config.ts +26 -2
  197. package/bizar-dash/vitest.config.ts +5 -3
  198. package/package.json +36 -3
  199. package/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js +0 -114
  200. package/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js.map +0 -1
  201. package/bizar-dash/dist/assets/MobileChat-DLWdv6tQ.js +0 -1
  202. package/bizar-dash/dist/assets/MobileChat-DLWdv6tQ.js.map +0 -1
  203. package/bizar-dash/dist/assets/MobileSettings-Bxv62uPY.js +0 -1
  204. package/bizar-dash/dist/assets/MobileSettings-Bxv62uPY.js.map +0 -1
  205. package/bizar-dash/dist/assets/Toast-ATSAmbdi.js +0 -26
  206. package/bizar-dash/dist/assets/Toast-ATSAmbdi.js.map +0 -1
  207. package/bizar-dash/dist/assets/__vite-browser-external-BIHI7g3E.js +0 -1
  208. package/bizar-dash/dist/assets/__vite-browser-external-BIHI7g3E.js.map +0 -1
  209. package/bizar-dash/dist/assets/main-CJAtrosO.css +0 -1
  210. package/bizar-dash/dist/assets/main-DKKj9dsq.js +0 -430
  211. package/bizar-dash/dist/assets/main-DKKj9dsq.js.map +0 -1
  212. package/bizar-dash/dist/assets/mobile-C_naUN91.js +0 -1
  213. package/bizar-dash/dist/assets/mobile-C_naUN91.js.map +0 -1
  214. package/bizar-dash/dist/assets/mobile-layout-BWLtwtfQ.css +0 -1
  215. package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js +0 -211
  216. package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js.map +0 -1
  217. package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js +0 -65
  218. package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js.map +0 -1
  219. package/bizar-dash/dist/index.html +0 -43
  220. package/bizar-dash/src/web/App.tsx +0 -915
  221. package/bizar-dash/src/web/MobileApp.tsx +0 -414
  222. package/bizar-dash/src/web/components/ArtifactCreateDialog.tsx +0 -95
  223. package/bizar-dash/src/web/components/ArtifactListDialog.tsx +0 -55
  224. package/bizar-dash/src/web/components/ArtifactViewer.tsx +0 -144
  225. package/bizar-dash/src/web/components/AuditDialog.tsx +0 -79
  226. package/bizar-dash/src/web/components/AutosaveField.tsx +0 -50
  227. package/bizar-dash/src/web/components/BackupRestore.tsx +0 -330
  228. package/bizar-dash/src/web/components/BgStatusBadge.tsx +0 -32
  229. package/bizar-dash/src/web/components/Button.tsx +0 -56
  230. package/bizar-dash/src/web/components/CanvasContextMenu.tsx +0 -68
  231. package/bizar-dash/src/web/components/Card.tsx +0 -40
  232. package/bizar-dash/src/web/components/CollapsibleSection.tsx +0 -72
  233. package/bizar-dash/src/web/components/CommandDialog.tsx +0 -66
  234. package/bizar-dash/src/web/components/DoctorPanel.tsx +0 -160
  235. package/bizar-dash/src/web/components/EmptyState.tsx +0 -30
  236. package/bizar-dash/src/web/components/EnvVarManager.tsx +0 -430
  237. package/bizar-dash/src/web/components/EvalDiff.tsx +0 -157
  238. package/bizar-dash/src/web/components/EvalExportButton.tsx +0 -27
  239. package/bizar-dash/src/web/components/EvalRunCard.tsx +0 -78
  240. package/bizar-dash/src/web/components/FileBrowser.tsx +0 -633
  241. package/bizar-dash/src/web/components/HeadroomSettings.tsx +0 -418
  242. package/bizar-dash/src/web/components/HeadroomStatus.tsx +0 -158
  243. package/bizar-dash/src/web/components/HelpDialog.tsx +0 -55
  244. package/bizar-dash/src/web/components/InviteDialog.tsx +0 -205
  245. package/bizar-dash/src/web/components/KillConfirmDialog.tsx +0 -88
  246. package/bizar-dash/src/web/components/MobileBottomNav.tsx +0 -38
  247. package/bizar-dash/src/web/components/MobileDrawer.tsx +0 -68
  248. package/bizar-dash/src/web/components/MobileHeader.tsx +0 -50
  249. package/bizar-dash/src/web/components/MobileLayout.tsx +0 -63
  250. package/bizar-dash/src/web/components/Modal.tsx +0 -215
  251. package/bizar-dash/src/web/components/Notifications.tsx +0 -242
  252. package/bizar-dash/src/web/components/ScheduleTemplateCard.tsx +0 -72
  253. package/bizar-dash/src/web/components/ScreenshotCapture.tsx +0 -138
  254. package/bizar-dash/src/web/components/ScreenshotOCR.tsx +0 -42
  255. package/bizar-dash/src/web/components/SearchModal.tsx +0 -227
  256. package/bizar-dash/src/web/components/SettingsNav.tsx +0 -117
  257. package/bizar-dash/src/web/components/SettingsSearch.tsx +0 -328
  258. package/bizar-dash/src/web/components/Sidebar.tsx +0 -89
  259. package/bizar-dash/src/web/components/Spinner.tsx +0 -19
  260. package/bizar-dash/src/web/components/StatusBadge.tsx +0 -56
  261. package/bizar-dash/src/web/components/Tag.tsx +0 -41
  262. package/bizar-dash/src/web/components/TailscaleSettings.tsx +0 -161
  263. package/bizar-dash/src/web/components/TaskCard.tsx +0 -69
  264. package/bizar-dash/src/web/components/TaskCreateSheet.tsx +0 -76
  265. package/bizar-dash/src/web/components/Toast.tsx +0 -150
  266. package/bizar-dash/src/web/components/Toggle.tsx +0 -31
  267. package/bizar-dash/src/web/components/Topbar.tsx +0 -455
  268. package/bizar-dash/src/web/components/UsageChart.tsx +0 -250
  269. package/bizar-dash/src/web/components/UsageTable.tsx +0 -90
  270. package/bizar-dash/src/web/components/VirtualList.tsx +0 -53
  271. package/bizar-dash/src/web/components/VisualPlanDialog.tsx +0 -58
  272. package/bizar-dash/src/web/components/VoiceNotesPanel.tsx +0 -211
  273. package/bizar-dash/src/web/components/VoiceRecorder.tsx +0 -105
  274. package/bizar-dash/src/web/components/WorkspaceSelector.tsx +0 -158
  275. package/bizar-dash/src/web/components/agents/CommunicationLog.tsx +0 -126
  276. package/bizar-dash/src/web/components/agents/DependencyGraph.tsx +0 -163
  277. package/bizar-dash/src/web/components/agents/QualityGates.tsx +0 -123
  278. package/bizar-dash/src/web/components/agents/RealTimeEventLog.tsx +0 -127
  279. package/bizar-dash/src/web/components/agents/RoutingDecisions.test.tsx +0 -148
  280. package/bizar-dash/src/web/components/agents/RoutingDecisions.tsx +0 -160
  281. package/bizar-dash/src/web/components/background/AttachButton.tsx +0 -96
  282. package/bizar-dash/src/web/components/background/TmuxAttachCard.tsx +0 -122
  283. package/bizar-dash/src/web/components/chat/AgentChip.tsx +0 -68
  284. package/bizar-dash/src/web/components/chat/AgentNode.tsx +0 -127
  285. package/bizar-dash/src/web/components/chat/AgentTree.tsx +0 -80
  286. package/bizar-dash/src/web/components/chat/ChatBubble.tsx +0 -60
  287. package/bizar-dash/src/web/components/chat/ChatComposer.tsx +0 -72
  288. package/bizar-dash/src/web/components/chat/ChatInfoPanel.tsx +0 -370
  289. package/bizar-dash/src/web/components/chat/ChatRail.tsx +0 -387
  290. package/bizar-dash/src/web/components/chat/ChatThread.tsx +0 -127
  291. package/bizar-dash/src/web/components/chat/ChatTopBar.tsx +0 -50
  292. package/bizar-dash/src/web/components/chat/Composer.tsx +0 -166
  293. package/bizar-dash/src/web/components/chat/ConfirmModal.tsx +0 -54
  294. package/bizar-dash/src/web/components/chat/EmptyState.tsx +0 -21
  295. package/bizar-dash/src/web/components/chat/FirstRunGreeting.tsx +0 -18
  296. package/bizar-dash/src/web/components/chat/FloatingComposer.tsx +0 -38
  297. package/bizar-dash/src/web/components/chat/InfoPanel.tsx +0 -184
  298. package/bizar-dash/src/web/components/chat/JumpToLatest.tsx +0 -58
  299. package/bizar-dash/src/web/components/chat/LoadingSkeleton.tsx +0 -19
  300. package/bizar-dash/src/web/components/chat/MessageBlock.tsx +0 -260
  301. package/bizar-dash/src/web/components/chat/MessageBubble.tsx +0 -60
  302. package/bizar-dash/src/web/components/chat/SessionList.tsx +0 -163
  303. package/bizar-dash/src/web/components/chat/SessionRowMenu.tsx +0 -206
  304. package/bizar-dash/src/web/components/chat/StreamingIndicator.tsx +0 -37
  305. package/bizar-dash/src/web/components/chat/SuggestionCards.tsx +0 -55
  306. package/bizar-dash/src/web/components/chat/WelcomeScreen.tsx +0 -36
  307. package/bizar-dash/src/web/components/chat/_legacy.ts +0 -30
  308. package/bizar-dash/src/web/components/chat/index.ts +0 -31
  309. package/bizar-dash/src/web/components/chat/useAutoGrowTextarea.ts +0 -18
  310. package/bizar-dash/src/web/components/chat/useChat.ts +0 -1190
  311. package/bizar-dash/src/web/components/chat/useSlashCommands.ts +0 -47
  312. package/bizar-dash/src/web/components/goals/GoalInput.tsx +0 -86
  313. package/bizar-dash/src/web/components/goals/PlanVisualization.tsx +0 -111
  314. package/bizar-dash/src/web/components/tasks/BacklogPanel.css +0 -109
  315. package/bizar-dash/src/web/components/tasks/BacklogPanel.tsx +0 -209
  316. package/bizar-dash/src/web/hooks/useAutosave.ts +0 -107
  317. package/bizar-dash/src/web/hooks/useI18n.ts +0 -13
  318. package/bizar-dash/src/web/index.html +0 -37
  319. package/bizar-dash/src/web/lib/api.ts +0 -237
  320. package/bizar-dash/src/web/lib/goapPlanner.ts +0 -614
  321. package/bizar-dash/src/web/lib/i18n.ts +0 -25
  322. package/bizar-dash/src/web/lib/logger.ts +0 -30
  323. package/bizar-dash/src/web/lib/markdown.tsx +0 -59
  324. package/bizar-dash/src/web/lib/search.ts +0 -115
  325. package/bizar-dash/src/web/lib/types.ts +0 -894
  326. package/bizar-dash/src/web/lib/utils.ts +0 -114
  327. package/bizar-dash/src/web/lib/ws.ts +0 -177
  328. package/bizar-dash/src/web/locales/en.json +0 -52
  329. package/bizar-dash/src/web/main.tsx +0 -43
  330. package/bizar-dash/src/web/mobile/MobileApp.tsx +0 -309
  331. package/bizar-dash/src/web/mobile/MobileBottomNav.tsx +0 -38
  332. package/bizar-dash/src/web/mobile/MobileChat.tsx +0 -138
  333. package/bizar-dash/src/web/mobile/MobileDoctor.tsx +0 -80
  334. package/bizar-dash/src/web/mobile/MobileEval.tsx +0 -167
  335. package/bizar-dash/src/web/mobile/MobileMemory.tsx +0 -108
  336. package/bizar-dash/src/web/mobile/MobileOverview.tsx +0 -213
  337. package/bizar-dash/src/web/mobile/MobileSettings.tsx +0 -251
  338. package/bizar-dash/src/web/mobile/MobileTasks.tsx +0 -94
  339. package/bizar-dash/src/web/mobile/MobileTopbar.tsx +0 -115
  340. package/bizar-dash/src/web/mobile/components/MobileBottomSheet.tsx +0 -182
  341. package/bizar-dash/src/web/mobile/components/MobileListItem.tsx +0 -64
  342. package/bizar-dash/src/web/mobile/components/MobileModal.tsx +0 -123
  343. package/bizar-dash/src/web/mobile/views/MobileActivity.tsx +0 -273
  344. package/bizar-dash/src/web/mobile/views/MobileAgents.tsx +0 -374
  345. package/bizar-dash/src/web/mobile/views/MobileArtifactCanvas.tsx +0 -439
  346. package/bizar-dash/src/web/mobile/views/MobileArtifacts.tsx +0 -143
  347. package/bizar-dash/src/web/mobile/views/MobileChat.tsx +0 -257
  348. package/bizar-dash/src/web/mobile/views/MobileConfig.tsx +0 -175
  349. package/bizar-dash/src/web/mobile/views/MobileHistory.tsx +0 -191
  350. package/bizar-dash/src/web/mobile/views/MobileMods.tsx +0 -149
  351. package/bizar-dash/src/web/mobile/views/MobileMore.tsx +0 -121
  352. package/bizar-dash/src/web/mobile/views/MobileNotifications.tsx +0 -137
  353. package/bizar-dash/src/web/mobile/views/MobilePlans.tsx +0 -26
  354. package/bizar-dash/src/web/mobile/views/MobileSchedules.tsx +0 -685
  355. package/bizar-dash/src/web/mobile/views/MobileSearchModal.tsx +0 -172
  356. package/bizar-dash/src/web/mobile/views/MobileSettings.tsx +0 -363
  357. package/bizar-dash/src/web/mobile/views/MobileSkills.tsx +0 -153
  358. package/bizar-dash/src/web/mobile/views/MobileTasks.tsx +0 -564
  359. package/bizar-dash/src/web/mobile/views/QrCodePanel.tsx +0 -69
  360. package/bizar-dash/src/web/mobile.tsx +0 -14
  361. package/bizar-dash/src/web/styles/agents-redesign.css +0 -311
  362. package/bizar-dash/src/web/styles/chat.css +0 -1740
  363. package/bizar-dash/src/web/styles/glyphs.css +0 -960
  364. package/bizar-dash/src/web/styles/main.css +0 -10389
  365. package/bizar-dash/src/web/styles/memory.css +0 -1177
  366. package/bizar-dash/src/web/styles/minimax-usage.css +0 -842
  367. package/bizar-dash/src/web/styles/mobile-chat.css +0 -5
  368. package/bizar-dash/src/web/styles/mobile-layout.css +0 -233
  369. package/bizar-dash/src/web/styles/mobile.css +0 -2181
  370. package/bizar-dash/src/web/styles/settings.css +0 -775
  371. package/bizar-dash/src/web/styles/skills.css +0 -302
  372. package/bizar-dash/src/web/styles/tasks-redesign.css +0 -253
  373. package/bizar-dash/src/web/styles/tasks.css +0 -605
  374. package/bizar-dash/src/web/ui/controls/Button.tsx +0 -77
  375. package/bizar-dash/src/web/ui/controls/Checkbox.tsx +0 -95
  376. package/bizar-dash/src/web/ui/controls/IconButton.tsx +0 -66
  377. package/bizar-dash/src/web/ui/controls/Kbd.tsx +0 -24
  378. package/bizar-dash/src/web/ui/controls/NumberInput.tsx +0 -77
  379. package/bizar-dash/src/web/ui/controls/RadioGroup.tsx +0 -109
  380. package/bizar-dash/src/web/ui/controls/SearchInput.tsx +0 -91
  381. package/bizar-dash/src/web/ui/controls/Select.tsx +0 -92
  382. package/bizar-dash/src/web/ui/controls/Slider.tsx +0 -70
  383. package/bizar-dash/src/web/ui/controls/TextInput.tsx +0 -67
  384. package/bizar-dash/src/web/ui/controls/Textarea.tsx +0 -56
  385. package/bizar-dash/src/web/ui/controls/Toggle.tsx +0 -79
  386. package/bizar-dash/src/web/ui/controls/controls.css +0 -476
  387. package/bizar-dash/src/web/ui/controls/index.ts +0 -35
  388. package/bizar-dash/src/web/ui/data/BarChart.tsx +0 -60
  389. package/bizar-dash/src/web/ui/data/DataTable.tsx +0 -216
  390. package/bizar-dash/src/web/ui/data/EmptyState.tsx +0 -60
  391. package/bizar-dash/src/web/ui/data/ErrorState.tsx +0 -56
  392. package/bizar-dash/src/web/ui/data/KeyValueList.tsx +0 -106
  393. package/bizar-dash/src/web/ui/data/LoadingState.tsx +0 -65
  394. package/bizar-dash/src/web/ui/data/Sparkline.tsx +0 -87
  395. package/bizar-dash/src/web/ui/data/StatTile.tsx +0 -87
  396. package/bizar-dash/src/web/ui/data/data.css +0 -540
  397. package/bizar-dash/src/web/ui/data/index.ts +0 -31
  398. package/bizar-dash/src/web/ui/feedback/Badge.tsx +0 -49
  399. package/bizar-dash/src/web/ui/feedback/Dialog.tsx +0 -209
  400. package/bizar-dash/src/web/ui/feedback/ProgressBar.tsx +0 -69
  401. package/bizar-dash/src/web/ui/feedback/StatusDot.tsx +0 -50
  402. package/bizar-dash/src/web/ui/feedback/Toast.tsx +0 -200
  403. package/bizar-dash/src/web/ui/feedback/Tooltip.tsx +0 -126
  404. package/bizar-dash/src/web/ui/feedback/feedback.css +0 -314
  405. package/bizar-dash/src/web/ui/feedback/index.ts +0 -43
  406. package/bizar-dash/src/web/ui/index.ts +0 -57
  407. package/bizar-dash/src/web/ui/layout/AppShell.tsx +0 -51
  408. package/bizar-dash/src/web/ui/layout/Breadcrumbs.tsx +0 -97
  409. package/bizar-dash/src/web/ui/layout/Panel.tsx +0 -73
  410. package/bizar-dash/src/web/ui/layout/PanelHeader.tsx +0 -39
  411. package/bizar-dash/src/web/ui/layout/Sidebar.tsx +0 -131
  412. package/bizar-dash/src/web/ui/layout/Tabs.tsx +0 -133
  413. package/bizar-dash/src/web/ui/layout/Topbar.tsx +0 -42
  414. package/bizar-dash/src/web/ui/layout/ViewHeader.tsx +0 -48
  415. package/bizar-dash/src/web/ui/layout/index.ts +0 -34
  416. package/bizar-dash/src/web/ui/layout/layout.css +0 -464
  417. package/bizar-dash/src/web/ui/navigation/CommandPalette.tsx +0 -199
  418. package/bizar-dash/src/web/ui/navigation/NavGroup.tsx +0 -95
  419. package/bizar-dash/src/web/ui/navigation/NavLink.tsx +0 -93
  420. package/bizar-dash/src/web/ui/navigation/index.ts +0 -17
  421. package/bizar-dash/src/web/ui/navigation/navigation.css +0 -343
  422. package/bizar-dash/src/web/ui/primitives/Box.tsx +0 -91
  423. package/bizar-dash/src/web/ui/primitives/Grid.tsx +0 -49
  424. package/bizar-dash/src/web/ui/primitives/Inline.tsx +0 -55
  425. package/bizar-dash/src/web/ui/primitives/Separator.tsx +0 -46
  426. package/bizar-dash/src/web/ui/primitives/Stack.tsx +0 -54
  427. package/bizar-dash/src/web/ui/primitives/VisuallyHidden.tsx +0 -26
  428. package/bizar-dash/src/web/ui/primitives/index.ts +0 -23
  429. package/bizar-dash/src/web/ui/primitives/primitives.css +0 -183
  430. package/bizar-dash/src/web/ui/styles/globals.css +0 -86
  431. package/bizar-dash/src/web/ui/styles/reset.css +0 -125
  432. package/bizar-dash/src/web/ui/styles/tokens.css +0 -208
  433. package/bizar-dash/src/web/ui/theme/ThemeProvider.tsx +0 -142
  434. package/bizar-dash/src/web/ui/theme/tokens.ts +0 -131
  435. package/bizar-dash/src/web/ui/theme/useTheme.ts +0 -22
  436. package/bizar-dash/src/web/ui/utils/cx.ts +0 -42
  437. package/bizar-dash/src/web/views/Activity.tsx +0 -1221
  438. package/bizar-dash/src/web/views/Agents.tsx +0 -964
  439. package/bizar-dash/src/web/views/Artifacts.tsx +0 -1494
  440. package/bizar-dash/src/web/views/BackgroundAgents.tsx +0 -822
  441. package/bizar-dash/src/web/views/Chat.tsx +0 -532
  442. package/bizar-dash/src/web/views/Config.tsx +0 -3
  443. package/bizar-dash/src/web/views/Doctor.tsx +0 -317
  444. package/bizar-dash/src/web/views/Eval.tsx +0 -372
  445. package/bizar-dash/src/web/views/EvalReport.tsx +0 -353
  446. package/bizar-dash/src/web/views/GoalPlanner.tsx +0 -158
  447. package/bizar-dash/src/web/views/Harness.tsx +0 -306
  448. package/bizar-dash/src/web/views/History.tsx +0 -353
  449. package/bizar-dash/src/web/views/Memory.tsx +0 -193
  450. package/bizar-dash/src/web/views/MiniMaxUsage.tsx +0 -942
  451. package/bizar-dash/src/web/views/ModView.tsx +0 -207
  452. package/bizar-dash/src/web/views/Mods.tsx +0 -706
  453. package/bizar-dash/src/web/views/Overview.tsx +0 -1343
  454. package/bizar-dash/src/web/views/Providers.tsx +0 -302
  455. package/bizar-dash/src/web/views/Schedules.tsx +0 -902
  456. package/bizar-dash/src/web/views/Settings.tsx +0 -308
  457. package/bizar-dash/src/web/views/Skills.tsx +0 -383
  458. package/bizar-dash/src/web/views/SpawnAgentModal.tsx +0 -221
  459. package/bizar-dash/src/web/views/Tasks.tsx +0 -789
  460. package/bizar-dash/src/web/views/Workspace.tsx +0 -294
  461. package/bizar-dash/src/web/views/glyphs/GlyphRenderer.tsx +0 -844
  462. package/bizar-dash/src/web/views/glyphs/components.tsx +0 -1098
  463. package/bizar-dash/src/web/views/memory/ConfigPanel.tsx +0 -426
  464. package/bizar-dash/src/web/views/memory/FromScreenshotPanel.tsx +0 -23
  465. package/bizar-dash/src/web/views/memory/GitSyncPanel.tsx +0 -220
  466. package/bizar-dash/src/web/views/memory/LightragPanel.tsx +0 -310
  467. package/bizar-dash/src/web/views/memory/MemoryGraphLegend.tsx +0 -29
  468. package/bizar-dash/src/web/views/memory/MemoryGraphPanel.tsx +0 -192
  469. package/bizar-dash/src/web/views/memory/MemoryGraphView.tsx +0 -336
  470. package/bizar-dash/src/web/views/memory/MemoryOverview.tsx +0 -367
  471. package/bizar-dash/src/web/views/memory/MemoryStatusCard.tsx +0 -160
  472. package/bizar-dash/src/web/views/memory/ObsidianPanel.tsx +0 -650
  473. package/bizar-dash/src/web/views/memory/SemanticSearchPanel.tsx +0 -197
  474. package/bizar-dash/src/web/views/memory/VaultFromClipboardPanel.tsx +0 -101
  475. package/bizar-dash/src/web/views/settings/ActivitySection.tsx +0 -205
  476. package/bizar-dash/src/web/views/settings/AgentSection.tsx +0 -305
  477. package/bizar-dash/src/web/views/settings/AuthSection.tsx +0 -159
  478. package/bizar-dash/src/web/views/settings/EnvVarsSection.tsx +0 -15
  479. package/bizar-dash/src/web/views/settings/GeneralSection.tsx +0 -128
  480. package/bizar-dash/src/web/views/settings/HeadroomSection.tsx +0 -39
  481. package/bizar-dash/src/web/views/settings/MemorySection.tsx +0 -154
  482. package/bizar-dash/src/web/views/settings/NetworkSection.tsx +0 -87
  483. package/bizar-dash/src/web/views/settings/NotificationsSection.tsx +0 -34
  484. package/bizar-dash/src/web/views/settings/SystemLlmSection.tsx +0 -81
  485. package/bizar-dash/src/web/views/settings/ThemeSection.tsx +0 -168
  486. package/bizar-dash/src/web/views/settings/UpdatesSection.tsx +0 -256
  487. package/bizar-dash/src/web/views/settings/WorkspacesSection.tsx +0 -189
  488. package/packages/sdk/.harness/agents.json +0 -17
  489. package/packages/sdk/.harness/topology.json +0 -4
@@ -1,418 +0,0 @@
1
- // src/web/components/HeadroomSettings.tsx
2
- //
3
- // v1.0.0 — Headroom settings card for the Settings view.
4
- // Displays live status and provides controls for install, wrap, proxy, and configuration.
5
- import React, { useEffect, useState, useCallback } from 'react';
6
- import {
7
- Activity,
8
- CheckCircle,
9
- XCircle,
10
- Download,
11
- Play,
12
- Square,
13
- RefreshCw,
14
- ExternalLink,
15
- Zap,
16
- } from 'lucide-react';
17
- import { Card, CardTitle, CardMeta } from '../components/Card';
18
- import { Button } from '../components/Button';
19
- import { useToast } from '../components/Toast';
20
- import { api } from '../lib/api';
21
- import { type HeadroomSettings } from '../lib/types';
22
-
23
- type HeadroomStatus = {
24
- installed: boolean;
25
- version: string | null;
26
- proxyRunning: boolean;
27
- proxyPort: number | null;
28
- proxyPid: number | null;
29
- wrapped: boolean;
30
- healthy: 'ok' | 'warn' | 'fail';
31
- messages: string[];
32
- };
33
-
34
- type HeadroomStats = {
35
- tokensSaved?: number;
36
- compressionRatio?: number;
37
- cacheHits?: number;
38
- transforms?: number;
39
- error?: string;
40
- };
41
-
42
- const BACKEND_OPTIONS = [
43
- { value: 'anthropic', label: 'Anthropic' },
44
- { value: 'anyllm', label: 'AnyLLM' },
45
- { value: 'litellm-anthropic', label: 'LiteLLM (Anthropic)' },
46
- { value: 'litellm-openai', label: 'LiteLLM (OpenAI)' },
47
- ];
48
-
49
- type Props = {
50
- settings: HeadroomSettings;
51
- onPatch: (patch: Partial<HeadroomSettings>) => void;
52
- };
53
-
54
- export function HeadroomSettingsCard({ settings, onPatch }: Props) {
55
- const toast = useToast();
56
- const [status, setStatus] = useState<HeadroomStatus | null>(null);
57
- const [stats, setStats] = useState<HeadroomStats | null>(null);
58
- const [loadingStatus, setLoadingStatus] = useState(false);
59
- const [installing, setInstalling] = useState(false);
60
- const [wrapping, setWrapping] = useState(false);
61
- const [unwrapping, setUnwrapping] = useState(false);
62
- const [startingProxy, setStartingProxy] = useState(false);
63
- const [stoppingProxy, setStoppingProxy] = useState(false);
64
-
65
- const loadStatus = useCallback(async () => {
66
- setLoadingStatus(true);
67
- try {
68
- const [s, st] = await Promise.all([
69
- api.get<HeadroomStatus>('/headroom/status'),
70
- api.get<HeadroomStats>('/headroom/stats?hours=24').catch(() => ({ error: 'no stats' })),
71
- ]);
72
- setStatus(s);
73
- if (!st.error) setStats(st);
74
- } catch (err) {
75
- toast.error(`Failed to load Headroom status: ${(err as Error).message}`);
76
- } finally {
77
- setLoadingStatus(false);
78
- }
79
- }, [toast]);
80
-
81
- useEffect(() => {
82
- loadStatus();
83
- }, [loadStatus]);
84
-
85
- const handleInstall = async () => {
86
- setInstalling(true);
87
- try {
88
- const r = await api.post<{ ok: boolean; installed: boolean; method: string }>('/headroom/install', { force: true });
89
- if (r.installed) {
90
- toast.success(`Headroom installed via ${r.method}.`);
91
- await loadStatus();
92
- } else {
93
- toast.error('Headroom install failed. Try: pip install "headroom-ai[all]"');
94
- }
95
- } catch (err) {
96
- toast.error(`Install failed: ${(err as Error).message}`);
97
- } finally {
98
- setInstalling(false);
99
- }
100
- };
101
-
102
- const handleWrap = async () => {
103
- setWrapping(true);
104
- try {
105
- const r = await api.post<{ ok: boolean }>('/headroom/wrap', { port: settings.port });
106
- if (r.ok) {
107
- toast.success('cline wrapped with Headroom.');
108
- await loadStatus();
109
- } else {
110
- toast.error('Wrap failed.');
111
- }
112
- } catch (err) {
113
- toast.error(`Wrap failed: ${(err as Error).message}`);
114
- } finally {
115
- setWrapping(false);
116
- }
117
- };
118
-
119
- const handleUnwrap = async () => {
120
- setUnwrapping(true);
121
- try {
122
- const r = await api.post<{ ok: boolean }>('/headroom/unwrap');
123
- if (r.ok) {
124
- toast.success('cline unwrapped from Headroom.');
125
- await loadStatus();
126
- } else {
127
- toast.error('Unwrap failed.');
128
- }
129
- } catch (err) {
130
- toast.error(`Unwrap failed: ${(err as Error).message}`);
131
- } finally {
132
- setUnwrapping(false);
133
- }
134
- };
135
-
136
- const handleStartProxy = async () => {
137
- setStartingProxy(true);
138
- try {
139
- const r = await api.post<{ ok: boolean }>('/headroom/proxy/start', {
140
- port: settings.port,
141
- host: settings.host,
142
- });
143
- if (r.ok) {
144
- toast.success(`Headroom proxy started on ${settings.host}:${settings.port}.`);
145
- await loadStatus();
146
- } else {
147
- toast.error('Proxy start failed.');
148
- }
149
- } catch (err) {
150
- toast.error(`Proxy start failed: ${(err as Error).message}`);
151
- } finally {
152
- setStartingProxy(false);
153
- }
154
- };
155
-
156
- const handleStopProxy = async () => {
157
- setStoppingProxy(true);
158
- try {
159
- const r = await api.post<{ ok: boolean }>('/headroom/proxy/stop');
160
- if (r.ok) {
161
- toast.success('Headroom proxy stopped.');
162
- await loadStatus();
163
- } else {
164
- toast.error('Proxy stop failed.');
165
- }
166
- } catch (err) {
167
- toast.error(`Proxy stop failed: ${(err as Error).message}`);
168
- } finally {
169
- setStoppingProxy(false);
170
- }
171
- };
172
-
173
- const handleOpenDashboard = async () => {
174
- try {
175
- const { spawn } = await import('node:child_process');
176
- spawn('headroom', ['dashboard'], { detached: true, stdio: 'ignore' });
177
- } catch {
178
- toast.error('Could not open Headroom dashboard. Run `headroom dashboard` manually.');
179
- }
180
- };
181
-
182
- const { installed, version, proxyRunning, proxyPort, wrapped } = status || {};
183
- const ratio = stats?.compressionRatio ?? 0;
184
- const saved = stats?.tokensSaved ?? 0;
185
-
186
- return (
187
- <div id="settings-headroom" data-section="headroom">
188
- <Card>
189
- <CardTitle>
190
- <Activity size={14} style={{ color: proxyRunning ? 'var(--success)' : 'var(--text-dim)' }} />
191
- Headroom
192
- {installed && version && (
193
- <span style={{ fontSize: 11, color: 'var(--text-dim)', marginLeft: 6 }}>
194
- v{version} {proxyRunning ? '✓' : '✗'}
195
- </span>
196
- )}
197
- {!installed && (
198
- <span style={{ fontSize: 11, color: 'var(--error)', marginLeft: 6 }}>not installed</span>
199
- )}
200
- </CardTitle>
201
- <CardMeta>
202
- Context compression for token efficiency. Compresses tool outputs, logs, and conversation
203
- history by 60–95% before they reach the model.
204
- </CardMeta>
205
-
206
- {/* Live status row */}
207
- <div style={{ display: 'flex', gap: 16, flexWrap: 'wrap', marginTop: 12, marginBottom: 12 }}>
208
- <div className="headroom-status-item">
209
- {installed ? (
210
- <CheckCircle size={12} style={{ color: 'var(--success)' }} />
211
- ) : (
212
- <XCircle size={12} style={{ color: 'var(--error)' }} />
213
- )}
214
- <span>{installed ? 'Installed' : 'Not installed'}</span>
215
- </div>
216
- <div className="headroom-status-item">
217
- {proxyRunning ? (
218
- <CheckCircle size={12} style={{ color: 'var(--success)' }} />
219
- ) : (
220
- <XCircle size={12} style={{ color: 'var(--text-dim)' }} />
221
- )}
222
- <span>Proxy {proxyRunning ? `${proxyPort} ✓` : 'stopped'}</span>
223
- </div>
224
- <div className="headroom-status-item">
225
- {wrapped ? (
226
- <CheckCircle size={12} style={{ color: 'var(--success)' }} />
227
- ) : (
228
- <XCircle size={12} style={{ color: 'var(--text-dim)' }} />
229
- )}
230
- <span>cline {wrapped ? 'wrapped' : 'not wrapped'}</span>
231
- </div>
232
- </div>
233
-
234
- {/* Stats */}
235
- {(saved > 0 || ratio > 0) && (
236
- <div style={{ display: 'flex', gap: 24, marginBottom: 12 }}>
237
- <div>
238
- <div style={{ fontSize: 20, fontWeight: 700, color: 'var(--success)' }}>
239
- {ratio > 0 ? `${Math.round(ratio * 100)}%` : '—'}
240
- </div>
241
- <div className="muted" style={{ fontSize: 11 }}>Compression ratio</div>
242
- </div>
243
- <div>
244
- <div style={{ fontSize: 20, fontWeight: 700, color: 'var(--accent)' }}>
245
- {saved > 0 ? saved.toLocaleString() : '—'}
246
- </div>
247
- <div className="muted" style={{ fontSize: 11 }}>Tokens saved (24h)</div>
248
- </div>
249
- </div>
250
- )}
251
-
252
- {/* Action buttons */}
253
- <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap', marginBottom: 8 }}>
254
- {!installed ? (
255
- <Button variant="primary" size="sm" onClick={handleInstall} disabled={installing}>
256
- {installing ? <span className="btn-spinner" /> : <Download size={13} />}
257
- {installing ? 'Installing…' : 'Install Headroom'}
258
- </Button>
259
- ) : (
260
- <>
261
- <Button
262
- variant="secondary"
263
- size="sm"
264
- onClick={handleWrap}
265
- disabled={wrapping || wrapped}
266
- title={wrapped ? 'cline is already wrapped' : 'Wrap cline to route through Headroom proxy'}
267
- >
268
- {wrapping ? <span className="btn-spinner" /> : <Zap size={13} />}
269
- {wrapping ? 'Wrapping…' : wrapped ? 'Wrapped ✓' : 'Wrap cline'}
270
- </Button>
271
- {wrapped && (
272
- <Button variant="ghost" size="sm" onClick={handleUnwrap} disabled={unwrapping}>
273
- {unwrapping ? <span className="btn-spinner" /> : <RefreshCw size={13} />}
274
- {unwrapping ? 'Unwrapping…' : 'Unwrap'}
275
- </Button>
276
- )}
277
- </>
278
- )}
279
-
280
- {installed && (
281
- <>
282
- {proxyRunning ? (
283
- <Button variant="secondary" size="sm" onClick={handleStopProxy} disabled={stoppingProxy}>
284
- {stoppingProxy ? <span className="btn-spinner" /> : <Square size={13} />}
285
- {stoppingProxy ? 'Stopping…' : 'Stop proxy'}
286
- </Button>
287
- ) : (
288
- <Button variant="secondary" size="sm" onClick={handleStartProxy} disabled={startingProxy}>
289
- {startingProxy ? <span className="btn-spinner" /> : <Play size={13} />}
290
- {startingProxy ? 'Starting…' : 'Start proxy'}
291
- </Button>
292
- )}
293
- <Button variant="ghost" size="sm" onClick={handleOpenDashboard}>
294
- <ExternalLink size={13} />
295
- Dashboard
296
- </Button>
297
- </>
298
- )}
299
-
300
- <Button variant="ghost" size="sm" onClick={loadStatus} disabled={loadingStatus}>
301
- <RefreshCw size={13} className={loadingStatus ? 'spin' : ''} />
302
- </Button>
303
- </div>
304
-
305
- {/* Settings */}
306
- <div style={{ marginTop: 16 }}>
307
- <label className="checkbox-row">
308
- <input
309
- type="checkbox"
310
- checked={settings.enabled}
311
- onChange={(e) => onPatch({ enabled: e.target.checked })}
312
- />
313
- <span>Enable Headroom</span>
314
- </label>
315
- <label className="checkbox-row">
316
- <input
317
- type="checkbox"
318
- checked={settings.autoInstall}
319
- onChange={(e) => onPatch({ autoInstall: e.target.checked })}
320
- />
321
- <span>Auto-install if missing on dashboard startup</span>
322
- </label>
323
- <label className="checkbox-row">
324
- <input
325
- type="checkbox"
326
- checked={settings.autoStart}
327
- onChange={(e) => onPatch({ autoStart: e.target.checked })}
328
- />
329
- <span>Auto-start proxy on dashboard startup</span>
330
- </label>
331
- <label className="checkbox-row">
332
- <input
333
- type="checkbox"
334
- checked={settings.autoWrap}
335
- onChange={(e) => onPatch({ autoWrap: e.target.checked })}
336
- />
337
- <span>Auto-wrap cline on dashboard startup</span>
338
- </label>
339
- <label className="checkbox-row">
340
- <input
341
- type="checkbox"
342
- checked={settings.routeAllProviders}
343
- onChange={(e) => onPatch({ routeAllProviders: e.target.checked })}
344
- />
345
- <span>Route all providers through Headroom proxy</span>
346
- </label>
347
-
348
- <div className="task-form-row" style={{ marginTop: 12 }}>
349
- <div className="task-form-field">
350
- <label className="field-label">Proxy port</label>
351
- <input
352
- type="number"
353
- className="input"
354
- value={settings.port}
355
- min={1}
356
- max={65535}
357
- onChange={(e) => onPatch({ port: Math.max(1, Math.min(65535, parseInt(e.target.value, 10) || 8787)) })}
358
- />
359
- </div>
360
- <div className="task-form-field">
361
- <label className="field-label">Proxy host</label>
362
- <input
363
- type="text"
364
- className="input"
365
- value={settings.host}
366
- onChange={(e) => onPatch({ host: e.target.value })}
367
- />
368
- </div>
369
- </div>
370
-
371
- <div className="task-form-row">
372
- <div className="task-form-field">
373
- <label className="field-label">Backend</label>
374
- <select
375
- className="select"
376
- value={settings.backend}
377
- onChange={(e) => onPatch({ backend: e.target.value })}
378
- >
379
- {BACKEND_OPTIONS.map((o) => (
380
- <option key={o.value} value={o.value}>{o.label}</option>
381
- ))}
382
- </select>
383
- </div>
384
- <div className="task-form-field">
385
- <label className="field-label">Monthly budget (USD)</label>
386
- <input
387
- type="number"
388
- className="input"
389
- value={settings.budget}
390
- min={0}
391
- step={1}
392
- onChange={(e) => onPatch({ budget: Math.max(0, parseFloat(e.target.value) || 0) })}
393
- />
394
- <span className="field-help">0 = unlimited</span>
395
- </div>
396
- </div>
397
-
398
- <label className="checkbox-row">
399
- <input
400
- type="checkbox"
401
- checked={settings.outputShaper}
402
- onChange={(e) => onPatch({ outputShaper: e.target.checked })}
403
- />
404
- <span>Enable output shaper</span>
405
- </label>
406
- <label className="checkbox-row">
407
- <input
408
- type="checkbox"
409
- checked={settings.telemetry}
410
- onChange={(e) => onPatch({ telemetry: e.target.checked })}
411
- />
412
- <span>Enable telemetry</span>
413
- </label>
414
- </div>
415
- </Card>
416
- </div>
417
- );
418
- }
@@ -1,158 +0,0 @@
1
- // src/web/components/HeadroomStatus.tsx
2
- //
3
- // v1.0.0 — Small status widget showing Headroom proxy status and live stats.
4
- // Shown on the Overview tab or wherever fits in the dashboard layout.
5
- import React, { useEffect, useState } from 'react';
6
- import { Activity, CheckCircle, XCircle, ExternalLink } from 'lucide-react';
7
- import { Card, CardTitle } from '../components/Card';
8
- import { api } from '../lib/api';
9
- import { cn } from '../lib/utils';
10
-
11
- type HeadroomStatus = {
12
- installed: boolean;
13
- version: string | null;
14
- proxyRunning: boolean;
15
- proxyPort: number | null;
16
- proxyPid: number | null;
17
- wrapped: boolean;
18
- healthy: 'ok' | 'warn' | 'fail';
19
- messages: string[];
20
- };
21
-
22
- type HeadroomStats = {
23
- tokensSaved?: number;
24
- compressionRatio?: number;
25
- cacheHits?: number;
26
- transforms?: number;
27
- error?: string;
28
- };
29
-
30
- export function HeadroomStatus() {
31
- const [status, setStatus] = useState<HeadroomStatus | null>(null);
32
- const [stats, setStats] = useState<HeadroomStats | null>(null);
33
- const [loading, setLoading] = useState(true);
34
-
35
- useEffect(() => {
36
- let cancelled = false;
37
- (async () => {
38
- try {
39
- const [s, st] = await Promise.all([
40
- api.get<HeadroomStatus>('/headroom/status'),
41
- api.get<HeadroomStats>('/headroom/stats?hours=24').catch(() => ({ error: 'no stats' })),
42
- ]);
43
- if (!cancelled) {
44
- setStatus(s);
45
- setStats(st.error ? null : st);
46
- }
47
- } catch {
48
- if (!cancelled) setStatus(null);
49
- } finally {
50
- if (!cancelled) setLoading(false);
51
- }
52
- })();
53
- return () => { cancelled = true; };
54
- }, []);
55
-
56
- if (loading) {
57
- return (
58
- <Card>
59
- <div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
60
- <Activity size={14} className="spin" style={{ animation: 'spin 1s linear infinite' }} />
61
- <span className="muted">Loading Headroom status…</span>
62
- </div>
63
- </Card>
64
- );
65
- }
66
-
67
- if (!status) {
68
- return (
69
- <Card>
70
- <div style={{ color: 'var(--error, #f85149)', display: 'flex', alignItems: 'center', gap: 8 }}>
71
- <XCircle size={14} />
72
- <span>Headroom unavailable</span>
73
- </div>
74
- </Card>
75
- );
76
- }
77
-
78
- const { installed, version, proxyRunning, proxyPort, proxyPid, wrapped, healthy } = status;
79
- const isHealthy = healthy === 'ok';
80
- const ratio = stats?.compressionRatio ?? 0;
81
- const saved = stats?.tokensSaved ?? 0;
82
-
83
- return (
84
- <Card>
85
- <CardTitle>
86
- <Activity size={14} style={{ color: isHealthy ? 'var(--success, #3fb950)' : 'var(--warning, #d29922)' }} />
87
- Headroom
88
- {installed && version && (
89
- <span style={{ fontSize: 11, color: 'var(--text-dim)', marginLeft: 4 }}>v{version}</span>
90
- )}
91
- </CardTitle>
92
-
93
- {/* Status pills */}
94
- <div style={{ display: 'flex', gap: 8, flexWrap: 'wrap', marginTop: 8 }}>
95
- {installed ? (
96
- <span className="status-pill status-pill-ok">
97
- <CheckCircle size={10} /> Installed
98
- </span>
99
- ) : (
100
- <span className="status-pill status-pill-error">
101
- <XCircle size={10} /> Not installed
102
- </span>
103
- )}
104
- {proxyRunning ? (
105
- <span className="status-pill status-pill-ok">
106
- <CheckCircle size={10} /> Proxy {proxyPort ? `@ ${proxyPort}` : ''}
107
- {proxyPid ? ` (PID ${proxyPid})` : ''}
108
- </span>
109
- ) : (
110
- <span className="status-pill status-pill-warn">
111
- <XCircle size={10} /> Proxy stopped
112
- </span>
113
- )}
114
- {wrapped ? (
115
- <span className="status-pill status-pill-ok">
116
- <CheckCircle size={10} /> Wrapped
117
- </span>
118
- ) : (
119
- <span className="status-pill status-pill-warn">
120
- <XCircle size={10} /> Not wrapped
121
- </span>
122
- )}
123
- </div>
124
-
125
- {/* Stats row */}
126
- {(saved > 0 || ratio > 0) && (
127
- <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 12, marginTop: 12 }}>
128
- <div className="stat-block">
129
- <div className="stat-big">{ratio > 0 ? `${Math.round(ratio * 100)}%` : '—'}</div>
130
- <div className="stat-label">Compression ratio</div>
131
- </div>
132
- <div className="stat-block">
133
- <div className="stat-big">{saved > 0 ? saved.toLocaleString() : '—'}</div>
134
- <div className="stat-label">Tokens saved (24h)</div>
135
- </div>
136
- </div>
137
- )}
138
-
139
- {/* Actions */}
140
- <div style={{ marginTop: 10, display: 'flex', gap: 8 }}>
141
- <a
142
- href="#settings-headroom"
143
- style={{
144
- display: 'inline-flex',
145
- alignItems: 'center',
146
- gap: 4,
147
- fontSize: 12,
148
- color: 'var(--accent, #8b5cf6)',
149
- textDecoration: 'none',
150
- }}
151
- >
152
- <ExternalLink size={12} />
153
- Open settings
154
- </a>
155
- </div>
156
- </Card>
157
- );
158
- }
@@ -1,55 +0,0 @@
1
- // src/components/HelpDialog.tsx — Dialog for /help and /bizar commands.
2
-
3
- import { Button } from './Button';
4
-
5
- type HelpDialogProps = {
6
- data?: Record<string, unknown>;
7
- onClose: () => void;
8
- };
9
-
10
- type CmdEntry = { cmd: string; desc: string };
11
-
12
- export function HelpDialog({ data, onClose }: HelpDialogProps) {
13
- const commands = (data?.commands as CmdEntry[]) ?? [];
14
- const templates = (data?.templates as string[]) ?? [];
15
- const statuses = (data?.statuses as string[]) ?? [];
16
-
17
- return (
18
- <div>
19
- {commands.length > 0 ? (
20
- <table style={{ width: '100%', borderCollapse: 'collapse', marginBottom: 16, fontSize: 13 }}>
21
- <tbody>
22
- {commands.map((entry) => (
23
- <tr key={entry.cmd} style={{ borderBottom: '1px solid var(--color-border)' }}>
24
- <td style={{ padding: '5px 8px 5px 0', whiteSpace: 'nowrap' }}>
25
- <code style={{ fontSize: 12 }}>{entry.cmd}</code>
26
- </td>
27
- <td style={{ padding: '5px 0', color: 'var(--color-muted)' }}>{entry.desc}</td>
28
- </tr>
29
- ))}
30
- </tbody>
31
- </table>
32
- ) : (
33
- <p style={{ marginBottom: 16, color: 'var(--color-muted)' }}>No commands available.</p>
34
- )}
35
-
36
- {templates.length > 0 && (
37
- <div style={{ marginBottom: 12 }}>
38
- <p style={{ fontSize: 12, color: 'var(--color-muted)', marginBottom: 4 }}>Available templates:</p>
39
- <p style={{ fontSize: 13 }}>{templates.join(', ')}</p>
40
- </div>
41
- )}
42
-
43
- {statuses.length > 0 && (
44
- <div style={{ marginBottom: 12 }}>
45
- <p style={{ fontSize: 12, color: 'var(--color-muted)', marginBottom: 4 }}>Available statuses:</p>
46
- <p style={{ fontSize: 13 }}>{statuses.join(', ')}</p>
47
- </div>
48
- )}
49
-
50
- <div style={{ display: 'flex', justifyContent: 'flex-end' }}>
51
- <Button variant="ghost" onClick={onClose}>Close</Button>
52
- </div>
53
- </div>
54
- );
55
- }