@tutti-os/agent-gui 0.0.111 → 0.0.113

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-DXwtHJnv.d.ts → AgentGUI-D4jgPDg0.d.ts} +6 -3
  2. package/dist/{AgentRichTextReadonly-VKMTXBKA.js → AgentRichTextReadonly-KNPDB5ZJ.js} +5 -5
  3. package/dist/agent-conversation/index.d.ts +3 -3
  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.d.ts +1 -1
  8. package/dist/agent-message-center/index.js +6 -6
  9. package/dist/{agentConversationVM-D3Dn2LqN.d.ts → agentConversationVM-BD0-gg6C.d.ts} +1 -0
  10. package/dist/{agentGuiNodeTypes-CR_l4HhU.d.ts → agentGuiNodeTypes-BebhwDeE.d.ts} +3 -1
  11. package/dist/app/renderer/agentactivity.css +1 -0
  12. package/dist/{chunk-QMU5KFPY.js → chunk-455YDWMS.js} +2 -2
  13. package/dist/{chunk-HGHNKOR2.js → chunk-BYE5CKEU.js} +3 -3
  14. package/dist/{chunk-HLSEVZCW.js → chunk-CTSKSYMM.js} +2 -2
  15. package/dist/{chunk-3QIE72RQ.js → chunk-CY45OZEY.js} +2 -2
  16. package/dist/{chunk-7D7L3JGA.js → chunk-DIFAX3KB.js} +4 -4
  17. package/dist/{chunk-HHQTW2VC.js → chunk-EM4RD5FQ.js} +687 -276
  18. package/dist/chunk-EM4RD5FQ.js.map +1 -0
  19. package/dist/{chunk-Z662JCRH.js → chunk-FBPZXKQC.js} +2 -2
  20. package/dist/{chunk-5O3KW33M.js → chunk-HFU3FYXP.js} +4 -4
  21. package/dist/{chunk-CVPI23GJ.js → chunk-PEOMUPWF.js} +40 -14
  22. package/dist/chunk-PEOMUPWF.js.map +1 -0
  23. package/dist/{chunk-RX6JAGC6.js → chunk-RATBQN2V.js} +2 -2
  24. package/dist/chunk-RATBQN2V.js.map +1 -0
  25. package/dist/{chunk-74ZOQONQ.js → chunk-SFYWL6FT.js} +2 -2
  26. package/dist/{chunk-2JPJLBER.js → chunk-W4KHK5HK.js} +19 -3
  27. package/dist/chunk-W4KHK5HK.js.map +1 -0
  28. package/dist/{chunk-HWMDMZPV.js → chunk-WA5LSG5S.js} +29 -5
  29. package/dist/chunk-WA5LSG5S.js.map +1 -0
  30. package/dist/{chunk-WGUEDMSP.js → chunk-YKQAOIF2.js} +3 -3
  31. package/dist/context-mention-palette/index.js +7 -7
  32. package/dist/i18n/index.d.ts +18 -2
  33. package/dist/i18n/index.js +2 -2
  34. package/dist/index.d.ts +5 -5
  35. package/dist/index.js +14 -14
  36. package/dist/mention-search.d.ts +12 -0
  37. package/dist/mention-search.js +5 -5
  38. package/dist/workbench/contribution.js +3 -3
  39. package/dist/workbench/index.js +3 -3
  40. package/dist/workbench/sessionTitle.js +2 -2
  41. package/package.json +14 -14
  42. package/dist/chunk-2JPJLBER.js.map +0 -1
  43. package/dist/chunk-CVPI23GJ.js.map +0 -1
  44. package/dist/chunk-HHQTW2VC.js.map +0 -1
  45. package/dist/chunk-HWMDMZPV.js.map +0 -1
  46. package/dist/chunk-RX6JAGC6.js.map +0 -1
  47. /package/dist/{AgentRichTextReadonly-VKMTXBKA.js.map → AgentRichTextReadonly-KNPDB5ZJ.js.map} +0 -0
  48. /package/dist/{chunk-QMU5KFPY.js.map → chunk-455YDWMS.js.map} +0 -0
  49. /package/dist/{chunk-HGHNKOR2.js.map → chunk-BYE5CKEU.js.map} +0 -0
  50. /package/dist/{chunk-HLSEVZCW.js.map → chunk-CTSKSYMM.js.map} +0 -0
  51. /package/dist/{chunk-3QIE72RQ.js.map → chunk-CY45OZEY.js.map} +0 -0
  52. /package/dist/{chunk-7D7L3JGA.js.map → chunk-DIFAX3KB.js.map} +0 -0
  53. /package/dist/{chunk-Z662JCRH.js.map → chunk-FBPZXKQC.js.map} +0 -0
  54. /package/dist/{chunk-5O3KW33M.js.map → chunk-HFU3FYXP.js.map} +0 -0
  55. /package/dist/{chunk-74ZOQONQ.js.map → chunk-SFYWL6FT.js.map} +0 -0
  56. /package/dist/{chunk-WGUEDMSP.js.map → chunk-YKQAOIF2.js.map} +0 -0
@@ -2,17 +2,17 @@ import {
2
2
  AgentGUIConversation_styles_default,
3
3
  MessageSquareMoreIcon,
4
4
  extractAgentMcpToolTarget
5
- } from "./chunk-WGUEDMSP.js";
5
+ } from "./chunk-YKQAOIF2.js";
6
6
  import {
7
7
  getOptionalAgentHostApi,
8
8
  useOptionalAgentHostApi
9
- } from "./chunk-RX6JAGC6.js";
9
+ } from "./chunk-RATBQN2V.js";
10
10
  import {
11
11
  fileChangePathsFromChanges
12
12
  } from "./chunk-F5UR6EJG.js";
13
13
  import {
14
14
  translate
15
- } from "./chunk-HLSEVZCW.js";
15
+ } from "./chunk-CTSKSYMM.js";
16
16
 
17
17
  // shared/agentConversation/planImplementationPresentation.ts
18
18
  var PLAN_IMPLEMENTATION_PROMPT = "Implement the plan.";
@@ -1471,4 +1471,4 @@ export {
1471
1471
  isPromptRequestIdTitle,
1472
1472
  AgentInteractivePromptSurface
1473
1473
  };
1474
- //# sourceMappingURL=chunk-5O3KW33M.js.map
1474
+ //# sourceMappingURL=chunk-HFU3FYXP.js.map
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentGuiSessionProviderFlatIconUrl,
13
13
  resolveNextAgentGUIConversationRailWidthPx,
14
14
  shouldAutoCollapseAgentGUIConversationRail
15
- } from "./chunk-HGHNKOR2.js";
15
+ } from "./chunk-BYE5CKEU.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-3QIE72RQ.js";
32
+ } from "./chunk-CY45OZEY.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-HHQTW2VC.js";
67
+ } from "./chunk-EM4RD5FQ.js";
68
68
  import {
69
69
  agentRichTextContentToPromptText,
70
70
  createAgentRichTextInputExtensions,
@@ -74,7 +74,7 @@ import {
74
74
  plainTextToAgentRichTextInlineContent,
75
75
  skillDescriptionForDisplay,
76
76
  skillTriggerForPrefix
77
- } from "./chunk-QMU5KFPY.js";
77
+ } from "./chunk-455YDWMS.js";
78
78
  import {
79
79
  openAgentEnvPanel
80
80
  } from "./chunk-VMQNG2KI.js";
@@ -82,7 +82,7 @@ import {
82
82
  AgentFileMentionPalette,
83
83
  agentMentionItemKey,
84
84
  isAgentMentionItemDisabled
85
- } from "./chunk-7D7L3JGA.js";
85
+ } from "./chunk-DIFAX3KB.js";
86
86
  import {
87
87
  normalizeAgentGUIAgents,
88
88
  projectAgentGUIAgentsToInternalTargets
@@ -93,7 +93,7 @@ import {
93
93
  DEFAULT_AGENT_MENTION_FILTER,
94
94
  agentGuiScheduler,
95
95
  buildWorkspaceAgentActivityListViewModel
96
- } from "./chunk-HWMDMZPV.js";
96
+ } from "./chunk-WA5LSG5S.js";
97
97
  import {
98
98
  AGENT_RICH_TEXT_CARET_ANCHOR,
99
99
  createAgentSessionMarkdownLink,
@@ -104,7 +104,7 @@ import {
104
104
  mentionItemToAttrs,
105
105
  normalizeAgentSessionMentionTitle,
106
106
  parseMentionItemFromHref
107
- } from "./chunk-74ZOQONQ.js";
107
+ } from "./chunk-SFYWL6FT.js";
108
108
  import {
109
109
  AgentInteractivePromptSurface,
110
110
  PLAN_IMPLEMENTATION_ACTION_FEEDBACK,
@@ -114,7 +114,7 @@ import {
114
114
  dispatchAgentPlanPromptAction,
115
115
  latestPlanTurnId,
116
116
  planImplementationPromptFromPlanTurn
117
- } from "./chunk-5O3KW33M.js";
117
+ } from "./chunk-HFU3FYXP.js";
118
118
  import {
119
119
  useEngineSelector
120
120
  } from "./chunk-2RQM7PJN.js";
@@ -123,7 +123,7 @@ import {
123
123
  ZoomableImage,
124
124
  normalizeAgentApprovalPurpose,
125
125
  resolveWorkspaceLinkAction
126
- } from "./chunk-WGUEDMSP.js";
126
+ } from "./chunk-YKQAOIF2.js";
127
127
  import {
128
128
  AgentTargetPresentationProvider,
129
129
  cn,
@@ -141,7 +141,7 @@ import {
141
141
  useAgentHostApi,
142
142
  useOptionalAgentActivityRuntime,
143
143
  useOptionalAgentHostApi
144
- } from "./chunk-RX6JAGC6.js";
144
+ } from "./chunk-RATBQN2V.js";
145
145
  import {
146
146
  MANAGED_AGENT_ICON_FALLBACK_URL,
147
147
  MANAGED_AGENT_ICON_URLS,
@@ -155,7 +155,7 @@ import {
155
155
  AgentGuiI18nProvider,
156
156
  translate,
157
157
  useTranslation
158
- } from "./chunk-HLSEVZCW.js";
158
+ } from "./chunk-CTSKSYMM.js";
159
159
  import {
160
160
  migratedAgentGUIProviderIdentityCatalog,
161
161
  resolveAgentGUIProviderCatalogIdentity,
@@ -10410,6 +10410,10 @@ function useAgentGUIComposerPresentation(input) {
10410
10410
  selectedPermissionModeValue,
10411
10411
  permissionConfig,
10412
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
+ ),
10413
10417
  projectLocked: input.activeConversationId !== null,
10414
10418
  projectPathIsRemote: input.agentActivityRuntime.projectPathIsRemote,
10415
10419
  collapseModelOptionsToLatest: input.providerComposerOptions?.behavior.collapseModelOptionsToLatest === true,
@@ -10427,6 +10431,7 @@ function useAgentGUIComposerPresentation(input) {
10427
10431
  draftSettings,
10428
10432
  draftSpeed,
10429
10433
  input.activeConversation?.cwd,
10434
+ input.activeConversation?.railSectionKey,
10430
10435
  input.activeConversationId,
10431
10436
  input.agentActivityRuntime.projectPathIsRemote,
10432
10437
  input.composerSupport,
@@ -10434,6 +10439,7 @@ function useAgentGUIComposerPresentation(input) {
10434
10439
  input.composerTargetProvider,
10435
10440
  input.providerComposerOptions,
10436
10441
  input.selectedProjectPath,
10442
+ input.userProjects,
10437
10443
  presentedReasoningEffort,
10438
10444
  sessionSettings
10439
10445
  ]);
@@ -10446,6 +10452,13 @@ function useAgentGUIComposerPresentation(input) {
10446
10452
  stableComposerSettings: useStableComposerSettingsVM(composerSettings)
10447
10453
  };
10448
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
+ }
10449
10462
 
10450
10463
  // agent-gui/agentGuiNode/controller/useAgentGUIControllerActions.ts
10451
10464
  import { useMemo as useMemo10 } from "react";
@@ -17920,6 +17933,7 @@ function useComposerMentionActions(input) {
17920
17933
  workspaceId,
17921
17934
  currentUserId,
17922
17935
  selectedProjectPath,
17936
+ selectedProjectSectionKey,
17923
17937
  draftContent,
17924
17938
  fileMentionSuggestion,
17925
17939
  setFileMentionSuggestion,
@@ -18159,10 +18173,11 @@ function useComposerMentionActions(input) {
18159
18173
  workspaceId,
18160
18174
  currentUserId,
18161
18175
  query: state.query,
18176
+ sectionKey: selectedProjectSectionKey || null,
18162
18177
  sessionCwd: selectedProjectPath || null
18163
18178
  });
18164
18179
  },
18165
- [currentUserId, selectedProjectPath, workspaceId]
18180
+ [currentUserId, selectedProjectPath, selectedProjectSectionKey, workspaceId]
18166
18181
  );
18167
18182
  useEffect19(() => {
18168
18183
  if (!showFileMentionPalette && shouldCenterMentionHighlight) {
@@ -18868,6 +18883,7 @@ function useComposerPresentation(input) {
18868
18883
  disabledReason,
18869
18884
  placeholder,
18870
18885
  selectedProjectPath,
18886
+ selectedProjectSectionKey,
18871
18887
  previousSelectedProjectPathRef,
18872
18888
  setIsSelectedProjectMissing,
18873
18889
  fileMentionSuggestion,
@@ -18989,9 +19005,16 @@ function useComposerPresentation(input) {
18989
19005
  workspaceId,
18990
19006
  currentUserId,
18991
19007
  query: fileMentionSuggestion.query,
19008
+ sectionKey: selectedProjectSectionKey || null,
18992
19009
  sessionCwd: selectedProjectPath || null
18993
19010
  });
18994
- }, [currentUserId, fileMentionSuggestion, selectedProjectPath, workspaceId]);
19011
+ }, [
19012
+ currentUserId,
19013
+ fileMentionSuggestion,
19014
+ selectedProjectPath,
19015
+ selectedProjectSectionKey,
19016
+ workspaceId
19017
+ ]);
18995
19018
  useEffect22(() => {
18996
19019
  setDismissedPromptRequestId(null);
18997
19020
  }, [activePromptRequestId]);
@@ -24255,6 +24278,7 @@ function AgentComposer(props) {
24255
24278
  slashStatusAgentSessionId
24256
24279
  );
24257
24280
  const selectedProjectPath = composerSettings.selectedProjectPath?.trim() ?? "";
24281
+ const selectedProjectSectionKey = composerSettings.selectedProjectSectionKey?.trim() ?? "";
24258
24282
  const previousSelectedProjectPathRef = useRef31(selectedProjectPath);
24259
24283
  const [mentionSearchState, setMentionSearchState] = useState20({
24260
24284
  status: "idle",
@@ -24473,6 +24497,7 @@ function AgentComposer(props) {
24473
24497
  workspaceId,
24474
24498
  currentUserId,
24475
24499
  selectedProjectPath,
24500
+ selectedProjectSectionKey,
24476
24501
  draftContent,
24477
24502
  fileMentionSuggestion,
24478
24503
  setFileMentionSuggestion,
@@ -24611,6 +24636,7 @@ function AgentComposer(props) {
24611
24636
  disabledReason,
24612
24637
  placeholder,
24613
24638
  selectedProjectPath,
24639
+ selectedProjectSectionKey,
24614
24640
  previousSelectedProjectPathRef,
24615
24641
  setIsSelectedProjectMissing,
24616
24642
  fileMentionSuggestion,
@@ -35327,4 +35353,4 @@ export {
35327
35353
  resolveAgentGUIAgentTarget,
35328
35354
  AgentGUI
35329
35355
  };
35330
- //# sourceMappingURL=chunk-CVPI23GJ.js.map
35356
+ //# sourceMappingURL=chunk-PEOMUPWF.js.map