@mcp-b/react-components 0.57.1 → 0.58.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/Card-BPkXIkBz.d.ts +46 -0
- package/dist/{CodeBlock-Bl-q7wMc.js → CodeBlock-Bs_Z03eC.js} +2 -1
- package/dist/{CodeBlock-CPotpyyM.d.ts → CodeBlock-DYp5V_4O.d.ts} +1 -1
- package/dist/{EmployeeChrome-CN99SVfF.d.ts → EmployeeChrome-DsdIek0l.d.ts} +2 -10
- package/dist/ExecutionBoard-DHfMvKlB.d.ts +64 -0
- package/dist/ExecutionResult-BSZsUbrL.js +279 -0
- package/dist/{FileTree-CfOhUyp3.js → FileTree-DyLBn7O_.js} +1 -1
- package/dist/{ManagerOffice-CMJ7laGe.js → ManagerOffice-DHcLRhFu.js} +6 -21
- package/dist/{McpConnectorForm-BPWCo9bU.d.ts → McpConnectorForm-D4bY-lm_.d.ts} +1 -1
- package/dist/{McpPluginCatalog-uSh0gGeY.d.ts → McpPluginCatalog-2FZDLCeK.d.ts} +2 -2
- package/dist/{SetupChecklist-BiWQkKEq.js → SetupChecklist-CKQ-mKYt.js} +2 -2
- package/dist/{ThinkRoutine-DGlKJbIy.d.ts → ThinkRoutine-DoZjbzyn.d.ts} +15 -3
- package/dist/{Workspace-Cr-aGDfx.d.ts → Workspace-iCkXvQRJ.d.ts} +1 -1
- package/dist/WorkspaceConcept-ByaG-kBq.d.ts +38 -0
- package/dist/WorkspaceExecutionTable-DNhj6YDX.d.ts +239 -0
- package/dist/{WorkspaceFile-DiwiJEwO.d.ts → WorkspaceFile-DkIZKoK6.d.ts} +1 -1
- package/dist/{WorkspaceFileView-CCe_o79q.js → WorkspaceFileView-M2jC2P4p.js} +217 -139
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentChat.js +11 -11
- 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/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +4 -8
- package/dist/components/agents-sdk/EmployeeChat.js +5 -5
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +81 -66
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +6 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +14 -12
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +4 -4
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +2 -0
- package/dist/components/agents-sdk/ExecutionBoard.js +648 -0
- package/dist/components/agents-sdk/ManagerAccountActions.js +3 -3
- package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +4 -3
- package/dist/components/agents-sdk/McpConnectionRequest.d.ts +1 -1
- package/dist/components/agents-sdk/McpConnectionRequest.js +2 -2
- package/dist/components/agents-sdk/McpConnectorForm.d.ts +1 -1
- package/dist/components/agents-sdk/McpConnectorForm.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.d.ts +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +18 -9
- package/dist/components/agents-sdk/McpServerIcon.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +2 -2
- 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.js +2 -2
- package/dist/components/agents-sdk/SubagentRunSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +3 -3
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +238 -209
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +14 -35
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutine.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkRoutineActions.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkRoutineActions.js +26 -16
- package/dist/components/agents-sdk/ThinkRoutineBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.d.ts +5 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +14 -8
- package/dist/components/agents-sdk/ThinkRoutineForm.d.ts +23 -6
- package/dist/components/agents-sdk/ThinkRoutineForm.js +522 -215
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +3 -3
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.d.ts +10 -0
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +34 -0
- package/dist/components/agents-sdk/WorkbenchBack.js +1 -1
- 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 +1 -1
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +2 -37
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +7 -6
- package/dist/components/agents-sdk/WorkspaceExecution.d.ts +2 -92
- package/dist/components/agents-sdk/WorkspaceExecution.js +651 -134
- package/dist/components/agents-sdk/WorkspaceExecutionTable.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceExecutionTable.js +824 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +3 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +5 -4
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +4 -2
- 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/WorkspaceMountManager.js +1 -1
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +6 -5
- package/dist/components/agents-sdk/WorkspaceUserScript.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceUserScript.js +5 -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 +2 -2
- 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.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.d.ts +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.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.d.ts +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 +6 -6
- 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 +2 -2
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +2 -2
- package/dist/components/foundations/Card.d.ts +2 -45
- 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/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.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.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/PricingBillingToggle.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.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.js +2 -2
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- 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.js +5 -5
- package/dist/{copy-button-CSDuDfdP.js → copy-button-M4sAp9xS.js} +1 -1
- package/dist/execution-result-DWVmm-bL.js +80 -0
- package/dist/{icons-CUuD7iEh.d.ts → icons-Dj6id76o.d.ts} +2 -1
- package/dist/{icons-cuEtsgj9.js → icons-DvlrWt54.js} +4 -3
- package/dist/{mcp-server-catalog-DgA9BnL0.d.ts → mcp-server-catalog-kaMWaSAL.d.ts} +3 -1
- package/dist/styles/app-top-bar.css +2 -1
- package/dist/styles/base.css +1 -0
- package/dist/styles/chatgpt-sign-in-screen.css +8 -14
- package/dist/styles/description-list.css +12 -9
- package/dist/styles/execution-board.css +383 -0
- package/dist/styles/index.css +3 -0
- package/dist/styles/mcp-plugin-catalog.css +8 -7
- package/dist/styles/think-chat-tool-panels.css +1 -2
- package/dist/styles/think-execution-workbench.css +1 -12
- package/dist/styles/think-routine.css +39 -41
- package/dist/styles/workspace-concepts.css +441 -17
- package/dist/styles/workspace-explorer.css +18 -4
- package/dist/utils/mcp-server-catalog.d.ts +2 -2
- package/dist/utils/mcp-server-catalog.js +18 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/{workspace-assets-Bg7XhPsk.js → workspace-assets-DVn0d-fN.js} +24 -81
- package/dist/workspace-delete-DfloiBWp.js +80 -0
- package/package.json +3 -2
|
@@ -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 { EmptyState } from "../foundations/EmptyState.js";
|
|
4
3
|
import { t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
4
|
+
import { EmptyState } from "../foundations/EmptyState.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,12 +1,12 @@
|
|
|
1
1
|
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import { K as SpinnerIcon, R as PencilIcon,
|
|
2
|
+
import { K as SpinnerIcon, R as PencilIcon, t as ArchiveIcon, tt as WarningIcon } from "../../icons-DvlrWt54.js";
|
|
3
3
|
import { Button, buttonVariants } from "../foundations/Button.js";
|
|
4
4
|
import { Tooltip } from "../foundations/Tooltip.js";
|
|
5
5
|
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
6
|
-
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
7
|
-
import { EmptyState } from "../foundations/EmptyState.js";
|
|
8
6
|
import { n as isPlainPrimaryLinkActivation, t as NavigationLink } from "../../navigation-link-kqMa81v5.js";
|
|
7
|
+
import { ScrollArea } from "../foundations/ScrollArea.js";
|
|
9
8
|
import { AlertDialog } from "../foundations/AlertDialog.js";
|
|
9
|
+
import { EmptyState } from "../foundations/EmptyState.js";
|
|
10
10
|
import { LinkButton } from "../foundations/LinkButton.js";
|
|
11
11
|
import { SearchField } from "../foundations/SearchField.js";
|
|
12
12
|
import * as React from "react";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SettingsFormDialogProps } from "../general-purpose/SettingsFormDialog.js";
|
|
2
|
+
//#region src/components/agents-sdk/TypeSafeConnectionDialog.d.ts
|
|
3
|
+
/** TypeSafe credential entry. The host stores the key outside conversations. */
|
|
4
|
+
export declare function TypeSafeConnectionDialog({ open, onOpenChange, onSubmit, onRemove }: {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onOpenChange: SettingsFormDialogProps["onOpenChange"];
|
|
7
|
+
onSubmit: SettingsFormDialogProps["onFormSubmit"];
|
|
8
|
+
onRemove: () => Promise<void>;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
//#endregion
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Field } from "../foundations/Field.js";
|
|
2
|
+
import { SettingsFormDialog } from "../general-purpose/SettingsFormDialog.js";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/agents-sdk/TypeSafeConnectionDialog.tsx
|
|
5
|
+
/** TypeSafe credential entry. The host stores the key outside conversations. */
|
|
6
|
+
function TypeSafeConnectionDialog({ open, onOpenChange, onSubmit, onRemove }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(SettingsFormDialog, {
|
|
8
|
+
open,
|
|
9
|
+
onOpenChange,
|
|
10
|
+
title: "TypeSafe",
|
|
11
|
+
description: "Give scripts access to Jev for typed judgments. Your API key is stored in Rook’s browser profile and kept out of conversations.",
|
|
12
|
+
submitLabel: "Save key",
|
|
13
|
+
removeLabel: "Remove key",
|
|
14
|
+
onFormSubmit: onSubmit,
|
|
15
|
+
onRemove,
|
|
16
|
+
children: /* @__PURE__ */ jsxs(Field.Root, {
|
|
17
|
+
name: "apiKey",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Field.Label, { children: "API key" }),
|
|
20
|
+
/* @__PURE__ */ jsx(Field.Control, {
|
|
21
|
+
type: "password",
|
|
22
|
+
autoComplete: "off",
|
|
23
|
+
required: true
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ jsx(Field.Error, {
|
|
26
|
+
match: "valueMissing",
|
|
27
|
+
children: "API key is required."
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { TypeSafeConnectionDialog };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as ArrowLeftIcon } from "../../icons-
|
|
1
|
+
import { r as ArrowLeftIcon } from "../../icons-DvlrWt54.js";
|
|
2
2
|
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/agents-sdk/WorkbenchBack.tsx
|
|
@@ -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-iCkXvQRJ.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,4 +1,4 @@
|
|
|
1
|
-
import { b as WorkspaceState } from "../../Workspace-
|
|
1
|
+
import { b as WorkspaceState } from "../../Workspace-iCkXvQRJ.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/agents-sdk/WorkspaceBrowser.d.ts
|
|
4
4
|
export interface WorkspaceBrowserProps {
|
|
@@ -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-DyLBn7O_.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";
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/components/agents-sdk/WorkspaceConcept.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Concept query identity is what the data is: source, root, concept, scope.
|
|
6
|
-
* Freshness never lives in the key — external changes arrive as invalidation
|
|
7
|
-
* through `useWorkspaceLiveQueries` (native observer events or the host's
|
|
8
|
-
* `revision` tick), so cards keep their data, mutation state, and typed form
|
|
9
|
-
* drafts across refreshes.
|
|
10
|
-
*/
|
|
11
|
-
export type WorkspaceConceptQueryKey = readonly [...WorkspaceQueryKey, "concept", concept: string, scope: string];
|
|
12
|
-
export type WorkspaceConceptQueryOptions<TData> = WorkspaceQueryOptions<TData, WorkspaceConceptQueryKey>;
|
|
13
|
-
export interface WorkspaceConceptQueryInput<TData> {
|
|
14
|
-
sourceKey: string;
|
|
15
|
-
/**
|
|
16
|
-
* The host's workspace boundary. Required, and never defaulted: concept keys
|
|
17
|
-
* and live invalidation must agree on one root, and a silent `"/"` default on
|
|
18
|
-
* either side leaves a host with a nested root receiving zero invalidations.
|
|
19
|
-
*/
|
|
20
|
-
root: string;
|
|
21
|
-
concept: string;
|
|
22
|
-
/** The workspace path (file or directory) this projection reads. */
|
|
23
|
-
scope: string;
|
|
24
|
-
queryFn: QueryFunction<TData, WorkspaceConceptQueryKey>;
|
|
25
|
-
}
|
|
26
|
-
export declare function workspaceConceptQueryPrefix(sourceKey: string, root: string): readonly ["workspace", string, string, "concept"];
|
|
27
|
-
export declare function workspaceConceptQueryKey(sourceKey: string, root: string, concept: string, scope: string): WorkspaceConceptQueryKey;
|
|
28
|
-
/** Shared concept options for design-system components and host loaders. */
|
|
29
|
-
export declare function workspaceConceptQueryOptions<TData>({ sourceKey, root, concept, scope, queryFn }: WorkspaceConceptQueryInput<TData>): WorkspaceConceptQueryOptions<TData>;
|
|
30
|
-
export declare function workspacePathsOverlap(left: string, right: string): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Invalidate active concept queries touched by an external workspace change.
|
|
33
|
-
* `root` is required and must be the same root the concept options were built
|
|
34
|
-
* with — the prefix is derived from it, so a mismatch invalidates nothing.
|
|
35
|
-
*/
|
|
36
|
-
export declare function invalidateWorkspaceConceptQueries(queryClient: QueryClient, sourceKey: string, root: string, changedPaths?: readonly string[]): Promise<void>;
|
|
37
|
-
//#endregion
|
|
1
|
+
import { a as workspaceConceptQueryKey, c as workspacePathsOverlap, i as invalidateWorkspaceConceptQueries, n as WorkspaceConceptQueryKey, o as workspaceConceptQueryOptions, r as WorkspaceConceptQueryOptions, s as workspaceConceptQueryPrefix, t as WorkspaceConceptQueryInput } from "../../WorkspaceConcept-ByaG-kBq.js";
|
|
2
|
+
export { WorkspaceConceptQueryInput, WorkspaceConceptQueryKey, WorkspaceConceptQueryOptions, invalidateWorkspaceConceptQueries, workspaceConceptQueryKey, workspaceConceptQueryOptions, workspaceConceptQueryPrefix, workspacePathsOverlap };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { f as CardProps } from "../../Card-BPkXIkBz.js";
|
|
2
|
+
import { r as WorkspaceConceptQueryOptions } from "../../WorkspaceConcept-ByaG-kBq.js";
|
|
3
3
|
import { ConnectedAppCardSaveState } from "../ai-sdk/ConnectedAppCards.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
//#region src/components/agents-sdk/WorkspaceCorrespondence.d.ts
|
|
@@ -1,15 +1,16 @@
|
|
|
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-DvlrWt54.js";
|
|
3
3
|
import { Button } from "../foundations/Button.js";
|
|
4
|
-
import { IconButton } from "../foundations/IconButton.js";
|
|
5
|
-
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
6
4
|
import { Field } from "../foundations/Field.js";
|
|
7
5
|
import { Textarea } from "../foundations/Textarea.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { IconButton } from "../foundations/IconButton.js";
|
|
7
|
+
import { a as formatErrorMessage } from "../../format-CWaZEp5o.js";
|
|
10
8
|
import { Card, CardAction, CardContent, CardFooter, CardHeader, CardTitle } from "../foundations/Card.js";
|
|
9
|
+
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
10
|
+
import { Input } from "../foundations/Input.js";
|
|
11
11
|
import { EmailMessageCard, SlackMessageCard } from "../ai-sdk/ConnectedAppCards.js";
|
|
12
|
-
import {
|
|
12
|
+
import { a as httpUrl, t as FaviconMark } from "../../workspace-assets-DVn0d-fN.js";
|
|
13
|
+
import { t as WorkspaceDeleteControl } from "../../workspace-delete-DfloiBWp.js";
|
|
13
14
|
import * as React from "react";
|
|
14
15
|
import { createElement } from "react";
|
|
15
16
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,92 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
//#region src/components/agents-sdk/WorkspaceExecution.d.ts
|
|
5
|
-
export type WorkspaceExecutionParamType = "string" | "number" | "boolean";
|
|
6
|
-
export interface WorkspaceExecutionParam {
|
|
7
|
-
name: string;
|
|
8
|
-
label: string;
|
|
9
|
-
type: WorkspaceExecutionParamType;
|
|
10
|
-
/**
|
|
11
|
-
* Whether the module's schema lists this property as required. This is a
|
|
12
|
-
* presentation hint only; the execution runtime owns argument validation.
|
|
13
|
-
*/
|
|
14
|
-
required: boolean;
|
|
15
|
-
value?: string | number | boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface WorkspaceExecutionRun {
|
|
18
|
-
path: string;
|
|
19
|
-
label: string;
|
|
20
|
-
}
|
|
21
|
-
export interface WorkspaceExecutionRunView extends WorkspaceExecutionRun {
|
|
22
|
-
onOpen?: () => void;
|
|
23
|
-
}
|
|
24
|
-
export interface WorkspaceExecutionOutcome {
|
|
25
|
-
/** Serialized return value from the existing execution runtime. */
|
|
26
|
-
result: unknown;
|
|
27
|
-
logs: readonly string[];
|
|
28
|
-
/** Result and log files emitted when the runtime overflowed its inline bounds. */
|
|
29
|
-
runs: readonly WorkspaceExecutionRun[];
|
|
30
|
-
}
|
|
31
|
-
export interface WorkspaceExecutionViewOutcome extends Omit<WorkspaceExecutionOutcome, "runs"> {
|
|
32
|
-
runs: readonly WorkspaceExecutionRunView[];
|
|
33
|
-
}
|
|
34
|
-
export interface WorkspaceExecution {
|
|
35
|
-
/** Workspace path of the module file. */
|
|
36
|
-
path: string;
|
|
37
|
-
name: string;
|
|
38
|
-
description?: string;
|
|
39
|
-
/** Brand mark. Defaults to `TerminalIcon`. */
|
|
40
|
-
icon?: React.ReactNode;
|
|
41
|
-
parameters: readonly WorkspaceExecutionParam[];
|
|
42
|
-
/** Recent result peeks, newest first. Not a results directory. */
|
|
43
|
-
runs?: readonly WorkspaceExecutionRun[];
|
|
44
|
-
}
|
|
45
|
-
/** Data-only execution projection hydrated with card actions outside Query. */
|
|
46
|
-
export interface WorkspaceExecutionView extends WorkspaceExecution {
|
|
47
|
-
runs?: readonly WorkspaceExecutionRunView[];
|
|
48
|
-
/**
|
|
49
|
-
* Runs the module with the submitted values. The card owns the run lifecycle;
|
|
50
|
-
* inline output and any overflow files enrich the completed row.
|
|
51
|
-
*/
|
|
52
|
-
onRun?: (parameters: readonly WorkspaceExecutionParam[]) => Promise<WorkspaceExecutionViewOutcome>;
|
|
53
|
-
onOpen?: () => void;
|
|
54
|
-
onDelete?: () => void | Promise<void>;
|
|
55
|
-
}
|
|
56
|
-
export interface WorkspaceExecutionSource {
|
|
57
|
-
queryOptions: WorkspaceConceptQueryOptions<readonly WorkspaceExecution[]>;
|
|
58
|
-
/** Runs the module with the submitted values and returns its visible outcome. */
|
|
59
|
-
onRun?: (path: string, parameters: readonly WorkspaceExecutionParam[]) => Promise<WorkspaceExecutionOutcome>;
|
|
60
|
-
onOpen?: (path: string) => void;
|
|
61
|
-
onDelete?: (path: string) => void | Promise<void>;
|
|
62
|
-
}
|
|
63
|
-
export interface WorkspaceExecutionCardProps extends Omit<CardProps, "children" | "hover" | "size" | "title"> {
|
|
64
|
-
module: WorkspaceExecutionView;
|
|
65
|
-
}
|
|
66
|
-
export interface WorkspaceExecutionFileProps extends Omit<WorkspaceExecutionCardProps, "module"> {
|
|
67
|
-
path: string;
|
|
68
|
-
source: WorkspaceExecutionSource;
|
|
69
|
-
fallback?: React.ReactNode;
|
|
70
|
-
}
|
|
71
|
-
export interface WorkspaceExecutionsPanelProps extends Omit<React.HTMLAttributes<HTMLElement>, "children"> {
|
|
72
|
-
/** Shared workspace query and host actions, also used by inline module cards. */
|
|
73
|
-
source: WorkspaceExecutionSource;
|
|
74
|
-
}
|
|
75
|
-
export declare function WorkspaceExecutionCard({ module, ...props }: WorkspaceExecutionCardProps & {
|
|
76
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
77
|
-
}): React.JSX.Element;
|
|
78
|
-
/**
|
|
79
|
-
* Compact inline card for one queried execution module.
|
|
80
|
-
*/
|
|
81
|
-
export declare function WorkspaceExecutionFile({ fallback, path, source, ...props }: WorkspaceExecutionFileProps & {
|
|
82
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
83
|
-
}): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null;
|
|
84
|
-
/**
|
|
85
|
-
* Workbench library. Same card as the inline placement. A query failure with
|
|
86
|
-
* nothing loaded renders as a quiet inline error, never as an empty library.
|
|
87
|
-
*/
|
|
88
|
-
export declare function WorkspaceExecutionsPanel({ className, source, ref, ...props }: WorkspaceExecutionsPanelProps & {
|
|
89
|
-
/** Ref forwarded to the component's rendered root element. */
|
|
90
|
-
ref?: React.Ref<HTMLElement>;
|
|
91
|
-
}): React.JSX.Element;
|
|
92
|
-
//#endregion
|
|
1
|
+
import { C as WorkspaceExecutionSource, D as WorkspaceExecutionsPanelProps, E as WorkspaceExecutionsPanel, S as WorkspaceExecutionRunView, T as WorkspaceExecutionViewOutcome, _ as WorkspaceExecutionFileProps, b as WorkspaceExecutionParamType, g as WorkspaceExecutionFile, h as WorkspaceExecutionCardProps, m as WorkspaceExecutionCard, p as WorkspaceExecution, v as WorkspaceExecutionOutcome, w as WorkspaceExecutionView, x as WorkspaceExecutionRun, y as WorkspaceExecutionParam } from "../../WorkspaceExecutionTable-DNhj6YDX.js";
|
|
2
|
+
export { WorkspaceExecution, WorkspaceExecutionCard, WorkspaceExecutionCardProps, WorkspaceExecutionFile, WorkspaceExecutionFileProps, WorkspaceExecutionOutcome, WorkspaceExecutionParam, WorkspaceExecutionParamType, WorkspaceExecutionRun, WorkspaceExecutionRunView, WorkspaceExecutionSource, WorkspaceExecutionView, WorkspaceExecutionViewOutcome, WorkspaceExecutionsPanel, WorkspaceExecutionsPanelProps };
|