@qwen-code/web-shell 0.24.6 → 0.24.7
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.
- package/README.md +10 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/index.js +48046 -45963
- package/dist/sw.js +1 -1
- package/dist/{toolNames-C6S4xtsA.js → toolNames-B0O1UjKB.js} +5554 -5166
- package/dist/transcript.js +8781 -8650
- package/dist/types/components/BranchPickerPopover.d.ts +2 -1
- package/dist/types/components/ChatEditor.d.ts +1 -0
- package/dist/types/components/DesktopRelayControl.d.ts +51 -0
- package/dist/types/components/MessageList.d.ts +1 -0
- package/dist/types/components/artifacts/TrajectoryInspector.d.ts +15 -0
- package/dist/types/components/composer/AddMenu.d.ts +5 -1
- package/dist/types/components/dialogs/BranchSessionDialog.d.ts +6 -0
- package/dist/types/components/dialogs/GitDiffDialog.d.ts +2 -1
- package/dist/types/components/dialogs/GitLogDialog.d.ts +2 -1
- package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +6 -0
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +1074 -0
- package/dist/types/components/managed/java-managed-agent-client.d.ts +32 -113
- package/dist/types/components/managed/java-managed-agent-provider.d.ts +1 -0
- package/dist/types/components/managed/managed-agent-provider.d.ts +31 -1
- package/dist/types/components/messages/McpApp.d.ts +1 -1
- package/dist/types/components/messages/toolFormatting.d.ts +2 -0
- package/dist/types/components/panels/EnvironmentPanel.d.ts +2 -1
- package/dist/types/components/sidebar/UpdateControl.d.ts +10 -0
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +1 -1
- package/dist/types/daemon/session/transcript-page-table.d.ts +10 -1
- package/dist/types/daemon/session/types.d.ts +2 -2
- package/dist/types/desktop-relay/desktop-relay-client.d.ts +63 -0
- package/dist/types/mcpAppHostContext.d.ts +7 -0
- package/dist/types/settings/messages.d.ts +16 -0
- package/dist/types/settings/messages.transcript-stub.d.ts +12 -0
- package/dist/types/trajectory/summarizeTrajectory.d.ts +20 -0
- package/package.json +3 -1
|
@@ -11,6 +11,7 @@ interface BranchPickerPopoverProps {
|
|
|
11
11
|
onOpenChange: (open: boolean) => void;
|
|
12
12
|
workspaceCwd: string;
|
|
13
13
|
gitCwd?: string;
|
|
14
|
+
gitSessionId?: string;
|
|
14
15
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
15
16
|
onBranchChanged?: () => void;
|
|
16
17
|
/**
|
|
@@ -73,5 +74,5 @@ export declare function deriveActionHints(t: TranslateFn, data: DaemonGitBranche
|
|
|
73
74
|
* re-fetched. Exported for tests.
|
|
74
75
|
*/
|
|
75
76
|
export declare function listingContradictsStatus(data: DaemonGitBranchesResult, status: DaemonWorkspaceGitStatus): boolean;
|
|
76
|
-
export declare function BranchPickerPopover({ open, onOpenChange, workspaceCwd, gitCwd, side, onBranchChanged, status, onStatusRefreshed, onOpenDiff, onOpenCommit, onOpenWorktrees, onOpenLog, children, }: BranchPickerPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
77
|
+
export declare function BranchPickerPopover({ open, onOpenChange, workspaceCwd, gitCwd, gitSessionId, side, onBranchChanged, status, onStatusRefreshed, onOpenDiff, onOpenCommit, onOpenWorktrees, onOpenLog, children, }: BranchPickerPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
77
78
|
export {};
|
|
@@ -15,6 +15,7 @@ interface ChatEditorProps {
|
|
|
15
15
|
onSubmit: (text: string, images?: import('../adapters/promptTypes').PromptImage[], files?: import('../adapters/promptTypes').PromptFile[], commitAccepted?: import('../hooks/useComposerCore').ComposerSubmitCommit, metadata?: ComposerSubmitMetadata) => boolean | void;
|
|
16
16
|
onInputTextChange?: (text: string) => void;
|
|
17
17
|
onAttachmentsChange?: (hasAttachments: boolean) => void;
|
|
18
|
+
btwEnabled?: boolean;
|
|
18
19
|
onCycleMode?: () => void;
|
|
19
20
|
cycleModeOnTab?: boolean;
|
|
20
21
|
onToggleShortcuts?: () => void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
|
|
7
|
+
import { type DesktopRelayProbe } from '../desktop-relay/desktop-relay-client';
|
|
8
|
+
export type DesktopRelayPhase = 'unavailable' | 'needs-session' | 'checking' | 'permission-required' | 'missing' | 'unknown' | 'idle' | 'awaiting-approval' | 'connecting' | 'connected' | 'other-session' | 'failed';
|
|
9
|
+
export type DesktopRelayBlocker = 'insecure-context' | 'unsupported-daemon' | 'workspace-ineligible' | 'workspace-resolving';
|
|
10
|
+
export interface DesktopRelayStatus {
|
|
11
|
+
phase: DesktopRelayPhase;
|
|
12
|
+
blocker?: DesktopRelayBlocker;
|
|
13
|
+
message?: string;
|
|
14
|
+
canDisconnect?: boolean;
|
|
15
|
+
}
|
|
16
|
+
type DesktopRelayObservation = DesktopRelayProbe | {
|
|
17
|
+
kind: 'unknown';
|
|
18
|
+
};
|
|
19
|
+
export declare function retainLiveDesktopRelayProbe(previous: DesktopRelayObservation | undefined, next: DesktopRelayProbe, inconclusiveProbes?: number): DesktopRelayObservation;
|
|
20
|
+
/** Maps what the relay reports onto what this session can do next. */
|
|
21
|
+
export declare function deriveDesktopRelayStatus(input: {
|
|
22
|
+
blocker: DesktopRelayBlocker | undefined;
|
|
23
|
+
sessionId: string | undefined;
|
|
24
|
+
daemonUrl: string | undefined;
|
|
25
|
+
probe: DesktopRelayObservation | undefined;
|
|
26
|
+
awaitingApproval: boolean;
|
|
27
|
+
error: string | undefined;
|
|
28
|
+
}): DesktopRelayStatus;
|
|
29
|
+
export interface DesktopRelayPanelProps {
|
|
30
|
+
status: DesktopRelayStatus;
|
|
31
|
+
installCommand: string;
|
|
32
|
+
copied: boolean;
|
|
33
|
+
onConnect: () => void;
|
|
34
|
+
onDisconnect: () => void;
|
|
35
|
+
onCheckAgain: () => void;
|
|
36
|
+
onCopyCommand: () => void;
|
|
37
|
+
}
|
|
38
|
+
/** The popover body, prop-driven so every phase is testable without a daemon. */
|
|
39
|
+
export declare function DesktopRelayPanel({ status, installCommand, copied, onConnect, onDisconnect, onCheckAgain, onCopyCommand, }: DesktopRelayPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
interface DesktopRelayControlProps {
|
|
41
|
+
/** Class for the trigger, supplied by the sidebar so it matches its neighbours. */
|
|
42
|
+
triggerClassName: string;
|
|
43
|
+
workspaces?: readonly DaemonWorkspaceCapability[];
|
|
44
|
+
showWhenIdle?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* "Use this computer": asks the relay on the viewer's computer to lend its
|
|
48
|
+
* node_repl to this session over the daemon's reverse tool channel.
|
|
49
|
+
*/
|
|
50
|
+
export declare function DesktopRelayControl({ triggerClassName, workspaces, showWhenIdle, }: DesktopRelayControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
51
|
+
export {};
|
|
@@ -99,6 +99,7 @@ export interface MessageListProps {
|
|
|
99
99
|
turnArtifacts?: ReadonlyMap<string, readonly DaemonSessionArtifact[]>;
|
|
100
100
|
sourceEntries?: readonly WebShellSource[];
|
|
101
101
|
sourceSessionId?: string;
|
|
102
|
+
mcpAppSessionId?: string;
|
|
102
103
|
onSourceOpen?: (source: WebShellSource) => void;
|
|
103
104
|
turnScheduledTasks?: ReadonlyMap<string, readonly TurnOutputScheduledTask[]>;
|
|
104
105
|
onReviewChanges?: (changes: readonly TurnOutputFileChange[], selectedPath?: string) => void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { TrajectoryRow } from '../../trajectory/types';
|
|
7
|
+
export declare function TrajectoryInspector({ row, title, stale, turnSelected, hiddenByRange, onClearRange, onClose, }: {
|
|
8
|
+
row?: TrajectoryRow;
|
|
9
|
+
title?: string;
|
|
10
|
+
stale?: boolean;
|
|
11
|
+
turnSelected?: boolean;
|
|
12
|
+
hiddenByRange: boolean;
|
|
13
|
+
onClearRange: () => void;
|
|
14
|
+
onClose: () => void;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,6 +23,10 @@ export interface AddMenuProps {
|
|
|
23
23
|
* Omitted when the host has not enabled Plan.
|
|
24
24
|
*/
|
|
25
25
|
plan?: AddMenuPlanControl;
|
|
26
|
+
btw?: {
|
|
27
|
+
onSelect: () => void;
|
|
28
|
+
disabledReason?: string;
|
|
29
|
+
};
|
|
26
30
|
mobileActions?: {
|
|
27
31
|
commands: readonly CommandInfo[];
|
|
28
32
|
categoryOrder?: CommandDisplayCategoryOrder;
|
|
@@ -39,4 +43,4 @@ export interface AddMenuPlanControl {
|
|
|
39
43
|
disabled?: boolean;
|
|
40
44
|
onToggle: () => void;
|
|
41
45
|
}
|
|
42
|
-
export declare function AddMenu({ disabled, availabilityKey, addFileAvailable, uploadAvailable, onAddFiles, onFilePickerCancel, onInsertReference, onPrependSkill, getWorkspaceActions, skills, onSkillsOpenChange, skillsLoading, skillsLoadError, skillsLoaded, plan, mobileActions, commandsOnly, }: AddMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare function AddMenu({ disabled, availabilityKey, addFileAvailable, uploadAvailable, onAddFiles, onFilePickerCancel, onInsertReference, onPrependSkill, getWorkspaceActions, skills, onSkillsOpenChange, skillsLoading, skillsLoadError, skillsLoaded, plan, btw, mobileActions, commandsOnly, }: AddMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type BranchSessionIsolation = 'current' | 'worktree';
|
|
2
|
+
export declare function BranchSessionDialog({ busy, onCancel, onConfirm, }: {
|
|
3
|
+
busy: boolean;
|
|
4
|
+
onCancel: () => void;
|
|
5
|
+
onConfirm: (isolation: BranchSessionIsolation) => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* Copyright 2026 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
export declare function GitDiffContent({ workspaceCwd, gitCwd, onSubtitleChange, }: {
|
|
6
|
+
export declare function GitDiffContent({ workspaceCwd, gitCwd, gitSessionId, onSubtitleChange, }: {
|
|
7
7
|
workspaceCwd: string;
|
|
8
8
|
gitCwd?: string;
|
|
9
|
+
gitSessionId?: string;
|
|
9
10
|
onSubtitleChange?: (subtitle: string | undefined) => void;
|
|
10
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export declare function GitDiffDialog({ workspaceCwd, onClose, }: {
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
* Copyright 2026 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
export declare function GitLogContent({ workspaceCwd, gitCwd, onSubtitleChange, }: {
|
|
6
|
+
export declare function GitLogContent({ workspaceCwd, gitCwd, gitSessionId, onSubtitleChange, }: {
|
|
7
7
|
workspaceCwd: string;
|
|
8
8
|
gitCwd?: string;
|
|
9
|
+
gitSessionId?: string;
|
|
9
10
|
onSubtitleChange?: (subtitle: string | undefined) => void;
|
|
10
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export declare function GitLogDialog({ workspaceCwd, onClose, }: {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ManagedAgentProvider } from './managed-agent-provider';
|
|
2
|
+
export declare function WorkspaceBindingCreator({ provider, clientId, onCreated, }: {
|
|
3
|
+
provider: ManagedAgentProvider;
|
|
4
|
+
clientId: string;
|
|
5
|
+
onCreated: (sessionId: string) => void;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|