@dudko.dev/agent-web-ui 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/README.md +254 -2
- package/dist/canvas.cjs +266 -0
- package/dist/canvas.cjs.map +1 -0
- package/dist/canvas.d.cts +105 -0
- package/dist/canvas.d.ts +105 -0
- package/dist/canvas.js +200 -0
- package/dist/canvas.js.map +1 -0
- package/dist/chunk-4EHUITGU.js +342 -0
- package/dist/chunk-4EHUITGU.js.map +1 -0
- package/dist/chunk-7O64ZI6Z.js +125 -0
- package/dist/chunk-7O64ZI6Z.js.map +1 -0
- package/dist/chunk-A55Q377T.js +342 -0
- package/dist/chunk-A55Q377T.js.map +1 -0
- package/dist/chunk-EL2YCROY.js +127 -0
- package/dist/chunk-EL2YCROY.js.map +1 -0
- package/dist/chunk-GB7RZJMG.js +98 -0
- package/dist/chunk-GB7RZJMG.js.map +1 -0
- package/dist/chunk-KZQB35LS.js +22 -0
- package/dist/chunk-KZQB35LS.js.map +1 -0
- package/dist/chunk-P2F2P3JC.js +400 -0
- package/dist/chunk-P2F2P3JC.js.map +1 -0
- package/dist/chunk-TPK25QGK.js +342 -0
- package/dist/chunk-TPK25QGK.js.map +1 -0
- package/dist/en-CcNUz2tN.d.cts +342 -0
- package/dist/en-CcNUz2tN.d.ts +342 -0
- package/dist/index.cjs +4143 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +919 -0
- package/dist/index.d.ts +919 -0
- package/dist/index.js +3771 -0
- package/dist/index.js.map +1 -0
- package/dist/labels-B5xpIGf_.d.cts +25 -0
- package/dist/labels-B5xpIGf_.d.ts +25 -0
- package/dist/labels-D5BrHct4.d.cts +1208 -0
- package/dist/labels-UuWI7wPo.d.ts +1208 -0
- package/dist/locales/be.cjs +794 -0
- package/dist/locales/be.cjs.map +1 -0
- package/dist/locales/be.d.cts +14 -0
- package/dist/locales/be.d.ts +14 -0
- package/dist/locales/be.js +374 -0
- package/dist/locales/be.js.map +1 -0
- package/dist/locales/bg.cjs +747 -0
- package/dist/locales/bg.cjs.map +1 -0
- package/dist/locales/bg.d.cts +14 -0
- package/dist/locales/bg.d.ts +14 -0
- package/dist/locales/bg.js +327 -0
- package/dist/locales/bg.js.map +1 -0
- package/dist/locales/ca.cjs +773 -0
- package/dist/locales/ca.cjs.map +1 -0
- package/dist/locales/ca.d.cts +14 -0
- package/dist/locales/ca.d.ts +14 -0
- package/dist/locales/ca.js +353 -0
- package/dist/locales/ca.js.map +1 -0
- package/dist/locales/cs.cjs +794 -0
- package/dist/locales/cs.cjs.map +1 -0
- package/dist/locales/cs.d.cts +14 -0
- package/dist/locales/cs.d.ts +14 -0
- package/dist/locales/cs.js +374 -0
- package/dist/locales/cs.js.map +1 -0
- package/dist/locales/da.cjs +747 -0
- package/dist/locales/da.cjs.map +1 -0
- package/dist/locales/da.d.cts +14 -0
- package/dist/locales/da.d.ts +14 -0
- package/dist/locales/da.js +327 -0
- package/dist/locales/da.js.map +1 -0
- package/dist/locales/de.cjs +756 -0
- package/dist/locales/de.cjs.map +1 -0
- package/dist/locales/de.d.cts +14 -0
- package/dist/locales/de.d.ts +14 -0
- package/dist/locales/de.js +336 -0
- package/dist/locales/de.js.map +1 -0
- package/dist/locales/el.cjs +756 -0
- package/dist/locales/el.cjs.map +1 -0
- package/dist/locales/el.d.cts +14 -0
- package/dist/locales/el.d.ts +14 -0
- package/dist/locales/el.js +336 -0
- package/dist/locales/el.js.map +1 -0
- package/dist/locales/en.cjs +753 -0
- package/dist/locales/en.cjs.map +1 -0
- package/dist/locales/en.d.cts +10 -0
- package/dist/locales/en.d.ts +10 -0
- package/dist/locales/en.js +333 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/locales/es-419.cjs +778 -0
- package/dist/locales/es-419.cjs.map +1 -0
- package/dist/locales/es-419.d.cts +16 -0
- package/dist/locales/es-419.d.ts +16 -0
- package/dist/locales/es-419.js +23 -0
- package/dist/locales/es-419.js.map +1 -0
- package/dist/locales/es.cjs +769 -0
- package/dist/locales/es.cjs.map +1 -0
- package/dist/locales/es.d.cts +14 -0
- package/dist/locales/es.d.ts +14 -0
- package/dist/locales/es.js +14 -0
- package/dist/locales/es.js.map +1 -0
- package/dist/locales/fi.cjs +753 -0
- package/dist/locales/fi.cjs.map +1 -0
- package/dist/locales/fi.d.cts +14 -0
- package/dist/locales/fi.d.ts +14 -0
- package/dist/locales/fi.js +333 -0
- package/dist/locales/fi.js.map +1 -0
- package/dist/locales/fr-CA.cjs +777 -0
- package/dist/locales/fr-CA.cjs.map +1 -0
- package/dist/locales/fr-CA.d.cts +17 -0
- package/dist/locales/fr-CA.d.ts +17 -0
- package/dist/locales/fr-CA.js +22 -0
- package/dist/locales/fr-CA.js.map +1 -0
- package/dist/locales/fr.cjs +769 -0
- package/dist/locales/fr.cjs.map +1 -0
- package/dist/locales/fr.d.cts +14 -0
- package/dist/locales/fr.d.ts +14 -0
- package/dist/locales/fr.js +14 -0
- package/dist/locales/fr.js.map +1 -0
- package/dist/locales/gn.cjs +750 -0
- package/dist/locales/gn.cjs.map +1 -0
- package/dist/locales/gn.d.cts +16 -0
- package/dist/locales/gn.d.ts +16 -0
- package/dist/locales/gn.js +330 -0
- package/dist/locales/gn.js.map +1 -0
- package/dist/locales/hr.cjs +769 -0
- package/dist/locales/hr.cjs.map +1 -0
- package/dist/locales/hr.d.cts +14 -0
- package/dist/locales/hr.d.ts +14 -0
- package/dist/locales/hr.js +349 -0
- package/dist/locales/hr.js.map +1 -0
- package/dist/locales/ht.cjs +750 -0
- package/dist/locales/ht.cjs.map +1 -0
- package/dist/locales/ht.d.cts +16 -0
- package/dist/locales/ht.d.ts +16 -0
- package/dist/locales/ht.js +330 -0
- package/dist/locales/ht.js.map +1 -0
- package/dist/locales/hu.cjs +753 -0
- package/dist/locales/hu.cjs.map +1 -0
- package/dist/locales/hu.d.cts +14 -0
- package/dist/locales/hu.d.ts +14 -0
- package/dist/locales/hu.js +333 -0
- package/dist/locales/hu.js.map +1 -0
- package/dist/locales/index.cjs +537 -0
- package/dist/locales/index.cjs.map +1 -0
- package/dist/locales/index.d.cts +38 -0
- package/dist/locales/index.d.ts +38 -0
- package/dist/locales/index.js +105 -0
- package/dist/locales/index.js.map +1 -0
- package/dist/locales/it.cjs +777 -0
- package/dist/locales/it.cjs.map +1 -0
- package/dist/locales/it.d.cts +14 -0
- package/dist/locales/it.d.ts +14 -0
- package/dist/locales/it.js +357 -0
- package/dist/locales/it.js.map +1 -0
- package/dist/locales/nb.cjs +747 -0
- package/dist/locales/nb.cjs.map +1 -0
- package/dist/locales/nb.d.cts +14 -0
- package/dist/locales/nb.d.ts +14 -0
- package/dist/locales/nb.js +327 -0
- package/dist/locales/nb.js.map +1 -0
- package/dist/locales/nl.cjs +753 -0
- package/dist/locales/nl.cjs.map +1 -0
- package/dist/locales/nl.d.cts +14 -0
- package/dist/locales/nl.d.ts +14 -0
- package/dist/locales/nl.js +333 -0
- package/dist/locales/nl.js.map +1 -0
- package/dist/locales/pl.cjs +794 -0
- package/dist/locales/pl.cjs.map +1 -0
- package/dist/locales/pl.d.cts +14 -0
- package/dist/locales/pl.d.ts +14 -0
- package/dist/locales/pl.js +374 -0
- package/dist/locales/pl.js.map +1 -0
- package/dist/locales/pt-BR.cjs +773 -0
- package/dist/locales/pt-BR.cjs.map +1 -0
- package/dist/locales/pt-BR.d.cts +14 -0
- package/dist/locales/pt-BR.d.ts +14 -0
- package/dist/locales/pt-BR.js +353 -0
- package/dist/locales/pt-BR.js.map +1 -0
- package/dist/locales/pt.cjs +777 -0
- package/dist/locales/pt.cjs.map +1 -0
- package/dist/locales/pt.d.cts +14 -0
- package/dist/locales/pt.d.ts +14 -0
- package/dist/locales/pt.js +357 -0
- package/dist/locales/pt.js.map +1 -0
- package/dist/locales/qu.cjs +756 -0
- package/dist/locales/qu.cjs.map +1 -0
- package/dist/locales/qu.d.cts +16 -0
- package/dist/locales/qu.d.ts +16 -0
- package/dist/locales/qu.js +336 -0
- package/dist/locales/qu.js.map +1 -0
- package/dist/locales/ro.cjs +769 -0
- package/dist/locales/ro.cjs.map +1 -0
- package/dist/locales/ro.d.cts +14 -0
- package/dist/locales/ro.d.ts +14 -0
- package/dist/locales/ro.js +349 -0
- package/dist/locales/ro.js.map +1 -0
- package/dist/locales/ru.cjs +789 -0
- package/dist/locales/ru.cjs.map +1 -0
- package/dist/locales/ru.d.cts +14 -0
- package/dist/locales/ru.d.ts +14 -0
- package/dist/locales/ru.js +369 -0
- package/dist/locales/ru.js.map +1 -0
- package/dist/locales/sk.cjs +794 -0
- package/dist/locales/sk.cjs.map +1 -0
- package/dist/locales/sk.d.cts +14 -0
- package/dist/locales/sk.d.ts +14 -0
- package/dist/locales/sk.js +374 -0
- package/dist/locales/sk.js.map +1 -0
- package/dist/locales/sq.cjs +753 -0
- package/dist/locales/sq.cjs.map +1 -0
- package/dist/locales/sq.d.cts +14 -0
- package/dist/locales/sq.d.ts +14 -0
- package/dist/locales/sq.js +333 -0
- package/dist/locales/sq.js.map +1 -0
- package/dist/locales/sr-Latn.cjs +841 -0
- package/dist/locales/sr-Latn.cjs.map +1 -0
- package/dist/locales/sr-Latn.d.cts +17 -0
- package/dist/locales/sr-Latn.d.ts +17 -0
- package/dist/locales/sr-Latn.js +86 -0
- package/dist/locales/sr-Latn.js.map +1 -0
- package/dist/locales/sr.cjs +769 -0
- package/dist/locales/sr.cjs.map +1 -0
- package/dist/locales/sr.d.cts +14 -0
- package/dist/locales/sr.d.ts +14 -0
- package/dist/locales/sr.js +14 -0
- package/dist/locales/sr.js.map +1 -0
- package/dist/locales/sv.cjs +753 -0
- package/dist/locales/sv.cjs.map +1 -0
- package/dist/locales/sv.d.cts +14 -0
- package/dist/locales/sv.d.ts +14 -0
- package/dist/locales/sv.js +333 -0
- package/dist/locales/sv.js.map +1 -0
- package/dist/locales/tr.cjs +750 -0
- package/dist/locales/tr.cjs.map +1 -0
- package/dist/locales/tr.d.cts +14 -0
- package/dist/locales/tr.d.ts +14 -0
- package/dist/locales/tr.js +330 -0
- package/dist/locales/tr.js.map +1 -0
- package/dist/locales/uk.cjs +794 -0
- package/dist/locales/uk.cjs.map +1 -0
- package/dist/locales/uk.d.cts +14 -0
- package/dist/locales/uk.d.ts +14 -0
- package/dist/locales/uk.js +374 -0
- package/dist/locales/uk.js.map +1 -0
- package/dist/markdown.cjs +620 -0
- package/dist/markdown.cjs.map +1 -0
- package/dist/markdown.d.cts +153 -0
- package/dist/markdown.d.ts +153 -0
- package/dist/markdown.js +573 -0
- package/dist/markdown.js.map +1 -0
- package/dist/mcp-app-entry-BA-Ca39z.d.ts +1480 -0
- package/dist/mcp-app-entry-tybABaHg.d.cts +1480 -0
- package/dist/mcp-app-policy-DXKQ2jjM.d.cts +73 -0
- package/dist/mcp-app-policy-DXKQ2jjM.d.ts +73 -0
- package/dist/mcp-app-sandbox.cjs +323 -0
- package/dist/mcp-app-sandbox.cjs.map +1 -0
- package/dist/mcp-app-sandbox.d.cts +70 -0
- package/dist/mcp-app-sandbox.d.ts +70 -0
- package/dist/mcp-app-sandbox.js +209 -0
- package/dist/mcp-app-sandbox.js.map +1 -0
- package/dist/mcp-app.cjs +980 -0
- package/dist/mcp-app.cjs.map +1 -0
- package/dist/mcp-app.d.cts +3 -0
- package/dist/mcp-app.d.ts +3 -0
- package/dist/mcp-app.js +816 -0
- package/dist/mcp-app.js.map +1 -0
- package/dist/pipeline.cjs +845 -0
- package/dist/pipeline.cjs.map +1 -0
- package/dist/pipeline.css +1407 -0
- package/dist/pipeline.d.cts +348 -0
- package/dist/pipeline.d.ts +348 -0
- package/dist/pipeline.js +778 -0
- package/dist/pipeline.js.map +1 -0
- package/dist/styles.css +4109 -0
- package/dist/types-BmvgYUzF.d.cts +19 -0
- package/dist/types-Cr5gmUts.d.ts +19 -0
- package/package.json +182 -3
|
@@ -0,0 +1,1208 @@
|
|
|
1
|
+
import { AskUserRequest, AskUserContext, AskUserAnswer, AskUserConfig, AskUserHandler, AgentEvent, ToolApprovalMode, ModelTier, TierReason, EscalationReason, DecisionFallbackReason } from '@dudko.dev/agent-web';
|
|
2
|
+
import { A as AgentUiState, M as McpElicitationFieldSchema, a as McpElicitationHandler, b as McpElicitationRequest, c as McpElicitationResult, d as McpElicitationOptions, e as McpElicitationSchema, f as AgentStatus, g as McpAppSandboxReason } from './mcp-app-entry-BA-Ca39z.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Pure helpers behind `<AgentComposer>`: slash commands, attachments, notices
|
|
6
|
+
* and the elapsed-time label. No React, no DOM — unit-tested on their own.
|
|
7
|
+
*/
|
|
8
|
+
/** A command offered when the input starts with "/". */
|
|
9
|
+
interface SlashCommand {
|
|
10
|
+
/** Typed after the slash, e.g. "compact" for "/compact". */
|
|
11
|
+
name: string;
|
|
12
|
+
description: string;
|
|
13
|
+
/**
|
|
14
|
+
* 'action' runs at once on Enter (e.g. /compact); 'prefix' stays in the
|
|
15
|
+
* input and rewrites the goal on submit (e.g. /chess-coach <goal>).
|
|
16
|
+
*/
|
|
17
|
+
kind?: 'action' | 'prefix';
|
|
18
|
+
/** For 'action' commands: what to do (receives the text after the name). */
|
|
19
|
+
run?: (args: string) => void | Promise<void>;
|
|
20
|
+
/** For 'prefix' commands: the goal to send, built from the text after the name. */
|
|
21
|
+
transform?: (args: string) => string;
|
|
22
|
+
/** Grouping label in the palette ("Commands", "Skills", …). */
|
|
23
|
+
group?: string;
|
|
24
|
+
}
|
|
25
|
+
/** "/name rest of text" → { name, args }; undefined unless the text starts with "/". */
|
|
26
|
+
declare const parseSlash: (text: string) => {
|
|
27
|
+
name: string;
|
|
28
|
+
args: string;
|
|
29
|
+
} | undefined;
|
|
30
|
+
/** What pressing Enter does while the agent is working (see {@link steerIntent}). */
|
|
31
|
+
type SteerIntent =
|
|
32
|
+
/** The agent is idle: submit as usual. */
|
|
33
|
+
'idle'
|
|
34
|
+
/** Say it to the running agent. */
|
|
35
|
+
| 'steer'
|
|
36
|
+
/** There are attachments, which cannot be added to a run that is going. */
|
|
37
|
+
| 'attachments'
|
|
38
|
+
/** Nothing to do (empty, a slash command, or steering is switched off). */
|
|
39
|
+
| 'ignore';
|
|
40
|
+
/**
|
|
41
|
+
* Decide what Enter means while the agent works: text goes to the running agent,
|
|
42
|
+
* files cannot (they are sent with the next message), a "/command" is not a message,
|
|
43
|
+
* and a host that switched steering off gets the old behaviour (nothing happens).
|
|
44
|
+
*/
|
|
45
|
+
declare const steerIntent: (input: {
|
|
46
|
+
/** The trimmed text. */
|
|
47
|
+
raw: string;
|
|
48
|
+
busy: boolean;
|
|
49
|
+
steering: boolean;
|
|
50
|
+
hasAttachments: boolean;
|
|
51
|
+
}) => SteerIntent;
|
|
52
|
+
/** Commands matching what was typed after "/" — name prefix first, then substring. */
|
|
53
|
+
declare const filterCommands: (commands: SlashCommand[], query: string) => SlashCommand[];
|
|
54
|
+
/**
|
|
55
|
+
* Something attached to the next message:
|
|
56
|
+
* - `text` — its content is inlined into the goal (works with every model);
|
|
57
|
+
* - `image` / `pdf` / `file` — sent to the model as a file part (needs a model
|
|
58
|
+
* that takes that kind — see the core's `agent.capabilities`).
|
|
59
|
+
*/
|
|
60
|
+
interface ComposerAttachment {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
kind: 'text' | 'image' | 'pdf' | 'file';
|
|
64
|
+
mediaType: string;
|
|
65
|
+
/** Text content (kind 'text'). */
|
|
66
|
+
text?: string;
|
|
67
|
+
/** Data URL (kinds image / pdf / file). */
|
|
68
|
+
dataUrl?: string;
|
|
69
|
+
bytes: number;
|
|
70
|
+
/** Where it was saved in the virtual file system, if it was. */
|
|
71
|
+
path?: string;
|
|
72
|
+
/** "converted from report.pdf" and the like. */
|
|
73
|
+
note?: string;
|
|
74
|
+
/** A recording's length in milliseconds (a voice message). */
|
|
75
|
+
durationMs?: number;
|
|
76
|
+
/**
|
|
77
|
+
* A text the host made (`convertFile`): it carries its own note and goes to the model as it is,
|
|
78
|
+
* never cut to an excerpt by `longText` (the host decides how much of a document goes).
|
|
79
|
+
*/
|
|
80
|
+
converted?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/** The kind of an attachment from its media type and name. */
|
|
83
|
+
declare const attachmentKindOf: (mediaType: string, name: string) => ComposerAttachment["kind"];
|
|
84
|
+
/** What `withAttachments` does with a long text attachment (`<AgentComposer longText>`). */
|
|
85
|
+
interface AttachmentTextOptions {
|
|
86
|
+
/**
|
|
87
|
+
* OFF unless given. A text attachment longer than this many characters that was saved in the
|
|
88
|
+
* workspace (`path`) goes as its BEGINNING with a note naming the file that holds it whole -
|
|
89
|
+
* never whole. Only for an agent that can read the file: the core's `createFileTools` over the
|
|
90
|
+
* same workspace (its `fs_read`, or the name `readTool` gives). One the host converted
|
|
91
|
+
* (`converted`), or one without a `path`, goes whole.
|
|
92
|
+
*/
|
|
93
|
+
excerptChars?: number;
|
|
94
|
+
/** The tool the note tells the model to read on with (default `fs_read`: `createFileTools`' prefix + `read`). */
|
|
95
|
+
readTool?: string;
|
|
96
|
+
}
|
|
97
|
+
/** The beginning of a long text, cut at a line's end when one is in its second half. */
|
|
98
|
+
interface TextExcerpt {
|
|
99
|
+
text: string;
|
|
100
|
+
/** The line the excerpt ends in (1-based). */
|
|
101
|
+
lastLine: number;
|
|
102
|
+
/** Whether that line is whole in the excerpt (false: it is cut inside it). */
|
|
103
|
+
lineWhole: boolean;
|
|
104
|
+
/** Lines of the whole text, counted as the core's `fs_read` counts them (a last line break
|
|
105
|
+
* starts no line). */
|
|
106
|
+
totalLines: number;
|
|
107
|
+
}
|
|
108
|
+
/** A text's lines as the core's `fs_read` counts them: a text that ends with a line break has no
|
|
109
|
+
* empty last line. */
|
|
110
|
+
declare const lineCountOf: (text: string) => number;
|
|
111
|
+
/**
|
|
112
|
+
* At most `maxChars` characters from the start of `text`: at the last line break when it is in
|
|
113
|
+
* the second half of them (a model reads on by line), never in the middle of a surrogate pair.
|
|
114
|
+
*/
|
|
115
|
+
declare const textExcerpt: (text: string, maxChars: number) => TextExcerpt;
|
|
116
|
+
/**
|
|
117
|
+
* The note in front of an excerpt (for the MODEL, in English like the rest of the goal): how much
|
|
118
|
+
* of the text this is, and how to read on. The file's path is NOT in it - the block's heading
|
|
119
|
+
* names it once (a host that renames a placed file rewrites each mention it counts).
|
|
120
|
+
*/
|
|
121
|
+
declare const excerptNote: (excerpt: TextExcerpt, totalChars: number, readTool?: string) => string;
|
|
122
|
+
/**
|
|
123
|
+
* The goal the agent receives: the typed text followed by each attached TEXT
|
|
124
|
+
* file in a fenced block. Binary attachments travel as file parts instead; the
|
|
125
|
+
* ones saved in the workspace (`path`) are named with it, so a tool can take
|
|
126
|
+
* the file itself (`generate_image`'s reference pictures). With `excerptChars`,
|
|
127
|
+
* a long text saved in the workspace goes as its beginning and the file's path
|
|
128
|
+
* (`AttachmentTextOptions`).
|
|
129
|
+
*/
|
|
130
|
+
declare const withAttachments: (text: string, files: ComposerAttachment[], options?: AttachmentTextOptions) => string;
|
|
131
|
+
/**
|
|
132
|
+
* The size bounds of an attachment (`<AgentComposer attachments={…}>`; these are the defaults).
|
|
133
|
+
* - `maxBytes`: what is SENT. A file that goes as it is, by its size; one the composer transforms
|
|
134
|
+
* first, by the result - an image it downscales (a 13 MB photo goes as a few hundred KB), a
|
|
135
|
+
* file the host's `convertFile` turns into text (a 30 MB PDF goes as its Markdown).
|
|
136
|
+
* - `maxSourceBytes`: the ORIGINAL of one it transforms, judged before it is read or decoded.
|
|
137
|
+
* - `imageMaxSourcePixels`: the original of an image it downscales, by the pixels its header
|
|
138
|
+
* declares (`imageSizeOf`) - a decoded picture takes ~4 bytes a pixel. A format whose header is
|
|
139
|
+
* not read is held to the bytes only.
|
|
140
|
+
* - `maxImages` / `maxTotalBytes`: ONE message - its pictures, and what all its attachments carry
|
|
141
|
+
* together (`messageOverLimit`), so a batch never meets the provider's request-size error.
|
|
142
|
+
*/
|
|
143
|
+
interface AttachmentBounds {
|
|
144
|
+
maxBytes: number;
|
|
145
|
+
maxSourceBytes: number;
|
|
146
|
+
imageMaxSourcePixels: number;
|
|
147
|
+
maxImages: number;
|
|
148
|
+
maxTotalBytes: number;
|
|
149
|
+
}
|
|
150
|
+
declare const ATTACHMENT_BOUNDS: AttachmentBounds;
|
|
151
|
+
/**
|
|
152
|
+
* How an attachment goes to the model: `'convert'` - as the text the host's `convertFile` makes
|
|
153
|
+
* of it (`converts`: the composer will call it for this file); `'downscale'` - an image of a type
|
|
154
|
+
* the composer draws smaller (not GIF - animated - or SVG - drawn at any size), while
|
|
155
|
+
* `imageMaxDimension` is not false; `'none'` - as it is.
|
|
156
|
+
*/
|
|
157
|
+
type AttachmentTransform = 'none' | 'downscale' | 'convert';
|
|
158
|
+
declare const attachmentTransformOf: (input: {
|
|
159
|
+
kind: ComposerAttachment["kind"];
|
|
160
|
+
mediaType: string;
|
|
161
|
+
imageMaxDimension: number | false;
|
|
162
|
+
converts: boolean;
|
|
163
|
+
}) => AttachmentTransform;
|
|
164
|
+
/** The bound an attachment is over, and its value (bytes or pixels). */
|
|
165
|
+
type AttachmentOverLimit = {
|
|
166
|
+
bound: 'bytes' | 'pixels';
|
|
167
|
+
limit: number;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Which bound an attachment is over, or undefined. `stage` is when it is judged: `'original'` -
|
|
171
|
+
* the file as picked (and, for an image to downscale, its pixels when known); `'sent'` - what
|
|
172
|
+
* goes to the model (the downscaled image, the converted text, or the file as it is). The
|
|
173
|
+
* original of one the composer transforms is held to `maxSourceBytes` - never below `maxBytes`,
|
|
174
|
+
* so nothing that passed before is refused for its size - and an image's to
|
|
175
|
+
* `imageMaxSourcePixels`; what is sent, to `maxBytes`. One it does not transform: `maxBytes` on
|
|
176
|
+
* the original, as it is.
|
|
177
|
+
*/
|
|
178
|
+
declare const attachmentOverLimit: (file: {
|
|
179
|
+
bytes: number;
|
|
180
|
+
pixels?: number;
|
|
181
|
+
}, stage: "original" | "sent", transform: AttachmentTransform, bounds: AttachmentBounds) => AttachmentOverLimit | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* Which limit of ONE message adding `next` to the attachments already in it would break:
|
|
184
|
+
* `'images'` - it is a picture and `maxImages` are there; `'bytes'` - what they would carry
|
|
185
|
+
* together is over `maxTotalBytes`. Each counts as it goes (`bytes`): a picture as downscaled, a
|
|
186
|
+
* converted file as its text, a text file as itself. undefined: it fits.
|
|
187
|
+
*/
|
|
188
|
+
declare const messageOverLimit: (inMessage: readonly Pick<ComposerAttachment, "kind" | "bytes">[], next: Pick<ComposerAttachment, "kind" | "bytes">, bounds: Pick<AttachmentBounds, "maxImages" | "maxTotalBytes">) => "images" | "bytes" | undefined;
|
|
189
|
+
/** The transcript label for a message with attachments. */
|
|
190
|
+
declare const attachmentLabel: (text: string, files: ComposerAttachment[]) => string;
|
|
191
|
+
/**
|
|
192
|
+
* Can the current model take this attachment? Returns the reason it can't
|
|
193
|
+
* (an actionable sentence), or undefined. `caps` is the core agent's
|
|
194
|
+
* `capabilities` (true / false / undefined per kind; undefined = will try).
|
|
195
|
+
*/
|
|
196
|
+
declare const attachmentRefusal: (kind: ComposerAttachment["kind"], caps: {
|
|
197
|
+
images?: boolean;
|
|
198
|
+
pdf?: boolean;
|
|
199
|
+
files?: boolean;
|
|
200
|
+
} | undefined, canConvertPdf?: boolean) => string | undefined;
|
|
201
|
+
/** One run of a chip menu's rows that share a `section` (none: rows drawn without a heading). */
|
|
202
|
+
interface MenuSection<T> {
|
|
203
|
+
section?: string;
|
|
204
|
+
options: T[];
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* A chip menu's rows as the menu draws them: each run of rows that share a `section` under one
|
|
208
|
+
* heading, in the order given (the host orders them - the keyboard goes the same way). A section
|
|
209
|
+
* that comes back later is a new run: rows are never moved. Pure.
|
|
210
|
+
*/
|
|
211
|
+
declare const menuSections: <T extends {
|
|
212
|
+
section?: string;
|
|
213
|
+
}>(options: readonly T[]) => MenuSection<T>[];
|
|
214
|
+
/**
|
|
215
|
+
* The row a key moves to in a menu of `count` rows from row `index` (-1: none focused): ArrowDown /
|
|
216
|
+
* ArrowUp to the next / previous (around the ends), Home / End to the first / last. Undefined for
|
|
217
|
+
* any other key, or an empty menu. Pure.
|
|
218
|
+
*/
|
|
219
|
+
declare const menuKeyTarget: (key: string, index: number, count: number) => number | undefined;
|
|
220
|
+
/** 950 → "0s", 61_000 → "1m 1s", 3_725_000 → "1h 2m". */
|
|
221
|
+
declare const formatElapsed: (ms: number) => string;
|
|
222
|
+
/** A banner above the input. */
|
|
223
|
+
interface ComposerNotice {
|
|
224
|
+
/** Stable per occurrence, so a dismissal sticks until something new happens. */
|
|
225
|
+
id: string;
|
|
226
|
+
tone: 'info' | 'warn' | 'error';
|
|
227
|
+
text: string;
|
|
228
|
+
}
|
|
229
|
+
/** The banner texts (override for another language). */
|
|
230
|
+
interface NoticeTexts {
|
|
231
|
+
/** A limit stopped the run; `kind` is 'input' | 'output' | 'reasoning' | 'total' | 'tool-calls'. */
|
|
232
|
+
limit: (kind: string, used: number, cap: number) => string;
|
|
233
|
+
/** The context was compacted. */
|
|
234
|
+
compacted: (scope: string, before: number, after: number) => string;
|
|
235
|
+
}
|
|
236
|
+
declare const defaultNoticeTexts: NoticeTexts;
|
|
237
|
+
/**
|
|
238
|
+
* The notices worth a banner for the current run: a limit that stopped it, the
|
|
239
|
+
* latest compaction, a failure to start. Pure — derived from the UI state.
|
|
240
|
+
*/
|
|
241
|
+
declare const noticesOf: (state: AgentUiState, texts?: Partial<NoticeTexts>) => ComposerNotice[];
|
|
242
|
+
/** A recording's length as a clock: `0:07`, `12:30`, `1:02:05`. */
|
|
243
|
+
declare const formatClock: (ms: number) => string;
|
|
244
|
+
/**
|
|
245
|
+
* What to say of a microphone or dictation failure: the recognizer's own words when it gave some
|
|
246
|
+
* (a host's transcription error, already in its language), else the label of the code - a refused
|
|
247
|
+
* permission says how to allow it again.
|
|
248
|
+
*/
|
|
249
|
+
declare const micProblemText: (code: string | undefined, message: string | undefined, labels: Pick<AgentLabels, "micDenied" | "micMissing" | "micBusy" | "micUnsupported" | "dictationFailed" | "microphone">) => string;
|
|
250
|
+
/** A voice message's file name, from when it was recorded: `voice-2026-11-29-1052.webm`. */
|
|
251
|
+
declare const voiceMessageName: (at: Date, extension: string) => string;
|
|
252
|
+
/** The counter shows from this share of the limit on ("3,650 / 4,000"). */
|
|
253
|
+
declare const INPUT_COUNTER_FROM = 0.9;
|
|
254
|
+
/** Whether the counter is shown for `count` characters of `max`. */
|
|
255
|
+
declare const inputCounterShown: (count: number, max: number) => boolean;
|
|
256
|
+
/**
|
|
257
|
+
* A text's length as the box will hold it: a textarea keeps every line break as one `\n` (a
|
|
258
|
+
* pasted CRLF or CR becomes LF), and its value is counted in UTF-16 code units - what the
|
|
259
|
+
* counter shows and the limit is judged by (an emoji is 2, a letter 1, in every browser).
|
|
260
|
+
*/
|
|
261
|
+
declare const boxLength: (text: string) => number;
|
|
262
|
+
/**
|
|
263
|
+
* Whether inserting `inserted` into `current` over its selection `[start, end)` keeps the box
|
|
264
|
+
* within `max` characters (`boxLength`).
|
|
265
|
+
*/
|
|
266
|
+
declare const insertionFits: (current: string, start: number, end: number, inserted: string, max: number) => boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Whether `text` is ONE character as a person types it: one grapheme (a letter, an emoji with its
|
|
269
|
+
* modifiers, a line break) - what a key press inserts. At the limit that is typing, and it stops;
|
|
270
|
+
* anything longer is never cut.
|
|
271
|
+
*/
|
|
272
|
+
declare const isOneCharacter: (text: string) => boolean;
|
|
273
|
+
/**
|
|
274
|
+
* Where text goes in a box with a limit:
|
|
275
|
+
* - `'insert'` - into the box: it fits (or there is no limit);
|
|
276
|
+
* - `'stop'` - nowhere, silently: ONE character typed into a full box (`fromBox`: it came through
|
|
277
|
+
* the box's own editing - a key, a paste of one letter) - typing stops at the limit;
|
|
278
|
+
* - `'attach'` - the WHOLE of it as a text attachment (never cut);
|
|
279
|
+
* - `'refuse'` - nowhere, said in words: attachments are off.
|
|
280
|
+
* Dictation and a draft are not `fromBox`: a single dictated word is attached, never dropped.
|
|
281
|
+
*/
|
|
282
|
+
declare const longTextRoute: (input: {
|
|
283
|
+
current: string;
|
|
284
|
+
start: number;
|
|
285
|
+
end: number;
|
|
286
|
+
inserted: string;
|
|
287
|
+
max: number | undefined;
|
|
288
|
+
attachments: boolean;
|
|
289
|
+
fromBox?: boolean;
|
|
290
|
+
}) => "insert" | "stop" | "attach" | "refuse";
|
|
291
|
+
/**
|
|
292
|
+
* What an edit the composer could not stop beforehand inserted (an IME's commit, an insertion
|
|
293
|
+
* whose `beforeinput` cannot be cancelled): the part of `next` that is not in `prev`, found by
|
|
294
|
+
* their common start and end - around the caret, never splitting a surrogate pair. Undefined
|
|
295
|
+
* when the box is within `max`, or did not grow (a deletion is never taken back).
|
|
296
|
+
*/
|
|
297
|
+
declare const overflowOf: (prev: string, next: string, max: number) => {
|
|
298
|
+
inserted: string;
|
|
299
|
+
} | undefined;
|
|
300
|
+
/**
|
|
301
|
+
* The name of a text attachment the composer made from a paste or a dictation, by when it was
|
|
302
|
+
* made in local time: `pasted-2026-11-30-140509.txt` (`-2`, `-3`… when the message already holds
|
|
303
|
+
* that name: two pastes in one second must not land in one file). `.txt`: it is plain text as it
|
|
304
|
+
* was given - not Markdown (a paste of code or a log is no document) - and every reader of the
|
|
305
|
+
* workspace (`fs_read`, a search index, a preview) takes it as text.
|
|
306
|
+
*/
|
|
307
|
+
declare const longTextName: (at: Date, kind?: "pasted" | "dictation", taken?: readonly string[]) => string;
|
|
308
|
+
/** What `saveAttachments` needs of a workspace (the core's `VirtualFileSystem` has it). */
|
|
309
|
+
interface AttachmentFiles {
|
|
310
|
+
read(path: string): Promise<unknown>;
|
|
311
|
+
write(path: string, content: string, opts?: {
|
|
312
|
+
mimeType?: string;
|
|
313
|
+
}): Promise<unknown>;
|
|
314
|
+
writeDataUrl(path: string, dataUrl: string): Promise<unknown>;
|
|
315
|
+
delete(path: string): Promise<unknown>;
|
|
316
|
+
/**
|
|
317
|
+
* A workspace that NAMES a message's attachments itself gives this, and then it decides where
|
|
318
|
+
* each one goes: it is asked for `/attachments/<name>` and answers where the file is - never
|
|
319
|
+
* over another file (beside it, `-2`…; or the very same file already there, `created: false`,
|
|
320
|
+
* which is then never deleted again). The composer names THAT path to the model. Without it the
|
|
321
|
+
* composer picks a name no file has (`freeAttachmentPath`) and writes there.
|
|
322
|
+
*/
|
|
323
|
+
saveAttachment?(path: string, content: string, opts: {
|
|
324
|
+
mimeType: string;
|
|
325
|
+
encoding: 'utf8' | 'base64';
|
|
326
|
+
}): Promise<{
|
|
327
|
+
path: string;
|
|
328
|
+
created: boolean;
|
|
329
|
+
}>;
|
|
330
|
+
}
|
|
331
|
+
/** A data URL's parts as the core's `writeDataUrl` reads them (base64 or URL-encoded text). */
|
|
332
|
+
declare const dataUrlParts: (dataUrl: string) => {
|
|
333
|
+
content: string;
|
|
334
|
+
encoding: "utf8" | "base64";
|
|
335
|
+
mimeType: string;
|
|
336
|
+
};
|
|
337
|
+
/** One path segment out of an attachment's name (`a b.txt` → `a_b.txt`). */
|
|
338
|
+
declare const attachmentFileName: (name: string) => string;
|
|
339
|
+
/**
|
|
340
|
+
* Where an attachment goes in the workspace: `/attachments/<name>`, or - when a file is there
|
|
341
|
+
* already, or this message took the path - `<stem>-2<ext>`, `-3`…: never over another file.
|
|
342
|
+
*/
|
|
343
|
+
declare const freeAttachmentPath: (name: string, taken: (path: string) => Promise<boolean>) => Promise<string>;
|
|
344
|
+
/** What `saveAttachments` did: every file written, or the ones it could not write (none kept). */
|
|
345
|
+
type SavedAttachments = {
|
|
346
|
+
saved: true;
|
|
347
|
+
} | {
|
|
348
|
+
saved: false;
|
|
349
|
+
failed: string[];
|
|
350
|
+
};
|
|
351
|
+
/**
|
|
352
|
+
* Write a message's attachments into the workspace before it is sent, each as a NEW file, and set
|
|
353
|
+
* their `path`. Who names the file: the workspace, when it has `saveAttachment` (a host's policy -
|
|
354
|
+
* the app keeps one file of the same bytes once); else this, by `freeAttachmentPath`. Never both:
|
|
355
|
+
* a host that places a file the library already numbered writes it twice, under two names. All or
|
|
356
|
+
* nothing: when one write fails (no room, over the workspace's file size, any error) the files
|
|
357
|
+
* this message created are deleted again, no `path` is set, and the names of the ones that failed
|
|
358
|
+
* come back - the message must not go (its text would otherwise reach the model whole, or not at
|
|
359
|
+
* all).
|
|
360
|
+
*/
|
|
361
|
+
declare const saveAttachments: (files: AttachmentFiles, items: ComposerAttachment[]) => Promise<SavedAttachments>;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* MCP elicitation, the part of it that is not React: what a field of a server's form is drawn
|
|
365
|
+
* as, what the user typed turned into the answer, the checks an answer must pass before it is
|
|
366
|
+
* sent (the core's own rules, so the form says what is wrong instead of the tool call failing),
|
|
367
|
+
* what a link may be opened as, and the queue of questions waiting for the user.
|
|
368
|
+
*
|
|
369
|
+
* Pure, and free of the MCP SDK and of the core's `./mcp` subpath: the prompt is in the main
|
|
370
|
+
* entry of this package, the hooks that fill the queue are in `./mcp`.
|
|
371
|
+
*
|
|
372
|
+
* Nothing here keeps, logs or returns a value the user entered except to the one caller that
|
|
373
|
+
* hands it to the server: an issue names the field and the rule, never the value.
|
|
374
|
+
*/
|
|
375
|
+
/**
|
|
376
|
+
* A question waiting for the user: the core's request (every string in it is the SERVER's
|
|
377
|
+
* text), and when the core will stop waiting for the answer.
|
|
378
|
+
*/
|
|
379
|
+
interface PendingElicitation extends McpElicitationRequest {
|
|
380
|
+
/** Epoch ms after which the core cancels the question by itself; absent when it has no limit. */
|
|
381
|
+
expiresAt?: number;
|
|
382
|
+
}
|
|
383
|
+
/** The core's default for `elicitation.timeoutMs` (`MCP_ELICITATION_TIMEOUT_MS`). */
|
|
384
|
+
declare const ELICITATION_TIMEOUT_MS = 300000;
|
|
385
|
+
/**
|
|
386
|
+
* The hooks' `elicitation` option as the core's settings, or `undefined` when it is off - and
|
|
387
|
+
* then NOTHING is passed to the core: no capability is declared and the wire is what it was.
|
|
388
|
+
*/
|
|
389
|
+
declare const elicitationSettings: (option: boolean | McpElicitationOptions | undefined | null) => McpElicitationOptions | undefined;
|
|
390
|
+
/**
|
|
391
|
+
* What the hooks add to the options of the core's `connectMcpHttp`: the handler and the
|
|
392
|
+
* settings when elicitation is on, and NOTHING - not even the keys - when it is off.
|
|
393
|
+
*/
|
|
394
|
+
declare const elicitationConnectOptions: (option: boolean | McpElicitationOptions | undefined | null, handler: McpElicitationHandler) => {
|
|
395
|
+
onElicitation?: McpElicitationHandler;
|
|
396
|
+
elicitation?: McpElicitationOptions;
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* How long the core waits for an answer with these settings; `undefined` = no limit of its own
|
|
400
|
+
* (`0`, `Infinity`, more than a timer holds - the core's own rules).
|
|
401
|
+
*/
|
|
402
|
+
declare const elicitationTimeoutOf: (settings: McpElicitationOptions) => number | undefined;
|
|
403
|
+
interface ElicitationQueueOptions {
|
|
404
|
+
/**
|
|
405
|
+
* How long the core waits (ms), for `expiresAt`; `undefined` = no limit. A function is read
|
|
406
|
+
* when a question arrives (the settings of the connection that is open then).
|
|
407
|
+
*/
|
|
408
|
+
timeoutMs?: number | (() => number | undefined);
|
|
409
|
+
/** Called whenever the list of pending questions changed. */
|
|
410
|
+
onChange?: (pending: PendingElicitation[]) => void;
|
|
411
|
+
/** The clock (tests). */
|
|
412
|
+
now?: () => number;
|
|
413
|
+
}
|
|
414
|
+
interface ElicitationQueue {
|
|
415
|
+
/** The core's `onElicitation`: resolves when the user answers, or as `cancel`. */
|
|
416
|
+
handler: McpElicitationHandler;
|
|
417
|
+
/** The questions waiting, oldest first. */
|
|
418
|
+
pending: () => PendingElicitation[];
|
|
419
|
+
/** Answer one. False when no such question is waiting (answered, expired, cancelled). */
|
|
420
|
+
answer: (id: string, result: McpElicitationResult) => boolean;
|
|
421
|
+
/** Cancel the waiting questions - all of them, or those `match` picks (one server's). */
|
|
422
|
+
cancel: (match?: (request: PendingElicitation) => boolean) => void;
|
|
423
|
+
/** Cancel everything and stop reporting: the owner is gone. A later question is cancelled at once. */
|
|
424
|
+
dispose: () => void;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* The questions MCP servers are waiting on: `request.id → resolver`. A question leaves the queue
|
|
428
|
+
* exactly once - answered by the user, cancelled because the core no longer wants the answer
|
|
429
|
+
* (`ctx.signal`: its time ran out, the run stopped), or cancelled by its owner (a disconnect, an
|
|
430
|
+
* unmount) - and the queue never holds an answer: `answer` passes it straight to the resolver.
|
|
431
|
+
*/
|
|
432
|
+
declare const createElicitationQueue: (options?: ElicitationQueueOptions) => ElicitationQueue;
|
|
433
|
+
/** What a field is drawn as. */
|
|
434
|
+
type ElicitationControl = 'text' | 'email' | 'url' | 'date' | 'datetime' | 'number' | 'checkbox' | 'select' | 'multiselect';
|
|
435
|
+
interface ElicitationOption {
|
|
436
|
+
/** What goes back to the server, verbatim. */
|
|
437
|
+
value: string;
|
|
438
|
+
/** What the user reads (the option's title, or the value). */
|
|
439
|
+
label: string;
|
|
440
|
+
}
|
|
441
|
+
/** One field of a form, ready to draw. `label`, `description` and option labels are the server's text. */
|
|
442
|
+
interface ElicitationField {
|
|
443
|
+
name: string;
|
|
444
|
+
label: string;
|
|
445
|
+
description?: string;
|
|
446
|
+
required: boolean;
|
|
447
|
+
control: ElicitationControl;
|
|
448
|
+
/** `select` / `multiselect`. */
|
|
449
|
+
options?: ElicitationOption[];
|
|
450
|
+
schema: McpElicitationFieldSchema;
|
|
451
|
+
}
|
|
452
|
+
/** What the form holds while it is being filled in: text as typed, a tick, the ticked options. */
|
|
453
|
+
type ElicitationDraftValue = string | boolean | string[];
|
|
454
|
+
type ElicitationDraft = Record<string, ElicitationDraftValue>;
|
|
455
|
+
/**
|
|
456
|
+
* The fields of a form in the order the server listed them - exactly the set the core's schema
|
|
457
|
+
* guard lets through: a text (plain, email, uri, date, date-time), a number / integer, a
|
|
458
|
+
* boolean, a single select (`enum`, `enum` + `enumNames`, `oneOf`) and a multi-select (an array
|
|
459
|
+
* of `enum` or `anyOf` options).
|
|
460
|
+
*/
|
|
461
|
+
declare const elicitationFields: (schema: McpElicitationSchema | undefined) => ElicitationField[];
|
|
462
|
+
/** What the form starts with: the schema's defaults (the core dropped the ones that do not fit). */
|
|
463
|
+
declare const elicitationInitialDraft: (schema: McpElicitationSchema | undefined) => ElicitationDraft;
|
|
464
|
+
/** The rules an answer can break. An issue never carries the value. */
|
|
465
|
+
type ElicitationIssueKind = 'required' | 'tooShort' | 'tooLong' | 'email' | 'uri' | 'date' | 'dateTime' | 'notNumber' | 'notInteger' | 'belowMinimum' | 'aboveMaximum' | 'notAnOption' | 'tooFew' | 'tooMany';
|
|
466
|
+
interface ElicitationIssue {
|
|
467
|
+
kind: ElicitationIssueKind;
|
|
468
|
+
/** The limit the rule states (a length, a bound, a count), when it has one. */
|
|
469
|
+
limit?: number;
|
|
470
|
+
}
|
|
471
|
+
/** The longest text a field without its own `maxLength` takes (the core's cap). */
|
|
472
|
+
declare const ELICITATION_VALUE_MAX_CHARS = 10000;
|
|
473
|
+
/** The most options one multi-select may be answered with (the core's cap). */
|
|
474
|
+
declare const ELICITATION_MAX_OPTIONS = 100;
|
|
475
|
+
type ElicitationFormOutcome = {
|
|
476
|
+
ok: true;
|
|
477
|
+
content: Record<string, string | number | boolean | string[]>;
|
|
478
|
+
} | {
|
|
479
|
+
ok: false;
|
|
480
|
+
issues: Record<string, ElicitationIssue>;
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* A filled-in form as the answer the core will accept, or what is wrong with it, per field. The
|
|
484
|
+
* rules are the core's (`validateMcpElicitationContent`): a required field is there, every
|
|
485
|
+
* value is of its field's type and within its limits, and nothing the form did not ask for is
|
|
486
|
+
* sent. A field left empty is left out, not sent as an empty text.
|
|
487
|
+
*/
|
|
488
|
+
declare const elicitationFormAnswer: (schema: McpElicitationSchema | undefined, draft: ElicitationDraft) => ElicitationFormOutcome;
|
|
489
|
+
interface ElicitationLink {
|
|
490
|
+
/** The host the link leads to (with its port), as the browser will resolve it; '' if unparseable. */
|
|
491
|
+
host: string;
|
|
492
|
+
/** The whole link as text: the parsed form when it parses, what the server sent otherwise. */
|
|
493
|
+
href: string;
|
|
494
|
+
/** Whether an "Open" action may exist for it: https, or http on a loopback host, no credentials. */
|
|
495
|
+
openable: boolean;
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* A link a server wants the user to open, as the prompt may show it. The core already refuses
|
|
499
|
+
* anything but https (http on loopback); this is the same rule applied again where the link is
|
|
500
|
+
* about to be opened, because a host may hand the prompt a request the core never checked.
|
|
501
|
+
*/
|
|
502
|
+
declare const elicitationLink: (raw: unknown) => ElicitationLink;
|
|
503
|
+
/**
|
|
504
|
+
* Why a question was answered without anybody deciding: the core's reasons
|
|
505
|
+
* (`mcp.elicitation-answered` with `automatic: true`), and `stopped`, which the reducer sets on
|
|
506
|
+
* whatever was still waiting when the run stopped.
|
|
507
|
+
*/
|
|
508
|
+
type ElicitationOutcomeReason = 'timeout' | 'step-timeout' | 'aborted' | 'stopped' | 'cap-per-call' | 'cap-per-run' | 'unsupported-schema' | 'unsupported-mode' | 'insecure-url' | 'invalid-request' | 'subagent' | 'handler-error' | 'invalid-answer' | 'after-failure' | 'no-tool-call';
|
|
509
|
+
/** "4:05" - what is left of a question's time. */
|
|
510
|
+
declare const formatCountdown: (ms: number) => string;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* What a workspace file is to the UI. `image` is only what the core's media tools accept
|
|
514
|
+
* (PNG / JPEG / GIF / WebP - never SVG, which is shown as its source); `file` is anything that
|
|
515
|
+
* cannot be shown as text: a chip with a download and no preview.
|
|
516
|
+
*/
|
|
517
|
+
type FileKind = 'html' | 'markdown' | 'csv' | 'json' | 'image' | 'code' | 'text' | 'file';
|
|
518
|
+
/** The kind of a file, by its MIME type first and its extension second. */
|
|
519
|
+
declare const fileKindOf: (path: string, mediaType: string) => FileKind;
|
|
520
|
+
/** The last segment of a path: what a chip is called and what a download is saved as. */
|
|
521
|
+
declare const fileNameOf: (path: string) => string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* The model asks the person ONE closed question (the core's `ask_user`, `config.askUser`): the
|
|
525
|
+
* part of it that is not React - the queue the hook hands the core as `askUser.onQuestion`, the
|
|
526
|
+
* answer a prompt builds, and what of a question's tool result may be kept.
|
|
527
|
+
*
|
|
528
|
+
* Pure: no React, no clock of its own (the queue takes `now`), no import of the core at run time
|
|
529
|
+
* (types only), so the main entry still loads next to an older core.
|
|
530
|
+
*
|
|
531
|
+
* Nothing here keeps, logs or returns what the person typed (`{ other }`) except to the one caller
|
|
532
|
+
* that hands it to the core: the queue passes an answer straight to the core's resolver, and
|
|
533
|
+
* {@link withoutOwnWords} takes the person's words out of the events before a view keeps them.
|
|
534
|
+
*/
|
|
535
|
+
/** The core's tool name (`ASK_USER_TOOL`). */
|
|
536
|
+
declare const ASK_USER_TOOL_NAME = "ask_user";
|
|
537
|
+
/** The core's default for `askUser.timeoutMs` (`ASK_USER_TIMEOUT_MS`). */
|
|
538
|
+
declare const QUESTION_TIMEOUT_MS = 300000;
|
|
539
|
+
/**
|
|
540
|
+
* A question waiting for the person: the core's request (the question and every option are the
|
|
541
|
+
* MODEL's text, cleaned - show them as plain text), and when the core stops waiting for it.
|
|
542
|
+
*/
|
|
543
|
+
interface PendingQuestion extends AskUserRequest {
|
|
544
|
+
/** Epoch ms after which the core answers it by itself ("did not answer in time"); absent: no limit. */
|
|
545
|
+
expiresAt?: number;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* How long the core waits for an answer with this `askUser`; `undefined` = no limit of its own
|
|
549
|
+
* (`0`, `Infinity`, more than a timer holds - the core's own rules).
|
|
550
|
+
*/
|
|
551
|
+
declare const questionTimeoutOf: (askUser: boolean | AskUserConfig | undefined) => number | undefined;
|
|
552
|
+
/**
|
|
553
|
+
* `config.askUser` as `useAgent` builds the agent with it: on without a handler of its own
|
|
554
|
+
* (`true`, `{ timeoutMs, maxPerRun }`) it gets `handler`; a host's own `onQuestion` wins, and off
|
|
555
|
+
* (absent, `false`) stays off - nothing is added, so the core mounts no tool.
|
|
556
|
+
*/
|
|
557
|
+
declare const askUserWith: (askUser: boolean | AskUserConfig | undefined, handler: AskUserHandler) => boolean | AskUserConfig | undefined;
|
|
558
|
+
interface QuestionQueueOptions {
|
|
559
|
+
/**
|
|
560
|
+
* How long the core waits (ms), for `expiresAt`; `undefined` = no limit. A function is read when
|
|
561
|
+
* a question arrives (the settings of the agent that asks).
|
|
562
|
+
*/
|
|
563
|
+
timeoutMs?: number | (() => number | undefined);
|
|
564
|
+
/** Called whenever the list of waiting questions changed. */
|
|
565
|
+
onChange?: (pending: PendingQuestion[]) => void;
|
|
566
|
+
/** The clock (tests). */
|
|
567
|
+
now?: () => number;
|
|
568
|
+
}
|
|
569
|
+
interface QuestionQueue {
|
|
570
|
+
/** The core's `askUser.onQuestion`: resolves when the person answers, or as `{ declined: true }`. */
|
|
571
|
+
handler: (request: AskUserRequest, ctx?: AskUserContext) => Promise<AskUserAnswer>;
|
|
572
|
+
/** The questions waiting, oldest first. */
|
|
573
|
+
pending: () => PendingQuestion[];
|
|
574
|
+
/** Answer one. False when no such question is waiting (answered, expired, cancelled). */
|
|
575
|
+
answer: (id: string, answer: AskUserAnswer) => boolean;
|
|
576
|
+
/**
|
|
577
|
+
* Take the waiting questions down - all of them, or those `match` picks - as declined (the run
|
|
578
|
+
* ended, it was stopped). The core has usually stopped waiting already; this only makes sure no
|
|
579
|
+
* resolver is left.
|
|
580
|
+
*/
|
|
581
|
+
cancel: (match?: (question: PendingQuestion) => boolean) => void;
|
|
582
|
+
/** Cancel everything and stop reporting: the owner is gone. A later question is declined at once. */
|
|
583
|
+
dispose: () => void;
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* The questions the model is waiting on: `request.id → resolver`. A question leaves the queue
|
|
587
|
+
* exactly once - answered by the person, dropped because the core no longer wants the answer
|
|
588
|
+
* (`ctx.signal`: its time ran out, the run stopped), or cancelled by its owner (the run ended, an
|
|
589
|
+
* unmount) - and the queue never holds an answer: `answer` passes it straight to the resolver.
|
|
590
|
+
*/
|
|
591
|
+
declare const createQuestionQueue: (options?: QuestionQueueOptions) => QuestionQueue;
|
|
592
|
+
/**
|
|
593
|
+
* Why a question ended without the person deciding: the core's `AskUserReason`
|
|
594
|
+
* (`handler-error`, `invalid-answer`, `cannot-park`), or its action (`timeout`, `stopped`).
|
|
595
|
+
*/
|
|
596
|
+
type QuestionOutcomeReason = 'timeout' | 'stopped' | 'handler-error' | 'invalid-answer' | 'cannot-park';
|
|
597
|
+
/**
|
|
598
|
+
* The person's picks as the core's answer: the labels that were offered, in the order they were
|
|
599
|
+
* offered, each once - and one only unless the question allows several. `undefined` when nothing
|
|
600
|
+
* that was offered is picked (Send stays off).
|
|
601
|
+
*/
|
|
602
|
+
declare const questionChoiceOf: (question: Pick<AskUserRequest, "options" | "multiple">, picked: readonly string[]) => AskUserAnswer | undefined;
|
|
603
|
+
/**
|
|
604
|
+
* The person's own words as the core's answer, when the question allows them and there is
|
|
605
|
+
* anything but spaces; `undefined` otherwise (Send stays off). The text goes to the caller only.
|
|
606
|
+
*/
|
|
607
|
+
declare const questionOtherOf: (question: Pick<AskUserRequest, "allowOther">, text: string) => AskUserAnswer | undefined;
|
|
608
|
+
/** Whether an `ask_user` result may be kept by a view: it holds no word the person typed. */
|
|
609
|
+
declare const askUserOutputKept: (output: unknown, ok: boolean) => boolean;
|
|
610
|
+
/**
|
|
611
|
+
* The event with the person's own words taken out: the result of an `ask_user` call that is not
|
|
612
|
+
* known to hold labels only (an answer in their own words) loses its `output` - in
|
|
613
|
+
* `step.tool-result`, in `step.complete`'s tool calls, and in a subagent's events at any depth.
|
|
614
|
+
* Everything else comes back as it was (the same object). The model was given the words; the
|
|
615
|
+
* view, the saved chat and the event log are not.
|
|
616
|
+
*/
|
|
617
|
+
declare const withoutOwnWords: (event: AgentEvent) => AgentEvent;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Every string the pre-styled components render — override any of them for
|
|
621
|
+
* another language or wording, per component (`labels` prop) or for a whole
|
|
622
|
+
* tree (`<AgentLabelsProvider>`). Counted phrases are functions, so languages
|
|
623
|
+
* with several plural forms can say them properly.
|
|
624
|
+
*/
|
|
625
|
+
interface AgentLabels {
|
|
626
|
+
emptyState: string;
|
|
627
|
+
status: Record<AgentStatus, string>;
|
|
628
|
+
history: string;
|
|
629
|
+
newChat: string;
|
|
630
|
+
files: string;
|
|
631
|
+
totalUsage: string;
|
|
632
|
+
showHistory: string;
|
|
633
|
+
showFiles: string;
|
|
634
|
+
close: string;
|
|
635
|
+
steps: (n: number) => string;
|
|
636
|
+
toolCalls: (n: number) => string;
|
|
637
|
+
subagents: (n: number) => string;
|
|
638
|
+
skillsUsed: (names: string) => string;
|
|
639
|
+
/** "learned: a, b" - lessons the agent wrote down in this run. */
|
|
640
|
+
learnedNow: (names: string) => string;
|
|
641
|
+
/** "2 web requests" - what the model fetched in this run. */
|
|
642
|
+
fetches: (n: number) => string;
|
|
643
|
+
/** Why a web request was refused. */
|
|
644
|
+
fetchRefused: (reason: string) => string;
|
|
645
|
+
answerThoughts: string;
|
|
646
|
+
/** In place of the answer of a run that was stopped before it wrote any (`ChatMessage.stopped`). */
|
|
647
|
+
answerStopped: string;
|
|
648
|
+
stepThoughts: string;
|
|
649
|
+
usageTitle: string;
|
|
650
|
+
attachments: string;
|
|
651
|
+
planned: string;
|
|
652
|
+
replanned: (mode: string, reason: string) => string;
|
|
653
|
+
notebookTitle: string;
|
|
654
|
+
notebookEmpty: string;
|
|
655
|
+
notebookForget: string;
|
|
656
|
+
notebookRevision: (n: number) => string;
|
|
657
|
+
/** Before the sources a lesson came from. */
|
|
658
|
+
notebookFrom: string;
|
|
659
|
+
/** Before a fact that was just saved. */
|
|
660
|
+
memorySaved: string;
|
|
661
|
+
/** Before a fact that was just changed. */
|
|
662
|
+
memoryUpdated: string;
|
|
663
|
+
/** Before a fact that was just forgotten. */
|
|
664
|
+
memoryForgotten: string;
|
|
665
|
+
/** The card's button that takes it back. */
|
|
666
|
+
memoryUndo: string;
|
|
667
|
+
/** In place of the button once it was taken back. */
|
|
668
|
+
memoryUndone: string;
|
|
669
|
+
placeholder: string;
|
|
670
|
+
listening: string;
|
|
671
|
+
message: string;
|
|
672
|
+
dropHint: string;
|
|
673
|
+
attach: string;
|
|
674
|
+
attachTitle: string;
|
|
675
|
+
commands: string;
|
|
676
|
+
commandsTitle: string;
|
|
677
|
+
send: string;
|
|
678
|
+
stop: string;
|
|
679
|
+
dismiss: string;
|
|
680
|
+
remove: (name: string) => string;
|
|
681
|
+
dictate: string;
|
|
682
|
+
dictateTitle: string;
|
|
683
|
+
stopDictation: string;
|
|
684
|
+
/**
|
|
685
|
+
* The mic button's name while it listens: that it listens, and that a tap finishes (the title
|
|
686
|
+
* stays `stopDictation`).
|
|
687
|
+
*/
|
|
688
|
+
micListening: string;
|
|
689
|
+
microphone: string;
|
|
690
|
+
/** While a recording recognizer waits for its model (`useSpeechToText().finishing`). */
|
|
691
|
+
transcribing: string;
|
|
692
|
+
/** The microphone was refused (`not-allowed`): how to allow it again. */
|
|
693
|
+
micDenied: string;
|
|
694
|
+
/** No microphone on the device (`audio-capture`). */
|
|
695
|
+
micMissing: string;
|
|
696
|
+
/** The microphone is held by another app (`busy`). */
|
|
697
|
+
micBusy: string;
|
|
698
|
+
/** No recording here at all (`unsupported`: an insecure page, no `MediaRecorder`). */
|
|
699
|
+
micUnsupported: string;
|
|
700
|
+
/** A dictation that failed without words of its own. */
|
|
701
|
+
dictationFailed: string;
|
|
702
|
+
/** The composer's voice-message button (`voiceMessage` of the composer). */
|
|
703
|
+
recordVoiceMessage: string;
|
|
704
|
+
/**
|
|
705
|
+
* A recording, in words: the title of a chat a voice message starts (until its transcript is
|
|
706
|
+
* there), the name a screen reader gives a message that is only a recording.
|
|
707
|
+
*/
|
|
708
|
+
voiceMessage: string;
|
|
709
|
+
/** The length shown beside a voice message's player (`formatClock`: "0:07"). */
|
|
710
|
+
audioDuration: (clock: string) => string;
|
|
711
|
+
/** The strip while a voice message is recorded: "Recording 0:07". */
|
|
712
|
+
recording: (elapsed: string) => string;
|
|
713
|
+
/** Its button that keeps the recording as an attachment. */
|
|
714
|
+
recordingDone: string;
|
|
715
|
+
/** Its button that throws the recording away. */
|
|
716
|
+
recordingCancel: string;
|
|
717
|
+
/** A voice message that reached the longest recording and was stopped by itself. */
|
|
718
|
+
recordingLimit: string;
|
|
719
|
+
model: string;
|
|
720
|
+
thinking: string;
|
|
721
|
+
toolConsent: string;
|
|
722
|
+
modes: Record<ToolApprovalMode, {
|
|
723
|
+
label: string;
|
|
724
|
+
hint: string;
|
|
725
|
+
}>;
|
|
726
|
+
timerRunning: string;
|
|
727
|
+
timerLast: string;
|
|
728
|
+
agents: (n: number) => string;
|
|
729
|
+
agentsTitle: string;
|
|
730
|
+
/** Banners: a limit stopped the run / the context was compacted. */
|
|
731
|
+
notices: NoticeTexts;
|
|
732
|
+
/** No longer shown: a message of attachments only is shown as its attachments, with no text. */
|
|
733
|
+
attachmentsOnly: string;
|
|
734
|
+
seeAttachments: string;
|
|
735
|
+
tooLarge: (name: string, mb: number) => string;
|
|
736
|
+
/** A picture with more pixels than `attachments.imageMaxSourcePixels` (in millions). */
|
|
737
|
+
tooManyPixels: (name: string, megapixels: number) => string;
|
|
738
|
+
binaryText: (name: string) => string;
|
|
739
|
+
/** An attachment's note: an image sent smaller (`size` is `bytes` of the original). */
|
|
740
|
+
downscaledFrom: (size: string) => string;
|
|
741
|
+
/** An attachment's note: a file sent as the text `convertFile` made of it. */
|
|
742
|
+
convertedFrom: (name: string) => string;
|
|
743
|
+
/** Files left out: the message has `attachments.maxImages` pictures (`names`: up to three). */
|
|
744
|
+
tooManyImages: (names: string, max: number) => string;
|
|
745
|
+
/** Files left out: the message would carry more than `attachments.maxTotalBytes` (in MB). */
|
|
746
|
+
messageTooLarge: (names: string, mb: number) => string;
|
|
747
|
+
/** A paste too long for the message box, as an attachment's note (`longText`): its length. */
|
|
748
|
+
pastedText: (chars: number) => string;
|
|
749
|
+
/** The same for a dictation too long for the box. */
|
|
750
|
+
dictatedText: (chars: number) => string;
|
|
751
|
+
/** The box's counter near its limit (`longText`): "3,650 / 4,000". */
|
|
752
|
+
inputCount: (count: number, max: number) => string;
|
|
753
|
+
/** The counter's label (its tooltip and accessible name). */
|
|
754
|
+
inputLimit: (max: number) => string;
|
|
755
|
+
/** Said (politely, to a screen reader too) when the box is full. */
|
|
756
|
+
inputLimitReached: (max: number) => string;
|
|
757
|
+
/** The same with attachments off: no file is promised. */
|
|
758
|
+
inputLimitFull: (max: number) => string;
|
|
759
|
+
/** Said to a screen reader when a paste (or any insertion) became a file: its length. */
|
|
760
|
+
pastedAsFile: (chars: number) => string;
|
|
761
|
+
/** The same for a dictation that became a file. */
|
|
762
|
+
dictatedAsFile: (chars: number) => string;
|
|
763
|
+
/** A long paste with attachments off: it is not inserted, and not cut either. */
|
|
764
|
+
longTextRefused: (max: number) => string;
|
|
765
|
+
/**
|
|
766
|
+
* An attachment could not be written into the workspace (no room, too large, an error): the
|
|
767
|
+
* message was NOT sent and everything stays in the composer.
|
|
768
|
+
*/
|
|
769
|
+
attachmentSaveFailed: (names: string) => string;
|
|
770
|
+
commandGroups: {
|
|
771
|
+
commands: string;
|
|
772
|
+
consent: string;
|
|
773
|
+
skills: string;
|
|
774
|
+
};
|
|
775
|
+
commandDescriptions: {
|
|
776
|
+
compact: string;
|
|
777
|
+
new: string;
|
|
778
|
+
stop: string;
|
|
779
|
+
autopilot: string;
|
|
780
|
+
ask: string;
|
|
781
|
+
askAll: string;
|
|
782
|
+
readOnly: string;
|
|
783
|
+
think: (levels: string) => string;
|
|
784
|
+
};
|
|
785
|
+
/** `off` = the provider's default; `none` = thinking switched off. */
|
|
786
|
+
thinkingLevels: {
|
|
787
|
+
off: string;
|
|
788
|
+
none: string;
|
|
789
|
+
low: string;
|
|
790
|
+
medium: string;
|
|
791
|
+
high: string;
|
|
792
|
+
};
|
|
793
|
+
filesEmpty: string;
|
|
794
|
+
upload: string;
|
|
795
|
+
download: string;
|
|
796
|
+
delete: string;
|
|
797
|
+
preview: string;
|
|
798
|
+
bytes: (n: number) => string;
|
|
799
|
+
historyEmpty: string;
|
|
800
|
+
deleteChat: string;
|
|
801
|
+
messagesCount: (n: number) => string;
|
|
802
|
+
approvalLead: string;
|
|
803
|
+
approve: string;
|
|
804
|
+
alwaysAllow: string;
|
|
805
|
+
deny: string;
|
|
806
|
+
declinedReason: string;
|
|
807
|
+
readOnlyTool: string;
|
|
808
|
+
consentWaiting: string;
|
|
809
|
+
consentAllowed: string;
|
|
810
|
+
consentDenied: (reason?: string) => string;
|
|
811
|
+
/** Composer placeholder while the agent works (what you type is sent to it). */
|
|
812
|
+
placeholderBusy: string;
|
|
813
|
+
/** The send button while the agent works. */
|
|
814
|
+
steer: string;
|
|
815
|
+
/** Shown when files are attached while the agent works (they can't be added then). */
|
|
816
|
+
noAttachmentsWhileBusy: string;
|
|
817
|
+
/** A message waiting to reach the agent. */
|
|
818
|
+
queuedWaiting: string;
|
|
819
|
+
/**
|
|
820
|
+
* What the user sent, waiting with a run of this tab's that waits for the conversation's other
|
|
821
|
+
* run (`sessionBusy`) - in another tab, or in this one - to finish. Shown only while that lasts.
|
|
822
|
+
*/
|
|
823
|
+
queuedForSession: (heldBy: 'another-tab' | 'this-tab') => string;
|
|
824
|
+
/**
|
|
825
|
+
* What this tab said to the conversation's run in another tab (`sendRemote`), while that tab has
|
|
826
|
+
* not answered (it may be in the background, frozen by the browser): it is not refused.
|
|
827
|
+
*/
|
|
828
|
+
queuedForOtherTab: string;
|
|
829
|
+
/** Where a note landed: between tool calls / after a step / before the answer. */
|
|
830
|
+
noteAt: Record<'round' | 'step' | 'final', string>;
|
|
831
|
+
/** Messages the run ended without delivering, offered for sending. */
|
|
832
|
+
undelivered: (n: number) => string;
|
|
833
|
+
sendUndelivered: string;
|
|
834
|
+
discardUndelivered: string;
|
|
835
|
+
stopSubagent: string;
|
|
836
|
+
subagentStopped: string;
|
|
837
|
+
/** The conversation is running in another tab: it is shown here live, and Stop / typing go there. */
|
|
838
|
+
remoteRunning: string;
|
|
839
|
+
/** That run waits for a person's answer - which is given in that tab. */
|
|
840
|
+
remoteWaitingConsent: string;
|
|
841
|
+
/** That tab closed (or crashed) before the run finished. */
|
|
842
|
+
remoteGone: string;
|
|
843
|
+
/** This tab's run waits for the other run of the conversation (in another tab, or in this one). */
|
|
844
|
+
sessionBusy: (heldBy: 'another-tab' | 'this-tab') => string;
|
|
845
|
+
/** The mark on a message written to this run from another tab (queued, and where it arrived). */
|
|
846
|
+
fromAnotherTab: string;
|
|
847
|
+
failed: string;
|
|
848
|
+
toolCostTitle: string;
|
|
849
|
+
/** The tier badge on a step. */
|
|
850
|
+
tierNames: Record<ModelTier, string>;
|
|
851
|
+
/** The badge's tooltip: why the step started on its tier. */
|
|
852
|
+
tierReasons: Record<TierReason, string>;
|
|
853
|
+
/** Why a step was retried on a stronger model. */
|
|
854
|
+
escalationReasons: Record<EscalationReason, string>;
|
|
855
|
+
/** "Escalated: light → strong (reported a blocker)" - the names and the reason are already labels. */
|
|
856
|
+
escalated: (from: string, to: string, reason: string) => string;
|
|
857
|
+
/** Opens what the failed attempt had written. */
|
|
858
|
+
escalatedAttemptText: string;
|
|
859
|
+
/** "1 escalation" in the activity summary. */
|
|
860
|
+
escalations: (n: number) => string;
|
|
861
|
+
/** On a tool call made by an attempt that was escalated. */
|
|
862
|
+
attemptTag: (n: number) => string;
|
|
863
|
+
/** On a write the core did not run a second time (it succeeded in an earlier attempt). */
|
|
864
|
+
replayed: string;
|
|
865
|
+
replayedTitle: string;
|
|
866
|
+
/** The replanner call failed; the run went on with the plan it had. */
|
|
867
|
+
replanFailed: string;
|
|
868
|
+
/** The tag on a helper the model started itself (`spawn_subagent`). */
|
|
869
|
+
subagentHelper: string;
|
|
870
|
+
/** A node's status, in words. */
|
|
871
|
+
subagentStatus: Record<'running' | 'done' | 'error' | 'stopped', string>;
|
|
872
|
+
/** "12k tokens" - what was spent under a node; the number is already formatted. */
|
|
873
|
+
subagentTokens: (tokens: string) => string;
|
|
874
|
+
/** "tools: fs_read, web_fetch" - what a helper was given. */
|
|
875
|
+
subagentTools: (names: string) => string;
|
|
876
|
+
/** A helper that was given no tools at all (it only reasons). */
|
|
877
|
+
subagentNoTools: string;
|
|
878
|
+
/** The consent prompt of a helper's call: `role` is what the model wrote for it, if anything. */
|
|
879
|
+
approvalLeadHelper: (role: string | undefined, depth: number) => string;
|
|
880
|
+
/** Alt text of a generated image; `path` is where it is in the workspace. */
|
|
881
|
+
mediaImage: (path: string) => string;
|
|
882
|
+
/** A picture in the transcript: the thumbnail's accessible name (it opens the viewer). */
|
|
883
|
+
imageOpen: (name: string) => string;
|
|
884
|
+
/** The image viewer: the other pictures of the message, the zoom switch, "2 of 5". */
|
|
885
|
+
imagePrevious: string;
|
|
886
|
+
imageNext: string;
|
|
887
|
+
imageZoom: string;
|
|
888
|
+
imageCount: (index: number, total: number) => string;
|
|
889
|
+
/** The accessible name of a generated audio player. */
|
|
890
|
+
mediaAudio: (path: string) => string;
|
|
891
|
+
/** A generated file that cannot be shown here (no workspace, the file is gone, an unknown type). */
|
|
892
|
+
mediaFile: (path: string) => string;
|
|
893
|
+
/** Under a generated picture made with reference pictures: their names ("me.jpg, dog.png"). */
|
|
894
|
+
mediaReferences: (names: string) => string;
|
|
895
|
+
/** ...and when the image model took none: the picture was made from the text alone. */
|
|
896
|
+
mediaReferencesUnused: (names: string) => string;
|
|
897
|
+
/** The summary of a transcript block. */
|
|
898
|
+
transcriptOf: (name: string) => string;
|
|
899
|
+
/** Says whose words a transcript is: the content of the user's file, not the agent's. */
|
|
900
|
+
transcriptNote: string;
|
|
901
|
+
/** The accessible name of an attached audio file's player (a voice message). */
|
|
902
|
+
audioAttachment: (name: string) => string;
|
|
903
|
+
readAloud: string;
|
|
904
|
+
readAloudPause: string;
|
|
905
|
+
readAloudResume: string;
|
|
906
|
+
readAloudStop: string;
|
|
907
|
+
/** While the audio is made (a provider's voice). */
|
|
908
|
+
readAloudLoading: string;
|
|
909
|
+
/** Said in place of a code block - the code is not read out. Empty: the block is skipped. */
|
|
910
|
+
readAloudCode: string;
|
|
911
|
+
/** A reading that failed without words of its own. */
|
|
912
|
+
readAloudFailed: string;
|
|
913
|
+
/** Above the chips: "3 files written in this turn". */
|
|
914
|
+
filesWritten: (n: number) => string;
|
|
915
|
+
/**
|
|
916
|
+
* Above the chips of the workspace files an answer NAMES (`showNamedFiles`) - it did not write
|
|
917
|
+
* them: "2 files in this answer".
|
|
918
|
+
*/
|
|
919
|
+
filesNamed: (n: number) => string;
|
|
920
|
+
/** In the activity summary: "3 files". */
|
|
921
|
+
filesCount: (n: number) => string;
|
|
922
|
+
/** The link that opens the Files panel. */
|
|
923
|
+
showInFiles: string;
|
|
924
|
+
/** What a file is, on its chip. */
|
|
925
|
+
fileKinds: Record<FileKind, string>;
|
|
926
|
+
/** The open button of a chip (accessible name); `name` is the file's name. */
|
|
927
|
+
fileOpen: (name: string) => string;
|
|
928
|
+
/** The same button while the preview is open. */
|
|
929
|
+
fileClose: (name: string) => string;
|
|
930
|
+
/**
|
|
931
|
+
* A link in an answer to a workspace file (`WorkspaceFileLink`): the button's accessible name,
|
|
932
|
+
* from the link's words and the file's name.
|
|
933
|
+
*/
|
|
934
|
+
fileLinkOpen: (text: string, name: string) => string;
|
|
935
|
+
/** The download button of a chip (accessible name). */
|
|
936
|
+
fileDownload: (name: string) => string;
|
|
937
|
+
/** On a chip: the subagent that wrote the file. */
|
|
938
|
+
fileBy: (name: string) => string;
|
|
939
|
+
/** On a chip whose file is not in the workspace any more. */
|
|
940
|
+
fileGone: string;
|
|
941
|
+
/** In the preview of a file that cannot be shown as text or as an image. */
|
|
942
|
+
fileNoPreview: string;
|
|
943
|
+
/** Under a preview that shows only the first `chars` characters. */
|
|
944
|
+
fileCut: (chars: number) => string;
|
|
945
|
+
/** Unfold / fold a long text preview. */
|
|
946
|
+
fileShowRest: string;
|
|
947
|
+
fileShowLess: string;
|
|
948
|
+
/** The two views of a text file the host can render (Markdown). */
|
|
949
|
+
fileRendered: string;
|
|
950
|
+
fileSource: string;
|
|
951
|
+
closePreview: string;
|
|
952
|
+
/** Under a source view: "64 lines". */
|
|
953
|
+
fileLines: (n: number) => string;
|
|
954
|
+
/** The host's label on the frame of an HTML file. */
|
|
955
|
+
htmlFrameTitle: string;
|
|
956
|
+
/** The two badges under it, while the page is shown. */
|
|
957
|
+
htmlSandboxed: string;
|
|
958
|
+
htmlNoNetwork: string;
|
|
959
|
+
/** In their place, while the source is shown. */
|
|
960
|
+
htmlSourceNote: string;
|
|
961
|
+
/** In the frame's footer. */
|
|
962
|
+
htmlScripts: (on: boolean) => string;
|
|
963
|
+
/** The files the page links to that the preview does not load. */
|
|
964
|
+
htmlLinkedFiles: (names: string) => string;
|
|
965
|
+
/** A page too large to frame. */
|
|
966
|
+
htmlTooLarge: string;
|
|
967
|
+
/** The button that makes the frame taller / back. */
|
|
968
|
+
htmlTaller: string;
|
|
969
|
+
htmlShorter: string;
|
|
970
|
+
/** The accessible name of the frame itself. */
|
|
971
|
+
htmlFrameName: (path: string) => string;
|
|
972
|
+
/**
|
|
973
|
+
* `n` is the CALLS to the media models, failed ones included (`usage.mediaCalls`: what the
|
|
974
|
+
* run's cap counts). `made` is what came of them (`imagesGenerated`, `speechCharacters`,
|
|
975
|
+
* `transcriptionSeconds`): a label that says "pictures made" counts `made.imagesGenerated`,
|
|
976
|
+
* never `n` - a call that failed made nothing. An empty string shows nothing.
|
|
977
|
+
*/
|
|
978
|
+
usageMedia: (n: number, made: {
|
|
979
|
+
imagesGenerated: number;
|
|
980
|
+
speechCharacters: number;
|
|
981
|
+
transcriptionSeconds: number;
|
|
982
|
+
}) => string;
|
|
983
|
+
usageDecisions: (n: number) => string;
|
|
984
|
+
/** "decision model: continue (0.93)" - its answer was used; the probability is formatted. */
|
|
985
|
+
decisionAccepted: (choice: string, confidence: string) => string;
|
|
986
|
+
/** "decision model fell back: low confidence (0.41 < 0.8)" - the ordinary model call ran. */
|
|
987
|
+
decisionFellBack: (reason: string, detail: string) => string;
|
|
988
|
+
decisionReasons: Record<DecisionFallbackReason, string>;
|
|
989
|
+
/** Before the query of a `web_search` call. */
|
|
990
|
+
searchQuery: string;
|
|
991
|
+
searchNoResults: string;
|
|
992
|
+
/** Results left out by the egress policy. */
|
|
993
|
+
searchFiltered: (n: number) => string;
|
|
994
|
+
/** The list was cut to the cap. */
|
|
995
|
+
searchTruncated: string;
|
|
996
|
+
/** The accessible name of the prompt. */
|
|
997
|
+
elicitationTitle: string;
|
|
998
|
+
/** The host's own line: which server asks. */
|
|
999
|
+
elicitationLead: (server: string) => string;
|
|
1000
|
+
/** The same when the call that asks is a helper's; `role` is what the model wrote for it. */
|
|
1001
|
+
elicitationLeadHelper: (server: string, role: string | undefined) => string;
|
|
1002
|
+
/** Before the tool's name: "during". */
|
|
1003
|
+
elicitationDuring: string;
|
|
1004
|
+
/** "1 of 3" - several questions are waiting. */
|
|
1005
|
+
elicitationCount: (index: number, total: number) => string;
|
|
1006
|
+
/** The caption over the server's own words. */
|
|
1007
|
+
elicitationFrom: (server: string) => string;
|
|
1008
|
+
/** The meaning of the mark on a required field. */
|
|
1009
|
+
elicitationRequired: string;
|
|
1010
|
+
/** The empty choice of a select. */
|
|
1011
|
+
elicitationChoose: string;
|
|
1012
|
+
elicitationSubmit: string;
|
|
1013
|
+
elicitationDecline: string;
|
|
1014
|
+
elicitationCancel: string;
|
|
1015
|
+
/** Why a field's value does not fit; `field` is its label, `limit` the rule's number. */
|
|
1016
|
+
elicitationErrors: Record<ElicitationIssueKind, (field: string, limit?: number) => string>;
|
|
1017
|
+
/** Over the buttons, after a submit that was refused. */
|
|
1018
|
+
elicitationFix: (n: number) => string;
|
|
1019
|
+
/** The host's line of a link request; the host name follows. */
|
|
1020
|
+
elicitationUrlLead: (server: string) => string;
|
|
1021
|
+
/** The caption over the whole address. */
|
|
1022
|
+
elicitationUrlFull: string;
|
|
1023
|
+
elicitationOpen: string;
|
|
1024
|
+
/** After the link was opened. */
|
|
1025
|
+
elicitationOpened: string;
|
|
1026
|
+
/** "I have finished there" - the accept of a link request. */
|
|
1027
|
+
elicitationUrlDone: string;
|
|
1028
|
+
/** A link that will not be opened from here. */
|
|
1029
|
+
elicitationUrlRefused: string;
|
|
1030
|
+
/** "Expires in 4:05". */
|
|
1031
|
+
elicitationExpiresIn: (time: string) => string;
|
|
1032
|
+
/** The same note when the time left is not known. */
|
|
1033
|
+
elicitationExpires: string;
|
|
1034
|
+
/** A question nobody answered: the server, and why (one of `elicitationReasons`). */
|
|
1035
|
+
elicitationAutomatic: (server: string, reason: string) => string;
|
|
1036
|
+
/** Why a question was answered without anybody deciding, by the core's reason (+ `stopped`). */
|
|
1037
|
+
elicitationReasons: Record<ElicitationOutcomeReason, string>;
|
|
1038
|
+
elicitationDismiss: string;
|
|
1039
|
+
/** The host's own line over the model's question. */
|
|
1040
|
+
questionLead: string;
|
|
1041
|
+
/** The same when a helper asks; `role` is what the model wrote for it. */
|
|
1042
|
+
questionLeadHelper: (role: string | undefined, depth: number) => string;
|
|
1043
|
+
/** "1 of 2" - several questions are waiting. */
|
|
1044
|
+
questionCount: (index: number, total: number) => string;
|
|
1045
|
+
/** Under a question that takes several options. */
|
|
1046
|
+
questionSeveral: string;
|
|
1047
|
+
/** Sends the options picked, or the person's own words. */
|
|
1048
|
+
questionSend: string;
|
|
1049
|
+
/** Opens the field for an answer in the person's own words. */
|
|
1050
|
+
questionOther: string;
|
|
1051
|
+
/** That field's label. */
|
|
1052
|
+
questionOtherLabel: string;
|
|
1053
|
+
/** No answer: the agent goes on with its best judgment. */
|
|
1054
|
+
questionSkip: string;
|
|
1055
|
+
/** "...in 4:05": when the agent stops waiting. */
|
|
1056
|
+
questionExpiresIn: (time: string) => string;
|
|
1057
|
+
/** A question asked by the run in another tab: shown here, answered there. */
|
|
1058
|
+
questionRemote: string;
|
|
1059
|
+
/** The agent went on without an answer; `reason` is one of `questionReasons`. */
|
|
1060
|
+
questionAutomatic: (reason: string) => string;
|
|
1061
|
+
/** Why, by the core's reason (+ `timeout`, `stopped`). */
|
|
1062
|
+
questionReasons: Record<QuestionOutcomeReason, string>;
|
|
1063
|
+
questionDismiss: string;
|
|
1064
|
+
/** The host's label on an app's frame: "App from server “travel”". */
|
|
1065
|
+
appFrom: (server: string) => string;
|
|
1066
|
+
/** The badge beside it. */
|
|
1067
|
+
appSandboxed: string;
|
|
1068
|
+
/** The badge when the app runs on an origin of its own (the sandbox page answered). */
|
|
1069
|
+
appSandboxedOrigin: string;
|
|
1070
|
+
/** The note (menu, badge title) for that: the sandbox origin. */
|
|
1071
|
+
appSandboxOrigin: (origin: string) => string;
|
|
1072
|
+
/** A sandbox URL is set, and the app runs in the opaque frame all the same: why. */
|
|
1073
|
+
appSandboxFallback: (reason: string) => string;
|
|
1074
|
+
/** The reasons, by `McpAppSandboxReason`. */
|
|
1075
|
+
appSandboxReasons: Record<McpAppSandboxReason, string>;
|
|
1076
|
+
/** The app loaded its sandbox page again (navigated it) and was stopped. */
|
|
1077
|
+
appSandboxBroken: string;
|
|
1078
|
+
/** The badge while a request of the app waits for the user. */
|
|
1079
|
+
appWaiting: string;
|
|
1080
|
+
/** The "waiting for you" badge is a button: its title (it takes the focus to the prompt). */
|
|
1081
|
+
appWaitingFocus: string;
|
|
1082
|
+
/** The region of an app's prompts drawn in its panel / sheet / full screen chrome. */
|
|
1083
|
+
appPromptsLabel: (server: string) => string;
|
|
1084
|
+
/** The tag on the tool call an app came with, and the activity summary's count. */
|
|
1085
|
+
appTag: string;
|
|
1086
|
+
appsCount: (n: number) => string;
|
|
1087
|
+
appLoading: string;
|
|
1088
|
+
/** The app could not be read or is refused (`reason` is the core's message). */
|
|
1089
|
+
appFailed: (reason: string) => string;
|
|
1090
|
+
/** No connection to its server (not connected any more, or apps are off). */
|
|
1091
|
+
appUnavailable: (server: string) => string;
|
|
1092
|
+
/** The folded line: "App from server “travel” · hidden [Show]". */
|
|
1093
|
+
appHidden: string;
|
|
1094
|
+
appShow: string;
|
|
1095
|
+
/** The app's menu and what is in it. */
|
|
1096
|
+
appMenu: string;
|
|
1097
|
+
appReload: string;
|
|
1098
|
+
appOpenPanel: string;
|
|
1099
|
+
/** Under an inline app taller than the chat shows inline (`appHeightCap`): it scrolls inside. */
|
|
1100
|
+
appTaller: string;
|
|
1101
|
+
appHide: string;
|
|
1102
|
+
/** The note at the bottom of the menu. */
|
|
1103
|
+
appServedBy: (server: string, uri: string) => string;
|
|
1104
|
+
/** The line left in the transcript while the app is in the panel, and its button. */
|
|
1105
|
+
appInPanel: string;
|
|
1106
|
+
appBringBack: string;
|
|
1107
|
+
appClosePanel: string;
|
|
1108
|
+
/** The panel's footer. */
|
|
1109
|
+
appPanelNote: (server: string) => string;
|
|
1110
|
+
/** The accessible name of the app's frame. */
|
|
1111
|
+
appFrameName: (server: string) => string;
|
|
1112
|
+
/** Under the frame: the tools the app called, and the ones that were refused. */
|
|
1113
|
+
appRan: (names: string) => string;
|
|
1114
|
+
appRefused: string;
|
|
1115
|
+
/** A tool call the app asks for (`<ToolApprovalPrompt>`): the lead and the note. */
|
|
1116
|
+
approvalLeadApp: (server: string) => string;
|
|
1117
|
+
approvalFromApp: (server: string, readOnly: boolean) => string;
|
|
1118
|
+
/** A link the app asks to open (`<AppRequestPrompt>`). */
|
|
1119
|
+
appLinkLead: (server: string) => string;
|
|
1120
|
+
appLinkNote: string;
|
|
1121
|
+
appLinkOpen: string;
|
|
1122
|
+
appCancel: string;
|
|
1123
|
+
/** A message the app asks to put in the chat. */
|
|
1124
|
+
appMessageLead: (server: string) => string;
|
|
1125
|
+
appMessageNote: string;
|
|
1126
|
+
appMessageAccept: string;
|
|
1127
|
+
appMessageDiscard: string;
|
|
1128
|
+
/** The app shown full screen (`<McpAppFrame allowFullscreen>`): the badge, the way back. */
|
|
1129
|
+
appFullscreenBadge: string;
|
|
1130
|
+
appFullscreenExit: string;
|
|
1131
|
+
/** The note under an inline app taller than the chat: show it full screen (when it may be). */
|
|
1132
|
+
appFullscreenEnter: string;
|
|
1133
|
+
/** The key that exits too, shown on the button. */
|
|
1134
|
+
appFullscreenKey: string;
|
|
1135
|
+
/** A file the app asks to save (`<AppRequestPrompt>`). */
|
|
1136
|
+
appDownloadLead: (server: string) => string;
|
|
1137
|
+
/** Name · type · size. */
|
|
1138
|
+
appDownloadType: (mimeType: string | undefined) => string;
|
|
1139
|
+
appDownloadSize: (bytes: number) => string;
|
|
1140
|
+
/** Where the bytes came from: the request itself, or read from the app's server. */
|
|
1141
|
+
appDownloadSource: (source: 'embedded' | 'link', server: string) => string;
|
|
1142
|
+
appDownloadNote: string;
|
|
1143
|
+
appDownloadSave: string;
|
|
1144
|
+
/** The app asks the agent's model for an answer (`sampling/createMessage`). */
|
|
1145
|
+
appSamplingLead: (server: string) => string;
|
|
1146
|
+
appSamplingSystem: string;
|
|
1147
|
+
appSamplingRole: (role: 'user' | 'assistant') => string;
|
|
1148
|
+
appSamplingImages: (count: number) => string;
|
|
1149
|
+
appSamplingTokens: (tokens: number, asked: number) => string;
|
|
1150
|
+
appSamplingNote: string;
|
|
1151
|
+
appSamplingAllow: string;
|
|
1152
|
+
appSamplingAlways: string;
|
|
1153
|
+
appSamplingDeny: string;
|
|
1154
|
+
/**
|
|
1155
|
+
* An MCP server's skill about to enter the model's context (`<ToolApprovalPrompt>`, a request
|
|
1156
|
+
* with `approval.skill`): the lead, its size and files, how it was found, the body preview.
|
|
1157
|
+
*/
|
|
1158
|
+
skillConsentLead: (server: string, skill: string) => string;
|
|
1159
|
+
/** The size of its SKILL.md, and how many more files it bundles. */
|
|
1160
|
+
skillConsentSize: (bytes: number, files: number) => string;
|
|
1161
|
+
/** It was named by its address (`skills/get`), not in the server's list. */
|
|
1162
|
+
skillConsentByUri: string;
|
|
1163
|
+
/** It sits inside another skill of the same server. */
|
|
1164
|
+
skillConsentNested: (enclosing: string) => string;
|
|
1165
|
+
/**
|
|
1166
|
+
* A generated skill (`skill.dynamic`): the server publishes no checksums - the person approves
|
|
1167
|
+
* the copy the agent just read, and only that copy is used.
|
|
1168
|
+
*/
|
|
1169
|
+
skillConsentDynamic: string;
|
|
1170
|
+
/** (with `skillConsentDynamic`) The server cannot list the skill's files: SKILL.md alone. */
|
|
1171
|
+
skillConsentNoFileListing: string;
|
|
1172
|
+
/** The summary of the collapsible preview of its instructions. */
|
|
1173
|
+
skillConsentPreview: string;
|
|
1174
|
+
/** Under the preview: its other files, and how many more there are than are shown. */
|
|
1175
|
+
skillConsentFiles: (paths: string, more: number) => string;
|
|
1176
|
+
/** What a yes means: `'once-per-skill'` - this text for the session; `'ask'` - this task. */
|
|
1177
|
+
skillConsentNote: (server: string, consent: 'ask' | 'once-per-skill') => string;
|
|
1178
|
+
skillConsentAllow: string;
|
|
1179
|
+
skillConsentAlways: string;
|
|
1180
|
+
skillConsentDeny: string;
|
|
1181
|
+
/** The reason a "Deny" gives the agent. */
|
|
1182
|
+
skillConsentDeclined: string;
|
|
1183
|
+
}
|
|
1184
|
+
declare const defaultLabels: AgentLabels;
|
|
1185
|
+
/** Overrides: any label, with the nested groups merged key by key. */
|
|
1186
|
+
type AgentLabelsOverride = Partial<Omit<AgentLabels, 'status' | 'modes' | 'commandGroups' | 'commandDescriptions' | 'thinkingLevels' | 'notices' | 'tierNames' | 'tierReasons' | 'escalationReasons' | 'subagentStatus' | 'decisionReasons' | 'elicitationErrors' | 'elicitationReasons' | 'questionReasons' | 'fileKinds' | 'appSandboxReasons'>> & {
|
|
1187
|
+
status?: Partial<AgentLabels['status']>;
|
|
1188
|
+
modes?: Partial<AgentLabels['modes']>;
|
|
1189
|
+
commandGroups?: Partial<AgentLabels['commandGroups']>;
|
|
1190
|
+
commandDescriptions?: Partial<AgentLabels['commandDescriptions']>;
|
|
1191
|
+
thinkingLevels?: Partial<AgentLabels['thinkingLevels']>;
|
|
1192
|
+
notices?: Partial<AgentLabels['notices']>;
|
|
1193
|
+
tierNames?: Partial<AgentLabels['tierNames']>;
|
|
1194
|
+
tierReasons?: Partial<AgentLabels['tierReasons']>;
|
|
1195
|
+
escalationReasons?: Partial<AgentLabels['escalationReasons']>;
|
|
1196
|
+
subagentStatus?: Partial<AgentLabels['subagentStatus']>;
|
|
1197
|
+
decisionReasons?: Partial<AgentLabels['decisionReasons']>;
|
|
1198
|
+
elicitationErrors?: Partial<AgentLabels['elicitationErrors']>;
|
|
1199
|
+
elicitationReasons?: Partial<AgentLabels['elicitationReasons']>;
|
|
1200
|
+
questionReasons?: Partial<AgentLabels['questionReasons']>;
|
|
1201
|
+
fileKinds?: Partial<AgentLabels['fileKinds']>;
|
|
1202
|
+
appSandboxReasons?: Partial<AgentLabels['appSandboxReasons']>;
|
|
1203
|
+
};
|
|
1204
|
+
/** `base` with `over` applied (nested groups merged, not replaced). */
|
|
1205
|
+
declare const mergeLabels: (base: AgentLabels, over?: AgentLabelsOverride) => AgentLabels;
|
|
1206
|
+
|
|
1207
|
+
export { defaultNoticeTexts as $, ELICITATION_MAX_OPTIONS as E, askUserOutputKept as H, INPUT_COUNTER_FROM as I, askUserWith as J, attachmentFileName as K, attachmentKindOf as L, attachmentLabel as O, QUESTION_TIMEOUT_MS as Q, attachmentOverLimit as R, attachmentRefusal as U, attachmentTransformOf as V, boxLength as W, createElicitationQueue as X, createQuestionQueue as Y, dataUrlParts as Z, defaultLabels as _, ASK_USER_TOOL_NAME as a, elicitationConnectOptions as a0, elicitationFields as a1, elicitationFormAnswer as a2, elicitationInitialDraft as a3, elicitationLink as a4, elicitationSettings as a5, elicitationTimeoutOf as a6, excerptNote as a7, fileKindOf as a8, fileNameOf as a9, withAttachments as aA, withoutOwnWords as aB, filterCommands as aa, formatClock as ab, formatCountdown as ac, formatElapsed as ad, freeAttachmentPath as ae, inputCounterShown as af, insertionFits as ag, isOneCharacter as ah, lineCountOf as ai, longTextName as aj, longTextRoute as ak, menuKeyTarget as al, menuSections as am, mergeLabels as an, messageOverLimit as ao, micProblemText as ap, noticesOf as aq, overflowOf as ar, parseSlash as as, questionChoiceOf as at, questionOtherOf as au, questionTimeoutOf as av, saveAttachments as aw, steerIntent as ax, textExcerpt as ay, voiceMessageName as az, ATTACHMENT_BOUNDS as b, ELICITATION_TIMEOUT_MS as j, ELICITATION_VALUE_MAX_CHARS as k };
|
|
1208
|
+
export type { AgentLabelsOverride as A, QuestionQueueOptions as B, ComposerAttachment as C, SlashCommand as D, FileKind as F, SteerIntent as G, MenuSection as M, NoticeTexts as N, PendingElicitation as P, SavedAttachments as S, TextExcerpt as T, AgentLabels as c, AttachmentBounds as d, AttachmentFiles as e, AttachmentOverLimit as f, AttachmentTextOptions as g, AttachmentTransform as h, ComposerNotice as i, ElicitationControl as l, ElicitationDraft as m, ElicitationDraftValue as n, ElicitationField as o, ElicitationFormOutcome as p, ElicitationIssue as q, ElicitationIssueKind as r, ElicitationLink as s, ElicitationOption as t, ElicitationOutcomeReason as u, ElicitationQueue as v, ElicitationQueueOptions as w, PendingQuestion as x, QuestionOutcomeReason as y, QuestionQueue as z };
|