@webskill/sdk 0.20.0 → 0.22.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/abnfDiagram-O67JEVCF-DtYFjfqO.js +109 -0
- package/dist/agent.d.ts +3 -3
- package/dist/agent.js +1171 -73
- package/dist/{approval-Bbh_Apwg.js → approval-DWQlDPbY.js} +527 -29
- package/dist/arc-8U_6NQWm.js +130 -0
- package/dist/architecture-7GRP2DOG-RTw1wpAq.js +4 -0
- package/dist/architectureDiagram-NJMV4G6O-XmmXrJAK.js +7473 -0
- package/dist/array-DQfpQNY8.js +8 -0
- package/dist/blockDiagram-BEXU5L5S-D4yjnCD1.js +2582 -0
- package/dist/browser.d.ts +1129 -48
- package/dist/browser.js +3562 -278
- package/dist/c4Diagram-YGBWAQC7-BLmA_JSd.js +3668 -0
- package/dist/channel-CZxxLrG7.js +9 -0
- package/dist/chunk-2Q5K7J3B-Ck03gkFR.js +21 -0
- package/dist/chunk-3FUC2YCW-tr6jmbQf.js +530 -0
- package/dist/chunk-5DYCD2WN-Bt97YGTd.js +58 -0
- package/dist/chunk-5VM5RSS4-BBxa48HL.js +21 -0
- package/dist/chunk-6AEJRKK7-JXK89I-O.js +14 -0
- package/dist/chunk-742MDFTN-CPmgCGwC.js +466 -0
- package/dist/chunk-7INBJB4K-C9jq9o66.js +6552 -0
- package/dist/chunk-7M6MHVWA-BrKCWcR1.js +4894 -0
- package/dist/chunk-7PRAP22T-BHED6GVs.js +95 -0
- package/dist/chunk-DUW6YSOI-DoZj78PO.js +19 -0
- package/dist/chunk-FOHPRMQF-Dkbp819z.js +27189 -0
- package/dist/chunk-GNY47TPC-Bpvq1T49.js +87 -0
- package/dist/chunk-GTNCS2PH-CLmh4I2c.js +686 -0
- package/dist/chunk-GWA4HPMP-B6vN3fkL.js +95 -0
- package/dist/chunk-J5ZVWO5B-Bi_Pcobw.js +26 -0
- package/dist/chunk-JWPE2WC7-D1rC79GS.js +12 -0
- package/dist/chunk-LNGE3PJU-D5OIoe3Z.js +2582 -0
- package/dist/chunk-MBY4JIJT-C34L7a4f.js +2276 -0
- package/dist/chunk-NETBCI7D-Cg84k8N8.js +321 -0
- package/dist/chunk-O7XYJQB3-B6K0KOSL.js +8846 -0
- package/dist/chunk-UA2S7LBM-DxHM29_K.js +612 -0
- package/dist/chunk-WEXAMYUT-Ba6jFWhB.js +33 -0
- package/dist/chunk-XXDRQBXY-DPbSy4kg.js +12 -0
- package/dist/chunk-Y2CYZVJY-U3QOMqrW.js +15 -0
- package/dist/chunk-Z7XXMR3K-oLg1h8F3.js +1038 -0
- package/dist/chunk-ZIGJFQKS-DqEFBuHR.js +2215 -0
- package/dist/classDiagram-v2-NBCMYWYE-BqnOWIUt.js +3845 -0
- package/dist/cose-bilkent-JH36ORCC-C0dTAHVK.js +4270 -0
- package/dist/cynefin-OW5HDTMX-B2QvgEQj.js +4 -0
- package/dist/cynefinDiagram-VND7K2PF-yAWc6Z3W.js +479 -0
- package/dist/cytoscape.esm-C64mRh9B.js +28325 -0
- package/dist/dagre-6A5THRUB-D0w2W27v.js +4816 -0
- package/dist/defaultLocale-B_EoOkSF.js +249 -0
- package/dist/diagram-22UHCM2B-DvgzhUzP.js +6115 -0
- package/dist/diagram-3UASUU5V-DWgUB-ef.js +795 -0
- package/dist/diagram-ATOU4E4O-P1olqwIs.js +553 -0
- package/dist/diagram-CDSNMT55-BUlZuLUe.js +402 -0
- package/dist/diagram-MLGK6HIB-6w5qmkGt.js +186 -0
- package/dist/diagram-MPIPVDR6-DEFiSo8o.js +289 -0
- package/dist/dist-UajCDt3n.js +92 -0
- package/dist/ebnfDiagram-ZINNZB2B-CI8liCfR.js +123 -0
- package/dist/elk-276RUBZZ-3SvW6OAK.js +90034 -0
- package/dist/erDiagram-OPXOYQCR-CPTbKhwP.js +2301 -0
- package/dist/{eventTypes-CwciaqCU.js → eventTypes-DcTQXSV1.js} +7 -1
- package/dist/eventmodeling-NTZA5JFV-BlyuqGp0.js +4 -0
- package/dist/flowDiagram-KWPJA3E3-CcUJ6HbV.js +18 -0
- package/dist/ganttDiagram-FUAMR5RP-31UjY0KK.js +3939 -0
- package/dist/geometry-wx5ZTYzi.js +715 -0
- package/dist/gitGraph-4MIJSDKK-ChdVlrk7.js +4 -0
- package/dist/gitGraphDiagram-X574FWY7-DKuxJymB.js +1153 -0
- package/dist/governance.d.ts +9 -3
- package/dist/governance.js +1 -1
- package/dist/graphlib-tk9gQYuN.js +4194 -0
- package/dist/{index-ad11wflI.d.ts → index-BiO9_XRk.d.ts} +2 -2
- package/dist/{index-DQ3-6GFu.d.ts → index-CjwdZQOS.d.ts} +945 -8
- package/dist/{index-BDyXe-a5.d.ts → index-YPd8ZSEa.d.ts} +413 -7
- package/dist/index.d.ts +4 -4
- package/dist/index.js +47 -41
- package/dist/info-A6RAGUB7-CxRAt9S9.js +4 -0
- package/dist/infoDiagram-VRGFBTTK-pRspGfjZ.js +25 -0
- package/dist/init-CMOIWdg-.js +16 -0
- package/dist/ishikawaDiagram-OU5B5YK6-DKerAPAg.js +975 -0
- package/dist/journeyDiagram-ZHPQQLJL-C4MK-YO5.js +1227 -0
- package/dist/kanban-definition-PNTS6WVX-BqsZpMXx.js +1244 -0
- package/dist/katex-BcRRvyh_.js +26465 -0
- package/dist/kind-Dc8x0HWz.js +110 -0
- package/dist/line-LgV8iVMV.js +48 -0
- package/dist/linear-BWKR0Tqd.js +393 -0
- package/dist/linkedDocument-CIuh_Yp0.js +416 -0
- package/dist/mcp.d.ts +2 -2
- package/dist/{memoryArtifactStore-D6dLeY55.js → memoryArtifactStore-Bs7glPqm.js} +14 -0
- package/dist/mermaid-parser.core-pYR5siSx.js +754 -0
- package/dist/mermaid.core-DMtwGCHy.js +1756 -0
- package/dist/mindmap-definition-NLK3R4M7-CXbD-myG.js +1312 -0
- package/dist/node.d.ts +8 -3
- package/dist/node.js +79 -4
- package/dist/{openUiLibrary-b0i7F_oZ.js → openUiLibrary-B7j3rLrm.js} +1 -1
- package/dist/{openUiSpecLang-CLXJEeRU.js → openUiSpecLang-BSYYnjay.js} +1 -1
- package/dist/ordinal-CxA6GHQS.js +84 -0
- package/dist/packet-AYTQ26CC-BOm08cxl.js +4 -0
- package/dist/path-C27Z2Bjv.js +106 -0
- package/dist/pegDiagram-GJSIUBJH-BLGJOewQ.js +115 -0
- package/dist/pie-WAS4IAKB-Dvg7glpk.js +4 -0
- package/dist/pieDiagram-5QR66LMP-laoaV_PB.js +298 -0
- package/dist/processSandboxEntry.js +5 -0
- package/dist/quadrantDiagram-O4NWA36T-Db_wFBkT.js +2236 -0
- package/dist/radar-RG4KPBEZ-BZDaTu06.js +4 -0
- package/dist/railroad-74A4TZTK-C-UhjkOy.js +4 -0
- package/dist/railroad-abnf-HS5TGJTU-dUKVA4OS.js +4 -0
- package/dist/railroad-ebnf-LZEXJU2U-DzQumk18.js +4 -0
- package/dist/railroad-peg-WCYAUIDC-B3vvTWed.js +4 -0
- package/dist/railroadDiagram-XR7U4H2S-BY0sTM4X.js +89 -0
- package/dist/requirementDiagram-PLB6GJNP-3rkQfEhs.js +2474 -0
- package/dist/rough.cjs-AmDd_NQk.js +1395 -0
- package/dist/sandboxWorkerEntry.js +5 -0
- package/dist/sankeyDiagram-IPEJSGJF-CGAJhyG2.js +3578 -0
- package/dist/sequenceDiagram-PO4LG4MO-9FJjFX06.js +5522 -0
- package/dist/sizeCapture-INFHLROL-D8PWxdOn.js +56 -0
- package/dist/{skillVersionStore-B24Jjjry-v2CCU0Xo.d.ts → skillVersionStore-B24Jjjry-BY1H7Krp.d.ts} +1 -1
- package/dist/src-NkhI3UMl.js +2653 -0
- package/dist/stateDiagram-v2-GCMORJYK-B0O3wc1-.js +2715 -0
- package/dist/swimlanes-2SLR337P-D4EOnrpu.js +6637 -0
- package/dist/swimlanesDiagram-TC7HE7FX-BUx29EJ9.js +30 -0
- package/dist/testing.d.ts +2 -1
- package/dist/testing.js +1 -1
- package/dist/timeline-definition-EJHVYXUP-CrgiiB4C.js +1513 -0
- package/dist/treeView-Q6P3EWNA-C1by-Gzc.js +4 -0
- package/dist/treemap-WGGIJYW6-mC2NZ6ad.js +4 -0
- package/dist/{types-Btpdd1y--BcxQ10Fa.d.ts → types-CpDRZ0rA-BM5FI9oN.d.ts} +111 -9
- package/dist/ui-react.d.ts +3 -3
- package/dist/ui-react.js +3718 -77
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +3 -3
- package/dist/ui.js +2 -2
- package/dist/untrustedText-BIaRvPZK.js +16 -0
- package/dist/usecaseDiagram-POWQR4AR-BUt_TQOY.js +14397 -0
- package/dist/vennDiagram-UO4OBE2U-CwXr0wjA.js +2808 -0
- package/dist/wardley-WFR3VGLG-CVSYjq_S.js +4 -0
- package/dist/wardleyDiagram-VNRHLVJA-Cpfd47dQ.js +874 -0
- package/dist/{webSkillApi-CsvA69qk.js → webSkillApi-Dy-Zjv0y.js} +1 -1
- package/dist/{webskillLitCatalog-W06npwej.js → webskillLitCatalog-D5BCiMCU.js} +1 -1
- package/dist/xychartDiagram-PMCCYNJV-e1TeVoc6.js +2704 -0
- package/package.json +6 -5
- package/dist/kind-DxgS8LM-.js +0 -77
- package/dist/linkedDocument-xNXF-z8n.js +0 -94
- package/dist/types-DOJI5YC3.js +0 -90
|
@@ -28,6 +28,24 @@ type WebSkillErrorCode = 'FS_NOT_FOUND' | 'FS_PATH_OUTSIDE_ROOT' | 'SKILL_NOT_FO
|
|
|
28
28
|
'UPLOAD_FILE_NOT_FOUND' |
|
|
29
29
|
/** 上传文件超预算。与 DATA_SOURCE_TOO_LARGE 同口径:拒绝而不截断 */
|
|
30
30
|
'UPLOAD_FILE_TOO_LARGE' |
|
|
31
|
+
/** 页面上没有可读的 WebOffice 实例,或指定的 handle 已失效(0.21.0 分册 11) */
|
|
32
|
+
'WEBOFFICE_UNAVAILABLE' |
|
|
33
|
+
/** 认出来的不是我们支持的 WebOffice SDK 版本;不降级去猜(0.21.0 FR-11.6b) */
|
|
34
|
+
'WEBOFFICE_UNSUPPORTED_VERSION' |
|
|
35
|
+
/** `api.ready` 描述符里没有这个方法。与「调用失败」分开:用户的下一步不同 */
|
|
36
|
+
'WEBOFFICE_CAPABILITY_ABSENT' | 'WEBOFFICE_CALL_FAILED' | 'WEBOFFICE_CALL_TIMEOUT' |
|
|
37
|
+
/** 0.22.0 分册 42:模板不是 xlsx / docx,或包内某个部件不是合法 XML */
|
|
38
|
+
'TEMPLATE_UNSUPPORTED' |
|
|
39
|
+
/** 地址语法不合法(`A0`、缺列号),与「语法对但模板里没有」分开:模型的下一步不同 */
|
|
40
|
+
'TEMPLATE_ADDRESS_INVALID' |
|
|
41
|
+
/** 地址语法合法,但模板里没有该工作表 / 表格 / 行 / 列(FR-42.6,不得静默丢弃) */
|
|
42
|
+
'TEMPLATE_TARGET_MISSING' |
|
|
43
|
+
/** 图片引用解析不到 */
|
|
44
|
+
'TEMPLATE_IMAGE_UNRESOLVED' |
|
|
45
|
+
/** 插行位置落在表头之前或文件末尾之后 */
|
|
46
|
+
'TEMPLATE_ROW_INSERT_RANGE' |
|
|
47
|
+
/** 目标格由模板的公式算出,写值会把它摧毁(FR-42.28) */
|
|
48
|
+
'TEMPLATE_CELL_IS_FORMULA' |
|
|
31
49
|
/** 用户拒绝了这次工具调用(0.14.0 分册 20) */
|
|
32
50
|
'TOOL_DENIED';
|
|
33
51
|
/**
|
|
@@ -189,6 +207,20 @@ interface FileStat {
|
|
|
189
207
|
size?: number;
|
|
190
208
|
mtimeMs?: number;
|
|
191
209
|
}
|
|
210
|
+
/**
|
|
211
|
+
* 分块写入的句柄(0.21.0 分册 18 · FR-18.2)。
|
|
212
|
+
*
|
|
213
|
+
* 语义与 `writeBinary` 对齐:`close()` 之前这份内容不得被当成完整文件读到;
|
|
214
|
+
* 中途失败调 `abort()`,实现必须保证不留下会被误当成完整文件的残件(FR-18.2e)。
|
|
215
|
+
*/
|
|
216
|
+
interface FileWriteStream {
|
|
217
|
+
/** 追加一块。`close()`/`abort()` 之后再调即为错误。 */
|
|
218
|
+
write(chunk: Uint8Array): Promise<void>;
|
|
219
|
+
/** 提交。此后文件才对 `readBinary` / `exists` 可见为完整内容。 */
|
|
220
|
+
close(): Promise<void>;
|
|
221
|
+
/** 放弃。已写入的部分必须被丢弃。 */
|
|
222
|
+
abort(): Promise<void>;
|
|
223
|
+
}
|
|
192
224
|
/**
|
|
193
225
|
* 文件系统抽象:core 只依赖此接口,Node/浏览器各自提供实现。
|
|
194
226
|
* 路径一律使用 `/` 分隔的 POSIX 风格。
|
|
@@ -201,6 +233,14 @@ interface FileSystemProvider {
|
|
|
201
233
|
appendText(path: string, content: string): Promise<void>;
|
|
202
234
|
readBinary(path: string): Promise<Uint8Array>;
|
|
203
235
|
writeBinary(path: string, content: Uint8Array): Promise<void>;
|
|
236
|
+
/**
|
|
237
|
+
* 可选:分块写入,避免整份文件进内存(0.21.0 分册 18 · FR-18.2)。
|
|
238
|
+
*
|
|
239
|
+
* **必须是可选的**:`FileSystemProvider` 有宿主自己的实现,加必选成员等于让它们
|
|
240
|
+
* 一夜之间不满足接口。缺省时调用方回落到 `writeBinary`——功能不降级,
|
|
241
|
+
* 只是内存峰值回到全量读取的水平(FR-18.2b)。
|
|
242
|
+
*/
|
|
243
|
+
createWriteStream?(path: string): Promise<FileWriteStream>;
|
|
204
244
|
exists(path: string): Promise<boolean>;
|
|
205
245
|
stat(path: string): Promise<FileStat>;
|
|
206
246
|
list(path: string): Promise<FileStat[]>;
|
|
@@ -345,6 +385,11 @@ declare class MemoryFS implements FileSystemProvider {
|
|
|
345
385
|
appendText(path: string, content: string): Promise<void>;
|
|
346
386
|
readBinary(path: string): Promise<Uint8Array>;
|
|
347
387
|
writeBinary(path: string, content: Uint8Array): Promise<void>;
|
|
388
|
+
/**
|
|
389
|
+
* 分块写入(FR-18.2c)。内存实现只能先攒着,`close()` 时才合并落表——
|
|
390
|
+
* 这样中途 `abort()` 或抛错都不会在表里留下半份内容(FR-18.2e)。
|
|
391
|
+
*/
|
|
392
|
+
createWriteStream(path: string): Promise<FileWriteStream>;
|
|
348
393
|
exists(path: string): Promise<boolean>;
|
|
349
394
|
stat(path: string): Promise<FileStat>;
|
|
350
395
|
list(path: string): Promise<FileStat[]>;
|
|
@@ -440,8 +485,14 @@ interface UiSpecNode {
|
|
|
440
485
|
* 产出同一份文本(AC-20.6),而后者住在 `@webskill/agent`,chatbot 依赖 agent,
|
|
441
486
|
* 判据只能落在两者共同的下游。纯字符串运算,无环境依赖。
|
|
442
487
|
*/
|
|
443
|
-
/**
|
|
444
|
-
|
|
488
|
+
/**
|
|
489
|
+
* 附件在模型侧的内容形态(0.6.0 FR-11.2)。
|
|
490
|
+
*
|
|
491
|
+
* `binary` 的分界不是「是不是二进制」(`image` / `file` 也是),而是
|
|
492
|
+
* **一个字节都不进上下文**:模型只拿得到取件号,字节由工具在宿主侧读(0.22.0 FR-19.9)。
|
|
493
|
+
* @experimental
|
|
494
|
+
*/
|
|
495
|
+
type ChatAttachmentKind = 'text' | 'image' | 'file' | 'document-text' | 'binary';
|
|
445
496
|
/** 可作为图片分片外发的 MIME 类型 @experimental */
|
|
446
497
|
declare const IMAGE_MIME_TYPES: readonly ["image/png", "image/jpeg", "image/webp", "image/gif"];
|
|
447
498
|
/**
|
|
@@ -452,15 +503,34 @@ declare const TEXT_EXTENSIONS: readonly ["txt", "md", "csv", "json", "log", "yam
|
|
|
452
503
|
/** 非文本非图片但仍可整体外发的类型(provider 的 file 分片) @experimental */
|
|
453
504
|
declare const FILE_MIME_TYPES: readonly ["application/pdf"];
|
|
454
505
|
/**
|
|
455
|
-
* 需要**客户端先抽取成文本**才能外发的类型(FR-23.9 / 0.13.0 FR-12.5)。
|
|
456
|
-
* 不走直通的 `file`:docx / xlsx 发给 provider 会被当成二进制垃圾。
|
|
506
|
+
* 需要**客户端先抽取成文本**才能外发的类型(FR-23.9 / 0.13.0 FR-12.5 / 0.22.0 分册 18)。
|
|
507
|
+
* 不走直通的 `file`:docx / xlsx / pptx 发给 provider 会被当成二进制垃圾。
|
|
457
508
|
*/
|
|
458
509
|
declare const DOCX_MIME = "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
459
510
|
declare const XLSX_MIME = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
511
|
+
declare const PPTX_MIME = "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
460
512
|
/** 文本类附件进模型上下文的字符上限(0.6.0) @experimental */
|
|
461
513
|
declare const ATTACHMENT_TEXT_LIMIT: number;
|
|
462
|
-
/**
|
|
463
|
-
|
|
514
|
+
/**
|
|
515
|
+
* DWG 图纸的 MIME。没有官方注册值,各家各发一套,浏览器上传时更常见的是空串。
|
|
516
|
+
* @experimental
|
|
517
|
+
*/
|
|
518
|
+
declare const DWG_MIME_TYPES: readonly ["image/vnd.dwg", "application/acad", "application/x-acad", "application/dwg", "application/x-dwg", "drawing/dwg"];
|
|
519
|
+
/**
|
|
520
|
+
* 只存字节、不进上下文的扩展名。仍然是**白名单制**:
|
|
521
|
+
* 新增 `binary` 类别不等于任意二进制放行(AC-19.18)。
|
|
522
|
+
* @experimental
|
|
523
|
+
*/
|
|
524
|
+
declare const BINARY_EXTENSIONS: readonly ["dwg"];
|
|
525
|
+
/** `document-text` 里的具体格式 @experimental */
|
|
526
|
+
type ExtractedDocumentFormat = 'docx' | 'xlsx' | 'pptx';
|
|
527
|
+
/**
|
|
528
|
+
* 三种待抽取格式共用 `document-text` 这一种 kind,选抽取器时要按格式再分一次。
|
|
529
|
+
* 下载列表与上传入口必须得出同一结论(AC-20.17),所以只能在这里一份。
|
|
530
|
+
* @experimental
|
|
531
|
+
*/
|
|
532
|
+
declare function extractedDocumentFormat(contentType: string, fileName: string): ExtractedDocumentFormat;
|
|
533
|
+
/** 分类集中一处,不散落在各 UI 分支里 @experimental */ declare function classifyAttachment(contentType: string, fileName: string): ChatAttachmentKind | undefined;
|
|
464
534
|
/** `formatAttachmentText` 的入参 @experimental */
|
|
465
535
|
interface AttachmentTextInput {
|
|
466
536
|
name: string;
|
|
@@ -469,6 +539,12 @@ interface AttachmentTextInput {
|
|
|
469
539
|
kind: 'text' | 'document-text';
|
|
470
540
|
/** 缺省即用户当场上传;`'download'` 时标签里额外标出本机下载目录(0.14.0 FR-20.5) */
|
|
471
541
|
origin?: 'upload' | 'download';
|
|
542
|
+
/**
|
|
543
|
+
* 正文截断的字符上限,缺省 `ATTACHMENT_TEXT_LIMIT`。
|
|
544
|
+
* 调用方自己有预算、且**按预算拒绝而不是截断**时传自己的值——
|
|
545
|
+
* 不传就会被这里 32 KiB 的兜底静默切掉,长文档看起来完整、实则只剩开头。
|
|
546
|
+
*/
|
|
547
|
+
limit?: number;
|
|
472
548
|
}
|
|
473
549
|
/**
|
|
474
550
|
* 文本类附件进模型上下文的最终形态。两条入口共用,差别只有出处那一段(0.14.0 D-20-6)。
|
|
@@ -716,7 +792,7 @@ declare function escapeXml(text: string): string;
|
|
|
716
792
|
declare function renderAvailableSkillsXml(catalog: SkillCatalog): string;
|
|
717
793
|
declare const xmlRenderer: CatalogRenderer;
|
|
718
794
|
//#endregion
|
|
719
|
-
//#region ../runtime/dist/types-
|
|
795
|
+
//#region ../runtime/dist/types-CpDRZ0rA.d.ts
|
|
720
796
|
//#region src/llm/streamTypes.d.ts
|
|
721
797
|
/** 流式 LLM 事件(OpenAI SSE / Vercel fullStream 统一映射) */
|
|
722
798
|
type LlmStreamEvent = {
|
|
@@ -854,6 +930,13 @@ interface ArtifactStore {
|
|
|
854
930
|
metadata?: Record<string, unknown>;
|
|
855
931
|
}): Promise<Artifact>;
|
|
856
932
|
listArtifacts(runId: string): Promise<Artifact[]>;
|
|
933
|
+
/**
|
|
934
|
+
* 读回本 run 内一份产物的字节(0.22.0 分册 20 FR-20.8)。
|
|
935
|
+
*
|
|
936
|
+
* 可选:外部自定义 store 不实现也不算坏契约,只是脚本那边的 `artifact:` 图片引用
|
|
937
|
+
* 解析不到,按 FR-20.9 逐张归因拒绝——而不是悄悄产出一份缺图的表。
|
|
938
|
+
*/
|
|
939
|
+
readArtifact?(runId: string, path: string): Promise<Uint8Array>;
|
|
857
940
|
}
|
|
858
941
|
//#endregion
|
|
859
942
|
//#region src/skillGeneration/candidateMarker.d.ts
|
|
@@ -941,7 +1024,26 @@ type InteractionRequest = {
|
|
|
941
1024
|
/** 读取本机下载目录(0.14.0 分册 20) */
|
|
942
1025
|
'readDownloadedFile' |
|
|
943
1026
|
/** 读取本轮上传的文件(0.15.0 分册 17;0.17.0 分册 19 从 `confirm` 改到这里) */
|
|
944
|
-
'readUploadFile'
|
|
1027
|
+
'readUploadFile' |
|
|
1028
|
+
/**
|
|
1029
|
+
* 读取页面里嵌的 WPS WebOffice 文档(0.21.0 分册 13)。
|
|
1030
|
+
* 只有一个字面量,三种动作(列出 / 读取 / 截屏)靠 `details.action` 分——
|
|
1031
|
+
* 分成三个能力会让宿主的能力开关变成三个,而用户心里它是一件事。
|
|
1032
|
+
*/
|
|
1033
|
+
'readWebOfficeDocument' |
|
|
1034
|
+
/**
|
|
1035
|
+
* 把一张图放进将要产出的文档里(0.22.0 分册 11 §3.3 / 分册 12 FR-12.5)。
|
|
1036
|
+
* 页面取像与外链抓取**共用一个能力名**,靠 `details.kind` 区分——
|
|
1037
|
+
* 两个字面量会让宿主的允许清单变成两条各自可漏的判断(同 `readWebOfficeDocument`)。
|
|
1038
|
+
* 上传图不在其中:`readUploadFile` 已经是每次都问(FR-11.11)。
|
|
1039
|
+
*/
|
|
1040
|
+
'readImageSource' |
|
|
1041
|
+
/**
|
|
1042
|
+
* 把工具产出的图交给第二个模型端点认(0.21.0 分册 17)。
|
|
1043
|
+
* 这是一次**数据出境**:用户选 A 家模型时并没有同意发给 B 家,
|
|
1044
|
+
* 所以它必须是一个独立能力位,而不是并进任何一个「读」的授权里。
|
|
1045
|
+
*/
|
|
1046
|
+
'delegateVision';
|
|
945
1047
|
message: string;
|
|
946
1048
|
/**
|
|
947
1049
|
* 结构化载荷。`message` 是无字典层的英文兜底,持有字典的宿主据本字段重写正文
|
|
@@ -1159,4 +1261,4 @@ interface MemoryStore {
|
|
|
1159
1261
|
transaction?<T>(scope: string, fn: (inner: MemoryStore) => Promise<T>): Promise<T>;
|
|
1160
1262
|
}
|
|
1161
1263
|
//#endregion
|
|
1162
|
-
export {
|
|
1264
|
+
export { PPTX_MIME as $, extractedDocumentFormat as $t, extractSkillCandidate as A, TrustedKey as At, DOCX_MIME as B, assertRemoteUrlAllowed as Bt, UiSpecActionCapability as C, xmlRenderer as Cn, SkillMetadata as Ct, UiSpecSnapshot as D, SkillSource as Dt, UiSpecPatch as E, SkillSignature as Et, BINARY_EXTENSIONS as F, ValidationReport as Ft, FileStat as G, checkDependencyCycles as Gt, DiscoveryResult as H, atomicWriteText as Ht, CatalogRenderer as I, VerifyResult as It, FsTrustedKeyStore as J, computeDigest as Jt, FileSystemProvider as K, checkSkillRules as Kt, ChatAttachmentKind as L, WebSkillError as Lt, ATTACHMENT_TEXT_LIMIT as M, UNTRUSTED_LINE_LIMIT as Mt, ArchiveLimits as N, UiSpecNode as Nt, UiSurfaceActionRequest as O, SkillsLockfile as Ot, AttachmentTextInput as P, UnsignedPolicy as Pt, MemoryFS as Q, exportSkills as Qt, CryptoKeyLike as R, WebSkillErrorCode as Rt, UiBridge as S, verifySkillSignature as Sn, SkillManifest as St, UiSpecEvent as T, SkillReader as Tt, ExtractedDocumentFormat as U, buildCatalog as Ut, DWG_MIME_TYPES as V, assertSafePathSegment as Vt, FILE_MIME_TYPES as W, buildManifest as Wt, JsonSchema as X, detectSkillArchiveShapeFromFs as Xt, IMAGE_MIME_TYPES as Y, detectSkillArchiveShape as Yt, MANIFEST_EXCLUDED_FILES as Z, escapeXml as Zt, LlmToolSpec as _, signaturePayloadBytes as _n, SkillDocument as _t, InteractionOrigin as a, messageOf as an, SKILL_MANIFEST_FILE as at, RenderResultRequest as b, validateSkills as bn, SkillLocation as bt, InteractionResponse as c, parseSkillPackManifest as cn, SKILL_PACK_FILE as ct, LlmContentPart as d, renderAvailableSkillsXml as dn, SignatureVerdict as dt, formatAttachmentText as en, Page as et, LlmMessage as f, renderCatalogJson as fn, SkillArchiveDetection as ft, LlmToolCall as g, signSkill as gn, SkillDiscovery as gt, LlmTokenUsage as h, sanitizeUntrustedLine as hn, SkillCatalogEntry as ht, FormField as i, keyIdOf as in, SKILLS_LOCKFILE as it, ATOMIC_TMP_SUFFIX_PATTERN as j, TrustedKeyStore as jt, UiSurfaceActionResponse as k, TEXT_EXTENSIONS as kt, LlmClient as l, readResponseWithLimit as ln, SKILL_SIGNATURE_FILE as lt, LlmStreamEvent as m, resolveInsideRoot as mn, SkillCatalog as mt, ArtifactStore as n, isValidSkillName as nn, RemoteUrlPolicy as nt, InteractionPolicy as o, normalizePath as on, SKILL_NAME_MAX_LENGTH as ot, LlmResponse as p, resolveArchiveLimits as pn, SkillArchiveShape as pt, FileWriteStream as q, classifyAttachment as qt, ChartSpec as r, jsonRenderer as rn, SIGNATURE_SCHEMA_VERSION as rt, InteractionRequest as s, parseSkillMarkdown as sn, SKILL_NAME_PATTERN as st, Artifact as t, isAtomicTempPath as tn, PageQuery as tt, LlmCompleteInput as u, readSkillSignature as un, SignatureAuditSink as ut, MemoryStore as v, stripArchiveRoot as vn, SkillInstallSource as vt, UiSpecDrafts as w, SkillPackManifest as wt, SkillCandidateMarker as x, verifyManifest as xn, SkillManagerPort as xt, RenderBlock as y, unzipWithLimits as yn, SkillIssue as yt, DEFAULT_ARCHIVE_LIMITS as z, XLSX_MIME as zt };
|
package/dist/ui-react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as UiSpecActionCapability, D as UiSpecSnapshot,
|
|
2
|
-
import {
|
|
3
|
-
import { F as InteractionSpecLabels, J as SurfaceFormTexts, Y as SurfaceHostControlTexts, v as ChartFontSizes } from "./index-
|
|
1
|
+
import { C as UiSpecActionCapability, D as UiSpecSnapshot, Nt as UiSpecNode, O as UiSurfaceActionRequest, S as UiBridge, T as UiSpecEvent, b as RenderResultRequest, c as InteractionResponse, k as UiSurfaceActionResponse, s as InteractionRequest, w as UiSpecDrafts } from "./types-CpDRZ0rA-BM5FI9oN.js";
|
|
2
|
+
import { P as DocumentSurfacePort } from "./index-YPd8ZSEa.js";
|
|
3
|
+
import { F as InteractionSpecLabels, J as SurfaceFormTexts, Y as SurfaceHostControlTexts, v as ChartFontSizes } from "./index-BiO9_XRk.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import React$1, { ComponentType, ReactNode } from "react";
|
|
6
6
|
import "react/jsx-runtime";
|