@polderlabs/bizar 7.0.4 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/agent-browser.md +1 -1
- package/.claude/agents/baldr.md +1 -1
- package/.claude/agents/forseti.md +1 -1
- package/.claude/agents/frigg.md +1 -1
- package/.claude/agents/heimdall.md +1 -1
- package/.claude/agents/hermod.md +1 -1
- package/.claude/agents/mimir.md +1 -1
- package/.claude/agents/odin.md +1 -1
- package/.claude/agents/quick.md +1 -1
- package/.claude/agents/semble-search.md +1 -1
- package/.claude/agents/thor.md +1 -1
- package/.claude/agents/tyr.md +1 -1
- package/.claude/agents/vidarr.md +1 -1
- package/.claude/agents/vor.md +1 -1
- package/.claude/commands/goal.md +98 -0
- package/.claude/settings.local.json +7 -0
- package/bizar-dash/DESIGN.md +729 -969
- package/bizar-dash/GLYPH.md +418 -0
- package/bizar-dash/PLAN.md +1135 -0
- package/bizar-dash/dist/assets/ActivityFeed-CqF6iSDQ.js +6 -0
- package/bizar-dash/dist/assets/ActivityFeed-CqF6iSDQ.js.map +1 -0
- package/bizar-dash/dist/assets/ActivityView-qdhDjRtL.js +1 -0
- package/bizar-dash/dist/assets/ActivityView-qdhDjRtL.js.map +1 -0
- package/bizar-dash/dist/assets/AgentsView-BwXkOayl.js +28 -0
- package/bizar-dash/dist/assets/AgentsView-BwXkOayl.js.map +1 -0
- package/bizar-dash/dist/assets/Badge-BH4C3aUF.js +1 -0
- package/bizar-dash/dist/assets/Badge-BH4C3aUF.js.map +1 -0
- package/bizar-dash/dist/assets/Button-RmN1RKhE.js +6 -0
- package/bizar-dash/dist/assets/Button-RmN1RKhE.js.map +1 -0
- package/bizar-dash/dist/assets/Card-BzJeYR2D.js +1 -0
- package/bizar-dash/dist/assets/Card-BzJeYR2D.js.map +1 -0
- package/bizar-dash/dist/assets/Chip-CN2bvm7a.js +1 -0
- package/bizar-dash/dist/assets/Chip-CN2bvm7a.js.map +1 -0
- package/bizar-dash/dist/assets/EmptyState-DEiBv4-r.js +1 -0
- package/bizar-dash/dist/assets/EmptyState-DEiBv4-r.js.map +1 -0
- package/bizar-dash/dist/assets/GoalsView-CvsrzEez.js +6 -0
- package/bizar-dash/dist/assets/GoalsView-CvsrzEez.js.map +1 -0
- package/bizar-dash/dist/assets/KanbanCard-DZEaAiEr.js +21 -0
- package/bizar-dash/dist/assets/KanbanCard-DZEaAiEr.js.map +1 -0
- package/bizar-dash/dist/assets/LibrariesView-CPgKGPpM.js +67 -0
- package/bizar-dash/dist/assets/LibrariesView-CPgKGPpM.js.map +1 -0
- package/bizar-dash/dist/assets/MemoryView-Bbez5pMN.js +13 -0
- package/bizar-dash/dist/assets/MemoryView-Bbez5pMN.js.map +1 -0
- package/bizar-dash/dist/assets/OverviewView-BDegBWgg.js +1 -0
- package/bizar-dash/dist/assets/OverviewView-BDegBWgg.js.map +1 -0
- package/bizar-dash/dist/assets/Select-xwxbK8Ed.js +16 -0
- package/bizar-dash/dist/assets/Select-xwxbK8Ed.js.map +1 -0
- package/bizar-dash/dist/assets/SettingsRow-CppSgkT_.js +10 -0
- package/bizar-dash/dist/assets/SettingsRow-CppSgkT_.js.map +1 -0
- package/bizar-dash/dist/assets/SettingsView-DUc2meHV.js +43 -0
- package/bizar-dash/dist/assets/SettingsView-DUc2meHV.js.map +1 -0
- package/bizar-dash/dist/assets/Sheet-C_sIEw35.js +1 -0
- package/bizar-dash/dist/assets/Sheet-C_sIEw35.js.map +1 -0
- package/bizar-dash/dist/assets/Sparkline-D664vGWW.js +1 -0
- package/bizar-dash/dist/assets/Sparkline-D664vGWW.js.map +1 -0
- package/bizar-dash/dist/assets/StatTile-BRsUIA6P.js +16 -0
- package/bizar-dash/dist/assets/StatTile-BRsUIA6P.js.map +1 -0
- package/bizar-dash/dist/assets/TasksView-DVyX5-DY.js +1 -0
- package/bizar-dash/dist/assets/TasksView-DVyX5-DY.js.map +1 -0
- package/bizar-dash/dist/assets/Textarea-Dk97nmjO.js +1 -0
- package/bizar-dash/dist/assets/Textarea-Dk97nmjO.js.map +1 -0
- package/bizar-dash/dist/assets/ViewHeader-dPd4zAyj.js +6 -0
- package/bizar-dash/dist/assets/ViewHeader-dPd4zAyj.js.map +1 -0
- package/bizar-dash/dist/assets/brain-BajPVibR.js +6 -0
- package/bizar-dash/dist/assets/brain-BajPVibR.js.map +1 -0
- package/bizar-dash/dist/assets/calendar-CaP_Bbgc.js +6 -0
- package/bizar-dash/dist/assets/calendar-CaP_Bbgc.js.map +1 -0
- package/bizar-dash/dist/assets/cmdk-BLWIhKrV.js +80 -0
- package/bizar-dash/dist/assets/cmdk-BLWIhKrV.js.map +1 -0
- package/bizar-dash/dist/assets/dnd-kit-DU8GZk7s.js +5 -0
- package/bizar-dash/dist/assets/dnd-kit-DU8GZk7s.js.map +1 -0
- package/bizar-dash/dist/assets/git-pull-request-CFRRwdxp.js +11 -0
- package/bizar-dash/dist/assets/git-pull-request-CFRRwdxp.js.map +1 -0
- package/bizar-dash/dist/assets/index-AL3OLUfz.js +1 -0
- package/bizar-dash/dist/assets/index-AL3OLUfz.js.map +1 -0
- package/bizar-dash/dist/assets/main-CcQfRfIJ.css +1 -0
- package/bizar-dash/dist/assets/main-LxX9zTRk.js +109 -0
- package/bizar-dash/dist/assets/main-LxX9zTRk.js.map +1 -0
- package/bizar-dash/dist/assets/plus-CVH1JB04.js +6 -0
- package/bizar-dash/dist/assets/plus-CVH1JB04.js.map +1 -0
- package/bizar-dash/dist/assets/terminal-B2sSd5t7.js +11 -0
- package/bizar-dash/dist/assets/terminal-B2sSd5t7.js.map +1 -0
- package/bizar-dash/dist/assets/trash-2-JtYRQ79q.js +6 -0
- package/bizar-dash/dist/assets/trash-2-JtYRQ79q.js.map +1 -0
- package/bizar-dash/dist/assets/triangle-alert-Nzbrm0I2.js +6 -0
- package/bizar-dash/dist/assets/triangle-alert-Nzbrm0I2.js.map +1 -0
- package/bizar-dash/dist/assets/useFetch-CoVWwbml.js +1 -0
- package/bizar-dash/dist/assets/useFetch-CoVWwbml.js.map +1 -0
- package/bizar-dash/dist/assets/useWebSocket-CVIQB8yG.js +1 -0
- package/bizar-dash/dist/assets/useWebSocket-CVIQB8yG.js.map +1 -0
- package/bizar-dash/dist/assets/wrench-B7go551L.js +6 -0
- package/bizar-dash/dist/assets/wrench-B7go551L.js.map +1 -0
- package/bizar-dash/dist/{mobile.html → v8.html} +6 -9
- package/bizar-dash/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
- package/bizar-dash/src/server/api.mjs +10 -0
- package/bizar-dash/src/server/bg-poller.mjs +81 -1
- package/bizar-dash/src/server/bg-poller.test.mjs +28 -0
- package/bizar-dash/src/server/progress-parser.mjs +221 -0
- package/bizar-dash/src/server/progress-parser.test.mjs +105 -0
- package/bizar-dash/src/server/routes/agents-cc.mjs +381 -0
- package/bizar-dash/src/server/routes/agents-cc.test.mjs +35 -0
- package/bizar-dash/src/server/routes/goals.mjs +307 -0
- package/bizar-dash/src/server/routes/tasks.mjs +11 -0
- package/bizar-dash/src/server/server.mjs +1 -57
- package/bizar-dash/src/web/v8/App.tsx +188 -0
- package/bizar-dash/src/web/v8/__tests__/App.test.tsx +102 -0
- package/bizar-dash/src/web/v8/__tests__/AppShell.test.tsx +79 -0
- package/bizar-dash/src/web/v8/__tests__/PageSkeleton.test.tsx +12 -0
- package/bizar-dash/src/web/v8/__tests__/SettingsView.test.tsx +84 -0
- package/bizar-dash/src/web/v8/__tests__/Sidebar.test.tsx +95 -0
- package/bizar-dash/src/web/v8/__tests__/activity.test.tsx +63 -0
- package/bizar-dash/src/web/v8/__tests__/agents.test.tsx +90 -0
- package/bizar-dash/src/web/v8/__tests__/control-plane.test.tsx +104 -0
- package/bizar-dash/src/web/v8/__tests__/controls.test.tsx +135 -0
- package/bizar-dash/src/web/v8/__tests__/cx.test.ts +25 -0
- package/bizar-dash/src/web/v8/__tests__/data.test.tsx +293 -0
- package/bizar-dash/src/web/v8/__tests__/feedback.test.tsx +213 -0
- package/bizar-dash/src/web/v8/__tests__/goals.test.tsx +105 -0
- package/bizar-dash/src/web/v8/__tests__/kanban.test.tsx +176 -0
- package/bizar-dash/src/web/v8/__tests__/libraries.test.tsx +70 -0
- package/bizar-dash/src/web/v8/__tests__/memory.test.tsx +60 -0
- package/bizar-dash/src/web/v8/__tests__/navigation.test.tsx +137 -0
- package/bizar-dash/src/web/v8/__tests__/settings.test.tsx +104 -0
- package/bizar-dash/src/web/v8/__tests__/theme.test.tsx +98 -0
- package/bizar-dash/src/web/v8/__tests__/useFetch.test.ts +92 -0
- package/bizar-dash/src/web/v8/__tests__/useWebSocket.test.ts +87 -0
- package/bizar-dash/src/web/v8/__tests__/views.test.tsx +182 -0
- package/bizar-dash/src/web/v8/data/fetcher.ts +59 -0
- package/bizar-dash/src/web/v8/data/types.ts +154 -0
- package/bizar-dash/src/web/v8/data/useFetch.ts +62 -0
- package/bizar-dash/src/web/v8/data/useWebSocket.ts +153 -0
- package/bizar-dash/src/web/v8/main.tsx +28 -0
- package/bizar-dash/src/web/v8/shell/AppShell.tsx +90 -0
- package/bizar-dash/src/web/v8/shell/PageSkeleton.tsx +29 -0
- package/bizar-dash/src/web/v8/shell/Sidebar.tsx +361 -0
- package/bizar-dash/src/web/v8/shell/StatusBar.tsx +63 -0
- package/bizar-dash/src/web/v8/shell/Topbar.tsx +113 -0
- package/bizar-dash/src/web/v8/shell/index.ts +15 -0
- package/bizar-dash/src/web/v8/ui/activity/ActivityFeed.tsx +137 -0
- package/bizar-dash/src/web/v8/ui/agents/AgentActivity.tsx +101 -0
- package/bizar-dash/src/web/v8/ui/agents/AgentCard.tsx +158 -0
- package/bizar-dash/src/web/v8/ui/agents/AgentDetail.tsx +252 -0
- package/bizar-dash/src/web/v8/ui/agents/AgentStreamPanel.tsx +371 -0
- package/bizar-dash/src/web/v8/ui/controls/Button.tsx +141 -0
- package/bizar-dash/src/web/v8/ui/controls/ButtonGroup.tsx +32 -0
- package/bizar-dash/src/web/v8/ui/controls/Checkbox.tsx +49 -0
- package/bizar-dash/src/web/v8/ui/controls/Field.tsx +78 -0
- package/bizar-dash/src/web/v8/ui/controls/Form.tsx +23 -0
- package/bizar-dash/src/web/v8/ui/controls/IconButton.tsx +112 -0
- package/bizar-dash/src/web/v8/ui/controls/Input.tsx +94 -0
- package/bizar-dash/src/web/v8/ui/controls/RadioGroup.tsx +74 -0
- package/bizar-dash/src/web/v8/ui/controls/Select.tsx +171 -0
- package/bizar-dash/src/web/v8/ui/controls/Slider.tsx +68 -0
- package/bizar-dash/src/web/v8/ui/controls/Switch.tsx +56 -0
- package/bizar-dash/src/web/v8/ui/controls/Textarea.tsx +64 -0
- package/bizar-dash/src/web/v8/ui/controls/Toggle.tsx +36 -0
- package/bizar-dash/src/web/v8/ui/controls/ToggleGroup.tsx +85 -0
- package/bizar-dash/src/web/v8/ui/data/Accordion.tsx +134 -0
- package/bizar-dash/src/web/v8/ui/data/Avatar.tsx +175 -0
- package/bizar-dash/src/web/v8/ui/data/Badge.tsx +93 -0
- package/bizar-dash/src/web/v8/ui/data/BarList.tsx +101 -0
- package/bizar-dash/src/web/v8/ui/data/Card.tsx +140 -0
- package/bizar-dash/src/web/v8/ui/data/Chip.tsx +96 -0
- package/bizar-dash/src/web/v8/ui/data/Kbd.tsx +42 -0
- package/bizar-dash/src/web/v8/ui/data/ProgressBar.tsx +93 -0
- package/bizar-dash/src/web/v8/ui/data/Sparkline.tsx +98 -0
- package/bizar-dash/src/web/v8/ui/data/StatTile.tsx +150 -0
- package/bizar-dash/src/web/v8/ui/data/Table.tsx +170 -0
- package/bizar-dash/src/web/v8/ui/data/Timeline.tsx +130 -0
- package/bizar-dash/src/web/v8/ui/data/ViewHeader.tsx +122 -0
- package/bizar-dash/src/web/v8/ui/feedback/Alert.tsx +95 -0
- package/bizar-dash/src/web/v8/ui/feedback/Banner.tsx +39 -0
- package/bizar-dash/src/web/v8/ui/feedback/ContextMenu.tsx +143 -0
- package/bizar-dash/src/web/v8/ui/feedback/Dialog.tsx +149 -0
- package/bizar-dash/src/web/v8/ui/feedback/Drawer.tsx +8 -0
- package/bizar-dash/src/web/v8/ui/feedback/DropdownMenu.tsx +231 -0
- package/bizar-dash/src/web/v8/ui/feedback/EmptyState.tsx +48 -0
- package/bizar-dash/src/web/v8/ui/feedback/Popover.tsx +56 -0
- package/bizar-dash/src/web/v8/ui/feedback/Sheet.tsx +103 -0
- package/bizar-dash/src/web/v8/ui/feedback/Skeleton.tsx +67 -0
- package/bizar-dash/src/web/v8/ui/feedback/Spinner.tsx +30 -0
- package/bizar-dash/src/web/v8/ui/feedback/Toast.tsx +66 -0
- package/bizar-dash/src/web/v8/ui/feedback/Tooltip.tsx +89 -0
- package/bizar-dash/src/web/v8/ui/goals/GoalCard.tsx +176 -0
- package/bizar-dash/src/web/v8/ui/goals/GoalDetail.tsx +245 -0
- package/bizar-dash/src/web/v8/ui/goals/KeyResult.tsx +115 -0
- package/bizar-dash/src/web/v8/ui/index.ts +322 -0
- package/bizar-dash/src/web/v8/ui/kanban/KanbanBoard.tsx +83 -0
- package/bizar-dash/src/web/v8/ui/kanban/KanbanCard.tsx +247 -0
- package/bizar-dash/src/web/v8/ui/kanban/KanbanColumn.tsx +186 -0
- package/bizar-dash/src/web/v8/ui/kanban/KanbanContextMenu.tsx +122 -0
- package/bizar-dash/src/web/v8/ui/kanban/KanbanQuickAdd.tsx +141 -0
- package/bizar-dash/src/web/v8/ui/libraries/LibraryGrid.tsx +30 -0
- package/bizar-dash/src/web/v8/ui/libraries/LibraryItem.tsx +161 -0
- package/bizar-dash/src/web/v8/ui/memory/MemoryVault.tsx +144 -0
- package/bizar-dash/src/web/v8/ui/navigation/CommandPalette.tsx +224 -0
- package/bizar-dash/src/web/v8/ui/navigation/NavLink.tsx +81 -0
- package/bizar-dash/src/web/v8/ui/navigation/Pagination.tsx +164 -0
- package/bizar-dash/src/web/v8/ui/navigation/Tabs.tsx +128 -0
- package/bizar-dash/src/web/v8/ui/navigation/useCommandPaletteHotkey.test.ts +79 -0
- package/bizar-dash/src/web/v8/ui/primitives/Box.tsx +144 -0
- package/bizar-dash/src/web/v8/ui/primitives/Center.tsx +40 -0
- package/bizar-dash/src/web/v8/ui/primitives/Cluster.tsx +67 -0
- package/bizar-dash/src/web/v8/ui/primitives/Grid.tsx +104 -0
- package/bizar-dash/src/web/v8/ui/primitives/Inline.tsx +77 -0
- package/bizar-dash/src/web/v8/ui/primitives/Portal.tsx +33 -0
- package/bizar-dash/src/web/v8/ui/primitives/ScrollArea.tsx +62 -0
- package/bizar-dash/src/web/v8/ui/primitives/Separator.tsx +42 -0
- package/bizar-dash/src/web/v8/ui/primitives/Stack.tsx +73 -0
- package/bizar-dash/src/web/v8/ui/primitives/VisuallyHidden.tsx +49 -0
- package/bizar-dash/src/web/v8/ui/settings/SettingsNav.tsx +91 -0
- package/bizar-dash/src/web/v8/ui/settings/SettingsRow.tsx +88 -0
- package/bizar-dash/src/web/v8/ui/settings/SettingsSection.tsx +109 -0
- package/bizar-dash/src/web/v8/ui/styles/globals.css +225 -0
- package/bizar-dash/src/web/v8/ui/styles/reset.css +57 -0
- package/bizar-dash/src/web/v8/ui/styles/tokens.css +217 -0
- package/bizar-dash/src/web/v8/ui/theme/DensityProvider.test.tsx +74 -0
- package/bizar-dash/src/web/v8/ui/theme/DensityProvider.tsx +66 -0
- package/bizar-dash/src/web/v8/ui/theme/ThemeProvider.test.tsx +86 -0
- package/bizar-dash/src/web/v8/ui/theme/ThemeProvider.tsx +94 -0
- package/bizar-dash/src/web/v8/ui/theme/ThemeToggle.tsx +88 -0
- package/bizar-dash/src/web/v8/ui/theme/useDensity.ts +15 -0
- package/bizar-dash/src/web/v8/ui/theme/useTheme.ts +16 -0
- package/bizar-dash/src/web/v8/ui/utils/cx.ts +19 -0
- package/bizar-dash/src/web/v8/views/Activity/ActivityView.tsx +71 -0
- package/bizar-dash/src/web/v8/views/Agents/AgentsView.tsx +172 -0
- package/bizar-dash/src/web/v8/views/CommandPalette/AppCommandPalette.test.tsx +142 -0
- package/bizar-dash/src/web/v8/views/CommandPalette/AppCommandPalette.tsx +247 -0
- package/bizar-dash/src/web/v8/views/Goals/GoalsView.tsx +193 -0
- package/bizar-dash/src/web/v8/views/Libraries/LibrariesView.tsx +108 -0
- package/bizar-dash/src/web/v8/views/Memory/MemoryView.tsx +77 -0
- package/bizar-dash/src/web/v8/views/Overview/OverviewView.tsx +152 -0
- package/bizar-dash/src/web/v8/views/Router.tsx +72 -0
- package/bizar-dash/src/web/v8/views/Settings/SettingsView.tsx +730 -0
- package/bizar-dash/src/web/v8/views/Tasks/CommandPalettePlaceholder.tsx +106 -0
- package/bizar-dash/src/web/v8/views/Tasks/TasksKanbanPlaceholder.tsx +62 -0
- package/bizar-dash/src/web/v8/views/Tasks/TasksView.tsx +165 -0
- package/bizar-dash/src/web/v8/vite-env.d.ts +15 -0
- package/bizar-dash/src/web/{mobile.html → v8.html} +4 -7
- package/bizar-dash/tests/components/Button.test.tsx +51 -14
- package/bizar-dash/tests/components/Card.test.tsx +37 -20
- package/bizar-dash/tests/components/Dialog.test.tsx +80 -0
- package/bizar-dash/tests/components/Toast.test.tsx +48 -95
- package/bizar-dash/tests/goals-decompose.test.mjs +177 -0
- package/bizar-dash/tests/setup.ts +47 -0
- package/bizar-dash/tests/ui/primitives/VisuallyHidden.test.tsx +30 -15
- package/bizar-dash/vite.config.ts +41 -2
- package/bizar-dash/vitest.config.ts +9 -4
- package/cli/bin.mjs +32 -0
- package/cli/install.mjs +26 -1
- package/cli/provision-claude.mjs +86 -0
- package/package.json +36 -3
- package/scripts/run-dev.mjs +84 -0
- package/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js +0 -114
- package/bizar-dash/dist/assets/EnvVarsSection-BfhAz3ax.js.map +0 -1
- package/bizar-dash/dist/assets/MobileChat-DLWdv6tQ.js +0 -1
- package/bizar-dash/dist/assets/MobileChat-DLWdv6tQ.js.map +0 -1
- package/bizar-dash/dist/assets/MobileSettings-Bxv62uPY.js +0 -1
- package/bizar-dash/dist/assets/MobileSettings-Bxv62uPY.js.map +0 -1
- package/bizar-dash/dist/assets/Toast-ATSAmbdi.js +0 -26
- package/bizar-dash/dist/assets/Toast-ATSAmbdi.js.map +0 -1
- package/bizar-dash/dist/assets/__vite-browser-external-BIHI7g3E.js +0 -1
- package/bizar-dash/dist/assets/__vite-browser-external-BIHI7g3E.js.map +0 -1
- package/bizar-dash/dist/assets/main-CJAtrosO.css +0 -1
- package/bizar-dash/dist/assets/main-DKKj9dsq.js +0 -430
- package/bizar-dash/dist/assets/main-DKKj9dsq.js.map +0 -1
- package/bizar-dash/dist/assets/mobile-C_naUN91.js +0 -1
- package/bizar-dash/dist/assets/mobile-C_naUN91.js.map +0 -1
- package/bizar-dash/dist/assets/mobile-layout-BWLtwtfQ.css +0 -1
- package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js +0 -211
- package/bizar-dash/dist/assets/mobile-layout-GZ3bE8L6.js.map +0 -1
- package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js +0 -65
- package/bizar-dash/dist/assets/useSlashCommands-BOwD7lNb.js.map +0 -1
- package/bizar-dash/dist/index.html +0 -43
- package/bizar-dash/src/web/App.tsx +0 -915
- package/bizar-dash/src/web/MobileApp.tsx +0 -414
- package/bizar-dash/src/web/components/ArtifactCreateDialog.tsx +0 -95
- package/bizar-dash/src/web/components/ArtifactListDialog.tsx +0 -55
- package/bizar-dash/src/web/components/ArtifactViewer.tsx +0 -144
- package/bizar-dash/src/web/components/AuditDialog.tsx +0 -79
- package/bizar-dash/src/web/components/AutosaveField.tsx +0 -50
- package/bizar-dash/src/web/components/BackupRestore.tsx +0 -330
- package/bizar-dash/src/web/components/BgStatusBadge.tsx +0 -32
- package/bizar-dash/src/web/components/Button.tsx +0 -56
- package/bizar-dash/src/web/components/CanvasContextMenu.tsx +0 -68
- package/bizar-dash/src/web/components/Card.tsx +0 -40
- package/bizar-dash/src/web/components/CollapsibleSection.tsx +0 -72
- package/bizar-dash/src/web/components/CommandDialog.tsx +0 -66
- package/bizar-dash/src/web/components/DoctorPanel.tsx +0 -160
- package/bizar-dash/src/web/components/EmptyState.tsx +0 -30
- package/bizar-dash/src/web/components/EnvVarManager.tsx +0 -430
- package/bizar-dash/src/web/components/EvalDiff.tsx +0 -157
- package/bizar-dash/src/web/components/EvalExportButton.tsx +0 -27
- package/bizar-dash/src/web/components/EvalRunCard.tsx +0 -78
- package/bizar-dash/src/web/components/FileBrowser.tsx +0 -633
- package/bizar-dash/src/web/components/HeadroomSettings.tsx +0 -418
- package/bizar-dash/src/web/components/HeadroomStatus.tsx +0 -158
- package/bizar-dash/src/web/components/HelpDialog.tsx +0 -55
- package/bizar-dash/src/web/components/InviteDialog.tsx +0 -205
- package/bizar-dash/src/web/components/KillConfirmDialog.tsx +0 -88
- package/bizar-dash/src/web/components/MobileBottomNav.tsx +0 -38
- package/bizar-dash/src/web/components/MobileDrawer.tsx +0 -68
- package/bizar-dash/src/web/components/MobileHeader.tsx +0 -50
- package/bizar-dash/src/web/components/MobileLayout.tsx +0 -63
- package/bizar-dash/src/web/components/Modal.tsx +0 -215
- package/bizar-dash/src/web/components/Notifications.tsx +0 -242
- package/bizar-dash/src/web/components/ScheduleTemplateCard.tsx +0 -72
- package/bizar-dash/src/web/components/ScreenshotCapture.tsx +0 -138
- package/bizar-dash/src/web/components/ScreenshotOCR.tsx +0 -42
- package/bizar-dash/src/web/components/SearchModal.tsx +0 -227
- package/bizar-dash/src/web/components/SettingsNav.tsx +0 -117
- package/bizar-dash/src/web/components/SettingsSearch.tsx +0 -328
- package/bizar-dash/src/web/components/Sidebar.tsx +0 -89
- package/bizar-dash/src/web/components/Spinner.tsx +0 -19
- package/bizar-dash/src/web/components/StatusBadge.tsx +0 -56
- package/bizar-dash/src/web/components/Tag.tsx +0 -41
- package/bizar-dash/src/web/components/TailscaleSettings.tsx +0 -161
- package/bizar-dash/src/web/components/TaskCard.tsx +0 -69
- package/bizar-dash/src/web/components/TaskCreateSheet.tsx +0 -76
- package/bizar-dash/src/web/components/Toast.tsx +0 -150
- package/bizar-dash/src/web/components/Toggle.tsx +0 -31
- package/bizar-dash/src/web/components/Topbar.tsx +0 -455
- package/bizar-dash/src/web/components/UsageChart.tsx +0 -250
- package/bizar-dash/src/web/components/UsageTable.tsx +0 -90
- package/bizar-dash/src/web/components/VirtualList.tsx +0 -53
- package/bizar-dash/src/web/components/VisualPlanDialog.tsx +0 -58
- package/bizar-dash/src/web/components/VoiceNotesPanel.tsx +0 -211
- package/bizar-dash/src/web/components/VoiceRecorder.tsx +0 -105
- package/bizar-dash/src/web/components/WorkspaceSelector.tsx +0 -158
- package/bizar-dash/src/web/components/agents/CommunicationLog.tsx +0 -126
- package/bizar-dash/src/web/components/agents/DependencyGraph.tsx +0 -163
- package/bizar-dash/src/web/components/agents/QualityGates.tsx +0 -123
- package/bizar-dash/src/web/components/agents/RealTimeEventLog.tsx +0 -127
- package/bizar-dash/src/web/components/agents/RoutingDecisions.test.tsx +0 -148
- package/bizar-dash/src/web/components/agents/RoutingDecisions.tsx +0 -160
- package/bizar-dash/src/web/components/background/AttachButton.tsx +0 -96
- package/bizar-dash/src/web/components/background/TmuxAttachCard.tsx +0 -122
- package/bizar-dash/src/web/components/chat/AgentChip.tsx +0 -68
- package/bizar-dash/src/web/components/chat/AgentNode.tsx +0 -127
- package/bizar-dash/src/web/components/chat/AgentTree.tsx +0 -80
- package/bizar-dash/src/web/components/chat/ChatBubble.tsx +0 -60
- package/bizar-dash/src/web/components/chat/ChatComposer.tsx +0 -72
- package/bizar-dash/src/web/components/chat/ChatInfoPanel.tsx +0 -370
- package/bizar-dash/src/web/components/chat/ChatRail.tsx +0 -387
- package/bizar-dash/src/web/components/chat/ChatThread.tsx +0 -127
- package/bizar-dash/src/web/components/chat/ChatTopBar.tsx +0 -50
- package/bizar-dash/src/web/components/chat/Composer.tsx +0 -166
- package/bizar-dash/src/web/components/chat/ConfirmModal.tsx +0 -54
- package/bizar-dash/src/web/components/chat/EmptyState.tsx +0 -21
- package/bizar-dash/src/web/components/chat/FirstRunGreeting.tsx +0 -18
- package/bizar-dash/src/web/components/chat/FloatingComposer.tsx +0 -38
- package/bizar-dash/src/web/components/chat/InfoPanel.tsx +0 -184
- package/bizar-dash/src/web/components/chat/JumpToLatest.tsx +0 -58
- package/bizar-dash/src/web/components/chat/LoadingSkeleton.tsx +0 -19
- package/bizar-dash/src/web/components/chat/MessageBlock.tsx +0 -260
- package/bizar-dash/src/web/components/chat/MessageBubble.tsx +0 -60
- package/bizar-dash/src/web/components/chat/SessionList.tsx +0 -163
- package/bizar-dash/src/web/components/chat/SessionRowMenu.tsx +0 -206
- package/bizar-dash/src/web/components/chat/StreamingIndicator.tsx +0 -37
- package/bizar-dash/src/web/components/chat/SuggestionCards.tsx +0 -55
- package/bizar-dash/src/web/components/chat/WelcomeScreen.tsx +0 -36
- package/bizar-dash/src/web/components/chat/_legacy.ts +0 -30
- package/bizar-dash/src/web/components/chat/index.ts +0 -31
- package/bizar-dash/src/web/components/chat/useAutoGrowTextarea.ts +0 -18
- package/bizar-dash/src/web/components/chat/useChat.ts +0 -1190
- package/bizar-dash/src/web/components/chat/useSlashCommands.ts +0 -47
- package/bizar-dash/src/web/components/goals/GoalInput.tsx +0 -86
- package/bizar-dash/src/web/components/goals/PlanVisualization.tsx +0 -111
- package/bizar-dash/src/web/components/tasks/BacklogPanel.css +0 -109
- package/bizar-dash/src/web/components/tasks/BacklogPanel.tsx +0 -209
- package/bizar-dash/src/web/hooks/useAutosave.ts +0 -107
- package/bizar-dash/src/web/hooks/useI18n.ts +0 -13
- package/bizar-dash/src/web/index.html +0 -37
- package/bizar-dash/src/web/lib/api.ts +0 -237
- package/bizar-dash/src/web/lib/goapPlanner.ts +0 -614
- package/bizar-dash/src/web/lib/i18n.ts +0 -25
- package/bizar-dash/src/web/lib/logger.ts +0 -30
- package/bizar-dash/src/web/lib/markdown.tsx +0 -59
- package/bizar-dash/src/web/lib/search.ts +0 -115
- package/bizar-dash/src/web/lib/types.ts +0 -894
- package/bizar-dash/src/web/lib/utils.ts +0 -114
- package/bizar-dash/src/web/lib/ws.ts +0 -177
- package/bizar-dash/src/web/locales/en.json +0 -52
- package/bizar-dash/src/web/main.tsx +0 -43
- package/bizar-dash/src/web/mobile/MobileApp.tsx +0 -309
- package/bizar-dash/src/web/mobile/MobileBottomNav.tsx +0 -38
- package/bizar-dash/src/web/mobile/MobileChat.tsx +0 -138
- package/bizar-dash/src/web/mobile/MobileDoctor.tsx +0 -80
- package/bizar-dash/src/web/mobile/MobileEval.tsx +0 -167
- package/bizar-dash/src/web/mobile/MobileMemory.tsx +0 -108
- package/bizar-dash/src/web/mobile/MobileOverview.tsx +0 -213
- package/bizar-dash/src/web/mobile/MobileSettings.tsx +0 -251
- package/bizar-dash/src/web/mobile/MobileTasks.tsx +0 -94
- package/bizar-dash/src/web/mobile/MobileTopbar.tsx +0 -115
- package/bizar-dash/src/web/mobile/components/MobileBottomSheet.tsx +0 -182
- package/bizar-dash/src/web/mobile/components/MobileListItem.tsx +0 -64
- package/bizar-dash/src/web/mobile/components/MobileModal.tsx +0 -123
- package/bizar-dash/src/web/mobile/views/MobileActivity.tsx +0 -273
- package/bizar-dash/src/web/mobile/views/MobileAgents.tsx +0 -374
- package/bizar-dash/src/web/mobile/views/MobileArtifactCanvas.tsx +0 -439
- package/bizar-dash/src/web/mobile/views/MobileArtifacts.tsx +0 -143
- package/bizar-dash/src/web/mobile/views/MobileChat.tsx +0 -257
- package/bizar-dash/src/web/mobile/views/MobileConfig.tsx +0 -175
- package/bizar-dash/src/web/mobile/views/MobileHistory.tsx +0 -191
- package/bizar-dash/src/web/mobile/views/MobileMods.tsx +0 -149
- package/bizar-dash/src/web/mobile/views/MobileMore.tsx +0 -121
- package/bizar-dash/src/web/mobile/views/MobileNotifications.tsx +0 -137
- package/bizar-dash/src/web/mobile/views/MobilePlans.tsx +0 -26
- package/bizar-dash/src/web/mobile/views/MobileSchedules.tsx +0 -685
- package/bizar-dash/src/web/mobile/views/MobileSearchModal.tsx +0 -172
- package/bizar-dash/src/web/mobile/views/MobileSettings.tsx +0 -363
- package/bizar-dash/src/web/mobile/views/MobileSkills.tsx +0 -153
- package/bizar-dash/src/web/mobile/views/MobileTasks.tsx +0 -564
- package/bizar-dash/src/web/mobile/views/QrCodePanel.tsx +0 -69
- package/bizar-dash/src/web/mobile.tsx +0 -14
- package/bizar-dash/src/web/styles/agents-redesign.css +0 -311
- package/bizar-dash/src/web/styles/chat.css +0 -1740
- package/bizar-dash/src/web/styles/glyphs.css +0 -960
- package/bizar-dash/src/web/styles/main.css +0 -10389
- package/bizar-dash/src/web/styles/memory.css +0 -1177
- package/bizar-dash/src/web/styles/minimax-usage.css +0 -842
- package/bizar-dash/src/web/styles/mobile-chat.css +0 -5
- package/bizar-dash/src/web/styles/mobile-layout.css +0 -233
- package/bizar-dash/src/web/styles/mobile.css +0 -2181
- package/bizar-dash/src/web/styles/settings.css +0 -775
- package/bizar-dash/src/web/styles/skills.css +0 -302
- package/bizar-dash/src/web/styles/tasks-redesign.css +0 -253
- package/bizar-dash/src/web/styles/tasks.css +0 -605
- package/bizar-dash/src/web/ui/controls/Button.tsx +0 -77
- package/bizar-dash/src/web/ui/controls/Checkbox.tsx +0 -95
- package/bizar-dash/src/web/ui/controls/IconButton.tsx +0 -66
- package/bizar-dash/src/web/ui/controls/Kbd.tsx +0 -24
- package/bizar-dash/src/web/ui/controls/NumberInput.tsx +0 -77
- package/bizar-dash/src/web/ui/controls/RadioGroup.tsx +0 -109
- package/bizar-dash/src/web/ui/controls/SearchInput.tsx +0 -91
- package/bizar-dash/src/web/ui/controls/Select.tsx +0 -92
- package/bizar-dash/src/web/ui/controls/Slider.tsx +0 -70
- package/bizar-dash/src/web/ui/controls/TextInput.tsx +0 -67
- package/bizar-dash/src/web/ui/controls/Textarea.tsx +0 -56
- package/bizar-dash/src/web/ui/controls/Toggle.tsx +0 -79
- package/bizar-dash/src/web/ui/controls/controls.css +0 -476
- package/bizar-dash/src/web/ui/controls/index.ts +0 -35
- package/bizar-dash/src/web/ui/data/BarChart.tsx +0 -60
- package/bizar-dash/src/web/ui/data/DataTable.tsx +0 -216
- package/bizar-dash/src/web/ui/data/EmptyState.tsx +0 -60
- package/bizar-dash/src/web/ui/data/ErrorState.tsx +0 -56
- package/bizar-dash/src/web/ui/data/KeyValueList.tsx +0 -106
- package/bizar-dash/src/web/ui/data/LoadingState.tsx +0 -65
- package/bizar-dash/src/web/ui/data/Sparkline.tsx +0 -87
- package/bizar-dash/src/web/ui/data/StatTile.tsx +0 -87
- package/bizar-dash/src/web/ui/data/data.css +0 -540
- package/bizar-dash/src/web/ui/data/index.ts +0 -31
- package/bizar-dash/src/web/ui/feedback/Badge.tsx +0 -49
- package/bizar-dash/src/web/ui/feedback/Dialog.tsx +0 -209
- package/bizar-dash/src/web/ui/feedback/ProgressBar.tsx +0 -69
- package/bizar-dash/src/web/ui/feedback/StatusDot.tsx +0 -50
- package/bizar-dash/src/web/ui/feedback/Toast.tsx +0 -200
- package/bizar-dash/src/web/ui/feedback/Tooltip.tsx +0 -126
- package/bizar-dash/src/web/ui/feedback/feedback.css +0 -314
- package/bizar-dash/src/web/ui/feedback/index.ts +0 -43
- package/bizar-dash/src/web/ui/index.ts +0 -57
- package/bizar-dash/src/web/ui/layout/AppShell.tsx +0 -51
- package/bizar-dash/src/web/ui/layout/Breadcrumbs.tsx +0 -97
- package/bizar-dash/src/web/ui/layout/Panel.tsx +0 -73
- package/bizar-dash/src/web/ui/layout/PanelHeader.tsx +0 -39
- package/bizar-dash/src/web/ui/layout/Sidebar.tsx +0 -131
- package/bizar-dash/src/web/ui/layout/Tabs.tsx +0 -133
- package/bizar-dash/src/web/ui/layout/Topbar.tsx +0 -42
- package/bizar-dash/src/web/ui/layout/ViewHeader.tsx +0 -48
- package/bizar-dash/src/web/ui/layout/index.ts +0 -34
- package/bizar-dash/src/web/ui/layout/layout.css +0 -464
- package/bizar-dash/src/web/ui/navigation/CommandPalette.tsx +0 -199
- package/bizar-dash/src/web/ui/navigation/NavGroup.tsx +0 -95
- package/bizar-dash/src/web/ui/navigation/NavLink.tsx +0 -93
- package/bizar-dash/src/web/ui/navigation/index.ts +0 -17
- package/bizar-dash/src/web/ui/navigation/navigation.css +0 -343
- package/bizar-dash/src/web/ui/primitives/Box.tsx +0 -91
- package/bizar-dash/src/web/ui/primitives/Grid.tsx +0 -49
- package/bizar-dash/src/web/ui/primitives/Inline.tsx +0 -55
- package/bizar-dash/src/web/ui/primitives/Separator.tsx +0 -46
- package/bizar-dash/src/web/ui/primitives/Stack.tsx +0 -54
- package/bizar-dash/src/web/ui/primitives/VisuallyHidden.tsx +0 -26
- package/bizar-dash/src/web/ui/primitives/index.ts +0 -23
- package/bizar-dash/src/web/ui/primitives/primitives.css +0 -183
- package/bizar-dash/src/web/ui/styles/globals.css +0 -86
- package/bizar-dash/src/web/ui/styles/reset.css +0 -125
- package/bizar-dash/src/web/ui/styles/tokens.css +0 -208
- package/bizar-dash/src/web/ui/theme/ThemeProvider.tsx +0 -142
- package/bizar-dash/src/web/ui/theme/tokens.ts +0 -131
- package/bizar-dash/src/web/ui/theme/useTheme.ts +0 -22
- package/bizar-dash/src/web/ui/utils/cx.ts +0 -42
- package/bizar-dash/src/web/views/Activity.tsx +0 -1221
- package/bizar-dash/src/web/views/Agents.tsx +0 -964
- package/bizar-dash/src/web/views/Artifacts.tsx +0 -1494
- package/bizar-dash/src/web/views/BackgroundAgents.tsx +0 -822
- package/bizar-dash/src/web/views/Chat.tsx +0 -532
- package/bizar-dash/src/web/views/Config.tsx +0 -3
- package/bizar-dash/src/web/views/Doctor.tsx +0 -317
- package/bizar-dash/src/web/views/Eval.tsx +0 -372
- package/bizar-dash/src/web/views/EvalReport.tsx +0 -353
- package/bizar-dash/src/web/views/GoalPlanner.tsx +0 -158
- package/bizar-dash/src/web/views/Harness.tsx +0 -306
- package/bizar-dash/src/web/views/History.tsx +0 -353
- package/bizar-dash/src/web/views/Memory.tsx +0 -193
- package/bizar-dash/src/web/views/MiniMaxUsage.tsx +0 -942
- package/bizar-dash/src/web/views/ModView.tsx +0 -207
- package/bizar-dash/src/web/views/Mods.tsx +0 -706
- package/bizar-dash/src/web/views/Overview.tsx +0 -1343
- package/bizar-dash/src/web/views/Providers.tsx +0 -302
- package/bizar-dash/src/web/views/Schedules.tsx +0 -902
- package/bizar-dash/src/web/views/Settings.tsx +0 -308
- package/bizar-dash/src/web/views/Skills.tsx +0 -383
- package/bizar-dash/src/web/views/SpawnAgentModal.tsx +0 -221
- package/bizar-dash/src/web/views/Tasks.tsx +0 -789
- package/bizar-dash/src/web/views/Workspace.tsx +0 -294
- package/bizar-dash/src/web/views/glyphs/GlyphRenderer.tsx +0 -844
- package/bizar-dash/src/web/views/glyphs/components.tsx +0 -1098
- package/bizar-dash/src/web/views/memory/ConfigPanel.tsx +0 -426
- package/bizar-dash/src/web/views/memory/FromScreenshotPanel.tsx +0 -23
- package/bizar-dash/src/web/views/memory/GitSyncPanel.tsx +0 -220
- package/bizar-dash/src/web/views/memory/LightragPanel.tsx +0 -310
- package/bizar-dash/src/web/views/memory/MemoryGraphLegend.tsx +0 -29
- package/bizar-dash/src/web/views/memory/MemoryGraphPanel.tsx +0 -192
- package/bizar-dash/src/web/views/memory/MemoryGraphView.tsx +0 -336
- package/bizar-dash/src/web/views/memory/MemoryOverview.tsx +0 -367
- package/bizar-dash/src/web/views/memory/MemoryStatusCard.tsx +0 -160
- package/bizar-dash/src/web/views/memory/ObsidianPanel.tsx +0 -650
- package/bizar-dash/src/web/views/memory/SemanticSearchPanel.tsx +0 -197
- package/bizar-dash/src/web/views/memory/VaultFromClipboardPanel.tsx +0 -101
- package/bizar-dash/src/web/views/settings/ActivitySection.tsx +0 -205
- package/bizar-dash/src/web/views/settings/AgentSection.tsx +0 -305
- package/bizar-dash/src/web/views/settings/AuthSection.tsx +0 -159
- package/bizar-dash/src/web/views/settings/EnvVarsSection.tsx +0 -15
- package/bizar-dash/src/web/views/settings/GeneralSection.tsx +0 -128
- package/bizar-dash/src/web/views/settings/HeadroomSection.tsx +0 -39
- package/bizar-dash/src/web/views/settings/MemorySection.tsx +0 -154
- package/bizar-dash/src/web/views/settings/NetworkSection.tsx +0 -87
- package/bizar-dash/src/web/views/settings/NotificationsSection.tsx +0 -34
- package/bizar-dash/src/web/views/settings/SystemLlmSection.tsx +0 -81
- package/bizar-dash/src/web/views/settings/ThemeSection.tsx +0 -168
- package/bizar-dash/src/web/views/settings/UpdatesSection.tsx +0 -256
- package/bizar-dash/src/web/views/settings/WorkspacesSection.tsx +0 -189
- package/packages/sdk/.harness/agents.json +0 -17
- package/packages/sdk/.harness/topology.json +0 -4
- /package/bizar-dash/tests/{BackgroundAgents.test.tsx → v7-archive/BackgroundAgents.test.tsx} +0 -0
- /package/bizar-dash/tests/{a11y → v7-archive/a11y}/forms.test.tsx +0 -0
- /package/bizar-dash/tests/{a11y.test.tsx → v7-archive/a11y.test.tsx} +0 -0
- /package/bizar-dash/tests/{autosave.test.tsx → v7-archive/autosave.test.tsx} +0 -0
- /package/bizar-dash/tests/{backup-restore.test.tsx → v7-archive/backup-restore.test.tsx} +0 -0
- /package/bizar-dash/tests/{chat-composer.test.tsx → v7-archive/chat-composer.test.tsx} +0 -0
- /package/bizar-dash/tests/{communication-log.test.tsx → v7-archive/communication-log.test.tsx} +0 -0
- /package/bizar-dash/tests/{components → v7-archive/components}/Modal.test.tsx +0 -0
- /package/bizar-dash/tests/{components → v7-archive/components}/Spinner.test.tsx +0 -0
- /package/bizar-dash/tests/{components → v7-archive/components}/StatusBadge.test.tsx +0 -0
- /package/bizar-dash/tests/{components → v7-archive/components}/doctor-panel.test.tsx +0 -0
- /package/bizar-dash/tests/{components → v7-archive/components}/screenshot-ocr.test.tsx +0 -0
- /package/bizar-dash/tests/{components → v7-archive/components}/settings-search.test.tsx +0 -0
- /package/bizar-dash/tests/{components → v7-archive/components}/workspace-selector.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/Button.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/Checkbox.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/IconButton.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/Kbd.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/NumberInput.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/RadioGroup.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/SearchInput.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/Select.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/Slider.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/TextInput.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/Textarea.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/controls/Toggle.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/BarChart.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/DataTable.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/EmptyState.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/ErrorState.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/KeyValueList.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/LoadingState.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/Sparkline.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/data/StatTile.test.tsx +0 -0
- /package/bizar-dash/tests/{dep-graph.test.tsx → v7-archive/dep-graph.test.tsx} +0 -0
- /package/bizar-dash/tests/{eval-web-ui.test.tsx → v7-archive/eval-web-ui.test.tsx} +0 -0
- /package/bizar-dash/tests/{event-log.test.tsx → v7-archive/event-log.test.tsx} +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/feedback/Badge.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/feedback/Dialog.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/feedback/ProgressBar.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/feedback/StatusDot.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/feedback/Toast.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/feedback/Tooltip.test.tsx +0 -0
- /package/bizar-dash/tests/{goal-input.test.tsx → v7-archive/goal-input.test.tsx} +0 -0
- /package/bizar-dash/tests/{goap-planner.test.ts → v7-archive/goap-planner.test.ts} +0 -0
- /package/bizar-dash/tests/{hooks → v7-archive/hooks}/useModal.test.tsx +0 -0
- /package/bizar-dash/tests/{hooks → v7-archive/hooks}/useToast.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/AppShell.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/Breadcrumbs.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/Panel.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/PanelHeader.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/Sidebar.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/Tabs.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/Topbar.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/layout/ViewHeader.test.tsx +0 -0
- /package/bizar-dash/tests/{lib → v7-archive/lib}/i18n.test.ts +0 -0
- /package/bizar-dash/tests/{lib → v7-archive/lib}/search-fuzzy.test.ts +0 -0
- /package/bizar-dash/tests/{lib → v7-archive/lib}/utils.test.ts +0 -0
- /package/bizar-dash/tests/{memory-graph-view.test.tsx → v7-archive/memory-graph-view.test.tsx} +0 -0
- /package/bizar-dash/tests/{mobile-chat.test.tsx → v7-archive/mobile-chat.test.tsx} +0 -0
- /package/bizar-dash/tests/{mobile-layout.test.tsx → v7-archive/mobile-layout.test.tsx} +0 -0
- /package/bizar-dash/tests/{mobile-overview.test.tsx → v7-archive/mobile-overview.test.tsx} +0 -0
- /package/bizar-dash/tests/{mobile-settings.test.tsx → v7-archive/mobile-settings.test.tsx} +0 -0
- /package/bizar-dash/tests/{mobile-tasks.test.tsx → v7-archive/mobile-tasks.test.tsx} +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/navigation/CommandPalette.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/navigation/NavGroup.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive}/navigation/NavLink.test.tsx +0 -0
- /package/bizar-dash/tests/{quality-gates.test.tsx → v7-archive/quality-gates.test.tsx} +0 -0
- /package/bizar-dash/tests/{settings-layout.test.tsx → v7-archive/settings-layout.test.tsx} +0 -0
- /package/bizar-dash/tests/{settings-mode-wiring.test.tsx → v7-archive/settings-mode-wiring.test.tsx} +0 -0
- /package/bizar-dash/tests/{settings-nav.test.tsx → v7-archive/settings-nav.test.tsx} +0 -0
- /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Box.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Grid.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Inline.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Separator.test.tsx +0 -0
- /package/bizar-dash/tests/{ui → v7-archive/ui}/primitives/Stack.test.tsx +0 -0
- /package/bizar-dash/tests/{views → v7-archive/views}/Agents.test.tsx +0 -0
- /package/bizar-dash/tests/{views → v7-archive/views}/Memory.test.tsx +0 -0
- /package/bizar-dash/tests/{views → v7-archive/views}/Overview.test.tsx +0 -0
- /package/bizar-dash/tests/{views → v7-archive/views}/Tasks.test.tsx +0 -0
- /package/bizar-dash/tests/{views → v7-archive/views}/sidebar.test.tsx +0 -0
- /package/bizar-dash/tests/{views → v7-archive/views}/topbar.test.tsx +0 -0
- /package/bizar-dash/tests/{voice-recorder.test.tsx → v7-archive/voice-recorder.test.tsx} +0 -0
|
@@ -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
|
-
}
|