@qwen-code/web-shell 0.27.4 → 0.28.0-nightly.20261118.d9ac287c9f

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 (165) hide show
  1. package/README.md +3 -3
  2. package/dist/{PierreFilePreview-BMd8Nqyr.js → PierreFilePreview-702EU5Ue.js} +1 -1
  3. package/dist/{SpreadsheetPreview-MnZX4z-A.js → SpreadsheetPreview-Dxgc_9mv.js} +11 -11
  4. package/dist/{WorkspaceFileBrowser-CvJS8MdL.js → WorkspaceFileBrowser-XlJixW-G.js} +2 -2
  5. package/dist/agents-route-B5igtzLt.js +1746 -0
  6. package/dist/daemon-react-sdk.js +1 -1
  7. package/dist/{index-ENe4NzKy.js → index-D0g0Svhz.js} +69257 -65377
  8. package/dist/index.js +3 -3
  9. package/dist/sw.js +1 -1
  10. package/dist/transcript.js +10623 -10223
  11. package/dist/types/App.d.ts +1 -1
  12. package/dist/types/adapters/messageTypes.d.ts +6 -1
  13. package/dist/types/adapters/toolClassification.d.ts +2 -1
  14. package/dist/types/browser-notifications/messages.d.ts +1 -0
  15. package/dist/types/browser-notifications/messages.transcript-stub.d.ts +1 -0
  16. package/dist/types/chat-core/capabilities.d.ts +3 -0
  17. package/dist/types/chat-core/contract.d.ts +106 -0
  18. package/dist/types/chat-core/intent.d.ts +8 -0
  19. package/dist/types/completions/sendCompletion.d.ts +28 -0
  20. package/dist/types/completions/slashCompletion.d.ts +8 -1
  21. package/dist/types/components/BranchPickerPopover.d.ts +11 -1
  22. package/dist/types/components/ChatContextHeader.d.ts +5 -1
  23. package/dist/types/components/ChatEditor.d.ts +7 -1
  24. package/dist/types/components/ChatPane.d.ts +3 -1
  25. package/dist/types/components/ComposerStatusStack.d.ts +8 -0
  26. package/dist/types/components/ComposerTaskChips.d.ts +5 -2
  27. package/dist/types/components/GoalStatusStrip.d.ts +23 -2
  28. package/dist/types/components/LocalFilesControl.d.ts +40 -1
  29. package/dist/types/components/ManagedLocalFilesControl.d.ts +3 -1
  30. package/dist/types/components/MessageItem.d.ts +2 -0
  31. package/dist/types/components/MessageList.d.ts +1 -0
  32. package/dist/types/components/ReportedArtifactRegistration.d.ts +25 -0
  33. package/dist/types/components/SessionGoalMarker.d.ts +24 -0
  34. package/dist/types/components/ToastHost.d.ts +27 -1
  35. package/dist/types/components/UnavailableModelTooltip.d.ts +4 -2
  36. package/dist/types/components/WebShellTranscript.d.ts +1 -1
  37. package/dist/types/components/artifacts/ArtifactPanel.d.ts +34 -2
  38. package/dist/types/components/artifacts/ChangeOverviewPanel.d.ts +4 -0
  39. package/dist/types/components/artifacts/SessionPanel.d.ts +19 -0
  40. package/dist/types/components/artifacts/change-overview.d.ts +102 -0
  41. package/dist/types/components/artifacts/files-messages.d.ts +33 -0
  42. package/dist/types/components/artifacts/files-messages.transcript-stub.d.ts +1 -0
  43. package/dist/types/components/artifacts/token-usage-messages.d.ts +1 -0
  44. package/dist/types/components/artifacts/token-usage-messages.transcript-stub.d.ts +1 -0
  45. package/dist/types/components/artifacts/useChangeOverview.d.ts +21 -0
  46. package/dist/types/components/channels/channel-events-messages.d.ts +1 -0
  47. package/dist/types/components/channels/channel-platform.d.ts +1 -1
  48. package/dist/types/components/dialogs/GoalsDialog.d.ts +2 -1
  49. package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +14 -2
  50. package/dist/types/components/managed/chat-capabilities.d.ts +5 -0
  51. package/dist/types/components/managed/generated/managed-agent-api.d.ts +4 -4
  52. package/dist/types/components/managed/managed-diagnostics-messages.d.ts +167 -167
  53. package/dist/types/components/managed/managed-extension-messages.d.ts +1 -0
  54. package/dist/types/components/managed/managed-lifecycle-messages.d.ts +40 -0
  55. package/dist/types/components/managed/managed-lifecycle-messages.transcript-stub.d.ts +1 -0
  56. package/dist/types/components/managed/managed-mcp-messages.d.ts +1 -0
  57. package/dist/types/components/managed/managed-mcp-messages.transcript-stub.d.ts +1 -0
  58. package/dist/types/components/managed/managed-recovery-messages.d.ts +4 -1
  59. package/dist/types/components/managed/managed-task-messages.d.ts +1 -0
  60. package/dist/types/components/managed/managed-task-messages.transcript-stub.d.ts +1 -0
  61. package/dist/types/components/managed/managed-workspace-messages.d.ts +1 -0
  62. package/dist/types/components/managed/managed-workspace-messages.transcript-stub.d.ts +1 -0
  63. package/dist/types/components/managed/use-managed-recovery.d.ts +1 -2
  64. package/dist/types/components/message-deletion-messages.d.ts +1 -0
  65. package/dist/types/components/message-deletion-messages.transcript-stub.d.ts +1 -0
  66. package/dist/types/components/messages/AssistantMessage.d.ts +2 -0
  67. package/dist/types/components/messages/BtwMessage.d.ts +6 -0
  68. package/dist/types/components/messages/HookStatistics.d.ts +4 -0
  69. package/dist/types/components/messages/HookStatistics.transcript-stub.d.ts +4 -0
  70. package/dist/types/components/messages/MemoryMessage.d.ts +1 -2
  71. package/dist/types/components/messages/UserMessage.d.ts +5 -1
  72. package/dist/types/components/messages/hook-statistics-context.d.ts +13 -0
  73. package/dist/types/components/messages/hook-statistics-turns.d.ts +3 -0
  74. package/dist/types/components/messages/session-link.d.ts +1 -0
  75. package/dist/types/components/panels/EnvironmentPanel.d.ts +7 -1
  76. package/dist/types/components/sidebar/ActivityDateSessions.d.ts +22 -0
  77. package/dist/types/components/sidebar/SessionGroupSection.d.ts +4 -2
  78. package/dist/types/components/sidebar/SessionSortMenu.d.ts +15 -1
  79. package/dist/types/components/sidebar/WebShellSidebar.d.ts +1 -1
  80. package/dist/types/components/sidebar/activity-messages.d.ts +1 -0
  81. package/dist/types/components/sidebar/activity-model.d.ts +1 -1
  82. package/dist/types/components/ui/drawer.d.ts +1 -1
  83. package/dist/types/components/workspace-agents/add-runtime-dialog.d.ts +13 -5
  84. package/dist/types/components/workspace-agents/messages.d.ts +1 -0
  85. package/dist/types/components/workspace-agents/messages.transcript-stub.d.ts +1 -0
  86. package/dist/types/constants/approvalModes.d.ts +7 -0
  87. package/dist/types/constants/localCommands.d.ts +3 -1
  88. package/dist/types/constants/sessions.d.ts +1 -0
  89. package/dist/types/customization.d.ts +10 -2
  90. package/dist/types/daemon/chat-capabilities.d.ts +3 -0
  91. package/dist/types/daemon/session/types.d.ts +42 -2
  92. package/dist/types/daemon/workspace/hooks/useDaemonAgents.d.ts +5 -0
  93. package/dist/types/daemon/workspace/hooks/useDaemonAuth.d.ts +5 -0
  94. package/dist/types/daemon/workspace/hooks/useDaemonChannelEvents.d.ts +5 -0
  95. package/dist/types/daemon/workspace/hooks/useDaemonDiagnostics.d.ts +14 -2
  96. package/dist/types/daemon/workspace/hooks/useDaemonMcp.d.ts +5 -0
  97. package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +5 -0
  98. package/dist/types/daemon/workspace/hooks/useDaemonProviders.d.ts +5 -0
  99. package/dist/types/daemon/workspace/hooks/useDaemonResource.d.ts +7 -1
  100. package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +6 -0
  101. package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +5 -0
  102. package/dist/types/daemon/workspace/hooks/useDaemonStatusReport.d.ts +5 -0
  103. package/dist/types/daemon/workspace/hooks/useDaemonTools.d.ts +5 -0
  104. package/dist/types/daemon/workspace/hooks/useDaemonUsageDashboard.d.ts +5 -0
  105. package/dist/types/generated-ui/instance-store.d.ts +4 -1
  106. package/dist/types/generated-ui/view-state.d.ts +51 -0
  107. package/dist/types/hooks/useComposerCore.d.ts +22 -2
  108. package/dist/types/hooks/useComposerWorkspace.d.ts +7 -0
  109. package/dist/types/hooks/useIsTouchComposer.d.ts +1 -0
  110. package/dist/types/hooks/useModelConfigurations.d.ts +7 -0
  111. package/dist/types/hooks/useScopedSessions.d.ts +1 -0
  112. package/dist/types/hooks/useSessionArtifacts.d.ts +8 -2
  113. package/dist/types/hooks/useSubSessionTasks.d.ts +8 -0
  114. package/dist/types/i18n-ru-part1.d.ts +1 -0
  115. package/dist/types/i18n-ru-part1.transcript-stub.d.ts +12 -0
  116. package/dist/types/i18n-ru-part2.d.ts +1 -0
  117. package/dist/types/i18n-ru-part2.transcript-stub.d.ts +12 -0
  118. package/dist/types/i18n-ru-part3.d.ts +1 -0
  119. package/dist/types/i18n-ru-part3.transcript-stub.d.ts +12 -0
  120. package/dist/types/i18n-ru-part4.d.ts +1 -0
  121. package/dist/types/i18n-ru-part4.transcript-stub.d.ts +12 -0
  122. package/dist/types/i18n-ru-part5.d.ts +1 -0
  123. package/dist/types/i18n-ru-part5.transcript-stub.d.ts +12 -0
  124. package/dist/types/i18n-ru-part6.d.ts +1 -0
  125. package/dist/types/i18n-ru-part6.transcript-stub.d.ts +12 -0
  126. package/dist/types/i18n-ru-remainder.d.ts +6 -0
  127. package/dist/types/i18n-ru-remainder.transcript-stub.d.ts +11 -0
  128. package/dist/types/i18n-zh-tw.d.ts +8 -0
  129. package/dist/types/i18n-zh-tw.transcript-stub.d.ts +6 -0
  130. package/dist/types/i18n.d.ts +7 -1
  131. package/dist/types/live/messages.d.ts +1 -0
  132. package/dist/types/live/messages.transcript-stub.d.ts +1 -0
  133. package/dist/types/local-files/useLocalFilesBridge.d.ts +7 -1
  134. package/dist/types/local-files/useManagedLocalFilesBridge.d.ts +5 -1
  135. package/dist/types/mcp-app/messages.d.ts +1 -0
  136. package/dist/types/mcp-app/messages.transcript-stub.d.ts +1 -0
  137. package/dist/types/mcpAppHostContext.d.ts +4 -0
  138. package/dist/types/session-catalog/session-catalog-hooks.d.ts +5 -1
  139. package/dist/types/session-catalog/session-live-work.d.ts +23 -0
  140. package/dist/types/settings/messages.d.ts +1 -0
  141. package/dist/types/settings/messages.transcript-stub.d.ts +1 -0
  142. package/dist/types/subagentDetailsContext.d.ts +9 -1
  143. package/dist/types/trajectory/execution-messages.d.ts +1 -0
  144. package/dist/types/trajectory/execution-messages.transcript-stub.d.ts +1 -0
  145. package/dist/types/trajectory/filter-messages.d.ts +1 -0
  146. package/dist/types/trajectory/filter-messages.transcript-stub.d.ts +1 -0
  147. package/dist/types/trajectory/project-trajectory-lifecycle.d.ts +1 -1
  148. package/dist/types/trajectory/trajectory-live-store.d.ts +3 -1
  149. package/dist/types/trajectory/window-messages.d.ts +1 -0
  150. package/dist/types/trajectory/window-messages.transcript-stub.d.ts +1 -0
  151. package/dist/types/utils/composerTasks.d.ts +16 -4
  152. package/dist/types/utils/gitModeIntent.d.ts +14 -4
  153. package/dist/types/utils/imageIngestion.d.ts +1 -0
  154. package/dist/types/utils/planMode.d.ts +2 -2
  155. package/dist/types/utils/plural.d.ts +5 -0
  156. package/dist/types/utils/sendCommand.d.ts +31 -0
  157. package/dist/types/voice/VoiceButton.d.ts +9 -1
  158. package/dist/types/voice/messages.d.ts +1 -0
  159. package/dist/types/voice/messages.transcript-stub.d.ts +1 -0
  160. package/dist/types/voice/useVoiceCapture.d.ts +8 -0
  161. package/dist/useDaemonMidTurnInjected-CImeR4Nm.js +37291 -0
  162. package/package.json +1 -1
  163. package/dist/agents-route-BYqfB9LM.js +0 -1727
  164. package/dist/types/components/managed/ManagedRecoveryPanel.d.ts +0 -9
  165. package/dist/useDaemonMidTurnInjected-BCExZTLK.js +0 -26004
@@ -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,13 @@ export type ArtifactPanelTab = {
175
182
  sessionId: string;
176
183
  sessionActions?: DaemonSessionActions;
177
184
  closeWithPane?: boolean;
185
+ } | {
186
+ id: string;
187
+ kind: 'change_overview';
188
+ title: string;
189
+ workspaceCwd: string;
190
+ workspaceId?: string;
191
+ sessionId?: string;
178
192
  } | {
179
193
  id: string;
180
194
  kind: 'workflow';
@@ -218,6 +232,13 @@ interface ArtifactPanelProps {
218
232
  onOpenMemoryFile?: (file: DaemonContextMemoryDetail, workspaceCwd: string) => void;
219
233
  latestReviewAvailable?: boolean;
220
234
  onOpenLatestReview?: () => void;
235
+ /**
236
+ * Offer the delivery-unit change overview tab. Gated on an active workspace
237
+ * (a cwd to scope it to), not on git-ness: a non-git workspace still opens
238
+ * the tab, which reports that it is not a git repository.
239
+ */
240
+ changeOverviewAvailable?: boolean;
241
+ onOpenChangeOverview?: () => void;
221
242
  /** Open an interactive terminal tab in this panel (shown as an empty-state action). */
222
243
  onOpenTerminal?: () => void;
223
244
  /** Open this session's trajectory tab (shown as an empty-state action). */
@@ -254,6 +275,17 @@ interface ArtifactPanelProps {
254
275
  onNestedArtifactsChange?: (sessionId: string, artifacts: readonly DaemonSessionArtifact[]) => void;
255
276
  onOpenNestedSubagent?: (tool: ACPToolCall, sessionId: string, workspaceCwd?: string) => void;
256
277
  agentTasks?: readonly EnvironmentAgentTask[];
278
+ /** The background task shown in the active tab, when it can be explained. */
279
+ explainTask?: DaemonSessionTaskWithWorkflowStatus | null;
280
+ onExplainTask?: (task: DaemonSessionTaskWithWorkflowStatus) => void;
281
+ /** A pending/settled task explanation to mirror in place (taskId-matched). */
282
+ taskExplanation?: {
283
+ messageId: string;
284
+ taskId: string;
285
+ question: string;
286
+ answer: string;
287
+ isPending: boolean;
288
+ } | null;
257
289
  agentTraceLoading?: boolean;
258
290
  agentTraceError?: string;
259
291
  onOpenWorkflowAgent?: (task: EnvironmentAgentTask) => void;
@@ -283,5 +315,5 @@ interface ArtifactPanelProps {
283
315
  fullscreen?: boolean;
284
316
  onToggleFullscreen?: () => void;
285
317
  }
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;
318
+ export declare function ArtifactPanel({ contextUsageControls, artifacts, 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
319
  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,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
  }
@@ -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;
@@ -644,7 +644,7 @@ export interface paths {
644
644
  };
645
645
  get?: never;
646
646
  put?: never;
647
- /** @description Read only names and descriptions from the Session's pinned static Skill catalog. Requires a trusted actor and Workspace read access. Never resolves the latest AgentDefinition or discovers host Skills. */
647
+ /** @description Returns names and descriptions of user-invocable Skills for a readable Session. Includes its pinned static Skills and standalone Skills from its initial package selection until the first configuration becomes active. Thereafter the active configuration supplies the package Skills. Requires a trusted actor and Workspace read access. */
648
648
  post: operations["queryWebShellSessionSkills"];
649
649
  delete?: never;
650
650
  options?: never;
@@ -1742,9 +1742,9 @@ export interface components {
1742
1742
  approvalMode?: "default" | "auto-edit" | "yolo";
1743
1743
  /** @description Persisted public Plan overlay, independent of execution permission. Omission on a change preserves the selected state. */
1744
1744
  planMode?: boolean;
1745
- /** @description Optional static Skills imported from the enabled management catalog or added explicitly to the pinned AgentDefinition catalog. The merged catalog has unique names, at most 256 entries, 512 KiB per body and 2 MiB compact JSON. Requires session-skills/2; persisted immutably and included in creation idempotency. */
1745
+ /** @description Optional static Skills imported from the enabled management catalog or added explicitly to the pinned AgentDefinition catalog. The merged catalog has unique names, at most 256 entries, 512 KiB per body and 2 MiB compact JSON; a caller loop whose body is the verbatim bundled import is superseded by the definition's entry or the server variant rather than rejected; a user-authored caller loop that collides with a definition-authored loop is still rejected. On a creator-bearing tool profile the server also contributes a loop skill variant selected by the Session profile, replacing only the bundled caller import (carrying over its invocation flags) when the combined static and package Skill catalog has room, even if this array is empty; a user-authored caller loop or a definition-authored loop skill is preserved and suppresses the variant, and on a creator-less profile only the bundled caller import is dropped. Requires session-skills/2; persisted immutably and included in creation idempotency. */
1746
1746
  skills?: components["schemas"]["SessionCreationSkill"][];
1747
- /** @description Optional immutable initial extension selection. Omission keeps the legacy configuration path; an explicit empty array starts the unified configuration format. Included in creation idempotency and applied before the first model request. Requires session-extension-packages/1 and an extension-capable original Runtime. */
1747
+ /** @description Optional immutable initial extension selection for a Workspace Session. If omitted and the caller supplies no static Skills, MAS selects defaults from the configured Skill catalog providers. With no defaults, omission preserves the existing configuration. An explicit array selects exactly those pins and disables provider defaults. An empty array starts the unified configuration with no initial packages. Explicit selection is included in creation idempotency. Selected packages are applied before the first model request and require session-extension-packages/1 and an extension-capable original Runtime. */
1748
1748
  extensionPins?: components["schemas"]["ManagedExtensionPackagePin"][];
1749
1749
  /** @description Opt into a main Session worktree on supported LOCAL storage. Omission uses the current directory; an empty object freezes HEAD at first admission. Requires an explicit Workspace. Preparation is durable and gates Runtime execution; replay preserves the original commit, directory and branch. */
1750
1750
  worktree?: {
@@ -5364,7 +5364,7 @@ export interface operations {
5364
5364
  };
5365
5365
  };
5366
5366
  responses: {
5367
- /** @description Session static Skill metadata. */
5367
+ /** @description User-visible Session Skill metadata. */
5368
5368
  200: {
5369
5369
  headers: {
5370
5370
  [name: string]: unknown;