@tutti-os/agent-gui 0.0.110 → 0.0.111

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 (51) hide show
  1. package/dist/{AgentGUI-BSr3cWcJ.d.ts → AgentGUI-DXwtHJnv.d.ts} +1 -1
  2. package/dist/{AgentRichTextReadonly-42TUVYX5.js → AgentRichTextReadonly-VKMTXBKA.js} +5 -5
  3. package/dist/agent-conversation/index.js +7 -7
  4. package/dist/agent-gui.d.ts +2 -2
  5. package/dist/agent-gui.js +14 -14
  6. package/dist/agent-message-center/index.js +6 -6
  7. package/dist/{agentFileMentionContracts-B70VnPWO.d.ts → agentFileMentionContracts-DY4Z70CN.d.ts} +1 -0
  8. package/dist/{chunk-7BN2WQ2M.js → chunk-2JPJLBER.js} +3 -1
  9. package/dist/chunk-2JPJLBER.js.map +1 -0
  10. package/dist/{chunk-BM3CSFWU.js → chunk-3QIE72RQ.js} +2 -2
  11. package/dist/{chunk-AIZJHA4Q.js → chunk-5O3KW33M.js} +4 -4
  12. package/dist/{chunk-OEYXSD3O.js → chunk-74ZOQONQ.js} +2 -2
  13. package/dist/{chunk-A5UXTAYJ.js → chunk-7D7L3JGA.js} +22 -11
  14. package/dist/chunk-7D7L3JGA.js.map +1 -0
  15. package/dist/{chunk-YRMT6UYB.js → chunk-CVPI23GJ.js} +19 -15
  16. package/dist/{chunk-YRMT6UYB.js.map → chunk-CVPI23GJ.js.map} +1 -1
  17. package/dist/{chunk-J7KJ4MX4.js → chunk-HGHNKOR2.js} +3 -3
  18. package/dist/{chunk-BRLKORQI.js → chunk-HHQTW2VC.js} +5 -5
  19. package/dist/{chunk-25BPR75P.js → chunk-HLSEVZCW.js} +2 -2
  20. package/dist/{chunk-K7WFXVSD.js → chunk-HWMDMZPV.js} +67 -23
  21. package/dist/chunk-HWMDMZPV.js.map +1 -0
  22. package/dist/{chunk-JBX3JPTC.js → chunk-QMU5KFPY.js} +2 -2
  23. package/dist/{chunk-E74BMFHI.js → chunk-RX6JAGC6.js} +2 -2
  24. package/dist/{chunk-U4CVBCHD.js → chunk-WGUEDMSP.js} +3 -3
  25. package/dist/{chunk-2QHKXI5N.js → chunk-Z662JCRH.js} +2 -2
  26. package/dist/context-mention-palette/index.d.ts +1 -1
  27. package/dist/context-mention-palette/index.js +7 -7
  28. package/dist/i18n/index.d.ts +2 -0
  29. package/dist/i18n/index.js +2 -2
  30. package/dist/index.d.ts +3 -3
  31. package/dist/index.js +14 -14
  32. package/dist/mention-search.d.ts +3 -2
  33. package/dist/mention-search.js +5 -5
  34. package/dist/workbench/contribution.js +3 -3
  35. package/dist/workbench/index.js +3 -3
  36. package/dist/workbench/sessionTitle.js +2 -2
  37. package/package.json +14 -14
  38. package/dist/chunk-7BN2WQ2M.js.map +0 -1
  39. package/dist/chunk-A5UXTAYJ.js.map +0 -1
  40. package/dist/chunk-K7WFXVSD.js.map +0 -1
  41. /package/dist/{AgentRichTextReadonly-42TUVYX5.js.map → AgentRichTextReadonly-VKMTXBKA.js.map} +0 -0
  42. /package/dist/{chunk-BM3CSFWU.js.map → chunk-3QIE72RQ.js.map} +0 -0
  43. /package/dist/{chunk-AIZJHA4Q.js.map → chunk-5O3KW33M.js.map} +0 -0
  44. /package/dist/{chunk-OEYXSD3O.js.map → chunk-74ZOQONQ.js.map} +0 -0
  45. /package/dist/{chunk-J7KJ4MX4.js.map → chunk-HGHNKOR2.js.map} +0 -0
  46. /package/dist/{chunk-BRLKORQI.js.map → chunk-HHQTW2VC.js.map} +0 -0
  47. /package/dist/{chunk-25BPR75P.js.map → chunk-HLSEVZCW.js.map} +0 -0
  48. /package/dist/{chunk-JBX3JPTC.js.map → chunk-QMU5KFPY.js.map} +0 -0
  49. /package/dist/{chunk-E74BMFHI.js.map → chunk-RX6JAGC6.js.map} +0 -0
  50. /package/dist/{chunk-U4CVBCHD.js.map → chunk-WGUEDMSP.js.map} +0 -0
  51. /package/dist/{chunk-2QHKXI5N.js.map → chunk-Z662JCRH.js.map} +0 -0
@@ -9,7 +9,7 @@ import {
9
9
  resolveAgentGUIConversationTitleDisplayPrompt,
10
10
  resolveAgentGuiWorkbenchHeaderTitle,
11
11
  resolveAgentGuiWorkbenchSessionTitle
12
- } from "./chunk-BM3CSFWU.js";
12
+ } from "./chunk-3QIE72RQ.js";
13
13
  import {
14
14
  createAgentGuiWorkbenchNodeStateSource,
15
15
  migrateLegacyAgentGuiWorkbenchState,
@@ -276,7 +276,7 @@ function useAgentGuiWorkbenchBodyRenderError(nodeId) {
276
276
 
277
277
  // workbench/header.ts
278
278
  var LazyAgentRichTextReadonly = lazy(
279
- () => import("./AgentRichTextReadonly-42TUVYX5.js").then((module) => ({
279
+ () => import("./AgentRichTextReadonly-VKMTXBKA.js").then((module) => ({
280
280
  default: module.AgentRichTextReadonly
281
281
  }))
282
282
  );
@@ -1482,4 +1482,4 @@ export {
1482
1482
  AGENT_GUI_WORKBENCH_OPEN_EXTERNAL_IMPORT_EVENT,
1483
1483
  createAgentGuiWorkbenchContribution
1484
1484
  };
1485
- //# sourceMappingURL=chunk-J7KJ4MX4.js.map
1485
+ //# sourceMappingURL=chunk-HGHNKOR2.js.map
@@ -2,7 +2,7 @@ import {
2
2
  AgentRichTextReadonly,
3
3
  promptForProviderSkills,
4
4
  skillTriggerForPrefix
5
- } from "./chunk-JBX3JPTC.js";
5
+ } from "./chunk-QMU5KFPY.js";
6
6
  import {
7
7
  classifyRecoverableAgentMessage,
8
8
  isProviderPlanLimitMessage,
@@ -38,7 +38,7 @@ import {
38
38
  resolveWorkspaceFileLinkAction,
39
39
  resolveWorkspaceFilePathCandidate,
40
40
  resolveWorkspaceLinkAction
41
- } from "./chunk-U4CVBCHD.js";
41
+ } from "./chunk-WGUEDMSP.js";
42
42
  import {
43
43
  cn
44
44
  } from "./chunk-KPMQGPYU.js";
@@ -46,7 +46,7 @@ import {
46
46
  useOptionalAgentActivityRuntime,
47
47
  useOptionalAgentHostApi,
48
48
  workspaceAgentProviderLabel
49
- } from "./chunk-E74BMFHI.js";
49
+ } from "./chunk-RX6JAGC6.js";
50
50
  import {
51
51
  fileChangeCountFromChanges,
52
52
  fileChangeEntriesFromChanges,
@@ -58,7 +58,7 @@ import {
58
58
  import {
59
59
  getActiveUiLanguage,
60
60
  translate
61
- } from "./chunk-25BPR75P.js";
61
+ } from "./chunk-HLSEVZCW.js";
62
62
 
63
63
  // shared/workspaceAgentToolCallIdentifiers.ts
64
64
  function looksLikeOpaqueToolCallIdentifier(value) {
@@ -13813,4 +13813,4 @@ export {
13813
13813
  AgentConversationFlow,
13814
13814
  useProjectedAgentConversation
13815
13815
  };
13816
- //# sourceMappingURL=chunk-BRLKORQI.js.map
13816
+ //# sourceMappingURL=chunk-HHQTW2VC.js.map
@@ -6,7 +6,7 @@ import {
6
6
  setCurrentAgentGuiI18nRuntime,
7
7
  translate,
8
8
  translateInUiLanguage
9
- } from "./chunk-7BN2WQ2M.js";
9
+ } from "./chunk-2JPJLBER.js";
10
10
 
11
11
  // i18n/index.ts
12
12
  import React, {
@@ -68,4 +68,4 @@ export {
68
68
  AgentGuiI18nProvider,
69
69
  useTranslation
70
70
  };
71
- //# sourceMappingURL=chunk-25BPR75P.js.map
71
+ //# sourceMappingURL=chunk-HLSEVZCW.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-XJ34OIEQ.js";
8
8
  import {
9
9
  normalizeAgentSessionMentionTitle
10
- } from "./chunk-OEYXSD3O.js";
10
+ } from "./chunk-74ZOQONQ.js";
11
11
  import {
12
12
  resolveAgentMentionFileThumbnailUrl
13
13
  } from "./chunk-LUGELG5V.js";
@@ -20,14 +20,14 @@ import {
20
20
  import {
21
21
  getOptionalAgentHostApi,
22
22
  workspaceAgentProviderLabel
23
- } from "./chunk-E74BMFHI.js";
23
+ } from "./chunk-RX6JAGC6.js";
24
24
  import {
25
25
  normalizeAgentTitleText
26
26
  } from "./chunk-MIJXEELH.js";
27
27
  import {
28
28
  translate,
29
29
  translateInUiLanguage
30
- } from "./chunk-25BPR75P.js";
30
+ } from "./chunk-HLSEVZCW.js";
31
31
 
32
32
  // agent-gui/agentGuiNode/AgentMentionLabels.ts
33
33
  function agentMentionGroupLabel(groupId) {
@@ -727,25 +727,27 @@ function buildAgentProvenanceGroups(input) {
727
727
  const catalogAgentTargetIds = new Set(
728
728
  input.provenanceCatalog.agentOptions.map((option) => option.id)
729
729
  );
730
- const catalogGroups = input.provenanceCatalog.agentOptions.flatMap(
731
- (option) => {
732
- const items = sourceItems.filter(
733
- (item) => agentTargetIdForMentionItem(item) === option.id
734
- );
735
- if (items.length === 0) {
736
- return [];
737
- }
738
- return [
739
- buildAgentProvenanceGroup({
740
- currentFilter: input.currentFilter,
741
- expandedCounts: input.expandedCounts,
742
- id: agentProvenanceMentionGroupId(option.id),
743
- label: option.label,
744
- items
745
- })
746
- ];
730
+ const catalogGroups = agentProvenanceGroupSpecs(
731
+ input.currentFilter,
732
+ input.provenanceCatalog
733
+ ).flatMap((group) => {
734
+ const items = sourceItems.filter((item) => {
735
+ const agentTargetId = agentTargetIdForMentionItem(item);
736
+ return agentTargetId !== null && group.agentTargetIds.has(agentTargetId);
737
+ });
738
+ if (items.length === 0) {
739
+ return [];
747
740
  }
748
- );
741
+ return [
742
+ buildAgentProvenanceGroup({
743
+ currentFilter: input.currentFilter,
744
+ expandedCounts: input.expandedCounts,
745
+ id: group.id,
746
+ label: group.label,
747
+ items
748
+ })
749
+ ];
750
+ });
749
751
  if (selectedAgentTargetIdSet !== null) {
750
752
  return catalogGroups;
751
753
  }
@@ -779,6 +781,44 @@ function buildAgentProvenanceGroups(input) {
779
781
  )
780
782
  ];
781
783
  }
784
+ function agentProvenanceGroupSpecs(currentFilter, catalog) {
785
+ if (currentFilter === "session") {
786
+ return catalog.agentOptions.map((option) => ({
787
+ id: agentProvenanceMentionGroupId(option.id),
788
+ label: option.label,
789
+ agentTargetIds: /* @__PURE__ */ new Set([option.id])
790
+ }));
791
+ }
792
+ const groupedAgentTargetIds = /* @__PURE__ */ new Set();
793
+ const memberGroups = catalog.memberOptions.flatMap((member) => {
794
+ const agentTargetIds = catalog.agentOptions.flatMap(
795
+ (option) => option.parentMemberId?.trim() === member.id ? [option.id] : []
796
+ );
797
+ if (agentTargetIds.length === 0) {
798
+ return [];
799
+ }
800
+ agentTargetIds.forEach(
801
+ (agentTargetId) => groupedAgentTargetIds.add(agentTargetId)
802
+ );
803
+ return [
804
+ {
805
+ id: memberProvenanceMentionGroupId(member.id),
806
+ label: member.label,
807
+ agentTargetIds: new Set(agentTargetIds)
808
+ }
809
+ ];
810
+ });
811
+ const unownedAgentGroups = catalog.agentOptions.flatMap(
812
+ (option) => groupedAgentTargetIds.has(option.id) ? [] : [
813
+ {
814
+ id: agentProvenanceMentionGroupId(option.id),
815
+ label: option.label,
816
+ agentTargetIds: /* @__PURE__ */ new Set([option.id])
817
+ }
818
+ ]
819
+ );
820
+ return [...memberGroups, ...unownedAgentGroups];
821
+ }
782
822
  function agentProvenanceItemsForFilter(input) {
783
823
  if (input.currentFilter === "session") {
784
824
  return input.rawGroups.sessions.filter((item) => item.kind === "session");
@@ -824,6 +864,9 @@ function buildAgentProvenanceGroup(input) {
824
864
  function agentProvenanceMentionGroupId(agentTargetId) {
825
865
  return `agent:${encodeURIComponent(agentTargetId)}`;
826
866
  }
867
+ function memberProvenanceMentionGroupId(memberId) {
868
+ return `member:${encodeURIComponent(memberId)}`;
869
+ }
827
870
  function emptyAgentMentionRawGroups() {
828
871
  return {
829
872
  apps: [],
@@ -1009,7 +1052,8 @@ function providerItemToAgentMentionItem(input) {
1009
1052
  name: label,
1010
1053
  description: compactText4(presentation.description) || compactText4(presentation.subtitle) || compactText4(input.subtitle) || void 0,
1011
1054
  agentProviderId,
1012
- iconUrl: presentation.iconUrl?.trim() || void 0
1055
+ iconUrl: presentation.iconUrl?.trim() || void 0,
1056
+ availabilityStatus: presentation.status?.trim() || void 0
1013
1057
  };
1014
1058
  }
1015
1059
  if (input.providerId === AGENT_SESSION_PROVIDER_ID) {
@@ -2842,4 +2886,4 @@ export {
2842
2886
  AgentMentionSearchController,
2843
2887
  preloadAgentMentionBrowse
2844
2888
  };
2845
- //# sourceMappingURL=chunk-K7WFXVSD.js.map
2889
+ //# sourceMappingURL=chunk-HWMDMZPV.js.map