@qwen-code/web-shell 0.26.9 → 0.27.1
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 +30 -6
- package/dist/{PierreFilePreview-BWMV28K1.js → PierreFilePreview-BT_JRIvF.js} +1 -1
- package/dist/{SpreadsheetPreview-CpnnnQKn.js → SpreadsheetPreview-d5XL70Ho.js} +2 -2
- package/dist/{WorkspaceFileBrowser-CwWFGqIW.js → WorkspaceFileBrowser-G1yA2eBf.js} +2 -2
- package/dist/{agents-route-BmgI-UF0.js → agents-route-bkxyBAkN.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-DrPRgTJc.js → index-B6wNHUaX.js} +68664 -62370
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +8958 -8544
- package/dist/types/App.d.ts +9 -1
- package/dist/types/ManagedAgentWebShell.d.ts +15 -2
- package/dist/types/browser-notifications/messages.d.ts +9 -0
- package/dist/types/browser-notifications/messages.transcript-stub.d.ts +7 -0
- package/dist/types/completions/slashCompletion.d.ts +1 -0
- package/dist/types/components/ChatPane.d.ts +2 -1
- package/dist/types/components/MessageList.d.ts +2 -4
- package/dist/types/components/SessionLimitBanner.d.ts +4 -0
- package/dist/types/components/SessionOverviewPanel.d.ts +2 -1
- package/dist/types/components/SplitView.d.ts +3 -1
- package/dist/types/components/StreamingStatus.d.ts +4 -1
- package/dist/types/components/WaitingMinigame.d.ts +24 -0
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +1 -0
- package/dist/types/components/artifacts/TokenUsageTrend.d.ts +20 -3
- package/dist/types/components/artifacts/TurnOutputs.d.ts +1 -0
- package/dist/types/components/artifacts/tool-call-content.d.ts +2 -1
- package/dist/types/components/artifacts/useWorkspaceFileChanges.d.ts +4 -0
- package/dist/types/components/artifacts/workspace-file-changes.d.ts +7 -0
- package/dist/types/components/channels/channel-editor-state.d.ts +28 -1
- package/dist/types/components/dialogs/ScheduledTaskDeliveryFields.d.ts +18 -0
- package/dist/types/components/dialogs/ScheduledTasksDialog.d.ts +6 -2
- package/dist/types/components/local-control-api.d.ts +14 -0
- package/dist/types/components/managed/ManagedActivityView.d.ts +10 -0
- package/dist/types/components/managed/ManagedDiagnosticsPanel.d.ts +11 -0
- package/dist/types/components/managed/ManagedExtensionInstaller.d.ts +31 -0
- package/dist/types/components/managed/ManagedExtensionsManagerPage.d.ts +2 -1
- package/dist/types/components/managed/ManagedInvocationTree.d.ts +13 -0
- package/dist/types/components/managed/ManagedMcpManagerPage.d.ts +1 -0
- package/dist/types/components/managed/ManagedQuestionForm.d.ts +8 -1
- package/dist/types/components/managed/ManagedSessionsPage.d.ts +5 -1
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +1164 -54
- package/dist/types/components/managed/java-managed-agent-client.d.ts +206 -1
- package/dist/types/components/managed/managed-activity.test-fixtures.d.ts +6 -0
- package/dist/types/components/managed/managed-agent-provider.d.ts +31 -1
- package/dist/types/components/managed/managed-diagnostics-messages.d.ts +157 -0
- package/dist/types/components/managed/managed-diagnostics.test-fixtures.d.ts +5 -0
- package/dist/types/components/managed/managed-extension-install.d.ts +68 -0
- package/dist/types/components/managed/managed-extension-messages.d.ts +48 -0
- package/dist/types/components/managed/managed-extension-types.d.ts +3 -0
- package/dist/types/components/managed/use-managed-actions.d.ts +8 -2
- package/dist/types/components/managed/use-managed-diagnostics.d.ts +32 -0
- package/dist/types/components/messages/AskUserQuestion.d.ts +7 -1
- package/dist/types/components/messages/AuthMessage.d.ts +2 -1
- package/dist/types/components/messages/toolFormatting.d.ts +23 -0
- package/dist/types/components/plugins/PluginManagerPage.d.ts +1 -1
- package/dist/types/components/sidebar/RecentSessions.d.ts +3 -2
- package/dist/types/components/sidebar/SessionSortMenu.d.ts +8 -0
- package/dist/types/components/sidebar/StandaloneRecents.d.ts +2 -1
- package/dist/types/components/sidebar/WebShellSidebar.d.ts +2 -1
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +8 -2
- package/dist/types/components/sidebar/useWorkspaceOrder.d.ts +12 -0
- package/dist/types/components/sidebar/workspaceOrder.d.ts +1 -0
- package/dist/types/components/ui/alert.d.ts +1 -1
- package/dist/types/components/ui/badge.d.ts +1 -1
- package/dist/types/components/ui/button.d.ts +2 -2
- package/dist/types/components/workflow-mode-control-state.d.ts +1 -1
- package/dist/types/components/workspace-agents/useAgentChatEntry.d.ts +6 -0
- package/dist/types/config/host-fanout.d.ts +2 -0
- package/dist/types/customization.d.ts +33 -0
- package/dist/types/daemon/index.d.ts +1 -1
- package/dist/types/daemon/session/actions.d.ts +1 -1
- package/dist/types/daemon/session/httpErrors.d.ts +1 -0
- package/dist/types/daemon/session/session-context.d.ts +3 -1
- package/dist/types/daemon/session/types.d.ts +34 -1
- package/dist/types/daemon/workspace/index.d.ts +1 -1
- package/dist/types/daemon/workspace/types.d.ts +21 -1
- package/dist/types/daemon-react-sdk.d.ts +1 -1
- package/dist/types/hooks/useQueuedPrompts.d.ts +4 -1
- package/dist/types/hooks/useScopedSessions.d.ts +4 -0
- package/dist/types/session-catalog/session-catalog-hooks.d.ts +2 -0
- package/dist/types/settings.d.ts +1 -0
- package/dist/types/utils/askUserPermission.d.ts +7 -0
- package/dist/types/utils/planMode.d.ts +1 -1
- package/dist/types/utils/sessionPreparation.d.ts +19 -3
- package/dist/types/utils/waitingActivity.d.ts +55 -0
- package/dist/types/utils/waitingGamesConfig.d.ts +7 -0
- package/dist/types/utils/waitingMinigame.d.ts +53 -0
- package/dist/types/utils/waitingSnake.d.ts +40 -0
- package/dist/{useDaemonMidTurnInjected-4PDPakvk.js → useDaemonMidTurnInjected-tBzI77Ar.js} +5795 -5380
- package/package.json +2 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const MANAGED_EXTENSION_MESSAGES_EN: {
|
|
2
|
+
readonly 'managed.install.skillsTitle': "Managed Skills";
|
|
2
3
|
readonly 'managed.extensions.title': "Managed extensions";
|
|
3
4
|
readonly 'managed.extensions.description': "Publish a fixed package, select versions, then apply to an idle session.";
|
|
4
5
|
readonly 'managed.extensions.selectSession': "Select a workspace and session to manage extensions.";
|
|
@@ -32,5 +33,52 @@ export declare const MANAGED_EXTENSION_MESSAGES_EN: {
|
|
|
32
33
|
readonly 'managed.extensions.empty': "No packages published in this workspace.";
|
|
33
34
|
readonly 'managed.extensions.failedRequest': "The request could not be confirmed. Refresh status or retry the original request.";
|
|
34
35
|
readonly 'managed.extensions.localPublisher': "A connected daemon is required to prepare an original source.";
|
|
36
|
+
readonly 'managed.install.title': "Install a Skill or MCP connection";
|
|
37
|
+
readonly 'managed.install.description': "Save a version in this workspace and apply it only to the selected idle session.";
|
|
38
|
+
readonly 'managed.install.kind': "Installation source";
|
|
39
|
+
readonly 'managed.install.kind.skill': "Skill archive";
|
|
40
|
+
readonly 'managed.install.kind.extension': "Extension archive";
|
|
41
|
+
readonly 'managed.install.kind.mcp': "MCP configuration";
|
|
42
|
+
readonly 'managed.install.name': "Name (optional for archives)";
|
|
43
|
+
readonly 'managed.install.serverName': "MCP server name";
|
|
44
|
+
readonly 'managed.install.archive': "ZIP or tar.gz archive";
|
|
45
|
+
readonly 'managed.install.transport': "Transport";
|
|
46
|
+
readonly 'managed.install.command': "Executable command";
|
|
47
|
+
readonly 'managed.install.arguments': "Arguments (JSON string array)";
|
|
48
|
+
readonly 'managed.install.environment': "Environment (JSON object)";
|
|
49
|
+
readonly 'managed.install.url': "MCP server URL";
|
|
50
|
+
readonly 'managed.install.headers': "Headers (JSON object)";
|
|
51
|
+
readonly 'managed.install.secretHelp': "Declare secret setting names below. Use ${NAME} in arguments, environment, URL or headers; enter the value only in its password field.";
|
|
52
|
+
readonly 'managed.install.secretKeys': "Secret setting names, separated by commas";
|
|
53
|
+
readonly 'managed.install.workspaceCredentials': "Workspace service credentials can be used by authorized executions in this workspace. Saved values are never displayed.";
|
|
54
|
+
readonly 'managed.install.keepSettings': "Keep the currently selected saved settings revision";
|
|
55
|
+
readonly 'managed.install.updateTarget': "New package or update target";
|
|
56
|
+
readonly 'managed.install.install': "Install into current session";
|
|
57
|
+
readonly 'managed.install.complete': "Installed in the selected session.";
|
|
58
|
+
readonly 'managed.install.savedNotApplied': "Installation is not confirmed. A saved package may be available; check or retry the original request before starting another installation.";
|
|
59
|
+
readonly 'managed.install.recoverBeforeEdit': "An earlier installation requires recovery. Cancel editing to return to the original installation before changing this connection.";
|
|
60
|
+
readonly 'managed.install.required.source': "Select or recreate the original input to continue. Its digest must match the saved request.";
|
|
61
|
+
readonly 'managed.install.required.settings': "Enter the complete set of credential values to continue. Values are not retained after a reload.";
|
|
62
|
+
readonly 'managed.install.stage.publish': "Saving package version…";
|
|
63
|
+
readonly 'managed.install.stage.settings': "Package saved; preparing settings…";
|
|
64
|
+
readonly 'managed.install.stage.apply': "Package saved; applying to the selected session…";
|
|
65
|
+
readonly 'managed.install.reviewAgain': "Review current selection";
|
|
66
|
+
readonly 'managed.install.inspect': "Inspect package";
|
|
67
|
+
readonly 'managed.install.packageSource': "Versioned package";
|
|
68
|
+
readonly 'managed.install.staticSource': "Static session snapshot";
|
|
69
|
+
readonly 'managed.install.staticHelp': "Static Skill snapshots stay fixed. Install a separately qualified package Skill or create a new session to change the base snapshot.";
|
|
70
|
+
readonly 'managed.install.ownedMcp': "This connection belongs to a package. Edit its package configuration instead of its independent server definition.";
|
|
71
|
+
readonly 'managed.install.editMcp': "Edit connection configuration";
|
|
72
|
+
readonly 'managed.install.files': "Package files";
|
|
73
|
+
readonly 'managed.install.truncated': "The file list is truncated.";
|
|
74
|
+
readonly 'managed.install.review': "Review package";
|
|
75
|
+
readonly 'managed.install.reviewed': "Current selection loaded. Confirm the original installation again to apply its saved package.";
|
|
76
|
+
readonly 'managed.install.invalidInput': "The source could not be prepared. Check the archive, configuration fields and declared settings.";
|
|
77
|
+
readonly 'managed.install.redacted': "Saved literal environment/header values are redacted. Enter them again or replace them with declared secret placeholders before reviewing.";
|
|
78
|
+
readonly 'managed.install.createMcp': "Create MCP connection";
|
|
79
|
+
readonly 'managed.install.packageEditUnavailable': "This package could not be opened as a single connection. Manage composite extensions from the Extensions page.";
|
|
80
|
+
readonly 'managed.install.replacePackage': "This updates the entire selected package in this session. Other sessions keep their selected versions.";
|
|
81
|
+
readonly 'managed.install.discardDraft': "Discard draft; keep saved versions";
|
|
82
|
+
readonly 'managed.install.discarded': "The draft was discarded. Any saved package or settings revisions remain available in this workspace.";
|
|
35
83
|
};
|
|
36
84
|
export declare const MANAGED_EXTENSION_MESSAGES_ZH: Record<keyof typeof MANAGED_EXTENSION_MESSAGES_EN, string>;
|
|
@@ -6,5 +6,8 @@ export type ManagedExtensionPackageOperation = components['schemas']['ManagedExt
|
|
|
6
6
|
export type ManagedExtensionSettings = components['schemas']['ManagedExtensionPackageSettings'];
|
|
7
7
|
export type ManagedExtensionSnapshot = components['schemas']['ManagedExtensionManagementSnapshot'];
|
|
8
8
|
export type ManagedExtensionSelection = components['schemas']['ManagedExtensionApplySelection'];
|
|
9
|
+
export type ManagedExtensionImportMetadata = components['schemas']['ManagedExtensionImportMetadata'];
|
|
10
|
+
export type ManagedExtensionInspection = components['schemas']['ManagedExtensionPackageInspection'];
|
|
11
|
+
export type ManagedExtensionSettingDeclaration = ManagedExtensionInspection['settings'][number];
|
|
9
12
|
export declare function isManagedExtensionPins(value: unknown): value is ManagedExtensionPin[];
|
|
10
13
|
export declare function requireExtensionSnapshot(value: ManagedExtensionSnapshot, sessionId: string): ManagedExtensionSnapshot;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { ManagedAgentPendingAction, ManagedAgentActionResponse, ManagedAgentProvider, ManagedAgentSessionEvent } from './managed-agent-provider';
|
|
2
|
+
import type { ManagedQuestionDraft } from './ManagedQuestionForm';
|
|
3
|
+
export declare function managedActionKey(action: ManagedAgentPendingAction): string;
|
|
2
4
|
export interface ManagedActionsState {
|
|
3
5
|
actions: readonly ManagedAgentPendingAction[];
|
|
4
|
-
/** The
|
|
6
|
+
/** The selected pending request; answered ones stay hidden while they settle. */
|
|
5
7
|
action?: ManagedAgentPendingAction;
|
|
8
|
+
select(action: ManagedAgentPendingAction): void;
|
|
9
|
+
questionDraft: ManagedQuestionDraft;
|
|
10
|
+
setQuestionDraft(action: ManagedAgentPendingAction, draft: ManagedQuestionDraft): void;
|
|
11
|
+
submitting: boolean;
|
|
6
12
|
/** Reading the pending approvals failed; retries run in the background. */
|
|
7
13
|
loadError?: unknown;
|
|
8
14
|
/**
|
|
@@ -21,7 +27,7 @@ export interface ManagedActionsState {
|
|
|
21
27
|
* re-probes instead of treating one 403 as permanent for the mount.
|
|
22
28
|
*/
|
|
23
29
|
respondForbidden: boolean;
|
|
24
|
-
respond(
|
|
30
|
+
respond(action: ManagedAgentPendingAction, response: ManagedAgentActionResponse): Promise<void>;
|
|
25
31
|
/** Reads the pending approvals again now. */
|
|
26
32
|
retry(): void;
|
|
27
33
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ManagedDiagnosticAgentTrace, ManagedDiagnosticContextUsage, ManagedDiagnosticResources, ManagedDiagnosticStats, ManagedDiagnosticsProvider } from './managed-agent-provider';
|
|
2
|
+
export type ManagedDiagnosticsTab = 'context' | 'statistics' | 'resources' | 'agents';
|
|
3
|
+
export type ManagedDiagnosticsSnapshot = {
|
|
4
|
+
kind: 'context';
|
|
5
|
+
value: ManagedDiagnosticContextUsage;
|
|
6
|
+
} | {
|
|
7
|
+
kind: 'statistics';
|
|
8
|
+
value: ManagedDiagnosticStats;
|
|
9
|
+
} | {
|
|
10
|
+
kind: 'resources';
|
|
11
|
+
value: ManagedDiagnosticResources;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'agents';
|
|
14
|
+
value: ManagedDiagnosticAgentTrace;
|
|
15
|
+
};
|
|
16
|
+
export declare function useManagedDiagnostics({ provider, sessionId, clientId, tab, running, revision, enabled, }: {
|
|
17
|
+
provider: ManagedDiagnosticsProvider;
|
|
18
|
+
sessionId: string;
|
|
19
|
+
clientId: string;
|
|
20
|
+
tab: ManagedDiagnosticsTab;
|
|
21
|
+
running: boolean;
|
|
22
|
+
revision?: string;
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
}): {
|
|
25
|
+
snapshot: ManagedDiagnosticsSnapshot | undefined;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
error: boolean;
|
|
28
|
+
refresh: () => void;
|
|
29
|
+
hasPrevious: boolean;
|
|
30
|
+
previous: () => void;
|
|
31
|
+
next: () => void;
|
|
32
|
+
};
|
|
@@ -5,6 +5,12 @@ interface AskUserQuestionProps {
|
|
|
5
5
|
onError: (error: unknown, fallback: string) => void;
|
|
6
6
|
variant?: 'inline' | 'floating';
|
|
7
7
|
customInputLabel?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Opens a side task that explains the pending question before the user
|
|
10
|
+
* answers. Omitted when the host has no side-task surface, which hides the
|
|
11
|
+
* action entirely.
|
|
12
|
+
*/
|
|
13
|
+
onAskDetails?: () => void;
|
|
8
14
|
/**
|
|
9
15
|
* Whether this question should pull keyboard focus to its first option when it
|
|
10
16
|
* becomes the topmost one. Defaults to true. Split-view panes pass false so an
|
|
@@ -14,5 +20,5 @@ interface AskUserQuestionProps {
|
|
|
14
20
|
*/
|
|
15
21
|
keyboardActive?: boolean;
|
|
16
22
|
}
|
|
17
|
-
export declare function AskUserQuestion({ request, onConfirm, onError, variant, keyboardActive, customInputLabel, }: AskUserQuestionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
export declare function AskUserQuestion({ request, onConfirm, onError, variant, keyboardActive, customInputLabel, onAskDetails, }: AskUserQuestionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
24
|
export {};
|
|
@@ -4,9 +4,10 @@ interface AuthMessageProps {
|
|
|
4
4
|
allowAdd?: boolean;
|
|
5
5
|
onMessage: (text: string, type?: 'status' | 'error') => void;
|
|
6
6
|
onModelActivated?: (modelId: string) => void;
|
|
7
|
+
onChatProviderConfigured?: () => void;
|
|
7
8
|
getWorkspaceCwd?: () => string | undefined;
|
|
8
9
|
activateSessionSubscriptionModel: (workspaceCwd: string | undefined, sessionId: string, modelId: string) => Promise<void>;
|
|
9
10
|
onClose: () => void;
|
|
10
11
|
}
|
|
11
|
-
export declare function AuthMessage({ onMessage, onModelActivated, getWorkspaceCwd, activateSessionSubscriptionModel, onClose, allowAdd, dialog, standalone, }: AuthMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function AuthMessage({ onMessage, onModelActivated, onChatProviderConfigured, getWorkspaceCwd, activateSessionSubscriptionModel, onClose, allowAdd, dialog, standalone, }: AuthMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -30,6 +30,29 @@ export declare function getQuestionAnswerResult(tool: ACPToolCall): {
|
|
|
30
30
|
}>;
|
|
31
31
|
} | null;
|
|
32
32
|
export declare function truncateText(text: string, max: number): string;
|
|
33
|
+
/** Longest payload stretch a transcript card renders before "Show more". */
|
|
34
|
+
export declare const MAX_TOOL_PAYLOAD_LENGTH = 4000;
|
|
35
|
+
/** Ceiling after "Show more", matching the trajectory inspector. */
|
|
36
|
+
export declare const EXPANDED_TOOL_PAYLOAD_LENGTH = 40000;
|
|
37
|
+
export declare function stringifyValue(value: unknown): string;
|
|
38
|
+
/**
|
|
39
|
+
* Re-indents a canonical JSON object or array for display. The input must be
|
|
40
|
+
* exactly its compact JSON form or its two-space form; anything else — plain
|
|
41
|
+
* text, a primitive, a truncated document, JSON Lines, a mixed JSON/text log
|
|
42
|
+
* or non-canonical JSON — is returned as recorded so the caller can fall back
|
|
43
|
+
* to plain text. Formatting therefore never rewrites literals, duplicate
|
|
44
|
+
* keys, key order or string escapes.
|
|
45
|
+
*
|
|
46
|
+
* These rules are scoped to the transcript tool card. The sibling
|
|
47
|
+
* ToolCallDetail used by the turn-calls / trajectory panes still fences via a
|
|
48
|
+
* bare JSON.parse, so identical bytes can render differently per surface;
|
|
49
|
+
* lifting one shared Arguments/Result renderer is tracked as a follow-up
|
|
50
|
+
* rather than widened into this change.
|
|
51
|
+
*/
|
|
52
|
+
export declare function formatJsonPayload(text: string, maxFormattedLength?: number, maxInputLength?: number): {
|
|
53
|
+
text: string;
|
|
54
|
+
json: boolean;
|
|
55
|
+
};
|
|
33
56
|
export declare function getToolDescription(tool: ACPToolCall, workspaceCwd?: string): string;
|
|
34
57
|
export declare function getToolSummaryDescription(tool: ACPToolCall, workspaceCwd?: string): string;
|
|
35
58
|
export declare function getShellToolSemanticDescription(tool: ACPToolCall): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'react';
|
|
2
|
-
import type
|
|
2
|
+
import { type ManagedExtensionsManagerPageProps } from '../managed/ManagedExtensionsManagerPage';
|
|
3
3
|
import { type ManagedMcpManagerPageProps } from '../managed/ManagedMcpManagerPage';
|
|
4
4
|
type PluginTab = 'extensions' | 'mcp' | 'skills' | 'agents';
|
|
5
5
|
interface PluginManagerPageProps {
|
|
@@ -4,8 +4,9 @@ export interface RecentSessionEntry {
|
|
|
4
4
|
session: DaemonSessionSummary;
|
|
5
5
|
workspaceCwd?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function sortRecentSessions(entries: RecentSessionEntry[]): RecentSessionEntry[];
|
|
7
|
+
export declare function sortRecentSessions(entries: RecentSessionEntry[], sortBy?: 'updatedAt' | 'lastUserPromptAt'): RecentSessionEntry[];
|
|
8
8
|
interface RecentSessionsProps {
|
|
9
|
+
sortBy?: 'updatedAt' | 'lastUserPromptAt';
|
|
9
10
|
client: DaemonClient;
|
|
10
11
|
workspaces: DaemonWorkspaceCapability[];
|
|
11
12
|
includeStandalone: boolean;
|
|
@@ -19,5 +20,5 @@ interface RecentSessionsProps {
|
|
|
19
20
|
renderSession: (entry: RecentSessionEntry) => ReactNode;
|
|
20
21
|
onVisibleRowsChange?: (keys: string) => void;
|
|
21
22
|
}
|
|
22
|
-
export declare function RecentSessions({ client, workspaces, includeStandalone, sourceMetadataEnabled, organizationEnabled, currentSessionId, refreshKey, refreshPaused, renderSession, onVisibleRowsChange, onNewSession, newSessionDisabled, }: RecentSessionsProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare function RecentSessions({ sortBy, client, workspaces, includeStandalone, sourceMetadataEnabled, organizationEnabled, currentSessionId, refreshKey, refreshPaused, renderSession, onVisibleRowsChange, onNewSession, newSessionDisabled, }: RecentSessionsProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type SessionSort = 'updatedAt' | 'lastUserPromptAt';
|
|
2
|
+
export declare function readSessionSort(host: string): SessionSort;
|
|
3
|
+
export declare function writeSessionSort(host: string, sort: SessionSort): void;
|
|
4
|
+
export declare function SessionSortMenu({ value, onChange, triggerClassName, }: {
|
|
5
|
+
value: SessionSort;
|
|
6
|
+
onChange: (value: SessionSort) => void;
|
|
7
|
+
triggerClassName?: string;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type DaemonSessionArchiveState, type DaemonStandaloneSessionSummary } from '@qwen-code/sdk/daemon';
|
|
3
3
|
interface StandaloneRecentsProps {
|
|
4
|
+
sortBy?: 'updatedAt' | 'lastUserPromptAt';
|
|
4
5
|
archiveState: DaemonSessionArchiveState;
|
|
5
6
|
currentSessionId?: string;
|
|
6
7
|
currentSessionReady?: boolean;
|
|
@@ -29,5 +30,5 @@ interface StandaloneRecentsProps {
|
|
|
29
30
|
onError: (error: unknown, fallback: string) => void;
|
|
30
31
|
onNotice: (message: string) => void;
|
|
31
32
|
}
|
|
32
|
-
export declare function StandaloneRecents({ archiveState, currentSessionId, currentSessionReady, refreshKey, searchQuery, onNewSession, renderSession, onLoadSession, onRenameSession, onMutated, onStatusChange, onError, onNotice, }: StandaloneRecentsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
33
|
+
export declare function StandaloneRecents({ sortBy, archiveState, currentSessionId, currentSessionReady, refreshKey, searchQuery, onNewSession, renderSession, onLoadSession, onRenameSession, onMutated, onStatusChange, onError, onNotice, }: StandaloneRecentsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
33
34
|
export {};
|
|
@@ -101,6 +101,7 @@ interface WebShellSidebarProps {
|
|
|
101
101
|
canOpenSplitView?: boolean;
|
|
102
102
|
onNewSession: (workspaceCwd?: string) => Promise<boolean> | boolean;
|
|
103
103
|
onNewStandaloneSession?: () => Promise<boolean> | boolean;
|
|
104
|
+
standaloneSessionsReloadToken?: number;
|
|
104
105
|
onLoadSession: (sessionId: string, workspaceCwd?: string) => Promise<void> | void;
|
|
105
106
|
/**
|
|
106
107
|
* Opens a session listed by a fan-out host group (#13727): the caller
|
|
@@ -188,4 +189,4 @@ interface WebShellSidebarProps {
|
|
|
188
189
|
onLoadStandaloneSession?: (sessionId: string, displayName?: string) => Promise<void> | void;
|
|
189
190
|
onStandaloneNotice?: (message: string) => void;
|
|
190
191
|
}
|
|
191
|
-
export declare function WebShellSidebar({ collapsed, layout, activePage, containerWidth, onOpenHome, onCollapsedChange, onOpenSettings, canOpenSettings, onOpenAgents, onOpenPlugins, onOpenChannels, onOpenChannelEvents, onOpenLive, onLiveVoiceSlotChange, onOpenManagedSessions, onOpenDaemonStatus, onOpenScheduledTasks, onOpenPrWatches, onOpenWorkflows, onOpenGoals, onOpenSessions, canOpenSessionsOverview, onOpenWorkspacesOverview, onOpenSplitView, onAddSessionToSplitView, splitSessionIds, canOpenSplitView, onNewSession, onNewStandaloneSession, onLoadSession, onOpenHostSession, onSelectCurrentSession, onSessionArchived, onSessionRenameConfirmed, onSessionsDeleted, onError, theme, onThemeChange, mobileOpen, onMobileClose, selectedWorkspaceCwd, onSelectWorkspace, onOpenGitDiff, onOpenCommit, onOpenAddWorkspace, workspaces: providedWorkspaces, lockedWorkspaceCwd, lockedWorkspace: lockedWorkspaceOptions, branding, primaryNav: primaryNavOptions, sessionContent, sessionHeader, managedWorkspaces, managedArchivedSessions, archivedSessionsTarget, onSearchQueryChange, currentSessionActive, showSessionSourceSwitch, showLive, hideProjectHeader, sessionActions: sessionActionsOptions, footer, workspaceOverview, onOpenWorkspaceManagement, onNewWorktreeSession, projectFeaturesEnabled, onLoadStandaloneSession, onStandaloneNotice, }: WebShellSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
192
|
+
export declare function WebShellSidebar({ collapsed, layout, activePage, containerWidth, onOpenHome, onCollapsedChange, onOpenSettings, canOpenSettings, onOpenAgents, onOpenPlugins, onOpenChannels, onOpenChannelEvents, onOpenLive, onLiveVoiceSlotChange, onOpenManagedSessions, onOpenDaemonStatus, onOpenScheduledTasks, onOpenPrWatches, onOpenWorkflows, onOpenGoals, onOpenSessions, canOpenSessionsOverview, onOpenWorkspacesOverview, onOpenSplitView, onAddSessionToSplitView, splitSessionIds, canOpenSplitView, onNewSession, onNewStandaloneSession, standaloneSessionsReloadToken, onLoadSession, onOpenHostSession, onSelectCurrentSession, onSessionArchived, onSessionRenameConfirmed, onSessionsDeleted, onError, theme, onThemeChange, mobileOpen, onMobileClose, selectedWorkspaceCwd, onSelectWorkspace, onOpenGitDiff, onOpenCommit, onOpenAddWorkspace, workspaces: providedWorkspaces, lockedWorkspaceCwd, lockedWorkspace: lockedWorkspaceOptions, branding, primaryNav: primaryNavOptions, sessionContent, sessionHeader, managedWorkspaces, managedArchivedSessions, archivedSessionsTarget, onSearchQueryChange, currentSessionActive, showSessionSourceSwitch, showLive, hideProjectHeader, sessionActions: sessionActionsOptions, footer, workspaceOverview, onOpenWorkspaceManagement, onNewWorktreeSession, projectFeaturesEnabled, onLoadStandaloneSession, onStandaloneNotice, }: WebShellSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
2
|
import type { DaemonClient, DaemonSessionGroupCatalog } from '@qwen-code/sdk/daemon';
|
|
3
3
|
import type { DaemonSessionGroup, DaemonSessionSummary, DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
|
|
4
4
|
import type { SessionTreeRenderOptions } from './sessionTree';
|
|
@@ -36,11 +36,17 @@ interface WorkspaceSectionProps {
|
|
|
36
36
|
sessionCatalogRequestsEnabled?: boolean;
|
|
37
37
|
sessionGroupCatalog?: DaemonSessionGroupCatalog;
|
|
38
38
|
sessionLiveStateEnabled?: boolean;
|
|
39
|
+
sortBy?: 'updatedAt' | 'lastUserPromptAt';
|
|
39
40
|
sourceType?: string;
|
|
40
41
|
channelGroupingEnabled?: boolean;
|
|
41
42
|
ungroupedLabel: string;
|
|
42
43
|
searchQuery?: string;
|
|
43
44
|
expanded?: boolean;
|
|
45
|
+
expansionRequest?: {
|
|
46
|
+
expanded: boolean;
|
|
47
|
+
};
|
|
48
|
+
temporarilyCollapsed?: boolean;
|
|
49
|
+
dragHandleProps?: Pick<HTMLAttributes<HTMLButtonElement>, 'draggable' | 'onDragStart' | 'onDragEnd'>;
|
|
44
50
|
autoExpandKey?: string;
|
|
45
51
|
forceAutoExpand?: boolean;
|
|
46
52
|
onExpandedChange?: (expanded: boolean) => void;
|
|
@@ -137,5 +143,5 @@ interface WorkspaceSectionProps {
|
|
|
137
143
|
/** Commit entry for the same picker; the row still opens without it. */
|
|
138
144
|
onOpenCommit?: (workspaceCwd: string) => void;
|
|
139
145
|
}
|
|
140
|
-
export declare function WorkspaceSection({ workspace, executionLabel, storageKey, remote, renderHeader, hideHeader, client, reloadToken, untrustedLabel, readOnlyLabel, trustToOpenLabel, noSessionsLabel, loadErrorLabel, untitledSessionLabel, organizationEnabled, sessionCatalogRequestsEnabled, sessionGroupCatalog, sessionLiveStateEnabled, sourceType, channelGroupingEnabled, ungroupedLabel, searchQuery, expanded: controlledExpanded, autoExpandKey, forceAutoExpand, onExpandedChange, renderSessions, renderSession, pendingSession, mapSession, showSessionDetails, headerActions, overviewEnabled, overviewMenuOpen, overviewItems, gitBranchWanted, sessionStats, onRenameGroup, onDeleteGroup, renameGroupLabel, deleteGroupLabel, groupActionsDisabled, excludePinned, limitSessions, editingSessionId, isPinnedSectionMember, onOpenPathLocally, onOpenTerminalLocally, onOpenGitDiff, onOpenCommit, }: WorkspaceSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
146
|
+
export declare function WorkspaceSection({ workspace, executionLabel, storageKey, remote, renderHeader, hideHeader, client, reloadToken, untrustedLabel, readOnlyLabel, trustToOpenLabel, noSessionsLabel, loadErrorLabel, untitledSessionLabel, organizationEnabled, sessionCatalogRequestsEnabled, sessionGroupCatalog, sessionLiveStateEnabled, sortBy, sourceType, channelGroupingEnabled, ungroupedLabel, searchQuery, expanded: controlledExpanded, expansionRequest, temporarilyCollapsed, dragHandleProps, autoExpandKey, forceAutoExpand, onExpandedChange, renderSessions, renderSession, pendingSession, mapSession, showSessionDetails, headerActions, overviewEnabled, overviewMenuOpen, overviewItems, gitBranchWanted, sessionStats, onRenameGroup, onDeleteGroup, renameGroupLabel, deleteGroupLabel, groupActionsDisabled, excludePinned, limitSessions, editingSessionId, isPinnedSectionMember, onOpenPathLocally, onOpenTerminalLocally, onOpenGitDiff, onOpenCommit, }: WorkspaceSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
141
147
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DaemonClient } from '@qwen-code/sdk/daemon';
|
|
2
|
+
export declare function useWorkspaceOrder({ client, scope, primaryWorkspaceCwd, serverEnabled, onError, }: {
|
|
3
|
+
client: Pick<DaemonClient, 'getWorkspaceOrder' | 'setWorkspaceOrder'>;
|
|
4
|
+
scope: string;
|
|
5
|
+
primaryWorkspaceCwd: string | undefined;
|
|
6
|
+
serverEnabled: boolean;
|
|
7
|
+
onError: (error: unknown) => void;
|
|
8
|
+
}): {
|
|
9
|
+
order: string[];
|
|
10
|
+
canReorder: boolean;
|
|
11
|
+
saveOrder: (next: string[]) => Promise<void>;
|
|
12
|
+
};
|
|
@@ -10,3 +10,4 @@ export declare function orderWorkspaces<T extends {
|
|
|
10
10
|
}>(workspaces: readonly T[], order: readonly string[]): T[];
|
|
11
11
|
/** Swaps `cwd` with its neighbour; `undefined` when the move is out of range. */
|
|
12
12
|
export declare function moveWorkspace(orderedCwds: readonly string[], cwd: string, direction: -1 | 1): string[] | undefined;
|
|
13
|
+
export declare function reorderWorkspace(orderedCwds: readonly string[], cwd: string, targetCwd: string, after: boolean): string[] | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "success" | "destructive" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
7
|
asChild?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
5
|
-
size?: "default" | "
|
|
4
|
+
variant?: "default" | "link" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
type ButtonProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -38,6 +38,6 @@ export declare function getWorkflowModeControlState({ workflowMode, workflowMode
|
|
|
38
38
|
updateFailed: string;
|
|
39
39
|
clickToTurnOff: string;
|
|
40
40
|
};
|
|
41
|
-
status: "
|
|
41
|
+
status: "ready" | "unbound" | "unknown" | "syncing";
|
|
42
42
|
pending: boolean;
|
|
43
43
|
} | null;
|
|
@@ -33,6 +33,12 @@ export interface AgentMentionSession {
|
|
|
33
33
|
sessionId: string;
|
|
34
34
|
/** Unset: the hook's own `cwd`. */
|
|
35
35
|
workspaceCwd?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Releases a detached session client. The daemon closes an idle session
|
|
38
|
+
* when its last client detaches, so this must run only after the mention
|
|
39
|
+
* posts — the hook calls it in its finally.
|
|
40
|
+
*/
|
|
41
|
+
release?: () => void;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* An @-mention the daemon accepted but deferred behind a running main-model
|
|
@@ -16,6 +16,8 @@ export declare function getHostClient(origin: string): DaemonClient;
|
|
|
16
16
|
export declare const HOST_FANOUT_POLL_MS = 30000;
|
|
17
17
|
export interface HostCapabilitiesState {
|
|
18
18
|
workspaces: DaemonCapabilities['workspaces'];
|
|
19
|
+
/** Feature tags of the same round, for consumers that gate UI per host. */
|
|
20
|
+
features: DaemonCapabilities['features'] | undefined;
|
|
19
21
|
status: HostConnectionStatus;
|
|
20
22
|
/** Bumps on every content-changed refresh so poll consumers resubscribe. */
|
|
21
23
|
generation: number;
|
|
@@ -551,11 +551,44 @@ export interface WebShellCustomization {
|
|
|
551
551
|
renderComposerToolbarStart?: ComposerToolbarStartRenderer;
|
|
552
552
|
renderComposerToolbarEnd?: ComposerToolbarEndRenderer;
|
|
553
553
|
renderComposerToolbarRight?: ComposerToolbarRightRenderer;
|
|
554
|
+
/**
|
|
555
|
+
* The host already renders its own add ("+") entry in
|
|
556
|
+
* `renderComposerToolbarStart`. Hides the built-in composer AddMenu in the
|
|
557
|
+
* main, split-pane, and managed composers, and the touch composer's
|
|
558
|
+
* commands trigger (slash icon, "All commands" label), so the two entries
|
|
559
|
+
* do not sit side by side.
|
|
560
|
+
*
|
|
561
|
+
* Workflow loses its menu entry with the menu, so the default-variant
|
|
562
|
+
* toolbar carries a switch for it instead. That switch drives both
|
|
563
|
+
* directions and is disabled only while the host reports no usable state
|
|
564
|
+
* (unbound, syncing, unknown, a pending write, no change handler, or
|
|
565
|
+
* unavailable with nothing requested); when Workflow is requested but
|
|
566
|
+
* currently unavailable, the switch stays enabled so the preference can
|
|
567
|
+
* still be turned off.
|
|
568
|
+
*
|
|
569
|
+
* `composerVariant: 'simple'` does not render the composer toolbar leading
|
|
570
|
+
* area where this switch lives — the host's own
|
|
571
|
+
* `renderComposerToolbarStart` is skipped there as well — so that variant
|
|
572
|
+
* has no Workflow fallback, and setting this flag only takes its built-in
|
|
573
|
+
* menu away. The flag is meant for the default variant.
|
|
574
|
+
*
|
|
575
|
+
* Unlike leaving `addMenu` out of `composerToolbarActions`, which only
|
|
576
|
+
* reaches the main composer, this flag applies to every composer's
|
|
577
|
+
* built-in menu.
|
|
578
|
+
*/
|
|
579
|
+
hostOwnsAddMenu?: boolean;
|
|
554
580
|
renderComposerHeader?: ComposerHeaderRenderer;
|
|
555
581
|
renderComposerFooter?: ComposerFooterRenderer;
|
|
556
582
|
renderFooter?: FooterRenderer;
|
|
557
583
|
compactThinking?: boolean;
|
|
558
584
|
hostOwnsEditDiffPreview?: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* The embedding host claims right-panel open requests and may render artifact
|
|
587
|
+
* previews itself. Managed-storage artifacts have no content in the default
|
|
588
|
+
* panel (metadata only), so the card only promises Preview for them when this
|
|
589
|
+
* is set; otherwise it keeps the generic Open.
|
|
590
|
+
*/
|
|
591
|
+
hostOwnsArtifactPreview?: boolean;
|
|
559
592
|
/**
|
|
560
593
|
* Auto-collapse each completed turn's intermediate steps (thinking, tool
|
|
561
594
|
* calls, mid-turn assistant text) behind a toggle on the prompt row, leaving
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
export { DaemonSessionProvider, useDaemonActions, useDaemonActiveTodoList, useDaemonConnection, useDaemonPendingPermissions, useDaemonPromptStatus, useDaemonSessionNotices, useDaemonSessionOwnerGuard, useDaemonStreamingState, useDaemonSession, useDaemonTranscriptBlocks, useDaemonTranscriptHistory, useDaemonTranscriptState, useDaemonTranscriptStore, useDaemonTurnNavigationState, useDaemonTurnNavigationStore, useDaemonWorkspaceEventSignals, extractDaemonTodosFromToolBlock, hasDaemonActiveTodos, isDaemonSubAgentToolBlock, parseDaemonTodoItemsFromEntries, selectDaemonActiveTodoList, selectDaemonLatestTodoList, selectDaemonPendingPermissions, selectDaemonSubAgentToolBlocks, selectDaemonStreamingState, selectDaemonTodoLists, selectDaemonTranscriptStreamingState, isMissingSessionHttpStatus, toDaemonPromptContent, } from './session/index.js';
|
|
7
7
|
export type { DaemonCommandInfo, DaemonConnectionState, DaemonConnectionStatus, DaemonModelInfo, DaemonProductSessionContext, DaemonStandaloneConnectionState, DaemonNoticeCategory, DaemonNoticeOperation, DaemonNoticeSeverity, DaemonPromptFile, DaemonPromptImage, DaemonPromptStatus, DaemonReasoningControls, DaemonWorkflowMode, DaemonWorkflowModeStatus, DaemonSessionActions, DaemonSessionContextValue, DaemonSessionNotice, DaemonSessionOwnerGuard, DaemonSessionOwnerSnapshot, DaemonSessionProviderProps, DaemonTranscriptHistory, DaemonPromptAdmission, DaemonProvisionalTurn, DaemonSelectedTurnState, DaemonTurnIndexPage, DaemonTurnLocation, DaemonTurnNavigationClient, DaemonTurnNavigationError, DaemonTurnNavigationSession, DaemonTurnNavigationSnapshot, DaemonTurnNavigationStore, HistoricalTranscriptPage, HistoricalTranscriptRange, TranscriptBoundary, DaemonTokenUsage, DaemonTodoItem, DaemonTodoList, DaemonTodoPriority, DaemonTodoStatus, DaemonStreamingState, DaemonWorkspaceEventSignals, PendingPromptActionOptions, SendPromptOptions, SubmitPromptOptions, SubmitPromptResult, } from './session/index.js';
|
|
8
8
|
export { DaemonWorkspaceProvider, useDaemonWorkspace, useDaemonWorkspaceActions, useOptionalDaemonWorkspace, useDaemonAgents, useDaemonAuth, useDaemonChannels, useDaemonChannelEvents, useDaemonDiagnostics, useDaemonFiles, useDaemonGlob, useDaemonMcp, useDaemonMemory, useDaemonResource, useDaemonSessions, useDaemonSkills, useDaemonStatusReport, useDaemonUsageDashboard, useDaemonTools, useDaemonSettings, useDaemonProviders, } from './workspace/index.js';
|
|
9
|
-
export type { DaemonDirectoryEntry, DaemonDirectoryListing, DaemonFileStat, DaemonGlobOptions, DaemonGlobResult, DaemonGoal, DaemonGoalList, DaemonAutofixPrWatch, DaemonAutofixPrWatchList, DaemonScheduledTask, DaemonScheduledTaskGateStatus, DaemonScheduledTaskRun, DaemonCreateScheduledTaskRequest, DaemonUpdateScheduledTaskRequest, DaemonResourceOptions, DaemonChannelPairingActions, DaemonChannelsResource, DaemonChannelEventEntry, DaemonChannelEventList, DaemonStatusReportOptions, DaemonUsageDashboardOptions, DaemonWorkspaceActions, DaemonWorkspaceContextValue, DaemonWorkspaceProviderProps, DaemonWorkspaceStatus, ResourceResult, ResourceState, } from './workspace/index.js';
|
|
9
|
+
export type { DaemonDirectoryEntry, DaemonDirectoryListing, DaemonFileStat, DaemonGlobOptions, DaemonGlobResult, DaemonGoal, DaemonGoalList, DaemonAutofixPrWatch, DaemonAutofixPrWatchList, DaemonScheduledTask, DaemonScheduledTaskGateStatus, DaemonScheduledTaskRun, DaemonCreateScheduledTaskRequest, DaemonUpdateScheduledTaskRequest, DaemonResourceOptions, DaemonChannelPairingActions, DaemonChannelsResource, DaemonChannelObservedContacts, DaemonChannelEventEntry, DaemonChannelEventList, DaemonStatusReportOptions, DaemonUsageDashboardOptions, DaemonWorkspaceActions, DaemonWorkspaceContextValue, DaemonWorkspaceProviderProps, DaemonWorkspaceStatus, ResourceResult, ResourceState, } from './workspace/index.js';
|
|
10
10
|
export { useDaemonFollowupSuggestion, type UseDaemonFollowupSuggestionReturn, } from './useDaemonFollowupSuggestion.js';
|
|
11
11
|
export { useDaemonMidTurnInjected } from './useDaemonMidTurnInjected.js';
|
|
12
12
|
export { getPendingPromptVersion, getPendingPromptEvents, consumePendingPromptEvents, subscribePendingPromptEvents, subscribePendingPromptVersion, } from './pendingPromptVersion.js';
|
|
@@ -60,7 +60,7 @@ export interface CreateDaemonSessionActionsArgs {
|
|
|
60
60
|
*/
|
|
61
61
|
flushTranscript: () => void;
|
|
62
62
|
getCreateSessionRequest: () => CreateSessionRequest;
|
|
63
|
-
createDetachedSession: (workspaceCwd?: string, overrides?: Pick<CreateSessionRequest, 'approvalMode' | 'sourceType' | 'worktree' | 'branch'>) => Promise<DaemonSessionClient>;
|
|
63
|
+
createDetachedSession: (workspaceCwd?: string, overrides?: Pick<CreateSessionRequest, 'approvalMode' | 'sourceType' | 'worktree' | 'branch' | 'startupConfig'>) => Promise<DaemonSessionClient>;
|
|
64
64
|
createDetachedStandaloneSession: (overrides?: Pick<CreateSessionRequest, 'approvalMode' | 'modelServiceId'>) => Promise<DaemonSessionClient>;
|
|
65
65
|
getDefaultSessionContext: () => DaemonProductSessionContext | undefined;
|
|
66
66
|
getClient?: () => DaemonClient | undefined;
|
|
@@ -6,5 +6,6 @@
|
|
|
6
6
|
export declare function extractHttpStatus(error: unknown): number | undefined;
|
|
7
7
|
export declare function isInvalidClientIdError(error: unknown): boolean;
|
|
8
8
|
export declare function isAcpChildCapacityError(error: unknown): boolean;
|
|
9
|
+
export declare function isSessionLimitExceededError(error: unknown): boolean;
|
|
9
10
|
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
10
11
|
export declare function isRecoverableAcpCapacityError(error: unknown): boolean;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2026 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { DaemonCapabilities, DaemonSession } from '@qwen-code/sdk/daemon';
|
|
6
|
+
import type { DaemonCapabilities, DaemonSessionClient, DaemonSession } from '@qwen-code/sdk/daemon';
|
|
7
7
|
import type { DaemonProductSessionContext, DaemonStandaloneConnectionState } from './types.js';
|
|
8
8
|
export declare function resolveProviderSessionContext(sessionContext: DaemonProductSessionContext | undefined, workspaceCwd: string | undefined, inheritedWorkspaceCwd: string | undefined): DaemonProductSessionContext | undefined;
|
|
9
9
|
export declare function resolveActionSessionContext(sessionContext: DaemonProductSessionContext | undefined, workspaceCwd: string | undefined, fallback: DaemonProductSessionContext | undefined): DaemonProductSessionContext | undefined;
|
|
@@ -25,3 +25,5 @@ export declare function getDaemonErrorCode(error: unknown): string | undefined;
|
|
|
25
25
|
export declare function isSessionWriterBlockedCode(code: string | undefined): boolean;
|
|
26
26
|
export declare function isDaemonErrorExplicitlyNonRetryable(error: unknown): boolean;
|
|
27
27
|
export declare function getStandaloneConnectionState(session: DaemonSession | undefined): DaemonStandaloneConnectionState | undefined;
|
|
28
|
+
export declare function isStandaloneDaemonSession(session: DaemonSession | undefined): boolean;
|
|
29
|
+
export declare function daemonClientSessionContext(client: DaemonSessionClient | undefined): DaemonProductSessionContext | undefined;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { ReactNode } from 'react';
|
|
7
|
-
import type { CreateSessionRequest, DaemonBranchSessionRequest, DaemonCapabilities, DaemonBackgroundTurn, DaemonEvent, DaemonApprovalMode, DaemonApprovalModeResult, DaemonAvailableCommand, DaemonForkSessionResult, DaemonInputAnnotation, DaemonSessionBtwResult, DaemonSessionGenerationEvent, DaemonSessionAttachmentReference, DaemonSessionAttachmentData, DaemonMidTurnMessageResult, DaemonMidTurnMessagesResult, DaemonRemoveMidTurnMessageResult, DaemonSendMidTurnMessagesNowResult, DaemonPendingPromptsResult, DaemonRemovePendingPromptResult, DaemonSessionContextStatus, DaemonSessionSavedWorkflowDetail, DaemonSessionContextUsageStatus, DaemonSessionRecapResult, DaemonRewindResult, DaemonRewindSnapshotInfo, DaemonSession, DaemonSessionSummary, DaemonSessionSupportedCommandsStatus, DaemonSessionTaskRuntimeStatus, DaemonSessionTaskWithWorkflowStatus, DaemonSessionTasksStatus, DaemonSessionWorkflowTaskStatus, DaemonSessionWorkflowTasksStatus, DaemonSessionStatsStatus, DaemonSessionArtifactsEnvelope, DaemonSessionArtifactInput, DaemonSessionArtifactMutationResult, SessionSourceInput, SessionSourcesResult, SessionSourceUpsertResult, SessionSourceRemoveResult, DaemonSkillToggleMutation, DaemonShellCommandResult, DaemonTranscriptBlock, DaemonTranscriptStore, DaemonWorkspaceGitStatus, DaemonWorkspaceProvidersStatus, DaemonStandaloneCreationRecovery, DaemonStandaloneWorkingDirectory, HeartbeatResult, GoalControlRequest, GoalSnapshotV2, GoalStateResponse, PermissionResponse, PromptContentBlock, PromptResult, ReasoningSelection, SessionMetadataResult, SetModelResult } from '@qwen-code/sdk/daemon';
|
|
7
|
+
import type { CreateSessionRequest, DaemonBranchSessionRequest, DaemonCapabilities, DaemonBackgroundTurn, DaemonEvent, DaemonApprovalMode, DaemonApprovalModeResult, DaemonAvailableCommand, DaemonForkSessionResult, DaemonInputAnnotation, DaemonSessionBtwResult, DaemonSessionGenerationEvent, DaemonSessionAttachmentReference, DaemonSessionAttachmentData, DaemonMidTurnMessageResult, DaemonMidTurnMessagesResult, DaemonRemoveMidTurnMessageResult, DaemonSendMidTurnMessagesNowResult, DaemonPendingPromptsResult, DaemonRemovePendingPromptResult, DaemonSessionContextStatus, DaemonSessionSavedWorkflowDetail, DaemonSessionContextUsageStatus, DaemonSessionRecapResult, DaemonRewindResult, DaemonRewindSnapshotInfo, DaemonSession, DaemonSessionClient, DaemonSessionSummary, DaemonSessionSupportedCommandsStatus, DaemonSessionTaskRuntimeStatus, DaemonSessionTaskWithWorkflowStatus, DaemonSessionTasksStatus, DaemonSessionWorkflowTaskStatus, DaemonSessionWorkflowTasksStatus, DaemonSessionStatsStatus, DaemonSessionArtifactsEnvelope, DaemonSessionArtifactInput, DaemonSessionArtifactMutationResult, SessionSourceInput, SessionSourcesResult, SessionSourceUpsertResult, SessionSourceRemoveResult, DaemonSkillToggleMutation, DaemonShellCommandResult, DaemonTranscriptBlock, DaemonTranscriptStore, DaemonWorkspaceGitStatus, DaemonWorkspaceProvidersStatus, DaemonStandaloneCreationRecovery, DaemonStandaloneWorkingDirectory, HeartbeatResult, GoalControlRequest, GoalSnapshotV2, GoalStateResponse, PermissionResponse, PromptContentBlock, PromptResult, ReasoningSelection, SessionMetadataResult, SetModelResult } from '@qwen-code/sdk/daemon';
|
|
8
8
|
export type DaemonConnectionStatus = 'idle' | 'connecting' | 'connected' | 'disconnected' | 'error';
|
|
9
9
|
export interface DaemonSessionOwnerSnapshot {
|
|
10
10
|
isCurrent(): boolean;
|
|
@@ -84,6 +84,11 @@ export interface DaemonConnectionState {
|
|
|
84
84
|
/** Authoritative Goal v2 state for the current session. */
|
|
85
85
|
goalState?: GoalSnapshotV2;
|
|
86
86
|
backgroundTurn?: DaemonBackgroundTurn;
|
|
87
|
+
/** Browser-owned send, including the gap before an authoritative user echo. */
|
|
88
|
+
localPrompt?: {
|
|
89
|
+
sessionId: string;
|
|
90
|
+
startedAt: number;
|
|
91
|
+
};
|
|
87
92
|
/** Stops a lagging live-state snapshot from reviving the finished execution. */
|
|
88
93
|
finishedBackgroundTurnId?: string;
|
|
89
94
|
/** Local monotonic time; orders background events against live-state requests. */
|
|
@@ -394,6 +399,14 @@ export interface DaemonSessionActions {
|
|
|
394
399
|
* enqueue prompts without waiting for the current turn to complete.
|
|
395
400
|
*/
|
|
396
401
|
submitPrompt(text: string, options?: SubmitPromptOptions): Promise<SubmitPromptResult>;
|
|
402
|
+
/**
|
|
403
|
+
* Admission-only dispatch to a session created for a first prompt whose
|
|
404
|
+
* submitter navigated away during creation. The client is not the
|
|
405
|
+
* provider's current session: nothing is written to the transcript store,
|
|
406
|
+
* prompt status, or connection. The turn runs on the daemon after the
|
|
407
|
+
* client detaches; a later loadSession attaches fresh.
|
|
408
|
+
*/
|
|
409
|
+
sendDetachedPrompt(session: DaemonSessionClient, text: string, options?: Pick<SendPromptOptions, 'submittedPrompt' | 'images' | 'files' | 'inputAnnotations' | 'retry' | 'onAdmissionStarted' | 'onAdmitted'>): Promise<SubmitPromptResult>;
|
|
397
410
|
cancel(): Promise<void>;
|
|
398
411
|
setModel(modelId: string): Promise<SetModelResult>;
|
|
399
412
|
refreshModels(beforeRefresh?: (target: {
|
|
@@ -445,12 +458,20 @@ export interface DaemonSessionActions {
|
|
|
445
458
|
* `options.modelServiceId` is a standalone-only atomic create override.
|
|
446
459
|
*
|
|
447
460
|
* `options.sourceType` records immutable creator attribution.
|
|
461
|
+
*
|
|
462
|
+
* `options.keepOnNavigation` is for first-prompt creation: when the user
|
|
463
|
+
* navigates away while the detached create is in flight, return the created
|
|
464
|
+
* client without binding the connection instead of detaching it and
|
|
465
|
+
* throwing, so the caller can still dispatch the submitted prompt.
|
|
466
|
+
* `options.navigationOutcome` reports whether the connection was bound
|
|
467
|
+
* (`bound: false` only on the keepOnNavigation path).
|
|
448
468
|
*/
|
|
449
469
|
createSession(options?: {
|
|
450
470
|
workspaceCwd?: string;
|
|
451
471
|
getCurrentWorkspaceCwd?: () => string | undefined;
|
|
452
472
|
sessionContext?: DaemonProductSessionContext;
|
|
453
473
|
modelServiceId?: string;
|
|
474
|
+
startupConfig?: CreateSessionRequest['startupConfig'];
|
|
454
475
|
approvalMode?: DaemonApprovalMode;
|
|
455
476
|
sourceType?: string;
|
|
456
477
|
worktree?: {
|
|
@@ -459,6 +480,18 @@ export interface DaemonSessionActions {
|
|
|
459
480
|
branch?: {
|
|
460
481
|
name: string;
|
|
461
482
|
};
|
|
483
|
+
keepOnNavigation?: boolean;
|
|
484
|
+
navigationOutcome?: {
|
|
485
|
+
bound: boolean;
|
|
486
|
+
};
|
|
487
|
+
/**
|
|
488
|
+
* Draft generation that started this creation, with a live reader. A
|
|
489
|
+
* later create resets the shared navigation markers, so the bind
|
|
490
|
+
* decision also compares generations: a new draft means the originating
|
|
491
|
+
* submission was superseded even when the view looks session-less again.
|
|
492
|
+
*/
|
|
493
|
+
sourceVersion?: number;
|
|
494
|
+
getCurrentSourceVersion?: () => number;
|
|
462
495
|
}): Promise<DaemonSession>;
|
|
463
496
|
attachSession(): Promise<void>;
|
|
464
497
|
clearSession(options?: {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
export { DaemonWorkspaceProvider, useDaemonWorkspace, useDaemonWorkspaceActions, useOptionalDaemonWorkspace, } from './DaemonWorkspaceProvider.js';
|
|
7
|
-
export type { DaemonDirectoryEntry, DaemonDirectoryListing, DaemonFileStat, DaemonGlobOptions, DaemonGlobResult, DaemonGoal, DaemonGoalList, DaemonAutofixPrWatch, DaemonAutofixPrWatchList, DaemonScheduledTask, DaemonScheduledTaskGateStatus, DaemonScheduledTaskRun, DaemonCreateScheduledTaskRequest, DaemonUpdateScheduledTaskRequest, DaemonResourceOptions, DaemonChannelPairingActions, DaemonChannelsResource, DaemonChannelEventEntry, DaemonChannelEventList, DaemonWorkspaceActions, DaemonWorkspaceContextValue, DaemonWorkspaceProviderProps, DaemonWorkspaceStatus, ResourceResult, ResourceState, } from './types.js';
|
|
7
|
+
export type { DaemonDirectoryEntry, DaemonDirectoryListing, DaemonFileStat, DaemonGlobOptions, DaemonGlobResult, DaemonGoal, DaemonGoalList, DaemonAutofixPrWatch, DaemonAutofixPrWatchList, DaemonScheduledTask, DaemonScheduledTaskGateStatus, DaemonScheduledTaskRun, DaemonCreateScheduledTaskRequest, DaemonUpdateScheduledTaskRequest, DaemonResourceOptions, DaemonChannelPairingActions, DaemonChannelsResource, DaemonChannelObservedContacts, DaemonChannelEventEntry, DaemonChannelEventList, DaemonWorkspaceActions, DaemonWorkspaceContextValue, DaemonWorkspaceProviderProps, DaemonWorkspaceStatus, ResourceResult, ResourceState, } from './types.js';
|
|
8
8
|
export { useDaemonAgents, useDaemonAuth, useDaemonChannels, useDaemonChannelEvents, CHANNEL_EVENTS_RELOAD_MS, useDaemonDiagnostics, useDaemonFiles, useDaemonGlob, useDaemonMcp, useDaemonMemory, useDaemonResource, useDaemonSessions, useDaemonSkills, useDaemonStatusReport, useDaemonUsageDashboard, useDaemonTools, useDaemonSettings, useDaemonProviders, } from './hooks/index.js';
|
|
9
9
|
export type { DaemonStatusReportOptions } from './hooks/index.js';
|
|
10
10
|
export type { DaemonUsageDashboardOptions } from './hooks/index.js';
|