@tutti-os/agent-gui 0.0.141 → 0.0.142
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/agent-gui.js
CHANGED
|
@@ -6565,10 +6565,18 @@ button.agent-gui-node__conversation-section-toggle:hover
|
|
|
6565
6565
|
}
|
|
6566
6566
|
|
|
6567
6567
|
.agent-gui-node__conversation-provider-icon {
|
|
6568
|
-
display: inline-block;
|
|
6569
6568
|
flex: 0 0 14px;
|
|
6570
6569
|
width: 14px;
|
|
6571
6570
|
height: 14px;
|
|
6571
|
+
}
|
|
6572
|
+
|
|
6573
|
+
.agent-gui-node__conversation-provider-image {
|
|
6574
|
+
display: block;
|
|
6575
|
+
object-fit: contain;
|
|
6576
|
+
}
|
|
6577
|
+
|
|
6578
|
+
.agent-gui-node__conversation-provider-mask-icon {
|
|
6579
|
+
display: inline-block;
|
|
6572
6580
|
color: var(--text-tertiary);
|
|
6573
6581
|
background-color: currentColor;
|
|
6574
6582
|
mask-position: center;
|
|
@@ -9769,7 +9769,7 @@ function useAgentGUISubmitInteractionActions(input) {
|
|
|
9769
9769
|
agentSessionId,
|
|
9770
9770
|
normalizedContent,
|
|
9771
9771
|
displayPromptText,
|
|
9772
|
-
{ sendNow: true }
|
|
9772
|
+
{ sendNow: true, trackDraft: true }
|
|
9773
9773
|
);
|
|
9774
9774
|
},
|
|
9775
9775
|
[
|
|
@@ -13435,7 +13435,9 @@ var styles = {
|
|
|
13435
13435
|
conversationList: "agent-gui-node__conversation-list",
|
|
13436
13436
|
conversationMeta: "agent-gui-node__conversation-meta",
|
|
13437
13437
|
conversationMoreButton: "agent-gui-node__conversation-more-button",
|
|
13438
|
+
conversationProviderImage: "agent-gui-node__conversation-provider-image",
|
|
13438
13439
|
conversationProviderIcon: "agent-gui-node__conversation-provider-icon",
|
|
13440
|
+
conversationProviderMaskIcon: "agent-gui-node__conversation-provider-mask-icon",
|
|
13439
13441
|
conversationOpenWindowButton: "agent-gui-node__conversation-open-window-button",
|
|
13440
13442
|
conversationPinButton: "agent-gui-node__conversation-pin-button",
|
|
13441
13443
|
conversationSection: "agent-gui-node__conversation-section",
|
|
@@ -29993,14 +29995,22 @@ function ContextActionGroups({
|
|
|
29993
29995
|
|
|
29994
29996
|
// agent-gui/agentGuiNode/view/AgentGUIConversationRailItem.tsx
|
|
29995
29997
|
import { Fragment as Fragment16, jsx as jsx54, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
29996
|
-
function
|
|
29998
|
+
function agentGUIConversationIconPresentation(provider, agentTargetId, workspaceId, agentTargets) {
|
|
29997
29999
|
const targetPresentation = resolveAgentTargetPresentation({
|
|
29998
30000
|
agentTargetId: agentTargetId ?? "",
|
|
29999
30001
|
agentTargets,
|
|
30000
30002
|
workspaceId
|
|
30001
30003
|
});
|
|
30002
|
-
const
|
|
30003
|
-
|
|
30004
|
+
const maskIconUrl = targetPresentation?.maskIconUrl?.trim() ?? "";
|
|
30005
|
+
if (maskIconUrl) {
|
|
30006
|
+
return { kind: "mask", url: maskIconUrl };
|
|
30007
|
+
}
|
|
30008
|
+
const iconUrl = targetPresentation?.iconUrl?.trim() ?? "";
|
|
30009
|
+
if (iconUrl) {
|
|
30010
|
+
return { kind: "image", url: iconUrl };
|
|
30011
|
+
}
|
|
30012
|
+
const providerIconUrl = resolveAgentGuiSessionProviderFlatIconUrl(provider);
|
|
30013
|
+
return providerIconUrl ? { kind: "mask", url: providerIconUrl } : null;
|
|
30004
30014
|
}
|
|
30005
30015
|
function agentGUIConversationRailTitle(item, labels, uiLanguage) {
|
|
30006
30016
|
const title = conversationPlainTitle(item, labels, uiLanguage);
|
|
@@ -30030,7 +30040,7 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30030
30040
|
"use memo";
|
|
30031
30041
|
const pinned = (item.pinnedAtUnixMs ?? 0) > 0;
|
|
30032
30042
|
const agentTargets = useAgentTargetPresentations();
|
|
30033
|
-
const
|
|
30043
|
+
const conversationIcon = agentGUIConversationIconPresentation(
|
|
30034
30044
|
item.provider,
|
|
30035
30045
|
item.agentTargetId,
|
|
30036
30046
|
workspaceId,
|
|
@@ -30119,16 +30129,31 @@ var AgentGUIConversationRailItem = memo5(
|
|
|
30119
30129
|
},
|
|
30120
30130
|
children: [
|
|
30121
30131
|
/* @__PURE__ */ jsxs38("span", { className: AgentGUINode_styles_default.conversationTitleRow, children: [
|
|
30122
|
-
|
|
30132
|
+
conversationIcon?.kind === "mask" ? /* @__PURE__ */ jsx54(
|
|
30123
30133
|
"span",
|
|
30124
30134
|
{
|
|
30125
30135
|
"aria-hidden": "true",
|
|
30126
|
-
className:
|
|
30136
|
+
className: cn7(
|
|
30137
|
+
AgentGUINode_styles_default.conversationProviderIcon,
|
|
30138
|
+
AgentGUINode_styles_default.conversationProviderMaskIcon
|
|
30139
|
+
),
|
|
30127
30140
|
style: {
|
|
30128
|
-
WebkitMaskImage: `url("${
|
|
30129
|
-
maskImage: `url("${
|
|
30141
|
+
WebkitMaskImage: `url("${conversationIcon.url}")`,
|
|
30142
|
+
maskImage: `url("${conversationIcon.url}")`
|
|
30130
30143
|
}
|
|
30131
30144
|
}
|
|
30145
|
+
) : conversationIcon ? /* @__PURE__ */ jsx54(
|
|
30146
|
+
"img",
|
|
30147
|
+
{
|
|
30148
|
+
alt: "",
|
|
30149
|
+
"aria-hidden": "true",
|
|
30150
|
+
className: cn7(
|
|
30151
|
+
AgentGUINode_styles_default.conversationProviderIcon,
|
|
30152
|
+
AgentGUINode_styles_default.conversationProviderImage
|
|
30153
|
+
),
|
|
30154
|
+
draggable: false,
|
|
30155
|
+
src: conversationIcon.url
|
|
30156
|
+
}
|
|
30132
30157
|
) : null,
|
|
30133
30158
|
item.titleLeadingMentionKind === "task" ? /* @__PURE__ */ jsx54(
|
|
30134
30159
|
"span",
|
|
@@ -38642,4 +38667,4 @@ export {
|
|
|
38642
38667
|
resolveAgentGUIAgentTarget,
|
|
38643
38668
|
AgentGUI
|
|
38644
38669
|
};
|
|
38645
|
-
//# sourceMappingURL=chunk-
|
|
38670
|
+
//# sourceMappingURL=chunk-QRBQ6OHG.js.map
|