@kortix/ui 0.16.0 → 0.16.2
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 +157 -51
- package/dist/_vendor/shared/index.d.ts +1 -0
- package/dist/_vendor/shared/space-icon.d.ts +30 -0
- package/dist/_vendor/shared/space-slug.d.ts +12 -0
- package/dist/access/access/access-dialog.js +2 -2
- package/dist/access/share-dialog.d.ts +77 -0
- package/dist/access/share-dialog.js +160 -0
- package/dist/access/sharing-picker.d.ts +8 -1
- package/dist/access/sharing-picker.js +2 -2
- package/dist/changes/change-list.js +3 -3
- package/dist/customize/connectors/catalog/catalog-paging.d.ts +1 -1
- package/dist/customize/connectors/catalog/catalog-paging.js +1 -1
- package/dist/customize/providers/provider-sheet.js +17 -7
- package/dist/customize/sections/component/manifest-copy-block.js +1 -1
- package/dist/customize/sections/component/section-wrapper.d.ts +1 -8
- package/dist/customize/sections/component/section-wrapper.js +3 -3
- package/dist/customize/sections/llm-provider/model-capability-icons.js +1 -1
- package/dist/customize/sections/view/gateway/generation-controls.js +1 -1
- package/dist/customize/sections/view/git-view.js +1 -1
- package/dist/customize/settings/settings-tabs.js +0 -5
- package/dist/customize/settings/tabs/general-tab.js +2 -2
- package/dist/customize/shared/capability-page-shell.d.ts +2 -2
- package/dist/customize/shared/capability-page-shell.js +7 -5
- package/dist/customize/shared/capability-scroll-root.js +1 -2
- package/dist/customize/shared/catalog/catalog-card.js +1 -1
- package/dist/files/project/components/change-requests-panel.js +2 -2
- package/dist/files/project/components/checkpoint-detail-dialog.js +4 -4
- package/dist/files/project/components/checkpoints-panel.js +2 -2
- package/dist/files/project/components/drive-explorer.js +2 -2
- package/dist/files/project/components/file-breadcrumbs.js +1 -1
- package/dist/files/project/components/file-history-popover.js +2 -2
- package/dist/files/project/components/file-thumbnail.js +1 -1
- package/dist/files/project/components/open-change-request-dialog.js +1 -1
- package/dist/files/renderers/mermaid/mermaid-diagram.js +2 -2
- package/dist/files/renderers/show-content-renderer.js +6 -6
- package/dist/files/renderers/sqlite-renderer.js +8 -8
- package/dist/files/renderers/zip/zip-renderer.js +2 -2
- package/dist/files/viewer/file-content-renderer.js +5 -5
- package/dist/files/viewer/json-tree-view.js +3 -3
- package/dist/i18n/en.d.ts +133 -8
- package/dist/i18n/en.js +170 -45
- package/dist/i18n/ui-catalog/remaining-ui-translation-keys.generated.js +0 -3
- package/dist/internal/billing/use-cost-explorer.d.ts +9 -2
- package/dist/internal/billing/use-cost-explorer.js +22 -0
- package/dist/internal/billing/use-session-costs.d.ts +7 -2
- package/dist/internal/billing/use-session-costs.js +6 -0
- package/dist/internal/chrome/use-chrome-offered.d.ts +3 -3
- package/dist/internal/chrome/use-chrome-offered.js +3 -3
- package/dist/internal/components/nav-rail.d.ts +1 -20
- package/dist/internal/components/nav-rail.js +1 -15
- package/dist/internal/layout/project-page-header.d.ts +13 -9
- package/dist/internal/layout/project-page-header.js +14 -10
- package/dist/internal/lib/browser-noise/evidence.d.ts +2 -0
- package/dist/internal/lib/browser-noise/rules/injected-scripts.js +16 -1
- package/dist/internal/lib/error-handler.js +0 -9
- package/dist/internal/lib/interface-theme-defaults.js +2 -2
- package/dist/internal/lib/project-actions.d.ts +4 -5
- package/dist/internal/lib/project-actions.js +3 -5
- package/dist/internal/lib/project-preamble.d.ts +42 -4
- package/dist/internal/lib/project-preamble.js +49 -5
- package/dist/internal/lib/web-notifications.js +17 -29
- package/dist/internal/outcomes/outcome-vocabulary.js +1 -1
- package/dist/internal/stores/session-filter-store.d.ts +1 -1
- package/dist/internal/stores/user-preferences-store.d.ts +2 -2
- package/dist/internal/stores/workspace-settings-rail-store.d.ts +0 -8
- package/dist/internal/stores/workspace-settings-rail-store.js +0 -2
- package/dist/lib/routes.d.ts +7 -0
- package/dist/lib/routes.js +6 -1
- package/dist/markdown/doc-editor/doc-extensions.js +2 -0
- package/dist/markdown/doc-editor/doc-paste.d.ts +13 -0
- package/dist/markdown/doc-editor/doc-paste.js +67 -0
- package/dist/markdown/markdown-frontmatter.js +3 -3
- package/dist/markdown/markdown-policy.d.ts +1 -1
- package/dist/markdown/ordered-list.js +1 -1
- package/dist/primitives/context-menu.d.ts +1 -0
- package/dist/primitives/definition-list.js +1 -1
- package/dist/primitives/dropdown-menu.d.ts +1 -0
- package/dist/primitives/emoji-picker.js +1 -1
- package/dist/primitives/expandable-search.d.ts +57 -0
- package/dist/primitives/expandable-search.js +58 -0
- package/dist/primitives/favicon-avatar.js +1 -1
- package/dist/primitives/file-tree.d.ts +1 -1
- package/dist/primitives/file-tree.js +1 -1
- package/dist/primitives/glyph-picker.js +2 -2
- package/dist/primitives/input-group.js +1 -1
- package/dist/primitives/menu-base.d.ts +10 -0
- package/dist/primitives/menu-base.js +7 -2
- package/dist/primitives/phone-input.js +1 -1
- package/dist/primitives/profile-hover-card.d.ts +28 -0
- package/dist/primitives/profile-hover-card.js +22 -0
- package/dist/primitives/settings-section-header.d.ts +5 -5
- package/dist/primitives/settings-section-header.js +5 -5
- package/dist/primitives/sort-menu.d.ts +23 -0
- package/dist/primitives/sort-menu.js +54 -0
- package/dist/primitives/tabs.js +1 -1
- package/dist/primitives/toast-clearance.d.ts +12 -28
- package/dist/primitives/toast-clearance.js +23 -45
- package/dist/primitives/user-avatar.js +2 -3
- package/dist/session/agents/subagent-dialog-content.js +28 -70
- package/dist/session/composer/ComposerCard.d.ts +4 -1
- package/dist/session/composer/ComposerCard.js +51 -7
- package/dist/session/composer/composer-chat-input.js +3 -1
- package/dist/session/composer/composer-toolbar.d.ts +3 -1
- package/dist/session/composer/composer-toolbar.js +6 -2
- package/dist/session/composer/composer-underbar.d.ts +3 -1
- package/dist/session/composer/composer-underbar.js +2 -2
- package/dist/session/composer/composer.d.ts +12 -0
- package/dist/session/composer/composer.js +112 -6
- package/dist/session/composer/draft/composer-draft.d.ts +1 -0
- package/dist/session/composer/draft/composer-draft.js +10 -2
- package/dist/session/composer/draft/draft-uploads.js +13 -2
- package/dist/session/composer/draft/use-composer-draft.d.ts +2 -0
- package/dist/session/composer/draft/use-composer-draft.js +41 -6
- package/dist/session/composer/drive-mentions.d.ts +34 -0
- package/dist/session/composer/drive-mentions.js +98 -0
- package/dist/session/composer/editor/composer-editor.d.ts +3 -0
- package/dist/session/composer/editor/composer-editor.js +3 -1
- package/dist/session/composer/editor/serialize.js +3 -4
- package/dist/session/composer/menus/mention-controller.d.ts +3 -0
- package/dist/session/composer/menus/mention-controller.js +5 -0
- package/dist/session/composer/menus/mention-menu.d.ts +20 -3
- package/dist/session/composer/menus/mention-menu.js +33 -6
- package/dist/session/composer/menus/menu-items.d.ts +16 -1
- package/dist/session/composer/menus/menu-items.js +21 -1
- package/dist/session/composer/submit-latch.d.ts +3 -1
- package/dist/session/composer/submit-latch.js +5 -1
- package/dist/session/composer/types.d.ts +9 -2
- package/dist/session/header/session-changes-indicator.js +1 -1
- package/dist/session/header/session-site-header.js +2 -2
- package/dist/session/media/sandbox-url-detector.js +3 -3
- package/dist/session/models/model-connection-gate.d.ts +5 -0
- package/dist/session/models/model-connection-gate.js +12 -3
- package/dist/session/models/model-connection-layout.d.ts +7 -0
- package/dist/session/models/model-connection-layout.js +7 -0
- package/dist/session/models/provider-failure-recovery.js +1 -1
- package/dist/session/models/subscription-offer.d.ts +6 -5
- package/dist/session/models/subscription-offer.js +6 -6
- package/dist/session/panel/advanced/advanced-panel.js +1 -1
- package/dist/session/panel/session-detail-panel.js +1 -1
- package/dist/session/panel/session-diff-viewer.js +1 -1
- package/dist/session/panel/session-files-explorer.js +1 -1
- package/dist/session/panel/session-files-panel.js +3 -3
- package/dist/session/panel/shared/action-navigator.js +1 -1
- package/dist/session/status/provisioning-failure.d.ts +4 -4
- package/dist/session/status/provisioning-failure.js +4 -4
- package/dist/session/status/session-busy-indicator.js +1 -1
- package/dist/session/status/session-error-banner.js +6 -1
- package/dist/session/thread/mention-chip.d.ts +1 -1
- package/dist/session/thread/mention-segments.d.ts +4 -2
- package/dist/session/thread/mention-segments.js +28 -1
- package/dist/session/thread/message-parsing.d.ts +11 -0
- package/dist/session/thread/message-parsing.js +22 -3
- package/dist/session/thread/optimistic-turn.d.ts +4 -2
- package/dist/session/thread/optimistic-turn.js +13 -11
- package/dist/session/thread/session-chat.js +6 -1
- package/dist/session/thread/session-context-message-explorer.js +1 -1
- package/dist/session/thread/session-older-autoload.d.ts +2 -3
- package/dist/session/thread/session-older-autoload.js +2 -3
- package/dist/session/thread/transcript.js +8 -10
- package/dist/session/tool/shared/error-and-connector.js +1 -1
- package/dist/session/tool/shared/file-list.js +2 -2
- package/dist/session/tool/shared/infrastructure-parts.js +1 -1
- package/dist/session/tool/shared/infrastructure-preview.js +1 -1
- package/dist/session/tool/shared/infrastructure-row-header.js +3 -3
- package/dist/session/tool/shared/infrastructure-rows.js +2 -2
- package/dist/session/tool/shared/output-block.js +4 -4
- package/dist/session/tool/shared/session-helpers.js +3 -3
- package/dist/session/tool/shared/structured-output.js +3 -3
- package/dist/session/tool/shared/todo-helpers.js +1 -1
- package/dist/session/tool/tool-error.js +2 -2
- package/dist/session/tool/tools/agent-spawn-tool.js +3 -3
- package/dist/session/tool/tools/agent-status-tool.js +1 -1
- package/dist/session/tool/tools/apply-patch-tool.js +1 -1
- package/dist/session/tool/tools/connector-get-tool.js +1 -1
- package/dist/session/tool/tools/connector-list-tool.js +1 -1
- package/dist/session/tool/tools/connector-tools.js +1 -1
- package/dist/session/tool/tools/edit-tool.js +1 -1
- package/dist/session/tool/tools/get-mem-tool.js +1 -1
- package/dist/session/tool/tools/glob-tool.js +1 -1
- package/dist/session/tool/tools/image-search-tool.js +1 -1
- package/dist/session/tool/tools/memory-search-tool.js +1 -1
- package/dist/session/tool/tools/memory-tool.js +4 -4
- package/dist/session/tool/tools/presentation-gen-tool.js +2 -2
- package/dist/session/tool/tools/project-delete-tool.js +1 -1
- package/dist/session/tool/tools/project-list-tool.js +1 -1
- package/dist/session/tool/tools/pty-read-tool.js +1 -1
- package/dist/session/tool/tools/pty-spawn-tool.js +1 -1
- package/dist/session/tool/tools/pty-write-tool.js +1 -1
- package/dist/session/tool/tools/read-tool.js +1 -1
- package/dist/session/tool/tools/removed-connector-tool.js +1 -1
- package/dist/session/tool/tools/scrape-webpage-tool.js +1 -1
- package/dist/session/tool/tools/session-get-tool.js +3 -3
- package/dist/session/tool/tools/session-list-background-tool.js +1 -1
- package/dist/session/tool/tools/session-read-tool.js +1 -1
- package/dist/session/tool/tools/session-search-tool.js +1 -1
- package/dist/session/tool/tools/session-spawn-tool.js +1 -1
- package/dist/session/tool/tools/skill-tool.js +1 -1
- package/dist/session/tool/tools/todo-write-tool.js +1 -1
- package/dist/session/tool/tools/web-fetch-tool.js +1 -1
- package/dist/session/tool/tools/write-tool.js +1 -1
- package/dist/session/turn/activity-file-chips.js +7 -3
- package/dist/session/turn/activity-step.js +1 -1
- package/dist/session/turn/burst-summary-trigger.js +3 -3
- package/dist/session/turn/chain-step-trigger.js +1 -1
- package/dist/session/turn/plan-card.js +1 -1
- package/dist/session/turn/thought-chain-step.js +1 -1
- package/dist/session/turn/turn-work-accordion.js +1 -1
- package/dist/session/turn/user-message.js +13 -6
- package/dist/session/voice/use-call-card-position.d.ts +30 -0
- package/dist/session/voice/use-call-card-position.js +126 -0
- package/dist/session/voice/voice-call-card.js +10 -3
- package/dist/styles/theme.css +12 -0
- package/dist/styles/tokens.css +12 -6
- package/dist/styles.css +1 -1
- package/dist/terminal/session-terminal-panel.js +1 -1
- package/dist/test-utils/intl.d.ts +133 -8
- package/dist/workspace/admin/project-admin-dashboard.js +7 -24
- package/dist/workspace/calendar/calendar-page.js +1 -1
- package/dist/workspace/home/first-chat.d.ts +4 -3
- package/dist/workspace/home/first-chat.js +6 -6
- package/dist/workspace/home/welcome-body.js +2 -2
- package/dist/workspace/index.d.ts +1 -1
- package/dist/workspace/index.js +1 -1
- package/dist/workspace/layout/project-home.js +11 -4
- package/dist/workspace/layout/use-project-home-send.d.ts +3 -1
- package/dist/workspace/layout/use-project-home-send.js +6 -2
- package/dist/workspace/memory/company-memory-page.js +2 -4
- package/dist/workspace/new/github-source.js +0 -1
- package/dist/workspace/new/new-workspace-form.d.ts +0 -1
- package/dist/workspace/new/new-workspace-form.js +0 -3
- package/dist/workspace/new/use-create-workspace.d.ts +1 -1
- package/dist/workspace/new/use-create-workspace.js +1 -2
- package/dist/workspace/session-spaces/space-detail-page.d.ts +35 -0
- package/dist/workspace/session-spaces/space-detail-page.js +307 -0
- package/dist/workspace/session-spaces/space-form-modal.d.ts +16 -0
- package/dist/workspace/session-spaces/space-form-modal.js +92 -0
- package/dist/workspace/session-spaces/space-icon.d.ts +36 -0
- package/dist/workspace/session-spaces/space-icon.js +52 -0
- package/dist/workspace/session-spaces/space-people.d.ts +51 -0
- package/dist/workspace/session-spaces/space-people.js +91 -0
- package/dist/workspace/session-spaces/space-picker.d.ts +11 -0
- package/dist/workspace/session-spaces/space-picker.js +42 -0
- package/dist/workspace/session-spaces/space-share-modal.d.ts +14 -0
- package/dist/workspace/session-spaces/space-share-modal.js +93 -0
- package/dist/workspace/session-spaces/spaces-page.d.ts +8 -0
- package/dist/workspace/session-spaces/spaces-page.js +125 -0
- package/dist/workspace/sessions/session-owner-filters.d.ts +2 -0
- package/dist/workspace/sessions/session-owner-filters.js +2 -0
- package/dist/workspace/setup/setup-banner.d.ts +4 -0
- package/dist/workspace/setup/setup-banner.js +57 -0
- package/dist/workspace/setup/setup-steps.d.ts +14 -0
- package/dist/workspace/setup/setup-steps.js +15 -0
- package/dist/workspace/setup/use-setup-steps.d.ts +18 -0
- package/dist/workspace/setup/use-setup-steps.js +57 -0
- package/dist/workspace/setup/workspace-setup-page.js +8 -41
- package/dist/workspace/sidebar/footer/project-artifacts-nav.js +1 -1
- package/dist/workspace/sidebar/footer/project-promo-cards.d.ts +7 -2
- package/dist/workspace/sidebar/footer/project-promo-cards.js +4 -3
- package/dist/workspace/sidebar/footer/project-sandbox-alert.js +1 -1
- package/dist/workspace/sidebar/footer/promo-card.d.ts +10 -1
- package/dist/workspace/sidebar/footer/promo-card.js +31 -2
- package/dist/workspace/sidebar/footer/sandbox-health.js +1 -1
- package/dist/workspace/sidebar/modal/session-people-picker.d.ts +13 -0
- package/dist/workspace/sidebar/modal/session-people-picker.js +72 -0
- package/dist/workspace/sidebar/modal/share-session-modal.js +2 -1
- package/dist/workspace/sidebar/project-nav-items.d.ts +1 -3
- package/dist/workspace/sidebar/project-nav-items.js +3 -8
- package/dist/workspace/sidebar/project-session-list.js +19 -12
- package/dist/workspace/sidebar/project-sidebar.js +13 -13
- package/dist/workspace/sidebar/project-spaces-nav.js +1 -2
- package/dist/workspace/sidebar/session-filter-menu.js +19 -13
- package/dist/workspace/sidebar/session-group-sections.d.ts +12 -12
- package/dist/workspace/sidebar/session-group-sections.js +56 -75
- package/dist/workspace/sidebar/sidebar-more-group.js +1 -1
- package/dist/workspace/sidebar/workspace-settings-sidebar-nav.js +2 -2
- package/dist/workspace/spaces/space-tabs.d.ts +26 -6
- package/dist/workspace/spaces/space-tabs.js +19 -8
- package/package.json +27 -31
- package/skills/kortix-ui/references/modules.md +2 -2
- package/dist/workspace/new/clone-param.d.ts +0 -11
- package/dist/workspace/new/clone-param.js +0 -15
- package/dist/workspace/new/provision-new-workspace.d.ts +0 -14
- package/dist/workspace/new/provision-new-workspace.js +0 -14
- package/dist/workspace/sidebar/footer/project-inbox-nav.d.ts +0 -8
- package/dist/workspace/sidebar/footer/project-inbox-nav.js +0 -29
|
@@ -99,7 +99,7 @@ export function ConnectorRiskBadge({ risk }) {
|
|
|
99
99
|
}
|
|
100
100
|
export function ConnectorJson({ value }) {
|
|
101
101
|
if (value == null || (typeof value === 'object' && Object.keys(value).length === 0)) {
|
|
102
|
-
return _jsx("span", { className: "text-muted-foreground
|
|
102
|
+
return _jsx("span", { className: "text-muted-foreground font-mono text-xs", children: '{}' });
|
|
103
103
|
}
|
|
104
104
|
const text = typeof value === 'string' ? value : JSON.stringify(value, null, 2);
|
|
105
105
|
return _jsx(OutputBlock, { text: text });
|
|
@@ -77,7 +77,7 @@ export function ToolListRow({ icon, name, dir, trailing, chevron, onClick, onNam
|
|
|
77
77
|
e.preventDefault();
|
|
78
78
|
rowAction();
|
|
79
79
|
}
|
|
80
|
-
: undefined, title: title, children: [chevron && (_jsx(ChevronRight, { className: cn('text-muted-foreground
|
|
80
|
+
: undefined, title: title, children: [chevron && (_jsx(ChevronRight, { className: cn('text-muted-foreground size-3.5 shrink-0 transition-transform', chevron === 'expanded' && 'rotate-90') })), _jsx("span", { className: "text-muted-foreground group-hover:text-foreground/70 shrink-0 transition-colors [&>svg]:size-4", children: icon }), _jsx("span", { className: cn('text-foreground min-w-0 flex-1 truncate font-mono text-sm', onNameClick && !disabled && 'hover:text-primary cursor-pointer transition-colors'), role: nameAction ? 'button' : undefined, tabIndex: nameAction ? 0 : undefined, onClick: nameAction
|
|
81
81
|
? (e) => {
|
|
82
82
|
e.stopPropagation();
|
|
83
83
|
nameAction();
|
|
@@ -103,6 +103,6 @@ export function InlineGrepResults({ groups, onFileClick, toDisplayPath, disabled
|
|
|
103
103
|
return (_jsx("div", { children: groups.map((group, i) => {
|
|
104
104
|
const dp = toDisplayPath(group.filePath);
|
|
105
105
|
const isExpanded = expandedIndex === i;
|
|
106
|
-
return (_jsxs("div", { children: [_jsx(ToolListRow, { icon: _jsx(FileText, {}), name: getFilename(dp) ?? dp, dir: getDirectory(dp), title: group.filePath, chevron: isExpanded ? 'expanded' : 'collapsed', trailing: group.matches.length, onClick: () => setExpandedIndex(isExpanded ? null : i), onNameClick: disabled ? undefined : () => onFileClick(group.filePath), disabled: disabled }), isExpanded && (_jsx("div", { className: "border-border/20 bg-muted/10 border-t", children: group.matches.map((match, j) => (_jsxs("div", { className: "border-border/10 flex items-start gap-0 border-b last:border-b-0", children: [_jsx("span", { className: "text-muted-foreground
|
|
106
|
+
return (_jsxs("div", { children: [_jsx(ToolListRow, { icon: _jsx(FileText, {}), name: getFilename(dp) ?? dp, dir: getDirectory(dp), title: group.filePath, chevron: isExpanded ? 'expanded' : 'collapsed', trailing: group.matches.length, onClick: () => setExpandedIndex(isExpanded ? null : i), onNameClick: disabled ? undefined : () => onFileClick(group.filePath), disabled: disabled }), isExpanded && (_jsx("div", { className: "border-border/20 bg-muted/10 border-t", children: group.matches.map((match, j) => (_jsxs("div", { className: "border-border/10 flex items-start gap-0 border-b last:border-b-0", children: [_jsx("span", { className: "text-muted-foreground w-10 shrink-0 py-1 pr-2 text-right font-mono text-xs select-none", children: match.line }), _jsx("span", { className: "text-foreground/70 py-1 pr-2 font-mono text-xs leading-relaxed break-all", children: match.content })] }, j))) }))] }, group.filePath));
|
|
107
107
|
}) }));
|
|
108
108
|
}
|
|
@@ -197,5 +197,5 @@ export function isTriggerTitle(val) {
|
|
|
197
197
|
typeof val.title === 'string');
|
|
198
198
|
}
|
|
199
199
|
export function ToolEmptyState({ message }) {
|
|
200
|
-
return (_jsxs("div", { className: "text-muted-foreground
|
|
200
|
+
return (_jsxs("div", { className: "text-muted-foreground flex items-center justify-center gap-1.5 px-3 py-3", children: [_jsx(Search, { className: "size-3" }), _jsx("span", { className: "text-xs", children: message })] }));
|
|
201
201
|
}
|
|
@@ -241,5 +241,5 @@ export function InlineServicePreview({ url, label }) {
|
|
|
241
241
|
const fill = useContext(ToolSurfaceContext) === 'panel';
|
|
242
242
|
const preview = useServicePreview(url, label);
|
|
243
243
|
const { displayLabel } = preview;
|
|
244
|
-
return (_jsxs("div", { className: cn('overflow-hidden', fill && 'flex h-full flex-col'), children: [_jsx("div", { className: "bg-muted/40 border-border/30 flex h-8 shrink-0 items-center gap-1.5 border-b px-2.5", children: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx(Globe, { className: "text-muted-foreground
|
|
244
|
+
return (_jsxs("div", { className: cn('overflow-hidden', fill && 'flex h-full flex-col'), children: [_jsx("div", { className: "bg-muted/40 border-border/30 flex h-8 shrink-0 items-center gap-1.5 border-b px-2.5", children: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx(Globe, { className: "text-muted-foreground h-3 w-3 shrink-0" }), _jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: displayLabel })] }) }), fill ? (_jsx("div", { className: "min-h-0 flex-1", children: _jsx(ServicePreviewViewport, { preview: preview }) })) : (_jsx(ServicePreviewViewport, { preview: preview }))] }));
|
|
245
245
|
}
|
|
@@ -14,7 +14,7 @@ import { isTriggerTitle } from './infrastructure-parts.js';
|
|
|
14
14
|
// `(0,1,0)`, and it silently repainted every toned leading icon. Excluding
|
|
15
15
|
// toned icons by attribute keeps the verdict icon's OWN class authoritative
|
|
16
16
|
// without an `!important` arms race inside a shared class.
|
|
17
|
-
export const TOOL_ROW_CLASS = cn('flex items-center gap-1.5 py-0.5', 'text-xs text-muted-foreground
|
|
17
|
+
export const TOOL_ROW_CLASS = cn('flex items-center gap-1.5 py-0.5', 'text-xs text-muted-foreground transition-colors select-none max-w-full group', '[&>span:first-child>svg]:size-4 [&>span:first-child>svg:not([data-tone])]:text-muted-foreground');
|
|
18
18
|
/**
|
|
19
19
|
* The leading icon for a step that failed.
|
|
20
20
|
*
|
|
@@ -76,7 +76,7 @@ function InlineTriggerTitle({ trigger, running, onSubtitleClick, }) {
|
|
|
76
76
|
e.stopPropagation();
|
|
77
77
|
onSubtitleClick();
|
|
78
78
|
}
|
|
79
|
-
: undefined, children: subtitle }))), trigger.stat && (_jsx(DiffStat, { additions: trigger.stat.additions, deletions: trigger.stat.deletions, className: "shrink-0 text-xs" })), args.length > 0 && (_jsxs(_Fragment, { children: [subtitle && _jsx("span", { className: "text-muted-foreground
|
|
79
|
+
: undefined, children: subtitle }))), trigger.stat && (_jsx(DiffStat, { additions: trigger.stat.additions, deletions: trigger.stat.deletions, className: "shrink-0 text-xs" })), args.length > 0 && (_jsxs(_Fragment, { children: [subtitle && _jsx("span", { className: "text-muted-foreground shrink-0", children: "\u00B7" }), _jsx("span", { className: "text-muted-foreground min-w-0 truncate text-sm", title: args.join(' · '), children: args.join(' · ') })] }))] }))] }));
|
|
80
80
|
}
|
|
81
81
|
// The full inline header line: icon, trigger content (or streaming skeleton), right cluster.
|
|
82
82
|
export function ToolHeaderRow({ icon, trigger, running, onSubtitleClick, outcome = 'ok', action, }) {
|
|
@@ -137,5 +137,5 @@ export function PanelRowTitle({ trigger, running, onSubtitleClick, }) {
|
|
|
137
137
|
e.stopPropagation();
|
|
138
138
|
onSubtitleClick();
|
|
139
139
|
}
|
|
140
|
-
: undefined, children: subtitle })), trigger.stat && (_jsx(DiffStat, { additions: trigger.stat.additions, deletions: trigger.stat.deletions, className: "shrink-0 text-xs" })), args.length > 0 && (_jsx("span", { className: "text-muted-foreground
|
|
140
|
+
: undefined, children: subtitle })), trigger.stat && (_jsx(DiffStat, { additions: trigger.stat.additions, deletions: trigger.stat.deletions, className: "shrink-0 text-xs" })), args.length > 0 && (_jsx("span", { className: "text-muted-foreground min-w-0 truncate font-mono text-xs", title: args.join(' · '), children: args.join(' · ') }))] }));
|
|
141
141
|
}
|
|
@@ -46,7 +46,7 @@ function PanelToolRow({ icon, trigger, children, running, badge, outcome, onSubt
|
|
|
46
46
|
// `text-overflow` only applies to inline text. Clipping is the intent:
|
|
47
47
|
// the row is one line, and an over-long node has to stop at the badge
|
|
48
48
|
// rather than push the chevron off the card.
|
|
49
|
-
_jsx("div", { className: "[&>span:first-child>svg]:text-muted-foreground text-foreground min-w-0 flex-1 truncate text-sm font-medium [&>span:first-child>svg]:size-4", children: trigger })), badge && (_jsx("span", { className: "text-muted-foreground
|
|
49
|
+
_jsx("div", { className: "[&>span:first-child>svg]:text-muted-foreground text-foreground min-w-0 flex-1 truncate text-sm font-medium [&>span:first-child>svg]:size-4", children: trigger })), badge && (_jsx("span", { className: "text-muted-foreground shrink-0 font-mono text-xs whitespace-nowrap tabular-nums", children: badge })), action && _jsx("span", { className: "flex shrink-0 items-center", children: action }), hasBody && (_jsx(CaretRightIcon, { "aria-hidden": true,
|
|
50
50
|
// CSS, not `motion` — the rotation is a 150ms state change on one
|
|
51
51
|
// property, and every row on the pane would otherwise carry a
|
|
52
52
|
// motion component. `motion-reduce` snaps it instead.
|
|
@@ -72,7 +72,7 @@ function ActivatableToolRow({ header, activate, }) {
|
|
|
72
72
|
e.preventDefault();
|
|
73
73
|
activate();
|
|
74
74
|
}
|
|
75
|
-
}, className: cn(TOOL_ROW_CLASS, 'cursor-pointer'), children: [header, _jsx(PanelRight, { className: "text-muted-foreground
|
|
75
|
+
}, className: cn(TOOL_ROW_CLASS, 'cursor-pointer'), children: [header, _jsx(PanelRight, { className: "text-muted-foreground size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-80", mirrored: true })] }));
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Inline row that expands/collapses its children in place (the default layout).
|
|
@@ -30,12 +30,12 @@ import { useState } from 'react';
|
|
|
30
30
|
* literals here stay.
|
|
31
31
|
*/
|
|
32
32
|
export function OutputBlock({ text, markdown = false, className, }) {
|
|
33
|
-
return (_jsx("div", { "data-scrollable": true, className: cn('bg-muted/20 max-h-96 overflow-auto rounded-sm px-3 py-2', className), children: markdown ? (_jsx(UnifiedMarkdown, { content: text, trust: "agent" })) : (_jsx("pre", { className: "text-muted-foreground
|
|
33
|
+
return (_jsx("div", { "data-scrollable": true, className: cn('bg-muted/20 max-h-96 overflow-auto rounded-sm px-3 py-2', className), children: markdown ? (_jsx(UnifiedMarkdown, { content: text, trust: "agent" })) : (_jsx("pre", { className: "text-muted-foreground font-mono text-xs wrap-break-word whitespace-pre-wrap", children: text })) }));
|
|
34
34
|
}
|
|
35
35
|
/** The one sanctioned section label (spec S1) — kills every ad-hoc
|
|
36
36
|
* sky/amber/connector uppercase treatment. */
|
|
37
37
|
export function ToolSection({ label, children, className, }) {
|
|
38
|
-
return (_jsxs("div", { className: cn('space-y-1', className), children: [_jsx("div", { className: "text-muted-foreground
|
|
38
|
+
return (_jsxs("div", { className: cn('space-y-1', className), children: [_jsx("div", { className: "text-muted-foreground text-[10px] font-medium tracking-wider uppercase", children: label }), children] }));
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* A {@link ToolSection} whose body is FOLDED AWAY until the reader asks for it.
|
|
@@ -61,11 +61,11 @@ export function ToolSection({ label, children, className, }) {
|
|
|
61
61
|
*/
|
|
62
62
|
export function FoldedSection({ label, children, defaultOpen = false, className, triggerClassName, }) {
|
|
63
63
|
const [open, setOpen] = useState(defaultOpen);
|
|
64
|
-
return (_jsxs(Disclosure, { open: open, onOpenChange: setOpen, className: cn('space-y-1', className), children: [_jsx(DisclosureTrigger, { children: _jsxs("div", { className: cn('text-muted-foreground
|
|
64
|
+
return (_jsxs(Disclosure, { open: open, onOpenChange: setOpen, className: cn('space-y-1', className), children: [_jsx(DisclosureTrigger, { children: _jsxs("div", { className: cn('text-muted-foreground hover:text-foreground flex w-full cursor-pointer items-center gap-1 text-left text-[10px] font-medium tracking-wider uppercase transition-colors', triggerClassName), children: [_jsx(CaretRightIcon, { "aria-hidden": true,
|
|
65
65
|
// CSS, not `motion`: one property, one state change, and a memory
|
|
66
66
|
// card can hold five of these at once.
|
|
67
67
|
className: cn('size-3 shrink-0 transition-transform motion-reduce:transition-none', open && 'rotate-90') }), label] }) }), _jsx(DisclosureContent, { children: _jsx("div", { className: "pt-1", children: children }) })] }));
|
|
68
68
|
}
|
|
69
69
|
export function ToolField({ label, value, mono = false, }) {
|
|
70
|
-
return (_jsxs("div", { className: "flex items-baseline gap-2 text-xs", children: [_jsx("span", { className: "text-muted-foreground
|
|
70
|
+
return (_jsxs("div", { className: "flex items-baseline gap-2 text-xs", children: [_jsx("span", { className: "text-muted-foreground shrink-0", children: label }), _jsx("span", { className: cn('text-foreground/80 min-w-0 truncate', mono && 'font-mono'), children: value })] }));
|
|
71
71
|
}
|
|
@@ -91,7 +91,7 @@ export function SessionMetadataList({ sessions }) {
|
|
|
91
91
|
href: sessionHref(s.id) ?? `/workspaces/${s.id}`,
|
|
92
92
|
}), className: cn('flex w-full items-start gap-2.5 rounded-md px-2.5 py-2 text-left', navigationEnabled
|
|
93
93
|
? 'hover:bg-muted/60 group cursor-pointer transition-colors'
|
|
94
|
-
: 'group cursor-default opacity-70 transition-colors'), children: [_jsx(MessageCircle, { className: "text-muted-foreground group-hover:text-foreground
|
|
94
|
+
: 'group cursor-default opacity-70 transition-colors'), children: [_jsx(MessageCircle, { className: "text-muted-foreground group-hover:text-foreground mt-0.5 size-3.5 shrink-0 transition-colors" }), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-0.5", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "text-foreground truncate text-xs font-medium", children: s.title }), s.summary && s.summary.files > 0 && (_jsxs("span", { className: "flex shrink-0 items-center gap-1.5 text-xs", children: [_jsx(DiffStat, { additions: s.summary.additions, deletions: s.summary.deletions }), _jsxs("span", { className: "text-muted-foreground", children: [s.summary.files, " ", tI18nComplete.raw('text3b9c358f36f0'), s.summary.files !== 1 ? 's' : ''] })] }))] }), _jsxs("div", { className: "text-muted-foreground flex items-center gap-2 text-xs", children: [_jsx("span", { className: "truncate font-mono", children: s.slug || s.id }), _jsx("span", { className: "shrink-0", children: _jsx(SessionTimeLabel, { timestamp: s.time.updated }) })] })] }), _jsx(ExternalLink, { className: "text-muted-foreground mt-1 size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-100" })] }, s.id)))] }));
|
|
95
95
|
}
|
|
96
96
|
export function InlineSessionMessagesList({ messages }) {
|
|
97
97
|
const tHardcodedUi = useTranslations('hardcodedUi');
|
|
@@ -101,10 +101,10 @@ export function InlineSessionMessagesList({ messages }) {
|
|
|
101
101
|
// tool's own `rounded-md` command card, and a 16px radius inside an
|
|
102
102
|
// 8px one reads as a pill dropped into a panel. The conformance
|
|
103
103
|
// sweep only scans `tool/tools/`, so this file never caught it.
|
|
104
|
-
'overflow-hidden rounded-md border', msg.role === 'user' ? 'border-border/60' : 'border-border/40'), children: [_jsxs("div", { className: cn('flex items-center gap-2 px-2.5 py-1', msg.role === 'user' ? 'bg-muted/50' : 'bg-card'), children: [_jsx("span", { className: cn('text-xs font-semibold tracking-wide uppercase', msg.role === 'user' ? STATUS_TEXT.info : STATUS_TEXT.success), children: msg.role }), _jsxs("span", { className: "text-muted-foreground
|
|
104
|
+
'overflow-hidden rounded-md border', msg.role === 'user' ? 'border-border/60' : 'border-border/40'), children: [_jsxs("div", { className: cn('flex items-center gap-2 px-2.5 py-1', msg.role === 'user' ? 'bg-muted/50' : 'bg-card'), children: [_jsx("span", { className: cn('text-xs font-semibold tracking-wide uppercase', msg.role === 'user' ? STATUS_TEXT.info : STATUS_TEXT.success), children: msg.role }), _jsxs("span", { className: "text-muted-foreground ml-auto text-xs", children: ["#", msg.index] }), msg.cost > 0 && (_jsx("span", { className: "text-muted-foreground text-xs tabular-nums", children: tCredits('creditCount', {
|
|
105
105
|
count: msg.cost * 100,
|
|
106
106
|
formatted: formatUsdAsCredits(msg.cost),
|
|
107
|
-
}) }))] }), _jsxs("div", { className: "px-2.5 py-1.5", children: [_jsxs("div", { className: "text-foreground/90 text-xs leading-relaxed wrap-break-word whitespace-pre-wrap", children: [msg.content.slice(0, 800), msg.content.length > 800 && (_jsxs("span", { className: "text-muted-foreground
|
|
107
|
+
}) }))] }), _jsxs("div", { className: "px-2.5 py-1.5", children: [_jsxs("div", { className: "text-foreground/90 text-xs leading-relaxed wrap-break-word whitespace-pre-wrap", children: [msg.content.slice(0, 800), msg.content.length > 800 && (_jsxs("span", { className: "text-muted-foreground", children: [' ', tHardcodedUi.raw('componentsSessionToolRenderers.line2350JsxTextTruncated')] }))] }), msg.tools && (_jsx("div", { className: "mt-1 flex flex-wrap items-center gap-1", children: msg.tools.split(',').map((t, i) => {
|
|
108
108
|
const trimmedTool = t.trim();
|
|
109
109
|
const nameMatch = trimmedTool.match(/^(\w+)\s*\((\w+)\)/);
|
|
110
110
|
const name = nameMatch?.[1] || trimmedTool;
|
|
@@ -30,11 +30,11 @@ export function StructuredOutput({ sections }) {
|
|
|
30
30
|
case 'warning':
|
|
31
31
|
return (_jsxs("div", { className: cn('flex items-start gap-2 rounded-md border px-2.5 py-1.5', STATUS_BORDER.warning, STATUS_BG.warning), children: [_jsx(WarningIcon, { className: cn('mt-0.5 size-4 shrink-0', STATUS_TEXT.warning) }), _jsx("p", { className: cn('font-mono text-xs leading-relaxed wrap-break-word', STATUS_TEXT.warning), children: section.text })] }, key));
|
|
32
32
|
case 'error':
|
|
33
|
-
return (_jsxs("div", { className: "bg-muted/40 border-border/60 flex items-start gap-2 rounded-md border px-2.5 py-1.5", children: [_jsx(Ban, { className: "text-muted-foreground
|
|
33
|
+
return (_jsxs("div", { className: "bg-muted/40 border-border/60 flex items-start gap-2 rounded-md border px-2.5 py-1.5", children: [_jsx(Ban, { className: "text-muted-foreground mt-0.5 size-3 shrink-0" }), _jsxs("div", { className: "min-w-0 flex-1", children: [section.errorType && (_jsx("span", { className: "text-muted-foreground text-xs font-semibold tracking-wider uppercase", children: section.errorType })), _jsx("p", { className: "text-muted-foreground font-mono text-xs leading-relaxed wrap-break-word", children: section.summary })] })] }, key));
|
|
34
34
|
case 'traceback':
|
|
35
|
-
return (_jsxs("div", { children: [_jsxs("button", { onClick: () => setShowTrace((v) => !v), className: "text-muted-foreground
|
|
35
|
+
return (_jsxs("div", { children: [_jsxs("button", { onClick: () => setShowTrace((v) => !v), className: "text-muted-foreground hover:text-foreground hover:bg-muted/30 flex w-full cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-left transition-colors", children: [_jsx(ChevronRight, { className: cn('size-3 shrink-0 transition-transform', showTrace && 'rotate-90') }), _jsx("span", { className: "text-xs font-medium", children: tHardcodedUi.raw('componentsSessionToolRenderers.line1597JsxTextStackTrace') }), _jsxs("span", { className: "text-muted-foreground ml-1 font-mono text-xs", children: [section.lines.length, " ", tHardcodedUi.raw('i18nComplete.text5ea44c3961f1')] })] }), showTrace && (_jsx("div", { className: "mt-1 overflow-hidden", children: _jsx("pre", { className: "text-muted-foreground max-h-64 overflow-auto p-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap", children: section.lines.map((line, li) => {
|
|
36
36
|
if (/^\s+File "/.test(line)) {
|
|
37
|
-
return (_jsxs("span", { className: "text-muted-foreground
|
|
37
|
+
return (_jsxs("span", { className: "text-muted-foreground", children: [line, '\n'] }, li));
|
|
38
38
|
}
|
|
39
39
|
return (_jsxs("span", { children: [line, '\n'] }, li));
|
|
40
40
|
}) }) }))] }, key));
|
|
@@ -84,7 +84,7 @@ export function TodoStatusIcon({ status, className, }) {
|
|
|
84
84
|
// state is the pending ring in motion, not a second, fatter circle.
|
|
85
85
|
return _jsx(Loading, { variant: "ring", className: cn('text-kortix-orange', size, className) });
|
|
86
86
|
case 'cancelled':
|
|
87
|
-
return (_jsx(KnockoutDisc, { maskId: maskId, path: CANCEL_PATH, className: cn('text-muted-foreground
|
|
87
|
+
return (_jsx(KnockoutDisc, { maskId: maskId, path: CANCEL_PATH, className: cn('text-muted-foreground', size, className) }));
|
|
88
88
|
case 'pending':
|
|
89
89
|
return (_jsx("svg", { viewBox: `0 0 ${STATUS_RING.BOX} ${STATUS_RING.BOX}`, fill: "none", strokeLinejoin: "round", "aria-hidden": true, className: cn('text-muted-foreground', size, className), children: _jsx("circle", { cx: STATUS_RING.CENTER, cy: STATUS_RING.CENTER, r: STATUS_RING.RADIUS, stroke: "currentColor", fill: "none", strokeWidth: STATUS_RING.STROKE, strokeDasharray: `${STATUS_RING.DASH} ${STATUS_RING.GAP}` }) }));
|
|
90
90
|
default: {
|
|
@@ -24,7 +24,7 @@ export function ToolError({ error, toolName }) {
|
|
|
24
24
|
return (_jsx(ToolResultCard, { children: _jsx("div", { className: "px-1 py-0.5 text-xs", children: _jsx(StructuredOutput, { sections: structuredSections }) }) }));
|
|
25
25
|
}
|
|
26
26
|
if (validationIssues && validationIssues.length > 0) {
|
|
27
|
-
return (_jsxs(ToolResultCard, { children: [_jsxs("div", { className: "flex items-center gap-2 px-2 pt-1.5 pb-1 text-xs", children: [_jsx(Ban, { className: "text-muted-foreground
|
|
27
|
+
return (_jsxs(ToolResultCard, { children: [_jsxs("div", { className: "flex items-center gap-2 px-2 pt-1.5 pb-1 text-xs", children: [_jsx(Ban, { className: "text-muted-foreground size-3.5 shrink-0" }), _jsx("span", { className: "text-muted-foreground font-medium", children: displayType }), toolName && (_jsx("span", { className: "text-muted-foreground ml-auto font-mono", children: toolName }))] }), _jsx("div", { className: "space-y-2.5 px-2 pt-1 pb-2", children: validationIssues.map((issue) => (_jsxs("div", { className: "space-y-1.5", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsx(CircleAlert, { className: "text-muted-foreground mt-0.5 size-3.5 shrink-0" }), _jsxs("div", { className: "min-w-0 flex-1", children: [issue.path.length > 0 && (_jsx(Badge, { variant: "muted", size: "xs", className: "mr-1.5 font-mono", children: issue.path.join('.') })), _jsx("span", { className: "text-foreground/80 text-xs", children: issue.message })] })] }), issue.values && issue.values.length > 0 && (_jsxs("div", { className: "ml-5.5", children: [_jsx("div", { className: "text-muted-foreground mb-1 text-xs", children: tHardcodedUi.raw('componentsSessionToolRenderers.line7845JsxTextExpectedOneOf') }), _jsx("div", { className: "flex flex-wrap gap-1", children: issue.values.map((val, vi) => (_jsx(Badge, { variant: "muted", size: "xs", className: "font-mono", children: val }, vi))) })] }))] }, `${issue.path.join('.')}:${issue.message}`))) })] }));
|
|
28
28
|
}
|
|
29
|
-
return (_jsxs(ToolResultCard, { children: [_jsx("p", { className: "text-muted-foreground
|
|
29
|
+
return (_jsxs(ToolResultCard, { children: [_jsx("p", { className: "text-muted-foreground px-2 py-1.5 font-mono text-xs leading-relaxed wrap-break-word whitespace-pre-wrap", children: summary }), traceback && (_jsxs(_Fragment, { children: [_jsxs("button", { type: "button", onClick: () => setShowTrace((v) => !v), className: "text-muted-foreground hover:text-foreground hover:bg-muted flex w-full cursor-pointer items-center gap-1.5 rounded-sm px-2 py-1.5 text-left transition-colors duration-150", children: [_jsx(ChevronRight, { className: cn('size-3.5 transition-transform', showTrace && 'rotate-90') }), _jsx("span", { className: "text-xs font-medium", children: tHardcodedUi.raw('componentsSessionToolRenderers.line7883JsxTextStackTrace') })] }), showTrace && (_jsx("pre", { className: "text-muted-foreground px-2 pb-1.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap", children: traceback }))] }))] }));
|
|
30
30
|
}
|
|
@@ -48,10 +48,10 @@ export function AgentSpawnTool({ call, defaultOpen, forceOpen }) {
|
|
|
48
48
|
: spawnFailure
|
|
49
49
|
? 'failed'
|
|
50
50
|
: description || undefined,
|
|
51
|
-
}, onSubtitleClick: hasSession ? () => setModalOpen(true) : undefined, badge: isCompleted && childCalls.length > 0 ? `${childCalls.length} steps` : undefined, defaultOpen: defaultOpen, forceOpen: forceOpen, children: [isCompleted && spawnFailure ? (_jsxs(_Fragment, { children: [verification && (_jsx(ToolResultCard, { children: _jsxs("div", { className: "text-muted-foreground
|
|
51
|
+
}, onSubtitleClick: hasSession ? () => setModalOpen(true) : undefined, badge: isCompleted && childCalls.length > 0 ? `${childCalls.length} steps` : undefined, defaultOpen: defaultOpen, forceOpen: forceOpen, children: [isCompleted && spawnFailure ? (_jsxs(_Fragment, { children: [verification && (_jsx(ToolResultCard, { children: _jsxs("div", { className: "text-muted-foreground px-2 py-1.5 text-xs leading-relaxed", children: ["\u2713 ", verification] }) })), _jsx(ToolOutputFallback, { output: output, toolName: "agent_spawn" })] })) : verification || (isCompleted && (cleanedOutput || childCalls.length > 0)) ? (_jsx(ToolResultCard, { children: _jsxs("div", { className: "space-y-2 px-2 py-1.5", children: [verification && (_jsxs("div", { className: "text-muted-foreground text-xs leading-relaxed", children: ["\u2713 ", verification] })), isCompleted && cleanedOutput ? (_jsx(OutputBlock, { text: cleanedOutput, markdown: true })) : isCompleted && childCalls.length > 0 ? (_jsxs("div", { className: "space-y-0.5", children: [childCalls.slice(-3).map((step) => {
|
|
52
52
|
const info = getToolInfo(step.name, partInput(step));
|
|
53
|
-
return (_jsxs("div", { className: "text-muted-foreground flex items-center gap-1.5 truncate text-xs", children: [_jsx(Check, { className: "text-muted-foreground
|
|
54
|
-
}), childCalls.length > 3 && (_jsxs("div", { className: "text-muted-foreground
|
|
53
|
+
return (_jsxs("div", { className: "text-muted-foreground flex items-center gap-1.5 truncate text-xs", children: [_jsx(Check, { className: "text-muted-foreground size-2.5 shrink-0" }), info.title, info.subtitle ? ` · ${info.subtitle}` : ''] }, step.id));
|
|
54
|
+
}), childCalls.length > 3 && (_jsxs("div", { className: "text-muted-foreground pl-4 text-xs", children: ["+", childCalls.length - 3, " ", tI18nComplete.raw('text187897ce0afc')] }))] })) : null] }) })) : null, surface === 'panel' && childCalls.length > 0 && (
|
|
55
55
|
// Full-bleed seam, not a nested box. The panel row body already
|
|
56
56
|
// supplies the 12px gutter this sits in, so a `p-3` here inset the
|
|
57
57
|
// activity list a second time (24px of gutter around a 420px pane)
|
|
@@ -37,7 +37,7 @@ export function AgentStatusTool({ call, defaultOpen, forceOpen }) {
|
|
|
37
37
|
setModalSessionId(row.sessionId);
|
|
38
38
|
setModalTitle(row.title);
|
|
39
39
|
}
|
|
40
|
-
}, className: cn('border-border/20 flex items-center gap-2.5 px-3 py-2', i > 0 && 'border-t', hasSession && 'hover:bg-accent/50 cursor-pointer transition-colors'), children: [isActive ? (_jsx(Loading, { className: "text-muted-foreground size-3 shrink-0" })) : row.status === 'completed' ? (_jsx(Check, { className: cn('size-3 shrink-0', STATUS_TEXT.success) })) : row.status === 'input_needed' ? (_jsx(Clock, { className: cn('size-3 shrink-0', STATUS_TEXT.warning) })) : row.status === 'cancelled' ? (_jsx(X, { className: "text-muted-foreground
|
|
40
|
+
}, className: cn('border-border/20 flex items-center gap-2.5 px-3 py-2', i > 0 && 'border-t', hasSession && 'hover:bg-accent/50 cursor-pointer transition-colors'), children: [isActive ? (_jsx(Loading, { className: "text-muted-foreground size-3 shrink-0" })) : row.status === 'completed' ? (_jsx(Check, { className: cn('size-3 shrink-0', STATUS_TEXT.success) })) : row.status === 'input_needed' ? (_jsx(Clock, { className: cn('size-3 shrink-0', STATUS_TEXT.warning) })) : row.status === 'cancelled' ? (_jsx(X, { className: "text-muted-foreground size-3 shrink-0" })) : (_jsx(Circle, { className: "text-muted-foreground size-3 shrink-0" })), _jsx("span", { className: "text-foreground/80 flex-1 truncate text-xs", children: row.title }), _jsx("span", { className: "text-muted-foreground shrink-0 font-mono text-xs", children: row.id.slice(-8) }), hasSession && (_jsx(ChevronRight, { className: "text-muted-foreground size-3 shrink-0" }))] }, row.id));
|
|
41
41
|
}) })), !isRunning && isError && _jsx(ToolOutputFallback, { output: output, toolName: "agent_status" }), !isRunning && !isError && taskRows.length === 0 && cleanedOutput && (_jsx(OutputBlock, { text: cleanedOutput }))] }), modalSessionId && (_jsx(SubagentDialog, { open: !!modalSessionId, onOpenChange: (open) => {
|
|
42
42
|
if (!open)
|
|
43
43
|
setModalSessionId(null);
|
|
@@ -113,7 +113,7 @@ export function ApplyPatchTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
113
113
|
const typeMeta = patchTypeStyle[typeKey] ?? patchTypeStyle.update;
|
|
114
114
|
const isOpen = expanded === i;
|
|
115
115
|
const hasDiff = file.before != null || file.after != null || !!file.patch || !!file.diff;
|
|
116
|
-
return (_jsxs("div", { children: [_jsxs("button", { type: "button", className: "hover:bg-muted flex w-full min-w-0 items-center gap-2.5 rounded-sm px-2 py-2 text-left transition-colors duration-150", onClick: () => (hasDiff ? setExpanded(isOpen ? null : i) : undefined), children: [hasDiff ? (_jsx(ChevronRight, { className: cn('text-muted-foreground
|
|
116
|
+
return (_jsxs("div", { children: [_jsxs("button", { type: "button", className: "hover:bg-muted flex w-full min-w-0 items-center gap-2.5 rounded-sm px-2 py-2 text-left transition-colors duration-150", onClick: () => (hasDiff ? setExpanded(isOpen ? null : i) : undefined), children: [hasDiff ? (_jsx(ChevronRight, { className: cn('text-muted-foreground size-3.5 shrink-0 transition-transform', isOpen && 'rotate-90') })) : (_jsx("span", { className: "w-3.5 shrink-0" })), _jsx(Badge, { variant: typeMeta.tone, size: "sm", className: "shrink-0 normal-case", children: typeMeta.label }), _jsx("span", { className: "text-foreground hover:text-primary min-w-0 flex-1 cursor-pointer truncate font-mono text-sm", title: relPath, onClick: (e) => {
|
|
117
117
|
e.stopPropagation();
|
|
118
118
|
if (relPath)
|
|
119
119
|
openPreview(relPath);
|
|
@@ -17,6 +17,6 @@ export function ConnectorGetTool({ call, defaultOpen, forceOpen }) {
|
|
|
17
17
|
return (_jsx(BasicTool, { icon: _jsx(Plug, { className: "text-muted-foreground size-3.5" }), trigger: {
|
|
18
18
|
title: data?.name || tI18nComplete.raw('textf51e3554540b'),
|
|
19
19
|
subtitle: name && name !== data?.name ? name : data?.description || 'Fetching...',
|
|
20
|
-
}, defaultOpen: defaultOpen, forceOpen: forceOpen, children: data ? (_jsxs(ToolResultCard, { bodyClassName: "space-y-2 p-2", children: [data.description && (_jsx("div", { className: "text-muted-foreground mb-1 text-xs", children: data.description })), _jsx("div", { className: "flex gap-2 text-xs", children: _jsx(Badge, { variant: "outline", className: "h-5 py-0 capitalize", children: data.source }) }), data.env && (_jsxs("div", { className: "text-xs", children: [_jsxs("span", { className: "text-muted-foreground
|
|
20
|
+
}, defaultOpen: defaultOpen, forceOpen: forceOpen, children: data ? (_jsxs(ToolResultCard, { bodyClassName: "space-y-2 p-2", children: [data.description && (_jsx("div", { className: "text-muted-foreground mb-1 text-xs", children: data.description })), _jsx("div", { className: "flex gap-2 text-xs", children: _jsx(Badge, { variant: "outline", className: "h-5 py-0 capitalize", children: data.source }) }), data.env && (_jsxs("div", { className: "text-xs", children: [_jsxs("span", { className: "text-muted-foreground", children: [tI18nComplete.raw('text146cd06d5026'), ' '] }), _jsx("code", { className: "bg-muted rounded px-1 text-xs", children: data.env })] })), data.notes && (_jsx("div", { className: "text-muted-foreground border-border/30 mt-2 border-t pt-2 text-xs whitespace-pre-wrap", children: data.notes }))] })) : output ? (_jsx(ToolOutputFallback, { output: output, toolName: "connector_get" })) : (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: tI18nComplete.raw('text6cd606384bc7') }) })) }));
|
|
21
21
|
}
|
|
22
22
|
ToolRegistry.register('connector-get', ConnectorGetTool);
|
|
@@ -22,6 +22,6 @@ export function ConnectorListTool({ call, defaultOpen, forceOpen }) {
|
|
|
22
22
|
subtitle: filter
|
|
23
23
|
? `Filter: ${filter}`
|
|
24
24
|
: `${connectors.length} connector${connectors.length !== 1 ? 's' : ''}`,
|
|
25
|
-
}, defaultOpen: defaultOpen || connectors.length === 0, forceOpen: forceOpen, children: connectors.length > 0 ? (_jsx(ToolResultCard, { bodyClassName: "space-y-1", children: connectors.map((conn) => (_jsxs("div", { className: "hover:bg-muted/30 flex items-start gap-2 rounded px-2 py-1 text-xs", children: [_jsx(Plug, { className: "text-muted-foreground mt-0.5 size-3.5 shrink-0" }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "text-foreground truncate font-medium", children: conn.name }), conn.description && (_jsx("div", { className: "text-muted-foreground
|
|
25
|
+
}, defaultOpen: defaultOpen || connectors.length === 0, forceOpen: forceOpen, children: connectors.length > 0 ? (_jsx(ToolResultCard, { bodyClassName: "space-y-1", children: connectors.map((conn) => (_jsxs("div", { className: "hover:bg-muted/30 flex items-start gap-2 rounded px-2 py-1 text-xs", children: [_jsx(Plug, { className: "text-muted-foreground mt-0.5 size-3.5 shrink-0" }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "text-foreground truncate font-medium", children: conn.name }), conn.description && (_jsx("div", { className: "text-muted-foreground", children: conn.description }))] }), _jsx(Badge, { variant: "outline", className: "h-5 shrink-0 py-0 text-xs capitalize", children: conn.source })] }, conn.name))) })) : isError ? (_jsx(ToolOutputFallback, { output: output, toolName: "connector_list" })) : output ? (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: tI18nComplete.raw('textd4f603db3f57') }) })) : (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: tI18nComplete.raw('text47c3d9d2f5c7') }) })) }));
|
|
26
26
|
}
|
|
27
27
|
ToolRegistry.register('connector-list', ConnectorListTool);
|
|
@@ -31,7 +31,7 @@ export function ConnectorsTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
31
31
|
return (_jsx(BasicTool, { icon: _jsx(Plug, { className: "size-3.5 shrink-0" }), trigger: {
|
|
32
32
|
title: tI18nComplete.raw('textc023d120dd17'),
|
|
33
33
|
args: status === 'completed' ? [`${connectors.length} available`] : undefined,
|
|
34
|
-
}, defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: connectors.length > 0 ? (_jsx(ToolResultCard, { bodyClassName: "space-y-0.5", children: connectors.map((c) => (_jsxs("div", { className: "flex items-center gap-2 px-2 py-1 text-xs", children: [_jsx(Plug, { className: "text-muted-foreground
|
|
34
|
+
}, defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: connectors.length > 0 ? (_jsx(ToolResultCard, { bodyClassName: "space-y-0.5", children: connectors.map((c) => (_jsxs("div", { className: "flex items-center gap-2 px-2 py-1 text-xs", children: [_jsx(Plug, { className: "text-muted-foreground size-3 shrink-0" }), _jsx("span", { className: "text-foreground truncate font-medium", children: String(c.name || c.slug || '') }), _jsx("span", { className: "text-muted-foreground font-mono", children: String(c.provider ?? '') }), _jsxs("span", { className: "text-muted-foreground ml-auto", children: [String(c.tools ?? 0), " ", tI18nComplete.raw('textf9d35d43770d')] }), _jsx("span", { className: cn('text-[10px] font-semibold uppercase', c.status === 'active' ? STATUS_TEXT.success : 'text-muted-foreground'), children: String(c.status ?? '') })] }, String(c.slug ?? '') || `${String(c.name ?? '')}:${String(c.provider ?? '')}`))) })) : output ? (_jsx(ToolOutputFallback, { output: output, isStreaming: isStreaming, toolName: "connectors" })) : (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: isStreaming
|
|
35
35
|
? tI18nComplete.raw('text47c3d9d2f5c7')
|
|
36
36
|
: tI18nComplete.raw('textb65b97575287') }) })) }));
|
|
37
37
|
}
|
|
@@ -117,7 +117,7 @@ export function EditTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
117
117
|
// transcript could never keep — the animation ran forever over a diff
|
|
118
118
|
// that was never going to arrive. `write-tool.tsx` dropped that shimmer;
|
|
119
119
|
// `edit` kept it, so one situation had two answers.
|
|
120
|
-
_jsx(ToolResultCard, { bodyClassName: "px-2 py-1.5", children: _jsx("span", { className: "text-muted-foreground
|
|
120
|
+
_jsx(ToolResultCard, { bodyClassName: "px-2 py-1.5", children: _jsx("span", { className: "text-muted-foreground text-xs", children: tI18nComplete.raw('text93168435f3ae') }) })) : null, _jsx(DiagnosticsDisplay, { diagnostics: diagnostics, filePath: filePath })] }));
|
|
121
121
|
}
|
|
122
122
|
ToolRegistry.register('edit', EditTool);
|
|
123
123
|
ToolRegistry.register('morph_edit', EditTool);
|
|
@@ -48,7 +48,7 @@ export function GetMemTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
48
48
|
? tHardcodedUi.raw('componentsSessionToolRenderers.line1730JsxTextObservation')
|
|
49
49
|
: tHardcodedUi.raw('componentsSessionToolRenderers.line1847JsxTextLTM'), report.id] })] }), _jsx("span", { className: "text-muted-foreground inline-flex items-center text-xs tracking-wide uppercase", children: report.type }), report.created && (_jsxs("span", { className: "text-muted-foreground inline-flex items-center gap-1 text-xs", children: [_jsx(CalendarClock, { className: "size-3 shrink-0" }), _jsx("span", { children: report.created })] }))] }), report.kind === 'observation' ? (_jsxs(_Fragment, { children: [report.title && (_jsx("h3", { className: "text-foreground/90 text-xs font-medium", children: report.title })), report.narrative && (_jsx(ToolSection, { label: tHardcodedUi.raw('i18nComplete.texted2e59c337d0'), children: _jsx(OutputBlock, { text: report.narrative, markdown: true }) })), report.facts.length > 0 && (_jsx(FoldedSection, { label: tHardcodedUi('i18nComplete.text677e3e9ff173', {
|
|
50
50
|
value0: report.facts.length,
|
|
51
|
-
}), children: _jsx("ul", { className: "space-y-1", children: report.facts.map((fact, index) => (_jsxs("li", { className: "text-foreground/90 flex items-start gap-1.5 text-xs leading-relaxed", children: [_jsx(StatusDot, { tone: "success", className: "mt-[6px]" }), _jsx("span", { children: fact })] }, `${report.id}-${index}`))) }) })), report.concepts.length > 0 && (_jsx(FoldedSection, { label: tHardcodedUi.raw('i18nComplete.text0d0a8c6df3ac'), children: _jsx("div", { className: "flex flex-wrap items-center gap-1.5", children: report.concepts.map((concept) => (_jsx("span", { className: cn('text-xs font-medium', STATUS_TEXT.success), children: concept }, concept))) }) })), (report.tool || report.prompt || report.session || report.filesRead.length > 0) && (_jsxs("div", { className: "space-y-1.5", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [report.tool && (_jsx(ToolField, { label: tHardcodedUi.raw('i18nComplete.text2e53bdcd0740'), value: report.tool })), report.prompt && (_jsxs("span", { className: "text-muted-foreground
|
|
51
|
+
}), children: _jsx("ul", { className: "space-y-1", children: report.facts.map((fact, index) => (_jsxs("li", { className: "text-foreground/90 flex items-start gap-1.5 text-xs leading-relaxed", children: [_jsx(StatusDot, { tone: "success", className: "mt-[6px]" }), _jsx("span", { children: fact })] }, `${report.id}-${index}`))) }) })), report.concepts.length > 0 && (_jsx(FoldedSection, { label: tHardcodedUi.raw('i18nComplete.text0d0a8c6df3ac'), children: _jsx("div", { className: "flex flex-wrap items-center gap-1.5", children: report.concepts.map((concept) => (_jsx("span", { className: cn('text-xs font-medium', STATUS_TEXT.success), children: concept }, concept))) }) })), (report.tool || report.prompt || report.session || report.filesRead.length > 0) && (_jsxs("div", { className: "space-y-1.5", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [report.tool && (_jsx(ToolField, { label: tHardcodedUi.raw('i18nComplete.text2e53bdcd0740'), value: report.tool })), report.prompt && (_jsxs("span", { className: "text-muted-foreground inline-flex items-baseline text-xs", children: [tHardcodedUi.raw('componentsSessionToolRenderers.line1811JsxTextPrompt'), _jsx("span", { className: "text-foreground/80", children: report.prompt })] })), report.session && (_jsx(ToolField, { label: tHardcodedUi.raw('i18nComplete.text6959b4159575'), value: report.session, mono: true }))] }), report.filesRead.length > 0 && (_jsx(FoldedSection, { label: `${tHardcodedUi.raw('componentsSessionToolRenderers.line1823JsxTextFilesRead')} (${report.filesRead.length})`, children: _jsx("div", { className: "flex flex-wrap gap-1.5", children: report.filesRead.map((file) => (_jsx("span", { className: "bg-background border-border/70 text-foreground/75 inline-flex h-6 items-center rounded-sm border px-2 font-mono text-xs break-all", children: file }, file))) }) }))] }))] })) : (_jsxs(_Fragment, { children: [report.caption && (_jsx(ToolSection, { label: tHardcodedUi.raw('i18nComplete.text87d296ec9489'), children: _jsx(OutputBlock, { text: report.caption, markdown: true }) })), report.content && (_jsx(ToolSection, { label: tHardcodedUi.raw('i18nComplete.text47bd29075f8b'), children: _jsx(OutputBlock, { text: report.content, markdown: true }) })), report.tags.length > 0 && (_jsx(FoldedSection, { label: tHardcodedUi('i18nComplete.text7964f184beb2', {
|
|
52
52
|
value0: report.tags.length,
|
|
53
53
|
}), children: _jsx("div", { className: "flex flex-wrap items-center gap-1.5", children: report.tags.map((tag) => (_jsx("span", { className: cn('text-xs font-medium', STATUS_TEXT.success), children: tag }, tag))) }) })), (report.session || report.updated) && (_jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [report.session && (_jsx(ToolField, { label: tHardcodedUi.raw('i18nComplete.text6959b4159575'), value: report.session, mono: true })), report.updated && (_jsx(ToolField, { label: tHardcodedUi.raw('i18nComplete.text3a5ecca188c0'), value: report.updated }))] }))] }))] })) : output ? (_jsx(ToolOutputFallback, { output: output, isStreaming: isStreaming, toolName: "get_mem" })) : (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: isStreaming
|
|
54
54
|
? tHardcodedUi.raw('i18nComplete.textde6a473b60fe')
|
|
@@ -65,6 +65,6 @@ export function GlobTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
65
65
|
: isNoResults
|
|
66
66
|
? 'no matches'
|
|
67
67
|
: undefined;
|
|
68
|
-
return (_jsx(BasicTool, { icon: _jsx(Search, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: cn('text-foreground min-w-0 truncate text-sm', isPathLike && 'font-mono'), title: triggerTitle || undefined, children: triggerLabel }), triggerBadge && (_jsx("span", { className: "text-muted-foreground
|
|
68
|
+
return (_jsx(BasicTool, { icon: _jsx(Search, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: cn('text-foreground min-w-0 truncate text-sm', isPathLike && 'font-mono'), title: triggerTitle || undefined, children: triggerLabel }), triggerBadge && (_jsx("span", { className: "text-muted-foreground ml-auto shrink-0 text-sm whitespace-nowrap", children: triggerBadge }))] }), defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: hasResults ? (_jsx(ToolResultCard, { children: _jsx(InlineFileList, { paths: filePaths, onFileClick: handleFileClick, toDisplayPath: toDisplayPath, disabled: !navigationEnabled }) })) : isNoResults ? (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: tHardcodedUi.raw('componentsSessionToolRenderers.line3420JsxAttrMessageNoMatchingFilesFound') }) })) : output ? (_jsx(ToolOutputFallback, { output: output, toolName: "glob" })) : null }));
|
|
69
69
|
}
|
|
70
70
|
ToolRegistry.register('glob', GlobTool);
|
|
@@ -77,7 +77,7 @@ export function ImageSearchTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
77
77
|
displayQuery: query,
|
|
78
78
|
};
|
|
79
79
|
}, [output, query]);
|
|
80
|
-
return (_jsx(BasicTool, { icon: _jsx(ImageIcon, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "text-foreground text-xs font-medium whitespace-nowrap", children: tHardcodedUi.raw('componentsSessionToolRenderers.line4240JsxTextImageSearch') }), _jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: humanizeSearchQuery(displayQuery) }), imageResults.length > 0 && (_jsxs("span", { className: "text-muted-foreground
|
|
80
|
+
return (_jsx(BasicTool, { icon: _jsx(ImageIcon, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "text-foreground text-xs font-medium whitespace-nowrap", children: tHardcodedUi.raw('componentsSessionToolRenderers.line4240JsxTextImageSearch') }), _jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: humanizeSearchQuery(displayQuery) }), imageResults.length > 0 && (_jsxs("span", { className: "text-muted-foreground ml-auto shrink-0 font-mono text-xs whitespace-nowrap", children: [isBatch ? `${batchCount}q, ` : '', imageResults.length, " ", tHardcodedUi.raw('i18nComplete.text21b2eed1e328')] }))] }), defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: status === 'completed' && errored ? (_jsx(ToolOutputFallback, { output: output, toolName: "image_search" })) : imageResults.length > 0 ? (_jsx(ToolResultCard, { children: _jsx("div", { className: "grid grid-cols-3 gap-1.5 p-1", children: imageResults.slice(0, 9).map((img) => {
|
|
81
81
|
const imgUrl = safeHttpUrl(img.url || img.imageUrl || img.image_url || '');
|
|
82
82
|
if (!imgUrl)
|
|
83
83
|
return null;
|
|
@@ -53,7 +53,7 @@ export function MemorySearchTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
53
53
|
// folds the body behind it.
|
|
54
54
|
_jsxs(ToolResultCard, { bodyClassName: "space-y-1.5", children: [(query || source) && (_jsx(FoldedSection, { label: tHardcodedUi.raw('i18nComplete.text59f03d642b41'), className: "px-2 pt-1.5", children: _jsxs("div", { className: "flex flex-wrap items-center gap-1.5", children: [source && (_jsx(ToolField, { label: tHardcodedUi.raw('i18nComplete.text0e570ca6fabe'), value: source })), query && (_jsx(ToolField, { label: tHardcodedUi.raw('i18nComplete.textb80a37564fbb'), value: query, mono: true }))] }) })), parsed.hits.map((hit) => {
|
|
55
55
|
const sourceLabel = hit.source === 'ltm' ? 'LTM' : hit.source === 'obs' ? 'Observation' : 'Memory';
|
|
56
|
-
return (_jsxs(FoldedSection, { className: "px-2 py-1.5", triggerClassName: "text-muted-foreground text-xs tracking-normal normal-case gap-1.5", label: _jsxs(_Fragment, { children: [_jsxs("span", { className: "shrink-0", children: [sourceLabel, " / ", hit.type] }), _jsxs("span", { className: "text-muted-foreground
|
|
56
|
+
return (_jsxs(FoldedSection, { className: "px-2 py-1.5", triggerClassName: "text-muted-foreground text-xs tracking-normal normal-case gap-1.5", label: _jsxs(_Fragment, { children: [_jsxs("span", { className: "shrink-0", children: [sourceLabel, " / ", hit.type] }), _jsxs("span", { className: "text-muted-foreground shrink-0 font-mono text-xs", children: ["#", hit.id] }), _jsx("span", { className: "text-foreground/70 min-w-0 flex-1 truncate", children: hitPreview(hit.content) }), hit.confidence != null && (_jsxs("span", { className: "text-muted-foreground shrink-0 text-xs", children: [Math.round(hit.confidence * 100), tHardcodedUi.raw('componentsSessionToolRenderers.line2011JsxTextConf')] }))] }), children: [_jsx(OutputBlock, { text: hit.content, markdown: true }), hit.files.length > 0 && (_jsx("div", { className: "mt-1.5 flex flex-wrap gap-1", children: hit.files.map((file) => (_jsx("span", { className: "bg-background text-muted-foreground inline-flex h-5 items-center rounded-sm px-1.5 font-mono text-xs", children: file }, file))) }))] }, `${hit.source}-${hit.id}-${hit.type}`));
|
|
57
57
|
})] })) : parsed.matched ? (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: isStreaming
|
|
58
58
|
? tHardcodedUi.raw('i18nComplete.text876ee3e4596e')
|
|
59
59
|
: tHardcodedUi.raw('i18nComplete.text926859e51f61') }) })) : output ? (_jsx(ToolOutputFallback, { output: output, isStreaming: isStreaming, toolName: "ltm_search" })) : (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: isStreaming
|
|
@@ -128,7 +128,7 @@ export function MemoryTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
128
128
|
view.entries.length > 0 ? (_jsx(ToolResultCard, { bodyClassName: "px-2 py-1.5", children: _jsx(FadedScrollArea, { fadeColor: "from-popover", children: view.entries.map((entry, i) => {
|
|
129
129
|
const isLast = i + 1 >= view.entries.length;
|
|
130
130
|
const name = memoryRelPath(entry.path);
|
|
131
|
-
return (_jsx("div", { className: "flex gap-2.5", children: _jsxs("div", { className: cn('flex min-w-0 flex-1 items-center gap-2', !isLast && 'pb-3'), children: [_jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: name }), _jsx("span", { className: "text-muted-foreground
|
|
131
|
+
return (_jsx("div", { className: "flex gap-2.5", children: _jsxs("div", { className: cn('flex min-w-0 flex-1 items-center gap-2', !isLast && 'pb-3'), children: [_jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: name }), _jsx("span", { className: "text-muted-foreground ml-auto shrink-0 text-xs tabular-nums", children: entry.size })] }) }, entry.path));
|
|
132
132
|
}) }) })) : (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: tI18nHardcoded.raw('autoFeaturesSessionToolRenderersJsxAttrMessageMemoryIsEmptyc797bb83') }) }));
|
|
133
133
|
}
|
|
134
134
|
else if (view?.type === 'file' && view.content) {
|
|
@@ -156,13 +156,13 @@ export function MemoryTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
156
156
|
}
|
|
157
157
|
else if (command === 'insert') {
|
|
158
158
|
body =
|
|
159
|
-
!insertText && insertLine == null ? (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: tI18nHardcoded.raw('autoFeaturesSessionToolRenderersJsxAttrMessageNothingInsertede2d2969f') }) })) : (_jsxs(ToolResultCard, { children: [insertLine != null && (_jsxs("div", { className: "text-muted-foreground
|
|
159
|
+
!insertText && insertLine == null ? (_jsx(ToolResultCard, { children: _jsx(ToolEmptyState, { message: tI18nHardcoded.raw('autoFeaturesSessionToolRenderersJsxAttrMessageNothingInsertede2d2969f') }) })) : (_jsxs(ToolResultCard, { children: [insertLine != null && (_jsxs("div", { className: "text-muted-foreground px-3 pt-2 text-xs", children: [tI18nHardcoded.raw('autoFeaturesSessionToolRenderersJsxTextInsertedAtLine1bc36059'), String(insertLine)] })), insertText ? _jsx(ToolCode, { code: insertText, language: ext }) : null] }));
|
|
160
160
|
}
|
|
161
161
|
else if (command === 'rename') {
|
|
162
|
-
body = (_jsx(ToolResultCard, { children: _jsxs("div", { className: "text-muted-foreground
|
|
162
|
+
body = (_jsx(ToolResultCard, { children: _jsxs("div", { className: "text-muted-foreground flex flex-wrap items-center gap-1.5 px-2 py-1.5 font-mono text-xs", children: [_jsx("span", { className: "truncate", children: memoryRelPath(oldPath || path) }), _jsx(ChevronRight, { className: "text-muted-foreground size-3 shrink-0" }), _jsx("span", { className: "text-foreground/80 truncate", children: memoryRelPath(newPath) })] }) }));
|
|
163
163
|
}
|
|
164
164
|
else if (command === 'delete') {
|
|
165
|
-
body = (_jsx(ToolResultCard, { children: _jsxs("div", { className: "text-muted-foreground
|
|
165
|
+
body = (_jsx(ToolResultCard, { children: _jsxs("div", { className: "text-muted-foreground flex items-center gap-1.5 px-2 py-1.5 text-xs", children: [_jsx(Trash2, { className: "size-3 shrink-0" }), _jsx("span", { className: "truncate font-mono", children: relPath })] }) }));
|
|
166
166
|
}
|
|
167
167
|
else if (output) {
|
|
168
168
|
body = _jsx(ToolOutputFallback, { output: output, toolName: "memory" });
|
|
@@ -74,10 +74,10 @@ export function PresentationGenTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
74
74
|
return presentationName || action;
|
|
75
75
|
}, [action, presentationName, slideTitle, slideNumber]);
|
|
76
76
|
const actionLabel = ACTION_LABELS[action ?? ''] || action;
|
|
77
|
-
return (_jsxs(BasicTool, { icon: _jsx(Presentation, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [actionLabel ? (_jsx("span", { className: "text-foreground text-xs font-medium whitespace-nowrap", children: actionLabel })) : running ? (_jsx("span", { className: "bg-muted-foreground/10 h-3 w-20 animate-pulse rounded" })) : null, triggerSubtitle ? (_jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: triggerSubtitle })) : running && actionLabel ? (_jsx("span", { className: "bg-muted-foreground/10 h-3 w-32 animate-pulse rounded" })) : null, parsed?.success && action === 'create_slide' && parsed.total_slides && (_jsxs("span", { className: "text-muted-foreground
|
|
77
|
+
return (_jsxs(BasicTool, { icon: _jsx(Presentation, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [actionLabel ? (_jsx("span", { className: "text-foreground text-xs font-medium whitespace-nowrap", children: actionLabel })) : running ? (_jsx("span", { className: "bg-muted-foreground/10 h-3 w-20 animate-pulse rounded" })) : null, triggerSubtitle ? (_jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: triggerSubtitle })) : running && actionLabel ? (_jsx("span", { className: "bg-muted-foreground/10 h-3 w-32 animate-pulse rounded" })) : null, parsed?.success && action === 'create_slide' && parsed.total_slides && (_jsxs("span", { className: "text-muted-foreground ml-auto shrink-0 font-mono text-xs whitespace-nowrap", children: [parsed.total_slides, " ", parsed.total_slides === 1 ? 'slide' : 'slides'] })), viewerProxyUrl && (_jsx("a", { href: safeHttpUrl(viewerProxyUrl) ?? '#', target: "_blank", rel: "noopener noreferrer", className: "ml-auto shrink-0", onClick: (e) => {
|
|
78
78
|
e.stopPropagation();
|
|
79
79
|
if (parsed?.viewer_url)
|
|
80
80
|
openPreview?.(e, parsed.viewer_url, viewerProxyUrl);
|
|
81
|
-
}, children: _jsx(ExternalLink, { className: "text-muted-foreground
|
|
81
|
+
}, children: _jsx(ExternalLink, { className: "text-muted-foreground hover:text-foreground size-3 transition-colors" }) }))] }), defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: [isError && _jsx(ToolOutputFallback, { output: output, toolName: "presentation" }), parsed?.success && (_jsxs("div", { className: "space-y-1.5 px-3 py-2.5", children: [action === 'create_slide' && (_jsxs("div", { className: "flex items-center gap-2 text-xs", children: [_jsx(Check, { className: cn('size-3 shrink-0', STATUS_TEXT.success) }), _jsxs("span", { className: "text-foreground/80", children: [tHardcodedUi.raw('componentsSessionToolRenderers.line4612JsxTextCreatedSlide'), ' ', parsed.slide_number, parsed.slide_title ? `: ${parsed.slide_title}` : ''] }), parsed.total_slides && (_jsxs("span", { className: "text-muted-foreground ml-auto text-xs", children: ["(", parsed.total_slides, " ", tHardcodedUi.raw('i18nComplete.text665c0285727d')] }))] })), action === 'validate_slide' && (_jsxs("div", { className: "flex items-center gap-2 text-xs", children: [_jsx(Check, { className: cn('size-3 shrink-0', STATUS_TEXT.success) }), _jsxs("span", { className: "text-foreground/80", children: [tHardcodedUi.raw('i18nComplete.text6bb4c1177681'), ' ', parsed.slide_number || slideNumber || '?', ' ', tHardcodedUi.raw('i18nComplete.texte3e4aec37372')] }), parsed.message && parsed.message !== `Slide ${parsed.slide_number} validated` && (_jsx("span", { className: "text-muted-foreground truncate", children: parsed.message }))] })), (action === 'preview' || action === 'serve') && parsed.viewer_url && (_jsx(InlineServicePreview, { url: parsed.viewer_url, label: `Presentation: ${parsed.presentation_name || presentationName || 'Viewer'}` })), (action === 'export_pdf' || action === 'export_pptx') && (_jsxs("div", { className: "flex items-center gap-2 text-xs", children: [_jsx(Check, { className: cn('size-3 shrink-0', STATUS_TEXT.success) }), _jsxs("span", { className: "text-foreground/80", children: [tHardcodedUi.raw('i18nComplete.text391065e4dc23'), ' ', parsed.presentation_name || presentationName, ' ', tHardcodedUi.raw('i18nComplete.text663ea1bfffe5'), ' ', action === 'export_pdf' ? 'PDF' : 'PPTX'] })] })), !ACTIONS_WITH_OWN_SUCCESS_LINE.includes(action) && (_jsxs("div", { className: "flex items-center gap-2 text-xs", children: [_jsx(Check, { className: cn('size-3 shrink-0', STATUS_TEXT.success) }), _jsx("span", { className: "text-foreground/80", children: parsed.message || `${actionLabel} completed` })] })), parsed.slide_file && action !== 'preview' && action !== 'serve' && (_jsx("div", { className: "text-muted-foreground truncate font-mono text-xs", children: parsed.slide_file }))] })), !parsed && output && (_jsx("div", { "data-scrollable": true, className: "max-h-96 overflow-auto p-2", children: _jsx("pre", { className: "text-muted-foreground font-mono text-xs whitespace-pre-wrap", children: output }) }))] }));
|
|
82
82
|
}
|
|
83
83
|
ToolRegistry.register('presentation-gen', PresentationGenTool);
|
|
@@ -8,7 +8,7 @@ export function ProjectDeleteTool({ call }) {
|
|
|
8
8
|
const tHardcodedUi = useTranslations('hardcodedUi');
|
|
9
9
|
const input = partInput(call);
|
|
10
10
|
const project = input.project || '';
|
|
11
|
-
return (_jsx(BasicTool, { icon: _jsx(Trash2, { className: "text-muted-foreground
|
|
11
|
+
return (_jsx(BasicTool, { icon: _jsx(Trash2, { className: "text-muted-foreground size-3.5 shrink-0" }), trigger: {
|
|
12
12
|
title: tHardcodedUi.raw('i18nComplete.text87bb59ba2f92'),
|
|
13
13
|
subtitle: tHardcodedUi.raw('componentsSessionToolRenderers.line6211JsxTextWorkspaceDeleteDisabled'),
|
|
14
14
|
args: project ? [project] : undefined,
|
|
@@ -17,6 +17,6 @@ export function ProjectListTool({ call, defaultOpen, forceOpen }) {
|
|
|
17
17
|
return (_jsx(BasicTool, { icon: _jsx(Folder, {}), trigger: {
|
|
18
18
|
title: tI18nComplete.raw('text87bb59ba2f92'),
|
|
19
19
|
subtitle: projects.length > 0 ? tI18nComplete.raw('textff73053e6892') : undefined,
|
|
20
|
-
}, defaultOpen: defaultOpen || projects.length === 0, forceOpen: forceOpen, children: errored ? (_jsx(ToolOutputFallback, { output: output, toolName: "project_list" })) : projects.length > 0 ? (_jsx("div", { className: "space-y-0.5", children: projects.map((project) => (_jsxs("div", { className: "text-muted-foreground
|
|
20
|
+
}, defaultOpen: defaultOpen || projects.length === 0, forceOpen: forceOpen, children: errored ? (_jsx(ToolOutputFallback, { output: output, toolName: "project_list" })) : projects.length > 0 ? (_jsx("div", { className: "space-y-0.5", children: projects.map((project) => (_jsxs("div", { className: "text-muted-foreground flex items-center gap-1.5 py-0.5 text-xs", children: [_jsx(Folder, { className: "text-muted-foreground size-3.5 shrink-0" }), _jsx("span", { className: "truncate", children: project.name }), _jsx("span", { className: "text-muted-foreground truncate font-mono text-xs", children: project.path })] }, project.path))) })) : output ? (_jsx(OutputBlock, { text: output.slice(0, 2000) })) : null }));
|
|
21
21
|
}
|
|
22
22
|
ToolRegistry.register('project-list', ProjectListTool);
|
|
@@ -97,6 +97,6 @@ export function PtyReadTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
97
97
|
// areas would trap the wheel in the inner one.
|
|
98
98
|
_jsxs(ToolResultCard, { children: [parsed.buffer.earlierCount > 0 && (_jsx(FoldedSection, { label: tHardcodedUi('i18nComplete.textffffeef5ea06', {
|
|
99
99
|
value0: parsed.buffer.earlierCount,
|
|
100
|
-
}), className: "px-2 pt-1.5", children: _jsx(PreWithPaths, { text: parsed.buffer.earlier, className: "text-muted-foreground
|
|
100
|
+
}), className: "px-2 pt-1.5", children: _jsx(PreWithPaths, { text: parsed.buffer.earlier, className: "text-muted-foreground font-mono text-xs leading-relaxed whitespace-pre-wrap" }) })), _jsx(PreWithPaths, { text: parsed.buffer.tail, className: "text-foreground/80 px-2 py-1.5 font-mono text-xs leading-relaxed whitespace-pre-wrap" }), parsed.bufferInfo && (_jsx("div", { className: "text-muted-foreground px-2 pb-1.5 text-xs", children: parsed.bufferInfo }))] })) : null }));
|
|
101
101
|
}
|
|
102
102
|
ToolRegistry.register('pty_read', PtyReadTool);
|
|
@@ -50,6 +50,6 @@ export function PtySpawnTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
50
50
|
// The spawned process is a result the tool returned, so it gets the
|
|
51
51
|
// same hairlined card every other result lives in. Bare, it had no edge
|
|
52
52
|
// and ran straight into the chain rail beside it.
|
|
53
|
-
_jsx(ToolResultCard, { children: _jsxs("div", { className: "space-y-2 px-2 py-1.5", children: [command && (_jsxs("div", { className: "font-mono text-xs leading-relaxed wrap-break-word whitespace-pre-wrap", children: [_jsx("span", { className: "text-muted-foreground
|
|
53
|
+
_jsx(ToolResultCard, { children: _jsxs("div", { className: "space-y-2 px-2 py-1.5", children: [command && (_jsxs("div", { className: "font-mono text-xs leading-relaxed wrap-break-word whitespace-pre-wrap", children: [_jsx("span", { className: "text-muted-foreground select-none", children: "$" }), ' ', _jsx("span", { className: "text-foreground/80", children: command })] })), (processStatus || ptyId || pid || workdir) && (_jsxs(InlineMeta, { children: [processStatus && (_jsxs(Badge, { variant: processStatus === 'running' ? 'success' : 'muted', children: [processStatus === 'running' && _jsx(StatusDot, { tone: "success", pulse: true }), processStatus] })), ptyId && _jsx("span", { className: "font-mono", children: ptyId }), pid && _jsxs("span", { className: "font-mono", children: ["PID ", pid] }), workdir && (_jsx("span", { className: "font-mono", title: workdir, children: workdir }))] }))] }) })) }));
|
|
54
54
|
}
|
|
55
55
|
ToolRegistry.register('pty_spawn', PtySpawnTool);
|
|
@@ -15,7 +15,7 @@ export function PtyWriteTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
15
15
|
return (_jsx(BasicTool, { icon: _jsx(Terminal, { className: "size-3.5 shrink-0" }), trigger: {
|
|
16
16
|
title: tHardcodedUi.raw('i18nComplete.text32822e8808cc'),
|
|
17
17
|
subtitle: ptyId || undefined,
|
|
18
|
-
}, defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: ptyInput && (_jsx(ToolResultCard, { bodyClassName: "px-2 py-1.5", children: _jsxs("pre", { className: "text-foreground/80 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap", children: [_jsx("span", { className: "text-muted-foreground
|
|
18
|
+
}, defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: ptyInput && (_jsx(ToolResultCard, { bodyClassName: "px-2 py-1.5", children: _jsxs("pre", { className: "text-foreground/80 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap", children: [_jsx("span", { className: "text-muted-foreground select-none", children: tHardcodedUi.raw('componentsSessionToolRenderers.line2685JsxTextText') }), ptyInput] }) })) }));
|
|
19
19
|
}
|
|
20
20
|
ToolRegistry.register('pty_write', PtyWriteTool);
|
|
21
21
|
ToolRegistry.register('pty_input', PtyWriteTool);
|
|
@@ -61,7 +61,7 @@ export function ReadTool({ call, defaultOpen, forceOpen, locked }) {
|
|
|
61
61
|
subtitle: isStalePending ? undefined : filename || undefined,
|
|
62
62
|
}, onSubtitleClick: filePath ? handleSubtitleClick : undefined, defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, className: "overflow-hidden p-0", children: content ? (_jsx(ToolCodeCard, { code: content, language: ext })) : parsed?.type === 'directory' && parsed.entries && parsed.entries.length > 0 ? (_jsx(ToolResultCard, { bodyClassName: "space-y-0.5 px-2 py-1.5", children: parsed.entries.map((entry) => {
|
|
63
63
|
const isDir = entry.endsWith('/');
|
|
64
|
-
return (_jsxs("div", { className: "text-muted-foreground
|
|
64
|
+
return (_jsxs("div", { className: "text-muted-foreground flex items-center gap-1.5 font-mono text-xs", children: [isDir ? (_jsx(Folder, { className: "text-muted-foreground size-3 shrink-0" })) : (_jsx(FileIcon, { className: "text-muted-foreground size-3 shrink-0" })), _jsx("span", { className: "truncate", children: entry })] }, entry));
|
|
65
65
|
}) })) : isStalePending ? (_jsx(ToolResultCard, { bodyClassName: "px-2 py-1.5", children: _jsx(TextShimmer, { children: tHardcodedUi.raw('componentsSessionToolRenderers.line2853JsxTextWaitingForFileContent') }) })) : isErrorOutput(output) ? (_jsx(ToolOutputFallback, { output: output, toolName: "read" })) : null }), surface !== 'panel' && loaded.length > 0 && (_jsx("div", { className: "mt-1 space-y-0.5 pl-2", children: loaded.map((filepath) => (_jsxs("div", { role: "button", tabIndex: 0, onClick: () => openPreview(filepath), onKeyDown: (e) => {
|
|
66
66
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
67
67
|
e.preventDefault();
|
|
@@ -8,7 +8,7 @@ import { useTranslations } from '../../../i18n/index.js';
|
|
|
8
8
|
export function RemovedConnectorTool({ call, defaultOpen, forceOpen, locked }) {
|
|
9
9
|
const tHardcodedUi = useTranslations('hardcodedUi');
|
|
10
10
|
const output = partOutput(call);
|
|
11
|
-
return (_jsx(BasicTool, { icon: _jsx(Plug, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "text-foreground text-xs font-medium whitespace-nowrap", children: tHardcodedUi.raw('componentsSessionToolRenderers.line5270JsxTextLegacyConnectorTool') }), _jsx("span", { className: "text-muted-foreground
|
|
11
|
+
return (_jsx(BasicTool, { icon: _jsx(Plug, { className: "size-3.5 shrink-0" }), trigger: _jsxs("div", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "text-foreground text-xs font-medium whitespace-nowrap", children: tHardcodedUi.raw('componentsSessionToolRenderers.line5270JsxTextLegacyConnectorTool') }), _jsx("span", { className: "text-muted-foreground ml-auto text-xs font-medium whitespace-nowrap", children: tHardcodedUi.raw('i18nComplete.texte1f79758cc42') })] }), defaultOpen: defaultOpen, forceOpen: forceOpen, locked: locked, children: _jsxs(_Fragment, { children: [_jsx(ToolResultCard, { bodyClassName: "px-2 py-1.5", children: _jsx("p", { className: "text-muted-foreground text-xs leading-relaxed", children: tHardcodedUi.raw('componentsSessionToolRenderers.line5283JsxTextThisLegacyConnectorToolSurfaceHasBeenRemoved') }) }), output ? (_jsx(ToolOutputFallback, { output: output, isStreaming: partStatus(call) === 'running', toolName: "legacy-integration" })) : null] }) }));
|
|
12
12
|
}
|
|
13
13
|
[
|
|
14
14
|
'integration-list',
|