@tutti-os/agent-gui 0.0.204 → 0.0.206
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 +12 -0
- package/dist/{AgentRichTextReadonly-YU6STDUX.js → AgentRichTextReadonly-DFWY2WYO.js} +5 -5
- package/dist/agent-conversation/index.js +8 -8
- package/dist/agent-env/index.d.ts +8 -1
- package/dist/agent-env/index.js +1 -1
- package/dist/agent-gui.d.ts +13 -0
- package/dist/agent-gui.js +16 -16
- package/dist/agent-message-center/index.js +6 -6
- package/dist/agents.js +1 -1
- package/dist/{chunk-CX6XXG6R.js → chunk-3MVSOLX3.js} +2 -2
- package/dist/chunk-3MVSOLX3.js.map +1 -0
- package/dist/{chunk-JXFOFJYI.js → chunk-5RZVXSQQ.js} +2 -2
- package/dist/{chunk-VDTG6M6K.js → chunk-6LXC5BME.js} +4 -4
- package/dist/{chunk-GJZEMI6Z.js → chunk-CCFYCSBK.js} +551 -538
- package/dist/chunk-CCFYCSBK.js.map +1 -0
- package/dist/{chunk-UEBPMWKS.js → chunk-CKUR2VKA.js} +2 -2
- package/dist/{chunk-X5V6P2EB.js → chunk-DKRX5IZS.js} +4 -4
- package/dist/{chunk-K5AOJ5DO.js → chunk-FWR5BZYR.js} +2 -2
- package/dist/{chunk-XD5NTTFJ.js → chunk-HXAOFFZJ.js} +2 -2
- package/dist/{chunk-4OJSSUEU.js → chunk-JRYR2EA5.js} +4 -4
- package/dist/{chunk-CXC3ROXQ.js → chunk-JZ6KUUDY.js} +34 -17
- package/dist/chunk-JZ6KUUDY.js.map +1 -0
- package/dist/{chunk-RJMCV7OR.js → chunk-M2VRYG7U.js} +18 -6
- package/dist/chunk-M2VRYG7U.js.map +1 -0
- package/dist/{chunk-FHCARLIO.js → chunk-RAO2PI3T.js} +4 -4
- package/dist/{chunk-STOGLKFA.js → chunk-RTKIOE4R.js} +1594 -1543
- package/dist/chunk-RTKIOE4R.js.map +1 -0
- package/dist/{chunk-EOGTJQID.js → chunk-THRBLO2B.js} +2 -2
- package/dist/{chunk-GWKXYGUN.js → chunk-V2MU37VN.js} +2 -2
- package/dist/{chunk-ZTRTBLLP.js → chunk-VGPFDVSK.js} +3 -3
- package/dist/context-mention-palette/index.js +7 -7
- package/dist/i18n/index.d.ts +17 -5
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +551 -9
- package/dist/index.js +24 -16
- package/dist/index.js.map +1 -1
- package/dist/mention-search.js +5 -5
- package/dist/workbench/contribution.js +4 -4
- package/dist/workbench/index.js +4 -4
- package/dist/workbench/sessionTitle.js +2 -2
- package/package.json +16 -16
- package/dist/chunk-CX6XXG6R.js.map +0 -1
- package/dist/chunk-CXC3ROXQ.js.map +0 -1
- package/dist/chunk-GJZEMI6Z.js.map +0 -1
- package/dist/chunk-RJMCV7OR.js.map +0 -1
- package/dist/chunk-STOGLKFA.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-YU6STDUX.js.map → AgentRichTextReadonly-DFWY2WYO.js.map} +0 -0
- /package/dist/{chunk-JXFOFJYI.js.map → chunk-5RZVXSQQ.js.map} +0 -0
- /package/dist/{chunk-VDTG6M6K.js.map → chunk-6LXC5BME.js.map} +0 -0
- /package/dist/{chunk-UEBPMWKS.js.map → chunk-CKUR2VKA.js.map} +0 -0
- /package/dist/{chunk-X5V6P2EB.js.map → chunk-DKRX5IZS.js.map} +0 -0
- /package/dist/{chunk-K5AOJ5DO.js.map → chunk-FWR5BZYR.js.map} +0 -0
- /package/dist/{chunk-XD5NTTFJ.js.map → chunk-HXAOFFZJ.js.map} +0 -0
- /package/dist/{chunk-4OJSSUEU.js.map → chunk-JRYR2EA5.js.map} +0 -0
- /package/dist/{chunk-FHCARLIO.js.map → chunk-RAO2PI3T.js.map} +0 -0
- /package/dist/{chunk-EOGTJQID.js.map → chunk-THRBLO2B.js.map} +0 -0
- /package/dist/{chunk-GWKXYGUN.js.map → chunk-V2MU37VN.js.map} +0 -0
- /package/dist/{chunk-ZTRTBLLP.js.map → chunk-VGPFDVSK.js.map} +0 -0
|
@@ -2,13 +2,12 @@ import {
|
|
|
2
2
|
AgentRichTextReadonly,
|
|
3
3
|
promptForProviderSkills,
|
|
4
4
|
skillTriggerForPrefix
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HXAOFFZJ.js";
|
|
6
6
|
import {
|
|
7
7
|
classifyRecoverableAgentMessage,
|
|
8
|
-
isProviderPlanLimitMessage,
|
|
9
8
|
resolveAgentErrorPresentation,
|
|
10
9
|
useOpenAgentEnvPanel
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JZ6KUUDY.js";
|
|
12
11
|
import {
|
|
13
12
|
isWorkspaceAgentSyntheticControlMessage
|
|
14
13
|
} from "./chunk-XJ34OIEQ.js";
|
|
@@ -27,7 +26,7 @@ import {
|
|
|
27
26
|
agentPromptFileBlocks,
|
|
28
27
|
agentPromptPastedTextBlocks,
|
|
29
28
|
materializeAgentComposerFileMentions
|
|
30
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5RZVXSQQ.js";
|
|
31
30
|
import {
|
|
32
31
|
AGENT_PASTED_TEXT_BLOCK_KIND,
|
|
33
32
|
AGENT_PASTED_TEXT_MENTION_KIND
|
|
@@ -47,7 +46,7 @@ import {
|
|
|
47
46
|
resolveWorkspaceFileLinkAction,
|
|
48
47
|
resolveWorkspaceFilePathCandidate,
|
|
49
48
|
resolveWorkspaceLinkAction
|
|
50
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-VGPFDVSK.js";
|
|
51
50
|
import {
|
|
52
51
|
cn
|
|
53
52
|
} from "./chunk-ZVYUTXQJ.js";
|
|
@@ -55,7 +54,7 @@ import {
|
|
|
55
54
|
useOptionalAgentActivityRuntime,
|
|
56
55
|
useOptionalAgentHostApi,
|
|
57
56
|
workspaceAgentProviderLabel
|
|
58
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-FWR5BZYR.js";
|
|
59
58
|
import {
|
|
60
59
|
fileChangeCountFromChanges,
|
|
61
60
|
fileChangeEntriesFromChanges,
|
|
@@ -65,7 +64,7 @@ import {
|
|
|
65
64
|
getActiveUiLanguage,
|
|
66
65
|
translate,
|
|
67
66
|
useTranslation
|
|
68
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-THRBLO2B.js";
|
|
69
68
|
import {
|
|
70
69
|
normalizeAgentTitleText
|
|
71
70
|
} from "./chunk-MIJXEELH.js";
|
|
@@ -5583,6 +5582,23 @@ function AgentTranscriptSkeleton({
|
|
|
5583
5582
|
);
|
|
5584
5583
|
}
|
|
5585
5584
|
|
|
5585
|
+
// shared/commerce/AgentCommercePresentationContext.tsx
|
|
5586
|
+
import {
|
|
5587
|
+
createContext,
|
|
5588
|
+
useContext
|
|
5589
|
+
} from "react";
|
|
5590
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
5591
|
+
var AgentCommercePresentationContext = createContext(null);
|
|
5592
|
+
function AgentCommercePresentationProvider({
|
|
5593
|
+
children,
|
|
5594
|
+
value
|
|
5595
|
+
}) {
|
|
5596
|
+
return /* @__PURE__ */ jsx2(AgentCommercePresentationContext.Provider, { value: value ?? null, children });
|
|
5597
|
+
}
|
|
5598
|
+
function useAgentCommercePresentation() {
|
|
5599
|
+
return useContext(AgentCommercePresentationContext);
|
|
5600
|
+
}
|
|
5601
|
+
|
|
5586
5602
|
// shared/agentConversation/components/AgentTranscriptView.tsx
|
|
5587
5603
|
import {
|
|
5588
5604
|
Fragment as Fragment7,
|
|
@@ -5616,7 +5632,7 @@ function resolveAgentConversationLinkAction({
|
|
|
5616
5632
|
// shared/agentConversation/components/AgentGeneratedImagePreview.tsx
|
|
5617
5633
|
import { useEffect, useState } from "react";
|
|
5618
5634
|
import { resolveWorkspaceImageMimeType } from "@tutti-os/workspace-file-preview";
|
|
5619
|
-
import { jsx as
|
|
5635
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
5620
5636
|
function AgentGeneratedImagePreview({
|
|
5621
5637
|
uri,
|
|
5622
5638
|
mimeType,
|
|
@@ -5675,7 +5691,7 @@ function AgentGeneratedImagePreview({
|
|
|
5675
5691
|
if (!src) {
|
|
5676
5692
|
return null;
|
|
5677
5693
|
}
|
|
5678
|
-
return /* @__PURE__ */
|
|
5694
|
+
return /* @__PURE__ */ jsx3(
|
|
5679
5695
|
ZoomableImage,
|
|
5680
5696
|
{
|
|
5681
5697
|
alt,
|
|
@@ -5688,17 +5704,17 @@ function AgentGeneratedImagePreview({
|
|
|
5688
5704
|
}
|
|
5689
5705
|
|
|
5690
5706
|
// shared/agentConversation/components/AgentGeneratedImageRow.tsx
|
|
5691
|
-
import { jsx as
|
|
5707
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
5692
5708
|
function AgentGeneratedImageRow({
|
|
5693
5709
|
row
|
|
5694
5710
|
}) {
|
|
5695
5711
|
"use memo";
|
|
5696
|
-
return /* @__PURE__ */
|
|
5712
|
+
return /* @__PURE__ */ jsx4(
|
|
5697
5713
|
"div",
|
|
5698
5714
|
{
|
|
5699
5715
|
className: "flex max-w-full justify-start",
|
|
5700
5716
|
"data-testid": "agent-generated-image-artifact",
|
|
5701
|
-
children: /* @__PURE__ */
|
|
5717
|
+
children: /* @__PURE__ */ jsx4(
|
|
5702
5718
|
AgentGeneratedImagePreview,
|
|
5703
5719
|
{
|
|
5704
5720
|
uri: row.uri,
|
|
@@ -5712,19 +5728,19 @@ function AgentGeneratedImageRow({
|
|
|
5712
5728
|
}
|
|
5713
5729
|
|
|
5714
5730
|
// shared/agentConversation/components/AgentGoalControlRow.tsx
|
|
5715
|
-
import { jsx as
|
|
5731
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
5716
5732
|
function AgentGoalControlRow({
|
|
5717
5733
|
row,
|
|
5718
5734
|
availableSkills,
|
|
5719
5735
|
workspaceAppIcons
|
|
5720
5736
|
}) {
|
|
5721
5737
|
"use memo";
|
|
5722
|
-
return /* @__PURE__ */
|
|
5738
|
+
return /* @__PURE__ */ jsx5(
|
|
5723
5739
|
"div",
|
|
5724
5740
|
{
|
|
5725
5741
|
className: AgentGUIConversation_styles_default.userMessageFlow,
|
|
5726
5742
|
"data-agent-goal-control-action": row.action,
|
|
5727
|
-
children: /* @__PURE__ */
|
|
5743
|
+
children: /* @__PURE__ */ jsx5(
|
|
5728
5744
|
AgentRichTextReadonly,
|
|
5729
5745
|
{
|
|
5730
5746
|
value: row.body,
|
|
@@ -5931,7 +5947,7 @@ function formatAgentMessageTimestamp(unix, language = getActiveUiLanguage(), now
|
|
|
5931
5947
|
// shared/agentConversation/components/AgentPlanCard.tsx
|
|
5932
5948
|
import { useCallback, useRef, useState as useState2 } from "react";
|
|
5933
5949
|
import { Check, ChevronDown, ChevronUp, Copy, ListChecks } from "lucide-react";
|
|
5934
|
-
import { jsx as
|
|
5950
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
5935
5951
|
var COLLAPSED_MAX_HEIGHT_PX = 220;
|
|
5936
5952
|
function AgentPlanCard({
|
|
5937
5953
|
title,
|
|
@@ -5960,7 +5976,7 @@ function AgentPlanCard({
|
|
|
5960
5976
|
className: "box-border w-full min-w-0 rounded-[8px] border border-[var(--tutti-purple-border)] bg-[var(--tutti-purple-bg)] p-3",
|
|
5961
5977
|
children: [
|
|
5962
5978
|
/* @__PURE__ */ jsxs2("div", { className: "mb-2 flex items-center gap-1.5", children: [
|
|
5963
|
-
/* @__PURE__ */
|
|
5979
|
+
/* @__PURE__ */ jsx6(
|
|
5964
5980
|
ListChecks,
|
|
5965
5981
|
{
|
|
5966
5982
|
size: 14,
|
|
@@ -5969,7 +5985,7 @@ function AgentPlanCard({
|
|
|
5969
5985
|
className: "shrink-0 text-[var(--text-secondary)]"
|
|
5970
5986
|
}
|
|
5971
5987
|
),
|
|
5972
|
-
/* @__PURE__ */
|
|
5988
|
+
/* @__PURE__ */ jsx6(
|
|
5973
5989
|
"span",
|
|
5974
5990
|
{
|
|
5975
5991
|
"data-testid": "agent-plan-card-title",
|
|
@@ -5977,7 +5993,7 @@ function AgentPlanCard({
|
|
|
5977
5993
|
children: title ?? translate("agentHost.agentGui.planCardTitle")
|
|
5978
5994
|
}
|
|
5979
5995
|
),
|
|
5980
|
-
/* @__PURE__ */
|
|
5996
|
+
/* @__PURE__ */ jsx6(
|
|
5981
5997
|
"button",
|
|
5982
5998
|
{
|
|
5983
5999
|
type: "button",
|
|
@@ -5986,10 +6002,10 @@ function AgentPlanCard({
|
|
|
5986
6002
|
"aria-label": translate("agentHost.agentGui.planCardCopy"),
|
|
5987
6003
|
title: translate("agentHost.agentGui.planCardCopy"),
|
|
5988
6004
|
onClick: handleCopy,
|
|
5989
|
-
children: copied ? /* @__PURE__ */
|
|
6005
|
+
children: copied ? /* @__PURE__ */ jsx6(Check, { size: 14, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ jsx6(Copy, { size: 14, strokeWidth: 2, "aria-hidden": "true" })
|
|
5990
6006
|
}
|
|
5991
6007
|
),
|
|
5992
|
-
/* @__PURE__ */
|
|
6008
|
+
/* @__PURE__ */ jsx6(
|
|
5993
6009
|
"button",
|
|
5994
6010
|
{
|
|
5995
6011
|
type: "button",
|
|
@@ -6003,12 +6019,12 @@ function AgentPlanCard({
|
|
|
6003
6019
|
collapsed ? "agentHost.agentGui.planCardExpand" : "agentHost.agentGui.planCardCollapse"
|
|
6004
6020
|
),
|
|
6005
6021
|
onClick: () => setCollapsed((value) => !value),
|
|
6006
|
-
children: collapsed ? /* @__PURE__ */
|
|
6022
|
+
children: collapsed ? /* @__PURE__ */ jsx6(ChevronDown, { size: 15, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ jsx6(ChevronUp, { size: 15, strokeWidth: 2, "aria-hidden": "true" })
|
|
6007
6023
|
}
|
|
6008
6024
|
)
|
|
6009
6025
|
] }),
|
|
6010
6026
|
/* @__PURE__ */ jsxs2("div", { className: "relative", children: [
|
|
6011
|
-
/* @__PURE__ */
|
|
6027
|
+
/* @__PURE__ */ jsx6(
|
|
6012
6028
|
"div",
|
|
6013
6029
|
{
|
|
6014
6030
|
"data-testid": "agent-plan-card-body",
|
|
@@ -6017,7 +6033,7 @@ function AgentPlanCard({
|
|
|
6017
6033
|
children
|
|
6018
6034
|
}
|
|
6019
6035
|
),
|
|
6020
|
-
collapsed ? /* @__PURE__ */
|
|
6036
|
+
collapsed ? /* @__PURE__ */ jsx6("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 flex justify-center bg-gradient-to-t from-[var(--tutti-purple-bg)] via-[color-mix(in_srgb,var(--tutti-purple-bg)_70%,transparent)] to-transparent pt-8 pb-1", children: /* @__PURE__ */ jsx6(
|
|
6021
6037
|
"button",
|
|
6022
6038
|
{
|
|
6023
6039
|
type: "button",
|
|
@@ -6045,7 +6061,7 @@ import {
|
|
|
6045
6061
|
Users
|
|
6046
6062
|
} from "lucide-react";
|
|
6047
6063
|
import { toast } from "@tutti-os/ui-system";
|
|
6048
|
-
import { jsx as
|
|
6064
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
6049
6065
|
function AgentCollaborationRow({
|
|
6050
6066
|
collaboration,
|
|
6051
6067
|
workspaceRoot,
|
|
@@ -6116,7 +6132,7 @@ function AgentCollaborationRow({
|
|
|
6116
6132
|
children: [
|
|
6117
6133
|
/* @__PURE__ */ jsxs3("div", { className: "flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1", children: [
|
|
6118
6134
|
/* @__PURE__ */ jsxs3("span", { className: "inline-flex min-w-0 items-center gap-1.5 font-medium", children: [
|
|
6119
|
-
/* @__PURE__ */
|
|
6135
|
+
/* @__PURE__ */ jsx7(
|
|
6120
6136
|
ModeIcon,
|
|
6121
6137
|
{
|
|
6122
6138
|
size: 14,
|
|
@@ -6125,9 +6141,9 @@ function AgentCollaborationRow({
|
|
|
6125
6141
|
className: "shrink-0 text-[var(--text-secondary)]"
|
|
6126
6142
|
}
|
|
6127
6143
|
),
|
|
6128
|
-
/* @__PURE__ */
|
|
6144
|
+
/* @__PURE__ */ jsx7("span", { className: "truncate", children: collaborationModeLabel(collaboration.mode) })
|
|
6129
6145
|
] }),
|
|
6130
|
-
/* @__PURE__ */
|
|
6146
|
+
/* @__PURE__ */ jsx7(
|
|
6131
6147
|
"span",
|
|
6132
6148
|
{
|
|
6133
6149
|
"data-testid": "agent-collaboration-trigger",
|
|
@@ -6149,7 +6165,7 @@ function AgentCollaborationRow({
|
|
|
6149
6165
|
]
|
|
6150
6166
|
}
|
|
6151
6167
|
) : null,
|
|
6152
|
-
/* @__PURE__ */
|
|
6168
|
+
/* @__PURE__ */ jsx7("span", { className: "min-w-0 flex-1" }),
|
|
6153
6169
|
/* @__PURE__ */ jsxs3(
|
|
6154
6170
|
"span",
|
|
6155
6171
|
{
|
|
@@ -6157,7 +6173,7 @@ function AgentCollaborationRow({
|
|
|
6157
6173
|
"data-status": collaboration.status,
|
|
6158
6174
|
className: `inline-flex shrink-0 items-center gap-1 rounded-full px-2 text-[11px] leading-[18px] ${collaborationStatusClassName(collaboration.status)}`,
|
|
6159
6175
|
children: [
|
|
6160
|
-
collaboration.status === "running" ? /* @__PURE__ */
|
|
6176
|
+
collaboration.status === "running" ? /* @__PURE__ */ jsx7(
|
|
6161
6177
|
LoaderCircle,
|
|
6162
6178
|
{
|
|
6163
6179
|
size: 11,
|
|
@@ -6172,7 +6188,7 @@ function AgentCollaborationRow({
|
|
|
6172
6188
|
}
|
|
6173
6189
|
)
|
|
6174
6190
|
] }),
|
|
6175
|
-
collaboration.usage ? /* @__PURE__ */
|
|
6191
|
+
collaboration.usage ? /* @__PURE__ */ jsx7(
|
|
6176
6192
|
"div",
|
|
6177
6193
|
{
|
|
6178
6194
|
"data-testid": "agent-collaboration-usage",
|
|
@@ -6183,7 +6199,7 @@ function AgentCollaborationRow({
|
|
|
6183
6199
|
})
|
|
6184
6200
|
}
|
|
6185
6201
|
) : null,
|
|
6186
|
-
collaboration.failureReason ? /* @__PURE__ */
|
|
6202
|
+
collaboration.failureReason ? /* @__PURE__ */ jsx7(
|
|
6187
6203
|
"div",
|
|
6188
6204
|
{
|
|
6189
6205
|
"data-testid": "agent-collaboration-failure",
|
|
@@ -6206,16 +6222,16 @@ function AgentCollaborationRow({
|
|
|
6206
6222
|
translate(
|
|
6207
6223
|
resultExpanded ? "agentHost.agentGui.collaborationResultHide" : "agentHost.agentGui.collaborationResultShow"
|
|
6208
6224
|
),
|
|
6209
|
-
resultExpanded ? /* @__PURE__ */
|
|
6225
|
+
resultExpanded ? /* @__PURE__ */ jsx7(ChevronUp2, { size: 13, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ jsx7(ChevronDown2, { size: 13, strokeWidth: 2, "aria-hidden": "true" })
|
|
6210
6226
|
]
|
|
6211
6227
|
}
|
|
6212
6228
|
),
|
|
6213
|
-
resultExpanded ? /* @__PURE__ */
|
|
6229
|
+
resultExpanded ? /* @__PURE__ */ jsx7(
|
|
6214
6230
|
"div",
|
|
6215
6231
|
{
|
|
6216
6232
|
"data-testid": "agent-collaboration-result",
|
|
6217
6233
|
className: "mt-1.5 min-w-0",
|
|
6218
|
-
children: /* @__PURE__ */
|
|
6234
|
+
children: /* @__PURE__ */ jsx7(
|
|
6219
6235
|
AgentMessageMarkdown,
|
|
6220
6236
|
{
|
|
6221
6237
|
content: resultText,
|
|
@@ -6235,7 +6251,7 @@ function AgentCollaborationRow({
|
|
|
6235
6251
|
) : null
|
|
6236
6252
|
] }) : null,
|
|
6237
6253
|
showAdoptionControls && adoption === "pending" ? /* @__PURE__ */ jsxs3("div", { className: "mt-2 flex items-center gap-2", children: [
|
|
6238
|
-
/* @__PURE__ */
|
|
6254
|
+
/* @__PURE__ */ jsx7(
|
|
6239
6255
|
"button",
|
|
6240
6256
|
{
|
|
6241
6257
|
type: "button",
|
|
@@ -6246,7 +6262,7 @@ function AgentCollaborationRow({
|
|
|
6246
6262
|
children: translate("agentHost.agentGui.collaborationAdopt")
|
|
6247
6263
|
}
|
|
6248
6264
|
),
|
|
6249
|
-
/* @__PURE__ */
|
|
6265
|
+
/* @__PURE__ */ jsx7(
|
|
6250
6266
|
"button",
|
|
6251
6267
|
{
|
|
6252
6268
|
type: "button",
|
|
@@ -6258,7 +6274,7 @@ function AgentCollaborationRow({
|
|
|
6258
6274
|
}
|
|
6259
6275
|
)
|
|
6260
6276
|
] }) : null,
|
|
6261
|
-
adoption === "adopted" || adoption === "rejected" ? /* @__PURE__ */
|
|
6277
|
+
adoption === "adopted" || adoption === "rejected" ? /* @__PURE__ */ jsx7(
|
|
6262
6278
|
"div",
|
|
6263
6279
|
{
|
|
6264
6280
|
"data-testid": "agent-collaboration-adoption",
|
|
@@ -6357,7 +6373,7 @@ import {
|
|
|
6357
6373
|
useRef as useRef2,
|
|
6358
6374
|
useState as useState4
|
|
6359
6375
|
} from "react";
|
|
6360
|
-
import { jsx as
|
|
6376
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
6361
6377
|
function CollapsibleReveal({
|
|
6362
6378
|
expanded,
|
|
6363
6379
|
children,
|
|
@@ -6525,7 +6541,7 @@ function CollapsibleReveal({
|
|
|
6525
6541
|
}
|
|
6526
6542
|
};
|
|
6527
6543
|
const rootStyle = { height };
|
|
6528
|
-
return /* @__PURE__ */
|
|
6544
|
+
return /* @__PURE__ */ jsx8(
|
|
6529
6545
|
"div",
|
|
6530
6546
|
{
|
|
6531
6547
|
ref: setRootRef,
|
|
@@ -6534,7 +6550,7 @@ function CollapsibleReveal({
|
|
|
6534
6550
|
"aria-hidden": visible ? void 0 : true,
|
|
6535
6551
|
style: rootStyle,
|
|
6536
6552
|
onTransitionEnd: handleTransitionEnd,
|
|
6537
|
-
children: /* @__PURE__ */
|
|
6553
|
+
children: /* @__PURE__ */ jsx8(
|
|
6538
6554
|
"div",
|
|
6539
6555
|
{
|
|
6540
6556
|
ref: innerRef,
|
|
@@ -6547,7 +6563,7 @@ function CollapsibleReveal({
|
|
|
6547
6563
|
}
|
|
6548
6564
|
|
|
6549
6565
|
// shared/agentConversation/components/AgentMessageDetailsDisclosure.tsx
|
|
6550
|
-
import { jsx as
|
|
6566
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
6551
6567
|
function AgentMessageDetailsDisclosure({
|
|
6552
6568
|
detail,
|
|
6553
6569
|
className = "",
|
|
@@ -6565,7 +6581,7 @@ function AgentMessageDetailsDisclosure({
|
|
|
6565
6581
|
onClick: () => setExpanded((value) => !value),
|
|
6566
6582
|
children: [
|
|
6567
6583
|
label ?? translate("agentHost.agentGui.visibleErrorDetails"),
|
|
6568
|
-
/* @__PURE__ */
|
|
6584
|
+
/* @__PURE__ */ jsx9(
|
|
6569
6585
|
ChevronRight,
|
|
6570
6586
|
{
|
|
6571
6587
|
size: 12,
|
|
@@ -6583,14 +6599,14 @@ function AgentMessageDetailsDisclosure({
|
|
|
6583
6599
|
]
|
|
6584
6600
|
}
|
|
6585
6601
|
),
|
|
6586
|
-
/* @__PURE__ */
|
|
6602
|
+
/* @__PURE__ */ jsx9(CollapsibleReveal, { expanded, preMountOnIdle: true, children: /* @__PURE__ */ jsx9("pre", { className: "mt-2 max-h-[220px] overflow-auto whitespace-pre-wrap break-words rounded-[6px] bg-[var(--on-danger)] px-3 py-2 font-[var(--tsh-font-mono)] text-[11px] leading-5 text-[var(--state-danger)]", children: detail }) })
|
|
6587
6603
|
] });
|
|
6588
6604
|
}
|
|
6589
6605
|
|
|
6590
6606
|
// app/renderer/components/ui/button.tsx
|
|
6591
6607
|
import * as React from "react";
|
|
6592
6608
|
import { Button as UISystemButton, buttonVariants } from "@tutti-os/ui-system";
|
|
6593
|
-
import { jsx as
|
|
6609
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
6594
6610
|
function resolveButtonSize(size) {
|
|
6595
6611
|
switch (size) {
|
|
6596
6612
|
case "mini":
|
|
@@ -6615,7 +6631,7 @@ function resolveButtonClassName(size, className) {
|
|
|
6615
6631
|
);
|
|
6616
6632
|
}
|
|
6617
6633
|
var Button = React.forwardRef(
|
|
6618
|
-
({ className, size, ...props }, ref) => /* @__PURE__ */
|
|
6634
|
+
({ className, size, ...props }, ref) => /* @__PURE__ */ jsx10(
|
|
6619
6635
|
UISystemButton,
|
|
6620
6636
|
{
|
|
6621
6637
|
ref,
|
|
@@ -6628,7 +6644,7 @@ var Button = React.forwardRef(
|
|
|
6628
6644
|
Button.displayName = "Button";
|
|
6629
6645
|
|
|
6630
6646
|
// shared/agentConversation/components/AgentVisibleErrorMessage.tsx
|
|
6631
|
-
import { jsx as
|
|
6647
|
+
import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
6632
6648
|
var ERROR_BANNER_CLASS_NAME = "border-[var(--on-danger-hover)] bg-[var(--on-danger)] text-[var(--state-danger)]";
|
|
6633
6649
|
function recoverVisibleErrorFromMessage(message, provider) {
|
|
6634
6650
|
const code = classifyRecoverableAgentMessage({
|
|
@@ -6655,38 +6671,32 @@ function AgentVisibleErrorMessage({
|
|
|
6655
6671
|
}) {
|
|
6656
6672
|
"use memo";
|
|
6657
6673
|
const openAgentEnvPanel = useOpenAgentEnvPanel();
|
|
6674
|
+
const commercePresentation = useAgentCommercePresentation();
|
|
6658
6675
|
const error = message.visibleError;
|
|
6659
|
-
const detail = error?.detail?.trim() ?? "";
|
|
6660
6676
|
const providerLabel = workspaceAgentProviderLabel(
|
|
6661
6677
|
error?.provider ?? "unknown"
|
|
6662
6678
|
);
|
|
6663
|
-
const presentation = resolveAgentErrorPresentation(
|
|
6679
|
+
const presentation = resolveAgentErrorPresentation(
|
|
6680
|
+
error?.code,
|
|
6681
|
+
commercePresentation
|
|
6682
|
+
);
|
|
6664
6683
|
const headline = presentation?.messageKey ? translate(presentation.messageKey, { provider: providerLabel }) : visibleErrorTitle(message);
|
|
6665
6684
|
const focus = presentation?.focus ?? null;
|
|
6666
6685
|
const actionKey = presentation?.actionKey ?? null;
|
|
6667
6686
|
const externalUrl = presentation?.externalUrl ?? null;
|
|
6668
6687
|
const hint = visibleErrorHint(message);
|
|
6669
|
-
const isPlanOrQuotaLimit = error?.code === "quota_or_rate_limit";
|
|
6670
|
-
|
|
6671
|
-
return /* @__PURE__ */ jsx10(
|
|
6688
|
+
const isPlanOrQuotaLimit = error?.code === "quota_or_rate_limit" || error?.code === "insufficient_credits";
|
|
6689
|
+
return /* @__PURE__ */ jsx11(
|
|
6672
6690
|
"section",
|
|
6673
6691
|
{
|
|
6674
6692
|
role: isPlanOrQuotaLimit ? "status" : "alert",
|
|
6675
6693
|
className: `box-border w-full min-w-0 rounded-[8px] border p-3 text-[13px] leading-5 text-[var(--text-primary)] ${ERROR_BANNER_CLASS_NAME}`,
|
|
6676
6694
|
children: /* @__PURE__ */ jsxs5("div", { className: "flex min-w-0 items-start gap-3", children: [
|
|
6677
6695
|
/* @__PURE__ */ jsxs5("div", { className: "min-w-0 flex-1", children: [
|
|
6678
|
-
/* @__PURE__ */
|
|
6679
|
-
hint ? /* @__PURE__ */
|
|
6680
|
-
detail && displayHeadline !== detail ? /* @__PURE__ */ jsx10(
|
|
6681
|
-
AgentMessageDetailsDisclosure,
|
|
6682
|
-
{
|
|
6683
|
-
detail,
|
|
6684
|
-
className: "mt-1",
|
|
6685
|
-
label: translate("agentHost.agentGui.visibleErrorRawDetails")
|
|
6686
|
-
}
|
|
6687
|
-
) : null
|
|
6696
|
+
/* @__PURE__ */ jsx11("div", { className: "font-medium text-[var(--text-primary)]", children: headline }),
|
|
6697
|
+
hint ? /* @__PURE__ */ jsx11("div", { className: "mt-1 text-[11px] text-[var(--text-secondary)]", children: hint }) : null
|
|
6688
6698
|
] }),
|
|
6689
|
-
actionKey && (focus && openAgentEnvPanel || externalUrl && onExternalLink) ? /* @__PURE__ */
|
|
6699
|
+
actionKey && (focus && openAgentEnvPanel || externalUrl && onExternalLink) ? /* @__PURE__ */ jsx11(
|
|
6690
6700
|
Button,
|
|
6691
6701
|
{
|
|
6692
6702
|
type: "button",
|
|
@@ -6738,7 +6748,9 @@ function visibleErrorTitle(message) {
|
|
|
6738
6748
|
provider
|
|
6739
6749
|
});
|
|
6740
6750
|
}
|
|
6741
|
-
return
|
|
6751
|
+
return translate("agentHost.agentGui.visibleErrorRequestFailed", {
|
|
6752
|
+
provider
|
|
6753
|
+
});
|
|
6742
6754
|
}
|
|
6743
6755
|
}
|
|
6744
6756
|
function visibleErrorHint(message) {
|
|
@@ -6771,7 +6783,7 @@ import {
|
|
|
6771
6783
|
useAnimation,
|
|
6772
6784
|
useReducedMotion
|
|
6773
6785
|
} from "framer-motion";
|
|
6774
|
-
import { jsx as
|
|
6786
|
+
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
6775
6787
|
var brainTransition = {
|
|
6776
6788
|
duration: 1.4,
|
|
6777
6789
|
repeat: Number.POSITIVE_INFINITY,
|
|
@@ -6865,7 +6877,7 @@ var BrainIcon = forwardRef2(
|
|
|
6865
6877
|
},
|
|
6866
6878
|
[onMouseLeave, stopAnimation]
|
|
6867
6879
|
);
|
|
6868
|
-
return /* @__PURE__ */
|
|
6880
|
+
return /* @__PURE__ */ jsx12(
|
|
6869
6881
|
"div",
|
|
6870
6882
|
{
|
|
6871
6883
|
className: cn("inline-flex items-center justify-center", className),
|
|
@@ -6897,7 +6909,7 @@ var BrainIcon = forwardRef2(
|
|
|
6897
6909
|
width: size,
|
|
6898
6910
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6899
6911
|
children: [
|
|
6900
|
-
/* @__PURE__ */
|
|
6912
|
+
/* @__PURE__ */ jsx12(
|
|
6901
6913
|
motion.path,
|
|
6902
6914
|
{
|
|
6903
6915
|
animate: controls,
|
|
@@ -6905,7 +6917,7 @@ var BrainIcon = forwardRef2(
|
|
|
6905
6917
|
variants: BRAIN_STEM_VARIANTS
|
|
6906
6918
|
}
|
|
6907
6919
|
),
|
|
6908
|
-
/* @__PURE__ */
|
|
6920
|
+
/* @__PURE__ */ jsx12(
|
|
6909
6921
|
motion.path,
|
|
6910
6922
|
{
|
|
6911
6923
|
animate: controls,
|
|
@@ -6913,7 +6925,7 @@ var BrainIcon = forwardRef2(
|
|
|
6913
6925
|
variants: BRAIN_SIDE_VARIANTS
|
|
6914
6926
|
}
|
|
6915
6927
|
),
|
|
6916
|
-
/* @__PURE__ */
|
|
6928
|
+
/* @__PURE__ */ jsx12(
|
|
6917
6929
|
motion.path,
|
|
6918
6930
|
{
|
|
6919
6931
|
animate: controls,
|
|
@@ -6921,7 +6933,7 @@ var BrainIcon = forwardRef2(
|
|
|
6921
6933
|
variants: BRAIN_TOP_ARC_VARIANTS
|
|
6922
6934
|
}
|
|
6923
6935
|
),
|
|
6924
|
-
/* @__PURE__ */
|
|
6936
|
+
/* @__PURE__ */ jsx12(
|
|
6925
6937
|
motion.path,
|
|
6926
6938
|
{
|
|
6927
6939
|
animate: controls,
|
|
@@ -6929,8 +6941,8 @@ var BrainIcon = forwardRef2(
|
|
|
6929
6941
|
variants: BRAIN_TOP_ARC_VARIANTS
|
|
6930
6942
|
}
|
|
6931
6943
|
),
|
|
6932
|
-
/* @__PURE__ */
|
|
6933
|
-
/* @__PURE__ */
|
|
6944
|
+
/* @__PURE__ */ jsx12("path", { d: "M17.997 5.125a4 4 0 0 1 2.526 5.77" }),
|
|
6945
|
+
/* @__PURE__ */ jsx12(
|
|
6934
6946
|
motion.path,
|
|
6935
6947
|
{
|
|
6936
6948
|
animate: controls,
|
|
@@ -6938,8 +6950,8 @@ var BrainIcon = forwardRef2(
|
|
|
6938
6950
|
variants: BRAIN_LOWER_ARC_VARIANTS
|
|
6939
6951
|
}
|
|
6940
6952
|
),
|
|
6941
|
-
/* @__PURE__ */
|
|
6942
|
-
/* @__PURE__ */
|
|
6953
|
+
/* @__PURE__ */ jsx12("path", { d: "M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517" }),
|
|
6954
|
+
/* @__PURE__ */ jsx12(
|
|
6943
6955
|
motion.path,
|
|
6944
6956
|
{
|
|
6945
6957
|
animate: controls,
|
|
@@ -6947,7 +6959,7 @@ var BrainIcon = forwardRef2(
|
|
|
6947
6959
|
variants: BRAIN_LOWER_ARC_VARIANTS
|
|
6948
6960
|
}
|
|
6949
6961
|
),
|
|
6950
|
-
/* @__PURE__ */
|
|
6962
|
+
/* @__PURE__ */ jsx12("path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77" })
|
|
6951
6963
|
]
|
|
6952
6964
|
}
|
|
6953
6965
|
)
|
|
@@ -6958,10 +6970,10 @@ var BrainIcon = forwardRef2(
|
|
|
6958
6970
|
BrainIcon.displayName = "BrainIcon";
|
|
6959
6971
|
|
|
6960
6972
|
// shared/toolActivityKindIcons.tsx
|
|
6961
|
-
import { jsx as
|
|
6973
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
6962
6974
|
function IconProductDoc(props) {
|
|
6963
6975
|
"use memo";
|
|
6964
|
-
return /* @__PURE__ */
|
|
6976
|
+
return /* @__PURE__ */ jsx13(
|
|
6965
6977
|
"svg",
|
|
6966
6978
|
{
|
|
6967
6979
|
viewBox: "0 0 24 24",
|
|
@@ -6969,7 +6981,7 @@ function IconProductDoc(props) {
|
|
|
6969
6981
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6970
6982
|
"aria-hidden": true,
|
|
6971
6983
|
...props,
|
|
6972
|
-
children: /* @__PURE__ */
|
|
6984
|
+
children: /* @__PURE__ */ jsx13(
|
|
6973
6985
|
"path",
|
|
6974
6986
|
{
|
|
6975
6987
|
d: "M14.04 1.00098C14.4743 1.00553 14.9042 1.09245 15.3057 1.25879C15.7193 1.43022 16.0949 1.68198 16.4111 1.99902L19.9971 5.58496L20.1133 5.70605C20.3773 5.99585 20.5896 6.32951 20.7402 6.69238C20.9122 7.1067 21.0005 7.55143 21 8V20C21 20.7957 20.6837 21.5585 20.1211 22.1211C19.5585 22.6837 18.7957 23 18 23H6C5.20435 23 4.44152 22.6837 3.87891 22.1211C3.3163 21.5585 3 20.7957 3 20V4C3 3.20435 3.3163 2.44151 3.87891 1.87891C4.44152 1.3163 5.20435 1 6 1H14C14.0134 1 14.0268 1.00045 14.04 1.00098ZM6 3C5.73478 3 5.4805 3.10543 5.29297 3.29297C5.10543 3.4805 5 3.73478 5 4V20C5 20.2652 5.10543 20.5195 5.29297 20.707C5.48051 20.8946 5.73478 21 6 21H18C18.2652 21 18.5195 20.8946 18.707 20.707C18.8946 20.5195 19 20.2652 19 20V9H15C14.4696 9 13.961 8.78913 13.5859 8.41406C13.2109 8.03899 13 7.53043 13 7V3H6ZM16 16C16.5523 16 17 16.4477 17 17C17 17.5523 16.5523 18 16 18H8C7.44772 18 7 17.5523 7 17C7 16.4477 7.44772 16 8 16H16ZM16 12C16.5523 12 17 12.4477 17 13C17 13.5523 16.5523 14 16 14H8C7.44772 14 7 13.5523 7 13C7 12.4477 7.44772 12 8 12H16ZM10 8C10.5523 8 11 8.44772 11 9C11 9.55229 10.5523 10 10 10H8C7.44772 10 7 9.55229 7 9C7 8.44772 7.44772 8 8 8H10ZM15 7H18.584L15 3.41602V7Z",
|
|
@@ -6981,7 +6993,7 @@ function IconProductDoc(props) {
|
|
|
6981
6993
|
}
|
|
6982
6994
|
function IconBuild(props) {
|
|
6983
6995
|
"use memo";
|
|
6984
|
-
return /* @__PURE__ */
|
|
6996
|
+
return /* @__PURE__ */ jsx13(
|
|
6985
6997
|
"svg",
|
|
6986
6998
|
{
|
|
6987
6999
|
viewBox: "0 0 24 24",
|
|
@@ -6989,7 +7001,7 @@ function IconBuild(props) {
|
|
|
6989
7001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6990
7002
|
"aria-hidden": true,
|
|
6991
7003
|
...props,
|
|
6992
|
-
children: /* @__PURE__ */
|
|
7004
|
+
children: /* @__PURE__ */ jsx13(
|
|
6993
7005
|
"path",
|
|
6994
7006
|
{
|
|
6995
7007
|
d: "M12.5166 2C14.3722 2.0005 16.1516 2.73783 17.4639 4.0498L19.1211 5.70703L19.3203 5.92676C19.7578 6.46048 19.9999 7.13198 20 7.82812V8.17188L20.0049 8.27051C20.0276 8.49945 20.1288 8.71482 20.293 8.87891L21.5303 10.1162C21.9083 9.9151 22.3885 9.97443 22.707 10.293C23.0976 10.6835 23.0976 11.3165 22.707 11.707L18.707 15.707C18.3165 16.0976 17.6835 16.0976 17.293 15.707C16.9744 15.3885 16.9151 14.9083 17.1162 14.5303L15.8789 13.293C15.7431 13.1571 15.5715 13.0672 15.3867 13.0264L6.33398 22.0801C6.0442 22.3699 5.69992 22.5999 5.32129 22.7568C4.94266 22.9137 4.53679 22.995 4.12695 22.9951C3.29924 22.9952 2.50538 22.6661 1.91992 22.0811C1.3344 21.4957 1.00502 20.701 1.00488 19.873C1.00487 19.0453 1.33373 18.2514 1.91895 17.666L11 8.58496V8.48535C10.9999 7.1596 10.4734 5.88777 9.53613 4.9502L8.29297 3.70703C8.00697 3.42103 7.92139 2.99086 8.07617 2.61719C8.23098 2.24359 8.59558 2 9 2H12.5166ZM3.33301 19.0801C3.12284 19.2904 3.00487 19.5757 3.00488 19.873C3.00493 20.1705 3.12359 20.4557 3.33398 20.666C3.54437 20.8763 3.82951 20.9952 4.12695 20.9951C4.27409 20.9951 4.41972 20.9655 4.55566 20.9092C4.69174 20.8528 4.81578 20.7702 4.91992 20.666L13.0859 12.5L11.499 10.9131L3.33301 19.0801ZM11.3721 4C12.4187 5.2535 12.9999 6.83919 13 8.48535V9.58594L14.4141 11H15.1719C15.9674 11.0002 16.7305 11.3164 17.293 11.8789L18.5 13.0859L20.0859 11.5L18.8789 10.293C18.3164 9.73051 18.0002 8.96738 18 8.17188V7.82812C17.9999 7.56296 17.8946 7.30857 17.707 7.12109L16.0498 5.46387C15.1124 4.52677 13.8411 4.00028 12.5156 4H11.3721Z",
|
|
@@ -7001,7 +7013,7 @@ function IconBuild(props) {
|
|
|
7001
7013
|
}
|
|
7002
7014
|
function IconBrush(props) {
|
|
7003
7015
|
"use memo";
|
|
7004
|
-
return /* @__PURE__ */
|
|
7016
|
+
return /* @__PURE__ */ jsx13(
|
|
7005
7017
|
"svg",
|
|
7006
7018
|
{
|
|
7007
7019
|
viewBox: "0 0 24 24",
|
|
@@ -7009,7 +7021,7 @@ function IconBrush(props) {
|
|
|
7009
7021
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7010
7022
|
"aria-hidden": true,
|
|
7011
7023
|
...props,
|
|
7012
|
-
children: /* @__PURE__ */
|
|
7024
|
+
children: /* @__PURE__ */ jsx13(
|
|
7013
7025
|
"path",
|
|
7014
7026
|
{
|
|
7015
7027
|
d: "M19.1816 1C20.1944 1.00019 21.1658 1.40292 21.8818 2.11914C22.5976 2.83537 23.0001 3.8067 23 4.81934C22.9998 5.7688 22.6461 6.68243 22.0117 7.38281L21.8808 7.51953L19.79 9.60937C19.7641 9.6428 19.7377 9.67636 19.707 9.70703C19.6763 9.7377 19.6428 9.76419 19.6093 9.79004L8.53414 20.8682L8.53317 20.8691C8.1855 21.2156 7.75766 21.4724 7.28805 21.6152H7.28707L2.93454 22.9355L2.93161 22.9365C2.67255 23.0143 2.39705 23.02 2.13473 22.9541C1.87235 22.8881 1.63194 22.7526 1.44039 22.5615C1.24885 22.3703 1.11234 22.1296 1.04586 21.8672C0.979582 21.605 0.985166 21.3294 1.06246 21.0703L1.06442 21.0664L2.38473 16.7139L2.38571 16.7109C2.52986 16.2409 2.78761 15.813 3.13571 15.4658L14.2089 4.38867C14.2346 4.35552 14.2625 4.32341 14.2929 4.29297C14.3234 4.26252 14.3555 4.23468 14.3886 4.20898L16.4804 2.11816C17.1967 1.40209 18.1688 0.999896 19.1816 1ZM4.54879 16.8818L4.54782 16.8828C4.43196 16.9985 4.34581 17.1413 4.29782 17.2978L3.24899 20.749L6.70602 19.7012L6.82028 19.6592C6.93185 19.6097 7.0341 19.5397 7.12106 19.4531L17.5791 8.99316L15.0068 6.4209L4.54879 16.8818ZM19.1816 3C18.6995 2.99996 18.2366 3.19147 17.8955 3.53223L16.4209 5.00683L18.9931 7.5791L20.4668 6.10547L20.5879 5.97168C20.8529 5.64823 20.9998 5.24116 21 4.81934C21 4.33701 20.8077 3.87434 20.4668 3.5332C20.1258 3.19221 19.6638 3.00019 19.1816 3Z",
|
|
@@ -7021,7 +7033,7 @@ function IconBrush(props) {
|
|
|
7021
7033
|
}
|
|
7022
7034
|
function IconNetwork(props) {
|
|
7023
7035
|
"use memo";
|
|
7024
|
-
return /* @__PURE__ */
|
|
7036
|
+
return /* @__PURE__ */ jsx13(
|
|
7025
7037
|
"svg",
|
|
7026
7038
|
{
|
|
7027
7039
|
viewBox: "0 0 24 24",
|
|
@@ -7029,7 +7041,7 @@ function IconNetwork(props) {
|
|
|
7029
7041
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7030
7042
|
"aria-hidden": true,
|
|
7031
7043
|
...props,
|
|
7032
|
-
children: /* @__PURE__ */
|
|
7044
|
+
children: /* @__PURE__ */ jsx13(
|
|
7033
7045
|
"path",
|
|
7034
7046
|
{
|
|
7035
7047
|
d: "M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM3.05664 13C3.46745 16.7156 6.13893 19.7477 9.66602 20.6924C8.12455 18.4164 7.21164 15.7616 7.0332 13H3.05664ZM16.9668 13C16.7883 15.7618 15.8747 18.4163 14.333 20.6924C17.8605 19.748 20.5325 16.7159 20.9434 13H16.9668ZM9.04004 13C9.24354 15.738 10.2754 18.3489 12 20.4834C13.7246 18.3489 14.7565 15.738 14.96 13H9.04004ZM9.66602 3.30664C6.13881 4.25125 3.46746 7.28435 3.05664 11H7.0332C7.21166 8.23812 8.12427 5.58281 9.66602 3.30664ZM12 3.51562C10.2751 5.65021 9.24348 8.26166 9.04004 11H14.96C14.7565 8.26166 13.7249 5.65021 12 3.51562ZM14.333 3.30664C15.8749 5.58292 16.7883 8.23793 16.9668 11H20.9434C20.5325 7.28403 17.8607 4.25097 14.333 3.30664Z",
|
|
@@ -7041,7 +7053,7 @@ function IconNetwork(props) {
|
|
|
7041
7053
|
}
|
|
7042
7054
|
function IconCapability(props) {
|
|
7043
7055
|
"use memo";
|
|
7044
|
-
return /* @__PURE__ */
|
|
7056
|
+
return /* @__PURE__ */ jsx13(
|
|
7045
7057
|
"svg",
|
|
7046
7058
|
{
|
|
7047
7059
|
viewBox: "0 0 24 24",
|
|
@@ -7049,7 +7061,7 @@ function IconCapability(props) {
|
|
|
7049
7061
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7050
7062
|
"aria-hidden": true,
|
|
7051
7063
|
...props,
|
|
7052
|
-
children: /* @__PURE__ */
|
|
7064
|
+
children: /* @__PURE__ */ jsx13(
|
|
7053
7065
|
"path",
|
|
7054
7066
|
{
|
|
7055
7067
|
d: "M9.9994 1C11.0602 1 12.0784 1.42185 12.8285 2.17188C13.5784 2.92198 13.9994 3.93932 13.9994 5C13.9994 5.79565 13.6831 6.55849 13.1205 7.12109C12.5579 7.68352 11.7949 8 10.9994 8C10.7316 7.99997 10.4793 7.97795 10.2416 7.93555C10.1632 8.06833 10.0871 8.26075 10.0209 8.53906C9.88898 9.09327 9.84537 9.79653 9.81483 10.6309C9.79404 11.1989 9.77711 11.8293 9.72987 12.4463C9.97013 12.3481 10.2169 12.2638 10.4691 12.1973C10.9061 12.0821 11.3533 12.0166 11.8021 12.002C12.3709 11.0149 13.211 10.2051 14.2299 9.6748C15.4546 9.03749 16.8622 8.84264 18.2142 9.12207C19.5664 9.40164 20.781 10.1391 21.6527 11.21C22.5243 12.2808 23 13.6193 22.9994 15C22.9994 19.6358 18.3055 23 12.9994 23C10.8986 23 8.78485 22.7894 6.89588 22.3604C5.0205 21.9343 3.29732 21.2773 2.03358 20.3418L2.0326 20.3408C1.29831 19.7958 0.992816 18.9434 1.00917 18.1553C1.06353 15.4363 1.21559 11.2582 2.32655 7.74219C2.88372 5.97897 3.7061 4.30115 4.94764 3.05469C6.21544 1.78207 7.88237 1.00014 9.9994 1ZM9.9994 3C8.43065 3.00014 7.26908 3.55883 6.36463 4.4668C5.4339 5.40127 4.73903 6.74579 4.23378 8.34473C3.34681 11.1518 3.11601 14.4956 3.03553 17.1191L3.00819 18.1963C3.00256 18.4674 3.107 18.6472 3.22401 18.7344L3.4076 18.8652C4.35656 19.5118 5.71073 20.0394 7.33827 20.4092C9.06058 20.8004 11.0238 21 12.9994 21C17.5463 21 20.791 18.2751 20.9896 15.29L20.9994 15C20.9998 14.0795 20.683 13.1866 20.1019 12.4727C19.5209 11.7589 18.7112 11.2665 17.8099 11.0801C16.9085 10.8938 15.9692 11.0243 15.1527 11.4492C14.7154 11.6769 14.3294 11.9838 14.0072 12.3477C14.5766 12.55 15.115 12.8355 15.601 13.2002C16.0421 13.5316 16.1311 14.1581 15.8002 14.5996C15.4687 15.0413 14.8415 15.1312 14.3998 14.7998C13.9171 14.4376 13.3582 14.189 12.766 14.0732C12.6241 14.0455 12.4807 14.0259 12.3373 14.0137C12.323 14.0126 12.3087 14.0114 12.2943 14.0098C11.8533 13.977 11.4086 14.0176 10.9789 14.1309C10.3955 14.2848 9.85404 14.5693 9.39588 14.9619C9.18332 15.1441 8.99158 15.3483 8.82264 15.5693C8.81507 15.5797 8.80788 15.5903 8.80018 15.6006C8.79478 15.6078 8.78816 15.6141 8.7826 15.6211C8.60462 15.862 8.45397 16.1231 8.33338 16.3994C8.11263 16.9055 7.52309 17.1365 7.01698 16.916C6.51076 16.6952 6.27858 16.1058 6.4994 15.5996C6.68858 15.166 6.92793 14.7579 7.21131 14.3828C7.42382 14.0896 7.58136 13.6141 7.67518 12.9092C7.76955 12.2 7.78452 11.4136 7.81581 10.5586C7.84563 9.7437 7.89048 8.84999 8.0746 8.07617C8.16126 7.71213 8.28971 7.32979 8.48866 6.97559C8.3626 6.8338 8.25388 6.68808 8.16053 6.54395C7.86057 6.08046 7.99311 5.46035 8.45643 5.16016C8.91985 4.86043 9.53908 4.99291 9.83924 5.45605C9.96076 5.64373 10.0773 5.7612 10.2152 5.83984C10.3527 5.91812 10.5849 5.99992 10.9994 6C11.2645 6 11.5189 5.89438 11.7064 5.70703C11.894 5.51949 11.9994 5.26522 11.9994 5C11.9994 4.46957 11.7885 3.96101 11.4135 3.58594C11.0384 3.21105 10.5297 3 9.9994 3Z",
|
|
@@ -7061,7 +7073,7 @@ function IconCapability(props) {
|
|
|
7061
7073
|
}
|
|
7062
7074
|
function IconTask(props) {
|
|
7063
7075
|
"use memo";
|
|
7064
|
-
return /* @__PURE__ */
|
|
7076
|
+
return /* @__PURE__ */ jsx13(
|
|
7065
7077
|
"svg",
|
|
7066
7078
|
{
|
|
7067
7079
|
viewBox: "0 0 24 24",
|
|
@@ -7069,7 +7081,7 @@ function IconTask(props) {
|
|
|
7069
7081
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7070
7082
|
"aria-hidden": true,
|
|
7071
7083
|
...props,
|
|
7072
|
-
children: /* @__PURE__ */
|
|
7084
|
+
children: /* @__PURE__ */ jsx13(
|
|
7073
7085
|
"path",
|
|
7074
7086
|
{
|
|
7075
7087
|
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",
|
|
@@ -7081,7 +7093,7 @@ function IconTask(props) {
|
|
|
7081
7093
|
}
|
|
7082
7094
|
function IconThinking(props) {
|
|
7083
7095
|
"use memo";
|
|
7084
|
-
return /* @__PURE__ */
|
|
7096
|
+
return /* @__PURE__ */ jsx13(
|
|
7085
7097
|
"svg",
|
|
7086
7098
|
{
|
|
7087
7099
|
viewBox: "0 0 24 24",
|
|
@@ -7089,7 +7101,7 @@ function IconThinking(props) {
|
|
|
7089
7101
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7090
7102
|
"aria-hidden": true,
|
|
7091
7103
|
...props,
|
|
7092
|
-
children: /* @__PURE__ */
|
|
7104
|
+
children: /* @__PURE__ */ jsx13(
|
|
7093
7105
|
"path",
|
|
7094
7106
|
{
|
|
7095
7107
|
d: "M14.2196 1.07688C14.8213 0.957197 15.4424 0.977694 16.035 1.13645C16.6276 1.29523 17.1763 1.5884 17.6375 1.99289C18.0986 2.39735 18.4604 2.90282 18.6952 3.46945C18.8188 3.76806 18.9045 4.07981 18.953 4.39719C19.4186 4.59467 19.8537 4.86066 20.2411 5.19016C20.8188 5.68166 21.2767 6.29905 21.5809 6.99387C21.885 7.6887 22.0276 8.44402 21.9969 9.20188C21.9767 9.69961 21.8801 10.1897 21.7157 10.657C22.0929 11.0764 22.4002 11.5585 22.619 12.0866C23.0401 13.1034 23.1137 14.2306 22.8289 15.2937C22.5441 16.3567 21.9169 17.2965 21.0438 17.9665C21.0288 17.978 21.013 17.9884 20.9979 17.9997C20.9973 18.4648 20.9337 18.9287 20.8045 19.3777C20.6156 20.0344 20.2945 20.646 19.8602 21.1736C19.4258 21.7011 18.8873 22.1344 18.2791 22.446C17.6712 22.7574 17.0057 22.9408 16.3241 22.9851C15.6421 23.0293 14.9577 22.9332 14.3143 22.7029C13.6711 22.4725 13.0816 22.1131 12.5828 21.6462C12.3689 21.4459 12.1747 21.2263 11.9998 20.9929C11.825 21.2262 11.6308 21.4459 11.4168 21.6462C10.918 22.1131 10.3286 22.4725 9.68539 22.7029C9.042 22.9332 8.35756 23.0293 7.67562 22.9851C6.99397 22.9408 6.32852 22.7574 5.72054 22.446C5.11231 22.1344 4.57383 21.7012 4.13949 21.1736C3.70518 20.6459 3.38408 20.0344 3.19515 19.3777C3.06602 18.9287 3.00239 18.4648 3.00179 17.9997C2.98677 17.9885 2.9708 17.978 2.95589 17.9665C2.08287 17.2965 1.4546 16.3567 1.16976 15.2937C0.885081 14.2307 0.959612 13.1033 1.3807 12.0866C1.59937 11.5587 1.90602 11.0763 2.28304 10.657C2.1187 10.1898 2.023 9.69947 2.00277 9.20188C1.97203 8.44402 2.11464 7.68869 2.41879 6.99387C2.723 6.29902 3.1809 5.68168 3.75863 5.19016C4.14595 4.86066 4.58112 4.59469 5.04671 4.39719C5.09514 4.07979 5.18087 3.76807 5.30453 3.46945C5.53925 2.90278 5.90106 2.39737 6.36214 1.99289C6.82342 1.58835 7.37206 1.29526 7.96468 1.13645C8.55726 0.977667 9.17842 0.957222 9.78011 1.07688C10.3818 1.19657 10.9487 1.45244 11.4354 1.8259C11.6413 1.98391 11.8293 2.16269 11.9998 2.35617C12.1704 2.16264 12.3583 1.98395 12.5643 1.8259C13.051 1.4524 13.6178 1.19659 14.2196 1.07688ZM9.39046 3.03781C9.08963 2.978 8.77853 2.9887 8.48226 3.06809C8.18611 3.14746 7.91204 3.29371 7.68148 3.49582C7.45094 3.69801 7.26958 3.95083 7.15218 4.2341C7.03482 4.51747 6.98371 4.82453 7.00375 5.13059C7.02381 5.43655 7.11416 5.73416 7.26742 5.99973C7.54355 6.47794 7.38032 7.08972 6.90218 7.36594C6.42391 7.64207 5.81213 7.47799 5.53597 6.99973C5.4474 6.8463 5.37072 6.68703 5.30355 6.52414C5.21761 6.58295 5.13419 6.64582 5.05453 6.71359C4.70797 7.00847 4.43333 7.3788 4.25082 7.79563C4.06831 8.21252 3.98337 8.66611 4.00179 9.12082C4.00751 9.2611 4.02461 9.40046 4.04964 9.53781C4.37718 9.55443 4.68985 9.73089 4.86605 10.0359C5.14206 10.5141 4.97805 11.1259 4.49984 11.4021C3.92803 11.7323 3.48104 12.2422 3.22836 12.8523C2.9758 13.4622 2.93159 14.1384 3.10238 14.7761C3.27327 15.4139 3.6499 15.9776 4.17367 16.3796C4.6975 16.7816 5.33955 16.9996 5.99984 16.9997C6.55196 16.9998 6.99969 17.4476 6.99984 17.9997C6.99982 18.5519 6.55202 18.9996 5.99984 18.9997C5.71286 18.9997 5.42816 18.9739 5.14828 18.9255C5.26423 19.2812 5.44532 19.6127 5.68343 19.9021C5.94396 20.2185 6.26688 20.4788 6.63168 20.6657C6.99658 20.8527 7.39637 20.9634 7.8055 20.99C8.21465 21.0165 8.62555 20.9582 9.01156 20.82C9.39738 20.6818 9.75142 20.4663 10.0506 20.1863C10.3499 19.9061 10.5885 19.5671 10.7518 19.1911C10.8947 18.862 10.9773 18.5097 10.9959 18.1521L10.9998 17.9988V13.0798C10.4898 13.4758 9.90763 13.7763 9.28011 13.9597C8.75012 14.1144 8.1948 13.81 8.03988 13.28C7.88534 12.7501 8.18971 12.1947 8.71957 12.0398C9.37716 11.8475 9.95497 11.4472 10.3661 10.8991C10.7771 10.351 10.9994 9.68388 10.9998 8.99875V4.99973C10.9998 4.69303 10.9294 4.39004 10.7938 4.11496C10.6581 3.83995 10.4609 3.5995 10.2176 3.41281C9.97436 3.22619 9.69116 3.09768 9.39046 3.03781ZM15.5174 3.06809C15.2211 2.98873 14.91 2.97797 14.6092 3.03781C14.3085 3.09771 14.0253 3.22615 13.7821 3.41281C13.5388 3.59953 13.3416 3.83991 13.2059 4.11496C13.0703 4.39004 12.9999 4.69303 12.9998 4.99973V8.99875C13.0003 9.68382 13.2227 10.351 13.6336 10.8991C14.0447 11.4472 14.6226 11.8474 15.2801 12.0398C15.81 12.1947 16.1144 12.7501 15.9598 13.28C15.8049 13.81 15.2496 14.1144 14.7196 13.9597C14.0921 13.7762 13.5098 13.4759 12.9998 13.0798V17.9988L13.0037 18.1521C13.0224 18.5097 13.1049 18.862 13.2479 19.1911C13.4112 19.5671 13.6498 19.9061 13.9491 20.1863C14.2483 20.4664 14.6023 20.6818 14.9881 20.82C15.3741 20.9583 15.785 21.0165 16.1942 20.99C16.6033 20.9634 17.0031 20.8527 17.368 20.6657C17.7328 20.4788 18.0557 20.2185 18.3162 19.9021C18.5543 19.6128 18.7345 19.2811 18.8504 18.9255C18.5709 18.9738 18.2865 18.9997 17.9998 18.9997C17.4476 18.9996 16.9999 18.552 16.9998 17.9997C17 17.4476 17.4477 16.9998 17.9998 16.9997C18.6602 16.9997 19.3021 16.7816 19.826 16.3796C20.3498 15.9776 20.7264 15.4139 20.8973 14.7761C21.0681 14.1384 21.0239 13.4622 20.7713 12.8523C20.5186 12.2423 20.0716 11.7323 19.4998 11.4021C19.0217 11.1259 18.8576 10.5141 19.1336 10.0359C19.3098 9.73087 19.6226 9.55356 19.95 9.53684C19.975 9.39977 19.9922 9.2608 19.9979 9.12082C20.0163 8.6661 19.9314 8.21252 19.7489 7.79563C19.5664 7.37884 19.2917 7.00845 18.9452 6.71359C18.8653 6.64564 18.7813 6.58308 18.6952 6.52414C18.628 6.68692 18.5522 6.84641 18.4637 6.99973C18.1875 7.47801 17.5758 7.64211 17.0975 7.36594C16.6195 7.08967 16.4562 6.47789 16.7323 5.99973C16.8856 5.73413 16.9759 5.4366 16.9959 5.13059C17.016 4.82452 16.9649 4.51748 16.8475 4.2341C16.7301 3.95087 16.5487 3.69799 16.3182 3.49582C16.0876 3.29376 15.8135 3.14743 15.5174 3.06809Z",
|
|
@@ -7101,7 +7113,7 @@ function IconThinking(props) {
|
|
|
7101
7113
|
}
|
|
7102
7114
|
function IconWebScrape(props) {
|
|
7103
7115
|
"use memo";
|
|
7104
|
-
return /* @__PURE__ */
|
|
7116
|
+
return /* @__PURE__ */ jsx13(
|
|
7105
7117
|
"svg",
|
|
7106
7118
|
{
|
|
7107
7119
|
viewBox: "0 0 24 24",
|
|
@@ -7109,7 +7121,7 @@ function IconWebScrape(props) {
|
|
|
7109
7121
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7110
7122
|
"aria-hidden": true,
|
|
7111
7123
|
...props,
|
|
7112
|
-
children: /* @__PURE__ */
|
|
7124
|
+
children: /* @__PURE__ */ jsx13(
|
|
7113
7125
|
"path",
|
|
7114
7126
|
{
|
|
7115
7127
|
d: "M19 3C20.6569 3 22 4.34315 22 6V18L21.9961 18.1543C21.9184 19.6883 20.6883 20.9184 19.1543 20.9961L19 21H5L4.8457 20.9961C3.31166 20.9184 2.08163 19.6883 2.00391 18.1543L2 18V6C2 4.34315 3.34315 3 5 3H19ZM4 18C4 18.5523 4.44772 19 5 19H19C19.5523 19 20 18.5523 20 18V9H4V18ZM14.5 15C14.7761 15 15 15.2239 15 15.5V16.5C15 16.7761 14.7761 17 14.5 17H6.5C6.22386 17 6 16.7761 6 16.5V15.5C6 15.2239 6.22386 15 6.5 15H14.5ZM9.5 11C9.77614 11 10 11.2239 10 11.5V12.5C10 12.7761 9.77614 13 9.5 13H6.5C6.22386 13 6 12.7761 6 12.5V11.5C6 11.2239 6.22386 11 6.5 11H9.5ZM5 5C4.44772 5 4 5.44772 4 6V7H6V5H5ZM12 7H20V6C20 5.44771 19.5523 5 19 5H12V7ZM8 7H10V5H8V7Z",
|
|
@@ -7121,7 +7133,7 @@ function IconWebScrape(props) {
|
|
|
7121
7133
|
}
|
|
7122
7134
|
function IconChat(props) {
|
|
7123
7135
|
"use memo";
|
|
7124
|
-
return /* @__PURE__ */
|
|
7136
|
+
return /* @__PURE__ */ jsx13(
|
|
7125
7137
|
"svg",
|
|
7126
7138
|
{
|
|
7127
7139
|
viewBox: "0 0 24 24",
|
|
@@ -7129,7 +7141,7 @@ function IconChat(props) {
|
|
|
7129
7141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7130
7142
|
"aria-hidden": true,
|
|
7131
7143
|
...props,
|
|
7132
|
-
children: /* @__PURE__ */
|
|
7144
|
+
children: /* @__PURE__ */ jsx13(
|
|
7133
7145
|
"path",
|
|
7134
7146
|
{
|
|
7135
7147
|
d: "M12 1C12.5523 1 13 1.44772 13 2V5H18C18.7956 5 19.5585 5.3163 20.1211 5.87891C20.6837 6.44151 21 7.20435 21 8V11H22C22.5523 11 23 11.4477 23 12C23 12.5523 22.5523 13 22 13H21V16C21 16.7957 20.6837 17.5585 20.1211 18.1211C19.5585 18.6837 18.7957 19 18 19H8.82812C8.56296 19.0001 8.30857 19.1054 8.12109 19.293L5.91895 21.4951C5.6799 21.7341 5.37545 21.8969 5.04395 21.9629C4.71233 22.0288 4.36805 21.9956 4.05566 21.8662C3.74327 21.7368 3.47598 21.5174 3.28809 21.2363C3.10019 20.9552 3.00004 20.6243 3 20.2861V13H2C1.44772 13 1 12.5523 1 12C1 11.4477 1.44772 11 2 11H3V8C3 7.20435 3.3163 6.44152 3.87891 5.87891C4.44152 5.3163 5.20435 5 6 5H11V3H8C7.44772 3 7 2.55228 7 2C7 1.44772 7.44772 1 8 1H12ZM6 7C5.73478 7 5.4805 7.10543 5.29297 7.29297C5.10543 7.4805 5 7.73478 5 8V19.5859L6.70703 17.8789L6.92676 17.6797C7.46048 17.2422 8.13198 17.0001 8.82812 17H18C18.2652 17 18.5195 16.8946 18.707 16.707C18.8946 16.5195 19 16.2652 19 16V8C19 7.73478 18.8946 7.48051 18.707 7.29297C18.5195 7.10543 18.2652 7 18 7H6ZM9 10C9.55229 10 10 10.4477 10 11V13C10 13.5523 9.55229 14 9 14C8.44772 14 8 13.5523 8 13V11C8 10.4477 8.44772 10 9 10ZM15 10C15.5523 10 16 10.4477 16 11V13C16 13.5523 15.5523 14 15 14C14.4477 14 14 13.5523 14 13V11C14 10.4477 14.4477 10 15 10Z",
|
|
@@ -7141,7 +7153,7 @@ function IconChat(props) {
|
|
|
7141
7153
|
}
|
|
7142
7154
|
function IconImageGeneration(props) {
|
|
7143
7155
|
"use memo";
|
|
7144
|
-
return /* @__PURE__ */
|
|
7156
|
+
return /* @__PURE__ */ jsx13(
|
|
7145
7157
|
"svg",
|
|
7146
7158
|
{
|
|
7147
7159
|
viewBox: "0 0 24 24",
|
|
@@ -7149,7 +7161,7 @@ function IconImageGeneration(props) {
|
|
|
7149
7161
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7150
7162
|
"aria-hidden": true,
|
|
7151
7163
|
...props,
|
|
7152
|
-
children: /* @__PURE__ */
|
|
7164
|
+
children: /* @__PURE__ */ jsx13(
|
|
7153
7165
|
"path",
|
|
7154
7166
|
{
|
|
7155
7167
|
d: "M14.04 1.00098C14.4743 1.00553 14.9042 1.09245 15.3057 1.25879C15.7193 1.43022 16.0949 1.68198 16.4111 1.99902L19.9971 5.58496L20.1133 5.70605C20.3773 5.99585 20.5896 6.32951 20.7402 6.69238C20.9122 7.1067 21.0005 7.55143 21 8V20C21 20.7957 20.6837 21.5585 20.1211 22.1211C19.5585 22.6837 18.7957 23 18 23H6C5.20435 23 4.44152 22.6837 3.87891 22.1211C3.3163 21.5585 3 20.7957 3 20V4C3 3.20435 3.3163 2.44151 3.87891 1.87891C4.44152 1.3163 5.20435 1 6 1H14C14.0134 1 14.0268 1.00045 14.04 1.00098ZM17 15.998C16.6261 15.998 16.2673 16.1468 16.0029 16.4111L11.4141 21H18C18.2652 21 18.5195 20.8946 18.707 20.707C18.8946 20.5195 19 20.2652 19 20V17.4141L17.9971 16.4111C17.7327 16.1468 17.3739 15.998 17 15.998ZM6 3C5.73478 3 5.4805 3.10543 5.29297 3.29297C5.10543 3.4805 5 3.73478 5 4V20C5 20.2652 5.10543 20.5195 5.29297 20.707C5.48051 20.8946 5.73478 21 6 21H8.58594L14.5889 14.9971C15.2283 14.3577 16.0957 13.998 17 13.998C17.7229 13.998 18.4218 14.2286 19 14.6475V9H15C14.4696 9 13.961 8.78913 13.5859 8.41406C13.2109 8.03899 13 7.53043 13 7V3H6ZM10 9C11.6569 9 13 10.3431 13 12C13 13.6569 11.6569 15 10 15C8.34315 15 7 13.6569 7 12C7 10.3431 8.34315 9 10 9ZM10 11C9.44772 11 9 11.4477 9 12C9 12.5523 9.44772 13 10 13C10.5523 13 11 12.5523 11 12C11 11.4477 10.5523 11 10 11ZM15 7H18.584L15 3.41602V7Z",
|
|
@@ -7187,7 +7199,7 @@ function ToolActivityKindIcon({
|
|
|
7187
7199
|
}) {
|
|
7188
7200
|
"use memo";
|
|
7189
7201
|
const Icon = kind ? TOOL_ACTIVITY_KIND_ICONS[kind] : IconCapability;
|
|
7190
|
-
return /* @__PURE__ */
|
|
7202
|
+
return /* @__PURE__ */ jsx13(Icon, { ...props });
|
|
7191
7203
|
}
|
|
7192
7204
|
function ToolNameIcon({
|
|
7193
7205
|
toolName,
|
|
@@ -7201,34 +7213,34 @@ function ToolNameIcon({
|
|
|
7201
7213
|
case "generatingimage":
|
|
7202
7214
|
case "imagegenerate":
|
|
7203
7215
|
case "imagegenerator":
|
|
7204
|
-
return /* @__PURE__ */
|
|
7216
|
+
return /* @__PURE__ */ jsx13(IconImageGeneration, { ...props });
|
|
7205
7217
|
case "read":
|
|
7206
7218
|
case "readfile":
|
|
7207
7219
|
case "glob":
|
|
7208
|
-
return /* @__PURE__ */
|
|
7220
|
+
return /* @__PURE__ */ jsx13(IconProductDoc, { ...props });
|
|
7209
7221
|
case "write":
|
|
7210
7222
|
case "writefile":
|
|
7211
7223
|
case "edit":
|
|
7212
7224
|
case "editfile":
|
|
7213
7225
|
case "multiedit":
|
|
7214
|
-
return /* @__PURE__ */
|
|
7226
|
+
return /* @__PURE__ */ jsx13(IconBrush, { ...props });
|
|
7215
7227
|
case "bash":
|
|
7216
7228
|
case "shell":
|
|
7217
7229
|
case "exec":
|
|
7218
7230
|
case "execcommand":
|
|
7219
7231
|
case "grep":
|
|
7220
|
-
return /* @__PURE__ */
|
|
7232
|
+
return /* @__PURE__ */ jsx13(IconBuild, { ...props });
|
|
7221
7233
|
case "writestdin":
|
|
7222
|
-
return /* @__PURE__ */
|
|
7234
|
+
return /* @__PURE__ */ jsx13(IconBrush, { ...props });
|
|
7223
7235
|
case "websearch":
|
|
7224
7236
|
case "webfetch":
|
|
7225
|
-
return /* @__PURE__ */
|
|
7237
|
+
return /* @__PURE__ */ jsx13(IconNetwork, { ...props });
|
|
7226
7238
|
case "todowrite":
|
|
7227
|
-
return /* @__PURE__ */
|
|
7239
|
+
return /* @__PURE__ */ jsx13(IconTask, { ...props });
|
|
7228
7240
|
case "think":
|
|
7229
|
-
return /* @__PURE__ */
|
|
7241
|
+
return /* @__PURE__ */ jsx13(IconThinking, { ...props });
|
|
7230
7242
|
default:
|
|
7231
|
-
return /* @__PURE__ */
|
|
7243
|
+
return /* @__PURE__ */ jsx13(IconCapability, { ...props });
|
|
7232
7244
|
}
|
|
7233
7245
|
}
|
|
7234
7246
|
function normalizeToolName5(value) {
|
|
@@ -7236,7 +7248,7 @@ function normalizeToolName5(value) {
|
|
|
7236
7248
|
}
|
|
7237
7249
|
|
|
7238
7250
|
// shared/WorkspaceAgentSessionThinkingDisclosure.tsx
|
|
7239
|
-
import { jsx as
|
|
7251
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
7240
7252
|
function WorkspaceAgentSessionThinkingDisclosure({
|
|
7241
7253
|
thinking,
|
|
7242
7254
|
label,
|
|
@@ -7262,7 +7274,7 @@ function WorkspaceAgentSessionThinkingDisclosure({
|
|
|
7262
7274
|
setExpanded((value) => !value);
|
|
7263
7275
|
},
|
|
7264
7276
|
children: [
|
|
7265
|
-
isActive ? /* @__PURE__ */
|
|
7277
|
+
isActive ? /* @__PURE__ */ jsx14(
|
|
7266
7278
|
BrainIcon,
|
|
7267
7279
|
{
|
|
7268
7280
|
size: 16,
|
|
@@ -7270,7 +7282,7 @@ function WorkspaceAgentSessionThinkingDisclosure({
|
|
|
7270
7282
|
"aria-hidden": "true",
|
|
7271
7283
|
className: "tsh-inline-scanlight-icon shrink-0 opacity-[0.86]"
|
|
7272
7284
|
}
|
|
7273
|
-
) : /* @__PURE__ */
|
|
7285
|
+
) : /* @__PURE__ */ jsx14(
|
|
7274
7286
|
ToolActivityKindIcon,
|
|
7275
7287
|
{
|
|
7276
7288
|
kind: "thinking",
|
|
@@ -7280,11 +7292,11 @@ function WorkspaceAgentSessionThinkingDisclosure({
|
|
|
7280
7292
|
}
|
|
7281
7293
|
),
|
|
7282
7294
|
/* @__PURE__ */ jsxs7("span", { className: isActive ? "tsh-inline-scanlight-line" : void 0, children: [
|
|
7283
|
-
/* @__PURE__ */
|
|
7284
|
-
statusLabel ? /* @__PURE__ */
|
|
7285
|
-
isActive ? /* @__PURE__ */
|
|
7295
|
+
/* @__PURE__ */ jsx14("span", { className: "font-semibold", children: label }),
|
|
7296
|
+
statusLabel ? /* @__PURE__ */ jsx14("span", { className: "ml-1.5", children: formatInlineStatusLabel(statusLabel) }) : null,
|
|
7297
|
+
isActive ? /* @__PURE__ */ jsx14(LoadingEllipsis, {}) : null
|
|
7286
7298
|
] }),
|
|
7287
|
-
expanded ? /* @__PURE__ */
|
|
7299
|
+
expanded ? /* @__PURE__ */ jsx14(
|
|
7288
7300
|
ChevronDown3,
|
|
7289
7301
|
{
|
|
7290
7302
|
size: 12,
|
|
@@ -7292,7 +7304,7 @@ function WorkspaceAgentSessionThinkingDisclosure({
|
|
|
7292
7304
|
"aria-hidden": "true",
|
|
7293
7305
|
className: "shrink-0 text-[var(--text-tertiary)] opacity-0 transition-opacity duration-150 group-hover/thinking-disclosure:opacity-100 group-focus-visible/thinking-disclosure:opacity-100"
|
|
7294
7306
|
}
|
|
7295
|
-
) : /* @__PURE__ */
|
|
7307
|
+
) : /* @__PURE__ */ jsx14(
|
|
7296
7308
|
ChevronRight2,
|
|
7297
7309
|
{
|
|
7298
7310
|
size: 12,
|
|
@@ -7304,7 +7316,7 @@ function WorkspaceAgentSessionThinkingDisclosure({
|
|
|
7304
7316
|
]
|
|
7305
7317
|
}
|
|
7306
7318
|
),
|
|
7307
|
-
/* @__PURE__ */
|
|
7319
|
+
/* @__PURE__ */ jsx14(CollapsibleReveal, { expanded, className: "w-full", children: /* @__PURE__ */ jsx14("div", { className: "box-border w-full min-w-0 rounded-[6px] bg-[var(--transparency-block)] p-3", children: /* @__PURE__ */ jsx14(
|
|
7308
7320
|
AgentMessageMarkdown,
|
|
7309
7321
|
{
|
|
7310
7322
|
content: thinking.body,
|
|
@@ -7319,9 +7331,9 @@ function WorkspaceAgentSessionThinkingDisclosure({
|
|
|
7319
7331
|
function LoadingEllipsis() {
|
|
7320
7332
|
"use memo";
|
|
7321
7333
|
return /* @__PURE__ */ jsxs7("span", { className: "tsh-inline-loading-ellipsis", "aria-hidden": "true", children: [
|
|
7322
|
-
/* @__PURE__ */
|
|
7323
|
-
/* @__PURE__ */
|
|
7324
|
-
/* @__PURE__ */
|
|
7334
|
+
/* @__PURE__ */ jsx14("span", {}),
|
|
7335
|
+
/* @__PURE__ */ jsx14("span", {}),
|
|
7336
|
+
/* @__PURE__ */ jsx14("span", {})
|
|
7325
7337
|
] });
|
|
7326
7338
|
}
|
|
7327
7339
|
function thinkingStatusLabel(statusKind) {
|
|
@@ -7347,7 +7359,7 @@ function formatInlineStatusLabel(label) {
|
|
|
7347
7359
|
// shared/agentConversation/components/RawTimelineJsonDisclosure.tsx
|
|
7348
7360
|
import { useState as useState7 } from "react";
|
|
7349
7361
|
import { ChevronDown as ChevronDown4, ChevronRight as ChevronRight3 } from "lucide-react";
|
|
7350
|
-
import { jsx as
|
|
7362
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
7351
7363
|
function RawTimelineJsonDisclosure({
|
|
7352
7364
|
items,
|
|
7353
7365
|
label
|
|
@@ -7367,12 +7379,12 @@ function RawTimelineJsonDisclosure({
|
|
|
7367
7379
|
"aria-expanded": expanded,
|
|
7368
7380
|
onClick: () => setExpanded((value) => !value),
|
|
7369
7381
|
children: [
|
|
7370
|
-
expanded ? /* @__PURE__ */
|
|
7371
|
-
/* @__PURE__ */
|
|
7382
|
+
expanded ? /* @__PURE__ */ jsx15(ChevronDown4, { size: 13, strokeWidth: 2.2, "aria-hidden": true }) : /* @__PURE__ */ jsx15(ChevronRight3, { size: 13, strokeWidth: 2.2, "aria-hidden": true }),
|
|
7383
|
+
/* @__PURE__ */ jsx15("span", { children: label })
|
|
7372
7384
|
]
|
|
7373
7385
|
}
|
|
7374
7386
|
),
|
|
7375
|
-
/* @__PURE__ */
|
|
7387
|
+
/* @__PURE__ */ jsx15(CollapsibleReveal, { expanded, preMountOnIdle: true, children: /* @__PURE__ */ jsx15("pre", { className: "mt-2 max-h-[320px] overflow-auto whitespace-pre-wrap break-words rounded-md border border-[var(--line-2)] bg-[var(--background-fronted)] px-3 py-2 font-mono text-[11px] leading-5 text-[var(--text-primary)]", children: /* @__PURE__ */ jsx15("code", { children: json }) }) })
|
|
7376
7388
|
] });
|
|
7377
7389
|
}
|
|
7378
7390
|
function rawTimelineJson(items) {
|
|
@@ -7387,7 +7399,7 @@ function rawTimelineJson(items) {
|
|
|
7387
7399
|
}
|
|
7388
7400
|
|
|
7389
7401
|
// shared/agentConversation/components/AgentThinkingDisclosure.tsx
|
|
7390
|
-
import { Fragment, jsx as
|
|
7402
|
+
import { Fragment, jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
7391
7403
|
function AgentThinkingDisclosure({
|
|
7392
7404
|
thinking,
|
|
7393
7405
|
label,
|
|
@@ -7398,7 +7410,7 @@ function AgentThinkingDisclosure({
|
|
|
7398
7410
|
}) {
|
|
7399
7411
|
"use memo";
|
|
7400
7412
|
return /* @__PURE__ */ jsxs9(Fragment, { children: [
|
|
7401
|
-
/* @__PURE__ */
|
|
7413
|
+
/* @__PURE__ */ jsx16(
|
|
7402
7414
|
WorkspaceAgentSessionThinkingDisclosure,
|
|
7403
7415
|
{
|
|
7404
7416
|
thinking,
|
|
@@ -7407,7 +7419,7 @@ function AgentThinkingDisclosure({
|
|
|
7407
7419
|
previewMode
|
|
7408
7420
|
}
|
|
7409
7421
|
),
|
|
7410
|
-
showRawTimelineJson && rawTimelineJsonLabel ? /* @__PURE__ */
|
|
7422
|
+
showRawTimelineJson && rawTimelineJsonLabel ? /* @__PURE__ */ jsx16(
|
|
7411
7423
|
RawTimelineJsonDisclosure,
|
|
7412
7424
|
{
|
|
7413
7425
|
items: thinking.sourceTimelineItems,
|
|
@@ -7436,7 +7448,7 @@ function useElapsedSeconds(startUnixMs) {
|
|
|
7436
7448
|
|
|
7437
7449
|
// contexts/workspace/presentation/renderer/components/shared/CanvasNodeGhostIconButton.tsx
|
|
7438
7450
|
import { forwardRef as forwardRef3 } from "react";
|
|
7439
|
-
import { jsx as
|
|
7451
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
7440
7452
|
var CanvasNodeGhostIconButton = forwardRef3(function CanvasNodeGhostIconButton2({
|
|
7441
7453
|
className,
|
|
7442
7454
|
children,
|
|
@@ -7447,7 +7459,7 @@ var CanvasNodeGhostIconButton = forwardRef3(function CanvasNodeGhostIconButton2(
|
|
|
7447
7459
|
...rest
|
|
7448
7460
|
}, ref) {
|
|
7449
7461
|
"use memo";
|
|
7450
|
-
return /* @__PURE__ */
|
|
7462
|
+
return /* @__PURE__ */ jsx17(
|
|
7451
7463
|
"button",
|
|
7452
7464
|
{
|
|
7453
7465
|
ref,
|
|
@@ -7483,7 +7495,7 @@ var CanvasNodeGhostIconButton = forwardRef3(function CanvasNodeGhostIconButton2(
|
|
|
7483
7495
|
// shared/agentConversation/components/AgentMessageImages.tsx
|
|
7484
7496
|
import { useEffect as useEffect5, useMemo, useState as useState9 } from "react";
|
|
7485
7497
|
import { LoaderCircle as LoaderCircle2 } from "lucide-react";
|
|
7486
|
-
import { jsx as
|
|
7498
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
7487
7499
|
function AgentUserImageGrid({
|
|
7488
7500
|
message
|
|
7489
7501
|
}) {
|
|
@@ -7492,7 +7504,7 @@ function AgentUserImageGrid({
|
|
|
7492
7504
|
const { loadingIds, sources } = useAgentMessageImageSources(images);
|
|
7493
7505
|
const columnCount = Math.min(Math.max(images.length, 1), 4);
|
|
7494
7506
|
const thumbnailWidth = images.length === 1 ? "160px" : "80px";
|
|
7495
|
-
return /* @__PURE__ */
|
|
7507
|
+
return /* @__PURE__ */ jsx18(
|
|
7496
7508
|
"div",
|
|
7497
7509
|
{
|
|
7498
7510
|
className: AgentGUIConversation_styles_default.userImageGrid,
|
|
@@ -7502,7 +7514,7 @@ function AgentUserImageGrid({
|
|
|
7502
7514
|
children: images.map((image) => {
|
|
7503
7515
|
const src = sources.get(image.id) ?? imageSourceUrl(image);
|
|
7504
7516
|
const loading = !src && loadingIds.has(image.id);
|
|
7505
|
-
return /* @__PURE__ */
|
|
7517
|
+
return /* @__PURE__ */ jsx18("div", { className: AgentGUIConversation_styles_default.userImageThumbnail, children: src ? /* @__PURE__ */ jsx18(
|
|
7506
7518
|
ZoomableImage,
|
|
7507
7519
|
{
|
|
7508
7520
|
src,
|
|
@@ -7511,12 +7523,12 @@ function AgentUserImageGrid({
|
|
|
7511
7523
|
draggable: false,
|
|
7512
7524
|
downloadName: image.name?.trim() || "image.png"
|
|
7513
7525
|
}
|
|
7514
|
-
) : loading ? /* @__PURE__ */
|
|
7526
|
+
) : loading ? /* @__PURE__ */ jsx18(
|
|
7515
7527
|
"div",
|
|
7516
7528
|
{
|
|
7517
7529
|
className: "flex h-20 w-full items-center justify-center bg-[color-mix(in_srgb,var(--text-primary)_6%,transparent)]",
|
|
7518
7530
|
"data-testid": "agent-gui-message-image-loading",
|
|
7519
|
-
children: /* @__PURE__ */
|
|
7531
|
+
children: /* @__PURE__ */ jsx18(
|
|
7520
7532
|
LoaderCircle2,
|
|
7521
7533
|
{
|
|
7522
7534
|
"aria-hidden": "true",
|
|
@@ -7525,7 +7537,7 @@ function AgentUserImageGrid({
|
|
|
7525
7537
|
}
|
|
7526
7538
|
)
|
|
7527
7539
|
}
|
|
7528
|
-
) : /* @__PURE__ */
|
|
7540
|
+
) : /* @__PURE__ */ jsx18("div", { className: "h-20 w-full animate-pulse bg-[color-mix(in_srgb,var(--text-primary)_8%,transparent)]" }) }, image.id);
|
|
7529
7541
|
})
|
|
7530
7542
|
}
|
|
7531
7543
|
);
|
|
@@ -7597,7 +7609,7 @@ function imageSourceUrl(image) {
|
|
|
7597
7609
|
}
|
|
7598
7610
|
|
|
7599
7611
|
// shared/agentConversation/components/AgentMessageBlock.tsx
|
|
7600
|
-
import { jsx as
|
|
7612
|
+
import { jsx as jsx19, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
7601
7613
|
var MESSAGE_COPY_FEEDBACK_MS = 1400;
|
|
7602
7614
|
var TRANSPORT_RETRY_PROGRESS_PATTERN = /\b(reconnect(?:ing)?(?:\s*(?:\.\.\.|…|[.。]+|:|-))?\s*\(?\d+\s*\/\s*\d+\)?)/i;
|
|
7603
7615
|
var SYSTEM_NOTICE_CLASS_NAME = "border-[var(--on-danger-hover)] bg-[var(--on-danger)]";
|
|
@@ -7655,7 +7667,7 @@ function AgentMessageBlock({
|
|
|
7655
7667
|
},
|
|
7656
7668
|
[agentHostApi]
|
|
7657
7669
|
);
|
|
7658
|
-
const thinkingContent = !isUser ? row.thinking.map((thinking) => /* @__PURE__ */
|
|
7670
|
+
const thinkingContent = !isUser ? row.thinking.map((thinking) => /* @__PURE__ */ jsx19(
|
|
7659
7671
|
AgentThinkingDisclosure,
|
|
7660
7672
|
{
|
|
7661
7673
|
thinking,
|
|
@@ -7668,7 +7680,7 @@ function AgentMessageBlock({
|
|
|
7668
7680
|
thinking.id
|
|
7669
7681
|
)) : null;
|
|
7670
7682
|
const messageContent = row.messages.map((message) => {
|
|
7671
|
-
const rawTimelineJson2 = showRawTimelineJson && rawTimelineJsonLabel && (message.sourceTimelineItems?.length ?? 0) > 0 ? /* @__PURE__ */
|
|
7683
|
+
const rawTimelineJson2 = showRawTimelineJson && rawTimelineJsonLabel && (message.sourceTimelineItems?.length ?? 0) > 0 ? /* @__PURE__ */ jsx19(
|
|
7672
7684
|
RawTimelineJsonDisclosure,
|
|
7673
7685
|
{
|
|
7674
7686
|
items: message.sourceTimelineItems,
|
|
@@ -7676,7 +7688,7 @@ function AgentMessageBlock({
|
|
|
7676
7688
|
}
|
|
7677
7689
|
) : null;
|
|
7678
7690
|
const recoveredError = !isUser && !message.visibleError ? recoverVisibleErrorFromMessage(message, provider) : null;
|
|
7679
|
-
const content = isUser && message.contentKind === "image-grid" ? /* @__PURE__ */
|
|
7691
|
+
const content = isUser && message.contentKind === "image-grid" ? /* @__PURE__ */ jsx19(AgentUserImageGrid, { message }) : isUser ? /* @__PURE__ */ jsx19(
|
|
7680
7692
|
AgentRichTextReadonly,
|
|
7681
7693
|
{
|
|
7682
7694
|
value: message.body,
|
|
@@ -7686,21 +7698,21 @@ function AgentMessageBlock({
|
|
|
7686
7698
|
availableSkills,
|
|
7687
7699
|
workspaceAppIcons
|
|
7688
7700
|
}
|
|
7689
|
-
) : message.visibleError ? /* @__PURE__ */
|
|
7701
|
+
) : message.visibleError ? /* @__PURE__ */ jsx19(
|
|
7690
7702
|
AgentVisibleErrorMessage,
|
|
7691
7703
|
{
|
|
7692
7704
|
message,
|
|
7693
7705
|
onAuthLogin,
|
|
7694
7706
|
onExternalLink: handleLinkClick
|
|
7695
7707
|
}
|
|
7696
|
-
) : recoveredError ? /* @__PURE__ */
|
|
7708
|
+
) : recoveredError ? /* @__PURE__ */ jsx19(
|
|
7697
7709
|
AgentVisibleErrorMessage,
|
|
7698
7710
|
{
|
|
7699
7711
|
message: recoveredError,
|
|
7700
7712
|
onAuthLogin,
|
|
7701
7713
|
onExternalLink: handleLinkClick
|
|
7702
7714
|
}
|
|
7703
|
-
) : message.systemNotice ? /* @__PURE__ */
|
|
7715
|
+
) : message.systemNotice ? /* @__PURE__ */ jsx19(AgentSystemNoticeMessage, { message }) : message.contentKind === "collaboration" && message.collaboration ? /* @__PURE__ */ jsx19(
|
|
7704
7716
|
AgentCollaborationRow,
|
|
7705
7717
|
{
|
|
7706
7718
|
collaboration: message.collaboration,
|
|
@@ -7710,7 +7722,7 @@ function AgentMessageBlock({
|
|
|
7710
7722
|
workspaceAppIcons,
|
|
7711
7723
|
previewMode
|
|
7712
7724
|
}
|
|
7713
|
-
) : message.contentKind === "plan" ? /* @__PURE__ */
|
|
7725
|
+
) : message.contentKind === "plan" ? /* @__PURE__ */ jsx19(
|
|
7714
7726
|
AgentPlanCardMessage,
|
|
7715
7727
|
{
|
|
7716
7728
|
message,
|
|
@@ -7720,7 +7732,7 @@ function AgentMessageBlock({
|
|
|
7720
7732
|
workspaceAppIcons,
|
|
7721
7733
|
previewMode
|
|
7722
7734
|
}
|
|
7723
|
-
) : /* @__PURE__ */
|
|
7735
|
+
) : /* @__PURE__ */ jsx19(
|
|
7724
7736
|
AgentMessageMarkdown,
|
|
7725
7737
|
{
|
|
7726
7738
|
content: message.body,
|
|
@@ -7755,7 +7767,7 @@ function AgentMessageBlock({
|
|
|
7755
7767
|
}
|
|
7756
7768
|
const copyText = message.copyText ?? null;
|
|
7757
7769
|
if (copyText) {
|
|
7758
|
-
return /* @__PURE__ */
|
|
7770
|
+
return /* @__PURE__ */ jsx19(
|
|
7759
7771
|
AgentCopyableMessageGroup,
|
|
7760
7772
|
{
|
|
7761
7773
|
copyText,
|
|
@@ -7767,7 +7779,7 @@ function AgentMessageBlock({
|
|
|
7767
7779
|
message.id
|
|
7768
7780
|
);
|
|
7769
7781
|
}
|
|
7770
|
-
return /* @__PURE__ */
|
|
7782
|
+
return /* @__PURE__ */ jsx19(Fragment2, { children: content }, message.id);
|
|
7771
7783
|
});
|
|
7772
7784
|
const enabledParticipantPresentation = participantPresentation?.enabled === true ? participantPresentation : null;
|
|
7773
7785
|
const showParticipant = enabledParticipantPresentation !== null && row.messages.length > 0;
|
|
@@ -7785,15 +7797,15 @@ function AgentMessageBlock({
|
|
|
7785
7797
|
className: AgentGUIConversation_styles_default.participantMessageLayout,
|
|
7786
7798
|
"data-agent-message-speaker": row.speaker,
|
|
7787
7799
|
children: [
|
|
7788
|
-
!isUser ? /* @__PURE__ */
|
|
7800
|
+
!isUser ? /* @__PURE__ */ jsx19(
|
|
7789
7801
|
AgentConversationParticipantAvatar,
|
|
7790
7802
|
{
|
|
7791
7803
|
presentation: enabledParticipantPresentation,
|
|
7792
7804
|
speaker: "assistant"
|
|
7793
7805
|
}
|
|
7794
7806
|
) : null,
|
|
7795
|
-
/* @__PURE__ */
|
|
7796
|
-
isUser ? /* @__PURE__ */
|
|
7807
|
+
/* @__PURE__ */ jsx19("div", { className: AgentGUIConversation_styles_default.participantMessageContent, children: messageContent }),
|
|
7808
|
+
isUser ? /* @__PURE__ */ jsx19(
|
|
7797
7809
|
AgentConversationParticipantAvatar,
|
|
7798
7810
|
{
|
|
7799
7811
|
presentation: enabledParticipantPresentation,
|
|
@@ -7812,7 +7824,7 @@ function AgentConversationParticipantAvatar({
|
|
|
7812
7824
|
speaker
|
|
7813
7825
|
}) {
|
|
7814
7826
|
if (presentation.status === "loading") {
|
|
7815
|
-
return /* @__PURE__ */
|
|
7827
|
+
return /* @__PURE__ */ jsx19(
|
|
7816
7828
|
Avatar,
|
|
7817
7829
|
{
|
|
7818
7830
|
"aria-hidden": "true",
|
|
@@ -7825,7 +7837,7 @@ function AgentConversationParticipantAvatar({
|
|
|
7825
7837
|
);
|
|
7826
7838
|
}
|
|
7827
7839
|
const participant = speaker === "user" ? presentation.user : presentation.agent;
|
|
7828
|
-
return /* @__PURE__ */
|
|
7840
|
+
return /* @__PURE__ */ jsx19(
|
|
7829
7841
|
Avatar,
|
|
7830
7842
|
{
|
|
7831
7843
|
"aria-label": participant.name,
|
|
@@ -7856,8 +7868,8 @@ function AgentCopyableMessageGroup({
|
|
|
7856
7868
|
children: [
|
|
7857
7869
|
children,
|
|
7858
7870
|
hasFooter ? /* @__PURE__ */ jsxs10("div", { className: AgentGUIConversation_styles_default.messageFooter, children: [
|
|
7859
|
-
timestamp ? /* @__PURE__ */
|
|
7860
|
-
copyText ? /* @__PURE__ */
|
|
7871
|
+
timestamp ? /* @__PURE__ */ jsx19("span", { className: AgentGUIConversation_styles_default.messageTimestamp, children: timestamp }) : null,
|
|
7872
|
+
copyText ? /* @__PURE__ */ jsx19(
|
|
7861
7873
|
AgentMessageCopyButton,
|
|
7862
7874
|
{
|
|
7863
7875
|
copyText,
|
|
@@ -7890,14 +7902,14 @@ function AgentMessageCopyButton({
|
|
|
7890
7902
|
}
|
|
7891
7903
|
}, [copyText, onCopyMessageText]);
|
|
7892
7904
|
const label = copied ? translate("agentHost.agentGui.messageCopied") : translate("agentHost.agentGui.copyMessage");
|
|
7893
|
-
return /* @__PURE__ */
|
|
7905
|
+
return /* @__PURE__ */ jsx19(
|
|
7894
7906
|
CanvasNodeGhostIconButton,
|
|
7895
7907
|
{
|
|
7896
7908
|
className: AgentGUIConversation_styles_default.messageCopyButton,
|
|
7897
7909
|
"aria-label": label,
|
|
7898
7910
|
"data-copied": copied ? "true" : "false",
|
|
7899
7911
|
onClick: handleClick,
|
|
7900
|
-
children: copied ? /* @__PURE__ */
|
|
7912
|
+
children: copied ? /* @__PURE__ */ jsx19(CheckIcon, { width: 14, height: 14, "aria-hidden": "true" }) : /* @__PURE__ */ jsx19(CopyIcon, { width: 14, height: 14, "aria-hidden": "true" })
|
|
7901
7913
|
}
|
|
7902
7914
|
);
|
|
7903
7915
|
}
|
|
@@ -7910,7 +7922,7 @@ function AgentSystemNoticeMessage({
|
|
|
7910
7922
|
const title = systemNoticeTitle(message);
|
|
7911
7923
|
if (notice?.noticeKind === "transport_retry") {
|
|
7912
7924
|
const retryText = transportRetryNoticeText(message);
|
|
7913
|
-
return /* @__PURE__ */
|
|
7925
|
+
return /* @__PURE__ */ jsx19(
|
|
7914
7926
|
"div",
|
|
7915
7927
|
{
|
|
7916
7928
|
role: "status",
|
|
@@ -7920,7 +7932,7 @@ function AgentSystemNoticeMessage({
|
|
|
7920
7932
|
);
|
|
7921
7933
|
}
|
|
7922
7934
|
if (isContextCompactionProgressNotice(message)) {
|
|
7923
|
-
return /* @__PURE__ */
|
|
7935
|
+
return /* @__PURE__ */ jsx19(
|
|
7924
7936
|
ContextCompactionProgressDivider,
|
|
7925
7937
|
{
|
|
7926
7938
|
startedAtUnixMs: message.occurredAtUnixMs
|
|
@@ -7928,7 +7940,7 @@ function AgentSystemNoticeMessage({
|
|
|
7928
7940
|
);
|
|
7929
7941
|
}
|
|
7930
7942
|
if (isContextCompactionNotice(message)) {
|
|
7931
|
-
return /* @__PURE__ */
|
|
7943
|
+
return /* @__PURE__ */ jsx19(
|
|
7932
7944
|
ContextCompactionDivider,
|
|
7933
7945
|
{
|
|
7934
7946
|
text: translate("agentHost.agentGui.contextCompactionCompleted")
|
|
@@ -7936,7 +7948,7 @@ function AgentSystemNoticeMessage({
|
|
|
7936
7948
|
);
|
|
7937
7949
|
}
|
|
7938
7950
|
if (isContextCompactionInterruptedNotice(message)) {
|
|
7939
|
-
return /* @__PURE__ */
|
|
7951
|
+
return /* @__PURE__ */ jsx19(
|
|
7940
7952
|
ContextCompactionDivider,
|
|
7941
7953
|
{
|
|
7942
7954
|
text: translate("agentHost.agentGui.contextCompactionInterrupted"),
|
|
@@ -7945,14 +7957,14 @@ function AgentSystemNoticeMessage({
|
|
|
7945
7957
|
);
|
|
7946
7958
|
}
|
|
7947
7959
|
const isStatusNotice = systemNoticeIsStatus(message);
|
|
7948
|
-
return /* @__PURE__ */
|
|
7960
|
+
return /* @__PURE__ */ jsx19(
|
|
7949
7961
|
"section",
|
|
7950
7962
|
{
|
|
7951
7963
|
role: isStatusNotice ? "status" : void 0,
|
|
7952
7964
|
className: `box-border w-full min-w-0 rounded-[8px] border p-3 text-[13px] leading-5 text-[var(--text-primary)] ${SYSTEM_NOTICE_CLASS_NAME}`,
|
|
7953
7965
|
children: /* @__PURE__ */ jsxs10("div", { className: "min-w-0", children: [
|
|
7954
|
-
/* @__PURE__ */
|
|
7955
|
-
detail ? /* @__PURE__ */
|
|
7966
|
+
/* @__PURE__ */ jsx19("div", { className: "font-medium text-[var(--text-primary)]", children: title }),
|
|
7967
|
+
detail ? /* @__PURE__ */ jsx19(AgentMessageDetailsDisclosure, { detail, className: "mt-1" }) : null
|
|
7956
7968
|
] })
|
|
7957
7969
|
}
|
|
7958
7970
|
);
|
|
@@ -8003,15 +8015,15 @@ function ContextCompactionDivider({
|
|
|
8003
8015
|
className: "box-border w-full min-w-0 py-2 text-[12px] leading-4 text-[var(--text-secondary)]",
|
|
8004
8016
|
children: [
|
|
8005
8017
|
/* @__PURE__ */ jsxs10("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
8006
|
-
/* @__PURE__ */
|
|
8018
|
+
/* @__PURE__ */ jsx19(
|
|
8007
8019
|
"span",
|
|
8008
8020
|
{
|
|
8009
8021
|
"aria-hidden": "true",
|
|
8010
8022
|
className: "h-px min-w-4 flex-1 bg-[var(--line-1)]"
|
|
8011
8023
|
}
|
|
8012
8024
|
),
|
|
8013
|
-
/* @__PURE__ */
|
|
8014
|
-
/* @__PURE__ */
|
|
8025
|
+
/* @__PURE__ */ jsx19("span", { className: "shrink-0 whitespace-nowrap", children: text }),
|
|
8026
|
+
/* @__PURE__ */ jsx19(
|
|
8015
8027
|
"span",
|
|
8016
8028
|
{
|
|
8017
8029
|
"aria-hidden": "true",
|
|
@@ -8019,7 +8031,7 @@ function ContextCompactionDivider({
|
|
|
8019
8031
|
}
|
|
8020
8032
|
)
|
|
8021
8033
|
] }),
|
|
8022
|
-
detail ? /* @__PURE__ */
|
|
8034
|
+
detail ? /* @__PURE__ */ jsx19("div", { className: "mt-1 min-w-0 whitespace-pre-wrap break-words text-center leading-5", children: detail }) : null
|
|
8023
8035
|
]
|
|
8024
8036
|
}
|
|
8025
8037
|
);
|
|
@@ -8031,7 +8043,7 @@ function ContextCompactionProgressDivider({
|
|
|
8031
8043
|
const elapsedSeconds = useElapsedSeconds(startedAtUnixMs);
|
|
8032
8044
|
const label = translate("agentHost.agentGui.contextCompactionInProgress");
|
|
8033
8045
|
const text = elapsedSeconds === null ? label : `${label} \xB7 ${formatElapsedSeconds(elapsedSeconds)}`;
|
|
8034
|
-
return /* @__PURE__ */
|
|
8046
|
+
return /* @__PURE__ */ jsx19(ContextCompactionDivider, { text });
|
|
8035
8047
|
}
|
|
8036
8048
|
function formatElapsedSeconds(seconds) {
|
|
8037
8049
|
if (seconds < 60) {
|
|
@@ -8048,7 +8060,7 @@ function AgentPlanCardMessage({
|
|
|
8048
8060
|
previewMode = false
|
|
8049
8061
|
}) {
|
|
8050
8062
|
"use memo";
|
|
8051
|
-
return /* @__PURE__ */
|
|
8063
|
+
return /* @__PURE__ */ jsx19(AgentPlanCard, { copyText: message.body, children: /* @__PURE__ */ jsx19(
|
|
8052
8064
|
AgentMessageMarkdown,
|
|
8053
8065
|
{
|
|
8054
8066
|
content: message.body,
|
|
@@ -8088,20 +8100,20 @@ function systemNoticeTitle(message) {
|
|
|
8088
8100
|
}
|
|
8089
8101
|
|
|
8090
8102
|
// shared/agentConversation/components/AgentProcessingRow.tsx
|
|
8091
|
-
import { jsx as
|
|
8103
|
+
import { jsx as jsx20, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
8092
8104
|
function AgentProcessingRow({
|
|
8093
8105
|
row,
|
|
8094
8106
|
label
|
|
8095
8107
|
}) {
|
|
8096
8108
|
"use memo";
|
|
8097
|
-
return /* @__PURE__ */
|
|
8109
|
+
return /* @__PURE__ */ jsx20(
|
|
8098
8110
|
"div",
|
|
8099
8111
|
{
|
|
8100
8112
|
"data-row-id": row.id,
|
|
8101
8113
|
className: "workspace-agents-status-panel__detail-processing inline-flex items-center gap-1.5",
|
|
8102
8114
|
children: /* @__PURE__ */ jsxs11("span", { className: "inline-flex min-w-0 items-center gap-1 font-semibold", children: [
|
|
8103
|
-
/* @__PURE__ */
|
|
8104
|
-
/* @__PURE__ */
|
|
8115
|
+
/* @__PURE__ */ jsx20("span", { children: processingLabel(row, label) }),
|
|
8116
|
+
/* @__PURE__ */ jsx20(LoadingEllipsis2, {})
|
|
8105
8117
|
] })
|
|
8106
8118
|
}
|
|
8107
8119
|
);
|
|
@@ -8120,9 +8132,9 @@ function LoadingEllipsis2() {
|
|
|
8120
8132
|
className: "tsh-inline-loading-ellipsis tsh-inline-loading-ellipsis--entry-timing",
|
|
8121
8133
|
"aria-hidden": "true",
|
|
8122
8134
|
children: [
|
|
8123
|
-
/* @__PURE__ */
|
|
8124
|
-
/* @__PURE__ */
|
|
8125
|
-
/* @__PURE__ */
|
|
8135
|
+
/* @__PURE__ */ jsx20("span", {}),
|
|
8136
|
+
/* @__PURE__ */ jsx20("span", {}),
|
|
8137
|
+
/* @__PURE__ */ jsx20("span", {})
|
|
8126
8138
|
]
|
|
8127
8139
|
}
|
|
8128
8140
|
);
|
|
@@ -8151,7 +8163,7 @@ import {
|
|
|
8151
8163
|
useAnimation as useAnimation2,
|
|
8152
8164
|
useReducedMotion as useReducedMotion2
|
|
8153
8165
|
} from "framer-motion";
|
|
8154
|
-
import { jsx as
|
|
8166
|
+
import { jsx as jsx21, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
8155
8167
|
var PEN_VARIANTS = {
|
|
8156
8168
|
normal: {
|
|
8157
8169
|
rotate: 0,
|
|
@@ -8251,7 +8263,7 @@ var FilePenLineIcon = forwardRef4(
|
|
|
8251
8263
|
},
|
|
8252
8264
|
[onMouseLeave, stopAnimation]
|
|
8253
8265
|
);
|
|
8254
|
-
return /* @__PURE__ */
|
|
8266
|
+
return /* @__PURE__ */ jsx21(
|
|
8255
8267
|
"div",
|
|
8256
8268
|
{
|
|
8257
8269
|
className: cn("inline-flex items-center justify-center", className),
|
|
@@ -8271,8 +8283,8 @@ var FilePenLineIcon = forwardRef4(
|
|
|
8271
8283
|
width: size,
|
|
8272
8284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8273
8285
|
children: [
|
|
8274
|
-
/* @__PURE__ */
|
|
8275
|
-
/* @__PURE__ */
|
|
8286
|
+
/* @__PURE__ */ jsx21("path", { d: "m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2" }),
|
|
8287
|
+
/* @__PURE__ */ jsx21(
|
|
8276
8288
|
motion2.path,
|
|
8277
8289
|
{
|
|
8278
8290
|
animate: controls,
|
|
@@ -8281,7 +8293,7 @@ var FilePenLineIcon = forwardRef4(
|
|
|
8281
8293
|
variants: PEN_VARIANTS
|
|
8282
8294
|
}
|
|
8283
8295
|
),
|
|
8284
|
-
/* @__PURE__ */
|
|
8296
|
+
/* @__PURE__ */ jsx21(
|
|
8285
8297
|
motion2.path,
|
|
8286
8298
|
{
|
|
8287
8299
|
animate: controls,
|
|
@@ -8312,7 +8324,7 @@ import {
|
|
|
8312
8324
|
useAnimation as useAnimation3,
|
|
8313
8325
|
useReducedMotion as useReducedMotion3
|
|
8314
8326
|
} from "framer-motion";
|
|
8315
|
-
import { jsx as
|
|
8327
|
+
import { jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
8316
8328
|
var FILE_TEXT_LINE_VARIANTS = {
|
|
8317
8329
|
normal: {
|
|
8318
8330
|
pathLength: 1,
|
|
@@ -8394,7 +8406,7 @@ var FileTextIcon = forwardRef5(
|
|
|
8394
8406
|
},
|
|
8395
8407
|
[onMouseLeave, stopAnimation]
|
|
8396
8408
|
);
|
|
8397
|
-
return /* @__PURE__ */
|
|
8409
|
+
return /* @__PURE__ */ jsx22(
|
|
8398
8410
|
"div",
|
|
8399
8411
|
{
|
|
8400
8412
|
className: cn("inline-flex items-center justify-center", className),
|
|
@@ -8435,9 +8447,9 @@ var FileTextIcon = forwardRef5(
|
|
|
8435
8447
|
width: size,
|
|
8436
8448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8437
8449
|
children: [
|
|
8438
|
-
/* @__PURE__ */
|
|
8439
|
-
/* @__PURE__ */
|
|
8440
|
-
/* @__PURE__ */
|
|
8450
|
+
/* @__PURE__ */ jsx22("path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z" }),
|
|
8451
|
+
/* @__PURE__ */ jsx22("path", { d: "M14 2v4a2 2 0 0 0 2 2h4" }),
|
|
8452
|
+
/* @__PURE__ */ jsx22(
|
|
8441
8453
|
motion3.path,
|
|
8442
8454
|
{
|
|
8443
8455
|
animate: controls,
|
|
@@ -8446,7 +8458,7 @@ var FileTextIcon = forwardRef5(
|
|
|
8446
8458
|
variants: FILE_TEXT_LINE_VARIANTS
|
|
8447
8459
|
}
|
|
8448
8460
|
),
|
|
8449
|
-
/* @__PURE__ */
|
|
8461
|
+
/* @__PURE__ */ jsx22(
|
|
8450
8462
|
motion3.path,
|
|
8451
8463
|
{
|
|
8452
8464
|
animate: controls,
|
|
@@ -8455,7 +8467,7 @@ var FileTextIcon = forwardRef5(
|
|
|
8455
8467
|
variants: FILE_TEXT_LINE_VARIANTS
|
|
8456
8468
|
}
|
|
8457
8469
|
),
|
|
8458
|
-
/* @__PURE__ */
|
|
8470
|
+
/* @__PURE__ */ jsx22(
|
|
8459
8471
|
motion3.path,
|
|
8460
8472
|
{
|
|
8461
8473
|
animate: controls,
|
|
@@ -8486,7 +8498,7 @@ import {
|
|
|
8486
8498
|
useAnimation as useAnimation4,
|
|
8487
8499
|
useReducedMotion as useReducedMotion4
|
|
8488
8500
|
} from "framer-motion";
|
|
8489
|
-
import { jsx as
|
|
8501
|
+
import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
8490
8502
|
var HAMMER_VARIANTS = {
|
|
8491
8503
|
normal: {
|
|
8492
8504
|
rotate: 0,
|
|
@@ -8569,7 +8581,7 @@ var HammerIcon = forwardRef6(
|
|
|
8569
8581
|
},
|
|
8570
8582
|
[onMouseLeave, stopAnimation]
|
|
8571
8583
|
);
|
|
8572
|
-
return /* @__PURE__ */
|
|
8584
|
+
return /* @__PURE__ */ jsx23(
|
|
8573
8585
|
"div",
|
|
8574
8586
|
{
|
|
8575
8587
|
className: cn("inline-flex items-center justify-center", className),
|
|
@@ -8593,9 +8605,9 @@ var HammerIcon = forwardRef6(
|
|
|
8593
8605
|
width: size,
|
|
8594
8606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8595
8607
|
children: [
|
|
8596
|
-
/* @__PURE__ */
|
|
8597
|
-
/* @__PURE__ */
|
|
8598
|
-
/* @__PURE__ */
|
|
8608
|
+
/* @__PURE__ */ jsx23("path", { d: "m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9" }),
|
|
8609
|
+
/* @__PURE__ */ jsx23("path", { d: "m18 15 4-4" }),
|
|
8610
|
+
/* @__PURE__ */ jsx23("path", { d: "m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" })
|
|
8599
8611
|
]
|
|
8600
8612
|
}
|
|
8601
8613
|
)
|
|
@@ -8606,17 +8618,17 @@ var HammerIcon = forwardRef6(
|
|
|
8606
8618
|
HammerIcon.displayName = "HammerIcon";
|
|
8607
8619
|
|
|
8608
8620
|
// app/renderer/components/icons/ToolsLinedIcon.tsx
|
|
8609
|
-
import { jsx as
|
|
8621
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
8610
8622
|
function ToolsLinedIcon(props) {
|
|
8611
8623
|
"use memo";
|
|
8612
|
-
return /* @__PURE__ */
|
|
8624
|
+
return /* @__PURE__ */ jsx24(
|
|
8613
8625
|
"svg",
|
|
8614
8626
|
{
|
|
8615
8627
|
viewBox: "0 0 24 24",
|
|
8616
8628
|
fill: "none",
|
|
8617
8629
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8618
8630
|
...props,
|
|
8619
|
-
children: /* @__PURE__ */
|
|
8631
|
+
children: /* @__PURE__ */ jsx24(
|
|
8620
8632
|
"path",
|
|
8621
8633
|
{
|
|
8622
8634
|
d: "M12.5166 2C14.3722 2.0005 16.1516 2.73783 17.4639 4.0498L19.1211 5.70703L19.3203 5.92676C19.7578 6.46048 19.9999 7.13198 20 7.82812V8.17188L20.0049 8.27051C20.0276 8.49945 20.1288 8.71482 20.293 8.87891L21.5303 10.1162C21.9083 9.9151 22.3885 9.97443 22.707 10.293C23.0976 10.6835 23.0976 11.3165 22.707 11.707L18.707 15.707C18.3165 16.0976 17.6835 16.0976 17.293 15.707C16.9744 15.3885 16.9151 14.9083 17.1162 14.5303L15.8789 13.293C15.7431 13.1571 15.5715 13.0672 15.3867 13.0264L6.33398 22.0801C6.0442 22.3699 5.69992 22.5999 5.32129 22.7568C4.94266 22.9137 4.53679 22.995 4.12695 22.9951C3.29924 22.9952 2.50538 22.6661 1.91992 22.0811C1.3344 21.4957 1.00502 20.701 1.00488 19.873C1.00487 19.0453 1.33373 18.2514 1.91895 17.666L11 8.58496V8.48535C10.9999 7.1596 10.4734 5.88777 9.53613 4.9502L8.29297 3.70703C8.00697 3.42103 7.92139 2.99086 8.07617 2.61719C8.23098 2.24359 8.59558 2 9 2H12.5166ZM3.33301 19.0801C3.12284 19.2904 3.00487 19.5757 3.00488 19.873C3.00493 20.1705 3.12359 20.4557 3.33398 20.666C3.54437 20.8763 3.82951 20.9952 4.12695 20.9951C4.27409 20.9951 4.41972 20.9655 4.55566 20.9092C4.69174 20.8528 4.81578 20.7702 4.91992 20.666L13.0859 12.5L11.499 10.9131L3.33301 19.0801ZM11.3721 4C12.4187 5.2535 12.9999 6.83919 13 8.48535V9.58594L14.4141 11H15.1719C15.9674 11.0002 16.7305 11.3164 17.293 11.8789L18.5 13.0859L20.0859 11.5L18.8789 10.293C18.3164 9.73051 18.0002 8.96738 18 8.17188V7.82812C17.9999 7.56296 17.8946 7.30857 17.707 7.12109L16.0498 5.46387C15.1124 4.52677 13.8411 4.00028 12.5156 4H11.3721Z",
|
|
@@ -8628,10 +8640,10 @@ function ToolsLinedIcon(props) {
|
|
|
8628
8640
|
}
|
|
8629
8641
|
|
|
8630
8642
|
// app/renderer/components/icons/WriteLinedIcon.tsx
|
|
8631
|
-
import { jsx as
|
|
8643
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
8632
8644
|
function WriteLinedIcon(props) {
|
|
8633
8645
|
"use memo";
|
|
8634
|
-
return /* @__PURE__ */
|
|
8646
|
+
return /* @__PURE__ */ jsx25(
|
|
8635
8647
|
"svg",
|
|
8636
8648
|
{
|
|
8637
8649
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -8639,7 +8651,7 @@ function WriteLinedIcon(props) {
|
|
|
8639
8651
|
fill: "none",
|
|
8640
8652
|
"aria-hidden": true,
|
|
8641
8653
|
...props,
|
|
8642
|
-
children: /* @__PURE__ */
|
|
8654
|
+
children: /* @__PURE__ */ jsx25(
|
|
8643
8655
|
"path",
|
|
8644
8656
|
{
|
|
8645
8657
|
fill: "currentColor",
|
|
@@ -9802,7 +9814,7 @@ function locationPaths(value) {
|
|
|
9802
9814
|
}
|
|
9803
9815
|
|
|
9804
9816
|
// shared/agentConversation/components/AgentToolCallHeader.tsx
|
|
9805
|
-
import { jsx as
|
|
9817
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
9806
9818
|
var TOOL_ROW_ICON_SIZE = 16;
|
|
9807
9819
|
function AgentToolCallHeader({
|
|
9808
9820
|
call,
|
|
@@ -9822,14 +9834,14 @@ function AgentToolCallHeader({
|
|
|
9822
9834
|
isActive ? "tsh-inline-scanlight-group" : ""
|
|
9823
9835
|
].filter(Boolean).join(" "),
|
|
9824
9836
|
children: [
|
|
9825
|
-
/* @__PURE__ */
|
|
9837
|
+
/* @__PURE__ */ jsx26("div", { className: "workspace-agents-status-panel__detail-tool-row-icon tsh-inline-scanlight-icon", children: isFailed ? /* @__PURE__ */ jsx26(
|
|
9826
9838
|
AlertCircle,
|
|
9827
9839
|
{
|
|
9828
9840
|
size: TOOL_ROW_ICON_SIZE,
|
|
9829
9841
|
strokeWidth: 2,
|
|
9830
9842
|
"aria-hidden": "true"
|
|
9831
9843
|
}
|
|
9832
|
-
) : isActive && isFileReadTool(call.toolName) ? /* @__PURE__ */
|
|
9844
|
+
) : isActive && isFileReadTool(call.toolName) ? /* @__PURE__ */ jsx26(
|
|
9833
9845
|
FileTextIcon,
|
|
9834
9846
|
{
|
|
9835
9847
|
size: TOOL_ROW_ICON_SIZE,
|
|
@@ -9838,7 +9850,7 @@ function AgentToolCallHeader({
|
|
|
9838
9850
|
className: "text-current",
|
|
9839
9851
|
"data-testid": "agent-tool-read-loading-icon"
|
|
9840
9852
|
}
|
|
9841
|
-
) : isActive && isFileWriteTool(call.toolName) ? /* @__PURE__ */
|
|
9853
|
+
) : isActive && isFileWriteTool(call.toolName) ? /* @__PURE__ */ jsx26(
|
|
9842
9854
|
FilePenLineIcon,
|
|
9843
9855
|
{
|
|
9844
9856
|
size: TOOL_ROW_ICON_SIZE,
|
|
@@ -9847,7 +9859,7 @@ function AgentToolCallHeader({
|
|
|
9847
9859
|
className: "text-current",
|
|
9848
9860
|
"data-testid": "agent-tool-write-loading-icon"
|
|
9849
9861
|
}
|
|
9850
|
-
) : isActive && isFileEditTool(call.toolName) ? /* @__PURE__ */
|
|
9862
|
+
) : isActive && isFileEditTool(call.toolName) ? /* @__PURE__ */ jsx26(
|
|
9851
9863
|
FileTextIcon,
|
|
9852
9864
|
{
|
|
9853
9865
|
size: TOOL_ROW_ICON_SIZE,
|
|
@@ -9856,7 +9868,7 @@ function AgentToolCallHeader({
|
|
|
9856
9868
|
className: "text-current",
|
|
9857
9869
|
"data-testid": "agent-tool-edit-loading-icon"
|
|
9858
9870
|
}
|
|
9859
|
-
) : isActive && isStdinWriteTool(call.toolName) ? /* @__PURE__ */
|
|
9871
|
+
) : isActive && isStdinWriteTool(call.toolName) ? /* @__PURE__ */ jsx26(
|
|
9860
9872
|
WriteLinedIcon,
|
|
9861
9873
|
{
|
|
9862
9874
|
width: TOOL_ROW_ICON_SIZE,
|
|
@@ -9868,7 +9880,7 @@ function AgentToolCallHeader({
|
|
|
9868
9880
|
) : isImageGenerationToolCall({
|
|
9869
9881
|
toolName: call.toolName,
|
|
9870
9882
|
displayName: call.name
|
|
9871
|
-
}) ? /* @__PURE__ */
|
|
9883
|
+
}) ? /* @__PURE__ */ jsx26(
|
|
9872
9884
|
ToolNameIcon,
|
|
9873
9885
|
{
|
|
9874
9886
|
toolName: call.toolName ?? call.name,
|
|
@@ -9878,7 +9890,7 @@ function AgentToolCallHeader({
|
|
|
9878
9890
|
className: "text-current",
|
|
9879
9891
|
"data-testid": isActive ? "agent-tool-image-generation-loading-icon" : "agent-tool-image-generation-icon"
|
|
9880
9892
|
}
|
|
9881
|
-
) : isWebTool(call.toolName) ? /* @__PURE__ */
|
|
9893
|
+
) : isWebTool(call.toolName) ? /* @__PURE__ */ jsx26(
|
|
9882
9894
|
ToolNameIcon,
|
|
9883
9895
|
{
|
|
9884
9896
|
toolName: call.toolName,
|
|
@@ -9888,7 +9900,7 @@ function AgentToolCallHeader({
|
|
|
9888
9900
|
className: "text-current",
|
|
9889
9901
|
"data-testid": isActive ? "agent-tool-web-loading-icon" : "agent-tool-web-icon"
|
|
9890
9902
|
}
|
|
9891
|
-
) : isFileReadTool(call.toolName) ? /* @__PURE__ */
|
|
9903
|
+
) : isFileReadTool(call.toolName) ? /* @__PURE__ */ jsx26(
|
|
9892
9904
|
ToolNameIcon,
|
|
9893
9905
|
{
|
|
9894
9906
|
toolName: call.toolName,
|
|
@@ -9898,7 +9910,7 @@ function AgentToolCallHeader({
|
|
|
9898
9910
|
className: "text-current",
|
|
9899
9911
|
"data-testid": "agent-tool-read-icon"
|
|
9900
9912
|
}
|
|
9901
|
-
) : call.statusKind === "working" || call.statusKind === "waiting" ? /* @__PURE__ */
|
|
9913
|
+
) : call.statusKind === "working" || call.statusKind === "waiting" ? /* @__PURE__ */ jsx26(
|
|
9902
9914
|
HammerIcon,
|
|
9903
9915
|
{
|
|
9904
9916
|
size: TOOL_ROW_ICON_SIZE,
|
|
@@ -9907,7 +9919,7 @@ function AgentToolCallHeader({
|
|
|
9907
9919
|
className: "text-current",
|
|
9908
9920
|
"data-testid": "agent-tool-call-loading-icon"
|
|
9909
9921
|
}
|
|
9910
|
-
) : /* @__PURE__ */
|
|
9922
|
+
) : /* @__PURE__ */ jsx26(
|
|
9911
9923
|
ToolsLinedIcon,
|
|
9912
9924
|
{
|
|
9913
9925
|
width: TOOL_ROW_ICON_SIZE,
|
|
@@ -9923,9 +9935,9 @@ function AgentToolCallHeader({
|
|
|
9923
9935
|
isActive ? "tsh-inline-scanlight-line" : ""
|
|
9924
9936
|
].filter(Boolean).join(" "),
|
|
9925
9937
|
children: [
|
|
9926
|
-
/* @__PURE__ */
|
|
9927
|
-
call.status ? /* @__PURE__ */
|
|
9928
|
-
isActive ? /* @__PURE__ */
|
|
9938
|
+
/* @__PURE__ */ jsx26("strong", { className: "workspace-agents-status-panel__detail-tool-row-title", children: formatInlineTitleLabel(call.name) }),
|
|
9939
|
+
call.status ? /* @__PURE__ */ jsx26("span", { className: "workspace-agents-status-panel__detail-tool-status", children: formatInlineStatusLabel2(call.status) }) : null,
|
|
9940
|
+
isActive ? /* @__PURE__ */ jsx26(LoadingEllipsis3, {}) : null,
|
|
9929
9941
|
diffStats ? /* @__PURE__ */ jsxs15("span", { className: "workspace-agents-status-panel__detail-tool-diff-stats", children: [
|
|
9930
9942
|
diffStats.added > 0 ? /* @__PURE__ */ jsxs15("span", { className: "workspace-agents-status-panel__detail-tool-diff-added", children: [
|
|
9931
9943
|
"+",
|
|
@@ -9939,7 +9951,7 @@ function AgentToolCallHeader({
|
|
|
9939
9951
|
]
|
|
9940
9952
|
}
|
|
9941
9953
|
),
|
|
9942
|
-
hasDetail ? expanded ? /* @__PURE__ */
|
|
9954
|
+
hasDetail ? expanded ? /* @__PURE__ */ jsx26(
|
|
9943
9955
|
ChevronDown5,
|
|
9944
9956
|
{
|
|
9945
9957
|
size: 12,
|
|
@@ -9947,7 +9959,7 @@ function AgentToolCallHeader({
|
|
|
9947
9959
|
"aria-hidden": "true",
|
|
9948
9960
|
className: "workspace-agents-status-panel__detail-tool-row-chevron"
|
|
9949
9961
|
}
|
|
9950
|
-
) : /* @__PURE__ */
|
|
9962
|
+
) : /* @__PURE__ */ jsx26(
|
|
9951
9963
|
ChevronRight4,
|
|
9952
9964
|
{
|
|
9953
9965
|
size: 12,
|
|
@@ -9986,9 +9998,9 @@ function formatInlineTitleLabel(label) {
|
|
|
9986
9998
|
function LoadingEllipsis3() {
|
|
9987
9999
|
"use memo";
|
|
9988
10000
|
return /* @__PURE__ */ jsxs15("span", { className: "tsh-inline-loading-ellipsis", "aria-hidden": "true", children: [
|
|
9989
|
-
/* @__PURE__ */
|
|
9990
|
-
/* @__PURE__ */
|
|
9991
|
-
/* @__PURE__ */
|
|
10001
|
+
/* @__PURE__ */ jsx26("span", {}),
|
|
10002
|
+
/* @__PURE__ */ jsx26("span", {}),
|
|
10003
|
+
/* @__PURE__ */ jsx26("span", {})
|
|
9992
10004
|
] });
|
|
9993
10005
|
}
|
|
9994
10006
|
function diffStatsForCall(call) {
|
|
@@ -10061,7 +10073,7 @@ function normalizeToolName7(value) {
|
|
|
10061
10073
|
import { useMemo as useMemo2, useState as useState11 } from "react";
|
|
10062
10074
|
|
|
10063
10075
|
// shared/agentConversation/components/tool-renderers/AgentPathTailLabel.tsx
|
|
10064
|
-
import { jsx as
|
|
10076
|
+
import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
10065
10077
|
function AgentPathTailLabel({
|
|
10066
10078
|
path,
|
|
10067
10079
|
fallback,
|
|
@@ -10071,12 +10083,12 @@ function AgentPathTailLabel({
|
|
|
10071
10083
|
const label = path?.trim() || fallback;
|
|
10072
10084
|
const parts = splitPathTail(label);
|
|
10073
10085
|
if (!parts) {
|
|
10074
|
-
return /* @__PURE__ */
|
|
10086
|
+
return /* @__PURE__ */ jsx27(
|
|
10075
10087
|
"span",
|
|
10076
10088
|
{
|
|
10077
10089
|
className: `agent-path-tail-label ${className ?? ""}`,
|
|
10078
10090
|
title: path ?? void 0,
|
|
10079
|
-
children: /* @__PURE__ */
|
|
10091
|
+
children: /* @__PURE__ */ jsx27("span", { className: "agent-path-tail-label__file", children: label })
|
|
10080
10092
|
}
|
|
10081
10093
|
);
|
|
10082
10094
|
}
|
|
@@ -10086,8 +10098,8 @@ function AgentPathTailLabel({
|
|
|
10086
10098
|
className: `agent-path-tail-label ${className ?? ""}`,
|
|
10087
10099
|
title: path ?? void 0,
|
|
10088
10100
|
children: [
|
|
10089
|
-
/* @__PURE__ */
|
|
10090
|
-
/* @__PURE__ */
|
|
10101
|
+
/* @__PURE__ */ jsx27("span", { className: "agent-path-tail-label__directory", children: parts.directory }),
|
|
10102
|
+
/* @__PURE__ */ jsx27("span", { className: "agent-path-tail-label__file", children: parts.fileName })
|
|
10091
10103
|
]
|
|
10092
10104
|
}
|
|
10093
10105
|
);
|
|
@@ -10106,7 +10118,7 @@ function splitPathTail(value) {
|
|
|
10106
10118
|
}
|
|
10107
10119
|
|
|
10108
10120
|
// shared/agentConversation/components/tool-renderers/code/AgentCodeBlock.tsx
|
|
10109
|
-
import { Fragment as Fragment3, jsx as
|
|
10121
|
+
import { Fragment as Fragment3, jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
10110
10122
|
var MAX_VISIBLE_LINES = 120;
|
|
10111
10123
|
function AgentCodeBlock({
|
|
10112
10124
|
path,
|
|
@@ -10141,7 +10153,7 @@ function AgentCodeBlock({
|
|
|
10141
10153
|
if (!normalized) {
|
|
10142
10154
|
return null;
|
|
10143
10155
|
}
|
|
10144
|
-
const disclosureButton = collapsible && lineCount > MAX_VISIBLE_LINES ? /* @__PURE__ */
|
|
10156
|
+
const disclosureButton = collapsible && lineCount > MAX_VISIBLE_LINES ? /* @__PURE__ */ jsx28(
|
|
10145
10157
|
"button",
|
|
10146
10158
|
{
|
|
10147
10159
|
type: "button",
|
|
@@ -10152,13 +10164,13 @@ function AgentCodeBlock({
|
|
|
10152
10164
|
})
|
|
10153
10165
|
}
|
|
10154
10166
|
) : null;
|
|
10155
|
-
return /* @__PURE__ */
|
|
10167
|
+
return /* @__PURE__ */ jsx28(
|
|
10156
10168
|
"div",
|
|
10157
10169
|
{
|
|
10158
10170
|
className: `workspace-agents-status-panel__detail-tool-code overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--background-panel)] ${flat ? "workspace-agents-status-panel__detail-tool-code--flat" : ""}`,
|
|
10159
10171
|
children: flat ? /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
10160
10172
|
showHeader ? /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between gap-3 border-b border-[var(--line-2)] bg-[var(--transparency-block)] px-3 py-1.5 text-[11px]", children: [
|
|
10161
|
-
/* @__PURE__ */
|
|
10173
|
+
/* @__PURE__ */ jsx28(
|
|
10162
10174
|
"span",
|
|
10163
10175
|
{
|
|
10164
10176
|
className: "truncate font-[var(--tsh-font-mono)] text-[var(--text-secondary)]",
|
|
@@ -10177,8 +10189,8 @@ function AgentCodeBlock({
|
|
|
10177
10189
|
{
|
|
10178
10190
|
className: "grid grid-cols-[56px_minmax(0,1fr)] border-l-[3px] border-l-[var(--state-success)] font-[var(--tsh-font-mono)] text-[11px] leading-6",
|
|
10179
10191
|
children: [
|
|
10180
|
-
/* @__PURE__ */
|
|
10181
|
-
/* @__PURE__ */
|
|
10192
|
+
/* @__PURE__ */ jsx28("div", { className: "select-none px-2.5 text-right text-[color:color-mix(in_srgb,var(--state-success)_90%,transparent)]", children: line.lineNumber }),
|
|
10193
|
+
/* @__PURE__ */ jsx28("pre", { className: "m-0 overflow-x-auto px-3 py-0 text-[var(--text-primary)]", children: /* @__PURE__ */ jsx28("code", { children: line.line || " " }) })
|
|
10182
10194
|
]
|
|
10183
10195
|
},
|
|
10184
10196
|
line.key
|
|
@@ -10187,7 +10199,7 @@ function AgentCodeBlock({
|
|
|
10187
10199
|
] })
|
|
10188
10200
|
] }) : /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
10189
10201
|
showHeader ? /* @__PURE__ */ jsxs17("div", { className: "flex items-center justify-between gap-3 border-b border-[var(--line-2)] bg-[var(--transparency-block)] px-3 py-1.5 text-[11px] text-[var(--text-secondary)]", children: [
|
|
10190
|
-
/* @__PURE__ */
|
|
10202
|
+
/* @__PURE__ */ jsx28(
|
|
10191
10203
|
AgentPathTailLabel,
|
|
10192
10204
|
{
|
|
10193
10205
|
path,
|
|
@@ -10201,7 +10213,7 @@ function AgentCodeBlock({
|
|
|
10201
10213
|
" lines"
|
|
10202
10214
|
] })
|
|
10203
10215
|
] }) : null,
|
|
10204
|
-
/* @__PURE__ */
|
|
10216
|
+
/* @__PURE__ */ jsx28("pre", { className: "workspace-agents-status-panel__detail-scroll-region max-h-[200px] overflow-auto px-3 py-2 text-[11px] leading-5 text-[var(--text-primary)]", children: /* @__PURE__ */ jsx28("code", { children: visibleContent }) }),
|
|
10205
10217
|
disclosureButton
|
|
10206
10218
|
] })
|
|
10207
10219
|
}
|
|
@@ -10235,7 +10247,7 @@ import {
|
|
|
10235
10247
|
useAnimation as useAnimation5,
|
|
10236
10248
|
useReducedMotion as useReducedMotion5
|
|
10237
10249
|
} from "framer-motion";
|
|
10238
|
-
import { jsx as
|
|
10250
|
+
import { jsx as jsx29, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10239
10251
|
var ATOM_ICON_ANIMATION_DURATION = 0.75;
|
|
10240
10252
|
var ATOM_ICON_REPEAT_DELAY = 1.5;
|
|
10241
10253
|
var PATH_VARIANTS = {
|
|
@@ -10327,7 +10339,7 @@ var AtomIcon = forwardRef7(
|
|
|
10327
10339
|
},
|
|
10328
10340
|
[onMouseLeave, stopAnimation]
|
|
10329
10341
|
);
|
|
10330
|
-
return /* @__PURE__ */
|
|
10342
|
+
return /* @__PURE__ */ jsx29(
|
|
10331
10343
|
"div",
|
|
10332
10344
|
{
|
|
10333
10345
|
className: cn("inline-flex items-center justify-center", className),
|
|
@@ -10347,7 +10359,7 @@ var AtomIcon = forwardRef7(
|
|
|
10347
10359
|
width: size,
|
|
10348
10360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10349
10361
|
children: [
|
|
10350
|
-
/* @__PURE__ */
|
|
10362
|
+
/* @__PURE__ */ jsx29(
|
|
10351
10363
|
motion5.circle,
|
|
10352
10364
|
{
|
|
10353
10365
|
animate: controls,
|
|
@@ -10358,7 +10370,7 @@ var AtomIcon = forwardRef7(
|
|
|
10358
10370
|
variants: PATH_VARIANTS
|
|
10359
10371
|
}
|
|
10360
10372
|
),
|
|
10361
|
-
/* @__PURE__ */
|
|
10373
|
+
/* @__PURE__ */ jsx29(
|
|
10362
10374
|
motion5.path,
|
|
10363
10375
|
{
|
|
10364
10376
|
animate: controls,
|
|
@@ -10367,7 +10379,7 @@ var AtomIcon = forwardRef7(
|
|
|
10367
10379
|
variants: PATH_VARIANTS
|
|
10368
10380
|
}
|
|
10369
10381
|
),
|
|
10370
|
-
/* @__PURE__ */
|
|
10382
|
+
/* @__PURE__ */ jsx29(
|
|
10371
10383
|
motion5.path,
|
|
10372
10384
|
{
|
|
10373
10385
|
animate: controls,
|
|
@@ -10386,7 +10398,7 @@ var AtomIcon = forwardRef7(
|
|
|
10386
10398
|
AtomIcon.displayName = "AtomIcon";
|
|
10387
10399
|
|
|
10388
10400
|
// shared/agentConversation/components/tool-renderers/file-diff/AgentMonacoDiffViewer.tsx
|
|
10389
|
-
import { jsx as
|
|
10401
|
+
import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
10390
10402
|
var MonacoDiffEditor = lazy(async () => {
|
|
10391
10403
|
const module = await import("@monaco-editor/react");
|
|
10392
10404
|
return { default: module.DiffEditor };
|
|
@@ -10404,12 +10416,12 @@ function AgentMonacoDiffViewer({
|
|
|
10404
10416
|
{
|
|
10405
10417
|
className: `overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--background-panel)] ${flat ? "workspace-agents-status-panel__detail-tool-monaco--flat" : ""}`,
|
|
10406
10418
|
children: [
|
|
10407
|
-
showHeader ? /* @__PURE__ */
|
|
10419
|
+
showHeader ? /* @__PURE__ */ jsx30(
|
|
10408
10420
|
"div",
|
|
10409
10421
|
{
|
|
10410
10422
|
className: "border-b border-[var(--line-2)] bg-[var(--transparency-block)] px-3 py-1.5 text-[11px] text-[var(--text-secondary)]",
|
|
10411
10423
|
"data-agent-diff-header": "true",
|
|
10412
|
-
children: /* @__PURE__ */
|
|
10424
|
+
children: /* @__PURE__ */ jsx30(
|
|
10413
10425
|
AgentPathTailLabel,
|
|
10414
10426
|
{
|
|
10415
10427
|
path,
|
|
@@ -10419,11 +10431,11 @@ function AgentMonacoDiffViewer({
|
|
|
10419
10431
|
)
|
|
10420
10432
|
}
|
|
10421
10433
|
) : null,
|
|
10422
|
-
/* @__PURE__ */
|
|
10434
|
+
/* @__PURE__ */ jsx30("div", { className: "h-[220px] bg-[var(--background-panel)]", children: /* @__PURE__ */ jsx30(
|
|
10423
10435
|
Suspense,
|
|
10424
10436
|
{
|
|
10425
10437
|
fallback: /* @__PURE__ */ jsxs19("div", { className: "flex items-center gap-1.5 px-3 py-2.5 text-[11px] text-[var(--text-secondary)]", children: [
|
|
10426
|
-
/* @__PURE__ */
|
|
10438
|
+
/* @__PURE__ */ jsx30(
|
|
10427
10439
|
AtomIcon,
|
|
10428
10440
|
{
|
|
10429
10441
|
size: 14,
|
|
@@ -10432,9 +10444,9 @@ function AgentMonacoDiffViewer({
|
|
|
10432
10444
|
className: "shrink-0"
|
|
10433
10445
|
}
|
|
10434
10446
|
),
|
|
10435
|
-
/* @__PURE__ */
|
|
10447
|
+
/* @__PURE__ */ jsx30("span", { children: translate("agentHost.agentTool.details.loadingDiff") })
|
|
10436
10448
|
] }),
|
|
10437
|
-
children: /* @__PURE__ */
|
|
10449
|
+
children: /* @__PURE__ */ jsx30(
|
|
10438
10450
|
MonacoDiffEditor,
|
|
10439
10451
|
{
|
|
10440
10452
|
original: oldValue,
|
|
@@ -10480,7 +10492,7 @@ function languageForPath2(path) {
|
|
|
10480
10492
|
import { useMemo as useMemo3, useState as useState12 } from "react";
|
|
10481
10493
|
|
|
10482
10494
|
// shared/agentConversation/components/tool-renderers/AgentToolScrollArea.tsx
|
|
10483
|
-
import { jsx as
|
|
10495
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
10484
10496
|
function AgentToolScrollArea({
|
|
10485
10497
|
children,
|
|
10486
10498
|
className,
|
|
@@ -10489,7 +10501,7 @@ function AgentToolScrollArea({
|
|
|
10489
10501
|
...props
|
|
10490
10502
|
}) {
|
|
10491
10503
|
"use memo";
|
|
10492
|
-
return /* @__PURE__ */
|
|
10504
|
+
return /* @__PURE__ */ jsx31(
|
|
10493
10505
|
CustomScrollArea,
|
|
10494
10506
|
{
|
|
10495
10507
|
className: cn(
|
|
@@ -10593,7 +10605,7 @@ function parseAgentUnifiedDiffStats(diffText) {
|
|
|
10593
10605
|
}
|
|
10594
10606
|
|
|
10595
10607
|
// shared/agentConversation/components/tool-renderers/file-diff/AgentUnifiedPatchViewer.tsx
|
|
10596
|
-
import { Fragment as Fragment4, jsx as
|
|
10608
|
+
import { Fragment as Fragment4, jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
10597
10609
|
var MAX_VISIBLE_LINES2 = 120;
|
|
10598
10610
|
function AgentUnifiedPatchViewer({
|
|
10599
10611
|
path,
|
|
@@ -10639,7 +10651,7 @@ function AgentUnifiedPatchViewer({
|
|
|
10639
10651
|
if (!normalized) {
|
|
10640
10652
|
return null;
|
|
10641
10653
|
}
|
|
10642
|
-
const disclosureButton = collapsible && lines.length > MAX_VISIBLE_LINES2 ? /* @__PURE__ */
|
|
10654
|
+
const disclosureButton = collapsible && lines.length > MAX_VISIBLE_LINES2 ? /* @__PURE__ */ jsx32(
|
|
10643
10655
|
"button",
|
|
10644
10656
|
{
|
|
10645
10657
|
type: "button",
|
|
@@ -10650,7 +10662,7 @@ function AgentUnifiedPatchViewer({
|
|
|
10650
10662
|
})
|
|
10651
10663
|
}
|
|
10652
10664
|
) : null;
|
|
10653
|
-
return /* @__PURE__ */
|
|
10665
|
+
return /* @__PURE__ */ jsx32(
|
|
10654
10666
|
"div",
|
|
10655
10667
|
{
|
|
10656
10668
|
className: `workspace-agents-status-panel__detail-tool-diff overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--background-panel)] ${flat ? "workspace-agents-status-panel__detail-tool-diff--flat" : ""}`,
|
|
@@ -10661,7 +10673,7 @@ function AgentUnifiedPatchViewer({
|
|
|
10661
10673
|
className: "flex items-center justify-between gap-3 border-b border-[var(--line-2)] bg-[var(--transparency-block)] px-3 py-1.5 text-[11px]",
|
|
10662
10674
|
"data-agent-diff-header": "true",
|
|
10663
10675
|
children: [
|
|
10664
|
-
/* @__PURE__ */
|
|
10676
|
+
/* @__PURE__ */ jsx32(
|
|
10665
10677
|
"span",
|
|
10666
10678
|
{
|
|
10667
10679
|
className: "truncate font-[var(--tsh-font-mono)] text-[var(--text-secondary)]",
|
|
@@ -10684,18 +10696,18 @@ function AgentUnifiedPatchViewer({
|
|
|
10684
10696
|
) : null,
|
|
10685
10697
|
/* @__PURE__ */ jsxs20(AgentToolScrollArea, { viewportClassName: "agent-tool-diff__viewport", children: [
|
|
10686
10698
|
visibleDiffLines.map(({ key, line }) => /* @__PURE__ */ jsxs20("div", { className: flatLineClassName(line.kind), children: [
|
|
10687
|
-
/* @__PURE__ */
|
|
10688
|
-
/* @__PURE__ */
|
|
10699
|
+
/* @__PURE__ */ jsx32("div", { className: "select-none px-2.5 text-right text-[var(--text-tertiary)]", children: line.newLineNumber ?? line.oldLineNumber ?? "" }),
|
|
10700
|
+
/* @__PURE__ */ jsx32("pre", { className: "m-0 overflow-x-auto px-3 py-0 text-[var(--text-primary)]", children: /* @__PURE__ */ jsx32("code", { children: line.text || " " }) })
|
|
10689
10701
|
] }, key)),
|
|
10690
10702
|
disclosureButton
|
|
10691
10703
|
] })
|
|
10692
10704
|
] }) : /* @__PURE__ */ jsxs20(Fragment4, { children: [
|
|
10693
|
-
showHeader ? /* @__PURE__ */
|
|
10705
|
+
showHeader ? /* @__PURE__ */ jsx32(
|
|
10694
10706
|
"div",
|
|
10695
10707
|
{
|
|
10696
10708
|
className: "border-b border-[var(--line-2)] bg-[var(--transparency-block)] px-3 py-1.5 text-[11px] text-[var(--text-secondary)]",
|
|
10697
10709
|
"data-agent-diff-header": "true",
|
|
10698
|
-
children: /* @__PURE__ */
|
|
10710
|
+
children: /* @__PURE__ */ jsx32(
|
|
10699
10711
|
AgentPathTailLabel,
|
|
10700
10712
|
{
|
|
10701
10713
|
path,
|
|
@@ -10705,7 +10717,7 @@ function AgentUnifiedPatchViewer({
|
|
|
10705
10717
|
)
|
|
10706
10718
|
}
|
|
10707
10719
|
) : null,
|
|
10708
|
-
/* @__PURE__ */
|
|
10720
|
+
/* @__PURE__ */ jsx32(AgentToolScrollArea, { viewportClassName: "agent-tool-diff__viewport px-4 py-3 text-[11px] leading-5", children: visibleLines.map(({ key, line }) => /* @__PURE__ */ jsx32("div", { className: lineClassName(line), children: line || " " }, key)) }),
|
|
10709
10721
|
disclosureButton
|
|
10710
10722
|
] })
|
|
10711
10723
|
}
|
|
@@ -10760,14 +10772,14 @@ function lineClassName(line) {
|
|
|
10760
10772
|
|
|
10761
10773
|
// shared/agentConversation/components/tool-renderers/agentToolContentShared.tsx
|
|
10762
10774
|
import {
|
|
10763
|
-
createContext,
|
|
10764
|
-
useContext,
|
|
10775
|
+
createContext as createContext2,
|
|
10776
|
+
useContext as useContext2,
|
|
10765
10777
|
useState as useState13
|
|
10766
10778
|
} from "react";
|
|
10767
10779
|
import { ChevronDown as ChevronDown6, ChevronRight as ChevronRight5 } from "lucide-react";
|
|
10768
10780
|
|
|
10769
10781
|
// shared/agentConversation/components/tool-renderers/AgentReadContent.tsx
|
|
10770
|
-
import { jsx as
|
|
10782
|
+
import { jsx as jsx33, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
10771
10783
|
function AgentReadContent({
|
|
10772
10784
|
call
|
|
10773
10785
|
}) {
|
|
@@ -10777,7 +10789,7 @@ function AgentReadContent({
|
|
|
10777
10789
|
const outputText = stringValue8(call.output?.text) ?? stringValue8(call.output?.output) ?? contentText2(call.output?.content) ?? stringValue8(call.output?.aggregated_output) ?? stringValue8(call.output?.formatted_output) ?? stringValue8(call.output?.stdout) ?? (!file ? call.summary.trim() || null : null);
|
|
10778
10790
|
const fileLineRange = fileRange(file);
|
|
10779
10791
|
const fileTotalLines = numericValue(file?.totalLines);
|
|
10780
|
-
return /* @__PURE__ */
|
|
10792
|
+
return /* @__PURE__ */ jsx33("div", { className: "workspace-agents-status-panel__detail-tool-body workspace-agents-status-panel__detail-tool-body--plain", children: outputText ? /* @__PURE__ */ jsx33(
|
|
10781
10793
|
AgentCodeBlock,
|
|
10782
10794
|
{
|
|
10783
10795
|
path,
|
|
@@ -10785,7 +10797,7 @@ function AgentReadContent({
|
|
|
10785
10797
|
language: languageForPath3(path)
|
|
10786
10798
|
}
|
|
10787
10799
|
) : path || fileLineRange || fileTotalLines !== null ? /* @__PURE__ */ jsxs21("div", { className: "rounded-[8px] border border-[var(--line-2)] bg-[var(--background-panel)] px-3 py-2", children: [
|
|
10788
|
-
path ? /* @__PURE__ */
|
|
10800
|
+
path ? /* @__PURE__ */ jsx33(
|
|
10789
10801
|
AgentPathTailLabel,
|
|
10790
10802
|
{
|
|
10791
10803
|
path,
|
|
@@ -10793,7 +10805,7 @@ function AgentReadContent({
|
|
|
10793
10805
|
className: "font-[var(--tsh-font-mono)] text-[11px] text-[var(--text-secondary)]"
|
|
10794
10806
|
}
|
|
10795
10807
|
) : null,
|
|
10796
|
-
fileLineRange || fileTotalLines !== null ? /* @__PURE__ */
|
|
10808
|
+
fileLineRange || fileTotalLines !== null ? /* @__PURE__ */ jsx33("div", { className: "mt-1 text-[11px] text-[var(--text-secondary)]", children: [
|
|
10797
10809
|
fileLineRange,
|
|
10798
10810
|
fileTotalLines !== null ? `${fileTotalLines} lines` : null
|
|
10799
10811
|
].filter((value) => Boolean(value)).join(" \xB7 ") }) : null
|
|
@@ -10857,14 +10869,14 @@ function languageForPath3(path) {
|
|
|
10857
10869
|
}
|
|
10858
10870
|
|
|
10859
10871
|
// shared/agentConversation/components/tool-renderers/agentToolContentShared.tsx
|
|
10860
|
-
import { jsx as
|
|
10861
|
-
var AgentToolPreviewModeContext =
|
|
10872
|
+
import { jsx as jsx34, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
10873
|
+
var AgentToolPreviewModeContext = createContext2(false);
|
|
10862
10874
|
function AgentToolPreviewModeProvider({
|
|
10863
10875
|
children,
|
|
10864
10876
|
previewMode
|
|
10865
10877
|
}) {
|
|
10866
10878
|
"use memo";
|
|
10867
|
-
return /* @__PURE__ */
|
|
10879
|
+
return /* @__PURE__ */ jsx34(AgentToolPreviewModeContext.Provider, { value: previewMode, children });
|
|
10868
10880
|
}
|
|
10869
10881
|
function ToolSection({
|
|
10870
10882
|
title,
|
|
@@ -10875,7 +10887,7 @@ function ToolSection({
|
|
|
10875
10887
|
return null;
|
|
10876
10888
|
}
|
|
10877
10889
|
return /* @__PURE__ */ jsxs22("section", { className: "workspace-agents-status-panel__detail-tool-section-block", children: [
|
|
10878
|
-
/* @__PURE__ */
|
|
10890
|
+
/* @__PURE__ */ jsx34("div", { className: "workspace-agents-status-panel__detail-tool-section-title", children: title }),
|
|
10879
10891
|
children
|
|
10880
10892
|
] });
|
|
10881
10893
|
}
|
|
@@ -10886,13 +10898,13 @@ function ToolMarkdownBlock({
|
|
|
10886
10898
|
previewMode
|
|
10887
10899
|
}) {
|
|
10888
10900
|
"use memo";
|
|
10889
|
-
const contextPreviewMode =
|
|
10901
|
+
const contextPreviewMode = useContext2(AgentToolPreviewModeContext);
|
|
10890
10902
|
const effectivePreviewMode = previewMode ?? contextPreviewMode;
|
|
10891
10903
|
const normalized = content.trim();
|
|
10892
10904
|
if (!normalized) {
|
|
10893
10905
|
return null;
|
|
10894
10906
|
}
|
|
10895
|
-
return /* @__PURE__ */
|
|
10907
|
+
return /* @__PURE__ */ jsx34(
|
|
10896
10908
|
AgentMessageMarkdown,
|
|
10897
10909
|
{
|
|
10898
10910
|
content: normalized,
|
|
@@ -10956,7 +10968,7 @@ function AgentDefaultToolContent({
|
|
|
10956
10968
|
return null;
|
|
10957
10969
|
}
|
|
10958
10970
|
return /* @__PURE__ */ jsxs22("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
10959
|
-
sections.map((section) => /* @__PURE__ */
|
|
10971
|
+
sections.map((section) => /* @__PURE__ */ jsx34(ToolSection, { title: section.title, children: /* @__PURE__ */ jsx34(
|
|
10960
10972
|
ToolMarkdownBlock,
|
|
10961
10973
|
{
|
|
10962
10974
|
content: section.content,
|
|
@@ -10964,7 +10976,7 @@ function AgentDefaultToolContent({
|
|
|
10964
10976
|
collapsible: section.collapsible
|
|
10965
10977
|
}
|
|
10966
10978
|
) }, section.key)),
|
|
10967
|
-
/* @__PURE__ */
|
|
10979
|
+
/* @__PURE__ */ jsx34(RawPayloadSection, { payload: rawPayload })
|
|
10968
10980
|
] });
|
|
10969
10981
|
}
|
|
10970
10982
|
function hasAgentToolContent(call) {
|
|
@@ -11100,8 +11112,8 @@ function RawPayloadSection({
|
|
|
11100
11112
|
"aria-expanded": expanded,
|
|
11101
11113
|
onClick: () => setExpanded((value) => !value),
|
|
11102
11114
|
children: [
|
|
11103
|
-
/* @__PURE__ */
|
|
11104
|
-
expanded ? /* @__PURE__ */
|
|
11115
|
+
/* @__PURE__ */ jsx34("span", { children: translate("agentHost.agentTool.details.rawPayload") }),
|
|
11116
|
+
expanded ? /* @__PURE__ */ jsx34(
|
|
11105
11117
|
ChevronDown6,
|
|
11106
11118
|
{
|
|
11107
11119
|
size: 12,
|
|
@@ -11109,7 +11121,7 @@ function RawPayloadSection({
|
|
|
11109
11121
|
"aria-hidden": "true",
|
|
11110
11122
|
className: "shrink-0 opacity-0 transition-opacity duration-150 group-hover/raw-payload:opacity-100 group-focus-visible/raw-payload:opacity-100"
|
|
11111
11123
|
}
|
|
11112
|
-
) : /* @__PURE__ */
|
|
11124
|
+
) : /* @__PURE__ */ jsx34(
|
|
11113
11125
|
ChevronRight5,
|
|
11114
11126
|
{
|
|
11115
11127
|
size: 12,
|
|
@@ -11121,7 +11133,7 @@ function RawPayloadSection({
|
|
|
11121
11133
|
]
|
|
11122
11134
|
}
|
|
11123
11135
|
),
|
|
11124
|
-
/* @__PURE__ */
|
|
11136
|
+
/* @__PURE__ */ jsx34(CollapsibleReveal, { expanded, preMountOnIdle: true, children: /* @__PURE__ */ jsx34("pre", { className: "workspace-agents-status-panel__detail-scroll-region mt-2 max-h-[320px] overflow-auto rounded-[8px] border border-[var(--line-2)] bg-[var(--transparency-block)] px-3 py-2 text-[11px] leading-[1.45] text-[var(--text-secondary)]", children: /* @__PURE__ */ jsx34("code", { children: rawJson }) }) })
|
|
11125
11137
|
] });
|
|
11126
11138
|
}
|
|
11127
11139
|
function rawPayloadFromCall(call) {
|
|
@@ -11169,7 +11181,7 @@ function normalizeToolSectionContent(value) {
|
|
|
11169
11181
|
}
|
|
11170
11182
|
|
|
11171
11183
|
// shared/agentConversation/components/tool-renderers/AgentEditContent.tsx
|
|
11172
|
-
import { jsx as
|
|
11184
|
+
import { jsx as jsx35, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11173
11185
|
function AgentEditContent({
|
|
11174
11186
|
call,
|
|
11175
11187
|
onLinkClick
|
|
@@ -11190,8 +11202,8 @@ function AgentEditContent({
|
|
|
11190
11202
|
return null;
|
|
11191
11203
|
}
|
|
11192
11204
|
return /* @__PURE__ */ jsxs23("div", { className: "workspace-agents-status-panel__detail-tool-body workspace-agents-status-panel__detail-tool-body--flat", children: [
|
|
11193
|
-
path && files.length === 0 ? /* @__PURE__ */
|
|
11194
|
-
patchFiles.map((candidate) => /* @__PURE__ */
|
|
11205
|
+
path && files.length === 0 ? /* @__PURE__ */ jsx35(ToolMarkdownBlock, { content: path, onLinkClick }) : null,
|
|
11206
|
+
patchFiles.map((candidate) => /* @__PURE__ */ jsx35(
|
|
11195
11207
|
AgentUnifiedPatchViewer,
|
|
11196
11208
|
{
|
|
11197
11209
|
path: candidate.path,
|
|
@@ -11201,7 +11213,7 @@ function AgentEditContent({
|
|
|
11201
11213
|
},
|
|
11202
11214
|
`patch:${candidate.path}`
|
|
11203
11215
|
)),
|
|
11204
|
-
diffFiles.map((candidate) => /* @__PURE__ */
|
|
11216
|
+
diffFiles.map((candidate) => /* @__PURE__ */ jsx35(
|
|
11205
11217
|
AgentMonacoDiffViewer,
|
|
11206
11218
|
{
|
|
11207
11219
|
path: candidate.path,
|
|
@@ -11211,7 +11223,7 @@ function AgentEditContent({
|
|
|
11211
11223
|
},
|
|
11212
11224
|
`diff:${candidate.path}`
|
|
11213
11225
|
)),
|
|
11214
|
-
contentFiles.map((candidate) => /* @__PURE__ */
|
|
11226
|
+
contentFiles.map((candidate) => /* @__PURE__ */ jsx35(
|
|
11215
11227
|
AgentCodeBlock,
|
|
11216
11228
|
{
|
|
11217
11229
|
path: candidate.path,
|
|
@@ -11226,7 +11238,7 @@ function AgentEditContent({
|
|
|
11226
11238
|
}
|
|
11227
11239
|
|
|
11228
11240
|
// shared/agentConversation/components/tool-renderers/AgentWebFetchContent.tsx
|
|
11229
|
-
import { jsx as
|
|
11241
|
+
import { jsx as jsx36, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
11230
11242
|
function AgentWebFetchContent({
|
|
11231
11243
|
call,
|
|
11232
11244
|
onLinkClick
|
|
@@ -11252,14 +11264,14 @@ ${web.url}` : web.url;
|
|
|
11252
11264
|
return null;
|
|
11253
11265
|
}
|
|
11254
11266
|
return /* @__PURE__ */ jsxs24("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
11255
|
-
web.url ? /* @__PURE__ */
|
|
11267
|
+
web.url ? /* @__PURE__ */ jsx36(ToolSection, { title: translate("agentHost.agentTool.details.url"), children: /* @__PURE__ */ jsx36(
|
|
11256
11268
|
ToolMarkdownBlock,
|
|
11257
11269
|
{
|
|
11258
11270
|
content: urlText ?? "",
|
|
11259
11271
|
onLinkClick
|
|
11260
11272
|
}
|
|
11261
11273
|
) }) : null,
|
|
11262
|
-
visibleContent ? /* @__PURE__ */
|
|
11274
|
+
visibleContent ? /* @__PURE__ */ jsx36(ToolSection, { title: translate("agentHost.agentTool.details.content"), children: /* @__PURE__ */ jsx36(
|
|
11263
11275
|
ToolMarkdownBlock,
|
|
11264
11276
|
{
|
|
11265
11277
|
content: visibleContent,
|
|
@@ -11267,8 +11279,8 @@ ${web.url}` : web.url;
|
|
|
11267
11279
|
collapsible: true
|
|
11268
11280
|
}
|
|
11269
11281
|
) }) : null,
|
|
11270
|
-
web.isTruncated ? /* @__PURE__ */
|
|
11271
|
-
errorText ? /* @__PURE__ */
|
|
11282
|
+
web.isTruncated ? /* @__PURE__ */ jsx36("div", { className: "text-[10px] italic text-[var(--text-tertiary)]", children: translate("agentHost.agentTool.details.contentTruncated") }) : null,
|
|
11283
|
+
errorText ? /* @__PURE__ */ jsx36(ToolSection, { title: translate("agentHost.agentTool.details.error"), children: /* @__PURE__ */ jsx36(
|
|
11272
11284
|
ToolMarkdownBlock,
|
|
11273
11285
|
{
|
|
11274
11286
|
content: errorText,
|
|
@@ -11280,7 +11292,7 @@ ${web.url}` : web.url;
|
|
|
11280
11292
|
}
|
|
11281
11293
|
|
|
11282
11294
|
// shared/agentConversation/components/tool-renderers/AgentWebSearchContent.tsx
|
|
11283
|
-
import { jsx as
|
|
11295
|
+
import { jsx as jsx37, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
11284
11296
|
var MAX_SUMMARY_LENGTH = 3e3;
|
|
11285
11297
|
function AgentWebSearchContent({
|
|
11286
11298
|
call,
|
|
@@ -11305,8 +11317,8 @@ function AgentWebSearchContent({
|
|
|
11305
11317
|
return null;
|
|
11306
11318
|
}
|
|
11307
11319
|
return /* @__PURE__ */ jsxs25("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
11308
|
-
queryText ? /* @__PURE__ */
|
|
11309
|
-
links.length > 0 ? /* @__PURE__ */
|
|
11320
|
+
queryText ? /* @__PURE__ */ jsx37(ToolSection, { title: translate("agentHost.agentTool.details.query"), children: /* @__PURE__ */ jsx37(ToolMarkdownBlock, { content: queryText, onLinkClick }) }) : null,
|
|
11321
|
+
links.length > 0 ? /* @__PURE__ */ jsx37(ToolSection, { title: translate("agentHost.agentTool.details.results"), children: /* @__PURE__ */ jsx37("div", { className: "workspace-agents-status-panel__detail-tool-result-list overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--transparency-block)]", children: links.map((link, index) => /* @__PURE__ */ jsxs25(
|
|
11310
11322
|
"a",
|
|
11311
11323
|
{
|
|
11312
11324
|
href: link.url,
|
|
@@ -11314,13 +11326,13 @@ function AgentWebSearchContent({
|
|
|
11314
11326
|
rel: "noreferrer",
|
|
11315
11327
|
className: `flex items-center gap-3 px-3 py-2 text-[11px] ${index > 0 ? "border-t border-[var(--line-2)]" : ""}`,
|
|
11316
11328
|
children: [
|
|
11317
|
-
/* @__PURE__ */
|
|
11318
|
-
/* @__PURE__ */
|
|
11329
|
+
/* @__PURE__ */ jsx37("span", { className: "w-[120px] shrink-0 truncate text-[11px] text-[var(--text-tertiary)]", children: link.domain }),
|
|
11330
|
+
/* @__PURE__ */ jsx37("span", { className: "truncate text-[var(--text-primary)]", children: link.title })
|
|
11319
11331
|
]
|
|
11320
11332
|
},
|
|
11321
11333
|
`${link.url}:${link.title}`
|
|
11322
11334
|
)) }) }) : null,
|
|
11323
|
-
visibleSummary ? /* @__PURE__ */
|
|
11335
|
+
visibleSummary ? /* @__PURE__ */ jsx37(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: /* @__PURE__ */ jsx37(
|
|
11324
11336
|
ToolMarkdownBlock,
|
|
11325
11337
|
{
|
|
11326
11338
|
content: visibleSummary,
|
|
@@ -11328,8 +11340,8 @@ function AgentWebSearchContent({
|
|
|
11328
11340
|
collapsible: true
|
|
11329
11341
|
}
|
|
11330
11342
|
) }) : null,
|
|
11331
|
-
summary && summary.length > MAX_SUMMARY_LENGTH ? /* @__PURE__ */
|
|
11332
|
-
web.error ? /* @__PURE__ */
|
|
11343
|
+
summary && summary.length > MAX_SUMMARY_LENGTH ? /* @__PURE__ */ jsx37("div", { className: "text-[10px] italic text-[var(--text-tertiary)]", children: translate("agentHost.agentTool.details.summaryTruncated") }) : null,
|
|
11344
|
+
web.error ? /* @__PURE__ */ jsx37(ToolSection, { title: translate("agentHost.agentTool.details.error"), children: /* @__PURE__ */ jsx37(
|
|
11333
11345
|
ToolMarkdownBlock,
|
|
11334
11346
|
{
|
|
11335
11347
|
content: web.error,
|
|
@@ -11422,7 +11434,7 @@ function domainForUrl2(url) {
|
|
|
11422
11434
|
}
|
|
11423
11435
|
|
|
11424
11436
|
// shared/agentConversation/components/tool-renderers/AgentApprovalContent.tsx
|
|
11425
|
-
import { jsx as
|
|
11437
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
11426
11438
|
function AgentApprovalContent({
|
|
11427
11439
|
call,
|
|
11428
11440
|
onLinkClick
|
|
@@ -11435,14 +11447,14 @@ function AgentApprovalContent({
|
|
|
11435
11447
|
if (previewCall) {
|
|
11436
11448
|
switch (previewCall.rendererKind) {
|
|
11437
11449
|
case "web-fetch":
|
|
11438
|
-
return /* @__PURE__ */
|
|
11450
|
+
return /* @__PURE__ */ jsx38(AgentWebFetchContent, { call: previewCall, onLinkClick });
|
|
11439
11451
|
case "web-search":
|
|
11440
|
-
return /* @__PURE__ */
|
|
11452
|
+
return /* @__PURE__ */ jsx38(AgentWebSearchContent, { call: previewCall, onLinkClick });
|
|
11441
11453
|
default:
|
|
11442
|
-
return /* @__PURE__ */
|
|
11454
|
+
return /* @__PURE__ */ jsx38(AgentEditContent, { call: previewCall, onLinkClick });
|
|
11443
11455
|
}
|
|
11444
11456
|
}
|
|
11445
|
-
return /* @__PURE__ */
|
|
11457
|
+
return /* @__PURE__ */ jsx38("div", { className: "workspace-agents-status-panel__detail-tool-body", children: /* @__PURE__ */ jsx38(ToolMarkdownBlock, { content: call.summary }) });
|
|
11446
11458
|
}
|
|
11447
11459
|
function approvalPreviewKindFor(normalizedKind) {
|
|
11448
11460
|
switch (normalizedKind) {
|
|
@@ -11513,7 +11525,7 @@ function normalizeToolKind(value) {
|
|
|
11513
11525
|
}
|
|
11514
11526
|
|
|
11515
11527
|
// shared/agentConversation/components/tool-renderers/AgentAskUserQuestionContent.tsx
|
|
11516
|
-
import { jsx as
|
|
11528
|
+
import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11517
11529
|
function AgentAskUserQuestionContent({
|
|
11518
11530
|
call,
|
|
11519
11531
|
onLinkClick
|
|
@@ -11525,7 +11537,7 @@ function AgentAskUserQuestionContent({
|
|
|
11525
11537
|
return null;
|
|
11526
11538
|
}
|
|
11527
11539
|
return /* @__PURE__ */ jsxs26("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
11528
|
-
/* @__PURE__ */
|
|
11540
|
+
/* @__PURE__ */ jsx39(ToolSection, { title: translate("agentHost.agentTool.details.questions"), children: /* @__PURE__ */ jsx39("div", { className: "workspace-agents-status-panel__detail-tool-stack", children: questions.map((question) => {
|
|
11529
11541
|
const body = question.question || question.header || translate("agentHost.agentTool.details.questionFallback");
|
|
11530
11542
|
const answer = formatAnswer(question.answer);
|
|
11531
11543
|
const questionKey = question.id.trim() || `${question.header}:${question.question}:${question.options.map((option) => option.label).join("|")}`;
|
|
@@ -11534,22 +11546,22 @@ function AgentAskUserQuestionContent({
|
|
|
11534
11546
|
{
|
|
11535
11547
|
className: "workspace-agents-status-panel__detail-tool-stack-item",
|
|
11536
11548
|
children: [
|
|
11537
|
-
/* @__PURE__ */
|
|
11538
|
-
question.options.length > 0 ? /* @__PURE__ */
|
|
11549
|
+
/* @__PURE__ */ jsx39("div", { className: "workspace-agents-status-panel__detail-tool-question", children: body }),
|
|
11550
|
+
question.options.length > 0 ? /* @__PURE__ */ jsx39("div", { className: "workspace-agents-status-panel__detail-tool-stack", children: question.options.map((option) => /* @__PURE__ */ jsxs26(
|
|
11539
11551
|
"div",
|
|
11540
11552
|
{
|
|
11541
11553
|
className: "workspace-agents-status-panel__detail-tool-stack-item",
|
|
11542
11554
|
children: [
|
|
11543
|
-
/* @__PURE__ */
|
|
11544
|
-
option.description ? /* @__PURE__ */
|
|
11555
|
+
/* @__PURE__ */ jsx39("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: option.label }),
|
|
11556
|
+
option.description ? /* @__PURE__ */ jsx39("div", { className: "workspace-agents-status-panel__detail-tool-answer workspace-agents-status-panel__detail-tool-answer--muted", children: option.description }) : null
|
|
11545
11557
|
]
|
|
11546
11558
|
},
|
|
11547
11559
|
`${questionKey}-option-${option.label}:${option.description}`
|
|
11548
11560
|
)) }) : null,
|
|
11549
|
-
answer ? /* @__PURE__ */
|
|
11561
|
+
answer ? /* @__PURE__ */ jsx39("div", { className: "workspace-agents-status-panel__detail-tool-answer", children: translate("agentHost.agentTool.details.answerPrefix", {
|
|
11550
11562
|
answer
|
|
11551
11563
|
}) }) : /* @__PURE__ */ jsxs26("div", { className: "workspace-agents-status-panel__detail-tool-answer workspace-agents-status-panel__detail-tool-answer--muted inline-flex items-center gap-1.5", children: [
|
|
11552
|
-
/* @__PURE__ */
|
|
11564
|
+
/* @__PURE__ */ jsx39(
|
|
11553
11565
|
MessageSquareMoreIcon,
|
|
11554
11566
|
{
|
|
11555
11567
|
size: 14,
|
|
@@ -11565,7 +11577,7 @@ function AgentAskUserQuestionContent({
|
|
|
11565
11577
|
questionKey
|
|
11566
11578
|
);
|
|
11567
11579
|
}) }) }),
|
|
11568
|
-
outputText ? /* @__PURE__ */
|
|
11580
|
+
outputText ? /* @__PURE__ */ jsx39(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: /* @__PURE__ */ jsx39(
|
|
11569
11581
|
ToolMarkdownBlock,
|
|
11570
11582
|
{
|
|
11571
11583
|
content: outputText,
|
|
@@ -11587,7 +11599,7 @@ function stringValue9(value) {
|
|
|
11587
11599
|
|
|
11588
11600
|
// shared/agentConversation/components/tool-renderers/terminal/AgentTerminalBlock.tsx
|
|
11589
11601
|
import { useMemo as useMemo4, useState as useState14 } from "react";
|
|
11590
|
-
import { jsx as
|
|
11602
|
+
import { jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11591
11603
|
var MAX_OUTPUT_LINES = 200;
|
|
11592
11604
|
function AgentTerminalBlock({
|
|
11593
11605
|
command,
|
|
@@ -11609,7 +11621,7 @@ function AgentTerminalBlock({
|
|
|
11609
11621
|
const visibleOutput = truncated ? outputLines.slice(0, MAX_OUTPUT_LINES).join("\n") : outputText;
|
|
11610
11622
|
const failed = status === "failed";
|
|
11611
11623
|
const hasOutput = Boolean(visibleOutput);
|
|
11612
|
-
const disclosureButton = outputLines.length > MAX_OUTPUT_LINES ? /* @__PURE__ */
|
|
11624
|
+
const disclosureButton = outputLines.length > MAX_OUTPUT_LINES ? /* @__PURE__ */ jsx40(
|
|
11613
11625
|
"button",
|
|
11614
11626
|
{
|
|
11615
11627
|
type: "button",
|
|
@@ -11625,8 +11637,8 @@ function AgentTerminalBlock({
|
|
|
11625
11637
|
className: `flex min-w-0 items-center gap-3 px-3 text-[11px] text-[var(--text-secondary)] ${hasOutput ? "border-b border-[var(--line-2)] bg-[var(--transparency-block)] py-1.5" : "bg-[var(--transparency-block)] py-2"}`,
|
|
11626
11638
|
"data-agent-terminal-command-row": "true",
|
|
11627
11639
|
children: [
|
|
11628
|
-
/* @__PURE__ */
|
|
11629
|
-
/* @__PURE__ */
|
|
11640
|
+
/* @__PURE__ */ jsx40("span", { className: "shrink-0 font-semibold text-[var(--tutti-purple)]", children: "$" }),
|
|
11641
|
+
/* @__PURE__ */ jsx40(
|
|
11630
11642
|
"span",
|
|
11631
11643
|
{
|
|
11632
11644
|
className: "min-w-0 flex-1 whitespace-pre-wrap [overflow-wrap:anywhere]",
|
|
@@ -11643,7 +11655,7 @@ function AgentTerminalBlock({
|
|
|
11643
11655
|
maxHeightClassName: "max-h-[160px]",
|
|
11644
11656
|
viewportClassName: `px-3 py-2 text-[11px] leading-5 ${failed ? "text-[var(--state-danger)]" : "text-[var(--text-primary)]"}`,
|
|
11645
11657
|
children: [
|
|
11646
|
-
/* @__PURE__ */
|
|
11658
|
+
/* @__PURE__ */ jsx40("pre", { className: "m-0 min-w-0 max-w-full whitespace-pre-wrap [overflow-wrap:anywhere]", children: /* @__PURE__ */ jsx40("code", { children: visibleOutput }) }),
|
|
11647
11659
|
disclosureButton
|
|
11648
11660
|
]
|
|
11649
11661
|
}
|
|
@@ -11652,14 +11664,14 @@ function AgentTerminalBlock({
|
|
|
11652
11664
|
}
|
|
11653
11665
|
|
|
11654
11666
|
// shared/agentConversation/components/tool-renderers/AgentBashContent.tsx
|
|
11655
|
-
import { jsx as
|
|
11667
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
11656
11668
|
function AgentBashContent({
|
|
11657
11669
|
call
|
|
11658
11670
|
}) {
|
|
11659
11671
|
"use memo";
|
|
11660
11672
|
const commandData = getCommandRenderData(call);
|
|
11661
11673
|
const fallbackErrorText = commandData.status === "failed" && !commandData.stdout && !commandData.stderr ? stringValue8(call.error?.message) : null;
|
|
11662
|
-
return /* @__PURE__ */
|
|
11674
|
+
return /* @__PURE__ */ jsx41("div", { className: "workspace-agents-status-panel__detail-tool-body workspace-agents-status-panel__detail-tool-body--plain", children: /* @__PURE__ */ jsx41(
|
|
11663
11675
|
AgentTerminalBlock,
|
|
11664
11676
|
{
|
|
11665
11677
|
command: commandData.command,
|
|
@@ -11673,7 +11685,7 @@ function AgentBashContent({
|
|
|
11673
11685
|
}
|
|
11674
11686
|
|
|
11675
11687
|
// shared/agentConversation/components/tool-renderers/AgentImageGenerationContent.tsx
|
|
11676
|
-
import { jsx as
|
|
11688
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
11677
11689
|
function AgentImageGenerationContent({
|
|
11678
11690
|
call,
|
|
11679
11691
|
onLinkClick
|
|
@@ -11683,7 +11695,7 @@ function AgentImageGenerationContent({
|
|
|
11683
11695
|
if (!image.prompt) {
|
|
11684
11696
|
return null;
|
|
11685
11697
|
}
|
|
11686
|
-
return /* @__PURE__ */
|
|
11698
|
+
return /* @__PURE__ */ jsx42("div", { className: "workspace-agents-status-panel__detail-tool-body", children: /* @__PURE__ */ jsx42(ToolSection, { title: translate("agentHost.agentTool.details.input"), children: /* @__PURE__ */ jsx42(
|
|
11687
11699
|
ToolMarkdownBlock,
|
|
11688
11700
|
{
|
|
11689
11701
|
content: image.prompt,
|
|
@@ -11828,47 +11840,47 @@ function firstString5(...values) {
|
|
|
11828
11840
|
}
|
|
11829
11841
|
|
|
11830
11842
|
// shared/agentConversation/components/tool-renderers/mcp-renderers/agentAtlassianRenderers.tsx
|
|
11831
|
-
import { jsx as
|
|
11843
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
11832
11844
|
function renderAtlassianMcp(payload) {
|
|
11833
11845
|
const items = parsedItems(payload.structured);
|
|
11834
11846
|
if (items.length > 0) {
|
|
11835
|
-
return /* @__PURE__ */
|
|
11847
|
+
return /* @__PURE__ */ jsx43("div", { className: "workspace-agents-status-panel__detail-tool-result-list overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--transparency-block)]", children: items.map((item, index) => /* @__PURE__ */ jsxs28(
|
|
11836
11848
|
"div",
|
|
11837
11849
|
{
|
|
11838
11850
|
className: `px-3 py-2 ${index > 0 ? "border-t border-[var(--line-2)]" : ""}`,
|
|
11839
11851
|
children: [
|
|
11840
|
-
/* @__PURE__ */
|
|
11852
|
+
/* @__PURE__ */ jsx43("div", { className: "text-[11px] font-semibold text-[var(--text-primary)]", children: itemPrimaryText(item) ?? translate("agentHost.agentTool.details.mcpItem", {
|
|
11841
11853
|
index: index + 1
|
|
11842
11854
|
}) }),
|
|
11843
|
-
itemSecondaryText(item) ? /* @__PURE__ */
|
|
11855
|
+
itemSecondaryText(item) ? /* @__PURE__ */ jsx43("div", { className: "text-[11px] text-[var(--text-tertiary)]", children: itemSecondaryText(item) }) : null
|
|
11844
11856
|
]
|
|
11845
11857
|
},
|
|
11846
11858
|
`${itemPrimaryText(item) ?? "item"}::${itemSecondaryText(item) ?? ""}`
|
|
11847
11859
|
)) });
|
|
11848
11860
|
}
|
|
11849
|
-
return payload.text ? /* @__PURE__ */
|
|
11861
|
+
return payload.text ? /* @__PURE__ */ jsx43(ToolMarkdownBlock, { content: payload.text, collapsible: true }) : null;
|
|
11850
11862
|
}
|
|
11851
11863
|
|
|
11852
11864
|
// shared/agentConversation/components/tool-renderers/mcp-renderers/agentContext7Renderers.tsx
|
|
11853
|
-
import { jsx as
|
|
11865
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
11854
11866
|
function renderContext7Mcp(payload) {
|
|
11855
11867
|
const items = parsedItems(payload.structured);
|
|
11856
11868
|
if (items.length > 0) {
|
|
11857
|
-
return /* @__PURE__ */
|
|
11869
|
+
return /* @__PURE__ */ jsx44("div", { className: "workspace-agents-status-panel__detail-tool-result-list overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--transparency-block)]", children: items.map((item, index) => /* @__PURE__ */ jsxs29(
|
|
11858
11870
|
"div",
|
|
11859
11871
|
{
|
|
11860
11872
|
className: `px-3 py-2 ${index > 0 ? "border-t border-[var(--line-2)]" : ""}`,
|
|
11861
11873
|
children: [
|
|
11862
|
-
/* @__PURE__ */
|
|
11874
|
+
/* @__PURE__ */ jsx44("div", { className: "text-[11px] font-semibold text-[var(--text-primary)]", children: itemPrimaryText(item) ?? translate("agentHost.agentTool.details.mcpDoc", {
|
|
11863
11875
|
index: index + 1
|
|
11864
11876
|
}) }),
|
|
11865
|
-
itemSecondaryText(item) ? /* @__PURE__ */
|
|
11877
|
+
itemSecondaryText(item) ? /* @__PURE__ */ jsx44("div", { className: "text-[11px] text-[var(--text-tertiary)]", children: itemSecondaryText(item) }) : null
|
|
11866
11878
|
]
|
|
11867
11879
|
},
|
|
11868
11880
|
`${itemPrimaryText(item) ?? "doc"}::${itemSecondaryText(item) ?? ""}`
|
|
11869
11881
|
)) });
|
|
11870
11882
|
}
|
|
11871
|
-
return payload.text ? /* @__PURE__ */
|
|
11883
|
+
return payload.text ? /* @__PURE__ */ jsx44(ToolMarkdownBlock, { content: payload.text, collapsible: true }) : null;
|
|
11872
11884
|
}
|
|
11873
11885
|
|
|
11874
11886
|
// shared/agentConversation/components/tool-renderers/mcp-renderers/agentMcpRendererRegistry.tsx
|
|
@@ -11884,7 +11896,7 @@ function renderRegisteredMcp(payload) {
|
|
|
11884
11896
|
}
|
|
11885
11897
|
|
|
11886
11898
|
// shared/agentConversation/components/tool-renderers/AgentMcpToolContent.tsx
|
|
11887
|
-
import { jsx as
|
|
11899
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
11888
11900
|
function AgentMcpToolContent({
|
|
11889
11901
|
call,
|
|
11890
11902
|
onLinkClick
|
|
@@ -11897,7 +11909,7 @@ function AgentMcpToolContent({
|
|
|
11897
11909
|
payload.inputSummary
|
|
11898
11910
|
);
|
|
11899
11911
|
return /* @__PURE__ */ jsxs30("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
11900
|
-
payload.server || payload.tool ? /* @__PURE__ */
|
|
11912
|
+
payload.server || payload.tool ? /* @__PURE__ */ jsx45(ToolSection, { title: translate("agentHost.agentTool.details.mcp"), children: /* @__PURE__ */ jsx45(
|
|
11901
11913
|
ToolMarkdownBlock,
|
|
11902
11914
|
{
|
|
11903
11915
|
content: [
|
|
@@ -11907,14 +11919,14 @@ function AgentMcpToolContent({
|
|
|
11907
11919
|
onLinkClick
|
|
11908
11920
|
}
|
|
11909
11921
|
) }) : null,
|
|
11910
|
-
payload.inputSummary ? /* @__PURE__ */
|
|
11922
|
+
payload.inputSummary ? /* @__PURE__ */ jsx45(ToolSection, { title: translate("agentHost.agentTool.details.input"), children: /* @__PURE__ */ jsx45(
|
|
11911
11923
|
ToolMarkdownBlock,
|
|
11912
11924
|
{
|
|
11913
11925
|
content: payload.inputSummary,
|
|
11914
11926
|
onLinkClick
|
|
11915
11927
|
}
|
|
11916
11928
|
) }) : null,
|
|
11917
|
-
specialized ? /* @__PURE__ */
|
|
11929
|
+
specialized ? /* @__PURE__ */ jsx45(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: specialized }) : visibleText ? /* @__PURE__ */ jsx45(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: /* @__PURE__ */ jsx45(
|
|
11918
11930
|
ToolMarkdownBlock,
|
|
11919
11931
|
{
|
|
11920
11932
|
content: visibleText,
|
|
@@ -11922,12 +11934,12 @@ function AgentMcpToolContent({
|
|
|
11922
11934
|
collapsible: true
|
|
11923
11935
|
}
|
|
11924
11936
|
) }) : null,
|
|
11925
|
-
/* @__PURE__ */
|
|
11937
|
+
/* @__PURE__ */ jsx45(RawPayloadSection, { payload: call.payload ?? payload.structured })
|
|
11926
11938
|
] });
|
|
11927
11939
|
}
|
|
11928
11940
|
|
|
11929
11941
|
// shared/agentConversation/components/tool-renderers/AgentPlanModeContent.tsx
|
|
11930
|
-
import { jsx as
|
|
11942
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
11931
11943
|
function AgentPlanModeContent({
|
|
11932
11944
|
call,
|
|
11933
11945
|
onLinkClick
|
|
@@ -11938,7 +11950,7 @@ function AgentPlanModeContent({
|
|
|
11938
11950
|
if (!planMode.enterText) {
|
|
11939
11951
|
return null;
|
|
11940
11952
|
}
|
|
11941
|
-
return /* @__PURE__ */
|
|
11953
|
+
return /* @__PURE__ */ jsx46("div", { className: "rounded-[8px] bg-[var(--transparency-block)] px-3 py-2 text-[11px] text-[var(--text-secondary)]", children: /* @__PURE__ */ jsx46(
|
|
11942
11954
|
ToolMarkdownBlock,
|
|
11943
11955
|
{
|
|
11944
11956
|
content: planMode.enterText,
|
|
@@ -11949,18 +11961,18 @@ function AgentPlanModeContent({
|
|
|
11949
11961
|
if (!planMode.plan) {
|
|
11950
11962
|
return null;
|
|
11951
11963
|
}
|
|
11952
|
-
return /* @__PURE__ */
|
|
11964
|
+
return /* @__PURE__ */ jsx46(
|
|
11953
11965
|
AgentPlanCard,
|
|
11954
11966
|
{
|
|
11955
11967
|
title: planMode.fileName ?? void 0,
|
|
11956
11968
|
copyText: planMode.plan,
|
|
11957
|
-
children: /* @__PURE__ */
|
|
11969
|
+
children: /* @__PURE__ */ jsx46(ToolMarkdownBlock, { content: planMode.plan, onLinkClick })
|
|
11958
11970
|
}
|
|
11959
11971
|
);
|
|
11960
11972
|
}
|
|
11961
11973
|
|
|
11962
11974
|
// shared/agentConversation/components/tool-renderers/AgentSearchContent.tsx
|
|
11963
|
-
import { jsx as
|
|
11975
|
+
import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
11964
11976
|
function AgentSearchContent({
|
|
11965
11977
|
call,
|
|
11966
11978
|
onLinkClick
|
|
@@ -11977,8 +11989,8 @@ ${translate("agentHost.agentTool.details.scope")}: ${search.scope}`.trim() : sea
|
|
|
11977
11989
|
"line"
|
|
11978
11990
|
);
|
|
11979
11991
|
return /* @__PURE__ */ jsxs31("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
11980
|
-
queryText ? /* @__PURE__ */
|
|
11981
|
-
(search.mode === "files_with_matches" || search.mode === "list_files") && search.files.length > 0 ? /* @__PURE__ */
|
|
11992
|
+
queryText ? /* @__PURE__ */ jsx47(ToolSection, { title: translate("agentHost.agentTool.details.query"), children: /* @__PURE__ */ jsx47(ToolMarkdownBlock, { content: queryText, onLinkClick }) }) : null,
|
|
11993
|
+
(search.mode === "files_with_matches" || search.mode === "list_files") && search.files.length > 0 ? /* @__PURE__ */ jsx47(ToolSection, { title: translate("agentHost.agentTool.details.results"), children: /* @__PURE__ */ jsx47("div", { className: "workspace-agents-status-panel__detail-tool-result-list overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--transparency-block)]", children: resultFiles.map(({ key, value: file, isFirst }) => /* @__PURE__ */ jsx47(
|
|
11982
11994
|
"div",
|
|
11983
11995
|
{
|
|
11984
11996
|
className: `px-3 py-2 font-[var(--tsh-font-mono)] text-[11px] text-[var(--text-primary)] ${isFirst ? "" : "border-t border-[var(--line-2)]"}`,
|
|
@@ -11986,7 +11998,7 @@ ${translate("agentHost.agentTool.details.scope")}: ${search.scope}`.trim() : sea
|
|
|
11986
11998
|
},
|
|
11987
11999
|
key
|
|
11988
12000
|
)) }) }) : null,
|
|
11989
|
-
search.mode === "content" && visibleOutput ? /* @__PURE__ */
|
|
12001
|
+
search.mode === "content" && visibleOutput ? /* @__PURE__ */ jsx47(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: /* @__PURE__ */ jsx47("pre", { className: "max-h-[320px] overflow-auto rounded-[8px] border border-[var(--line-2)] bg-[var(--transparency-block)] px-3 py-2 text-[11px] leading-5 text-[var(--text-primary)]", children: outputLines.map(({ key, value: line }) => /* @__PURE__ */ jsx47(
|
|
11990
12002
|
"div",
|
|
11991
12003
|
{
|
|
11992
12004
|
className: line.includes(":") ? "text-[var(--text-primary)]" : "text-[var(--text-tertiary)]",
|
|
@@ -11994,9 +12006,9 @@ ${translate("agentHost.agentTool.details.scope")}: ${search.scope}`.trim() : sea
|
|
|
11994
12006
|
},
|
|
11995
12007
|
key
|
|
11996
12008
|
)) }) }) : null,
|
|
11997
|
-
search.mode === "count" ? /* @__PURE__ */
|
|
11998
|
-
(search.mode === "files_with_matches" || search.mode === "list_files" || search.mode === "count") && search.files.length === 0 && !visibleOutput && !search.error ? /* @__PURE__ */
|
|
11999
|
-
search.mode === "unknown" && visibleOutput ? /* @__PURE__ */
|
|
12009
|
+
search.mode === "count" ? /* @__PURE__ */ jsx47(ToolSection, { title: translate("agentHost.agentTool.details.results"), children: /* @__PURE__ */ jsx47("div", { className: "inline-flex rounded-full border border-[var(--line-2)] bg-[var(--transparency-block)] px-2.5 py-1 text-[11px] text-[var(--text-tertiary)]", children: search.output || "0" }) }) : null,
|
|
12010
|
+
(search.mode === "files_with_matches" || search.mode === "list_files" || search.mode === "count") && search.files.length === 0 && !visibleOutput && !search.error ? /* @__PURE__ */ jsx47(ToolSection, { title: translate("agentHost.agentTool.details.results"), children: /* @__PURE__ */ jsx47("div", { className: "text-[11px] italic text-[var(--text-tertiary)]", children: translate("agentHost.agentTool.details.noMatches") }) }) : null,
|
|
12011
|
+
search.mode === "unknown" && visibleOutput ? /* @__PURE__ */ jsx47(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: /* @__PURE__ */ jsx47(
|
|
12000
12012
|
ToolMarkdownBlock,
|
|
12001
12013
|
{
|
|
12002
12014
|
content: visibleOutput,
|
|
@@ -12004,7 +12016,7 @@ ${translate("agentHost.agentTool.details.scope")}: ${search.scope}`.trim() : sea
|
|
|
12004
12016
|
collapsible: true
|
|
12005
12017
|
}
|
|
12006
12018
|
) }) : null,
|
|
12007
|
-
search.error ? /* @__PURE__ */
|
|
12019
|
+
search.error ? /* @__PURE__ */ jsx47(ToolSection, { title: translate("agentHost.agentTool.details.error"), children: /* @__PURE__ */ jsx47(
|
|
12008
12020
|
ToolMarkdownBlock,
|
|
12009
12021
|
{
|
|
12010
12022
|
content: search.error,
|
|
@@ -12032,7 +12044,7 @@ function withStableOccurrenceKeys(values, prefix) {
|
|
|
12032
12044
|
}
|
|
12033
12045
|
|
|
12034
12046
|
// shared/agentConversation/components/tool-renderers/AgentSkillContent.tsx
|
|
12035
|
-
import { jsx as
|
|
12047
|
+
import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
12036
12048
|
function AgentSkillContent({
|
|
12037
12049
|
call,
|
|
12038
12050
|
onLinkClick
|
|
@@ -12043,7 +12055,7 @@ function AgentSkillContent({
|
|
|
12043
12055
|
return null;
|
|
12044
12056
|
}
|
|
12045
12057
|
return /* @__PURE__ */ jsxs32("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
12046
|
-
skill.skill ? /* @__PURE__ */
|
|
12058
|
+
skill.skill ? /* @__PURE__ */ jsx48(ToolSection, { title: translate("agentHost.agentTool.details.skill"), children: /* @__PURE__ */ jsx48(
|
|
12047
12059
|
ToolMarkdownBlock,
|
|
12048
12060
|
{
|
|
12049
12061
|
content: skill.args ? `${skill.skill}
|
|
@@ -12052,19 +12064,19 @@ ${skill.args}` : skill.skill,
|
|
|
12052
12064
|
onLinkClick
|
|
12053
12065
|
}
|
|
12054
12066
|
) }) : null,
|
|
12055
|
-
skill.statusText ? /* @__PURE__ */
|
|
12067
|
+
skill.statusText ? /* @__PURE__ */ jsx48("div", { className: "text-[10px] text-[var(--text-tertiary)]", children: skill.statusText }) : null
|
|
12056
12068
|
] });
|
|
12057
12069
|
}
|
|
12058
12070
|
|
|
12059
12071
|
// shared/agentConversation/components/AgentTaskStepList.tsx
|
|
12060
12072
|
import { useState as useState15 } from "react";
|
|
12061
|
-
import { jsx as
|
|
12073
|
+
import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12062
12074
|
function AgentTaskStepList({
|
|
12063
12075
|
steps,
|
|
12064
12076
|
onLinkClick
|
|
12065
12077
|
}) {
|
|
12066
12078
|
"use memo";
|
|
12067
|
-
return /* @__PURE__ */
|
|
12079
|
+
return /* @__PURE__ */ jsx49("div", { className: "workspace-agents-status-panel__detail-tool-stack", children: steps.map((step) => /* @__PURE__ */ jsx49(AgentTaskStepRow, { step, onLinkClick }, step.id)) });
|
|
12068
12080
|
}
|
|
12069
12081
|
function AgentTaskStepRow({
|
|
12070
12082
|
step,
|
|
@@ -12076,7 +12088,7 @@ function AgentTaskStepRow({
|
|
|
12076
12088
|
const hasDetail = hasAgentToolContent(call);
|
|
12077
12089
|
const ariaLabel = taskStepAriaLabel(call);
|
|
12078
12090
|
return /* @__PURE__ */ jsxs33("div", { className: "workspace-agents-status-panel__detail-tool-row", children: [
|
|
12079
|
-
hasDetail ? /* @__PURE__ */
|
|
12091
|
+
hasDetail ? /* @__PURE__ */ jsx49(
|
|
12080
12092
|
"button",
|
|
12081
12093
|
{
|
|
12082
12094
|
type: "button",
|
|
@@ -12084,11 +12096,11 @@ function AgentTaskStepRow({
|
|
|
12084
12096
|
"aria-expanded": expanded,
|
|
12085
12097
|
"aria-label": ariaLabel,
|
|
12086
12098
|
onClick: () => setExpanded((value) => !value),
|
|
12087
|
-
children: /* @__PURE__ */
|
|
12099
|
+
children: /* @__PURE__ */ jsx49(AgentToolCallHeader, { call, expanded, hasDetail: true })
|
|
12088
12100
|
}
|
|
12089
|
-
) : /* @__PURE__ */
|
|
12090
|
-
!hasDetail && step.summary ? /* @__PURE__ */
|
|
12091
|
-
hasDetail && expanded ? /* @__PURE__ */
|
|
12101
|
+
) : /* @__PURE__ */ jsx49("div", { className: "workspace-agents-status-panel__detail-tool-row-head", children: /* @__PURE__ */ jsx49(AgentToolCallHeader, { call, expanded: false, hasDetail: false }) }),
|
|
12102
|
+
!hasDetail && step.summary ? /* @__PURE__ */ jsx49("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: step.summary }) : null,
|
|
12103
|
+
hasDetail && expanded ? /* @__PURE__ */ jsx49(AgentExpandedToolContent, { call, onLinkClick }) : null
|
|
12092
12104
|
] });
|
|
12093
12105
|
}
|
|
12094
12106
|
function taskStepAriaLabel(call) {
|
|
@@ -12119,7 +12131,7 @@ function projectTaskStepCall(step) {
|
|
|
12119
12131
|
}
|
|
12120
12132
|
|
|
12121
12133
|
// shared/agentConversation/components/tool-renderers/AgentTaskContent.tsx
|
|
12122
|
-
import { jsx as
|
|
12134
|
+
import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12123
12135
|
function AgentTaskContent({
|
|
12124
12136
|
call,
|
|
12125
12137
|
onLinkClick
|
|
@@ -12129,7 +12141,7 @@ function AgentTaskContent({
|
|
|
12129
12141
|
const failureMarkdown = task.errorMarkdown ?? (isFailedTaskStatus(call.statusKind, task.status, call.status) ? translate("agentHost.agentTool.details.missingFailureDetails") : null);
|
|
12130
12142
|
return /* @__PURE__ */ jsxs34("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
12131
12143
|
/* @__PURE__ */ jsxs34("div", { className: "workspace-agents-status-panel__detail-tool-answer", children: [
|
|
12132
|
-
/* @__PURE__ */
|
|
12144
|
+
/* @__PURE__ */ jsx50("strong", { children: task.title }),
|
|
12133
12145
|
task.status ? /* @__PURE__ */ jsxs34("span", { className: "workspace-agents-status-panel__detail-tool-answer--muted", children: [
|
|
12134
12146
|
" \xB7 ",
|
|
12135
12147
|
task.status
|
|
@@ -12139,17 +12151,17 @@ function AgentTaskContent({
|
|
|
12139
12151
|
task.durationText
|
|
12140
12152
|
] }) : null
|
|
12141
12153
|
] }),
|
|
12142
|
-
task.status === "running" && task.latestStepSummary ? /* @__PURE__ */
|
|
12143
|
-
task.prompt ? /* @__PURE__ */
|
|
12144
|
-
task.childSessionId ? /* @__PURE__ */
|
|
12154
|
+
task.status === "running" && task.latestStepSummary ? /* @__PURE__ */ jsx50(ToolSection, { title: translate("agentHost.agentTool.details.summary"), children: /* @__PURE__ */ jsx50("div", { className: "workspace-agents-status-panel__detail-tool-answer workspace-agents-status-panel__detail-tool-answer--muted", children: task.latestStepSummary }) }) : null,
|
|
12155
|
+
task.prompt ? /* @__PURE__ */ jsx50(ToolSection, { title: translate("agentHost.agentTool.details.prompt"), children: /* @__PURE__ */ jsx50(ToolMarkdownBlock, { content: task.prompt, onLinkClick }) }) : null,
|
|
12156
|
+
task.childSessionId ? /* @__PURE__ */ jsx50(
|
|
12145
12157
|
ToolSection,
|
|
12146
12158
|
{
|
|
12147
12159
|
title: translate("agentHost.agentTool.details.delegateSession"),
|
|
12148
|
-
children: /* @__PURE__ */
|
|
12160
|
+
children: /* @__PURE__ */ jsx50("div", { className: "workspace-agents-status-panel__detail-tool-answer", children: task.childSessionId })
|
|
12149
12161
|
}
|
|
12150
12162
|
) : null,
|
|
12151
|
-
task.steps.length > 0 ? /* @__PURE__ */
|
|
12152
|
-
task.resultMarkdown ? /* @__PURE__ */
|
|
12163
|
+
task.steps.length > 0 ? /* @__PURE__ */ jsx50(ToolSection, { title: translate("agentHost.agentTool.details.steps"), children: /* @__PURE__ */ jsx50(AgentTaskStepList, { steps: task.steps, onLinkClick }) }) : null,
|
|
12164
|
+
task.resultMarkdown ? /* @__PURE__ */ jsx50(ToolSection, { title: translate("agentHost.agentTool.details.output"), children: /* @__PURE__ */ jsx50(
|
|
12153
12165
|
ToolMarkdownBlock,
|
|
12154
12166
|
{
|
|
12155
12167
|
content: task.resultMarkdown,
|
|
@@ -12157,7 +12169,7 @@ function AgentTaskContent({
|
|
|
12157
12169
|
collapsible: true
|
|
12158
12170
|
}
|
|
12159
12171
|
) }) : null,
|
|
12160
|
-
failureMarkdown ? /* @__PURE__ */
|
|
12172
|
+
failureMarkdown ? /* @__PURE__ */ jsx50(ToolSection, { title: translate("agentHost.agentTool.details.error"), children: /* @__PURE__ */ jsx50(
|
|
12161
12173
|
ToolMarkdownBlock,
|
|
12162
12174
|
{
|
|
12163
12175
|
content: failureMarkdown,
|
|
@@ -12176,7 +12188,7 @@ function isFailedTaskStatus(...values) {
|
|
|
12176
12188
|
|
|
12177
12189
|
// shared/agentConversation/components/tool-renderers/AgentTodoWriteContent.tsx
|
|
12178
12190
|
import { CheckCircle2, Circle } from "lucide-react";
|
|
12179
|
-
import { jsx as
|
|
12191
|
+
import { jsx as jsx51, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
12180
12192
|
function AgentTodoWriteContent({
|
|
12181
12193
|
call
|
|
12182
12194
|
}) {
|
|
@@ -12185,13 +12197,13 @@ function AgentTodoWriteContent({
|
|
|
12185
12197
|
if (todos.length === 0) {
|
|
12186
12198
|
return null;
|
|
12187
12199
|
}
|
|
12188
|
-
return /* @__PURE__ */
|
|
12200
|
+
return /* @__PURE__ */ jsx51("div", { className: "workspace-agents-status-panel__detail-tool-body", children: /* @__PURE__ */ jsx51(ToolSection, { title: translate("agentHost.agentTool.details.todos"), children: /* @__PURE__ */ jsx51("div", { className: "space-y-1", children: todos.map((todo) => /* @__PURE__ */ jsxs35(
|
|
12189
12201
|
"div",
|
|
12190
12202
|
{
|
|
12191
12203
|
className: "flex items-start gap-2 rounded-[8px] px-1 py-0.5 text-[11px]",
|
|
12192
12204
|
children: [
|
|
12193
|
-
/* @__PURE__ */
|
|
12194
|
-
/* @__PURE__ */
|
|
12205
|
+
/* @__PURE__ */ jsx51("div", { className: "mt-[1px] shrink-0", children: iconForStatus(todo.status) }),
|
|
12206
|
+
/* @__PURE__ */ jsx51("span", { className: contentClassName(todo.status), children: todo.content })
|
|
12195
12207
|
]
|
|
12196
12208
|
},
|
|
12197
12209
|
`${todo.content}:${todo.status ?? "pending"}`
|
|
@@ -12200,7 +12212,7 @@ function AgentTodoWriteContent({
|
|
|
12200
12212
|
function iconForStatus(status) {
|
|
12201
12213
|
switch (status) {
|
|
12202
12214
|
case "completed":
|
|
12203
|
-
return /* @__PURE__ */
|
|
12215
|
+
return /* @__PURE__ */ jsx51(
|
|
12204
12216
|
CheckCircle2,
|
|
12205
12217
|
{
|
|
12206
12218
|
size: 14,
|
|
@@ -12209,7 +12221,7 @@ function iconForStatus(status) {
|
|
|
12209
12221
|
}
|
|
12210
12222
|
);
|
|
12211
12223
|
case "in_progress":
|
|
12212
|
-
return /* @__PURE__ */
|
|
12224
|
+
return /* @__PURE__ */ jsx51(
|
|
12213
12225
|
AtomIcon,
|
|
12214
12226
|
{
|
|
12215
12227
|
size: 14,
|
|
@@ -12219,7 +12231,7 @@ function iconForStatus(status) {
|
|
|
12219
12231
|
}
|
|
12220
12232
|
);
|
|
12221
12233
|
default:
|
|
12222
|
-
return /* @__PURE__ */
|
|
12234
|
+
return /* @__PURE__ */ jsx51(
|
|
12223
12235
|
Circle,
|
|
12224
12236
|
{
|
|
12225
12237
|
size: 14,
|
|
@@ -12241,7 +12253,7 @@ function contentClassName(status) {
|
|
|
12241
12253
|
}
|
|
12242
12254
|
|
|
12243
12255
|
// shared/agentConversation/components/tool-renderers/AgentToolSearchContent.tsx
|
|
12244
|
-
import { jsx as
|
|
12256
|
+
import { jsx as jsx52, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
12245
12257
|
function AgentToolSearchContent({
|
|
12246
12258
|
call
|
|
12247
12259
|
}) {
|
|
@@ -12251,7 +12263,7 @@ function AgentToolSearchContent({
|
|
|
12251
12263
|
return null;
|
|
12252
12264
|
}
|
|
12253
12265
|
return /* @__PURE__ */ jsxs36("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
12254
|
-
toolSearch.displayQuery ? /* @__PURE__ */
|
|
12266
|
+
toolSearch.displayQuery ? /* @__PURE__ */ jsx52(ToolSection, { title: translate("agentHost.agentTool.details.query"), children: /* @__PURE__ */ jsx52(
|
|
12255
12267
|
ToolMarkdownBlock,
|
|
12256
12268
|
{
|
|
12257
12269
|
content: `${toolSearch.displayQuery}
|
|
@@ -12259,7 +12271,7 @@ function AgentToolSearchContent({
|
|
|
12259
12271
|
${toolSearch.mode}`
|
|
12260
12272
|
}
|
|
12261
12273
|
) }) : null,
|
|
12262
|
-
toolSearch.matches.length > 0 ? /* @__PURE__ */
|
|
12274
|
+
toolSearch.matches.length > 0 ? /* @__PURE__ */ jsx52(ToolSection, { title: translate("agentHost.agentTool.details.results"), children: /* @__PURE__ */ jsx52("div", { className: "workspace-agents-status-panel__detail-tool-result-list overflow-hidden rounded-[8px] border border-[var(--line-2)] bg-[var(--transparency-block)]", children: toolSearch.matches.map((match, index) => /* @__PURE__ */ jsx52(
|
|
12263
12275
|
"div",
|
|
12264
12276
|
{
|
|
12265
12277
|
className: `px-3 py-2 font-[var(--tsh-font-mono)] text-[11px] text-[var(--text-primary)] ${index > 0 ? "border-t border-[var(--line-2)]" : ""}`,
|
|
@@ -12267,8 +12279,8 @@ ${toolSearch.mode}`
|
|
|
12267
12279
|
},
|
|
12268
12280
|
match
|
|
12269
12281
|
)) }) }) : null,
|
|
12270
|
-
toolSearch.matches.length === 0 ? /* @__PURE__ */
|
|
12271
|
-
typeof toolSearch.totalDeferredTools === "number" ? /* @__PURE__ */
|
|
12282
|
+
toolSearch.matches.length === 0 ? /* @__PURE__ */ jsx52("div", { className: "text-[11px] italic text-[var(--text-tertiary)]", children: translate("agentHost.agentTool.details.noMatchingTools") }) : null,
|
|
12283
|
+
typeof toolSearch.totalDeferredTools === "number" ? /* @__PURE__ */ jsx52("div", { className: "text-[10px] text-[var(--text-tertiary)]", children: translate("agentHost.agentTool.details.loadedAvailable", {
|
|
12272
12284
|
loaded: toolSearch.matches.length,
|
|
12273
12285
|
available: toolSearch.totalDeferredTools
|
|
12274
12286
|
}) }) : null
|
|
@@ -12276,7 +12288,7 @@ ${toolSearch.mode}`
|
|
|
12276
12288
|
}
|
|
12277
12289
|
|
|
12278
12290
|
// shared/agentConversation/components/tool-renderers/AgentWriteContent.tsx
|
|
12279
|
-
import { jsx as
|
|
12291
|
+
import { jsx as jsx53, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
12280
12292
|
function AgentWriteContent({
|
|
12281
12293
|
call,
|
|
12282
12294
|
onLinkClick
|
|
@@ -12297,8 +12309,8 @@ function AgentWriteContent({
|
|
|
12297
12309
|
return null;
|
|
12298
12310
|
}
|
|
12299
12311
|
return /* @__PURE__ */ jsxs37("div", { className: "workspace-agents-status-panel__detail-tool-body workspace-agents-status-panel__detail-tool-body--flat", children: [
|
|
12300
|
-
path && files.length === 0 ? /* @__PURE__ */
|
|
12301
|
-
patchFiles.map((candidate) => /* @__PURE__ */
|
|
12312
|
+
path && files.length === 0 ? /* @__PURE__ */ jsx53(ToolMarkdownBlock, { content: path, onLinkClick }) : null,
|
|
12313
|
+
patchFiles.map((candidate) => /* @__PURE__ */ jsx53(
|
|
12302
12314
|
AgentUnifiedPatchViewer,
|
|
12303
12315
|
{
|
|
12304
12316
|
path: candidate.path,
|
|
@@ -12309,7 +12321,7 @@ function AgentWriteContent({
|
|
|
12309
12321
|
},
|
|
12310
12322
|
`patch:${candidate.path}`
|
|
12311
12323
|
)),
|
|
12312
|
-
contentFiles.map((candidate) => /* @__PURE__ */
|
|
12324
|
+
contentFiles.map((candidate) => /* @__PURE__ */ jsx53(
|
|
12313
12325
|
AgentCodeBlock,
|
|
12314
12326
|
{
|
|
12315
12327
|
path: candidate.path,
|
|
@@ -12320,7 +12332,7 @@ function AgentWriteContent({
|
|
|
12320
12332
|
},
|
|
12321
12333
|
`content:${candidate.path}`
|
|
12322
12334
|
)),
|
|
12323
|
-
fallbackContent ? /* @__PURE__ */
|
|
12335
|
+
fallbackContent ? /* @__PURE__ */ jsx53(
|
|
12324
12336
|
AgentCodeBlock,
|
|
12325
12337
|
{
|
|
12326
12338
|
path,
|
|
@@ -12334,7 +12346,7 @@ function AgentWriteContent({
|
|
|
12334
12346
|
}
|
|
12335
12347
|
|
|
12336
12348
|
// shared/agentConversation/components/tool-renderers/AgentExpandedToolContent.tsx
|
|
12337
|
-
import { jsx as
|
|
12349
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
12338
12350
|
function AgentExpandedToolContent({
|
|
12339
12351
|
call,
|
|
12340
12352
|
onLinkClick,
|
|
@@ -12345,65 +12357,65 @@ function AgentExpandedToolContent({
|
|
|
12345
12357
|
let content;
|
|
12346
12358
|
switch (call.rendererKind) {
|
|
12347
12359
|
case "approval":
|
|
12348
|
-
content = /* @__PURE__ */
|
|
12360
|
+
content = /* @__PURE__ */ jsx54(AgentApprovalContent, { ...props });
|
|
12349
12361
|
break;
|
|
12350
12362
|
case "plan-enter":
|
|
12351
12363
|
case "plan-exit":
|
|
12352
|
-
content = /* @__PURE__ */
|
|
12364
|
+
content = /* @__PURE__ */ jsx54(AgentPlanModeContent, { ...props });
|
|
12353
12365
|
break;
|
|
12354
12366
|
case "ask-user":
|
|
12355
|
-
content = /* @__PURE__ */
|
|
12367
|
+
content = /* @__PURE__ */ jsx54(AgentAskUserQuestionContent, { ...props });
|
|
12356
12368
|
break;
|
|
12357
12369
|
case "task":
|
|
12358
|
-
content = /* @__PURE__ */
|
|
12370
|
+
content = /* @__PURE__ */ jsx54(AgentTaskContent, { ...props });
|
|
12359
12371
|
break;
|
|
12360
12372
|
case "read":
|
|
12361
|
-
content = /* @__PURE__ */
|
|
12373
|
+
content = /* @__PURE__ */ jsx54(AgentReadContent, { ...props });
|
|
12362
12374
|
break;
|
|
12363
12375
|
case "write":
|
|
12364
|
-
content = /* @__PURE__ */
|
|
12376
|
+
content = /* @__PURE__ */ jsx54(AgentWriteContent, { ...props });
|
|
12365
12377
|
break;
|
|
12366
12378
|
case "edit":
|
|
12367
|
-
content = /* @__PURE__ */
|
|
12379
|
+
content = /* @__PURE__ */ jsx54(AgentEditContent, { ...props });
|
|
12368
12380
|
break;
|
|
12369
12381
|
case "bash":
|
|
12370
|
-
content = /* @__PURE__ */
|
|
12382
|
+
content = /* @__PURE__ */ jsx54(AgentBashContent, { ...props });
|
|
12371
12383
|
break;
|
|
12372
12384
|
case "search":
|
|
12373
|
-
content = /* @__PURE__ */
|
|
12385
|
+
content = /* @__PURE__ */ jsx54(AgentSearchContent, { ...props });
|
|
12374
12386
|
break;
|
|
12375
12387
|
case "web-search":
|
|
12376
|
-
content = /* @__PURE__ */
|
|
12388
|
+
content = /* @__PURE__ */ jsx54(AgentWebSearchContent, { ...props });
|
|
12377
12389
|
break;
|
|
12378
12390
|
case "web-fetch":
|
|
12379
|
-
content = /* @__PURE__ */
|
|
12391
|
+
content = /* @__PURE__ */ jsx54(AgentWebFetchContent, { ...props });
|
|
12380
12392
|
break;
|
|
12381
12393
|
case "image-generation":
|
|
12382
|
-
content = /* @__PURE__ */
|
|
12394
|
+
content = /* @__PURE__ */ jsx54(AgentImageGenerationContent, { ...props });
|
|
12383
12395
|
break;
|
|
12384
12396
|
case "todo-write":
|
|
12385
|
-
content = /* @__PURE__ */
|
|
12397
|
+
content = /* @__PURE__ */ jsx54(AgentTodoWriteContent, { ...props });
|
|
12386
12398
|
break;
|
|
12387
12399
|
case "tool-search":
|
|
12388
|
-
content = /* @__PURE__ */
|
|
12400
|
+
content = /* @__PURE__ */ jsx54(AgentToolSearchContent, { ...props });
|
|
12389
12401
|
break;
|
|
12390
12402
|
case "skill":
|
|
12391
|
-
content = /* @__PURE__ */
|
|
12403
|
+
content = /* @__PURE__ */ jsx54(AgentSkillContent, { ...props });
|
|
12392
12404
|
break;
|
|
12393
12405
|
case "mcp":
|
|
12394
|
-
content = /* @__PURE__ */
|
|
12406
|
+
content = /* @__PURE__ */ jsx54(AgentMcpToolContent, { ...props });
|
|
12395
12407
|
break;
|
|
12396
12408
|
default:
|
|
12397
|
-
content = /* @__PURE__ */
|
|
12409
|
+
content = /* @__PURE__ */ jsx54(AgentDefaultToolContent, { ...props });
|
|
12398
12410
|
}
|
|
12399
12411
|
if (!content) {
|
|
12400
12412
|
return null;
|
|
12401
12413
|
}
|
|
12402
|
-
return /* @__PURE__ */
|
|
12414
|
+
return /* @__PURE__ */ jsx54(AgentToolPreviewModeProvider, { previewMode, children: content });
|
|
12403
12415
|
}
|
|
12404
12416
|
|
|
12405
12417
|
// shared/agentConversation/components/AgentAskUserQuestionCard.tsx
|
|
12406
|
-
import { jsx as
|
|
12418
|
+
import { jsx as jsx55, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
12407
12419
|
function AgentAskUserQuestionCard({
|
|
12408
12420
|
call,
|
|
12409
12421
|
onLinkClick,
|
|
@@ -12417,18 +12429,18 @@ function AgentAskUserQuestionCard({
|
|
|
12417
12429
|
const pinned = nonCollapsible ?? waitingInput;
|
|
12418
12430
|
const [expanded, setExpanded] = useState16(defaultExpanded ?? waitingInput);
|
|
12419
12431
|
return /* @__PURE__ */ jsxs38("div", { className: "workspace-agents-status-panel__detail-tool-row workspace-agents-status-panel__detail-tool-row--ask-user", children: [
|
|
12420
|
-
hasDetail && !pinned ? /* @__PURE__ */
|
|
12432
|
+
hasDetail && !pinned ? /* @__PURE__ */ jsx55(
|
|
12421
12433
|
"button",
|
|
12422
12434
|
{
|
|
12423
12435
|
type: "button",
|
|
12424
12436
|
className: "workspace-agents-status-panel__detail-tool-row-head workspace-agents-status-panel__detail-tool-row-head--button",
|
|
12425
12437
|
"aria-expanded": expanded,
|
|
12426
12438
|
onClick: () => setExpanded((value) => !value),
|
|
12427
|
-
children: /* @__PURE__ */
|
|
12439
|
+
children: /* @__PURE__ */ jsx55(AgentToolCallHeader, { call, expanded, hasDetail: true })
|
|
12428
12440
|
}
|
|
12429
|
-
) : /* @__PURE__ */
|
|
12430
|
-
!hasDetail && call.summary ? /* @__PURE__ */
|
|
12431
|
-
hasDetail && pinned ? /* @__PURE__ */
|
|
12441
|
+
) : /* @__PURE__ */ jsx55("div", { className: "workspace-agents-status-panel__detail-tool-row-head", children: /* @__PURE__ */ jsx55(AgentToolCallHeader, { call, expanded: false, hasDetail: false }) }),
|
|
12442
|
+
!hasDetail && call.summary ? /* @__PURE__ */ jsx55("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: call.summary }) : null,
|
|
12443
|
+
hasDetail && pinned ? /* @__PURE__ */ jsx55(
|
|
12432
12444
|
AgentExpandedToolContent,
|
|
12433
12445
|
{
|
|
12434
12446
|
call,
|
|
@@ -12436,7 +12448,7 @@ function AgentAskUserQuestionCard({
|
|
|
12436
12448
|
previewMode
|
|
12437
12449
|
}
|
|
12438
12450
|
) : null,
|
|
12439
|
-
hasDetail && !pinned ? /* @__PURE__ */
|
|
12451
|
+
hasDetail && !pinned ? /* @__PURE__ */ jsx55(CollapsibleReveal, { expanded, children: /* @__PURE__ */ jsx55(
|
|
12440
12452
|
AgentExpandedToolContent,
|
|
12441
12453
|
{
|
|
12442
12454
|
call,
|
|
@@ -12448,7 +12460,7 @@ function AgentAskUserQuestionCard({
|
|
|
12448
12460
|
}
|
|
12449
12461
|
|
|
12450
12462
|
// shared/agentConversation/components/AgentEnterPlanModeCard.tsx
|
|
12451
|
-
import { jsx as
|
|
12463
|
+
import { jsx as jsx56, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
12452
12464
|
function AgentEnterPlanModeCard({
|
|
12453
12465
|
call,
|
|
12454
12466
|
onLinkClick,
|
|
@@ -12457,9 +12469,9 @@ function AgentEnterPlanModeCard({
|
|
|
12457
12469
|
"use memo";
|
|
12458
12470
|
const hasDetail = hasAgentToolContent(call);
|
|
12459
12471
|
return /* @__PURE__ */ jsxs39("div", { className: "workspace-agents-status-panel__detail-tool-row workspace-agents-status-panel__detail-tool-row--plan-enter", children: [
|
|
12460
|
-
/* @__PURE__ */
|
|
12461
|
-
!hasDetail && call.summary ? /* @__PURE__ */
|
|
12462
|
-
hasDetail ? /* @__PURE__ */
|
|
12472
|
+
/* @__PURE__ */ jsx56("div", { className: "workspace-agents-status-panel__detail-tool-row-head", children: /* @__PURE__ */ jsx56(AgentToolCallHeader, { call, expanded: false, hasDetail: false }) }),
|
|
12473
|
+
!hasDetail && call.summary ? /* @__PURE__ */ jsx56("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: call.summary }) : null,
|
|
12474
|
+
hasDetail ? /* @__PURE__ */ jsx56(
|
|
12463
12475
|
AgentExpandedToolContent,
|
|
12464
12476
|
{
|
|
12465
12477
|
call,
|
|
@@ -12471,7 +12483,7 @@ function AgentEnterPlanModeCard({
|
|
|
12471
12483
|
}
|
|
12472
12484
|
|
|
12473
12485
|
// shared/agentConversation/components/AgentExitPlanModeCard.tsx
|
|
12474
|
-
import { jsx as
|
|
12486
|
+
import { jsx as jsx57, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
12475
12487
|
function AgentExitPlanModeCard({
|
|
12476
12488
|
call,
|
|
12477
12489
|
onLinkClick,
|
|
@@ -12480,9 +12492,9 @@ function AgentExitPlanModeCard({
|
|
|
12480
12492
|
"use memo";
|
|
12481
12493
|
const hasDetail = hasAgentToolContent(call);
|
|
12482
12494
|
return /* @__PURE__ */ jsxs40("div", { className: "workspace-agents-status-panel__detail-tool-row workspace-agents-status-panel__detail-tool-row--plan-exit", children: [
|
|
12483
|
-
/* @__PURE__ */
|
|
12484
|
-
!hasDetail && call.summary ? /* @__PURE__ */
|
|
12485
|
-
hasDetail ? /* @__PURE__ */
|
|
12495
|
+
/* @__PURE__ */ jsx57("div", { className: "workspace-agents-status-panel__detail-tool-row-head", children: /* @__PURE__ */ jsx57(AgentToolCallHeader, { call, expanded: false, hasDetail: false }) }),
|
|
12496
|
+
!hasDetail && call.summary ? /* @__PURE__ */ jsx57("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: call.summary }) : null,
|
|
12497
|
+
hasDetail ? /* @__PURE__ */ jsx57(
|
|
12486
12498
|
AgentExpandedToolContent,
|
|
12487
12499
|
{
|
|
12488
12500
|
call,
|
|
@@ -12495,7 +12507,7 @@ function AgentExitPlanModeCard({
|
|
|
12495
12507
|
|
|
12496
12508
|
// shared/agentConversation/components/AgentTaskCallCard.tsx
|
|
12497
12509
|
import { useState as useState17 } from "react";
|
|
12498
|
-
import { jsx as
|
|
12510
|
+
import { jsx as jsx58, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
12499
12511
|
function AgentTaskCallCard({
|
|
12500
12512
|
call,
|
|
12501
12513
|
onLinkClick,
|
|
@@ -12510,7 +12522,7 @@ function AgentTaskCallCard({
|
|
|
12510
12522
|
const [expanded, setExpanded] = useState17(defaultExpanded ?? running);
|
|
12511
12523
|
const ariaLabel = taskCallAriaLabel(call);
|
|
12512
12524
|
return /* @__PURE__ */ jsxs41("div", { className: "workspace-agents-status-panel__detail-tool-row workspace-agents-status-panel__detail-tool-row--task", children: [
|
|
12513
|
-
hasDetail && !pinned ? /* @__PURE__ */
|
|
12525
|
+
hasDetail && !pinned ? /* @__PURE__ */ jsx58(
|
|
12514
12526
|
"button",
|
|
12515
12527
|
{
|
|
12516
12528
|
type: "button",
|
|
@@ -12518,11 +12530,11 @@ function AgentTaskCallCard({
|
|
|
12518
12530
|
"aria-expanded": expanded,
|
|
12519
12531
|
"aria-label": ariaLabel,
|
|
12520
12532
|
onClick: () => setExpanded((value) => !value),
|
|
12521
|
-
children: /* @__PURE__ */
|
|
12533
|
+
children: /* @__PURE__ */ jsx58(AgentToolCallHeader, { call, expanded, hasDetail: true })
|
|
12522
12534
|
}
|
|
12523
|
-
) : /* @__PURE__ */
|
|
12524
|
-
!hasDetail && call.summary ? /* @__PURE__ */
|
|
12525
|
-
hasDetail && pinned ? /* @__PURE__ */
|
|
12535
|
+
) : /* @__PURE__ */ jsx58("div", { className: "workspace-agents-status-panel__detail-tool-row-head", children: /* @__PURE__ */ jsx58(AgentToolCallHeader, { call, expanded: false, hasDetail: false }) }),
|
|
12536
|
+
!hasDetail && call.summary ? /* @__PURE__ */ jsx58("div", { className: "workspace-agents-status-panel__detail-tool-summary", children: call.summary }) : null,
|
|
12537
|
+
hasDetail && pinned ? /* @__PURE__ */ jsx58(
|
|
12526
12538
|
AgentExpandedToolContent,
|
|
12527
12539
|
{
|
|
12528
12540
|
call,
|
|
@@ -12530,7 +12542,7 @@ function AgentTaskCallCard({
|
|
|
12530
12542
|
previewMode
|
|
12531
12543
|
}
|
|
12532
12544
|
) : null,
|
|
12533
|
-
hasDetail && !pinned ? /* @__PURE__ */
|
|
12545
|
+
hasDetail && !pinned ? /* @__PURE__ */ jsx58(CollapsibleReveal, { expanded, children: /* @__PURE__ */ jsx58(
|
|
12534
12546
|
AgentExpandedToolContent,
|
|
12535
12547
|
{
|
|
12536
12548
|
call,
|
|
@@ -12553,17 +12565,17 @@ import { memo, useEffect as useEffect11, useState as useState18 } from "react";
|
|
|
12553
12565
|
import { AlertCircle as AlertCircle2, ChevronDown as ChevronDown7, ChevronRight as ChevronRight6 } from "lucide-react";
|
|
12554
12566
|
|
|
12555
12567
|
// app/renderer/components/icons/AgentLinedIcon.tsx
|
|
12556
|
-
import { jsx as
|
|
12568
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
12557
12569
|
function AgentLinedIcon(props) {
|
|
12558
12570
|
"use memo";
|
|
12559
|
-
return /* @__PURE__ */
|
|
12571
|
+
return /* @__PURE__ */ jsx59(
|
|
12560
12572
|
"svg",
|
|
12561
12573
|
{
|
|
12562
12574
|
viewBox: "0 0 24 24",
|
|
12563
12575
|
fill: "none",
|
|
12564
12576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12565
12577
|
...props,
|
|
12566
|
-
children: /* @__PURE__ */
|
|
12578
|
+
children: /* @__PURE__ */ jsx59(
|
|
12567
12579
|
"path",
|
|
12568
12580
|
{
|
|
12569
12581
|
d: "M12 3C12.5523 3 13 3.44772 13 4V7H18C19.6569 7 21 8.34315 21 10V13H22C22.5523 13 23 13.4477 23 14C23 14.5523 22.5523 15 22 15H21V18C21 19.6569 19.6569 21 18 21H6C4.34315 21 3 19.6569 3 18V15H2C1.44772 15 1 14.5523 1 14C1 13.4477 1.44772 13 2 13H3V10C3 8.34315 4.34315 7 6 7H11V5H8C7.44772 5 7 4.55228 7 4C7 3.44772 7.44772 3 8 3H12ZM6 9C5.44772 9 5 9.44772 5 10V18C5 18.5523 5.44772 19 6 19H18C18.5523 19 19 18.5523 19 18V10C19 9.44772 18.5523 9 18 9H6ZM9 12C9.55229 12 10 12.4477 10 13V15C10 15.5523 9.55229 16 9 16C8.44772 16 8 15.5523 8 15V13C8 12.4477 8.44772 12 9 12ZM15 12C15.5523 12 16 12.4477 16 13V15C16 15.5523 15.5523 16 15 16C14.4477 16 14 15.5523 14 15V13C14 12.4477 14.4477 12 15 12Z",
|
|
@@ -12575,7 +12587,7 @@ function AgentLinedIcon(props) {
|
|
|
12575
12587
|
}
|
|
12576
12588
|
|
|
12577
12589
|
// shared/agentConversation/components/AgentSubAgentCards.tsx
|
|
12578
|
-
import { Fragment as Fragment5, jsx as
|
|
12590
|
+
import { Fragment as Fragment5, jsx as jsx60, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
12579
12591
|
function AgentSubAgentCards({
|
|
12580
12592
|
call,
|
|
12581
12593
|
onLinkClick
|
|
@@ -12585,7 +12597,7 @@ function AgentSubAgentCards({
|
|
|
12585
12597
|
if (subAgents.length === 0) {
|
|
12586
12598
|
return null;
|
|
12587
12599
|
}
|
|
12588
|
-
return /* @__PURE__ */
|
|
12600
|
+
return /* @__PURE__ */ jsx60(Fragment5, { children: subAgents.map((subAgent) => /* @__PURE__ */ jsx60(
|
|
12589
12601
|
AgentSubAgentCard,
|
|
12590
12602
|
{
|
|
12591
12603
|
subAgent,
|
|
@@ -12613,7 +12625,7 @@ function AgentSubAgentCardImpl({
|
|
|
12613
12625
|
className: "workspace-agents-status-panel__detail-tool-row workspace-agents-status-panel__detail-tool-row--subagent",
|
|
12614
12626
|
"data-status": subAgent.status,
|
|
12615
12627
|
children: [
|
|
12616
|
-
/* @__PURE__ */
|
|
12628
|
+
/* @__PURE__ */ jsx60(
|
|
12617
12629
|
"button",
|
|
12618
12630
|
{
|
|
12619
12631
|
type: "button",
|
|
@@ -12621,10 +12633,10 @@ function AgentSubAgentCardImpl({
|
|
|
12621
12633
|
"aria-expanded": expanded,
|
|
12622
12634
|
"aria-label": subAgentAriaLabel(subAgent),
|
|
12623
12635
|
onClick: () => setExpanded((value) => !value),
|
|
12624
|
-
children: /* @__PURE__ */
|
|
12636
|
+
children: /* @__PURE__ */ jsx60(SubAgentHeader, { subAgent, expanded })
|
|
12625
12637
|
}
|
|
12626
12638
|
),
|
|
12627
|
-
/* @__PURE__ */
|
|
12639
|
+
/* @__PURE__ */ jsx60(CollapsibleReveal, { expanded, children: /* @__PURE__ */ jsx60("div", { className: "workspace-agents-status-panel__detail-subagent-reveal", children: /* @__PURE__ */ jsx60(SubAgentBody, { subAgent, onLinkClick }) }) })
|
|
12628
12640
|
]
|
|
12629
12641
|
}
|
|
12630
12642
|
);
|
|
@@ -12648,16 +12660,16 @@ function SubAgentHeader({
|
|
|
12648
12660
|
running ? "tsh-inline-scanlight-group" : ""
|
|
12649
12661
|
].filter(Boolean).join(" "),
|
|
12650
12662
|
children: [
|
|
12651
|
-
/* @__PURE__ */
|
|
12663
|
+
/* @__PURE__ */ jsx60("div", { className: "workspace-agents-status-panel__detail-tool-row-icon tsh-inline-scanlight-icon", children: subAgent.status === "failed" ? /* @__PURE__ */ jsx60(AlertCircle2, { size: 16, strokeWidth: 2, "aria-hidden": "true" }) : /* @__PURE__ */ jsx60(AgentLinedIcon, { width: 16, height: 16, "aria-hidden": "true" }) }),
|
|
12652
12664
|
/* @__PURE__ */ jsxs42("div", { className: "workspace-agents-status-panel__detail-tool-row-text", children: [
|
|
12653
|
-
/* @__PURE__ */
|
|
12654
|
-
nameText ? /* @__PURE__ */
|
|
12665
|
+
/* @__PURE__ */ jsx60("strong", { className: "workspace-agents-status-panel__detail-tool-row-title", children: translate("agentHost.agentTool.details.subAgentFallbackName") }),
|
|
12666
|
+
nameText ? /* @__PURE__ */ jsx60("span", { className: "workspace-agents-status-panel__detail-subagent-name", children: nameText }) : null,
|
|
12655
12667
|
/* @__PURE__ */ jsxs42("span", { className: "workspace-agents-status-panel__detail-tool-status", children: [
|
|
12656
12668
|
elapsedText ? `${elapsedText} \xB7 ` : "",
|
|
12657
12669
|
statusLabel
|
|
12658
12670
|
] })
|
|
12659
12671
|
] }),
|
|
12660
|
-
expanded ? /* @__PURE__ */
|
|
12672
|
+
expanded ? /* @__PURE__ */ jsx60(
|
|
12661
12673
|
ChevronDown7,
|
|
12662
12674
|
{
|
|
12663
12675
|
size: 12,
|
|
@@ -12665,7 +12677,7 @@ function SubAgentHeader({
|
|
|
12665
12677
|
"aria-hidden": "true",
|
|
12666
12678
|
className: "workspace-agents-status-panel__detail-tool-row-chevron"
|
|
12667
12679
|
}
|
|
12668
|
-
) : /* @__PURE__ */
|
|
12680
|
+
) : /* @__PURE__ */ jsx60(
|
|
12669
12681
|
ChevronRight6,
|
|
12670
12682
|
{
|
|
12671
12683
|
size: 12,
|
|
@@ -12683,10 +12695,10 @@ function SubAgentBody({
|
|
|
12683
12695
|
onLinkClick
|
|
12684
12696
|
}) {
|
|
12685
12697
|
"use memo";
|
|
12686
|
-
return /* @__PURE__ */
|
|
12687
|
-
subAgent.task ? /* @__PURE__ */
|
|
12688
|
-
/* @__PURE__ */
|
|
12689
|
-
subAgent.childSessions.length > 0 ? /* @__PURE__ */
|
|
12698
|
+
return /* @__PURE__ */ jsx60("div", { className: "workspace-agents-status-panel__detail-tool-body workspace-agents-status-panel__detail-tool-body--plain", children: /* @__PURE__ */ jsxs42("div", { className: "workspace-agents-status-panel__detail-subagent-terminal", children: [
|
|
12699
|
+
subAgent.task ? /* @__PURE__ */ jsx60("div", { className: "workspace-agents-status-panel__detail-subagent-task-strip", children: subAgent.task }) : null,
|
|
12700
|
+
/* @__PURE__ */ jsx60(SubAgentProgress, { subAgent }),
|
|
12701
|
+
subAgent.childSessions.length > 0 ? /* @__PURE__ */ jsx60("div", { className: "workspace-agents-status-panel__detail-subagent-children", children: subAgent.childSessions.map((childSession) => /* @__PURE__ */ jsx60(
|
|
12690
12702
|
AgentSubAgentCard,
|
|
12691
12703
|
{
|
|
12692
12704
|
subAgent: childSession,
|
|
@@ -12703,7 +12715,7 @@ function SubAgentProgress({
|
|
|
12703
12715
|
const text = subAgent.failureDetail ?? subAgent.latestActivity ?? translate(
|
|
12704
12716
|
subAgent.queued ? "agentHost.agentTool.details.subAgentQueued" : "agentHost.agentTool.details.subAgentStarting"
|
|
12705
12717
|
);
|
|
12706
|
-
return /* @__PURE__ */
|
|
12718
|
+
return /* @__PURE__ */ jsx60(
|
|
12707
12719
|
"div",
|
|
12708
12720
|
{
|
|
12709
12721
|
className: `workspace-agents-status-panel__detail-subagent-activity workspace-agents-status-panel__detail-subagent-activity--in-terminal${subAgent.failureDetail ? " workspace-agents-status-panel__detail-subagent-activity--failure" : ""}`,
|
|
@@ -12773,7 +12785,7 @@ function subAgentElapsedText(subAgent, runningNowUnixMs) {
|
|
|
12773
12785
|
|
|
12774
12786
|
// shared/agentConversation/components/AgentToolCallCard.tsx
|
|
12775
12787
|
import { useState as useState19 } from "react";
|
|
12776
|
-
import { jsx as
|
|
12788
|
+
import { jsx as jsx61, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
12777
12789
|
function AgentToolCallCard({
|
|
12778
12790
|
call,
|
|
12779
12791
|
onLinkClick,
|
|
@@ -12795,7 +12807,7 @@ function AgentToolCallCard({
|
|
|
12795
12807
|
variantClassName ?? ""
|
|
12796
12808
|
].filter(Boolean).join(" "),
|
|
12797
12809
|
children: [
|
|
12798
|
-
canCollapse ? /* @__PURE__ */
|
|
12810
|
+
canCollapse ? /* @__PURE__ */ jsx61(
|
|
12799
12811
|
"button",
|
|
12800
12812
|
{
|
|
12801
12813
|
type: "button",
|
|
@@ -12803,10 +12815,10 @@ function AgentToolCallCard({
|
|
|
12803
12815
|
"aria-expanded": expanded,
|
|
12804
12816
|
"aria-label": ariaLabel,
|
|
12805
12817
|
onClick: () => setExpanded((value) => !value),
|
|
12806
|
-
children: /* @__PURE__ */
|
|
12818
|
+
children: /* @__PURE__ */ jsx61(AgentToolCallHeader, { call, expanded, hasDetail: true })
|
|
12807
12819
|
}
|
|
12808
|
-
) : /* @__PURE__ */
|
|
12809
|
-
hasDetail && nonCollapsible ? /* @__PURE__ */
|
|
12820
|
+
) : /* @__PURE__ */ jsx61("div", { className: "workspace-agents-status-panel__detail-tool-row-head", children: /* @__PURE__ */ jsx61(AgentToolCallHeader, { call, expanded: false, hasDetail: false }) }),
|
|
12821
|
+
hasDetail && nonCollapsible ? /* @__PURE__ */ jsx61(
|
|
12810
12822
|
AgentExpandedToolContent,
|
|
12811
12823
|
{
|
|
12812
12824
|
call,
|
|
@@ -12814,7 +12826,7 @@ function AgentToolCallCard({
|
|
|
12814
12826
|
previewMode
|
|
12815
12827
|
}
|
|
12816
12828
|
) : null,
|
|
12817
|
-
hasDetail && !nonCollapsible ? /* @__PURE__ */
|
|
12829
|
+
hasDetail && !nonCollapsible ? /* @__PURE__ */ jsx61(CollapsibleReveal, { expanded, children: /* @__PURE__ */ jsx61(
|
|
12818
12830
|
AgentExpandedToolContent,
|
|
12819
12831
|
{
|
|
12820
12832
|
call,
|
|
@@ -12835,7 +12847,7 @@ function toolCallAriaLabel(call) {
|
|
|
12835
12847
|
}
|
|
12836
12848
|
|
|
12837
12849
|
// shared/agentConversation/components/AgentToolGroupRow.tsx
|
|
12838
|
-
import { Fragment as Fragment6, jsx as
|
|
12850
|
+
import { Fragment as Fragment6, jsx as jsx62, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
12839
12851
|
var AgentToolGroupRow = memo2(function AgentToolGroupRow2({
|
|
12840
12852
|
row,
|
|
12841
12853
|
label,
|
|
@@ -12886,8 +12898,8 @@ var AgentToolGroupRow = memo2(function AgentToolGroupRow2({
|
|
|
12886
12898
|
"aria-label": groupLabel,
|
|
12887
12899
|
onClick: () => setNextExpanded(!isExpanded),
|
|
12888
12900
|
children: [
|
|
12889
|
-
/* @__PURE__ */
|
|
12890
|
-
isExpanded ? /* @__PURE__ */
|
|
12901
|
+
/* @__PURE__ */ jsx62(ToolGroupLabel, { label: groupLabel }),
|
|
12902
|
+
isExpanded ? /* @__PURE__ */ jsx62(
|
|
12891
12903
|
ChevronDown8,
|
|
12892
12904
|
{
|
|
12893
12905
|
size: 12,
|
|
@@ -12895,7 +12907,7 @@ var AgentToolGroupRow = memo2(function AgentToolGroupRow2({
|
|
|
12895
12907
|
"aria-hidden": "true",
|
|
12896
12908
|
className: "workspace-agents-status-panel__detail-tool-count-chevron"
|
|
12897
12909
|
}
|
|
12898
|
-
) : /* @__PURE__ */
|
|
12910
|
+
) : /* @__PURE__ */ jsx62(
|
|
12899
12911
|
ChevronRight7,
|
|
12900
12912
|
{
|
|
12901
12913
|
size: 12,
|
|
@@ -12906,13 +12918,13 @@ var AgentToolGroupRow = memo2(function AgentToolGroupRow2({
|
|
|
12906
12918
|
)
|
|
12907
12919
|
]
|
|
12908
12920
|
}
|
|
12909
|
-
) : /* @__PURE__ */
|
|
12910
|
-
hasDetail ? /* @__PURE__ */
|
|
12911
|
-
(entry) => entry.kind === "thinking" ? /* @__PURE__ */
|
|
12921
|
+
) : /* @__PURE__ */ jsx62("div", { className: "workspace-agents-status-panel__detail-tool-count", children: /* @__PURE__ */ jsx62(ToolGroupLabel, { label: groupLabel }) }),
|
|
12922
|
+
hasDetail ? /* @__PURE__ */ jsx62(CollapsibleReveal, { expanded: isExpanded, children: /* @__PURE__ */ jsx62("div", { className: "workspace-agents-status-panel__detail-tool-list", children: row.entries.map(
|
|
12923
|
+
(entry) => entry.kind === "thinking" ? /* @__PURE__ */ jsx62(
|
|
12912
12924
|
"div",
|
|
12913
12925
|
{
|
|
12914
12926
|
className: "workspace-agents-status-panel__detail-tool-list-item workspace-agents-status-panel__detail-tool-row",
|
|
12915
|
-
children: /* @__PURE__ */
|
|
12927
|
+
children: /* @__PURE__ */ jsx62(
|
|
12916
12928
|
AgentThinkingDisclosure,
|
|
12917
12929
|
{
|
|
12918
12930
|
thinking: entry.thinking,
|
|
@@ -12925,7 +12937,7 @@ var AgentToolGroupRow = memo2(function AgentToolGroupRow2({
|
|
|
12925
12937
|
)
|
|
12926
12938
|
},
|
|
12927
12939
|
entry.thinking.id
|
|
12928
|
-
) : /* @__PURE__ */
|
|
12940
|
+
) : /* @__PURE__ */ jsx62(
|
|
12929
12941
|
"div",
|
|
12930
12942
|
{
|
|
12931
12943
|
className: "workspace-agents-status-panel__detail-tool-list-item",
|
|
@@ -12947,7 +12959,7 @@ var AgentToolGroupRow = memo2(function AgentToolGroupRow2({
|
|
|
12947
12959
|
function ToolGroupLabel({ label }) {
|
|
12948
12960
|
"use memo";
|
|
12949
12961
|
return /* @__PURE__ */ jsxs44(Fragment6, { children: [
|
|
12950
|
-
/* @__PURE__ */
|
|
12962
|
+
/* @__PURE__ */ jsx62(
|
|
12951
12963
|
ToolActivityKindIcon,
|
|
12952
12964
|
{
|
|
12953
12965
|
kind: "update_todos",
|
|
@@ -12956,37 +12968,37 @@ function ToolGroupLabel({ label }) {
|
|
|
12956
12968
|
className: "workspace-agents-status-panel__detail-tool-count-icon"
|
|
12957
12969
|
}
|
|
12958
12970
|
),
|
|
12959
|
-
/* @__PURE__ */
|
|
12971
|
+
/* @__PURE__ */ jsx62("span", { className: "workspace-agents-status-panel__detail-tool-count-label", children: renderToolCountLabel(label) })
|
|
12960
12972
|
] });
|
|
12961
12973
|
}
|
|
12962
12974
|
function renderToolCountLabel(label) {
|
|
12963
|
-
return /* @__PURE__ */
|
|
12975
|
+
return /* @__PURE__ */ jsx62("span", { className: "workspace-agents-status-panel__detail-tool-count-primary", children: label });
|
|
12964
12976
|
}
|
|
12965
12977
|
function renderToolCard(call, onLinkClick, previewMode = false, showRawTimelineJson = false, rawTimelineJsonLabel = "") {
|
|
12966
12978
|
const props = { call, onLinkClick, previewMode };
|
|
12967
12979
|
if (call.task?.subAgents?.length) {
|
|
12968
|
-
return /* @__PURE__ */
|
|
12980
|
+
return /* @__PURE__ */ jsx62(AgentSubAgentCards, { call, onLinkClick });
|
|
12969
12981
|
}
|
|
12970
12982
|
let card;
|
|
12971
12983
|
switch (call.rendererKind) {
|
|
12972
12984
|
case "plan-enter":
|
|
12973
|
-
card = /* @__PURE__ */
|
|
12985
|
+
card = /* @__PURE__ */ jsx62(AgentEnterPlanModeCard, { ...props });
|
|
12974
12986
|
break;
|
|
12975
12987
|
case "plan-exit":
|
|
12976
|
-
card = /* @__PURE__ */
|
|
12988
|
+
card = /* @__PURE__ */ jsx62(AgentExitPlanModeCard, { ...props });
|
|
12977
12989
|
break;
|
|
12978
12990
|
case "ask-user":
|
|
12979
|
-
card = /* @__PURE__ */
|
|
12991
|
+
card = /* @__PURE__ */ jsx62(AgentAskUserQuestionCard, { ...props });
|
|
12980
12992
|
break;
|
|
12981
12993
|
case "task":
|
|
12982
|
-
card = /* @__PURE__ */
|
|
12994
|
+
card = /* @__PURE__ */ jsx62(AgentTaskCallCard, { ...props });
|
|
12983
12995
|
break;
|
|
12984
12996
|
default:
|
|
12985
|
-
card = /* @__PURE__ */
|
|
12997
|
+
card = /* @__PURE__ */ jsx62(AgentToolCallCard, { ...props });
|
|
12986
12998
|
}
|
|
12987
12999
|
return /* @__PURE__ */ jsxs44(Fragment6, { children: [
|
|
12988
13000
|
card,
|
|
12989
|
-
showRawTimelineJson && rawTimelineJsonLabel ? /* @__PURE__ */
|
|
13001
|
+
showRawTimelineJson && rawTimelineJsonLabel ? /* @__PURE__ */ jsx62(
|
|
12990
13002
|
RawTimelineJsonDisclosure,
|
|
12991
13003
|
{
|
|
12992
13004
|
items: call.sourceTimelineItems,
|
|
@@ -13014,10 +13026,10 @@ import {
|
|
|
13014
13026
|
} from "@tutti-os/ui-system";
|
|
13015
13027
|
|
|
13016
13028
|
// app/renderer/components/icons/DirectLinedIcon.tsx
|
|
13017
|
-
import { jsx as
|
|
13029
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
13018
13030
|
function DirectLinedIcon(props) {
|
|
13019
13031
|
"use memo";
|
|
13020
|
-
return /* @__PURE__ */
|
|
13032
|
+
return /* @__PURE__ */ jsx63(
|
|
13021
13033
|
"svg",
|
|
13022
13034
|
{
|
|
13023
13035
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13027,7 +13039,7 @@ function DirectLinedIcon(props) {
|
|
|
13027
13039
|
"data-nexight-chrome-glyph": "fill",
|
|
13028
13040
|
"data-tutti-chrome-glyph": "fill",
|
|
13029
13041
|
...props,
|
|
13030
|
-
children: /* @__PURE__ */
|
|
13042
|
+
children: /* @__PURE__ */ jsx63(
|
|
13031
13043
|
"path",
|
|
13032
13044
|
{
|
|
13033
13045
|
fill: "currentColor",
|
|
@@ -13228,7 +13240,7 @@ function isInsideOrEqualPatchPath(path, root) {
|
|
|
13228
13240
|
}
|
|
13229
13241
|
|
|
13230
13242
|
// shared/agentConversation/components/AgentTurnSummaryRow.tsx
|
|
13231
|
-
import { jsx as
|
|
13243
|
+
import { jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
13232
13244
|
function AgentTurnSummaryRow({
|
|
13233
13245
|
row,
|
|
13234
13246
|
workspaceRoot,
|
|
@@ -13374,10 +13386,10 @@ function AgentTurnSummaryRow({
|
|
|
13374
13386
|
}
|
|
13375
13387
|
}
|
|
13376
13388
|
};
|
|
13377
|
-
return /* @__PURE__ */
|
|
13389
|
+
return /* @__PURE__ */ jsx64("section", { className: "workspace-agents-status-panel__detail-turn-summary", children: /* @__PURE__ */ jsxs45("div", { className: "agent-turn-summary-card w-full overflow-hidden rounded-[8px] text-[var(--text-primary)]", children: [
|
|
13378
13390
|
/* @__PURE__ */ jsxs45("div", { className: "flex items-center gap-3 px-4 py-3", children: [
|
|
13379
|
-
/* @__PURE__ */
|
|
13380
|
-
/* @__PURE__ */
|
|
13391
|
+
/* @__PURE__ */ jsx64("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ jsxs45("div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
13392
|
+
/* @__PURE__ */ jsx64("div", { className: "min-w-0 text-[15px] font-semibold leading-5 tracking-[0] text-[var(--text-primary)]", children: translate("agentHost.agentGui.turnSummaryFilesChanged", {
|
|
13381
13393
|
count: row.fileCount
|
|
13382
13394
|
}) }),
|
|
13383
13395
|
/* @__PURE__ */ jsxs45("div", { className: "inline-flex shrink-0 items-center gap-2.5 text-[11px] font-semibold", children: [
|
|
@@ -13391,8 +13403,8 @@ function AgentTurnSummaryRow({
|
|
|
13391
13403
|
] }) : null
|
|
13392
13404
|
] })
|
|
13393
13405
|
] }) }),
|
|
13394
|
-
canRenderPatchButton ? /* @__PURE__ */
|
|
13395
|
-
/* @__PURE__ */
|
|
13406
|
+
canRenderPatchButton ? /* @__PURE__ */ jsx64(TooltipProvider, { delayDuration: 200, children: /* @__PURE__ */ jsxs45(Tooltip, { children: [
|
|
13407
|
+
/* @__PURE__ */ jsx64(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx64(
|
|
13396
13408
|
"span",
|
|
13397
13409
|
{
|
|
13398
13410
|
className: `inline-flex shrink-0 ${isPatchActionDisabled ? "cursor-not-allowed" : ""}`,
|
|
@@ -13404,7 +13416,7 @@ function AgentTurnSummaryRow({
|
|
|
13404
13416
|
disabled: isPatchActionDisabled,
|
|
13405
13417
|
onClick: handlePatchAction,
|
|
13406
13418
|
children: [
|
|
13407
|
-
patchPending || isPatchSupportChecking ? /* @__PURE__ */
|
|
13419
|
+
patchPending || isPatchSupportChecking ? /* @__PURE__ */ jsx64(
|
|
13408
13420
|
LoaderCircle3,
|
|
13409
13421
|
{
|
|
13410
13422
|
width: 14,
|
|
@@ -13412,7 +13424,7 @@ function AgentTurnSummaryRow({
|
|
|
13412
13424
|
"aria-hidden": "true",
|
|
13413
13425
|
className: "animate-spin text-[var(--text-secondary)]"
|
|
13414
13426
|
}
|
|
13415
|
-
) : patchAction === "undo" ? /* @__PURE__ */
|
|
13427
|
+
) : patchAction === "undo" ? /* @__PURE__ */ jsx64(
|
|
13416
13428
|
Undo2,
|
|
13417
13429
|
{
|
|
13418
13430
|
width: 14,
|
|
@@ -13420,7 +13432,7 @@ function AgentTurnSummaryRow({
|
|
|
13420
13432
|
"aria-hidden": "true",
|
|
13421
13433
|
className: "text-[var(--text-secondary)]"
|
|
13422
13434
|
}
|
|
13423
|
-
) : /* @__PURE__ */
|
|
13435
|
+
) : /* @__PURE__ */ jsx64(
|
|
13424
13436
|
Redo2,
|
|
13425
13437
|
{
|
|
13426
13438
|
width: 14,
|
|
@@ -13429,19 +13441,19 @@ function AgentTurnSummaryRow({
|
|
|
13429
13441
|
className: "text-[var(--text-secondary)]"
|
|
13430
13442
|
}
|
|
13431
13443
|
),
|
|
13432
|
-
/* @__PURE__ */
|
|
13444
|
+
/* @__PURE__ */ jsx64("span", { children: patchActionLabel })
|
|
13433
13445
|
]
|
|
13434
13446
|
}
|
|
13435
13447
|
)
|
|
13436
13448
|
}
|
|
13437
13449
|
) }),
|
|
13438
|
-
patchDisabledReason ? /* @__PURE__ */
|
|
13450
|
+
patchDisabledReason ? /* @__PURE__ */ jsx64(TooltipContent, { className: "max-w-[260px] whitespace-normal text-left", children: patchDisabledReason }) : null
|
|
13439
13451
|
] }) }) : null
|
|
13440
13452
|
] }),
|
|
13441
13453
|
/* @__PURE__ */ jsxs45("div", { className: "agent-turn-summary-card__list", children: [
|
|
13442
13454
|
visibleFiles.map((file) => {
|
|
13443
13455
|
const key = `${file.path}:${file.messageId}`;
|
|
13444
|
-
return /* @__PURE__ */
|
|
13456
|
+
return /* @__PURE__ */ jsx64(
|
|
13445
13457
|
TurnSummaryFileCard,
|
|
13446
13458
|
{
|
|
13447
13459
|
file,
|
|
@@ -13457,9 +13469,9 @@ function AgentTurnSummaryRow({
|
|
|
13457
13469
|
key
|
|
13458
13470
|
);
|
|
13459
13471
|
}),
|
|
13460
|
-
hiddenFileCount > 0 ? /* @__PURE__ */
|
|
13472
|
+
hiddenFileCount > 0 ? /* @__PURE__ */ jsx64(CollapsibleReveal, { expanded: showAllFiles, preMountOnIdle: true, children: /* @__PURE__ */ jsx64("div", { className: "agent-turn-summary-card__overflow-list", children: hiddenFiles.map((file) => {
|
|
13461
13473
|
const key = `${file.path}:${file.messageId}`;
|
|
13462
|
-
return /* @__PURE__ */
|
|
13474
|
+
return /* @__PURE__ */ jsx64(
|
|
13463
13475
|
TurnSummaryFileCard,
|
|
13464
13476
|
{
|
|
13465
13477
|
file,
|
|
@@ -13482,10 +13494,10 @@ function AgentTurnSummaryRow({
|
|
|
13482
13494
|
className: "agent-turn-summary-card__toggle-more flex w-full items-center gap-2 px-4 py-2.5 text-left text-[11px] font-semibold transition-colors",
|
|
13483
13495
|
onClick: () => setShowAllFiles(true),
|
|
13484
13496
|
children: [
|
|
13485
|
-
/* @__PURE__ */
|
|
13497
|
+
/* @__PURE__ */ jsx64("span", { children: translate("agentHost.agentGui.turnSummaryShowMoreFiles", {
|
|
13486
13498
|
count: hiddenFileCount
|
|
13487
13499
|
}) }),
|
|
13488
|
-
/* @__PURE__ */
|
|
13500
|
+
/* @__PURE__ */ jsx64(ChevronDown9, { size: 16, strokeWidth: 2.2, "aria-hidden": "true" })
|
|
13489
13501
|
]
|
|
13490
13502
|
}
|
|
13491
13503
|
) : hiddenFileCount > 0 ? /* @__PURE__ */ jsxs45(
|
|
@@ -13495,8 +13507,8 @@ function AgentTurnSummaryRow({
|
|
|
13495
13507
|
className: "agent-turn-summary-card__toggle-more flex w-full items-center gap-2 px-4 py-2.5 text-left text-[11px] font-semibold transition-colors",
|
|
13496
13508
|
onClick: () => setShowAllFiles(false),
|
|
13497
13509
|
children: [
|
|
13498
|
-
/* @__PURE__ */
|
|
13499
|
-
/* @__PURE__ */
|
|
13510
|
+
/* @__PURE__ */ jsx64("span", { children: translate("agentHost.agentGui.turnSummaryShowFewerFiles") }),
|
|
13511
|
+
/* @__PURE__ */ jsx64(
|
|
13500
13512
|
ChevronRight8,
|
|
13501
13513
|
{
|
|
13502
13514
|
size: 16,
|
|
@@ -13552,7 +13564,7 @@ function TurnSummaryFileCard({
|
|
|
13552
13564
|
"aria-expanded": expanded,
|
|
13553
13565
|
onClick: onToggle,
|
|
13554
13566
|
children: [
|
|
13555
|
-
/* @__PURE__ */
|
|
13567
|
+
/* @__PURE__ */ jsx64("div", { className: "min-w-0 flex-1 overflow-hidden", children: /* @__PURE__ */ jsxs45(
|
|
13556
13568
|
"span",
|
|
13557
13569
|
{
|
|
13558
13570
|
className: `agent-turn-summary-card__path flex min-w-0 max-w-full overflow-hidden whitespace-nowrap text-[13px] font-medium leading-5 text-[var(--text-secondary)] ${file.changeType === "deleted" ? "line-through" : ""}`,
|
|
@@ -13562,11 +13574,11 @@ function TurnSummaryFileCard({
|
|
|
13562
13574
|
file.directory,
|
|
13563
13575
|
"/"
|
|
13564
13576
|
] }) : null,
|
|
13565
|
-
/* @__PURE__ */
|
|
13577
|
+
/* @__PURE__ */ jsx64("span", { className: "agent-turn-summary-card__path-file", children: file.fileName })
|
|
13566
13578
|
]
|
|
13567
13579
|
}
|
|
13568
13580
|
) }),
|
|
13569
|
-
/* @__PURE__ */
|
|
13581
|
+
/* @__PURE__ */ jsx64("span", { className: "shrink-0 text-[var(--text-tertiary)] opacity-0 transition-opacity group-hover/file-toggle:opacity-100 group-focus-visible/file-toggle:opacity-100", children: /* @__PURE__ */ jsx64(
|
|
13570
13582
|
ChevronRight8,
|
|
13571
13583
|
{
|
|
13572
13584
|
size: 14,
|
|
@@ -13589,7 +13601,7 @@ function TurnSummaryFileCard({
|
|
|
13589
13601
|
] }) : null
|
|
13590
13602
|
] })
|
|
13591
13603
|
] }),
|
|
13592
|
-
canOpen ? /* @__PURE__ */
|
|
13604
|
+
canOpen ? /* @__PURE__ */ jsx64(
|
|
13593
13605
|
CanvasNodeGhostIconButton,
|
|
13594
13606
|
{
|
|
13595
13607
|
"aria-label": translate(
|
|
@@ -13601,7 +13613,7 @@ function TurnSummaryFileCard({
|
|
|
13601
13613
|
onClick: () => {
|
|
13602
13614
|
onLinkAction?.(action);
|
|
13603
13615
|
},
|
|
13604
|
-
children: /* @__PURE__ */
|
|
13616
|
+
children: /* @__PURE__ */ jsx64(
|
|
13605
13617
|
DirectLinedIcon,
|
|
13606
13618
|
{
|
|
13607
13619
|
width: 14,
|
|
@@ -13613,12 +13625,12 @@ function TurnSummaryFileCard({
|
|
|
13613
13625
|
}
|
|
13614
13626
|
) : null
|
|
13615
13627
|
] }),
|
|
13616
|
-
preview ? /* @__PURE__ */
|
|
13628
|
+
preview ? /* @__PURE__ */ jsx64(CollapsibleReveal, { expanded, preMountOnIdle: true, children: /* @__PURE__ */ jsx64("div", { className: "agent-turn-summary-card__preview rounded-none px-4 pb-3 pt-2", children: preview }) }) : null
|
|
13617
13629
|
] });
|
|
13618
13630
|
}
|
|
13619
13631
|
function filePreview(file) {
|
|
13620
13632
|
if (file.changeType === "created" && file.content?.trim()) {
|
|
13621
|
-
return /* @__PURE__ */
|
|
13633
|
+
return /* @__PURE__ */ jsx64(
|
|
13622
13634
|
AgentCodeBlock,
|
|
13623
13635
|
{
|
|
13624
13636
|
path: file.path,
|
|
@@ -13630,7 +13642,7 @@ function filePreview(file) {
|
|
|
13630
13642
|
);
|
|
13631
13643
|
}
|
|
13632
13644
|
if (file.unifiedDiff?.trim()) {
|
|
13633
|
-
return /* @__PURE__ */
|
|
13645
|
+
return /* @__PURE__ */ jsx64(
|
|
13634
13646
|
AgentUnifiedPatchViewer,
|
|
13635
13647
|
{
|
|
13636
13648
|
path: file.path,
|
|
@@ -13641,7 +13653,7 @@ function filePreview(file) {
|
|
|
13641
13653
|
);
|
|
13642
13654
|
}
|
|
13643
13655
|
if (file.changeType === "created" && file.newString?.trim()) {
|
|
13644
|
-
return /* @__PURE__ */
|
|
13656
|
+
return /* @__PURE__ */ jsx64(
|
|
13645
13657
|
AgentCodeBlock,
|
|
13646
13658
|
{
|
|
13647
13659
|
path: file.path,
|
|
@@ -13653,7 +13665,7 @@ function filePreview(file) {
|
|
|
13653
13665
|
);
|
|
13654
13666
|
}
|
|
13655
13667
|
if (file.oldString?.trim() || file.newString?.trim()) {
|
|
13656
|
-
return /* @__PURE__ */
|
|
13668
|
+
return /* @__PURE__ */ jsx64(
|
|
13657
13669
|
AgentMonacoDiffViewer,
|
|
13658
13670
|
{
|
|
13659
13671
|
path: file.path,
|
|
@@ -13665,7 +13677,7 @@ function filePreview(file) {
|
|
|
13665
13677
|
);
|
|
13666
13678
|
}
|
|
13667
13679
|
if (file.content?.trim()) {
|
|
13668
|
-
return /* @__PURE__ */
|
|
13680
|
+
return /* @__PURE__ */ jsx64(
|
|
13669
13681
|
AgentCodeBlock,
|
|
13670
13682
|
{
|
|
13671
13683
|
path: file.path,
|
|
@@ -13757,7 +13769,7 @@ function summarizeFileDiff(file) {
|
|
|
13757
13769
|
}
|
|
13758
13770
|
|
|
13759
13771
|
// shared/agentConversation/components/AgentTranscriptItemView.tsx
|
|
13760
|
-
import { jsx as
|
|
13772
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
13761
13773
|
var AgentTranscriptItemView = memo3(function AgentTranscriptItemView2({
|
|
13762
13774
|
workspaceRoot,
|
|
13763
13775
|
basePath,
|
|
@@ -13792,9 +13804,9 @@ var AgentTranscriptItemView = memo3(function AgentTranscriptItemView2({
|
|
|
13792
13804
|
);
|
|
13793
13805
|
switch (row.kind) {
|
|
13794
13806
|
case "generated-image":
|
|
13795
|
-
return /* @__PURE__ */
|
|
13807
|
+
return /* @__PURE__ */ jsx65(AgentGeneratedImageRow, { row });
|
|
13796
13808
|
case "goal-control":
|
|
13797
|
-
return /* @__PURE__ */
|
|
13809
|
+
return /* @__PURE__ */ jsx65(
|
|
13798
13810
|
AgentGoalControlRow,
|
|
13799
13811
|
{
|
|
13800
13812
|
row,
|
|
@@ -13803,7 +13815,7 @@ var AgentTranscriptItemView = memo3(function AgentTranscriptItemView2({
|
|
|
13803
13815
|
}
|
|
13804
13816
|
);
|
|
13805
13817
|
case "message":
|
|
13806
|
-
return /* @__PURE__ */
|
|
13818
|
+
return /* @__PURE__ */ jsx65(
|
|
13807
13819
|
AgentMessageBlock,
|
|
13808
13820
|
{
|
|
13809
13821
|
workspaceRoot,
|
|
@@ -13822,7 +13834,7 @@ var AgentTranscriptItemView = memo3(function AgentTranscriptItemView2({
|
|
|
13822
13834
|
}
|
|
13823
13835
|
);
|
|
13824
13836
|
case "tool-group":
|
|
13825
|
-
return /* @__PURE__ */
|
|
13837
|
+
return /* @__PURE__ */ jsx65(
|
|
13826
13838
|
AgentToolGroupRow,
|
|
13827
13839
|
{
|
|
13828
13840
|
row,
|
|
@@ -13838,7 +13850,7 @@ var AgentTranscriptItemView = memo3(function AgentTranscriptItemView2({
|
|
|
13838
13850
|
}
|
|
13839
13851
|
);
|
|
13840
13852
|
case "turn-summary":
|
|
13841
|
-
return /* @__PURE__ */
|
|
13853
|
+
return /* @__PURE__ */ jsx65(
|
|
13842
13854
|
AgentTurnSummaryRow,
|
|
13843
13855
|
{
|
|
13844
13856
|
row,
|
|
@@ -13850,28 +13862,28 @@ var AgentTranscriptItemView = memo3(function AgentTranscriptItemView2({
|
|
|
13850
13862
|
}
|
|
13851
13863
|
);
|
|
13852
13864
|
case "processing":
|
|
13853
|
-
return /* @__PURE__ */
|
|
13865
|
+
return /* @__PURE__ */ jsx65(AgentProcessingRow, { row, label: labels.processing });
|
|
13854
13866
|
}
|
|
13855
13867
|
});
|
|
13856
13868
|
|
|
13857
13869
|
// shared/agentConversation/components/AgentTurnDisclosureContext.tsx
|
|
13858
13870
|
import {
|
|
13859
|
-
createContext as
|
|
13871
|
+
createContext as createContext3,
|
|
13860
13872
|
useCallback as useCallback11,
|
|
13861
|
-
useContext as
|
|
13873
|
+
useContext as useContext3,
|
|
13862
13874
|
useMemo as useMemo6,
|
|
13863
13875
|
useState as useState22
|
|
13864
13876
|
} from "react";
|
|
13865
|
-
import { jsx as
|
|
13866
|
-
var AgentTurnDisclosureContext =
|
|
13877
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
13878
|
+
var AgentTurnDisclosureContext = createContext3(null);
|
|
13867
13879
|
function AgentTurnDisclosureProvider({
|
|
13868
13880
|
children
|
|
13869
13881
|
}) {
|
|
13870
13882
|
const store = useAgentTurnDisclosureStoreState();
|
|
13871
|
-
return /* @__PURE__ */
|
|
13883
|
+
return /* @__PURE__ */ jsx66(AgentTurnDisclosureContext.Provider, { value: store, children });
|
|
13872
13884
|
}
|
|
13873
13885
|
function useAgentTurnDisclosureStore() {
|
|
13874
|
-
const contextStore =
|
|
13886
|
+
const contextStore = useContext3(AgentTurnDisclosureContext);
|
|
13875
13887
|
const localStore = useAgentTurnDisclosureStoreState();
|
|
13876
13888
|
return contextStore ?? localStore;
|
|
13877
13889
|
}
|
|
@@ -14126,7 +14138,7 @@ function cloneAssistantRow(source, messages, thinking) {
|
|
|
14126
14138
|
}
|
|
14127
14139
|
|
|
14128
14140
|
// shared/agentConversation/components/AgentTurnWorkSection.tsx
|
|
14129
|
-
import { jsx as
|
|
14141
|
+
import { jsx as jsx67, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
14130
14142
|
function AgentTurnWorkSection({
|
|
14131
14143
|
model,
|
|
14132
14144
|
sessionId,
|
|
@@ -14175,7 +14187,7 @@ function AgentTurnWorkSection({
|
|
|
14175
14187
|
}
|
|
14176
14188
|
}, [finishDisclosureMotion]);
|
|
14177
14189
|
return /* @__PURE__ */ jsxs46("div", { className: "grid min-w-0", "data-agent-turn-work-section": turnKey, children: [
|
|
14178
|
-
showDivider ? /* @__PURE__ */
|
|
14190
|
+
showDivider ? /* @__PURE__ */ jsx67(
|
|
14179
14191
|
"div",
|
|
14180
14192
|
{
|
|
14181
14193
|
className: "mb-4 h-px w-full flex-none bg-[var(--line-2,var(--tutti-line-2))]",
|
|
@@ -14183,8 +14195,8 @@ function AgentTurnWorkSection({
|
|
|
14183
14195
|
"aria-hidden": "true"
|
|
14184
14196
|
}
|
|
14185
14197
|
) : null,
|
|
14186
|
-
model.leadingRows.length > 0 ? /* @__PURE__ */
|
|
14187
|
-
/* @__PURE__ */
|
|
14198
|
+
model.leadingRows.length > 0 ? /* @__PURE__ */ jsx67("div", { className: "mb-4 grid gap-4", children: renderRows(model.leadingRows, renderRow) }) : null,
|
|
14199
|
+
/* @__PURE__ */ jsx67(
|
|
14188
14200
|
"div",
|
|
14189
14201
|
{
|
|
14190
14202
|
className: "flex min-h-6 items-center gap-0.5 text-[12px] text-[var(--text-tertiary)]",
|
|
@@ -14208,8 +14220,8 @@ function AgentTurnWorkSection({
|
|
|
14208
14220
|
disclosureStore.setExpandedOverride(disclosureKey, !expanded);
|
|
14209
14221
|
},
|
|
14210
14222
|
children: [
|
|
14211
|
-
/* @__PURE__ */
|
|
14212
|
-
/* @__PURE__ */
|
|
14223
|
+
/* @__PURE__ */ jsx67(AgentTurnDurationLabel, { timing: model.timing }),
|
|
14224
|
+
/* @__PURE__ */ jsx67(
|
|
14213
14225
|
ChevronDownIcon,
|
|
14214
14226
|
{
|
|
14215
14227
|
"aria-hidden": "true",
|
|
@@ -14219,14 +14231,14 @@ function AgentTurnWorkSection({
|
|
|
14219
14231
|
)
|
|
14220
14232
|
]
|
|
14221
14233
|
}
|
|
14222
|
-
) : /* @__PURE__ */
|
|
14234
|
+
) : /* @__PURE__ */ jsx67(AgentTurnDurationLabel, { timing: model.timing })
|
|
14223
14235
|
}
|
|
14224
14236
|
),
|
|
14225
14237
|
model.sections.map((section, sectionIndex) => {
|
|
14226
14238
|
const content = renderRows(section.rows, renderRow);
|
|
14227
14239
|
if (section.kind !== "work" || !model.collapseEligible) {
|
|
14228
14240
|
const firstRow2 = section.rows[0];
|
|
14229
|
-
return /* @__PURE__ */
|
|
14241
|
+
return /* @__PURE__ */ jsx67(
|
|
14230
14242
|
"div",
|
|
14231
14243
|
{
|
|
14232
14244
|
className: "grid gap-4 pt-4",
|
|
@@ -14236,7 +14248,7 @@ function AgentTurnWorkSection({
|
|
|
14236
14248
|
);
|
|
14237
14249
|
}
|
|
14238
14250
|
const firstRow = section.rows[0];
|
|
14239
|
-
return /* @__PURE__ */
|
|
14251
|
+
return /* @__PURE__ */ jsx67(
|
|
14240
14252
|
CollapsibleReveal,
|
|
14241
14253
|
{
|
|
14242
14254
|
expanded,
|
|
@@ -14262,7 +14274,7 @@ function AgentTurnDurationLabel({
|
|
|
14262
14274
|
timing.kind === "live" ? timing.startedAtUnixMs : null
|
|
14263
14275
|
);
|
|
14264
14276
|
const elapsedSeconds = timing.kind === "live" ? liveElapsedSeconds ?? 0 : timing.elapsedSeconds;
|
|
14265
|
-
return /* @__PURE__ */
|
|
14277
|
+
return /* @__PURE__ */ jsx67("span", { children: translateDuration(t, timing.kind, elapsedSeconds) });
|
|
14266
14278
|
}
|
|
14267
14279
|
function translateDuration(t, kind, elapsedSeconds) {
|
|
14268
14280
|
const duration = formatAgentTurnDuration(elapsedSeconds);
|
|
@@ -14578,7 +14590,7 @@ function findTurnDividerRowIndexes(turnIndexById, rows) {
|
|
|
14578
14590
|
}
|
|
14579
14591
|
|
|
14580
14592
|
// shared/agentConversation/components/AgentMessageLocatorRail.tsx
|
|
14581
|
-
import { jsx as
|
|
14593
|
+
import { jsx as jsx68, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
14582
14594
|
var AGENT_MESSAGE_LOCATOR_PANEL_FADE_MS = 160;
|
|
14583
14595
|
var AGENT_MESSAGE_LOCATOR_ITEM_SPACING_PX = 30;
|
|
14584
14596
|
var AGENT_MESSAGE_LOCATOR_HIT_SIZE_PX = 36;
|
|
@@ -14863,7 +14875,7 @@ function AgentMessageLocatorRail({
|
|
|
14863
14875
|
} : {}
|
|
14864
14876
|
},
|
|
14865
14877
|
children: [
|
|
14866
|
-
/* @__PURE__ */
|
|
14878
|
+
/* @__PURE__ */ jsx68(
|
|
14867
14879
|
"div",
|
|
14868
14880
|
{
|
|
14869
14881
|
ref: locatorViewportRef,
|
|
@@ -14879,7 +14891,7 @@ function AgentMessageLocatorRail({
|
|
|
14879
14891
|
"--agent-message-locator-height": `${railHeight}px`
|
|
14880
14892
|
},
|
|
14881
14893
|
children: [
|
|
14882
|
-
items.slice(0, -1).map((item, index) => /* @__PURE__ */
|
|
14894
|
+
items.slice(0, -1).map((item, index) => /* @__PURE__ */ jsx68(
|
|
14883
14895
|
"div",
|
|
14884
14896
|
{
|
|
14885
14897
|
className: "agent-gui-message-locator__track-segment",
|
|
@@ -14890,7 +14902,7 @@ function AgentMessageLocatorRail({
|
|
|
14890
14902
|
},
|
|
14891
14903
|
`segment:${item.key}`
|
|
14892
14904
|
)),
|
|
14893
|
-
items.map((item, index) => /* @__PURE__ */
|
|
14905
|
+
items.map((item, index) => /* @__PURE__ */ jsx68(
|
|
14894
14906
|
"button",
|
|
14895
14907
|
{
|
|
14896
14908
|
type: "button",
|
|
@@ -14906,7 +14918,7 @@ function AgentMessageLocatorRail({
|
|
|
14906
14918
|
onClick: () => handleLocateItem(item),
|
|
14907
14919
|
onFocus: () => setActiveKey(item.key),
|
|
14908
14920
|
onMouseEnter: () => setActiveKey(item.key),
|
|
14909
|
-
children: /* @__PURE__ */
|
|
14921
|
+
children: /* @__PURE__ */ jsx68(
|
|
14910
14922
|
"span",
|
|
14911
14923
|
{
|
|
14912
14924
|
className: "agent-gui-message-locator__dot",
|
|
@@ -14921,7 +14933,7 @@ function AgentMessageLocatorRail({
|
|
|
14921
14933
|
)
|
|
14922
14934
|
}
|
|
14923
14935
|
),
|
|
14924
|
-
shouldRenderPanel ? /* @__PURE__ */
|
|
14936
|
+
shouldRenderPanel ? /* @__PURE__ */ jsx68(
|
|
14925
14937
|
"div",
|
|
14926
14938
|
{
|
|
14927
14939
|
className: "agent-gui-message-locator__panel",
|
|
@@ -14931,7 +14943,7 @@ function AgentMessageLocatorRail({
|
|
|
14931
14943
|
onMouseEnter: openPanel,
|
|
14932
14944
|
onMouseLeave: closePanelSoon,
|
|
14933
14945
|
onWheel: containMessageLocatorPanelWheel,
|
|
14934
|
-
children: items.map((item) => /* @__PURE__ */
|
|
14946
|
+
children: items.map((item) => /* @__PURE__ */ jsx68(
|
|
14935
14947
|
"button",
|
|
14936
14948
|
{
|
|
14937
14949
|
type: "button",
|
|
@@ -14940,7 +14952,7 @@ function AgentMessageLocatorRail({
|
|
|
14940
14952
|
onClick: () => handleLocateItem(item),
|
|
14941
14953
|
onFocus: () => setActiveKey(item.key),
|
|
14942
14954
|
onMouseEnter: () => setActiveKey(item.key),
|
|
14943
|
-
children: /* @__PURE__ */
|
|
14955
|
+
children: /* @__PURE__ */ jsx68("span", { className: "agent-gui-message-locator__panel-item-text", children: item.summary })
|
|
14944
14956
|
},
|
|
14945
14957
|
`panel:${item.key}`
|
|
14946
14958
|
))
|
|
@@ -15195,7 +15207,7 @@ import {
|
|
|
15195
15207
|
useMemo as useMemo7,
|
|
15196
15208
|
useRef as useRef12
|
|
15197
15209
|
} from "react";
|
|
15198
|
-
import { jsx as
|
|
15210
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
15199
15211
|
function useAgentTranscriptTurnAttachments(input) {
|
|
15200
15212
|
const projection = useMemo7(() => {
|
|
15201
15213
|
const lastGroupIndexByTurnId = /* @__PURE__ */ new Map();
|
|
@@ -15302,7 +15314,7 @@ function AgentTranscriptAttachmentView({
|
|
|
15302
15314
|
(element) => onElementChange(attachment.id, element),
|
|
15303
15315
|
[attachment.id, onElementChange]
|
|
15304
15316
|
);
|
|
15305
|
-
return /* @__PURE__ */
|
|
15317
|
+
return /* @__PURE__ */ jsx69(
|
|
15306
15318
|
"div",
|
|
15307
15319
|
{
|
|
15308
15320
|
ref: handleRef,
|
|
@@ -15314,7 +15326,7 @@ function AgentTranscriptAttachmentView({
|
|
|
15314
15326
|
}
|
|
15315
15327
|
|
|
15316
15328
|
// shared/agentConversation/components/AgentTranscriptView.tsx
|
|
15317
|
-
import { Fragment as Fragment8, jsx as
|
|
15329
|
+
import { Fragment as Fragment8, jsx as jsx70, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
15318
15330
|
var AGENT_TRANSCRIPT_VIRTUALIZATION_OVERSCAN = 6;
|
|
15319
15331
|
var AGENT_TRANSCRIPT_ESTIMATED_TURN_HEIGHT_PX = 280;
|
|
15320
15332
|
var AGENT_TRANSCRIPT_DISCLOSURE_TURN_GAP_PX = 24;
|
|
@@ -15521,7 +15533,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15521
15533
|
const renderRow = (row, rowIndex, renderKey) => {
|
|
15522
15534
|
const rowKey = renderKey ?? (conversation.rows[rowIndex] === row ? rowKeys[rowIndex] ?? transcriptRowKey(row) : transcriptRowKey(row));
|
|
15523
15535
|
const shouldAnimateEnter = row.kind !== "processing" && enteringRowKeys.has(rowKey);
|
|
15524
|
-
return /* @__PURE__ */
|
|
15536
|
+
return /* @__PURE__ */ jsx70(
|
|
15525
15537
|
"div",
|
|
15526
15538
|
{
|
|
15527
15539
|
className: "agent-gui-transcript-row",
|
|
@@ -15532,7 +15544,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15532
15544
|
"data-agent-transcript-row-thinking-last": row.kind === "message" && row.speaker === "assistant" && row.thinking.length > 0 && row.messages.length === 0 ? "true" : void 0,
|
|
15533
15545
|
"data-agent-transcript-row-index": rowIndex,
|
|
15534
15546
|
"data-agent-transcript-row-enter": shouldAnimateEnter ? "true" : void 0,
|
|
15535
|
-
children: /* @__PURE__ */
|
|
15547
|
+
children: /* @__PURE__ */ jsx70(
|
|
15536
15548
|
AgentTranscriptItemView,
|
|
15537
15549
|
{
|
|
15538
15550
|
workspaceRoot,
|
|
@@ -15556,10 +15568,10 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15556
15568
|
rowKey
|
|
15557
15569
|
);
|
|
15558
15570
|
};
|
|
15559
|
-
const renderLegacyTurnGroup = (group) => /* @__PURE__ */
|
|
15571
|
+
const renderLegacyTurnGroup = (group) => /* @__PURE__ */ jsx70(Fragment7, { children: group.rows.map(({ row, rowIndex }) => {
|
|
15560
15572
|
const rowKey = rowKeys[rowIndex] ?? transcriptRowKey(row);
|
|
15561
15573
|
return /* @__PURE__ */ jsxs48(Fragment7, { children: [
|
|
15562
|
-
dividerRowIndexes.has(rowIndex) ? /* @__PURE__ */
|
|
15574
|
+
dividerRowIndexes.has(rowIndex) ? /* @__PURE__ */ jsx70(
|
|
15563
15575
|
"div",
|
|
15564
15576
|
{
|
|
15565
15577
|
className: "h-px w-full flex-none bg-[var(--line-2,var(--tutti-line-2))]",
|
|
@@ -15575,7 +15587,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15575
15587
|
if (!model) {
|
|
15576
15588
|
return renderLegacyTurnGroup(group);
|
|
15577
15589
|
}
|
|
15578
|
-
return /* @__PURE__ */
|
|
15590
|
+
return /* @__PURE__ */ jsx70(
|
|
15579
15591
|
AgentTurnWorkSection,
|
|
15580
15592
|
{
|
|
15581
15593
|
model,
|
|
@@ -15591,7 +15603,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15591
15603
|
group.key
|
|
15592
15604
|
);
|
|
15593
15605
|
};
|
|
15594
|
-
const renderAttachment = (attachment) => /* @__PURE__ */
|
|
15606
|
+
const renderAttachment = (attachment) => /* @__PURE__ */ jsx70(
|
|
15595
15607
|
AgentTranscriptAttachmentView,
|
|
15596
15608
|
{
|
|
15597
15609
|
attachment,
|
|
@@ -15612,7 +15624,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15612
15624
|
) + fallbackIndex) * AGENT_TRANSCRIPT_ESTIMATED_TURN_HEIGHT_PX
|
|
15613
15625
|
})) : rowVirtualizer.getVirtualItems();
|
|
15614
15626
|
return /* @__PURE__ */ jsxs48(Fragment8, { children: [
|
|
15615
|
-
/* @__PURE__ */
|
|
15627
|
+
/* @__PURE__ */ jsx70(
|
|
15616
15628
|
AgentMessageLocatorRail,
|
|
15617
15629
|
{
|
|
15618
15630
|
items: userMessageLocatorItems,
|
|
@@ -15621,7 +15633,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15621
15633
|
virtualSelectionSource: rowVirtualizer
|
|
15622
15634
|
}
|
|
15623
15635
|
),
|
|
15624
|
-
/* @__PURE__ */
|
|
15636
|
+
/* @__PURE__ */ jsx70(
|
|
15625
15637
|
"div",
|
|
15626
15638
|
{
|
|
15627
15639
|
ref: virtualizerHostRef,
|
|
@@ -15658,7 +15670,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15658
15670
|
] });
|
|
15659
15671
|
}
|
|
15660
15672
|
return /* @__PURE__ */ jsxs48(Fragment8, { children: [
|
|
15661
|
-
/* @__PURE__ */
|
|
15673
|
+
/* @__PURE__ */ jsx70(
|
|
15662
15674
|
AgentMessageLocatorRail,
|
|
15663
15675
|
{
|
|
15664
15676
|
items: userMessageLocatorItems,
|
|
@@ -15676,7 +15688,7 @@ var AgentTranscriptView = memo4(function AgentTranscriptView2({
|
|
|
15676
15688
|
|
|
15677
15689
|
// shared/agentConversation/components/AgentConversationFlow.tsx
|
|
15678
15690
|
import { memo as memo5 } from "react";
|
|
15679
|
-
import { Fragment as Fragment9, jsx as
|
|
15691
|
+
import { Fragment as Fragment9, jsx as jsx71 } from "react/jsx-runtime";
|
|
15680
15692
|
var AgentConversationFlow = memo5(function AgentConversationFlow2({
|
|
15681
15693
|
conversation,
|
|
15682
15694
|
turnAttachments,
|
|
@@ -15698,11 +15710,11 @@ var AgentConversationFlow = memo5(function AgentConversationFlow2({
|
|
|
15698
15710
|
"use memo";
|
|
15699
15711
|
let content;
|
|
15700
15712
|
if (isLoading) {
|
|
15701
|
-
content = /* @__PURE__ */
|
|
15713
|
+
content = /* @__PURE__ */ jsx71(AgentTranscriptSkeleton, { label: loadingLabel, testId: loadingTestId });
|
|
15702
15714
|
} else if (!conversation || conversation.rows.length === 0 && !turnAttachments?.length) {
|
|
15703
|
-
content = /* @__PURE__ */
|
|
15715
|
+
content = /* @__PURE__ */ jsx71(Fragment9, { children: empty });
|
|
15704
15716
|
} else {
|
|
15705
|
-
content = /* @__PURE__ */
|
|
15717
|
+
content = /* @__PURE__ */ jsx71(
|
|
15706
15718
|
AgentTranscriptView,
|
|
15707
15719
|
{
|
|
15708
15720
|
conversation,
|
|
@@ -15720,7 +15732,7 @@ var AgentConversationFlow = memo5(function AgentConversationFlow2({
|
|
|
15720
15732
|
}
|
|
15721
15733
|
);
|
|
15722
15734
|
}
|
|
15723
|
-
return /* @__PURE__ */
|
|
15735
|
+
return /* @__PURE__ */ jsx71(AgentTurnDisclosureProvider, { children: content });
|
|
15724
15736
|
});
|
|
15725
15737
|
|
|
15726
15738
|
// shared/agentConversation/projection/useProjectedAgentConversation.ts
|
|
@@ -15785,8 +15797,9 @@ export {
|
|
|
15785
15797
|
loadCompleteAgentConversationMessages,
|
|
15786
15798
|
serializeAgentConversationForClipboard,
|
|
15787
15799
|
AgentTranscriptSkeleton,
|
|
15800
|
+
AgentCommercePresentationProvider,
|
|
15788
15801
|
AgentTranscriptView,
|
|
15789
15802
|
AgentConversationFlow,
|
|
15790
15803
|
useProjectedAgentConversation
|
|
15791
15804
|
};
|
|
15792
|
-
//# sourceMappingURL=chunk-
|
|
15805
|
+
//# sourceMappingURL=chunk-CCFYCSBK.js.map
|