@tutti-os/agent-gui 0.0.74 → 0.0.75

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 (83) hide show
  1. package/README.md +17 -0
  2. package/dist/agent-conversation/index.d.ts +4 -4
  3. package/dist/agent-conversation/index.js +8 -8
  4. package/dist/agent-message-center/index.d.ts +2 -2
  5. package/dist/agent-message-center/index.js +170 -12
  6. package/dist/agent-message-center/index.js.map +1 -1
  7. package/dist/{agentConversationVM-DPAgUJlR.d.ts → agentConversationVM-BgoqFyE9.d.ts} +1 -1
  8. package/dist/{agentGuiNodeTypes-C0WUHQzu.d.ts → agentGuiNodeTypes-CmuJ7VDZ.d.ts} +15 -5
  9. package/dist/app/renderer/agentactivity.css +52 -24
  10. package/dist/app/renderer/assets/icons/agents/cursor-colorful.png +0 -0
  11. package/dist/app/renderer/assets/icons/agents/opencode-rounded.png +0 -0
  12. package/dist/app/renderer/assets/icons/agents/provider-rail-opencode-colorful.png +0 -0
  13. package/dist/{chunk-GLMDAZSQ.js → chunk-3FYA2K4P.js} +76 -7
  14. package/dist/chunk-3FYA2K4P.js.map +1 -0
  15. package/dist/{chunk-RA3OUR64.js → chunk-4HP6V2YA.js} +16 -2
  16. package/dist/chunk-4HP6V2YA.js.map +1 -0
  17. package/dist/{chunk-W5AJTBA7.js → chunk-4TNM6ZEC.js} +3 -100
  18. package/dist/chunk-4TNM6ZEC.js.map +1 -0
  19. package/dist/{chunk-6EREXANR.js → chunk-52GTPN7X.js} +3 -14
  20. package/dist/chunk-52GTPN7X.js.map +1 -0
  21. package/dist/{chunk-ZSYDFQ4N.js → chunk-7GSBP5CN.js} +36 -15
  22. package/dist/chunk-7GSBP5CN.js.map +1 -0
  23. package/dist/{chunk-T5CEU7WH.js → chunk-BEM3KDOJ.js} +3 -3
  24. package/dist/chunk-BEM3KDOJ.js.map +1 -0
  25. package/dist/{chunk-VERGPY42.js → chunk-GZX2SGAG.js} +2 -2
  26. package/dist/{chunk-NO7WDGST.js → chunk-KELYWKTC.js} +28 -6
  27. package/dist/chunk-KELYWKTC.js.map +1 -0
  28. package/dist/{chunk-FPODKSSV.js → chunk-L2ZMLLYL.js} +12 -5
  29. package/dist/chunk-L2ZMLLYL.js.map +1 -0
  30. package/dist/{chunk-LWFV4PS5.js → chunk-M6FZ2YIR.js} +3 -3
  31. package/dist/chunk-M6FZ2YIR.js.map +1 -0
  32. package/dist/{chunk-D2Z2QZVE.js → chunk-MNESUMOS.js} +2 -2
  33. package/dist/{chunk-KVS7J7BJ.js → chunk-QDKD6RNC.js} +15 -6
  34. package/dist/{chunk-KVS7J7BJ.js.map → chunk-QDKD6RNC.js.map} +1 -1
  35. package/dist/{chunk-FHWE5SUF.js → chunk-RIRFNGPB.js} +7 -3
  36. package/dist/chunk-RIRFNGPB.js.map +1 -0
  37. package/dist/{chunk-SL2QSEIE.js → chunk-SYWMKIRW.js} +4 -4
  38. package/dist/{chunk-RF7GK4SM.js → chunk-U6AZ3XQS.js} +25 -6
  39. package/dist/chunk-U6AZ3XQS.js.map +1 -0
  40. package/dist/{chunk-Z72JKSAY.js → chunk-U6EDUTUO.js} +4 -4
  41. package/dist/{chunk-MYD37I32.js → chunk-VAKFNNKT.js} +1 -15
  42. package/dist/chunk-VAKFNNKT.js.map +1 -0
  43. package/dist/{chunk-BTUOROCD.js → chunk-XW4CVBUH.js} +2 -2
  44. package/dist/chunk-XW4CVBUH.js.map +1 -0
  45. package/dist/{chunk-4XIHKCWC.js → chunk-YWQHNFYA.js} +2 -2
  46. package/dist/context-mention-palette/index.js +9 -9
  47. package/dist/i18n/index.d.ts +2 -96
  48. package/dist/i18n/index.js +2 -2
  49. package/dist/index.d.ts +49 -7
  50. package/dist/index.js +1008 -598
  51. package/dist/index.js.map +1 -1
  52. package/dist/plan-decision-ops.d.ts +2 -2
  53. package/dist/queued-prompt-runtime.d.ts +3 -5
  54. package/dist/queued-prompt-runtime.js +1 -1
  55. package/dist/workbench/contribution.js +5 -5
  56. package/dist/workbench/index.js +8 -8
  57. package/dist/workbench/launch.d.ts +1 -1
  58. package/dist/workbench/launch.js +2 -2
  59. package/dist/workbench/providerCatalog.js +1 -1
  60. package/dist/workbench/sessionTitle.js +3 -3
  61. package/dist/workbench/state.js +2 -2
  62. package/dist/workspace-agent-generated-files.d.ts +1 -1
  63. package/dist/workspace-agent-generated-files.js +4 -4
  64. package/dist/{workspaceAgentActivityListViewModel-DJvAqZso.d.ts → workspaceAgentActivityListViewModel-TXH1VXrk.d.ts} +0 -10
  65. package/package.json +12 -12
  66. package/dist/chunk-6EREXANR.js.map +0 -1
  67. package/dist/chunk-BTUOROCD.js.map +0 -1
  68. package/dist/chunk-FHWE5SUF.js.map +0 -1
  69. package/dist/chunk-FPODKSSV.js.map +0 -1
  70. package/dist/chunk-GLMDAZSQ.js.map +0 -1
  71. package/dist/chunk-LWFV4PS5.js.map +0 -1
  72. package/dist/chunk-MYD37I32.js.map +0 -1
  73. package/dist/chunk-NO7WDGST.js.map +0 -1
  74. package/dist/chunk-RA3OUR64.js.map +0 -1
  75. package/dist/chunk-RF7GK4SM.js.map +0 -1
  76. package/dist/chunk-T5CEU7WH.js.map +0 -1
  77. package/dist/chunk-W5AJTBA7.js.map +0 -1
  78. package/dist/chunk-ZSYDFQ4N.js.map +0 -1
  79. /package/dist/{chunk-VERGPY42.js.map → chunk-GZX2SGAG.js.map} +0 -0
  80. /package/dist/{chunk-D2Z2QZVE.js.map → chunk-MNESUMOS.js.map} +0 -0
  81. /package/dist/{chunk-SL2QSEIE.js.map → chunk-SYWMKIRW.js.map} +0 -0
  82. /package/dist/{chunk-Z72JKSAY.js.map → chunk-U6EDUTUO.js.map} +0 -0
  83. /package/dist/{chunk-4XIHKCWC.js.map → chunk-YWQHNFYA.js.map} +0 -0
@@ -953,6 +953,7 @@ declare const agentGuiI18nResources: {
953
953
  readonly mentionEmptyAgentGeneratedFiles: "No files generated by Agent yet";
954
954
  readonly mentionAgentGeneratedFolderBack: "Back";
955
955
  readonly mentionAgentGeneratedFolderFileCount: "Contains {{count}} files";
956
+ readonly mentionAgentTargetAvailable: "Available";
956
957
  readonly mentionNoMatchingFiles: "No matching files";
957
958
  readonly mentionOpenReferences: "View output";
958
959
  readonly issueRunPrompt: {
@@ -1447,17 +1448,10 @@ declare const agentGuiI18nResources: {
1447
1448
  };
1448
1449
  };
1449
1450
  readonly workspaceConnecting: "Preparing your room…";
1450
- readonly workspaceConnectingOthersSpace: "Entering the room…";
1451
1451
  readonly unknownProvider: "Unknown provider";
1452
1452
  readonly messages: {
1453
- readonly inviteCodeGenerated: "Invite code generated";
1454
- readonly inviteRevoked: "Invite revoked";
1455
1453
  readonly roomOpened: "Room opened";
1456
1454
  readonly roomOpenedIssue: "Room opened. Preparing to focus the task.";
1457
- readonly recognizedSharedRoomNeedInvite: "Recognized a shared room. Enter the invite code to join the canvas.";
1458
- readonly roomJoined: "Joined room";
1459
- readonly roomJoinedIssue: "Joined room. Preparing to focus the task.";
1460
- readonly inviteCodeRequired: "Enter an invite code";
1461
1455
  readonly issueTitleRequired: "Enter a task title first";
1462
1456
  readonly issueCreated: "Task created";
1463
1457
  readonly issueUpdated: "Task updated";
@@ -1478,13 +1472,6 @@ declare const agentGuiI18nResources: {
1478
1472
  readonly issuePendingUploadAdded: "Added {{count}} pending upload file(s)";
1479
1473
  readonly issueUploaded: "Uploaded {{count}} file(s)";
1480
1474
  readonly issueDirectInstallUnsupported: "Installing Agents is not supported here yet";
1481
- readonly currentInviteMissingCode: "The current invite is missing an invite code. Refresh the share panel and try again.";
1482
- readonly roomShareLinkCopied: "Share link copied";
1483
- readonly visitorShareLinkCopied: "Guest share link copied";
1484
- readonly visitorShareOptionsUpdated: "Guest share settings updated";
1485
- readonly visitorShareDisabled: "Guest sharing is off";
1486
- readonly visitorShareTokenUnavailable: "Guest link already exists and settings were updated. The old raw link cannot be read again.";
1487
- readonly postCreateInviteLinkCopied: "Invite link copied";
1488
1475
  readonly collabCompleted: "This collaboration task is complete";
1489
1476
  readonly githubLoginCompleted: "GitHub sign-in complete";
1490
1477
  readonly googleLoginCompleted: "Google sign-in complete";
@@ -2124,40 +2111,6 @@ declare const agentGuiI18nResources: {
2124
2111
  readonly noSkillsFound: "No skills found.";
2125
2112
  };
2126
2113
  };
2127
- readonly workspaceSharePanel: {
2128
- readonly title: "Share room";
2129
- readonly topBarAction: "Share";
2130
- readonly subtitle: "You are the room owner. You can invite {{count}} more collaborators.";
2131
- readonly closeAria: "Close share dialog";
2132
- readonly membersSection: "Members";
2133
- readonly ownerRole: "Room owner";
2134
- readonly inviteSlots: "Invites";
2135
- readonly invitedCount: "Invited {{current}}/{{max}}";
2136
- readonly slotLabel: "Invite slot {{n}}";
2137
- readonly slotSubUsedShort: "Invite link used";
2138
- readonly slotSubPending: "Link generated, not yet used";
2139
- readonly slotSubEmpty: "Pending invite";
2140
- readonly statusPending: "Unused";
2141
- readonly statusUsed: "Used";
2142
- readonly statusRevoked: "Revoked";
2143
- readonly statusEmpty: "Empty";
2144
- readonly copyInviteLink: "Copy link";
2145
- readonly revoke: "Revoke";
2146
- readonly emptyStateUsed: "Used; can reissue";
2147
- readonly emptyStatePending: "Pending invite";
2148
- readonly generateLink: "Generate link";
2149
- readonly memberViaInvite: "Joined via invite link";
2150
- readonly memberRole: "Collaborator";
2151
- readonly visitorShareTitle: "Guest sharing";
2152
- readonly visitorShareEnabled: "On";
2153
- readonly visitorShareDisabled: "Off";
2154
- readonly visitorShareContextLabel: "Let guests view messages and file tree";
2155
- readonly visitorShareContextHint: "Guests can only read. They cannot edit, use terminals, or run agents.";
2156
- readonly visitorShareNoLinkHint: "Generate a guest link so anyone with the link can open this room read-only.";
2157
- readonly visitorShareGetLink: "Get share link";
2158
- readonly visitorShareCopyLink: "Copy share link";
2159
- readonly visitorShareDisable: "Turn off sharing";
2160
- };
2161
2114
  readonly settingsPanel: {
2162
2115
  title: string;
2163
2116
  nav: {
@@ -3464,6 +3417,7 @@ declare const agentGuiI18nResources: {
3464
3417
  readonly mentionEmptyAgentGeneratedFiles: "暂无 Agent 生成的文件";
3465
3418
  readonly mentionAgentGeneratedFolderBack: "返回";
3466
3419
  readonly mentionAgentGeneratedFolderFileCount: "包含 {{count}} 个文件";
3420
+ readonly mentionAgentTargetAvailable: "可用";
3467
3421
  readonly mentionNoMatchingFiles: "没有匹配到文件";
3468
3422
  readonly mentionOpenReferences: "查看产物";
3469
3423
  readonly issueRunPrompt: {
@@ -3958,17 +3912,10 @@ declare const agentGuiI18nResources: {
3958
3912
  readonly secondary: "稍后再分享";
3959
3913
  };
3960
3914
  };
3961
- readonly workspaceConnectingOthersSpace: "正在进入房间…";
3962
3915
  readonly unknownProvider: "未知提供方";
3963
3916
  readonly messages: {
3964
- readonly inviteCodeGenerated: "邀请码已生成";
3965
- readonly inviteRevoked: "邀请已作废";
3966
3917
  readonly roomOpened: "已打开房间";
3967
3918
  readonly roomOpenedIssue: "已打开房间,准备定位到对应任务";
3968
- readonly recognizedSharedRoomNeedInvite: "已识别分享房间,请输入邀请码加入画布";
3969
- readonly roomJoined: "已加入房间";
3970
- readonly roomJoinedIssue: "已加入房间,准备定位到对应任务";
3971
- readonly inviteCodeRequired: "请输入邀请码";
3972
3919
  readonly issueTitleRequired: "请先填写任务标题";
3973
3920
  readonly issueCreated: "任务已创建";
3974
3921
  readonly issueUpdated: "任务已更新";
@@ -3989,13 +3936,6 @@ declare const agentGuiI18nResources: {
3989
3936
  readonly issuePendingUploadAdded: "已加入 {{count}} 项待上传资料";
3990
3937
  readonly issueUploaded: "已上传 {{count}} 项资料";
3991
3938
  readonly issueDirectInstallUnsupported: "当前不支持在这里直接安装 Agent";
3992
- readonly currentInviteMissingCode: "当前邀请缺少邀请码,请刷新分享面板后重试";
3993
- readonly roomShareLinkCopied: "分享链接已复制";
3994
- readonly visitorShareLinkCopied: "访客分享链接已复制";
3995
- readonly visitorShareOptionsUpdated: "访客分享设置已更新";
3996
- readonly visitorShareDisabled: "访客分享已关闭";
3997
- readonly visitorShareTokenUnavailable: "访客链接已存在,设置已更新;旧链接明文无法再次读取";
3998
- readonly postCreateInviteLinkCopied: "邀请链接已复制";
3999
3939
  readonly collabCompleted: "该协作任务已完成";
4000
3940
  readonly githubLoginCompleted: "GitHub 登录完成";
4001
3941
  readonly googleLoginCompleted: "Google 登录完成";
@@ -4635,40 +4575,6 @@ declare const agentGuiI18nResources: {
4635
4575
  readonly noSkillsFound: "未找到 Skill。";
4636
4576
  };
4637
4577
  };
4638
- readonly workspaceSharePanel: {
4639
- readonly title: "分享房间";
4640
- readonly topBarAction: "分享";
4641
- readonly subtitle: "你是房间 Owner,可再邀请 {{count}} 位协作者";
4642
- readonly closeAria: "关闭分享弹窗";
4643
- readonly membersSection: "成员";
4644
- readonly ownerRole: "房间 owner";
4645
- readonly inviteSlots: "邀请";
4646
- readonly invitedCount: "已邀请 {{current}}/{{max}}";
4647
- readonly slotLabel: "邀请名额 {{n}}";
4648
- readonly slotSubUsedShort: "邀请链接已使用";
4649
- readonly slotSubPending: "链接已生成,尚未使用";
4650
- readonly slotSubEmpty: "待邀请";
4651
- readonly statusPending: "未使用";
4652
- readonly statusUsed: "已使用";
4653
- readonly statusRevoked: "已撤销";
4654
- readonly statusEmpty: "空";
4655
- readonly copyInviteLink: "复制链接";
4656
- readonly revoke: "撤销";
4657
- readonly emptyStateUsed: "已使用,可补发";
4658
- readonly emptyStatePending: "待邀请";
4659
- readonly generateLink: "生成链接";
4660
- readonly memberViaInvite: "通过邀请链接加入";
4661
- readonly memberRole: "协作者";
4662
- readonly visitorShareTitle: "访客分享";
4663
- readonly visitorShareEnabled: "已开启";
4664
- readonly visitorShareDisabled: "未开启";
4665
- readonly visitorShareContextLabel: "允许访客查看消息列表和文件树";
4666
- readonly visitorShareContextHint: "访客只能只读查看,不会获得编辑、终端或执行权限。";
4667
- readonly visitorShareNoLinkHint: "生成访客链接后,任何拿到链接的人都可以只读访问这个房间。";
4668
- readonly visitorShareGetLink: "获取分享链接";
4669
- readonly visitorShareCopyLink: "复制分享链接";
4670
- readonly visitorShareDisable: "关闭分享";
4671
- };
4672
4578
  readonly settingsPanel: {
4673
4579
  title: string;
4674
4580
  nav: {
@@ -6,8 +6,8 @@ import {
6
6
  translate,
7
7
  translateInUiLanguage,
8
8
  useTranslation
9
- } from "../chunk-4XIHKCWC.js";
10
- import "../chunk-W5AJTBA7.js";
9
+ } from "../chunk-YWQHNFYA.js";
10
+ import "../chunk-4TNM6ZEC.js";
11
11
  export {
12
12
  AgentGuiI18nProvider,
13
13
  agentGuiI18nModule,
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { AgentActivityNeedsAttentionItem, AgentActivitySnapshot, AgentActivityCancelSessionInput, AgentActivityCancelSessionResult, AgentActivityGoalControlInput, AgentActivityGoalControlResult, AgentActivityCreateSessionInput, AgentActivitySession, AgentActivityDeleteSessionInput, AgentActivityDeleteSessionResult, AgentActivitySendInput, AgentActivityMessageOrder, AgentActivityMessagePage, AgentActivitySendInputResult, AgentActivityRenameSessionInput, AgentActivitySubmitInteractiveInput, AgentActivitySnapshotListener } from '@tutti-os/agent-activity-core';
2
2
  export { AgentActivityAdapter, AgentActivityController, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
3
- import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-DJvAqZso.js';
3
+ import { m as WorkspaceAgentActivityListViewModel, g as AgentHostWorkspaceAgentSession, f as AgentHostWorkspaceAgentMessage, l as AgentHostWorkspaceAgentSnapshot, B as BuildWorkspaceAgentActivityListOptions, d as AgentHostRuntimeOpenclawGatewayWarmupResult, c as AgentHostManagedAgentsState } from './workspaceAgentActivityListViewModel-TXH1VXrk.js';
4
4
  import * as react from 'react';
5
5
  import { ReactNode, PropsWithChildren, JSX, HTMLAttributes } from 'react';
6
- import { m as AgentProbeSnapshot, b as AgentComposerDraft, p as AgentSessionCommand, e as AgentGUIProviderSkillOption, c as AgentGUIComposerSettingsVM, f as AgentGUIQueuedPromptVM, d as AgentGUINodeViewModel, i as AgentHostInputApi } from './agentGuiNodeTypes-C0WUHQzu.js';
7
- export { A as AGENT_PASTED_TEXT_BLOCK_KIND, a as AGENT_PASTED_TEXT_MENTION_KIND, g as AgentHostApi, h as AgentHostApplyWorkspaceGitPatchInput, j as AgentHostRuntimeApi, k as AgentHostSelectFilesInput, l as AgentProbeProvider, n as AgentProviderProbeListInput, o as AgentProviderProbeListResult, q as AgentUsageQuota, r as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, s as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-C0WUHQzu.js';
6
+ import { m as AgentProbeSnapshot, b as AgentComposerDraft, p as AgentSessionCommand, e as AgentGUIProviderSkillOption, c as AgentGUIComposerSettingsVM, f as AgentGUIQueuedPromptVM, d as AgentGUINodeViewModel, i as AgentHostInputApi } from './agentGuiNodeTypes-CmuJ7VDZ.js';
7
+ export { A as AGENT_PASTED_TEXT_BLOCK_KIND, a as AGENT_PASTED_TEXT_MENTION_KIND, g as AgentHostApi, h as AgentHostApplyWorkspaceGitPatchInput, j as AgentHostRuntimeApi, k as AgentHostSelectFilesInput, l as AgentProbeProvider, n as AgentProviderProbeListInput, o as AgentProviderProbeListResult, q as AgentUsageQuota, r as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, s as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-CmuJ7VDZ.js';
8
8
  import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
9
9
  import { t as AgentProvider, l as AgentHostAgentSessionComposerSettings, j as AgentHostActivateAgentSessionResult, r as AgentHostUpdateAgentSessionSettingsResult, p as AgentHostAgentSessionState, q as AgentHostUnactivateAgentSessionResult, A as AgentGUINodeData, a as AgentGUIProvider, g as AgentGUIProviderTarget, s as AgentPromptContentBlock, d as AgentGUIProviderReadinessGate, P as Point, b as AgentGUIProviderRailAllPresentation, c as AgentGUIProviderRailMode, N as NodeFrame, h as AgentGUIProviderTargetBadge } from './types-DUHHejs2.js';
10
10
  export { e as AgentGUIProviderReadinessGateAction, f as AgentGUIProviderReadinessGateStatus, i as AgentGUIProviderTargetRef } from './types-DUHHejs2.js';
@@ -13,7 +13,7 @@ import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAd
13
13
  import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
14
14
  import { U as UiLanguage, a as UiTheme } from './uiSettings-BQS9r2eo.js';
15
15
  import { W as WorkspaceLinkAction } from './workspaceLinkActions-DS9LWqzI.js';
16
- import { b as AgentConversationPromptVM } from './agentConversationVM-DPAgUJlR.js';
16
+ import { b as AgentConversationPromptVM } from './agentConversationVM-BgoqFyE9.js';
17
17
  import { WorkspaceUserProjectI18nRuntime } from '@tutti-os/workspace-user-project/i18n';
18
18
  import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user-project/ui';
19
19
  import { WorkspaceUserProject } from '@tutti-os/workspace-user-project/contracts';
@@ -225,6 +225,26 @@ interface AgentActivityRuntimeListSessionSectionPageInput {
225
225
  signal?: AbortSignal;
226
226
  workspaceId: string;
227
227
  }
228
+ interface AgentActivityRuntimeSessionSectionScopeInput {
229
+ agentTargetId?: string | null;
230
+ sectionKey: string;
231
+ signal?: AbortSignal;
232
+ workspaceId: string;
233
+ }
234
+ interface AgentActivityRuntimeSessionSectionCount {
235
+ agentTargetId?: string | null;
236
+ count: number;
237
+ sectionKey: string;
238
+ workspaceId: string;
239
+ }
240
+ interface AgentActivityRuntimeDeleteSessionSectionResult {
241
+ agentTargetId?: string | null;
242
+ removedMessages: number;
243
+ removedSessionIds: string[];
244
+ removedSessions: number;
245
+ sectionKey: string;
246
+ workspaceId: string;
247
+ }
228
248
  interface AgentActivityRuntimeListPinnedSessionsPageInput {
229
249
  agentTargetId?: string | null;
230
250
  cursor?: string;
@@ -318,6 +338,13 @@ interface AgentActivityRuntimeDiagnosticInput {
318
338
  source?: string;
319
339
  workspaceId?: string | null;
320
340
  }
341
+ interface AgentActivityRuntimeCapabilities {
342
+ canCancel?: boolean;
343
+ canSubmitInteractive?: boolean;
344
+ canGoalControl?: boolean;
345
+ canUploadAttachment?: boolean;
346
+ }
347
+ type AgentActivityRuntimeCapabilityKey = keyof AgentActivityRuntimeCapabilities;
321
348
  interface AgentActivityRuntimeActivateSessionInputBase {
322
349
  agentSessionId: string;
323
350
  cwd?: string;
@@ -415,6 +442,16 @@ interface AgentActivityRuntime {
415
442
  file?: boolean;
416
443
  image?: boolean;
417
444
  };
445
+ /**
446
+ * Host-declared command surface. Missing capability keys default to true for
447
+ * backwards compatibility with older runtimes.
448
+ */
449
+ capabilities?: AgentActivityRuntimeCapabilities;
450
+ /**
451
+ * When reportDiagnostic is absent, development builds emit AgentGUI
452
+ * diagnostics to console by default. Set false to keep a dev runtime silent.
453
+ */
454
+ devDiagnosticConsoleSink?: boolean;
418
455
  cancelSession(input: AgentActivityCancelSessionInput): Promise<AgentActivityCancelSessionResult>;
419
456
  goalControl(input: AgentActivityGoalControlInput): Promise<AgentActivityGoalControlResult>;
420
457
  createSession(input: AgentActivityCreateSessionInput): Promise<AgentActivitySession>;
@@ -431,11 +468,13 @@ interface AgentActivityRuntime {
431
468
  listSessionsPage?(input: AgentActivityRuntimeListSessionsPageInput): Promise<AgentActivityRuntimeSessionPageResult>;
432
469
  listSessionSections?(input: AgentActivityRuntimeListSessionSectionsInput): Promise<AgentActivityRuntimeSessionSectionsResult>;
433
470
  listSessionSectionPage?(input: AgentActivityRuntimeListSessionSectionPageInput): Promise<AgentActivityRuntimeSessionSection>;
471
+ countSessionSection?(input: AgentActivityRuntimeSessionSectionScopeInput): Promise<AgentActivityRuntimeSessionSectionCount>;
472
+ deleteSessionSection?(input: AgentActivityRuntimeSessionSectionScopeInput): Promise<AgentActivityRuntimeDeleteSessionSectionResult>;
434
473
  listPinnedSessionsPage?(input: AgentActivityRuntimeListPinnedSessionsPageInput): Promise<AgentActivityRuntimeSessionPage>;
435
474
  load(workspaceId: string, signal?: AbortSignal): Promise<AgentActivitySnapshot>;
436
- ensureSessionSynchronized?(input: AgentActivityRuntimeEnsureSessionSynchronizedInput): () => void;
475
+ ensureSessionSynchronized(input: AgentActivityRuntimeEnsureSessionSynchronizedInput): () => void;
437
476
  /** @deprecated Use ensureSessionSynchronized. */
438
- retainSessionEvents(input: AgentActivityRuntimeRetainSessionEventsInput): () => void;
477
+ retainSessionEvents?(input: AgentActivityRuntimeRetainSessionEventsInput): () => void;
439
478
  sendInput(input: AgentActivitySendInput): Promise<AgentActivitySendInputResult>;
440
479
  uploadPromptContent?(input: AgentActivityRuntimeUploadPromptContentInput): Promise<AgentActivityRuntimeUploadPromptContentResult>;
441
480
  readSessionAttachment?(input: AgentActivityRuntimeReadSessionAttachmentInput): Promise<AgentActivityRuntimeSessionAttachment>;
@@ -450,6 +489,7 @@ interface AgentActivityRuntime {
450
489
  subscribeSessionEvents(workspaceId: string, listener: (event: unknown) => void): () => void;
451
490
  subscribe(workspaceId: string, listener: AgentActivitySnapshotListener): () => void;
452
491
  }
492
+ declare function agentActivityRuntimeCapabilityEnabled(runtime: Pick<AgentActivityRuntime, "capabilities"> | null | undefined, capability: AgentActivityRuntimeCapabilityKey): boolean;
453
493
  interface AgentActivityRuntimeProviderProps extends PropsWithChildren {
454
494
  runtime?: AgentActivityRuntime | null;
455
495
  }
@@ -623,6 +663,8 @@ interface AgentComposerProps {
623
663
  previewMode?: boolean;
624
664
  workspaceReferencePickerOpen?: boolean;
625
665
  promptImagesSupported?: boolean;
666
+ canGoalControl?: boolean;
667
+ canUploadAttachment?: boolean;
626
668
  composerFocusRequestSequence?: number | null;
627
669
  layoutMode?: "dock" | "hero";
628
670
  providerSelectLabel?: string;
@@ -1115,4 +1157,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
1115
1157
  }
1116
1158
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
1117
1159
 
1118
- export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIAccountMenuState, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderRailAllPresentation, type AgentGUIProviderRailEmptyRenderer, AgentGUIProviderRailMode, AgentGUIProviderReadinessGate, type AgentGUIProviderReadinessGateStateContext, type AgentGUIProviderReadinessGateStateRenderer, AgentGUIProviderTarget, AgentGUIProviderTargetBadge, type AgentGUIProviderUnavailableStateContext, type AgentGUIProviderUnavailableStateRenderer, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, createSharedAgentGUIProviderTarget, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
1160
+ export { AgentActivityHostProvider, type AgentActivityHostProviderProps, type AgentActivityRuntime, type AgentActivityRuntimeCapabilities, type AgentActivityRuntimeCapabilityKey, type AgentActivityRuntimeListSessionMessagesInput, type AgentActivityRuntimePromptContentBlock, AgentActivityRuntimeProvider, type AgentActivityRuntimeProviderProps, type AgentActivityRuntimeRetainSessionEventsInput, type AgentActivityRuntimeSetSessionPinnedInput, type AgentActivityRuntimeUpdateSessionSettingsInput, type AgentActivityRuntimeUploadPromptContentInput, type AgentActivityRuntimeUploadPromptContentResult, type AgentActivityRuntimeWarmupOpenclawGatewayInput, type AgentActivitySnapshotProjection, AgentContextMentionProvider, type AgentCustomMentionChipContext, type AgentCustomMentionIdentity, type AgentCustomMentionKindDefinition, type AgentCustomMentionPresentation, AgentGUI, type AgentGUIAccountMenuState, type AgentGUIProps, AgentGUIProvider, AgentGUIProviderRailAllPresentation, type AgentGUIProviderRailEmptyRenderer, AgentGUIProviderRailMode, AgentGUIProviderReadinessGate, type AgentGUIProviderReadinessGateStateContext, type AgentGUIProviderReadinessGateStateRenderer, AgentGUIProviderTarget, AgentGUIProviderTargetBadge, type AgentGUIProviderUnavailableStateContext, type AgentGUIProviderUnavailableStateRenderer, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, agentActivityRuntimeCapabilityEnabled, agentGUIDefaultTargetProviders, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, createLocalAgentGUIProviderTarget, createLocalAgentGUIProviderTargets, createSharedAgentGUIProviderTarget, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, localAgentGUIAgentTargetId, localAgentGUIProviderTargetId, normalizeAgentGUIProviderTargets, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, resolveAgentGUIProviderTarget, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };