@dudko.dev/agent-web-react 0.0.42 → 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/README.md +4 -2
- package/dist/{chunk-FXHQXIOU.js → chunk-AWZ2OZSG.js} +6 -2
- package/dist/chunk-AWZ2OZSG.js.map +1 -0
- package/dist/{elicitation-Dp6Fi6ZA.d.ts → elicitation-B5t9hdaJ.d.cts} +9 -3
- package/dist/{elicitation-Dp6Fi6ZA.d.cts → elicitation-rJu93Z3o.d.ts} +9 -3
- package/dist/index.cjs +852 -554
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +131 -8
- package/dist/index.d.ts +131 -8
- package/dist/index.js +701 -412
- package/dist/index.js.map +1 -1
- package/dist/{mcp-app-policy-DIUmGPJP.d.cts → mcp-app-policy-BhBIsbBy.d.cts} +20 -2
- package/dist/{mcp-app-policy-DIUmGPJP.d.ts → mcp-app-policy-BhBIsbBy.d.ts} +20 -2
- package/dist/mcp-app-sandbox.cjs +17 -7
- package/dist/mcp-app-sandbox.cjs.map +1 -1
- package/dist/mcp-app-sandbox.d.cts +11 -6
- package/dist/mcp-app-sandbox.d.ts +11 -6
- package/dist/mcp-app-sandbox.js +15 -7
- package/dist/mcp-app-sandbox.js.map +1 -1
- package/dist/mcp.d.cts +3 -2
- package/dist/mcp.d.ts +3 -2
- package/dist/styles.css +99 -6
- package/package.json +3 -3
- package/dist/chunk-FXHQXIOU.js.map +0 -1
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-
|
|
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-
|
|
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-
|
|
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
|
|
@@ -1371,6 +1371,11 @@ interface AgentLabels {
|
|
|
1371
1371
|
dictate: string;
|
|
1372
1372
|
dictateTitle: string;
|
|
1373
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;
|
|
1374
1379
|
microphone: string;
|
|
1375
1380
|
/** While a recording recognizer waits for its model (`useSpeechToText().finishing`). */
|
|
1376
1381
|
transcribing: string;
|
|
@@ -1574,6 +1579,11 @@ interface AgentLabels {
|
|
|
1574
1579
|
readAloudFailed: string;
|
|
1575
1580
|
/** Above the chips: "3 files written in this turn". */
|
|
1576
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;
|
|
1577
1587
|
/** In the activity summary: "3 files". */
|
|
1578
1588
|
filesCount: (n: number) => string;
|
|
1579
1589
|
/** The link that opens the Files panel. */
|
|
@@ -2404,6 +2414,14 @@ interface FileChipsProps {
|
|
|
2404
2414
|
files?: VirtualFileSystem;
|
|
2405
2415
|
/** The line above the chips - "3 files written in this turn" (default true). */
|
|
2406
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;
|
|
2407
2425
|
/** Shows a "Show in Files" link in that line. */
|
|
2408
2426
|
onShowFiles?: () => void;
|
|
2409
2427
|
/**
|
|
@@ -2432,7 +2450,7 @@ interface FileChipsProps {
|
|
|
2432
2450
|
* a renderer), a picture as a picture, and an `.html` page in a sandboxed frame with a
|
|
2433
2451
|
* Preview / Source switch (see `SandboxedFrame`).
|
|
2434
2452
|
*/
|
|
2435
|
-
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;
|
|
2436
2454
|
interface FileChipProps {
|
|
2437
2455
|
written: WrittenFileView;
|
|
2438
2456
|
/** The type and size now (default: what the turn recorded). */
|
|
@@ -2444,10 +2462,43 @@ interface FileChipProps {
|
|
|
2444
2462
|
gone?: boolean;
|
|
2445
2463
|
open?: boolean;
|
|
2446
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;
|
|
2447
2471
|
labels?: AgentLabelsOverride;
|
|
2448
2472
|
}
|
|
2449
2473
|
/** One file: icon (a thumbnail for a picture), name, kind · size, open, download. */
|
|
2450
|
-
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;
|
|
2451
2502
|
|
|
2452
2503
|
/** Render a node yourself; `fallback` is the built-in `<li>` (with its children) — return it, or your own `<li>`. */
|
|
2453
2504
|
type RenderSubagent = (node: SubagentNode, fallback: ReactNode) => ReactNode;
|
|
@@ -2619,6 +2670,16 @@ interface MessageListProps {
|
|
|
2619
2670
|
* an `.html` file in a sandboxed frame) and download (default true). Needs `files`.
|
|
2620
2671
|
*/
|
|
2621
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;
|
|
2622
2683
|
/** The workspace generated and written files are read from (the core's `VirtualFileSystem`). */
|
|
2623
2684
|
files?: VirtualFileSystem;
|
|
2624
2685
|
/** How an `.html` file is previewed (see `FileChips`); `false` shows HTML as source only. */
|
|
@@ -2706,7 +2767,7 @@ declare const AttachmentView: ({ attachment: a, files, labels, }: {
|
|
|
2706
2767
|
* subagents, consent decisions — and the tokens it spent by kind. Every part
|
|
2707
2768
|
* can be hidden, relabelled or rendered by the host.
|
|
2708
2769
|
*/
|
|
2709
|
-
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;
|
|
2710
2771
|
|
|
2711
2772
|
interface QuestionPromptProps {
|
|
2712
2773
|
/**
|
|
@@ -2878,6 +2939,12 @@ interface AgentChatProps {
|
|
|
2878
2939
|
* open (an inline preview - an `.html` file in a sandboxed frame) and download (default true).
|
|
2879
2940
|
*/
|
|
2880
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'];
|
|
2881
2948
|
/**
|
|
2882
2949
|
* How an `.html` file is previewed: sandboxed, no network, scripts off by default;
|
|
2883
2950
|
* `{ scripts: true }` lets its inline scripts run; `false` shows HTML as source only.
|
|
@@ -3282,6 +3349,62 @@ interface SourceToken {
|
|
|
3282
3349
|
*/
|
|
3283
3350
|
declare const tokenizeHtml: (source: string) => SourceToken[];
|
|
3284
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)`, ``,
|
|
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
|
+
|
|
3285
3408
|
/** One result of the core's `web_search` tool, as far as a UI shows it. */
|
|
3286
3409
|
interface WebSearchResultView {
|
|
3287
3410
|
title: string;
|
|
@@ -3553,5 +3676,5 @@ interface AppRequestPromptProps {
|
|
|
3553
3676
|
*/
|
|
3554
3677
|
declare const AppRequestPrompt: ({ requests, onAnswer, renderRequest, labels, className, }: AppRequestPromptProps) => react.JSX.Element | null;
|
|
3555
3678
|
|
|
3556
|
-
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 };
|
|
3557
|
-
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-
|
|
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-
|
|
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-
|
|
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
|
|
@@ -1371,6 +1371,11 @@ interface AgentLabels {
|
|
|
1371
1371
|
dictate: string;
|
|
1372
1372
|
dictateTitle: string;
|
|
1373
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;
|
|
1374
1379
|
microphone: string;
|
|
1375
1380
|
/** While a recording recognizer waits for its model (`useSpeechToText().finishing`). */
|
|
1376
1381
|
transcribing: string;
|
|
@@ -1574,6 +1579,11 @@ interface AgentLabels {
|
|
|
1574
1579
|
readAloudFailed: string;
|
|
1575
1580
|
/** Above the chips: "3 files written in this turn". */
|
|
1576
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;
|
|
1577
1587
|
/** In the activity summary: "3 files". */
|
|
1578
1588
|
filesCount: (n: number) => string;
|
|
1579
1589
|
/** The link that opens the Files panel. */
|
|
@@ -2404,6 +2414,14 @@ interface FileChipsProps {
|
|
|
2404
2414
|
files?: VirtualFileSystem;
|
|
2405
2415
|
/** The line above the chips - "3 files written in this turn" (default true). */
|
|
2406
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;
|
|
2407
2425
|
/** Shows a "Show in Files" link in that line. */
|
|
2408
2426
|
onShowFiles?: () => void;
|
|
2409
2427
|
/**
|
|
@@ -2432,7 +2450,7 @@ interface FileChipsProps {
|
|
|
2432
2450
|
* a renderer), a picture as a picture, and an `.html` page in a sandboxed frame with a
|
|
2433
2451
|
* Preview / Source switch (see `SandboxedFrame`).
|
|
2434
2452
|
*/
|
|
2435
|
-
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;
|
|
2436
2454
|
interface FileChipProps {
|
|
2437
2455
|
written: WrittenFileView;
|
|
2438
2456
|
/** The type and size now (default: what the turn recorded). */
|
|
@@ -2444,10 +2462,43 @@ interface FileChipProps {
|
|
|
2444
2462
|
gone?: boolean;
|
|
2445
2463
|
open?: boolean;
|
|
2446
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;
|
|
2447
2471
|
labels?: AgentLabelsOverride;
|
|
2448
2472
|
}
|
|
2449
2473
|
/** One file: icon (a thumbnail for a picture), name, kind · size, open, download. */
|
|
2450
|
-
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;
|
|
2451
2502
|
|
|
2452
2503
|
/** Render a node yourself; `fallback` is the built-in `<li>` (with its children) — return it, or your own `<li>`. */
|
|
2453
2504
|
type RenderSubagent = (node: SubagentNode, fallback: ReactNode) => ReactNode;
|
|
@@ -2619,6 +2670,16 @@ interface MessageListProps {
|
|
|
2619
2670
|
* an `.html` file in a sandboxed frame) and download (default true). Needs `files`.
|
|
2620
2671
|
*/
|
|
2621
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;
|
|
2622
2683
|
/** The workspace generated and written files are read from (the core's `VirtualFileSystem`). */
|
|
2623
2684
|
files?: VirtualFileSystem;
|
|
2624
2685
|
/** How an `.html` file is previewed (see `FileChips`); `false` shows HTML as source only. */
|
|
@@ -2706,7 +2767,7 @@ declare const AttachmentView: ({ attachment: a, files, labels, }: {
|
|
|
2706
2767
|
* subagents, consent decisions — and the tokens it spent by kind. Every part
|
|
2707
2768
|
* can be hidden, relabelled or rendered by the host.
|
|
2708
2769
|
*/
|
|
2709
|
-
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;
|
|
2710
2771
|
|
|
2711
2772
|
interface QuestionPromptProps {
|
|
2712
2773
|
/**
|
|
@@ -2878,6 +2939,12 @@ interface AgentChatProps {
|
|
|
2878
2939
|
* open (an inline preview - an `.html` file in a sandboxed frame) and download (default true).
|
|
2879
2940
|
*/
|
|
2880
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'];
|
|
2881
2948
|
/**
|
|
2882
2949
|
* How an `.html` file is previewed: sandboxed, no network, scripts off by default;
|
|
2883
2950
|
* `{ scripts: true }` lets its inline scripts run; `false` shows HTML as source only.
|
|
@@ -3282,6 +3349,62 @@ interface SourceToken {
|
|
|
3282
3349
|
*/
|
|
3283
3350
|
declare const tokenizeHtml: (source: string) => SourceToken[];
|
|
3284
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)`, ``,
|
|
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
|
+
|
|
3285
3408
|
/** One result of the core's `web_search` tool, as far as a UI shows it. */
|
|
3286
3409
|
interface WebSearchResultView {
|
|
3287
3410
|
title: string;
|
|
@@ -3553,5 +3676,5 @@ interface AppRequestPromptProps {
|
|
|
3553
3676
|
*/
|
|
3554
3677
|
declare const AppRequestPrompt: ({ requests, onAnswer, renderRequest, labels, className, }: AppRequestPromptProps) => react.JSX.Element | null;
|
|
3555
3678
|
|
|
3556
|
-
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 };
|
|
3557
|
-
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 };
|