@mcp-b/react-components 0.49.0 → 0.50.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/{AgentChatQueue-C_Jaw3Ia.d.ts → AgentChatQueue-MrHhV901.d.ts} +1 -1
- package/dist/AgentMessageParts-C7L-Mv9U.d.ts +46 -0
- package/dist/AppTopBar-CVkLRdk7.d.ts +99 -0
- package/dist/{CodeBlock-g8sADidM.js → CodeBlock-BMK6CW9D.js} +1 -1
- package/dist/Dialog-88GF7_Th.d.ts +107 -0
- package/dist/{FileTree-H8mMg4rV.js → FileTree-okaLnS5j.js} +20 -9
- package/dist/Form-CM7GNTwR.d.ts +91 -0
- package/dist/ManagerOffice-5pEFpoV3.js +1146 -0
- package/dist/McpConnectorForm--HB0MEGC.d.ts +39 -0
- package/dist/{Menu-yb6QXWA3.d.ts → Menu-CgfUZhZd.d.ts} +1 -1
- package/dist/Popover-CgHG5DtS.d.ts +220 -0
- package/dist/{PromptInput-C4Mofitz.d.ts → PromptInput-DGPrCTPl.d.ts} +3 -2
- package/dist/ResponsiveSidebarShell-CAmmtQTR.d.ts +128 -0
- package/dist/SessionCompaction-CmTJFpzj.d.ts +89 -0
- package/dist/SetupChecklist-O6qmgwz4.js +77 -0
- package/dist/ThinkChatActivity-DENkintt.d.ts +77 -0
- package/dist/ThinkChatContext-COIgzkYp.d.ts +28 -0
- package/dist/ThinkRoutine-Cb1DdaHa.d.ts +30 -0
- package/dist/ThinkThreadPicker-yetGX_s5.d.ts +91 -0
- package/dist/{WorkspaceFileView-DYPtRVpM.js → WorkspaceFileView-ncZuIWhC.js} +2 -2
- package/dist/WorkspaceMessageResponse-8lOSAbw_.d.ts +48 -0
- package/dist/codex-model-catalog-BBN_gWcc.d.ts +155 -0
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +8 -8
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentEvent.js +2 -2
- package/dist/components/agents-sdk/BrowserLiveScreen.js +1 -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/DiscordConnectionDialog.d.ts +20 -0
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +65 -0
- package/dist/components/agents-sdk/EmployeeApp.d.ts +49 -0
- package/dist/components/agents-sdk/EmployeeApp.js +57 -0
- package/dist/components/agents-sdk/EmployeeChat.d.ts +63 -0
- package/dist/components/agents-sdk/EmployeeChat.js +84 -0
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +10 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +26 -16
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +24 -0
- package/dist/components/agents-sdk/EmployeeSchedules.js +105 -0
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +43 -0
- package/dist/components/agents-sdk/EmployeeStartScreen.js +133 -0
- package/dist/components/agents-sdk/ManagerAccountActions.d.ts +29 -0
- package/dist/components/agents-sdk/ManagerAccountActions.js +62 -0
- package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1145
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +49 -0
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +198 -0
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
- package/dist/components/agents-sdk/McpConnectionRequest.js +3 -3
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -38
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +3 -3
- package/dist/components/agents-sdk/McpPluginCatalog.js +4 -4
- package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.d.ts +4 -4
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- package/dist/components/agents-sdk/ModelEndpointDialog.d.ts +31 -0
- package/dist/components/agents-sdk/ModelEndpointDialog.js +118 -0
- package/dist/components/agents-sdk/ModelSelector.d.ts +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.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SessionCompaction.d.ts +1 -88
- package/dist/components/agents-sdk/SlackConnectionDialog.d.ts +18 -0
- package/dist/components/agents-sdk/SlackConnectionDialog.js +48 -0
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunPanel.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.d.ts +6 -6
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -76
- package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
- package/dist/components/agents-sdk/ThinkChatContext.d.ts +1 -27
- 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.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkRecoveryNotice.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +1 -29
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkRoutineActions.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +1 -1
- 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 -90
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +6 -6
- package/dist/components/agents-sdk/WorkspaceExecution.js +7 -7
- package/dist/components/agents-sdk/WorkspaceExplorer.js +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/WorkspaceMessageResponse.d.ts +1 -47
- package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +4 -4
- package/dist/components/agents-sdk/WorkspaceUserScript.js +4 -4
- package/dist/components/ai-sdk/Activity.js +1 -1
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +5 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +1 -1
- package/dist/components/ai-sdk/AgentMessageParts.d.ts +1 -45
- package/dist/components/ai-sdk/Approval.js +2 -2
- 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.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.d.ts +1 -1
- package/dist/components/ai-sdk/Context.js +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.js +2 -2
- package/dist/components/ai-sdk/MessageScroller.js +1 -1
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +2 -1
- package/dist/components/ai-sdk/Plan.d.ts +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +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.js +1 -1
- package/dist/components/extension/CodexModelSelector.d.ts +2 -2
- package/dist/components/extension/CodexModelSelector.js +3 -3
- 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.d.ts +10 -23
- package/dist/components/foundations/ContextMenu.js +3 -2
- package/dist/components/foundations/Dialog.d.ts +1 -106
- package/dist/components/foundations/Form.d.ts +1 -90
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menubar.d.ts +1 -1
- package/dist/components/foundations/Menubar.js +1 -1
- package/dist/components/foundations/Popover.d.ts +1 -219
- package/dist/components/foundations/PreviewCard.d.ts +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/Tooltip.d.ts +1 -1
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/AccountSignInDialog.d.ts +26 -0
- package/dist/components/general-purpose/AccountSignInDialog.js +25 -0
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -98
- package/dist/components/general-purpose/Commit.js +2 -2
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/NotificationPrompt.d.ts +13 -0
- package/dist/components/general-purpose/NotificationPrompt.js +18 -0
- 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 -127
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +124 -72
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +2 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -76
- package/dist/components/general-purpose/StatusScreen.d.ts +10 -0
- package/dist/components/general-purpose/StatusScreen.js +13 -0
- 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.js +2 -2
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.d.ts +1 -1
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-CSDuDfdP.js → copy-button-Dk2vRe9j.js} +1 -1
- package/dist/mcp-server-catalog-D9p4gGeJ.d.ts +1112 -0
- package/dist/styles/accessibility.css +20 -0
- package/dist/styles/agent-chat.css +1 -1
- package/dist/styles/base.css +0 -8
- package/dist/styles/codex-model-selector.css +4 -0
- package/dist/styles/color-contrast.test.ts +212 -0
- package/dist/styles/employee-app.css +29 -0
- package/dist/styles/file-tree.css +5 -1
- package/dist/styles/index.css +2 -0
- package/dist/styles/manager-office.css +5 -5
- package/dist/styles/manager-work.css +93 -0
- package/dist/styles/responsive-sidebar-shell.css +1 -1
- package/dist/utils/codex-model-catalog.d.ts +1 -135
- package/dist/utils/codex-model-catalog.js +22 -5
- package/dist/utils/mcp-server-catalog.d.ts +1 -1111
- package/dist/{workspace-assets-Bg7XhPsk.js → workspace-assets-wW_lQLYK.js} +2 -2
- package/package.json +3 -3
- package/dist/{icons-cuEtsgj9.js → icons-CeGfXO21.js} +1 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EmployeeShellProps } from "./EmployeeChrome.js";
|
|
2
|
+
import { ManagerOfficeConnectedEmployee, ManagerOfficeDestination, ManagerOfficeEmployee } from "./ManagerOffice.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/agents-sdk/ManagerOfficeScreens.d.ts
|
|
6
|
+
type ManagerOfficeView = {
|
|
7
|
+
kind: "attention";
|
|
8
|
+
} | {
|
|
9
|
+
kind: "employee";
|
|
10
|
+
employeeId: string;
|
|
11
|
+
};
|
|
12
|
+
interface ManagerWorkShellProps extends EmployeeShellProps {
|
|
13
|
+
employees: readonly ManagerOfficeEmployee[];
|
|
14
|
+
employee: ManagerOfficeEmployee;
|
|
15
|
+
renderOfficeLink: (destination: ManagerOfficeDestination) => React.ReactElement;
|
|
16
|
+
officeActions: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/** Workforce navigation remains available while reading or sending work. */
|
|
19
|
+
declare function ManagerWorkShell({
|
|
20
|
+
employees,
|
|
21
|
+
employee,
|
|
22
|
+
renderOfficeLink,
|
|
23
|
+
officeActions,
|
|
24
|
+
...chrome
|
|
25
|
+
}: ManagerWorkShellProps): React.JSX.Element;
|
|
26
|
+
/** Employee channels in the same raised workbench plane as files and other output. */
|
|
27
|
+
declare function ManagerWorkChannels({
|
|
28
|
+
employee
|
|
29
|
+
}: {
|
|
30
|
+
employee: ManagerOfficeConnectedEmployee;
|
|
31
|
+
}): React.JSX.Element;
|
|
32
|
+
/** Canonical manager overview; the host supplies its roster, actions and destinations. */
|
|
33
|
+
declare function ManagerOfficeScreen({
|
|
34
|
+
employees,
|
|
35
|
+
renderLink,
|
|
36
|
+
view,
|
|
37
|
+
emptyOfficeAction,
|
|
38
|
+
officeActions,
|
|
39
|
+
renderEmployeeActions
|
|
40
|
+
}: {
|
|
41
|
+
/** Current employee projections, including connecting and offline entries. */employees: readonly ManagerOfficeEmployee[]; /** Render a host-owned route link for an office destination. */
|
|
42
|
+
renderLink: (destination: ManagerOfficeDestination) => React.ReactElement; /** Selected attention inbox or employee dossier. */
|
|
43
|
+
view: ManagerOfficeView; /** Sign-in or add-employee control shown for an empty roster. */
|
|
44
|
+
emptyOfficeAction: React.ReactNode; /** Shared account actions displayed above the employee roster. */
|
|
45
|
+
officeActions: React.ReactNode; /** Shared account actions for the selected employee. */
|
|
46
|
+
renderEmployeeActions: (employee: ManagerOfficeConnectedEmployee) => React.ReactNode;
|
|
47
|
+
}): React.JSX.Element;
|
|
48
|
+
//#endregion
|
|
49
|
+
export { ManagerOfficeScreen, ManagerOfficeView, ManagerWorkChannels, ManagerWorkShell, ManagerWorkShellProps };
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { B as PlusIcon, C as FolderIcon, G as SlackIcon, P as MonitorIcon, R as PencilIcon, et as WarningIcon, j as MessageSquareIcon } from "../../icons-CeGfXO21.js";
|
|
2
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
3
|
+
import "../foundations/icons.js";
|
|
4
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
5
|
+
import { ResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
6
|
+
import { ThinkThreadPicker } from "./ThinkThreadPicker.js";
|
|
7
|
+
import { EmployeeChrome } from "./EmployeeChrome.js";
|
|
8
|
+
import { n as ManagerOfficeSidebar, r as ManagerOfficeSidebarAlert, t as ManagerOffice } from "../../ManagerOffice-5pEFpoV3.js";
|
|
9
|
+
import "react";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
//#region src/components/agents-sdk/ManagerOfficeScreens.tsx
|
|
12
|
+
/** Workforce navigation remains available while reading or sending work. */
|
|
13
|
+
function ManagerWorkShell({ employees, employee, renderOfficeLink, officeActions, ...chrome }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(ManagerOffice.Root, {
|
|
15
|
+
employees,
|
|
16
|
+
renderLink: renderOfficeLink,
|
|
17
|
+
children: /* @__PURE__ */ jsx(EmployeeChrome.Shell, {
|
|
18
|
+
...chrome,
|
|
19
|
+
sidebarLabel: "employees",
|
|
20
|
+
navigation: [
|
|
21
|
+
{
|
|
22
|
+
id: "chat",
|
|
23
|
+
label: "Chat",
|
|
24
|
+
icon: /* @__PURE__ */ jsx(MessageSquareIcon, {})
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: "files",
|
|
28
|
+
label: "Files",
|
|
29
|
+
icon: /* @__PURE__ */ jsx(FolderIcon, {})
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "live",
|
|
33
|
+
label: "Browser",
|
|
34
|
+
icon: /* @__PURE__ */ jsx(MonitorIcon, {})
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: "channels",
|
|
38
|
+
label: "Channels",
|
|
39
|
+
icon: /* @__PURE__ */ jsx(SlackIcon, {})
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
sidebar: ({ closeSidebarOnCompact }) => /* @__PURE__ */ jsx(ManagerOfficeSidebar, {
|
|
43
|
+
layout: "chat",
|
|
44
|
+
employees,
|
|
45
|
+
selectedEmployeeId: employee.id,
|
|
46
|
+
closeSidebarOnCompact,
|
|
47
|
+
officeActions,
|
|
48
|
+
renderLink: (destination) => {
|
|
49
|
+
if (destination.kind === "employee" && "work" in destination.employee) {
|
|
50
|
+
const first = destination.employee.work[0];
|
|
51
|
+
return renderOfficeLink(first ? {
|
|
52
|
+
kind: "work",
|
|
53
|
+
employee: destination.employee,
|
|
54
|
+
work: first
|
|
55
|
+
} : {
|
|
56
|
+
kind: "new-work",
|
|
57
|
+
employee: destination.employee
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return renderOfficeLink(destination);
|
|
61
|
+
},
|
|
62
|
+
content: /* @__PURE__ */ jsxs("div", {
|
|
63
|
+
className: "manager-work__employee-chats",
|
|
64
|
+
children: ["handoffs" in employee && employee.handoffs.length ? /* @__PURE__ */ jsxs("section", {
|
|
65
|
+
className: "manager-work__handoffs",
|
|
66
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
67
|
+
className: "manager-work__section-header",
|
|
68
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
69
|
+
className: "manager-work__section-label",
|
|
70
|
+
children: "Waiting on you"
|
|
71
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
72
|
+
className: "manager-work__section-count",
|
|
73
|
+
"aria-label": `${employee.handoffs.length} waiting on you`,
|
|
74
|
+
children: [/* @__PURE__ */ jsx(WarningIcon, { "aria-hidden": "true" }), employee.handoffs.length]
|
|
75
|
+
})]
|
|
76
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
77
|
+
className: "manager-work__alert-list",
|
|
78
|
+
children: employee.handoffs.map((handoff) => /* @__PURE__ */ jsx(ManagerOfficeSidebarAlert, {
|
|
79
|
+
title: handoff.reason,
|
|
80
|
+
detail: handoff.workTitle,
|
|
81
|
+
render: renderOfficeLink({
|
|
82
|
+
kind: "handoff",
|
|
83
|
+
employee,
|
|
84
|
+
handoff
|
|
85
|
+
}),
|
|
86
|
+
onClick: closeSidebarOnCompact
|
|
87
|
+
}, handoff.id))
|
|
88
|
+
})]
|
|
89
|
+
}) : null, /* @__PURE__ */ jsx("section", {
|
|
90
|
+
className: "manager-work__threads",
|
|
91
|
+
children: /* @__PURE__ */ jsx(ThinkThreadPicker, {
|
|
92
|
+
className: "manager-work__threads-picker",
|
|
93
|
+
title: `${employee.name}'s threads`,
|
|
94
|
+
"aria-label": `${employee.name}'s chats`,
|
|
95
|
+
threads: chrome.threads ?? ("work" in employee ? employee.work : []),
|
|
96
|
+
createThreadLink: chrome.renderLink({ kind: "new-thread" }),
|
|
97
|
+
renderThreadLink: (thread) => chrome.renderLink({
|
|
98
|
+
kind: "thread",
|
|
99
|
+
threadId: thread.id
|
|
100
|
+
}),
|
|
101
|
+
onDelete: chrome.onDeleteThread,
|
|
102
|
+
onSelect: closeSidebarOnCompact
|
|
103
|
+
})
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/** Employee channels in the same raised workbench plane as files and other output. */
|
|
111
|
+
function ManagerWorkChannels({ employee }) {
|
|
112
|
+
return /* @__PURE__ */ jsx(ManagerOffice.Main, {
|
|
113
|
+
render: /* @__PURE__ */ jsx("section", {}),
|
|
114
|
+
"aria-label": "Employee channels",
|
|
115
|
+
children: /* @__PURE__ */ jsx(ManagerOffice.Employee, {
|
|
116
|
+
employee,
|
|
117
|
+
children: /* @__PURE__ */ jsx(ManagerOffice.Channels, {})
|
|
118
|
+
})
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/** Canonical manager overview; the host supplies its roster, actions and destinations. */
|
|
122
|
+
function ManagerOfficeScreen({ employees, renderLink, view, emptyOfficeAction, officeActions, renderEmployeeActions }) {
|
|
123
|
+
const employee = view.kind === "employee" ? employees.find((item) => item.id === view.employeeId) : void 0;
|
|
124
|
+
const connected = employee && "work" in employee ? employee : void 0;
|
|
125
|
+
const title = view.kind === "attention" ? "Waiting on you" : employee?.name ?? "Employee";
|
|
126
|
+
return /* @__PURE__ */ jsx(ManagerOffice.Root, {
|
|
127
|
+
employees,
|
|
128
|
+
renderLink,
|
|
129
|
+
render: /* @__PURE__ */ jsx(ResponsiveSidebarShell, {
|
|
130
|
+
sidebarLabel: "employees",
|
|
131
|
+
showMainLabel: "Show workforce",
|
|
132
|
+
sidebar: ({ closeSidebarOnCompact }) => /* @__PURE__ */ jsx(ManagerOfficeSidebar, {
|
|
133
|
+
employees,
|
|
134
|
+
renderLink,
|
|
135
|
+
selectedEmployeeId: employee?.id ?? null,
|
|
136
|
+
closeSidebarOnCompact,
|
|
137
|
+
officeActions
|
|
138
|
+
}),
|
|
139
|
+
bar: {
|
|
140
|
+
label: "Workforce controls",
|
|
141
|
+
title,
|
|
142
|
+
titleRender: (props) => /* @__PURE__ */ jsx("h1", {
|
|
143
|
+
...props,
|
|
144
|
+
children: props.children
|
|
145
|
+
}),
|
|
146
|
+
actions: connected ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
147
|
+
/* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
148
|
+
label: `Start new work with ${connected.name}`,
|
|
149
|
+
tooltip: "New work",
|
|
150
|
+
render: renderLink({
|
|
151
|
+
kind: "new-work",
|
|
152
|
+
employee: connected
|
|
153
|
+
}),
|
|
154
|
+
children: /* @__PURE__ */ jsx(PencilIcon, {})
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ jsx(AppTopBar.Link, {
|
|
157
|
+
label: `Open ${connected.name} workspace`,
|
|
158
|
+
tooltip: "Workspace",
|
|
159
|
+
render: renderLink({
|
|
160
|
+
kind: "workspace",
|
|
161
|
+
employee: connected
|
|
162
|
+
}),
|
|
163
|
+
children: /* @__PURE__ */ jsx(FolderIcon, {})
|
|
164
|
+
}),
|
|
165
|
+
renderEmployeeActions(connected)
|
|
166
|
+
] }) : void 0
|
|
167
|
+
}
|
|
168
|
+
}),
|
|
169
|
+
children: /* @__PURE__ */ jsx(ManagerOffice.Main, {
|
|
170
|
+
"aria-label": view.kind === "attention" ? title : `${title} details`,
|
|
171
|
+
children: !employees.length ? /* @__PURE__ */ jsx(EmptyState, {
|
|
172
|
+
icon: /* @__PURE__ */ jsx(PlusIcon, {}),
|
|
173
|
+
title: "Add your first employee",
|
|
174
|
+
description: "Connect another profile to manage it here.",
|
|
175
|
+
children: emptyOfficeAction
|
|
176
|
+
}) : view.kind === "attention" ? /* @__PURE__ */ jsx(ManagerOffice.Attention, {}) : /* @__PURE__ */ jsx(EmployeeOverview, { employee })
|
|
177
|
+
})
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/** Selected employee content, including disconnected and missing roster entries. */
|
|
181
|
+
function EmployeeOverview({ employee }) {
|
|
182
|
+
if (!employee) return /* @__PURE__ */ jsx(EmptyState, {
|
|
183
|
+
icon: /* @__PURE__ */ jsx(WarningIcon, {}),
|
|
184
|
+
title: "Employee unavailable",
|
|
185
|
+
description: "Choose another employee from the roster."
|
|
186
|
+
});
|
|
187
|
+
if (!("work" in employee)) return /* @__PURE__ */ jsx(ManagerOffice.ConnectionState, { employee });
|
|
188
|
+
return /* @__PURE__ */ jsxs(ManagerOffice.Employee, {
|
|
189
|
+
employee,
|
|
190
|
+
children: [
|
|
191
|
+
/* @__PURE__ */ jsx(ManagerOffice.EmployeeHeader, {}),
|
|
192
|
+
/* @__PURE__ */ jsx(ManagerOffice.Handoffs, {}),
|
|
193
|
+
/* @__PURE__ */ jsxs(ManagerOffice.Columns, { children: [/* @__PURE__ */ jsx(ManagerOffice.Work, {}), /* @__PURE__ */ jsxs(ManagerOffice.Aside, { children: [/* @__PURE__ */ jsx(ManagerOffice.Routines, {}), /* @__PURE__ */ jsx(ManagerOffice.Channels, {})] })] })
|
|
194
|
+
]
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
export { ManagerOfficeScreen, ManagerWorkChannels, ManagerWorkShell };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServerCard } from "../../
|
|
1
|
+
import { o as McpServerCard } from "../../mcp-server-catalog-D9p4gGeJ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { DynamicToolUIPart, ToolUIPart } from "ai";
|
|
4
4
|
import { MCPServersState } from "agents";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, d as CheckIcon, et as WarningIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, d as CheckIcon, et as WarningIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
4
5
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
5
|
-
import { McpServerIcon } from "./McpServerIcon.js";
|
|
6
6
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
7
|
-
import {
|
|
7
|
+
import { McpServerIcon } from "./McpServerIcon.js";
|
|
8
8
|
import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
|
|
9
9
|
import * as React from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/agents-sdk/McpConnectorForm.d.ts
|
|
5
|
-
type CredentialFieldName = Exclude<McpServerSetupAuthFieldName, "redirectUrl">;
|
|
6
|
-
type McpConnectorFormValues = Readonly<Partial<Record<CredentialFieldName, string>> & {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly url: string;
|
|
9
|
-
}>;
|
|
10
|
-
type McpConnectorFormProps = Omit<React.FormHTMLAttributes<HTMLFormElement>, "onSubmit" | "status"> & {
|
|
11
|
-
/** Authentication metadata that decides which credential fields render. */readonly auth?: McpServerSetupAuth; /** Initial connector values. Publisher client credentials remain app-owned. */
|
|
12
|
-
readonly defaults?: Partial<McpConnectorFormValues>; /** Optional pattern used to validate the MCP name field. */
|
|
13
|
-
readonly namePattern?: string; /** Keep a catalog-owned MCP name and URL visible but immutable. */
|
|
14
|
-
readonly readOnlyServer?: boolean; /** Read-only redirect URL shown for manual OAuth client setup. */
|
|
15
|
-
readonly redirectUrl?: string; /** Inline connection status announced politely to assistive tech. */
|
|
16
|
-
readonly status?: React.ReactNode; /** Label for the submit button. */
|
|
17
|
-
readonly submitLabel?: string; /** Label shown while submit is pending. */
|
|
18
|
-
readonly submittingLabel?: string; /** Called with normalized connector values after native form validation passes. */
|
|
19
|
-
readonly onSubmit: (values: McpConnectorFormValues) => void | Promise<void>;
|
|
20
|
-
};
|
|
21
|
-
/** Collects MCP connector settings and optional credentials with native form validation. */
|
|
22
|
-
declare function McpConnectorForm({
|
|
23
|
-
auth,
|
|
24
|
-
className,
|
|
25
|
-
defaults,
|
|
26
|
-
namePattern,
|
|
27
|
-
readOnlyServer,
|
|
28
|
-
redirectUrl,
|
|
29
|
-
status,
|
|
30
|
-
submitLabel,
|
|
31
|
-
submittingLabel,
|
|
32
|
-
onSubmit,
|
|
33
|
-
ref,
|
|
34
|
-
...props
|
|
35
|
-
}: McpConnectorFormProps & {
|
|
36
|
-
/** Ref forwarded to the component's rendered root element. */ref?: React.Ref<HTMLFormElement>;
|
|
37
|
-
}): React.JSX.Element;
|
|
38
|
-
//#endregion
|
|
1
|
+
import { n as McpConnectorFormProps, r as McpConnectorFormValues, t as McpConnectorForm } from "../../McpConnectorForm--HB0MEGC.js";
|
|
39
2
|
export { McpConnectorForm, McpConnectorFormProps, McpConnectorFormValues };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CUSTOM_MCP_SERVER_CARD } from "../../utils/mcp-server-catalog.js";
|
|
2
2
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
5
4
|
import { Field } from "../foundations/Field.js";
|
|
6
5
|
import { Form } from "../foundations/Form.js";
|
|
6
|
+
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
7
7
|
import { Fieldset } from "../foundations/Fieldset.js";
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { l as DialogProps } from "../../Dialog-88GF7_Th.js";
|
|
2
|
+
import { o as McpServerCard } from "../../mcp-server-catalog-D9p4gGeJ.js";
|
|
3
|
+
import { r as McpConnectorFormValues } from "../../McpConnectorForm--HB0MEGC.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { MCPServersState } from "agents";
|
|
6
6
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CUSTOM_MCP_SERVER_CARD } from "../../utils/mcp-server-catalog.js";
|
|
2
2
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
3
|
-
import { B as PlusIcon, K as SpinnerIcon, et as WarningIcon, nt as XIcon, o as ArrowUpRightIcon, y as EllipsisIcon } from "../../icons-
|
|
3
|
+
import { B as PlusIcon, K as SpinnerIcon, et as WarningIcon, nt as XIcon, o as ArrowUpRightIcon, y as EllipsisIcon } from "../../icons-CeGfXO21.js";
|
|
4
4
|
import { Button } from "../foundations/Button.js";
|
|
5
|
+
import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
5
6
|
import { IconButton } from "../foundations/IconButton.js";
|
|
6
7
|
import { Dialog } from "../foundations/Dialog.js";
|
|
7
8
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
9
|
+
import { Separator } from "../foundations/Separator.js";
|
|
8
10
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
9
|
-
import { McpServerIcon } from "./McpServerIcon.js";
|
|
10
11
|
import { SearchField } from "../foundations/SearchField.js";
|
|
11
|
-
import {
|
|
12
|
-
import { AgentAttention, AgentAttentionBody, AgentAttentionHeader } from "../ai-sdk/AgentAttention.js";
|
|
12
|
+
import { McpServerIcon } from "./McpServerIcon.js";
|
|
13
13
|
import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
|
|
14
14
|
import { McpServerSetupDialog } from "./McpServerPicker.js";
|
|
15
15
|
import * as React from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServerCard } from "../../
|
|
1
|
+
import { o as McpServerCard } from "../../mcp-server-catalog-D9p4gGeJ.js";
|
|
2
2
|
import { AppIconSize, AppIconVariant } from "../foundations/AppIcon.js";
|
|
3
3
|
|
|
4
4
|
//#region src/components/agents-sdk/McpServerIcon.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as MenuItemProps, t as Menu } from "../../Menu-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { s as MenuItemProps, t as Menu } from "../../Menu-CgfUZhZd.js";
|
|
2
|
+
import { l as DialogProps } from "../../Dialog-88GF7_Th.js";
|
|
3
|
+
import { o as McpServerCard } from "../../mcp-server-catalog-D9p4gGeJ.js";
|
|
4
|
+
import { n as McpConnectorFormProps } from "../../McpConnectorForm--HB0MEGC.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { MCPServersState } from "agents";
|
|
7
7
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, N as MinusIcon, d as CheckIcon, et as WarningIcon } from "../../icons-
|
|
2
|
+
import { K as SpinnerIcon, N as MinusIcon, d as CheckIcon, et as WarningIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { buttonVariants } from "../foundations/Button.js";
|
|
4
|
+
import { Menu } from "../foundations/Menu.js";
|
|
4
5
|
import { Dialog } from "../foundations/Dialog.js";
|
|
5
6
|
import { a as formatErrorMessage } from "../../format-COCyV98Z.js";
|
|
6
|
-
import { Menu } from "../foundations/Menu.js";
|
|
7
7
|
import { PromptInputActionMenu, PromptInputActionMenuContent, PromptInputActionMenuTrigger } from "../ai-sdk/PromptInput.js";
|
|
8
8
|
import { McpServerIcon } from "./McpServerIcon.js";
|
|
9
9
|
import { t as getMcpServerProjection } from "../../mcp-server-mAErsxHU.js";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SettingsFormDialogProps } from "../general-purpose/SettingsFormDialog.js";
|
|
2
|
+
|
|
3
|
+
//#region src/components/agents-sdk/ModelEndpointDialog.d.ts
|
|
4
|
+
interface ModelEndpointDialogProps {
|
|
5
|
+
/** Whether the host has opened its model connection settings. */
|
|
6
|
+
open: boolean;
|
|
7
|
+
/** Update the host-owned open state after dismissal or successful submission. */
|
|
8
|
+
onOpenChange: SettingsFormDialogProps["onOpenChange"];
|
|
9
|
+
/** Validate and persist the raw connection form values; rejection remains visible. */
|
|
10
|
+
onSubmit: SettingsFormDialogProps["onFormSubmit"];
|
|
11
|
+
/** Remove the configured endpoint and return to ChatGPT. */
|
|
12
|
+
onRemove?: () => Promise<void>;
|
|
13
|
+
/** Existing endpoint values and the most recent request error. */
|
|
14
|
+
configured?: {
|
|
15
|
+
baseUrl: string;
|
|
16
|
+
modelId: string;
|
|
17
|
+
acceptsImages: boolean;
|
|
18
|
+
acceptsPdfs: boolean;
|
|
19
|
+
error?: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/** Shared connection form; the host owns validation, credentials and persistence. */
|
|
23
|
+
declare function ModelEndpointDialog({
|
|
24
|
+
open,
|
|
25
|
+
onOpenChange,
|
|
26
|
+
onSubmit,
|
|
27
|
+
onRemove,
|
|
28
|
+
configured
|
|
29
|
+
}: ModelEndpointDialogProps): import("react").JSX.Element;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { ModelEndpointDialog, ModelEndpointDialogProps };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Field } from "../foundations/Field.js";
|
|
2
|
+
import { Checkbox } from "../foundations/Checkbox.js";
|
|
3
|
+
import { SettingsFormDialog } from "../general-purpose/SettingsFormDialog.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/agents-sdk/ModelEndpointDialog.tsx
|
|
6
|
+
/** Shared connection form; the host owns validation, credentials and persistence. */
|
|
7
|
+
function ModelEndpointDialog({ open, onOpenChange, onSubmit, onRemove, configured }) {
|
|
8
|
+
return /* @__PURE__ */ jsxs(SettingsFormDialog, {
|
|
9
|
+
open,
|
|
10
|
+
onOpenChange,
|
|
11
|
+
title: "Custom model endpoint",
|
|
12
|
+
description: "Run inference against any OpenAI-compatible chat-completions endpoint — an org gateway, vLLM, LiteLLM, or a local Ollama. The API key is stored by your employee and used for model requests; leave it blank for endpoints without auth.",
|
|
13
|
+
submitLabel: "Use this endpoint",
|
|
14
|
+
removeLabel: onRemove ? "Use ChatGPT instead" : void 0,
|
|
15
|
+
externalError: configured?.error ? `Last request failed: ${configured.error}` : void 0,
|
|
16
|
+
onFormSubmit: onSubmit,
|
|
17
|
+
onRemove,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsxs(Field.Root, {
|
|
20
|
+
name: "baseUrl",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ jsx(Field.Label, { children: "Base URL" }),
|
|
23
|
+
/* @__PURE__ */ jsx(Field.Control, {
|
|
24
|
+
type: "url",
|
|
25
|
+
placeholder: "https://gateway.example.com/v1",
|
|
26
|
+
autoComplete: "off",
|
|
27
|
+
defaultValue: configured?.baseUrl,
|
|
28
|
+
required: true
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsx(Field.Error, {
|
|
31
|
+
match: "valueMissing",
|
|
32
|
+
children: "Base URL is required."
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ jsx(Field.Error, {
|
|
35
|
+
match: "typeMismatch",
|
|
36
|
+
children: "Enter a valid URL."
|
|
37
|
+
})
|
|
38
|
+
]
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsxs(Field.Root, {
|
|
41
|
+
name: "modelId",
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ jsx(Field.Label, { children: "Model id" }),
|
|
44
|
+
/* @__PURE__ */ jsx(Field.Control, {
|
|
45
|
+
placeholder: "qwen3-coder",
|
|
46
|
+
autoComplete: "off",
|
|
47
|
+
defaultValue: configured?.modelId,
|
|
48
|
+
required: true
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ jsx(Field.Error, {
|
|
51
|
+
match: "valueMissing",
|
|
52
|
+
children: "Model id is required."
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ jsxs(Field.Root, {
|
|
57
|
+
name: "apiKey",
|
|
58
|
+
children: [/* @__PURE__ */ jsx(Field.Label, { children: configured ? "API key (optional, stored)" : "API key (optional)" }), /* @__PURE__ */ jsx(Field.Control, {
|
|
59
|
+
type: "password",
|
|
60
|
+
autoComplete: "off"
|
|
61
|
+
})]
|
|
62
|
+
}),
|
|
63
|
+
/* @__PURE__ */ jsxs(Field.Root, {
|
|
64
|
+
name: "autoCapabilities",
|
|
65
|
+
orientation: "horizontal",
|
|
66
|
+
children: [/* @__PURE__ */ jsx(Checkbox.Root, {
|
|
67
|
+
defaultChecked: !configured,
|
|
68
|
+
children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
|
|
69
|
+
}), /* @__PURE__ */ jsxs(Field.Content, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "Detect capabilities automatically" }), /* @__PURE__ */ jsxs(Field.Description, { children: [
|
|
70
|
+
"Looks up the model id in the open",
|
|
71
|
+
" ",
|
|
72
|
+
/* @__PURE__ */ jsx("a", {
|
|
73
|
+
href: "https://models.dev",
|
|
74
|
+
target: "_blank",
|
|
75
|
+
rel: "noreferrer",
|
|
76
|
+
children: "models.dev"
|
|
77
|
+
}),
|
|
78
|
+
" ",
|
|
79
|
+
"registry (or your Ollama) and ignores the boxes below. Uncheck to declare capabilities yourself."
|
|
80
|
+
] })] })]
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ jsxs(Field.Root, {
|
|
83
|
+
name: "acceptsImages",
|
|
84
|
+
orientation: "horizontal",
|
|
85
|
+
children: [/* @__PURE__ */ jsx(Checkbox.Root, {
|
|
86
|
+
defaultChecked: configured?.acceptsImages ?? false,
|
|
87
|
+
children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
|
|
88
|
+
}), /* @__PURE__ */ jsxs(Field.Content, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "This model reads images" }), /* @__PURE__ */ jsxs(Field.Description, { children: [
|
|
89
|
+
"Leave this off and screenshots are named, not sent — the agent reads the DOM instead.",
|
|
90
|
+
" ",
|
|
91
|
+
/* @__PURE__ */ jsx("a", {
|
|
92
|
+
href: "https://openrouter.ai/models?input_modalities=image",
|
|
93
|
+
target: "_blank",
|
|
94
|
+
rel: "noreferrer",
|
|
95
|
+
children: "OpenRouter"
|
|
96
|
+
}),
|
|
97
|
+
" ",
|
|
98
|
+
"lists which models take image input."
|
|
99
|
+
] })] })]
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ jsxs(Field.Root, {
|
|
102
|
+
name: "acceptsPdfs",
|
|
103
|
+
orientation: "horizontal",
|
|
104
|
+
children: [/* @__PURE__ */ jsx(Checkbox.Root, {
|
|
105
|
+
defaultChecked: configured?.acceptsPdfs ?? false,
|
|
106
|
+
children: /* @__PURE__ */ jsx(Checkbox.Indicator, {})
|
|
107
|
+
}), /* @__PURE__ */ jsxs(Field.Content, { children: [/* @__PURE__ */ jsx(Field.Label, { children: "This model reads PDFs" }), /* @__PURE__ */ jsxs(Field.Description, { children: [
|
|
108
|
+
"Leave this off and workspace PDFs are named, not sent — the agent routes documents through browser tools instead. Requires the endpoint to accept OpenAI-style",
|
|
109
|
+
" ",
|
|
110
|
+
/* @__PURE__ */ jsx("code", { children: "file" }),
|
|
111
|
+
" content parts."
|
|
112
|
+
] })] })]
|
|
113
|
+
})
|
|
114
|
+
]
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
export { ModelEndpointDialog };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as ButtonProps } from "../../Button-DjONW5UW.js";
|
|
2
|
-
import { DialogProps } from "
|
|
2
|
+
import { l as DialogProps } from "../../Dialog-88GF7_Th.js";
|
|
3
3
|
import { n as SeparatorProps } from "../../Separator-CzhtLYE1.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import Cloudflare from "cloudflare";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { U as SearchIcon, f as ChevronDownIcon } from "../../icons-
|
|
2
|
+
import { U as SearchIcon, f as ChevronDownIcon } from "../../icons-CeGfXO21.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
+
import { Autocomplete } from "../foundations/Autocomplete.js";
|
|
4
5
|
import { Dialog } from "../foundations/Dialog.js";
|
|
5
6
|
import { c as titleCase } from "../../format-COCyV98Z.js";
|
|
6
|
-
import {
|
|
7
|
+
import { Separator } from "../foundations/Separator.js";
|
|
7
8
|
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
8
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
9
9
|
import { t as ProviderLogo } from "../../provider-logos-DWYY8wNz.js";
|
|
10
|
-
import {
|
|
10
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
11
11
|
import * as React from "react";
|
|
12
12
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { createPortal } from "react-dom";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { ThinkExecutionApproval, ThinkPendingApproval, getPausedExecution } from "./ThinkPendingApproval.js";
|
|
3
2
|
import { ToolApproval } from "../ai-sdk/ToolApproval.js";
|
|
3
|
+
import { ThinkExecutionApproval, ThinkPendingApproval, getPausedExecution } from "./ThinkPendingApproval.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { isToolUIPart } from "ai";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as PromptInputCommandDefinition } from "../../PromptInput-
|
|
1
|
+
import { D as PromptInputCommandDefinition } from "../../PromptInput-DGPrCTPl.js";
|
|
2
2
|
import { ConversationTabPickerItem } from "../extension/ConversationTabPicker.js";
|
|
3
3
|
import { MCPServersState } from "agents";
|
|
4
4
|
import { SkillDescriptor } from "agents/skills";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { composerLinkHref } from "../../utils/composer-link.js";
|
|
2
2
|
import { findCatalogMcpServerCard, getMcpServerIconSrc } from "../../utils/mcp-server-catalog.js";
|
|
3
|
-
import { A as McpIcon, c as BoxIcon } from "../../icons-
|
|
3
|
+
import { A as McpIcon, c as BoxIcon } from "../../icons-CeGfXO21.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/agents-sdk/PromptInputCommands.tsx
|
|
6
6
|
function mcpServerCommandIcon(server) {
|