@truefoundry/trueforge-ui 0.3.1 → 0.4.0-rc.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/CHANGELOG.md +18 -0
- package/NOTICE +1 -1
- package/README.md +26 -89
- package/dist/{AgentCodeSnippets-DAZWEBJS.js → AgentCodeSnippets-BPC6TD7K.js} +5 -5
- package/dist/AgentMetricChart-T6DZZ37Y.js +15 -0
- package/dist/{AgentOverview-5JIVYXPX.js → AgentOverview-BFU7EO4Y.js} +5 -5
- package/dist/{AgentSessionEventTimeline-WELJSS6O.js → AgentSessionEventTimeline-ATVBTYDF.js} +5 -5
- package/dist/{AgentSessionEventTimelineChart-ADB3KICM.js → AgentSessionEventTimelineChart-H577STKW.js} +5 -5
- package/dist/{AgentSessions-NSN4LIGJ.js → AgentSessions-GDLBXFIK.js} +6 -6
- package/dist/{ConnectorSettings-C6MFCKYX.js → ConnectorSettings-FYNF6J3F.js} +5 -5
- package/dist/{DockLayout-VY7OZ55R.js → DockLayout-SGUOMZ5E.js} +8 -8
- package/dist/{DrawerLayout-B2UA3CZO.js → DrawerLayout-MJJYQDCW.js} +9 -9
- package/dist/{ModelSettings-3YAHICJ3.js → ModelSettings-6EW7U2MP.js} +5 -5
- package/dist/{SandboxSettings-ALR6F5KU.js → SandboxSettings-HQVBGHXZ.js} +5 -5
- package/dist/SchedulesPage-ZO3PJY4J.js +15 -0
- package/dist/{SettingsBuilder-G5CP5X6Q.js → SettingsBuilder-FODMI7HG.js} +19 -10
- package/dist/SettingsBuilder-FODMI7HG.js.map +1 -0
- package/dist/{ShellRouteSync-G7IJ5VIW.js → ShellRouteSync-4I5BP2VY.js} +4 -4
- package/dist/{SidebarLayout-FKRLGEDB.js → SidebarLayout-ZLWG2YGO.js} +10 -10
- package/dist/{SkillSettings-E5SJ4U3T.js → SkillSettings-AFSAOU6O.js} +5 -5
- package/dist/{TrueForgeUIWithRouter-WD7O3TWR.js → TrueForgeUIWithRouter-RQX5XWGI.js} +7 -7
- package/dist/WebSearchSettings-BW4CWGRR.js +322 -0
- package/dist/WebSearchSettings-BW4CWGRR.js.map +1 -0
- package/dist/{WidgetLayout-KQZTQNE7.js → WidgetLayout-WIPKUIL4.js} +8 -8
- package/dist/{chunk-2XT2VUT4.js → chunk-7S7A3PNP.js} +3 -3
- package/dist/chunk-7S7A3PNP.js.map +1 -0
- package/dist/{chunk-AU4BJQMK.js → chunk-GHXA46A2.js} +22 -22
- package/dist/chunk-GHXA46A2.js.map +1 -0
- package/dist/{chunk-7AAO4UDQ.js → chunk-HCGDDQ4G.js} +5 -5
- package/dist/chunk-HCGDDQ4G.js.map +1 -0
- package/dist/{chunk-XHPIJ77Q.js → chunk-HDMBSLDC.js} +2 -2
- package/dist/{chunk-XR4S7B2K.js → chunk-MLMR26WQ.js} +53 -50
- package/dist/chunk-MLMR26WQ.js.map +1 -0
- package/dist/{chunk-7UE7LZS2.js → chunk-Q22RHDYS.js} +34 -59
- package/dist/chunk-Q22RHDYS.js.map +1 -0
- package/dist/{chunk-G7BT4OKG.js → chunk-TFQWCBFQ.js} +11 -11
- package/dist/chunk-TFQWCBFQ.js.map +1 -0
- package/dist/{chunk-B76JC5B2.js → chunk-TJGGIEF6.js} +3 -3
- package/dist/{chunk-4OZFQVSR.js → chunk-TX6PB3DY.js} +2 -2
- package/dist/{chunk-2XFOONKH.js → chunk-VBZXCX7Y.js} +7 -7
- package/dist/{chunk-SAYUMANU.js → chunk-Y47LJKXD.js} +10 -10
- package/dist/{chunk-IGYCJIU7.js → chunk-YN5ZBBQM.js} +8 -8
- package/dist/{chunk-AO23SZBG.js → chunk-ZYJ2SBF7.js} +2 -2
- package/dist/createTrueForgeServer-DiSooQdh.d.ts +42 -0
- package/dist/index.d.ts +29 -36
- package/dist/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/dist/plugins/trueforge-agent-server-adapter/index.d.ts +57 -894
- package/dist/plugins/trueforge-agent-server-adapter/index.js +104 -5
- package/dist/plugins/trueforge-agent-server-adapter/index.js.map +1 -1
- package/package.json +8 -7
- package/dist/AgentMetricChart-VDIE3S2P.js +0 -15
- package/dist/SchedulesPage-TIS3BH67.js +0 -15
- package/dist/SettingsBuilder-G5CP5X6Q.js.map +0 -1
- package/dist/chunk-2XT2VUT4.js.map +0 -1
- package/dist/chunk-7AAO4UDQ.js.map +0 -1
- package/dist/chunk-7UE7LZS2.js.map +0 -1
- package/dist/chunk-AU4BJQMK.js.map +0 -1
- package/dist/chunk-G7BT4OKG.js.map +0 -1
- package/dist/chunk-XR4S7B2K.js.map +0 -1
- package/dist/createTrueFoundryServer-B_FYhSdn.d.ts +0 -42
- /package/dist/{AgentCodeSnippets-DAZWEBJS.js.map → AgentCodeSnippets-BPC6TD7K.js.map} +0 -0
- /package/dist/{AgentMetricChart-VDIE3S2P.js.map → AgentMetricChart-T6DZZ37Y.js.map} +0 -0
- /package/dist/{AgentOverview-5JIVYXPX.js.map → AgentOverview-BFU7EO4Y.js.map} +0 -0
- /package/dist/{AgentSessionEventTimeline-WELJSS6O.js.map → AgentSessionEventTimeline-ATVBTYDF.js.map} +0 -0
- /package/dist/{AgentSessionEventTimelineChart-ADB3KICM.js.map → AgentSessionEventTimelineChart-H577STKW.js.map} +0 -0
- /package/dist/{AgentSessions-NSN4LIGJ.js.map → AgentSessions-GDLBXFIK.js.map} +0 -0
- /package/dist/{ConnectorSettings-C6MFCKYX.js.map → ConnectorSettings-FYNF6J3F.js.map} +0 -0
- /package/dist/{DockLayout-VY7OZ55R.js.map → DockLayout-SGUOMZ5E.js.map} +0 -0
- /package/dist/{DrawerLayout-B2UA3CZO.js.map → DrawerLayout-MJJYQDCW.js.map} +0 -0
- /package/dist/{ModelSettings-3YAHICJ3.js.map → ModelSettings-6EW7U2MP.js.map} +0 -0
- /package/dist/{SandboxSettings-ALR6F5KU.js.map → SandboxSettings-HQVBGHXZ.js.map} +0 -0
- /package/dist/{SchedulesPage-TIS3BH67.js.map → SchedulesPage-ZO3PJY4J.js.map} +0 -0
- /package/dist/{ShellRouteSync-G7IJ5VIW.js.map → ShellRouteSync-4I5BP2VY.js.map} +0 -0
- /package/dist/{SidebarLayout-FKRLGEDB.js.map → SidebarLayout-ZLWG2YGO.js.map} +0 -0
- /package/dist/{SkillSettings-E5SJ4U3T.js.map → SkillSettings-AFSAOU6O.js.map} +0 -0
- /package/dist/{TrueForgeUIWithRouter-WD7O3TWR.js.map → TrueForgeUIWithRouter-RQX5XWGI.js.map} +0 -0
- /package/dist/{WidgetLayout-KQZTQNE7.js.map → WidgetLayout-WIPKUIL4.js.map} +0 -0
- /package/dist/{chunk-XHPIJ77Q.js.map → chunk-HDMBSLDC.js.map} +0 -0
- /package/dist/{chunk-B76JC5B2.js.map → chunk-TJGGIEF6.js.map} +0 -0
- /package/dist/{chunk-4OZFQVSR.js.map → chunk-TX6PB3DY.js.map} +0 -0
- /package/dist/{chunk-2XFOONKH.js.map → chunk-VBZXCX7Y.js.map} +0 -0
- /package/dist/{chunk-SAYUMANU.js.map → chunk-Y47LJKXD.js.map} +0 -0
- /package/dist/{chunk-IGYCJIU7.js.map → chunk-YN5ZBBQM.js.map} +0 -0
- /package/dist/{chunk-AO23SZBG.js.map → chunk-ZYJ2SBF7.js.map} +0 -0
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
SEARCH_AGENTS_PAGE_SIZE,
|
|
3
|
-
replaceScheduleShareSearch,
|
|
4
|
-
searchAllAgents,
|
|
5
|
-
useSearchAgentsList
|
|
6
|
-
} from "./chunk-AO23SZBG.js";
|
|
7
1
|
import {
|
|
8
2
|
Icon,
|
|
9
3
|
PageHeader,
|
|
@@ -14,7 +8,13 @@ import {
|
|
|
14
8
|
sidebarRailButtonClassName,
|
|
15
9
|
useCompactLayout,
|
|
16
10
|
useDraftCatalog
|
|
17
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TX6PB3DY.js";
|
|
12
|
+
import {
|
|
13
|
+
SEARCH_AGENTS_PAGE_SIZE,
|
|
14
|
+
replaceScheduleShareSearch,
|
|
15
|
+
searchAllAgents,
|
|
16
|
+
useSearchAgentsList
|
|
17
|
+
} from "./chunk-ZYJ2SBF7.js";
|
|
18
18
|
import {
|
|
19
19
|
SESSION_CUSTOM_RANGE_MAX_DAYS,
|
|
20
20
|
SESSION_SHARE_CHANGE_EVENT,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
useServer,
|
|
44
44
|
useServerCapabilities,
|
|
45
45
|
useShellMode
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-7S7A3PNP.js";
|
|
47
47
|
import {
|
|
48
48
|
useAuiState
|
|
49
49
|
} from "./chunk-M6MHLVSO.js";
|
|
@@ -2873,7 +2873,7 @@ function AgentSessionMetricsStrip({ metrics }) {
|
|
|
2873
2873
|
metrics.totalCostUsd == null ? "@min-[48rem]:grid-cols-7" : "@min-[48rem]:grid-cols-8"
|
|
2874
2874
|
),
|
|
2875
2875
|
children: [
|
|
2876
|
-
/* @__PURE__ */ jsx34(SessionMetricTile, { id: "turns", label: "Turns", value: metrics.totalTurns }),
|
|
2876
|
+
/* @__PURE__ */ jsx34(SessionMetricTile, { id: "turns", label: metrics.totalTurns > 1 ? "Turns" : "Turn", value: metrics.totalTurns }),
|
|
2877
2877
|
/* @__PURE__ */ jsx34(
|
|
2878
2878
|
SessionMetricTile,
|
|
2879
2879
|
{
|
|
@@ -4744,7 +4744,7 @@ function ChatFileDownload({
|
|
|
4744
4744
|
}
|
|
4745
4745
|
|
|
4746
4746
|
// src/hooks/useChatChromeActionsVisible.ts
|
|
4747
|
-
import {
|
|
4747
|
+
import { useTrueForgeAgentSpec } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
4748
4748
|
|
|
4749
4749
|
// src/utils/isNewChatView.ts
|
|
4750
4750
|
var isNewChatView = (s) => s.thread.messages.length === 0 && (!s.thread.isLoading || s.threads.isLoading) && s.threadListItem.remoteId == null;
|
|
@@ -4775,7 +4775,7 @@ function useNamedAgentHeaderVisible() {
|
|
|
4775
4775
|
}
|
|
4776
4776
|
function useSaveAgentVisible() {
|
|
4777
4777
|
const shell = useOptionalShellMode();
|
|
4778
|
-
const { agentSpec } =
|
|
4778
|
+
const { agentSpec } = useTrueForgeAgentSpec();
|
|
4779
4779
|
if (shell == null || shell.mode.status !== "active" || !shell.mode.isMutable || !shell.mode.isCreateAgent) {
|
|
4780
4780
|
return false;
|
|
4781
4781
|
}
|
|
@@ -6924,15 +6924,18 @@ var useMCPAuth = ({ callbackPath } = {}) => {
|
|
|
6924
6924
|
}) => {
|
|
6925
6925
|
const channel = new BroadcastChannel(MCP_AUTH_POPUP_CHANNEL);
|
|
6926
6926
|
let popup = null;
|
|
6927
|
-
const
|
|
6927
|
+
const cleanupChannel = () => {
|
|
6928
6928
|
channel.close();
|
|
6929
|
+
popupCleanupRef.current.delete(cleanupWithPopup);
|
|
6930
|
+
};
|
|
6931
|
+
const cleanupWithPopup = () => {
|
|
6932
|
+
cleanupChannel();
|
|
6929
6933
|
popup?.close();
|
|
6930
|
-
popupCleanupRef.current.delete(cleanup);
|
|
6931
6934
|
};
|
|
6932
6935
|
channel.onmessage = (event) => {
|
|
6933
6936
|
if (!isPopupMessage(event.data) || event.data.popupUid !== popupUid) return;
|
|
6934
6937
|
const { isSuccess } = event.data;
|
|
6935
|
-
|
|
6938
|
+
cleanupChannel();
|
|
6936
6939
|
if (!isSuccess) {
|
|
6937
6940
|
if (activeAttemptsRef.current.delete(attempt)) callback(false);
|
|
6938
6941
|
return;
|
|
@@ -6941,10 +6944,10 @@ var useMCPAuth = ({ callbackPath } = {}) => {
|
|
|
6941
6944
|
activeAttemptsRef.current.delete(attempt);
|
|
6942
6945
|
});
|
|
6943
6946
|
};
|
|
6944
|
-
popupCleanupRef.current.add(
|
|
6947
|
+
popupCleanupRef.current.add(cleanupWithPopup);
|
|
6945
6948
|
popup = window.open(authorizationEndpoint, "_blank", "popup=true");
|
|
6946
6949
|
if (!popup) {
|
|
6947
|
-
|
|
6950
|
+
cleanupWithPopup();
|
|
6948
6951
|
throw new Error("Popup blocked. Please allow pop-ups to authorize the MCP server.");
|
|
6949
6952
|
}
|
|
6950
6953
|
popup.focus();
|
|
@@ -8824,13 +8827,13 @@ function useIsMobile() {
|
|
|
8824
8827
|
}
|
|
8825
8828
|
|
|
8826
8829
|
// src/atoms/draft/DraftReasoningEffortSelector.tsx
|
|
8827
|
-
import {
|
|
8830
|
+
import { useTrueForgeAgentSpec as useTrueForgeAgentSpec2, useTrueForgeUpdateAgentSpec } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
8828
8831
|
import { useEffect as useEffect18, useId as useId9, useRef as useRef14, useState as useState32 } from "react";
|
|
8829
8832
|
import { Fragment as Fragment13, jsx as jsx83, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
8830
8833
|
function DraftReasoningEffortSelector({ disabled, isRunning }) {
|
|
8831
8834
|
const { models, ensureLoaded } = useDraftCatalog();
|
|
8832
|
-
const { agentSpec } =
|
|
8833
|
-
const updateAgentSpec =
|
|
8835
|
+
const { agentSpec } = useTrueForgeAgentSpec2();
|
|
8836
|
+
const updateAgentSpec = useTrueForgeUpdateAgentSpec();
|
|
8834
8837
|
const [open, setOpen] = useState32(false);
|
|
8835
8838
|
const containerRef = useRef14(null);
|
|
8836
8839
|
const clearedStickyEffortForModelRef = useRef14(null);
|
|
@@ -8992,7 +8995,7 @@ function DraftComposerRightSection({ disabled, isRunning }) {
|
|
|
8992
8995
|
}
|
|
8993
8996
|
|
|
8994
8997
|
// src/atoms/draft/DraftCompositeSelector.tsx
|
|
8995
|
-
import {
|
|
8998
|
+
import { useTrueForgeAgentSpec as useTrueForgeAgentSpec3, useTrueForgeUpdateAgentSpec as useTrueForgeUpdateAgentSpec2 } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
8996
8999
|
import { useCallback as useCallback11, useEffect as useEffect19, useId as useId10, useMemo as useMemo8, useRef as useRef15, useState as useState33 } from "react";
|
|
8997
9000
|
import { Fragment as Fragment14, jsx as jsx85, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
8998
9001
|
function draftMountsFromSpec(value) {
|
|
@@ -9176,8 +9179,8 @@ function DraftCompositeSelector({ disabled, isRunning, onAttach }) {
|
|
|
9176
9179
|
const capabilities = useServerCapabilities();
|
|
9177
9180
|
const settingsCatalog = useOptionalCatalogServer();
|
|
9178
9181
|
const shell = useOptionalShellMode();
|
|
9179
|
-
const { agentSpec } =
|
|
9180
|
-
const updateAgentSpec =
|
|
9182
|
+
const { agentSpec } = useTrueForgeAgentSpec3();
|
|
9183
|
+
const updateAgentSpec = useTrueForgeUpdateAgentSpec2();
|
|
9181
9184
|
const [open, setOpen] = useState33(false);
|
|
9182
9185
|
const [tab, setTab] = useState33("connectors");
|
|
9183
9186
|
const [query, setQuery] = useState33("");
|
|
@@ -9546,13 +9549,13 @@ function DraftCompositeSelector({ disabled, isRunning, onAttach }) {
|
|
|
9546
9549
|
}
|
|
9547
9550
|
|
|
9548
9551
|
// src/atoms/draft/DraftModelSelector.tsx
|
|
9549
|
-
import {
|
|
9552
|
+
import { useTrueForgeAgentSpec as useTrueForgeAgentSpec4, useTrueForgeUpdateAgentSpec as useTrueForgeUpdateAgentSpec3 } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
9550
9553
|
import { useEffect as useEffect20, useId as useId11, useRef as useRef16, useState as useState34 } from "react";
|
|
9551
9554
|
import { jsx as jsx86, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9552
9555
|
function DraftModelSelector({ disabled, isRunning }) {
|
|
9553
9556
|
const { models, loading, ensureLoaded } = useDraftCatalog();
|
|
9554
|
-
const { agentSpec } =
|
|
9555
|
-
const updateAgentSpec =
|
|
9557
|
+
const { agentSpec } = useTrueForgeAgentSpec4();
|
|
9558
|
+
const updateAgentSpec = useTrueForgeUpdateAgentSpec3();
|
|
9556
9559
|
const catalog = useOptionalCatalogServer();
|
|
9557
9560
|
const shell = useOptionalShellMode();
|
|
9558
9561
|
const [open, setOpen] = useState34(false);
|
|
@@ -10366,14 +10369,14 @@ function SandboxToolCallCard({
|
|
|
10366
10369
|
|
|
10367
10370
|
// src/atoms/SaveAgentButton.tsx
|
|
10368
10371
|
import {
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
} from "@truefoundry/assistant-ui-runtime";
|
|
10372
|
+
useTrueForgeAdoptAgentSpec,
|
|
10373
|
+
useTrueForgeAgentSpec as useTrueForgeAgentSpec6,
|
|
10374
|
+
useTrueForgeFlushAgentSpec
|
|
10375
|
+
} from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
10373
10376
|
import { useRef as useRef20, useState as useState37 } from "react";
|
|
10374
10377
|
|
|
10375
10378
|
// src/atoms/draft/AgentConfigInstructionsContext.tsx
|
|
10376
|
-
import {
|
|
10379
|
+
import { useTrueForgeAgentSpec as useTrueForgeAgentSpec5, useTrueForgeUpdateAgentSpec as useTrueForgeUpdateAgentSpec4 } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
10377
10380
|
import { createContext as createContext5, useCallback as useCallback13, useContext as useContext6, useMemo as useMemo11 } from "react";
|
|
10378
10381
|
|
|
10379
10382
|
// src/hooks/useDebouncedAgentInstructions.ts
|
|
@@ -10434,8 +10437,8 @@ function useDebouncedAgentInstructions({
|
|
|
10434
10437
|
import { jsx as jsx97 } from "react/jsx-runtime";
|
|
10435
10438
|
var AgentConfigInstructionsContext = createContext5(null);
|
|
10436
10439
|
function AgentConfigInstructionsProvider({ children }) {
|
|
10437
|
-
const { agentSpec } =
|
|
10438
|
-
const updateAgentSpec =
|
|
10440
|
+
const { agentSpec } = useTrueForgeAgentSpec5();
|
|
10441
|
+
const updateAgentSpec = useTrueForgeUpdateAgentSpec4();
|
|
10439
10442
|
const commit = useCallback13((instructions) => updateAgentSpec?.({ instructions }), [updateAgentSpec]);
|
|
10440
10443
|
const { draft, onChange, flush } = useDebouncedAgentInstructions({
|
|
10441
10444
|
value: agentSpec?.instructions ?? "",
|
|
@@ -10472,11 +10475,11 @@ function SaveAgentButtonContent({
|
|
|
10472
10475
|
children,
|
|
10473
10476
|
instructionsOverride
|
|
10474
10477
|
}) {
|
|
10475
|
-
const { agentSpec, draftSessionId } =
|
|
10478
|
+
const { agentSpec, draftSessionId } = useTrueForgeAgentSpec6();
|
|
10476
10479
|
const agentSpecRef = useRef20(agentSpec);
|
|
10477
10480
|
agentSpecRef.current = agentSpec;
|
|
10478
|
-
const flushAgentSpec =
|
|
10479
|
-
const adoptAgentSpec =
|
|
10481
|
+
const flushAgentSpec = useTrueForgeFlushAgentSpec();
|
|
10482
|
+
const adoptAgentSpec = useTrueForgeAdoptAgentSpec();
|
|
10480
10483
|
const builder = useOptionalServer();
|
|
10481
10484
|
const shell = useOptionalShellMode();
|
|
10482
10485
|
const agentId = shell?.mode.status === "active" ? shell.mode.agentId : void 0;
|
|
@@ -13295,7 +13298,7 @@ function AgentMetricsContainer({
|
|
|
13295
13298
|
|
|
13296
13299
|
// src/containers/AgentSessionTimelineContainer.tsx
|
|
13297
13300
|
import { ThreadPrimitive } from "@assistant-ui/react";
|
|
13298
|
-
import { convertTurnsToThreadMessages } from "@truefoundry/assistant-ui-runtime";
|
|
13301
|
+
import { convertTurnsToThreadMessages } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
13299
13302
|
import { Suspense as Suspense3, useCallback as useCallback22, useEffect as useEffect30, useMemo as useMemo17, useRef as useRef29, useState as useState51 } from "react";
|
|
13300
13303
|
|
|
13301
13304
|
// src/utils/buildSessionMetrics.ts
|
|
@@ -14062,7 +14065,7 @@ function buildSessionTurnViews(itemsAsc) {
|
|
|
14062
14065
|
// src/containers/AssistantMessageContainer.tsx
|
|
14063
14066
|
import { useActionBarCopy, useMessageError, useThreadIsRunning } from "@assistant-ui/core/react";
|
|
14064
14067
|
import { MessagePrimitive as MessagePrimitive2, useAuiState as useAuiState6 } from "@assistant-ui/react";
|
|
14065
|
-
import {
|
|
14068
|
+
import { useTrueForgeResumeUnavailable } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
14066
14069
|
|
|
14067
14070
|
// src/utils/computeAgentStepsSplit.ts
|
|
14068
14071
|
function computeAgentStepsSplit(parts, isRunning) {
|
|
@@ -14142,7 +14145,7 @@ import {
|
|
|
14142
14145
|
useAuiState as useAuiState3,
|
|
14143
14146
|
useSmooth
|
|
14144
14147
|
} from "@assistant-ui/react";
|
|
14145
|
-
import {
|
|
14148
|
+
import { useTrueForgeDownloadSandboxFile } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
14146
14149
|
import { useCallback as useCallback17, useMemo as useMemo14, useRef as useRef26 } from "react";
|
|
14147
14150
|
|
|
14148
14151
|
// src/hooks/useThrottledMarkdownText.ts
|
|
@@ -14216,7 +14219,7 @@ function triggerBrowserDownload(blob, filename) {
|
|
|
14216
14219
|
function AssistantTextContainer() {
|
|
14217
14220
|
const Markdown2 = useSlot("Markdown");
|
|
14218
14221
|
const toaster = useToasterOptional();
|
|
14219
|
-
const downloadSandboxFile =
|
|
14222
|
+
const downloadSandboxFile = useTrueForgeDownloadSandboxFile();
|
|
14220
14223
|
const downloadRef = useRef26({ downloadSandboxFile, toaster });
|
|
14221
14224
|
downloadRef.current = { downloadSandboxFile, toaster };
|
|
14222
14225
|
const partState = useAuiState3((s) => s.part);
|
|
@@ -14350,7 +14353,7 @@ import {
|
|
|
14350
14353
|
MessagePrimitive,
|
|
14351
14354
|
useToolCallElapsed
|
|
14352
14355
|
} from "@assistant-ui/react";
|
|
14353
|
-
import {
|
|
14356
|
+
import { useTrueForgeRespondToToolApproval } from "@truefoundry/trueforge-assistant-ui-runtime";
|
|
14354
14357
|
import { useCallback as useCallback21, useState as useState49 } from "react";
|
|
14355
14358
|
|
|
14356
14359
|
// src/containers/nestedApprovalBridge.ts
|
|
@@ -14532,7 +14535,7 @@ function NestedSubAgentAssistantMessage() {
|
|
|
14532
14535
|
}
|
|
14533
14536
|
function ToolApprovalSlot({ part }) {
|
|
14534
14537
|
const isNestedReadonly = useNestedApprovalBridge();
|
|
14535
|
-
const respondToNestedApproval =
|
|
14538
|
+
const respondToNestedApproval = useTrueForgeRespondToToolApproval();
|
|
14536
14539
|
const respond = (response) => {
|
|
14537
14540
|
if (!isNestedReadonly) {
|
|
14538
14541
|
part.respondToApproval(response);
|
|
@@ -14776,7 +14779,7 @@ function AssistantMessageContainer() {
|
|
|
14776
14779
|
const MessageErrorBanner2 = useSlot("MessageErrorBanner");
|
|
14777
14780
|
const MessageIndicator2 = useSlot("MessageIndicator");
|
|
14778
14781
|
const isThreadRunning = useThreadIsRunning();
|
|
14779
|
-
const resumeUnavailable =
|
|
14782
|
+
const resumeUnavailable = useTrueForgeResumeUnavailable();
|
|
14780
14783
|
const error = useMessageError();
|
|
14781
14784
|
const createdAt = useAuiState6((s) => s.message.createdAt);
|
|
14782
14785
|
const isMessageRunning = useAuiState6((s) => s.message.status?.type === "running");
|
|
@@ -15172,28 +15175,28 @@ function SessionTurnSection({
|
|
|
15172
15175
|
}
|
|
15173
15176
|
|
|
15174
15177
|
// src/theme/defaultSlots.ts
|
|
15175
|
-
var AgentOverview = lazy(() => import("./AgentOverview-
|
|
15178
|
+
var AgentOverview = lazy(() => import("./AgentOverview-BFU7EO4Y.js"));
|
|
15176
15179
|
var AgentSessions = lazy(async () => {
|
|
15177
|
-
const mod = await import("./AgentSessions-
|
|
15180
|
+
const mod = await import("./AgentSessions-GDLBXFIK.js");
|
|
15178
15181
|
return { default: mod.AgentSessions };
|
|
15179
15182
|
});
|
|
15180
15183
|
var AgentCodeSnippets = lazy(
|
|
15181
|
-
() => import("./AgentCodeSnippets-
|
|
15184
|
+
() => import("./AgentCodeSnippets-BPC6TD7K.js")
|
|
15182
15185
|
);
|
|
15183
15186
|
var SchedulesPage = lazy(async () => {
|
|
15184
|
-
const mod = await import("./SchedulesPage-
|
|
15187
|
+
const mod = await import("./SchedulesPage-ZO3PJY4J.js");
|
|
15185
15188
|
return { default: mod.SchedulesPage };
|
|
15186
15189
|
});
|
|
15187
15190
|
var AgentSessionEventTimeline = lazy(async () => {
|
|
15188
|
-
const mod = await import("./AgentSessionEventTimeline-
|
|
15191
|
+
const mod = await import("./AgentSessionEventTimeline-ATVBTYDF.js");
|
|
15189
15192
|
return { default: mod.AgentSessionEventTimeline };
|
|
15190
15193
|
});
|
|
15191
15194
|
var AgentSessionEventTimelineChart = lazy(async () => {
|
|
15192
|
-
const mod = await import("./AgentSessionEventTimelineChart-
|
|
15195
|
+
const mod = await import("./AgentSessionEventTimelineChart-H577STKW.js");
|
|
15193
15196
|
return { default: mod.AgentSessionEventTimelineChart };
|
|
15194
15197
|
});
|
|
15195
15198
|
var AgentMetricChart = lazy(async () => {
|
|
15196
|
-
const mod = await import("./AgentMetricChart-
|
|
15199
|
+
const mod = await import("./AgentMetricChart-T6DZZ37Y.js");
|
|
15197
15200
|
return { default: mod.AgentMetricChart };
|
|
15198
15201
|
});
|
|
15199
15202
|
var defaultSlots = {
|
|
@@ -15578,4 +15581,4 @@ export {
|
|
|
15578
15581
|
UserMessageContainer,
|
|
15579
15582
|
defaultSlots
|
|
15580
15583
|
};
|
|
15581
|
-
//# sourceMappingURL=chunk-
|
|
15584
|
+
//# sourceMappingURL=chunk-MLMR26WQ.js.map
|