@mcp-b/react-components 0.73.0 → 0.75.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/ConversationTabPicker-C_hMt0GY.d.ts +28 -0
- package/dist/{EmployeeChrome-kegSASjC.d.ts → EmployeeChrome-D8_6ZbLc.d.ts} +2 -8
- package/dist/{ThinkChatActivity-C7xnO0Fx.d.ts → ThinkChatActivity-Cb47dKAW.d.ts} +2 -2
- package/dist/{ThinkChatActivitySummary-Dh4Av7x_.d.ts → ThinkChatActivitySummary-Hvur11FV.d.ts} +1 -1
- package/dist/{ThinkChatToolParts-BrntWlpa.d.ts → ThinkChatToolParts-vSzcCbQW.d.ts} +144 -25
- package/dist/{ThinkSchedule-C9vErgZQ.d.ts → ThinkSchedule-gDwDmWOF.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-hwl6C1aX.d.ts → WorkspaceAutomation-Dugk4RkK.d.ts} +1 -1
- package/dist/components/agents-sdk/ComputerAutomations.d.ts +2 -2
- package/dist/components/agents-sdk/ComputerSettings.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeChrome.js +62 -111
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOffice.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +13 -4
- package/dist/components/agents-sdk/PromptInputCommands.js +4 -6
- package/dist/components/agents-sdk/ThinkChat.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +17 -10
- package/dist/components/agents-sdk/ThinkChatToolPanels.d.ts +5 -5
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +498 -254
- package/dist/components/agents-sdk/ThinkChatToolParts.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChatToolParts.js +13 -4
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.d.ts +2 -27
- package/dist/components/extension/FirstRunSetup.d.ts +4 -4
- package/dist/styles/employee-chrome.css +1 -6
- package/dist/{workspace-concept-panel-D1czupvi.d.ts → workspace-concept-panel-BC2W28pu.d.ts} +1 -1
- package/package.json +16 -11
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/components/extension/ConversationTabPicker.d.ts
|
|
3
|
+
type ConversationTabId = string | number;
|
|
4
|
+
interface ConversationTabPickerItem {
|
|
5
|
+
id: ConversationTabId;
|
|
6
|
+
title?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
iconSrc?: string;
|
|
9
|
+
}
|
|
10
|
+
interface ConversationTabPickerProps<Tab extends ConversationTabPickerItem = ConversationTabPickerItem> {
|
|
11
|
+
/** Browser-enriched tabs already scoped to the current conversation. */
|
|
12
|
+
tabs: readonly Tab[];
|
|
13
|
+
/** Host-owned activation, such as Chrome tab/window focus. */
|
|
14
|
+
onSelect: (tab: Tab) => void | Promise<void>;
|
|
15
|
+
/** Maximum site marks shown in the collapsed trigger. */
|
|
16
|
+
maxVisible?: number;
|
|
17
|
+
/** Visible heading for the tab choices in the menu. */
|
|
18
|
+
groupLabel?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Shared tab-menu presentation over host-resolved browser data.
|
|
22
|
+
*
|
|
23
|
+
* The browser adapter owns tab lookup and activation. This component owns URL
|
|
24
|
+
* labels, favicon fallbacks, menu state, and async activation feedback.
|
|
25
|
+
*/
|
|
26
|
+
declare function ConversationTabPicker<Tab extends ConversationTabPickerItem>({ tabs, ...props }: ConversationTabPickerProps<Tab>): React.JSX.Element | null;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ConversationTabPickerProps as i, ConversationTabPicker as n, ConversationTabPickerItem as r, ConversationTabId as t };
|
|
@@ -87,7 +87,6 @@ interface EmployeeWorkbenchItem {
|
|
|
87
87
|
description: string;
|
|
88
88
|
icon: React.ReactNode;
|
|
89
89
|
}
|
|
90
|
-
type EmployeeDisplayMode = "sidepanel" | "tab";
|
|
91
90
|
interface EmployeeMenuProps {
|
|
92
91
|
/** Overrides the default Files/Plugins navigation for shared host shells. */
|
|
93
92
|
navigation?: readonly EmployeeWorkbenchItem[];
|
|
@@ -102,11 +101,6 @@ interface EmployeeMenuProps {
|
|
|
102
101
|
onAIProvider?: () => void;
|
|
103
102
|
/** Requests host sign-out; session teardown stays host-owned. */
|
|
104
103
|
onSignOut?: () => void;
|
|
105
|
-
/** Browser-owned preference for opening Rook from its extension toolbar icon. */
|
|
106
|
-
display?: {
|
|
107
|
-
mode: EmployeeDisplayMode;
|
|
108
|
-
setMode: (mode: EmployeeDisplayMode) => void;
|
|
109
|
-
};
|
|
110
104
|
companion?: EmployeeCompanion;
|
|
111
105
|
localAgents?: EmployeeLocalAgents;
|
|
112
106
|
passkeys?: EmployeePasskeyVault;
|
|
@@ -116,7 +110,7 @@ interface EmployeeMenuProps {
|
|
|
116
110
|
workbenchNavigation?: readonly EmployeeWorkbenchItem[];
|
|
117
111
|
}
|
|
118
112
|
/** Employee settings are host-owned state; the menu stores only dialog visibility. */
|
|
119
|
-
declare function EmployeeMenu({ renderLink, view, threadId, identity, onAIProvider, onSignOut,
|
|
113
|
+
declare function EmployeeMenu({ renderLink, view, threadId, identity, onAIProvider, onSignOut, companion, localAgents, passkeys, follow, workbenchNavigation, navigation }: EmployeeMenuProps): React.JSX.Element;
|
|
120
114
|
interface EmployeeShellProps<Thread extends ThinkThreadItem = ThinkThreadItem> extends EmployeeMenuProps {
|
|
121
115
|
view: EmployeeView;
|
|
122
116
|
/** Replaces the default Back to chat link in every layout. */
|
|
@@ -169,4 +163,4 @@ declare const EmployeeChrome: {
|
|
|
169
163
|
Welcome: typeof EmployeeWelcome;
|
|
170
164
|
};
|
|
171
165
|
//#endregion
|
|
172
|
-
export {
|
|
166
|
+
export { EmployeeFollow as a, EmployeeMenuProps as c, EmployeeRenderLink as d, EmployeeShellProps as f, EmployeeWorkbenchItem as h, EmployeeDestination as i, EmployeeModelSetup as l, EmployeeView as m, EmployeeChrome as n, EmployeeIdentity as o, EmployeeStatus as p, EmployeeCompanion as r, EmployeeLocalAgents as s, EmployeeBrand as t, EmployeePasskeyVault as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as AgentMessageRenderPartContext } from "./AgentMessageParts-BtWwiE4f.js";
|
|
2
2
|
import { AgentChatMessageContentProps } from "./components/agents-sdk/AgentChat.js";
|
|
3
3
|
import { r as AgentToolRunValue } from "./AgentToolRunsContext-Br3jZ6Up.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as ThinkChatActivityDescription } from "./ThinkChatActivitySummary-
|
|
4
|
+
import { l as ThinkChatPart } from "./ThinkChatToolParts-vSzcCbQW.js";
|
|
5
|
+
import { t as ThinkChatActivityDescription } from "./ThinkChatActivitySummary-Hvur11FV.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { DynamicToolUIPart, ToolUIPart, UIMessage } from "ai";
|
|
8
8
|
//#region src/components/agents-sdk/ThinkChatActivity.d.ts
|
package/dist/{ThinkChatActivitySummary-Dh4Av7x_.d.ts → ThinkChatActivitySummary-Hvur11FV.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as AgentActivitySummary, n as AgentActivityIconKind } from "./AgentActivity-Cngwkalq.js";
|
|
2
|
-
import {
|
|
2
|
+
import { l as ThinkChatPart } from "./ThinkChatToolParts-vSzcCbQW.js";
|
|
3
3
|
import { DynamicToolUIPart, ToolUIPart } from "ai";
|
|
4
4
|
//#region src/components/agents-sdk/ThinkChatActivitySummary.d.ts
|
|
5
5
|
interface ThinkChatToolDescriber {
|
|
@@ -1,36 +1,155 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InferToolInput, Tool, ToolUIPart, UIMessage } from "ai";
|
|
2
2
|
import { ProxyToolInput, ProxyToolOutput } from "@cloudflare/codemode";
|
|
3
3
|
import { QuickActionExtractInput, QuickActionPage, QuickActionScrapeInput, QuickActionToolName } from "@cloudflare/think/tools/browser";
|
|
4
4
|
import { FetchResponseMode, FetchResult } from "@cloudflare/think/tools/fetch";
|
|
5
|
-
import {
|
|
5
|
+
import { ExecToolOutput } from "@cloudflare/computer/tools";
|
|
6
|
+
import { createDeleteTool, createEditTool, createExecTool, createFindTool, createGrepTool, createListTool, createPublishTool, createReadTool, createWriteTool } from "@cloudflare/computer/tools/ai-sdk";
|
|
6
7
|
//#region src/components/agents-sdk/ThinkChatToolParts.d.ts
|
|
7
8
|
type ThinkChatPart = UIMessage["parts"][number];
|
|
8
|
-
type
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
type ToolInput<Create extends (...args: never[]) => Tool> = InferToolInput<ReturnType<Create>>;
|
|
10
|
+
type WorkspaceToolError = {
|
|
11
|
+
error: string;
|
|
12
|
+
};
|
|
13
|
+
type WorkspaceReadOutput = {
|
|
14
|
+
path: string;
|
|
15
|
+
content: string;
|
|
16
|
+
startLine: number;
|
|
17
|
+
endLine: number;
|
|
18
|
+
totalLines: number | null;
|
|
19
|
+
truncated: boolean;
|
|
20
|
+
nextOffset?: number;
|
|
21
|
+
nextByteOffset?: number;
|
|
22
|
+
} | {
|
|
23
|
+
kind: "image" | "file" | "binary";
|
|
24
|
+
path: string;
|
|
25
|
+
name: string;
|
|
26
|
+
mediaType: string;
|
|
27
|
+
sizeBytes: number;
|
|
28
|
+
data?: string;
|
|
29
|
+
unsupported?: true;
|
|
30
|
+
} | WorkspaceToolError;
|
|
31
|
+
type WorkspaceWriteOutput = {
|
|
32
|
+
path: string;
|
|
33
|
+
bytesWritten: number;
|
|
34
|
+
} | WorkspaceToolError;
|
|
35
|
+
type WorkspaceEditOutput = {
|
|
36
|
+
path: string;
|
|
37
|
+
editsApplied: number;
|
|
38
|
+
/** Line-numbered display diff: `+`, `-` or space, the line number, then the line. */
|
|
39
|
+
diff: string;
|
|
40
|
+
patch: string;
|
|
41
|
+
firstChangedLine: number | undefined;
|
|
42
|
+
diffTruncated?: boolean;
|
|
43
|
+
} | WorkspaceToolError;
|
|
44
|
+
type WorkspaceDeleteOutput = {
|
|
45
|
+
deleted: string;
|
|
46
|
+
} | WorkspaceToolError;
|
|
47
|
+
type WorkspaceListOutput = {
|
|
48
|
+
path: string;
|
|
49
|
+
count: number;
|
|
50
|
+
entries: {
|
|
51
|
+
name: string;
|
|
52
|
+
size: number;
|
|
53
|
+
mtime: number;
|
|
54
|
+
isFile: boolean;
|
|
55
|
+
isDirectory: boolean;
|
|
56
|
+
isSymbolicLink: boolean;
|
|
57
|
+
}[];
|
|
58
|
+
nextOffset?: number;
|
|
59
|
+
} | WorkspaceToolError;
|
|
60
|
+
type WorkspaceFindOutput = {
|
|
61
|
+
path: string;
|
|
62
|
+
pattern: string;
|
|
63
|
+
count: number;
|
|
64
|
+
entries: {
|
|
65
|
+
path: string;
|
|
66
|
+
type: "file" | "dir";
|
|
67
|
+
}[];
|
|
68
|
+
nextOffset?: number;
|
|
69
|
+
} | WorkspaceToolError;
|
|
70
|
+
type WorkspaceGrepOutput = {
|
|
71
|
+
path: string;
|
|
72
|
+
query: string;
|
|
73
|
+
count: number;
|
|
74
|
+
matches: {
|
|
75
|
+
path: string;
|
|
76
|
+
line: number;
|
|
77
|
+
text: string;
|
|
78
|
+
context?: {
|
|
79
|
+
line: number;
|
|
80
|
+
text: string;
|
|
81
|
+
isMatch: boolean;
|
|
82
|
+
}[];
|
|
83
|
+
}[];
|
|
84
|
+
nextOffset?: number;
|
|
85
|
+
} | WorkspaceToolError;
|
|
86
|
+
type WorkspacePublishOutput = {
|
|
87
|
+
ok: true;
|
|
88
|
+
url: string;
|
|
89
|
+
} | {
|
|
90
|
+
ok: false;
|
|
91
|
+
error: string;
|
|
92
|
+
};
|
|
93
|
+
type BashToolInput = {
|
|
94
|
+
script: string;
|
|
95
|
+
cwd?: string;
|
|
96
|
+
};
|
|
97
|
+
type BashToolOutput = {
|
|
20
98
|
stdout: string;
|
|
21
99
|
stderr: string;
|
|
22
100
|
exitCode: number;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
101
|
+
};
|
|
102
|
+
type WorkspaceUITools = {
|
|
103
|
+
read: {
|
|
104
|
+
input: ToolInput<typeof createReadTool>;
|
|
105
|
+
output: WorkspaceReadOutput;
|
|
106
|
+
};
|
|
107
|
+
ls: {
|
|
108
|
+
input: ToolInput<typeof createListTool>;
|
|
109
|
+
output: WorkspaceListOutput;
|
|
110
|
+
};
|
|
111
|
+
find: {
|
|
112
|
+
input: ToolInput<typeof createFindTool>;
|
|
113
|
+
output: WorkspaceFindOutput;
|
|
114
|
+
};
|
|
115
|
+
grep: {
|
|
116
|
+
input: ToolInput<typeof createGrepTool>;
|
|
117
|
+
output: WorkspaceGrepOutput;
|
|
118
|
+
};
|
|
119
|
+
write: {
|
|
120
|
+
input: ToolInput<typeof createWriteTool>;
|
|
121
|
+
output: WorkspaceWriteOutput;
|
|
122
|
+
};
|
|
123
|
+
edit: {
|
|
124
|
+
input: ToolInput<typeof createEditTool>;
|
|
125
|
+
output: WorkspaceEditOutput;
|
|
126
|
+
};
|
|
127
|
+
delete: {
|
|
128
|
+
input: ToolInput<typeof createDeleteTool>;
|
|
129
|
+
output: WorkspaceDeleteOutput;
|
|
130
|
+
};
|
|
131
|
+
exec: {
|
|
132
|
+
input: ToolInput<typeof createExecTool>;
|
|
133
|
+
output: ExecToolOutput;
|
|
134
|
+
};
|
|
135
|
+
publish: {
|
|
136
|
+
input: ToolInput<typeof createPublishTool>;
|
|
137
|
+
output: WorkspacePublishOutput;
|
|
138
|
+
};
|
|
139
|
+
bash: {
|
|
140
|
+
input: BashToolInput;
|
|
141
|
+
output: BashToolOutput;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
type WorkspaceToolPart = ToolUIPart<WorkspaceUITools>;
|
|
145
|
+
type ThinkWorkspaceToolName = keyof WorkspaceUITools;
|
|
146
|
+
/** The two shell tools: upstream `exec` and a host's `bash`. */
|
|
147
|
+
type ShellToolPart = Extract<WorkspaceToolPart, {
|
|
148
|
+
type: "tool-exec" | "tool-bash";
|
|
149
|
+
}>;
|
|
33
150
|
declare function isWorkspaceToolPart(part: ThinkChatPart): part is WorkspaceToolPart;
|
|
151
|
+
/** The `{ error }` (or publish's `{ ok: false, error }`) a settled workspace tool returned. */
|
|
152
|
+
declare function workspaceToolError(part: WorkspaceToolPart): string | undefined;
|
|
34
153
|
type SkillUITools = {
|
|
35
154
|
activate_skill: {
|
|
36
155
|
input: {
|
|
@@ -180,4 +299,4 @@ declare function readFollowUpReceipt(part: ThinkChatPart): FollowUpReceipt | und
|
|
|
180
299
|
declare function thinkToolOutcome(part: ThinkChatPart): ThinkToolOutcome;
|
|
181
300
|
declare function displayUrl(url: string | undefined): string;
|
|
182
301
|
//#endregion
|
|
183
|
-
export {
|
|
302
|
+
export { isWorkspaceToolPart as C, workspaceToolError as E, isThinkChatActivityPart as S, thinkToolOutcome as T, isPartFailed as _, SessionContextToolName as a, isSessionContextToolPart as b, SkillToolPart as c, ThinkWorkspaceToolName as d, WorkspaceToolPart as f, isFetchToolPart as g, isExecuteToolPart as h, FollowUpReceipt as i, ThinkChatPart as l, isBrowserToolPart as m, ExecuteToolPart as n, SessionContextToolPart as o, displayUrl as p, FetchToolPart as r, ShellToolPart as s, BrowserToolPart as t, ThinkToolOutcome as u, isPartWorking as v, readFollowUpReceipt as w, isSkillToolPart as x, isSessionContextToolFailure as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ThinkExecutionRun } from "./ThinkExecutionRun-QzZVWX75.js";
|
|
2
|
-
import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-
|
|
2
|
+
import { i as WorkspaceAutomationInvocation } from "./WorkspaceAutomation-Dugk4RkK.js";
|
|
3
3
|
import { ParsedDeclaredSchedule, ThinkScheduledTask, ThinkScheduledTaskSchedule } from "@cloudflare/think";
|
|
4
4
|
//#region src/components/agents-sdk/ThinkSchedule.d.ts
|
|
5
5
|
/** App-owned identity for the Think agent that owns a schedule. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as WorkspaceConceptQueryOptions } from "./WorkspaceConcept-DqzfZWws.js";
|
|
2
|
-
import { n as WorkspaceConceptPanelProps, t as WorkspaceConceptFileProps } from "./workspace-concept-panel-
|
|
2
|
+
import { n as WorkspaceConceptPanelProps, t as WorkspaceConceptFileProps } from "./workspace-concept-panel-BC2W28pu.js";
|
|
3
3
|
import { a as ExecutionTrace, r as ExecutionGraph } from "./ExecutionBoard-DBj1Aiva.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { JSONValue } from "ai";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as AgentComputerApp } from "../../AgentComputer-BI8RsGzq.js";
|
|
2
2
|
import { a as ExecutionTrace, r as ExecutionGraph } from "../../ExecutionBoard-DBj1Aiva.js";
|
|
3
|
-
import { l as WorkspaceAutomationSource, x as WorkspaceAutomationTableRun } from "../../WorkspaceAutomation-
|
|
4
|
-
import { t as ThinkSchedule } from "../../ThinkSchedule-
|
|
3
|
+
import { l as WorkspaceAutomationSource, x as WorkspaceAutomationTableRun } from "../../WorkspaceAutomation-Dugk4RkK.js";
|
|
4
|
+
import { t as ThinkSchedule } from "../../ThinkSchedule-gDwDmWOF.js";
|
|
5
5
|
import { ComputerCalendarEvent, ComputerCalendarRange } from "./ComputerCalendar.js";
|
|
6
6
|
import { ThinkScheduleFormSchedule, ThinkScheduleFormValue } from "./ThinkScheduleForm.js";
|
|
7
7
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as AgentComputerApp } from "../../AgentComputer-BI8RsGzq.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o as EmployeeIdentity, r as EmployeeCompanion, s as EmployeeLocalAgents, u as EmployeePasskeyVault } from "../../EmployeeChrome-D8_6ZbLc.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
//#region src/components/agents-sdk/ComputerSettings.d.ts
|
|
5
5
|
/** Settings' panes, in sidebar order. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as WorkspaceNavigationAdapter } from "../../WorkspaceLink-C8HH2fMT.js";
|
|
2
2
|
import { t as AgentRun } from "../../AgentToolRunsContext-Br3jZ6Up.js";
|
|
3
|
-
import {
|
|
3
|
+
import { f as EmployeeShellProps, l as EmployeeModelSetup, p as EmployeeStatus, t as EmployeeBrand } from "../../EmployeeChrome-D8_6ZbLc.js";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
//#region src/components/agents-sdk/EmployeeApp.d.ts
|
|
6
6
|
export interface EmployeeAppRootProps extends EmployeeShellProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { E as PromptInputCommandComposerProps, M as PromptInputContextSelectorProps } from "../../PromptInput-DEwFMj6f.js";
|
|
2
2
|
import { AgentChatTranscriptProps } from "./AgentChat.js";
|
|
3
|
-
import { ConversationTabPickerProps } from "
|
|
3
|
+
import { i as ConversationTabPickerProps } from "../../ConversationTabPicker-C_hMt0GY.js";
|
|
4
4
|
import { SetupChecklistGroupProps } from "../general-purpose/SetupChecklist.js";
|
|
5
5
|
import { McpServerPickerItemsProps } from "./McpServerPicker.js";
|
|
6
6
|
import { EmployeeStartScreenProps } from "./EmployeeStartScreen.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { EmployeeBrand, EmployeeChrome, EmployeeCompanion, EmployeeDestination,
|
|
1
|
+
import { a as EmployeeFollow, c as EmployeeMenuProps, d as EmployeeRenderLink, f as EmployeeShellProps, h as EmployeeWorkbenchItem, i as EmployeeDestination, l as EmployeeModelSetup, m as EmployeeView, n as EmployeeChrome, o as EmployeeIdentity, p as EmployeeStatus, r as EmployeeCompanion, s as EmployeeLocalAgents, t as EmployeeBrand, u as EmployeePasskeyVault } from "../../EmployeeChrome-D8_6ZbLc.js";
|
|
2
|
+
export { EmployeeBrand, EmployeeChrome, EmployeeCompanion, EmployeeDestination, EmployeeFollow, EmployeeIdentity, EmployeeLocalAgents, EmployeeMenuProps, EmployeeModelSetup, EmployeePasskeyVault, EmployeeRenderLink, EmployeeShellProps, EmployeeStatus, EmployeeView, EmployeeWorkbenchItem };
|
|
@@ -141,8 +141,8 @@ function MenuSwitchItem(t0) {
|
|
|
141
141
|
}
|
|
142
142
|
/** Employee settings are host-owned state; the menu stores only dialog visibility. */
|
|
143
143
|
function EmployeeMenu(t0) {
|
|
144
|
-
const $ = c(
|
|
145
|
-
const { renderLink, view: t1, threadId, identity, onAIProvider, onSignOut,
|
|
144
|
+
const $ = c(87);
|
|
145
|
+
const { renderLink, view: t1, threadId, identity, onAIProvider, onSignOut, companion, localAgents, passkeys, follow, workbenchNavigation: t2, navigation } = t0;
|
|
146
146
|
const view = t1 === void 0 ? "chat" : t1;
|
|
147
147
|
let t3;
|
|
148
148
|
if ($[0] !== t2) {
|
|
@@ -471,18 +471,21 @@ function EmployeeMenu(t0) {
|
|
|
471
471
|
} else t32 = $[59];
|
|
472
472
|
let t33;
|
|
473
473
|
if ($[60] !== preference || $[61] !== t26) {
|
|
474
|
-
t33 = /* @__PURE__ */ jsxs(
|
|
475
|
-
className: "employee-menu__appearance
|
|
476
|
-
children: [
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
474
|
+
t33 = /* @__PURE__ */ jsxs(Menu.Group, {
|
|
475
|
+
className: "employee-menu__appearance",
|
|
476
|
+
children: [t24, /* @__PURE__ */ jsxs("div", {
|
|
477
|
+
className: "employee-menu__appearance-row",
|
|
478
|
+
children: [t25, /* @__PURE__ */ jsxs(Menu.RadioGroup, {
|
|
479
|
+
"aria-label": "Theme",
|
|
480
|
+
className: "employee-menu__appearance-options",
|
|
481
|
+
value: preference,
|
|
482
|
+
onValueChange: t26,
|
|
483
|
+
children: [
|
|
484
|
+
t28,
|
|
485
|
+
t30,
|
|
486
|
+
t32
|
|
487
|
+
]
|
|
488
|
+
})]
|
|
486
489
|
})]
|
|
487
490
|
});
|
|
488
491
|
$[60] = preference;
|
|
@@ -490,60 +493,8 @@ function EmployeeMenu(t0) {
|
|
|
490
493
|
$[62] = t33;
|
|
491
494
|
} else t33 = $[62];
|
|
492
495
|
let t34;
|
|
493
|
-
if ($[63] !==
|
|
494
|
-
t34 =
|
|
495
|
-
className: "employee-menu__appearance-row",
|
|
496
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
497
|
-
className: "employee-menu__appearance-label",
|
|
498
|
-
children: "Display"
|
|
499
|
-
}), /* @__PURE__ */ jsxs(Menu.RadioGroup, {
|
|
500
|
-
"aria-label": "Display",
|
|
501
|
-
className: "employee-menu__appearance-options",
|
|
502
|
-
value: display.mode,
|
|
503
|
-
onValueChange: (value_0) => {
|
|
504
|
-
if (value_0 === "sidepanel" || value_0 === "tab") display.setMode(value_0);
|
|
505
|
-
},
|
|
506
|
-
children: [/* @__PURE__ */ jsx(MenuHint, {
|
|
507
|
-
hint: "Open Rook in the side panel when you click the extension icon.",
|
|
508
|
-
children: /* @__PURE__ */ jsx(Menu.RadioItem, {
|
|
509
|
-
value: "sidepanel",
|
|
510
|
-
className: "employee-menu__display-option",
|
|
511
|
-
closeOnClick: false,
|
|
512
|
-
render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
|
|
513
|
-
children: "Side panel"
|
|
514
|
-
})
|
|
515
|
-
}), /* @__PURE__ */ jsx(MenuHint, {
|
|
516
|
-
hint: "Open Rook in a full browser tab when you click the extension icon.",
|
|
517
|
-
children: /* @__PURE__ */ jsx(Menu.RadioItem, {
|
|
518
|
-
value: "tab",
|
|
519
|
-
className: "employee-menu__display-option",
|
|
520
|
-
closeOnClick: false,
|
|
521
|
-
render: /* @__PURE__ */ jsx(Tooltip.Trigger, { render: /* @__PURE__ */ jsx("div", {}) }),
|
|
522
|
-
children: "Full tab"
|
|
523
|
-
})
|
|
524
|
-
})]
|
|
525
|
-
})]
|
|
526
|
-
}) : null;
|
|
527
|
-
$[63] = display;
|
|
528
|
-
$[64] = t34;
|
|
529
|
-
} else t34 = $[64];
|
|
530
|
-
let t35;
|
|
531
|
-
if ($[65] !== t33 || $[66] !== t34) {
|
|
532
|
-
t35 = /* @__PURE__ */ jsxs(Menu.Group, {
|
|
533
|
-
className: "employee-menu__appearance",
|
|
534
|
-
children: [
|
|
535
|
-
t24,
|
|
536
|
-
t33,
|
|
537
|
-
t34
|
|
538
|
-
]
|
|
539
|
-
});
|
|
540
|
-
$[65] = t33;
|
|
541
|
-
$[66] = t34;
|
|
542
|
-
$[67] = t35;
|
|
543
|
-
} else t35 = $[67];
|
|
544
|
-
let t36;
|
|
545
|
-
if ($[68] !== onSignOut) {
|
|
546
|
-
t36 = onSignOut ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsx(MenuHint, {
|
|
496
|
+
if ($[63] !== onSignOut) {
|
|
497
|
+
t34 = onSignOut ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Menu.Separator, {}), /* @__PURE__ */ jsx(MenuHint, {
|
|
547
498
|
hint: "Sign out of your account on this device.",
|
|
548
499
|
children: /* @__PURE__ */ jsxs(Menu.Item, {
|
|
549
500
|
onClick: onSignOut,
|
|
@@ -551,12 +502,12 @@ function EmployeeMenu(t0) {
|
|
|
551
502
|
children: [/* @__PURE__ */ jsx(ArrowUpRightIcon, {}), "Sign out"]
|
|
552
503
|
})
|
|
553
504
|
})] }) : null;
|
|
554
|
-
$[
|
|
555
|
-
$[
|
|
556
|
-
} else
|
|
557
|
-
let
|
|
558
|
-
if ($[
|
|
559
|
-
|
|
505
|
+
$[63] = onSignOut;
|
|
506
|
+
$[64] = t34;
|
|
507
|
+
} else t34 = $[64];
|
|
508
|
+
let t35;
|
|
509
|
+
if ($[65] !== t11 || $[66] !== t16 || $[67] !== t17 || $[68] !== t18 || $[69] !== t19 || $[70] !== t20 || $[71] !== t21 || $[72] !== t22 || $[73] !== t33 || $[74] !== t34 || $[75] !== t9) {
|
|
510
|
+
t35 = /* @__PURE__ */ jsx(Menu.Portal, { children: /* @__PURE__ */ jsx(Menu.Positioner, {
|
|
560
511
|
side: "bottom",
|
|
561
512
|
align: "end",
|
|
562
513
|
sideOffset: 4,
|
|
@@ -573,51 +524,51 @@ function EmployeeMenu(t0) {
|
|
|
573
524
|
t21,
|
|
574
525
|
t22,
|
|
575
526
|
t23,
|
|
576
|
-
|
|
577
|
-
|
|
527
|
+
t33,
|
|
528
|
+
t34
|
|
578
529
|
]
|
|
579
530
|
})
|
|
580
531
|
}) });
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
532
|
+
$[65] = t11;
|
|
533
|
+
$[66] = t16;
|
|
534
|
+
$[67] = t17;
|
|
535
|
+
$[68] = t18;
|
|
536
|
+
$[69] = t19;
|
|
537
|
+
$[70] = t20;
|
|
538
|
+
$[71] = t21;
|
|
539
|
+
$[72] = t22;
|
|
540
|
+
$[73] = t33;
|
|
541
|
+
$[74] = t34;
|
|
542
|
+
$[75] = t9;
|
|
543
|
+
$[76] = t35;
|
|
544
|
+
} else t35 = $[76];
|
|
545
|
+
let t36;
|
|
546
|
+
if ($[77] !== t35 || $[78] !== t8) {
|
|
547
|
+
t36 = /* @__PURE__ */ jsxs(Menu.Root, { children: [t8, t35] });
|
|
548
|
+
$[77] = t35;
|
|
549
|
+
$[78] = t8;
|
|
590
550
|
$[79] = t36;
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if ($[82] !== t37 || $[83] !== t8) {
|
|
596
|
-
t38 = /* @__PURE__ */ jsxs(Menu.Root, { children: [t8, t37] });
|
|
597
|
-
$[82] = t37;
|
|
598
|
-
$[83] = t8;
|
|
599
|
-
$[84] = t38;
|
|
600
|
-
} else t38 = $[84];
|
|
601
|
-
let t39;
|
|
602
|
-
if ($[85] !== identity || $[86] !== identityOpenAt || $[87] !== location) {
|
|
603
|
-
t39 = identity ? /* @__PURE__ */ jsx(IdentityDialog, {
|
|
551
|
+
} else t36 = $[79];
|
|
552
|
+
let t37;
|
|
553
|
+
if ($[80] !== identity || $[81] !== identityOpenAt || $[82] !== location) {
|
|
554
|
+
t37 = identity ? /* @__PURE__ */ jsx(IdentityDialog, {
|
|
604
555
|
identity,
|
|
605
556
|
open: identityOpenAt === location,
|
|
606
557
|
onOpenChange: (open) => setIdentityOpenAt(open ? location : null)
|
|
607
558
|
}) : null;
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
$[
|
|
612
|
-
} else
|
|
613
|
-
let
|
|
614
|
-
if ($[
|
|
615
|
-
|
|
616
|
-
$[
|
|
617
|
-
$[
|
|
618
|
-
$[
|
|
619
|
-
} else
|
|
620
|
-
return
|
|
559
|
+
$[80] = identity;
|
|
560
|
+
$[81] = identityOpenAt;
|
|
561
|
+
$[82] = location;
|
|
562
|
+
$[83] = t37;
|
|
563
|
+
} else t37 = $[83];
|
|
564
|
+
let t38;
|
|
565
|
+
if ($[84] !== t36 || $[85] !== t37) {
|
|
566
|
+
t38 = /* @__PURE__ */ jsxs(Fragment, { children: [t36, t37] });
|
|
567
|
+
$[84] = t36;
|
|
568
|
+
$[85] = t37;
|
|
569
|
+
$[86] = t38;
|
|
570
|
+
} else t38 = $[86];
|
|
571
|
+
return t38;
|
|
621
572
|
}
|
|
622
573
|
function IdentityDialog(t0) {
|
|
623
574
|
const $ = c(33);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as WorkspaceAutomation } from "../../WorkspaceAutomation-
|
|
3
|
-
import { t as ThinkSchedule } from "../../ThinkSchedule-
|
|
1
|
+
import { c as EmployeeMenuProps } from "../../EmployeeChrome-D8_6ZbLc.js";
|
|
2
|
+
import { t as WorkspaceAutomation } from "../../WorkspaceAutomation-Dugk4RkK.js";
|
|
3
|
+
import { t as ThinkSchedule } from "../../ThinkSchedule-gDwDmWOF.js";
|
|
4
4
|
import { ThinkScheduleActionsRootProps } from "./ThinkScheduleActions.js";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
//#region src/components/agents-sdk/EmployeeSchedules.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { J as PromptInputMessage } from "../../PromptInput-DEwFMj6f.js";
|
|
2
|
-
import { i as EmployeeDestination, t as EmployeeBrand } from "../../EmployeeChrome-
|
|
2
|
+
import { i as EmployeeDestination, t as EmployeeBrand } from "../../EmployeeChrome-D8_6ZbLc.js";
|
|
3
3
|
import { SetupChecklistGroupProps } from "../general-purpose/SetupChecklist.js";
|
|
4
4
|
import { n as McpPluginCatalogProps } from "../../McpPluginCatalog-SQNOytXQ.js";
|
|
5
5
|
import { r as WorkspaceMountManagerProps } from "../../WorkspaceMountManager-DM384Cn6.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ThinkSchedule } from "../../ThinkSchedule-
|
|
1
|
+
import { t as ThinkSchedule } from "../../ThinkSchedule-gDwDmWOF.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
//#region src/components/agents-sdk/ManagerOffice.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as EmployeeShellProps } from "../../EmployeeChrome-D8_6ZbLc.js";
|
|
2
2
|
import { ManagerOfficeConnectedEmployee, ManagerOfficeDestination, ManagerOfficeEmployee } from "./ManagerOffice.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
//#region src/components/agents-sdk/ManagerOfficeScreens.d.ts
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import { D as PromptInputCommandDefinition } from "../../PromptInput-DEwFMj6f.js";
|
|
2
|
-
import { ConversationTabPickerItem } from "
|
|
2
|
+
import { r as ConversationTabPickerItem } from "../../ConversationTabPicker-C_hMt0GY.js";
|
|
3
3
|
import { MCPServersState } from "agents";
|
|
4
|
-
import {
|
|
4
|
+
import { Skill, SkillCatalogEntry } from "agents/skills";
|
|
5
5
|
//#region src/components/agents-sdk/PromptInputCommands.d.ts
|
|
6
6
|
/** Project whole upstream Agents MCP state into composer mention commands. */
|
|
7
7
|
export declare function mcpPromptInputCommands(mcp: MCPServersState): PromptInputCommandDefinition[];
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A skill as a host lists it: upstream `Skill`'s name and description and the
|
|
10
|
+
* `SkillCatalogEntry` source that provided it, without the instructions body.
|
|
11
|
+
* The name widens upstream's branded `SkillName` to `string`, because rows
|
|
12
|
+
* reach the UI through RPC or synchronized state, where the brand is gone.
|
|
13
|
+
*/
|
|
14
|
+
export type SkillSummary = Pick<Skill, "description"> & Pick<SkillCatalogEntry, "sourceId"> & {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
};
|
|
17
|
+
/** Project host skill summaries into composer slash commands. */
|
|
18
|
+
export declare function skillPromptInputCommands(skills: readonly SkillSummary[]): PromptInputCommandDefinition[];
|
|
10
19
|
/** Project host-resolved browser tabs into composer `@` mentions. */
|
|
11
20
|
export declare function tabPromptInputCommands(tabs: readonly ConversationTabPickerItem[]): PromptInputCommandDefinition[];
|
|
12
21
|
//#endregion
|
|
@@ -47,10 +47,10 @@ function mcpPromptInputCommands(mcp) {
|
|
|
47
47
|
}];
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
/** Project
|
|
50
|
+
/** Project host skill summaries into composer slash commands. */
|
|
51
51
|
function skillPromptInputCommands(skills) {
|
|
52
52
|
return skills.map((skill) => ({
|
|
53
|
-
id: `skill:${skill.sourceId
|
|
53
|
+
id: `skill:${skill.sourceId}:${skill.name}`,
|
|
54
54
|
value: skill.name,
|
|
55
55
|
label: skill.name,
|
|
56
56
|
description: skill.description,
|
|
@@ -60,10 +60,8 @@ function skillPromptInputCommands(skills) {
|
|
|
60
60
|
label: skill.name
|
|
61
61
|
}),
|
|
62
62
|
icon: /* @__PURE__ */ jsx(BoxIcon, {}),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
meta: skill.sourceId
|
|
66
|
-
} : {},
|
|
63
|
+
keywords: [skill.sourceId],
|
|
64
|
+
meta: skill.sourceId,
|
|
67
65
|
group: "Skills"
|
|
68
66
|
}));
|
|
69
67
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { J as PromptInputMessage } from "../../PromptInput-DEwFMj6f.js";
|
|
2
2
|
import { i as AgentMessageRenderPartContext } from "../../AgentMessageParts-BtWwiE4f.js";
|
|
3
3
|
import { AgentChatMessageContentProps, AgentChatRootProps } from "./AgentChat.js";
|
|
4
|
-
import { o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, t as ThinkChatActivity } from "../../ThinkChatActivity-
|
|
4
|
+
import { o as createThinkChatActivityRenderer, r as ThinkChatActivityRendererOptions, t as ThinkChatActivity } from "../../ThinkChatActivity-Cb47dKAW.js";
|
|
5
5
|
import { i as ThinkChatValue } from "../../ThinkChatContext-DQ6M2VlJ.js";
|
|
6
6
|
import * as React from "react";
|
|
7
7
|
import { ChatStatus, UIMessage } from "ai";
|