@kabmo-labs/kabmo 0.12.0 → 0.14.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/LICENSE +21 -0
- package/README.md +6 -2
- package/bunfig.toml +20 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +395 -394
- package/dist/client/static/js/{index-0smc9gm2.js → index-nfsg1jpt.js} +838 -838
- package/dist/client/static/js/index-tsgy3gd1.css +1 -0
- package/extensions/kabmo-modes/commands.test.ts +1 -1
- package/extensions/kabmo-modes/commands.ts +1 -1
- package/extensions/kabmo-modes/goal.test.ts +1 -1
- package/extensions/kabmo-modes/goal.ts +1 -1
- package/extensions/kabmo-modes/index.ts +1 -1
- package/extensions/kabmo-modes/omp-modules.d.ts +1 -1
- package/extensions/kabmo-modes/parked.test.ts +1 -1
- package/extensions/kabmo-modes/parked.ts +1 -1
- package/extensions/kabmo-modes/plan.test.ts +1 -1
- package/extensions/kabmo-modes/plan.ts +1 -1
- package/extensions/kabmo-modes/prompts.test.ts +1 -1
- package/extensions/kabmo-modes/prompts.ts +1 -1
- package/extensions/kabmo-modes/protocol.test.ts +1 -1
- package/extensions/kabmo-modes/protocol.ts +1 -1
- package/extensions/kabmo-modes/session.ts +1 -1
- package/marketplace/plugins/command-runner/package.json +2 -2
- package/marketplace/plugins/command-runner/src/app.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Custom.test.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/CustomForm.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Glyph.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Groups.test.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Groups.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Header.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Output.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Row.test.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/Row.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/format.ts +1 -1
- package/marketplace/plugins/command-runner/src/panel/index.tsx +1 -1
- package/marketplace/plugins/command-runner/src/panel/use-custom-dialog.ts +1 -1
- package/marketplace/plugins/command-runner/src/protocol.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/custom.test.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/custom.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/detectors.test.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/js.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/jsonc.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/make.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/native.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/python.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/table.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/detectors/types.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/discovery.test.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/kill.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/package-manager.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/resolve.test.ts +72 -11
- package/marketplace/plugins/command-runner/src/server/resolve.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/ring.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/run-store.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/run-types.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/runner.test.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/runner.ts +3 -3
- package/marketplace/plugins/command-runner/src/server/scan.ts +1 -1
- package/marketplace/plugins/command-runner/src/server/sweeps.test.ts +1 -1
- package/marketplace/plugins/command-runner/src/server.ts +1 -1
- package/marketplace/plugins/command-runner/src/watch.test.ts +1 -1
- package/marketplace/plugins/command-runner/src/watch.ts +1 -1
- package/marketplace/plugins/git-forge/README.md +44 -24
- package/marketplace/plugins/git-forge/package.json +3 -3
- package/marketplace/plugins/git-forge/src/app.tsx +7 -18
- package/marketplace/plugins/git-forge/src/command.test.ts +3 -3
- package/marketplace/plugins/git-forge/src/command.ts +1 -1
- package/marketplace/plugins/git-forge/src/panel/Badge.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/Change.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/CiBadge.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/Credential.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/Glyph.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/Header.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/List.tsx +7 -2
- package/marketplace/plugins/git-forge/src/panel/Row.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +11 -5
- package/marketplace/plugins/git-forge/src/panel/Write.tsx +57 -29
- package/marketplace/plugins/git-forge/src/panel/format.ts +1 -1
- package/marketplace/plugins/git-forge/src/panel/index.test.tsx +37 -52
- package/marketplace/plugins/git-forge/src/panel/index.tsx +1 -1
- package/marketplace/plugins/git-forge/src/panel/test-fixtures.ts +81 -0
- package/marketplace/plugins/git-forge/src/panel/use-forge.ts +1 -1
- package/marketplace/plugins/git-forge/src/panel/write.test.tsx +40 -49
- package/marketplace/plugins/git-forge/src/protocol.ts +35 -24
- package/marketplace/plugins/git-forge/src/server/adapters.test.ts +19 -4
- package/marketplace/plugins/git-forge/src/server/bitbucket.ts +21 -7
- package/marketplace/plugins/git-forge/src/server/capabilities.test.ts +57 -25
- package/marketplace/plugins/git-forge/src/server/capabilities.ts +26 -12
- package/marketplace/plugins/git-forge/src/server/ci.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/ci.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/context.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/diff.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/diff.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/filters.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/filters.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/forges.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/gitea.ts +17 -6
- package/marketplace/plugins/git-forge/src/server/github-extras.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/github.ts +5 -5
- package/marketplace/plugins/git-forge/src/server/gitlab-detail.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/gitlab.test.ts +68 -3
- package/marketplace/plugins/git-forge/src/server/gitlab.ts +59 -15
- package/marketplace/plugins/git-forge/src/server/http.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/http.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/map.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/provider.ts +77 -0
- package/marketplace/plugins/git-forge/src/server/registry.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/remote.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/remote.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/scope-probe.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/scope-probe.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/scope.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/test-context.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/test-host.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/token.test.ts +90 -1
- package/marketplace/plugins/git-forge/src/server/token.ts +118 -28
- package/marketplace/plugins/git-forge/src/server/write-calls.ts +253 -0
- package/marketplace/plugins/git-forge/src/server/write-http.test.ts +1 -1
- package/marketplace/plugins/git-forge/src/server/write-http.ts +40 -2
- package/marketplace/plugins/git-forge/src/server/writes.test.ts +95 -11
- package/marketplace/plugins/git-forge/src/server/writes.ts +73 -259
- package/marketplace/plugins/git-forge/src/server.ts +3 -36
- package/marketplace/plugins/session-info/src/app.test.tsx +1 -1
- package/marketplace/plugins/session-info/src/server.ts +1 -1
- package/marketplace/plugins/stats/src/HeaderReadout.test.tsx +1 -1
- package/marketplace/plugins/stats/src/HeaderReadout.tsx +1 -1
- package/marketplace/plugins/stats/src/ProcessTable.tsx +1 -1
- package/marketplace/plugins/stats/src/RefreshButton.tsx +1 -1
- package/marketplace/plugins/stats/src/Sparkline.tsx +1 -1
- package/marketplace/plugins/stats/src/TotalsBar.test.tsx +1 -1
- package/marketplace/plugins/stats/src/TotalsBar.tsx +1 -1
- package/marketplace/plugins/stats/src/app.test.tsx +1 -1
- package/marketplace/plugins/stats/src/app.tsx +1 -1
- package/marketplace/plugins/stats/src/daemons.ts +1 -1
- package/marketplace/plugins/stats/src/format.test.ts +1 -1
- package/marketplace/plugins/stats/src/format.ts +1 -1
- package/marketplace/plugins/stats/src/groups.test.ts +1 -1
- package/marketplace/plugins/stats/src/groups.ts +1 -1
- package/marketplace/plugins/stats/src/labels.test.ts +1 -1
- package/marketplace/plugins/stats/src/labels.ts +1 -1
- package/marketplace/plugins/stats/src/proc/darwin.ts +1 -1
- package/marketplace/plugins/stats/src/proc/identity.ts +1 -1
- package/marketplace/plugins/stats/src/proc/index.ts +1 -1
- package/marketplace/plugins/stats/src/proc/linux.ts +1 -1
- package/marketplace/plugins/stats/src/proc/ps.ts +1 -1
- package/marketplace/plugins/stats/src/proc/types.ts +1 -1
- package/marketplace/plugins/stats/src/sampler.test.ts +1 -1
- package/marketplace/plugins/stats/src/sampler.ts +1 -1
- package/marketplace/plugins/stats/src/server.ts +1 -1
- package/marketplace/plugins/stats/src/sessions.test.ts +1 -1
- package/marketplace/plugins/stats/src/sessions.ts +1 -1
- package/marketplace/plugins/stats/src/snapshot.ts +1 -1
- package/package.json +7 -6
- package/src/cli/lib/path-utils.test.js +1 -1
- package/src/cli/lib/process-lifecycle.test.js +1 -1
- package/src/cli/lib/restart-scope.test.js +1 -1
- package/src/cli/lib/serve-mode.test.js +1 -1
- package/src/cli/lib/stop-instance.test.js +1 -1
- package/src/cli/lib/stop-scope.test.js +1 -1
- package/src/client/App.tsx +1 -1
- package/src/client/components/auth/login-screen/index.tsx +1 -1
- package/src/client/components/common/FolderPicker.tsx +1 -1
- package/src/client/components/common/MarkdownRenderer.tsx +1 -1
- package/src/client/components/common/ReloadPageButton.test.tsx +1 -1
- package/src/client/components/common/SignOutButton.test.tsx +1 -1
- package/src/client/components/common/SignOutButton.tsx +1 -1
- package/src/client/components/common/batch-selection/BatchActionBar.test.ts +43 -6
- package/src/client/components/common/batch-selection/BatchActionBar.tsx +58 -15
- package/src/client/components/common/batch-selection/BatchDeleteModal.tsx +1 -1
- package/src/client/components/common/batch-selection/SelectionCheckbox.tsx +1 -1
- package/src/client/components/common/batch-selection/folder-state.test.ts +1 -1
- package/src/client/components/common/batch-selection/folder-state.ts +1 -1
- package/src/client/components/common/batch-selection/types.ts +1 -1
- package/src/client/components/common/brand-wordmark/index.test.tsx +1 -1
- package/src/client/components/common/code-surface/blame-hover.ts +1 -1
- package/src/client/components/common/code-surface/blame-panel.test.ts +1 -1
- package/src/client/components/common/code-surface/blame-panel.ts +1 -1
- package/src/client/components/common/code-surface/blame.test.ts +1 -1
- package/src/client/components/common/code-surface/blame.ts +1 -1
- package/src/client/components/common/code-surface/bracket-guide.test.ts +1 -1
- package/src/client/components/common/code-surface/bracket-guide.ts +1 -1
- package/src/client/components/common/code-surface/conflict-markers.test.ts +1 -1
- package/src/client/components/common/code-surface/conflict-markers.ts +1 -1
- package/src/client/components/common/code-surface/documents-budget.test.ts +54 -0
- package/src/client/components/common/code-surface/documents-budget.ts +62 -0
- package/src/client/components/common/code-surface/documents.test.ts +37 -1
- package/src/client/components/common/code-surface/documents.ts +13 -11
- package/src/client/components/common/code-surface/extensions.test.ts +1 -1
- package/src/client/components/common/code-surface/extensions.ts +8 -2
- package/src/client/components/common/code-surface/fold-placeholder.ts +43 -0
- package/src/client/components/common/code-surface/fold-stack.test.ts +1 -1
- package/src/client/components/common/code-surface/fold.test.ts +1 -1
- package/src/client/components/common/code-surface/fold.ts +1 -1
- package/src/client/components/common/code-surface/handle.ts +1 -1
- package/src/client/components/common/code-surface/indent-guide.ts +1 -1
- package/src/client/components/common/code-surface/indent.test.ts +1 -1
- package/src/client/components/common/code-surface/indent.ts +1 -1
- package/src/client/components/common/code-surface/index.tsx +1 -1
- package/src/client/components/common/code-surface/keymap.test.ts +1 -1
- package/src/client/components/common/code-surface/keymap.ts +1 -1
- package/src/client/components/common/code-surface/line-commands.test.ts +1 -1
- package/src/client/components/common/code-surface/line-commands.ts +1 -1
- package/src/client/components/common/code-surface/lint-parsers.test.ts +1 -1
- package/src/client/components/common/code-surface/lint-parsers.ts +1 -1
- package/src/client/components/common/code-surface/lint.test.ts +1 -1
- package/src/client/components/common/code-surface/lint.ts +1 -1
- package/src/client/components/common/code-surface/marks.ts +1 -1
- package/src/client/components/common/code-surface/props.ts +1 -1
- package/src/client/components/common/code-surface/shiki.ts +1 -1
- package/src/client/components/common/code-surface/stream-language.test.ts +1 -1
- package/src/client/components/common/code-surface/stream-language.ts +1 -1
- package/src/client/components/common/code-surface/surface-failures.test.ts +1 -1
- package/src/client/components/common/code-surface/sync.test.ts +1 -1
- package/src/client/components/common/code-surface/sync.ts +1 -1
- package/src/client/components/common/code-surface/theme.test.ts +1 -1
- package/src/client/components/common/code-surface/theme.ts +1 -1
- package/src/client/components/common/code-surface/typing.test.ts +1 -1
- package/src/client/components/common/code-surface/typing.ts +1 -1
- package/src/client/components/common/context-usage-button/Ring.tsx +1 -1
- package/src/client/components/common/context-usage-button/index.test.tsx +1 -1
- package/src/client/components/common/context-usage-button/index.tsx +1 -1
- package/src/client/components/common/diagram-viewer/index.tsx +1 -1
- package/src/client/components/common/diagram-viewer/read-block.ts +1 -1
- package/src/client/components/common/editor-view-buttons/index.test.tsx +1 -1
- package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
- package/src/client/components/common/header-controls/index.test.tsx +1 -1
- package/src/client/components/common/header-controls/plugin-entry.test.tsx +1 -1
- package/src/client/components/common/header-controls/shell-chrome.test.tsx +1 -1
- package/src/client/components/common/header-panel-buttons/entries.test.ts +1 -1
- package/src/client/components/common/header-panel-buttons/entries.ts +1 -1
- package/src/client/components/common/header-panel-buttons/index.test.tsx +96 -0
- package/src/client/components/common/header-panel-buttons/index.tsx +17 -1
- package/src/client/components/common/image-viewer/index.tsx +1 -1
- package/src/client/components/common/outline-kind-icon/index.tsx +1 -1
- package/src/client/components/common/plugin-render-boundary/index.tsx +77 -0
- package/src/client/components/common/provider-icon/glyphs.test.ts +1 -1
- package/src/client/components/common/provider-icon/glyphs.ts +1 -1
- package/src/client/components/common/provider-icon/index.plugin.test.ts +1 -1
- package/src/client/components/common/provider-icon/index.test.ts +1 -1
- package/src/client/components/common/provider-icon/index.tsx +1 -1
- package/src/client/components/common/provider-icon/resolve.test.ts +1 -1
- package/src/client/components/common/provider-icon/resolve.ts +1 -1
- package/src/client/components/common/server-switcher/index.test.tsx +1 -1
- package/src/client/components/common/server-switcher/index.tsx +1 -1
- package/src/client/components/common/session-actions-menu/index.tsx +1 -1
- package/src/client/components/common/session-delete-modal/index.tsx +1 -1
- package/src/client/components/common/session-row/StatusSlot.tsx +133 -0
- package/src/client/components/common/session-row/TrailingSlot.tsx +84 -0
- package/src/client/components/common/session-row/index.tsx +205 -0
- package/src/client/components/common/session-row/session-row.test.tsx +144 -0
- package/src/client/components/common/session-state-provider/index.test.ts +1 -1
- package/src/client/components/common/shell-update-button/Modal.tsx +1 -1
- package/src/client/components/common/shell-update-button/index.test.tsx +1 -1
- package/src/client/components/common/shell-update-button/index.tsx +1 -1
- package/src/client/components/common/sort-menu/index.tsx +1 -1
- package/src/client/components/common/sort-menu/options.ts +1 -1
- package/src/client/components/common/todo-row/index.test.ts +1 -1
- package/src/client/components/common/todo-row/index.tsx +1 -1
- package/src/client/components/common/toolbar-row/index.test.tsx +1 -1
- package/src/client/components/common/toolbar-row/index.tsx +1 -1
- package/src/client/components/common/viewport.ts +1 -1
- package/src/client/components/common/window-controls/index.test.tsx +1 -1
- package/src/client/components/common/workspace-options-menu/index.tsx +1 -1
- package/src/client/components/layout/ActivityBar.test.ts +1 -1
- package/src/client/components/layout/ActivityBar.tsx +1 -1
- package/src/client/components/layout/LeftActivityBar.test.ts +1 -1
- package/src/client/components/layout/LeftDock.tsx +1 -1
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -1
- package/src/client/components/layout/desktop-layout/resizer/panel.test.ts +1 -1
- package/src/client/components/layout/desktop-layout/resizer/utils.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +1 -1
- package/src/client/components/layout/session-sidebar/CategoryHeader.worktree.test.tsx +1 -1
- package/src/client/components/layout/session-sidebar/ClassicView.tsx +121 -0
- package/src/client/components/layout/session-sidebar/Header.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/OverflowMenu.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
- package/src/client/components/layout/session-sidebar/SessionItem.batch.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/SessionItem.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +99 -112
- package/src/client/components/layout/session-sidebar/Skeleton.tsx +1 -1
- package/src/client/components/layout/session-sidebar/Toolbar.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/Toolbar.tsx +2 -2
- package/src/client/components/layout/session-sidebar/WorktreeBadge.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/WorktreeBadge.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/ActionRow.tsx +149 -0
- package/src/client/components/layout/session-sidebar/modern/FilterChips.tsx +150 -0
- package/src/client/components/layout/session-sidebar/modern/SearchField.tsx +75 -0
- package/src/client/components/layout/session-sidebar/modern/Skeleton.tsx +55 -0
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +184 -0
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +333 -0
- package/src/client/components/layout/session-sidebar/modern/index.tsx +147 -0
- package/src/client/components/layout/session-sidebar/new-session-context.test.ts +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/CloneField.tsx +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/DirectoryList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/LocationBar.tsx +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/new-workspace-modal/use-browse.ts +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskList.tsx +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/folders.ts +1 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +1 -1
- package/src/client/components/layout/session-sidebar/variant-props.ts +73 -0
- package/src/client/components/mobile/SessionSidebar.tsx +137 -146
- package/src/client/components/mobile/header-titlebar.test.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.test.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/OutlineButton.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/PreviewScroller.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +1 -1
- package/src/client/components/mobile/mobile-right-sidebar/editor-props.ts +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/ClassicDrawer.tsx +140 -0
- package/src/client/components/mobile/mobile-session-sidebar/Dialogs.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Dock.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/RevealRow.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.test.ts +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Skeleton.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.test.ts +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +3 -3
- package/src/client/components/mobile/mobile-session-sidebar/WorktreeDialog.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/folder-gap.test.ts +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/folder-gap.ts +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/use-dock.ts +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/use-drawer.ts +104 -0
- package/src/client/components/mobile/open-file-payload.test.ts +1 -1
- package/src/client/components/mobile/open-file-payload.ts +1 -1
- package/src/client/components/mobile/panel-chips.test.tsx +1 -1
- package/src/client/components/mobile/panel-chips.tsx +1 -1
- package/src/client/components/mobile/worktree-session.ts +1 -1
- package/src/client/components/settings/LazyModal.tsx +1 -1
- package/src/client/components/settings/Modal.tsx +6 -38
- package/src/client/components/settings/Sidebar.test.tsx +1 -1
- package/src/client/components/settings/Sidebar.tsx +1 -1
- package/src/client/components/settings/apply-side-effects.test.ts +102 -0
- package/src/client/components/settings/apply-side-effects.ts +90 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +11 -1
- package/src/client/components/settings/categories/ChatSettings.test.tsx +121 -0
- package/src/client/components/settings/categories/ChatSettings.tsx +81 -14
- package/src/client/components/settings/categories/OmpSettings.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorFontSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorIndentSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.test.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorThemeSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/SidebarStyleSection.tsx +157 -0
- package/src/client/components/settings/categories/appearance-settings/ThemeCard.tsx +1 -1
- package/src/client/components/settings/categories/appearance-settings/ThemeGrid.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/ComposerStyleSection.tsx +177 -0
- package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +1 -1
- package/src/client/components/settings/categories/chat-settings/LayoutSection.tsx +112 -0
- package/src/client/components/settings/categories/chat-settings/SidebarList.tsx +73 -0
- package/src/client/components/settings/categories/chat-settings/ToolRenderSection.tsx +144 -0
- package/src/client/components/settings/categories/chat-settings/groups.test.ts +42 -0
- package/src/client/components/settings/categories/chat-settings/groups.ts +81 -0
- package/src/client/components/settings/categories/omp-settings/ConfigTabs.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/ExtensionsPanel.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/PresetBar.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/RoleEditor.test.ts +1 -1
- package/src/client/components/settings/categories/omp-settings/RoleEditor.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +1 -1
- package/src/client/components/settings/categories/omp-settings/RowEditor.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.test.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/LeftDockSettings.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Meta.test.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Meta.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Placement.test.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Placement.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +1 -1
- package/src/client/components/settings/categories/panel-plugins/SyncBlockedNotice.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/Toolbar.tsx +1 -1
- package/src/client/components/settings/categories/plugin-settings/selection.ts +1 -1
- package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/worktree-row.test.ts +1 -1
- package/src/client/components/settings/categories/project-settings/worktree-row.ts +1 -1
- package/src/client/components/settings/categories/provider-settings/SidebarList.plugin.test.ts +1 -1
- package/src/client/components/settings/categories/provider-settings/auth-section.test.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/groups.test.ts +1 -1
- package/src/client/components/settings/categories/provider-settings/groups.ts +1 -1
- package/src/client/components/settings/categories/provider-settings/layout.test.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/model-dialogs.test.tsx +1 -1
- package/src/client/components/settings/categories/provider-settings/preset-picker.test.tsx +1 -1
- package/src/client/components/settings/categories/usage-settings/usage-and-picker.test.ts +2 -69
- package/src/client/components/settings/categories/usage-settings/usage-icons.test.tsx +1 -1
- package/src/client/components/settings/master-detail/index.tsx +1 -1
- package/src/client/components/workspace/browser-panel/Screencast.test.ts +112 -0
- package/src/client/components/workspace/browser-panel/Screencast.tsx +37 -11
- package/src/client/components/workspace/browser-panel/index.tsx +2 -2
- package/src/client/components/workspace/btw-panel/AskCard.tsx +1 -1
- package/src/client/components/workspace/btw-panel/Messages.tsx +1 -1
- package/src/client/components/workspace/btw-panel/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.plugin.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +8 -1
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +5 -2
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/GoalNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/MessageItem.gutter.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/MessageItem.tsx +14 -5
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +60 -1
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +106 -37
- package/src/client/components/workspace/chat-timeline/MinimapShortcuts.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/PendingChatView.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/PluginMessageActions.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/PluginMessageActions.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/QueueList.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/SessionSkeleton.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/SubagentControls.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/SubagentView.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/SystemNotice.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/SystemNotice.tsx +13 -6
- package/src/client/components/workspace/chat-timeline/ThinkingSection.tsx +108 -67
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +11 -5
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.test.ts +29 -9
- package/src/client/components/workspace/chat-timeline/ToolCallingSection.tsx +49 -5
- package/src/client/components/workspace/chat-timeline/TurnRail.tsx +64 -0
- package/src/client/components/workspace/chat-timeline/block-chrome.test.tsx +158 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerNotice.tsx +50 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +178 -0
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalSurfaces.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/PluginComposerSlots.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/PluginComposerSlots.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/VoiceNotice.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/compact.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/expansion.ts +10 -2
- package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +116 -131
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +12 -5
- package/src/client/components/workspace/chat-timeline/chat-input/selection.ts +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/stretch-send.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/styles/index.tsx +111 -0
- package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +181 -0
- package/src/client/components/workspace/chat-timeline/index.tsx +7 -2
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FrameControl.tsx +2 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/GroupedAsk.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OptionRow.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/OrphanAsks.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/PluginPendingInteractions.tsx +3 -50
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionBlock.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/QuestionCard.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/drafts.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/ApprovalBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/approval-gate.test.tsx +32 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/shortcuts.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/hashline-patch/index.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/index.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Edit.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Eval.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/FileMatches.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/GoalRecord.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Proc.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Read.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-test-util.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/plugin-renderers.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/plugin-renderers.ts +7 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/registry.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactBody.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactBody.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ArtifactChip.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/DiffView.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/HighlightedCode.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/OutputWindow.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolBody.tsx +98 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolCardShell.tsx +4 -2
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolFactChips.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/ToolPanelHeader.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-helpers.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/numbered-code.test.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/numbered-code.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/read-line-meta.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/status-glyph.tsx +56 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/toggle-label.ts +19 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-input.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/tool-view.ts +132 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/truncate.test.ts +1 -1
- package/src/client/components/workspace/chat-timeline/{ToolCallCard.plugin.test.ts → tool-renderers/styles/Card.plugin.test.ts} +4 -4
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Card.tsx +60 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Compact.tsx +89 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal.tsx +72 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/Trace.tsx +84 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/props.ts +22 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/styles/styles.test.tsx +153 -0
- package/src/client/components/workspace/context-panel/pure-helpers.test.ts +1 -1
- package/src/client/components/workspace/diff-panel/HunkStepper.tsx +1 -1
- package/src/client/components/workspace/diff-panel/MergeDiffView.tsx +1 -1
- package/src/client/components/workspace/diff-panel/ThemedMergeDiffView.tsx +1 -1
- package/src/client/components/workspace/diff-panel/ToolbarSegments.tsx +1 -1
- package/src/client/components/workspace/diff-panel/changes.ts +1 -1
- package/src/client/components/workspace/diff-panel/chunks.ts +1 -1
- package/src/client/components/workspace/diff-panel/folding.test.ts +1 -1
- package/src/client/components/workspace/diff-panel/folding.ts +7 -2
- package/src/client/components/workspace/diff-panel/merge.test.ts +1 -1
- package/src/client/components/workspace/diff-panel/merge.ts +1 -1
- package/src/client/components/workspace/editor/CommandPalette.test.ts +1 -1
- package/src/client/components/workspace/editor/CommandPalette.tsx +1 -1
- package/src/client/components/workspace/editor/ConflictStrip.tsx +1 -1
- package/src/client/components/workspace/editor/Dialogs.tsx +1 -1
- package/src/client/components/workspace/editor/EmptyEditor.tsx +1 -1
- package/src/client/components/workspace/editor/ExternalChangeStrip.tsx +1 -1
- package/src/client/components/workspace/editor/FindWidget.test.ts +1 -1
- package/src/client/components/workspace/editor/FindWidget.tsx +1 -1
- package/src/client/components/workspace/editor/GoToLineModal.tsx +1 -1
- package/src/client/components/workspace/editor/Notices.tsx +1 -1
- package/src/client/components/workspace/editor/Pane.tsx +1 -1
- package/src/client/components/workspace/editor/PluginColumn.tsx +1 -1
- package/src/client/components/workspace/editor/PluginRail.tsx +1 -1
- package/src/client/components/workspace/editor/QuickOpenModal.tsx +1 -1
- package/src/client/components/workspace/editor/SaveAsModal.tsx +1 -1
- package/src/client/components/workspace/editor/SplitColumn.tsx +1 -1
- package/src/client/components/workspace/editor/SplitPane.tsx +1 -1
- package/src/client/components/workspace/editor/StatusBar.tsx +1 -1
- package/src/client/components/workspace/editor/TabContextMenu.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.test.ts +1 -1
- package/src/client/components/workspace/editor/plugin-file-view.test.ts +1 -1
- package/src/client/components/workspace/editor/plugin-file-view.tsx +1 -1
- package/src/client/components/workspace/editor/plugin-rail.test.tsx +1 -1
- package/src/client/components/workspace/editor/props.ts +1 -1
- package/src/client/components/workspace/editor/toolbar-clusters.test.ts +1 -1
- package/src/client/components/workspace/editor/toolbar-clusters.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/CsvGrid.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/DataGrid.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/DocxView.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/ImageView.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/PdfView.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/SheetView.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/SvgPreview.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/ViewerError.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/bytes.test.ts +1 -1
- package/src/client/components/workspace/editor/viewers/bytes.ts +1 -1
- package/src/client/components/workspace/editor/viewers/dispatch.tsx +1 -1
- package/src/client/components/workspace/editor/viewers/mammoth-browser.d.ts +1 -1
- package/src/client/components/workspace/editor/viewers/use-byte-document.test.ts +1 -1
- package/src/client/components/workspace/editor/viewers/use-byte-document.ts +1 -1
- package/src/client/components/workspace/editor/viewers/use-byte-url.test.ts +1 -1
- package/src/client/components/workspace/editor/viewers/use-byte-url.ts +1 -1
- package/src/client/components/workspace/editor/viewers/viewers.test.ts +1 -1
- package/src/client/components/workspace/file-explorer/ContextMenu.tsx +1 -1
- package/src/client/components/workspace/file-explorer/OutlineSection.test.tsx +1 -1
- package/src/client/components/workspace/file-explorer/OutlineSection.tsx +1 -1
- package/src/client/components/workspace/file-explorer/RootMenu.tsx +1 -1
- package/src/client/components/workspace/file-explorer/Toolbar.tsx +1 -1
- package/src/client/components/workspace/file-explorer/clipboard.test.ts +1 -1
- package/src/client/components/workspace/file-explorer/drag.test.ts +1 -1
- package/src/client/components/workspace/file-explorer/filter.ts +1 -1
- package/src/client/components/workspace/file-explorer/index.test.ts +1 -1
- package/src/client/components/workspace/file-explorer/local-edit.test.ts +1 -1
- package/src/client/components/workspace/file-explorer/root-menu.test.ts +1 -1
- package/src/client/components/workspace/git-panel/StashSection.test.tsx +1 -1
- package/src/client/components/workspace/git-panel/commit-modal/CommitRow.test.ts +1 -1
- package/src/client/components/workspace/git-panel/commit-modal.test.ts +1 -1
- package/src/client/components/workspace/git-panel/confirm-request.test.ts +1 -1
- package/src/client/components/workspace/git-panel/index.test.ts +1 -1
- package/src/client/components/workspace/git-panel/init-state.test.ts +1 -1
- package/src/client/components/workspace/model-dropdown/Item.plugin.test.ts +87 -13
- package/src/client/components/workspace/model-dropdown/Item.tsx +67 -20
- package/src/client/components/workspace/model-dropdown/Panel.tsx +53 -9
- package/src/client/components/workspace/model-dropdown/Section.test.tsx +241 -0
- package/src/client/components/workspace/model-dropdown/Section.tsx +34 -19
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.test.tsx +126 -0
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +119 -74
- package/src/client/components/workspace/model-dropdown/collapsed.ts +39 -43
- package/src/client/components/workspace/model-dropdown/groups.test.ts +165 -2
- package/src/client/components/workspace/model-dropdown/groups.ts +95 -18
- package/src/client/components/workspace/model-dropdown/index.tsx +27 -19
- package/src/client/components/workspace/model-dropdown/refresh.test.tsx +68 -18
- package/src/client/components/workspace/model-dropdown/trigger.test.ts +1 -1
- package/src/client/components/workspace/panels/builtin.test.ts +1 -1
- package/src/client/components/workspace/plan-panel/Nav.tsx +1 -1
- package/src/client/components/workspace/plan-panel/PageView.tsx +1 -1
- package/src/client/components/workspace/plan-panel/index.tsx +1 -1
- package/src/client/components/workspace/plugin-panel/RowScope.test.tsx +1 -1
- package/src/client/components/workspace/plugin-panel/catalog.tsx +7 -2
- package/src/client/components/workspace/repo-picker/Modal.test.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Modal.tsx +1 -1
- package/src/client/components/workspace/repo-picker/Row.tsx +1 -1
- package/src/client/components/workspace/repo-picker/index.test.tsx +1 -1
- package/src/client/components/workspace/repo-picker/index.tsx +1 -1
- package/src/client/components/workspace/search-panel/Body.test.ts +1 -1
- package/src/client/components/workspace/search-panel/Results.tsx +1 -1
- package/src/client/components/workspace/search-panel/Row.tsx +1 -1
- package/src/client/components/workspace/terminal-panel/Header.test.ts +1 -1
- package/src/client/components/workspace/terminal-panel/RealtimeXtermView.tsx +28 -1
- package/src/client/components/workspace/terminal-panel/index.tsx +4 -1
- package/src/client/components/workspace/terminal-panel/mount.ts +15 -19
- package/src/client/components/workspace/terminal-panel/webgl.test.ts +75 -0
- package/src/client/components/workspace/terminal-panel/webgl.ts +108 -0
- package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +1 -1
- package/src/client/components/workspace/todo-panel/index.tsx +1 -1
- package/src/client/components/workspace/usage-panel/report.test.ts +1 -1
- package/src/client/components/workspace/usage-panel/report.ts +1 -1
- package/src/client/components/workspace/wiki-panel/Nav.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/PageView.tsx +1 -1
- package/src/client/components/workspace/wiki-panel/index.tsx +1 -1
- package/src/client/components/workspace/worktree-modal/index.test.tsx +1 -1
- package/src/client/components/workspace/worktree-modal/index.tsx +1 -1
- package/src/client/data/context-data/index.test.ts +1 -1
- package/src/client/data/settings/omp-schema.json +151 -6
- package/src/client/hooks/browser/use-screencast.ts +17 -9
- package/src/client/hooks/chat/btw/index.ts +1 -1
- package/src/client/hooks/chat/btw/intercept.test.ts +1 -1
- package/src/client/hooks/chat/btw/intercept.ts +1 -1
- package/src/client/hooks/chat/btw/mode.ts +1 -1
- package/src/client/hooks/chat/composer/attachments.test.ts +1 -1
- package/src/client/hooks/chat/composer/attachments.ts +1 -1
- package/src/client/hooks/chat/composer/auto-grow.test.ts +60 -6
- package/src/client/hooks/chat/composer/auto-grow.ts +71 -19
- package/src/client/hooks/chat/composer/browser-context.ts +1 -1
- package/src/client/hooks/chat/composer/compact.ts +1 -1
- package/src/client/hooks/chat/composer/drop-entries.test.ts +1 -1
- package/src/client/hooks/chat/composer/drop-entries.ts +1 -1
- package/src/client/hooks/chat/composer/drop-payload.test.ts +1 -1
- package/src/client/hooks/chat/composer/drop-payload.ts +1 -1
- package/src/client/hooks/chat/composer/drop-references.ts +1 -1
- package/src/client/hooks/chat/composer/file-drop.test.ts +1 -1
- package/src/client/hooks/chat/composer/file-drop.ts +1 -1
- package/src/client/hooks/chat/composer/file-reads.test.ts +1 -1
- package/src/client/hooks/chat/composer/file-reads.ts +1 -1
- package/src/client/hooks/chat/composer/items.test.ts +1 -1
- package/src/client/hooks/chat/composer/items.ts +1 -1
- package/src/client/hooks/chat/composer/model-selection.ts +1 -1
- package/src/client/hooks/chat/composer/pipeline.test.ts +1 -1
- package/src/client/hooks/chat/composer/pipeline.ts +1 -1
- package/src/client/hooks/chat/composer/publish-state.ts +1 -1
- package/src/client/hooks/chat/composer/speech-to-text.ts +1 -1
- package/src/client/hooks/chat/composer/style.ts +66 -0
- package/src/client/hooks/chat/composer/use-draft.ts +1 -1
- package/src/client/hooks/chat/composer/voice-input.ts +1 -1
- package/src/client/hooks/chat/context/telemetry.ts +1 -1
- package/src/client/hooks/chat/omp/folder-auto-expand.ts +1 -1
- package/src/client/hooks/chat/omp/index-probe.test.ts +1 -1
- package/src/client/hooks/chat/omp/owner-redirect.test.ts +1 -1
- package/src/client/hooks/chat/omp/owner-redirect.ts +1 -1
- package/src/client/hooks/chat/omp/pending-rows.ts +1 -1
- package/src/client/hooks/chat/omp/pending-sessions.test.ts +1 -1
- package/src/client/hooks/chat/omp/pending-sessions.ts +1 -1
- package/src/client/hooks/chat/omp/pending-sessions.waiting.test.ts +1 -1
- package/src/client/hooks/chat/omp/pending-waiting.ts +1 -1
- package/src/client/hooks/chat/omp/prompt-send.test.ts +1 -1
- package/src/client/hooks/chat/omp/prompt-send.ts +1 -1
- package/src/client/hooks/chat/omp/reconnect.test.ts +1 -1
- package/src/client/hooks/chat/omp/reconnect.ts +1 -1
- package/src/client/hooks/chat/omp/run-liveness.test.ts +1 -1
- package/src/client/hooks/chat/omp/run-liveness.ts +1 -1
- package/src/client/hooks/chat/omp/run-switch.test.ts +1 -1
- package/src/client/hooks/chat/omp/run-switch.ts +1 -1
- package/src/client/hooks/chat/omp/session-list.activity.test.ts +1 -1
- package/src/client/hooks/chat/omp/session-list.test-util.ts +1 -1
- package/src/client/hooks/chat/omp/session-list.test.ts +1 -1
- package/src/client/hooks/chat/omp/session-list.tsx +1 -1
- package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +1 -1
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +1 -1
- package/src/client/hooks/chat/omp/session-statuses.test.ts +1 -1
- package/src/client/hooks/chat/omp/session-statuses.ts +1 -1
- package/src/client/hooks/chat/omp/sidebar-overlay.ts +1 -1
- package/src/client/hooks/chat/omp/status.ts +1 -1
- package/src/client/hooks/chat/omp/stream-rpc.test.ts +1 -1
- package/src/client/hooks/chat/omp/stream.test.ts +1 -1
- package/src/client/hooks/chat/omp/stream.ts +1 -1
- package/src/client/hooks/chat/timeline/access-mode.ts +1 -1
- package/src/client/hooks/chat/timeline/actions.test.ts +1 -1
- package/src/client/hooks/chat/timeline/actions.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames-grouped.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.test.ts +1 -1
- package/src/client/hooks/chat/timeline/ask-frames.ts +1 -1
- package/src/client/hooks/chat/timeline/auto-scroll.ts +1 -1
- package/src/client/hooks/chat/timeline/composer-local-actions.test.ts +1 -1
- package/src/client/hooks/chat/timeline/composer-modes.ts +1 -1
- package/src/client/hooks/chat/timeline/composer-refs.ts +1 -1
- package/src/client/hooks/chat/timeline/deferred-model.test.ts +1 -1
- package/src/client/hooks/chat/timeline/deferred-model.ts +1 -1
- package/src/client/hooks/chat/timeline/enqueue-follow-up.ts +1 -1
- package/src/client/hooks/chat/timeline/extension-dialog.ts +1 -1
- package/src/client/hooks/chat/timeline/generating.test.ts +1 -1
- package/src/client/hooks/chat/timeline/generating.ts +1 -1
- package/src/client/hooks/chat/timeline/goal-command.ts +1 -1
- package/src/client/hooks/chat/timeline/index.ts +13 -9
- package/src/client/hooks/chat/timeline/jump-rail.ts +63 -0
- package/src/client/hooks/chat/timeline/local-commands.ts +1 -1
- package/src/client/hooks/chat/timeline/lost-run.test.ts +1 -1
- package/src/client/hooks/chat/timeline/lost-run.ts +1 -1
- package/src/client/hooks/chat/timeline/mode-marker-spellings.test.ts +1 -1
- package/src/client/hooks/chat/timeline/mode-markers.ts +1 -1
- package/src/client/hooks/chat/timeline/modes.test.ts +1 -1
- package/src/client/hooks/chat/timeline/modes.ts +1 -1
- package/src/client/hooks/chat/timeline/new-chat-open.ts +1 -1
- package/src/client/hooks/chat/timeline/new-chat.test.ts +1 -1
- package/src/client/hooks/chat/timeline/new-chat.ts +1 -1
- package/src/client/hooks/chat/timeline/plan-review.test.ts +1 -1
- package/src/client/hooks/chat/timeline/plan-review.ts +1 -1
- package/src/client/hooks/chat/timeline/plugin-commands.test.ts +1 -1
- package/src/client/hooks/chat/timeline/plugin-commands.ts +1 -1
- package/src/client/hooks/chat/timeline/prompt-text.test.ts +1 -1
- package/src/client/hooks/chat/timeline/prompt-text.ts +1 -1
- package/src/client/hooks/chat/timeline/queue-actions.ts +1 -1
- package/src/client/hooks/chat/timeline/queue-rewind.test.ts +1 -1
- package/src/client/hooks/chat/timeline/queue.ts +1 -1
- package/src/client/hooks/chat/timeline/rail-jump.test.ts +32 -2
- package/src/client/hooks/chat/timeline/rail-jump.ts +39 -20
- package/src/client/hooks/chat/timeline/rewind-actions.test.ts +1 -1
- package/src/client/hooks/chat/timeline/rewind-actions.ts +1 -1
- package/src/client/hooks/chat/timeline/rewind.ts +1 -1
- package/src/client/hooks/chat/timeline/row-window.test.ts +211 -0
- package/src/client/hooks/chat/timeline/row-window.ts +350 -0
- package/src/client/hooks/chat/timeline/run-identity.ts +1 -1
- package/src/client/hooks/chat/timeline/scope.ts +1 -1
- package/src/client/hooks/chat/timeline/scroll-probe.test-util.ts +1 -1
- package/src/client/hooks/chat/timeline/scroll-reading-back.test.ts +1 -1
- package/src/client/hooks/chat/timeline/scroll.test.ts +1 -1
- package/src/client/hooks/chat/timeline/scroll.ts +32 -3
- package/src/client/hooks/chat/timeline/send-execute.test.ts +1 -1
- package/src/client/hooks/chat/timeline/send-helpers.ts +1 -1
- package/src/client/hooks/chat/timeline/send-refusal.test.ts +1 -1
- package/src/client/hooks/chat/timeline/send-steer.test.ts +1 -1
- package/src/client/hooks/chat/timeline/send.test-util.ts +1 -1
- package/src/client/hooks/chat/timeline/send.test.ts +1 -1
- package/src/client/hooks/chat/timeline/send.ts +1 -1
- package/src/client/hooks/chat/timeline/session-jump.ts +142 -0
- package/src/client/hooks/chat/timeline/session-load.test-util.ts +1 -1
- package/src/client/hooks/chat/timeline/session-load.test.ts +1 -1
- package/src/client/hooks/chat/timeline/session-load.ts +1 -1
- package/src/client/hooks/chat/timeline/session-pagination.test.ts +16 -1
- package/src/client/hooks/chat/timeline/session-pagination.ts +83 -77
- package/src/client/hooks/chat/timeline/session-scope.test.ts +1 -1
- package/src/client/hooks/chat/timeline/session-switch.test.ts +1 -1
- package/src/client/hooks/chat/timeline/session-switch.ts +1 -1
- package/src/client/hooks/chat/timeline/session-title.ts +1 -1
- package/src/client/hooks/chat/timeline/spawn-target.ts +1 -1
- package/src/client/hooks/chat/timeline/subagent-view.ts +1 -1
- package/src/client/hooks/chat/timeline/timeline-mode-state.test.ts +1 -1
- package/src/client/hooks/chat/timeline/timeline-rail.test.ts +6 -10
- package/src/client/hooks/chat/timeline/tool-open.test.ts +1 -1
- package/src/client/hooks/chat/timeline/tool-open.ts +1 -1
- package/src/client/hooks/chat/timeline/tool-render-mode.ts +65 -0
- package/src/client/hooks/chat/timeline/tui-only-guard.ts +1 -1
- package/src/client/hooks/chat/timeline/user-turns.ts +24 -28
- package/src/client/hooks/chat/timeline/width-mode.test.ts +82 -0
- package/src/client/hooks/chat/timeline/width-mode.ts +68 -0
- package/src/client/hooks/chat/waiting/cancel.ts +1 -1
- package/src/client/hooks/chat/waiting/choice.ts +1 -1
- package/src/client/hooks/chat/waiting/dispatch.ts +1 -1
- package/src/client/hooks/chat/waiting/held.ts +1 -1
- package/src/client/hooks/chat/waiting/hold.test.ts +1 -1
- package/src/client/hooks/chat/waiting/hold.ts +1 -1
- package/src/client/hooks/chat/waiting/store.ts +1 -1
- package/src/client/hooks/code/deferred-highlight.test.ts +1 -1
- package/src/client/hooks/code/deferred-highlight.ts +1 -1
- package/src/client/hooks/desktop/servers.ts +1 -1
- package/src/client/hooks/editor/blame-settings.ts +1 -1
- package/src/client/hooks/editor/blame.test.ts +1 -1
- package/src/client/hooks/editor/blame.ts +1 -1
- package/src/client/hooks/editor/caret-position.test.ts +1 -1
- package/src/client/hooks/editor/caret-position.ts +1 -1
- package/src/client/hooks/editor/file-actions.ts +1 -1
- package/src/client/hooks/editor/file-editor-types.ts +1 -1
- package/src/client/hooks/editor/find-harness.test-util.ts +1 -1
- package/src/client/hooks/editor/find-history.test.ts +1 -1
- package/src/client/hooks/editor/find-history.ts +1 -1
- package/src/client/hooks/editor/find-selection-range.test.ts +1 -1
- package/src/client/hooks/editor/find-selection-range.ts +1 -1
- package/src/client/hooks/editor/find-state.ts +1 -1
- package/src/client/hooks/editor/font.test.ts +1 -1
- package/src/client/hooks/editor/font.ts +1 -1
- package/src/client/hooks/editor/indent-settings.test.ts +1 -1
- package/src/client/hooks/editor/indent-settings.ts +1 -1
- package/src/client/hooks/editor/quick-open.test.ts +1 -1
- package/src/client/hooks/editor/quick-open.ts +1 -1
- package/src/client/hooks/editor/resolve-viewer.test.ts +1 -1
- package/src/client/hooks/editor/resolve-viewer.ts +1 -1
- package/src/client/hooks/editor/save-as.test.ts +1 -1
- package/src/client/hooks/editor/save-as.ts +1 -1
- package/src/client/hooks/editor/save-file.test.ts +1 -1
- package/src/client/hooks/editor/save-file.ts +1 -1
- package/src/client/hooks/editor/theme.test.ts +1 -1
- package/src/client/hooks/editor/theme.ts +1 -1
- package/src/client/hooks/editor/typing-settings.test.ts +1 -1
- package/src/client/hooks/editor/typing-settings.ts +1 -1
- package/src/client/hooks/editor/use-close-guard.ts +1 -1
- package/src/client/hooks/editor/use-editor-document.test.ts +1 -1
- package/src/client/hooks/editor/use-editor-document.ts +1 -1
- package/src/client/hooks/editor/use-editor-drop-overlay.test.ts +1 -1
- package/src/client/hooks/editor/use-editor-drop.shell.test.ts +1 -1
- package/src/client/hooks/editor/use-editor-drop.test-util.ts +1 -1
- package/src/client/hooks/editor/use-editor-drop.test.ts +1 -1
- package/src/client/hooks/editor/use-editor-drop.ts +1 -1
- package/src/client/hooks/editor/use-editor-find-write.test.ts +1 -1
- package/src/client/hooks/editor/use-editor-find.test.ts +1 -1
- package/src/client/hooks/editor/use-editor-find.ts +1 -1
- package/src/client/hooks/editor/use-editor-outline-bridge.ts +1 -1
- package/src/client/hooks/editor/use-editor-panel-keys.ts +1 -1
- package/src/client/hooks/editor/use-editor-tab-state.ts +1 -1
- package/src/client/hooks/editor/use-external-change-notice.ts +1 -1
- package/src/client/hooks/editor/use-external-change.test.ts +1 -1
- package/src/client/hooks/editor/use-external-change.ts +1 -1
- package/src/client/hooks/editor/use-file-editor-writes.test.ts +1 -1
- package/src/client/hooks/editor/use-file-editor.test.ts +1 -1
- package/src/client/hooks/editor/use-file-read.ts +1 -1
- package/src/client/hooks/editor/use-file-transfer.ts +1 -1
- package/src/client/hooks/editor/use-file-writes.ts +1 -1
- package/src/client/hooks/editor/use-heading-jump.test.ts +1 -1
- package/src/client/hooks/editor/use-heading-jump.ts +1 -1
- package/src/client/hooks/editor/use-line-jump.test.ts +1 -1
- package/src/client/hooks/editor/use-line-jump.ts +1 -1
- package/src/client/hooks/editor/use-line-reveal.ts +1 -1
- package/src/client/hooks/editor/use-mobile-editor-find.ts +1 -1
- package/src/client/hooks/editor/use-mobile-reveal.ts +1 -1
- package/src/client/hooks/editor/use-outline-view.test.ts +1 -1
- package/src/client/hooks/editor/use-outline-view.ts +1 -1
- package/src/client/hooks/editor/use-scroll-restore.test.ts +1 -1
- package/src/client/hooks/editor/use-scroll-restore.ts +1 -1
- package/src/client/hooks/editor/use-search-reveal-jump.ts +1 -1
- package/src/client/hooks/editor/use-search-reveal.ts +1 -1
- package/src/client/hooks/editor/use-split-editor.test.tsx +1 -1
- package/src/client/hooks/editor/use-split-editor.ts +1 -1
- package/src/client/hooks/editor/use-unload-guard.tsx +1 -1
- package/src/client/hooks/editor/use-write-conflict.test.ts +1 -1
- package/src/client/hooks/editor/use-write-conflict.ts +1 -1
- package/src/client/hooks/editor/wheel-zoom.test.ts +1 -1
- package/src/client/hooks/editor/wheel-zoom.ts +1 -1
- package/src/client/hooks/settings/crud-list.test.ts +1 -1
- package/src/client/hooks/settings/model-roles.ts +1 -1
- package/src/client/hooks/settings/plugins.ts +1 -1
- package/src/client/hooks/settings/providers/actions.ts +1 -1
- package/src/client/hooks/settings/providers/api.ts +1 -1
- package/src/client/hooks/settings/providers/index.ts +2 -2
- package/src/client/hooks/settings/providers/login.test.ts +1 -1
- package/src/client/hooks/settings/providers/login.ts +12 -3
- package/src/client/hooks/settings/providers/logout.ts +1 -1
- package/src/client/hooks/settings/providers/messages.ts +1 -1
- package/src/client/hooks/settings/providers/model-actions.ts +1 -1
- package/src/client/hooks/settings/reload-engine.ts +1 -1
- package/src/client/hooks/settings/restart-kabmo.test.ts +1 -1
- package/src/client/hooks/settings/restart-kabmo.ts +1 -1
- package/src/client/hooks/settings/settings-siblings.test.ts +1 -1
- package/src/client/hooks/settings/workspace-roots.ts +1 -1
- package/src/client/hooks/ui/auth.test.ts +1 -1
- package/src/client/hooks/ui/auth.ts +1 -1
- package/src/client/hooks/ui/drag-presence.test.ts +1 -1
- package/src/client/hooks/ui/drag-presence.ts +1 -1
- package/src/client/hooks/ui/editor-error-toast.ts +1 -1
- package/src/client/hooks/ui/inline-rename.ts +1 -1
- package/src/client/hooks/ui/input-required-alert.ts +1 -1
- package/src/client/hooks/ui/keyboard-inset.test.ts +1 -1
- package/src/client/hooks/ui/keyboard-inset.ts +1 -1
- package/src/client/hooks/ui/long-press.test.ts +1 -1
- package/src/client/hooks/ui/long-press.ts +1 -1
- package/src/client/hooks/ui/media-query.ts +1 -1
- package/src/client/hooks/ui/output-reveal.ts +1 -1
- package/src/client/hooks/ui/realtime.test.ts +1 -1
- package/src/client/hooks/ui/realtime.ts +1 -1
- package/src/client/hooks/ui/settings-modal.test.ts +1 -1
- package/src/client/hooks/ui/settings-modal.ts +1 -1
- package/src/client/hooks/ui/show-more.ts +1 -1
- package/src/client/hooks/ui/syntax-ready.ts +1 -1
- package/src/client/hooks/ui/text-overflow.test.ts +1 -1
- package/src/client/hooks/ui/text-overflow.ts +1 -1
- package/src/client/hooks/ui/theme.ts +1 -1
- package/src/client/hooks/ui/touch-device.ts +1 -1
- package/src/client/hooks/ui/ui-alert.test.ts +1 -1
- package/src/client/hooks/ui/ui-environment.test.ts +1 -1
- package/src/client/hooks/ui/ui-feedback.test.ts +1 -1
- package/src/client/hooks/ui/ui-inline-rename.test.ts +1 -1
- package/src/client/hooks/ui/ui-listeners.test.ts +1 -1
- package/src/client/hooks/ui/ui-sounds.test.ts +1 -1
- package/src/client/hooks/ui/ui-syntax-ready.test.ts +1 -1
- package/src/client/hooks/ui/updates/index.test.ts +1 -1
- package/src/client/hooks/ui/updates/restart.test.ts +1 -1
- package/src/client/hooks/ui/updates/restart.ts +1 -1
- package/src/client/hooks/ui/updates/shell-download.test.ts +1 -1
- package/src/client/hooks/ui/updates/shell-offer.test.ts +1 -1
- package/src/client/hooks/ui/updates/shell-update.test.ts +1 -1
- package/src/client/hooks/ui/updates/shell-update.ts +1 -1
- package/src/client/hooks/ui/window-chrome.ts +1 -1
- package/src/client/hooks/ui/window-event.ts +20 -4
- package/src/client/hooks/workspace/batch-archive-run.ts +47 -0
- package/src/client/hooks/workspace/batch-archive.test.ts +59 -0
- package/src/client/hooks/workspace/batch-archive.ts +78 -0
- package/src/client/hooks/workspace/batch-delete-run.ts +1 -1
- package/src/client/hooks/workspace/batch-delete.ts +1 -1
- package/src/client/hooks/workspace/batch-selection.ts +1 -1
- package/src/client/hooks/workspace/commit-box.test.ts +1 -1
- package/src/client/hooks/workspace/commit-box.ts +1 -1
- package/src/client/hooks/workspace/commit-layer.test.ts +1 -1
- package/src/client/hooks/workspace/diff-git-actions.ts +1 -1
- package/src/client/hooks/workspace/directives.ts +1 -1
- package/src/client/hooks/workspace/editor-view.ts +1 -1
- package/src/client/hooks/workspace/expanded-sessions.ts +1 -1
- package/src/client/hooks/workspace/file-clipboard.test.ts +1 -1
- package/src/client/hooks/workspace/file-clipboard.ts +1 -1
- package/src/client/hooks/workspace/file-create.ts +1 -1
- package/src/client/hooks/workspace/file-listing.ts +1 -1
- package/src/client/hooks/workspace/file-row-drag.ts +1 -1
- package/src/client/hooks/workspace/file-tabs.test.ts +1 -1
- package/src/client/hooks/workspace/file-tree-actions-clipboard.test.ts +1 -1
- package/src/client/hooks/workspace/file-tree-actions.test.ts +1 -1
- package/src/client/hooks/workspace/file-tree-actions.ts +1 -1
- package/src/client/hooks/workspace/file-tree-edits.ts +1 -1
- package/src/client/hooks/workspace/folder-expansion.test.ts +1 -1
- package/src/client/hooks/workspace/folder-expansion.ts +1 -1
- package/src/client/hooks/workspace/git-action-outcome.ts +1 -1
- package/src/client/hooks/workspace/git-status.test.ts +1 -1
- package/src/client/hooks/workspace/git-tree.test.ts +1 -1
- package/src/client/hooks/workspace/keybindings.ts +1 -1
- package/src/client/hooks/workspace/left-dock.ts +1 -1
- package/src/client/hooks/workspace/list-slots.test.ts +1 -1
- package/src/client/hooks/workspace/list-slots.ts +1 -1
- package/src/client/hooks/workspace/missing-files.test.ts +1 -1
- package/src/client/hooks/workspace/missing-files.ts +1 -1
- package/src/client/hooks/workspace/navbar-session-actions.ts +1 -1
- package/src/client/hooks/workspace/new-workspace.ts +1 -1
- package/src/client/hooks/workspace/open-panel.ts +1 -1
- package/src/client/hooks/workspace/panel-order.ts +1 -1
- package/src/client/hooks/workspace/panel-registry.ts +1 -1
- package/src/client/hooks/workspace/panel-reorder.ts +1 -1
- package/src/client/hooks/workspace/panel-widths.test.ts +1 -1
- package/src/client/hooks/workspace/plugin-contributions.test.ts +1 -1
- package/src/client/hooks/workspace/plugin-contributions.ts +1 -1
- package/src/client/hooks/workspace/renaming-sessions.ts +1 -1
- package/src/client/hooks/workspace/repo-details.ts +1 -1
- package/src/client/hooks/workspace/repo-scope/index.test.ts +1 -1
- package/src/client/hooks/workspace/repo-scope/index.ts +1 -1
- package/src/client/hooks/workspace/repo-scope/store.test.ts +1 -1
- package/src/client/hooks/workspace/repo-scope/store.ts +1 -1
- package/src/client/hooks/workspace/scheduled-tasks.ts +1 -1
- package/src/client/hooks/workspace/search-stream.test.ts +1 -1
- package/src/client/hooks/workspace/session-actions.test.ts +1 -1
- package/src/client/hooks/workspace/session-actions.ts +1 -1
- package/src/client/hooks/workspace/session-delete.ts +1 -1
- package/src/client/hooks/workspace/sidebar-batch.ts +95 -0
- package/src/client/hooks/workspace/sidebar-style.ts +66 -0
- package/src/client/hooks/workspace/terminal/index.ts +1 -1
- package/src/client/hooks/workspace/terminal/socket.ts +5 -2
- package/src/client/hooks/workspace/toolbar-row-width.ts +1 -1
- package/src/client/hooks/workspace/wiki.ts +1 -1
- package/src/client/hooks/workspace/workspace-folder-actions.ts +1 -1
- package/src/client/hooks/workspace/worktree/index.ts +1 -1
- package/src/client/lib/browser/frame-canvas.test.ts +131 -0
- package/src/client/lib/browser/frame-canvas.ts +73 -0
- package/src/client/lib/desktop/bridge.ts +1 -1
- package/src/client/lib/desktop/dropped-paths.ts +1 -1
- package/src/client/lib/desktop/titlebar.test.ts +1 -1
- package/src/client/lib/desktop/titlebar.ts +1 -1
- package/src/client/lib/editor/tab-menu.test.ts +1 -1
- package/src/client/lib/editor/tab-menu.ts +1 -1
- package/src/client/lib/editor-dirty-tabs.test.ts +1 -1
- package/src/client/lib/editor-dirty-tabs.ts +1 -1
- package/src/client/lib/editor-document.ts +1 -1
- package/src/client/lib/editor-errors.test.ts +1 -1
- package/src/client/lib/editor-errors.ts +1 -1
- package/src/client/lib/fs/resolve-open.test.ts +1 -1
- package/src/client/lib/fs/resolve-open.ts +1 -1
- package/src/client/lib/git/action-message.test.ts +1 -1
- package/src/client/lib/git/action-message.ts +1 -1
- package/src/client/lib/heading-reveal.ts +1 -1
- package/src/client/lib/launch/device-files.test.ts +1 -1
- package/src/client/lib/launch/device-files.ts +1 -1
- package/src/client/lib/launch/file-handlers.test.ts +3 -2
- package/src/client/lib/launch/file-handlers.ts +1 -1
- package/src/client/lib/launch/types.ts +1 -1
- package/src/client/lib/line-reveal.ts +1 -1
- package/src/client/lib/native/back.test.ts +1 -1
- package/src/client/lib/native/back.ts +1 -1
- package/src/client/lib/native/open-paths.test.ts +1 -1
- package/src/client/lib/native/open-paths.ts +1 -1
- package/src/client/lib/native/palette.test.ts +1 -1
- package/src/client/lib/native/palette.ts +1 -1
- package/src/client/lib/native/resume.test.ts +1 -1
- package/src/client/lib/native/resume.ts +1 -1
- package/src/client/lib/outline-stores.test.ts +1 -1
- package/src/client/lib/plugins/bootstrap.test.ts +1 -1
- package/src/client/lib/plugins/composer-bridge.ts +1 -1
- package/src/client/lib/plugins/content-scripts-root.test.ts +1 -1
- package/src/client/lib/plugins/content-scripts.test.ts +1 -1
- package/src/client/lib/plugins/content-scripts.ts +1 -1
- package/src/client/lib/plugins/context.ts +1 -1
- package/src/client/lib/plugins/directives.test.tsx +1 -1
- package/src/client/lib/plugins/directives.tsx +1 -1
- package/src/client/lib/plugins/kit.test.ts +118 -1
- package/src/client/lib/plugins/kit.ts +21 -1
- package/src/client/lib/plugins/list-slots.test.ts +1 -1
- package/src/client/lib/plugins/list-slots.ts +1 -1
- package/src/client/lib/plugins/loader.ts +1 -1
- package/src/client/lib/plugins/readiness.ts +126 -0
- package/src/client/lib/plugins/repo-scope-service.test.ts +1 -1
- package/src/client/lib/plugins/repo-scope-service.ts +1 -1
- package/src/client/lib/plugins/runtime.ts +1 -1
- package/src/client/lib/plugins/sidebar-bridge.test.ts +1 -1
- package/src/client/lib/plugins/sidebar-bridge.ts +1 -1
- package/src/client/lib/plugins/slots.test.ts +1 -1
- package/src/client/lib/plugins/slots.ts +1 -1
- package/src/client/lib/plugins/stylesheets.test.ts +1 -1
- package/src/client/lib/plugins/stylesheets.ts +1 -1
- package/src/client/lib/plugins/topic.ts +1 -1
- package/src/client/lib/scrollbar-activity.test.ts +76 -27
- package/src/client/lib/scrollbar-activity.ts +133 -32
- package/src/client/lib/search-reveal.ts +1 -1
- package/src/client/lib/signals.ts +1 -1
- package/src/client/lib/ui/with-chord.ts +1 -1
- package/src/client/main.tsx +8 -0
- package/src/client/stubs/elkjs.ts +1 -1
- package/src/client/tailwind.css +153 -2
- package/src/server/db.server.test.ts +8 -5
- package/src/server/db.server.ts +1 -1
- package/src/server/index.ts +10 -129
- package/src/server/lib/assets/compressed-cache.server.test.ts +1 -1
- package/src/server/lib/assets/compressed-cache.server.ts +8 -5
- package/src/server/lib/assets/conditional.server.test.ts +1 -1
- package/src/server/lib/assets/conditional.server.ts +1 -1
- package/src/server/lib/assets/dev-assets.server.test.ts +1 -1
- package/src/server/lib/assets/dev-assets.server.ts +1 -1
- package/src/server/lib/assets/font-css.server.test.ts +1 -1
- package/src/server/lib/assets/font-css.server.ts +1 -1
- package/src/server/lib/assets/font-faces.ts +1 -1
- package/src/server/lib/assets/fonts.server.ts +1 -1
- package/src/server/lib/assets/theme-shell.server.ts +1 -1
- package/src/server/lib/assets/theme-shell.test.ts +1 -1
- package/src/server/lib/auth/client-address.ts +1 -1
- package/src/server/lib/auth/config.ts +1 -1
- package/src/server/lib/auth/env-password.test.ts +1 -1
- package/src/server/lib/auth/env-password.ts +1 -1
- package/src/server/lib/auth/guard.test.ts +1 -1
- package/src/server/lib/auth/guard.ts +1 -1
- package/src/server/lib/auth/handover-guard.test.ts +1 -1
- package/src/server/lib/auth/rate-limit.test.ts +1 -1
- package/src/server/lib/auth/rate-limit.ts +1 -1
- package/src/server/lib/auth/token.test.ts +1 -1
- package/src/server/lib/auth/token.ts +1 -1
- package/src/server/lib/browser/runtime.test.ts +1 -1
- package/src/server/lib/browser/runtime.ts +1 -1
- package/src/server/lib/btw/child.server.test.ts +1 -1
- package/src/server/lib/btw/child.server.ts +1 -1
- package/src/server/lib/btw/frames.test.ts +1 -1
- package/src/server/lib/btw/frames.ts +1 -1
- package/src/server/lib/btw/lifecycle.server.test.ts +1 -1
- package/src/server/lib/btw/lifecycle.server.ts +1 -1
- package/src/server/lib/btw/prompt.ts +1 -1
- package/src/server/lib/btw/purge.server.ts +1 -1
- package/src/server/lib/btw/registry.server.test.ts +1 -1
- package/src/server/lib/btw/registry.server.ts +1 -1
- package/src/server/lib/btw/reply.ts +1 -1
- package/src/server/lib/btw/runtime.server.test.ts +1 -1
- package/src/server/lib/btw/runtime.server.ts +1 -1
- package/src/server/lib/btw/schema.server.test.ts +17 -5
- package/src/server/lib/btw/schema.server.ts +1 -1
- package/src/server/lib/btw/service.server.test.ts +1 -1
- package/src/server/lib/btw/service.server.ts +1 -1
- package/src/server/lib/btw/session-copy.server.ts +1 -1
- package/src/server/lib/btw/session-copy.test.ts +1 -1
- package/src/server/lib/btw/store.server.test.ts +1 -1
- package/src/server/lib/btw/store.server.ts +1 -1
- package/src/server/lib/bundler/build-errors.server.ts +1 -1
- package/src/server/lib/bundler/build-errors.test.ts +1 -1
- package/src/server/lib/bundler/css.test.ts +1 -1
- package/src/server/lib/bundler/css.ts +1 -1
- package/src/server/lib/bundler/dependencies.test.ts +1 -1
- package/src/server/lib/bundler/nested-at-rules.test.ts +1 -1
- package/src/server/lib/bundler/nested-at-rules.ts +1 -1
- package/src/server/lib/bundler/titlebar-css.test.ts +1 -1
- package/src/server/lib/bundler/tsconfig-paths.test.ts +1 -1
- package/src/server/lib/chat/session-store.server.ts +1 -1
- package/src/server/lib/db/compact-chat-overlay.test.ts +1 -1
- package/src/server/lib/db/compact-chat-overlay.ts +1 -1
- package/src/server/lib/db/schema.test.ts +1 -1
- package/src/server/lib/db/schema.ts +1 -1
- package/src/server/lib/db/seed-terminal.test.ts +1 -1
- package/src/server/lib/db/seed.test.ts +1 -1
- package/src/server/lib/db/seed.ts +1 -1
- package/src/server/lib/db/workspace-sync.test.ts +1 -1
- package/src/server/lib/db/workspace-sync.ts +1 -1
- package/src/server/lib/db/worktree-registry.server.ts +1 -1
- package/src/server/lib/dictation/language.server.test.ts +16 -11
- package/src/server/lib/dictation/language.server.ts +1 -1
- package/src/server/lib/dictation/omp-stt-worker.ts +1 -1
- package/src/server/lib/fs/atomic-write.ts +1 -1
- package/src/server/lib/fs/canonical.ts +1 -1
- package/src/server/lib/fs/child-env.test.ts +1 -1
- package/src/server/lib/fs/child-env.ts +1 -1
- package/src/server/lib/fs/config-lock.ts +1 -1
- package/src/server/lib/fs/external-roots.test.ts +1 -1
- package/src/server/lib/fs/external-roots.ts +1 -1
- package/src/server/lib/fs/fs-path.test.ts +10 -1
- package/src/server/lib/fs/fs-write-git.test.ts +1 -1
- package/src/server/lib/fs/git-actions-branch.ts +1 -1
- package/src/server/lib/fs/git-actions-history.ts +1 -1
- package/src/server/lib/fs/git-actions-shared.ts +1 -1
- package/src/server/lib/fs/git-actions-sync.test.ts +1 -1
- package/src/server/lib/fs/git-actions-worktree.ts +1 -1
- package/src/server/lib/fs/git-actions.ts +1 -1
- package/src/server/lib/fs/git-blame.test.ts +1 -1
- package/src/server/lib/fs/git-blame.ts +1 -1
- package/src/server/lib/fs/git-branch.ts +1 -1
- package/src/server/lib/fs/git-diff.test.ts +1 -1
- package/src/server/lib/fs/git-ignore.ts +1 -1
- package/src/server/lib/fs/git-index-lock.test.ts +1 -1
- package/src/server/lib/fs/git-log-parse.test.ts +1 -1
- package/src/server/lib/fs/git-log.test.ts +1 -1
- package/src/server/lib/fs/git-merge-conflict.test.ts +1 -1
- package/src/server/lib/fs/git-merge.ts +1 -1
- package/src/server/lib/fs/git-porcelain-v2.ts +1 -1
- package/src/server/lib/fs/git-publish.test.ts +1 -1
- package/src/server/lib/fs/git-publish.ts +1 -1
- package/src/server/lib/fs/git-repo-details.test.ts +1 -1
- package/src/server/lib/fs/git-repo-details.ts +1 -1
- package/src/server/lib/fs/git-repos.test.ts +1 -1
- package/src/server/lib/fs/git-repos.ts +1 -1
- package/src/server/lib/fs/git-revert.ts +1 -1
- package/src/server/lib/fs/git-run.ts +5 -3
- package/src/server/lib/fs/git-stash.ts +1 -1
- package/src/server/lib/fs/git-state-verbs.test.ts +1 -1
- package/src/server/lib/fs/git-state.test.ts +1 -1
- package/src/server/lib/fs/git-state.ts +1 -1
- package/src/server/lib/fs/git-status-read.test.ts +1 -1
- package/src/server/lib/fs/git-status-read.ts +1 -1
- package/src/server/lib/fs/git-sync.test.ts +1 -1
- package/src/server/lib/fs/listing.test.ts +1 -1
- package/src/server/lib/fs/listing.ts +1 -1
- package/src/server/lib/fs/path-segment.test.ts +1 -1
- package/src/server/lib/fs/path-segment.ts +1 -1
- package/src/server/lib/fs/relative-path.ts +1 -1
- package/src/server/lib/fs/reveal.ts +1 -1
- package/src/server/lib/fs/ripgrep.test.ts +1 -1
- package/src/server/lib/fs/ripgrep.ts +1 -1
- package/src/server/lib/fs/root-worktree.test.ts +1 -1
- package/src/server/lib/fs/shell.ts +10 -3
- package/src/server/lib/fs/transfer.test.ts +1 -1
- package/src/server/lib/fs/transfer.ts +1 -1
- package/src/server/lib/fs/worktree/carry.ts +1 -1
- package/src/server/lib/fs/worktree/create.test.ts +1 -1
- package/src/server/lib/fs/worktree/create.ts +1 -1
- package/src/server/lib/fs/worktree/errors.ts +1 -1
- package/src/server/lib/fs/worktree/list.test.ts +1 -1
- package/src/server/lib/fs/worktree/list.ts +1 -1
- package/src/server/lib/fs/worktree/location.test.ts +1 -1
- package/src/server/lib/fs/worktree/location.ts +1 -1
- package/src/server/lib/fs/worktree/project-id.ts +1 -1
- package/src/server/lib/fs/worktree/remove.test.ts +1 -1
- package/src/server/lib/fs/worktree/remove.ts +1 -1
- package/src/server/lib/fs/worktree/settings.server.ts +1 -1
- package/src/server/lib/fs/worktree/topology.ts +1 -1
- package/src/server/lib/fs/write-conflict.test.ts +1 -1
- package/src/server/lib/fs/write-conflict.ts +1 -1
- package/src/server/lib/http/same-origin.ts +1 -1
- package/src/server/lib/lifecycle/after-listen.ts +178 -0
- package/src/server/lib/lifecycle/argv-flags.ts +1 -1
- package/src/server/lib/lifecycle/bun.ts +1 -1
- package/src/server/lib/lifecycle/claim-port.test.ts +1 -1
- package/src/server/lib/lifecycle/fd-pressure.ts +1 -1
- package/src/server/lib/lifecycle/flock.test.ts +1 -1
- package/src/server/lib/lifecycle/flock.ts +1 -1
- package/src/server/lib/lifecycle/identity.ts +1 -1
- package/src/server/lib/lifecycle/instance.test.ts +1 -1
- package/src/server/lib/lifecycle/instance.ts +1 -1
- package/src/server/lib/lifecycle/kill-tree.test.ts +1 -1
- package/src/server/lib/lifecycle/kill-tree.ts +1 -1
- package/src/server/lib/lifecycle/launch-mode.ts +1 -1
- package/src/server/lib/lifecycle/listener.ts +1 -1
- package/src/server/lib/lifecycle/memory.test.ts +88 -0
- package/src/server/lib/lifecycle/memory.ts +173 -0
- package/src/server/lib/lifecycle/occupant.ts +1 -1
- package/src/server/lib/lifecycle/paths.ts +1 -1
- package/src/server/lib/lifecycle/port-guard.test.ts +1 -1
- package/src/server/lib/lifecycle/port-guard.ts +1 -1
- package/src/server/lib/lifecycle/probe-health.test.ts +1 -1
- package/src/server/lib/lifecycle/probe.test.ts +1 -1
- package/src/server/lib/lifecycle/probe.ts +1 -1
- package/src/server/lib/lifecycle/proc/darwin.ts +1 -1
- package/src/server/lib/lifecycle/proc/index.ts +1 -1
- package/src/server/lib/lifecycle/proc/linux.ts +1 -1
- package/src/server/lib/lifecycle/proc/proc.test.ts +1 -1
- package/src/server/lib/lifecycle/proc/ps.ts +1 -1
- package/src/server/lib/lifecycle/proc/types.ts +1 -1
- package/src/server/lib/lifecycle/proc/win32.ts +1 -1
- package/src/server/lib/lifecycle/rejection-guard.test.ts +79 -0
- package/src/server/lib/lifecycle/rejection-guard.ts +74 -0
- package/src/server/lib/lifecycle/restart.test.ts +1 -1
- package/src/server/lib/lifecycle/restart.ts +1 -1
- package/src/server/lib/lifecycle/shell-route.ts +1 -1
- package/src/server/lib/lifecycle/tls.test.ts +8 -8
- package/src/server/lib/lifecycle/tls.ts +1 -1
- package/src/server/lib/model-roles/catalog.server.test.ts +1 -1
- package/src/server/lib/model-roles/catalog.server.ts +1 -1
- package/src/server/lib/model-roles/mock.server.ts +1 -1
- package/src/server/lib/model-roles/schema.server.ts +1 -1
- package/src/server/lib/model-roles/store.server.test.ts +1 -1
- package/src/server/lib/model-roles/store.server.ts +1 -1
- package/src/server/lib/models/catalog.server.ts +1 -1
- package/src/server/lib/models/catalog.test.ts +1 -1
- package/src/server/lib/models/credential-origin.server.ts +1 -1
- package/src/server/lib/models/credential-origin.test.ts +1 -1
- package/src/server/lib/models/detected-registry.server.ts +1 -1
- package/src/server/lib/models/preferences.server.ts +1 -1
- package/src/server/lib/models/provider-icon-fetch.test.ts +91 -0
- package/src/server/lib/models/provider-icon-fetch.ts +21 -12
- package/src/server/lib/models/provider-icon-parse.test.ts +40 -1
- package/src/server/lib/models/provider-icon-parse.ts +74 -1
- package/src/server/lib/models/provider-icon-store.server.ts +1 -1
- package/src/server/lib/models/provider-icon-store.test.ts +1 -1
- package/src/server/lib/models/provider-icon.server.ts +2 -2
- package/src/server/lib/models/provider-items.server.ts +1 -1
- package/src/server/lib/models/provider-items.test.ts +1 -1
- package/src/server/lib/models/provider-listing.server.test.ts +1 -1
- package/src/server/lib/models/provider-listing.server.ts +1 -1
- package/src/server/lib/models/provider-registry.server.test.ts +1 -1
- package/src/server/lib/models/provider-registry.server.ts +1 -1
- package/src/server/lib/models/registry.server.test.ts +1 -1
- package/src/server/lib/models/registry.server.ts +1 -1
- package/src/server/lib/models/selected-context-limit.server.test.ts +1 -1
- package/src/server/lib/models/selected-context-limit.server.ts +1 -1
- package/src/server/lib/observer-ws.ts +1 -1
- package/src/server/lib/omp/config/agents.ts +1 -1
- package/src/server/lib/omp/config/behavior.ts +1 -1
- package/src/server/lib/omp/config/commands.test.ts +1 -1
- package/src/server/lib/omp/config/commands.ts +1 -1
- package/src/server/lib/omp/config/config-cli.test.ts +1 -1
- package/src/server/lib/omp/config/config-cli.ts +1 -1
- package/src/server/lib/omp/config/definitions.test.ts +5 -6
- package/src/server/lib/omp/config/disabled-providers.ts +1 -1
- package/src/server/lib/omp/config/discovery-roots.test.ts +1 -1
- package/src/server/lib/omp/config/discovery-roots.ts +1 -1
- package/src/server/lib/omp/config/document.test.ts +1 -1
- package/src/server/lib/omp/config/document.ts +1 -1
- package/src/server/lib/omp/config/extensions.ts +1 -1
- package/src/server/lib/omp/config/instructions.ts +1 -1
- package/src/server/lib/omp/config/mcp-and-cli.test.ts +1 -1
- package/src/server/lib/omp/config/mcp-test.ts +1 -1
- package/src/server/lib/omp/config/mcp.ts +1 -1
- package/src/server/lib/omp/config/model-overrides.ts +1 -1
- package/src/server/lib/omp/config/models-config.ts +1 -1
- package/src/server/lib/omp/config/models-validation.test.ts +1 -1
- package/src/server/lib/omp/config/models-validation.ts +1 -1
- package/src/server/lib/omp/config/omp-config-files.test.ts +1 -1
- package/src/server/lib/omp/config/path-scoped.ts +1 -1
- package/src/server/lib/omp/config/plugin-actions.ts +1 -1
- package/src/server/lib/omp/config/plugin-cli.ts +1 -1
- package/src/server/lib/omp/config/plugin-registry.test.ts +1 -1
- package/src/server/lib/omp/config/plugin-registry.ts +1 -1
- package/src/server/lib/omp/config/plugins.test.ts +14 -6
- package/src/server/lib/omp/config/plugins.ts +1 -1
- package/src/server/lib/omp/config/provider-entry.test.ts +1 -1
- package/src/server/lib/omp/config/provider-entry.ts +1 -1
- package/src/server/lib/omp/config/provider-seeds.test.ts +1 -1
- package/src/server/lib/omp/config/provider-seeds.ts +1 -1
- package/src/server/lib/omp/config/providers-write.test.ts +1 -1
- package/src/server/lib/omp/config/providers.ts +1 -1
- package/src/server/lib/omp/config/roles.ts +1 -1
- package/src/server/lib/omp/config/roots-watch.server.test.ts +1 -1
- package/src/server/lib/omp/config/roots-watch.server.ts +1 -1
- package/src/server/lib/omp/config/scope.test.ts +1 -1
- package/src/server/lib/omp/config/scope.ts +1 -1
- package/src/server/lib/omp/config/skills-catalog.ts +1 -1
- package/src/server/lib/omp/config/skills.test.ts +1 -1
- package/src/server/lib/omp/config/skills.ts +1 -1
- package/src/server/lib/omp/config/yaml.ts +1 -1
- package/src/server/lib/omp/core/auth-credentials.ts +1 -1
- package/src/server/lib/omp/core/cli.ts +1 -1
- package/src/server/lib/omp/core/host-resolution.test.ts +1 -1
- package/src/server/lib/omp/core/models-json.ts +1 -1
- package/src/server/lib/omp/core/paths.test.ts +1 -1
- package/src/server/lib/omp/core/paths.ts +1 -1
- package/src/server/lib/omp/core/registry.test.ts +1 -1
- package/src/server/lib/omp/core/registry.ts +1 -1
- package/src/server/lib/omp/core/startup.ts +1 -1
- package/src/server/lib/omp/core/worktree.ts +1 -1
- package/src/server/lib/omp/extensions/locator.test.ts +1 -1
- package/src/server/lib/omp/extensions/locator.ts +1 -1
- package/src/server/lib/omp/mode/command-type.test.ts +1 -1
- package/src/server/lib/omp/mode/live-selection.test.ts +1 -1
- package/src/server/lib/omp/mode/live-selection.ts +1 -1
- package/src/server/lib/omp/mode/request.test.ts +1 -1
- package/src/server/lib/omp/mode/request.ts +1 -1
- package/src/server/lib/omp/rpc/agent-start-watchdog.ts +1 -1
- package/src/server/lib/omp/rpc/child-config.ts +1 -1
- package/src/server/lib/omp/rpc/constants.test.ts +1 -1
- package/src/server/lib/omp/rpc/constants.ts +1 -1
- package/src/server/lib/omp/rpc/destroy-stream-row.test.ts +1 -1
- package/src/server/lib/omp/rpc/errors.ts +1 -1
- package/src/server/lib/omp/rpc/event-fanout.ts +1 -1
- package/src/server/lib/omp/rpc/forked-resume.test.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold-frames.test.ts +131 -0
- package/src/server/lib/omp/rpc/frame-fold-host.test-util.ts +46 -0
- package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +1 -1
- package/src/server/lib/omp/rpc/frame-fold.test.ts +2 -101
- package/src/server/lib/omp/rpc/frame-fold.ts +14 -1
- package/src/server/lib/omp/rpc/idle-reaper.ts +1 -1
- package/src/server/lib/omp/rpc/lifecycle.test.ts +1 -1
- package/src/server/lib/omp/rpc/lines.ts +1 -1
- package/src/server/lib/omp/rpc/manager.ts +1 -1
- package/src/server/lib/omp/rpc/mode-mirror.test.ts +1 -1
- package/src/server/lib/omp/rpc/mode-mirror.ts +1 -1
- package/src/server/lib/omp/rpc/peer-proxy.server.test.ts +1 -1
- package/src/server/lib/omp/rpc/peer-proxy.server.ts +1 -1
- package/src/server/lib/omp/rpc/pending-ui-dialogs.ts +1 -1
- package/src/server/lib/omp/rpc/prewarm-pool.ts +1 -1
- package/src/server/lib/omp/rpc/process-helpers.ts +2 -2
- package/src/server/lib/omp/rpc/process.ts +6 -6
- package/src/server/lib/omp/rpc/reload-plugins.ts +1 -1
- package/src/server/lib/omp/rpc/rpc-primitives.test.ts +1 -1
- package/src/server/lib/omp/rpc/rpc-timers.test.ts +1 -1
- package/src/server/lib/omp/rpc/run-model.ts +1 -1
- package/src/server/lib/omp/rpc/run-settle.server.ts +1 -1
- package/src/server/lib/omp/rpc/run-settle.test.ts +1 -1
- package/src/server/lib/omp/rpc/session-command-guards.ts +1 -1
- package/src/server/lib/omp/rpc/session-commands-dialog.test.ts +2 -2
- package/src/server/lib/omp/rpc/session-commands-harness.ts +1 -1
- package/src/server/lib/omp/rpc/session-commands.test.ts +1 -1
- package/src/server/lib/omp/rpc/session-commands.ts +1 -1
- package/src/server/lib/omp/rpc/session-registration.ts +1 -1
- package/src/server/lib/omp/rpc/session-registry.test.ts +1 -1
- package/src/server/lib/omp/rpc/session-registry.ts +1 -1
- package/src/server/lib/omp/rpc/spawn-provenance.ts +1 -1
- package/src/server/lib/omp/rpc/stream-reader.test.ts +1 -1
- package/src/server/lib/omp/rpc/subagent-liveness.test.ts +1 -1
- package/src/server/lib/omp/rpc/subagent-liveness.ts +1 -1
- package/src/server/lib/omp/rpc/terminal-settle.ts +1 -1
- package/src/server/lib/omp/rpc/utility.test.ts +1 -1
- package/src/server/lib/omp/rpc/utility.ts +1 -1
- package/src/server/lib/omp/rpc/web-state.ts +1 -1
- package/src/server/lib/omp/session/artifacts.server.test.ts +1 -1
- package/src/server/lib/omp/session/artifacts.server.ts +1 -1
- package/src/server/lib/omp/session/auto-title.server.test.ts +1 -1
- package/src/server/lib/omp/session/auto-title.server.ts +1 -1
- package/src/server/lib/omp/session/blobs.server.test.ts +1 -1
- package/src/server/lib/omp/session/blobs.server.ts +1 -1
- package/src/server/lib/omp/session/data-mock.ts +1 -1
- package/src/server/lib/omp/session/delete-flow.server.ts +1 -1
- package/src/server/lib/omp/session/delete.server.ts +1 -1
- package/src/server/lib/omp/session/file-scan.ts +1 -1
- package/src/server/lib/omp/session/files.test.ts +1 -1
- package/src/server/lib/omp/session/files.ts +1 -1
- package/src/server/lib/omp/session/goal-auditor.server.ts +1 -1
- package/src/server/lib/omp/session/goal-auditor.test.ts +1 -1
- package/src/server/lib/omp/session/goal-driver.server.ts +1 -1
- package/src/server/lib/omp/session/goal-driver.test.ts +1 -1
- package/src/server/lib/omp/session/goal-settings.server.ts +1 -1
- package/src/server/lib/omp/session/goal-settings.test.ts +1 -1
- package/src/server/lib/omp/session/jsonl-tail.test.ts +151 -0
- package/src/server/lib/omp/session/jsonl-tail.ts +67 -0
- package/src/server/lib/omp/session/lease-flock.server.ts +1 -1
- package/src/server/lib/omp/session/lease-holder.server.ts +1 -1
- package/src/server/lib/omp/session/local-runs.server.ts +1 -1
- package/src/server/lib/omp/session/locator.ts +1 -1
- package/src/server/lib/omp/session/merge-stored-anchor.test.ts +1 -1
- package/src/server/lib/omp/session/merge-stored-notices.test.ts +1 -1
- package/src/server/lib/omp/session/merge-stored-overlay-rows.test.ts +1 -1
- package/src/server/lib/omp/session/merge-stored.test.ts +1 -1
- package/src/server/lib/omp/session/merge-stored.ts +1 -1
- package/src/server/lib/omp/session/messages.test.ts +1 -1
- package/src/server/lib/omp/session/messages.ts +44 -22
- package/src/server/lib/omp/session/modes.test.ts +1 -1
- package/src/server/lib/omp/session/modes.ts +1 -1
- package/src/server/lib/omp/session/ownership.server.test.ts +1 -1
- package/src/server/lib/omp/session/ownership.server.ts +1 -1
- package/src/server/lib/omp/session/plan-mode-env.test.ts +1 -1
- package/src/server/lib/omp/session/plans.test.ts +1 -1
- package/src/server/lib/omp/session/plans.ts +1 -1
- package/src/server/lib/omp/session/reader.ts +1 -1
- package/src/server/lib/omp/session/reload.server.test.ts +1 -1
- package/src/server/lib/omp/session/reload.server.ts +1 -1
- package/src/server/lib/omp/session/rename-with-ai.server.test.ts +1 -1
- package/src/server/lib/omp/session/rename-with-ai.server.ts +1 -1
- package/src/server/lib/omp/session/resumable-model.recovery.test.ts +1 -1
- package/src/server/lib/omp/session/resumable-model.server.test.ts +1 -1
- package/src/server/lib/omp/session/resumable-model.server.ts +1 -1
- package/src/server/lib/omp/session/rewind-file.test.ts +1 -1
- package/src/server/lib/omp/session/rewind-file.ts +1 -1
- package/src/server/lib/omp/session/scan.ts +1 -1
- package/src/server/lib/omp/session/session-discovery.test.ts +1 -1
- package/src/server/lib/omp/session/session-reads.test.ts +1 -1
- package/src/server/lib/omp/session/sessions-watch.server.ts +1 -1
- package/src/server/lib/omp/session/sidebar-activity.server.test.ts +1 -1
- package/src/server/lib/omp/session/sidebar-activity.server.ts +1 -1
- package/src/server/lib/omp/session/sidebar-data.canonical.test.ts +1 -1
- package/src/server/lib/omp/session/sidebar-data.server.ts +1 -1
- package/src/server/lib/omp/session/standby.server.test.ts +1 -1
- package/src/server/lib/omp/session/standby.server.ts +1 -1
- package/src/server/lib/omp/session/subagent-presence.ts +1 -1
- package/src/server/lib/omp/session/telemetry/scan.ts +1 -1
- package/src/server/lib/omp/session/telemetry-raw.ts +1 -1
- package/src/server/lib/omp/session/telemetry.test.ts +1 -1
- package/src/server/lib/omp/session/title-model-overlay.server.test.ts +1 -1
- package/src/server/lib/omp/session/title-model-overlay.server.ts +1 -1
- package/src/server/lib/omp/session/title-request.server.test.ts +1 -1
- package/src/server/lib/omp/session/title-request.server.ts +1 -1
- package/src/server/lib/omp/session/title-slot.ts +1 -1
- package/src/server/lib/omp/session/todos.ts +1 -1
- package/src/server/lib/omp/session/usage/aggregate-shaping.test.ts +1 -1
- package/src/server/lib/omp/session/usage/aggregate.test.ts +1 -1
- package/src/server/lib/omp/session/usage/aggregate.ts +1 -1
- package/src/server/lib/omp/session/usage/shaping.ts +1 -1
- package/src/server/lib/omp/subagent/history/fold.ts +1 -1
- package/src/server/lib/omp/subagent/history/index.ts +1 -1
- package/src/server/lib/omp/subagent/history/paths.ts +1 -1
- package/src/server/lib/omp/subagent/history/transcript.test.ts +1 -1
- package/src/server/lib/omp/subagent/history/transcript.ts +1 -1
- package/src/server/lib/panels/assets.server.ts +1 -1
- package/src/server/lib/panels/auto-update.server.test.ts +1 -1
- package/src/server/lib/panels/auto-update.server.ts +1 -1
- package/src/server/lib/panels/baseline.server.test.ts +1 -1
- package/src/server/lib/panels/baseline.server.ts +1 -1
- package/src/server/lib/panels/build-targets.server.ts +1 -1
- package/src/server/lib/panels/build.server.test.ts +1 -1
- package/src/server/lib/panels/build.server.ts +1 -1
- package/src/server/lib/panels/bundled-catalog.server.ts +1 -1
- package/src/server/lib/panels/catalog-offers.server.ts +1 -1
- package/src/server/lib/panels/catalog.server.test.ts +1 -1
- package/src/server/lib/panels/catalog.server.ts +1 -1
- package/src/server/lib/panels/compat.server.test.ts +1 -1
- package/src/server/lib/panels/compat.server.ts +1 -1
- package/src/server/lib/panels/files.server.test.ts +1 -1
- package/src/server/lib/panels/files.server.ts +1 -1
- package/src/server/lib/panels/git-clone.server.ts +1 -1
- package/src/server/lib/panels/git-status.server.ts +1 -1
- package/src/server/lib/panels/git-update.server.test.ts +1 -1
- package/src/server/lib/panels/git-update.server.ts +1 -1
- package/src/server/lib/panels/install.server.test.ts +1 -1
- package/src/server/lib/panels/install.server.ts +1 -1
- package/src/server/lib/panels/link.server.ts +1 -1
- package/src/server/lib/panels/local-edits.server.test.ts +1 -1
- package/src/server/lib/panels/local-edits.server.ts +1 -1
- package/src/server/lib/panels/manifest.test.ts +1 -1
- package/src/server/lib/panels/manifest.ts +1 -1
- package/src/server/lib/panels/offers.server.test.ts +1 -1
- package/src/server/lib/panels/offers.server.ts +1 -1
- package/src/server/lib/panels/registry-bundled.server.test.ts +1 -1
- package/src/server/lib/panels/registry.server.test.ts +1 -1
- package/src/server/lib/panels/registry.server.ts +1 -1
- package/src/server/lib/panels/remove.server.test.ts +1 -1
- package/src/server/lib/panels/scan.server.ts +1 -1
- package/src/server/lib/panels/seed.server.ts +1 -1
- package/src/server/lib/panels/shim.test.ts +1 -1
- package/src/server/lib/panels/shim.ts +1 -1
- package/src/server/lib/panels/state.server.test.ts +1 -1
- package/src/server/lib/panels/state.server.ts +1 -1
- package/src/server/lib/panels/sync.fixture.test-util.ts +1 -1
- package/src/server/lib/panels/sync.local-edits.test.ts +1 -1
- package/src/server/lib/panels/sync.server.test.ts +1 -1
- package/src/server/lib/panels/sync.server.ts +1 -1
- package/src/server/lib/plugins/background.server.ts +18 -2
- package/src/server/lib/plugins/background.test.ts +34 -1
- package/src/server/lib/plugins/build-server.test.ts +15 -7
- package/src/server/lib/plugins/e2e.test.ts +1 -1
- package/src/server/lib/plugins/events.server.ts +1 -1
- package/src/server/lib/plugins/http.server.ts +1 -1
- package/src/server/lib/plugins/loader.server.ts +51 -16
- package/src/server/lib/plugins/log.server.ts +1 -1
- package/src/server/lib/plugins/platform.test.ts +1 -1
- package/src/server/lib/plugins/realtime.server.ts +1 -1
- package/src/server/lib/plugins/rpc.server.ts +1 -1
- package/src/server/lib/plugins/schema.server.ts +1 -1
- package/src/server/lib/plugins/settings.server.ts +1 -1
- package/src/server/lib/plugins/shutdown.test.ts +1 -1
- package/src/server/lib/plugins/storage.server.ts +1 -1
- package/src/server/lib/queue/delivery-dispatch.server.test.ts +1 -1
- package/src/server/lib/queue/delivery-harness.ts +1 -1
- package/src/server/lib/queue/delivery.server.test.ts +1 -1
- package/src/server/lib/queue/delivery.server.ts +1 -1
- package/src/server/lib/queue/payload.ts +1 -1
- package/src/server/lib/queue/schema-migration.server.ts +1 -1
- package/src/server/lib/queue/store.server.test.ts +1 -1
- package/src/server/lib/queue/store.server.ts +1 -1
- package/src/server/lib/realtime/hub.server.test.ts +1 -1
- package/src/server/lib/realtime/hub.server.ts +1 -1
- package/src/server/lib/realtime/hub.types.ts +1 -1
- package/src/server/lib/realtime/signals.server.ts +1 -1
- package/src/server/lib/realtime/topics/btw.server.ts +1 -1
- package/src/server/lib/realtime/topics/catalog.server.ts +1 -1
- package/src/server/lib/realtime/topics/global.server.test.ts +1 -1
- package/src/server/lib/realtime/topics/global.server.ts +1 -1
- package/src/server/lib/realtime/topics/peer-relay.server.test.ts +1 -1
- package/src/server/lib/realtime/topics/peer-relay.server.ts +1 -1
- package/src/server/lib/realtime/topics/plugin.server.ts +1 -1
- package/src/server/lib/realtime/topics/session-data.server.ts +1 -1
- package/src/server/lib/realtime/topics/session.server.ts +1 -1
- package/src/server/lib/realtime/topics/workspace.server.ts +1 -1
- package/src/server/lib/realtime/topics.server.test.ts +1 -1
- package/src/server/lib/realtime/topics.server.ts +1 -1
- package/src/server/lib/route-adapter.test.ts +1 -1
- package/src/server/lib/schedule/rows.server.ts +1 -1
- package/src/server/lib/schedule/runtime.server.test.ts +1 -1
- package/src/server/lib/schedule/runtime.server.ts +1 -1
- package/src/server/lib/schedule/schema.server.ts +1 -1
- package/src/server/lib/schedule/store.server.test.ts +1 -1
- package/src/server/lib/schedule/store.server.ts +1 -1
- package/src/server/lib/sse.ts +1 -1
- package/src/server/lib/terminal/foreground.test.ts +1 -1
- package/src/server/lib/terminal/foreground.ts +1 -1
- package/src/server/lib/terminal/history.test.ts +1 -1
- package/src/server/lib/terminal/history.ts +1 -1
- package/src/server/lib/terminal/liveness.server.ts +1 -1
- package/src/server/lib/terminal/runtime.server.ts +1 -1
- package/src/server/lib/terminal/session.server.ts +3 -2
- package/src/server/lib/terminal/shell.test.ts +1 -1
- package/src/server/lib/terminal/shell.ts +1 -1
- package/src/server/lib/terminal/spawn.test.ts +1 -1
- package/src/server/lib/terminal/spawn.ts +1 -1
- package/src/server/lib/terminal/store-liveness.test.ts +1 -1
- package/src/server/lib/terminal/store.ts +1 -1
- package/src/server/lib/tray/autostart.ts +1 -1
- package/src/server/lib/tray/config.ts +1 -1
- package/src/server/lib/tray/credential.test.ts +1 -1
- package/src/server/lib/tray/credential.ts +1 -1
- package/src/server/lib/tray/entry.ts +1 -1
- package/src/server/lib/tray/hosts.ts +1 -1
- package/src/server/lib/tray/runtime.server.ts +1 -1
- package/src/server/lib/updates/changelog.test.ts +1 -1
- package/src/server/lib/updates/install-steps.ts +1 -1
- package/src/server/lib/updates/installed-cli.test.ts +1 -1
- package/src/server/lib/updates/installed-cli.ts +1 -1
- package/src/server/lib/updates/npm.test.ts +1 -1
- package/src/server/lib/updates/omp.test.ts +20 -5
- package/src/server/lib/updates/shell-assets.test.ts +1 -1
- package/src/server/lib/updates/shell-cache.ts +1 -1
- package/src/server/lib/updates/shell-pages.test.ts +1 -1
- package/src/server/lib/updates/shell-release-desktop.test.ts +1 -1
- package/src/server/lib/updates/shell-release.test.ts +1 -1
- package/src/server/lib/updates/shell-release.ts +1 -1
- package/src/server/lib/usage/kenari-accounts.test.ts +1 -1
- package/src/server/lib/usage/kenari.test.ts +1 -1
- package/src/server/lib/usage/omp-usage.server.test.ts +1 -1
- package/src/server/lib/usage/omp-usage.server.ts +1 -1
- package/src/server/lib/usage/provider-key.test.ts +1 -1
- package/src/server/lib/usage/providers.server.test.ts +1 -1
- package/src/server/lib/usage/providers.server.ts +1 -1
- package/src/server/lib/usage/report.server.ts +1 -1
- package/src/server/lib/usage/reset.server.test.ts +18 -6
- package/src/server/lib/usage/reset.server.ts +1 -1
- package/src/server/lib/usage/vendor-balance.server.test.ts +1 -1
- package/src/server/lib/usage/vendor-balance.server.ts +1 -1
- package/src/server/lib/util/with-timeout.ts +1 -1
- package/src/server/lib/waiting/row-clock.server.ts +1 -1
- package/src/server/lib/waiting/runtime.server.test.ts +1 -1
- package/src/server/lib/waiting/runtime.server.ts +1 -1
- package/src/server/lib/waiting/schema.server.ts +1 -1
- package/src/server/lib/waiting/settle.test.ts +1 -1
- package/src/server/lib/waiting/settle.ts +1 -1
- package/src/server/lib/waiting/store.server.test.ts +1 -1
- package/src/server/lib/waiting/store.server.ts +1 -1
- package/src/server/lib/waiting/sweep-trigger.ts +1 -1
- package/src/server/lib/wiki/git.test.ts +1 -1
- package/src/server/lib/wiki/git.ts +1 -1
- package/src/server/lib/wiki/mirror-reads.test.ts +1 -1
- package/src/server/lib/wiki/mirror.server.ts +1 -1
- package/src/server/lib/wiki/payload.server.ts +1 -1
- package/src/server/lib/wiki/provider.server.ts +1 -1
- package/src/server/lib/wiki/remote.test.ts +1 -1
- package/src/server/lib/wiki/remote.ts +1 -1
- package/src/server/lib/workspace/register-folder.server.ts +1 -1
- package/src/server/mock.server.ts +1 -1
- package/src/server/plugins/compress.ts +7 -6
- package/src/server/plugins/shell.server.test.ts +1 -1
- package/src/server/plugins/shell.server.ts +1 -1
- package/src/server/plugins/static.test.ts +5 -2
- package/src/server/plugins/static.ts +2 -1
- package/src/server/routes/agent/command.test.ts +1 -1
- package/src/server/routes/auth/login.ts +1 -1
- package/src/server/routes/auth/logout.ts +1 -1
- package/src/server/routes/auth/password.ts +1 -1
- package/src/server/routes/auth/revoke.test.ts +1 -1
- package/src/server/routes/auth/revoke.ts +1 -1
- package/src/server/routes/auth/routes.test.ts +1 -1
- package/src/server/routes/auth/state.ts +1 -1
- package/src/server/routes/browser/stream.test.ts +1 -1
- package/src/server/routes/browser/stream.ts +1 -1
- package/src/server/routes/btw/topics.ts +1 -1
- package/src/server/routes/chat/stream.test.ts +1 -1
- package/src/server/routes/chat/turns.ts +1 -1
- package/src/server/routes/console/restart.test.ts +1 -1
- package/src/server/routes/console/restart.ts +1 -1
- package/src/server/routes/dictation/ws.ts +1 -1
- package/src/server/routes/folders/batch-delete.ts +1 -1
- package/src/server/routes/folders/clone.test.ts +1 -1
- package/src/server/routes/folders/clone.ts +1 -1
- package/src/server/routes/folders/create.ts +1 -1
- package/src/server/routes/folders/mkdir.ts +1 -1
- package/src/server/routes/folders/routes.test.ts +1 -1
- package/src/server/routes/fs/action-create.test.ts +1 -1
- package/src/server/routes/fs/action-nested.test.ts +1 -1
- package/src/server/routes/fs/action-save-as.test.ts +1 -1
- package/src/server/routes/fs/action-transfer.test.ts +1 -1
- package/src/server/routes/fs/action.test.ts +1 -1
- package/src/server/routes/fs/exists.test.ts +1 -1
- package/src/server/routes/fs/exists.ts +1 -1
- package/src/server/routes/fs/git-action.test.ts +1 -1
- package/src/server/routes/fs/git-blame-loader.test.ts +1 -1
- package/src/server/routes/fs/git-branch.test.ts +1 -1
- package/src/server/routes/fs/git-init-action.test.ts +1 -1
- package/src/server/routes/fs/git-loader.test.ts +1 -1
- package/src/server/routes/fs/git-merge.test.ts +1 -1
- package/src/server/routes/fs/git-repo-details.test.ts +1 -1
- package/src/server/routes/fs/git-stash.test.ts +1 -1
- package/src/server/routes/fs/git.ts +1 -1
- package/src/server/routes/fs/grant.test.ts +1 -1
- package/src/server/routes/fs/grant.ts +1 -1
- package/src/server/routes/fs/raw.test.ts +1 -1
- package/src/server/routes/fs/raw.ts +1 -1
- package/src/server/routes/fs/read.test.ts +1 -1
- package/src/server/routes/fs/read.ts +1 -1
- package/src/server/routes/fs/scope.test.ts +1 -1
- package/src/server/routes/fs/scope.ts +1 -1
- package/src/server/routes/fs/search.test.ts +1 -1
- package/src/server/routes/fs/validate.ts +1 -1
- package/src/server/routes/health/probe.test.ts +71 -0
- package/src/server/routes/health/probe.ts +11 -0
- package/src/server/routes/omp/artifact.ts +1 -1
- package/src/server/routes/omp/blob.ts +3 -2
- package/src/server/routes/omp/login.ts +1 -1
- package/src/server/routes/omp/reload-engine.ts +1 -1
- package/src/server/routes/omp/routes.test.ts +1 -1
- package/src/server/routes/panels/bindings.ts +1 -1
- package/src/server/routes/panels/build.ts +1 -1
- package/src/server/routes/panels/bundle.ts +1 -1
- package/src/server/routes/panels/css.test.ts +1 -1
- package/src/server/routes/panels/css.ts +1 -1
- package/src/server/routes/panels/icon.ts +1 -1
- package/src/server/routes/panels/install.ts +1 -1
- package/src/server/routes/panels/panel-routes.test-util.ts +1 -1
- package/src/server/routes/panels/readme.ts +1 -1
- package/src/server/routes/panels/registry.ts +1 -1
- package/src/server/routes/panels/routes.test.ts +1 -1
- package/src/server/routes/panels/server-half.test.ts +1 -1
- package/src/server/routes/plugins/bindings.ts +1 -1
- package/src/server/routes/plugins/http.ts +1 -1
- package/src/server/routes/plugins/routes.test.ts +1 -1
- package/src/server/routes/plugins/rpc.ts +1 -1
- package/src/server/routes/plugins/state.ts +1 -1
- package/src/server/routes/realtime/ws.ts +1 -1
- package/src/server/routes/schedule/body.ts +1 -1
- package/src/server/routes/schedule/index.ts +1 -1
- package/src/server/routes/schedule/runs.ts +1 -1
- package/src/server/routes/sessions/batch-archive.test.ts +113 -0
- package/src/server/routes/sessions/batch-archive.ts +80 -0
- package/src/server/routes/sessions/batch-delete.test.ts +1 -1
- package/src/server/routes/sessions/batch-delete.ts +1 -1
- package/src/server/routes/sessions/delete.test.ts +1 -1
- package/src/server/routes/sessions/delete.ts +1 -1
- package/src/server/routes/sessions/index.ts +4 -0
- package/src/server/routes/sessions/list.ts +1 -1
- package/src/server/routes/sessions/queue.ts +1 -1
- package/src/server/routes/sessions/routes-queue.test.ts +1 -1
- package/src/server/routes/sessions/routes-read.test.ts +1 -1
- package/src/server/routes/sessions/routes.test.ts +1 -1
- package/src/server/routes/sessions/subagent-control.ts +1 -1
- package/src/server/routes/settings/provider-entry.ts +1 -1
- package/src/server/routes/settings/provider-icon.ts +4 -3
- package/src/server/routes/settings/provider-logout.test.ts +1 -1
- package/src/server/routes/settings/provider-logout.ts +1 -1
- package/src/server/routes/settings/provider-refresh.ts +1 -1
- package/src/server/routes/settings/settings-config-routes.test.ts +1 -1
- package/src/server/routes/settings/settings-store-routes.test.ts +1 -1
- package/src/server/routes/terminal/sessions.ts +1 -1
- package/src/server/routes/terminal/ws.ts +1 -1
- package/src/server/routes/updates/routes.test.ts +1 -1
- package/src/server/routes/waiting/index.ts +1 -1
- package/src/server/routes/waiting/routes.test.ts +1 -1
- package/src/server/routes/wiki/asset.ts +3 -2
- package/src/server/routes/wiki/index.ts +1 -1
- package/src/server/routes/wiki/page.ts +1 -1
- package/src/server/routes/wiki/repo.ts +1 -1
- package/src/server/routes/worktrees/create.ts +1 -1
- package/src/server/routes/worktrees/list.ts +1 -1
- package/src/server/routes/worktrees/remove.ts +1 -1
- package/src/server/routes/worktrees/routes.test.ts +1 -1
- package/src/server/routes/worktrees/shared.ts +1 -1
- package/src/shared/lib/auth/handover.test.ts +1 -1
- package/src/shared/lib/auth/handover.ts +1 -1
- package/src/shared/lib/auth/password.ts +1 -1
- package/src/shared/lib/browser/activity.ts +1 -1
- package/src/shared/lib/browser/browser-cdp.test.ts +1 -1
- package/src/shared/lib/browser/browser-helpers.test.ts +1 -1
- package/src/shared/lib/browser/browser-viewer.test.ts +5 -2
- package/src/shared/lib/browser/browser-watcher.test.ts +1 -1
- package/src/shared/lib/browser/cdp.ts +1 -1
- package/src/shared/lib/browser/connection.ts +1 -1
- package/src/shared/lib/browser/observer.ts +1 -1
- package/src/shared/lib/browser/page-context.ts +1 -1
- package/src/shared/lib/browser/targets.test.ts +1 -1
- package/src/shared/lib/browser/targets.ts +1 -1
- package/src/shared/lib/browser/url.ts +1 -1
- package/src/shared/lib/browser/util.ts +1 -1
- package/src/shared/lib/browser/viewer.ts +17 -4
- package/src/shared/lib/browser/watcher.ts +1 -1
- package/src/shared/lib/chat/ask-questions.test.ts +1 -1
- package/src/shared/lib/chat/ask-questions.ts +1 -1
- package/src/shared/lib/chat/attachments.test.ts +1 -1
- package/src/shared/lib/chat/attachments.ts +1 -1
- package/src/shared/lib/chat/btw/client.ts +1 -1
- package/src/shared/lib/chat/chat-display.test.ts +1 -1
- package/src/shared/lib/chat/composer/client.test.ts +1 -1
- package/src/shared/lib/chat/composer/commands.test.ts +1 -1
- package/src/shared/lib/chat/composer/composer.test.ts +1 -1
- package/src/shared/lib/chat/composer/draft.ts +1 -1
- package/src/shared/lib/chat/composer/filter.test.ts +1 -1
- package/src/shared/lib/chat/composer/keybindings.test.ts +1 -1
- package/src/shared/lib/chat/composer/keybindings.ts +1 -1
- package/src/shared/lib/chat/composer/owned-commands.test.ts +1 -1
- package/src/shared/lib/chat/composer/scope.test.ts +1 -1
- package/src/shared/lib/chat/composer/style.test.ts +126 -0
- package/src/shared/lib/chat/composer/style.ts +171 -0
- package/src/shared/lib/chat/composer/translate.test.ts +1 -1
- package/src/shared/lib/chat/composer/trigger.test.ts +1 -1
- package/src/shared/lib/chat/composer/tui-only.test.ts +4 -1
- package/src/shared/lib/chat/composer/tui-only.ts +6 -1
- package/src/shared/lib/chat/context/usage.test.ts +1 -1
- package/src/shared/lib/chat/context/usage.ts +1 -1
- package/src/shared/lib/chat/duration.ts +1 -1
- package/src/shared/lib/chat/excerpt.ts +1 -1
- package/src/shared/lib/chat/new-chat-seed.test.ts +1 -1
- package/src/shared/lib/chat/new-chat-seed.ts +1 -1
- package/src/shared/lib/chat/notice-row.test.ts +1 -1
- package/src/shared/lib/chat/notice-row.ts +1 -1
- package/src/shared/lib/chat/notice-text.ts +1 -1
- package/src/shared/lib/chat/omp/abort.ts +1 -1
- package/src/shared/lib/chat/omp/agent-events.test.ts +1 -1
- package/src/shared/lib/chat/omp/agent-events.ts +1 -1
- package/src/shared/lib/chat/omp/approval-gate.test.ts +1 -1
- package/src/shared/lib/chat/omp/approval-gate.ts +1 -1
- package/src/shared/lib/chat/omp/available-commands-cache.test.ts +1 -1
- package/src/shared/lib/chat/omp/command-output-ansi.test.ts +1 -1
- package/src/shared/lib/chat/omp/fold-deps.ts +1 -1
- package/src/shared/lib/chat/omp/fold.test.ts +1 -1
- package/src/shared/lib/chat/omp/mode-marker.test.ts +1 -1
- package/src/shared/lib/chat/omp/status.ts +1 -1
- package/src/shared/lib/chat/omp/subagent-frames.ts +1 -1
- package/src/shared/lib/chat/omp/terminal-messages.ts +1 -1
- package/src/shared/lib/chat/omp/tool-details.test.ts +1 -1
- package/src/shared/lib/chat/omp/tool-frames.test.ts +1 -1
- package/src/shared/lib/chat/omp/tool-frames.ts +1 -1
- package/src/shared/lib/chat/omp/tool-results.ts +1 -1
- package/src/shared/lib/chat/omp/transport-frames.test.ts +1 -1
- package/src/shared/lib/chat/omp/transport-frames.ts +1 -1
- package/src/shared/lib/chat/read-sse.ts +1 -1
- package/src/shared/lib/chat/text-file.ts +1 -1
- package/src/shared/lib/chat/timeline/block-chrome.ts +129 -0
- package/src/shared/lib/chat/timeline/command-output.ts +1 -1
- package/src/shared/lib/chat/timeline/gutter.test.ts +1 -1
- package/src/shared/lib/chat/timeline/gutter.ts +1 -1
- package/src/shared/lib/chat/timeline/omp-callbacks.test.ts +1 -1
- package/src/shared/lib/chat/timeline/omp-callbacks.ts +1 -1
- package/src/shared/lib/chat/timeline/provider-retry.test.ts +1 -1
- package/src/shared/lib/chat/timeline/provider-retry.ts +1 -1
- package/src/shared/lib/chat/timeline/row-window.test.ts +161 -0
- package/src/shared/lib/chat/timeline/row-window.ts +182 -0
- package/src/shared/lib/chat/timeline/run-footer.test.ts +1 -1
- package/src/shared/lib/chat/timeline/run-footer.ts +1 -1
- package/src/shared/lib/chat/timeline/run-signals.test.ts +1 -1
- package/src/shared/lib/chat/timeline/run-signals.ts +1 -1
- package/src/shared/lib/chat/timeline/steer-report.ts +1 -1
- package/src/shared/lib/chat/timeline/stream-callbacks.ts +1 -1
- package/src/shared/lib/chat/timeline/stream-coalescer.ts +1 -1
- package/src/shared/lib/chat/timeline/stream-raf.ts +1 -1
- package/src/shared/lib/chat/timeline/stream.test.ts +1 -1
- package/src/shared/lib/chat/timeline/tool-phrases.test.ts +1 -1
- package/src/shared/lib/chat/timeline/tool-phrases.ts +1 -1
- package/src/shared/lib/chat/timeline/tool-render-mode.test.ts +51 -0
- package/src/shared/lib/chat/timeline/tool-render-mode.ts +74 -0
- package/src/shared/lib/chat/timeline/tool-verbs.test.ts +1 -1
- package/src/shared/lib/chat/timeline/tool-verbs.ts +1 -1
- package/src/shared/lib/chat/timeline/trace-groups.test.ts +120 -0
- package/src/shared/lib/chat/timeline/trace-groups.ts +68 -0
- package/src/shared/lib/chat/timeline/turns.ts +1 -1
- package/src/shared/lib/chat/timeline/width-mode.test.ts +60 -0
- package/src/shared/lib/chat/timeline/width-mode.ts +84 -0
- package/src/shared/lib/chat/todo/nested-phase.ts +1 -1
- package/src/shared/lib/chat/todo/parser.test.ts +1 -1
- package/src/shared/lib/chat/todo/parser.ts +1 -1
- package/src/shared/lib/chat/todo/progress.test.ts +1 -1
- package/src/shared/lib/chat/todo/progress.ts +1 -1
- package/src/shared/lib/chat/todo/snapshot.test.ts +1 -1
- package/src/shared/lib/chat/todo/snapshot.ts +1 -1
- package/src/shared/lib/chat/tool/artifact-view.test.ts +1 -1
- package/src/shared/lib/chat/tool/artifact-view.ts +1 -1
- package/src/shared/lib/chat/tool/artifact.test.ts +1 -1
- package/src/shared/lib/chat/tool/artifact.ts +1 -1
- package/src/shared/lib/chat/tool/labels.ts +1 -1
- package/src/shared/lib/chat/tool/output-window.test.ts +1 -1
- package/src/shared/lib/chat/tool/output-window.ts +1 -1
- package/src/shared/lib/chat/tool/proc-facts.ts +1 -1
- package/src/shared/lib/chat/tool/summary-proc.test.ts +1 -1
- package/src/shared/lib/chat/tool/summary-wait.test.ts +1 -1
- package/src/shared/lib/chat/tool/summary.test.ts +1 -1
- package/src/shared/lib/chat/tool/summary.ts +1 -1
- package/src/shared/lib/chat/tool/wait-facts.ts +1 -1
- package/src/shared/lib/chat/tool-output.test.ts +1 -1
- package/src/shared/lib/chat/tool-output.ts +1 -1
- package/src/shared/lib/chat/xml-envelope.test.ts +1 -1
- package/src/shared/lib/chat/xml-envelope.ts +1 -1
- package/src/shared/lib/chat/xml-tag.test.ts +1 -1
- package/src/shared/lib/chat/xml-tag.ts +1 -1
- package/src/shared/lib/code/ansi.ts +1 -1
- package/src/shared/lib/code/editor/comment-syntax.test.ts +1 -1
- package/src/shared/lib/code/editor/comment-syntax.ts +1 -1
- package/src/shared/lib/code/editor/find-replace.test.ts +1 -1
- package/src/shared/lib/code/editor/find-replace.ts +1 -1
- package/src/shared/lib/code/editor/find-scan.test.ts +1 -1
- package/src/shared/lib/code/editor/find-scan.ts +1 -1
- package/src/shared/lib/code/editor/find-selection.test.ts +1 -1
- package/src/shared/lib/code/editor/find-status.test.ts +1 -1
- package/src/shared/lib/code/editor/find-status.ts +1 -1
- package/src/shared/lib/code/editor/indent-guide-rule.test.ts +1 -1
- package/src/shared/lib/code/editor/indent-guide-rule.ts +1 -1
- package/src/shared/lib/code/editor/indent-rules.test.ts +1 -1
- package/src/shared/lib/code/editor/indent-rules.ts +1 -1
- package/src/shared/lib/code/editor/keymap.test.ts +1 -1
- package/src/shared/lib/code/editor/keymap.ts +1 -1
- package/src/shared/lib/code/editor/lines.test.ts +1 -1
- package/src/shared/lib/code/editor/lines.ts +1 -1
- package/src/shared/lib/code/editor/marks.test.ts +1 -1
- package/src/shared/lib/code/editor/marks.ts +1 -1
- package/src/shared/lib/code/editor/palette.test.ts +1 -1
- package/src/shared/lib/code/editor/palette.ts +1 -1
- package/src/shared/lib/code/editor/stream-modes.ts +1 -1
- package/src/shared/lib/code/editor/theme-loader.ts +1 -1
- package/src/shared/lib/code/editor/themes.generated.ts +1 -1
- package/src/shared/lib/code/editor/themes.test.ts +1 -1
- package/src/shared/lib/code/editor/themes.ts +1 -1
- package/src/shared/lib/code/editor/typography.test.ts +1 -1
- package/src/shared/lib/code/editor/typography.ts +1 -1
- package/src/shared/lib/code/format.ts +1 -1
- package/src/shared/lib/code/highlight-cache.test.ts +1 -1
- package/src/shared/lib/code/highlight-cache.ts +1 -1
- package/src/shared/lib/code/highlight-memo.test.ts +1 -1
- package/src/shared/lib/code/highlight-memo.ts +1 -1
- package/src/shared/lib/code/highlighter-lazy.ts +1 -1
- package/src/shared/lib/code/highlighter-warmup.ts +1 -1
- package/src/shared/lib/code/highlighter.ts +1 -1
- package/src/shared/lib/code/idle.ts +1 -1
- package/src/shared/lib/code/language.ts +1 -1
- package/src/shared/lib/code/line-endings.test.ts +1 -1
- package/src/shared/lib/code/line-endings.ts +1 -1
- package/src/shared/lib/code/outline/document.ts +1 -1
- package/src/shared/lib/code/outline/extract.test.ts +1 -1
- package/src/shared/lib/code/outline/extract.ts +1 -1
- package/src/shared/lib/code/outline/languages.test.ts +1 -1
- package/src/shared/lib/code/outline/languages.ts +1 -1
- package/src/shared/lib/code/outline/rows.test.ts +1 -1
- package/src/shared/lib/code/outline/rows.ts +1 -1
- package/src/shared/lib/code/outline/rules.ts +1 -1
- package/src/shared/lib/code/outline/scan.ts +1 -1
- package/src/shared/lib/code/outline/spec.ts +1 -1
- package/src/shared/lib/code/outline/types.ts +1 -1
- package/src/shared/lib/code/outline/walk.ts +1 -1
- package/src/shared/lib/code/shiki-langs.ts +1 -1
- package/src/shared/lib/code/shiki-themes.ts +1 -1
- package/src/shared/lib/code/syntax-highlight.test.ts +1 -1
- package/src/shared/lib/dictation/audio.ts +1 -1
- package/src/shared/lib/dictation/models.test.ts +1 -1
- package/src/shared/lib/dictation/models.ts +1 -1
- package/src/shared/lib/dictation/protocol.ts +1 -1
- package/src/shared/lib/fonts/nerd-symbols.css +1 -1
- package/src/shared/lib/fonts/nerd-symbols.test.ts +1 -1
- package/src/shared/lib/format/number.test.ts +1 -1
- package/src/shared/lib/format/number.ts +1 -1
- package/src/shared/lib/format/time.test.ts +1 -1
- package/src/shared/lib/format/time.ts +1 -1
- package/src/shared/lib/fs/browse.ts +1 -1
- package/src/shared/lib/fs/clipboard.test.ts +1 -1
- package/src/shared/lib/fs/clipboard.ts +1 -1
- package/src/shared/lib/fs/commit-count.test.ts +1 -1
- package/src/shared/lib/fs/csv.ts +1 -1
- package/src/shared/lib/fs/document-kind.test.ts +1 -1
- package/src/shared/lib/fs/document-kind.ts +1 -1
- package/src/shared/lib/fs/excerpt-diff.test.ts +1 -1
- package/src/shared/lib/fs/excerpt-diff.ts +1 -1
- package/src/shared/lib/fs/file-kind-classify.test.ts +1 -1
- package/src/shared/lib/fs/file-kind.test.ts +1 -1
- package/src/shared/lib/fs/file-kind.ts +1 -1
- package/src/shared/lib/fs/file-tree.test.ts +1 -1
- package/src/shared/lib/fs/file-url.test.ts +1 -1
- package/src/shared/lib/fs/file-url.ts +1 -1
- package/src/shared/lib/fs/folder-chain.test.ts +1 -1
- package/src/shared/lib/fs/folder-chain.ts +1 -1
- package/src/shared/lib/fs/fs-helpers.test.ts +1 -1
- package/src/shared/lib/fs/git-blame.test.ts +1 -1
- package/src/shared/lib/fs/git-blame.ts +1 -1
- package/src/shared/lib/fs/git-graph.test.ts +1 -1
- package/src/shared/lib/fs/git-status.test.ts +1 -1
- package/src/shared/lib/fs/git-unmerged.test.ts +1 -1
- package/src/shared/lib/fs/git-unmerged.ts +1 -1
- package/src/shared/lib/fs/patch-sides.test.ts +1 -1
- package/src/shared/lib/fs/patch-sides.ts +1 -1
- package/src/shared/lib/fs/paths.test.ts +1 -1
- package/src/shared/lib/fs/repo-groups.ts +1 -1
- package/src/shared/lib/fs/repo-label.test.ts +1 -1
- package/src/shared/lib/fs/repo-label.ts +1 -1
- package/src/shared/lib/fs/search-list.test.ts +1 -1
- package/src/shared/lib/fs/search-list.ts +1 -1
- package/src/shared/lib/fs/search-row.test.ts +1 -1
- package/src/shared/lib/fs/search-row.ts +1 -1
- package/src/shared/lib/fs/worktree/settings-keys.ts +1 -1
- package/src/shared/lib/git/url.test.ts +1 -1
- package/src/shared/lib/git/url.ts +1 -1
- package/src/shared/lib/markdown/autolink.test.ts +1 -1
- package/src/shared/lib/markdown/autolink.ts +1 -1
- package/src/shared/lib/markdown/directives.ts +1 -1
- package/src/shared/lib/markdown/document-urls.test.ts +1 -1
- package/src/shared/lib/markdown/document-urls.ts +1 -1
- package/src/shared/lib/markdown/fira-code-fonts.css +1 -1
- package/src/shared/lib/markdown/headings.test.ts +1 -1
- package/src/shared/lib/markdown/headings.ts +1 -1
- package/src/shared/lib/markdown/katex-fonts.css +1 -1
- package/src/shared/lib/markdown/katex.ts +1 -1
- package/src/shared/lib/markdown/marked.ts +1 -1
- package/src/shared/lib/markdown/math.test.ts +1 -1
- package/src/shared/lib/markdown/mermaid.ts +1 -1
- package/src/shared/lib/markdown/sanitize.test.ts +1 -1
- package/src/shared/lib/markdown/sanitize.ts +1 -1
- package/src/shared/lib/markdown/table.test.ts +1 -1
- package/src/shared/lib/models/client.ts +1 -1
- package/src/shared/lib/models/identity.ts +1 -1
- package/src/shared/lib/models/models-shared.test.ts +1 -1
- package/src/shared/lib/models/picker-collapsed.ts +46 -0
- package/src/shared/lib/models/preferences.test.ts +1 -1
- package/src/shared/lib/models/preferences.ts +1 -1
- package/src/shared/lib/models/provider/connection.ts +1 -1
- package/src/shared/lib/models/provider/dialect.test.ts +1 -1
- package/src/shared/lib/models/provider/dialect.ts +1 -1
- package/src/shared/lib/models/provider/glyph.test.ts +1 -1
- package/src/shared/lib/models/provider/glyph.ts +1 -1
- package/src/shared/lib/models/provider/models.test.ts +1 -1
- package/src/shared/lib/models/provider/origin.ts +1 -1
- package/src/shared/lib/models/provider/presets.test.ts +1 -1
- package/src/shared/lib/models/provider/presets.ts +1 -1
- package/src/shared/lib/models/provider/provider-ui.test.ts +1 -1
- package/src/shared/lib/models/server-cache.ts +1 -1
- package/src/shared/lib/models/thinking-levels.test.ts +1 -1
- package/src/shared/lib/models/thinking-levels.ts +1 -1
- package/src/shared/lib/omp/config/access-mode.server.ts +1 -1
- package/src/shared/lib/omp/config/access-mode.ts +1 -1
- package/src/shared/lib/omp/config/model-roles.ts +1 -1
- package/src/shared/lib/omp/config/schema-extras.ts +1 -1
- package/src/shared/lib/omp/config/schema-types.ts +1 -1
- package/src/shared/lib/omp/config/schema.test.ts +1 -1
- package/src/shared/lib/omp/config/schema.ts +1 -1
- package/src/shared/lib/omp/dialog-methods.ts +1 -1
- package/src/shared/lib/omp/mode/budget.ts +1 -1
- package/src/shared/lib/omp/mode/client-signal.ts +1 -1
- package/src/shared/lib/omp/mode/constants.ts +1 -1
- package/src/shared/lib/omp/mode/format.ts +1 -1
- package/src/shared/lib/omp/mode/markers.test.ts +1 -1
- package/src/shared/lib/omp/mode/markers.ts +1 -1
- package/src/shared/lib/omp/mode/notice.test.ts +1 -1
- package/src/shared/lib/omp/mode/notice.ts +1 -1
- package/src/shared/lib/omp/mode/status.ts +1 -1
- package/src/shared/lib/omp/mode/tables.test.ts +1 -1
- package/src/shared/lib/omp/mode/types.ts +1 -1
- package/src/shared/lib/omp/rpc/frame.test.ts +1 -1
- package/src/shared/lib/omp/rpc/frame.ts +1 -1
- package/src/shared/lib/omp/session/default-title.test.ts +1 -1
- package/src/shared/lib/omp/session/default-title.ts +1 -1
- package/src/shared/lib/omp/session/hashline-patch.ts +1 -1
- package/src/shared/lib/omp/session/inlined-attachments.test.ts +1 -1
- package/src/shared/lib/omp/session/job-progress.test.ts +1 -1
- package/src/shared/lib/omp/session/job-progress.ts +1 -1
- package/src/shared/lib/omp/session/jsonl.test.ts +1 -1
- package/src/shared/lib/omp/session/jsonl.ts +1 -1
- package/src/shared/lib/omp/session/mapper.test.ts +1 -1
- package/src/shared/lib/omp/session/mapper.ts +1 -1
- package/src/shared/lib/omp/session/messages-map-pending.test.ts +1 -1
- package/src/shared/lib/omp/session/messages-map.test.ts +1 -1
- package/src/shared/lib/omp/session/messages-map.ts +1 -1
- package/src/shared/lib/omp/session/messages-parse.ts +1 -1
- package/src/shared/lib/omp/session/narration.test.ts +1 -1
- package/src/shared/lib/omp/session/operator-title.test.ts +1 -1
- package/src/shared/lib/omp/session/operator-title.ts +1 -1
- package/src/shared/lib/omp/session/parse-message-blocks-attachments.test.ts +1 -1
- package/src/shared/lib/omp/session/parse-message-blocks-toolcall.test.ts +1 -1
- package/src/shared/lib/omp/session/parse-message-blocks.test.ts +1 -1
- package/src/shared/lib/omp/session/parse-message-blocks.ts +1 -1
- package/src/shared/lib/omp/session/prewarm-misc.test.ts +1 -1
- package/src/shared/lib/omp/session/prewarm.test.ts +1 -1
- package/src/shared/lib/omp/session/prewarm.ts +1 -1
- package/src/shared/lib/omp/session/proc.test.ts +1 -1
- package/src/shared/lib/omp/session/proc.ts +1 -1
- package/src/shared/lib/omp/session/schema-migrations.ts +1 -1
- package/src/shared/lib/omp/session/sidebar.test.ts +1 -1
- package/src/shared/lib/omp/session/sidebar.ts +1 -1
- package/src/shared/lib/omp/session/skill-bubble.test.ts +1 -1
- package/src/shared/lib/omp/session/stream-heal.server.test.ts +1 -1
- package/src/shared/lib/omp/session/stream-heal.server.ts +1 -1
- package/src/shared/lib/omp/session/stream-state.server.test.ts +1 -1
- package/src/shared/lib/omp/session/stream-state.server.ts +1 -1
- package/src/shared/lib/omp/session/telemetry-blocks.ts +1 -1
- package/src/shared/lib/omp/session/timestamps.ts +1 -1
- package/src/shared/lib/omp/session/tool-duration.test.ts +1 -1
- package/src/shared/lib/omp/session/tool-images.test.ts +1 -1
- package/src/shared/lib/omp/session/tool-images.ts +1 -1
- package/src/shared/lib/omp/session/turn-error.ts +1 -1
- package/src/shared/lib/omp/session/wait.test.ts +1 -1
- package/src/shared/lib/omp/session/wait.ts +1 -1
- package/src/shared/lib/omp/subagent/control.ts +1 -1
- package/src/shared/lib/omp/subagent/history/client.ts +1 -1
- package/src/shared/lib/omp/subagent/history/settlement.test.ts +1 -1
- package/src/shared/lib/omp/subagent/history/settlement.ts +1 -1
- package/src/shared/lib/omp/subagent/history/status.ts +1 -1
- package/src/shared/lib/omp/subagent/label.test.ts +1 -1
- package/src/shared/lib/omp/subagent/label.ts +1 -1
- package/src/shared/lib/omp/subagent/parse.test.ts +1 -1
- package/src/shared/lib/omp/subagent/parse.ts +1 -1
- package/src/shared/lib/omp/subagent/result-details.ts +1 -1
- package/src/shared/lib/omp/subagent/transcript-client.test.ts +1 -1
- package/src/shared/lib/omp/subagent/transcript-client.ts +1 -1
- package/src/shared/lib/panels/capabilities.test.ts +1 -1
- package/src/shared/lib/panels/capabilities.ts +1 -1
- package/src/shared/lib/panels/css-scope.test.ts +1 -1
- package/src/shared/lib/panels/css-scope.ts +1 -1
- package/src/shared/lib/panels/resolve-asset.test.ts +1 -1
- package/src/shared/lib/panels/resolve-asset.ts +1 -1
- package/src/shared/lib/panels/slot-labels.test.ts +1 -1
- package/src/shared/lib/panels/slot-labels.ts +1 -1
- package/src/shared/lib/plugins/protocol.ts +1 -1
- package/src/shared/lib/realtime/client.ts +1 -1
- package/src/shared/lib/realtime/connection.test.ts +1 -1
- package/src/shared/lib/realtime/connection.ts +1 -1
- package/src/shared/lib/realtime/frozen-recovery.test.ts +1 -1
- package/src/shared/lib/realtime/protocol.ts +1 -1
- package/src/shared/lib/realtime/resume.ts +1 -1
- package/src/shared/lib/realtime/state.ts +1 -1
- package/src/shared/lib/realtime/watchdog-wiring.test.ts +1 -1
- package/src/shared/lib/realtime/watchdog.test.ts +1 -1
- package/src/shared/lib/realtime/watchdog.ts +1 -1
- package/src/shared/lib/schedule/parse.test.ts +1 -1
- package/src/shared/lib/schedule/parse.ts +1 -1
- package/src/shared/lib/settings/client.ts +1 -1
- package/src/shared/lib/settings/defaults.ts +48 -0
- package/src/shared/lib/settings/diff.ts +1 -1
- package/src/shared/lib/settings/keys.ts +1 -1
- package/src/shared/lib/theme/catalog.test.ts +1 -1
- package/src/shared/lib/theme/catalog.ts +1 -1
- package/src/shared/lib/theme/chrome.test.ts +1 -1
- package/src/shared/lib/theme/chrome.ts +1 -1
- package/src/shared/lib/theme/color.test.ts +1 -1
- package/src/shared/lib/theme/color.ts +1 -1
- package/src/shared/lib/theme/css.ts +1 -1
- package/src/shared/lib/theme/palettes/dark.ts +1 -1
- package/src/shared/lib/theme/palettes/kabmo.ts +1 -1
- package/src/shared/lib/theme/palettes/light.ts +1 -1
- package/src/shared/lib/theme/shell-palette.test.ts +1 -1
- package/src/shared/lib/theme/shell-palette.ts +1 -1
- package/src/shared/lib/theme/theme.test.ts +1 -1
- package/src/shared/lib/ui/key-binding.test.ts +1 -1
- package/src/shared/lib/ui/key-binding.ts +1 -1
- package/src/shared/lib/ui/scroll-reveal.test.ts +1 -1
- package/src/shared/lib/ui/scroll-reveal.ts +1 -1
- package/src/shared/lib/ui/titlebar.test.ts +1 -1
- package/src/shared/lib/ui/titlebar.ts +1 -1
- package/src/shared/lib/ui/toolbar-overflow.test.ts +1 -1
- package/src/shared/lib/ui/toolbar-overflow.ts +1 -1
- package/src/shared/lib/updates/popup-state.test.ts +1 -1
- package/src/shared/lib/updates/semver.test.ts +1 -1
- package/src/shared/lib/updates/shell-arch.ts +1 -1
- package/src/shared/lib/updates/shell-ua.test.ts +1 -1
- package/src/shared/lib/util/bytes.test.ts +41 -0
- package/src/shared/lib/util/bytes.ts +31 -0
- package/src/shared/lib/util/guards.test.ts +1 -1
- package/src/shared/lib/util/guards.ts +1 -1
- package/src/shared/lib/util/platform.test.ts +1 -1
- package/src/shared/lib/util/platform.ts +1 -1
- package/src/shared/lib/wiki/document-urls.test.ts +1 -1
- package/src/shared/lib/wiki/document-urls.ts +1 -1
- package/src/shared/lib/wiki/pages.test.ts +1 -1
- package/src/shared/lib/wiki/pages.ts +1 -1
- package/src/shared/lib/wiki/sidebar.test.ts +1 -1
- package/src/shared/lib/wiki/sidebar.ts +1 -1
- package/src/shared/lib/workspace/batch-select.test.ts +1 -1
- package/src/shared/lib/workspace/batch-select.ts +1 -1
- package/src/shared/lib/workspace/editor-view-mode.test.ts +1 -1
- package/src/shared/lib/workspace/editor-view-mode.ts +1 -1
- package/src/shared/lib/workspace/file-tab-id.ts +1 -1
- package/src/shared/lib/workspace/keymap.test.ts +1 -1
- package/src/shared/lib/workspace/keymap.ts +1 -1
- package/src/shared/lib/workspace/left-dock-width.ts +1 -1
- package/src/shared/lib/workspace/left-dock.test.ts +1 -1
- package/src/shared/lib/workspace/left-dock.ts +1 -1
- package/src/shared/lib/workspace/mobile-dock.test.ts +1 -1
- package/src/shared/lib/workspace/mobile-dock.ts +1 -1
- package/src/shared/lib/workspace/panel-ids.test.ts +1 -1
- package/src/shared/lib/workspace/panel-ids.ts +1 -1
- package/src/shared/lib/workspace/panel-open.test.ts +1 -1
- package/src/shared/lib/workspace/panel-open.ts +1 -1
- package/src/shared/lib/workspace/panel-order.test.ts +1 -1
- package/src/shared/lib/workspace/panel-order.ts +1 -1
- package/src/shared/lib/workspace/panel-widths.test.ts +1 -1
- package/src/shared/lib/workspace/project-settings.test.ts +1 -1
- package/src/shared/lib/workspace/refresh-cadence.test.ts +1 -1
- package/src/shared/lib/workspace/refresh-cadence.ts +1 -1
- package/src/shared/lib/workspace/scroll-positions.test.ts +1 -1
- package/src/shared/lib/workspace/scroll-positions.ts +1 -1
- package/src/shared/lib/workspace/session-focus.test.ts +93 -0
- package/src/shared/lib/workspace/session-focus.ts +71 -0
- package/src/shared/lib/workspace/session-state/cache.ts +1 -1
- package/src/shared/lib/workspace/session-state/harness.test-util.ts +1 -1
- package/src/shared/lib/workspace/session-state/listeners.ts +1 -1
- package/src/shared/lib/workspace/session-state/merge.ts +1 -1
- package/src/shared/lib/workspace/session-state/replacement.test.ts +1 -1
- package/src/shared/lib/workspace/session-state/store-load.test.ts +1 -1
- package/src/shared/lib/workspace/session-state/store.test.ts +1 -1
- package/src/shared/lib/workspace/session-visibility.test.ts +1 -1
- package/src/shared/lib/workspace/session-visibility.ts +1 -1
- package/src/shared/lib/workspace/sidebar-filter-row.test.ts +73 -0
- package/src/shared/lib/workspace/sidebar-filter-row.ts +86 -0
- package/src/shared/lib/workspace/sidebar-sort.test.ts +1 -1
- package/src/shared/lib/workspace/sidebar-sort.ts +1 -1
- package/src/shared/lib/workspace/sidebar-style.test.ts +58 -0
- package/src/shared/lib/workspace/sidebar-style.ts +86 -0
- package/src/shared/lib/workspace/sidebar-toolbar.test.ts +1 -1
- package/src/shared/lib/workspace/sidebar-toolbar.ts +1 -1
- package/src/shared/lib/workspace/sidebar-width.test.ts +1 -1
- package/src/shared/lib/workspace/split-editor.test.ts +1 -1
- package/src/shared/lib/workspace/split-editor.ts +1 -1
- package/src/shared/lib/workspace/terminal/keys.test.ts +1 -1
- package/src/shared/lib/workspace/terminal/keys.ts +1 -1
- package/src/shared/lib/workspace/terminal/protocol.test.ts +1 -1
- package/src/shared/lib/workspace/terminal/protocol.ts +1 -1
- package/src/shared/lib/workspace/workspace-modules.test.ts +1 -1
- package/src/shared/lib/workspace/workspace-panel-widths.ts +1 -1
- package/src/shared/lib/workspace/worktree/branch-name.test.ts +1 -1
- package/src/shared/lib/workspace/worktree/branch-name.ts +1 -1
- package/src/shared/lib/workspace/worktree/types.ts +1 -1
- package/src/shared/types/btw.ts +1 -1
- package/src/shared/types/model-roles.ts +1 -1
- package/src/shared/types/models.ts +1 -1
- package/src/shared/types/omp/agent.ts +7 -1
- package/src/shared/types/omp/instructions.ts +1 -1
- package/src/shared/types/omp/session.ts +1 -1
- package/src/shared/types/omp/subagent.ts +1 -1
- package/src/shared/types/plan.ts +1 -1
- package/src/shared/types/realtime.ts +1 -1
- package/src/shared/types/schedule.ts +1 -1
- package/src/shared/types/settings/state.ts +42 -0
- package/src/shared/types/styles.d.ts +19 -0
- package/src/shared/types/theme.ts +1 -1
- package/src/shared/types/todo.ts +1 -1
- package/src/shared/types/waiting.ts +1 -1
- package/src/shared/types/wiki.ts +1 -1
- package/src/test-support/executable-stub.ts +40 -5
- package/src/test-support/fake-git.ts +1 -1
- package/src/test-support/fake-omp-fork.ts +1 -1
- package/src/test-support/fake-omp-restore.ts +1 -1
- package/src/test-support/file-actions.test-util.ts +1 -1
- package/src/test-support/file-clipboard.test-util.ts +1 -1
- package/src/test-support/file-editor.test-util.ts +1 -1
- package/src/test-support/file-explorer-disk.test-util.ts +1 -1
- package/src/test-support/file-explorer.test-util.ts +1 -1
- package/src/test-support/isolated-db.ts +1 -1
- package/src/test-support/loopback.ts +1 -1
- package/src/test-support/peer-harness.ts +1 -1
- package/src/test-support/platform.test.ts +1 -1
- package/src/test-support/platform.ts +1 -1
- package/src/test-support/pristine-globals.ts +1 -1
- package/src/test-support/realtime-server.ts +1 -1
- package/src/test-support/remove-dir.ts +1 -1
- package/src/test-support/silent-socket.ts +1 -1
- package/src/test-support/stub-cache.test.ts +107 -0
- package/src/test-support/stub-cache.ts +76 -0
- package/tsconfig.json +0 -1
- package/dist/client/static/js/index-shexbk5f.css +0 -1
- package/marketplace/plugins/git-forge/src/header.tsx +0 -87
- package/src/client/components/workspace/chat-timeline/ToolCallCard.tsx +0 -194
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* SPDX-License-Identifier:
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -22,12 +22,13 @@
|
|
|
22
22
|
* section's children are only headings and cards.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { afterAll, beforeAll, describe, expect, test } from 'bun:test';
|
|
25
|
+
import { afterAll, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
|
|
26
26
|
import { Window } from 'happy-dom';
|
|
27
27
|
import { h, render } from 'preact';
|
|
28
28
|
import { act } from 'preact/test-utils';
|
|
29
29
|
import { ToolCallingSection } from '@/client/components/workspace/chat-timeline/ToolCallingSection';
|
|
30
30
|
import { SessionStateProvider } from '@/client/components/common/session-state-provider';
|
|
31
|
+
import { primeKabmoSettings } from '@/shared/lib/settings/client';
|
|
31
32
|
import type { ToolCallData } from '@/shared/types/chat';
|
|
32
33
|
|
|
33
34
|
const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'HTMLInputElement', 'Event', 'MouseEvent', 'KeyboardEvent'] as const;
|
|
@@ -51,6 +52,19 @@ afterAll(() => {
|
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
54
|
|
|
55
|
+
/**
|
|
56
|
+
* The `card` style, pinned.
|
|
57
|
+
*
|
|
58
|
+
* The style is read from Kabmo's settings snapshot, which is PROCESS-wide and
|
|
59
|
+
* primed by whichever file ran last — `styles.test.tsx` leaves `trace` behind.
|
|
60
|
+
* Bun's file order differs per platform, so an unpinned run drew whatever the
|
|
61
|
+
* previous file had chosen: measured, this file passed on macOS and its three
|
|
62
|
+
* order assertions failed on Windows with the card rows missing entirely.
|
|
63
|
+
*/
|
|
64
|
+
beforeEach(() => {
|
|
65
|
+
primeKabmoSettings({ kabmo_settings: { toolRenderStyle: 'card' } });
|
|
66
|
+
});
|
|
67
|
+
|
|
54
68
|
function tool(id: string, intent: string | undefined, title = 'Bash'): ToolCallData {
|
|
55
69
|
return { id, type: 'bash', name: 'bash', title, intent, status: 'success', output: 'ok' } as ToolCallData;
|
|
56
70
|
}
|
|
@@ -73,17 +87,23 @@ async function mount(tools: ToolCallData[]) {
|
|
|
73
87
|
/**
|
|
74
88
|
* The section's direct children in render order: intent headings and their
|
|
75
89
|
* cards. A section renders nothing else.
|
|
90
|
+
*
|
|
91
|
+
* A card is found by `data-tool-row`, the contract every style sets, not by a
|
|
92
|
+
* substring of its Tailwind classes. The class form was measured failing on
|
|
93
|
+
* Windows: the same three assertions reported `Received: 0` cards, with the
|
|
94
|
+
* heading text still present, and the class string it looked for is assembled
|
|
95
|
+
* from a template that platform does not change — so the lookup was the
|
|
96
|
+
* fragile part, not the render.
|
|
76
97
|
*/
|
|
77
98
|
function sequence(el: HTMLElement): Array<{ kind: 'heading' | 'card'; text: string }> {
|
|
78
99
|
const section = el.querySelector('[data-tool-section]')!;
|
|
79
100
|
const items = Array.from(section.children).map((child) => {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
return { kind: 'card' as const, text: (col.children[0]?.textContent || '').trim() };
|
|
101
|
+
if (!(child instanceof HTMLElement) || !child.hasAttribute('data-tool-row')) {
|
|
102
|
+
const label = child.querySelector('span');
|
|
103
|
+
return { kind: 'heading' as const, text: label ? (label.textContent || '').trim() : '' };
|
|
84
104
|
}
|
|
85
|
-
const
|
|
86
|
-
return { kind: '
|
|
105
|
+
const col = child.querySelector('button')!.children[1];
|
|
106
|
+
return { kind: 'card' as const, text: (col.children[0]?.textContent || '').trim() };
|
|
87
107
|
});
|
|
88
108
|
return items.filter((item) => item.kind !== 'heading' || item.text);
|
|
89
109
|
}
|
|
@@ -111,7 +131,7 @@ describe('ToolCallingSection per-card intent heading', () => {
|
|
|
111
131
|
// No header row: every direct child is a card.
|
|
112
132
|
const children = Array.from(el.querySelector('[data-tool-section]')!.children) as HTMLElement[];
|
|
113
133
|
expect(children).toHaveLength(2);
|
|
114
|
-
expect(children.every((child) => child.
|
|
134
|
+
expect(children.every((child) => child.getAttribute('data-tool-row') === 'card')).toBe(true);
|
|
115
135
|
});
|
|
116
136
|
|
|
117
137
|
test('a card without an intent simply has no heading', async () => {
|
|
@@ -1,14 +1,39 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
|
-
* SPDX-License-Identifier:
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* A block of tool calls in the transcript, drawn in the style the user chose.
|
|
8
|
+
*
|
|
9
|
+
* The section owns three things and delegates the rest:
|
|
10
|
+
*
|
|
11
|
+
* 1. **Normalization** — the MOCK/sample path carries `AgentActionData`, which
|
|
12
|
+
* is mapped onto `ToolCallData` so every style reads one shape.
|
|
13
|
+
* 2. **Openness** — persisted per session by `useToolOpenState`, so a reload or
|
|
14
|
+
* a history page-in does not close the call the reader opened.
|
|
15
|
+
* 3. **The intent heading** — one line above a call, naming what the call was
|
|
16
|
+
* for. It is drawn by the section, not by a style, so the four styles cannot
|
|
17
|
+
* disagree about it.
|
|
18
|
+
*
|
|
19
|
+
* The STYLE decides the frame: `card` draws `CardRow`, `compact` a status line,
|
|
20
|
+
* `trace` a rail node, `minimal` a faint line. Every style receives the same
|
|
21
|
+
* tool and the same openness, and each renders the shared `ToolBody`.
|
|
4
22
|
*/
|
|
5
23
|
|
|
6
24
|
import { Fragment } from 'preact';
|
|
7
25
|
import { useMemo } from 'preact/hooks';
|
|
26
|
+
import type { FunctionComponent } from 'preact/compat';
|
|
8
27
|
import type { AgentActionData, ToolCallData, ToolType } from '@/shared/types';
|
|
9
|
-
import { ToolCallCard } from '@/client/components/workspace/chat-timeline/ToolCallCard';
|
|
10
28
|
import { useToolOpenState } from '@/client/hooks/chat/timeline/tool-open';
|
|
29
|
+
import { useToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
|
|
11
30
|
import { transcriptGutter } from '@/shared/lib/chat/timeline/gutter';
|
|
31
|
+
import type { ToolRenderMode } from '@/shared/lib/chat/timeline/tool-render-mode';
|
|
32
|
+
import { CardRow } from '@/client/components/workspace/chat-timeline/tool-renderers/styles/Card';
|
|
33
|
+
import { CompactRow } from '@/client/components/workspace/chat-timeline/tool-renderers/styles/Compact';
|
|
34
|
+
import { TraceRow } from '@/client/components/workspace/chat-timeline/tool-renderers/styles/Trace';
|
|
35
|
+
import { MinimalRow } from '@/client/components/workspace/chat-timeline/tool-renderers/styles/Minimal';
|
|
36
|
+
import type { ToolRowProps } from '@/client/components/workspace/chat-timeline/tool-renderers/styles/props';
|
|
12
37
|
|
|
13
38
|
interface ToolCallingSectionProps {
|
|
14
39
|
tools: (ToolCallData | AgentActionData)[];
|
|
@@ -17,6 +42,14 @@ interface ToolCallingSectionProps {
|
|
|
17
42
|
isMobile?: boolean;
|
|
18
43
|
}
|
|
19
44
|
|
|
45
|
+
/** One renderer per mode — a total map, so a new mode is a build error here. */
|
|
46
|
+
const ROW_BY_MODE: Record<ToolRenderMode, FunctionComponent<ToolRowProps>> = {
|
|
47
|
+
card: CardRow,
|
|
48
|
+
compact: CompactRow,
|
|
49
|
+
trace: TraceRow,
|
|
50
|
+
minimal: MinimalRow,
|
|
51
|
+
};
|
|
52
|
+
|
|
20
53
|
function normalizeToolData(action: ToolCallData | AgentActionData, index: number): ToolCallData {
|
|
21
54
|
if ('id' in action && action.id) {
|
|
22
55
|
return action as ToolCallData;
|
|
@@ -57,6 +90,9 @@ function normalizeToolData(action: ToolCallData | AgentActionData, index: number
|
|
|
57
90
|
}
|
|
58
91
|
|
|
59
92
|
export function ToolCallingSection({ tools, defaultExpanded = false, isMobile = false }: ToolCallingSectionProps) {
|
|
93
|
+
const mode = useToolRenderMode();
|
|
94
|
+
const Row = ROW_BY_MODE[mode];
|
|
95
|
+
|
|
60
96
|
const normalizedTools = useMemo(() => {
|
|
61
97
|
return (tools || []).map((t, i) => normalizeToolData(t, i));
|
|
62
98
|
}, [tools]);
|
|
@@ -68,13 +104,21 @@ export function ToolCallingSection({ tools, defaultExpanded = false, isMobile =
|
|
|
68
104
|
if (!normalizedTools || normalizedTools.length === 0) return null;
|
|
69
105
|
|
|
70
106
|
return (
|
|
71
|
-
<div
|
|
107
|
+
<div
|
|
108
|
+
className={`${transcriptGutter(isMobile)} ${mode === 'trace' ? 'relative' : 'space-y-1.5'}`}
|
|
109
|
+
data-tool-section
|
|
110
|
+
data-tool-style={mode}
|
|
111
|
+
>
|
|
112
|
+
{/* The rail itself is drawn ONCE per turn by `TurnRail` (see
|
|
113
|
+
`MessageItem`): a segment per section broke wherever prose sat between
|
|
114
|
+
two blocks, which is exactly what a trace may not do. A row still
|
|
115
|
+
places its own node. */}
|
|
72
116
|
{normalizedTools.map((tool) => {
|
|
73
117
|
const intent = tool.intent?.trim();
|
|
74
118
|
return (
|
|
75
119
|
<Fragment key={tool.id}>
|
|
76
120
|
{intent && (
|
|
77
|
-
<div className=
|
|
121
|
+
<div className={`flex items-center gap-2 px-1 pt-0.5 ${mode === 'trace' ? 'pl-4' : ''}`}>
|
|
78
122
|
{/* Label sizes to its text; the rule takes everything left over,
|
|
79
123
|
so the line runs to the panel edge the way `ThinkingSection`
|
|
80
124
|
draws it. The label is NOT `flex-1` — two `flex-1` items split
|
|
@@ -91,7 +135,7 @@ export function ToolCallingSection({ tools, defaultExpanded = false, isMobile =
|
|
|
91
135
|
<span className="h-px min-w-6 flex-1 bg-ink/8" />
|
|
92
136
|
</div>
|
|
93
137
|
)}
|
|
94
|
-
<
|
|
138
|
+
<Row
|
|
95
139
|
tool={tool}
|
|
96
140
|
isOpen={Boolean(openMap[tool.id])}
|
|
97
141
|
onToggle={toggle}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The `trace` rail for ONE turn, drawn by the turn rather than by each block.
|
|
8
|
+
*
|
|
9
|
+
* The first shape gave every block (thinking, the tool section, a notice) its
|
|
10
|
+
* own segment sized to that block. Measured on the 39-call sample session in the
|
|
11
|
+
* browser, that produced three disconnected lines with real gaps between them:
|
|
12
|
+
*
|
|
13
|
+
* thinking -1390 → -1356 (34px)
|
|
14
|
+
* gap 256px ← the answer text in between
|
|
15
|
+
* tool section -1100 → 368 (1468px)
|
|
16
|
+
* gap 99px
|
|
17
|
+
* notice 467 → 512 (45px)
|
|
18
|
+
*
|
|
19
|
+
* A rail whose whole job is to say "these steps are one sequence" cannot break
|
|
20
|
+
* wherever prose happens to sit between them, so the line belongs to the
|
|
21
|
+
* container that holds them all and each block only places its NODE on it.
|
|
22
|
+
*
|
|
23
|
+
* The horizontal origin is the blocks' own gutter: every block is inset by
|
|
24
|
+
* `transcriptGutter` (12px on desktop, 0 on a phone) and puts its node at its
|
|
25
|
+
* own `left-0`, so the rail sits at `gutter + 3.5px` — measured `rail 315 /
|
|
26
|
+
* node 315` for thinking, a notice and a tool row alike.
|
|
27
|
+
*
|
|
28
|
+
* Rendered only when the turn actually has a trace block; a line drawn beside a
|
|
29
|
+
* plain answer would claim a sequence that is not there.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
interface TurnRailProps {
|
|
33
|
+
/** The turn has at least one block that draws a node. */
|
|
34
|
+
visible: boolean;
|
|
35
|
+
isMobile: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TurnRail({ visible, isMobile }: TurnRailProps) {
|
|
39
|
+
if (!visible) return null;
|
|
40
|
+
return (
|
|
41
|
+
<span
|
|
42
|
+
aria-hidden="true"
|
|
43
|
+
data-turn-rail
|
|
44
|
+
// The line spans the run, so it starts a little above the first node and
|
|
45
|
+
// ends a little below the last (the row's own margin plus the node's 9px
|
|
46
|
+
// offset — measured 21px / 32px). Both ends taper, so the rail reads as the
|
|
47
|
+
// run's column rather than a bar with cut ends.
|
|
48
|
+
//
|
|
49
|
+
// The taper is an INLINE style, not `[mask-image:…]`: an arbitrary-value
|
|
50
|
+
// class only exists if the CSS generator emitted that exact string, and
|
|
51
|
+
// measured in the browser the computed `mask-image` was `none` — the class
|
|
52
|
+
// was in the bundle but the dev asset serving the page had not been
|
|
53
|
+
// regenerated, which is the silent failure mode the wiki records for
|
|
54
|
+
// arbitrary classes (a missing rule fails without an error).
|
|
55
|
+
style={{
|
|
56
|
+
maskImage: 'linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 10px), transparent 100%)',
|
|
57
|
+
WebkitMaskImage: 'linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 10px), transparent 100%)',
|
|
58
|
+
}}
|
|
59
|
+
className={`pointer-events-none absolute top-0 bottom-0 w-px bg-ink/15 ${
|
|
60
|
+
isMobile ? 'left-[3.5px]' : 'left-[15.5px]'
|
|
61
|
+
}`}
|
|
62
|
+
/>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Every transcript block wears the frame of the chosen style — not just the
|
|
8
|
+
* tool rows.
|
|
9
|
+
*
|
|
10
|
+
* The defect this pins: `toolRenderStyle` reached `ToolCallingSection` only, so
|
|
11
|
+
* a user on `compact` got compact tool rows sandwiched between a thinking card
|
|
12
|
+
* and a notice card in the old frame. A setting that half applies is a setting
|
|
13
|
+
* that reads as broken, and the fix is structural — one `blockChrome` table
|
|
14
|
+
* consulted by every block.
|
|
15
|
+
*
|
|
16
|
+
* Mounted against happy-dom and read from RENDERED markup, because the classes
|
|
17
|
+
* were right in the table while a component still spelled its own frame out.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, test } from 'bun:test';
|
|
21
|
+
import { Window } from 'happy-dom';
|
|
22
|
+
import { h, render } from 'preact';
|
|
23
|
+
import { act } from 'preact/test-utils';
|
|
24
|
+
import { ThinkingSection } from '@/client/components/workspace/chat-timeline/ThinkingSection';
|
|
25
|
+
import { SystemNotice } from '@/client/components/workspace/chat-timeline/SystemNotice';
|
|
26
|
+
import { primeKabmoSettings } from '@/shared/lib/settings/client';
|
|
27
|
+
import { applyToolRenderMode } from '@/client/hooks/chat/timeline/tool-render-mode';
|
|
28
|
+
import { blockChrome } from '@/shared/lib/chat/timeline/block-chrome';
|
|
29
|
+
import { installDomGlobals, restoreDomGlobals } from '@/test-support/pristine-globals';
|
|
30
|
+
|
|
31
|
+
let container: HTMLElement;
|
|
32
|
+
|
|
33
|
+
beforeAll(() => installDomGlobals(new Window({ url: 'http://localhost' })));
|
|
34
|
+
afterAll(() => restoreDomGlobals());
|
|
35
|
+
|
|
36
|
+
beforeEach(() => {
|
|
37
|
+
// The DOM globals are installed ONCE for the file (beforeAll): swapping
|
|
38
|
+
// them per test churns `window`/`Event` for every other suite sharing the
|
|
39
|
+
// process, which made a later file register its hooks after the run had
|
|
40
|
+
// completed (`Cannot call beforeEach() after the test run has completed`).
|
|
41
|
+
container = document.createElement('div');
|
|
42
|
+
document.body.appendChild(container);
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
afterEach(() => {
|
|
46
|
+
render(null, container);
|
|
47
|
+
container.remove();
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/** A thought long enough that the block renders (an empty one renders nothing). */
|
|
51
|
+
const THOUGHT = { thought: 'Read the summary module, then patch the header row.', duration: '1.2s' };
|
|
52
|
+
/** A multi-line notice: single-line notices have nothing to expand. */
|
|
53
|
+
const NOTICE = 'Line one\nLine two';
|
|
54
|
+
const MULTI_LINE_NOTICE = NOTICE;
|
|
55
|
+
|
|
56
|
+
async function paint(style: string, node: preact.ComponentChildren): Promise<HTMLElement> {
|
|
57
|
+
// Unmount first: preact reuses the instance for a same-type vnode, so a
|
|
58
|
+
// mounted hook keeps the mode it read on its FIRST render and a second
|
|
59
|
+
// paint would assert against the previous style.
|
|
60
|
+
render(null, container);
|
|
61
|
+
primeKabmoSettings({ kabmo_settings: { toolRenderStyle: style } });
|
|
62
|
+
await act(async () => {
|
|
63
|
+
render(node as never, container);
|
|
64
|
+
});
|
|
65
|
+
return container;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
describe('blockChrome', () => {
|
|
69
|
+
test('only the card style has a frame', () => {
|
|
70
|
+
expect(blockChrome('card').frame).toContain('rounded-xl');
|
|
71
|
+
expect(blockChrome('card').frame).toContain('border-ink/10');
|
|
72
|
+
for (const mode of ['compact', 'trace', 'minimal'] as const) {
|
|
73
|
+
expect(blockChrome(mode).frame).toBe('');
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
test('only the trace style places a node, and it is the only one with a relative root', () => {
|
|
78
|
+
expect(blockChrome('trace').node).toBeDefined();
|
|
79
|
+
expect(blockChrome('trace').root).toContain('relative');
|
|
80
|
+
expect(blockChrome('compact').node).toBeUndefined();
|
|
81
|
+
expect(blockChrome('card').node).toBeUndefined();
|
|
82
|
+
expect(blockChrome('minimal').node).toBeUndefined();
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
test('the minimal style is the smallest type, the frame styles the largest', () => {
|
|
86
|
+
expect(blockChrome('minimal').title).toContain('text-[11.5px]');
|
|
87
|
+
expect(blockChrome('card').title).toContain('text-[12px]');
|
|
88
|
+
expect(blockChrome('card').header).toContain('px-3 py-2.5');
|
|
89
|
+
expect(blockChrome('compact').header).toContain('py-1');
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
describe('thinking follows the render style', () => {
|
|
94
|
+
test('the card frame is present on card, absent on every line style', async () => {
|
|
95
|
+
const card = await paint('card', h(ThinkingSection, { thinking: THOUGHT }));
|
|
96
|
+
expect(card.innerHTML).toContain('rounded-xl');
|
|
97
|
+
|
|
98
|
+
for (const style of ['compact', 'trace', 'minimal']) {
|
|
99
|
+
const el = await paint(style, h(ThinkingSection, { thinking: THOUGHT }));
|
|
100
|
+
expect(el.innerHTML).not.toContain('rounded-xl');
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
test('trace places a NODE on the turn rail; the other styles place none', async () => {
|
|
105
|
+
const trace = await paint('trace', h(ThinkingSection, { thinking: THOUGHT }));
|
|
106
|
+
const marks = Array.from(trace.querySelectorAll('[aria-hidden="true"]')) as HTMLElement[];
|
|
107
|
+
// The block contributes its node only — the LINE is the turn's (TurnRail),
|
|
108
|
+
// because a per-block segment broke wherever prose sat between blocks.
|
|
109
|
+
expect(marks.some((el) => el.className.includes('rounded-full'))).toBe(true);
|
|
110
|
+
expect(marks.some((el) => el.className.includes('w-px'))).toBe(false);
|
|
111
|
+
|
|
112
|
+
const compact = await paint('compact', h(ThinkingSection, { thinking: THOUGHT }));
|
|
113
|
+
const compactMarks = Array.from(compact.querySelectorAll('[aria-hidden="true"]')) as HTMLElement[];
|
|
114
|
+
expect(compactMarks.some((el) => el.className.includes('rounded-full'))).toBe(false);
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
test('a style change reaches a mounted thinking block', async () => {
|
|
118
|
+
await paint('card', h(ThinkingSection, { thinking: THOUGHT }));
|
|
119
|
+
expect(container.innerHTML).toContain('rounded-xl');
|
|
120
|
+
|
|
121
|
+
await act(async () => applyToolRenderMode('minimal'));
|
|
122
|
+
expect(container.innerHTML).not.toContain('rounded-xl');
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
describe('system notice follows the render style', () => {
|
|
127
|
+
test('the card frame is present on card, absent on every line style', async () => {
|
|
128
|
+
const card = await paint('card', h(SystemNotice, { notice: MULTI_LINE_NOTICE }));
|
|
129
|
+
expect(card.innerHTML).toContain('rounded-xl');
|
|
130
|
+
|
|
131
|
+
for (const style of ['compact', 'trace', 'minimal']) {
|
|
132
|
+
const el = await paint(style, h(SystemNotice, { notice: MULTI_LINE_NOTICE }));
|
|
133
|
+
expect(el.innerHTML).not.toContain('rounded-xl');
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
test('the notice body uses the style body container, so it hangs off the same rail', async () => {
|
|
138
|
+
const el = await paint('compact', h(SystemNotice, { notice: MULTI_LINE_NOTICE }));
|
|
139
|
+
const toggle = el.querySelector('button[aria-expanded]') as HTMLButtonElement;
|
|
140
|
+
expect(toggle.getAttribute('aria-expanded')).toBe('false');
|
|
141
|
+
await act(async () => {
|
|
142
|
+
toggle.click();
|
|
143
|
+
});
|
|
144
|
+
expect(el.querySelector('.border-l.border-dashed')).not.toBeNull();
|
|
145
|
+
expect(el.textContent).toContain('Line two');
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
test('a goal notice still renders OPEN with no toggle, in every style', async () => {
|
|
149
|
+
for (const style of ['card', 'compact', 'trace', 'minimal']) {
|
|
150
|
+
const el = await paint(style, h(SystemNotice, {
|
|
151
|
+
notice: '<objective>Ship it.</objective>\n`goal` tool: get.',
|
|
152
|
+
source: 'goal-mode-context',
|
|
153
|
+
}));
|
|
154
|
+
expect(el.textContent).toContain('Goal context');
|
|
155
|
+
expect(el.querySelector('button[aria-expanded]')).toBeNull();
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
});
|
|
@@ -49,7 +49,7 @@ export function AttachmentToolbar({ attachments, onFilesSelected, onRemove, mode
|
|
|
49
49
|
{/* No separator and no second surface: the card is ONE colour, so the
|
|
50
50
|
header, the draft and the toolbar read as one panel. A hairline over
|
|
51
51
|
a tinted strip made the composer look like three stacked bars. */}
|
|
52
|
-
<div className="flex items-center flex-wrap gap-1.5 px-3 py-2 text-ink/60">
|
|
52
|
+
<div className="composer-attach-row flex items-center flex-wrap gap-1.5 px-3 py-2 text-ink/60">
|
|
53
53
|
<button
|
|
54
54
|
onClick={() => fileInputRef.current?.click()}
|
|
55
55
|
className="flex items-center justify-center hover:bg-ink/5 p-1 rounded transition-colors text-ink/60 hover:text-ink shrink-0"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The composer's refusal strip: a send that the pipeline rejected, or a
|
|
8
|
+
* mode-command the child answered with an error.
|
|
9
|
+
*
|
|
10
|
+
* Both are the same question and share one row, because a user cannot act on
|
|
11
|
+
* two refusals at once and the strip sits directly above the draft they belong
|
|
12
|
+
* to. Split out of `ChatInput` for the per-file ceiling; it owns no state — the
|
|
13
|
+
* two messages and their two dismissers come from the caller.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { AlertTriangle, X } from 'lucide-preact';
|
|
17
|
+
|
|
18
|
+
export interface ComposerNoticeProps {
|
|
19
|
+
/** The pipeline's refusal (unreadable attachment, refused send, …). */
|
|
20
|
+
notice: string | null;
|
|
21
|
+
/** The mode command's refusal, from the route or the extension. */
|
|
22
|
+
modeError?: string | null;
|
|
23
|
+
onDismissNotice: () => void;
|
|
24
|
+
onDismissModeError?: () => void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function ComposerNotice({
|
|
28
|
+
notice,
|
|
29
|
+
modeError,
|
|
30
|
+
onDismissNotice,
|
|
31
|
+
onDismissModeError,
|
|
32
|
+
}: ComposerNoticeProps) {
|
|
33
|
+
const message = notice || modeError;
|
|
34
|
+
if (!message) return null;
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<div className="flex items-start gap-1.5 bg-error/5 px-3 py-1.5 text-[11px] text-error">
|
|
38
|
+
<AlertTriangle size={11} className="mt-0.5 shrink-0" />
|
|
39
|
+
<span className="min-w-0 flex-1 break-words">{message}</span>
|
|
40
|
+
<button
|
|
41
|
+
type="button"
|
|
42
|
+
onClick={() => (notice ? onDismissNotice() : onDismissModeError?.())}
|
|
43
|
+
className="shrink-0 text-error/60 hover:text-error transition-colors"
|
|
44
|
+
title="Dismiss"
|
|
45
|
+
>
|
|
46
|
+
<X size={11} />
|
|
47
|
+
</button>
|
|
48
|
+
</div>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The composer's five rows, built once and handed to `ComposerFrame`.
|
|
8
|
+
*
|
|
9
|
+
* Every row is ALWAYS constructed here — the frame decides only their ORDER,
|
|
10
|
+
* never whether they exist. That split is what makes "a style cannot drop a
|
|
11
|
+
* control" a property of the code rather than of a reviewer's attention.
|
|
12
|
+
*
|
|
13
|
+
* Split out of `ChatInput` for the per-file ceiling: the composer owns state
|
|
14
|
+
* (draft, attachments, expansion, compact, voice, pipeline) and this file owns
|
|
15
|
+
* the markup those states produce.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
import type { ClipboardEvent, RefObject } from 'preact/compat';
|
|
19
|
+
import type { ComponentChildren } from 'preact';
|
|
20
|
+
import type { AIModelOption, Attachment } from '@/shared/types';
|
|
21
|
+
import type { ApprovalMode } from '@/shared/lib/omp/config/access-mode';
|
|
22
|
+
import type { ComposerRow } from '@/shared/lib/chat/composer/style';
|
|
23
|
+
import type { ComposerModes } from '@/client/components/workspace/chat-timeline/chat-input/modes-props';
|
|
24
|
+
import type { ComposerPickerPlacement } from '@/client/components/common/ComposerPicker';
|
|
25
|
+
import { AttachmentToolbar } from '@/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar';
|
|
26
|
+
import { ComposerNotice } from '@/client/components/workspace/chat-timeline/chat-input/ComposerNotice';
|
|
27
|
+
import { ComposerTextarea } from '@/client/components/common/ComposerTextarea';
|
|
28
|
+
import { ComposerToolbar } from '@/client/components/workspace/chat-timeline/chat-input/Toolbar';
|
|
29
|
+
import { VoiceNotice } from '@/client/components/workspace/chat-timeline/chat-input/VoiceNotice';
|
|
30
|
+
|
|
31
|
+
export interface ComposerRowsInput {
|
|
32
|
+
/** Textarea sizing from `composerExpansion` (the style's own pixels are CSS). */
|
|
33
|
+
textareaClass: string;
|
|
34
|
+
wrapperClass: string;
|
|
35
|
+
pickerPlacement: ComposerPickerPlacement;
|
|
36
|
+
|
|
37
|
+
attachments: Attachment[];
|
|
38
|
+
onFilesSelected: (files: File[]) => void;
|
|
39
|
+
onRemoveAttachment: (id: string) => void;
|
|
40
|
+
modes?: ComposerModes;
|
|
41
|
+
onOpenGoal: () => void;
|
|
42
|
+
expanded?: boolean;
|
|
43
|
+
onToggleExpand?: () => void;
|
|
44
|
+
compact: boolean;
|
|
45
|
+
onExpandComposer: () => void;
|
|
46
|
+
|
|
47
|
+
notice: string | null;
|
|
48
|
+
dismissNotice: () => void;
|
|
49
|
+
|
|
50
|
+
value: string;
|
|
51
|
+
onChange: (value: string) => void;
|
|
52
|
+
submit: (options?: { steering?: boolean }) => void;
|
|
53
|
+
sendDisabled: boolean;
|
|
54
|
+
disabled: boolean;
|
|
55
|
+
appSettings?: Record<string, any>;
|
|
56
|
+
rootPath?: string | null;
|
|
57
|
+
enablePicker?: boolean;
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
onPaste: (event: ClipboardEvent<HTMLTextAreaElement>) => void;
|
|
60
|
+
variant: 'desktop' | 'mobile';
|
|
61
|
+
textareaRef: RefObject<HTMLTextAreaElement>;
|
|
62
|
+
onTextareaReady: (element: HTMLTextAreaElement | null) => void;
|
|
63
|
+
|
|
64
|
+
voiceStatus: Parameters<typeof VoiceNotice>[0]['status'];
|
|
65
|
+
voiceError: string | null;
|
|
66
|
+
|
|
67
|
+
isMobile: boolean;
|
|
68
|
+
selectedModel: AIModelOption | null;
|
|
69
|
+
onSelectModel: (model: AIModelOption) => void;
|
|
70
|
+
thinkingLevels: string[];
|
|
71
|
+
currentThinking: string;
|
|
72
|
+
onSelectThinking: (level: string) => void;
|
|
73
|
+
onThinkingLevelChange?: (level: string) => void;
|
|
74
|
+
isGenerating: boolean;
|
|
75
|
+
chatRunning?: boolean;
|
|
76
|
+
onStop?: () => void;
|
|
77
|
+
accessMode?: ApprovalMode;
|
|
78
|
+
onSelectAccess?: (mode: ApprovalMode) => void;
|
|
79
|
+
showModel?: boolean;
|
|
80
|
+
showThinking?: boolean;
|
|
81
|
+
showAccess?: boolean;
|
|
82
|
+
voiceSupported?: boolean;
|
|
83
|
+
voiceListening?: boolean;
|
|
84
|
+
voiceBusy?: boolean;
|
|
85
|
+
onVoiceToggle?: () => void;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function composerRows({
|
|
89
|
+
textareaClass,
|
|
90
|
+
wrapperClass,
|
|
91
|
+
pickerPlacement,
|
|
92
|
+
...input
|
|
93
|
+
}: ComposerRowsInput): Record<ComposerRow, ComponentChildren> {
|
|
94
|
+
return {
|
|
95
|
+
attachments: (
|
|
96
|
+
<AttachmentToolbar
|
|
97
|
+
attachments={input.attachments}
|
|
98
|
+
onFilesSelected={input.onFilesSelected}
|
|
99
|
+
onRemove={input.onRemoveAttachment}
|
|
100
|
+
// The phone hosts the mode toggles here; the desktop keeps them in the
|
|
101
|
+
// bottom toolbar, which has room. `showAccess` gates both hosts.
|
|
102
|
+
modes={input.isMobile && input.showAccess ? input.modes : undefined}
|
|
103
|
+
onOpenGoal={input.onOpenGoal}
|
|
104
|
+
// Only the chat's own composer stretches; a caller that owns its size
|
|
105
|
+
// (the New Chat modal) gets no control and cannot be stretched.
|
|
106
|
+
expanded={input.onToggleExpand ? input.expanded : undefined}
|
|
107
|
+
onToggleExpand={input.onToggleExpand}
|
|
108
|
+
compact={input.compact}
|
|
109
|
+
onExpandComposer={input.onExpandComposer}
|
|
110
|
+
/>
|
|
111
|
+
),
|
|
112
|
+
|
|
113
|
+
notice: (
|
|
114
|
+
<ComposerNotice
|
|
115
|
+
notice={input.notice}
|
|
116
|
+
modeError={input.modes?.error}
|
|
117
|
+
onDismissNotice={input.dismissNotice}
|
|
118
|
+
onDismissModeError={input.modes?.clearError}
|
|
119
|
+
/>
|
|
120
|
+
),
|
|
121
|
+
|
|
122
|
+
// Not rendered at all while compact: the phone gives the transcript its
|
|
123
|
+
// height back by removing the box, not by shrinking it, and the attachment
|
|
124
|
+
// row then carries the "Type here" target that brings it back. A `h-0` box
|
|
125
|
+
// would keep a focusable element with no pixels.
|
|
126
|
+
draft: input.compact ? null : (
|
|
127
|
+
<ComposerTextarea
|
|
128
|
+
value={input.value}
|
|
129
|
+
onChange={input.onChange}
|
|
130
|
+
onSend={input.submit}
|
|
131
|
+
disabled={input.disabled}
|
|
132
|
+
appSettings={input.appSettings}
|
|
133
|
+
rootPath={input.rootPath}
|
|
134
|
+
enablePicker={input.enablePicker}
|
|
135
|
+
placement={pickerPlacement}
|
|
136
|
+
wrapperClassName={wrapperClass}
|
|
137
|
+
placeholder={input.placeholder}
|
|
138
|
+
className={`composer-draft w-full bg-transparent border-none focus:outline-none resize-none text-ink placeholder-ink/40 disabled:opacity-50 disabled:cursor-not-allowed ${textareaClass}`}
|
|
139
|
+
onPaste={input.onPaste}
|
|
140
|
+
variant={input.variant}
|
|
141
|
+
textareaRef={input.textareaRef}
|
|
142
|
+
onReady={input.onTextareaReady}
|
|
143
|
+
/>
|
|
144
|
+
),
|
|
145
|
+
|
|
146
|
+
// Dictation progress / failure, beside the toolbar that owns the mic.
|
|
147
|
+
voice: <VoiceNotice status={input.voiceStatus} error={input.voiceError} />,
|
|
148
|
+
|
|
149
|
+
toolbar: (
|
|
150
|
+
<ComposerToolbar
|
|
151
|
+
isMobile={input.isMobile}
|
|
152
|
+
selectedModel={input.selectedModel}
|
|
153
|
+
onSelectModel={input.onSelectModel}
|
|
154
|
+
thinkingLevels={input.thinkingLevels}
|
|
155
|
+
currentThinking={input.currentThinking}
|
|
156
|
+
onSelectThinking={input.onSelectThinking}
|
|
157
|
+
onThinkingLevelChange={input.onThinkingLevelChange}
|
|
158
|
+
isGenerating={input.isGenerating}
|
|
159
|
+
chatRunning={input.chatRunning}
|
|
160
|
+
onStop={input.onStop}
|
|
161
|
+
onSend={() => input.submit()}
|
|
162
|
+
sendDisabled={input.sendDisabled}
|
|
163
|
+
accessMode={input.accessMode}
|
|
164
|
+
onSelectAccess={input.onSelectAccess}
|
|
165
|
+
showModel={input.showModel}
|
|
166
|
+
showThinking={input.showThinking}
|
|
167
|
+
showAccess={input.showAccess}
|
|
168
|
+
modes={input.modes}
|
|
169
|
+
onOpenGoal={input.onOpenGoal}
|
|
170
|
+
voiceSupported={input.voiceSupported}
|
|
171
|
+
voiceListening={input.voiceListening}
|
|
172
|
+
voiceBusy={input.voiceBusy}
|
|
173
|
+
onVoiceToggle={input.onVoiceToggle}
|
|
174
|
+
text={input.value}
|
|
175
|
+
/>
|
|
176
|
+
),
|
|
177
|
+
};
|
|
178
|
+
}
|