@mcp-b/react-components 0.71.0 → 0.72.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/{AgentComputer-CpS9R2KG.d.ts → AgentComputer-BI8RsGzq.d.ts} +11 -1
- package/dist/{AgentComputer-DZCyQkcE.js → AgentComputer-KhPwXwh8.js} +332 -314
- package/dist/{ChatGptSignInScreen-CmbBe09G.js → ChatGptSignInScreen-CLq5cetL.js} +1 -1
- package/dist/{CodeBlock-dt0L8md0.js → CodeBlock-ZG47S5e4.js} +1 -1
- package/dist/{ComputerCalendar-Ci7tLASe.js → ComputerCalendar-B3xdMl90.js} +565 -478
- package/dist/{ComputerPresentation-BEQKYAjc.js → ComputerPresentation-rzx6n36S.js} +26 -4
- package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-BojdvFEY.js} +2 -2
- package/dist/{FileTree-CjfzpN6X.js → FileTree-C7fh3_H5.js} +1 -1
- package/dist/{ManagerOffice-BJ2vs-Lr.js → ManagerOffice-80ZkVjSt.js} +1 -1
- package/dist/{SetupChecklist-DwscX3Bw.js → SetupChecklist-BKCMkUuh.js} +1 -1
- package/dist/{ThinkSchedule-9nzxIoX1.d.ts → ThinkSchedule-C9vErgZQ.d.ts} +2 -3
- package/dist/{WorkspaceBrowser-mRScUczT.js → WorkspaceBrowser-BFdnZrm7.js} +2 -2
- package/dist/components/agents-sdk/AIProviderDialog.js +1 -1
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.js +1 -1
- package/dist/components/agents-sdk/AgentComputer.d.ts +1 -1
- package/dist/components/agents-sdk/AgentComputer.js +1 -1
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -1
- 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/ComputerAutomations.d.ts +8 -3
- package/dist/components/agents-sdk/ComputerAutomations.js +7 -7
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +22 -2
- package/dist/components/agents-sdk/ComputerCalendar.js +1 -1
- package/dist/components/agents-sdk/ComputerChannels.d.ts +51 -0
- package/dist/components/agents-sdk/ComputerChannels.js +311 -0
- package/dist/components/agents-sdk/ComputerFiles.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerFiles.js +60 -48
- package/dist/components/agents-sdk/ComputerHome.js +1 -1
- package/dist/components/agents-sdk/ComputerLayout.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerNotifications.js +1 -1
- package/dist/components/agents-sdk/ComputerPresentation.d.ts +2 -2
- package/dist/components/agents-sdk/ComputerPresentation.js +2 -2
- package/dist/components/agents-sdk/ComputerScreen.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerScreen.js +3 -3
- package/dist/components/agents-sdk/ComputerSettings.d.ts +1 -1
- package/dist/components/agents-sdk/ComputerSettings.js +4 -4
- package/dist/components/agents-sdk/ComputerSpotlight.js +1 -1
- package/dist/components/agents-sdk/ComputerViewer.js +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +2 -2
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeSchedules.js +1 -1
- package/dist/components/agents-sdk/EmployeeStartScreen.js +2 -2
- package/dist/components/agents-sdk/ExecutionBoard.js +3 -3
- package/dist/components/agents-sdk/ManagerAccountActions.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.d.ts +2 -2
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +2 -2
- package/dist/components/agents-sdk/McpConnectionRequest.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +1 -1
- package/dist/components/agents-sdk/ModelSelector.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.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +1 -1
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkSchedule.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +2 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
- package/dist/components/agents-sdk/ThinkThreadPicker.js +1 -1
- package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +5 -5
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +4 -4
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +3 -3
- package/dist/components/agents-sdk/WorkspaceDesktop.js +326 -162
- package/dist/components/agents-sdk/WorkspaceExplorer.js +2 -2
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +2 -2
- package/dist/components/agents-sdk/WorkspaceFileView.js +5 -5
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspacePerson.js +3 -3
- package/dist/components/agents-sdk/WorkspaceProject.js +4 -4
- 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 +1 -1
- package/dist/components/ai-sdk/Artifact.js +1 -1
- package/dist/components/ai-sdk/ChainOfThought.d.ts +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 +2 -2
- 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 +1 -1
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.js +1 -1
- 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.js +1 -1
- package/dist/components/extension/ConversationTabPicker.js +1 -1
- package/dist/components/extension/FirstRunSetup.d.ts +1 -1
- package/dist/components/extension/FirstRunSetup.js +1 -1
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/ContextMenu.js +1 -1
- package/dist/components/foundations/Favicon.js +1 -1
- 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/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/CommandPalette.js +1 -1
- 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/PricingPlanCard.js +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/TestResults.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.js +1 -1
- package/dist/components/general-purpose/WebPreview.js +1 -1
- package/dist/components/nanites/AgentConnection.js +2 -2
- package/dist/components/nanites/AgentToolDetail.js +1 -1
- package/dist/{connected-app-drafts-C49343p9.js → connected-app-drafts-D2ijldOR.js} +2 -2
- package/dist/{copy-button-DWBVJR6D.js → copy-button-UNBY7oXF.js} +1 -1
- package/dist/{icons-B3n7zvU7.d.ts → icons-CMPZtOxO.d.ts} +2 -1
- package/dist/{icons-nLTnB9kd.js → icons-CNwk7DEu.js} +3 -2
- package/dist/{parts-DuT5-rDz.js → parts-Bb1aZP2y.js} +1 -1
- package/dist/{scheduled-table-source-gGpVJ1TN.js → scheduled-table-source-6YdnC3Sh.js} +1 -1
- package/dist/styles/app-top-bar.css +1 -1
- package/dist/styles/computer-calendar.css +12 -0
- package/dist/styles/computer-channels.css +87 -0
- package/dist/styles/index.css +1 -0
- package/dist/styles/list-detail.css +1 -2
- package/dist/styles/recipes.css +2 -2
- package/dist/styles/search-field.css +1 -1
- package/dist/styles/workspace-desktop.css +11 -7
- package/dist/{workspace-assets-DdtnBDU3.js → workspace-assets-CadpUKoz.js} +1 -1
- package/dist/{workspace-concept-panel-VkjvFCY_.js → workspace-concept-panel-CzxPyGpN.js} +1 -1
- package/dist/{workspace-delete-BOY6CMBf.js → workspace-delete-D9ZesEdu.js} +1 -1
- package/dist/{workspace-media-preview-B4iB5Tvi.js → workspace-media-preview-kXaEY4AN.js} +1 -1
- package/dist/{workspace-quick-look-8cbGu1Xf.js → workspace-quick-look-BDD-jXn3.js} +2 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as FileIcon,
|
|
1
|
+
import { O as FileIcon, at as SpinnerIcon, d as BrainIcon, g as ChevronRightIcon, h as ChevronLeftIcon, ht as WarningIcon, k as FolderIcon, n as ArrowDownIcon, o as ArrowUpIcon, tt as RefreshIcon, u as BoxIcon } from "./icons-CNwk7DEu.js";
|
|
2
2
|
import { Checkbox } from "./components/foundations/Checkbox.js";
|
|
3
3
|
import { Button } from "./components/foundations/Button.js";
|
|
4
4
|
import { IconButton } from "./components/foundations/IconButton.js";
|
|
@@ -838,10 +838,13 @@ const DEFAULT_COMPUTER_PRESENTATION = {
|
|
|
838
838
|
order: [],
|
|
839
839
|
hidden: []
|
|
840
840
|
},
|
|
841
|
-
folders: {}
|
|
841
|
+
folders: {},
|
|
842
|
+
desktop: {}
|
|
842
843
|
};
|
|
843
844
|
/** The most folder views a computer keeps; older ones fall back to their ancestors'. */
|
|
844
845
|
const MAX_FOLDER_VIEWS = 200;
|
|
846
|
+
/** The most desktop icon positions a computer keeps; a larger saved map reads as none. */
|
|
847
|
+
const MAX_DESKTOP_ICONS = 500;
|
|
845
848
|
function object(value) {
|
|
846
849
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
847
850
|
}
|
|
@@ -869,6 +872,24 @@ function readFolderViews(value) {
|
|
|
869
872
|
}
|
|
870
873
|
return folders;
|
|
871
874
|
}
|
|
875
|
+
function cell(value) {
|
|
876
|
+
return Number.isInteger(value) && value >= 0;
|
|
877
|
+
}
|
|
878
|
+
function readDesktopIcons(value) {
|
|
879
|
+
if (!object(value)) return null;
|
|
880
|
+
const entries = Object.entries(value);
|
|
881
|
+
if (entries.length > 500) return null;
|
|
882
|
+
const icons = {};
|
|
883
|
+
for (const [path, icon] of entries) {
|
|
884
|
+
if (!object(icon) || !cell(icon.column) || !cell(icon.row)) return null;
|
|
885
|
+
if (!path.startsWith("/") || path.length > 1024) return null;
|
|
886
|
+
icons[path] = {
|
|
887
|
+
column: icon.column,
|
|
888
|
+
row: icon.row
|
|
889
|
+
};
|
|
890
|
+
}
|
|
891
|
+
return icons;
|
|
892
|
+
}
|
|
872
893
|
/**
|
|
873
894
|
* A saved presentation, rebuilt part by part from storage: a part that is not
|
|
874
895
|
* one falls back to its default alone, so a bad background never costs the
|
|
@@ -881,8 +902,9 @@ function readComputerPresentation(value) {
|
|
|
881
902
|
layout: readComputerLayout(saved.layout),
|
|
882
903
|
wallpaper: readWallpaper(saved.wallpaper) ?? defaults.wallpaper,
|
|
883
904
|
dock: readDockArrangement(saved.dock) ?? defaults.dock,
|
|
884
|
-
folders: readFolderViews(saved.folders) ?? defaults.folders
|
|
905
|
+
folders: readFolderViews(saved.folders) ?? defaults.folders,
|
|
906
|
+
desktop: readDesktopIcons(saved.desktop) ?? defaults.desktop
|
|
885
907
|
};
|
|
886
908
|
}
|
|
887
909
|
//#endregion
|
|
888
|
-
export {
|
|
910
|
+
export { DockSettings as a, SettingsRow as c, readComputerPresentation as i, SettingsToolbar as l, MAX_DESKTOP_ICONS as n, EmployeeWorkspaceRows as o, MAX_FOLDER_VIEWS as r, SettingsLayout as s, DEFAULT_COMPUTER_PRESENTATION as t, arrangeDock as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as ChevronRightIcon } from "./icons-
|
|
1
|
+
import { g as ChevronRightIcon } from "./icons-CNwk7DEu.js";
|
|
2
2
|
import { IconButton } from "./components/foundations/IconButton.js";
|
|
3
3
|
import { DescriptionList } from "./components/foundations/DescriptionList.js";
|
|
4
4
|
import { a as executionResultSummary, i as executionResultPath, o as readExecutionResult, r as executionResultFiles } from "./execution-result-DAuW4VWv.js";
|
|
5
|
-
import { i as httpUrl, n as OutboundLink, r as WorkspaceComposerLink } from "./workspace-assets-
|
|
5
|
+
import { i as httpUrl, n as OutboundLink, r as WorkspaceComposerLink } from "./workspace-assets-CadpUKoz.js";
|
|
6
6
|
import { t as WorkspaceFileLink } from "./WorkspaceLink-DDkj-Tq5.js";
|
|
7
7
|
import { c } from "react/compiler-runtime";
|
|
8
8
|
import { useId, useState } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { desktopArtwork } from "./utils/desktop-artwork.js";
|
|
2
2
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
3
|
-
import { g as ChevronRightIcon } from "./icons-
|
|
3
|
+
import { g as ChevronRightIcon } from "./icons-CNwk7DEu.js";
|
|
4
4
|
import { AppIcon } from "./components/foundations/AppIcon.js";
|
|
5
5
|
import { t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
|
|
6
6
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { findCatalogMcpServerCard, getMcpServerIconSrc, providerCardForHref } from "./utils/mcp-server-catalog.js";
|
|
2
2
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
3
|
-
import { F as LinkIcon, M as InfoIcon, O as FileIcon, S as DotIcon,
|
|
3
|
+
import { F as LinkIcon, G as MonitorIcon, H as MessageSquareIcon, J as PauseIcon, M as InfoIcon, O as FileIcon, S as DotIcon, _t as XIcon, at as SpinnerIcon, f as CalendarIcon, g as ChevronRightIcon, ht as WarningIcon, k as FolderIcon, m as ChevronDownIcon, p as CheckIcon } from "./icons-CNwk7DEu.js";
|
|
4
4
|
import { Button } from "./components/foundations/Button.js";
|
|
5
5
|
import { Collapsible } from "./components/foundations/Collapsible.js";
|
|
6
6
|
import { Tooltip } from "./components/foundations/Tooltip.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as mergeBaseClassName } from "./class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Q as PlusIcon, ht as WarningIcon, m as ChevronDownIcon, p as CheckIcon } from "./icons-CNwk7DEu.js";
|
|
3
3
|
import { IconButton } from "./components/foundations/IconButton.js";
|
|
4
4
|
import { Menu } from "./components/foundations/Menu.js";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as ThinkExecutionRun } from "./ThinkExecutionRun-QzZVWX75.js";
|
|
2
2
|
import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-hwl6C1aX.js";
|
|
3
3
|
import { ParsedDeclaredSchedule, ThinkScheduledTask, ThinkScheduledTaskSchedule } from "@cloudflare/think";
|
|
4
|
-
import { Schedule } from "agents";
|
|
5
4
|
//#region src/components/agents-sdk/ThinkSchedule.d.ts
|
|
6
5
|
/** App-owned identity for the Think agent that owns a schedule. */
|
|
7
6
|
interface ThinkScheduleOwner {
|
|
@@ -23,8 +22,8 @@ interface ThinkSchedule {
|
|
|
23
22
|
schedule: ThinkScheduledTaskSchedule;
|
|
24
23
|
automation: WorkspaceAutomationInvocation;
|
|
25
24
|
};
|
|
26
|
-
/** The
|
|
27
|
-
|
|
25
|
+
/** The next occurrence, in milliseconds since the epoch, as `runs[].createdAt`. */
|
|
26
|
+
nextRunAt?: number | null;
|
|
28
27
|
runs: readonly ThinkExecutionRun[];
|
|
29
28
|
}
|
|
30
29
|
/** Preserves an app-enriched native run type carried by a schedule subtype. */
|
|
@@ -7,10 +7,10 @@ import { FormattedDate } from "./components/foundations/FormattedDate.js";
|
|
|
7
7
|
import { t as NavigationLink } from "./navigation-link-DMmtdqsM.js";
|
|
8
8
|
import { SearchField } from "./components/foundations/SearchField.js";
|
|
9
9
|
import { i as fileGridOption, n as FileGrid } from "./ComputerFileThumbnail-CXHy127c.js";
|
|
10
|
-
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "./FileTree-
|
|
10
|
+
import { i as FileTreeFolder, r as FileTreeFile, t as FileTree } from "./FileTree-C7fh3_H5.js";
|
|
11
11
|
import { WorkspaceHeader } from "./components/agents-sdk/WorkspaceHeader.js";
|
|
12
12
|
import { ContextMenu } from "./components/foundations/ContextMenu.js";
|
|
13
|
-
import { n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "./workspace-quick-look-
|
|
13
|
+
import { n as useWorkspaceSelection, r as WorkspaceFileTile, t as WorkspaceQuickLook } from "./workspace-quick-look-BDD-jXn3.js";
|
|
14
14
|
import { c } from "react/compiler-runtime";
|
|
15
15
|
import * as React from "react";
|
|
16
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as InfoIcon,
|
|
1
|
+
import { M as InfoIcon, ht as WarningIcon, p as CheckIcon } from "../../icons-CNwk7DEu.js";
|
|
2
2
|
import { Checkbox } from "../foundations/Checkbox.js";
|
|
3
3
|
import { Select } from "../foundations/Select.js";
|
|
4
4
|
import { Field } from "../foundations/Field.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as LinkIcon,
|
|
1
|
+
import { F as LinkIcon, G as MonitorIcon, M as InfoIcon, O as FileIcon, Y as PencilIcon, dt as TerminalIcon, gt as WrenchIcon, ht as WarningIcon, nt as SearchIcon } from "../../icons-CNwk7DEu.js";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/agents-sdk/AgentActivity.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Y as PencilIcon, at as SpinnerIcon, ft as TrashIcon, t as ArchiveIcon, tt as RefreshIcon } from "../../icons-CNwk7DEu.js";
|
|
3
3
|
import { ExpansionStateProvider } from "../ai-sdk/ExpansionState.js";
|
|
4
4
|
import { Message, MessageAction, MessageActions, MessageCopyAction, MessageMeta, MessageTimestamp } from "../ai-sdk/Message.js";
|
|
5
5
|
import { AgentEventRow, getAgentEvent } from "./AgentEvent.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as AgentComputerLayout, c as AgentComputerWindow, d as AgentComputerWindowSize, f as useAgentComputerActions, g as useAgentComputerWindowActive, h as useAgentComputerWindow, i as AgentComputerAppHandlers, l as AgentComputerWindowBounds, m as useAgentComputerPortalContainer, n as AgentComputerActions, o as AgentComputerOpenOptions, p as useAgentComputerAppHandlers, r as AgentComputerApp, s as AgentComputerProps, t as AgentComputer, u as AgentComputerWindowLayout } from "../../AgentComputer-
|
|
1
|
+
import { a as AgentComputerLayout, c as AgentComputerWindow, d as AgentComputerWindowSize, f as useAgentComputerActions, g as useAgentComputerWindowActive, h as useAgentComputerWindow, i as AgentComputerAppHandlers, l as AgentComputerWindowBounds, m as useAgentComputerPortalContainer, n as AgentComputerActions, o as AgentComputerOpenOptions, p as useAgentComputerAppHandlers, r as AgentComputerApp, s as AgentComputerProps, t as AgentComputer, u as AgentComputerWindowLayout } from "../../AgentComputer-BI8RsGzq.js";
|
|
2
2
|
export { AgentComputer, AgentComputerActions, AgentComputerApp, AgentComputerAppHandlers, AgentComputerLayout, AgentComputerOpenOptions, AgentComputerProps, AgentComputerWindow, AgentComputerWindowBounds, AgentComputerWindowLayout, AgentComputerWindowSize, useAgentComputerActions, useAgentComputerAppHandlers, useAgentComputerPortalContainer, useAgentComputerWindow, useAgentComputerWindowActive };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-
|
|
1
|
+
import { a as useAgentComputerWindow, i as useAgentComputerPortalContainer, n as useAgentComputerActions, o as useAgentComputerWindowActive, r as useAgentComputerAppHandlers, t as AgentComputer } from "../../AgentComputer-KhPwXwh8.js";
|
|
2
2
|
export { AgentComputer, useAgentComputerActions, useAgentComputerAppHandlers, useAgentComputerPortalContainer, useAgentComputerWindow, useAgentComputerWindowActive };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { F as LinkIcon,
|
|
2
|
+
import { F as LinkIcon, G as MonitorIcon, M as InfoIcon, Q as PlusIcon, s as ArrowUpRightIcon } from "../../icons-CNwk7DEu.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
4
|
import { n as mergeRefs } from "../../merge-refs-DTX97mLp.js";
|
|
5
5
|
import { Tabs } from "../foundations/Tabs.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as KeyboardIcon,
|
|
1
|
+
import { N as KeyboardIcon, r as ArrowLeftIcon, tt as RefreshIcon } from "../../icons-CNwk7DEu.js";
|
|
2
2
|
import { Button } from "../foundations/Button.js";
|
|
3
3
|
import { WebPreviewNavigationButton } from "../general-purpose/WebPreview.js";
|
|
4
4
|
import { BrowserLiveView } from "./BrowserLiveView.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { S as DotIcon,
|
|
2
|
+
import { S as DotIcon, at as SpinnerIcon, z as MaximizeIcon } from "../../icons-CNwk7DEu.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { Dialog } from "../foundations/Dialog.js";
|
|
5
5
|
import { TransitionSurface } from "../foundations/TransitionSurface.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import {
|
|
2
|
+
import { J as PauseIcon, Z as PlayIcon } from "../../icons-CNwk7DEu.js";
|
|
3
3
|
import { i as formatClock } from "../../format-DL7f2rqp.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { Slider } from "../foundations/Slider.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { A as GlobeIcon,
|
|
2
|
+
import { A as GlobeIcon, Q as PlusIcon, _t as XIcon, at as SpinnerIcon } from "../../icons-CNwk7DEu.js";
|
|
3
3
|
import { IconButton } from "../foundations/IconButton.js";
|
|
4
4
|
import { Menu } from "../foundations/Menu.js";
|
|
5
5
|
import { Tabs } from "../foundations/Tabs.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { r as AgentComputerApp } from "../../AgentComputer-
|
|
1
|
+
import { r as AgentComputerApp } from "../../AgentComputer-BI8RsGzq.js";
|
|
2
2
|
import { l as WorkspaceAutomationSource } from "../../WorkspaceAutomation-hwl6C1aX.js";
|
|
3
|
-
import { t as ThinkSchedule } from "../../ThinkSchedule-
|
|
3
|
+
import { t as ThinkSchedule } from "../../ThinkSchedule-C9vErgZQ.js";
|
|
4
|
+
import { ComputerCalendarEvent, ComputerCalendarRange } from "./ComputerCalendar.js";
|
|
4
5
|
import { ThinkScheduleFormSchedule, ThinkScheduleFormValue } from "./ThinkScheduleForm.js";
|
|
5
6
|
import * as React from "react";
|
|
6
7
|
//#region src/components/agents-sdk/ComputerAutomations.d.ts
|
|
@@ -31,7 +32,7 @@ export interface ComputerAutomationsSelection {
|
|
|
31
32
|
export interface ComputerAutomationsHost<TSchedule extends ComputerSchedule = ComputerSchedule> {
|
|
32
33
|
/** Saved automations; Automations itself opens a workflow and starts its schedule, single or per table row. */
|
|
33
34
|
automations: Omit<WorkspaceAutomationSource, "onOpen" | "onSchedule" | "onScheduleTable">;
|
|
34
|
-
/** Every schedule, each carrying its next
|
|
35
|
+
/** Every schedule, each carrying its next run and retained runs. */
|
|
35
36
|
schedules: readonly TSchedule[];
|
|
36
37
|
/** Creates a schedule and resolves its id. `requestKey` is stable for one editor, so a retried save is idempotent. */
|
|
37
38
|
onCreateSchedule: (draft: ThinkScheduleFormValue, requestKey: string) => Promise<{
|
|
@@ -48,6 +49,10 @@ export interface ComputerAutomationsHost<TSchedule extends ComputerSchedule = Co
|
|
|
48
49
|
renderLink: (next: Partial<ComputerAutomationsSelection>) => React.ReactElement;
|
|
49
50
|
/** The conversation a run took place in, or null when it has none. */
|
|
50
51
|
conversationForRun: (run: TSchedule["runs"][number]) => string | null;
|
|
52
|
+
/** Events from the employee's own calendars, shown in Calendar beside the schedules. */
|
|
53
|
+
events?: readonly ComputerCalendarEvent[];
|
|
54
|
+
/** The visible range, called on mount and whenever the Calendar's visible dates change. */
|
|
55
|
+
onCalendarRange?: (range: ComputerCalendarRange) => void;
|
|
51
56
|
}
|
|
52
57
|
/**
|
|
53
58
|
* The shared state Automations and Calendar read, mounted above the computer
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { desktopArtwork } from "../../utils/desktop-artwork.js";
|
|
2
|
-
import {
|
|
2
|
+
import { I as ListIcon, O as FileIcon, Y as PencilIcon, et as QueueIcon, f as CalendarIcon, h as ChevronLeftIcon } from "../../icons-CNwk7DEu.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
4
|
import { IconButton } from "../foundations/IconButton.js";
|
|
5
5
|
import { AppIcon } from "../foundations/AppIcon.js";
|
|
6
6
|
import { Tabs } from "../foundations/Tabs.js";
|
|
7
7
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
8
|
-
import { p as useMinuteClock } from "../../AgentComputer-
|
|
8
|
+
import { p as useMinuteClock } from "../../AgentComputer-KhPwXwh8.js";
|
|
9
9
|
import { f as useAppHosts, m as useComputerHost, n as AppHostsContext } from "../../context-BWJpR084.js";
|
|
10
10
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
11
11
|
import { ScreenStack } from "../general-purpose/ScreenStack.js";
|
|
@@ -15,8 +15,8 @@ import { getThinkExecutionRunId } from "./ThinkExecutionRun.js";
|
|
|
15
15
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
16
16
|
import { r as createAppBarOutlet, t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
|
|
17
17
|
import { ResponsiveSidebarAppBar, ResponsiveSidebarShell, useResponsiveSidebarShell } from "../general-purpose/ResponsiveSidebarShell.js";
|
|
18
|
-
import { i as zonedFormat, n as ComputerAutomationsContext, r as useComputerAutomationsContext, t as ComputerCalendar } from "../../ComputerCalendar-
|
|
19
|
-
import { n as computerAppTile, t as computerAppParts } from "../../parts-
|
|
18
|
+
import { i as zonedFormat, n as ComputerAutomationsContext, r as useComputerAutomationsContext, t as ComputerCalendar } from "../../ComputerCalendar-B3xdMl90.js";
|
|
19
|
+
import { n as computerAppTile, t as computerAppParts } from "../../parts-Bb1aZP2y.js";
|
|
20
20
|
import { ThinkExecutionRunSummary } from "./ThinkExecutionStatus.js";
|
|
21
21
|
import { ThinkExecutionDetail } from "./ThinkExecutionDetail.js";
|
|
22
22
|
import { WorkspaceAutomationsPanel } from "./WorkspaceAutomation.js";
|
|
@@ -669,7 +669,7 @@ function UpcomingAgenda(t0) {
|
|
|
669
669
|
className: "computer-automations__agenda",
|
|
670
670
|
"aria-labelledby": titleId,
|
|
671
671
|
children: [t5, upcoming.length ? /* @__PURE__ */ jsx("ol", { children: upcoming.map((schedule_0) => {
|
|
672
|
-
const date =
|
|
672
|
+
const date = new Date(schedule_0.nextRunAt);
|
|
673
673
|
return /* @__PURE__ */ jsxs("li", { children: [
|
|
674
674
|
/* @__PURE__ */ jsxs("div", {
|
|
675
675
|
className: "computer-automations__agenda-date",
|
|
@@ -698,10 +698,10 @@ function UpcomingAgenda(t0) {
|
|
|
698
698
|
return t1;
|
|
699
699
|
}
|
|
700
700
|
function _temp2(first, second) {
|
|
701
|
-
return first.
|
|
701
|
+
return first.nextRunAt - second.nextRunAt;
|
|
702
702
|
}
|
|
703
703
|
function _temp(schedule) {
|
|
704
|
-
return schedule.enabled && schedule.
|
|
704
|
+
return schedule.enabled && schedule.nextRunAt != null;
|
|
705
705
|
}
|
|
706
706
|
function WorkflowOutputs(t0) {
|
|
707
707
|
const $ = c(14);
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import { r as AgentComputerApp } from "../../AgentComputer-
|
|
1
|
+
import { r as AgentComputerApp } from "../../AgentComputer-BI8RsGzq.js";
|
|
2
2
|
//#region src/components/agents-sdk/ComputerCalendar.d.ts
|
|
3
|
-
/**
|
|
3
|
+
/** An event from one of the host's own calendars, shown beside the schedules. */
|
|
4
|
+
export type ComputerCalendarEvent = {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
/** Milliseconds since the epoch. An all-day event spans whole local days. */
|
|
8
|
+
start: number;
|
|
9
|
+
end: number;
|
|
10
|
+
allDay?: boolean;
|
|
11
|
+
/** Calendar the event belongs to, for the colour swatch and tooltip. */
|
|
12
|
+
calendar?: string;
|
|
13
|
+
/** CSS colour from the source calendar, when it has one. */
|
|
14
|
+
color?: string;
|
|
15
|
+
/** The event at its source; clicking the entry opens it in a new tab. */
|
|
16
|
+
url?: string;
|
|
17
|
+
};
|
|
18
|
+
/** The instants a Calendar view shows, in milliseconds: half-open `[start, end)`. */
|
|
19
|
+
export type ComputerCalendarRange = {
|
|
20
|
+
start: number;
|
|
21
|
+
end: number;
|
|
22
|
+
};
|
|
23
|
+
/** Calendar in the Dock. It reads the schedules, runs and events `ComputerAutomations.Host` keeps. */
|
|
4
24
|
export declare const ComputerCalendar: {
|
|
5
25
|
app: AgentComputerApp;
|
|
6
26
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ComputerCalendar } from "../../ComputerCalendar-
|
|
1
|
+
import { t as ComputerCalendar } from "../../ComputerCalendar-B3xdMl90.js";
|
|
2
2
|
export { ComputerCalendar };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/components/agents-sdk/ComputerChannels.d.ts
|
|
3
|
+
/** How a channel is connected, as the host's messenger reports it. */
|
|
4
|
+
export type ComputerChannelConnection = {
|
|
5
|
+
configured: boolean;
|
|
6
|
+
phase: "disconnected" | "connecting" | "connected" | "reconnecting" | "auth_failed";
|
|
7
|
+
/** The account the channel is connected as. */
|
|
8
|
+
userName?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
};
|
|
11
|
+
/** A conversation a channel started. */
|
|
12
|
+
export type ComputerChannelThread = {
|
|
13
|
+
/** Conversation id; `onOpenConversation` from `ComputerHost` opens it. */
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
/** Channel or room name on the provider, when known. */
|
|
17
|
+
channel?: string;
|
|
18
|
+
/** Milliseconds since the epoch. */
|
|
19
|
+
updatedAt: number;
|
|
20
|
+
status: "idle" | "running" | "attention" | "error" | "interrupted";
|
|
21
|
+
};
|
|
22
|
+
/** One messaging channel the employee can be reached on. */
|
|
23
|
+
export type ComputerChannel = {
|
|
24
|
+
/** Provider id, also the app id: "slack" | "discord" today; any string allowed. */
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
connection: ComputerChannelConnection;
|
|
28
|
+
threads: readonly ComputerChannelThread[];
|
|
29
|
+
/** Opens the host's connection dialog (configure or reconnect). */
|
|
30
|
+
onConnect?: () => void;
|
|
31
|
+
};
|
|
32
|
+
/** What `ComputerChannels.Host` reads: every channel, each one window. */
|
|
33
|
+
export type ComputerChannelsHost = {
|
|
34
|
+
channels: readonly ComputerChannel[];
|
|
35
|
+
};
|
|
36
|
+
/** The channels `ComputerChannels.Host` holds. Throws outside one. */
|
|
37
|
+
export declare function useComputerChannelsContext(): ComputerChannelsHost;
|
|
38
|
+
/**
|
|
39
|
+
* The host's messaging channels, one window each: how the channel is
|
|
40
|
+
* connected and the conversations it started, each opening beside the
|
|
41
|
+
* computer. Mount it inside a `ComputerHost` and above the computer.
|
|
42
|
+
*/
|
|
43
|
+
declare function Host({ value, children }: {
|
|
44
|
+
value: ComputerChannelsHost;
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
}): React.JSX.Element;
|
|
47
|
+
/** The channel windows' Host. */
|
|
48
|
+
export declare const ComputerChannels: {
|
|
49
|
+
Host: typeof Host;
|
|
50
|
+
};
|
|
51
|
+
//#endregion
|