@mcp-b/react-components 0.35.0 → 0.37.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/{AgentChat-mpacmRU1.d.ts → AgentChat-CVO7xyLC.d.ts} +1 -1
- package/dist/{CodeBlock-DzGhYyNe.d.ts → CodeBlock-C380GD5t.d.ts} +2 -5
- package/dist/{CodeBlock-CM5gfmdq.js → CodeBlock-DO4Hdu1R.js} +4 -3
- package/dist/{Dialog-DeOSJ0Oy.d.ts → Dialog-B_FhRWaz.d.ts} +22 -37
- package/dist/{FileTree-4WP4Uc_m.js → FileTree-DbQMpvxV.js} +1 -1
- package/dist/{Menu-DVmjBIuM.d.ts → Menu-yb6QXWA3.d.ts} +64 -75
- package/dist/{PromptInput-DOyee1kM.d.ts → PromptInput-BRX7FhjH.d.ts} +7 -272
- package/dist/ResponsiveSidebarShell-DWjULskY.d.ts +68 -0
- package/dist/{Select-D96d09ww.d.ts → Select-RrceeEIe.d.ts} +17 -52
- package/dist/{ThinkChat-DbzqSTBt.js → ThinkChat-DQh59CeC.js} +6 -8
- package/dist/{ThinkChatActivity-BZyN5MBg.d.ts → ThinkChatActivity-Dkmm2pIj.d.ts} +1 -1
- package/dist/{ToggleGroup-CSBWfPXo.d.ts → ToggleGroup-_pQMyHGM.d.ts} +5 -7
- package/dist/{WorkspaceFile-CVAzjTt6.d.ts → WorkspaceFile-BLaFmMrt.d.ts} +1 -1
- package/dist/{WorkspaceFileView-BmxSbhRu.js → WorkspaceFileView-Cu_ZG6HJ.js} +11 -17
- package/dist/components/agents-sdk/AgentActivity.js +1 -1
- package/dist/components/agents-sdk/AgentActivityPreview.js +4 -4
- package/dist/components/agents-sdk/AgentChat.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChat.js +36 -30
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +47 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +2 -2
- package/dist/components/agents-sdk/BrowserReplay.d.ts +40 -1
- package/dist/components/agents-sdk/BrowserReplay.js +1 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +2 -2
- package/dist/components/agents-sdk/McpConnectionRequest.js +15 -16
- 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 +19 -26
- package/dist/components/agents-sdk/McpServerPicker.d.ts +2 -2
- package/dist/components/agents-sdk/McpServerPicker.js +20 -18
- package/dist/components/agents-sdk/ModelSelector.d.ts +9 -9
- package/dist/components/agents-sdk/ModelSelector.js +504 -1
- package/dist/components/agents-sdk/PromptInputApproval.js +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +1 -1
- package/dist/components/agents-sdk/SubagentRunIndicator.js +1 -1
- package/dist/components/agents-sdk/SubagentRunSelector.js +2 -2
- package/dist/components/agents-sdk/ThinkChat.d.ts +17 -107
- package/dist/components/agents-sdk/ThinkChat.js +2 -12
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +2 -4
- package/dist/components/agents-sdk/ThinkChatActivity.js +2 -2
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +2 -2
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +1 -1
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +3 -3
- package/dist/components/agents-sdk/ThinkFullApp.d.ts +4 -4
- package/dist/components/agents-sdk/ThinkFullApp.js +10 -14
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineBrowser.js +2 -2
- package/dist/components/agents-sdk/ThinkRoutineDetail.js +1 -1
- package/dist/components/agents-sdk/ThinkRoutineForm.js +3 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.d.ts +2 -3
- package/dist/components/agents-sdk/ThinkRoutineLibrary.js +4 -4
- package/dist/components/agents-sdk/ThinkRoutineRuns.js +2 -2
- package/dist/components/agents-sdk/ThinkThreadPicker.js +6 -7
- package/dist/components/agents-sdk/ThinkThreadShell.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.d.ts +140 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +32 -5
- package/dist/components/agents-sdk/WorkspaceExplorer.js +3 -5
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceFileView.js +1 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +2 -2
- package/dist/components/ai-sdk/Activity.d.ts +5 -0
- package/dist/components/ai-sdk/Activity.js +34 -14
- 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.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/Conversation.js +1 -1
- package/dist/components/ai-sdk/Goal.js +1 -1
- package/dist/components/ai-sdk/InlineCitation.js +1 -1
- package/dist/components/ai-sdk/MediaPreviewCard.js +1 -1
- package/dist/components/ai-sdk/Message.js +2 -6
- package/dist/components/ai-sdk/MessageScroller.d.ts +5 -0
- package/dist/components/ai-sdk/MessageScroller.js +19 -13
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +19 -11
- package/dist/components/ai-sdk/Plan.js +1 -1
- package/dist/components/ai-sdk/PromptInput.d.ts +2 -2
- package/dist/components/ai-sdk/PromptInput.js +126 -129
- package/dist/components/ai-sdk/Queue.js +2 -2
- package/dist/components/ai-sdk/Reasoning.d.ts +3 -4
- package/dist/components/ai-sdk/Reasoning.js +30 -14
- package/dist/components/ai-sdk/Sources.js +1 -1
- package/dist/components/ai-sdk/Task.js +1 -1
- package/dist/components/ai-sdk/ToolInvocation.d.ts +3 -5
- package/dist/components/extension/ChatGptSignInScreen.js +3 -3
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +2 -2
- package/dist/components/extension/ConversationTabPicker.js +3 -3
- package/dist/components/foundations/Accordion.d.ts +1 -3
- package/dist/components/foundations/Accordion.js +1 -3
- package/dist/components/foundations/AlertDialog.d.ts +16 -36
- package/dist/components/foundations/Autocomplete.d.ts +12 -33
- package/dist/components/foundations/Autocomplete.js +2 -1
- package/dist/components/foundations/Card.d.ts +3 -3
- package/dist/components/foundations/Card.js +3 -3
- package/dist/components/foundations/Checkbox.js +1 -1
- package/dist/components/foundations/Collapsible.js +1 -1
- package/dist/components/foundations/Combobox.d.ts +119 -2
- package/dist/components/foundations/Combobox.js +6 -23
- package/dist/components/foundations/ContextMenu.d.ts +50 -57
- package/dist/components/foundations/ContextMenu.js +5 -29
- package/dist/components/foundations/DescriptionList.d.ts +34 -2
- package/dist/components/foundations/DescriptionList.js +33 -2
- package/dist/components/foundations/Dialog.d.ts +1 -1
- package/dist/components/foundations/Dialog.js +2 -1
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +3 -21
- package/dist/components/foundations/Menubar.d.ts +35 -64
- package/dist/components/foundations/Menubar.js +4 -23
- package/dist/components/foundations/Popover.d.ts +8 -21
- package/dist/components/foundations/Popover.js +3 -48
- package/dist/components/foundations/PreviewCard.d.ts +44 -29
- package/dist/components/foundations/PreviewCard.js +3 -6
- package/dist/components/foundations/RadioGroup.d.ts +4 -6
- package/dist/components/foundations/SearchField.js +1 -1
- package/dist/components/foundations/Select.d.ts +1 -1
- package/dist/components/foundations/Select.js +8 -22
- package/dist/components/foundations/Slider.d.ts +31 -44
- package/dist/components/foundations/Slider.js +26 -25
- package/dist/components/foundations/Stepper.d.ts +3 -3
- package/dist/components/foundations/Stepper.js +6 -7
- package/dist/components/foundations/Toast.js +1 -1
- package/dist/components/foundations/ToggleGroup.d.ts +1 -1
- package/dist/components/foundations/ToggleGroup.js +1 -1
- package/dist/components/foundations/Tooltip.d.ts +6 -8
- package/dist/components/foundations/Tooltip.js +4 -3
- package/dist/components/foundations/icons.js +1 -1
- package/dist/components/general-purpose/Commit.js +3 -3
- package/dist/components/general-purpose/EnvironmentVariables.js +2 -2
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/PricingBillingToggle.d.ts +2 -3
- package/dist/components/general-purpose/PricingBillingToggle.js +5 -23
- package/dist/components/general-purpose/PricingPage.d.ts +3 -4
- package/dist/components/general-purpose/PricingPlanCard.js +2 -2
- package/dist/components/general-purpose/PricingUsageCalculator.js +2 -2
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -67
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +1 -1
- package/dist/components/general-purpose/SettingsFormDialog.d.ts +7 -2
- package/dist/components/general-purpose/SettingsFormDialog.js +19 -4
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/Terminal.js +4 -4
- 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 +5 -5
- package/dist/components/nanites/AgentConnection.js +17 -12
- package/dist/components/nanites/AgentToolDetail.js +4 -4
- package/dist/{copy-button-CsNSSKYG.js → copy-button-4YvddK4e.js} +1 -1
- package/dist/{mcp-server-U71zhxFF.js → mcp-server-SD_S-IpB.js} +18 -2
- package/dist/message-scroller-C8cplcQO.js +32 -0
- package/dist/provider-logos-zjZycgV6.js +74 -0
- package/dist/styles/agent-chat.css +9 -0
- package/dist/styles/agent-connection.css +4 -31
- package/dist/styles/alert-dialog.css +0 -2
- package/dist/styles/base-ui-motion.css +7 -5
- package/dist/styles/chatgpt-sign-in-screen.css +5 -3
- package/dist/styles/dialog.css +0 -2
- package/dist/styles/model-selector.css +30 -12
- package/dist/styles/popover.css +0 -1
- package/dist/styles/preview-card.css +0 -4
- package/dist/styles/pricing-page.css +1 -13
- package/dist/styles/prompt-input.css +12 -10
- package/dist/styles/recipes.css +22 -14
- package/dist/styles/slider.css +2 -2
- package/dist/styles/tooltip.css +0 -1
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +18 -8
- package/dist/BrowserLiveView-tJTWkoyu.d.ts +0 -48
- package/dist/BrowserReplay-B0BQZr-N.d.ts +0 -41
- package/dist/Combobox-WrrDDaEv.d.ts +0 -154
- package/dist/ModelSelector-DtBxWqRn.js +0 -504
- package/dist/Workspace-GTlqvcIn.d.ts +0 -278
- package/dist/WorkspaceExplorer-Cu044amt.d.ts +0 -32
- package/dist/components/foundations/DescriptionListParts.d.ts +0 -37
- package/dist/components/foundations/DescriptionListParts.js +0 -35
- package/dist/{icons-B1Qw05te.js → icons-B4mGvCvc.js} +1 -1
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import { a as WorkspaceMediaInfo, i as WorkspaceFileState, r as WorkspaceFileAssetResolver, t as WorkspaceFileAsset } from "./WorkspaceFile-CVAzjTt6.js";
|
|
2
|
-
import { WorkspaceLike } from "@cloudflare/think";
|
|
3
|
-
import { FileInfo, Workspace } from "@cloudflare/shell";
|
|
4
|
-
|
|
5
|
-
//#region src/components/agents-sdk/Workspace.d.ts
|
|
6
|
-
/** Workspace summary, as returned by `Workspace.getWorkspaceInfo()` upstream. */
|
|
7
|
-
type WorkspaceInfo = Awaited<ReturnType<Workspace["getWorkspaceInfo"]>>;
|
|
8
|
-
/** Whole upstream workspace shapes, accepted without narrowing or mirroring. */
|
|
9
|
-
type WorkspaceSource = Workspace | WorkspaceLike;
|
|
10
|
-
interface UseWorkspaceOptions {
|
|
11
|
-
/** Must be referentially stable (memoize in the app). */
|
|
12
|
-
source: WorkspaceSource;
|
|
13
|
-
/**
|
|
14
|
-
* Stable, non-secret identity for the endpoint/account/tenant/workspace
|
|
15
|
-
* behind `source`. Change it whenever that backing workspace changes.
|
|
16
|
-
*/
|
|
17
|
-
sourceKey: string;
|
|
18
|
-
/** Root directory to list first. Defaults to "/". */
|
|
19
|
-
root?: string;
|
|
20
|
-
/** Route-owned selected file path. */
|
|
21
|
-
selectedPath: string | null;
|
|
22
|
-
/** Called when a non-link browser asks the app to select a file. */
|
|
23
|
-
onSelectedPathChange?: (path: string | null) => void;
|
|
24
|
-
/**
|
|
25
|
-
* Optional host adapter called before text/binary reads. Return `null` for
|
|
26
|
-
* ordinary text files and prefer signed/range-friendly URLs for large media.
|
|
27
|
-
* The configured root scopes navigation; hosts must enforce authorization
|
|
28
|
-
* atomically when resolving assets across a trust boundary.
|
|
29
|
-
* Keep this resolver semantically stable for a given `sourceKey`; function
|
|
30
|
-
* identity is intentionally excluded from serializable query keys.
|
|
31
|
-
*/
|
|
32
|
-
resolveFileAsset?: WorkspaceFileAssetResolver;
|
|
33
|
-
/** Maximum size for the built-in buffered-byte fallback. Defaults to 32 MiB. */
|
|
34
|
-
maxInlineAssetBytes?: number;
|
|
35
|
-
}
|
|
36
|
-
interface WorkspaceState {
|
|
37
|
-
root: string;
|
|
38
|
-
/** Loaded directory listings, keyed by directory path. */
|
|
39
|
-
entriesByDirectory: Readonly<Record<string, readonly FileInfo[]>>;
|
|
40
|
-
/** Every loaded entry, keyed by its path. */
|
|
41
|
-
entryByPath: ReadonlyMap<string, FileInfo>;
|
|
42
|
-
expandedPaths: ReadonlySet<string>;
|
|
43
|
-
/** Update expansion; newly expanded directories load lazily. */
|
|
44
|
-
setExpandedPaths: (next: Set<string>) => void;
|
|
45
|
-
selectedPath: string | null;
|
|
46
|
-
/** Ask the route owner to select a file. */
|
|
47
|
-
selectFile: (path: string | null) => void;
|
|
48
|
-
/** The selected file once its read settles; null while loading. */
|
|
49
|
-
selectedFile: WorkspaceFileState | null;
|
|
50
|
-
/** Initial root/info load or explicit refresh in flight. */
|
|
51
|
-
isLoading: boolean;
|
|
52
|
-
/** Directory and file paths with a query in flight. */
|
|
53
|
-
loadingPaths: ReadonlySet<string>;
|
|
54
|
-
/** Root/directory listing failure. Per-file read errors live on the file state. */
|
|
55
|
-
error: string | null;
|
|
56
|
-
/** Workspace summary, when the source provides `getWorkspaceInfo`. */
|
|
57
|
-
info: WorkspaceInfo | null;
|
|
58
|
-
/** Reload the root, every expanded directory, and the selected file. */
|
|
59
|
-
refresh: () => void;
|
|
60
|
-
}
|
|
61
|
-
interface WorkspaceFileReadTarget {
|
|
62
|
-
requestedPath: string;
|
|
63
|
-
readPath: string;
|
|
64
|
-
info: FileInfo;
|
|
65
|
-
media: WorkspaceMediaInfo | null;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Source/root prefix for cache inspection, cancellation, or removal.
|
|
69
|
-
* Do not broadly invalidate this prefix: active file queries must refresh in
|
|
70
|
-
* stat → resolver → content order. Use a resource option key or `refresh()`.
|
|
71
|
-
*/
|
|
72
|
-
declare function workspaceQueryKey(sourceKey: string, root: string): readonly ["workspace", string, string];
|
|
73
|
-
type WorkspaceQueryKey = ReturnType<typeof workspaceQueryKey>;
|
|
74
|
-
/** Directory-listing prefix for targeted cache invalidation. */
|
|
75
|
-
declare function workspaceDirectoryQueryPrefix(sourceKey: string, root: string): readonly ["workspace", string, string, "directory"];
|
|
76
|
-
/** Exact directory-listing key shared by query options and live hosts. */
|
|
77
|
-
declare function workspaceDirectoryQueryKey(sourceKey: string, root: string, path: string): readonly ["workspace", string, string, "directory", string];
|
|
78
|
-
/** Shared directory options for workspace components and route loaders. */
|
|
79
|
-
declare function workspaceDirectoryQueryOptions(source: WorkspaceSource, sourceKey: string, root: string, path: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<readonly FileInfo[], Error, readonly FileInfo[], readonly ["workspace", string, string, "directory", string]>, "queryFn"> & {
|
|
80
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<readonly FileInfo[], readonly ["workspace", string, string, "directory", string], never> | undefined;
|
|
81
|
-
} & {
|
|
82
|
-
queryKey: readonly ["workspace", string, string, "directory", string] & {
|
|
83
|
-
[dataTagSymbol]: readonly FileInfo[];
|
|
84
|
-
[dataTagErrorSymbol]: Error;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
/** Shared workspace-summary options for workspace components and route loaders. */
|
|
88
|
-
declare function workspaceInfoQueryOptions(source: WorkspaceSource, sourceKey: string, root: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
89
|
-
fileCount: number;
|
|
90
|
-
directoryCount: number;
|
|
91
|
-
totalBytes: number;
|
|
92
|
-
r2FileCount: number;
|
|
93
|
-
} | null, Error, {
|
|
94
|
-
fileCount: number;
|
|
95
|
-
directoryCount: number;
|
|
96
|
-
totalBytes: number;
|
|
97
|
-
r2FileCount: number;
|
|
98
|
-
} | null, readonly ["workspace", string, string, "info"]>, "queryFn"> & {
|
|
99
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
100
|
-
fileCount: number;
|
|
101
|
-
directoryCount: number;
|
|
102
|
-
totalBytes: number;
|
|
103
|
-
r2FileCount: number;
|
|
104
|
-
} | null, readonly ["workspace", string, string, "info"], never> | undefined;
|
|
105
|
-
} & {
|
|
106
|
-
queryKey: readonly ["workspace", string, string, "info"] & {
|
|
107
|
-
[dataTagSymbol]: {
|
|
108
|
-
fileCount: number;
|
|
109
|
-
directoryCount: number;
|
|
110
|
-
totalBytes: number;
|
|
111
|
-
r2FileCount: number;
|
|
112
|
-
} | null;
|
|
113
|
-
[dataTagErrorSymbol]: Error;
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
/** Re-stat and validate a requested path before any resolver or file read. */
|
|
117
|
-
declare function workspaceFileStatQueryOptions(source: WorkspaceSource, sourceKey: string, root: string, requestedPath: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<WorkspaceFileReadTarget, Error, WorkspaceFileReadTarget, readonly ["workspace", string, string, "file", string, "stat"]>, "queryFn"> & {
|
|
118
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<WorkspaceFileReadTarget, readonly ["workspace", string, string, "file", string, "stat"], never> | undefined;
|
|
119
|
-
} & {
|
|
120
|
-
queryKey: readonly ["workspace", string, string, "file", string, "stat"] & {
|
|
121
|
-
[dataTagSymbol]: WorkspaceFileReadTarget;
|
|
122
|
-
[dataTagErrorSymbol]: Error;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
/** Optional host asset resolution, scoped to the current stat result. */
|
|
126
|
-
declare function workspaceFileAssetQueryOptions(sourceKey: string, root: string, target: WorkspaceFileReadTarget, resolveFileAsset: WorkspaceFileAssetResolver): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
127
|
-
asset: WorkspaceFileAsset;
|
|
128
|
-
media: WorkspaceMediaInfo;
|
|
129
|
-
} | null, Error, {
|
|
130
|
-
asset: WorkspaceFileAsset;
|
|
131
|
-
media: WorkspaceMediaInfo;
|
|
132
|
-
} | null, readonly ["workspace", string, string, "file", string, "asset", {
|
|
133
|
-
readonly path: string;
|
|
134
|
-
readonly name: string;
|
|
135
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
136
|
-
readonly mimeType: string;
|
|
137
|
-
readonly size: number;
|
|
138
|
-
readonly createdAt: number;
|
|
139
|
-
readonly updatedAt: number;
|
|
140
|
-
readonly target: string | null;
|
|
141
|
-
}]>, "queryFn"> & {
|
|
142
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
143
|
-
asset: WorkspaceFileAsset;
|
|
144
|
-
media: WorkspaceMediaInfo;
|
|
145
|
-
} | null, readonly ["workspace", string, string, "file", string, "asset", {
|
|
146
|
-
readonly path: string;
|
|
147
|
-
readonly name: string;
|
|
148
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
149
|
-
readonly mimeType: string;
|
|
150
|
-
readonly size: number;
|
|
151
|
-
readonly createdAt: number;
|
|
152
|
-
readonly updatedAt: number;
|
|
153
|
-
readonly target: string | null;
|
|
154
|
-
}], never> | undefined;
|
|
155
|
-
} & {
|
|
156
|
-
queryKey: readonly ["workspace", string, string, "file", string, "asset", {
|
|
157
|
-
readonly path: string;
|
|
158
|
-
readonly name: string;
|
|
159
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
160
|
-
readonly mimeType: string;
|
|
161
|
-
readonly size: number;
|
|
162
|
-
readonly createdAt: number;
|
|
163
|
-
readonly updatedAt: number;
|
|
164
|
-
readonly target: string | null;
|
|
165
|
-
}] & {
|
|
166
|
-
[dataTagSymbol]: {
|
|
167
|
-
asset: WorkspaceFileAsset;
|
|
168
|
-
media: WorkspaceMediaInfo;
|
|
169
|
-
} | null;
|
|
170
|
-
[dataTagErrorSymbol]: Error;
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
/** Cached text read options, scoped to the validated stat result. */
|
|
174
|
-
declare function workspaceTextFileQueryOptions(source: WorkspaceSource, sourceKey: string, root: string, target: WorkspaceFileReadTarget): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<string | null, Error, string | null, readonly ["workspace", string, string, "file", string, "text", {
|
|
175
|
-
readonly path: string;
|
|
176
|
-
readonly name: string;
|
|
177
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
178
|
-
readonly mimeType: string;
|
|
179
|
-
readonly size: number;
|
|
180
|
-
readonly createdAt: number;
|
|
181
|
-
readonly updatedAt: number;
|
|
182
|
-
readonly target: string | null;
|
|
183
|
-
}]>, "queryFn"> & {
|
|
184
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<string | null, readonly ["workspace", string, string, "file", string, "text", {
|
|
185
|
-
readonly path: string;
|
|
186
|
-
readonly name: string;
|
|
187
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
188
|
-
readonly mimeType: string;
|
|
189
|
-
readonly size: number;
|
|
190
|
-
readonly createdAt: number;
|
|
191
|
-
readonly updatedAt: number;
|
|
192
|
-
readonly target: string | null;
|
|
193
|
-
}], never> | undefined;
|
|
194
|
-
} & {
|
|
195
|
-
queryKey: readonly ["workspace", string, string, "file", string, "text", {
|
|
196
|
-
readonly path: string;
|
|
197
|
-
readonly name: string;
|
|
198
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
199
|
-
readonly mimeType: string;
|
|
200
|
-
readonly size: number;
|
|
201
|
-
readonly createdAt: number;
|
|
202
|
-
readonly updatedAt: number;
|
|
203
|
-
readonly target: string | null;
|
|
204
|
-
}] & {
|
|
205
|
-
[dataTagSymbol]: string | null;
|
|
206
|
-
[dataTagErrorSymbol]: Error;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
/** Active-file-only buffered asset options, scoped to the validated stat result. */
|
|
210
|
-
declare function workspaceBinaryFileQueryOptions(source: WorkspaceSource, sourceKey: string, root: string, target: WorkspaceFileReadTarget, maxInlineAssetBytes: number): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
211
|
-
asset: WorkspaceFileAsset;
|
|
212
|
-
media: WorkspaceMediaInfo;
|
|
213
|
-
} | null, Error, {
|
|
214
|
-
asset: WorkspaceFileAsset;
|
|
215
|
-
media: WorkspaceMediaInfo;
|
|
216
|
-
} | null, readonly ["workspace", string, string, "file", string, "bytes", {
|
|
217
|
-
readonly path: string;
|
|
218
|
-
readonly name: string;
|
|
219
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
220
|
-
readonly mimeType: string;
|
|
221
|
-
readonly size: number;
|
|
222
|
-
readonly createdAt: number;
|
|
223
|
-
readonly updatedAt: number;
|
|
224
|
-
readonly target: string | null;
|
|
225
|
-
}, {
|
|
226
|
-
readonly maxInlineAssetBytes: number;
|
|
227
|
-
}]>, "queryFn"> & {
|
|
228
|
-
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
229
|
-
asset: WorkspaceFileAsset;
|
|
230
|
-
media: WorkspaceMediaInfo;
|
|
231
|
-
} | null, readonly ["workspace", string, string, "file", string, "bytes", {
|
|
232
|
-
readonly path: string;
|
|
233
|
-
readonly name: string;
|
|
234
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
235
|
-
readonly mimeType: string;
|
|
236
|
-
readonly size: number;
|
|
237
|
-
readonly createdAt: number;
|
|
238
|
-
readonly updatedAt: number;
|
|
239
|
-
readonly target: string | null;
|
|
240
|
-
}, {
|
|
241
|
-
readonly maxInlineAssetBytes: number;
|
|
242
|
-
}], never> | undefined;
|
|
243
|
-
} & {
|
|
244
|
-
queryKey: readonly ["workspace", string, string, "file", string, "bytes", {
|
|
245
|
-
readonly path: string;
|
|
246
|
-
readonly name: string;
|
|
247
|
-
readonly type: import("@cloudflare/shell").EntryType;
|
|
248
|
-
readonly mimeType: string;
|
|
249
|
-
readonly size: number;
|
|
250
|
-
readonly createdAt: number;
|
|
251
|
-
readonly updatedAt: number;
|
|
252
|
-
readonly target: string | null;
|
|
253
|
-
}, {
|
|
254
|
-
readonly maxInlineAssetBytes: number;
|
|
255
|
-
}] & {
|
|
256
|
-
[dataTagSymbol]: {
|
|
257
|
-
asset: WorkspaceFileAsset;
|
|
258
|
-
media: WorkspaceMediaInfo;
|
|
259
|
-
} | null;
|
|
260
|
-
[dataTagErrorSymbol]: Error;
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
/**
|
|
264
|
-
* Headless state for browsing a Think workspace. TanStack Query owns remote
|
|
265
|
-
* directory, metadata, resolver, text, and byte lifecycles; the route owns
|
|
266
|
-
* selection, while this hook only keeps local tree expansion state.
|
|
267
|
-
*/
|
|
268
|
-
declare function useWorkspace({
|
|
269
|
-
source,
|
|
270
|
-
sourceKey,
|
|
271
|
-
root,
|
|
272
|
-
selectedPath,
|
|
273
|
-
onSelectedPathChange,
|
|
274
|
-
resolveFileAsset,
|
|
275
|
-
maxInlineAssetBytes
|
|
276
|
-
}: UseWorkspaceOptions): WorkspaceState;
|
|
277
|
-
//#endregion
|
|
278
|
-
export { WorkspaceSource as a, workspaceBinaryFileQueryOptions as c, workspaceDirectoryQueryPrefix as d, workspaceFileAssetQueryOptions as f, workspaceTextFileQueryOptions as g, workspaceQueryKey as h, WorkspaceQueryKey as i, workspaceDirectoryQueryKey as l, workspaceInfoQueryOptions as m, WorkspaceFileReadTarget as n, WorkspaceState as o, workspaceFileStatQueryOptions as p, WorkspaceInfo as r, useWorkspace as s, UseWorkspaceOptions as t, workspaceDirectoryQueryOptions as u };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { l as WorkspaceNavigationAdapter } from "./WorkspaceLink-DQogVe8E.js";
|
|
2
|
-
import { o as WorkspaceState } from "./Workspace-GTlqvcIn.js";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
|
|
5
|
-
//#region src/components/agents-sdk/WorkspaceExplorer.d.ts
|
|
6
|
-
interface WorkspaceExplorerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
7
|
-
workspace: WorkspaceState;
|
|
8
|
-
/** Host-owned URL/history adapter shared by chat links and the file explorer. */
|
|
9
|
-
navigation: WorkspaceNavigationAdapter;
|
|
10
|
-
/** Header label. Defaults to "Workspace". */
|
|
11
|
-
title?: React.ReactNode;
|
|
12
|
-
/** Leading workspace control, such as a host-owned Back to chat button. */
|
|
13
|
-
leading?: React.ReactNode;
|
|
14
|
-
/** Extra header actions, rendered next to the built-in refresh button. */
|
|
15
|
-
actions?: React.ReactNode;
|
|
16
|
-
/** Show the file filter input. Hidden by default to keep the browser compact. */
|
|
17
|
-
showFilter?: boolean;
|
|
18
|
-
filterPlaceholder?: string;
|
|
19
|
-
emptyState?: React.ReactNode;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Convenience workspace application composed from `WorkspaceBrowser` and
|
|
23
|
-
* `WorkspaceFileView`. The host adapter owns URLs and history; the explorer
|
|
24
|
-
* only restores presentation state for stable navigation entry keys.
|
|
25
|
-
*/
|
|
26
|
-
declare function WorkspaceExplorer({
|
|
27
|
-
...props
|
|
28
|
-
}: WorkspaceExplorerProps & {
|
|
29
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
30
|
-
}): React.JSX.Element;
|
|
31
|
-
//#endregion
|
|
32
|
-
export { WorkspaceExplorerProps as n, WorkspaceExplorer as t };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
//#region src/components/foundations/DescriptionListParts.d.ts
|
|
4
|
-
interface DescriptionListRootProps extends React.HTMLAttributes<HTMLDListElement> {
|
|
5
|
-
variant?: "plain" | "divided";
|
|
6
|
-
}
|
|
7
|
-
declare function DescriptionListRoot({
|
|
8
|
-
className,
|
|
9
|
-
ref,
|
|
10
|
-
variant,
|
|
11
|
-
...props
|
|
12
|
-
}: DescriptionListRootProps & {
|
|
13
|
-
ref?: React.Ref<HTMLDListElement>;
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
declare function DescriptionListItem({
|
|
16
|
-
className,
|
|
17
|
-
ref,
|
|
18
|
-
...props
|
|
19
|
-
}: React.HTMLAttributes<HTMLDivElement> & {
|
|
20
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
21
|
-
}): React.JSX.Element;
|
|
22
|
-
declare function DescriptionListTerm({
|
|
23
|
-
className,
|
|
24
|
-
ref,
|
|
25
|
-
...props
|
|
26
|
-
}: React.HTMLAttributes<HTMLElement> & {
|
|
27
|
-
ref?: React.Ref<HTMLElement>;
|
|
28
|
-
}): React.JSX.Element;
|
|
29
|
-
declare function DescriptionListDetails({
|
|
30
|
-
className,
|
|
31
|
-
ref,
|
|
32
|
-
...props
|
|
33
|
-
}: React.HTMLAttributes<HTMLElement> & {
|
|
34
|
-
ref?: React.Ref<HTMLElement>;
|
|
35
|
-
}): React.JSX.Element;
|
|
36
|
-
//#endregion
|
|
37
|
-
export { DescriptionListDetails, DescriptionListItem, DescriptionListRoot, DescriptionListRootProps, DescriptionListTerm };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { t as cx } from "../../class-names-BiMDVpUo.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/foundations/DescriptionListParts.tsx
|
|
5
|
-
function DescriptionListRoot({ className, ref, variant = "plain", ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx("dl", {
|
|
7
|
-
ref,
|
|
8
|
-
className: cx("description-list", className),
|
|
9
|
-
"data-variant": variant,
|
|
10
|
-
...props
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function DescriptionListItem({ className, ref, ...props }) {
|
|
14
|
-
return /* @__PURE__ */ jsx("div", {
|
|
15
|
-
ref,
|
|
16
|
-
className: cx("description-list__item", className),
|
|
17
|
-
...props
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function DescriptionListTerm({ className, ref, ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx("dt", {
|
|
22
|
-
ref,
|
|
23
|
-
className: cx("description-list__term", className),
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function DescriptionListDetails({ className, ref, ...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsx("dd", {
|
|
29
|
-
ref,
|
|
30
|
-
className: cx("description-list__details", className),
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
//#endregion
|
|
35
|
-
export { DescriptionListDetails, DescriptionListItem, DescriptionListRoot, DescriptionListTerm };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import { Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, ArrowUpRight, Bookmark, Box, Brain, CalendarDays, Check, ChevronDown, ChevronLeft, ChevronRight, CircleStop, CodeXml, Copy, CornerDownRight, Dot, Download, Ellipsis, Eye, EyeOff, File, Folder, FolderOpen, Hash, Image, Info, Link2, ListRestart, LoaderCircle, Maximize2, MessageSquare, Mic, Minus, Monitor, Moon, PanelLeft, Paperclip, Pause, Pencil, Play, Plus, RefreshCw, Search, Square, Sun, Target, Terminal, Trash2, TriangleAlert, Wrench, X } from "lucide-react";
|
|
3
4
|
import { FaSlack } from "react-icons/fa6";
|
|
4
5
|
import { SiDiscord, SiModelcontextprotocol } from "react-icons/si";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/_internal/icons.tsx
|
|
7
7
|
function icon(Component) {
|
|
8
8
|
return function DesignSystemIcon({ size = 16, strokeWidth = 1.75, ...props }) {
|