@qwen-code/web-shell 0.27.4 → 0.28.0-nightly.20261120.19b31401f5

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 (217) hide show
  1. package/NOTICES.txt +464 -0
  2. package/README.md +4 -3
  3. package/dist/{PierreFilePreview-BMd8Nqyr.js → PierreFilePreview-CfXrxlQc.js} +1 -1
  4. package/dist/{SpreadsheetPreview-MnZX4z-A.js → SpreadsheetPreview-BPurJ_TG.js} +11 -11
  5. package/dist/{WorkspaceFileBrowser-CvJS8MdL.js → WorkspaceFileBrowser-SyFKPQPx.js} +189 -189
  6. package/dist/WorkspacePdfRangePreview-CsiD3ccc.js +22384 -0
  7. package/dist/agents-route-V3vhM8Gj.js +1746 -0
  8. package/dist/daemon-react-sdk.js +1 -1
  9. package/dist/i18n-ru-CfZvlNRX.js +4399 -0
  10. package/dist/i18n-zh-cn-oYBQlyci.js +4455 -0
  11. package/dist/i18n-zh-tw-meIHyJiH.js +5548 -0
  12. package/dist/{index-ENe4NzKy.js → index-B1Jw6-bY.js} +76003 -78380
  13. package/dist/index.js +3 -3
  14. package/dist/sw.js +1 -1
  15. package/dist/terminal-runtime-BQaN1NCS.js +7881 -0
  16. package/dist/transcript.js +14748 -14211
  17. package/dist/types/App.d.ts +6 -2
  18. package/dist/types/adapters/messageTypes.d.ts +10 -1
  19. package/dist/types/adapters/toolClassification.d.ts +2 -1
  20. package/dist/types/adapters/transcriptAdapter.d.ts +8 -0
  21. package/dist/types/browser-notifications/messages.d.ts +1 -0
  22. package/dist/types/browser-notifications/messages.transcript-stub.d.ts +1 -0
  23. package/dist/types/chat-core/capabilities.d.ts +3 -0
  24. package/dist/types/chat-core/contract.d.ts +106 -0
  25. package/dist/types/chat-core/intent.d.ts +8 -0
  26. package/dist/types/completions/sendCompletion.d.ts +28 -0
  27. package/dist/types/completions/slashCompletion.d.ts +8 -1
  28. package/dist/types/components/BranchPickerPopover.d.ts +11 -1
  29. package/dist/types/components/ChatContextHeader.d.ts +11 -1
  30. package/dist/types/components/ChatEditor.d.ts +7 -1
  31. package/dist/types/components/ChatPane.d.ts +3 -1
  32. package/dist/types/components/ComposerStatusStack.d.ts +8 -0
  33. package/dist/types/components/ComposerTaskChips.d.ts +5 -2
  34. package/dist/types/components/GoalStatusStrip.d.ts +23 -2
  35. package/dist/types/components/LocalFilesControl.d.ts +40 -1
  36. package/dist/types/components/ManagedLocalFilesControl.d.ts +3 -1
  37. package/dist/types/components/MessageItem.d.ts +2 -0
  38. package/dist/types/components/MessageList.d.ts +1 -0
  39. package/dist/types/components/ReportedArtifactRegistration.d.ts +25 -0
  40. package/dist/types/components/RestartRecoveryPanel.d.ts +22 -0
  41. package/dist/types/components/SessionGoalMarker.d.ts +24 -0
  42. package/dist/types/components/ToastHost.d.ts +27 -1
  43. package/dist/types/components/UnavailableModelTooltip.d.ts +4 -2
  44. package/dist/types/components/WebShellTranscript.d.ts +3 -1
  45. package/dist/types/components/artifacts/ArtifactPanel.d.ts +47 -2
  46. package/dist/types/components/artifacts/ArtifactsListPanel.d.ts +13 -0
  47. package/dist/types/components/artifacts/ChangeOverviewPanel.d.ts +4 -0
  48. package/dist/types/components/artifacts/SessionPanel.d.ts +19 -0
  49. package/dist/types/components/artifacts/WorkspacePdfRangePreview.d.ts +10 -0
  50. package/dist/types/components/artifacts/artifactUtils.d.ts +9 -5
  51. package/dist/types/components/artifacts/change-overview.d.ts +102 -0
  52. package/dist/types/components/artifacts/files-messages.d.ts +33 -0
  53. package/dist/types/components/artifacts/files-messages.transcript-stub.d.ts +1 -0
  54. package/dist/types/components/artifacts/token-usage-messages.d.ts +1 -0
  55. package/dist/types/components/artifacts/token-usage-messages.transcript-stub.d.ts +1 -0
  56. package/dist/types/components/artifacts/useChangeOverview.d.ts +21 -0
  57. package/dist/types/components/channels/channel-events-messages.d.ts +1 -0
  58. package/dist/types/components/channels/channel-platform.d.ts +1 -1
  59. package/dist/types/components/dialogs/GoalsDialog.d.ts +2 -1
  60. package/dist/types/components/managed/ManagedArtifactLibraryPage.d.ts +15 -0
  61. package/dist/types/components/managed/ManagedSurfaceDecisionsDialog.d.ts +1 -0
  62. package/dist/types/components/managed/ManagedTerminalPanel.d.ts +0 -1
  63. package/dist/types/components/managed/ManagedWorkspaceNavigation.d.ts +2 -1
  64. package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +14 -2
  65. package/dist/types/components/managed/chat-capabilities.d.ts +5 -0
  66. package/dist/types/components/managed/generated/managed-agent-api.d.ts +100 -6
  67. package/dist/types/components/managed/java-managed-agent-client.d.ts +21 -0
  68. package/dist/types/components/managed/managed-agent-provider.d.ts +4 -1
  69. package/dist/types/components/managed/managed-artifact-library-messages.d.ts +8 -0
  70. package/dist/types/components/managed/managed-artifact-library-messages.transcript-stub.d.ts +8 -0
  71. package/dist/types/components/managed/managed-diagnostics-messages.d.ts +167 -167
  72. package/dist/types/components/managed/managed-extension-install.d.ts +3 -0
  73. package/dist/types/components/managed/managed-extension-messages.d.ts +1 -0
  74. package/dist/types/components/managed/managed-lifecycle-messages.d.ts +40 -0
  75. package/dist/types/components/managed/managed-lifecycle-messages.transcript-stub.d.ts +1 -0
  76. package/dist/types/components/managed/managed-mcp-messages.d.ts +1 -0
  77. package/dist/types/components/managed/managed-mcp-messages.transcript-stub.d.ts +1 -0
  78. package/dist/types/components/managed/managed-recovery-messages.d.ts +4 -1
  79. package/dist/types/components/managed/managed-surface-decisions.d.ts +10 -0
  80. package/dist/types/components/managed/managed-task-messages.d.ts +1 -0
  81. package/dist/types/components/managed/managed-task-messages.transcript-stub.d.ts +1 -0
  82. package/dist/types/components/managed/managed-tool-result-types.d.ts +6 -0
  83. package/dist/types/components/managed/managed-workspace-messages.d.ts +1 -0
  84. package/dist/types/components/managed/managed-workspace-messages.transcript-stub.d.ts +1 -0
  85. package/dist/types/components/managed/use-managed-recovery.d.ts +1 -2
  86. package/dist/types/components/message-deletion-messages.d.ts +1 -0
  87. package/dist/types/components/message-deletion-messages.transcript-stub.d.ts +1 -0
  88. package/dist/types/components/messages/AssistantMessage.d.ts +6 -1
  89. package/dist/types/components/messages/AssistantMessageRow.d.ts +13 -0
  90. package/dist/types/components/messages/AssistantMessageRow.transcript-stub.d.ts +6 -0
  91. package/dist/types/components/messages/BtwMessage.d.ts +6 -0
  92. package/dist/types/components/messages/HookStatistics.d.ts +4 -0
  93. package/dist/types/components/messages/HookStatistics.transcript-stub.d.ts +4 -0
  94. package/dist/types/components/messages/Markdown.d.ts +1 -0
  95. package/dist/types/components/messages/MemoryMessage.d.ts +1 -2
  96. package/dist/types/components/messages/ModAssistantMessage.d.ts +15 -0
  97. package/dist/types/components/messages/UserMessage.d.ts +5 -1
  98. package/dist/types/components/messages/WorkflowExecutionView.d.ts +4 -0
  99. package/dist/types/components/messages/hook-statistics-context.d.ts +13 -0
  100. package/dist/types/components/messages/hook-statistics-turns.d.ts +3 -0
  101. package/dist/types/components/messages/mod-rows.d.ts +53 -0
  102. package/dist/types/components/messages/session-link.d.ts +1 -0
  103. package/dist/types/components/sidebar/ActivityDateSessions.d.ts +22 -0
  104. package/dist/types/components/sidebar/SessionGroupSection.d.ts +4 -2
  105. package/dist/types/components/sidebar/SessionSortMenu.d.ts +15 -1
  106. package/dist/types/components/sidebar/WebShellSidebar.d.ts +1 -1
  107. package/dist/types/components/sidebar/activity-messages.d.ts +1 -0
  108. package/dist/types/components/sidebar/activity-model.d.ts +1 -1
  109. package/dist/types/components/streaming-tail.d.ts +8 -0
  110. package/dist/types/components/streaming-tail.transcript-stub.d.ts +6 -0
  111. package/dist/types/components/terminal/TerminalPanel.d.ts +0 -1
  112. package/dist/types/components/terminal/terminal-runtime.d.ts +8 -0
  113. package/dist/types/components/terminal/use-terminal-runtime.d.ts +6 -0
  114. package/dist/types/components/ui/dialog.d.ts +1 -0
  115. package/dist/types/components/ui/drawer.d.ts +1 -1
  116. package/dist/types/components/workspace-agents/add-runtime-dialog.d.ts +13 -5
  117. package/dist/types/components/workspace-agents/messages.d.ts +1 -0
  118. package/dist/types/components/workspace-agents/messages.transcript-stub.d.ts +1 -0
  119. package/dist/types/constants/approvalModes.d.ts +7 -0
  120. package/dist/types/constants/localCommands.d.ts +3 -1
  121. package/dist/types/constants/sessions.d.ts +1 -0
  122. package/dist/types/customization.d.ts +23 -2
  123. package/dist/types/daemon/chat-capabilities.d.ts +3 -0
  124. package/dist/types/daemon/chat-controller.d.ts +67 -0
  125. package/dist/types/daemon/chat-intents.d.ts +88 -0
  126. package/dist/types/daemon/permission-signals.d.ts +35 -0
  127. package/dist/types/daemon/session/types.d.ts +42 -2
  128. package/dist/types/daemon/useDaemonChatController.d.ts +15 -0
  129. package/dist/types/daemon/workspace/hooks/useDaemonAgents.d.ts +5 -0
  130. package/dist/types/daemon/workspace/hooks/useDaemonAuth.d.ts +5 -0
  131. package/dist/types/daemon/workspace/hooks/useDaemonChannelEvents.d.ts +5 -0
  132. package/dist/types/daemon/workspace/hooks/useDaemonDiagnostics.d.ts +14 -2
  133. package/dist/types/daemon/workspace/hooks/useDaemonMcp.d.ts +5 -0
  134. package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +5 -0
  135. package/dist/types/daemon/workspace/hooks/useDaemonProviders.d.ts +5 -0
  136. package/dist/types/daemon/workspace/hooks/useDaemonResource.d.ts +7 -1
  137. package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +6 -0
  138. package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +5 -0
  139. package/dist/types/daemon/workspace/hooks/useDaemonStatusReport.d.ts +5 -0
  140. package/dist/types/daemon/workspace/hooks/useDaemonTools.d.ts +5 -0
  141. package/dist/types/daemon/workspace/hooks/useDaemonUsageDashboard.d.ts +5 -0
  142. package/dist/types/generated-ui/instance-store.d.ts +4 -1
  143. package/dist/types/generated-ui/view-state.d.ts +51 -0
  144. package/dist/types/hooks/useAtMentionSources.d.ts +1 -1
  145. package/dist/types/hooks/useComposerCore.d.ts +22 -2
  146. package/dist/types/hooks/useComposerWorkspace.d.ts +7 -0
  147. package/dist/types/hooks/useIsTouchComposer.d.ts +1 -0
  148. package/dist/types/hooks/useModelConfigurations.d.ts +7 -0
  149. package/dist/types/hooks/useModelRefresh.d.ts +1 -0
  150. package/dist/types/hooks/useScopedSessions.d.ts +1 -0
  151. package/dist/types/hooks/useSessionArtifacts.d.ts +8 -2
  152. package/dist/types/hooks/useSubSessionTasks.d.ts +8 -0
  153. package/dist/types/i18n-catalogs.d.ts +3 -0
  154. package/dist/types/i18n-catalogs.eager.d.ts +3 -0
  155. package/dist/types/i18n-language.d.ts +2 -0
  156. package/dist/types/i18n-ru-part1.d.ts +1 -0
  157. package/dist/types/i18n-ru-part1.transcript-stub.d.ts +12 -0
  158. package/dist/types/i18n-ru-part2.d.ts +1 -0
  159. package/dist/types/i18n-ru-part2.transcript-stub.d.ts +12 -0
  160. package/dist/types/i18n-ru-part3.d.ts +1 -0
  161. package/dist/types/i18n-ru-part3.transcript-stub.d.ts +12 -0
  162. package/dist/types/i18n-ru-part4.d.ts +1 -0
  163. package/dist/types/i18n-ru-part4.transcript-stub.d.ts +12 -0
  164. package/dist/types/i18n-ru-part5.d.ts +1 -0
  165. package/dist/types/i18n-ru-part5.transcript-stub.d.ts +12 -0
  166. package/dist/types/i18n-ru-part6.d.ts +1 -0
  167. package/dist/types/i18n-ru-part6.transcript-stub.d.ts +12 -0
  168. package/dist/types/i18n-ru-remainder.d.ts +6 -0
  169. package/dist/types/i18n-ru-remainder.transcript-stub.d.ts +11 -0
  170. package/dist/types/i18n-ru.d.ts +7 -0
  171. package/dist/types/i18n-zh-cn.d.ts +7 -0
  172. package/dist/types/i18n-zh-tw.d.ts +8 -0
  173. package/dist/types/i18n-zh-tw.transcript-stub.d.ts +6 -0
  174. package/dist/types/i18n.d.ts +13 -2
  175. package/dist/types/index.d.ts +1 -1
  176. package/dist/types/live/messages.d.ts +1 -0
  177. package/dist/types/live/messages.transcript-stub.d.ts +1 -0
  178. package/dist/types/local-files/useLocalFilesBridge.d.ts +7 -1
  179. package/dist/types/local-files/useManagedLocalFilesBridge.d.ts +5 -1
  180. package/dist/types/mcp-app/messages.d.ts +1 -0
  181. package/dist/types/mcp-app/messages.transcript-stub.d.ts +1 -0
  182. package/dist/types/mcpAppHostContext.d.ts +4 -0
  183. package/dist/types/session-catalog/session-catalog-hooks.d.ts +5 -1
  184. package/dist/types/session-catalog/session-live-work.d.ts +39 -0
  185. package/dist/types/settings/messages.d.ts +1 -0
  186. package/dist/types/settings/messages.transcript-stub.d.ts +1 -0
  187. package/dist/types/settings.d.ts +3 -0
  188. package/dist/types/subagentDetailsContext.d.ts +9 -1
  189. package/dist/types/trajectory/buildTimeline.d.ts +1 -1
  190. package/dist/types/trajectory/execution-messages.d.ts +1 -0
  191. package/dist/types/trajectory/execution-messages.transcript-stub.d.ts +1 -0
  192. package/dist/types/trajectory/filter-messages.d.ts +1 -0
  193. package/dist/types/trajectory/filter-messages.transcript-stub.d.ts +1 -0
  194. package/dist/types/trajectory/project-trajectory-lifecycle.d.ts +1 -1
  195. package/dist/types/trajectory/trajectory-live-store.d.ts +3 -1
  196. package/dist/types/trajectory/types.d.ts +2 -0
  197. package/dist/types/trajectory/window-messages.d.ts +1 -0
  198. package/dist/types/trajectory/window-messages.transcript-stub.d.ts +1 -0
  199. package/dist/types/utils/askUserPermission.d.ts +1 -1
  200. package/dist/types/utils/composerTasks.d.ts +16 -4
  201. package/dist/types/utils/gitModeIntent.d.ts +14 -4
  202. package/dist/types/utils/imageIngestion.d.ts +1 -0
  203. package/dist/types/utils/planMode.d.ts +2 -2
  204. package/dist/types/utils/plural.d.ts +5 -0
  205. package/dist/types/utils/sendCommand.d.ts +31 -0
  206. package/dist/types/utils/sessionPreparation.d.ts +16 -14
  207. package/dist/types/vision-timeout-command.d.ts +17 -0
  208. package/dist/types/voice/VoiceButton.d.ts +9 -1
  209. package/dist/types/voice/messages.d.ts +1 -0
  210. package/dist/types/voice/messages.transcript-stub.d.ts +1 -0
  211. package/dist/types/voice/use-voice-workspace-settings.d.ts +1 -0
  212. package/dist/types/voice/useVoiceCapture.d.ts +8 -0
  213. package/dist/types/voice/voice-workspace-target.d.ts +1 -0
  214. package/dist/{useDaemonMidTurnInjected-BCExZTLK.js → useDaemonMidTurnInjected-BjQ9zxRv.js} +8475 -10940
  215. package/package.json +4 -1
  216. package/dist/agents-route-BYqfB9LM.js +0 -1727
  217. package/dist/types/components/managed/ManagedRecoveryPanel.d.ts +0 -9
@@ -1,4 +1,6 @@
1
1
  export type ToastTone = 'info' | 'warning' | 'error' | 'success';
2
+ export declare const MAX_TOASTS = 4;
3
+ export declare const TOAST_AUTO_DISMISS_MS = 5000;
2
4
  /** Window event that asks the app-level toast host to show a toast. Lets
3
5
  * deeply nested components (markdown links, artifact actions) report failures
4
6
  * without prop-drilling the toast callback. */
@@ -7,7 +9,7 @@ export interface ToastRequestDetail {
7
9
  tone: ToastTone;
8
10
  message: string;
9
11
  }
10
- export declare function requestToast(tone: ToastTone, message: string): void;
12
+ export declare function requestToast(tone: ToastTone, message: string, scope?: Element | null): void;
11
13
  export interface WebShellToast {
12
14
  id: string;
13
15
  tone: ToastTone;
@@ -15,6 +17,14 @@ export interface WebShellToast {
15
17
  /** Epoch ms when the toast auto-dismisses; survives host remounts. */
16
18
  dismissAt: number;
17
19
  }
20
+ /**
21
+ * The toast queue contract shared by App's listener and WindowToastHost, in
22
+ * one place so the two hosts cannot drift: deadline-based auto-dismiss and
23
+ * tone+message de-duplication with a capped stack (a repeat moves to the top
24
+ * instead of stacking twice; the oldest overflow drops).
25
+ */
26
+ export declare function createWebShellToast(tone: ToastTone, message: string, sequence: number): WebShellToast;
27
+ export declare function appendToastDeduped(current: readonly WebShellToast[], toast: WebShellToast): WebShellToast[];
18
28
  interface ToastHostProps {
19
29
  toasts: readonly WebShellToast[];
20
30
  onDismiss: (id: string) => void;
@@ -22,4 +32,20 @@ interface ToastHostProps {
22
32
  elevated?: boolean;
23
33
  }
24
34
  export declare function ToastHost({ toasts, onDismiss, elevated, }: ToastHostProps): import("react/jsx-runtime").JSX.Element | null;
35
+ /**
36
+ * Self-contained host for the window toast channel, for shells that do not
37
+ * carry App's toast state (the managed-only boot path). Same contract as
38
+ * App's listener: non-empty message guard, tone+message de-duplication, a
39
+ * capped stack, and deadline-based auto-dismiss. Without it, requestToast
40
+ * from a nested control dispatches into a document with no listener and the
41
+ * notice is silently dropped.
42
+ *
43
+ * `scope` narrows the listener to one shell's root element: requestToast
44
+ * dispatches on the acting shell's root (bubbling to window), so co-mounted
45
+ * shells do not show each other's notices. Omit it only for a single-shell
46
+ * document.
47
+ */
48
+ export declare function WindowToastHost({ scope }: {
49
+ scope?: HTMLElement | null;
50
+ }): import("react/jsx-runtime").JSX.Element;
25
51
  export {};
@@ -3,11 +3,13 @@
3
3
  * Copyright 2026 Qwen Team
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { type ReactElement } from 'react';
6
+ import { type ComponentProps, type ReactElement } from 'react';
7
7
  import type { WebShellUnavailableModel, WebShellUnavailableModelTooltipMount } from '../unavailableModels';
8
- export declare function UnavailableModelTooltip({ model, mount, enabled, children, }: {
8
+ import { PopoverContent } from './ui/popover';
9
+ export declare function UnavailableModelTooltip({ model, mount, enabled, side, children, }: {
9
10
  model: WebShellUnavailableModel;
10
11
  mount?: WebShellUnavailableModelTooltipMount;
11
12
  enabled?: boolean;
13
+ side?: ComponentProps<typeof PopoverContent>['side'];
12
14
  children: ReactElement;
13
15
  }): import("react/jsx-runtime").JSX.Element;
@@ -8,7 +8,7 @@ export interface WebShellTranscriptProps {
8
8
  blocks: readonly DaemonTranscriptBlock[];
9
9
  renderMode?: 'readonly' | 'document';
10
10
  theme?: WebShellTheme;
11
- language?: 'en' | 'zh-CN' | 'zh' | 'zh-cn' | 'ru' | 'ru-ru';
11
+ language?: 'en' | 'zh-CN' | 'zh' | 'zh-cn' | 'zh-TW' | 'zh-tw' | 'zh-HK' | 'zh-hk' | 'zh-Hant' | 'zh-hant' | 'zh-MO' | 'zh-mo' | 'ru' | 'ru-ru';
12
12
  className?: string;
13
13
  style?: CSSProperties;
14
14
  chatMaxWidth?: number;
@@ -18,6 +18,8 @@ export interface WebShellTranscriptProps {
18
18
  collapseCompletedTurns?: boolean;
19
19
  markdownTableMode?: MarkdownTableMode;
20
20
  virtualScrollThreshold?: number;
21
+ /** Extra transcript rows to render on each side of the viewport when virtualized. Defaults to 15. */
22
+ overscan?: number;
21
23
  markdown?: WebShellMarkdownCustomization;
22
24
  sourceSessionId?: string;
23
25
  sources?: readonly SessionSource[];
@@ -1,4 +1,4 @@
1
- import type { DaemonSessionArtifact, SessionSource, DaemonSessionMonitorTaskStatus, DaemonSessionShellTaskStatus, DaemonSessionTaskStatus } from '@qwen-code/sdk/daemon';
1
+ import type { DaemonSessionArtifact, SessionSource, DaemonSessionMonitorTaskStatus, DaemonSessionShellTaskStatus, DaemonSessionTaskStatus, DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
2
2
  import type { ACPToolCall, TodoItem } from '../../adapters/types';
3
3
  import type { WebShellRightPanelItem } from '../../customization';
4
4
  import { type DaemonContextMemoryDetail, type DaemonSessionOwnerSnapshot, type DaemonSessionActions } from '@qwen-code/web-shell/daemon-react-sdk';
@@ -143,6 +143,13 @@ export type ArtifactPanelTab = {
143
143
  workspaceCwd?: string;
144
144
  nameFromFirstPrompt?: boolean;
145
145
  initialPrompt?: string;
146
+ } | {
147
+ /** Another session, shown read-only: where a `/send` message runs. */
148
+ id: string;
149
+ kind: 'session';
150
+ title: string;
151
+ sessionId: string;
152
+ workspaceCwd: string;
146
153
  } | {
147
154
  id: string;
148
155
  kind: 'terminal';
@@ -175,6 +182,18 @@ export type ArtifactPanelTab = {
175
182
  sessionId: string;
176
183
  sessionActions?: DaemonSessionActions;
177
184
  closeWithPane?: boolean;
185
+ } | {
186
+ id: string;
187
+ kind: 'artifacts';
188
+ title: string;
189
+ sessionId?: string;
190
+ } | {
191
+ id: string;
192
+ kind: 'change_overview';
193
+ title: string;
194
+ workspaceCwd: string;
195
+ workspaceId?: string;
196
+ sessionId?: string;
178
197
  } | {
179
198
  id: string;
180
199
  kind: 'workflow';
@@ -201,6 +220,14 @@ export interface SideTaskListItem {
201
220
  interface ArtifactPanelProps {
202
221
  contextUsageControls?: Readonly<Record<string, ContextUsageControls>>;
203
222
  artifacts: readonly DaemonSessionArtifact[];
223
+ /**
224
+ * The session's own artifacts, matching the header count badge. The list tab
225
+ * renders these rather than the panel-wide merged collection (which also
226
+ * carries pane/open-time extras used for preview-tab icon lookup).
227
+ */
228
+ sessionArtifacts?: readonly DaemonSessionArtifact[];
229
+ /** Open an artifact preview tab from the artifacts list tab. */
230
+ onOpenArtifact?: (artifactId: string) => void;
204
231
  tabs: readonly ArtifactPanelTab[];
205
232
  activeTabId: string | null;
206
233
  reviewChanges: readonly TurnOutputFileChange[];
@@ -218,6 +245,13 @@ interface ArtifactPanelProps {
218
245
  onOpenMemoryFile?: (file: DaemonContextMemoryDetail, workspaceCwd: string) => void;
219
246
  latestReviewAvailable?: boolean;
220
247
  onOpenLatestReview?: () => void;
248
+ /**
249
+ * Offer the delivery-unit change overview tab. Gated on an active workspace
250
+ * (a cwd to scope it to), not on git-ness: a non-git workspace still opens
251
+ * the tab, which reports that it is not a git repository.
252
+ */
253
+ changeOverviewAvailable?: boolean;
254
+ onOpenChangeOverview?: () => void;
221
255
  /** Open an interactive terminal tab in this panel (shown as an empty-state action). */
222
256
  onOpenTerminal?: () => void;
223
257
  /** Open this session's trajectory tab (shown as an empty-state action). */
@@ -254,6 +288,17 @@ interface ArtifactPanelProps {
254
288
  onNestedArtifactsChange?: (sessionId: string, artifacts: readonly DaemonSessionArtifact[]) => void;
255
289
  onOpenNestedSubagent?: (tool: ACPToolCall, sessionId: string, workspaceCwd?: string) => void;
256
290
  agentTasks?: readonly EnvironmentAgentTask[];
291
+ /** The background task shown in the active tab, when it can be explained. */
292
+ explainTask?: DaemonSessionTaskWithWorkflowStatus | null;
293
+ onExplainTask?: (task: DaemonSessionTaskWithWorkflowStatus) => void;
294
+ /** A pending/settled task explanation to mirror in place (taskId-matched). */
295
+ taskExplanation?: {
296
+ messageId: string;
297
+ taskId: string;
298
+ question: string;
299
+ answer: string;
300
+ isPending: boolean;
301
+ } | null;
257
302
  agentTraceLoading?: boolean;
258
303
  agentTraceError?: string;
259
304
  onOpenWorkflowAgent?: (task: EnvironmentAgentTask) => void;
@@ -283,5 +328,5 @@ interface ArtifactPanelProps {
283
328
  fullscreen?: boolean;
284
329
  onToggleFullscreen?: () => void;
285
330
  }
286
- export declare function ArtifactPanel({ contextUsageControls, artifacts, tabs, activeTabId, reviewChanges, selectedReviewPath, panelWidth, workspaceCwd, loading, restoring, error, onSelectTab, onSelectTurnCallsPrompt, onCloseTab, onOpenFilePreview, onOpenMemoryFile, latestReviewAvailable, onOpenLatestReview, onOpenTerminal, onOpenTrajectory, trajectoryTabId, onOpenFiles, onReferenceFile, onOpenWebPreview, onWebPreviewChange, items, sideTaskAvailable, sideTasks, archivedSideTasks, sideTasksLoading, onCreateSideTask, onOpenSideTask, onArchiveSideTasks, onUnarchiveSideTasks, onSideTaskMenuOpen, onCreateSideTaskSession, onSideTaskCreated, onSideTaskTitleChange, onSideTaskInitialPromptRefused, onNestedRightPanelOpen, onNestedArtifactsChange, onOpenNestedSubagent, agentTasks, agentTraceLoading, agentTraceError, onOpenWorkflowAgent, onError, sessionWorkflowEnabled, modelManagement, unavailableModels, mountUnavailableModelTooltip, workflow, onImageIngestionNotice, deferSubagentMount, onClose, variant, fullscreen, onToggleFullscreen, }: ArtifactPanelProps): import("react/jsx-runtime").JSX.Element;
331
+ export declare function ArtifactPanel({ contextUsageControls, artifacts, sessionArtifacts, onOpenArtifact, tabs, activeTabId, reviewChanges, selectedReviewPath, panelWidth, workspaceCwd, loading, restoring, error, onSelectTab, onSelectTurnCallsPrompt, onCloseTab, onOpenFilePreview, onOpenMemoryFile, latestReviewAvailable, onOpenLatestReview, changeOverviewAvailable, onOpenChangeOverview, onOpenTerminal, onOpenTrajectory, trajectoryTabId, onOpenFiles, onReferenceFile, onOpenWebPreview, onWebPreviewChange, items, sideTaskAvailable, sideTasks, archivedSideTasks, sideTasksLoading, onCreateSideTask, onOpenSideTask, onArchiveSideTasks, onUnarchiveSideTasks, onSideTaskMenuOpen, onCreateSideTaskSession, onSideTaskCreated, onSideTaskTitleChange, onSideTaskInitialPromptRefused, onNestedRightPanelOpen, onNestedArtifactsChange, onOpenNestedSubagent, agentTasks, explainTask, onExplainTask, taskExplanation, agentTraceLoading, agentTraceError, onOpenWorkflowAgent, onError, sessionWorkflowEnabled, modelManagement, unavailableModels, mountUnavailableModelTooltip, workflow, onImageIngestionNotice, deferSubagentMount, onClose, variant, fullscreen, onToggleFullscreen, }: ArtifactPanelProps): import("react/jsx-runtime").JSX.Element;
287
332
  export {};
@@ -0,0 +1,13 @@
1
+ import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
2
+ interface ArtifactsListPanelProps {
3
+ artifacts: readonly DaemonSessionArtifact[];
4
+ loading?: boolean;
5
+ onOpenArtifact?: (artifactId: string) => void;
6
+ }
7
+ /**
8
+ * Session artifact list shown as a right-panel tab. The list reads the live
9
+ * `artifacts` prop rather than a tab payload, so the tab stays serializable and
10
+ * never shows a stale snapshot.
11
+ */
12
+ export declare function ArtifactsListPanel({ artifacts, loading, onOpenArtifact, }: ArtifactsListPanelProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare function ChangeOverviewPanel({ workspaceCwd, sessionId, }: {
2
+ workspaceCwd: string;
3
+ sessionId?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
2
+ import type { TurnOutputOpenRequest } from './TurnOutputs';
3
+ interface SessionPanelProps {
4
+ tabId: string;
5
+ sessionId: string;
6
+ workspaceCwd: string;
7
+ title: string;
8
+ onRightPanelOpen?: (request: TurnOutputOpenRequest) => void;
9
+ onArtifactsChange?: (sessionId: string, artifacts: readonly DaemonSessionArtifact[]) => void;
10
+ onError?: (error: unknown, fallback: string) => void;
11
+ onImageIngestionNotice?: (tone: 'warning' | 'error', message: string) => void;
12
+ }
13
+ /**
14
+ * Another session, live, beside this one: where a message sent with `/send`
15
+ * runs. Read-only, but its approvals and questions still show, since nobody
16
+ * else may be watching it.
17
+ */
18
+ export declare function SessionPanel({ tabId, sessionId, workspaceCwd, title, onRightPanelOpen, onArtifactsChange, onError, onImageIngestionNotice, }: SessionPanelProps): import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ArtifactWorkspaceActions } from './useArtifactWorkspaceTarget';
2
+ export default function WorkspacePdfRangePreview({ workspacePath, workspaceActions, initialStat, onOpenFull, }: {
3
+ workspacePath: string;
4
+ workspaceActions: Pick<ArtifactWorkspaceActions, 'stat' | 'readFileBytes'>;
5
+ initialStat: {
6
+ sizeBytes: number;
7
+ modifiedMs: number;
8
+ };
9
+ onOpenFull: () => void;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -20,19 +20,22 @@ export declare function isAudioArtifact(workspacePath?: string, mimeType?: strin
20
20
  export declare function getArtifactFreshnessKey(artifact: Pick<DaemonSessionArtifact, 'status' | 'updatedAt' | 'metadata'>): string;
21
21
  export declare function getArtifactTypeLabel(artifact: DaemonSessionArtifact): string;
22
22
  export declare function formatArtifactSize(sizeBytes: number | undefined): string;
23
+ export declare const MAX_WORKSPACE_FILE_BLOB_BYTES: number;
23
24
  export declare function normalizeArtifactMimeType(mimeType?: string): string;
24
25
  export declare function getArtifactImageMimeType(artifact: Pick<DaemonSessionArtifact, 'mimeType' | 'workspacePath'>): string | undefined;
25
26
  export declare function getImageMimeTypeFromPath(path: string): string | undefined;
26
27
  export declare function getReviewDownloadMimeType(value: string): string;
28
+ interface WorkspaceFileBlobStat {
29
+ sizeBytes: number;
30
+ modifiedMs: number;
31
+ type?: string;
32
+ }
27
33
  export declare function readWorkspaceFileAsBlob(readFileBytes: (filePath: string, opts?: {
28
34
  offset?: number;
29
35
  maxBytes?: number;
30
36
  }) => Promise<Pick<DaemonWorkspaceFileBytes, 'contentBase64' | 'offset' | 'returnedBytes' | 'sizeBytes'>>, filePath: string, mimeType: string, options: {
31
- statFile: (filePath: string) => Promise<{
32
- sizeBytes: number;
33
- modifiedMs: number;
34
- type?: string;
35
- }>;
37
+ statFile: (filePath: string) => Promise<WorkspaceFileBlobStat>;
38
+ initialStat?: WorkspaceFileBlobStat;
36
39
  isCancelled?: () => boolean;
37
40
  maxBytes?: number;
38
41
  }): Promise<Blob>;
@@ -52,3 +55,4 @@ export declare function stripWorkspacePath(path: string, workspaceCwd?: string):
52
55
  export declare function isSamePath(left: string | undefined, right: string | undefined, workspaceCwd?: string): boolean;
53
56
  export declare function artifactPreviewDocument(html: string, title: string): string;
54
57
  export declare function loadArtifactPreviewDocument(html: string, title: string, signal: AbortSignal): Promise<string>;
58
+ export {};
@@ -0,0 +1,102 @@
1
+ import type { DaemonGitCommitDetail } from '@qwen-code/sdk/daemon';
2
+ /** One delivery unit in the change overview: a batch of changed files. */
3
+ export interface ChangeOverviewFile {
4
+ path: string;
5
+ additions: number;
6
+ deletions: number;
7
+ /** Binary rows carry zero counts by design; render a marker, not "+0 -0". */
8
+ isBinary?: boolean;
9
+ }
10
+ /** Why a PR's file list could not be fetched, so the panel can say so honestly. */
11
+ export type PrUnavailableCause = 'cli' | 'route' | 'error';
12
+ export type ChangeOverviewUnit = {
13
+ kind: 'uncommitted';
14
+ id: 'uncommitted';
15
+ files: ChangeOverviewFile[];
16
+ additions: number;
17
+ deletions: number;
18
+ filesCount: number;
19
+ hiddenCount: number;
20
+ } | {
21
+ kind: 'pr';
22
+ id: string;
23
+ number: number;
24
+ title: string;
25
+ url: string;
26
+ /** 'unavailable' when the file list could not be fetched. */
27
+ state: 'ready' | 'unavailable';
28
+ /** Present when state is 'unavailable'; names the actual failure cause. */
29
+ unavailableCause?: PrUnavailableCause;
30
+ files: ChangeOverviewFile[];
31
+ additions: number;
32
+ deletions: number;
33
+ filesCount: number;
34
+ hiddenCount: number;
35
+ } | {
36
+ kind: 'commit';
37
+ id: string;
38
+ sha: string;
39
+ shortSha: string;
40
+ subject: string;
41
+ files: ChangeOverviewFile[];
42
+ additions: number;
43
+ deletions: number;
44
+ filesCount: number;
45
+ hiddenCount: number;
46
+ };
47
+ /**
48
+ * The `[host/]owner/repo` a bound PR's URL points at, so its file list is
49
+ * resolved in that repository rather than by number in the session's checkout
50
+ * (a same number in another repo is a different PR). The host is carried
51
+ * through to `gh --repo` in its documented [HOST/]OWNER/REPO form: dropping it
52
+ * would resolve an Enterprise PR's slug on github.com and could render a
53
+ * foreign same-numbered PR's files under this PR's heading. Returns undefined
54
+ * for anything that is not a plain GitHub PR URL with a valid slug and a bare
55
+ * hostname[:port] host.
56
+ */
57
+ export declare function prRepoFromUrl(url: string): string | undefined;
58
+ /**
59
+ * Classify a failed PR-files fetch from the daemon error's wire shape, so the
60
+ * panel names the real cause instead of always blaming a missing `gh` or an
61
+ * old daemon. `github_cli_unavailable` → gh missing; a 404 → the daemon
62
+ * predates the route; anything else (expired token, rate limit, transient
63
+ * daemon error) → a generic retryable failure.
64
+ */
65
+ export declare function prUnavailableCauseFromError(error: unknown): PrUnavailableCause;
66
+ /**
67
+ * Mirror of the daemon's `isSafeSingleRef` predicate (no range): a ref used as
68
+ * an exclusion must not smuggle a flag, a second revision (`..`), or a leading
69
+ * `^` (git's negation, which `--not` XORs into an inclusion). Used to gate the
70
+ * base branch added to the exclusion set so an unsafe branch name narrows nothing
71
+ * rather than refusing the whole fetch.
72
+ */
73
+ export declare function isSafeSingleRef(ref: string): boolean;
74
+ /**
75
+ * The git log range that yields the commit-fallback window: the session's
76
+ * commits since its start, before reachability exclusion drops the ones a
77
+ * bound PR covers. The boundary is the session's immutable start commit
78
+ * (branch base or worktree base tip); failing that, its base branch.
79
+ *
80
+ * Returns a range string, or one of two suppress sentinels: `null` when a ref
81
+ * git permits but the daemon's whitelist rejects (e.g. `feat@2026`) — composing
82
+ * it would be dropped server-side into an unscoped walk — and `undefined` when
83
+ * no trustworthy boundary exists (no start commit and no base branch). Both
84
+ * suppress the fetch; the overview never walks HEAD unscoped, which would
85
+ * re-list pre-session history as this session's loose work. The literal
86
+ * `'HEAD'` is the daemon's detached-HEAD sentinel (session.ts treats it the
87
+ * same way), not a baseline: `HEAD..HEAD` would be always-empty, so it maps to
88
+ * `undefined` rather than a range.
89
+ */
90
+ export declare function commitFallbackRange(startCommit: string | undefined, baseBranch: string | undefined): string | null | undefined;
91
+ /**
92
+ * Map commit-fallback log entries to units. The caller already fetched the
93
+ * loose window via {@link commitFallbackRange}, so covered commits are absent.
94
+ * Merge commits are skipped — their diff-tree detail is the merge's own
95
+ * introduction, not session work — as are commits whose detail is unavailable.
96
+ */
97
+ export declare function buildCommitFallbackUnits(entries: readonly {
98
+ sha: string;
99
+ shortSha: string;
100
+ subject: string;
101
+ parents: string[];
102
+ }[], details: ReadonlyMap<string, DaemonGitCommitDetail>): ChangeOverviewUnit[];
@@ -64,3 +64,36 @@ export declare const FILES_MESSAGES_ZH: {
64
64
  'files.close': string;
65
65
  'files.sourceTooLarge': string;
66
66
  };
67
+ export declare const FILES_MESSAGES_RU: {
68
+ 'files.delete': string;
69
+ 'files.deleteTitle': string;
70
+ 'files.deleteWarning': string;
71
+ 'files.copyRelativePath': string;
72
+ 'files.copyAbsolutePath': string;
73
+ 'files.reference': string;
74
+ 'files.title': string;
75
+ 'files.newFile': string;
76
+ 'files.newFolder': string;
77
+ 'files.deleteMenu': string;
78
+ 'files.deleteFolderTitle': string;
79
+ 'files.deleteFolderWarning': string;
80
+ 'files.deleting': string;
81
+ 'files.name': string;
82
+ 'files.create': string;
83
+ 'files.creating': string;
84
+ 'files.destination': string;
85
+ 'files.invalidName': string;
86
+ 'files.uploadTo': string;
87
+ 'files.description': string;
88
+ 'files.filter': string;
89
+ 'files.noMatches': string;
90
+ 'files.resizeTree': string;
91
+ 'files.toggleTree': string;
92
+ 'files.closePreview': string;
93
+ 'files.emptyDirectory': string;
94
+ 'files.truncated': string;
95
+ 'files.loadFailed': string;
96
+ 'files.reloadUnavailable': string;
97
+ 'files.close': string;
98
+ 'files.sourceTooLarge': string;
99
+ };
@@ -1,2 +1,3 @@
1
1
  export declare const FILES_MESSAGES_EN: {};
2
2
  export declare const FILES_MESSAGES_ZH: {};
3
+ export declare const FILES_MESSAGES_RU: {};
@@ -6,4 +6,5 @@
6
6
  type TokenUsageMessage = string | ((vars?: Record<string, string | number>) => string);
7
7
  export declare const TOKEN_USAGE_MESSAGES_EN: Record<string, TokenUsageMessage>;
8
8
  export declare const TOKEN_USAGE_MESSAGES_ZH: Record<string, TokenUsageMessage>;
9
+ export declare const TOKEN_USAGE_MESSAGES_RU: Record<string, TokenUsageMessage>;
9
10
  export {};
@@ -5,3 +5,4 @@
5
5
  */
6
6
  export declare const TOKEN_USAGE_MESSAGES_EN: {};
7
7
  export declare const TOKEN_USAGE_MESSAGES_ZH: {};
8
+ export declare const TOKEN_USAGE_MESSAGES_RU: {};
@@ -0,0 +1,21 @@
1
+ import { type ChangeOverviewUnit } from './change-overview';
2
+ export interface ChangeOverviewState {
3
+ /** False when the workspace is not a git repository. */
4
+ gitAvailable: boolean;
5
+ /** True when a fetch failed transiently; retryable, not a workspace property. */
6
+ loadFailed: boolean;
7
+ loading: boolean;
8
+ units: ChangeOverviewUnit[];
9
+ /** True when the commit-fallback window is capped and older commits exist. */
10
+ commitsTruncated: boolean;
11
+ }
12
+ /**
13
+ * Assemble the session's delivery-unit change overview from git: the
14
+ * uncommitted batch, one unit per bound PR (with its changed-file list and
15
+ * scale), and a commit fallback for commits no bound PR covers. Read-only;
16
+ * every fetch degrades gracefully so a missing `gh` or an old daemon never
17
+ * blanks the panel.
18
+ */
19
+ export declare function useChangeOverview(workspaceCwd: string, sessionId?: string): ChangeOverviewState & {
20
+ refresh: () => void;
21
+ };
@@ -6,4 +6,5 @@
6
6
  type ChannelEventsMessage = string | ((vars?: Record<string, string | number>) => string);
7
7
  export declare const CHANNEL_EVENTS_MESSAGES_EN: Record<string, ChannelEventsMessage>;
8
8
  export declare const CHANNEL_EVENTS_MESSAGES_ZH: Record<string, ChannelEventsMessage>;
9
+ export declare const CHANNEL_EVENTS_MESSAGES_RU: Record<string, ChannelEventsMessage>;
9
10
  export {};
@@ -9,7 +9,7 @@ export declare const CHANNEL_METHOD_PLATFORMS: Record<string, {
9
9
  displayName: string;
10
10
  } | undefined>;
11
11
  export declare const PLATFORM_MARKS: Record<string, string>;
12
- export declare function isSupportedChannelType(type: unknown): type is 'dingtalk' | 'dingtalk-webhook' | 'dws' | 'weixin' | 'wecom' | 'wecom-webhook' | 'wecom-callback' | 'feishu' | 'feishu-webhook' | 'github' | 'gitlab' | 'email' | 'qq';
12
+ export declare function isSupportedChannelType(type: unknown): type is 'dingtalk' | 'dingtalk-webhook' | 'dws' | 'weixin' | 'wecom' | 'wecom-webhook' | 'wecom-callback' | 'feishu' | 'feishu-webhook' | 'generic-webhook' | 'github' | 'gitlab' | 'email' | 'qq';
13
13
  export declare function isChannelPlatformAvailable(descriptor: DaemonChannelTypeDescriptor): boolean;
14
14
  export declare function isRepositoryOnlyChannelType(type: unknown): boolean;
15
15
  export declare function isPrivateOnlyChannelType(type: unknown): boolean;
@@ -24,7 +24,8 @@ interface GoalsDialogProps {
24
24
  /** Forces all goal listing through this workspace's route. */
25
25
  lockedWorkspace?: DaemonWorkspaceCapability;
26
26
  /** The workspace the create form defaults to (the App's currently selected
27
- * workspace). Falls back to the primary when absent or not operable. */
27
+ * workspace). Falls back to a creatable primary, else the first creatable
28
+ * entry, when absent or not creatable. */
28
29
  defaultWorkspaceCwd?: string;
29
30
  onError: (error: unknown, fallback: string) => void;
30
31
  }
@@ -0,0 +1,15 @@
1
+ import type { ManagedAgentSessionSummary } from './managed-agent-provider';
2
+ import type { ManagedToolResultReader, ManagedWorkspaceArtifactReader } from './managed-tool-result-types';
3
+ /**
4
+ * Workspace-wide artifact library: one cursor page across the workspace's
5
+ * sessions, with the session-scoped reader reused for preview and download.
6
+ */
7
+ export declare function ManagedArtifactLibraryPage({ library, reader, workspaceId, workspaceLabel, clientId, sessions, onClose, }: {
8
+ library: ManagedWorkspaceArtifactReader;
9
+ reader: ManagedToolResultReader;
10
+ workspaceId: string;
11
+ workspaceLabel: string;
12
+ clientId: string;
13
+ sessions: ManagedAgentSessionSummary[];
14
+ onClose: () => void;
15
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ManagedSurfaceDecisionsDialog(): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,6 @@
3
3
  * Copyright 2025 Qwen Team
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import '@xterm/xterm/css/xterm.css';
7
6
  import type { ManagedAgentTerminalProvider } from './managed-agent-provider';
8
7
  interface ManagedTerminalPanelProps {
9
8
  terminal: ManagedAgentTerminalProvider;
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { ManagedAgentProvider, ManagedAgentSessionSummary, ManagedAgentWorkspace } from './managed-agent-provider';
3
- export declare function ManagedWorkspaceNavigation({ provider, clientId, sessions, sessionId, workspaceId, active, search, revision, onSelectWorkspace, onSelectSession, onWorkspacesChange, renderSessionActions, }: {
3
+ export declare function ManagedWorkspaceNavigation({ provider, clientId, sessions, sessionId, workspaceId, active, search, revision, onSelectWorkspace, onSelectSession, onWorkspacesChange, onOpenArtifactLibrary, renderSessionActions, }: {
4
4
  provider: ManagedAgentProvider;
5
5
  clientId: string;
6
6
  sessions: ManagedAgentSessionSummary[];
@@ -12,5 +12,6 @@ export declare function ManagedWorkspaceNavigation({ provider, clientId, session
12
12
  onSelectWorkspace?: (workspaceId: string) => void;
13
13
  onSelectSession: (sessionId: string, workspaceId?: string) => void;
14
14
  onWorkspacesChange?: (workspaces: ManagedAgentWorkspace[]) => void;
15
+ onOpenArtifactLibrary?: (workspaceId: string, workspaceLabel: string) => void;
15
16
  renderSessionActions?: (session: ManagedAgentSessionSummary) => ReactNode;
16
17
  }): import("react/jsx-runtime").JSX.Element;
@@ -3,8 +3,8 @@ import { type ReactNode } from 'react';
3
3
  import type { WorkspaceSelectorOption } from '../WorkspaceSelector';
4
4
  import { type WelcomeHeaderProps } from '../WelcomeHeader';
5
5
  import { type ComposerFooterRenderer } from '../../customization';
6
- import type { ManagedAgentProvider } from './managed-agent-provider';
7
- export declare function WorkspaceBindingCreator({ provider, workspaceCreationOpen, onWorkspaceCreationOpenChange, onOpenLocalWorkspace, daemonWorkspaces, onSelectDaemonWorkspace, creationOnly, clientId, onCreated, onAbandoned, workspaceId: explicitWorkspaceId, onSelectWorkspace, onWorkspaceCreated, interactive, creationSkills, handoff, onOpenHandoffSource, renderWelcomeHeader, renderWelcomeFooter, renderComposerFooter, alignManagedChatWithHost, }: {
6
+ import type { ManagedAgentProvider, ManagedInputBlock } from './managed-agent-provider';
7
+ export declare function WorkspaceBindingCreator({ provider, workspaceCreationOpen, onWorkspaceCreationOpenChange, onOpenLocalWorkspace, daemonWorkspaces, onSelectDaemonWorkspace, creationOnly, clientId, onCreated, onAbandoned, workspaceId: explicitWorkspaceId, onSelectWorkspace, onWorkspaceCreated, interactive, creationSkills, handoff, onOpenHandoffSource, unconfirmed, onUnconfirmedRetry, onUnconfirmedDiscard, renderWelcomeHeader, renderWelcomeFooter, renderComposerFooter, alignManagedChatWithHost, }: {
8
8
  provider: ManagedAgentProvider;
9
9
  workspaceCreationOpen?: boolean;
10
10
  onWorkspaceCreationOpenChange?: (open: boolean) => void;
@@ -22,6 +22,18 @@ export declare function WorkspaceBindingCreator({ provider, workspaceCreationOpe
22
22
  creationSkills?: ManagedCreationSkillsSource;
23
23
  handoff?: import('./managed-recovery-handoff').ManagedRecoveryHandoff;
24
24
  onOpenHandoffSource?: () => void;
25
+ /**
26
+ * The page's unconfirmed new-task prompt. This surface replaces the
27
+ * transcript, so the notice and both actions have to live here — and its
28
+ * editor is the only place the draft can be handed back to.
29
+ */
30
+ unconfirmed?: {
31
+ text: string;
32
+ input?: readonly ManagedInputBlock[];
33
+ };
34
+ onUnconfirmedRetry?: () => void;
35
+ /** Resolves false when the durable record could not be cleared. */
36
+ onUnconfirmedDiscard?: () => Promise<boolean>;
25
37
  /**
26
38
  * Host welcome renderer for the creation surface, passed through from the
27
39
  * managed page so the first screen a user reaches does not keep the built-in
@@ -0,0 +1,5 @@
1
+ import type { ManagedAgentSessionSummary } from './managed-agent-provider.js';
2
+ import type { ChatRegion } from '../../chat-core/capabilities.js';
3
+ export type ManagedCapabilityKey = keyof ManagedAgentSessionSummary['capabilities'];
4
+ export declare const MANAGED_CHAT_CAPABILITY_MAP: Record<ManagedCapabilityKey, readonly ChatRegion[]>;
5
+ export declare function isManagedCapabilityOn(value: boolean | null | undefined): boolean;