@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
|
@@ -8,7 +8,6 @@ export declare function useManagedRecovery(provider: ManagedAgentProvider, clien
|
|
|
8
8
|
actions: import("./generated/managed-agent-api").components["schemas"]["SessionRecoveryActions"];
|
|
9
9
|
nextRecheckAt?: number;
|
|
10
10
|
} | undefined;
|
|
11
|
-
|
|
11
|
+
canSend: boolean | undefined;
|
|
12
12
|
error: string | undefined;
|
|
13
|
-
recheck: () => Promise<void>;
|
|
14
13
|
};
|
|
@@ -5,3 +5,4 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const MESSAGE_DELETION_MESSAGES_EN: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
7
7
|
export declare const MESSAGE_DELETION_MESSAGES_ZH: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
8
|
+
export declare const MESSAGE_DELETION_MESSAGES_RU: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type WebShellAssistantFeedbackRating, type WebShellAssistantTurnFooterRenderInfo, type WebShellSource } from '../../customization';
|
|
2
2
|
import type { DaemonSessionGenerationEvent, QwenAgentMessageMeta } from '@qwen-code/sdk/daemon';
|
|
3
3
|
import type { DaemonMessageAuthor } from '../../adapters/messageTypes';
|
|
4
|
+
import type { HookStatisticsTurn } from './hook-statistics-context';
|
|
4
5
|
interface AssistantMessageProps {
|
|
6
|
+
hookTurn?: HookStatisticsTurn;
|
|
5
7
|
content: string;
|
|
6
8
|
author?: DaemonMessageAuthor;
|
|
7
9
|
/** A workspace agent's reply: its run status, error, steps and tokens. */
|
|
@@ -2,6 +2,12 @@ interface BtwMessageProps {
|
|
|
2
2
|
question: string;
|
|
3
3
|
answer: string;
|
|
4
4
|
isPending: boolean;
|
|
5
|
+
/** Task explanations are button-triggered, not a typed /btw command. */
|
|
6
|
+
hidePrefix?: boolean;
|
|
7
|
+
/** The detail-panel mirror has no focusable surface of its own, so the
|
|
8
|
+
* composer panel's key hints would advertise keys that act on whatever
|
|
9
|
+
* control holds focus (Enter on the header "?" re-asks). */
|
|
10
|
+
hideShortcuts?: boolean;
|
|
5
11
|
}
|
|
6
12
|
export declare const BtwMessage: import("react").NamedExoticComponent<BtwMessageProps>;
|
|
7
13
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type DaemonContextFileScope } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
2
|
interface MemoryMessageProps {
|
|
3
|
-
refreshSignal?: number;
|
|
4
3
|
addSignal?: number;
|
|
5
4
|
addScope?: DaemonContextFileScope;
|
|
6
5
|
onMessage?: (message: string, type?: 'status' | 'error') => void;
|
|
7
6
|
}
|
|
8
|
-
export declare function MemoryMessage({
|
|
7
|
+
export declare function MemoryMessage({ addSignal, addScope, onMessage, }: MemoryMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DaemonInputAnnotation } from '@qwen-code/sdk/daemon';
|
|
1
|
+
import type { DaemonInputAnnotation, DaemonInputSourceAnnotation, SessionMessageTarget } from '@qwen-code/sdk/daemon';
|
|
2
2
|
import type { ComposerTagClickHandler, ComposerTagRenderer, WebShellComposerTag, WebShellComposerTagIconMap } from '../../customization';
|
|
3
3
|
import type { AttachmentPreviewRequest, DaemonMessageAuthor } from '../../adapters/messageTypes';
|
|
4
4
|
import type { ImageTabSource } from '../artifacts/ArtifactPanel';
|
|
@@ -34,6 +34,10 @@ interface UserMessageProps {
|
|
|
34
34
|
onAttachmentPreview?: (file: AttachmentPreviewRequest) => void;
|
|
35
35
|
/** Set when a workspace agent, not the user, posted this message. */
|
|
36
36
|
author?: DaemonMessageAuthor;
|
|
37
|
+
/** Set when another session sent this message here. */
|
|
38
|
+
sentFrom?: DaemonInputSourceAnnotation;
|
|
39
|
+
/** Set when the user sent this message to another session with `/send`. */
|
|
40
|
+
sentTo?: SessionMessageTarget;
|
|
37
41
|
}
|
|
38
42
|
export declare const UserMessage: import("react").NamedExoticComponent<UserMessageProps>;
|
|
39
43
|
export declare function ReadonlyComposerTag({ tag, composerTagIcons, renderComposerTag, renderComposerTagTooltip, onComposerTagClick, title, preserveCustomKindLabel, }: {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HookTurnPage, DaemonSessionTurnHooksPageOptions } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { DaemonTurnNavigationStore } from '../../daemon/session/turn-navigation-store.js';
|
|
3
|
+
export interface HookStatisticsTurn {
|
|
4
|
+
sessionId: string;
|
|
5
|
+
promptId?: string;
|
|
6
|
+
recordId?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface HookStatisticsSource {
|
|
9
|
+
sessionId: string;
|
|
10
|
+
navigation: DaemonTurnNavigationStore;
|
|
11
|
+
readPage(promptId: string, options: DaemonSessionTurnHooksPageOptions): Promise<HookTurnPage>;
|
|
12
|
+
}
|
|
13
|
+
export declare const HookStatisticsContext: import("react").Context<HookStatisticsSource | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function openSessionLink(target: string): void;
|
|
@@ -24,6 +24,12 @@ interface EnvironmentPanelProps {
|
|
|
24
24
|
onRetryAttachments?: () => void;
|
|
25
25
|
artifacts?: readonly DaemonSessionArtifact[];
|
|
26
26
|
artifactsLoading?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Monotonic counter bumped by the header artifact entry. Each change forces
|
|
29
|
+
* the artifacts section open, so clicking the entry reveals the list even
|
|
30
|
+
* when the user had collapsed the section (the panel hides, not unmounts).
|
|
31
|
+
*/
|
|
32
|
+
artifactsExpandSignal?: number;
|
|
27
33
|
items?: readonly WebShellEnvironmentPanelItem[];
|
|
28
34
|
onOpenGitDiff?: () => void;
|
|
29
35
|
onOpenGitCommit?: () => void;
|
|
@@ -49,5 +55,5 @@ export type EnvironmentAgentTask = DaemonSessionAgentTaskStatus & {
|
|
|
49
55
|
* off the same set, so the dot cannot promise a row the panel shows settled.
|
|
50
56
|
*/
|
|
51
57
|
export declare function isTaskInProgress(status: DaemonSessionTaskWithWorkflowStatus['status']): boolean;
|
|
52
|
-
export declare function EnvironmentPanel({ sources, onOpenSource, retrySourceRegistration, floating, hidden, workspaceCwd, gitWorkspaceCwd, gitCwd, gitSessionId, branch, gitStatus, tasks, agentTasks, attachments, attachmentsLoading, attachmentsError, onRetryAttachments, artifacts, artifactsLoading, items, onOpenGitDiff, onOpenGitCommit, onOpenGitWorktrees, onOpenGitLog, onOpenAgent, onOpenAgentWorkflow, onOpenTask, onReadImage, onImagePreview, onAttachmentPreview, onAttachmentPreviewError, onOpenArtifact, onDismiss, }: EnvironmentPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
export declare function EnvironmentPanel({ sources, onOpenSource, retrySourceRegistration, floating, hidden, workspaceCwd, gitWorkspaceCwd, gitCwd, gitSessionId, branch, gitStatus, tasks, agentTasks, attachments, attachmentsLoading, attachmentsError, onRetryAttachments, artifacts, artifactsLoading, artifactsExpandSignal, items, onOpenGitDiff, onOpenGitCommit, onOpenGitWorktrees, onOpenGitLog, onOpenAgent, onOpenAgentWorkflow, onOpenTask, onReadImage, onImagePreview, onAttachmentPreview, onAttachmentPreviewError, onOpenArtifact, onDismiss, }: EnvironmentPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
53
59
|
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
3
|
+
import { type ActivityEntry } from './activity-model';
|
|
4
|
+
import type { SessionSort } from './SessionSortMenu';
|
|
5
|
+
export type ActivityDateGroupId = 'today' | 'thisWeek' | 'last30Days' | 'older';
|
|
6
|
+
export declare function groupActivityDateSessions(entries: readonly ActivityEntry[], sortBy: SessionSort, now?: number): Array<{
|
|
7
|
+
id: ActivityDateGroupId;
|
|
8
|
+
entries: ActivityEntry[];
|
|
9
|
+
}>;
|
|
10
|
+
interface ActivityDateSessionsProps {
|
|
11
|
+
entries: readonly ActivityEntry[];
|
|
12
|
+
sortBy: SessionSort;
|
|
13
|
+
loading: boolean;
|
|
14
|
+
unavailable: boolean;
|
|
15
|
+
hasMore: boolean;
|
|
16
|
+
onRetry: () => void;
|
|
17
|
+
renderSession: (entry: ActivityEntry) => ReactNode;
|
|
18
|
+
editingSessionIdentity?: string | null;
|
|
19
|
+
sessionIdentity: (session: DaemonSessionSummary) => string;
|
|
20
|
+
}
|
|
21
|
+
export declare function ActivityDateSessions({ entries, sortBy, loading, unavailable, hasMore, onRetry, renderSession, editingSessionIdentity, sessionIdentity, }: ActivityDateSessionsProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -7,7 +7,9 @@ export interface SessionGroupSectionProps {
|
|
|
7
7
|
expanded: boolean;
|
|
8
8
|
color?: DaemonSessionGroupColor;
|
|
9
9
|
icon?: ReactNode;
|
|
10
|
-
children
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
itemCount?: number;
|
|
12
|
+
renderChildren?: (visibleCount: number) => ReactNode;
|
|
11
13
|
onToggle: () => void;
|
|
12
14
|
onRename?: () => void;
|
|
13
15
|
onDelete?: () => void;
|
|
@@ -16,4 +18,4 @@ export interface SessionGroupSectionProps {
|
|
|
16
18
|
actionsDisabled?: boolean;
|
|
17
19
|
limitSessions?: boolean;
|
|
18
20
|
}
|
|
19
|
-
export declare function SessionGroupSection({ label, count, expanded, color, icon, children, onToggle, onRename, onDelete, renameLabel, deleteLabel, actionsDisabled, limitSessions, }: SessionGroupSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function SessionGroupSection({ label, count, expanded, color, icon, children, itemCount, renderChildren, onToggle, onRename, onDelete, renameLabel, deleteLabel, actionsDisabled, limitSessions, }: SessionGroupSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
import type { DaemonWorkspaceCapability } from '@qwen-code/sdk/daemon';
|
|
1
2
|
export type SessionSort = 'updatedAt' | 'lastUserPromptAt';
|
|
3
|
+
export type SessionGroupBy = 'workspace' | 'activityDate';
|
|
4
|
+
export type WorkspaceFilter = 'all' | 'standalone' | `workspace:${string}`;
|
|
2
5
|
export declare function readSessionSort(host: string): SessionSort;
|
|
3
6
|
export declare function writeSessionSort(host: string, sort: SessionSort): void;
|
|
4
|
-
export declare function
|
|
7
|
+
export declare function readSessionGroupBy(host: string): SessionGroupBy;
|
|
8
|
+
export declare function writeSessionGroupBy(host: string, groupBy: SessionGroupBy): void;
|
|
9
|
+
export declare function readWorkspaceFilter(host: string): WorkspaceFilter;
|
|
10
|
+
export declare function writeWorkspaceFilter(host: string, filter: WorkspaceFilter): void;
|
|
11
|
+
export declare function SessionSortMenu({ value, onChange, workspaceValue, onWorkspaceChange, groupValue, onGroupChange, groupEnabled, workspaces, sortEnabled, triggerClassName, }: {
|
|
5
12
|
value: SessionSort;
|
|
6
13
|
onChange: (value: SessionSort) => void;
|
|
14
|
+
workspaceValue: WorkspaceFilter;
|
|
15
|
+
onWorkspaceChange: (value: WorkspaceFilter) => void;
|
|
16
|
+
groupValue: SessionGroupBy;
|
|
17
|
+
onGroupChange: (value: SessionGroupBy) => void;
|
|
18
|
+
groupEnabled: boolean;
|
|
19
|
+
workspaces: readonly DaemonWorkspaceCapability[];
|
|
20
|
+
sortEnabled?: boolean;
|
|
7
21
|
triggerClassName?: string;
|
|
8
22
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -102,7 +102,7 @@ interface WebShellSidebarProps {
|
|
|
102
102
|
onNewSession: (workspaceCwd?: string) => Promise<boolean> | boolean;
|
|
103
103
|
onNewStandaloneSession?: () => Promise<boolean> | boolean;
|
|
104
104
|
standaloneSessionsReloadToken?: number;
|
|
105
|
-
onLoadSession: (sessionId: string, workspaceCwd?: string) => Promise<void> | void;
|
|
105
|
+
onLoadSession: (sessionId: string, workspaceCwd?: string, artifactCount?: number) => Promise<void> | void;
|
|
106
106
|
/**
|
|
107
107
|
* Opens a session listed by a fan-out host group (#13727): the caller
|
|
108
108
|
* focuses that host in-app and loads the session there. When absent, the
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type Message = string | ((vars?: Record<string, string | number>) => string);
|
|
2
2
|
export declare const ACTIVITY_MESSAGES_EN: Record<string, Message>;
|
|
3
3
|
export declare const ACTIVITY_MESSAGES_ZH: Record<string, Message>;
|
|
4
|
+
export declare const ACTIVITY_MESSAGES_RU: Record<string, Message>;
|
|
4
5
|
export {};
|
|
@@ -20,7 +20,7 @@ export declare function activityRecency({ session }: ActivityEntry): number;
|
|
|
20
20
|
export declare function isActivityUnread(entry: ActivityEntry): boolean;
|
|
21
21
|
export declare function activityState(entry: ActivityEntry): ActivityState;
|
|
22
22
|
export declare function activityNeedsAttention(entry: ActivityEntry): boolean;
|
|
23
|
-
export declare function isActivityEligible(entry: ActivityEntry, preferences: ActivityPreferences): boolean;
|
|
23
|
+
export declare function isActivityEligible(entry: ActivityEntry, preferences: ActivityPreferences, includeChildren?: boolean): boolean;
|
|
24
24
|
export declare function openActivitySnapshot(entries: ActivityEntry[], preferences: ActivityPreferences, now?: number): ActivitySnapshot;
|
|
25
25
|
export declare function updateActivitySnapshot(snapshot: ActivitySnapshot, entries: ActivityEntry[], preferences: ActivityPreferences): ActivitySnapshot;
|
|
26
26
|
export declare function clearReadActivitySnapshot(snapshot: ActivitySnapshot, entries: ActivityEntry[], preferences: ActivityPreferences): ActivitySnapshot;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
3
3
|
declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare
|
|
4
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Trigger>>>;
|
|
5
5
|
declare function DrawerPortal({ container, ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare const DrawerOverlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -60,21 +60,29 @@ export declare function joinCommands(address: string, join: JoinToken): {
|
|
|
60
60
|
/**
|
|
61
61
|
* A join that went through, as the dialog sees it: whether the computer that
|
|
62
62
|
* joined saved the connection. A `saveError` means it will not reconnect
|
|
63
|
-
* after a restart or a workspace reload.
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
63
|
+
* after a restart or a workspace reload. The notice advises a rerun only on
|
|
64
|
+
* `recorded: true`: the credential then records this join's token, so the
|
|
65
|
+
* same join again goes on. Absent means unknown (an older daemon), and
|
|
66
|
+
* `recorded: false` means the rerun can be refused; neither earns the
|
|
67
|
+
* advice. `workspaceCwd`, from a remote connect: the workspace the remote
|
|
68
|
+
* answered from, which its runtime reports too. `false` is a connect that
|
|
69
|
+
* failed and was already reported elsewhere; a failed join throws instead.
|
|
67
70
|
*/
|
|
68
71
|
export type RuntimeJoinOutcome = false | {
|
|
69
72
|
saveError?: string;
|
|
70
73
|
workspaceCwd?: string;
|
|
74
|
+
recorded?: boolean;
|
|
71
75
|
};
|
|
72
76
|
/**
|
|
73
77
|
* Reads a `hosts/connect` answer, which `hosts/remote-connect` passes on. An
|
|
74
|
-
* older daemon sends no `saved` field; it always claimed the save.
|
|
78
|
+
* older daemon sends no `saved` field; it always claimed the save. Nor
|
|
79
|
+
* `recorded`; absent means unknown, not recorded, and the notice then drops
|
|
80
|
+
* the remedy: a released daemon aborts the live connection on a token-bearing
|
|
81
|
+
* rerun and refuses the spent token.
|
|
75
82
|
*/
|
|
76
83
|
export declare function joinOutcome(answer: unknown): {
|
|
77
84
|
saveError?: string;
|
|
85
|
+
recorded?: boolean;
|
|
78
86
|
};
|
|
79
87
|
/**
|
|
80
88
|
* The dialog's "I have its address and token" callback over `run`, which
|
|
@@ -13,4 +13,5 @@
|
|
|
13
13
|
type CollabMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
14
14
|
export declare const COLLAB_MESSAGES_EN: Record<string, CollabMessage>;
|
|
15
15
|
export declare const COLLAB_MESSAGES_ZH: Record<string, CollabMessage>;
|
|
16
|
+
export declare const COLLAB_MESSAGES_RU: Record<string, CollabMessage>;
|
|
16
17
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Neutral mirror of the SDK's permission-mode vocabulary, for shared
|
|
3
|
+
* composer code that must not value-import the daemon SDK. The parity test
|
|
4
|
+
* pins this list against `DAEMON_APPROVAL_MODES`; update both together.
|
|
5
|
+
*/
|
|
6
|
+
export declare const APPROVAL_MODES: readonly ["plan", "default", "auto-edit", "auto", "yolo"];
|
|
7
|
+
export type ApprovalMode = (typeof APPROVAL_MODES)[number];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommandInfo } from '../adapters/types';
|
|
2
|
-
import type
|
|
2
|
+
import { type useI18n } from '../i18n';
|
|
3
3
|
type Translate = ReturnType<typeof useI18n>['t'];
|
|
4
4
|
/**
|
|
5
5
|
* Commands that should always appear in the slash-command completion menu,
|
|
@@ -10,6 +10,8 @@ type Translate = ReturnType<typeof useI18n>['t'];
|
|
|
10
10
|
export declare function getLocalCommands(t: Translate, options?: {
|
|
11
11
|
sideTaskAvailable?: boolean;
|
|
12
12
|
subscriptionAvailable?: boolean;
|
|
13
|
+
/** The daemon accepts `/send` (`session_sub_session_send`). */
|
|
14
|
+
sendAvailable?: boolean;
|
|
13
15
|
}): CommandInfo[];
|
|
14
16
|
/**
|
|
15
17
|
* i18n key for a known skill's localized menu description, or undefined for a
|
|
@@ -18,6 +18,7 @@ export declare const SESSION_TURN_NAVIGATION_FEATURE = "session_turn_navigation"
|
|
|
18
18
|
export declare const SESSION_TIMELINE_MIN_VISIBLE_ENTRIES = 4;
|
|
19
19
|
export declare const SESSION_MONITOR_TOOL_CORRELATION_FEATURE = "session_monitor_tool_correlation";
|
|
20
20
|
export declare const SESSION_SIDE_TASK_FEATURE = "session_side_task";
|
|
21
|
+
export declare const SESSION_SUB_SESSION_SEND_FEATURE = "session_sub_session_send";
|
|
21
22
|
export declare const WEB_SHELL_SESSION_SOURCE_TYPE = "default";
|
|
22
23
|
export declare const WEB_SHELL_SIDE_TASK_SOURCE_TYPE = "side_task";
|
|
23
24
|
export declare const WEB_SHELL_HISTORY_PAGE_SIZE = 200;
|
|
@@ -136,14 +136,14 @@ export interface ToolHeaderExtraRenderInfo {
|
|
|
136
136
|
export type ToolHeaderExtraRenderer = (info: ToolHeaderExtraRenderInfo) => ReactNode;
|
|
137
137
|
export type WelcomeHeaderRenderer = (props: WelcomeHeaderProps) => ReactNode;
|
|
138
138
|
export type WelcomeFooterRenderer = (props: WelcomeHeaderProps) => ReactNode;
|
|
139
|
-
export type WebShellChatHeaderItem = 'title' | 'environment' | 'rightPanel' | 'tokenUsage' | 'contextUsage';
|
|
139
|
+
export type WebShellChatHeaderItem = 'title' | 'environment' | 'rightPanel' | 'artifacts' | 'tokenUsage' | 'contextUsage';
|
|
140
140
|
export interface WebShellChatHeaderOptions {
|
|
141
141
|
/** Show the mobile-access QR entry in chat headers. Defaults to false. */
|
|
142
142
|
showMobileAccess?: boolean;
|
|
143
143
|
/** Built-in header actions to show. Token and context usage are opt-in. */
|
|
144
144
|
items?: readonly WebShellChatHeaderItem[];
|
|
145
145
|
}
|
|
146
|
-
export type WebShellRightPanelItem = 'files' | 'review' | 'sideTask' | 'terminal' | 'webPreview' | 'trajectory';
|
|
146
|
+
export type WebShellRightPanelItem = 'files' | 'review' | 'sideTask' | 'terminal' | 'webPreview' | 'trajectory' | 'changeOverview';
|
|
147
147
|
export interface WebShellRightPanelOptions {
|
|
148
148
|
/** Empty-state actions to show. Defaults to review and sideTask. */
|
|
149
149
|
items?: readonly WebShellRightPanelItem[];
|
|
@@ -181,6 +181,14 @@ export interface ChatHeaderRenderInfo {
|
|
|
181
181
|
onOpenTokenUsage?: () => void;
|
|
182
182
|
/** Opens context usage for the current session, when available. */
|
|
183
183
|
onOpenContextUsage?: () => void;
|
|
184
|
+
/**
|
|
185
|
+
* Number of session artifacts. Published together with `onOpenArtifacts`
|
|
186
|
+
* only when the artifacts section can actually be opened, so a count never
|
|
187
|
+
* appears without a way to act on it.
|
|
188
|
+
*/
|
|
189
|
+
artifactCount?: number;
|
|
190
|
+
/** Opens the environment panel's artifacts section, when available. */
|
|
191
|
+
onOpenArtifacts?: () => void;
|
|
184
192
|
/** Opens Settings deep-linked to Local Control (Daemon category). */
|
|
185
193
|
onOpenLocalControlSettings?: () => void;
|
|
186
194
|
}
|
|
@@ -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, DaemonSessionClient, DaemonSessionPrInfo, 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, DaemonWorktreeBranchResult, DaemonWorktreeHandoffResult, 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, DaemonSessionPrInfo, DaemonSessionSummary, DaemonSessionSupportedCommandsStatus, DaemonSessionTaskRuntimeStatus, DaemonSessionTaskWithWorkflowStatus, DaemonSessionTasksStatus, DaemonSessionWorkflowTaskStatus, DaemonSessionWorkflowTasksStatus, DaemonSessionStatsStatus, DaemonSessionArtifact, 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;
|
|
@@ -104,6 +104,32 @@ export interface DaemonConnectionState {
|
|
|
104
104
|
loadingTranscript?: boolean;
|
|
105
105
|
/** True while replaying buffered events after a reconnect. */
|
|
106
106
|
catchingUp?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Restored artifact snapshot embedded in the load response. Available before
|
|
109
|
+
* the replay renders so a session-level artifact entry can appear early;
|
|
110
|
+
* live updates still come from the gated artifact fetch.
|
|
111
|
+
*/
|
|
112
|
+
restoredArtifacts?: DaemonSessionArtifact[];
|
|
113
|
+
/**
|
|
114
|
+
* Session the restoredArtifacts snapshot belongs to. The optimistic session
|
|
115
|
+
* switch moves sessionId before the new restore lands, so consumers must
|
|
116
|
+
* only use the snapshot when this matches the current sessionId — otherwise
|
|
117
|
+
* the previous session's artifacts leak under the new one.
|
|
118
|
+
*/
|
|
119
|
+
restoredArtifactsSessionId?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Artifact count captured from the session-list summary at click time, so
|
|
122
|
+
* the header artifact entry can show it before the load response lands.
|
|
123
|
+
* A hint only: the load-embedded snapshot and the gated fetch supersede it,
|
|
124
|
+
* and the provider clears it once authoritative data commits.
|
|
125
|
+
*/
|
|
126
|
+
artifactCountHint?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Session the artifactCountHint belongs to. Same keying contract as
|
|
129
|
+
* restoredArtifactsSessionId: consumers must only use the hint when this
|
|
130
|
+
* matches the current sessionId.
|
|
131
|
+
*/
|
|
132
|
+
artifactCountHintSessionId?: string;
|
|
107
133
|
error?: string;
|
|
108
134
|
/** Latest HTTP error status kept for diagnostics; use missingSession for UI. */
|
|
109
135
|
errorStatus?: number;
|
|
@@ -239,7 +265,7 @@ export type DaemonPromptSettledListener = (event: DaemonPromptSettledEvent) => v
|
|
|
239
265
|
export type DaemonPromptSettlementSubscribe = (listener: DaemonPromptSettledListener) => () => void;
|
|
240
266
|
export type DaemonNoticeSeverity = 'info' | 'warning' | 'error';
|
|
241
267
|
export type DaemonNoticeCategory = 'validation' | 'user_action' | 'connection' | 'protocol' | 'lifecycle' | 'system';
|
|
242
|
-
export type DaemonNoticeOperation = 'send_prompt' | 'continue_session' | 'send_shell_command' | 'switch_model' | 'set_reasoning_effort' | 'set_workflow_mode' | 'set_approval_mode' | 'submit_permission' | 'cancel_prompt' | 'attach_session' | 'load_session' | 'resume_session' | 'create_session' | 'close_session' | 'rename_session' | 'bind_session_pr' | 'release_session' | 'list_sessions' | 'load_context' | 'load_context_usage' | 'load_tasks' | 'load_artifacts' | 'read_attachment' | 'remove_attachment' | 'cancel_task' | 'control_workflow' | 'run_saved_workflow' | 'read_saved_workflow' | 'load_goal' | 'control_goal' | 'clear_goal' | 'load_stats' | 'rewind_snapshots' | 'rewind_session' | 'refresh_commands' | 'recap_session' | 'generate_session_content' | 'btw_session' | 'branch_session' | 'fork_session' | 'record_session' | 'stream' | 'normalize_event';
|
|
268
|
+
export type DaemonNoticeOperation = 'send_prompt' | 'continue_session' | 'send_shell_command' | 'switch_model' | 'set_reasoning_effort' | 'set_workflow_mode' | 'set_approval_mode' | 'submit_permission' | 'cancel_prompt' | 'attach_session' | 'load_session' | 'resume_session' | 'create_session' | 'close_session' | 'rename_session' | 'bind_session_pr' | 'release_session' | 'list_sessions' | 'load_context' | 'load_context_usage' | 'load_tasks' | 'load_artifacts' | 'read_attachment' | 'remove_attachment' | 'cancel_task' | 'control_workflow' | 'run_saved_workflow' | 'read_saved_workflow' | 'load_goal' | 'control_goal' | 'clear_goal' | 'load_stats' | 'rewind_snapshots' | 'rewind_session' | 'refresh_commands' | 'recap_session' | 'generate_session_content' | 'btw_session' | 'branch_session' | 'create_worktree_branch' | 'handoff_worktree' | 'fork_session' | 'record_session' | 'stream' | 'normalize_event';
|
|
243
269
|
export interface DaemonSessionNotice {
|
|
244
270
|
id: string;
|
|
245
271
|
severity: DaemonNoticeSeverity;
|
|
@@ -328,6 +354,8 @@ export interface PendingPromptActionOptions {
|
|
|
328
354
|
}
|
|
329
355
|
export interface GetTasksActionOptions {
|
|
330
356
|
silent?: boolean;
|
|
357
|
+
/** Also list the sends the daemon reports back to this session. */
|
|
358
|
+
includeSubSessions?: boolean;
|
|
331
359
|
}
|
|
332
360
|
export interface DaemonPromptImage {
|
|
333
361
|
data: string;
|
|
@@ -433,6 +461,9 @@ export interface DaemonSessionActions {
|
|
|
433
461
|
loadSession(sessionId: string, options?: {
|
|
434
462
|
workspaceCwd?: string;
|
|
435
463
|
sessionContext?: DaemonProductSessionContext;
|
|
464
|
+
/** Artifact count from the clicked session's list summary, shown in
|
|
465
|
+
* the header entry before the load response lands. Omit when unknown. */
|
|
466
|
+
artifactCountHint?: number;
|
|
436
467
|
}): Promise<void>;
|
|
437
468
|
/** `memory` replay is reserved for the provider's live-journal repair. */
|
|
438
469
|
reloadSession(signal: AbortSignal, options?: {
|
|
@@ -640,6 +671,10 @@ export interface DaemonSessionActions {
|
|
|
640
671
|
switchStarted: boolean;
|
|
641
672
|
sourceWarnings?: string[];
|
|
642
673
|
}>;
|
|
674
|
+
/** "Create branch here" on the session's detached managed worktree. */
|
|
675
|
+
createWorktreeBranch(name: string): Promise<DaemonWorktreeBranchResult>;
|
|
676
|
+
/** "Hand off" between the managed worktree and the local checkout. */
|
|
677
|
+
handoffWorktree(to: 'local' | 'worktree'): Promise<DaemonWorktreeHandoffResult>;
|
|
643
678
|
forkSession(directive: string): Promise<DaemonForkSessionResult>;
|
|
644
679
|
}
|
|
645
680
|
export interface DaemonSessionContextValue {
|
|
@@ -660,6 +695,11 @@ export interface DaemonWorkspaceEventSignals {
|
|
|
660
695
|
extensionsVersion: number;
|
|
661
696
|
artifactsVersion: number;
|
|
662
697
|
sourcesVersion?: number;
|
|
698
|
+
/**
|
|
699
|
+
* Per caller session: how many times a send it made that the daemon
|
|
700
|
+
* reports back started or settled. Re-read its sub-session tasks on change.
|
|
701
|
+
*/
|
|
702
|
+
subSessionTaskVersions?: Record<string, number>;
|
|
663
703
|
lastExtensionChange?: {
|
|
664
704
|
status?: 'installed' | 'enabled' | 'disabled' | 'updated' | 'uninstalled' | 'failed';
|
|
665
705
|
source?: string;
|
|
@@ -19,4 +19,9 @@ export declare function useDaemonAgents(options?: DaemonResourceOptions): {
|
|
|
19
19
|
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceAgentsStatus | undefined;
|
|
20
20
|
loading: boolean;
|
|
21
21
|
error: Error | undefined;
|
|
22
|
+
reloadWithOutcome: () => Promise<{
|
|
23
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceAgentsStatus | undefined;
|
|
24
|
+
superseded: boolean;
|
|
25
|
+
error?: Error;
|
|
26
|
+
}>;
|
|
22
27
|
};
|
|
@@ -21,4 +21,9 @@ export declare function useDaemonAuth(options?: DaemonResourceOptions): {
|
|
|
21
21
|
data: import("@qwen-code/sdk/daemon").DaemonAuthStatusSnapshot | undefined;
|
|
22
22
|
loading: boolean;
|
|
23
23
|
error: Error | undefined;
|
|
24
|
+
reloadWithOutcome: () => Promise<{
|
|
25
|
+
data: import("@qwen-code/sdk/daemon").DaemonAuthStatusSnapshot | undefined;
|
|
26
|
+
superseded: boolean;
|
|
27
|
+
error?: Error;
|
|
28
|
+
}>;
|
|
24
29
|
};
|
|
@@ -27,5 +27,10 @@ export declare function useDaemonChannelEvents(options?: DaemonChannelEventsOpti
|
|
|
27
27
|
reload: () => Promise<ChannelEventsSnapshot | undefined>;
|
|
28
28
|
loading: boolean;
|
|
29
29
|
error: Error | undefined;
|
|
30
|
+
reloadWithOutcome: () => Promise<{
|
|
31
|
+
data: ChannelEventsSnapshot | undefined;
|
|
32
|
+
superseded: boolean;
|
|
33
|
+
error?: Error;
|
|
34
|
+
}>;
|
|
30
35
|
};
|
|
31
36
|
export {};
|
|
@@ -5,6 +5,18 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { DaemonResourceOptions } from '../types.js';
|
|
7
7
|
export declare function useDaemonDiagnostics(options?: DaemonResourceOptions): {
|
|
8
|
-
env: import("../types.js").ResourceResult<import("@qwen-code/sdk/daemon").DaemonWorkspaceEnvStatus
|
|
9
|
-
|
|
8
|
+
env: import("../types.js").ResourceResult<import("@qwen-code/sdk/daemon").DaemonWorkspaceEnvStatus> & {
|
|
9
|
+
reloadWithOutcome: () => Promise<{
|
|
10
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceEnvStatus | undefined;
|
|
11
|
+
superseded: boolean;
|
|
12
|
+
error?: Error;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
15
|
+
preflight: import("../types.js").ResourceResult<import("@qwen-code/sdk/daemon").DaemonWorkspacePreflightStatus> & {
|
|
16
|
+
reloadWithOutcome: () => Promise<{
|
|
17
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspacePreflightStatus | undefined;
|
|
18
|
+
superseded: boolean;
|
|
19
|
+
error?: Error;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
10
22
|
};
|
|
@@ -27,5 +27,10 @@ export declare function useDaemonMcp(options?: DaemonMcpOptions): {
|
|
|
27
27
|
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMcpStatus | undefined;
|
|
28
28
|
loading: boolean;
|
|
29
29
|
error: Error | undefined;
|
|
30
|
+
reloadWithOutcome: () => Promise<{
|
|
31
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMcpStatus | undefined;
|
|
32
|
+
superseded: boolean;
|
|
33
|
+
error?: Error;
|
|
34
|
+
}>;
|
|
30
35
|
};
|
|
31
36
|
export {};
|
|
@@ -19,4 +19,9 @@ export declare function useDaemonMemory(options?: DaemonResourceOptions): {
|
|
|
19
19
|
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMemoryStatus | undefined;
|
|
20
20
|
loading: boolean;
|
|
21
21
|
error: Error | undefined;
|
|
22
|
+
reloadWithOutcome: () => Promise<{
|
|
23
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceMemoryStatus | undefined;
|
|
24
|
+
superseded: boolean;
|
|
25
|
+
error?: Error;
|
|
26
|
+
}>;
|
|
22
27
|
};
|
|
@@ -17,4 +17,9 @@ export declare function useDaemonProviders(options?: DaemonResourceOptions): {
|
|
|
17
17
|
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceProvidersStatus | undefined;
|
|
18
18
|
loading: boolean;
|
|
19
19
|
error: Error | undefined;
|
|
20
|
+
reloadWithOutcome: () => Promise<{
|
|
21
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceProvidersStatus | undefined;
|
|
22
|
+
superseded: boolean;
|
|
23
|
+
error?: Error;
|
|
24
|
+
}>;
|
|
20
25
|
};
|
|
@@ -4,4 +4,10 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import type { DaemonResourceOptions, ResourceResult } from '../types.js';
|
|
7
|
-
export declare function useDaemonResource<T>(load: () => Promise<T>, options: DaemonResourceOptions): ResourceResult<T
|
|
7
|
+
export declare function useDaemonResource<T>(load: () => Promise<T>, options: DaemonResourceOptions): ResourceResult<T> & {
|
|
8
|
+
reloadWithOutcome: () => Promise<{
|
|
9
|
+
data: T | undefined;
|
|
10
|
+
superseded: boolean;
|
|
11
|
+
error?: Error;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
@@ -24,6 +24,7 @@ export declare function useDaemonSessions(options?: DaemonSessionsOptions): {
|
|
|
24
24
|
loadSession: ((sessionId: string, options?: {
|
|
25
25
|
workspaceCwd?: string;
|
|
26
26
|
sessionContext?: import("../../index.js").DaemonProductSessionContext;
|
|
27
|
+
artifactCountHint?: number;
|
|
27
28
|
}) => Promise<void>) | undefined;
|
|
28
29
|
resumeSession: ((sessionId: string, options?: {
|
|
29
30
|
workspaceCwd?: string;
|
|
@@ -45,4 +46,9 @@ export declare function useDaemonSessions(options?: DaemonSessionsOptions): {
|
|
|
45
46
|
unarchiveSession: (sessionId: string) => Promise<boolean>;
|
|
46
47
|
loading: boolean;
|
|
47
48
|
error: Error | undefined;
|
|
49
|
+
reloadWithOutcome: () => Promise<{
|
|
50
|
+
data: import("@qwen-code/sdk/daemon").DaemonSessionListPage | undefined;
|
|
51
|
+
superseded: boolean;
|
|
52
|
+
error?: Error;
|
|
53
|
+
}>;
|
|
48
54
|
};
|
|
@@ -17,4 +17,9 @@ export declare function useDaemonSettings(options?: DaemonResourceOptions): {
|
|
|
17
17
|
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceSettingsStatus | undefined;
|
|
18
18
|
loading: boolean;
|
|
19
19
|
error: Error | undefined;
|
|
20
|
+
reloadWithOutcome: () => Promise<{
|
|
21
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceSettingsStatus | undefined;
|
|
22
|
+
superseded: boolean;
|
|
23
|
+
error?: Error;
|
|
24
|
+
}>;
|
|
20
25
|
};
|
|
@@ -15,4 +15,9 @@ export declare function useDaemonStatusReport(options?: DaemonStatusReportOption
|
|
|
15
15
|
data: import("@qwen-code/sdk/daemon").DaemonStatusReport | undefined;
|
|
16
16
|
loading: boolean;
|
|
17
17
|
error: Error | undefined;
|
|
18
|
+
reloadWithOutcome: () => Promise<{
|
|
19
|
+
data: import("@qwen-code/sdk/daemon").DaemonStatusReport | undefined;
|
|
20
|
+
superseded: boolean;
|
|
21
|
+
error?: Error;
|
|
22
|
+
}>;
|
|
18
23
|
};
|
|
@@ -13,4 +13,9 @@ export declare function useDaemonTools(options?: DaemonResourceOptions): {
|
|
|
13
13
|
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceToolsStatus | undefined;
|
|
14
14
|
loading: boolean;
|
|
15
15
|
error: Error | undefined;
|
|
16
|
+
reloadWithOutcome: () => Promise<{
|
|
17
|
+
data: import("@qwen-code/sdk/daemon").DaemonWorkspaceToolsStatus | undefined;
|
|
18
|
+
superseded: boolean;
|
|
19
|
+
error?: Error;
|
|
20
|
+
}>;
|
|
16
21
|
};
|