@webskill/chatbot 0.17.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chatbot.css +30 -0
- package/dist/config.d.ts +5 -2
- package/dist/config.js +59 -3
- package/dist/index-DhXFYp0d.d.ts +1417 -0
- package/dist/index.d.ts +399 -12
- package/dist/index.js +2357 -483
- package/dist/{parse-79VbXLl4.js → parse-BtdRevDk.js} +5 -2
- package/dist/{parse-Cc8nFxir.d.ts → parse-Cu0G_3gS.d.ts} +1 -1
- package/dist/{types-C4dzGOPp.js → types-D6kVxBO9.js} +15 -5
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +1 -1
- package/package.json +7 -3
- package/dist/index-B25ux241.d.ts +0 -390
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as RuntimeRendererId, c as RuntimeQuickPrompt, d as TranslateFn, i as RuntimeLlmEntry, l as Locale, n as RuntimeConfig, o as QuickPrompt, r as RuntimeConfigStore, s as QuickPromptIconName, t as RuntimeAppearanceConfig, u as LocalizedText } from "./index-
|
|
2
|
-
import { AgentLoopConfig, ApprovalScope, BridgeCapabilities, DataSourceInfo, DocumentSurfaceHost, DocxTextExtractor, ExternalSkillProvider, ExternalToolSource, FileSystemProvider, HookRunner, InteractionRequest, InteractionResponse, LifecycleEventInit, LinkedDocumentReader, LlmClient, NetworkPolicy, Page, PageQuery, PdfTextExtractor, RenderBlock, RenderResultRequest, RunSnapshot, RunSnapshotListEntry, RuntimePhase, RuntimeRun, ScriptExecutor, SessionStore, SkillCandidateMarker, SkillCatalogEntry, SkillIntegrityGuard, SkillOutcomeReporter, SkillStateGuard, UiBridge, UiSpecDrafts, UiSpecEvent, UiSpecSnapshot, UiSurfaceActionRequest, UiSurfaceActionResponse, UserProfile, UserProfileExport, WebSkillErrorCode, XlsxTextExtractor, diffUserProfile } from "@webskill/sdk";
|
|
3
|
-
import { SandboxMode, TypeScriptSupportOptions } from "@webskill/sdk/browser";
|
|
4
|
-
import { CustomSurfaceActionEvent, ReactBridgeState, SpecInteractionChannel, SurfaceRegistry, UiSurfaceActionEvent } from "@webskill/sdk/ui-react";
|
|
5
|
-
import { DownloadedFileConsent, DownloadedFileReader, PageActionPolicy, PagePerceptionPolicy, PerceptionPagingBudget, PerceptionRecord, SkillCandidateSink, TabWorksetPolicy, TodoItem } from "@webskill/sdk/agent";
|
|
1
|
+
import { a as RuntimeRendererId, c as RuntimeQuickPrompt, d as TranslateFn, i as RuntimeLlmEntry, l as Locale, n as RuntimeConfig, o as QuickPrompt, r as RuntimeConfigStore, s as QuickPromptIconName, t as RuntimeAppearanceConfig, u as LocalizedText } from "./index-DhXFYp0d.js";
|
|
6
2
|
import "react";
|
|
3
|
+
import { AgentLoopConfig, ApprovalScope, BridgeCapabilities, DataSourceInfo, DocumentSurfaceHost, DocxTextExtractor, ExternalSkillProvider, ExternalToolSource, FileSystemProvider, HookRunner, InteractionRequest, InteractionResponse, LifecycleEventInit, LinkedDocumentReader, LlmClient, NetworkPolicy, Page, PageQuery, PdfTextExtractor, PptxTextExtractor, RenderBlock, RenderResultRequest, RunSnapshot, RunSnapshotListEntry, RuntimePhase, RuntimeRun, ScriptExecutor, SessionStore, SkillCandidateMarker, SkillCatalogEntry, SkillIntegrityGuard, SkillOutcomeReporter, SkillStateGuard, UiBridge, UiSpecDrafts, UiSpecEvent, UiSpecSnapshot, UiSurfaceActionRequest, UiSurfaceActionResponse, UserProfile, UserProfileExport, VisionDelegate, VisionDelegateRequest, VisionDelegateResult, WebSkillErrorCode, XlsxTextExtractor, diffUserProfile } from "@webskill/sdk";
|
|
4
|
+
import { PageImageHost, RemoteImageHost, SandboxMode, TypeScriptSupportOptions, WebOfficeConsent, WebOfficeHost } from "@webskill/sdk/browser";
|
|
5
|
+
import { CustomSurfaceActionEvent, ReactBridgeState, SpecInteractionChannel, SurfaceRegistry, UiSurfaceActionEvent } from "@webskill/sdk/ui-react";
|
|
6
|
+
import { ConsentUi, DocxDocumentReader, DocxTemplateEngine, DownloadedFileConsent, DownloadedFileReader, DwgDocumentContent, DwgProjection, PageActionPolicy, PagePerceptionPolicy, PdfDocumentReader, PerceptionPagingBudget, PerceptionRecord, PptxDocumentReader, SkillCandidateSink, TabWorksetPolicy, TemplateFileSource, TodoItem, XlsxDocumentReader, XlsxTemplateEngine } from "@webskill/sdk/agent";
|
|
7
7
|
//#region ../core/src/attachment/kind.d.ts
|
|
8
8
|
/**
|
|
9
9
|
* 附件类型判据与文本形态。0.14.0 分册 20 从 `@webskill/chatbot` 迁入:
|
|
@@ -11,8 +11,14 @@ import "react";
|
|
|
11
11
|
* 产出同一份文本(AC-20.6),而后者住在 `@webskill/agent`,chatbot 依赖 agent,
|
|
12
12
|
* 判据只能落在两者共同的下游。纯字符串运算,无环境依赖。
|
|
13
13
|
*/
|
|
14
|
-
/**
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* 附件在模型侧的内容形态(0.6.0 FR-11.2)。
|
|
16
|
+
*
|
|
17
|
+
* `binary` 的分界不是「是不是二进制」(`image` / `file` 也是),而是
|
|
18
|
+
* **一个字节都不进上下文**:模型只拿得到取件号,字节由工具在宿主侧读(0.22.0 FR-19.9)。
|
|
19
|
+
* @experimental
|
|
20
|
+
*/
|
|
21
|
+
type ChatAttachmentKind = 'text' | 'image' | 'file' | 'document-text' | 'binary';
|
|
16
22
|
//#endregion
|
|
17
23
|
//#region ../runtime/src/tools/types.d.ts
|
|
18
24
|
/**
|
|
@@ -76,6 +82,71 @@ declare function createLocalStorageRuntimeConfigStore(options?: LocalStorageRunt
|
|
|
76
82
|
/** 内存实现:测试、SSR、以及宿主明确不想持久化时使用。 @experimental */
|
|
77
83
|
declare function createMemoryRuntimeConfigStore(initial?: Partial<RuntimeConfig>): RuntimeConfigStore;
|
|
78
84
|
//#endregion
|
|
85
|
+
//#region src/core/visionDelegate.d.ts
|
|
86
|
+
/**
|
|
87
|
+
* 委派目标端点的可辨识标识;告知卡与审计都只用这三项(FR-17.6a / FR-17.7a)
|
|
88
|
+
* @experimental
|
|
89
|
+
*/
|
|
90
|
+
interface VisionDelegationEndpoint {
|
|
91
|
+
/** 模型条目 id */
|
|
92
|
+
readonly id: string;
|
|
93
|
+
/** 用户在 Console 里给这条起的名字 */
|
|
94
|
+
readonly label: string;
|
|
95
|
+
/** `baseUrl` 的主机名;内置档没有 baseUrl 时是 provider 名 */
|
|
96
|
+
readonly host: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* 视觉委派的记忆端口(0.21.0 分册 17 · FR-17.9b)。形状照抄 `DownloadedFileConsent`:
|
|
100
|
+
* 存哪、记多久归宿主,SDK 只定接口。不注入即**每次都问**(FR-17.9c)。
|
|
101
|
+
* @experimental
|
|
102
|
+
*/
|
|
103
|
+
interface VisionDelegationConsent {
|
|
104
|
+
recall(endpoint: VisionDelegationEndpoint): boolean | Promise<boolean>;
|
|
105
|
+
remember(endpoint: VisionDelegationEndpoint): void | Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* 复选框旁的文案。宿主不实现即用通用兜底串——
|
|
108
|
+
* SDK 无权替宿主宣称记住的是「这个端点」还是「所有端点」,写死会变成谎报授权范围。
|
|
109
|
+
*/
|
|
110
|
+
describeScope?(endpoint: VisionDelegationEndpoint): string | undefined;
|
|
111
|
+
}
|
|
112
|
+
/** 装配参数;每一项都是「每次调用时重读」的取值函数,不是装配期快照 @experimental */
|
|
113
|
+
interface ChatbotVisionDelegateOptions {
|
|
114
|
+
/** 每次调用时读的实时配置:选中模型与端点列表中途都可能变 */
|
|
115
|
+
config(): Promise<RuntimeConfig | undefined>;
|
|
116
|
+
/** 当前选中的模型条目 id(未选中即用默认项) */
|
|
117
|
+
selectedModelId(): string | undefined;
|
|
118
|
+
/** 选中条目的解析口径必须与主链路一致,否则「主模型看不看得了图」两处会打架 */
|
|
119
|
+
selectedEntry(config: RuntimeConfig | undefined): RuntimeLlmEntry | undefined;
|
|
120
|
+
/** 告知卡出口;引擎的 UI 桥天然满足 */
|
|
121
|
+
ui: ConsentUi;
|
|
122
|
+
consent?: VisionDelegationConsent;
|
|
123
|
+
/** 留痕出口。不注入仍然可以委派(FR-17.6b):审计是宿主能力,不是同意条件 */
|
|
124
|
+
audit?: {
|
|
125
|
+
append(event: {
|
|
126
|
+
type: string;
|
|
127
|
+
target: string;
|
|
128
|
+
data?: Record<string, unknown>;
|
|
129
|
+
}): Promise<unknown>;
|
|
130
|
+
};
|
|
131
|
+
/** 按条目建客户端。缺省由调用方注入 `createLlmClient` */
|
|
132
|
+
createClient(entry: RuntimeLlmEntry): LlmClient;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* 视觉委派的宿主侧实现(0.21.0 分册 17)。
|
|
136
|
+
*
|
|
137
|
+
* 三件事按顺序发生:挑端点(FR-17.2)→ 征得同意(FR-17.7)→ 一次调用认完所有图(FR-17.3a)。
|
|
138
|
+
* 在用户作出选择之前**不发出任何请求**:客户端是在同意之后才建的(FR-17.7b / AC-17.3)。
|
|
139
|
+
* @experimental
|
|
140
|
+
*/
|
|
141
|
+
declare class ChatbotVisionDelegate implements VisionDelegate {
|
|
142
|
+
#private;
|
|
143
|
+
constructor(options: ChatbotVisionDelegateOptions);
|
|
144
|
+
/** 新会话重新问(AC-17.4)。同意的记忆归宿主,这里不碰 */
|
|
145
|
+
forgetSessionDecision(): void;
|
|
146
|
+
applies(): Promise<boolean>;
|
|
147
|
+
describe(request: VisionDelegateRequest): Promise<VisionDelegateResult>;
|
|
148
|
+
}
|
|
149
|
+
//#endregion
|
|
79
150
|
//#region src/core/hostAdapter.d.ts
|
|
80
151
|
/**
|
|
81
152
|
* 宿主装配口:chatbot 不感知环境(浏览器/Node),全部能力经此注入。
|
|
@@ -138,11 +209,72 @@ interface ChatbotHostAdapter {
|
|
|
138
209
|
docxExtractor?: DocxTextExtractor;
|
|
139
210
|
/** xlsx → 文本(`extractXlsxText`);不注入即 Excel 工作簿明确报「本环境不支持」 */
|
|
140
211
|
xlsxExtractor?: XlsxTextExtractor;
|
|
212
|
+
/** pptx → 文本(`extractPptxText`);不注入即演示文稿明确报「本环境不支持」 @experimental */
|
|
213
|
+
pptxExtractor?: PptxTextExtractor;
|
|
141
214
|
/**
|
|
142
215
|
* PDF → 文本;**只用于直传被端点拒后的回退**(0.13.0 FR-22.1)。
|
|
143
216
|
* PDF 仍然默认直传,能读的端点拿到的还是原件;不注入即没有回退能力。
|
|
144
217
|
*/
|
|
145
218
|
pdfExtractor?: PdfTextExtractor;
|
|
219
|
+
/**
|
|
220
|
+
* 逐页读 PDF(0.21.0 分册 22):拿页数、逐页文本、逐页图、把整页渲成图。
|
|
221
|
+
*
|
|
222
|
+
* 与 `pdfExtractor` 分开给,是因为它们回答的是两个问题:那个问「整份的文本是什么」,
|
|
223
|
+
* 这个问「第 N 页是什么」。三个 `*DocumentReader` 各自独立,缺哪个就哪种格式
|
|
224
|
+
* 明确报「本环境不支持」,不互相兜底。
|
|
225
|
+
* @experimental
|
|
226
|
+
*/
|
|
227
|
+
pdfDocumentReader?: PdfDocumentReader;
|
|
228
|
+
/** docx → 块序列(`createDocxBlockReader`);不注入即 `read_document` 读不了 Word @experimental */
|
|
229
|
+
docxDocumentReader?: DocxDocumentReader;
|
|
230
|
+
/** xlsx → 行流(`createXlsxBlockReader`);不注入即 `read_document` 读不了 Excel @experimental */
|
|
231
|
+
xlsxDocumentReader?: XlsxDocumentReader;
|
|
232
|
+
/**
|
|
233
|
+
* pptx → 逐页的块序列(`createPptxBlockReader`);不注入即 `read_document` 读不了演示文稿。
|
|
234
|
+
* 给的是页上的字与图,**不是页面渲染图**——要版式只能退到截屏。
|
|
235
|
+
* @experimental
|
|
236
|
+
*/
|
|
237
|
+
pptxDocumentReader?: PptxDocumentReader;
|
|
238
|
+
/**
|
|
239
|
+
* 照着 xlsx 模板出文件(0.22.0 分册 42):读骨架 + 按坐标填值插图。
|
|
240
|
+
*
|
|
241
|
+
* 与 `xlsxDocumentReader` 分开给,是因为它们回答的是两个问题:那个问「这份表说了什么」,
|
|
242
|
+
* 这个问「这份表的哪个格子在哪儿、怎么往里写而不动其余任何东西」。
|
|
243
|
+
* 两个引擎都不注入时 `inspect_template` / `fill_template` 不注册。
|
|
244
|
+
* @experimental
|
|
245
|
+
*/
|
|
246
|
+
xlsxTemplateEngine?: XlsxTemplateEngine;
|
|
247
|
+
/** 照着 docx 模板出文件(0.22.0 分册 42);不注入即模板工具读不了 Word @experimental */
|
|
248
|
+
docxTemplateEngine?: DocxTemplateEngine;
|
|
249
|
+
/**
|
|
250
|
+
* 在线 WebOffice 文档的**原件字节**(0.22.0 分册 42 · FR-42.12 ~ FR-42.15)。
|
|
251
|
+
*
|
|
252
|
+
* 取件号是 `weboffice:<handle>`,handle 就是 `list_weboffice_documents` 已经给过模型的那一个。
|
|
253
|
+
* 单开一个端口而不是并进 `read_document` 的取件号,是因为这条路的字节来源与那三条都不同:
|
|
254
|
+
* 它来自页面自己握着的同源直链,而那条链接里带着 `requestkey`,**不出内容脚本那一帧**——
|
|
255
|
+
* 所以只能由宿主取回字节再交出来,模型永远看不到 URL。
|
|
256
|
+
*
|
|
257
|
+
* 不注入即 `weboffice:` 取件号读不到,工具会明说取不到原件并让用户下载后作为附件传入
|
|
258
|
+
* (FR-42.14:**不得**退成用文本骨架重排一份新文件)。
|
|
259
|
+
* @experimental
|
|
260
|
+
*/
|
|
261
|
+
webOfficeTemplateSource?: TemplateFileSource;
|
|
262
|
+
/**
|
|
263
|
+
* DWG 图纸的解析与投放(0.22.0 分册 19)。两项缺一即 `view_dwg` 不注册。
|
|
264
|
+
*
|
|
265
|
+
* 解析实现住在宿主是因为它必须跑在 Worker 里——17 MB 图纸解析耗时近 4 秒,
|
|
266
|
+
* 放主线程会冻结侧栏(AC-19.11)。
|
|
267
|
+
* @experimental
|
|
268
|
+
*/
|
|
269
|
+
dwg?: DwgHost;
|
|
270
|
+
/**
|
|
271
|
+
* 视觉委派的「不再询问」记忆端口(0.21.0 分册 17 · FR-17.9)。
|
|
272
|
+
*
|
|
273
|
+
* **不注入不等于关闭**:委派本身只要模型列表里有能看图的条目就成立,
|
|
274
|
+
* 只是每次都要弹告知卡(FR-17.9c)。本册刻意不加 Console 开关(FR-17.8)。
|
|
275
|
+
* @experimental
|
|
276
|
+
*/
|
|
277
|
+
visionConsent?: VisionDelegationConsent;
|
|
146
278
|
/** 文档读取留痕出口(FR-22.6);分册 17 的 `upload.file.read` 也走这条 */
|
|
147
279
|
documentAudit?: {
|
|
148
280
|
append(event: {
|
|
@@ -164,6 +296,39 @@ interface ChatbotHostAdapter {
|
|
|
164
296
|
/** 「不再询问」的记忆端口;不注入即每次都问 */
|
|
165
297
|
consent?: DownloadedFileConsent;
|
|
166
298
|
};
|
|
299
|
+
/**
|
|
300
|
+
* 读页内嵌的 WPS WebOffice 文档(0.21.0 分册 11~13)。
|
|
301
|
+
* **不注入即两个工具都不注册**——本册刻意不加设置开关(FR-13.8):
|
|
302
|
+
* 能不能读取决于这一页有没有那样一份文档,那不是用户需要预先决定的事。
|
|
303
|
+
*
|
|
304
|
+
* 与 `downloads` 同一条装配规矩:宿主只交端口(枚举 / 读取 / 截屏),
|
|
305
|
+
* 授权卡出口与审计出口在引擎这一侧。
|
|
306
|
+
* @experimental
|
|
307
|
+
*/
|
|
308
|
+
webOffice?: {
|
|
309
|
+
host: WebOfficeHost;
|
|
310
|
+
/** 「不再询问」的记忆端口;不注入即每次都问 */
|
|
311
|
+
consent?: WebOfficeConsent;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* 把宿主页面上的图取进文档(0.22.0 分册 12)。**不注入即 `capture_page_image` 不注册**:
|
|
315
|
+
* 纯 Web 宿主拿不到宿主页面的 DOM,模型在那些宿主上应该**看不见**这个工具,
|
|
316
|
+
* 而不是看得见再次次失败。
|
|
317
|
+
*
|
|
318
|
+
* 同 `webOffice` 那条装配规矩:宿主只交端口,授权卡、会话内记忆、产物落盘
|
|
319
|
+
* 都在引擎这一侧——它们需要知道 run 目录布局与会话生灭,而那两件事只有引擎知道。
|
|
320
|
+
* @experimental
|
|
321
|
+
*/
|
|
322
|
+
pageImage?: PageImageHost;
|
|
323
|
+
/**
|
|
324
|
+
* 把一张外链图取进文档(0.22.0 分册 13)。**不注入即 `fetch_remote_image` 不注册**:
|
|
325
|
+
* 普通网页宿主受同源策略拿不到跨域字节(设计 14 §1 实测),
|
|
326
|
+
* 在那些宿主上图只能以外链形态进文档,工具本身不该出现。
|
|
327
|
+
*
|
|
328
|
+
* 授权与 `pageImage` 共用同一个面(`readImageSource`),但记忆按来源类型分开。
|
|
329
|
+
* @experimental
|
|
330
|
+
*/
|
|
331
|
+
remoteImage?: RemoteImageHost;
|
|
167
332
|
/**
|
|
168
333
|
* 文档投放面(0.15.0 分册 13)。宿主交出 viewer 页地址、投放前确认与审计出口,
|
|
169
334
|
* 三件都在 `createDocumentSurfaceHost` 的选项里。
|
|
@@ -174,8 +339,27 @@ interface ChatbotHostAdapter {
|
|
|
174
339
|
*/
|
|
175
340
|
documentSurface?: DocumentSurfaceHost;
|
|
176
341
|
}
|
|
342
|
+
/**
|
|
343
|
+
* DWG 图纸的宿主出口(0.22.0 分册 19)。
|
|
344
|
+
* @experimental
|
|
345
|
+
*/
|
|
346
|
+
interface DwgHost {
|
|
347
|
+
/** 解析字节。实现应跑在 Worker 里:17 MB 图纸解析近 4 秒 */
|
|
348
|
+
read(bytes: Uint8Array, name: string): Promise<DwgDocumentContent>;
|
|
349
|
+
/** 把图纸送进查看器 */
|
|
350
|
+
project(input: DwgProjection): Promise<void>;
|
|
351
|
+
}
|
|
177
352
|
//#endregion
|
|
178
353
|
//#region src/core/chatEngine.d.ts
|
|
354
|
+
/**
|
|
355
|
+
* 在线 WebOffice 文档作模板时的取件号前缀(0.22.0 分册 42 · FR-42.12)。
|
|
356
|
+
*
|
|
357
|
+
* 前缀是显式的,不靠猜:`inspect_template` 的取件号绝大多数是附件 id,
|
|
358
|
+
* 拿一个普通 id 去在线文档那边碰运气,猜中一次的收益远小于猜错一次的代价——
|
|
359
|
+
* 那是把另一份文档当成用户指的那一份填了出去。
|
|
360
|
+
* @experimental
|
|
361
|
+
*/
|
|
362
|
+
declare const WEB_OFFICE_TEMPLATE_PREFIX = "weboffice:";
|
|
179
363
|
/**
|
|
180
364
|
* 条目能否真的发请求:云端要有端点或密钥,浏览器内置两者都不需要。
|
|
181
365
|
*
|
|
@@ -238,6 +422,12 @@ interface ChatEngineOptions {
|
|
|
238
422
|
generativeUi?: boolean;
|
|
239
423
|
/** 沙箱执行器替换点(测试注入 spy 断言构造参数;缺省 BrowserWorkerScriptExecutor) */
|
|
240
424
|
executorFactory?: (deps: SandboxExecutorDeps) => ScriptExecutor;
|
|
425
|
+
/**
|
|
426
|
+
* 视觉委派用的客户端工厂(分册 17)。缺省 `createLlmClient`——
|
|
427
|
+
* 与主链路同一个工厂,被选中条目的 `baseUrl` / `apiKey` / `model` 原样生效(FR-17.2c)。
|
|
428
|
+
* 替换点存在只为让判据能断言「请求打到了哪个端点」(AC-17.8),不是配置项。
|
|
429
|
+
*/
|
|
430
|
+
visionClientFactory?: (entry: RuntimeLlmEntry) => LlmClient;
|
|
241
431
|
/**
|
|
242
432
|
* 宿主声明的数据源取数入口(分册 16)。不注入即脚本上下文没有 `fetchData` 这个键。
|
|
243
433
|
*
|
|
@@ -375,8 +565,14 @@ declare class ChatEngine {
|
|
|
375
565
|
send(text: string, attachments?: readonly ChatAttachmentInput[]): Promise<void>;
|
|
376
566
|
/** 附件落盘根目录(composer 附件适配器写入,send 时读回) */
|
|
377
567
|
get attachmentsRoot(): string;
|
|
378
|
-
/**
|
|
379
|
-
|
|
568
|
+
/**
|
|
569
|
+
* 取消进行中的 run(Composer Stop 按钮);run 未找到/已结束返回 false。
|
|
570
|
+
*
|
|
571
|
+
* 不传 runId 就取消引擎自己记着的那一个。UI 那边的 runId 是 `run-started` 事件携回去的,
|
|
572
|
+
* 而 `run-preparing` 到 `run-started` 之间是一整段无声区(队列/发现/路由)——
|
|
573
|
+
* 那段里面板已经是忙碌态、终止按钮已经在了,可 UI 手里还没 id,按下去是个空操作。
|
|
574
|
+
*/
|
|
575
|
+
cancel(runId?: string): boolean;
|
|
380
576
|
/**
|
|
381
577
|
* 释放引擎:取消进行中的 run、退订全部事件、丢弃装配缓存。
|
|
382
578
|
* 宿主重挂组件时用它收尾;只是换配置的话用 `reloadConfig()`,不要 dispose。
|
|
@@ -668,7 +864,19 @@ interface ChatSessionListResult {
|
|
|
668
864
|
skipped: readonly string[];
|
|
669
865
|
}
|
|
670
866
|
/** @stable */
|
|
671
|
-
type ChatEvent =
|
|
867
|
+
type ChatEvent =
|
|
868
|
+
/**
|
|
869
|
+
* 请求已受理,正在交给 runtime(分册 20 FR-20.2)。
|
|
870
|
+
*
|
|
871
|
+
* `run-started` 是从 runtime 的 `route` 生命周期事件派生的,而 route 排在
|
|
872
|
+
* 队列 / discover / listSkills / catalogFilter 之后。那一整段里任何一处慢或挂,
|
|
873
|
+
* 界面上都是同一副画面:什么都没有。本事件把那段变成一个显式状态。
|
|
874
|
+
*/
|
|
875
|
+
{
|
|
876
|
+
type: 'run-preparing';
|
|
877
|
+
sessionId: string;
|
|
878
|
+
queued: boolean;
|
|
879
|
+
} | {
|
|
672
880
|
type: 'run-started';
|
|
673
881
|
runId: string;
|
|
674
882
|
} | {
|
|
@@ -725,6 +933,18 @@ type ChatEvent = {
|
|
|
725
933
|
name: string;
|
|
726
934
|
args?: string;
|
|
727
935
|
errorCode?: string;
|
|
936
|
+
} |
|
|
937
|
+
/**
|
|
938
|
+
* 委派识图的逐张进度(分册 26 FR-26.9)。挂在 `source` 这个工具名上,
|
|
939
|
+
* 不带 callId——委派发生在工具**结果**回喂阶段,那时调用早已结束。
|
|
940
|
+
* @experimental
|
|
941
|
+
*/
|
|
942
|
+
{
|
|
943
|
+
type: 'vision-progress';
|
|
944
|
+
runId: string;
|
|
945
|
+
source: string;
|
|
946
|
+
done: number;
|
|
947
|
+
total: number;
|
|
728
948
|
} | {
|
|
729
949
|
type: 'run-completed';
|
|
730
950
|
runId: string;
|
|
@@ -733,6 +953,21 @@ type ChatEvent = {
|
|
|
733
953
|
activeSkillNames: string[];
|
|
734
954
|
/** 终止原因对应的稳定错误码(仅非正常结束时):UI 据此分类提示,不再压平为 RUN_FAILED */
|
|
735
955
|
code?: WebSkillErrorCode;
|
|
956
|
+
/**
|
|
957
|
+
* 本 run 结束时的上下文水位线(末轮输入 token,分册 20 FR-20.5)。
|
|
958
|
+
* 上游不回报 usage 时缺省——不填 0冒充「已知为零」。
|
|
959
|
+
*/
|
|
960
|
+
contextTokens?: number;
|
|
961
|
+
} |
|
|
962
|
+
/**
|
|
963
|
+
* 历史被压缩(分册 20 FR-20.8):只描述运行时历史的变化,会话存储里的原文不动。
|
|
964
|
+
* @experimental
|
|
965
|
+
*/
|
|
966
|
+
{
|
|
967
|
+
type: 'context-compacted';
|
|
968
|
+
sessionId: string;
|
|
969
|
+
removed: number;
|
|
970
|
+
kept: number;
|
|
736
971
|
} | {
|
|
737
972
|
type: 'todo-changed';
|
|
738
973
|
runId: string;
|
|
@@ -1040,6 +1275,7 @@ declare const chatbotDictionary: {
|
|
|
1040
1275
|
'tool.status.completed': string;
|
|
1041
1276
|
'tool.status.failed': string;
|
|
1042
1277
|
'tool.status.denied': string;
|
|
1278
|
+
'tool.vision.progress': string;
|
|
1043
1279
|
'tool.duration': string;
|
|
1044
1280
|
'tool.args': string;
|
|
1045
1281
|
'tool.denied.reason': string;
|
|
@@ -1086,6 +1322,7 @@ declare const chatbotDictionary: {
|
|
|
1086
1322
|
'todo.status.inProgress': string;
|
|
1087
1323
|
'todo.status.completed': string;
|
|
1088
1324
|
'todo.delegatedTo': string;
|
|
1325
|
+
'todo.dismiss': string;
|
|
1089
1326
|
'interaction.ask.title': string;
|
|
1090
1327
|
'interaction.confirm.title': string;
|
|
1091
1328
|
'interaction.form.title': string;
|
|
@@ -1107,6 +1344,8 @@ declare const chatbotDictionary: {
|
|
|
1107
1344
|
'interaction.pageAction.attach': string;
|
|
1108
1345
|
'interaction.pageAction.scroll.down': string;
|
|
1109
1346
|
'interaction.pageAction.scroll.up': string;
|
|
1347
|
+
'interaction.pageAction.hover': string;
|
|
1348
|
+
'interaction.pageAction.drag': string;
|
|
1110
1349
|
'interaction.pageAction.back': string;
|
|
1111
1350
|
'interaction.pageAction.role.click': string;
|
|
1112
1351
|
'interaction.pageAction.role.fill': string;
|
|
@@ -1115,6 +1354,8 @@ declare const chatbotDictionary: {
|
|
|
1115
1354
|
'interaction.pageAction.role.set': string;
|
|
1116
1355
|
'interaction.pageAction.role.attach': string;
|
|
1117
1356
|
'interaction.pageAction.role.scroll': string;
|
|
1357
|
+
'interaction.pageAction.role.hover': string;
|
|
1358
|
+
'interaction.pageAction.role.drag': string;
|
|
1118
1359
|
'interaction.pageAction.role.back': string;
|
|
1119
1360
|
'interaction.pageAction.remember': string;
|
|
1120
1361
|
'interaction.pageAction.frame': string;
|
|
@@ -1123,6 +1364,30 @@ declare const chatbotDictionary: {
|
|
|
1123
1364
|
'interaction.downloadedFile.read': string;
|
|
1124
1365
|
'interaction.downloadedFile.file': string;
|
|
1125
1366
|
'interaction.downloadedFile.remember': string;
|
|
1367
|
+
'interaction.webOffice.listTitle': string;
|
|
1368
|
+
'interaction.webOffice.listBody': string;
|
|
1369
|
+
'interaction.webOffice.readTitle': string;
|
|
1370
|
+
'interaction.webOffice.readBody': string;
|
|
1371
|
+
'interaction.webOffice.captureTitle': string;
|
|
1372
|
+
'interaction.webOffice.captureBody': string;
|
|
1373
|
+
'interaction.webOffice.claimedTypeNote': string;
|
|
1374
|
+
'interaction.webOffice.rememberFallback': string;
|
|
1375
|
+
'interaction.visionDelegation.title': string;
|
|
1376
|
+
'interaction.visionDelegation.reason': string;
|
|
1377
|
+
'interaction.visionDelegation.endpoint': string;
|
|
1378
|
+
'interaction.visionDelegation.declineNote': string;
|
|
1379
|
+
'interaction.visionDelegation.rememberFallback': string;
|
|
1380
|
+
'interaction.visionDelegation.rememberSession': string;
|
|
1381
|
+
'interaction.visionDelegation.body': string;
|
|
1382
|
+
'interaction.imageSource.title': string;
|
|
1383
|
+
'interaction.imageSource.pageImageBody': string;
|
|
1384
|
+
'interaction.imageSource.remoteImageBody': string;
|
|
1385
|
+
'interaction.imageSource.remoteImageAnyBody': string;
|
|
1386
|
+
'interaction.imageSource.insecure': string;
|
|
1387
|
+
'interaction.imageSource.note': string;
|
|
1388
|
+
'interaction.imageSource.rememberFallback': string;
|
|
1389
|
+
'interaction.imageSource.rememberPageImage': string;
|
|
1390
|
+
'interaction.imageSource.rememberRemoteImage': string;
|
|
1126
1391
|
'interaction.uploadFile.read': string;
|
|
1127
1392
|
'interaction.uploadFile.file': string;
|
|
1128
1393
|
'interaction.sandbox.readReference': string;
|
|
@@ -1188,6 +1453,7 @@ declare const chatbotDictionary: {
|
|
|
1188
1453
|
'composer.attachment.kind.image': string;
|
|
1189
1454
|
'composer.attachment.kind.file': string;
|
|
1190
1455
|
'composer.attachment.kind.document-text': string;
|
|
1456
|
+
'composer.attachment.kind.binary': string;
|
|
1191
1457
|
'composer.attachment.compressed': string;
|
|
1192
1458
|
'composer.model': string;
|
|
1193
1459
|
'composer.model.unconfigured': string;
|
|
@@ -1199,6 +1465,13 @@ declare const chatbotDictionary: {
|
|
|
1199
1465
|
'composer.addAttachment.imagesOff': string;
|
|
1200
1466
|
'composer.addAttachment.modelNoImages': string;
|
|
1201
1467
|
'attachment.imagesDropped': string;
|
|
1468
|
+
'attachment.storeFailed.title': string;
|
|
1469
|
+
'attachment.storeFailed': string;
|
|
1470
|
+
'attachment.pdfAsText': string;
|
|
1471
|
+
'attachment.pdfAsPagedRead': string;
|
|
1472
|
+
'attachment.pdfRefused': string;
|
|
1473
|
+
'attachment.pdfNoExtractor': string;
|
|
1474
|
+
'attachment.textTooLong': string;
|
|
1202
1475
|
'composer.dictate': string;
|
|
1203
1476
|
'composer.dictate.stop': string;
|
|
1204
1477
|
'composer.dictate.recording': string;
|
|
@@ -1431,6 +1704,7 @@ declare const chatbotDictionary: {
|
|
|
1431
1704
|
'tool.status.completed': string;
|
|
1432
1705
|
'tool.status.failed': string;
|
|
1433
1706
|
'tool.status.denied': string;
|
|
1707
|
+
'tool.vision.progress': string;
|
|
1434
1708
|
'tool.duration': string;
|
|
1435
1709
|
'tool.args': string;
|
|
1436
1710
|
'tool.denied.reason': string;
|
|
@@ -1477,6 +1751,7 @@ declare const chatbotDictionary: {
|
|
|
1477
1751
|
'todo.status.inProgress': string;
|
|
1478
1752
|
'todo.status.completed': string;
|
|
1479
1753
|
'todo.delegatedTo': string;
|
|
1754
|
+
'todo.dismiss': string;
|
|
1480
1755
|
'interaction.ask.title': string;
|
|
1481
1756
|
'interaction.confirm.title': string;
|
|
1482
1757
|
'interaction.form.title': string;
|
|
@@ -1498,6 +1773,8 @@ declare const chatbotDictionary: {
|
|
|
1498
1773
|
'interaction.pageAction.attach': string;
|
|
1499
1774
|
'interaction.pageAction.scroll.down': string;
|
|
1500
1775
|
'interaction.pageAction.scroll.up': string;
|
|
1776
|
+
'interaction.pageAction.hover': string;
|
|
1777
|
+
'interaction.pageAction.drag': string;
|
|
1501
1778
|
'interaction.pageAction.back': string;
|
|
1502
1779
|
'interaction.pageAction.role.click': string;
|
|
1503
1780
|
'interaction.pageAction.role.fill': string;
|
|
@@ -1506,6 +1783,8 @@ declare const chatbotDictionary: {
|
|
|
1506
1783
|
'interaction.pageAction.role.set': string;
|
|
1507
1784
|
'interaction.pageAction.role.attach': string;
|
|
1508
1785
|
'interaction.pageAction.role.scroll': string;
|
|
1786
|
+
'interaction.pageAction.role.hover': string;
|
|
1787
|
+
'interaction.pageAction.role.drag': string;
|
|
1509
1788
|
'interaction.pageAction.role.back': string;
|
|
1510
1789
|
'interaction.pageAction.remember': string;
|
|
1511
1790
|
'interaction.pageAction.frame': string;
|
|
@@ -1514,6 +1793,30 @@ declare const chatbotDictionary: {
|
|
|
1514
1793
|
'interaction.downloadedFile.read': string;
|
|
1515
1794
|
'interaction.downloadedFile.file': string;
|
|
1516
1795
|
'interaction.downloadedFile.remember': string;
|
|
1796
|
+
'interaction.webOffice.listTitle': string;
|
|
1797
|
+
'interaction.webOffice.listBody': string;
|
|
1798
|
+
'interaction.webOffice.readTitle': string;
|
|
1799
|
+
'interaction.webOffice.readBody': string;
|
|
1800
|
+
'interaction.webOffice.captureTitle': string;
|
|
1801
|
+
'interaction.webOffice.captureBody': string;
|
|
1802
|
+
'interaction.webOffice.claimedTypeNote': string;
|
|
1803
|
+
'interaction.webOffice.rememberFallback': string;
|
|
1804
|
+
'interaction.visionDelegation.title': string;
|
|
1805
|
+
'interaction.visionDelegation.reason': string;
|
|
1806
|
+
'interaction.visionDelegation.endpoint': string;
|
|
1807
|
+
'interaction.visionDelegation.declineNote': string;
|
|
1808
|
+
'interaction.visionDelegation.rememberFallback': string;
|
|
1809
|
+
'interaction.visionDelegation.rememberSession': string;
|
|
1810
|
+
'interaction.visionDelegation.body': string;
|
|
1811
|
+
'interaction.imageSource.title': string;
|
|
1812
|
+
'interaction.imageSource.pageImageBody': string;
|
|
1813
|
+
'interaction.imageSource.remoteImageBody': string;
|
|
1814
|
+
'interaction.imageSource.remoteImageAnyBody': string;
|
|
1815
|
+
'interaction.imageSource.insecure': string;
|
|
1816
|
+
'interaction.imageSource.note': string;
|
|
1817
|
+
'interaction.imageSource.rememberFallback': string;
|
|
1818
|
+
'interaction.imageSource.rememberPageImage': string;
|
|
1819
|
+
'interaction.imageSource.rememberRemoteImage': string;
|
|
1517
1820
|
'interaction.uploadFile.read': string;
|
|
1518
1821
|
'interaction.uploadFile.file': string;
|
|
1519
1822
|
'interaction.sandbox.readReference': string;
|
|
@@ -1579,6 +1882,7 @@ declare const chatbotDictionary: {
|
|
|
1579
1882
|
'composer.attachment.kind.image': string;
|
|
1580
1883
|
'composer.attachment.kind.file': string;
|
|
1581
1884
|
'composer.attachment.kind.document-text': string;
|
|
1885
|
+
'composer.attachment.kind.binary': string;
|
|
1582
1886
|
'composer.attachment.compressed': string;
|
|
1583
1887
|
'composer.model': string;
|
|
1584
1888
|
'composer.model.unconfigured': string;
|
|
@@ -1590,6 +1894,13 @@ declare const chatbotDictionary: {
|
|
|
1590
1894
|
'composer.addAttachment.imagesOff': string;
|
|
1591
1895
|
'composer.addAttachment.modelNoImages': string;
|
|
1592
1896
|
'attachment.imagesDropped': string;
|
|
1897
|
+
'attachment.storeFailed.title': string;
|
|
1898
|
+
'attachment.storeFailed': string;
|
|
1899
|
+
'attachment.pdfAsText': string;
|
|
1900
|
+
'attachment.pdfAsPagedRead': string;
|
|
1901
|
+
'attachment.pdfRefused': string;
|
|
1902
|
+
'attachment.pdfNoExtractor': string;
|
|
1903
|
+
'attachment.textTooLong': string;
|
|
1593
1904
|
'composer.dictate': string;
|
|
1594
1905
|
'composer.dictate.stop': string;
|
|
1595
1906
|
'composer.dictate.recording': string;
|
|
@@ -1825,6 +2136,7 @@ declare const useT: () => TranslateFn<{
|
|
|
1825
2136
|
'tool.status.completed': string;
|
|
1826
2137
|
'tool.status.failed': string;
|
|
1827
2138
|
'tool.status.denied': string;
|
|
2139
|
+
'tool.vision.progress': string;
|
|
1828
2140
|
'tool.duration': string;
|
|
1829
2141
|
'tool.args': string;
|
|
1830
2142
|
'tool.denied.reason': string;
|
|
@@ -1871,6 +2183,7 @@ declare const useT: () => TranslateFn<{
|
|
|
1871
2183
|
'todo.status.inProgress': string;
|
|
1872
2184
|
'todo.status.completed': string;
|
|
1873
2185
|
'todo.delegatedTo': string;
|
|
2186
|
+
'todo.dismiss': string;
|
|
1874
2187
|
'interaction.ask.title': string;
|
|
1875
2188
|
'interaction.confirm.title': string;
|
|
1876
2189
|
'interaction.form.title': string;
|
|
@@ -1892,6 +2205,8 @@ declare const useT: () => TranslateFn<{
|
|
|
1892
2205
|
'interaction.pageAction.attach': string;
|
|
1893
2206
|
'interaction.pageAction.scroll.down': string;
|
|
1894
2207
|
'interaction.pageAction.scroll.up': string;
|
|
2208
|
+
'interaction.pageAction.hover': string;
|
|
2209
|
+
'interaction.pageAction.drag': string;
|
|
1895
2210
|
'interaction.pageAction.back': string;
|
|
1896
2211
|
'interaction.pageAction.role.click': string;
|
|
1897
2212
|
'interaction.pageAction.role.fill': string;
|
|
@@ -1900,6 +2215,8 @@ declare const useT: () => TranslateFn<{
|
|
|
1900
2215
|
'interaction.pageAction.role.set': string;
|
|
1901
2216
|
'interaction.pageAction.role.attach': string;
|
|
1902
2217
|
'interaction.pageAction.role.scroll': string;
|
|
2218
|
+
'interaction.pageAction.role.hover': string;
|
|
2219
|
+
'interaction.pageAction.role.drag': string;
|
|
1903
2220
|
'interaction.pageAction.role.back': string;
|
|
1904
2221
|
'interaction.pageAction.remember': string;
|
|
1905
2222
|
'interaction.pageAction.frame': string;
|
|
@@ -1908,6 +2225,30 @@ declare const useT: () => TranslateFn<{
|
|
|
1908
2225
|
'interaction.downloadedFile.read': string;
|
|
1909
2226
|
'interaction.downloadedFile.file': string;
|
|
1910
2227
|
'interaction.downloadedFile.remember': string;
|
|
2228
|
+
'interaction.webOffice.listTitle': string;
|
|
2229
|
+
'interaction.webOffice.listBody': string;
|
|
2230
|
+
'interaction.webOffice.readTitle': string;
|
|
2231
|
+
'interaction.webOffice.readBody': string;
|
|
2232
|
+
'interaction.webOffice.captureTitle': string;
|
|
2233
|
+
'interaction.webOffice.captureBody': string;
|
|
2234
|
+
'interaction.webOffice.claimedTypeNote': string;
|
|
2235
|
+
'interaction.webOffice.rememberFallback': string;
|
|
2236
|
+
'interaction.visionDelegation.title': string;
|
|
2237
|
+
'interaction.visionDelegation.reason': string;
|
|
2238
|
+
'interaction.visionDelegation.endpoint': string;
|
|
2239
|
+
'interaction.visionDelegation.declineNote': string;
|
|
2240
|
+
'interaction.visionDelegation.rememberFallback': string;
|
|
2241
|
+
'interaction.visionDelegation.rememberSession': string;
|
|
2242
|
+
'interaction.visionDelegation.body': string;
|
|
2243
|
+
'interaction.imageSource.title': string;
|
|
2244
|
+
'interaction.imageSource.pageImageBody': string;
|
|
2245
|
+
'interaction.imageSource.remoteImageBody': string;
|
|
2246
|
+
'interaction.imageSource.remoteImageAnyBody': string;
|
|
2247
|
+
'interaction.imageSource.insecure': string;
|
|
2248
|
+
'interaction.imageSource.note': string;
|
|
2249
|
+
'interaction.imageSource.rememberFallback': string;
|
|
2250
|
+
'interaction.imageSource.rememberPageImage': string;
|
|
2251
|
+
'interaction.imageSource.rememberRemoteImage': string;
|
|
1911
2252
|
'interaction.uploadFile.read': string;
|
|
1912
2253
|
'interaction.uploadFile.file': string;
|
|
1913
2254
|
'interaction.sandbox.readReference': string;
|
|
@@ -1973,6 +2314,7 @@ declare const useT: () => TranslateFn<{
|
|
|
1973
2314
|
'composer.attachment.kind.image': string;
|
|
1974
2315
|
'composer.attachment.kind.file': string;
|
|
1975
2316
|
'composer.attachment.kind.document-text': string;
|
|
2317
|
+
'composer.attachment.kind.binary': string;
|
|
1976
2318
|
'composer.attachment.compressed': string;
|
|
1977
2319
|
'composer.model': string;
|
|
1978
2320
|
'composer.model.unconfigured': string;
|
|
@@ -1984,6 +2326,13 @@ declare const useT: () => TranslateFn<{
|
|
|
1984
2326
|
'composer.addAttachment.imagesOff': string;
|
|
1985
2327
|
'composer.addAttachment.modelNoImages': string;
|
|
1986
2328
|
'attachment.imagesDropped': string;
|
|
2329
|
+
'attachment.storeFailed.title': string;
|
|
2330
|
+
'attachment.storeFailed': string;
|
|
2331
|
+
'attachment.pdfAsText': string;
|
|
2332
|
+
'attachment.pdfAsPagedRead': string;
|
|
2333
|
+
'attachment.pdfRefused': string;
|
|
2334
|
+
'attachment.pdfNoExtractor': string;
|
|
2335
|
+
'attachment.textTooLong': string;
|
|
1987
2336
|
'composer.dictate': string;
|
|
1988
2337
|
'composer.dictate.stop': string;
|
|
1989
2338
|
'composer.dictate.recording': string;
|
|
@@ -2216,6 +2565,7 @@ declare const useT: () => TranslateFn<{
|
|
|
2216
2565
|
'tool.status.completed': string;
|
|
2217
2566
|
'tool.status.failed': string;
|
|
2218
2567
|
'tool.status.denied': string;
|
|
2568
|
+
'tool.vision.progress': string;
|
|
2219
2569
|
'tool.duration': string;
|
|
2220
2570
|
'tool.args': string;
|
|
2221
2571
|
'tool.denied.reason': string;
|
|
@@ -2262,6 +2612,7 @@ declare const useT: () => TranslateFn<{
|
|
|
2262
2612
|
'todo.status.inProgress': string;
|
|
2263
2613
|
'todo.status.completed': string;
|
|
2264
2614
|
'todo.delegatedTo': string;
|
|
2615
|
+
'todo.dismiss': string;
|
|
2265
2616
|
'interaction.ask.title': string;
|
|
2266
2617
|
'interaction.confirm.title': string;
|
|
2267
2618
|
'interaction.form.title': string;
|
|
@@ -2283,6 +2634,8 @@ declare const useT: () => TranslateFn<{
|
|
|
2283
2634
|
'interaction.pageAction.attach': string;
|
|
2284
2635
|
'interaction.pageAction.scroll.down': string;
|
|
2285
2636
|
'interaction.pageAction.scroll.up': string;
|
|
2637
|
+
'interaction.pageAction.hover': string;
|
|
2638
|
+
'interaction.pageAction.drag': string;
|
|
2286
2639
|
'interaction.pageAction.back': string;
|
|
2287
2640
|
'interaction.pageAction.role.click': string;
|
|
2288
2641
|
'interaction.pageAction.role.fill': string;
|
|
@@ -2291,6 +2644,8 @@ declare const useT: () => TranslateFn<{
|
|
|
2291
2644
|
'interaction.pageAction.role.set': string;
|
|
2292
2645
|
'interaction.pageAction.role.attach': string;
|
|
2293
2646
|
'interaction.pageAction.role.scroll': string;
|
|
2647
|
+
'interaction.pageAction.role.hover': string;
|
|
2648
|
+
'interaction.pageAction.role.drag': string;
|
|
2294
2649
|
'interaction.pageAction.role.back': string;
|
|
2295
2650
|
'interaction.pageAction.remember': string;
|
|
2296
2651
|
'interaction.pageAction.frame': string;
|
|
@@ -2299,6 +2654,30 @@ declare const useT: () => TranslateFn<{
|
|
|
2299
2654
|
'interaction.downloadedFile.read': string;
|
|
2300
2655
|
'interaction.downloadedFile.file': string;
|
|
2301
2656
|
'interaction.downloadedFile.remember': string;
|
|
2657
|
+
'interaction.webOffice.listTitle': string;
|
|
2658
|
+
'interaction.webOffice.listBody': string;
|
|
2659
|
+
'interaction.webOffice.readTitle': string;
|
|
2660
|
+
'interaction.webOffice.readBody': string;
|
|
2661
|
+
'interaction.webOffice.captureTitle': string;
|
|
2662
|
+
'interaction.webOffice.captureBody': string;
|
|
2663
|
+
'interaction.webOffice.claimedTypeNote': string;
|
|
2664
|
+
'interaction.webOffice.rememberFallback': string;
|
|
2665
|
+
'interaction.visionDelegation.title': string;
|
|
2666
|
+
'interaction.visionDelegation.reason': string;
|
|
2667
|
+
'interaction.visionDelegation.endpoint': string;
|
|
2668
|
+
'interaction.visionDelegation.declineNote': string;
|
|
2669
|
+
'interaction.visionDelegation.rememberFallback': string;
|
|
2670
|
+
'interaction.visionDelegation.rememberSession': string;
|
|
2671
|
+
'interaction.visionDelegation.body': string;
|
|
2672
|
+
'interaction.imageSource.title': string;
|
|
2673
|
+
'interaction.imageSource.pageImageBody': string;
|
|
2674
|
+
'interaction.imageSource.remoteImageBody': string;
|
|
2675
|
+
'interaction.imageSource.remoteImageAnyBody': string;
|
|
2676
|
+
'interaction.imageSource.insecure': string;
|
|
2677
|
+
'interaction.imageSource.note': string;
|
|
2678
|
+
'interaction.imageSource.rememberFallback': string;
|
|
2679
|
+
'interaction.imageSource.rememberPageImage': string;
|
|
2680
|
+
'interaction.imageSource.rememberRemoteImage': string;
|
|
2302
2681
|
'interaction.uploadFile.read': string;
|
|
2303
2682
|
'interaction.uploadFile.file': string;
|
|
2304
2683
|
'interaction.sandbox.readReference': string;
|
|
@@ -2364,6 +2743,7 @@ declare const useT: () => TranslateFn<{
|
|
|
2364
2743
|
'composer.attachment.kind.image': string;
|
|
2365
2744
|
'composer.attachment.kind.file': string;
|
|
2366
2745
|
'composer.attachment.kind.document-text': string;
|
|
2746
|
+
'composer.attachment.kind.binary': string;
|
|
2367
2747
|
'composer.attachment.compressed': string;
|
|
2368
2748
|
'composer.model': string;
|
|
2369
2749
|
'composer.model.unconfigured': string;
|
|
@@ -2375,6 +2755,13 @@ declare const useT: () => TranslateFn<{
|
|
|
2375
2755
|
'composer.addAttachment.imagesOff': string;
|
|
2376
2756
|
'composer.addAttachment.modelNoImages': string;
|
|
2377
2757
|
'attachment.imagesDropped': string;
|
|
2758
|
+
'attachment.storeFailed.title': string;
|
|
2759
|
+
'attachment.storeFailed': string;
|
|
2760
|
+
'attachment.pdfAsText': string;
|
|
2761
|
+
'attachment.pdfAsPagedRead': string;
|
|
2762
|
+
'attachment.pdfRefused': string;
|
|
2763
|
+
'attachment.pdfNoExtractor': string;
|
|
2764
|
+
'attachment.textTooLong': string;
|
|
2378
2765
|
'composer.dictate': string;
|
|
2379
2766
|
'composer.dictate.stop': string;
|
|
2380
2767
|
'composer.dictate.recording': string;
|
|
@@ -2821,6 +3208,6 @@ declare function ErrorCard({ code, message, loopLimits, onOpenSettings, onDismis
|
|
|
2821
3208
|
* Version of the published `@webskill/chatbot` package, injected at build time.
|
|
2822
3209
|
* @stable
|
|
2823
3210
|
*/
|
|
2824
|
-
declare const CHATBOT_VERSION = "0.
|
|
3211
|
+
declare const CHATBOT_VERSION = "0.19.0";
|
|
2825
3212
|
//#endregion
|
|
2826
|
-
export { A2uiSurfaceHost, type A2uiSurfaceHostProps, A2uiSurfaceSnapshotHost, type A2uiSurfaceSnapshotHostProps, type AppearanceChange, CHATBOT_VERSION, type ChatAttachmentInput, type ChatAttachmentMeta, type ChatContentPart, ChatEngine, type ChatEngineOptions, type ChatEvent, type ChatInteractionRecord, type ChatLayout, type ChatMessage, type ChatRunPhase, type ChatSessionListResult, type ChatSessionMeta, type ChatTheme, type ChatThinking, type ChatTokenUsage, type ChatToolCall, Chatbot, type ChatbotConfig, type ChatbotGovernancePorts, type ChatbotHostAdapter, type ChatbotProps, CompositeUiBridge, type CompositeUiBridgeDeps, DEFAULT_RENDERER_CAPABILITIES, DEFAULT_RUNTIME_CONFIG_STORAGE_KEY, type DownloadableFile, ErrorCard, type ErrorCardProps, InteractionCard, type InteractionCardProps, InterruptedBanner, type InterruptedBannerProps, type Locale, type LocalizedText, OpenUiSurfaceHost, type OpenUiSurfaceHostProps, OpenUiSurfaceSnapshotHost, type OpenUiSurfaceSnapshotHostProps, type QuickPrompt, type QuickPromptIconName, type RendererCapability, type RendererKind, type ResolvedChatLayout, ResultBlockList, type ResultBlockListProps, ResultBlocksPro, type ResultBlocksProProps, type RunSnapshot, type RuntimeAppearanceConfig, type RuntimeConfig, type RuntimeConfigStore, type RuntimeQuickPrompt, type RuntimeRendererId, type SandboxExecutorDeps, type SettingsSectionId, SkillBadges, SpecInteraction, type SpecInteractionProps, VercelPayloadPreview, type VercelPayloadPreviewProps, VercelSurfaceHost, type VercelSurfaceHostProps, VercelSurfaceSnapshotHost, type VercelSurfaceSnapshotHostProps, chatbotDictionary, configureA2uiMarkdown, createLocalStorageRuntimeConfigStore, createMemoryRuntimeConfigStore, isLlmEntryUsable, pickUsableLlmEntry, probeA2uiAvailability, probeOpenUiAvailability, sandboxExecutorDeps, useT };
|
|
3213
|
+
export { A2uiSurfaceHost, type A2uiSurfaceHostProps, A2uiSurfaceSnapshotHost, type A2uiSurfaceSnapshotHostProps, type AppearanceChange, CHATBOT_VERSION, type ChatAttachmentInput, type ChatAttachmentMeta, type ChatContentPart, ChatEngine, type ChatEngineOptions, type ChatEvent, type ChatInteractionRecord, type ChatLayout, type ChatMessage, type ChatRunPhase, type ChatSessionListResult, type ChatSessionMeta, type ChatTheme, type ChatThinking, type ChatTokenUsage, type ChatToolCall, Chatbot, type ChatbotConfig, type ChatbotGovernancePorts, type ChatbotHostAdapter, type ChatbotProps, ChatbotVisionDelegate, type ChatbotVisionDelegateOptions, CompositeUiBridge, type CompositeUiBridgeDeps, DEFAULT_RENDERER_CAPABILITIES, DEFAULT_RUNTIME_CONFIG_STORAGE_KEY, type DownloadableFile, type DwgHost, ErrorCard, type ErrorCardProps, InteractionCard, type InteractionCardProps, InterruptedBanner, type InterruptedBannerProps, type Locale, type LocalizedText, OpenUiSurfaceHost, type OpenUiSurfaceHostProps, OpenUiSurfaceSnapshotHost, type OpenUiSurfaceSnapshotHostProps, type QuickPrompt, type QuickPromptIconName, type RendererCapability, type RendererKind, type ResolvedChatLayout, ResultBlockList, type ResultBlockListProps, ResultBlocksPro, type ResultBlocksProProps, type RunSnapshot, type RuntimeAppearanceConfig, type RuntimeConfig, type RuntimeConfigStore, type RuntimeQuickPrompt, type RuntimeRendererId, type SandboxExecutorDeps, type SettingsSectionId, SkillBadges, SpecInteraction, type SpecInteractionProps, VercelPayloadPreview, type VercelPayloadPreviewProps, VercelSurfaceHost, type VercelSurfaceHostProps, VercelSurfaceSnapshotHost, type VercelSurfaceSnapshotHostProps, type VisionDelegationConsent, type VisionDelegationEndpoint, WEB_OFFICE_TEMPLATE_PREFIX, chatbotDictionary, configureA2uiMarkdown, createLocalStorageRuntimeConfigStore, createMemoryRuntimeConfigStore, isLlmEntryUsable, pickUsableLlmEntry, probeA2uiAvailability, probeOpenUiAvailability, sandboxExecutorDeps, useT };
|