@qwen-code/web-shell 0.27.4 → 0.28.0-nightly.20261118.d9ac287c9f
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 +3 -3
- package/dist/{PierreFilePreview-BMd8Nqyr.js → PierreFilePreview-702EU5Ue.js} +1 -1
- package/dist/{SpreadsheetPreview-MnZX4z-A.js → SpreadsheetPreview-Dxgc_9mv.js} +11 -11
- package/dist/{WorkspaceFileBrowser-CvJS8MdL.js → WorkspaceFileBrowser-XlJixW-G.js} +2 -2
- package/dist/agents-route-B5igtzLt.js +1746 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-ENe4NzKy.js → index-D0g0Svhz.js} +69257 -65377
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +10623 -10223
- package/dist/types/App.d.ts +1 -1
- package/dist/types/adapters/messageTypes.d.ts +6 -1
- package/dist/types/adapters/toolClassification.d.ts +2 -1
- package/dist/types/browser-notifications/messages.d.ts +1 -0
- package/dist/types/browser-notifications/messages.transcript-stub.d.ts +1 -0
- package/dist/types/chat-core/capabilities.d.ts +3 -0
- package/dist/types/chat-core/contract.d.ts +106 -0
- package/dist/types/chat-core/intent.d.ts +8 -0
- package/dist/types/completions/sendCompletion.d.ts +28 -0
- package/dist/types/completions/slashCompletion.d.ts +8 -1
- package/dist/types/components/BranchPickerPopover.d.ts +11 -1
- package/dist/types/components/ChatContextHeader.d.ts +5 -1
- package/dist/types/components/ChatEditor.d.ts +7 -1
- package/dist/types/components/ChatPane.d.ts +3 -1
- package/dist/types/components/ComposerStatusStack.d.ts +8 -0
- package/dist/types/components/ComposerTaskChips.d.ts +5 -2
- package/dist/types/components/GoalStatusStrip.d.ts +23 -2
- package/dist/types/components/LocalFilesControl.d.ts +40 -1
- package/dist/types/components/ManagedLocalFilesControl.d.ts +3 -1
- package/dist/types/components/MessageItem.d.ts +2 -0
- package/dist/types/components/MessageList.d.ts +1 -0
- package/dist/types/components/ReportedArtifactRegistration.d.ts +25 -0
- package/dist/types/components/SessionGoalMarker.d.ts +24 -0
- package/dist/types/components/ToastHost.d.ts +27 -1
- package/dist/types/components/UnavailableModelTooltip.d.ts +4 -2
- package/dist/types/components/WebShellTranscript.d.ts +1 -1
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +34 -2
- package/dist/types/components/artifacts/ChangeOverviewPanel.d.ts +4 -0
- package/dist/types/components/artifacts/SessionPanel.d.ts +19 -0
- package/dist/types/components/artifacts/change-overview.d.ts +102 -0
- package/dist/types/components/artifacts/files-messages.d.ts +33 -0
- package/dist/types/components/artifacts/files-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/artifacts/token-usage-messages.d.ts +1 -0
- package/dist/types/components/artifacts/token-usage-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/artifacts/useChangeOverview.d.ts +21 -0
- package/dist/types/components/channels/channel-events-messages.d.ts +1 -0
- package/dist/types/components/channels/channel-platform.d.ts +1 -1
- package/dist/types/components/dialogs/GoalsDialog.d.ts +2 -1
- package/dist/types/components/managed/WorkspaceBindingCreator.d.ts +14 -2
- package/dist/types/components/managed/chat-capabilities.d.ts +5 -0
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +4 -4
- package/dist/types/components/managed/managed-diagnostics-messages.d.ts +167 -167
- package/dist/types/components/managed/managed-extension-messages.d.ts +1 -0
- package/dist/types/components/managed/managed-lifecycle-messages.d.ts +40 -0
- package/dist/types/components/managed/managed-lifecycle-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/managed/managed-mcp-messages.d.ts +1 -0
- package/dist/types/components/managed/managed-mcp-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/managed/managed-recovery-messages.d.ts +4 -1
- package/dist/types/components/managed/managed-task-messages.d.ts +1 -0
- package/dist/types/components/managed/managed-task-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/managed/managed-workspace-messages.d.ts +1 -0
- package/dist/types/components/managed/managed-workspace-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/managed/use-managed-recovery.d.ts +1 -2
- package/dist/types/components/message-deletion-messages.d.ts +1 -0
- package/dist/types/components/message-deletion-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/messages/AssistantMessage.d.ts +2 -0
- package/dist/types/components/messages/BtwMessage.d.ts +6 -0
- package/dist/types/components/messages/HookStatistics.d.ts +4 -0
- package/dist/types/components/messages/HookStatistics.transcript-stub.d.ts +4 -0
- package/dist/types/components/messages/MemoryMessage.d.ts +1 -2
- package/dist/types/components/messages/UserMessage.d.ts +5 -1
- package/dist/types/components/messages/hook-statistics-context.d.ts +13 -0
- package/dist/types/components/messages/hook-statistics-turns.d.ts +3 -0
- package/dist/types/components/messages/session-link.d.ts +1 -0
- package/dist/types/components/panels/EnvironmentPanel.d.ts +7 -1
- package/dist/types/components/sidebar/ActivityDateSessions.d.ts +22 -0
- package/dist/types/components/sidebar/SessionGroupSection.d.ts +4 -2
- package/dist/types/components/sidebar/SessionSortMenu.d.ts +15 -1
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +1 -1
- package/dist/types/components/sidebar/activity-messages.d.ts +1 -0
- package/dist/types/components/sidebar/activity-model.d.ts +1 -1
- package/dist/types/components/ui/drawer.d.ts +1 -1
- package/dist/types/components/workspace-agents/add-runtime-dialog.d.ts +13 -5
- package/dist/types/components/workspace-agents/messages.d.ts +1 -0
- package/dist/types/components/workspace-agents/messages.transcript-stub.d.ts +1 -0
- package/dist/types/constants/approvalModes.d.ts +7 -0
- package/dist/types/constants/localCommands.d.ts +3 -1
- package/dist/types/constants/sessions.d.ts +1 -0
- package/dist/types/customization.d.ts +10 -2
- package/dist/types/daemon/chat-capabilities.d.ts +3 -0
- package/dist/types/daemon/session/types.d.ts +42 -2
- package/dist/types/daemon/workspace/hooks/useDaemonAgents.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonAuth.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonChannelEvents.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonDiagnostics.d.ts +14 -2
- package/dist/types/daemon/workspace/hooks/useDaemonMcp.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonMemory.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonProviders.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonResource.d.ts +7 -1
- package/dist/types/daemon/workspace/hooks/useDaemonSessions.d.ts +6 -0
- package/dist/types/daemon/workspace/hooks/useDaemonSettings.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonStatusReport.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonTools.d.ts +5 -0
- package/dist/types/daemon/workspace/hooks/useDaemonUsageDashboard.d.ts +5 -0
- package/dist/types/generated-ui/instance-store.d.ts +4 -1
- package/dist/types/generated-ui/view-state.d.ts +51 -0
- package/dist/types/hooks/useComposerCore.d.ts +22 -2
- package/dist/types/hooks/useComposerWorkspace.d.ts +7 -0
- package/dist/types/hooks/useIsTouchComposer.d.ts +1 -0
- package/dist/types/hooks/useModelConfigurations.d.ts +7 -0
- package/dist/types/hooks/useScopedSessions.d.ts +1 -0
- package/dist/types/hooks/useSessionArtifacts.d.ts +8 -2
- package/dist/types/hooks/useSubSessionTasks.d.ts +8 -0
- package/dist/types/i18n-ru-part1.d.ts +1 -0
- package/dist/types/i18n-ru-part1.transcript-stub.d.ts +12 -0
- package/dist/types/i18n-ru-part2.d.ts +1 -0
- package/dist/types/i18n-ru-part2.transcript-stub.d.ts +12 -0
- package/dist/types/i18n-ru-part3.d.ts +1 -0
- package/dist/types/i18n-ru-part3.transcript-stub.d.ts +12 -0
- package/dist/types/i18n-ru-part4.d.ts +1 -0
- package/dist/types/i18n-ru-part4.transcript-stub.d.ts +12 -0
- package/dist/types/i18n-ru-part5.d.ts +1 -0
- package/dist/types/i18n-ru-part5.transcript-stub.d.ts +12 -0
- package/dist/types/i18n-ru-part6.d.ts +1 -0
- package/dist/types/i18n-ru-part6.transcript-stub.d.ts +12 -0
- package/dist/types/i18n-ru-remainder.d.ts +6 -0
- package/dist/types/i18n-ru-remainder.transcript-stub.d.ts +11 -0
- package/dist/types/i18n-zh-tw.d.ts +8 -0
- package/dist/types/i18n-zh-tw.transcript-stub.d.ts +6 -0
- package/dist/types/i18n.d.ts +7 -1
- package/dist/types/live/messages.d.ts +1 -0
- package/dist/types/live/messages.transcript-stub.d.ts +1 -0
- package/dist/types/local-files/useLocalFilesBridge.d.ts +7 -1
- package/dist/types/local-files/useManagedLocalFilesBridge.d.ts +5 -1
- package/dist/types/mcp-app/messages.d.ts +1 -0
- package/dist/types/mcp-app/messages.transcript-stub.d.ts +1 -0
- package/dist/types/mcpAppHostContext.d.ts +4 -0
- package/dist/types/session-catalog/session-catalog-hooks.d.ts +5 -1
- package/dist/types/session-catalog/session-live-work.d.ts +23 -0
- package/dist/types/settings/messages.d.ts +1 -0
- package/dist/types/settings/messages.transcript-stub.d.ts +1 -0
- package/dist/types/subagentDetailsContext.d.ts +9 -1
- package/dist/types/trajectory/execution-messages.d.ts +1 -0
- package/dist/types/trajectory/execution-messages.transcript-stub.d.ts +1 -0
- package/dist/types/trajectory/filter-messages.d.ts +1 -0
- package/dist/types/trajectory/filter-messages.transcript-stub.d.ts +1 -0
- package/dist/types/trajectory/project-trajectory-lifecycle.d.ts +1 -1
- package/dist/types/trajectory/trajectory-live-store.d.ts +3 -1
- package/dist/types/trajectory/window-messages.d.ts +1 -0
- package/dist/types/trajectory/window-messages.transcript-stub.d.ts +1 -0
- package/dist/types/utils/composerTasks.d.ts +16 -4
- package/dist/types/utils/gitModeIntent.d.ts +14 -4
- package/dist/types/utils/imageIngestion.d.ts +1 -0
- package/dist/types/utils/planMode.d.ts +2 -2
- package/dist/types/utils/plural.d.ts +5 -0
- package/dist/types/utils/sendCommand.d.ts +31 -0
- package/dist/types/voice/VoiceButton.d.ts +9 -1
- package/dist/types/voice/messages.d.ts +1 -0
- package/dist/types/voice/messages.transcript-stub.d.ts +1 -0
- package/dist/types/voice/useVoiceCapture.d.ts +8 -0
- package/dist/useDaemonMidTurnInjected-CImeR4Nm.js +37291 -0
- package/package.json +1 -1
- package/dist/agents-route-BYqfB9LM.js +0 -1727
- package/dist/types/components/managed/ManagedRecoveryPanel.d.ts +0 -9
- package/dist/useDaemonMidTurnInjected-BCExZTLK.js +0 -26004
package/dist/types/App.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ export interface WebShellProps {
|
|
|
142
142
|
*/
|
|
143
143
|
onThemeResolved?: (theme: WebShellTheme) => void;
|
|
144
144
|
/** UI language for the web-shell. Defaults to `?language=` or browser language. */
|
|
145
|
-
language?: 'en' | 'zh-CN' | 'zh' | 'zh-cn' | 'ru' | 'ru-ru';
|
|
145
|
+
language?: 'en' | 'zh-CN' | 'zh' | 'zh-cn' | 'zh-TW' | 'zh-tw' | 'zh-HK' | 'zh-hk' | 'zh-Hant' | 'zh-hant' | 'zh-MO' | 'zh-mo' | 'ru' | 'ru-ru';
|
|
146
146
|
/** Called when `/language ui` changes the web-shell UI language. */
|
|
147
147
|
onLanguageChange?: (language: WebShellLanguage) => void;
|
|
148
148
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { DaemonBackgroundTurn, DaemonSessionArtifactInput, DaemonInputAnnotation, QwenAgentMessageMeta } from '@qwen-code/sdk/daemon';
|
|
6
|
+
import type { DaemonBackgroundTurn, DaemonSessionArtifactInput, DaemonInputAnnotation, DaemonInputSourceAnnotation, QwenAgentMessageMeta } from '@qwen-code/sdk/daemon';
|
|
7
7
|
import type { components } from '../components/managed/generated/managed-agent-api.js';
|
|
8
8
|
export interface AttachmentPreviewRequest {
|
|
9
9
|
name: string;
|
|
@@ -130,6 +130,8 @@ export interface DaemonUserMessage extends DaemonMessageMeta {
|
|
|
130
130
|
attachmentId?: string;
|
|
131
131
|
}>;
|
|
132
132
|
inputAnnotations?: DaemonInputAnnotation[];
|
|
133
|
+
/** The other session that sent this message (`/send`, a sub-session launch). */
|
|
134
|
+
sentFrom?: DaemonInputSourceAnnotation;
|
|
133
135
|
source?: string;
|
|
134
136
|
/** `_meta.qwenAgentMessage` of an @-mention (`kind: 'agent_mention'`). */
|
|
135
137
|
agentMessage?: QwenAgentMessageMeta;
|
|
@@ -218,6 +220,9 @@ export interface DaemonBtwMessage extends DaemonMessageMeta {
|
|
|
218
220
|
question: string;
|
|
219
221
|
answer: string;
|
|
220
222
|
isPending: boolean;
|
|
223
|
+
/** Set when the question explains a background task, so the task's detail
|
|
224
|
+
* panel can mirror the answer in place. Absent for typed /btw. */
|
|
225
|
+
taskId?: string;
|
|
221
226
|
}
|
|
222
227
|
export interface DaemonInsightProgressMessage extends DaemonMessageMeta {
|
|
223
228
|
id: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { ACPToolCall } from './types.js';
|
|
1
|
+
import type { ACPToolCall, PermissionRequest } from './types.js';
|
|
2
2
|
export declare function resolveToolCallName(toolName: string | undefined, rawInput: unknown): string | undefined;
|
|
3
|
+
export declare function isNamedSubSessionApproval(request: PermissionRequest): boolean;
|
|
3
4
|
export declare function isActiveToolStatus(status: ACPToolCall['status'] | string): boolean;
|
|
4
5
|
export type TerminalBackgroundAgentStatus = 'completed' | 'failed' | 'cancelled' | 'canceled';
|
|
5
6
|
export declare function isTerminalBackgroundAgentStatus(status: unknown): status is TerminalBackgroundAgentStatus;
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type BrowserNotificationMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const BROWSER_NOTIFICATION_MESSAGES_EN: Record<string, BrowserNotificationMessage>;
|
|
8
8
|
export declare const BROWSER_NOTIFICATION_MESSAGES_ZH: Record<string, BrowserNotificationMessage>;
|
|
9
|
+
export declare const BROWSER_NOTIFICATION_MESSAGES_RU: Record<string, BrowserNotificationMessage>;
|
|
9
10
|
export {};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { Message } from '../adapters/types.js';
|
|
2
|
+
import type { PromptFile, PromptImage } from '../adapters/promptTypes.js';
|
|
3
|
+
import type { ComposerSubmitMetadata } from '../hooks/useComposerCore.js';
|
|
4
|
+
export type Admission = 'accepted' | 'rejected' | 'unknown';
|
|
5
|
+
export type Outcome = 'established' | 'unsettled' | 'failed';
|
|
6
|
+
export interface IntentTarget {
|
|
7
|
+
readonly sessionId: string;
|
|
8
|
+
readonly turnId?: string;
|
|
9
|
+
readonly attemptId?: string;
|
|
10
|
+
readonly requestId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IntentResult {
|
|
13
|
+
readonly admission: Admission;
|
|
14
|
+
readonly outcome?: Outcome;
|
|
15
|
+
readonly target: IntentTarget;
|
|
16
|
+
}
|
|
17
|
+
export type OperationState = 'pending' | 'running' | 'established' | 'unsettled' | 'failed';
|
|
18
|
+
export type IntentKind = 'submit' | 'cancel' | 'approval' | 'question' | 'compression' | 'lifecycle' | 'mcp';
|
|
19
|
+
export interface ChatOperation {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly kind: IntentKind;
|
|
22
|
+
readonly state: OperationState;
|
|
23
|
+
readonly target: IntentTarget;
|
|
24
|
+
}
|
|
25
|
+
export type ChatPhase = 'idle' | 'submitting' | 'running' | 'cancelling' | 'failed';
|
|
26
|
+
export interface PendingApproval {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly status: 'pending' | 'superseded';
|
|
29
|
+
}
|
|
30
|
+
export interface PendingQuestion {
|
|
31
|
+
readonly id: string;
|
|
32
|
+
}
|
|
33
|
+
export interface QuestionAnswer {
|
|
34
|
+
readonly questionId: string;
|
|
35
|
+
readonly value: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ComposerSubmit {
|
|
38
|
+
readonly text: string;
|
|
39
|
+
readonly images?: readonly PromptImage[];
|
|
40
|
+
readonly files?: readonly PromptFile[];
|
|
41
|
+
readonly metadata?: ComposerSubmitMetadata;
|
|
42
|
+
}
|
|
43
|
+
export interface ModelSelectionController {
|
|
44
|
+
readonly models: readonly {
|
|
45
|
+
modelId: string;
|
|
46
|
+
label: string;
|
|
47
|
+
}[];
|
|
48
|
+
readonly selectedModelId?: string;
|
|
49
|
+
select(modelId: string): Promise<IntentResult>;
|
|
50
|
+
}
|
|
51
|
+
export interface ApprovalSelectionController {
|
|
52
|
+
readonly mode: string;
|
|
53
|
+
readonly availableModes: readonly string[];
|
|
54
|
+
select(mode: string): Promise<IntentResult>;
|
|
55
|
+
}
|
|
56
|
+
export interface ContextUsageController {
|
|
57
|
+
readonly usageKnown: boolean;
|
|
58
|
+
readonly inputTokens?: number;
|
|
59
|
+
readonly contextWindowSize?: number;
|
|
60
|
+
compress(): Promise<IntentResult>;
|
|
61
|
+
}
|
|
62
|
+
export type SessionLifecycleAction = 'close' | 'archive' | 'unarchive' | 'delete';
|
|
63
|
+
export interface SessionOpsController {
|
|
64
|
+
rename(title: string): Promise<IntentResult>;
|
|
65
|
+
export?(): Promise<IntentResult>;
|
|
66
|
+
lifecycle?(action: SessionLifecycleAction): Promise<IntentResult>;
|
|
67
|
+
}
|
|
68
|
+
export interface ChatCapabilities {
|
|
69
|
+
readonly contextUsage: boolean;
|
|
70
|
+
readonly usageStats: boolean;
|
|
71
|
+
readonly modelSelection: boolean;
|
|
72
|
+
readonly approvalSelection: boolean;
|
|
73
|
+
readonly sessionOps: boolean;
|
|
74
|
+
readonly conversationSearch: boolean;
|
|
75
|
+
readonly goalDisplay: boolean;
|
|
76
|
+
readonly terminal: boolean;
|
|
77
|
+
readonly tasks: boolean;
|
|
78
|
+
readonly diagnostics: boolean;
|
|
79
|
+
readonly artifacts: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface ChatStatusFacts {
|
|
82
|
+
readonly queueLength: number;
|
|
83
|
+
readonly goalActive: boolean;
|
|
84
|
+
}
|
|
85
|
+
export interface SessionChatController {
|
|
86
|
+
readonly kind: 'daemon' | 'managed';
|
|
87
|
+
readonly sessionId: string;
|
|
88
|
+
readonly storageKey: string;
|
|
89
|
+
readonly operations: readonly ChatOperation[];
|
|
90
|
+
readonly messages: readonly Message[];
|
|
91
|
+
readonly transcriptState: 'loading' | 'ready' | 'error';
|
|
92
|
+
loadOlder?(): Promise<void>;
|
|
93
|
+
readonly phase: ChatPhase;
|
|
94
|
+
submit(input: ComposerSubmit): Promise<IntentResult>;
|
|
95
|
+
cancel(): Promise<IntentResult>;
|
|
96
|
+
readonly pendingApprovals: readonly PendingApproval[];
|
|
97
|
+
readonly pendingQuestions: readonly PendingQuestion[];
|
|
98
|
+
respondApproval(id: string, optionId: string): Promise<IntentResult>;
|
|
99
|
+
respondQuestion(id: string, answers: readonly QuestionAnswer[]): Promise<IntentResult>;
|
|
100
|
+
readonly modelSelection?: ModelSelectionController;
|
|
101
|
+
readonly approvalSelection?: ApprovalSelectionController;
|
|
102
|
+
readonly contextUsage?: ContextUsageController;
|
|
103
|
+
readonly sessionOps?: SessionOpsController;
|
|
104
|
+
readonly statusFacts: ChatStatusFacts;
|
|
105
|
+
readonly capabilities: ChatCapabilities;
|
|
106
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Admission, ChatOperation, ChatPhase, IntentResult, IntentTarget, OperationState } from './contract.js';
|
|
2
|
+
export type OutcomeWitness = 'settled' | 'failed' | 'none';
|
|
3
|
+
export declare function resolveOutcome(admission: Admission, witness: OutcomeWitness): IntentResult['outcome'];
|
|
4
|
+
export declare function resolveIntent(admission: Admission, witness: OutcomeWitness, target: IntentTarget): IntentResult;
|
|
5
|
+
export declare function isTerminalOperation(state: OperationState): boolean;
|
|
6
|
+
export declare function retainOperations(operations: readonly ChatOperation[]): ChatOperation[];
|
|
7
|
+
export declare function acknowledgeOperation(operations: readonly ChatOperation[], operationId: string): ChatOperation[];
|
|
8
|
+
export declare function deriveChatPhase(operations: readonly ChatOperation[], settled: 'idle' | 'failed'): ChatPhase;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { SlashArgumentCompleter } from './slashCompletion';
|
|
2
|
+
import { SEND_COMMAND_OPTIONS } from '../utils/sendCommand';
|
|
3
|
+
type SendOption = (typeof SEND_COMMAND_OPTIONS)[number];
|
|
4
|
+
export interface SendCompletionChoice {
|
|
5
|
+
/** What goes into the command line. */
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
detail?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface SendCompletionSources {
|
|
11
|
+
/** `--workspace` choices; `value` is what the command resolves to `cwd`. */
|
|
12
|
+
workspaces: ReadonlyArray<SendCompletionChoice & {
|
|
13
|
+
cwd: string;
|
|
14
|
+
}>;
|
|
15
|
+
/** The workspace `/send` targets without `--workspace`. */
|
|
16
|
+
currentWorkspaceCwd: string;
|
|
17
|
+
resolveWorkspace(value: string): string;
|
|
18
|
+
/** `--session-id` choices for a workspace, or `undefined` until loaded. */
|
|
19
|
+
sessionsFor(workspaceCwd: string): readonly SendCompletionChoice[] | undefined;
|
|
20
|
+
optionDetail(option: SendOption): string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Completes `/send` options and their values: option names, registered
|
|
24
|
+
* workspaces, and the sessions of the chosen workspace. Once the message
|
|
25
|
+
* starts, it offers nothing. Each item replaces the line up to the cursor.
|
|
26
|
+
*/
|
|
27
|
+
export declare function createSendArgumentCompleter(sources: SendCompletionSources): SlashArgumentCompleter;
|
|
28
|
+
export {};
|
|
@@ -28,9 +28,16 @@ export interface SlashCommandCompletionResult {
|
|
|
28
28
|
items: SlashCommandCompletionItem[];
|
|
29
29
|
}
|
|
30
30
|
type Translate = (key: string) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Completes one command's arguments from data the static trees cannot hold
|
|
33
|
+
* (workspaces, sessions). Gets the line up to the cursor; returns `undefined`
|
|
34
|
+
* when the line is not its command, `null` for no menu. `from`/`to` are
|
|
35
|
+
* offsets within the line.
|
|
36
|
+
*/
|
|
37
|
+
export type SlashArgumentCompleter = (lineTextBeforeCursor: string) => SlashCommandCompletionResult | null | undefined;
|
|
31
38
|
export declare function getMissingSlashPrefixCompletion(text: string, commands: CommandInfo[]): string | null;
|
|
32
39
|
export declare function getImplicitTabCompletion(text: string, commands: CommandInfo[], language: WebShellLanguage): string | null;
|
|
33
40
|
export declare function getSlashCommandArgumentHint(text: string, commands: CommandInfo[], language: WebShellLanguage, skillNames?: ReadonlySet<string>): string | null;
|
|
34
|
-
export declare function getSlashCommandCompletionResult(text: string, cursor: number, commands: CommandInfo[], skills?: SkillInfo[], language?: WebShellLanguage, translate?: Translate, categoryOrder?: CommandDisplayCategoryOrder, includeEmpty?: boolean): SlashCommandCompletionResult | null;
|
|
41
|
+
export declare function getSlashCommandCompletionResult(text: string, cursor: number, commands: CommandInfo[], skills?: SkillInfo[], language?: WebShellLanguage, translate?: Translate, categoryOrder?: CommandDisplayCategoryOrder, includeEmpty?: boolean, argumentCompleter?: SlashArgumentCompleter): SlashCommandCompletionResult | null;
|
|
35
42
|
export declare function slashCompletionSource(getCommands: () => CommandInfo[], getSkills?: () => SkillInfo[], getLanguage?: () => WebShellLanguage, translate?: Translate, getCategoryOrder?: () => CommandDisplayCategoryOrder | undefined): (context: CompletionContext) => CompletionResult | null;
|
|
36
43
|
export {};
|
|
@@ -32,6 +32,16 @@ interface BranchPickerPopoverProps {
|
|
|
32
32
|
onOpenWorktrees?: () => void;
|
|
33
33
|
/** Opens the commit history graph. */
|
|
34
34
|
onOpenLog?: () => void;
|
|
35
|
+
/**
|
|
36
|
+
* "Create branch here": turn the session's detached managed worktree
|
|
37
|
+
* into a named branch. Offered only for detached worktree sessions.
|
|
38
|
+
*/
|
|
39
|
+
onCreateWorktreeBranch?: (name: string) => Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* "Hand off": move the session between its managed worktree and the
|
|
42
|
+
* local checkout. Direction follows gitCwd (worktree path => 'local').
|
|
43
|
+
*/
|
|
44
|
+
onHandoff?: (to: 'local' | 'worktree') => Promise<void>;
|
|
35
45
|
children: React.ReactNode;
|
|
36
46
|
}
|
|
37
47
|
type HintTone = 'muted' | 'info' | 'warning';
|
|
@@ -74,5 +84,5 @@ export declare function deriveActionHints(t: TranslateFn, data: DaemonGitBranche
|
|
|
74
84
|
* re-fetched. Exported for tests.
|
|
75
85
|
*/
|
|
76
86
|
export declare function listingContradictsStatus(data: DaemonGitBranchesResult, status: DaemonWorkspaceGitStatus): boolean;
|
|
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;
|
|
87
|
+
export declare function BranchPickerPopover({ open, onOpenChange, workspaceCwd, gitCwd, gitSessionId, side, onBranchChanged, status, onStatusRefreshed, onOpenDiff, onOpenCommit, onOpenWorktrees, onOpenLog, onCreateWorktreeBranch, onHandoff, children, }: BranchPickerPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
78
88
|
export {};
|
|
@@ -31,8 +31,12 @@ interface ChatContextHeaderProps {
|
|
|
31
31
|
onOpenTokenUsage?: () => void;
|
|
32
32
|
/** Opens the session context panel; hidden when omitted. */
|
|
33
33
|
onOpenContextUsage?: () => void;
|
|
34
|
+
/** Session artifact count; the artifact entry shows when greater than 0. */
|
|
35
|
+
artifactCount?: number;
|
|
36
|
+
/** Opens the environment panel's artifacts section; hidden when omitted. */
|
|
37
|
+
onOpenArtifacts?: () => void;
|
|
34
38
|
/** Shows the Local Control QR entry; hidden when omitted. */
|
|
35
39
|
onOpenLocalControlSettings?: () => void;
|
|
36
40
|
}
|
|
37
|
-
export declare function ChatContextHeader({ content, location, workspaceName, workspacePath, hideWorkspaceIcon, environmentOpen, environmentAvailable, environmentRunning, rightPanelOpen, rightPanelAvailable, onToggleEnvironment, onToggleRightPanel, onOpenFiles, onOpenTokenUsage, onOpenContextUsage, onOpenLocalControlSettings, }: ChatContextHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare function ChatContextHeader({ content, location, workspaceName, workspacePath, hideWorkspaceIcon, environmentOpen, environmentAvailable, environmentRunning, rightPanelOpen, rightPanelAvailable, onToggleEnvironment, onToggleRightPanel, onOpenFiles, onOpenTokenUsage, onOpenContextUsage, artifactCount, onOpenArtifacts, onOpenLocalControlSettings, }: ChatContextHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
38
42
|
export {};
|
|
@@ -6,7 +6,7 @@ import type { AttachmentPreviewRequest } from '../adapters/messageTypes';
|
|
|
6
6
|
import type { UseDaemonFollowupSuggestionReturn } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
7
7
|
import type { DaemonSessionGroupPresetColor, DaemonWorkspaceGitStatus, ReasoningSelection } from '@qwen-code/sdk/daemon';
|
|
8
8
|
import type { CommandDisplayCategoryOrder } from '../utils/commandDisplay';
|
|
9
|
-
import type { SkillInfo } from '../completions/slashCompletion';
|
|
9
|
+
import type { SkillInfo, SlashArgumentCompleter } from '../completions/slashCompletion';
|
|
10
10
|
import type { DaemonReasoningControls, DaemonWorkflowMode, DaemonWorkflowModeStatus } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
11
11
|
import type { WebShellModelPickerContext } from '../model-picker';
|
|
12
12
|
import { type WebShellComposerInput, type WebShellComposerTag, type WebShellComposerTagIconMap, type WebShellAtProvider, type WebShellBuiltinAtProvidersConfig } from '../customization';
|
|
@@ -42,6 +42,8 @@ interface ChatEditorProps {
|
|
|
42
42
|
skillsLoadError?: boolean;
|
|
43
43
|
skillsLoaded?: boolean;
|
|
44
44
|
slashCommandCategoryOrder?: CommandDisplayCategoryOrder;
|
|
45
|
+
/** Completes arguments the static subcommand trees cannot (`/send`). */
|
|
46
|
+
slashArgumentCompleter?: SlashArgumentCompleter;
|
|
45
47
|
autoSubmitSlashCommands?: boolean;
|
|
46
48
|
queuedMessages?: string[];
|
|
47
49
|
onPopQueuedMessages?: () => boolean;
|
|
@@ -76,6 +78,10 @@ interface ChatEditorProps {
|
|
|
76
78
|
onOpenWorktrees?: () => void;
|
|
77
79
|
/** Opens the commit history graph. */
|
|
78
80
|
onOpenLog?: () => void;
|
|
81
|
+
/** "Create branch here" for the session's detached managed worktree. */
|
|
82
|
+
onCreateWorktreeBranch?: (name: string) => Promise<void>;
|
|
83
|
+
/** "Hand off" between the session's worktree and the local checkout. */
|
|
84
|
+
onHandoff?: (to: 'local' | 'worktree') => Promise<void>;
|
|
79
85
|
/** Workspace name shown in the pane composer's `workspace` toolbar chip. */
|
|
80
86
|
workspaceName?: string;
|
|
81
87
|
/** Full workspace cwd, used as the chip's tooltip. */
|
|
@@ -78,6 +78,8 @@ export interface ChatPaneProps {
|
|
|
78
78
|
messageTurnOutputs?: readonly TurnOutputKind[];
|
|
79
79
|
/** Render inside a parent surface that already provides its own frame. */
|
|
80
80
|
embedded?: boolean;
|
|
81
|
+
/** Show the session without a composer; approvals still render. */
|
|
82
|
+
readOnly?: boolean;
|
|
81
83
|
onFirstPromptAdmitted?: (text: string) => void;
|
|
82
84
|
/** Whether this pane owns Session Catalog turn-completion reconciliation. */
|
|
83
85
|
reportCatalogTurnCompletion?: boolean;
|
|
@@ -97,4 +99,4 @@ export interface ChatPaneProps {
|
|
|
97
99
|
* state, approvals, and composer, and the browser scopes keyboard focus to the
|
|
98
100
|
* pane the user clicks into — so there is no cross-pane approval arbitration.
|
|
99
101
|
*/
|
|
100
|
-
export declare function ChatPane({ title, sessionSummary, showSessionDetails, isActive, onApprovalChange, workspaceCwd, renderHeaderActions, onClose, onToggleMaximize, isMaximized, onError, onImageIngestionNotice, onSlashCommand, modelManagement, unavailableModels, mountUnavailableModelTooltip, onOpenGoals, onRightPanelOpen, onOpenMonitor, onPaneArtifactsChange, registerContextUsageControls, onBeforeContextCompress, onOpenContextUsage, messageTurnOutputs, embedded, onFirstPromptAdmitted, reportCatalogTurnCompletion, hidden, voiceUserRevision, voiceWorkspaceRevisions, voiceWorkspaces, sessionWorkflowEnabled, showResponseTokensPerSecond, planControlVisible, }: ChatPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
102
|
+
export declare function ChatPane({ title, sessionSummary, showSessionDetails, isActive, onApprovalChange, workspaceCwd, renderHeaderActions, onClose, onToggleMaximize, isMaximized, onError, onImageIngestionNotice, onSlashCommand, modelManagement, unavailableModels, mountUnavailableModelTooltip, onOpenGoals, onRightPanelOpen, onOpenMonitor, onPaneArtifactsChange, registerContextUsageControls, onBeforeContextCompress, onOpenContextUsage, messageTurnOutputs, embedded, readOnly, onFirstPromptAdmitted, reportCatalogTurnCompletion, hidden, voiceUserRevision, voiceWorkspaceRevisions, voiceWorkspaces, sessionWorkflowEnabled, showResponseTokensPerSecond, planControlVisible, }: ChatPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { type GoalStatusStripProps } from './GoalStatusStrip';
|
|
3
|
+
import { QueuedPromptDisplay } from './QueuedPromptDisplay';
|
|
4
|
+
export interface ComposerStatusStackProps {
|
|
5
|
+
queued: ComponentProps<typeof QueuedPromptDisplay>;
|
|
6
|
+
goal?: GoalStatusStripProps;
|
|
7
|
+
}
|
|
8
|
+
export declare function ComposerStatusStack({ queued, goal, }: ComposerStatusStackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import { type ComposerChipTask } from '../utils/composerTasks';
|
|
2
3
|
export interface ComposerTaskChipsHandle {
|
|
3
4
|
/** Focus the first chip; false when there is none to focus. */
|
|
4
5
|
focus(): boolean;
|
|
5
6
|
}
|
|
6
7
|
export interface ComposerTaskChipsProps {
|
|
7
|
-
tasks: readonly
|
|
8
|
+
tasks: readonly ComposerChipTask[];
|
|
8
9
|
/** Whether background agents get a chip (hosts without agent surfaces opt out). */
|
|
9
10
|
includeAgents: boolean;
|
|
10
11
|
/** Open the task: locate a workflow in the transcript, open a shell's output, … */
|
|
11
|
-
onSelectTask: (task:
|
|
12
|
+
onSelectTask: (task: ComposerChipTask) => void;
|
|
13
|
+
/** Ask the model to explain the task as a side question, without opening it. */
|
|
14
|
+
onExplainTask?: (task: DaemonSessionTaskWithWorkflowStatus) => void;
|
|
12
15
|
/** Hand focus back to the composer, optionally with a typed character. */
|
|
13
16
|
onReturnToInput?: (text?: string) => void;
|
|
14
17
|
}
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
import type { GoalSnapshotV2 } from '@qwen-code/sdk/daemon';
|
|
1
|
+
import type { GoalSnapshotV2, GoalStatus } from '@qwen-code/sdk/daemon';
|
|
2
2
|
import { useI18n } from '../i18n';
|
|
3
|
+
/**
|
|
4
|
+
* Lifecycle tone shared by the strip's status text and the Goals page's
|
|
5
|
+
* status pill / budget fills. Maps onto the shared execution-status palette
|
|
6
|
+
* (App.module.css) the cockpit and workflow inspector already use, so a
|
|
7
|
+
* goal's state reads the same colour everywhere: active = in flight,
|
|
8
|
+
* paused/blocked/usage_limited = needs attention, complete = done. Matches
|
|
9
|
+
* GoalStatusMessage's warning/success language.
|
|
10
|
+
*/
|
|
11
|
+
export declare function goalStatusTone(status: GoalStatus): 'running' | 'attention' | 'done';
|
|
12
|
+
/**
|
|
13
|
+
* Whether a Goal is still a navigation aid: an absent or completed goal is
|
|
14
|
+
* hidden, matching the Goals listings' `complete` filter. The strip, the
|
|
15
|
+
* sidebar's reservation/marker decision and the marker's own guard all read
|
|
16
|
+
* this one predicate so the three surfaces cannot drift apart.
|
|
17
|
+
*/
|
|
18
|
+
export declare function hasVisibleGoal<T extends {
|
|
19
|
+
status: GoalStatus;
|
|
20
|
+
}>(goal: T | null | undefined): goal is T;
|
|
3
21
|
export interface GoalStatusStripProps {
|
|
4
22
|
snapshot: GoalSnapshotV2;
|
|
5
23
|
busy?: boolean;
|
|
@@ -7,6 +25,9 @@ export interface GoalStatusStripProps {
|
|
|
7
25
|
onPause: () => void;
|
|
8
26
|
onResume: () => void;
|
|
9
27
|
onClear: () => void;
|
|
28
|
+
/** Open the Goals page listing every goal. Absent on surfaces where that
|
|
29
|
+
* page is unavailable — the affordance then does not render. */
|
|
30
|
+
onOpenGoals?: () => void;
|
|
10
31
|
}
|
|
11
32
|
export declare function getGoalActiveTimeMs(snapshot: GoalSnapshotV2, now: number): number;
|
|
12
33
|
export declare function getGoalTokenLabel(goal: NonNullable<GoalSnapshotV2['goal']>, t: ReturnType<typeof useI18n>['t']): string | undefined;
|
|
@@ -22,4 +43,4 @@ export declare function getGoalActiveTimeLabel(goal: NonNullable<GoalSnapshotV2[
|
|
|
22
43
|
* as it does for tokens.
|
|
23
44
|
*/
|
|
24
45
|
export declare function getGoalTurnBudgetLabel(goal: NonNullable<GoalSnapshotV2['goal']>, t: ReturnType<typeof useI18n>['t']): string | undefined;
|
|
25
|
-
export declare function GoalStatusStrip({ snapshot, busy, onEdit, onPause, onResume, onClear, }: GoalStatusStripProps): import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
+
export declare function GoalStatusStrip({ snapshot, busy, onEdit, onPause, onResume, onClear, onOpenGoals, }: GoalStatusStripProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -6,17 +6,56 @@
|
|
|
6
6
|
import type { DaemonCapabilities, DaemonClient, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
|
|
7
7
|
import type { AcpWorkspaceSelector } from '../local-files/bridge-client';
|
|
8
8
|
import { type LocalFilesStatus } from '../local-files/useLocalFilesBridge';
|
|
9
|
+
/** Concrete command that enables the reverse channel on the daemon. */
|
|
10
|
+
export declare const LOCAL_FILES_DAEMON_COMMAND = "QWEN_SERVE_CLIENT_MCP_OVER_WS=1 qwen serve";
|
|
11
|
+
/**
|
|
12
|
+
* The startup command in the user's shell syntax: the POSIX env-prefix form
|
|
13
|
+
* is not parseable by PowerShell, so on Windows the affordance must copy the
|
|
14
|
+
* `$env:` form or the one action the blocker offers cannot enable the feature.
|
|
15
|
+
* The variable name is the literal run-qwen-serve.ts reads.
|
|
16
|
+
*/
|
|
17
|
+
export declare function deriveLocalFilesDaemonCommand(platform: string | undefined): string;
|
|
18
|
+
/**
|
|
19
|
+
* Trigger dot color per phase. `null` means no dot. Failed and needs-gesture
|
|
20
|
+
* get distinct colors so a broken or re-authorization-pending bridge is not
|
|
21
|
+
* invisible the way a plain busy dot made it. `held-elsewhere` stays muted
|
|
22
|
+
* (not primary): the bridge is live but owned by another tab, so this tab must
|
|
23
|
+
* not read the dot as "I have a working bridge here". The warning states use
|
|
24
|
+
* the theme-aware `--warning-color` token (App.module.css) rather than a fixed
|
|
25
|
+
* palette color, so the dot keeps contrast in the light theme too.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getLocalFilesDotClass(status: LocalFilesStatus): string | null;
|
|
28
|
+
/** Tooltip naming the state (and directory) instead of the static label. */
|
|
29
|
+
export declare function getLocalFilesTooltip(status: LocalFilesStatus, t: (key: string) => string): string;
|
|
30
|
+
/** Derive the SSH tunnel command for the insecure-context blocker. */
|
|
31
|
+
export declare function deriveLocalFilesTunnelCommand(baseUrl: string): string | undefined;
|
|
32
|
+
/** The local port the copied tunnel binds — the address the user must open. */
|
|
33
|
+
export declare function deriveLocalFilesTunnelLocalPort(baseUrl: string): number | undefined;
|
|
9
34
|
export interface LocalFilesPanelProps {
|
|
10
35
|
status: LocalFilesStatus;
|
|
11
36
|
onConnect: () => void;
|
|
12
37
|
onDisconnect: () => void;
|
|
13
38
|
onOpenInNewTab: () => void;
|
|
39
|
+
/** Offered only while connected; re-opens the picker for a new grant. */
|
|
40
|
+
onChangeDirectory?: () => void;
|
|
41
|
+
/** Bound session title, shown while connected when known. */
|
|
42
|
+
sessionName?: string;
|
|
43
|
+
/** Offered in needs-session when the host can create a session. */
|
|
44
|
+
onNewSession?: () => void;
|
|
45
|
+
/** Copies a concrete fix command; absent hosts render no copy buttons. */
|
|
46
|
+
onCopyCommand?: (command: string) => void;
|
|
47
|
+
/** SSH tunnel command for the insecure-context blocker, when derivable. */
|
|
48
|
+
tunnelCommand?: string;
|
|
49
|
+
/** Local port the tunnel binds; the blocker copy names the address to open. */
|
|
50
|
+
tunnelLocalPort?: number;
|
|
51
|
+
/** Daemon startup command in the user's shell syntax; defaults to POSIX. */
|
|
52
|
+
daemonCommand?: string;
|
|
14
53
|
}
|
|
15
54
|
/**
|
|
16
55
|
* The popover body, kept prop-driven and free of hooks/portals so the phase →
|
|
17
56
|
* affordance mapping is testable without a Radix portal or a daemon provider.
|
|
18
57
|
*/
|
|
19
|
-
export declare function LocalFilesPanel({ status, onConnect, onDisconnect, onOpenInNewTab, }: LocalFilesPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare function LocalFilesPanel({ status, onConnect, onDisconnect, onOpenInNewTab, onChangeDirectory, sessionName, onNewSession, onCopyCommand, tunnelCommand, tunnelLocalPort, daemonCommand, }: LocalFilesPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
20
59
|
interface LocalFilesControlProps {
|
|
21
60
|
/**
|
|
22
61
|
* Class for the trigger button. Required, and supplied by the host surface
|
|
@@ -8,6 +8,8 @@ export interface ManagedLocalFilesControlProps {
|
|
|
8
8
|
provider: ManagedAgentProvider;
|
|
9
9
|
sessionId: string | undefined;
|
|
10
10
|
triggerClassName: string;
|
|
11
|
+
/** Bound session title, shown while connected when known. */
|
|
12
|
+
sessionName?: string;
|
|
11
13
|
}
|
|
12
14
|
/**
|
|
13
15
|
* The Managed-mode local files entry. Unlike the daemon control it has no
|
|
@@ -15,4 +17,4 @@ export interface ManagedLocalFilesControlProps {
|
|
|
15
17
|
* HTTP/SSE transport, and the entry is withheld entirely when the deployment
|
|
16
18
|
* does not expose client files.
|
|
17
19
|
*/
|
|
18
|
-
export declare function ManagedLocalFilesControl({ provider, sessionId, triggerClassName, }: ManagedLocalFilesControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
export declare function ManagedLocalFilesControl({ provider, sessionId, triggerClassName, sessionName, }: ManagedLocalFilesControlProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -4,7 +4,9 @@ import type { WebShellAssistantFeedbackRating, WebShellAssistantTurnFooterRender
|
|
|
4
4
|
import { type SessionContentGenerator } from './messages/AssistantMessage';
|
|
5
5
|
import type { TurnOutputOpenRequest } from './artifacts/TurnOutputs';
|
|
6
6
|
import type { AttachmentPreviewRequest } from '../adapters/messageTypes';
|
|
7
|
+
import type { HookStatisticsTurn } from './messages/hook-statistics-context';
|
|
7
8
|
interface MessageItemProps {
|
|
9
|
+
hookTurn?: HookStatisticsTurn;
|
|
8
10
|
message: Message;
|
|
9
11
|
pendingApproval?: PermissionRequest | null;
|
|
10
12
|
/** Run /context detail, exactly like typing it (context-usage panels). */
|
|
@@ -12,6 +12,7 @@ export interface MessageListProps {
|
|
|
12
12
|
deletion?: MessageDeletionControls;
|
|
13
13
|
messages: Message[];
|
|
14
14
|
frozenViewport?: boolean;
|
|
15
|
+
hookStatisticsSessionId?: string;
|
|
15
16
|
terminalBackgroundShellTaskIds?: ReadonlySet<string>;
|
|
16
17
|
pendingApproval: PermissionRequest | null;
|
|
17
18
|
/** Run /context detail, exactly like typing it (context-usage panels). */
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
7
|
+
import { type RegistrationErrorTranslator } from '../hooks/useReportedArtifactRegistration';
|
|
8
|
+
/**
|
|
9
|
+
* Registers the files slash commands reported writing with the session
|
|
10
|
+
* artifact store. Rendered inside the shell's portal-root provider so the
|
|
11
|
+
* failure toast is scoped to this shell: App calls useSessionArtifacts in
|
|
12
|
+
* its own body, above the provider it returns, so the registration cannot
|
|
13
|
+
* ride along inside that hook without reading an unpopulated context.
|
|
14
|
+
*
|
|
15
|
+
* Mounted once per session consumer: App for the main session, ChatPane for
|
|
16
|
+
* split panes and side tasks, SubagentDetailContent for subagent sessions —
|
|
17
|
+
* each of those runs under its own DaemonSessionProvider, so a single mount
|
|
18
|
+
* in App would leave their reported artifacts unregistered.
|
|
19
|
+
*/
|
|
20
|
+
export declare function ReportedArtifactRegistration({ registered, hydrated, refresh, translateError, }: {
|
|
21
|
+
registered: readonly DaemonSessionArtifact[];
|
|
22
|
+
hydrated: boolean;
|
|
23
|
+
refresh: () => Promise<void>;
|
|
24
|
+
translateError?: RegistrationErrorTranslator;
|
|
25
|
+
}): null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonSessionGoalInfo } from '@qwen-code/sdk/daemon';
|
|
7
|
+
interface SessionGoalMarkerProps {
|
|
8
|
+
/** The session's goal projection from the catalog (disk sidecar). */
|
|
9
|
+
goal: DaemonSessionGoalInfo;
|
|
10
|
+
/**
|
|
11
|
+
* Opens the session — the same action as the row. Absent on surfaces
|
|
12
|
+
* whose rows do not open (archived list), where the marker is a pure
|
|
13
|
+
* indicator.
|
|
14
|
+
*/
|
|
15
|
+
onOpen?: () => void;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The sidebar's goal marker: the app-wide Goals glyph tinted with the same
|
|
19
|
+
* lifecycle tone as the Goals page, so a session carrying a Goal reads at a
|
|
20
|
+
* glance. Completed goals render nothing — both Goals listings filter
|
|
21
|
+
* `complete`, and the sidebar follows the same policy.
|
|
22
|
+
*/
|
|
23
|
+
export declare function SessionGoalMarker({ goal, onOpen }: SessionGoalMarkerProps): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type ToastTone = 'info' | 'warning' | 'error' | 'success';
|
|
2
|
+
export declare const MAX_TOASTS = 4;
|
|
3
|
+
export declare const TOAST_AUTO_DISMISS_MS = 5000;
|
|
2
4
|
/** Window event that asks the app-level toast host to show a toast. Lets
|
|
3
5
|
* deeply nested components (markdown links, artifact actions) report failures
|
|
4
6
|
* without prop-drilling the toast callback. */
|
|
@@ -7,7 +9,7 @@ export interface ToastRequestDetail {
|
|
|
7
9
|
tone: ToastTone;
|
|
8
10
|
message: string;
|
|
9
11
|
}
|
|
10
|
-
export declare function requestToast(tone: ToastTone, message: string): void;
|
|
12
|
+
export declare function requestToast(tone: ToastTone, message: string, scope?: Element | null): void;
|
|
11
13
|
export interface WebShellToast {
|
|
12
14
|
id: string;
|
|
13
15
|
tone: ToastTone;
|
|
@@ -15,6 +17,14 @@ export interface WebShellToast {
|
|
|
15
17
|
/** Epoch ms when the toast auto-dismisses; survives host remounts. */
|
|
16
18
|
dismissAt: number;
|
|
17
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* The toast queue contract shared by App's listener and WindowToastHost, in
|
|
22
|
+
* one place so the two hosts cannot drift: deadline-based auto-dismiss and
|
|
23
|
+
* tone+message de-duplication with a capped stack (a repeat moves to the top
|
|
24
|
+
* instead of stacking twice; the oldest overflow drops).
|
|
25
|
+
*/
|
|
26
|
+
export declare function createWebShellToast(tone: ToastTone, message: string, sequence: number): WebShellToast;
|
|
27
|
+
export declare function appendToastDeduped(current: readonly WebShellToast[], toast: WebShellToast): WebShellToast[];
|
|
18
28
|
interface ToastHostProps {
|
|
19
29
|
toasts: readonly WebShellToast[];
|
|
20
30
|
onDismiss: (id: string) => void;
|
|
@@ -22,4 +32,20 @@ interface ToastHostProps {
|
|
|
22
32
|
elevated?: boolean;
|
|
23
33
|
}
|
|
24
34
|
export declare function ToastHost({ toasts, onDismiss, elevated, }: ToastHostProps): import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
+
/**
|
|
36
|
+
* Self-contained host for the window toast channel, for shells that do not
|
|
37
|
+
* carry App's toast state (the managed-only boot path). Same contract as
|
|
38
|
+
* App's listener: non-empty message guard, tone+message de-duplication, a
|
|
39
|
+
* capped stack, and deadline-based auto-dismiss. Without it, requestToast
|
|
40
|
+
* from a nested control dispatches into a document with no listener and the
|
|
41
|
+
* notice is silently dropped.
|
|
42
|
+
*
|
|
43
|
+
* `scope` narrows the listener to one shell's root element: requestToast
|
|
44
|
+
* dispatches on the acting shell's root (bubbling to window), so co-mounted
|
|
45
|
+
* shells do not show each other's notices. Omit it only for a single-shell
|
|
46
|
+
* document.
|
|
47
|
+
*/
|
|
48
|
+
export declare function WindowToastHost({ scope }: {
|
|
49
|
+
scope?: HTMLElement | null;
|
|
50
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
51
|
export {};
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
* Copyright 2026 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { type ReactElement } from 'react';
|
|
6
|
+
import { type ComponentProps, type ReactElement } from 'react';
|
|
7
7
|
import type { WebShellUnavailableModel, WebShellUnavailableModelTooltipMount } from '../unavailableModels';
|
|
8
|
-
|
|
8
|
+
import { PopoverContent } from './ui/popover';
|
|
9
|
+
export declare function UnavailableModelTooltip({ model, mount, enabled, side, children, }: {
|
|
9
10
|
model: WebShellUnavailableModel;
|
|
10
11
|
mount?: WebShellUnavailableModelTooltipMount;
|
|
11
12
|
enabled?: boolean;
|
|
13
|
+
side?: ComponentProps<typeof PopoverContent>['side'];
|
|
12
14
|
children: ReactElement;
|
|
13
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,7 +8,7 @@ export interface WebShellTranscriptProps {
|
|
|
8
8
|
blocks: readonly DaemonTranscriptBlock[];
|
|
9
9
|
renderMode?: 'readonly' | 'document';
|
|
10
10
|
theme?: WebShellTheme;
|
|
11
|
-
language?: 'en' | 'zh-CN' | 'zh' | 'zh-cn' | 'ru' | 'ru-ru';
|
|
11
|
+
language?: 'en' | 'zh-CN' | 'zh' | 'zh-cn' | 'zh-TW' | 'zh-tw' | 'zh-HK' | 'zh-hk' | 'zh-Hant' | 'zh-hant' | 'zh-MO' | 'zh-mo' | 'ru' | 'ru-ru';
|
|
12
12
|
className?: string;
|
|
13
13
|
style?: CSSProperties;
|
|
14
14
|
chatMaxWidth?: number;
|