@qwen-code/web-shell 0.27.4 → 0.28.0-nightly.20261120.19b31401f5
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/NOTICES.txt +464 -0
- package/README.md +4 -3
- package/dist/{PierreFilePreview-BMd8Nqyr.js → PierreFilePreview-CfXrxlQc.js} +1 -1
- package/dist/{SpreadsheetPreview-MnZX4z-A.js → SpreadsheetPreview-BPurJ_TG.js} +11 -11
- package/dist/{WorkspaceFileBrowser-CvJS8MdL.js → WorkspaceFileBrowser-SyFKPQPx.js} +189 -189
- package/dist/WorkspacePdfRangePreview-CsiD3ccc.js +22384 -0
- package/dist/agents-route-V3vhM8Gj.js +1746 -0
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/i18n-ru-CfZvlNRX.js +4399 -0
- package/dist/i18n-zh-cn-oYBQlyci.js +4455 -0
- package/dist/i18n-zh-tw-meIHyJiH.js +5548 -0
- package/dist/{index-ENe4NzKy.js → index-B1Jw6-bY.js} +76003 -78380
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/terminal-runtime-BQaN1NCS.js +7881 -0
- package/dist/transcript.js +14748 -14211
- package/dist/types/App.d.ts +6 -2
- package/dist/types/adapters/messageTypes.d.ts +10 -1
- package/dist/types/adapters/toolClassification.d.ts +2 -1
- package/dist/types/adapters/transcriptAdapter.d.ts +8 -0
- 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 +11 -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/RestartRecoveryPanel.d.ts +22 -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 +3 -1
- package/dist/types/components/artifacts/ArtifactPanel.d.ts +47 -2
- package/dist/types/components/artifacts/ArtifactsListPanel.d.ts +13 -0
- 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/WorkspacePdfRangePreview.d.ts +10 -0
- package/dist/types/components/artifacts/artifactUtils.d.ts +9 -5
- 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/ManagedArtifactLibraryPage.d.ts +15 -0
- package/dist/types/components/managed/ManagedSurfaceDecisionsDialog.d.ts +1 -0
- package/dist/types/components/managed/ManagedTerminalPanel.d.ts +0 -1
- package/dist/types/components/managed/ManagedWorkspaceNavigation.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 +100 -6
- package/dist/types/components/managed/java-managed-agent-client.d.ts +21 -0
- package/dist/types/components/managed/managed-agent-provider.d.ts +4 -1
- package/dist/types/components/managed/managed-artifact-library-messages.d.ts +8 -0
- package/dist/types/components/managed/managed-artifact-library-messages.transcript-stub.d.ts +8 -0
- package/dist/types/components/managed/managed-diagnostics-messages.d.ts +167 -167
- package/dist/types/components/managed/managed-extension-install.d.ts +3 -0
- 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-surface-decisions.d.ts +10 -0
- package/dist/types/components/managed/managed-task-messages.d.ts +1 -0
- package/dist/types/components/managed/managed-task-messages.transcript-stub.d.ts +1 -0
- package/dist/types/components/managed/managed-tool-result-types.d.ts +6 -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 +6 -1
- package/dist/types/components/messages/AssistantMessageRow.d.ts +13 -0
- package/dist/types/components/messages/AssistantMessageRow.transcript-stub.d.ts +6 -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/Markdown.d.ts +1 -0
- package/dist/types/components/messages/MemoryMessage.d.ts +1 -2
- package/dist/types/components/messages/ModAssistantMessage.d.ts +15 -0
- package/dist/types/components/messages/UserMessage.d.ts +5 -1
- package/dist/types/components/messages/WorkflowExecutionView.d.ts +4 -0
- package/dist/types/components/messages/hook-statistics-context.d.ts +13 -0
- package/dist/types/components/messages/hook-statistics-turns.d.ts +3 -0
- package/dist/types/components/messages/mod-rows.d.ts +53 -0
- package/dist/types/components/messages/session-link.d.ts +1 -0
- 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/streaming-tail.d.ts +8 -0
- package/dist/types/components/streaming-tail.transcript-stub.d.ts +6 -0
- package/dist/types/components/terminal/TerminalPanel.d.ts +0 -1
- package/dist/types/components/terminal/terminal-runtime.d.ts +8 -0
- package/dist/types/components/terminal/use-terminal-runtime.d.ts +6 -0
- package/dist/types/components/ui/dialog.d.ts +1 -0
- 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 +23 -2
- package/dist/types/daemon/chat-capabilities.d.ts +3 -0
- package/dist/types/daemon/chat-controller.d.ts +67 -0
- package/dist/types/daemon/chat-intents.d.ts +88 -0
- package/dist/types/daemon/permission-signals.d.ts +35 -0
- package/dist/types/daemon/session/types.d.ts +42 -2
- package/dist/types/daemon/useDaemonChatController.d.ts +15 -0
- 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/useAtMentionSources.d.ts +1 -1
- 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/useModelRefresh.d.ts +1 -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-catalogs.d.ts +3 -0
- package/dist/types/i18n-catalogs.eager.d.ts +3 -0
- package/dist/types/i18n-language.d.ts +2 -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-ru.d.ts +7 -0
- package/dist/types/i18n-zh-cn.d.ts +7 -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 +13 -2
- package/dist/types/index.d.ts +1 -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 +39 -0
- package/dist/types/settings/messages.d.ts +1 -0
- package/dist/types/settings/messages.transcript-stub.d.ts +1 -0
- package/dist/types/settings.d.ts +3 -0
- package/dist/types/subagentDetailsContext.d.ts +9 -1
- package/dist/types/trajectory/buildTimeline.d.ts +1 -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/types.d.ts +2 -0
- 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/askUserPermission.d.ts +1 -1
- 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/utils/sessionPreparation.d.ts +16 -14
- package/dist/types/vision-timeout-command.d.ts +17 -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/use-voice-workspace-settings.d.ts +1 -0
- package/dist/types/voice/useVoiceCapture.d.ts +8 -0
- package/dist/types/voice/voice-workspace-target.d.ts +1 -0
- package/dist/{useDaemonMidTurnInjected-BCExZTLK.js → useDaemonMidTurnInjected-BjQ9zxRv.js} +8475 -10940
- package/package.json +4 -1
- package/dist/agents-route-BYqfB9LM.js +0 -1727
- package/dist/types/components/managed/ManagedRecoveryPanel.d.ts +0 -9
|
@@ -8,4 +8,11 @@ export declare function useModelConfigurations(enabled: boolean): {
|
|
|
8
8
|
} | undefined;
|
|
9
9
|
loading: boolean;
|
|
10
10
|
error: Error | undefined;
|
|
11
|
+
reloadWithOutcome: () => Promise<{
|
|
12
|
+
data: {
|
|
13
|
+
models: import("@qwen-code/sdk/daemon").DaemonModelConfiguration[];
|
|
14
|
+
} | undefined;
|
|
15
|
+
superseded: boolean;
|
|
16
|
+
error?: Error;
|
|
17
|
+
}>;
|
|
11
18
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DaemonSessionActions } from '@qwen-code/web-shell/daemon-react-sdk';
|
|
2
2
|
export declare function useModelRefresh(beforeRefresh?: Parameters<DaemonSessionActions['refreshModels']>[0]): {
|
|
3
3
|
refresh: (() => Promise<void>) | undefined;
|
|
4
|
+
refreshLocal: (() => Promise<void>) | undefined;
|
|
4
5
|
refreshing: boolean;
|
|
5
6
|
error: string | undefined;
|
|
6
7
|
};
|
|
@@ -29,6 +29,7 @@ export declare function useScopedSessions(workspaceCwd: string | undefined, opti
|
|
|
29
29
|
loadSession: ((sessionId: string, options?: {
|
|
30
30
|
workspaceCwd?: string;
|
|
31
31
|
sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
|
|
32
|
+
artifactCountHint?: number;
|
|
32
33
|
}) => Promise<void>) | undefined;
|
|
33
34
|
resumeSession: ((sessionId: string, options?: {
|
|
34
35
|
workspaceCwd?: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DaemonSessionArtifact } from '@qwen-code/sdk/daemon';
|
|
2
|
-
import { type RegistrationErrorTranslator } from './useReportedArtifactRegistration';
|
|
3
2
|
export interface SessionArtifactsState {
|
|
4
3
|
artifacts: DaemonSessionArtifact[];
|
|
5
4
|
artifactById: ReadonlyMap<string, DaemonSessionArtifact>;
|
|
@@ -7,5 +6,12 @@ export interface SessionArtifactsState {
|
|
|
7
6
|
error: string | null;
|
|
8
7
|
hydrated: boolean;
|
|
9
8
|
refresh: () => Promise<void>;
|
|
9
|
+
/**
|
|
10
|
+
* Click-time artifact count from the session-list summary, valid only
|
|
11
|
+
* while no authoritative data exists for the current session (no cache
|
|
12
|
+
* entry, no keyed restored snapshot). Undefined once the load-embedded
|
|
13
|
+
* snapshot or a gated fetch lands, so a stale hint cannot outlive the load.
|
|
14
|
+
*/
|
|
15
|
+
artifactCountHint?: number;
|
|
10
16
|
}
|
|
11
|
-
export declare function useSessionArtifacts(
|
|
17
|
+
export declare function useSessionArtifacts(): SessionArtifactsState;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DaemonSessionSubSessionTaskStatus } from '@qwen-code/sdk/daemon';
|
|
2
|
+
/**
|
|
3
|
+
* The sends this session made that the daemon reports back to it (a
|
|
4
|
+
* person's `/send`, or the model's `create_sub_session` in `sent` mode).
|
|
5
|
+
* Re-read when the daemon says one started or settled, when `refreshKey`
|
|
6
|
+
* changes, and slowly while one is still running.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useSubSessionTasks(sessionId: string | undefined, enabled: boolean, refreshKey?: number): DaemonSessionSubSessionTaskStatus[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART1: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part1` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART1: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART2: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part2` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART2: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART3: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part3` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART3: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART4: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part4` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART4: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART5: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part5` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART5: {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RU_PART6: Record<string, string | ((vars?: Record<string, string | number>) => string)>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-part6` in the transcript build (`--mode transcript`).
|
|
8
|
+
* The Russian Web Shell catalog is interactive-only; exported transcripts
|
|
9
|
+
* fall back to English for these strings so every reader does not download
|
|
10
|
+
* a third full UI dictionary.
|
|
11
|
+
*/
|
|
12
|
+
export declare const RU_PART6: {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Qwen
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Stands in for `./i18n-ru-remainder` in the transcript build
|
|
8
|
+
* (`--mode transcript`). Activity, channel-events, managed-extension, and
|
|
9
|
+
* GitHub bound-action Russian copy stay in the interactive shell only.
|
|
10
|
+
*/
|
|
11
|
+
export declare const RU_REMAINDER: {};
|
package/dist/types/i18n.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
|
-
|
|
3
|
-
export type WebShellLanguage
|
|
2
|
+
import { type WebShellLanguage } from './i18n-language.js';
|
|
3
|
+
export { WEB_SHELL_LANGUAGES, type WebShellLanguage } from './i18n-language.js';
|
|
4
|
+
export type MessageValue = string | ((vars?: Record<string, string | number>) => string);
|
|
5
|
+
export type Messages = Record<string, MessageValue>;
|
|
6
|
+
/**
|
|
7
|
+
* Every local-files message key, derived from the EN catalog so the
|
|
8
|
+
* locale-parity test covers new keys automatically instead of drifting
|
|
9
|
+
* behind a hardcoded subset.
|
|
10
|
+
*/
|
|
11
|
+
export declare const LOCAL_FILES_MESSAGE_KEYS: string[];
|
|
12
|
+
export declare const RESTART_RECOVERY_MESSAGE_KEYS: string[];
|
|
13
|
+
export declare function loadLanguage(language: WebShellLanguage): Promise<void> | undefined;
|
|
4
14
|
export declare function normalizeLanguage(value: string | undefined | null): WebShellLanguage;
|
|
5
15
|
export declare function languageSettingToWebShellLanguage(value: unknown): WebShellLanguage | undefined;
|
|
6
16
|
export declare function languageLabel(language: WebShellLanguage): string;
|
|
7
17
|
export declare function getTranslator(language: WebShellLanguage): (key: string, vars?: Record<string, string | number>) => string;
|
|
18
|
+
export declare function useTranslator(language: WebShellLanguage): (key: string, vars?: Record<string, string | number>) => string;
|
|
8
19
|
export declare function I18nProvider({ language, children, }: PropsWithChildren<{
|
|
9
20
|
language: WebShellLanguage;
|
|
10
21
|
}>): import("react/jsx-runtime").JSX.Element;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { JavaManagedAgentClient, JavaManagedAgentHttpError, type JavaAgentComman
|
|
|
12
12
|
export { createJavaManagedAgentProvider, type JavaManagedAgentProviderOptions, } from './components/managed/java-managed-agent-provider';
|
|
13
13
|
export type { ManagedSideQuery, ManagedSideQueryKind, ManagedSideQueryCreate, ManagedSideQueryContext, ManagedSideQueryPage, ManagedSideQueriesProvider, } from './components/managed/managed-side-query-types';
|
|
14
14
|
export { ManagedAgentWebShell, type ManagedAgentWebShellProps, } from './ManagedAgentWebShell';
|
|
15
|
-
export type { ManagedArtifact, ManagedArtifactPage, ManagedArtifactResponse, ManagedArtifactSave, ManagedToolResult, ManagedToolResultReader, ManagedToolResultResponse, } from './components/managed/managed-tool-result-types';
|
|
15
|
+
export type { ManagedArtifact, ManagedArtifactPage, ManagedArtifactResponse, ManagedArtifactSave, ManagedToolResult, ManagedToolResultReader, ManagedToolResultResponse, ManagedWorkspaceArtifactReader, } from './components/managed/managed-tool-result-types';
|
|
16
16
|
export { type ManagedAgentCommandOptions, type ManagedAgentPendingAction, type ManagedAgentPendingPermissionAction, type ManagedAgentPendingQuestionAction, type ManagedAgentQuestionAnswer, type ManagedAgentQuestionResponse, type ManagedAgentActionResponse, type ManagedAgentProvider, type ManagedAgentRequestOptions, type ManagedAgentRuntimeState, type ManagedAgentSessionEvent, type ManagedAgentSessionEventType, type ManagedAgentSessionPhase, type ManagedAgentSessionSummary, type ManagedAgentSessionTranscript, type ManagedAgentTurnAdmission, type ManagedRuntimeNode, type ManagedWorkspaceDirectory, type ManagedWorkspaceCreateOperation, type ManagedWorkspaceRegistration, } from './components/managed/managed-agent-provider';
|
|
17
17
|
export interface WebShellWithProvidersProps extends WebShellProps {
|
|
18
18
|
/** Unmount the chat view and its portals while keeping the daemon session attached. */
|
|
@@ -13,4 +13,5 @@
|
|
|
13
13
|
type LiveMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
14
14
|
export declare const LIVE_MESSAGES_EN: Record<string, LiveMessage>;
|
|
15
15
|
export declare const LIVE_MESSAGES_ZH: Record<string, LiveMessage>;
|
|
16
|
+
export declare const LIVE_MESSAGES_RU: Record<string, LiveMessage>;
|
|
16
17
|
export {};
|
|
@@ -58,7 +58,13 @@ export declare function useLocalFilesBridge(options: UseLocalFilesBridgeOptions)
|
|
|
58
58
|
secureContext: boolean;
|
|
59
59
|
frame: import("./capabilities.js").LocalFilesFrame;
|
|
60
60
|
};
|
|
61
|
-
connect: (
|
|
61
|
+
connect: (options?: {
|
|
62
|
+
forcePicker?: boolean;
|
|
63
|
+
}) => Promise<{
|
|
64
|
+
readonly kind: "repick-failed";
|
|
65
|
+
} | {
|
|
66
|
+
readonly kind: "change-deferred";
|
|
67
|
+
} | undefined>;
|
|
62
68
|
disconnect: () => Promise<void>;
|
|
63
69
|
restore: () => Promise<void>;
|
|
64
70
|
};
|
|
@@ -24,6 +24,10 @@ export interface UseManagedLocalFilesBridgeOptions {
|
|
|
24
24
|
}
|
|
25
25
|
export declare function useManagedLocalFilesBridge(options: UseManagedLocalFilesBridgeOptions): {
|
|
26
26
|
status: LocalFilesStatus;
|
|
27
|
-
connect: (
|
|
27
|
+
connect: (options?: {
|
|
28
|
+
forcePicker?: boolean;
|
|
29
|
+
}) => Promise<{
|
|
30
|
+
kind: 'repick-failed';
|
|
31
|
+
} | undefined>;
|
|
28
32
|
disconnect: () => Promise<void>;
|
|
29
33
|
};
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type Message = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const MCP_APP_MESSAGES_EN: Record<string, Message>;
|
|
8
8
|
export declare const MCP_APP_MESSAGES_ZH: Record<string, Message>;
|
|
9
|
+
export declare const MCP_APP_MESSAGES_RU: Record<string, Message>;
|
|
9
10
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DaemonSession, DaemonMcpAppToolCall, DaemonMcpAppToolResult } from '@qwen-code/sdk/daemon';
|
|
2
|
+
import type { ViewStateStore } from './generated-ui/view-state.js';
|
|
2
3
|
export declare const McpAppHostContext: import("react").Context<string | undefined>;
|
|
3
4
|
export type McpAppToolCallRequest = DaemonMcpAppToolCall;
|
|
4
5
|
export declare const McpAppSessionContext: import("react").Context<string | undefined>;
|
|
@@ -50,6 +51,8 @@ export declare const McpAppMessagesContext: import("react").Context<McpAppMessag
|
|
|
50
51
|
export declare const McpAppToolsContext: import("react").Context<{
|
|
51
52
|
sessionId: string;
|
|
52
53
|
callTool: (request: McpAppToolCallRequest, signal: AbortSignal) => Promise<DaemonMcpAppToolResult>;
|
|
54
|
+
/** The session's saved Generated UI card state, when the daemon keeps it. */
|
|
55
|
+
viewState?: Omit<ViewStateStore, "sessionId">;
|
|
53
56
|
} | undefined>;
|
|
54
57
|
export interface McpAppGeneratedUi {
|
|
55
58
|
sessionId: string;
|
|
@@ -81,6 +84,7 @@ export interface McpAppGeneratedUiOwner {
|
|
|
81
84
|
}
|
|
82
85
|
export declare const McpAppGeneratedUiOwnerContext: import("react").Context<McpAppGeneratedUiOwner | undefined>;
|
|
83
86
|
export declare const McpAppVisibilityContext: import("react").Context<boolean>;
|
|
87
|
+
export declare const McpAppReadOnlyContext: import("react").Context<boolean>;
|
|
84
88
|
/**
|
|
85
89
|
* Whether core marked this App as the bundled Generated UI server's. Unlike
|
|
86
90
|
* {@link isBuiltInGeneratedUi}, the resource URI alone does not count: any
|
|
@@ -6,6 +6,9 @@ interface SessionCatalogHookOptions {
|
|
|
6
6
|
maxAgeMs?: number;
|
|
7
7
|
pollIntervalMs?: number;
|
|
8
8
|
}
|
|
9
|
+
interface SessionCatalogQueriesOptions extends SessionCatalogHookOptions {
|
|
10
|
+
pollQueries?: (query: SessionCatalogQuery, index: number) => boolean;
|
|
11
|
+
}
|
|
9
12
|
export interface WebShellSessionsOptions extends SessionCatalogHookOptions {
|
|
10
13
|
sortBy?: 'updatedAt' | 'lastUserPromptAt';
|
|
11
14
|
pageSize?: number;
|
|
@@ -32,7 +35,7 @@ export declare function useSessionCatalogQuery(client: DaemonClient, query: Sess
|
|
|
32
35
|
error?: Error;
|
|
33
36
|
updatedAt?: number;
|
|
34
37
|
};
|
|
35
|
-
export declare function useSessionCatalogQueries(client: DaemonClient, queries: readonly SessionCatalogQuery[], options?:
|
|
38
|
+
export declare function useSessionCatalogQueries(client: DaemonClient, queries: readonly SessionCatalogQuery[], options?: SessionCatalogQueriesOptions): readonly SessionCatalogSnapshot[];
|
|
36
39
|
/**
|
|
37
40
|
* Whether the daemon reports a prompt in flight for `sessionId`, together with
|
|
38
41
|
* whether that answer is allowed to *settle* a running turn.
|
|
@@ -101,6 +104,7 @@ export declare function useWebShellSessions(options?: WebShellSessionsOptions):
|
|
|
101
104
|
loadSession: ((sessionId: string, options?: {
|
|
102
105
|
workspaceCwd?: string;
|
|
103
106
|
sessionContext?: import("@qwen-code/web-shell/daemon-react-sdk").DaemonProductSessionContext;
|
|
107
|
+
artifactCountHint?: number;
|
|
104
108
|
}) => Promise<void>) | undefined;
|
|
105
109
|
resumeSession: ((sessionId: string, options?: {
|
|
106
110
|
workspaceCwd?: string;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { DaemonSessionSummary } from '@qwen-code/sdk/daemon';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this session is known to be doing work that closing it would end.
|
|
4
|
+
*
|
|
5
|
+
* Archive and delete both tear the live session down, so background tasks
|
|
6
|
+
* count alongside a turn: a row that advertises background work must not also
|
|
7
|
+
* offer the action that kills it. The sidebar row and its menus, both sidebar
|
|
8
|
+
* eligibility checks, the standalone archive handler, the recent rows, the
|
|
9
|
+
* delete dialog, the Session Overview card actions and the Activity archive
|
|
10
|
+
* confirmation all read this predicate, so they cannot disagree about what
|
|
11
|
+
* "still working" means.
|
|
12
|
+
*
|
|
13
|
+
* Deliberately narrower than the side-task archive gate, which also fails
|
|
14
|
+
* closed on the `unknown` and `unsupported` grades: this predicate answers
|
|
15
|
+
* "is work known to be running", and an unreported grade is not knowledge of
|
|
16
|
+
* work. Folding that rule in here would block archive and delete on every
|
|
17
|
+
* session whose child has gone quiet — a different policy decision.
|
|
18
|
+
*
|
|
19
|
+
* `hasRunningBackgroundTasks` is cleared to undefined for any row missing from
|
|
20
|
+
* live-state, so it is read as `=== true`. A `!== false` test would block the
|
|
21
|
+
* action on every not-live row.
|
|
22
|
+
*/
|
|
23
|
+
export declare function hasLiveWork(session: DaemonSessionSummary): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Whether Delete must be refused for this session.
|
|
26
|
+
*
|
|
27
|
+
* Background work blocks any row: the delete route has no idle guard, so
|
|
28
|
+
* confirming would kill work the row advertises. Other live work blocks only
|
|
29
|
+
* the session this client is attached to, whose runtime the delete tears down
|
|
30
|
+
* (#12619); a turn running in some other session stays deletable, which is the
|
|
31
|
+
* policy the sidebar row already applies.
|
|
32
|
+
*
|
|
33
|
+
* `isCurrent` is supplied by the caller rather than derived here, because each
|
|
34
|
+
* surface has its own notion of it: the sidebar compares workspace-qualified
|
|
35
|
+
* identity and lets the recent/standalone adapters override it, while the
|
|
36
|
+
* delete dialog compares session ids. Deriving it from an id here would
|
|
37
|
+
* silently narrow the sidebar's comparison.
|
|
38
|
+
*/
|
|
39
|
+
export declare function sessionBlocksDelete(session: DaemonSessionSummary, isCurrent: boolean): boolean;
|
|
@@ -13,4 +13,5 @@
|
|
|
13
13
|
type SettingsMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
14
14
|
export declare const SETTINGS_MESSAGES_EN: Record<string, SettingsMessage>;
|
|
15
15
|
export declare const SETTINGS_MESSAGES_ZH: Record<string, SettingsMessage>;
|
|
16
|
+
export declare const SETTINGS_MESSAGES_RU: Record<string, SettingsMessage>;
|
|
16
17
|
export {};
|
package/dist/types/settings.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ declare const SETTING_KEYS: {
|
|
|
31
31
|
readonly 'setting:advisor-model': "advisorModel";
|
|
32
32
|
readonly 'setting:advisor-session-call-limit': "advisorMaxUses";
|
|
33
33
|
readonly 'setting:vision-model': "visionModel";
|
|
34
|
+
readonly 'setting:vision-bridge-timeout': "visionBridgeTimeoutMs";
|
|
34
35
|
readonly 'setting:model-fallbacks': "modelFallbacks";
|
|
35
36
|
readonly 'setting:respect-git-ignore': "context.fileFiltering.respectGitIgnore";
|
|
36
37
|
readonly 'setting:respect-qwen-ignore': "context.fileFiltering.respectQwenIgnore";
|
|
@@ -63,8 +64,10 @@ declare const SETTING_KEYS: {
|
|
|
63
64
|
readonly 'setting:omni-media-delivery': "omni.enabled";
|
|
64
65
|
readonly 'setting:artifacts': "experimental.artifact";
|
|
65
66
|
readonly 'setting:tool-use-summaries': "experimental.emitToolUseSummaries";
|
|
67
|
+
readonly 'setting:mods': "experimental.mods";
|
|
66
68
|
readonly 'setting:unified-agent-loop': "experimental.unifiedAgentLoop";
|
|
67
69
|
readonly 'setting:event-bus-agent-loop': "experimental.eventBusAgentLoop";
|
|
70
|
+
readonly 'setting:model-availability-tracking': "experimental.modelAvailabilityTracking";
|
|
68
71
|
readonly 'setting:voice-model': "voiceModel";
|
|
69
72
|
readonly 'setting:image-model': "imageModel";
|
|
70
73
|
};
|
|
@@ -2,13 +2,21 @@ import type { DaemonBackgroundTurn } from '@qwen-code/sdk/daemon';
|
|
|
2
2
|
import { type ReactNode } from 'react';
|
|
3
3
|
import type { ACPToolCall } from './adapters/types';
|
|
4
4
|
export type OpenSubagentDetails = (tool: ACPToolCall, parentSessionId?: string) => void;
|
|
5
|
+
/** Another session to open, from a turn its reply started. */
|
|
6
|
+
export interface OpenSessionRequest {
|
|
7
|
+
sessionId: string;
|
|
8
|
+
workspaceCwd?: string;
|
|
9
|
+
title: string;
|
|
10
|
+
}
|
|
5
11
|
interface SubagentDetailsContextValue {
|
|
6
12
|
onOpen: OpenSubagentDetails;
|
|
7
13
|
onOpenBackground?: (turn: DaemonBackgroundTurn) => void;
|
|
14
|
+
onOpenSession?: (request: OpenSessionRequest) => void;
|
|
8
15
|
}
|
|
9
|
-
export declare function SubagentDetailsProvider({ onOpen, onOpenBackground, children, }: {
|
|
16
|
+
export declare function SubagentDetailsProvider({ onOpen, onOpenBackground, onOpenSession, children, }: {
|
|
10
17
|
onOpen: OpenSubagentDetails;
|
|
11
18
|
onOpenBackground?: (turn: DaemonBackgroundTurn) => void;
|
|
19
|
+
onOpenSession?: (request: OpenSessionRequest) => void;
|
|
12
20
|
children: ReactNode;
|
|
13
21
|
}): import("react/jsx-runtime").JSX.Element;
|
|
14
22
|
export declare function useSubagentDetails(): SubagentDetailsContextValue | undefined;
|
|
@@ -14,7 +14,7 @@ export interface TimelineSpan {
|
|
|
14
14
|
/** Offset into the compressed domain, ms. */
|
|
15
15
|
start: number;
|
|
16
16
|
end: number;
|
|
17
|
-
/** Requests
|
|
17
|
+
/** Requests only: where the first visible output landed. */
|
|
18
18
|
ttftEnd?: number;
|
|
19
19
|
error: boolean;
|
|
20
20
|
}
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type ExecutionMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const TRAJECTORY_EXECUTION_MESSAGES_EN: Record<string, ExecutionMessage>;
|
|
8
8
|
export declare const TRAJECTORY_EXECUTION_MESSAGES_ZH: Record<string, ExecutionMessage>;
|
|
9
|
+
export declare const TRAJECTORY_EXECUTION_MESSAGES_RU: Record<string, ExecutionMessage>;
|
|
9
10
|
export {};
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type FilterMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const TRAJECTORY_FILTER_MESSAGES_EN: Record<string, FilterMessage>;
|
|
8
8
|
export declare const TRAJECTORY_FILTER_MESSAGES_ZH: Record<string, FilterMessage>;
|
|
9
|
+
export declare const TRAJECTORY_FILTER_MESSAGES_RU: Record<string, FilterMessage>;
|
|
9
10
|
export {};
|
|
@@ -24,4 +24,4 @@ export declare function projectHistoricalLifecycle(events: readonly DaemonEvent[
|
|
|
24
24
|
export declare function projectTrajectoryLifecycle(history: ReturnType<typeof projectHistoricalLifecycle>, trajectory: Trajectory | undefined, identity: {
|
|
25
25
|
sessionId: string;
|
|
26
26
|
scope?: string;
|
|
27
|
-
} | undefined, live: TrajectoryLiveSnapshot): TrajectoryLifecycleProjection;
|
|
27
|
+
} | undefined, live: Omit<TrajectoryLiveSnapshot, 'hooks' | 'hookPromptIds'>): TrajectoryLifecycleProjection;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { type DaemonEvent, type ExecutionLifecycleState, type ToolLifecycleState } from '@qwen-code/sdk/daemon';
|
|
6
|
+
import { type HookLifecycleState, type DaemonEvent, type ExecutionLifecycleState, type ToolLifecycleState } from '@qwen-code/sdk/daemon';
|
|
7
7
|
export interface TrajectoryLiveSnapshot {
|
|
8
8
|
readonly sessionId?: string;
|
|
9
9
|
readonly scope?: string;
|
|
@@ -13,6 +13,8 @@ export interface TrajectoryLiveSnapshot {
|
|
|
13
13
|
readonly reason?: string;
|
|
14
14
|
readonly requests: ExecutionLifecycleState;
|
|
15
15
|
readonly tools: ToolLifecycleState;
|
|
16
|
+
readonly hooks: HookLifecycleState;
|
|
17
|
+
readonly hookPromptIds: ReadonlyMap<string, string>;
|
|
16
18
|
readonly incomplete: boolean;
|
|
17
19
|
readonly truncated: boolean;
|
|
18
20
|
}
|
|
@@ -49,6 +49,8 @@ export interface TrajectoryTiming {
|
|
|
49
49
|
startedAt?: number;
|
|
50
50
|
/** Requests only: dispatch to first user-visible content. */
|
|
51
51
|
ttftMs?: number;
|
|
52
|
+
/** Requests only: request start to first user-visible content. */
|
|
53
|
+
firstVisibleOffsetMs?: number;
|
|
52
54
|
}
|
|
53
55
|
/** What a subagent spent, rolled up onto the tool call that spawned it. */
|
|
54
56
|
export interface TrajectorySubagentSummary {
|
|
@@ -6,4 +6,5 @@
|
|
|
6
6
|
type WindowMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
7
|
export declare const TRAJECTORY_WINDOW_MESSAGES_EN: Record<string, WindowMessage>;
|
|
8
8
|
export declare const TRAJECTORY_WINDOW_MESSAGES_ZH: Record<string, WindowMessage>;
|
|
9
|
+
export declare const TRAJECTORY_WINDOW_MESSAGES_RU: Record<string, WindowMessage>;
|
|
9
10
|
export {};
|
|
@@ -10,7 +10,7 @@ import type { PermissionRequest } from '../adapters/types.js';
|
|
|
10
10
|
* rather than a normal tool-call approval. Shared by the single-session App and
|
|
11
11
|
* the split-view ChatPane so the two never drift.
|
|
12
12
|
*/
|
|
13
|
-
export declare function isAskUserPermission(request: PermissionRequest | null): boolean;
|
|
13
|
+
export declare function isAskUserPermission(request: Pick<PermissionRequest, 'rawInput' | 'toolName'> | null): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* Language-neutral snapshot of a pending AskUserQuestion payload — numbered
|
|
16
16
|
* questions with their option labels and descriptions — for embedding in the
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
|
|
1
|
+
import type { DaemonSessionSubSessionTaskStatus, DaemonSessionTaskWithWorkflowStatus } from '@qwen-code/sdk/daemon';
|
|
2
|
+
/** A task the chip row can show: the child's own, or a send it made. */
|
|
3
|
+
export type ComposerChipTask = DaemonSessionTaskWithWorkflowStatus | DaemonSessionSubSessionTaskStatus;
|
|
2
4
|
/**
|
|
3
5
|
* Tasks that belong to THIS session's live background state — what the
|
|
4
6
|
* composer chip row draws from and the environment panel lists.
|
|
@@ -14,10 +16,10 @@ export declare function isComposerTask(task: DaemonSessionTaskWithWorkflowStatus
|
|
|
14
16
|
kind: 'agent';
|
|
15
17
|
}>;
|
|
16
18
|
/** The kinds the composer chip row groups live tasks under, in display order. */
|
|
17
|
-
export type ComposerTaskChipKind = 'workflow' | 'agent' | 'shell' | 'monitor';
|
|
19
|
+
export type ComposerTaskChipKind = 'workflow' | 'agent' | 'session' | 'shell' | 'monitor';
|
|
18
20
|
export interface ComposerTaskChipGroup {
|
|
19
21
|
kind: ComposerTaskChipKind;
|
|
20
|
-
tasks:
|
|
22
|
+
tasks: ComposerChipTask[];
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Group this session's unfinished background tasks for the chip row above
|
|
@@ -25,6 +27,16 @@ export interface ComposerTaskChipGroup {
|
|
|
25
27
|
* its chip disappears, and the run stays reachable from the transcript, the
|
|
26
28
|
* environment panel and the tasks dialog.
|
|
27
29
|
*/
|
|
28
|
-
export declare function getComposerTaskChipGroups(tasks: readonly
|
|
30
|
+
export declare function getComposerTaskChipGroups(tasks: readonly ComposerChipTask[], options: {
|
|
29
31
|
includeAgents: boolean;
|
|
30
32
|
}): ComposerTaskChipGroup[];
|
|
33
|
+
export declare function explainDisplayLabel(label: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* Compose the side question the composer's "?" affordance asks about a
|
|
36
|
+
* background task. The facts come from the client's task snapshot; the
|
|
37
|
+
* forked side-question agent adds the conversation context the snapshot
|
|
38
|
+
* cannot carry (why the task was started). Fact labels stay English — they
|
|
39
|
+
* are model input, not UI text — while the instruction follows the UI
|
|
40
|
+
* language so the answer does too.
|
|
41
|
+
*/
|
|
42
|
+
export declare function buildTaskExplainQuestion(task: DaemonSessionTaskWithWorkflowStatus, t: (key: string, vars?: Record<string, string | number>) => string): string;
|