@kortix/ui 0.15.11 → 0.16.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/dist/_vendor/kortix-shared.js +478 -179
- package/dist/_vendor/shared/my-kortix-agent.d.ts +5 -3
- package/dist/_vendor/shared/session/attachment-tile.d.ts +8 -0
- package/dist/_vendor/shared/workspace-settings.d.ts +3 -0
- package/dist/access/access/copy-row.d.ts +7 -1
- package/dist/access/access/copy-row.js +2 -2
- package/dist/animated-copy-icon.js +2 -1
- package/dist/browser/sandbox-browser-chrome.d.ts +2 -1
- package/dist/browser/sandbox-browser-chrome.js +1 -1
- package/dist/customize/agents/agent-cover-card.d.ts +1 -1
- package/dist/customize/agents/agent-cover-card.js +10 -2
- package/dist/customize/agents/agent-filter.js +3 -1
- package/dist/customize/agents/agent-overview.d.ts +10 -0
- package/dist/customize/agents/agent-overview.js +5 -4
- package/dist/customize/agents/agent-page-chrome.d.ts +5 -6
- package/dist/customize/agents/agent-page-chrome.js +16 -13
- package/dist/customize/agents/agent-page.js +6 -28
- package/dist/customize/agents/agent-tabs.d.ts +1 -0
- package/dist/customize/agents/agent-tabs.js +1 -0
- package/dist/customize/agents/agents-page.js +3 -3
- package/dist/customize/agents/create-agent-modal.d.ts +9 -0
- package/dist/customize/agents/create-agent-modal.js +21 -3
- package/dist/customize/agents/use-default-agent.js +2 -2
- package/dist/customize/connectors/connector-identity.d.ts +11 -2
- package/dist/customize/connectors/connector-identity.js +16 -4
- package/dist/customize/connectors/connectors-page.js +10 -6
- package/dist/customize/connectors/detail/app-page.js +2 -2
- package/dist/customize/connectors/install/install-dialog.d.ts +2 -0
- package/dist/customize/connectors/install/install-dialog.js +6 -1
- package/dist/customize/connectors/use-agent-access.d.ts +1 -0
- package/dist/customize/evals/eval-compare-view.d.ts +10 -0
- package/dist/customize/evals/eval-compare-view.js +68 -0
- package/dist/customize/evals/eval-dataset-view.d.ts +20 -0
- package/dist/customize/evals/eval-dataset-view.js +81 -0
- package/dist/customize/evals/eval-datasets-page.d.ts +25 -0
- package/dist/customize/evals/eval-datasets-page.js +91 -0
- package/dist/customize/evals/eval-job-view.d.ts +12 -0
- package/dist/customize/evals/eval-job-view.js +360 -0
- package/dist/customize/evals/eval-jobs-page.d.ts +4 -0
- package/dist/customize/evals/eval-jobs-page.js +69 -0
- package/dist/customize/evals/eval-meta.d.ts +97 -0
- package/dist/customize/evals/eval-meta.js +228 -0
- package/dist/customize/evals/eval-task-view.d.ts +13 -0
- package/dist/customize/evals/eval-task-view.js +123 -0
- package/dist/customize/evals/eval-tasks-page.d.ts +8 -0
- package/dist/customize/evals/eval-tasks-page.js +56 -0
- package/dist/customize/evals/eval-ui.d.ts +97 -0
- package/dist/customize/evals/eval-ui.js +153 -0
- package/dist/customize/evals/evals-page.d.ts +10 -0
- package/dist/customize/evals/evals-page.js +56 -0
- package/dist/customize/evals/run-eval-modal.d.ts +28 -0
- package/dist/customize/evals/run-eval-modal.js +167 -0
- package/dist/customize/project-settings/project-admin-sections.d.ts +3 -2
- package/dist/customize/project-settings/project-admin-sections.js +6 -1
- package/dist/customize/providers/provider-connect.d.ts +13 -0
- package/dist/customize/providers/provider-connect.js +29 -5
- package/dist/customize/providers/provider-sheet.js +5 -4
- package/dist/customize/sections/view/gateway/gateway-overview.d.ts +5 -0
- package/dist/customize/sections/view/gateway/gateway-overview.js +32 -6
- package/dist/customize/sections/view/gateway/routing-parts.d.ts +6 -0
- package/dist/customize/sections/view/gateway/routing-parts.js +21 -13
- package/dist/customize/sections/view/git-view.d.ts +19 -1
- package/dist/customize/sections/view/git-view.js +7 -3
- package/dist/customize/sections/view/manifest-issue-list.d.ts +16 -0
- package/dist/customize/sections/view/manifest-issue-list.js +41 -0
- package/dist/customize/sections/view/manifest-issues-row.d.ts +24 -0
- package/dist/customize/sections/view/manifest-issues-row.js +39 -0
- package/dist/customize/sections/view/sandbox-provider-coverage.d.ts +7 -1
- package/dist/customize/sections/view/sandbox-provider-coverage.js +7 -5
- package/dist/customize/sections/view/secrets-view.d.ts +13 -0
- package/dist/customize/sections/view/secrets-view.js +10 -6
- package/dist/customize/sections/view/subscription-usage.d.ts +2 -7
- package/dist/customize/sections/view/subscription-usage.js +4 -8
- package/dist/customize/settings/settings-tab-header.js +12 -3
- package/dist/customize/settings/tabs/experimental-tab.d.ts +16 -5
- package/dist/customize/settings/tabs/experimental-tab.js +36 -11
- package/dist/customize/settings/tabs/general-tab.js +1 -1
- package/dist/customize/settings/tabs/sandbox-tab.d.ts +10 -0
- package/dist/customize/settings/tabs/sandbox-tab.js +27 -4
- package/dist/customize/settings/tabs/snapshots-tab.d.ts +31 -0
- package/dist/customize/settings/tabs/snapshots-tab.js +61 -5
- package/dist/customize/settings/tabs/workspace-keys.js +6 -3
- package/dist/customize/shared/capability-page-shell.js +9 -1
- package/dist/customize/shared/catalog/catalog-card.d.ts +1 -1
- package/dist/customize/shared/catalog/catalog-card.js +15 -5
- package/dist/customize/shared/customize-tab-bar.js +1 -1
- package/dist/customize/shared/new-entity-menu.d.ts +1 -1
- package/dist/customize/shared/new-entity-menu.js +38 -1
- package/dist/customize/triggers/runtime-triggers.d.ts +4 -0
- package/dist/customize/triggers/runtime-triggers.js +21 -2
- package/dist/customize/triggers/schedule/post-to-field.js +2 -2
- package/dist/customize/triggers/schedule-view.js +2 -1
- package/dist/files/project/components/drive-explorer.js +33 -70
- package/dist/files/project/components/drive-grid-view.d.ts +2 -31
- package/dist/files/project/components/drive-grid-view.js +12 -22
- package/dist/files/project/components/drive-list-view.d.ts +3 -30
- package/dist/files/project/components/drive-list-view.js +8 -18
- package/dist/files/project/components/drive-selection-bar.d.ts +4 -5
- package/dist/files/project/components/drive-selection-bar.js +13 -20
- package/dist/files/project/components/explorer-listing.d.ts +48 -0
- package/dist/files/project/components/explorer-listing.js +64 -0
- package/dist/files/project/components/file-explorer-page.js +7 -204
- package/dist/files/project/components/file-thumbnail.js +3 -1
- package/dist/files/project/components/manifest-issue-mark.d.ts +9 -0
- package/dist/files/project/components/manifest-issue-mark.js +26 -0
- package/dist/files/project/hooks/use-change-requests.d.ts +10 -0
- package/dist/files/project/hooks/use-change-requests.js +17 -0
- package/dist/files/project/manifest-annotations.d.ts +16 -0
- package/dist/files/project/manifest-annotations.js +19 -0
- package/dist/files/project/store/version-store.d.ts +1 -1
- package/dist/files/project/upload-batch.d.ts +20 -0
- package/dist/files/project/upload-batch.js +20 -0
- package/dist/files/runtime/hooks/use-binary-blob.js +3 -2
- package/dist/files/runtime/hooks/use-file-content.js +3 -2
- package/dist/files/runtime/hooks/use-file-list.js +1 -2
- package/dist/files/runtime/hooks/use-file-mutations.js +69 -6
- package/dist/files/runtime/hooks/use-file-refresh.d.ts +4 -0
- package/dist/files/runtime/hooks/use-file-refresh.js +6 -0
- package/dist/files/tree/components/file-tree-item.js +1 -4
- package/dist/files/viewer/file-annotations.d.ts +18 -0
- package/dist/files/viewer/file-annotations.js +21 -0
- package/dist/files/viewer/file-content-renderer.js +1 -1
- package/dist/files/viewer/file-viewer.js +2 -1
- package/dist/files/viewer/index.d.ts +1 -0
- package/dist/files/viewer/index.js +1 -0
- package/dist/files/viewer/use-file-content-state.js +8 -1
- package/dist/i18n/en.d.ts +495 -46
- package/dist/i18n/en.js +536 -87
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -4
- package/dist/icons/caret-right-solid.d.ts +11 -0
- package/dist/icons/caret-right-solid.js +15 -0
- package/dist/internal/auth/auth-art.d.ts +12 -0
- package/dist/internal/auth/auth-art.js +118 -0
- package/dist/internal/auth/auth-card-shell.d.ts +14 -10
- package/dist/internal/auth/auth-card-shell.js +20 -31
- package/dist/internal/auth/auth-consent.d.ts +3 -1
- package/dist/internal/auth/auth-consent.js +2 -2
- package/dist/internal/auth/auth-primitives.d.ts +26 -1
- package/dist/internal/auth/auth-primitives.js +37 -8
- package/dist/internal/connector-logo/connector-logo.d.ts +2 -1
- package/dist/internal/connector-logo/connector-logo.js +11 -2
- package/dist/internal/files/file-read-retry.d.ts +18 -2
- package/dist/internal/files/file-read-retry.js +42 -4
- package/dist/internal/hooks/projects/use-new-project-session.js +5 -10
- package/dist/internal/hooks/use-auto-scroll-physics.d.ts +1 -1
- package/dist/internal/hooks/use-auto-scroll-physics.js +2 -10
- package/dist/internal/hooks/use-reduced-motion.d.ts +4 -0
- package/dist/internal/hooks/use-reduced-motion.js +12 -0
- package/dist/internal/hooks/use-save-shortcut.d.ts +8 -0
- package/dist/internal/hooks/use-save-shortcut.js +28 -0
- package/dist/internal/layout/connect-mcp-modal.d.ts +1 -1
- package/dist/internal/layout/connect-mcp-modal.js +9 -4
- package/dist/internal/layout/panel-chrome.d.ts +28 -0
- package/dist/internal/layout/panel-chrome.js +27 -0
- package/dist/internal/layout/project-page-header.js +5 -1
- package/dist/internal/lib/browser-noise/rules/webview.js +16 -0
- package/dist/internal/lib/manifest-health.d.ts +25 -1
- package/dist/internal/lib/manifest-health.js +56 -0
- package/dist/internal/lib/project-preamble.js +1 -1
- package/dist/internal/lib/web-notifications.d.ts +1 -1
- package/dist/internal/lib/web-notifications.js +3 -0
- package/dist/internal/notifications/notification-inbox.js +2 -1
- package/dist/internal/notifications/notification-rows.d.ts +1 -1
- package/dist/internal/notifications/notification-rows.js +15 -1
- package/dist/internal/selection/selection-bar.d.ts +2 -8
- package/dist/internal/selection/selection-bar.js +15 -38
- package/dist/internal/stores/active-space-store.d.ts +1 -1
- package/dist/internal/stores/browser-recents-store.d.ts +1 -1
- package/dist/internal/stores/current-account-store.d.ts +1 -1
- package/dist/internal/stores/first-chat-store.d.ts +1 -1
- package/dist/internal/stores/mobile-app-promo-store.d.ts +1 -1
- package/dist/internal/stores/session-browser-store.d.ts +1 -1
- package/dist/internal/stores/session-expanded-store.d.ts +1 -1
- package/dist/internal/stores/session-filter-store.d.ts +1 -1
- package/dist/internal/stores/session-history-view-store.d.ts +1 -1
- package/dist/internal/stores/session-panel-memory-store.d.ts +1 -1
- package/dist/internal/stores/sound-store.d.ts +1 -1
- package/dist/internal/stores/tab-store.d.ts +1 -1
- package/dist/internal/stores/user-preferences-store.d.ts +9 -1
- package/dist/internal/stores/user-preferences-store.js +2 -0
- package/dist/internal/stores/web-notification-store.d.ts +1 -1
- package/dist/lib/base-ui-compat.js +28 -1
- package/dist/lib/dotmatrix-hooks.d.ts +1 -0
- package/dist/lib/dotmatrix-hooks.js +3 -13
- package/dist/lib/reduced-motion.d.ts +10 -0
- package/dist/lib/reduced-motion.js +104 -0
- package/dist/lib/routes.d.ts +9 -0
- package/dist/lib/routes.js +7 -4
- package/dist/markdown/artifact-link.d.ts +11 -0
- package/dist/markdown/artifact-link.js +62 -0
- package/dist/markdown/code/index.d.ts +1 -1
- package/dist/markdown/code/index.js +1 -1
- package/dist/markdown/code/inline-code.d.ts +1 -1
- package/dist/markdown/code/inline-code.js +1 -1
- package/dist/markdown/genui/components/map-canvas.js +2 -1
- package/dist/markdown/index.d.ts +3 -1
- package/dist/markdown/index.js +2 -1
- package/dist/markdown/{code/inline-chip.js → inline-chip.js} +2 -2
- package/dist/markdown/inline-code-text.d.ts +34 -0
- package/dist/markdown/inline-code-text.js +68 -0
- package/dist/markdown/setup-links/approval-decision.js +3 -3
- package/dist/markdown/soft-breaks.d.ts +21 -0
- package/dist/markdown/soft-breaks.js +33 -0
- package/dist/markdown/unified-markdown.d.ts +9 -1
- package/dist/markdown/unified-markdown.js +31 -9
- package/dist/primitives/action-bar.d.ts +50 -0
- package/dist/primitives/action-bar.js +87 -0
- package/dist/primitives/calendar.js +4 -2
- package/dist/primitives/inline-meta.js +2 -2
- package/dist/primitives/kortix-loader.js +2 -1
- package/dist/primitives/modal.d.ts +1 -1
- package/dist/primitives/paper-wallpaper-shaders.d.ts +1 -0
- package/dist/primitives/paper-wallpaper-shaders.js +6 -0
- package/dist/primitives/resizable.d.ts +1 -1
- package/dist/primitives/resize-seam.d.ts +3 -2
- package/dist/primitives/resize-seam.js +4 -3
- package/dist/primitives/settings-section-header.d.ts +30 -1
- package/dist/primitives/settings-section-header.js +37 -0
- package/dist/primitives/sliding-tab-indicator.js +2 -1
- package/dist/primitives/switch.js +15 -8
- package/dist/primitives/text-shimmer.js +6 -0
- package/dist/primitives/toast-clearance.d.ts +52 -0
- package/dist/primitives/toast-clearance.js +116 -0
- package/dist/primitives/toast.d.ts +3 -1
- package/dist/primitives/toast.js +2 -0
- package/dist/primitives/typed-title.js +1 -1
- package/dist/primitives/wallpaper-shaders.js +1 -1
- package/dist/session/actions/project-session-list-helpers.d.ts +16 -0
- package/dist/session/actions/project-session-list-helpers.js +18 -0
- package/dist/session/agents/agent-model.d.ts +1 -0
- package/dist/session/agents/agent-model.js +2 -1
- package/dist/session/agents/agent-strip.js +10 -4
- package/dist/session/agents/workflow-run-controls.d.ts +27 -4
- package/dist/session/agents/workflow-run-controls.js +63 -10
- package/dist/session/composer/ComposerCard.js +3 -0
- package/dist/session/composer/agent-selector.js +6 -4
- package/dist/session/composer/animated-placeholder.js +2 -1
- package/dist/session/composer/attachment-tile.d.ts +2 -2
- package/dist/session/composer/attachment-tile.js +25 -3
- package/dist/session/composer/composer-agent-access.d.ts +10 -1
- package/dist/session/composer/composer-agent-access.js +18 -4
- package/dist/session/composer/composer-chat-input.js +7 -2
- package/dist/session/composer/composer.d.ts +2 -2
- package/dist/session/composer/composer.js +7 -6
- package/dist/session/composer/hooks/use-file-search.d.ts +12 -2
- package/dist/session/composer/hooks/use-file-search.js +71 -7
- package/dist/session/composer/menus/menu-items.js +6 -2
- package/dist/session/composer/menus/menu-shell.d.ts +3 -1
- package/dist/session/composer/menus/menu-shell.js +2 -2
- package/dist/session/composer/menus/slash-menu.d.ts +7 -0
- package/dist/session/composer/menus/slash-menu.js +48 -1
- package/dist/session/composer/use-instant-session-send.js +7 -1
- package/dist/session/header/session-reminders-indicator.js +3 -2
- package/dist/session/header/session-site-header.js +24 -6
- package/dist/session/media/sandbox-url-detector.js +1 -1
- package/dist/session/models/model-connection-gate.js +2 -1
- package/dist/session/models/model-selector.js +1 -1
- package/dist/session/models/subscription-switcher.d.ts +7 -0
- package/dist/session/models/subscription-switcher.js +52 -10
- package/dist/session/models/subscription-windows.d.ts +2 -0
- package/dist/session/models/subscription-windows.js +2 -0
- package/dist/session/outcomes/session-outcomes-provider.js +14 -7
- package/dist/session/panel/action-panel.js +8 -19
- package/dist/session/panel/easy/app-preview.d.ts +4 -1
- package/dist/session/panel/easy/app-preview.js +95 -33
- package/dist/session/panel/easy/apps-card.js +6 -11
- package/dist/session/panel/easy/change-requests-card.js +1 -1
- package/dist/session/panel/easy/changes-card.d.ts +14 -0
- package/dist/session/panel/easy/changes-card.js +60 -0
- package/dist/session/panel/easy/context-card.d.ts +5 -1
- package/dist/session/panel/easy/context-card.js +13 -28
- package/dist/session/panel/easy/context-meter.d.ts +18 -0
- package/dist/session/panel/easy/context-meter.js +73 -0
- package/dist/session/panel/easy/detail-view.d.ts +1 -1
- package/dist/session/panel/easy/detail-view.js +24 -21
- package/dist/session/panel/easy/easy-panel.js +7 -5
- package/dist/session/panel/easy/file-preview.js +3 -1
- package/dist/session/panel/easy/frame-history.d.ts +91 -0
- package/dist/session/panel/easy/frame-history.js +198 -0
- package/dist/session/panel/easy/outputs-card.d.ts +10 -0
- package/dist/session/panel/easy/outputs-card.js +28 -31
- package/dist/session/panel/easy/panel-card.d.ts +1 -3
- package/dist/session/panel/easy/panel-card.js +24 -8
- package/dist/session/panel/easy/plan-card.js +2 -2
- package/dist/session/panel/easy/step-icon.d.ts +4 -1
- package/dist/session/panel/easy/step-icon.js +2 -2
- package/dist/session/panel/session-action-panel-column.d.ts +5 -0
- package/dist/session/panel/session-action-panel-column.js +198 -101
- package/dist/session/panel/session-desktop.js +5 -1
- package/dist/session/panel/session-diff-viewer.d.ts +3 -1
- package/dist/session/panel/session-diff-viewer.js +7 -4
- package/dist/session/panel/session-panel-provider.js +29 -5
- package/dist/session/panel/shared/derive-panels.js +64 -4
- package/dist/session/status/session-busy-indicator.js +2 -1
- package/dist/session/status/session-error-banner.js +1 -1
- package/dist/session/thread/chat-minimap.js +2 -1
- package/dist/session/thread/session-body.js +4 -1
- package/dist/session/thread/session-chat.js +18 -3
- package/dist/session/thread/session-turn-meta-rows.d.ts +13 -5
- package/dist/session/thread/session-turn-meta-rows.js +33 -5
- package/dist/session/thread/transcript.d.ts +1 -2
- package/dist/session/thread/transcript.js +26 -24
- package/dist/session/thread/typing-indicator.d.ts +2 -2
- package/dist/session/thread/typing-indicator.js +10 -3
- package/dist/session/tool/tools/session-spawn-tool.js +3 -3
- package/dist/session/tool/tools/workflow-run-card.d.ts +11 -1
- package/dist/session/tool/tools/workflow-run-card.js +31 -7
- package/dist/session/tool/tools/workflow-run-cost.d.ts +29 -0
- package/dist/session/tool/tools/workflow-run-cost.js +75 -0
- package/dist/session/tool/tools/workflow-tool.d.ts +1 -1
- package/dist/session/tool/tools/workflow-tool.js +40 -15
- package/dist/session/turn/peer-message-row.js +1 -1
- package/dist/session/turn/queued-prompt-bubbles.d.ts +3 -2
- package/dist/session/turn/queued-prompt-bubbles.js +1 -1
- package/dist/session/turn/throttled-markdown.js +1 -1
- package/dist/styles/theme.css +68 -0
- package/dist/styles.css +1 -1
- package/dist/terminal/pty-terminal.js +1 -1
- package/dist/terminal/session-terminal-connect-bar.js +2 -1
- package/dist/test-utils/intl.d.ts +495 -46
- package/dist/workspace/admin/project-admin-dashboard.js +21 -7
- package/dist/workspace/admin/settings-search-landing.js +2 -1
- package/dist/workspace/calendar/calendar-dates.d.ts +31 -0
- package/dist/workspace/calendar/calendar-dates.js +64 -0
- package/dist/workspace/calendar/calendar-new-item.d.ts +11 -0
- package/dist/workspace/calendar/calendar-new-item.js +47 -0
- package/dist/workspace/calendar/calendar-page.d.ts +3 -0
- package/dist/workspace/calendar/calendar-page.js +177 -0
- package/dist/workspace/calendar/calendar-panel.d.ts +13 -0
- package/dist/workspace/calendar/calendar-panel.js +103 -0
- package/dist/workspace/calendar/calendar-people.d.ts +52 -0
- package/dist/workspace/calendar/calendar-people.js +117 -0
- package/dist/workspace/calendar/calendar-scheduled.d.ts +29 -0
- package/dist/workspace/calendar/calendar-scheduled.js +118 -0
- package/dist/workspace/calendar/calendar-views.d.ts +32 -0
- package/dist/workspace/calendar/calendar-views.js +124 -0
- package/dist/workspace/calendar/calendar-when.d.ts +14 -0
- package/dist/workspace/calendar/calendar-when.js +81 -0
- package/dist/workspace/calendar/mention-textarea.d.ts +19 -0
- package/dist/workspace/calendar/mention-textarea.js +84 -0
- package/dist/workspace/home/access-requests-bell.js +2 -1
- package/dist/workspace/inbox/workspace-inbox.d.ts +1 -1
- package/dist/workspace/inbox/workspace-inbox.js +1 -1
- package/dist/workspace/layout/project-files-view.js +2 -1
- package/dist/workspace/memory/memory-page-list.js +1 -1
- package/dist/workspace/new/workspace-handoff.js +2 -1
- package/dist/workspace/projects/modal/project-icon-field.js +2 -1
- package/dist/workspace/session-workspace.js +13 -12
- package/dist/workspace/setup/setup-steps.d.ts +43 -0
- package/dist/workspace/setup/setup-steps.js +38 -0
- package/dist/workspace/setup/workspace-setup-page.d.ts +10 -0
- package/dist/workspace/setup/workspace-setup-page.js +124 -0
- package/dist/workspace/sidebar/footer/project-artifacts-nav.js +5 -1
- package/dist/workspace/sidebar/footer/project-calendar-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-calendar-nav.js +31 -0
- package/dist/workspace/sidebar/footer/project-chrome-nav.d.ts +14 -6
- package/dist/workspace/sidebar/footer/project-chrome-nav.js +37 -25
- package/dist/workspace/sidebar/footer/project-computer-nav.d.ts +17 -9
- package/dist/workspace/sidebar/footer/project-computer-nav.js +36 -26
- package/dist/workspace/sidebar/footer/project-download-app-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-download-app-nav.js +25 -13
- package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +8 -0
- package/dist/workspace/sidebar/footer/project-inbox-nav.js +29 -0
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.d.ts +3 -13
- package/dist/workspace/sidebar/footer/project-manifest-issues-alert.js +6 -48
- package/dist/workspace/sidebar/footer/project-mcp-nav.d.ts +7 -7
- package/dist/workspace/sidebar/footer/project-mcp-nav.js +31 -13
- package/dist/workspace/sidebar/footer/project-phone-app-nav.d.ts +10 -0
- package/dist/workspace/sidebar/footer/project-phone-app-nav.js +61 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +21 -0
- package/dist/workspace/sidebar/footer/project-promo-cards.js +33 -0
- package/dist/workspace/sidebar/footer/promo-card.d.ts +41 -0
- package/dist/workspace/sidebar/footer/promo-card.js +47 -0
- package/dist/workspace/sidebar/project-nav-items.d.ts +3 -1
- package/dist/workspace/sidebar/project-nav-items.js +12 -4
- package/dist/workspace/sidebar/project-session-list.js +58 -26
- package/dist/workspace/sidebar/project-sidebar.js +2 -5
- package/dist/workspace/sidebar/project-spaces-nav.js +2 -1
- package/dist/workspace/sidebar/session-brief-hover-card.d.ts +24 -0
- package/dist/workspace/sidebar/session-brief-hover-card.js +4 -3
- package/dist/workspace/sidebar/session-group-sections.d.ts +26 -7
- package/dist/workspace/sidebar/session-group-sections.js +121 -41
- package/dist/workspace/sidebar/sidebar-drill.js +6 -0
- package/dist/workspace/sidebar/sidebar-more-group.js +3 -2
- package/dist/workspace/sidebar/use-workspace-list.d.ts +7 -0
- package/dist/workspace/sidebar/use-workspace-list.js +11 -1
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.d.ts +14 -0
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +46 -2
- package/dist/workspace/space/space-tab-panels.js +1 -1
- package/dist/workspace/spaces/space-timeline.js +2 -2
- package/package.json +67 -10
- package/skills/kortix-ui/SKILL.md +2 -2
- package/skills/kortix-ui/references/modules.md +5 -3
- package/dist/session/thread/turn-share.d.ts +0 -16
- package/dist/session/thread/turn-share.js +0 -161
- package/dist/workspace/sidebar/footer/promo-nav-row.d.ts +0 -11
- package/dist/workspace/sidebar/footer/promo-nav-row.js +0 -7
- /package/dist/markdown/{code/inline-chip.d.ts → inline-chip.d.ts} +0 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { evalJobScore, evalTrialScore, } from '@kortix/sdk';
|
|
2
|
+
import { adminPath } from '../../lib/routes.js';
|
|
3
|
+
/**
|
|
4
|
+
* The Evals group of Customize: Overview, Datasets, Tasks, Jobs. A dataset is
|
|
5
|
+
* a suite of kortix.yaml or a dataset by name (built-in or Harbor registry);
|
|
6
|
+
* its URL is `/admin/eval-datasets/suite/<name>` or
|
|
7
|
+
* `/admin/eval-datasets/dataset/<org>/<name>?version=`.
|
|
8
|
+
*/
|
|
9
|
+
export const evalsHref = (projectId) => adminPath(projectId, 'evals');
|
|
10
|
+
export const evalDatasetsHref = (projectId) => adminPath(projectId, 'eval-datasets');
|
|
11
|
+
export const evalTasksHref = (projectId) => adminPath(projectId, 'eval-tasks');
|
|
12
|
+
export const evalJobsHref = (projectId) => adminPath(projectId, 'eval-jobs');
|
|
13
|
+
export const evalJobHref = (projectId, jobId, trialId) => `${evalJobsHref(projectId)}/${encodeURIComponent(jobId)}${trialId ? `?trial=${encodeURIComponent(trialId)}` : ''}`;
|
|
14
|
+
/** Jobs side by side; the first is the baseline. */
|
|
15
|
+
export const evalCompareHref = (projectId, jobIds) => `${evalJobsHref(projectId)}/compare?jobs=${jobIds.map(encodeURIComponent).join(',')}`;
|
|
16
|
+
export const datasetKey = (ref) => ref.kind === 'suite' ? `suite:${ref.name}` : `dataset:${ref.name}`;
|
|
17
|
+
/** `smoke`, or `kortix/my-kortix@1.0`: how a dataset is named in text. */
|
|
18
|
+
export const datasetLabel = (ref) => ref.kind === 'dataset' && ref.version ? `${ref.name}@${ref.version}` : ref.name;
|
|
19
|
+
export const evalDatasetHref = (projectId, ref, tab) => {
|
|
20
|
+
const path = ref.name.split('/').map(encodeURIComponent).join('/');
|
|
21
|
+
const query = new URLSearchParams({
|
|
22
|
+
...(ref.kind === 'dataset' && ref.version ? { version: ref.version } : {}),
|
|
23
|
+
...(tab ? { tab } : {}),
|
|
24
|
+
}).toString();
|
|
25
|
+
return `${evalDatasetsHref(projectId)}/${ref.kind}/${path}${query ? `?${query}` : ''}`;
|
|
26
|
+
};
|
|
27
|
+
/** The route's catch-all segments (`suite/<name>`, `dataset/<org>/<name>`) back to a ref. */
|
|
28
|
+
export function parseDatasetSegments(segments, version) {
|
|
29
|
+
const [kind, ...rest] = segments.map((segment) => decodeURIComponent(segment));
|
|
30
|
+
const name = rest.join('/');
|
|
31
|
+
if (!name)
|
|
32
|
+
return null;
|
|
33
|
+
if (kind === 'suite')
|
|
34
|
+
return { kind, name };
|
|
35
|
+
if (kind === 'dataset')
|
|
36
|
+
return { kind, name, version };
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
/** A task opens with the dataset it was reached from, for the breadcrumb and New job. */
|
|
40
|
+
export const evalTaskHref = (projectId, taskId, from) => {
|
|
41
|
+
const query = from
|
|
42
|
+
? `?${new URLSearchParams({ from: from.kind === 'dataset' && from.version ? `${datasetKey(from)}@${from.version}` : datasetKey(from) }).toString()}`
|
|
43
|
+
: '';
|
|
44
|
+
return `${evalTasksHref(projectId)}/${encodeURIComponent(taskId)}${query}`;
|
|
45
|
+
};
|
|
46
|
+
/** `suite:smoke` or `dataset:kortix/my-kortix@1.0` (the `from` of a task link) back to a ref. */
|
|
47
|
+
export function parseDatasetKey(value) {
|
|
48
|
+
if (!value)
|
|
49
|
+
return null;
|
|
50
|
+
const at = value.indexOf(':');
|
|
51
|
+
const kind = value.slice(0, at);
|
|
52
|
+
const rest = value.slice(at + 1);
|
|
53
|
+
if (!rest)
|
|
54
|
+
return null;
|
|
55
|
+
if (kind === 'suite')
|
|
56
|
+
return { kind, name: rest };
|
|
57
|
+
if (kind !== 'dataset')
|
|
58
|
+
return null;
|
|
59
|
+
const version = rest.lastIndexOf('@');
|
|
60
|
+
return version > 0 ? { kind, name: rest.slice(0, version), version: rest.slice(version + 1) } : { kind, name: rest };
|
|
61
|
+
}
|
|
62
|
+
/** The dataset a job ran: its suite, else its first named dataset. Null for a job on a repository path. */
|
|
63
|
+
export function jobDataset(job) {
|
|
64
|
+
if (job.suite)
|
|
65
|
+
return { kind: 'suite', name: job.suite };
|
|
66
|
+
const named = job.config.datasets?.find((source) => source.name);
|
|
67
|
+
return named?.name ? { kind: 'dataset', name: named.name, version: named.version ?? null } : null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* The `kortix evals run` command for a dataset (and a task of it). A suite
|
|
71
|
+
* names its own agents; a dataset needs one, so the command names the first
|
|
72
|
+
* agent the caller has, else a placeholder.
|
|
73
|
+
*/
|
|
74
|
+
export function runCommand(ref, options = {}) {
|
|
75
|
+
const task = options.task ? ` --task ${shellWord(options.task)}` : '';
|
|
76
|
+
if (ref.kind === 'suite')
|
|
77
|
+
return `kortix evals run ${shellWord(ref.name)}${task}`;
|
|
78
|
+
return `kortix evals run --dataset ${shellWord(datasetLabel(ref))}${task} --agent ${shellWord(options.agent || '<agent>')}`;
|
|
79
|
+
}
|
|
80
|
+
const shellWord = (value) => (/^[A-Za-z0-9@%+=:,./_-]+$/.test(value) ? value : `'${value.replace(/'/g, `'\\''`)}'`);
|
|
81
|
+
/** `1.2k`, `3.4M`: a token count in short units. */
|
|
82
|
+
export function shortCount(value) {
|
|
83
|
+
if (value === null || value === undefined)
|
|
84
|
+
return '—';
|
|
85
|
+
if (value < 1000)
|
|
86
|
+
return String(value);
|
|
87
|
+
const units = [
|
|
88
|
+
[1e9, 'B'],
|
|
89
|
+
[1e6, 'M'],
|
|
90
|
+
[1e3, 'k'],
|
|
91
|
+
];
|
|
92
|
+
const [size, unit] = units.find(([n]) => value >= n);
|
|
93
|
+
return `${(Math.round((value / size) * 10) / 10).toString()}${unit}`;
|
|
94
|
+
}
|
|
95
|
+
/** `$0.42`, `$12.30`, or an em dash with no cost. Under a cent shows `<$0.01`. */
|
|
96
|
+
export function usd(value) {
|
|
97
|
+
if (value === null || value === undefined)
|
|
98
|
+
return '—';
|
|
99
|
+
if (value > 0 && value < 0.01)
|
|
100
|
+
return '<$0.01';
|
|
101
|
+
return `$${value.toFixed(2)}`;
|
|
102
|
+
}
|
|
103
|
+
/** `42 s`, `3 m 05 s`, `1 h 02 m`: the time between two instants, or an em dash. */
|
|
104
|
+
export function duration(from, to, now = Date.now()) {
|
|
105
|
+
if (!from)
|
|
106
|
+
return '—';
|
|
107
|
+
const ms = (to ? Date.parse(to) : now) - Date.parse(from);
|
|
108
|
+
if (!Number.isFinite(ms) || ms < 0)
|
|
109
|
+
return '—';
|
|
110
|
+
const s = Math.round(ms / 1000);
|
|
111
|
+
if (s < 60)
|
|
112
|
+
return `${s} s`;
|
|
113
|
+
const m = Math.floor(s / 60);
|
|
114
|
+
if (m < 60)
|
|
115
|
+
return `${m} m ${String(s % 60).padStart(2, '0')} s`;
|
|
116
|
+
return `${Math.floor(m / 60)} h ${String(m % 60).padStart(2, '0')} m`;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* The 95% interval half-width of a pass rate over `n` valid trials (normal
|
|
120
|
+
* approximation): two runs whose intervals overlap are not a clear change.
|
|
121
|
+
*/
|
|
122
|
+
export function passInterval(rate, n) {
|
|
123
|
+
if (rate === null || rate === undefined || n < 2)
|
|
124
|
+
return null;
|
|
125
|
+
return 1.96 * Math.sqrt((rate * (1 - rate)) / n);
|
|
126
|
+
}
|
|
127
|
+
/** `82.5%`, or an em dash with no value. */
|
|
128
|
+
export const percent = (value) => value === null || value === undefined ? '—' : `${Math.round(value * 1000) / 10}%`;
|
|
129
|
+
export const isOpenJob = (job) => job.status === 'queued' || job.status === 'running';
|
|
130
|
+
/** `agent` or `agent @ model`: the one label an agent × model goes by on every surface. */
|
|
131
|
+
export const agentLabel = (agent, model) => model ? `${agent} @ ${model}` : agent;
|
|
132
|
+
/** What one trial's cell shows. */
|
|
133
|
+
export function trialTone(trial) {
|
|
134
|
+
if (trial.status === 'cancelled')
|
|
135
|
+
return 'cancelled';
|
|
136
|
+
if (trial.status === 'queued')
|
|
137
|
+
return 'queued';
|
|
138
|
+
if (trial.status === 'starting' ||
|
|
139
|
+
trial.status === 'agent_running' ||
|
|
140
|
+
trial.status === 'verifying')
|
|
141
|
+
return 'running';
|
|
142
|
+
const { passed, score } = evalTrialScore(trial);
|
|
143
|
+
if (score === null)
|
|
144
|
+
return trial.exception ? 'error' : 'fail';
|
|
145
|
+
return passed ? 'pass' : 'fail';
|
|
146
|
+
}
|
|
147
|
+
/** The last run of each attempt stands for it: a retry replaces the run before it. */
|
|
148
|
+
export function latestRuns(trials) {
|
|
149
|
+
const last = new Map();
|
|
150
|
+
for (const trial of trials) {
|
|
151
|
+
const key = `${trial.task_name}\u0000${trial.agent}\u0000${trial.model ?? ''}\u0000${trial.attempt}`;
|
|
152
|
+
const seen = last.get(key);
|
|
153
|
+
if (!seen || seen.retry < trial.retry)
|
|
154
|
+
last.set(key, trial);
|
|
155
|
+
}
|
|
156
|
+
return [...last.values()];
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* What a job measured: its suite, else (a job started without one) its first
|
|
160
|
+
* source: a registry dataset `terminal-bench@2.0`, or a repository path.
|
|
161
|
+
*/
|
|
162
|
+
export function jobSource(job) {
|
|
163
|
+
if (job.suite)
|
|
164
|
+
return job.suite;
|
|
165
|
+
const git = [...(job.config.tasks ?? []), ...(job.config.datasets ?? [])].find((source) => source.git_url);
|
|
166
|
+
if (git?.git_url) {
|
|
167
|
+
const repo = git.git_url
|
|
168
|
+
.replace(/\.git$/, '')
|
|
169
|
+
.split('/')
|
|
170
|
+
.slice(-1)[0];
|
|
171
|
+
return git.path ? `${repo}:${git.path}` : repo;
|
|
172
|
+
}
|
|
173
|
+
const dataset = job.config.datasets?.find((source) => source.name);
|
|
174
|
+
if (dataset?.name)
|
|
175
|
+
return dataset.version ? `${dataset.name}@${dataset.version}` : dataset.name;
|
|
176
|
+
return job.config.tasks?.[0]?.path ?? job.config.datasets?.[0]?.path ?? '—';
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* One row per suite × agent × model: the score of its latest completed job,
|
|
180
|
+
* and the change against the completed job before it. `jobs` is newest first.
|
|
181
|
+
*/
|
|
182
|
+
export function leaderboard(jobs) {
|
|
183
|
+
const series = new Map();
|
|
184
|
+
for (const job of jobs) {
|
|
185
|
+
if (job.status !== 'completed')
|
|
186
|
+
continue;
|
|
187
|
+
for (const stats of job.stats.agents) {
|
|
188
|
+
if (stats.n_trials === 0)
|
|
189
|
+
continue;
|
|
190
|
+
const source = stats.source ? `${jobSource(job)} · ${stats.source}` : jobSource(job);
|
|
191
|
+
const key = `${source}\u0000${stats.agent}\u0000${stats.model ?? ''}`;
|
|
192
|
+
// Pass@1, else (graded rewards) the mean of the first metric over its keys, as `evalJobScore` reads it.
|
|
193
|
+
const metric = Object.values(stats.metrics[0] ?? {});
|
|
194
|
+
const value = stats.pass_at_k['1'] ?? (metric.length ? metric.reduce((a, b) => a + b, 0) / metric.length : null);
|
|
195
|
+
series.set(key, [...(series.get(key) ?? []), { job, passAt1: value, n: stats.n_trials }]);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
const rows = [];
|
|
199
|
+
for (const [key, runs] of series) {
|
|
200
|
+
const [suite, agent, model] = key.split('\u0000');
|
|
201
|
+
const [latest, previous] = runs;
|
|
202
|
+
rows.push({
|
|
203
|
+
suite,
|
|
204
|
+
dataset: jobDataset(latest.job),
|
|
205
|
+
agent,
|
|
206
|
+
model: model || null,
|
|
207
|
+
passAt1: latest.passAt1,
|
|
208
|
+
n: latest.n,
|
|
209
|
+
change: previous && latest.passAt1 !== null && previous.passAt1 !== null
|
|
210
|
+
? latest.passAt1 - previous.passAt1
|
|
211
|
+
: null,
|
|
212
|
+
jobs: runs.length,
|
|
213
|
+
lastJob: latest.job,
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
return rows.sort((a, b) => a.suite.localeCompare(b.suite) || (b.passAt1 ?? -1) - (a.passAt1 ?? -1));
|
|
217
|
+
}
|
|
218
|
+
/** Rank by score within one board, tied rows sharing a rank (`1, 2, 2, 4`). */
|
|
219
|
+
export function ranked(rows) {
|
|
220
|
+
const sorted = [...rows].sort((a, b) => (b.passAt1 ?? -1) - (a.passAt1 ?? -1));
|
|
221
|
+
let rank = 0;
|
|
222
|
+
return sorted.map((row, i) => {
|
|
223
|
+
if (i === 0 || sorted[i - 1].passAt1 !== row.passAt1)
|
|
224
|
+
rank = i + 1;
|
|
225
|
+
return { ...row, rank };
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
export { evalJobScore, evalTrialScore };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type EvalDatasetRef } from './eval-meta.js';
|
|
2
|
+
/**
|
|
3
|
+
* Customize → Evals → Tasks → one task (`/admin/eval-tasks/<task_id>`), the
|
|
4
|
+
* Harbor Hub's task page: the name and tags, New job on this task alone, the
|
|
5
|
+
* CLI command, then Instruction, README, Files (a tree and the file) and
|
|
6
|
+
* Results (every run of this task here, per agent × model).
|
|
7
|
+
*/
|
|
8
|
+
export declare function EvalTaskView({ projectId, taskId, from, }: {
|
|
9
|
+
projectId: string;
|
|
10
|
+
taskId: string;
|
|
11
|
+
/** The dataset the task was opened from: the breadcrumb and New job name it. */
|
|
12
|
+
from: EvalDatasetRef | null;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useVisibleAgents, useWorkspaceEvalSuites, useWorkspaceEvalTask, useWorkspaceEvalTaskFile, useWorkspaceEvalTaskResults, } from '@kortix/sdk/react';
|
|
4
|
+
import { PlayIcon, TextAlignLeftIcon } from '@phosphor-icons/react';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { useTranslations } from '../../i18n/index.js';
|
|
7
|
+
import { cn } from '../../internal/lib/utils.js';
|
|
8
|
+
import { UnifiedMarkdown } from '../../markdown/index.js';
|
|
9
|
+
import { HighlightedCode } from '../../markdown/code/index.js';
|
|
10
|
+
import { CopyButton } from '../../markdown/copy-button.js';
|
|
11
|
+
import { Alert, AlertDescription, AlertTitle } from '../../primitives/alert.js';
|
|
12
|
+
import { Button } from '../../primitives/button.js';
|
|
13
|
+
import { EmptyState } from '../../primitives/empty-state.js';
|
|
14
|
+
import { ErrorState } from '../../primitives/error-state.js';
|
|
15
|
+
import { FileTree, FileTreeNav } from '../../primitives/file-tree.js';
|
|
16
|
+
import { Hint } from '../../primitives/hint.js';
|
|
17
|
+
import { LocalTime } from '../../primitives/local-time.js';
|
|
18
|
+
import { Skeleton } from '../../primitives/skeleton.js';
|
|
19
|
+
import { StatusBadge } from '../../primitives/status.js';
|
|
20
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '../../primitives/table.js';
|
|
21
|
+
import { Tabs, TabsContent, TabsList, TabsTrigger } from '../../primitives/tabs.js';
|
|
22
|
+
import { Tag } from '../../primitives/tag.js';
|
|
23
|
+
import { UiLink as Link, useUiRouter } from '../../providers/ui-provider.js';
|
|
24
|
+
import { isMarkdownPath, languageForPath } from '../shared/entity/entity-files.js';
|
|
25
|
+
import { isNoFileAccess } from './eval-dataset-view.js';
|
|
26
|
+
import { agentLabel, datasetLabel, evalDatasetHref, evalJobHref, evalTasksHref, evalTrialScore, percent, runCommand, } from './eval-meta.js';
|
|
27
|
+
import { EVAL_FRAME, EVAL_TIME, EvalDetailPage, EvalTitle, RunCommand, SectionTitle, ShareButton, useUrlTab, } from './eval-ui.js';
|
|
28
|
+
import { RunEvalModal } from './run-eval-modal.js';
|
|
29
|
+
const TABS = ['instruction', 'readme', 'files', 'results'];
|
|
30
|
+
/** `1.2 KB`: a file size. */
|
|
31
|
+
const bytes = (n) => n < 1024 ? `${n} B` : n < 1024 * 1024 ? `${Math.round(n / 102.4) / 10} KB` : `${Math.round(n / 104857.6) / 10} MB`;
|
|
32
|
+
/** A result's tone, as a trial cell reads it. */
|
|
33
|
+
function resultTone(result) {
|
|
34
|
+
if (result.status === 'cancelled')
|
|
35
|
+
return 'cancelled';
|
|
36
|
+
if (result.status === 'queued')
|
|
37
|
+
return 'queued';
|
|
38
|
+
if (result.status === 'starting' || result.status === 'agent_running' || result.status === 'verifying')
|
|
39
|
+
return 'running';
|
|
40
|
+
const { passed, score } = evalTrialScore(result);
|
|
41
|
+
if (score === null)
|
|
42
|
+
return result.exception_type ? 'error' : 'fail';
|
|
43
|
+
return passed ? 'pass' : 'fail';
|
|
44
|
+
}
|
|
45
|
+
const TONE_BADGE = {
|
|
46
|
+
pass: 'success',
|
|
47
|
+
fail: 'destructive',
|
|
48
|
+
error: 'warning',
|
|
49
|
+
running: 'info',
|
|
50
|
+
queued: 'neutral',
|
|
51
|
+
cancelled: 'neutral',
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Customize → Evals → Tasks → one task (`/admin/eval-tasks/<task_id>`), the
|
|
55
|
+
* Harbor Hub's task page: the name and tags, New job on this task alone, the
|
|
56
|
+
* CLI command, then Instruction, README, Files (a tree and the file) and
|
|
57
|
+
* Results (every run of this task here, per agent × model).
|
|
58
|
+
*/
|
|
59
|
+
export function EvalTaskView({ projectId, taskId, from, }) {
|
|
60
|
+
const t = useTranslations('evals');
|
|
61
|
+
const detail = useWorkspaceEvalTask(projectId, taskId);
|
|
62
|
+
const results = useWorkspaceEvalTaskResults(projectId, taskId);
|
|
63
|
+
const suites = useWorkspaceEvalSuites(from?.kind === 'suite' ? projectId : null);
|
|
64
|
+
const agents = useVisibleAgents({ projectId });
|
|
65
|
+
const [running, setRunning] = useState(false);
|
|
66
|
+
const task = detail.data?.task;
|
|
67
|
+
const readme = detail.data?.readme ?? null;
|
|
68
|
+
const tabs = TABS.filter((tab) => tab !== 'readme' || !!readme);
|
|
69
|
+
const [tab, setTab] = useUrlTab(tabs);
|
|
70
|
+
const firstAgent = agents.find((agent) => agent.name !== 'kortix')?.name ?? null;
|
|
71
|
+
const notFound = detail.isError && detail.error?.status === 404;
|
|
72
|
+
const crumbs = [
|
|
73
|
+
{ label: t('tasksTitle'), href: evalTasksHref(projectId) },
|
|
74
|
+
...(from ? [{ label: datasetLabel(from), href: evalDatasetHref(projectId, from, 'tasks') }] : []),
|
|
75
|
+
{ label: task?.name ?? '…' },
|
|
76
|
+
];
|
|
77
|
+
return (_jsxs(EvalDetailPage, { crumbs: crumbs, children: [from && task ? (_jsx(RunEvalModal, { projectId: projectId, suites: suites.data ?? [], target: { ...from, tasks: [task.name] }, open: running, onOpenChange: setRunning })) : null, notFound ? (_jsx(EmptyState, { size: "sm", title: t('taskNotFound'), action: _jsx(Button, { asChild: true, size: "sm", variant: "outline", children: _jsx(Link, { href: evalTasksHref(projectId), children: t('tasksTitle') }) }) })) : detail.isError ? (_jsx(ErrorState, { size: "sm", title: isNoFileAccess(detail.error) ? t('noFileAccess') : t('loadError'), description: isNoFileAccess(detail.error) ? t('noFileAccessDescription') : undefined, action: isNoFileAccess(detail.error) ? undefined : (_jsx(Button, { size: "sm", variant: "outline", onClick: () => detail.refetch(), children: t('retry') })) })) : !task ? (_jsxs("div", { className: "flex flex-col gap-3", "aria-busy": true, children: [_jsx(Skeleton, { className: "h-7 w-72" }), _jsx(Skeleton, { className: "h-4 w-96" }), _jsx(Skeleton, { className: "h-60 w-full rounded-md" })] })) : (_jsxs(_Fragment, { children: [_jsxs("header", { className: "flex flex-wrap items-start justify-between gap-x-4 gap-y-3", children: [_jsx(EvalTitle, { name: task.name, description: _jsx("span", { className: "flex flex-wrap items-center gap-1.5 pt-0.5", children: [task.category, task.difficulty, ...task.tags]
|
|
78
|
+
.filter((value) => !!value)
|
|
79
|
+
.map((value) => (_jsx(Tag, { children: value }, value))) }) }), _jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsx(ShareButton, {}), from ? (_jsxs(Button, { size: "sm", className: "gap-1.5", disabled: !!task.unsupported, onClick: () => setRunning(true), "data-testid": "evals-task-run", children: [_jsx(PlayIcon, { weight: "fill", className: "size-3.5 shrink-0", "aria-hidden": true }), t('runThisTask')] })) : null] })] }), task.unsupported ? (_jsxs(Alert, { children: [_jsx(AlertTitle, { children: t('unsupported') }), _jsx(AlertDescription, { children: task.unsupported })] })) : null, from ? _jsx(RunCommand, { command: runCommand(from, { agent: firstAgent, task: task.name }) }) : null, _jsxs("dl", { className: "text-muted-foreground grid grid-cols-2 gap-x-6 gap-y-1 text-xs sm:grid-cols-4", "data-testid": "evals-task-facts", children: [_jsx(Fact, { label: t('agentTimeout'), value: `${task.agent_timeout_sec} s` }), _jsx(Fact, { label: t('verifierTimeout'), value: `${task.verifier_timeout_sec} s` }), _jsx(Fact, { label: t('environment'), value: task.environment ?? t('defaultSandbox'), mono: true }), _jsx(Fact, { label: t('solution'), value: task.has_solution ? t('yes') : t('no') })] }), _jsxs(Tabs, { value: tab, onValueChange: (value) => setTab(value), children: [_jsx(TabsList, { className: "w-fit", children: tabs.map((value) => (_jsxs(TabsTrigger, { value: value, "data-testid": `evals-tab-${value}`, children: [t(`taskTab.${value}`), value === 'files' ? (_jsx("span", { className: "text-muted-foreground ml-1 tabular-nums", children: detail.data.files.length })) : value === 'results' && results.data ? (_jsx("span", { className: "text-muted-foreground ml-1 tabular-nums", children: results.data.results.length })) : null] }, value))) }), _jsx(TabsContent, { value: "instruction", className: "pt-4", children: _jsx("article", { className: `${EVAL_FRAME} px-6 py-5`, "data-testid": "evals-task-instruction", children: _jsx(UnifiedMarkdown, { content: task.instruction, trust: "untrusted", variant: "document" }) }) }), readme ? (_jsx(TabsContent, { value: "readme", className: "pt-4", children: _jsx("article", { className: `${EVAL_FRAME} px-6 py-5`, children: _jsx(UnifiedMarkdown, { content: readme, trust: "untrusted", variant: "document" }) }) })) : null, _jsx(TabsContent, { value: "files", className: "pt-4", children: _jsx(TaskFiles, { projectId: projectId, taskId: taskId, files: detail.data.files }) }), _jsx(TabsContent, { value: "results", className: "pt-4", children: _jsx(TaskResults, { projectId: projectId, query: results }) })] })] }))] }));
|
|
80
|
+
}
|
|
81
|
+
function Fact({ label, value, mono }) {
|
|
82
|
+
return (_jsxs("div", { className: "flex min-w-0 flex-col gap-0.5", children: [_jsx("dt", { children: label }), _jsx("dd", { className: cn('text-foreground truncate', mono && 'font-mono'), title: value, children: value })] }));
|
|
83
|
+
}
|
|
84
|
+
/** The Hub's file browser: the folder's tree on the left, one file on the right with size, wrap and copy. */
|
|
85
|
+
function TaskFiles({ projectId, taskId, files, }) {
|
|
86
|
+
const t = useTranslations('evals');
|
|
87
|
+
// Every file by its path, the folder's own files first (instruction.md, task.toml), then each folder's.
|
|
88
|
+
const nodes = files
|
|
89
|
+
.map((f) => f.path)
|
|
90
|
+
.sort((a, b) => Number(a.includes('/')) - Number(b.includes('/')) || a.localeCompare(b))
|
|
91
|
+
.map((path) => ({ path, name: path, depth: 0 }));
|
|
92
|
+
const first = files.find((f) => f.path === 'instruction.md') ?? files.find((f) => f.path === 'tests/test.sh') ?? files[0];
|
|
93
|
+
const [picked, setPicked] = useState(null);
|
|
94
|
+
const [wrap, setWrap] = useState(false);
|
|
95
|
+
const path = picked && files.some((f) => f.path === picked) ? picked : (first?.path ?? null);
|
|
96
|
+
const file = useWorkspaceEvalTaskFile(projectId, taskId, path);
|
|
97
|
+
const size = files.find((f) => f.path === path)?.size ?? null;
|
|
98
|
+
if (files.length === 0) {
|
|
99
|
+
return _jsx("div", { className: `${EVAL_FRAME} text-muted-foreground px-4 py-6 text-center text-sm`, children: t('noFiles') });
|
|
100
|
+
}
|
|
101
|
+
return (_jsxs("div", { className: cn(EVAL_FRAME, 'grid min-h-96 md:grid-cols-[minmax(12rem,16rem)_1fr]'), "data-testid": "evals-task-files", children: [_jsx("div", { className: "border-border overflow-y-auto border-b p-2 md:max-h-[36rem] md:border-r md:border-b-0", children: _jsx(FileTree, { title: _jsx("span", { className: "text-xs", children: t('filesCount', { count: files.length }) }), children: _jsx(FileTreeNav, { nodes: nodes, selectedPath: path ?? undefined, onSelect: setPicked, label: t('files') }) }) }), _jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsxs("div", { className: "border-border flex items-center gap-2 border-b px-3 py-1.5", children: [_jsx("span", { className: "text-foreground min-w-0 flex-1 truncate font-mono text-xs", "data-testid": "evals-file-path", children: path }), size !== null ? _jsx("span", { className: "text-muted-foreground shrink-0 text-xs tabular-nums", children: bytes(size) }) : null, _jsx(Hint, { label: wrap ? t('noWrap') : t('wrap'), children: _jsx(Button, { size: "icon-sm", variant: wrap ? 'secondary' : 'ghost', "aria-label": wrap ? t('noWrap') : t('wrap'), "aria-pressed": wrap, onClick: () => setWrap(!wrap), children: _jsx(TextAlignLeftIcon, { className: "size-3.5" }) }) }), file.data !== undefined ? _jsx(CopyButton, { code: file.data, label: t('copyFile'), size: "sm" }) : null] }), _jsx("div", { className: "min-h-0 flex-1 overflow-auto md:max-h-[33rem]", children: file.isLoading ? (_jsxs("div", { className: "flex flex-col gap-2 p-4", "aria-busy": true, children: [_jsx(Skeleton, { className: "h-4 w-full" }), _jsx(Skeleton, { className: "h-4 w-10/12" }), _jsx(Skeleton, { className: "h-4 w-9/12" })] })) : file.isError ? (_jsx("p", { className: "text-muted-foreground p-4 text-sm", children: t('fileLoadError') })) : path && isMarkdownPath(path) ? (_jsx("div", { className: "px-5 py-4", children: _jsx(UnifiedMarkdown, { content: file.data ?? '', trust: "untrusted", variant: "document" }) })) : (_jsx("pre", { className: cn('text-foreground p-4 font-mono text-xs', wrap ? 'wrap-break-word whitespace-pre-wrap' : 'overflow-x-auto', '[&_code]:border-none [&_code]:bg-transparent [&_code]:p-0 [&_code]:text-inherit', '[&_.shiki]:!bg-transparent [&_span]:border-none [&_span]:!bg-transparent', wrap && '[&_code]:!whitespace-pre-wrap'), children: _jsx(HighlightedCode, { code: file.data ?? '', language: languageForPath(path ?? '') }) })) })] })] }));
|
|
102
|
+
}
|
|
103
|
+
/** Every run of this task here: one summary row per agent × model, then each run, newest first. */
|
|
104
|
+
function TaskResults({ projectId, query, }) {
|
|
105
|
+
const t = useTranslations('evals');
|
|
106
|
+
const router = useUiRouter();
|
|
107
|
+
if (query.isLoading)
|
|
108
|
+
return _jsx(Skeleton, { className: "h-40 w-full rounded-md" });
|
|
109
|
+
if (query.isError)
|
|
110
|
+
return (_jsx(ErrorState, { size: "sm", title: t('loadError'), action: _jsx(Button, { size: "sm", variant: "outline", onClick: () => query.refetch(), children: t('retry') }) }));
|
|
111
|
+
const { results = [], summary = [] } = query.data ?? {};
|
|
112
|
+
if (results.length === 0)
|
|
113
|
+
return (_jsx("div", { className: `${EVAL_FRAME} text-muted-foreground px-4 py-6 text-center text-sm`, "data-testid": "evals-task-no-results", children: t('noTaskResults') }));
|
|
114
|
+
return (_jsxs("div", { className: "flex flex-col gap-6", "data-testid": "evals-task-results", children: [_jsxs("section", { className: "flex flex-col gap-3", children: [_jsx(SectionTitle, { title: t('byAgent'), info: t('byAgentInfo') }), _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: t('colAgent') }), _jsx(TableHead, { className: "text-right", children: t('colPassRate') }), _jsx(TableHead, { className: "text-right", children: t('colMeanReward') }), _jsx(TableHead, { className: "text-right", children: t('colAttempts') })] }) }), _jsx(TableBody, { children: summary.map((row) => (_jsxs(TableRow, { children: [_jsx(TableCell, { className: "max-w-64 truncate font-medium", children: agentLabel(row.agent, row.model) }), _jsx(TableCell, { className: "text-right font-medium tabular-nums", children: row.n ? percent(row.n_passed / row.n) : '—' }), _jsx(TableCell, { className: "text-muted-foreground text-right tabular-nums", children: row.mean_reward === null ? '—' : row.mean_reward.toFixed(2) }), _jsx(TableCell, { className: "text-muted-foreground text-right tabular-nums", children: `${row.n_passed}/${row.n}` })] }, `${row.agent}-${row.model}`))) })] })] }), _jsxs("section", { className: "flex flex-col gap-3", children: [_jsx(SectionTitle, { title: t('runs') }), _jsxs(Table, { children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: t('colJob') }), _jsx(TableHead, { className: "hidden sm:table-cell", children: t('colAgent') }), _jsx(TableHead, { children: t('colResult') }), _jsx(TableHead, { className: "hidden text-right sm:table-cell", children: t('colReward') }), _jsx(TableHead, { className: "hidden text-right md:table-cell", children: t('colFinished') })] }) }), _jsx(TableBody, { children: results.map((result) => {
|
|
115
|
+
const tone = resultTone(result);
|
|
116
|
+
const href = evalJobHref(projectId, result.job_id, result.trial_id);
|
|
117
|
+
return (_jsxs(TableRow, { className: "hover:bg-hover cursor-pointer", onClick: () => router.push(href), "data-testid": "evals-task-result-row", children: [_jsxs(TableCell, { className: "max-w-64", children: [_jsx(Link, { href: href, className: "text-foreground block truncate", onClick: (e) => e.stopPropagation(), children: result.job_name }), result.attempt > 1 ? (_jsx("span", { className: "text-muted-foreground text-xs", children: t('attempt', { n: result.attempt }) })) : null] }), _jsx(TableCell, { className: "text-muted-foreground hidden max-w-56 truncate sm:table-cell", children: agentLabel(result.agent, result.model) }), _jsx(TableCell, { children: _jsx(StatusBadge, { tone: TONE_BADGE[tone], children: t(`tone.${tone}`) }) }), _jsx(TableCell, { className: "text-muted-foreground hidden text-right font-mono text-xs tabular-nums sm:table-cell", children: result.rewards
|
|
118
|
+
? Object.entries(result.rewards)
|
|
119
|
+
.map(([key, value]) => `${key} ${value}`)
|
|
120
|
+
.join(' · ')
|
|
121
|
+
: (result.exception_type ?? '—') }), _jsx(TableCell, { className: "text-muted-foreground hidden text-right md:table-cell", children: result.finished_at ? _jsx(LocalTime, { value: result.finished_at, options: EVAL_TIME }) : '—' })] }, result.trial_id));
|
|
122
|
+
}) })] })] })] }));
|
|
123
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Customize → Evals → Tasks: every task of the suites of kortix.yaml and of
|
|
3
|
+
* Kortix's built-in datasets, in one searchable table. A Harbor registry
|
|
4
|
+
* dataset holds up to thousands of tasks: its tasks list on its own page.
|
|
5
|
+
*/
|
|
6
|
+
export declare function EvalTasksPage({ projectId }: {
|
|
7
|
+
projectId: string;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useWorkspaceEvalDatasets, useWorkspaceEvalSuites, useWorkspaceEvalTaskCatalog, } from '@kortix/sdk/react';
|
|
4
|
+
import { ListChecksIcon } from '@phosphor-icons/react';
|
|
5
|
+
import { useMemo, useState } from 'react';
|
|
6
|
+
import { useTranslations } from '../../i18n/index.js';
|
|
7
|
+
import { Button } from '../../primitives/button.js';
|
|
8
|
+
import { EmptyState } from '../../primitives/empty-state.js';
|
|
9
|
+
import { PageSearchBar } from '../../primitives/page-search-bar.js';
|
|
10
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '../../primitives/select.js';
|
|
11
|
+
import { Skeleton } from '../../primitives/skeleton.js';
|
|
12
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '../../primitives/table.js';
|
|
13
|
+
import { Tag } from '../../primitives/tag.js';
|
|
14
|
+
import { UiLink as Link, useUiRouter } from '../../providers/ui-provider.js';
|
|
15
|
+
import { CapabilityPageShell } from '../shared/capability-page-shell.js';
|
|
16
|
+
import { isNoFileAccess } from './eval-dataset-view.js';
|
|
17
|
+
import { datasetKey, evalDatasetHref, evalDatasetsHref, evalTaskHref, } from './eval-meta.js';
|
|
18
|
+
import { InfoHint, ListFooter } from './eval-ui.js';
|
|
19
|
+
const ALL = '__all__';
|
|
20
|
+
/**
|
|
21
|
+
* Customize → Evals → Tasks: every task of the suites of kortix.yaml and of
|
|
22
|
+
* Kortix's built-in datasets, in one searchable table. A Harbor registry
|
|
23
|
+
* dataset holds up to thousands of tasks: its tasks list on its own page.
|
|
24
|
+
*/
|
|
25
|
+
export function EvalTasksPage({ projectId }) {
|
|
26
|
+
const t = useTranslations('evals');
|
|
27
|
+
const router = useUiRouter();
|
|
28
|
+
const suites = useWorkspaceEvalSuites(projectId);
|
|
29
|
+
const datasets = useWorkspaceEvalDatasets(projectId);
|
|
30
|
+
const [search, setSearch] = useState('');
|
|
31
|
+
const [only, setOnly] = useState(ALL);
|
|
32
|
+
const refs = useMemo(() => [
|
|
33
|
+
...(suites.data ?? []).filter((s) => s.config).map((s) => ({ kind: 'suite', name: s.name })),
|
|
34
|
+
...(datasets.data?.datasets ?? [])
|
|
35
|
+
.filter((d) => d.kind === 'builtin')
|
|
36
|
+
.map((d) => ({ kind: 'dataset', name: d.name, version: d.version })),
|
|
37
|
+
], [suites.data, datasets.data]);
|
|
38
|
+
const sources = useMemo(() => refs.map((ref) => ref.kind === 'suite' ? { suite: ref.name } : { dataset: ref.name, version: ref.version ?? null }), [refs]);
|
|
39
|
+
const lists = useWorkspaceEvalTaskCatalog(projectId, sources);
|
|
40
|
+
const rows = refs.flatMap((ref, i) => (lists[i]?.data?.tasks ?? []).map((task) => ({ ref, task })));
|
|
41
|
+
const loading = suites.isLoading || datasets.isLoading || lists.some((list) => list.isLoading);
|
|
42
|
+
const denied = lists.length > 0 && lists.every((list) => list.isError && isNoFileAccess(list.error));
|
|
43
|
+
const needle = search.trim().toLowerCase();
|
|
44
|
+
const shown = rows.filter(({ ref, task }) => (only === ALL || datasetKey(ref) === only) &&
|
|
45
|
+
(!needle ||
|
|
46
|
+
task.name.toLowerCase().includes(needle) ||
|
|
47
|
+
ref.name.toLowerCase().includes(needle) ||
|
|
48
|
+
(task.category ?? '').toLowerCase().includes(needle) ||
|
|
49
|
+
task.tags.some((tag) => tag.toLowerCase().includes(needle))));
|
|
50
|
+
return (_jsx(CapabilityPageShell, { title: t('tasksTitle'), description: t('tasksDescription'), titleAddon: _jsx(InfoHint, { text: t('tasksInfo') }), search: _jsx(PageSearchBar, { value: search, onChange: setSearch, placeholder: t('searchAllTasks') }), filters: refs.length > 1 ? (_jsxs(Select, { value: only, onValueChange: setOnly, children: [_jsx(SelectTrigger, { size: "sm", className: "w-52", "aria-label": t('colDataset'), "data-testid": "evals-tasks-dataset", children: _jsx(SelectValue, {}) }), _jsxs(SelectContent, { children: [_jsx(SelectItem, { value: ALL, children: t('allDatasets') }), refs.map((ref) => (_jsx(SelectItem, { value: datasetKey(ref), children: ref.name }, datasetKey(ref))))] })] })) : undefined, children: loading ? (_jsx("div", { className: "flex flex-col gap-2", "aria-busy": true, children: [0, 1, 2, 3, 4].map((i) => (_jsx(Skeleton, { className: "h-10 w-full rounded-md" }, i))) })) : denied ? (_jsx(EmptyState, { size: "sm", media: _jsx(ListChecksIcon, { className: "text-muted-foreground size-6" }), title: t('noFileAccess'), description: t('noFileAccessDescription') })) : shown.length === 0 ? (_jsx(EmptyState, { size: "sm", media: _jsx(ListChecksIcon, { className: "text-muted-foreground size-6" }), title: needle ? t('noTaskMatch') : t('noTasks'), description: needle ? undefined : t('noTasksHint'), action: needle ? (_jsx(Button, { size: "sm", variant: "outline", onClick: () => setSearch(''), children: t('clearSearch') })) : (_jsx(Button, { asChild: true, size: "sm", variant: "outline", children: _jsx(Link, { href: evalDatasetsHref(projectId), children: t('browseDatasets') }) })) })) : (_jsxs("div", { className: "flex flex-col gap-3", children: [_jsxs(Table, { "data-testid": "evals-all-tasks", children: [_jsx(TableHeader, { children: _jsxs(TableRow, { children: [_jsx(TableHead, { children: t('colTask') }), _jsx(TableHead, { children: t('colDataset') }), _jsx(TableHead, { className: "hidden md:table-cell", children: t('colCategory') }), _jsx(TableHead, { className: "hidden lg:table-cell", children: t('colDifficulty') })] }) }), _jsx(TableBody, { children: shown.map(({ ref, task }) => (_jsx(TaskRow, { projectId: projectId, dataset: ref, task: task, onOpen: (href) => router.push(href) }, `${datasetKey(ref)}-${task.task_id}`))) })] }), _jsxs(ListFooter, { children: [t('displayingTasks', { shown: shown.length, total: rows.length }), ` · ${t('registryTasksHint')}`] })] })) }));
|
|
51
|
+
}
|
|
52
|
+
function TaskRow({ projectId, dataset, task, onOpen, }) {
|
|
53
|
+
const t = useTranslations('evals');
|
|
54
|
+
const href = evalTaskHref(projectId, task.task_id, dataset);
|
|
55
|
+
return (_jsxs(TableRow, { className: "hover:bg-hover cursor-pointer", onClick: () => onOpen(href), "data-testid": "evals-task-row", children: [_jsx(TableCell, { className: "max-w-80", children: _jsxs("span", { className: "flex min-w-0 items-center gap-2", children: [_jsx(Link, { href: href, className: "text-foreground truncate font-mono text-sm", onClick: (e) => e.stopPropagation(), children: task.name }), task.unsupported ? _jsx(Tag, { title: task.unsupported, children: t('unsupported') }) : null] }) }), _jsx(TableCell, { className: "max-w-48 truncate", children: _jsx(Link, { href: evalDatasetHref(projectId, dataset), className: "text-muted-foreground hover:text-foreground font-mono text-xs", onClick: (e) => e.stopPropagation(), children: dataset.name }) }), _jsx(TableCell, { className: "text-muted-foreground hidden text-sm md:table-cell", children: task.category ?? '—' }), _jsx(TableCell, { className: "text-muted-foreground hidden text-sm lg:table-cell", children: task.difficulty ?? '—' })] }));
|
|
56
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pieces every Evals page shares: the frame, the breadcrumb, the copy and
|
|
3
|
+
* share controls, the run command, the job and leaderboard tables, and the
|
|
4
|
+
* progress bar of a job.
|
|
5
|
+
*/
|
|
6
|
+
import type { WorkspaceEvalJob } from '@kortix/sdk';
|
|
7
|
+
import { type ReactNode } from 'react';
|
|
8
|
+
import { type StatusTone } from '../../primitives/status.js';
|
|
9
|
+
import { type LeaderboardRow } from './eval-meta.js';
|
|
10
|
+
/** The frame of a list or a matrix: the one the `Table` primitive draws, so every block matches. */
|
|
11
|
+
export declare const EVAL_FRAME = "border-border bg-popover overflow-hidden rounded-md border";
|
|
12
|
+
/** A job's time: day and minute, in the viewer's zone. */
|
|
13
|
+
export declare const EVAL_TIME: Intl.DateTimeFormatOptions;
|
|
14
|
+
/** The tone of a job's status: green when every trial ended clean, orange with errors. */
|
|
15
|
+
export declare function jobTone(job: Pick<WorkspaceEvalJob, 'status' | 'stats'>): StatusTone;
|
|
16
|
+
/** The `i` beside a title: one explanation, on hover and on focus. */
|
|
17
|
+
export declare function InfoHint({ text }: {
|
|
18
|
+
text: string;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
export declare function SectionTitle({ title, info, action, }: {
|
|
21
|
+
title: string;
|
|
22
|
+
info?: string;
|
|
23
|
+
action?: ReactNode;
|
|
24
|
+
}): import("react").JSX.Element;
|
|
25
|
+
/** The page below a section of the Evals group: a scroll column with the breadcrumb on top. */
|
|
26
|
+
export declare function EvalDetailPage({ crumbs, children, wide, }: {
|
|
27
|
+
crumbs: Array<{
|
|
28
|
+
label: string;
|
|
29
|
+
href?: string;
|
|
30
|
+
}>;
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
wide?: boolean;
|
|
33
|
+
}): import("react").JSX.Element;
|
|
34
|
+
export declare function EvalBreadcrumb({ crumbs }: {
|
|
35
|
+
crumbs: Array<{
|
|
36
|
+
label: string;
|
|
37
|
+
href?: string;
|
|
38
|
+
}>;
|
|
39
|
+
}): import("react").JSX.Element;
|
|
40
|
+
/** The title of a dataset, a task or a job: monospace, the name copied with one click. */
|
|
41
|
+
export declare function EvalTitle({ name, badge, description, }: {
|
|
42
|
+
name: string;
|
|
43
|
+
badge?: ReactNode;
|
|
44
|
+
description?: ReactNode;
|
|
45
|
+
}): import("react").JSX.Element;
|
|
46
|
+
/** Copies the page's link. */
|
|
47
|
+
export declare function ShareButton(): import("react").JSX.Element;
|
|
48
|
+
/** One shell command with a copy button: how to run the same thing from the Kortix CLI. */
|
|
49
|
+
export declare function RunCommand({ command }: {
|
|
50
|
+
command: string;
|
|
51
|
+
}): import("react").JSX.Element;
|
|
52
|
+
/** A score with its 95% interval: `82.5% ± 6.1`. */
|
|
53
|
+
export declare function ScoreValue({ rate, n }: {
|
|
54
|
+
rate: number | null | undefined;
|
|
55
|
+
n: number;
|
|
56
|
+
}): import("react").JSX.Element;
|
|
57
|
+
/** A change in points, with an arrow: green up, red down. */
|
|
58
|
+
export declare function Change({ value }: {
|
|
59
|
+
value: number | null;
|
|
60
|
+
}): import("react").JSX.Element;
|
|
61
|
+
/** Trial counts of a job: the done share as a bar, errors in orange. */
|
|
62
|
+
export declare function JobProgress({ job, className }: {
|
|
63
|
+
job: WorkspaceEvalJob;
|
|
64
|
+
className?: string;
|
|
65
|
+
}): import("react").JSX.Element;
|
|
66
|
+
/** `12/40 · 2 errors`: ended trials over all, with the errors. */
|
|
67
|
+
export declare function trialCount(job: WorkspaceEvalJob): string;
|
|
68
|
+
/**
|
|
69
|
+
* The jobs table of the Overview, a dataset's Jobs tab and the Jobs page. With
|
|
70
|
+
* `selected`, each row has a checkbox (Compare picks two or more).
|
|
71
|
+
*/
|
|
72
|
+
export declare function JobsTable({ projectId, jobs, selected, onSelect, showDataset, }: {
|
|
73
|
+
projectId: string;
|
|
74
|
+
jobs: WorkspaceEvalJob[];
|
|
75
|
+
selected?: ReadonlySet<string>;
|
|
76
|
+
onSelect?: (jobId: string, on: boolean) => void;
|
|
77
|
+
showDataset?: boolean;
|
|
78
|
+
}): import("react").JSX.Element;
|
|
79
|
+
/**
|
|
80
|
+
* The leaderboard: one row per dataset × agent × model, ranked by score with
|
|
81
|
+
* ties sharing a rank, the score's 95% interval, and the change since the job
|
|
82
|
+
* before. A row opens its latest job.
|
|
83
|
+
*/
|
|
84
|
+
export declare function LeaderboardTable({ projectId, rows, showDataset, }: {
|
|
85
|
+
projectId: string;
|
|
86
|
+
rows: LeaderboardRow[];
|
|
87
|
+
showDataset?: boolean;
|
|
88
|
+
}): import("react").JSX.Element;
|
|
89
|
+
/**
|
|
90
|
+
* A tab kept in the URL (`?tab=`), so a copied link opens the same tab. The
|
|
91
|
+
* first of `tabs` is the default and is left out of the URL.
|
|
92
|
+
*/
|
|
93
|
+
export declare function useUrlTab<T extends string>(tabs: readonly T[]): [T, (tab: T) => void];
|
|
94
|
+
/** A short line under a tab's table: `Displaying 12 of 40 tasks`. */
|
|
95
|
+
export declare function ListFooter({ children }: {
|
|
96
|
+
children: ReactNode;
|
|
97
|
+
}): import("react").JSX.Element;
|