@kabmo-labs/kabmo 0.22.0 → 0.24.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/README.md +1 -1
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +873 -524
- package/dist/client/static/js/{index-297dck9a.js → index-jcr5twtp.js} +799 -795
- package/dist/client/static/js/index-z3w7n85q.css +1 -0
- package/marketplace/plugins/stats/package.json +2 -2
- package/marketplace/plugins/stats/src/groups.test.ts +14 -0
- package/marketplace/plugins/stats/src/groups.ts +20 -0
- package/marketplace/plugins/stats/src/labels.test.ts +9 -0
- package/marketplace/plugins/stats/src/labels.ts +7 -0
- package/marketplace/plugins/stats/src/server.ts +1 -1
- package/package.json +1 -1
- package/src/client/App.tsx +20 -19
- package/src/client/components/common/ComposerTextarea.tsx +10 -1
- package/src/client/components/common/Modal.tsx +2 -6
- package/src/client/components/common/PWAInstallButton.tsx +3 -2
- package/src/client/components/common/Toast.test.tsx +298 -0
- package/src/client/components/common/Toast.tsx +103 -37
- package/src/client/components/common/ToastStack.tsx +33 -12
- package/src/client/components/common/ViewportSelector.tsx +122 -114
- package/src/client/components/common/context-usage-button/Ring.tsx +38 -1
- package/src/client/components/common/context-usage-button/index.test.tsx +19 -3
- package/src/client/components/common/context-usage-button/index.tsx +5 -2
- package/src/client/components/common/harness-glyph/brands.ts +65 -0
- package/src/client/components/common/harness-glyph/harness-glyph.test.ts +185 -0
- package/src/client/components/common/harness-glyph/index.tsx +131 -0
- package/src/client/components/common/header-controls/MoreMenu.tsx +2 -1
- package/src/client/components/common/header-controls/index.tsx +16 -8
- package/src/client/components/common/header-panel-buttons/index.tsx +4 -3
- package/src/client/components/common/panel-mark/index.test.tsx +2 -2
- package/src/client/components/common/panel-mark/index.tsx +11 -2
- package/src/client/components/common/search-select/index.tsx +305 -0
- package/src/client/components/common/search-select/search-select.test.tsx +217 -0
- package/src/client/components/common/server-control/index.tsx +3 -2
- package/src/client/components/common/session-row/index.tsx +18 -1
- package/src/client/components/common/toolbar-row/index.tsx +57 -20
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -3
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +3 -2
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +7 -1
- package/src/client/components/layout/desktop-layout/index.tsx +1 -3
- package/src/client/components/layout/session-sidebar/CategoryItem.tsx +1 -0
- package/src/client/components/layout/session-sidebar/SessionItem.tsx +18 -1
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +1 -3
- package/src/client/components/layout/session-sidebar/about-modal/HarnessTable.test.tsx +332 -0
- package/src/client/components/layout/session-sidebar/about-modal/HarnessTable.tsx +310 -0
- package/src/client/components/layout/session-sidebar/about-modal/SocialLinks.tsx +63 -51
- package/src/client/components/layout/session-sidebar/about-modal/UpdateSection.tsx +4 -2
- package/src/client/components/layout/session-sidebar/about-modal/index.test.tsx +122 -0
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +136 -35
- package/src/client/components/layout/session-sidebar/harness-mark.test.tsx +126 -0
- package/src/client/components/layout/session-sidebar/modern/ActionRow.tsx +4 -3
- package/src/client/components/layout/session-sidebar/modern/WorkspaceSection.tsx +1 -0
- package/src/client/components/mobile/LayoutWrapper.tsx +1 -7
- package/src/client/components/mobile/SessionSidebar.tsx +1 -3
- package/src/client/components/mobile/mobile-main-view/Header.tsx +3 -2
- package/src/client/components/mobile/mobile-session-sidebar/Dialogs.tsx +0 -8
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +1 -0
- package/src/client/components/mobile/mobile-session-sidebar/SessionRow.tsx +17 -1
- package/src/client/components/settings/Modal.tsx +26 -22
- package/src/client/components/settings/Sidebar.tsx +45 -5
- package/src/client/components/settings/categories/HarnessSettings.tsx +207 -0
- package/src/client/components/settings/categories/ProjectSettings.tsx +1 -3
- package/src/client/components/settings/categories/ProviderSettings.tsx +0 -4
- package/src/client/components/settings/categories/SkillCatalogSettings.tsx +13 -23
- package/src/client/components/settings/categories/agent-settings/ModelPicker.tsx +23 -30
- package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +20 -11
- package/src/client/components/settings/categories/chat-settings/GoalSection.tsx +16 -16
- package/src/client/components/settings/categories/harness-settings/AddProviderForm.tsx +219 -0
- package/src/client/components/settings/categories/harness-settings/ConfigForm.tsx +268 -0
- package/src/client/components/settings/categories/harness-settings/EnvProviderForm.tsx +146 -0
- package/src/client/components/settings/categories/harness-settings/HarnessCard.tsx +278 -0
- package/src/client/components/settings/categories/harness-settings/ImportSection.tsx +195 -0
- package/src/client/components/settings/categories/harness-settings/ProviderPanel.tsx +152 -0
- package/src/client/components/settings/categories/harness-settings/ToggleList.tsx +147 -0
- package/src/client/components/settings/categories/harness-settings/parts.test.tsx +97 -0
- package/src/client/components/settings/categories/harness-settings/parts.tsx +84 -0
- package/src/client/components/settings/categories/harness-settings/provider-panel.test.tsx +313 -0
- package/src/client/components/settings/categories/omp-settings/RoleEditor.test.ts +60 -39
- package/src/client/components/settings/categories/omp-settings/RoleRow.tsx +32 -41
- package/src/client/components/settings/categories/omp-settings/role-picker.test-util.ts +45 -0
- package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +11 -4
- package/src/client/components/settings/groups.test.tsx +160 -0
- package/src/client/components/settings/harness-icons.test.tsx +134 -0
- package/src/client/components/workspace/browser-panel/AddressBar.tsx +3 -13
- package/src/client/components/workspace/browser-toolbar/clusters.tsx +237 -0
- package/src/client/components/workspace/browser-toolbar/index.test.tsx +167 -0
- package/src/client/components/workspace/browser-toolbar/index.tsx +99 -100
- package/src/client/components/workspace/btw-panel/Messages.tsx +4 -1
- package/src/client/components/workspace/btw-panel/index.tsx +2 -0
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +11 -7
- package/src/client/components/workspace/chat-timeline/ChatOverlays.tsx +5 -2
- package/src/client/components/workspace/chat-timeline/ComposerDock.tsx +13 -0
- package/src/client/components/workspace/chat-timeline/EmptyWorkspacePrompt.tsx +13 -0
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.test.ts +41 -0
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +19 -14
- package/src/client/components/workspace/chat-timeline/MessageList.test.ts +14 -0
- package/src/client/components/workspace/chat-timeline/MessageList.tsx +6 -0
- package/src/client/components/workspace/chat-timeline/PendingChatView.tsx +14 -0
- package/src/client/components/workspace/chat-timeline/RunFooter.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/RunMark.tsx +58 -0
- package/src/client/components/workspace/chat-timeline/SubagentView.tsx +4 -1
- package/src/client/components/workspace/chat-timeline/TimelineBody.tsx +4 -0
- package/src/client/components/workspace/chat-timeline/chat-input/AttachmentToolbar.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ComposerRows.tsx +11 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +13 -0
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.tsx +8 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +27 -1
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.tsx +48 -23
- package/src/client/components/workspace/chat-timeline/chat-input/composer-portal.test.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/chat-input/index.tsx +21 -1
- package/src/client/components/workspace/chat-timeline/chat-input/modes-props.ts +7 -0
- package/src/client/components/workspace/chat-timeline/chat-input/props.ts +13 -0
- package/src/client/components/workspace/chat-timeline/chat-input/selection.ts +11 -2
- package/src/client/components/workspace/chat-timeline/chat-input/styles.test.tsx +1 -0
- package/src/client/components/workspace/chat-timeline/index.tsx +17 -15
- package/src/client/components/workspace/chat-timeline/pending-harness.test.tsx +157 -0
- package/src/client/components/workspace/chat-timeline/run-mark.test.ts +104 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/ask-panel/FrameControl.tsx +11 -20
- 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/QuestionBlock.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 +2 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.test.ts +31 -3
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Bash.tsx +5 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.test.ts +56 -45
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +38 -94
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-parts.tsx +76 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/shared/card-header.ts +2 -1
- package/src/client/components/workspace/file-explorer/index.test.ts +25 -0
- package/src/client/components/workspace/file-explorer/index.tsx +10 -6
- package/src/client/components/workspace/git-panel/index.test.ts +13 -3
- package/src/client/components/workspace/git-panel/index.tsx +1 -3
- package/src/client/components/workspace/model-dropdown/Fullscreen.tsx +92 -0
- package/src/client/components/workspace/model-dropdown/HarnessTabs.tsx +290 -0
- package/src/client/components/workspace/model-dropdown/Item.tsx +11 -0
- package/src/client/components/workspace/model-dropdown/Panel.tsx +119 -8
- package/src/client/components/workspace/model-dropdown/Section.tsx +4 -0
- package/src/client/components/workspace/model-dropdown/fullscreen-picker.ts +51 -0
- package/src/client/components/workspace/model-dropdown/harness-models.test.ts +177 -0
- package/src/client/components/workspace/model-dropdown/harness-models.ts +148 -0
- package/src/client/components/workspace/model-dropdown/harness-tabs.test.tsx +336 -0
- package/src/client/components/workspace/model-dropdown/index.tsx +114 -85
- package/src/client/components/workspace/model-dropdown/placement.test.tsx +127 -0
- package/src/client/components/workspace/model-dropdown/popover-metrics.test.ts +107 -0
- package/src/client/components/workspace/model-dropdown/popover-metrics.ts +118 -0
- package/src/client/components/workspace/model-dropdown/row-mutations.ts +106 -0
- package/src/client/components/workspace/model-dropdown/trigger.test.ts +22 -2
- package/src/client/components/workspace/model-dropdown/use-popover-size.ts +89 -0
- package/src/client/data/settings/omp-schema.json +224 -17
- package/src/client/hooks/chat/composer/index.ts +11 -2
- package/src/client/hooks/chat/composer/items.test.ts +11 -0
- package/src/client/hooks/chat/composer/items.ts +4 -2
- package/src/client/hooks/chat/composer/model-selection.test.ts +110 -0
- package/src/client/hooks/chat/composer/model-selection.ts +45 -4
- package/src/client/hooks/chat/omp/prompt-send.ts +4 -2
- package/src/client/hooks/chat/timeline/actions.ts +10 -5
- package/src/client/hooks/chat/timeline/ask-frames.ts +5 -4
- package/src/client/hooks/chat/timeline/composer-local-actions.test.ts +19 -81
- package/src/client/hooks/chat/timeline/composer-modes.ts +11 -2
- package/src/client/hooks/chat/timeline/composer-refs.ts +16 -1
- package/src/client/hooks/chat/timeline/index.ts +27 -35
- package/src/client/hooks/chat/timeline/mode-availability.test.ts +51 -0
- package/src/client/hooks/chat/timeline/modes-contract.ts +6 -0
- package/src/client/hooks/chat/timeline/modes.ts +41 -2
- package/src/client/hooks/chat/timeline/new-chat-open.test.ts +86 -0
- package/src/client/hooks/chat/timeline/new-chat-open.ts +23 -5
- package/src/client/hooks/chat/timeline/new-chat.test.ts +32 -4
- package/src/client/hooks/chat/timeline/new-chat.ts +18 -6
- package/src/client/hooks/chat/timeline/prompt-text.test.ts +7 -0
- package/src/client/hooks/chat/timeline/prompt-text.ts +15 -6
- package/src/client/hooks/chat/timeline/rewind-actions.test.ts +51 -1
- package/src/client/hooks/chat/timeline/rewind-actions.ts +23 -1
- package/src/client/hooks/chat/timeline/run-identity.test.ts +52 -0
- package/src/client/hooks/chat/timeline/run-identity.ts +23 -11
- package/src/client/hooks/chat/timeline/send-execute.test.ts +55 -0
- package/src/client/hooks/chat/timeline/send-props.ts +11 -3
- package/src/client/hooks/chat/timeline/send-steer.test.ts +2 -3
- package/src/client/hooks/chat/timeline/send.test-util.ts +3 -2
- package/src/client/hooks/chat/timeline/send.test.ts +2 -3
- package/src/client/hooks/chat/timeline/send.ts +34 -8
- package/src/client/hooks/chat/timeline/session-harness.test.ts +163 -0
- package/src/client/hooks/chat/timeline/session-harness.ts +164 -0
- package/src/client/hooks/chat/timeline/session-load.test-util.ts +6 -2
- package/src/client/hooks/chat/timeline/session-load.test.ts +31 -0
- package/src/client/hooks/chat/timeline/session-load.ts +6 -14
- package/src/client/hooks/chat/timeline/session-shapes.ts +32 -0
- package/src/client/hooks/chat/timeline/spawn-harness.ts +41 -0
- package/src/client/hooks/chat/timeline/timeline-running.ts +55 -0
- package/src/client/hooks/chat/timeline/tui-only-guard.ts +9 -0
- package/src/client/hooks/chat/timeline/undo-confirmation.test.ts +131 -0
- package/src/client/hooks/models/harness-catalog.ts +114 -0
- package/src/client/hooks/models/provider-writes.test.ts +81 -0
- package/src/client/hooks/models/provider-writes.ts +144 -0
- package/src/client/hooks/models/use-harness-versions.test.ts +152 -0
- package/src/client/hooks/models/use-harness-versions.ts +136 -0
- package/src/client/hooks/models/use-harnesses-controller.ts +57 -0
- package/src/client/hooks/models/use-harnesses-signal.test.ts +128 -0
- package/src/client/hooks/models/use-harnesses.test.ts +187 -0
- package/src/client/hooks/models/use-harnesses.ts +215 -0
- package/src/client/hooks/settings/providers/index.ts +1 -3
- package/src/client/hooks/ui/editor-error-toast.ts +10 -3
- package/src/client/hooks/ui/icon-style.ts +28 -0
- package/src/client/hooks/ui/on-click-outside.test.ts +104 -0
- package/src/client/hooks/ui/on-click-outside.ts +14 -2
- package/src/client/hooks/ui/theme.ts +6 -0
- package/src/client/hooks/ui/toast-queue.test.ts +126 -0
- package/src/client/hooks/ui/toasts.ts +132 -27
- package/src/client/hooks/ui/ui-feedback.test.ts +4 -91
- package/src/client/lib/ui/control-plate.test.ts +76 -0
- package/src/client/lib/ui/control-plate.ts +65 -0
- package/src/client/tailwind.css +47 -1
- package/src/server/lib/assets/shell-attributes.server.ts +9 -2
- package/src/server/lib/assets/shell-attributes.test.ts +22 -6
- package/src/server/lib/db/schema.ts +4 -0
- package/src/server/lib/harness/acp/acp-audit.server.ts +107 -0
- package/src/server/lib/harness/acp/acp-goal-driver.server.ts +153 -0
- package/src/server/lib/harness/acp/acp-goal-state.server.ts +136 -0
- package/src/server/lib/harness/acp/acp-goal.server.ts +273 -0
- package/src/server/lib/harness/acp/acp-goal.test.ts +229 -0
- package/src/server/lib/harness/acp/acp-telemetry.server.ts +133 -0
- package/src/server/lib/harness/acp/acp-telemetry.test.ts +85 -0
- package/src/server/lib/harness/acp/acp-todos.server.ts +45 -0
- package/src/server/lib/harness/acp/acp-todos.test.ts +43 -0
- package/src/server/lib/harness/acp/activation.test.ts +81 -0
- package/src/server/lib/harness/acp/activation.ts +72 -0
- package/src/server/lib/harness/acp/calls.ts +97 -0
- package/src/server/lib/harness/acp/client.test.ts +73 -0
- package/src/server/lib/harness/acp/client.ts +339 -0
- package/src/server/lib/harness/acp/commands.test.ts +92 -0
- package/src/server/lib/harness/acp/commands.ts +165 -0
- package/src/server/lib/harness/acp/frames.test.ts +315 -0
- package/src/server/lib/harness/acp/frames.ts +349 -0
- package/src/server/lib/harness/acp/mapper.ts +204 -0
- package/src/server/lib/harness/acp/permissions.test.ts +66 -0
- package/src/server/lib/harness/acp/permissions.ts +155 -0
- package/src/server/lib/harness/acp/prompt.test.ts +130 -0
- package/src/server/lib/harness/acp/prompt.ts +134 -0
- package/src/server/lib/harness/acp/protocol.ts +162 -0
- package/src/server/lib/harness/acp/session-config.test.ts +73 -0
- package/src/server/lib/harness/acp/session-config.ts +148 -0
- package/src/server/lib/harness/acp/session-facts.ts +71 -0
- package/src/server/lib/harness/acp/session-handshake.ts +89 -0
- package/src/server/lib/harness/acp/session-idle.ts +51 -0
- package/src/server/lib/harness/acp/session-notifications.ts +95 -0
- package/src/server/lib/harness/acp/session-observers.test.ts +193 -0
- package/src/server/lib/harness/acp/session-options.ts +33 -0
- package/src/server/lib/harness/acp/session-permissions.test.ts +105 -0
- package/src/server/lib/harness/acp/session-permissions.ts +74 -0
- package/src/server/lib/harness/acp/session-reaper.test.ts +96 -0
- package/src/server/lib/harness/acp/session-turns.ts +95 -0
- package/src/server/lib/harness/acp/session-usage.ts +60 -0
- package/src/server/lib/harness/acp/session-web-state.ts +61 -0
- package/src/server/lib/harness/acp/session.test-util.ts +160 -0
- package/src/server/lib/harness/acp/session.test.ts +233 -0
- package/src/server/lib/harness/acp/session.ts +350 -0
- package/src/server/lib/harness/acp/turn.ts +199 -0
- package/src/server/lib/harness/acp/verbs.ts +87 -0
- package/src/server/lib/harness/auto-probe.server.test.ts +121 -0
- package/src/server/lib/harness/auto-probe.server.ts +178 -0
- package/src/server/lib/harness/capabilities.ts +67 -0
- package/src/server/lib/harness/config-invalidation.test.ts +91 -0
- package/src/server/lib/harness/config.server.test.ts +105 -0
- package/src/server/lib/harness/config.server.ts +98 -0
- package/src/server/lib/harness/enabled.server.test.ts +87 -0
- package/src/server/lib/harness/enabled.server.ts +61 -0
- package/src/server/lib/harness/launch-table.ts +195 -0
- package/src/server/lib/harness/launch.test.ts +220 -0
- package/src/server/lib/harness/launch.ts +216 -0
- package/src/server/lib/harness/probe-cache.server.test.ts +154 -0
- package/src/server/lib/harness/probe-cache.server.ts +177 -0
- package/src/server/lib/harness/provider-entry.ts +212 -0
- package/src/server/lib/harness/provider-file.server.ts +67 -0
- package/src/server/lib/harness/provider-import.test.ts +191 -0
- package/src/server/lib/harness/provider-probe.server.ts +123 -0
- package/src/server/lib/harness/provider-sources.server.test.ts +45 -0
- package/src/server/lib/harness/provider-sources.server.ts +308 -0
- package/src/server/lib/harness/provider-write-error.ts +19 -0
- package/src/server/lib/harness/provider-write.server.test.ts +308 -0
- package/src/server/lib/harness/provider-write.server.ts +339 -0
- package/src/server/lib/harness/provider-zcode.server.test.ts +270 -0
- package/src/server/lib/harness/provider-zcode.server.ts +324 -0
- package/src/server/lib/harness/register.server.ts +36 -0
- package/src/server/lib/harness/registry.ts +58 -0
- package/src/server/lib/harness/schema.server.ts +129 -0
- package/src/server/lib/harness/session-store.server.test.ts +175 -0
- package/src/server/lib/harness/session-store.server.ts +206 -0
- package/src/server/lib/harness/session-title.server.test.ts +109 -0
- package/src/server/lib/harness/session-title.server.ts +70 -0
- package/src/server/lib/harness/session.ts +74 -0
- package/src/server/lib/harness/spawn.server.ts +133 -0
- package/src/server/lib/harness/update-state.server.ts +185 -0
- package/src/server/lib/lifecycle/after-listen.ts +7 -0
- package/src/server/lib/models/provider-items.server.ts +1 -1
- package/src/server/lib/models/registry-refresh.server.test.ts +87 -0
- package/src/server/lib/models/registry-refresh.server.ts +98 -0
- package/src/server/lib/omp/config/models-config.ts +4 -0
- package/src/server/lib/omp/core/cli.ts +13 -0
- package/src/server/lib/omp/core/host-resolution.test.ts +6 -3
- package/src/server/lib/omp/rpc/child-config.ts +5 -4
- package/src/server/lib/omp/rpc/constants.test.ts +2 -1
- package/src/server/lib/omp/rpc/event-fanout.ts +9 -0
- package/src/server/lib/omp/rpc/forked-resume.test.ts +14 -3
- package/src/server/lib/omp/rpc/rpc-primitives.test.ts +11 -0
- package/src/server/lib/omp/rpc/session-registration.ts +7 -2
- package/src/server/lib/omp/rpc/session-registry.test.ts +2 -1
- package/src/server/lib/omp/rpc/session-registry.ts +74 -5
- package/src/server/lib/omp/session/acp-rows.server.ts +79 -0
- package/src/server/lib/omp/session/delete-flow.server.ts +15 -8
- package/src/server/lib/omp/session/delete.server.ts +12 -0
- package/src/server/lib/omp/session/sidebar-data.harness.test.ts +247 -0
- package/src/server/lib/omp/session/sidebar-data.server.ts +56 -3
- package/src/server/lib/queue/delivery.server.test.ts +4 -2
- package/src/server/lib/queue/payload.test.ts +67 -0
- package/src/server/lib/queue/payload.ts +9 -3
- package/src/server/lib/realtime/signals.server.test.ts +99 -0
- package/src/server/lib/realtime/signals.server.ts +25 -5
- package/src/server/lib/realtime/topics/session-data.server.ts +29 -0
- package/src/server/lib/realtime/topics/session.server.ts +3 -3
- package/src/server/routes/agent/command-resume.test.ts +77 -0
- package/src/server/routes/agent/command.test.ts +243 -2
- package/src/server/routes/agent/command.ts +78 -15
- package/src/server/routes/agent/harness-command.ts +133 -0
- package/src/server/routes/agent/new.ts +63 -1
- package/src/server/routes/chat/rewind.test.ts +147 -0
- package/src/server/routes/chat/rewind.ts +29 -7
- package/src/server/routes/chat/session.test.ts +240 -0
- package/src/server/routes/chat/session.ts +96 -4
- package/src/server/routes/harness/add-provider.test.ts +233 -0
- package/src/server/routes/harness/import-action.ts +272 -0
- package/src/server/routes/harness/import.test.ts +196 -0
- package/src/server/routes/harness/index.ts +13 -0
- package/src/server/routes/harness/root.ts +280 -0
- package/src/server/routes/harness/toggle.test.ts +127 -0
- package/src/server/routes/harness/update.ts +259 -0
- package/src/server/routes/harness/versions.test.ts +148 -0
- package/src/server/routes/harness/versions.ts +105 -0
- package/src/server/routes/index.ts +2 -0
- package/src/server/routes/sessions/delete-acp.test.ts +227 -0
- package/src/server/routes/sessions/queue.ts +7 -2
- package/src/server/routes/sessions/routes-queue.test.ts +52 -0
- package/src/server/routes/sessions/routes.test.ts +47 -13
- package/src/server/routes/sessions/session.ts +35 -0
- package/src/server/routes/settings/commands-harness.test.ts +92 -0
- package/src/server/routes/settings/commands.ts +26 -0
- package/src/server/routes/settings/model-override.ts +5 -2
- package/src/server/routes/settings/provider-entry.ts +2 -2
- package/src/server/routes/settings/provider-model.ts +2 -2
- package/src/server/routes/settings/provider-models.ts +2 -2
- package/src/server/routes/settings/provider-refresh.ts +6 -4
- package/src/server/routes/settings/providers.ts +3 -1
- package/src/server/routes/settings/settings-config-routes.test.ts +10 -2
- package/src/server/routes/settings/skills.ts +12 -0
- package/src/shared/lib/chat/ask-form/fields.ts +76 -0
- package/src/shared/lib/chat/ask-form/index.ts +323 -0
- package/src/shared/lib/chat/ask-form/tokens.ts +199 -0
- package/src/shared/lib/chat/ask-form/types.ts +43 -0
- package/src/shared/lib/chat/ask-form.test.ts +137 -0
- package/src/shared/lib/chat/ask-questions.test.ts +65 -1
- package/src/shared/lib/chat/ask-questions.ts +51 -145
- package/src/shared/lib/chat/ask-results.ts +198 -0
- package/src/shared/lib/chat/composer/client.ts +20 -8
- package/src/shared/lib/chat/context/usage.test.ts +8 -4
- package/src/shared/lib/chat/context/usage.ts +17 -3
- package/src/shared/lib/chat/omp/abort.test.ts +61 -0
- package/src/shared/lib/chat/omp/abort.ts +8 -2
- package/src/shared/lib/chat/omp/tool-frames.test.ts +23 -0
- package/src/shared/lib/chat/omp/tool-frames.ts +12 -2
- package/src/shared/lib/chat/timeline/omp-callbacks.ts +13 -1
- package/src/shared/lib/chat/timeline/prompt-error.test.ts +146 -0
- package/src/shared/lib/chat/timeline/prompt-error.ts +88 -0
- package/src/shared/lib/chat/tool/summary-wait.test.ts +18 -8
- package/src/shared/lib/chat/tool/wait-facts.ts +14 -8
- package/src/shared/lib/harness/brand-color.test.ts +66 -0
- package/src/shared/lib/harness/brand-color.ts +96 -0
- package/src/shared/lib/harness/catalog.test.ts +88 -0
- package/src/shared/lib/harness/catalog.ts +169 -0
- package/src/shared/lib/harness/config-fields.test.ts +139 -0
- package/src/shared/lib/harness/config-fields.ts +168 -0
- package/src/shared/lib/harness/config.test.ts +153 -0
- package/src/shared/lib/harness/config.ts +206 -0
- package/src/shared/lib/harness/dialects.test.ts +140 -0
- package/src/shared/lib/harness/dialects.ts +249 -0
- package/src/shared/lib/harness/enabled.test.ts +79 -0
- package/src/shared/lib/harness/enabled.ts +72 -0
- package/src/shared/lib/harness/menu.test.ts +94 -0
- package/src/shared/lib/harness/menu.ts +88 -0
- package/src/shared/lib/harness/provider-facts.test.ts +199 -0
- package/src/shared/lib/harness/provider-facts.ts +349 -0
- package/src/shared/lib/harness/provider-slug.ts +46 -0
- package/src/shared/lib/harness/providers.ts +175 -0
- package/src/shared/lib/harness/rewind.ts +24 -0
- package/src/shared/lib/harness/status.test.ts +158 -0
- package/src/shared/lib/harness/status.ts +112 -0
- package/src/shared/lib/harness/update-plan.test.ts +163 -0
- package/src/shared/lib/harness/update-plan.ts +140 -0
- package/src/shared/lib/harness/updates.test.ts +106 -0
- package/src/shared/lib/harness/updates.ts +177 -0
- package/src/shared/lib/icons/icon-paint-authority.test.ts +16 -4
- package/src/shared/lib/icons/icon-paint-authority.ts +57 -12
- package/src/shared/lib/icons/icon-paint-bucket.test.ts +84 -0
- package/src/shared/lib/icons/icon-paint-css.test.ts +23 -25
- package/src/shared/lib/icons/icon-paint-css.ts +69 -55
- package/src/shared/lib/icons/icon-paint-harness.test.ts +73 -0
- package/src/shared/lib/icons/icon-paint-harness.ts +75 -0
- package/src/shared/lib/icons/icon-paint-ink.ts +108 -0
- package/src/shared/lib/icons/icon-paint-panel.ts +19 -4
- package/src/shared/lib/icons/icon-paint-weight.ts +21 -2
- package/src/shared/lib/icons/icon-tone.ts +118 -21
- package/src/shared/lib/icons/tint-hues.generated.ts +100 -284
- package/src/shared/lib/icons/tint-tones.test.ts +79 -25
- package/src/shared/lib/icons/tint.ts +66 -6
- package/src/shared/lib/models/client.ts +10 -1
- package/src/shared/lib/models/provider/vendors.ts +72 -0
- package/src/shared/lib/omp/config/schema.test.ts +36 -0
- package/src/shared/lib/omp/dialog-methods.ts +4 -3
- package/src/shared/lib/omp/session/messages-map-trace.test.ts +42 -0
- package/src/shared/lib/omp/session/messages-map.ts +6 -1
- package/src/shared/lib/omp/session/parse-message-blocks-toolcall.test.ts +8 -0
- package/src/shared/lib/omp/session/parse-message-blocks.ts +6 -1
- package/src/shared/lib/omp/session/shell-trace.test.ts +69 -0
- package/src/shared/lib/omp/session/shell-trace.ts +63 -0
- package/src/shared/lib/omp/session/sidebar.ts +37 -10
- package/src/shared/lib/omp/session/wait-idle.test.ts +47 -0
- package/src/shared/lib/omp/session/wait-idle.ts +93 -0
- package/src/shared/lib/omp/session/wait.test.ts +34 -33
- package/src/shared/lib/omp/session/wait.ts +25 -39
- package/src/shared/lib/settings/sections.ts +24 -0
- package/src/shared/lib/theme/css.ts +2 -0
- package/src/shared/lib/theme/ink-scale.ts +21 -1
- package/src/shared/lib/theme/theme.test.ts +25 -9
- package/src/shared/lib/ui/safe-area.test.ts +28 -0
- package/src/shared/lib/ui/safe-area.ts +42 -0
- package/src/shared/lib/ui/toast-duration.test.ts +74 -0
- package/src/shared/lib/ui/toast-duration.ts +70 -0
- package/src/shared/types/harness-version.ts +59 -0
- package/src/shared/types/harness.ts +201 -0
- package/src/shared/types/index.ts +2 -0
- package/src/shared/types/omp/agent.ts +13 -0
- package/src/shared/types/settings/state.ts +10 -1
- package/src/shared/types/workspace.ts +10 -0
- package/src/test-support/env.ts +38 -0
- package/src/test-support/file-explorer-render.test-util.ts +37 -0
- package/src/test-support/file-explorer.test-util.ts +20 -18
- package/src/test-support/harness-table.test-util.ts +108 -0
- package/dist/client/static/js/index-7ppta1pb.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "@oh-my-pi/pi-coding-agent 10 tabs /
|
|
2
|
+
"source": "@oh-my-pi/pi-coding-agent 10 tabs / 604 settings",
|
|
3
3
|
"tabs": [
|
|
4
4
|
{
|
|
5
5
|
"id": "appearance",
|
|
@@ -547,6 +547,16 @@
|
|
|
547
547
|
"description": "Render Markdown H1 headings at 2x scale using Kitty's OSC 66 text-sizing protocol. Only takes effect on Kitty terminals; ignored everywhere else. Off by default."
|
|
548
548
|
}
|
|
549
549
|
},
|
|
550
|
+
"tui.colorfulMarkdown": {
|
|
551
|
+
"type": "boolean",
|
|
552
|
+
"default": true,
|
|
553
|
+
"ui": {
|
|
554
|
+
"tab": "appearance",
|
|
555
|
+
"group": "Display",
|
|
556
|
+
"label": "Colorful Markdown",
|
|
557
|
+
"description": "Color headings by level, bold and italic text, inline code, and table headers from the theme's ANSI palette. Off uses one heading color and plain bold/italic."
|
|
558
|
+
}
|
|
559
|
+
},
|
|
550
560
|
"tui.renderMermaid": {
|
|
551
561
|
"type": "boolean",
|
|
552
562
|
"default": true,
|
|
@@ -673,6 +683,68 @@
|
|
|
673
683
|
]
|
|
674
684
|
}
|
|
675
685
|
},
|
|
686
|
+
"tui.spinnerInterval": {
|
|
687
|
+
"type": "number",
|
|
688
|
+
"ui": {
|
|
689
|
+
"tab": "appearance",
|
|
690
|
+
"group": "Display",
|
|
691
|
+
"label": "Spinner Interval (ms)",
|
|
692
|
+
"description": "Milliseconds between frames of every spinner, the terminal title included; 0 shows static glyphs. Unset follows Motion",
|
|
693
|
+
"options": [
|
|
694
|
+
{
|
|
695
|
+
"value": "0",
|
|
696
|
+
"label": "Static",
|
|
697
|
+
"description": "No animation"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"value": "80",
|
|
701
|
+
"label": "80 ms",
|
|
702
|
+
"description": "12.5 frames/s"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"value": "250",
|
|
706
|
+
"label": "250 ms",
|
|
707
|
+
"description": "4 frames/s"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"value": "1000",
|
|
711
|
+
"label": "1 s",
|
|
712
|
+
"description": "1 frame/s"
|
|
713
|
+
}
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"tui.maxFps": {
|
|
718
|
+
"type": "number",
|
|
719
|
+
"default": 30,
|
|
720
|
+
"ui": {
|
|
721
|
+
"tab": "appearance",
|
|
722
|
+
"group": "Display",
|
|
723
|
+
"label": "Max Frames Per Second",
|
|
724
|
+
"description": "Ceiling on how often the TUI repaints, streaming text included. Keystroke echo keeps 30 fps, so the pane you type in stays responsive",
|
|
725
|
+
"options": [
|
|
726
|
+
{
|
|
727
|
+
"value": "30",
|
|
728
|
+
"label": "30 fps",
|
|
729
|
+
"description": "Default"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"value": "15",
|
|
733
|
+
"label": "15 fps"
|
|
734
|
+
},
|
|
735
|
+
{
|
|
736
|
+
"value": "4",
|
|
737
|
+
"label": "4 fps",
|
|
738
|
+
"description": "Quiet, for many panes"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"value": "1",
|
|
742
|
+
"label": "1 fps",
|
|
743
|
+
"description": "Minimum"
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
}
|
|
747
|
+
},
|
|
676
748
|
"tui.hyperlinks": {
|
|
677
749
|
"type": "enum",
|
|
678
750
|
"default": "auto",
|
|
@@ -695,7 +767,7 @@
|
|
|
695
767
|
"tab": "appearance",
|
|
696
768
|
"group": "Display",
|
|
697
769
|
"label": "Mouse Click-to-Focus",
|
|
698
|
-
"description": "Capture mouse clicks in the main session so live subagent cards and HUD rows focus on click, with a hover highlight on the target, and clicks on extension-owned links reach their extension (the link-hint key picks them without the mouse). Native text selection becomes Shift+drag and wheel
|
|
770
|
+
"description": "Capture mouse clicks in the main session so live subagent cards and HUD rows focus on click, with a hover highlight on the target, and clicks on extension-owned links reach their extension (the link-hint key picks them without the mouse). Native text selection becomes Shift+drag while on, and mouse capture stops wheel scrolling — the terminal reports wheel ticks to omp instead — so scroll with the terminal's keyboard scrollback keys, or turn this off"
|
|
699
771
|
}
|
|
700
772
|
},
|
|
701
773
|
"tui.tight": {
|
|
@@ -720,7 +792,7 @@
|
|
|
720
792
|
"tab": "appearance",
|
|
721
793
|
"group": "Display",
|
|
722
794
|
"label": "Shimmer",
|
|
723
|
-
"description": "Animation style for working/loading messages",
|
|
795
|
+
"description": "Animation style for working/loading messages; off under reduced or no Motion",
|
|
724
796
|
"options": [
|
|
725
797
|
{
|
|
726
798
|
"value": "classic",
|
|
@@ -740,6 +812,38 @@
|
|
|
740
812
|
]
|
|
741
813
|
}
|
|
742
814
|
},
|
|
815
|
+
"tui.motion": {
|
|
816
|
+
"type": "enum",
|
|
817
|
+
"default": "full",
|
|
818
|
+
"values": [
|
|
819
|
+
"full",
|
|
820
|
+
"reduced",
|
|
821
|
+
"none"
|
|
822
|
+
],
|
|
823
|
+
"ui": {
|
|
824
|
+
"tab": "appearance",
|
|
825
|
+
"group": "Display",
|
|
826
|
+
"label": "Motion",
|
|
827
|
+
"description": "One switch over spinners, shimmer, and decorative blink/fade. Streaming text is unaffected (see Max Frames Per Second). A spinner interval you set still wins",
|
|
828
|
+
"options": [
|
|
829
|
+
{
|
|
830
|
+
"value": "full",
|
|
831
|
+
"label": "Full",
|
|
832
|
+
"description": "Every animation at its own setting (default)"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"value": "reduced",
|
|
836
|
+
"label": "Reduced",
|
|
837
|
+
"description": "Spinners at 250 ms, no shimmer, no blink/fade"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"value": "none",
|
|
841
|
+
"label": "None",
|
|
842
|
+
"description": "Static spinners and title, no shimmer, no blink/fade"
|
|
843
|
+
}
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
},
|
|
743
847
|
"display.pinnedAgents": {
|
|
744
848
|
"type": "enum",
|
|
745
849
|
"default": "collapsed",
|
|
@@ -789,7 +893,7 @@
|
|
|
789
893
|
"tab": "appearance",
|
|
790
894
|
"group": "Display",
|
|
791
895
|
"label": "Smooth Streaming",
|
|
792
|
-
"description": "Reveal assistant text and streamed tool input smoothly while chunks arrive"
|
|
896
|
+
"description": "Reveal assistant text and streamed tool input smoothly while chunks arrive (Tern types assistant text out itself)"
|
|
793
897
|
}
|
|
794
898
|
},
|
|
795
899
|
"display.hideToolActivity": {
|
|
@@ -832,6 +936,16 @@
|
|
|
832
936
|
"description": "Show a divider after an assistant turn whose request lost (missed) the prompt cache"
|
|
833
937
|
}
|
|
834
938
|
},
|
|
939
|
+
"display.shellVisualization": {
|
|
940
|
+
"type": "boolean",
|
|
941
|
+
"default": true,
|
|
942
|
+
"ui": {
|
|
943
|
+
"tab": "appearance",
|
|
944
|
+
"group": "Display",
|
|
945
|
+
"label": "Shell Visualization",
|
|
946
|
+
"description": "Show bash commands as an interactive execution visualization instead of plain shell commands"
|
|
947
|
+
}
|
|
948
|
+
},
|
|
835
949
|
"display.advisorCollapsedLines": {
|
|
836
950
|
"type": "number",
|
|
837
951
|
"default": 0,
|
|
@@ -1341,6 +1455,16 @@
|
|
|
1341
1455
|
]
|
|
1342
1456
|
}
|
|
1343
1457
|
},
|
|
1458
|
+
"update.auto": {
|
|
1459
|
+
"type": "boolean",
|
|
1460
|
+
"default": false,
|
|
1461
|
+
"ui": {
|
|
1462
|
+
"tab": "interaction",
|
|
1463
|
+
"group": "Startup & Updates",
|
|
1464
|
+
"label": "Auto Update",
|
|
1465
|
+
"description": "Install omp updates in the background on startup; the next launch runs the new version"
|
|
1466
|
+
}
|
|
1467
|
+
},
|
|
1344
1468
|
"marketplace.autoUpdate": {
|
|
1345
1469
|
"type": "enum",
|
|
1346
1470
|
"default": "notify",
|
|
@@ -1412,7 +1536,7 @@
|
|
|
1412
1536
|
"tab": "interaction",
|
|
1413
1537
|
"group": "Magic Keywords",
|
|
1414
1538
|
"label": "Magic Keywords",
|
|
1415
|
-
"description": "Enable hidden notices for standalone ultrathink, orchestrate, workflowz, jevify keywords"
|
|
1539
|
+
"description": "Enable hidden notices for standalone ultrathink, chillax, orchestrate, workflowz, jevify keywords"
|
|
1416
1540
|
}
|
|
1417
1541
|
},
|
|
1418
1542
|
"magicKeywords.ultrathink": {
|
|
@@ -1425,6 +1549,16 @@
|
|
|
1425
1549
|
"description": "Let standalone ultrathink request maximum automatic thinking and append its hidden notice"
|
|
1426
1550
|
}
|
|
1427
1551
|
},
|
|
1552
|
+
"magicKeywords.chillax": {
|
|
1553
|
+
"type": "boolean",
|
|
1554
|
+
"default": true,
|
|
1555
|
+
"ui": {
|
|
1556
|
+
"tab": "interaction",
|
|
1557
|
+
"group": "Magic Keywords",
|
|
1558
|
+
"label": "Chillax Keyword",
|
|
1559
|
+
"description": "Let standalone chillax drop thinking to the model's lowest effort (models with per-message effort, even mid-turn) and append its hidden notice"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1428
1562
|
"magicKeywords.orchestrate": {
|
|
1429
1563
|
"type": "boolean",
|
|
1430
1564
|
"default": true,
|
|
@@ -2231,7 +2365,7 @@
|
|
|
2231
2365
|
},
|
|
2232
2366
|
"textVerbosity": {
|
|
2233
2367
|
"type": "enum",
|
|
2234
|
-
"default": "
|
|
2368
|
+
"default": "low",
|
|
2235
2369
|
"values": [
|
|
2236
2370
|
"low",
|
|
2237
2371
|
"medium",
|
|
@@ -2246,12 +2380,12 @@
|
|
|
2246
2380
|
{
|
|
2247
2381
|
"value": "low",
|
|
2248
2382
|
"label": "Low",
|
|
2249
|
-
"description": "Prefer concise responses"
|
|
2383
|
+
"description": "Prefer concise responses (default)"
|
|
2250
2384
|
},
|
|
2251
2385
|
{
|
|
2252
2386
|
"value": "medium",
|
|
2253
2387
|
"label": "Medium",
|
|
2254
|
-
"description": "Balance brevity and detail
|
|
2388
|
+
"description": "Balance brevity and detail"
|
|
2255
2389
|
},
|
|
2256
2390
|
{
|
|
2257
2391
|
"value": "high",
|
|
@@ -3135,18 +3269,18 @@
|
|
|
3135
3269
|
"ui": {
|
|
3136
3270
|
"tab": "providers",
|
|
3137
3271
|
"group": "Protocol",
|
|
3138
|
-
"label": "OpenAI WebSockets",
|
|
3139
|
-
"description": "
|
|
3272
|
+
"label": "OpenAI Codex WebSockets",
|
|
3273
|
+
"description": "WebSocket policy for OpenAI Codex models only",
|
|
3140
3274
|
"options": [
|
|
3141
3275
|
{
|
|
3142
3276
|
"value": "auto",
|
|
3143
3277
|
"label": "Auto",
|
|
3144
|
-
"description": "Use model
|
|
3278
|
+
"description": "Use Codex model defaults"
|
|
3145
3279
|
},
|
|
3146
3280
|
{
|
|
3147
3281
|
"value": "off",
|
|
3148
3282
|
"label": "Off",
|
|
3149
|
-
"description": "Disable
|
|
3283
|
+
"description": "Disable WebSockets for OpenAI Codex models"
|
|
3150
3284
|
},
|
|
3151
3285
|
{
|
|
3152
3286
|
"value": "on",
|
|
@@ -3156,6 +3290,16 @@
|
|
|
3156
3290
|
]
|
|
3157
3291
|
}
|
|
3158
3292
|
},
|
|
3293
|
+
"providers.openaiResponsesWebsockets": {
|
|
3294
|
+
"type": "boolean",
|
|
3295
|
+
"default": false,
|
|
3296
|
+
"ui": {
|
|
3297
|
+
"tab": "providers",
|
|
3298
|
+
"group": "Protocol",
|
|
3299
|
+
"label": "OpenAI Responses WebSockets",
|
|
3300
|
+
"description": "Opt in for catalog-supported standard Responses models; model or request false disables it"
|
|
3301
|
+
}
|
|
3302
|
+
},
|
|
3159
3303
|
"providers.openaiLiveSteering": {
|
|
3160
3304
|
"type": "boolean",
|
|
3161
3305
|
"default": false,
|
|
@@ -4876,7 +5020,7 @@
|
|
|
4876
5020
|
"tab": "memory",
|
|
4877
5021
|
"group": "Mnemopi",
|
|
4878
5022
|
"label": "Mnemopi DB Path",
|
|
4879
|
-
"description": "Optional SQLite DB path. Defaults to the agent memories directory.",
|
|
5023
|
+
"description": "Optional SQLite DB path; a leading ~ is the home directory. Defaults to the agent memories directory.",
|
|
4880
5024
|
"condition": "mnemopiActive"
|
|
4881
5025
|
}
|
|
4882
5026
|
},
|
|
@@ -5423,13 +5567,14 @@
|
|
|
5423
5567
|
"hashline",
|
|
5424
5568
|
"patch",
|
|
5425
5569
|
"replace",
|
|
5426
|
-
"sloppy"
|
|
5570
|
+
"sloppy",
|
|
5571
|
+
"none"
|
|
5427
5572
|
],
|
|
5428
5573
|
"ui": {
|
|
5429
5574
|
"tab": "files",
|
|
5430
5575
|
"group": "Editing",
|
|
5431
5576
|
"label": "Edit Mode",
|
|
5432
|
-
"description": "Select the edit tool variant (replace, patch, hashline, or apply_patch)"
|
|
5577
|
+
"description": "Select the edit tool variant (replace, patch, hashline, or apply_patch); none removes the edit tool and keeps bash enabled"
|
|
5433
5578
|
}
|
|
5434
5579
|
},
|
|
5435
5580
|
"edit.fuzzyMatch": {
|
|
@@ -7103,7 +7248,7 @@
|
|
|
7103
7248
|
{
|
|
7104
7249
|
"value": "auto",
|
|
7105
7250
|
"label": "Auto",
|
|
7106
|
-
"description": "
|
|
7251
|
+
"description": "Isolated subagents use ovnfs checkouts when ovnfs is found; otherwise (and for worktrees) the PAL picks the best available backend"
|
|
7107
7252
|
},
|
|
7108
7253
|
{
|
|
7109
7254
|
"value": "apfs",
|
|
@@ -7242,6 +7387,15 @@
|
|
|
7242
7387
|
"description": "Automatically apply successful isolated task changes to the parent checkout; disable to retain patch or branch artifacts"
|
|
7243
7388
|
}
|
|
7244
7389
|
},
|
|
7390
|
+
"ovnfs.path": {
|
|
7391
|
+
"type": "string",
|
|
7392
|
+
"ui": {
|
|
7393
|
+
"tab": "tasks",
|
|
7394
|
+
"group": "Isolation",
|
|
7395
|
+
"label": "ovnfs Binary",
|
|
7396
|
+
"description": "ovnfs executable; unset looks for `ovnfs` on PATH. When it is found, ovnfs checkouts (copy-on-write views of a folder, ready in about a second at any size) serve every separate copy: the system prompt tells agents to open checkouts instead of git worktrees or copies, and isolated subagents (when allowed, with `isolation.backend` on auto) run in checkouts instead of native clones"
|
|
7397
|
+
}
|
|
7398
|
+
},
|
|
7245
7399
|
"task.isolation.merge": {
|
|
7246
7400
|
"type": "enum",
|
|
7247
7401
|
"default": "patch",
|
|
@@ -7315,7 +7469,7 @@
|
|
|
7315
7469
|
"tab": "tasks",
|
|
7316
7470
|
"group": "Subagents",
|
|
7317
7471
|
"label": "Prefer Task Delegation",
|
|
7318
|
-
"description": "How strongly to push
|
|
7472
|
+
"description": "How strongly to push the main agent to delegate work; subagents keep the model's own policy",
|
|
7319
7473
|
"options": [
|
|
7320
7474
|
{
|
|
7321
7475
|
"value": "default",
|
|
@@ -7473,6 +7627,39 @@
|
|
|
7473
7627
|
]
|
|
7474
7628
|
}
|
|
7475
7629
|
},
|
|
7630
|
+
"task.workerThreads": {
|
|
7631
|
+
"type": "number",
|
|
7632
|
+
"default": 4,
|
|
7633
|
+
"ui": {
|
|
7634
|
+
"tab": "tasks",
|
|
7635
|
+
"group": "Subagents",
|
|
7636
|
+
"label": "Subagent Worker Threads",
|
|
7637
|
+
"description": "Maximum worker threads for subagents. Up to 8 concurrent subagents run on the main thread; at 9 one worker joins, and one more each time the count doubles (18, 36, 72). Workers stop a minute after no subagent is live in them; 0 keeps every subagent on the main thread",
|
|
7638
|
+
"options": [
|
|
7639
|
+
{
|
|
7640
|
+
"value": "0",
|
|
7641
|
+
"label": "Main thread only"
|
|
7642
|
+
},
|
|
7643
|
+
{
|
|
7644
|
+
"value": "1",
|
|
7645
|
+
"label": "Up to 1 worker"
|
|
7646
|
+
},
|
|
7647
|
+
{
|
|
7648
|
+
"value": "2",
|
|
7649
|
+
"label": "Up to 2 workers"
|
|
7650
|
+
},
|
|
7651
|
+
{
|
|
7652
|
+
"value": "4",
|
|
7653
|
+
"label": "Up to 4 workers",
|
|
7654
|
+
"description": "Default"
|
|
7655
|
+
},
|
|
7656
|
+
{
|
|
7657
|
+
"value": "8",
|
|
7658
|
+
"label": "Up to 8 workers"
|
|
7659
|
+
}
|
|
7660
|
+
]
|
|
7661
|
+
}
|
|
7662
|
+
},
|
|
7476
7663
|
"task.enableLsp": {
|
|
7477
7664
|
"type": "boolean",
|
|
7478
7665
|
"default": false,
|
|
@@ -7942,6 +8129,16 @@
|
|
|
7942
8129
|
"description": "Let extensions change how assistant replies are drawn, redraw a reply in place, and receive clicks on their own links; the session, exports and model context keep the reply as written"
|
|
7943
8130
|
}
|
|
7944
8131
|
},
|
|
8132
|
+
"extensionRenderers.transcriptPresenters": {
|
|
8133
|
+
"type": "boolean",
|
|
8134
|
+
"default": false,
|
|
8135
|
+
"ui": {
|
|
8136
|
+
"tab": "tools",
|
|
8137
|
+
"group": "Extensions",
|
|
8138
|
+
"label": "Extension Transcript Presenters",
|
|
8139
|
+
"description": "Let extensions draw transcript blocks such as tool calls in full, as one compact row, or hidden; the session, exports and model context are unchanged"
|
|
8140
|
+
}
|
|
8141
|
+
},
|
|
7945
8142
|
"exa.enabled": {
|
|
7946
8143
|
"type": "boolean",
|
|
7947
8144
|
"default": true,
|
|
@@ -8746,6 +8943,16 @@
|
|
|
8746
8943
|
"label": "Extra Redaction Patterns",
|
|
8747
8944
|
"description": "Additional regular expressions redacted from every streamed row, on top of env/secrets.yml values and built-in credential shapes"
|
|
8748
8945
|
}
|
|
8946
|
+
},
|
|
8947
|
+
"spotlight.experiment.enabled": {
|
|
8948
|
+
"type": "boolean",
|
|
8949
|
+
"default": false,
|
|
8950
|
+
"ui": {
|
|
8951
|
+
"tab": "tools",
|
|
8952
|
+
"group": "Developer",
|
|
8953
|
+
"label": "Spotlight Experiment",
|
|
8954
|
+
"description": "Shape tool output and rank find results with Stencil Spotlight, and log each shaped result to the session"
|
|
8955
|
+
}
|
|
8749
8956
|
}
|
|
8750
8957
|
}
|
|
8751
8958
|
}
|
|
@@ -13,6 +13,14 @@ export interface UseComposerTriggerOptions {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
/** Workspace root to scope `@` file mentions to (null → app root). */
|
|
15
15
|
rootPath?: string | null;
|
|
16
|
+
/** The open chat, so `/` can ask ITS agent for the command list (ACP agents
|
|
17
|
+
* publish their own; omp's utility catalog is a different vocabulary). */
|
|
18
|
+
sessionId?: string | null;
|
|
19
|
+
/**
|
|
20
|
+
* The harness behind the open chat. A non-omp ACP agent has no omp
|
|
21
|
+
* subagents, so the `@` pool drops the agent rows there; files stay.
|
|
22
|
+
*/
|
|
23
|
+
harness?: string | null;
|
|
16
24
|
/**
|
|
17
25
|
* Whether the popup may open at all. A composer with no completable surface
|
|
18
26
|
* (the side-question form) turns it off so a stray `@` or `/` cannot open an
|
|
@@ -61,14 +69,15 @@ function shouldOpen(trigger: ComposerTrigger | null, matches: ComposerMatchItem[
|
|
|
61
69
|
|
|
62
70
|
/** Orchestrates the composer `@`-mention / `/`-command autocomplete flow. */
|
|
63
71
|
export function useComposerTrigger(options: UseComposerTriggerOptions): ComposerTriggerController {
|
|
64
|
-
const { value, setValue, textareaRef, disabled = false, rootPath, enabled = true } = options;
|
|
72
|
+
const { value, setValue, textareaRef, disabled = false, rootPath, sessionId, harness, enabled = true } = options;
|
|
65
73
|
|
|
66
74
|
const [trigger, setTrigger] = useState<ComposerTrigger | null>(null);
|
|
67
75
|
const [activeIndex, setActiveIndexState] = useState(0);
|
|
68
76
|
const composingRef = useRef(false);
|
|
69
77
|
const pendingCaretRef = useRef<number | null>(null);
|
|
70
78
|
|
|
71
|
-
const
|
|
79
|
+
const includeAgents = !harness || harness === 'omp-rpc' || harness === 'omp-acp';
|
|
80
|
+
const { items, loading, error } = useComposerItems(trigger?.kind ?? null, rootPath ?? null, sessionId ?? null, includeAgents);
|
|
72
81
|
|
|
73
82
|
const matches = useMemo(
|
|
74
83
|
() => (trigger ? filterComposerItems(items, trigger) : []),
|
|
@@ -283,6 +283,17 @@ describe('loadComposerItems', () => {
|
|
|
283
283
|
expect(requested).toContain('/api/fs/list?root=%2Frepo');
|
|
284
284
|
});
|
|
285
285
|
|
|
286
|
+
test('a non-omp harness is offered files, never omp subagents', async () => {
|
|
287
|
+
answer = (url) => url.includes('/api/settings/agents')
|
|
288
|
+
? { body: { agents: [{ id: 'a', name: 'sonic', description: '', scope: 'user', mode: 'primary', systemPrompt: '' }] } }
|
|
289
|
+
: { body: { files: [{ name: 'a.ts', path: 'src/a.ts' }] } };
|
|
290
|
+
|
|
291
|
+
const items = await loadComposerItems('mention', '/repo', 's1', { includeAgents: false });
|
|
292
|
+
expect(items.map((item) => item.source)).toEqual(['file']);
|
|
293
|
+
// The agents request is skipped entirely, not fetched and filtered.
|
|
294
|
+
expect(requested.some((url) => url.includes('/api/settings/agents'))).toBe(false);
|
|
295
|
+
});
|
|
296
|
+
|
|
286
297
|
test('a repeated load is served from the cache without another request', async () => {
|
|
287
298
|
answer = () => ({ body: { agents: [] } });
|
|
288
299
|
await loadComposerItems('mention');
|
|
@@ -56,6 +56,8 @@ function pluginCommandItems(rows: ListSlotRows<CommandPaletteRegistration>): Com
|
|
|
56
56
|
export function useComposerItems(
|
|
57
57
|
kind: ComposerPickKind | null,
|
|
58
58
|
root?: string | null,
|
|
59
|
+
sessionId?: string | null,
|
|
60
|
+
includeAgents = true,
|
|
59
61
|
): ComposerItemsState {
|
|
60
62
|
const [state, setState] = useState<ComposerItemsState>({ items: [], loading: false, error: null });
|
|
61
63
|
const pluginRows = useListSlotRows<CommandPaletteRegistration>('commandPaletteAction');
|
|
@@ -69,7 +71,7 @@ export function useComposerItems(
|
|
|
69
71
|
let cancelled = false;
|
|
70
72
|
setState({ items: [], loading: true, error: null });
|
|
71
73
|
|
|
72
|
-
loadComposerItems(kind, root ?? null)
|
|
74
|
+
loadComposerItems(kind, root ?? null, sessionId ?? null, { includeAgents })
|
|
73
75
|
.then((items) => {
|
|
74
76
|
if (cancelled) return;
|
|
75
77
|
setState({ items, loading: false, error: null });
|
|
@@ -86,7 +88,7 @@ export function useComposerItems(
|
|
|
86
88
|
return () => {
|
|
87
89
|
cancelled = true;
|
|
88
90
|
};
|
|
89
|
-
}, [kind, root]);
|
|
91
|
+
}, [kind, root, sessionId, includeAgents]);
|
|
90
92
|
|
|
91
93
|
// Merged outside the fetch effect so a late registration re-renders the popup
|
|
92
94
|
// without re-issuing the request; memoized on the two inputs so the popup's
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The composer's model selection on an ACP harness.
|
|
8
|
+
*
|
|
9
|
+
* The two catalogs share no ids: omp's registry has never heard of `opus`, and
|
|
10
|
+
* resolving against it left the composer showing an omp model while the chat
|
|
11
|
+
* ran a different agent. The harness's own list is the whole catalog, and its
|
|
12
|
+
* `thought_level` ladder is what enables the thinking picker.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { afterAll, afterEach, beforeAll, describe, expect, test } from 'bun:test';
|
|
16
|
+
import { Window } from 'happy-dom';
|
|
17
|
+
import { h, render } from 'preact';
|
|
18
|
+
import { act } from 'preact/test-utils';
|
|
19
|
+
import { useModelSelection, type ModelSelection } from '@/client/hooks/chat/composer/model-selection';
|
|
20
|
+
import type { AIModelOption } from '@/shared/types';
|
|
21
|
+
|
|
22
|
+
const DOM_GLOBALS = ['window', 'document', 'navigator', 'Node', 'Element', 'HTMLElement', 'Event'] as const;
|
|
23
|
+
const native: Partial<Record<(typeof DOM_GLOBALS)[number], unknown>> = {};
|
|
24
|
+
const originalFetch = Bun.fetch;
|
|
25
|
+
let container: HTMLElement | undefined;
|
|
26
|
+
|
|
27
|
+
beforeAll(() => {
|
|
28
|
+
const win = new Window({ url: 'http://localhost' });
|
|
29
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
30
|
+
for (const key of DOM_GLOBALS) {
|
|
31
|
+
if (!(key in native)) native[key] = target[key];
|
|
32
|
+
target[key] = (win as unknown as Record<string, unknown>)[key];
|
|
33
|
+
}
|
|
34
|
+
// A scoped selection never reads `/api/models`; the one case that does must
|
|
35
|
+
// not reach a real server (and must not hang waiting for one).
|
|
36
|
+
target.fetch = (async () => new Response(JSON.stringify({ modelList: [], models: [] }), {
|
|
37
|
+
status: 200,
|
|
38
|
+
headers: { 'content-type': 'application/json' },
|
|
39
|
+
})) as unknown as typeof fetch;
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
afterAll(() => {
|
|
43
|
+
const target = globalThis as unknown as Record<string, unknown>;
|
|
44
|
+
for (const key of DOM_GLOBALS) {
|
|
45
|
+
if (native[key] === undefined) delete target[key];
|
|
46
|
+
else target[key] = native[key];
|
|
47
|
+
}
|
|
48
|
+
target.fetch = originalFetch;
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
afterEach(() => {
|
|
52
|
+
if (container) render(null, container);
|
|
53
|
+
container?.remove();
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const CLAUDE_MODELS: AIModelOption[] = [
|
|
57
|
+
{ id: 'default', name: 'default', provider: 'claude', thinkingLevels: ['low', 'high'] },
|
|
58
|
+
{ id: 'opus', name: 'opus', provider: 'claude', thinkingLevels: ['low', 'high'] },
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
function mount(options: {
|
|
62
|
+
sessionModel: { provider: string; modelId: string } | null;
|
|
63
|
+
sessionThinkingLevel?: string | null;
|
|
64
|
+
scopedModels?: AIModelOption[] | null;
|
|
65
|
+
}): { selection: ModelSelection; mirror: { current: { provider: string; modelId: string; thinkingLevel: string } | null } } {
|
|
66
|
+
const mirror = { current: null as { provider: string; modelId: string; thinkingLevel: string } | null };
|
|
67
|
+
const deferred = { current: null };
|
|
68
|
+
let selection: ModelSelection | null = null;
|
|
69
|
+
function Probe() {
|
|
70
|
+
selection = useModelSelection({
|
|
71
|
+
composerModelRef: mirror,
|
|
72
|
+
sessionModel: options.sessionModel,
|
|
73
|
+
sessionThinkingLevel: options.sessionThinkingLevel ?? null,
|
|
74
|
+
deferredComposerPickRef: deferred,
|
|
75
|
+
scopedModels: options.scopedModels ?? CLAUDE_MODELS,
|
|
76
|
+
});
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
const root = document.createElement('div');
|
|
80
|
+
document.body.appendChild(root);
|
|
81
|
+
container = root;
|
|
82
|
+
act(() => render(h(Probe, {}), root));
|
|
83
|
+
if (!selection) throw new Error('selection hook did not mount');
|
|
84
|
+
return { selection, mirror };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
describe('useModelSelection on an ACP harness', () => {
|
|
88
|
+
test("resolves the session's model from the agent's own list", () => {
|
|
89
|
+
const { selection, mirror } = mount({
|
|
90
|
+
sessionModel: { provider: 'claude', modelId: 'opus' },
|
|
91
|
+
});
|
|
92
|
+
expect(selection.selectedModel).toMatchObject({ id: 'opus', provider: 'claude' });
|
|
93
|
+
// The send path's queue snapshot reads this mirror, not state.
|
|
94
|
+
expect(mirror.current).toMatchObject({ provider: 'claude', modelId: 'opus' });
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test('offers the agent’s thinking ladder instead of an empty selector', () => {
|
|
98
|
+
const { selection } = mount({
|
|
99
|
+
sessionModel: { provider: 'claude', modelId: 'opus' },
|
|
100
|
+
sessionThinkingLevel: 'high',
|
|
101
|
+
});
|
|
102
|
+
expect(selection.thinkingLevels).toEqual(['low', 'high']);
|
|
103
|
+
expect(selection.selectedModel?.thinkingLevel).toBe('high');
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
test('a session with no model yet starts on the first row the agent lists', () => {
|
|
107
|
+
const { selection } = mount({ sessionModel: null });
|
|
108
|
+
expect(selection.selectedModel?.id).toBe('default');
|
|
109
|
+
});
|
|
110
|
+
});
|