@qwen-code/web-shell 0.27.4 → 0.28.1-preview.0
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/dist/{PierreFilePreview-BMd8Nqyr.js → PierreFilePreview-Dotc6rOk.js} +1 -1
- package/dist/{SpreadsheetPreview-MnZX4z-A.js → SpreadsheetPreview-B9SWjSd8.js} +11 -11
- package/dist/{WorkspaceFileBrowser-CvJS8MdL.js → WorkspaceFileBrowser-Ckvcjlmo.js} +2 -2
- package/dist/agents-route-B5k1PKCM.js +1746 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-ENe4NzKy.js → index-Plc_8yWQ.js} +69233 -66803
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +10422 -10169
- package/dist/types/adapters/messageTypes.d.ts +3 -0
- 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/components/BranchPickerPopover.d.ts +11 -1
- package/dist/types/components/ChatContextHeader.d.ts +5 -1
- package/dist/types/components/ChatEditor.d.ts +4 -0
- package/dist/types/components/ComposerTaskChips.d.ts +2 -0
- package/dist/types/components/GoalStatusStrip.d.ts +14 -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/ToastHost.d.ts +27 -1
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +23 -2
- package/dist/types/components/artifacts/ChangeOverviewPanel.d.ts +4 -0
- package/dist/types/components/artifacts/change-overview.d.ts +95 -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/dialogs/GoalsDialog.d.ts +2 -1
- package/dist/types/components/managed/chat-capabilities.d.ts +5 -0
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +1 -1
- 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 +1 -0
- 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/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/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/activity-messages.d.ts +1 -0
- package/dist/types/components/sidebar/activity-model.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/customization.d.ts +10 -2
- package/dist/types/daemon/chat-capabilities.d.ts +3 -0
- package/dist/types/daemon/session/types.d.ts +19 -2
- package/dist/types/hooks/useComposerCore.d.ts +18 -0
- package/dist/types/hooks/useSessionArtifacts.d.ts +1 -2
- 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.d.ts +6 -0
- 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/session-catalog/session-catalog-hooks.d.ts +4 -1
- package/dist/types/settings/messages.d.ts +1 -0
- package/dist/types/settings/messages.transcript-stub.d.ts +1 -0
- 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 +10 -0
- package/dist/types/utils/gitModeIntent.d.ts +14 -4
- package/dist/types/utils/plural.d.ts +5 -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-BCExZTLK.js → useDaemonMidTurnInjected-D4Woo-Hh.js} +11219 -5645
- package/package.json +1 -1
- package/dist/agents-route-BYqfB9LM.js +0 -1727
|
@@ -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 {};
|
|
@@ -28,3 +28,13 @@ export interface ComposerTaskChipGroup {
|
|
|
28
28
|
export declare function getComposerTaskChipGroups(tasks: readonly DaemonSessionTaskWithWorkflowStatus[], options: {
|
|
29
29
|
includeAgents: boolean;
|
|
30
30
|
}): ComposerTaskChipGroup[];
|
|
31
|
+
export declare function explainDisplayLabel(label: string): string;
|
|
32
|
+
/**
|
|
33
|
+
* Compose the side question the composer's "?" affordance asks about a
|
|
34
|
+
* background task. The facts come from the client's task snapshot; the
|
|
35
|
+
* forked side-question agent adds the conversation context the snapshot
|
|
36
|
+
* cannot carry (why the task was started). Fact labels stay English — they
|
|
37
|
+
* are model input, not UI text — while the instruction follows the UI
|
|
38
|
+
* language so the answer does too.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildTaskExplainQuestion(task: DaemonSessionTaskWithWorkflowStatus, t: (key: string, vars?: Record<string, string | number>) => string): string;
|
|
@@ -9,14 +9,24 @@ import type { DaemonWorkspaceGitStatus } from '@qwen-code/sdk/daemon';
|
|
|
9
9
|
* session can no longer apply and must fall back to the current branch.
|
|
10
10
|
*
|
|
11
11
|
* Only definitive states reset it: a session already exists, the workspace
|
|
12
|
-
* is not trusted,
|
|
13
|
-
*
|
|
12
|
+
* is not trusted, git status answered and reported neither a branch nor a
|
|
13
|
+
* detached HEAD, or the workspace has no commits (an unborn HEAD has no
|
|
14
|
+
* worktree base — the create path would refuse, and the fast status that
|
|
15
|
+
* armed the intent may have omitted hasHead entirely). A status that is
|
|
16
|
+
* merely absent — not fetched yet, or a poll round that failed — is
|
|
14
17
|
* transient and leaves the intent alone; otherwise one rejected refetch
|
|
15
18
|
* while a draft sits would silently turn a requested worktree task into a
|
|
16
|
-
* plain session in the main checkout.
|
|
19
|
+
* plain session in the main checkout. hasHead === undefined is transient
|
|
20
|
+
* the same way.
|
|
21
|
+
*
|
|
22
|
+
* The git-status test mirrors `App.gitModeEligible`: a detached HEAD
|
|
23
|
+
* (tag/SHA checkout) reports branch:null with detached:true and is exactly
|
|
24
|
+
* the shared-checkout shape the worktree default isolates, so it must NOT
|
|
25
|
+
* reset the intent — only a non-Git workspace (no branch and not detached)
|
|
26
|
+
* or an unborn HEAD does.
|
|
17
27
|
*/
|
|
18
28
|
export declare function gitModeIntentMustReset({ sessionId, workspaceTrusted, gitStatus, }: {
|
|
19
29
|
sessionId: string | null | undefined;
|
|
20
30
|
workspaceTrusted: boolean | undefined;
|
|
21
|
-
gitStatus: Pick<DaemonWorkspaceGitStatus, 'branch'> | undefined;
|
|
31
|
+
gitStatus: Pick<DaemonWorkspaceGitStatus, 'branch' | 'hasHead' | 'detached'> | undefined;
|
|
22
32
|
}): boolean;
|
|
@@ -5,3 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/** English count plus its noun, pluralised the regular way. */
|
|
7
7
|
export declare function plural(count: string | number | undefined, noun: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Russian plural pick: 1 → `one`, 2–4 → `few`, otherwise → `many`, with the
|
|
10
|
+
* 11–14 exception per decade (ход/ходов, токен/токенов, цель/целей).
|
|
11
|
+
*/
|
|
12
|
+
export declare function ruPlural(count: string | number | undefined, one: string, few: string, many: string): string;
|
|
@@ -13,4 +13,12 @@ export interface VoiceButtonProps {
|
|
|
13
13
|
target: VoiceWorkspaceTarget | undefined;
|
|
14
14
|
statusRevision?: VoiceStatusRevision;
|
|
15
15
|
}
|
|
16
|
-
export
|
|
16
|
+
export interface VoiceButtonHandle {
|
|
17
|
+
/**
|
|
18
|
+
* Finalize an active capture for a send: resolves with the final transcript
|
|
19
|
+
* ('' when idle, empty, failed, or aborted) without inserting it — the
|
|
20
|
+
* caller owns insertion so the text lands in the message being sent.
|
|
21
|
+
*/
|
|
22
|
+
flush: () => Promise<string>;
|
|
23
|
+
}
|
|
24
|
+
export declare const VoiceButton: React.ForwardRefExoticComponent<VoiceButtonProps & React.RefAttributes<VoiceButtonHandle>>;
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type VoiceMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const VOICE_MESSAGES_EN: Record<string, VoiceMessage>;
|
|
8
8
|
export declare const VOICE_MESSAGES_ZH: Record<string, VoiceMessage>;
|
|
9
|
+
export declare const VOICE_MESSAGES_RU: Record<string, VoiceMessage>;
|
|
9
10
|
export {};
|
|
@@ -39,5 +39,13 @@ export interface UseVoiceCaptureReturn {
|
|
|
39
39
|
start: () => void;
|
|
40
40
|
stop: () => void;
|
|
41
41
|
abort: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* Stop an active capture and resolve with its final transcript once the
|
|
44
|
+
* server finalizes ('' when idle, empty, failed, or aborted). While a flush
|
|
45
|
+
* is pending the final transcript is delivered only through this promise —
|
|
46
|
+
* `onFinal` is suppressed so the caller owns insertion (e.g. a send that
|
|
47
|
+
* must include the dictation).
|
|
48
|
+
*/
|
|
49
|
+
flush: () => Promise<string>;
|
|
42
50
|
}
|
|
43
51
|
export declare function useVoiceCapture({ baseUrl, token, target, onFinal, onError, onUnexpectedClose, }: UseVoiceCaptureOptions): UseVoiceCaptureReturn;
|