@qwen-code/web-shell 0.26.2-preview.1 → 0.26.3-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-Cf76KkJc.js → PierreFilePreview-DK0Qg591.js} +1 -1
- package/dist/{SpreadsheetPreview-BXxrs6FZ.js → SpreadsheetPreview-nx5JXOUL.js} +2 -2
- package/dist/{WorkspaceFileBrowser-Cfi_Fx8Q.js → WorkspaceFileBrowser-D5vot7Ow.js} +2 -2
- package/dist/{agents-route-Dc73Pt04.js → agents-route-CoDAxwQK.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-DjRVj9L_.js → index-bGRCmaBo.js} +58459 -57201
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +6434 -6318
- package/dist/types/adapters/messageTypes.d.ts +2 -0
- package/dist/types/components/autofixPr/AutofixPrWatchSummary.d.ts +30 -0
- package/dist/types/components/dialogs/AutofixPrWatchesDialog.d.ts +27 -0
- package/dist/types/components/dialogs/ScheduledTasksDialog.d.ts +9 -3
- package/dist/types/components/messages/McpApp.d.ts +8 -1
- package/dist/types/components/sidebar/SessionRenameEditor.d.ts +20 -0
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +5 -2
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +10 -1
- package/dist/types/components/sidebar/sessionTree.d.ts +37 -0
- package/dist/types/components/sidebar/useSessionTree.d.ts +19 -0
- package/dist/types/daemon/index.d.ts +1 -1
- package/dist/types/daemon/session/actions.d.ts +3 -1
- package/dist/types/daemon/session/types.d.ts +14 -1
- package/dist/types/daemon/workspace/index.d.ts +1 -1
- package/dist/types/daemon/workspace/types.d.ts +71 -0
- package/dist/types/daemon-react-sdk.d.ts +4 -0
- package/dist/types/generated-ui/GeneratedUiRuntimeProvider.d.ts +12 -0
- package/dist/types/generated-ui/instance-store.d.ts +92 -0
- package/dist/types/hooks/useAutofixPrWatches.d.ts +25 -0
- package/dist/types/mcpAppHostContext.d.ts +27 -1
- package/dist/types/session-catalog/session-catalog-hooks.d.ts +1 -0
- package/dist/types/session-catalog/session-catalog-store.d.ts +20 -0
- package/dist/types/utils/autofixPrWatches.d.ts +45 -0
- package/dist/types/utils/navigationUrl.d.ts +1 -1
- package/dist/types/utils/sessionTitleFromPrompt.d.ts +11 -0
- package/dist/{useDaemonMidTurnInjected-DY7azBbC.js → useDaemonMidTurnInjected-DPmdVYAB.js} +5994 -5651
- package/package.json +1 -1
|
@@ -34,6 +34,12 @@ export declare function getSessionCatalogQueryKey(query: SessionCatalogQuery): s
|
|
|
34
34
|
export declare class SessionCatalogStore {
|
|
35
35
|
private readonly client;
|
|
36
36
|
private readonly entries;
|
|
37
|
+
/**
|
|
38
|
+
* Prompt-derived titles for sessions whose rename has not landed yet.
|
|
39
|
+
* Applied to every published page so periodic and in-flight catalog reads
|
|
40
|
+
* cannot surface the session-id fallback first.
|
|
41
|
+
*/
|
|
42
|
+
private readonly pendingSessionTitles;
|
|
37
43
|
private readonly queue;
|
|
38
44
|
private readonly trailingRefreshTimers;
|
|
39
45
|
private readonly liveStateWorkspaceUsers;
|
|
@@ -83,6 +89,18 @@ export declare class SessionCatalogStore {
|
|
|
83
89
|
interactive?: boolean;
|
|
84
90
|
}): void;
|
|
85
91
|
patchSession(workspaceCwd: string, sessionId: string, patch: Partial<Omit<DaemonSessionSummary, 'sessionId' | 'workspaceCwd'>>): void;
|
|
92
|
+
/**
|
|
93
|
+
* Record a prompt-derived title for a session whose rename is still in
|
|
94
|
+
* flight. Every subsequent page (poll, in-flight load, live merge) gets the
|
|
95
|
+
* title until the daemon reports a real custom title, so no read can publish
|
|
96
|
+
* the session-id fallback first.
|
|
97
|
+
*/
|
|
98
|
+
setPendingSessionTitle(workspaceCwd: string, sessionId: string, displayName: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Drop a pending prompt title once a real rename lands (or the session is
|
|
101
|
+
* closed), so a later catalog page cannot revive the provisional label.
|
|
102
|
+
*/
|
|
103
|
+
clearPendingSessionTitle(workspaceCwd: string, sessionId: string): void;
|
|
86
104
|
/**
|
|
87
105
|
* Apply a pin toggle optimistically to every loaded page of the workspace,
|
|
88
106
|
* so the store owns the optimistic state's lifetime (the R5-1 fix
|
|
@@ -132,6 +150,8 @@ export declare class SessionCatalogStore {
|
|
|
132
150
|
private resolveWaiters;
|
|
133
151
|
private rejectWaiters;
|
|
134
152
|
private setSnapshot;
|
|
153
|
+
private applyPendingSessionTitles;
|
|
154
|
+
private applyPendingSessionTitlesToPage;
|
|
135
155
|
private resetPollSchedule;
|
|
136
156
|
private schedulePollFromNow;
|
|
137
157
|
private scheduleEntryTimer;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import type { DaemonAutofixPrWatch } from '../daemon/workspace/types';
|
|
7
|
+
/** What the prompt of a watch's scheduled task names (`qwen autofix-pr
|
|
8
|
+
* schedule` writes `Run /autofix-pr tick <owner>/<repo>#<n> [--task <id>]…`). */
|
|
9
|
+
export interface AutofixPrTick {
|
|
10
|
+
/** `<owner>/<repo>`. */
|
|
11
|
+
repo: string;
|
|
12
|
+
pr: number;
|
|
13
|
+
task?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function parseAutofixPrTick(prompt: string): AutofixPrTick | null;
|
|
16
|
+
/**
|
|
17
|
+
* The watch a scheduled task drives, among the watches of its workspace's
|
|
18
|
+
* clone. `stale` as the task's gate judges it: the watch ended, records no
|
|
19
|
+
* task where the task has an id, or records another task — one a later
|
|
20
|
+
* `schedule` replaced. Such a task stops at its next fire.
|
|
21
|
+
*/
|
|
22
|
+
export declare function watchOfTask(prompt: string, watches: readonly DaemonAutofixPrWatch[] | undefined): {
|
|
23
|
+
watch: DaemonAutofixPrWatch;
|
|
24
|
+
stale: boolean;
|
|
25
|
+
} | null;
|
|
26
|
+
/** Where a watch is, the first that holds in this order. */
|
|
27
|
+
export type AutofixPrWatchPhase =
|
|
28
|
+
/** The gate saw the PR merged or closed: only a cleanup is left. */
|
|
29
|
+
'merged' | 'closed'
|
|
30
|
+
/** A `cleanup` that kept the worktree ended it. */
|
|
31
|
+
| 'ended'
|
|
32
|
+
/** No task drives it: a `--once` check's state, or a watch whose
|
|
33
|
+
* scheduling did not finish. */
|
|
34
|
+
| 'unscheduled'
|
|
35
|
+
/** A fix agent works in the background, or its round has yet to claim it. */
|
|
36
|
+
| 'fixing'
|
|
37
|
+
/** A background fix its session left behind: the next round redoes it. */
|
|
38
|
+
| 'abandonedFix'
|
|
39
|
+
/** Its gate checked the PR within two intervals. */
|
|
40
|
+
| 'watching'
|
|
41
|
+
/** No check that recent: its session is gone or not running its task. */
|
|
42
|
+
| 'idle';
|
|
43
|
+
export declare function watchPhase(watch: DaemonAutofixPrWatch): AutofixPrWatchPhase;
|
|
44
|
+
/** What stops a watch in the session that owns it, as a user types it. */
|
|
45
|
+
export declare function stopCommand(watch: DaemonAutofixPrWatch): string;
|
|
@@ -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", "live", "scheduled-tasks", "goals", "settings"];
|
|
6
|
+
export declare const WEB_SHELL_PAGES: readonly ["plugins", "channels", "live", "scheduled-tasks", "pr-watches", "goals", "settings"];
|
|
7
7
|
export type WebShellPage = (typeof WEB_SHELL_PAGES)[number];
|
|
8
8
|
export interface SessionUrlTarget {
|
|
9
9
|
sessionId?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Derive a session title from the first prompt when the prompt itself is
|
|
3
|
+
* already a usable short title. Returns undefined for anything the fast-model
|
|
4
|
+
* title should handle instead: multi-line prompts, long prompts, and a bare
|
|
5
|
+
* slash command with no arguments.
|
|
6
|
+
*
|
|
7
|
+
* Deliberately lighter than core's `sanitizeTitle`: this runs in the browser
|
|
8
|
+
* bundle, which must not pull in the model client. Keep the trailing
|
|
9
|
+
* punctuation class in sync with that helper.
|
|
10
|
+
*/
|
|
11
|
+
export declare function titleFromPrompt(text: string): string | undefined;
|