@qwen-code/web-shell 0.26.8 → 0.26.9-nightly.20261107.65e1f1aeaa
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 +5 -1
- package/dist/{PierreFilePreview-BFgHDFfb.js → PierreFilePreview-Clk83a2N.js} +1 -1
- package/dist/{SpreadsheetPreview-CeMwcgfx.js → SpreadsheetPreview-CBIcxu00.js} +2 -2
- package/dist/{WorkspaceFileBrowser-C5R9bwVy.js → WorkspaceFileBrowser-DM575ye0.js} +2 -2
- package/dist/{agents-route-BGwI44Wi.js → agents-route-D1I5pRGT.js} +2 -2
- package/dist/daemon-react-sdk.js +1 -1
- package/dist/{index-BurR4Gb3.js → index-C2GG3yyB.js} +61215 -58279
- package/dist/index.js +3 -3
- package/dist/sw.js +1 -1
- package/dist/transcript.js +8783 -8502
- 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/SessionLimitBanner.d.ts +4 -0
- package/dist/types/components/StreamingStatus.d.ts +4 -1
- package/dist/types/components/WaitingMinigame.d.ts +24 -0
- package/dist/types/components/artifacts/tool-call-content.d.ts +2 -1
- package/dist/types/components/channels/ChannelEventsPage.d.ts +7 -0
- package/dist/types/components/channels/channel-editor-state.d.ts +28 -1
- package/dist/types/components/managed/ManagedQuestionForm.d.ts +13 -0
- package/dist/types/components/managed/generated/managed-agent-api.d.ts +8 -5
- package/dist/types/components/managed/managed-agent-provider.d.ts +19 -4
- package/dist/types/components/managed/managed-question-response.d.ts +4 -0
- package/dist/types/components/managed/managed-question.test-fixtures.d.ts +2 -0
- package/dist/types/components/managed/use-managed-actions.d.ts +9 -3
- package/dist/types/components/messages/AskUserQuestion.d.ts +7 -1
- package/dist/types/components/messages/AuthMessage.d.ts +4 -1
- package/dist/types/components/messages/QwenSubscriptionPanel.d.ts +1 -1
- package/dist/types/components/messages/toolFormatting.d.ts +23 -0
- package/dist/types/components/sidebar/WorkspaceSection.d.ts +3 -1
- package/dist/types/components/skills/SkillInstallDialog.d.ts +8 -2
- package/dist/types/daemon/session/httpErrors.d.ts +1 -0
- package/dist/types/daemon/session/types.d.ts +9 -1
- package/dist/types/daemon/workspace/hooks/useDaemonSkills.d.ts +6 -2
- package/dist/types/daemon/workspace/types.d.ts +2 -1
- package/dist/types/hooks/useQueuedPrompts.d.ts +4 -1
- package/dist/types/hooks/useScopedSessions.d.ts +4 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/session-catalog/session-catalog-hooks.d.ts +1 -0
- package/dist/types/utils/askUserPermission.d.ts +7 -0
- 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-DjE4i35e.js → useDaemonMidTurnInjected-Dhe-I6yG.js} +4288 -4015
- package/package.json +2 -1
- package/dist/types/live/LiveVoiceMenuItem.d.ts +0 -9
|
@@ -12,8 +12,14 @@ import { type WebShellTheme } from './themeContext';
|
|
|
12
12
|
*/
|
|
13
13
|
type ManagedSessionsNavigationProps = Pick<ComponentProps<typeof ManagedSessionsPage>, 'navigationTarget' | 'archivedNavigationTarget' | 'onArchivedSessionsStatusChange' | 'navigationActive' | 'navigationSearch'>;
|
|
14
14
|
/** Change productScope with tenant/actor identity so saved selections and output caches are discarded. */
|
|
15
|
-
export interface ManagedAgentWebShellProps extends JavaManagedAgentProviderOptions, ManagedSessionsNavigationProps {
|
|
15
|
+
export interface ManagedAgentWebShellProps extends Omit<JavaManagedAgentProviderOptions, 'baseUrl'>, ManagedSessionsNavigationProps {
|
|
16
16
|
managedAgentProvider?: ManagedAgentProvider;
|
|
17
|
+
/**
|
|
18
|
+
* Backend base URL for the built-in Java provider. Required unless
|
|
19
|
+
* `managedAgentProvider` is supplied; a missing value fails loudly instead
|
|
20
|
+
* of resolving requests against `<origin>/undefined`.
|
|
21
|
+
*/
|
|
22
|
+
baseUrl?: string;
|
|
17
23
|
/** Only open the existing Session explicitly selected by the host. */
|
|
18
24
|
hostSessionOnly?: boolean;
|
|
19
25
|
sessionId?: string;
|
|
@@ -24,6 +30,13 @@ export interface ManagedAgentWebShellProps extends JavaManagedAgentProviderOptio
|
|
|
24
30
|
className?: string;
|
|
25
31
|
style?: CSSProperties;
|
|
26
32
|
}
|
|
27
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Managed-only 产品入口,不创建 daemon workspace/session context。
|
|
35
|
+
*
|
|
36
|
+
* The provider (and its `baseUrl` guard) resolves one level below this
|
|
37
|
+
* boundary: an error boundary cannot catch a throw from the component that
|
|
38
|
+
* renders it, and a host mounting before its config resolves would otherwise
|
|
39
|
+
* get a blank container instead of the shell's own fallback.
|
|
40
|
+
*/
|
|
28
41
|
export declare function ManagedAgentWebShell(props: ManagedAgentWebShellProps): import("react/jsx-runtime").JSX.Element;
|
|
29
42
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
type BrowserNotificationMessage = string | ((vars?: Record<string, string | number>) => string);
|
|
7
|
+
export declare const BROWSER_NOTIFICATION_MESSAGES_EN: Record<string, BrowserNotificationMessage>;
|
|
8
|
+
export declare const BROWSER_NOTIFICATION_MESSAGES_ZH: Record<string, BrowserNotificationMessage>;
|
|
9
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
1
2
|
interface StreamingStatusProps {
|
|
2
3
|
startedAt?: number;
|
|
3
4
|
backgroundLabel?: string;
|
|
@@ -16,6 +17,8 @@ interface StreamingStatusProps {
|
|
|
16
17
|
*/
|
|
17
18
|
hasActivePrompt?: boolean;
|
|
18
19
|
showResponseTokensPerSecond?: boolean;
|
|
20
|
+
/** Optional control rendered after the status metadata, e.g. the minigame. */
|
|
21
|
+
trailing?: ReactNode;
|
|
19
22
|
}
|
|
20
|
-
export declare function StreamingStatus({ startedAt, backgroundLabel, showPhrase, hasActivePrompt, showResponseTokensPerSecond, }: StreamingStatusProps): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
+
export declare function StreamingStatus({ startedAt, backgroundLabel, showPhrase, hasActivePrompt, showResponseTokensPerSecond, trailing, }: StreamingStatusProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
24
|
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Qwen Team
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { type WaitingActivityDay, type WaitingTokenUsage } from '../utils/waitingActivity';
|
|
7
|
+
export interface WaitingMinigameProps {
|
|
8
|
+
open: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
activity?: readonly WaitingActivityDay[];
|
|
11
|
+
tokenUsage?: WaitingTokenUsage;
|
|
12
|
+
/** Jump to the message that represents the clicked activity bucket. */
|
|
13
|
+
onSelectActivity?: (messageId: string) => void;
|
|
14
|
+
/** Game entry is opt-in; the activity and token views are always available. */
|
|
15
|
+
gamesEnabled?: boolean;
|
|
16
|
+
/** Delay before the game entry appears; the product default is 5s. */
|
|
17
|
+
entryDelayMs?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function WaitingMinigame({ open, onClose, activity, tokenUsage, onSelectActivity, gamesEnabled, entryDelayMs, }: WaitingMinigameProps): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
export interface WaitingMinigameButtonProps {
|
|
21
|
+
open: boolean;
|
|
22
|
+
onToggle: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function WaitingMinigameButton({ open, onToggle, }: WaitingMinigameButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { DaemonToolTranscriptBlock } from '@qwen-code/sdk/daemon';
|
|
7
7
|
import type { ACPToolCall } from '../../adapters/types';
|
|
8
|
+
import { stringifyValue } from '../messages/toolFormatting';
|
|
8
9
|
/** The longest stretch of one argument or result put in the DOM by default. */
|
|
9
10
|
export declare const MAX_DETAIL_LENGTH = 4000;
|
|
10
|
-
export
|
|
11
|
+
export { stringifyValue };
|
|
11
12
|
/** Valid JSON renders as a code block; anything else stays plain text. */
|
|
12
13
|
export declare function ToolCallDetail({ text, limit, }: {
|
|
13
14
|
text: string;
|
|
@@ -8,5 +8,12 @@ interface ChannelEventsPageProps {
|
|
|
8
8
|
onClose?: () => void;
|
|
9
9
|
initialFocusRef?: Ref<HTMLHeadingElement>;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Outcomes the page knows how to label. Anything else renders as its raw
|
|
13
|
+
* token, so a new adapter outcome degrades to an unreadable-but-safe row
|
|
14
|
+
* rather than a missing translation key. Exported for the catalog
|
|
15
|
+
* completeness test: every entry here needs an EN and a ZH label.
|
|
16
|
+
*/
|
|
17
|
+
export declare const KNOWN_OUTCOMES: Set<string>;
|
|
11
18
|
export declare function ChannelEventsPage({ onClose, initialFocusRef, }: ChannelEventsPageProps): import("react/jsx-runtime").JSX.Element;
|
|
12
19
|
export {};
|
|
@@ -30,7 +30,7 @@ export interface ChannelGroupOverrideDraft {
|
|
|
30
30
|
senders: '' | 'open' | 'allowlist';
|
|
31
31
|
allowedUsers: string;
|
|
32
32
|
}
|
|
33
|
-
export type ChannelEditorValidationCode = 'required' | 'credential' | 'duplicate' | 'invalid' | 'invalidGroupId' | 'invalidOption' | 'invalidRepoId' | 'conflictingRepoAliases' | 'invalidGroupEntry' | 'number' | 'outOfRange' | 'policy' | 'requiresBoundDelivery';
|
|
33
|
+
export type ChannelEditorValidationCode = 'required' | 'credential' | 'duplicate' | 'invalid' | 'invalidGroupId' | 'invalidOption' | 'invalidRepoId' | 'repoFilterRequired' | 'conflictingRepoAliases' | 'invalidGroupEntry' | 'number' | 'outOfRange' | 'policy' | 'requiresBoundDelivery';
|
|
34
34
|
export type ChannelEditorValidationErrors = Record<string, ChannelEditorValidationCode>;
|
|
35
35
|
/** Access fields that only gate direct messages, which repository-only channels never receive. */
|
|
36
36
|
export declare const PRIVATE_ONLY_FIELD_KEYS: Set<string>;
|
|
@@ -40,6 +40,33 @@ export declare const PRIVATE_ONLY_FIELD_KEYS: Set<string>;
|
|
|
40
40
|
* and a row for a half-typed repository would only flicker.
|
|
41
41
|
*/
|
|
42
42
|
export declare function repositoryAllowlistIds(value: string): string[];
|
|
43
|
+
/** Whether the repository event filter processes a list at all. */
|
|
44
|
+
export declare function isRepoFilterActive(mode: unknown): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* GitHub areas whose two-segment URLs look like `owner/repo` but are not
|
|
47
|
+
* repositories. Shortening one would silently filter a nonexistent
|
|
48
|
+
* repository — fatal under an allowlist — so these URLs pass through
|
|
49
|
+
* unchanged and validation rejects them by name instead.
|
|
50
|
+
*
|
|
51
|
+
* Best-effort by construction: a denylist of GitHub's top-level paths cannot
|
|
52
|
+
* be complete, and a future GitHub area can reintroduce the hazard until it
|
|
53
|
+
* is added here. The enumerated test over this set keeps every listed root
|
|
54
|
+
* rejected; the residual risk is documented in the design doc.
|
|
55
|
+
*
|
|
56
|
+
* Exported so the test can enumerate every member instead of sampling a few.
|
|
57
|
+
*/
|
|
58
|
+
export declare const GITHUB_RESERVED_URL_PATHS: Set<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Canonicalize the repository filter input: lowercase, deduplicate, strip
|
|
61
|
+
* trailing sentence punctuation a paste can carry (`.`, `)`, …), and shorten
|
|
62
|
+
* GitHub web URLs (repository, PR, or issue pages, with an optional `.git`,
|
|
63
|
+
* trailing path, query, or fragment) to `owner/repo` — only when the URL's
|
|
64
|
+
* host is the channel's own GitHub web host and its path is not the baseUrl's
|
|
65
|
+
* API prefix. Entries that are not repository URLs on that host pass through
|
|
66
|
+
* unchanged so validation can name them. Shared by the validator and the save
|
|
67
|
+
* path so the two cannot disagree.
|
|
68
|
+
*/
|
|
69
|
+
export declare function normalizeRepositoryFilterInput(value: string, baseUrl?: string): string;
|
|
43
70
|
export declare function toList(value: string): string[];
|
|
44
71
|
/**
|
|
45
72
|
* The one record rule, shared by validation, the save path, and the editor's
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ManagedAgentPendingQuestionAction, ManagedAgentQuestionResponse } from './managed-agent-provider';
|
|
2
|
+
export type ManagedQuestionDraft = Record<string, {
|
|
3
|
+
optionIds: string[];
|
|
4
|
+
text: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare function ManagedQuestionForm({ action, draft, onDraftChange, submitting, disabled, onSubmit, }: {
|
|
7
|
+
action: ManagedAgentPendingQuestionAction;
|
|
8
|
+
draft: ManagedQuestionDraft;
|
|
9
|
+
onDraftChange(draft: ManagedQuestionDraft): void;
|
|
10
|
+
submitting: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onSubmit(response: ManagedAgentQuestionResponse): Promise<void>;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -175,7 +175,7 @@ export interface paths {
|
|
|
175
175
|
};
|
|
176
176
|
get?: never;
|
|
177
177
|
put?: never;
|
|
178
|
-
/** @description
|
|
178
|
+
/** @description Serves Hosted permission and structured question Actions. Question answers preserve the original question and option IDs, allow one to four answers, and are bounded to 32 KiB of canonical UTF-8 JSON. vote_recorded remains planned. Reads follow Session authorization; the Session's recorded owner or any caller holding OPERATOR on the bound Workspace may respond; a Shell Session's Actions may be answered only by its recorded owner (an unbound Session with no recorded creator and no recorded create command answers to any caller in its tenant, matching its read ACL; a bound Session without an owner record answers through the create-command actor recorded for it, or through the Workspace role arm). Responses are durable operations, reconciled against the original journal decision. */
|
|
179
179
|
post: operations["queryWebShellActions"];
|
|
180
180
|
delete?: never;
|
|
181
181
|
options?: never;
|
|
@@ -192,7 +192,7 @@ export interface paths {
|
|
|
192
192
|
};
|
|
193
193
|
get?: never;
|
|
194
194
|
put?: never;
|
|
195
|
-
/** @description
|
|
195
|
+
/** @description Serves Hosted permission and structured question Actions. Question answers preserve the original question and option IDs, allow one to four answers, and are bounded to 32 KiB of canonical UTF-8 JSON. vote_recorded remains planned. Reads follow Session authorization; the Session's recorded owner or any caller holding OPERATOR on the bound Workspace may respond; a Shell Session's Actions may be answered only by its recorded owner (an unbound Session with no recorded creator and no recorded create command answers to any caller in its tenant, matching its read ACL; a bound Session without an owner record answers through the create-command actor recorded for it, or through the Workspace role arm). Responses are durable operations, reconciled against the original journal decision. */
|
|
196
196
|
post: operations["getWebShellAction"];
|
|
197
197
|
delete?: never;
|
|
198
198
|
options?: never;
|
|
@@ -209,7 +209,7 @@ export interface paths {
|
|
|
209
209
|
};
|
|
210
210
|
get?: never;
|
|
211
211
|
put?: never;
|
|
212
|
-
/** @description
|
|
212
|
+
/** @description Serves Hosted permission and structured question Actions. Question answers preserve the original question and option IDs, allow one to four answers, and are bounded to 32 KiB of canonical UTF-8 JSON. vote_recorded remains planned. Reads follow Session authorization; the Session's recorded owner or any caller holding OPERATOR on the bound Workspace may respond; a Shell Session's Actions may be answered only by its recorded owner (an unbound Session with no recorded creator and no recorded create command answers to any caller in its tenant, matching its read ACL; a bound Session without an owner record answers through the create-command actor recorded for it, or through the Workspace role arm). Responses are durable operations, reconciled against the original journal decision. */
|
|
213
213
|
post: operations["respondWebShellAction"];
|
|
214
214
|
delete?: never;
|
|
215
215
|
options?: never;
|
|
@@ -1665,7 +1665,7 @@ export interface components {
|
|
|
1665
1665
|
questionId: string;
|
|
1666
1666
|
optionIds?: string[];
|
|
1667
1667
|
text?: string;
|
|
1668
|
-
}
|
|
1668
|
+
} & (unknown | unknown);
|
|
1669
1669
|
WebShellActionQuestion: {
|
|
1670
1670
|
id: string;
|
|
1671
1671
|
prompt: string;
|
|
@@ -1712,6 +1712,9 @@ export interface components {
|
|
|
1712
1712
|
/** Format: int64 */
|
|
1713
1713
|
expiresAt: number;
|
|
1714
1714
|
decisionReceiptId?: string;
|
|
1715
|
+
turnId?: string;
|
|
1716
|
+
functionCallId: string;
|
|
1717
|
+
toolName: string;
|
|
1715
1718
|
questions: components["schemas"]["WebShellActionQuestion"][];
|
|
1716
1719
|
} & unknown;
|
|
1717
1720
|
/** @description At most one requested Hosted approval per Turn. allow and deny are stable option IDs. A requested native-tool Action may carry a bounded input preview when the producer supplies an input reference. Version 1 Actions and unavailable inputs omit it. Public timestamps are milliseconds, as recorded by the Harness. Decision receipts are opaque product IDs. */
|
|
@@ -1779,7 +1782,7 @@ export interface components {
|
|
|
1779
1782
|
/** @default 20 */
|
|
1780
1783
|
limit?: number;
|
|
1781
1784
|
/**
|
|
1782
|
-
* @description Include pending
|
|
1785
|
+
* @description Include pending Actions of this public root Session and its direct children; each Action retains its actual owning sessionId.
|
|
1783
1786
|
* @default false
|
|
1784
1787
|
*/
|
|
1785
1788
|
includeChildren?: boolean;
|
|
@@ -199,8 +199,7 @@ export interface ManagedWorkspaceRegistration {
|
|
|
199
199
|
create(request: Omit<components['schemas']['WebShellWorkspaceRegisterRequest'], 'idempotencyKey' | 'requestId'>, options: ManagedAgentCommandOptions): Promise<ManagedWorkspaceCreateOperation>;
|
|
200
200
|
query(operationId: string, options: ManagedAgentRequestOptions): Promise<ManagedWorkspaceCreateOperation>;
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
export interface ManagedAgentPendingAction {
|
|
202
|
+
interface ManagedAgentActionIdentity {
|
|
204
203
|
actionId: string;
|
|
205
204
|
sessionId: string;
|
|
206
205
|
/** Public Turn ID; absent when the Turn could not be resolved. */
|
|
@@ -209,13 +208,28 @@ export interface ManagedAgentPendingAction {
|
|
|
209
208
|
toolName: string;
|
|
210
209
|
inputRevision: number;
|
|
211
210
|
policyRevision: string;
|
|
211
|
+
createdAt?: number;
|
|
212
212
|
expiresAt: number;
|
|
213
|
+
}
|
|
214
|
+
export interface ManagedAgentPendingPermissionAction extends ManagedAgentActionIdentity {
|
|
215
|
+
kind?: 'permission';
|
|
213
216
|
options: Array<{
|
|
214
217
|
id: string;
|
|
215
218
|
label: string;
|
|
216
219
|
}>;
|
|
217
220
|
inputPreview?: components['schemas']['WebShellActionInputPreview'];
|
|
218
221
|
}
|
|
222
|
+
export interface ManagedAgentPendingQuestionAction extends ManagedAgentActionIdentity {
|
|
223
|
+
kind: 'question';
|
|
224
|
+
questions: components['schemas']['WebShellActionQuestion'][];
|
|
225
|
+
}
|
|
226
|
+
export type ManagedAgentPendingAction = ManagedAgentPendingPermissionAction | ManagedAgentPendingQuestionAction;
|
|
227
|
+
export type ManagedAgentQuestionAnswer = components['schemas']['WebShellQuestionAnswer'];
|
|
228
|
+
export interface ManagedAgentQuestionResponse {
|
|
229
|
+
kind: 'question';
|
|
230
|
+
answers: ManagedAgentQuestionAnswer[];
|
|
231
|
+
}
|
|
232
|
+
export type ManagedAgentActionResponse = string | ManagedAgentQuestionResponse;
|
|
219
233
|
export interface ManagedAgentProvider {
|
|
220
234
|
readonly userMessages?: {
|
|
221
235
|
query(sessionId: string, options: ManagedAgentRequestOptions): Promise<import('./use-managed-user-messages').ManagedUserMessageSnapshot>;
|
|
@@ -269,12 +283,12 @@ export interface ManagedAgentProvider {
|
|
|
269
283
|
}): Promise<ManagedMcpManagementSnapshot>;
|
|
270
284
|
operation(sessionId: string, operationId: string, options: ManagedAgentRequestOptions): Promise<ManagedMcpManagementSnapshot>;
|
|
271
285
|
};
|
|
272
|
-
/** Present when the provider can serve Hosted
|
|
286
|
+
/** Present when the provider can serve Hosted Actions. */
|
|
273
287
|
readonly actions?: {
|
|
274
288
|
listPending(sessionId: string, options: ManagedAgentRequestOptions & {
|
|
275
289
|
includeChildren?: boolean;
|
|
276
290
|
}): Promise<ManagedAgentPendingAction[]>;
|
|
277
|
-
respond(action: ManagedAgentPendingAction,
|
|
291
|
+
respond(action: ManagedAgentPendingAction, response: ManagedAgentActionResponse, options: ManagedAgentCommandOptions): Promise<void>;
|
|
278
292
|
};
|
|
279
293
|
readonly toolResults?: ManagedToolResultReader;
|
|
280
294
|
readonly toolDetails?: {
|
|
@@ -462,3 +476,4 @@ export interface ManagedAgentWorkspace {
|
|
|
462
476
|
defaultCwdRelative?: string;
|
|
463
477
|
canSelectDirectory?: boolean;
|
|
464
478
|
}
|
|
479
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ManagedAgentPendingQuestionAction, ManagedAgentQuestionAnswer } from './managed-agent-provider';
|
|
2
|
+
export declare const MAX_MANAGED_QUESTION_ANSWER_BYTES: number;
|
|
3
|
+
export declare function canonicalQuestionAnswers(action: ManagedAgentPendingQuestionAction, answers: readonly ManagedAgentQuestionAnswer[]): ManagedAgentQuestionAnswer[];
|
|
4
|
+
export declare function questionResponseKey(action: ManagedAgentPendingQuestionAction, answers: readonly ManagedAgentQuestionAnswer[]): string;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import type { ManagedAgentPendingAction, ManagedAgentProvider, ManagedAgentSessionEvent } from './managed-agent-provider';
|
|
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
|
}
|
|
@@ -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 {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
interface AuthMessageProps {
|
|
2
2
|
dialog?: boolean;
|
|
3
|
+
standalone?: boolean;
|
|
3
4
|
allowAdd?: boolean;
|
|
4
5
|
onMessage: (text: string, type?: 'status' | 'error') => void;
|
|
5
6
|
onModelActivated?: (modelId: string) => void;
|
|
7
|
+
getWorkspaceCwd?: () => string | undefined;
|
|
8
|
+
activateSessionSubscriptionModel: (workspaceCwd: string | undefined, sessionId: string, modelId: string) => Promise<void>;
|
|
6
9
|
onClose: () => void;
|
|
7
10
|
}
|
|
8
|
-
export declare function AuthMessage({ onMessage, onModelActivated, onClose, allowAdd, dialog, }: AuthMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function AuthMessage({ onMessage, onModelActivated, getWorkspaceCwd, activateSessionSubscriptionModel, onClose, allowAdd, dialog, standalone, }: AuthMessageProps): import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export {};
|
|
@@ -15,7 +15,7 @@ type FlowProps = {
|
|
|
15
15
|
onClose: () => void;
|
|
16
16
|
onSignedOut?: () => void;
|
|
17
17
|
onOtherProviders: () => void;
|
|
18
|
-
onActivate?: (signal: AbortSignal) => Promise<string | void>;
|
|
18
|
+
onActivate?: (signal: AbortSignal, onSettingsSaved: () => void) => Promise<string | void>;
|
|
19
19
|
onActivated?: (message?: string) => void;
|
|
20
20
|
onModelsUnavailable?: () => void;
|
|
21
21
|
onAuthError?: (message: string) => void;
|
|
@@ -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;
|
|
@@ -30,6 +30,8 @@ interface WorkspaceSectionProps {
|
|
|
30
30
|
trustToOpenLabel: string;
|
|
31
31
|
noSessionsLabel: string;
|
|
32
32
|
loadErrorLabel: string;
|
|
33
|
+
/** Shown instead of an id prefix when a session has no persisted name. */
|
|
34
|
+
untitledSessionLabel?: string;
|
|
33
35
|
organizationEnabled: boolean;
|
|
34
36
|
sessionCatalogRequestsEnabled?: boolean;
|
|
35
37
|
sessionGroupCatalog?: DaemonSessionGroupCatalog;
|
|
@@ -135,5 +137,5 @@ interface WorkspaceSectionProps {
|
|
|
135
137
|
/** Commit entry for the same picker; the row still opens without it. */
|
|
136
138
|
onOpenCommit?: (workspaceCwd: string) => void;
|
|
137
139
|
}
|
|
138
|
-
export declare function WorkspaceSection({ workspace, executionLabel, storageKey, remote, renderHeader, hideHeader, client, reloadToken, untrustedLabel, readOnlyLabel, trustToOpenLabel, noSessionsLabel, loadErrorLabel, 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;
|
|
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;
|
|
139
141
|
export {};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import type { DaemonSkillInstallRequest } from '@qwen-code/sdk/daemon';
|
|
1
|
+
import type { DaemonSkillInstallRequest, DaemonSkillScope, DaemonSkillArchiveInstallRequest, DaemonSkillArchiveInstallResult, DaemonSkillInstallAttempt, DaemonSkillMutationResult, DaemonCapabilities } from '@qwen-code/sdk/daemon';
|
|
2
2
|
interface SkillInstallDialogProps {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onOpenChange: (open: boolean) => void;
|
|
5
5
|
onInstall: (request: DaemonSkillInstallRequest) => Promise<void>;
|
|
6
|
+
archive?: {
|
|
7
|
+
limits?: DaemonCapabilities['limits'];
|
|
8
|
+
install(request: DaemonSkillArchiveInstallRequest, scope: DaemonSkillScope): Promise<DaemonSkillArchiveInstallResult>;
|
|
9
|
+
lookup(scope: DaemonSkillScope, attemptId: string): Promise<DaemonSkillInstallAttempt | undefined>;
|
|
10
|
+
committed(result: DaemonSkillMutationResult): Promise<void>;
|
|
11
|
+
};
|
|
6
12
|
}
|
|
7
|
-
export declare function SkillInstallDialog({ open, onOpenChange, onInstall, }: SkillInstallDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function SkillInstallDialog({ open, onOpenChange, onInstall, archive, }: SkillInstallDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
14
|
export {};
|
|
@@ -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;
|
|
@@ -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. */
|
|
@@ -468,7 +473,10 @@ export interface DaemonSessionActions {
|
|
|
468
473
|
releaseSession(sessionId: string): Promise<void>;
|
|
469
474
|
closeSession(): Promise<void>;
|
|
470
475
|
refreshCommands(): Promise<void>;
|
|
471
|
-
getContext(
|
|
476
|
+
getContext(opts?: {
|
|
477
|
+
/** Rethrow transient failures without recording a notice. */
|
|
478
|
+
silent?: boolean;
|
|
479
|
+
}): Promise<DaemonSessionContextStatus>;
|
|
472
480
|
getContextUsage(opts?: {
|
|
473
481
|
detail?: boolean;
|
|
474
482
|
/** Reconcile composer counters after compression, without changing billing usage. */
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2025 Qwen Team
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import type { DaemonSkillInstallRequest } from '@qwen-code/sdk/daemon';
|
|
6
|
+
import type { DaemonSkillInstallRequest, DaemonSkillArchiveInstallRequest, DaemonSkillScope } from '@qwen-code/sdk/daemon';
|
|
7
7
|
import type { DaemonResourceOptions } from '../types.js';
|
|
8
8
|
interface DaemonSkillsOptions extends DaemonResourceOptions {
|
|
9
9
|
workspaceCwd?: string;
|
|
@@ -20,11 +20,15 @@ export declare function useDaemonSkills(options?: DaemonSkillsOptions): {
|
|
|
20
20
|
reload: () => Promise<import("@qwen-code/sdk/daemon").DaemonWorkspaceSkillsStatus | undefined>;
|
|
21
21
|
reloadConfig: () => Promise<import("@qwen-code/sdk/daemon").DaemonWorkspaceSkillsStatus | undefined>;
|
|
22
22
|
reloadRuntime: () => Promise<import("@qwen-code/sdk/daemon").DaemonWorkspaceSkillsStatus | undefined>;
|
|
23
|
-
ensureRuntime: (
|
|
23
|
+
ensureRuntime: (options?: {
|
|
24
|
+
throwOnError?: boolean;
|
|
25
|
+
}) => Promise<import("@qwen-code/sdk/daemon").DaemonWorkspaceSkillsStatus | undefined>;
|
|
24
26
|
setEnabled: (skillName: string, enabled: boolean, opts?: {
|
|
25
27
|
clientId?: string;
|
|
26
28
|
}) => Promise<import("@qwen-code/sdk/daemon").DaemonSkillToggleResult>;
|
|
27
29
|
install: (request: DaemonSkillInstallRequest) => Promise<import("@qwen-code/sdk/daemon").DaemonSkillMutationResult>;
|
|
30
|
+
installArchive: (request: DaemonSkillArchiveInstallRequest, scope: DaemonSkillScope) => Promise<import("@qwen-code/sdk/daemon").DaemonSkillArchiveInstallResult>;
|
|
31
|
+
lookupInstallAttempt: (scope: DaemonSkillScope, attemptId: string) => Promise<import("@qwen-code/sdk/daemon").DaemonSkillInstallAttempt | undefined>;
|
|
28
32
|
remove: (skillName: string, scope: "workspace" | "global") => Promise<import("@qwen-code/sdk/daemon").DaemonSkillMutationResult>;
|
|
29
33
|
};
|
|
30
34
|
export {};
|
|
@@ -366,8 +366,9 @@ export type DaemonWorkspaceDirectoryPickerResult = {
|
|
|
366
366
|
kind: 'workspace-directory-picker';
|
|
367
367
|
selected: false;
|
|
368
368
|
};
|
|
369
|
-
export interface DaemonWorkspaceActions extends Pick<DaemonClient, 'getSubscriptionConfig' | 'startSubscriptionLogin' | 'getSubscriptionLogin' | 'cancelSubscriptionLogin' | 'getSubscriptionUserInfo' | 'signOutSubscription'> {
|
|
369
|
+
export interface DaemonWorkspaceActions extends Pick<DaemonClient, 'getSubscriptionConfig' | 'startSubscriptionLogin' | 'getSubscriptionLogin' | 'cancelSubscriptionLogin' | 'getSubscriptionUserInfo' | 'getSubscriptionDefaultModel' | 'signOutSubscription'> {
|
|
370
370
|
activateSubscription(options?: {
|
|
371
|
+
workspaceCwd?: string;
|
|
371
372
|
signal?: AbortSignal;
|
|
372
373
|
}): Promise<DaemonSubscriptionActivation>;
|
|
373
374
|
setUiLanguage(language: string, scope: 'user' | 'workspace', workspaceCwd?: string): Promise<SetUserLanguageResult>;
|
|
@@ -36,6 +36,9 @@ interface UseQueuedPromptsArgs {
|
|
|
36
36
|
* the legacy local fallback used by older daemons.
|
|
37
37
|
*/
|
|
38
38
|
canQueryMidTurn: boolean;
|
|
39
|
+
/** Whether `session_prompt` advertises the native prompt queue routes.
|
|
40
|
+
* OpenAPI hosts can send prompts without exposing the daemon queue. */
|
|
41
|
+
canQueryPendingPrompts: boolean;
|
|
39
42
|
/**
|
|
40
43
|
* Whether the daemon advertises `session_attachments`. With it,
|
|
41
44
|
* attachments travel with a mid-turn message and are injected into the
|
|
@@ -76,5 +79,5 @@ export interface UseQueuedPromptsResult {
|
|
|
76
79
|
editLastQueuedPrompt: () => boolean;
|
|
77
80
|
clearQueuedPrompts: () => boolean;
|
|
78
81
|
}
|
|
79
|
-
export declare function useQueuedPrompts({ getPromptDispatchError, connected, writeBlocked, runtimeStopped, sessionId, workspaceCwd, clientId, canMutateMidTurn, canQueryMidTurn, canInjectMidTurnMedia, workspaceFileActions, streamingState, sessionHasActivePrompt, holdQueuedPromptsLocally, sessionActions: unguardedSessionActions, store, editorRef, reportError, t, }: UseQueuedPromptsArgs): UseQueuedPromptsResult;
|
|
82
|
+
export declare function useQueuedPrompts({ getPromptDispatchError, connected, writeBlocked, runtimeStopped, sessionId, workspaceCwd, clientId, canMutateMidTurn, canQueryMidTurn, canQueryPendingPrompts, canInjectMidTurnMedia, workspaceFileActions, streamingState, sessionHasActivePrompt, holdQueuedPromptsLocally, sessionActions: unguardedSessionActions, store, editorRef, reportError, t, }: UseQueuedPromptsArgs): UseQueuedPromptsResult;
|
|
80
83
|
export {};
|
|
@@ -9,6 +9,10 @@ interface ScopedSessionsOptions {
|
|
|
9
9
|
view?: 'organized';
|
|
10
10
|
group?: string;
|
|
11
11
|
pollIntervalMs?: number;
|
|
12
|
+
/** `null` queries every source type; omitted keeps the sidebar default. */
|
|
13
|
+
sourceType?: string | null;
|
|
14
|
+
/** List live bridge sessions only, so closed history cannot hide them. */
|
|
15
|
+
liveOnly?: boolean;
|
|
12
16
|
}
|
|
13
17
|
export declare function useScopedSessions(workspaceCwd: string | undefined, options?: ScopedSessionsOptions): {
|
|
14
18
|
data: import("@qwen-code/sdk/daemon").DaemonSessionSummary[] | undefined;
|
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 { ManagedAgentWebShell, type ManagedAgentWebShellProps, } from './ManagedAgentWebShell';
|
|
14
14
|
export type { ManagedArtifact, ManagedArtifactPage, ManagedArtifactResponse, ManagedArtifactSave, ManagedToolResult, ManagedToolResultReader, ManagedToolResultResponse, } from './components/managed/managed-tool-result-types';
|
|
15
|
-
export { type ManagedAgentCommandOptions, type ManagedAgentPendingAction, 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';
|
|
15
|
+
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';
|
|
16
16
|
export interface WebShellWithProvidersProps extends WebShellProps {
|
|
17
17
|
/** Unmount the chat view and its portals while keeping the daemon session attached. */
|
|
18
18
|
viewHidden?: boolean;
|
|
@@ -15,6 +15,7 @@ export interface WebShellSessionsOptions extends SessionCatalogHookOptions {
|
|
|
15
15
|
sourceType?: string;
|
|
16
16
|
sourceId?: string;
|
|
17
17
|
parentSessionId?: string;
|
|
18
|
+
liveOnly?: boolean;
|
|
18
19
|
}
|
|
19
20
|
export declare function useSessionCatalogQuery(client: DaemonClient, query: SessionCatalogQuery | undefined, options?: SessionCatalogHookOptions): {
|
|
20
21
|
sessions: DaemonSessionSummary[];
|
|
@@ -11,3 +11,10 @@ import type { PermissionRequest } from '../adapters/types.js';
|
|
|
11
11
|
* the split-view ChatPane so the two never drift.
|
|
12
12
|
*/
|
|
13
13
|
export declare function isAskUserPermission(request: PermissionRequest | null): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Language-neutral snapshot of a pending AskUserQuestion payload — numbered
|
|
16
|
+
* questions with their option labels and descriptions — for embedding in the
|
|
17
|
+
* side-task details prompt. Malformed entries are skipped rather than throwing:
|
|
18
|
+
* the payload crosses the daemon wire and is not schema-validated here.
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatAskUserQuestions(rawInput: Record<string, unknown> | undefined): string;
|