@tutti-os/agent-gui 0.0.110 → 0.0.112

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 (55) hide show
  1. package/dist/{AgentGUI-BSr3cWcJ.d.ts → AgentGUI-BP3qpvtu.d.ts} +6 -3
  2. package/dist/{AgentRichTextReadonly-42TUVYX5.js → AgentRichTextReadonly-2XWSOTX4.js} +5 -5
  3. package/dist/agent-conversation/index.d.ts +1 -1
  4. package/dist/agent-conversation/index.js +7 -7
  5. package/dist/agent-gui.d.ts +3 -3
  6. package/dist/agent-gui.js +14 -14
  7. package/dist/agent-message-center/index.js +6 -6
  8. package/dist/{agentFileMentionContracts-B70VnPWO.d.ts → agentFileMentionContracts-DY4Z70CN.d.ts} +1 -0
  9. package/dist/{agentGuiNodeTypes-CR_l4HhU.d.ts → agentGuiNodeTypes-diw3oP7y.d.ts} +2 -0
  10. package/dist/{chunk-A5UXTAYJ.js → chunk-3IYKN4ZT.js} +22 -11
  11. package/dist/chunk-3IYKN4ZT.js.map +1 -0
  12. package/dist/{chunk-J7KJ4MX4.js → chunk-44HFASN6.js} +3 -3
  13. package/dist/{chunk-K7WFXVSD.js → chunk-5L5LHAJ3.js} +92 -24
  14. package/dist/chunk-5L5LHAJ3.js.map +1 -0
  15. package/dist/{chunk-YRMT6UYB.js → chunk-7H4T7OZ4.js} +47 -17
  16. package/dist/chunk-7H4T7OZ4.js.map +1 -0
  17. package/dist/{chunk-AIZJHA4Q.js → chunk-C6DI6AJZ.js} +4 -4
  18. package/dist/{chunk-7BN2WQ2M.js → chunk-CZIOYBMC.js} +5 -3
  19. package/dist/chunk-CZIOYBMC.js.map +1 -0
  20. package/dist/{chunk-JBX3JPTC.js → chunk-FAJIWGIT.js} +2 -2
  21. package/dist/{chunk-25BPR75P.js → chunk-FGWORVFI.js} +2 -2
  22. package/dist/{chunk-E74BMFHI.js → chunk-JGPI7CC6.js} +2 -2
  23. package/dist/chunk-JGPI7CC6.js.map +1 -0
  24. package/dist/{chunk-BM3CSFWU.js → chunk-P6SRATRQ.js} +2 -2
  25. package/dist/{chunk-U4CVBCHD.js → chunk-RMTPZVKO.js} +3 -3
  26. package/dist/{chunk-2QHKXI5N.js → chunk-UKCQMTN3.js} +2 -2
  27. package/dist/{chunk-OEYXSD3O.js → chunk-VMZJPA5L.js} +2 -2
  28. package/dist/{chunk-BRLKORQI.js → chunk-VVDJHPV4.js} +5 -5
  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 +4 -2
  32. package/dist/i18n/index.js +2 -2
  33. package/dist/index.d.ts +5 -5
  34. package/dist/index.js +14 -14
  35. package/dist/mention-search.d.ts +15 -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/package.json +12 -12
  41. package/dist/chunk-7BN2WQ2M.js.map +0 -1
  42. package/dist/chunk-A5UXTAYJ.js.map +0 -1
  43. package/dist/chunk-E74BMFHI.js.map +0 -1
  44. package/dist/chunk-K7WFXVSD.js.map +0 -1
  45. package/dist/chunk-YRMT6UYB.js.map +0 -1
  46. /package/dist/{AgentRichTextReadonly-42TUVYX5.js.map → AgentRichTextReadonly-2XWSOTX4.js.map} +0 -0
  47. /package/dist/{chunk-J7KJ4MX4.js.map → chunk-44HFASN6.js.map} +0 -0
  48. /package/dist/{chunk-AIZJHA4Q.js.map → chunk-C6DI6AJZ.js.map} +0 -0
  49. /package/dist/{chunk-JBX3JPTC.js.map → chunk-FAJIWGIT.js.map} +0 -0
  50. /package/dist/{chunk-25BPR75P.js.map → chunk-FGWORVFI.js.map} +0 -0
  51. /package/dist/{chunk-BM3CSFWU.js.map → chunk-P6SRATRQ.js.map} +0 -0
  52. /package/dist/{chunk-U4CVBCHD.js.map → chunk-RMTPZVKO.js.map} +0 -0
  53. /package/dist/{chunk-2QHKXI5N.js.map → chunk-UKCQMTN3.js.map} +0 -0
  54. /package/dist/{chunk-OEYXSD3O.js.map → chunk-VMZJPA5L.js.map} +0 -0
  55. /package/dist/{chunk-BRLKORQI.js.map → chunk-VVDJHPV4.js.map} +0 -0
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentGuiSessionProviderFlatIconUrl,
13
13
  resolveNextAgentGUIConversationRailWidthPx,
14
14
  shouldAutoCollapseAgentGUIConversationRail
15
- } from "./chunk-J7KJ4MX4.js";
15
+ } from "./chunk-44HFASN6.js";
16
16
  import {
17
17
  AGENT_PROVIDERS,
18
18
  AGENT_PROVIDER_LABEL,
@@ -29,7 +29,7 @@ import {
29
29
  resolveAgentGUIFirstUserMessageDisplayPrompt,
30
30
  resolveAgentGUIProviderDisplayLabel,
31
31
  resolveAgentGUIProviderIdentity
32
- } from "./chunk-BM3CSFWU.js";
32
+ } from "./chunk-P6SRATRQ.js";
33
33
  import {
34
34
  resolveAgentGuiWorkbenchProviderLabel
35
35
  } from "./chunk-R2ZADXRB.js";
@@ -64,7 +64,7 @@ import {
64
64
  toLocalShortDateTime,
65
65
  updateAgentComposerDraft,
66
66
  useProjectedAgentConversation
67
- } from "./chunk-BRLKORQI.js";
67
+ } from "./chunk-VVDJHPV4.js";
68
68
  import {
69
69
  agentRichTextContentToPromptText,
70
70
  createAgentRichTextInputExtensions,
@@ -74,14 +74,15 @@ import {
74
74
  plainTextToAgentRichTextInlineContent,
75
75
  skillDescriptionForDisplay,
76
76
  skillTriggerForPrefix
77
- } from "./chunk-JBX3JPTC.js";
77
+ } from "./chunk-FAJIWGIT.js";
78
78
  import {
79
79
  openAgentEnvPanel
80
80
  } from "./chunk-VMQNG2KI.js";
81
81
  import {
82
82
  AgentFileMentionPalette,
83
- agentMentionItemKey
84
- } from "./chunk-A5UXTAYJ.js";
83
+ agentMentionItemKey,
84
+ isAgentMentionItemDisabled
85
+ } from "./chunk-3IYKN4ZT.js";
85
86
  import {
86
87
  normalizeAgentGUIAgents,
87
88
  projectAgentGUIAgentsToInternalTargets
@@ -92,7 +93,7 @@ import {
92
93
  DEFAULT_AGENT_MENTION_FILTER,
93
94
  agentGuiScheduler,
94
95
  buildWorkspaceAgentActivityListViewModel
95
- } from "./chunk-K7WFXVSD.js";
96
+ } from "./chunk-5L5LHAJ3.js";
96
97
  import {
97
98
  AGENT_RICH_TEXT_CARET_ANCHOR,
98
99
  createAgentSessionMarkdownLink,
@@ -103,7 +104,7 @@ import {
103
104
  mentionItemToAttrs,
104
105
  normalizeAgentSessionMentionTitle,
105
106
  parseMentionItemFromHref
106
- } from "./chunk-OEYXSD3O.js";
107
+ } from "./chunk-VMZJPA5L.js";
107
108
  import {
108
109
  AgentInteractivePromptSurface,
109
110
  PLAN_IMPLEMENTATION_ACTION_FEEDBACK,
@@ -113,7 +114,7 @@ import {
113
114
  dispatchAgentPlanPromptAction,
114
115
  latestPlanTurnId,
115
116
  planImplementationPromptFromPlanTurn
116
- } from "./chunk-AIZJHA4Q.js";
117
+ } from "./chunk-C6DI6AJZ.js";
117
118
  import {
118
119
  useEngineSelector
119
120
  } from "./chunk-2RQM7PJN.js";
@@ -122,7 +123,7 @@ import {
122
123
  ZoomableImage,
123
124
  normalizeAgentApprovalPurpose,
124
125
  resolveWorkspaceLinkAction
125
- } from "./chunk-U4CVBCHD.js";
126
+ } from "./chunk-RMTPZVKO.js";
126
127
  import {
127
128
  AgentTargetPresentationProvider,
128
129
  cn,
@@ -140,7 +141,7 @@ import {
140
141
  useAgentHostApi,
141
142
  useOptionalAgentActivityRuntime,
142
143
  useOptionalAgentHostApi
143
- } from "./chunk-E74BMFHI.js";
144
+ } from "./chunk-JGPI7CC6.js";
144
145
  import {
145
146
  MANAGED_AGENT_ICON_FALLBACK_URL,
146
147
  MANAGED_AGENT_ICON_URLS,
@@ -154,7 +155,7 @@ import {
154
155
  AgentGuiI18nProvider,
155
156
  translate,
156
157
  useTranslation
157
- } from "./chunk-25BPR75P.js";
158
+ } from "./chunk-FGWORVFI.js";
158
159
  import {
159
160
  migratedAgentGUIProviderIdentityCatalog,
160
161
  resolveAgentGUIProviderCatalogIdentity,
@@ -10409,6 +10410,10 @@ function useAgentGUIComposerPresentation(input) {
10409
10410
  selectedPermissionModeValue,
10410
10411
  permissionConfig,
10411
10412
  selectedProjectPath: input.activeConversationId !== null ? input.activeConversation?.cwd ?? null : input.selectedProjectPath,
10413
+ selectedProjectSectionKey: input.activeConversationId !== null ? input.activeConversation?.railSectionKey ?? null : resolveSelectedProjectSectionKey(
10414
+ input.selectedProjectPath,
10415
+ input.userProjects
10416
+ ),
10412
10417
  projectLocked: input.activeConversationId !== null,
10413
10418
  projectPathIsRemote: input.agentActivityRuntime.projectPathIsRemote,
10414
10419
  collapseModelOptionsToLatest: input.providerComposerOptions?.behavior.collapseModelOptionsToLatest === true,
@@ -10426,6 +10431,7 @@ function useAgentGUIComposerPresentation(input) {
10426
10431
  draftSettings,
10427
10432
  draftSpeed,
10428
10433
  input.activeConversation?.cwd,
10434
+ input.activeConversation?.railSectionKey,
10429
10435
  input.activeConversationId,
10430
10436
  input.agentActivityRuntime.projectPathIsRemote,
10431
10437
  input.composerSupport,
@@ -10433,6 +10439,7 @@ function useAgentGUIComposerPresentation(input) {
10433
10439
  input.composerTargetProvider,
10434
10440
  input.providerComposerOptions,
10435
10441
  input.selectedProjectPath,
10442
+ input.userProjects,
10436
10443
  presentedReasoningEffort,
10437
10444
  sessionSettings
10438
10445
  ]);
@@ -10445,6 +10452,13 @@ function useAgentGUIComposerPresentation(input) {
10445
10452
  stableComposerSettings: useStableComposerSettingsVM(composerSettings)
10446
10453
  };
10447
10454
  }
10455
+ function resolveSelectedProjectSectionKey(selectedProjectPath, userProjects) {
10456
+ const projectPath = selectedProjectPath?.trim() ?? "";
10457
+ if (!projectPath) {
10458
+ return "conversations";
10459
+ }
10460
+ return userProjects.find((project) => project.path.trim() === projectPath)?.sectionKey?.trim() || null;
10461
+ }
10448
10462
 
10449
10463
  // agent-gui/agentGuiNode/controller/useAgentGUIControllerActions.ts
10450
10464
  import { useMemo as useMemo10 } from "react";
@@ -17919,6 +17933,7 @@ function useComposerMentionActions(input) {
17919
17933
  workspaceId,
17920
17934
  currentUserId,
17921
17935
  selectedProjectPath,
17936
+ selectedProjectSectionKey,
17922
17937
  draftContent,
17923
17938
  fileMentionSuggestion,
17924
17939
  setFileMentionSuggestion,
@@ -18002,6 +18017,7 @@ function useComposerMentionActions(input) {
18002
18017
  highlightedKey,
18003
18018
  categoryCycleOrder: mentionSearchState.mode === "browse" ? mentionSearchState.categories : AGENT_MENTION_FILTER_TAB_ORDER,
18004
18019
  getItemKey: agentMentionItemKey,
18020
+ isItemDisabled: isAgentMentionItemDisabled,
18005
18021
  callbacks: {
18006
18022
  onHighlightChange: (key) => {
18007
18023
  setShouldCenterMentionHighlight(true);
@@ -18157,10 +18173,11 @@ function useComposerMentionActions(input) {
18157
18173
  workspaceId,
18158
18174
  currentUserId,
18159
18175
  query: state.query,
18176
+ sectionKey: selectedProjectSectionKey || null,
18160
18177
  sessionCwd: selectedProjectPath || null
18161
18178
  });
18162
18179
  },
18163
- [currentUserId, selectedProjectPath, workspaceId]
18180
+ [currentUserId, selectedProjectPath, selectedProjectSectionKey, workspaceId]
18164
18181
  );
18165
18182
  useEffect19(() => {
18166
18183
  if (!showFileMentionPalette && shouldCenterMentionHighlight) {
@@ -18866,6 +18883,7 @@ function useComposerPresentation(input) {
18866
18883
  disabledReason,
18867
18884
  placeholder,
18868
18885
  selectedProjectPath,
18886
+ selectedProjectSectionKey,
18869
18887
  previousSelectedProjectPathRef,
18870
18888
  setIsSelectedProjectMissing,
18871
18889
  fileMentionSuggestion,
@@ -18987,9 +19005,16 @@ function useComposerPresentation(input) {
18987
19005
  workspaceId,
18988
19006
  currentUserId,
18989
19007
  query: fileMentionSuggestion.query,
19008
+ sectionKey: selectedProjectSectionKey || null,
18990
19009
  sessionCwd: selectedProjectPath || null
18991
19010
  });
18992
- }, [currentUserId, fileMentionSuggestion, selectedProjectPath, workspaceId]);
19011
+ }, [
19012
+ currentUserId,
19013
+ fileMentionSuggestion,
19014
+ selectedProjectPath,
19015
+ selectedProjectSectionKey,
19016
+ workspaceId
19017
+ ]);
18993
19018
  useEffect22(() => {
18994
19019
  setDismissedPromptRequestId(null);
18995
19020
  }, [activePromptRequestId]);
@@ -24253,6 +24278,7 @@ function AgentComposer(props) {
24253
24278
  slashStatusAgentSessionId
24254
24279
  );
24255
24280
  const selectedProjectPath = composerSettings.selectedProjectPath?.trim() ?? "";
24281
+ const selectedProjectSectionKey = composerSettings.selectedProjectSectionKey?.trim() ?? "";
24256
24282
  const previousSelectedProjectPathRef = useRef31(selectedProjectPath);
24257
24283
  const [mentionSearchState, setMentionSearchState] = useState20({
24258
24284
  status: "idle",
@@ -24341,7 +24367,8 @@ function AgentComposer(props) {
24341
24367
  state: mentionSearchState,
24342
24368
  currentKey: null,
24343
24369
  preferredKey,
24344
- getItemKey: agentMentionItemKey
24370
+ getItemKey: agentMentionItemKey,
24371
+ isItemDisabled: isAgentMentionItemDisabled
24345
24372
  });
24346
24373
  autoMentionHighlightedKeyRef.current = nextKey;
24347
24374
  setMentionHighlightedKey(nextKey);
@@ -24352,7 +24379,8 @@ function AgentComposer(props) {
24352
24379
  const nextKey = repairMentionPaletteHighlight({
24353
24380
  state: mentionSearchState,
24354
24381
  currentKey: current,
24355
- getItemKey: agentMentionItemKey
24382
+ getItemKey: agentMentionItemKey,
24383
+ isItemDisabled: isAgentMentionItemDisabled
24356
24384
  });
24357
24385
  if (nextKey === current && current !== autoMentionHighlightedKeyRef.current) {
24358
24386
  return current;
@@ -24469,6 +24497,7 @@ function AgentComposer(props) {
24469
24497
  workspaceId,
24470
24498
  currentUserId,
24471
24499
  selectedProjectPath,
24500
+ selectedProjectSectionKey,
24472
24501
  draftContent,
24473
24502
  fileMentionSuggestion,
24474
24503
  setFileMentionSuggestion,
@@ -24607,6 +24636,7 @@ function AgentComposer(props) {
24607
24636
  disabledReason,
24608
24637
  placeholder,
24609
24638
  selectedProjectPath,
24639
+ selectedProjectSectionKey,
24610
24640
  previousSelectedProjectPathRef,
24611
24641
  setIsSelectedProjectMissing,
24612
24642
  fileMentionSuggestion,
@@ -35323,4 +35353,4 @@ export {
35323
35353
  resolveAgentGUIAgentTarget,
35324
35354
  AgentGUI
35325
35355
  };
35326
- //# sourceMappingURL=chunk-YRMT6UYB.js.map
35356
+ //# sourceMappingURL=chunk-7H4T7OZ4.js.map