@tutti-os/agent-gui 0.0.28 → 0.0.29

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 (37) hide show
  1. package/dist/{AgentMentionSearchController-2Vjvmzh3.d.ts → AgentMentionSearchController-D5ks45fN.d.ts} +1 -0
  2. package/dist/agent-conversation/index.js +5 -5
  3. package/dist/agent-message-center/index.js +4 -4
  4. package/dist/app/renderer/agentactivity.css +40 -9
  5. package/dist/{chunk-IBQO76IY.js → chunk-DY2EAW7B.js} +2 -2
  6. package/dist/{chunk-XAQQN6MP.js → chunk-FG66NW5M.js} +2 -2
  7. package/dist/{chunk-LHN26OIP.js → chunk-KAJRFXJK.js} +4 -4
  8. package/dist/{chunk-ILBFIZCI.js → chunk-O57DGCOA.js} +30 -39
  9. package/dist/chunk-O57DGCOA.js.map +1 -0
  10. package/dist/{chunk-GLDKFIWM.js → chunk-RQ3HEF42.js} +7 -7
  11. package/dist/chunk-RQ3HEF42.js.map +1 -0
  12. package/dist/{chunk-LKT3EFGR.js → chunk-UC73DDC5.js} +126 -45
  13. package/dist/chunk-UC73DDC5.js.map +1 -0
  14. package/dist/{chunk-F7XLV7M3.js → chunk-WPWZKKKV.js} +2 -2
  15. package/dist/{chunk-B7DTDZVT.js → chunk-XBRKN4EC.js} +5 -8
  16. package/dist/chunk-XBRKN4EC.js.map +1 -0
  17. package/dist/chunk-Y35GDLP2.js +88 -0
  18. package/dist/chunk-Y35GDLP2.js.map +1 -0
  19. package/dist/context-mention-palette/index.d.ts +4 -3
  20. package/dist/context-mention-palette/index.js +6 -6
  21. package/dist/i18n/index.d.ts +6 -6
  22. package/dist/i18n/index.js +1 -1
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +172 -66
  25. package/dist/index.js.map +1 -1
  26. package/dist/workspace-agent-generated-files.js +3 -3
  27. package/package.json +12 -12
  28. package/dist/chunk-B7DTDZVT.js.map +0 -1
  29. package/dist/chunk-GLDKFIWM.js.map +0 -1
  30. package/dist/chunk-ILBFIZCI.js.map +0 -1
  31. package/dist/chunk-LKT3EFGR.js.map +0 -1
  32. package/dist/chunk-XJ34OIEQ.js +0 -18
  33. package/dist/chunk-XJ34OIEQ.js.map +0 -1
  34. /package/dist/{chunk-IBQO76IY.js.map → chunk-DY2EAW7B.js.map} +0 -0
  35. /package/dist/{chunk-XAQQN6MP.js.map → chunk-FG66NW5M.js.map} +0 -0
  36. /package/dist/{chunk-LHN26OIP.js.map → chunk-KAJRFXJK.js.map} +0 -0
  37. /package/dist/{chunk-F7XLV7M3.js.map → chunk-WPWZKKKV.js.map} +0 -0
@@ -176,6 +176,7 @@ declare class AgentMentionSearchController {
176
176
  private cancelPendingPreload;
177
177
  enterCategory(category: AgentMentionFilterId): void;
178
178
  selectAgentGeneratedMentionItem(item: AgentContextMentionItem): boolean;
179
+ exitAgentGeneratedBrowse(): boolean;
179
180
  expandGroup(groupId: AgentMentionGroupId): void;
180
181
  close(): void;
181
182
  dispose(): void;
@@ -6,15 +6,15 @@ import {
6
6
  projectAgentConversationVM,
7
7
  reconcileProjectedAgentConversationVM,
8
8
  useProjectedAgentConversation
9
- } from "../chunk-LKT3EFGR.js";
10
- import "../chunk-IBQO76IY.js";
11
- import "../chunk-XAQQN6MP.js";
12
- import "../chunk-XJ34OIEQ.js";
9
+ } from "../chunk-UC73DDC5.js";
10
+ import "../chunk-DY2EAW7B.js";
11
+ import "../chunk-FG66NW5M.js";
12
+ import "../chunk-Y35GDLP2.js";
13
13
  import "../chunk-EWWAG26H.js";
14
14
  import "../chunk-TYGL25EL.js";
15
15
  import {
16
16
  translate
17
- } from "../chunk-GLDKFIWM.js";
17
+ } from "../chunk-RQ3HEF42.js";
18
18
  import "../chunk-LUGELG5V.js";
19
19
  import "../chunk-PJP5BUU6.js";
20
20
 
@@ -3,7 +3,7 @@ import {
3
3
  approvalOptionDisplayLabel,
4
4
  getPromptToolDetails,
5
5
  isPromptRequestIdTitle
6
- } from "../chunk-LHN26OIP.js";
6
+ } from "../chunk-KAJRFXJK.js";
7
7
  import {
8
8
  PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
9
9
  PLAN_IMPLEMENTATION_PROMPT,
@@ -16,12 +16,12 @@ import {
16
16
  cn,
17
17
  extractAgentMcpToolTarget,
18
18
  normalizeAskUserQuestions
19
- } from "../chunk-IBQO76IY.js";
19
+ } from "../chunk-DY2EAW7B.js";
20
20
  import {
21
21
  managedAgentRoundedIconUrl,
22
22
  userAvatarPlaceholderUrl,
23
23
  workspaceAgentActivityStatusLabel
24
- } from "../chunk-F7XLV7M3.js";
24
+ } from "../chunk-WPWZKKKV.js";
25
25
  import "../chunk-MTFSQWZ6.js";
26
26
  import {
27
27
  resolveWorkspaceAgentSessionSortTimeUnixMs
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  AgentGuiI18nProvider,
38
38
  useTranslation
39
- } from "../chunk-GLDKFIWM.js";
39
+ } from "../chunk-RQ3HEF42.js";
40
40
  import "../chunk-PJP5BUU6.js";
41
41
 
42
42
  // agent-message-center/WorkspaceAgentMessageCenterPanel.tsx
@@ -2281,10 +2281,14 @@ aside.workspace-agents-status-panel
2281
2281
  }
2282
2282
 
2283
2283
  [data-agent-file-mention="true"][data-agent-mention-kind="file"][data-agent-file-visual-kind="back"]
2284
- .agent-gui-node__mention-file-icon {
2285
- background-color: var(--text-secondary);
2286
- mask-image: url("./assets/icons/arrow-left-filled.svg");
2287
- -webkit-mask-image: url("./assets/icons/arrow-left-filled.svg");
2284
+ .agent-gui-node__mention-file-icon.rich-text-at-mention-file-icon--glyph {
2285
+ display: inline-flex;
2286
+ align-items: center;
2287
+ justify-content: center;
2288
+ background-color: transparent;
2289
+ mask-image: none;
2290
+ -webkit-mask-image: none;
2291
+ color: currentColor;
2288
2292
  }
2289
2293
 
2290
2294
  .agent-gui-chrome__session-chrome {
@@ -2331,14 +2335,25 @@ aside.workspace-agents-status-panel
2331
2335
  margin-left: 24px;
2332
2336
  }
2333
2337
 
2338
+ .agent-gui-node__bottom-dock > .agent-gui-chrome__session-chrome {
2339
+ margin-right: 24px;
2340
+ margin-left: 24px;
2341
+ }
2342
+
2343
+ .agent-gui-node__bottom-dock
2344
+ > .agent-gui-chrome__session-chrome:has(+ .agent-gui-chrome__session-chrome) {
2345
+ margin-right: 36px;
2346
+ margin-left: 36px;
2347
+ }
2348
+
2334
2349
  .agent-gui-node__bottom-dock
2335
2350
  > .agent-gui-chrome__session-chrome:has(
2336
2351
  + .agent-gui-node__composer
2337
2352
  .agent-gui-node__composer-input-group
2338
2353
  > .agent-gui-chrome__session-chrome
2339
2354
  ) {
2340
- margin-right: 16px;
2341
- margin-left: 16px;
2355
+ margin-right: 36px;
2356
+ margin-left: 36px;
2342
2357
  }
2343
2358
 
2344
2359
  .agent-gui-node__bottom-dock
@@ -2350,8 +2365,8 @@ aside.workspace-agents-status-panel
2350
2365
  + .agent-gui-node__composer
2351
2366
  .agent-gui-node__composer-input-group
2352
2367
  > .agent-gui-chrome__session-chrome {
2353
- margin-right: 8px;
2354
- margin-left: 8px;
2368
+ margin-right: 24px;
2369
+ margin-left: 24px;
2355
2370
  }
2356
2371
 
2357
2372
  .agent-gui-chrome__card {
@@ -5477,11 +5492,16 @@ button.agent-gui-node__conversation-section-toggle:hover
5477
5492
  }
5478
5493
 
5479
5494
  .agent-gui-node__provider-setup-notice {
5495
+ position: absolute;
5496
+ top: 16px;
5497
+ right: var(--agent-gui-detail-padding-x);
5498
+ left: var(--agent-gui-detail-padding-x);
5499
+ z-index: 2;
5480
5500
  display: flex;
5481
5501
  align-items: center;
5482
5502
  gap: 8px;
5483
5503
  box-sizing: border-box;
5484
- margin: 16px var(--agent-gui-detail-padding-x) 8px;
5504
+ margin: 0;
5485
5505
  border: 1px solid
5486
5506
  color-mix(
5487
5507
  in srgb,
@@ -5498,6 +5518,11 @@ button.agent-gui-node__conversation-section-toggle:hover
5498
5518
  );
5499
5519
  font-size: 13px;
5500
5520
  line-height: 18px;
5521
+ pointer-events: auto;
5522
+ }
5523
+
5524
+ .agent-gui-node__detail-header + .agent-gui-node__provider-setup-notice {
5525
+ top: calc(64px + 8px);
5501
5526
  }
5502
5527
 
5503
5528
  .agent-gui-node__provider-setup-notice-icon {
@@ -6824,6 +6849,12 @@ html[data-theme="light"] [data-message-center-item-id].agent-gui-edge-glow {
6824
6849
  overscroll-behavior: contain;
6825
6850
  }
6826
6851
 
6852
+ .agent-gui-node__composer-menu-content
6853
+ [data-workspace-user-project-action-separator="true"] {
6854
+ margin-inline: 12px;
6855
+ background: var(--agent-gui-border-subtle, var(--line-2));
6856
+ }
6857
+
6827
6858
  .agent-gui-node__composer-menu-label {
6828
6859
  padding: 4px 10px 2px;
6829
6860
  color: var(--agent-gui-text-secondary);
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-EWWAG26H.js";
5
5
  import {
6
6
  useTranslation
7
- } from "./chunk-GLDKFIWM.js";
7
+ } from "./chunk-RQ3HEF42.js";
8
8
  import {
9
9
  resolveAgentWorkspaceFileVisualKind
10
10
  } from "./chunk-PJP5BUU6.js";
@@ -2668,4 +2668,4 @@ export {
2668
2668
  CustomScrollArea,
2669
2669
  MessageSquareMoreIcon
2670
2670
  };
2671
- //# sourceMappingURL=chunk-IBQO76IY.js.map
2671
+ //# sourceMappingURL=chunk-DY2EAW7B.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  translate,
3
3
  useTranslation
4
- } from "./chunk-GLDKFIWM.js";
4
+ } from "./chunk-RQ3HEF42.js";
5
5
  import {
6
6
  resolveAgentMentionFileThumbnailUrl,
7
7
  resolveAgentMentionFileVisualKind
@@ -1192,4 +1192,4 @@ export {
1192
1192
  mentionItemToAttrs,
1193
1193
  attrsToMentionItem
1194
1194
  };
1195
- //# sourceMappingURL=chunk-XAQQN6MP.js.map
1195
+ //# sourceMappingURL=chunk-FG66NW5M.js.map
@@ -7,17 +7,17 @@ import {
7
7
  AgentGUIConversation_styles_default,
8
8
  MessageSquareMoreIcon,
9
9
  extractAgentMcpToolTarget
10
- } from "./chunk-IBQO76IY.js";
10
+ } from "./chunk-DY2EAW7B.js";
11
11
  import {
12
12
  Spinner
13
- } from "./chunk-F7XLV7M3.js";
13
+ } from "./chunk-WPWZKKKV.js";
14
14
  import {
15
15
  getOptionalAgentHostApi,
16
16
  useOptionalAgentHostApi
17
17
  } from "./chunk-EWWAG26H.js";
18
18
  import {
19
19
  translate
20
- } from "./chunk-GLDKFIWM.js";
20
+ } from "./chunk-RQ3HEF42.js";
21
21
 
22
22
  // shared/agentConversation/approvalOptionPresentation.ts
23
23
  function approvalOptionDisplayLabel(option, intent = {}) {
@@ -1120,4 +1120,4 @@ export {
1120
1120
  isPromptRequestIdTitle,
1121
1121
  AgentInteractivePromptSurface
1122
1122
  };
1123
- //# sourceMappingURL=chunk-LHN26OIP.js.map
1123
+ //# sourceMappingURL=chunk-KAJRFXJK.js.map
@@ -3,10 +3,10 @@ import {
3
3
  managedAgentRoundedIconUrl,
4
4
  userAvatarPlaceholderUrl,
5
5
  workspaceAgentActivityStatusLabel
6
- } from "./chunk-F7XLV7M3.js";
6
+ } from "./chunk-WPWZKKKV.js";
7
7
  import {
8
8
  normalizeAgentSessionMentionTitle
9
- } from "./chunk-XAQQN6MP.js";
9
+ } from "./chunk-FG66NW5M.js";
10
10
  import {
11
11
  getOptionalAgentHostApi
12
12
  } from "./chunk-EWWAG26H.js";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-JM24HADP.js";
16
16
  import {
17
17
  translate
18
- } from "./chunk-GLDKFIWM.js";
18
+ } from "./chunk-RQ3HEF42.js";
19
19
  import {
20
20
  resolveAgentMentionFileThumbnailUrl,
21
21
  resolveAgentMentionFileVisualKind
@@ -751,6 +751,22 @@ var AgentMentionSearchController = class {
751
751
  }
752
752
  return false;
753
753
  }
754
+ exitAgentGeneratedBrowse() {
755
+ if (!this.agentGeneratedBrowsePath) {
756
+ return false;
757
+ }
758
+ this.resetAgentGeneratedBrowsePath();
759
+ this.setState({
760
+ status: this.state.status === "loading" ? "loading" : "ready",
761
+ query: this.currentQuery,
762
+ mode: this.currentQuery ? "results" : "browse",
763
+ filter: this.currentFilter,
764
+ categories: buildBrowseCategories(),
765
+ groups: this.groupsFromRawGroups(),
766
+ error: null
767
+ });
768
+ return true;
769
+ }
754
770
  expandGroup(groupId) {
755
771
  const pageSize = mentionGroupPageSize(this.currentFilter, groupId);
756
772
  const current = this.expandedCounts[groupId] ?? pageSize;
@@ -1782,6 +1798,7 @@ function AgentFileMentionPalette({
1782
1798
  onSelectCategory,
1783
1799
  onSelectFilter,
1784
1800
  onExpandGroup,
1801
+ onNavigateHierarchy,
1785
1802
  onOpenReferences
1786
1803
  }) {
1787
1804
  "use memo";
@@ -1819,12 +1836,6 @@ function AgentFileMentionPalette({
1819
1836
  mode: state.mode,
1820
1837
  query: state.query
1821
1838
  });
1822
- const showFileSearchMoreHint = shouldShowFileSearchMoreHint({
1823
- filter,
1824
- groups: state.groups,
1825
- mode: state.mode,
1826
- query: state.query
1827
- });
1828
1839
  return /* @__PURE__ */ jsx(
1829
1840
  MentionPaletteFromState,
1830
1841
  {
@@ -1850,13 +1861,15 @@ function AgentFileMentionPalette({
1850
1861
  cycleFilter: translate("agentHost.agentGui.fileMentionSwitchCategory"),
1851
1862
  moveSelection: translate(
1852
1863
  "agentHost.agentGui.fileMentionSwitchSelection"
1864
+ ),
1865
+ navigateHierarchy: translate(
1866
+ "agentHost.agentGui.fileMentionNavigateHierarchy"
1853
1867
  )
1854
1868
  },
1855
1869
  maxHeightPx,
1856
1870
  scrollHighlightedIntoViewCentered: shouldCenterHighlightedItem,
1857
1871
  loadingBanner: /* @__PURE__ */ jsx(MentionPaletteLoadingBanner, { label: loadingLabel }),
1858
1872
  theme: AGENT_MENTION_PALETTE_THEME,
1859
- renderListFooter: showFileSearchMoreHint ? () => /* @__PURE__ */ jsx(MentionFileSearchMoreHint, {}) : void 0,
1860
1873
  callbacks: {
1861
1874
  onHighlightChange,
1862
1875
  onActiveCategoryIdChange: (categoryId) => {
@@ -1865,7 +1878,8 @@ function AgentFileMentionPalette({
1865
1878
  },
1866
1879
  onExpandGroup: (groupId) => onExpandGroup(groupId),
1867
1880
  onSelectItem
1868
- }
1881
+ },
1882
+ onNavigateHierarchy
1869
1883
  }
1870
1884
  );
1871
1885
  }
@@ -1914,17 +1928,6 @@ function MentionPaletteLoadingBanner({
1914
1928
  }
1915
1929
  );
1916
1930
  }
1917
- function MentionFileSearchMoreHint() {
1918
- "use memo";
1919
- return /* @__PURE__ */ jsx(
1920
- "p",
1921
- {
1922
- className: "px-3 pb-1 pt-2 text-center text-[13px] leading-5 text-[var(--text-tertiary)]",
1923
- "data-agent-mention-file-search-hint": "true",
1924
- children: translate("agentHost.agentGui.mentionFileSearchMoreHint")
1925
- }
1926
- );
1927
- }
1928
1931
  function shouldSuppressFileSearchGroupChrome(filter, query) {
1929
1932
  return filter === "file" && query.trim().length > 0;
1930
1933
  }
@@ -1975,15 +1978,17 @@ function agentMentionItemToRowItem(item) {
1975
1978
  };
1976
1979
  }
1977
1980
  if (item.kind === "session") {
1981
+ const isMySession = item.scope === "my_sessions";
1978
1982
  return {
1979
1983
  kind: "session",
1980
- participant: `${item.initiatorName} & ${item.agentName}`,
1984
+ participant: isMySession ? item.agentName : `${item.initiatorName} & ${item.agentName}`,
1981
1985
  summary: item.title,
1982
- userAvatarUrl: item.initiatorAvatarUrl ?? null,
1986
+ userAvatarUrl: isMySession ? null : item.initiatorAvatarUrl ?? null,
1983
1987
  userAvatarPlaceholderUrl,
1984
1988
  agentIconUrl: managedAgentRoundedIconUrl(
1985
1989
  mentionSessionAgentProvider(item) ?? item.agentName
1986
1990
  ),
1991
+ showUserAvatar: !isMySession,
1987
1992
  statusTag: agentSessionStatusTag(item.status)
1988
1993
  };
1989
1994
  }
@@ -2097,20 +2102,6 @@ function isFileBrowseGroupsOnlyEmpty(groups) {
2097
2102
  (group) => group.items.length === 0 && !group.hasMore
2098
2103
  );
2099
2104
  }
2100
- function hasVisibleFileGroupEntries(groups) {
2101
- return groups.some(
2102
- (group) => (group.id === "files" || group.id === "opened_files" || group.id === "agent_generated_files") && (group.items.length > 0 || group.hasMore)
2103
- );
2104
- }
2105
- function shouldShowFileSearchMoreHint(input) {
2106
- if (input.filter !== "file" || input.query.trim()) {
2107
- return false;
2108
- }
2109
- if (input.mode !== "browse" && input.mode !== "results") {
2110
- return false;
2111
- }
2112
- return hasVisibleFileGroupEntries(input.groups);
2113
- }
2114
2105
  function shouldShowBrowseSearchHint(input) {
2115
2106
  if (input.mode !== "browse" || hasInteractiveGroupEntries(input.groups)) {
2116
2107
  return false;
@@ -2135,4 +2126,4 @@ export {
2135
2126
  AgentFileMentionPalette,
2136
2127
  AgentContextMentionPalette
2137
2128
  };
2138
- //# sourceMappingURL=chunk-ILBFIZCI.js.map
2129
+ //# sourceMappingURL=chunk-O57DGCOA.js.map