@webskill/sdk 0.21.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 +1012 -130
- package/dist/{approval-DwN2o2QG.js → approval-DWQlDPbY.js} +102 -16
- 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 +444 -48
- package/dist/browser.js +1771 -91
- 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/eventmodeling-NTZA5JFV-BlyuqGp0.js +4 -0
- package/dist/flowDiagram-KWPJA3E3-CcUJ6HbV.js +18 -0
- package/dist/ganttDiagram-FUAMR5RP-31UjY0KK.js +3939 -0
- package/dist/{toolSource-C9oNuKmr.js → geometry-wx5ZTYzi.js} +162 -12
- package/dist/gitGraph-4MIJSDKK-ChdVlrk7.js +4 -0
- package/dist/gitGraphDiagram-X574FWY7-DKuxJymB.js +1153 -0
- package/dist/governance.d.ts +3 -3
- package/dist/graphlib-tk9gQYuN.js +4194 -0
- package/dist/{index-B8Tgmpwh.d.ts → index-BiO9_XRk.d.ts} +2 -2
- package/dist/{index-CYLt5u4L.d.ts → index-CjwdZQOS.d.ts} +700 -12
- package/dist/{index-DHopiH_m.d.ts → index-YPd8ZSEa.d.ts} +156 -9
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- 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-DaKqLX2F.js → kind-Dc8x0HWz.js} +54 -7
- 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 +3 -3
- package/dist/node.js +2 -2
- 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/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/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-BkOk9wI_.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-BvTV_05--BW8zDuEk.d.ts → types-CpDRZ0rA-BM5FI9oN.d.ts} +59 -8
- 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/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-Cib6G-94.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 +1 -1
- package/dist/linkedDocument-C0gj1sMq.js +0 -245
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ft as ValidationReport, H as DiscoveryResult, K as FileSystemProvider, Nt as UiSpecNode, O as UiSurfaceActionRequest, Rt as WebSkillErrorCode, S as UiBridge, St as SkillManifest, T as UiSpecEvent, X as JsonSchema, _ as LlmToolSpec, _t as SkillDocument, b as RenderResultRequest, d as LlmContentPart, et as Page, f as LlmMessage, g as LlmToolCall, gt as SkillDiscovery, h as LlmTokenUsage, ht as SkillCatalogEntry, i as FormField, l as LlmClient, m as LlmStreamEvent, mt as SkillCatalog, n as ArtifactStore, nt as RemoteUrlPolicy, o as InteractionPolicy, p as LlmResponse, r as ChartSpec, s as InteractionRequest, t as Artifact, tt as PageQuery, u as LlmCompleteInput, v as MemoryStore, vt as SkillInstallSource, w as UiSpecDrafts, y as RenderBlock } from "./types-CpDRZ0rA-BM5FI9oN.js";
|
|
2
2
|
//#region ../runtime/dist/index.d.ts
|
|
3
3
|
//#region src/llm/parts.d.ts
|
|
4
4
|
/** 纯文本消息内容的构造快捷方式(引擎内部绝大多数消息仍是纯文本) */
|
|
@@ -22,7 +22,48 @@ interface SpreadsheetSheet {
|
|
|
22
22
|
columns?: string[];
|
|
23
23
|
/** 数据行。每行长度不必与 `columns` 相等,短则补空 */
|
|
24
24
|
rows: SpreadsheetCell[][];
|
|
25
|
+
/**
|
|
26
|
+
* 嵌入本表的图片(0.22.0 分册 20 FR-20.1)。逐表独立。
|
|
27
|
+
*
|
|
28
|
+
* **不承载字节**:这份规格是跨沙箱桥的 JSON 契约,字节由 `ref` 解析得到(FR-20.3)。
|
|
29
|
+
*/
|
|
30
|
+
images?: SpreadsheetImage[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* 图片锚点。行列按 **Excel 口径从 1 起**,与校验错误信息里的行号同一口径:
|
|
34
|
+
* 存在 `columns` 时表头占第 1 行,数据第 n 行的锚点行号即 `n + 1`(FR-20.4)。
|
|
35
|
+
*/
|
|
36
|
+
interface SpreadsheetImageAnchor {
|
|
37
|
+
row: number;
|
|
38
|
+
column: number;
|
|
25
39
|
}
|
|
40
|
+
interface SpreadsheetImage {
|
|
41
|
+
/**
|
|
42
|
+
* 图片引用。前缀族与投放通道的 `data-webskill-image` 同一套(FR-20.2)——
|
|
43
|
+
* 但**编码器不认识前缀**:它只把 `ref` 交给解析出口,认不认得由解析那一层说了算。
|
|
44
|
+
*/
|
|
45
|
+
ref: string;
|
|
46
|
+
anchor: SpreadsheetImageAnchor;
|
|
47
|
+
/** 显示宽度(px)。锚点所在列的列宽由它推导(FR-20.5) */
|
|
48
|
+
width: number;
|
|
49
|
+
/** 显示高度(px)。锚点所在行的行高由它推导 */
|
|
50
|
+
height: number;
|
|
51
|
+
/** 无障碍描述,写进 xlsx 的 drawing 描述位 */
|
|
52
|
+
alt?: string;
|
|
53
|
+
}
|
|
54
|
+
/** 解析出来的图片字节。`contentType` 决定 xlsx 里 media 条目的扩展名 */
|
|
55
|
+
interface SpreadsheetImageBytes {
|
|
56
|
+
readonly bytes: Uint8Array;
|
|
57
|
+
readonly contentType: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* 引用 → 字节的解析出口(FR-20.3)。
|
|
61
|
+
*
|
|
62
|
+
* 由调用方提供,**不写进编码器内部**:编码器至今不认识产物、run 与工具,
|
|
63
|
+
* 0.21.0 AC-10.8「双消费面逐字节相同」靠这一点结构性成立。
|
|
64
|
+
* 解析不到时返回 `undefined`,由编码器归因成带定位的 `VALIDATION_FAILED`(FR-20.9)。
|
|
65
|
+
*/
|
|
66
|
+
type SpreadsheetImageResolver = (ref: string) => Promise<SpreadsheetImageBytes | undefined>;
|
|
26
67
|
interface SpreadsheetSpec {
|
|
27
68
|
sheets: SpreadsheetSheet[];
|
|
28
69
|
}
|
|
@@ -34,6 +75,13 @@ declare const SPREADSHEET_LIMITS: {
|
|
|
34
75
|
/** Excel 对单个单元格文本的硬限制 */
|
|
35
76
|
readonly charsPerCell: 32767;
|
|
36
77
|
readonly bytes: number;
|
|
78
|
+
/**
|
|
79
|
+
* 单张图片的字节上限(FR-20.6)。在解析后、编码前查,
|
|
80
|
+
* 好过让调用方等整包编码完才被告知超了 16 MB 的总顶。
|
|
81
|
+
*/
|
|
82
|
+
readonly imageBytes: number;
|
|
83
|
+
/** 单表图片张数上限;与行数上限同性质,防止一次编码退化成几千次解析 */
|
|
84
|
+
readonly imagesPerSheet: 2000;
|
|
37
85
|
};
|
|
38
86
|
declare const SPREADSHEET_MIME_TYPE = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
39
87
|
declare const SPREADSHEET_EXTENSION = ".xlsx";
|
|
@@ -42,8 +90,11 @@ declare const SPREADSHEET_EXTENSION = ".xlsx";
|
|
|
42
90
|
*
|
|
43
91
|
* 导出这张表是为了让上层能如实向用户/模型声明缺什么,而不是笼统写「基础支持」——
|
|
44
92
|
* 与 `XLSX_UNEXTRACTED` 同一条口径。
|
|
93
|
+
*
|
|
94
|
+
* `'images'` 已于 0.22.0 分册 20 移出。`'column-widths'` **仍在**:
|
|
95
|
+
* 那一册只让图片锚点所在的行列拿到够用的尺寸,没有开放通用的行高列宽 API(FR-20.5)。
|
|
45
96
|
*/
|
|
46
|
-
declare const XLSX_UNSUPPORTED: readonly ["cell-styles", "fonts-and-colors", "borders", "formulas", "merged-cells", "charts", "
|
|
97
|
+
declare const XLSX_UNSUPPORTED: readonly ["cell-styles", "fonts-and-colors", "borders", "formulas", "merged-cells", "charts", "comments", "date-and-time-cell-types", "column-widths", "frozen-panes", "auto-filter", "incremental-edit-of-existing-file"];
|
|
47
98
|
type XlsxUnsupportedFeature = (typeof XLSX_UNSUPPORTED)[number];
|
|
48
99
|
//#endregion
|
|
49
100
|
//#region src/tools/types.d.ts
|
|
@@ -89,13 +140,23 @@ declare const TEXT_BUDGETED_CONTENT_TYPES: ReadonlySet<string>;
|
|
|
89
140
|
*/
|
|
90
141
|
declare const DEFAULT_MAX_DOCUMENT_BYTES = 25600000;
|
|
91
142
|
/**
|
|
92
|
-
* `document-text` 分片的上限(FR-23.4
|
|
143
|
+
* `document-text` 分片的上限(FR-23.4;值由 0.22.0 分册 15 修订)。
|
|
144
|
+
*
|
|
145
|
+
* 它是一道**闸门**,不是配额:抽出来的文本整段进上下文,超了整份拒绝、绝不截断。
|
|
146
|
+
* 抬高它不会让任何一份文档变大,只在「正文落在新旧值之间」时改变行为。
|
|
147
|
+
*
|
|
148
|
+
* 原值 500 KB 的依据是「按英文 4 字节/token 折算 ≈ 128K token,占 200K 窗口的多半」。
|
|
149
|
+
* 那个依据有两处站不住:中文 UTF-8 约 4.5 字节/token,按英文口径设闸对中文偏紧;
|
|
150
|
+
* 而窗口是宿主选的模型决定的,SDK 替宿主假定一个 2026 年初的典型值,
|
|
151
|
+
* 代价由「模型明明装得下却被拒绝」的用户承担——他们从提示里看不出这一点(FR-15.1)。
|
|
93
152
|
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
153
|
+
* 新值之下,超窗口的失败由 provider 报出而不再由 SDK 提前拦截,这是分册 15 有意的取舍:
|
|
154
|
+
* 误拒浪费的是一次**本可成功**的请求,provider 拒收浪费的是一次**必然失败**的请求。
|
|
155
|
+
* SDK 不做请求体总量预检——那需要知道每个 provider 的窗口与分词口径,又回到「替宿主假定」。
|
|
156
|
+
*
|
|
157
|
+
* 取 1024 的整数倍:设置界面按 KB 展示(5 120 000 = 5000 KB)。
|
|
97
158
|
*/
|
|
98
|
-
declare const DEFAULT_MAX_DOCUMENT_TEXT_BYTES =
|
|
159
|
+
declare const DEFAULT_MAX_DOCUMENT_TEXT_BYTES = 5120000;
|
|
99
160
|
/**
|
|
100
161
|
* 单次 fetchData 结果的字节上限(分册 16,FR-16.6):1000 KB。
|
|
101
162
|
* 结构化数据不是文档,量级差一个数量级;超出**只拒不截**——截断的 JSON 解不出来。
|
|
@@ -902,6 +963,38 @@ declare function schemaToForm(schema: JsonSchema, providedArgs?: Record<string,
|
|
|
902
963
|
* 实现在 `browser`,两者的公共下游只有 `core` 与 `runtime`,
|
|
903
964
|
* 而 `runtime/interaction` 已经是 surface 协议的归属地。
|
|
904
965
|
*/
|
|
966
|
+
/**
|
|
967
|
+
* 一张已解析图片的**实测事实**(0.22.0 FR-11.14)。
|
|
968
|
+
*
|
|
969
|
+
* 尺寸只能由宿主侧实测得出,不得取自创作模型里的图片块:块的内容来自模型,
|
|
970
|
+
* 拿它去算预算等于让被限制方自报限额(`{ width: 1 }` 就能把像素维度关掉)。
|
|
971
|
+
* @experimental
|
|
972
|
+
*/
|
|
973
|
+
interface ViewerImageFact {
|
|
974
|
+
/** 图片在创作模型里的引用,进拒绝消息与丢图归因 */
|
|
975
|
+
ref: string;
|
|
976
|
+
/** 实测像素宽 */
|
|
977
|
+
width: number;
|
|
978
|
+
/** 实测像素高 */
|
|
979
|
+
height: number;
|
|
980
|
+
/** 这张图在载荷里占的 UTF-16 code unit 数(即填进 `src` 的 data URL 长度) */
|
|
981
|
+
units: number;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* 一张没能进到文档里的图(0.22.0 FR-11.8 / AC-G3)。
|
|
985
|
+
*
|
|
986
|
+
* 三处产生点共用同一个形状:解析、DOCX 编码、PPTX 编码。
|
|
987
|
+
* `alt` 一并带出来,是因为归因要给人看,而 `ref` 对用户是一串无意义的产物名。
|
|
988
|
+
* @experimental
|
|
989
|
+
*/
|
|
990
|
+
interface ImageOmission {
|
|
991
|
+
ref: string;
|
|
992
|
+
alt: string;
|
|
993
|
+
/** 丢在哪一环 */
|
|
994
|
+
stage: 'resolve' | 'encode-docx' | 'encode-pptx';
|
|
995
|
+
/** 英文、可执行:说清楚是什么原因,用户据此判断该重取图还是换一张 */
|
|
996
|
+
reason: string;
|
|
997
|
+
}
|
|
905
998
|
/**
|
|
906
999
|
* 宿主侧的文档投放实现;`@webskill/browser` 的 `createDocumentSurfaceHost` 满足它。
|
|
907
1000
|
*
|
|
@@ -913,10 +1006,20 @@ interface DocumentSurfaceHost {
|
|
|
913
1006
|
open(input: {
|
|
914
1007
|
skillName: string;
|
|
915
1008
|
dataSource: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* `data` 是单向下发给 viewer 的结构化数据(`startViewerShell` 的第三个回调收它)。
|
|
1011
|
+
* 外壳一直支持,只是端口类型此前没暴露;DWG 投放(0.22.0 分册 19)必须走它——
|
|
1012
|
+
* 几万个实体的几何塞进 `html` 等于先序列化成几十兆字符再解析回来。
|
|
1013
|
+
*/
|
|
916
1014
|
document: {
|
|
917
1015
|
html: string;
|
|
918
1016
|
css?: string;
|
|
1017
|
+
data?: unknown;
|
|
919
1018
|
};
|
|
1019
|
+
/** 已填进文档的图片事实;缺省表示这份文档没有图 */
|
|
1020
|
+
images?: readonly ViewerImageFact[];
|
|
1021
|
+
/** 解析阶段丢掉的图;缺省表示一张都没丢 */
|
|
1022
|
+
omissions?: readonly ImageOmission[];
|
|
920
1023
|
}): Promise<void>;
|
|
921
1024
|
}
|
|
922
1025
|
/**
|
|
@@ -1299,6 +1402,7 @@ declare class FsArtifactStore implements ArtifactStore {
|
|
|
1299
1402
|
metadata?: Record<string, unknown>;
|
|
1300
1403
|
}): Promise<Artifact>;
|
|
1301
1404
|
listArtifacts(runId: string): Promise<Artifact[]>;
|
|
1405
|
+
readArtifact(runId: string, path: string): Promise<Uint8Array>;
|
|
1302
1406
|
}
|
|
1303
1407
|
//#endregion
|
|
1304
1408
|
//#region src/spreadsheet/encodeSpreadsheet.d.ts
|
|
@@ -1307,8 +1411,12 @@ declare class FsArtifactStore implements ArtifactStore {
|
|
|
1307
1411
|
*
|
|
1308
1412
|
* 纯函数——不认识产物、run 与工具,因此工具、脚本能力、测试三个消费面共用同一份
|
|
1309
1413
|
* 实现,AC-10.8「双消费面逐字节相同」是结构性成立的。
|
|
1414
|
+
*
|
|
1415
|
+
* `resolveImage` 是图片引用的解析出口(0.22.0 分册 20 FR-20.3)。它同样不破坏纯函数性:
|
|
1416
|
+
* 给定相同的规格与相同的解析结果,输出逐字节相同。规格里有图片却没给它,是
|
|
1417
|
+
* `VALIDATION_FAILED` 而不是静默出一份缺图的文件(FR-20.9)。
|
|
1310
1418
|
*/
|
|
1311
|
-
declare function encodeSpreadsheet(spec: SpreadsheetSpec): Promise<Uint8Array>;
|
|
1419
|
+
declare function encodeSpreadsheet(spec: SpreadsheetSpec, resolveImage?: SpreadsheetImageResolver): Promise<Uint8Array>;
|
|
1312
1420
|
//#endregion
|
|
1313
1421
|
//#region src/sandbox/bridgeProtocol.d.ts
|
|
1314
1422
|
/** 能力桥 RPC 消息类型 + 入站校验(Worker 沙箱 ↔ 宿主;browser/node 共用单一来源) */
|
|
@@ -1551,11 +1659,22 @@ declare const SUPPORTED_DOCUMENT_MIME: {
|
|
|
1551
1659
|
readonly pdf: "application/pdf";
|
|
1552
1660
|
readonly docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
|
|
1553
1661
|
readonly xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
1662
|
+
readonly pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
|
|
1554
1663
|
};
|
|
1664
|
+
/**
|
|
1665
|
+
* 读到就**只留字节**的类型(0.22.0 FR-19.9b):不抽文本,也不作为 `file` 分片外发,
|
|
1666
|
+
* 模型只拿到取件号。DWG 是第一例——17 MB 图纸 base64 进请求体既烧穿预算又毫无意义,
|
|
1667
|
+
* 几何该交给解析器。服务端常把 `.dwg` 发成 `application/octet-stream`,所以按扩展名兜底。
|
|
1668
|
+
*/
|
|
1669
|
+
declare const BYTES_ONLY_DOCUMENT_MIME: readonly ["image/vnd.dwg", "application/acad", "application/x-acad", "application/dwg", "application/x-dwg", "drawing/dwg"];
|
|
1670
|
+
/** 只按字节留存的判定。`url` 只在 MIME 说不清时用到 @experimental */
|
|
1671
|
+
declare function isBytesOnlyDocument(mime: string, url: string): boolean;
|
|
1555
1672
|
/** docx 抽取实现由宿主注入(`DOMParser` 是浏览器 API,Node 没有;备案 D55) */
|
|
1556
1673
|
type DocxTextExtractor = (bytes: Uint8Array) => Promise<string>;
|
|
1557
1674
|
/** xlsx 抽取实现由宿主注入(0.13.0 FR-12.5;限制与 docx 相同) */
|
|
1558
1675
|
type XlsxTextExtractor = (bytes: Uint8Array) => Promise<string>;
|
|
1676
|
+
/** pptx 抽取实现由宿主注入(0.22.0 分册 18;限制与 docx 相同) */
|
|
1677
|
+
type PptxTextExtractor = (bytes: Uint8Array) => Promise<string>;
|
|
1559
1678
|
/**
|
|
1560
1679
|
* PDF → 文本(0.13.0 FR-22.1)。**只用于直传被端点拒后的回退**,
|
|
1561
1680
|
* 不改变 PDF 默认直传的路径。SDK 不带实现:正确取到文本层要处理
|
|
@@ -1709,6 +1828,27 @@ declare class FsToolStepStore implements ToolStepStore {
|
|
|
1709
1828
|
* **不影响可执行性**——要限制访问的宿主应当使用禁用(各来源自己的 enabled 通道)。
|
|
1710
1829
|
*/
|
|
1711
1830
|
type ToolDisclosure = 'always' | 'on-demand';
|
|
1831
|
+
/**
|
|
1832
|
+
* run 内暂存的一份原始字节(0.22.0 FR-19.9b)。
|
|
1833
|
+
*
|
|
1834
|
+
* 存在的理由:有些文件**字节有用、内容不该进上下文**——DWG 图纸是第一例。
|
|
1835
|
+
* 把它当 `file` 分片 base64 发出去既烧穿预算又毫无意义,几何该交给解析器而不是模型。
|
|
1836
|
+
* 于是 `read_linked_document` 把字节留在这里,只回一个取件号。
|
|
1837
|
+
* @experimental
|
|
1838
|
+
*/
|
|
1839
|
+
interface RunBinaryEntry {
|
|
1840
|
+
readonly name: string;
|
|
1841
|
+
readonly mimeType: string;
|
|
1842
|
+
readonly bytes: Uint8Array;
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* 取件号 → 字节。**只读**:写入是引擎的事,工具源拿得到写口就会出现
|
|
1846
|
+
* 「谁都能往 run 里塞字节」的第二个事实源。
|
|
1847
|
+
* @experimental
|
|
1848
|
+
*/
|
|
1849
|
+
interface RunBinaryStore {
|
|
1850
|
+
get(id: string): RunBinaryEntry | undefined;
|
|
1851
|
+
}
|
|
1712
1852
|
/**
|
|
1713
1853
|
* 一次工具调用的调用侧上下文(0.14.0 分册 22 FR-22.5)。
|
|
1714
1854
|
*
|
|
@@ -1727,6 +1867,11 @@ interface ToolCallContext {
|
|
|
1727
1867
|
* 没有任何别的办法知道该收手。不读它的工具源行为完全不变。
|
|
1728
1868
|
*/
|
|
1729
1869
|
readonly signal?: AbortSignal;
|
|
1870
|
+
/**
|
|
1871
|
+
* 本 run 暂存的原始字节(0.22.0 FR-19.9b)。随 run 结束一起丢弃——
|
|
1872
|
+
* 它是「这一轮对话里读到的东西」,不是文件系统。
|
|
1873
|
+
*/
|
|
1874
|
+
readonly binaries?: RunBinaryStore;
|
|
1730
1875
|
}
|
|
1731
1876
|
/**
|
|
1732
1877
|
* 外部工具来源(runtime 扩展点,mcp 包实现并插入)。
|
|
@@ -1912,6 +2057,7 @@ interface AgentLoopDeps {
|
|
|
1912
2057
|
/** docx → 文本;`DOMParser` 是浏览器 API,因此由宿主注入(Node 侧无此能力,备案 D55) */
|
|
1913
2058
|
docxExtractor?: DocxTextExtractor;
|
|
1914
2059
|
xlsxExtractor?: XlsxTextExtractor;
|
|
2060
|
+
pptxExtractor?: PptxTextExtractor;
|
|
1915
2061
|
/**
|
|
1916
2062
|
* PDF → 文本(FR-22.1)。**只在直传被端点拒后用作回退**,不改变 PDF 默认直传。
|
|
1917
2063
|
* 不注入即没有回退能力,失败照报——与 docx / xlsx「不注入即没这个能力」同款。
|
|
@@ -2135,6 +2281,7 @@ interface WebSkillRuntimeDeps {
|
|
|
2135
2281
|
docxExtractor?: DocxTextExtractor;
|
|
2136
2282
|
/** xlsx → 文本;不注入即 Excel 工作簿明确报「本环境不支持」(FR-12.5) */
|
|
2137
2283
|
xlsxExtractor?: XlsxTextExtractor;
|
|
2284
|
+
pptxExtractor?: PptxTextExtractor;
|
|
2138
2285
|
/** PDF → 文本;**只在直传被端点拒后做回退**,不注入即没有回退能力(FR-22.1) */
|
|
2139
2286
|
pdfExtractor?: PdfTextExtractor;
|
|
2140
2287
|
/** 视觉委派(0.21.0 分册 17 FR-17.11a);不注入即工具产出的图照旧直接投给主模型 */
|
|
@@ -2607,4 +2754,4 @@ interface VisionBatchOutcome {
|
|
|
2607
2754
|
*/
|
|
2608
2755
|
declare function runVisionBatch(options: VisionBatchOptions): Promise<VisionBatchOutcome>;
|
|
2609
2756
|
//#endregion
|
|
2610
|
-
export {
|
|
2757
|
+
export { ImageOmission as $, UserProfileEntry as $n, readProfileEntries as $r, SchemaInferer as $t, DEFAULT_MAX_UPLOAD_FILE_BYTES as A, ToolContent as An, extractChartSpec as Ar, RunResult as At, ExternalToolSource as B, TraceEvent as Bn, isUnsupportedRunSnapshot as Br, RunTraceSummary as Bt, BridgeResponse as C, SpreadsheetSheet as Cn, buildRenderResult as Cr, RedactedArgs as Ct, DEFAULT_MAX_DATA_SOURCE_BYTES as D, TextualToolContent as Dn, diffUserProfile as Dr, RunBinaryEntry as Dt, DEFAULT_LOOP_LIMITS as E, TerminalLifecycleData as En, createWebSkillApi as Er, RouteResult as Et, DocxTextExtractor as F, ToolStepReader as Fn, fromVercelResult as Fr, RunToolCall as Ft, FsRunTraceStore as G, USER_PROFILE_EXPORT_VERSION as Gn, networkUrlHost as Gr, RuntimeSession as Gt, FsArtifactStore as H, TraceRecorder as Hn, mergeCatalogEntries as Hr, RunUsageSummary as Ht, EMPTY_USER_PROFILE as I, ToolStepRecord as In, fromVercelStreamPart as Ir, RunTraceFile as It, FullDisclosureRouter as J, USER_PROFILE_PROMPT_HEADER as Jn, normalizeToolError as Jr, SESSION_SCHEMA_VERSION as Jt, FsSessionStore as K, USER_PROFILE_KEY as Kn, normalizeErrorCode as Kr, RuntimeSessionHandle as Kt, EventBus as L, ToolStepStore as Ln, interruptedToolResult as Lr, RunTraceFilter as Lt, DataSourceInfo as M, ToolDisclosure as Mn, extractUiSpecEvents as Mr, RunSnapshotListEntry as Mt, DocumentSurfaceHost as N, ToolResolution as Nn, findUnpairedToolCalls as Nr, RunSnapshotStore as Nt, DEFAULT_MAX_DOCUMENT_BYTES as O, TodoTraceEvent as On, encodeSpreadsheet as Or, RunBinaryStore as Ot, DocumentSurfacePort as P, ToolResult as Pn, formatSkillScriptManifest as Pr, RunTerminationReason as Pt, HookRunnerOptions as Q, UserProfile as Qn, readBehaviorRecords as Qr, SUPPORTED_DOCUMENT_MIME as Qt, ExecuteLifecycleData as R, ToolStepTrust as Rn, isBytesOnlyDocument as Rr, RunTraceMetrics as Rt, BridgeRequest as S, SpreadsheetImageResolver as Sn, bridgeError as Sr, RUN_TRACE_SCHEMA_VERSION as St, CapabilityMode as T, TEXT_BUDGETED_CONTENT_TYPES as Tn, createScriptContext as Tr, RouteLifecycleData as Tt, FsMemoryStore as U, UNSUPPORTED_DOCUMENT_MESSAGE as Un, mergeProfileEntries as Ur, RuntimePhase as Ut, FS_SESSION_PAGE_SIZE as V, TraceEventType as Vn, listSkillScripts as Vr, RunUploadFiles as Vt, FsRunSnapshotStore as W, UPLOAD_FILES_UNAVAILABLE as Wn, networkPolicyLibSource as Wr, RuntimeRun as Wt, GoogleGenAiClientConfig as X, UnsupportedRunSnapshot as Xn, parseUserProfileExport as Xr, SPREADSHEET_LIMITS as Xt, GoogleGenAiClient as Y, USER_PROFILE_REFINE_PROMPT as Yn, parseBridgeRequest as Yr, SPREADSHEET_EXTENSION as Yt, HookRunner as Z, UploadFileInfo as Zn, partsToText as Zr, SPREADSHEET_MIME_TYPE as Zt, BehaviorRecord as _, toVercelToolSpecs as _i, SkillSuccessReport as _n, XLSX_UNSUPPORTED as _r, READ_LINKED_DOCUMENT_TOOL_NAME as _t, ASK_USER_TOOL as a, runVisionBatch as ai, SerializingMemoryStore as an, VISION_SLOW_THRESHOLD_MS as ar, LifecycleHook as at, BridgeCapabilities as b, SpreadsheetImageAnchor as bn, appendBehaviorRecords as br, READ_SKILL_FILE_TOOL_NAME as bt, AgentLoop as c, schemaToForm as ci, SessionRecord as cn, VisionBatchOptions as cr, LinkedDocumentReader as ct, AnthropicClient as d, summarizeRunUsage as di, SkillIntegrityGuard as dn, VisionDelegateImage as dr, OpenAiCompatibleClient as dt, readUserProfile as ei, ScriptExecutionContext as en, UserProfileExport as er, InstalledSkillManifest as et, AnthropicClientConfig as f, summarizeToolCalls as fi, SkillOutcomeReporter as fn, VisionDelegateRequest as fr, OpenAiCompatibleClientConfig as ft, BYTES_ONLY_DOCUMENT_MIME as g, toRecordDigests as gi, SkillStateGuard as gn, WebSkillRuntimeDeps as gr, READ_LINKED_DOCUMENT_TOOL as gt, BEHAVIOR_RECORDS_KEY as h, toLlmToolSpec as hi, SkillScriptSchemaSource as hn, WebSkillRuntime as hr, ProgressiveRouter as ht, ASK_USER_MAX_FIELDS as i, resolveToolName as ii, SealResult as in, VISION_MAX_CONCURRENCY as ir, LifecycleEventInit as it, DEFAULT_USER_PROFILE_LIMITS as j, ToolDefinition as jn, extractTodoTraceEvents as jr, RunSnapshot as jt, DEFAULT_MAX_DOCUMENT_TEXT_BYTES as k, ToolCallContext as kn, exportUserProfile as kr, RunLimitErrorDetails as kt, AgentLoopConfig as l, scriptToolName as li, SessionStore as ln, VisionBatchOutcome as lr, MAX_TOOL_STEP_ARG_BYTES as lt, ApprovalScope as m, toBase64 as mi, SkillScriptDescriptor as mn, WebSkillApi as mr, PptxTextExtractor as mt, ASK_USER_FIELD_TYPES as n, refineUserProfile as ni, SealOptions as nn, UserProfileLimits as nr, InteractLifecycleData as nt, ASK_USER_TOOL_NAME as o, sampleBehaviorRecords as oi, SessionListPage as on, VercelToolSpec as or, LifecycleHookContext as ot, ApprovalDecision as p, textParts as pi, SkillRouter as pn, VisionDelegateResult as pr, PdfTextExtractor as pt, FsToolStepStore as q, USER_PROFILE_NO_INVENTION_RULE as qn, normalizeToolContent as qr, SENSITIVE_ANNOTATION as qt, ASK_USER_INPUT_SCHEMA as r, renderUserProfileContext as ri, SealRecord as rn, VISION_DEFAULT_CONCURRENCY as rr, LifecycleEvent as rt, ActivateLifecycleData as s, schemaSourceLabel as si, SessionMeta as sn, ViewerImageFact as sr, LifecycleListener as st, ALLOWED_TOOLS_EXCLUSION_REASON as t, redactToolStepArgs as ti, ScriptExecutor as tn, UserProfileImportDiff as tr, IntegrityVerdict as tt, AgentLoopDeps as u, sealToolCallPairs as ui, SkillFailureReport as un, VisionDelegate as ur, NetworkPolicy as ut, BehaviorRecordKind as v, validateUiSpecEvent as vi, SpreadsheetCell as vn, XlsxTextExtractor as vr, READ_SKILL_FILE_INPUT_SCHEMA as vt, CapabilityApproval as w, SpreadsheetSpec as wn, clampVisionConcurrency as wr, RefineUserProfileInput as wt, BridgeCapability as x, SpreadsheetImageBytes as xn, applyUserProfileImport as xr, RUN_SNAPSHOT_SCHEMA_VERSION as xt, BehaviorScene as y, validateUiSpecNode as yi, SpreadsheetImage as yn, XlsxUnsupportedFeature as yr, READ_SKILL_FILE_TOOL as yt, ExternalSkillProvider as z, TraceClock as zn, isNetworkAllowed as zr, RunTraceStore as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as
|
|
1
|
+
import { $ as PPTX_MIME, $t as extractedDocumentFormat, A as extractSkillCandidate, At as TrustedKey, B as DOCX_MIME, Bt as assertRemoteUrlAllowed, C as UiSpecActionCapability, Cn as xmlRenderer, Ct as SkillMetadata, D as UiSpecSnapshot, Dt as SkillSource, E as UiSpecPatch, Et as SkillSignature, F as BINARY_EXTENSIONS, Ft as ValidationReport, G as FileStat, Gt as checkDependencyCycles, H as DiscoveryResult, Ht as atomicWriteText, I as CatalogRenderer, It as VerifyResult, J as FsTrustedKeyStore, Jt as computeDigest, K as FileSystemProvider, Kt as checkSkillRules, L as ChatAttachmentKind, Lt as WebSkillError, M as ATTACHMENT_TEXT_LIMIT, Mt as UNTRUSTED_LINE_LIMIT, N as ArchiveLimits, Nt as UiSpecNode, O as UiSurfaceActionRequest, Ot as SkillsLockfile, P as AttachmentTextInput, Pt as UnsignedPolicy, Q as MemoryFS, Qt as exportSkills, R as CryptoKeyLike, Rt as WebSkillErrorCode, S as UiBridge, Sn as verifySkillSignature, St as SkillManifest, T as UiSpecEvent, Tt as SkillReader, U as ExtractedDocumentFormat, Ut as buildCatalog, V as DWG_MIME_TYPES, Vt as assertSafePathSegment, W as FILE_MIME_TYPES, Wt as buildManifest, X as JsonSchema, Xt as detectSkillArchiveShapeFromFs, Y as IMAGE_MIME_TYPES, Yt as detectSkillArchiveShape, Z as MANIFEST_EXCLUDED_FILES, Zt as escapeXml, _ as LlmToolSpec, _n as signaturePayloadBytes, _t as SkillDocument, a as InteractionOrigin, an as messageOf, at as SKILL_MANIFEST_FILE, b as RenderResultRequest, bn as validateSkills, bt as SkillLocation, c as InteractionResponse, cn as parseSkillPackManifest, ct as SKILL_PACK_FILE, d as LlmContentPart, dn as renderAvailableSkillsXml, dt as SignatureVerdict, en as formatAttachmentText, et as Page, f as LlmMessage, fn as renderCatalogJson, ft as SkillArchiveDetection, g as LlmToolCall, gn as signSkill, gt as SkillDiscovery, h as LlmTokenUsage, hn as sanitizeUntrustedLine, ht as SkillCatalogEntry, i as FormField, in as keyIdOf, it as SKILLS_LOCKFILE, j as ATOMIC_TMP_SUFFIX_PATTERN, jt as TrustedKeyStore, k as UiSurfaceActionResponse, kt as TEXT_EXTENSIONS, l as LlmClient, ln as readResponseWithLimit, lt as SKILL_SIGNATURE_FILE, m as LlmStreamEvent, mn as resolveInsideRoot, mt as SkillCatalog, n as ArtifactStore, nn as isValidSkillName, nt as RemoteUrlPolicy, o as InteractionPolicy, on as normalizePath, ot as SKILL_NAME_MAX_LENGTH, p as LlmResponse, pn as resolveArchiveLimits, pt as SkillArchiveShape, q as FileWriteStream, qt as classifyAttachment, r as ChartSpec, rn as jsonRenderer, rt as SIGNATURE_SCHEMA_VERSION, s as InteractionRequest, sn as parseSkillMarkdown, st as SKILL_NAME_PATTERN, t as Artifact, tn as isAtomicTempPath, tt as PageQuery, u as LlmCompleteInput, un as readSkillSignature, ut as SignatureAuditSink, v as MemoryStore, vn as stripArchiveRoot, vt as SkillInstallSource, w as UiSpecDrafts, wt as SkillPackManifest, x as SkillCandidateMarker, xn as verifyManifest, xt as SkillManagerPort, y as RenderBlock, yn as unzipWithLimits, yt as SkillIssue, z as DEFAULT_ARCHIVE_LIMITS, zt as XLSX_MIME } from "./types-CpDRZ0rA-BM5FI9oN.js";
|
|
2
|
+
import { $ as ImageOmission, $n as UserProfileEntry, $r as readProfileEntries, $t as SchemaInferer, A as DEFAULT_MAX_UPLOAD_FILE_BYTES, An as ToolContent, Ar as extractChartSpec, At as RunResult, B as ExternalToolSource, Bn as TraceEvent, Br as isUnsupportedRunSnapshot, Bt as RunTraceSummary, C as BridgeResponse, Cn as SpreadsheetSheet, Cr as buildRenderResult, Ct as RedactedArgs, D as DEFAULT_MAX_DATA_SOURCE_BYTES, Dn as TextualToolContent, Dr as diffUserProfile, Dt as RunBinaryEntry, E as DEFAULT_LOOP_LIMITS, En as TerminalLifecycleData, Er as createWebSkillApi, Et as RouteResult, F as DocxTextExtractor, Fn as ToolStepReader, Fr as fromVercelResult, Ft as RunToolCall, G as FsRunTraceStore, Gn as USER_PROFILE_EXPORT_VERSION, Gr as networkUrlHost, Gt as RuntimeSession, H as FsArtifactStore, Hn as TraceRecorder, Hr as mergeCatalogEntries, Ht as RunUsageSummary, I as EMPTY_USER_PROFILE, In as ToolStepRecord, Ir as fromVercelStreamPart, It as RunTraceFile, J as FullDisclosureRouter, Jn as USER_PROFILE_PROMPT_HEADER, Jr as normalizeToolError, Jt as SESSION_SCHEMA_VERSION, K as FsSessionStore, Kn as USER_PROFILE_KEY, Kr as normalizeErrorCode, Kt as RuntimeSessionHandle, L as EventBus, Ln as ToolStepStore, Lr as interruptedToolResult, Lt as RunTraceFilter, M as DataSourceInfo, Mn as ToolDisclosure, Mr as extractUiSpecEvents, Mt as RunSnapshotListEntry, N as DocumentSurfaceHost, Nn as ToolResolution, Nr as findUnpairedToolCalls, Nt as RunSnapshotStore, O as DEFAULT_MAX_DOCUMENT_BYTES, On as TodoTraceEvent, Or as encodeSpreadsheet, Ot as RunBinaryStore, P as DocumentSurfacePort, Pn as ToolResult, Pr as formatSkillScriptManifest, Pt as RunTerminationReason, Q as HookRunnerOptions, Qn as UserProfile, Qr as readBehaviorRecords, Qt as SUPPORTED_DOCUMENT_MIME, R as ExecuteLifecycleData, Rn as ToolStepTrust, Rr as isBytesOnlyDocument, Rt as RunTraceMetrics, S as BridgeRequest, Sn as SpreadsheetImageResolver, Sr as bridgeError, St as RUN_TRACE_SCHEMA_VERSION, T as CapabilityMode, Tn as TEXT_BUDGETED_CONTENT_TYPES, Tr as createScriptContext, Tt as RouteLifecycleData, U as FsMemoryStore, Un as UNSUPPORTED_DOCUMENT_MESSAGE, Ur as mergeProfileEntries, Ut as RuntimePhase, V as FS_SESSION_PAGE_SIZE, Vn as TraceEventType, Vr as listSkillScripts, Vt as RunUploadFiles, W as FsRunSnapshotStore, Wn as UPLOAD_FILES_UNAVAILABLE, Wr as networkPolicyLibSource, Wt as RuntimeRun, X as GoogleGenAiClientConfig, Xn as UnsupportedRunSnapshot, Xr as parseUserProfileExport, Xt as SPREADSHEET_LIMITS, Y as GoogleGenAiClient, Yn as USER_PROFILE_REFINE_PROMPT, Yr as parseBridgeRequest, Yt as SPREADSHEET_EXTENSION, Z as HookRunner, Zn as UploadFileInfo, Zr as partsToText, Zt as SPREADSHEET_MIME_TYPE, _ as BehaviorRecord, _i as toVercelToolSpecs, _n as SkillSuccessReport, _r as XLSX_UNSUPPORTED, _t as READ_LINKED_DOCUMENT_TOOL_NAME, a as ASK_USER_TOOL, ai as runVisionBatch, an as SerializingMemoryStore, ar as VISION_SLOW_THRESHOLD_MS, at as LifecycleHook, b as BridgeCapabilities, bn as SpreadsheetImageAnchor, br as appendBehaviorRecords, bt as READ_SKILL_FILE_TOOL_NAME, c as AgentLoop, ci as schemaToForm, cn as SessionRecord, cr as VisionBatchOptions, ct as LinkedDocumentReader, d as AnthropicClient, di as summarizeRunUsage, dn as SkillIntegrityGuard, dr as VisionDelegateImage, dt as OpenAiCompatibleClient, ei as readUserProfile, en as ScriptExecutionContext, er as UserProfileExport, et as InstalledSkillManifest, f as AnthropicClientConfig, fi as summarizeToolCalls, fn as SkillOutcomeReporter, fr as VisionDelegateRequest, ft as OpenAiCompatibleClientConfig, g as BYTES_ONLY_DOCUMENT_MIME, gi as toRecordDigests, gn as SkillStateGuard, gr as WebSkillRuntimeDeps, gt as READ_LINKED_DOCUMENT_TOOL, h as BEHAVIOR_RECORDS_KEY, hi as toLlmToolSpec, hn as SkillScriptSchemaSource, hr as WebSkillRuntime, ht as ProgressiveRouter, i as ASK_USER_MAX_FIELDS, ii as resolveToolName, in as SealResult, ir as VISION_MAX_CONCURRENCY, it as LifecycleEventInit, j as DEFAULT_USER_PROFILE_LIMITS, jn as ToolDefinition, jr as extractTodoTraceEvents, jt as RunSnapshot, k as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, kn as ToolCallContext, kr as exportUserProfile, kt as RunLimitErrorDetails, l as AgentLoopConfig, li as scriptToolName, ln as SessionStore, lr as VisionBatchOutcome, lt as MAX_TOOL_STEP_ARG_BYTES, m as ApprovalScope, mi as toBase64, mn as SkillScriptDescriptor, mr as WebSkillApi, mt as PptxTextExtractor, n as ASK_USER_FIELD_TYPES, ni as refineUserProfile, nn as SealOptions, nr as UserProfileLimits, nt as InteractLifecycleData, o as ASK_USER_TOOL_NAME, oi as sampleBehaviorRecords, on as SessionListPage, or as VercelToolSpec, ot as LifecycleHookContext, p as ApprovalDecision, pi as textParts, pn as SkillRouter, pr as VisionDelegateResult, pt as PdfTextExtractor, q as FsToolStepStore, qn as USER_PROFILE_NO_INVENTION_RULE, qr as normalizeToolContent, qt as SENSITIVE_ANNOTATION, r as ASK_USER_INPUT_SCHEMA, ri as renderUserProfileContext, rn as SealRecord, rr as VISION_DEFAULT_CONCURRENCY, rt as LifecycleEvent, s as ActivateLifecycleData, si as schemaSourceLabel, sn as SessionMeta, sr as ViewerImageFact, st as LifecycleListener, t as ALLOWED_TOOLS_EXCLUSION_REASON, ti as redactToolStepArgs, tn as ScriptExecutor, tr as UserProfileImportDiff, tt as IntegrityVerdict, u as AgentLoopDeps, ui as sealToolCallPairs, un as SkillFailureReport, ur as VisionDelegate, ut as NetworkPolicy, v as BehaviorRecordKind, vi as validateUiSpecEvent, vn as SpreadsheetCell, vr as XlsxTextExtractor, vt as READ_SKILL_FILE_INPUT_SCHEMA, w as CapabilityApproval, wn as SpreadsheetSpec, wr as clampVisionConcurrency, wt as RefineUserProfileInput, x as BridgeCapability, xn as SpreadsheetImageBytes, xr as applyUserProfileImport, xt as RUN_SNAPSHOT_SCHEMA_VERSION, y as BehaviorScene, yi as validateUiSpecNode, yn as SpreadsheetImage, yr as XlsxUnsupportedFeature, yt as READ_SKILL_FILE_TOOL, z as ExternalSkillProvider, zn as TraceClock, zr as isNetworkAllowed, zt as RunTraceStore } from "./index-YPd8ZSEa.js";
|
|
3
3
|
//#region src/version.d.ts
|
|
4
4
|
/** Generated by scripts/syncVersionConstant.mjs from packages/sdk/package.json. Do not edit by hand. */
|
|
5
5
|
/**
|
|
6
6
|
* Version of the published `@webskill/sdk` package, injected at build time.
|
|
7
7
|
* @stable
|
|
8
8
|
*/
|
|
9
|
-
declare const SDK_VERSION = "0.
|
|
9
|
+
declare const SDK_VERSION = "0.22.0";
|
|
10
10
|
//#endregion
|
|
11
|
-
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_FIELD_TYPES, ASK_USER_INPUT_SCHEMA, ASK_USER_MAX_FIELDS, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, ATTACHMENT_TEXT_LIMIT, type ActivateLifecycleData, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, AnthropicClient, type AnthropicClientConfig, type ApprovalDecision, type ApprovalScope, type ArchiveLimits, type Artifact, type ArtifactStore, type AttachmentTextInput, BEHAVIOR_RECORDS_KEY, type BehaviorRecord, type BehaviorRecordKind, type BehaviorScene, type BridgeCapabilities, type BridgeCapability, type BridgeRequest, type BridgeResponse, CapabilityApproval, type CapabilityMode, type CatalogRenderer, type ChartSpec, type ChatAttachmentKind, type CryptoKeyLike, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_MAX_DATA_SOURCE_BYTES, DEFAULT_MAX_DOCUMENT_BYTES, DEFAULT_MAX_DOCUMENT_TEXT_BYTES, DEFAULT_MAX_UPLOAD_FILE_BYTES, DEFAULT_USER_PROFILE_LIMITS, DOCX_MIME, type DataSourceInfo, type DiscoveryResult, type DocumentSurfaceHost, type DocumentSurfacePort, type DocxTextExtractor, EMPTY_USER_PROFILE, EventBus, type ExecuteLifecycleData, type ExternalSkillProvider, type ExternalToolSource, FILE_MIME_TYPES, FS_SESSION_PAGE_SIZE, type FileStat, type FileSystemProvider, type FileWriteStream, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, type GoogleGenAiClientConfig, HookRunner, type HookRunnerOptions, IMAGE_MIME_TYPES, type InstalledSkillManifest, type IntegrityVerdict, type InteractLifecycleData, type InteractionOrigin, type InteractionPolicy, type InteractionRequest, type InteractionResponse, type JsonSchema, type LifecycleEvent, type LifecycleEventInit, type LifecycleHook, type LifecycleHookContext, type LifecycleListener, type LinkedDocumentReader, type LlmClient, type LlmCompleteInput, type LlmContentPart, type LlmMessage, type LlmResponse, type LlmStreamEvent, type LlmTokenUsage, type LlmToolCall, type LlmToolSpec, MANIFEST_EXCLUDED_FILES, MAX_TOOL_STEP_ARG_BYTES, MemoryFS, type MemoryStore, type NetworkPolicy, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, type Page, type PageQuery, type PdfTextExtractor, ProgressiveRouter, READ_LINKED_DOCUMENT_TOOL, READ_LINKED_DOCUMENT_TOOL_NAME, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, type RedactedArgs, type RefineUserProfileInput, type RemoteUrlPolicy, type RenderBlock, type RenderResultRequest, type RouteLifecycleData, type RouteResult, type RunLimitErrorDetails, type RunResult, type RunSnapshot, type RunSnapshotListEntry, type RunSnapshotStore, type RunTerminationReason, type RunToolCall, type RunTraceFile, type RunTraceFilter, type RunTraceMetrics, type RunTraceStore, type RunTraceSummary, type RunUploadFiles, type RunUsageSummary, type RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, SDK_VERSION, SENSITIVE_ANNOTATION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, SPREADSHEET_EXTENSION, SPREADSHEET_LIMITS, SPREADSHEET_MIME_TYPE, SUPPORTED_DOCUMENT_MIME, type SchemaInferer, type ScriptExecutionContext, type ScriptExecutor, type SealOptions, type SealRecord, type SealResult, SerializingMemoryStore, type SessionListPage, type SessionMeta, type SessionRecord, type SessionStore, type SignatureAuditSink, type SignatureVerdict, type SkillArchiveDetection, type SkillArchiveShape, type SkillCandidateMarker, type SkillCatalog, type SkillCatalogEntry, SkillDiscovery, type SkillDocument, type SkillFailureReport, type SkillInstallSource, type SkillIntegrityGuard, type SkillIssue, type SkillLocation, type SkillManagerPort, type SkillManifest, type SkillMetadata, type SkillOutcomeReporter, type SkillPackManifest, SkillReader, type SkillRouter, type SkillScriptDescriptor, type SkillScriptSchemaSource, type SkillSignature, type SkillSource, type SkillStateGuard, type SkillSuccessReport, type SkillsLockfile, type SpreadsheetCell, type SpreadsheetSheet, type SpreadsheetSpec, TEXT_BUDGETED_CONTENT_TYPES, TEXT_EXTENSIONS, type TerminalLifecycleData, type TextualToolContent, type TodoTraceEvent, type ToolCallContext, type ToolContent, type ToolDefinition, type ToolDisclosure, type ToolResolution, type ToolResult, type ToolStepReader, type ToolStepRecord, type ToolStepStore, type ToolStepTrust, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type TrustedKey, type TrustedKeyStore, UNSUPPORTED_DOCUMENT_MESSAGE, UNTRUSTED_LINE_LIMIT, UPLOAD_FILES_UNAVAILABLE, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, type UiBridge, type UiSpecActionCapability, type UiSpecDrafts, type UiSpecEvent, type UiSpecNode, type UiSpecPatch, type UiSpecSnapshot, type UiSurfaceActionRequest, type UiSurfaceActionResponse, type UnsignedPolicy, type UnsupportedRunSnapshot, type UploadFileInfo, type UserProfile, type UserProfileEntry, type UserProfileExport, type UserProfileImportDiff, type UserProfileLimits, VISION_DEFAULT_CONCURRENCY, VISION_MAX_CONCURRENCY, VISION_SLOW_THRESHOLD_MS, type ValidationReport, type VercelToolSpec, type VerifyResult, type VisionBatchOptions, type VisionBatchOutcome, type VisionDelegate, type VisionDelegateImage, type VisionDelegateRequest, type VisionDelegateResult, type WebSkillApi, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, XLSX_MIME, XLSX_UNSUPPORTED, type XlsxTextExtractor, type XlsxUnsupportedFeature, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, clampVisionConcurrency, classifyAttachment, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, encodeSpreadsheet, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, findUnpairedToolCalls, formatAttachmentText, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, interruptedToolResult, isAtomicTempPath, isNetworkAllowed, isUnsupportedRunSnapshot, isValidSkillName, jsonRenderer, keyIdOf, listSkillScripts, mergeCatalogEntries, mergeProfileEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, parseUserProfileExport, partsToText, readBehaviorRecords, readProfileEntries, readResponseWithLimit, readSkillSignature, readUserProfile, redactToolStepArgs, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, runVisionBatch, sampleBehaviorRecords, sanitizeUntrustedLine, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toBase64, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
|
11
|
+
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_FIELD_TYPES, ASK_USER_INPUT_SCHEMA, ASK_USER_MAX_FIELDS, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, ATTACHMENT_TEXT_LIMIT, type ActivateLifecycleData, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, AnthropicClient, type AnthropicClientConfig, type ApprovalDecision, type ApprovalScope, type ArchiveLimits, type Artifact, type ArtifactStore, type AttachmentTextInput, BEHAVIOR_RECORDS_KEY, BINARY_EXTENSIONS, BYTES_ONLY_DOCUMENT_MIME, type BehaviorRecord, type BehaviorRecordKind, type BehaviorScene, type BridgeCapabilities, type BridgeCapability, type BridgeRequest, type BridgeResponse, CapabilityApproval, type CapabilityMode, type CatalogRenderer, type ChartSpec, type ChatAttachmentKind, type CryptoKeyLike, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_MAX_DATA_SOURCE_BYTES, DEFAULT_MAX_DOCUMENT_BYTES, DEFAULT_MAX_DOCUMENT_TEXT_BYTES, DEFAULT_MAX_UPLOAD_FILE_BYTES, DEFAULT_USER_PROFILE_LIMITS, DOCX_MIME, DWG_MIME_TYPES, type DataSourceInfo, type DiscoveryResult, type DocumentSurfaceHost, type DocumentSurfacePort, type DocxTextExtractor, EMPTY_USER_PROFILE, EventBus, type ExecuteLifecycleData, type ExternalSkillProvider, type ExternalToolSource, type ExtractedDocumentFormat, FILE_MIME_TYPES, FS_SESSION_PAGE_SIZE, type FileStat, type FileSystemProvider, type FileWriteStream, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, type GoogleGenAiClientConfig, HookRunner, type HookRunnerOptions, IMAGE_MIME_TYPES, type ImageOmission, type InstalledSkillManifest, type IntegrityVerdict, type InteractLifecycleData, type InteractionOrigin, type InteractionPolicy, type InteractionRequest, type InteractionResponse, type JsonSchema, type LifecycleEvent, type LifecycleEventInit, type LifecycleHook, type LifecycleHookContext, type LifecycleListener, type LinkedDocumentReader, type LlmClient, type LlmCompleteInput, type LlmContentPart, type LlmMessage, type LlmResponse, type LlmStreamEvent, type LlmTokenUsage, type LlmToolCall, type LlmToolSpec, MANIFEST_EXCLUDED_FILES, MAX_TOOL_STEP_ARG_BYTES, MemoryFS, type MemoryStore, type NetworkPolicy, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, PPTX_MIME, type Page, type PageQuery, type PdfTextExtractor, type PptxTextExtractor, ProgressiveRouter, READ_LINKED_DOCUMENT_TOOL, READ_LINKED_DOCUMENT_TOOL_NAME, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, type RedactedArgs, type RefineUserProfileInput, type RemoteUrlPolicy, type RenderBlock, type RenderResultRequest, type RouteLifecycleData, type RouteResult, type RunBinaryEntry, type RunBinaryStore, type RunLimitErrorDetails, type RunResult, type RunSnapshot, type RunSnapshotListEntry, type RunSnapshotStore, type RunTerminationReason, type RunToolCall, type RunTraceFile, type RunTraceFilter, type RunTraceMetrics, type RunTraceStore, type RunTraceSummary, type RunUploadFiles, type RunUsageSummary, type RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, SDK_VERSION, SENSITIVE_ANNOTATION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, SPREADSHEET_EXTENSION, SPREADSHEET_LIMITS, SPREADSHEET_MIME_TYPE, SUPPORTED_DOCUMENT_MIME, type SchemaInferer, type ScriptExecutionContext, type ScriptExecutor, type SealOptions, type SealRecord, type SealResult, SerializingMemoryStore, type SessionListPage, type SessionMeta, type SessionRecord, type SessionStore, type SignatureAuditSink, type SignatureVerdict, type SkillArchiveDetection, type SkillArchiveShape, type SkillCandidateMarker, type SkillCatalog, type SkillCatalogEntry, SkillDiscovery, type SkillDocument, type SkillFailureReport, type SkillInstallSource, type SkillIntegrityGuard, type SkillIssue, type SkillLocation, type SkillManagerPort, type SkillManifest, type SkillMetadata, type SkillOutcomeReporter, type SkillPackManifest, SkillReader, type SkillRouter, type SkillScriptDescriptor, type SkillScriptSchemaSource, type SkillSignature, type SkillSource, type SkillStateGuard, type SkillSuccessReport, type SkillsLockfile, type SpreadsheetCell, type SpreadsheetImage, type SpreadsheetImageAnchor, type SpreadsheetImageBytes, type SpreadsheetImageResolver, type SpreadsheetSheet, type SpreadsheetSpec, TEXT_BUDGETED_CONTENT_TYPES, TEXT_EXTENSIONS, type TerminalLifecycleData, type TextualToolContent, type TodoTraceEvent, type ToolCallContext, type ToolContent, type ToolDefinition, type ToolDisclosure, type ToolResolution, type ToolResult, type ToolStepReader, type ToolStepRecord, type ToolStepStore, type ToolStepTrust, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type TrustedKey, type TrustedKeyStore, UNSUPPORTED_DOCUMENT_MESSAGE, UNTRUSTED_LINE_LIMIT, UPLOAD_FILES_UNAVAILABLE, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, type UiBridge, type UiSpecActionCapability, type UiSpecDrafts, type UiSpecEvent, type UiSpecNode, type UiSpecPatch, type UiSpecSnapshot, type UiSurfaceActionRequest, type UiSurfaceActionResponse, type UnsignedPolicy, type UnsupportedRunSnapshot, type UploadFileInfo, type UserProfile, type UserProfileEntry, type UserProfileExport, type UserProfileImportDiff, type UserProfileLimits, VISION_DEFAULT_CONCURRENCY, VISION_MAX_CONCURRENCY, VISION_SLOW_THRESHOLD_MS, type ValidationReport, type VercelToolSpec, type VerifyResult, type ViewerImageFact, type VisionBatchOptions, type VisionBatchOutcome, type VisionDelegate, type VisionDelegateImage, type VisionDelegateRequest, type VisionDelegateResult, type WebSkillApi, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, XLSX_MIME, XLSX_UNSUPPORTED, type XlsxTextExtractor, type XlsxUnsupportedFeature, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, clampVisionConcurrency, classifyAttachment, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, encodeSpreadsheet, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, extractedDocumentFormat, findUnpairedToolCalls, formatAttachmentText, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, interruptedToolResult, isAtomicTempPath, isBytesOnlyDocument, isNetworkAllowed, isUnsupportedRunSnapshot, isValidSkillName, jsonRenderer, keyIdOf, listSkillScripts, mergeCatalogEntries, mergeProfileEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, parseUserProfileExport, partsToText, readBehaviorRecords, readProfileEntries, readResponseWithLimit, readSkillSignature, readUserProfile, redactToolStepArgs, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, runVisionBatch, sampleBehaviorRecords, sanitizeUntrustedLine, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toBase64, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
package/dist/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import { A as SKILL_MANIFEST_FILE, C as keyIdOf, D as verifySkillSignature, E as
|
|
|
3
3
|
import { a as atomicWriteText, i as ATOMIC_TMP_SUFFIX_PATTERN, n as normalizePath, o as isAtomicTempPath, r as resolveInsideRoot, t as assertSafePathSegment } from "./pathSecurity-B1owvJAF.js";
|
|
4
4
|
import { t as assertRemoteUrlAllowed } from "./urlSafety-CiSuCJvX.js";
|
|
5
5
|
import { n as sanitizeUntrustedLine, t as UNTRUSTED_LINE_LIMIT } from "./untrustedText-BIaRvPZK.js";
|
|
6
|
-
import { a as
|
|
7
|
-
import { $ as READ_SKILL_FILE_TOOL, A as BEHAVIOR_RECORDS_KEY, B as renderUserProfileContext, C as extractTodoTraceEvents, D as VISION_SLOW_THRESHOLD_MS, E as VISION_MAX_CONCURRENCY, F as readProfileEntries, G as schemaToForm, H as EMPTY_USER_PROFILE, I as readUserProfile, J as ASK_USER_INPUT_SCHEMA, K as createScriptContext, L as sampleBehaviorRecords, M as appendBehaviorRecords, N as mergeProfileEntries, O as clampVisionConcurrency, P as readBehaviorRecords, Q as READ_SKILL_FILE_INPUT_SCHEMA, R as USER_PROFILE_NO_INVENTION_RULE, S as extractSkillCandidate, T as VISION_DEFAULT_CONCURRENCY, U as SerializingMemoryStore, V as DEFAULT_USER_PROFILE_LIMITS, W as EventBus, X as ASK_USER_TOOL, Y as ASK_USER_MAX_FIELDS, Z as ASK_USER_TOOL_NAME, _ as FsRunSnapshotStore, a as networkPolicyLibSource, at as scriptToolName, b as DEFAULT_LOOP_LIMITS, c as bridgeError, ct as ProgressiveRouter, d as FsMemoryStore, dt as xmlRenderer, et as READ_SKILL_FILE_TOOL_NAME, f as WebSkillRuntime, g as redactToolStepArgs, h as SENSITIVE_ANNOTATION, i as isNetworkAllowed, it as schemaSourceLabel, j as USER_PROFILE_KEY, k as runVisionBatch, l as parseBridgeRequest, lt as escapeXml, m as AgentLoop, n as normalizeErrorCode, nt as formatSkillScriptManifest, o as networkUrlHost, ot as resolveToolName, p as summarizeRunUsage, q as ASK_USER_FIELD_TYPES, r as normalizeToolError, rt as listSkillScripts, s as UPLOAD_FILES_UNAVAILABLE, st as toLlmToolSpec, t as CapabilityApproval, tt as ALLOWED_TOOLS_EXCLUSION_REASON, u as FsArtifactStore, ut as renderAvailableSkillsXml, v as RUN_SNAPSHOT_SCHEMA_VERSION, w as TraceRecorder, x as MAX_TOOL_STEP_ARG_BYTES, y as isUnsupportedRunSnapshot, z as USER_PROFILE_PROMPT_HEADER } from "./approval-
|
|
6
|
+
import { a as FILE_MIME_TYPES, c as TEXT_EXTENSIONS, d as extractedDocumentFormat, f as formatAttachmentText, i as DWG_MIME_TYPES, l as XLSX_MIME, n as BINARY_EXTENSIONS, o as IMAGE_MIME_TYPES, r as DOCX_MIME, s as PPTX_MIME, t as ATTACHMENT_TEXT_LIMIT, u as classifyAttachment } from "./kind-Dc8x0HWz.js";
|
|
7
|
+
import { $ as READ_SKILL_FILE_TOOL, A as BEHAVIOR_RECORDS_KEY, B as renderUserProfileContext, C as extractTodoTraceEvents, D as VISION_SLOW_THRESHOLD_MS, E as VISION_MAX_CONCURRENCY, F as readProfileEntries, G as schemaToForm, H as EMPTY_USER_PROFILE, I as readUserProfile, J as ASK_USER_INPUT_SCHEMA, K as createScriptContext, L as sampleBehaviorRecords, M as appendBehaviorRecords, N as mergeProfileEntries, O as clampVisionConcurrency, P as readBehaviorRecords, Q as READ_SKILL_FILE_INPUT_SCHEMA, R as USER_PROFILE_NO_INVENTION_RULE, S as extractSkillCandidate, T as VISION_DEFAULT_CONCURRENCY, U as SerializingMemoryStore, V as DEFAULT_USER_PROFILE_LIMITS, W as EventBus, X as ASK_USER_TOOL, Y as ASK_USER_MAX_FIELDS, Z as ASK_USER_TOOL_NAME, _ as FsRunSnapshotStore, a as networkPolicyLibSource, at as scriptToolName, b as DEFAULT_LOOP_LIMITS, c as bridgeError, ct as ProgressiveRouter, d as FsMemoryStore, dt as xmlRenderer, et as READ_SKILL_FILE_TOOL_NAME, f as WebSkillRuntime, g as redactToolStepArgs, h as SENSITIVE_ANNOTATION, i as isNetworkAllowed, it as schemaSourceLabel, j as USER_PROFILE_KEY, k as runVisionBatch, l as parseBridgeRequest, lt as escapeXml, m as AgentLoop, n as normalizeErrorCode, nt as formatSkillScriptManifest, o as networkUrlHost, ot as resolveToolName, p as summarizeRunUsage, q as ASK_USER_FIELD_TYPES, r as normalizeToolError, rt as listSkillScripts, s as UPLOAD_FILES_UNAVAILABLE, st as toLlmToolSpec, t as CapabilityApproval, tt as ALLOWED_TOOLS_EXCLUSION_REASON, u as FsArtifactStore, ut as renderAvailableSkillsXml, v as RUN_SNAPSHOT_SCHEMA_VERSION, w as TraceRecorder, x as MAX_TOOL_STEP_ARG_BYTES, y as isUnsupportedRunSnapshot, z as USER_PROFILE_PROMPT_HEADER } from "./approval-DWQlDPbY.js";
|
|
8
8
|
import { a as GoogleGenAiClient, c as findUnpairedToolCalls, d as partsToText, f as promptText, i as toVercelToolSpecs, l as interruptedToolResult, n as fromVercelResult, o as AnthropicClient, p as textParts, r as fromVercelStreamPart, s as OpenAiCompatibleClient, u as sealToolCallPairs } from "./llm-eIQNO9tr.js";
|
|
9
|
-
import { c as
|
|
9
|
+
import { _ as DEFAULT_MAX_UPLOAD_FILE_BYTES, a as UNSUPPORTED_DOCUMENT_MESSAGE, c as toBase64, d as SPREADSHEET_LIMITS, f as SPREADSHEET_MIME_TYPE, g as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, h as DEFAULT_MAX_DOCUMENT_BYTES, i as SUPPORTED_DOCUMENT_MIME, l as encodeSpreadsheet, m as DEFAULT_MAX_DATA_SOURCE_BYTES, n as READ_LINKED_DOCUMENT_TOOL, p as XLSX_UNSUPPORTED, r as READ_LINKED_DOCUMENT_TOOL_NAME, s as isBytesOnlyDocument, t as BYTES_ONLY_DOCUMENT_MIME, u as SPREADSHEET_EXTENSION, v as TEXT_BUDGETED_CONTENT_TYPES } from "./linkedDocument-CIuh_Yp0.js";
|
|
10
10
|
import { n as normalizeToolContent, t as mergeCatalogEntries } from "./external-_ZRQe-V9.js";
|
|
11
11
|
import { n as extractChartSpec, t as buildRenderResult } from "./renderResult-D9Q-Vu2x.js";
|
|
12
12
|
import { n as validateUiSpecEvent, r as validateUiSpecNode, t as extractUiSpecEvents } from "./surface-DVGiCmwq.js";
|
|
13
|
-
import { t as createWebSkillApi } from "./webSkillApi-
|
|
13
|
+
import { t as createWebSkillApi } from "./webSkillApi-Dy-Zjv0y.js";
|
|
14
14
|
|
|
15
15
|
//#region ../core/src/fs/memoryFs.ts
|
|
16
16
|
const ROOT = "/";
|
|
@@ -1010,7 +1010,7 @@ var FsToolStepStore = class {
|
|
|
1010
1010
|
* Version of the published `@webskill/sdk` package, injected at build time.
|
|
1011
1011
|
* @stable
|
|
1012
1012
|
*/
|
|
1013
|
-
const SDK_VERSION = "0.
|
|
1013
|
+
const SDK_VERSION = "0.22.0";
|
|
1014
1014
|
|
|
1015
1015
|
//#endregion
|
|
1016
|
-
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_FIELD_TYPES, ASK_USER_INPUT_SCHEMA, ASK_USER_MAX_FIELDS, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, ATTACHMENT_TEXT_LIMIT, AgentLoop, AnthropicClient, BEHAVIOR_RECORDS_KEY, CapabilityApproval, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_MAX_DATA_SOURCE_BYTES, DEFAULT_MAX_DOCUMENT_BYTES, DEFAULT_MAX_DOCUMENT_TEXT_BYTES, DEFAULT_MAX_UPLOAD_FILE_BYTES, DEFAULT_USER_PROFILE_LIMITS, DOCX_MIME, EMPTY_USER_PROFILE, EventBus, FILE_MIME_TYPES, FS_SESSION_PAGE_SIZE, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, HookRunner, IMAGE_MIME_TYPES, MANIFEST_EXCLUDED_FILES, MAX_TOOL_STEP_ARG_BYTES, MemoryFS, OpenAiCompatibleClient, ProgressiveRouter, READ_LINKED_DOCUMENT_TOOL, READ_LINKED_DOCUMENT_TOOL_NAME, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, SDK_VERSION, SENSITIVE_ANNOTATION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, SPREADSHEET_EXTENSION, SPREADSHEET_LIMITS, SPREADSHEET_MIME_TYPE, SUPPORTED_DOCUMENT_MIME, SerializingMemoryStore, SkillDiscovery, SkillReader, TEXT_BUDGETED_CONTENT_TYPES, TEXT_EXTENSIONS, TraceRecorder, UNSUPPORTED_DOCUMENT_MESSAGE, UNTRUSTED_LINE_LIMIT, UPLOAD_FILES_UNAVAILABLE, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, VISION_DEFAULT_CONCURRENCY, VISION_MAX_CONCURRENCY, VISION_SLOW_THRESHOLD_MS, WebSkillError, WebSkillRuntime, XLSX_MIME, XLSX_UNSUPPORTED, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, clampVisionConcurrency, classifyAttachment, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, encodeSpreadsheet, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, findUnpairedToolCalls, formatAttachmentText, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, interruptedToolResult, isAtomicTempPath, isNetworkAllowed, isUnsupportedRunSnapshot, isValidSkillName, jsonRenderer, keyIdOf, listSkillScripts, mergeCatalogEntries, mergeProfileEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, parseUserProfileExport, partsToText, readBehaviorRecords, readProfileEntries, readResponseWithLimit, readSkillSignature, readUserProfile, redactToolStepArgs, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, runVisionBatch, sampleBehaviorRecords, sanitizeUntrustedLine, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toBase64, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
|
1016
|
+
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_FIELD_TYPES, ASK_USER_INPUT_SCHEMA, ASK_USER_MAX_FIELDS, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, ATTACHMENT_TEXT_LIMIT, AgentLoop, AnthropicClient, BEHAVIOR_RECORDS_KEY, BINARY_EXTENSIONS, BYTES_ONLY_DOCUMENT_MIME, CapabilityApproval, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_MAX_DATA_SOURCE_BYTES, DEFAULT_MAX_DOCUMENT_BYTES, DEFAULT_MAX_DOCUMENT_TEXT_BYTES, DEFAULT_MAX_UPLOAD_FILE_BYTES, DEFAULT_USER_PROFILE_LIMITS, DOCX_MIME, DWG_MIME_TYPES, EMPTY_USER_PROFILE, EventBus, FILE_MIME_TYPES, FS_SESSION_PAGE_SIZE, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, HookRunner, IMAGE_MIME_TYPES, MANIFEST_EXCLUDED_FILES, MAX_TOOL_STEP_ARG_BYTES, MemoryFS, OpenAiCompatibleClient, PPTX_MIME, ProgressiveRouter, READ_LINKED_DOCUMENT_TOOL, READ_LINKED_DOCUMENT_TOOL_NAME, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, SDK_VERSION, SENSITIVE_ANNOTATION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, SPREADSHEET_EXTENSION, SPREADSHEET_LIMITS, SPREADSHEET_MIME_TYPE, SUPPORTED_DOCUMENT_MIME, SerializingMemoryStore, SkillDiscovery, SkillReader, TEXT_BUDGETED_CONTENT_TYPES, TEXT_EXTENSIONS, TraceRecorder, UNSUPPORTED_DOCUMENT_MESSAGE, UNTRUSTED_LINE_LIMIT, UPLOAD_FILES_UNAVAILABLE, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, VISION_DEFAULT_CONCURRENCY, VISION_MAX_CONCURRENCY, VISION_SLOW_THRESHOLD_MS, WebSkillError, WebSkillRuntime, XLSX_MIME, XLSX_UNSUPPORTED, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, clampVisionConcurrency, classifyAttachment, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, encodeSpreadsheet, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, extractedDocumentFormat, findUnpairedToolCalls, formatAttachmentText, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, interruptedToolResult, isAtomicTempPath, isBytesOnlyDocument, isNetworkAllowed, isUnsupportedRunSnapshot, isValidSkillName, jsonRenderer, keyIdOf, listSkillScripts, mergeCatalogEntries, mergeProfileEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, parseUserProfileExport, partsToText, readBehaviorRecords, readProfileEntries, readResponseWithLimit, readSkillSignature, readUserProfile, redactToolStepArgs, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, runVisionBatch, sampleBehaviorRecords, sanitizeUntrustedLine, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toBase64, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { n as parse } from "./mermaid-parser.core-pYR5siSx.js";
|
|
2
|
+
import { n as __name } from "./chunk-Y2CYZVJY-U3QOMqrW.js";
|
|
3
|
+
import { m as log } from "./src-NkhI3UMl.js";
|
|
4
|
+
import { c as configureSvgSize } from "./chunk-O7XYJQB3-B6K0KOSL.js";
|
|
5
|
+
import { t as selectSvgElement } from "./chunk-6AEJRKK7-JXK89I-O.js";
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/mermaid@12.0.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-VRGFBTTK.mjs
|
|
8
|
+
var parser = { parse: /* @__PURE__ */ __name(async (input) => {
|
|
9
|
+
const ast = await parse("info", input);
|
|
10
|
+
log.debug(ast);
|
|
11
|
+
}, "parse") };
|
|
12
|
+
var DEFAULT_INFO_DB = { version: "12.0.0" };
|
|
13
|
+
var diagram = {
|
|
14
|
+
parser,
|
|
15
|
+
db: { getVersion: /* @__PURE__ */ __name(() => DEFAULT_INFO_DB.version, "getVersion") },
|
|
16
|
+
renderer: { draw: /* @__PURE__ */ __name((text, id, version) => {
|
|
17
|
+
log.debug("rendering info diagram\n" + text);
|
|
18
|
+
const svg = selectSvgElement(id);
|
|
19
|
+
configureSvgSize(svg, 100, 400, true);
|
|
20
|
+
svg.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${version}`);
|
|
21
|
+
}, "draw") }
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { diagram };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.js
|
|
2
|
+
function initRange(domain, range) {
|
|
3
|
+
switch (arguments.length) {
|
|
4
|
+
case 0: break;
|
|
5
|
+
case 1:
|
|
6
|
+
this.range(domain);
|
|
7
|
+
break;
|
|
8
|
+
default:
|
|
9
|
+
this.range(range).domain(domain);
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { initRange as t };
|