@qwen-code/web-shell 0.28.1-preview.0 → 0.28.3-nightly.20261121.56ef346859

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 (138) hide show
  1. package/NOTICES.txt +464 -0
  2. package/README.md +4 -3
  3. package/dist/{PierreFilePreview-Dotc6rOk.js → PierreFilePreview-BirhX9A8.js} +1 -1
  4. package/dist/{SpreadsheetPreview-B9SWjSd8.js → SpreadsheetPreview-YvYBq0r3.js} +2 -2
  5. package/dist/{WorkspaceFileBrowser-Ckvcjlmo.js → WorkspaceFileBrowser-CuqdtAcy.js} +189 -189
  6. package/dist/WorkspacePdfRangePreview-D2qKhlQp.js +22384 -0
  7. package/dist/{agents-route-B5k1PKCM.js → agents-route-DGqnucS8.js} +2 -2
  8. package/dist/daemon-react-sdk.js +1 -1
  9. package/dist/i18n-ru-CQurqwP6.js +4399 -0
  10. package/dist/i18n-zh-cn-C3owX7KJ.js +4457 -0
  11. package/dist/i18n-zh-tw-meIHyJiH.js +5548 -0
  12. package/dist/{index-Plc_8yWQ.js → index-CVklLnTX.js} +71066 -75714
  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 +15898 -15572
  17. package/dist/types/App.d.ts +6 -2
  18. package/dist/types/adapters/messageTypes.d.ts +11 -1
  19. package/dist/types/adapters/transcriptAdapter.d.ts +8 -0
  20. package/dist/types/completions/sendCompletion.d.ts +28 -0
  21. package/dist/types/completions/slashCompletion.d.ts +8 -1
  22. package/dist/types/components/ChatContextHeader.d.ts +8 -2
  23. package/dist/types/components/ChatEditor.d.ts +3 -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 +3 -2
  27. package/dist/types/components/GoalStatusStrip.d.ts +9 -0
  28. package/dist/types/components/RestartRecoveryPanel.d.ts +22 -0
  29. package/dist/types/components/SessionGoalMarker.d.ts +24 -0
  30. package/dist/types/components/UnavailableModelTooltip.d.ts +4 -2
  31. package/dist/types/components/WebShellTranscript.d.ts +3 -1
  32. package/dist/types/components/artifacts/ArtifactPanel.d.ts +26 -2
  33. package/dist/types/components/artifacts/ArtifactsListPanel.d.ts +13 -0
  34. package/dist/types/components/artifacts/SessionPanel.d.ts +19 -0
  35. package/dist/types/components/artifacts/WorkspacePdfRangePreview.d.ts +10 -0
  36. package/dist/types/components/artifacts/artifactUtils.d.ts +9 -5
  37. package/dist/types/components/artifacts/change-overview.d.ts +21 -14
  38. package/dist/types/components/channels/channel-platform.d.ts +1 -1
  39. package/dist/types/components/managed/ManagedArtifactLibraryPage.d.ts +15 -0
  40. package/dist/types/components/managed/ManagedSurfaceDecisionsDialog.d.ts +1 -0
  41. package/dist/types/components/managed/ManagedTerminalPanel.d.ts +0 -1
  42. package/dist/types/components/managed/ManagedWorkspaceNavigation.d.ts +2 -1
  43. package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +14 -2
  44. package/dist/types/components/managed/generated/managed-agent-api.d.ts +100 -6
  45. package/dist/types/components/managed/java-managed-agent-client.d.ts +21 -0
  46. package/dist/types/components/managed/managed-agent-provider.d.ts +4 -1
  47. package/dist/types/components/managed/managed-artifact-library-messages.d.ts +8 -0
  48. package/dist/types/components/managed/managed-artifact-library-messages.transcript-stub.d.ts +8 -0
  49. package/dist/types/components/managed/managed-diagnostics-messages.d.ts +167 -167
  50. package/dist/types/components/managed/managed-extension-install.d.ts +3 -0
  51. package/dist/types/components/managed/managed-recovery-messages.d.ts +3 -1
  52. package/dist/types/components/managed/managed-surface-decisions.d.ts +10 -0
  53. package/dist/types/components/managed/managed-tool-result-types.d.ts +6 -0
  54. package/dist/types/components/managed/use-managed-recovery.d.ts +1 -2
  55. package/dist/types/components/messages/AssistantMessage.d.ts +9 -2
  56. package/dist/types/components/messages/AssistantMessageRow.d.ts +13 -0
  57. package/dist/types/components/messages/AssistantMessageRow.transcript-stub.d.ts +6 -0
  58. package/dist/types/components/messages/Markdown.d.ts +1 -0
  59. package/dist/types/components/messages/MemoryMessage.d.ts +1 -2
  60. package/dist/types/components/messages/ModAssistantMessage.d.ts +22 -0
  61. package/dist/types/components/messages/ThinkingBody.d.ts +20 -0
  62. package/dist/types/components/messages/ThinkingBody.transcript-stub.d.ts +8 -0
  63. package/dist/types/components/messages/ToolGroup.d.ts +2 -6
  64. package/dist/types/components/messages/UserMessage.d.ts +5 -1
  65. package/dist/types/components/messages/WorkflowExecutionView.d.ts +4 -0
  66. package/dist/types/components/messages/mod-rows.d.ts +53 -0
  67. package/dist/types/components/panels/EnvironmentPanel.d.ts +1 -7
  68. package/dist/types/components/sidebar/WebShellSidebar.d.ts +1 -1
  69. package/dist/types/components/streaming-tail.d.ts +8 -0
  70. package/dist/types/components/streaming-tail.transcript-stub.d.ts +6 -0
  71. package/dist/types/components/terminal/TerminalPanel.d.ts +0 -1
  72. package/dist/types/components/terminal/terminal-runtime.d.ts +8 -0
  73. package/dist/types/components/terminal/use-terminal-runtime.d.ts +6 -0
  74. package/dist/types/components/ui/dialog.d.ts +1 -0
  75. package/dist/types/components/ui/drawer.d.ts +1 -1
  76. package/dist/types/constants/approvalModes.d.ts +7 -0
  77. package/dist/types/constants/localCommands.d.ts +3 -1
  78. package/dist/types/constants/sessions.d.ts +1 -0
  79. package/dist/types/customization.d.ts +16 -3
  80. package/dist/types/daemon/chat-controller.d.ts +67 -0
  81. package/dist/types/daemon/chat-intents.d.ts +88 -0
  82. package/dist/types/daemon/permission-signals.d.ts +35 -0
  83. package/dist/types/daemon/session/types.d.ts +30 -0
  84. package/dist/types/daemon/useDaemonChatController.d.ts +15 -0
  85. package/dist/types/daemon/workspace/hooks/useDaemonAgents.d.ts +5 -0
  86. package/dist/types/daemon/workspace/hooks/useDaemonAuth.d.ts +5 -0
  87. package/dist/types/daemon/workspace/hooks/useDaemonChannelEvents.d.ts +5 -0
  88. package/dist/types/daemon/workspace/hooks/useDaemonDiagnostics.d.ts +14 -2
  89. package/dist/types/daemon/workspace/hooks/useDaemonMcp.d.ts +5 -0
  90. package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +5 -0
  91. package/dist/types/daemon/workspace/hooks/useDaemonProviders.d.ts +5 -0
  92. package/dist/types/daemon/workspace/hooks/useDaemonResource.d.ts +7 -1
  93. package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +6 -0
  94. package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +5 -0
  95. package/dist/types/daemon/workspace/hooks/useDaemonStatusReport.d.ts +5 -0
  96. package/dist/types/daemon/workspace/hooks/useDaemonTools.d.ts +5 -0
  97. package/dist/types/daemon/workspace/hooks/useDaemonUsageDashboard.d.ts +5 -0
  98. package/dist/types/generated-ui/instance-store.d.ts +4 -1
  99. package/dist/types/generated-ui/view-state.d.ts +51 -0
  100. package/dist/types/hooks/useAtMentionSources.d.ts +1 -1
  101. package/dist/types/hooks/useComposerCore.d.ts +4 -2
  102. package/dist/types/hooks/useComposerWorkspace.d.ts +7 -0
  103. package/dist/types/hooks/useIsTouchComposer.d.ts +1 -0
  104. package/dist/types/hooks/useModelConfigurations.d.ts +7 -0
  105. package/dist/types/hooks/useModelRefresh.d.ts +1 -0
  106. package/dist/types/hooks/useScopedSessions.d.ts +1 -0
  107. package/dist/types/hooks/useSessionArtifacts.d.ts +7 -0
  108. package/dist/types/hooks/useSubSessionTasks.d.ts +8 -0
  109. package/dist/types/i18n-catalogs.d.ts +3 -0
  110. package/dist/types/i18n-catalogs.eager.d.ts +3 -0
  111. package/dist/types/i18n-language.d.ts +2 -0
  112. package/dist/types/i18n-ru.d.ts +7 -0
  113. package/dist/types/i18n-zh-cn.d.ts +7 -0
  114. package/dist/types/i18n-zh-tw.d.ts +8 -0
  115. package/dist/types/i18n-zh-tw.transcript-stub.d.ts +6 -0
  116. package/dist/types/i18n.d.ts +7 -2
  117. package/dist/types/index.d.ts +1 -1
  118. package/dist/types/mcpAppHostContext.d.ts +4 -0
  119. package/dist/types/session-catalog/session-catalog-hooks.d.ts +1 -0
  120. package/dist/types/session-catalog/session-live-work.d.ts +39 -0
  121. package/dist/types/settings.d.ts +3 -0
  122. package/dist/types/subagentDetailsContext.d.ts +9 -1
  123. package/dist/types/trajectory/buildTimeline.d.ts +1 -1
  124. package/dist/types/trajectory/types.d.ts +2 -0
  125. package/dist/types/utils/askUserPermission.d.ts +1 -1
  126. package/dist/types/utils/composerTasks.d.ts +6 -4
  127. package/dist/types/utils/imageIngestion.d.ts +1 -0
  128. package/dist/types/utils/planMode.d.ts +2 -2
  129. package/dist/types/utils/sendCommand.d.ts +31 -0
  130. package/dist/types/utils/sessionPreparation.d.ts +16 -14
  131. package/dist/types/utils/visualViewportInset.d.ts +13 -0
  132. package/dist/types/vision-timeout-command.d.ts +17 -0
  133. package/dist/types/voice/use-voice-workspace-settings.d.ts +1 -0
  134. package/dist/types/voice/voice-workspace-target.d.ts +1 -0
  135. package/dist/useDaemonMidTurnInjected-BQiO1GP_.js +23555 -0
  136. package/package.json +4 -1
  137. package/dist/types/components/managed/ManagedRecoveryPanel.d.ts +0 -9
  138. package/dist/useDaemonMidTurnInjected-D4Woo-Hh.js +0 -31578
@@ -117,6 +117,19 @@ export interface DaemonConnectionState {
117
117
  * the previous session's artifacts leak under the new one.
118
118
  */
119
119
  restoredArtifactsSessionId?: string;
120
+ /**
121
+ * Artifact count captured from the session-list summary at click time, so
122
+ * the header artifact entry can show it before the load response lands.
123
+ * A hint only: the load-embedded snapshot and the gated fetch supersede it,
124
+ * and the provider clears it once authoritative data commits.
125
+ */
126
+ artifactCountHint?: number;
127
+ /**
128
+ * Session the artifactCountHint belongs to. Same keying contract as
129
+ * restoredArtifactsSessionId: consumers must only use the hint when this
130
+ * matches the current sessionId.
131
+ */
132
+ artifactCountHintSessionId?: string;
120
133
  error?: string;
121
134
  /** Latest HTTP error status kept for diagnostics; use missingSession for UI. */
122
135
  errorStatus?: number;
@@ -341,6 +354,8 @@ export interface PendingPromptActionOptions {
341
354
  }
342
355
  export interface GetTasksActionOptions {
343
356
  silent?: boolean;
357
+ /** Also list the sends the daemon reports back to this session. */
358
+ includeSubSessions?: boolean;
344
359
  }
345
360
  export interface DaemonPromptImage {
346
361
  data: string;
@@ -446,6 +461,9 @@ export interface DaemonSessionActions {
446
461
  loadSession(sessionId: string, options?: {
447
462
  workspaceCwd?: string;
448
463
  sessionContext?: DaemonProductSessionContext;
464
+ /** Artifact count from the clicked session's list summary, shown in
465
+ * the header entry before the load response lands. Omit when unknown. */
466
+ artifactCountHint?: number;
449
467
  }): Promise<void>;
450
468
  /** `memory` replay is reserved for the provider's live-journal repair. */
451
469
  reloadSession(signal: AbortSignal, options?: {
@@ -530,6 +548,13 @@ export interface DaemonSessionActions {
530
548
  /** Manually bind a GitHub PR to the current session (supplementary registration). */
531
549
  bindSessionPr(pr: Omit<DaemonSessionPrInfo, 'issues'>): Promise<SessionMetadataResult>;
532
550
  recapSession(): Promise<DaemonSessionRecapResult>;
551
+ /**
552
+ * Report a per-turn satisfied/not-satisfied mark to telemetry.
553
+ * Best-effort: with no live session this is a no-op, and failures are
554
+ * logged, never surfaced as notices — the local mark never depends on
555
+ * the outcome.
556
+ */
557
+ rateAssistantTurn(promptId: string, rating: 'up' | 'down'): Promise<void>;
533
558
  generateSessionContent(prompt: string, opts?: {
534
559
  signal?: AbortSignal;
535
560
  }): AsyncGenerator<DaemonSessionGenerationEvent>;
@@ -677,6 +702,11 @@ export interface DaemonWorkspaceEventSignals {
677
702
  extensionsVersion: number;
678
703
  artifactsVersion: number;
679
704
  sourcesVersion?: number;
705
+ /**
706
+ * Per caller session: how many times a send it made that the daemon
707
+ * reports back started or settled. Re-read its sub-session tasks on change.
708
+ */
709
+ subSessionTaskVersions?: Record<string, number>;
680
710
  lastExtensionChange?: {
681
711
  status?: 'installed' | 'enabled' | 'disabled' | 'updated' | 'uninstalled' | 'failed';
682
712
  source?: string;
@@ -0,0 +1,15 @@
1
+ import type { SessionChatController } from '../chat-core/contract.js';
2
+ /**
3
+ * Binds the daemon session provider to the backend-neutral chat controller
4
+ * (slice 2d). It constructs {@link createDaemonChatController} once per session
5
+ * and feeds it live provider facts, wiring the intent transports to the session
6
+ * actions and deriving the two evidence channels the provider does not expose
7
+ * explicitly: prompt settlement comes from the terminal-event subscription, and
8
+ * approval currency / decision settlement are derived from the pending-permission
9
+ * set (see {@link derivePermissionSignals}).
10
+ *
11
+ * The optional capability-gated sub-controllers (model / approval-mode / context
12
+ * usage / session ops) are not bound yet; their regions stay hidden until a later
13
+ * increment wires them, so this binding is additive and renders nothing on its own.
14
+ */
15
+ export declare function useDaemonChatController(): SessionChatController;
@@ -19,4 +19,9 @@ export declare function useDaemonAgents(options?: DaemonResourceOptions): {
19
19
  data: import("@qwen-code/sdk/daemon").DaemonWorkspaceAgentsStatus | undefined;
20
20
  loading: boolean;
21
21
  error: Error | undefined;
22
+ reloadWithOutcome: () => Promise<{
23
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspaceAgentsStatus | undefined;
24
+ superseded: boolean;
25
+ error?: Error;
26
+ }>;
22
27
  };
@@ -21,4 +21,9 @@ export declare function useDaemonAuth(options?: DaemonResourceOptions): {
21
21
  data: import("@qwen-code/sdk/daemon").DaemonAuthStatusSnapshot | undefined;
22
22
  loading: boolean;
23
23
  error: Error | undefined;
24
+ reloadWithOutcome: () => Promise<{
25
+ data: import("@qwen-code/sdk/daemon").DaemonAuthStatusSnapshot | undefined;
26
+ superseded: boolean;
27
+ error?: Error;
28
+ }>;
24
29
  };
@@ -27,5 +27,10 @@ export declare function useDaemonChannelEvents(options?: DaemonChannelEventsOpti
27
27
  reload: () => Promise<ChannelEventsSnapshot | undefined>;
28
28
  loading: boolean;
29
29
  error: Error | undefined;
30
+ reloadWithOutcome: () => Promise<{
31
+ data: ChannelEventsSnapshot | undefined;
32
+ superseded: boolean;
33
+ error?: Error;
34
+ }>;
30
35
  };
31
36
  export {};
@@ -5,6 +5,18 @@
5
5
  */
6
6
  import type { DaemonResourceOptions } from '../types.js';
7
7
  export declare function useDaemonDiagnostics(options?: DaemonResourceOptions): {
8
- env: import("../types.js").ResourceResult<import("@qwen-code/sdk/daemon").DaemonWorkspaceEnvStatus>;
9
- preflight: import("../types.js").ResourceResult<import("@qwen-code/sdk/daemon").DaemonWorkspacePreflightStatus>;
8
+ env: import("../types.js").ResourceResult<import("@qwen-code/sdk/daemon").DaemonWorkspaceEnvStatus> & {
9
+ reloadWithOutcome: () => Promise<{
10
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspaceEnvStatus | undefined;
11
+ superseded: boolean;
12
+ error?: Error;
13
+ }>;
14
+ };
15
+ preflight: import("../types.js").ResourceResult<import("@qwen-code/sdk/daemon").DaemonWorkspacePreflightStatus> & {
16
+ reloadWithOutcome: () => Promise<{
17
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspacePreflightStatus | undefined;
18
+ superseded: boolean;
19
+ error?: Error;
20
+ }>;
21
+ };
10
22
  };
@@ -27,5 +27,10 @@ export declare function useDaemonMcp(options?: DaemonMcpOptions): {
27
27
  data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMcpStatus | undefined;
28
28
  loading: boolean;
29
29
  error: Error | undefined;
30
+ reloadWithOutcome: () => Promise<{
31
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMcpStatus | undefined;
32
+ superseded: boolean;
33
+ error?: Error;
34
+ }>;
30
35
  };
31
36
  export {};
@@ -19,4 +19,9 @@ export declare function useDaemonMemory(options?: DaemonResourceOptions): {
19
19
  data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMemoryStatus | undefined;
20
20
  loading: boolean;
21
21
  error: Error | undefined;
22
+ reloadWithOutcome: () => Promise<{
23
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMemoryStatus | undefined;
24
+ superseded: boolean;
25
+ error?: Error;
26
+ }>;
22
27
  };
@@ -17,4 +17,9 @@ export declare function useDaemonProviders(options?: DaemonResourceOptions): {
17
17
  data: import("@qwen-code/sdk/daemon").DaemonWorkspaceProvidersStatus | undefined;
18
18
  loading: boolean;
19
19
  error: Error | undefined;
20
+ reloadWithOutcome: () => Promise<{
21
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspaceProvidersStatus | undefined;
22
+ superseded: boolean;
23
+ error?: Error;
24
+ }>;
20
25
  };
@@ -4,4 +4,10 @@
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
6
  import type { DaemonResourceOptions, ResourceResult } from '../types.js';
7
- export declare function useDaemonResource<T>(load: () => Promise<T>, options: DaemonResourceOptions): ResourceResult<T>;
7
+ export declare function useDaemonResource<T>(load: () => Promise<T>, options: DaemonResourceOptions): ResourceResult<T> & {
8
+ reloadWithOutcome: () => Promise<{
9
+ data: T | undefined;
10
+ superseded: boolean;
11
+ error?: Error;
12
+ }>;
13
+ };
@@ -24,6 +24,7 @@ export declare function useDaemonSessions(options?: DaemonSessionsOptions): {
24
24
  loadSession: ((sessionId: string, options?: {
25
25
  workspaceCwd?: string;
26
26
  sessionContext?: import("../../index.js").DaemonProductSessionContext;
27
+ artifactCountHint?: number;
27
28
  }) => Promise<void>) | undefined;
28
29
  resumeSession: ((sessionId: string, options?: {
29
30
  workspaceCwd?: string;
@@ -45,4 +46,9 @@ export declare function useDaemonSessions(options?: DaemonSessionsOptions): {
45
46
  unarchiveSession: (sessionId: string) => Promise<boolean>;
46
47
  loading: boolean;
47
48
  error: Error | undefined;
49
+ reloadWithOutcome: () => Promise<{
50
+ data: import("@qwen-code/sdk/daemon").DaemonSessionListPage | undefined;
51
+ superseded: boolean;
52
+ error?: Error;
53
+ }>;
48
54
  };
@@ -17,4 +17,9 @@ export declare function useDaemonSettings(options?: DaemonResourceOptions): {
17
17
  data: import("@qwen-code/sdk/daemon").DaemonWorkspaceSettingsStatus | undefined;
18
18
  loading: boolean;
19
19
  error: Error | undefined;
20
+ reloadWithOutcome: () => Promise<{
21
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspaceSettingsStatus | undefined;
22
+ superseded: boolean;
23
+ error?: Error;
24
+ }>;
20
25
  };
@@ -15,4 +15,9 @@ export declare function useDaemonStatusReport(options?: DaemonStatusReportOption
15
15
  data: import("@qwen-code/sdk/daemon").DaemonStatusReport | undefined;
16
16
  loading: boolean;
17
17
  error: Error | undefined;
18
+ reloadWithOutcome: () => Promise<{
19
+ data: import("@qwen-code/sdk/daemon").DaemonStatusReport | undefined;
20
+ superseded: boolean;
21
+ error?: Error;
22
+ }>;
18
23
  };
@@ -13,4 +13,9 @@ export declare function useDaemonTools(options?: DaemonResourceOptions): {
13
13
  data: import("@qwen-code/sdk/daemon").DaemonWorkspaceToolsStatus | undefined;
14
14
  loading: boolean;
15
15
  error: Error | undefined;
16
+ reloadWithOutcome: () => Promise<{
17
+ data: import("@qwen-code/sdk/daemon").DaemonWorkspaceToolsStatus | undefined;
18
+ superseded: boolean;
19
+ error?: Error;
20
+ }>;
16
21
  };
@@ -24,4 +24,9 @@ export declare function useDaemonUsageDashboard(options?: DaemonUsageDashboardOp
24
24
  data: import("@qwen-code/sdk/daemon").DaemonUsageDashboard | undefined;
25
25
  loading: boolean;
26
26
  error: Error | undefined;
27
+ reloadWithOutcome: () => Promise<{
28
+ data: import("@qwen-code/sdk/daemon").DaemonUsageDashboard | undefined;
29
+ superseded: boolean;
30
+ error?: Error;
31
+ }>;
27
32
  };
@@ -41,6 +41,7 @@ export interface GeneratedUiInstance {
41
41
  canMessage: boolean;
42
42
  token?: object;
43
43
  lease?: Lease;
44
+ reloadOnGrant?: boolean;
44
45
  leaseGeneration?: number;
45
46
  parkedAt?: number;
46
47
  timer?: ReturnType<typeof setTimeout>;
@@ -50,7 +51,7 @@ export interface GeneratedUiInstance {
50
51
  reopened: boolean;
51
52
  getSignal(): AbortSignal;
52
53
  isVisible(): boolean;
53
- reset(): void;
54
+ reset(clear?: () => Promise<boolean>): void;
54
55
  };
55
56
  }
56
57
  interface InstanceRecord {
@@ -63,6 +64,7 @@ export declare function instanceKey(source: McpAppGeneratedUiOwnerSource, toolId
63
64
  export declare function resourceKey(display: McpAppDisplay, eventEpoch?: string, capabilities?: {
64
65
  tools: boolean;
65
66
  messages: boolean;
67
+ viewState?: boolean;
66
68
  }): string;
67
69
  export declare class GeneratedUiInstanceStore {
68
70
  private records;
@@ -83,6 +85,7 @@ export declare class GeneratedUiInstanceStore {
83
85
  private revoke;
84
86
  private grant;
85
87
  attach(slot: InstanceSlot, explicit?: boolean): GeneratedUiInstance | undefined;
88
+ private viewState;
86
89
  update(slot: InstanceSlot): void;
87
90
  release(key: string, token: object): void;
88
91
  dispose(key: string, reason: string): void;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { DaemonGeneratedUiState, DaemonGeneratedUiStateWriteResult } from '@qwen-code/sdk/daemon';
7
+ /** The App frame asks for these; the host answers for the card it mounted. */
8
+ export declare const VIEW_STATE_CAPABILITY = "qwen-code/generated-ui-state";
9
+ export declare const VIEW_STATE_LOAD = "qwen-code/generated-ui-state/load";
10
+ export declare const VIEW_STATE_SAVE = "qwen-code/generated-ui-state/save";
11
+ export interface ViewStateStore {
12
+ sessionId: string;
13
+ get(cardId: string): Promise<DaemonGeneratedUiState>;
14
+ set(cardId: string, write: {
15
+ baseRevision: number;
16
+ value: unknown;
17
+ }): Promise<DaemonGeneratedUiStateWriteResult>;
18
+ /** Admits a save now and binds its eventual write to the current owner. */
19
+ captureWrite?(): ViewStateStore['set'];
20
+ }
21
+ export type ViewStateStatus = 'saving' | 'saved' | 'stale' | 'too_large' | 'failed' | 'unavailable';
22
+ /** The card id the bundled Generated UI server minted into its result. */
23
+ export declare function generatedUiCardId(toolResult: unknown): string | undefined;
24
+ /**
25
+ * One mounted card's saved state. Saves are sent as soon as the previous one
26
+ * settles, so only changes made while a write is in flight are coalesced.
27
+ */
28
+ export declare class ViewStateCoordinator {
29
+ private readonly store;
30
+ private readonly cardId;
31
+ private readonly onStatus;
32
+ private revision?;
33
+ private saved?;
34
+ private pending?;
35
+ private inFlight?;
36
+ private stale;
37
+ private latestSaveFailure?;
38
+ private last?;
39
+ private readonly key;
40
+ constructor(store: ViewStateStore, cardId: string, onStatus: (status: ViewStateStatus) => void);
41
+ load(signal?: AbortSignal): Promise<unknown>;
42
+ save(value: unknown): void;
43
+ /**
44
+ * Clears the saved state for the host's reset. This mount saves nothing
45
+ * afterwards; the reset mounts the card again. It reads the current
46
+ * revision first, so it also works after a stale write or a failed load.
47
+ */
48
+ clear(): Promise<boolean>;
49
+ private pump;
50
+ private report;
51
+ }
@@ -63,7 +63,7 @@ export interface BuiltinProviderCache {
63
63
  mcpResources: Map<string, Promise<McpResources>>;
64
64
  }
65
65
  export declare function createBuiltinProviderCache(): BuiltinProviderCache;
66
- export declare function getCached<K, V>(cache: Map<K, Promise<V>>, key: K, load: () => Promise<V>): Promise<V>;
66
+ export declare function getCached<K, V>(cache: Map<K, Promise<V>>, key: K, load: () => Promise<V>, signal: AbortSignal): Promise<V>;
67
67
  export interface AtMentionWorkspaceActions {
68
68
  globWorkspace?: GlobWorkspaceFn;
69
69
  searchWorkspaceFiles?: (query: string, signal: AbortSignal) => Promise<string[]>;
@@ -3,8 +3,8 @@ import { EditorView } from '@codemirror/view';
3
3
  import { Compartment } from '@codemirror/state';
4
4
  import type { CommandInfo } from '../adapters/types';
5
5
  import type { PromptFile, PromptImage } from '../adapters/promptTypes';
6
- import { type UseDaemonFollowupSuggestionReturn } from '@qwen-code/web-shell/daemon-react-sdk';
7
- import { type SkillInfo, type SlashCommandCompletionResult } from '../completions/slashCompletion';
6
+ import type { UseDaemonFollowupSuggestionReturn } from '@qwen-code/web-shell/daemon-react-sdk';
7
+ import { type SkillInfo, type SlashArgumentCompleter, type SlashCommandCompletionResult } from '../completions/slashCompletion';
8
8
  import { type CommandDisplayCategoryOrder } from '../utils/commandDisplay';
9
9
  import { type AtMentionMenuState, type AtMentionWorkspaceActions } from './useAtMentionMenu';
10
10
  export { getComposerTagDisplay, getComposerTagLabel, getComposerTagValue, } from '../utils/composerTag';
@@ -89,6 +89,8 @@ export interface UseComposerCoreOptions {
89
89
  commands: CommandInfo[];
90
90
  skills?: SkillInfo[];
91
91
  allowEmptySlashMenu?: boolean;
92
+ /** Completes arguments the static subcommand trees cannot (`/send`). */
93
+ slashArgumentCompleter?: SlashArgumentCompleter;
92
94
  slashCommandCategoryOrder?: CommandDisplayCategoryOrder;
93
95
  autoSubmitSlashCommands?: boolean;
94
96
  queuedMessages?: string[];
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { DaemonWorkspaceContextValue } from '../daemon/workspace/types.js';
3
+ export declare function ComposerWorkspaceProvider({ value, children, }: {
4
+ value: DaemonWorkspaceContextValue | undefined;
5
+ children: ReactNode;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare function useOptionalComposerWorkspace(): DaemonWorkspaceContextValue | undefined;
@@ -10,6 +10,7 @@
10
10
  * CodeMirror editor.
11
11
  */
12
12
  export declare const TOUCH_COMPOSER_QUERY = "(hover: none) and (pointer: coarse)";
13
+ export declare const MODEL_SHEET_QUERY = "(hover: none) and (pointer: coarse), (max-width: 639px)";
13
14
  /**
14
15
  * Raw device detection, ignoring the URL override. Used to gate programmatic
15
16
  * (non-gesture) `view.focus()` calls: on iOS, focusing an editable element
@@ -8,4 +8,11 @@ export declare function useModelConfigurations(enabled: boolean): {
8
8
  } | undefined;
9
9
  loading: boolean;
10
10
  error: Error | undefined;
11
+ reloadWithOutcome: () => Promise<{
12
+ data: {
13
+ models: import("@qwen-code/sdk/daemon").DaemonModelConfiguration[];
14
+ } | undefined;
15
+ superseded: boolean;
16
+ error?: Error;
17
+ }>;
11
18
  };
@@ -1,6 +1,7 @@
1
1
  import type { DaemonSessionActions } from '@qwen-code/web-shell/daemon-react-sdk';
2
2
  export declare function useModelRefresh(beforeRefresh?: Parameters<DaemonSessionActions['refreshModels']>[0]): {
3
3
  refresh: (() => Promise<void>) | undefined;
4
+ refreshLocal: (() => Promise<void>) | undefined;
4
5
  refreshing: boolean;
5
6
  error: string | undefined;
6
7
  };
@@ -29,6 +29,7 @@ export declare function useScopedSessions(workspaceCwd: string | undefined, opti
29
29
  loadSession: ((sessionId: string, options?: {
30
30
  workspaceCwd?: string;
31
31
  sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
32
+ artifactCountHint?: number;
32
33
  }) => Promise<void>) | undefined;
33
34
  resumeSession: ((sessionId: string, options?: {
34
35
  workspaceCwd?: string;
@@ -6,5 +6,12 @@ export interface SessionArtifactsState {
6
6
  error: string | null;
7
7
  hydrated: boolean;
8
8
  refresh: () => Promise<void>;
9
+ /**
10
+ * Click-time artifact count from the session-list summary, valid only
11
+ * while no authoritative data exists for the current session (no cache
12
+ * entry, no keyed restored snapshot). Undefined once the load-embedded
13
+ * snapshot or a gated fetch lands, so a stale hint cannot outlive the load.
14
+ */
15
+ artifactCountHint?: number;
9
16
  }
10
17
  export declare function useSessionArtifacts(): SessionArtifactsState;
@@ -0,0 +1,8 @@
1
+ import type { DaemonSessionSubSessionTaskStatus } from '@qwen-code/sdk/daemon';
2
+ /**
3
+ * The sends this session made that the daemon reports back to it (a
4
+ * person's `/send`, or the model's `create_sub_session` in `sent` mode).
5
+ * Re-read when the daemon says one started or settled, when `refreshKey`
6
+ * changes, and slowly while one is still running.
7
+ */
8
+ export declare function useSubSessionTasks(sessionId: string | undefined, enabled: boolean, refreshKey?: number): DaemonSessionSubSessionTaskStatus[];
@@ -0,0 +1,3 @@
1
+ import type { Messages } from './i18n.js';
2
+ export declare const eagerCatalogs: Map<"en" | "zh-CN" | "zh-TW" | "ru", Messages>;
3
+ export declare const lazyCatalogs: Map<"en" | "zh-CN" | "zh-TW" | "ru", () => Promise<Messages>>;
@@ -0,0 +1,3 @@
1
+ import type { Messages } from './i18n.js';
2
+ export declare const eagerCatalogs: Map<"en" | "zh-CN" | "zh-TW" | "ru", Messages>;
3
+ export declare const lazyCatalogs: Map<"en" | "zh-CN" | "zh-TW" | "ru", () => Promise<Messages>>;
@@ -0,0 +1,2 @@
1
+ export declare const WEB_SHELL_LANGUAGES: readonly ["en", "zh-CN", "zh-TW", "ru"];
2
+ export type WebShellLanguage = (typeof WEB_SHELL_LANGUAGES)[number];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { Messages } from './i18n.js';
7
+ export declare const RU: Messages;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { Messages } from './i18n.js';
7
+ export declare const ZH: Messages;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ type MessageValue = string | ((vars?: Record<string, string | number>) => string);
7
+ export declare const ZH_TW: Record<string, MessageValue>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ export declare const ZH_TW: {};
@@ -1,16 +1,21 @@
1
1
  import { type PropsWithChildren } from 'react';
2
- export declare const WEB_SHELL_LANGUAGES: readonly ["en", "zh-CN", "ru"];
3
- export type WebShellLanguage = (typeof WEB_SHELL_LANGUAGES)[number];
2
+ import { type WebShellLanguage } from './i18n-language.js';
3
+ export { WEB_SHELL_LANGUAGES, type WebShellLanguage } from './i18n-language.js';
4
+ export type MessageValue = string | ((vars?: Record<string, string | number>) => string);
5
+ export type Messages = Record<string, MessageValue>;
4
6
  /**
5
7
  * Every local-files message key, derived from the EN catalog so the
6
8
  * locale-parity test covers new keys automatically instead of drifting
7
9
  * behind a hardcoded subset.
8
10
  */
9
11
  export declare const LOCAL_FILES_MESSAGE_KEYS: string[];
12
+ export declare const RESTART_RECOVERY_MESSAGE_KEYS: string[];
13
+ export declare function loadLanguage(language: WebShellLanguage): Promise<void> | undefined;
10
14
  export declare function normalizeLanguage(value: string | undefined | null): WebShellLanguage;
11
15
  export declare function languageSettingToWebShellLanguage(value: unknown): WebShellLanguage | undefined;
12
16
  export declare function languageLabel(language: WebShellLanguage): string;
13
17
  export declare function getTranslator(language: WebShellLanguage): (key: string, vars?: Record<string, string | number>) => string;
18
+ export declare function useTranslator(language: WebShellLanguage): (key: string, vars?: Record<string, string | number>) => string;
14
19
  export declare function I18nProvider({ language, children, }: PropsWithChildren<{
15
20
  language: WebShellLanguage;
16
21
  }>): import("react/jsx-runtime").JSX.Element;
@@ -12,7 +12,7 @@ export { JavaManagedAgentClient, JavaManagedAgentHttpError, type JavaAgentComman
12
12
  export { createJavaManagedAgentProvider, type JavaManagedAgentProviderOptions, } from './components/managed/java-managed-agent-provider';
13
13
  export type { ManagedSideQuery, ManagedSideQueryKind, ManagedSideQueryCreate, ManagedSideQueryContext, ManagedSideQueryPage, ManagedSideQueriesProvider, } from './components/managed/managed-side-query-types';
14
14
  export { ManagedAgentWebShell, type ManagedAgentWebShellProps, } from './ManagedAgentWebShell';
15
- export type { ManagedArtifact, ManagedArtifactPage, ManagedArtifactResponse, ManagedArtifactSave, ManagedToolResult, ManagedToolResultReader, ManagedToolResultResponse, } from './components/managed/managed-tool-result-types';
15
+ export type { ManagedArtifact, ManagedArtifactPage, ManagedArtifactResponse, ManagedArtifactSave, ManagedToolResult, ManagedToolResultReader, ManagedToolResultResponse, ManagedWorkspaceArtifactReader, } from './components/managed/managed-tool-result-types';
16
16
  export { type ManagedAgentCommandOptions, type ManagedAgentPendingAction, type ManagedAgentPendingPermissionAction, type ManagedAgentPendingQuestionAction, type ManagedAgentQuestionAnswer, type ManagedAgentQuestionResponse, type ManagedAgentActionResponse, type ManagedAgentProvider, type ManagedAgentRequestOptions, type ManagedAgentRuntimeState, type ManagedAgentSessionEvent, type ManagedAgentSessionEventType, type ManagedAgentSessionPhase, type ManagedAgentSessionSummary, type ManagedAgentSessionTranscript, type ManagedAgentTurnAdmission, type ManagedRuntimeNode, type ManagedWorkspaceDirectory, type ManagedWorkspaceCreateOperation, type ManagedWorkspaceRegistration, } from './components/managed/managed-agent-provider';
17
17
  export interface WebShellWithProvidersProps extends WebShellProps {
18
18
  /** Unmount the chat view and its portals while keeping the daemon session attached. */
@@ -1,4 +1,5 @@
1
1
  import type { DaemonSession, DaemonMcpAppToolCall, DaemonMcpAppToolResult } from '@qwen-code/sdk/daemon';
2
+ import type { ViewStateStore } from './generated-ui/view-state.js';
2
3
  export declare const McpAppHostContext: import("react").Context<string | undefined>;
3
4
  export type McpAppToolCallRequest = DaemonMcpAppToolCall;
4
5
  export declare const McpAppSessionContext: import("react").Context<string | undefined>;
@@ -50,6 +51,8 @@ export declare const McpAppMessagesContext: import("react").Context<McpAppMessag
50
51
  export declare const McpAppToolsContext: import("react").Context<{
51
52
  sessionId: string;
52
53
  callTool: (request: McpAppToolCallRequest, signal: AbortSignal) => Promise<DaemonMcpAppToolResult>;
54
+ /** The session's saved Generated UI card state, when the daemon keeps it. */
55
+ viewState?: Omit<ViewStateStore, "sessionId">;
53
56
  } | undefined>;
54
57
  export interface McpAppGeneratedUi {
55
58
  sessionId: string;
@@ -81,6 +84,7 @@ export interface McpAppGeneratedUiOwner {
81
84
  }
82
85
  export declare const McpAppGeneratedUiOwnerContext: import("react").Context<McpAppGeneratedUiOwner | undefined>;
83
86
  export declare const McpAppVisibilityContext: import("react").Context<boolean>;
87
+ export declare const McpAppReadOnlyContext: import("react").Context<boolean>;
84
88
  /**
85
89
  * Whether core marked this App as the bundled Generated UI server's. Unlike
86
90
  * {@link isBuiltInGeneratedUi}, the resource URI alone does not count: any
@@ -104,6 +104,7 @@ export declare function useWebShellSessions(options?: WebShellSessionsOptions):
104
104
  loadSession: ((sessionId: string, options?: {
105
105
  workspaceCwd?: string;
106
106
  sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
107
+ artifactCountHint?: number;
107
108
  }) => Promise<void>) | undefined;
108
109
  resumeSession: ((sessionId: string, options?: {
109
110
  workspaceCwd?: string;
@@ -0,0 +1,39 @@
1
+ import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
2
+ /**
3
+ * Whether this session is known to be doing work that closing it would end.
4
+ *
5
+ * Archive and delete both tear the live session down, so background tasks
6
+ * count alongside a turn: a row that advertises background work must not also
7
+ * offer the action that kills it. The sidebar row and its menus, both sidebar
8
+ * eligibility checks, the standalone archive handler, the recent rows, the
9
+ * delete dialog, the Session Overview card actions and the Activity archive
10
+ * confirmation all read this predicate, so they cannot disagree about what
11
+ * "still working" means.
12
+ *
13
+ * Deliberately narrower than the side-task archive gate, which also fails
14
+ * closed on the `unknown` and `unsupported` grades: this predicate answers
15
+ * "is work known to be running", and an unreported grade is not knowledge of
16
+ * work. Folding that rule in here would block archive and delete on every
17
+ * session whose child has gone quiet — a different policy decision.
18
+ *
19
+ * `hasRunningBackgroundTasks` is cleared to undefined for any row missing from
20
+ * live-state, so it is read as `=== true`. A `!== false` test would block the
21
+ * action on every not-live row.
22
+ */
23
+ export declare function hasLiveWork(session: DaemonSessionSummary): boolean;
24
+ /**
25
+ * Whether Delete must be refused for this session.
26
+ *
27
+ * Background work blocks any row: the delete route has no idle guard, so
28
+ * confirming would kill work the row advertises. Other live work blocks only
29
+ * the session this client is attached to, whose runtime the delete tears down
30
+ * (#12619); a turn running in some other session stays deletable, which is the
31
+ * policy the sidebar row already applies.
32
+ *
33
+ * `isCurrent` is supplied by the caller rather than derived here, because each
34
+ * surface has its own notion of it: the sidebar compares workspace-qualified
35
+ * identity and lets the recent/standalone adapters override it, while the
36
+ * delete dialog compares session ids. Deriving it from an id here would
37
+ * silently narrow the sidebar's comparison.
38
+ */
39
+ export declare function sessionBlocksDelete(session: DaemonSessionSummary, isCurrent: boolean): boolean;
@@ -31,6 +31,7 @@ declare const SETTING_KEYS: {
31
31
  readonly 'setting:advisor-model': "advisorModel";
32
32
  readonly 'setting:advisor-session-call-limit': "advisorMaxUses";
33
33
  readonly 'setting:vision-model': "visionModel";
34
+ readonly 'setting:vision-bridge-timeout': "visionBridgeTimeoutMs";
34
35
  readonly 'setting:model-fallbacks': "modelFallbacks";
35
36
  readonly 'setting:respect-git-ignore': "context.fileFiltering.respectGitIgnore";
36
37
  readonly 'setting:respect-qwen-ignore': "context.fileFiltering.respectQwenIgnore";
@@ -63,8 +64,10 @@ declare const SETTING_KEYS: {
63
64
  readonly 'setting:omni-media-delivery': "omni.enabled";
64
65
  readonly 'setting:artifacts': "experimental.artifact";
65
66
  readonly 'setting:tool-use-summaries': "experimental.emitToolUseSummaries";
67
+ readonly 'setting:mods': "experimental.mods";
66
68
  readonly 'setting:unified-agent-loop': "experimental.unifiedAgentLoop";
67
69
  readonly 'setting:event-bus-agent-loop': "experimental.eventBusAgentLoop";
70
+ readonly 'setting:model-availability-tracking': "experimental.modelAvailabilityTracking";
68
71
  readonly 'setting:voice-model': "voiceModel";
69
72
  readonly 'setting:image-model': "imageModel";
70
73
  };