@kabmo-labs/kabmo 0.11.1 → 0.12.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 +67 -421
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +426 -413
- package/dist/client/static/js/{index-amss8pge.js → index-0smc9gm2.js} +1123 -747
- package/dist/client/static/js/index-shexbk5f.css +1 -0
- package/marketplace/marketplace.json +13 -3
- package/marketplace/plugins/command-runner/package.json +4 -2
- package/marketplace/plugins/git-forge/README.md +219 -0
- package/marketplace/plugins/git-forge/icon.svg +20 -0
- package/marketplace/plugins/git-forge/package.json +56 -0
- package/marketplace/plugins/git-forge/src/app.tsx +82 -0
- package/marketplace/plugins/git-forge/src/command.test.ts +181 -0
- package/marketplace/plugins/git-forge/src/command.ts +119 -0
- package/marketplace/plugins/git-forge/src/header.tsx +87 -0
- package/marketplace/plugins/git-forge/src/panel/Badge.tsx +76 -0
- package/marketplace/plugins/git-forge/src/panel/Change.tsx +150 -0
- package/marketplace/plugins/git-forge/src/panel/CiBadge.tsx +51 -0
- package/marketplace/plugins/git-forge/src/panel/Credential.tsx +107 -0
- package/marketplace/plugins/git-forge/src/panel/Glyph.tsx +70 -0
- package/marketplace/plugins/git-forge/src/panel/Header.tsx +255 -0
- package/marketplace/plugins/git-forge/src/panel/ItemView.tsx +198 -0
- package/marketplace/plugins/git-forge/src/panel/List.tsx +89 -0
- package/marketplace/plugins/git-forge/src/panel/Row.tsx +68 -0
- package/marketplace/plugins/git-forge/src/panel/Sidebar.tsx +94 -0
- package/marketplace/plugins/git-forge/src/panel/Write.tsx +236 -0
- package/marketplace/plugins/git-forge/src/panel/format.ts +78 -0
- package/marketplace/plugins/git-forge/src/panel/index.test.tsx +344 -0
- package/marketplace/plugins/git-forge/src/panel/index.tsx +193 -0
- package/marketplace/plugins/git-forge/src/panel/use-forge.ts +250 -0
- package/marketplace/plugins/git-forge/src/panel/write.test.tsx +269 -0
- package/marketplace/plugins/git-forge/src/protocol.ts +308 -0
- package/marketplace/plugins/git-forge/src/server/adapters.test.ts +274 -0
- package/marketplace/plugins/git-forge/src/server/bitbucket.ts +307 -0
- package/marketplace/plugins/git-forge/src/server/capabilities.test.ts +116 -0
- package/marketplace/plugins/git-forge/src/server/capabilities.ts +105 -0
- package/marketplace/plugins/git-forge/src/server/ci.test.ts +88 -0
- package/marketplace/plugins/git-forge/src/server/ci.ts +118 -0
- package/marketplace/plugins/git-forge/src/server/context.ts +76 -0
- package/marketplace/plugins/git-forge/src/server/diff.test.ts +127 -0
- package/marketplace/plugins/git-forge/src/server/diff.ts +120 -0
- package/marketplace/plugins/git-forge/src/server/filters.test.ts +138 -0
- package/marketplace/plugins/git-forge/src/server/filters.ts +138 -0
- package/marketplace/plugins/git-forge/src/server/forges.test.ts +235 -0
- package/marketplace/plugins/git-forge/src/server/gitea.ts +296 -0
- package/marketplace/plugins/git-forge/src/server/github-extras.ts +92 -0
- package/marketplace/plugins/git-forge/src/server/github.ts +320 -0
- package/marketplace/plugins/git-forge/src/server/gitlab-detail.ts +207 -0
- package/marketplace/plugins/git-forge/src/server/gitlab.test.ts +195 -0
- package/marketplace/plugins/git-forge/src/server/gitlab.ts +176 -0
- package/marketplace/plugins/git-forge/src/server/http.test.ts +270 -0
- package/marketplace/plugins/git-forge/src/server/http.ts +329 -0
- package/marketplace/plugins/git-forge/src/server/map.ts +120 -0
- package/marketplace/plugins/git-forge/src/server/registry.ts +47 -0
- package/marketplace/plugins/git-forge/src/server/remote.test.ts +146 -0
- package/marketplace/plugins/git-forge/src/server/remote.ts +188 -0
- package/marketplace/plugins/git-forge/src/server/scope-probe.test.ts +98 -0
- package/marketplace/plugins/git-forge/src/server/scope-probe.ts +128 -0
- package/marketplace/plugins/git-forge/src/server/scope.ts +66 -0
- package/marketplace/plugins/git-forge/src/server/test-context.ts +67 -0
- package/marketplace/plugins/git-forge/src/server/test-host.ts +51 -0
- package/marketplace/plugins/git-forge/src/server/token.test.ts +107 -0
- package/marketplace/plugins/git-forge/src/server/token.ts +139 -0
- package/marketplace/plugins/git-forge/src/server/write-http.test.ts +127 -0
- package/marketplace/plugins/git-forge/src/server/write-http.ts +110 -0
- package/marketplace/plugins/git-forge/src/server/writes.test.ts +218 -0
- package/marketplace/plugins/git-forge/src/server/writes.ts +313 -0
- package/marketplace/plugins/git-forge/src/server.ts +284 -0
- package/marketplace/plugins/git-forge/tsconfig.json +16 -0
- package/marketplace/plugins/session-info/package.json +4 -2
- package/marketplace/plugins/stats/package.json +4 -2
- package/package.json +6 -1
- package/src/client/components/common/code-surface/blame-hover.ts +188 -0
- package/src/client/components/common/code-surface/blame-panel.test.ts +304 -0
- package/src/client/components/common/code-surface/blame-panel.ts +306 -0
- package/src/client/components/common/code-surface/blame.test.ts +303 -0
- package/src/client/components/common/code-surface/blame.ts +227 -0
- package/src/client/components/common/code-surface/conflict-markers.test.ts +135 -0
- package/src/client/components/common/code-surface/conflict-markers.ts +144 -0
- package/src/client/components/common/code-surface/documents.ts +48 -1
- package/src/client/components/common/code-surface/extensions.test.ts +4 -0
- package/src/client/components/common/code-surface/extensions.ts +44 -0
- package/src/client/components/common/code-surface/fold-stack.test.ts +4 -0
- package/src/client/components/common/code-surface/indent.test.ts +5 -0
- package/src/client/components/common/code-surface/index.tsx +16 -2
- package/src/client/components/common/code-surface/lint-parsers.test.ts +109 -0
- package/src/client/components/common/code-surface/lint-parsers.ts +134 -0
- package/src/client/components/common/code-surface/lint.test.ts +101 -0
- package/src/client/components/common/code-surface/lint.ts +85 -0
- package/src/client/components/common/code-surface/props.ts +17 -0
- package/src/client/components/common/code-surface/surface-failures.test.ts +132 -0
- package/src/client/components/common/code-surface/theme.ts +71 -0
- 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/provider-icon/Plate.tsx +88 -0
- package/src/client/components/common/provider-icon/index.tsx +55 -11
- package/src/client/components/layout/session-sidebar/SessionsView.tsx +5 -2
- package/src/client/components/mobile/SessionSidebar.tsx +2 -10
- package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +6 -0
- package/src/client/components/mobile/mobile-right-sidebar/StatusBar.tsx +8 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +3 -0
- package/src/client/components/settings/categories/ProviderSettings.tsx +43 -41
- package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +97 -0
- package/src/client/components/settings/categories/panel-plugins/AvailableList.tsx +106 -54
- package/src/client/components/settings/categories/panel-plugins/GitFreshness.tsx +14 -1
- package/src/client/components/settings/categories/panel-plugins/InstalledList.tsx +39 -150
- package/src/client/components/settings/categories/panel-plugins/Meta.test.tsx +143 -0
- package/src/client/components/settings/categories/panel-plugins/Meta.tsx +157 -0
- package/src/client/components/settings/categories/panel-plugins/Placement.test.tsx +149 -0
- package/src/client/components/settings/categories/panel-plugins/Placement.tsx +99 -0
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +270 -0
- package/src/client/components/settings/categories/panel-plugins/Section.tsx +11 -3
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +25 -0
- package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +135 -80
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +51 -21
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +175 -0
- package/src/client/components/settings/categories/provider-settings/EntryModal.tsx +275 -0
- package/src/client/components/settings/categories/provider-settings/Header.tsx +40 -9
- package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +142 -160
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/ModelCapabilitiesModal.tsx +84 -46
- package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +217 -102
- package/src/client/components/settings/categories/provider-settings/PresetPicker.tsx +5 -2
- package/src/client/components/settings/categories/provider-settings/SidebarList.plugin.test.ts +3 -3
- package/src/client/components/settings/categories/provider-settings/SidebarList.tsx +158 -102
- package/src/client/components/settings/categories/provider-settings/auth-section.test.tsx +135 -0
- package/src/client/components/settings/categories/provider-settings/groups.test.ts +98 -0
- package/src/client/components/settings/categories/provider-settings/groups.ts +108 -0
- package/src/client/components/settings/categories/provider-settings/layout.test.tsx +325 -0
- package/src/client/components/settings/categories/provider-settings/model-dialogs.test.tsx +135 -0
- package/src/client/components/settings/categories/provider-settings/preset-picker.test.tsx +73 -0
- package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +22 -2
- package/src/client/components/settings/categories/usage-settings/ProviderDetail.tsx +2 -0
- package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +16 -6
- package/src/client/components/settings/categories/usage-settings/providers.ts +3 -0
- package/src/client/components/settings/categories/usage-settings/usage-and-picker.test.ts +19 -0
- package/src/client/components/settings/categories/usage-settings/usage-icons.test.tsx +143 -0
- package/src/client/components/workspace/chat-timeline/MinimapShortcuts.test.ts +2 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalBanner.test.ts +23 -19
- package/src/client/components/workspace/chat-timeline/chat-input/ModeToggles.test.ts +23 -19
- package/src/client/components/workspace/chat-timeline/chat-input/Toolbar.test.ts +20 -18
- package/src/client/components/workspace/chat-timeline/chat-input/compact.test.tsx +19 -6
- package/src/client/components/workspace/chat-timeline/index.tsx +7 -16
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.missing.test.ts +100 -0
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.test.ts +3 -47
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Wait.tsx +8 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/wait-test-util.ts +62 -0
- package/src/client/components/workspace/diff-panel/HunkStepper.tsx +62 -0
- package/src/client/components/workspace/diff-panel/MergeDiffView.tsx +29 -0
- package/src/client/components/workspace/diff-panel/Toolbar.tsx +32 -1
- package/src/client/components/workspace/diff-panel/changes.ts +69 -0
- package/src/client/components/workspace/diff-panel/chunks.ts +85 -0
- package/src/client/components/workspace/diff-panel/index.tsx +21 -1
- package/src/client/components/workspace/diff-panel/merge.test.ts +145 -0
- package/src/client/components/workspace/diff-panel/merge.ts +63 -68
- package/src/client/components/workspace/editor/EditorDropOverlay.tsx +6 -1
- package/src/client/components/workspace/editor/FileDocument.tsx +51 -1
- package/src/client/components/workspace/editor/FilePane.tsx +25 -1
- package/src/client/components/workspace/editor/StatusBar.tsx +19 -0
- package/src/client/components/workspace/editor/Toolbar.tsx +29 -5
- package/src/client/components/workspace/editor/toolbar-clusters.test.ts +86 -0
- package/src/client/components/workspace/editor/toolbar-clusters.tsx +48 -16
- package/src/client/components/workspace/editor/viewers/bytes.ts +16 -0
- package/src/client/components/workspace/git-panel/index.test.ts +46 -1
- package/src/client/components/workspace/git-panel/index.tsx +11 -38
- package/src/client/components/workspace/model-dropdown/Item.plugin.test.ts +66 -0
- package/src/client/components/workspace/model-dropdown/Item.tsx +71 -62
- package/src/client/components/workspace/model-dropdown/Section.tsx +31 -14
- package/src/client/components/workspace/model-dropdown/collapsed.ts +72 -0
- package/src/client/components/workspace/model-dropdown/index.tsx +42 -19
- package/src/client/components/workspace/model-dropdown/refresh.test.tsx +260 -0
- package/src/client/components/workspace/model-dropdown/trigger.test.ts +34 -0
- package/src/client/components/workspace/model-dropdown/use-catalog.ts +13 -2
- package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +19 -3
- package/src/client/hooks/chat/omp/folder-auto-expand.ts +113 -0
- package/src/client/hooks/chat/omp/index.ts +20 -0
- package/src/client/hooks/chat/omp/pending-rows.ts +21 -0
- package/src/client/hooks/chat/omp/pending-sessions.test.ts +16 -1
- package/src/client/hooks/chat/omp/session-sidebar-controller.test.ts +102 -0
- package/src/client/hooks/chat/omp/session-sidebar-controller.ts +21 -1
- package/src/client/hooks/chat/omp/stream.ts +8 -1
- package/src/client/hooks/chat/timeline/index.ts +1 -1
- package/src/client/hooks/chat/timeline/new-chat-open.ts +60 -0
- package/src/client/hooks/editor/blame-settings.ts +67 -0
- package/src/client/hooks/editor/blame.test.ts +272 -0
- package/src/client/hooks/editor/blame.ts +232 -0
- package/src/client/hooks/editor/file-editor-types.ts +23 -0
- package/src/client/hooks/editor/save-file.test.ts +20 -0
- package/src/client/hooks/editor/use-editor-drop.test-util.ts +198 -0
- package/src/client/hooks/editor/use-editor-drop.test.ts +70 -175
- package/src/client/hooks/editor/use-editor-drop.ts +19 -36
- package/src/client/hooks/editor/use-file-editor.ts +7 -1
- package/src/client/hooks/settings/providers/actions.ts +90 -194
- package/src/client/hooks/settings/providers/api.ts +7 -1
- package/src/client/hooks/settings/providers/index.ts +171 -59
- package/src/client/hooks/settings/providers/login.test.ts +79 -0
- package/src/client/hooks/settings/providers/login.ts +276 -0
- package/src/client/hooks/settings/providers/messages.ts +28 -0
- package/src/client/hooks/settings/providers/model-actions.ts +178 -0
- package/src/client/hooks/ui/editor-error-toast.ts +47 -0
- package/src/client/hooks/ui/open-file.ts +7 -0
- package/src/client/hooks/ui/toasts.ts +7 -0
- package/src/client/hooks/workspace/file-tabs.ts +4 -1
- package/src/client/hooks/workspace/folder-expansion.test.ts +62 -0
- package/src/client/hooks/workspace/folder-expansion.ts +33 -0
- package/src/client/hooks/workspace/git-action-outcome.ts +86 -0
- package/src/client/hooks/workspace/git-actions.ts +29 -2
- package/src/client/hooks/workspace/plugin-contributions.test.ts +117 -0
- package/src/client/hooks/workspace/plugin-contributions.ts +146 -0
- package/src/client/lib/editor-errors.test.ts +85 -0
- package/src/client/lib/editor-errors.ts +71 -0
- package/src/client/lib/fs/resolve-open.test.ts +125 -0
- package/src/client/lib/fs/resolve-open.ts +90 -0
- package/src/client/lib/git/action-message.test.ts +82 -0
- package/src/client/lib/git/action-message.ts +160 -0
- package/src/client/lib/launch/device-files.test.ts +160 -0
- package/src/client/lib/launch/device-files.ts +197 -0
- package/src/client/lib/native/open-paths.test.ts +140 -0
- package/src/client/lib/native/open-paths.ts +157 -0
- package/src/client/lib/plugins/bootstrap.test.ts +1 -1
- package/src/client/main.tsx +20 -0
- package/src/server/db.server.test.ts +39 -0
- package/src/server/db.server.ts +21 -2
- package/src/server/lib/db/schema.ts +2 -0
- package/src/server/lib/fs/external-roots.test.ts +100 -0
- package/src/server/lib/fs/external-roots.ts +101 -0
- package/src/server/lib/fs/git-actions-branch.ts +15 -2
- package/src/server/lib/fs/git-actions-shared.ts +24 -0
- package/src/server/lib/fs/git-actions-sync.test.ts +18 -7
- package/src/server/lib/fs/git-actions-worktree.ts +5 -1
- package/src/server/lib/fs/git-blame.test.ts +206 -0
- package/src/server/lib/fs/git-blame.ts +189 -0
- package/src/server/lib/fs/root.ts +14 -0
- package/src/server/lib/http/same-origin.ts +28 -7
- package/src/server/lib/models/catalog.server.ts +230 -0
- package/src/server/lib/models/catalog.test.ts +83 -0
- package/src/server/lib/models/credential-origin.server.ts +108 -0
- package/src/server/lib/models/credential-origin.test.ts +132 -0
- package/src/server/lib/models/provider-icon-fetch.ts +115 -0
- package/src/server/lib/models/provider-icon-parse.test.ts +134 -0
- package/src/server/lib/models/provider-icon-parse.ts +139 -0
- package/src/server/lib/models/provider-icon-store.server.ts +118 -0
- package/src/server/lib/models/provider-icon-store.test.ts +107 -0
- package/src/server/lib/models/provider-icon.server.ts +209 -0
- package/src/server/lib/models/provider-items.server.ts +211 -37
- package/src/server/lib/models/provider-items.test.ts +201 -0
- package/src/server/lib/models/provider-registry.server.test.ts +27 -9
- package/src/server/lib/models/provider-registry.server.ts +160 -67
- package/src/server/lib/models/registry.server.test.ts +3 -3
- package/src/server/lib/models/registry.server.ts +8 -0
- package/src/server/lib/omp/config/definitions.test.ts +5 -4
- package/src/server/lib/omp/config/models-config.ts +42 -0
- package/src/server/lib/omp/config/provider-entry.test.ts +205 -0
- package/src/server/lib/omp/config/provider-entry.ts +197 -0
- package/src/server/lib/omp/config/provider-seeds.ts +10 -0
- package/src/server/lib/omp/core/models-json.ts +69 -0
- package/src/server/lib/omp/session/messages.ts +17 -3
- package/src/server/lib/omp/session/sidebar-data.canonical.test.ts +13 -3
- package/src/server/lib/panels/bundled-catalog.server.ts +7 -0
- package/src/server/lib/panels/catalog-offers.server.ts +68 -0
- package/src/server/lib/panels/git-update.server.test.ts +14 -0
- package/src/server/lib/panels/git-update.server.ts +63 -1
- package/src/server/lib/panels/manifest.test.ts +65 -0
- package/src/server/lib/panels/manifest.ts +55 -1
- package/src/server/lib/panels/offers.server.test.ts +191 -0
- package/src/server/lib/panels/offers.server.ts +108 -0
- package/src/server/lib/panels/registry.server.test.ts +35 -1
- package/src/server/lib/panels/registry.server.ts +51 -142
- package/src/server/lib/panels/scan.server.ts +162 -0
- package/src/server/lib/route-adapter.ts +13 -2
- package/src/server/lib/tray/tray.test.ts +2 -1
- package/src/server/lib/usage/providers.server.ts +4 -1
- package/src/server/routes/chat/session.ts +7 -1
- package/src/server/routes/fs/git-blame-loader.test.ts +146 -0
- package/src/server/routes/fs/git.ts +17 -0
- package/src/server/routes/fs/grant.test.ts +135 -0
- package/src/server/routes/fs/grant.ts +79 -0
- package/src/server/routes/fs/index.ts +2 -0
- package/src/server/routes/fs/scope.ts +34 -17
- package/src/server/routes/omp/login.ts +41 -14
- package/src/server/routes/omp/routes.test.ts +23 -10
- package/src/server/routes/settings/index.ts +8 -0
- package/src/server/routes/settings/provider-entry.ts +108 -0
- package/src/server/routes/settings/provider-icon.ts +99 -0
- package/src/server/routes/settings/provider-model.ts +4 -1
- package/src/server/routes/settings/provider-refresh.ts +87 -0
- package/src/server/routes/settings/providers.ts +31 -2
- package/src/shared/lib/chat/omp/fold.test.ts +34 -0
- package/src/shared/lib/chat/omp/tool-frames.test.ts +20 -0
- package/src/shared/lib/chat/omp/tool-frames.ts +5 -1
- package/src/shared/lib/chat/omp/tool-results.ts +29 -3
- package/src/shared/lib/chat/tool/wait-facts.ts +4 -0
- package/src/shared/lib/fs/git-blame.test.ts +266 -0
- package/src/shared/lib/fs/git-blame.ts +246 -0
- package/src/shared/lib/git/url.ts +18 -0
- package/src/shared/lib/markdown/sanitize.test.ts +57 -0
- package/src/shared/lib/markdown/sanitize.ts +30 -7
- package/src/shared/lib/models/provider/connection.ts +135 -0
- package/src/shared/lib/models/provider/dialect.test.ts +4 -2
- package/src/shared/lib/models/provider/dialect.ts +76 -6
- package/src/shared/lib/models/provider/models.ts +2 -0
- package/src/shared/lib/models/provider/origin.ts +94 -0
- package/src/shared/lib/models/provider/provider-ui.test.ts +7 -0
- package/src/shared/lib/models/server-cache.ts +8 -3
- package/src/shared/lib/omp/session/messages-map-pending.test.ts +110 -0
- package/src/shared/lib/omp/session/messages-map.ts +34 -2
- package/src/shared/lib/omp/session/prewarm-misc.test.ts +7 -90
- package/src/shared/lib/omp/session/prewarm.test.ts +133 -0
- package/src/shared/lib/omp/session/prewarm.ts +23 -1
- package/src/shared/lib/omp/session/wait.test.ts +28 -0
- package/src/shared/lib/omp/session/wait.ts +38 -3
- package/src/shared/lib/panels/slot-labels.test.ts +61 -0
- package/src/shared/lib/panels/slot-labels.ts +133 -0
- package/src/shared/lib/workspace/panel-ids.ts +11 -0
- package/src/shared/types/fs.ts +6 -0
- package/src/shared/types/index.ts +1 -0
- package/src/shared/types/models.ts +12 -0
- package/src/shared/types/panels-registry.ts +277 -0
- package/src/shared/types/panels.ts +46 -213
- package/src/shared/types/settings/provider.ts +58 -0
- package/src/shared/types/settings/usage.ts +10 -0
- package/src/test-support/pristine-globals.ts +7 -0
- package/dist/client/static/js/index-bq6qeayr.css +0 -1
- package/src/client/components/settings/categories/provider-settings/ReconnectModal.tsx +0 -184
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { useState } from 'preact/hooks';
|
|
2
|
-
import {
|
|
1
|
+
import { useMemo, useState } from 'preact/hooks';
|
|
2
|
+
import {
|
|
3
|
+
Download,
|
|
4
|
+
Eye,
|
|
5
|
+
EyeOff,
|
|
6
|
+
Image as ImageIcon,
|
|
7
|
+
Plus,
|
|
8
|
+
RefreshCw,
|
|
9
|
+
Search,
|
|
10
|
+
Settings2,
|
|
11
|
+
SlidersHorizontal,
|
|
12
|
+
X,
|
|
13
|
+
} from 'lucide-preact';
|
|
3
14
|
import type { ProviderModel } from '@/shared/types';
|
|
4
15
|
import { formatContextWindow } from '@/shared/lib/code/format';
|
|
5
16
|
import { formatPrice } from '@/shared/lib/format/number';
|
|
17
|
+
import { MODEL_KIND_LABELS, modelKindOf, type ProviderModelKind } from '@/shared/lib/models/provider/dialect';
|
|
6
18
|
|
|
7
19
|
interface ProviderModelsListProps {
|
|
8
20
|
models: ProviderModel[];
|
|
@@ -11,9 +23,17 @@ interface ProviderModelsListProps {
|
|
|
11
23
|
onToggleModelVisibility: (modelId: string) => void;
|
|
12
24
|
onHideAll: () => void;
|
|
13
25
|
onShowAll: () => void;
|
|
14
|
-
|
|
26
|
+
/** Ask omp to re-run discovery (`omp models refresh`). */
|
|
27
|
+
onRefreshModels: () => Promise<void>;
|
|
15
28
|
/** Opens the manual "Add Model" dialog. */
|
|
16
29
|
onAddModel: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Probe the provider's endpoint and write the ids into models.yml.
|
|
32
|
+
* Absent for a provider whose list omp owns — the button then has nothing to
|
|
33
|
+
* promise, and a snapshot beside a live discovery list is the drift the
|
|
34
|
+
* writer's `overrideOnly` exists to prevent.
|
|
35
|
+
*/
|
|
36
|
+
onImportModels?: () => Promise<void>;
|
|
17
37
|
/**
|
|
18
38
|
* Why a fetch is not possible, or undefined when it is. One prop rather than a
|
|
19
39
|
* boolean plus a message: the button's `disabled` state and its tooltip have
|
|
@@ -25,13 +45,27 @@ interface ProviderModelsListProps {
|
|
|
25
45
|
onOpenModelCapabilities: (model: ProviderModel) => void;
|
|
26
46
|
}
|
|
27
47
|
|
|
48
|
+
/**
|
|
49
|
+
* A provider's models, grouped by omp's own kind.
|
|
50
|
+
*
|
|
51
|
+
* The kind tabs are not decoration: a provider routinely serves an embedding
|
|
52
|
+
* model, an image model and a reranker beside its chat models, and a flat list
|
|
53
|
+
* made them look like chat models that behave oddly. The counts come from the
|
|
54
|
+
* rows themselves, so a tab appears exactly when the provider has one.
|
|
55
|
+
*
|
|
56
|
+
* The price badge is omp's own accounting (`cost` + `pricingStatus`), and the
|
|
57
|
+
* capability icons come from the row's declared `input` and `thinking` — the
|
|
58
|
+
* panel used to hardcode `hasVision: false` / `hasTools: true`, so a vision
|
|
59
|
+
* model read as text-only while the agent used it for images.
|
|
60
|
+
*/
|
|
28
61
|
export function ProviderModelsList({
|
|
29
62
|
models,
|
|
30
63
|
emptyReason,
|
|
31
64
|
onToggleModelVisibility,
|
|
32
65
|
onHideAll,
|
|
33
66
|
onShowAll,
|
|
34
|
-
|
|
67
|
+
onRefreshModels,
|
|
68
|
+
onImportModels,
|
|
35
69
|
onAddModel,
|
|
36
70
|
fetchBlockReason,
|
|
37
71
|
isFetchingModels,
|
|
@@ -39,17 +73,36 @@ export function ProviderModelsList({
|
|
|
39
73
|
onOpenModelCapabilities,
|
|
40
74
|
}: ProviderModelsListProps) {
|
|
41
75
|
const [searchQuery, setSearchQuery] = useState('');
|
|
76
|
+
const [kind, setKind] = useState<ProviderModelKind | 'all'>('all');
|
|
42
77
|
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
78
|
+
const counts = useMemo(() => {
|
|
79
|
+
const map = new Map<ProviderModelKind, number>();
|
|
80
|
+
for (const model of models) {
|
|
81
|
+
const entry = modelKindOf(model.kind);
|
|
82
|
+
map.set(entry, (map.get(entry) ?? 0) + 1);
|
|
83
|
+
}
|
|
84
|
+
return map;
|
|
85
|
+
}, [models]);
|
|
86
|
+
|
|
87
|
+
const kinds = useMemo(() => [...counts.entries()].sort((a, b) => b[1] - a[1]), [counts]);
|
|
88
|
+
|
|
89
|
+
const filteredModels = models.filter((model) => {
|
|
90
|
+
if (kind !== 'all' && modelKindOf(model.kind) !== kind) return false;
|
|
91
|
+
if (!searchQuery.trim()) return true;
|
|
92
|
+
const needle = searchQuery.trim().toLowerCase();
|
|
93
|
+
return model.id.toLowerCase().includes(needle) || model.name.toLowerCase().includes(needle);
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
const hiddenCount = models.filter((model) => !model.isVisible).length;
|
|
46
97
|
|
|
47
98
|
return (
|
|
48
99
|
<div className="space-y-3.5">
|
|
49
|
-
{/* 1. Header with count & hide all / show all */}
|
|
50
100
|
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-2">
|
|
51
101
|
<div className="text-xs font-semibold text-ink">
|
|
52
|
-
|
|
102
|
+
Models <span className="font-normal text-ink/60">({models.length})</span>
|
|
103
|
+
{hiddenCount > 0 && (
|
|
104
|
+
<span className="font-normal text-ink/40"> · {hiddenCount} hidden</span>
|
|
105
|
+
)}
|
|
53
106
|
</div>
|
|
54
107
|
|
|
55
108
|
{/* Wraps: four action chips need ~330px, which the detail pane does not
|
|
@@ -57,14 +110,26 @@ export function ProviderModelsList({
|
|
|
57
110
|
<div className="flex flex-wrap items-center gap-2">
|
|
58
111
|
<button
|
|
59
112
|
type="button"
|
|
60
|
-
onClick={
|
|
61
|
-
disabled={
|
|
62
|
-
title=
|
|
113
|
+
onClick={onRefreshModels}
|
|
114
|
+
disabled={isFetchingModels}
|
|
115
|
+
title="Ask omp to re-run model discovery for every provider"
|
|
63
116
|
className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded bg-ink text-canvas text-[11px] font-medium hover:opacity-90 transition-opacity cursor-pointer border border-ink disabled:opacity-40 disabled:cursor-not-allowed"
|
|
64
117
|
>
|
|
65
118
|
<RefreshCw size={12} className={isFetchingModels ? 'animate-spin' : ''} />
|
|
66
|
-
<span>{isFetchingModels ? '
|
|
119
|
+
<span>{isFetchingModels ? 'refreshing…' : 'refresh'}</span>
|
|
67
120
|
</button>
|
|
121
|
+
{onImportModels && (
|
|
122
|
+
<button
|
|
123
|
+
type="button"
|
|
124
|
+
onClick={onImportModels}
|
|
125
|
+
disabled={Boolean(fetchBlockReason) || isFetchingModels}
|
|
126
|
+
title={fetchBlockReason ?? 'List this endpoint’s models and register them in models.yml'}
|
|
127
|
+
className="inline-flex items-center gap-1.5 px-2.5 py-1 rounded bg-ink/5 hover:bg-ink/10 text-[11px] font-medium text-ink/80 hover:text-ink transition-colors cursor-pointer border border-ink/10 disabled:opacity-40 disabled:cursor-not-allowed"
|
|
128
|
+
>
|
|
129
|
+
<Download size={12} />
|
|
130
|
+
<span>import</span>
|
|
131
|
+
</button>
|
|
132
|
+
)}
|
|
68
133
|
{/* Manual registration, for the ids no listing endpoint reports:
|
|
69
134
|
a gateway model its /models omits, an Azure deployment name, a
|
|
70
135
|
provider with no listing route at all (Bedrock, Vertex). */}
|
|
@@ -80,140 +145,190 @@ export function ProviderModelsList({
|
|
|
80
145
|
<button
|
|
81
146
|
type="button"
|
|
82
147
|
onClick={onHideAll}
|
|
83
|
-
|
|
148
|
+
disabled={models.length === 0}
|
|
149
|
+
title="Hide every model from the chat picker"
|
|
150
|
+
className="px-2.5 py-1 rounded bg-ink/5 hover:bg-ink/10 text-[11px] font-medium text-ink/80 hover:text-ink transition-colors cursor-pointer border border-ink/10 disabled:opacity-40 disabled:cursor-not-allowed"
|
|
84
151
|
>
|
|
85
152
|
hide all
|
|
86
153
|
</button>
|
|
87
154
|
<button
|
|
88
155
|
type="button"
|
|
89
156
|
onClick={onShowAll}
|
|
90
|
-
|
|
157
|
+
disabled={hiddenCount === 0}
|
|
158
|
+
title="Show every model in the chat picker"
|
|
159
|
+
className="px-2.5 py-1 rounded bg-ink/5 hover:bg-ink/10 text-[11px] font-medium text-ink/80 hover:text-ink transition-colors cursor-pointer border border-ink/10 disabled:opacity-40 disabled:cursor-not-allowed"
|
|
91
160
|
>
|
|
92
161
|
show all
|
|
93
162
|
</button>
|
|
94
163
|
</div>
|
|
95
164
|
</div>
|
|
96
165
|
|
|
97
|
-
|
|
166
|
+
<div className="flex flex-wrap items-center gap-1.5">
|
|
167
|
+
<button
|
|
168
|
+
type="button"
|
|
169
|
+
onClick={() => setKind('all')}
|
|
170
|
+
aria-pressed={kind === 'all'}
|
|
171
|
+
className={`px-2 py-0.5 rounded text-[11px] font-medium transition-colors cursor-pointer border ${
|
|
172
|
+
kind === 'all'
|
|
173
|
+
? 'border-ink/40 bg-ink/10 text-ink'
|
|
174
|
+
: 'border-ink/10 text-ink/60 hover:text-ink hover:border-ink/25'
|
|
175
|
+
}`}
|
|
176
|
+
>
|
|
177
|
+
All <span className="font-mono text-ink/45">{models.length}</span>
|
|
178
|
+
</button>
|
|
179
|
+
{kinds.map(([entry, count]) => (
|
|
180
|
+
<button
|
|
181
|
+
key={entry}
|
|
182
|
+
type="button"
|
|
183
|
+
onClick={() => setKind(entry)}
|
|
184
|
+
aria-pressed={kind === entry}
|
|
185
|
+
className={`px-2 py-0.5 rounded text-[11px] font-medium transition-colors cursor-pointer border ${
|
|
186
|
+
kind === entry
|
|
187
|
+
? 'border-ink/40 bg-ink/10 text-ink'
|
|
188
|
+
: 'border-ink/10 text-ink/60 hover:text-ink hover:border-ink/25'
|
|
189
|
+
}`}
|
|
190
|
+
>
|
|
191
|
+
{MODEL_KIND_LABELS[entry]} <span className="font-mono text-ink/45">{count}</span>
|
|
192
|
+
</button>
|
|
193
|
+
))}
|
|
194
|
+
</div>
|
|
195
|
+
|
|
98
196
|
<div className="relative flex items-center">
|
|
99
197
|
<Search size={14} className="absolute left-3 text-ink/40 pointer-events-none" />
|
|
100
198
|
<input
|
|
101
199
|
type="text"
|
|
102
200
|
value={searchQuery}
|
|
103
201
|
onChange={(e) => setSearchQuery(e.currentTarget.value)}
|
|
104
|
-
placeholder="Filter models
|
|
105
|
-
|
|
202
|
+
placeholder="Filter models by id or name…"
|
|
203
|
+
aria-label="Filter models"
|
|
204
|
+
className="w-full bg-paper border border-ink/15 rounded-lg pl-9 pr-9 py-2 text-xs text-ink placeholder-ink/40 focus:outline-none focus:border-ink/40 transition-colors shadow-2xs"
|
|
106
205
|
/>
|
|
107
206
|
{searchQuery && (
|
|
108
207
|
<button
|
|
109
208
|
type="button"
|
|
110
209
|
onClick={() => setSearchQuery('')}
|
|
111
|
-
|
|
210
|
+
title="Clear the filter"
|
|
211
|
+
aria-label="Clear the model filter"
|
|
212
|
+
className="absolute right-2 p-1 rounded text-ink/40 hover:text-ink hover:bg-ink/10 transition-colors cursor-pointer"
|
|
112
213
|
>
|
|
113
|
-
|
|
214
|
+
<X size={12} />
|
|
114
215
|
</button>
|
|
115
216
|
)}
|
|
116
217
|
</div>
|
|
117
218
|
|
|
118
|
-
{/* 3. Model Rows */}
|
|
119
219
|
<div className="space-y-1 pt-1">
|
|
120
220
|
{filteredModels.length === 0 ? (
|
|
121
221
|
<div className="py-8 text-center text-xs text-ink/40">
|
|
122
|
-
{searchQuery
|
|
123
|
-
?
|
|
222
|
+
{searchQuery || kind !== 'all'
|
|
223
|
+
? 'No model matches this filter.'
|
|
124
224
|
: emptyReason || 'No models registered for this provider yet.'}
|
|
125
225
|
</div>
|
|
126
226
|
) : (
|
|
127
|
-
filteredModels.map((model) =>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
227
|
+
filteredModels.map((model) => {
|
|
228
|
+
const modelKind = modelKindOf(model.kind);
|
|
229
|
+
return (
|
|
230
|
+
<div
|
|
231
|
+
key={model.id}
|
|
232
|
+
className={`flex items-center justify-between gap-3 px-3 py-2 rounded-lg hover:bg-ink/5 transition-colors group ${
|
|
233
|
+
!model.isVisible ? 'opacity-50' : ''
|
|
234
|
+
}`}
|
|
235
|
+
>
|
|
236
|
+
<div className="min-w-0 flex-1">
|
|
237
|
+
<div className="flex items-center gap-1.5 min-w-0">
|
|
238
|
+
<span
|
|
239
|
+
className={`text-xs font-medium truncate ${
|
|
240
|
+
model.isVisible ? 'text-ink' : 'text-ink/60 line-through decoration-ink/40'
|
|
241
|
+
}`}
|
|
242
|
+
title={model.id}
|
|
243
|
+
>
|
|
244
|
+
{model.name}
|
|
245
|
+
</span>
|
|
246
|
+
{modelKind !== 'chat' && (
|
|
247
|
+
<span className="shrink-0 px-1 py-0 rounded border border-ink/15 text-[9px] font-mono uppercase tracking-wide text-ink/55">
|
|
248
|
+
{MODEL_KIND_LABELS[modelKind]}
|
|
249
|
+
</span>
|
|
250
|
+
)}
|
|
251
|
+
</div>
|
|
252
|
+
{model.name !== model.id && (
|
|
253
|
+
<span className="text-[10px] font-mono text-ink/40 truncate block">{model.id}</span>
|
|
254
|
+
)}
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
{/* Wraps rather than running past the pane: a long price plus a
|
|
258
|
+
context badge plus three icons exceeds the detail pane's
|
|
259
|
+
width in a two-pane modal on a ~768px window. */}
|
|
260
|
+
<div className="flex flex-wrap items-center justify-end gap-2">
|
|
261
|
+
{(model.priceInput !== undefined || model.priceOutput !== undefined) && (
|
|
262
|
+
<span
|
|
263
|
+
title={`$${model.priceInput ?? '?'} in / $${model.priceOutput ?? '?'} out per 1M tokens${
|
|
264
|
+
model.pricingStatus && model.pricingStatus !== 'exact'
|
|
265
|
+
? ` (${model.pricingStatus})`
|
|
266
|
+
: ''
|
|
267
|
+
}`}
|
|
268
|
+
className="text-[11px] font-mono px-2 py-0.5 rounded bg-ink/5 text-ink/70 border border-ink/10"
|
|
269
|
+
>
|
|
270
|
+
{formatPrice(model.priceInput)} / {formatPrice(model.priceOutput)}
|
|
271
|
+
</span>
|
|
272
|
+
)}
|
|
273
|
+
|
|
274
|
+
{model.contextWindow && (
|
|
275
|
+
<span className="text-[11px] font-mono px-2 py-0.5 rounded bg-ink/5 text-ink/70 border border-ink/10">
|
|
276
|
+
{formatContextWindow(model.contextWindow)}
|
|
277
|
+
</span>
|
|
278
|
+
)}
|
|
142
279
|
|
|
143
|
-
{/* Right: Price & Context Badge & Action Icons. Wraps rather than
|
|
144
|
-
running past the pane: a long price plus a context badge plus
|
|
145
|
-
three icons exceeds the detail pane's width in a two-pane
|
|
146
|
-
modal on a ~768px window. */}
|
|
147
|
-
<div className="flex flex-wrap items-center justify-end gap-2">
|
|
148
|
-
{/* Pricing Badge (per 1M tokens) */}
|
|
149
|
-
{(model.priceInput !== undefined || model.priceOutput !== undefined) && (
|
|
150
|
-
<span
|
|
151
|
-
title={`$${model.priceInput ?? '?'} in / $${model.priceOutput ?? '?'} out per 1M tokens`}
|
|
152
|
-
className="text-[11px] font-mono px-2 py-0.5 rounded bg-ink/5 text-ink/70 border border-ink/10"
|
|
153
|
-
>
|
|
154
|
-
{formatPrice(model.priceInput)} / {formatPrice(model.priceOutput)}
|
|
155
|
-
</span>
|
|
156
|
-
)}
|
|
157
|
-
|
|
158
|
-
{/* Context Window Badge */}
|
|
159
|
-
{model.contextWindow && (
|
|
160
|
-
<span className="text-[11px] font-mono px-2 py-0.5 rounded bg-ink/5 text-ink/70 border border-ink/10">
|
|
161
|
-
{formatContextWindow(model.contextWindow)}
|
|
162
|
-
</span>
|
|
163
|
-
)}
|
|
164
|
-
|
|
165
|
-
{/* Tool Calling / Steering Button */}
|
|
166
|
-
{model.hasTools && (
|
|
167
280
|
<button
|
|
168
281
|
type="button"
|
|
169
282
|
onClick={() => onOpenModelCapabilities(model)}
|
|
170
|
-
title="
|
|
283
|
+
title="What this model declares — tools, vision, reasoning"
|
|
284
|
+
aria-label={`Capabilities of ${model.name}`}
|
|
171
285
|
className="p-1 rounded text-ink/50 hover:text-ink hover:bg-ink/10 transition-colors cursor-pointer"
|
|
172
286
|
>
|
|
173
287
|
<SlidersHorizontal size={13} strokeWidth={1.8} />
|
|
174
288
|
</button>
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
className="p-1 rounded text-ink/50 hover:text-ink hover:bg-ink/10 transition-colors cursor-pointer"
|
|
183
|
-
>
|
|
184
|
-
<Settings2 size={13} strokeWidth={1.8} />
|
|
185
|
-
</button>
|
|
186
|
-
|
|
187
|
-
{/* Vision Capability Icon */}
|
|
188
|
-
{model.hasVision && (
|
|
189
|
-
<div
|
|
190
|
-
title="Multimodal / Vision inputs enabled"
|
|
191
|
-
className="p-1 text-ink/60"
|
|
289
|
+
|
|
290
|
+
<button
|
|
291
|
+
type="button"
|
|
292
|
+
onClick={() => onOpenModelConfig(model)}
|
|
293
|
+
title="Per-model overrides omp honours (max output, reasoning level)"
|
|
294
|
+
aria-label={`Configure ${model.name}`}
|
|
295
|
+
className="p-1 rounded text-ink/50 hover:text-ink hover:bg-ink/10 transition-colors cursor-pointer"
|
|
192
296
|
>
|
|
193
|
-
<
|
|
194
|
-
</
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
? 'text-ink/60 hover:text-ink hover:bg-ink/10'
|
|
205
|
-
: 'text-ink/30 hover:text-ink/70 hover:bg-ink/10'
|
|
206
|
-
}`}
|
|
207
|
-
>
|
|
208
|
-
{model.isVisible ? (
|
|
209
|
-
<Eye size={14} strokeWidth={1.8} />
|
|
210
|
-
) : (
|
|
211
|
-
<EyeOff size={14} strokeWidth={1.8} />
|
|
297
|
+
<Settings2 size={13} strokeWidth={1.8} />
|
|
298
|
+
</button>
|
|
299
|
+
|
|
300
|
+
{model.hasVision && (
|
|
301
|
+
<span
|
|
302
|
+
title="Accepts image input"
|
|
303
|
+
className="p-1 text-ink/60"
|
|
304
|
+
aria-label="Accepts image input"
|
|
305
|
+
>
|
|
306
|
+
<ImageIcon size={13} strokeWidth={1.8} />
|
|
307
|
+
</span>
|
|
212
308
|
)}
|
|
213
|
-
|
|
309
|
+
|
|
310
|
+
<button
|
|
311
|
+
type="button"
|
|
312
|
+
onClick={() => onToggleModelVisibility(model.id)}
|
|
313
|
+
title={model.isVisible ? 'Hide model from chat picker' : 'Show model in chat picker'}
|
|
314
|
+
aria-label={model.isVisible ? `Hide ${model.name}` : `Show ${model.name}`}
|
|
315
|
+
aria-pressed={model.isVisible}
|
|
316
|
+
className={`p-1 rounded transition-colors cursor-pointer ${
|
|
317
|
+
model.isVisible
|
|
318
|
+
? 'text-ink/60 hover:text-ink hover:bg-ink/10'
|
|
319
|
+
: 'text-ink/30 hover:text-ink/70 hover:bg-ink/10'
|
|
320
|
+
}`}
|
|
321
|
+
>
|
|
322
|
+
{model.isVisible ? (
|
|
323
|
+
<Eye size={14} strokeWidth={1.8} />
|
|
324
|
+
) : (
|
|
325
|
+
<EyeOff size={14} strokeWidth={1.8} />
|
|
326
|
+
)}
|
|
327
|
+
</button>
|
|
328
|
+
</div>
|
|
214
329
|
</div>
|
|
215
|
-
|
|
216
|
-
)
|
|
330
|
+
);
|
|
331
|
+
})
|
|
217
332
|
)}
|
|
218
333
|
</div>
|
|
219
334
|
</div>
|
|
@@ -2,7 +2,7 @@ import { useState } from 'preact/hooks';
|
|
|
2
2
|
import { Check, ChevronDown } from 'lucide-preact';
|
|
3
3
|
import type { PresetProviderOption } from '@/shared/types/settings/provider';
|
|
4
4
|
import { groupProviderPresets } from '@/shared/lib/models/provider/presets';
|
|
5
|
-
import {
|
|
5
|
+
import { ProviderIconPlate } from '@/client/components/common/provider-icon/Plate';
|
|
6
6
|
|
|
7
7
|
interface PresetPickerProps {
|
|
8
8
|
presets: PresetProviderOption[];
|
|
@@ -66,7 +66,10 @@ export function PresetPicker({ presets, selectedPresetId, onSelectPreset }: Pres
|
|
|
66
66
|
: 'border-ink/15 hover:border-ink/30 text-ink/70'
|
|
67
67
|
}`}
|
|
68
68
|
>
|
|
69
|
-
<
|
|
69
|
+
<ProviderIconPlate
|
|
70
|
+
provider={{ icon: preset.icon, slug: preset.slug, name: preset.name }}
|
|
71
|
+
size={18}
|
|
72
|
+
/>
|
|
70
73
|
<span className="truncate flex-1">{preset.name}</span>
|
|
71
74
|
{isSelected && <Check size={12} className="shrink-0 text-ink" />}
|
|
72
75
|
</button>
|
package/src/client/components/settings/categories/provider-settings/SidebarList.plugin.test.ts
CHANGED
|
@@ -59,9 +59,9 @@ function mount(providers: ProviderItem[]): void {
|
|
|
59
59
|
selectedProviderId: providers[0]?.id ?? '',
|
|
60
60
|
onSelectProvider: () => {},
|
|
61
61
|
onOpenAddModal: () => {},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
onRefresh: () => {},
|
|
63
|
+
isRefreshing: false,
|
|
64
|
+
isLoading: false,
|
|
65
65
|
}),
|
|
66
66
|
container,
|
|
67
67
|
);
|