@tutti-os/agent-gui 0.0.142 → 0.0.144
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/README.md +6 -0
- package/dist/agent-gui.js +3 -3
- package/dist/agents.d.ts +3 -3
- package/dist/agents.js +3 -3
- package/dist/app/renderer/agentactivity.css +14 -1
- package/dist/{chunk-C4ACYHOY.js → chunk-66JZ7BQM.js} +3 -3
- package/dist/chunk-66JZ7BQM.js.map +1 -0
- package/dist/{chunk-LIQWMDME.js → chunk-JME2T7T7.js} +4 -4
- package/dist/{chunk-LIQWMDME.js.map → chunk-JME2T7T7.js.map} +1 -1
- package/dist/{chunk-QRBQ6OHG.js → chunk-Z2J3NPPX.js} +797 -732
- package/dist/chunk-Z2J3NPPX.js.map +1 -0
- package/dist/index.d.ts +30 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/workbench/contribution.js +2 -2
- package/dist/workbench/index.js +2 -2
- package/dist/workbench/tool-sidebar/index.d.ts +4 -2
- package/dist/workbench/tool-sidebar/index.js +9 -2
- package/dist/workbench/tool-sidebar/index.js.map +1 -1
- package/package.json +13 -13
- package/dist/chunk-C4ACYHOY.js.map +0 -1
- package/dist/chunk-QRBQ6OHG.js.map +0 -1
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
resolveAgentGuiSessionProviderFlatIconUrl,
|
|
13
13
|
resolveNextAgentGUIConversationRailWidthPx,
|
|
14
14
|
shouldAutoCollapseAgentGUIConversationRail
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JME2T7T7.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_PROVIDERS,
|
|
18
18
|
AGENT_PROVIDER_LABEL,
|
|
@@ -88,8 +88,8 @@ import {
|
|
|
88
88
|
} from "./chunk-TJW5NWWH.js";
|
|
89
89
|
import {
|
|
90
90
|
normalizeAgentGUIAgents,
|
|
91
|
-
|
|
92
|
-
} from "./chunk-
|
|
91
|
+
projectAgentGUIAgentsToTargets
|
|
92
|
+
} from "./chunk-66JZ7BQM.js";
|
|
93
93
|
import {
|
|
94
94
|
AGENT_MENTION_FILTER_TAB_ORDER,
|
|
95
95
|
AgentMentionSearchController,
|
|
@@ -13319,7 +13319,7 @@ import {
|
|
|
13319
13319
|
useEffect as useEffect38,
|
|
13320
13320
|
useMemo as useMemo41,
|
|
13321
13321
|
useRef as useRef49,
|
|
13322
|
-
useState as
|
|
13322
|
+
useState as useState41
|
|
13323
13323
|
} from "react";
|
|
13324
13324
|
import { TooltipProvider as TooltipProvider5 } from "@tutti-os/ui-system";
|
|
13325
13325
|
|
|
@@ -14253,7 +14253,7 @@ import {
|
|
|
14253
14253
|
useCallback as useCallback44,
|
|
14254
14254
|
useMemo as useMemo32,
|
|
14255
14255
|
useRef as useRef36,
|
|
14256
|
-
useState as
|
|
14256
|
+
useState as useState27
|
|
14257
14257
|
} from "react";
|
|
14258
14258
|
import { Tooltip as Tooltip5, TooltipContent as TooltipContent5, TooltipTrigger as TooltipTrigger5 } from "@tutti-os/ui-system";
|
|
14259
14259
|
|
|
@@ -14478,10 +14478,10 @@ function changeAgentGUIProviderManagerVisibility(input) {
|
|
|
14478
14478
|
// agent-gui/agentGuiNode/view/AgentGUIEmptyState.tsx
|
|
14479
14479
|
import { memo as memo3, useMemo as useMemo31 } from "react";
|
|
14480
14480
|
import {
|
|
14481
|
-
Select as
|
|
14482
|
-
SelectContent as
|
|
14483
|
-
SelectItem as
|
|
14484
|
-
SelectTrigger as
|
|
14481
|
+
Select as Select5,
|
|
14482
|
+
SelectContent as SelectContent5,
|
|
14483
|
+
SelectItem as SelectItem5,
|
|
14484
|
+
SelectTrigger as SelectTrigger5,
|
|
14485
14485
|
cn as cn6
|
|
14486
14486
|
} from "@tutti-os/ui-system";
|
|
14487
14487
|
|
|
@@ -16182,7 +16182,7 @@ function AgentSessionChrome({
|
|
|
16182
16182
|
}
|
|
16183
16183
|
|
|
16184
16184
|
// agent-gui/agentGuiNode/AgentComposer.tsx
|
|
16185
|
-
import { useEffect as useEffect28, useRef as useRef33, useState as
|
|
16185
|
+
import { useEffect as useEffect28, useRef as useRef33, useState as useState23 } from "react";
|
|
16186
16186
|
import { repairMentionPaletteHighlight } from "@tutti-os/ui-rich-text/at-panel";
|
|
16187
16187
|
|
|
16188
16188
|
// agent-gui/agentGuiNode/AgentSlashStatusPanel.tsx
|
|
@@ -17840,6 +17840,7 @@ function AgentComposerHandoffAnimation() {
|
|
|
17840
17840
|
"aria-hidden": "true",
|
|
17841
17841
|
className: AgentGUINode_styles_default.composerHandoffAnimatedIcon,
|
|
17842
17842
|
"data-active": isLoaded ? "true" : void 0,
|
|
17843
|
+
decoding: "async",
|
|
17843
17844
|
draggable: false,
|
|
17844
17845
|
src: handoff_clap_default,
|
|
17845
17846
|
onLoad: () => {
|
|
@@ -23885,10 +23886,10 @@ function ComposerDraftAttachments({
|
|
|
23885
23886
|
// agent-gui/agentGuiNode/composer/ComposerFooter.tsx
|
|
23886
23887
|
import { ListChecks as ListChecks2, Target as Target2, X as X5 } from "lucide-react";
|
|
23887
23888
|
import {
|
|
23888
|
-
Select as
|
|
23889
|
-
SelectContent as
|
|
23890
|
-
SelectItem as
|
|
23891
|
-
SelectTrigger as
|
|
23889
|
+
Select as Select3,
|
|
23890
|
+
SelectContent as SelectContent3,
|
|
23891
|
+
SelectItem as SelectItem3,
|
|
23892
|
+
SelectTrigger as SelectTrigger3,
|
|
23892
23893
|
Tooltip as Tooltip3,
|
|
23893
23894
|
TooltipContent as TooltipContent3,
|
|
23894
23895
|
TooltipProvider as TooltipProvider3,
|
|
@@ -23901,6 +23902,15 @@ var add_lined_default = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3
|
|
|
23901
23902
|
// app/renderer/assets/icons/@-lined.svg
|
|
23902
23903
|
var lined_default = "data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%3Cpath%20d%3D%22M7.33754%202.03697C9.58184%200.986806%2012.1154%200.724603%2014.527%201.29381C16.9386%201.8631%2019.0879%203.23075%2020.6257%205.17369C22.1632%207.11667%2022.9996%209.52209%2022.9997%2011.9999V12.9999C22.9997%2014.0607%2022.5779%2015.0778%2021.8278%2015.828C21.0777%2016.5781%2020.0605%2016.9999%2018.9997%2016.9999C17.9389%2016.9998%2016.9216%2016.578%2016.1715%2015.828C16.0122%2015.6687%2015.8687%2015.4966%2015.7399%2015.3153C14.8239%2016.3478%2013.4885%2016.9999%2011.9997%2016.9999C9.23839%2016.9997%206.99965%2014.7612%206.99965%2011.9999C6.99973%209.23862%209.23844%207.00005%2011.9997%206.99986C13.125%206.99986%2014.1641%207.37146%2014.9997%207.99888C15.0003%207.44723%2015.4479%207.00005%2015.9997%206.99986C16.5519%206.99986%2016.9996%207.44764%2016.9997%207.99986V12.9999C16.9997%2013.5302%2017.2107%2014.0389%2017.5856%2014.4139C17.9606%2014.7889%2018.4694%2014.9998%2018.9997%2014.9999C19.5301%2014.9999%2020.0387%2014.7889%2020.4137%2014.4139C20.7888%2014.0389%2020.9997%2013.5303%2020.9997%2012.9999V11.9999C20.9996%209.97263%2020.3153%208.00459%2019.0573%206.4149C17.7991%204.82524%2016.0401%203.70686%2014.067%203.24107C12.094%202.77546%2010.0213%202.98932%208.1852%203.84849C6.34918%204.70773%204.85649%206.1614%203.94984%207.97447C3.04319%209.78779%202.77575%2011.8551%203.19008%2013.8397C3.6045%2015.8241%204.67674%2017.6111%206.23305%2018.91C7.78948%2020.2089%209.73975%2020.9442%2011.7663%2020.9969C13.7928%2021.0495%2015.7783%2020.4163%2017.4001%2019.2001C17.8418%2018.8689%2018.4681%2018.9587%2018.7995%2019.4003C19.1307%2019.8421%2019.0411%2020.4683%2018.5993%2020.7997C16.617%2022.2863%2014.1905%2023.0603%2011.7135%2022.996C9.23674%2022.9314%206.85405%2022.0327%204.9518%2020.4452C3.04947%2018.8574%201.73851%2016.6735%201.23206%2014.2479C0.72574%2011.8225%201.05282%209.29706%202.16078%207.08092C3.26889%204.86469%205.09332%203.08721%207.33754%202.03697ZM11.9997%208.99986C10.343%209.00005%208.99973%2010.3432%208.99966%2011.9999C8.99966%2013.6566%2010.343%2014.9997%2011.9997%2014.9999C13.6565%2014.9999%2014.9997%2013.6567%2014.9997%2011.9999C14.9996%2010.3431%2013.6565%208.99986%2011.9997%208.99986Z%22%20fill%3D%22black%22%2F%3E%0A%3C%2Fsvg%3E%0A";
|
|
23903
23904
|
|
|
23905
|
+
// agent-gui/agentGuiNode/composer/AgentHandoffMenu.tsx
|
|
23906
|
+
import { useState as useState21 } from "react";
|
|
23907
|
+
import {
|
|
23908
|
+
Select as Select2,
|
|
23909
|
+
SelectContent as SelectContent2,
|
|
23910
|
+
SelectItem as SelectItem2,
|
|
23911
|
+
SelectTrigger as SelectTrigger2
|
|
23912
|
+
} from "@tutti-os/ui-system";
|
|
23913
|
+
|
|
23904
23914
|
// agent-gui/agentGuiNode/composer/handoffTargetPresentation.ts
|
|
23905
23915
|
function resolveHandoffTargetOwnershipLabel(target, labels) {
|
|
23906
23916
|
const ownerLabel = target.ownerLabel?.trim() ?? "";
|
|
@@ -23913,8 +23923,161 @@ function resolveHandoffTargetOwnershipLabel(target, labels) {
|
|
|
23913
23923
|
return null;
|
|
23914
23924
|
}
|
|
23915
23925
|
|
|
23926
|
+
// agent-gui/agentGuiNode/composer/AgentHandoffMenu.tsx
|
|
23927
|
+
import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
23928
|
+
function AgentHandoffMenu({
|
|
23929
|
+
align = "start",
|
|
23930
|
+
contentClassName,
|
|
23931
|
+
disabled = false,
|
|
23932
|
+
iconOnly = false,
|
|
23933
|
+
isolateTriggerEvents = false,
|
|
23934
|
+
labels,
|
|
23935
|
+
onSelect,
|
|
23936
|
+
targets,
|
|
23937
|
+
testId,
|
|
23938
|
+
triggerClassName,
|
|
23939
|
+
triggerLabel = labels.action
|
|
23940
|
+
}) {
|
|
23941
|
+
const [isIconPlaying, setIsIconPlaying] = useState21(false);
|
|
23942
|
+
const menuDisabled = disabled || targets.length === 0;
|
|
23943
|
+
return /* @__PURE__ */ jsx36(
|
|
23944
|
+
"span",
|
|
23945
|
+
{
|
|
23946
|
+
className: "contents",
|
|
23947
|
+
onClick: isolateTriggerEvents ? (event) => {
|
|
23948
|
+
event.stopPropagation();
|
|
23949
|
+
} : void 0,
|
|
23950
|
+
onKeyDown: isolateTriggerEvents ? (event) => {
|
|
23951
|
+
event.stopPropagation();
|
|
23952
|
+
} : void 0,
|
|
23953
|
+
onPointerDown: isolateTriggerEvents ? (event) => {
|
|
23954
|
+
event.stopPropagation();
|
|
23955
|
+
} : void 0,
|
|
23956
|
+
children: /* @__PURE__ */ jsxs26(
|
|
23957
|
+
Select2,
|
|
23958
|
+
{
|
|
23959
|
+
value: HANDOFF_SELECT_IDLE_VALUE,
|
|
23960
|
+
disabled: menuDisabled,
|
|
23961
|
+
onValueChange: (nextTargetId) => {
|
|
23962
|
+
const target = targets.find(
|
|
23963
|
+
(candidate) => candidate.targetId === nextTargetId
|
|
23964
|
+
);
|
|
23965
|
+
if (!target || target.disabled === true) {
|
|
23966
|
+
return;
|
|
23967
|
+
}
|
|
23968
|
+
onSelect(target);
|
|
23969
|
+
},
|
|
23970
|
+
children: [
|
|
23971
|
+
/* @__PURE__ */ jsx36(
|
|
23972
|
+
SelectTrigger2,
|
|
23973
|
+
{
|
|
23974
|
+
size: "sm",
|
|
23975
|
+
"aria-label": labels.action,
|
|
23976
|
+
title: labels.tooltip,
|
|
23977
|
+
"data-testid": testId,
|
|
23978
|
+
onClick: isolateTriggerEvents ? (event) => {
|
|
23979
|
+
event.stopPropagation();
|
|
23980
|
+
} : void 0,
|
|
23981
|
+
onKeyDown: isolateTriggerEvents ? (event) => {
|
|
23982
|
+
event.stopPropagation();
|
|
23983
|
+
} : void 0,
|
|
23984
|
+
onPointerDown: isolateTriggerEvents ? (event) => {
|
|
23985
|
+
event.stopPropagation();
|
|
23986
|
+
} : void 0,
|
|
23987
|
+
onBlur: () => {
|
|
23988
|
+
setIsIconPlaying(false);
|
|
23989
|
+
},
|
|
23990
|
+
onFocus: () => {
|
|
23991
|
+
setIsIconPlaying(true);
|
|
23992
|
+
},
|
|
23993
|
+
onMouseEnter: () => {
|
|
23994
|
+
setIsIconPlaying(true);
|
|
23995
|
+
},
|
|
23996
|
+
onMouseLeave: () => {
|
|
23997
|
+
setIsIconPlaying(false);
|
|
23998
|
+
},
|
|
23999
|
+
className: cn(
|
|
24000
|
+
AgentGUINode_styles_default.composerMenuTrigger,
|
|
24001
|
+
AgentGUINode_styles_default.composerProviderSelect,
|
|
24002
|
+
AgentGUINode_styles_default.composerHandoffTrigger,
|
|
24003
|
+
"w-auto max-w-[180px] [&>svg:last-child]:hidden",
|
|
24004
|
+
triggerClassName
|
|
24005
|
+
),
|
|
24006
|
+
children: /* @__PURE__ */ jsxs26("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
24007
|
+
/* @__PURE__ */ jsx36(
|
|
24008
|
+
AgentComposerHandoffIcon,
|
|
24009
|
+
{
|
|
24010
|
+
disabled: menuDisabled,
|
|
24011
|
+
isPlaying: isIconPlaying
|
|
24012
|
+
}
|
|
24013
|
+
),
|
|
24014
|
+
!iconOnly ? /* @__PURE__ */ jsx36("span", { className: "min-w-0 truncate", children: triggerLabel }) : null
|
|
24015
|
+
] })
|
|
24016
|
+
}
|
|
24017
|
+
),
|
|
24018
|
+
/* @__PURE__ */ jsx36(
|
|
24019
|
+
SelectContent2,
|
|
24020
|
+
{
|
|
24021
|
+
align,
|
|
24022
|
+
className: cn(
|
|
24023
|
+
AgentGUINode_styles_default.composerMenuContent,
|
|
24024
|
+
AgentGUINode_styles_default.composerHandoffMenuContent,
|
|
24025
|
+
"min-w-[190px]",
|
|
24026
|
+
contentClassName
|
|
24027
|
+
),
|
|
24028
|
+
"aria-label": labels.menu,
|
|
24029
|
+
children: targets.map((target) => {
|
|
24030
|
+
const ownershipLabel = resolveHandoffTargetOwnershipLabel(target, {
|
|
24031
|
+
self: labels.self,
|
|
24032
|
+
shared: labels.shared
|
|
24033
|
+
});
|
|
24034
|
+
return /* @__PURE__ */ jsx36(
|
|
24035
|
+
SelectItem2,
|
|
24036
|
+
{
|
|
24037
|
+
value: target.targetId,
|
|
24038
|
+
className: cn(AgentGUINode_styles_default.composerMenuItem, "gap-2 py-1.5"),
|
|
24039
|
+
disabled: target.disabled === true,
|
|
24040
|
+
children: /* @__PURE__ */ jsxs26("span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
24041
|
+
/* @__PURE__ */ jsxs26("span", { className: "relative size-5 shrink-0", children: [
|
|
24042
|
+
/* @__PURE__ */ jsx36(
|
|
24043
|
+
"img",
|
|
24044
|
+
{
|
|
24045
|
+
alt: "",
|
|
24046
|
+
"aria-hidden": "true",
|
|
24047
|
+
className: "size-5 rounded-[4px]",
|
|
24048
|
+
src: resolveComposerProviderTargetIconUrl(target)
|
|
24049
|
+
}
|
|
24050
|
+
),
|
|
24051
|
+
target.badge?.iconUrl ? /* @__PURE__ */ jsx36(
|
|
24052
|
+
"img",
|
|
24053
|
+
{
|
|
24054
|
+
alt: "",
|
|
24055
|
+
"aria-hidden": "true",
|
|
24056
|
+
className: "absolute -bottom-0.5 -right-0.5 size-2.5 rounded-full border border-[var(--background-fronted)] bg-[var(--background-fronted)] object-cover",
|
|
24057
|
+
src: target.badge.iconUrl
|
|
24058
|
+
}
|
|
24059
|
+
) : null
|
|
24060
|
+
] }),
|
|
24061
|
+
/* @__PURE__ */ jsxs26("span", { className: "flex min-w-0 flex-col gap-0.5", children: [
|
|
24062
|
+
/* @__PURE__ */ jsx36("span", { className: "min-w-0 truncate", children: target.label }),
|
|
24063
|
+
ownershipLabel ? /* @__PURE__ */ jsx36("span", { className: "min-w-0 truncate text-[11px] leading-none text-[var(--agent-gui-text-secondary)]", children: ownershipLabel }) : null
|
|
24064
|
+
] })
|
|
24065
|
+
] })
|
|
24066
|
+
},
|
|
24067
|
+
`${target.provider}:${target.targetId}`
|
|
24068
|
+
);
|
|
24069
|
+
})
|
|
24070
|
+
}
|
|
24071
|
+
)
|
|
24072
|
+
]
|
|
24073
|
+
}
|
|
24074
|
+
)
|
|
24075
|
+
}
|
|
24076
|
+
);
|
|
24077
|
+
}
|
|
24078
|
+
|
|
23916
24079
|
// agent-gui/agentGuiNode/composer/ComposerFooter.tsx
|
|
23917
|
-
import { Fragment as Fragment10, jsx as
|
|
24080
|
+
import { Fragment as Fragment10, jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
23918
24081
|
function ComposerFooter({
|
|
23919
24082
|
labels,
|
|
23920
24083
|
provider,
|
|
@@ -23935,8 +24098,6 @@ function ComposerFooter({
|
|
|
23935
24098
|
handoffDisabled,
|
|
23936
24099
|
effectiveHandoffLabel,
|
|
23937
24100
|
effectiveHandoffMenuLabel,
|
|
23938
|
-
isHandoffIconPlaying,
|
|
23939
|
-
setIsHandoffIconPlaying,
|
|
23940
24101
|
handoffMenuTargets,
|
|
23941
24102
|
onHandoffConversation,
|
|
23942
24103
|
showProviderSelect,
|
|
@@ -23955,11 +24116,11 @@ function ComposerFooter({
|
|
|
23955
24116
|
onClearGoalMode: clearGoalModeBadge
|
|
23956
24117
|
}) {
|
|
23957
24118
|
const showSettingsLoadingPlaceholders = composerSettings.isSettingsLoading;
|
|
23958
|
-
return /* @__PURE__ */
|
|
23959
|
-
/* @__PURE__ */
|
|
23960
|
-
/* @__PURE__ */
|
|
23961
|
-
previewMode ? /* @__PURE__ */
|
|
23962
|
-
/* @__PURE__ */
|
|
24119
|
+
return /* @__PURE__ */ jsx37(Fragment10, { children: /* @__PURE__ */ jsxs27("div", { className: AgentGUINode_styles_default.composerFooter, children: [
|
|
24120
|
+
/* @__PURE__ */ jsxs27("div", { className: composerStyles.footerGroup, children: [
|
|
24121
|
+
/* @__PURE__ */ jsxs27("div", { className: "inline-flex shrink-0 items-center gap-1", children: [
|
|
24122
|
+
previewMode ? /* @__PURE__ */ jsx37(TooltipProvider3, { delayDuration: 120, children: /* @__PURE__ */ jsxs27(Tooltip3, { children: [
|
|
24123
|
+
/* @__PURE__ */ jsx37(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
23963
24124
|
"button",
|
|
23964
24125
|
{
|
|
23965
24126
|
type: "button",
|
|
@@ -23969,7 +24130,7 @@ function ComposerFooter({
|
|
|
23969
24130
|
AgentGUINode_styles_default.composerReferenceTrigger,
|
|
23970
24131
|
"group w-auto justify-center text-[var(--agent-gui-text-secondary)]"
|
|
23971
24132
|
),
|
|
23972
|
-
children: /* @__PURE__ */
|
|
24133
|
+
children: /* @__PURE__ */ jsx37(
|
|
23973
24134
|
AgentComposerMaskIcon,
|
|
23974
24135
|
{
|
|
23975
24136
|
iconUrl: add_lined_default,
|
|
@@ -23978,9 +24139,9 @@ function ComposerFooter({
|
|
|
23978
24139
|
)
|
|
23979
24140
|
}
|
|
23980
24141
|
) }),
|
|
23981
|
-
/* @__PURE__ */
|
|
23982
|
-
] }) }) : /* @__PURE__ */
|
|
23983
|
-
|
|
24142
|
+
/* @__PURE__ */ jsx37(TooltipContent3, { side: "top", children: labels.addContent })
|
|
24143
|
+
] }) }) : /* @__PURE__ */ jsx37(
|
|
24144
|
+
Select3,
|
|
23984
24145
|
{
|
|
23985
24146
|
open: false,
|
|
23986
24147
|
value: workspaceReferenceSelectValue,
|
|
@@ -23995,8 +24156,8 @@ function ComposerFooter({
|
|
|
23995
24156
|
void handleWorkspaceReferencePicker();
|
|
23996
24157
|
}
|
|
23997
24158
|
},
|
|
23998
|
-
children: /* @__PURE__ */
|
|
23999
|
-
|
|
24159
|
+
children: /* @__PURE__ */ jsx37(
|
|
24160
|
+
SelectTrigger3,
|
|
24000
24161
|
{
|
|
24001
24162
|
size: "sm",
|
|
24002
24163
|
"aria-label": labels.referenceWorkspaceFiles,
|
|
@@ -24006,7 +24167,7 @@ function ComposerFooter({
|
|
|
24006
24167
|
AgentGUINode_styles_default.composerReferenceTrigger,
|
|
24007
24168
|
"group w-auto justify-center text-[var(--agent-gui-text-secondary)] [&>svg:last-child]:hidden"
|
|
24008
24169
|
),
|
|
24009
|
-
children: /* @__PURE__ */
|
|
24170
|
+
children: /* @__PURE__ */ jsx37(
|
|
24010
24171
|
AgentComposerMaskIcon,
|
|
24011
24172
|
{
|
|
24012
24173
|
iconUrl: add_lined_default,
|
|
@@ -24017,8 +24178,8 @@ function ComposerFooter({
|
|
|
24017
24178
|
)
|
|
24018
24179
|
}
|
|
24019
24180
|
),
|
|
24020
|
-
/* @__PURE__ */
|
|
24021
|
-
/* @__PURE__ */
|
|
24181
|
+
/* @__PURE__ */ jsx37(TooltipProvider3, { delayDuration: 120, children: /* @__PURE__ */ jsxs27(Tooltip3, { children: [
|
|
24182
|
+
/* @__PURE__ */ jsx37(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx37(
|
|
24022
24183
|
"button",
|
|
24023
24184
|
{
|
|
24024
24185
|
type: "button",
|
|
@@ -24031,7 +24192,7 @@ function ComposerFooter({
|
|
|
24031
24192
|
),
|
|
24032
24193
|
onMouseDown: (event) => event.preventDefault(),
|
|
24033
24194
|
onClick: handleMentionPaletteButton,
|
|
24034
|
-
children: /* @__PURE__ */
|
|
24195
|
+
children: /* @__PURE__ */ jsx37(
|
|
24035
24196
|
"span",
|
|
24036
24197
|
{
|
|
24037
24198
|
"aria-hidden": true,
|
|
@@ -24050,120 +24211,28 @@ function ComposerFooter({
|
|
|
24050
24211
|
)
|
|
24051
24212
|
}
|
|
24052
24213
|
) }),
|
|
24053
|
-
/* @__PURE__ */
|
|
24214
|
+
/* @__PURE__ */ jsx37(TooltipContent3, { side: "top", children: labels.mentionPalette })
|
|
24054
24215
|
] }) })
|
|
24055
24216
|
] }),
|
|
24056
|
-
showHandoffSelect ? /* @__PURE__ */
|
|
24057
|
-
|
|
24217
|
+
showHandoffSelect ? /* @__PURE__ */ jsx37(
|
|
24218
|
+
AgentHandoffMenu,
|
|
24058
24219
|
{
|
|
24059
|
-
value: HANDOFF_SELECT_IDLE_VALUE,
|
|
24060
24220
|
disabled: handoffDisabled,
|
|
24061
|
-
|
|
24062
|
-
|
|
24063
|
-
|
|
24064
|
-
|
|
24065
|
-
|
|
24066
|
-
|
|
24067
|
-
}
|
|
24068
|
-
onHandoffConversation?.(target);
|
|
24221
|
+
labels: {
|
|
24222
|
+
action: effectiveHandoffLabel,
|
|
24223
|
+
menu: effectiveHandoffMenuLabel,
|
|
24224
|
+
self: labels.handoffTargetSelf,
|
|
24225
|
+
shared: labels.handoffTargetShared,
|
|
24226
|
+
tooltip: labels.handoffConversationTooltip
|
|
24069
24227
|
},
|
|
24070
|
-
|
|
24071
|
-
|
|
24072
|
-
|
|
24073
|
-
|
|
24074
|
-
|
|
24075
|
-
"aria-label": effectiveHandoffLabel,
|
|
24076
|
-
title: labels.handoffConversationTooltip,
|
|
24077
|
-
onBlur: () => {
|
|
24078
|
-
setIsHandoffIconPlaying(false);
|
|
24079
|
-
},
|
|
24080
|
-
onFocus: () => {
|
|
24081
|
-
setIsHandoffIconPlaying(true);
|
|
24082
|
-
},
|
|
24083
|
-
onMouseEnter: () => {
|
|
24084
|
-
setIsHandoffIconPlaying(true);
|
|
24085
|
-
},
|
|
24086
|
-
onMouseLeave: () => {
|
|
24087
|
-
setIsHandoffIconPlaying(false);
|
|
24088
|
-
},
|
|
24089
|
-
className: cn(
|
|
24090
|
-
AgentGUINode_styles_default.composerMenuTrigger,
|
|
24091
|
-
AgentGUINode_styles_default.composerProviderSelect,
|
|
24092
|
-
AgentGUINode_styles_default.composerHandoffTrigger,
|
|
24093
|
-
"w-auto max-w-[180px] [&>svg:last-child]:hidden"
|
|
24094
|
-
),
|
|
24095
|
-
children: /* @__PURE__ */ jsxs26("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
24096
|
-
/* @__PURE__ */ jsx36(
|
|
24097
|
-
AgentComposerHandoffIcon,
|
|
24098
|
-
{
|
|
24099
|
-
disabled: handoffDisabled,
|
|
24100
|
-
isPlaying: isHandoffIconPlaying
|
|
24101
|
-
}
|
|
24102
|
-
),
|
|
24103
|
-
/* @__PURE__ */ jsx36("span", { className: "min-w-0 truncate", children: effectiveHandoffLabel })
|
|
24104
|
-
] })
|
|
24105
|
-
}
|
|
24106
|
-
),
|
|
24107
|
-
/* @__PURE__ */ jsx36(
|
|
24108
|
-
SelectContent2,
|
|
24109
|
-
{
|
|
24110
|
-
align: "start",
|
|
24111
|
-
className: cn(
|
|
24112
|
-
AgentGUINode_styles_default.composerMenuContent,
|
|
24113
|
-
AgentGUINode_styles_default.composerHandoffMenuContent,
|
|
24114
|
-
"min-w-[190px]"
|
|
24115
|
-
),
|
|
24116
|
-
"aria-label": effectiveHandoffMenuLabel,
|
|
24117
|
-
children: handoffMenuTargets.map((target) => {
|
|
24118
|
-
const ownershipLabel = resolveHandoffTargetOwnershipLabel(
|
|
24119
|
-
target,
|
|
24120
|
-
{
|
|
24121
|
-
self: labels.handoffTargetSelf,
|
|
24122
|
-
shared: labels.handoffTargetShared
|
|
24123
|
-
}
|
|
24124
|
-
);
|
|
24125
|
-
return /* @__PURE__ */ jsx36(
|
|
24126
|
-
SelectItem2,
|
|
24127
|
-
{
|
|
24128
|
-
value: target.targetId,
|
|
24129
|
-
className: cn(AgentGUINode_styles_default.composerMenuItem, "gap-2 py-1.5"),
|
|
24130
|
-
disabled: target.disabled === true,
|
|
24131
|
-
children: /* @__PURE__ */ jsxs26("span", { className: "flex min-w-0 items-center gap-2", children: [
|
|
24132
|
-
/* @__PURE__ */ jsxs26("span", { className: "relative size-5 shrink-0", children: [
|
|
24133
|
-
/* @__PURE__ */ jsx36(
|
|
24134
|
-
"img",
|
|
24135
|
-
{
|
|
24136
|
-
alt: "",
|
|
24137
|
-
"aria-hidden": "true",
|
|
24138
|
-
className: "size-5 rounded-[4px]",
|
|
24139
|
-
src: resolveComposerProviderTargetIconUrl(target)
|
|
24140
|
-
}
|
|
24141
|
-
),
|
|
24142
|
-
target.badge?.iconUrl ? /* @__PURE__ */ jsx36(
|
|
24143
|
-
"img",
|
|
24144
|
-
{
|
|
24145
|
-
alt: "",
|
|
24146
|
-
"aria-hidden": "true",
|
|
24147
|
-
className: "absolute -bottom-0.5 -right-0.5 size-2.5 rounded-full border border-[var(--background-fronted)] bg-[var(--background-fronted)] object-cover",
|
|
24148
|
-
src: target.badge.iconUrl
|
|
24149
|
-
}
|
|
24150
|
-
) : null
|
|
24151
|
-
] }),
|
|
24152
|
-
/* @__PURE__ */ jsxs26("span", { className: "flex min-w-0 flex-col gap-0.5", children: [
|
|
24153
|
-
/* @__PURE__ */ jsx36("span", { className: "min-w-0 truncate", children: target.label }),
|
|
24154
|
-
ownershipLabel ? /* @__PURE__ */ jsx36("span", { className: "min-w-0 truncate text-[11px] leading-none text-[var(--agent-gui-text-secondary)]", children: ownershipLabel }) : null
|
|
24155
|
-
] })
|
|
24156
|
-
] })
|
|
24157
|
-
},
|
|
24158
|
-
`${target.provider}:${target.targetId}`
|
|
24159
|
-
);
|
|
24160
|
-
})
|
|
24161
|
-
}
|
|
24162
|
-
)
|
|
24163
|
-
]
|
|
24228
|
+
targets: handoffMenuTargets,
|
|
24229
|
+
triggerLabel: effectiveHandoffLabel,
|
|
24230
|
+
onSelect: (target) => {
|
|
24231
|
+
onHandoffConversation?.(target);
|
|
24232
|
+
}
|
|
24164
24233
|
}
|
|
24165
|
-
) : showProviderSelect && selectedProviderSwitchTarget ? /* @__PURE__ */
|
|
24166
|
-
|
|
24234
|
+
) : showProviderSelect && selectedProviderSwitchTarget ? /* @__PURE__ */ jsxs27(
|
|
24235
|
+
Select3,
|
|
24167
24236
|
{
|
|
24168
24237
|
value: selectedProviderSwitchTarget.targetId,
|
|
24169
24238
|
disabled: providerSelectDisabled,
|
|
@@ -24180,8 +24249,8 @@ function ComposerFooter({
|
|
|
24180
24249
|
});
|
|
24181
24250
|
},
|
|
24182
24251
|
children: [
|
|
24183
|
-
/* @__PURE__ */
|
|
24184
|
-
|
|
24252
|
+
/* @__PURE__ */ jsx37(
|
|
24253
|
+
SelectTrigger3,
|
|
24185
24254
|
{
|
|
24186
24255
|
size: "sm",
|
|
24187
24256
|
"aria-label": providerSelectLabel,
|
|
@@ -24191,8 +24260,8 @@ function ComposerFooter({
|
|
|
24191
24260
|
AgentGUINode_styles_default.composerProviderSelect,
|
|
24192
24261
|
"w-auto max-w-[180px]"
|
|
24193
24262
|
),
|
|
24194
|
-
children: /* @__PURE__ */
|
|
24195
|
-
/* @__PURE__ */
|
|
24263
|
+
children: /* @__PURE__ */ jsxs27("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
24264
|
+
/* @__PURE__ */ jsx37(
|
|
24196
24265
|
"img",
|
|
24197
24266
|
{
|
|
24198
24267
|
alt: "",
|
|
@@ -24203,22 +24272,22 @@ function ComposerFooter({
|
|
|
24203
24272
|
)
|
|
24204
24273
|
}
|
|
24205
24274
|
),
|
|
24206
|
-
/* @__PURE__ */
|
|
24275
|
+
/* @__PURE__ */ jsx37("span", { className: "min-w-0 truncate", children: selectedProviderLabel })
|
|
24207
24276
|
] })
|
|
24208
24277
|
}
|
|
24209
24278
|
),
|
|
24210
|
-
/* @__PURE__ */
|
|
24211
|
-
|
|
24279
|
+
/* @__PURE__ */ jsx37(
|
|
24280
|
+
SelectContent3,
|
|
24212
24281
|
{
|
|
24213
24282
|
align: "start",
|
|
24214
24283
|
className: cn(AgentGUINode_styles_default.composerMenuContent, "min-w-[190px]"),
|
|
24215
|
-
children: providerMenuTargets.map((target) => /* @__PURE__ */
|
|
24216
|
-
|
|
24284
|
+
children: providerMenuTargets.map((target) => /* @__PURE__ */ jsx37(
|
|
24285
|
+
SelectItem3,
|
|
24217
24286
|
{
|
|
24218
24287
|
value: target.targetId,
|
|
24219
24288
|
className: cn(AgentGUINode_styles_default.composerMenuItem, "gap-2"),
|
|
24220
|
-
children: /* @__PURE__ */
|
|
24221
|
-
/* @__PURE__ */
|
|
24289
|
+
children: /* @__PURE__ */ jsxs27("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
24290
|
+
/* @__PURE__ */ jsx37(
|
|
24222
24291
|
"img",
|
|
24223
24292
|
{
|
|
24224
24293
|
alt: "",
|
|
@@ -24227,7 +24296,7 @@ function ComposerFooter({
|
|
|
24227
24296
|
src: resolveComposerProviderTargetIconUrl(target)
|
|
24228
24297
|
}
|
|
24229
24298
|
),
|
|
24230
|
-
/* @__PURE__ */
|
|
24299
|
+
/* @__PURE__ */ jsx37("span", { className: "min-w-0 truncate", children: target.label })
|
|
24231
24300
|
] })
|
|
24232
24301
|
},
|
|
24233
24302
|
`${target.provider}:${target.targetId}`
|
|
@@ -24237,7 +24306,7 @@ function ComposerFooter({
|
|
|
24237
24306
|
]
|
|
24238
24307
|
}
|
|
24239
24308
|
) : null,
|
|
24240
|
-
composerSettings.supportsPlanMode && composerSettings.draftSettings.planMode ? /* @__PURE__ */
|
|
24309
|
+
composerSettings.supportsPlanMode && composerSettings.draftSettings.planMode ? /* @__PURE__ */ jsx37(
|
|
24241
24310
|
"button",
|
|
24242
24311
|
{
|
|
24243
24312
|
type: "button",
|
|
@@ -24251,21 +24320,21 @@ function ComposerFooter({
|
|
|
24251
24320
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
24252
24321
|
),
|
|
24253
24322
|
onClick: () => onSettingsChange({ planMode: false }),
|
|
24254
|
-
children: /* @__PURE__ */
|
|
24255
|
-
/* @__PURE__ */
|
|
24256
|
-
/* @__PURE__ */
|
|
24323
|
+
children: /* @__PURE__ */ jsxs27("span", { className: "flex min-w-0 items-center gap-1.5 overflow-hidden", children: [
|
|
24324
|
+
/* @__PURE__ */ jsxs27("span", { className: "relative flex size-3.5 shrink-0 items-center justify-center", children: [
|
|
24325
|
+
/* @__PURE__ */ jsx37(
|
|
24257
24326
|
ListChecks2,
|
|
24258
24327
|
{
|
|
24259
24328
|
"aria-hidden": true,
|
|
24260
24329
|
className: "size-3.5 transition-opacity duration-150 group-hover:opacity-0 group-focus-visible:opacity-0"
|
|
24261
24330
|
}
|
|
24262
24331
|
),
|
|
24263
|
-
/* @__PURE__ */
|
|
24332
|
+
/* @__PURE__ */ jsx37(
|
|
24264
24333
|
"span",
|
|
24265
24334
|
{
|
|
24266
24335
|
"aria-hidden": true,
|
|
24267
24336
|
className: "absolute inset-0 flex items-center justify-center rounded-full bg-[var(--text-secondary)] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-visible:opacity-100 group-disabled:opacity-0",
|
|
24268
|
-
children: /* @__PURE__ */
|
|
24337
|
+
children: /* @__PURE__ */ jsx37(
|
|
24269
24338
|
X5,
|
|
24270
24339
|
{
|
|
24271
24340
|
className: "size-2.5 text-[var(--background-fronted)]",
|
|
@@ -24275,11 +24344,11 @@ function ComposerFooter({
|
|
|
24275
24344
|
}
|
|
24276
24345
|
)
|
|
24277
24346
|
] }),
|
|
24278
|
-
/* @__PURE__ */
|
|
24347
|
+
/* @__PURE__ */ jsx37("span", { className: "min-w-0 truncate", children: labels.planModeLabel })
|
|
24279
24348
|
] })
|
|
24280
24349
|
}
|
|
24281
24350
|
) : null,
|
|
24282
|
-
isGoalModeActive ? /* @__PURE__ */
|
|
24351
|
+
isGoalModeActive ? /* @__PURE__ */ jsx37(
|
|
24283
24352
|
"button",
|
|
24284
24353
|
{
|
|
24285
24354
|
type: "button",
|
|
@@ -24293,21 +24362,21 @@ function ComposerFooter({
|
|
|
24293
24362
|
"disabled:cursor-not-allowed disabled:opacity-60"
|
|
24294
24363
|
),
|
|
24295
24364
|
onClick: clearGoalModeBadge,
|
|
24296
|
-
children: /* @__PURE__ */
|
|
24297
|
-
/* @__PURE__ */
|
|
24298
|
-
/* @__PURE__ */
|
|
24365
|
+
children: /* @__PURE__ */ jsxs27("span", { className: "flex min-w-0 items-center gap-1.5 overflow-hidden", children: [
|
|
24366
|
+
/* @__PURE__ */ jsxs27("span", { className: "relative flex size-3.5 shrink-0 items-center justify-center", children: [
|
|
24367
|
+
/* @__PURE__ */ jsx37(
|
|
24299
24368
|
Target2,
|
|
24300
24369
|
{
|
|
24301
24370
|
"aria-hidden": true,
|
|
24302
24371
|
className: "size-3.5 transition-opacity duration-150 group-hover:opacity-0 group-focus-visible:opacity-0"
|
|
24303
24372
|
}
|
|
24304
24373
|
),
|
|
24305
|
-
/* @__PURE__ */
|
|
24374
|
+
/* @__PURE__ */ jsx37(
|
|
24306
24375
|
"span",
|
|
24307
24376
|
{
|
|
24308
24377
|
"aria-hidden": true,
|
|
24309
24378
|
className: "absolute inset-0 flex items-center justify-center rounded-full bg-[var(--text-secondary)] opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-visible:opacity-100 group-disabled:opacity-0",
|
|
24310
|
-
children: /* @__PURE__ */
|
|
24379
|
+
children: /* @__PURE__ */ jsx37(
|
|
24311
24380
|
X5,
|
|
24312
24381
|
{
|
|
24313
24382
|
className: "size-2.5 text-[var(--background-fronted)]",
|
|
@@ -24317,13 +24386,13 @@ function ComposerFooter({
|
|
|
24317
24386
|
}
|
|
24318
24387
|
)
|
|
24319
24388
|
] }),
|
|
24320
|
-
/* @__PURE__ */
|
|
24389
|
+
/* @__PURE__ */ jsx37("span", { className: "min-w-0 truncate", children: labels.goalLabel })
|
|
24321
24390
|
] })
|
|
24322
24391
|
}
|
|
24323
24392
|
) : null
|
|
24324
24393
|
] }),
|
|
24325
|
-
/* @__PURE__ */
|
|
24326
|
-
usage && usage.percentUsed !== null ? /* @__PURE__ */
|
|
24394
|
+
/* @__PURE__ */ jsxs27("div", { className: composerStyles.footerGroupRight, children: [
|
|
24395
|
+
usage && usage.percentUsed !== null ? /* @__PURE__ */ jsx37(
|
|
24327
24396
|
AgentUsageChip,
|
|
24328
24397
|
{
|
|
24329
24398
|
percentUsed: usage.percentUsed,
|
|
@@ -24342,7 +24411,7 @@ function ComposerFooter({
|
|
|
24342
24411
|
}
|
|
24343
24412
|
}
|
|
24344
24413
|
) : null,
|
|
24345
|
-
showSettingsLoadingPlaceholders || composerSettings.supportsPermissionMode ? /* @__PURE__ */
|
|
24414
|
+
showSettingsLoadingPlaceholders || composerSettings.supportsPermissionMode ? /* @__PURE__ */ jsx37(
|
|
24346
24415
|
AgentPermissionModeDropdown,
|
|
24347
24416
|
{
|
|
24348
24417
|
composerSettings,
|
|
@@ -24358,7 +24427,7 @@ function ComposerFooter({
|
|
|
24358
24427
|
onSettingsChange: (patch) => onSettingsChange(patch)
|
|
24359
24428
|
}
|
|
24360
24429
|
) : null,
|
|
24361
|
-
showSettingsLoadingPlaceholders || composerSettings.supportsModel || composerSettings.supportsReasoningEffort ? /* @__PURE__ */
|
|
24430
|
+
showSettingsLoadingPlaceholders || composerSettings.supportsModel || composerSettings.supportsReasoningEffort ? /* @__PURE__ */ jsx37(
|
|
24362
24431
|
AgentModelReasoningDropdown,
|
|
24363
24432
|
{
|
|
24364
24433
|
composerSettings,
|
|
@@ -24401,7 +24470,7 @@ function ComposerFooter({
|
|
|
24401
24470
|
}
|
|
24402
24471
|
|
|
24403
24472
|
// agent-gui/agentGuiNode/composer/AgentComposerView.tsx
|
|
24404
|
-
import { jsx as
|
|
24473
|
+
import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
24405
24474
|
function AgentComposerView(input) {
|
|
24406
24475
|
const {
|
|
24407
24476
|
provider,
|
|
@@ -24520,7 +24589,7 @@ function AgentComposerView(input) {
|
|
|
24520
24589
|
visibleActivePrompt,
|
|
24521
24590
|
visibleDraftLargeTexts
|
|
24522
24591
|
} = input.presentation;
|
|
24523
|
-
return /* @__PURE__ */
|
|
24592
|
+
return /* @__PURE__ */ jsxs28(
|
|
24524
24593
|
"form",
|
|
24525
24594
|
{
|
|
24526
24595
|
ref: input.composerRef,
|
|
@@ -24530,12 +24599,12 @@ function AgentComposerView(input) {
|
|
|
24530
24599
|
onSubmit: submit,
|
|
24531
24600
|
children: [
|
|
24532
24601
|
fileDropOverlay,
|
|
24533
|
-
visibleActivePrompt ? /* @__PURE__ */
|
|
24602
|
+
visibleActivePrompt ? /* @__PURE__ */ jsx38(
|
|
24534
24603
|
"div",
|
|
24535
24604
|
{
|
|
24536
24605
|
className: AgentGUINode_styles_default.composerFloatingPrompt,
|
|
24537
24606
|
"data-testid": "agent-gui-composer-floating-prompt",
|
|
24538
|
-
children: /* @__PURE__ */
|
|
24607
|
+
children: /* @__PURE__ */ jsx38(
|
|
24539
24608
|
AgentInteractivePromptSurface,
|
|
24540
24609
|
{
|
|
24541
24610
|
prompt: visibleActivePrompt,
|
|
@@ -24568,7 +24637,7 @@ function AgentComposerView(input) {
|
|
|
24568
24637
|
)
|
|
24569
24638
|
}
|
|
24570
24639
|
) : null,
|
|
24571
|
-
queuedPrompts.length > 0 ? /* @__PURE__ */
|
|
24640
|
+
queuedPrompts.length > 0 ? /* @__PURE__ */ jsx38(
|
|
24572
24641
|
"div",
|
|
24573
24642
|
{
|
|
24574
24643
|
className: cn(
|
|
@@ -24576,7 +24645,7 @@ function AgentComposerView(input) {
|
|
|
24576
24645
|
AgentGUINode_styles_default.composerQueuedPromptFloating
|
|
24577
24646
|
),
|
|
24578
24647
|
"data-testid": "agent-gui-composer-queued-prompts",
|
|
24579
|
-
children: /* @__PURE__ */
|
|
24648
|
+
children: /* @__PURE__ */ jsx38(
|
|
24580
24649
|
AgentQueuedPromptPanel,
|
|
24581
24650
|
{
|
|
24582
24651
|
queueStatus,
|
|
@@ -24601,14 +24670,14 @@ function AgentComposerView(input) {
|
|
|
24601
24670
|
)
|
|
24602
24671
|
}
|
|
24603
24672
|
) : null,
|
|
24604
|
-
showProjectMissingProbe ? /* @__PURE__ */
|
|
24673
|
+
showProjectMissingProbe ? /* @__PURE__ */ jsx38(
|
|
24605
24674
|
AgentProjectMissingStatusProbe,
|
|
24606
24675
|
{
|
|
24607
24676
|
composerSettings,
|
|
24608
24677
|
onProjectMissingChange: input.setIsSelectedProjectMissing
|
|
24609
24678
|
}
|
|
24610
24679
|
) : null,
|
|
24611
|
-
/* @__PURE__ */
|
|
24680
|
+
/* @__PURE__ */ jsx38(
|
|
24612
24681
|
AgentFullAccessRestoredWarning,
|
|
24613
24682
|
{
|
|
24614
24683
|
isSettingsLoading: composerSettings.isSettingsLoading,
|
|
@@ -24618,7 +24687,7 @@ function AgentComposerView(input) {
|
|
|
24618
24687
|
visibleOnHome: isHeroLayout
|
|
24619
24688
|
}
|
|
24620
24689
|
),
|
|
24621
|
-
/* @__PURE__ */
|
|
24690
|
+
/* @__PURE__ */ jsxs28(
|
|
24622
24691
|
"div",
|
|
24623
24692
|
{
|
|
24624
24693
|
className: cn(
|
|
@@ -24627,7 +24696,7 @@ function AgentComposerView(input) {
|
|
|
24627
24696
|
),
|
|
24628
24697
|
"data-edge-glow": showEdgeGlow ? "true" : void 0,
|
|
24629
24698
|
children: [
|
|
24630
|
-
input.isSelectedProjectMissing ? /* @__PURE__ */
|
|
24699
|
+
input.isSelectedProjectMissing ? /* @__PURE__ */ jsx38(
|
|
24631
24700
|
AgentChromeNotice,
|
|
24632
24701
|
{
|
|
24633
24702
|
tone: "danger",
|
|
@@ -24639,7 +24708,7 @@ function AgentComposerView(input) {
|
|
|
24639
24708
|
description: labels.projectMissingDescription
|
|
24640
24709
|
}
|
|
24641
24710
|
) : null,
|
|
24642
|
-
/* @__PURE__ */
|
|
24711
|
+
/* @__PURE__ */ jsxs28(
|
|
24643
24712
|
"div",
|
|
24644
24713
|
{
|
|
24645
24714
|
ref: input.inputShellRef,
|
|
@@ -24649,14 +24718,14 @@ function AgentComposerView(input) {
|
|
|
24649
24718
|
title: inputDisabled && disabledReasonText ? disabledReasonText : void 0,
|
|
24650
24719
|
style: inputShellStyle,
|
|
24651
24720
|
children: [
|
|
24652
|
-
/* @__PURE__ */
|
|
24721
|
+
/* @__PURE__ */ jsxs28(
|
|
24653
24722
|
Popover3,
|
|
24654
24723
|
{
|
|
24655
24724
|
open: input.showFileMentionPalette,
|
|
24656
24725
|
onOpenChange: input.setIsPaletteOpen,
|
|
24657
24726
|
modal: false,
|
|
24658
24727
|
children: [
|
|
24659
|
-
/* @__PURE__ */
|
|
24728
|
+
/* @__PURE__ */ jsx38(PopoverAnchor2, { asChild: true, children: /* @__PURE__ */ jsxs28(
|
|
24660
24729
|
"div",
|
|
24661
24730
|
{
|
|
24662
24731
|
ref: input.promptInputAreaRef,
|
|
@@ -24668,7 +24737,7 @@ function AgentComposerView(input) {
|
|
|
24668
24737
|
"data-has-draft-images": draftImages.length > 0 ? "true" : void 0,
|
|
24669
24738
|
style: promptInputAreaStyle,
|
|
24670
24739
|
children: [
|
|
24671
|
-
/* @__PURE__ */
|
|
24740
|
+
/* @__PURE__ */ jsx38(
|
|
24672
24741
|
ComposerDraftAttachments,
|
|
24673
24742
|
{
|
|
24674
24743
|
draftImages,
|
|
@@ -24679,7 +24748,7 @@ function AgentComposerView(input) {
|
|
|
24679
24748
|
onExpandLargeText: expandDraftLargeTextToPrompt
|
|
24680
24749
|
}
|
|
24681
24750
|
),
|
|
24682
|
-
/* @__PURE__ */
|
|
24751
|
+
/* @__PURE__ */ jsxs28(
|
|
24683
24752
|
"div",
|
|
24684
24753
|
{
|
|
24685
24754
|
className: cn(
|
|
@@ -24687,7 +24756,7 @@ function AgentComposerView(input) {
|
|
|
24687
24756
|
!isHeroLayout && "agent-gui-node__composer-prompt-input-line"
|
|
24688
24757
|
),
|
|
24689
24758
|
children: [
|
|
24690
|
-
/* @__PURE__ */
|
|
24759
|
+
/* @__PURE__ */ jsx38(
|
|
24691
24760
|
AgentRichTextEditor,
|
|
24692
24761
|
{
|
|
24693
24762
|
ref: input.editorHandleRef,
|
|
@@ -24734,7 +24803,7 @@ function AgentComposerView(input) {
|
|
|
24734
24803
|
}
|
|
24735
24804
|
) }),
|
|
24736
24805
|
input.showFileMentionPalette && mentionPaletteFrame ? createPortal4(
|
|
24737
|
-
/* @__PURE__ */
|
|
24806
|
+
/* @__PURE__ */ jsx38(
|
|
24738
24807
|
"div",
|
|
24739
24808
|
{
|
|
24740
24809
|
"data-testid": "agent-gui-mention-palette-surface",
|
|
@@ -24744,7 +24813,7 @@ function AgentComposerView(input) {
|
|
|
24744
24813
|
"max-h-[320px] overflow-hidden border-[var(--line-1)] p-0"
|
|
24745
24814
|
),
|
|
24746
24815
|
style: mentionPaletteStyle,
|
|
24747
|
-
children: /* @__PURE__ */
|
|
24816
|
+
children: /* @__PURE__ */ jsx38(
|
|
24748
24817
|
AgentFileMentionPalette,
|
|
24749
24818
|
{
|
|
24750
24819
|
state: input.mentionSearchState,
|
|
@@ -24764,7 +24833,7 @@ function AgentComposerView(input) {
|
|
|
24764
24833
|
onNavigateHierarchy: navigateFileMentionHierarchy,
|
|
24765
24834
|
onNavigateIntoItem: navigateIntoFileMentionItem,
|
|
24766
24835
|
onOpenReferences: onRequestWorkspaceReferences ? handleOpenReferencesForEntity : void 0,
|
|
24767
|
-
provenanceFilterControl: referenceProvenanceFilter ? /* @__PURE__ */
|
|
24836
|
+
provenanceFilterControl: referenceProvenanceFilter ? /* @__PURE__ */ jsx38(
|
|
24768
24837
|
AgentReferenceProvenanceFilterControl,
|
|
24769
24838
|
{
|
|
24770
24839
|
filter: referenceProvenanceFilter
|
|
@@ -24776,7 +24845,7 @@ function AgentComposerView(input) {
|
|
|
24776
24845
|
),
|
|
24777
24846
|
mentionPaletteFrame.portalTarget
|
|
24778
24847
|
) : null,
|
|
24779
|
-
/* @__PURE__ */
|
|
24848
|
+
/* @__PURE__ */ jsx38(
|
|
24780
24849
|
ComposerFloatingMenuSurface,
|
|
24781
24850
|
{
|
|
24782
24851
|
anchorRef: input.inputShellRef,
|
|
@@ -24792,7 +24861,7 @@ function AgentComposerView(input) {
|
|
|
24792
24861
|
placement: "fixed-height",
|
|
24793
24862
|
surfaceRef: input.paletteContentRef,
|
|
24794
24863
|
testId: "agent-gui-slash-palette-surface",
|
|
24795
|
-
children: /* @__PURE__ */
|
|
24864
|
+
children: /* @__PURE__ */ jsx38(
|
|
24796
24865
|
AgentSlashCommandPalette,
|
|
24797
24866
|
{
|
|
24798
24867
|
entries: slashPaletteEntries,
|
|
@@ -24815,7 +24884,7 @@ function AgentComposerView(input) {
|
|
|
24815
24884
|
)
|
|
24816
24885
|
}
|
|
24817
24886
|
),
|
|
24818
|
-
/* @__PURE__ */
|
|
24887
|
+
/* @__PURE__ */ jsx38(
|
|
24819
24888
|
ComposerFloatingMenuSurface,
|
|
24820
24889
|
{
|
|
24821
24890
|
anchorRef: input.inputShellRef,
|
|
@@ -24827,7 +24896,7 @@ function AgentComposerView(input) {
|
|
|
24827
24896
|
placement: "dynamic-above",
|
|
24828
24897
|
surfaceRef: input.paletteContentRef,
|
|
24829
24898
|
testId: "agent-gui-command-menu-surface",
|
|
24830
|
-
children: /* @__PURE__ */
|
|
24899
|
+
children: /* @__PURE__ */ jsx38(
|
|
24831
24900
|
AgentSlashStatusPanel,
|
|
24832
24901
|
{
|
|
24833
24902
|
status: slashStatus,
|
|
@@ -24847,7 +24916,7 @@ function AgentComposerView(input) {
|
|
|
24847
24916
|
)
|
|
24848
24917
|
}
|
|
24849
24918
|
),
|
|
24850
|
-
/* @__PURE__ */
|
|
24919
|
+
/* @__PURE__ */ jsx38(
|
|
24851
24920
|
ComposerFloatingMenuSurface,
|
|
24852
24921
|
{
|
|
24853
24922
|
anchorRef: input.inputShellRef,
|
|
@@ -24859,7 +24928,7 @@ function AgentComposerView(input) {
|
|
|
24859
24928
|
placement: "dynamic-above",
|
|
24860
24929
|
surfaceRef: input.paletteContentRef,
|
|
24861
24930
|
testId: "agent-gui-command-menu-surface",
|
|
24862
|
-
children: /* @__PURE__ */
|
|
24931
|
+
children: /* @__PURE__ */ jsx38(
|
|
24863
24932
|
AgentReviewPickerPanel,
|
|
24864
24933
|
{
|
|
24865
24934
|
labels: labels.reviewPicker,
|
|
@@ -24873,7 +24942,7 @@ function AgentComposerView(input) {
|
|
|
24873
24942
|
]
|
|
24874
24943
|
}
|
|
24875
24944
|
),
|
|
24876
|
-
/* @__PURE__ */
|
|
24945
|
+
/* @__PURE__ */ jsx38(
|
|
24877
24946
|
ComposerFooter,
|
|
24878
24947
|
{
|
|
24879
24948
|
labels,
|
|
@@ -24895,8 +24964,6 @@ function AgentComposerView(input) {
|
|
|
24895
24964
|
handoffDisabled,
|
|
24896
24965
|
effectiveHandoffLabel,
|
|
24897
24966
|
effectiveHandoffMenuLabel,
|
|
24898
|
-
isHandoffIconPlaying: input.isHandoffIconPlaying,
|
|
24899
|
-
setIsHandoffIconPlaying: input.setIsHandoffIconPlaying,
|
|
24900
24967
|
handoffMenuTargets,
|
|
24901
24968
|
onHandoffConversation,
|
|
24902
24969
|
showProviderSelect,
|
|
@@ -24918,13 +24985,13 @@ function AgentComposerView(input) {
|
|
|
24918
24985
|
]
|
|
24919
24986
|
}
|
|
24920
24987
|
),
|
|
24921
|
-
showProjectRow ? /* @__PURE__ */
|
|
24988
|
+
showProjectRow ? /* @__PURE__ */ jsxs28(
|
|
24922
24989
|
"div",
|
|
24923
24990
|
{
|
|
24924
24991
|
className: AgentGUINode_styles_default.composerProjectRow,
|
|
24925
24992
|
"data-project-missing": input.isSelectedProjectMissing ? "true" : void 0,
|
|
24926
24993
|
children: [
|
|
24927
|
-
showHeroProjectSelector ? /* @__PURE__ */
|
|
24994
|
+
showHeroProjectSelector ? /* @__PURE__ */ jsx38(
|
|
24928
24995
|
AgentProjectDropdown,
|
|
24929
24996
|
{
|
|
24930
24997
|
composerSettings,
|
|
@@ -24940,14 +25007,14 @@ function AgentComposerView(input) {
|
|
|
24940
25007
|
onProjectPathChange
|
|
24941
25008
|
}
|
|
24942
25009
|
) : null,
|
|
24943
|
-
activePromptTip ? /* @__PURE__ */
|
|
25010
|
+
activePromptTip ? /* @__PURE__ */ jsx38(
|
|
24944
25011
|
"div",
|
|
24945
25012
|
{
|
|
24946
25013
|
className: AgentGUINode_styles_default.composerPromptTips,
|
|
24947
25014
|
"data-testid": "agent-gui-prompt-tips",
|
|
24948
|
-
children: !previewMode && input.isPromptTipOverflowing && promptTipNode ? /* @__PURE__ */
|
|
24949
|
-
/* @__PURE__ */
|
|
24950
|
-
/* @__PURE__ */
|
|
25015
|
+
children: !previewMode && input.isPromptTipOverflowing && promptTipNode ? /* @__PURE__ */ jsx38(TooltipProvider4, { delayDuration: 0, children: /* @__PURE__ */ jsxs28(Tooltip4, { children: [
|
|
25016
|
+
/* @__PURE__ */ jsx38(TooltipTrigger4, { asChild: true, children: promptTipNode }),
|
|
25017
|
+
/* @__PURE__ */ jsx38(
|
|
24951
25018
|
TooltipContent4,
|
|
24952
25019
|
{
|
|
24953
25020
|
align: "end",
|
|
@@ -24971,7 +25038,7 @@ function AgentComposerView(input) {
|
|
|
24971
25038
|
}
|
|
24972
25039
|
|
|
24973
25040
|
// agent-gui/agentGuiNode/composer/useAgentMentionSearchController.ts
|
|
24974
|
-
import { useEffect as useEffect27, useMemo as useMemo29, useRef as useRef32, useState as
|
|
25041
|
+
import { useEffect as useEffect27, useMemo as useMemo29, useRef as useRef32, useState as useState22 } from "react";
|
|
24975
25042
|
import { useRichTextMentionService } from "@tutti-os/ui-rich-text/editor";
|
|
24976
25043
|
var EMPTY_AGENT_CONTEXT_MENTION_PROVIDERS = [];
|
|
24977
25044
|
function useAgentMentionSearchController(referenceProvenanceFilter) {
|
|
@@ -24980,7 +25047,7 @@ function useAgentMentionSearchController(referenceProvenanceFilter) {
|
|
|
24980
25047
|
() => mentionService?.listProviders().filter(isAgentContextMentionProvider) ?? EMPTY_AGENT_CONTEXT_MENTION_PROVIDERS,
|
|
24981
25048
|
[mentionService]
|
|
24982
25049
|
);
|
|
24983
|
-
const [mentionSearchState, setMentionSearchState] =
|
|
25050
|
+
const [mentionSearchState, setMentionSearchState] = useState22(INITIAL_AGENT_MENTION_SEARCH_STATE);
|
|
24984
25051
|
const mentionControllerRef = useRef32(
|
|
24985
25052
|
null
|
|
24986
25053
|
);
|
|
@@ -25029,7 +25096,7 @@ var INITIAL_AGENT_MENTION_SEARCH_STATE = {
|
|
|
25029
25096
|
};
|
|
25030
25097
|
|
|
25031
25098
|
// agent-gui/agentGuiNode/AgentComposer.tsx
|
|
25032
|
-
import { jsx as
|
|
25099
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
25033
25100
|
var DOCK_COMPOSER_INPUT_MIN_HEIGHT2 = 56;
|
|
25034
25101
|
var DOCK_COMPOSER_TEXT_LINE_HEIGHT2 = 24;
|
|
25035
25102
|
var DOCK_COMPOSER_MAX_VISIBLE_TEXT_LINES2 = 3.5;
|
|
@@ -25118,22 +25185,21 @@ function AgentComposer(props) {
|
|
|
25118
25185
|
hadPrefill: agentComposerDraftHasContent(draftContent)
|
|
25119
25186
|
});
|
|
25120
25187
|
};
|
|
25121
|
-
const [isPaletteOpen, setIsPaletteOpen] =
|
|
25122
|
-
const [isReviewPickerOpen, setIsReviewPickerOpen] =
|
|
25123
|
-
const [
|
|
25124
|
-
const [
|
|
25125
|
-
const [
|
|
25126
|
-
const [shouldCenterMentionHighlight, setShouldCenterMentionHighlight] = useState22(false);
|
|
25188
|
+
const [isPaletteOpen, setIsPaletteOpen] = useState23(true);
|
|
25189
|
+
const [isReviewPickerOpen, setIsReviewPickerOpen] = useState23(false);
|
|
25190
|
+
const [highlightedIndex, setHighlightedIndex] = useState23(0);
|
|
25191
|
+
const [mentionHighlightedKey, setMentionHighlightedKey] = useState23(null);
|
|
25192
|
+
const [shouldCenterMentionHighlight, setShouldCenterMentionHighlight] = useState23(false);
|
|
25127
25193
|
const [
|
|
25128
25194
|
shouldResetMentionHighlightToFilter,
|
|
25129
25195
|
setShouldResetMentionHighlightToFilter
|
|
25130
|
-
] =
|
|
25131
|
-
const [paletteDraftPrompt, setPaletteDraftPrompt] =
|
|
25196
|
+
] = useState23(false);
|
|
25197
|
+
const [paletteDraftPrompt, setPaletteDraftPrompt] = useState23(
|
|
25132
25198
|
goalDraftObjective ?? draftPrompt
|
|
25133
25199
|
);
|
|
25134
|
-
const [fileMentionSuggestion, setFileMentionSuggestion] =
|
|
25135
|
-
const [isSelectedProjectMissing, setIsSelectedProjectMissing] =
|
|
25136
|
-
const [isSlashStatusPanelOpen, setIsSlashStatusPanelOpen] =
|
|
25200
|
+
const [fileMentionSuggestion, setFileMentionSuggestion] = useState23(null);
|
|
25201
|
+
const [isSelectedProjectMissing, setIsSelectedProjectMissing] = useState23(false);
|
|
25202
|
+
const [isSlashStatusPanelOpen, setIsSlashStatusPanelOpen] = useState23(false);
|
|
25137
25203
|
const slashStatusAgentSessionId = slashStatus?.agentSessionId ?? null;
|
|
25138
25204
|
const previousSlashStatusAgentSessionIdRef = useRef33(
|
|
25139
25205
|
slashStatusAgentSessionId
|
|
@@ -25159,15 +25225,15 @@ function AgentComposer(props) {
|
|
|
25159
25225
|
const wasActiveRef = useRef33(isActive);
|
|
25160
25226
|
const lastComposerFocusRequestRef = useRef33(null);
|
|
25161
25227
|
const autoMentionHighlightedKeyRef = useRef33(null);
|
|
25162
|
-
const [isPromptTipOverflowing, setIsPromptTipOverflowing] =
|
|
25163
|
-
const [dockComposerInputHeight, setDockComposerInputHeight] =
|
|
25228
|
+
const [isPromptTipOverflowing, setIsPromptTipOverflowing] = useState23(false);
|
|
25229
|
+
const [dockComposerInputHeight, setDockComposerInputHeight] = useState23(
|
|
25164
25230
|
DOCK_COMPOSER_INPUT_MIN_HEIGHT2
|
|
25165
25231
|
);
|
|
25166
|
-
const [dockComposerInputMaxHeight, setDockComposerInputMaxHeight] =
|
|
25232
|
+
const [dockComposerInputMaxHeight, setDockComposerInputMaxHeight] = useState23(
|
|
25167
25233
|
DOCK_COMPOSER_INPUT_MAX_HEIGHT2
|
|
25168
25234
|
);
|
|
25169
|
-
const [dockComposerAttachmentHeight, setDockComposerAttachmentHeight] =
|
|
25170
|
-
const [dockComposerTextHeight, setDockComposerTextHeight] =
|
|
25235
|
+
const [dockComposerAttachmentHeight, setDockComposerAttachmentHeight] = useState23(0);
|
|
25236
|
+
const [dockComposerTextHeight, setDockComposerTextHeight] = useState23(
|
|
25171
25237
|
DOCK_COMPOSER_INPUT_MIN_HEIGHT2
|
|
25172
25238
|
);
|
|
25173
25239
|
const paletteCatalog = useComposerPaletteCatalog({
|
|
@@ -25478,7 +25544,7 @@ function AgentComposer(props) {
|
|
|
25478
25544
|
canUploadAttachment,
|
|
25479
25545
|
promptImagesSupported
|
|
25480
25546
|
});
|
|
25481
|
-
return /* @__PURE__ */
|
|
25547
|
+
return /* @__PURE__ */ jsx39(
|
|
25482
25548
|
AgentComposerView,
|
|
25483
25549
|
{
|
|
25484
25550
|
props,
|
|
@@ -25513,8 +25579,6 @@ function AgentComposer(props) {
|
|
|
25513
25579
|
setIsSelectedProjectMissing,
|
|
25514
25580
|
setIsPaletteOpen,
|
|
25515
25581
|
setHighlightedIndex,
|
|
25516
|
-
isHandoffIconPlaying,
|
|
25517
|
-
setIsHandoffIconPlaying,
|
|
25518
25582
|
isGoalModeActive,
|
|
25519
25583
|
isPromptTipOverflowing
|
|
25520
25584
|
}
|
|
@@ -25522,11 +25586,11 @@ function AgentComposer(props) {
|
|
|
25522
25586
|
}
|
|
25523
25587
|
|
|
25524
25588
|
// agent-gui/agentGuiNode/AgentHomeSuggestions.tsx
|
|
25525
|
-
import { memo as memo2, useState as
|
|
25589
|
+
import { memo as memo2, useState as useState24 } from "react";
|
|
25526
25590
|
import { ArrowLeftRight, Code, Compass, Import, Pencil, X as X6 } from "lucide-react";
|
|
25527
|
-
import { jsx as
|
|
25591
|
+
import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
25528
25592
|
function TuttiIcon(props) {
|
|
25529
|
-
return /* @__PURE__ */
|
|
25593
|
+
return /* @__PURE__ */ jsx40(
|
|
25530
25594
|
"svg",
|
|
25531
25595
|
{
|
|
25532
25596
|
width: "24",
|
|
@@ -25535,7 +25599,7 @@ function TuttiIcon(props) {
|
|
|
25535
25599
|
fill: "none",
|
|
25536
25600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25537
25601
|
...props,
|
|
25538
|
-
children: /* @__PURE__ */
|
|
25602
|
+
children: /* @__PURE__ */ jsx40(
|
|
25539
25603
|
"path",
|
|
25540
25604
|
{
|
|
25541
25605
|
d: "M11.9239 0.561676C15.4275 0.704643 18.0594 1.93856 19.9297 3.83316L20.0235 3.92984C23.0545 7.07999 23.0228 10.8742 22.9942 11.9015C22.8949 15.4888 21.1541 19.3943 18.0293 21.4328C15.586 23.0271 12.2829 23.8614 9.04007 23.215C5.73644 22.5564 2.62421 20.3849 0.626007 16.2238L3.20804 14.9836C4.83809 18.3782 7.22804 19.9325 9.60062 20.4054C12.0339 20.8904 14.5821 20.262 16.4649 19.0334C16.5072 19.0058 16.5482 18.9761 16.5899 18.9474C16.1093 18.8715 15.6404 18.7558 15.2119 18.5773C14.5812 18.3145 13.9737 17.8946 13.5371 17.2316C13.3482 16.9446 13.2091 16.6341 13.1094 16.3068V19.089C11.9062 19.089 10.438 19.0648 9.26761 18.5773C8.63673 18.3144 8.0285 17.8949 7.59183 17.2316C7.19348 16.6265 7.00806 15.9216 6.97952 15.1593C5.38231 15.2733 4.05048 14.8926 3.01273 14.0617C1.45415 12.8137 0.967716 10.8679 0.965851 9.3605C0.960457 5.06718 4.93349 0.556422 11.211 0.548004L11.9239 0.561676ZM12.3096 13.4562C11.6218 13.7868 10.8654 14.1393 9.99808 14.4611C9.94487 14.4808 9.89073 14.4979 9.83792 14.5168V14.9503C9.83792 15.3764 9.92819 15.571 9.98441 15.6564C10.0384 15.7384 10.1371 15.8371 10.3692 15.9337C10.921 16.1636 11.797 16.223 13.084 16.2238C12.9714 15.8224 12.918 15.3955 12.918 14.9503V13.1632C12.7221 13.2577 12.5204 13.3549 12.3096 13.4562ZM11.2149 3.41226C6.37997 3.4188 3.86603 6.76409 3.83011 9.29703V9.3566C3.83137 10.3769 4.17272 11.3206 4.80276 11.8253C5.17526 12.1236 5.83321 12.4102 6.97366 12.2882V6.38785H9.83792V11.4386C10.2583 11.2583 10.6625 11.0703 11.0684 10.8752C11.6533 10.594 12.2733 10.2876 12.918 10.008V6.38785H15.7823V9.08414C16.6423 8.90981 17.6005 8.80628 18.708 8.80484L18.7119 11.6691C17.5478 11.6706 16.6096 11.8073 15.7823 12.0255V14.9503C15.7823 15.3762 15.8725 15.5709 15.9287 15.6564C15.9827 15.7384 16.0816 15.8371 16.3135 15.9337C16.8534 16.1586 17.7037 16.2204 18.9453 16.2238C19.6618 14.896 20.0887 13.3489 20.1309 11.8214C20.1545 10.9724 20.155 8.19654 17.96 5.91519C16.5592 4.45958 14.4443 3.40841 11.2149 3.41226Z",
|
|
@@ -25546,7 +25610,7 @@ function TuttiIcon(props) {
|
|
|
25546
25610
|
);
|
|
25547
25611
|
}
|
|
25548
25612
|
function TaskBreakdownIcon(props) {
|
|
25549
|
-
return /* @__PURE__ */
|
|
25613
|
+
return /* @__PURE__ */ jsx40(
|
|
25550
25614
|
"svg",
|
|
25551
25615
|
{
|
|
25552
25616
|
width: "24",
|
|
@@ -25555,7 +25619,7 @@ function TaskBreakdownIcon(props) {
|
|
|
25555
25619
|
fill: "none",
|
|
25556
25620
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25557
25621
|
...props,
|
|
25558
|
-
children: /* @__PURE__ */
|
|
25622
|
+
children: /* @__PURE__ */ jsx40(
|
|
25559
25623
|
"path",
|
|
25560
25624
|
{
|
|
25561
25625
|
d: "M8.29297 14.793C8.68349 14.4025 9.31651 14.4025 9.70703 14.793C10.0976 15.1835 10.0976 15.8166 9.70703 16.2071L5.70703 20.2071C5.31651 20.5976 4.68349 20.5976 4.29297 20.2071L2.29297 18.2071C1.90244 17.8166 1.90244 17.1836 2.29297 16.793C2.68349 16.4025 3.31651 16.4025 3.70703 16.793L5 18.086L8.29297 14.793ZM21 18.0001C21.5523 18.0001 22 18.4478 22 19.0001C22 19.5524 21.5523 20.0001 21 20.0001H13C12.4477 20.0001 12 19.5524 12 19.0001C12 18.4478 12.4477 18.0001 13 18.0001H21ZM21 11C21.5523 11 22 11.4478 22 12C22 12.5523 21.5523 13 21 13H13C12.4477 13 12 12.5523 12 12C12 11.4478 12.4477 11 13 11H21ZM8 3.5C9.10457 3.5 10 4.39543 10 5.50001V9.50003C10 10.6046 9.10457 11.5 8 11.5H4C2.89543 11.5 2 10.6046 2 9.50003V5.50001C2 4.39543 2.89543 3.5 4 3.5H8ZM4 9.50003H8V5.50001H4V9.50003ZM21 4C21.5523 4 22 4.44772 22 5.00001C22 5.55229 21.5523 6.00001 21 6.00001H13C12.4477 6.00001 12 5.55229 12 5.00001C12 4.44772 12.4477 4 13 4H21Z",
|
|
@@ -25566,7 +25630,7 @@ function TaskBreakdownIcon(props) {
|
|
|
25566
25630
|
);
|
|
25567
25631
|
}
|
|
25568
25632
|
function BattleIcon(props) {
|
|
25569
|
-
return /* @__PURE__ */
|
|
25633
|
+
return /* @__PURE__ */ jsx40(
|
|
25570
25634
|
"svg",
|
|
25571
25635
|
{
|
|
25572
25636
|
width: "24",
|
|
@@ -25575,7 +25639,7 @@ function BattleIcon(props) {
|
|
|
25575
25639
|
fill: "none",
|
|
25576
25640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25577
25641
|
...props,
|
|
25578
|
-
children: /* @__PURE__ */
|
|
25642
|
+
children: /* @__PURE__ */ jsx40(
|
|
25579
25643
|
"path",
|
|
25580
25644
|
{
|
|
25581
25645
|
d: "M4.29297 13.293C4.68349 12.9024 5.31651 12.9024 5.70703 13.293L9.70703 17.293C10.0976 17.6835 10.0976 18.3165 9.70703 18.707C9.31651 19.0976 8.68349 19.0976 8.29297 18.707L7.5 17.9141L5.41406 20L5.70703 20.293C6.09756 20.6835 6.09756 21.3165 5.70703 21.707C5.31651 22.0976 4.68349 22.0976 4.29297 21.707L2.29297 19.707C1.90244 19.3165 1.90244 18.6835 2.29297 18.293C2.68349 17.9024 3.31651 17.9024 3.70703 18.293L4 18.5859L6.08594 16.5L4.29297 14.707C3.90244 14.3165 3.90244 13.6835 4.29297 13.293ZM6 2C6.26522 2 6.51949 2.10543 6.70703 2.29297L17.5 13.0859L18.293 12.293C18.6835 11.9024 19.3165 11.9024 19.707 12.293C20.0976 12.6835 20.0976 13.3165 19.707 13.707L17.4141 16L20 18.5859L20.293 18.293C20.6835 17.9024 21.3165 17.9024 21.707 18.293C22.0976 18.6835 22.0976 19.3165 21.707 19.707L19.707 21.707C19.3165 22.0976 18.6835 22.0976 18.293 21.707C17.9024 21.3165 17.9024 20.6835 18.293 20.293L18.5859 20L16 17.4141L13.707 19.707C13.3165 20.0976 12.6835 20.0976 12.293 19.707C11.9024 19.3165 11.9024 18.6835 12.293 18.293L13.0859 17.5L2.29297 6.70703C2.10543 6.51949 2 6.26522 2 6V3C2 2.44772 2.44772 2 3 2H6ZM4 5.58594L14.5 16.0859L16.0859 14.5L5.58594 4H4V5.58594ZM21 2C21.5523 2 22 2.44772 22 3V6C22 6.26522 21.8946 6.51949 21.707 6.70703L18.207 10.207C17.8165 10.5976 17.1835 10.5976 16.793 10.207C16.4024 9.81651 16.4024 9.18349 16.793 8.79297L20 5.58594V4H18.4141L15.207 7.20703C14.8165 7.59756 14.1835 7.59756 13.793 7.20703C13.4024 6.81651 13.4024 6.18349 13.793 5.79297L17.293 2.29297L17.3662 2.22656C17.5442 2.08073 17.7679 2 18 2H21Z",
|
|
@@ -25586,7 +25650,7 @@ function BattleIcon(props) {
|
|
|
25586
25650
|
);
|
|
25587
25651
|
}
|
|
25588
25652
|
function QualityReviewIcon(props) {
|
|
25589
|
-
return /* @__PURE__ */
|
|
25653
|
+
return /* @__PURE__ */ jsx40(
|
|
25590
25654
|
"svg",
|
|
25591
25655
|
{
|
|
25592
25656
|
width: "24",
|
|
@@ -25595,7 +25659,7 @@ function QualityReviewIcon(props) {
|
|
|
25595
25659
|
fill: "none",
|
|
25596
25660
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25597
25661
|
...props,
|
|
25598
|
-
children: /* @__PURE__ */
|
|
25662
|
+
children: /* @__PURE__ */ jsx40(
|
|
25599
25663
|
"path",
|
|
25600
25664
|
{
|
|
25601
25665
|
d: "M20 2C20.7957 2 21.5585 2.3163 22.1211 2.87891C22.6837 3.44152 23 4.20435 23 5V17C23 17.7957 22.6837 18.5585 22.1211 19.1211C21.5585 19.6837 20.7957 20 20 20H6.82812C6.56296 20.0001 6.30857 20.1054 6.12109 20.293L3.91895 22.4951C3.6799 22.7341 3.37545 22.8969 3.04395 22.9629C2.71233 23.0288 2.36805 22.9956 2.05566 22.8662C1.74327 22.7368 1.47598 22.5174 1.28809 22.2363C1.10019 21.9552 1.00004 21.6243 1 21.2861V5C1 4.20435 1.3163 3.44152 1.87891 2.87891C2.44152 2.3163 3.20435 2 4 2H20ZM4 4C3.73478 4 3.4805 4.10543 3.29297 4.29297C3.10543 4.4805 3 4.73478 3 5V20.5859L4.70703 18.8789L4.92676 18.6797C5.46048 18.2422 6.13198 18.0001 6.82812 18H20C20.2652 18 20.5195 17.8946 20.707 17.707C20.8946 17.5195 21 17.2652 21 17V5C21 4.73478 20.8946 4.48051 20.707 4.29297C20.5195 4.10543 20.2652 4 20 4H4ZM9.29297 7.29297C9.68349 6.90244 10.3165 6.90244 10.707 7.29297C11.0976 7.68349 11.0976 8.31651 10.707 8.70703L8.41406 11L10.707 13.293C11.0976 13.6835 11.0976 14.3165 10.707 14.707C10.3165 15.0976 9.68349 15.0976 9.29297 14.707L6.29297 11.707C5.90244 11.3165 5.90244 10.6835 6.29297 10.293L9.29297 7.29297ZM13.293 7.29297C13.6835 6.90244 14.3165 6.90244 14.707 7.29297L17.707 10.293C18.0976 10.6835 18.0976 11.3165 17.707 11.707L14.707 14.707C14.3165 15.0976 13.6835 15.0976 13.293 14.707C12.9024 14.3165 12.9024 13.6835 13.293 13.293L15.5859 11L13.293 8.70703C12.9024 8.31651 12.9024 7.68349 13.293 7.29297Z",
|
|
@@ -25633,7 +25697,7 @@ var AgentHomeSuggestions = memo2(function AgentHomeSuggestions2({
|
|
|
25633
25697
|
closeLabel
|
|
25634
25698
|
}) {
|
|
25635
25699
|
"use memo";
|
|
25636
|
-
const [activeCategoryId, setActiveCategoryId] =
|
|
25700
|
+
const [activeCategoryId, setActiveCategoryId] = useState24(null);
|
|
25637
25701
|
if (categories.length === 0) {
|
|
25638
25702
|
return null;
|
|
25639
25703
|
}
|
|
@@ -25641,12 +25705,12 @@ var AgentHomeSuggestions = memo2(function AgentHomeSuggestions2({
|
|
|
25641
25705
|
(category) => category.id === activeCategoryId && !isDirectCategory(category)
|
|
25642
25706
|
) ?? null;
|
|
25643
25707
|
const ActiveCategoryIcon = activeCategory?.icon ? CATEGORY_ICON[activeCategory.icon] : null;
|
|
25644
|
-
return /* @__PURE__ */
|
|
25645
|
-
/* @__PURE__ */
|
|
25708
|
+
return /* @__PURE__ */ jsxs29("div", { className: AgentGUINode_styles_default.emptyHeroSuggestions, children: [
|
|
25709
|
+
/* @__PURE__ */ jsx40("div", { className: AgentGUINode_styles_default.emptyHeroSuggestionsChips, children: categories.map((category) => {
|
|
25646
25710
|
const Icon = category.icon ? CATEGORY_ICON[category.icon] : null;
|
|
25647
25711
|
const direct = isDirectCategory(category);
|
|
25648
25712
|
const isActive = !direct && category.id === activeCategory?.id;
|
|
25649
|
-
return /* @__PURE__ */
|
|
25713
|
+
return /* @__PURE__ */ jsxs29(
|
|
25650
25714
|
"button",
|
|
25651
25715
|
{
|
|
25652
25716
|
type: "button",
|
|
@@ -25667,23 +25731,23 @@ var AgentHomeSuggestions = memo2(function AgentHomeSuggestions2({
|
|
|
25667
25731
|
);
|
|
25668
25732
|
},
|
|
25669
25733
|
children: [
|
|
25670
|
-
Icon ? /* @__PURE__ */
|
|
25734
|
+
Icon ? /* @__PURE__ */ jsx40(
|
|
25671
25735
|
Icon,
|
|
25672
25736
|
{
|
|
25673
25737
|
className: AgentGUINode_styles_default.emptyHeroSuggestionsChipIcon,
|
|
25674
25738
|
"aria-hidden": true
|
|
25675
25739
|
}
|
|
25676
25740
|
) : null,
|
|
25677
|
-
/* @__PURE__ */
|
|
25741
|
+
/* @__PURE__ */ jsx40("span", { children: category.label })
|
|
25678
25742
|
]
|
|
25679
25743
|
},
|
|
25680
25744
|
category.id
|
|
25681
25745
|
);
|
|
25682
25746
|
}) }),
|
|
25683
|
-
activeCategory ? /* @__PURE__ */
|
|
25684
|
-
/* @__PURE__ */
|
|
25685
|
-
/* @__PURE__ */
|
|
25686
|
-
ActiveCategoryIcon ? /* @__PURE__ */
|
|
25747
|
+
activeCategory ? /* @__PURE__ */ jsxs29("div", { className: AgentGUINode_styles_default.emptyHeroSuggestionsCard, children: [
|
|
25748
|
+
/* @__PURE__ */ jsxs29("div", { className: AgentGUINode_styles_default.emptyHeroSuggestionsCardHeader, children: [
|
|
25749
|
+
/* @__PURE__ */ jsxs29("span", { className: AgentGUINode_styles_default.emptyHeroSuggestionsCardTitle, children: [
|
|
25750
|
+
ActiveCategoryIcon ? /* @__PURE__ */ jsx40(
|
|
25687
25751
|
ActiveCategoryIcon,
|
|
25688
25752
|
{
|
|
25689
25753
|
className: AgentGUINode_styles_default.emptyHeroSuggestionsChipIcon,
|
|
@@ -25692,7 +25756,7 @@ var AgentHomeSuggestions = memo2(function AgentHomeSuggestions2({
|
|
|
25692
25756
|
) : null,
|
|
25693
25757
|
activeCategory.label
|
|
25694
25758
|
] }),
|
|
25695
|
-
/* @__PURE__ */
|
|
25759
|
+
/* @__PURE__ */ jsx40(
|
|
25696
25760
|
"button",
|
|
25697
25761
|
{
|
|
25698
25762
|
type: "button",
|
|
@@ -25700,11 +25764,11 @@ var AgentHomeSuggestions = memo2(function AgentHomeSuggestions2({
|
|
|
25700
25764
|
"aria-label": closeLabel,
|
|
25701
25765
|
title: closeLabel,
|
|
25702
25766
|
onClick: () => setActiveCategoryId(null),
|
|
25703
|
-
children: /* @__PURE__ */
|
|
25767
|
+
children: /* @__PURE__ */ jsx40(X6, { "aria-hidden": true })
|
|
25704
25768
|
}
|
|
25705
25769
|
)
|
|
25706
25770
|
] }),
|
|
25707
|
-
activeCategory.items?.map((item) => /* @__PURE__ */
|
|
25771
|
+
activeCategory.items?.map((item) => /* @__PURE__ */ jsx40(
|
|
25708
25772
|
"button",
|
|
25709
25773
|
{
|
|
25710
25774
|
type: "button",
|
|
@@ -25752,7 +25816,7 @@ function createFallbackAgentGUIAgentAvatar(input) {
|
|
|
25752
25816
|
|
|
25753
25817
|
// agent-gui/agentGuiNode/view/AgentGUIEmptyHeroCarouselStage.tsx
|
|
25754
25818
|
import { Component as Component3 } from "react";
|
|
25755
|
-
import { jsx as
|
|
25819
|
+
import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
25756
25820
|
var AgentGUIEmptyHeroCarouselStage = class extends Component3 {
|
|
25757
25821
|
animationFrame = null;
|
|
25758
25822
|
layer = null;
|
|
@@ -25777,8 +25841,8 @@ var AgentGUIEmptyHeroCarouselStage = class extends Component3 {
|
|
|
25777
25841
|
providerSelectLabel
|
|
25778
25842
|
} = this.props;
|
|
25779
25843
|
const hasCarousel = items.length > 1;
|
|
25780
|
-
return /* @__PURE__ */
|
|
25781
|
-
hasCarousel ? /* @__PURE__ */
|
|
25844
|
+
return /* @__PURE__ */ jsxs30("div", { ref: this.setStage, className: AgentGUINode_styles_default.emptyHeroCarouselStage, children: [
|
|
25845
|
+
hasCarousel ? /* @__PURE__ */ jsx41("div", { ref: this.setLayer, className: AgentGUINode_styles_default.emptyHeroCarouselLayer, children: /* @__PURE__ */ jsx41(
|
|
25782
25846
|
AgentGUIHeroAgentCarousel,
|
|
25783
25847
|
{
|
|
25784
25848
|
activeAgentTargetId,
|
|
@@ -25880,10 +25944,10 @@ import { useExternalStoreSnapshot } from "@tutti-os/ui-react-hooks";
|
|
|
25880
25944
|
import {
|
|
25881
25945
|
Button as Button4,
|
|
25882
25946
|
RefreshIcon,
|
|
25883
|
-
Select as
|
|
25884
|
-
SelectContent as
|
|
25885
|
-
SelectItem as
|
|
25886
|
-
SelectTrigger as
|
|
25947
|
+
Select as Select4,
|
|
25948
|
+
SelectContent as SelectContent4,
|
|
25949
|
+
SelectItem as SelectItem4,
|
|
25950
|
+
SelectTrigger as SelectTrigger4,
|
|
25887
25951
|
SelectValue,
|
|
25888
25952
|
cn as cn4
|
|
25889
25953
|
} from "@tutti-os/ui-system";
|
|
@@ -25926,7 +25990,7 @@ function isFailed(status) {
|
|
|
25926
25990
|
}
|
|
25927
25991
|
|
|
25928
25992
|
// shared/agentEnv/agentTargetSetupController.tsx
|
|
25929
|
-
import { jsx as
|
|
25993
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
25930
25994
|
var DISABLED_SETUP_STATE = {
|
|
25931
25995
|
snapshot: null,
|
|
25932
25996
|
loading: false,
|
|
@@ -25937,7 +26001,7 @@ function AgentTargetSetupControllerProvider({
|
|
|
25937
26001
|
children,
|
|
25938
26002
|
controller
|
|
25939
26003
|
}) {
|
|
25940
|
-
return /* @__PURE__ */
|
|
26004
|
+
return /* @__PURE__ */ jsx42(AgentTargetSetupControllerContext.Provider, { value: controller, children });
|
|
25941
26005
|
}
|
|
25942
26006
|
function useAgentTargetSetupController() {
|
|
25943
26007
|
const controller = useContext(AgentTargetSetupControllerContext);
|
|
@@ -26102,7 +26166,7 @@ function createClientActionId() {
|
|
|
26102
26166
|
}
|
|
26103
26167
|
|
|
26104
26168
|
// agent-gui/agentGuiNode/view/AgentTargetSetupGate.tsx
|
|
26105
|
-
import { Fragment as Fragment11, jsx as
|
|
26169
|
+
import { Fragment as Fragment11, jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
26106
26170
|
function AgentTargetSetupGate({
|
|
26107
26171
|
children,
|
|
26108
26172
|
carouselMountedExternally,
|
|
@@ -26129,7 +26193,7 @@ function AgentTargetSetupGate({
|
|
|
26129
26193
|
(method) => method.id === selectedAuthMethodId
|
|
26130
26194
|
) ? selectedAuthMethodId ?? "" : authMethods.some((method) => method.id === account?.authMethodId) ? account?.authMethodId ?? "" : authMethods[0]?.id ?? "";
|
|
26131
26195
|
if (!enabled) {
|
|
26132
|
-
return /* @__PURE__ */
|
|
26196
|
+
return /* @__PURE__ */ jsx43(Fragment11, { children });
|
|
26133
26197
|
}
|
|
26134
26198
|
const setupChecking = !snapshot && !failed;
|
|
26135
26199
|
const setupBlocked = failed || !snapshot || snapshot.status !== "ready";
|
|
@@ -26152,26 +26216,26 @@ function AgentTargetSetupGate({
|
|
|
26152
26216
|
const accountDetail = account ? [account.displayName, account.organization].filter(Boolean).join(" \xB7 ") : void 0;
|
|
26153
26217
|
const setupDescription = setupChecking ? t("agentHost.agentGui.targetSetupChecking") : snapshot?.status === "auth_required" ? t("agentHost.agentGui.targetSetupAuthRequired") : snapshot?.status === "ready" ? t("agentHost.agentGui.targetSetupReady") : t("agentHost.agentGui.targetSetupDescription");
|
|
26154
26218
|
const authenticationAvailable = snapshot?.status === "auth_required" || snapshot?.status === "ready";
|
|
26155
|
-
return /* @__PURE__ */
|
|
26156
|
-
gateVisible && setupBlocked ? /* @__PURE__ */
|
|
26219
|
+
return /* @__PURE__ */ jsxs31(Fragment11, { children: [
|
|
26220
|
+
gateVisible && setupBlocked ? /* @__PURE__ */ jsx43("div", { className: AgentGUINode_styles_default.emptyHero, children: /* @__PURE__ */ jsxs31(
|
|
26157
26221
|
"div",
|
|
26158
26222
|
{
|
|
26159
26223
|
className: cn4(AgentGUINode_styles_default.emptyHeroBody, AgentGUINode_styles_default.emptyProviderGate),
|
|
26160
26224
|
"data-testid": "agent-target-setup-gate",
|
|
26161
26225
|
role: "status",
|
|
26162
26226
|
children: [
|
|
26163
|
-
carouselMountedExternally ? /* @__PURE__ */
|
|
26227
|
+
carouselMountedExternally ? /* @__PURE__ */ jsx43(
|
|
26164
26228
|
"div",
|
|
26165
26229
|
{
|
|
26166
26230
|
"aria-hidden": "true",
|
|
26167
26231
|
className: AgentGUINode_styles_default.emptyHeroCarouselPlaceholder
|
|
26168
26232
|
}
|
|
26169
26233
|
) : null,
|
|
26170
|
-
/* @__PURE__ */
|
|
26234
|
+
/* @__PURE__ */ jsx43("h2", { className: AgentGUINode_styles_default.emptyHeroTitle, children: t("agentHost.agentGui.targetSetupTitle", {
|
|
26171
26235
|
provider: providerLabel
|
|
26172
26236
|
}) }),
|
|
26173
|
-
/* @__PURE__ */
|
|
26174
|
-
!setupChecking ? /* @__PURE__ */
|
|
26237
|
+
/* @__PURE__ */ jsx43("p", { className: AgentGUINode_styles_default.emptyProviderGateDescription, children: setupDescription }),
|
|
26238
|
+
!setupChecking ? /* @__PURE__ */ jsx43(
|
|
26175
26239
|
Button4,
|
|
26176
26240
|
{
|
|
26177
26241
|
type: "button",
|
|
@@ -26183,7 +26247,7 @@ function AgentTargetSetupGate({
|
|
|
26183
26247
|
]
|
|
26184
26248
|
}
|
|
26185
26249
|
) }) : children,
|
|
26186
|
-
dialogOwner ? /* @__PURE__ */
|
|
26250
|
+
dialogOwner ? /* @__PURE__ */ jsx43(
|
|
26187
26251
|
AgentSetupDialog,
|
|
26188
26252
|
{
|
|
26189
26253
|
open: dialogOpen,
|
|
@@ -26192,7 +26256,7 @@ function AgentTargetSetupGate({
|
|
|
26192
26256
|
provider: providerLabel
|
|
26193
26257
|
}),
|
|
26194
26258
|
description: setupDescription,
|
|
26195
|
-
footer: /* @__PURE__ */
|
|
26259
|
+
footer: /* @__PURE__ */ jsxs31(
|
|
26196
26260
|
Button4,
|
|
26197
26261
|
{
|
|
26198
26262
|
size: "dialog",
|
|
@@ -26200,19 +26264,19 @@ function AgentTargetSetupGate({
|
|
|
26200
26264
|
disabled: loading,
|
|
26201
26265
|
onClick: () => void controller.refresh(),
|
|
26202
26266
|
children: [
|
|
26203
|
-
/* @__PURE__ */
|
|
26267
|
+
/* @__PURE__ */ jsx43(RefreshIcon, { className: "size-4" }),
|
|
26204
26268
|
t("agentHost.agentGui.targetSetupRetry")
|
|
26205
26269
|
]
|
|
26206
26270
|
}
|
|
26207
26271
|
),
|
|
26208
|
-
children: /* @__PURE__ */
|
|
26209
|
-
/* @__PURE__ */
|
|
26272
|
+
children: /* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-4", children: [
|
|
26273
|
+
/* @__PURE__ */ jsx43("p", { className: "m-0 text-[13px] text-[var(--text-secondary)]", children: statusLabel ?? (snapshot?.status === "ready" ? t("agentHost.agentGui.targetSetupComplete", {
|
|
26210
26274
|
provider: providerLabel
|
|
26211
26275
|
}) : t("agentHost.agentGui.targetSetupRemaining", {
|
|
26212
26276
|
provider: providerLabel
|
|
26213
26277
|
})) }),
|
|
26214
|
-
/* @__PURE__ */
|
|
26215
|
-
/* @__PURE__ */
|
|
26278
|
+
/* @__PURE__ */ jsxs31("ol", { className: "m-0 flex list-none flex-col divide-y divide-[var(--border-1)] p-0", children: [
|
|
26279
|
+
/* @__PURE__ */ jsx43(
|
|
26216
26280
|
SetupTrackRow,
|
|
26217
26281
|
{
|
|
26218
26282
|
label: t("agentHost.agentGui.targetSetupStage.detect"),
|
|
@@ -26220,14 +26284,14 @@ function AgentTargetSetupGate({
|
|
|
26220
26284
|
detail: snapshot?.runtimeVersion ? `${snapshot.runtimeVersion} \xB7 ${snapshot.runtimeSource ?? ""}` : void 0
|
|
26221
26285
|
}
|
|
26222
26286
|
),
|
|
26223
|
-
/* @__PURE__ */
|
|
26287
|
+
/* @__PURE__ */ jsx43(
|
|
26224
26288
|
SetupTrackRow,
|
|
26225
26289
|
{
|
|
26226
26290
|
label: t("agentHost.agentGui.targetSetupStage.install"),
|
|
26227
26291
|
status: installStatus,
|
|
26228
26292
|
warning: snapshot?.status === "not_installed",
|
|
26229
26293
|
detail: snapshot?.plan ? `${snapshot.plan.packageName}@${snapshot.plan.packageVersion}` : void 0,
|
|
26230
|
-
action: snapshot?.status === "not_installed" && snapshot.plan ? /* @__PURE__ */
|
|
26294
|
+
action: snapshot?.status === "not_installed" && snapshot.plan ? /* @__PURE__ */ jsx43(
|
|
26231
26295
|
Button4,
|
|
26232
26296
|
{
|
|
26233
26297
|
type: "button",
|
|
@@ -26237,10 +26301,10 @@ function AgentTargetSetupGate({
|
|
|
26237
26301
|
children: installPending ? t("agentHost.agentGui.targetSetupStarting") : t("agentHost.agentGui.targetSetupInstall")
|
|
26238
26302
|
}
|
|
26239
26303
|
) : void 0,
|
|
26240
|
-
children: snapshot?.plan ? /* @__PURE__ */
|
|
26304
|
+
children: snapshot?.plan ? /* @__PURE__ */ jsx43("span", { className: "mt-2 block break-all text-[12px] text-[var(--text-secondary)]", children: snapshot.plan.installRoot }) : null
|
|
26241
26305
|
}
|
|
26242
26306
|
),
|
|
26243
|
-
/* @__PURE__ */
|
|
26307
|
+
/* @__PURE__ */ jsx43(
|
|
26244
26308
|
SetupTrackRow,
|
|
26245
26309
|
{
|
|
26246
26310
|
label: t(
|
|
@@ -26249,7 +26313,7 @@ function AgentTargetSetupGate({
|
|
|
26249
26313
|
status: loginStatus,
|
|
26250
26314
|
warning: snapshot?.status === "auth_required",
|
|
26251
26315
|
detail: snapshot?.status === "ready" ? accountDetail : void 0,
|
|
26252
|
-
action: authenticationAvailable && authMethods.length > 0 ? /* @__PURE__ */
|
|
26316
|
+
action: authenticationAvailable && authMethods.length > 0 ? /* @__PURE__ */ jsx43(
|
|
26253
26317
|
Button4,
|
|
26254
26318
|
{
|
|
26255
26319
|
type: "button",
|
|
@@ -26259,40 +26323,40 @@ function AgentTargetSetupGate({
|
|
|
26259
26323
|
children: authenticatePending ? t("agentHost.agentGui.targetSetupAuthStarting") : snapshot?.status === "ready" ? t("agentHost.agentGui.targetSetupReauthenticate") : t("agentHost.agentGui.targetSetupAuthenticate")
|
|
26260
26324
|
}
|
|
26261
26325
|
) : void 0,
|
|
26262
|
-
children: snapshot?.status === "auth_required" && authMethods.length > 0 ? /* @__PURE__ */
|
|
26326
|
+
children: snapshot?.status === "auth_required" && authMethods.length > 0 ? /* @__PURE__ */ jsxs31("label", { className: "mt-2 flex flex-col gap-1 text-[12px] text-[var(--text-secondary)]", children: [
|
|
26263
26327
|
t("agentHost.agentGui.targetSetupAuthMethod"),
|
|
26264
|
-
/* @__PURE__ */
|
|
26265
|
-
|
|
26328
|
+
/* @__PURE__ */ jsxs31(
|
|
26329
|
+
Select4,
|
|
26266
26330
|
{
|
|
26267
26331
|
value: effectiveAuthMethodId,
|
|
26268
26332
|
onValueChange: controller.selectAuthMethod,
|
|
26269
26333
|
children: [
|
|
26270
|
-
/* @__PURE__ */
|
|
26271
|
-
|
|
26334
|
+
/* @__PURE__ */ jsx43(
|
|
26335
|
+
SelectTrigger4,
|
|
26272
26336
|
{
|
|
26273
26337
|
"aria-label": t(
|
|
26274
26338
|
"agentHost.agentGui.targetSetupAuthMethod"
|
|
26275
26339
|
),
|
|
26276
|
-
children: /* @__PURE__ */
|
|
26340
|
+
children: /* @__PURE__ */ jsx43(SelectValue, {})
|
|
26277
26341
|
}
|
|
26278
26342
|
),
|
|
26279
|
-
/* @__PURE__ */
|
|
26280
|
-
|
|
26343
|
+
/* @__PURE__ */ jsx43(
|
|
26344
|
+
SelectContent4,
|
|
26281
26345
|
{
|
|
26282
26346
|
style: { zIndex: "var(--z-dialog-popover)" },
|
|
26283
|
-
children: authMethods.map((method) => /* @__PURE__ */
|
|
26347
|
+
children: authMethods.map((method) => /* @__PURE__ */ jsx43(SelectItem4, { value: method.id, children: method.name }, method.id))
|
|
26284
26348
|
}
|
|
26285
26349
|
)
|
|
26286
26350
|
]
|
|
26287
26351
|
}
|
|
26288
26352
|
)
|
|
26289
|
-
] }) : snapshot?.status === "auth_required" ? /* @__PURE__ */
|
|
26353
|
+
] }) : snapshot?.status === "auth_required" ? /* @__PURE__ */ jsx43("p", { className: "mt-2 mb-0 text-[12px] text-[var(--text-secondary)]", children: t("agentHost.agentGui.targetSetupNoAuthMethods") }) : null
|
|
26290
26354
|
}
|
|
26291
26355
|
)
|
|
26292
26356
|
] }),
|
|
26293
|
-
failed || snapshot?.status === "failed" || actionFailed ? /* @__PURE__ */
|
|
26294
|
-
/* @__PURE__ */
|
|
26295
|
-
snapshot?.action?.errorMessage?.trim() ? /* @__PURE__ */
|
|
26357
|
+
failed || snapshot?.status === "failed" || actionFailed ? /* @__PURE__ */ jsxs31("p", { className: "m-0 text-[12px] text-[var(--state-danger)]", children: [
|
|
26358
|
+
/* @__PURE__ */ jsx43("span", { className: "block", children: snapshot?.action?.kind === "authenticate" ? t("agentHost.agentGui.targetSetupAuthFailed") : t("agentHost.agentGui.targetSetupFailed") }),
|
|
26359
|
+
snapshot?.action?.errorMessage?.trim() ? /* @__PURE__ */ jsx43("span", { className: "mt-1 block break-words text-[var(--text-secondary)]", children: snapshot.action.errorMessage.trim() }) : null
|
|
26296
26360
|
] }) : null
|
|
26297
26361
|
] })
|
|
26298
26362
|
}
|
|
@@ -26313,23 +26377,23 @@ function SetupTrackRow({
|
|
|
26313
26377
|
status,
|
|
26314
26378
|
warning = false
|
|
26315
26379
|
}) {
|
|
26316
|
-
return /* @__PURE__ */
|
|
26380
|
+
return /* @__PURE__ */ jsxs31(
|
|
26317
26381
|
"li",
|
|
26318
26382
|
{
|
|
26319
26383
|
"data-status": status,
|
|
26320
26384
|
className: `flex items-start gap-2.5 py-3 ${status === "pending" ? "opacity-50" : ""}`,
|
|
26321
26385
|
children: [
|
|
26322
|
-
/* @__PURE__ */
|
|
26323
|
-
/* @__PURE__ */
|
|
26324
|
-
/* @__PURE__ */
|
|
26325
|
-
/* @__PURE__ */
|
|
26386
|
+
/* @__PURE__ */ jsx43("span", { className: "mt-0.5 shrink-0", children: /* @__PURE__ */ jsx43(AgentSetupStepIcon, { status, warning }) }),
|
|
26387
|
+
/* @__PURE__ */ jsxs31("span", { className: "min-w-0 flex-1", children: [
|
|
26388
|
+
/* @__PURE__ */ jsxs31("span", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
26389
|
+
/* @__PURE__ */ jsx43(
|
|
26326
26390
|
"span",
|
|
26327
26391
|
{
|
|
26328
26392
|
className: `shrink-0 text-[13px] font-medium ${status === "error" ? warning ? "text-[var(--state-warning)]" : "text-[var(--state-danger)]" : "text-[var(--text-primary)]"}`,
|
|
26329
26393
|
children: label
|
|
26330
26394
|
}
|
|
26331
26395
|
),
|
|
26332
|
-
detail ? /* @__PURE__ */
|
|
26396
|
+
detail ? /* @__PURE__ */ jsx43("span", { className: "min-w-0 truncate text-[12px] text-[var(--text-secondary)]", children: detail }) : null
|
|
26333
26397
|
] }),
|
|
26334
26398
|
children
|
|
26335
26399
|
] }),
|
|
@@ -26378,7 +26442,7 @@ function targetSetupPhaseLabel(t, phase) {
|
|
|
26378
26442
|
|
|
26379
26443
|
// agent-gui/agentGuiNode/view/AgentGUIAgentTargetName.tsx
|
|
26380
26444
|
import { cn as cn5 } from "@tutti-os/ui-system";
|
|
26381
|
-
import { Fragment as Fragment12, jsx as
|
|
26445
|
+
import { Fragment as Fragment12, jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
26382
26446
|
function projectAgentGUIAgentTargetName(input) {
|
|
26383
26447
|
const agentLabel = input.target.label.trim();
|
|
26384
26448
|
const ownerLabel = input.target.ownership === "shared" ? input.target.ownerLabel?.trim() || null : null;
|
|
@@ -26399,13 +26463,13 @@ function AgentGUIAgentTargetName({
|
|
|
26399
26463
|
ownerSeparator,
|
|
26400
26464
|
target
|
|
26401
26465
|
});
|
|
26402
|
-
return /* @__PURE__ */
|
|
26466
|
+
return /* @__PURE__ */ jsx44(
|
|
26403
26467
|
"span",
|
|
26404
26468
|
{
|
|
26405
26469
|
className: cn5("flex min-w-0 max-w-full items-baseline", className),
|
|
26406
26470
|
title: presentation.fullLabel,
|
|
26407
|
-
children: presentation.ownerLabel ? /* @__PURE__ */
|
|
26408
|
-
/* @__PURE__ */
|
|
26471
|
+
children: presentation.ownerLabel ? /* @__PURE__ */ jsxs32(Fragment12, { children: [
|
|
26472
|
+
/* @__PURE__ */ jsx44(
|
|
26409
26473
|
"span",
|
|
26410
26474
|
{
|
|
26411
26475
|
className: "min-w-0 flex-1 truncate",
|
|
@@ -26413,7 +26477,7 @@ function AgentGUIAgentTargetName({
|
|
|
26413
26477
|
children: presentation.ownerLabel
|
|
26414
26478
|
}
|
|
26415
26479
|
),
|
|
26416
|
-
/* @__PURE__ */
|
|
26480
|
+
/* @__PURE__ */ jsxs32(
|
|
26417
26481
|
"span",
|
|
26418
26482
|
{
|
|
26419
26483
|
className: "shrink-0 whitespace-pre",
|
|
@@ -26424,13 +26488,13 @@ function AgentGUIAgentTargetName({
|
|
|
26424
26488
|
]
|
|
26425
26489
|
}
|
|
26426
26490
|
)
|
|
26427
|
-
] }) : /* @__PURE__ */
|
|
26491
|
+
] }) : /* @__PURE__ */ jsx44("span", { className: "min-w-0 truncate", "data-testid": "agent-target-name", children: presentation.agentLabel })
|
|
26428
26492
|
}
|
|
26429
26493
|
);
|
|
26430
26494
|
}
|
|
26431
26495
|
|
|
26432
26496
|
// agent-gui/agentGuiNode/view/AgentGUIEmptyState.tsx
|
|
26433
|
-
import { Fragment as Fragment13, jsx as
|
|
26497
|
+
import { Fragment as Fragment13, jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
26434
26498
|
function resolveAgentGUIHeroIconUrl2(provider) {
|
|
26435
26499
|
const normalizedProvider = normalizeManagedAgentProvider(provider);
|
|
26436
26500
|
return MANAGED_AGENT_ICON_URLS[normalizedProvider] ?? MANAGED_AGENT_ICON_FALLBACK_URL;
|
|
@@ -26475,18 +26539,18 @@ var AgentGUIEmptyHomePane = memo3(function AgentGUIEmptyHomePane2({
|
|
|
26475
26539
|
[agentTargets, provider, providerLabel, selectedAgentTarget]
|
|
26476
26540
|
);
|
|
26477
26541
|
const carouselMountedExternally = avatarPresentations.length > 1;
|
|
26478
|
-
return /* @__PURE__ */
|
|
26542
|
+
return /* @__PURE__ */ jsx45(
|
|
26479
26543
|
AgentGUIEmptyHeroCarouselStage,
|
|
26480
26544
|
{
|
|
26481
26545
|
activeAgentTargetId: selectedAgentTarget?.agentTargetId ?? selectedAgentTarget?.targetId,
|
|
26482
26546
|
items: avatarPresentations,
|
|
26483
26547
|
onProviderSelect,
|
|
26484
26548
|
providerSelectLabel: labels.providerSwitchLabel,
|
|
26485
|
-
children: /* @__PURE__ */
|
|
26549
|
+
children: /* @__PURE__ */ jsx45(
|
|
26486
26550
|
AgentTargetSetupGate,
|
|
26487
26551
|
{
|
|
26488
26552
|
carouselMountedExternally,
|
|
26489
|
-
children: providerReadinessGate ? /* @__PURE__ */
|
|
26553
|
+
children: providerReadinessGate ? /* @__PURE__ */ jsx45(
|
|
26490
26554
|
AgentGUIProviderReadinessGatePane,
|
|
26491
26555
|
{
|
|
26492
26556
|
provider,
|
|
@@ -26502,7 +26566,7 @@ var AgentGUIEmptyHomePane = memo3(function AgentGUIEmptyHomePane2({
|
|
|
26502
26566
|
selectedAgentTarget,
|
|
26503
26567
|
labels
|
|
26504
26568
|
}
|
|
26505
|
-
) : /* @__PURE__ */
|
|
26569
|
+
) : /* @__PURE__ */ jsx45(
|
|
26506
26570
|
AgentGUIEmptyHeroPane,
|
|
26507
26571
|
{
|
|
26508
26572
|
...heroProps,
|
|
@@ -26557,13 +26621,13 @@ var AgentGUIEmptyHeroPane = memo3(function AgentGUIEmptyHeroPane2({
|
|
|
26557
26621
|
const heroIconAnimationKey = heroAvatarPresentations.map(
|
|
26558
26622
|
(avatar) => `${avatar.agentTargetId}:${avatar.iconUrl}:${avatar.badge?.iconUrl ?? ""}`
|
|
26559
26623
|
).join("|");
|
|
26560
|
-
return /* @__PURE__ */
|
|
26561
|
-
/* @__PURE__ */
|
|
26624
|
+
return /* @__PURE__ */ jsx45("div", { className: AgentGUINode_styles_default.emptyHero, children: /* @__PURE__ */ jsxs33("div", { className: AgentGUINode_styles_default.emptyHeroBody, children: [
|
|
26625
|
+
/* @__PURE__ */ jsx45(
|
|
26562
26626
|
"div",
|
|
26563
26627
|
{
|
|
26564
26628
|
className: AgentGUINode_styles_default.emptyHeroIconSlot,
|
|
26565
26629
|
"data-carousel-placeholder": carouselMountedExternally || void 0,
|
|
26566
|
-
children: carouselMountedExternally ? null : heroAvatarPresentations.length > 1 ? /* @__PURE__ */
|
|
26630
|
+
children: carouselMountedExternally ? null : heroAvatarPresentations.length > 1 ? /* @__PURE__ */ jsx45(
|
|
26567
26631
|
AgentGUIHeroAgentCarousel,
|
|
26568
26632
|
{
|
|
26569
26633
|
activeAgentTargetId: selectedAgentTarget?.agentTargetId ?? selectedAgentTarget?.targetId,
|
|
@@ -26571,7 +26635,7 @@ var AgentGUIEmptyHeroPane = memo3(function AgentGUIEmptyHeroPane2({
|
|
|
26571
26635
|
onProviderSelect,
|
|
26572
26636
|
providerSelectLabel
|
|
26573
26637
|
}
|
|
26574
|
-
) : /* @__PURE__ */
|
|
26638
|
+
) : /* @__PURE__ */ jsx45(
|
|
26575
26639
|
AgentGUIAgentAvatarVisual,
|
|
26576
26640
|
{
|
|
26577
26641
|
className: AgentGUINode_styles_default.emptyHeroIconEffect,
|
|
@@ -26581,7 +26645,7 @@ var AgentGUIEmptyHeroPane = memo3(function AgentGUIEmptyHeroPane2({
|
|
|
26581
26645
|
)
|
|
26582
26646
|
}
|
|
26583
26647
|
),
|
|
26584
|
-
/* @__PURE__ */
|
|
26648
|
+
/* @__PURE__ */ jsx45("h2", { className: AgentGUINode_styles_default.emptyHeroTitle, children: /* @__PURE__ */ jsx45(
|
|
26585
26649
|
EmptyHeroTitle,
|
|
26586
26650
|
{
|
|
26587
26651
|
label: emptyLabel,
|
|
@@ -26593,7 +26657,7 @@ var AgentGUIEmptyHeroPane = memo3(function AgentGUIEmptyHeroPane2({
|
|
|
26593
26657
|
sharedAgentOwnerSeparator
|
|
26594
26658
|
}
|
|
26595
26659
|
) }),
|
|
26596
|
-
inlineNoticeChrome ? /* @__PURE__ */
|
|
26660
|
+
inlineNoticeChrome ? /* @__PURE__ */ jsx45(
|
|
26597
26661
|
AgentSessionChrome,
|
|
26598
26662
|
{
|
|
26599
26663
|
chrome: inlineNoticeChrome,
|
|
@@ -26605,8 +26669,8 @@ var AgentGUIEmptyHeroPane = memo3(function AgentGUIEmptyHeroPane2({
|
|
|
26605
26669
|
labels: chromeLabels
|
|
26606
26670
|
}
|
|
26607
26671
|
) : null,
|
|
26608
|
-
/* @__PURE__ */
|
|
26609
|
-
/* @__PURE__ */
|
|
26672
|
+
/* @__PURE__ */ jsx45(AgentComposer, { ...composerProps }),
|
|
26673
|
+
/* @__PURE__ */ jsx45(
|
|
26610
26674
|
AgentHomeSuggestions,
|
|
26611
26675
|
{
|
|
26612
26676
|
categories: suggestions,
|
|
@@ -26652,20 +26716,20 @@ var AgentGUIProviderReadinessGatePane = memo3(
|
|
|
26652
26716
|
const titleLabel = gate.status === "not_installed" || gate.status === "auth_required" ? emptyLabel : content.title;
|
|
26653
26717
|
const action = resolveAgentGUIProviderReadinessAction(gate.status);
|
|
26654
26718
|
const pendingLabel = pendingAction === "install" ? labels.providerGatePendingInstall : pendingAction === "login" ? labels.providerGatePendingLogin : pendingAction === "refresh" ? labels.providerGatePendingRefresh : null;
|
|
26655
|
-
return /* @__PURE__ */
|
|
26719
|
+
return /* @__PURE__ */ jsx45("div", { className: AgentGUINode_styles_default.emptyHero, children: /* @__PURE__ */ jsxs33(
|
|
26656
26720
|
"div",
|
|
26657
26721
|
{
|
|
26658
26722
|
className: cn6(AgentGUINode_styles_default.emptyHeroBody, AgentGUINode_styles_default.emptyProviderGate),
|
|
26659
26723
|
"data-testid": "agent-gui-provider-readiness-gate",
|
|
26660
26724
|
role: "status",
|
|
26661
26725
|
children: [
|
|
26662
|
-
carouselMountedExternally ? /* @__PURE__ */
|
|
26726
|
+
carouselMountedExternally ? /* @__PURE__ */ jsx45(
|
|
26663
26727
|
"div",
|
|
26664
26728
|
{
|
|
26665
26729
|
"aria-hidden": "true",
|
|
26666
26730
|
className: AgentGUINode_styles_default.emptyHeroCarouselPlaceholder
|
|
26667
26731
|
}
|
|
26668
|
-
) : heroAvatarPresentations.length > 1 ? /* @__PURE__ */
|
|
26732
|
+
) : heroAvatarPresentations.length > 1 ? /* @__PURE__ */ jsx45(
|
|
26669
26733
|
AgentGUIHeroAgentCarousel,
|
|
26670
26734
|
{
|
|
26671
26735
|
activeAgentTargetId: selectedAgentTarget?.agentTargetId ?? selectedAgentTarget?.targetId,
|
|
@@ -26673,14 +26737,14 @@ var AgentGUIProviderReadinessGatePane = memo3(
|
|
|
26673
26737
|
onProviderSelect,
|
|
26674
26738
|
providerSelectLabel
|
|
26675
26739
|
}
|
|
26676
|
-
) : /* @__PURE__ */
|
|
26740
|
+
) : /* @__PURE__ */ jsx45(
|
|
26677
26741
|
AgentGUIAgentAvatarVisual,
|
|
26678
26742
|
{
|
|
26679
26743
|
className: AgentGUINode_styles_default.emptyHeroIconEffect,
|
|
26680
26744
|
presentation: heroAvatarPresentations[0]
|
|
26681
26745
|
}
|
|
26682
26746
|
),
|
|
26683
|
-
/* @__PURE__ */
|
|
26747
|
+
/* @__PURE__ */ jsx45("h2", { className: AgentGUINode_styles_default.emptyHeroTitle, children: /* @__PURE__ */ jsx45(
|
|
26684
26748
|
EmptyHeroTitle,
|
|
26685
26749
|
{
|
|
26686
26750
|
label: titleLabel,
|
|
@@ -26692,8 +26756,8 @@ var AgentGUIProviderReadinessGatePane = memo3(
|
|
|
26692
26756
|
sharedAgentOwnerSeparator: labels.sharedAgentOwnerSeparator
|
|
26693
26757
|
}
|
|
26694
26758
|
) }),
|
|
26695
|
-
/* @__PURE__ */
|
|
26696
|
-
pendingLabel && !action ? /* @__PURE__ */
|
|
26759
|
+
/* @__PURE__ */ jsx45("p", { className: AgentGUINode_styles_default.emptyProviderGateDescription, children: content.description }),
|
|
26760
|
+
pendingLabel && !action ? /* @__PURE__ */ jsx45(
|
|
26697
26761
|
"div",
|
|
26698
26762
|
{
|
|
26699
26763
|
className: AgentGUINode_styles_default.emptyProviderGateStatus,
|
|
@@ -26701,7 +26765,7 @@ var AgentGUIProviderReadinessGatePane = memo3(
|
|
|
26701
26765
|
children: pendingLabel
|
|
26702
26766
|
}
|
|
26703
26767
|
) : null,
|
|
26704
|
-
action ? /* @__PURE__ */
|
|
26768
|
+
action ? /* @__PURE__ */ jsx45(
|
|
26705
26769
|
Button,
|
|
26706
26770
|
{
|
|
26707
26771
|
type: "button",
|
|
@@ -26720,7 +26784,7 @@ var AgentGUIProviderReadinessGatePane = memo3(
|
|
|
26720
26784
|
},
|
|
26721
26785
|
children: isPending && pendingLabel ? pendingLabel : content.actionLabel
|
|
26722
26786
|
}
|
|
26723
|
-
) : content.actionLabel ? /* @__PURE__ */
|
|
26787
|
+
) : content.actionLabel ? /* @__PURE__ */ jsx45(
|
|
26724
26788
|
Button,
|
|
26725
26789
|
{
|
|
26726
26790
|
type: "button",
|
|
@@ -26743,7 +26807,7 @@ function AgentGUIUnifiedProviderIcon({
|
|
|
26743
26807
|
presentation
|
|
26744
26808
|
}) {
|
|
26745
26809
|
const iconUrl = presentation?.iconUrl?.trim() || agentColorfulUrl;
|
|
26746
|
-
return /* @__PURE__ */
|
|
26810
|
+
return /* @__PURE__ */ jsx45("span", { "aria-hidden": "true", className: AgentGUINode_styles_default.providerRailAvatar, children: /* @__PURE__ */ jsx45(
|
|
26747
26811
|
"img",
|
|
26748
26812
|
{
|
|
26749
26813
|
alt: "",
|
|
@@ -26758,7 +26822,7 @@ function AgentGUIProviderIconVisual({
|
|
|
26758
26822
|
icon,
|
|
26759
26823
|
imageClassName
|
|
26760
26824
|
}) {
|
|
26761
|
-
return /* @__PURE__ */
|
|
26825
|
+
return /* @__PURE__ */ jsx45(
|
|
26762
26826
|
"img",
|
|
26763
26827
|
{
|
|
26764
26828
|
alt: "",
|
|
@@ -26774,14 +26838,14 @@ function AgentGUIAgentAvatarVisual({
|
|
|
26774
26838
|
imageClassName,
|
|
26775
26839
|
presentation
|
|
26776
26840
|
}) {
|
|
26777
|
-
return /* @__PURE__ */
|
|
26841
|
+
return /* @__PURE__ */ jsxs33(
|
|
26778
26842
|
"span",
|
|
26779
26843
|
{
|
|
26780
26844
|
"aria-hidden": "true",
|
|
26781
26845
|
className: cn6(AgentGUINode_styles_default.agentAvatar, className),
|
|
26782
26846
|
"data-agent-target-id": presentation.agentTargetId,
|
|
26783
26847
|
children: [
|
|
26784
|
-
/* @__PURE__ */
|
|
26848
|
+
/* @__PURE__ */ jsx45(
|
|
26785
26849
|
"img",
|
|
26786
26850
|
{
|
|
26787
26851
|
alt: "",
|
|
@@ -26790,7 +26854,7 @@ function AgentGUIAgentAvatarVisual({
|
|
|
26790
26854
|
src: presentation.iconUrl
|
|
26791
26855
|
}
|
|
26792
26856
|
),
|
|
26793
|
-
presentation.badge?.iconUrl ? /* @__PURE__ */
|
|
26857
|
+
presentation.badge?.iconUrl ? /* @__PURE__ */ jsx45("span", { className: AgentGUINode_styles_default.agentAvatarBadge, children: /* @__PURE__ */ jsx45(
|
|
26794
26858
|
"img",
|
|
26795
26859
|
{
|
|
26796
26860
|
alt: "",
|
|
@@ -26814,16 +26878,16 @@ function EmptyHeroTitle({
|
|
|
26814
26878
|
}) {
|
|
26815
26879
|
const providerStart = providerLabel ? label.indexOf(providerLabel) : -1;
|
|
26816
26880
|
if (!shouldEmphasizeEmptyHeroProvider(label) || providerStart < 0) {
|
|
26817
|
-
return /* @__PURE__ */
|
|
26881
|
+
return /* @__PURE__ */ jsx45(Fragment13, { children: label });
|
|
26818
26882
|
}
|
|
26819
26883
|
const providerEnd = providerStart + providerLabel.length;
|
|
26820
26884
|
const selectedAgentTargetId = selectedAgentTarget?.targetId ?? `local:${selectedAgentTarget?.provider ?? ""}`;
|
|
26821
26885
|
const canSwitchProvider = agentTargets.length > 1 && selectedAgentTarget && onProviderSelect;
|
|
26822
26886
|
const providerName = label.slice(providerStart, providerEnd);
|
|
26823
|
-
return /* @__PURE__ */
|
|
26887
|
+
return /* @__PURE__ */ jsxs33(Fragment13, { children: [
|
|
26824
26888
|
label.slice(0, providerStart),
|
|
26825
|
-
canSwitchProvider ? /* @__PURE__ */
|
|
26826
|
-
|
|
26889
|
+
canSwitchProvider ? /* @__PURE__ */ jsxs33(
|
|
26890
|
+
Select5,
|
|
26827
26891
|
{
|
|
26828
26892
|
value: selectedAgentTargetId,
|
|
26829
26893
|
onValueChange: (nextTargetId) => {
|
|
@@ -26839,14 +26903,14 @@ function EmptyHeroTitle({
|
|
|
26839
26903
|
});
|
|
26840
26904
|
},
|
|
26841
26905
|
children: [
|
|
26842
|
-
/* @__PURE__ */
|
|
26843
|
-
|
|
26906
|
+
/* @__PURE__ */ jsx45(
|
|
26907
|
+
SelectTrigger5,
|
|
26844
26908
|
{
|
|
26845
26909
|
size: "sm",
|
|
26846
26910
|
"aria-label": providerSelectLabel,
|
|
26847
26911
|
title: providerSelectLabel,
|
|
26848
26912
|
className: AgentGUINode_styles_default.emptyHeroProviderSelect,
|
|
26849
|
-
children: /* @__PURE__ */
|
|
26913
|
+
children: /* @__PURE__ */ jsx45(
|
|
26850
26914
|
AgentGUIAgentTargetName,
|
|
26851
26915
|
{
|
|
26852
26916
|
className: cn6(AgentGUINode_styles_default.emptyHeroProvider, "max-w-[240px]"),
|
|
@@ -26856,21 +26920,21 @@ function EmptyHeroTitle({
|
|
|
26856
26920
|
)
|
|
26857
26921
|
}
|
|
26858
26922
|
),
|
|
26859
|
-
/* @__PURE__ */
|
|
26860
|
-
|
|
26923
|
+
/* @__PURE__ */ jsx45(
|
|
26924
|
+
SelectContent5,
|
|
26861
26925
|
{
|
|
26862
26926
|
align: "center",
|
|
26863
26927
|
className: cn6(
|
|
26864
26928
|
AgentGUINode_styles_default.composerMenuContent,
|
|
26865
26929
|
"min-w-[190px] max-w-[min(420px,calc(100vw-32px))]"
|
|
26866
26930
|
),
|
|
26867
|
-
children: agentTargets.map((target) => /* @__PURE__ */
|
|
26868
|
-
|
|
26931
|
+
children: agentTargets.map((target) => /* @__PURE__ */ jsx45(
|
|
26932
|
+
SelectItem5,
|
|
26869
26933
|
{
|
|
26870
26934
|
value: target.targetId,
|
|
26871
26935
|
className: cn6(AgentGUINode_styles_default.composerMenuItem, "gap-2"),
|
|
26872
|
-
children: /* @__PURE__ */
|
|
26873
|
-
/* @__PURE__ */
|
|
26936
|
+
children: /* @__PURE__ */ jsxs33("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
26937
|
+
/* @__PURE__ */ jsx45(
|
|
26874
26938
|
"img",
|
|
26875
26939
|
{
|
|
26876
26940
|
alt: "",
|
|
@@ -26882,7 +26946,7 @@ function EmptyHeroTitle({
|
|
|
26882
26946
|
).iconUrl
|
|
26883
26947
|
}
|
|
26884
26948
|
),
|
|
26885
|
-
/* @__PURE__ */
|
|
26949
|
+
/* @__PURE__ */ jsx45(
|
|
26886
26950
|
AgentGUIAgentTargetName,
|
|
26887
26951
|
{
|
|
26888
26952
|
ownerSeparator: sharedAgentOwnerSeparator,
|
|
@@ -26897,14 +26961,14 @@ function EmptyHeroTitle({
|
|
|
26897
26961
|
)
|
|
26898
26962
|
]
|
|
26899
26963
|
}
|
|
26900
|
-
) : selectedAgentTarget ? /* @__PURE__ */
|
|
26964
|
+
) : selectedAgentTarget ? /* @__PURE__ */ jsx45(
|
|
26901
26965
|
AgentGUIAgentTargetName,
|
|
26902
26966
|
{
|
|
26903
26967
|
className: cn6(AgentGUINode_styles_default.emptyHeroProvider, "max-w-[240px]"),
|
|
26904
26968
|
ownerSeparator: sharedAgentOwnerSeparator,
|
|
26905
26969
|
target: selectedAgentTarget
|
|
26906
26970
|
}
|
|
26907
|
-
) : /* @__PURE__ */
|
|
26971
|
+
) : /* @__PURE__ */ jsx45("span", { className: AgentGUINode_styles_default.emptyHeroProvider, children: providerName }),
|
|
26908
26972
|
label.slice(providerEnd)
|
|
26909
26973
|
] });
|
|
26910
26974
|
}
|
|
@@ -26912,7 +26976,7 @@ function EmptyHeroTitle({
|
|
|
26912
26976
|
// agent-gui/agentGuiNode/view/AgentGUIProviderManagerDialog.tsx
|
|
26913
26977
|
import {
|
|
26914
26978
|
useRef as useRef35,
|
|
26915
|
-
useState as
|
|
26979
|
+
useState as useState25
|
|
26916
26980
|
} from "react";
|
|
26917
26981
|
import { CircleMinus, CirclePlus } from "lucide-react";
|
|
26918
26982
|
import {
|
|
@@ -26924,7 +26988,7 @@ import {
|
|
|
26924
26988
|
DialogTitle,
|
|
26925
26989
|
toast as toast3
|
|
26926
26990
|
} from "@tutti-os/ui-system";
|
|
26927
|
-
import { jsx as
|
|
26991
|
+
import { jsx as jsx46, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
26928
26992
|
var AGENT_MANAGER_LONG_PRESS_MOVE_TOLERANCE_PX = 8;
|
|
26929
26993
|
var AGENT_MANAGER_DROP_HYSTERESIS_PX = 8;
|
|
26930
26994
|
function AgentGUIProviderManagerDialog({
|
|
@@ -26945,17 +27009,17 @@ function AgentGUIProviderManagerDialog({
|
|
|
26945
27009
|
const disabledTargets = targets.filter(
|
|
26946
27010
|
(target) => hidden.has(target.targetId)
|
|
26947
27011
|
);
|
|
26948
|
-
const [editing, setEditing] =
|
|
26949
|
-
const [dragState, setDragState] =
|
|
27012
|
+
const [editing, setEditing] = useState25(false);
|
|
27013
|
+
const [dragState, setDragState] = useState25(
|
|
26950
27014
|
null
|
|
26951
27015
|
);
|
|
26952
|
-
const [dragOverZone, setDragOverZone] =
|
|
27016
|
+
const [dragOverZone, setDragOverZone] = useState25(
|
|
26953
27017
|
null
|
|
26954
27018
|
);
|
|
26955
|
-
const [dragPreview, setDragPreview] =
|
|
27019
|
+
const [dragPreview, setDragPreview] = useState25(null);
|
|
26956
27020
|
const dragStateRef = useRef35(null);
|
|
26957
27021
|
const dragPreviewRef = useRef35(null);
|
|
26958
|
-
const [longPressTargetId, setLongPressTargetId] =
|
|
27022
|
+
const [longPressTargetId, setLongPressTargetId] = useState25(
|
|
26959
27023
|
null
|
|
26960
27024
|
);
|
|
26961
27025
|
const longPressOriginRef = useRef35(null);
|
|
@@ -27147,7 +27211,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27147
27211
|
};
|
|
27148
27212
|
const disabledDropBlocked = dragState?.source === "available" && (finalAvailableAgent || running.has(dragState.targetId));
|
|
27149
27213
|
const disabledDropBlockedByRunning = dragState?.source === "available" && running.has(dragState.targetId);
|
|
27150
|
-
return /* @__PURE__ */
|
|
27214
|
+
return /* @__PURE__ */ jsx46(Dialog, { open, onOpenChange: handleOpenChange, children: /* @__PURE__ */ jsxs34(
|
|
27151
27215
|
DialogContent,
|
|
27152
27216
|
{
|
|
27153
27217
|
className: "nodrag tsh-desktop-no-drag flex max-h-[min(680px,calc(100vh-32px))] flex-col gap-0 overflow-hidden p-0 [-webkit-app-region:no-drag] sm:max-w-[520px]",
|
|
@@ -27162,17 +27226,17 @@ function AgentGUIProviderManagerDialog({
|
|
|
27162
27226
|
setEditing(false);
|
|
27163
27227
|
},
|
|
27164
27228
|
children: [
|
|
27165
|
-
/* @__PURE__ */
|
|
27166
|
-
/* @__PURE__ */
|
|
27167
|
-
/* @__PURE__ */
|
|
27229
|
+
/* @__PURE__ */ jsxs34(DialogHeader, { className: "shrink-0 border-b border-[var(--border-1)] px-5 py-4", children: [
|
|
27230
|
+
/* @__PURE__ */ jsx46(DialogTitle, { children: labels.manageAgentsTitle }),
|
|
27231
|
+
/* @__PURE__ */ jsx46(DialogDescription, { children: labels.manageAgentsDescription })
|
|
27168
27232
|
] }),
|
|
27169
|
-
/* @__PURE__ */
|
|
27233
|
+
/* @__PURE__ */ jsxs34(
|
|
27170
27234
|
"div",
|
|
27171
27235
|
{
|
|
27172
27236
|
className: "min-h-0 flex-1 overflow-y-auto px-5 py-4",
|
|
27173
27237
|
onClick: exitEditingFromBlankSpace,
|
|
27174
27238
|
children: [
|
|
27175
|
-
/* @__PURE__ */
|
|
27239
|
+
/* @__PURE__ */ jsxs34(
|
|
27176
27240
|
"section",
|
|
27177
27241
|
{
|
|
27178
27242
|
"aria-labelledby": "agent-manager-available-heading",
|
|
@@ -27182,7 +27246,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27182
27246
|
onDragOver: (event) => dragOverDropZone(event, "available"),
|
|
27183
27247
|
onDrop: (event) => dropIntoZone(event, "available"),
|
|
27184
27248
|
children: [
|
|
27185
|
-
/* @__PURE__ */
|
|
27249
|
+
/* @__PURE__ */ jsx46(
|
|
27186
27250
|
"h3",
|
|
27187
27251
|
{
|
|
27188
27252
|
className: "mb-3 text-[12px] font-medium text-[var(--text-secondary)]",
|
|
@@ -27190,7 +27254,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27190
27254
|
children: labels.manageAgentsAvailable
|
|
27191
27255
|
}
|
|
27192
27256
|
),
|
|
27193
|
-
availableTargets.length > 0 ? /* @__PURE__ */
|
|
27257
|
+
availableTargets.length > 0 ? /* @__PURE__ */ jsx46(
|
|
27194
27258
|
"div",
|
|
27195
27259
|
{
|
|
27196
27260
|
"aria-label": labels.manageAgentsAvailable,
|
|
@@ -27201,7 +27265,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27201
27265
|
children: availableTargets.map((target) => {
|
|
27202
27266
|
const label = target.label.trim() || target.provider;
|
|
27203
27267
|
const targetRunning = running.has(target.targetId);
|
|
27204
|
-
return /* @__PURE__ */
|
|
27268
|
+
return /* @__PURE__ */ jsxs34(
|
|
27205
27269
|
"div",
|
|
27206
27270
|
{
|
|
27207
27271
|
"aria-label": labels.dragAgentToReorder(label),
|
|
@@ -27238,7 +27302,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27238
27302
|
role: "listitem",
|
|
27239
27303
|
tabIndex: 0,
|
|
27240
27304
|
children: [
|
|
27241
|
-
dragPreview?.overTargetId === target.targetId ? /* @__PURE__ */
|
|
27305
|
+
dragPreview?.overTargetId === target.targetId ? /* @__PURE__ */ jsx46(
|
|
27242
27306
|
"span",
|
|
27243
27307
|
{
|
|
27244
27308
|
"aria-hidden": "true",
|
|
@@ -27247,7 +27311,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27247
27311
|
"data-testid": "agent-gui-provider-manager-drop-indicator"
|
|
27248
27312
|
}
|
|
27249
27313
|
) : null,
|
|
27250
|
-
editing ? /* @__PURE__ */
|
|
27314
|
+
editing ? /* @__PURE__ */ jsx46(
|
|
27251
27315
|
Button5,
|
|
27252
27316
|
{
|
|
27253
27317
|
"aria-label": labels.removeAgentFromSidebar(label),
|
|
@@ -27265,10 +27329,10 @@ function AgentGUIProviderManagerDialog({
|
|
|
27265
27329
|
title: targetRunning ? labels.manageAgentsRunningBlocked(label) : finalAvailableAgent ? labels.manageAgentsKeepOneAvailable : void 0,
|
|
27266
27330
|
type: "button",
|
|
27267
27331
|
variant: "ghost",
|
|
27268
|
-
children: /* @__PURE__ */
|
|
27332
|
+
children: /* @__PURE__ */ jsx46(CircleMinus, { "aria-hidden": "true", className: "size-4" })
|
|
27269
27333
|
}
|
|
27270
27334
|
) : null,
|
|
27271
|
-
/* @__PURE__ */
|
|
27335
|
+
/* @__PURE__ */ jsx46(
|
|
27272
27336
|
AgentGUIProviderIconVisual,
|
|
27273
27337
|
{
|
|
27274
27338
|
ariaHidden: true,
|
|
@@ -27279,18 +27343,18 @@ function AgentGUIProviderManagerDialog({
|
|
|
27279
27343
|
imageClassName: "size-9 shrink-0 rounded-[9px] object-cover"
|
|
27280
27344
|
}
|
|
27281
27345
|
),
|
|
27282
|
-
/* @__PURE__ */
|
|
27346
|
+
/* @__PURE__ */ jsx46("span", { className: "mt-2 block w-full truncate text-center text-[12px] font-medium text-[var(--text-primary)]", children: label })
|
|
27283
27347
|
]
|
|
27284
27348
|
},
|
|
27285
27349
|
target.targetId
|
|
27286
27350
|
);
|
|
27287
27351
|
})
|
|
27288
27352
|
}
|
|
27289
|
-
) : /* @__PURE__ */
|
|
27353
|
+
) : /* @__PURE__ */ jsx46("p", { className: "rounded-[8px] bg-[var(--transparency-block)] px-3 py-4 text-center text-[12px] text-[var(--text-tertiary)]", children: labels.manageAgentsNoAvailable })
|
|
27290
27354
|
]
|
|
27291
27355
|
}
|
|
27292
27356
|
),
|
|
27293
|
-
/* @__PURE__ */
|
|
27357
|
+
/* @__PURE__ */ jsxs34(
|
|
27294
27358
|
"section",
|
|
27295
27359
|
{
|
|
27296
27360
|
"aria-labelledby": "agent-manager-disabled-heading",
|
|
@@ -27306,7 +27370,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27306
27370
|
)?.label ?? ""
|
|
27307
27371
|
) : labels.manageAgentsKeepOneAvailable : void 0,
|
|
27308
27372
|
children: [
|
|
27309
|
-
/* @__PURE__ */
|
|
27373
|
+
/* @__PURE__ */ jsx46(
|
|
27310
27374
|
"h3",
|
|
27311
27375
|
{
|
|
27312
27376
|
className: "mb-3 text-[12px] font-medium text-[var(--text-secondary)]",
|
|
@@ -27314,7 +27378,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27314
27378
|
children: labels.manageAgentsDisabled
|
|
27315
27379
|
}
|
|
27316
27380
|
),
|
|
27317
|
-
disabledTargets.length > 0 ? /* @__PURE__ */
|
|
27381
|
+
disabledTargets.length > 0 ? /* @__PURE__ */ jsx46(
|
|
27318
27382
|
"div",
|
|
27319
27383
|
{
|
|
27320
27384
|
"aria-label": labels.manageAgentsDisabled,
|
|
@@ -27324,7 +27388,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27324
27388
|
role: "list",
|
|
27325
27389
|
children: disabledTargets.map((target) => {
|
|
27326
27390
|
const label = target.label.trim() || target.provider;
|
|
27327
|
-
return /* @__PURE__ */
|
|
27391
|
+
return /* @__PURE__ */ jsxs34(
|
|
27328
27392
|
"div",
|
|
27329
27393
|
{
|
|
27330
27394
|
"aria-label": labels.dragAgentToReorder(label),
|
|
@@ -27360,7 +27424,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27360
27424
|
role: "listitem",
|
|
27361
27425
|
tabIndex: 0,
|
|
27362
27426
|
children: [
|
|
27363
|
-
dragPreview?.overTargetId === target.targetId ? /* @__PURE__ */
|
|
27427
|
+
dragPreview?.overTargetId === target.targetId ? /* @__PURE__ */ jsx46(
|
|
27364
27428
|
"span",
|
|
27365
27429
|
{
|
|
27366
27430
|
"aria-hidden": "true",
|
|
@@ -27369,7 +27433,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27369
27433
|
"data-testid": "agent-gui-provider-manager-drop-indicator"
|
|
27370
27434
|
}
|
|
27371
27435
|
) : null,
|
|
27372
|
-
editing ? /* @__PURE__ */
|
|
27436
|
+
editing ? /* @__PURE__ */ jsx46(
|
|
27373
27437
|
Button5,
|
|
27374
27438
|
{
|
|
27375
27439
|
"aria-label": labels.addAgentToSidebar(label),
|
|
@@ -27381,10 +27445,10 @@ function AgentGUIProviderManagerDialog({
|
|
|
27381
27445
|
size: "icon-xs",
|
|
27382
27446
|
type: "button",
|
|
27383
27447
|
variant: "ghost",
|
|
27384
|
-
children: /* @__PURE__ */
|
|
27448
|
+
children: /* @__PURE__ */ jsx46(CirclePlus, { "aria-hidden": "true", className: "size-4" })
|
|
27385
27449
|
}
|
|
27386
27450
|
) : null,
|
|
27387
|
-
/* @__PURE__ */
|
|
27451
|
+
/* @__PURE__ */ jsx46(
|
|
27388
27452
|
AgentGUIProviderIconVisual,
|
|
27389
27453
|
{
|
|
27390
27454
|
ariaHidden: true,
|
|
@@ -27395,14 +27459,14 @@ function AgentGUIProviderManagerDialog({
|
|
|
27395
27459
|
imageClassName: "size-9 shrink-0 rounded-[9px] object-cover opacity-70 grayscale-[0.25]"
|
|
27396
27460
|
}
|
|
27397
27461
|
),
|
|
27398
|
-
/* @__PURE__ */
|
|
27462
|
+
/* @__PURE__ */ jsx46("span", { className: "mt-2 block w-full truncate text-center text-[12px] font-medium text-[var(--text-secondary)]", children: label })
|
|
27399
27463
|
]
|
|
27400
27464
|
},
|
|
27401
27465
|
target.targetId
|
|
27402
27466
|
);
|
|
27403
27467
|
})
|
|
27404
27468
|
}
|
|
27405
|
-
) : /* @__PURE__ */
|
|
27469
|
+
) : /* @__PURE__ */ jsx46("p", { className: "flex min-h-[72px] items-center justify-center rounded-[8px] border border-dashed border-[var(--border-1)] px-3 py-4 text-center text-[12px] text-[var(--text-tertiary)]", children: labels.manageAgentsNoDisabled })
|
|
27406
27470
|
]
|
|
27407
27471
|
}
|
|
27408
27472
|
)
|
|
@@ -27415,7 +27479,7 @@ function AgentGUIProviderManagerDialog({
|
|
|
27415
27479
|
}
|
|
27416
27480
|
|
|
27417
27481
|
// agent-gui/agentGuiNode/view/useAgentGUIProviderRailPreferences.ts
|
|
27418
|
-
import { useCallback as useCallback43, useEffect as useEffect29, useState as
|
|
27482
|
+
import { useCallback as useCallback43, useEffect as useEffect29, useState as useState26 } from "react";
|
|
27419
27483
|
function readAgentGUIProviderRailPreferences(storageKey) {
|
|
27420
27484
|
return parseAgentGUIProviderRailPreferences(
|
|
27421
27485
|
globalThis.localStorage?.getItem(storageKey)
|
|
@@ -27423,7 +27487,7 @@ function readAgentGUIProviderRailPreferences(storageKey) {
|
|
|
27423
27487
|
}
|
|
27424
27488
|
function useAgentGUIProviderRailPreferences() {
|
|
27425
27489
|
const storageKey = agentGUIProviderRailOrderStorageKey();
|
|
27426
|
-
const [preferences, setPreferences] =
|
|
27490
|
+
const [preferences, setPreferences] = useState26(
|
|
27427
27491
|
() => readAgentGUIProviderRailPreferences(storageKey)
|
|
27428
27492
|
);
|
|
27429
27493
|
useEffect29(() => {
|
|
@@ -27465,7 +27529,7 @@ function useAgentGUIProviderRailPreferences() {
|
|
|
27465
27529
|
}
|
|
27466
27530
|
|
|
27467
27531
|
// agent-gui/agentGuiNode/view/AgentGUIProviderRail.tsx
|
|
27468
|
-
import { jsx as
|
|
27532
|
+
import { jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
27469
27533
|
var agentGUIProviderRailCatalog = [
|
|
27470
27534
|
...migratedAgentGUIProviderIdentityCatalog
|
|
27471
27535
|
].sort((left, right) => left.target.sortOrder - right.target.sortOrder);
|
|
@@ -27556,7 +27620,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27556
27620
|
persistPreferences: persistProviderRailPreferences,
|
|
27557
27621
|
preferences: providerRailPreferences
|
|
27558
27622
|
} = useAgentGUIProviderRailPreferences();
|
|
27559
|
-
const [dragState, setDragState] =
|
|
27623
|
+
const [dragState, setDragState] = useState27(null);
|
|
27560
27624
|
const dragStateRef = useRef36(null);
|
|
27561
27625
|
const setProviderRailDragState = useCallback44(
|
|
27562
27626
|
(nextDragState) => {
|
|
@@ -27864,7 +27928,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27864
27928
|
},
|
|
27865
27929
|
[dragState, previewMode, agentTargetsLoading, setProviderRailDragState]
|
|
27866
27930
|
);
|
|
27867
|
-
const providerManagerDialog = /* @__PURE__ */
|
|
27931
|
+
const providerManagerDialog = /* @__PURE__ */ jsx47(
|
|
27868
27932
|
AgentGUIProviderManagerDialog,
|
|
27869
27933
|
{
|
|
27870
27934
|
hiddenTargetIds: effectiveHiddenTargetIds,
|
|
@@ -27878,7 +27942,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27878
27942
|
}
|
|
27879
27943
|
);
|
|
27880
27944
|
if (providerRailMode === "exact" && !agentTargetsLoading && visibleProviderTiles.length === 0 && renderProviderRailEmpty) {
|
|
27881
|
-
return /* @__PURE__ */
|
|
27945
|
+
return /* @__PURE__ */ jsxs35(
|
|
27882
27946
|
"div",
|
|
27883
27947
|
{
|
|
27884
27948
|
className: AgentGUINode_styles_default.providerRail,
|
|
@@ -27893,8 +27957,8 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27893
27957
|
}
|
|
27894
27958
|
);
|
|
27895
27959
|
}
|
|
27896
|
-
return /* @__PURE__ */
|
|
27897
|
-
/* @__PURE__ */
|
|
27960
|
+
return /* @__PURE__ */ jsxs35("div", { className: AgentGUINode_styles_default.providerRail, children: [
|
|
27961
|
+
/* @__PURE__ */ jsxs35(
|
|
27898
27962
|
"div",
|
|
27899
27963
|
{
|
|
27900
27964
|
className: "flex min-h-0 w-full flex-col items-center",
|
|
@@ -27904,7 +27968,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27904
27968
|
onDragOver: handleProviderRailContainerDragOver,
|
|
27905
27969
|
onDrop: commitProviderRailDragDrop,
|
|
27906
27970
|
children: [
|
|
27907
|
-
/* @__PURE__ */
|
|
27971
|
+
/* @__PURE__ */ jsxs35(
|
|
27908
27972
|
"button",
|
|
27909
27973
|
{
|
|
27910
27974
|
type: "button",
|
|
@@ -27916,18 +27980,18 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27916
27980
|
disabled: previewMode,
|
|
27917
27981
|
onClick: selectAllProviders,
|
|
27918
27982
|
children: [
|
|
27919
|
-
/* @__PURE__ */
|
|
27983
|
+
/* @__PURE__ */ jsx47(
|
|
27920
27984
|
AgentGUIUnifiedProviderIcon,
|
|
27921
27985
|
{
|
|
27922
27986
|
presentation: providerRailAllPresentation
|
|
27923
27987
|
}
|
|
27924
27988
|
),
|
|
27925
|
-
/* @__PURE__ */
|
|
27989
|
+
/* @__PURE__ */ jsx47("span", { className: AgentGUINode_styles_default.providerRailTileLabel, children: labels.conversationFilterAll })
|
|
27926
27990
|
]
|
|
27927
27991
|
}
|
|
27928
27992
|
),
|
|
27929
|
-
/* @__PURE__ */
|
|
27930
|
-
agentTargetsLoading ? [0, 1, 2].map((index) => /* @__PURE__ */
|
|
27993
|
+
/* @__PURE__ */ jsx47("span", { "aria-hidden": "true", className: AgentGUINode_styles_default.providerRailSeparator }),
|
|
27994
|
+
agentTargetsLoading ? [0, 1, 2].map((index) => /* @__PURE__ */ jsx47(
|
|
27931
27995
|
"button",
|
|
27932
27996
|
{
|
|
27933
27997
|
type: "button",
|
|
@@ -27937,7 +28001,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27937
28001
|
"data-loading": "true",
|
|
27938
28002
|
"data-selected": "false",
|
|
27939
28003
|
disabled: true,
|
|
27940
|
-
children: /* @__PURE__ */
|
|
28004
|
+
children: /* @__PURE__ */ jsx47(
|
|
27941
28005
|
"span",
|
|
27942
28006
|
{
|
|
27943
28007
|
"aria-hidden": "true",
|
|
@@ -27960,7 +28024,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27960
28024
|
label,
|
|
27961
28025
|
target.badge?.label
|
|
27962
28026
|
);
|
|
27963
|
-
const tile = /* @__PURE__ */
|
|
28027
|
+
const tile = /* @__PURE__ */ jsx47(
|
|
27964
28028
|
"button",
|
|
27965
28029
|
{
|
|
27966
28030
|
type: "button",
|
|
@@ -27980,8 +28044,8 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27980
28044
|
onDragEnd: clearProviderRailDragState,
|
|
27981
28045
|
onDragOver: (event) => handleProviderRailDragOver(event, target),
|
|
27982
28046
|
onDragStart: (event) => handleProviderRailDragStart(event, target),
|
|
27983
|
-
children: /* @__PURE__ */
|
|
27984
|
-
/* @__PURE__ */
|
|
28047
|
+
children: /* @__PURE__ */ jsxs35("span", { className: AgentGUINode_styles_default.providerRailAvatar, children: [
|
|
28048
|
+
/* @__PURE__ */ jsx47(
|
|
27985
28049
|
AgentGUIProviderIconVisual,
|
|
27986
28050
|
{
|
|
27987
28051
|
ariaHidden: true,
|
|
@@ -27992,7 +28056,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
27992
28056
|
)
|
|
27993
28057
|
}
|
|
27994
28058
|
),
|
|
27995
|
-
target.badge?.iconUrl ? /* @__PURE__ */
|
|
28059
|
+
target.badge?.iconUrl ? /* @__PURE__ */ jsx47("span", { "aria-hidden": "true", className: AgentGUINode_styles_default.agentAvatarBadge, children: /* @__PURE__ */ jsx47(
|
|
27996
28060
|
"img",
|
|
27997
28061
|
{
|
|
27998
28062
|
alt: "",
|
|
@@ -28001,7 +28065,7 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
28001
28065
|
src: target.badge.iconUrl
|
|
28002
28066
|
}
|
|
28003
28067
|
) }) : null,
|
|
28004
|
-
providerSelected && isBetaAgentProvider(target.provider) ? /* @__PURE__ */
|
|
28068
|
+
providerSelected && isBetaAgentProvider(target.provider) ? /* @__PURE__ */ jsx47(
|
|
28005
28069
|
"img",
|
|
28006
28070
|
{
|
|
28007
28071
|
"aria-hidden": "true",
|
|
@@ -28017,9 +28081,9 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
28017
28081
|
if (previewMode) {
|
|
28018
28082
|
return tile;
|
|
28019
28083
|
}
|
|
28020
|
-
return /* @__PURE__ */
|
|
28021
|
-
/* @__PURE__ */
|
|
28022
|
-
/* @__PURE__ */
|
|
28084
|
+
return /* @__PURE__ */ jsxs35(Tooltip5, { children: [
|
|
28085
|
+
/* @__PURE__ */ jsx47(TooltipTrigger5, { asChild: true, children: tile }),
|
|
28086
|
+
/* @__PURE__ */ jsx47(TooltipContent5, { side: "right", sideOffset: -4, children: label })
|
|
28023
28087
|
] }, `${target.provider}:${target.targetId}:tooltip`);
|
|
28024
28088
|
})
|
|
28025
28089
|
]
|
|
@@ -28030,10 +28094,10 @@ var AgentGUIProviderRail = memo4(function AgentGUIProviderRail2({
|
|
|
28030
28094
|
});
|
|
28031
28095
|
|
|
28032
28096
|
// agent-gui/agentGuiNode/controller/AgentGUIConversationRailController.tsx
|
|
28033
|
-
import { memo as memo9, useState as
|
|
28097
|
+
import { memo as memo9, useState as useState33 } from "react";
|
|
28034
28098
|
|
|
28035
28099
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailPane.tsx
|
|
28036
|
-
import { Fragment as Fragment17, memo as memo8, useEffect as useEffect30, useMemo as useMemo35, useRef as useRef39, useState as
|
|
28100
|
+
import { Fragment as Fragment17, memo as memo8, useEffect as useEffect30, useMemo as useMemo35, useRef as useRef39, useState as useState32 } from "react";
|
|
28037
28101
|
import { Button as SystemButton } from "@tutti-os/ui-system";
|
|
28038
28102
|
import { ScrollArea } from "@tutti-os/ui-system/components";
|
|
28039
28103
|
import { CreateChatIcon as CreateChatIcon2 } from "@tutti-os/ui-system/icons";
|
|
@@ -28051,7 +28115,7 @@ var styles3 = {
|
|
|
28051
28115
|
var RoomIssueNode_styles_default = styles3;
|
|
28052
28116
|
|
|
28053
28117
|
// agent-gui/RoomIssueNode/TaskSearchField.tsx
|
|
28054
|
-
import { jsx as
|
|
28118
|
+
import { jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
28055
28119
|
function TaskSearchField({
|
|
28056
28120
|
ariaLabel,
|
|
28057
28121
|
className,
|
|
@@ -28065,13 +28129,13 @@ function TaskSearchField({
|
|
|
28065
28129
|
"use memo";
|
|
28066
28130
|
const { t } = useTranslation();
|
|
28067
28131
|
const searchInput = useComposedInputValue({ onCommit: onChange, value });
|
|
28068
|
-
return /* @__PURE__ */
|
|
28132
|
+
return /* @__PURE__ */ jsxs36(
|
|
28069
28133
|
"div",
|
|
28070
28134
|
{
|
|
28071
28135
|
className: `${RoomIssueNode_styles_default.searchField} ${className ?? ""}`.trim(),
|
|
28072
28136
|
"data-has-value": searchInput.value ? "true" : "false",
|
|
28073
28137
|
children: [
|
|
28074
|
-
/* @__PURE__ */
|
|
28138
|
+
/* @__PURE__ */ jsx48(
|
|
28075
28139
|
Input,
|
|
28076
28140
|
{
|
|
28077
28141
|
type: "search",
|
|
@@ -28094,7 +28158,7 @@ function TaskSearchField({
|
|
|
28094
28158
|
"data-testid": dataTestId
|
|
28095
28159
|
}
|
|
28096
28160
|
),
|
|
28097
|
-
searchInput.value ? /* @__PURE__ */
|
|
28161
|
+
searchInput.value ? /* @__PURE__ */ jsx48(
|
|
28098
28162
|
"button",
|
|
28099
28163
|
{
|
|
28100
28164
|
type: "button",
|
|
@@ -28102,7 +28166,7 @@ function TaskSearchField({
|
|
|
28102
28166
|
"aria-label": clearAriaLabel ?? t("common.clear"),
|
|
28103
28167
|
onMouseDown: (event) => event.preventDefault(),
|
|
28104
28168
|
onClick: searchInput.clearValue,
|
|
28105
|
-
children: /* @__PURE__ */
|
|
28169
|
+
children: /* @__PURE__ */ jsx48(CloseLinedIcon, { "aria-hidden": "true" })
|
|
28106
28170
|
}
|
|
28107
28171
|
) : null
|
|
28108
28172
|
]
|
|
@@ -28120,7 +28184,7 @@ function isTaskSearchImeComposing(event) {
|
|
|
28120
28184
|
}
|
|
28121
28185
|
|
|
28122
28186
|
// agent-gui/agentGuiNode/AgentConversationListSkeleton.tsx
|
|
28123
|
-
import { jsx as
|
|
28187
|
+
import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
28124
28188
|
var SKELETON_ROWS = [
|
|
28125
28189
|
{ id: "first", size: "long" },
|
|
28126
28190
|
{ id: "second", size: "medium" },
|
|
@@ -28132,23 +28196,23 @@ function AgentConversationListSkeleton({
|
|
|
28132
28196
|
label
|
|
28133
28197
|
}) {
|
|
28134
28198
|
"use memo";
|
|
28135
|
-
return /* @__PURE__ */
|
|
28199
|
+
return /* @__PURE__ */ jsx49(
|
|
28136
28200
|
"div",
|
|
28137
28201
|
{
|
|
28138
28202
|
className: "agent-gui-node__conversation-list-skeleton",
|
|
28139
28203
|
role: "status",
|
|
28140
28204
|
"aria-label": label,
|
|
28141
28205
|
"data-testid": "agent-gui-conversation-list-loading-skeleton",
|
|
28142
|
-
children: SKELETON_ROWS.map((row) => /* @__PURE__ */
|
|
28206
|
+
children: SKELETON_ROWS.map((row) => /* @__PURE__ */ jsxs37(
|
|
28143
28207
|
"div",
|
|
28144
28208
|
{
|
|
28145
28209
|
className: "agent-gui-node__conversation-list-skeleton-row",
|
|
28146
28210
|
"data-size": row.size,
|
|
28147
28211
|
"aria-hidden": "true",
|
|
28148
28212
|
children: [
|
|
28149
|
-
/* @__PURE__ */
|
|
28150
|
-
/* @__PURE__ */
|
|
28151
|
-
/* @__PURE__ */
|
|
28213
|
+
/* @__PURE__ */ jsx49("span", { className: "agent-gui-node__conversation-list-skeleton-spine" }),
|
|
28214
|
+
/* @__PURE__ */ jsx49("span", { className: "agent-gui-node__conversation-list-skeleton-rib agent-gui-node__conversation-list-skeleton-rib-primary" }),
|
|
28215
|
+
/* @__PURE__ */ jsx49("span", { className: "agent-gui-node__conversation-list-skeleton-rib agent-gui-node__conversation-list-skeleton-rib-secondary" })
|
|
28152
28216
|
]
|
|
28153
28217
|
},
|
|
28154
28218
|
row.id
|
|
@@ -28776,7 +28840,7 @@ function reduceAgentGUIConversationRailViewState(state, action) {
|
|
|
28776
28840
|
}
|
|
28777
28841
|
|
|
28778
28842
|
// agent-gui/agentGuiNode/controller/useAgentGUIProjectDrag.ts
|
|
28779
|
-
import { useCallback as useCallback45, useState as
|
|
28843
|
+
import { useCallback as useCallback45, useState as useState28 } from "react";
|
|
28780
28844
|
var PROJECT_DRAG_SCROLL_EDGE_PX = 40;
|
|
28781
28845
|
function projectDragAutoScrollDelta(clientY, bounds) {
|
|
28782
28846
|
if (clientY < bounds.top + PROJECT_DRAG_SCROLL_EDGE_PX) {
|
|
@@ -28794,9 +28858,9 @@ function projectDragAutoScrollDelta(clientY, bounds) {
|
|
|
28794
28858
|
return 0;
|
|
28795
28859
|
}
|
|
28796
28860
|
function useAgentGUIProjectDrag(input) {
|
|
28797
|
-
const [dragState, setDragState] =
|
|
28798
|
-
const [isMovePending, setIsMovePending] =
|
|
28799
|
-
const [runtime] =
|
|
28861
|
+
const [dragState, setDragState] = useState28(null);
|
|
28862
|
+
const [isMovePending, setIsMovePending] = useState28(false);
|
|
28863
|
+
const [runtime] = useState28(() => ({
|
|
28800
28864
|
active: false,
|
|
28801
28865
|
clientY: null,
|
|
28802
28866
|
dragState: null,
|
|
@@ -28986,10 +29050,10 @@ import { WorkspaceUserProjectSelect as WorkspaceUserProjectSelect2 } from "@tutt
|
|
|
28986
29050
|
import { BareIconButton as BareIconButton2 } from "@tutti-os/ui-system/components";
|
|
28987
29051
|
|
|
28988
29052
|
// app/renderer/components/icons/PinFilledIcon.tsx
|
|
28989
|
-
import { jsx as
|
|
29053
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
28990
29054
|
function PinFilledIcon(props) {
|
|
28991
29055
|
"use memo";
|
|
28992
|
-
return /* @__PURE__ */
|
|
29056
|
+
return /* @__PURE__ */ jsx50(
|
|
28993
29057
|
"svg",
|
|
28994
29058
|
{
|
|
28995
29059
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -28997,16 +29061,16 @@ function PinFilledIcon(props) {
|
|
|
28997
29061
|
fill: "currentColor",
|
|
28998
29062
|
"aria-hidden": true,
|
|
28999
29063
|
...props,
|
|
29000
|
-
children: /* @__PURE__ */
|
|
29064
|
+
children: /* @__PURE__ */ jsx50("path", { d: "M21.6066 8.05025C22.1692 8.61286 22.4849 9.37592 22.4849 10.1716C22.4849 10.9672 22.1692 11.7303 21.6066 12.2929C21.044 12.8555 20.2809 13.1713 19.4853 13.1713C18.6896 13.1713 17.9266 12.8555 17.3639 12.2929L14.7054 14.9514L14.6142 15.0564C14.531 15.1669 14.4714 15.2943 14.4395 15.43C14.3972 15.6109 14.406 15.8 14.4651 15.9762L14.4678 15.9831L15.0873 17.8717L15.1466 18.072C15.2691 18.5425 15.2761 19.037 15.1646 19.5124C15.0372 20.0557 14.7607 20.5526 14.3663 20.9474L13.8284 21.4853C13.4533 21.8604 12.9446 22.0709 12.4142 22.0709C11.8838 22.0709 11.3751 21.8604 11 21.4853L7.46445 17.9497L4.63603 20.7782C4.2455 21.1687 3.61234 21.1687 3.22181 20.7782C2.83129 20.3877 2.83129 19.7545 3.22181 19.364L6.05024 16.5355L2.51471 13C2.13963 12.6249 1.92913 12.1162 1.92913 11.5858C1.92913 11.0554 2.13963 10.5466 2.51471 10.1716L3.05263 9.63365L3.20524 9.49209C3.57235 9.17309 4.01205 8.94693 4.48756 8.83539C5.03093 8.70798 5.59924 8.73494 6.12827 8.91273L8.01688 9.53214L8.02379 9.5349C8.19995 9.59404 8.38907 9.60282 8.57 9.56045C8.7057 9.52863 8.83304 9.46898 8.94358 9.38575L9.04854 9.2946L11.7071 6.63604C11.1445 6.07343 10.8287 5.31037 10.8287 4.51472C10.8287 3.71907 11.1445 2.95601 11.7071 2.3934C12.2697 1.83079 13.0328 1.51504 13.8284 1.51504C14.6241 1.51504 15.3871 1.83079 15.9497 2.3934L21.6066 8.05025Z" })
|
|
29001
29065
|
}
|
|
29002
29066
|
);
|
|
29003
29067
|
}
|
|
29004
29068
|
|
|
29005
29069
|
// app/renderer/components/icons/PinLinedIcon.tsx
|
|
29006
|
-
import { jsx as
|
|
29070
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
29007
29071
|
function PinLinedIcon(props) {
|
|
29008
29072
|
"use memo";
|
|
29009
|
-
return /* @__PURE__ */
|
|
29073
|
+
return /* @__PURE__ */ jsx51(
|
|
29010
29074
|
"svg",
|
|
29011
29075
|
{
|
|
29012
29076
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -29014,7 +29078,7 @@ function PinLinedIcon(props) {
|
|
|
29014
29078
|
fill: "currentColor",
|
|
29015
29079
|
"aria-hidden": true,
|
|
29016
29080
|
...props,
|
|
29017
|
-
children: /* @__PURE__ */
|
|
29081
|
+
children: /* @__PURE__ */ jsx51("path", { d: "M21.6066 8.05025C22.1692 8.61286 22.4849 9.37592 22.4849 10.1716C22.4849 10.9672 22.1692 11.7303 21.6066 12.2929C21.044 12.8555 20.2809 13.1713 19.4853 13.1713C18.6896 13.1713 17.9266 12.8555 17.3639 12.2929L14.7054 14.9514L14.6142 15.0564C14.531 15.1669 14.4714 15.2943 14.4395 15.43C14.3972 15.6109 14.406 15.8 14.4651 15.9762L14.4678 15.9831L15.0873 17.8717L15.1466 18.072C15.2691 18.5425 15.2761 19.037 15.1646 19.5124C15.0372 20.0557 14.7607 20.5526 14.3663 20.9474L13.8284 21.4853C13.4533 21.8604 12.9446 22.0709 12.4142 22.0709C11.8838 22.0709 11.3751 21.8604 11 21.4853L7.46445 17.9497L4.63603 20.7782C4.2455 21.1687 3.61234 21.1687 3.22181 20.7782C2.83129 20.3877 2.83129 19.7545 3.22181 19.364L6.05024 16.5355L2.51471 13C2.13963 12.6249 1.92913 12.1162 1.92913 11.5858C1.92913 11.0554 2.13963 10.5466 2.51471 10.1716L3.05263 9.63365L3.20524 9.49209C3.57235 9.17309 4.01205 8.94693 4.48756 8.83539C5.03093 8.70798 5.59924 8.73494 6.12827 8.91273L8.01688 9.53214L8.02379 9.5349C8.19995 9.59404 8.38907 9.60282 8.57 9.56045C8.7057 9.52863 8.83304 9.46898 8.94358 9.38575L9.04854 9.2946L11.7071 6.63604C11.1445 6.07343 10.8287 5.31037 10.8287 4.51472C10.8287 3.71907 11.1445 2.95601 11.7071 2.3934C12.2697 1.83079 13.0328 1.51504 13.8284 1.51504C14.6241 1.51504 15.3871 1.83079 15.9497 2.3934L21.6066 8.05025ZM14.5355 3.80761C14.348 3.62008 14.0936 3.51483 13.8284 3.51483C13.5632 3.51483 13.3088 3.62008 13.1213 3.80761C12.9338 3.99515 12.8285 4.2495 12.8285 4.51472C12.8285 4.74685 12.9091 4.97066 13.055 5.14863L13.2539 5.36822C13.5457 5.72416 13.7069 6.17177 13.7069 6.63604C13.7069 7.16647 13.4964 7.67518 13.1213 8.05025L10.4621 10.7095C10.0673 11.1038 9.57037 11.3803 9.02713 11.5078C8.48575 11.6347 7.92002 11.6071 7.39264 11.4311V11.4325L5.49781 10.811L5.49091 10.8082C5.31475 10.7491 5.12562 10.7403 4.94469 10.7827C4.76366 10.8251 4.59774 10.9172 4.46615 11.0486L3.92892 11.5858L12.4142 20.0711L12.9514 19.5338C13.0828 19.4022 13.1748 19.2363 13.2173 19.0553C13.2597 18.8744 13.2509 18.6852 13.1917 18.5091L13.189 18.5022L12.5675 16.6073L12.5682 16.6067C12.3924 16.0795 12.3654 15.514 12.4922 14.9729C12.6197 14.4296 12.8962 13.9327 13.2905 13.5379L15.9497 10.8787C16.3248 10.5036 16.8335 10.2931 17.3639 10.2931C17.8282 10.2931 18.2758 10.4543 18.6318 10.7461L18.8514 10.945C19.0293 11.0909 19.2531 11.1715 19.4853 11.1715C19.7505 11.1715 20.0048 11.0662 20.1924 10.8787C20.3799 10.6911 20.4852 10.4368 20.4852 10.1716C20.4852 9.90636 20.3799 9.652 20.1924 9.46447L14.5355 3.80761Z" })
|
|
29018
29082
|
}
|
|
29019
29083
|
);
|
|
29020
29084
|
}
|
|
@@ -29025,7 +29089,7 @@ import { useExternalStoreSnapshot as useExternalStoreSnapshot2 } from "@tutti-os
|
|
|
29025
29089
|
// agent-gui/agentGuiNode/agentGuiNodeViewConversation.tsx
|
|
29026
29090
|
import { Spinner as Spinner5 } from "@tutti-os/ui-system";
|
|
29027
29091
|
import { AskLinedIcon } from "@tutti-os/ui-system/icons";
|
|
29028
|
-
import { jsx as
|
|
29092
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
29029
29093
|
function ConversationMeta({
|
|
29030
29094
|
item,
|
|
29031
29095
|
nowMs,
|
|
@@ -29034,24 +29098,24 @@ function ConversationMeta({
|
|
|
29034
29098
|
"use memo";
|
|
29035
29099
|
const kind = conversationMetaKind(item);
|
|
29036
29100
|
if (kind === "loading") {
|
|
29037
|
-
return /* @__PURE__ */
|
|
29101
|
+
return /* @__PURE__ */ jsx52(
|
|
29038
29102
|
"span",
|
|
29039
29103
|
{
|
|
29040
29104
|
className: AgentGUINode_styles_default.conversationMeta,
|
|
29041
29105
|
"data-kind": kind,
|
|
29042
29106
|
"data-testid": `agent-gui-conversation-meta-${item.id}`,
|
|
29043
|
-
children: /* @__PURE__ */
|
|
29107
|
+
children: /* @__PURE__ */ jsx52(LoadingGlyph, {})
|
|
29044
29108
|
}
|
|
29045
29109
|
);
|
|
29046
29110
|
}
|
|
29047
29111
|
if (kind === "waiting") {
|
|
29048
|
-
return /* @__PURE__ */
|
|
29112
|
+
return /* @__PURE__ */ jsx52(
|
|
29049
29113
|
"span",
|
|
29050
29114
|
{
|
|
29051
29115
|
className: AgentGUINode_styles_default.conversationMeta,
|
|
29052
29116
|
"data-kind": kind,
|
|
29053
29117
|
"data-testid": `agent-gui-conversation-meta-${item.id}`,
|
|
29054
|
-
children: /* @__PURE__ */
|
|
29118
|
+
children: /* @__PURE__ */ jsx52(
|
|
29055
29119
|
AskLinedIcon,
|
|
29056
29120
|
{
|
|
29057
29121
|
"aria-hidden": "true",
|
|
@@ -29062,34 +29126,34 @@ function ConversationMeta({
|
|
|
29062
29126
|
);
|
|
29063
29127
|
}
|
|
29064
29128
|
if (kind === "failed") {
|
|
29065
|
-
return /* @__PURE__ */
|
|
29129
|
+
return /* @__PURE__ */ jsx52(
|
|
29066
29130
|
"span",
|
|
29067
29131
|
{
|
|
29068
29132
|
className: AgentGUINode_styles_default.conversationMeta,
|
|
29069
29133
|
"data-kind": kind,
|
|
29070
29134
|
"data-testid": `agent-gui-conversation-meta-${item.id}`,
|
|
29071
|
-
children: /* @__PURE__ */
|
|
29135
|
+
children: /* @__PURE__ */ jsx52(AttentionGlyph, {})
|
|
29072
29136
|
}
|
|
29073
29137
|
);
|
|
29074
29138
|
}
|
|
29075
29139
|
if (kind === "unread-complete") {
|
|
29076
|
-
return /* @__PURE__ */
|
|
29140
|
+
return /* @__PURE__ */ jsx52(
|
|
29077
29141
|
"span",
|
|
29078
29142
|
{
|
|
29079
29143
|
className: AgentGUINode_styles_default.conversationMeta,
|
|
29080
29144
|
"data-kind": kind,
|
|
29081
29145
|
"data-testid": `agent-gui-conversation-meta-${item.id}`,
|
|
29082
|
-
children: /* @__PURE__ */
|
|
29146
|
+
children: /* @__PURE__ */ jsx52("span", { className: AgentGUINode_styles_default.conversationUnreadLamp, "aria-hidden": "true" })
|
|
29083
29147
|
}
|
|
29084
29148
|
);
|
|
29085
29149
|
}
|
|
29086
|
-
return /* @__PURE__ */
|
|
29150
|
+
return /* @__PURE__ */ jsx52(
|
|
29087
29151
|
"span",
|
|
29088
29152
|
{
|
|
29089
29153
|
className: AgentGUINode_styles_default.conversationMeta,
|
|
29090
29154
|
"data-kind": kind,
|
|
29091
29155
|
"data-testid": `agent-gui-conversation-meta-${item.id}`,
|
|
29092
|
-
children: /* @__PURE__ */
|
|
29156
|
+
children: /* @__PURE__ */ jsx52("span", { className: AgentGUINode_styles_default.conversationTime, children: formatConversationRelativeTime(
|
|
29093
29157
|
resolveAgentGUIConversationSortTimeUnixMs(item),
|
|
29094
29158
|
nowMs,
|
|
29095
29159
|
labels
|
|
@@ -29137,7 +29201,7 @@ function formatConversationRelativeTime(updatedAtUnixMs, nowMs, labels) {
|
|
|
29137
29201
|
}
|
|
29138
29202
|
function LoadingGlyph() {
|
|
29139
29203
|
"use memo";
|
|
29140
|
-
return /* @__PURE__ */
|
|
29204
|
+
return /* @__PURE__ */ jsx52(
|
|
29141
29205
|
Spinner5,
|
|
29142
29206
|
{
|
|
29143
29207
|
className: AgentGUINode_styles_default.conversationStatusGlyph,
|
|
@@ -29151,14 +29215,14 @@ function LoadingGlyph() {
|
|
|
29151
29215
|
}
|
|
29152
29216
|
function AttentionGlyph() {
|
|
29153
29217
|
"use memo";
|
|
29154
|
-
return /* @__PURE__ */
|
|
29218
|
+
return /* @__PURE__ */ jsx52(
|
|
29155
29219
|
"svg",
|
|
29156
29220
|
{
|
|
29157
29221
|
viewBox: "0 0 24 24",
|
|
29158
29222
|
fill: "none",
|
|
29159
29223
|
"aria-hidden": "true",
|
|
29160
29224
|
className: AgentGUINode_styles_default.conversationStatusGlyph,
|
|
29161
|
-
children: /* @__PURE__ */
|
|
29225
|
+
children: /* @__PURE__ */ jsx52(
|
|
29162
29226
|
"path",
|
|
29163
29227
|
{
|
|
29164
29228
|
d: "M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2ZM12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4ZM12.5 15C12.7761 15 13 15.2239 13 15.5V16.5C13 16.7761 12.7761 17 12.5 17H11.5C11.2239 17 11 16.7761 11 16.5V15.5C11 15.2239 11.2239 15 11.5 15H12.5ZM12.5 7C12.7761 7 13 7.22386 13 7.5V13.5C13 13.7761 12.7761 14 12.5 14H11.5C11.2239 14 11 13.7761 11 13.5V7.5C11 7.22386 11.2239 7 11.5 7H12.5Z",
|
|
@@ -29170,7 +29234,7 @@ function AttentionGlyph() {
|
|
|
29170
29234
|
}
|
|
29171
29235
|
|
|
29172
29236
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailClock.tsx
|
|
29173
|
-
import { jsx as
|
|
29237
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
29174
29238
|
var AgentGUIConversationRailClockStore = class {
|
|
29175
29239
|
currentTimeMs = Date.now();
|
|
29176
29240
|
listeners = /* @__PURE__ */ new Set();
|
|
@@ -29210,7 +29274,7 @@ function AgentGUIConversationRailRelativeTime({
|
|
|
29210
29274
|
labels
|
|
29211
29275
|
}) {
|
|
29212
29276
|
const currentTimeMs = useExternalStoreSnapshot2(agentGUIConversationRailClock);
|
|
29213
|
-
return /* @__PURE__ */
|
|
29277
|
+
return /* @__PURE__ */ jsx53(ConversationMeta, { item, nowMs: currentTimeMs, labels });
|
|
29214
29278
|
}
|
|
29215
29279
|
|
|
29216
29280
|
// agent-gui/agentGuiNode/view/AgentGUIConversationActionsMenu.tsx
|
|
@@ -29219,7 +29283,7 @@ import {
|
|
|
29219
29283
|
useCallback as useCallback46,
|
|
29220
29284
|
useMemo as useMemo33,
|
|
29221
29285
|
useRef as useRef37,
|
|
29222
|
-
useState as
|
|
29286
|
+
useState as useState29
|
|
29223
29287
|
} from "react";
|
|
29224
29288
|
import {
|
|
29225
29289
|
AtSign,
|
|
@@ -29633,7 +29697,7 @@ function renderAgentConversationCopyHtml(markdown) {
|
|
|
29633
29697
|
}
|
|
29634
29698
|
|
|
29635
29699
|
// agent-gui/agentGuiNode/view/AgentGUIConversationActionsMenu.tsx
|
|
29636
|
-
import { Fragment as Fragment15, jsx as
|
|
29700
|
+
import { Fragment as Fragment15, jsx as jsx54, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
29637
29701
|
var menuContentClassName = "w-max min-w-44 nodrag [-webkit-app-region:no-drag]";
|
|
29638
29702
|
async function writeTextAndHtmlWithWebClipboard(text, html) {
|
|
29639
29703
|
if (typeof navigator === "undefined" || typeof navigator.clipboard?.write !== "function" || typeof ClipboardItem === "undefined") {
|
|
@@ -29795,7 +29859,7 @@ function useConversationActionGroups({
|
|
|
29795
29859
|
const agentHostApi = useOptionalAgentHostApi();
|
|
29796
29860
|
const agentActivityRuntime = useOptionalAgentActivityRuntime();
|
|
29797
29861
|
const copyConversationValue = useAgentGUIConversationCopyAction(labels);
|
|
29798
|
-
const [resetKey, setResetKey] =
|
|
29862
|
+
const [resetKey, setResetKey] = useState29(0);
|
|
29799
29863
|
const pendingActionRef = useRef37(false);
|
|
29800
29864
|
const run = useCallback46(
|
|
29801
29865
|
(action) => {
|
|
@@ -29834,26 +29898,26 @@ function useConversationActionGroups({
|
|
|
29834
29898
|
return [
|
|
29835
29899
|
[
|
|
29836
29900
|
{
|
|
29837
|
-
icon: /* @__PURE__ */
|
|
29901
|
+
icon: /* @__PURE__ */ jsx54(Pencil2, { "aria-hidden": "true" }),
|
|
29838
29902
|
id: "rename",
|
|
29839
29903
|
label: labels.renameSession,
|
|
29840
29904
|
onSelect: () => run(() => onRequestRenameConversation(conversation))
|
|
29841
29905
|
},
|
|
29842
29906
|
copyItem(
|
|
29843
29907
|
"copy-markdown",
|
|
29844
|
-
/* @__PURE__ */
|
|
29908
|
+
/* @__PURE__ */ jsx54(FileText2, { "aria-hidden": "true" }),
|
|
29845
29909
|
labels.copyAsMarkdown
|
|
29846
29910
|
),
|
|
29847
29911
|
copyItem(
|
|
29848
29912
|
"copy-reference",
|
|
29849
|
-
/* @__PURE__ */
|
|
29913
|
+
/* @__PURE__ */ jsx54(AtSign, { "aria-hidden": "true" }),
|
|
29850
29914
|
labels.copyAsReference
|
|
29851
29915
|
)
|
|
29852
29916
|
],
|
|
29853
29917
|
[
|
|
29854
29918
|
...onOpenConversationWindow ? [
|
|
29855
29919
|
{
|
|
29856
|
-
icon: /* @__PURE__ */
|
|
29920
|
+
icon: /* @__PURE__ */ jsx54(ExternalLink2, { "aria-hidden": "true" }),
|
|
29857
29921
|
id: "open-window",
|
|
29858
29922
|
label: labels.openConversationWindow,
|
|
29859
29923
|
onSelect: () => run(() => onOpenConversationWindow(conversation.id))
|
|
@@ -29861,7 +29925,7 @@ function useConversationActionGroups({
|
|
|
29861
29925
|
] : [],
|
|
29862
29926
|
{
|
|
29863
29927
|
disabled: !canMarkUnread,
|
|
29864
|
-
icon: /* @__PURE__ */
|
|
29928
|
+
icon: /* @__PURE__ */ jsx54(CircleDot, { "aria-hidden": "true" }),
|
|
29865
29929
|
id: "mark-unread",
|
|
29866
29930
|
label: labels.markSessionUnread,
|
|
29867
29931
|
onSelect: () => run(() => onMarkConversationUnread(conversation.id))
|
|
@@ -29889,9 +29953,9 @@ function AgentGUIConversationActionsDropdown({
|
|
|
29889
29953
|
menu,
|
|
29890
29954
|
moreSessionActionsLabel
|
|
29891
29955
|
}) {
|
|
29892
|
-
const [open, setOpen] =
|
|
29893
|
-
return /* @__PURE__ */
|
|
29894
|
-
/* @__PURE__ */
|
|
29956
|
+
const [open, setOpen] = useState29(false);
|
|
29957
|
+
return /* @__PURE__ */ jsxs38(DropdownMenu4, { onOpenChange: setOpen, children: [
|
|
29958
|
+
/* @__PURE__ */ jsx54(DropdownMenuTrigger4, { asChild: true, children: /* @__PURE__ */ jsx54(
|
|
29895
29959
|
BareIconButton,
|
|
29896
29960
|
{
|
|
29897
29961
|
className: buttonClassName,
|
|
@@ -29901,16 +29965,16 @@ function AgentGUIConversationActionsDropdown({
|
|
|
29901
29965
|
onClick: (event) => event.stopPropagation(),
|
|
29902
29966
|
onMouseDown: (event) => event.stopPropagation(),
|
|
29903
29967
|
onPointerDown: (event) => event.stopPropagation(),
|
|
29904
|
-
children: /* @__PURE__ */
|
|
29968
|
+
children: /* @__PURE__ */ jsx54(MoreHorizontal, { "aria-hidden": "true" })
|
|
29905
29969
|
}
|
|
29906
29970
|
) }),
|
|
29907
|
-
open ? /* @__PURE__ */
|
|
29971
|
+
open ? /* @__PURE__ */ jsx54(
|
|
29908
29972
|
DropdownMenuContent4,
|
|
29909
29973
|
{
|
|
29910
29974
|
align: "end",
|
|
29911
29975
|
className: menuContentClassName,
|
|
29912
29976
|
sideOffset: 6,
|
|
29913
|
-
children: /* @__PURE__ */
|
|
29977
|
+
children: /* @__PURE__ */ jsx54(DropdownActionGroups, { groups: menu.groups })
|
|
29914
29978
|
}
|
|
29915
29979
|
) : null
|
|
29916
29980
|
] }, menu.resetKey);
|
|
@@ -29919,23 +29983,23 @@ function AgentGUIConversationActionsContextMenu({
|
|
|
29919
29983
|
children,
|
|
29920
29984
|
menu
|
|
29921
29985
|
}) {
|
|
29922
|
-
const [open, setOpen] =
|
|
29923
|
-
return /* @__PURE__ */
|
|
29924
|
-
/* @__PURE__ */
|
|
29925
|
-
open ? /* @__PURE__ */
|
|
29986
|
+
const [open, setOpen] = useState29(false);
|
|
29987
|
+
return /* @__PURE__ */ jsxs38(ContextMenu, { onOpenChange: setOpen, children: [
|
|
29988
|
+
/* @__PURE__ */ jsx54(ContextMenuTrigger, { asChild: true, children }),
|
|
29989
|
+
open ? /* @__PURE__ */ jsx54(ContextMenuContent, { className: menuContentClassName, children: /* @__PURE__ */ jsx54(ContextActionGroups, { groups: menu.groups }) }) : null
|
|
29926
29990
|
] }, menu.resetKey);
|
|
29927
29991
|
}
|
|
29928
29992
|
function DropdownActionGroups({
|
|
29929
29993
|
groups
|
|
29930
29994
|
}) {
|
|
29931
|
-
return /* @__PURE__ */
|
|
29932
|
-
groupIndex > 0 ? /* @__PURE__ */
|
|
29995
|
+
return /* @__PURE__ */ jsx54(Fragment15, { children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs38(Fragment14, { children: [
|
|
29996
|
+
groupIndex > 0 ? /* @__PURE__ */ jsx54(DropdownMenuSeparator2, {}) : null,
|
|
29933
29997
|
group.map((entry) => (
|
|
29934
29998
|
// onClick/onPointerUp mirror onSelect so the action survives
|
|
29935
29999
|
// workbench dead clicks (pointerup arrives but the click event
|
|
29936
30000
|
// is swallowed); the shared runner's pending ref dedups the
|
|
29937
30001
|
// overlapping events of one gesture.
|
|
29938
|
-
/* @__PURE__ */
|
|
30002
|
+
/* @__PURE__ */ jsxs38(
|
|
29939
30003
|
DropdownMenuItem3,
|
|
29940
30004
|
{
|
|
29941
30005
|
disabled: entry.disabled,
|
|
@@ -29952,7 +30016,7 @@ function DropdownActionGroups({
|
|
|
29952
30016
|
onSelect: entry.onSelect,
|
|
29953
30017
|
children: [
|
|
29954
30018
|
entry.icon,
|
|
29955
|
-
/* @__PURE__ */
|
|
30019
|
+
/* @__PURE__ */ jsx54("span", { children: entry.label })
|
|
29956
30020
|
]
|
|
29957
30021
|
},
|
|
29958
30022
|
entry.id
|
|
@@ -29963,11 +30027,11 @@ function DropdownActionGroups({
|
|
|
29963
30027
|
function ContextActionGroups({
|
|
29964
30028
|
groups
|
|
29965
30029
|
}) {
|
|
29966
|
-
return /* @__PURE__ */
|
|
29967
|
-
groupIndex > 0 ? /* @__PURE__ */
|
|
30030
|
+
return /* @__PURE__ */ jsx54(Fragment15, { children: groups.map((group, groupIndex) => /* @__PURE__ */ jsxs38(Fragment14, { children: [
|
|
30031
|
+
groupIndex > 0 ? /* @__PURE__ */ jsx54(ContextMenuSeparator, {}) : null,
|
|
29968
30032
|
group.map((entry) => (
|
|
29969
30033
|
// Same dead-click fallbacks as DropdownActionGroups.
|
|
29970
|
-
/* @__PURE__ */
|
|
30034
|
+
/* @__PURE__ */ jsxs38(
|
|
29971
30035
|
ContextMenuItem,
|
|
29972
30036
|
{
|
|
29973
30037
|
disabled: entry.disabled,
|
|
@@ -29984,7 +30048,7 @@ function ContextActionGroups({
|
|
|
29984
30048
|
onSelect: entry.onSelect,
|
|
29985
30049
|
children: [
|
|
29986
30050
|
entry.icon,
|
|
29987
|
-
/* @__PURE__ */
|
|
30051
|
+
/* @__PURE__ */ jsx54("span", { children: entry.label })
|
|
29988
30052
|
]
|
|
29989
30053
|
},
|
|
29990
30054
|
entry.id
|
|
@@ -29994,7 +30058,7 @@ function ContextActionGroups({
|
|
|
29994
30058
|
}
|
|
29995
30059
|
|
|
29996
30060
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailItem.tsx
|
|
29997
|
-
import { Fragment as Fragment16, jsx as
|
|
30061
|
+
import { Fragment as Fragment16, jsx as jsx55, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
29998
30062
|
function agentGUIConversationIconPresentation(provider, agentTargetId, workspaceId, agentTargets) {
|
|
29999
30063
|
const targetPresentation = resolveAgentTargetPresentation({
|
|
30000
30064
|
agentTargetId: agentTargetId ?? "",
|
|
@@ -30100,7 +30164,7 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30100
30164
|
onOpenConversationWindow,
|
|
30101
30165
|
onRequestRenameConversation
|
|
30102
30166
|
});
|
|
30103
|
-
const row = /* @__PURE__ */
|
|
30167
|
+
const row = /* @__PURE__ */ jsxs39(
|
|
30104
30168
|
"div",
|
|
30105
30169
|
{
|
|
30106
30170
|
ref: setItemElement,
|
|
@@ -30117,7 +30181,7 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30117
30181
|
},
|
|
30118
30182
|
onMouseLeave: handleMouseLeave,
|
|
30119
30183
|
children: [
|
|
30120
|
-
/* @__PURE__ */
|
|
30184
|
+
/* @__PURE__ */ jsxs39(
|
|
30121
30185
|
"button",
|
|
30122
30186
|
{
|
|
30123
30187
|
type: "button",
|
|
@@ -30128,8 +30192,8 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30128
30192
|
handleRequestRename();
|
|
30129
30193
|
},
|
|
30130
30194
|
children: [
|
|
30131
|
-
/* @__PURE__ */
|
|
30132
|
-
conversationIcon?.kind === "mask" ? /* @__PURE__ */
|
|
30195
|
+
/* @__PURE__ */ jsxs39("span", { className: AgentGUINode_styles_default.conversationTitleRow, children: [
|
|
30196
|
+
conversationIcon?.kind === "mask" ? /* @__PURE__ */ jsx55(
|
|
30133
30197
|
"span",
|
|
30134
30198
|
{
|
|
30135
30199
|
"aria-hidden": "true",
|
|
@@ -30142,7 +30206,7 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30142
30206
|
maskImage: `url("${conversationIcon.url}")`
|
|
30143
30207
|
}
|
|
30144
30208
|
}
|
|
30145
|
-
) : conversationIcon ? /* @__PURE__ */
|
|
30209
|
+
) : conversationIcon ? /* @__PURE__ */ jsx55(
|
|
30146
30210
|
"img",
|
|
30147
30211
|
{
|
|
30148
30212
|
alt: "",
|
|
@@ -30155,22 +30219,22 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30155
30219
|
src: conversationIcon.url
|
|
30156
30220
|
}
|
|
30157
30221
|
) : null,
|
|
30158
|
-
item.titleLeadingMentionKind === "task" ? /* @__PURE__ */
|
|
30222
|
+
item.titleLeadingMentionKind === "task" ? /* @__PURE__ */ jsx55(
|
|
30159
30223
|
"span",
|
|
30160
30224
|
{
|
|
30161
30225
|
"aria-hidden": "true",
|
|
30162
30226
|
className: AgentGUINode_styles_default.conversationTitleMentionIcon,
|
|
30163
30227
|
"data-agent-gui-conversation-title-mention-icon": item.titleLeadingMentionKind,
|
|
30164
|
-
children: /* @__PURE__ */
|
|
30228
|
+
children: /* @__PURE__ */ jsx55(IssueIcon, {})
|
|
30165
30229
|
}
|
|
30166
30230
|
) : null,
|
|
30167
|
-
/* @__PURE__ */
|
|
30231
|
+
/* @__PURE__ */ jsx55("span", { className: AgentGUINode_styles_default.conversationTitle, children: agentGUIConversationRailTitle(item, labels, uiLanguage) })
|
|
30168
30232
|
] }),
|
|
30169
|
-
/* @__PURE__ */
|
|
30233
|
+
/* @__PURE__ */ jsx55(AgentGUIConversationRailRelativeTime, { item, labels })
|
|
30170
30234
|
]
|
|
30171
30235
|
}
|
|
30172
30236
|
),
|
|
30173
|
-
previewMode ? null : /* @__PURE__ */
|
|
30237
|
+
previewMode ? null : /* @__PURE__ */ jsx55("div", { className: AgentGUINode_styles_default.conversationActions, children: isPendingDeleteConversation ? /* @__PURE__ */ jsx55(
|
|
30174
30238
|
"button",
|
|
30175
30239
|
{
|
|
30176
30240
|
type: "button",
|
|
@@ -30184,10 +30248,10 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30184
30248
|
onConfirmDeleteConversation();
|
|
30185
30249
|
}
|
|
30186
30250
|
},
|
|
30187
|
-
children: /* @__PURE__ */
|
|
30251
|
+
children: /* @__PURE__ */ jsx55("span", { className: AgentGUINode_styles_default.conversationDeleteConfirmText, children: labels.deleteSessionConfirm })
|
|
30188
30252
|
}
|
|
30189
|
-
) : /* @__PURE__ */
|
|
30190
|
-
onOpenConversationWindow ? /* @__PURE__ */
|
|
30253
|
+
) : /* @__PURE__ */ jsxs39(Fragment16, { children: [
|
|
30254
|
+
onOpenConversationWindow ? /* @__PURE__ */ jsx55(
|
|
30191
30255
|
BareIconButton2,
|
|
30192
30256
|
{
|
|
30193
30257
|
className: AgentGUINode_styles_default.conversationOpenWindowButton,
|
|
@@ -30204,10 +30268,10 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30204
30268
|
event.stopPropagation();
|
|
30205
30269
|
handleOpenConversationWindow();
|
|
30206
30270
|
},
|
|
30207
|
-
children: /* @__PURE__ */
|
|
30271
|
+
children: /* @__PURE__ */ jsx55(ExternalLink3, { "aria-hidden": "true" })
|
|
30208
30272
|
}
|
|
30209
30273
|
) : null,
|
|
30210
|
-
/* @__PURE__ */
|
|
30274
|
+
/* @__PURE__ */ jsx55(
|
|
30211
30275
|
BareIconButton2,
|
|
30212
30276
|
{
|
|
30213
30277
|
className: AgentGUINode_styles_default.conversationPinButton,
|
|
@@ -30224,10 +30288,10 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30224
30288
|
event.stopPropagation();
|
|
30225
30289
|
handleTogglePinned();
|
|
30226
30290
|
},
|
|
30227
|
-
children: pinned ? /* @__PURE__ */
|
|
30291
|
+
children: pinned ? /* @__PURE__ */ jsx55(PinFilledIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ jsx55(PinLinedIcon, { "aria-hidden": "true" })
|
|
30228
30292
|
}
|
|
30229
30293
|
),
|
|
30230
|
-
/* @__PURE__ */
|
|
30294
|
+
/* @__PURE__ */ jsx55(
|
|
30231
30295
|
BareIconButton2,
|
|
30232
30296
|
{
|
|
30233
30297
|
className: AgentGUINode_styles_default.conversationDeleteButton,
|
|
@@ -30244,10 +30308,10 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30244
30308
|
event.stopPropagation();
|
|
30245
30309
|
handleRequestDelete();
|
|
30246
30310
|
},
|
|
30247
|
-
children: /* @__PURE__ */
|
|
30311
|
+
children: /* @__PURE__ */ jsx55(CanvasNodeTrashLinedIcon, { "aria-hidden": "true" })
|
|
30248
30312
|
}
|
|
30249
30313
|
),
|
|
30250
|
-
/* @__PURE__ */
|
|
30314
|
+
/* @__PURE__ */ jsx55(
|
|
30251
30315
|
AgentGUIConversationActionsDropdown,
|
|
30252
30316
|
{
|
|
30253
30317
|
buttonClassName: AgentGUINode_styles_default.conversationMoreButton,
|
|
@@ -30262,7 +30326,7 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30262
30326
|
if (previewMode) {
|
|
30263
30327
|
return row;
|
|
30264
30328
|
}
|
|
30265
|
-
return /* @__PURE__ */
|
|
30329
|
+
return /* @__PURE__ */ jsx55(AgentGUIConversationActionsContextMenu, { menu, children: row });
|
|
30266
30330
|
}
|
|
30267
30331
|
);
|
|
30268
30332
|
function AgentGUIProjectRailHeader({
|
|
@@ -30284,10 +30348,10 @@ function AgentGUIProjectRailHeader({
|
|
|
30284
30348
|
selectProjectDirectory
|
|
30285
30349
|
]
|
|
30286
30350
|
);
|
|
30287
|
-
return /* @__PURE__ */
|
|
30288
|
-
/* @__PURE__ */
|
|
30289
|
-
/* @__PURE__ */
|
|
30290
|
-
/* @__PURE__ */
|
|
30351
|
+
return /* @__PURE__ */ jsxs39("div", { className: AgentGUINode_styles_default.projectRailHeader, children: [
|
|
30352
|
+
/* @__PURE__ */ jsx55("div", { className: AgentGUINode_styles_default.projectRailTitle, children: /* @__PURE__ */ jsx55("span", { children: workspaceUserProjectI18n.tFirst(["projectSelect.projectLabel"]) }) }),
|
|
30353
|
+
/* @__PURE__ */ jsxs39("div", { className: AgentGUINode_styles_default.projectRailAddProject, children: [
|
|
30354
|
+
/* @__PURE__ */ jsx55(
|
|
30291
30355
|
WorkspaceUserProjectSelect2,
|
|
30292
30356
|
{
|
|
30293
30357
|
api: userProjectApi,
|
|
@@ -30318,7 +30382,7 @@ function AgentGUIProjectRailHeader({
|
|
|
30318
30382
|
"projectSelect.addProject"
|
|
30319
30383
|
])
|
|
30320
30384
|
},
|
|
30321
|
-
renderAddProjectIcon: () => /* @__PURE__ */
|
|
30385
|
+
renderAddProjectIcon: () => /* @__PURE__ */ jsx55(
|
|
30322
30386
|
NewWorkspaceLinedIcon2,
|
|
30323
30387
|
{
|
|
30324
30388
|
"aria-hidden": true,
|
|
@@ -30336,7 +30400,7 @@ function AgentGUIProjectRailHeader({
|
|
|
30336
30400
|
}
|
|
30337
30401
|
}
|
|
30338
30402
|
),
|
|
30339
|
-
/* @__PURE__ */
|
|
30403
|
+
/* @__PURE__ */ jsx55(
|
|
30340
30404
|
NewWorkspaceLinedIcon2,
|
|
30341
30405
|
{
|
|
30342
30406
|
"aria-hidden": true,
|
|
@@ -30348,7 +30412,7 @@ function AgentGUIProjectRailHeader({
|
|
|
30348
30412
|
}
|
|
30349
30413
|
|
|
30350
30414
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailSectionHeader.tsx
|
|
30351
|
-
import { forwardRef as forwardRef5, memo as memo6, useCallback as useCallback48, useState as
|
|
30415
|
+
import { forwardRef as forwardRef5, memo as memo6, useCallback as useCallback48, useState as useState30 } from "react";
|
|
30352
30416
|
import { ChevronRight as ChevronRight2 } from "lucide-react";
|
|
30353
30417
|
import {
|
|
30354
30418
|
DropdownMenu as DropdownMenu5,
|
|
@@ -30371,7 +30435,7 @@ import {
|
|
|
30371
30435
|
|
|
30372
30436
|
// agent-gui/agentGuiNode/view/agentGUIConversationRailSectionPresentationContext.tsx
|
|
30373
30437
|
import { createContext as createContext2, useContext as useContext2 } from "react";
|
|
30374
|
-
import { jsx as
|
|
30438
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
30375
30439
|
var AgentGUIConversationRailSectionBatchDeletionDisabledContext = createContext2(null);
|
|
30376
30440
|
var AgentGUIConversationRailSectionProjectActionLockedContext = createContext2(null);
|
|
30377
30441
|
var AgentGUIConversationRailSectionProjectDragDisabledContext = createContext2(null);
|
|
@@ -30381,15 +30445,15 @@ function AgentGUIConversationRailSectionPresentationProvider({
|
|
|
30381
30445
|
projectActionLocked,
|
|
30382
30446
|
projectDragDisabled
|
|
30383
30447
|
}) {
|
|
30384
|
-
return /* @__PURE__ */
|
|
30448
|
+
return /* @__PURE__ */ jsx56(
|
|
30385
30449
|
AgentGUIConversationRailSectionBatchDeletionDisabledContext.Provider,
|
|
30386
30450
|
{
|
|
30387
30451
|
value: batchDeletionDisabled,
|
|
30388
|
-
children: /* @__PURE__ */
|
|
30452
|
+
children: /* @__PURE__ */ jsx56(
|
|
30389
30453
|
AgentGUIConversationRailSectionProjectActionLockedContext.Provider,
|
|
30390
30454
|
{
|
|
30391
30455
|
value: projectActionLocked,
|
|
30392
|
-
children: /* @__PURE__ */
|
|
30456
|
+
children: /* @__PURE__ */ jsx56(
|
|
30393
30457
|
AgentGUIConversationRailSectionProjectDragDisabledContext.Provider,
|
|
30394
30458
|
{
|
|
30395
30459
|
value: projectDragDisabled,
|
|
@@ -30427,7 +30491,7 @@ function readSectionPresentationValue(value, name) {
|
|
|
30427
30491
|
}
|
|
30428
30492
|
|
|
30429
30493
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailSectionHeader.tsx
|
|
30430
|
-
import { jsx as
|
|
30494
|
+
import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
30431
30495
|
function HeaderFrame({
|
|
30432
30496
|
children,
|
|
30433
30497
|
isProjectSection,
|
|
@@ -30435,7 +30499,7 @@ function HeaderFrame({
|
|
|
30435
30499
|
onProjectDragStart
|
|
30436
30500
|
}) {
|
|
30437
30501
|
const projectDragDisabled = useAgentGUIConversationRailSectionProjectDragDisabled();
|
|
30438
|
-
return /* @__PURE__ */
|
|
30502
|
+
return /* @__PURE__ */ jsx57(
|
|
30439
30503
|
"div",
|
|
30440
30504
|
{
|
|
30441
30505
|
className: AgentGUINode_styles_default.conversationSectionHeader,
|
|
@@ -30456,9 +30520,9 @@ var HeaderIdentity = memo6(function HeaderIdentity2({
|
|
|
30456
30520
|
}) {
|
|
30457
30521
|
"use memo";
|
|
30458
30522
|
if (!isProjectSection) {
|
|
30459
|
-
return /* @__PURE__ */
|
|
30523
|
+
return /* @__PURE__ */ jsx57("div", { className: AgentGUINode_styles_default.conversationSectionToggle, children: /* @__PURE__ */ jsx57("span", { className: AgentGUINode_styles_default.conversationSectionLabel, children: /* @__PURE__ */ jsx57("span", { children: sectionLabel }) }) });
|
|
30460
30524
|
}
|
|
30461
|
-
return /* @__PURE__ */
|
|
30525
|
+
return /* @__PURE__ */ jsxs40(
|
|
30462
30526
|
"button",
|
|
30463
30527
|
{
|
|
30464
30528
|
type: "button",
|
|
@@ -30467,22 +30531,22 @@ var HeaderIdentity = memo6(function HeaderIdentity2({
|
|
|
30467
30531
|
"aria-label": projectPinned ? labels.pinnedProjectAccessibleName(sectionLabel) : sectionLabel,
|
|
30468
30532
|
onClick: onToggleCollapsed,
|
|
30469
30533
|
children: [
|
|
30470
|
-
/* @__PURE__ */
|
|
30534
|
+
/* @__PURE__ */ jsx57(
|
|
30471
30535
|
ChevronRight2,
|
|
30472
30536
|
{
|
|
30473
30537
|
"aria-hidden": "true",
|
|
30474
30538
|
className: AgentGUINode_styles_default.conversationSectionChevron
|
|
30475
30539
|
}
|
|
30476
30540
|
),
|
|
30477
|
-
/* @__PURE__ */
|
|
30478
|
-
isSectionCollapsed ? /* @__PURE__ */
|
|
30541
|
+
/* @__PURE__ */ jsxs40("span", { className: AgentGUINode_styles_default.conversationSectionLabel, children: [
|
|
30542
|
+
isSectionCollapsed ? /* @__PURE__ */ jsx57(
|
|
30479
30543
|
FolderIcon2,
|
|
30480
30544
|
{
|
|
30481
30545
|
"aria-hidden": "true",
|
|
30482
30546
|
className: AgentGUINode_styles_default.conversationSectionLabelIcon,
|
|
30483
30547
|
"data-project-drag-icon": "true"
|
|
30484
30548
|
}
|
|
30485
|
-
) : /* @__PURE__ */
|
|
30549
|
+
) : /* @__PURE__ */ jsx57(
|
|
30486
30550
|
FolderOpenLinedIcon,
|
|
30487
30551
|
{
|
|
30488
30552
|
"aria-hidden": "true",
|
|
@@ -30490,7 +30554,7 @@ var HeaderIdentity = memo6(function HeaderIdentity2({
|
|
|
30490
30554
|
"data-project-drag-icon": "true"
|
|
30491
30555
|
}
|
|
30492
30556
|
),
|
|
30493
|
-
/* @__PURE__ */
|
|
30557
|
+
/* @__PURE__ */ jsx57("span", { children: sectionLabel })
|
|
30494
30558
|
] })
|
|
30495
30559
|
]
|
|
30496
30560
|
}
|
|
@@ -30503,7 +30567,7 @@ var CreateAction = memo6(function CreateAction2({
|
|
|
30503
30567
|
previewMode
|
|
30504
30568
|
}) {
|
|
30505
30569
|
"use memo";
|
|
30506
|
-
const button = /* @__PURE__ */
|
|
30570
|
+
const button = /* @__PURE__ */ jsx57(
|
|
30507
30571
|
BareIconButton3,
|
|
30508
30572
|
{
|
|
30509
30573
|
className: AgentGUINode_styles_default.conversationSectionMoreButton,
|
|
@@ -30511,15 +30575,15 @@ var CreateAction = memo6(function CreateAction2({
|
|
|
30511
30575
|
size: "sm",
|
|
30512
30576
|
disabled: createConversationDisabled,
|
|
30513
30577
|
onClick: onCreateConversation,
|
|
30514
|
-
children: /* @__PURE__ */
|
|
30578
|
+
children: /* @__PURE__ */ jsx57(CreateChatIcon, { "aria-hidden": "true" })
|
|
30515
30579
|
}
|
|
30516
30580
|
);
|
|
30517
30581
|
if (previewMode) {
|
|
30518
|
-
return /* @__PURE__ */
|
|
30582
|
+
return /* @__PURE__ */ jsx57("span", { className: AgentGUINode_styles_default.conversationSectionActionTooltipWrap, children: button });
|
|
30519
30583
|
}
|
|
30520
|
-
return /* @__PURE__ */
|
|
30521
|
-
/* @__PURE__ */
|
|
30522
|
-
/* @__PURE__ */
|
|
30584
|
+
return /* @__PURE__ */ jsxs40(Tooltip6, { children: [
|
|
30585
|
+
/* @__PURE__ */ jsx57(TooltipTrigger6, { asChild: true, children: /* @__PURE__ */ jsx57("span", { className: AgentGUINode_styles_default.conversationSectionActionTooltipWrap, children: button }) }),
|
|
30586
|
+
/* @__PURE__ */ jsx57(
|
|
30523
30587
|
TooltipContent6,
|
|
30524
30588
|
{
|
|
30525
30589
|
side: "top",
|
|
@@ -30533,7 +30597,7 @@ var CreateAction = memo6(function CreateAction2({
|
|
|
30533
30597
|
var ProjectMenuButton = forwardRef5(
|
|
30534
30598
|
function ProjectMenuButton2({ accessibleName, disabled, ...props }, ref) {
|
|
30535
30599
|
const projectActionLocked = useAgentGUIConversationRailSectionProjectActionLocked();
|
|
30536
|
-
return /* @__PURE__ */
|
|
30600
|
+
return /* @__PURE__ */ jsx57(
|
|
30537
30601
|
BareIconButton3,
|
|
30538
30602
|
{
|
|
30539
30603
|
...props,
|
|
@@ -30542,7 +30606,7 @@ var ProjectMenuButton = forwardRef5(
|
|
|
30542
30606
|
"aria-label": accessibleName,
|
|
30543
30607
|
size: "sm",
|
|
30544
30608
|
disabled: projectActionLocked || disabled,
|
|
30545
|
-
children: /* @__PURE__ */
|
|
30609
|
+
children: /* @__PURE__ */ jsx57(MoreHorizontalIcon, { "aria-hidden": "true" })
|
|
30546
30610
|
}
|
|
30547
30611
|
);
|
|
30548
30612
|
}
|
|
@@ -30554,11 +30618,11 @@ function ProjectMenuTrigger({
|
|
|
30554
30618
|
}) {
|
|
30555
30619
|
const accessibleName = labels.projectSectionMoreActions;
|
|
30556
30620
|
if (previewMode) {
|
|
30557
|
-
return /* @__PURE__ */
|
|
30621
|
+
return /* @__PURE__ */ jsx57(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsx57("span", { className: AgentGUINode_styles_default.conversationSectionActionTooltipWrap, children: /* @__PURE__ */ jsx57(ProjectMenuButton, { accessibleName }) }) });
|
|
30558
30622
|
}
|
|
30559
|
-
return /* @__PURE__ */
|
|
30560
|
-
/* @__PURE__ */
|
|
30561
|
-
/* @__PURE__ */
|
|
30623
|
+
return /* @__PURE__ */ jsxs40(Tooltip6, { children: [
|
|
30624
|
+
/* @__PURE__ */ jsx57(TooltipTrigger6, { asChild: true, children: /* @__PURE__ */ jsx57("span", { className: AgentGUINode_styles_default.conversationSectionActionTooltipWrap, children: /* @__PURE__ */ jsx57(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsx57(ProjectMenuButton, { accessibleName }) }) }) }),
|
|
30625
|
+
/* @__PURE__ */ jsx57(
|
|
30562
30626
|
TooltipContent6,
|
|
30563
30627
|
{
|
|
30564
30628
|
side: "right",
|
|
@@ -30580,47 +30644,47 @@ function ProjectMenuContent({
|
|
|
30580
30644
|
}) {
|
|
30581
30645
|
const batchDeletionDisabled = useAgentGUIConversationRailSectionBatchDeletionDisabled();
|
|
30582
30646
|
const projectActionLocked = useAgentGUIConversationRailSectionProjectActionLocked();
|
|
30583
|
-
return /* @__PURE__ */
|
|
30647
|
+
return /* @__PURE__ */ jsxs40(
|
|
30584
30648
|
DropdownMenuContent5,
|
|
30585
30649
|
{
|
|
30586
30650
|
align: "end",
|
|
30587
30651
|
className: `${AgentGUINode_styles_default.composerMenuContent} nodrag [-webkit-app-region:no-drag]`,
|
|
30588
30652
|
sideOffset: 6,
|
|
30589
30653
|
children: [
|
|
30590
|
-
/* @__PURE__ */
|
|
30654
|
+
/* @__PURE__ */ jsx57(
|
|
30591
30655
|
DropdownMenuItem4,
|
|
30592
30656
|
{
|
|
30593
30657
|
className: `${AgentGUINode_styles_default.composerMenuItem} nodrag [-webkit-app-region:no-drag]`,
|
|
30594
30658
|
disabled: !onOpenProjectFiles,
|
|
30595
30659
|
onSelect: onOpenProjectFiles ?? void 0,
|
|
30596
|
-
children: /* @__PURE__ */
|
|
30660
|
+
children: /* @__PURE__ */ jsx57("span", { children: labels.projectSectionViewFiles })
|
|
30597
30661
|
}
|
|
30598
30662
|
),
|
|
30599
|
-
/* @__PURE__ */
|
|
30663
|
+
/* @__PURE__ */ jsx57(
|
|
30600
30664
|
DropdownMenuItem4,
|
|
30601
30665
|
{
|
|
30602
30666
|
className: `${AgentGUINode_styles_default.composerMenuItem} nodrag [-webkit-app-region:no-drag]`,
|
|
30603
30667
|
disabled: !hasProjectId || projectActionLocked,
|
|
30604
30668
|
onSelect: onToggleProjectPinned,
|
|
30605
|
-
children: /* @__PURE__ */
|
|
30669
|
+
children: /* @__PURE__ */ jsx57("span", { children: projectPinned ? labels.unpinProject : labels.pinProject })
|
|
30606
30670
|
}
|
|
30607
30671
|
),
|
|
30608
|
-
/* @__PURE__ */
|
|
30672
|
+
/* @__PURE__ */ jsx57(
|
|
30609
30673
|
DropdownMenuItem4,
|
|
30610
30674
|
{
|
|
30611
30675
|
className: `${AgentGUINode_styles_default.composerMenuItem} nodrag [-webkit-app-region:no-drag]`,
|
|
30612
30676
|
disabled: batchDeletionDisabled,
|
|
30613
30677
|
onSelect: onRequestBatchDeletion,
|
|
30614
|
-
children: /* @__PURE__ */
|
|
30678
|
+
children: /* @__PURE__ */ jsx57("span", { children: labels.batchDeleteProjectSessions })
|
|
30615
30679
|
}
|
|
30616
30680
|
),
|
|
30617
|
-
/* @__PURE__ */
|
|
30681
|
+
/* @__PURE__ */ jsx57(
|
|
30618
30682
|
DropdownMenuItem4,
|
|
30619
30683
|
{
|
|
30620
30684
|
className: `${AgentGUINode_styles_default.composerMenuItem} nodrag [-webkit-app-region:no-drag]`,
|
|
30621
30685
|
disabled: projectActionLocked,
|
|
30622
30686
|
onSelect: onRemoveProject,
|
|
30623
|
-
children: /* @__PURE__ */
|
|
30687
|
+
children: /* @__PURE__ */ jsx57("span", { children: labels.removeProject })
|
|
30624
30688
|
}
|
|
30625
30689
|
)
|
|
30626
30690
|
]
|
|
@@ -30640,9 +30704,9 @@ var ProjectMenu = memo6(function ProjectMenu2({
|
|
|
30640
30704
|
projectPinned
|
|
30641
30705
|
}) {
|
|
30642
30706
|
"use memo";
|
|
30643
|
-
return /* @__PURE__ */
|
|
30644
|
-
/* @__PURE__ */
|
|
30645
|
-
open ? /* @__PURE__ */
|
|
30707
|
+
return /* @__PURE__ */ jsxs40(DropdownMenu5, { onOpenChange, children: [
|
|
30708
|
+
/* @__PURE__ */ jsx57(ProjectMenuTrigger, { labels, previewMode }),
|
|
30709
|
+
open ? /* @__PURE__ */ jsx57(
|
|
30646
30710
|
ProjectMenuContent,
|
|
30647
30711
|
{
|
|
30648
30712
|
hasProjectId,
|
|
@@ -30662,27 +30726,27 @@ function ConversationMenuTrigger({
|
|
|
30662
30726
|
}) {
|
|
30663
30727
|
const accessibleName = labels.conversationsSectionMoreActions;
|
|
30664
30728
|
if (previewMode) {
|
|
30665
|
-
return /* @__PURE__ */
|
|
30729
|
+
return /* @__PURE__ */ jsx57(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsx57("span", { className: AgentGUINode_styles_default.conversationSectionActionTooltipWrap, children: /* @__PURE__ */ jsx57(
|
|
30666
30730
|
BareIconButton3,
|
|
30667
30731
|
{
|
|
30668
30732
|
className: AgentGUINode_styles_default.conversationSectionMoreButton,
|
|
30669
30733
|
"aria-label": accessibleName,
|
|
30670
30734
|
size: "sm",
|
|
30671
|
-
children: /* @__PURE__ */
|
|
30735
|
+
children: /* @__PURE__ */ jsx57(MoreHorizontalIcon, { "aria-hidden": "true" })
|
|
30672
30736
|
}
|
|
30673
30737
|
) }) });
|
|
30674
30738
|
}
|
|
30675
|
-
return /* @__PURE__ */
|
|
30676
|
-
/* @__PURE__ */
|
|
30739
|
+
return /* @__PURE__ */ jsxs40(Tooltip6, { children: [
|
|
30740
|
+
/* @__PURE__ */ jsx57(TooltipTrigger6, { asChild: true, children: /* @__PURE__ */ jsx57("span", { className: AgentGUINode_styles_default.conversationSectionActionTooltipWrap, children: /* @__PURE__ */ jsx57(DropdownMenuTrigger5, { asChild: true, children: /* @__PURE__ */ jsx57(
|
|
30677
30741
|
BareIconButton3,
|
|
30678
30742
|
{
|
|
30679
30743
|
className: AgentGUINode_styles_default.conversationSectionMoreButton,
|
|
30680
30744
|
"aria-label": accessibleName,
|
|
30681
30745
|
size: "sm",
|
|
30682
|
-
children: /* @__PURE__ */
|
|
30746
|
+
children: /* @__PURE__ */ jsx57(MoreHorizontalIcon, { "aria-hidden": "true" })
|
|
30683
30747
|
}
|
|
30684
30748
|
) }) }) }),
|
|
30685
|
-
/* @__PURE__ */
|
|
30749
|
+
/* @__PURE__ */ jsx57(
|
|
30686
30750
|
TooltipContent6,
|
|
30687
30751
|
{
|
|
30688
30752
|
side: "right",
|
|
@@ -30698,19 +30762,19 @@ function ConversationMenuContent({
|
|
|
30698
30762
|
onRequestBatchDeletion
|
|
30699
30763
|
}) {
|
|
30700
30764
|
const batchDeletionDisabled = useAgentGUIConversationRailSectionBatchDeletionDisabled();
|
|
30701
|
-
return /* @__PURE__ */
|
|
30765
|
+
return /* @__PURE__ */ jsx57(
|
|
30702
30766
|
DropdownMenuContent5,
|
|
30703
30767
|
{
|
|
30704
30768
|
align: "end",
|
|
30705
30769
|
className: `${AgentGUINode_styles_default.composerMenuContent} nodrag [-webkit-app-region:no-drag]`,
|
|
30706
30770
|
sideOffset: 6,
|
|
30707
|
-
children: /* @__PURE__ */
|
|
30771
|
+
children: /* @__PURE__ */ jsx57(
|
|
30708
30772
|
DropdownMenuItem4,
|
|
30709
30773
|
{
|
|
30710
30774
|
className: `${AgentGUINode_styles_default.composerMenuItem} nodrag [-webkit-app-region:no-drag]`,
|
|
30711
30775
|
disabled: batchDeletionDisabled,
|
|
30712
30776
|
onSelect: onRequestBatchDeletion,
|
|
30713
|
-
children: /* @__PURE__ */
|
|
30777
|
+
children: /* @__PURE__ */ jsx57("span", { children: labels.batchDeleteConversations })
|
|
30714
30778
|
}
|
|
30715
30779
|
)
|
|
30716
30780
|
}
|
|
@@ -30723,9 +30787,9 @@ function ConversationMenu({
|
|
|
30723
30787
|
open,
|
|
30724
30788
|
previewMode
|
|
30725
30789
|
}) {
|
|
30726
|
-
return /* @__PURE__ */
|
|
30727
|
-
/* @__PURE__ */
|
|
30728
|
-
open ? /* @__PURE__ */
|
|
30790
|
+
return /* @__PURE__ */ jsxs40(DropdownMenu5, { onOpenChange, children: [
|
|
30791
|
+
/* @__PURE__ */ jsx57(ConversationMenuTrigger, { labels, previewMode }),
|
|
30792
|
+
open ? /* @__PURE__ */ jsx57(
|
|
30729
30793
|
ConversationMenuContent,
|
|
30730
30794
|
{
|
|
30731
30795
|
labels,
|
|
@@ -30758,8 +30822,8 @@ var AgentGUIConversationRailSectionHeader = memo6(
|
|
|
30758
30822
|
sectionLabel
|
|
30759
30823
|
}) {
|
|
30760
30824
|
"use memo";
|
|
30761
|
-
const [projectMenuOpen, setProjectMenuOpen] =
|
|
30762
|
-
const [conversationMenuOpen, setConversationMenuOpen] =
|
|
30825
|
+
const [projectMenuOpen, setProjectMenuOpen] = useState30(false);
|
|
30826
|
+
const [conversationMenuOpen, setConversationMenuOpen] = useState30(false);
|
|
30763
30827
|
const handleProjectMenuOpenChange = useCallback48(
|
|
30764
30828
|
(open) => {
|
|
30765
30829
|
setProjectMenuOpen(open);
|
|
@@ -30768,14 +30832,14 @@ var AgentGUIConversationRailSectionHeader = memo6(
|
|
|
30768
30832
|
[onProjectMenuOpenChange]
|
|
30769
30833
|
);
|
|
30770
30834
|
const isProjectSection = kind === "project";
|
|
30771
|
-
return /* @__PURE__ */
|
|
30835
|
+
return /* @__PURE__ */ jsxs40(
|
|
30772
30836
|
HeaderFrame,
|
|
30773
30837
|
{
|
|
30774
30838
|
isProjectSection,
|
|
30775
30839
|
onProjectDragEnd,
|
|
30776
30840
|
onProjectDragStart,
|
|
30777
30841
|
children: [
|
|
30778
|
-
/* @__PURE__ */
|
|
30842
|
+
/* @__PURE__ */ jsx57(
|
|
30779
30843
|
HeaderIdentity,
|
|
30780
30844
|
{
|
|
30781
30845
|
isProjectSection,
|
|
@@ -30786,13 +30850,13 @@ var AgentGUIConversationRailSectionHeader = memo6(
|
|
|
30786
30850
|
sectionLabel
|
|
30787
30851
|
}
|
|
30788
30852
|
),
|
|
30789
|
-
canCreateConversation ? /* @__PURE__ */
|
|
30853
|
+
canCreateConversation ? /* @__PURE__ */ jsxs40(
|
|
30790
30854
|
"div",
|
|
30791
30855
|
{
|
|
30792
30856
|
className: AgentGUINode_styles_default.conversationSectionActions,
|
|
30793
30857
|
"data-project-drag-block": "true",
|
|
30794
30858
|
children: [
|
|
30795
|
-
/* @__PURE__ */
|
|
30859
|
+
/* @__PURE__ */ jsx57(
|
|
30796
30860
|
CreateAction,
|
|
30797
30861
|
{
|
|
30798
30862
|
createConversationDisabled,
|
|
@@ -30801,7 +30865,7 @@ var AgentGUIConversationRailSectionHeader = memo6(
|
|
|
30801
30865
|
previewMode
|
|
30802
30866
|
}
|
|
30803
30867
|
),
|
|
30804
|
-
hasProjectPath ? /* @__PURE__ */
|
|
30868
|
+
hasProjectPath ? /* @__PURE__ */ jsx57(
|
|
30805
30869
|
ProjectMenu,
|
|
30806
30870
|
{
|
|
30807
30871
|
hasProjectId,
|
|
@@ -30816,7 +30880,7 @@ var AgentGUIConversationRailSectionHeader = memo6(
|
|
|
30816
30880
|
projectPinned
|
|
30817
30881
|
}
|
|
30818
30882
|
) : null,
|
|
30819
|
-
!hasProjectPath && kind === "conversations" ? /* @__PURE__ */
|
|
30883
|
+
!hasProjectPath && kind === "conversations" ? /* @__PURE__ */ jsx57(
|
|
30820
30884
|
ConversationMenu,
|
|
30821
30885
|
{
|
|
30822
30886
|
labels,
|
|
@@ -30836,7 +30900,7 @@ var AgentGUIConversationRailSectionHeader = memo6(
|
|
|
30836
30900
|
);
|
|
30837
30901
|
|
|
30838
30902
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailSection.tsx
|
|
30839
|
-
import { jsx as
|
|
30903
|
+
import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
30840
30904
|
var AgentGUIConversationRailSection = memo7(
|
|
30841
30905
|
function AgentGUIConversationRailSection2({
|
|
30842
30906
|
section,
|
|
@@ -31014,7 +31078,7 @@ var AgentGUIConversationRailSection = memo7(
|
|
|
31014
31078
|
path: projectPath
|
|
31015
31079
|
});
|
|
31016
31080
|
});
|
|
31017
|
-
return /* @__PURE__ */
|
|
31081
|
+
return /* @__PURE__ */ jsxs41(
|
|
31018
31082
|
"section",
|
|
31019
31083
|
{
|
|
31020
31084
|
className: AgentGUINode_styles_default.conversationSection,
|
|
@@ -31024,7 +31088,7 @@ var AgentGUIConversationRailSection = memo7(
|
|
|
31024
31088
|
"data-project-drop-indicator": projectDropIndicator ?? void 0,
|
|
31025
31089
|
onDragOver: section.kind === "project" ? handleProjectDragOver : void 0,
|
|
31026
31090
|
children: [
|
|
31027
|
-
/* @__PURE__ */
|
|
31091
|
+
/* @__PURE__ */ jsx58(
|
|
31028
31092
|
AgentGUIConversationRailSectionHeader,
|
|
31029
31093
|
{
|
|
31030
31094
|
canCreateConversation: canCreateConversationFromSection,
|
|
@@ -31049,14 +31113,14 @@ var AgentGUIConversationRailSection = memo7(
|
|
|
31049
31113
|
sectionLabel: section.label
|
|
31050
31114
|
}
|
|
31051
31115
|
),
|
|
31052
|
-
/* @__PURE__ */
|
|
31116
|
+
/* @__PURE__ */ jsx58(
|
|
31053
31117
|
"div",
|
|
31054
31118
|
{
|
|
31055
31119
|
className: AgentGUINode_styles_default.conversationSectionItems,
|
|
31056
31120
|
"aria-hidden": isSectionCollapsed ? "true" : void 0,
|
|
31057
|
-
children: /* @__PURE__ */
|
|
31058
|
-
!isSectionCollapsed && visibleItems.length === 0 ? /* @__PURE__ */
|
|
31059
|
-
visibleItems.map((item) => /* @__PURE__ */
|
|
31121
|
+
children: /* @__PURE__ */ jsxs41("div", { className: AgentGUINode_styles_default.conversationSectionItemsInner, children: [
|
|
31122
|
+
!isSectionCollapsed && visibleItems.length === 0 ? /* @__PURE__ */ jsx58("div", { className: AgentGUINode_styles_default.conversationSectionEmpty, children: labels.emptyProjectConversations }) : null,
|
|
31123
|
+
visibleItems.map((item) => /* @__PURE__ */ jsx58(
|
|
31060
31124
|
AgentGUIConversationRailItem,
|
|
31061
31125
|
{
|
|
31062
31126
|
active: item.id === activeConversationId,
|
|
@@ -31080,8 +31144,8 @@ var AgentGUIConversationRailSection = memo7(
|
|
|
31080
31144
|
},
|
|
31081
31145
|
item.id
|
|
31082
31146
|
)),
|
|
31083
|
-
canShowMore || canShowLess ? /* @__PURE__ */
|
|
31084
|
-
canShowMore ? /* @__PURE__ */
|
|
31147
|
+
canShowMore || canShowLess ? /* @__PURE__ */ jsxs41("div", { className: AgentGUINode_styles_default.conversationSectionPagination, children: [
|
|
31148
|
+
canShowMore ? /* @__PURE__ */ jsx58(
|
|
31085
31149
|
"button",
|
|
31086
31150
|
{
|
|
31087
31151
|
type: "button",
|
|
@@ -31091,7 +31155,7 @@ var AgentGUIConversationRailSection = memo7(
|
|
|
31091
31155
|
children: labels.showMoreConversations
|
|
31092
31156
|
}
|
|
31093
31157
|
) : null,
|
|
31094
|
-
canShowLess ? /* @__PURE__ */
|
|
31158
|
+
canShowLess ? /* @__PURE__ */ jsx58(
|
|
31095
31159
|
"button",
|
|
31096
31160
|
{
|
|
31097
31161
|
type: "button",
|
|
@@ -31112,11 +31176,11 @@ var AgentGUIConversationRailSection = memo7(
|
|
|
31112
31176
|
|
|
31113
31177
|
// agent-gui/agentGuiNode/view/AgentGUIProjectActionConfirmationDialog.tsx
|
|
31114
31178
|
import { ConfirmationDialog as ConfirmationDialog2 } from "@tutti-os/ui-system";
|
|
31115
|
-
import { jsx as
|
|
31179
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
31116
31180
|
var DIALOG_CLASS_NAME = "nodrag tsh-desktop-no-drag [-webkit-app-region:no-drag]";
|
|
31117
31181
|
function AgentGUIProjectActionConfirmationDialog(props) {
|
|
31118
31182
|
const { action, labels } = props;
|
|
31119
|
-
return /* @__PURE__ */
|
|
31183
|
+
return /* @__PURE__ */ jsx59(
|
|
31120
31184
|
ConfirmationDialog2,
|
|
31121
31185
|
{
|
|
31122
31186
|
cancelLabel: labels.cancel,
|
|
@@ -31291,9 +31355,9 @@ function useAgentGUIConversationRailViewState(input) {
|
|
|
31291
31355
|
}
|
|
31292
31356
|
|
|
31293
31357
|
// agent-gui/agentGuiNode/view/useAgentGUIProjectMenuState.ts
|
|
31294
|
-
import { useCallback as useCallback51, useState as
|
|
31358
|
+
import { useCallback as useCallback51, useState as useState31 } from "react";
|
|
31295
31359
|
function useAgentGUIProjectMenuState(isRailInteractionLocked, isUserProjectMutationPending) {
|
|
31296
|
-
const [openSectionId, setOpenSectionId] =
|
|
31360
|
+
const [openSectionId, setOpenSectionId] = useState31(null);
|
|
31297
31361
|
const isProjectActionLocked = useCallback51(
|
|
31298
31362
|
() => isRailInteractionLocked() || isUserProjectMutationPending,
|
|
31299
31363
|
[isRailInteractionLocked, isUserProjectMutationPending]
|
|
@@ -31314,9 +31378,9 @@ function useAgentGUIProjectMenuState(isRailInteractionLocked, isUserProjectMutat
|
|
|
31314
31378
|
}
|
|
31315
31379
|
|
|
31316
31380
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailPane.tsx
|
|
31317
|
-
import { jsx as
|
|
31381
|
+
import { jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
31318
31382
|
function useDelayedBoolean(value, delayMs) {
|
|
31319
|
-
const [delayedValue, setDelayedValue] =
|
|
31383
|
+
const [delayedValue, setDelayedValue] = useState32(false);
|
|
31320
31384
|
useEffect30(() => {
|
|
31321
31385
|
if (!value) {
|
|
31322
31386
|
setDelayedValue(false);
|
|
@@ -31370,8 +31434,8 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31370
31434
|
onConversationQueryChange
|
|
31371
31435
|
}) {
|
|
31372
31436
|
"use memo";
|
|
31373
|
-
const [pendingProjectAction, setPendingProjectAction] =
|
|
31374
|
-
const [isRequestingBatchDeletion, setIsRequestingBatchDeletion] =
|
|
31437
|
+
const [pendingProjectAction, setPendingProjectAction] = useState32(null);
|
|
31438
|
+
const [isRequestingBatchDeletion, setIsRequestingBatchDeletion] = useState32(false);
|
|
31375
31439
|
const { railSearch } = railQuery;
|
|
31376
31440
|
const railElementRef = useRef39(null);
|
|
31377
31441
|
const railActiveConversationRef = useRef39([]);
|
|
@@ -31603,15 +31667,15 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31603
31667
|
useEffect30(() => {
|
|
31604
31668
|
return installProjectDragGlobalListeners();
|
|
31605
31669
|
}, [installProjectDragGlobalListeners]);
|
|
31606
|
-
return /* @__PURE__ */
|
|
31670
|
+
return /* @__PURE__ */ jsxs42(
|
|
31607
31671
|
"aside",
|
|
31608
31672
|
{
|
|
31609
31673
|
ref: railElementRef,
|
|
31610
31674
|
className: AgentGUINode_styles_default.rail,
|
|
31611
31675
|
"aria-hidden": isCollapsed ? "true" : void 0,
|
|
31612
31676
|
children: [
|
|
31613
|
-
/* @__PURE__ */
|
|
31614
|
-
/* @__PURE__ */
|
|
31677
|
+
/* @__PURE__ */ jsxs42("div", { className: AgentGUINode_styles_default.railToolbar, children: [
|
|
31678
|
+
/* @__PURE__ */ jsx60(
|
|
31615
31679
|
TaskSearchField,
|
|
31616
31680
|
{
|
|
31617
31681
|
value: conversationQuery,
|
|
@@ -31619,7 +31683,7 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31619
31683
|
onChange: onConversationQueryChange
|
|
31620
31684
|
}
|
|
31621
31685
|
),
|
|
31622
|
-
/* @__PURE__ */
|
|
31686
|
+
/* @__PURE__ */ jsxs42(
|
|
31623
31687
|
Button,
|
|
31624
31688
|
{
|
|
31625
31689
|
type: "button",
|
|
@@ -31630,13 +31694,13 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31630
31694
|
disabled: createConversationDisabled,
|
|
31631
31695
|
onClick: () => onCreateConversation(),
|
|
31632
31696
|
children: [
|
|
31633
|
-
/* @__PURE__ */
|
|
31634
|
-
/* @__PURE__ */
|
|
31697
|
+
/* @__PURE__ */ jsx60(CreateChatIcon2, { "aria-hidden": "true" }),
|
|
31698
|
+
/* @__PURE__ */ jsx60("span", { children: labels.newConversation })
|
|
31635
31699
|
]
|
|
31636
31700
|
}
|
|
31637
31701
|
)
|
|
31638
31702
|
] }),
|
|
31639
|
-
/* @__PURE__ */
|
|
31703
|
+
/* @__PURE__ */ jsx60(
|
|
31640
31704
|
ScrollArea,
|
|
31641
31705
|
{
|
|
31642
31706
|
scrollbarMode: "native",
|
|
@@ -31647,14 +31711,14 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31647
31711
|
onDragOver: keepValidProjectDropTarget,
|
|
31648
31712
|
onDrop: dropProject
|
|
31649
31713
|
},
|
|
31650
|
-
children: shouldShowConversationSkeleton ? /* @__PURE__ */
|
|
31714
|
+
children: shouldShowConversationSkeleton ? /* @__PURE__ */ jsx60(
|
|
31651
31715
|
AgentConversationListSkeleton,
|
|
31652
31716
|
{
|
|
31653
31717
|
label: labels.loadingConversations
|
|
31654
31718
|
}
|
|
31655
|
-
) : shouldShowConversationSearchError ? /* @__PURE__ */
|
|
31656
|
-
/* @__PURE__ */
|
|
31657
|
-
/* @__PURE__ */
|
|
31719
|
+
) : shouldShowConversationSearchError ? /* @__PURE__ */ jsxs42("div", { className: AgentGUINode_styles_default.emptyState, children: [
|
|
31720
|
+
/* @__PURE__ */ jsx60("span", { children: labels.searchFailed }),
|
|
31721
|
+
/* @__PURE__ */ jsx60(
|
|
31658
31722
|
SystemButton,
|
|
31659
31723
|
{
|
|
31660
31724
|
type: "button",
|
|
@@ -31664,7 +31728,7 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31664
31728
|
children: labels.retrySearch
|
|
31665
31729
|
}
|
|
31666
31730
|
)
|
|
31667
|
-
] }) : shouldShowConversationEmptyState ? /* @__PURE__ */
|
|
31731
|
+
] }) : shouldShowConversationEmptyState ? /* @__PURE__ */ jsx60("div", { className: AgentGUINode_styles_default.emptyState, children: /* @__PURE__ */ jsx60("span", { children: conversationQuery.trim() ? labels.searchNoConversations : conversations.length === 0 ? labels.noConversations : labels.conversationUnavailable }) }) : /* @__PURE__ */ jsxs42("fieldset", { className: "contents", disabled: railInteractionsLocked, children: [
|
|
31668
31732
|
groupedConversations.map((section, sectionIndex) => {
|
|
31669
31733
|
const projectPath = section.kind === "project" ? section.project?.path ?? "" : "";
|
|
31670
31734
|
const projectLabel = section.kind === "project" ? section.label : "";
|
|
@@ -31698,9 +31762,9 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31698
31762
|
).length + (activeOverlayCountsTowardTotal && !activeOverlayIsCanonical ? 1 : 0);
|
|
31699
31763
|
const sectionHasMore = searchSectionHasMore || !conversationQuery.trim() && sectionPageState?.hasMore === true;
|
|
31700
31764
|
const batchDeletionDisabled = hasConversationQuery || section.items.length === 0 && !sectionHasMore || isDeletingProjectConversations || isRequestingBatchDeletion;
|
|
31701
|
-
return /* @__PURE__ */
|
|
31702
|
-
showPinnedProjectHeader ? /* @__PURE__ */
|
|
31703
|
-
showProjectRailHeader ? /* @__PURE__ */
|
|
31765
|
+
return /* @__PURE__ */ jsxs42(Fragment17, { children: [
|
|
31766
|
+
showPinnedProjectHeader ? /* @__PURE__ */ jsx60("div", { className: AgentGUINode_styles_default.pinnedProjectRailHeader, children: labels.sectionPinned }) : null,
|
|
31767
|
+
showProjectRailHeader ? /* @__PURE__ */ jsx60(
|
|
31704
31768
|
AgentGUIProjectRailHeader,
|
|
31705
31769
|
{
|
|
31706
31770
|
disabled: railInteractionsLocked || isUserProjectMutationPending,
|
|
@@ -31709,13 +31773,13 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31709
31773
|
workspaceUserProjectI18n
|
|
31710
31774
|
}
|
|
31711
31775
|
) : null,
|
|
31712
|
-
/* @__PURE__ */
|
|
31776
|
+
/* @__PURE__ */ jsx60(
|
|
31713
31777
|
AgentGUIConversationRailSectionPresentationProvider,
|
|
31714
31778
|
{
|
|
31715
31779
|
batchDeletionDisabled,
|
|
31716
31780
|
projectActionLocked,
|
|
31717
31781
|
projectDragDisabled: projectDragLocked,
|
|
31718
|
-
children: /* @__PURE__ */
|
|
31782
|
+
children: /* @__PURE__ */ jsx60(
|
|
31719
31783
|
AgentGUIConversationRailSection,
|
|
31720
31784
|
{
|
|
31721
31785
|
activeConversation: activeOverlayConversation,
|
|
@@ -31775,7 +31839,7 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31775
31839
|
)
|
|
31776
31840
|
] }, section.id);
|
|
31777
31841
|
}),
|
|
31778
|
-
appendProjectRailHeader ? /* @__PURE__ */
|
|
31842
|
+
appendProjectRailHeader ? /* @__PURE__ */ jsx60(
|
|
31779
31843
|
AgentGUIProjectRailHeader,
|
|
31780
31844
|
{
|
|
31781
31845
|
disabled: railInteractionsLocked || isUserProjectMutationPending,
|
|
@@ -31787,8 +31851,8 @@ var AgentGUIConversationRailPane = memo8(
|
|
|
31787
31851
|
] })
|
|
31788
31852
|
}
|
|
31789
31853
|
),
|
|
31790
|
-
footer ? /* @__PURE__ */
|
|
31791
|
-
/* @__PURE__ */
|
|
31854
|
+
footer ? /* @__PURE__ */ jsx60("div", { className: "shrink-0 pb-2", children: footer }) : null,
|
|
31855
|
+
/* @__PURE__ */ jsx60(
|
|
31792
31856
|
AgentGUIProjectActionConfirmationDialog,
|
|
31793
31857
|
{
|
|
31794
31858
|
action: pendingProjectAction,
|
|
@@ -33004,10 +33068,10 @@ function identitySnapshot(snapshot) {
|
|
|
33004
33068
|
}
|
|
33005
33069
|
|
|
33006
33070
|
// agent-gui/agentGuiNode/controller/AgentGUIConversationRailController.tsx
|
|
33007
|
-
import { jsx as
|
|
33071
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
33008
33072
|
var AgentGUIConversationRailController = memo9(
|
|
33009
33073
|
function AgentGUIConversationRailController2(props) {
|
|
33010
|
-
const [conversationQuery, setConversationQuery] =
|
|
33074
|
+
const [conversationQuery, setConversationQuery] = useState33("");
|
|
33011
33075
|
const railQuery = useAgentGUIConversationRailQuery({
|
|
33012
33076
|
activeConversationId: props.activeConversationId,
|
|
33013
33077
|
conversationFilter: props.conversationFilter,
|
|
@@ -33018,7 +33082,7 @@ var AgentGUIConversationRailController = memo9(
|
|
|
33018
33082
|
userProjects: props.userProjects,
|
|
33019
33083
|
workspaceId: props.workspaceId
|
|
33020
33084
|
});
|
|
33021
|
-
return /* @__PURE__ */
|
|
33085
|
+
return /* @__PURE__ */ jsx61(
|
|
33022
33086
|
AgentGUIConversationRailPane,
|
|
33023
33087
|
{
|
|
33024
33088
|
...props,
|
|
@@ -33037,7 +33101,7 @@ import {
|
|
|
33037
33101
|
useEffect as useEffect34,
|
|
33038
33102
|
useMemo as useMemo38,
|
|
33039
33103
|
useRef as useRef43,
|
|
33040
|
-
useState as
|
|
33104
|
+
useState as useState38
|
|
33041
33105
|
} from "react";
|
|
33042
33106
|
import { ScrollArea as ScrollArea2 } from "@tutti-os/ui-system/components";
|
|
33043
33107
|
|
|
@@ -33198,9 +33262,9 @@ import { ChevronsDown } from "lucide-react";
|
|
|
33198
33262
|
import { cn as cn8 } from "@tutti-os/ui-system";
|
|
33199
33263
|
|
|
33200
33264
|
// agent-gui/agentGuiNode/AgentGoalBanner.tsx
|
|
33201
|
-
import { useEffect as useEffect32, useState as
|
|
33265
|
+
import { useEffect as useEffect32, useState as useState34 } from "react";
|
|
33202
33266
|
import { CirclePause, CirclePlay, Pencil as Pencil3, Target as Target3, Trash2 } from "lucide-react";
|
|
33203
|
-
import { jsx as
|
|
33267
|
+
import { jsx as jsx62, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
33204
33268
|
var RESUMABLE_GOAL_STATUSES = /* @__PURE__ */ new Set([
|
|
33205
33269
|
"paused",
|
|
33206
33270
|
"blocked",
|
|
@@ -33274,11 +33338,11 @@ function AgentGoalBanner({
|
|
|
33274
33338
|
onClearGoal
|
|
33275
33339
|
}) {
|
|
33276
33340
|
"use memo";
|
|
33277
|
-
const [editDraft, setEditDraft] =
|
|
33341
|
+
const [editDraft, setEditDraft] = useState34(null);
|
|
33278
33342
|
const normalizedStatus = normalizeGoalStatus(status);
|
|
33279
33343
|
const isActive = normalizedStatus === "" || normalizedStatus === "active";
|
|
33280
33344
|
const serverSeconds = optimistic ? null : typeof durationMs === "number" && durationMs >= 0 ? Math.floor(durationMs / 1e3) : isActive ? 0 : null;
|
|
33281
|
-
const [localElapsed, setLocalElapsed] =
|
|
33345
|
+
const [localElapsed, setLocalElapsed] = useState34(0);
|
|
33282
33346
|
useEffect32(() => {
|
|
33283
33347
|
setLocalElapsed(0);
|
|
33284
33348
|
if (!isActive || serverSeconds === null) {
|
|
@@ -33310,16 +33374,16 @@ function AgentGoalBanner({
|
|
|
33310
33374
|
onEditObjective?.(next);
|
|
33311
33375
|
}
|
|
33312
33376
|
};
|
|
33313
|
-
return /* @__PURE__ */
|
|
33377
|
+
return /* @__PURE__ */ jsx62("div", { className: AgentGUIChrome_styles_default.sessionChrome, children: /* @__PURE__ */ jsx62(
|
|
33314
33378
|
"section",
|
|
33315
33379
|
{
|
|
33316
33380
|
className: cn(AgentGUIChrome_styles_default.chromeCard, AgentGUIChrome_styles_default.chromeCardMuted),
|
|
33317
33381
|
role: "status",
|
|
33318
33382
|
"data-testid": "agent-gui-goal-banner",
|
|
33319
|
-
children: /* @__PURE__ */
|
|
33320
|
-
/* @__PURE__ */
|
|
33321
|
-
/* @__PURE__ */
|
|
33322
|
-
editDraft !== null ? /* @__PURE__ */
|
|
33383
|
+
children: /* @__PURE__ */ jsxs43("div", { className: AgentGUIChrome_styles_default.chromeMetaRow, children: [
|
|
33384
|
+
/* @__PURE__ */ jsxs43("div", { className: AgentGUIChrome_styles_default.chromeMessageSlot, children: [
|
|
33385
|
+
/* @__PURE__ */ jsx62("span", { className: AgentGUIChrome_styles_default.chromeIcon, children: /* @__PURE__ */ jsx62(Target3, { "aria-hidden": true, className: "size-3.5" }) }),
|
|
33386
|
+
editDraft !== null ? /* @__PURE__ */ jsx62(
|
|
33323
33387
|
"input",
|
|
33324
33388
|
{
|
|
33325
33389
|
className: AgentGUIChrome_styles_default.chromeGoalEditInput,
|
|
@@ -33339,14 +33403,14 @@ function AgentGoalBanner({
|
|
|
33339
33403
|
},
|
|
33340
33404
|
onBlur: () => setEditDraft(null)
|
|
33341
33405
|
}
|
|
33342
|
-
) : /* @__PURE__ */
|
|
33406
|
+
) : /* @__PURE__ */ jsxs43(
|
|
33343
33407
|
"p",
|
|
33344
33408
|
{
|
|
33345
33409
|
className: cn(AgentGUIChrome_styles_default.chromeMessage, AgentGUIChrome_styles_default.chromeNoticeMessage),
|
|
33346
33410
|
title: fullMessage,
|
|
33347
33411
|
children: [
|
|
33348
|
-
/* @__PURE__ */
|
|
33349
|
-
/* @__PURE__ */
|
|
33412
|
+
/* @__PURE__ */ jsx62("span", { className: AgentGUIChrome_styles_default.chromeNoticeTitle, children: title }),
|
|
33413
|
+
/* @__PURE__ */ jsx62(
|
|
33350
33414
|
"span",
|
|
33351
33415
|
{
|
|
33352
33416
|
className: AgentGUIChrome_styles_default.chromeNoticeDescription,
|
|
@@ -33358,8 +33422,8 @@ function AgentGoalBanner({
|
|
|
33358
33422
|
}
|
|
33359
33423
|
)
|
|
33360
33424
|
] }),
|
|
33361
|
-
hasActions ? /* @__PURE__ */
|
|
33362
|
-
onEditObjective !== void 0 && editDraft === null ? /* @__PURE__ */
|
|
33425
|
+
hasActions ? /* @__PURE__ */ jsxs43("div", { className: AgentGUIChrome_styles_default.chromeGoalActions, children: [
|
|
33426
|
+
onEditObjective !== void 0 && editDraft === null ? /* @__PURE__ */ jsx62(
|
|
33363
33427
|
"button",
|
|
33364
33428
|
{
|
|
33365
33429
|
type: "button",
|
|
@@ -33367,10 +33431,10 @@ function AgentGoalBanner({
|
|
|
33367
33431
|
title: labels.editAction,
|
|
33368
33432
|
"aria-label": labels.editAction,
|
|
33369
33433
|
"data-testid": "agent-gui-goal-banner-edit",
|
|
33370
|
-
children: /* @__PURE__ */
|
|
33434
|
+
children: /* @__PURE__ */ jsx62(Pencil3, { "aria-hidden": true, className: "size-3.5" })
|
|
33371
33435
|
}
|
|
33372
33436
|
) : null,
|
|
33373
|
-
showPause ? /* @__PURE__ */
|
|
33437
|
+
showPause ? /* @__PURE__ */ jsx62(
|
|
33374
33438
|
"button",
|
|
33375
33439
|
{
|
|
33376
33440
|
type: "button",
|
|
@@ -33378,10 +33442,10 @@ function AgentGoalBanner({
|
|
|
33378
33442
|
title: labels.pauseAction,
|
|
33379
33443
|
"aria-label": labels.pauseAction,
|
|
33380
33444
|
"data-testid": "agent-gui-goal-banner-pause",
|
|
33381
|
-
children: /* @__PURE__ */
|
|
33445
|
+
children: /* @__PURE__ */ jsx62(CirclePause, { "aria-hidden": true, className: "size-3.5" })
|
|
33382
33446
|
}
|
|
33383
33447
|
) : null,
|
|
33384
|
-
showResume ? /* @__PURE__ */
|
|
33448
|
+
showResume ? /* @__PURE__ */ jsx62(
|
|
33385
33449
|
"button",
|
|
33386
33450
|
{
|
|
33387
33451
|
type: "button",
|
|
@@ -33389,10 +33453,10 @@ function AgentGoalBanner({
|
|
|
33389
33453
|
title: labels.resumeAction,
|
|
33390
33454
|
"aria-label": labels.resumeAction,
|
|
33391
33455
|
"data-testid": "agent-gui-goal-banner-resume",
|
|
33392
|
-
children: /* @__PURE__ */
|
|
33456
|
+
children: /* @__PURE__ */ jsx62(CirclePlay, { "aria-hidden": true, className: "size-3.5" })
|
|
33393
33457
|
}
|
|
33394
33458
|
) : null,
|
|
33395
|
-
onClearGoal !== void 0 ? /* @__PURE__ */
|
|
33459
|
+
onClearGoal !== void 0 ? /* @__PURE__ */ jsx62(
|
|
33396
33460
|
"button",
|
|
33397
33461
|
{
|
|
33398
33462
|
type: "button",
|
|
@@ -33400,10 +33464,10 @@ function AgentGoalBanner({
|
|
|
33400
33464
|
title: labels.clearAction,
|
|
33401
33465
|
"aria-label": labels.clearAction,
|
|
33402
33466
|
"data-testid": "agent-gui-goal-banner-clear",
|
|
33403
|
-
children: /* @__PURE__ */
|
|
33467
|
+
children: /* @__PURE__ */ jsx62(Trash2, { "aria-hidden": true, className: "size-3.5" })
|
|
33404
33468
|
}
|
|
33405
33469
|
) : null
|
|
33406
|
-
] }) : /* @__PURE__ */
|
|
33470
|
+
] }) : /* @__PURE__ */ jsx62(
|
|
33407
33471
|
"span",
|
|
33408
33472
|
{
|
|
33409
33473
|
className: AgentGUIChrome_styles_default.chromeGoalHint,
|
|
@@ -33417,7 +33481,7 @@ function AgentGoalBanner({
|
|
|
33417
33481
|
}
|
|
33418
33482
|
|
|
33419
33483
|
// agent-gui/agentGuiNode/view/AgentGUIBottomDockPane.tsx
|
|
33420
|
-
import { jsx as
|
|
33484
|
+
import { jsx as jsx63, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
33421
33485
|
var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
33422
33486
|
bottomDockRef,
|
|
33423
33487
|
showScrollToBottom,
|
|
@@ -33451,14 +33515,14 @@ var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
|
33451
33515
|
const goalDurationMs = goal ? numberValue(goal.durationMs) : null;
|
|
33452
33516
|
const goalIsOptimistic = sessionChrome.rawState?.goalIsOptimistic === true;
|
|
33453
33517
|
const showGoalBanner = isGoalBannerVisible(goalObjective, goalStatus);
|
|
33454
|
-
return /* @__PURE__ */
|
|
33518
|
+
return /* @__PURE__ */ jsxs44(
|
|
33455
33519
|
"div",
|
|
33456
33520
|
{
|
|
33457
33521
|
ref: bottomDockRef,
|
|
33458
33522
|
className: AgentGUINode_styles_default.bottomDock,
|
|
33459
33523
|
"data-testid": "agent-gui-bottom-dock",
|
|
33460
33524
|
children: [
|
|
33461
|
-
showScrollToBottom ? /* @__PURE__ */
|
|
33525
|
+
showScrollToBottom ? /* @__PURE__ */ jsx63(
|
|
33462
33526
|
"button",
|
|
33463
33527
|
{
|
|
33464
33528
|
type: "button",
|
|
@@ -33471,15 +33535,15 @@ var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
|
33471
33535
|
title: scrollToBottomLabel,
|
|
33472
33536
|
onPointerDown: (event) => event.stopPropagation(),
|
|
33473
33537
|
onClick: onScrollToBottom,
|
|
33474
|
-
children: /* @__PURE__ */
|
|
33538
|
+
children: /* @__PURE__ */ jsx63(ChevronsDown, { "aria-hidden": "true", size: 15, strokeWidth: 2.2 })
|
|
33475
33539
|
}
|
|
33476
33540
|
) : null,
|
|
33477
|
-
bottomDockLiftedPrompt ? /* @__PURE__ */
|
|
33541
|
+
bottomDockLiftedPrompt ? /* @__PURE__ */ jsx63(
|
|
33478
33542
|
"div",
|
|
33479
33543
|
{
|
|
33480
33544
|
className: AgentGUINode_styles_default.bottomDockPrompt,
|
|
33481
33545
|
"data-testid": "agent-gui-bottom-dock-active-prompt",
|
|
33482
|
-
children: /* @__PURE__ */
|
|
33546
|
+
children: /* @__PURE__ */ jsx63(
|
|
33483
33547
|
AgentInteractivePromptSurface,
|
|
33484
33548
|
{
|
|
33485
33549
|
prompt: bottomDockLiftedPrompt,
|
|
@@ -33494,7 +33558,7 @@ var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
|
33494
33558
|
)
|
|
33495
33559
|
}
|
|
33496
33560
|
) : null,
|
|
33497
|
-
inlineNoticeChrome ? /* @__PURE__ */
|
|
33561
|
+
inlineNoticeChrome ? /* @__PURE__ */ jsx63(
|
|
33498
33562
|
AgentSessionChrome,
|
|
33499
33563
|
{
|
|
33500
33564
|
chrome: inlineNoticeChrome,
|
|
@@ -33506,7 +33570,7 @@ var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
|
33506
33570
|
labels: chromeLabels
|
|
33507
33571
|
}
|
|
33508
33572
|
) : null,
|
|
33509
|
-
/* @__PURE__ */
|
|
33573
|
+
/* @__PURE__ */ jsx63(
|
|
33510
33574
|
AgentSessionChrome,
|
|
33511
33575
|
{
|
|
33512
33576
|
chrome: sessionChrome,
|
|
@@ -33518,7 +33582,7 @@ var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
|
33518
33582
|
labels: chromeLabels
|
|
33519
33583
|
}
|
|
33520
33584
|
),
|
|
33521
|
-
showGoalBanner ? /* @__PURE__ */
|
|
33585
|
+
showGoalBanner ? /* @__PURE__ */ jsx63(
|
|
33522
33586
|
AgentGoalBanner,
|
|
33523
33587
|
{
|
|
33524
33588
|
objective: goalObjective,
|
|
@@ -33533,12 +33597,12 @@ var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
|
33533
33597
|
onClearGoal: () => onGoalControl("clear")
|
|
33534
33598
|
}
|
|
33535
33599
|
) : null,
|
|
33536
|
-
bottomDockReplacementPrompt ? /* @__PURE__ */
|
|
33600
|
+
bottomDockReplacementPrompt ? /* @__PURE__ */ jsx63(
|
|
33537
33601
|
"div",
|
|
33538
33602
|
{
|
|
33539
33603
|
className: AgentGUINode_styles_default.bottomDockPrompt,
|
|
33540
33604
|
"data-testid": "agent-gui-bottom-dock-active-prompt",
|
|
33541
|
-
children: /* @__PURE__ */
|
|
33605
|
+
children: /* @__PURE__ */ jsx63(
|
|
33542
33606
|
AgentInteractivePromptSurface,
|
|
33543
33607
|
{
|
|
33544
33608
|
prompt: bottomDockReplacementPrompt,
|
|
@@ -33552,28 +33616,28 @@ var AgentGUIBottomDockPane = memo10(function AgentGUIBottomDockPane2({
|
|
|
33552
33616
|
}
|
|
33553
33617
|
)
|
|
33554
33618
|
}
|
|
33555
|
-
) : /* @__PURE__ */
|
|
33619
|
+
) : /* @__PURE__ */ jsx63(AgentComposer, { ...composerProps })
|
|
33556
33620
|
]
|
|
33557
33621
|
}
|
|
33558
33622
|
);
|
|
33559
33623
|
});
|
|
33560
33624
|
|
|
33561
33625
|
// agent-gui/agentGuiNode/view/AgentGUIContentToast.tsx
|
|
33562
|
-
import { useState as
|
|
33626
|
+
import { useState as useState35 } from "react";
|
|
33563
33627
|
import {
|
|
33564
33628
|
ToastProvider,
|
|
33565
33629
|
ToastRoot,
|
|
33566
33630
|
ToastTitle,
|
|
33567
33631
|
ToastViewport
|
|
33568
33632
|
} from "@tutti-os/ui-system";
|
|
33569
|
-
import { jsx as
|
|
33633
|
+
import { jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
33570
33634
|
function AgentGUIContentToast({
|
|
33571
33635
|
insetTopPx,
|
|
33572
33636
|
message
|
|
33573
33637
|
}) {
|
|
33574
|
-
const [open, setOpen] =
|
|
33575
|
-
return /* @__PURE__ */
|
|
33576
|
-
/* @__PURE__ */
|
|
33638
|
+
const [open, setOpen] = useState35(true);
|
|
33639
|
+
return /* @__PURE__ */ jsxs45(ToastProvider, { children: [
|
|
33640
|
+
/* @__PURE__ */ jsx64(
|
|
33577
33641
|
ToastRoot,
|
|
33578
33642
|
{
|
|
33579
33643
|
open,
|
|
@@ -33581,10 +33645,10 @@ function AgentGUIContentToast({
|
|
|
33581
33645
|
"data-testid": "agent-gui-content-toast",
|
|
33582
33646
|
variant: "default",
|
|
33583
33647
|
onOpenChange: setOpen,
|
|
33584
|
-
children: /* @__PURE__ */
|
|
33648
|
+
children: /* @__PURE__ */ jsx64(ToastTitle, { children: message })
|
|
33585
33649
|
}
|
|
33586
33650
|
),
|
|
33587
|
-
/* @__PURE__ */
|
|
33651
|
+
/* @__PURE__ */ jsx64(
|
|
33588
33652
|
ToastViewport,
|
|
33589
33653
|
{
|
|
33590
33654
|
className: "nodrag tsh-desktop-no-drag absolute left-0 w-full translate-x-0 px-4 [-webkit-app-region:no-drag]",
|
|
@@ -33597,7 +33661,7 @@ function AgentGUIContentToast({
|
|
|
33597
33661
|
|
|
33598
33662
|
// agent-gui/agentGuiNode/view/AgentGUIConversationTimelinePane.tsx
|
|
33599
33663
|
import { memo as memo11 } from "react";
|
|
33600
|
-
import { Fragment as Fragment18, jsx as
|
|
33664
|
+
import { Fragment as Fragment18, jsx as jsx65, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
33601
33665
|
var EMPTY_WORKSPACE_APP_ICONS3 = [];
|
|
33602
33666
|
var AgentGUIConversationTimelinePane = memo11(
|
|
33603
33667
|
function AgentGUIConversationTimelinePane2({
|
|
@@ -33614,17 +33678,17 @@ var AgentGUIConversationTimelinePane = memo11(
|
|
|
33614
33678
|
labels
|
|
33615
33679
|
}) {
|
|
33616
33680
|
"use memo";
|
|
33617
|
-
return /* @__PURE__ */
|
|
33618
|
-
isLoadingOlderMessages && !isLoading ? /* @__PURE__ */
|
|
33681
|
+
return /* @__PURE__ */ jsxs46(Fragment18, { children: [
|
|
33682
|
+
isLoadingOlderMessages && !isLoading ? /* @__PURE__ */ jsx65(
|
|
33619
33683
|
"div",
|
|
33620
33684
|
{
|
|
33621
33685
|
className: "mx-auto flex h-8 items-center justify-center text-[12px] text-[var(--text-secondary)]",
|
|
33622
33686
|
"data-testid": "agent-gui-older-messages-loading",
|
|
33623
33687
|
role: "status",
|
|
33624
|
-
children: /* @__PURE__ */
|
|
33688
|
+
children: /* @__PURE__ */ jsx65("span", { className: "tsh-inline-loading-ellipsis", children: loadingLabel })
|
|
33625
33689
|
}
|
|
33626
33690
|
) : null,
|
|
33627
|
-
/* @__PURE__ */
|
|
33691
|
+
/* @__PURE__ */ jsx65(
|
|
33628
33692
|
AgentConversationFlow,
|
|
33629
33693
|
{
|
|
33630
33694
|
conversation,
|
|
@@ -33663,7 +33727,7 @@ import {
|
|
|
33663
33727
|
useEffect as useEffect33,
|
|
33664
33728
|
useLayoutEffect as useLayoutEffect7,
|
|
33665
33729
|
useRef as useRef42,
|
|
33666
|
-
useState as
|
|
33730
|
+
useState as useState36
|
|
33667
33731
|
} from "react";
|
|
33668
33732
|
var AGENT_GUI_STICK_TO_BOTTOM_THRESHOLD_PX = 24;
|
|
33669
33733
|
var AGENT_GUI_TOP_HISTORY_PREFETCH_THRESHOLD_PX = 240;
|
|
@@ -33682,8 +33746,8 @@ function useAgentGUIDetailScroll(input) {
|
|
|
33682
33746
|
timelineScrollAnchorRef,
|
|
33683
33747
|
viewModel
|
|
33684
33748
|
} = input;
|
|
33685
|
-
const [isTimelineScrolledToTop, setIsTimelineScrolledToTop] =
|
|
33686
|
-
const [isTimelineScrolledToBottom, setIsTimelineScrolledToBottom] =
|
|
33749
|
+
const [isTimelineScrolledToTop, setIsTimelineScrolledToTop] = useState36(true);
|
|
33750
|
+
const [isTimelineScrolledToBottom, setIsTimelineScrolledToBottom] = useState36(true);
|
|
33687
33751
|
const bottomLockOwnerRef = useRef42(null);
|
|
33688
33752
|
const userScrollAwayIntentConversationRef = useRef42(null);
|
|
33689
33753
|
useLayoutEffect7(() => {
|
|
@@ -34005,10 +34069,10 @@ function useAgentGUIDetailScroll(input) {
|
|
|
34005
34069
|
import { useMemo as useMemo37 } from "react";
|
|
34006
34070
|
|
|
34007
34071
|
// app/renderer/components/icons/UnavailableChatIcon.tsx
|
|
34008
|
-
import { jsx as
|
|
34072
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
34009
34073
|
function UnavailableChatIcon(props) {
|
|
34010
34074
|
"use memo";
|
|
34011
|
-
return /* @__PURE__ */
|
|
34075
|
+
return /* @__PURE__ */ jsx66(
|
|
34012
34076
|
"svg",
|
|
34013
34077
|
{
|
|
34014
34078
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -34016,21 +34080,21 @@ function UnavailableChatIcon(props) {
|
|
|
34016
34080
|
fill: "currentColor",
|
|
34017
34081
|
"aria-hidden": true,
|
|
34018
34082
|
...props,
|
|
34019
|
-
children: /* @__PURE__ */
|
|
34083
|
+
children: /* @__PURE__ */ jsx66("path", { d: "M20.833 2.125C21.6507 2.125 22.4355 2.45019 23.0137 3.02832C23.5916 3.60645 23.9159 4.39053 23.916 5.20801V17.708C23.916 18.5257 23.5918 19.3104 23.0137 19.8887C22.4355 20.4668 21.6507 20.792 20.833 20.792H7.1123C6.82516 20.7922 6.5497 20.9063 6.34668 21.1094L4.05273 23.4033C3.80954 23.6464 3.49934 23.8118 3.16211 23.8789C2.82492 23.9459 2.47487 23.9118 2.15723 23.7803C1.83953 23.6486 1.56707 23.4256 1.37598 23.1396C1.18489 22.8536 1.08305 22.5168 1.08301 22.1729V5.20801C1.08309 4.39045 1.40827 3.60647 1.98633 3.02832C2.56441 2.45024 3.3485 2.12517 4.16602 2.125H20.833ZM16.1533 7.80566C15.7628 7.41518 15.1298 7.41527 14.7393 7.80566L12.5 10.0439L10.2607 7.80469C9.87031 7.41464 9.23712 7.41465 8.84668 7.80469C8.45627 8.19509 8.45651 8.8282 8.84668 9.21875L11.0859 11.458L8.84668 13.6982C8.45651 14.0888 8.45627 14.7219 8.84668 15.1123C9.2371 15.5026 9.87024 15.5024 10.2607 15.1123L12.5 12.873L14.7393 15.1113C15.1298 15.5017 15.7628 15.5018 16.1533 15.1113C16.5434 14.7208 16.5436 14.0877 16.1533 13.6973L13.9141 11.458L16.1533 9.21973C16.5437 8.82924 16.5437 8.19616 16.1533 7.80566Z" })
|
|
34020
34084
|
}
|
|
34021
34085
|
);
|
|
34022
34086
|
}
|
|
34023
34087
|
|
|
34024
34088
|
// agent-gui/agentGuiNode/view/useAgentGUITimelineTransition.ts
|
|
34025
|
-
import { useLayoutEffect as useLayoutEffect8, useState as
|
|
34089
|
+
import { useLayoutEffect as useLayoutEffect8, useState as useState37 } from "react";
|
|
34026
34090
|
var AGENT_GUI_TIMELINE_SKELETON_DELAY_MS = 300;
|
|
34027
34091
|
function useAgentGUITimelineTransition(input) {
|
|
34028
34092
|
const activeConversationId = input.activeConversationId;
|
|
34029
|
-
const [committedTimeline, setCommittedTimeline] =
|
|
34093
|
+
const [committedTimeline, setCommittedTimeline] = useState37(() => ({
|
|
34030
34094
|
conversation: input.conversation,
|
|
34031
34095
|
conversationId: activeConversationId
|
|
34032
34096
|
}));
|
|
34033
|
-
const [revealedSkeletonConversationId, setRevealedSkeletonConversationId] =
|
|
34097
|
+
const [revealedSkeletonConversationId, setRevealedSkeletonConversationId] = useState37(null);
|
|
34034
34098
|
const transitionPending = activeConversationId !== null && input.availability === "loading" && (!input.conversation || input.conversation.rows.length === 0);
|
|
34035
34099
|
useLayoutEffect8(() => {
|
|
34036
34100
|
if (!transitionPending || activeConversationId === null) {
|
|
@@ -34062,7 +34126,7 @@ function useAgentGUITimelineTransition(input) {
|
|
|
34062
34126
|
}
|
|
34063
34127
|
|
|
34064
34128
|
// agent-gui/agentGuiNode/view/useAgentGUIDetailModel.tsx
|
|
34065
|
-
import { Fragment as Fragment19, jsx as
|
|
34129
|
+
import { Fragment as Fragment19, jsx as jsx67, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
34066
34130
|
function useAgentGUIDetailModel(input) {
|
|
34067
34131
|
const {
|
|
34068
34132
|
bottomDockDismissedPromptRequestId,
|
|
@@ -34210,17 +34274,17 @@ function useAgentGUIDetailModel(input) {
|
|
|
34210
34274
|
]
|
|
34211
34275
|
);
|
|
34212
34276
|
const conversationFlowEmpty = useMemo37(
|
|
34213
|
-
() => showUnavailableChatEmpty ? /* @__PURE__ */
|
|
34277
|
+
() => showUnavailableChatEmpty ? /* @__PURE__ */ jsxs47(
|
|
34214
34278
|
"div",
|
|
34215
34279
|
{
|
|
34216
34280
|
className: AgentGUINode_styles_default.unavailableChatEmpty,
|
|
34217
34281
|
"data-testid": "agent-gui-unavailable-chat-empty",
|
|
34218
34282
|
children: [
|
|
34219
|
-
/* @__PURE__ */
|
|
34220
|
-
/* @__PURE__ */
|
|
34283
|
+
/* @__PURE__ */ jsx67(UnavailableChatIcon, { className: AgentGUINode_styles_default.unavailableChatEmptyIcon }),
|
|
34284
|
+
/* @__PURE__ */ jsx67("span", { className: AgentGUINode_styles_default.unavailableChatEmptyText, children: labels.conversationUnavailable })
|
|
34221
34285
|
]
|
|
34222
34286
|
}
|
|
34223
|
-
) : /* @__PURE__ */
|
|
34287
|
+
) : /* @__PURE__ */ jsx67(Fragment19, {}),
|
|
34224
34288
|
[labels.conversationUnavailable, showUnavailableChatEmpty]
|
|
34225
34289
|
);
|
|
34226
34290
|
const chromeLabels = useMemo37(
|
|
@@ -34597,7 +34661,7 @@ function useAgentGUIDetailModel(input) {
|
|
|
34597
34661
|
}
|
|
34598
34662
|
|
|
34599
34663
|
// agent-gui/agentGuiNode/view/AgentGUIDetailPane.tsx
|
|
34600
|
-
import { Fragment as Fragment20, jsx as
|
|
34664
|
+
import { Fragment as Fragment20, jsx as jsx68, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
34601
34665
|
var AGENT_GUI_TIMELINE_SCROLL_AREA_CONTENT_STYLE = {
|
|
34602
34666
|
width: "100%",
|
|
34603
34667
|
minWidth: "100%",
|
|
@@ -34687,7 +34751,7 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
34687
34751
|
const [
|
|
34688
34752
|
bottomDockDismissedPromptRequestId,
|
|
34689
34753
|
setBottomDockDismissedPromptRequestId
|
|
34690
|
-
] =
|
|
34754
|
+
] = useState38(null);
|
|
34691
34755
|
const {
|
|
34692
34756
|
activePromptRequestId,
|
|
34693
34757
|
bottomDockLiftedPrompt,
|
|
@@ -35053,14 +35117,14 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
35053
35117
|
timelineScrollAnchorRef,
|
|
35054
35118
|
viewModel
|
|
35055
35119
|
});
|
|
35056
|
-
return /* @__PURE__ */
|
|
35120
|
+
return /* @__PURE__ */ jsxs48(
|
|
35057
35121
|
"main",
|
|
35058
35122
|
{
|
|
35059
35123
|
className: AgentGUINode_styles_default.detail,
|
|
35060
35124
|
"aria-busy": timelineInteractionLocked || void 0,
|
|
35061
35125
|
inert: timelineInteractionLocked,
|
|
35062
35126
|
children: [
|
|
35063
|
-
viewModel.operations.goalClearNoticeSequence > 0 ? /* @__PURE__ */
|
|
35127
|
+
viewModel.operations.goalClearNoticeSequence > 0 ? /* @__PURE__ */ jsx68(
|
|
35064
35128
|
AgentGUIContentToast,
|
|
35065
35129
|
{
|
|
35066
35130
|
insetTopPx: 16,
|
|
@@ -35068,7 +35132,7 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
35068
35132
|
},
|
|
35069
35133
|
viewModel.operations.goalClearNoticeSequence
|
|
35070
35134
|
) : null,
|
|
35071
|
-
/* @__PURE__ */
|
|
35135
|
+
/* @__PURE__ */ jsx68(
|
|
35072
35136
|
ScrollArea2,
|
|
35073
35137
|
{
|
|
35074
35138
|
scrollbarMode: "native",
|
|
@@ -35077,7 +35141,7 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
35077
35141
|
viewportTestId: "agent-gui-timeline",
|
|
35078
35142
|
viewportClassName: `${AgentGUINode_styles_default.timeline} ${hasActiveConversation ? AgentGUINode_styles_default.timelineWithComposer : AgentGUINode_styles_default.timelineCentered} ${!isTimelineScrolledToTop ? AgentGUINode_styles_default.timelineScrolledFromTop : ""} ${showUnavailableChatEmpty ? AgentGUINode_styles_default.timelineUnavailableChatEmpty : ""}`.trim(),
|
|
35079
35143
|
viewportContentStyle: AGENT_GUI_TIMELINE_SCROLL_AREA_CONTENT_STYLE,
|
|
35080
|
-
children: !hasActiveConversation ? shouldRenderProviderUnavailableState && disabledProviderTarget ? /* @__PURE__ */
|
|
35144
|
+
children: !hasActiveConversation ? shouldRenderProviderUnavailableState && disabledProviderTarget ? /* @__PURE__ */ jsx68(Fragment20, { children: renderProviderUnavailableState?.({
|
|
35081
35145
|
provider: disabledProviderTarget.provider,
|
|
35082
35146
|
providerLabel: labels.emptyProviderForProvider?.(
|
|
35083
35147
|
disabledProviderTarget.provider
|
|
@@ -35089,7 +35153,7 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
35089
35153
|
disabledProviderTarget.provider
|
|
35090
35154
|
),
|
|
35091
35155
|
unavailableReason: disabledProviderTarget.unavailableReason ?? null
|
|
35092
|
-
}) }) : /* @__PURE__ */
|
|
35156
|
+
}) }) : /* @__PURE__ */ jsx68(
|
|
35093
35157
|
AgentGUIEmptyHomePane,
|
|
35094
35158
|
{
|
|
35095
35159
|
provider: emptyHeroProvider,
|
|
@@ -35112,7 +35176,7 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
35112
35176
|
onSelectSuggestion: handleSelectHomeSuggestion,
|
|
35113
35177
|
onSelectSuggestionAction: handleHomeSuggestionAction
|
|
35114
35178
|
}
|
|
35115
|
-
) : /* @__PURE__ */
|
|
35179
|
+
) : /* @__PURE__ */ jsx68(
|
|
35116
35180
|
AgentGUIConversationTimelinePane,
|
|
35117
35181
|
{
|
|
35118
35182
|
conversation,
|
|
@@ -35130,7 +35194,7 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
35130
35194
|
)
|
|
35131
35195
|
}
|
|
35132
35196
|
),
|
|
35133
|
-
hasActiveConversation ? /* @__PURE__ */
|
|
35197
|
+
hasActiveConversation ? /* @__PURE__ */ jsx68(
|
|
35134
35198
|
AgentGUIBottomDockPane,
|
|
35135
35199
|
{
|
|
35136
35200
|
bottomDockRef,
|
|
@@ -35162,9 +35226,9 @@ var AgentGUIDetailPane = memo12(function AgentGUIDetailPane2({
|
|
|
35162
35226
|
});
|
|
35163
35227
|
|
|
35164
35228
|
// agent-gui/agentGuiNode/view/AgentGUIRenameConversationDialog.tsx
|
|
35165
|
-
import { memo as memo13, useCallback as useCallback54, useEffect as useEffect35, useRef as useRef44, useState as
|
|
35229
|
+
import { memo as memo13, useCallback as useCallback54, useEffect as useEffect35, useRef as useRef44, useState as useState39 } from "react";
|
|
35166
35230
|
import { ConfirmationDialog as ConfirmationDialog3, Input as Input2 } from "@tutti-os/ui-system";
|
|
35167
|
-
import { jsx as
|
|
35231
|
+
import { jsx as jsx69, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
35168
35232
|
var AgentGUIRenameConversationDialog = memo13(
|
|
35169
35233
|
function AgentGUIRenameConversationDialog2({
|
|
35170
35234
|
conversation,
|
|
@@ -35174,8 +35238,8 @@ var AgentGUIRenameConversationDialog = memo13(
|
|
|
35174
35238
|
onRename
|
|
35175
35239
|
}) {
|
|
35176
35240
|
"use memo";
|
|
35177
|
-
const [title, setTitle] =
|
|
35178
|
-
const [isSaving, setIsSaving] =
|
|
35241
|
+
const [title, setTitle] = useState39("");
|
|
35242
|
+
const [isSaving, setIsSaving] = useState39(false);
|
|
35179
35243
|
const isSavingRef = useRef44(false);
|
|
35180
35244
|
const armedPointerActionRef = useRef44(null);
|
|
35181
35245
|
const inputRef = useRef44(null);
|
|
@@ -35220,7 +35284,7 @@ var AgentGUIRenameConversationDialog = memo13(
|
|
|
35220
35284
|
setIsSaving(false);
|
|
35221
35285
|
});
|
|
35222
35286
|
}, [conversation, onOpenChange, onRename, trimmedTitle]);
|
|
35223
|
-
return /* @__PURE__ */
|
|
35287
|
+
return /* @__PURE__ */ jsx69(
|
|
35224
35288
|
ConfirmationDialog3,
|
|
35225
35289
|
{
|
|
35226
35290
|
cancelLabel: labels.cancel,
|
|
@@ -35229,8 +35293,8 @@ var AgentGUIRenameConversationDialog = memo13(
|
|
|
35229
35293
|
confirmDisabled: !trimmedTitle,
|
|
35230
35294
|
confirmLabel: labels.renameSessionSave,
|
|
35231
35295
|
description: labels.renameSessionDescription,
|
|
35232
|
-
footer: /* @__PURE__ */
|
|
35233
|
-
/* @__PURE__ */
|
|
35296
|
+
footer: /* @__PURE__ */ jsxs49("div", { className: "flex justify-end gap-2", children: [
|
|
35297
|
+
/* @__PURE__ */ jsx69(
|
|
35234
35298
|
Button,
|
|
35235
35299
|
{
|
|
35236
35300
|
disabled: isSaving,
|
|
@@ -35268,7 +35332,7 @@ var AgentGUIRenameConversationDialog = memo13(
|
|
|
35268
35332
|
children: labels.cancel
|
|
35269
35333
|
}
|
|
35270
35334
|
),
|
|
35271
|
-
/* @__PURE__ */
|
|
35335
|
+
/* @__PURE__ */ jsx69(
|
|
35272
35336
|
Button,
|
|
35273
35337
|
{
|
|
35274
35338
|
className: "shadow-none",
|
|
@@ -35323,7 +35387,7 @@ var AgentGUIRenameConversationDialog = memo13(
|
|
|
35323
35387
|
title: labels.renameSessionTitle,
|
|
35324
35388
|
onConfirm: confirmRename,
|
|
35325
35389
|
onOpenChange,
|
|
35326
|
-
children: /* @__PURE__ */
|
|
35390
|
+
children: /* @__PURE__ */ jsx69(
|
|
35327
35391
|
Input2,
|
|
35328
35392
|
{
|
|
35329
35393
|
ref: inputRef,
|
|
@@ -35351,7 +35415,7 @@ import {
|
|
|
35351
35415
|
ReferenceSourcePicker,
|
|
35352
35416
|
WorkspaceFileReferencePicker
|
|
35353
35417
|
} from "@tutti-os/workspace-file-reference/ui";
|
|
35354
|
-
import { jsx as
|
|
35418
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
35355
35419
|
function AgentGUIReferencePickerSurface({
|
|
35356
35420
|
aggregator,
|
|
35357
35421
|
copy,
|
|
@@ -35368,7 +35432,7 @@ function AgentGUIReferencePickerSurface({
|
|
|
35368
35432
|
onConfirm,
|
|
35369
35433
|
onConfirmBundles
|
|
35370
35434
|
}) {
|
|
35371
|
-
return aggregator ? /* @__PURE__ */
|
|
35435
|
+
return aggregator ? /* @__PURE__ */ jsx70(
|
|
35372
35436
|
ReferenceSourcePicker,
|
|
35373
35437
|
{
|
|
35374
35438
|
aggregator,
|
|
@@ -35378,7 +35442,7 @@ function AgentGUIReferencePickerSurface({
|
|
|
35378
35442
|
fileManagerCopy: fileManagerCopy ?? void 0,
|
|
35379
35443
|
open,
|
|
35380
35444
|
provenanceFilter: provenanceFilter?.snapshot.value,
|
|
35381
|
-
provenanceFilterControl: provenanceFilter ? /* @__PURE__ */
|
|
35445
|
+
provenanceFilterControl: provenanceFilter ? /* @__PURE__ */ jsx70(
|
|
35382
35446
|
AgentReferenceProvenanceFilterControl,
|
|
35383
35447
|
{
|
|
35384
35448
|
filter: provenanceFilter,
|
|
@@ -35391,7 +35455,7 @@ function AgentGUIReferencePickerSurface({
|
|
|
35391
35455
|
onConfirm,
|
|
35392
35456
|
onConfirmBundles
|
|
35393
35457
|
}
|
|
35394
|
-
) : /* @__PURE__ */
|
|
35458
|
+
) : /* @__PURE__ */ jsx70(
|
|
35395
35459
|
WorkspaceFileReferencePicker,
|
|
35396
35460
|
{
|
|
35397
35461
|
copy,
|
|
@@ -35408,7 +35472,7 @@ function AgentGUIReferencePickerSurface({
|
|
|
35408
35472
|
|
|
35409
35473
|
// agent-gui/agentGuiNode/view/AgentTargetSetupRoot.tsx
|
|
35410
35474
|
import { useCallback as useCallback55, useMemo as useMemo39 } from "react";
|
|
35411
|
-
import { jsx as
|
|
35475
|
+
import { jsx as jsx71, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
35412
35476
|
function useAgentTargetSetupRoot(input) {
|
|
35413
35477
|
const { preferences } = useAgentGUIProviderRailPreferences();
|
|
35414
35478
|
const homeTargetProjection = useMemo39(
|
|
@@ -35452,9 +35516,9 @@ function AgentTargetSetupRoot({
|
|
|
35452
35516
|
controller,
|
|
35453
35517
|
openEnvironmentSetup
|
|
35454
35518
|
}) {
|
|
35455
|
-
return /* @__PURE__ */
|
|
35519
|
+
return /* @__PURE__ */ jsx71(AgentEnvPanelActionProvider, { openPanel: openEnvironmentSetup, children: /* @__PURE__ */ jsxs50(AgentTargetSetupControllerProvider, { controller, children: [
|
|
35456
35520
|
children,
|
|
35457
|
-
/* @__PURE__ */
|
|
35521
|
+
/* @__PURE__ */ jsx71(
|
|
35458
35522
|
AgentTargetSetupGate,
|
|
35459
35523
|
{
|
|
35460
35524
|
carouselMountedExternally: false,
|
|
@@ -35466,7 +35530,7 @@ function AgentTargetSetupRoot({
|
|
|
35466
35530
|
}
|
|
35467
35531
|
|
|
35468
35532
|
// agent-gui/agentGuiNode/view/useAgentGUIWorkspaceReferencePicker.ts
|
|
35469
|
-
import { useCallback as useCallback56, useMemo as useMemo40, useRef as useRef45, useState as
|
|
35533
|
+
import { useCallback as useCallback56, useMemo as useMemo40, useRef as useRef45, useState as useState40 } from "react";
|
|
35470
35534
|
import { createRichTextMentionHref } from "@tutti-os/ui-rich-text/core";
|
|
35471
35535
|
function useAgentGUIWorkspaceReferencePicker(input) {
|
|
35472
35536
|
const {
|
|
@@ -35479,8 +35543,8 @@ function useAgentGUIWorkspaceReferencePicker(input) {
|
|
|
35479
35543
|
workspaceFileReferenceAdapter,
|
|
35480
35544
|
workspaceFileReferenceCopy
|
|
35481
35545
|
} = input;
|
|
35482
|
-
const [workspaceReferencePickerOpen, setWorkspaceReferencePickerOpen] =
|
|
35483
|
-
const [workspaceReferencePickerTarget, setWorkspaceReferencePickerTarget] =
|
|
35546
|
+
const [workspaceReferencePickerOpen, setWorkspaceReferencePickerOpen] = useState40(false);
|
|
35547
|
+
const [workspaceReferencePickerTarget, setWorkspaceReferencePickerTarget] = useState40(null);
|
|
35484
35548
|
const workspaceReferencePickerResolverRef = useRef45(null);
|
|
35485
35549
|
const emptyReferencePickResult = useMemo40(
|
|
35486
35550
|
() => ({ files: [], mentionItems: [] }),
|
|
@@ -35927,7 +35991,7 @@ function useAgentGUIExternalRequests(input) {
|
|
|
35927
35991
|
}
|
|
35928
35992
|
|
|
35929
35993
|
// agent-gui/agentGuiNode/AgentGUINodeView.tsx
|
|
35930
|
-
import { jsx as
|
|
35994
|
+
import { jsx as jsx72, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
35931
35995
|
function AgentGUINodeView({
|
|
35932
35996
|
viewModel,
|
|
35933
35997
|
referenceProvenanceFilter = null,
|
|
@@ -35999,16 +36063,16 @@ function AgentGUINodeView({
|
|
|
35999
36063
|
previewMode,
|
|
36000
36064
|
viewModel
|
|
36001
36065
|
});
|
|
36002
|
-
const [providerManagerOpen, setProviderManagerOpen] =
|
|
36066
|
+
const [providerManagerOpen, setProviderManagerOpen] = useState41(false);
|
|
36003
36067
|
const railResizeInteractionRef = useRef49(null);
|
|
36004
|
-
const [isRailResizing, setIsRailResizing] =
|
|
36005
|
-
const [railResizeWidthPx, setRailResizeWidthPx] =
|
|
36068
|
+
const [isRailResizing, setIsRailResizing] = useState41(false);
|
|
36069
|
+
const [railResizeWidthPx, setRailResizeWidthPx] = useState41(
|
|
36006
36070
|
null
|
|
36007
36071
|
);
|
|
36008
36072
|
const [
|
|
36009
36073
|
localComposerFocusRequestSequence,
|
|
36010
36074
|
setLocalComposerFocusRequestSequence
|
|
36011
|
-
] =
|
|
36075
|
+
] = useState41(0);
|
|
36012
36076
|
const {
|
|
36013
36077
|
closeWorkspaceReferencePicker,
|
|
36014
36078
|
confirmWorkspaceReferenceBundles,
|
|
@@ -36252,8 +36316,8 @@ function AgentGUINodeView({
|
|
|
36252
36316
|
const openAgentSettings = useCallback58(() => {
|
|
36253
36317
|
openWorkspaceSettingsPanel({ section: "agent" });
|
|
36254
36318
|
}, []);
|
|
36255
|
-
const [renameConversationTarget, setRenameConversationTarget] =
|
|
36256
|
-
const [renameConversationDialogOpen, setRenameConversationDialogOpen] =
|
|
36319
|
+
const [renameConversationTarget, setRenameConversationTarget] = useState41(null);
|
|
36320
|
+
const [renameConversationDialogOpen, setRenameConversationDialogOpen] = useState41(false);
|
|
36257
36321
|
const requestRenameConversation = useCallback58(
|
|
36258
36322
|
(conversation) => {
|
|
36259
36323
|
setRenameConversationTarget(conversation);
|
|
@@ -36359,13 +36423,13 @@ function AgentGUINodeView({
|
|
|
36359
36423
|
}),
|
|
36360
36424
|
[targetPresentationKey, viewModel.shell.workspaceId]
|
|
36361
36425
|
);
|
|
36362
|
-
const content = /* @__PURE__ */
|
|
36426
|
+
const content = /* @__PURE__ */ jsx72(AgentTargetPresentationProvider, { agentTargets: agentTargetPresentations, children: /* @__PURE__ */ jsxs51(
|
|
36363
36427
|
AgentTargetSetupRoot,
|
|
36364
36428
|
{
|
|
36365
36429
|
controller: targetSetupController,
|
|
36366
36430
|
openEnvironmentSetup: onAgentEnvPanelOpen,
|
|
36367
36431
|
children: [
|
|
36368
|
-
/* @__PURE__ */
|
|
36432
|
+
/* @__PURE__ */ jsxs51(
|
|
36369
36433
|
"div",
|
|
36370
36434
|
{
|
|
36371
36435
|
ref: layoutElementRef,
|
|
@@ -36375,7 +36439,7 @@ function AgentGUINodeView({
|
|
|
36375
36439
|
inert: previewMode ? true : void 0,
|
|
36376
36440
|
style: layoutStyle,
|
|
36377
36441
|
children: [
|
|
36378
|
-
/* @__PURE__ */
|
|
36442
|
+
/* @__PURE__ */ jsxs51(
|
|
36379
36443
|
"aside",
|
|
36380
36444
|
{
|
|
36381
36445
|
className: `${AgentGUINode_styles_default.providerRailPanel} nodrag tsh-desktop-no-drag`,
|
|
@@ -36383,7 +36447,7 @@ function AgentGUINodeView({
|
|
|
36383
36447
|
"aria-hidden": conversationRailCollapsed ? "true" : void 0,
|
|
36384
36448
|
inert: conversationRailCollapsed ? true : void 0,
|
|
36385
36449
|
children: [
|
|
36386
|
-
/* @__PURE__ */
|
|
36450
|
+
/* @__PURE__ */ jsx72(
|
|
36387
36451
|
AgentGUIProviderRail,
|
|
36388
36452
|
{
|
|
36389
36453
|
activeConversation: viewModel.rail.activeConversation,
|
|
@@ -36407,7 +36471,7 @@ function AgentGUINodeView({
|
|
|
36407
36471
|
onRequestComposerFocus: requestComposerFocus
|
|
36408
36472
|
}
|
|
36409
36473
|
),
|
|
36410
|
-
renderSidebarFooter ? /* @__PURE__ */
|
|
36474
|
+
renderSidebarFooter ? /* @__PURE__ */ jsx72(
|
|
36411
36475
|
"div",
|
|
36412
36476
|
{
|
|
36413
36477
|
className: `${AgentGUINode_styles_default.providerRailFooter} ${AgentGUINode_styles_default.providerRailSidebarFooter} nodrag tsh-desktop-no-drag`,
|
|
@@ -36418,12 +36482,12 @@ function AgentGUINodeView({
|
|
|
36418
36482
|
})
|
|
36419
36483
|
}
|
|
36420
36484
|
) : null,
|
|
36421
|
-
shouldShowProviderRailConfigButton ? /* @__PURE__ */
|
|
36485
|
+
shouldShowProviderRailConfigButton ? /* @__PURE__ */ jsx72(
|
|
36422
36486
|
"div",
|
|
36423
36487
|
{
|
|
36424
36488
|
className: `${AgentGUINode_styles_default.providerRailFooter} ${AgentGUINode_styles_default.providerRailConfigFooter} nodrag tsh-desktop-no-drag`,
|
|
36425
36489
|
"data-testid": "agent-gui-config-footer",
|
|
36426
|
-
children: /* @__PURE__ */
|
|
36490
|
+
children: /* @__PURE__ */ jsx72(
|
|
36427
36491
|
AgentGUIConfigMenu,
|
|
36428
36492
|
{
|
|
36429
36493
|
environmentSetupVisible,
|
|
@@ -36449,14 +36513,14 @@ function AgentGUINodeView({
|
|
|
36449
36513
|
]
|
|
36450
36514
|
}
|
|
36451
36515
|
),
|
|
36452
|
-
/* @__PURE__ */
|
|
36516
|
+
/* @__PURE__ */ jsx72(
|
|
36453
36517
|
"aside",
|
|
36454
36518
|
{
|
|
36455
36519
|
id: "agent-gui-conversation-rail",
|
|
36456
36520
|
className: `${AgentGUINode_styles_default.railPanel}${conversationRailCollapsed ? ` ${AgentGUINode_styles_default.railPanelCollapsed}` : ""}`,
|
|
36457
36521
|
"aria-hidden": conversationRailCollapsed ? "true" : void 0,
|
|
36458
36522
|
inert: conversationRailCollapsed ? true : void 0,
|
|
36459
|
-
children: /* @__PURE__ */
|
|
36523
|
+
children: /* @__PURE__ */ jsx72(
|
|
36460
36524
|
AgentGUIConversationRailController,
|
|
36461
36525
|
{
|
|
36462
36526
|
...conversationRailStoreState,
|
|
@@ -36464,7 +36528,7 @@ function AgentGUINodeView({
|
|
|
36464
36528
|
registerInteractionLockProbe: registerRailInteractionLockProbe,
|
|
36465
36529
|
userProjects: viewModel.rail.userProjects,
|
|
36466
36530
|
workspaceId: viewModel.shell.workspaceId,
|
|
36467
|
-
footer: accountMenuState?.user ? /* @__PURE__ */
|
|
36531
|
+
footer: accountMenuState?.user ? /* @__PURE__ */ jsx72(
|
|
36468
36532
|
AgentGUIAccountRailMenu,
|
|
36469
36533
|
{
|
|
36470
36534
|
accountMenuState,
|
|
@@ -36476,7 +36540,7 @@ function AgentGUINodeView({
|
|
|
36476
36540
|
)
|
|
36477
36541
|
}
|
|
36478
36542
|
),
|
|
36479
|
-
/* @__PURE__ */
|
|
36543
|
+
/* @__PURE__ */ jsx72(
|
|
36480
36544
|
"div",
|
|
36481
36545
|
{
|
|
36482
36546
|
id: "agent-gui-conversation-rail-resize",
|
|
@@ -36500,7 +36564,7 @@ function AgentGUINodeView({
|
|
|
36500
36564
|
onPointerUp: endConversationRailResize
|
|
36501
36565
|
}
|
|
36502
36566
|
),
|
|
36503
|
-
/* @__PURE__ */
|
|
36567
|
+
/* @__PURE__ */ jsx72("section", { id: "agent-gui-detail", className: AgentGUINode_styles_default.detailPanel, children: /* @__PURE__ */ jsx72(
|
|
36504
36568
|
AgentGUIDetailPane,
|
|
36505
36569
|
{
|
|
36506
36570
|
viewModel,
|
|
@@ -36537,7 +36601,7 @@ function AgentGUINodeView({
|
|
|
36537
36601
|
]
|
|
36538
36602
|
}
|
|
36539
36603
|
),
|
|
36540
|
-
/* @__PURE__ */
|
|
36604
|
+
/* @__PURE__ */ jsx72(
|
|
36541
36605
|
AgentGUIReferencePickerSurface,
|
|
36542
36606
|
{
|
|
36543
36607
|
aggregator: referenceSourceAggregator,
|
|
@@ -36556,7 +36620,7 @@ function AgentGUINodeView({
|
|
|
36556
36620
|
onConfirmBundles: confirmWorkspaceReferenceBundles
|
|
36557
36621
|
}
|
|
36558
36622
|
),
|
|
36559
|
-
/* @__PURE__ */
|
|
36623
|
+
/* @__PURE__ */ jsx72(
|
|
36560
36624
|
AgentGUIRenameConversationDialog,
|
|
36561
36625
|
{
|
|
36562
36626
|
conversation: renameConversationTarget,
|
|
@@ -36574,7 +36638,7 @@ function AgentGUINodeView({
|
|
|
36574
36638
|
]
|
|
36575
36639
|
}
|
|
36576
36640
|
) });
|
|
36577
|
-
return previewMode ? content : /* @__PURE__ */
|
|
36641
|
+
return previewMode ? content : /* @__PURE__ */ jsx72(TooltipProvider5, { children: content });
|
|
36578
36642
|
}
|
|
36579
36643
|
|
|
36580
36644
|
// agent-gui/workspaceDesktop/view/desktopDockAgentProbeTooltipModel.ts
|
|
@@ -36752,10 +36816,10 @@ import {
|
|
|
36752
36816
|
useEffect as useEffect39,
|
|
36753
36817
|
useLayoutEffect as useLayoutEffect9,
|
|
36754
36818
|
useRef as useRef50,
|
|
36755
|
-
useState as
|
|
36819
|
+
useState as useState42
|
|
36756
36820
|
} from "react";
|
|
36757
36821
|
import { createPortal as createPortal5 } from "react-dom";
|
|
36758
|
-
import { Fragment as Fragment21, jsx as
|
|
36822
|
+
import { Fragment as Fragment21, jsx as jsx73, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
36759
36823
|
var POPOVER_MIN_VIEWPORT_INSET_PX = 16;
|
|
36760
36824
|
var POPOVER_DEFAULT_WIDTH_PX = 260;
|
|
36761
36825
|
function dockAgentProbeLineKey(line) {
|
|
@@ -36765,11 +36829,11 @@ function renderDockAgentProbeLine(line) {
|
|
|
36765
36829
|
if (typeof line === "string") {
|
|
36766
36830
|
return line;
|
|
36767
36831
|
}
|
|
36768
|
-
return /* @__PURE__ */
|
|
36832
|
+
return /* @__PURE__ */ jsxs52(Fragment21, { children: [
|
|
36769
36833
|
line.primary,
|
|
36770
|
-
line.secondary ? /* @__PURE__ */
|
|
36834
|
+
line.secondary ? /* @__PURE__ */ jsxs52(Fragment21, { children: [
|
|
36771
36835
|
" ",
|
|
36772
|
-
/* @__PURE__ */
|
|
36836
|
+
/* @__PURE__ */ jsx73("span", { className: "desktop-dock-popup__agent-status-secondary", children: line.secondary })
|
|
36773
36837
|
] }) : null
|
|
36774
36838
|
] });
|
|
36775
36839
|
}
|
|
@@ -36791,8 +36855,8 @@ function AgentProbeInfoPopover({
|
|
|
36791
36855
|
"use memo";
|
|
36792
36856
|
const anchorRef = useRef50(null);
|
|
36793
36857
|
const popoverRef = useRef50(null);
|
|
36794
|
-
const [isOpen, setIsOpen] =
|
|
36795
|
-
const [popoverStyle, setPopoverStyle] =
|
|
36858
|
+
const [isOpen, setIsOpen] = useState42(false);
|
|
36859
|
+
const [popoverStyle, setPopoverStyle] = useState42(null);
|
|
36796
36860
|
const openPopover = useCallback59(() => {
|
|
36797
36861
|
if (!isOpen) {
|
|
36798
36862
|
onOpen?.();
|
|
@@ -36853,7 +36917,7 @@ function AgentProbeInfoPopover({
|
|
|
36853
36917
|
if (lines.length === 0) {
|
|
36854
36918
|
return null;
|
|
36855
36919
|
}
|
|
36856
|
-
const popover = /* @__PURE__ */
|
|
36920
|
+
const popover = /* @__PURE__ */ jsx73(
|
|
36857
36921
|
"div",
|
|
36858
36922
|
{
|
|
36859
36923
|
ref: popoverRef,
|
|
@@ -36862,17 +36926,17 @@ function AgentProbeInfoPopover({
|
|
|
36862
36926
|
style: popoverStyle ?? void 0,
|
|
36863
36927
|
onMouseEnter: openPopover,
|
|
36864
36928
|
onMouseLeave: closeIfPointerLeavesPopover,
|
|
36865
|
-
children: /* @__PURE__ */
|
|
36929
|
+
children: /* @__PURE__ */ jsx73("ul", { className: "desktop-dock-popup__agent-info-list", children: lines.map((line) => {
|
|
36866
36930
|
const label = getDockAgentProbeLineLabel(line);
|
|
36867
36931
|
const valueText = formatDockAgentProbeLineText(line);
|
|
36868
|
-
return /* @__PURE__ */
|
|
36932
|
+
return /* @__PURE__ */ jsxs52(
|
|
36869
36933
|
"li",
|
|
36870
36934
|
{
|
|
36871
36935
|
className: "desktop-dock-popup__agent-info-item",
|
|
36872
36936
|
"data-has-label": label ? "true" : "false",
|
|
36873
36937
|
children: [
|
|
36874
|
-
label ? /* @__PURE__ */
|
|
36875
|
-
/* @__PURE__ */
|
|
36938
|
+
label ? /* @__PURE__ */ jsx73("span", { className: "desktop-dock-popup__agent-info-label", children: label }) : null,
|
|
36939
|
+
/* @__PURE__ */ jsx73(
|
|
36876
36940
|
"span",
|
|
36877
36941
|
{
|
|
36878
36942
|
className: "desktop-dock-popup__agent-info-value",
|
|
@@ -36887,7 +36951,7 @@ function AgentProbeInfoPopover({
|
|
|
36887
36951
|
}) })
|
|
36888
36952
|
}
|
|
36889
36953
|
);
|
|
36890
|
-
return /* @__PURE__ */
|
|
36954
|
+
return /* @__PURE__ */ jsxs52(
|
|
36891
36955
|
"div",
|
|
36892
36956
|
{
|
|
36893
36957
|
ref: anchorRef,
|
|
@@ -36907,7 +36971,7 @@ function AgentProbeInfoPopover({
|
|
|
36907
36971
|
},
|
|
36908
36972
|
onBlur: () => setIsOpen(false),
|
|
36909
36973
|
children: [
|
|
36910
|
-
/* @__PURE__ */
|
|
36974
|
+
/* @__PURE__ */ jsx73(Info2, { size: 15, strokeWidth: 2.1, "aria-hidden": "true" }),
|
|
36911
36975
|
isOpen ? createPortal5(popover, document.body) : null
|
|
36912
36976
|
]
|
|
36913
36977
|
}
|
|
@@ -37043,7 +37107,7 @@ function composeAgentGUIMentionService(input) {
|
|
|
37043
37107
|
}
|
|
37044
37108
|
|
|
37045
37109
|
// agent-gui/agentGuiNode/AgentGUIMentionServiceBoundary.tsx
|
|
37046
|
-
import { jsx as
|
|
37110
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
|
37047
37111
|
function AgentGUIMentionServiceBoundary({
|
|
37048
37112
|
children,
|
|
37049
37113
|
service
|
|
@@ -37059,7 +37123,7 @@ function AgentGUIMentionServiceBoundary({
|
|
|
37059
37123
|
if (!effectiveService || effectiveService === inheritedService) {
|
|
37060
37124
|
return children;
|
|
37061
37125
|
}
|
|
37062
|
-
return /* @__PURE__ */
|
|
37126
|
+
return /* @__PURE__ */ jsx74(RichTextMentionServiceProvider, { service: effectiveService, children });
|
|
37063
37127
|
}
|
|
37064
37128
|
|
|
37065
37129
|
// agent-gui/agentGuiNode/AgentGUINode.labels.ts
|
|
@@ -38026,7 +38090,7 @@ function resolveAgentGUIRailStatusProvider(input) {
|
|
|
38026
38090
|
}
|
|
38027
38091
|
|
|
38028
38092
|
// agent-gui/agentGuiNode/AgentGUINode.tsx
|
|
38029
|
-
import { jsx as
|
|
38093
|
+
import { jsx as jsx75, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
38030
38094
|
var EMPTY_SLASH_STATUS_QUOTAS = [];
|
|
38031
38095
|
var DISABLED_REFERENCE_PROVENANCE_CATALOG = {
|
|
38032
38096
|
enabledDimensions: [],
|
|
@@ -38440,7 +38504,7 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
38440
38504
|
previewMode,
|
|
38441
38505
|
railStatusProvider
|
|
38442
38506
|
]);
|
|
38443
|
-
return /* @__PURE__ */
|
|
38507
|
+
return /* @__PURE__ */ jsx75(AgentGUIMentionServiceBoundary, { service: mentionService, children: /* @__PURE__ */ jsx75(
|
|
38444
38508
|
WorkspaceNodeWindow,
|
|
38445
38509
|
{
|
|
38446
38510
|
nodeId,
|
|
@@ -38456,8 +38520,8 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
38456
38520
|
className: "size-full bg-transparent",
|
|
38457
38521
|
bodyClassName: `${AgentGUINode_styles_default.shell} nodrag size-full min-h-0 min-w-0 !bg-transparent p-0`,
|
|
38458
38522
|
hideHeader: embedded,
|
|
38459
|
-
titleAccessory: /* @__PURE__ */
|
|
38460
|
-
/* @__PURE__ */
|
|
38523
|
+
titleAccessory: /* @__PURE__ */ jsxs53("span", { className: "inline-flex flex-none items-center gap-1", children: [
|
|
38524
|
+
/* @__PURE__ */ jsx75(
|
|
38461
38525
|
AgentProbeInfoPopover,
|
|
38462
38526
|
{
|
|
38463
38527
|
lines: agentProbeLines,
|
|
@@ -38466,7 +38530,7 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
38466
38530
|
onOpen: handleAgentProbeInfoOpen
|
|
38467
38531
|
}
|
|
38468
38532
|
),
|
|
38469
|
-
/* @__PURE__ */
|
|
38533
|
+
/* @__PURE__ */ jsx75(
|
|
38470
38534
|
CanvasNodeGhostIconButton,
|
|
38471
38535
|
{
|
|
38472
38536
|
"aria-label": isConversationRailCollapsed ? t("agentHost.agentGui.expandConversationRail") : t("agentHost.agentGui.collapseConversationRail"),
|
|
@@ -38478,7 +38542,7 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
38478
38542
|
event.stopPropagation();
|
|
38479
38543
|
handleConversationRailToggle();
|
|
38480
38544
|
},
|
|
38481
|
-
children: /* @__PURE__ */
|
|
38545
|
+
children: /* @__PURE__ */ jsx75(
|
|
38482
38546
|
CanvasNodePanelLinedIcon,
|
|
38483
38547
|
{
|
|
38484
38548
|
width: 18,
|
|
@@ -38502,7 +38566,7 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
38502
38566
|
renderedWidth,
|
|
38503
38567
|
railAutoCollapseWidthPx
|
|
38504
38568
|
);
|
|
38505
|
-
return /* @__PURE__ */
|
|
38569
|
+
return /* @__PURE__ */ jsx75(
|
|
38506
38570
|
AgentGUINodeView,
|
|
38507
38571
|
{
|
|
38508
38572
|
viewModel,
|
|
@@ -38575,7 +38639,7 @@ var AgentGUINode = memo14(function AgentGUINode2({
|
|
|
38575
38639
|
}, areAgentGUINodePropsEqual);
|
|
38576
38640
|
|
|
38577
38641
|
// AgentGUI.tsx
|
|
38578
|
-
import { jsx as
|
|
38642
|
+
import { jsx as jsx76 } from "react/jsx-runtime";
|
|
38579
38643
|
var AgentGUI = memo15(function AgentGUI2({
|
|
38580
38644
|
agentActivityRuntime,
|
|
38581
38645
|
agentHostApi,
|
|
@@ -38593,7 +38657,7 @@ var AgentGUI = memo15(function AgentGUI2({
|
|
|
38593
38657
|
[agentDirectory.agents]
|
|
38594
38658
|
);
|
|
38595
38659
|
const agentTargets = useMemo45(
|
|
38596
|
-
() =>
|
|
38660
|
+
() => projectAgentGUIAgentsToTargets(normalizedAgents),
|
|
38597
38661
|
[normalizedAgents]
|
|
38598
38662
|
);
|
|
38599
38663
|
const effectiveHandoffAgentDirectory = handoffAgentDirectory ?? agentDirectory;
|
|
@@ -38606,7 +38670,7 @@ var AgentGUI = memo15(function AgentGUI2({
|
|
|
38606
38670
|
]
|
|
38607
38671
|
);
|
|
38608
38672
|
const handoffAgentTargets = useMemo45(
|
|
38609
|
-
() => normalizedHandoffAgents === normalizedAgents ? agentTargets :
|
|
38673
|
+
() => normalizedHandoffAgents === normalizedAgents ? agentTargets : projectAgentGUIAgentsToTargets(normalizedHandoffAgents),
|
|
38610
38674
|
[agentTargets, normalizedAgents, normalizedHandoffAgents]
|
|
38611
38675
|
);
|
|
38612
38676
|
const hostCapabilities = props.hostCapabilities;
|
|
@@ -38646,15 +38710,15 @@ var AgentGUI = memo15(function AgentGUI2({
|
|
|
38646
38710
|
hostCapabilities: nodeHostCapabilities,
|
|
38647
38711
|
renderSlots: nodeRenderSlots
|
|
38648
38712
|
};
|
|
38649
|
-
const content = /* @__PURE__ */
|
|
38713
|
+
const content = /* @__PURE__ */ jsx76(AgentGuiI18nProvider, { runtime: i18n, locale, children: /* @__PURE__ */ jsx76(
|
|
38650
38714
|
AgentActivityHostProvider,
|
|
38651
38715
|
{
|
|
38652
38716
|
agentActivityRuntime,
|
|
38653
38717
|
agentHostApi,
|
|
38654
|
-
children: /* @__PURE__ */
|
|
38718
|
+
children: /* @__PURE__ */ jsx76(AgentGUINode, { ...nodeProps })
|
|
38655
38719
|
}
|
|
38656
38720
|
) });
|
|
38657
|
-
return props.frame.previewMode ? content : /* @__PURE__ */
|
|
38721
|
+
return props.frame.previewMode ? content : /* @__PURE__ */ jsx76(TooltipProvider6, { delayDuration: 120, skipDelayDuration: 0, children: content });
|
|
38658
38722
|
});
|
|
38659
38723
|
|
|
38660
38724
|
export {
|
|
@@ -38665,6 +38729,7 @@ export {
|
|
|
38665
38729
|
localAgentGUIAgentTargetId,
|
|
38666
38730
|
normalizeAgentGUIAgentTargets,
|
|
38667
38731
|
resolveAgentGUIAgentTarget,
|
|
38732
|
+
AgentHandoffMenu,
|
|
38668
38733
|
AgentGUI
|
|
38669
38734
|
};
|
|
38670
|
-
//# sourceMappingURL=chunk-
|
|
38735
|
+
//# sourceMappingURL=chunk-Z2J3NPPX.js.map
|