@tutti-os/agent-gui 0.0.214 → 0.0.216
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 +3 -5
- package/dist/{AgentRichTextReadonly-TASIMIK4.js → AgentRichTextReadonly-IPPNAAWG.js} +6 -6
- package/dist/agent-conversation/index.d.ts +3 -5
- package/dist/agent-conversation/index.js +8 -8
- package/dist/agent-gui.d.ts +2 -9
- package/dist/agent-gui.js +15 -15
- package/dist/agent-message-center/index.d.ts +2 -3
- package/dist/agent-message-center/index.js +7 -7
- package/dist/{agentGuiNodeTypes-BMcpfKTn.d.ts → agentGuiNodeTypes-DW7T--Y8.d.ts} +1 -1
- package/dist/app/renderer/agentactivity.css +68 -34
- package/dist/{chunk-ISC67YBJ.js → chunk-6A6OVD66.js} +4 -4
- package/dist/{chunk-AD2RTSMS.js → chunk-AOK22J62.js} +2 -2
- package/dist/{chunk-2HYADTQP.js → chunk-B4TM2HYJ.js} +2 -2
- package/dist/{chunk-G2QO6HPB.js → chunk-DLN33TPF.js} +23 -9
- package/dist/chunk-DLN33TPF.js.map +1 -0
- package/dist/{chunk-XERDRMSF.js → chunk-DTP2OMCE.js} +4 -4
- package/dist/{chunk-7SSORDQY.js → chunk-EZRQMJTX.js} +8 -14
- package/dist/chunk-EZRQMJTX.js.map +1 -0
- package/dist/{chunk-RLFO3NJV.js → chunk-KJA3HHUJ.js} +529 -809
- package/dist/chunk-KJA3HHUJ.js.map +1 -0
- package/dist/chunk-LQMIEH4C.js +100 -0
- package/dist/chunk-LQMIEH4C.js.map +1 -0
- package/dist/{chunk-ZNHMWCO4.js → chunk-MOCBHFJ2.js} +5 -74
- package/dist/chunk-MOCBHFJ2.js.map +1 -0
- package/dist/{chunk-QVLEP54U.js → chunk-P2RIZAK5.js} +3 -3
- package/dist/chunk-P2RIZAK5.js.map +1 -0
- package/dist/{chunk-YBIT37P5.js → chunk-QFYOJMEQ.js} +2 -2
- package/dist/{chunk-BYHNJQYH.js → chunk-UERICUWM.js} +2 -2
- package/dist/{chunk-L4E2Y52A.js → chunk-VMPPZO5C.js} +5 -44
- package/dist/chunk-VMPPZO5C.js.map +1 -0
- package/dist/{chunk-FEUU4YMY.js → chunk-YY5WM3OE.js} +5707 -5727
- package/dist/chunk-YY5WM3OE.js.map +1 -0
- package/dist/{chunk-LQKLBDBK.js → chunk-Z5UJC4Q3.js} +43 -15
- package/dist/chunk-Z5UJC4Q3.js.map +1 -0
- package/dist/context-mention-palette/index.js +7 -7
- package/dist/{contribution-DfeuQHH6.d.ts → contribution-D4lcOjSU.d.ts} +2 -14
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +2 -2
- package/dist/index.d.ts +80 -80
- package/dist/index.js +15 -15
- package/dist/mention-search.js +5 -5
- package/dist/workbench/contribution.d.ts +1 -1
- package/dist/workbench/contribution.js +3 -5
- package/dist/workbench/index.d.ts +2 -2
- package/dist/workbench/index.js +3 -5
- package/dist/workbench/sessionTitle.js +2 -2
- package/dist/{workspaceLinkActions-COfr61YO.d.ts → workspaceLinkActions-CzsbvGmC.d.ts} +78 -71
- package/package.json +14 -14
- package/dist/chunk-7SSORDQY.js.map +0 -1
- package/dist/chunk-FEUU4YMY.js.map +0 -1
- package/dist/chunk-G2QO6HPB.js.map +0 -1
- package/dist/chunk-L4E2Y52A.js.map +0 -1
- package/dist/chunk-LQKLBDBK.js.map +0 -1
- package/dist/chunk-QVLEP54U.js.map +0 -1
- package/dist/chunk-RLFO3NJV.js.map +0 -1
- package/dist/chunk-ZNHMWCO4.js.map +0 -1
- package/dist/chunk-ZVYUTXQJ.js +0 -43
- package/dist/chunk-ZVYUTXQJ.js.map +0 -1
- /package/dist/{AgentRichTextReadonly-TASIMIK4.js.map → AgentRichTextReadonly-IPPNAAWG.js.map} +0 -0
- /package/dist/{chunk-ISC67YBJ.js.map → chunk-6A6OVD66.js.map} +0 -0
- /package/dist/{chunk-AD2RTSMS.js.map → chunk-AOK22J62.js.map} +0 -0
- /package/dist/{chunk-2HYADTQP.js.map → chunk-B4TM2HYJ.js.map} +0 -0
- /package/dist/{chunk-XERDRMSF.js.map → chunk-DTP2OMCE.js.map} +0 -0
- /package/dist/{chunk-YBIT37P5.js.map → chunk-QFYOJMEQ.js.map} +0 -0
- /package/dist/{chunk-BYHNJQYH.js.map → chunk-UERICUWM.js.map} +0 -0
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn,
|
|
3
|
+
readParsedDocumentCache,
|
|
3
4
|
resolveAgentTargetPresentation,
|
|
4
5
|
useAgentTargetPresentations
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LQMIEH4C.js";
|
|
6
7
|
import {
|
|
7
8
|
getOptionalAgentHostApi,
|
|
8
9
|
useOptionalAgentHostApi
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QFYOJMEQ.js";
|
|
10
11
|
import {
|
|
11
12
|
managedAgentRoundedIconUrl
|
|
12
13
|
} from "./chunk-M6HTOCQK.js";
|
|
13
14
|
import {
|
|
14
15
|
translate,
|
|
15
16
|
useTranslation
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UERICUWM.js";
|
|
17
18
|
import {
|
|
18
19
|
resolveAgentWorkspaceFileVisualKind
|
|
19
20
|
} from "./chunk-5BJYO6X3.js";
|
|
@@ -2781,6 +2782,22 @@ function isMarkdownNode(value) {
|
|
|
2781
2782
|
return typeof value === "object" && value !== null && "type" in value && typeof value.type === "string";
|
|
2782
2783
|
}
|
|
2783
2784
|
|
|
2785
|
+
// shared/cachedMarkdownParser.ts
|
|
2786
|
+
function cachedMarkdownParser(options) {
|
|
2787
|
+
if (typeof this.parser !== "function") {
|
|
2788
|
+
return;
|
|
2789
|
+
}
|
|
2790
|
+
const parse = this.parser;
|
|
2791
|
+
this.parser = (...args) => structuredClone(
|
|
2792
|
+
readParsedDocumentCache({
|
|
2793
|
+
namespace: "markdown",
|
|
2794
|
+
identity: options.cacheKey,
|
|
2795
|
+
source: options.content,
|
|
2796
|
+
create: () => parse.apply(this, args)
|
|
2797
|
+
})
|
|
2798
|
+
);
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2784
2801
|
// shared/AgentMessageMarkdown.tsx
|
|
2785
2802
|
import { Fragment as Fragment2, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
2786
2803
|
var STREAMING_MARKDOWN_FRAME_MS = 24;
|
|
@@ -2812,6 +2829,7 @@ var EMPTY_WORKSPACE_APP_ICONS = [];
|
|
|
2812
2829
|
var EMPTY_AGENT_TARGETS2 = [];
|
|
2813
2830
|
function AgentMessageMarkdown({
|
|
2814
2831
|
content,
|
|
2832
|
+
documentCacheKey,
|
|
2815
2833
|
onLinkClick,
|
|
2816
2834
|
onLinkAction,
|
|
2817
2835
|
workspaceLinkContext = null,
|
|
@@ -2823,7 +2841,6 @@ function AgentMessageMarkdown({
|
|
|
2823
2841
|
inline = false,
|
|
2824
2842
|
normalizePlainIssueMentionTitle = false,
|
|
2825
2843
|
enableImageZoom = false,
|
|
2826
|
-
previewMode = false,
|
|
2827
2844
|
streaming = false
|
|
2828
2845
|
}) {
|
|
2829
2846
|
"use memo";
|
|
@@ -2860,6 +2877,20 @@ function AgentMessageMarkdown({
|
|
|
2860
2877
|
),
|
|
2861
2878
|
[normalizePlainIssueMentionTitle, stabilizedContent]
|
|
2862
2879
|
);
|
|
2880
|
+
const settledRemarkPlugins = useMemo(
|
|
2881
|
+
() => [
|
|
2882
|
+
remarkGfm,
|
|
2883
|
+
remarkLiteralAutolinkBoundary,
|
|
2884
|
+
[
|
|
2885
|
+
cachedMarkdownParser,
|
|
2886
|
+
{
|
|
2887
|
+
cacheKey: documentCacheKey?.trim() || "content",
|
|
2888
|
+
content: normalizedContent
|
|
2889
|
+
}
|
|
2890
|
+
]
|
|
2891
|
+
],
|
|
2892
|
+
[documentCacheKey, normalizedContent]
|
|
2893
|
+
);
|
|
2863
2894
|
const isMentionOnly = isMentionOnlyMarkdownContent(normalizedContent);
|
|
2864
2895
|
const handleLinkClick = useCallback4(
|
|
2865
2896
|
(href) => {
|
|
@@ -2899,8 +2930,7 @@ function AgentMessageMarkdown({
|
|
|
2899
2930
|
...props,
|
|
2900
2931
|
onLinkClick: handleLinkClick,
|
|
2901
2932
|
workspaceAppIcons,
|
|
2902
|
-
agentTargets: effectiveAgentTargets
|
|
2903
|
-
previewMode
|
|
2933
|
+
agentTargets: effectiveAgentTargets
|
|
2904
2934
|
}
|
|
2905
2935
|
),
|
|
2906
2936
|
code: (props) => /* @__PURE__ */ jsx5(MarkdownCode, { ...props }),
|
|
@@ -2916,7 +2946,6 @@ function AgentMessageMarkdown({
|
|
|
2916
2946
|
enableImageZoom,
|
|
2917
2947
|
handleLinkClick,
|
|
2918
2948
|
inline,
|
|
2919
|
-
previewMode,
|
|
2920
2949
|
workspaceAppIcons
|
|
2921
2950
|
]
|
|
2922
2951
|
);
|
|
@@ -2966,7 +2995,7 @@ function AgentMessageMarkdown({
|
|
|
2966
2995
|
) : /* @__PURE__ */ jsx5(
|
|
2967
2996
|
ReactMarkdown,
|
|
2968
2997
|
{
|
|
2969
|
-
remarkPlugins:
|
|
2998
|
+
remarkPlugins: settledRemarkPlugins,
|
|
2970
2999
|
rehypePlugins: [[rehypeSanitize, MARKDOWN_SANITIZE_SCHEMA]],
|
|
2971
3000
|
urlTransform: markdownUrlTransform,
|
|
2972
3001
|
components: markdownComponents,
|
|
@@ -3026,7 +3055,6 @@ function MarkdownLink({
|
|
|
3026
3055
|
onLinkClick,
|
|
3027
3056
|
workspaceAppIcons,
|
|
3028
3057
|
agentTargets,
|
|
3029
|
-
previewMode,
|
|
3030
3058
|
href,
|
|
3031
3059
|
...props
|
|
3032
3060
|
}) {
|
|
@@ -3047,8 +3075,7 @@ function MarkdownLink({
|
|
|
3047
3075
|
...props,
|
|
3048
3076
|
href: targetHref,
|
|
3049
3077
|
mention,
|
|
3050
|
-
onLinkClick
|
|
3051
|
-
previewMode: previewMode === true
|
|
3078
|
+
onLinkClick
|
|
3052
3079
|
}
|
|
3053
3080
|
);
|
|
3054
3081
|
}
|
|
@@ -3192,7 +3219,6 @@ function MentionLink({
|
|
|
3192
3219
|
onLinkClick,
|
|
3193
3220
|
href,
|
|
3194
3221
|
mention,
|
|
3195
|
-
previewMode,
|
|
3196
3222
|
...props
|
|
3197
3223
|
}) {
|
|
3198
3224
|
"use memo";
|
|
@@ -3251,8 +3277,8 @@ function MentionLink({
|
|
|
3251
3277
|
kind: pillKind,
|
|
3252
3278
|
label: /* @__PURE__ */ jsx5("span", { className: "tsh-agent-object-token__main", children: label }),
|
|
3253
3279
|
removable: false,
|
|
3254
|
-
tooltipEnabled:
|
|
3255
|
-
withTooltipProvider:
|
|
3280
|
+
tooltipEnabled: true,
|
|
3281
|
+
withTooltipProvider: true
|
|
3256
3282
|
}
|
|
3257
3283
|
)
|
|
3258
3284
|
}
|
|
@@ -3701,6 +3727,8 @@ var styles = {
|
|
|
3701
3727
|
userMessageFlow: "agent-gui-conversation__user-message-flow",
|
|
3702
3728
|
assistantMessageFlow: "agent-gui-conversation__assistant-message-flow",
|
|
3703
3729
|
participantMessageLayout: "agent-gui-conversation__participant-message-layout",
|
|
3730
|
+
participantMessageHeader: "agent-gui-conversation__participant-message-header",
|
|
3731
|
+
participantName: "agent-gui-conversation__participant-name",
|
|
3704
3732
|
participantMessageContent: "agent-gui-conversation__participant-message-content",
|
|
3705
3733
|
participantAvatar: "agent-gui-conversation__participant-avatar",
|
|
3706
3734
|
messageGroup: "agent-gui-conversation__message-group",
|
|
@@ -3731,4 +3759,4 @@ export {
|
|
|
3731
3759
|
AgentMessageMarkdown,
|
|
3732
3760
|
CustomScrollArea
|
|
3733
3761
|
};
|
|
3734
|
-
//# sourceMappingURL=chunk-
|
|
3762
|
+
//# sourceMappingURL=chunk-Z5UJC4Q3.js.map
|