@truefoundry/trueforge-ui 0.3.0-rc.0 → 0.3.0-rc.10
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/CHANGELOG.md +191 -0
- package/README.md +35 -12
- package/dist/AgentCodeSnippets-RJBB4DDE.js +89 -0
- package/dist/AgentCodeSnippets-RJBB4DDE.js.map +1 -0
- package/dist/AgentMetricChart-UPGSJ2WP.js +15 -0
- package/dist/AgentOverview-U5WIQXZN.js +169 -0
- package/dist/AgentOverview-U5WIQXZN.js.map +1 -0
- package/dist/AgentSessionEventTimeline-GRGIQTRE.js +88 -0
- package/dist/AgentSessionEventTimeline-GRGIQTRE.js.map +1 -0
- package/dist/AgentSessionEventTimelineChart-GNF4VOUT.js +591 -0
- package/dist/AgentSessionEventTimelineChart-GNF4VOUT.js.map +1 -0
- package/dist/AgentSessions-5OTF2BUW.js +323 -0
- package/dist/AgentSessions-5OTF2BUW.js.map +1 -0
- package/dist/{ConnectorSettings-FXQ5B7TN.js → ConnectorSettings-HDKGLDCY.js} +163 -125
- package/dist/ConnectorSettings-HDKGLDCY.js.map +1 -0
- package/dist/{DockLayout-LBNQJZNF.js → DockLayout-D2FPQCAL.js} +11 -10
- package/dist/{DockLayout-LBNQJZNF.js.map → DockLayout-D2FPQCAL.js.map} +1 -1
- package/dist/DrawerLayout-HUV7RAWL.js +186 -0
- package/dist/DrawerLayout-HUV7RAWL.js.map +1 -0
- package/dist/{ModelSettings-4L4LOQJA.js → ModelSettings-VNQ7HPKH.js} +23 -27
- package/dist/ModelSettings-VNQ7HPKH.js.map +1 -0
- package/dist/OpenUiFenceBlock-KPZFLUSC.js +9 -0
- package/dist/OpenUiFenceBlock-KPZFLUSC.js.map +1 -0
- package/dist/{SandboxSettings-Z4ZG6ZX4.js → SandboxSettings-ZLXGMFBF.js} +18 -20
- package/dist/SandboxSettings-ZLXGMFBF.js.map +1 -0
- package/dist/SchedulesPage-QKYI2Z3A.js +15 -0
- package/dist/SchedulesPage-QKYI2Z3A.js.map +1 -0
- package/dist/{SettingsBuilder-WF7ZWKQW.js → SettingsBuilder-RVVYXOJW.js} +27 -23
- package/dist/SettingsBuilder-RVVYXOJW.js.map +1 -0
- package/dist/ShellRouteSync-SJXFKUAJ.js +390 -0
- package/dist/ShellRouteSync-SJXFKUAJ.js.map +1 -0
- package/dist/SidebarLayout-KYA76FQ7.js +330 -0
- package/dist/SidebarLayout-KYA76FQ7.js.map +1 -0
- package/dist/{SkillSettings-3EPPC3IT.js → SkillSettings-7OHT7FPI.js} +25 -21
- package/dist/SkillSettings-7OHT7FPI.js.map +1 -0
- package/dist/{TrueForgeUIWithRouter-NZ4FGPE4.js → TrueForgeUIWithRouter-LKG4XLW6.js} +14 -10
- package/dist/{TrueForgeUIWithRouter-NZ4FGPE4.js.map → TrueForgeUIWithRouter-LKG4XLW6.js.map} +1 -1
- package/dist/{WidgetLayout-3QZ357FL.js → WidgetLayout-W2RGGOQ3.js} +17 -13
- package/dist/WidgetLayout-W2RGGOQ3.js.map +1 -0
- package/dist/chunk-2GIZY3JJ.js +1062 -0
- package/dist/chunk-2GIZY3JJ.js.map +1 -0
- package/dist/chunk-2QTH6JHX.js +217 -0
- package/dist/chunk-2QTH6JHX.js.map +1 -0
- package/dist/{chunk-FJ5RSSMA.js → chunk-3ZW74FHC.js} +118 -164
- package/dist/chunk-3ZW74FHC.js.map +1 -0
- package/dist/chunk-67ZO7Z2W.js +184 -0
- package/dist/chunk-67ZO7Z2W.js.map +1 -0
- package/dist/{chunk-CFLVPV5M.js → chunk-7AAO4UDQ.js} +8 -2
- package/dist/chunk-7AAO4UDQ.js.map +1 -0
- package/dist/{chunk-B52K63AW.js → chunk-CG75X77Q.js} +2 -2
- package/dist/chunk-DJUFS2BW.js +27 -0
- package/dist/chunk-DJUFS2BW.js.map +1 -0
- package/dist/chunk-DPPOEFBD.js +517 -0
- package/dist/chunk-DPPOEFBD.js.map +1 -0
- package/dist/chunk-EPAL2HD5.js +1629 -0
- package/dist/chunk-EPAL2HD5.js.map +1 -0
- package/dist/chunk-GG23N2GW.js +15018 -0
- package/dist/chunk-GG23N2GW.js.map +1 -0
- package/dist/chunk-JCL3Q7RW.js +587 -0
- package/dist/chunk-JCL3Q7RW.js.map +1 -0
- package/dist/chunk-JKEBMGLH.js +682 -0
- package/dist/chunk-JKEBMGLH.js.map +1 -0
- package/dist/chunk-KSGNKS2D.js +296 -0
- package/dist/chunk-KSGNKS2D.js.map +1 -0
- package/dist/{chunk-WREC7D54.js → chunk-PCI6VMB5.js} +268 -48
- package/dist/chunk-PCI6VMB5.js.map +1 -0
- package/dist/chunk-PQ7VWBQQ.js +121 -0
- package/dist/chunk-PQ7VWBQQ.js.map +1 -0
- package/dist/chunk-RDXBMTP5.js +32 -0
- package/dist/chunk-RDXBMTP5.js.map +1 -0
- package/dist/chunk-T6QQV5LK.js +238 -0
- package/dist/chunk-T6QQV5LK.js.map +1 -0
- package/dist/chunk-Y6S4OVVQ.js +16 -0
- package/dist/chunk-Y6S4OVVQ.js.map +1 -0
- package/dist/{createTrueFoundryServer-B72bU-J7.d.ts → createTrueFoundryServer-B_FYhSdn.d.ts} +18 -4
- package/dist/index.d.ts +1287 -46
- package/dist/index.js +266 -63
- package/dist/index.js.map +1 -1
- package/dist/plugins/trueforge-agent-server-adapter/index.d.ts +590 -11
- package/dist/plugins/trueforge-agent-server-adapter/index.js +607 -204
- package/dist/plugins/trueforge-agent-server-adapter/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +10 -8
- package/dist/ConnectorSettings-FXQ5B7TN.js.map +0 -1
- package/dist/DrawerLayout-Q6UK4VMI.js +0 -159
- package/dist/DrawerLayout-Q6UK4VMI.js.map +0 -1
- package/dist/ModelSettings-4L4LOQJA.js.map +0 -1
- package/dist/OpenUiFenceBlock-6UIIAVBX.js +0 -9
- package/dist/SandboxSettings-Z4ZG6ZX4.js.map +0 -1
- package/dist/SettingsBuilder-WF7ZWKQW.js.map +0 -1
- package/dist/ShellRouteSync-T4WLY57Q.js +0 -172
- package/dist/ShellRouteSync-T4WLY57Q.js.map +0 -1
- package/dist/SidebarLayout-3WZ3CVON.js +0 -256
- package/dist/SidebarLayout-3WZ3CVON.js.map +0 -1
- package/dist/SkillSettings-3EPPC3IT.js.map +0 -1
- package/dist/WidgetLayout-3QZ357FL.js.map +0 -1
- package/dist/chunk-36KOSC2J.js +0 -567
- package/dist/chunk-36KOSC2J.js.map +0 -1
- package/dist/chunk-3S6KHO7H.js +0 -2121
- package/dist/chunk-3S6KHO7H.js.map +0 -1
- package/dist/chunk-7L63OK3O.js +0 -91
- package/dist/chunk-7L63OK3O.js.map +0 -1
- package/dist/chunk-CFLVPV5M.js.map +0 -1
- package/dist/chunk-FJ5RSSMA.js.map +0 -1
- package/dist/chunk-OSV3HI5M.js +0 -6891
- package/dist/chunk-OSV3HI5M.js.map +0 -1
- package/dist/chunk-WQULF5AT.js +0 -460
- package/dist/chunk-WQULF5AT.js.map +0 -1
- package/dist/chunk-WREC7D54.js.map +0 -1
- package/dist/chunk-YIWUG6MC.js +0 -101
- package/dist/chunk-YIWUG6MC.js.map +0 -1
- package/dist/chunk-ZXOADNF3.js +0 -75
- package/dist/chunk-ZXOADNF3.js.map +0 -1
- /package/dist/{OpenUiFenceBlock-6UIIAVBX.js.map → AgentMetricChart-UPGSJ2WP.js.map} +0 -0
- /package/dist/{chunk-B52K63AW.js.map → chunk-CG75X77Q.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,35 +1,28 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
ThreadListContainer
|
|
4
|
+
} from "./chunk-DPPOEFBD.js";
|
|
5
|
+
import {
|
|
6
|
+
ApprovalNavContainer,
|
|
4
7
|
AskUserContainer,
|
|
5
|
-
AssistantMessageContainer,
|
|
6
|
-
AssistantTextContainer,
|
|
7
|
-
ComposerAttachmentPickerContainer,
|
|
8
|
-
ComposerAttachmentsContainer,
|
|
9
8
|
ComposerContainer,
|
|
10
9
|
CustomActionContainer,
|
|
11
10
|
HistoryLoaderContainer,
|
|
12
11
|
McpAuthContainer,
|
|
13
|
-
MessageAttachmentsContainer,
|
|
14
|
-
ReasoningContainer,
|
|
15
12
|
ResumeUnavailableContainer,
|
|
16
13
|
Thread,
|
|
17
14
|
ThreadContainer,
|
|
18
|
-
ThreadListContainer,
|
|
19
|
-
ToolApprovalContainer,
|
|
20
|
-
ToolCallContainer,
|
|
21
|
-
ToolCallContentBlockContainer,
|
|
22
15
|
UserEditComposerContainer,
|
|
23
|
-
UserMessageContainer,
|
|
24
|
-
computeAgentStepsSplit,
|
|
25
16
|
threadHasPendingMcpAuth,
|
|
17
|
+
useApprovalNav,
|
|
26
18
|
useComposerPauseView
|
|
27
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JKEBMGLH.js";
|
|
28
20
|
import {
|
|
29
21
|
ServerInitLoader,
|
|
30
22
|
TrueForgeUIShell,
|
|
31
23
|
TrueFoundryChatProvider
|
|
32
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PCI6VMB5.js";
|
|
25
|
+
import "./chunk-DJUFS2BW.js";
|
|
33
26
|
import {
|
|
34
27
|
ComposerBusyProvider,
|
|
35
28
|
CustomActionRenderersProvider,
|
|
@@ -37,17 +30,63 @@ import {
|
|
|
37
30
|
useOptionalCustomActionRenderers
|
|
38
31
|
} from "./chunk-BSIPI3KV.js";
|
|
39
32
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} from "./chunk-M6MHLVSO.js";
|
|
33
|
+
AgentMetricChart
|
|
34
|
+
} from "./chunk-PQ7VWBQQ.js";
|
|
43
35
|
import {
|
|
44
36
|
createTrueFoundryServer
|
|
45
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7AAO4UDQ.js";
|
|
38
|
+
import "./chunk-Y6S4OVVQ.js";
|
|
39
|
+
import {
|
|
40
|
+
IS_CREATE_AGENT_METADATA_KEY,
|
|
41
|
+
isCreateAgentMetadataValue,
|
|
42
|
+
readSessionIsCreateAgent,
|
|
43
|
+
sessionIsCreateAgent
|
|
44
|
+
} from "./chunk-RDXBMTP5.js";
|
|
45
|
+
import {
|
|
46
|
+
ScheduleFormDrawer,
|
|
47
|
+
ScheduleFormFields,
|
|
48
|
+
ScheduleLastRunsCell,
|
|
49
|
+
ScheduleRunChip,
|
|
50
|
+
ScheduleStatusBadge,
|
|
51
|
+
SchedulesPage,
|
|
52
|
+
TestScheduleScreen
|
|
53
|
+
} from "./chunk-EPAL2HD5.js";
|
|
46
54
|
import {
|
|
55
|
+
AgentCodeBlock,
|
|
56
|
+
AgentConfigEditors,
|
|
57
|
+
AgentConfigPanel,
|
|
58
|
+
AgentConfigSection,
|
|
59
|
+
AgentCustomParametersEditor,
|
|
60
|
+
AgentDetailsHeader,
|
|
61
|
+
AgentDetailsPage,
|
|
62
|
+
AgentDetailsTabs,
|
|
63
|
+
AgentDetailsUnavailable,
|
|
64
|
+
AgentInstructionsDrawer,
|
|
65
|
+
AgentMcpEditorContent,
|
|
66
|
+
AgentMetricCard,
|
|
67
|
+
AgentMetricStatistics,
|
|
68
|
+
AgentMetricsContainer,
|
|
69
|
+
AgentMetricsTimeRangeFilter,
|
|
70
|
+
AgentMetricsView,
|
|
71
|
+
AgentModelConfigModal,
|
|
72
|
+
AgentModelEditorContent,
|
|
73
|
+
AgentModelSettingsContent,
|
|
74
|
+
AgentOverviewCard,
|
|
75
|
+
AgentResourceConfigModal,
|
|
76
|
+
AgentResourceEditorContent,
|
|
77
|
+
AgentRuntimeConfigDrawer,
|
|
78
|
+
AgentRuntimeConfigFields,
|
|
79
|
+
AgentRuntimeEditorContent,
|
|
80
|
+
AgentSessionsFilters,
|
|
81
|
+
AgentSkillsEditorContent,
|
|
47
82
|
AgentStepsCard,
|
|
83
|
+
AgentStepsContainer,
|
|
48
84
|
AgentsLibrary,
|
|
49
85
|
AgentsLibraryButton,
|
|
86
|
+
ApprovalNavBanner,
|
|
50
87
|
AssistantMessageBubble,
|
|
88
|
+
AssistantMessageContainer,
|
|
89
|
+
AssistantTextContainer,
|
|
51
90
|
AttachmentCard,
|
|
52
91
|
AttachmentPickerButton,
|
|
53
92
|
AttachmentPreviewDialog,
|
|
@@ -56,14 +95,21 @@ import {
|
|
|
56
95
|
AvatarImage,
|
|
57
96
|
BottomSheet,
|
|
58
97
|
BrandLogo,
|
|
98
|
+
Button,
|
|
59
99
|
CenteredModal,
|
|
60
100
|
ChatFileDownload,
|
|
61
101
|
ClearChatButton,
|
|
62
102
|
CodeEditor,
|
|
103
|
+
ComposerAttachmentPickerContainer,
|
|
104
|
+
ComposerAttachmentsContainer,
|
|
63
105
|
ComposerLeftSection,
|
|
64
106
|
ComposerRightSection,
|
|
65
107
|
ComposerSendButton,
|
|
66
108
|
ComposerShell,
|
|
109
|
+
DEFAULT_TABLE_PAGE_SIZE,
|
|
110
|
+
DraftAgentConfigTrigger,
|
|
111
|
+
DraftCapabilitiesPanel,
|
|
112
|
+
DraftComposerActionsMenu,
|
|
67
113
|
DraftComposerLeftSection,
|
|
68
114
|
DraftComposerRightSection,
|
|
69
115
|
DraftCompositeSelector,
|
|
@@ -72,23 +118,42 @@ import {
|
|
|
72
118
|
MCP_AUTH_POPUP_CHANNEL,
|
|
73
119
|
Markdown,
|
|
74
120
|
MessageActionBar,
|
|
121
|
+
MessageAttachmentsContainer,
|
|
75
122
|
MessageErrorBanner,
|
|
76
123
|
MessageGroup,
|
|
77
124
|
MessageIndicator,
|
|
78
125
|
MessageListSkeleton,
|
|
79
126
|
MessageTimestamp,
|
|
80
127
|
MonacoEditorCore,
|
|
128
|
+
PermissionGuard,
|
|
129
|
+
PopoverSelect,
|
|
130
|
+
ReasoningContainer,
|
|
131
|
+
ResponsiveDropdownMenu,
|
|
81
132
|
ResumeUnavailable,
|
|
82
133
|
SandboxArtifactDownload,
|
|
83
134
|
SandboxToolCallCard,
|
|
84
135
|
SaveAgentButton,
|
|
136
|
+
SaveAgentForm,
|
|
137
|
+
SchedulesButton,
|
|
85
138
|
ScrollToBottomButton,
|
|
86
139
|
SelectAgentEmptyState,
|
|
140
|
+
SessionsBrowserButton,
|
|
141
|
+
SessionsPage,
|
|
87
142
|
ShellActionsActionSlot,
|
|
143
|
+
SideDrawer,
|
|
88
144
|
SlotsProvider,
|
|
89
145
|
SubAgentCard,
|
|
90
146
|
Switch,
|
|
91
147
|
SyntaxHighlighter,
|
|
148
|
+
TABLE_PAGE_SIZE_OPTIONS,
|
|
149
|
+
Table,
|
|
150
|
+
TableBody,
|
|
151
|
+
TableCell,
|
|
152
|
+
TableHead,
|
|
153
|
+
TableHeader,
|
|
154
|
+
TablePagination,
|
|
155
|
+
TableRow,
|
|
156
|
+
TableTokenPagination,
|
|
92
157
|
ThreadComposerAreaShell,
|
|
93
158
|
ThreadListEmptyState,
|
|
94
159
|
ThreadListNewButton,
|
|
@@ -101,48 +166,71 @@ import {
|
|
|
101
166
|
ToastStack,
|
|
102
167
|
ToasterProvider,
|
|
103
168
|
ToolApprovalBar,
|
|
169
|
+
ToolApprovalContainer,
|
|
104
170
|
ToolCallCard,
|
|
171
|
+
ToolCallContainer,
|
|
105
172
|
ToolCallContentBlock,
|
|
173
|
+
ToolCallContentBlockContainer,
|
|
106
174
|
ToolGroupCard,
|
|
107
175
|
USER_MESSAGE_ATTACHMENT_PREVIEW_REM,
|
|
176
|
+
UserAvatar,
|
|
108
177
|
UserMessageActionBar,
|
|
109
178
|
UserMessageBubble,
|
|
179
|
+
UserMessageContainer,
|
|
110
180
|
UserMessageEdit,
|
|
111
181
|
WelcomeScreen,
|
|
182
|
+
computeAgentStepsSplit,
|
|
112
183
|
defaultSlots,
|
|
184
|
+
findSubAgentAncestorsForApproval,
|
|
113
185
|
preloadMarkdownOpenUI,
|
|
114
186
|
resolveBrandChrome,
|
|
115
187
|
useBrandName,
|
|
188
|
+
useCanCreateAgent,
|
|
116
189
|
useMCPAuth,
|
|
190
|
+
useOptionalCurrentUser,
|
|
191
|
+
useResourcePermissions,
|
|
117
192
|
useSlot,
|
|
118
193
|
useThemeMode,
|
|
119
194
|
useToaster,
|
|
120
195
|
useToasterOptional
|
|
121
|
-
} from "./chunk-
|
|
196
|
+
} from "./chunk-GG23N2GW.js";
|
|
197
|
+
import "./chunk-T6QQV5LK.js";
|
|
122
198
|
import {
|
|
123
199
|
DraftCatalogProvider,
|
|
124
200
|
Icon,
|
|
125
|
-
getErrorMessage,
|
|
126
201
|
registerIcons,
|
|
127
202
|
useDraftCatalog
|
|
128
|
-
} from "./chunk-
|
|
203
|
+
} from "./chunk-3ZW74FHC.js";
|
|
129
204
|
import {
|
|
130
205
|
DEFAULT_AGENT_CONFIG,
|
|
131
206
|
ServerProvider,
|
|
132
207
|
ShellModeProvider,
|
|
208
|
+
getErrorMessage,
|
|
133
209
|
libraryAgentId,
|
|
210
|
+
shellIsCreateAgent,
|
|
134
211
|
shellIsMutable,
|
|
212
|
+
useAgentMetricsServer,
|
|
213
|
+
useAgentSessionsServer,
|
|
135
214
|
useCatalogServer,
|
|
215
|
+
useOptionalAgentMetricsServer,
|
|
216
|
+
useOptionalAgentSessionsServer,
|
|
136
217
|
useOptionalCatalogServer,
|
|
218
|
+
useOptionalPermissionsServer,
|
|
219
|
+
useOptionalScheduleServer,
|
|
137
220
|
useOptionalServer,
|
|
138
221
|
useOptionalShellMode,
|
|
222
|
+
useScheduleServer,
|
|
139
223
|
useServer,
|
|
140
224
|
useServerCapabilities,
|
|
141
225
|
useShellMode
|
|
142
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-2GIZY3JJ.js";
|
|
227
|
+
import {
|
|
228
|
+
useAui,
|
|
229
|
+
useAuiState
|
|
230
|
+
} from "./chunk-M6MHLVSO.js";
|
|
143
231
|
import {
|
|
144
232
|
OpenUiFenceBlock
|
|
145
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-CG75X77Q.js";
|
|
146
234
|
import {
|
|
147
235
|
PRESETS,
|
|
148
236
|
ThemeProvider,
|
|
@@ -152,7 +240,7 @@ import {
|
|
|
152
240
|
useOptionalContentClassNames,
|
|
153
241
|
useTheme,
|
|
154
242
|
useThemeIcons
|
|
155
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-JCL3Q7RW.js";
|
|
156
244
|
|
|
157
245
|
// src/icons/agent-2.svg
|
|
158
246
|
import * as React from "react";
|
|
@@ -184,47 +272,65 @@ import { jsx as jsx4 } from "react/jsx-runtime";
|
|
|
184
272
|
var SvgCompare = (props) => /* @__PURE__ */ jsx4("svg", { width: "1em", height: "1em", viewBox: "0 0 14 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx4("path", { d: "M5.09091 16.5V15.0455H1.45455C1.05455 15.0455 0.712121 14.903 0.427273 14.6182C0.142424 14.3333 0 13.9909 0 13.5909V3.40909C0 3.00909 0.142424 2.66667 0.427273 2.38182C0.712121 2.09697 1.05455 1.95455 1.45455 1.95455H5.09091V0.5H6.54545V16.5H5.09091ZM8 15.0455V13.5909L11.6364 13.5909V3.40909H8V1.95455H11.6364C12.0364 1.95455 12.3788 2.09697 12.6636 2.38182C12.9485 2.66667 13.0909 3.00909 13.0909 3.40909V13.5909C13.0909 13.9909 12.9485 14.3333 12.6636 14.6182C12.3788 14.903 12.0364 15.0455 11.6364 15.0455H8Z", fill: "currentColor" }) });
|
|
185
273
|
var compare_default = SvgCompare;
|
|
186
274
|
|
|
187
|
-
// src/icons/
|
|
275
|
+
// src/icons/empty.svg
|
|
188
276
|
import * as React5 from "react";
|
|
189
277
|
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
190
|
-
var
|
|
191
|
-
/* @__PURE__ */
|
|
192
|
-
|
|
193
|
-
|
|
278
|
+
var SvgEmpty = (props) => /* @__PURE__ */ jsxs2("svg", { width: "1em", height: "1em", viewBox: "0 0 22 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
279
|
+
/* @__PURE__ */ jsx5("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.4824 12.432L21.0265 6.20004L10.5441 0L0 6.20004L10.4824 12.432Z", fill: "#ECF2F9" }),
|
|
280
|
+
/* @__PURE__ */ jsx5("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.4729 11.7499L19.75 6.23584L10.5271 0.749939L1.25 6.23584L10.4729 11.7499Z", fill: "#FDFEFF" }),
|
|
281
|
+
/* @__PURE__ */ jsx5("path", { d: "M10.5 11.7499V0.749939L19.75 6.24994L10.5 11.7499Z", fill: "url(#paint0_linear_10651_178757)" }),
|
|
282
|
+
/* @__PURE__ */ jsx5("path", { d: "M10.5 11.7499V0.749939L1.25 6.24994L10.5 11.7499Z", fill: "#0E1623" }),
|
|
283
|
+
/* @__PURE__ */ jsx5("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 6.20001V18.686L10.5441 25V12.4319L0 6.20001Z", fill: "#CEE0F8" }),
|
|
284
|
+
/* @__PURE__ */ jsx5("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.0265 6.20001V18.686L10.4824 25V12.4319L21.0265 6.20001Z", fill: "#82A0CE" }),
|
|
285
|
+
/* @__PURE__ */ jsx5("path", { d: "M10.4973 11.7478L4.64099 8.26706V8.95172L10.4973 12.4126L15.8148 9.27748V8.59062L10.4973 11.7478Z", fill: "#ECF2F9" }),
|
|
286
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsxs2("linearGradient", { id: "paint0_linear_10651_178757", x1: 15.0834, y1: 2.10412, x2: 15.125, y2: 11.7499, gradientUnits: "userSpaceOnUse", children: [
|
|
287
|
+
/* @__PURE__ */ jsx5("stop", { stopColor: "#5E7BAA" }),
|
|
288
|
+
/* @__PURE__ */ jsx5("stop", { offset: 1, stopColor: "#030407" })
|
|
289
|
+
] }) })
|
|
290
|
+
] });
|
|
291
|
+
var empty_default = SvgEmpty;
|
|
292
|
+
|
|
293
|
+
// src/icons/mcp-server.svg
|
|
294
|
+
import * as React6 from "react";
|
|
295
|
+
import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
296
|
+
var SvgMcpServer = (props) => /* @__PURE__ */ jsxs3("svg", { width: "1em", height: "1em", viewBox: "0 0 14 14", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
297
|
+
/* @__PURE__ */ jsxs3("g", { clipPath: "url(#clip0_5446_3655)", children: [
|
|
298
|
+
/* @__PURE__ */ jsx6("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.15174 1.36702C8.86989 1.09272 8.49212 0.939234 8.09883 0.939234C7.70553 0.939234 7.32776 1.09272 7.04591 1.36702L1.43074 6.87369C1.33678 6.96502 1.21091 7.01611 1.07987 7.01611C0.948831 7.01611 0.822958 6.96502 0.728994 6.87369C0.68299 6.82895 0.646423 6.77544 0.621453 6.71633C0.596483 6.65721 0.583618 6.59369 0.583618 6.52952C0.583618 6.46535 0.596483 6.40183 0.621453 6.34272C0.646423 6.2836 0.68299 6.23009 0.728994 6.18536L6.34416 0.678689C6.81387 0.221585 7.44341 -0.0341797 8.09883 -0.0341797C8.75424 -0.0341797 9.38379 0.221585 9.85349 0.678689C10.1253 0.943 10.3306 1.26791 10.4527 1.62683C10.5748 1.98575 10.6101 2.36848 10.5558 2.74369C10.936 2.68962 11.3235 2.72356 11.6885 2.8429C12.0535 2.96224 12.3863 3.16379 12.6611 3.43202L12.6902 3.46119C12.9203 3.68489 13.1031 3.95243 13.2279 4.248C13.3528 4.54357 13.4171 4.86117 13.4171 5.18202C13.4171 5.50288 13.3528 5.82048 13.2279 6.11605C13.1031 6.41162 12.9203 6.67916 12.6902 6.90286L7.61174 11.8828C7.59642 11.8977 7.58423 11.9155 7.57591 11.9352C7.56759 11.9549 7.5633 11.976 7.5633 11.9974C7.5633 12.0188 7.56759 12.0399 7.57591 12.0596C7.58423 12.0793 7.59642 12.0971 7.61174 12.112L8.65474 13.1352C8.70075 13.1799 8.73731 13.2334 8.76228 13.2926C8.78725 13.3517 8.80012 13.4152 8.80012 13.4794C8.80012 13.5435 8.78725 13.607 8.76228 13.6662C8.73731 13.7253 8.70075 13.7788 8.65474 13.8235C8.56078 13.9149 8.43491 13.9659 8.30387 13.9659C8.17283 13.9659 8.04696 13.9149 7.95299 13.8235L6.90999 12.8009C6.80257 12.6966 6.71717 12.5717 6.65886 12.4337C6.60054 12.2957 6.5705 12.1475 6.5705 11.9977C6.5705 11.8479 6.60054 11.6996 6.65886 11.5617C6.71717 11.4237 6.80257 11.2988 6.90999 11.1944L11.9885 6.21394C12.1264 6.07968 12.2361 5.91914 12.3109 5.74181C12.3858 5.56447 12.4244 5.37393 12.4244 5.18144C12.4244 4.98895 12.3858 4.79841 12.3109 4.62107C12.2361 4.44374 12.1264 4.2832 11.9885 4.14894L11.9593 4.12036C11.6778 3.84634 11.3005 3.69287 10.9076 3.69254C10.5148 3.69222 10.1372 3.84506 9.85524 4.11861L5.67158 8.22177L5.67041 8.22294L5.61324 8.27952C5.51925 8.37103 5.39326 8.42223 5.26208 8.42223C5.1309 8.42223 5.0049 8.37103 4.91091 8.27952C4.86491 8.23478 4.82834 8.18128 4.80337 8.12216C4.7784 8.06305 4.76553 7.99953 4.76553 7.93536C4.76553 7.87118 4.7784 7.80766 4.80337 7.74855C4.82834 7.68944 4.86491 7.63593 4.91091 7.59119L9.15349 3.43027C9.29105 3.29592 9.40033 3.1354 9.47488 2.95816C9.54943 2.78093 9.58776 2.59056 9.58759 2.39828C9.58743 2.206 9.54878 2.0157 9.47393 1.83859C9.39907 1.66147 9.28953 1.50114 9.15174 1.36702Z", fill: "currentColor" }),
|
|
299
|
+
/* @__PURE__ */ jsx6("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.44964 2.74425C8.49564 2.69951 8.53221 2.646 8.55718 2.58689C8.58215 2.52777 8.59501 2.46425 8.59501 2.40008C8.59501 2.33591 8.58215 2.27239 8.55718 2.21328C8.53221 2.15416 8.49564 2.10066 8.44964 2.05592C8.35564 1.96441 8.22965 1.91321 8.09847 1.91321C7.96729 1.91321 7.84129 1.96441 7.7473 2.05592L3.59455 6.12875C3.36454 6.35245 3.1817 6.61999 3.05685 6.91556C2.932 7.21113 2.86768 7.52873 2.86768 7.84958C2.86768 8.17044 2.932 8.48804 3.05685 8.78361C3.1817 9.07918 3.36454 9.34672 3.59455 9.57042C4.06433 10.0274 4.69385 10.2831 5.34922 10.2831C6.00459 10.2831 6.63411 10.0274 7.10389 9.57042L11.2572 5.49758C11.3032 5.45284 11.3398 5.39934 11.3648 5.34022C11.3897 5.28111 11.4026 5.21759 11.4026 5.15342C11.4026 5.08925 11.3897 5.02573 11.3648 4.96661C11.3398 4.9075 11.3032 4.85399 11.2572 4.80925C11.1632 4.71774 11.0372 4.66654 10.9061 4.66654C10.7749 4.66654 10.6489 4.71774 10.5549 4.80925L6.40214 8.88208C6.12029 9.15639 5.74252 9.30987 5.34922 9.30987C4.95592 9.30987 4.57815 9.15639 4.2963 8.88208C4.15836 8.74782 4.04873 8.58729 3.97386 8.40995C3.899 8.23261 3.86043 8.04207 3.86043 7.84958C3.86043 7.65709 3.899 7.46655 3.97386 7.28922C4.04873 7.11188 4.15836 6.95134 4.2963 6.81708L8.44964 2.74425Z", fill: "currentColor" })
|
|
194
300
|
] }),
|
|
195
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ jsx6("defs", { children: /* @__PURE__ */ jsx6("clipPath", { id: "clip0_5446_3655", children: /* @__PURE__ */ jsx6("rect", { width: 14, height: 14, fill: "white" }) }) })
|
|
196
302
|
] });
|
|
197
303
|
var mcp_server_default = SvgMcpServer;
|
|
198
304
|
|
|
199
305
|
// src/icons/search-globe.svg
|
|
200
|
-
import * as
|
|
201
|
-
import { jsx as
|
|
202
|
-
var SvgSearchGlobe = (props) => /* @__PURE__ */
|
|
306
|
+
import * as React7 from "react";
|
|
307
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
308
|
+
var SvgSearchGlobe = (props) => /* @__PURE__ */ jsx7("svg", { width: "1em", height: "1em", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx7("path", { d: "M7 0C10.8555 0 14 3.14453 14 7C14 10.8828 10.8555 14 7 14C3.11719 14 0 10.8828 0 7C0 3.14453 3.11719 0 7 0ZM7 12.6875C7.19141 12.6875 7.71094 12.4961 8.28516 11.375C8.53125 10.8828 8.72266 10.3086 8.88672 9.625H5.08594C5.25 10.3086 5.44141 10.8828 5.6875 11.375C6.26172 12.4961 6.78125 12.6875 7 12.6875ZM4.86719 8.3125H9.10547C9.16016 7.90234 9.1875 7.46484 9.1875 7C9.1875 6.5625 9.16016 6.125 9.10547 5.6875H4.86719C4.8125 6.125 4.8125 6.5625 4.8125 7C4.8125 7.46484 4.8125 7.90234 4.86719 8.3125ZM8.88672 4.375C8.72266 3.71875 8.53125 3.14453 8.28516 2.65234C7.71094 1.53125 7.19141 1.3125 7 1.3125C6.78125 1.3125 6.26172 1.53125 5.6875 2.65234C5.44141 3.14453 5.25 3.71875 5.08594 4.375H8.88672ZM10.418 5.6875C10.4727 6.125 10.5 6.5625 10.5 7C10.5 7.46484 10.4727 7.90234 10.418 8.3125H12.5234C12.6328 7.90234 12.6875 7.46484 12.6875 7C12.6875 6.5625 12.6328 6.125 12.5234 5.6875H10.418ZM9.35156 1.83203C9.73438 2.54297 10.0352 3.41797 10.2266 4.375H12.0312C11.457 3.25391 10.5 2.35156 9.35156 1.83203ZM4.62109 1.83203C3.47266 2.35156 2.51562 3.25391 1.94141 4.375H3.74609C3.9375 3.41797 4.23828 2.54297 4.62109 1.83203ZM1.3125 7C1.3125 7.46484 1.33984 7.90234 1.44922 8.3125H3.55469C3.5 7.90234 3.5 7.46484 3.5 7C3.5 6.5625 3.5 6.125 3.55469 5.6875H1.44922C1.33984 6.125 1.3125 6.5625 1.3125 7ZM12.0312 9.625H10.2266C10.0352 10.6094 9.73438 11.4844 9.35156 12.1953C10.5 11.6758 11.457 10.7734 12.0312 9.625ZM3.74609 9.625H1.94141C2.51562 10.7734 3.47266 11.6758 4.62109 12.1953C4.23828 11.4844 3.9375 10.6094 3.74609 9.625Z", fill: "currentColor" }) });
|
|
203
309
|
var search_globe_default = SvgSearchGlobe;
|
|
204
310
|
|
|
205
311
|
// src/icons/trueforge-logomark-dark.svg
|
|
206
|
-
import * as
|
|
207
|
-
import { jsx as
|
|
208
|
-
var SvgTrueforgeLogomarkDark = (props) => /* @__PURE__ */
|
|
209
|
-
/* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
/* @__PURE__ */
|
|
312
|
+
import * as React8 from "react";
|
|
313
|
+
import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
314
|
+
var SvgTrueforgeLogomarkDark = (props) => /* @__PURE__ */ jsxs4("svg", { width: "1em", height: "1em", viewBox: "0 0 120 120", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
315
|
+
/* @__PURE__ */ jsxs4("g", { clipPath: "url(#clip0_10581_4008)", children: [
|
|
316
|
+
/* @__PURE__ */ jsx8("path", { d: "M-0.000793457 0.015625L39.9992 20.0156V40L19.9992 40V80.0156H39.9992V100.016L-0.000793457 120.016V0.015625Z", fill: "white" }),
|
|
317
|
+
/* @__PURE__ */ jsx8("path", { d: "M119.999 0L79.9992 20V40H99.9992V80H79.9992V100L119.999 120V0Z", fill: "white" }),
|
|
318
|
+
/* @__PURE__ */ jsx8("path", { d: "M59.9955 39.8193C61.054 45.6178 63.1935 50.1614 66.5756 53.5215C69.9439 56.868 74.4722 58.9678 80.2035 60.0088C74.4696 61.0714 69.9413 63.2075 66.5736 66.5752C63.1938 69.955 61.0542 74.5036 59.9955 80.2666C58.9314 74.5031 56.7838 69.9547 53.3988 66.5752C50.026 63.2078 45.4965 61.0704 39.7709 60.0078C45.4938 58.9668 50.0235 56.8676 53.3969 53.5215C56.7841 50.1616 58.9316 45.6182 59.9955 39.8193Z", fill: "white", stroke: "white", strokeWidth: 1.6, strokeLinejoin: "round" })
|
|
213
319
|
] }),
|
|
214
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ jsx8("defs", { children: /* @__PURE__ */ jsx8("clipPath", { id: "clip0_10581_4008", children: /* @__PURE__ */ jsx8("rect", { width: 120, height: 120, fill: "white" }) }) })
|
|
215
321
|
] });
|
|
216
322
|
var trueforge_logomark_dark_default = SvgTrueforgeLogomarkDark;
|
|
217
323
|
|
|
218
324
|
// src/icons/trueforge-logomark-light.svg
|
|
219
|
-
import * as
|
|
220
|
-
import { jsx as
|
|
221
|
-
var SvgTrueforgeLogomarkLight = (props) => /* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
325
|
+
import * as React9 from "react";
|
|
326
|
+
import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
327
|
+
var SvgTrueforgeLogomarkLight = (props) => /* @__PURE__ */ jsxs5("svg", { width: "1em", height: "1em", viewBox: "0 0 140 140", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
328
|
+
/* @__PURE__ */ jsxs5("g", { clipPath: "url(#clip0_10581_1729)", children: [
|
|
329
|
+
/* @__PURE__ */ jsx9("path", { d: "M-0.000976562 0.0195312L46.6657 23.3529V46.668L23.3324 46.668V93.3529H46.6657V116.686L-0.000976562 140.02V0.0195312Z", fill: "#05090E" }),
|
|
330
|
+
/* @__PURE__ */ jsx9("path", { d: "M139.999 0L93.3324 23.3333V46.6667H116.666V93.3333H93.3324V116.667L139.999 140V0Z", fill: "#05090E" }),
|
|
331
|
+
/* @__PURE__ */ jsx9("path", { d: "M69.9941 46.4561C71.2291 53.2208 73.7252 58.5213 77.6709 62.4414C81.6 66.345 86.8814 68.7951 93.5664 70.0098C86.8784 71.2497 81.5974 73.7435 77.6689 77.6719C73.7259 81.615 71.2293 86.921 69.9941 93.6445C68.7527 86.9203 66.2461 81.6138 62.2969 77.6709C58.3624 73.7429 53.0791 71.2496 46.4004 70.0098C53.076 68.7952 58.3597 66.3456 62.2949 62.4424C66.2468 58.5225 68.7529 53.2215 69.9941 46.4561Z", fill: "#6D58FB", stroke: "#6D58FB", strokeWidth: 1.86667, strokeLinejoin: "round" })
|
|
226
332
|
] }),
|
|
227
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ jsx9("defs", { children: /* @__PURE__ */ jsx9("clipPath", { id: "clip0_10581_1729", children: /* @__PURE__ */ jsx9("rect", { width: 140, height: 140, fill: "white" }) }) })
|
|
228
334
|
] });
|
|
229
335
|
var trueforge_logomark_light_default = SvgTrueforgeLogomarkLight;
|
|
230
336
|
|
|
@@ -232,25 +338,43 @@ var trueforge_logomark_light_default = SvgTrueforgeLogomarkLight;
|
|
|
232
338
|
registerIcons({
|
|
233
339
|
"mcp-server": mcp_server_default,
|
|
234
340
|
"agent-2": agent_2_default,
|
|
341
|
+
// Prefer the custom agent glyph over Lucide Bot for bot/robot aliases.
|
|
342
|
+
bot: agent_2_default,
|
|
343
|
+
robot: agent_2_default,
|
|
235
344
|
compare: compare_default,
|
|
236
345
|
ai: ai_default,
|
|
237
346
|
searchGlobe: search_globe_default,
|
|
238
347
|
"brain-regular": brain_regular_default,
|
|
348
|
+
empty: empty_default,
|
|
239
349
|
"trueforge-logomark-light": trueforge_logomark_light_default,
|
|
240
350
|
"trueforge-logomark-dark": trueforge_logomark_dark_default
|
|
241
351
|
});
|
|
242
352
|
|
|
243
353
|
// src/containers/McpOauthContainer/PostMcpOauthScreen.tsx
|
|
244
354
|
import { useEffect, useState } from "react";
|
|
245
|
-
import { jsx as
|
|
355
|
+
import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
246
356
|
var BROADCAST_RETRY_DELAY_MS = 1e3;
|
|
247
357
|
var WINDOW_CLOSE_DELAY_MS = 5e3;
|
|
358
|
+
function resolvePopupSuccess(searchParams) {
|
|
359
|
+
if (searchParams.get("error")) {
|
|
360
|
+
return false;
|
|
361
|
+
}
|
|
362
|
+
const flag = searchParams.get("isSuccess")?.toLowerCase();
|
|
363
|
+
if (flag === "true") {
|
|
364
|
+
return true;
|
|
365
|
+
}
|
|
366
|
+
if (flag === "false") {
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
const code = searchParams.get("code");
|
|
370
|
+
return code != null && code.length > 0;
|
|
371
|
+
}
|
|
248
372
|
var PostMcpOauthScreen = () => {
|
|
249
373
|
const [result, setResult] = useState();
|
|
250
374
|
useEffect(() => {
|
|
251
375
|
const searchParams = new URLSearchParams(window.location.search);
|
|
252
376
|
const popupUid = searchParams.get("pUid");
|
|
253
|
-
const isSuccess2 = searchParams
|
|
377
|
+
const isSuccess2 = resolvePopupSuccess(searchParams);
|
|
254
378
|
setResult(popupUid ? { popupUid, isSuccess: isSuccess2 } : null);
|
|
255
379
|
const broadcastResult = () => {
|
|
256
380
|
if (!popupUid) return;
|
|
@@ -272,10 +396,10 @@ var PostMcpOauthScreen = () => {
|
|
|
272
396
|
const isSuccess = !!result?.isSuccess;
|
|
273
397
|
const title = result === void 0 ? "Completing authorization" : isSuccess ? "Authorization successful" : "Authorization failed";
|
|
274
398
|
const description = result === void 0 ? "Please wait while the authorization result is confirmed." : result === null ? "The authorization result is invalid. You can close this window and try again." : isSuccess ? "The MCP server is now connected. This window will close automatically." : "The MCP server could not be authorized. You can close this window and try again.";
|
|
275
|
-
return /* @__PURE__ */
|
|
276
|
-
result === void 0 ? /* @__PURE__ */
|
|
277
|
-
/* @__PURE__ */
|
|
278
|
-
/* @__PURE__ */
|
|
399
|
+
return /* @__PURE__ */ jsx10("main", { className: "flex min-h-screen items-center justify-center bg-primary-bg p-6", children: /* @__PURE__ */ jsxs6("div", { className: "flex w-full max-w-md flex-col items-center gap-3 rounded-2xl border border-border bg-card-bg p-8 text-center shadow-sm", children: [
|
|
400
|
+
result === void 0 ? /* @__PURE__ */ jsx10(Icon, { name: "oauth-loading", className: "size-16 animate-spin text-text-secondary" }) : isSuccess ? /* @__PURE__ */ jsx10(Icon, { name: "oauth-success", className: "size-16 text-success-bg" }) : /* @__PURE__ */ jsx10(Icon, { name: "oauth-error", className: "size-16 text-failure-bg" }),
|
|
401
|
+
/* @__PURE__ */ jsx10("h1", { className: "text-2xl font-semibold text-text-primary", children: title }),
|
|
402
|
+
/* @__PURE__ */ jsx10("p", { className: "text-sm leading-6 text-text-secondary", children: description })
|
|
279
403
|
] }) });
|
|
280
404
|
};
|
|
281
405
|
var PostMcpOauthScreen_default = PostMcpOauthScreen;
|
|
@@ -283,7 +407,7 @@ var PostMcpOauthScreen_default = PostMcpOauthScreen;
|
|
|
283
407
|
// src/containers/ToolGroupContainer.tsx
|
|
284
408
|
import { useAuiState as useAuiState2 } from "@assistant-ui/react";
|
|
285
409
|
import { useState as useState2 } from "react";
|
|
286
|
-
import { jsx as
|
|
410
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
287
411
|
function ToolGroupContainer({ children, group }) {
|
|
288
412
|
const ToolGroupCard2 = useSlot("ToolGroupCard");
|
|
289
413
|
const toolCallCount = group.indices.length;
|
|
@@ -301,7 +425,7 @@ function ToolGroupContainer({ children, group }) {
|
|
|
301
425
|
setPrevActive(active);
|
|
302
426
|
if (active) setExpanded(true);
|
|
303
427
|
}
|
|
304
|
-
return /* @__PURE__ */
|
|
428
|
+
return /* @__PURE__ */ jsx11(
|
|
305
429
|
ToolGroupCard2,
|
|
306
430
|
{
|
|
307
431
|
toolCallCount,
|
|
@@ -315,20 +439,20 @@ function ToolGroupContainer({ children, group }) {
|
|
|
315
439
|
|
|
316
440
|
// src/containers/TrueForgeUI.tsx
|
|
317
441
|
import { lazy, Suspense } from "react";
|
|
318
|
-
import { jsx as
|
|
442
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
319
443
|
var TrueForgeUIWithRouter = lazy(
|
|
320
|
-
() => import("./TrueForgeUIWithRouter-
|
|
444
|
+
() => import("./TrueForgeUIWithRouter-LKG4XLW6.js").then((m) => ({ default: m.TrueForgeUIWithRouter }))
|
|
321
445
|
);
|
|
322
446
|
function TrueForgeUI(props) {
|
|
323
447
|
const isMcpAuthScreen = typeof window !== "undefined" && new URLSearchParams(window.location.search).get("screenType") === "mcp-auth";
|
|
324
448
|
if (isMcpAuthScreen) {
|
|
325
|
-
return /* @__PURE__ */
|
|
449
|
+
return /* @__PURE__ */ jsx12(SlotsProvider, { overrides: props.overrides, theme: props.theme, children: /* @__PURE__ */ jsx12(PostMcpOauthScreen_default, {}) });
|
|
326
450
|
}
|
|
327
451
|
const { withRouter, ...rest } = props;
|
|
328
452
|
if (withRouter) {
|
|
329
|
-
return /* @__PURE__ */
|
|
453
|
+
return /* @__PURE__ */ jsx12(Suspense, { fallback: /* @__PURE__ */ jsx12(ServerInitLoader, { className: props.className }), children: /* @__PURE__ */ jsx12(TrueForgeUIWithRouter, { ...rest }) });
|
|
330
454
|
}
|
|
331
|
-
return /* @__PURE__ */
|
|
455
|
+
return /* @__PURE__ */ jsx12(TrueForgeUIShell, { ...rest });
|
|
332
456
|
}
|
|
333
457
|
|
|
334
458
|
// src/index.ts
|
|
@@ -337,6 +461,7 @@ import {
|
|
|
337
461
|
trueFoundryAttachmentAdapter,
|
|
338
462
|
useTrueFoundryAgentRuntime,
|
|
339
463
|
useTrueFoundryAgentSpec,
|
|
464
|
+
useTrueFoundryApprovals,
|
|
340
465
|
useTrueFoundryCancel,
|
|
341
466
|
useTrueFoundryDownloadSandboxFile,
|
|
342
467
|
useTrueFoundryHistoryPagination,
|
|
@@ -347,10 +472,40 @@ import {
|
|
|
347
472
|
useTrueFoundryUpdateAgentSpec
|
|
348
473
|
} from "@truefoundry/assistant-ui-runtime";
|
|
349
474
|
export {
|
|
475
|
+
AgentCodeBlock,
|
|
476
|
+
AgentConfigEditors,
|
|
477
|
+
AgentConfigPanel,
|
|
478
|
+
AgentConfigSection,
|
|
479
|
+
AgentCustomParametersEditor,
|
|
480
|
+
AgentDetailsHeader,
|
|
481
|
+
AgentDetailsPage,
|
|
482
|
+
AgentDetailsTabs,
|
|
483
|
+
AgentDetailsUnavailable,
|
|
484
|
+
AgentInstructionsDrawer,
|
|
485
|
+
AgentMcpEditorContent,
|
|
486
|
+
AgentMetricCard,
|
|
487
|
+
AgentMetricChart,
|
|
488
|
+
AgentMetricStatistics,
|
|
489
|
+
AgentMetricsContainer,
|
|
490
|
+
AgentMetricsTimeRangeFilter,
|
|
491
|
+
AgentMetricsView,
|
|
492
|
+
AgentModelConfigModal,
|
|
493
|
+
AgentModelEditorContent,
|
|
494
|
+
AgentModelSettingsContent,
|
|
495
|
+
AgentOverviewCard,
|
|
496
|
+
AgentResourceConfigModal,
|
|
497
|
+
AgentResourceEditorContent,
|
|
498
|
+
AgentRuntimeConfigDrawer,
|
|
499
|
+
AgentRuntimeConfigFields,
|
|
500
|
+
AgentRuntimeEditorContent,
|
|
501
|
+
AgentSessionsFilters,
|
|
502
|
+
AgentSkillsEditorContent,
|
|
350
503
|
AgentStepsCard,
|
|
351
504
|
AgentStepsContainer,
|
|
352
505
|
AgentsLibrary,
|
|
353
506
|
AgentsLibraryButton,
|
|
507
|
+
ApprovalNavBanner,
|
|
508
|
+
ApprovalNavContainer,
|
|
354
509
|
AskUserContainer,
|
|
355
510
|
AssistantMessageBubble,
|
|
356
511
|
AssistantMessageContainer,
|
|
@@ -363,6 +518,7 @@ export {
|
|
|
363
518
|
AvatarImage,
|
|
364
519
|
BottomSheet,
|
|
365
520
|
BrandLogo,
|
|
521
|
+
Button,
|
|
366
522
|
CenteredModal,
|
|
367
523
|
ChatFileDownload,
|
|
368
524
|
ClearChatButton,
|
|
@@ -378,13 +534,18 @@ export {
|
|
|
378
534
|
CustomActionContainer,
|
|
379
535
|
CustomActionRenderersProvider,
|
|
380
536
|
DEFAULT_AGENT_CONFIG,
|
|
537
|
+
DEFAULT_TABLE_PAGE_SIZE,
|
|
538
|
+
DraftAgentConfigTrigger,
|
|
539
|
+
DraftCapabilitiesPanel,
|
|
381
540
|
DraftCatalogProvider,
|
|
541
|
+
DraftComposerActionsMenu,
|
|
382
542
|
DraftComposerLeftSection,
|
|
383
543
|
DraftComposerRightSection,
|
|
384
544
|
DraftCompositeSelector,
|
|
385
545
|
DraftModelSelector,
|
|
386
546
|
HistoryLoader,
|
|
387
547
|
HistoryLoaderContainer,
|
|
548
|
+
IS_CREATE_AGENT_METADATA_KEY,
|
|
388
549
|
Icon,
|
|
389
550
|
MCP_AUTH_POPUP_CHANNEL,
|
|
390
551
|
Markdown,
|
|
@@ -399,22 +560,46 @@ export {
|
|
|
399
560
|
MonacoEditorCore,
|
|
400
561
|
OpenUiFenceBlock,
|
|
401
562
|
PRESETS,
|
|
563
|
+
PermissionGuard,
|
|
564
|
+
PopoverSelect,
|
|
402
565
|
PostMcpOauthScreen_default as PostMcpOauthScreen,
|
|
403
566
|
ReasoningContainer,
|
|
567
|
+
ResponsiveDropdownMenu,
|
|
404
568
|
ResumeUnavailable,
|
|
405
569
|
ResumeUnavailableContainer,
|
|
406
570
|
SandboxArtifactDownload,
|
|
407
571
|
SandboxToolCallCard,
|
|
408
572
|
SaveAgentButton,
|
|
573
|
+
SaveAgentForm,
|
|
574
|
+
ScheduleFormDrawer,
|
|
575
|
+
ScheduleFormFields,
|
|
576
|
+
ScheduleLastRunsCell,
|
|
577
|
+
ScheduleRunChip,
|
|
578
|
+
ScheduleStatusBadge,
|
|
579
|
+
SchedulesButton,
|
|
580
|
+
SchedulesPage,
|
|
409
581
|
ScrollToBottomButton,
|
|
410
582
|
SelectAgentEmptyState,
|
|
411
583
|
ServerProvider,
|
|
584
|
+
SessionsBrowserButton,
|
|
585
|
+
SessionsPage,
|
|
412
586
|
ShellActionsActionSlot,
|
|
413
587
|
ShellModeProvider,
|
|
588
|
+
SideDrawer,
|
|
414
589
|
SlotsProvider,
|
|
415
590
|
SubAgentCard,
|
|
416
591
|
Switch,
|
|
417
592
|
SyntaxHighlighter,
|
|
593
|
+
TABLE_PAGE_SIZE_OPTIONS,
|
|
594
|
+
Table,
|
|
595
|
+
TableBody,
|
|
596
|
+
TableCell,
|
|
597
|
+
TableHead,
|
|
598
|
+
TableHeader,
|
|
599
|
+
TablePagination,
|
|
600
|
+
TableRow,
|
|
601
|
+
TableTokenPagination,
|
|
602
|
+
TestScheduleScreen,
|
|
418
603
|
ThemeProvider,
|
|
419
604
|
Thread,
|
|
420
605
|
ThreadComposerAreaShell,
|
|
@@ -441,6 +626,7 @@ export {
|
|
|
441
626
|
TrueForgeUI,
|
|
442
627
|
TrueFoundryChatProvider,
|
|
443
628
|
USER_MESSAGE_ATTACHMENT_PREVIEW_REM,
|
|
629
|
+
UserAvatar,
|
|
444
630
|
UserEditComposerContainer,
|
|
445
631
|
UserMessageActionBar,
|
|
446
632
|
UserMessageBubble,
|
|
@@ -450,30 +636,46 @@ export {
|
|
|
450
636
|
computeAgentStepsSplit,
|
|
451
637
|
createTrueFoundryServer,
|
|
452
638
|
defaultSlots,
|
|
639
|
+
findSubAgentAncestorsForApproval,
|
|
453
640
|
getErrorMessage,
|
|
641
|
+
isCreateAgentMetadataValue,
|
|
454
642
|
libraryAgentId,
|
|
455
643
|
mergeAgentSpec,
|
|
456
644
|
preloadMarkdownOpenUI,
|
|
645
|
+
readSessionIsCreateAgent,
|
|
457
646
|
resolveBrandChrome,
|
|
458
647
|
resolvePresetTokens,
|
|
648
|
+
sessionIsCreateAgent,
|
|
649
|
+
shellIsCreateAgent,
|
|
459
650
|
shellIsMutable,
|
|
460
651
|
threadHasPendingMcpAuth,
|
|
461
652
|
trueFoundryAttachmentAdapter,
|
|
653
|
+
useAgentMetricsServer,
|
|
654
|
+
useAgentSessionsServer,
|
|
655
|
+
useApprovalNav,
|
|
462
656
|
useAui,
|
|
463
657
|
useAuiState,
|
|
464
658
|
useBrand,
|
|
465
659
|
useBrandName,
|
|
660
|
+
useCanCreateAgent,
|
|
466
661
|
useCatalogServer,
|
|
467
662
|
useComposerBusyState,
|
|
468
663
|
useComposerPauseView,
|
|
469
664
|
useContentClassNames,
|
|
470
665
|
useDraftCatalog,
|
|
471
666
|
useMCPAuth,
|
|
667
|
+
useOptionalAgentMetricsServer,
|
|
668
|
+
useOptionalAgentSessionsServer,
|
|
472
669
|
useOptionalCatalogServer,
|
|
473
670
|
useOptionalContentClassNames,
|
|
671
|
+
useOptionalCurrentUser,
|
|
474
672
|
useOptionalCustomActionRenderers,
|
|
673
|
+
useOptionalPermissionsServer,
|
|
674
|
+
useOptionalScheduleServer,
|
|
475
675
|
useOptionalServer,
|
|
476
676
|
useOptionalShellMode,
|
|
677
|
+
useResourcePermissions,
|
|
678
|
+
useScheduleServer,
|
|
477
679
|
useServer,
|
|
478
680
|
useServerCapabilities,
|
|
479
681
|
useShellMode,
|
|
@@ -485,6 +687,7 @@ export {
|
|
|
485
687
|
useToasterOptional,
|
|
486
688
|
useTrueFoundryAgentRuntime,
|
|
487
689
|
useTrueFoundryAgentSpec,
|
|
690
|
+
useTrueFoundryApprovals,
|
|
488
691
|
useTrueFoundryCancel,
|
|
489
692
|
useTrueFoundryDownloadSandboxFile,
|
|
490
693
|
useTrueFoundryHistoryPagination,
|