@qwen-code/web-shell 0.28.3 → 0.28.4
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-CxOZ1g2v.js → PierreFilePreview-Cn-K0sjp.js} +1 -1
- package/dist/{SpreadsheetPreview--Hpv2uJo.js → SpreadsheetPreview-9HeqwVPY.js} +2 -2
- package/dist/{WorkspaceFileBrowser-DQ_nK8CO.js → WorkspaceFileBrowser-DKicahqO.js} +2 -2
- package/dist/{WorkspacePdfRangePreview-B9zOI3Db.js → WorkspacePdfRangePreview-2_xkjgkQ.js} +2 -2
- package/dist/{agents-route-D1nhKzzl.js → agents-route-CgXJn9nH.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{i18n-ru-CfZvlNRX.js → i18n-ru-_WgXRbpi.js} +27 -13
- package/dist/{i18n-zh-cn-oYBQlyci.js → i18n-zh-cn-nzJpapgU.js} +27 -11
- package/dist/{i18n-zh-tw-meIHyJiH.js → i18n-zh-tw-DRUCD7h2.js} +34 -0
- package/dist/{index-ChjMzQ_r.js → index-Mt-5HQ-Q.js} +63051 -61427
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +9944 -9742
- package/dist/types/adapters/messageTypes.d.ts +4 -0
- package/dist/types/adapters/transcriptAdapter.d.ts +10 -0
- package/dist/types/chat-core/ChatSurface.d.ts +45 -0
- package/dist/types/chat-core/contract.d.ts +6 -2
- package/dist/types/components/GitModePopover.d.ts +3 -1
- package/dist/types/components/SessionPrBadge.d.ts +3 -1
- package/dist/types/components/WorkspaceSelector.d.ts +3 -1
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +8 -0
- package/dist/types/components/artifacts/WorkspaceArtifactLibraryPage.d.ts +12 -0
- package/dist/types/components/artifacts/artifactUtils.d.ts +82 -1
- package/dist/types/components/artifacts/workspace-artifact-library-messages.d.ts +8 -0
- package/dist/types/components/artifacts/workspace-artifact-library-messages.transcript-stub.d.ts +8 -0
- package/dist/types/components/messages/AssistantMessage.d.ts +5 -1
- package/dist/types/components/messages/ModAssistantMessage.d.ts +8 -1
- package/dist/types/components/messages/ThinkingBody.d.ts +20 -0
- package/dist/types/components/messages/ThinkingBody.transcript-stub.d.ts +8 -0
- package/dist/types/components/messages/ToolGroup.d.ts +2 -6
- package/dist/types/components/messages/UserMessage.d.ts +1 -0
- package/dist/types/components/preview/SavedWebPreview.d.ts +3 -2
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +8 -3
- package/dist/types/daemon/chat-controller.d.ts +3 -1
- package/dist/types/daemon/index.d.ts +1 -1
- package/dist/types/daemon/session/types.d.ts +7 -0
- package/dist/types/daemon/workspace/index.d.ts +1 -1
- package/dist/types/daemon/workspace/types.d.ts +8 -2
- package/dist/types/hooks/useComposerCore.d.ts +12 -0
- package/dist/types/hooks/useWorkspaceArtifactLibrary.d.ts +47 -0
- package/dist/types/i18n.d.ts +1 -0
- package/dist/types/utils/automatic-trigger.d.ts +2 -0
- package/dist/types/utils/navigationUrl.d.ts +1 -1
- package/dist/types/utils/touchCaret.d.ts +33 -0
- package/dist/types/utils/visualViewportInset.d.ts +13 -0
- package/dist/{useDaemonMidTurnInjected-BjQ9zxRv.js → useDaemonMidTurnInjected-C7uv5N2a.js} +2057 -1944
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { DaemonArtifactLibraryMemberError, DaemonArtifactLibrarySessionEnvelope, DaemonArtifactLibrarySessionMetadata, DaemonSessionArtifact, DaemonWorkspaceArtifactLibraryResult, DaemonWorkspaceArtifactLibraryStreamEvent } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import { type DaemonHttpErrorInfo } from '../components/artifacts/artifactUtils';
|
|
3
|
+
export declare const WORKSPACE_ARTIFACT_LIBRARY_FEATURE = "workspace_artifact_library";
|
|
4
|
+
export declare const WORKSPACE_ARTIFACT_LIBRARY_STREAM_FEATURE = "workspace_artifact_library_stream";
|
|
5
|
+
export interface WorkspaceArtifactLibraryRow {
|
|
6
|
+
key: string;
|
|
7
|
+
sessionId: string;
|
|
8
|
+
session: DaemonArtifactLibrarySessionMetadata;
|
|
9
|
+
artifact: DaemonSessionArtifact;
|
|
10
|
+
}
|
|
11
|
+
export interface WorkspaceArtifactLibraryProgress {
|
|
12
|
+
received: number;
|
|
13
|
+
total: number | undefined;
|
|
14
|
+
}
|
|
15
|
+
export type WorkspaceArtifactLibraryRequestError = DaemonHttpErrorInfo;
|
|
16
|
+
export interface ScanOwner {
|
|
17
|
+
readonly workspaceKey: string;
|
|
18
|
+
readonly generation: number;
|
|
19
|
+
}
|
|
20
|
+
export interface WorkspaceArtifactLibraryReader {
|
|
21
|
+
artifactLibrary(workspaceSelector: string, options?: {
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
}): Promise<DaemonWorkspaceArtifactLibraryResult>;
|
|
24
|
+
artifactLibraryStream(workspaceSelector: string, options?: {
|
|
25
|
+
signal?: AbortSignal;
|
|
26
|
+
}): AsyncIterable<DaemonWorkspaceArtifactLibraryStreamEvent>;
|
|
27
|
+
}
|
|
28
|
+
export interface UseWorkspaceArtifactLibraryOptions {
|
|
29
|
+
workspaceSelector: string | undefined;
|
|
30
|
+
reader: WorkspaceArtifactLibraryReader;
|
|
31
|
+
features: readonly string[] | undefined;
|
|
32
|
+
}
|
|
33
|
+
export interface WorkspaceArtifactLibraryState {
|
|
34
|
+
scanning: boolean;
|
|
35
|
+
complete: boolean;
|
|
36
|
+
partial: boolean;
|
|
37
|
+
rows: readonly WorkspaceArtifactLibraryRow[];
|
|
38
|
+
sessionErrors: readonly DaemonArtifactLibraryMemberError[];
|
|
39
|
+
requestError: WorkspaceArtifactLibraryRequestError | undefined;
|
|
40
|
+
progress: WorkspaceArtifactLibraryProgress;
|
|
41
|
+
owner: ScanOwner | undefined;
|
|
42
|
+
refresh: () => void;
|
|
43
|
+
}
|
|
44
|
+
export declare function flattenAndSortWorkspaceArtifacts(envelopes: Iterable<DaemonArtifactLibrarySessionEnvelope>): WorkspaceArtifactLibraryRow[];
|
|
45
|
+
export declare function isSseAdmissionRefusal(error: unknown): boolean;
|
|
46
|
+
export declare function extractArtifactLibraryRequestError(error: unknown): WorkspaceArtifactLibraryRequestError;
|
|
47
|
+
export declare function useWorkspaceArtifactLibrary({ workspaceSelector, reader, features, }: UseWorkspaceArtifactLibraryOptions): WorkspaceArtifactLibraryState;
|
package/dist/types/i18n.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type Messages = Record<string, MessageValue>;
|
|
|
10
10
|
*/
|
|
11
11
|
export declare const LOCAL_FILES_MESSAGE_KEYS: string[];
|
|
12
12
|
export declare const RESTART_RECOVERY_MESSAGE_KEYS: string[];
|
|
13
|
+
export declare const CHAT_MESSAGE_KEYS: string[];
|
|
13
14
|
export declare function loadLanguage(language: WebShellLanguage): Promise<void> | undefined;
|
|
14
15
|
export declare function normalizeLanguage(value: string | undefined | null): WebShellLanguage;
|
|
15
16
|
export declare function languageSettingToWebShellLanguage(value: unknown): WebShellLanguage | undefined;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2026 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
export declare const WEB_SHELL_PAGES: readonly ["plugins", "channels", "channel-events", "live", "scheduled-tasks", "pr-watches", "goals", "settings"];
|
|
6
|
+
export declare const WEB_SHELL_PAGES: readonly ["plugins", "channels", "channel-events", "live", "scheduled-tasks", "pr-watches", "goals", "artifacts", "settings"];
|
|
7
7
|
export type WebShellPage = (typeof WEB_SHELL_PAGES)[number];
|
|
8
8
|
export interface SessionUrlTarget {
|
|
9
9
|
sessionId?: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/** Grapheme start offsets, always ending with text.length. */
|
|
7
|
+
export declare function graphemeBoundaries(text: string): number[];
|
|
8
|
+
export declare function nextGraphemeBoundary(text: string, caret: number): number;
|
|
9
|
+
export declare function logicalLineStarts(text: string): number[];
|
|
10
|
+
export declare function lineIndexAt(lineStarts: number[], caret: number): number;
|
|
11
|
+
/**
|
|
12
|
+
* Content end of a displayed line. An explicit newline is skipped, but a
|
|
13
|
+
* soft-wrap boundary has no separator to skip: subtracting one there would
|
|
14
|
+
* chop the final grapheme of the wrapped line (splitting a surrogate pair).
|
|
15
|
+
*/
|
|
16
|
+
export declare function lineContentEnd(text: string, lineStarts: number[], index: number): number;
|
|
17
|
+
/** Grapheme column of caret within its line. */
|
|
18
|
+
export declare function caretGraphemeColumn(text: string, caret: number, lineStarts: number[]): number;
|
|
19
|
+
/** Offset of the given grapheme column within a line, clamped to its length. */
|
|
20
|
+
export declare function offsetAtGraphemeColumn(text: string, lineStart: number, lineEnd: number, column: number): number;
|
|
21
|
+
export declare function touchLayoutFingerprint(el: HTMLTextAreaElement): string;
|
|
22
|
+
/** Drop a textarea's mirror node and its cached draft text. */
|
|
23
|
+
export declare function discardMirror(el: HTMLTextAreaElement | null): void;
|
|
24
|
+
/**
|
|
25
|
+
* Displayed line starts around the caret: previous visual line (if any),
|
|
26
|
+
* current visual line and next visual line. Only these boundaries are
|
|
27
|
+
* measured — the up/down keys move one line per press, so the array need
|
|
28
|
+
* not enumerate the whole draft. Falls back to all logical lines when
|
|
29
|
+
* layout is unavailable (jsdom).
|
|
30
|
+
*/
|
|
31
|
+
export declare function visualLineStartsAround(el: HTMLTextAreaElement, text: string, caret: number): number[];
|
|
32
|
+
/** Scroll the caret's displayed line into the textarea's scrollport. */
|
|
33
|
+
export declare function revealCaret(el: HTMLTextAreaElement, text: string, caret: number): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
interface VisualViewportGeometry {
|
|
7
|
+
height: number;
|
|
8
|
+
offsetTop: number;
|
|
9
|
+
scale: number;
|
|
10
|
+
}
|
|
11
|
+
/** The part of a shell's bottom edge hidden below the visible viewport. */
|
|
12
|
+
export declare function visualViewportBottomInset(root: Pick<DOMRect, 'bottom' | 'height'>, viewport: VisualViewportGeometry): number;
|
|
13
|
+
export {};
|