@tutti-os/agent-gui 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AgentMentionSearchController-DqssJ2-b.d.ts +218 -0
- package/dist/agent-conversation/index.d.ts +3 -1
- package/dist/agent-conversation/index.js +5 -4
- package/dist/agent-conversation/index.js.map +1 -1
- package/dist/agent-message-center/index.d.ts +2 -1
- package/dist/agent-message-center/index.js +547 -287
- package/dist/agent-message-center/index.js.map +1 -1
- package/dist/app/renderer/agentactivity.css +144 -8
- package/dist/{chunk-H4HT3FE6.js → chunk-267VY3EJ.js} +40 -30
- package/dist/chunk-267VY3EJ.js.map +1 -0
- package/dist/{chunk-XHQGCP7A.js → chunk-CABHBFYH.js} +2 -2
- package/dist/{chunk-OFGXNXYT.js → chunk-EKATXC3W.js} +2 -2
- package/dist/{chunk-YKDFQADM.js → chunk-FJYH2ZPX.js} +177 -332
- package/dist/chunk-FJYH2ZPX.js.map +1 -0
- package/dist/{chunk-EK5RDKG7.js → chunk-GWR6WGZY.js} +21 -11
- package/dist/chunk-GWR6WGZY.js.map +1 -0
- package/dist/{chunk-7CBJJNX6.js → chunk-JNGYJ7GM.js} +2 -2
- package/dist/{chunk-7CBJJNX6.js.map → chunk-JNGYJ7GM.js.map} +1 -1
- package/dist/{chunk-U4F3COKL.js → chunk-KWPL3JYS.js} +83 -115
- package/dist/chunk-KWPL3JYS.js.map +1 -0
- package/dist/{chunk-2CA4NPP3.js → chunk-LW2S255I.js} +10 -7
- package/dist/{chunk-2CA4NPP3.js.map → chunk-LW2S255I.js.map} +1 -1
- package/dist/{chunk-SVOGXWFJ.js → chunk-LWRYYGPZ.js} +562 -468
- package/dist/chunk-LWRYYGPZ.js.map +1 -0
- package/dist/chunk-O5TUTXHT.js +196 -0
- package/dist/chunk-O5TUTXHT.js.map +1 -0
- package/dist/{chunk-KJPMZ7G5.js → chunk-SIDWRR5I.js} +39 -17
- package/dist/chunk-SIDWRR5I.js.map +1 -0
- package/dist/context-mention-palette/index.d.ts +5 -104
- package/dist/context-mention-palette/index.js +6 -5
- package/dist/i18n/index.d.ts +38 -16
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +22 -2
- package/dist/index.js +1825 -1303
- package/dist/index.js.map +1 -1
- package/dist/workbench/contribution.js +2 -2
- package/dist/workbench/index.d.ts +2 -1
- package/dist/workbench/index.js +2 -2
- package/dist/workbench/launch.js +1 -1
- package/dist/workspace-agent-generated-files.js +2 -2
- package/package.json +12 -12
- package/dist/agentFileMentionExtension-CM1c9bqk.d.ts +0 -86
- package/dist/chunk-EK5RDKG7.js.map +0 -1
- package/dist/chunk-H4HT3FE6.js.map +0 -1
- package/dist/chunk-KJPMZ7G5.js.map +0 -1
- package/dist/chunk-SVOGXWFJ.js.map +0 -1
- package/dist/chunk-U4F3COKL.js.map +0 -1
- package/dist/chunk-YKDFQADM.js.map +0 -1
- /package/dist/{chunk-XHQGCP7A.js.map → chunk-CABHBFYH.js.map} +0 -0
- /package/dist/{chunk-OFGXNXYT.js.map → chunk-EKATXC3W.js.map} +0 -0
|
@@ -2629,6 +2629,16 @@ aside.workspace-agents-status-panel
|
|
|
2629
2629
|
white-space: nowrap;
|
|
2630
2630
|
}
|
|
2631
2631
|
|
|
2632
|
+
.agent-gui-chrome__goal-hint {
|
|
2633
|
+
flex: 0 0 auto;
|
|
2634
|
+
white-space: nowrap;
|
|
2635
|
+
font-size: 11px;
|
|
2636
|
+
font-weight: 400;
|
|
2637
|
+
line-height: 16px;
|
|
2638
|
+
color: var(--agent-gui-text-tertiary, var(--text-tertiary));
|
|
2639
|
+
opacity: 0.8;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2632
2642
|
.agent-gui-chrome__message-slot {
|
|
2633
2643
|
display: flex;
|
|
2634
2644
|
min-width: 0;
|
|
@@ -2826,6 +2836,7 @@ aside.workspace-agents-status-panel
|
|
|
2826
2836
|
text-align: left;
|
|
2827
2837
|
transition:
|
|
2828
2838
|
background-color 150ms ease,
|
|
2839
|
+
box-shadow 150ms ease,
|
|
2829
2840
|
color 150ms ease;
|
|
2830
2841
|
}
|
|
2831
2842
|
|
|
@@ -2834,6 +2845,11 @@ aside.workspace-agents-status-panel
|
|
|
2834
2845
|
background: var(--transparency-hover);
|
|
2835
2846
|
}
|
|
2836
2847
|
|
|
2848
|
+
.agent-gui-conversation__interactive-option-button[data-active="true"] {
|
|
2849
|
+
box-shadow: inset 0 0 0 1px
|
|
2850
|
+
color-mix(in srgb, var(--text-primary) 24%, transparent);
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2837
2853
|
.agent-gui-conversation__interactive-option-display {
|
|
2838
2854
|
position: relative;
|
|
2839
2855
|
display: grid;
|
|
@@ -3067,6 +3083,13 @@ aside.workspace-agents-status-panel
|
|
|
3067
3083
|
padding: 6px 12px;
|
|
3068
3084
|
}
|
|
3069
3085
|
|
|
3086
|
+
.agent-gui-conversation__interactive-prompt-actions button:disabled {
|
|
3087
|
+
cursor: not-allowed;
|
|
3088
|
+
background: var(--transparency-block);
|
|
3089
|
+
color: var(--text-disabled);
|
|
3090
|
+
opacity: 0.58;
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3070
3093
|
.agent-gui-conversation__user-message-flow,
|
|
3071
3094
|
.agent-gui-conversation__assistant-message-flow {
|
|
3072
3095
|
display: grid;
|
|
@@ -3090,20 +3113,25 @@ aside.workspace-agents-status-panel
|
|
|
3090
3113
|
top: 100%;
|
|
3091
3114
|
right: 0;
|
|
3092
3115
|
left: 0;
|
|
3093
|
-
height:
|
|
3116
|
+
height: 26px;
|
|
3094
3117
|
content: "";
|
|
3095
3118
|
}
|
|
3096
3119
|
|
|
3097
3120
|
.agent-gui-conversation__message-group:has(
|
|
3098
3121
|
> .agent-gui-conversation__message-copy-button
|
|
3099
3122
|
) {
|
|
3100
|
-
margin-bottom:
|
|
3123
|
+
margin-bottom: 26px;
|
|
3101
3124
|
}
|
|
3102
3125
|
|
|
3103
3126
|
.agent-gui-conversation__message-copy-button {
|
|
3104
3127
|
position: absolute;
|
|
3105
|
-
top: calc(100% +
|
|
3128
|
+
top: calc(100% + 4px);
|
|
3106
3129
|
z-index: 1;
|
|
3130
|
+
width: 22px;
|
|
3131
|
+
min-width: 22px;
|
|
3132
|
+
height: 22px;
|
|
3133
|
+
min-height: 22px;
|
|
3134
|
+
border-radius: 5px;
|
|
3107
3135
|
opacity: 0;
|
|
3108
3136
|
pointer-events: none;
|
|
3109
3137
|
transform: translateY(-2px);
|
|
@@ -3374,7 +3402,8 @@ aside.workspace-agents-status-panel
|
|
|
3374
3402
|
|
|
3375
3403
|
.tsh-agent-object-token {
|
|
3376
3404
|
min-width: 0;
|
|
3377
|
-
|
|
3405
|
+
/* 超出最大展示宽度时截断为省略号(标签 __main 已有 ellipsis);hover 经原生 title 看完整文本。 */
|
|
3406
|
+
max-width: min(100%, var(--agent-mention-max-width, 16rem));
|
|
3378
3407
|
text-decoration: none;
|
|
3379
3408
|
}
|
|
3380
3409
|
|
|
@@ -3636,6 +3665,7 @@ aside.workspace-agents-status-panel
|
|
|
3636
3665
|
color: inherit;
|
|
3637
3666
|
}
|
|
3638
3667
|
|
|
3668
|
+
.agent-gui-node__composer-textarea [data-slot="mention-pill"],
|
|
3639
3669
|
.agent-gui-node__composer-textarea
|
|
3640
3670
|
[data-agent-file-mention="true"].tsh-agent-object-token {
|
|
3641
3671
|
cursor: pointer;
|
|
@@ -4367,6 +4397,46 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4367
4397
|
pointer-events: auto;
|
|
4368
4398
|
}
|
|
4369
4399
|
|
|
4400
|
+
.agent-gui-node__conversation-section-action-tooltip-wrap {
|
|
4401
|
+
position: relative;
|
|
4402
|
+
display: inline-flex;
|
|
4403
|
+
flex: none;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
.agent-gui-node__conversation-section-action-tooltip {
|
|
4407
|
+
position: absolute;
|
|
4408
|
+
top: calc(100% + 6px);
|
|
4409
|
+
left: 50%;
|
|
4410
|
+
z-index: var(--z-tooltip);
|
|
4411
|
+
max-width: 180px;
|
|
4412
|
+
padding: 5px 8px;
|
|
4413
|
+
border: 1px solid var(--line-2, var(--tutti-line-2));
|
|
4414
|
+
border-radius: 6px;
|
|
4415
|
+
background: var(--background-fronted);
|
|
4416
|
+
box-shadow: 0 10px 26px rgb(0 0 0 / 0.18);
|
|
4417
|
+
color: var(--text-primary);
|
|
4418
|
+
font-size: 11px;
|
|
4419
|
+
font-weight: 500;
|
|
4420
|
+
line-height: 1.2;
|
|
4421
|
+
opacity: 0;
|
|
4422
|
+
overflow: hidden;
|
|
4423
|
+
pointer-events: none;
|
|
4424
|
+
text-overflow: ellipsis;
|
|
4425
|
+
transform: translate(-50%, -2px);
|
|
4426
|
+
transition:
|
|
4427
|
+
opacity 120ms ease,
|
|
4428
|
+
transform 120ms ease;
|
|
4429
|
+
white-space: nowrap;
|
|
4430
|
+
}
|
|
4431
|
+
|
|
4432
|
+
.agent-gui-node__conversation-section-action-tooltip-wrap:hover
|
|
4433
|
+
.agent-gui-node__conversation-section-action-tooltip,
|
|
4434
|
+
.agent-gui-node__conversation-section-action-tooltip-wrap:focus-within
|
|
4435
|
+
.agent-gui-node__conversation-section-action-tooltip {
|
|
4436
|
+
opacity: 1;
|
|
4437
|
+
transform: translate(-50%, 0);
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4370
4440
|
.agent-gui-node__conversation-section-more-button {
|
|
4371
4441
|
flex: none;
|
|
4372
4442
|
opacity: 0;
|
|
@@ -4629,7 +4699,7 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4629
4699
|
|
|
4630
4700
|
.agent-gui-node__conversation-item:hover .agent-gui-node__conversation-select {
|
|
4631
4701
|
grid-template-columns: minmax(0, 1fr) 0;
|
|
4632
|
-
padding-right:
|
|
4702
|
+
padding-right: 96px;
|
|
4633
4703
|
}
|
|
4634
4704
|
|
|
4635
4705
|
.agent-gui-node__conversation-item[data-pending-delete="true"]
|
|
@@ -4671,7 +4741,7 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4671
4741
|
justify-content: flex-start;
|
|
4672
4742
|
gap: 0;
|
|
4673
4743
|
box-sizing: border-box;
|
|
4674
|
-
min-width:
|
|
4744
|
+
min-width: 72px;
|
|
4675
4745
|
max-width: calc(100% - 20px);
|
|
4676
4746
|
opacity: 0;
|
|
4677
4747
|
transform: translateY(-50%);
|
|
@@ -4679,6 +4749,7 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4679
4749
|
}
|
|
4680
4750
|
|
|
4681
4751
|
.agent-gui-node__conversation-delete-button,
|
|
4752
|
+
.agent-gui-node__conversation-open-window-button,
|
|
4682
4753
|
.agent-gui-node__conversation-pin-button {
|
|
4683
4754
|
background: transparent;
|
|
4684
4755
|
background-color: transparent;
|
|
@@ -4686,6 +4757,7 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4686
4757
|
}
|
|
4687
4758
|
|
|
4688
4759
|
.agent-gui-node__conversation-pin-button svg,
|
|
4760
|
+
.agent-gui-node__conversation-open-window-button svg,
|
|
4689
4761
|
.agent-gui-node__conversation-delete-button svg {
|
|
4690
4762
|
width: 14px;
|
|
4691
4763
|
height: 14px;
|
|
@@ -4739,6 +4811,35 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4739
4811
|
opacity: 0;
|
|
4740
4812
|
}
|
|
4741
4813
|
|
|
4814
|
+
.agent-gui-node__conversation-actions
|
|
4815
|
+
> button.agent-gui-node__conversation-open-window-button:not(:disabled):hover,
|
|
4816
|
+
.agent-gui-node__conversation-actions
|
|
4817
|
+
> button.agent-gui-node__conversation-open-window-button:not(
|
|
4818
|
+
:disabled
|
|
4819
|
+
):focus-visible,
|
|
4820
|
+
.agent-gui-node__conversation-actions
|
|
4821
|
+
> button.agent-gui-node__conversation-open-window-button:not(
|
|
4822
|
+
:disabled
|
|
4823
|
+
):active {
|
|
4824
|
+
background: transparent;
|
|
4825
|
+
background-color: transparent;
|
|
4826
|
+
color: var(--text-primary);
|
|
4827
|
+
}
|
|
4828
|
+
|
|
4829
|
+
.agent-gui-node__conversation-actions
|
|
4830
|
+
> button.agent-gui-node__conversation-open-window-button:not(:disabled):hover
|
|
4831
|
+
svg,
|
|
4832
|
+
.agent-gui-node__conversation-actions
|
|
4833
|
+
> button.agent-gui-node__conversation-open-window-button:not(
|
|
4834
|
+
:disabled
|
|
4835
|
+
):focus-visible
|
|
4836
|
+
svg,
|
|
4837
|
+
.agent-gui-node__conversation-actions
|
|
4838
|
+
> button.agent-gui-node__conversation-open-window-button:not(:disabled):active
|
|
4839
|
+
svg {
|
|
4840
|
+
color: var(--text-primary);
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4742
4843
|
.agent-gui-node__conversation-actions
|
|
4743
4844
|
> button.agent-gui-node__conversation-pin-button:not(:disabled):hover,
|
|
4744
4845
|
.agent-gui-node__conversation-actions
|
|
@@ -4792,6 +4893,7 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4792
4893
|
}
|
|
4793
4894
|
|
|
4794
4895
|
.agent-gui-node__conversation-delete-button:disabled,
|
|
4896
|
+
.agent-gui-node__conversation-open-window-button:disabled,
|
|
4795
4897
|
.agent-gui-node__conversation-pin-button:disabled {
|
|
4796
4898
|
cursor: not-allowed;
|
|
4797
4899
|
opacity: 0.4;
|
|
@@ -4804,7 +4906,7 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
4804
4906
|
color: var(--text-primary);
|
|
4805
4907
|
font-size: 13px;
|
|
4806
4908
|
line-height: 18px;
|
|
4807
|
-
font-weight:
|
|
4909
|
+
font-weight: 400;
|
|
4808
4910
|
text-overflow: ellipsis;
|
|
4809
4911
|
white-space: nowrap;
|
|
4810
4912
|
}
|
|
@@ -5319,6 +5421,40 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
5319
5421
|
color: inherit;
|
|
5320
5422
|
}
|
|
5321
5423
|
|
|
5424
|
+
.agent-gui-node__provider-setup-notice {
|
|
5425
|
+
display: flex;
|
|
5426
|
+
align-items: center;
|
|
5427
|
+
gap: 8px;
|
|
5428
|
+
box-sizing: border-box;
|
|
5429
|
+
margin: 16px var(--agent-gui-detail-padding-x) 8px;
|
|
5430
|
+
border: 1px solid
|
|
5431
|
+
color-mix(
|
|
5432
|
+
in srgb,
|
|
5433
|
+
var(--agent-gui-warning, var(--state-warning)) 26%,
|
|
5434
|
+
transparent
|
|
5435
|
+
);
|
|
5436
|
+
border-radius: 8px;
|
|
5437
|
+
padding: 8px 10px;
|
|
5438
|
+
color: var(--agent-gui-warning, var(--state-warning));
|
|
5439
|
+
background: color-mix(
|
|
5440
|
+
in srgb,
|
|
5441
|
+
var(--agent-gui-warning, var(--state-warning)) 9%,
|
|
5442
|
+
transparent
|
|
5443
|
+
);
|
|
5444
|
+
font-size: 13px;
|
|
5445
|
+
line-height: 18px;
|
|
5446
|
+
}
|
|
5447
|
+
|
|
5448
|
+
.agent-gui-node__provider-setup-notice-icon {
|
|
5449
|
+
flex: 0 0 auto;
|
|
5450
|
+
color: currentColor;
|
|
5451
|
+
}
|
|
5452
|
+
|
|
5453
|
+
.agent-gui-node__provider-setup-notice-text {
|
|
5454
|
+
min-width: 0;
|
|
5455
|
+
overflow-wrap: anywhere;
|
|
5456
|
+
}
|
|
5457
|
+
|
|
5322
5458
|
.agent-gui-node__layout [data-slot="status-dot"],
|
|
5323
5459
|
[data-testid="workspace-agent-message-center"] [data-slot="status-dot"] {
|
|
5324
5460
|
--agent-gui-status-dot-color: var(
|
|
@@ -6508,7 +6644,7 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
|
|
|
6508
6644
|
border: 0;
|
|
6509
6645
|
border-radius: 6px;
|
|
6510
6646
|
background: transparent;
|
|
6511
|
-
padding: 0
|
|
6647
|
+
padding: 0 8px;
|
|
6512
6648
|
color: var(--agent-gui-text-secondary);
|
|
6513
6649
|
font-size: 13px;
|
|
6514
6650
|
font-weight: 400;
|
|
@@ -6,29 +6,31 @@ import {
|
|
|
6
6
|
ZoomableImage,
|
|
7
7
|
cn,
|
|
8
8
|
extractAgentMcpToolTarget,
|
|
9
|
-
getOptionalAgentActivityRuntime,
|
|
10
9
|
normalizeAskUserQuestions,
|
|
11
10
|
resolveWorkspaceFileLinkAction,
|
|
12
11
|
resolveWorkspaceFilePathCandidate,
|
|
13
|
-
resolveWorkspaceLinkAction
|
|
14
|
-
|
|
15
|
-
} from "./chunk-YKDFQADM.js";
|
|
12
|
+
resolveWorkspaceLinkAction
|
|
13
|
+
} from "./chunk-FJYH2ZPX.js";
|
|
16
14
|
import {
|
|
17
15
|
attrsToMentionItem,
|
|
18
16
|
createAgentFileMentionExtension,
|
|
19
17
|
formatAgentMentionMarkdown,
|
|
20
18
|
mentionItemToAttrs,
|
|
21
19
|
parseAgentMentionMarkdown
|
|
22
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KWPL3JYS.js";
|
|
23
21
|
import {
|
|
24
22
|
isWorkspaceAgentSyntheticControlMessage
|
|
25
23
|
} from "./chunk-XJ34OIEQ.js";
|
|
24
|
+
import {
|
|
25
|
+
getOptionalAgentActivityRuntime,
|
|
26
|
+
useOptionalAgentHostApi
|
|
27
|
+
} from "./chunk-O5TUTXHT.js";
|
|
26
28
|
import {
|
|
27
29
|
workspaceAgentProviderLabel
|
|
28
30
|
} from "./chunk-TYGL25EL.js";
|
|
29
31
|
import {
|
|
30
32
|
translate
|
|
31
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SIDWRR5I.js";
|
|
32
34
|
|
|
33
35
|
// shared/imageGenerationTool.ts
|
|
34
36
|
var KNOWN_IMAGE_GENERATION_TOOL_NAMES = /* @__PURE__ */ new Set([
|
|
@@ -5124,8 +5126,8 @@ function createParagraphFromText(text, options = {}) {
|
|
|
5124
5126
|
flushTextBuffer();
|
|
5125
5127
|
content.push({
|
|
5126
5128
|
type: "agentFileMention",
|
|
5127
|
-
// 转成规范 node attrs(如
|
|
5128
|
-
//
|
|
5129
|
+
// 转成规范 node attrs(如 workspace-reference 的 source/groupId/fileCount),
|
|
5130
|
+
// 否则只读回显里的 reference chip 拿不到文件数 → 不显示「N 个文件」角标。
|
|
5129
5131
|
attrs: mentionItemToAttrs(parsedMention.item)
|
|
5130
5132
|
});
|
|
5131
5133
|
index = parsedMention.end;
|
|
@@ -5178,28 +5180,25 @@ function plainTextToAgentRichTextInlineContent(text, options = {}) {
|
|
|
5178
5180
|
);
|
|
5179
5181
|
return paragraph.content ?? [];
|
|
5180
5182
|
}
|
|
5181
|
-
function agentRichTextDocToPromptText(doc
|
|
5183
|
+
function agentRichTextDocToPromptText(doc) {
|
|
5182
5184
|
if (doc.type !== "doc") {
|
|
5183
|
-
return nodeToPromptText(doc
|
|
5185
|
+
return nodeToPromptText(doc);
|
|
5184
5186
|
}
|
|
5185
5187
|
const blocks = doc.content ?? [];
|
|
5186
5188
|
if (blocks.length === 0) {
|
|
5187
5189
|
return "";
|
|
5188
5190
|
}
|
|
5189
|
-
return blocks.map((block) => nodeToPromptText(block
|
|
5191
|
+
return blocks.map((block) => nodeToPromptText(block)).join("\n");
|
|
5190
5192
|
}
|
|
5191
|
-
function editorToPromptText(editor
|
|
5192
|
-
return agentRichTextDocToPromptText(editor.getJSON()
|
|
5193
|
+
function editorToPromptText(editor) {
|
|
5194
|
+
return agentRichTextDocToPromptText(editor.getJSON());
|
|
5193
5195
|
}
|
|
5194
|
-
function nodeToPromptText(node
|
|
5196
|
+
function nodeToPromptText(node) {
|
|
5195
5197
|
if (node.type === "text") {
|
|
5196
5198
|
return node.text ?? "";
|
|
5197
5199
|
}
|
|
5198
5200
|
if (node.type === "agentFileMention") {
|
|
5199
|
-
return formatAgentMentionMarkdown(
|
|
5200
|
-
attrsToMentionItem(node.attrs ?? {}),
|
|
5201
|
-
mode
|
|
5202
|
-
);
|
|
5201
|
+
return formatAgentMentionMarkdown(attrsToMentionItem(node.attrs ?? {}));
|
|
5203
5202
|
}
|
|
5204
5203
|
if (node.type === "agentSkillToken") {
|
|
5205
5204
|
return typeof node.attrs?.trigger === "string" ? node.attrs.trigger : "";
|
|
@@ -5213,7 +5212,7 @@ function nodeToPromptText(node, mode) {
|
|
|
5213
5212
|
if (!node.content || node.content.length === 0) {
|
|
5214
5213
|
return "";
|
|
5215
5214
|
}
|
|
5216
|
-
return node.content.map((child) => nodeToPromptText(child
|
|
5215
|
+
return node.content.map((child) => nodeToPromptText(child)).join("");
|
|
5217
5216
|
}
|
|
5218
5217
|
|
|
5219
5218
|
// agent-gui/agentGuiNode/agentRichText/agentRichTextExtensions.ts
|
|
@@ -8021,9 +8020,8 @@ function getSearchRenderData(call) {
|
|
|
8021
8020
|
stringValue8(call.error?.aggregated_output),
|
|
8022
8021
|
stringValue8(call.error?.stdout),
|
|
8023
8022
|
stringValue8(call.error?.formatted_output),
|
|
8024
|
-
stringValue8(call.error?.message)
|
|
8025
|
-
|
|
8026
|
-
)
|
|
8023
|
+
stringValue8(call.error?.message)
|
|
8024
|
+
) ?? ""
|
|
8027
8025
|
};
|
|
8028
8026
|
}
|
|
8029
8027
|
function getWebSearchRenderData(call) {
|
|
@@ -8048,13 +8046,12 @@ function getWebSearchRenderData(call) {
|
|
|
8048
8046
|
stringValue8(call.output?.stdout),
|
|
8049
8047
|
stringValue8(call.output?.output),
|
|
8050
8048
|
stringValue8(call.output?.content),
|
|
8051
|
-
|
|
8052
|
-
),
|
|
8049
|
+
contentText(call.output?.content)
|
|
8050
|
+
) ?? "",
|
|
8053
8051
|
error: firstString4(
|
|
8054
8052
|
stringValue8(call.error?.message),
|
|
8055
|
-
stringValue8(call.error?.stdout)
|
|
8056
|
-
|
|
8057
|
-
)
|
|
8053
|
+
stringValue8(call.error?.stdout)
|
|
8054
|
+
) ?? ""
|
|
8058
8055
|
};
|
|
8059
8056
|
}
|
|
8060
8057
|
function getWebFetchRenderData(call, maxContentLength = 3e3) {
|
|
@@ -9560,8 +9557,9 @@ function hasAgentToolContent(call) {
|
|
|
9560
9557
|
return hasEditContent(call);
|
|
9561
9558
|
case "bash":
|
|
9562
9559
|
case "search":
|
|
9563
|
-
case "web-search":
|
|
9564
9560
|
return hasGenericStructuredContent(call);
|
|
9561
|
+
case "web-search":
|
|
9562
|
+
return hasWebSearchContent(call);
|
|
9565
9563
|
case "web-fetch":
|
|
9566
9564
|
return hasWebFetchContent(call) || hasGenericStructuredContent(call);
|
|
9567
9565
|
case "image-generation": {
|
|
@@ -9588,6 +9586,12 @@ function hasWebFetchContent(call) {
|
|
|
9588
9586
|
const web = getWebFetchRenderData(call);
|
|
9589
9587
|
return Boolean(web.url || web.visibleContent);
|
|
9590
9588
|
}
|
|
9589
|
+
function hasWebSearchContent(call) {
|
|
9590
|
+
const web = getWebSearchRenderData(call);
|
|
9591
|
+
return Boolean(
|
|
9592
|
+
web.query || web.queries.length > 0 || web.output.trim() || web.error || arrayValue8(call.output?.links)?.length
|
|
9593
|
+
);
|
|
9594
|
+
}
|
|
9591
9595
|
function hasReadContent(call) {
|
|
9592
9596
|
const file = objectValue6(call.output?.file);
|
|
9593
9597
|
return Boolean(
|
|
@@ -10699,10 +10703,16 @@ function AgentWebSearchContent({
|
|
|
10699
10703
|
"use memo";
|
|
10700
10704
|
const web = getWebSearchRenderData(call);
|
|
10701
10705
|
const queries = web.queries;
|
|
10702
|
-
const outputText = web.output
|
|
10706
|
+
const outputText = web.output;
|
|
10703
10707
|
const links = normalizeLinks(call.output?.links, outputText);
|
|
10704
10708
|
const summary = extractSummary(outputText) ?? (call.summary.trim() || null);
|
|
10705
10709
|
const visibleSummary = summary ? summary.slice(0, MAX_SUMMARY_LENGTH) : null;
|
|
10710
|
+
const hasRenderableContent = Boolean(
|
|
10711
|
+
web.query || queries.length > 0 || links.length > 0 || visibleSummary || web.error
|
|
10712
|
+
);
|
|
10713
|
+
if (!hasRenderableContent) {
|
|
10714
|
+
return null;
|
|
10715
|
+
}
|
|
10706
10716
|
return /* @__PURE__ */ jsxs33("div", { className: "workspace-agents-status-panel__detail-tool-body", children: [
|
|
10707
10717
|
web.query ? /* @__PURE__ */ jsx44(ToolSection, { title: translate("agentHost.agentTool.details.query"), children: /* @__PURE__ */ jsx44(ToolMarkdownBlock, { content: web.query, onLinkClick }) }) : null,
|
|
10708
10718
|
queries.length > 0 ? /* @__PURE__ */ jsx44(ToolSection, { title: translate("agentHost.agentTool.details.results"), children: /* @__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: queries.map((candidate, index) => /* @__PURE__ */ jsx44(
|
|
@@ -12075,4 +12085,4 @@ export {
|
|
|
12075
12085
|
AgentConversationFlow,
|
|
12076
12086
|
useProjectedAgentConversation
|
|
12077
12087
|
};
|
|
12078
|
-
//# sourceMappingURL=chunk-
|
|
12088
|
+
//# sourceMappingURL=chunk-267VY3EJ.js.map
|