@mcp-b/react-components 0.14.2 → 0.16.1
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 +36 -0
- package/dist/{AgentChat-DQkqt82e.d.ts → AgentChat-CrlpbvQJ.d.ts} +58 -6
- package/dist/{CodeBlock-DUh9WOGo.d.ts → CodeBlock-BRajW4QU.d.ts} +1 -1
- package/dist/{CodeBlock-BUFXG8HW.js → CodeBlock-BmB4Xaqq.js} +15 -4
- package/dist/{FileTree-mpEIcfzA.js → FileTree-CkVbIMWV.js} +82 -89
- package/dist/Message-BkMdE3bS.js +375 -0
- package/dist/{ModelSelector-CPCpFAUt.js → ModelSelector-SlJNgwKY.js} +2 -2
- package/dist/{PromptInput-ClNqBiIw.d.ts → PromptInput-BWTuXMOD.d.ts} +123 -5
- package/dist/ResponsiveSidebarShell-Dd9DCcBT.d.ts +67 -0
- package/dist/{Select-Dl_vF_Bt.d.ts → Select-BeEsefzh.d.ts} +12 -2
- package/dist/{ThinkChat-BPcehdbP.js → ThinkChat-CzC-zNGA.js} +24 -36
- package/dist/{ThinkChatActivity-BmwuIigx.d.ts → ThinkChatActivity-BFQnb2ct.d.ts} +3 -10
- package/dist/ThinkChatActivitySummary-BPmu9a-c.d.ts +39 -0
- package/dist/{ThinkChatToolParts-CDEjqS6A.d.ts → ThinkChatToolParts-CSzVwMXf.d.ts} +13 -3
- package/dist/ThinkExecutionRun-ChhWhOoU.d.ts +30 -0
- package/dist/Toggle-CAAlNl-M.d.ts +69 -0
- package/dist/ToggleGroup-8hPv-b69.d.ts +73 -0
- package/dist/Workspace-D39LxGvP.d.ts +62 -0
- package/dist/WorkspaceFile-DOZkPwzu.d.ts +106 -0
- package/dist/WorkspaceFileView-rSN_yT0L.js +744 -0
- package/dist/WorkspaceLink-DIPbXrUM.js +337 -0
- package/dist/WorkspaceLink-DK1DWMHe.d.ts +89 -0
- package/dist/components/Activity.d.ts +27 -1
- package/dist/components/Activity.js +33 -15
- package/dist/components/AgentActivity.d.ts +2 -0
- package/dist/components/AgentActivity.js +45 -0
- package/dist/components/AgentActivityPreview.d.ts +46 -0
- package/dist/components/AgentActivityPreview.js +94 -0
- package/dist/components/AgentAttention.d.ts +73 -0
- package/dist/components/AgentAttention.js +85 -0
- package/dist/components/AgentChat.d.ts +2 -2
- package/dist/components/AgentChat.js +224 -200
- package/dist/components/AgentChatMessageEditor.d.ts +29 -0
- package/dist/components/AgentChatMessageEditor.js +92 -0
- package/dist/components/AgentChatTurnError.d.ts +17 -0
- package/dist/components/AgentChatTurnError.js +40 -0
- package/dist/components/AgentConnection.d.ts +12 -17
- package/dist/components/AgentConnection.js +99 -91
- package/dist/components/AppFrame.d.ts +24 -0
- package/dist/components/AppFrame.js +25 -0
- package/dist/components/AppTopBar.d.ts +71 -0
- package/dist/components/AppTopBar.js +82 -0
- package/dist/components/Artifact.js +1 -1
- package/dist/components/BrowserLiveView.js +1 -1
- package/dist/components/BrowserReplay.js +1 -1
- package/dist/components/BrowserRunPanel.js +1 -1
- package/dist/components/Card.d.ts +3 -0
- package/dist/components/Card.js +2 -1
- package/dist/components/ChainOfThought.d.ts +1 -1
- package/dist/components/ChainOfThought.js +1 -1
- package/dist/components/ChatGptSignInScreen.js +2 -2
- package/dist/components/Checkbox.js +5 -13
- package/dist/components/CheckboxGroup.d.ts +58 -2
- package/dist/components/CheckboxGroup.js +59 -1
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.js +1 -1
- package/dist/components/Commit.js +2 -2
- package/dist/components/ContextMenu.js +1 -1
- package/dist/components/Conversation.js +1 -1
- package/dist/components/DescriptionList.d.ts +12 -0
- package/dist/components/DescriptionList.js +11 -0
- package/dist/components/DescriptionListParts.d.ts +37 -0
- package/dist/components/DescriptionListParts.js +35 -0
- package/dist/components/EnvironmentVariables.js +2 -2
- package/dist/components/Fieldset.d.ts +13 -1
- package/dist/components/Fieldset.js +11 -2
- package/dist/components/FileTree.js +1 -1
- package/dist/components/IconButton.d.ts +33 -0
- package/dist/components/IconButton.js +27 -0
- package/dist/components/McpConnectionRequest.d.ts +44 -0
- package/dist/components/McpConnectionRequest.js +122 -0
- package/dist/components/McpServerPicker.d.ts +48 -23
- package/dist/components/McpServerPicker.js +238 -189
- package/dist/components/Menubar.js +1 -1
- package/dist/components/Message.d.ts +1 -0
- package/dist/components/Message.js +1 -285
- package/dist/components/MessageScroller.js +1 -1
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/Pricing.d.ts +37 -0
- package/dist/components/Pricing.js +17 -0
- package/dist/components/PricingBillingToggle.d.ts +23 -0
- package/dist/components/PricingBillingToggle.js +86 -0
- package/dist/components/PricingConfirmationDialog.d.ts +25 -0
- package/dist/components/PricingConfirmationDialog.js +57 -0
- package/dist/components/PricingFAQ.d.ts +18 -0
- package/dist/components/PricingFAQ.js +27 -0
- package/dist/components/PricingPage.d.ts +2 -38
- package/dist/components/PricingPage.js +39 -359
- package/dist/components/PricingPlanCard.d.ts +22 -0
- package/dist/components/PricingPlanCard.js +109 -0
- package/dist/components/PricingUsageCalculator.d.ts +22 -0
- package/dist/components/PricingUsageCalculator.js +96 -0
- package/dist/components/PromptInput.d.ts +2 -2
- package/dist/components/PromptInput.js +210 -15
- package/dist/components/Queue.js +1 -1
- package/dist/components/Reasoning.d.ts +2 -1
- package/dist/components/Reasoning.js +14 -29
- package/dist/components/ResizableSidePanel.d.ts +57 -0
- package/dist/components/ResizableSidePanel.js +151 -0
- package/dist/components/ResponsiveSidebarShell.d.ts +2 -0
- package/dist/components/ResponsiveSidebarShell.js +129 -0
- package/dist/components/Select.d.ts +2 -2
- package/dist/components/Select.js +11 -2
- package/dist/components/Slider.d.ts +13 -1
- package/dist/components/Slider.js +11 -0
- package/dist/components/Sources.js +1 -1
- package/dist/components/Stepper.d.ts +4 -0
- package/dist/components/Stepper.js +5 -3
- package/dist/components/SubagentRun.d.ts +18 -19
- package/dist/components/SubagentRun.js +25 -18
- package/dist/components/SubagentRunIndicator.d.ts +22 -0
- package/dist/components/SubagentRunIndicator.js +33 -0
- package/dist/components/SubagentRunList.d.ts +25 -0
- package/dist/components/SubagentRunList.js +26 -0
- package/dist/components/SubagentRunSelector.d.ts +47 -0
- package/dist/components/SubagentRunSelector.js +55 -0
- package/dist/components/Task.js +1 -1
- package/dist/components/Terminal.js +2 -2
- package/dist/components/TestResults.js +1 -1
- package/dist/components/Textarea.d.ts +21 -0
- package/dist/components/Textarea.js +19 -0
- package/dist/components/ThemeModeControl.d.ts +24 -0
- package/dist/components/ThemeModeControl.js +52 -0
- package/dist/components/ThemeProvider.d.ts +38 -0
- package/dist/components/ThemeProvider.js +80 -0
- package/dist/components/ThinkChat.d.ts +29 -6
- package/dist/components/ThinkChat.js +7 -4
- package/dist/components/ThinkChatActivity.d.ts +3 -2
- package/dist/components/ThinkChatActivity.js +12 -318
- package/dist/components/ThinkChatActivitySummary.d.ts +2 -0
- package/dist/components/ThinkChatActivitySummary.js +421 -0
- package/dist/components/ThinkChatToolPanels.d.ts +7 -5
- package/dist/components/ThinkChatToolPanels.js +70 -8
- package/dist/components/ThinkChatToolParts.d.ts +2 -2
- package/dist/components/ThinkChatToolParts.js +36 -10
- package/dist/components/ThinkExecutionDetail.d.ts +20 -0
- package/dist/components/ThinkExecutionDetail.js +80 -0
- package/dist/components/ThinkExecutionRun.d.ts +2 -0
- package/dist/components/ThinkExecutionRun.js +72 -0
- package/dist/components/ThinkExecutionStatus.d.ts +22 -0
- package/dist/components/ThinkExecutionStatus.js +36 -0
- package/dist/components/ThinkExecutionWorkbench.d.ts +7 -0
- package/dist/components/ThinkExecutionWorkbench.js +69 -225
- package/dist/components/ThinkFullApp.d.ts +58 -14
- package/dist/components/ThinkFullApp.js +154 -160
- package/dist/components/ThinkFullAppViewSwitch.d.ts +31 -0
- package/dist/components/ThinkFullAppViewSwitch.js +34 -0
- package/dist/components/ThinkRoutine.d.ts +36 -0
- package/dist/components/ThinkRoutine.js +15 -0
- package/dist/components/ThinkRoutineBrowser.d.ts +25 -0
- package/dist/components/ThinkRoutineBrowser.js +156 -0
- package/dist/components/ThinkRoutineDetail.d.ts +24 -0
- package/dist/components/ThinkRoutineDetail.js +102 -0
- package/dist/components/ThinkRoutineForm.d.ts +32 -0
- package/dist/components/ThinkRoutineForm.js +151 -0
- package/dist/components/ThinkRoutineLibrary.d.ts +74 -0
- package/dist/components/ThinkRoutineLibrary.js +178 -0
- package/dist/components/ThinkRoutineRuns.d.ts +24 -0
- package/dist/components/ThinkRoutineRuns.js +68 -0
- package/dist/components/ThinkThreadPicker.d.ts +18 -1
- package/dist/components/ThinkThreadPicker.js +51 -5
- package/dist/components/ThinkThreadShell.d.ts +12 -9
- package/dist/components/ThinkThreadShell.js +17 -137
- package/dist/components/Toggle.d.ts +1 -68
- package/dist/components/ToggleGroup.d.ts +1 -72
- package/dist/components/Tooltip.d.ts +3 -1
- package/dist/components/Tooltip.js +4 -2
- package/dist/components/WebPreview.js +1 -1
- package/dist/components/Workspace.d.ts +2 -0
- package/dist/components/Workspace.js +424 -0
- package/dist/components/WorkspaceBrowser.d.ts +32 -0
- package/dist/components/WorkspaceBrowser.js +103 -0
- package/dist/components/WorkspaceExplorer.d.ts +12 -79
- package/dist/components/WorkspaceExplorer.js +116 -330
- package/dist/components/WorkspaceFile.d.ts +2 -0
- package/dist/components/WorkspaceFile.js +195 -0
- package/dist/components/WorkspaceFileView.d.ts +26 -0
- package/dist/components/WorkspaceFileView.js +2 -0
- package/dist/components/WorkspaceHeader.d.ts +35 -0
- package/dist/components/WorkspaceHeader.js +51 -0
- package/dist/components/WorkspaceLink.d.ts +2 -0
- package/dist/components/WorkspaceLink.js +2 -0
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-DUMLYdsk.js → copy-button-Dejn5heL.js} +1 -1
- package/dist/icons-CpfUer49.js +85 -0
- package/dist/{icons-CUCz_Sft.d.ts → icons-GQd1xF4e.d.ts} +51 -1
- package/dist/styles/activity-header.css +75 -0
- package/dist/styles/activity.css +49 -63
- package/dist/styles/agent-activity-preview-overlay.css +80 -0
- package/dist/styles/agent-activity-preview.css +233 -0
- package/dist/styles/agent-attention.css +128 -0
- package/dist/styles/agent-chat.css +133 -4
- package/dist/styles/agent-connection.css +9 -9
- package/dist/styles/alert-dialog.css +11 -11
- package/dist/styles/app-frame.css +15 -0
- package/dist/styles/app-top-bar.css +102 -0
- package/dist/styles/avatar.css +0 -1
- package/dist/styles/browser-control-overlay.css +184 -0
- package/dist/styles/card.css +29 -8
- package/dist/styles/chain-of-thought.css +5 -5
- package/dist/styles/checkbox-group.css +69 -0
- package/dist/styles/codex-model-selector.css +3 -3
- package/dist/styles/combobox.css +2 -1
- package/dist/styles/context-menu.css +1 -1
- package/dist/styles/description-list.css +50 -0
- package/dist/styles/dialog.css +11 -11
- package/dist/styles/field.css +14 -14
- package/dist/styles/fieldset.css +15 -4
- package/dist/styles/index.css +14 -2
- package/dist/styles/mcp-connection-request.css +60 -0
- package/dist/styles/mcp-server-picker.css +96 -68
- package/dist/styles/menu.css +1 -1
- package/dist/styles/message.css +4 -43
- package/dist/styles/model-selector.css +18 -12
- package/dist/styles/popover.css +9 -9
- package/dist/styles/preview-card.css +1 -1
- package/dist/styles/pricing-page.css +21 -27
- package/dist/styles/prompt-input.css +225 -32
- package/dist/styles/reasoning.css +1 -55
- package/dist/styles/recipes.css +50 -24
- package/dist/styles/resizable-side-panel.css +66 -0
- package/dist/styles/responsive-sidebar-shell.css +169 -0
- package/dist/styles/select.css +13 -3
- package/dist/styles/sources.css +6 -6
- package/dist/styles/stepper.css +13 -0
- package/dist/styles/streamdown.css +0 -4
- package/dist/styles/subagent-run.css +59 -42
- package/dist/styles/task.css +17 -10
- package/dist/styles/test-results.css +17 -10
- package/dist/styles/textarea.css +20 -0
- package/dist/styles/theme-mode-control.css +72 -0
- package/dist/styles/think-execution-status.css +49 -0
- package/dist/styles/think-execution-workbench.css +16 -80
- package/dist/styles/think-full-app.css +143 -128
- package/dist/styles/think-routine-library.css +491 -0
- package/dist/styles/think-thread-picker.css +47 -3
- package/dist/styles/toast.css +6 -6
- package/dist/styles/toggle-group.css +7 -0
- package/dist/styles/tooltip.css +1 -1
- package/dist/styles/workspace-explorer.css +516 -64
- package/dist/utils/mcp-server-catalog.d.ts +82 -78
- package/dist/utils/mcp-server-catalog.js +64 -41
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/utils/theme.d.ts +22 -0
- package/dist/utils/theme.js +55 -0
- package/package.json +34 -28
- package/dist/icons-Ba9THQKz.js +0 -64
- package/dist/styles/think-resize-handle.css +0 -33
- package/dist/styles/think-thread-shell.css +0 -219
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import { findSkillMdFile, parseSkillContent, validateSkillContent } from "agent-skills-ts-sdk";
|
|
2
|
+
//#region src/components/WorkspaceFile.ts
|
|
3
|
+
const LANGUAGE_BY_EXTENSION = {
|
|
4
|
+
ts: "ts",
|
|
5
|
+
mts: "ts",
|
|
6
|
+
cts: "ts",
|
|
7
|
+
tsx: "tsx",
|
|
8
|
+
js: "js",
|
|
9
|
+
mjs: "js",
|
|
10
|
+
cjs: "js",
|
|
11
|
+
jsx: "jsx",
|
|
12
|
+
json: "json",
|
|
13
|
+
jsonc: "jsonc",
|
|
14
|
+
css: "css",
|
|
15
|
+
html: "html",
|
|
16
|
+
md: "md",
|
|
17
|
+
mdx: "mdx",
|
|
18
|
+
sh: "bash",
|
|
19
|
+
bash: "bash",
|
|
20
|
+
zsh: "bash",
|
|
21
|
+
yml: "yaml",
|
|
22
|
+
yaml: "yaml",
|
|
23
|
+
toml: "toml",
|
|
24
|
+
py: "python",
|
|
25
|
+
rs: "rust",
|
|
26
|
+
go: "go",
|
|
27
|
+
sql: "sql",
|
|
28
|
+
xml: "xml",
|
|
29
|
+
svg: "xml",
|
|
30
|
+
vue: "vue",
|
|
31
|
+
svelte: "svelte"
|
|
32
|
+
};
|
|
33
|
+
const MEDIA_BY_EXTENSION = {
|
|
34
|
+
png: {
|
|
35
|
+
kind: "image",
|
|
36
|
+
mimeType: "image/png"
|
|
37
|
+
},
|
|
38
|
+
jpg: {
|
|
39
|
+
kind: "image",
|
|
40
|
+
mimeType: "image/jpeg"
|
|
41
|
+
},
|
|
42
|
+
jpeg: {
|
|
43
|
+
kind: "image",
|
|
44
|
+
mimeType: "image/jpeg"
|
|
45
|
+
},
|
|
46
|
+
webp: {
|
|
47
|
+
kind: "image",
|
|
48
|
+
mimeType: "image/webp"
|
|
49
|
+
},
|
|
50
|
+
gif: {
|
|
51
|
+
kind: "image",
|
|
52
|
+
mimeType: "image/gif"
|
|
53
|
+
},
|
|
54
|
+
svg: {
|
|
55
|
+
kind: "image",
|
|
56
|
+
mimeType: "image/svg+xml"
|
|
57
|
+
},
|
|
58
|
+
pdf: {
|
|
59
|
+
kind: "pdf",
|
|
60
|
+
mimeType: "application/pdf"
|
|
61
|
+
},
|
|
62
|
+
mp3: {
|
|
63
|
+
kind: "audio",
|
|
64
|
+
mimeType: "audio/mpeg"
|
|
65
|
+
},
|
|
66
|
+
wav: {
|
|
67
|
+
kind: "audio",
|
|
68
|
+
mimeType: "audio/wav"
|
|
69
|
+
},
|
|
70
|
+
ogg: {
|
|
71
|
+
kind: "audio",
|
|
72
|
+
mimeType: "audio/ogg"
|
|
73
|
+
},
|
|
74
|
+
oga: {
|
|
75
|
+
kind: "audio",
|
|
76
|
+
mimeType: "audio/ogg"
|
|
77
|
+
},
|
|
78
|
+
m4a: {
|
|
79
|
+
kind: "audio",
|
|
80
|
+
mimeType: "audio/mp4"
|
|
81
|
+
},
|
|
82
|
+
aac: {
|
|
83
|
+
kind: "audio",
|
|
84
|
+
mimeType: "audio/aac"
|
|
85
|
+
},
|
|
86
|
+
flac: {
|
|
87
|
+
kind: "audio",
|
|
88
|
+
mimeType: "audio/flac"
|
|
89
|
+
},
|
|
90
|
+
mp4: {
|
|
91
|
+
kind: "video",
|
|
92
|
+
mimeType: "video/mp4"
|
|
93
|
+
},
|
|
94
|
+
webm: {
|
|
95
|
+
kind: "video",
|
|
96
|
+
mimeType: "video/webm"
|
|
97
|
+
},
|
|
98
|
+
ogv: {
|
|
99
|
+
kind: "video",
|
|
100
|
+
mimeType: "video/ogg"
|
|
101
|
+
},
|
|
102
|
+
mov: {
|
|
103
|
+
kind: "video",
|
|
104
|
+
mimeType: "video/quicktime"
|
|
105
|
+
},
|
|
106
|
+
m4v: {
|
|
107
|
+
kind: "video",
|
|
108
|
+
mimeType: "video/x-m4v"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
const SUPPORTED_IMAGE_MIME_TYPES = /* @__PURE__ */ new Set([
|
|
112
|
+
"image/png",
|
|
113
|
+
"image/jpeg",
|
|
114
|
+
"image/webp",
|
|
115
|
+
"image/gif",
|
|
116
|
+
"image/svg+xml"
|
|
117
|
+
]);
|
|
118
|
+
const GENERIC_MEDIA_MIME_TYPES = /* @__PURE__ */ new Set([
|
|
119
|
+
"application/octet-stream",
|
|
120
|
+
"application/binary",
|
|
121
|
+
"binary/octet-stream"
|
|
122
|
+
]);
|
|
123
|
+
function normalizeWorkspaceMimeType(mimeType) {
|
|
124
|
+
return mimeType?.split(";", 1)[0]?.trim().toLowerCase() || null;
|
|
125
|
+
}
|
|
126
|
+
function inferWorkspaceMediaFromMime(mimeType) {
|
|
127
|
+
const normalizedMimeType = normalizeWorkspaceMimeType(mimeType);
|
|
128
|
+
if (!normalizedMimeType) return null;
|
|
129
|
+
if (SUPPORTED_IMAGE_MIME_TYPES.has(normalizedMimeType)) return {
|
|
130
|
+
kind: "image",
|
|
131
|
+
mimeType: normalizedMimeType
|
|
132
|
+
};
|
|
133
|
+
if (normalizedMimeType === "application/pdf") return {
|
|
134
|
+
kind: "pdf",
|
|
135
|
+
mimeType: normalizedMimeType
|
|
136
|
+
};
|
|
137
|
+
if (normalizedMimeType.startsWith("audio/")) return {
|
|
138
|
+
kind: "audio",
|
|
139
|
+
mimeType: normalizedMimeType
|
|
140
|
+
};
|
|
141
|
+
if (normalizedMimeType.startsWith("video/")) return {
|
|
142
|
+
kind: "video",
|
|
143
|
+
mimeType: normalizedMimeType
|
|
144
|
+
};
|
|
145
|
+
return null;
|
|
146
|
+
}
|
|
147
|
+
function getWorkspaceBasename(path) {
|
|
148
|
+
return path.split("/").filter(Boolean).at(-1) ?? path;
|
|
149
|
+
}
|
|
150
|
+
function isWorkspaceMarkdownPath(path) {
|
|
151
|
+
return getWorkspaceBasename(path).toLowerCase().endsWith(".md");
|
|
152
|
+
}
|
|
153
|
+
function isWorkspaceSkillPath(path) {
|
|
154
|
+
return findSkillMdFile([{ name: getWorkspaceBasename(path) }]) !== null;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Identify supported browser-native media before reading a file as text.
|
|
158
|
+
* A precise supported MIME wins; extensions provide the fallback for stores
|
|
159
|
+
* that report generic values such as `application/octet-stream`.
|
|
160
|
+
*/
|
|
161
|
+
function inferWorkspaceMedia(path, mimeType) {
|
|
162
|
+
const byMimeType = inferWorkspaceMediaFromMime(mimeType);
|
|
163
|
+
if (byMimeType) return byMimeType;
|
|
164
|
+
const normalizedMimeType = normalizeWorkspaceMimeType(mimeType);
|
|
165
|
+
if (normalizedMimeType && !GENERIC_MEDIA_MIME_TYPES.has(normalizedMimeType)) return null;
|
|
166
|
+
const extension = getWorkspaceBasename(path).split(".").at(-1)?.toLowerCase() ?? "";
|
|
167
|
+
const byExtension = MEDIA_BY_EXTENSION[extension];
|
|
168
|
+
if (byExtension) return byExtension;
|
|
169
|
+
return null;
|
|
170
|
+
}
|
|
171
|
+
function isWorkspaceMediaPath(path, mimeType) {
|
|
172
|
+
return inferWorkspaceMedia(path, mimeType) !== null;
|
|
173
|
+
}
|
|
174
|
+
/** Parse and validate a workspace skill with the canonical Agent Skills SDK. */
|
|
175
|
+
function parseWorkspaceSkill(content) {
|
|
176
|
+
const validationErrors = validateSkillContent(content);
|
|
177
|
+
try {
|
|
178
|
+
return {
|
|
179
|
+
parsed: parseSkillContent(content),
|
|
180
|
+
validationErrors
|
|
181
|
+
};
|
|
182
|
+
} catch {
|
|
183
|
+
return {
|
|
184
|
+
parsed: null,
|
|
185
|
+
validationErrors
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
/** Best-effort syntax-highlighting language from a file path; unknown extensions render as plain text. */
|
|
190
|
+
function inferWorkspaceLanguage(path) {
|
|
191
|
+
const extension = getWorkspaceBasename(path).split(".").at(-1)?.toLowerCase() ?? "";
|
|
192
|
+
return LANGUAGE_BY_EXTENSION[extension] ?? "text";
|
|
193
|
+
}
|
|
194
|
+
//#endregion
|
|
195
|
+
export { getWorkspaceBasename, inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceMediaPath, isWorkspaceSkillPath, parseWorkspaceSkill };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { i as WorkspaceFileState } from "../WorkspaceFile-DOZkPwzu.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/WorkspaceFileView.d.ts
|
|
5
|
+
interface WorkspaceFileViewProps {
|
|
6
|
+
file: WorkspaceFileState | null;
|
|
7
|
+
path: string;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
isRefreshing: boolean;
|
|
10
|
+
/** Leading workspace control, such as a host-owned Back to chat button. */
|
|
11
|
+
leading?: React.ReactNode;
|
|
12
|
+
actions?: React.ReactNode;
|
|
13
|
+
onRefresh: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** Full-boundary workspace file preview composed from CodeBlock and AppTopBar. */
|
|
16
|
+
declare function WorkspaceFileView({
|
|
17
|
+
file,
|
|
18
|
+
path,
|
|
19
|
+
isLoading,
|
|
20
|
+
isRefreshing,
|
|
21
|
+
leading,
|
|
22
|
+
actions,
|
|
23
|
+
onRefresh
|
|
24
|
+
}: WorkspaceFileViewProps): React.JSX.Element | null;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { WorkspaceFileView, WorkspaceFileViewProps };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
//#region src/components/WorkspaceHeader.d.ts
|
|
4
|
+
interface WorkspaceHeaderProps {
|
|
5
|
+
title?: React.ReactNode;
|
|
6
|
+
fileCount?: number;
|
|
7
|
+
path?: string;
|
|
8
|
+
/** Leading workspace control, such as a host-owned Back to chat button. */
|
|
9
|
+
leading?: React.ReactNode;
|
|
10
|
+
actions?: React.ReactNode;
|
|
11
|
+
copyAction?: React.ReactNode;
|
|
12
|
+
isRefreshing: boolean;
|
|
13
|
+
backLabel?: string;
|
|
14
|
+
forwardLabel?: string;
|
|
15
|
+
onBack?: () => void;
|
|
16
|
+
onForward?: () => void;
|
|
17
|
+
onRefresh: () => void;
|
|
18
|
+
}
|
|
19
|
+
/** Shared workspace app bar for browser and file-preview surfaces. */
|
|
20
|
+
declare function WorkspaceHeader({
|
|
21
|
+
title,
|
|
22
|
+
fileCount,
|
|
23
|
+
path,
|
|
24
|
+
leading,
|
|
25
|
+
actions,
|
|
26
|
+
copyAction,
|
|
27
|
+
isRefreshing,
|
|
28
|
+
backLabel,
|
|
29
|
+
forwardLabel,
|
|
30
|
+
onBack,
|
|
31
|
+
onForward,
|
|
32
|
+
onRefresh
|
|
33
|
+
}: WorkspaceHeaderProps): React.JSX.Element;
|
|
34
|
+
//#endregion
|
|
35
|
+
export { WorkspaceHeader, WorkspaceHeaderProps };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { L as RefreshIcon, n as ArrowLeftIcon, r as ArrowRightIcon } from "../icons-CpfUer49.js";
|
|
2
|
+
import { AppTopBar } from "./AppTopBar.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/WorkspaceHeader.tsx
|
|
6
|
+
/** Shared workspace app bar for browser and file-preview surfaces. */
|
|
7
|
+
function WorkspaceHeader({ title, fileCount, path, leading, actions, copyAction, isRefreshing, backLabel = "Back", forwardLabel = "Forward", onBack, onForward, onRefresh }) {
|
|
8
|
+
return /* @__PURE__ */ jsxs(AppTopBar.Root, {
|
|
9
|
+
className: "workspace-explorer__header",
|
|
10
|
+
"aria-label": "Workspace controls",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ jsxs(AppTopBar.Leading, { children: [
|
|
13
|
+
leading,
|
|
14
|
+
onBack ? /* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
15
|
+
label: backLabel,
|
|
16
|
+
onClick: onBack,
|
|
17
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, { "aria-hidden": "true" })
|
|
18
|
+
}) : null,
|
|
19
|
+
onForward ? /* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
20
|
+
label: forwardLabel,
|
|
21
|
+
onClick: onForward,
|
|
22
|
+
children: /* @__PURE__ */ jsx(ArrowRightIcon, { "aria-hidden": "true" })
|
|
23
|
+
}) : null
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ jsx(AppTopBar.Title, {
|
|
26
|
+
className: "workspace-explorer__heading",
|
|
27
|
+
title: path,
|
|
28
|
+
children: path ? /* @__PURE__ */ jsx("span", {
|
|
29
|
+
className: "workspace-explorer__path",
|
|
30
|
+
"data-workspace-file-heading": "",
|
|
31
|
+
children: path
|
|
32
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", { children: title }), fileCount !== void 0 ? /* @__PURE__ */ jsxs("span", {
|
|
33
|
+
className: "workspace-explorer__count",
|
|
34
|
+
children: [fileCount.toLocaleString(), " files"]
|
|
35
|
+
}) : null] })
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsxs(AppTopBar.Trailing, { children: [
|
|
38
|
+
actions,
|
|
39
|
+
copyAction,
|
|
40
|
+
/* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
41
|
+
label: "Refresh workspace",
|
|
42
|
+
onClick: onRefresh,
|
|
43
|
+
disabled: isRefreshing,
|
|
44
|
+
children: /* @__PURE__ */ jsx(RefreshIcon, { "aria-hidden": "true" })
|
|
45
|
+
})
|
|
46
|
+
] })
|
|
47
|
+
]
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
export { WorkspaceHeader };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as WorkspaceFileLinkProps, c as WorkspaceLinkResolution, d as WorkspaceNavigationProvider, f as WorkspaceNavigationProviderProps, i as WorkspaceFileLink, l as WorkspaceNavigationAdapter, n as WorkspaceDestination, o as WorkspaceInvalidDestination, p as resolveWorkspaceLink, r as WorkspaceExternalDestination, s as WorkspaceLinkBase, t as ResolveWorkspaceLinkOptions, u as WorkspaceNavigationEntry } from "../WorkspaceLink-DK1DWMHe.js";
|
|
2
|
+
export { ResolveWorkspaceLinkOptions, WorkspaceDestination, WorkspaceExternalDestination, WorkspaceFileLink, WorkspaceFileLinkProps, WorkspaceInvalidDestination, WorkspaceLinkBase, WorkspaceLinkResolution, WorkspaceNavigationAdapter, WorkspaceNavigationEntry, WorkspaceNavigationProvider, WorkspaceNavigationProviderProps, resolveWorkspaceLink };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, IconProps, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MicrophoneIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, StopIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
|
|
1
|
+
import { A as MinusIcon, B as SearchIcon, C as ImageIcon, D as McpIcon, E as MaximizeIcon, F as PencilIcon, G as StopIcon, H as SpinnerIcon, I as PlayIcon, J as TrashIcon, K as SunIcon, L as PlusIcon, M as MoonIcon, N as PaperclipIcon, O as MessageSquareIcon, P as PauseIcon, R as QueueIcon, S as IconProps, T as LinkIcon, U as SquareIcon, V as SidebarIcon, W as SteerIcon, X as WrenchIcon, Y as WarningIcon, Z as XIcon, _ as EyeIcon, a as BoxIcon, b as FolderIcon, c as ChevronDownIcon, d as CodeIcon, f as CopyIcon, g as EllipsisIcon, h as DownloadIcon, i as ArrowUpIcon, j as MonitorIcon, k as MicrophoneIcon, l as ChevronLeftIcon, m as DotIcon, n as ArrowLeftIcon, o as BrandIconProps, p as DiscordIcon, q as TerminalIcon, r as ArrowRightIcon, s as CheckIcon, t as ArrowDownIcon, u as ChevronRightIcon, v as EyeOffIcon, w as InfoIcon, x as FolderOpenIcon, y as FileIcon, z as RefreshIcon } from "../icons-GQd1xF4e.js";
|
|
2
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BoxIcon, BrandIconProps, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CodeIcon, CopyIcon, DiscordIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, IconProps, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, McpIcon, MessageSquareIcon, MicrophoneIcon, MinusIcon, MonitorIcon, MoonIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, QueueIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, SteerIcon, StopIcon, SunIcon, TerminalIcon, TrashIcon, WarningIcon, WrenchIcon, XIcon };
|
package/dist/components/icons.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CopyIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, MicrophoneIcon, MinusIcon, MonitorIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, StopIcon, TerminalIcon, WarningIcon, WrenchIcon, XIcon };
|
|
1
|
+
import { A as MoonIcon, B as SpinnerIcon, C as LinkIcon, D as MicrophoneIcon, E as MessageSquareIcon, F as PlusIcon, G as TerminalIcon, H as SteerIcon, I as QueueIcon, J as WrenchIcon, K as TrashIcon, L as RefreshIcon, M as PauseIcon, N as PencilIcon, O as MinusIcon, P as PlayIcon, R as SearchIcon, S as InfoIcon, T as McpIcon, U as StopIcon, V as SquareIcon, W as SunIcon, Y as XIcon, _ as EyeOffIcon, a as BoxIcon, b as FolderOpenIcon, c as ChevronLeftIcon, d as CopyIcon, f as DiscordIcon, g as EyeIcon, h as EllipsisIcon, i as ArrowUpIcon, j as PaperclipIcon, k as MonitorIcon, l as ChevronRightIcon, m as DownloadIcon, n as ArrowLeftIcon, o as CheckIcon, p as DotIcon, q as WarningIcon, r as ArrowRightIcon, s as ChevronDownIcon, t as ArrowDownIcon, u as CodeIcon, v as FileIcon, w as MaximizeIcon, x as ImageIcon, y as FolderIcon, z as SidebarIcon } from "../icons-CpfUer49.js";
|
|
2
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BoxIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, CodeIcon, CopyIcon, DiscordIcon, DotIcon, DownloadIcon, EllipsisIcon, EyeIcon, EyeOffIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, InfoIcon, LinkIcon, MaximizeIcon, McpIcon, MessageSquareIcon, MicrophoneIcon, MinusIcon, MonitorIcon, MoonIcon, PaperclipIcon, PauseIcon, PencilIcon, PlayIcon, PlusIcon, QueueIcon, RefreshIcon, SearchIcon, SidebarIcon, SpinnerIcon, SquareIcon, SteerIcon, StopIcon, SunIcon, TerminalIcon, TrashIcon, WarningIcon, WrenchIcon, XIcon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as CopyIcon, o as CheckIcon } from "./icons-CpfUer49.js";
|
|
2
2
|
import { Button } from "./components/Button.js";
|
|
3
3
|
import { Tooltip } from "./components/Tooltip.js";
|
|
4
4
|
import * as React from "react";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Box, Check, ChevronDown, ChevronLeft, ChevronRight, CircleStop, CodeXml, Copy, CornerDownRight, Dot, Download, Ellipsis, Eye, EyeOff, File, Folder, FolderOpen, Image, Info, Link2, ListRestart, LoaderCircle, Maximize2, MessageSquare, Mic, Minus, Monitor, Moon, PanelLeft, Paperclip, Pause, Pencil, Play, Plus, RefreshCw, Search, Square, Sun, Terminal, Trash2, TriangleAlert, Wrench, X } from "lucide-react";
|
|
3
|
+
import { SiDiscord, SiModelcontextprotocol } from "react-icons/si";
|
|
4
|
+
//#region src/components/_internal/icons.tsx
|
|
5
|
+
function icon(Component) {
|
|
6
|
+
return function DesignSystemIcon({ size = 16, strokeWidth = 1.75, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
8
|
+
size,
|
|
9
|
+
strokeWidth,
|
|
10
|
+
"aria-hidden": "true",
|
|
11
|
+
focusable: "false",
|
|
12
|
+
...props
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function brandIcon(Component) {
|
|
17
|
+
return function DesignSystemBrandIcon({ size = 16, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
19
|
+
size,
|
|
20
|
+
"aria-hidden": "true",
|
|
21
|
+
focusable: "false",
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const ChevronRightIcon = icon(ChevronRight);
|
|
27
|
+
const ChevronDownIcon = icon(ChevronDown);
|
|
28
|
+
const ChevronLeftIcon = icon(ChevronLeft);
|
|
29
|
+
const CheckIcon = icon(Check);
|
|
30
|
+
const CodeIcon = icon(CodeXml);
|
|
31
|
+
const XIcon = icon(X);
|
|
32
|
+
const PencilIcon = icon(Pencil);
|
|
33
|
+
const CopyIcon = icon(Copy);
|
|
34
|
+
const SteerIcon = icon(CornerDownRight);
|
|
35
|
+
const EyeIcon = icon(Eye);
|
|
36
|
+
const EyeOffIcon = icon(EyeOff);
|
|
37
|
+
const FolderIcon = icon(Folder);
|
|
38
|
+
const FolderOpenIcon = icon(FolderOpen);
|
|
39
|
+
const FileIcon = icon(File);
|
|
40
|
+
const PaperclipIcon = icon(Paperclip);
|
|
41
|
+
const MicrophoneIcon = icon(Mic);
|
|
42
|
+
const StopIcon = icon(CircleStop);
|
|
43
|
+
const PlusIcon = icon(Plus);
|
|
44
|
+
const MinusIcon = icon(Minus);
|
|
45
|
+
const PlayIcon = icon(Play);
|
|
46
|
+
const PauseIcon = icon(Pause);
|
|
47
|
+
const SquareIcon = icon(Square);
|
|
48
|
+
const ArrowLeftIcon = icon(ArrowLeft);
|
|
49
|
+
const ArrowRightIcon = icon(ArrowRight);
|
|
50
|
+
const ArrowDownIcon = icon(ArrowDown);
|
|
51
|
+
const ArrowUpIcon = icon(ArrowUp);
|
|
52
|
+
const DownloadIcon = icon(Download);
|
|
53
|
+
const RefreshIcon = icon(RefreshCw);
|
|
54
|
+
const DotIcon = icon(Dot);
|
|
55
|
+
const EllipsisIcon = icon(Ellipsis);
|
|
56
|
+
function SpinnerIcon({ className, size = 16, strokeWidth = 1.75, ...props }) {
|
|
57
|
+
return /* @__PURE__ */ jsx(LoaderCircle, {
|
|
58
|
+
size,
|
|
59
|
+
strokeWidth,
|
|
60
|
+
"aria-hidden": "true",
|
|
61
|
+
focusable: "false",
|
|
62
|
+
className: ["sigvelo-icon--spinner", className].filter(Boolean).join(" "),
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
const SearchIcon = icon(Search);
|
|
67
|
+
const SidebarIcon = icon(PanelLeft);
|
|
68
|
+
const TerminalIcon = icon(Terminal);
|
|
69
|
+
const LinkIcon = icon(Link2);
|
|
70
|
+
const QueueIcon = icon(ListRestart);
|
|
71
|
+
const TrashIcon = icon(Trash2);
|
|
72
|
+
const WarningIcon = icon(TriangleAlert);
|
|
73
|
+
const BoxIcon = icon(Box);
|
|
74
|
+
const WrenchIcon = icon(Wrench);
|
|
75
|
+
const InfoIcon = icon(Info);
|
|
76
|
+
const ImageIcon = icon(Image);
|
|
77
|
+
const MonitorIcon = icon(Monitor);
|
|
78
|
+
const MessageSquareIcon = icon(MessageSquare);
|
|
79
|
+
const McpIcon = brandIcon(SiModelcontextprotocol);
|
|
80
|
+
const DiscordIcon = brandIcon(SiDiscord);
|
|
81
|
+
const MoonIcon = icon(Moon);
|
|
82
|
+
const SunIcon = icon(Sun);
|
|
83
|
+
const MaximizeIcon = icon(Maximize2);
|
|
84
|
+
//#endregion
|
|
85
|
+
export { MoonIcon as A, SpinnerIcon as B, LinkIcon as C, MicrophoneIcon as D, MessageSquareIcon as E, PlusIcon as F, TerminalIcon as G, SteerIcon as H, QueueIcon as I, WrenchIcon as J, TrashIcon as K, RefreshIcon as L, PauseIcon as M, PencilIcon as N, MinusIcon as O, PlayIcon as P, SearchIcon as R, InfoIcon as S, McpIcon as T, StopIcon as U, SquareIcon as V, SunIcon as W, XIcon as Y, EyeOffIcon as _, BoxIcon as a, FolderOpenIcon as b, ChevronLeftIcon as c, CopyIcon as d, DiscordIcon as f, EyeIcon as g, EllipsisIcon as h, ArrowUpIcon as i, PaperclipIcon as j, MonitorIcon as k, ChevronRightIcon as l, DownloadIcon as m, ArrowLeftIcon as n, CheckIcon as o, DotIcon as p, WarningIcon as q, ArrowRightIcon as r, ChevronDownIcon as s, ArrowDownIcon as t, CodeIcon as u, FileIcon as v, MaximizeIcon as w, ImageIcon as x, FolderIcon as y, SidebarIcon as z };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LucideProps } from "lucide-react";
|
|
2
|
+
import { IconBaseProps } from "react-icons";
|
|
2
3
|
|
|
3
4
|
//#region src/components/_internal/icons.d.ts
|
|
4
5
|
/**
|
|
@@ -10,6 +11,7 @@ import { LucideProps } from "lucide-react";
|
|
|
10
11
|
* icon vendor.
|
|
11
12
|
*/
|
|
12
13
|
type IconProps = Omit<LucideProps, "ref">;
|
|
14
|
+
type BrandIconProps = Omit<IconBaseProps, "ref">;
|
|
13
15
|
declare const ChevronRightIcon: ({
|
|
14
16
|
size,
|
|
15
17
|
strokeWidth,
|
|
@@ -30,6 +32,11 @@ declare const CheckIcon: ({
|
|
|
30
32
|
strokeWidth,
|
|
31
33
|
...props
|
|
32
34
|
}: IconProps) => import("react").JSX.Element;
|
|
35
|
+
declare const CodeIcon: ({
|
|
36
|
+
size,
|
|
37
|
+
strokeWidth,
|
|
38
|
+
...props
|
|
39
|
+
}: IconProps) => import("react").JSX.Element;
|
|
33
40
|
declare const XIcon: ({
|
|
34
41
|
size,
|
|
35
42
|
strokeWidth,
|
|
@@ -45,6 +52,11 @@ declare const CopyIcon: ({
|
|
|
45
52
|
strokeWidth,
|
|
46
53
|
...props
|
|
47
54
|
}: IconProps) => import("react").JSX.Element;
|
|
55
|
+
declare const SteerIcon: ({
|
|
56
|
+
size,
|
|
57
|
+
strokeWidth,
|
|
58
|
+
...props
|
|
59
|
+
}: IconProps) => import("react").JSX.Element;
|
|
48
60
|
declare const EyeIcon: ({
|
|
49
61
|
size,
|
|
50
62
|
strokeWidth,
|
|
@@ -176,11 +188,26 @@ declare const LinkIcon: ({
|
|
|
176
188
|
strokeWidth,
|
|
177
189
|
...props
|
|
178
190
|
}: IconProps) => import("react").JSX.Element;
|
|
191
|
+
declare const QueueIcon: ({
|
|
192
|
+
size,
|
|
193
|
+
strokeWidth,
|
|
194
|
+
...props
|
|
195
|
+
}: IconProps) => import("react").JSX.Element;
|
|
196
|
+
declare const TrashIcon: ({
|
|
197
|
+
size,
|
|
198
|
+
strokeWidth,
|
|
199
|
+
...props
|
|
200
|
+
}: IconProps) => import("react").JSX.Element;
|
|
179
201
|
declare const WarningIcon: ({
|
|
180
202
|
size,
|
|
181
203
|
strokeWidth,
|
|
182
204
|
...props
|
|
183
205
|
}: IconProps) => import("react").JSX.Element;
|
|
206
|
+
declare const BoxIcon: ({
|
|
207
|
+
size,
|
|
208
|
+
strokeWidth,
|
|
209
|
+
...props
|
|
210
|
+
}: IconProps) => import("react").JSX.Element;
|
|
184
211
|
declare const WrenchIcon: ({
|
|
185
212
|
size,
|
|
186
213
|
strokeWidth,
|
|
@@ -201,10 +228,33 @@ declare const MonitorIcon: ({
|
|
|
201
228
|
strokeWidth,
|
|
202
229
|
...props
|
|
203
230
|
}: IconProps) => import("react").JSX.Element;
|
|
231
|
+
declare const MessageSquareIcon: ({
|
|
232
|
+
size,
|
|
233
|
+
strokeWidth,
|
|
234
|
+
...props
|
|
235
|
+
}: IconProps) => import("react").JSX.Element;
|
|
236
|
+
declare const McpIcon: ({
|
|
237
|
+
size,
|
|
238
|
+
...props
|
|
239
|
+
}: BrandIconProps) => import("react").JSX.Element;
|
|
240
|
+
declare const DiscordIcon: ({
|
|
241
|
+
size,
|
|
242
|
+
...props
|
|
243
|
+
}: BrandIconProps) => import("react").JSX.Element;
|
|
244
|
+
declare const MoonIcon: ({
|
|
245
|
+
size,
|
|
246
|
+
strokeWidth,
|
|
247
|
+
...props
|
|
248
|
+
}: IconProps) => import("react").JSX.Element;
|
|
249
|
+
declare const SunIcon: ({
|
|
250
|
+
size,
|
|
251
|
+
strokeWidth,
|
|
252
|
+
...props
|
|
253
|
+
}: IconProps) => import("react").JSX.Element;
|
|
204
254
|
declare const MaximizeIcon: ({
|
|
205
255
|
size,
|
|
206
256
|
strokeWidth,
|
|
207
257
|
...props
|
|
208
258
|
}: IconProps) => import("react").JSX.Element;
|
|
209
259
|
//#endregion
|
|
210
|
-
export {
|
|
260
|
+
export { MinusIcon as A, SearchIcon as B, ImageIcon as C, McpIcon as D, MaximizeIcon as E, PencilIcon as F, StopIcon as G, SpinnerIcon as H, PlayIcon as I, TrashIcon as J, SunIcon as K, PlusIcon as L, MoonIcon as M, PaperclipIcon as N, MessageSquareIcon as O, PauseIcon as P, QueueIcon as R, IconProps as S, LinkIcon as T, SquareIcon as U, SidebarIcon as V, SteerIcon as W, WrenchIcon as X, WarningIcon as Y, XIcon as Z, EyeIcon as _, BoxIcon as a, FolderIcon as b, ChevronDownIcon as c, CodeIcon as d, CopyIcon as f, EllipsisIcon as g, DownloadIcon as h, ArrowUpIcon as i, MonitorIcon as j, MicrophoneIcon as k, ChevronLeftIcon as l, DotIcon as m, ArrowLeftIcon as n, BrandIconProps as o, DiscordIcon as p, TerminalIcon as q, ArrowRightIcon as r, CheckIcon as s, ArrowDownIcon as t, ChevronRightIcon as u, EyeOffIcon as v, InfoIcon as w, FolderOpenIcon as x, FileIcon as y, RefreshIcon as z };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
.activity__header {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--sigvelo-spacing-1-5);
|
|
7
|
+
color: color-mix(in oklab, var(--sigvelo-color-text-muted), transparent 20%);
|
|
8
|
+
font-family: inherit;
|
|
9
|
+
font-size: var(--sigvelo-text-compact);
|
|
10
|
+
font-weight: var(--sigvelo-font-weight-semibold);
|
|
11
|
+
text-align: start;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Basis 0 keeps a long label from inflating its owner; the trailing
|
|
15
|
+
affordance stays adjacent until the available width is exhausted. */
|
|
16
|
+
.activity__header-label {
|
|
17
|
+
flex: 1 1 0;
|
|
18
|
+
min-width: 0;
|
|
19
|
+
max-width: max-content;
|
|
20
|
+
color: var(--sigvelo-color-text);
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
text-overflow: ellipsis;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.activity__item-icon {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-self: center;
|
|
29
|
+
color: var(--sigvelo-color-text-muted);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.activity[data-streaming] .activity__header-label,
|
|
33
|
+
.activity__header[data-streaming] .activity__header-label {
|
|
34
|
+
--activity-shimmer-base: color-mix(in oklab, var(--sigvelo-color-text-muted), transparent 20%);
|
|
35
|
+
background: linear-gradient(
|
|
36
|
+
90deg,
|
|
37
|
+
var(--activity-shimmer-base) 0%,
|
|
38
|
+
var(--activity-shimmer-base) 40%,
|
|
39
|
+
var(--sigvelo-color-text) 50%,
|
|
40
|
+
var(--activity-shimmer-base) 60%,
|
|
41
|
+
var(--activity-shimmer-base) 100%
|
|
42
|
+
);
|
|
43
|
+
background-size: 200% 100%;
|
|
44
|
+
-webkit-background-clip: text;
|
|
45
|
+
background-clip: text;
|
|
46
|
+
color: transparent;
|
|
47
|
+
animation: activity-shimmer 2.4s linear infinite;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@keyframes activity-shimmer {
|
|
51
|
+
from {
|
|
52
|
+
background-position: 100% 0;
|
|
53
|
+
}
|
|
54
|
+
to {
|
|
55
|
+
background-position: -100% 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@media (prefers-reduced-motion: reduce) {
|
|
60
|
+
.activity[data-streaming] .activity__header-label,
|
|
61
|
+
.activity__header[data-streaming] .activity__header-label {
|
|
62
|
+
animation: none;
|
|
63
|
+
background: none;
|
|
64
|
+
color: inherit;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media (forced-colors: active) {
|
|
69
|
+
.activity[data-streaming] .activity__header-label,
|
|
70
|
+
.activity__header[data-streaming] .activity__header-label {
|
|
71
|
+
animation: none;
|
|
72
|
+
background: none;
|
|
73
|
+
color: inherit;
|
|
74
|
+
}
|
|
75
|
+
}
|