@mcp-b/react-components 0.51.1 → 0.52.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/{CodeBlock-BMK6CW9D.js → CodeBlock-Bl-q7wMc.js} +2 -1
- package/dist/{CodeBlock--r6GS8YV.d.ts → CodeBlock-DJ99TQWy.d.ts} +1 -1
- package/dist/EmployeeChrome-C8eTGJWn.d.ts +231 -0
- package/dist/{FileTree-okaLnS5j.js → FileTree-DruTQ-oa.js} +1 -1
- package/dist/{IconButton-ByiyjkYE.d.ts → IconButton-CAlFVb2L.d.ts} +3 -0
- package/dist/{ManagerOffice-5pEFpoV3.js → ManagerOffice-CMJ7laGe.js} +17 -12
- package/dist/McpPluginCatalog-DNeHDrts.d.ts +94 -0
- package/dist/{Message-DyaTBiV7.d.ts → Message-COsMPZSC.d.ts} +2 -2
- package/dist/{ResponsiveSidebarShell-CAmmtQTR.d.ts → ResponsiveSidebarShell-BUBQa_IV.d.ts} +3 -1
- package/dist/{SetupChecklist-O6qmgwz4.js → SetupChecklist-BiWQkKEq.js} +6 -5
- package/dist/{ThinkThreadPicker-yetGX_s5.d.ts → ThinkThreadPicker-DX0lL-P7.d.ts} +3 -0
- package/dist/{Workspace-HzGrWDX3.d.ts → Workspace-mzMZSdts.d.ts} +1 -1
- package/dist/WorkspaceConceptPanel-97ZyVpZI.js +20 -0
- package/dist/{WorkspaceFile-Bouauobc.d.ts → WorkspaceFile-19WP0EU1.d.ts} +1 -1
- package/dist/{WorkspaceFileView-ncZuIWhC.js → WorkspaceFileView-DXgTljKV.js} +3 -2
- package/dist/{WorkspaceMessageResponse-8lOSAbw_.d.ts → WorkspaceMessageResponse-BApg8KZv.d.ts} +1 -1
- package/dist/WorkspaceMountManager-CkLI1B-G.d.ts +33 -0
- package/dist/assets/sigvelo-logo.svg +54 -0
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +6 -2
- package/dist/components/agents-sdk/AgentChat.js +12 -16
- package/dist/components/agents-sdk/AgentEvent.js +2 -2
- package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +2 -1
- package/dist/components/agents-sdk/BrowserLiveScreen.js +9 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +1 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -1
- package/dist/components/agents-sdk/EmployeeApp.d.ts +43 -30
- package/dist/components/agents-sdk/EmployeeApp.js +47 -34
- package/dist/components/agents-sdk/EmployeeChat.d.ts +28 -8
- package/dist/components/agents-sdk/EmployeeChat.js +33 -5
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -219
- package/dist/components/agents-sdk/EmployeeChrome.js +106 -107
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeSchedules.js +3 -4
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +12 -11
- package/dist/components/agents-sdk/EmployeeStartScreen.js +23 -16
- package/dist/components/agents-sdk/ManagerAccountActions.js +3 -4
- package/dist/components/agents-sdk/ManagerOffice.js +1 -2
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +2 -2
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +30 -13
- package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -93
- package/dist/components/agents-sdk/McpPluginCatalog.js +6 -6
- package/dist/components/agents-sdk/McpServerPicker.js +5 -5
- package/dist/components/agents-sdk/ModelEndpointDialog.js +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +4 -4
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunPanel.d.ts +3 -0
- package/dist/components/agents-sdk/SubagentRunPanel.js +67 -47
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +7 -14
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +2 -0
- package/dist/components/agents-sdk/ThinkFullApp.js +2 -0
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineActions.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineForm.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +33 -20
- package/dist/components/agents-sdk/WorkbenchBack.d.ts +18 -0
- package/dist/components/agents-sdk/WorkbenchBack.js +27 -0
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +3 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +6 -6
- package/dist/components/agents-sdk/WorkspaceExecution.js +13 -10
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +13 -4
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.d.ts +1 -32
- package/dist/components/agents-sdk/WorkspaceMountManager.js +1 -1
- package/dist/components/agents-sdk/WorkspaceProject.js +7 -5
- package/dist/components/agents-sdk/WorkspaceUserScript.js +7 -5
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/Approval.js +2 -2
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +1 -1
- package/dist/components/ai-sdk/Checkpoint.js +1 -1
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +1 -1
- package/dist/components/ai-sdk/ConnectedAppCards.js +3 -3
- package/dist/components/ai-sdk/Context.js +1 -1
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +2 -2
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +7 -7
- package/dist/components/ai-sdk/Queue.js +1 -1
- package/dist/components/ai-sdk/Reasoning.js +1 -1
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/extension/ChatGptSignInScreen.d.ts +1 -1
- package/dist/components/extension/ChatGptSignInScreen.js +61 -186
- package/dist/components/extension/CodexModelSelector.js +4 -8
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +7 -4
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.js +1 -1
- package/dist/components/foundations/Stepper.js +1 -1
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/AccountSignInDialog.d.ts +5 -9
- package/dist/components/general-purpose/AccountSignInDialog.js +13 -5
- package/dist/components/general-purpose/BrandLoading.d.ts +14 -0
- package/dist/components/general-purpose/BrandLoading.js +25 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +59 -27
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.d.ts +13 -2
- package/dist/components/general-purpose/StatusScreen.js +27 -3
- package/dist/components/general-purpose/Terminal.d.ts +2 -2
- package/dist/components/general-purpose/Terminal.js +2 -2
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +2 -2
- package/dist/components/general-purpose/WebPreview.d.ts +1 -1
- package/dist/components/general-purpose/WebPreview.js +2 -2
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +5 -5
- package/dist/{copy-button-OUwOdgEm.d.ts → copy-button-CJYYgCIU.d.ts} +1 -1
- package/dist/{copy-button-Dk2vRe9j.js → copy-button-CSDuDfdP.js} +1 -1
- package/dist/styles/activity.css +2 -2
- package/dist/styles/agent-chat.css +6 -105
- package/dist/styles/app-root.css +9 -0
- package/dist/styles/app-top-bar.css +10 -4
- package/dist/styles/avatar.css +2 -2
- package/dist/styles/base.css +6 -2
- package/dist/styles/brand-loading.css +58 -0
- package/dist/styles/brand.test.ts +158 -0
- package/dist/styles/browser-control-overlay.css +22 -0
- package/dist/styles/button.css +22 -1
- package/dist/styles/chatgpt-sign-in-screen.css +111 -225
- package/dist/styles/code-block.css +5 -0
- package/dist/styles/codex-model-selector.css +2 -12
- package/dist/styles/description-list.css +9 -2
- package/dist/styles/employee-app.css +19 -1
- package/dist/styles/employee-chrome.css +35 -5
- package/dist/styles/file-tree.css +15 -2
- package/dist/styles/index.css +1 -0
- package/dist/styles/manager-office.css +80 -55
- package/dist/styles/manager-work.css +5 -11
- package/dist/styles/mcp-plugin-catalog.css +29 -34
- package/dist/styles/mcp-server-picker.css +13 -5
- package/dist/styles/prompt-input.css +3 -13
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +9 -2
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +67 -0
- package/dist/styles/responsive-sidebar-shell.css +70 -25
- package/dist/styles/search-field.css +8 -6
- package/dist/styles/subagent-run.css +81 -0
- package/dist/styles/think-execution-workbench.css +0 -17
- package/dist/styles/think-full-app.css +11 -4
- package/dist/styles/think-thread-picker.css +16 -38
- package/dist/styles/workspace-concepts.css +29 -2
- package/dist/styles/workspace-explorer.css +6 -48
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-wW_lQLYK.js → workspace-assets-Bg7XhPsk.js} +2 -2
- package/package.json +2 -2
- package/dist/styles/extension-status.css +0 -46
- package/dist/{icons-CeGfXO21.js → icons-cuEtsgj9.js} +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createExpansionStore } from "../ai-sdk/ExpansionState.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
|
-
import { Queue, QueueItem, QueueItemAction, QueueItemActions, QueueItemContent, QueueItemDescription, QueueList, QueueSection, QueueSectionActions, QueueSectionContent, QueueSectionLabel, QueueSectionTrigger } from "../ai-sdk/Queue.js";
|
|
4
3
|
import { getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
5
4
|
import { useOptionalAgentChatQueue } from "./AgentChatQueue.js";
|
|
5
|
+
import { Queue, QueueItem, QueueItemAction, QueueItemActions, QueueItemContent, QueueItemDescription, QueueList, QueueSection, QueueSectionActions, QueueSectionContent, QueueSectionLabel, QueueSectionTrigger } from "../ai-sdk/Queue.js";
|
|
6
6
|
import { AgentChatNotice, AgentChatPromptTray } from "./AgentChat.js";
|
|
7
7
|
import { SubagentRunSelector } from "./SubagentRunSelector.js";
|
|
8
8
|
import * as React from "react";
|
|
@@ -10,41 +10,55 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
//#region src/components/agents-sdk/SubagentRunPanel.tsx
|
|
11
11
|
const IDLE = { pending: false };
|
|
12
12
|
const SubagentRunPanelContext = React.createContext(null);
|
|
13
|
+
function createPanelState(scopeKey, selectedRunId) {
|
|
14
|
+
return {
|
|
15
|
+
scopeKey,
|
|
16
|
+
open: true,
|
|
17
|
+
hiddenCompleted: /* @__PURE__ */ new Set(),
|
|
18
|
+
commands: {},
|
|
19
|
+
reportDisclosures: createExpansionStore(),
|
|
20
|
+
inFlight: /* @__PURE__ */ new Map(),
|
|
21
|
+
restoreFocusRunId: { current: selectedRunId }
|
|
22
|
+
};
|
|
23
|
+
}
|
|
13
24
|
/** A thread's transient controls/disclosure state; run facts remain in the SDK value. */
|
|
14
|
-
function SubagentRunPanelProvider({ agentTools, collection, mayExecute, selectedRunId, parentRunning, onStopCurrentWork, onStopRun, children }) {
|
|
15
|
-
const [
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
function SubagentRunPanelProvider({ scopeKey, agentTools, collection, mayExecute, selectedRunId, parentRunning, onStopCurrentWork, onStopRun, children }) {
|
|
26
|
+
const [state, setState] = React.useState(() => createPanelState(scopeKey, selectedRunId));
|
|
27
|
+
if (state.scopeKey !== scopeKey) setState(createPanelState(scopeKey, selectedRunId));
|
|
28
|
+
const { open, hiddenCompleted, commands, reportDisclosures, inFlight, restoreFocusRunId } = state;
|
|
29
|
+
const setOpen = React.useCallback((open) => setState((current) => current.inFlight === inFlight ? {
|
|
30
|
+
...current,
|
|
31
|
+
open
|
|
32
|
+
} : current), [inFlight]);
|
|
33
|
+
const setHiddenCompleted = React.useCallback((hiddenCompleted) => setState((current) => current.inFlight === inFlight ? {
|
|
34
|
+
...current,
|
|
35
|
+
hiddenCompleted
|
|
36
|
+
} : current), [inFlight]);
|
|
21
37
|
React.useLayoutEffect(() => {
|
|
22
38
|
if (selectedRunId) restoreFocusRunId.current = selectedRunId;
|
|
23
|
-
}, [selectedRunId]);
|
|
39
|
+
}, [restoreFocusRunId, selectedRunId]);
|
|
24
40
|
const execute = React.useCallback((key, command) => {
|
|
25
|
-
const pending = inFlight.
|
|
41
|
+
const pending = inFlight.get(key);
|
|
26
42
|
if (pending) return pending;
|
|
27
|
-
|
|
28
|
-
...current,
|
|
29
|
-
[key]: { pending: true }
|
|
30
|
-
}));
|
|
31
|
-
const operation = Promise.resolve().then(command).then(() => setCommands((current) => ({
|
|
43
|
+
const setCommand = (command) => setState((current) => current.inFlight === inFlight ? {
|
|
32
44
|
...current,
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
commands: {
|
|
46
|
+
...current.commands,
|
|
47
|
+
[key]: command
|
|
48
|
+
}
|
|
49
|
+
} : current);
|
|
50
|
+
setCommand({ pending: true });
|
|
51
|
+
const operation = Promise.resolve().then(command).then(() => setCommand(IDLE), (cause) => {
|
|
35
52
|
const error = cause instanceof Error ? cause.message : "Stop could not be confirmed. Try again.";
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
error
|
|
41
|
-
}
|
|
42
|
-
}));
|
|
53
|
+
setCommand({
|
|
54
|
+
pending: false,
|
|
55
|
+
error
|
|
56
|
+
});
|
|
43
57
|
throw cause;
|
|
44
|
-
}).finally(() => inFlight.
|
|
45
|
-
inFlight.
|
|
58
|
+
}).finally(() => inFlight.delete(key));
|
|
59
|
+
inFlight.set(key, operation);
|
|
46
60
|
return operation;
|
|
47
|
-
}, []);
|
|
61
|
+
}, [inFlight]);
|
|
48
62
|
const stopCurrentWork = React.useCallback(() => execute("current-work", onStopCurrentWork), [execute, onStopCurrentWork]);
|
|
49
63
|
const stopRun = React.useCallback((id) => execute(id, () => onStopRun(id)), [execute, onStopRun]);
|
|
50
64
|
const value = React.useMemo(() => ({
|
|
@@ -71,6 +85,9 @@ function SubagentRunPanelProvider({ agentTools, collection, mayExecute, selected
|
|
|
71
85
|
open,
|
|
72
86
|
hiddenCompleted,
|
|
73
87
|
reportDisclosures,
|
|
88
|
+
restoreFocusRunId,
|
|
89
|
+
setOpen,
|
|
90
|
+
setHiddenCompleted,
|
|
74
91
|
commands,
|
|
75
92
|
stopCurrentWork,
|
|
76
93
|
stopRun
|
|
@@ -135,14 +152,14 @@ function delegatedWorkLabel(active, completed) {
|
|
|
135
152
|
const counts = [active ? `${active} active` : null, completed ? `${completed} finished` : null].filter(Boolean).join(", ");
|
|
136
153
|
return `Delegated work${counts ? `, ${counts}` : ""}`;
|
|
137
154
|
}
|
|
138
|
-
function SubagentRunPanelControls({ panel, active
|
|
155
|
+
function SubagentRunPanelControls({ panel, active }) {
|
|
139
156
|
const queue = useOptionalAgentChatQueue();
|
|
140
157
|
const stop = panel.commands["current-work"] ?? IDLE;
|
|
141
158
|
const canStop = panel.parentRunning || active > 1 || panel.collection.status !== "ready";
|
|
142
|
-
if (!canStop && !stop.error && !stop.pending
|
|
143
|
-
return /* @__PURE__ */
|
|
159
|
+
if (!canStop && !stop.error && !stop.pending) return null;
|
|
160
|
+
return /* @__PURE__ */ jsx(QueueSectionActions, {
|
|
144
161
|
"aria-label": "Delegated work controls",
|
|
145
|
-
children:
|
|
162
|
+
children: canStop || stop.error || stop.pending ? /* @__PURE__ */ jsx(Button, {
|
|
146
163
|
size: "xs",
|
|
147
164
|
variant: "ghost",
|
|
148
165
|
color: "neutral",
|
|
@@ -154,13 +171,7 @@ function SubagentRunPanelControls({ panel, active, completed }) {
|
|
|
154
171
|
panel.stopCurrentWork().catch(() => void 0);
|
|
155
172
|
},
|
|
156
173
|
children: stop.pending ? "Stopping current work…" : "Stop current work"
|
|
157
|
-
}) : null
|
|
158
|
-
size: "xs",
|
|
159
|
-
variant: "ghost",
|
|
160
|
-
color: "neutral",
|
|
161
|
-
onClick: () => panel.setHiddenCompleted(panel.hiddenCompleted.size ? /* @__PURE__ */ new Set() : new Set(completed.map((run) => run.runId))),
|
|
162
|
-
children: panel.hiddenCompleted.size ? `Show completed (${completed.length})` : "Hide completed"
|
|
163
|
-
}) : null]
|
|
174
|
+
}) : null
|
|
164
175
|
});
|
|
165
176
|
}
|
|
166
177
|
function SubagentRunRow({ panel, run, renderRunLink }) {
|
|
@@ -206,13 +217,23 @@ function SubagentRunPanelContent({ panel, renderRunLink }) {
|
|
|
206
217
|
onOpenChange: panel.setOpen,
|
|
207
218
|
onFocusCapture: focus.onFocusCapture,
|
|
208
219
|
onBlurCapture: focus.onBlurCapture,
|
|
209
|
-
children: [/* @__PURE__ */
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
children:
|
|
215
|
-
|
|
220
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
221
|
+
className: "subagent-run__panel-header",
|
|
222
|
+
children: [/* @__PURE__ */ jsx(QueueSectionTrigger, {
|
|
223
|
+
"data-slot": "subagent-run-panel-trigger",
|
|
224
|
+
"aria-label": delegatedWorkLabel(active.length, completed.length),
|
|
225
|
+
children: /* @__PURE__ */ jsx(QueueSectionLabel, {
|
|
226
|
+
count: runs.length || void 0,
|
|
227
|
+
children: "Delegated work"
|
|
228
|
+
})
|
|
229
|
+
}), completed.length ? /* @__PURE__ */ jsx(Button, {
|
|
230
|
+
className: "subagent-run__completed-toggle",
|
|
231
|
+
size: "xs",
|
|
232
|
+
variant: "ghost",
|
|
233
|
+
color: "neutral",
|
|
234
|
+
onClick: () => panel.setHiddenCompleted(panel.hiddenCompleted.size ? /* @__PURE__ */ new Set() : new Set(completed.map((run) => run.runId))),
|
|
235
|
+
children: panel.hiddenCompleted.size ? `Show completed (${completed.length})` : "Hide completed"
|
|
236
|
+
}) : null]
|
|
216
237
|
}), /* @__PURE__ */ jsxs(QueueSectionContent, { children: [
|
|
217
238
|
stop.error ? /* @__PURE__ */ jsx(AgentChatNotice, {
|
|
218
239
|
"data-tone": "danger",
|
|
@@ -235,8 +256,7 @@ function SubagentRunPanelContent({ panel, renderRunLink }) {
|
|
|
235
256
|
}),
|
|
236
257
|
/* @__PURE__ */ jsx(SubagentRunPanelControls, {
|
|
237
258
|
panel,
|
|
238
|
-
active: active.length
|
|
239
|
-
completed
|
|
259
|
+
active: active.length
|
|
240
260
|
})
|
|
241
261
|
] })]
|
|
242
262
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { buttonVariants } from "../foundations/Button.js";
|
|
3
3
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
5
4
|
import { SubagentRunLabel, getSubagentRunName, getSubagentRunStatusText } from "./SubagentRunIndicator.js";
|
|
5
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
//#region src/components/agents-sdk/SubagentRunSelector.tsx
|
|
@@ -3,7 +3,7 @@ import { i as AgentMessageRenderPartContext } from "../../AgentMessageParts-C7L-
|
|
|
3
3
|
import { AgentChatMessageContentProps, AgentChatRootProps } from "./AgentChat.js";
|
|
4
4
|
import { o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, t as ThinkChatActivity } from "../../ThinkChatActivity-DENkintt.js";
|
|
5
5
|
import { i as ThinkChatValue } from "../../ThinkChatContext-COIgzkYp.js";
|
|
6
|
-
import { n as WorkspaceFileRenderer } from "../../WorkspaceMessageResponse-
|
|
6
|
+
import { n as WorkspaceFileRenderer } from "../../WorkspaceMessageResponse-BApg8KZv.js";
|
|
7
7
|
import { o as UseSessionCompactionResult } from "../../SessionCompaction-CmTJFpzj.js";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { ChatStatus, UIMessage } from "ai";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { AgentActivityFavicon, AgentActivityIcon } from "./AgentActivity.js";
|
|
1
2
|
import { useExpansionState } from "../ai-sdk/ExpansionState.js";
|
|
2
3
|
import { Activity, ActivityContent, ActivityItem, ActivityItemGroup, ActivityText, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
3
4
|
import { Button } from "../foundations/Button.js";
|
|
4
5
|
import { MessageResponse } from "../ai-sdk/Message.js";
|
|
5
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
|
-
import { getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
7
6
|
import { useOptionalAgentToolRuns } from "./AgentToolRunsContext.js";
|
|
8
|
-
import {
|
|
7
|
+
import { getSubagentRunName } from "./SubagentRunIndicator.js";
|
|
8
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
9
9
|
import { useOptionalThinkChatLive } from "./ThinkChatContext.js";
|
|
10
10
|
import { isBrowserToolPart, isExecuteToolPart, isFetchToolPart, isPartWorking, isSessionContextToolPart, isSkillToolPart, isThinkChatActivityPart, isWorkspaceToolPart } from "./ThinkChatToolParts.js";
|
|
11
11
|
import { ThinkChatBrowserPanel, ThinkChatExecutePanel, ThinkChatFetchPanel, ThinkChatSessionContextPanel, ThinkChatSkillPanel, ThinkChatWorkspacePanel } from "./ThinkChatToolPanels.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ActivityOutput, ActivityPanel } from "../ai-sdk/Activity.js";
|
|
2
|
-
import { Tabs } from "../foundations/Tabs.js";
|
|
3
2
|
import { o as formatUnknownValue } from "../../format-COCyV98Z.js";
|
|
4
|
-
import {
|
|
3
|
+
import { Tabs } from "../foundations/Tabs.js";
|
|
5
4
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
5
|
+
import { i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-Bl-q7wMc.js";
|
|
6
6
|
import { inferWorkspaceLanguage } from "./WorkspaceFile.js";
|
|
7
7
|
import { displayUrl, isSessionContextToolFailure } from "./ThinkChatToolParts.js";
|
|
8
8
|
import * as React from "react";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as FileIcon, T as InfoIcon } from "../../icons-
|
|
2
|
+
import { S as FileIcon, T as InfoIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Activity, ActivityContent, ActivityItemGroup, ActivityOutput, ActivityTrigger } from "../ai-sdk/Activity.js";
|
|
4
4
|
import { o as formatUnknownValue } from "../../format-COCyV98Z.js";
|
|
5
|
-
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
6
5
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
6
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
7
7
|
import { formatThinkExecutionTimestamp, getThinkExecutionRunError, getThinkExecutionRunId, getThinkExecutionRunKindLabel, getThinkExecutionRunProgressedAt, getThinkExecutionRunProgressedLabel, getThinkExecutionRunTitle, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
8
8
|
import { ThinkExecutionStatus } from "./ThinkExecutionStatus.js";
|
|
9
9
|
import "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, L as PauseIcon, T as InfoIcon, d as CheckIcon, nt as XIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, L as PauseIcon, T as InfoIcon, d as CheckIcon, nt as XIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
4
|
import { formatThinkExecutionRunProgress, formatThinkExecutionStatus, getThinkExecutionRunKindLabel, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, getThinkExecutionRunTitle } from "./ThinkExecutionRun.js";
|
|
5
5
|
import "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { H as RefreshIcon, et as WarningIcon, y as EllipsisIcon } from "../../icons-
|
|
2
|
+
import { H as RefreshIcon, et as WarningIcon, y as EllipsisIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
|
-
import { Menu } from "../foundations/Menu.js";
|
|
5
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
6
5
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
7
|
-
import {
|
|
6
|
+
import { Menu } from "../foundations/Menu.js";
|
|
8
7
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
9
8
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
10
10
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, getThinkExecutionRunStatus, getThinkExecutionRunStatusTone, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
11
11
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
12
12
|
import * as React from "react";
|
|
@@ -240,25 +240,18 @@ function ThinkExecutionWorkbenchRunActions({ run }) {
|
|
|
240
240
|
}
|
|
241
241
|
function ThinkExecutionWorkbenchList({ children, className, ...props }) {
|
|
242
242
|
const { runs } = useWorkbench();
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
"aria-labelledby": runsId,
|
|
243
|
+
return /* @__PURE__ */ jsx("section", {
|
|
244
|
+
"aria-label": "Runs",
|
|
246
245
|
...props,
|
|
247
246
|
className: cx("think-execution-workbench__run-list", className),
|
|
248
|
-
children:
|
|
249
|
-
className: "think-execution-workbench__list-header",
|
|
250
|
-
children: /* @__PURE__ */ jsx("h3", {
|
|
251
|
-
id: runsId,
|
|
252
|
-
children: "Runs"
|
|
253
|
-
})
|
|
254
|
-
}), runs.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
247
|
+
children: runs.length === 0 ? /* @__PURE__ */ jsx(EmptyState, {
|
|
255
248
|
className: "think-execution-workbench__empty",
|
|
256
249
|
description: "No runs yet."
|
|
257
250
|
}) : /* @__PURE__ */ jsx("ul", {
|
|
258
251
|
className: "think-execution-workbench__list",
|
|
259
252
|
role: "list",
|
|
260
253
|
children: runs.map((run) => /* @__PURE__ */ jsx("li", { children: children(run) }, `${isThinkSubmissionRun(run) ? "submission" : "workflow"}:${getThinkExecutionRunId(run)}`))
|
|
261
|
-
})
|
|
254
|
+
})
|
|
262
255
|
});
|
|
263
256
|
}
|
|
264
257
|
function ThinkExecutionWorkbenchRunLink({ run, className, ...props }) {
|
|
@@ -11,6 +11,8 @@ interface ThinkFullAppRootProps extends React.ComponentPropsWithRef<"div"> {
|
|
|
11
11
|
* Conversation/workbench layout, independent of routing and SDK connections.
|
|
12
12
|
* Compose navigation outside the root. The conversation remains mounted while
|
|
13
13
|
* compact layouts show the workbench; ResizableSidePanel owns desktop resizing.
|
|
14
|
+
* Compact layout follows the width available to this content, including any
|
|
15
|
+
* space occupied by a surrounding sidebar.
|
|
14
16
|
*/
|
|
15
17
|
declare function ThinkFullAppRoot({
|
|
16
18
|
workbenchOpen,
|
|
@@ -15,6 +15,8 @@ function useWorkbenchOpen() {
|
|
|
15
15
|
* Conversation/workbench layout, independent of routing and SDK connections.
|
|
16
16
|
* Compose navigation outside the root. The conversation remains mounted while
|
|
17
17
|
* compact layouts show the workbench; ResizableSidePanel owns desktop resizing.
|
|
18
|
+
* Compact layout follows the width available to this content, including any
|
|
19
|
+
* space occupied by a surrounding sidebar.
|
|
18
20
|
*/
|
|
19
21
|
function ThinkFullAppRoot({ workbenchOpen, children, className, ...props }) {
|
|
20
22
|
return /* @__PURE__ */ jsx(WorkbenchOpenContext.Provider, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
|
|
2
1
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
2
|
+
import { AgentChatTurnError } from "../ai-sdk/AgentChatTurnError.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/agents-sdk/ThinkRecoveryNotice.tsx
|
|
5
5
|
function connectionReason(error) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { K as SpinnerIcon, Q as TrashIcon, z as PlayIcon } from "../../icons-
|
|
1
|
+
import { K as SpinnerIcon, Q as TrashIcon, z as PlayIcon } from "../../icons-cuEtsgj9.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
3
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
4
4
|
import { n as mergeRefs } from "../../merge-refs-DF_7w2x_.js";
|
|
5
|
-
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
6
5
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
6
|
+
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
7
7
|
import * as React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { B as PlusIcon } from "../../icons-
|
|
2
|
+
import { B as PlusIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
5
|
import { t as capitalize } from "../../format-COCyV98Z.js";
|
|
6
|
-
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
7
6
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
7
|
+
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
8
8
|
import { SearchField } from "../foundations/SearchField.js";
|
|
9
9
|
import { ToggleGroup } from "../foundations/ToggleGroup.js";
|
|
10
10
|
import { getThinkRoutineNextRun } from "./ThinkRoutine.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, r as ArrowLeftIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, d as CheckIcon, et as WarningIcon, f as ChevronDownIcon, r as ArrowLeftIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
4
5
|
import { Field } from "../foundations/Field.js";
|
|
5
6
|
import { Form } from "../foundations/Form.js";
|
|
6
7
|
import { Textarea } from "../foundations/Textarea.js";
|
|
7
|
-
import {
|
|
8
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
9
|
+
import { Fieldset } from "../foundations/Fieldset.js";
|
|
8
10
|
import { Select } from "../foundations/Select.js";
|
|
9
11
|
import { Checkbox } from "../foundations/Checkbox.js";
|
|
10
12
|
import { CheckboxGroup } from "../foundations/CheckboxGroup.js";
|
|
11
13
|
import { Combobox } from "../foundations/Combobox.js";
|
|
12
|
-
import { Fieldset } from "../foundations/Fieldset.js";
|
|
13
14
|
import { NumberField } from "../foundations/NumberField.js";
|
|
14
|
-
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
17
17
|
//#region src/components/agents-sdk/ThinkRoutineForm.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
2
|
import { buttonVariants } from "../foundations/Button.js";
|
|
3
|
-
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
4
3
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
4
|
+
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
5
5
|
import { getThinkExecutionRunAccessibleName, getThinkExecutionRunId, isThinkSubmissionRun } from "./ThinkExecutionRun.js";
|
|
6
6
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
7
7
|
import * as React from "react";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ThinkThreadStatusIndicatorsProps, i as ThinkThreadStatusIndicators, n as ThinkThreadPicker, o as ThinkThreadStatusSummary, r as ThinkThreadPickerProps, s as summarizeThinkThreads, t as ThinkThreadItem } from "../../ThinkThreadPicker-
|
|
1
|
+
import { a as ThinkThreadStatusIndicatorsProps, i as ThinkThreadStatusIndicators, n as ThinkThreadPicker, o as ThinkThreadStatusSummary, r as ThinkThreadPickerProps, s as summarizeThinkThreads, t as ThinkThreadItem } from "../../ThinkThreadPicker-DX0lL-P7.js";
|
|
2
2
|
export { ThinkThreadItem, ThinkThreadPicker, ThinkThreadPickerProps, ThinkThreadStatusIndicators, ThinkThreadStatusIndicatorsProps, ThinkThreadStatusSummary, summarizeThinkThreads };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { K as SpinnerIcon, R as PencilIcon, _ as DotIcon, et as WarningIcon, t as ArchiveIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
4
|
+
import { Tooltip } from "../foundations/Tooltip.js";
|
|
4
5
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
5
|
-
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
6
6
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
7
|
-
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
8
7
|
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
|
+
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
9
|
+
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
9
10
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
10
11
|
import { SearchField } from "../foundations/SearchField.js";
|
|
11
12
|
import * as React from "react";
|
|
@@ -109,7 +110,7 @@ function ThinkThreadStatusIndicators({ summary, className }) {
|
|
|
109
110
|
* notes beside the parent Think agent because
|
|
110
111
|
* `listThreads()`/`createThread()`/`deleteThread()` are app-owned.
|
|
111
112
|
*/
|
|
112
|
-
function ThinkThreadPicker({ threads, renderThreadLink, createThreadLink, onSelect, onDelete, className, title = "Recents", "aria-label": ariaLabel = "Threads", ref, ...props }) {
|
|
113
|
+
function ThinkThreadPicker({ threads, renderThreadLink, createThreadLink, onSelect, onDelete, className, title = "Recents", headerActions, "aria-label": ariaLabel = "Threads", ref, ...props }) {
|
|
113
114
|
const statusSummary = summarizeThinkThreads(threads);
|
|
114
115
|
const [query, setQuery] = React.useState("");
|
|
115
116
|
const [deleteOpen, setDeleteOpen] = React.useState(false);
|
|
@@ -161,10 +162,34 @@ function ThinkThreadPicker({ threads, renderThreadLink, createThreadLink, onSele
|
|
|
161
162
|
children: [
|
|
162
163
|
/* @__PURE__ */ jsxs("header", {
|
|
163
164
|
className: "think-thread-picker__header",
|
|
164
|
-
children: [
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ jsx("h2", {
|
|
167
|
+
className: "think-thread-picker__title sigvelo-truncate",
|
|
168
|
+
children: title
|
|
169
|
+
}),
|
|
170
|
+
/* @__PURE__ */ jsx(ThinkThreadStatusIndicators, {
|
|
171
|
+
summary: statusSummary,
|
|
172
|
+
className: "sigvelo-visually-hidden"
|
|
173
|
+
}),
|
|
174
|
+
createThreadLink ? /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, {
|
|
175
|
+
render: /* @__PURE__ */ jsx(LinkButton, {
|
|
176
|
+
ref: createButtonRef,
|
|
177
|
+
variant: "ghost",
|
|
178
|
+
color: "neutral",
|
|
179
|
+
size: "sm",
|
|
180
|
+
className: "think-thread-picker__create",
|
|
181
|
+
"aria-label": "New thread",
|
|
182
|
+
"data-icon-only": "",
|
|
183
|
+
render: createThreadLink
|
|
184
|
+
}),
|
|
185
|
+
children: /* @__PURE__ */ jsx(PencilIcon, {})
|
|
186
|
+
}), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
187
|
+
side: "top",
|
|
188
|
+
sideOffset: 6,
|
|
189
|
+
children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: "New thread" })
|
|
190
|
+
}) })] }) : null,
|
|
191
|
+
headerActions
|
|
192
|
+
]
|
|
168
193
|
}),
|
|
169
194
|
/* @__PURE__ */ jsxs(SearchField.Root, {
|
|
170
195
|
className: "think-thread-picker__search",
|
|
@@ -259,18 +284,6 @@ function ThinkThreadPicker({ threads, renderThreadLink, createThreadLink, onSele
|
|
|
259
284
|
})]
|
|
260
285
|
})
|
|
261
286
|
}),
|
|
262
|
-
createThreadLink ? /* @__PURE__ */ jsx("div", {
|
|
263
|
-
className: "think-thread-picker__footer",
|
|
264
|
-
children: /* @__PURE__ */ jsxs(LinkButton, {
|
|
265
|
-
ref: createButtonRef,
|
|
266
|
-
variant: "normal",
|
|
267
|
-
color: "neutral",
|
|
268
|
-
size: "sm",
|
|
269
|
-
className: "think-thread-picker__create",
|
|
270
|
-
render: createThreadLink,
|
|
271
|
-
children: [/* @__PURE__ */ jsx(PlusIcon, {}), /* @__PURE__ */ jsx("span", { children: "New thread" })]
|
|
272
|
-
})
|
|
273
|
-
}) : null,
|
|
274
287
|
onDelete && deleteCandidate ? /* @__PURE__ */ jsx(AlertDialog.Root, {
|
|
275
288
|
open: deleteOpen,
|
|
276
289
|
onOpenChange: (open, eventDetails) => {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-Bh9-Jo1r.js";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/agents-sdk/WorkbenchBack.d.ts
|
|
5
|
+
/** Back follows the visible hierarchy, never unrelated browser history. */
|
|
6
|
+
declare function WorkbenchBack({
|
|
7
|
+
navigation,
|
|
8
|
+
filesOpen,
|
|
9
|
+
onBackToChat,
|
|
10
|
+
backToChatLink
|
|
11
|
+
}: {
|
|
12
|
+
navigation?: WorkspaceNavigationAdapter;
|
|
13
|
+
filesOpen: boolean;
|
|
14
|
+
onBackToChat?: () => void;
|
|
15
|
+
backToChatLink?: ReactElement;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { WorkbenchBack };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { r as ArrowLeftIcon } from "../../icons-cuEtsgj9.js";
|
|
2
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/agents-sdk/WorkbenchBack.tsx
|
|
5
|
+
/** Back follows the visible hierarchy, never unrelated browser history. */
|
|
6
|
+
function WorkbenchBack({ navigation, filesOpen, onBackToChat, backToChatLink }) {
|
|
7
|
+
if (filesOpen && navigation?.current.destination.kind === "file") return /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
8
|
+
"data-workbench-back": "",
|
|
9
|
+
label: "Back to workspace",
|
|
10
|
+
render: navigation.renderLink({ kind: "files" }),
|
|
11
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
12
|
+
});
|
|
13
|
+
if (backToChatLink) return /* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
14
|
+
"data-workbench-back": "",
|
|
15
|
+
label: "Back to chat",
|
|
16
|
+
render: backToChatLink,
|
|
17
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
18
|
+
});
|
|
19
|
+
return /* @__PURE__ */ jsx(AppTopBar.Button, {
|
|
20
|
+
"data-workbench-back": "",
|
|
21
|
+
label: "Back to chat",
|
|
22
|
+
onClick: onBackToChat,
|
|
23
|
+
children: /* @__PURE__ */ jsx(ArrowLeftIcon, {})
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { WorkbenchBack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as workspaceFileQueryKey, C as refreshWorkspaceFileQueries, D as workspaceDirectoryQueryOptions, E as workspaceDirectoryQueryKey, F as workspaceTextFileQueryOptions, M as workspaceInfoQueryKey, N as workspaceInfoQueryOptions, O as workspaceDirectoryQueryPrefix, P as workspaceQueryKey, S as WorkspaceTextFileQueryOptions, T as workspaceBinaryFileQueryOptions, _ as WorkspaceQueryOptions, a as WorkspaceDirectoryQueryOptions, b as WorkspaceState, c as WorkspaceFileQueryKey, d as WorkspaceFileStatQueryOptions, f as WorkspaceFileVersion, g as WorkspaceQueryKey, h as WorkspaceInfoQueryOptions, i as WorkspaceDirectoryQueryKey, j as workspaceFileStatQueryOptions, k as workspaceFileAssetQueryOptions, l as WorkspaceFileReadTarget, m as WorkspaceInfoQueryKey, n as WorkspaceBinaryFileQueryKey, o as WorkspaceFileAssetQueryKey, p as WorkspaceInfo, r as WorkspaceBinaryFileQueryOptions, s as WorkspaceFileAssetQueryOptions, t as UseWorkspaceOptions, u as WorkspaceFileStatQueryKey, v as WorkspaceResolvedAsset, w as useWorkspace, x as WorkspaceTextFileQueryKey, y as WorkspaceSource } from "../../Workspace-
|
|
1
|
+
import { A as workspaceFileQueryKey, C as refreshWorkspaceFileQueries, D as workspaceDirectoryQueryOptions, E as workspaceDirectoryQueryKey, F as workspaceTextFileQueryOptions, M as workspaceInfoQueryKey, N as workspaceInfoQueryOptions, O as workspaceDirectoryQueryPrefix, P as workspaceQueryKey, S as WorkspaceTextFileQueryOptions, T as workspaceBinaryFileQueryOptions, _ as WorkspaceQueryOptions, a as WorkspaceDirectoryQueryOptions, b as WorkspaceState, c as WorkspaceFileQueryKey, d as WorkspaceFileStatQueryOptions, f as WorkspaceFileVersion, g as WorkspaceQueryKey, h as WorkspaceInfoQueryOptions, i as WorkspaceDirectoryQueryKey, j as workspaceFileStatQueryOptions, k as workspaceFileAssetQueryOptions, l as WorkspaceFileReadTarget, m as WorkspaceInfoQueryKey, n as WorkspaceBinaryFileQueryKey, o as WorkspaceFileAssetQueryKey, p as WorkspaceInfo, r as WorkspaceBinaryFileQueryOptions, s as WorkspaceFileAssetQueryOptions, t as UseWorkspaceOptions, u as WorkspaceFileStatQueryKey, v as WorkspaceResolvedAsset, w as useWorkspace, x as WorkspaceTextFileQueryKey, y as WorkspaceSource } from "../../Workspace-mzMZSdts.js";
|
|
2
2
|
export { UseWorkspaceOptions, WorkspaceBinaryFileQueryKey, WorkspaceBinaryFileQueryOptions, WorkspaceDirectoryQueryKey, WorkspaceDirectoryQueryOptions, WorkspaceFileAssetQueryKey, WorkspaceFileAssetQueryOptions, WorkspaceFileQueryKey, WorkspaceFileReadTarget, WorkspaceFileStatQueryKey, WorkspaceFileStatQueryOptions, WorkspaceFileVersion, WorkspaceInfo, WorkspaceInfoQueryKey, WorkspaceInfoQueryOptions, WorkspaceQueryKey, WorkspaceQueryOptions, WorkspaceResolvedAsset, WorkspaceSource, WorkspaceState, WorkspaceTextFileQueryKey, WorkspaceTextFileQueryOptions, refreshWorkspaceFileQueries, useWorkspace, workspaceBinaryFileQueryOptions, workspaceDirectoryQueryKey, workspaceDirectoryQueryOptions, workspaceDirectoryQueryPrefix, workspaceFileAssetQueryOptions, workspaceFileQueryKey, workspaceFileStatQueryOptions, workspaceInfoQueryKey, workspaceInfoQueryOptions, workspaceQueryKey, workspaceTextFileQueryOptions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SearchField } from "../foundations/SearchField.js";
|
|
2
|
-
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../../FileTree-
|
|
2
|
+
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "../../FileTree-DruTQ-oa.js";
|
|
3
3
|
import { WorkspaceHeader } from "./WorkspaceHeader.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -63,6 +63,7 @@ function WorkspaceBrowser({ workspace, title = "Workspace", leading, actions, sh
|
|
|
63
63
|
role: "alert",
|
|
64
64
|
children: error
|
|
65
65
|
}) : filterQuery ? filteredFiles.length > 0 ? /* @__PURE__ */ jsx(FileTree, {
|
|
66
|
+
appearance: "plain",
|
|
66
67
|
className: "workspace-explorer__tree",
|
|
67
68
|
selectedPath,
|
|
68
69
|
onSelect: handleSelect,
|
|
@@ -76,6 +77,7 @@ function WorkspaceBrowser({ workspace, title = "Workspace", leading, actions, sh
|
|
|
76
77
|
className: "workspace-explorer__empty",
|
|
77
78
|
children: "No matching files"
|
|
78
79
|
}) : rootEntries.length > 0 ? /* @__PURE__ */ jsx(FileTree, {
|
|
80
|
+
appearance: "plain",
|
|
79
81
|
className: "workspace-explorer__tree",
|
|
80
82
|
expanded: new Set(expandedPaths),
|
|
81
83
|
onExpandedChange: setExpandedPaths,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as WorkspaceQueryOptions, g as WorkspaceQueryKey } from "../../Workspace-
|
|
1
|
+
import { _ as WorkspaceQueryOptions, g as WorkspaceQueryKey } from "../../Workspace-mzMZSdts.js";
|
|
2
2
|
import { QueryClient, QueryFunction } from "@tanstack/react-query";
|
|
3
3
|
|
|
4
4
|
//#region src/components/agents-sdk/WorkspaceConcept.d.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as FileIcon, d as CheckIcon } from "../../icons-
|
|
2
|
+
import { S as FileIcon, d as CheckIcon } from "../../icons-cuEtsgj9.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import { Field } from "../foundations/Field.js";
|
|
5
|
-
import { Textarea } from "../foundations/Textarea.js";
|
|
6
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
7
5
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { Field } from "../foundations/Field.js";
|
|
7
|
+
import { Textarea } from "../foundations/Textarea.js";
|
|
10
8
|
import { Input } from "../foundations/Input.js";
|
|
9
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
10
|
+
import { Card, CardAction, CardContent, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
11
11
|
import { EmailMessageCard, SlackMessageCard } from "../ai-sdk/ConnectedAppCards.js";
|
|
12
|
-
import { i as WorkspaceDeleteControl, r as httpUrl, t as FaviconMark } from "../../workspace-assets-
|
|
12
|
+
import { i as WorkspaceDeleteControl, r as httpUrl, t as FaviconMark } from "../../workspace-assets-Bg7XhPsk.js";
|
|
13
13
|
import * as React from "react";
|
|
14
14
|
import { createElement } from "react";
|
|
15
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|