@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
|
@@ -24,4 +24,9 @@ export declare function useDaemonUsageDashboard(options?: DaemonUsageDashboardOp
|
|
|
24
24
|
data: import("@qwen-code/sdk/daemon").DaemonUsageDashboard | undefined;
|
|
25
25
|
loading: boolean;
|
|
26
26
|
error: Error | undefined;
|
|
27
|
+
reloadWithOutcome: () => Promise<{
|
|
28
|
+
data: import("@qwen-code/sdk/daemon").DaemonUsageDashboard | undefined;
|
|
29
|
+
superseded: boolean;
|
|
30
|
+
error?: Error;
|
|
31
|
+
}>;
|
|
27
32
|
};
|
|
@@ -41,6 +41,7 @@ export interface GeneratedUiInstance {
|
|
|
41
41
|
canMessage: boolean;
|
|
42
42
|
token?: object;
|
|
43
43
|
lease?: Lease;
|
|
44
|
+
reloadOnGrant?: boolean;
|
|
44
45
|
leaseGeneration?: number;
|
|
45
46
|
parkedAt?: number;
|
|
46
47
|
timer?: ReturnType<typeof setTimeout>;
|
|
@@ -50,7 +51,7 @@ export interface GeneratedUiInstance {
|
|
|
50
51
|
reopened: boolean;
|
|
51
52
|
getSignal(): AbortSignal;
|
|
52
53
|
isVisible(): boolean;
|
|
53
|
-
reset(): void;
|
|
54
|
+
reset(clear?: () => Promise<boolean>): void;
|
|
54
55
|
};
|
|
55
56
|
}
|
|
56
57
|
interface InstanceRecord {
|
|
@@ -63,6 +64,7 @@ export declare function instanceKey(source: McpAppGeneratedUiOwnerSource, toolId
|
|
|
63
64
|
export declare function resourceKey(display: McpAppDisplay, eventEpoch?: string, capabilities?: {
|
|
64
65
|
tools: boolean;
|
|
65
66
|
messages: boolean;
|
|
67
|
+
viewState?: boolean;
|
|
66
68
|
}): string;
|
|
67
69
|
export declare class GeneratedUiInstanceStore {
|
|
68
70
|
private records;
|
|
@@ -83,6 +85,7 @@ export declare class GeneratedUiInstanceStore {
|
|
|
83
85
|
private revoke;
|
|
84
86
|
private grant;
|
|
85
87
|
attach(slot: InstanceSlot, explicit?: boolean): GeneratedUiInstance | undefined;
|
|
88
|
+
private viewState;
|
|
86
89
|
update(slot: InstanceSlot): void;
|
|
87
90
|
release(key: string, token: object): void;
|
|
88
91
|
dispose(key: string, reason: string): void;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonGeneratedUiState, DaemonGeneratedUiStateWriteResult } from '@qwen-code/sdk/daemon';
|
|
7
|
+
/** The App frame asks for these; the host answers for the card it mounted. */
|
|
8
|
+
export declare const VIEW_STATE_CAPABILITY = "qwen-code/generated-ui-state";
|
|
9
|
+
export declare const VIEW_STATE_LOAD = "qwen-code/generated-ui-state/load";
|
|
10
|
+
export declare const VIEW_STATE_SAVE = "qwen-code/generated-ui-state/save";
|
|
11
|
+
export interface ViewStateStore {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
get(cardId: string): Promise<DaemonGeneratedUiState>;
|
|
14
|
+
set(cardId: string, write: {
|
|
15
|
+
baseRevision: number;
|
|
16
|
+
value: unknown;
|
|
17
|
+
}): Promise<DaemonGeneratedUiStateWriteResult>;
|
|
18
|
+
/** Admits a save now and binds its eventual write to the current owner. */
|
|
19
|
+
captureWrite?(): ViewStateStore['set'];
|
|
20
|
+
}
|
|
21
|
+
export type ViewStateStatus = 'saving' | 'saved' | 'stale' | 'too_large' | 'failed' | 'unavailable';
|
|
22
|
+
/** The card id the bundled Generated UI server minted into its result. */
|
|
23
|
+
export declare function generatedUiCardId(toolResult: unknown): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* One mounted card's saved state. Saves are sent as soon as the previous one
|
|
26
|
+
* settles, so only changes made while a write is in flight are coalesced.
|
|
27
|
+
*/
|
|
28
|
+
export declare class ViewStateCoordinator {
|
|
29
|
+
private readonly store;
|
|
30
|
+
private readonly cardId;
|
|
31
|
+
private readonly onStatus;
|
|
32
|
+
private revision?;
|
|
33
|
+
private saved?;
|
|
34
|
+
private pending?;
|
|
35
|
+
private inFlight?;
|
|
36
|
+
private stale;
|
|
37
|
+
private latestSaveFailure?;
|
|
38
|
+
private last?;
|
|
39
|
+
private readonly key;
|
|
40
|
+
constructor(store: ViewStateStore, cardId: string, onStatus: (status: ViewStateStatus) => void);
|
|
41
|
+
load(signal?: AbortSignal): Promise<unknown>;
|
|
42
|
+
save(value: unknown): void;
|
|
43
|
+
/**
|
|
44
|
+
* Clears the saved state for the host's reset. This mount saves nothing
|
|
45
|
+
* afterwards; the reset mounts the card again. It reads the current
|
|
46
|
+
* revision first, so it also works after a stale write or a failed load.
|
|
47
|
+
*/
|
|
48
|
+
clear(): Promise<boolean>;
|
|
49
|
+
private pump;
|
|
50
|
+
private report;
|
|
51
|
+
}
|
|
@@ -3,8 +3,8 @@ import { EditorView } from '@codemirror/view';
|
|
|
3
3
|
import { Compartment } from '@codemirror/state';
|
|
4
4
|
import type { CommandInfo } from '../adapters/types';
|
|
5
5
|
import type { PromptFile, PromptImage } from '../adapters/promptTypes';
|
|
6
|
-
import {
|
|
7
|
-
import { type SkillInfo, type SlashCommandCompletionResult } from '../completions/slashCompletion';
|
|
6
|
+
import type { UseDaemonFollowupSuggestionReturn } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
7
|
+
import { type SkillInfo, type SlashArgumentCompleter, type SlashCommandCompletionResult } from '../completions/slashCompletion';
|
|
8
8
|
import { type CommandDisplayCategoryOrder } from '../utils/commandDisplay';
|
|
9
9
|
import { type AtMentionMenuState, type AtMentionWorkspaceActions } from './useAtMentionMenu';
|
|
10
10
|
export { getComposerTagDisplay, getComposerTagLabel, getComposerTagValue, } from '../utils/composerTag';
|
|
@@ -63,6 +63,15 @@ export interface ComposerSubmitMetadata {
|
|
|
63
63
|
}
|
|
64
64
|
export interface UseComposerCoreOptions {
|
|
65
65
|
onSubmit: (text: string, images?: PromptImage[], files?: PromptFile[], commitAccepted?: ComposerSubmitCommit, metadata?: ComposerSubmitMetadata) => boolean | void;
|
|
66
|
+
/**
|
|
67
|
+
* Awaited before a user-initiated submit (Send button or Enter) reads the
|
|
68
|
+
* draft, so the host can finalize pending input first — e.g. stop voice
|
|
69
|
+
* dictation and insert its final transcript. Submits stay synchronous when
|
|
70
|
+
* it is absent. While it runs, further user submits are ignored and
|
|
71
|
+
* `submitPreparing` is true; a session switch, unmount, or a rejecting
|
|
72
|
+
* finalizer cancels the submit.
|
|
73
|
+
*/
|
|
74
|
+
prepareSubmit?: () => Promise<void>;
|
|
66
75
|
onInputTextChange?: (text: string) => void;
|
|
67
76
|
onCycleMode?: () => void;
|
|
68
77
|
cycleModeOnTab?: boolean;
|
|
@@ -80,6 +89,8 @@ export interface UseComposerCoreOptions {
|
|
|
80
89
|
commands: CommandInfo[];
|
|
81
90
|
skills?: SkillInfo[];
|
|
82
91
|
allowEmptySlashMenu?: boolean;
|
|
92
|
+
/** Completes arguments the static subcommand trees cannot (`/send`). */
|
|
93
|
+
slashArgumentCompleter?: SlashArgumentCompleter;
|
|
83
94
|
slashCommandCategoryOrder?: CommandDisplayCategoryOrder;
|
|
84
95
|
autoSubmitSlashCommands?: boolean;
|
|
85
96
|
queuedMessages?: string[];
|
|
@@ -185,6 +196,15 @@ export interface UseComposerCoreReturn {
|
|
|
185
196
|
hasAttachments: boolean;
|
|
186
197
|
hasContent: boolean;
|
|
187
198
|
canSubmit: boolean;
|
|
199
|
+
/**
|
|
200
|
+
* The content-independent submit guards (disabled, submitDisabled, draft
|
|
201
|
+
* restore, pending attachment batches, workspace upload). `canSubmit` is
|
|
202
|
+
* `!submitBlocked && hasContent`; render sites that relax the content term
|
|
203
|
+
* must keep these guards.
|
|
204
|
+
*/
|
|
205
|
+
submitBlocked: boolean;
|
|
206
|
+
/** True while `prepareSubmit` is running ahead of a user-initiated submit. */
|
|
207
|
+
submitPreparing: boolean;
|
|
188
208
|
pendingImageBatchCount: number;
|
|
189
209
|
imageDragActive: boolean;
|
|
190
210
|
clearImageDragState: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { DaemonWorkspaceContextValue } from '../daemon/workspace/types.js';
|
|
3
|
+
export declare function ComposerWorkspaceProvider({ value, children, }: {
|
|
4
|
+
value: DaemonWorkspaceContextValue | undefined;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function useOptionalComposerWorkspace(): DaemonWorkspaceContextValue | undefined;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* CodeMirror editor.
|
|
11
11
|
*/
|
|
12
12
|
export declare const TOUCH_COMPOSER_QUERY = "(hover: none) and (pointer: coarse)";
|
|
13
|
+
export declare const MODEL_SHEET_QUERY = "(hover: none) and (pointer: coarse), (max-width: 639px)";
|
|
13
14
|
/**
|
|
14
15
|
* Raw device detection, ignoring the URL override. Used to gate programmatic
|
|
15
16
|
* (non-gesture) `view.focus()` calls: on iOS, focusing an editable element
|
|
@@ -8,4 +8,11 @@ export declare function useModelConfigurations(enabled: boolean): {
|
|
|
8
8
|
} | undefined;
|
|
9
9
|
loading: boolean;
|
|
10
10
|
error: Error | undefined;
|
|
11
|
+
reloadWithOutcome: () => Promise<{
|
|
12
|
+
data: {
|
|
13
|
+
models: import("@qwen-code/sdk/daemon").DaemonModelConfiguration[];
|
|
14
|
+
} | undefined;
|
|
15
|
+
superseded: boolean;
|
|
16
|
+
error?: Error;
|
|
17
|
+
}>;
|
|
11
18
|
};
|
|
@@ -29,6 +29,7 @@ export declare function useScopedSessions(workspaceCwd: string | undefined, opti
|
|
|
29
29
|
loadSession: ((sessionId: string, options?: {
|
|
30
30
|
workspaceCwd?: string;
|
|
31
31
|
sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
|
|
32
|
+
artifactCountHint?: number;
|
|
32
33
|
}) => Promise<void>) | undefined;
|
|
33
34
|
resumeSession: ((sessionId: string, options?: {
|
|
34
35
|
workspaceCwd?: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
2
|
-
import { type RegistrationErrorTranslator } from './useReportedArtifactRegistration';
|
|
3
2
|
export interface SessionArtifactsState {
|
|
4
3
|
artifacts: DaemonSessionArtifact[];
|
|
5
4
|
artifactById: ReadonlyMap<string, DaemonSessionArtifact>;
|
|
@@ -7,5 +6,12 @@ export interface SessionArtifactsState {
|
|
|
7
6
|
error: string | null;
|
|
8
7
|
hydrated: boolean;
|
|
9
8
|
refresh: () => Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Click-time artifact count from the session-list summary, valid only
|
|
11
|
+
* while no authoritative data exists for the current session (no cache
|
|
12
|
+
* entry, no keyed restored snapshot). Undefined once the load-embedded
|
|
13
|
+
* snapshot or a gated fetch lands, so a stale hint cannot outlive the load.
|
|
14
|
+
*/
|
|
15
|
+
artifactCountHint?: number;
|
|
10
16
|
}
|
|
11
|
-
export declare function useSessionArtifacts(
|
|
17
|
+
export declare function useSessionArtifacts(): SessionArtifactsState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DaemonSessionSubSessionTaskStatus } from '@qwen-code/sdk/daemon';
|
|
2
|
+
/**
|
|
3
|
+
* The sends this session made that the daemon reports back to it (a
|
|
4
|
+
* person's `/send`, or the model's `create_sub_session` in `sent` mode).
|
|
5
|
+
* Re-read when the daemon says one started or settled, when `refreshKey`
|
|
6
|
+
* changes, and slowly while one is still running.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useSubSessionTasks(sessionId: string | undefined, enabled: boolean, refreshKey?: number): DaemonSessionSubSessionTaskStatus[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART1: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part1` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART1: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART2: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part2` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART2: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART3: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part3` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART3: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART4: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part4` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART4: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART5: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part5` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART5: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART6: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part6` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART6: {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-remainder` in the transcript build
|
|
8
|
+
* (`--mode transcript`). Activity, channel-events, managed-extension, and
|
|
9
|
+
* GitHub bound-action Russian copy stay in the interactive shell only.
|
|
10
|
+
*/
|
|
11
|
+
export declare const RU_REMAINDER: {};
|
package/dist/types/i18n.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
|
-
export declare const WEB_SHELL_LANGUAGES: readonly ["en", "zh-CN", "ru"];
|
|
2
|
+
export declare const WEB_SHELL_LANGUAGES: readonly ["en", "zh-CN", "zh-TW", "ru"];
|
|
3
3
|
export type WebShellLanguage = (typeof WEB_SHELL_LANGUAGES)[number];
|
|
4
|
+
/**
|
|
5
|
+
* Every local-files message key, derived from the EN catalog so the
|
|
6
|
+
* locale-parity test covers new keys automatically instead of drifting
|
|
7
|
+
* behind a hardcoded subset.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LOCAL_FILES_MESSAGE_KEYS: string[];
|
|
4
10
|
export declare function normalizeLanguage(value: string | undefined | null): WebShellLanguage;
|
|
5
11
|
export declare function languageSettingToWebShellLanguage(value: unknown): WebShellLanguage | undefined;
|
|
6
12
|
export declare function languageLabel(language: WebShellLanguage): string;
|
|
@@ -13,4 +13,5 @@
|
|
|
13
13
|
type LiveMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
14
14
|
export declare const LIVE_MESSAGES_EN: Record<string, LiveMessage>;
|
|
15
15
|
export declare const LIVE_MESSAGES_ZH: Record<string, LiveMessage>;
|
|
16
|
+
export declare const LIVE_MESSAGES_RU: Record<string, LiveMessage>;
|
|
16
17
|
export {};
|
|
@@ -58,7 +58,13 @@ export declare function useLocalFilesBridge(options: UseLocalFilesBridgeOptions)
|
|
|
58
58
|
secureContext: boolean;
|
|
59
59
|
frame: import("./capabilities.js").LocalFilesFrame;
|
|
60
60
|
};
|
|
61
|
-
connect: (
|
|
61
|
+
connect: (options?: {
|
|
62
|
+
forcePicker?: boolean;
|
|
63
|
+
}) => Promise<{
|
|
64
|
+
readonly kind: "repick-failed";
|
|
65
|
+
} | {
|
|
66
|
+
readonly kind: "change-deferred";
|
|
67
|
+
} | undefined>;
|
|
62
68
|
disconnect: () => Promise<void>;
|
|
63
69
|
restore: () => Promise<void>;
|
|
64
70
|
};
|
|
@@ -24,6 +24,10 @@ export interface UseManagedLocalFilesBridgeOptions {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function useManagedLocalFilesBridge(options: UseManagedLocalFilesBridgeOptions): {
|
|
26
26
|
status: LocalFilesStatus;
|
|
27
|
-
connect: (
|
|
27
|
+
connect: (options?: {
|
|
28
|
+
forcePicker?: boolean;
|
|
29
|
+
}) => Promise<{
|
|
30
|
+
kind: 'repick-failed';
|
|
31
|
+
} | undefined>;
|
|
28
32
|
disconnect: () => Promise<void>;
|
|
29
33
|
};
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type Message = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const MCP_APP_MESSAGES_EN: Record<string, Message>;
|
|
8
8
|
export declare const MCP_APP_MESSAGES_ZH: Record<string, Message>;
|
|
9
|
+
export declare const MCP_APP_MESSAGES_RU: Record<string, Message>;
|
|
9
10
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DaemonSession, DaemonMcpAppToolCall, DaemonMcpAppToolResult } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { ViewStateStore } from './generated-ui/view-state.js';
|
|
2
3
|
export declare const McpAppHostContext: import("react").Context<string | undefined>;
|
|
3
4
|
export type McpAppToolCallRequest = DaemonMcpAppToolCall;
|
|
4
5
|
export declare const McpAppSessionContext: import("react").Context<string | undefined>;
|
|
@@ -50,6 +51,8 @@ export declare const McpAppMessagesContext: import("react").Context<McpAppMessag
|
|
|
50
51
|
export declare const McpAppToolsContext: import("react").Context<{
|
|
51
52
|
sessionId: string;
|
|
52
53
|
callTool: (request: McpAppToolCallRequest, signal: AbortSignal) => Promise<DaemonMcpAppToolResult>;
|
|
54
|
+
/** The session's saved Generated UI card state, when the daemon keeps it. */
|
|
55
|
+
viewState?: Omit<ViewStateStore, "sessionId">;
|
|
53
56
|
} | undefined>;
|
|
54
57
|
export interface McpAppGeneratedUi {
|
|
55
58
|
sessionId: string;
|
|
@@ -81,6 +84,7 @@ export interface McpAppGeneratedUiOwner {
|
|
|
81
84
|
}
|
|
82
85
|
export declare const McpAppGeneratedUiOwnerContext: import("react").Context<McpAppGeneratedUiOwner | undefined>;
|
|
83
86
|
export declare const McpAppVisibilityContext: import("react").Context<boolean>;
|
|
87
|
+
export declare const McpAppReadOnlyContext: import("react").Context<boolean>;
|
|
84
88
|
/**
|
|
85
89
|
* Whether core marked this App as the bundled Generated UI server's. Unlike
|
|
86
90
|
* {@link isBuiltInGeneratedUi}, the resource URI alone does not count: any
|
|
@@ -6,6 +6,9 @@ interface SessionCatalogHookOptions {
|
|
|
6
6
|
maxAgeMs?: number;
|
|
7
7
|
pollIntervalMs?: number;
|
|
8
8
|
}
|
|
9
|
+
interface SessionCatalogQueriesOptions extends SessionCatalogHookOptions {
|
|
10
|
+
pollQueries?: (query: SessionCatalogQuery, index: number) => boolean;
|
|
11
|
+
}
|
|
9
12
|
export interface WebShellSessionsOptions extends SessionCatalogHookOptions {
|
|
10
13
|
sortBy?: 'updatedAt' | 'lastUserPromptAt';
|
|
11
14
|
pageSize?: number;
|
|
@@ -32,7 +35,7 @@ export declare function useSessionCatalogQuery(client: DaemonClient, query: Sess
|
|
|
32
35
|
error?: Error;
|
|
33
36
|
updatedAt?: number;
|
|
34
37
|
};
|
|
35
|
-
export declare function useSessionCatalogQueries(client: DaemonClient, queries: readonly SessionCatalogQuery[], options?:
|
|
38
|
+
export declare function useSessionCatalogQueries(client: DaemonClient, queries: readonly SessionCatalogQuery[], options?: SessionCatalogQueriesOptions): readonly SessionCatalogSnapshot[];
|
|
36
39
|
/**
|
|
37
40
|
* Whether the daemon reports a prompt in flight for `sessionId`, together with
|
|
38
41
|
* whether that answer is allowed to *settle* a running turn.
|
|
@@ -101,6 +104,7 @@ export declare function useWebShellSessions(options?: WebShellSessionsOptions):
|
|
|
101
104
|
loadSession: ((sessionId: string, options?: {
|
|
102
105
|
workspaceCwd?: string;
|
|
103
106
|
sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
|
|
107
|
+
artifactCountHint?: number;
|
|
104
108
|
}) => Promise<void>) | undefined;
|
|
105
109
|
resumeSession: ((sessionId: string, options?: {
|
|
106
110
|
workspaceCwd?: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this session is known to be doing work that closing it would end.
|
|
4
|
+
*
|
|
5
|
+
* Archive and delete both tear the live session down, so background tasks
|
|
6
|
+
* count alongside a turn: a row that advertises background work must not also
|
|
7
|
+
* offer the action that kills it. The sidebar row and its menus, both sidebar
|
|
8
|
+
* eligibility checks, the standalone archive handler, the recent rows, the
|
|
9
|
+
* delete dialog, the Session Overview card actions and the Activity archive
|
|
10
|
+
* confirmation all read this predicate, so they cannot disagree about what
|
|
11
|
+
* "still working" means.
|
|
12
|
+
*
|
|
13
|
+
* Deliberately narrower than the side-task archive gate, which also fails
|
|
14
|
+
* closed on the `unknown` and `unsupported` grades: this predicate answers
|
|
15
|
+
* "is work known to be running", and an unreported grade is not knowledge of
|
|
16
|
+
* work. Folding that rule in here would block archive and delete on every
|
|
17
|
+
* session whose child has gone quiet — a different policy decision.
|
|
18
|
+
*
|
|
19
|
+
* `hasRunningBackgroundTasks` is cleared to undefined for any row missing from
|
|
20
|
+
* live-state, so it is read as `=== true`. A `!== false` test would block the
|
|
21
|
+
* action on every not-live row.
|
|
22
|
+
*/
|
|
23
|
+
export declare function hasLiveWork(session: DaemonSessionSummary): boolean;
|
|
@@ -13,4 +13,5 @@
|
|
|
13
13
|
type SettingsMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
14
14
|
export declare const SETTINGS_MESSAGES_EN: Record<string, SettingsMessage>;
|
|
15
15
|
export declare const SETTINGS_MESSAGES_ZH: Record<string, SettingsMessage>;
|
|
16
|
+
export declare const SETTINGS_MESSAGES_RU: Record<string, SettingsMessage>;
|
|
16
17
|
export {};
|
|
@@ -2,13 +2,21 @@ import type { DaemonBackgroundTurn } from '@qwen-code/sdk/daemon';
|
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import type { ACPToolCall } from './adapters/types';
|
|
4
4
|
export type OpenSubagentDetails = (tool: ACPToolCall, parentSessionId?: string) => void;
|
|
5
|
+
/** Another session to open, from a turn its reply started. */
|
|
6
|
+
export interface OpenSessionRequest {
|
|
7
|
+
sessionId: string;
|
|
8
|
+
workspaceCwd?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
5
11
|
interface SubagentDetailsContextValue {
|
|
6
12
|
onOpen: OpenSubagentDetails;
|
|
7
13
|
onOpenBackground?: (turn: DaemonBackgroundTurn) => void;
|
|
14
|
+
onOpenSession?: (request: OpenSessionRequest) => void;
|
|
8
15
|
}
|
|
9
|
-
export declare function SubagentDetailsProvider({ onOpen, onOpenBackground, children, }: {
|
|
16
|
+
export declare function SubagentDetailsProvider({ onOpen, onOpenBackground, onOpenSession, children, }: {
|
|
10
17
|
onOpen: OpenSubagentDetails;
|
|
11
18
|
onOpenBackground?: (turn: DaemonBackgroundTurn) => void;
|
|
19
|
+
onOpenSession?: (request: OpenSessionRequest) => void;
|
|
12
20
|
children: ReactNode;
|
|
13
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
22
|
export declare function useSubagentDetails(): SubagentDetailsContextValue | undefined;
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type ExecutionMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const TRAJECTORY_EXECUTION_MESSAGES_EN: Record<string, ExecutionMessage>;
|
|
8
8
|
export declare const TRAJECTORY_EXECUTION_MESSAGES_ZH: Record<string, ExecutionMessage>;
|
|
9
|
+
export declare const TRAJECTORY_EXECUTION_MESSAGES_RU: Record<string, ExecutionMessage>;
|
|
9
10
|
export {};
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type FilterMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const TRAJECTORY_FILTER_MESSAGES_EN: Record<string, FilterMessage>;
|
|
8
8
|
export declare const TRAJECTORY_FILTER_MESSAGES_ZH: Record<string, FilterMessage>;
|
|
9
|
+
export declare const TRAJECTORY_FILTER_MESSAGES_RU: Record<string, FilterMessage>;
|
|
9
10
|
export {};
|
|
@@ -24,4 +24,4 @@ export declare function projectHistoricalLifecycle(events: readonly DaemonEvent[
|
|
|
24
24
|
export declare function projectTrajectoryLifecycle(history: ReturnType<typeof projectHistoricalLifecycle>, trajectory: Trajectory | undefined, identity: {
|
|
25
25
|
sessionId: string;
|
|
26
26
|
scope?: string;
|
|
27
|
-
} | undefined, live: TrajectoryLiveSnapshot): TrajectoryLifecycleProjection;
|
|
27
|
+
} | undefined, live: Omit<TrajectoryLiveSnapshot, 'hooks' | 'hookPromptIds'>): TrajectoryLifecycleProjection;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { type DaemonEvent, type ExecutionLifecycleState, type ToolLifecycleState } from '@qwen-code/sdk/daemon';
|
|
6
|
+
import { type HookLifecycleState, type DaemonEvent, type ExecutionLifecycleState, type ToolLifecycleState } from '@qwen-code/sdk/daemon';
|
|
7
7
|
export interface TrajectoryLiveSnapshot {
|
|
8
8
|
readonly sessionId?: string;
|
|
9
9
|
readonly scope?: string;
|
|
@@ -13,6 +13,8 @@ export interface TrajectoryLiveSnapshot {
|
|
|
13
13
|
readonly reason?: string;
|
|
14
14
|
readonly requests: ExecutionLifecycleState;
|
|
15
15
|
readonly tools: ToolLifecycleState;
|
|
16
|
+
readonly hooks: HookLifecycleState;
|
|
17
|
+
readonly hookPromptIds: ReadonlyMap<string, string>;
|
|
16
18
|
readonly incomplete: boolean;
|
|
17
19
|
readonly truncated: boolean;
|
|
18
20
|
}
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type WindowMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const TRAJECTORY_WINDOW_MESSAGES_EN: Record<string, WindowMessage>;
|
|
8
8
|
export declare const TRAJECTORY_WINDOW_MESSAGES_ZH: Record<string, WindowMessage>;
|
|
9
|
+
export declare const TRAJECTORY_WINDOW_MESSAGES_RU: Record<string, WindowMessage>;
|
|
9
10
|
export {};
|