@tutti-os/agent-gui 0.0.94 → 0.0.95

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 (153) hide show
  1. package/README.md +48 -32
  2. package/dist/AgentGUI-CwBLYtv-.d.ts +992 -0
  3. package/dist/agent-conversation/index.d.ts +5 -7
  4. package/dist/agent-conversation/index.js +12 -8
  5. package/dist/agent-conversation/index.js.map +1 -1
  6. package/dist/agent-env/index.d.ts +10 -36
  7. package/dist/agent-env/index.js +1 -56
  8. package/dist/agent-env/index.js.map +1 -1
  9. package/dist/agent-gui.d.ts +21 -0
  10. package/dist/agent-gui.js +39 -0
  11. package/dist/agent-message-center/index.d.ts +145 -124
  12. package/dist/agent-message-center/index.js +1374 -1316
  13. package/dist/agent-message-center/index.js.map +1 -1
  14. package/dist/{agentConversationVM-Cl4G0Lln.d.ts → agentConversationVM-C335TR6S.d.ts} +112 -7
  15. package/dist/agentFileMentionContracts-Czvz6YMI.d.ts +107 -0
  16. package/dist/{agentGuiNodeTypes-CAioPXK9.d.ts → agentGuiNodeTypes-DppADPHW.d.ts} +96 -148
  17. package/dist/agentPlanPromptDispatch-C7cCMjve.d.ts +37 -0
  18. package/dist/agents.d.ts +13 -0
  19. package/dist/agents.js +13 -0
  20. package/dist/app/renderer/agentactivity.css +126 -80
  21. package/dist/app/renderer/assets/icons/agent-vinyls/tutti-vinyl.png +0 -0
  22. package/dist/app/renderer/assets/icons/open-link-lined.svg +4 -0
  23. package/dist/{chunk-P72YLKC6.js → chunk-3R2D4E57.js} +3127 -3398
  24. package/dist/chunk-3R2D4E57.js.map +1 -0
  25. package/dist/chunk-4YG7YK7S.js +23 -0
  26. package/dist/chunk-4YG7YK7S.js.map +1 -0
  27. package/dist/chunk-5X7YDOC6.js +42 -0
  28. package/dist/chunk-5X7YDOC6.js.map +1 -0
  29. package/dist/{chunk-IBIMGLCD.js → chunk-7J4K6WKB.js} +1 -1
  30. package/dist/chunk-7J4K6WKB.js.map +1 -0
  31. package/dist/{chunk-BXVPOGYK.js → chunk-7PFDA2HQ.js} +505 -504
  32. package/dist/chunk-7PFDA2HQ.js.map +1 -0
  33. package/dist/{chunk-AWAIUYG4.js → chunk-7RDD3EWP.js} +513 -555
  34. package/dist/chunk-7RDD3EWP.js.map +1 -0
  35. package/dist/{chunk-UBDPV34P.js → chunk-AOS2VWU6.js} +1355 -1305
  36. package/dist/chunk-AOS2VWU6.js.map +1 -0
  37. package/dist/{chunk-E5FOXRUM.js → chunk-BFNJKTDV.js} +295 -255
  38. package/dist/chunk-BFNJKTDV.js.map +1 -0
  39. package/dist/{chunk-5FE7M42A.js → chunk-BIHBXWK5.js} +2 -2
  40. package/dist/{chunk-7BUYFVRI.js → chunk-C5FV4UGI.js} +2921 -2944
  41. package/dist/chunk-C5FV4UGI.js.map +1 -0
  42. package/dist/{chunk-SCLLP5DO.js → chunk-CRO2MV2Y.js} +36 -46
  43. package/dist/chunk-CRO2MV2Y.js.map +1 -0
  44. package/dist/chunk-FGLQZ6I4.js +9 -0
  45. package/dist/chunk-FGLQZ6I4.js.map +1 -0
  46. package/dist/chunk-H6IQ63DQ.js +14 -0
  47. package/dist/chunk-H6IQ63DQ.js.map +1 -0
  48. package/dist/{chunk-IGY4ASUF.js → chunk-JX2SIXNL.js} +1293 -1702
  49. package/dist/chunk-JX2SIXNL.js.map +1 -0
  50. package/dist/chunk-KAL4XZMA.js +231 -0
  51. package/dist/chunk-KAL4XZMA.js.map +1 -0
  52. package/dist/chunk-KJQERFKX.js +259 -0
  53. package/dist/chunk-KJQERFKX.js.map +1 -0
  54. package/dist/chunk-LQVXBT65.js +491 -0
  55. package/dist/chunk-LQVXBT65.js.map +1 -0
  56. package/dist/{chunk-554VG7ZW.js → chunk-NITOD7WF.js} +2 -2
  57. package/dist/{chunk-7LMJXF4R.js → chunk-NJAZ7LQM.js} +20 -16
  58. package/dist/chunk-NJAZ7LQM.js.map +1 -0
  59. package/dist/chunk-NX3CZJXW.js +25 -0
  60. package/dist/chunk-NX3CZJXW.js.map +1 -0
  61. package/dist/chunk-O6W72SEP.js +93 -0
  62. package/dist/chunk-O6W72SEP.js.map +1 -0
  63. package/dist/chunk-RY6GIO3K.js +31700 -0
  64. package/dist/chunk-RY6GIO3K.js.map +1 -0
  65. package/dist/{chunk-XDV4ZRVK.js → chunk-UGVI47X6.js} +98 -37
  66. package/dist/chunk-UGVI47X6.js.map +1 -0
  67. package/dist/{chunk-XW4CVBUH.js → chunk-UQJPV6HP.js} +18 -11
  68. package/dist/chunk-UQJPV6HP.js.map +1 -0
  69. package/dist/{chunk-GAPTLVII.js → chunk-VF22EG3F.js} +1 -1
  70. package/dist/{chunk-GAPTLVII.js.map → chunk-VF22EG3F.js.map} +1 -1
  71. package/dist/{chunk-45FF4DQU.js → chunk-WEDMAVX2.js} +22 -24
  72. package/dist/chunk-WEDMAVX2.js.map +1 -0
  73. package/dist/{chunk-MATIJPGF.js → chunk-XMO45GKA.js} +531 -401
  74. package/dist/chunk-XMO45GKA.js.map +1 -0
  75. package/dist/{chunk-ZUW4B5AT.js → chunk-YE25HN6T.js} +6 -9
  76. package/dist/chunk-YE25HN6T.js.map +1 -0
  77. package/dist/context-mention-palette/index.d.ts +3 -2
  78. package/dist/context-mention-palette/index.js +19 -14
  79. package/dist/custom-mention.d.ts +44 -0
  80. package/dist/custom-mention.js +17 -0
  81. package/dist/custom-mention.js.map +1 -0
  82. package/dist/dock-icons.d.ts +6 -0
  83. package/dist/dock-icons.js +11 -0
  84. package/dist/dock-icons.js.map +1 -0
  85. package/dist/i18n/index.d.ts +850 -841
  86. package/dist/i18n/index.js +2 -2
  87. package/dist/index.d.ts +52 -1061
  88. package/dist/index.js +72 -35530
  89. package/dist/index.js.map +1 -1
  90. package/dist/mention-search.d.ts +226 -0
  91. package/dist/mention-search.js +29 -0
  92. package/dist/mention-search.js.map +1 -0
  93. package/dist/open-link-lined-JWEKUKME.svg +4 -0
  94. package/dist/provider-icons.d.ts +6 -0
  95. package/dist/provider-icons.js +12 -0
  96. package/dist/provider-icons.js.map +1 -0
  97. package/dist/provider-identity.d.ts +9 -0
  98. package/dist/provider-identity.js +21 -0
  99. package/dist/provider-identity.js.map +1 -0
  100. package/dist/runtime-BBNdWgDU.d.ts +10 -0
  101. package/dist/{types-PLFZ8SBX.d.ts → types-DX2bxgB8.d.ts} +28 -83
  102. package/dist/workbench/contribution.d.ts +32 -40
  103. package/dist/workbench/contribution.js +10 -6
  104. package/dist/workbench/index.d.ts +3 -2
  105. package/dist/workbench/index.js +24 -20
  106. package/dist/workbench/launch.d.ts +2 -5
  107. package/dist/workbench/launch.js +4 -3
  108. package/dist/workbench/providerCatalog.js +2 -1
  109. package/dist/workbench/sessionTitle.d.ts +4 -3
  110. package/dist/workbench/sessionTitle.js +4 -3
  111. package/dist/workbench/state.d.ts +1 -1
  112. package/dist/workbench/state.js +3 -2
  113. package/dist/workbench/types.d.ts +0 -3
  114. package/dist/workbench/types.js +1 -1
  115. package/dist/workspace-agent-generated-files.d.ts +20 -2
  116. package/dist/workspace-agent-generated-files.js +7 -6
  117. package/dist/workspaceAgentActivityListTypes-C7gPWYiA.d.ts +71 -0
  118. package/package.json +63 -26
  119. package/dist/AgentMentionSearchController-DD_WOred.d.ts +0 -241
  120. package/dist/AgentMessageMarkdown-DeYPURtF.d.ts +0 -7
  121. package/dist/chunk-45FF4DQU.js.map +0 -1
  122. package/dist/chunk-4HP6V2YA.js +0 -207
  123. package/dist/chunk-4HP6V2YA.js.map +0 -1
  124. package/dist/chunk-7BUYFVRI.js.map +0 -1
  125. package/dist/chunk-7LMJXF4R.js.map +0 -1
  126. package/dist/chunk-AWAIUYG4.js.map +0 -1
  127. package/dist/chunk-BXVPOGYK.js.map +0 -1
  128. package/dist/chunk-E5FOXRUM.js.map +0 -1
  129. package/dist/chunk-IBIMGLCD.js.map +0 -1
  130. package/dist/chunk-IGY4ASUF.js.map +0 -1
  131. package/dist/chunk-LR4FA5X6.js +0 -368
  132. package/dist/chunk-LR4FA5X6.js.map +0 -1
  133. package/dist/chunk-MATIJPGF.js.map +0 -1
  134. package/dist/chunk-MKHDRIGN.js +0 -71
  135. package/dist/chunk-MKHDRIGN.js.map +0 -1
  136. package/dist/chunk-P72YLKC6.js.map +0 -1
  137. package/dist/chunk-SCLLP5DO.js.map +0 -1
  138. package/dist/chunk-UBDPV34P.js.map +0 -1
  139. package/dist/chunk-VAKFNNKT.js +0 -410
  140. package/dist/chunk-VAKFNNKT.js.map +0 -1
  141. package/dist/chunk-XDV4ZRVK.js.map +0 -1
  142. package/dist/chunk-XW4CVBUH.js.map +0 -1
  143. package/dist/chunk-ZUW4B5AT.js.map +0 -1
  144. package/dist/plan-decision-ops.d.ts +0 -70
  145. package/dist/plan-decision-ops.js +0 -19
  146. package/dist/queued-prompt-runtime.d.ts +0 -115
  147. package/dist/queued-prompt-runtime.js +0 -9
  148. package/dist/workspaceAgentActivityListViewModel-BzV-cf0D.d.ts +0 -340
  149. package/dist/workspaceLinkActions-DS9LWqzI.d.ts +0 -74
  150. /package/dist/{plan-decision-ops.js.map → agent-gui.js.map} +0 -0
  151. /package/dist/{queued-prompt-runtime.js.map → agents.js.map} +0 -0
  152. /package/dist/{chunk-5FE7M42A.js.map → chunk-BIHBXWK5.js.map} +0 -0
  153. /package/dist/{chunk-554VG7ZW.js.map → chunk-NITOD7WF.js.map} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,1073 +1,64 @@
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
- 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-BzV-cf0D.js';
4
- import * as react from 'react';
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-CAioPXK9.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-CAioPXK9.js';
8
- import { I18nRuntime } from '@tutti-os/ui-i18n-runtime';
9
- import { t as AgentProvider, l as AgentHostAgentSessionComposerSettings, j as AgentHostActivateAgentSessionResult, r as AgentHostUpdateAgentSessionSettingsResult, p as AgentHostAgentSessionState, q as AgentHostUnactivateAgentSessionResult, g as AgentGUINodeData, h as AgentGUIProvider, e as AgentGUIAgentTarget, s as AgentPromptContentBlock, A as AgentGUIAgent, P as Point, f as AgentGUIAllAgentsPresentation, b as AgentGUIAgentAvailabilityAction, N as NodeFrame } from './types-PLFZ8SBX.js';
10
- export { a as AgentGUIAgentAvailability, c as AgentGUIAgentAvailabilityStatus, d as AgentGUIAgentOwner } from './types-PLFZ8SBX.js';
11
- import { WorkspaceFileEntry } from '@tutti-os/workspace-file-manager/services';
12
- import { WorkspaceFileReference, ReferenceLocateTarget, WorkspaceFileReferenceAdapter } from '@tutti-os/workspace-file-reference/contracts';
13
- import { ReferenceSourceAggregator } from '@tutti-os/workspace-file-reference/core';
14
- import { U as UiLanguage, a as UiTheme } from './uiSettings-BQS9r2eo.js';
15
- import { W as WorkspaceLinkAction } from './workspaceLinkActions-DS9LWqzI.js';
16
- import { b as AgentConversationPromptVM } from './agentConversationVM-Cl4G0Lln.js';
17
- import { WorkspaceUserProjectI18nRuntime } from '@tutti-os/workspace-user-project/i18n';
18
- import { WorkspaceUserProjectSelectChangeAction } from '@tutti-os/workspace-user-project/ui';
19
- import { WorkspaceUserProject } from '@tutti-os/workspace-user-project/contracts';
20
- import { A as AgentMessageMarkdownWorkspaceAppIcon } from './AgentMessageMarkdown-DeYPURtF.js';
21
- import { A as AgentContextMentionItem } from './AgentMentionSearchController-DD_WOred.js';
22
- export { p as preloadAgentMentionBrowse } from './AgentMentionSearchController-DD_WOred.js';
23
- import { AgentContextMentionProvider } from './context-mention-provider.js';
24
- export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProviderId } from './context-mention-provider.js';
25
- import { AgentQueuedPromptRuntime, AgentQueuedPromptQueueSnapshot } from './queued-prompt-runtime.js';
26
- export { AgentQueuedPromptClaim, AgentQueuedPromptClaimResult, AgentQueuedPromptRetryBlock, AgentQueuedPromptSnapshot, createAgentQueuedPromptRuntime } from './queued-prompt-runtime.js';
27
- import { AgentGuiI18nLocale } from './i18n/index.js';
1
+ export { AGENT_PASTED_TEXT_BLOCK_KIND, AGENT_PASTED_TEXT_MENTION_KIND, AgentCustomMentionChipContext, AgentCustomMentionIdentity, AgentCustomMentionKindDefinition, AgentCustomMentionPresentation, getAgentCustomMentionKind, registerAgentCustomMentionKind, resetAgentCustomMentionKindsForTests } from './custom-mention.js';
2
+ import { A as AgentActivityRuntime } from './AgentGUI-CwBLYtv-.js';
3
+ export { a as AgentActivityRuntimeDeleteSessionSectionResult, b as AgentActivityRuntimeListSessionMessagesInput, c as AgentActivityRuntimePromptContentBlock, d as AgentActivityRuntimeProvider, e as AgentActivityRuntimeProviderProps, f as AgentActivityRuntimeSessionSectionCount, g as AgentActivityRuntimeSessionSectionScopeInput, h as AgentActivityRuntimeSetSessionPinnedInput, i as AgentActivityRuntimeUpdateSessionSettingsInput, j as AgentActivityRuntimeUpdateSessionSettingsResult, k as AgentActivityRuntimeUploadPromptContentInput, l as AgentActivityRuntimeUploadPromptContentResult, m as AgentGUI, n as AgentGUIAccountMenuState, o as AgentGUIAgentsEmptyRenderer, p as AgentGUIProps, q as AgentGUIProviderUnavailableStateContext, r as AgentGUIProviderUnavailableStateRenderer, s as AgentGUISidebarFooterContext, t as AgentGUISidebarFooterRenderer, u as resetAgentActivityRuntimeForTests, v as setAgentActivityRuntimeForTests, w as useAgentActivityRuntime, x as useAgentActivitySnapshot, y as useOptionalAgentActivityRuntime } from './AgentGUI-CwBLYtv-.js';
4
+ export { agentGUIAgentIsReady, normalizeAgentGUIAgents, resolveAgentGUISelectedDirectoryAgent } from './agents.js';
5
+ import { m as AgentGUIProvider, h as AgentGUIAgentTarget, i as AgentGUIAgentTargetBadge } from './types-DX2bxgB8.js';
6
+ export { A as AgentGUIAgent, a as AgentGUIAgentAvailability, b as AgentGUIAgentAvailabilityAction, c as AgentGUIAgentAvailabilityStatus, d as AgentGUIAgentDirectoryPort, e as AgentGUIAgentDirectorySnapshot, f as AgentGUIAgentDirectoryStatus, g as AgentGUIAgentOwner, j as AgentGUIAgentTargetRef, k as AgentGUIAllAgentsPresentation, n as AgentGUIProviderRailAllPresentation, o as AgentGUIProviderRailMode, p as AgentGUIProviderReadinessGate, q as AgentGUIProviderReadinessGateAction, r as AgentGUIProviderReadinessGateStatus } from './types-DX2bxgB8.js';
28
7
  export { AgentGuiI18nProvider, agentGuiI18nModule, agentGuiI18nResources } from './i18n/index.js';
8
+ export { agentGuiDockIconUrl, agentGuiDockIconUrls } from './dock-icons.js';
9
+ import { g as AgentHostInputApi } from './agentGuiNodeTypes-DppADPHW.js';
10
+ export { e as AgentHostApi, f as AgentHostApplyWorkspaceGitPatchInput, h as AgentHostRuntimeApi, i as AgentHostSelectFilesInput, k as AgentProbeProvider, l as AgentProbeSnapshot, m as AgentProviderProbeListInput, n as AgentProviderProbeListResult, q as AgentUsageQuota, r as AgentUsageSnapshot, P as PersistWriteResult, R as ReadWorkspaceAgentReadStateInput, W as WorkspaceAgentReadStateSnapshot, s as WriteWorkspaceAgentReadStateInput } from './agentGuiNodeTypes-DppADPHW.js';
11
+ export { AgentActivityAdapter, AgentActivityController, AgentActivityMessage, AgentActivityNeedsAttentionItem, AgentActivitySnapshot, selectNeedsAttentionCount, selectNeedsAttentionItems } from '@tutti-os/agent-activity-core';
12
+ export { AGENT_CONTEXT_MENTION_PROVIDER_IDS, AgentContextMentionProvider, AgentContextMentionProviderId } from './context-mention-provider.js';
13
+ export { preloadAgentMentionBrowse } from './mention-search.js';
14
+ import { PropsWithChildren, JSX } from 'react';
15
+ export { A as AgentPlanPromptAction, E as EngineStateStore, d as dispatchAgentPlanPromptAction, s as selectAgentPlanPromptTurn, u as useEngineSelector } from './agentPlanPromptDispatch-C7cCMjve.js';
16
+ export { A as AgentGuiI18nLocale } from './runtime-BBNdWgDU.js';
17
+ import '@tutti-os/ui-i18n-runtime';
18
+ import '@tutti-os/workspace-file-reference/contracts';
19
+ import './agentFileMentionContracts-Czvz6YMI.js';
20
+ import '@tutti-os/workspace-file-manager/services';
21
+ import '@tutti-os/workspace-file-reference/core';
22
+ import './uiSettings-BQS9r2eo.js';
23
+ import './agentConversationVM-C335TR6S.js';
29
24
  import '@tutti-os/workspace-issue-manager/core';
30
- import '@tutti-os/ui-rich-text/at-panel';
25
+ import './workspaceAgentActivityListTypes-C7gPWYiA.js';
26
+ import '@tutti-os/workspace-user-project/i18n';
27
+ import '@tutti-os/workspace-user-project/ui';
28
+ import '@tutti-os/workspace-user-project/contracts';
31
29
  import '@tutti-os/ui-rich-text/types';
32
30
  import '@tutti-os/workspace-external-core/contracts';
31
+ import '@tutti-os/ui-rich-text/at-panel';
33
32
 
34
- declare const APP_UPDATE_POLICIES: readonly ["off", "prompt", "auto"];
35
- type AppUpdatePolicy = (typeof APP_UPDATE_POLICIES)[number];
36
-
37
- interface AgentActivitySnapshotProjection {
38
- view: WorkspaceAgentActivityListViewModel;
39
- sessionsById: Record<string, AgentHostWorkspaceAgentSession>;
40
- sessionMessagesById: Record<string, AgentHostWorkspaceAgentMessage[]>;
41
- needsAttentionCount: number;
42
- needsAttentionItems: AgentActivityNeedsAttentionItem[];
43
- }
44
- declare function buildAgentActivitySnapshotProjection(snapshot: AgentActivitySnapshot, options?: BuildWorkspaceAgentActivityListOptions): AgentActivitySnapshotProjection;
45
- declare function agentHostSnapshotFromAgentActivitySnapshot(snapshot: AgentActivitySnapshot): AgentHostWorkspaceAgentSnapshot;
46
- /**
47
- * The single boundary where a raw core session status (e.g. "created",
48
- * "queued") becomes host/GUI vocabulary. Use this for any core status that
49
- * reaches the GUI outside the snapshot projection (cancel / sendInput results).
50
- */
51
- declare function projectCoreSessionStatus(status: string): string;
52
-
53
- interface AgentCustomMentionIdentity {
54
- entityId: string;
55
- label: string;
56
- scope?: Readonly<Record<string, string>>;
57
- }
58
- interface AgentCustomMentionPresentation {
59
- /** chip 第一行(缺省用链接 label)。 */
60
- name: string;
61
- /** chip 第二行(可选,通用双行卡的次要文案)。 */
62
- summary?: string;
63
- /** 所属 workspace(可选;custom kind 的 scope 键由注册方约定)。 */
64
- workspaceId?: string;
65
- }
66
- interface AgentCustomMentionChipContext {
67
- href: string;
68
- name: string;
69
- summary?: string;
70
- isEditable: boolean;
71
- /** 可编辑态的移除按钮,由 NodeView 注入;自定义渲染需自行摆放。 */
72
- removeAction?: ReactNode;
73
- }
74
- interface AgentCustomMentionKindDefinition {
75
- /** mention://<kind>/... 的 providerId(URL hostname,小写)。 */
76
- kind: string;
77
- /**
78
- * 从 canonical mention 链接提取展示字段;返回 null 表示链接无效,
79
- * 退化为普通链接/字面文本。
80
- */
81
- present(mention: AgentCustomMentionIdentity, href: string): AgentCustomMentionPresentation | null;
82
- /** 自定义 chip 渲染;缺省用包内通用双行卡(name + summary)。 */
83
- renderChip?(context: AgentCustomMentionChipContext): ReactNode;
84
- /** 点击是否上抛 open-custom-mention 链接动作;缺省 false(chip 只展示)。 */
85
- clickable?: boolean;
86
- }
87
- declare function registerAgentCustomMentionKind(definition: AgentCustomMentionKindDefinition): void;
88
- declare function getAgentCustomMentionKind(kind: string): AgentCustomMentionKindDefinition | undefined;
89
- declare function resetAgentCustomMentionKindsForTests(): void;
90
-
91
- type AgentCustomModelEnabledByProvider<TProvider extends string> = Record<TProvider, boolean>;
92
- type AgentCustomModelByProvider<TProvider extends string> = Record<TProvider, string>;
93
- type AgentCustomModelOptionsByProvider<TProvider extends string> = Record<TProvider, string[]>;
94
-
95
- type FocusNodeTargetZoom = number;
96
-
97
- declare const COMMAND_IDS: readonly ["commandCenter.toggle", "app.togglePrimarySidebar", "workspaceCanvas.createTerminal"];
98
- type CommandId = (typeof COMMAND_IDS)[number];
99
- type KeyChord = {
100
- code: string;
101
- altKey: boolean;
102
- ctrlKey: boolean;
103
- metaKey: boolean;
104
- shiftKey: boolean;
105
- };
106
- type KeybindingOverrides = Partial<Record<CommandId, KeyChord | null>>;
107
-
108
- declare const CANVAS_INPUT_MODES: readonly ["auto", "mouse", "trackpad"];
109
- type CanvasInputMode = (typeof CANVAS_INPUT_MODES)[number];
110
- declare const CANVAS_WHEEL_BEHAVIORS: readonly ["zoom", "pan"];
111
- type CanvasWheelBehavior = (typeof CANVAS_WHEEL_BEHAVIORS)[number];
112
- declare const CANVAS_WHEEL_ZOOM_MODIFIERS: readonly ["primary", "ctrl", "alt"];
113
- type CanvasWheelZoomModifier = (typeof CANVAS_WHEEL_ZOOM_MODIFIERS)[number];
114
- declare const STANDARD_WINDOW_SIZE_BUCKETS: readonly ["compact", "regular", "large"];
115
- type StandardWindowSizeBucket = (typeof STANDARD_WINDOW_SIZE_BUCKETS)[number];
116
-
117
- type QuickCommand = {
118
- id: string;
119
- title: string;
120
- kind: "terminal";
121
- command: string;
122
- enabled: boolean;
123
- pinned: boolean;
124
- } | {
125
- id: string;
126
- title: string;
127
- kind: "url";
128
- url: string;
129
- enabled: boolean;
130
- pinned: boolean;
131
- };
132
-
133
- type QuickPhrase = {
134
- id: string;
135
- title: string;
136
- content: string;
137
- enabled: boolean;
138
- };
139
-
140
- type AgentEnvRow = {
141
- id: string;
142
- key: string;
143
- value: string;
144
- enabled: boolean;
145
- };
146
- type AgentEnvByProvider = Record<AgentProvider, AgentEnvRow[]>;
147
-
148
- type TerminalProfileId = string | null;
149
- interface AgentSettings {
150
- language: UiLanguage;
151
- uiTheme: UiTheme;
152
- isPrimarySidebarCollapsed: boolean;
153
- defaultProvider: AgentProvider;
154
- agentProviderOrder: AgentProvider[];
155
- agentFullAccess: boolean;
156
- defaultTerminalProfileId: TerminalProfileId;
157
- customModelEnabledByProvider: AgentCustomModelEnabledByProvider<AgentProvider>;
158
- customModelByProvider: AgentCustomModelByProvider<AgentProvider>;
159
- customModelOptionsByProvider: AgentCustomModelOptionsByProvider<AgentProvider>;
160
- quickCommands: QuickCommand[];
161
- quickPhrases: QuickPhrase[];
162
- agentEnvByProvider: AgentEnvByProvider;
163
- focusNodeOnClick: boolean;
164
- focusNodeTargetZoom: FocusNodeTargetZoom;
165
- focusNodeUseVisibleCanvasCenter: boolean;
166
- standbyBannerEnabled: boolean;
167
- standbyBannerShowTask: boolean;
168
- standbyBannerShowSpace: boolean;
169
- standbyBannerShowBranch: boolean;
170
- disableAppShortcutsWhenTerminalFocused: boolean;
171
- keybindings: KeybindingOverrides;
172
- canvasInputMode: CanvasInputMode;
173
- canvasWheelBehavior: CanvasWheelBehavior;
174
- canvasWheelZoomModifier: CanvasWheelZoomModifier;
175
- standardWindowSizeBucket: StandardWindowSizeBucket;
176
- defaultTerminalWindowScalePercent: number;
177
- terminalFontSize: number;
178
- terminalFontFamily: string | null;
179
- uiFontSize: number;
180
- avoidGroupingEdits: boolean;
181
- updatePolicy: AppUpdatePolicy;
182
- hideWorktreeMismatchDropWarning: boolean;
183
- }
184
-
185
- interface AgentActivityRuntimeListSessionMessagesInput {
186
- afterVersion?: number;
187
- beforeVersion?: number;
188
- cache?: boolean;
189
- agentSessionId: string;
190
- limit?: number;
191
- order?: AgentActivityMessageOrder;
192
- signal?: AbortSignal;
193
- workspaceId: string;
194
- }
195
- interface AgentActivityRuntimeListGeneratedFilesInput {
196
- limit?: number;
197
- query?: string;
198
- sessionCwd?: string;
199
- signal?: AbortSignal;
200
- workspaceId: string;
201
- }
202
- interface AgentActivityRuntimeListSessionsPageInput {
203
- limit?: number;
204
- searchQuery?: string;
205
- signal?: AbortSignal;
206
- workspaceId: string;
207
- }
208
- interface AgentActivityRuntimeSessionPageResult {
209
- hasMore: boolean;
210
- nextCursor?: string;
211
- sessions: AgentActivitySession[];
212
- workspaceId: string;
213
- }
214
- interface AgentActivityRuntimeListSessionSectionsInput {
215
- agentTargetId?: string | null;
216
- limitPerSection?: number;
217
- signal?: AbortSignal;
218
- workspaceId: string;
219
- }
220
- interface AgentActivityRuntimeListSessionSectionPageInput {
221
- agentTargetId?: string | null;
222
- cursor?: string;
223
- limit?: number;
224
- sectionKey: string;
225
- signal?: AbortSignal;
226
- workspaceId: string;
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
- }
248
- interface AgentActivityRuntimeListPinnedSessionsPageInput {
249
- agentTargetId?: string | null;
250
- cursor?: string;
251
- limit?: number;
252
- signal?: AbortSignal;
253
- workspaceId: string;
254
- }
255
- interface AgentActivityRuntimeUserProject {
256
- createdAtUnixMs: number;
257
- id: string;
258
- label: string;
259
- lastUsedAtUnixMs?: number;
260
- path: string;
261
- sectionKey: string;
262
- updatedAtUnixMs: number;
263
- }
264
- interface AgentActivityRuntimeSessionSection {
265
- kind: "conversations" | "project";
266
- sectionKey: string;
267
- userProject?: AgentActivityRuntimeUserProject;
268
- sessions: AgentActivitySession[];
269
- hasMore: boolean;
270
- nextCursor?: string;
271
- }
272
- interface AgentActivityRuntimeSessionPage {
273
- sessions: AgentActivitySession[];
274
- hasMore: boolean;
275
- nextCursor?: string;
276
- }
277
- interface AgentActivityRuntimeSessionSectionsResult {
278
- pinned?: AgentActivityRuntimeSessionPage;
279
- sections: AgentActivityRuntimeSessionSection[];
280
- workspaceId: string;
281
- }
282
- interface AgentActivityRuntimeGeneratedFile {
33
+ declare const agentGUIDefaultTargetProviders: readonly AgentGUIProvider[];
34
+ declare function createLocalAgentGUIAgentTarget(provider: AgentGUIProvider): AgentGUIAgentTarget;
35
+ declare function createSharedAgentGUIAgentTarget(input: {
36
+ provider: AgentGUIProvider;
37
+ sharedAgentId: string;
283
38
  label: string;
284
- path: string;
285
- }
286
- interface AgentActivityRuntimeGeneratedFileList {
287
- entries: AgentActivityRuntimeGeneratedFile[];
288
- workspaceId: string;
289
- }
290
- interface AgentActivityRuntimeEnsureSessionSynchronizedInput {
291
- afterVersion?: number;
292
- agentSessionId: string;
293
- onError?: (error: unknown) => void;
294
- workspaceId: string;
295
- }
296
- type AgentActivityRuntimeRetainSessionEventsInput = AgentActivityRuntimeEnsureSessionSynchronizedInput;
297
- interface AgentActivityRuntimeSetSessionPinnedInput {
298
- agentSessionId: string;
299
- pinned: boolean;
300
- workspaceId: string;
301
- }
302
- interface AgentActivityRuntimeTrackSettingsProjectChangeInput {
303
- action: "clear" | "create_new" | "select_existing";
304
- agentSessionId: string;
305
- provider?: string | null;
306
- workspaceId: string;
307
- }
308
- interface AgentActivityRuntimeGetSessionControlStateInput {
309
- agentSessionId: string;
310
- workspaceId: string;
311
- }
312
- interface AgentActivityRuntimeGetComposerOptionsInput {
313
39
  agentTargetId?: string | null;
314
- cwd?: string | null;
315
- force?: boolean;
316
- provider?: string;
317
- settings?: AgentHostAgentSessionComposerSettings | null;
318
- workspaceId: string;
319
- }
320
- interface AgentActivityRuntimeUpdateSessionSettingsInput {
321
- agentSessionId: string;
322
- settings: AgentHostAgentSessionComposerSettings;
323
- workspaceId: string;
324
- }
325
- interface AgentActivityRuntimeTrackDraftComposerSettingsChangeInput {
326
- nextSettings: AgentHostAgentSessionComposerSettings;
327
- previousSettings: AgentHostAgentSessionComposerSettings;
328
- provider: string;
329
- workspaceId: string;
330
- }
331
- interface AgentActivityRuntimeWarmupOpenclawGatewayInput {
332
- workspaceId?: string | null;
333
- }
334
- interface AgentActivityRuntimeDiagnosticInput {
335
- details?: Record<string, unknown>;
336
- event: string;
337
- level?: "debug" | "info" | "warn" | "error";
338
- source?: string;
339
- workspaceId?: string | null;
340
- }
341
- interface AgentActivityRuntimeCapabilities {
342
- canCancel?: boolean;
343
- canSubmitInteractive?: boolean;
344
- canGoalControl?: boolean;
345
- canUploadAttachment?: boolean;
346
- }
347
- type AgentActivityRuntimeCapabilityKey = keyof AgentActivityRuntimeCapabilities;
348
- interface AgentActivityRuntimeActivateSessionInputBase {
349
- agentSessionId: string;
350
- cwd?: string;
351
- initialContent?: AgentActivitySendInput["content"];
352
- /** 仅展示用首轮文本(bundle 折叠成一个 chip);initialContent 仍带展开后的文件。 */
353
- initialDisplayPrompt?: string | null;
354
- metadata?: Record<string, unknown>;
355
- openclawGatewayReady?: boolean;
356
- settings?: AgentHostAgentSessionComposerSettings;
357
- title?: string;
358
- visible?: boolean;
359
- workspaceId: string;
360
- }
361
- type AgentActivityRuntimeActivateSessionInput = (AgentActivityRuntimeActivateSessionInputBase & {
362
- agentTargetId: string;
363
- mode: "new";
364
- }) | (AgentActivityRuntimeActivateSessionInputBase & {
365
- agentTargetId?: string | null;
366
- mode: "existing";
367
- });
368
- interface AgentActivityRuntimeUnactivateSessionInput {
369
- agentSessionId: string;
370
- workspaceId: string;
371
- }
372
- interface AgentActivityRuntimeReadSessionAttachmentInput {
373
- agentSessionId: string;
374
- attachmentId: string;
375
- workspaceId: string;
376
- }
377
- interface AgentActivityRuntimeReadPromptAssetInput {
378
- agentSessionId?: string | null;
379
- assetId?: string | null;
380
- hostPath?: string | null;
381
- kind?: string | null;
382
- mimeType: string;
383
- name?: string | null;
384
- path?: string | null;
385
- sha256?: string | null;
386
- uploadStatus?: string | null;
387
- uri?: string | null;
388
- workspaceId: string;
389
- }
390
- type AgentActivityRuntimePromptContentBlock = AgentActivitySendInput["content"][number] & {
391
- assetId?: string;
392
- hostPath?: string;
393
- kind?: string;
394
- path?: string;
395
- sizeBytes?: number;
396
- uploadStatus?: string;
397
- uri?: string;
398
- };
399
- interface AgentActivityRuntimeUploadPromptContentInput {
400
- content: AgentActivityRuntimePromptContentBlock[];
401
- workspaceId: string;
402
- }
403
- interface AgentActivityRuntimeUploadPromptContentResult {
404
- content: AgentActivityRuntimePromptContentBlock[];
405
- }
406
- interface AgentActivityRuntimeSessionAttachment {
407
- attachmentId: string;
408
- mimeType: string;
409
- name?: string;
410
- data: string;
411
- }
412
- interface AgentActivityRuntimePromptAsset {
413
- assetId?: string;
414
- hostPath?: string;
415
- kind?: string;
416
- mimeType: string;
417
- name?: string;
418
- path: string;
419
- uploadStatus?: string;
420
- uri?: string;
421
- data: string;
422
- }
423
- interface AgentActivityRuntime {
424
- /**
425
- * Stable identity of this runtime instance (e.g. a local origin vs a
426
- * shared/room origin). When present, the conversation-list and session-view
427
- * stores key their query state, runtime resolution, and subscriptions by this
428
- * value, so multiple runtimes can coexist for the same workspace without
429
- * fighting over a single module-global slot. Absent => legacy single-runtime
430
- * behaviour resolved via the module-global.
431
- */
432
- origin?: string;
433
- /**
434
- * The session cwd is not resolvable on the local filesystem (e.g. a
435
- * shared/cloud sandbox not mounted locally), so AgentGUI must not run its
436
- * local stat-based "working directory missing" existence check — it would
437
- * always false-positive. Absent/false (default) => local, legacy behaviour.
438
- * Only that one guard is gated; project selection/listing is unaffected.
439
- */
440
- projectPathIsRemote?: boolean;
441
- promptContentUploadSupport?: {
442
- file?: boolean;
443
- image?: boolean;
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;
455
- cancelSession(input: AgentActivityCancelSessionInput): Promise<AgentActivityCancelSessionResult>;
456
- goalControl(input: AgentActivityGoalControlInput): Promise<AgentActivityGoalControlResult>;
457
- createSession(input: AgentActivityCreateSessionInput): Promise<AgentActivitySession>;
458
- deleteSession(input: AgentActivityDeleteSessionInput): Promise<AgentActivityDeleteSessionResult>;
459
- activateSession(input: AgentActivityRuntimeActivateSessionInput): Promise<AgentHostActivateAgentSessionResult>;
460
- getSession(workspaceId: string, agentSessionId: string): Promise<AgentActivitySession>;
461
- getComposerOptions(input: AgentActivityRuntimeGetComposerOptionsInput): Promise<unknown>;
462
- updateSessionSettings(input: AgentActivityRuntimeUpdateSessionSettingsInput): Promise<AgentHostUpdateAgentSessionSettingsResult>;
463
- warmupOpenclawGateway?(input?: AgentActivityRuntimeWarmupOpenclawGatewayInput): Promise<AgentHostRuntimeOpenclawGatewayWarmupResult>;
464
- getSessionControlState(input: AgentActivityRuntimeGetSessionControlStateInput): Promise<AgentHostAgentSessionState>;
465
- getSnapshot(workspaceId: string): AgentActivitySnapshot;
466
- listSessionMessages(input: AgentActivityRuntimeListSessionMessagesInput): Promise<AgentActivityMessagePage>;
467
- listAgentGeneratedFiles?(input: AgentActivityRuntimeListGeneratedFilesInput): Promise<AgentActivityRuntimeGeneratedFileList>;
468
- listSessionsPage?(input: AgentActivityRuntimeListSessionsPageInput): Promise<AgentActivityRuntimeSessionPageResult>;
469
- listSessionSections?(input: AgentActivityRuntimeListSessionSectionsInput): Promise<AgentActivityRuntimeSessionSectionsResult>;
470
- listSessionSectionPage?(input: AgentActivityRuntimeListSessionSectionPageInput): Promise<AgentActivityRuntimeSessionSection>;
471
- countSessionSection?(input: AgentActivityRuntimeSessionSectionScopeInput): Promise<AgentActivityRuntimeSessionSectionCount>;
472
- deleteSessionSection?(input: AgentActivityRuntimeSessionSectionScopeInput): Promise<AgentActivityRuntimeDeleteSessionSectionResult>;
473
- listPinnedSessionsPage?(input: AgentActivityRuntimeListPinnedSessionsPageInput): Promise<AgentActivityRuntimeSessionPage>;
474
- load(workspaceId: string, signal?: AbortSignal): Promise<AgentActivitySnapshot>;
475
- ensureSessionSynchronized(input: AgentActivityRuntimeEnsureSessionSynchronizedInput): () => void;
476
- /** @deprecated Use ensureSessionSynchronized. */
477
- retainSessionEvents?(input: AgentActivityRuntimeRetainSessionEventsInput): () => void;
478
- sendInput(input: AgentActivitySendInput): Promise<AgentActivitySendInputResult>;
479
- uploadPromptContent?(input: AgentActivityRuntimeUploadPromptContentInput): Promise<AgentActivityRuntimeUploadPromptContentResult>;
480
- readSessionAttachment?(input: AgentActivityRuntimeReadSessionAttachmentInput): Promise<AgentActivityRuntimeSessionAttachment>;
481
- readPromptAsset?(input: AgentActivityRuntimeReadPromptAssetInput): Promise<AgentActivityRuntimePromptAsset>;
482
- renameSession(input: AgentActivityRenameSessionInput): Promise<AgentActivitySession>;
483
- setSessionPinned(input: AgentActivityRuntimeSetSessionPinnedInput): Promise<AgentActivitySession>;
484
- trackSettingsProjectChange?(input: AgentActivityRuntimeTrackSettingsProjectChangeInput): Promise<void>;
485
- trackDraftComposerSettingsChange?(input: AgentActivityRuntimeTrackDraftComposerSettingsChangeInput): Promise<void>;
486
- reportDiagnostic?(input: AgentActivityRuntimeDiagnosticInput): Promise<void> | void;
487
- unactivateSession(input: AgentActivityRuntimeUnactivateSessionInput): Promise<AgentHostUnactivateAgentSessionResult>;
488
- submitInteractive(input: AgentActivitySubmitInteractiveInput): Promise<unknown>;
489
- subscribeSessionEvents(workspaceId: string, listener: (event: unknown) => void): () => void;
490
- subscribe(workspaceId: string, listener: AgentActivitySnapshotListener): () => void;
491
- }
492
- declare function agentActivityRuntimeCapabilityEnabled(runtime: Pick<AgentActivityRuntime, "capabilities"> | null | undefined, capability: AgentActivityRuntimeCapabilityKey): boolean;
493
- interface AgentActivityRuntimeProviderProps extends PropsWithChildren {
494
- runtime?: AgentActivityRuntime | null;
495
- }
496
- declare function AgentActivityRuntimeProvider({ children, runtime }: AgentActivityRuntimeProviderProps): JSX.Element;
497
- declare function useAgentActivityRuntime(): AgentActivityRuntime;
498
- declare function useOptionalAgentActivityRuntime(): AgentActivityRuntime | null;
499
- declare function useAgentActivitySnapshot(workspaceId: string): AgentActivitySnapshot;
500
- declare function getAgentActivityRuntime(): AgentActivityRuntime;
501
- declare function getOptionalAgentActivityRuntime(): AgentActivityRuntime | null;
502
- declare function resetAgentActivityRuntimeForTests(): void;
503
- declare function setAgentActivityRuntimeForTests(runtime: AgentActivityRuntime | null): void;
504
-
505
- interface DesktopSize {
506
- width: number;
507
- height: number;
508
- bottomInset?: number;
509
- }
510
- /** Workspace-scoped agent probes for currently visible Agent GUI windows. */
511
- interface WorkspaceDesktopAgentProbesState {
512
- snapshot: AgentProbeSnapshot | null;
513
- isLoadingAvailability: boolean;
514
- isLoadingUsage: boolean;
515
- /** True when the most recent usage probe fetch failed (the retained snapshot,
516
- * if any, is stale). Lets surfaces show a refresh/retry affordance instead of
517
- * silently displaying old numbers. Absent is treated as "no failure". */
518
- usageLoadFailed?: boolean;
519
- }
520
- type WorkspaceDesktopAgentProbeDemandChange = (provider: AgentProvider | null, sourceId?: string) => void;
521
- type WorkspaceDesktopAgentProbeRefreshRequest = (provider: AgentProvider, sourceId?: string) => void;
522
-
523
- interface AgentGUIComposerDefaults {
524
- model?: string | null;
525
- permissionModeId?: string | null;
526
- reasoningEffort?: string | null;
527
- speed?: string | null;
528
- }
529
- interface AgentGUIRememberComposerDefaultsInput {
530
- agentTargetId: string | null;
531
- provider: AgentGUINodeData["provider"];
532
- defaults: AgentGUIComposerDefaults | null;
533
- }
534
- interface AgentGUIOpenSessionRequest {
535
- agentSessionId: string;
536
- sequence: number;
537
- }
538
- interface AgentGUIPrefillPromptRequest {
40
+ badge?: AgentGUIAgentTargetBadge | null;
41
+ ownerLabel?: string | null;
42
+ iconUrl?: string | null;
43
+ unavailableReason?: string | null;
44
+ disabled?: boolean;
45
+ ref?: Record<string, unknown> | null;
46
+ }): AgentGUIAgentTarget;
47
+ declare function createLocalAgentGUIAgentTargets(providers?: readonly AgentGUIProvider[]): AgentGUIAgentTarget[];
48
+ declare function localAgentGUIAgentTargetId(provider: AgentGUIProvider): string;
49
+ declare function normalizeAgentGUIAgentTargets(targets: readonly AgentGUIAgentTarget[] | null | undefined, options?: {
50
+ includeDisabledPlaceholders?: boolean;
51
+ useStaticCatalog?: boolean;
52
+ }): AgentGUIAgentTarget[];
53
+ declare function resolveAgentGUIAgentTarget(input: {
539
54
  agentTargetId?: string | null;
540
- autoSubmit?: boolean;
541
- draftPrompt: string;
542
- provider?: AgentGUIProvider;
543
- sequence: number;
544
- userProjectPath?: string | null;
545
- }
546
-
547
- interface AgentGUIAccountMenuState {
548
- user: {
549
- userId: string;
550
- name?: string | null;
551
- email?: string | null;
552
- avatar?: string | null;
553
- } | null;
554
- membershipLabel: string;
555
- creditsLabel: string | null;
556
- loading: boolean;
557
- error: string | null;
558
- partialError?: boolean;
559
- registrationCreditsToast?: {
560
- id: string;
561
- creditsLabel: string;
562
- visible: boolean;
563
- autoDismissMs?: number;
564
- onDismiss(): void;
565
- } | null;
566
- links: {
567
- planUrl: string;
568
- usageUrl: string;
569
- settingsUrl: string;
570
- };
571
- onOpenChange(open: boolean): void;
572
- onLogin(): void;
573
- onLogout?(): void;
574
- onSettings?(): void;
575
- onOpenExternal(url: string): void;
576
- }
577
-
578
- interface AgentSlashCommandCapability {
579
- aliases?: readonly string[];
580
- capability: "browserUse" | "computerUse";
581
- kind: "capability";
582
- name: string;
583
- }
584
- type AgentSlashCommandFallbackMode = "provider-default" | "none";
585
-
586
- interface AgentProjectPathChangeMetadata {
587
- action: WorkspaceUserProjectSelectChangeAction;
588
- project?: WorkspaceUserProject;
589
- }
590
-
591
- type AgentDroppedFileReferenceResolver = (files: readonly File[]) => Promise<readonly WorkspaceFileReference[]> | readonly WorkspaceFileReference[];
592
-
593
- type DotLottieElementProps = HTMLAttributes<HTMLElement> & {
594
- autoplay?: boolean;
595
- loop?: boolean;
596
- src?: string;
597
- };
598
- declare module "react" {
599
- namespace JSX {
600
- interface IntrinsicElements {
601
- "dotlottie-wc": DotLottieElementProps;
602
- }
603
- }
604
- }
605
- /**
606
- * 引用 picker 的确认结果:松散文件按 file mention 插入;mentionItems(如文件夹 bundle)
607
- * 作为整体节点插入。两者各走各的插入路径,composer 不需要理解 bundle 内部结构。
608
- */
609
- interface WorkspaceReferencePickResult {
610
- files: readonly WorkspaceFileReference[];
611
- mentionItems: readonly AgentContextMentionItem[];
612
- }
613
- interface AgentComposerSubmitOptions {
614
- }
615
- interface AgentComposerProps {
616
- workspaceId: string;
617
- workspacePath?: string | null;
618
- currentUserId?: string | null;
619
- provider: string;
620
- slashStatus?: AgentComposerSlashStatus | null;
621
- usage?: AgentComposerUsage | null;
622
- draftContent: AgentComposerDraft;
623
- availableCommands: readonly AgentSessionCommand[];
624
- slashCommandFallbackMode?: AgentSlashCommandFallbackMode;
625
- hasCompactableContext?: boolean;
626
- compactSupported?: boolean | null;
627
- availableSkills?: readonly AgentGUIProviderSkillOption[];
628
- disabled: boolean;
629
- disabledReason?: string | null;
630
- /**
631
- * False while submitting is about to start a brand-new conversation (no
632
- * active conversation yet). Starting one is async (session creation +
633
- * activation round trip), so the composer must NOT eagerly clear its own
634
- * draft echo on submit in that case — the view would otherwise show a
635
- * gap where the input is empty and nothing has happened yet. Defaults to
636
- * true so existing/test call sites keep today's immediate-clear behavior.
637
- */
638
- hasActiveConversation?: boolean;
639
- submitDisabled: boolean;
640
- placeholder: string;
641
- composerSettings: AgentGUIComposerSettingsVM;
642
- queuedPrompts: readonly AgentGUIQueuedPromptVM[];
643
- drainingQueuedPromptId: string | null;
644
- workspaceAppIcons?: readonly AgentMessageMarkdownWorkspaceAppIcon[];
645
- selectedAgentTarget?: AgentGUIAgentTarget | null;
646
- agentTargets?: readonly AgentGUIAgentTarget[];
647
- handoffAgentTargets?: readonly AgentGUIAgentTarget[];
648
- providerSelectReadonly?: boolean;
649
- onProviderSelect?: (input: {
650
- provider: AgentGUIProvider;
651
- agentTargetId?: string | null;
652
- }) => void;
653
- onHandoffConversation?: (target: AgentGUIAgentTarget) => void;
654
- canQueueWhileBusy: boolean;
655
- showStopButton: boolean;
656
- activePrompt: AgentConversationPromptVM | null;
657
- backgroundAgentStatusText?: string | null;
658
- activePromptKeyboardShortcutsEnabled?: boolean;
659
- promptTips?: readonly AgentComposerPromptTip[];
660
- isInterrupting: boolean;
661
- isSendingTurn: boolean;
662
- isSubmittingPrompt: boolean;
663
- uiLanguage?: UiLanguage;
664
- isActive?: boolean;
665
- previewMode?: boolean;
666
- workspaceReferencePickerOpen?: boolean;
667
- promptImagesSupported?: boolean;
668
- canGoalControl?: boolean;
669
- canUploadAttachment?: boolean;
670
- composerFocusRequestSequence?: number | null;
671
- layoutMode?: "dock" | "hero";
672
- providerSelectLabel?: string;
673
- handoffLabel?: string;
674
- handoffMenuLabel?: string;
675
- labels: {
676
- send: string;
677
- modelLabel: string;
678
- modelSelectionLabel: string;
679
- modelContextWindowSuffix: string;
680
- modelTooltipVersionLabel: string;
681
- defaultModel: string;
682
- loadingOptions: string;
683
- inheritedUnavailable: string;
684
- loadingConversation: string;
685
- reasoningLabel: string;
686
- reasoningDegreeLabel: string;
687
- reasoningOptionDefault: string;
688
- reasoningOptionMinimal: string;
689
- reasoningOptionLow: string;
690
- reasoningOptionMedium: string;
691
- reasoningOptionHigh: string;
692
- reasoningOptionXHigh: string;
693
- reasoningOptionMax: string;
694
- reasoningOptionUltra: string;
695
- speedLabel: string;
696
- speedSelectionLabel: string;
697
- speedOptionStandard: string;
698
- speedOptionStandardDescription: string;
699
- speedOptionFast: string;
700
- speedOptionFastDescription: string;
701
- permissionLabel: string;
702
- permissionModeReadOnly: string;
703
- permissionModeAuto: string;
704
- permissionModeFullAccess: string;
705
- modelDescriptions: {
706
- frontierComplexCoding: string;
707
- everydayCoding: string;
708
- smallFastCostEfficient: string;
709
- codingOptimized: string;
710
- ultraFastCoding: string;
711
- professionalLongRunning: string;
712
- };
713
- planModeLabel: string;
714
- planModeOnLabel: string;
715
- planModeOffLabel: string;
716
- planUnavailable: string;
717
- goalLabel: string;
718
- browserUseCapabilityLabel: string;
719
- browserUseCapabilityDescription: string;
720
- browserUseCapabilityDescriptionAutoConnect: string;
721
- browserUseCapabilityDescriptionIsolated: string;
722
- browserUseCapabilitySettingsLabel: string;
723
- browserUseCapabilitySettingsDescription: string;
724
- capabilityInlineSettingsLabel: string;
725
- computerUseCapabilityLabel: string;
726
- computerUseCapabilityDescription: string;
727
- computerUseCapabilitySetupRequiredDescription: string;
728
- computerUseCapabilityAuthorizationRequiredDescription: string;
729
- computerUseCapabilityAuthorizationUnknownDescription: string;
730
- computerUseCapabilitySettingsLabel: string;
731
- computerUseCapabilitySettingsDescription: string;
732
- queuedLabel: string;
733
- sendQueuedPromptNext: string;
734
- editQueuedPrompt: string;
735
- deleteQueuedPrompt: string;
736
- queuedPromptMoreActions: string;
737
- stop: string;
738
- stopping: string;
739
- slashCommandPalette: string;
740
- skillPickerPalette: string;
741
- slashPaletteCommandsGroup: string;
742
- slashPaletteCapabilitiesGroup: string;
743
- slashPaletteSkillsGroup: string;
744
- slashPalettePluginsGroup: string;
745
- slashPaletteConnectorsGroup: string;
746
- slashPaletteMcpGroup: string;
747
- slashCommandCompactLabel: string;
748
- slashCommandContextLabel: string;
749
- slashCommandFastLabel: string;
750
- slashCommandGoalLabel: string;
751
- slashCommandInitLabel: string;
752
- slashCommandPlanLabel: string;
753
- slashCommandReviewLabel: string;
754
- slashCommandStatusLabel: string;
755
- slashCommandUsageLabel: string;
756
- slashCommandCompactDescription: string;
757
- slashCommandContextDescription: string;
758
- slashCommandFastDescription: string;
759
- slashCommandGoalDescription: string;
760
- slashCommandInitDescription: string;
761
- slashCommandPlanDescription: string;
762
- slashCommandReviewDescription: string;
763
- slashCommandStatusDescription: string;
764
- slashCommandUsageDescription: string;
765
- slashStatusTitle: string;
766
- slashStatusSession: string;
767
- slashStatusBaseUrl: string;
768
- slashStatusContext: string;
769
- slashStatusLimits: string;
770
- slashStatusClose: string;
771
- slashStatusContextValue: (input: {
772
- percentLeft: number;
773
- usedTokens: string;
774
- totalTokens: string;
775
- }) => string;
776
- slashStatusContextUnavailable: string;
777
- slashStatusLimitsUnavailable: string;
778
- usageChipLabel: (input: {
779
- percent: number;
780
- }) => string;
781
- usageTooltipLabel: string;
782
- usagePopoverTitle: string;
783
- usageContextWindowLabel: string;
784
- usageTokensLabel: string;
785
- usageLimitsLabel: string;
786
- usageCompactAction: string;
787
- approvalLead: string;
788
- planLead: string;
789
- planModes: Array<{
790
- id: string;
791
- label: string;
792
- description: string;
793
- }>;
794
- stayInPlan: string;
795
- sendFeedback: string;
796
- feedbackPlaceholder: string;
797
- previousQuestion: string;
798
- nextQuestion: string;
799
- submitAnswers: string;
800
- answerPlaceholder: string;
801
- waitingForAnswer: string;
802
- planImplementationLead: string;
803
- planImplementationConfirm: string;
804
- planImplementationFeedbackPlaceholder: string;
805
- planImplementationSend: string;
806
- planImplementationSkip: string;
807
- fileMentionPalette: string;
808
- fileMentionLoading: string;
809
- fileMentionEmpty: string;
810
- fileMentionError: string;
811
- fileMentionTabHint: string;
812
- fileDropHint: string;
813
- mentionPalette: string;
814
- removeMention: string;
815
- addReference: string;
816
- addContent: string;
817
- referenceWorkspaceFiles: string;
818
- handoffConversation: string;
819
- handoffConversationTooltip: string;
820
- handoffConversationMenu: string;
821
- providerSwitchLabel: string;
822
- projectLocked: string;
823
- projectMissingDescription: string;
824
- promptTipsPrefix: string;
825
- reviewPicker: {
826
- title: string;
827
- targetLabel: string;
828
- searchPlaceholder: string;
829
- noResults: string;
830
- uncommitted: string;
831
- baseBranch: string;
832
- commit: string;
833
- custom: string;
834
- branchLabel: string;
835
- branchPlaceholder: string;
836
- branchLoading: string;
837
- branchEmpty: string;
838
- commitPlaceholder: string;
839
- customPlaceholder: string;
840
- submit: string;
841
- cancel: string;
842
- };
843
- };
844
- workspaceUserProjectI18n: WorkspaceUserProjectI18nRuntime;
845
- onDraftContentChange: (draftContent: AgentComposerDraft) => void;
846
- onProjectPathChange?: (path: string | null, metadata?: AgentProjectPathChangeMetadata) => void;
847
- onSettingsChange: (settings: {
848
- model?: string | null;
849
- reasoningEffort?: string | null;
850
- speed?: string | null;
851
- planMode?: boolean;
852
- browserUse?: boolean;
853
- computerUse?: boolean;
854
- permissionModeId?: string | null;
855
- }) => void;
856
- capabilityMenuState?: AgentComposerCapabilityMenuState;
857
- onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
858
- onSubmit: (content: AgentPromptContentBlock[], displayPrompt?: string, options?: AgentComposerSubmitOptions) => void;
859
- onSubmitGuidance?: (content: AgentPromptContentBlock[], displayPrompt?: string) => void;
860
- onSendQueuedPromptNext: (queuedPromptId: string) => void;
861
- onRemoveQueuedPrompt: (queuedPromptId: string) => void;
862
- onEditQueuedPrompt: (queuedPromptId: string) => void;
863
- onInterruptCurrentTurn: () => void;
864
- onPromptImagesUnsupported?: () => void;
865
- onSubmitInteractivePrompt: (input: {
866
- requestId: string;
867
- action?: string;
868
- optionId?: string;
869
- payload?: Record<string, unknown>;
870
- }) => void;
871
- onLinkAction?: (action: WorkspaceLinkAction) => void;
872
- onRequestWorkspaceReferences?: ((entity?: AgentContextMentionItem | null) => Promise<WorkspaceReferencePickResult>) | null;
873
- resolveDroppedFileReferences?: AgentDroppedFileReferenceResolver | null;
874
- selectProjectDirectory?: () => Promise<{
875
- path: string;
876
- } | null>;
877
- onRequestGitBranches?: AgentComposerGitBranchLoader | null;
878
- contextMentionProviders?: readonly AgentContextMentionProvider[];
879
- }
880
- type AgentComposerCapabilitySettingsTarget = AgentSlashCommandCapability["capability"];
881
- interface AgentComposerCapabilityMenuState {
882
- browserUse?: {
883
- connectionMode?: "autoConnect" | "isolated" | null;
884
- };
885
- computerUse?: {
886
- authorization?: AgentComposerComputerUseAuthorizationState | null;
887
- installed?: boolean | null;
888
- };
889
- }
890
- type AgentComposerComputerUseAuthorizationState = "authorized" | "needs-authorization" | "unknown";
891
- interface AgentComposerGitBranches {
892
- branches: readonly string[];
893
- currentBranch?: string | null;
894
- }
895
- type AgentComposerGitBranchLoader = (input: {
896
- agentSessionId?: string | null;
897
- workingDirectory?: string | null;
898
- }) => Promise<AgentComposerGitBranches>;
899
- interface AgentComposerPromptTip {
900
- id: string;
901
- label: string;
902
- prompt: string;
903
- }
904
- interface AgentComposerSlashStatus {
905
- agentSessionId?: string | null;
906
- baseUrl?: string | null;
907
- contextWindow?: {
908
- usedTokens?: number | null;
909
- totalTokens?: number | null;
910
- } | null;
911
- limits?: readonly AgentComposerSlashStatusLimit[];
912
- limitsLoading?: boolean;
913
- }
914
- interface AgentComposerSlashStatusLimit {
915
- id: string;
916
- label: string;
917
- percentRemaining?: number | null;
918
- value: string;
919
- reset?: string | null;
920
- }
921
- interface AgentComposerUsage {
922
- percentUsed: number | null;
923
- usedTokens: number | null;
924
- totalTokens: number | null;
925
- }
926
-
927
- /**
928
- * 把 @ 面板里的任务/应用 mention 解析为引用 picker 的定位目标(sourceId + 语义 params)。
929
- * 由宿主(desktop)注入 —— 源 id 与 params 形态是宿主侧 reference source 的知识。
930
- */
931
- type AgentMentionReferenceTargetResolver = (item: AgentContextMentionItem) => ReferenceLocateTarget | null;
932
- interface AgentWorkspaceReferenceInitialTargetInput {
933
- activeConversation: AgentGUINodeViewModel["activeConversation"];
934
- composerSelectedProjectPath: string | null;
935
- userProjects: AgentGUINodeViewModel["userProjects"];
936
- }
937
- type AgentWorkspaceReferenceInitialTargetResolver = (input: AgentWorkspaceReferenceInitialTargetInput) => ReferenceLocateTarget | null;
938
- interface AgentGUISidebarFooterContext {
939
- currentUserId?: string | null;
940
- activeConversation: AgentGUINodeViewModel["activeConversation"];
941
- }
942
- type AgentGUISidebarFooterRenderer = (ctx: AgentGUISidebarFooterContext) => ReactNode;
943
- type AgentGUIAgentsEmptyRenderer = () => ReactNode;
944
- interface AgentGUIAgentUnavailableStateContext {
945
- agent: AgentGUIAgent;
946
- }
947
- type AgentGUIAgentUnavailableStateRenderer = (ctx: AgentGUIAgentUnavailableStateContext) => ReactNode;
948
- interface AgentGUIAgentReadinessStateContext {
949
- agent: AgentGUIAgent;
950
- showAllAgents: boolean;
951
- }
952
- type AgentGUIAgentReadinessStateRenderer = (ctx: AgentGUIAgentReadinessStateContext) => ReactNode;
953
-
954
- interface AgentGUINodeProps {
955
- nodeId: string;
956
- workspaceId: string;
957
- currentUserId?: string | null;
958
- workspacePath: string;
959
- workspaceFileReferenceAdapter?: WorkspaceFileReferenceAdapter | null;
960
- onRequestGitBranches?: AgentComposerGitBranchLoader | null;
961
- selectProjectDirectory?: () => Promise<{
962
- path: string;
963
- } | null>;
964
- resolveDroppedFileReferences?: AgentComposerProps["resolveDroppedFileReferences"];
965
- referenceSourceAggregator?: ReferenceSourceAggregator | null;
966
- resolveWorkspaceReferenceEntryIconUrl?: (entry: WorkspaceFileEntry) => Promise<string | null | undefined>;
967
- resolveMentionReferenceTarget?: AgentMentionReferenceTargetResolver | null;
968
- resolveWorkspaceReferenceInitialTarget?: AgentWorkspaceReferenceInitialTargetResolver | null;
969
- agentSettings: Pick<AgentSettings, "avoidGroupingEdits">;
970
- title: string;
971
- state: AgentGUINodeData;
972
- position: Point;
973
- width: number;
974
- height: number;
975
- desktopSize: DesktopSize;
976
- onLinkAction?: (action: WorkspaceLinkAction) => void;
977
- onHandoffConversation?: (input: {
978
- agentTargetId?: string | null;
979
- draftPrompt: string;
980
- provider: AgentProvider;
981
- userProjectPath?: string | null;
982
- }) => void | Promise<void>;
983
- capabilityMenuState?: AgentComposerCapabilityMenuState;
984
- onCapabilitySettingsRequest?: (capability: AgentComposerCapabilitySettingsTarget) => void;
985
- onAgentProviderLogin?: (provider: AgentProvider) => void;
986
- accountMenuState?: AgentGUIAccountMenuState | null;
987
- agents?: readonly AgentGUIAgent[];
988
- agentsLoading?: boolean;
989
- allAgentsPresentation?: AgentGUIAllAgentsPresentation | null;
990
- /**
991
- * Controls whether AgentGUI adds local provider-default slash commands when
992
- * the runtime advertises none. Defaults to "provider-default".
993
- */
994
- slashCommandFallbackMode?: AgentComposerProps["slashCommandFallbackMode"];
995
- renderAgentsEmpty?: AgentGUIAgentsEmptyRenderer;
996
- renderAgentUnavailableState?: AgentGUIAgentUnavailableStateRenderer;
997
- renderAgentReadinessState?: AgentGUIAgentReadinessStateRenderer;
998
- onAgentAvailabilityAction?: (input: {
999
- action: AgentGUIAgentAvailabilityAction;
1000
- agentTargetId: string;
1001
- }) => void;
1002
- renderSidebarFooter?: (ctx: AgentGUISidebarFooterContext) => ReactNode;
1003
55
  defaultAgentTargetId?: string | null;
1004
- onWorkspaceFileReferencesAdded?: (input: {
1005
- provider: AgentProvider;
1006
- references: readonly WorkspaceFileReference[];
1007
- }) => void | Promise<void>;
1008
- onOpenConversationWindow?: (agentSessionId: string) => void;
1009
- onClose: () => void;
1010
- onResize: (frame: NodeFrame) => void;
1011
- onUpdateNode: (updater: (current: AgentGUINodeData) => AgentGUINodeData) => void;
1012
- onRememberComposerDefaults?: (input: AgentGUIRememberComposerDefaultsInput) => void | Promise<void>;
1013
- isMaximized?: boolean;
1014
- isActive: boolean;
1015
- composerFocusRequestSequence?: number | null;
1016
- openSessionRequest?: AgentGUIOpenSessionRequest | null;
1017
- prefillPromptRequest?: AgentGUIPrefillPromptRequest | null;
1018
- isMuted?: boolean;
1019
- newConversationRequestSequence?: number | null;
1020
- onMinimize?: () => void;
1021
- onToggleMaximize?: () => void;
1022
- onShowMessage?: (message: string, tone?: "info" | "warning" | "error") => void;
1023
- workspaceAgentProbes?: WorkspaceDesktopAgentProbesState | null;
1024
- onAgentProbeDemandChange?: WorkspaceDesktopAgentProbeDemandChange;
1025
- onAgentProbeRefreshRequest?: WorkspaceDesktopAgentProbeRefreshRequest;
1026
- providerAuthAccountLabels?: Partial<Record<string, string>>;
1027
- managedAgentsState?: AgentHostManagedAgentsState | null;
1028
- contextMentionProviders?: readonly AgentContextMentionProvider[];
1029
- workspaceAppIcons?: readonly AgentMessageMarkdownWorkspaceAppIcon[];
1030
- embedded?: boolean;
1031
- previewMode?: boolean;
1032
- }
1033
-
1034
- interface AgentQueuedPromptRuntimeProviderProps extends PropsWithChildren {
1035
- runtime?: AgentQueuedPromptRuntime | null;
1036
- }
1037
- declare function AgentQueuedPromptRuntimeProvider({ children, runtime }: AgentQueuedPromptRuntimeProviderProps): JSX.Element;
1038
- declare function useAgentQueuedPromptRuntime(): AgentQueuedPromptRuntime;
1039
- declare function useAgentQueuedPromptSessionSnapshot(input: {
1040
- agentSessionId: string | null;
1041
- workspaceId: string;
1042
- }): AgentQueuedPromptQueueSnapshot | null;
1043
- declare function resetAgentQueuedPromptRuntimeForTests(): void;
1044
- declare function setAgentQueuedPromptRuntimeForTests(runtime: AgentQueuedPromptRuntime | null): void;
1045
-
1046
- interface AgentGUIProps extends Omit<AgentGUINodeProps, "agents"> {
1047
- agents: readonly AgentGUIAgent[];
1048
- agentActivityRuntime: AgentActivityRuntime;
1049
- agentQueuedPromptRuntime: AgentQueuedPromptRuntime;
1050
- agentHostApi?: AgentHostInputApi | null;
1051
- embedded?: boolean;
1052
- i18n?: I18nRuntime<string> | null;
1053
- locale?: AgentGuiI18nLocale;
1054
- }
1055
- declare const AgentGUI: react.NamedExoticComponent<AgentGUIProps>;
1056
-
1057
- declare function normalizeAgentGUIAgents(agents: readonly AgentGUIAgent[] | null | undefined): AgentGUIAgent[];
1058
-
1059
- declare const agentGuiDockIconUrl: string;
1060
- declare const agentGuiDockIconUrls: {
1061
- readonly "claude-code": string;
1062
- readonly codex: string;
1063
- readonly cursor: string;
1064
- readonly hermes: string;
1065
- readonly nexight: string;
1066
- readonly openclaw: string;
1067
- readonly opencode: string;
1068
- readonly "tutti-agent": string;
1069
- };
56
+ provider: AgentGUIProvider;
57
+ agentTargets: readonly AgentGUIAgentTarget[];
58
+ useStaticCatalog?: boolean;
59
+ }): AgentGUIAgentTarget | null;
1070
60
 
61
+ declare const AGENT_GUI_DETAIL_MIN_WIDTH_PX = 220;
1071
62
  interface AgentGUIExpandedWindowFrameInput {
1072
63
  position: {
1073
64
  x: number;
@@ -1099,4 +90,4 @@ interface AgentActivityHostProviderProps extends PropsWithChildren {
1099
90
  }
1100
91
  declare function AgentActivityHostProvider({ agentActivityRuntime, agentHostApi, children }: AgentActivityHostProviderProps): JSX.Element;
1101
92
 
1102
- 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, AgentGUIAgent, AgentGUIAgentAvailabilityAction, type AgentGUIAgentReadinessStateContext, type AgentGUIAgentReadinessStateRenderer, type AgentGUIAgentUnavailableStateContext, type AgentGUIAgentUnavailableStateRenderer, type AgentGUIAgentsEmptyRenderer, AgentGUIAllAgentsPresentation, type AgentGUIProps, AgentGUIProvider, type AgentGUISidebarFooterContext, type AgentGUISidebarFooterRenderer, AgentGuiI18nLocale, AgentHostInputApi, AgentProbeSnapshot, AgentQueuedPromptQueueSnapshot, AgentQueuedPromptRuntime, AgentQueuedPromptRuntimeProvider, type AgentQueuedPromptRuntimeProviderProps, type AgentSlashCommandFallbackMode, agentActivityRuntimeCapabilityEnabled, agentGuiDockIconUrl, agentGuiDockIconUrls, agentHostSnapshotFromAgentActivitySnapshot, buildAgentActivitySnapshotProjection, getAgentActivityRuntime, getAgentCustomMentionKind, getOptionalAgentActivityRuntime, normalizeAgentGUIAgents, projectCoreSessionStatus, registerAgentCustomMentionKind, resetAgentActivityRuntimeForTests, resetAgentCustomMentionKindsForTests, resetAgentQueuedPromptRuntimeForTests, resolveAgentGUIExpandedWindowFrame, setAgentActivityRuntimeForTests, setAgentQueuedPromptRuntimeForTests, shouldAutoCollapseAgentGUIConversationRail, useAgentActivityRuntime, useAgentActivitySnapshot, useAgentQueuedPromptRuntime, useAgentQueuedPromptSessionSnapshot, useOptionalAgentActivityRuntime };
93
+ export { AGENT_GUI_DETAIL_MIN_WIDTH_PX, AgentActivityHostProvider, type AgentActivityHostProviderProps, AgentActivityRuntime, AgentGUIAgentTarget, AgentGUIAgentTargetBadge, AgentGUIProvider, AgentHostInputApi, agentGUIDefaultTargetProviders, createLocalAgentGUIAgentTarget, createLocalAgentGUIAgentTargets, createSharedAgentGUIAgentTarget, localAgentGUIAgentTargetId, normalizeAgentGUIAgentTargets, resolveAgentGUIAgentTarget, resolveAgentGUIExpandedWindowFrame, shouldAutoCollapseAgentGUIConversationRail };