@mcp-b/react-components 0.16.1 → 0.18.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/{AgentActivity-BNUNrP9O.d.ts → AgentActivity-D2SHSGFX.d.ts} +1 -1
- package/dist/{AgentChat-CrlpbvQJ.d.ts → AgentChat-ClxViuUM.d.ts} +4 -29
- package/dist/AgentMessageParts-CyD2UB3V.d.ts +46 -0
- package/dist/AgentToolRunsContext-BVe4stgw.d.ts +21 -0
- package/dist/{Button-FX_hpqxm.d.ts → Button-DLGzHsjc.d.ts} +13 -7
- package/dist/{CodeBlock-BmB4Xaqq.js → CodeBlock-Bfp5PAg3.js} +9 -6
- package/dist/{CodeBlock-BRajW4QU.d.ts → CodeBlock-gV4kZeCI.d.ts} +2 -9
- package/dist/Collapsible-N64ASIQr.d.ts +119 -0
- package/dist/{Combobox-B9Fcd6q-.d.ts → Combobox-CYc37s5l.d.ts} +11 -33
- package/dist/{FileTree-CkVbIMWV.js → FileTree-3zYtrddG.js} +46 -20
- package/dist/{Menu-Bgu-ufb5.d.ts → Menu-L6MZm-7N.d.ts} +15 -56
- package/dist/{Message-BkMdE3bS.js → Message-BXtmfc9Q.js} +13 -20
- package/dist/{ModelSelector-SlJNgwKY.js → ModelSelector-Cqw_qrUG.js} +18 -25
- package/dist/{PromptInput-BWTuXMOD.d.ts → PromptInput-Bdh9pqlo.d.ts} +41 -71
- package/dist/{ResponsiveSidebarShell-Dd9DCcBT.d.ts → ResponsiveSidebarShell-CsAh4NyL.d.ts} +1 -0
- package/dist/{Select-BeEsefzh.d.ts → Select-B_13gg_J.d.ts} +16 -44
- package/dist/{Tabs-3Zc4tb9D.d.ts → Tabs-ColWK-XA.d.ts} +14 -20
- package/dist/{ThinkChat-CzC-zNGA.js → ThinkChat-15EhfvYJ.js} +123 -73
- package/dist/{ThinkChatActivity-BFQnb2ct.d.ts → ThinkChatActivity-Bzot45kX.d.ts} +9 -4
- package/dist/{ThinkChatActivitySummary-BPmu9a-c.d.ts → ThinkChatActivitySummary-D1xOrNrq.d.ts} +1 -1
- package/dist/{ThinkChatContext-C3Eb1Xpi.d.ts → ThinkChatContext-DrsZqdaO.d.ts} +1 -1
- package/dist/ThinkRecoveryNotice-DFIcG9UX.d.ts +19 -0
- package/dist/{Toggle-CAAlNl-M.d.ts → Toggle-JKZ43D5S.d.ts} +2 -2
- package/dist/{ToggleGroup-8hPv-b69.d.ts → ToggleGroup-DNd6cDJZ.d.ts} +4 -5
- package/dist/Workspace-Jez8ffUj.d.ts +274 -0
- package/dist/WorkspaceExplorer-B9dQWNVK.d.ts +32 -0
- package/dist/{WorkspaceFile-DOZkPwzu.d.ts → WorkspaceFile-CzyHnESE.d.ts} +1 -1
- package/dist/{WorkspaceFileView-rSN_yT0L.js → WorkspaceFileView-C68Ub8S8.js} +121 -128
- package/dist/{WorkspaceLink-DIPbXrUM.js → WorkspaceLink-BYYeTQLf.js} +20 -55
- package/dist/{WorkspaceLink-DK1DWMHe.d.ts → WorkspaceLink-O-EBKUJ8.d.ts} +6 -9
- package/dist/class-names-BiMDVpUo.js +14 -0
- package/dist/components/Accordion.d.ts +5 -15
- package/dist/components/Accordion.js +16 -10
- package/dist/components/Activity.d.ts +5 -10
- package/dist/components/Activity.js +2 -2
- package/dist/components/AgentActivity.d.ts +1 -1
- package/dist/components/AgentActivity.js +4 -5
- package/dist/components/AgentActivityPreview.d.ts +9 -9
- package/dist/components/AgentActivityPreview.js +8 -12
- package/dist/components/AgentAttention.d.ts +2 -2
- package/dist/components/AgentAttention.js +1 -1
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +113 -218
- package/dist/components/AgentChatMessageEditor.js +3 -3
- package/dist/components/AgentChatTurnError.js +2 -2
- package/dist/components/AgentConnection.js +4 -4
- package/dist/components/AgentMessageParts.d.ts +2 -0
- package/dist/components/AgentMessageParts.js +119 -0
- package/dist/components/AgentToolDetail.d.ts +57 -0
- package/dist/components/AgentToolDetail.js +100 -0
- package/dist/components/AgentToolRunsContext.d.ts +2 -0
- package/dist/components/AgentToolRunsContext.js +16 -0
- package/dist/components/AlertDialog.d.ts +7 -19
- package/dist/components/AlertDialog.js +21 -32
- package/dist/components/AppTopBar.d.ts +28 -8
- package/dist/components/AppTopBar.js +36 -12
- package/dist/components/Approval.d.ts +102 -0
- package/dist/components/Approval.js +227 -0
- package/dist/components/Artifact.d.ts +3 -5
- package/dist/components/Artifact.js +7 -5
- package/dist/components/Autocomplete.d.ts +11 -33
- package/dist/components/Autocomplete.js +23 -30
- package/dist/components/Avatar.d.ts +4 -12
- package/dist/components/Avatar.js +13 -12
- package/dist/components/Badge.js +3 -0
- package/dist/components/BrowserLiveView.js +27 -12
- package/dist/components/BrowserReplay.js +4 -3
- package/dist/components/BrowserRunPanel.js +58 -78
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +14 -16
- package/dist/components/Card.d.ts +7 -8
- package/dist/components/Card.js +19 -10
- package/dist/components/ChainOfThought.d.ts +5 -11
- package/dist/components/ChainOfThought.js +3 -2
- package/dist/components/ChatGptSignInScreen.js +8 -8
- package/dist/components/Checkbox.d.ts +2 -4
- package/dist/components/Checkbox.js +6 -5
- package/dist/components/CheckboxGroup.d.ts +1 -3
- package/dist/components/CheckboxGroup.js +15 -14
- package/dist/components/Checkpoint.d.ts +64 -0
- package/dist/components/Checkpoint.js +63 -0
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.d.ts +1 -1
- package/dist/components/CodexModelSelector.js +2 -2
- package/dist/components/Collapsible.d.ts +1 -124
- package/dist/components/Collapsible.js +7 -10
- package/dist/components/Combobox.d.ts +1 -1
- package/dist/components/Combobox.js +23 -30
- package/dist/components/Commit.d.ts +5 -11
- package/dist/components/Commit.js +6 -5
- package/dist/components/Context.js +1 -1
- package/dist/components/ContextMenu.d.ts +21 -37
- package/dist/components/ContextMenu.js +34 -51
- package/dist/components/Conversation.d.ts +3 -5
- package/dist/components/Conversation.js +5 -4
- package/dist/components/DescriptionListParts.js +1 -1
- package/dist/components/Dialog.d.ts +6 -17
- package/dist/components/Dialog.js +17 -24
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +4 -3
- package/dist/components/Field.d.ts +17 -20
- package/dist/components/Field.js +20 -17
- package/dist/components/Fieldset.d.ts +2 -7
- package/dist/components/Fieldset.js +7 -6
- package/dist/components/FileTree.d.ts +6 -0
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Form.d.ts +1 -4
- package/dist/components/Form.js +3 -2
- package/dist/components/GithubMotionMark.js +1 -1
- package/dist/components/IconButton.d.ts +2 -3
- package/dist/components/IconButton.js +2 -1
- package/dist/components/InlineCitation.d.ts +66 -0
- package/dist/components/InlineCitation.js +142 -0
- package/dist/components/Input.d.ts +1 -4
- package/dist/components/Input.js +3 -2
- package/dist/components/Marker.js +1 -1
- package/dist/components/McpConnectionRequest.js +2 -2
- package/dist/components/McpServerPicker.d.ts +1 -1
- package/dist/components/McpServerPicker.js +6 -5
- package/dist/components/MediaPreviewCard.d.ts +103 -0
- package/dist/components/MediaPreviewCard.js +193 -0
- package/dist/components/Menu.d.ts +1 -1
- package/dist/components/Menu.js +33 -52
- package/dist/components/Menubar.d.ts +22 -43
- package/dist/components/Menubar.js +36 -53
- package/dist/components/Message.d.ts +7 -7
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +2 -2
- package/dist/components/MessageScroller.js +6 -5
- package/dist/components/Meter.d.ts +5 -20
- package/dist/components/Meter.js +11 -10
- package/dist/components/ModelSelector.d.ts +6 -9
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.d.ts +11 -33
- package/dist/components/NavigationMenu.js +23 -30
- package/dist/components/NumberField.d.ts +6 -24
- package/dist/components/NumberField.js +13 -12
- package/dist/components/Plan.d.ts +103 -0
- package/dist/components/Plan.js +113 -0
- package/dist/components/Popover.d.ts +9 -36
- package/dist/components/Popover.js +23 -34
- package/dist/components/PreviewCard.d.ts +6 -24
- package/dist/components/PreviewCard.js +13 -24
- package/dist/components/PricingBillingToggle.js +1 -1
- package/dist/components/PricingFAQ.js +1 -1
- package/dist/components/PricingPage.js +2 -1
- package/dist/components/PricingPlanCard.js +5 -4
- package/dist/components/PricingUsageCalculator.js +3 -3
- package/dist/components/Progress.d.ts +3 -8
- package/dist/components/Progress.js +7 -10
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +83 -218
- package/dist/components/Queue.d.ts +7 -17
- package/dist/components/Queue.js +2 -3
- package/dist/components/RadioGroup.d.ts +3 -8
- package/dist/components/RadioGroup.js +7 -10
- package/dist/components/Reasoning.d.ts +4 -8
- package/dist/components/Reasoning.js +3 -6
- package/dist/components/ResizableSidePanel.js +2 -2
- package/dist/components/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/ResponsiveSidebarShell.js +18 -11
- package/dist/components/ScrollArea.d.ts +5 -20
- package/dist/components/ScrollArea.js +12 -10
- package/dist/components/SearchField.d.ts +43 -0
- package/dist/components/SearchField.js +52 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +33 -57
- package/dist/components/Separator.d.ts +1 -5
- package/dist/components/Separator.js +3 -6
- package/dist/components/Slider.d.ts +6 -19
- package/dist/components/Slider.js +15 -14
- package/dist/components/Sources.d.ts +4 -9
- package/dist/components/Sources.js +3 -2
- package/dist/components/Stepper.js +16 -9
- package/dist/components/SubagentRunDetails.js +1 -1
- package/dist/components/SubagentRunIndicator.js +2 -2
- package/dist/components/SubagentRunList.d.ts +3 -5
- package/dist/components/SubagentRunList.js +3 -5
- package/dist/components/SubagentRunSelector.d.ts +9 -22
- package/dist/components/SubagentRunSelector.js +29 -31
- package/dist/components/Switch.d.ts +4 -7
- package/dist/components/Switch.js +6 -10
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +21 -18
- package/dist/components/Task.d.ts +4 -9
- package/dist/components/Task.js +4 -3
- package/dist/components/Terminal.d.ts +3 -4
- package/dist/components/Terminal.js +5 -4
- package/dist/components/TestResults.d.ts +4 -9
- package/dist/components/TestResults.js +11 -6
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +45 -22
- package/dist/components/ThinkChat.js +7 -5
- package/dist/components/ThinkChatActivity.d.ts +2 -2
- package/dist/components/ThinkChatActivity.js +24 -7
- package/dist/components/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/ThinkChatActivitySummary.js +7 -3
- package/dist/components/ThinkChatContext.d.ts +1 -1
- package/dist/components/ThinkChatToolPanels.js +27 -17
- package/dist/components/ThinkExecutionDetail.js +2 -2
- package/dist/components/ThinkExecutionStatus.js +2 -2
- package/dist/components/ThinkExecutionWorkbench.d.ts +30 -8
- package/dist/components/ThinkExecutionWorkbench.js +70 -134
- package/dist/components/ThinkFullApp.d.ts +40 -15
- package/dist/components/ThinkFullApp.js +193 -117
- package/dist/components/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/ThinkFullAppViewSwitch.js +2 -2
- package/dist/components/ThinkPendingApproval.d.ts +60 -0
- package/dist/components/ThinkPendingApproval.js +99 -0
- package/dist/components/ThinkRecoveryNotice.d.ts +2 -0
- package/dist/components/ThinkRecoveryNotice.js +46 -0
- package/dist/components/ThinkRoutine.js +1 -0
- package/dist/components/ThinkRoutineBrowser.d.ts +17 -9
- package/dist/components/ThinkRoutineBrowser.js +37 -44
- package/dist/components/ThinkRoutineDetail.d.ts +5 -2
- package/dist/components/ThinkRoutineDetail.js +4 -4
- package/dist/components/ThinkRoutineForm.d.ts +3 -2
- package/dist/components/ThinkRoutineForm.js +11 -10
- package/dist/components/ThinkRoutineLibrary.d.ts +27 -25
- package/dist/components/ThinkRoutineLibrary.js +104 -80
- package/dist/components/ThinkRoutineRuns.d.ts +3 -2
- package/dist/components/ThinkRoutineRuns.js +31 -24
- package/dist/components/ThinkThreadPicker.d.ts +17 -11
- package/dist/components/ThinkThreadPicker.js +163 -39
- package/dist/components/ThinkThreadShell.d.ts +1 -1
- package/dist/components/Toast.d.ts +7 -28
- package/dist/components/Toast.js +15 -14
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +10 -8
- package/dist/components/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup.js +21 -26
- package/dist/components/ToolApproval.d.ts +28 -0
- package/dist/components/ToolApproval.js +35 -0
- package/dist/components/ToolInvocation.d.ts +26 -0
- package/dist/components/ToolInvocation.js +72 -0
- package/dist/components/Toolbar.d.ts +6 -24
- package/dist/components/Toolbar.js +13 -12
- package/dist/components/Tooltip.d.ts +11 -10
- package/dist/components/Tooltip.js +17 -11
- package/dist/components/TransitionSurface.d.ts +27 -0
- package/dist/components/TransitionSurface.js +20 -0
- package/dist/components/WebPreview.d.ts +6 -7
- package/dist/components/WebPreview.js +70 -55
- package/dist/components/Workspace.d.ts +2 -2
- package/dist/components/Workspace.js +361 -346
- package/dist/components/WorkspaceBrowser.d.ts +4 -7
- package/dist/components/WorkspaceBrowser.js +16 -26
- package/dist/components/WorkspaceExplorer.d.ts +5 -33
- package/dist/components/WorkspaceExplorer.js +19 -32
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +14 -2
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.d.ts +0 -8
- package/dist/components/WorkspaceHeader.js +3 -15
- package/dist/components/WorkspaceLink.d.ts +1 -1
- package/dist/components/WorkspaceLink.js +1 -1
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-DtPMgN7e.d.ts → copy-button-D7aAYA-2.d.ts} +2 -3
- package/dist/{copy-button-Dejn5heL.js → copy-button-DeK6KXEV.js} +3 -2
- package/dist/{icons-CpfUer49.js → icons-CQJ-aMnI.js} +7 -3
- package/dist/{icons-GQd1xF4e.d.ts → icons-CYXmvKlJ.d.ts} +22 -2
- package/dist/navigation-link-Cob7KBlM.js +19 -0
- package/dist/styles/accordion.css +4 -19
- package/dist/styles/activity.css +48 -56
- package/dist/styles/agent-activity-preview.css +6 -0
- package/dist/styles/agent-chat.css +14 -63
- package/dist/styles/agent-connection.css +0 -12
- package/dist/styles/agent-tool-detail.css +54 -0
- package/dist/styles/alert-dialog.css +16 -18
- package/dist/styles/app-top-bar.css +17 -9
- package/dist/styles/approval.css +177 -0
- package/dist/styles/artifact.css +6 -18
- package/dist/styles/autocomplete.css +2 -1
- package/dist/styles/avatar.css +35 -30
- package/dist/styles/badge.css +10 -10
- package/dist/styles/base-ui-motion.css +94 -39
- package/dist/styles/browser-control-overlay.css +0 -1
- package/dist/styles/browser-live-view.css +39 -22
- package/dist/styles/browser-replay.css +1 -1
- package/dist/styles/browser-run-panel.css +13 -6
- package/dist/styles/button.css +36 -33
- package/dist/styles/card.css +5 -6
- package/dist/styles/chain-of-thought.css +22 -24
- package/dist/styles/checkbox.css +18 -5
- package/dist/styles/checkpoint.css +58 -0
- package/dist/styles/codex-model-selector.css +3 -7
- package/dist/styles/collapsible.css +10 -10
- package/dist/styles/combobox.css +4 -3
- package/dist/styles/commit.css +19 -39
- package/dist/styles/composition-motion.css +83 -0
- package/dist/styles/context-menu.css +3 -11
- package/dist/styles/context.css +11 -10
- package/dist/styles/conversation.css +18 -23
- package/dist/styles/dialog.css +15 -15
- package/dist/styles/environment-variables.css +0 -13
- package/dist/styles/field.css +32 -12
- package/dist/styles/file-tree.css +66 -22
- package/dist/styles/form.css +1 -1
- package/dist/styles/index.css +13 -4
- package/dist/styles/inline-citation.css +107 -0
- package/dist/styles/input.css +2 -2
- package/dist/styles/marker.css +14 -13
- package/dist/styles/mcp-server-picker.css +20 -47
- package/dist/styles/media-preview-card.css +160 -0
- package/dist/styles/menu.css +11 -40
- package/dist/styles/menubar.css +12 -19
- package/dist/styles/message-scroller.css +0 -12
- package/dist/styles/message.css +25 -31
- package/dist/styles/meter.css +2 -2
- package/dist/styles/model-selector.css +16 -34
- package/dist/styles/motion-reduction.css +29 -0
- package/dist/styles/navigation-menu.css +14 -30
- package/dist/styles/number-field.css +22 -4
- package/dist/styles/plan.css +132 -0
- package/dist/styles/popover.css +15 -52
- package/dist/styles/preview-card.css +2 -32
- package/dist/styles/progress.css +8 -3
- package/dist/styles/prompt-input.css +76 -269
- package/dist/styles/queue.css +48 -32
- package/dist/styles/radio.css +19 -12
- package/dist/styles/reasoning.css +2 -1
- package/dist/styles/recipes.css +207 -26
- package/dist/styles/resizable-side-panel.css +4 -10
- package/dist/styles/responsive-sidebar-shell.css +32 -34
- package/dist/styles/scroll-area.css +32 -15
- package/dist/styles/search-field.css +21 -0
- package/dist/styles/select.css +19 -12
- package/dist/styles/slider.css +25 -29
- package/dist/styles/sources.css +3 -11
- package/dist/styles/stepper.css +36 -26
- package/dist/styles/subagent-run.css +13 -71
- package/dist/styles/switch.css +32 -29
- package/dist/styles/tabs.css +79 -23
- package/dist/styles/task.css +11 -23
- package/dist/styles/test-results.css +29 -36
- package/dist/styles/theme-mode-control.css +8 -0
- package/dist/styles/think-execution-workbench.css +18 -15
- package/dist/styles/think-full-app.css +51 -100
- package/dist/styles/think-routine-library.css +51 -40
- package/dist/styles/think-thread-picker.css +207 -50
- package/dist/styles/toast.css +48 -34
- package/dist/styles/toggle-group.css +2 -36
- package/dist/styles/toggle.css +29 -5
- package/dist/styles/toolbar.css +25 -27
- package/dist/styles/tooltip.css +2 -32
- package/dist/styles/transition-surface.css +55 -0
- package/dist/styles/utilities.css +31 -0
- package/dist/styles/web-preview.css +0 -21
- package/dist/styles/workspace-explorer.css +104 -99
- package/dist/summarize-tool-input-CqTcGRYy.js +15 -0
- package/dist/think-agent-Cip5KAPj.d.ts +7 -0
- package/dist/utils/codex-model-catalog.d.ts +4 -4
- package/dist/utils/mcp-server-catalog.d.ts +132 -0
- package/dist/utils/mcp-server-catalog.js +90 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-path-L_KmjRjq.js +26 -0
- package/package.json +14 -9
- package/dist/Workspace-D39LxGvP.d.ts +0 -62
- package/dist/class-names-9UtZwb0J.js +0 -12
- package/dist/components/AppFrame.d.ts +0 -24
- package/dist/components/AppFrame.js +0 -25
- package/dist/components/Shell.d.ts +0 -163
- package/dist/components/Shell.js +0 -137
- package/dist/components/SubagentRun.d.ts +0 -86
- package/dist/components/SubagentRun.js +0 -108
- package/dist/styles/app-frame.css +0 -15
- package/dist/styles/shell.css +0 -122
- package/dist/summarize-tool-input-BUJsENSn.js +0 -12
package/dist/components/Shell.js
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/Shell.tsx
|
|
4
|
-
/**
|
|
5
|
-
* Root container for the shell layout.
|
|
6
|
-
* Provides a structured layout with optional header, action bar, panel, and content areas.
|
|
7
|
-
*
|
|
8
|
-
* Built internally for dense tools with side actions and optional panels. Use
|
|
9
|
-
* for app-like work surfaces, not marketing pages or generic sections.
|
|
10
|
-
*
|
|
11
|
-
* Styling consumes Sigvelo layout, border, surface, spacing, and focus tokens.
|
|
12
|
-
* Actions need labels because the visible affordance is usually icon-only.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* <Shell.Root heading="Project">
|
|
17
|
-
* <Shell.ActionBar>
|
|
18
|
-
* <Shell.Action icon={<FilterIcon />} label="Filter" />
|
|
19
|
-
* </Shell.ActionBar>
|
|
20
|
-
* <Shell.Content>Map or tool content</Shell.Content>
|
|
21
|
-
* </Shell.Root>
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
function ShellRoot({ className = "", heading, children, ref, ...props }) {
|
|
25
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
26
|
-
ref,
|
|
27
|
-
className: ["shell", className].filter(Boolean).join(" "),
|
|
28
|
-
...props,
|
|
29
|
-
children: [heading && /* @__PURE__ */ jsx("header", {
|
|
30
|
-
className: "shell__header",
|
|
31
|
-
children: /* @__PURE__ */ jsx("h3", {
|
|
32
|
-
className: "shell__heading",
|
|
33
|
-
children: heading
|
|
34
|
-
})
|
|
35
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
36
|
-
className: "shell__body",
|
|
37
|
-
children
|
|
38
|
-
})]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Container for action buttons that toggle panels.
|
|
43
|
-
* Typically placed on the left side of the shell.
|
|
44
|
-
*/
|
|
45
|
-
function ShellActionBar({ className = "", children, ref, ...props }) {
|
|
46
|
-
return /* @__PURE__ */ jsx("div", {
|
|
47
|
-
ref,
|
|
48
|
-
className: ["shell__action-bar", className].filter(Boolean).join(" "),
|
|
49
|
-
...props,
|
|
50
|
-
children
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* An action button within the action bar.
|
|
55
|
-
*/
|
|
56
|
-
function ShellAction({ className = "", icon, active, label, ref, ...props }) {
|
|
57
|
-
return /* @__PURE__ */ jsx("button", {
|
|
58
|
-
ref,
|
|
59
|
-
className: [
|
|
60
|
-
"shell__action",
|
|
61
|
-
active && "shell__action--active",
|
|
62
|
-
className
|
|
63
|
-
].filter(Boolean).join(" "),
|
|
64
|
-
"aria-label": label,
|
|
65
|
-
"aria-pressed": active,
|
|
66
|
-
...props,
|
|
67
|
-
children: icon
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* A collapsible panel that slides in from the side.
|
|
72
|
-
*/
|
|
73
|
-
function ShellPanel({ className = "", heading, open = false, children, ref, ...props }) {
|
|
74
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
75
|
-
ref,
|
|
76
|
-
className: [
|
|
77
|
-
"shell__panel",
|
|
78
|
-
open && "shell__panel--open",
|
|
79
|
-
className
|
|
80
|
-
].filter(Boolean).join(" "),
|
|
81
|
-
hidden: !open,
|
|
82
|
-
...props,
|
|
83
|
-
children: [heading && /* @__PURE__ */ jsx("div", {
|
|
84
|
-
className: "shell__panel-heading",
|
|
85
|
-
children: heading
|
|
86
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
87
|
-
className: "shell__panel-content",
|
|
88
|
-
children
|
|
89
|
-
})]
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* The main content area of the shell.
|
|
94
|
-
*/
|
|
95
|
-
function ShellContent({ className = "", children, ref, ...props }) {
|
|
96
|
-
return /* @__PURE__ */ jsx("div", {
|
|
97
|
-
ref,
|
|
98
|
-
className: ["shell__content", className].filter(Boolean).join(" "),
|
|
99
|
-
...props,
|
|
100
|
-
children
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* A shell layout component with action bar, collapsible panel, and content areas.
|
|
105
|
-
* Useful for map applications and other interactive tools.
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```tsx
|
|
109
|
-
* const [filterOpen, setFilterOpen] = useState(false);
|
|
110
|
-
*
|
|
111
|
-
* <Shell.Root heading="My Map Application">
|
|
112
|
-
* <Shell.ActionBar>
|
|
113
|
-
* <Shell.Action
|
|
114
|
-
* icon={<FilterIcon />}
|
|
115
|
-
* active={filterOpen}
|
|
116
|
-
* onClick={() => setFilterOpen(!filterOpen)}
|
|
117
|
-
* label="Filter"
|
|
118
|
-
* />
|
|
119
|
-
* </Shell.ActionBar>
|
|
120
|
-
* <Shell.Panel heading="Filter" open={filterOpen}>
|
|
121
|
-
* <p>Filter controls here</p>
|
|
122
|
-
* </Shell.Panel>
|
|
123
|
-
* <Shell.Content>
|
|
124
|
-
* <div id="map" />
|
|
125
|
-
* </Shell.Content>
|
|
126
|
-
* </Shell.Root>
|
|
127
|
-
* ```
|
|
128
|
-
*/
|
|
129
|
-
const Shell = {
|
|
130
|
-
Root: ShellRoot,
|
|
131
|
-
ActionBar: ShellActionBar,
|
|
132
|
-
Action: ShellAction,
|
|
133
|
-
Panel: ShellPanel,
|
|
134
|
-
Content: ShellContent
|
|
135
|
-
};
|
|
136
|
-
//#endregion
|
|
137
|
-
export { Shell };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Collapsible } from "./Collapsible.js";
|
|
2
|
-
import { BadgeProps } from "./Badge.js";
|
|
3
|
-
import { SubagentRunIndicator, SubagentRunIndicatorProps, getSubagentRunName, getSubagentRunTooltip } from "./SubagentRunIndicator.js";
|
|
4
|
-
import { SubagentRunList, SubagentRunListProps } from "./SubagentRunList.js";
|
|
5
|
-
import { SubagentRunSelector, SubagentRunSelectorProps } from "./SubagentRunSelector.js";
|
|
6
|
-
import { SubagentRunActions, SubagentRunActionsProps, SubagentRunMilestone, SubagentRunMilestoneProps, SubagentRunMilestones, SubagentRunMilestonesProps, SubagentRunProgress, SubagentRunProgressProps } from "./SubagentRunDetails.js";
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
|
|
9
|
-
//#region src/components/SubagentRun.d.ts
|
|
10
|
-
interface SubagentRunProps extends Omit<React.ComponentProps<typeof Collapsible.Root>, "className" | "unstyled"> {
|
|
11
|
-
className?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Transport-neutral inline disclosure for one delegated agent run.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated Retained subagent transcripts should open in an adjacent
|
|
17
|
-
* `ThinkFullApp` workbench panel. Use `SubagentRunSelector` in the transcript.
|
|
18
|
-
*/
|
|
19
|
-
declare function SubagentRun({
|
|
20
|
-
className,
|
|
21
|
-
ref,
|
|
22
|
-
...props
|
|
23
|
-
}: SubagentRunProps): React.JSX.Element;
|
|
24
|
-
interface SubagentRunTriggerProps extends Omit<React.ComponentProps<typeof Collapsible.Trigger>, "className" | "unstyled"> {
|
|
25
|
-
className?: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Retained subagent transcripts should not expand inline. Use
|
|
29
|
-
* `SubagentRunSelector` and render the child in a `ThinkFullApp` workbench panel.
|
|
30
|
-
*/
|
|
31
|
-
declare function SubagentRunTrigger({
|
|
32
|
-
className,
|
|
33
|
-
children,
|
|
34
|
-
ref,
|
|
35
|
-
...props
|
|
36
|
-
}: SubagentRunTriggerProps): React.JSX.Element;
|
|
37
|
-
interface SubagentRunHeadingProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
38
|
-
declare function SubagentRunHeading({
|
|
39
|
-
className,
|
|
40
|
-
ref,
|
|
41
|
-
...props
|
|
42
|
-
}: SubagentRunHeadingProps & {
|
|
43
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
44
|
-
}): React.JSX.Element;
|
|
45
|
-
interface SubagentRunTitleProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
46
|
-
declare function SubagentRunTitle({
|
|
47
|
-
className,
|
|
48
|
-
ref,
|
|
49
|
-
...props
|
|
50
|
-
}: SubagentRunTitleProps & {
|
|
51
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
52
|
-
}): React.JSX.Element;
|
|
53
|
-
interface SubagentRunDescriptionProps extends React.HTMLAttributes<HTMLSpanElement> {}
|
|
54
|
-
declare function SubagentRunDescription({
|
|
55
|
-
className,
|
|
56
|
-
ref,
|
|
57
|
-
...props
|
|
58
|
-
}: SubagentRunDescriptionProps & {
|
|
59
|
-
ref?: React.Ref<HTMLSpanElement>;
|
|
60
|
-
}): React.JSX.Element;
|
|
61
|
-
type SubagentRunStatusTone = "active" | "complete" | "error" | "stopped" | "warning";
|
|
62
|
-
interface SubagentRunStatusProps extends Omit<BadgeProps, "color"> {
|
|
63
|
-
tone?: SubagentRunStatusTone;
|
|
64
|
-
}
|
|
65
|
-
/** Visible status label. A transport adapter owns any debounced live announcement. */
|
|
66
|
-
declare function SubagentRunStatus({
|
|
67
|
-
className,
|
|
68
|
-
tone,
|
|
69
|
-
size,
|
|
70
|
-
...props
|
|
71
|
-
}: SubagentRunStatusProps): React.JSX.Element;
|
|
72
|
-
interface SubagentRunContentProps extends Omit<React.ComponentProps<typeof Collapsible.Panel>, "className" | "unstyled"> {
|
|
73
|
-
className?: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* @deprecated Retained subagent transcripts should live in an adjacent
|
|
77
|
-
* `ThinkFullApp` workbench panel, not below the selector.
|
|
78
|
-
*/
|
|
79
|
-
declare function SubagentRunContent({
|
|
80
|
-
className,
|
|
81
|
-
children,
|
|
82
|
-
ref,
|
|
83
|
-
...props
|
|
84
|
-
}: SubagentRunContentProps): React.JSX.Element;
|
|
85
|
-
//#endregion
|
|
86
|
-
export { SubagentRun, SubagentRunActions, type SubagentRunActionsProps, SubagentRunContent, SubagentRunContentProps, SubagentRunDescription, SubagentRunDescriptionProps, SubagentRunHeading, SubagentRunHeadingProps, SubagentRunIndicator, type SubagentRunIndicatorProps, SubagentRunList, type SubagentRunListProps, SubagentRunMilestone, type SubagentRunMilestoneProps, SubagentRunMilestones, type SubagentRunMilestonesProps, SubagentRunProgress, type SubagentRunProgressProps, SubagentRunProps, SubagentRunSelector, type SubagentRunSelectorProps, SubagentRunStatus, SubagentRunStatusProps, SubagentRunStatusTone, SubagentRunTitle, SubagentRunTitleProps, SubagentRunTrigger, SubagentRunTriggerProps, getSubagentRunName, getSubagentRunTooltip };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Collapsible } from "./Collapsible.js";
|
|
2
|
-
import { t as cx } from "../class-names-9UtZwb0J.js";
|
|
3
|
-
import { Button } from "./Button.js";
|
|
4
|
-
import { Badge } from "./Badge.js";
|
|
5
|
-
import { NaniteMark } from "./NaniteScene.js";
|
|
6
|
-
import { SubagentRunIndicator, getSubagentRunName, getSubagentRunTooltip } from "./SubagentRunIndicator.js";
|
|
7
|
-
import { SubagentRunSelector } from "./SubagentRunSelector.js";
|
|
8
|
-
import { SubagentRunList } from "./SubagentRunList.js";
|
|
9
|
-
import { SubagentRunActions, SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress } from "./SubagentRunDetails.js";
|
|
10
|
-
import "react";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
//#region src/components/SubagentRun.tsx
|
|
13
|
-
/**
|
|
14
|
-
* Transport-neutral inline disclosure for one delegated agent run.
|
|
15
|
-
*
|
|
16
|
-
* @deprecated Retained subagent transcripts should open in an adjacent
|
|
17
|
-
* `ThinkFullApp` workbench panel. Use `SubagentRunSelector` in the transcript.
|
|
18
|
-
*/
|
|
19
|
-
function SubagentRun({ className, ref, ...props }) {
|
|
20
|
-
return /* @__PURE__ */ jsx(Collapsible.Root, {
|
|
21
|
-
ref,
|
|
22
|
-
"data-slot": "subagent-run",
|
|
23
|
-
className: cx("subagent-run", className),
|
|
24
|
-
...props,
|
|
25
|
-
unstyled: true
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated Retained subagent transcripts should not expand inline. Use
|
|
30
|
-
* `SubagentRunSelector` and render the child in a `ThinkFullApp` workbench panel.
|
|
31
|
-
*/
|
|
32
|
-
function SubagentRunTrigger({ className, children, ref, ...props }) {
|
|
33
|
-
return /* @__PURE__ */ jsxs(Collapsible.Trigger, {
|
|
34
|
-
ref,
|
|
35
|
-
"data-slot": "subagent-run-trigger",
|
|
36
|
-
className: cx("subagent-run__trigger", className),
|
|
37
|
-
render: /* @__PURE__ */ jsx(Button, {
|
|
38
|
-
type: "button",
|
|
39
|
-
variant: "outline",
|
|
40
|
-
color: "neutral",
|
|
41
|
-
size: "sm"
|
|
42
|
-
}),
|
|
43
|
-
...props,
|
|
44
|
-
unstyled: true,
|
|
45
|
-
children: [/* @__PURE__ */ jsx(NaniteMark, {}), /* @__PURE__ */ jsx("span", {
|
|
46
|
-
className: "subagent-run__trigger-content",
|
|
47
|
-
children
|
|
48
|
-
})]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function SubagentRunHeading({ className, ref, ...props }) {
|
|
52
|
-
return /* @__PURE__ */ jsx("span", {
|
|
53
|
-
ref,
|
|
54
|
-
className: cx("subagent-run__heading", className),
|
|
55
|
-
...props
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function SubagentRunTitle({ className, ref, ...props }) {
|
|
59
|
-
return /* @__PURE__ */ jsx("span", {
|
|
60
|
-
ref,
|
|
61
|
-
className: cx("subagent-run__title", className),
|
|
62
|
-
...props
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function SubagentRunDescription({ className, ref, ...props }) {
|
|
66
|
-
return /* @__PURE__ */ jsx("span", {
|
|
67
|
-
ref,
|
|
68
|
-
className: cx("subagent-run__description", className),
|
|
69
|
-
...props
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
const STATUS_COLOR = {
|
|
73
|
-
active: "primary",
|
|
74
|
-
complete: "success",
|
|
75
|
-
error: "destructive",
|
|
76
|
-
stopped: "neutral",
|
|
77
|
-
warning: "warning"
|
|
78
|
-
};
|
|
79
|
-
/** Visible status label. A transport adapter owns any debounced live announcement. */
|
|
80
|
-
function SubagentRunStatus({ className, tone = "active", size = "sm", ...props }) {
|
|
81
|
-
return /* @__PURE__ */ jsx(Badge, {
|
|
82
|
-
"data-slot": "subagent-run-status",
|
|
83
|
-
"data-tone": tone,
|
|
84
|
-
className: cx("subagent-run__status", className),
|
|
85
|
-
color: STATUS_COLOR[tone],
|
|
86
|
-
size,
|
|
87
|
-
...props
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @deprecated Retained subagent transcripts should live in an adjacent
|
|
92
|
-
* `ThinkFullApp` workbench panel, not below the selector.
|
|
93
|
-
*/
|
|
94
|
-
function SubagentRunContent({ className, children, ref, ...props }) {
|
|
95
|
-
return /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
96
|
-
ref,
|
|
97
|
-
"data-slot": "subagent-run-content",
|
|
98
|
-
className: cx("subagent-run__content", className),
|
|
99
|
-
...props,
|
|
100
|
-
unstyled: true,
|
|
101
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
102
|
-
className: "subagent-run__content-inner",
|
|
103
|
-
children
|
|
104
|
-
})
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
export { SubagentRun, SubagentRunActions, SubagentRunContent, SubagentRunDescription, SubagentRunHeading, SubagentRunIndicator, SubagentRunList, SubagentRunMilestone, SubagentRunMilestones, SubagentRunProgress, SubagentRunSelector, SubagentRunStatus, SubagentRunTitle, SubagentRunTrigger, getSubagentRunName, getSubagentRunTooltip };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
.app-frame {
|
|
2
|
-
block-size: 100%;
|
|
3
|
-
min-block-size: 0;
|
|
4
|
-
display: grid;
|
|
5
|
-
grid-template-rows: auto minmax(0, 1fr);
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
color: var(--sigvelo-color-text);
|
|
8
|
-
background: var(--sigvelo-color-canvas);
|
|
9
|
-
container-type: inline-size;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.app-frame__body {
|
|
13
|
-
min-block-size: 0;
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
}
|
package/dist/styles/shell.css
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/* Shell Component */
|
|
2
|
-
.shell {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
height: 100%;
|
|
6
|
-
min-height: 400px;
|
|
7
|
-
border-radius: var(--sigvelo-radius-md);
|
|
8
|
-
border: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
9
|
-
var(--sigvelo-color-neutral-border-muted);
|
|
10
|
-
background: var(--sigvelo-color-surface);
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.shell__header {
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
padding: var(--sigvelo-spacing-3) 1rem;
|
|
18
|
-
background: var(--sigvelo-color-neutral-bg-subtle);
|
|
19
|
-
border-bottom: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
20
|
-
var(--sigvelo-color-neutral-border-muted);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.shell__heading {
|
|
24
|
-
margin: 0;
|
|
25
|
-
font-size: 0.9375rem;
|
|
26
|
-
font-weight: var(--sigvelo-font-weight-semibold);
|
|
27
|
-
color: var(--sigvelo-color-text);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.shell__body {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex: 1;
|
|
33
|
-
min-height: 0;
|
|
34
|
-
position: relative;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* Action Bar */
|
|
38
|
-
.shell__action-bar {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
gap: 0.25rem;
|
|
42
|
-
padding: 0.5rem;
|
|
43
|
-
background: var(--sigvelo-color-neutral-bg-subtle);
|
|
44
|
-
border-right: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
45
|
-
var(--sigvelo-color-neutral-border-muted);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.shell__action {
|
|
49
|
-
display: flex;
|
|
50
|
-
align-items: center;
|
|
51
|
-
justify-content: center;
|
|
52
|
-
width: 2.5rem;
|
|
53
|
-
height: 2.5rem;
|
|
54
|
-
padding: 0;
|
|
55
|
-
border: none;
|
|
56
|
-
border-radius: var(--sigvelo-radius-md);
|
|
57
|
-
background: transparent;
|
|
58
|
-
color: var(--sigvelo-color-text-muted);
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
transition:
|
|
61
|
-
background-color 0.15s ease,
|
|
62
|
-
color 0.15s ease;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.shell__action:hover {
|
|
66
|
-
background: var(--sigvelo-color-neutral-bg-subtle);
|
|
67
|
-
color: var(--sigvelo-color-neutral-text-on-subtle);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.shell__action--active {
|
|
71
|
-
background: var(--sigvelo-color-primary-bg);
|
|
72
|
-
color: var(--sigvelo-color-primary-text-on-bg);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.shell__action--active:hover {
|
|
76
|
-
background: color-mix(in oklab, var(--sigvelo-color-primary-bg), black 5%);
|
|
77
|
-
color: var(--sigvelo-color-primary-text-on-bg);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.shell__action svg {
|
|
81
|
-
width: 1.25rem;
|
|
82
|
-
height: 1.25rem;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* Panel */
|
|
86
|
-
.shell__panel {
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
width: 260px;
|
|
90
|
-
max-width: 100%;
|
|
91
|
-
background: var(--sigvelo-color-surface);
|
|
92
|
-
border-right: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
93
|
-
var(--sigvelo-color-neutral-border-muted);
|
|
94
|
-
overflow: hidden;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.shell__panel[hidden] {
|
|
98
|
-
display: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.shell__panel-heading {
|
|
102
|
-
padding: var(--sigvelo-spacing-3) 1rem;
|
|
103
|
-
font-size: var(--sigvelo-text-sm);
|
|
104
|
-
font-weight: var(--sigvelo-font-weight-bold);
|
|
105
|
-
color: var(--sigvelo-color-text);
|
|
106
|
-
border-bottom: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
107
|
-
var(--sigvelo-color-neutral-border-muted);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.shell__panel-content {
|
|
111
|
-
flex: 1;
|
|
112
|
-
overflow-y: auto;
|
|
113
|
-
padding: 1rem;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* Content */
|
|
117
|
-
.shell__content {
|
|
118
|
-
flex: 1;
|
|
119
|
-
min-width: 0;
|
|
120
|
-
position: relative;
|
|
121
|
-
overflow: hidden;
|
|
122
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/components/_internal/summarize-tool-input.ts
|
|
2
|
-
/** First non-empty line of the salient string input (command, path, query…). */
|
|
3
|
-
function summarizeToolInput(input) {
|
|
4
|
-
if (!input || typeof input !== "object") return null;
|
|
5
|
-
for (const value of Object.values(input)) if (typeof value === "string" && value.trim()) {
|
|
6
|
-
const line = value.trim().split("\n", 1)[0] ?? "";
|
|
7
|
-
return line.length > 64 ? `${line.slice(0, 64)}…` : line;
|
|
8
|
-
}
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { summarizeToolInput as t };
|