@dudko.dev/agent-web-react 0.0.33 → 0.0.35
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 +53 -3
- package/dist/{elicitation-B6h_-yLg.d.cts → elicitation-xMLll5W9.d.cts} +52 -3
- package/dist/{elicitation-B6h_-yLg.d.ts → elicitation-xMLll5W9.d.ts} +52 -3
- package/dist/index.cjs +1566 -610
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +346 -9
- package/dist/index.d.ts +346 -9
- package/dist/index.js +1490 -553
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.cts +2 -2
- package/dist/mcp.d.ts +2 -2
- package/dist/styles.css +423 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,107 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { DependencyList, ReactNode, RefObject, ComponentType, CSSProperties } from 'react';
|
|
3
|
-
import { RunFile, RunResult, Agent, ToolApprovalMode, AppToolCallRequest, AppSamplingRequest, AppSamplingView, AppSamplingResult, CompactResult, IUsage, AgentEventHandler, BrowserAgentConfig, VirtualFileInfo, VirtualFileSystem, CredentialStore, createWebLLMModel, WebLLMModelOptions, ModelTier, TierReason, EscalationReason, DecisionFallbackReason,
|
|
4
|
-
export { Agent, AgentEvent, AgentEventHandler, AgentLoggerSink, AgentTool, AgentToolSet, AppToolCallRequest, 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, 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,
|
|
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
|
+
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-xMLll5W9.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-xMLll5W9.js';
|
|
7
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';
|
|
8
8
|
|
|
9
|
+
/**
|
|
10
|
+
* The model asks the person ONE closed question (the core's `ask_user`, `config.askUser`): the
|
|
11
|
+
* part of it that is not React - the queue the hook hands the core as `askUser.onQuestion`, the
|
|
12
|
+
* answer a prompt builds, and what of a question's tool result may be kept.
|
|
13
|
+
*
|
|
14
|
+
* Pure: no React, no clock of its own (the queue takes `now`), no import of the core at run time
|
|
15
|
+
* (types only), so the main entry still loads next to an older core.
|
|
16
|
+
*
|
|
17
|
+
* Nothing here keeps, logs or returns what the person typed (`{ other }`) except to the one caller
|
|
18
|
+
* that hands it to the core: the queue passes an answer straight to the core's resolver, and
|
|
19
|
+
* {@link withoutOwnWords} takes the person's words out of the events before a view keeps them.
|
|
20
|
+
*/
|
|
21
|
+
/** The core's tool name (`ASK_USER_TOOL`). */
|
|
22
|
+
declare const ASK_USER_TOOL_NAME = "ask_user";
|
|
23
|
+
/** The core's default for `askUser.timeoutMs` (`ASK_USER_TIMEOUT_MS`). */
|
|
24
|
+
declare const QUESTION_TIMEOUT_MS = 300000;
|
|
25
|
+
/**
|
|
26
|
+
* A question waiting for the person: the core's request (the question and every option are the
|
|
27
|
+
* MODEL's text, cleaned - show them as plain text), and when the core stops waiting for it.
|
|
28
|
+
*/
|
|
29
|
+
interface PendingQuestion extends AskUserRequest {
|
|
30
|
+
/** Epoch ms after which the core answers it by itself ("did not answer in time"); absent: no limit. */
|
|
31
|
+
expiresAt?: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* How long the core waits for an answer with this `askUser`; `undefined` = no limit of its own
|
|
35
|
+
* (`0`, `Infinity`, more than a timer holds - the core's own rules).
|
|
36
|
+
*/
|
|
37
|
+
declare const questionTimeoutOf: (askUser: boolean | AskUserConfig | undefined) => number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* `config.askUser` as `useAgent` builds the agent with it: on without a handler of its own
|
|
40
|
+
* (`true`, `{ timeoutMs, maxPerRun }`) it gets `handler`; a host's own `onQuestion` wins, and off
|
|
41
|
+
* (absent, `false`) stays off - nothing is added, so the core mounts no tool.
|
|
42
|
+
*/
|
|
43
|
+
declare const askUserWith: (askUser: boolean | AskUserConfig | undefined, handler: AskUserHandler) => boolean | AskUserConfig | undefined;
|
|
44
|
+
interface QuestionQueueOptions {
|
|
45
|
+
/**
|
|
46
|
+
* How long the core waits (ms), for `expiresAt`; `undefined` = no limit. A function is read when
|
|
47
|
+
* a question arrives (the settings of the agent that asks).
|
|
48
|
+
*/
|
|
49
|
+
timeoutMs?: number | (() => number | undefined);
|
|
50
|
+
/** Called whenever the list of waiting questions changed. */
|
|
51
|
+
onChange?: (pending: PendingQuestion[]) => void;
|
|
52
|
+
/** The clock (tests). */
|
|
53
|
+
now?: () => number;
|
|
54
|
+
}
|
|
55
|
+
interface QuestionQueue {
|
|
56
|
+
/** The core's `askUser.onQuestion`: resolves when the person answers, or as `{ declined: true }`. */
|
|
57
|
+
handler: (request: AskUserRequest, ctx?: AskUserContext) => Promise<AskUserAnswer>;
|
|
58
|
+
/** The questions waiting, oldest first. */
|
|
59
|
+
pending: () => PendingQuestion[];
|
|
60
|
+
/** Answer one. False when no such question is waiting (answered, expired, cancelled). */
|
|
61
|
+
answer: (id: string, answer: AskUserAnswer) => boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Take the waiting questions down - all of them, or those `match` picks - as declined (the run
|
|
64
|
+
* ended, it was stopped). The core has usually stopped waiting already; this only makes sure no
|
|
65
|
+
* resolver is left.
|
|
66
|
+
*/
|
|
67
|
+
cancel: (match?: (question: PendingQuestion) => boolean) => void;
|
|
68
|
+
/** Cancel everything and stop reporting: the owner is gone. A later question is declined at once. */
|
|
69
|
+
dispose: () => void;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The questions the model is waiting on: `request.id → resolver`. A question leaves the queue
|
|
73
|
+
* exactly once - answered by the person, dropped because the core no longer wants the answer
|
|
74
|
+
* (`ctx.signal`: its time ran out, the run stopped), or cancelled by its owner (the run ended, an
|
|
75
|
+
* unmount) - and the queue never holds an answer: `answer` passes it straight to the resolver.
|
|
76
|
+
*/
|
|
77
|
+
declare const createQuestionQueue: (options?: QuestionQueueOptions) => QuestionQueue;
|
|
78
|
+
/**
|
|
79
|
+
* Why a question ended without the person deciding: the core's `AskUserReason`
|
|
80
|
+
* (`handler-error`, `invalid-answer`, `cannot-park`), or its action (`timeout`, `stopped`).
|
|
81
|
+
*/
|
|
82
|
+
type QuestionOutcomeReason = 'timeout' | 'stopped' | 'handler-error' | 'invalid-answer' | 'cannot-park';
|
|
83
|
+
/**
|
|
84
|
+
* The person's picks as the core's answer: the labels that were offered, in the order they were
|
|
85
|
+
* offered, each once - and one only unless the question allows several. `undefined` when nothing
|
|
86
|
+
* that was offered is picked (Send stays off).
|
|
87
|
+
*/
|
|
88
|
+
declare const questionChoiceOf: (question: Pick<AskUserRequest, "options" | "multiple">, picked: readonly string[]) => AskUserAnswer | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* The person's own words as the core's answer, when the question allows them and there is
|
|
91
|
+
* anything but spaces; `undefined` otherwise (Send stays off). The text goes to the caller only.
|
|
92
|
+
*/
|
|
93
|
+
declare const questionOtherOf: (question: Pick<AskUserRequest, "allowOther">, text: string) => AskUserAnswer | undefined;
|
|
94
|
+
/** Whether an `ask_user` result may be kept by a view: it holds no word the person typed. */
|
|
95
|
+
declare const askUserOutputKept: (output: unknown, ok: boolean) => boolean;
|
|
96
|
+
/**
|
|
97
|
+
* The event with the person's own words taken out: the result of an `ask_user` call that is not
|
|
98
|
+
* known to hold labels only (an answer in their own words) loses its `output` - in
|
|
99
|
+
* `step.tool-result`, in `step.complete`'s tool calls, and in a subagent's events at any depth.
|
|
100
|
+
* Everything else comes back as it was (the same object). The model was given the words; the
|
|
101
|
+
* view, the saved chat and the event log are not.
|
|
102
|
+
*/
|
|
103
|
+
declare const withoutOwnWords: (event: AgentEvent) => AgentEvent;
|
|
104
|
+
|
|
9
105
|
interface UseAgentOptions {
|
|
10
106
|
/**
|
|
11
107
|
* Rebuild the agent when any of these values change — compared like a
|
|
@@ -29,6 +125,13 @@ interface UseAgentOptions {
|
|
|
29
125
|
* (default true). Render them with `<ToolApprovalPrompt>`, or your own UI.
|
|
30
126
|
*/
|
|
31
127
|
approvals?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Route the model's questions (`ask_user`) into the hook (`pendingQuestions`,
|
|
130
|
+
* `answerQuestion`) when the config turns `askUser` on without an `onQuestion` of its own
|
|
131
|
+
* (`askUser: true`, or `{ timeoutMs, maxPerRun }`; default true). A host's own `onQuestion` wins;
|
|
132
|
+
* `askUser` off stays off. Render them with `<QuestionPrompt>`, or your own UI.
|
|
133
|
+
*/
|
|
134
|
+
questions?: boolean;
|
|
32
135
|
/**
|
|
33
136
|
* What the run never showed the agent — a message sent while the answer was being
|
|
34
137
|
* written — is sent as the next message, once the run has ended (default true).
|
|
@@ -119,6 +222,18 @@ interface UseAgentReturn extends AgentUiState {
|
|
|
119
222
|
approve: (id: string, options?: ApproveOptions) => void;
|
|
120
223
|
/** Refuse a pending call; the model is told and works around it. */
|
|
121
224
|
deny: (id: string, reason?: string) => void;
|
|
225
|
+
/**
|
|
226
|
+
* The model's questions waiting for the person in THIS tab (`ask_user`, when the hook answers
|
|
227
|
+
* them - see `UseAgentOptions.questions`), oldest first, each with `expiresAt` when the core
|
|
228
|
+
* stops waiting. Another tab's questions are in `questions` (marked `remote`), never here.
|
|
229
|
+
*/
|
|
230
|
+
pendingQuestions: PendingQuestion[];
|
|
231
|
+
/**
|
|
232
|
+
* Answer one: `{ choice: [label] }` (labels as offered; several only when `multiple`),
|
|
233
|
+
* `{ other: text }` (only when `allowOther`) or `{ declined: true }`. False when no such question
|
|
234
|
+
* is waiting (answered, expired, stopped). The answer goes to the core and is not kept here.
|
|
235
|
+
*/
|
|
236
|
+
answerQuestion: (id: string, answer: AskUserAnswer) => boolean;
|
|
122
237
|
/** The consent policy in effect. */
|
|
123
238
|
approvalMode: ToolApprovalMode;
|
|
124
239
|
/** Switch the consent policy live — the "autopilot" toggle. */
|
|
@@ -865,6 +980,13 @@ interface AgentLabels {
|
|
|
865
980
|
approvalLeadHelper: (role: string | undefined, depth: number) => string;
|
|
866
981
|
/** Alt text of a generated image; `path` is where it is in the workspace. */
|
|
867
982
|
mediaImage: (path: string) => string;
|
|
983
|
+
/** A picture in the transcript: the thumbnail's accessible name (it opens the viewer). */
|
|
984
|
+
imageOpen: (name: string) => string;
|
|
985
|
+
/** The image viewer: the other pictures of the message, the zoom switch, "2 of 5". */
|
|
986
|
+
imagePrevious: string;
|
|
987
|
+
imageNext: string;
|
|
988
|
+
imageZoom: string;
|
|
989
|
+
imageCount: (index: number, total: number) => string;
|
|
868
990
|
/** The accessible name of a generated audio player. */
|
|
869
991
|
mediaAudio: (path: string) => string;
|
|
870
992
|
/** A generated file that cannot be shown here (no workspace, the file is gone, an unknown type). */
|
|
@@ -989,6 +1111,31 @@ interface AgentLabels {
|
|
|
989
1111
|
/** Why a question was answered without anybody deciding, by the core's reason (+ `stopped`). */
|
|
990
1112
|
elicitationReasons: Record<ElicitationOutcomeReason, string>;
|
|
991
1113
|
elicitationDismiss: string;
|
|
1114
|
+
/** The host's own line over the model's question. */
|
|
1115
|
+
questionLead: string;
|
|
1116
|
+
/** The same when a helper asks; `role` is what the model wrote for it. */
|
|
1117
|
+
questionLeadHelper: (role: string | undefined, depth: number) => string;
|
|
1118
|
+
/** "1 of 2" - several questions are waiting. */
|
|
1119
|
+
questionCount: (index: number, total: number) => string;
|
|
1120
|
+
/** Under a question that takes several options. */
|
|
1121
|
+
questionSeveral: string;
|
|
1122
|
+
/** Sends the options picked, or the person's own words. */
|
|
1123
|
+
questionSend: string;
|
|
1124
|
+
/** Opens the field for an answer in the person's own words. */
|
|
1125
|
+
questionOther: string;
|
|
1126
|
+
/** That field's label. */
|
|
1127
|
+
questionOtherLabel: string;
|
|
1128
|
+
/** No answer: the agent goes on with its best judgment. */
|
|
1129
|
+
questionSkip: string;
|
|
1130
|
+
/** "...in 4:05": when the agent stops waiting. */
|
|
1131
|
+
questionExpiresIn: (time: string) => string;
|
|
1132
|
+
/** A question asked by the run in another tab: shown here, answered there. */
|
|
1133
|
+
questionRemote: string;
|
|
1134
|
+
/** The agent went on without an answer; `reason` is one of `questionReasons`. */
|
|
1135
|
+
questionAutomatic: (reason: string) => string;
|
|
1136
|
+
/** Why, by the core's reason (+ `timeout`, `stopped`). */
|
|
1137
|
+
questionReasons: Record<QuestionOutcomeReason, string>;
|
|
1138
|
+
questionDismiss: string;
|
|
992
1139
|
/** The host's label on an app's frame: "App from server “travel”". */
|
|
993
1140
|
appFrom: (server: string) => string;
|
|
994
1141
|
/** The badge beside it. */
|
|
@@ -1103,7 +1250,7 @@ interface AgentLabels {
|
|
|
1103
1250
|
}
|
|
1104
1251
|
declare const defaultLabels: AgentLabels;
|
|
1105
1252
|
/** Overrides: any label, with the nested groups merged key by key. */
|
|
1106
|
-
type AgentLabelsOverride = Partial<Omit<AgentLabels, 'status' | 'modes' | 'commandGroups' | 'commandDescriptions' | 'thinkingLevels' | 'notices' | 'tierNames' | 'tierReasons' | 'escalationReasons' | 'subagentStatus' | 'decisionReasons' | 'elicitationErrors' | 'elicitationReasons' | 'fileKinds' | 'appSandboxReasons'>> & {
|
|
1253
|
+
type AgentLabelsOverride = Partial<Omit<AgentLabels, 'status' | 'modes' | 'commandGroups' | 'commandDescriptions' | 'thinkingLevels' | 'notices' | 'tierNames' | 'tierReasons' | 'escalationReasons' | 'subagentStatus' | 'decisionReasons' | 'elicitationErrors' | 'elicitationReasons' | 'questionReasons' | 'fileKinds' | 'appSandboxReasons'>> & {
|
|
1107
1254
|
status?: Partial<AgentLabels['status']>;
|
|
1108
1255
|
modes?: Partial<AgentLabels['modes']>;
|
|
1109
1256
|
commandGroups?: Partial<AgentLabels['commandGroups']>;
|
|
@@ -1117,6 +1264,7 @@ type AgentLabelsOverride = Partial<Omit<AgentLabels, 'status' | 'modes' | 'comma
|
|
|
1117
1264
|
decisionReasons?: Partial<AgentLabels['decisionReasons']>;
|
|
1118
1265
|
elicitationErrors?: Partial<AgentLabels['elicitationErrors']>;
|
|
1119
1266
|
elicitationReasons?: Partial<AgentLabels['elicitationReasons']>;
|
|
1267
|
+
questionReasons?: Partial<AgentLabels['questionReasons']>;
|
|
1120
1268
|
fileKinds?: Partial<AgentLabels['fileKinds']>;
|
|
1121
1269
|
appSandboxReasons?: Partial<AgentLabels['appSandboxReasons']>;
|
|
1122
1270
|
};
|
|
@@ -1492,6 +1640,57 @@ interface FilesPanelProps {
|
|
|
1492
1640
|
*/
|
|
1493
1641
|
declare const FilesPanel: ({ files: vfs, prefix, title, allowUpload, allowDelete, uploadDir, onOpen, renderFile, labels, className, }: FilesPanelProps) => react.JSX.Element;
|
|
1494
1642
|
|
|
1643
|
+
/** A picture the viewer shows: where it is read from (`data:` / `blob:` / a URL) and its name. */
|
|
1644
|
+
interface ViewerImage {
|
|
1645
|
+
src: string;
|
|
1646
|
+
/** The file's name: the dialog's label and the name of the download. */
|
|
1647
|
+
name: string;
|
|
1648
|
+
alt?: string;
|
|
1649
|
+
}
|
|
1650
|
+
interface ImageViewerProps {
|
|
1651
|
+
/** The pictures of one message, in the order they are shown. */
|
|
1652
|
+
images: ViewerImage[];
|
|
1653
|
+
/** The one on the screen. */
|
|
1654
|
+
index: number;
|
|
1655
|
+
onIndex: (index: number) => void;
|
|
1656
|
+
onClose: () => void;
|
|
1657
|
+
labels?: AgentLabelsOverride;
|
|
1658
|
+
}
|
|
1659
|
+
/**
|
|
1660
|
+
* A picture over the chat, in the page: fitted to the screen, the others of its message one
|
|
1661
|
+
* arrow (or swipe) away, a click to see it at full size, Download as a file. A modal dialog -
|
|
1662
|
+
* Esc, the close button or the backdrop close it; focus stays inside while it is open. Nothing
|
|
1663
|
+
* is opened in another window, and the picture is only ever an `<img>`.
|
|
1664
|
+
*/
|
|
1665
|
+
declare const ImageViewer: ({ images, index, onIndex, onClose, labels }: ImageViewerProps) => react.JSX.Element | null;
|
|
1666
|
+
/** Draws the viewer your way; `fallback` is the built-in `<ImageViewer>`, to wrap or ignore. */
|
|
1667
|
+
type RenderImageViewer = (props: ImageViewerProps, fallback: ReactNode) => ReactNode;
|
|
1668
|
+
/** Sets how the pictures under it open (`<AgentChat imageViewer>` / `<MessageList imageViewer>`). */
|
|
1669
|
+
declare const ImageViewerProvider: ({ enabled, render, children, }: {
|
|
1670
|
+
enabled?: boolean;
|
|
1671
|
+
render?: RenderImageViewer;
|
|
1672
|
+
children: ReactNode;
|
|
1673
|
+
}) => react.JSX.Element;
|
|
1674
|
+
/** `.png` for a `data:image/png…` URL (a picture that has no file name of its own). */
|
|
1675
|
+
declare const imageExtensionOf: (src: string) => string;
|
|
1676
|
+
interface ImageThumbProps {
|
|
1677
|
+
src: string;
|
|
1678
|
+
/** The file's name or path. */
|
|
1679
|
+
name: string;
|
|
1680
|
+
alt: string;
|
|
1681
|
+
/** Classes of the thumbnail's control and of its `<img>`. */
|
|
1682
|
+
className?: string;
|
|
1683
|
+
imgClassName?: string;
|
|
1684
|
+
title?: string;
|
|
1685
|
+
labels?: AgentLabelsOverride;
|
|
1686
|
+
}
|
|
1687
|
+
/**
|
|
1688
|
+
* A picture in the transcript: a thumbnail that opens the viewer over the chat (a button - click,
|
|
1689
|
+
* Enter or Space), with the other pictures of its message to go through. With the viewer
|
|
1690
|
+
* switched off it is what it was: a link that opens the picture in a new tab.
|
|
1691
|
+
*/
|
|
1692
|
+
declare const ImageThumb: ({ src, name, alt, className, imgClassName, title, labels, }: ImageThumbProps) => react.JSX.Element;
|
|
1693
|
+
|
|
1495
1694
|
/** How an `.html` file is previewed. */
|
|
1496
1695
|
interface HtmlPreviewOptions {
|
|
1497
1696
|
/**
|
|
@@ -1767,12 +1966,19 @@ interface MessageListProps {
|
|
|
1767
1966
|
renderApp?: (app: AppView, message: ChatMessage) => ReactNode;
|
|
1768
1967
|
/** Draw the apps of an answer (default true; needs `renderApp`). */
|
|
1769
1968
|
showApps?: boolean;
|
|
1969
|
+
/**
|
|
1970
|
+
* How a picture (an attachment, a generated image, an image a tool returned) opens: in the
|
|
1971
|
+
* image viewer over the chat (default true), or - `false` - as a link in a new tab.
|
|
1972
|
+
*/
|
|
1973
|
+
imageViewer?: boolean;
|
|
1974
|
+
/** The viewer drawn your way; `fallback` is the built-in `<ImageViewer>`. */
|
|
1975
|
+
renderImageViewer?: RenderImageViewer;
|
|
1770
1976
|
labels?: AgentLabelsOverride;
|
|
1771
1977
|
className?: string;
|
|
1772
1978
|
}
|
|
1773
1979
|
/** "in 12k · out 456 · think 120 · cached 9k · 4.2 s" for one answer. */
|
|
1774
1980
|
declare const usageLine: (usage: IUsage | undefined, durationMs?: number) => string;
|
|
1775
|
-
/** The built-in attachment: an image thumbnail (opens
|
|
1981
|
+
/** The built-in attachment: an image thumbnail (opens in the viewer) or a file chip. */
|
|
1776
1982
|
declare const AttachmentView: ({ attachment: a }: {
|
|
1777
1983
|
attachment: ChatAttachment;
|
|
1778
1984
|
}) => react.JSX.Element;
|
|
@@ -1783,7 +1989,54 @@ declare const AttachmentView: ({ attachment: a }: {
|
|
|
1783
1989
|
* subagents, consent decisions — and the tokens it spent by kind. Every part
|
|
1784
1990
|
* can be hidden, relabelled or rendered by the host.
|
|
1785
1991
|
*/
|
|
1786
|
-
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, renderApp, showApps, labels, className, }: MessageListProps) => react.JSX.Element | null;
|
|
1992
|
+
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, renderApp, showApps, imageViewer, renderImageViewer, labels, className, }: MessageListProps) => react.JSX.Element | null;
|
|
1993
|
+
|
|
1994
|
+
interface QuestionPromptProps {
|
|
1995
|
+
/**
|
|
1996
|
+
* The model's questions waiting for the person (`useAgent().pendingQuestions`, or the requests
|
|
1997
|
+
* your own `askUser.onQuestion` was given). One is shown at a time, oldest first, with a count.
|
|
1998
|
+
*/
|
|
1999
|
+
questions: PendingQuestion[];
|
|
2000
|
+
/**
|
|
2001
|
+
* The person's answer: `{ choice: [label, ...] }`, `{ other: text }` or `{ declined: true }`.
|
|
2002
|
+
* Wire it to `useAgent().answerQuestion`. What was typed goes to this callback and nowhere else.
|
|
2003
|
+
*/
|
|
2004
|
+
onAnswer: (id: string, answer: AskUserAnswer) => void;
|
|
2005
|
+
/**
|
|
2006
|
+
* The run's questions as the reducer keeps them (`useAgent().questions`): the ones the agent
|
|
2007
|
+
* went on without (no answer in time, a failure) are said so, a helper's role is named, and
|
|
2008
|
+
* one asked in another tab is shown without its buttons.
|
|
2009
|
+
*/
|
|
2010
|
+
outcomes?: QuestionView[];
|
|
2011
|
+
/** Say which questions the agent went on without (default true; needs `outcomes`). */
|
|
2012
|
+
showOutcomes?: boolean;
|
|
2013
|
+
/** The note of when the agent stops waiting, with the time left (default true). */
|
|
2014
|
+
showExpiry?: boolean;
|
|
2015
|
+
/** Say that a helper is the one that asks (default true). */
|
|
2016
|
+
showHelper?: boolean;
|
|
2017
|
+
/** Show a question asked by the run in another tab, without buttons (default true). */
|
|
2018
|
+
showRemote?: boolean;
|
|
2019
|
+
/** Keys 1-6 pick an option while the card has the focus (default true). */
|
|
2020
|
+
numberKeys?: boolean;
|
|
2021
|
+
/**
|
|
2022
|
+
* Render a question yourself: `fallback` is the built-in card, `answer` decides it. The
|
|
2023
|
+
* question and its options are the MODEL's text - render them as text.
|
|
2024
|
+
*/
|
|
2025
|
+
renderQuestion?: (question: PendingQuestion, fallback: ReactNode, answer: (answer: AskUserAnswer) => void) => ReactNode;
|
|
2026
|
+
labels?: AgentLabelsOverride;
|
|
2027
|
+
className?: string;
|
|
2028
|
+
}
|
|
2029
|
+
/**
|
|
2030
|
+
* A question the agent's MODEL puts to the person (the core's `ask_user`, `config.askUser`): the
|
|
2031
|
+
* question, one button per option, "Other…" for an answer in their own words when the model
|
|
2032
|
+
* allowed one, and Skip. Shown in the transcript where the run is, not as a modal; keys 1-6 pick
|
|
2033
|
+
* an option while the card has the focus. Everything the model wrote is plain text.
|
|
2034
|
+
*
|
|
2035
|
+
* Wire it to {@link useAgent}'s `pendingQuestions` and `answerQuestion` (with `askUser` on in its
|
|
2036
|
+
* config); `<AgentChat>` renders it for you. What the person types is kept in the card only and
|
|
2037
|
+
* handed to `onAnswer` once: it is not in the agent's state, its events or the transcript.
|
|
2038
|
+
*/
|
|
2039
|
+
declare const QuestionPrompt: ({ questions, onAnswer, outcomes, showOutcomes, showExpiry, showHelper, showRemote, numberKeys, renderQuestion, labels, className, }: QuestionPromptProps) => react.JSX.Element | null;
|
|
1787
2040
|
|
|
1788
2041
|
interface ToolApprovalPromptProps {
|
|
1789
2042
|
/** Pending requests (e.g. `agent.pendingApprovals`). */
|
|
@@ -1842,6 +2095,7 @@ interface AgentChatComponents {
|
|
|
1842
2095
|
FilesPanel?: ComponentType<FilesPanelProps>;
|
|
1843
2096
|
ApprovalPrompt?: ComponentType<ToolApprovalPromptProps>;
|
|
1844
2097
|
ElicitationPrompt?: ComponentType<ElicitationPromptProps>;
|
|
2098
|
+
QuestionPrompt?: ComponentType<QuestionPromptProps>;
|
|
1845
2099
|
}
|
|
1846
2100
|
/** Extra class names per part (added to the built-in `awr-` ones). */
|
|
1847
2101
|
interface AgentChatClassNames {
|
|
@@ -1852,6 +2106,8 @@ interface AgentChatClassNames {
|
|
|
1852
2106
|
footer?: string;
|
|
1853
2107
|
sidebar?: string;
|
|
1854
2108
|
files?: string;
|
|
2109
|
+
/** The shade beside an open side panel on a narrow chat (a tap on it closes the panel). */
|
|
2110
|
+
scrim?: string;
|
|
1855
2111
|
}
|
|
1856
2112
|
interface AgentChatProps {
|
|
1857
2113
|
/**
|
|
@@ -1930,6 +2186,13 @@ interface AgentChatProps {
|
|
|
1930
2186
|
* (default true). Shown once `elicitations` and `onElicitationAnswer` are given.
|
|
1931
2187
|
*/
|
|
1932
2188
|
showElicitation?: boolean;
|
|
2189
|
+
/**
|
|
2190
|
+
* The questions the agent's model puts to the person (`ask_user`, with `askUser` on in the
|
|
2191
|
+
* agent's config), where the consent cards are (default true): the question, its options as
|
|
2192
|
+
* buttons, Other… and Skip. In a tab that follows another tab's run, the question is shown
|
|
2193
|
+
* without buttons - it is answered there.
|
|
2194
|
+
*/
|
|
2195
|
+
showQuestions?: boolean;
|
|
1933
2196
|
/**
|
|
1934
2197
|
* In the consent card of an MCP server's skill: the collapsible preview of the instructions
|
|
1935
2198
|
* the agent would read (default true; `<ToolApprovalPrompt showSkillPreview>`).
|
|
@@ -1986,7 +2249,16 @@ interface AgentChatProps {
|
|
|
1986
2249
|
renderApproval?: ToolApprovalPromptProps['renderApproval'];
|
|
1987
2250
|
/** A server's question (gets the built-in card as `fallback`, and `answer`). */
|
|
1988
2251
|
renderElicitation?: ElicitationPromptProps['renderElicitation'];
|
|
2252
|
+
/** A question of the agent's (gets the built-in card as `fallback`, and `answer`). */
|
|
2253
|
+
renderQuestion?: QuestionPromptProps['renderQuestion'];
|
|
1989
2254
|
slots?: AgentChatSlots;
|
|
2255
|
+
/**
|
|
2256
|
+
* How a picture in the transcript opens: in the image viewer over the chat (default true),
|
|
2257
|
+
* or - `false` - as a link in a new tab, as it used to.
|
|
2258
|
+
*/
|
|
2259
|
+
imageViewer?: boolean;
|
|
2260
|
+
/** The image viewer drawn your way; `fallback` is the built-in `<ImageViewer>`. */
|
|
2261
|
+
renderImageViewer?: RenderImageViewer;
|
|
1990
2262
|
components?: AgentChatComponents;
|
|
1991
2263
|
/** Override any text (i18n); applies to every part inside. */
|
|
1992
2264
|
labels?: AgentLabelsOverride;
|
|
@@ -2280,6 +2552,71 @@ interface WebSearchView {
|
|
|
2280
2552
|
*/
|
|
2281
2553
|
declare const webSearchOf: (output: unknown) => WebSearchView | undefined;
|
|
2282
2554
|
|
|
2555
|
+
/**
|
|
2556
|
+
* Keeps a scrolling transcript where it should be while content arrives (`follow-scroll.ts` has
|
|
2557
|
+
* the rule):
|
|
2558
|
+
*
|
|
2559
|
+
* - at the end, it stays at the end - set in a layout effect and from a ResizeObserver, both
|
|
2560
|
+
* before the browser paints, so no frame is drawn at the old position: for every render that
|
|
2561
|
+
* changed it, for a new size of its box (the keyboard), and - while content arrives (`live`) -
|
|
2562
|
+
* for every change of size of its parts (a picture that loads, a block that folds);
|
|
2563
|
+
* - while nothing arrives, a part that grows by itself (an app's frame the person clicks in, a
|
|
2564
|
+
* summary they opened) unfolds where it is: the view stays, as if they had moved up - it does not
|
|
2565
|
+
* move what is under their finger;
|
|
2566
|
+
* - moved up by the person, it stays on what they read: elements at the top of the view are
|
|
2567
|
+
* remembered (the smallest first) and the shift of the first one still drawn undone - what a
|
|
2568
|
+
* browser's scroll anchoring does where there is one (not in Safari), done here in every engine,
|
|
2569
|
+
* the browser's own turned off for the element.
|
|
2570
|
+
*
|
|
2571
|
+
* The position is set at once, never animated: there is no motion to reduce.
|
|
2572
|
+
*
|
|
2573
|
+
* `turn`: a value that changes when the person sends a message - the view goes to the end.
|
|
2574
|
+
* `live`: whether content is arriving (a run is under way); default true - every change of size
|
|
2575
|
+
* is followed.
|
|
2576
|
+
*/
|
|
2577
|
+
declare const useFollowScroll: (ref: RefObject<HTMLElement | null>, turn?: unknown, live?: boolean) => void;
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* The transcript's scroll position while content arrives - the rule, as a pure function (no DOM),
|
|
2581
|
+
* and the numbers it stands on. `useFollowScroll` (hooks/use-follow-scroll.ts) applies it.
|
|
2582
|
+
*
|
|
2583
|
+
* Two states. FOLLOWING: the view is at the end and stays there, whatever grows or shrinks.
|
|
2584
|
+
* READING: the person moved up, and the view is theirs - nothing that arrives moves what they
|
|
2585
|
+
* read; going back down to the end follows again.
|
|
2586
|
+
*/
|
|
2587
|
+
/** A scroller's measures (CSS pixels). */
|
|
2588
|
+
interface ScrollMeasure {
|
|
2589
|
+
scrollTop: number;
|
|
2590
|
+
scrollHeight: number;
|
|
2591
|
+
clientHeight: number;
|
|
2592
|
+
}
|
|
2593
|
+
/** How far from the end still counts as "back at the end" when moving down. */
|
|
2594
|
+
declare const FOLLOW_REJOIN_PX = 80;
|
|
2595
|
+
/**
|
|
2596
|
+
* How far above the end a move up must leave the view to count as the person's. Under it, a
|
|
2597
|
+
* move up is the browser's own: the bounce at the end of a touch scroll (the position comes
|
|
2598
|
+
* back from beyond the end), or a sub-pixel rounding. Small on purpose: a slow drag moves a
|
|
2599
|
+
* few pixels between two pieces of an answer, and must not be pulled back.
|
|
2600
|
+
*/
|
|
2601
|
+
declare const FOLLOW_LEAVE_PX = 2;
|
|
2602
|
+
/**
|
|
2603
|
+
* Whether the view follows after a scroll event: `before` is what the scroller measured when it
|
|
2604
|
+
* was last looked at, `now` what it measures in the event.
|
|
2605
|
+
*
|
|
2606
|
+
* - The content or the box changed size since: the move is the layout's (the browser keeps the
|
|
2607
|
+
* position inside a shorter transcript, a keyboard opens), not the person's - nothing changes.
|
|
2608
|
+
* - A move up that leaves the end: the person reads - stop following.
|
|
2609
|
+
* - A move down that ends near the end: follow again.
|
|
2610
|
+
*/
|
|
2611
|
+
declare const followsAfterScroll: (following: boolean, before: ScrollMeasure, now: ScrollMeasure) => boolean;
|
|
2612
|
+
/**
|
|
2613
|
+
* Whether the view still follows when the transcript changed size: a piece of the answer often
|
|
2614
|
+
* lands between a move of the person's and its scroll event, and must not undo the move. With
|
|
2615
|
+
* the box as it was and the transcript no shorter, nothing but the person moves the view up
|
|
2616
|
+
* (the hook turns the browser's own scroll anchoring off: `useFollowScroll`).
|
|
2617
|
+
*/
|
|
2618
|
+
declare const followsAfterResize: (following: boolean, before: ScrollMeasure, now: ScrollMeasure) => boolean;
|
|
2619
|
+
|
|
2283
2620
|
/** The consent requests waiting for a person, by request id. */
|
|
2284
2621
|
interface ApprovalQueue {
|
|
2285
2622
|
/**
|
|
@@ -2461,5 +2798,5 @@ interface AppRequestPromptProps {
|
|
|
2461
2798
|
*/
|
|
2462
2799
|
declare const AppRequestPrompt: ({ requests, onAnswer, renderRequest, labels, className, }: AppRequestPromptProps) => react.JSX.Element | null;
|
|
2463
2800
|
|
|
2464
|
-
export { 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, FRAME_MAX_HEIGHT, FRAME_MIN_HEIGHT, FileChip, FileChips, FilesPanel, GeneratedMedia, HTML_PREVIEW_MAX_CHARS, LearnedSkills, LessonView, McpAppFrame, McpAppHost, McpAppLine, McpAppSandboxOptions, McpAppSandboxReason, McpAppsConnectionLike, McpElicitationResult, MediaView, MessageList, ModelLoadBar, ModelLoadState, PendingElicitation, PlanView, RemoteRunView, SandboxedFrame, SourceView, StepList, StepView, SubagentNode, SubagentRow, SubagentTree, SubagentView, ToolApprovalPrompt, ToolCallRow, ToolCallView, TranscriptBlock, TranscriptView, UsageBadge, UserNoteRow, UserNoteView, agentStateReducer, agentStatusOf, attachmentKindOf, attachmentRefusal, buildSandboxedDocument, chatTitle, clampFrameHeight, createApprovalQueue, createInitialAgentState, createWebLLMEngine, decisionNote, defaultLabels, downscaleImage, escapeAttribute, fileKindOf, fileNameOf, filterCommands, formatElapsed, lessonsOf, linkedFilesOf, mediaFamilyOf, mergeChatRecord, mergeLabels, newChatId, noticesOf, parseSlash, pendingApprovalsOf, sandboxTokens, sandboxedCsp, saveChat, steerIntent, subagentTree, tokenizeHtml, unchangedSince, usageLine, useAgent, useAgentContext, useChatHistory, useCredentials, useLabels, useLocalModel, useOptionalAgentContext, useSpeechToText, useVirtualFiles, useWebLLMModel, webSearchOf, withAttachments, withCspFirst, withPolicyFirst };
|
|
2465
|
-
export type { AgentAction, AgentChatClassNames, AgentChatComponents, AgentChatProps, AgentChatSlots, AgentComposerProps, AgentLabels, AgentLabelsOverride, AgentLabelsProviderProps, AgentProviderProps, ApiKeyFormProps, AppRequestPromptProps, ApprovalModeSwitchProps, ApprovalQueue, ApproveOptions, ChatBase, ChatHistoryListProps, ChatHistoryStoreOptions, ChatRecord, ChatSummary, ComposerAttachment, ComposerModelChip, ComposerNotice, ComposerProps, ComposerThinkingChip, ContextMeterProps, ConvertedFile, DownscaleOptions, ElicitationPromptProps, FileChipProps, FileChipsProps, FileKind, FilesPanelProps, GeneratedMediaProps, HtmlPreviewOptions, LearnedSkillsProps, LocalModelEngine, LocalModelLoadContext, LocalModelProgress, McpAppFrameProps, McpAppLineProps, MessageListProps, ModelLoadBarProps, NoticeTexts, PlanViewProps, RenderSubagent, RenderToolCall, RunGoalOptions, SandboxedDocumentOptions, SandboxedFrameProps, SlashCommand, SourceToken, SourceViewProps, SpeechRecognizerLike, SteerIntent, StepListProps, SubagentRowProps, SubagentTreeProps, ToolApprovalPromptProps, ToolCallRowProps, TranscriptBlockProps, UsageBadgeProps, UseAgentOptions, UseAgentReturn, UseChatHistoryOptions, UseChatHistoryReturn, UseCredentialsReturn, UseLocalModelOptions, UseLocalModelReturn, UseSpeechToTextOptions, UseSpeechToTextReturn, UseVirtualFilesReturn, UseWebLLMModelOptions, UseWebLLMModelReturn, WebLLMModelFactory, WebSearchResultView, WebSearchView };
|
|
2801
|
+
export { ASK_USER_TOOL_NAME, 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, MessageList, ModelLoadBar, ModelLoadState, PendingElicitation, PlanView, QUESTION_TIMEOUT_MS, QuestionPrompt, QuestionView, RemoteRunView, SandboxedFrame, SourceView, StepList, StepView, SubagentNode, SubagentRow, SubagentTree, SubagentView, ToolApprovalPrompt, ToolCallRow, ToolCallView, TranscriptBlock, TranscriptView, UsageBadge, UserNoteRow, UserNoteView, agentStateReducer, agentStatusOf, askUserOutputKept, askUserWith, attachmentKindOf, attachmentRefusal, buildSandboxedDocument, chatTitle, clampFrameHeight, createApprovalQueue, createInitialAgentState, createQuestionQueue, createWebLLMEngine, decisionNote, defaultLabels, downscaleImage, escapeAttribute, fileKindOf, fileNameOf, filterCommands, followsAfterResize, followsAfterScroll, formatElapsed, imageExtensionOf, lessonsOf, linkedFilesOf, mediaFamilyOf, mergeChatRecord, mergeLabels, newChatId, noticesOf, parseSlash, pendingApprovalsOf, questionChoiceOf, questionOtherOf, questionTimeoutOf, sandboxTokens, sandboxedCsp, saveChat, steerIntent, subagentTree, tokenizeHtml, unchangedSince, usageLine, useAgent, useAgentContext, useChatHistory, useCredentials, useFollowScroll, useLabels, useLocalModel, useOptionalAgentContext, useSpeechToText, useVirtualFiles, useWebLLMModel, webSearchOf, withAttachments, withCspFirst, withPolicyFirst, withoutOwnWords };
|
|
2802
|
+
export type { AgentAction, AgentChatClassNames, AgentChatComponents, AgentChatProps, AgentChatSlots, AgentComposerProps, AgentLabels, AgentLabelsOverride, AgentLabelsProviderProps, AgentProviderProps, ApiKeyFormProps, AppRequestPromptProps, ApprovalModeSwitchProps, ApprovalQueue, ApproveOptions, ChatBase, ChatHistoryListProps, ChatHistoryStoreOptions, ChatRecord, ChatSummary, ComposerAttachment, ComposerModelChip, ComposerNotice, ComposerProps, ComposerThinkingChip, ContextMeterProps, ConvertedFile, DownscaleOptions, ElicitationPromptProps, FileChipProps, FileChipsProps, FileKind, FilesPanelProps, GeneratedMediaProps, HtmlPreviewOptions, ImageThumbProps, ImageViewerProps, LearnedSkillsProps, LocalModelEngine, LocalModelLoadContext, LocalModelProgress, McpAppFrameProps, McpAppLineProps, MessageListProps, ModelLoadBarProps, NoticeTexts, PendingQuestion, PlanViewProps, QuestionOutcomeReason, QuestionPromptProps, QuestionQueue, QuestionQueueOptions, RenderImageViewer, RenderSubagent, RenderToolCall, RunGoalOptions, SandboxedDocumentOptions, SandboxedFrameProps, ScrollMeasure, SlashCommand, SourceToken, SourceViewProps, SpeechRecognizerLike, SteerIntent, StepListProps, SubagentRowProps, SubagentTreeProps, ToolApprovalPromptProps, ToolCallRowProps, TranscriptBlockProps, UsageBadgeProps, UseAgentOptions, UseAgentReturn, UseChatHistoryOptions, UseChatHistoryReturn, UseCredentialsReturn, UseLocalModelOptions, UseLocalModelReturn, UseSpeechToTextOptions, UseSpeechToTextReturn, UseVirtualFilesReturn, UseWebLLMModelOptions, UseWebLLMModelReturn, ViewerImage, WebLLMModelFactory, WebSearchResultView, WebSearchView };
|