@webskill/sdk 0.10.0 → 0.12.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/agent.d.ts +3 -2
- package/dist/agent.js +3 -1102
- package/dist/browser.d.ts +258 -11
- package/dist/browser.js +763 -47
- package/dist/{catalogComponents-DTcYfpLQ-CcoOaz-Z.js → catalogComponents-BgAJN0p8-C3K8klJd.js} +508 -923
- package/dist/dist-DU9KDAuR.js +1468 -0
- package/dist/{dist-1OFC-zax.js → dist-DqcL6jKO.js} +668 -60
- package/dist/{dist-BViUeszk.js → dist-sdKFgERo.js} +956 -115
- package/dist/{echarts-DhNm2ene.js → echarts-De78wXqV.js} +599 -61
- package/dist/{eventTypes-s2uwAcLG-Go3l_dUe.js → eventTypes-FllCrX-Z-DNDeHWoG.js} +6 -2
- package/dist/governance.d.ts +7 -3
- package/dist/governance.js +1 -1
- package/dist/{index-B0QPLWPZ.d.ts → index-3fCHc1mQ.d.ts} +198 -11
- package/dist/{index-DtFdMKBX.d.ts → index-C9pzXLKy.d.ts} +366 -9
- package/dist/{index-BF4E1a9j.d.ts → index-DFhU1uks.d.ts} +286 -19
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/mcp.d.ts +58 -7
- package/dist/mcp.js +124 -21
- package/dist/node.d.ts +3 -3
- package/dist/node.js +60 -4
- package/dist/{openUiLibrary-CIrV--Ad-B8zG_91e.js → openUiLibrary-BKXW7Iwx-DaymVubt.js} +3 -3
- package/dist/processSandboxEntry.js +8 -1
- package/dist/sandboxWorkerEntry.js +8 -1
- package/dist/{skillVersionStore-D-qHk9ZE-DBsYYCWn.d.ts → skillVersionStore-D-qHk9ZE-DheTIwAB.d.ts} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/{types-CrRcT-LM-DZAp8sWv.d.ts → types-DLctJep_-B5G4uk2u.d.ts} +22 -5
- package/dist/ui-react.d.ts +13 -4
- package/dist/ui-react.js +93 -259
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui-vue.js +2 -2
- package/dist/ui.d.ts +4 -4
- package/dist/ui.js +3 -3
- package/dist/{webskillLitCatalog-BJrphK0y-SGmRXaaO.js → webskillLitCatalog-D_zCqeQF-C9lrvvMr.js} +135 -16
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as UiBridge, a as InteractionOrigin, c as InteractionResponse, s as InteractionRequest } from "./types-
|
|
2
|
-
import {
|
|
1
|
+
import { G as RemoteUrlPolicy, S as UiBridge, Tt as WebSkillErrorCode, a as InteractionOrigin, c as InteractionResponse, s as InteractionRequest } from "./types-DLctJep_-B5G4uk2u.js";
|
|
2
|
+
import { F as ExternalToolSource, fn as ToolStepReader } from "./index-C9pzXLKy.js";
|
|
3
3
|
//#region ../agent/dist/index.d.ts
|
|
4
4
|
//#region src/todo/types.d.ts
|
|
5
5
|
/** 待办条目状态:未开始 / 进行中 / 已完成(FR-3.1) */
|
|
@@ -94,6 +94,16 @@ interface GeneratedSkillDraft {
|
|
|
94
94
|
path: string;
|
|
95
95
|
content: string;
|
|
96
96
|
}[];
|
|
97
|
+
/**
|
|
98
|
+
* 模型声称这个技能会执行的工具调用(分册 30 / FR-30.4)。
|
|
99
|
+
*
|
|
100
|
+
* 做成结构化入参而不是从 `content` 正文里扫工具名:正文是自由文本,
|
|
101
|
+
* 扫描既会漏(模型写「点击提交按钮」而不写工具名)又会误命中(提到但没执行)。
|
|
102
|
+
*/
|
|
103
|
+
steps?: readonly {
|
|
104
|
+
tool: string;
|
|
105
|
+
args?: Record<string, unknown>;
|
|
106
|
+
}[];
|
|
97
107
|
}
|
|
98
108
|
/**
|
|
99
109
|
* 候选收货端口。实现由宿主注入——`@webskill/agent` 不依赖 `@webskill/governance`
|
|
@@ -136,12 +146,34 @@ interface SkillGeneratorOptions {
|
|
|
136
146
|
now?: () => Date;
|
|
137
147
|
/** 界面文案注入口:生成器与语言无关,字典在宿主手里(UI-UX5 #9) */
|
|
138
148
|
messages?: SkillGenerationMessages;
|
|
149
|
+
/**
|
|
150
|
+
* 本会话的运行轨迹(分册 30)。**不注入即不校验、不展示证据**,行为与 0.11.0 一致——
|
|
151
|
+
* 这既让本册可分步落地,也给 AC-30.14 的反向对照留了现成的造法。
|
|
152
|
+
*/
|
|
153
|
+
steps?: ToolStepReader;
|
|
139
154
|
}
|
|
140
155
|
/** 生成器面向用户的文案;缺省全部为英文模板 */
|
|
141
156
|
interface SkillGenerationMessages {
|
|
142
157
|
/** 授权确认卡的正文(含技能名与描述插值由实现方完成) */
|
|
143
158
|
confirmSkill?(draft: GeneratedSkillDraft): string;
|
|
144
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* 确认卡上的一步(分册 30 / FR-30.5)。
|
|
162
|
+
* `evidence` 区分「这一步在本会话真的跑过」与「模型自己补写的」。
|
|
163
|
+
*/
|
|
164
|
+
interface SkillTraceEvidenceStep {
|
|
165
|
+
tool: string;
|
|
166
|
+
evidence: 'trace' | 'model';
|
|
167
|
+
/** 轨迹里的原始参数(已脱敏);无背书时缺省 */
|
|
168
|
+
traceArgs?: Record<string, unknown>;
|
|
169
|
+
/** 模型在草稿里写的参数 */
|
|
170
|
+
draftArgs?: Record<string, unknown>;
|
|
171
|
+
/** 轨迹里被脱敏掉的字段路径 */
|
|
172
|
+
redacted?: readonly string[];
|
|
173
|
+
}
|
|
174
|
+
interface SkillTraceEvidence {
|
|
175
|
+
steps: readonly SkillTraceEvidenceStep[];
|
|
176
|
+
}
|
|
145
177
|
/**
|
|
146
178
|
* 技能自动生成策略。生成动作是策略而不是内核:它不进入 `AgentLoop`,
|
|
147
179
|
* 而是经既有的 `ExternalToolSource` 扩展点接入(设计 02 §0)。
|
|
@@ -308,11 +340,54 @@ interface PerceptionScope {
|
|
|
308
340
|
/** 从 include 子树中剪除的敏感区域(凭据输入、个人信息展示区等) */
|
|
309
341
|
exclude?: readonly string[];
|
|
310
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* 一个帧内的可感知范围(FR-24.1)。
|
|
345
|
+
*
|
|
346
|
+
* `frame` 的选择器在**主文档**里求值,不下钻到 iframe 内部再找 iframe:
|
|
347
|
+
* 允许 `a > b > c` 式的跨帧路径会让「授权面到底覆盖了什么」无法在配置里一眼看出来。
|
|
348
|
+
* 要读更深的帧须再写一条——而那条也只能写主文档里的选择器,所以本版实际只支持一层。
|
|
349
|
+
* @experimental
|
|
350
|
+
*/
|
|
351
|
+
interface FrameScope {
|
|
352
|
+
/** 主文档写 `'self'`;iframe 写主文档里定位该 `<iframe>` 的选择器 */
|
|
353
|
+
frame: 'self' | string;
|
|
354
|
+
include: readonly string[];
|
|
355
|
+
exclude?: readonly string[];
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* 宿主声明的感知范围:单帧(旧形状)或多帧。
|
|
359
|
+
*
|
|
360
|
+
* 保留旧形状不是为了好看——AC-24.9 要求宿主不改配置也能升级。
|
|
361
|
+
* @experimental
|
|
362
|
+
*/
|
|
363
|
+
type PerceptionScopeInput = PerceptionScope | {
|
|
364
|
+
frames: readonly FrameScope[];
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* 两种形状归一成帧列表;旧形状等价于一条 `frame:'self'`(FR-24.1)。
|
|
368
|
+
*
|
|
369
|
+
* **这是判别的单一来源。** 散在各处写 `'frames' in scope` 会让
|
|
370
|
+
* 「旧配置还等价吗」这个问题没有唯一答案。
|
|
371
|
+
* @experimental
|
|
372
|
+
*/
|
|
373
|
+
declare function toFrameScopes(scope: PerceptionScopeInput): readonly FrameScope[];
|
|
374
|
+
/** 某个帧未能读取的原因(FR-24.2 / FR-24.3);不静默跳过 @experimental */
|
|
375
|
+
interface FrameNote {
|
|
376
|
+
frame: string;
|
|
377
|
+
reason: 'cross-origin' | 'origin-changed' | 'not-found';
|
|
378
|
+
/** 面向模型的英文说明,同时也是说明节点的 name */
|
|
379
|
+
message: string;
|
|
380
|
+
}
|
|
311
381
|
/**
|
|
312
382
|
* 结构化元素描述(FR-10.4,硬约束):只有角色、名称、值。
|
|
313
383
|
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
384
|
+
* 仍**不下发 HTML 原文**:HTML 里的 class / data 属性 / 注释远超模型完成任务所需;
|
|
385
|
+
* 且页面文本一旦以 HTML 形式进上下文,就多了一条注入通道。
|
|
386
|
+
*
|
|
387
|
+
* **链接 URL 是显式放行的例外**(0.11.0 分册 22,FR-22.1/22.2)。
|
|
388
|
+
* 它的风险不再由「不下发」承担,而是由取数侧的四道闸门共同承担:
|
|
389
|
+
* 同源判定、跨源逐次确认、`assertRemoteUrlAllowed`、审计留痕。
|
|
390
|
+
* 放行的只有 `href` 这一个属性,其余属性照旧不下发。
|
|
316
391
|
* @experimental
|
|
317
392
|
*/
|
|
318
393
|
interface PerceivedNode {
|
|
@@ -332,6 +407,23 @@ interface PerceivedNode {
|
|
|
332
407
|
* 由 reader 生成,只在产生它的那次感知内有效;模型不得构造或推断。
|
|
333
408
|
*/
|
|
334
409
|
ref?: string;
|
|
410
|
+
/**
|
|
411
|
+
* 该节点来自哪个帧(FR-24.4)。**主文档节点不带这个字段**——
|
|
412
|
+
* 否则旧宿主的断言会凭空变化。跨帧后会出现同名控件,不标帧模型会点错。
|
|
413
|
+
*/
|
|
414
|
+
frame?: string;
|
|
415
|
+
/**
|
|
416
|
+
* 链接目标(FR-22.1)。**仅 `role === 'link'` 的节点有**,且只有感知白名单
|
|
417
|
+
* 区域内的链接才有。URL **原样**保留,不去 query —— 去掉会让 `?share=…`
|
|
418
|
+
* 这类链接失效,而 query 里的敏感信息本就不该由感知层来猜。
|
|
419
|
+
*/
|
|
420
|
+
href?: string;
|
|
421
|
+
/**
|
|
422
|
+
* 该节点为何可见(FR-25.6 / AC-G22)。只在**授权面被临时扩大**时出现:
|
|
423
|
+
* `'modal-elevated'` = 它在一个由本次已授权操作打开的对话框里,
|
|
424
|
+
* 原本不在白名单内。缺省不带该字段。
|
|
425
|
+
*/
|
|
426
|
+
provenance?: 'modal-elevated';
|
|
335
427
|
children?: readonly PerceivedNode[];
|
|
336
428
|
}
|
|
337
429
|
/** 随感知一起下发的一张图像(FR-12.1) @experimental */
|
|
@@ -362,6 +454,8 @@ interface PerceptionCaptureOptions {
|
|
|
362
454
|
*/
|
|
363
455
|
interface PerceptionResult {
|
|
364
456
|
nodes: readonly PerceivedNode[];
|
|
457
|
+
/** 被跳过的帧及原因;调用方据此告警(FR-24.2 / FR-24.3) */
|
|
458
|
+
frameNotes?: readonly FrameNote[];
|
|
365
459
|
images?: readonly PerceivedImage[];
|
|
366
460
|
/** 超出 `maxImages` 而未下发的张数 */
|
|
367
461
|
imagesOmitted?: number;
|
|
@@ -376,15 +470,17 @@ interface PerceptionResult {
|
|
|
376
470
|
* @experimental
|
|
377
471
|
*/
|
|
378
472
|
interface PagePerceptionReader {
|
|
379
|
-
read(scope:
|
|
473
|
+
read(scope: PerceptionScopeInput, capture?: PerceptionCaptureOptions): Promise<readonly PerceivedNode[] | PerceptionResult> | readonly PerceivedNode[] | PerceptionResult;
|
|
380
474
|
}
|
|
381
475
|
/** 一次感知的留痕(FR-10.5 的 UI 提示与 FR-10.6 的审计共用同一条记录) @experimental */
|
|
382
476
|
interface PerceptionRecord {
|
|
383
477
|
/** ISO 8601 */
|
|
384
478
|
at: string;
|
|
385
|
-
/**
|
|
479
|
+
/** 本次实际生效的白名单(多帧时是各帧的并集) */
|
|
386
480
|
include: readonly string[];
|
|
387
481
|
exclude: readonly string[];
|
|
482
|
+
/** 本次读取的帧标识;单帧配置时不存在,旧宿主的断言不受影响(FR-24.6) */
|
|
483
|
+
frames?: readonly string[];
|
|
388
484
|
/** 读到的顶层节点数;用于「它读的比我预期的多」这类判断 */
|
|
389
485
|
nodeCount: number;
|
|
390
486
|
/** 本次下发的图像张数,按取像级别分组(只在取像开启时存在) */
|
|
@@ -418,12 +514,14 @@ type PerceptionAuditSink = PageAuditSink;
|
|
|
418
514
|
//#region src/perception/policy.d.ts
|
|
419
515
|
interface PagePerceptionPolicyOptions {
|
|
420
516
|
/** 宿主声明的白名单;`include` 为空即整个能力不可用 */
|
|
421
|
-
scope:
|
|
517
|
+
scope: PerceptionScopeInput;
|
|
422
518
|
reader: PagePerceptionReader;
|
|
423
519
|
/** FR-10.6:每次感知写审计。不注入即不留痕,装配方要自己承担这个选择 */
|
|
424
520
|
audit?: PerceptionAuditSink;
|
|
425
521
|
/** 审计事件的 target(缺省 `page`);多页面宿主可用它区分来源 */
|
|
426
522
|
auditTarget?: string;
|
|
523
|
+
/** 帧被跳过时的告警出口(跨源、origin 变更、找不到);FR-24.3 要求「失效并告警」 */
|
|
524
|
+
onWarning?(message: string): void;
|
|
427
525
|
now?(): string;
|
|
428
526
|
}
|
|
429
527
|
/**
|
|
@@ -442,7 +540,7 @@ declare class PagePerceptionPolicy {
|
|
|
442
540
|
constructor(options: PagePerceptionPolicyOptions);
|
|
443
541
|
/** 白名单为空即不可用(FR-10.1/10.2):宿主没声明范围就没有这个能力 */
|
|
444
542
|
get enabled(): boolean;
|
|
445
|
-
get scope():
|
|
543
|
+
get scope(): PerceptionScopeInput;
|
|
446
544
|
/** 最近的感知记录(console 只读展示用),新的在前 */
|
|
447
545
|
get records(): readonly PerceptionRecord[];
|
|
448
546
|
/** FR-10.5:感知发生时通知 UI,chatbot 据此在消息流里标注一行 */
|
|
@@ -490,6 +588,100 @@ declare function createPagePerceptionToolSource(options: PagePerceptionToolSourc
|
|
|
490
588
|
*/
|
|
491
589
|
declare const PERCEPTION_SYSTEM_PROMPT: string;
|
|
492
590
|
//#endregion
|
|
591
|
+
//#region src/dataSource/policy.d.ts
|
|
592
|
+
/** 数据源的四种通道(FR-16.2);后三种的通道由分册 24/26/27 建立,本层只做消费 */
|
|
593
|
+
type DataSourceKind = 'page-perception' | 'webmcp-tool' | 'http' | 'page-skill';
|
|
594
|
+
/**
|
|
595
|
+
* 宿主声明的一个数据源。
|
|
596
|
+
*
|
|
597
|
+
* **`target` 由宿主写死,脚本传不进来**——这就是 FR-16.2「唯一授权面」的实现方式。
|
|
598
|
+
* `assertRemoteUrlAllowed` 只判 scheme 与私有地址,**给不了**域名白名单,
|
|
599
|
+
* 所以授权靠的是「URL 根本不由脚本提供」,那个函数是第二道闸门。
|
|
600
|
+
* @experimental
|
|
601
|
+
*/
|
|
602
|
+
interface DataSourceDef {
|
|
603
|
+
id: string;
|
|
604
|
+
kind: DataSourceKind;
|
|
605
|
+
/** 给技能作者看的一句话;不进模型上下文 */
|
|
606
|
+
description: string;
|
|
607
|
+
/** 按 kind 各异:选择器 / 工具名 / URL / 技能名 */
|
|
608
|
+
target: string;
|
|
609
|
+
}
|
|
610
|
+
/** 一次取数的留痕(FR-16.4);被拒也要记,否则「反复试探未授权的源」在审计里看不见 */
|
|
611
|
+
interface DataSourceRecord {
|
|
612
|
+
/** ISO 8601 */
|
|
613
|
+
at: string;
|
|
614
|
+
sourceId: string;
|
|
615
|
+
kind?: DataSourceKind;
|
|
616
|
+
ok: boolean;
|
|
617
|
+
/** 成功时的结果字节数 */
|
|
618
|
+
bytes?: number;
|
|
619
|
+
/** 失败时的稳定错误码 */
|
|
620
|
+
code?: WebSkillErrorCode;
|
|
621
|
+
reason?: string;
|
|
622
|
+
}
|
|
623
|
+
interface DataSourceAuditSink {
|
|
624
|
+
record(event: DataSourceRecord): void | Promise<void>;
|
|
625
|
+
}
|
|
626
|
+
/** 取数的实际执行;`http` 之外的三种由各自分册接线后注入(FR-16.3) */
|
|
627
|
+
interface DataSourceTransport {
|
|
628
|
+
fetch(source: DataSourceDef, params?: Record<string, unknown>): Promise<unknown>;
|
|
629
|
+
}
|
|
630
|
+
interface DataSourcePolicyOptions {
|
|
631
|
+
sources: readonly DataSourceDef[];
|
|
632
|
+
/**
|
|
633
|
+
* `kind:'http'` 的出站判定;缺省即 assertRemoteUrlAllowed 的缺省。
|
|
634
|
+
*
|
|
635
|
+
* 传函数形式可惰性取值:宿主的出站策略通常住在可改的运行时配置里,
|
|
636
|
+
* 写死成字面量会让改完设置必须刷新页面才生效。
|
|
637
|
+
*/
|
|
638
|
+
remoteUrl?: RemoteUrlPolicy | (() => RemoteUrlPolicy | Promise<RemoteUrlPolicy>);
|
|
639
|
+
/** 按 kind 注入的执行器;缺失的 kind 调用时报「宿主未提供该通道」 */
|
|
640
|
+
transports?: Partial<Record<DataSourceKind, DataSourceTransport>>;
|
|
641
|
+
/** 结果字节上限(FR-16.6);超出即拒绝,**不截断** */
|
|
642
|
+
maxBytes?: number;
|
|
643
|
+
audit?: DataSourceAuditSink;
|
|
644
|
+
now?(): string;
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* 脚本取数策略(分册 16)。
|
|
648
|
+
*
|
|
649
|
+
* 与 `PagePerceptionPolicy` / `PageActionPolicy` 同款:**未注入即该能力不存在**。
|
|
650
|
+
* 脚本侧看到的是 `context.fetchData === undefined`,不是一个会报错的函数。
|
|
651
|
+
* @experimental
|
|
652
|
+
*/
|
|
653
|
+
declare class DataSourcePolicy {
|
|
654
|
+
#private;
|
|
655
|
+
constructor(options: DataSourcePolicyOptions);
|
|
656
|
+
/** 一个源都没声明就没有这个能力(同 perception 的 include 为空) */
|
|
657
|
+
get enabled(): boolean;
|
|
658
|
+
get sources(): readonly DataSourceDef[];
|
|
659
|
+
get records(): readonly DataSourceRecord[];
|
|
660
|
+
fetchData(sourceId: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
661
|
+
}
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region src/dataSource/httpTransport.d.ts
|
|
664
|
+
interface HttpDataSourceOptions {
|
|
665
|
+
/**
|
|
666
|
+
* 注入点存在只为可测(AC-16.1 要断「零请求」,得能数调用次数)。
|
|
667
|
+
* 生产装配留空即用全局 fetch。
|
|
668
|
+
*/
|
|
669
|
+
fetch?: typeof globalThis.fetch;
|
|
670
|
+
/** 宿主侧固定请求头,例如网关鉴权;**脚本改不了** */
|
|
671
|
+
headers?: Readonly<Record<string, string>>;
|
|
672
|
+
/** 单次请求超时,缺省 15s;卡死的上游会一直占着沙箱的一次调用 */
|
|
673
|
+
timeoutMs?: number;
|
|
674
|
+
}
|
|
675
|
+
/**
|
|
676
|
+
* `kind:'http'` 的搬运层(分册 16 §2.3 本册唯一新建通道)。
|
|
677
|
+
*
|
|
678
|
+
* `params` 一律走查询串,**不拼进 path**:拼 path 的话
|
|
679
|
+
* `params={ x: '../admin' }` 就能把目标挪走,那样 `target` 写死就白写了
|
|
680
|
+
* ——「唯一授权面」是靠目标不可被脚本影响撑住的(FR-16.2)。
|
|
681
|
+
* @experimental
|
|
682
|
+
*/
|
|
683
|
+
declare function createHttpDataSourceTransport(options?: HttpDataSourceOptions): DataSourceTransport;
|
|
684
|
+
//#endregion
|
|
493
685
|
//#region src/pageAction/types.d.ts
|
|
494
686
|
/**
|
|
495
687
|
* 页面操作的策略层类型(需求 23)。
|
|
@@ -511,14 +703,49 @@ interface PageActionScope {
|
|
|
511
703
|
/** 从 include 子树中剪除的危险控件(支付、删除、权限变更等) */
|
|
512
704
|
exclude?: readonly string[];
|
|
513
705
|
}
|
|
514
|
-
/**
|
|
515
|
-
|
|
706
|
+
/**
|
|
707
|
+
* 一个帧内的可操作范围(FR-24.1)。
|
|
708
|
+
*
|
|
709
|
+
* 与感知侧的 `FrameScope` 同构但**独立声明**,理由同上:合并成一个类型会让
|
|
710
|
+
* 「一份配置同时当感知范围和操作范围用」在类型层面合法。
|
|
711
|
+
* @experimental
|
|
712
|
+
*/
|
|
713
|
+
interface ActionFrameScope {
|
|
714
|
+
/** 主文档写 `'self'`;iframe 写主文档里定位该 `<iframe>` 的选择器 */
|
|
715
|
+
frame: 'self' | string;
|
|
716
|
+
include: readonly string[];
|
|
717
|
+
exclude?: readonly string[];
|
|
718
|
+
}
|
|
719
|
+
/** 宿主声明的操作范围:单帧(旧形状)或多帧。旧形状必须继续可用(AC-24.9) @experimental */
|
|
720
|
+
type PageActionScopeInput = PageActionScope | {
|
|
721
|
+
frames: readonly ActionFrameScope[];
|
|
722
|
+
};
|
|
723
|
+
/**
|
|
724
|
+
* 两种形状归一成帧列表;旧形状等价于一条 `frame:'self'`。
|
|
725
|
+
* 与感知侧的 `toFrameScopes` 一样,是本侧判别的**单一来源**。
|
|
726
|
+
* @experimental
|
|
727
|
+
*/
|
|
728
|
+
declare function toActionFrameScopes(scope: PageActionScopeInput): readonly ActionFrameScope[];
|
|
729
|
+
/**
|
|
730
|
+
* 本版的操作集(FR-25.1)。导航、拖拽、滚动仍不在内。
|
|
731
|
+
*
|
|
732
|
+
* `select`/`set`/`attach` 与既有三个走**同一条** policy 路径,
|
|
733
|
+
* 范围白名单、逐次确认、审计三条硬约束因此天然覆盖到它们——
|
|
734
|
+
* 前提是新动作不绕过 policy 直接调执行器(AC-25.4 守这一点)。
|
|
735
|
+
* @experimental
|
|
736
|
+
*/
|
|
737
|
+
declare const PAGE_ACTION_KINDS: readonly ["click", "fill", "submit", "select", "set", "attach"];
|
|
738
|
+
type PageActionKind = (typeof PAGE_ACTION_KINDS)[number];
|
|
516
739
|
/** @experimental */
|
|
517
740
|
interface PageActionRequest {
|
|
518
741
|
/** 感知产出的不透明句柄;不接受选择器(FR-23.4) */
|
|
519
742
|
ref: string;
|
|
520
743
|
action: PageActionKind;
|
|
521
|
-
/**
|
|
744
|
+
/**
|
|
745
|
+
* `fill` 填入的文本;`select` 要选中的选项可访问名;
|
|
746
|
+
* `set` 的目标态(`'true'` | `'false'`)。`attach` 不用它——
|
|
747
|
+
* 文件**始终由用户在确认卡里选**,Agent 传不进本地路径(FR-25.5)。
|
|
748
|
+
*/
|
|
522
749
|
value?: string;
|
|
523
750
|
}
|
|
524
751
|
/** @experimental */
|
|
@@ -532,12 +759,34 @@ interface PageActionOutcome {
|
|
|
532
759
|
target: {
|
|
533
760
|
role: string;
|
|
534
761
|
name?: string;
|
|
762
|
+
frame?: string;
|
|
535
763
|
};
|
|
536
764
|
/** 目标是密码类控件:确认卡与留痕据此隐去值(FR-23.3) */
|
|
537
765
|
secret?: boolean;
|
|
766
|
+
/**
|
|
767
|
+
* `set` 判定当前态已是目标态,因此**没有真的操作**(FR-25.4)。
|
|
768
|
+
* 仍返回 `ok: true`:返回失败模型会重试,假装点了审计会失真。
|
|
769
|
+
*/
|
|
770
|
+
noop?: boolean;
|
|
771
|
+
/** 本次操作新打开的模态的可访问名;授权面临时扩大要在留痕里看得见(FR-25.6) */
|
|
772
|
+
elevatedModal?: string;
|
|
538
773
|
/** 失败原因(英文) */
|
|
539
774
|
reason?: string;
|
|
540
775
|
}
|
|
776
|
+
/**
|
|
777
|
+
* 执行器对一个句柄的描述。确认卡的措辞、留痕与分册 30 的参数留存共用这一份——
|
|
778
|
+
* 句柄本身是本次感知产出的不透明串,离开这次运行就没有意义。
|
|
779
|
+
* @experimental
|
|
780
|
+
*/
|
|
781
|
+
interface PageActionTarget {
|
|
782
|
+
role: string;
|
|
783
|
+
name?: string;
|
|
784
|
+
/** 密码类控件:确认卡打掩码,参数留存整次调用不留明文 */
|
|
785
|
+
secret?: boolean;
|
|
786
|
+
frame?: string;
|
|
787
|
+
/** 目标在本次任务临时打开的对话框里,授权面被扩大过 */
|
|
788
|
+
elevated?: boolean;
|
|
789
|
+
}
|
|
541
790
|
/**
|
|
542
791
|
* 页面操作执行器。与 `PagePerceptionReader` 对称,同样不含 DOM 概念。
|
|
543
792
|
* 实现方负责校验句柄有效性、元素可交互性,以及目标是否仍在操作范围内。
|
|
@@ -546,11 +795,7 @@ interface PageActionOutcome {
|
|
|
546
795
|
interface PageActionExecutor {
|
|
547
796
|
execute(request: PageActionRequest): Promise<PageActionOutcome> | PageActionOutcome;
|
|
548
797
|
/** 目标的角色与可访问名称,供确认卡在**执行前**说清将要做什么(FR-23.2) */
|
|
549
|
-
describe(ref: string):
|
|
550
|
-
role: string;
|
|
551
|
-
name?: string;
|
|
552
|
-
secret?: boolean;
|
|
553
|
-
} | undefined;
|
|
798
|
+
describe(ref: string): PageActionTarget | undefined;
|
|
554
799
|
}
|
|
555
800
|
/** 一次页面操作的留痕(FR-23.3 的五项字段) @experimental */
|
|
556
801
|
interface PageActionRecord {
|
|
@@ -559,9 +804,17 @@ interface PageActionRecord {
|
|
|
559
804
|
action: PageActionKind;
|
|
560
805
|
role: string;
|
|
561
806
|
name?: string;
|
|
807
|
+
/** 目标所在的帧;主文档目标不带该字段(FR-24.6) */
|
|
808
|
+
frame?: string;
|
|
562
809
|
/** 是否经用户确认;宿主预授权的操作记 `'preauthorized'` */
|
|
563
810
|
approved: boolean | 'preauthorized';
|
|
564
811
|
ok: boolean;
|
|
812
|
+
/** 目标位于本次会话中被提升的模态里(授权面临时扩大,FR-25.6 / AC-G22) */
|
|
813
|
+
elevated?: boolean;
|
|
814
|
+
/** 本次操作新打开的模态 */
|
|
815
|
+
elevatedModal?: string;
|
|
816
|
+
/** 当前态已是目标态,未执行任何操作(FR-25.4) */
|
|
817
|
+
noop?: boolean;
|
|
565
818
|
/** 非密码类控件填入的值;密码类控件**整个字段不存在** */
|
|
566
819
|
value?: string;
|
|
567
820
|
reason?: string;
|
|
@@ -574,7 +827,7 @@ interface PageActionUi {
|
|
|
574
827
|
}
|
|
575
828
|
interface PageActionPolicyOptions {
|
|
576
829
|
/** 宿主声明的可操作范围;`include` 为空即整个能力不可用 */
|
|
577
|
-
scope:
|
|
830
|
+
scope: PageActionScopeInput;
|
|
578
831
|
executor: PageActionExecutor;
|
|
579
832
|
ui: PageActionUi;
|
|
580
833
|
/** FR-23.3:每次操作写审计。不注入即不留痕,装配方要自己承担这个选择 */
|
|
@@ -600,9 +853,23 @@ declare class PageActionPolicy {
|
|
|
600
853
|
constructor(options: PageActionPolicyOptions);
|
|
601
854
|
/** 白名单为空即不可用(FR-23.1):宿主没声明范围就没有这个能力 */
|
|
602
855
|
get enabled(): boolean;
|
|
603
|
-
get scope():
|
|
856
|
+
get scope(): PageActionScopeInput;
|
|
604
857
|
/** 最近的操作记录(只读展示用),新的在前 */
|
|
605
858
|
get records(): readonly PageActionRecord[];
|
|
859
|
+
/**
|
|
860
|
+
* 目标是不是密码类控件(分册 30)。与确认卡上把值打成掩码用的是**同一个判定**,
|
|
861
|
+
* 不另立一套敏感字段清单。
|
|
862
|
+
*
|
|
863
|
+
* 读的是 `act()` 当时记下的结论而不是事后重查:提交或重绘后句柄会失效,
|
|
864
|
+
* 重查就会把一次普通填写误判成敏感、把内容丢掉。没操作过的句柄才现查,
|
|
865
|
+
* 查不到按敏感:不知道就别留存。
|
|
866
|
+
*/
|
|
867
|
+
isSecretTarget(ref: string): boolean;
|
|
868
|
+
/**
|
|
869
|
+
* `act()` 当时看到的目标身份(分册 30)。句柄只在本次感知内有效,
|
|
870
|
+
* 只留句柄等于留了一个换次运行就失效的引用;角色与可访问名才是可重放的那部分。
|
|
871
|
+
*/
|
|
872
|
+
rememberedTarget(ref: string): PageActionTarget | undefined;
|
|
606
873
|
act(request: PageActionRequest): Promise<PageActionOutcome>;
|
|
607
874
|
}
|
|
608
875
|
//#endregion
|
|
@@ -629,4 +896,4 @@ declare function createPageActionToolSource(options: PageActionToolSourceOptions
|
|
|
629
896
|
*/
|
|
630
897
|
declare const PAGE_ACTION_SYSTEM_PROMPT: string;
|
|
631
898
|
//#endregion
|
|
632
|
-
export {
|
|
899
|
+
export { PerceptionScope as $, PageActionKind as A, PageActionUi as B, MANAGE_TODO_TOOL as C, createPageActionToolSource as Ct, PERCEIVE_PAGE_TOOL as D, toActionFrameScopes as Dt, PAGE_ACTION_TOOL as E, createTodoToolSource as Et, PageActionRequest as F, PagePerceptionToolSourceOptions as G, PagePerceptionPolicy as H, PageActionScope as I, PerceivedNode as J, ParentBudget as K, PageActionScopeInput as L, PageActionPolicy as M, PageActionPolicyOptions as N, PERCEPTION_SYSTEM_PROMPT as O, toFrameScopes as Ot, PageActionRecord as P, PerceptionResult as Q, PageActionTarget as R, ImageCaptureBudget as S, createHttpDataSourceTransport as St, PAGE_ACTION_SYSTEM_PROMPT as T, createSkillGenerationToolSource as Tt, PagePerceptionPolicyOptions as U, PageAuditSink as V, PagePerceptionReader as W, PerceptionCaptureOptions as X, PerceptionAuditSink as Y, PerceptionRecord as Z, FrameNote as _, TodoListener as _t, DataSourceDef as a, SkillGenerationPolicy as at, GeneratedSkillDraft as b, TodoToolSourceOptions as bt, DataSourcePolicyOptions as c, SkillGeneratorOptions as ct, DelegationBudget as d, SubAgentRunInput as dt, PerceptionScopeInput as et, DelegationOrchestrator as f, SubAgentRunner as ft, DelegationToolSourceOptions as g, TodoList as gt, DelegationResult as h, TodoItem as ht, DataSourceAuditSink as i, SkillGenerationOutcome as it, PageActionOutcome as j, PageActionExecutor as k, withDelegationOrigin as kt, DataSourceRecord as l, SkillTraceEvidence as lt, DelegationRequest as m, TodoEvent as mt, DELEGATE_TASK_TOOL as n, SkillCandidateSink as nt, DataSourceKind as o, SkillGenerationToolSourceOptions as ot, DelegationOrchestratorOptions as p, TODO_SYSTEM_PROMPT as pt, PerceivedImage as q, DELEGATION_SYSTEM_PROMPT as r, SkillGenerationMessages as rt, DataSourcePolicy as s, SkillGenerator as st, ActionFrameScope as t, SKILL_GENERATION_SYSTEM_PROMPT as tt, DataSourceTransport as u, SkillTraceEvidenceStep as ut, FrameScope as v, TodoStatus as vt, PAGE_ACTION_KINDS as w, createPagePerceptionToolSource as wt, HttpDataSourceOptions as x, createDelegationToolSource as xt, GENERATE_SKILL_TOOL as y, TodoStore as yt, PageActionToolSourceOptions as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { $ as SignatureAuditSink, $t as signaturePayloadBytes, A as extractSkillCandidate, At as buildManifest, B as JsonSchema, Bt as jsonRenderer, C as UiSpecActionCapability, Ct as VerifyResult, D as UiSpecSnapshot, Dt as assertSafePathSegment, E as UiSpecPatch, Et as assertRemoteUrlAllowed, F as DEFAULT_ARCHIVE_LIMITS, Ft as detectSkillArchiveShapeFromFs, G as RemoteUrlPolicy, Gt as parseSkillPackManifest, H as MemoryFS, Ht as messageOf, I as DiscoveryResult, It as escapeXml, J as SKILL_MANIFEST_FILE, Jt as renderAvailableSkillsXml, K as SIGNATURE_SCHEMA_VERSION, Kt as readResponseWithLimit, L as FileStat, Lt as exportSkills, M as ArchiveLimits, Mt as checkSkillRules, N as CatalogRenderer, Nt as computeDigest, O as UiSurfaceActionRequest, Ot as atomicWriteText, P as CryptoKeyLike, Pt as detectSkillArchiveShape, Q as SKILL_SIGNATURE_FILE, Qt as signSkill, R as FileSystemProvider, Rt as isAtomicTempPath, S as UiBridge, St as ValidationReport, T as UiSpecEvent, Tt as WebSkillErrorCode, U as Page, Ut as normalizePath, V as MANIFEST_EXCLUDED_FILES, Vt as keyIdOf, W as PageQuery, Wt as parseSkillMarkdown, X as SKILL_NAME_PATTERN, Xt as resolveArchiveLimits, Y as SKILL_NAME_MAX_LENGTH, Yt as renderCatalogJson, Z as SKILL_PACK_FILE, Zt as resolveInsideRoot, _ as LlmToolSpec, _t as SkillsLockfile, a as InteractionOrigin, an as xmlRenderer, at as SkillDiscovery, b as RenderResultRequest, bt as UiSpecNode, c as InteractionResponse, ct as SkillIssue, d as LlmContentPart, dt as SkillManifest, en as stripArchiveRoot, et as SignatureVerdict, f as LlmMessage, ft as SkillMetadata, g as LlmToolCall, gt as SkillSource, h as LlmTokenUsage, ht as SkillSignature, i as FormField, in as verifySkillSignature, it as SkillCatalogEntry, j as ATOMIC_TMP_SUFFIX_PATTERN, jt as checkDependencyCycles, k as UiSurfaceActionResponse, kt as buildCatalog, l as LlmClient, lt as SkillLocation, m as LlmStreamEvent, mt as SkillReader, n as ArtifactStore, nn as validateSkills, nt as SkillArchiveShape, o as InteractionPolicy, ot as SkillDocument, p as LlmResponse, pt as SkillPackManifest, q as SKILLS_LOCKFILE, qt as readSkillSignature, r as ChartSpec, rn as verifyManifest, rt as SkillCatalog, s as InteractionRequest, st as SkillInstallSource, t as Artifact, tn as unzipWithLimits, tt as SkillArchiveDetection, u as LlmCompleteInput, ut as SkillManagerPort, v as MemoryStore, vt as TrustedKey, w as UiSpecDrafts, wt as WebSkillError, x as SkillCandidateMarker, xt as UnsignedPolicy, y as RenderBlock, yt as TrustedKeyStore, z as FsTrustedKeyStore, zt as isValidSkillName } from "./types-
|
|
2
|
-
import { $ as
|
|
1
|
+
import { $ as SignatureAuditSink, $t as signaturePayloadBytes, A as extractSkillCandidate, At as buildManifest, B as JsonSchema, Bt as jsonRenderer, C as UiSpecActionCapability, Ct as VerifyResult, D as UiSpecSnapshot, Dt as assertSafePathSegment, E as UiSpecPatch, Et as assertRemoteUrlAllowed, F as DEFAULT_ARCHIVE_LIMITS, Ft as detectSkillArchiveShapeFromFs, G as RemoteUrlPolicy, Gt as parseSkillPackManifest, H as MemoryFS, Ht as messageOf, I as DiscoveryResult, It as escapeXml, J as SKILL_MANIFEST_FILE, Jt as renderAvailableSkillsXml, K as SIGNATURE_SCHEMA_VERSION, Kt as readResponseWithLimit, L as FileStat, Lt as exportSkills, M as ArchiveLimits, Mt as checkSkillRules, N as CatalogRenderer, Nt as computeDigest, O as UiSurfaceActionRequest, Ot as atomicWriteText, P as CryptoKeyLike, Pt as detectSkillArchiveShape, Q as SKILL_SIGNATURE_FILE, Qt as signSkill, R as FileSystemProvider, Rt as isAtomicTempPath, S as UiBridge, St as ValidationReport, T as UiSpecEvent, Tt as WebSkillErrorCode, U as Page, Ut as normalizePath, V as MANIFEST_EXCLUDED_FILES, Vt as keyIdOf, W as PageQuery, Wt as parseSkillMarkdown, X as SKILL_NAME_PATTERN, Xt as resolveArchiveLimits, Y as SKILL_NAME_MAX_LENGTH, Yt as renderCatalogJson, Z as SKILL_PACK_FILE, Zt as resolveInsideRoot, _ as LlmToolSpec, _t as SkillsLockfile, a as InteractionOrigin, an as xmlRenderer, at as SkillDiscovery, b as RenderResultRequest, bt as UiSpecNode, c as InteractionResponse, ct as SkillIssue, d as LlmContentPart, dt as SkillManifest, en as stripArchiveRoot, et as SignatureVerdict, f as LlmMessage, ft as SkillMetadata, g as LlmToolCall, gt as SkillSource, h as LlmTokenUsage, ht as SkillSignature, i as FormField, in as verifySkillSignature, it as SkillCatalogEntry, j as ATOMIC_TMP_SUFFIX_PATTERN, jt as checkDependencyCycles, k as UiSurfaceActionResponse, kt as buildCatalog, l as LlmClient, lt as SkillLocation, m as LlmStreamEvent, mt as SkillReader, n as ArtifactStore, nn as validateSkills, nt as SkillArchiveShape, o as InteractionPolicy, ot as SkillDocument, p as LlmResponse, pt as SkillPackManifest, q as SKILLS_LOCKFILE, qt as readSkillSignature, r as ChartSpec, rn as verifyManifest, rt as SkillCatalog, s as InteractionRequest, st as SkillInstallSource, t as Artifact, tn as unzipWithLimits, tt as SkillArchiveDetection, u as LlmCompleteInput, ut as SkillManagerPort, v as MemoryStore, vt as TrustedKey, w as UiSpecDrafts, wt as WebSkillError, x as SkillCandidateMarker, xt as UnsignedPolicy, y as RenderBlock, yt as TrustedKeyStore, z as FsTrustedKeyStore, zt as isValidSkillName } from "./types-DLctJep_-B5G4uk2u.js";
|
|
2
|
+
import { $ as LifecycleHook, $n as isUnsupportedRunSnapshot, $t as SkillRouter, A as DocxTextExtractor, An as UserProfileImportDiff, Ar as validateUiSpecNode, At as RunTraceSummary, B as FsRunTraceStore, Bn as createScriptContext, Bt as ScriptExecutionContext, C as CapabilityApproval, Cn as USER_PROFILE_NO_INVENTION_RULE, Cr as summarizeRunUsage, Ct as RunSnapshotStore, D as DEFAULT_MAX_DOCUMENT_BYTES, Dn as UserProfile, Dr as toRecordDigests, Dt as RunTraceFilter, E as DEFAULT_MAX_DATA_SOURCE_BYTES, En as UnsupportedRunSnapshot, Er as toLlmToolSpec, Et as RunTraceFile, F as ExternalToolSource, Fn as WebSkillRuntimeDeps, Ft as RuntimeSessionHandle, G as GoogleGenAiClientConfig, Gn as extractTodoTraceEvents, Gt as SerializingMemoryStore, H as FsToolStepStore, Hn as diffUserProfile, Ht as SealOptions, I as FS_SESSION_PAGE_SIZE, In as appendBehaviorRecords, It as SENSITIVE_ANNOTATION, J as InstalledSkillManifest, Jn as formatSkillScriptManifest, Jt as SessionRecord, K as HookRunner, Kn as extractUiSpecEvents, Kt as SessionListPage, L as FsArtifactStore, Ln as applyUserProfileImport, Lt as SESSION_SCHEMA_VERSION, M as EventBus, Mn as VercelToolSpec, Mt as RuntimePhase, N as ExecuteLifecycleData, Nn as WebSkillApi, Nt as RuntimeRun, O as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, On as UserProfileEntry, Or as toVercelToolSpecs, Ot as RunTraceMetrics, P as ExternalSkillProvider, Pn as WebSkillRuntime, Pt as RuntimeSession, Q as LifecycleEventInit, Qn as isNetworkAllowed, Qt as SkillOutcomeReporter, R as FsMemoryStore, Rn as bridgeError, Rt as SUPPORTED_DOCUMENT_MIME, S as BridgeResponse, Sn as USER_PROFILE_KEY, Sr as sealToolCallPairs, St as RunSnapshotListEntry, T as DEFAULT_LOOP_LIMITS, Tn as USER_PROFILE_REFINE_PROMPT, Tr as textParts, Tt as RunToolCall, U as FullDisclosureRouter, Un as exportUserProfile, Ut as SealRecord, V as FsSessionStore, Vn as createWebSkillApi, Vt as ScriptExecutor, W as GoogleGenAiClient, Wn as extractChartSpec, Wt as SealResult, X as InteractLifecycleData, Xn as fromVercelStreamPart, Xt as SkillFailureReport, Y as IntegrityVerdict, Yn as fromVercelResult, Yt as SessionStore, Z as LifecycleEvent, Zn as interruptedToolResult, Zt as SkillIntegrityGuard, _ as BehaviorRecordKind, _n as TraceEvent, _r as resolveToolName, _t as RouteLifecycleData, a as ASK_USER_TOOL, an as TerminalLifecycleData, ar as normalizeErrorCode, at as OpenAiCompatibleClient, b as BridgeCapability, bn as UNSUPPORTED_DOCUMENT_MESSAGE, br as schemaToForm, bt as RunResult, c as AgentLoop, cn as ToolContent, cr as parseBridgeRequest, ct as READ_LINKED_DOCUMENT_TOOL, d as AnthropicClient, dn as ToolResult, dr as readBehaviorRecords, dt as READ_SKILL_FILE_TOOL, en as SkillScriptDescriptor, er as listSkillScripts, et as LifecycleHookContext, f as AnthropicClientConfig, fn as ToolStepReader, fr as readProfileEntries, ft as READ_SKILL_FILE_TOOL_NAME, g as BehaviorRecord, gn as TraceClock, gr as renderUserProfileContext, gt as RefineUserProfileInput, h as BEHAVIOR_RECORDS_KEY, hn as ToolStepTrust, hr as refineUserProfile, ht as RedactedArgs, i as ASK_USER_MAX_FIELDS, in as TEXT_BUDGETED_CONTENT_TYPES, ir as networkUrlHost, it as NetworkPolicy, j as EMPTY_USER_PROFILE, jn as UserProfileLimits, jt as RunUsageSummary, k as DEFAULT_USER_PROFILE_LIMITS, kn as UserProfileExport, kr as validateUiSpecEvent, kt as RunTraceStore, l as AgentLoopConfig, ln as ToolDefinition, lr as parseUserProfileExport, lt as READ_LINKED_DOCUMENT_TOOL_NAME, m as ApprovalScope, mn as ToolStepStore, mr as redactToolStepArgs, mt as RUN_TRACE_SCHEMA_VERSION, n as ASK_USER_FIELD_TYPES, nn as SkillStateGuard, nr as mergeProfileEntries, nt as LinkedDocumentReader, o as ASK_USER_TOOL_NAME, on as TextualToolContent, or as normalizeToolContent, ot as OpenAiCompatibleClientConfig, p as ApprovalDecision, pn as ToolStepRecord, pr as readUserProfile, pt as RUN_SNAPSHOT_SCHEMA_VERSION, q as HookRunnerOptions, qn as findUnpairedToolCalls, qt as SessionMeta, r as ASK_USER_INPUT_SCHEMA, rn as SkillSuccessReport, rr as networkPolicyLibSource, rt as MAX_TOOL_STEP_ARG_BYTES, s as ActivateLifecycleData, sn as TodoTraceEvent, sr as normalizeToolError, st as ProgressiveRouter, t as ALLOWED_TOOLS_EXCLUSION_REASON, tn as SkillScriptSchemaSource, tr as mergeCatalogEntries, tt as LifecycleListener, u as AgentLoopDeps, un as ToolResolution, ur as partsToText, ut as READ_SKILL_FILE_INPUT_SCHEMA, v as BehaviorScene, vn as TraceEventType, vr as sampleBehaviorRecords, vt as RouteResult, w as CapabilityMode, wn as USER_PROFILE_PROMPT_HEADER, wr as summarizeToolCalls, wt as RunTerminationReason, x as BridgeRequest, xn as USER_PROFILE_EXPORT_VERSION, xr as scriptToolName, xt as RunSnapshot, y as BridgeCapabilities, yn as TraceRecorder, yr as schemaSourceLabel, yt as RunLimitErrorDetails, z as FsRunSnapshotStore, zn as buildRenderResult, zt as SchemaInferer } from "./index-C9pzXLKy.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.11.0";
|
|
10
10
|
//#endregion
|
|
11
|
-
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, type ActivateLifecycleData, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, AnthropicClient, type AnthropicClientConfig, type ApprovalDecision, type ApprovalScope, type ArchiveLimits, type Artifact, type ArtifactStore, 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 CryptoKeyLike, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_USER_PROFILE_LIMITS, type DiscoveryResult, EMPTY_USER_PROFILE, EventBus, type ExecuteLifecycleData, type ExternalSkillProvider, type ExternalToolSource, FS_SESSION_PAGE_SIZE, type FileStat, type FileSystemProvider, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, type GoogleGenAiClientConfig, HookRunner, type HookRunnerOptions, 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 LlmClient, type LlmCompleteInput, type LlmContentPart, type LlmMessage, type LlmResponse, type LlmStreamEvent, type LlmTokenUsage, type LlmToolCall, type LlmToolSpec, MANIFEST_EXCLUDED_FILES, MemoryFS, type MemoryStore, type NetworkPolicy, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, type Page, type PageQuery, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, 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 RunUsageSummary, type RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, SDK_VERSION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, 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 TerminalLifecycleData, type TextualToolContent, type TodoTraceEvent, type ToolContent, type ToolDefinition, type ToolResolution, type ToolResult, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type TrustedKey, type TrustedKeyStore, 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 UserProfile, type UserProfileEntry, type UserProfileExport, type UserProfileImportDiff, type UserProfileLimits, type ValidationReport, type VercelToolSpec, type VerifyResult, type WebSkillApi, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, findUnpairedToolCalls, 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, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, sampleBehaviorRecords, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, 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, type ActivateLifecycleData, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, AnthropicClient, type AnthropicClientConfig, type ApprovalDecision, type ApprovalScope, type ArchiveLimits, type Artifact, type ArtifactStore, 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 CryptoKeyLike, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_MAX_DATA_SOURCE_BYTES, DEFAULT_MAX_DOCUMENT_BYTES, DEFAULT_MAX_DOCUMENT_TEXT_BYTES, DEFAULT_USER_PROFILE_LIMITS, type DiscoveryResult, type DocxTextExtractor, EMPTY_USER_PROFILE, EventBus, type ExecuteLifecycleData, type ExternalSkillProvider, type ExternalToolSource, FS_SESSION_PAGE_SIZE, type FileStat, type FileSystemProvider, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, type GoogleGenAiClientConfig, HookRunner, type HookRunnerOptions, 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, 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 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, 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, TEXT_BUDGETED_CONTENT_TYPES, type TerminalLifecycleData, type TextualToolContent, type TodoTraceEvent, type ToolContent, type ToolDefinition, 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, 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 UserProfile, type UserProfileEntry, type UserProfileExport, type UserProfileImportDiff, type UserProfileLimits, type ValidationReport, type VercelToolSpec, type VerifyResult, type WebSkillApi, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, findUnpairedToolCalls, 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, sampleBehaviorRecords, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as jsonRenderer, B as resolveArchiveLimits, C as computeDigest, D as exportSkills, E as escapeXml, F as parseSkillPackManifest, G as unzipWithLimits, H as signSkill, I as readResponseWithLimit, J as verifySkillSignature, K as validateSkills, L as readSkillSignature, M as messageOf, N as normalizePath, O as isAtomicTempPath, P as parseSkillMarkdown, R as renderAvailableSkillsXml, S as checkSkillRules, T as detectSkillArchiveShapeFromFs, U as signaturePayloadBytes, V as resolveInsideRoot, W as stripArchiveRoot, Y as xmlRenderer, _ as assertSafePathSegment, a as MemoryFS, b as buildManifest, c as SKILL_MANIFEST_FILE, d as SKILL_PACK_FILE, f as SKILL_SIGNATURE_FILE, g as assertRemoteUrlAllowed, h as WebSkillError, i as MANIFEST_EXCLUDED_FILES, j as keyIdOf, k as isValidSkillName, l as SKILL_NAME_MAX_LENGTH, m as SkillReader, n as DEFAULT_ARCHIVE_LIMITS, o as SIGNATURE_SCHEMA_VERSION, p as SkillDiscovery, q as verifyManifest, r as FsTrustedKeyStore, s as SKILLS_LOCKFILE, t as ATOMIC_TMP_SUFFIX_PATTERN, u as SKILL_NAME_PATTERN, v as atomicWriteText, w as detectSkillArchiveShape, x as checkDependencyCycles, y as buildCatalog, z as renderCatalogJson } from "./dist-Bev6i6Ip.js";
|
|
2
2
|
import { a as textParts, n as partsToText } from "./memoryArtifactStore-52Zn9npI-LbCQaqyx.js";
|
|
3
|
-
import { $ as
|
|
3
|
+
import { $ as bridgeError, A as ProgressiveRouter, At as refineUserProfile, B as SUPPORTED_DOCUMENT_MIME, Bt as toLlmToolSpec, C as FsSessionStore, Ct as normalizeToolError, D as HookRunner, Dt as readProfileEntries, E as GoogleGenAiClient, Et as readBehaviorRecords, F as READ_SKILL_FILE_TOOL_NAME, Ft as schemaToForm, G as USER_PROFILE_EXPORT_VERSION, H as TEXT_BUDGETED_CONTENT_TYPES, Ht as toVercelToolSpecs, I as RUN_SNAPSHOT_SCHEMA_VERSION, It as scriptToolName, J as USER_PROFILE_PROMPT_HEADER, K as USER_PROFILE_KEY, L as RUN_TRACE_SCHEMA_VERSION, Lt as sealToolCallPairs, M as READ_LINKED_DOCUMENT_TOOL_NAME, Mt as resolveToolName, N as READ_SKILL_FILE_INPUT_SCHEMA, Nt as sampleBehaviorRecords, O as MAX_TOOL_STEP_ARG_BYTES, Ot as readUserProfile, P as READ_SKILL_FILE_TOOL, Pt as schemaSourceLabel, Q as applyUserProfileImport, R as SENSITIVE_ANNOTATION, Rt as summarizeRunUsage, S as FsRunTraceStore, St as normalizeToolContent, T as FullDisclosureRouter, Tt as parseUserProfileExport, U as TraceRecorder, Ut as validateUiSpecEvent, V as SerializingMemoryStore, Vt as toRecordDigests, W as UNSUPPORTED_DOCUMENT_MESSAGE, Wt as validateUiSpecNode, X as WebSkillRuntime, Y as USER_PROFILE_REFINE_PROMPT, Z as appendBehaviorRecords, _ as EventBus, _t as mergeCatalogEntries, a as ASK_USER_TOOL, at as extractChartSpec, b as FsMemoryStore, bt as networkUrlHost, c as AnthropicClient, ct as extractUiSpecEvents, d as DEFAULT_LOOP_LIMITS, dt as fromVercelResult, et as buildRenderResult, f as DEFAULT_MAX_DATA_SOURCE_BYTES, ft as fromVercelStreamPart, g as EMPTY_USER_PROFILE, gt as listSkillScripts, h as DEFAULT_USER_PROFILE_LIMITS, ht as isUnsupportedRunSnapshot, i as ASK_USER_MAX_FIELDS, it as exportUserProfile, j as READ_LINKED_DOCUMENT_TOOL, jt as renderUserProfileContext, k as OpenAiCompatibleClient, kt as redactToolStepArgs, l as BEHAVIOR_RECORDS_KEY, lt as findUnpairedToolCalls, m as DEFAULT_MAX_DOCUMENT_TEXT_BYTES, mt as isNetworkAllowed, n as ASK_USER_FIELD_TYPES, nt as createWebSkillApi, o as ASK_USER_TOOL_NAME, ot as extractSkillCandidate, p as DEFAULT_MAX_DOCUMENT_BYTES, pt as interruptedToolResult, q as USER_PROFILE_NO_INVENTION_RULE, r as ASK_USER_INPUT_SCHEMA, rt as diffUserProfile, s as AgentLoop, st as extractTodoTraceEvents, t as ALLOWED_TOOLS_EXCLUSION_REASON, tt as createScriptContext, u as CapabilityApproval, ut as formatSkillScriptManifest, v as FS_SESSION_PAGE_SIZE, vt as mergeProfileEntries, w as FsToolStepStore, wt as parseBridgeRequest, x as FsRunSnapshotStore, xt as normalizeErrorCode, y as FsArtifactStore, yt as networkPolicyLibSource, z as SESSION_SCHEMA_VERSION, zt as summarizeToolCalls } from "./dist-sdKFgERo.js";
|
|
4
4
|
|
|
5
5
|
//#region src/version.ts
|
|
6
6
|
/** Generated by scripts/syncVersionConstant.mjs from packages/sdk/package.json. Do not edit by hand. */
|
|
@@ -8,7 +8,7 @@ import { $ as fromVercelStreamPart, A as SerializingMemoryStore, At as validateU
|
|
|
8
8
|
* Version of the published `@webskill/sdk` package, injected at build time.
|
|
9
9
|
* @stable
|
|
10
10
|
*/
|
|
11
|
-
const SDK_VERSION = "0.
|
|
11
|
+
const SDK_VERSION = "0.11.0";
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
|
-
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, ATOMIC_TMP_SUFFIX_PATTERN, AgentLoop, AnthropicClient, BEHAVIOR_RECORDS_KEY, CapabilityApproval, DEFAULT_ARCHIVE_LIMITS, DEFAULT_LOOP_LIMITS, DEFAULT_USER_PROFILE_LIMITS, EMPTY_USER_PROFILE, EventBus, FS_SESSION_PAGE_SIZE, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, HookRunner, MANIFEST_EXCLUDED_FILES, MemoryFS, OpenAiCompatibleClient, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, RUN_TRACE_SCHEMA_VERSION, SDK_VERSION, SESSION_SCHEMA_VERSION, SIGNATURE_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, SKILL_SIGNATURE_FILE, SerializingMemoryStore, SkillDiscovery, SkillReader, TraceRecorder, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, WebSkillError, WebSkillRuntime, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, findUnpairedToolCalls, 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, refineUserProfile, renderAvailableSkillsXml, renderCatalogJson, renderUserProfileContext, resolveArchiveLimits, resolveInsideRoot, resolveToolName, sampleBehaviorRecords, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
|
14
|
+
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, 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_USER_PROFILE_LIMITS, EMPTY_USER_PROFILE, EventBus, FS_SESSION_PAGE_SIZE, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FsRunTraceStore, FsSessionStore, FsToolStepStore, FsTrustedKeyStore, FullDisclosureRouter, GoogleGenAiClient, HookRunner, 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, SUPPORTED_DOCUMENT_MIME, SerializingMemoryStore, SkillDiscovery, SkillReader, TEXT_BUDGETED_CONTENT_TYPES, TraceRecorder, UNSUPPORTED_DOCUMENT_MESSAGE, USER_PROFILE_EXPORT_VERSION, USER_PROFILE_KEY, USER_PROFILE_NO_INVENTION_RULE, USER_PROFILE_PROMPT_HEADER, USER_PROFILE_REFINE_PROMPT, WebSkillError, WebSkillRuntime, appendBehaviorRecords, applyUserProfileImport, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, detectSkillArchiveShape, detectSkillArchiveShapeFromFs, diffUserProfile, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, findUnpairedToolCalls, 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, sampleBehaviorRecords, schemaSourceLabel, schemaToForm, scriptToolName, sealToolCallPairs, signSkill, signaturePayloadBytes, stripArchiveRoot, summarizeRunUsage, summarizeToolCalls, textParts, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|