@tutti-os/agent-gui 0.0.109 → 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 (56) 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 +15 -15
  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-J4K7KIFZ.js → chunk-A4WCTHWS.js} +4 -13
  16. package/dist/chunk-A4WCTHWS.js.map +1 -0
  17. package/dist/{chunk-34JD75OB.js → chunk-CVPI23GJ.js} +35 -38
  18. package/dist/{chunk-34JD75OB.js.map → chunk-CVPI23GJ.js.map} +1 -1
  19. package/dist/{chunk-EBXOSQ5G.js → chunk-HGHNKOR2.js} +5 -3
  20. package/dist/{chunk-EBXOSQ5G.js.map → chunk-HGHNKOR2.js.map} +1 -1
  21. package/dist/{chunk-BRLKORQI.js → chunk-HHQTW2VC.js} +5 -5
  22. package/dist/{chunk-25BPR75P.js → chunk-HLSEVZCW.js} +2 -2
  23. package/dist/{chunk-K7WFXVSD.js → chunk-HWMDMZPV.js} +67 -23
  24. package/dist/chunk-HWMDMZPV.js.map +1 -0
  25. package/dist/{chunk-JBX3JPTC.js → chunk-QMU5KFPY.js} +2 -2
  26. package/dist/{chunk-E74BMFHI.js → chunk-RX6JAGC6.js} +2 -2
  27. package/dist/{chunk-U4CVBCHD.js → chunk-WGUEDMSP.js} +3 -3
  28. package/dist/{chunk-2QHKXI5N.js → chunk-Z662JCRH.js} +2 -2
  29. package/dist/context-mention-palette/index.d.ts +1 -1
  30. package/dist/context-mention-palette/index.js +7 -7
  31. package/dist/i18n/index.d.ts +2 -0
  32. package/dist/i18n/index.js +2 -2
  33. package/dist/index.d.ts +3 -3
  34. package/dist/index.js +15 -15
  35. package/dist/mention-search.d.ts +3 -2
  36. package/dist/mention-search.js +5 -5
  37. package/dist/workbench/contribution.js +3 -3
  38. package/dist/workbench/index.js +3 -3
  39. package/dist/workbench/sessionTitle.js +2 -2
  40. package/dist/workspace-query-cache.d.ts +0 -1
  41. package/dist/workspace-query-cache.js +1 -1
  42. package/package.json +12 -12
  43. package/dist/chunk-7BN2WQ2M.js.map +0 -1
  44. package/dist/chunk-A5UXTAYJ.js.map +0 -1
  45. package/dist/chunk-J4K7KIFZ.js.map +0 -1
  46. package/dist/chunk-K7WFXVSD.js.map +0 -1
  47. /package/dist/{AgentRichTextReadonly-42TUVYX5.js.map → AgentRichTextReadonly-VKMTXBKA.js.map} +0 -0
  48. /package/dist/{chunk-BM3CSFWU.js.map → chunk-3QIE72RQ.js.map} +0 -0
  49. /package/dist/{chunk-AIZJHA4Q.js.map → chunk-5O3KW33M.js.map} +0 -0
  50. /package/dist/{chunk-OEYXSD3O.js.map → chunk-74ZOQONQ.js.map} +0 -0
  51. /package/dist/{chunk-BRLKORQI.js.map → chunk-HHQTW2VC.js.map} +0 -0
  52. /package/dist/{chunk-25BPR75P.js.map → chunk-HLSEVZCW.js.map} +0 -0
  53. /package/dist/{chunk-JBX3JPTC.js.map → chunk-QMU5KFPY.js.map} +0 -0
  54. /package/dist/{chunk-E74BMFHI.js.map → chunk-RX6JAGC6.js.map} +0 -0
  55. /package/dist/{chunk-U4CVBCHD.js.map → chunk-WGUEDMSP.js.map} +0 -0
  56. /package/dist/{chunk-2QHKXI5N.js.map → chunk-Z662JCRH.js.map} +0 -0
@@ -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