@webskill/sdk 0.7.0 → 0.8.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 +1 -1
- package/dist/agent.js +1 -1
- package/dist/browser.d.ts +151 -4
- package/dist/browser.js +250 -25
- package/dist/{catalogComponents-Dr5dFMAb-DKH_7VPI.js → catalogComponents-DfxxfUvn-D55Gbb2l.js} +3435 -437
- package/dist/{dist-8oQRa8Xz.js → dist-59XlqDuv.js} +93 -6
- package/dist/{dist-DnYG2-eY.js → dist-CJqQsIm9.js} +498 -118
- package/dist/{dist-D0qW6e40.js → dist-DmI5SBBF.js} +192 -17
- package/dist/{eventTypes-DjIQpt8Y-Bj3vghj4.js → eventTypes-g1BXL6x5-CibcOftR.js} +7 -2
- package/dist/governance.d.ts +16 -3
- package/dist/governance.js +24 -5
- package/dist/{index-DkbABR43.d.ts → index-K-eewlGL.d.ts} +138 -75
- package/dist/{index-BwsK9lGk.d.ts → index-P9J2LTfU.d.ts} +163 -6
- package/dist/{index-Ba3xFtfz.d.ts → index-fLskQfAS.d.ts} +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/mcp.d.ts +8 -2
- package/dist/mcp.js +12 -2
- package/dist/{memoryArtifactStore-52Zn9npI-BMPYwvoy.js → memoryArtifactStore-52Zn9npI-upv5OWYf.js} +1 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.js +3 -3
- package/dist/{openUiLibrary-Bdrji9qK-D2LxmM-a.js → openUiLibrary-DURlAxjk-CU6AzfSW.js} +3 -3
- package/dist/{skillVersionStore-Bl-ElD45-CWPvGvoq.d.ts → skillVersionStore-Bl-ElD45-gRfSaAby.d.ts} +1 -1
- package/dist/{testing-CYTFqkDm.js → testing-BCUO5gZR.js} +2 -2
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +2 -2
- package/dist/{types-CcxRLdJG-DCXyw1US.d.ts → types-B3n0cMZu-BdcqQ35O.d.ts} +46 -6
- package/dist/ui-react.d.ts +13 -6
- package/dist/ui-react.js +153 -84
- 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-_mugzRHx-B_54vxum.js → webskillLitCatalog-DwTwSBFt-DiXXpNZA.js} +22 -3
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as UiSpecDrafts, Ct as WebSkillErrorCode, D as UiSurfaceActionRequest, H as PageQuery, I as FileSystemProvider, P as DiscoveryResult, R as JsonSchema, V as Page, _ as MemoryStore, at as SkillInstallSource, bt as ValidationReport, d as LlmContentPart, f as LlmMessage, g as LlmToolSpec, h as LlmToolCall, i as FormField, it as SkillDocument, l as LlmClient, lt as SkillManifest, m as LlmStreamEvent, n as ArtifactStore, nt as SkillCatalogEntry, o as InteractionPolicy, p as LlmResponse, r as ChartSpec, rt as SkillDiscovery, s as InteractionRequest, t as Artifact, tt as SkillCatalog, u as LlmCompleteInput, v as RenderBlock, vt as UiSpecNode, w as UiSpecEvent, x as UiBridge, y as RenderResultRequest } from "./types-B3n0cMZu-BdcqQ35O.js";
|
|
2
2
|
//#region ../runtime/dist/index.d.ts
|
|
3
3
|
//#region src/llm/parts.d.ts
|
|
4
4
|
/** 纯文本消息内容的构造快捷方式(引擎内部绝大多数消息仍是纯文本) */
|
|
@@ -6,6 +6,115 @@ declare const textParts: (text: string) => LlmContentPart[];
|
|
|
6
6
|
/** 取出 parts 中的文本(非文本分片在纯文本语境下无法表达,此处按丢弃处理——调用方须先校验) */
|
|
7
7
|
declare const partsToText: (parts: readonly LlmContentPart[] | undefined) => string;
|
|
8
8
|
//#endregion
|
|
9
|
+
//#region src/tools/types.d.ts
|
|
10
|
+
interface ToolDefinition {
|
|
11
|
+
/** LLM 可见名:脚本工具为 `${skillName}__${scriptName}` */
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
/** 缺省即 schemaUnavailable 标记(推导见 deferred-items D2) */
|
|
15
|
+
inputSchema?: JsonSchema;
|
|
16
|
+
source: 'script' | 'mcp' | 'webmcp' | 'builtin';
|
|
17
|
+
skillName?: string;
|
|
18
|
+
}
|
|
19
|
+
/** 文本型分片(参与 `toolResultMaxBytes` 截断) @experimental */
|
|
20
|
+
type TextualToolContent = {
|
|
21
|
+
type: 'text' | 'json';
|
|
22
|
+
text?: string;
|
|
23
|
+
data?: unknown;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* 工具结果的内容分片(0.6.0 §1.1)。
|
|
27
|
+
* `image` 分片不参与 `toolResultMaxBytes` 截断——那份预算是给文本的,
|
|
28
|
+
* base64 图像另有 `maxImageBytes` / `maxImagesPerMessage` 预算,混算会让任一方失效。
|
|
29
|
+
* `text?: undefined` 是故意的:图像分片没有文本,但让调用方能直接读 `part.text` 而不用先窄化。
|
|
30
|
+
* @experimental
|
|
31
|
+
*/
|
|
32
|
+
type ToolContent = TextualToolContent | {
|
|
33
|
+
type: 'image';
|
|
34
|
+
mimeType: string;
|
|
35
|
+
data: string;
|
|
36
|
+
id: string;
|
|
37
|
+
text?: undefined;
|
|
38
|
+
};
|
|
39
|
+
interface ToolResult {
|
|
40
|
+
ok: boolean;
|
|
41
|
+
content: ToolContent[];
|
|
42
|
+
/** `data` 供宿主编程处理;`message` 是模型实际会读的那一份,两者都要写全 */
|
|
43
|
+
error?: {
|
|
44
|
+
code: string;
|
|
45
|
+
message: string;
|
|
46
|
+
data?: Record<string, unknown>;
|
|
47
|
+
};
|
|
48
|
+
artifacts?: Artifact[];
|
|
49
|
+
}
|
|
50
|
+
interface ScriptExecutionContext {
|
|
51
|
+
skillName: string;
|
|
52
|
+
runId: string;
|
|
53
|
+
readReference(relativePath: string): Promise<string>;
|
|
54
|
+
writeArtifact(path: string, content: string | Uint8Array, options?: {
|
|
55
|
+
mimeType?: string;
|
|
56
|
+
}): Promise<Artifact>;
|
|
57
|
+
/** 脚本主动请求人在环确认;策略见 InteractionPolicy.confirmations */
|
|
58
|
+
confirm?(message: string): Promise<boolean>;
|
|
59
|
+
/** 宿主侧降级 warning 出口(网络阻断等;引擎接线到 run.warning trace) */
|
|
60
|
+
onWarning?(message: string): void;
|
|
61
|
+
}
|
|
62
|
+
/** Schema 推导 port:纯文本静态分析脚本源码 → JSON Schema(best-effort) */
|
|
63
|
+
interface SchemaInferer {
|
|
64
|
+
inferSchemaFromSource(source: string, options?: {
|
|
65
|
+
fileName?: string;
|
|
66
|
+
}): JsonSchema | undefined;
|
|
67
|
+
}
|
|
68
|
+
interface ScriptExecutor {
|
|
69
|
+
loadDefinition(skillRoot: string, scriptName: string): Promise<ToolDefinition>;
|
|
70
|
+
execute(input: {
|
|
71
|
+
skillRoot: string;
|
|
72
|
+
scriptName: string;
|
|
73
|
+
args: Record<string, unknown>;
|
|
74
|
+
context: ScriptExecutionContext;
|
|
75
|
+
timeoutMs: number;
|
|
76
|
+
}): Promise<ToolResult>;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/llm/sealToolCallPairs.d.ts
|
|
80
|
+
/**
|
|
81
|
+
* S1 消息链不变量(分册 11 §2.1):
|
|
82
|
+
*
|
|
83
|
+
* > 任何送往模型的 `LlmMessage[]`,其中每一个 `assistant.toolCalls[i].id`
|
|
84
|
+
* > 都必须有一条 `role:'tool'` 且 `toolCallId` 相同的消息。
|
|
85
|
+
*
|
|
86
|
+
* 供应商侧的差异(OpenAI 的 tool 消息 vs Anthropic 的 tool_result 块)都建立在
|
|
87
|
+
* 这个配对之上,所以补齐放在**装配之前**做一次,而不是每个客户端各做一遍。
|
|
88
|
+
*/
|
|
89
|
+
interface SealRecord {
|
|
90
|
+
callId: string;
|
|
91
|
+
toolName: string;
|
|
92
|
+
code: WebSkillErrorCode;
|
|
93
|
+
}
|
|
94
|
+
interface SealResult {
|
|
95
|
+
messages: LlmMessage[];
|
|
96
|
+
/** 补齐了哪些调用;空数组表示消息链本来就完整 */
|
|
97
|
+
sealed: readonly SealRecord[];
|
|
98
|
+
}
|
|
99
|
+
interface SealOptions {
|
|
100
|
+
/** 补齐结果里的错误码;缺省 `RUN_INTERRUPTED`(中断原因已丢失) */
|
|
101
|
+
code?: WebSkillErrorCode;
|
|
102
|
+
/** 已知的终止原因,写进模型可读的说明里 */
|
|
103
|
+
reason?: string;
|
|
104
|
+
}
|
|
105
|
+
/** 与正常工具结果同构:模型读到的是「这次调用被中断了」,而不是一个凭空消失的调用 */
|
|
106
|
+
declare function interruptedToolResult(call: LlmToolCall, options?: SealOptions): ToolResult;
|
|
107
|
+
/** 尚无 `role:'tool'` 应答的工具调用,按消息顺序 */
|
|
108
|
+
declare function findUnpairedToolCalls(messages: readonly LlmMessage[]): readonly LlmToolCall[];
|
|
109
|
+
/**
|
|
110
|
+
* 为每个未应答的工具调用补一条结构化的中断说明。
|
|
111
|
+
*
|
|
112
|
+
* 补齐消息紧跟在该 assistant 已有的 tool 兄弟之后——供应商装配按相邻块分组,
|
|
113
|
+
* 插到序列末尾会让它归属到别的 assistant 消息上。
|
|
114
|
+
* 本函数**不改写入参**,也不写盘(AC-11.8)。
|
|
115
|
+
*/
|
|
116
|
+
declare function sealToolCallPairs(messages: readonly LlmMessage[], options?: SealOptions): SealResult;
|
|
117
|
+
//#endregion
|
|
9
118
|
//#region src/llm/openAiCompatibleClient.d.ts
|
|
10
119
|
interface OpenAiCompatibleClientConfig {
|
|
11
120
|
baseUrl?: string;
|
|
@@ -120,76 +229,6 @@ declare class FullDisclosureRouter implements SkillRouter {
|
|
|
120
229
|
route(catalog: SkillCatalog): Promise<RouteResult>;
|
|
121
230
|
}
|
|
122
231
|
//#endregion
|
|
123
|
-
//#region src/tools/types.d.ts
|
|
124
|
-
interface ToolDefinition {
|
|
125
|
-
/** LLM 可见名:脚本工具为 `${skillName}__${scriptName}` */
|
|
126
|
-
name: string;
|
|
127
|
-
description?: string;
|
|
128
|
-
/** 缺省即 schemaUnavailable 标记(推导见 deferred-items D2) */
|
|
129
|
-
inputSchema?: JsonSchema;
|
|
130
|
-
source: 'script' | 'mcp' | 'webmcp' | 'builtin';
|
|
131
|
-
skillName?: string;
|
|
132
|
-
}
|
|
133
|
-
/** 文本型分片(参与 `toolResultMaxBytes` 截断) @experimental */
|
|
134
|
-
type TextualToolContent = {
|
|
135
|
-
type: 'text' | 'json';
|
|
136
|
-
text?: string;
|
|
137
|
-
data?: unknown;
|
|
138
|
-
};
|
|
139
|
-
/**
|
|
140
|
-
* 工具结果的内容分片(0.6.0 §1.1)。
|
|
141
|
-
* `image` 分片不参与 `toolResultMaxBytes` 截断——那份预算是给文本的,
|
|
142
|
-
* base64 图像另有 `maxImageBytes` / `maxImagesPerMessage` 预算,混算会让任一方失效。
|
|
143
|
-
* `text?: undefined` 是故意的:图像分片没有文本,但让调用方能直接读 `part.text` 而不用先窄化。
|
|
144
|
-
* @experimental
|
|
145
|
-
*/
|
|
146
|
-
type ToolContent = TextualToolContent | {
|
|
147
|
-
type: 'image';
|
|
148
|
-
mimeType: string;
|
|
149
|
-
data: string;
|
|
150
|
-
id: string;
|
|
151
|
-
text?: undefined;
|
|
152
|
-
};
|
|
153
|
-
interface ToolResult {
|
|
154
|
-
ok: boolean;
|
|
155
|
-
content: ToolContent[];
|
|
156
|
-
/** `data` 供宿主编程处理;`message` 是模型实际会读的那一份,两者都要写全 */
|
|
157
|
-
error?: {
|
|
158
|
-
code: string;
|
|
159
|
-
message: string;
|
|
160
|
-
data?: Record<string, unknown>;
|
|
161
|
-
};
|
|
162
|
-
artifacts?: Artifact[];
|
|
163
|
-
}
|
|
164
|
-
interface ScriptExecutionContext {
|
|
165
|
-
skillName: string;
|
|
166
|
-
runId: string;
|
|
167
|
-
readReference(relativePath: string): Promise<string>;
|
|
168
|
-
writeArtifact(path: string, content: string | Uint8Array, options?: {
|
|
169
|
-
mimeType?: string;
|
|
170
|
-
}): Promise<Artifact>;
|
|
171
|
-
/** 脚本主动请求人在环确认;策略见 InteractionPolicy.confirmations */
|
|
172
|
-
confirm?(message: string): Promise<boolean>;
|
|
173
|
-
/** 宿主侧降级 warning 出口(网络阻断等;引擎接线到 run.warning trace) */
|
|
174
|
-
onWarning?(message: string): void;
|
|
175
|
-
}
|
|
176
|
-
/** Schema 推导 port:纯文本静态分析脚本源码 → JSON Schema(best-effort) */
|
|
177
|
-
interface SchemaInferer {
|
|
178
|
-
inferSchemaFromSource(source: string, options?: {
|
|
179
|
-
fileName?: string;
|
|
180
|
-
}): JsonSchema | undefined;
|
|
181
|
-
}
|
|
182
|
-
interface ScriptExecutor {
|
|
183
|
-
loadDefinition(skillRoot: string, scriptName: string): Promise<ToolDefinition>;
|
|
184
|
-
execute(input: {
|
|
185
|
-
skillRoot: string;
|
|
186
|
-
scriptName: string;
|
|
187
|
-
args: Record<string, unknown>;
|
|
188
|
-
context: ScriptExecutionContext;
|
|
189
|
-
timeoutMs: number;
|
|
190
|
-
}): Promise<ToolResult>;
|
|
191
|
-
}
|
|
192
|
-
//#endregion
|
|
193
232
|
//#region src/tools/toolResolver.d.ts
|
|
194
233
|
type ToolResolution = {
|
|
195
234
|
kind: 'script';
|
|
@@ -400,7 +439,7 @@ type LifecycleHook = (ctx: LifecycleHookContext) => Promise<void | {
|
|
|
400
439
|
}>;
|
|
401
440
|
//#endregion
|
|
402
441
|
//#region src/trace/types.d.ts
|
|
403
|
-
type TraceEventType = 'skill.routed' | 'skill.activated' | 'skill.integrity-failed' | 'llm.request' | 'llm.response' | 'tool.started' | 'tool.completed' | 'tool.failed' | 'tool.denied' | 'artifact.created' | 'ui.requested' | 'ui.resumed' | 'ui.surface-action.requested' | 'ui.surface-action.resolved' | 'ui.rendered' | 'todo.created' | 'todo.updated' | 'todo.cleared' | 'run.warning' | 'run.completed' | 'run.cancelled' | 'run.failed' | 'run.resumed';
|
|
442
|
+
type TraceEventType = 'skill.routed' | 'skill.activated' | 'skill.integrity-failed' | 'llm.request' | 'llm.response' | 'tool.started' | 'tool.completed' | 'tool.failed' | 'tool.denied' | 'artifact.created' | 'ui.requested' | 'ui.resumed' | 'ui.surface-action.requested' | 'ui.surface-action.resolved' | 'ui.rendered' | 'ui.degraded' | 'todo.created' | 'todo.updated' | 'todo.cleared' | 'run.warning' | 'run.completed' | 'run.cancelled' | 'run.failed' | 'run.resumed';
|
|
404
443
|
interface TraceEvent {
|
|
405
444
|
id: string;
|
|
406
445
|
runId: string;
|
|
@@ -875,6 +914,19 @@ declare function exportUserProfile(profile: UserProfile, options: {
|
|
|
875
914
|
/** 解析并校验导入内容(FR-19.7)。含凭据是**拒绝**而不是忽略 @experimental */
|
|
876
915
|
declare function parseUserProfileExport(raw: unknown): UserProfileExport;
|
|
877
916
|
/** 导入前给用户看的差异(FR-19.7):新增哪些、覆盖哪些 @experimental */
|
|
917
|
+
/**
|
|
918
|
+
* 导入前的差异预览(FR-19.7)。`origin` 来自导入文件,
|
|
919
|
+
* 让用户在确认前能看清这份画像是从哪个站点带过来的。
|
|
920
|
+
*
|
|
921
|
+
* 类型放在 runtime:导入入口同时存在于 chatbot 与 console 两侧,
|
|
922
|
+
* 写在其中任一宿主包里都会逼出反向依赖。
|
|
923
|
+
* @experimental
|
|
924
|
+
*/
|
|
925
|
+
interface UserProfileImportDiff {
|
|
926
|
+
added: readonly UserProfileEntry[];
|
|
927
|
+
updated: readonly UserProfileEntry[];
|
|
928
|
+
origin: string;
|
|
929
|
+
}
|
|
878
930
|
declare function diffUserProfile(current: UserProfile, incoming: UserProfileExport): {
|
|
879
931
|
added: readonly UserProfileEntry[];
|
|
880
932
|
updated: readonly UserProfileEntry[];
|
|
@@ -1096,13 +1148,13 @@ interface ExternalSkillProvider {
|
|
|
1096
1148
|
declare function mergeCatalogEntries(localEntries: SkillCatalogEntry[], providerEntries: SkillCatalogEntry[]): SkillCatalogEntry[];
|
|
1097
1149
|
//#endregion
|
|
1098
1150
|
//#region src/engine/snapshot.d.ts
|
|
1099
|
-
declare const RUN_SNAPSHOT_SCHEMA_VERSION =
|
|
1151
|
+
declare const RUN_SNAPSHOT_SCHEMA_VERSION = 3;
|
|
1100
1152
|
/**
|
|
1101
1153
|
* interrupted(等待用户)状态点的可恢复快照(D3 收窄版)
|
|
1102
1154
|
* @experimental
|
|
1103
1155
|
*/
|
|
1104
1156
|
interface RunSnapshot {
|
|
1105
|
-
schemaVersion:
|
|
1157
|
+
schemaVersion: 3;
|
|
1106
1158
|
runId: string;
|
|
1107
1159
|
sessionId: string;
|
|
1108
1160
|
userPrompt: string;
|
|
@@ -1541,6 +1593,8 @@ interface SessionMeta {
|
|
|
1541
1593
|
titleLocked?: boolean;
|
|
1542
1594
|
/** 归档标记:默认 `list()` 不返回 */
|
|
1543
1595
|
archived?: boolean;
|
|
1596
|
+
/** 会话级的模型选择;缺省即回落全局默认(FR-29.1) */
|
|
1597
|
+
modelId?: string;
|
|
1544
1598
|
messageCount: number;
|
|
1545
1599
|
}
|
|
1546
1600
|
/**
|
|
@@ -1593,6 +1647,13 @@ interface SessionStore<TMessage = unknown> {
|
|
|
1593
1647
|
lock?: boolean;
|
|
1594
1648
|
}): Promise<void>;
|
|
1595
1649
|
setArchived(id: string, archived: boolean): Promise<void>;
|
|
1650
|
+
/** 传 `undefined` 即清掉会话级选择,回落全局默认 */
|
|
1651
|
+
setModel(id: string, modelId: string | undefined): Promise<void>;
|
|
1652
|
+
/**
|
|
1653
|
+
* 只取元信息,**不把消息拉过端口**。
|
|
1654
|
+
* 磁盘那侧仍是整文件读(D25),但选会话这条热路径不应因为读一个字段而抬整段历史。
|
|
1655
|
+
*/
|
|
1656
|
+
getMeta(id: string): Promise<SessionMeta | undefined>;
|
|
1596
1657
|
delete(id: string): Promise<void>;
|
|
1597
1658
|
}
|
|
1598
1659
|
/**
|
|
@@ -1626,7 +1687,9 @@ declare class FsSessionStore<TMessage = unknown> implements SessionStore<TMessag
|
|
|
1626
1687
|
lock?: boolean;
|
|
1627
1688
|
}): Promise<void>;
|
|
1628
1689
|
setArchived(id: string, archived: boolean): Promise<void>;
|
|
1690
|
+
setModel(id: string, modelId: string | undefined): Promise<void>;
|
|
1691
|
+
getMeta(id: string): Promise<SessionMeta | undefined>;
|
|
1629
1692
|
delete(id: string): Promise<void>;
|
|
1630
1693
|
}
|
|
1631
1694
|
//#endregion
|
|
1632
|
-
export { READ_SKILL_FILE_INPUT_SCHEMA as $,
|
|
1695
|
+
export { READ_SKILL_FILE_INPUT_SCHEMA as $, scriptToolName as $n, TraceRecorder as $t, FS_SESSION_PAGE_SIZE as A, interruptedToolResult as An, SerializingMemoryStore as At, HookRunnerOptions as B, normalizeToolError as Bn, SkillScriptSchemaSource as Bt, DEFAULT_LOOP_LIMITS as C, extractChartSpec as Cn, SESSION_SCHEMA_VERSION as Ct, ExecuteLifecycleData as D, formatSkillScriptManifest as Dn, SealOptions as Dt, EventBus as E, findUnpairedToolCalls as En, ScriptExecutor as Et, FsSessionStore as F, mergeProfileEntries as Fn, SkillFailureReport as Ft, LifecycleEventInit as G, readProfileEntries as Gn, TodoTraceEvent as Gt, IntegrityVerdict as H, parseUserProfileExport as Hn, SkillSuccessReport as Ht, FullDisclosureRouter as I, networkPolicyLibSource as In, SkillIntegrityGuard as It, LifecycleListener as J, renderUserProfileContext as Jn, ToolResolution as Jt, LifecycleHook as K, readUserProfile as Kn, ToolContent as Kt, GoogleGenAiClient as L, networkUrlHost as Ln, SkillOutcomeReporter as Lt, FsMemoryStore as M, isUnsupportedRunSnapshot as Mn, SessionMeta as Mt, FsRunSnapshotStore as N, listSkillScripts as Nn, SessionRecord as Nt, ExternalSkillProvider as O, fromVercelResult as On, SealRecord as Ot, FsRunTraceStore as P, mergeCatalogEntries as Pn, SessionStore as Pt, ProgressiveRouter as Q, schemaToForm as Qn, TraceEventType as Qt, GoogleGenAiClientConfig as R, normalizeErrorCode as Rn, SkillRouter as Rt, CapabilityMode as S, exportUserProfile as Sn, RuntimeSessionHandle as St, EMPTY_USER_PROFILE as T, extractUiSpecEvents as Tn, ScriptExecutionContext as Tt, InteractLifecycleData as U, partsToText as Un, TerminalLifecycleData as Ut, InstalledSkillManifest as V, parseBridgeRequest as Vn, SkillStateGuard as Vt, LifecycleEvent as W, readBehaviorRecords as Wn, TextualToolContent as Wt, OpenAiCompatibleClient as X, sampleBehaviorRecords as Xn, TraceClock as Xt, NetworkPolicy as Y, resolveToolName as Yn, ToolResult as Yt, OpenAiCompatibleClientConfig as Z, schemaSourceLabel as Zn, TraceEvent as Zt, BridgeCapabilities as _, bridgeError as _n, RunTraceStore as _t, ActivateLifecycleData as a, UnsupportedRunSnapshot as an, toVercelToolSpecs as ar, RouteLifecycleData as at, BridgeResponse as b, createWebSkillApi as bn, RuntimeRun as bt, AgentLoopDeps as c, UserProfileExport as cn, RunResult as ct, ApprovalDecision as d, VercelToolSpec as dn, RunSnapshotStore as dt, USER_PROFILE_EXPORT_VERSION as en, sealToolCallPairs as er, READ_SKILL_FILE_TOOL as et, ApprovalScope as f, WebSkillApi as fn, RunTerminationReason as ft, BehaviorScene as g, applyUserProfileImport as gn, RunTraceMetrics as gt, BehaviorRecordKind as h, appendBehaviorRecords as hn, RunTraceFilter as ht, ASK_USER_TOOL_NAME as i, USER_PROFILE_REFINE_PROMPT as in, toRecordDigests as ir, RefineUserProfileInput as it, FsArtifactStore as j, isNetworkAllowed as jn, SessionListPage as jt, ExternalToolSource as k, fromVercelStreamPart as kn, SealResult as kt, AnthropicClient as l, UserProfileImportDiff as ln, RunSnapshot as lt, BehaviorRecord as m, WebSkillRuntimeDeps as mn, RunTraceFile as mt, ASK_USER_INPUT_SCHEMA as n, USER_PROFILE_NO_INVENTION_RULE as nn, textParts as nr, RUN_SNAPSHOT_SCHEMA_VERSION as nt, AgentLoop as o, UserProfile as on, validateUiSpecEvent as or, RouteResult as ot, BEHAVIOR_RECORDS_KEY as p, WebSkillRuntime as pn, RunToolCall as pt, LifecycleHookContext as q, refineUserProfile as qn, ToolDefinition as qt, ASK_USER_TOOL as r, USER_PROFILE_PROMPT_HEADER as rn, toLlmToolSpec as rr, RUN_TRACE_SCHEMA_VERSION as rt, AgentLoopConfig as s, UserProfileEntry as sn, validateUiSpecNode as sr, RunLimitErrorDetails as st, ALLOWED_TOOLS_EXCLUSION_REASON as t, USER_PROFILE_KEY as tn, summarizeToolCalls as tr, READ_SKILL_FILE_TOOL_NAME as tt, AnthropicClientConfig as u, UserProfileLimits as un, RunSnapshotListEntry as ut, BridgeCapability as v, buildRenderResult as vn, RunTraceSummary as vt, DEFAULT_USER_PROFILE_LIMITS as w, extractTodoTraceEvents as wn, SchemaInferer as wt, CapabilityApproval as x, diffUserProfile as xn, RuntimeSession as xt, BridgeRequest as y, createScriptContext as yn, RuntimePhase as yt, HookRunner as z, normalizeToolContent as zn, SkillScriptDescriptor as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as UiSpecSnapshot, R as JsonSchema, S as UiSpecActionCapability, c as InteractionResponse,
|
|
2
|
-
import { k as ExternalToolSource } from "./index-
|
|
1
|
+
import { E as UiSpecSnapshot, R as JsonSchema, S as UiSpecActionCapability, c as InteractionResponse, r as ChartSpec, s as InteractionRequest, v as RenderBlock, vt as UiSpecNode, x as UiBridge, y as RenderResultRequest } from "./types-B3n0cMZu-BdcqQ35O.js";
|
|
2
|
+
import { k as ExternalToolSource } from "./index-K-eewlGL.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { ComponentType, ReactNode } from "react";
|
|
5
5
|
//#region ../ui/dist/index.d.ts
|
|
@@ -15,7 +15,8 @@ interface FormModel {
|
|
|
15
15
|
interface ControlModel {
|
|
16
16
|
name: string;
|
|
17
17
|
label: string;
|
|
18
|
-
|
|
18
|
+
/** `password` 在不支持它的渲染档里必须**不渲染**,退化成文本框等于明文显示 */
|
|
19
|
+
control: 'text' | 'number' | 'boolean' | 'select' | 'textarea' | 'file' | 'password';
|
|
19
20
|
required?: boolean;
|
|
20
21
|
description?: string;
|
|
21
22
|
defaultValue?: unknown;
|
|
@@ -36,10 +37,53 @@ interface ControlModel {
|
|
|
36
37
|
reason?: string;
|
|
37
38
|
};
|
|
38
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* 渲染库不持有字典,文案由调用方注入(设计 16 §2.1)。
|
|
42
|
+
*
|
|
43
|
+
* 缺省值保留英文:`webFormBridge` 这类无宿主场景仍要能跑——
|
|
44
|
+
* 这些英文缺省**不是**漏译,是没有宿主时的兜底。
|
|
45
|
+
*/
|
|
46
|
+
interface InteractionTexts {
|
|
47
|
+
submit?: string;
|
|
48
|
+
cancel?: string;
|
|
49
|
+
confirm?: string;
|
|
50
|
+
select?: string;
|
|
51
|
+
allow?: string;
|
|
52
|
+
deny?: string;
|
|
53
|
+
chooseFile?: string;
|
|
54
|
+
decline?: string;
|
|
55
|
+
/** 必填校验未通过时的提示 */
|
|
56
|
+
required?: string;
|
|
57
|
+
/** 建议值的前缀,如「建议:」 */
|
|
58
|
+
suggested?: string;
|
|
59
|
+
/** 采纳建议值的按钮 */
|
|
60
|
+
useSuggestion?: string;
|
|
61
|
+
}
|
|
62
|
+
declare const DEFAULT_INTERACTION_TEXTS: Required<InteractionTexts>;
|
|
63
|
+
declare function resolveInteractionTexts(texts?: InteractionTexts): Required<InteractionTexts>;
|
|
64
|
+
/**
|
|
65
|
+
* surface 表单的文案契约(设计 22 §2.1)。四档渲染器共用,
|
|
66
|
+
* 其中 a2ui 档是 Lit 实现、在本包内,所以契约落在 `@webskill/ui` 而不是 `ui-react`。
|
|
67
|
+
*/
|
|
68
|
+
interface SurfaceFormTexts {
|
|
69
|
+
required: string;
|
|
70
|
+
submit: string;
|
|
71
|
+
cancel: string;
|
|
72
|
+
/** `FieldArray` 的增 / 删按钮 */
|
|
73
|
+
addItem: string;
|
|
74
|
+
removeItem: string;
|
|
75
|
+
/** 降级档(a2ui / OpenUI / vercel)只渲染重复组第一项时的说明 */
|
|
76
|
+
arrayFirstItemOnly: string;
|
|
77
|
+
/** 历史快照(宿主未接 action)的一次性只读说明 */
|
|
78
|
+
readOnlySnapshot: string;
|
|
79
|
+
}
|
|
80
|
+
/** 可复用的部分取自 DEFAULT_INTERACTION_TEXTS,不另抄一份(AC-G10) */
|
|
81
|
+
declare const DEFAULT_SURFACE_FORM_TEXTS: SurfaceFormTexts;
|
|
82
|
+
declare function resolveSurfaceFormTexts(texts?: Partial<SurfaceFormTexts>): SurfaceFormTexts;
|
|
39
83
|
/** 提交值按请求类型归形(WebFormBridge 与框架组件库共享单一来源) */
|
|
40
84
|
declare function shapeInteractionValue(model: FormModel, values: Record<string, unknown>): unknown;
|
|
41
85
|
/** 五类 InteractionRequest → 统一中间模型(框架无关) */
|
|
42
|
-
declare function interactionToFormModel(request: InteractionRequest): FormModel;
|
|
86
|
+
declare function interactionToFormModel(request: InteractionRequest, texts?: InteractionTexts): FormModel;
|
|
43
87
|
//#endregion
|
|
44
88
|
//#region src/model/collectValues.d.ts
|
|
45
89
|
interface CollectedValues {
|
|
@@ -117,6 +161,8 @@ declare class WebFormBridge implements UiBridge {
|
|
|
117
161
|
mount: HTMLElement;
|
|
118
162
|
document?: Document;
|
|
119
163
|
styles?: boolean;
|
|
164
|
+
/** 不传时用英文缺省:本类的使用场景包括无宿主的裸页面 */
|
|
165
|
+
texts?: InteractionTexts;
|
|
120
166
|
});
|
|
121
167
|
request(input: InteractionRequest): Promise<InteractionResponse>;
|
|
122
168
|
/** 尽力取消等待中的 request(超时后清理遗留表单) */
|
|
@@ -175,6 +221,23 @@ type UiSpecValidation = {
|
|
|
175
221
|
ok: false;
|
|
176
222
|
issues: UiSpecIssue[];
|
|
177
223
|
};
|
|
224
|
+
/** 渲染层逐节点降级的记录(设计 23-01 §1.1)。每条都要能定位到节点与原因 */
|
|
225
|
+
interface UiSpecDegradation {
|
|
226
|
+
/** 与 `UiSpecIssue.path` 同格式 */
|
|
227
|
+
path: string;
|
|
228
|
+
/**
|
|
229
|
+
* `unknown-component` 与其余几类不同:它意味着模型给出了 catalog 之外的组件名,
|
|
230
|
+
* 属于越界而不是「这个档做不到」,呈现上必须保持响亮(见 23-01 §3.1 的中性说明例外)。
|
|
231
|
+
*/
|
|
232
|
+
kind: 'prop-dropped' | 'node-dropped' | 'unknown-component' | 'constraint-ignored' | 'condition-invalid';
|
|
233
|
+
component: string;
|
|
234
|
+
detail: string;
|
|
235
|
+
}
|
|
236
|
+
interface UiSpecSanitization {
|
|
237
|
+
/** `undefined` 表示连根节点都救不回来 */
|
|
238
|
+
node: UiSpecNode | undefined;
|
|
239
|
+
degradations: readonly UiSpecDegradation[];
|
|
240
|
+
}
|
|
178
241
|
interface UiCatalogPromptOptions {
|
|
179
242
|
/** tool-description 模式省略标题层级,直接作为工具描述使用 */
|
|
180
243
|
mode?: 'document' | 'tool-description';
|
|
@@ -198,6 +261,12 @@ interface UiCatalog extends UiCatalogInput {
|
|
|
198
261
|
toPrompt(options?: UiCatalogPromptOptions): string;
|
|
199
262
|
/** 运行时越界拒绝(安全边界) */
|
|
200
263
|
validate(spec: unknown): UiSpecValidation;
|
|
264
|
+
/**
|
|
265
|
+
* 渲染层的逐节点降级投影。与 `validate` 并列而不是取代它:
|
|
266
|
+
* 工具层收到模型的非法输出**应该**整块拒绝(让模型学到正确语法),
|
|
267
|
+
* 而已经进到渲染层的 spec 可能来自快照重放或更早的语法版本,整块拒绝等于整块消失。
|
|
268
|
+
*/
|
|
269
|
+
sanitize(spec: unknown): UiSpecSanitization;
|
|
201
270
|
}
|
|
202
271
|
//#endregion
|
|
203
272
|
//#region src/catalog/defineCatalog.d.ts
|
|
@@ -217,7 +286,7 @@ declare const uiCatalog: UiCatalog;
|
|
|
217
286
|
declare const UI_CATALOG_GROUPS: {
|
|
218
287
|
readonly content: readonly ["Stack", "Card", "Separator", "Heading", "Text", "Markdown", "Badge"];
|
|
219
288
|
readonly data: readonly ["Metric", "Table", "Chart", "Timeline", "FileLink"];
|
|
220
|
-
readonly input: readonly ["Form", "Field", "Button"];
|
|
289
|
+
readonly input: readonly ["Form", "Field", "FieldArray", "Button"];
|
|
221
290
|
};
|
|
222
291
|
/**
|
|
223
292
|
* catalog 系统提示的体积上限(UTF-8 字节,FR-6.6)。
|
|
@@ -264,6 +333,94 @@ declare function qualifyFieldName(name: string, scopeId?: string): string;
|
|
|
264
333
|
*/
|
|
265
334
|
declare function collectScopedValues(values: Readonly<Record<string, unknown>>, scope?: Pick<UiFormScope, 'scopeId' | 'fieldNames'>): Record<string, unknown>;
|
|
266
335
|
//#endregion
|
|
336
|
+
//#region src/catalog/fieldCondition.d.ts
|
|
337
|
+
/**
|
|
338
|
+
* `Field.visibleWhen` 的结构化条件(设计 23 §1.2)。
|
|
339
|
+
*
|
|
340
|
+
* 不用表达式字符串:让模型输出可执行的东西,安全边界就没了。
|
|
341
|
+
*/
|
|
342
|
+
type FieldCondition = {
|
|
343
|
+
field: string;
|
|
344
|
+
equals: string | number | boolean;
|
|
345
|
+
} | {
|
|
346
|
+
field: string;
|
|
347
|
+
in: (string | number)[];
|
|
348
|
+
} | {
|
|
349
|
+
field: string;
|
|
350
|
+
notEmpty: true;
|
|
351
|
+
} | {
|
|
352
|
+
allOf: FieldCondition[];
|
|
353
|
+
} | {
|
|
354
|
+
anyOf: FieldCondition[];
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* 条件树的语义深度上限。
|
|
358
|
+
* `MAX_JSON_DEPTH` 管的是 props 的 JSON 深度,管不到这里——超它之前就能先把栈打爆。
|
|
359
|
+
*/
|
|
360
|
+
declare const MAX_CONDITION_DEPTH = 8;
|
|
361
|
+
interface FieldConditionResult {
|
|
362
|
+
visible: boolean;
|
|
363
|
+
/** 非法条件不抛异常,降级为「始终显示」并留下记录(FR-23.3) */
|
|
364
|
+
degraded?: Omit<UiSpecDegradation, 'component'>;
|
|
365
|
+
}
|
|
366
|
+
interface EvaluateFieldConditionOptions {
|
|
367
|
+
/** 条件里的字段名 → 值表里的键。多表单时传 `qualifyFieldName` 的结果 */
|
|
368
|
+
resolveField?(field: string): string;
|
|
369
|
+
/** 降级记录里的路径 */
|
|
370
|
+
path?: string;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* 全仓唯一的条件求值实现(AC-23.4)。纯函数、无 React 依赖——
|
|
374
|
+
* `useSurfaceForm` 在 ui-react 且是 hook,ui-vue 用不了它。
|
|
375
|
+
*/
|
|
376
|
+
declare function evaluateFieldCondition(condition: unknown, values: Readonly<Record<string, unknown>>, options?: EvaluateFieldConditionOptions): FieldConditionResult;
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region src/catalog/tableColumns.d.ts
|
|
379
|
+
/**
|
|
380
|
+
* 生成式表格的列模型(分册 15-03 定义 `priority`,分册 25 在同一结构上追加 `weight`)。
|
|
381
|
+
*
|
|
382
|
+
* 四个渲染档共用这一份:native / json-render / OpenUI 走 TS,a2ui 是 Lit,
|
|
383
|
+
* 后者读不到 TS 常量,所以最小列宽以 **CSS 变量**交付,两侧引用同一个名字。
|
|
384
|
+
*/
|
|
385
|
+
/** 最小列宽的分档取值。`desktop` 沿用历史值,改它会动所有既有表格的视觉基线 */
|
|
386
|
+
declare const SPEC_TABLE_MIN_COLUMN_WIDTH: {
|
|
387
|
+
readonly desktop: "8rem";
|
|
388
|
+
readonly mobile: "5rem";
|
|
389
|
+
};
|
|
390
|
+
/** CSS 侧的引用名:`surfaces.css` 与 a2ui 的 Lit 样式都只写这个变量,不写字面量 */
|
|
391
|
+
declare const SPEC_TABLE_MIN_COLUMN_VAR = "--webskill-table-min-col";
|
|
392
|
+
interface SpecColumnMeta {
|
|
393
|
+
/** 窄档隐藏 `wide` 列;缺省 `always` */
|
|
394
|
+
priority: 'always' | 'wide';
|
|
395
|
+
/** 列宽权重(`columnWidths` 的单列取值) */
|
|
396
|
+
weight?: number;
|
|
397
|
+
}
|
|
398
|
+
/** `columnWidths` 非法时的原因,进 `ui.degraded` 的载荷 */
|
|
399
|
+
type ColumnWidthsRejection = 'length-mismatch' | 'non-finite' | 'negative' | 'all-zero';
|
|
400
|
+
interface NormalizedColumnWidths {
|
|
401
|
+
weights: number[];
|
|
402
|
+
/** 有值即整项被忽略、已回退等权重 */
|
|
403
|
+
rejected?: ColumnWidthsRejection;
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* 校验并归一化 `columnWidths`。
|
|
407
|
+
*
|
|
408
|
+
* **整项忽略**是刻意的:部分采纳(例如只丢掉那个负数)会让模型拿到一个
|
|
409
|
+
* 「看起来生效了」的结果,更难发现自己写错了(FR-25.3)。
|
|
410
|
+
*/
|
|
411
|
+
declare function normalizeColumnWidths(raw: readonly number[] | undefined, columnCount: number): NormalizedColumnWidths;
|
|
412
|
+
/**
|
|
413
|
+
* 按权重分配列宽,且每列不低于 `minWidth`。
|
|
414
|
+
*
|
|
415
|
+
* 朴素实现(按权重算一遍、低于下限的抬到下限)会让总宽超出容器,
|
|
416
|
+
* 白白产生本可避免的横滚。这里迭代到不动点:每轮把触底的列钉住,
|
|
417
|
+
* 剩余空间在剩余列间按权重重新分配(FR-25.2)。
|
|
418
|
+
*
|
|
419
|
+
* 容器本身放不下 `columnCount * minWidth` 时无解——此时全部取下限并返回,
|
|
420
|
+
* 由调用方决定横滚(AC-25.4)。
|
|
421
|
+
*/
|
|
422
|
+
declare function resolveColumnWidths(weights: readonly number[], available: number, minWidth: number): number[];
|
|
423
|
+
//#endregion
|
|
267
424
|
//#region src/catalog/presets.d.ts
|
|
268
425
|
/** 场景预设名(FR-6.4) */
|
|
269
426
|
type UiPresetName = 'charts' | 'cards' | 'dashboards' | 'slides' | 'reports';
|
|
@@ -608,4 +765,4 @@ interface LoadedOpenUiPeers {
|
|
|
608
765
|
*/
|
|
609
766
|
declare function loadOpenUiPeers(): Promise<LoadedOpenUiPeers>;
|
|
610
767
|
//#endregion
|
|
611
|
-
export {
|
|
768
|
+
export { UiSpecIssue as $, MAX_CONDITION_DEPTH as A, interactionToUiSpec as At, UI_CATALOG_PROMPT_BUDGET_BYTES as B, resolveColumnWidths as Bt, FieldCondition as C, ensureStyles as Ct, InteractionTexts as D, fromUiSurfaceActionDispatch as Dt, InteractionSpecLabels as E, fromA2uiSurfaceAction as Et, SPEC_TABLE_MIN_COLUMN_VAR as F, qualifyFieldName as Ft, UiCatalogInput as G, toA2uiSurfaceAction as Gt, UI_PRESET_NAMES as H, resolveSurfaceFormTexts as Ht, SPEC_TABLE_MIN_COLUMN_WIDTH as I, renderBlocks as It, UiComponentDef as J, toUiSurfaceActionDispatch as Jt, UiCatalogPromptOptions as K, toJsonRenderSpec as Kt, SpecColumnMeta as L, renderMiniChart as Lt, OpenUiRendererProps as M, loadWebSkillLitCatalog as Mt, OpenUiRuntime as N, mountEchart as Nt, JsonRenderSpec as O, fromVercelToolResult as Ot, RENDER_UI_TOOL as P, normalizeColumnWidths as Pt, UiSpecDegradation as Q, SurfaceFormTexts as R, renderMiniMarkdown as Rt, EvaluateFieldConditionOptions as S, defineUiCatalog as St, FormModel as T, fromA2uiSpecAction as Tt, UiActionDef as U, shapeInteractionValue as Ut, UI_PRESETS as V, resolveInteractionTexts as Vt, UiCatalog as W, toA2uiSpecMessages as Wt, UiPreset as X, uiCatalog as Xt, UiFormScope as Y, toVercelToolInvocation as Yt, UiPresetName as Z, uiPreset as Zt, ControlModel as _, collectFormScopes as _t, A2UI_SURFACE_ACTION as a, VercelUiBridge as at, DESCRIBE_UI_PRESET_TOOL as b, collectValues as bt, A2uiCatalogDefinition as c, WEBSKILL_SURFACE_ACTION as ct, A2uiMessage as d, a2uiComponentSchema as dt, UiSpecSanitization as et, A2uiSpecActionEvent as f, a2uiComponentShapes as ft, ColumnWidthsRejection as g, chartToTable as gt, CollectedValues as h, chartSpecFromProps as ht, A2UI_SPEC_FORM_PATH as i, VercelToolInvocation as it, NormalizedColumnWidths as j, loadOpenUiPeers as jt, LoadedOpenUiPeers as k, interactionToFormModel as kt, A2uiCatalogHandle as l, WebFormBridge as lt, CHART_PALETTE as m, buildA2uiCatalogDefinition as mt, A2UI_COMMON_TYPES as n, UiSurfaceActionDispatch as nt, A2UI_VERSION as o, WEBSKILL_A2UI_CATALOG_ID as ot, A2uiSpecMessageOptions as p, applySuggestion as pt, UiCatalogToolSourceOptions as q, toOpenUiSpecLang as qt, A2UI_SPEC_ACTION as r, VERCEL_INTERACTION_TOOL_NAME as rt, A2uiCatalogComponent as s, WEBSKILL_STYLES_CSS as st, A2UI_BASIC_CATALOG_ID as t, UiSpecValidation as tt, A2uiComponentShape as u, ZodRuntime as ut, DEFAULT_INTERACTION_TEXTS as v, collectScopedValues as vt, FieldConditionResult as w, evaluateFieldCondition as wt, EchartHandle as x, createUiCatalogToolSource as xt, DEFAULT_SURFACE_FORM_TEXTS as y, collectSpecActions as yt, UI_CATALOG_GROUPS as z, renderRenderResult as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as InteractionOrigin, c as InteractionResponse, s as InteractionRequest, x as UiBridge } from "./types-
|
|
2
|
-
import { k as ExternalToolSource } from "./index-
|
|
1
|
+
import { a as InteractionOrigin, c as InteractionResponse, s as InteractionRequest, x as UiBridge } from "./types-B3n0cMZu-BdcqQ35O.js";
|
|
2
|
+
import { k as ExternalToolSource } from "./index-K-eewlGL.js";
|
|
3
3
|
//#region ../agent/dist/index.d.ts
|
|
4
4
|
//#region src/todo/types.d.ts
|
|
5
5
|
/** 待办条目状态:未开始 / 进行中 / 已完成(FR-3.1) */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as READ_SKILL_FILE_INPUT_SCHEMA, $n as
|
|
3
|
-
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, 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 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 RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, 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, SerializingMemoryStore, type SessionListPage, type SessionMeta, type SessionRecord, type SessionStore, type SignatureAuditSink, type SignatureVerdict, 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 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, diffUserProfile, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, 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, signSkill, signaturePayloadBytes, summarizeToolCalls, textParts, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
|
1
|
+
import { $ as SkillArchiveDetection, $t as validateSkills, A as ArchiveLimits, At as checkSkillRules, B as MemoryFS, Bt as normalizePath, C as UiSpecDrafts, Ct as WebSkillErrorCode, D as UiSurfaceActionRequest, Dt as buildCatalog, E as UiSpecSnapshot, Et as atomicWriteText, F as FileStat, Ft as exportSkills, G as SKILLS_LOCKFILE, Gt as renderAvailableSkillsXml, H as PageQuery, Ht as parseSkillPackManifest, I as FileSystemProvider, It as isValidSkillName, J as SKILL_NAME_PATTERN, Jt as resolveInsideRoot, K as SKILL_MANIFEST_FILE, Kt as renderCatalogJson, L as FsTrustedKeyStore, Lt as jsonRenderer, M as CryptoKeyLike, Mt as detectSkillArchiveShape, N as DEFAULT_ARCHIVE_LIMITS, Nt as detectSkillArchiveShapeFromFs, O as UiSurfaceActionResponse, Ot as buildManifest, P as DiscoveryResult, Pt as escapeXml, Q as SignatureVerdict, Qt as unzipWithLimits, R as JsonSchema, Rt as keyIdOf, S as UiSpecActionCapability, St as WebSkillError, T as UiSpecPatch, Tt as assertSafePathSegment, U as RemoteUrlPolicy, Ut as readResponseWithLimit, V as Page, Vt as parseSkillMarkdown, W as SIGNATURE_SCHEMA_VERSION, Wt as readSkillSignature, X as SKILL_SIGNATURE_FILE, Xt as signaturePayloadBytes, Y as SKILL_PACK_FILE, Yt as signSkill, Z as SignatureAuditSink, Zt as stripArchiveRoot, _ as MemoryStore, _t as TrustedKeyStore, a as InteractionOrigin, at as SkillInstallSource, b as SkillCandidateMarker, bt as ValidationReport, c as InteractionResponse, ct as SkillManagerPort, d as LlmContentPart, dt as SkillPackManifest, en as verifyManifest, et as SkillArchiveShape, f as LlmMessage, ft as SkillReader, g as LlmToolSpec, gt as TrustedKey, h as LlmToolCall, ht as SkillsLockfile, i as FormField, it as SkillDocument, j as CatalogRenderer, jt as computeDigest, k as extractSkillCandidate, kt as checkDependencyCycles, l as LlmClient, lt as SkillManifest, m as LlmStreamEvent, mt as SkillSource, n as ArtifactStore, nn as xmlRenderer, nt as SkillCatalogEntry, o as InteractionPolicy, ot as SkillIssue, p as LlmResponse, pt as SkillSignature, q as SKILL_NAME_MAX_LENGTH, qt as resolveArchiveLimits, r as ChartSpec, rt as SkillDiscovery, s as InteractionRequest, st as SkillLocation, t as Artifact, tn as verifySkillSignature, tt as SkillCatalog, u as LlmCompleteInput, ut as SkillMetadata, v as RenderBlock, vt as UiSpecNode, w as UiSpecEvent, wt as assertRemoteUrlAllowed, x as UiBridge, xt as VerifyResult, y as RenderResultRequest, yt as UnsignedPolicy, z as MANIFEST_EXCLUDED_FILES, zt as messageOf } from "./types-B3n0cMZu-BdcqQ35O.js";
|
|
2
|
+
import { $ as READ_SKILL_FILE_INPUT_SCHEMA, $n as scriptToolName, $t as TraceRecorder, A as FS_SESSION_PAGE_SIZE, An as interruptedToolResult, At as SerializingMemoryStore, B as HookRunnerOptions, Bn as normalizeToolError, Bt as SkillScriptSchemaSource, C as DEFAULT_LOOP_LIMITS, Cn as extractChartSpec, Ct as SESSION_SCHEMA_VERSION, D as ExecuteLifecycleData, Dn as formatSkillScriptManifest, Dt as SealOptions, E as EventBus, En as findUnpairedToolCalls, Et as ScriptExecutor, F as FsSessionStore, Fn as mergeProfileEntries, Ft as SkillFailureReport, G as LifecycleEventInit, Gn as readProfileEntries, Gt as TodoTraceEvent, H as IntegrityVerdict, Hn as parseUserProfileExport, Ht as SkillSuccessReport, I as FullDisclosureRouter, In as networkPolicyLibSource, It as SkillIntegrityGuard, J as LifecycleListener, Jn as renderUserProfileContext, Jt as ToolResolution, K as LifecycleHook, Kn as readUserProfile, Kt as ToolContent, L as GoogleGenAiClient, Ln as networkUrlHost, Lt as SkillOutcomeReporter, M as FsMemoryStore, Mn as isUnsupportedRunSnapshot, Mt as SessionMeta, N as FsRunSnapshotStore, Nn as listSkillScripts, Nt as SessionRecord, O as ExternalSkillProvider, On as fromVercelResult, Ot as SealRecord, P as FsRunTraceStore, Pn as mergeCatalogEntries, Pt as SessionStore, Q as ProgressiveRouter, Qn as schemaToForm, Qt as TraceEventType, R as GoogleGenAiClientConfig, Rn as normalizeErrorCode, Rt as SkillRouter, S as CapabilityMode, Sn as exportUserProfile, St as RuntimeSessionHandle, T as EMPTY_USER_PROFILE, Tn as extractUiSpecEvents, Tt as ScriptExecutionContext, U as InteractLifecycleData, Un as partsToText, Ut as TerminalLifecycleData, V as InstalledSkillManifest, Vn as parseBridgeRequest, Vt as SkillStateGuard, W as LifecycleEvent, Wn as readBehaviorRecords, Wt as TextualToolContent, X as OpenAiCompatibleClient, Xn as sampleBehaviorRecords, Xt as TraceClock, Y as NetworkPolicy, Yn as resolveToolName, Yt as ToolResult, Z as OpenAiCompatibleClientConfig, Zn as schemaSourceLabel, Zt as TraceEvent, _ as BridgeCapabilities, _n as bridgeError, _t as RunTraceStore, a as ActivateLifecycleData, an as UnsupportedRunSnapshot, ar as toVercelToolSpecs, at as RouteLifecycleData, b as BridgeResponse, bn as createWebSkillApi, bt as RuntimeRun, c as AgentLoopDeps, cn as UserProfileExport, ct as RunResult, d as ApprovalDecision, dn as VercelToolSpec, dt as RunSnapshotStore, en as USER_PROFILE_EXPORT_VERSION, er as sealToolCallPairs, et as READ_SKILL_FILE_TOOL, f as ApprovalScope, fn as WebSkillApi, ft as RunTerminationReason, g as BehaviorScene, gn as applyUserProfileImport, gt as RunTraceMetrics, h as BehaviorRecordKind, hn as appendBehaviorRecords, ht as RunTraceFilter, i as ASK_USER_TOOL_NAME, in as USER_PROFILE_REFINE_PROMPT, ir as toRecordDigests, it as RefineUserProfileInput, j as FsArtifactStore, jn as isNetworkAllowed, jt as SessionListPage, k as ExternalToolSource, kn as fromVercelStreamPart, kt as SealResult, l as AnthropicClient, ln as UserProfileImportDiff, lt as RunSnapshot, m as BehaviorRecord, mn as WebSkillRuntimeDeps, mt as RunTraceFile, n as ASK_USER_INPUT_SCHEMA, nn as USER_PROFILE_NO_INVENTION_RULE, nr as textParts, nt as RUN_SNAPSHOT_SCHEMA_VERSION, o as AgentLoop, on as UserProfile, or as validateUiSpecEvent, ot as RouteResult, p as BEHAVIOR_RECORDS_KEY, pn as WebSkillRuntime, pt as RunToolCall, q as LifecycleHookContext, qn as refineUserProfile, qt as ToolDefinition, r as ASK_USER_TOOL, rn as USER_PROFILE_PROMPT_HEADER, rr as toLlmToolSpec, rt as RUN_TRACE_SCHEMA_VERSION, s as AgentLoopConfig, sn as UserProfileEntry, sr as validateUiSpecNode, st as RunLimitErrorDetails, t as ALLOWED_TOOLS_EXCLUSION_REASON, tn as USER_PROFILE_KEY, tr as summarizeToolCalls, tt as READ_SKILL_FILE_TOOL_NAME, u as AnthropicClientConfig, un as UserProfileLimits, ut as RunSnapshotListEntry, v as BridgeCapability, vn as buildRenderResult, vt as RunTraceSummary, w as DEFAULT_USER_PROFILE_LIMITS, wn as extractTodoTraceEvents, wt as SchemaInferer, x as CapabilityApproval, xn as diffUserProfile, xt as RuntimeSession, y as BridgeRequest, yn as createScriptContext, yt as RuntimePhase, z as HookRunner, zn as normalizeToolContent, zt as SkillScriptDescriptor } from "./index-K-eewlGL.js";
|
|
3
|
+
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, 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 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 RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, 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, 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, summarizeToolCalls, textParts, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as textParts, n as partsToText } from "./memoryArtifactStore-52Zn9npI-
|
|
3
|
-
import { $ as
|
|
1
|
+
import { A as messageOf, B as signSkill, C as detectSkillArchiveShape, D as isValidSkillName, E as exportSkills, F as readSkillSignature, G as verifyManifest, H as stripArchiveRoot, I as renderAvailableSkillsXml, K as verifySkillSignature, L as renderCatalogJson, M as parseSkillMarkdown, N as parseSkillPackManifest, O as jsonRenderer, P as readResponseWithLimit, R as resolveArchiveLimits, S as computeDigest, T as escapeXml, U as unzipWithLimits, V as signaturePayloadBytes, W as validateSkills, _ as atomicWriteText, a as SIGNATURE_SCHEMA_VERSION, b as checkDependencyCycles, c as SKILL_NAME_MAX_LENGTH, d as SKILL_SIGNATURE_FILE, f as SkillDiscovery, g as assertSafePathSegment, h as assertRemoteUrlAllowed, i as MemoryFS, j as normalizePath, k as keyIdOf, l as SKILL_NAME_PATTERN, m as WebSkillError, n as FsTrustedKeyStore, o as SKILLS_LOCKFILE, p as SkillReader, q as xmlRenderer, r as MANIFEST_EXCLUDED_FILES, s as SKILL_MANIFEST_FILE, t as DEFAULT_ARCHIVE_LIMITS, u as SKILL_PACK_FILE, v as buildCatalog, w as detectSkillArchiveShapeFromFs, x as checkSkillRules, y as buildManifest, z as resolveInsideRoot } from "./dist-59XlqDuv.js";
|
|
2
|
+
import { a as textParts, n as partsToText } from "./memoryArtifactStore-52Zn9npI-upv5OWYf.js";
|
|
3
|
+
import { $ as fromVercelStreamPart, A as SerializingMemoryStore, B as bridgeError, C as ProgressiveRouter, Ct as sealToolCallPairs, D as RUN_SNAPSHOT_SCHEMA_VERSION, Dt as toVercelToolSpecs, E as READ_SKILL_FILE_TOOL_NAME, Et as toRecordDigests, F as USER_PROFILE_PROMPT_HEADER, G as exportUserProfile, H as createScriptContext, I as USER_PROFILE_REFINE_PROMPT, J as extractTodoTraceEvents, K as extractChartSpec, L as WebSkillRuntime, M as USER_PROFILE_EXPORT_VERSION, N as USER_PROFILE_KEY, O as RUN_TRACE_SCHEMA_VERSION, Ot as validateUiSpecEvent, P as USER_PROFILE_NO_INVENTION_RULE, Q as fromVercelResult, R as appendBehaviorRecords, S as OpenAiCompatibleClient, St as scriptToolName, T as READ_SKILL_FILE_TOOL, Tt as toLlmToolSpec, U as createWebSkillApi, V as buildRenderResult, W as diffUserProfile, X as findUnpairedToolCalls, Y as extractUiSpecEvents, Z as formatSkillScriptManifest, _ as FsRunTraceStore, _t as renderUserProfileContext, a as AgentLoop, at as mergeProfileEntries, b as GoogleGenAiClient, bt as schemaSourceLabel, c as CapabilityApproval, ct as normalizeErrorCode, d as EMPTY_USER_PROFILE, dt as parseBridgeRequest, et as interruptedToolResult, f as EventBus, ft as parseUserProfileExport, g as FsRunSnapshotStore, gt as refineUserProfile, h as FsMemoryStore, ht as readUserProfile, i as ASK_USER_TOOL_NAME, it as mergeCatalogEntries, j as TraceRecorder, k as SESSION_SCHEMA_VERSION, kt as validateUiSpecNode, l as DEFAULT_LOOP_LIMITS, lt as normalizeToolContent, m as FsArtifactStore, mt as readProfileEntries, n as ASK_USER_INPUT_SCHEMA, nt as isUnsupportedRunSnapshot, o as AnthropicClient, ot as networkPolicyLibSource, p as FS_SESSION_PAGE_SIZE, pt as readBehaviorRecords, q as extractSkillCandidate, r as ASK_USER_TOOL, rt as listSkillScripts, s as BEHAVIOR_RECORDS_KEY, st as networkUrlHost, t as ALLOWED_TOOLS_EXCLUSION_REASON, tt as isNetworkAllowed, u as DEFAULT_USER_PROFILE_LIMITS, ut as normalizeToolError, v as FsSessionStore, vt as resolveToolName, w as READ_SKILL_FILE_INPUT_SCHEMA, wt as summarizeToolCalls, x as HookRunner, xt as schemaToForm, y as FullDisclosureRouter, yt as sampleBehaviorRecords, z as applyUserProfileImport } from "./dist-DmI5SBBF.js";
|
|
4
4
|
|
|
5
|
-
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, 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, 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, diffUserProfile, escapeXml, exportSkills, exportUserProfile, extractChartSpec, extractSkillCandidate, extractTodoTraceEvents, extractUiSpecEvents, formatSkillScriptManifest, fromVercelResult, fromVercelStreamPart, 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, signSkill, signaturePayloadBytes, summarizeToolCalls, textParts, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|
|
5
|
+
export { ALLOWED_TOOLS_EXCLUSION_REASON, ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, 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, 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, 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, summarizeToolCalls, textParts, toLlmToolSpec, toRecordDigests, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSpecEvent, validateUiSpecNode, verifyManifest, verifySkillSignature, xmlRenderer };
|