@tutti-os/agent-gui 0.0.23 → 0.0.25

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 (30) hide show
  1. package/dist/AgentMessageMarkdown-BnpM_dCB.d.ts +658 -0
  2. package/dist/agent-conversation/index.d.ts +5 -14
  3. package/dist/agent-conversation/index.js +3 -3
  4. package/dist/agent-message-center/index.d.ts +2 -2
  5. package/dist/agent-message-center/index.js +3 -3
  6. package/dist/{agentConversationVM-CGYkOuOP.d.ts → agentConversationVM-BvlmCNOm.d.ts} +2 -2
  7. package/dist/app/renderer/agentactivity.css +21 -28
  8. package/dist/{chunk-MQAGIHYM.js → chunk-3QDLVPMJ.js} +36 -4
  9. package/dist/chunk-3QDLVPMJ.js.map +1 -0
  10. package/dist/{chunk-3LVEFR2N.js → chunk-5PIXN7UF.js} +15 -14
  11. package/dist/{chunk-3LVEFR2N.js.map → chunk-5PIXN7UF.js.map} +1 -1
  12. package/dist/{chunk-ZC4E2QJU.js → chunk-OSBLVO4N.js} +3 -3
  13. package/dist/{chunk-7Q3JKSQ5.js → chunk-VNRRXUI3.js} +125 -44
  14. package/dist/chunk-VNRRXUI3.js.map +1 -0
  15. package/dist/{chunk-CCI6EK5W.js → chunk-YHRJD6HA.js} +1 -1
  16. package/dist/chunk-YHRJD6HA.js.map +1 -0
  17. package/dist/context-mention-palette/index.d.ts +1 -3
  18. package/dist/context-mention-palette/index.js +2 -2
  19. package/dist/index.d.ts +29 -417
  20. package/dist/index.js +473 -130
  21. package/dist/index.js.map +1 -1
  22. package/dist/plan-decision-ops.d.ts +2 -2
  23. package/dist/workspace-agent-generated-files.d.ts +1 -1
  24. package/dist/{workspaceAgentActivityListViewModel-BK_J3aNX.d.ts → workspaceAgentActivityListViewModel-jRF8cP37.d.ts} +2 -2
  25. package/package.json +12 -12
  26. package/dist/AgentMessageMarkdown-DeYPURtF.d.ts +0 -7
  27. package/dist/chunk-7Q3JKSQ5.js.map +0 -1
  28. package/dist/chunk-CCI6EK5W.js.map +0 -1
  29. package/dist/chunk-MQAGIHYM.js.map +0 -1
  30. /package/dist/{chunk-ZC4E2QJU.js.map → chunk-OSBLVO4N.js.map} +0 -0
@@ -4,8 +4,8 @@ import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
4
4
  import { useTranslation, AgentGuiI18nLocale, TranslateFn } from '../i18n/index.js';
5
5
  import { W as WorkspaceLinkAction } from '../workspaceLinkActions-CqWZaCY4.js';
6
6
  import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot } from '@tutti-os/agent-activity-core';
7
- import { A as AgentConversationPromptVM } from '../agentConversationVM-CGYkOuOP.js';
8
- import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-BK_J3aNX.js';
7
+ import { b as AgentConversationPromptVM } from '../agentConversationVM-BvlmCNOm.js';
8
+ import { o as WorkspaceAgentActivityStatus } from '../workspaceAgentActivityListViewModel-jRF8cP37.js';
9
9
  export { PLAN_IMPLEMENTATION_ACTION_IMPLEMENT, PLAN_IMPLEMENTATION_PROMPT } from '../plan-decision-ops.js';
10
10
  import '@tutti-os/workspace-issue-manager/core';
11
11
 
@@ -3,7 +3,7 @@ import {
3
3
  approvalOptionDisplayLabel,
4
4
  getPromptToolDetails,
5
5
  isPromptRequestIdTitle
6
- } from "../chunk-ZC4E2QJU.js";
6
+ } from "../chunk-OSBLVO4N.js";
7
7
  import {
8
8
  PLAN_IMPLEMENTATION_ACTION_IMPLEMENT,
9
9
  PLAN_IMPLEMENTATION_PROMPT,
@@ -16,7 +16,7 @@ import {
16
16
  cn,
17
17
  extractAgentMcpToolTarget,
18
18
  normalizeAskUserQuestions
19
- } from "../chunk-7Q3JKSQ5.js";
19
+ } from "../chunk-VNRRXUI3.js";
20
20
  import {
21
21
  managedAgentRoundedIconUrl,
22
22
  userAvatarPlaceholderUrl,
@@ -26,7 +26,7 @@ import "../chunk-MTFSQWZ6.js";
26
26
  import {
27
27
  resolveWorkspaceAgentSessionSortTimeUnixMs
28
28
  } from "../chunk-IBIMGLCD.js";
29
- import "../chunk-CCI6EK5W.js";
29
+ import "../chunk-YHRJD6HA.js";
30
30
  import {
31
31
  workspaceAgentProviderLabel
32
32
  } from "../chunk-TYGL25EL.js";
@@ -1,4 +1,4 @@
1
- import { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, T as ToolCallStatusKind, p as WorkspaceAgentActivityTimelineItem } from './workspaceAgentActivityListViewModel-BK_J3aNX.js';
1
+ import { W as WorkspaceAgentActivityCard, n as WorkspaceAgentActivitySession, T as ToolCallStatusKind, q as WorkspaceAgentActivityTimelineItem } from './workspaceAgentActivityListViewModel-jRF8cP37.js';
2
2
 
3
3
  interface WorkspaceAgentSessionDetailMessage {
4
4
  id: string;
@@ -340,4 +340,4 @@ interface AgentConversationVM {
340
340
  pendingInteractivePrompt: AgentConversationPendingInteractivePromptVM | null;
341
341
  }
342
342
 
343
- export { type AgentConversationPromptVM as A, type BuildWorkspaceAgentSessionDetailInput as B, type WorkspaceAgentSessionDetailViewModel as W, type AgentConversationVM as a, buildWorkspaceAgentSessionDetailViewModel as b };
343
+ export { type AgentApprovalItemVM as A, type BuildWorkspaceAgentSessionDetailInput as B, type WorkspaceAgentSessionDetailViewModel as W, type AgentAskUserQuestionVM as a, type AgentConversationPromptVM as b, type AgentConversationVM as c, buildWorkspaceAgentSessionDetailViewModel as d };
@@ -623,7 +623,7 @@ aside.workspace-agents-status-panel
623
623
 
624
624
  .workspace-agents-status-panel__content--detail {
625
625
  gap: 0;
626
- padding-inline: 24px;
626
+ padding-inline: 28px;
627
627
  }
628
628
 
629
629
  .workspace-agents-status-panel__content--detail-overlay {
@@ -2292,7 +2292,7 @@ aside.workspace-agents-status-panel
2292
2292
  justify-self: stretch;
2293
2293
  width: auto;
2294
2294
  gap: 0;
2295
- margin: 0 24px;
2295
+ margin: 0 8px;
2296
2296
  padding: 0;
2297
2297
  background: transparent;
2298
2298
  }
@@ -2317,11 +2317,16 @@ aside.workspace-agents-status-panel
2317
2317
  }
2318
2318
 
2319
2319
  .agent-gui-chrome__session-chrome:has(+ .agent-gui-chrome__session-chrome) {
2320
- margin-right: 36px;
2321
- margin-left: 36px;
2320
+ margin-right: 16px;
2321
+ margin-left: 16px;
2322
2322
  }
2323
2323
 
2324
2324
  .agent-gui-node__composer-input-group > .agent-gui-chrome__session-chrome {
2325
+ margin-right: 8px;
2326
+ margin-left: 8px;
2327
+ }
2328
+
2329
+ .agent-gui-node__composer-input-group-hero > .agent-gui-chrome__session-chrome {
2325
2330
  margin-right: 24px;
2326
2331
  margin-left: 24px;
2327
2332
  }
@@ -2332,8 +2337,8 @@ aside.workspace-agents-status-panel
2332
2337
  .agent-gui-node__composer-input-group
2333
2338
  > .agent-gui-chrome__session-chrome
2334
2339
  ) {
2335
- margin-right: 36px;
2336
- margin-left: 36px;
2340
+ margin-right: 16px;
2341
+ margin-left: 16px;
2337
2342
  }
2338
2343
 
2339
2344
  .agent-gui-node__bottom-dock
@@ -2345,8 +2350,8 @@ aside.workspace-agents-status-panel
2345
2350
  + .agent-gui-node__composer
2346
2351
  .agent-gui-node__composer-input-group
2347
2352
  > .agent-gui-chrome__session-chrome {
2348
- margin-right: 24px;
2349
- margin-left: 24px;
2353
+ margin-right: 8px;
2354
+ margin-left: 8px;
2350
2355
  }
2351
2356
 
2352
2357
  .agent-gui-chrome__card {
@@ -2520,23 +2525,6 @@ aside.workspace-agents-status-panel
2520
2525
  cursor: pointer;
2521
2526
  }
2522
2527
 
2523
- .agent-gui-node__empty-hero-body
2524
- > .agent-gui-chrome__session-chrome
2525
- > .agent-gui-chrome__card--danger,
2526
- .agent-gui-node__composer-input-group
2527
- > .agent-gui-chrome__session-chrome
2528
- > .agent-gui-chrome__card--danger,
2529
- .agent-gui-node__bottom-dock
2530
- > .agent-gui-chrome__session-chrome:has(+ .agent-gui-node__composer)
2531
- > .agent-gui-chrome__card--danger {
2532
- border-bottom: 1px solid
2533
- color-mix(
2534
- in srgb,
2535
- var(--status-danger, var(--state-danger)) 16%,
2536
- transparent
2537
- );
2538
- }
2539
-
2540
2528
  .agent-gui-chrome__card[data-has-inline-actions="true"] {
2541
2529
  padding-right: 4px;
2542
2530
  }
@@ -3818,7 +3806,7 @@ aside.workspace-agents-status-panel
3818
3806
  --agent-conversation-text: var(--text-primary);
3819
3807
  --agent-conversation-user-text: var(--text-primary);
3820
3808
  --agent-conversation-user-bg: var(--agent-gui-surface-muted);
3821
- --agent-gui-detail-padding-x: 24px;
3809
+ --agent-gui-detail-padding-x: 28px;
3822
3810
  --agent-gui-detail-flow-max-width: 1280px;
3823
3811
  width: 100%;
3824
3812
  height: 100%;
@@ -4427,6 +4415,11 @@ button.agent-gui-node__conversation-section-toggle:hover
4427
4415
  pointer-events: auto;
4428
4416
  }
4429
4417
 
4418
+ .agent-gui-node__conversation-section[data-kind="conversations"]
4419
+ .agent-gui-node__conversation-section-actions {
4420
+ min-width: 0;
4421
+ }
4422
+
4430
4423
  .agent-gui-node__conversation-section-action-tooltip-wrap {
4431
4424
  position: relative;
4432
4425
  display: inline-flex;
@@ -5153,8 +5146,8 @@ button.agent-gui-node__conversation-section-toggle:hover
5153
5146
  }
5154
5147
 
5155
5148
  .workspace-agents-status-panel__conversation-timeline.agent-gui-node__timeline {
5156
- padding-right: 24px;
5157
- padding-left: 24px;
5149
+ padding-right: 28px;
5150
+ padding-left: 28px;
5158
5151
  }
5159
5152
 
5160
5153
  .agent-gui-node__timeline-with-composer {
@@ -10,7 +10,7 @@ import {
10
10
  resolveWorkspaceFileLinkAction,
11
11
  resolveWorkspaceFilePathCandidate,
12
12
  resolveWorkspaceLinkAction
13
- } from "./chunk-7Q3JKSQ5.js";
13
+ } from "./chunk-VNRRXUI3.js";
14
14
  import {
15
15
  attrsToMentionItem,
16
16
  createAgentFileMentionExtension,
@@ -24,7 +24,7 @@ import {
24
24
  import {
25
25
  getOptionalAgentActivityRuntime,
26
26
  useOptionalAgentHostApi
27
- } from "./chunk-CCI6EK5W.js";
27
+ } from "./chunk-YHRJD6HA.js";
28
28
  import {
29
29
  workspaceAgentProviderLabel
30
30
  } from "./chunk-TYGL25EL.js";
@@ -6310,6 +6310,7 @@ var CanvasNodeGhostIconButton = forwardRef3(function CanvasNodeGhostIconButton2(
6310
6310
  // shared/agentConversation/components/AgentMessageBlock.tsx
6311
6311
  import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
6312
6312
  var MESSAGE_COPY_FEEDBACK_MS = 1400;
6313
+ var CONTEXT_COMPACTION_NOTICE_TITLE = "Context compacted.";
6313
6314
  function AgentMessageBlock({
6314
6315
  workspaceRoot,
6315
6316
  basePath,
@@ -6653,6 +6654,33 @@ function AgentSystemNoticeMessage({
6653
6654
  "use memo";
6654
6655
  const notice = message.systemNotice;
6655
6656
  const detail = notice?.detail?.trim() ?? "";
6657
+ const title = systemNoticeTitle(message);
6658
+ if (isContextCompactionNotice(message, title)) {
6659
+ return /* @__PURE__ */ jsxs7(
6660
+ "div",
6661
+ {
6662
+ role: "status",
6663
+ className: "box-border flex w-full min-w-0 items-center gap-3 py-2 text-[12px] leading-4 text-[var(--text-secondary)]",
6664
+ children: [
6665
+ /* @__PURE__ */ jsx12(
6666
+ "span",
6667
+ {
6668
+ "aria-hidden": "true",
6669
+ className: "h-px min-w-4 flex-1 bg-[var(--line-1)]"
6670
+ }
6671
+ ),
6672
+ /* @__PURE__ */ jsx12("span", { className: "shrink-0 whitespace-nowrap", children: title }),
6673
+ /* @__PURE__ */ jsx12(
6674
+ "span",
6675
+ {
6676
+ "aria-hidden": "true",
6677
+ className: "h-px min-w-4 flex-1 bg-[var(--line-1)]"
6678
+ }
6679
+ )
6680
+ ]
6681
+ }
6682
+ );
6683
+ }
6656
6684
  const isWarning = notice?.severity === "warning" || notice?.severity === "error";
6657
6685
  return /* @__PURE__ */ jsx12(
6658
6686
  "section",
@@ -6660,12 +6688,16 @@ function AgentSystemNoticeMessage({
6660
6688
  role: isWarning ? "status" : void 0,
6661
6689
  className: "box-border w-full min-w-0 rounded-[8px] border border-[color-mix(in_srgb,var(--state-warning)_14%,transparent)] bg-[color-mix(in_srgb,var(--background-fronted)_100%,var(--state-warning)_6%)] p-3 text-[13px] leading-5 text-[var(--text-primary)]",
6662
6690
  children: /* @__PURE__ */ jsxs7("div", { className: "min-w-0", children: [
6663
- /* @__PURE__ */ jsx12("div", { className: "font-medium text-[var(--text-primary)]", children: systemNoticeTitle(message) }),
6691
+ /* @__PURE__ */ jsx12("div", { className: "font-medium text-[var(--text-primary)]", children: title }),
6664
6692
  detail ? /* @__PURE__ */ jsx12(AgentMessageDetailsDisclosure, { detail, className: "mt-1" }) : null
6665
6693
  ] })
6666
6694
  }
6667
6695
  );
6668
6696
  }
6697
+ function isContextCompactionNotice(message, title) {
6698
+ const notice = message.systemNotice;
6699
+ return notice?.noticeKind === "system_notice" && (notice.detail?.trim() ?? "") === "" && title.trim() === CONTEXT_COMPACTION_NOTICE_TITLE;
6700
+ }
6669
6701
  function AgentPlanCardMessage({
6670
6702
  message,
6671
6703
  workspaceRoot,
@@ -12282,4 +12314,4 @@ export {
12282
12314
  AgentConversationFlow,
12283
12315
  useProjectedAgentConversation
12284
12316
  };
12285
- //# sourceMappingURL=chunk-MQAGIHYM.js.map
12317
+ //# sourceMappingURL=chunk-3QDLVPMJ.js.map