@tutti-os/agent-gui 0.0.37 → 0.0.39

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.
Files changed (49) hide show
  1. package/dist/{AgentMessageMarkdown-Fv7I0HUN.d.ts → AgentMessageMarkdown-BVeh06AJ.d.ts} +5 -0
  2. package/dist/agent-conversation/index.d.ts +1 -1
  3. package/dist/agent-conversation/index.js +5 -5
  4. package/dist/agent-message-center/index.d.ts +1 -0
  5. package/dist/agent-message-center/index.js +231 -15
  6. package/dist/agent-message-center/index.js.map +1 -1
  7. package/dist/app/renderer/agentactivity.css +67 -0
  8. package/dist/{chunk-5YJPISWJ.js → chunk-3AXEEQMV.js} +24 -7
  9. package/dist/chunk-3AXEEQMV.js.map +1 -0
  10. package/dist/{chunk-BQNHPMQY.js → chunk-46IYJEZX.js} +98 -5
  11. package/dist/chunk-46IYJEZX.js.map +1 -0
  12. package/dist/{chunk-UHQDBXGH.js → chunk-5HQDW73P.js} +497 -233
  13. package/dist/chunk-5HQDW73P.js.map +1 -0
  14. package/dist/{chunk-2ADVHCST.js → chunk-B2JKDZSR.js} +1 -1
  15. package/dist/{chunk-2ADVHCST.js.map → chunk-B2JKDZSR.js.map} +1 -1
  16. package/dist/{chunk-MKSRP5XS.js → chunk-C7ZZZXKB.js} +5 -5
  17. package/dist/{chunk-XROBPALT.js → chunk-RE3AHBX6.js} +2 -2
  18. package/dist/{chunk-JL2WNRYC.js → chunk-WJPEKD3F.js} +17 -1
  19. package/dist/chunk-WJPEKD3F.js.map +1 -0
  20. package/dist/{chunk-NCS7X3XY.js → chunk-XL2EKJTQ.js} +15 -3
  21. package/dist/chunk-XL2EKJTQ.js.map +1 -0
  22. package/dist/{chunk-WHWZZYBV.js → chunk-Y2DQJPTL.js} +2 -2
  23. package/dist/{chunk-SXHVKUUI.js → chunk-Y5SE2XMU.js} +72 -15
  24. package/dist/chunk-Y5SE2XMU.js.map +1 -0
  25. package/dist/{chunk-MUZMBEFO.js → chunk-ZWJBG2JM.js} +21 -2
  26. package/dist/chunk-ZWJBG2JM.js.map +1 -0
  27. package/dist/context-mention-palette/index.js +6 -6
  28. package/dist/i18n/index.d.ts +16 -0
  29. package/dist/i18n/index.js +1 -1
  30. package/dist/index.d.ts +5 -3
  31. package/dist/index.js +2163 -998
  32. package/dist/index.js.map +1 -1
  33. package/dist/workbench/contribution.js +2 -2
  34. package/dist/workbench/index.d.ts +2 -1
  35. package/dist/workbench/index.js +2 -2
  36. package/dist/workbench/state.d.ts +6 -0
  37. package/dist/workbench/state.js +1 -1
  38. package/dist/workspace-agent-generated-files.js +2 -2
  39. package/package.json +13 -12
  40. package/dist/chunk-5YJPISWJ.js.map +0 -1
  41. package/dist/chunk-BQNHPMQY.js.map +0 -1
  42. package/dist/chunk-JL2WNRYC.js.map +0 -1
  43. package/dist/chunk-MUZMBEFO.js.map +0 -1
  44. package/dist/chunk-NCS7X3XY.js.map +0 -1
  45. package/dist/chunk-SXHVKUUI.js.map +0 -1
  46. package/dist/chunk-UHQDBXGH.js.map +0 -1
  47. /package/dist/{chunk-MKSRP5XS.js.map → chunk-C7ZZZXKB.js.map} +0 -0
  48. /package/dist/{chunk-XROBPALT.js.map → chunk-RE3AHBX6.js.map} +0 -0
  49. /package/dist/{chunk-WHWZZYBV.js.map → chunk-Y2DQJPTL.js.map} +0 -0
@@ -108,6 +108,73 @@
108
108
  color: var(--text-primary);
109
109
  }
110
110
 
111
+ .tsh-zoom-dialog__image-actions {
112
+ position: fixed;
113
+ top: max(20px, calc(var(--cove-titlebar-reserve, 0px) + 10px));
114
+ right: 72px;
115
+ z-index: 100301;
116
+ display: flex;
117
+ gap: 8px;
118
+ }
119
+
120
+ .tsh-image-context-menu {
121
+ position: fixed;
122
+ z-index: 100302;
123
+ min-width: 148px;
124
+ overflow: hidden;
125
+ border: 1px solid var(--line-2);
126
+ border-radius: 8px;
127
+ background: var(--background-panel);
128
+ box-shadow: 0 18px 40px color-mix(in srgb, black 26%, transparent);
129
+ color: var(--text-primary);
130
+ padding: 4px;
131
+ -webkit-app-region: no-drag;
132
+ }
133
+
134
+ .tsh-zoom-dialog__image-actions button,
135
+ .tsh-image-context-menu button {
136
+ display: flex;
137
+ align-items: center;
138
+ gap: 8px;
139
+ border: 0;
140
+ border-radius: 6px;
141
+ background: transparent;
142
+ color: inherit;
143
+ cursor: pointer;
144
+ font: inherit;
145
+ font-size: 13px;
146
+ line-height: 20px;
147
+ }
148
+
149
+ .tsh-zoom-dialog__image-actions button {
150
+ justify-content: center;
151
+ width: 40px;
152
+ height: 40px;
153
+ background: color-mix(in srgb, var(--background-panel) 78%, black 22%);
154
+ box-shadow:
155
+ 0 18px 40px color-mix(in srgb, black 26%, transparent),
156
+ 0 0 0 1px color-mix(in srgb, white 12%, transparent);
157
+ }
158
+
159
+ .tsh-zoom-dialog__image-actions button span {
160
+ position: absolute;
161
+ width: 1px;
162
+ height: 1px;
163
+ overflow: hidden;
164
+ clip: rect(0 0 0 0);
165
+ white-space: nowrap;
166
+ }
167
+
168
+ .tsh-image-context-menu button {
169
+ width: 100%;
170
+ padding: 7px 10px;
171
+ }
172
+
173
+ .tsh-zoom-dialog__image-actions button:hover,
174
+ .tsh-image-context-menu button:hover {
175
+ background: color-mix(in srgb, var(--background-panel) 82%, white 12%);
176
+ }
177
+
111
178
  .workspace-agents-status-panel {
112
179
  --workspace-agents-status-panel-chrome-gap: 8px;
113
180
  --workspace-room-top-bar-safe-area: 52px;
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  AgentGUIConversation_styles_default,
3
3
  AgentMessageMarkdown,
4
+ ConversationImageContextMenu,
4
5
  CustomScrollArea,
5
6
  MessageSquareMoreIcon,
6
7
  ZoomableImage,
@@ -10,14 +11,14 @@ import {
10
11
  resolveWorkspaceFileLinkAction,
11
12
  resolveWorkspaceFilePathCandidate,
12
13
  resolveWorkspaceLinkAction
13
- } from "./chunk-UHQDBXGH.js";
14
+ } from "./chunk-5HQDW73P.js";
14
15
  import {
15
16
  attrsToMentionItem,
16
17
  createAgentFileMentionExtension,
17
18
  formatAgentMentionMarkdown,
18
19
  mentionItemToAttrs,
19
20
  parseAgentMentionMarkdown
20
- } from "./chunk-XROBPALT.js";
21
+ } from "./chunk-RE3AHBX6.js";
21
22
  import {
22
23
  fileChangeCountFromChanges,
23
24
  fileChangeEntriesFromChanges,
@@ -27,13 +28,13 @@ import {
27
28
  import {
28
29
  getOptionalAgentActivityRuntime,
29
30
  useOptionalAgentHostApi
30
- } from "./chunk-2ADVHCST.js";
31
+ } from "./chunk-B2JKDZSR.js";
31
32
  import {
32
33
  workspaceAgentProviderLabel
33
34
  } from "./chunk-TYGL25EL.js";
34
35
  import {
35
36
  translate
36
- } from "./chunk-JL2WNRYC.js";
37
+ } from "./chunk-WJPEKD3F.js";
37
38
 
38
39
  // shared/imageGenerationTool.ts
39
40
  var KNOWN_IMAGE_GENERATION_TOOL_NAMES = /* @__PURE__ */ new Set([
@@ -3904,6 +3905,21 @@ function dedupeFiles(files) {
3904
3905
  byPath.set(file.path, file);
3905
3906
  return;
3906
3907
  }
3908
+ if (existing.changeType === "deleted" && file.changeType === "created") {
3909
+ byPath.set(file.path, {
3910
+ ...file,
3911
+ changeType: "modified",
3912
+ unifiedDiff: null,
3913
+ oldString: existing.oldString ?? existing.content ?? existing.unifiedDiff ?? null,
3914
+ newString: file.newString ?? file.content ?? file.unifiedDiff ?? null,
3915
+ content: null
3916
+ });
3917
+ return;
3918
+ }
3919
+ if (file.changeType === "deleted" || existing.changeType === "deleted") {
3920
+ byPath.set(file.path, file);
3921
+ return;
3922
+ }
3907
3923
  if (existing.changeType === "modified" && file.changeType === "created") {
3908
3924
  byPath.set(file.path, file);
3909
3925
  return;
@@ -6876,7 +6892,7 @@ function AgentUserImageGrid({
6876
6892
  "div",
6877
6893
  {
6878
6894
  className: "max-h-20 min-w-0 overflow-hidden rounded-[6px]",
6879
- children: src ? /* @__PURE__ */ jsx12(
6895
+ children: src ? /* @__PURE__ */ jsx12(ConversationImageContextMenu, { src, children: /* @__PURE__ */ jsx12(
6880
6896
  ZoomableImage,
6881
6897
  {
6882
6898
  src,
@@ -6884,7 +6900,7 @@ function AgentUserImageGrid({
6884
6900
  className: "block max-h-20 w-full rounded-[6px] object-contain",
6885
6901
  draggable: false
6886
6902
  }
6887
- ) : loading ? /* @__PURE__ */ jsx12(
6903
+ ) }) : loading ? /* @__PURE__ */ jsx12(
6888
6904
  "div",
6889
6905
  {
6890
6906
  className: "flex h-20 w-full items-center justify-center bg-[color-mix(in_srgb,var(--text-primary)_6%,transparent)]",
@@ -10592,6 +10608,7 @@ function ImageGenerationPreview({
10592
10608
  className: cn(
10593
10609
  "block max-h-[360px] max-w-full rounded-[8px] border border-[var(--line-2)] bg-[var(--background-panel)] object-contain"
10594
10610
  ),
10611
+ downloadName: localPath ? localPath.split(/[\\/]/).pop() : "image.png",
10595
10612
  src,
10596
10613
  wrapElement: "span"
10597
10614
  }
@@ -12715,4 +12732,4 @@ export {
12715
12732
  AgentConversationFlow,
12716
12733
  useProjectedAgentConversation
12717
12734
  };
12718
- //# sourceMappingURL=chunk-5YJPISWJ.js.map
12735
+ //# sourceMappingURL=chunk-3AXEEQMV.js.map