@tutti-os/agent-gui 0.0.213 → 0.0.215
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/{AgentRichTextReadonly-TASIMIK4.js → AgentRichTextReadonly-56TZAJ47.js} +3 -3
- package/dist/agent-conversation/index.d.ts +3 -3
- package/dist/agent-conversation/index.js +4 -4
- package/dist/agent-gui.d.ts +2 -2
- package/dist/agent-gui.js +8 -8
- package/dist/agent-message-center/index.d.ts +1 -1
- package/dist/agent-message-center/index.js +3 -3
- package/dist/{agentGuiNodeTypes-BMcpfKTn.d.ts → agentGuiNodeTypes-DW7T--Y8.d.ts} +1 -1
- package/dist/app/renderer/agentactivity.css +68 -10
- package/dist/{chunk-7SSORDQY.js → chunk-AQ7CRDGX.js} +2 -2
- package/dist/{chunk-ZNHMWCO4.js → chunk-GUD5NOHO.js} +3 -3
- package/dist/{chunk-RLFO3NJV.js → chunk-JOUEYIV3.js} +173 -132
- package/dist/chunk-JOUEYIV3.js.map +1 -0
- package/dist/{chunk-LQKLBDBK.js → chunk-KNSLQO52.js} +37 -3
- package/dist/chunk-KNSLQO52.js.map +1 -0
- package/dist/{chunk-L4E2Y52A.js → chunk-KVFBUOKZ.js} +4 -43
- package/dist/chunk-KVFBUOKZ.js.map +1 -0
- package/dist/chunk-LQMIEH4C.js +100 -0
- package/dist/chunk-LQMIEH4C.js.map +1 -0
- package/dist/{chunk-G2QO6HPB.js → chunk-MWAUXAD2.js} +22 -8
- package/dist/chunk-MWAUXAD2.js.map +1 -0
- package/dist/{chunk-FEUU4YMY.js → chunk-YTU6IUO2.js} +5806 -5722
- package/dist/chunk-YTU6IUO2.js.map +1 -0
- package/dist/index.d.ts +78 -71
- package/dist/index.js +8 -8
- package/dist/workbench/contribution.js +2 -2
- package/dist/workbench/index.js +2 -2
- package/dist/workbench/sessionTitle.js +1 -1
- package/dist/{workspaceLinkActions-COfr61YO.d.ts → workspaceLinkActions-CzsbvGmC.d.ts} +78 -71
- package/package.json +16 -16
- 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-RLFO3NJV.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-56TZAJ47.js.map} +0 -0
- /package/dist/{chunk-7SSORDQY.js.map → chunk-AQ7CRDGX.js.map} +0 -0
- /package/dist/{chunk-ZNHMWCO4.js.map → chunk-GUD5NOHO.js.map} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
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
|
|
@@ -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,
|
|
@@ -2860,6 +2878,20 @@ function AgentMessageMarkdown({
|
|
|
2860
2878
|
),
|
|
2861
2879
|
[normalizePlainIssueMentionTitle, stabilizedContent]
|
|
2862
2880
|
);
|
|
2881
|
+
const settledRemarkPlugins = useMemo(
|
|
2882
|
+
() => [
|
|
2883
|
+
remarkGfm,
|
|
2884
|
+
remarkLiteralAutolinkBoundary,
|
|
2885
|
+
[
|
|
2886
|
+
cachedMarkdownParser,
|
|
2887
|
+
{
|
|
2888
|
+
cacheKey: documentCacheKey?.trim() || "content",
|
|
2889
|
+
content: normalizedContent
|
|
2890
|
+
}
|
|
2891
|
+
]
|
|
2892
|
+
],
|
|
2893
|
+
[documentCacheKey, normalizedContent]
|
|
2894
|
+
);
|
|
2863
2895
|
const isMentionOnly = isMentionOnlyMarkdownContent(normalizedContent);
|
|
2864
2896
|
const handleLinkClick = useCallback4(
|
|
2865
2897
|
(href) => {
|
|
@@ -2966,7 +2998,7 @@ function AgentMessageMarkdown({
|
|
|
2966
2998
|
) : /* @__PURE__ */ jsx5(
|
|
2967
2999
|
ReactMarkdown,
|
|
2968
3000
|
{
|
|
2969
|
-
remarkPlugins:
|
|
3001
|
+
remarkPlugins: settledRemarkPlugins,
|
|
2970
3002
|
rehypePlugins: [[rehypeSanitize, MARKDOWN_SANITIZE_SCHEMA]],
|
|
2971
3003
|
urlTransform: markdownUrlTransform,
|
|
2972
3004
|
components: markdownComponents,
|
|
@@ -3701,6 +3733,8 @@ var styles = {
|
|
|
3701
3733
|
userMessageFlow: "agent-gui-conversation__user-message-flow",
|
|
3702
3734
|
assistantMessageFlow: "agent-gui-conversation__assistant-message-flow",
|
|
3703
3735
|
participantMessageLayout: "agent-gui-conversation__participant-message-layout",
|
|
3736
|
+
participantMessageHeader: "agent-gui-conversation__participant-message-header",
|
|
3737
|
+
participantName: "agent-gui-conversation__participant-name",
|
|
3704
3738
|
participantMessageContent: "agent-gui-conversation__participant-message-content",
|
|
3705
3739
|
participantAvatar: "agent-gui-conversation__participant-avatar",
|
|
3706
3740
|
messageGroup: "agent-gui-conversation__message-group",
|
|
@@ -3731,4 +3765,4 @@ export {
|
|
|
3731
3765
|
AgentMessageMarkdown,
|
|
3732
3766
|
CustomScrollArea
|
|
3733
3767
|
};
|
|
3734
|
-
//# sourceMappingURL=chunk-
|
|
3768
|
+
//# sourceMappingURL=chunk-KNSLQO52.js.map
|