@qwen-code/web-shell 0.28.1-preview.0 → 0.28.1-preview.1

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 (134) hide show
  1. package/NOTICES.txt +464 -0
  2. package/README.md +4 -3
  3. package/dist/{PierreFilePreview-Dotc6rOk.js → PierreFilePreview-CsARQefS.js} +1 -1
  4. package/dist/{SpreadsheetPreview-B9SWjSd8.js → SpreadsheetPreview-D3YGKe0n.js} +2 -2
  5. package/dist/{WorkspaceFileBrowser-Ckvcjlmo.js → WorkspaceFileBrowser-1GbG0WLt.js} +189 -189
  6. package/dist/WorkspacePdfRangePreview-it3G4-Se.js +22384 -0
  7. package/dist/{agents-route-B5k1PKCM.js → agents-route-Dbjm9Y2P.js} +2 -2
  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-Plc_8yWQ.js → index-ChVhTKLB.js} +72164 -76971
  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 +15217 -14933
  17. package/dist/types/App.d.ts +6 -2
  18. package/dist/types/adapters/messageTypes.d.ts +7 -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 +4 -1
  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 +15 -0
  61. package/dist/types/components/messages/UserMessage.d.ts +5 -1
  62. package/dist/types/components/messages/WorkflowExecutionView.d.ts +4 -0
  63. package/dist/types/components/messages/mod-rows.d.ts +53 -0
  64. package/dist/types/components/panels/EnvironmentPanel.d.ts +1 -7
  65. package/dist/types/components/sidebar/WebShellSidebar.d.ts +1 -1
  66. package/dist/types/components/streaming-tail.d.ts +8 -0
  67. package/dist/types/components/streaming-tail.transcript-stub.d.ts +6 -0
  68. package/dist/types/components/terminal/TerminalPanel.d.ts +0 -1
  69. package/dist/types/components/terminal/terminal-runtime.d.ts +8 -0
  70. package/dist/types/components/terminal/use-terminal-runtime.d.ts +6 -0
  71. package/dist/types/components/ui/dialog.d.ts +1 -0
  72. package/dist/types/components/ui/drawer.d.ts +1 -1
  73. package/dist/types/constants/approvalModes.d.ts +7 -0
  74. package/dist/types/constants/localCommands.d.ts +3 -1
  75. package/dist/types/constants/sessions.d.ts +1 -0
  76. package/dist/types/customization.d.ts +16 -3
  77. package/dist/types/daemon/chat-controller.d.ts +67 -0
  78. package/dist/types/daemon/chat-intents.d.ts +88 -0
  79. package/dist/types/daemon/permission-signals.d.ts +35 -0
  80. package/dist/types/daemon/session/types.d.ts +23 -0
  81. package/dist/types/daemon/useDaemonChatController.d.ts +15 -0
  82. package/dist/types/daemon/workspace/hooks/useDaemonAgents.d.ts +5 -0
  83. package/dist/types/daemon/workspace/hooks/useDaemonAuth.d.ts +5 -0
  84. package/dist/types/daemon/workspace/hooks/useDaemonChannelEvents.d.ts +5 -0
  85. package/dist/types/daemon/workspace/hooks/useDaemonDiagnostics.d.ts +14 -2
  86. package/dist/types/daemon/workspace/hooks/useDaemonMcp.d.ts +5 -0
  87. package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +5 -0
  88. package/dist/types/daemon/workspace/hooks/useDaemonProviders.d.ts +5 -0
  89. package/dist/types/daemon/workspace/hooks/useDaemonResource.d.ts +7 -1
  90. package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +6 -0
  91. package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +5 -0
  92. package/dist/types/daemon/workspace/hooks/useDaemonStatusReport.d.ts +5 -0
  93. package/dist/types/daemon/workspace/hooks/useDaemonTools.d.ts +5 -0
  94. package/dist/types/daemon/workspace/hooks/useDaemonUsageDashboard.d.ts +5 -0
  95. package/dist/types/generated-ui/instance-store.d.ts +4 -1
  96. package/dist/types/generated-ui/view-state.d.ts +51 -0
  97. package/dist/types/hooks/useAtMentionSources.d.ts +1 -1
  98. package/dist/types/hooks/useComposerCore.d.ts +4 -2
  99. package/dist/types/hooks/useComposerWorkspace.d.ts +7 -0
  100. package/dist/types/hooks/useIsTouchComposer.d.ts +1 -0
  101. package/dist/types/hooks/useModelConfigurations.d.ts +7 -0
  102. package/dist/types/hooks/useModelRefresh.d.ts +1 -0
  103. package/dist/types/hooks/useScopedSessions.d.ts +1 -0
  104. package/dist/types/hooks/useSessionArtifacts.d.ts +7 -0
  105. package/dist/types/hooks/useSubSessionTasks.d.ts +8 -0
  106. package/dist/types/i18n-catalogs.d.ts +3 -0
  107. package/dist/types/i18n-catalogs.eager.d.ts +3 -0
  108. package/dist/types/i18n-language.d.ts +2 -0
  109. package/dist/types/i18n-ru.d.ts +7 -0
  110. package/dist/types/i18n-zh-cn.d.ts +7 -0
  111. package/dist/types/i18n-zh-tw.d.ts +8 -0
  112. package/dist/types/i18n-zh-tw.transcript-stub.d.ts +6 -0
  113. package/dist/types/i18n.d.ts +7 -2
  114. package/dist/types/index.d.ts +1 -1
  115. package/dist/types/mcpAppHostContext.d.ts +4 -0
  116. package/dist/types/session-catalog/session-catalog-hooks.d.ts +1 -0
  117. package/dist/types/session-catalog/session-live-work.d.ts +39 -0
  118. package/dist/types/settings.d.ts +3 -0
  119. package/dist/types/subagentDetailsContext.d.ts +9 -1
  120. package/dist/types/trajectory/buildTimeline.d.ts +1 -1
  121. package/dist/types/trajectory/types.d.ts +2 -0
  122. package/dist/types/utils/askUserPermission.d.ts +1 -1
  123. package/dist/types/utils/composerTasks.d.ts +6 -4
  124. package/dist/types/utils/imageIngestion.d.ts +1 -0
  125. package/dist/types/utils/planMode.d.ts +2 -2
  126. package/dist/types/utils/sendCommand.d.ts +31 -0
  127. package/dist/types/utils/sessionPreparation.d.ts +16 -14
  128. package/dist/types/vision-timeout-command.d.ts +17 -0
  129. package/dist/types/voice/use-voice-workspace-settings.d.ts +1 -0
  130. package/dist/types/voice/voice-workspace-target.d.ts +1 -0
  131. package/dist/useDaemonMidTurnInjected-BjQ9zxRv.js +23539 -0
  132. package/package.json +4 -1
  133. package/dist/types/components/managed/ManagedRecoveryPanel.d.ts +0 -9
  134. package/dist/useDaemonMidTurnInjected-D4Woo-Hh.js +0 -31578
@@ -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
  };
@@ -2,13 +2,21 @@ import type { DaemonBackgroundTurn } from '@qwen-code/sdk/daemon';
2
2
  import { type ReactNode } from 'react';
3
3
  import type { ACPToolCall } from './adapters/types';
4
4
  export type OpenSubagentDetails = (tool: ACPToolCall, parentSessionId?: string) => void;
5
+ /** Another session to open, from a turn its reply started. */
6
+ export interface OpenSessionRequest {
7
+ sessionId: string;
8
+ workspaceCwd?: string;
9
+ title: string;
10
+ }
5
11
  interface SubagentDetailsContextValue {
6
12
  onOpen: OpenSubagentDetails;
7
13
  onOpenBackground?: (turn: DaemonBackgroundTurn) => void;
14
+ onOpenSession?: (request: OpenSessionRequest) => void;
8
15
  }
9
- export declare function SubagentDetailsProvider({ onOpen, onOpenBackground, children, }: {
16
+ export declare function SubagentDetailsProvider({ onOpen, onOpenBackground, onOpenSession, children, }: {
10
17
  onOpen: OpenSubagentDetails;
11
18
  onOpenBackground?: (turn: DaemonBackgroundTurn) => void;
19
+ onOpenSession?: (request: OpenSessionRequest) => void;
12
20
  children: ReactNode;
13
21
  }): import("react/jsx-runtime").JSX.Element;
14
22
  export declare function useSubagentDetails(): SubagentDetailsContextValue | undefined;
@@ -14,7 +14,7 @@ export interface TimelineSpan {
14
14
  /** Offset into the compressed domain, ms. */
15
15
  start: number;
16
16
  end: number;
17
- /** Requests with a recorded TTFT only: where the first token landed. */
17
+ /** Requests only: where the first visible output landed. */
18
18
  ttftEnd?: number;
19
19
  error: boolean;
20
20
  }
@@ -49,6 +49,8 @@ export interface TrajectoryTiming {
49
49
  startedAt?: number;
50
50
  /** Requests only: dispatch to first user-visible content. */
51
51
  ttftMs?: number;
52
+ /** Requests only: request start to first user-visible content. */
53
+ firstVisibleOffsetMs?: number;
52
54
  }
53
55
  /** What a subagent spent, rolled up onto the tool call that spawned it. */
54
56
  export interface TrajectorySubagentSummary {
@@ -10,7 +10,7 @@ import type { PermissionRequest } from '../adapters/types.js';
10
10
  * rather than a normal tool-call approval. Shared by the single-session App and
11
11
  * the split-view ChatPane so the two never drift.
12
12
  */
13
- export declare function isAskUserPermission(request: PermissionRequest | null): boolean;
13
+ export declare function isAskUserPermission(request: Pick<PermissionRequest, 'rawInput' | 'toolName'> | null): boolean;
14
14
  /**
15
15
  * Language-neutral snapshot of a pending AskUserQuestion payload — numbered
16
16
  * questions with their option labels and descriptions — for embedding in the
@@ -1,4 +1,6 @@
1
- import type { DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
1
+ import type { DaemonSessionSubSessionTaskStatus, DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
2
+ /** A task the chip row can show: the child's own, or a send it made. */
3
+ export type ComposerChipTask = DaemonSessionTaskWithWorkflowStatus | DaemonSessionSubSessionTaskStatus;
2
4
  /**
3
5
  * Tasks that belong to THIS session's live background state — what the
4
6
  * composer chip row draws from and the environment panel lists.
@@ -14,10 +16,10 @@ export declare function isComposerTask(task: DaemonSessionTaskWithWorkflowStatus
14
16
  kind: 'agent';
15
17
  }>;
16
18
  /** The kinds the composer chip row groups live tasks under, in display order. */
17
- export type ComposerTaskChipKind = 'workflow' | 'agent' | 'shell' | 'monitor';
19
+ export type ComposerTaskChipKind = 'workflow' | 'agent' | 'session' | 'shell' | 'monitor';
18
20
  export interface ComposerTaskChipGroup {
19
21
  kind: ComposerTaskChipKind;
20
- tasks: DaemonSessionTaskWithWorkflowStatus[];
22
+ tasks: ComposerChipTask[];
21
23
  }
22
24
  /**
23
25
  * Group this session's unfinished background tasks for the chip row above
@@ -25,7 +27,7 @@ export interface ComposerTaskChipGroup {
25
27
  * its chip disappears, and the run stays reachable from the transcript, the
26
28
  * environment panel and the tasks dialog.
27
29
  */
28
- export declare function getComposerTaskChipGroups(tasks: readonly DaemonSessionTaskWithWorkflowStatus[], options: {
30
+ export declare function getComposerTaskChipGroups(tasks: readonly ComposerChipTask[], options: {
29
31
  includeAgents: boolean;
30
32
  }): ComposerTaskChipGroup[];
31
33
  export declare function explainDisplayLabel(label: string): string;
@@ -29,6 +29,7 @@ export interface FileIngestionBatchResult {
29
29
  interface ReaderLifecycle {
30
30
  onReaderCreated?: (reader: FileReader) => void;
31
31
  onReaderSettled?: (reader: FileReader) => void;
32
+ isCancelled?: () => boolean;
32
33
  maxBytes?: number;
33
34
  }
34
35
  export declare const MAX_IMAGE_ATTACHMENT_DATA_BYTES: number;
@@ -1,5 +1,5 @@
1
- import { DAEMON_APPROVAL_MODES } from '@qwen-code/web-shell/daemon-react-sdk';
2
- export type WebShellApprovalMode = Exclude<(typeof DAEMON_APPROVAL_MODES)[number], 'plan'>;
1
+ import { APPROVAL_MODES } from '../constants/approvalModes.js';
2
+ export type WebShellApprovalMode = Exclude<(typeof APPROVAL_MODES)[number], 'plan'>;
3
3
  export declare const EXECUTION_APPROVAL_MODES: ("default" | "auto-edit" | "yolo" | "auto")[];
4
4
  export declare function resolveApprovalModes(value: unknown): readonly WebShellApprovalMode[];
5
5
  export declare function nextApprovalMode(available: readonly WebShellApprovalMode[], current: string): WebShellApprovalMode | undefined;