@qwen-code/web-shell 0.24.7 → 0.25.0-nightly.20261009.085a44f336
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 +65 -2
- package/dist/agents-route-D7hp7io8.js +1546 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/index-BEPcxy4Z.js +125142 -0
- package/dist/index.js +69 -120254
- package/dist/sw.js +1 -1
- package/dist/{toolNames-B0O1UjKB.js → toolNames-D4oueGGC.js} +5956 -5252
- package/dist/transcript.js +10276 -9739
- package/dist/types/App.d.ts +2 -2
- package/dist/types/ManagedAgentWebShell.d.ts +1 -0
- package/dist/types/adapters/messageTypes.d.ts +23 -1
- package/dist/types/adapters/transcriptAdapter.d.ts +1 -0
- package/dist/types/components/ChatContextHeader.d.ts +3 -1
- package/dist/types/components/ChatEditor.d.ts +1 -0
- package/dist/types/components/DesktopRelayControl.d.ts +2 -1
- package/dist/types/components/LocalFilesControl.d.ts +3 -1
- package/dist/types/components/MessageItem.d.ts +1 -0
- package/dist/types/components/MessageList.d.ts +1 -0
- package/dist/types/components/agents/AgentCreatePage.d.ts +35 -1
- package/dist/types/components/agents/AgentsManagerPage.d.ts +5 -1
- package/dist/types/components/artifacts/TrajectoryFilters.d.ts +15 -0
- package/dist/types/components/artifacts/TrajectoryInspector.d.ts +5 -1
- package/dist/types/components/artifacts/TrajectoryOverview.d.ts +3 -1
- package/dist/types/components/artifacts/TrajectoryWaterfallCell.d.ts +15 -0
- package/dist/types/components/artifacts/artifactUtils.d.ts +9 -0
- package/dist/types/components/channels/ChannelsManagerPage.d.ts +1 -1
- package/dist/types/components/extensions/extensions-manager-logic.d.ts +3 -3
- package/dist/types/components/managed/ManagedToolResultPanel.d.ts +9 -0
- package/dist/types/components/managed/ManagedToolResultSummary.d.ts +5 -0
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +915 -18
- package/dist/types/components/managed/java-managed-agent-client.d.ts +29 -1
- package/dist/types/components/managed/java-managed-agent-provider.d.ts +4 -0
- package/dist/types/components/managed/managed-agent-provider.d.ts +43 -1
- package/dist/types/components/managed/managed-agent-sse.test-fixtures.d.ts +8 -0
- package/dist/types/components/managed/managed-approval.d.ts +10 -0
- package/dist/types/components/managed/managed-artifact-download.d.ts +2 -0
- package/dist/types/components/managed/managed-request-error.d.ts +14 -0
- package/dist/types/components/managed/managed-tool-result-types.d.ts +24 -0
- package/dist/types/components/managed/managed-tool-result.test-fixtures.d.ts +6 -0
- package/dist/types/components/managed/use-managed-actions.d.ts +34 -0
- package/dist/types/components/messages/AssistantMessage.d.ts +6 -1
- package/dist/types/components/messages/AuthorAvatar.d.ts +16 -0
- package/dist/types/components/messages/ContextUsageMessage.d.ts +5 -1
- package/dist/types/components/messages/StatsMessage.d.ts +6 -1
- package/dist/types/components/messages/ToolApproval.d.ts +9 -1
- package/dist/types/components/messages/ToolGroup.d.ts +2 -0
- package/dist/types/components/messages/UserMessage.d.ts +3 -1
- package/dist/types/components/messages/agent-message-details.d.ts +36 -0
- package/dist/types/components/messages/squad-tag.d.ts +16 -0
- package/dist/types/components/sidebar/UpdateControl.d.ts +3 -1
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +16 -5
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +2 -1
- package/dist/types/components/sidebar/sessionSearch.d.ts +2 -1
- package/dist/types/components/workspace-agents/ThreadsPage.d.ts +122 -0
- package/dist/types/components/workspace-agents/add-runtime-dialog.d.ts +76 -0
- package/dist/types/components/workspace-agents/agent-events.d.ts +20 -0
- package/dist/types/components/workspace-agents/agents-route.d.ts +19 -0
- package/dist/types/components/workspace-agents/agents-view-logic.d.ts +31 -0
- package/dist/types/components/workspace-agents/lazy-agents-route.d.ts +7 -0
- package/dist/types/components/workspace-agents/messages.d.ts +16 -0
- package/dist/types/components/workspace-agents/messages.transcript-stub.d.ts +12 -0
- package/dist/types/components/workspace-agents/session-agent-live-runs.d.ts +96 -0
- package/dist/types/components/workspace-agents/session-agents-api.d.ts +39 -0
- package/dist/types/components/workspace-agents/share-agent-dialog.d.ts +33 -0
- package/dist/types/components/workspace-agents/squads-section.d.ts +28 -0
- package/dist/types/components/workspace-agents/threads-api.d.ts +52 -0
- package/dist/types/components/workspace-agents/use-session-agent-runs.d.ts +66 -0
- package/dist/types/components/workspace-agents/useAgentChatEntry.d.ts +100 -0
- package/dist/types/components/workspaces/WorkspaceHostProjects.d.ts +11 -0
- package/dist/types/components/workspaces/WorkspaceLocation.d.ts +7 -0
- package/dist/types/config/workspace-hosts.d.ts +11 -0
- package/dist/types/customization.d.ts +10 -0
- package/dist/types/daemon/session/types.d.ts +19 -3
- package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +4 -0
- package/dist/types/daemon/workspace/types.d.ts +6 -2
- package/dist/types/index.d.ts +2 -1
- package/dist/types/live/LiveVoiceButton.d.ts +2 -1
- package/dist/types/navigation.d.ts +1 -0
- package/dist/types/settings.d.ts +1 -0
- package/dist/types/trajectory/buildTrajectoryLayout.d.ts +27 -0
- package/dist/types/trajectory/filter-messages.d.ts +9 -0
- package/dist/types/trajectory/filter-messages.transcript-stub.d.ts +7 -0
- package/dist/types/trajectory/filterTrajectory.d.ts +22 -0
- package/dist/types/trajectory/types.d.ts +3 -1
- package/dist/types/trajectory/useTimelineViewport.d.ts +19 -0
- package/dist/types/trajectory/useTrajectoryWindow.d.ts +21 -36
- package/dist/types/trajectory/window-messages.d.ts +9 -0
- package/dist/types/trajectory/window-messages.transcript-stub.d.ts +7 -0
- package/dist/types/utils/cancelledTurn.d.ts +17 -0
- package/dist/types/utils/composerTag.d.ts +6 -1
- package/dist/types/utils/modelEncoding.d.ts +6 -0
- package/dist/types/utils/navigationUrl.d.ts +1 -1
- package/dist/types/utils/workspace.d.ts +1 -0
- package/package.json +2 -1
package/dist/types/App.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface WebShellSidebarOptions {
|
|
|
32
32
|
showCompactToggle?: boolean;
|
|
33
33
|
/** Whether to show the Tasks/Channels session-source switch. Defaults to true. */
|
|
34
34
|
showSessionSourceSwitch?: boolean;
|
|
35
|
-
/**
|
|
35
|
+
/** Show Live conversations and, in rail layout, the Live entry. Defaults to false. */
|
|
36
36
|
showLive?: boolean;
|
|
37
37
|
/** Hide or replace the complete sidebar branding row. */
|
|
38
38
|
branding?: false | WebShellSidebarBranding;
|
|
@@ -161,7 +161,7 @@ export interface WebShellProps {
|
|
|
161
161
|
shadowDom?: WebShellShadowDom;
|
|
162
162
|
/** Maximum chat content width in regular mode. Defaults to 1000px. */
|
|
163
163
|
chatMaxWidth?: number;
|
|
164
|
-
/**
|
|
164
|
+
/** Workspace sidebar. Defaults to Home only; false hides it. */
|
|
165
165
|
sidebar?: boolean | WebShellSidebarOptions;
|
|
166
166
|
/** Persistent chat header options. */
|
|
167
167
|
header?: WebShellChatHeaderOptions;
|
|
@@ -4,6 +4,7 @@ import { type WebShellBrand } from './brandContext';
|
|
|
4
4
|
import { type JavaManagedAgentProviderOptions } from './components/managed/java-managed-agent-provider';
|
|
5
5
|
import { type WebShellLanguage } from './i18n';
|
|
6
6
|
import { type WebShellTheme } from './themeContext';
|
|
7
|
+
/** Change productScope with tenant/actor identity so saved selections and output caches are discarded. */
|
|
7
8
|
export interface ManagedAgentWebShellProps extends JavaManagedAgentProviderOptions {
|
|
8
9
|
sessionId?: string;
|
|
9
10
|
onSessionChange?: (sessionId: string | undefined) => void;
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
* Copyright 2025 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { DaemonBackgroundTurn, DaemonSessionArtifactInput, DaemonInputAnnotation } from '@qwen-code/sdk/daemon';
|
|
6
|
+
import type { DaemonBackgroundTurn, DaemonSessionArtifactInput, DaemonInputAnnotation, QwenAgentMessageMeta } from '@qwen-code/sdk/daemon';
|
|
7
|
+
import type { components } from '../components/managed/generated/managed-agent-api.js';
|
|
7
8
|
export interface AttachmentPreviewRequest {
|
|
8
9
|
name: string;
|
|
9
10
|
mimeType?: string;
|
|
@@ -39,9 +40,12 @@ export interface DaemonMessageToolCall {
|
|
|
39
40
|
backgroundResultPending?: boolean;
|
|
40
41
|
status: DaemonMessageToolCallStatus;
|
|
41
42
|
parentToolCallId?: string;
|
|
43
|
+
/** The producer's own call ID when `callId` is keyed by something else. */
|
|
44
|
+
toolCallId?: string;
|
|
42
45
|
title?: string;
|
|
43
46
|
content?: readonly DaemonMessageToolCallContent[];
|
|
44
47
|
rawOutput?: unknown;
|
|
48
|
+
toolResult?: components['schemas']['PublicToolResult'];
|
|
45
49
|
locations?: DaemonMessageToolCallLocation[];
|
|
46
50
|
kind?: DaemonMessageToolKind;
|
|
47
51
|
startTime?: number;
|
|
@@ -59,6 +63,16 @@ export interface DaemonMessageTodoItem {
|
|
|
59
63
|
priority?: 'high' | 'medium' | 'low';
|
|
60
64
|
blockedBy?: string[];
|
|
61
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Who wrote a message when a transcript has more than one assistant voice, as
|
|
68
|
+
* in a conversation several workspace agents work in. Absent in an ordinary
|
|
69
|
+
* session, where the assistant needs no name.
|
|
70
|
+
*/
|
|
71
|
+
export interface DaemonMessageAuthor {
|
|
72
|
+
name: string;
|
|
73
|
+
/** The agent's own color, when it has one. */
|
|
74
|
+
color?: string;
|
|
75
|
+
}
|
|
62
76
|
/**
|
|
63
77
|
* Fields shared by every history message. Kept as a base interface so a new
|
|
64
78
|
* cross-cutting field is declared once rather than on each role.
|
|
@@ -84,6 +98,7 @@ export interface DaemonMessageMeta {
|
|
|
84
98
|
timestamp?: number;
|
|
85
99
|
/** Stable transcript blocks folded into this rendered message. */
|
|
86
100
|
sourceBlockIds?: string[];
|
|
101
|
+
author?: DaemonMessageAuthor;
|
|
87
102
|
}
|
|
88
103
|
export interface DaemonUserMessage extends DaemonMessageMeta {
|
|
89
104
|
id: string;
|
|
@@ -104,6 +119,8 @@ export interface DaemonUserMessage extends DaemonMessageMeta {
|
|
|
104
119
|
}>;
|
|
105
120
|
inputAnnotations?: DaemonInputAnnotation[];
|
|
106
121
|
source?: string;
|
|
122
|
+
/** `_meta.qwenAgentMessage` of an @-mention (`kind: 'agent_mention'`). */
|
|
123
|
+
agentMessage?: QwenAgentMessageMeta;
|
|
107
124
|
}
|
|
108
125
|
export interface DaemonAssistantMessage extends DaemonMessageMeta {
|
|
109
126
|
reportedArtifacts?: DaemonSessionArtifactInput[];
|
|
@@ -123,6 +140,11 @@ export interface DaemonAssistantMessage extends DaemonMessageMeta {
|
|
|
123
140
|
outputTokens: number;
|
|
124
141
|
cachedTokens?: number;
|
|
125
142
|
};
|
|
143
|
+
/**
|
|
144
|
+
* `_meta.qwenAgentMessage` of a workspace agent's reply in this session
|
|
145
|
+
* (`kind: 'agent_message'`): its run status, error, steps and tokens.
|
|
146
|
+
*/
|
|
147
|
+
agentMessage?: QwenAgentMessageMeta;
|
|
126
148
|
}
|
|
127
149
|
export interface DaemonThinkingMessage extends DaemonMessageMeta {
|
|
128
150
|
id: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { DaemonTranscriptBlock } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
2
|
import type { PermissionRequest } from './types';
|
|
3
3
|
export declare function extractPendingPermission(blocks: readonly DaemonTranscriptBlock[]): PermissionRequest | null;
|
|
4
|
+
export declare function escapePreviewText(text: string): string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
interface ChatContextHeaderProps {
|
|
3
3
|
content: ReactNode;
|
|
4
|
+
/** Names where the chat runs, beside the actions; hidden when omitted. */
|
|
5
|
+
location?: ReactNode;
|
|
4
6
|
/**
|
|
5
7
|
* Workspace shown as the header's leading icon. Omitting it means the shell
|
|
6
8
|
* has no workspace: the icon stays the same folder and only its tooltip says
|
|
@@ -23,5 +25,5 @@ interface ChatContextHeaderProps {
|
|
|
23
25
|
/** Shows the Local Control QR entry; hidden when omitted. */
|
|
24
26
|
onOpenLocalControlSettings?: () => void;
|
|
25
27
|
}
|
|
26
|
-
export declare function ChatContextHeader({ content, workspaceName, workspacePath, environmentOpen, environmentAvailable, rightPanelOpen, rightPanelAvailable, onToggleEnvironment, onToggleRightPanel, onOpenTokenUsage, onOpenContextUsage, onOpenLocalControlSettings, }: ChatContextHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function ChatContextHeader({ content, location, workspaceName, workspacePath, environmentOpen, environmentAvailable, rightPanelOpen, rightPanelAvailable, onToggleEnvironment, onToggleRightPanel, onOpenTokenUsage, onOpenContextUsage, onOpenLocalControlSettings, }: ChatContextHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
27
29
|
export {};
|
|
@@ -75,6 +75,7 @@ interface ChatEditorProps {
|
|
|
75
75
|
showChatWidthToggle?: boolean;
|
|
76
76
|
chatWidthToggleMin?: number;
|
|
77
77
|
visibleToolbarActions?: readonly ComposerToolbarAction[];
|
|
78
|
+
liveVoicePortalContainer?: HTMLElement | null;
|
|
78
79
|
/**
|
|
79
80
|
* Where the composer's context chips (workspace selector, git branch) land.
|
|
80
81
|
* `toolbar` (default) keeps both in the composer toolbar. `below` moves both
|
|
@@ -40,6 +40,7 @@ export declare function DesktopRelayPanel({ status, installCommand, copied, onCo
|
|
|
40
40
|
interface DesktopRelayControlProps {
|
|
41
41
|
/** Class for the trigger, supplied by the sidebar so it matches its neighbours. */
|
|
42
42
|
triggerClassName: string;
|
|
43
|
+
portalContainer?: HTMLElement | null;
|
|
43
44
|
workspaces?: readonly DaemonWorkspaceCapability[];
|
|
44
45
|
showWhenIdle?: boolean;
|
|
45
46
|
}
|
|
@@ -47,5 +48,5 @@ interface DesktopRelayControlProps {
|
|
|
47
48
|
* "Use this computer": asks the relay on the viewer's computer to lend its
|
|
48
49
|
* node_repl to this session over the daemon's reverse tool channel.
|
|
49
50
|
*/
|
|
50
|
-
export declare function DesktopRelayControl({ triggerClassName, workspaces, showWhenIdle, }: DesktopRelayControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
51
|
+
export declare function DesktopRelayControl({ triggerClassName, portalContainer, workspaces, showWhenIdle, }: DesktopRelayControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
51
52
|
export {};
|
|
@@ -24,6 +24,8 @@ interface LocalFilesControlProps {
|
|
|
24
24
|
* neighbours instead of inventing a second button style.
|
|
25
25
|
*/
|
|
26
26
|
triggerClassName: string;
|
|
27
|
+
/** Keep the bridge mounted while its menu trigger is absent. */
|
|
28
|
+
portalContainer?: HTMLElement | null;
|
|
27
29
|
/**
|
|
28
30
|
* The merged workspace list (capabilities snapshot plus a locked workspace
|
|
29
31
|
* registered before the snapshot). The sidebar already holds it; resolving
|
|
@@ -70,5 +72,5 @@ export declare function createLocalFilesRewarm(options: {
|
|
|
70
72
|
selector: AcpWorkspaceSelector | undefined;
|
|
71
73
|
preheat: () => Promise<unknown>;
|
|
72
74
|
}): () => Promise<void>;
|
|
73
|
-
export declare function LocalFilesControl({ triggerClassName, workspaces, }: LocalFilesControlProps): import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
export declare function LocalFilesControl({ triggerClassName, portalContainer, workspaces, }: LocalFilesControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
74
76
|
export {};
|
|
@@ -13,6 +13,7 @@ interface MessageItemProps {
|
|
|
13
13
|
onImagePreview?: (src: string, alt?: string) => void;
|
|
14
14
|
onAttachmentPreview?: (file: AttachmentPreviewRequest) => void;
|
|
15
15
|
onTurnOutputOpen?: (request: TurnOutputOpenRequest) => void;
|
|
16
|
+
onToolResultOpen?: (itemId: string) => void;
|
|
16
17
|
onInsightReportOpen?: (path: string) => void;
|
|
17
18
|
workspaceCwd?: string;
|
|
18
19
|
showRetryHint?: boolean;
|
|
@@ -106,6 +106,7 @@ export interface MessageListProps {
|
|
|
106
106
|
onOpenArtifact?: (artifactId: string, previewContent?: string) => void;
|
|
107
107
|
onOpenScheduledTask?: (task: TurnOutputScheduledTask) => void;
|
|
108
108
|
onTurnOutputOpen?: (request: TurnOutputOpenRequest) => void;
|
|
109
|
+
onToolResultOpen?: (itemId: string) => void;
|
|
109
110
|
onError?: (error: unknown, fallback: string) => void;
|
|
110
111
|
generateContent?: SessionContentGenerator;
|
|
111
112
|
}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { type DaemonWorkspaceAgentDetail } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
|
+
import { type AgentProgramView } from '../workspace-agents/agents-view-logic';
|
|
2
3
|
interface AgentCreatePageProps {
|
|
4
|
+
workspaceCwd?: string;
|
|
3
5
|
initialScope?: 'workspace' | 'global';
|
|
4
6
|
agent?: DaemonWorkspaceAgentDetail;
|
|
5
7
|
onCancel: () => void;
|
|
6
8
|
onCreated: (name: string) => void;
|
|
9
|
+
executionHosts?: readonly {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
status: 'online' | 'offline';
|
|
13
|
+
provider?: string;
|
|
14
|
+
/** Program ids the runtime reported it can run. */
|
|
15
|
+
programs?: readonly string[];
|
|
16
|
+
workspaceCwd?: string;
|
|
17
|
+
}[];
|
|
18
|
+
/** Preselects the runtime, e.g. right after it joined. */
|
|
19
|
+
initialHostId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Program ids this computer's daemon reported it can run. Absent (an older
|
|
22
|
+
* daemon) means Qwen Code only.
|
|
23
|
+
*/
|
|
24
|
+
localPrograms?: readonly string[];
|
|
25
|
+
onSaveWorkspaceAgent?: (input: {
|
|
26
|
+
name: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
instructions?: string;
|
|
29
|
+
agentType?: string;
|
|
30
|
+
model?: string;
|
|
31
|
+
maxConcurrentRuns: number;
|
|
32
|
+
execution?: {
|
|
33
|
+
mode: 'local';
|
|
34
|
+
provider?: AgentProgramView;
|
|
35
|
+
} | {
|
|
36
|
+
mode: 'managed-host';
|
|
37
|
+
hostIds: string[];
|
|
38
|
+
provider?: AgentProgramView;
|
|
39
|
+
};
|
|
40
|
+
}) => Promise<void>;
|
|
7
41
|
}
|
|
8
|
-
export declare function AgentCreatePage({ initialScope, agent, onCancel, onCreated, }: AgentCreatePageProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export declare function AgentCreatePage({ initialScope, agent, onCancel, onCreated, executionHosts, workspaceCwd, initialHostId, localPrograms, onSaveWorkspaceAgent, }: AgentCreatePageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
43
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { EmbeddedManagerPage } from '../plugins/manager-page';
|
|
2
2
|
interface AgentsManagerPageProps {
|
|
3
|
+
initialAgentView?: 'agents' | 'squads' | 'runtime' | 'new-agent';
|
|
3
4
|
onClose: () => void;
|
|
4
5
|
embedded?: EmbeddedManagerPage;
|
|
5
6
|
initialCreateScope?: 'workspace' | 'global' | null;
|
|
7
|
+
workspaceCwd?: string;
|
|
8
|
+
/** Puts `@name ` into the chat composer, from an agent card. */
|
|
9
|
+
onMentionAgent?: (name: string) => void;
|
|
6
10
|
}
|
|
7
|
-
export declare function AgentsManagerPage({ onClose, embedded, initialCreateScope, }: AgentsManagerPageProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function AgentsManagerPage({ initialAgentView, onClose, embedded, initialCreateScope, workspaceCwd, onMentionAgent, }: AgentsManagerPageProps): import("react/jsx-runtime").JSX.Element;
|
|
8
12
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { TrajectoryFilter } from '../../trajectory/filterTrajectory';
|
|
7
|
+
export declare function TrajectoryFilters({ value, onChange, onNavigate, onClear, count, position, truncatedCount, }: {
|
|
8
|
+
value: TrajectoryFilter;
|
|
9
|
+
onChange: (filter: TrajectoryFilter) => void;
|
|
10
|
+
onNavigate: (direction: 1 | -1, filter?: TrajectoryFilter) => void;
|
|
11
|
+
onClear: () => void;
|
|
12
|
+
count: number;
|
|
13
|
+
position: number;
|
|
14
|
+
truncatedCount: number;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,12 +4,16 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { TrajectoryRow } from '../../trajectory/types';
|
|
7
|
-
export declare function TrajectoryInspector({ row, title, stale, turnSelected, hiddenByRange, onClearRange, onClose, }: {
|
|
7
|
+
export declare function TrajectoryInspector({ row, title, stale, turnSelected, hiddenByRange, hiddenByCollapse, hiddenByFilter, onClearFilter, onReveal, onClearRange, onClose, }: {
|
|
8
8
|
row?: TrajectoryRow;
|
|
9
9
|
title?: string;
|
|
10
10
|
stale?: boolean;
|
|
11
11
|
turnSelected?: boolean;
|
|
12
12
|
hiddenByRange: boolean;
|
|
13
|
+
hiddenByCollapse: boolean;
|
|
14
|
+
hiddenByFilter?: boolean;
|
|
15
|
+
onClearFilter?: () => void;
|
|
16
|
+
onReveal: () => void;
|
|
13
17
|
onClearRange: () => void;
|
|
14
18
|
onClose: () => void;
|
|
15
19
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { TimelineMode, TimelineModel, TimelineSpan } from '../../trajectory/buildTimeline';
|
|
7
7
|
import { type TimelineRange } from '../../trajectory/timelineRange';
|
|
8
|
+
import type { TimelineViewportController } from '../../trajectory/useTimelineViewport';
|
|
8
9
|
/**
|
|
9
10
|
* The strip's height, which never changes. It sits above the table as a flex
|
|
10
11
|
* sibling of the scrolled rows, so any change in its height would move every
|
|
@@ -20,6 +21,7 @@ export declare const OVERVIEW_HEIGHT = 64;
|
|
|
20
21
|
export declare const DRAG_THRESHOLD_PX = 4;
|
|
21
22
|
export interface TrajectoryOverviewProps {
|
|
22
23
|
model: TimelineModel | undefined;
|
|
24
|
+
viewportControl: TimelineViewportController;
|
|
23
25
|
/** Shown inside the box when there is no model to draw. */
|
|
24
26
|
notice?: string;
|
|
25
27
|
selectedKey?: string;
|
|
@@ -68,4 +70,4 @@ export declare function formatWindowTime(ms: number, windowMs: number): string;
|
|
|
68
70
|
* milliseconds.
|
|
69
71
|
*/
|
|
70
72
|
export declare function formatClockTime(epochMs: number, windowMs: number, language: string): string;
|
|
71
|
-
export declare function TrajectoryOverview({ model, notice, selectedKey, onSelect, describe, range, onRangeChange, onModeChange, }: TrajectoryOverviewProps): import("react/jsx-runtime").JSX.Element;
|
|
73
|
+
export declare function TrajectoryOverview({ model, viewportControl, notice, selectedKey, onSelect, describe, range, onRangeChange, onModeChange, }: TrajectoryOverviewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { TimelineSpan } from '../../trajectory/buildTimeline';
|
|
7
|
+
import type { TimelineRange } from '../../trajectory/timelineRange';
|
|
8
|
+
import type { TimelineViewport } from '../../trajectory/useTimelineViewport';
|
|
9
|
+
export declare function TrajectoryWaterfallCell({ span, total, viewport, range, title, }: {
|
|
10
|
+
span?: TimelineSpan;
|
|
11
|
+
total: number;
|
|
12
|
+
viewport?: TimelineViewport;
|
|
13
|
+
range?: TimelineRange;
|
|
14
|
+
title?: string;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,6 +30,15 @@ export declare function readWorkspaceFileAsBlob(readFileBytes: (filePath: string
|
|
|
30
30
|
}): Promise<Blob>;
|
|
31
31
|
export declare function downloadWorkspaceFile(workspaceActions: Pick<DaemonWorkspaceActions, 'readFileBytes' | 'stat'>, workspacePath: string, mimeType?: string, isCancelled?: () => boolean): Promise<void>;
|
|
32
32
|
export declare function getArtifactLocation(artifact: DaemonSessionArtifact): string;
|
|
33
|
+
/**
|
|
34
|
+
* Workspace files are shown by filename. Links and managed artifacts have no
|
|
35
|
+
* file, so they keep the stored title.
|
|
36
|
+
*/
|
|
37
|
+
export declare function artifactDisplayName(artifact: Pick<DaemonSessionArtifact, 'title'> & {
|
|
38
|
+
workspacePath?: string;
|
|
39
|
+
}): string;
|
|
40
|
+
/** A backslash stays in the name, matching `path.posix.basename`. */
|
|
41
|
+
export declare function workspaceFileName(workspacePath: string | undefined): string | undefined;
|
|
33
42
|
export declare function normalizePath(value: string | undefined): string;
|
|
34
43
|
export declare function stripWorkspacePath(path: string, workspaceCwd?: string): string;
|
|
35
44
|
export declare function isSamePath(left: string | undefined, right: string | undefined, workspaceCwd?: string): boolean;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { type Ref } from 'react';
|
|
7
7
|
interface ChannelsManagerPageProps {
|
|
8
|
-
onClose
|
|
8
|
+
onClose?: () => void;
|
|
9
9
|
initialFocusRef?: Ref<HTMLHeadingElement>;
|
|
10
10
|
}
|
|
11
11
|
export declare function ChannelsManagerPage({ onClose, initialFocusRef, }: ChannelsManagerPageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare function preserveSelectedExtensionName(name: string | null, extensions: readonly
|
|
3
|
-
export declare function filterExtensions(extensions: readonly
|
|
1
|
+
import type { DaemonExtensionSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
+
export declare function preserveSelectedExtensionName(name: string | null, extensions: readonly DaemonExtensionSummary[]): string | null;
|
|
3
|
+
export declare function filterExtensions<T extends DaemonExtensionSummary>(extensions: readonly T[], query: string): T[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ManagedToolResultReader } from './managed-tool-result-types';
|
|
2
|
+
export declare const MANAGED_OUTPUT_PAGE_BYTES: number;
|
|
3
|
+
export declare function ManagedToolResultPanel({ reader, sessionId, clientId, itemId, onClose, }: {
|
|
4
|
+
reader: ManagedToolResultReader;
|
|
5
|
+
sessionId: string;
|
|
6
|
+
clientId: string;
|
|
7
|
+
itemId?: string;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|