@qwen-code/web-shell 0.28.1-preview.1 → 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.
@@ -169,6 +169,8 @@ export interface DaemonThinkingMessage extends DaemonMessageMeta {
169
169
  role: 'thinking';
170
170
  content: string;
171
171
  isStreaming?: boolean;
172
+ /** Identifies a subagent's thought rendered without its parent tool card. */
173
+ parentToolCallId?: string;
172
174
  }
173
175
  export interface DaemonToolGroupMessage extends DaemonMessageMeta {
174
176
  id: string;
@@ -183,9 +185,11 @@ export interface DaemonToolGroupMessage extends DaemonMessageMeta {
183
185
  * trail the last tool.
184
186
  */
185
187
  thoughts?: Array<{
188
+ id?: string;
186
189
  content: string;
187
190
  isStreaming?: boolean;
188
191
  beforeToolCallId?: string;
192
+ parentToolCallId?: string;
189
193
  }>;
190
194
  }
191
195
  export interface DaemonPlanMessage extends DaemonMessageMeta {
@@ -31,6 +31,8 @@ interface ThinkingMessageProps {
31
31
  content: string;
32
32
  author?: DaemonMessageAuthor;
33
33
  isStreaming?: boolean;
34
+ /** A subagent's thought, drawn outside its tool card. */
35
+ fromSubagent?: boolean;
34
36
  timestamp?: number;
35
37
  isLocateFlashing?: boolean;
36
38
  generateContent?: SessionContentGenerator;
@@ -44,8 +46,10 @@ interface ThinkingTranslateButtonProps {
44
46
  generateContent?: SessionContentGenerator;
45
47
  className?: string;
46
48
  mode?: 'translate' | 'explain-shell';
49
+ hideWhenClosed?: boolean;
50
+ fallbackFocusRef?: RefObject<HTMLButtonElement | null>;
47
51
  }
48
- export declare function ThinkingTranslateButton({ content, generateContent, className, mode, }: ThinkingTranslateButtonProps): import("react/jsx-runtime").JSX.Element;
52
+ export declare function ThinkingTranslateButton({ content, generateContent, className, mode, hideWhenClosed, fallbackFocusRef, }: ThinkingTranslateButtonProps): import("react/jsx-runtime").JSX.Element | null;
49
53
  export declare function getThinkingSummaryKey({ isStreaming, durationMs, }: {
50
54
  isStreaming?: boolean;
51
55
  durationMs?: number;
@@ -6,10 +6,17 @@
6
6
  import type { ReactNode } from 'react';
7
7
  import type { Message } from '../../adapters/types';
8
8
  import { type AssistantMessageProps } from './AssistantMessage';
9
- export declare function ModReplyRowsProvider({ messages, children, }: {
9
+ import { type ThinkingBodyProps } from './ThinkingBody';
10
+ /** Draws the Mods' rewrites of this transcript's reply and thinking rows. */
11
+ export declare function ModRowsProvider({ messages, children, }: {
10
12
  messages: readonly Message[];
11
13
  children: ReactNode;
12
14
  }): import("react/jsx-runtime").JSX.Element;
15
+ /**
16
+ * An expanded thought's body: once complete and on screen, a thought of the
17
+ * session's own model is asked for, and drawn with the text its hooks wrote.
18
+ */
19
+ export declare function ModThinkingBody({ content, isStreaming, fromSubagent, onRewrittenChange, }: ThinkingBodyProps): import("react/jsx-runtime").JSX.Element;
13
20
  export declare function ModAssistantMessage({ messageId, ...props }: AssistantMessageProps & {
14
21
  messageId: string;
15
22
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { type ComponentType } from 'react';
7
+ export interface ThinkingBodyProps {
8
+ content: string;
9
+ isStreaming?: boolean;
10
+ /** A subagent's thought, drawn outside its tool card. */
11
+ fromSubagent?: boolean;
12
+ /** Reports the source text of the displayed rewrite, if any. */
13
+ onRewrittenChange?: (source: string | undefined) => void;
14
+ }
15
+ export declare const ThinkingBodyComponentContext: import("react").Context<{
16
+ Body: ComponentType<ThinkingBodyProps>;
17
+ } | undefined>;
18
+ export declare function useThinkingBodyRewrite(content: string): readonly [boolean, (source: string | undefined) => void];
19
+ /** The body an expanded thought shows. */
20
+ export declare function ThinkingBody(props: ThinkingBodyProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import type { ThinkingBodyProps } from './ThinkingBody';
7
+ export declare function useThinkingBodyRewrite(): readonly [false, undefined];
8
+ export declare function ThinkingBody({ content, isStreaming }: ThinkingBodyProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import type { ACPToolCall, PermissionRequest } from '../../adapters/types';
1
+ import type { ACPToolCall, PermissionRequest, ToolGroupMessage } from '../../adapters/types';
2
2
  import type { SessionContentGenerator } from './AssistantMessage';
3
3
  import { useI18n } from '../../i18n';
4
4
  import { type ToolHeaderKind } from '../../customization';
@@ -11,11 +11,7 @@ interface ToolGroupProps {
11
11
  * the original order. Streaming entries drive the "Thinking…" summary;
12
12
  * each entry renders as a click-to-expand row.
13
13
  */
14
- thoughts?: Array<{
15
- content: string;
16
- isStreaming?: boolean;
17
- beforeToolCallId?: string;
18
- }>;
14
+ thoughts?: ToolGroupMessage['thoughts'];
19
15
  pendingApproval?: PermissionRequest | null;
20
16
  workspaceCwd?: string;
21
17
  onTurnOutputOpen?: (request: TurnOutputOpenRequest) => void;
@@ -548,6 +548,13 @@ export interface DaemonSessionActions {
548
548
  /** Manually bind a GitHub PR to the current session (supplementary registration). */
549
549
  bindSessionPr(pr: Omit<DaemonSessionPrInfo, 'issues'>): Promise<SessionMetadataResult>;
550
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>;
551
558
  generateSessionContent(prompt: string, opts?: {
552
559
  signal?: AbortSignal;
553
560
  }): AsyncGenerator<DaemonSessionGenerationEvent>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Qwen Team
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ interface VisualViewportGeometry {
7
+ height: number;
8
+ offsetTop: number;
9
+ scale: number;
10
+ }
11
+ /** The part of a shell's bottom edge hidden below the visible viewport. */
12
+ export declare function visualViewportBottomInset(root: Pick<DOMRect, 'bottom' | 'height'>, viewport: VisualViewportGeometry): number;
13
+ export {};