@tutti-os/agent-gui 0.0.172 → 0.0.174

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 (32) hide show
  1. package/dist/agent-conversation/index.js +3 -3
  2. package/dist/agent-gui.d.ts +1 -0
  3. package/dist/agent-gui.js +8 -8
  4. package/dist/agent-message-center/index.js +3 -3
  5. package/dist/{chunk-ADZL6MLR.js → chunk-5VUHTRRS.js} +3 -3
  6. package/dist/{chunk-P5OTILPN.js → chunk-I27O33CO.js} +3 -3
  7. package/dist/{chunk-7VPICMI3.js → chunk-LL5MITN6.js} +57 -10
  8. package/dist/chunk-LL5MITN6.js.map +1 -0
  9. package/dist/{chunk-ARJ63FKZ.js → chunk-NNBJT5DD.js} +2 -2
  10. package/dist/{chunk-3QPFTVLN.js → chunk-QZSSUKCK.js} +9 -9
  11. package/dist/{chunk-3QPFTVLN.js.map → chunk-QZSSUKCK.js.map} +1 -1
  12. package/dist/{chunk-P44BIVG6.js → chunk-UXSYGLY3.js} +2 -2
  13. package/dist/{chunk-7E2JZRSI.js → chunk-V7V7PU7Z.js} +1 -1
  14. package/dist/chunk-V7V7PU7Z.js.map +1 -0
  15. package/dist/{chunk-EJM3JYAD.js → chunk-ZPZD5XTH.js} +2 -2
  16. package/dist/context-mention-palette/index.js +3 -3
  17. package/dist/{contribution-DfA5SxBL.d.ts → contribution-C0MnLVKF.d.ts} +2 -0
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +8 -8
  20. package/dist/mention-search.js +2 -2
  21. package/dist/workbench/contribution.d.ts +1 -1
  22. package/dist/workbench/contribution.js +1 -1
  23. package/dist/workbench/index.d.ts +2 -2
  24. package/dist/workbench/index.js +1 -1
  25. package/package.json +15 -15
  26. package/dist/chunk-7E2JZRSI.js.map +0 -1
  27. package/dist/chunk-7VPICMI3.js.map +0 -1
  28. /package/dist/{chunk-ADZL6MLR.js.map → chunk-5VUHTRRS.js.map} +0 -0
  29. /package/dist/{chunk-P5OTILPN.js.map → chunk-I27O33CO.js.map} +0 -0
  30. /package/dist/{chunk-ARJ63FKZ.js.map → chunk-NNBJT5DD.js.map} +0 -0
  31. /package/dist/{chunk-P44BIVG6.js.map → chunk-UXSYGLY3.js.map} +0 -0
  32. /package/dist/{chunk-EJM3JYAD.js.map → chunk-ZPZD5XTH.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  reconcileProjectedAgentConversationVM,
8
8
  serializeAgentConversationForClipboard,
9
9
  useProjectedAgentConversation
10
- } from "../chunk-P5OTILPN.js";
10
+ } from "../chunk-I27O33CO.js";
11
11
  import "../chunk-UPX5IC2U.js";
12
12
  import "../chunk-THBCAUBR.js";
13
13
  import "../chunk-XJ34OIEQ.js";
@@ -15,9 +15,9 @@ import "../chunk-JDVP33S5.js";
15
15
  import "../chunk-K57GJTVC.js";
16
16
  import "../chunk-5QPOMKMQ.js";
17
17
  import "../chunk-FGLQZ6I4.js";
18
- import "../chunk-P44BIVG6.js";
18
+ import "../chunk-UXSYGLY3.js";
19
19
  import "../chunk-ZVYUTXQJ.js";
20
- import "../chunk-7E2JZRSI.js";
20
+ import "../chunk-V7V7PU7Z.js";
21
21
  import "../chunk-F5UR6EJG.js";
22
22
  import "../chunk-ZWLWT3TZ.js";
23
23
  import {
@@ -271,6 +271,7 @@ interface AgentActivityRuntimeDeleteSessionsBatchInput {
271
271
  workspaceId: string;
272
272
  }
273
273
  interface AgentActivityRuntimeDeleteSessionsBatchResult {
274
+ cleanupFailedSessionIds: string[];
274
275
  removedMessages: number;
275
276
  removedSessionIds: string[];
276
277
  removedSessions: number;
package/dist/agent-gui.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  AgentGUI
3
- } from "./chunk-7VPICMI3.js";
3
+ } from "./chunk-LL5MITN6.js";
4
4
  import "./chunk-A4WCTHWS.js";
5
- import "./chunk-3QPFTVLN.js";
5
+ import "./chunk-QZSSUKCK.js";
6
6
  import "./chunk-6II57C72.js";
7
7
  import "./chunk-YSA4MXR5.js";
8
8
  import "./chunk-MHOYBRCY.js";
9
9
  import "./chunk-SZVHT57M.js";
10
10
  import "./chunk-5UTK6FDH.js";
11
- import "./chunk-P5OTILPN.js";
11
+ import "./chunk-I27O33CO.js";
12
12
  import "./chunk-UPX5IC2U.js";
13
13
  import "./chunk-THBCAUBR.js";
14
14
  import "./chunk-UP3ZDYTN.js";
15
15
  import "./chunk-GUFEHWUX.js";
16
- import "./chunk-EJM3JYAD.js";
16
+ import "./chunk-ZPZD5XTH.js";
17
17
  import "./chunk-CX6XXG6R.js";
18
18
  import "./chunk-PQPNDL4A.js";
19
- import "./chunk-ARJ63FKZ.js";
19
+ import "./chunk-NNBJT5DD.js";
20
20
  import "./chunk-VMPA46ET.js";
21
21
  import "./chunk-XJ34OIEQ.js";
22
22
  import "./chunk-JDVP33S5.js";
@@ -24,13 +24,13 @@ import "./chunk-K57GJTVC.js";
24
24
  import "./chunk-5QPOMKMQ.js";
25
25
  import "./chunk-RMQREVJY.js";
26
26
  import "./chunk-FGLQZ6I4.js";
27
- import "./chunk-ADZL6MLR.js";
27
+ import "./chunk-5VUHTRRS.js";
28
28
  import "./chunk-EVQ4JY3N.js";
29
- import "./chunk-P44BIVG6.js";
29
+ import "./chunk-UXSYGLY3.js";
30
30
  import "./chunk-ZVYUTXQJ.js";
31
31
  import "./chunk-OKBVGNH7.js";
32
32
  import "./chunk-YMXYBG7U.js";
33
- import "./chunk-7E2JZRSI.js";
33
+ import "./chunk-V7V7PU7Z.js";
34
34
  import "./chunk-F5UR6EJG.js";
35
35
  import "./chunk-ZWLWT3TZ.js";
36
36
  import "./chunk-CAZ7NYUE.js";
@@ -8,7 +8,7 @@ import {
8
8
  isPromptRequestIdTitle,
9
9
  latestPlanTurnId,
10
10
  planImplementationPromptFromPlanTurn
11
- } from "../chunk-ADZL6MLR.js";
11
+ } from "../chunk-5VUHTRRS.js";
12
12
  import {
13
13
  useEngineSelector
14
14
  } from "../chunk-EVQ4JY3N.js";
@@ -21,7 +21,7 @@ import {
21
21
  isExitPlanSwitchModeInput,
22
22
  normalizeAgentApprovalPurpose,
23
23
  normalizeAskUserQuestions
24
- } from "../chunk-P44BIVG6.js";
24
+ } from "../chunk-UXSYGLY3.js";
25
25
  import {
26
26
  cn
27
27
  } from "../chunk-ZVYUTXQJ.js";
@@ -34,7 +34,7 @@ import {
34
34
  } from "../chunk-YMXYBG7U.js";
35
35
  import {
36
36
  workspaceAgentProviderLabel
37
- } from "../chunk-7E2JZRSI.js";
37
+ } from "../chunk-V7V7PU7Z.js";
38
38
  import "../chunk-F5UR6EJG.js";
39
39
  import {
40
40
  managedAgentRoundedIconUrl
@@ -2,11 +2,11 @@ import {
2
2
  AgentGUIConversation_styles_default,
3
3
  MessageSquareMoreIcon,
4
4
  extractAgentMcpToolTarget
5
- } from "./chunk-P44BIVG6.js";
5
+ } from "./chunk-UXSYGLY3.js";
6
6
  import {
7
7
  getOptionalAgentHostApi,
8
8
  useOptionalAgentHostApi
9
- } from "./chunk-7E2JZRSI.js";
9
+ } from "./chunk-V7V7PU7Z.js";
10
10
  import {
11
11
  fileChangePathsFromChanges
12
12
  } from "./chunk-F5UR6EJG.js";
@@ -1471,4 +1471,4 @@ export {
1471
1471
  isPromptRequestIdTitle,
1472
1472
  AgentInteractivePromptSurface
1473
1473
  };
1474
- //# sourceMappingURL=chunk-ADZL6MLR.js.map
1474
+ //# sourceMappingURL=chunk-5VUHTRRS.js.map
@@ -47,7 +47,7 @@ import {
47
47
  resolveWorkspaceFileLinkAction,
48
48
  resolveWorkspaceFilePathCandidate,
49
49
  resolveWorkspaceLinkAction
50
- } from "./chunk-P44BIVG6.js";
50
+ } from "./chunk-UXSYGLY3.js";
51
51
  import {
52
52
  cn
53
53
  } from "./chunk-ZVYUTXQJ.js";
@@ -55,7 +55,7 @@ import {
55
55
  useOptionalAgentActivityRuntime,
56
56
  useOptionalAgentHostApi,
57
57
  workspaceAgentProviderLabel
58
- } from "./chunk-7E2JZRSI.js";
58
+ } from "./chunk-V7V7PU7Z.js";
59
59
  import {
60
60
  fileChangeCountFromChanges,
61
61
  fileChangeEntriesFromChanges,
@@ -14917,4 +14917,4 @@ export {
14917
14917
  AgentConversationFlow,
14918
14918
  useProjectedAgentConversation
14919
14919
  };
14920
- //# sourceMappingURL=chunk-P5OTILPN.js.map
14920
+ //# sourceMappingURL=chunk-I27O33CO.js.map
@@ -12,7 +12,7 @@ import {
12
12
  resolveAgentGuiSessionProviderFlatIconUrl,
13
13
  resolveNextAgentGUIConversationRailWidthPx,
14
14
  shouldAutoCollapseAgentGUIConversationRail
15
- } from "./chunk-3QPFTVLN.js";
15
+ } from "./chunk-QZSSUKCK.js";
16
16
  import {
17
17
  resolveAgentGuiWorkbenchProviderLabel
18
18
  } from "./chunk-SZVHT57M.js";
@@ -65,7 +65,7 @@ import {
65
65
  toLocalShortDateTime,
66
66
  updateAgentComposerDraft,
67
67
  useProjectedAgentConversation
68
- } from "./chunk-P5OTILPN.js";
68
+ } from "./chunk-I27O33CO.js";
69
69
  import {
70
70
  agentRichTextContentToPromptText,
71
71
  createAgentRichTextInputExtensions,
@@ -90,7 +90,7 @@ import {
90
90
  AgentFileMentionPalette,
91
91
  agentMentionItemKey,
92
92
  isAgentMentionItemDisabled
93
- } from "./chunk-EJM3JYAD.js";
93
+ } from "./chunk-ZPZD5XTH.js";
94
94
  import {
95
95
  normalizeAgentGUIAgents,
96
96
  projectAgentGUIAgentsToTargets
@@ -101,7 +101,7 @@ import {
101
101
  DEFAULT_AGENT_MENTION_FILTER,
102
102
  agentGuiScheduler,
103
103
  buildWorkspaceAgentActivityListViewModel
104
- } from "./chunk-ARJ63FKZ.js";
104
+ } from "./chunk-NNBJT5DD.js";
105
105
  import {
106
106
  AGENT_RICH_TEXT_CARET_ANCHOR,
107
107
  agentComposerFileMentionReferences,
@@ -128,7 +128,7 @@ import {
128
128
  dispatchAgentPlanPromptAction,
129
129
  latestPlanTurnId,
130
130
  planImplementationPromptFromPlanTurn
131
- } from "./chunk-ADZL6MLR.js";
131
+ } from "./chunk-5VUHTRRS.js";
132
132
  import {
133
133
  useEngineSelector
134
134
  } from "./chunk-EVQ4JY3N.js";
@@ -138,7 +138,7 @@ import {
138
138
  blobToBase64,
139
139
  normalizeAgentApprovalPurpose,
140
140
  resolveWorkspaceLinkAction
141
- } from "./chunk-P44BIVG6.js";
141
+ } from "./chunk-UXSYGLY3.js";
142
142
  import {
143
143
  AgentTargetPresentationProvider,
144
144
  cn,
@@ -156,7 +156,7 @@ import {
156
156
  useAgentHostApi,
157
157
  useOptionalAgentActivityRuntime,
158
158
  useOptionalAgentHostApi
159
- } from "./chunk-7E2JZRSI.js";
159
+ } from "./chunk-V7V7PU7Z.js";
160
160
  import {
161
161
  MANAGED_AGENT_ICON_FALLBACK_URL,
162
162
  MANAGED_AGENT_ICON_URLS,
@@ -5054,7 +5054,7 @@ function normalizeInteractiveToolName(toolName) {
5054
5054
  function areAgentGUIUserProjectsEqual(left, right) {
5055
5055
  return left.length === right.length && left.every((project, index) => {
5056
5056
  const candidate = right[index];
5057
- return candidate !== void 0 && project.id === candidate.id && project.path === candidate.path && project.label === candidate.label && project.sectionKey === candidate.sectionKey && project.pinnedAtUnixMs === candidate.pinnedAtUnixMs;
5057
+ return candidate !== void 0 && project.id === candidate.id && project.path === candidate.path && project.label === candidate.label && project.sectionKey === candidate.sectionKey && project.pinnedAtUnixMs === candidate.pinnedAtUnixMs && project.createdAtUnixMs === candidate.createdAtUnixMs && project.updatedAtUnixMs === candidate.updatedAtUnixMs && project.lastUsedAtUnixMs === candidate.lastUsedAtUnixMs;
5058
5058
  });
5059
5059
  }
5060
5060
  function upsertAgentGUIUserProject(projects, project) {
@@ -5738,6 +5738,7 @@ function useAgentGUIActivation({
5738
5738
  ...input.cwd !== void 0 ? { cwd: input.cwd } : {},
5739
5739
  expiresAtUnixMs: requestedAtUnixMs + ACTIVATION_EXPIRY_MS,
5740
5740
  ...input.initialTurnExpected !== void 0 ? { initialTurnExpected: input.initialTurnExpected } : {},
5741
+ ...input.railSectionKey?.trim() ? { railSectionKey: input.railSectionKey.trim() } : {},
5741
5742
  ...input.initialDisplayPrompt ? { initialDisplayPrompt: input.initialDisplayPrompt } : {},
5742
5743
  ...input.runtimeContent ? { runtimeContent: input.runtimeContent } : {},
5743
5744
  ...input.submitDiagnostics ? { submitDiagnostics: input.submitDiagnostics } : {},
@@ -6662,6 +6663,7 @@ function useAgentGuiConversationList(engine, query, agentTargets = EMPTY_AGENT_G
6662
6663
  sortTimeUnixMs: activation.requestedAtUnixMs,
6663
6664
  status: "working",
6664
6665
  projectionSource: "pending_activation",
6666
+ railSectionKey: activation.railSectionKey,
6665
6667
  title,
6666
6668
  titleLeadingMentionKind,
6667
6669
  titleFallback,
@@ -8154,6 +8156,37 @@ function useAgentGUIConversationBatchDeletion(input) {
8154
8156
  sessionIds: [...targetIds],
8155
8157
  workspaceId
8156
8158
  }).then((result) => {
8159
+ if (result.cleanupFailedSessionIds.length > 0) {
8160
+ try {
8161
+ void Promise.resolve(
8162
+ agentActivityRuntime.reportDiagnostic?.({
8163
+ details: {
8164
+ cleanupFailedSessionIds: result.cleanupFailedSessionIds
8165
+ },
8166
+ event: "agent.gui.conversation_delete.cleanup_failed",
8167
+ level: "warn",
8168
+ source: "agent-gui",
8169
+ workspaceId
8170
+ })
8171
+ ).catch((error) => {
8172
+ console.error(
8173
+ "[agent-gui-cleanup-diagnostic]",
8174
+ JSON.stringify({
8175
+ error: getAgentGUIErrorMessage(error),
8176
+ workspaceId
8177
+ })
8178
+ );
8179
+ });
8180
+ } catch (error) {
8181
+ console.error(
8182
+ "[agent-gui-cleanup-diagnostic]",
8183
+ JSON.stringify({
8184
+ error: getAgentGUIErrorMessage(error),
8185
+ workspaceId
8186
+ })
8187
+ );
8188
+ }
8189
+ }
8157
8190
  const removedIds = /* @__PURE__ */ new Set([
8158
8191
  ...targetIds,
8159
8192
  ...result.removedSessionIds
@@ -8829,6 +8862,7 @@ function useAgentGUINewConversationActivation(input) {
8829
8862
  isCreatingConversationRef,
8830
8863
  onDataChangeRef,
8831
8864
  selectedProjectPathRef,
8865
+ userProjectsRef,
8832
8866
  draftByScopeKeyRef,
8833
8867
  submittedDraftSnapshotsRef,
8834
8868
  draftSettingsBySessionIdRef,
@@ -8884,6 +8918,11 @@ function useAgentGUINewConversationActivation(input) {
8884
8918
  }
8885
8919
  );
8886
8920
  const selectedProjectPath = selectedProjectPathRef.current;
8921
+ const selectedProject = resolveAgentGUIConversationProject(
8922
+ selectedProjectPath,
8923
+ userProjectsRef.current
8924
+ );
8925
+ const railSectionKey = !selectedProjectPath?.trim() ? "conversations" : selectedProject?.sectionKey?.trim() || void 0;
8887
8926
  const initialNodeSettings = readNodeDefaultDraftSettings({
8888
8927
  data: targetData.data,
8889
8928
  defaultReasoningEffort,
@@ -8927,6 +8966,7 @@ function useAgentGUINewConversationActivation(input) {
8927
8966
  agentTargetId,
8928
8967
  clientSubmitId: submitTrace.clientSubmitId,
8929
8968
  cwd: selectedProjectPath ?? "",
8969
+ ...railSectionKey ? { railSectionKey } : {},
8930
8970
  initialContent: normalizedInitialContent,
8931
8971
  ...initialTurnExpected !== void 0 ? { initialTurnExpected } : {},
8932
8972
  initialDisplayPrompt,
@@ -25505,6 +25545,7 @@ function AgentQuickPromptRow({
25505
25545
  "aria-label": labels.dragHandle(prompt.title),
25506
25546
  className: "cursor-grab text-[var(--text-tertiary)] hover:text-[var(--text-primary)] focus-visible:text-[var(--text-primary)] disabled:cursor-not-allowed disabled:text-[var(--text-disabled)] disabled:opacity-100",
25507
25547
  size: "md",
25548
+ title: "",
25508
25549
  children: /* @__PURE__ */ jsx39(GripVerticalIcon, {})
25509
25550
  }
25510
25551
  ) }) }),
@@ -25540,6 +25581,7 @@ function AgentQuickPromptRow({
25540
25581
  className: `mt-1.5 ${actionRevealClass}`,
25541
25582
  disabled: pending,
25542
25583
  size: "md",
25584
+ title: "",
25543
25585
  children: /* @__PURE__ */ jsx39(EditIcon, {})
25544
25586
  }
25545
25587
  ) }),
@@ -25554,6 +25596,7 @@ function AgentQuickPromptRow({
25554
25596
  className: `mt-1.5 ${actionRevealClass}`,
25555
25597
  disabled: pending,
25556
25598
  size: "md",
25599
+ title: "",
25557
25600
  children: /* @__PURE__ */ jsx39(DeleteIcon, {})
25558
25601
  }
25559
25602
  ) }),
@@ -32352,6 +32395,7 @@ var CreateAction = memo6(function CreateAction2({
32352
32395
  className: AgentGUINode_styles_default.conversationSectionMoreButton,
32353
32396
  "aria-label": createConversationLabel,
32354
32397
  size: "sm",
32398
+ title: "",
32355
32399
  disabled: createConversationDisabled,
32356
32400
  onClick: onCreateConversation,
32357
32401
  children: /* @__PURE__ */ jsx61(CreateChatIcon, { "aria-hidden": "true" })
@@ -32384,6 +32428,7 @@ var ProjectMenuButton = forwardRef5(
32384
32428
  className: AgentGUINode_styles_default.conversationSectionMoreButton,
32385
32429
  "aria-label": accessibleName,
32386
32430
  size: "sm",
32431
+ title: "",
32387
32432
  disabled: projectActionLocked || disabled,
32388
32433
  children: /* @__PURE__ */ jsx61(MoreHorizontalIcon, { "aria-hidden": "true" })
32389
32434
  }
@@ -32511,6 +32556,7 @@ function ConversationMenuTrigger({
32511
32556
  className: AgentGUINode_styles_default.conversationSectionMoreButton,
32512
32557
  "aria-label": accessibleName,
32513
32558
  size: "sm",
32559
+ title: "",
32514
32560
  children: /* @__PURE__ */ jsx61(MoreHorizontalIcon, { "aria-hidden": "true" })
32515
32561
  }
32516
32562
  ) }) });
@@ -32522,6 +32568,7 @@ function ConversationMenuTrigger({
32522
32568
  className: AgentGUINode_styles_default.conversationSectionMoreButton,
32523
32569
  "aria-label": accessibleName,
32524
32570
  size: "sm",
32571
+ title: "",
32525
32572
  children: /* @__PURE__ */ jsx61(MoreHorizontalIcon, { "aria-hidden": "true" })
32526
32573
  }
32527
32574
  ) }) }) }),
@@ -33803,7 +33850,7 @@ function projectConversationRailMembershipRecords(state) {
33803
33850
  id: record.agentSessionId,
33804
33851
  pinnedAtUnixMs: null,
33805
33852
  projectionSource: "pending_activation",
33806
- railSectionKey: null,
33853
+ railSectionKey: record.railSectionKey?.trim() || null,
33807
33854
  title: record.title ?? ""
33808
33855
  }))
33809
33856
  ];
@@ -40476,4 +40523,4 @@ export {
40476
40523
  AgentHandoffMenu,
40477
40524
  AgentGUI
40478
40525
  };
40479
- //# sourceMappingURL=chunk-7VPICMI3.js.map
40526
+ //# sourceMappingURL=chunk-LL5MITN6.js.map