@dudko.dev/agent-web-react 0.0.41 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2,9 +2,9 @@ import * as react from 'react';
2
2
  import { DependencyList, ReactNode, RefObject, ComponentType, CSSProperties } from 'react';
3
3
  import { AskUserRequest, AskUserContext, AskUserAnswer, AskUserConfig, AskUserHandler, AgentEvent, RunFile, RunResult, Agent, ToolApprovalMode, AppToolCallRequest, AppSamplingRequest, AppSamplingView, AppSamplingResult, CompactResult, IUsage, AgentEventHandler, BrowserAgentConfig, VirtualFileInfo, VirtualFileSystem, CredentialStore, createWebLLMModel, WebLLMModelOptions, ModelTier, TierReason, EscalationReason, DecisionFallbackReason, Skill, IPlan, ToolApprovalRequest, ToolApprovalContext, ToolApprovalDecision } from '@dudko.dev/agent-web';
4
4
  export { Agent, AgentEvent, AgentEventHandler, AgentLoggerSink, AgentTool, AgentToolSet, AppToolCallRequest, AskUserAnswer, AskUserConfig, AskUserContext, AskUserHandler, AskUserOption, AskUserRequest, AttachmentsNotSupportedError, BrowserAgentConfig, CompactResult, CompactionConfig, CredentialStore, FileToolsOptions, IPlan, IPlanStep, IStepResult, IToolCall, IUsage, ImagesNotSupportedError, IndexedDBStore, LearningConfig, LogLevel, McpAppCsp, McpAppResource, McpAppToolResult, MemoryCredentialStore, MemorySkillStore, MemoryStore, ModelInput, ProviderModelSpec, ProviderType, RunControl, RunFile, RunOptions, RunResult, SessionBusyError, SessionHolder, SessionLockMode, SessionRunState, SessionWatch, Skill, SkillStore, StorageChange, StorageChangeKind, StorageChangeOp, SubagentInfo, SubagentToolOptions, SubagentWorkerConfig, ThinkingLevel, ThinkingSetting, TokenLimits, ToolApprovalConfig, ToolApprovalContext, ToolApprovalMode, ToolApprovalRequest, VaultCredentialStore, VfsSkillStore, VirtualFile, VirtualFileInfo, VirtualFileSystem, WatchSessionOptions, createAgent, createFileTools, createRunControl, createSubagentTool, createWebLLMModel, defineSkill, defineTool, isWebGPUAvailable, loadSkillFromUrl, markReadOnly, onStorageChange, parseSkillMarkdown, postStorageChange, preloadWebLLMModel, serveSubagentWorker, supportsImages, supportsPdf, unloadWebLLMModel, watchSession } from '@dudko.dev/agent-web';
5
- import { A as AgentUiState, C as ChatAttachment, a as ApprovalView, b as ChatMessage, c as AgentStatus, E as ElicitationIssueKind, d as ElicitationOutcomeReason, M as McpAppSandboxReason, R as RemoteRunView, L as LessonView, S as SubagentView, e as SubagentNode, P as PendingElicitation, f as McpElicitationResult, g as ElicitationView, W as WrittenFileView, T as ToolCallView, h as StepView, U as UserNoteView, D as DecisionView, i as MediaView, j as AppView, Q as QuestionView, k as McpAppsConnectionLike, l as McpAppSandboxOptions, m as AppRequestView, n as TranscriptView, B as BudgetView, o as CompactionView, p as ModelLoadState, q as McpAppHost, r as AppRequestAnswerOptions } from './elicitation-Dp6Fi6ZA.cjs';
6
- export { s as APP_DEFAULT_HEIGHT, t as APP_MAX_HEIGHT, u as APP_MIN_HEIGHT, v as AppDownload, w as AppDownloadView, x as AppFileSaverEnv, y as AppLink, z as AppReadyDownload, F as AppResourceReader, G as ElicitationControl, H as ElicitationDraft, I as ElicitationDraftValue, J as ElicitationField, K as ElicitationFormOutcome, N as ElicitationIssue, O as ElicitationLink, V as ElicitationOption, X as FetchView, Y as MCP_APP_DISPLAY_MODES, Z as MCP_APP_MAX_ARGS_CHARS, _ as MCP_APP_MAX_DOWNLOAD_BYTES, $ as MCP_APP_MAX_FILE_NAME_CHARS, a0 as MCP_APP_MAX_IN_FLIGHT, a1 as MCP_APP_MAX_MESSAGE_CHARS, a2 as MCP_APP_MAX_URL_CHARS, a3 as MCP_APP_NOTIFICATIONS, a4 as MCP_APP_OPTIONAL_REQUESTS, a5 as MCP_APP_PROTOCOL_VERSION, a6 as MCP_APP_REFUSED, a7 as MCP_APP_REFUSED_DOWNLOAD_EXTENSIONS, a8 as MCP_APP_REFUSED_DOWNLOAD_TYPES, a9 as MCP_APP_RELAY, aa as MCP_APP_REQUESTS, ab as MCP_APP_SANDBOX_FRAME_TOKENS, ac as MCP_APP_SANDBOX_GRACE_MS, ad as MCP_APP_SANDBOX_SERVER, ae as MCP_APP_SANDBOX_TIMEOUT_MS, af as McpAppBridge, ag as McpAppBridgeHandlers, ah as McpAppBridgeOptions, ai as McpAppDisplayMode, aj as McpAppRpcError, ak as McpAppRpcMessage, al as McpAppSandboxInput, am as McpAppSandboxLink, an as McpAppSandboxLinkOptions, ao as McpAppSandboxTarget, ap as McpElicitationFieldSchema, aq as McpElicitationRequest, ar as McpElicitationSchema, as as QueuedMessageView, at as ReplanState, au as SkillConsentView, av as StepEscalationView, aw as UseMcpAppHostOptions, ax as appDisplayModeAllowed, ay as appDownloadOf, az as appDownloadRefusal, aA as appFileExtensionOf, aB as appFileNameOf, aC as appGestureOf, aD as appLinkOf, aE as appMessageTextOf, aF as appMimeTypeOf, aG as appSamplingErrorOf, aH as buildMcpAppDocument, aI as buildMcpAppSandboxShell, aJ as clampAppHeight, aK as elicitationFields, aL as elicitationFormAnswer, aM as elicitationInitialDraft, aN as elicitationLink, aO as formatCountdown, aP as grantedAppCsp, aQ as mcpAppCsp, aR as mcpAppHostCapabilities, aS as mcpAppSandboxProxyUrl, aT as mcpAppSandboxShellCsp, aU as mcpAppSandboxTarget, aV as resolveAppDownload, aW as saveAppFile, aX as useMcpAppHost } from './elicitation-Dp6Fi6ZA.cjs';
7
- export { M as MCP_APP_POLICY_TOKEN_MAX_CHARS, a as MCP_APP_SANDBOX_PROXY_READY, b as MCP_APP_SANDBOX_RESOURCE_READY, i as isMcpAppSandboxMessage, m as mcpAppPolicyToken } from './mcp-app-policy-DIUmGPJP.cjs';
5
+ import { A as AgentUiState, C as ChatAttachment, a as ApprovalView, b as ChatMessage, c as AgentStatus, E as ElicitationIssueKind, d as ElicitationOutcomeReason, M as McpAppSandboxReason, R as RemoteRunView, L as LessonView, S as SubagentView, e as SubagentNode, P as PendingElicitation, f as McpElicitationResult, g as ElicitationView, W as WrittenFileView, T as ToolCallView, h as StepView, U as UserNoteView, D as DecisionView, i as MediaView, j as AppView, Q as QuestionView, k as McpAppsConnectionLike, l as McpAppSandboxOptions, m as AppRequestView, n as TranscriptView, B as BudgetView, o as CompactionView, p as ModelLoadState, q as McpAppHost, r as AppRequestAnswerOptions } from './elicitation-B5t9hdaJ.cjs';
6
+ export { s as APP_DEFAULT_HEIGHT, t as APP_MAX_HEIGHT, u as APP_MIN_HEIGHT, v as AppDownload, w as AppDownloadView, x as AppFileSaverEnv, y as AppLink, z as AppReadyDownload, F as AppResourceReader, G as ElicitationControl, H as ElicitationDraft, I as ElicitationDraftValue, J as ElicitationField, K as ElicitationFormOutcome, N as ElicitationIssue, O as ElicitationLink, V as ElicitationOption, X as FetchView, Y as MCP_APP_DISPLAY_MODES, Z as MCP_APP_MAX_ARGS_CHARS, _ as MCP_APP_MAX_DOWNLOAD_BYTES, $ as MCP_APP_MAX_FILE_NAME_CHARS, a0 as MCP_APP_MAX_IN_FLIGHT, a1 as MCP_APP_MAX_MESSAGE_CHARS, a2 as MCP_APP_MAX_URL_CHARS, a3 as MCP_APP_NOTIFICATIONS, a4 as MCP_APP_OPTIONAL_REQUESTS, a5 as MCP_APP_PROTOCOL_VERSION, a6 as MCP_APP_REFUSED, a7 as MCP_APP_REFUSED_DOWNLOAD_EXTENSIONS, a8 as MCP_APP_REFUSED_DOWNLOAD_TYPES, a9 as MCP_APP_RELAY, aa as MCP_APP_REQUESTS, ab as MCP_APP_SANDBOX_FRAME_TOKENS, ac as MCP_APP_SANDBOX_GRACE_MS, ad as MCP_APP_SANDBOX_SERVER, ae as MCP_APP_SANDBOX_TIMEOUT_MS, af as McpAppBridge, ag as McpAppBridgeHandlers, ah as McpAppBridgeOptions, ai as McpAppDisplayMode, aj as McpAppRpcError, ak as McpAppRpcMessage, al as McpAppSandboxInput, am as McpAppSandboxLink, an as McpAppSandboxLinkOptions, ao as McpAppSandboxTarget, ap as McpElicitationFieldSchema, aq as McpElicitationRequest, ar as McpElicitationSchema, as as QueuedMessageView, at as ReplanState, au as SkillConsentView, av as StepEscalationView, aw as UseMcpAppHostOptions, ax as appDisplayModeAllowed, ay as appDownloadOf, az as appDownloadRefusal, aA as appFileExtensionOf, aB as appFileNameOf, aC as appGestureOf, aD as appLinkOf, aE as appMessageTextOf, aF as appMimeTypeOf, aG as appSamplingErrorOf, aH as buildMcpAppDocument, aI as buildMcpAppSandboxShell, aJ as clampAppHeight, aK as elicitationFields, aL as elicitationFormAnswer, aM as elicitationInitialDraft, aN as elicitationLink, aO as formatCountdown, aP as grantedAppCsp, aQ as mcpAppCsp, aR as mcpAppHostCapabilities, aS as mcpAppSandboxProxyUrl, aT as mcpAppSandboxShellCsp, aU as mcpAppSandboxTarget, aV as resolveAppDownload, aW as saveAppFile, aX as useMcpAppHost } from './elicitation-B5t9hdaJ.cjs';
7
+ export { M as MCP_APP_POLICY_TOKEN_MAX_CHARS, a as MCP_APP_SANDBOX_PROXY_READY, b as MCP_APP_SANDBOX_RESOURCE_READY, c as MCP_APP_SCHEME_PARAM, d as McpAppColorScheme, i as isMcpAppSandboxMessage, m as mcpAppColorScheme, e as mcpAppPolicyToken } from './mcp-app-policy-BhBIsbBy.cjs';
8
8
 
9
9
  /**
10
10
  * The model asks the person ONE closed question (the core's `ask_user`, `config.askUser`): the
@@ -447,7 +447,9 @@ declare const saveChat: (store: ChatHistoryStore, view: ChatRecord, base: ChatBa
447
447
  * notices), the open chat is read again when another tab saved it and nothing runs here, and a
448
448
  * run followed from another tab (`agent.remote`) is never saved from here - its own tab saves it.
449
449
  * A turn of this tab's is saved even when such a run reached it before the save began (a tab the
450
- * browser froze, waking), and keeps its place among the other tab's turns (`mergeChatRecord`).
450
+ * browser froze, waking), and keeps its place among the other tab's turns (`mergeChatRecord`); a
451
+ * read of the chat again (another tab's save notice, a followed run's end) never replaces such a
452
+ * turn - it is saved first, merged, and the merged record shown.
451
453
  */
452
454
  declare const useChatHistory: (agent: UseAgentReturn, options?: UseChatHistoryOptions) => UseChatHistoryReturn;
453
455
 
@@ -1369,6 +1371,11 @@ interface AgentLabels {
1369
1371
  dictate: string;
1370
1372
  dictateTitle: string;
1371
1373
  stopDictation: string;
1374
+ /**
1375
+ * The mic button's name while it listens: that it listens, and that a tap finishes (the title
1376
+ * stays `stopDictation`).
1377
+ */
1378
+ micListening: string;
1372
1379
  microphone: string;
1373
1380
  /** While a recording recognizer waits for its model (`useSpeechToText().finishing`). */
1374
1381
  transcribing: string;
@@ -1572,6 +1579,11 @@ interface AgentLabels {
1572
1579
  readAloudFailed: string;
1573
1580
  /** Above the chips: "3 files written in this turn". */
1574
1581
  filesWritten: (n: number) => string;
1582
+ /**
1583
+ * Above the chips of the workspace files an answer NAMES (`showNamedFiles`) - it did not write
1584
+ * them: "2 files in this answer".
1585
+ */
1586
+ filesNamed: (n: number) => string;
1575
1587
  /** In the activity summary: "3 files". */
1576
1588
  filesCount: (n: number) => string;
1577
1589
  /** The link that opens the Files panel. */
@@ -2402,6 +2414,14 @@ interface FileChipsProps {
2402
2414
  files?: VirtualFileSystem;
2403
2415
  /** The line above the chips - "3 files written in this turn" (default true). */
2404
2416
  showHeader?: boolean;
2417
+ /** That line's words in place of `filesWritten` (the named files' `filesNamed`). */
2418
+ heading?: ReactNode;
2419
+ /**
2420
+ * A picture opens in the image viewer over the chat (`ImageViewer`, with the other pictures of
2421
+ * its message) instead of inline under the chips (default false; inline all the same while the
2422
+ * viewer is off - `imageViewer={false}`).
2423
+ */
2424
+ imagesInViewer?: boolean;
2405
2425
  /** Shows a "Show in Files" link in that line. */
2406
2426
  onShowFiles?: () => void;
2407
2427
  /**
@@ -2430,7 +2450,7 @@ interface FileChipsProps {
2430
2450
  * a renderer), a picture as a picture, and an `.html` page in a sandboxed frame with a
2431
2451
  * Preview / Source switch (see `SandboxedFrame`).
2432
2452
  */
2433
- declare const FileChips: ({ written, files: vfs, showHeader, onShowFiles, htmlPreview, renderFile, renderFileContent, previewChars, defaultOpen, labels, className, }: FileChipsProps) => react.JSX.Element | null;
2453
+ declare const FileChips: ({ written, files: vfs, showHeader, heading, imagesInViewer, onShowFiles, htmlPreview, renderFile, renderFileContent, previewChars, defaultOpen, labels, className, }: FileChipsProps) => react.JSX.Element | null;
2434
2454
  interface FileChipProps {
2435
2455
  written: WrittenFileView;
2436
2456
  /** The type and size now (default: what the turn recorded). */
@@ -2442,10 +2462,43 @@ interface FileChipProps {
2442
2462
  gone?: boolean;
2443
2463
  open?: boolean;
2444
2464
  onToggle?: () => void;
2465
+ /**
2466
+ * A picture's thumbnail is a button that opens the image viewer, and so is its open button (no
2467
+ * inline preview: `onToggle` is not called for it) - while the viewer is on
2468
+ * (`ImageViewerProvider`); with it off, the inline preview as without `viewer`.
2469
+ */
2470
+ viewer?: boolean;
2445
2471
  labels?: AgentLabelsOverride;
2446
2472
  }
2447
2473
  /** One file: icon (a thumbnail for a picture), name, kind · size, open, download. */
2448
- declare const FileChip: ({ written, mediaType, bytes, files: vfs, gone, open, onToggle, labels, }: FileChipProps) => react.JSX.Element;
2474
+ declare const FileChip: ({ written, mediaType, bytes, files: vfs, gone, open, onToggle, viewer, labels, }: FileChipProps) => react.JSX.Element;
2475
+ interface NamedFileChipsProps {
2476
+ /** The answer's text (`ChatMessage.content`), read by `pathsNamedIn`. */
2477
+ text: string;
2478
+ /** The workspace: the only place a named path is looked up. Without it nothing is shown. */
2479
+ files?: VirtualFileSystem;
2480
+ /** Paths left out: the files the answer wrote, the media it made (they have their chips). */
2481
+ exclude?: Iterable<string>;
2482
+ /** At most this many chips (default `NAMED_FILES_MAX`, 12). */
2483
+ max?: number;
2484
+ /** The header line (default true). */
2485
+ showHeader?: boolean;
2486
+ htmlPreview?: HtmlPreviewOptions | false;
2487
+ renderFile?: FileChipsProps['renderFile'];
2488
+ renderFileContent?: FileChipsProps['renderFileContent'];
2489
+ labels?: AgentLabelsOverride;
2490
+ className?: string;
2491
+ }
2492
+ /**
2493
+ * The workspace files an answer names in its text - a path in an inline code span or as a
2494
+ * Markdown link (`pathsNamedIn`) - as chips under it, like the files it wrote: only a path that
2495
+ * is a file of the workspace's listing now (nothing is read to find out, nothing fetched), in
2496
+ * the order named, at most `max`. One that was shown and is then deleted stays, as gone. A
2497
+ * picture opens in the image viewer (inline, as the rest, with `imageViewer={false}`); the rest
2498
+ * as `FileChips` previews them. Under `<MessageList>` it reads the transcript's one listing of
2499
+ * the workspace, and draws nothing - no chip, no hook of a chip - unless a path it names is in it.
2500
+ */
2501
+ declare const NamedFileChips: (props: NamedFileChipsProps) => react.JSX.Element | null;
2449
2502
 
2450
2503
  /** Render a node yourself; `fallback` is the built-in `<li>` (with its children) — return it, or your own `<li>`. */
2451
2504
  type RenderSubagent = (node: SubagentNode, fallback: ReactNode) => ReactNode;
@@ -2617,6 +2670,16 @@ interface MessageListProps {
2617
2670
  * an `.html` file in a sandboxed frame) and download (default true). Needs `files`.
2618
2671
  */
2619
2672
  showFileChips?: boolean;
2673
+ /**
2674
+ * The workspace files a finished answer NAMES without having written them - a path in an
2675
+ * inline code span or a Markdown link (`pathsNamedIn`): an attachment, a picture of an earlier
2676
+ * turn, a file a search found - as chips under it, after the written ones ("2 files in this
2677
+ * answer"): only a path that is a file of `files` now, in the order named, at most 12; a
2678
+ * picture opens in the image viewer. Default: `showFileChips` (a host that hides file chips
2679
+ * gets no new ones). A file the answer wrote is left out only while its written chip is shown.
2680
+ * Needs `files`.
2681
+ */
2682
+ showNamedFiles?: boolean;
2620
2683
  /** The workspace generated and written files are read from (the core's `VirtualFileSystem`). */
2621
2684
  files?: VirtualFileSystem;
2622
2685
  /** How an `.html` file is previewed (see `FileChips`); `false` shows HTML as source only. */
@@ -2704,7 +2767,7 @@ declare const AttachmentView: ({ attachment: a, files, labels, }: {
2704
2767
  * subagents, consent decisions — and the tokens it spent by kind. Every part
2705
2768
  * can be hidden, relabelled or rendered by the host.
2706
2769
  */
2707
- declare const MessageList: ({ messages, empty, showActivity, showToolCalls, showUsage, showThoughts, showNotes, showLearned, showTiers, showReplanFailed, showDecisions, showSearchResults, showSubagents, showMedia, showFileChips, files, htmlPreview, onShowFiles, renderFile, renderFileContent, renderMedia, renderSubagent, onStopSubagent, activityOpen, liveExtra, renderContent, renderMessage, renderAttachment, renderToolCall, renderToolCard, showToolCards, renderApp, showApps, imageViewer, renderImageViewer, readAloud, labels, className, }: MessageListProps) => react.JSX.Element | null;
2770
+ declare const MessageList: ({ messages, empty, showActivity, showToolCalls, showUsage, showThoughts, showNotes, showLearned, showTiers, showReplanFailed, showDecisions, showSearchResults, showSubagents, showMedia, showFileChips, showNamedFiles, files, htmlPreview, onShowFiles, renderFile, renderFileContent, renderMedia, renderSubagent, onStopSubagent, activityOpen, liveExtra, renderContent, renderMessage, renderAttachment, renderToolCall, renderToolCard, showToolCards, renderApp, showApps, imageViewer, renderImageViewer, readAloud, labels, className, }: MessageListProps) => react.JSX.Element | null;
2708
2771
 
2709
2772
  interface QuestionPromptProps {
2710
2773
  /**
@@ -2876,6 +2939,12 @@ interface AgentChatProps {
2876
2939
  * open (an inline preview - an `.html` file in a sandboxed frame) and download (default true).
2877
2940
  */
2878
2941
  showFileChips?: boolean;
2942
+ /**
2943
+ * The workspace files a finished answer names in its text without having written them (a path
2944
+ * in an inline code span or a Markdown link that is a file of `files`), as chips under it -
2945
+ * "2 files in this answer"; a picture opens in the image viewer. Default: `showFileChips`.
2946
+ */
2947
+ showNamedFiles?: MessageListProps['showNamedFiles'];
2879
2948
  /**
2880
2949
  * How an `.html` file is previewed: sandboxed, no network, scripts off by default;
2881
2950
  * `{ scripts: true }` lets its inline scripts run; `false` shows HTML as source only.
@@ -3280,6 +3349,62 @@ interface SourceToken {
3280
3349
  */
3281
3350
  declare const tokenizeHtml: (source: string) => SourceToken[];
3282
3351
 
3352
+ /**
3353
+ * The workspace files an answer NAMES in its text (`<MessageList showNamedFiles>`): pure, no
3354
+ * React, no DOM, no import. What it reads as a path, exactly:
3355
+ *
3356
+ * - an inline code span whose whole content is an absolute path - `` `/attachments/a.png` ``
3357
+ * (one or more backticks, CommonMark's rule: closed by a run of the same length; the one space
3358
+ * inside each end is dropped);
3359
+ * - the destination of a Markdown link or image - `[a](/media/a.jpg)`, `![a](/media/a.jpg "t")`,
3360
+ * `[a](</notes/my notes.md>)` - percent-decoded.
3361
+ *
3362
+ * Nothing else: a path in plain words (`see /notes.md`), in a fenced code block (``` or ~~~ - a
3363
+ * listing, a command, an example: not something the answer hands over), in an indented block or
3364
+ * in a URL (`https://…`, `//host/…`) is not read. A path is absolute, one line, at most 512
3365
+ * characters, with no empty, `.` or `..` segment, no backslash or control character and no
3366
+ * trailing slash (a folder) - it is never normalised into another path: what is looked up is what
3367
+ * the answer wrote. Then {@link namedFilesOf} keeps only the paths that EXIST in the workspace's
3368
+ * listing - the one check that matters: a path that is not a file of the workspace is nothing.
3369
+ *
3370
+ * The scan is linear in the text, whatever the text holds (it runs while a message is drawn,
3371
+ * and the text is the model's - which a fetched page can steer): code spans by one pass over the
3372
+ * runs of backticks, links by a pattern that cannot backtrack across brackets, and no more than
3373
+ * {@link NAMED_FILES_TEXT_MAX} characters of it.
3374
+ */
3375
+ /** The most files an answer is shown with (see {@link namedFilesOf}). */
3376
+ declare const NAMED_FILES_MAX = 12;
3377
+ /** The most distinct paths kept from one text (a bound on what is looked up, not on the scan). */
3378
+ declare const NAMED_FILES_SCAN_MAX = 200;
3379
+ /**
3380
+ * The most of a text that is scanned: the first 100,000 characters. That is about 25,000 tokens -
3381
+ * more than an answer that hands files over is (above most models' default output limit for one
3382
+ * answer); past it, the text is a dump (a file pasted back, a runaway answer), whose paths are a
3383
+ * listing, not files handed over. It bounds the scan's (linear) work to a few milliseconds.
3384
+ */
3385
+ declare const NAMED_FILES_TEXT_MAX = 100000;
3386
+ /** `raw` as a workspace path, or `undefined` when it is not one (see the module's rules). */
3387
+ declare const workspacePathOf: (raw: string) => string | undefined;
3388
+ /**
3389
+ * The workspace paths a text names, in the order they appear, each once, at most
3390
+ * {@link NAMED_FILES_SCAN_MAX}. Whether they exist is {@link namedFilesOf}'s question.
3391
+ */
3392
+ declare const pathsNamedIn: (text: string) => string[];
3393
+ interface NamedFilesOptions {
3394
+ /** Paths left out - the files the answer wrote, the media it made: they have chips already. */
3395
+ exclude?: Iterable<string>;
3396
+ /** At most this many (default {@link NAMED_FILES_MAX}). */
3397
+ max?: number;
3398
+ }
3399
+ /**
3400
+ * The paths of `named` (from {@link pathsNamedIn}) that are files of the workspace - `exists`
3401
+ * answers from its listing, never by reading or fetching anything -, without `exclude`, in order,
3402
+ * at most `max` (default 12: each chip of a picture reads its bytes for the thumbnail, and an
3403
+ * answer that lists a folder of two hundred files would otherwise read them all - the chips are
3404
+ * for the files the answer hands over, not a second file browser; the Files panel has them all).
3405
+ */
3406
+ declare const namedFilesOf: (named: readonly string[], exists: (path: string) => boolean, { exclude, max }?: NamedFilesOptions) => string[];
3407
+
3283
3408
  /** One result of the core's `web_search` tool, as far as a UI shows it. */
3284
3409
  interface WebSearchResultView {
3285
3410
  title: string;
@@ -3551,5 +3676,5 @@ interface AppRequestPromptProps {
3551
3676
  */
3552
3677
  declare const AppRequestPrompt: ({ requests, onAnswer, renderRequest, labels, className, }: AppRequestPromptProps) => react.JSX.Element | null;
3553
3678
 
3554
- export { ASK_USER_TOOL_NAME, ATTACHMENT_BOUNDS, AgentChat, AgentComposer, AgentLabelsProvider, AgentProvider, AgentStatus, AgentUiState, ApiKeyForm, AppRequestAnswerOptions, AppRequestPrompt, AppRequestView, AppView, ApprovalModeSwitch, ApprovalView, AttachmentView, BudgetView, ChatAttachment, ChatHistoryList, ChatHistoryStore, ChatMessage, CompactionView, Composer, ContextMeter, DecisionView, ElicitationIssueKind, ElicitationOutcomeReason, ElicitationPrompt, ElicitationView, FILE_PREVIEW_CHARS, FOLLOW_LEAVE_PX, FOLLOW_REJOIN_PX, FRAME_MAX_HEIGHT, FRAME_MIN_HEIGHT, FileChip, FileChips, FilesPanel, GeneratedMedia, HTML_PREVIEW_MAX_CHARS, ImageThumb, ImageViewer, ImageViewerProvider, LearnedSkills, LessonView, McpAppFrame, McpAppHost, McpAppLine, McpAppSandboxOptions, McpAppSandboxReason, McpAppsConnectionLike, McpElicitationResult, MediaView, MemoryCard, MessageList, MicError, ModelLoadBar, ModelLoadState, PendingElicitation, PlanView, QUESTION_TIMEOUT_MS, QuestionPrompt, QuestionView, RECORDING_DEFAULT_MAX_MS, RECORDING_TYPES, RemoteRunView, SandboxedFrame, SourceView, SpeechOutputError, StepList, StepView, SubagentNode, SubagentRow, SubagentTree, SubagentView, ToolApprovalPrompt, ToolCallRow, ToolCallView, TranscriptBlock, TranscriptView, UsageBadge, UserNoteRow, UserNoteView, agentStateReducer, agentStatusOf, askUserOutputKept, askUserWith, attachmentKindOf, attachmentOverLimit, attachmentRefusal, attachmentTransformOf, attachmentsText, audioExtensionOf, audioTypeOf, buildSandboxedDocument, chatTitle, clampFrameHeight, createApprovalQueue, createAudioSpeaker, createBrowserSpeaker, createInitialAgentState, createQuestionQueue, createRecordingRecognizer, createWebLLMEngine, decisionNote, defaultLabels, downscaleImage, escapeAttribute, fileKindOf, fileNameOf, filterCommands, followsAfterResize, followsAfterScroll, formatClock, formatElapsed, imageExtensionOf, imageSizeOf, languageOfText, lessonsOf, linkedFilesOf, mediaFamilyOf, menuKeyTarget, menuSections, mergeChatRecord, mergeLabels, messageOverLimit, micProblemOf, micProblemText, newChatId, noticesOf, parseSlash, pendingApprovalsOf, pickRecordingType, questionChoiceOf, questionOtherOf, questionTimeoutOf, recordingSupported, sandboxTokens, sandboxedCsp, saveChat, scriptOfLanguage, scriptOfText, settleAudioDuration, speakableText, speechSynthesisSupported, splitForSpeech, startRecording, steerIntent, stopTracks, subagentTree, tokenizeHtml, unchangedSince, usageLine, useAgent, useAgentContext, useAudioRecorder, useChatHistory, useCredentials, useFollowScroll, useLabels, useLocalModel, useOptionalAgentContext, useReadAloud, useSpeechToText, useSpeechVoices, useVirtualFiles, useWebLLMModel, voiceFor, voiceMessageName, voicesOf, webSearchOf, withAttachments, withCspFirst, withPolicyFirst, withoutOwnWords };
3555
- export type { AgentAction, AgentChatClassNames, AgentChatComponents, AgentChatProps, AgentChatSlots, AgentComposerProps, AgentLabels, AgentLabelsOverride, AgentLabelsProviderProps, AgentProviderProps, ApiKeyFormProps, AppRequestPromptProps, ApprovalModeSwitchProps, ApprovalQueue, ApproveOptions, AttachmentBounds, AttachmentOverLimit, AttachmentTexts, AttachmentTransform, AudioLike, AudioSpeakerOptions, BrowserSpeakerOptions, ChatBase, ChatHistoryListProps, ChatHistoryStoreOptions, ChatRecord, ChatSummary, ComposerAttachment, ComposerModelChip, ComposerModelOption, ComposerNotice, ComposerProps, ComposerThinkingChip, ContextMeterProps, ConvertedFile, ConvertedImage, DownscaleOptions, ElicitationPromptProps, FileChipProps, FileChipsProps, FileKind, FilesPanelProps, GeneratedMediaProps, HtmlPreviewOptions, ImageSize, ImageThumbProps, ImageViewerProps, LearnedSkillsProps, LocalModelEngine, LocalModelLoadContext, LocalModelProgress, McpAppFrameProps, McpAppLineProps, MediaRecorderConstructorLike, MediaRecorderLike, MemoryCardProps, MenuSection, MessageListProps, MicProblem, ModelLoadBarProps, NoticeTexts, PendingQuestion, PlanViewProps, QuestionOutcomeReason, QuestionPromptProps, QuestionQueue, QuestionQueueOptions, ReadAloudOptions, ReadAloudState, RecordedAudio, Recording, RecordingDeps, RecordingRecognizerOptions, RenderImageViewer, RenderSubagent, RenderToolCall, RunGoalOptions, SandboxedDocumentOptions, SandboxedFrameProps, ScrollMeasure, SlashCommand, SourceToken, SourceViewProps, SpeakText, SpeakableOptions, SpeechPlayback, SpeechRecognizerLike, SpeechScript, SpeechSynthesisLike, SpeechUtteranceLike, SpeechVoiceLike, StartRecordingOptions, SteerIntent, StepListProps, SubagentRowProps, SubagentTreeProps, SynthesizeSpeech, ToolApprovalPromptProps, ToolCallRowProps, TranscribeAudio, TranscriptBlockProps, UsageBadgeProps, UseAgentOptions, UseAgentReturn, UseAudioRecorderOptions, UseAudioRecorderReturn, UseChatHistoryOptions, UseChatHistoryReturn, UseCredentialsReturn, UseLocalModelOptions, UseLocalModelReturn, UseReadAloudReturn, UseSpeechToTextOptions, UseSpeechToTextReturn, UseVirtualFilesReturn, UseWebLLMModelOptions, UseWebLLMModelReturn, ViewerImage, WebLLMModelFactory, WebSearchResultView, WebSearchView };
3679
+ export { ASK_USER_TOOL_NAME, ATTACHMENT_BOUNDS, AgentChat, AgentComposer, AgentLabelsProvider, AgentProvider, AgentStatus, AgentUiState, ApiKeyForm, AppRequestAnswerOptions, AppRequestPrompt, AppRequestView, AppView, ApprovalModeSwitch, ApprovalView, AttachmentView, BudgetView, ChatAttachment, ChatHistoryList, ChatHistoryStore, ChatMessage, CompactionView, Composer, ContextMeter, DecisionView, ElicitationIssueKind, ElicitationOutcomeReason, ElicitationPrompt, ElicitationView, FILE_PREVIEW_CHARS, FOLLOW_LEAVE_PX, FOLLOW_REJOIN_PX, FRAME_MAX_HEIGHT, FRAME_MIN_HEIGHT, FileChip, FileChips, FilesPanel, GeneratedMedia, HTML_PREVIEW_MAX_CHARS, ImageThumb, ImageViewer, ImageViewerProvider, LearnedSkills, LessonView, McpAppFrame, McpAppHost, McpAppLine, McpAppSandboxOptions, McpAppSandboxReason, McpAppsConnectionLike, McpElicitationResult, MediaView, MemoryCard, MessageList, MicError, ModelLoadBar, ModelLoadState, NAMED_FILES_MAX, NAMED_FILES_SCAN_MAX, NAMED_FILES_TEXT_MAX, NamedFileChips, PendingElicitation, PlanView, QUESTION_TIMEOUT_MS, QuestionPrompt, QuestionView, RECORDING_DEFAULT_MAX_MS, RECORDING_TYPES, RemoteRunView, SandboxedFrame, SourceView, SpeechOutputError, StepList, StepView, SubagentNode, SubagentRow, SubagentTree, SubagentView, ToolApprovalPrompt, ToolCallRow, ToolCallView, TranscriptBlock, TranscriptView, UsageBadge, UserNoteRow, UserNoteView, agentStateReducer, agentStatusOf, askUserOutputKept, askUserWith, attachmentKindOf, attachmentOverLimit, attachmentRefusal, attachmentTransformOf, attachmentsText, audioExtensionOf, audioTypeOf, buildSandboxedDocument, chatTitle, clampFrameHeight, createApprovalQueue, createAudioSpeaker, createBrowserSpeaker, createInitialAgentState, createQuestionQueue, createRecordingRecognizer, createWebLLMEngine, decisionNote, defaultLabels, downscaleImage, escapeAttribute, fileKindOf, fileNameOf, filterCommands, followsAfterResize, followsAfterScroll, formatClock, formatElapsed, imageExtensionOf, imageSizeOf, languageOfText, lessonsOf, linkedFilesOf, mediaFamilyOf, menuKeyTarget, menuSections, mergeChatRecord, mergeLabels, messageOverLimit, micProblemOf, micProblemText, namedFilesOf, newChatId, noticesOf, parseSlash, pathsNamedIn, pendingApprovalsOf, pickRecordingType, questionChoiceOf, questionOtherOf, questionTimeoutOf, recordingSupported, sandboxTokens, sandboxedCsp, saveChat, scriptOfLanguage, scriptOfText, settleAudioDuration, speakableText, speechSynthesisSupported, splitForSpeech, startRecording, steerIntent, stopTracks, subagentTree, tokenizeHtml, unchangedSince, usageLine, useAgent, useAgentContext, useAudioRecorder, useChatHistory, useCredentials, useFollowScroll, useLabels, useLocalModel, useOptionalAgentContext, useReadAloud, useSpeechToText, useSpeechVoices, useVirtualFiles, useWebLLMModel, voiceFor, voiceMessageName, voicesOf, webSearchOf, withAttachments, withCspFirst, withPolicyFirst, withoutOwnWords, workspacePathOf };
3680
+ export type { AgentAction, AgentChatClassNames, AgentChatComponents, AgentChatProps, AgentChatSlots, AgentComposerProps, AgentLabels, AgentLabelsOverride, AgentLabelsProviderProps, AgentProviderProps, ApiKeyFormProps, AppRequestPromptProps, ApprovalModeSwitchProps, ApprovalQueue, ApproveOptions, AttachmentBounds, AttachmentOverLimit, AttachmentTexts, AttachmentTransform, AudioLike, AudioSpeakerOptions, BrowserSpeakerOptions, ChatBase, ChatHistoryListProps, ChatHistoryStoreOptions, ChatRecord, ChatSummary, ComposerAttachment, ComposerModelChip, ComposerModelOption, ComposerNotice, ComposerProps, ComposerThinkingChip, ContextMeterProps, ConvertedFile, ConvertedImage, DownscaleOptions, ElicitationPromptProps, FileChipProps, FileChipsProps, FileKind, FilesPanelProps, GeneratedMediaProps, HtmlPreviewOptions, ImageSize, ImageThumbProps, ImageViewerProps, LearnedSkillsProps, LocalModelEngine, LocalModelLoadContext, LocalModelProgress, McpAppFrameProps, McpAppLineProps, MediaRecorderConstructorLike, MediaRecorderLike, MemoryCardProps, MenuSection, MessageListProps, MicProblem, ModelLoadBarProps, NamedFileChipsProps, NamedFilesOptions, NoticeTexts, PendingQuestion, PlanViewProps, QuestionOutcomeReason, QuestionPromptProps, QuestionQueue, QuestionQueueOptions, ReadAloudOptions, ReadAloudState, RecordedAudio, Recording, RecordingDeps, RecordingRecognizerOptions, RenderImageViewer, RenderSubagent, RenderToolCall, RunGoalOptions, SandboxedDocumentOptions, SandboxedFrameProps, ScrollMeasure, SlashCommand, SourceToken, SourceViewProps, SpeakText, SpeakableOptions, SpeechPlayback, SpeechRecognizerLike, SpeechScript, SpeechSynthesisLike, SpeechUtteranceLike, SpeechVoiceLike, StartRecordingOptions, SteerIntent, StepListProps, SubagentRowProps, SubagentTreeProps, SynthesizeSpeech, ToolApprovalPromptProps, ToolCallRowProps, TranscribeAudio, TranscriptBlockProps, UsageBadgeProps, UseAgentOptions, UseAgentReturn, UseAudioRecorderOptions, UseAudioRecorderReturn, UseChatHistoryOptions, UseChatHistoryReturn, UseCredentialsReturn, UseLocalModelOptions, UseLocalModelReturn, UseReadAloudReturn, UseSpeechToTextOptions, UseSpeechToTextReturn, UseVirtualFilesReturn, UseWebLLMModelOptions, UseWebLLMModelReturn, ViewerImage, WebLLMModelFactory, WebSearchResultView, WebSearchView };
package/dist/index.d.ts CHANGED
@@ -2,9 +2,9 @@ import * as react from 'react';
2
2
  import { DependencyList, ReactNode, RefObject, ComponentType, CSSProperties } from 'react';
3
3
  import { AskUserRequest, AskUserContext, AskUserAnswer, AskUserConfig, AskUserHandler, AgentEvent, RunFile, RunResult, Agent, ToolApprovalMode, AppToolCallRequest, AppSamplingRequest, AppSamplingView, AppSamplingResult, CompactResult, IUsage, AgentEventHandler, BrowserAgentConfig, VirtualFileInfo, VirtualFileSystem, CredentialStore, createWebLLMModel, WebLLMModelOptions, ModelTier, TierReason, EscalationReason, DecisionFallbackReason, Skill, IPlan, ToolApprovalRequest, ToolApprovalContext, ToolApprovalDecision } from '@dudko.dev/agent-web';
4
4
  export { Agent, AgentEvent, AgentEventHandler, AgentLoggerSink, AgentTool, AgentToolSet, AppToolCallRequest, AskUserAnswer, AskUserConfig, AskUserContext, AskUserHandler, AskUserOption, AskUserRequest, AttachmentsNotSupportedError, BrowserAgentConfig, CompactResult, CompactionConfig, CredentialStore, FileToolsOptions, IPlan, IPlanStep, IStepResult, IToolCall, IUsage, ImagesNotSupportedError, IndexedDBStore, LearningConfig, LogLevel, McpAppCsp, McpAppResource, McpAppToolResult, MemoryCredentialStore, MemorySkillStore, MemoryStore, ModelInput, ProviderModelSpec, ProviderType, RunControl, RunFile, RunOptions, RunResult, SessionBusyError, SessionHolder, SessionLockMode, SessionRunState, SessionWatch, Skill, SkillStore, StorageChange, StorageChangeKind, StorageChangeOp, SubagentInfo, SubagentToolOptions, SubagentWorkerConfig, ThinkingLevel, ThinkingSetting, TokenLimits, ToolApprovalConfig, ToolApprovalContext, ToolApprovalMode, ToolApprovalRequest, VaultCredentialStore, VfsSkillStore, VirtualFile, VirtualFileInfo, VirtualFileSystem, WatchSessionOptions, createAgent, createFileTools, createRunControl, createSubagentTool, createWebLLMModel, defineSkill, defineTool, isWebGPUAvailable, loadSkillFromUrl, markReadOnly, onStorageChange, parseSkillMarkdown, postStorageChange, preloadWebLLMModel, serveSubagentWorker, supportsImages, supportsPdf, unloadWebLLMModel, watchSession } from '@dudko.dev/agent-web';
5
- import { A as AgentUiState, C as ChatAttachment, a as ApprovalView, b as ChatMessage, c as AgentStatus, E as ElicitationIssueKind, d as ElicitationOutcomeReason, M as McpAppSandboxReason, R as RemoteRunView, L as LessonView, S as SubagentView, e as SubagentNode, P as PendingElicitation, f as McpElicitationResult, g as ElicitationView, W as WrittenFileView, T as ToolCallView, h as StepView, U as UserNoteView, D as DecisionView, i as MediaView, j as AppView, Q as QuestionView, k as McpAppsConnectionLike, l as McpAppSandboxOptions, m as AppRequestView, n as TranscriptView, B as BudgetView, o as CompactionView, p as ModelLoadState, q as McpAppHost, r as AppRequestAnswerOptions } from './elicitation-Dp6Fi6ZA.js';
6
- export { s as APP_DEFAULT_HEIGHT, t as APP_MAX_HEIGHT, u as APP_MIN_HEIGHT, v as AppDownload, w as AppDownloadView, x as AppFileSaverEnv, y as AppLink, z as AppReadyDownload, F as AppResourceReader, G as ElicitationControl, H as ElicitationDraft, I as ElicitationDraftValue, J as ElicitationField, K as ElicitationFormOutcome, N as ElicitationIssue, O as ElicitationLink, V as ElicitationOption, X as FetchView, Y as MCP_APP_DISPLAY_MODES, Z as MCP_APP_MAX_ARGS_CHARS, _ as MCP_APP_MAX_DOWNLOAD_BYTES, $ as MCP_APP_MAX_FILE_NAME_CHARS, a0 as MCP_APP_MAX_IN_FLIGHT, a1 as MCP_APP_MAX_MESSAGE_CHARS, a2 as MCP_APP_MAX_URL_CHARS, a3 as MCP_APP_NOTIFICATIONS, a4 as MCP_APP_OPTIONAL_REQUESTS, a5 as MCP_APP_PROTOCOL_VERSION, a6 as MCP_APP_REFUSED, a7 as MCP_APP_REFUSED_DOWNLOAD_EXTENSIONS, a8 as MCP_APP_REFUSED_DOWNLOAD_TYPES, a9 as MCP_APP_RELAY, aa as MCP_APP_REQUESTS, ab as MCP_APP_SANDBOX_FRAME_TOKENS, ac as MCP_APP_SANDBOX_GRACE_MS, ad as MCP_APP_SANDBOX_SERVER, ae as MCP_APP_SANDBOX_TIMEOUT_MS, af as McpAppBridge, ag as McpAppBridgeHandlers, ah as McpAppBridgeOptions, ai as McpAppDisplayMode, aj as McpAppRpcError, ak as McpAppRpcMessage, al as McpAppSandboxInput, am as McpAppSandboxLink, an as McpAppSandboxLinkOptions, ao as McpAppSandboxTarget, ap as McpElicitationFieldSchema, aq as McpElicitationRequest, ar as McpElicitationSchema, as as QueuedMessageView, at as ReplanState, au as SkillConsentView, av as StepEscalationView, aw as UseMcpAppHostOptions, ax as appDisplayModeAllowed, ay as appDownloadOf, az as appDownloadRefusal, aA as appFileExtensionOf, aB as appFileNameOf, aC as appGestureOf, aD as appLinkOf, aE as appMessageTextOf, aF as appMimeTypeOf, aG as appSamplingErrorOf, aH as buildMcpAppDocument, aI as buildMcpAppSandboxShell, aJ as clampAppHeight, aK as elicitationFields, aL as elicitationFormAnswer, aM as elicitationInitialDraft, aN as elicitationLink, aO as formatCountdown, aP as grantedAppCsp, aQ as mcpAppCsp, aR as mcpAppHostCapabilities, aS as mcpAppSandboxProxyUrl, aT as mcpAppSandboxShellCsp, aU as mcpAppSandboxTarget, aV as resolveAppDownload, aW as saveAppFile, aX as useMcpAppHost } from './elicitation-Dp6Fi6ZA.js';
7
- export { M as MCP_APP_POLICY_TOKEN_MAX_CHARS, a as MCP_APP_SANDBOX_PROXY_READY, b as MCP_APP_SANDBOX_RESOURCE_READY, i as isMcpAppSandboxMessage, m as mcpAppPolicyToken } from './mcp-app-policy-DIUmGPJP.js';
5
+ import { A as AgentUiState, C as ChatAttachment, a as ApprovalView, b as ChatMessage, c as AgentStatus, E as ElicitationIssueKind, d as ElicitationOutcomeReason, M as McpAppSandboxReason, R as RemoteRunView, L as LessonView, S as SubagentView, e as SubagentNode, P as PendingElicitation, f as McpElicitationResult, g as ElicitationView, W as WrittenFileView, T as ToolCallView, h as StepView, U as UserNoteView, D as DecisionView, i as MediaView, j as AppView, Q as QuestionView, k as McpAppsConnectionLike, l as McpAppSandboxOptions, m as AppRequestView, n as TranscriptView, B as BudgetView, o as CompactionView, p as ModelLoadState, q as McpAppHost, r as AppRequestAnswerOptions } from './elicitation-rJu93Z3o.js';
6
+ export { s as APP_DEFAULT_HEIGHT, t as APP_MAX_HEIGHT, u as APP_MIN_HEIGHT, v as AppDownload, w as AppDownloadView, x as AppFileSaverEnv, y as AppLink, z as AppReadyDownload, F as AppResourceReader, G as ElicitationControl, H as ElicitationDraft, I as ElicitationDraftValue, J as ElicitationField, K as ElicitationFormOutcome, N as ElicitationIssue, O as ElicitationLink, V as ElicitationOption, X as FetchView, Y as MCP_APP_DISPLAY_MODES, Z as MCP_APP_MAX_ARGS_CHARS, _ as MCP_APP_MAX_DOWNLOAD_BYTES, $ as MCP_APP_MAX_FILE_NAME_CHARS, a0 as MCP_APP_MAX_IN_FLIGHT, a1 as MCP_APP_MAX_MESSAGE_CHARS, a2 as MCP_APP_MAX_URL_CHARS, a3 as MCP_APP_NOTIFICATIONS, a4 as MCP_APP_OPTIONAL_REQUESTS, a5 as MCP_APP_PROTOCOL_VERSION, a6 as MCP_APP_REFUSED, a7 as MCP_APP_REFUSED_DOWNLOAD_EXTENSIONS, a8 as MCP_APP_REFUSED_DOWNLOAD_TYPES, a9 as MCP_APP_RELAY, aa as MCP_APP_REQUESTS, ab as MCP_APP_SANDBOX_FRAME_TOKENS, ac as MCP_APP_SANDBOX_GRACE_MS, ad as MCP_APP_SANDBOX_SERVER, ae as MCP_APP_SANDBOX_TIMEOUT_MS, af as McpAppBridge, ag as McpAppBridgeHandlers, ah as McpAppBridgeOptions, ai as McpAppDisplayMode, aj as McpAppRpcError, ak as McpAppRpcMessage, al as McpAppSandboxInput, am as McpAppSandboxLink, an as McpAppSandboxLinkOptions, ao as McpAppSandboxTarget, ap as McpElicitationFieldSchema, aq as McpElicitationRequest, ar as McpElicitationSchema, as as QueuedMessageView, at as ReplanState, au as SkillConsentView, av as StepEscalationView, aw as UseMcpAppHostOptions, ax as appDisplayModeAllowed, ay as appDownloadOf, az as appDownloadRefusal, aA as appFileExtensionOf, aB as appFileNameOf, aC as appGestureOf, aD as appLinkOf, aE as appMessageTextOf, aF as appMimeTypeOf, aG as appSamplingErrorOf, aH as buildMcpAppDocument, aI as buildMcpAppSandboxShell, aJ as clampAppHeight, aK as elicitationFields, aL as elicitationFormAnswer, aM as elicitationInitialDraft, aN as elicitationLink, aO as formatCountdown, aP as grantedAppCsp, aQ as mcpAppCsp, aR as mcpAppHostCapabilities, aS as mcpAppSandboxProxyUrl, aT as mcpAppSandboxShellCsp, aU as mcpAppSandboxTarget, aV as resolveAppDownload, aW as saveAppFile, aX as useMcpAppHost } from './elicitation-rJu93Z3o.js';
7
+ export { M as MCP_APP_POLICY_TOKEN_MAX_CHARS, a as MCP_APP_SANDBOX_PROXY_READY, b as MCP_APP_SANDBOX_RESOURCE_READY, c as MCP_APP_SCHEME_PARAM, d as McpAppColorScheme, i as isMcpAppSandboxMessage, m as mcpAppColorScheme, e as mcpAppPolicyToken } from './mcp-app-policy-BhBIsbBy.js';
8
8
 
9
9
  /**
10
10
  * The model asks the person ONE closed question (the core's `ask_user`, `config.askUser`): the
@@ -447,7 +447,9 @@ declare const saveChat: (store: ChatHistoryStore, view: ChatRecord, base: ChatBa
447
447
  * notices), the open chat is read again when another tab saved it and nothing runs here, and a
448
448
  * run followed from another tab (`agent.remote`) is never saved from here - its own tab saves it.
449
449
  * A turn of this tab's is saved even when such a run reached it before the save began (a tab the
450
- * browser froze, waking), and keeps its place among the other tab's turns (`mergeChatRecord`).
450
+ * browser froze, waking), and keeps its place among the other tab's turns (`mergeChatRecord`); a
451
+ * read of the chat again (another tab's save notice, a followed run's end) never replaces such a
452
+ * turn - it is saved first, merged, and the merged record shown.
451
453
  */
452
454
  declare const useChatHistory: (agent: UseAgentReturn, options?: UseChatHistoryOptions) => UseChatHistoryReturn;
453
455
 
@@ -1369,6 +1371,11 @@ interface AgentLabels {
1369
1371
  dictate: string;
1370
1372
  dictateTitle: string;
1371
1373
  stopDictation: string;
1374
+ /**
1375
+ * The mic button's name while it listens: that it listens, and that a tap finishes (the title
1376
+ * stays `stopDictation`).
1377
+ */
1378
+ micListening: string;
1372
1379
  microphone: string;
1373
1380
  /** While a recording recognizer waits for its model (`useSpeechToText().finishing`). */
1374
1381
  transcribing: string;
@@ -1572,6 +1579,11 @@ interface AgentLabels {
1572
1579
  readAloudFailed: string;
1573
1580
  /** Above the chips: "3 files written in this turn". */
1574
1581
  filesWritten: (n: number) => string;
1582
+ /**
1583
+ * Above the chips of the workspace files an answer NAMES (`showNamedFiles`) - it did not write
1584
+ * them: "2 files in this answer".
1585
+ */
1586
+ filesNamed: (n: number) => string;
1575
1587
  /** In the activity summary: "3 files". */
1576
1588
  filesCount: (n: number) => string;
1577
1589
  /** The link that opens the Files panel. */
@@ -2402,6 +2414,14 @@ interface FileChipsProps {
2402
2414
  files?: VirtualFileSystem;
2403
2415
  /** The line above the chips - "3 files written in this turn" (default true). */
2404
2416
  showHeader?: boolean;
2417
+ /** That line's words in place of `filesWritten` (the named files' `filesNamed`). */
2418
+ heading?: ReactNode;
2419
+ /**
2420
+ * A picture opens in the image viewer over the chat (`ImageViewer`, with the other pictures of
2421
+ * its message) instead of inline under the chips (default false; inline all the same while the
2422
+ * viewer is off - `imageViewer={false}`).
2423
+ */
2424
+ imagesInViewer?: boolean;
2405
2425
  /** Shows a "Show in Files" link in that line. */
2406
2426
  onShowFiles?: () => void;
2407
2427
  /**
@@ -2430,7 +2450,7 @@ interface FileChipsProps {
2430
2450
  * a renderer), a picture as a picture, and an `.html` page in a sandboxed frame with a
2431
2451
  * Preview / Source switch (see `SandboxedFrame`).
2432
2452
  */
2433
- declare const FileChips: ({ written, files: vfs, showHeader, onShowFiles, htmlPreview, renderFile, renderFileContent, previewChars, defaultOpen, labels, className, }: FileChipsProps) => react.JSX.Element | null;
2453
+ declare const FileChips: ({ written, files: vfs, showHeader, heading, imagesInViewer, onShowFiles, htmlPreview, renderFile, renderFileContent, previewChars, defaultOpen, labels, className, }: FileChipsProps) => react.JSX.Element | null;
2434
2454
  interface FileChipProps {
2435
2455
  written: WrittenFileView;
2436
2456
  /** The type and size now (default: what the turn recorded). */
@@ -2442,10 +2462,43 @@ interface FileChipProps {
2442
2462
  gone?: boolean;
2443
2463
  open?: boolean;
2444
2464
  onToggle?: () => void;
2465
+ /**
2466
+ * A picture's thumbnail is a button that opens the image viewer, and so is its open button (no
2467
+ * inline preview: `onToggle` is not called for it) - while the viewer is on
2468
+ * (`ImageViewerProvider`); with it off, the inline preview as without `viewer`.
2469
+ */
2470
+ viewer?: boolean;
2445
2471
  labels?: AgentLabelsOverride;
2446
2472
  }
2447
2473
  /** One file: icon (a thumbnail for a picture), name, kind · size, open, download. */
2448
- declare const FileChip: ({ written, mediaType, bytes, files: vfs, gone, open, onToggle, labels, }: FileChipProps) => react.JSX.Element;
2474
+ declare const FileChip: ({ written, mediaType, bytes, files: vfs, gone, open, onToggle, viewer, labels, }: FileChipProps) => react.JSX.Element;
2475
+ interface NamedFileChipsProps {
2476
+ /** The answer's text (`ChatMessage.content`), read by `pathsNamedIn`. */
2477
+ text: string;
2478
+ /** The workspace: the only place a named path is looked up. Without it nothing is shown. */
2479
+ files?: VirtualFileSystem;
2480
+ /** Paths left out: the files the answer wrote, the media it made (they have their chips). */
2481
+ exclude?: Iterable<string>;
2482
+ /** At most this many chips (default `NAMED_FILES_MAX`, 12). */
2483
+ max?: number;
2484
+ /** The header line (default true). */
2485
+ showHeader?: boolean;
2486
+ htmlPreview?: HtmlPreviewOptions | false;
2487
+ renderFile?: FileChipsProps['renderFile'];
2488
+ renderFileContent?: FileChipsProps['renderFileContent'];
2489
+ labels?: AgentLabelsOverride;
2490
+ className?: string;
2491
+ }
2492
+ /**
2493
+ * The workspace files an answer names in its text - a path in an inline code span or as a
2494
+ * Markdown link (`pathsNamedIn`) - as chips under it, like the files it wrote: only a path that
2495
+ * is a file of the workspace's listing now (nothing is read to find out, nothing fetched), in
2496
+ * the order named, at most `max`. One that was shown and is then deleted stays, as gone. A
2497
+ * picture opens in the image viewer (inline, as the rest, with `imageViewer={false}`); the rest
2498
+ * as `FileChips` previews them. Under `<MessageList>` it reads the transcript's one listing of
2499
+ * the workspace, and draws nothing - no chip, no hook of a chip - unless a path it names is in it.
2500
+ */
2501
+ declare const NamedFileChips: (props: NamedFileChipsProps) => react.JSX.Element | null;
2449
2502
 
2450
2503
  /** Render a node yourself; `fallback` is the built-in `<li>` (with its children) — return it, or your own `<li>`. */
2451
2504
  type RenderSubagent = (node: SubagentNode, fallback: ReactNode) => ReactNode;
@@ -2617,6 +2670,16 @@ interface MessageListProps {
2617
2670
  * an `.html` file in a sandboxed frame) and download (default true). Needs `files`.
2618
2671
  */
2619
2672
  showFileChips?: boolean;
2673
+ /**
2674
+ * The workspace files a finished answer NAMES without having written them - a path in an
2675
+ * inline code span or a Markdown link (`pathsNamedIn`): an attachment, a picture of an earlier
2676
+ * turn, a file a search found - as chips under it, after the written ones ("2 files in this
2677
+ * answer"): only a path that is a file of `files` now, in the order named, at most 12; a
2678
+ * picture opens in the image viewer. Default: `showFileChips` (a host that hides file chips
2679
+ * gets no new ones). A file the answer wrote is left out only while its written chip is shown.
2680
+ * Needs `files`.
2681
+ */
2682
+ showNamedFiles?: boolean;
2620
2683
  /** The workspace generated and written files are read from (the core's `VirtualFileSystem`). */
2621
2684
  files?: VirtualFileSystem;
2622
2685
  /** How an `.html` file is previewed (see `FileChips`); `false` shows HTML as source only. */
@@ -2704,7 +2767,7 @@ declare const AttachmentView: ({ attachment: a, files, labels, }: {
2704
2767
  * subagents, consent decisions — and the tokens it spent by kind. Every part
2705
2768
  * can be hidden, relabelled or rendered by the host.
2706
2769
  */
2707
- declare const MessageList: ({ messages, empty, showActivity, showToolCalls, showUsage, showThoughts, showNotes, showLearned, showTiers, showReplanFailed, showDecisions, showSearchResults, showSubagents, showMedia, showFileChips, files, htmlPreview, onShowFiles, renderFile, renderFileContent, renderMedia, renderSubagent, onStopSubagent, activityOpen, liveExtra, renderContent, renderMessage, renderAttachment, renderToolCall, renderToolCard, showToolCards, renderApp, showApps, imageViewer, renderImageViewer, readAloud, labels, className, }: MessageListProps) => react.JSX.Element | null;
2770
+ declare const MessageList: ({ messages, empty, showActivity, showToolCalls, showUsage, showThoughts, showNotes, showLearned, showTiers, showReplanFailed, showDecisions, showSearchResults, showSubagents, showMedia, showFileChips, showNamedFiles, files, htmlPreview, onShowFiles, renderFile, renderFileContent, renderMedia, renderSubagent, onStopSubagent, activityOpen, liveExtra, renderContent, renderMessage, renderAttachment, renderToolCall, renderToolCard, showToolCards, renderApp, showApps, imageViewer, renderImageViewer, readAloud, labels, className, }: MessageListProps) => react.JSX.Element | null;
2708
2771
 
2709
2772
  interface QuestionPromptProps {
2710
2773
  /**
@@ -2876,6 +2939,12 @@ interface AgentChatProps {
2876
2939
  * open (an inline preview - an `.html` file in a sandboxed frame) and download (default true).
2877
2940
  */
2878
2941
  showFileChips?: boolean;
2942
+ /**
2943
+ * The workspace files a finished answer names in its text without having written them (a path
2944
+ * in an inline code span or a Markdown link that is a file of `files`), as chips under it -
2945
+ * "2 files in this answer"; a picture opens in the image viewer. Default: `showFileChips`.
2946
+ */
2947
+ showNamedFiles?: MessageListProps['showNamedFiles'];
2879
2948
  /**
2880
2949
  * How an `.html` file is previewed: sandboxed, no network, scripts off by default;
2881
2950
  * `{ scripts: true }` lets its inline scripts run; `false` shows HTML as source only.
@@ -3280,6 +3349,62 @@ interface SourceToken {
3280
3349
  */
3281
3350
  declare const tokenizeHtml: (source: string) => SourceToken[];
3282
3351
 
3352
+ /**
3353
+ * The workspace files an answer NAMES in its text (`<MessageList showNamedFiles>`): pure, no
3354
+ * React, no DOM, no import. What it reads as a path, exactly:
3355
+ *
3356
+ * - an inline code span whose whole content is an absolute path - `` `/attachments/a.png` ``
3357
+ * (one or more backticks, CommonMark's rule: closed by a run of the same length; the one space
3358
+ * inside each end is dropped);
3359
+ * - the destination of a Markdown link or image - `[a](/media/a.jpg)`, `![a](/media/a.jpg "t")`,
3360
+ * `[a](</notes/my notes.md>)` - percent-decoded.
3361
+ *
3362
+ * Nothing else: a path in plain words (`see /notes.md`), in a fenced code block (``` or ~~~ - a
3363
+ * listing, a command, an example: not something the answer hands over), in an indented block or
3364
+ * in a URL (`https://…`, `//host/…`) is not read. A path is absolute, one line, at most 512
3365
+ * characters, with no empty, `.` or `..` segment, no backslash or control character and no
3366
+ * trailing slash (a folder) - it is never normalised into another path: what is looked up is what
3367
+ * the answer wrote. Then {@link namedFilesOf} keeps only the paths that EXIST in the workspace's
3368
+ * listing - the one check that matters: a path that is not a file of the workspace is nothing.
3369
+ *
3370
+ * The scan is linear in the text, whatever the text holds (it runs while a message is drawn,
3371
+ * and the text is the model's - which a fetched page can steer): code spans by one pass over the
3372
+ * runs of backticks, links by a pattern that cannot backtrack across brackets, and no more than
3373
+ * {@link NAMED_FILES_TEXT_MAX} characters of it.
3374
+ */
3375
+ /** The most files an answer is shown with (see {@link namedFilesOf}). */
3376
+ declare const NAMED_FILES_MAX = 12;
3377
+ /** The most distinct paths kept from one text (a bound on what is looked up, not on the scan). */
3378
+ declare const NAMED_FILES_SCAN_MAX = 200;
3379
+ /**
3380
+ * The most of a text that is scanned: the first 100,000 characters. That is about 25,000 tokens -
3381
+ * more than an answer that hands files over is (above most models' default output limit for one
3382
+ * answer); past it, the text is a dump (a file pasted back, a runaway answer), whose paths are a
3383
+ * listing, not files handed over. It bounds the scan's (linear) work to a few milliseconds.
3384
+ */
3385
+ declare const NAMED_FILES_TEXT_MAX = 100000;
3386
+ /** `raw` as a workspace path, or `undefined` when it is not one (see the module's rules). */
3387
+ declare const workspacePathOf: (raw: string) => string | undefined;
3388
+ /**
3389
+ * The workspace paths a text names, in the order they appear, each once, at most
3390
+ * {@link NAMED_FILES_SCAN_MAX}. Whether they exist is {@link namedFilesOf}'s question.
3391
+ */
3392
+ declare const pathsNamedIn: (text: string) => string[];
3393
+ interface NamedFilesOptions {
3394
+ /** Paths left out - the files the answer wrote, the media it made: they have chips already. */
3395
+ exclude?: Iterable<string>;
3396
+ /** At most this many (default {@link NAMED_FILES_MAX}). */
3397
+ max?: number;
3398
+ }
3399
+ /**
3400
+ * The paths of `named` (from {@link pathsNamedIn}) that are files of the workspace - `exists`
3401
+ * answers from its listing, never by reading or fetching anything -, without `exclude`, in order,
3402
+ * at most `max` (default 12: each chip of a picture reads its bytes for the thumbnail, and an
3403
+ * answer that lists a folder of two hundred files would otherwise read them all - the chips are
3404
+ * for the files the answer hands over, not a second file browser; the Files panel has them all).
3405
+ */
3406
+ declare const namedFilesOf: (named: readonly string[], exists: (path: string) => boolean, { exclude, max }?: NamedFilesOptions) => string[];
3407
+
3283
3408
  /** One result of the core's `web_search` tool, as far as a UI shows it. */
3284
3409
  interface WebSearchResultView {
3285
3410
  title: string;
@@ -3551,5 +3676,5 @@ interface AppRequestPromptProps {
3551
3676
  */
3552
3677
  declare const AppRequestPrompt: ({ requests, onAnswer, renderRequest, labels, className, }: AppRequestPromptProps) => react.JSX.Element | null;
3553
3678
 
3554
- export { ASK_USER_TOOL_NAME, ATTACHMENT_BOUNDS, AgentChat, AgentComposer, AgentLabelsProvider, AgentProvider, AgentStatus, AgentUiState, ApiKeyForm, AppRequestAnswerOptions, AppRequestPrompt, AppRequestView, AppView, ApprovalModeSwitch, ApprovalView, AttachmentView, BudgetView, ChatAttachment, ChatHistoryList, ChatHistoryStore, ChatMessage, CompactionView, Composer, ContextMeter, DecisionView, ElicitationIssueKind, ElicitationOutcomeReason, ElicitationPrompt, ElicitationView, FILE_PREVIEW_CHARS, FOLLOW_LEAVE_PX, FOLLOW_REJOIN_PX, FRAME_MAX_HEIGHT, FRAME_MIN_HEIGHT, FileChip, FileChips, FilesPanel, GeneratedMedia, HTML_PREVIEW_MAX_CHARS, ImageThumb, ImageViewer, ImageViewerProvider, LearnedSkills, LessonView, McpAppFrame, McpAppHost, McpAppLine, McpAppSandboxOptions, McpAppSandboxReason, McpAppsConnectionLike, McpElicitationResult, MediaView, MemoryCard, MessageList, MicError, ModelLoadBar, ModelLoadState, PendingElicitation, PlanView, QUESTION_TIMEOUT_MS, QuestionPrompt, QuestionView, RECORDING_DEFAULT_MAX_MS, RECORDING_TYPES, RemoteRunView, SandboxedFrame, SourceView, SpeechOutputError, StepList, StepView, SubagentNode, SubagentRow, SubagentTree, SubagentView, ToolApprovalPrompt, ToolCallRow, ToolCallView, TranscriptBlock, TranscriptView, UsageBadge, UserNoteRow, UserNoteView, agentStateReducer, agentStatusOf, askUserOutputKept, askUserWith, attachmentKindOf, attachmentOverLimit, attachmentRefusal, attachmentTransformOf, attachmentsText, audioExtensionOf, audioTypeOf, buildSandboxedDocument, chatTitle, clampFrameHeight, createApprovalQueue, createAudioSpeaker, createBrowserSpeaker, createInitialAgentState, createQuestionQueue, createRecordingRecognizer, createWebLLMEngine, decisionNote, defaultLabels, downscaleImage, escapeAttribute, fileKindOf, fileNameOf, filterCommands, followsAfterResize, followsAfterScroll, formatClock, formatElapsed, imageExtensionOf, imageSizeOf, languageOfText, lessonsOf, linkedFilesOf, mediaFamilyOf, menuKeyTarget, menuSections, mergeChatRecord, mergeLabels, messageOverLimit, micProblemOf, micProblemText, newChatId, noticesOf, parseSlash, pendingApprovalsOf, pickRecordingType, questionChoiceOf, questionOtherOf, questionTimeoutOf, recordingSupported, sandboxTokens, sandboxedCsp, saveChat, scriptOfLanguage, scriptOfText, settleAudioDuration, speakableText, speechSynthesisSupported, splitForSpeech, startRecording, steerIntent, stopTracks, subagentTree, tokenizeHtml, unchangedSince, usageLine, useAgent, useAgentContext, useAudioRecorder, useChatHistory, useCredentials, useFollowScroll, useLabels, useLocalModel, useOptionalAgentContext, useReadAloud, useSpeechToText, useSpeechVoices, useVirtualFiles, useWebLLMModel, voiceFor, voiceMessageName, voicesOf, webSearchOf, withAttachments, withCspFirst, withPolicyFirst, withoutOwnWords };
3555
- export type { AgentAction, AgentChatClassNames, AgentChatComponents, AgentChatProps, AgentChatSlots, AgentComposerProps, AgentLabels, AgentLabelsOverride, AgentLabelsProviderProps, AgentProviderProps, ApiKeyFormProps, AppRequestPromptProps, ApprovalModeSwitchProps, ApprovalQueue, ApproveOptions, AttachmentBounds, AttachmentOverLimit, AttachmentTexts, AttachmentTransform, AudioLike, AudioSpeakerOptions, BrowserSpeakerOptions, ChatBase, ChatHistoryListProps, ChatHistoryStoreOptions, ChatRecord, ChatSummary, ComposerAttachment, ComposerModelChip, ComposerModelOption, ComposerNotice, ComposerProps, ComposerThinkingChip, ContextMeterProps, ConvertedFile, ConvertedImage, DownscaleOptions, ElicitationPromptProps, FileChipProps, FileChipsProps, FileKind, FilesPanelProps, GeneratedMediaProps, HtmlPreviewOptions, ImageSize, ImageThumbProps, ImageViewerProps, LearnedSkillsProps, LocalModelEngine, LocalModelLoadContext, LocalModelProgress, McpAppFrameProps, McpAppLineProps, MediaRecorderConstructorLike, MediaRecorderLike, MemoryCardProps, MenuSection, MessageListProps, MicProblem, ModelLoadBarProps, NoticeTexts, PendingQuestion, PlanViewProps, QuestionOutcomeReason, QuestionPromptProps, QuestionQueue, QuestionQueueOptions, ReadAloudOptions, ReadAloudState, RecordedAudio, Recording, RecordingDeps, RecordingRecognizerOptions, RenderImageViewer, RenderSubagent, RenderToolCall, RunGoalOptions, SandboxedDocumentOptions, SandboxedFrameProps, ScrollMeasure, SlashCommand, SourceToken, SourceViewProps, SpeakText, SpeakableOptions, SpeechPlayback, SpeechRecognizerLike, SpeechScript, SpeechSynthesisLike, SpeechUtteranceLike, SpeechVoiceLike, StartRecordingOptions, SteerIntent, StepListProps, SubagentRowProps, SubagentTreeProps, SynthesizeSpeech, ToolApprovalPromptProps, ToolCallRowProps, TranscribeAudio, TranscriptBlockProps, UsageBadgeProps, UseAgentOptions, UseAgentReturn, UseAudioRecorderOptions, UseAudioRecorderReturn, UseChatHistoryOptions, UseChatHistoryReturn, UseCredentialsReturn, UseLocalModelOptions, UseLocalModelReturn, UseReadAloudReturn, UseSpeechToTextOptions, UseSpeechToTextReturn, UseVirtualFilesReturn, UseWebLLMModelOptions, UseWebLLMModelReturn, ViewerImage, WebLLMModelFactory, WebSearchResultView, WebSearchView };
3679
+ export { ASK_USER_TOOL_NAME, ATTACHMENT_BOUNDS, AgentChat, AgentComposer, AgentLabelsProvider, AgentProvider, AgentStatus, AgentUiState, ApiKeyForm, AppRequestAnswerOptions, AppRequestPrompt, AppRequestView, AppView, ApprovalModeSwitch, ApprovalView, AttachmentView, BudgetView, ChatAttachment, ChatHistoryList, ChatHistoryStore, ChatMessage, CompactionView, Composer, ContextMeter, DecisionView, ElicitationIssueKind, ElicitationOutcomeReason, ElicitationPrompt, ElicitationView, FILE_PREVIEW_CHARS, FOLLOW_LEAVE_PX, FOLLOW_REJOIN_PX, FRAME_MAX_HEIGHT, FRAME_MIN_HEIGHT, FileChip, FileChips, FilesPanel, GeneratedMedia, HTML_PREVIEW_MAX_CHARS, ImageThumb, ImageViewer, ImageViewerProvider, LearnedSkills, LessonView, McpAppFrame, McpAppHost, McpAppLine, McpAppSandboxOptions, McpAppSandboxReason, McpAppsConnectionLike, McpElicitationResult, MediaView, MemoryCard, MessageList, MicError, ModelLoadBar, ModelLoadState, NAMED_FILES_MAX, NAMED_FILES_SCAN_MAX, NAMED_FILES_TEXT_MAX, NamedFileChips, PendingElicitation, PlanView, QUESTION_TIMEOUT_MS, QuestionPrompt, QuestionView, RECORDING_DEFAULT_MAX_MS, RECORDING_TYPES, RemoteRunView, SandboxedFrame, SourceView, SpeechOutputError, StepList, StepView, SubagentNode, SubagentRow, SubagentTree, SubagentView, ToolApprovalPrompt, ToolCallRow, ToolCallView, TranscriptBlock, TranscriptView, UsageBadge, UserNoteRow, UserNoteView, agentStateReducer, agentStatusOf, askUserOutputKept, askUserWith, attachmentKindOf, attachmentOverLimit, attachmentRefusal, attachmentTransformOf, attachmentsText, audioExtensionOf, audioTypeOf, buildSandboxedDocument, chatTitle, clampFrameHeight, createApprovalQueue, createAudioSpeaker, createBrowserSpeaker, createInitialAgentState, createQuestionQueue, createRecordingRecognizer, createWebLLMEngine, decisionNote, defaultLabels, downscaleImage, escapeAttribute, fileKindOf, fileNameOf, filterCommands, followsAfterResize, followsAfterScroll, formatClock, formatElapsed, imageExtensionOf, imageSizeOf, languageOfText, lessonsOf, linkedFilesOf, mediaFamilyOf, menuKeyTarget, menuSections, mergeChatRecord, mergeLabels, messageOverLimit, micProblemOf, micProblemText, namedFilesOf, newChatId, noticesOf, parseSlash, pathsNamedIn, pendingApprovalsOf, pickRecordingType, questionChoiceOf, questionOtherOf, questionTimeoutOf, recordingSupported, sandboxTokens, sandboxedCsp, saveChat, scriptOfLanguage, scriptOfText, settleAudioDuration, speakableText, speechSynthesisSupported, splitForSpeech, startRecording, steerIntent, stopTracks, subagentTree, tokenizeHtml, unchangedSince, usageLine, useAgent, useAgentContext, useAudioRecorder, useChatHistory, useCredentials, useFollowScroll, useLabels, useLocalModel, useOptionalAgentContext, useReadAloud, useSpeechToText, useSpeechVoices, useVirtualFiles, useWebLLMModel, voiceFor, voiceMessageName, voicesOf, webSearchOf, withAttachments, withCspFirst, withPolicyFirst, withoutOwnWords, workspacePathOf };
3680
+ export type { AgentAction, AgentChatClassNames, AgentChatComponents, AgentChatProps, AgentChatSlots, AgentComposerProps, AgentLabels, AgentLabelsOverride, AgentLabelsProviderProps, AgentProviderProps, ApiKeyFormProps, AppRequestPromptProps, ApprovalModeSwitchProps, ApprovalQueue, ApproveOptions, AttachmentBounds, AttachmentOverLimit, AttachmentTexts, AttachmentTransform, AudioLike, AudioSpeakerOptions, BrowserSpeakerOptions, ChatBase, ChatHistoryListProps, ChatHistoryStoreOptions, ChatRecord, ChatSummary, ComposerAttachment, ComposerModelChip, ComposerModelOption, ComposerNotice, ComposerProps, ComposerThinkingChip, ContextMeterProps, ConvertedFile, ConvertedImage, DownscaleOptions, ElicitationPromptProps, FileChipProps, FileChipsProps, FileKind, FilesPanelProps, GeneratedMediaProps, HtmlPreviewOptions, ImageSize, ImageThumbProps, ImageViewerProps, LearnedSkillsProps, LocalModelEngine, LocalModelLoadContext, LocalModelProgress, McpAppFrameProps, McpAppLineProps, MediaRecorderConstructorLike, MediaRecorderLike, MemoryCardProps, MenuSection, MessageListProps, MicProblem, ModelLoadBarProps, NamedFileChipsProps, NamedFilesOptions, NoticeTexts, PendingQuestion, PlanViewProps, QuestionOutcomeReason, QuestionPromptProps, QuestionQueue, QuestionQueueOptions, ReadAloudOptions, ReadAloudState, RecordedAudio, Recording, RecordingDeps, RecordingRecognizerOptions, RenderImageViewer, RenderSubagent, RenderToolCall, RunGoalOptions, SandboxedDocumentOptions, SandboxedFrameProps, ScrollMeasure, SlashCommand, SourceToken, SourceViewProps, SpeakText, SpeakableOptions, SpeechPlayback, SpeechRecognizerLike, SpeechScript, SpeechSynthesisLike, SpeechUtteranceLike, SpeechVoiceLike, StartRecordingOptions, SteerIntent, StepListProps, SubagentRowProps, SubagentTreeProps, SynthesizeSpeech, ToolApprovalPromptProps, ToolCallRowProps, TranscribeAudio, TranscriptBlockProps, UsageBadgeProps, UseAgentOptions, UseAgentReturn, UseAudioRecorderOptions, UseAudioRecorderReturn, UseChatHistoryOptions, UseChatHistoryReturn, UseCredentialsReturn, UseLocalModelOptions, UseLocalModelReturn, UseReadAloudReturn, UseSpeechToTextOptions, UseSpeechToTextReturn, UseVirtualFilesReturn, UseWebLLMModelOptions, UseWebLLMModelReturn, ViewerImage, WebLLMModelFactory, WebSearchResultView, WebSearchView };