@mcp-b/react-components 0.65.0 → 0.67.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-BP9ixGGE.js +8093 -0
- package/dist/{ExecutionResult-CXnGcmM4.js → ExecutionResult-C7SzVquo.js} +1 -1
- package/dist/WallpaperPicker-C-FItmDS.d.ts +34 -0
- package/dist/WorkspaceBrowser-Dz48H-7X.d.ts +89 -0
- package/dist/{WorkspaceFileCommands-SNIjRgtU.d.ts → WorkspaceFileCommands-1s9Ol8CG.d.ts} +11 -3
- package/dist/{WorkspaceMessageResponse-CXGOQgpo.js → WorkspaceMessageResponse-BoeeltJM.js} +1 -1
- package/dist/assets/wallpapers/README.md +31 -0
- package/dist/assets/wallpapers/alpine.webp +0 -0
- package/dist/assets/wallpapers/dusk.webp +0 -0
- package/dist/assets/wallpapers/ember.webp +0 -0
- package/dist/assets/wallpapers/graphite.webp +0 -0
- package/dist/assets/wallpapers/sigvelo.webp +0 -0
- package/dist/assets/wallpapers/tide.webp +0 -0
- package/dist/automations-host-DPORjdc7.js +17 -0
- package/dist/components/agents-sdk/AgentComputer.d.ts +7 -1
- package/dist/components/agents-sdk/AgentComputer.js +1 -8044
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +1 -0
- package/dist/components/agents-sdk/BrowserLiveScreen.d.ts +7 -1
- package/dist/components/agents-sdk/BrowserLiveScreen.js +259 -257
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +2 -0
- package/dist/components/agents-sdk/BrowserRunPanel.js +1 -0
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +70 -0
- package/dist/components/agents-sdk/ComputerAutomations.js +1410 -0
- package/dist/components/agents-sdk/ComputerCalendar.d.ts +7 -0
- package/dist/components/agents-sdk/ComputerCalendar.js +1344 -0
- package/dist/components/agents-sdk/ComputerFiles.d.ts +153 -0
- package/dist/components/agents-sdk/ComputerFiles.js +2401 -0
- package/dist/components/agents-sdk/ComputerHome.d.ts +15 -0
- package/dist/components/agents-sdk/ComputerHome.js +90 -0
- package/dist/components/agents-sdk/ComputerNotifications.d.ts +54 -0
- package/dist/components/agents-sdk/ComputerNotifications.js +692 -0
- package/dist/components/agents-sdk/ComputerScreen.d.ts +78 -0
- package/dist/components/agents-sdk/ComputerScreen.js +750 -0
- package/dist/components/agents-sdk/ComputerSettings.d.ts +69 -0
- package/dist/components/agents-sdk/ComputerSettings.js +1371 -0
- package/dist/components/agents-sdk/ComputerSpotlight.d.ts +29 -0
- package/dist/components/agents-sdk/ComputerSpotlight.js +232 -0
- package/dist/components/agents-sdk/ComputerViewer.d.ts +51 -0
- package/dist/components/agents-sdk/ComputerViewer.js +339 -0
- package/dist/components/agents-sdk/ComputerWallpapers.d.ts +11 -0
- package/dist/components/agents-sdk/ComputerWallpapers.js +43 -0
- 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 +4 -4
- package/dist/components/agents-sdk/EmployeeSchedules.js +3 -3
- package/dist/components/agents-sdk/EmployeeStartScreen.js +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1 -1
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +1 -1
- package/dist/components/agents-sdk/McpPluginCatalog.js +1 -1
- package/dist/components/agents-sdk/ModelSelector.js +1 -1
- package/dist/components/agents-sdk/ThinkChat.js +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +1 -1
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +5 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +13 -0
- package/dist/components/agents-sdk/ThinkFullApp.js +13 -0
- package/dist/components/agents-sdk/ThinkScheduleActions.js +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +3 -3
- package/dist/components/agents-sdk/ThinkScheduleForm.js +4 -4
- package/dist/components/agents-sdk/WorkspaceAutomation.js +4 -4
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +2 -88
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +1 -1
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceDocumentFrame.d.ts +17 -0
- package/dist/components/agents-sdk/WorkspaceDocumentFrame.js +90 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +4 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +70 -66
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +346 -316
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +7 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +83 -71
- package/dist/components/agents-sdk/WorkspaceLink.js +1 -1
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -4
- package/dist/components/agents-sdk/WorkspaceLive.js +18 -11
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/ai-sdk/ConnectedAppCards.js +1 -1
- package/dist/components/ai-sdk/Goal.d.ts +1 -2
- package/dist/components/ai-sdk/Goal.js +1 -2
- package/dist/components/extension/FirstRunSetup.js +5 -5
- package/dist/components/general-purpose/CommandPalette.d.ts +6 -1
- package/dist/components/general-purpose/CommandPalette.js +90 -82
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/ThemeModeControl.js +1 -1
- package/dist/components/general-purpose/WallpaperPicker.d.ts +2 -33
- package/dist/components/nanites/AgentConnection.js +1 -1
- package/dist/parts-RXV6GGdB.js +112 -0
- package/dist/styles/agent-computer.css +35 -0
- package/dist/styles/base.css +6 -0
- package/dist/styles/computer-app-tile.css +20 -0
- package/dist/styles/computer-automations.css +454 -0
- package/dist/styles/computer-calendar.css +648 -0
- package/dist/styles/computer-files.css +566 -0
- package/dist/styles/computer-home.css +90 -0
- package/dist/styles/computer-notifications.css +242 -0
- package/dist/styles/computer-screen.css +89 -0
- package/dist/styles/computer-settings.css +550 -0
- package/dist/styles/computer-spotlight.css +7 -0
- package/dist/styles/computer-viewer.css +130 -0
- package/dist/styles/index.css +11 -0
- package/dist/styles/recipes.css +42 -0
- package/dist/styles/workspace-document-frame.css +31 -0
- package/package.json +2 -2
- package/dist/{ManagerOffice-T79utm-P.js → ManagerOffice-kSK7vTBl.js} +1 -1
- package/dist/{WorkspaceLink-DDkj-Tq5.js → WorkspaceLink-DK9kdMUH.js} +1 -1
- package/dist/{connected-app-drafts-Bocdg3Z-.js → connected-app-drafts-C49343p9.js} +1 -1
|
@@ -36,8 +36,14 @@ export interface WorkspaceFileViewProps {
|
|
|
36
36
|
* already present the skill identity can omit it while retaining validation.
|
|
37
37
|
*/
|
|
38
38
|
showSkillIdentity?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Body for a file the view cannot preview (an unsupported media type or a
|
|
41
|
+
* file without text), such as a `WorkspaceDocumentFrame`. Returning null
|
|
42
|
+
* keeps the default unsupported message.
|
|
43
|
+
*/
|
|
44
|
+
renderUnsupported?: (file: WorkspaceFileState) => React.ReactNode;
|
|
39
45
|
onRefresh: () => void;
|
|
40
46
|
}
|
|
41
47
|
/** Workspace file preview composed from CodeBlock and AppTopBar. */
|
|
42
|
-
export declare function WorkspaceFileView({ preview, appearance, header, file, path, isLoading, isRefreshing, leading, actions, showSkillIdentity, view, onViewChange, onRefresh }: WorkspaceFileViewProps): React.JSX.Element;
|
|
48
|
+
export declare function WorkspaceFileView({ preview, appearance, header, file, path, isLoading, isRefreshing, leading, actions, showSkillIdentity, view, onViewChange, renderUnsupported, onRefresh }: WorkspaceFileViewProps): React.JSX.Element;
|
|
43
49
|
//#endregion
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { E as EyeIcon, mt as WarningIcon, p as CheckIcon, r as ArrowLeftIcon, y as CodeIcon } from "../../icons-nLTnB9kd.js";
|
|
2
2
|
import { t as CopyButton } from "../../copy-button-DWBVJR6D.js";
|
|
3
|
-
import {
|
|
3
|
+
import { i as useWorkspaceNavigationContext } from "../../WorkspaceLink-DK9kdMUH.js";
|
|
4
|
+
import { useWorkspaceNavigationRestoration } from "./WorkspaceNavigationRestoration.js";
|
|
5
|
+
import { t as ExecutionResult } from "../../ExecutionResult-C7SzVquo.js";
|
|
4
6
|
import { t as ContentAppBarOutletContext } from "../../app-bar-outlet-BEIGl9iF.js";
|
|
5
|
-
import {
|
|
7
|
+
import { AppTopBar } from "../general-purpose/AppTopBar.js";
|
|
6
8
|
import { inferWorkspaceLanguage, inferWorkspaceMedia, isWorkspaceMarkdownPath, isWorkspaceSkillPath, parseWorkspaceSkill } from "./WorkspaceFile.js";
|
|
7
|
-
import { i as useWorkspaceNavigationContext } from "../../WorkspaceLink-DDkj-Tq5.js";
|
|
8
|
-
import { useWorkspaceNavigationRestoration } from "./WorkspaceNavigationRestoration.js";
|
|
9
|
-
import { t as ExecutionResult } from "../../ExecutionResult-CXnGcmM4.js";
|
|
10
|
-
import { n as WorkspaceMessageResponse, r as createWorkspaceRehypePlugins } from "../../WorkspaceMessageResponse-CXGOQgpo.js";
|
|
11
9
|
import { WorkspaceHeader } from "./WorkspaceHeader.js";
|
|
12
10
|
import { i as useWorkspaceAssetUrl, n as WorkspaceMediaPreview, t as WorkspaceAssetActions } from "../../workspace-media-preview-B4iB5Tvi.js";
|
|
11
|
+
import { a as CodeBlockCopyButton, i as CodeBlockContent, r as CodeBlockContainer, t as CodeBlock } from "../../CodeBlock-dt0L8md0.js";
|
|
12
|
+
import { n as WorkspaceMessageResponse, r as createWorkspaceRehypePlugins } from "../../WorkspaceMessageResponse-BoeeltJM.js";
|
|
13
13
|
import { WorkspaceFileDetails } from "./WorkspaceFileDetails.js";
|
|
14
14
|
import { c } from "react/compiler-runtime";
|
|
15
15
|
import * as React from "react";
|
|
@@ -44,10 +44,16 @@ function filePreviewStatus(file, isLoading, assetError, isPreparingAsset, media)
|
|
|
44
44
|
role: "alert"
|
|
45
45
|
};
|
|
46
46
|
if (isPreparingAsset) return { message: "Preparing file preview..." };
|
|
47
|
-
if (file.asset && !media) return {
|
|
47
|
+
if (file.asset && !media) return {
|
|
48
|
+
message: "This media type is not supported.",
|
|
49
|
+
unsupported: true
|
|
50
|
+
};
|
|
48
51
|
if (file.asset) return null;
|
|
49
52
|
if (media && file.asset === null) return { message: "This workspace source did not provide preview data for this file." };
|
|
50
|
-
if (file.content === null) return {
|
|
53
|
+
if (file.content === null) return {
|
|
54
|
+
message: "This file has no text preview.",
|
|
55
|
+
unsupported: true
|
|
56
|
+
};
|
|
51
57
|
if (file.content.length === 0) return { message: "This file is empty." };
|
|
52
58
|
return null;
|
|
53
59
|
}
|
|
@@ -310,8 +316,8 @@ function useWorkspaceFileNavigation(path, file, isLoading, isPreparingAsset) {
|
|
|
310
316
|
}
|
|
311
317
|
/** Workspace file preview composed from CodeBlock and AppTopBar. */
|
|
312
318
|
function WorkspaceFileView(t0) {
|
|
313
|
-
const $ = c(
|
|
314
|
-
const { preview, appearance: t1, header: t2, file, path, isLoading, isRefreshing, leading, actions, showSkillIdentity: t3, view, onViewChange, onRefresh } = t0;
|
|
319
|
+
const $ = c(73);
|
|
320
|
+
const { preview, appearance: t1, header: t2, file, path, isLoading, isRefreshing, leading, actions, showSkillIdentity: t3, view, onViewChange, renderUnsupported, onRefresh } = t0;
|
|
315
321
|
const appearance = t1 === void 0 ? "contained" : t1;
|
|
316
322
|
const header = t2 === void 0 ? "bar" : t2;
|
|
317
323
|
const showSkillIdentity = t3 === void 0 ? true : t3;
|
|
@@ -452,87 +458,93 @@ function WorkspaceFileView(t0) {
|
|
|
452
458
|
} else t18 = $[39];
|
|
453
459
|
const viewActions = t18;
|
|
454
460
|
const previewing = markdownView === "preview";
|
|
455
|
-
const
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
461
|
+
const unavailable = filePreviewStatus(file, isLoading, assetUrl.error, isPreparingAsset, media);
|
|
462
|
+
let t19;
|
|
463
|
+
if ($[40] !== file || $[41] !== renderUnsupported || $[42] !== unavailable?.unsupported) {
|
|
464
|
+
t19 = file && unavailable?.unsupported ? renderUnsupported?.(file) : null;
|
|
465
|
+
$[40] = file;
|
|
466
|
+
$[41] = renderUnsupported;
|
|
467
|
+
$[42] = unavailable?.unsupported;
|
|
468
|
+
$[43] = t19;
|
|
469
|
+
} else t19 = $[43];
|
|
470
|
+
const unsupported = t19;
|
|
471
|
+
const t20 = unsupported == null ? unavailable : null;
|
|
472
|
+
const t21 = appearance === "fill" ? "none" : "caption";
|
|
473
|
+
const t22 = unsupported ?? (previewing ? preview : void 0);
|
|
474
|
+
let t23;
|
|
475
|
+
if ($[44] !== file || $[45] !== isMarkdown || $[46] !== markdownComponents || $[47] !== path || $[48] !== previewing || $[49] !== showSkillIdentity || $[50] !== workspaceRehypePlugins) {
|
|
476
|
+
t23 = file && isMarkdown && previewing ? /* @__PURE__ */ jsx(WorkspaceMarkdownArticle, {
|
|
464
477
|
file,
|
|
465
478
|
path,
|
|
466
479
|
showSkillIdentity,
|
|
467
480
|
components: markdownComponents,
|
|
468
481
|
rehypePlugins: workspaceRehypePlugins
|
|
469
482
|
}) : void 0;
|
|
470
|
-
$[
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
} else
|
|
479
|
-
let
|
|
480
|
-
if ($[
|
|
481
|
-
|
|
483
|
+
$[44] = file;
|
|
484
|
+
$[45] = isMarkdown;
|
|
485
|
+
$[46] = markdownComponents;
|
|
486
|
+
$[47] = path;
|
|
487
|
+
$[48] = previewing;
|
|
488
|
+
$[49] = showSkillIdentity;
|
|
489
|
+
$[50] = workspaceRehypePlugins;
|
|
490
|
+
$[51] = t23;
|
|
491
|
+
} else t23 = $[51];
|
|
492
|
+
let t24;
|
|
493
|
+
if ($[52] !== isRefreshing || $[53] !== onRefresh || $[54] !== path || $[55] !== resolvedLeading || $[56] !== showHeader || $[57] !== viewActions) {
|
|
494
|
+
t24 = showHeader ? {
|
|
482
495
|
path,
|
|
483
496
|
leading: resolvedLeading,
|
|
484
497
|
actions: viewActions,
|
|
485
498
|
isRefreshing,
|
|
486
499
|
onRefresh
|
|
487
500
|
} : void 0;
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
} else
|
|
496
|
-
let
|
|
497
|
-
if ($[
|
|
498
|
-
|
|
501
|
+
$[52] = isRefreshing;
|
|
502
|
+
$[53] = onRefresh;
|
|
503
|
+
$[54] = path;
|
|
504
|
+
$[55] = resolvedLeading;
|
|
505
|
+
$[56] = showHeader;
|
|
506
|
+
$[57] = viewActions;
|
|
507
|
+
$[58] = t24;
|
|
508
|
+
} else t24 = $[58];
|
|
509
|
+
let t25;
|
|
510
|
+
if ($[59] !== assetUrl || $[60] !== file || $[61] !== handleScroll || $[62] !== media || $[63] !== t20 || $[64] !== t21 || $[65] !== t22 || $[66] !== t23 || $[67] !== t24) {
|
|
511
|
+
t25 = /* @__PURE__ */ jsx(WorkspaceFileBody, {
|
|
499
512
|
file,
|
|
500
|
-
unavailable:
|
|
513
|
+
unavailable: t20,
|
|
501
514
|
media,
|
|
502
|
-
details:
|
|
515
|
+
details: t21,
|
|
503
516
|
assetUrl,
|
|
504
|
-
preview:
|
|
505
|
-
markdown:
|
|
506
|
-
headerProps:
|
|
517
|
+
preview: t22,
|
|
518
|
+
markdown: t23,
|
|
519
|
+
headerProps: t24,
|
|
507
520
|
handleScroll
|
|
508
521
|
});
|
|
509
|
-
$[
|
|
510
|
-
$[
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
513
|
-
$[
|
|
514
|
-
$[
|
|
515
|
-
$[
|
|
516
|
-
$[
|
|
517
|
-
$[
|
|
518
|
-
$[
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
t27 = /* @__PURE__ */ jsx("div", {
|
|
522
|
+
$[59] = assetUrl;
|
|
523
|
+
$[60] = file;
|
|
524
|
+
$[61] = handleScroll;
|
|
525
|
+
$[62] = media;
|
|
526
|
+
$[63] = t20;
|
|
527
|
+
$[64] = t21;
|
|
528
|
+
$[65] = t22;
|
|
529
|
+
$[66] = t23;
|
|
530
|
+
$[67] = t24;
|
|
531
|
+
$[68] = t25;
|
|
532
|
+
} else t25 = $[68];
|
|
533
|
+
let t26;
|
|
534
|
+
if ($[69] !== appearance || $[70] !== fileViewRef || $[71] !== t25) {
|
|
535
|
+
t26 = /* @__PURE__ */ jsx("div", {
|
|
524
536
|
ref: fileViewRef,
|
|
525
|
-
className:
|
|
537
|
+
className: "workspace-explorer__file",
|
|
526
538
|
"data-appearance": appearance,
|
|
527
|
-
"data-workspace-restoration-scope":
|
|
528
|
-
children:
|
|
539
|
+
"data-workspace-restoration-scope": "file",
|
|
540
|
+
children: t25
|
|
529
541
|
});
|
|
530
|
-
$[
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
} else
|
|
535
|
-
return
|
|
542
|
+
$[69] = appearance;
|
|
543
|
+
$[70] = fileViewRef;
|
|
544
|
+
$[71] = t25;
|
|
545
|
+
$[72] = t26;
|
|
546
|
+
} else t26 = $[72];
|
|
547
|
+
return t26;
|
|
536
548
|
}
|
|
537
549
|
/** Markdown and host previews open rendered for each path; source is one toggle away. */
|
|
538
550
|
function useWorkspaceFileViewMode(path, controlledView, onViewChange) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
+
import { n as WorkspaceNavigationProvider, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "../../WorkspaceLink-DK9kdMUH.js";
|
|
1
2
|
import { n as isPlainPrimaryLinkActivation } from "../../navigation-link-DMmtdqsM.js";
|
|
2
|
-
import { n as WorkspaceNavigationProvider, r as resolveWorkspaceLink, t as WorkspaceFileLink } from "../../WorkspaceLink-DDkj-Tq5.js";
|
|
3
3
|
export { WorkspaceFileLink, WorkspaceNavigationProvider, isPlainPrimaryLinkActivation, resolveWorkspaceLink };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { r as WorkspaceFileAssetResolver } from "../../WorkspaceFile-BJC6vlp_.js";
|
|
2
2
|
import { y as WorkspaceSource } from "../../Workspace-B9nuTfIi.js";
|
|
3
|
-
import { QueryClient } from "@tanstack/react-query";
|
|
4
3
|
//#region src/components/agents-sdk/WorkspaceLive.d.ts
|
|
5
4
|
export type WorkspaceChange = {
|
|
6
5
|
type: "changed";
|
|
@@ -20,15 +19,14 @@ export interface WorkspaceChangeSource {
|
|
|
20
19
|
*/
|
|
21
20
|
live?(): boolean;
|
|
22
21
|
}
|
|
23
|
-
export declare function invalidateWorkspaceDirectories(queryClient: QueryClient, sourceKey: string, directories: Iterable<string>, root: string): void;
|
|
24
22
|
export interface UseWorkspaceLiveQueriesOptions {
|
|
25
23
|
/** Native observer adapter. Omit for hosts without workspace observation. */
|
|
26
24
|
changes?: WorkspaceChangeSource;
|
|
27
25
|
sourceKey: string | undefined;
|
|
28
26
|
/**
|
|
29
27
|
* The host's workspace boundary. Required, and the same value the concept
|
|
30
|
-
* options were built with: invalidation is prefix-matched on it, so a
|
|
31
|
-
* that disagrees with the queries silently invalidates nothing.
|
|
28
|
+
* options were built with: their invalidation is prefix-matched on it, so a
|
|
29
|
+
* root that disagrees with the queries silently invalidates nothing.
|
|
32
30
|
*/
|
|
33
31
|
root: string;
|
|
34
32
|
/** Workspace read adapter used to refresh an observed open file in order. */
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import { a as workspaceDirname } from "../../workspace-path-TZggP-u4.js";
|
|
2
|
-
import { refreshWorkspaceFileQueries,
|
|
2
|
+
import { refreshWorkspaceFileQueries, workspaceFileQueryKey } from "./Workspace.js";
|
|
3
3
|
import { invalidateWorkspaceConceptQueries, workspacePathsOverlap } from "./WorkspaceConcept.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
import { useQueryClient } from "@tanstack/react-query";
|
|
7
7
|
//#region src/components/agents-sdk/WorkspaceLive.ts
|
|
8
8
|
const DEFAULT_DEBOUNCE_MS = 200;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Listings the host's root does not own: a Finder folder, Recents and a
|
|
11
|
+
* search each read under a root of their own (a dot root for the queries), so
|
|
12
|
+
* a change refreshes every root's info (a volume's and each Get Info file's),
|
|
13
|
+
* the listings of the changed folders, and every query root's listings since
|
|
14
|
+
* any change can move them. Without `directories`, every listing of the
|
|
15
|
+
* source refreshes.
|
|
16
|
+
*/
|
|
17
|
+
function invalidateEveryRoot(queryClient, sourceKey, directories) {
|
|
18
|
+
return queryClient.invalidateQueries({
|
|
19
|
+
queryKey: ["workspace", sourceKey],
|
|
20
|
+
predicate: ({ queryKey: [, , root, segment, path] }) => segment === "info" || segment === "directory" && (!directories || typeof root === "string" && root.startsWith("/.") || typeof path === "string" && directories.has(path))
|
|
21
|
+
});
|
|
11
22
|
}
|
|
12
23
|
async function invalidateWorkspaceResources(queryClient, sourceKey, root, source, selectedPath, resolveFileAsset, maxInlineAssetBytes, paths) {
|
|
13
|
-
queryClient.invalidateQueries({
|
|
14
|
-
queryKey: workspaceInfoQueryKey(sourceKey, root),
|
|
15
|
-
exact: true
|
|
16
|
-
});
|
|
17
24
|
if (!source || !selectedPath || paths && !paths.some((path) => workspacePathsOverlap(selectedPath, path))) return;
|
|
18
25
|
await queryClient.cancelQueries({ queryKey: workspaceFileQueryKey(sourceKey, root, selectedPath) });
|
|
19
26
|
await refreshWorkspaceFileQueries(queryClient, {
|
|
@@ -65,7 +72,7 @@ function useWorkspaceLiveQueries(t0) {
|
|
|
65
72
|
};
|
|
66
73
|
if (previous?.sourceKey === sourceKey && previous.root === root && previous.revision === revision) return;
|
|
67
74
|
if (changes?.live?.()) return;
|
|
68
|
-
queryClient
|
|
75
|
+
invalidateEveryRoot(queryClient, sourceKey);
|
|
69
76
|
invalidateWorkspaceConceptQueries(queryClient, sourceKey, root);
|
|
70
77
|
refreshResources();
|
|
71
78
|
};
|
|
@@ -109,12 +116,12 @@ function useWorkspaceLiveQueries(t0) {
|
|
|
109
116
|
refreshAll = false;
|
|
110
117
|
pendingDirectories.clear();
|
|
111
118
|
pendingPaths.clear();
|
|
112
|
-
queryClient
|
|
119
|
+
invalidateEveryRoot(queryClient, sourceKey);
|
|
113
120
|
invalidateWorkspaceConceptQueries(queryClient, sourceKey, root);
|
|
114
121
|
refreshResources();
|
|
115
122
|
return;
|
|
116
123
|
}
|
|
117
|
-
|
|
124
|
+
invalidateEveryRoot(queryClient, sourceKey, new Set(pendingDirectories));
|
|
118
125
|
const paths_0 = [...pendingPaths];
|
|
119
126
|
pendingDirectories.clear();
|
|
120
127
|
pendingPaths.clear();
|
|
@@ -165,4 +172,4 @@ function _temp(error) {
|
|
|
165
172
|
console.error("The workspace change source failed to start.", error);
|
|
166
173
|
}
|
|
167
174
|
//#endregion
|
|
168
|
-
export {
|
|
175
|
+
export { useWorkspaceLiveQueries };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as WorkspaceMessageResponse, t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-
|
|
1
|
+
import { n as WorkspaceMessageResponse, t as WorkspaceFileRendererProvider } from "../../WorkspaceMessageResponse-BoeeltJM.js";
|
|
2
2
|
export { WorkspaceFileRendererProvider, WorkspaceMessageResponse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as CalendarIcon } from "../../icons-nLTnB9kd.js";
|
|
2
2
|
import { isToolPartWorking } from "./ToolPart.js";
|
|
3
|
-
import { i as FieldList, n as SlackDraftCard, r as ConnectedAppCardFrame, t as EmailDraftCard } from "../../connected-app-drafts-
|
|
3
|
+
import { i as FieldList, n as SlackDraftCard, r as ConnectedAppCardFrame, t as EmailDraftCard } from "../../connected-app-drafts-C49343p9.js";
|
|
4
4
|
import { c } from "react/compiler-runtime";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ai-sdk/ConnectedAppCards.tsx
|
|
@@ -20,8 +20,7 @@ export interface GoalProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
20
20
|
* via `title` (or a popover) rather than rendering it inline.
|
|
21
21
|
*
|
|
22
22
|
* Actions are ordinary composed buttons; this primitive does not set, pause,
|
|
23
|
-
* resume, or clear a goal and owns no timer or transport.
|
|
24
|
-
* contract lives in docs/think-goal.md.
|
|
23
|
+
* resume, or clear a goal and owns no timer or transport.
|
|
25
24
|
*/
|
|
26
25
|
export declare function Goal({ className, status, ref, ...props }: GoalProps & {
|
|
27
26
|
/** Ref forwarded to the component's rendered root element. */
|
|
@@ -23,8 +23,7 @@ const STATUS_LABELS = {
|
|
|
23
23
|
* via `title` (or a popover) rather than rendering it inline.
|
|
24
24
|
*
|
|
25
25
|
* Actions are ordinary composed buttons; this primitive does not set, pause,
|
|
26
|
-
* resume, or clear a goal and owns no timer or transport.
|
|
27
|
-
* contract lives in docs/think-goal.md.
|
|
26
|
+
* resume, or clear a goal and owns no timer or transport.
|
|
28
27
|
*/
|
|
29
28
|
function Goal(t0) {
|
|
30
29
|
const $ = c(15);
|
|
@@ -10,18 +10,18 @@ import { Tabs } from "../foundations/Tabs.js";
|
|
|
10
10
|
import { PromptInput, PromptInputBody, PromptInputButton, PromptInputDictation, PromptInputFooter, PromptInputFooterEnd, PromptInputProvider, PromptInputSubmit, PromptInputTextarea, PromptInputTools } from "../ai-sdk/PromptInput.js";
|
|
11
11
|
import { Input } from "../foundations/Input.js";
|
|
12
12
|
import { Avatar } from "../foundations/Avatar.js";
|
|
13
|
-
import { t as ProviderLogo } from "../../provider-logos-Ceu7iYFx.js";
|
|
14
13
|
import { DescriptionList } from "../foundations/DescriptionList.js";
|
|
15
|
-
import { Card, CardContent } from "../foundations/Card.js";
|
|
16
14
|
import { a as executionResultSummary, n as executionErrorSummary, s as stepState, t as boardNotice } from "../../execution-result-DAuW4VWv.js";
|
|
17
|
-
import {
|
|
18
|
-
import { Switch } from "../foundations/Switch.js";
|
|
15
|
+
import { Card, CardContent } from "../foundations/Card.js";
|
|
19
16
|
import { t as WorkspaceEntityCard } from "../../workspace-entity-card-9YcsNiqU.js";
|
|
20
17
|
import { WorkspaceAutomationFile } from "../agents-sdk/WorkspaceAutomation.js";
|
|
18
|
+
import { formatThinkScheduleRepeat, getThinkScheduleNextRun } from "../agents-sdk/ThinkSchedule.js";
|
|
19
|
+
import { Switch } from "../foundations/Switch.js";
|
|
20
|
+
import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
|
|
21
|
+
import { t as ProviderLogo } from "../../provider-logos-Ceu7iYFx.js";
|
|
21
22
|
import { n as peopleListItems } from "../../workspace-person-ZwPqu5TX.js";
|
|
22
23
|
import { WorkspacePersonFile } from "../agents-sdk/WorkspacePerson.js";
|
|
23
24
|
import { WorkspaceProjectFile } from "../agents-sdk/WorkspaceProject.js";
|
|
24
|
-
import { Radio, RadioGroup } from "../foundations/RadioGroup.js";
|
|
25
25
|
import { c } from "react/compiler-runtime";
|
|
26
26
|
import * as React from "react";
|
|
27
27
|
import { ShieldCheck } from "lucide-react";
|
|
@@ -34,6 +34,11 @@ export interface CommandPaletteProps {
|
|
|
34
34
|
* the search centres on and blocks. Defaults to the document body.
|
|
35
35
|
*/
|
|
36
36
|
container?: HTMLElement | null;
|
|
37
|
+
/**
|
|
38
|
+
* Receives the query as it is typed, for a host that searches a source of
|
|
39
|
+
* its own. Its results still pass the palette's own match.
|
|
40
|
+
*/
|
|
41
|
+
onQueryChange?: (query: string) => void;
|
|
37
42
|
}
|
|
38
43
|
/**
|
|
39
44
|
* Modal command search using Base UI's inline Combobox and Dialog, shaped like
|
|
@@ -43,5 +48,5 @@ export interface CommandPaletteProps {
|
|
|
43
48
|
* initiating focus. The host owns commands and keyboard shortcuts; actions run
|
|
44
49
|
* after dismissal.
|
|
45
50
|
*/
|
|
46
|
-
export declare function CommandPalette({ commands, open, onOpenChange, children, container }: CommandPaletteProps): import("react").JSX.Element;
|
|
51
|
+
export declare function CommandPalette({ commands, open, onOpenChange, children, container, onQueryChange }: CommandPaletteProps): import("react").JSX.Element;
|
|
47
52
|
//#endregion
|
|
@@ -16,8 +16,8 @@ const LABEL = "Search workspace";
|
|
|
16
16
|
* after dismissal.
|
|
17
17
|
*/
|
|
18
18
|
function CommandPalette(t0) {
|
|
19
|
-
const $ = c(
|
|
20
|
-
const { commands, open, onOpenChange, children, container } = t0;
|
|
19
|
+
const $ = c(34);
|
|
20
|
+
const { commands, open, onOpenChange, children, container, onQueryChange } = t0;
|
|
21
21
|
const inputRef = useRef(null);
|
|
22
22
|
const [results, setResults] = useState(null);
|
|
23
23
|
useWholeRows(results);
|
|
@@ -49,54 +49,60 @@ function CommandPalette(t0) {
|
|
|
49
49
|
}
|
|
50
50
|
useEffect(t2, t3);
|
|
51
51
|
let t4;
|
|
52
|
-
if ($[5] !==
|
|
53
|
-
t4 = (
|
|
52
|
+
if ($[5] !== onQueryChange) {
|
|
53
|
+
t4 = (query) => onQueryChange?.(query);
|
|
54
|
+
$[5] = onQueryChange;
|
|
55
|
+
$[6] = t4;
|
|
56
|
+
} else t4 = $[6];
|
|
57
|
+
let t5;
|
|
58
|
+
if ($[7] !== onOpenChange) {
|
|
59
|
+
t5 = (command_2) => {
|
|
54
60
|
if (!command_2) return;
|
|
55
61
|
pending.current = command_2.onSelect;
|
|
56
62
|
onOpenChange(false);
|
|
57
63
|
};
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
} else
|
|
61
|
-
let
|
|
62
|
-
if ($[
|
|
63
|
-
|
|
64
|
+
$[7] = onOpenChange;
|
|
65
|
+
$[8] = t5;
|
|
66
|
+
} else t5 = $[8];
|
|
67
|
+
let t6;
|
|
68
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
69
|
+
t6 = (isOpen) => {
|
|
64
70
|
if (!isOpen && pending.current && !executed.current) {
|
|
65
71
|
executed.current = true;
|
|
66
72
|
pending.current();
|
|
67
73
|
}
|
|
68
74
|
};
|
|
69
|
-
$[
|
|
70
|
-
} else
|
|
71
|
-
let t6;
|
|
72
|
-
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
73
|
-
t6 = /* @__PURE__ */ jsx(Dialog.Backdrop, { className: "command-palette__backdrop" });
|
|
74
|
-
$[8] = t6;
|
|
75
|
-
} else t6 = $[8];
|
|
75
|
+
$[9] = t6;
|
|
76
|
+
} else t6 = $[9];
|
|
76
77
|
let t7;
|
|
78
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
79
|
+
t7 = /* @__PURE__ */ jsx(Dialog.Backdrop, { className: "command-palette__backdrop" });
|
|
80
|
+
$[10] = t7;
|
|
81
|
+
} else t7 = $[10];
|
|
82
|
+
let t10;
|
|
77
83
|
let t8;
|
|
78
84
|
let t9;
|
|
79
|
-
if ($[
|
|
80
|
-
|
|
81
|
-
|
|
85
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
86
|
+
t8 = () => !pending.current;
|
|
87
|
+
t9 = /* @__PURE__ */ jsx(Dialog.Title, {
|
|
82
88
|
className: "sigvelo-visually-hidden",
|
|
83
89
|
children: LABEL
|
|
84
90
|
});
|
|
85
|
-
|
|
91
|
+
t10 = /* @__PURE__ */ jsx(Dialog.Description, {
|
|
86
92
|
className: "sigvelo-visually-hidden",
|
|
87
93
|
children: "Find applications, files, conversations, and actions. Use arrow keys and Enter to select."
|
|
88
94
|
});
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
95
|
+
$[11] = t10;
|
|
96
|
+
$[12] = t8;
|
|
97
|
+
$[13] = t9;
|
|
92
98
|
} else {
|
|
93
|
-
|
|
94
|
-
t8 = $[
|
|
95
|
-
t9 = $[
|
|
99
|
+
t10 = $[11];
|
|
100
|
+
t8 = $[12];
|
|
101
|
+
t9 = $[13];
|
|
96
102
|
}
|
|
97
|
-
let
|
|
98
|
-
if ($[
|
|
99
|
-
|
|
103
|
+
let t11;
|
|
104
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
105
|
+
t11 = /* @__PURE__ */ jsxs(Combobox.InputGroup, {
|
|
100
106
|
className: "command-palette__input-group",
|
|
101
107
|
children: [/* @__PURE__ */ jsx(SearchIcon, {}), /* @__PURE__ */ jsx(Combobox.Input, {
|
|
102
108
|
className: "command-palette__input",
|
|
@@ -105,70 +111,70 @@ function CommandPalette(t0) {
|
|
|
105
111
|
placeholder: "Search apps, files, conversations…"
|
|
106
112
|
})]
|
|
107
113
|
});
|
|
108
|
-
$[
|
|
109
|
-
} else
|
|
110
|
-
let
|
|
111
|
-
if ($[
|
|
112
|
-
|
|
114
|
+
$[14] = t11;
|
|
115
|
+
} else t11 = $[14];
|
|
116
|
+
let t12;
|
|
117
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
118
|
+
t12 = /* @__PURE__ */ jsxs("div", {
|
|
113
119
|
ref: setResults,
|
|
114
120
|
className: "command-palette__results",
|
|
115
121
|
children: [/* @__PURE__ */ jsx(Combobox.List, { children: _temp5 }), /* @__PURE__ */ jsx(Combobox.Empty, { children: "No matching commands" })]
|
|
116
122
|
});
|
|
117
|
-
$[13] = t11;
|
|
118
|
-
} else t11 = $[13];
|
|
119
|
-
let t12;
|
|
120
|
-
if ($[14] !== children) {
|
|
121
|
-
t12 = children ? /* @__PURE__ */ jsx("div", {
|
|
122
|
-
className: "command-palette__status",
|
|
123
|
-
children
|
|
124
|
-
}) : null;
|
|
125
|
-
$[14] = children;
|
|
126
123
|
$[15] = t12;
|
|
127
124
|
} else t12 = $[15];
|
|
128
125
|
let t13;
|
|
129
|
-
if ($[16] !==
|
|
130
|
-
t13 =
|
|
126
|
+
if ($[16] !== children) {
|
|
127
|
+
t13 = children ? /* @__PURE__ */ jsx("div", {
|
|
128
|
+
className: "command-palette__status",
|
|
129
|
+
children
|
|
130
|
+
}) : null;
|
|
131
|
+
$[16] = children;
|
|
132
|
+
$[17] = t13;
|
|
133
|
+
} else t13 = $[17];
|
|
134
|
+
let t14;
|
|
135
|
+
if ($[18] !== t13) {
|
|
136
|
+
t14 = /* @__PURE__ */ jsx(Dialog.Viewport, { children: /* @__PURE__ */ jsxs(Dialog.Popup, {
|
|
131
137
|
className: "command-palette",
|
|
132
138
|
"data-command-palette": "",
|
|
133
139
|
initialFocus: inputRef,
|
|
134
|
-
finalFocus:
|
|
140
|
+
finalFocus: t8,
|
|
135
141
|
children: [
|
|
136
|
-
t8,
|
|
137
142
|
t9,
|
|
138
143
|
t10,
|
|
139
144
|
t11,
|
|
140
|
-
t12
|
|
145
|
+
t12,
|
|
146
|
+
t13
|
|
141
147
|
]
|
|
142
148
|
}) });
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
} else
|
|
146
|
-
let
|
|
147
|
-
if ($[
|
|
148
|
-
|
|
149
|
+
$[18] = t13;
|
|
150
|
+
$[19] = t14;
|
|
151
|
+
} else t14 = $[19];
|
|
152
|
+
let t15;
|
|
153
|
+
if ($[20] !== container || $[21] !== t14) {
|
|
154
|
+
t15 = /* @__PURE__ */ jsxs(Dialog.Portal, {
|
|
149
155
|
container,
|
|
150
|
-
children: [
|
|
156
|
+
children: [t7, t14]
|
|
151
157
|
});
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
} else
|
|
156
|
-
let
|
|
157
|
-
if ($[
|
|
158
|
-
|
|
158
|
+
$[20] = container;
|
|
159
|
+
$[21] = t14;
|
|
160
|
+
$[22] = t15;
|
|
161
|
+
} else t15 = $[22];
|
|
162
|
+
let t16;
|
|
163
|
+
if ($[23] !== onOpenChange || $[24] !== open || $[25] !== t15) {
|
|
164
|
+
t16 = /* @__PURE__ */ jsx(Dialog.Root, {
|
|
159
165
|
open,
|
|
160
166
|
onOpenChange,
|
|
161
|
-
onOpenChangeComplete:
|
|
162
|
-
children:
|
|
167
|
+
onOpenChangeComplete: t6,
|
|
168
|
+
children: t15
|
|
163
169
|
});
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
} else
|
|
169
|
-
let
|
|
170
|
-
if ($[
|
|
171
|
-
|
|
170
|
+
$[23] = onOpenChange;
|
|
171
|
+
$[24] = open;
|
|
172
|
+
$[25] = t15;
|
|
173
|
+
$[26] = t16;
|
|
174
|
+
} else t16 = $[26];
|
|
175
|
+
let t17;
|
|
176
|
+
if ($[27] !== groups || $[28] !== onOpenChange || $[29] !== open || $[30] !== t16 || $[31] !== t4 || $[32] !== t5) {
|
|
177
|
+
t17 = /* @__PURE__ */ jsx(Combobox.Root, {
|
|
172
178
|
items: groups,
|
|
173
179
|
inline: true,
|
|
174
180
|
open,
|
|
@@ -178,18 +184,20 @@ function CommandPalette(t0) {
|
|
|
178
184
|
itemToStringLabel: _temp,
|
|
179
185
|
itemToStringValue: _temp2,
|
|
180
186
|
filter: commandMatchesQuery,
|
|
187
|
+
onInputValueChange: t4,
|
|
181
188
|
onItemHighlighted: _temp3,
|
|
182
|
-
onValueChange:
|
|
183
|
-
children:
|
|
189
|
+
onValueChange: t5,
|
|
190
|
+
children: t16
|
|
184
191
|
});
|
|
185
|
-
$[
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[28] = t15;
|
|
189
|
-
$[29] = t4;
|
|
192
|
+
$[27] = groups;
|
|
193
|
+
$[28] = onOpenChange;
|
|
194
|
+
$[29] = open;
|
|
190
195
|
$[30] = t16;
|
|
191
|
-
|
|
192
|
-
|
|
196
|
+
$[31] = t4;
|
|
197
|
+
$[32] = t5;
|
|
198
|
+
$[33] = t17;
|
|
199
|
+
} else t17 = $[33];
|
|
200
|
+
return t17;
|
|
193
201
|
}
|
|
194
202
|
function _temp5(group) {
|
|
195
203
|
return /* @__PURE__ */ jsxs(Combobox.Group, {
|