@webskill/sdk 0.0.2 → 0.0.4
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/browser.d.ts +78 -2
- package/dist/browser.js +388 -7
- package/dist/{dist-BMioPPri.js → dist-Bvhbxrrt.js} +13 -31
- package/dist/{dist-BbyIk4vG.js → dist-COsE72Ct.js} +426 -106
- package/dist/governance.d.ts +2 -2
- package/dist/governance.js +2 -2
- package/dist/{index-DF5ea732.d.ts → index-BsbfEiaC.d.ts} +3 -53
- package/dist/{index-j3Z3hbDk.d.ts → index-CqDIreSE.d.ts} +141 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.js +1 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.js +2 -2
- package/dist/ui-react.d.ts +1 -1
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui.d.ts +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { It as FileStat, Jt as SkillInstallSource, Lt as FileSystemProvider, Q as RenderResultRequest, Rt as JsonSchema, T as InteractionResponse, Zt as SkillManifest, _ as FsMemoryStore, ct as ScriptExecutionContext, dt as ToolDefinition, g as FsArtifactStore, l as BridgeCapabilities, lt as ScriptExecutor, pt as ToolResult, rn as VerifyResult, st as SchemaInferer, tn as SkillsLockfile, vt as UiBridge, w as InteractionRequest } from "./index-CqDIreSE.js";
|
|
2
2
|
import { Readable, Writable } from "node:stream";
|
|
3
3
|
//#region ../node/dist/index.d.ts
|
|
4
4
|
//#region src/fs/nodeFs.d.ts
|
|
@@ -123,56 +123,6 @@ declare class CliUiBridge implements UiBridge {
|
|
|
123
123
|
renderResult(input: RenderResultRequest): Promise<void>;
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
|
-
//#region src/skillManagement/types.d.ts
|
|
127
|
-
type SkillSource = {
|
|
128
|
-
type: 'local';
|
|
129
|
-
path: string;
|
|
130
|
-
} | {
|
|
131
|
-
type: 'http';
|
|
132
|
-
url: string;
|
|
133
|
-
} | {
|
|
134
|
-
type: 'git';
|
|
135
|
-
url: string;
|
|
136
|
-
ref?: string;
|
|
137
|
-
commit?: string;
|
|
138
|
-
} | {
|
|
139
|
-
type: 'npm';
|
|
140
|
-
packageName: string;
|
|
141
|
-
version?: string;
|
|
142
|
-
};
|
|
143
|
-
interface SkillManifest {
|
|
144
|
-
schemaVersion: 1;
|
|
145
|
-
name: string;
|
|
146
|
-
version?: string;
|
|
147
|
-
source: SkillSource;
|
|
148
|
-
installedAt: string;
|
|
149
|
-
integrity: {
|
|
150
|
-
algorithm: 'sha256';
|
|
151
|
-
digest: string;
|
|
152
|
-
};
|
|
153
|
-
files: Array<{
|
|
154
|
-
path: string;
|
|
155
|
-
size: number;
|
|
156
|
-
sha256: string;
|
|
157
|
-
}>;
|
|
158
|
-
}
|
|
159
|
-
interface SkillsLockfile {
|
|
160
|
-
schemaVersion: 1;
|
|
161
|
-
skills: Record<string, {
|
|
162
|
-
digest: string;
|
|
163
|
-
installedAt: string;
|
|
164
|
-
source: SkillSource;
|
|
165
|
-
}>;
|
|
166
|
-
}
|
|
167
|
-
interface VerifyResult {
|
|
168
|
-
ok: boolean;
|
|
169
|
-
mismatches: string[];
|
|
170
|
-
}
|
|
171
|
-
/** 技能目录内的安装清单文件名(不参与 files 列表与 digest) */
|
|
172
|
-
declare const SKILL_MANIFEST_FILE = "webskill.skill-manifest.json";
|
|
173
|
-
/** managed root 下的锁定文件名(不参与 files 列表与 digest) */
|
|
174
|
-
declare const SKILLS_LOCKFILE = "skills.lock.json";
|
|
175
|
-
//#endregion
|
|
176
126
|
//#region src/skillManagement/skillManager.d.ts
|
|
177
127
|
/**
|
|
178
128
|
* 技能管理门面:统一安装管线(staging → 解析 name → 校验 → 拷贝 → manifest → lockfile),
|
|
@@ -187,7 +137,7 @@ declare class SkillManager {
|
|
|
187
137
|
/** D2 安装期 schema 预推导(默认 true,可关) */
|
|
188
138
|
schemaInference?: boolean;
|
|
189
139
|
});
|
|
190
|
-
install(source:
|
|
140
|
+
install(source: SkillInstallSource, options?: {
|
|
191
141
|
expectedSha256?: string;
|
|
192
142
|
}): Promise<SkillManifest>;
|
|
193
143
|
uninstall(name: string): Promise<void>;
|
|
@@ -229,4 +179,4 @@ interface LlmCapabilities {
|
|
|
229
179
|
*/
|
|
230
180
|
declare function probeLlmCapabilities(config: LlmEnvConfig): Promise<LlmCapabilities>;
|
|
231
181
|
//#endregion
|
|
232
|
-
export {
|
|
182
|
+
export { LlmEnvConfig as a, OxcSchemaInferer as c, SkillManager as d, loadLlmConfigFromEnv as f, LlmCapabilities as i, SandboxOptions as l, readArchiveManifest as m, FileArtifactStore as n, NodeFS as o, probeLlmCapabilities as p, FileMemoryStore as r, NodeScriptExecutor as s, CliUiBridge as t, SandboxedScriptExecutor as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region ../core/dist/index.d.ts
|
|
2
2
|
//#region src/errors.d.ts
|
|
3
|
-
type WebSkillErrorCode = 'FS_NOT_FOUND' | 'FS_PATH_OUTSIDE_ROOT' | 'SKILL_NOT_FOUND' | 'SKILL_INVALID_METADATA' | 'SKILL_INVALID_NAME' | 'SKILL_DUPLICATE_NAME' | 'SKILL_UNSUPPORTED_SCRIPT' | 'VALIDATION_FAILED' | 'TOOL_NOT_FOUND' | 'TOOL_EXECUTION_FAILED' | 'TOOL_UNSUPPORTED' | 'TOOL_SCHEMA_UNAVAILABLE' | 'RUN_TIMEOUT' | 'RUN_MAX_TURNS_EXCEEDED' | 'RUN_FAILED' | 'RUN_CANCELLED' | 'RUN_INTERACTION_TIMEOUT' | 'UI_UNAVAILABLE' | 'LLM_UNAVAILABLE' | 'LLM_REQUEST_FAILED' | 'INSTALL_FAILED' | 'UNINSTALL_FAILED' | 'EXPORT_FAILED' | 'INTEGRITY_FAILED' | 'FS_PERMISSION_DENIED' | 'MCP_ENDPOINT_UNAVAILABLE' | 'MCP_TOOL_NOT_FOUND' | 'CANDIDATE_INVALID' | 'APPROVAL_REQUIRED' | 'SKILL_QUARANTINED' | 'SKILL_DISABLED' | 'GOVERNANCE_FAILED';
|
|
3
|
+
type WebSkillErrorCode = 'FS_NOT_FOUND' | 'FS_PATH_OUTSIDE_ROOT' | 'SKILL_NOT_FOUND' | 'SKILL_INVALID_METADATA' | 'SKILL_INVALID_NAME' | 'SKILL_DUPLICATE_NAME' | 'SKILL_UNSUPPORTED_SCRIPT' | 'VALIDATION_FAILED' | 'TOOL_NOT_FOUND' | 'TOOL_EXECUTION_FAILED' | 'TOOL_UNSUPPORTED' | 'TOOL_SCHEMA_UNAVAILABLE' | 'RUN_TIMEOUT' | 'RUN_MAX_TURNS_EXCEEDED' | 'RUN_FAILED' | 'RUN_CANCELLED' | 'RUN_INTERACTION_TIMEOUT' | 'UI_UNAVAILABLE' | 'LLM_UNAVAILABLE' | 'LLM_REQUEST_FAILED' | 'INSTALL_FAILED' | 'UNINSTALL_FAILED' | 'EXPORT_FAILED' | 'INTEGRITY_FAILED' | 'FS_PERMISSION_DENIED' | 'MCP_ENDPOINT_UNAVAILABLE' | 'MCP_TOOL_NOT_FOUND' | 'CANDIDATE_INVALID' | 'APPROVAL_REQUIRED' | 'SKILL_QUARANTINED' | 'SKILL_DISABLED' | 'GOVERNANCE_FAILED' | 'RUN_SNAPSHOT_NOT_FOUND' | 'RUN_SNAPSHOT_EXPIRED' | 'RUN_SNAPSHOT_INCOMPATIBLE';
|
|
4
4
|
/** 所有公开 API 抛出的结构化错误,code 供上层可编程处理 */
|
|
5
5
|
declare class WebSkillError extends Error {
|
|
6
6
|
readonly code: WebSkillErrorCode;
|
|
@@ -24,6 +24,76 @@ interface JsonSchema {
|
|
|
24
24
|
[key: string]: unknown;
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
+
//#region src/skill/manifest.d.ts
|
|
28
|
+
type SkillInstallSource = {
|
|
29
|
+
type: 'local';
|
|
30
|
+
path: string;
|
|
31
|
+
} | {
|
|
32
|
+
type: 'http';
|
|
33
|
+
url: string;
|
|
34
|
+
} | {
|
|
35
|
+
type: 'archive';
|
|
36
|
+
data: ArrayBuffer;
|
|
37
|
+
} | {
|
|
38
|
+
type: 'git';
|
|
39
|
+
url: string;
|
|
40
|
+
ref?: string;
|
|
41
|
+
commit?: string;
|
|
42
|
+
} | {
|
|
43
|
+
type: 'npm';
|
|
44
|
+
packageName: string;
|
|
45
|
+
version?: string;
|
|
46
|
+
};
|
|
47
|
+
interface SkillManifest {
|
|
48
|
+
schemaVersion: 1;
|
|
49
|
+
name: string;
|
|
50
|
+
version?: string;
|
|
51
|
+
source: SkillInstallSource;
|
|
52
|
+
installedAt: string;
|
|
53
|
+
integrity: {
|
|
54
|
+
algorithm: 'sha256';
|
|
55
|
+
digest: string;
|
|
56
|
+
};
|
|
57
|
+
files: Array<{
|
|
58
|
+
path: string;
|
|
59
|
+
size: number;
|
|
60
|
+
sha256: string;
|
|
61
|
+
}>;
|
|
62
|
+
}
|
|
63
|
+
interface SkillsLockfile {
|
|
64
|
+
schemaVersion: 1;
|
|
65
|
+
skills: Record<string, {
|
|
66
|
+
digest: string;
|
|
67
|
+
installedAt: string;
|
|
68
|
+
source: SkillInstallSource;
|
|
69
|
+
}>;
|
|
70
|
+
}
|
|
71
|
+
interface VerifyResult {
|
|
72
|
+
ok: boolean;
|
|
73
|
+
mismatches: string[];
|
|
74
|
+
}
|
|
75
|
+
/** 技能目录内的安装清单文件名(不参与 files 列表与 digest) */
|
|
76
|
+
declare const SKILL_MANIFEST_FILE = "webskill.skill-manifest.json";
|
|
77
|
+
/** managed root 下的锁定文件名(不参与 files 列表与 digest) */
|
|
78
|
+
declare const SKILLS_LOCKFILE = "skills.lock.json";
|
|
79
|
+
type Sha256Fn = (data: Uint8Array | string) => string | Promise<string>;
|
|
80
|
+
/** 整体 digest:逐文件 "<path>:<sha256>\n" 拼接串(文件按 path 排序)的 sha256(hash 由调用方提供,可为 WebCrypto 异步实现) */
|
|
81
|
+
declare function computeDigest(files: Array<{
|
|
82
|
+
path: string;
|
|
83
|
+
sha256: string;
|
|
84
|
+
}>, sha256: Sha256Fn): Promise<string>;
|
|
85
|
+
/** 由逐文件清单构建 manifest(digest 由 computeDigest 计算) */
|
|
86
|
+
declare function buildManifest(input: {
|
|
87
|
+
name: string;
|
|
88
|
+
version?: string;
|
|
89
|
+
source: SkillInstallSource;
|
|
90
|
+
installedAt: string;
|
|
91
|
+
files: SkillManifest['files'];
|
|
92
|
+
sha256: Sha256Fn;
|
|
93
|
+
}): Promise<SkillManifest>;
|
|
94
|
+
/** 按 manifest.files 比对实际 hash(调用方负责计算 actualHashes) */
|
|
95
|
+
declare function verifyManifest(manifest: SkillManifest, actualHashes: Map<string, string>): VerifyResult;
|
|
96
|
+
//#endregion
|
|
27
97
|
//#region src/fs/types.d.ts
|
|
28
98
|
interface FileStat {
|
|
29
99
|
path: string;
|
|
@@ -587,7 +657,7 @@ type LifecycleHook = (ctx: LifecycleHookContext) => Promise<void | {
|
|
|
587
657
|
}>;
|
|
588
658
|
//#endregion
|
|
589
659
|
//#region src/trace/types.d.ts
|
|
590
|
-
type TraceEventType = 'skill.routed' | 'skill.activated' | 'llm.request' | 'llm.response' | 'tool.started' | 'tool.completed' | 'tool.failed' | 'artifact.created' | 'ui.requested' | 'ui.resumed' | 'ui.rendered' | 'run.warning' | 'run.completed' | 'run.cancelled' | 'run.failed';
|
|
660
|
+
type TraceEventType = 'skill.routed' | 'skill.activated' | 'llm.request' | 'llm.response' | 'tool.started' | 'tool.completed' | 'tool.failed' | 'artifact.created' | 'ui.requested' | 'ui.resumed' | 'ui.rendered' | 'run.warning' | 'run.completed' | 'run.cancelled' | 'run.failed' | 'run.resumed';
|
|
591
661
|
interface TraceEvent {
|
|
592
662
|
id: string;
|
|
593
663
|
runId: string;
|
|
@@ -870,6 +940,56 @@ interface ExternalSkillProvider {
|
|
|
870
940
|
*/
|
|
871
941
|
declare function mergeCatalogEntries(localEntries: SkillCatalogEntry[], providerEntries: SkillCatalogEntry[]): SkillCatalogEntry[];
|
|
872
942
|
//#endregion
|
|
943
|
+
//#region src/engine/snapshot.d.ts
|
|
944
|
+
declare const RUN_SNAPSHOT_SCHEMA_VERSION = 1;
|
|
945
|
+
/** interrupted(等待用户)状态点的可恢复快照(D3 收窄版) */
|
|
946
|
+
interface RunSnapshot {
|
|
947
|
+
schemaVersion: 1;
|
|
948
|
+
runId: string;
|
|
949
|
+
sessionId: string;
|
|
950
|
+
userPrompt: string;
|
|
951
|
+
startedAt: string;
|
|
952
|
+
/** 完整消息历史(含 system/user/assistant/tool) */
|
|
953
|
+
messages: LlmMessage[];
|
|
954
|
+
/** 当前轮次(护栏续算) */
|
|
955
|
+
turn: number;
|
|
956
|
+
activeSkillNames: string[];
|
|
957
|
+
/** 已注册脚本工具定义(恢复后免重新激活) */
|
|
958
|
+
activatedTools: ToolDefinition[];
|
|
959
|
+
/** 等待中的交互(恢复时重新发起,表单重新渲染) */
|
|
960
|
+
pendingInteraction: InteractionRequest;
|
|
961
|
+
/** 进入 interrupted 时计算的过期时间 */
|
|
962
|
+
interactionExpiresAt: string;
|
|
963
|
+
config: {
|
|
964
|
+
maxTurns: number;
|
|
965
|
+
totalTimeoutMs: number;
|
|
966
|
+
toolTimeoutMs: number;
|
|
967
|
+
temperature?: number;
|
|
968
|
+
};
|
|
969
|
+
snapshotAt: string;
|
|
970
|
+
}
|
|
971
|
+
interface RunSnapshotStore {
|
|
972
|
+
save(snapshot: RunSnapshot): Promise<void>;
|
|
973
|
+
load(runId: string): Promise<RunSnapshot | undefined>;
|
|
974
|
+
delete(runId: string): Promise<void>;
|
|
975
|
+
list(): Promise<RunSnapshot[]>;
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* FileSystemProvider 后端的快照存储:<root>/<runId>.snapshot.json。
|
|
979
|
+
* 坏 JSON → RUN_SNAPSHOT_INCOMPATIBLE 并自动清理坏文件;runId 过路径安全校验。
|
|
980
|
+
*/
|
|
981
|
+
declare class FsRunSnapshotStore implements RunSnapshotStore {
|
|
982
|
+
#private;
|
|
983
|
+
constructor(deps: {
|
|
984
|
+
root: string;
|
|
985
|
+
fs: FileSystemProvider;
|
|
986
|
+
});
|
|
987
|
+
save(snapshot: RunSnapshot): Promise<void>;
|
|
988
|
+
load(runId: string): Promise<RunSnapshot | undefined>;
|
|
989
|
+
delete(runId: string): Promise<void>;
|
|
990
|
+
list(): Promise<RunSnapshot[]>;
|
|
991
|
+
}
|
|
992
|
+
//#endregion
|
|
873
993
|
//#region src/engine/agentLoop.d.ts
|
|
874
994
|
interface AgentLoopDeps {
|
|
875
995
|
llm: LlmClient;
|
|
@@ -901,6 +1021,8 @@ interface AgentLoopDeps {
|
|
|
901
1021
|
skillProviders?: ExternalSkillProvider[];
|
|
902
1022
|
/** Catalog 过滤钩子(治理状态拦截路由,如 quarantined/deprecated 过滤) */
|
|
903
1023
|
catalogFilter?: (entries: SkillCatalogEntry[]) => SkillCatalogEntry[] | Promise<SkillCatalogEntry[]>;
|
|
1024
|
+
/** D3:interrupt 点快照存储(无配置则行为与现状完全一致) */
|
|
1025
|
+
snapshotStore?: RunSnapshotStore;
|
|
904
1026
|
}
|
|
905
1027
|
/**
|
|
906
1028
|
* 多轮 Agent 循环。
|
|
@@ -916,6 +1038,11 @@ declare class AgentLoop {
|
|
|
916
1038
|
route: RouteResult;
|
|
917
1039
|
runId?: string;
|
|
918
1040
|
}): Promise<RunResult>;
|
|
1041
|
+
/**
|
|
1042
|
+
* D3 恢复:以快照重建 LoopState,重新发起等待中的交互(表单重新渲染),
|
|
1043
|
+
* 应答后从快照轮次续跑主循环;totalTimeout 以快照 startedAt 续算。
|
|
1044
|
+
*/
|
|
1045
|
+
resume(snapshot: RunSnapshot): Promise<RunResult>;
|
|
919
1046
|
}
|
|
920
1047
|
//#endregion
|
|
921
1048
|
//#region src/engine/runtime.d.ts
|
|
@@ -952,8 +1079,10 @@ interface WebSkillRuntimeDeps {
|
|
|
952
1079
|
/** opt-in:run 完成且未激活任何技能时回调(默认关闭,fire-and-forget) */
|
|
953
1080
|
onSkillMiss?: (input: {
|
|
954
1081
|
prompt: string;
|
|
955
|
-
run:
|
|
1082
|
+
run: RuntimeRun;
|
|
956
1083
|
}) => Promise<void>;
|
|
1084
|
+
/** D3:interrupt 点快照存储(配置后 interrupted run 可 resumeRun 恢复) */
|
|
1085
|
+
snapshotStore?: RunSnapshotStore;
|
|
957
1086
|
}
|
|
958
1087
|
/** runtime 门面:组合 discovery / router / agent loop / lifecycle */
|
|
959
1088
|
declare class WebSkillRuntime {
|
|
@@ -964,6 +1093,14 @@ declare class WebSkillRuntime {
|
|
|
964
1093
|
get events(): EventBus;
|
|
965
1094
|
discover(): Promise<DiscoveryResult>;
|
|
966
1095
|
run(userPrompt: string): Promise<RunResult>;
|
|
1096
|
+
/** D3:列出可恢复的 interrupted run(供 UI 展示"未完成任务") */
|
|
1097
|
+
listInterruptedRuns(): Promise<RunSnapshot[]>;
|
|
1098
|
+
/**
|
|
1099
|
+
* D3 恢复 interrupted run:
|
|
1100
|
+
* 不存在 → RUN_SNAPSHOT_NOT_FOUND;schemaVersion 不匹配 → 删除 + RUN_SNAPSHOT_INCOMPATIBLE;
|
|
1101
|
+
* 已过期 → interaction-timeout 终态并删快照;否则重建 LoopState 重新发起交互续跑。
|
|
1102
|
+
*/
|
|
1103
|
+
resumeRun(runId: string): Promise<RunResult>;
|
|
967
1104
|
}
|
|
968
1105
|
//#endregion
|
|
969
|
-
export {
|
|
1106
|
+
export { RouteResult as $, SkillReader as $t, LlmClient as A, resolveToolName as At, MockLlmHandler as B, SKILLS_LOCKFILE as Bt, InteractionPolicy as C, buildRenderResult as Ct, LifecycleHook as D, mergeCatalogEntries as Dt, LifecycleEvent as E, fromVercelStreamPart as Et, LlmToolCall as F, DiscoveryResult as Ft, OpenAiCompatibleClientConfig as G, SkillCatalogEntry as Gt, MockUiAnswer as H, SKILL_NAME_MAX_LENGTH as Ht, LlmToolSpec as I, FileStat as It, READ_SKILL_FILE_TOOL as J, SkillInstallSource as Jt, ProgressiveRouter as K, SkillDiscovery as Kt, MemoryArtifactStore as L, FileSystemProvider as Lt, LlmMessage as M, toLlmToolSpec as Mt, LlmResponse as N, toVercelToolSpecs as Nt, LifecycleHookContext as O, normalizeToolContent as Ot, LlmStreamEvent as P, CatalogRenderer as Pt, RenderResultRequest as Q, SkillMetadata as Qt, MemoryStore as R, JsonSchema as Rt, InMemoryStore as S, bridgeError as St, InteractionResponse as T, fromVercelResult as Tt, MockUiBridge as U, SKILL_NAME_PATTERN as Ut, MockLlmQueueItem as V, SKILL_MANIFEST_FILE as Vt, OpenAiCompatibleClient as W, SkillCatalog as Wt, RUN_SNAPSHOT_SCHEMA_VERSION as X, SkillLocation as Xt, READ_SKILL_FILE_TOOL_NAME as Y, SkillIssue as Yt, RenderBlock as Z, SkillManifest as Zt, FsMemoryStore as _, resolveInsideRoot as _n, TraceRecorder as _t, AgentLoopConfig as a, WebSkillErrorCode as an, RuntimeRun as at, HookRunner as b, xmlRenderer as bn, WebSkillRuntime as bt, ArtifactStore as c, checkSkillRules as cn, ScriptExecutionContext as ct, BridgeResponse as d, isValidSkillName as dn, ToolDefinition as dt, SkillSource as en, RunResult as et, EventBus as f, jsonRenderer as fn, ToolResolution as ft, FsArtifactStore as g, renderCatalogJson as gn, TraceEventType as gt, FormField as h, renderAvailableSkillsXml as hn, TraceEvent as ht, AgentLoop as i, WebSkillError as in, RuntimePhase as it, LlmCompleteInput as j, schemaToForm as jt, LifecycleListener as k, parseBridgeRequest as kt, BridgeCapabilities as l, computeDigest as ln, ScriptExecutor as lt, ExternalToolSource as m, parseSkillMarkdown as mn, TraceClock as mt, ASK_USER_TOOL as n, ValidationReport as nn, RunSnapshotStore as nt, AgentLoopDeps as o, buildCatalog as on, RuntimeSession as ot, ExternalSkillProvider as p, normalizePath as pn, ToolResult as pt, READ_SKILL_FILE_INPUT_SCHEMA as q, SkillDocument as qt, ASK_USER_TOOL_NAME as r, VerifyResult as rn, RunTerminationReason as rt, Artifact as s, buildManifest as sn, SchemaInferer as st, ASK_USER_INPUT_SCHEMA as t, SkillsLockfile as tn, RunSnapshot as tt, BridgeRequest as u, escapeXml as un, SkillRouter as ut, FsRunSnapshotStore as v, validateSkills as vn, UiBridge as vt, InteractionRequest as w, createScriptContext as wt, HookRunnerOptions as x, WebSkillRuntimeDeps as xt, FullDisclosureRouter as y, verifyManifest as yn, VercelToolSpec as yt, MockLlmClient as z, MemoryFS as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, type Artifact, type ArtifactStore, type BridgeCapabilities, type BridgeRequest, type BridgeResponse, type CatalogRenderer, type DiscoveryResult, EventBus, type ExternalSkillProvider, type ExternalToolSource, type FileStat, type FileSystemProvider, type FormField, FsArtifactStore, FsMemoryStore, FullDisclosureRouter, HookRunner, type HookRunnerOptions, InMemoryStore, type InteractionPolicy, type InteractionRequest, type InteractionResponse, type JsonSchema, type LifecycleEvent, type LifecycleHook, type LifecycleHookContext, type LifecycleListener, type LlmClient, type LlmCompleteInput, type LlmMessage, type LlmResponse, type LlmStreamEvent, type LlmToolCall, type LlmToolSpec, MemoryArtifactStore, MemoryFS, type MemoryStore, MockLlmClient, type MockLlmHandler, type MockLlmQueueItem, type MockUiAnswer, MockUiBridge, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, type RenderBlock, type RenderResultRequest, type RouteResult, type RunResult, type RunTerminationReason, type RuntimePhase, type RuntimeRun, type RuntimeSession, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, type SchemaInferer, type ScriptExecutionContext, type ScriptExecutor, type SkillCatalog, type SkillCatalogEntry, SkillDiscovery, type SkillDocument, type SkillIssue, type SkillLocation, type SkillMetadata, SkillReader, type SkillRouter, type SkillSource, type ToolDefinition, type ToolResolution, type ToolResult, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type UiBridge, type ValidationReport, type VercelToolSpec, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, bridgeError, buildCatalog, buildRenderResult, checkSkillRules, createScriptContext, escapeXml, fromVercelResult, fromVercelStreamPart, isValidSkillName, jsonRenderer, mergeCatalogEntries, normalizePath, normalizeToolContent, parseBridgeRequest, parseSkillMarkdown, renderAvailableSkillsXml, renderCatalogJson, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, validateSkills, xmlRenderer };
|
|
1
|
+
import { $ as RouteResult, $t as SkillReader, A as LlmClient, At as resolveToolName, B as MockLlmHandler, Bt as SKILLS_LOCKFILE, C as InteractionPolicy, Ct as buildRenderResult, D as LifecycleHook, Dt as mergeCatalogEntries, E as LifecycleEvent, Et as fromVercelStreamPart, F as LlmToolCall, Ft as DiscoveryResult, G as OpenAiCompatibleClientConfig, Gt as SkillCatalogEntry, H as MockUiAnswer, Ht as SKILL_NAME_MAX_LENGTH, I as LlmToolSpec, It as FileStat, J as READ_SKILL_FILE_TOOL, Jt as SkillInstallSource, K as ProgressiveRouter, Kt as SkillDiscovery, L as MemoryArtifactStore, Lt as FileSystemProvider, M as LlmMessage, Mt as toLlmToolSpec, N as LlmResponse, Nt as toVercelToolSpecs, O as LifecycleHookContext, Ot as normalizeToolContent, P as LlmStreamEvent, Pt as CatalogRenderer, Q as RenderResultRequest, Qt as SkillMetadata, R as MemoryStore, Rt as JsonSchema, S as InMemoryStore, St as bridgeError, T as InteractionResponse, Tt as fromVercelResult, U as MockUiBridge, Ut as SKILL_NAME_PATTERN, V as MockLlmQueueItem, Vt as SKILL_MANIFEST_FILE, W as OpenAiCompatibleClient, Wt as SkillCatalog, X as RUN_SNAPSHOT_SCHEMA_VERSION, Xt as SkillLocation, Y as READ_SKILL_FILE_TOOL_NAME, Yt as SkillIssue, Z as RenderBlock, Zt as SkillManifest, _ as FsMemoryStore, _n as resolveInsideRoot, _t as TraceRecorder, a as AgentLoopConfig, an as WebSkillErrorCode, at as RuntimeRun, b as HookRunner, bn as xmlRenderer, bt as WebSkillRuntime, c as ArtifactStore, cn as checkSkillRules, ct as ScriptExecutionContext, d as BridgeResponse, dn as isValidSkillName, dt as ToolDefinition, en as SkillSource, et as RunResult, f as EventBus, fn as jsonRenderer, ft as ToolResolution, g as FsArtifactStore, gn as renderCatalogJson, gt as TraceEventType, h as FormField, hn as renderAvailableSkillsXml, ht as TraceEvent, i as AgentLoop, in as WebSkillError, it as RuntimePhase, j as LlmCompleteInput, jt as schemaToForm, k as LifecycleListener, kt as parseBridgeRequest, l as BridgeCapabilities, ln as computeDigest, lt as ScriptExecutor, m as ExternalToolSource, mn as parseSkillMarkdown, mt as TraceClock, n as ASK_USER_TOOL, nn as ValidationReport, nt as RunSnapshotStore, o as AgentLoopDeps, on as buildCatalog, ot as RuntimeSession, p as ExternalSkillProvider, pn as normalizePath, pt as ToolResult, q as READ_SKILL_FILE_INPUT_SCHEMA, qt as SkillDocument, r as ASK_USER_TOOL_NAME, rn as VerifyResult, rt as RunTerminationReason, s as Artifact, sn as buildManifest, st as SchemaInferer, t as ASK_USER_INPUT_SCHEMA, tn as SkillsLockfile, tt as RunSnapshot, u as BridgeRequest, un as escapeXml, ut as SkillRouter, v as FsRunSnapshotStore, vn as validateSkills, vt as UiBridge, w as InteractionRequest, wt as createScriptContext, x as HookRunnerOptions, xt as WebSkillRuntimeDeps, y as FullDisclosureRouter, yn as verifyManifest, yt as VercelToolSpec, z as MockLlmClient, zt as MemoryFS } from "./index-CqDIreSE.js";
|
|
2
|
+
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, type Artifact, type ArtifactStore, type BridgeCapabilities, type BridgeRequest, type BridgeResponse, type CatalogRenderer, type DiscoveryResult, EventBus, type ExternalSkillProvider, type ExternalToolSource, type FileStat, type FileSystemProvider, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FullDisclosureRouter, HookRunner, type HookRunnerOptions, InMemoryStore, type InteractionPolicy, type InteractionRequest, type InteractionResponse, type JsonSchema, type LifecycleEvent, type LifecycleHook, type LifecycleHookContext, type LifecycleListener, type LlmClient, type LlmCompleteInput, type LlmMessage, type LlmResponse, type LlmStreamEvent, type LlmToolCall, type LlmToolSpec, MemoryArtifactStore, MemoryFS, type MemoryStore, MockLlmClient, type MockLlmHandler, type MockLlmQueueItem, type MockUiAnswer, MockUiBridge, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, type RenderBlock, type RenderResultRequest, type RouteResult, type RunResult, type RunSnapshot, type RunSnapshotStore, type RunTerminationReason, type RuntimePhase, type RuntimeRun, type RuntimeSession, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, type SchemaInferer, type ScriptExecutionContext, type ScriptExecutor, type SkillCatalog, type SkillCatalogEntry, SkillDiscovery, type SkillDocument, type SkillInstallSource, type SkillIssue, type SkillLocation, type SkillManifest, type SkillMetadata, SkillReader, type SkillRouter, type SkillSource, type SkillsLockfile, type ToolDefinition, type ToolResolution, type ToolResult, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type UiBridge, type ValidationReport, type VercelToolSpec, type VerifyResult, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkSkillRules, computeDigest, createScriptContext, escapeXml, fromVercelResult, fromVercelStreamPart, isValidSkillName, jsonRenderer, mergeCatalogEntries, normalizePath, normalizeToolContent, parseBridgeRequest, parseSkillMarkdown, renderAvailableSkillsXml, renderCatalogJson, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, validateSkills, verifyManifest, xmlRenderer };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { $ as renderCatalogJson, A as parseBridgeRequest, B as SkillDiscovery, C as bridgeError, D as fromVercelStreamPart, E as fromVercelResult, F as MemoryFS, G as checkSkillRules, H as WebSkillError, I as SKILLS_LOCKFILE, J as isValidSkillName, K as computeDigest, L as SKILL_MANIFEST_FILE, M as schemaToForm, N as toLlmToolSpec, O as mergeCatalogEntries, P as toVercelToolSpecs, Q as renderAvailableSkillsXml, R as SKILL_NAME_MAX_LENGTH, S as WebSkillRuntime, T as createScriptContext, U as buildCatalog, V as SkillReader, W as buildManifest, X as normalizePath, Y as jsonRenderer, Z as parseSkillMarkdown, _ as READ_SKILL_FILE_INPUT_SCHEMA, a as EventBus, b as RUN_SNAPSHOT_SCHEMA_VERSION, c as FsRunSnapshotStore, d as InMemoryStore, et as resolveInsideRoot, f as MemoryArtifactStore, g as ProgressiveRouter, h as OpenAiCompatibleClient, i as AgentLoop, j as resolveToolName, k as normalizeToolContent, l as FullDisclosureRouter, m as MockUiBridge, n as ASK_USER_TOOL, nt as verifyManifest, o as FsArtifactStore, p as MockLlmClient, q as escapeXml, r as ASK_USER_TOOL_NAME, rt as xmlRenderer, s as FsMemoryStore, t as ASK_USER_INPUT_SCHEMA, tt as validateSkills, u as HookRunner, v as READ_SKILL_FILE_TOOL, w as buildRenderResult, x as TraceRecorder, y as READ_SKILL_FILE_TOOL_NAME, z as SKILL_NAME_PATTERN } from "./dist-COsE72Ct.js";
|
|
2
2
|
|
|
3
|
-
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, EventBus, FsArtifactStore, FsMemoryStore, FullDisclosureRouter, HookRunner, InMemoryStore, MemoryArtifactStore, MemoryFS, MockLlmClient, MockUiBridge, OpenAiCompatibleClient, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SkillDiscovery, SkillReader, TraceRecorder, WebSkillError, WebSkillRuntime, bridgeError, buildCatalog, buildRenderResult, checkSkillRules, createScriptContext, escapeXml, fromVercelResult, fromVercelStreamPart, isValidSkillName, jsonRenderer, mergeCatalogEntries, normalizePath, normalizeToolContent, parseBridgeRequest, parseSkillMarkdown, renderAvailableSkillsXml, renderCatalogJson, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, validateSkills, xmlRenderer };
|
|
3
|
+
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, EventBus, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FullDisclosureRouter, HookRunner, InMemoryStore, MemoryArtifactStore, MemoryFS, MockLlmClient, MockUiBridge, OpenAiCompatibleClient, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SkillDiscovery, SkillReader, TraceRecorder, WebSkillError, WebSkillRuntime, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkSkillRules, computeDigest, createScriptContext, escapeXml, fromVercelResult, fromVercelStreamPart, isValidSkillName, jsonRenderer, mergeCatalogEntries, normalizePath, normalizeToolContent, parseBridgeRequest, parseSkillMarkdown, renderAvailableSkillsXml, renderCatalogJson, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, validateSkills, verifyManifest, xmlRenderer };
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as mergeCatalogEntries, Gt as SkillCatalogEntry, I as LlmToolSpec, Rt as JsonSchema, m as ExternalToolSource, p as ExternalSkillProvider, pt as ToolResult, qt as SkillDocument } from "./index-CqDIreSE.js";
|
|
2
2
|
import { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
3
3
|
import { JSONRPCMessage } from "@modelcontextprotocol/sdk/types.js";
|
|
4
4
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
package/dist/mcp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { H as WebSkillError, O as mergeCatalogEntries, k as normalizeToolContent } from "./dist-COsE72Ct.js";
|
|
2
2
|
import { fromJSONSchema } from "zod";
|
|
3
3
|
|
|
4
4
|
//#region ../mcp/dist/index.js
|
package/dist/node.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export { CliUiBridge, FileArtifactStore, FileMemoryStore, type LlmCapabilities, type LlmEnvConfig, NodeFS, NodeScriptExecutor, OxcSchemaInferer, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, type SandboxOptions, SandboxedScriptExecutor, SkillManager, type SkillManifest, type SkillSource, type SkillsLockfile, type VerifyResult, createScriptContext, loadLlmConfigFromEnv, probeLlmCapabilities, readArchiveManifest };
|
|
1
|
+
import { Bt as SKILLS_LOCKFILE, Jt as SkillInstallSource, Vt as SKILL_MANIFEST_FILE, Zt as SkillManifest, rn as VerifyResult, tn as SkillsLockfile, wt as createScriptContext } from "./index-CqDIreSE.js";
|
|
2
|
+
import { a as LlmEnvConfig, c as OxcSchemaInferer, d as SkillManager, f as loadLlmConfigFromEnv, i as LlmCapabilities, l as SandboxOptions, m as readArchiveManifest, n as FileArtifactStore, o as NodeFS, p as probeLlmCapabilities, r as FileMemoryStore, s as NodeScriptExecutor, t as CliUiBridge, u as SandboxedScriptExecutor } from "./index-BsbfEiaC.js";
|
|
3
|
+
export { CliUiBridge, FileArtifactStore, FileMemoryStore, type LlmCapabilities, type LlmEnvConfig, NodeFS, NodeScriptExecutor, OxcSchemaInferer, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, type SandboxOptions, SandboxedScriptExecutor, SkillManager, type SkillManifest, type SkillInstallSource as SkillSource, type SkillsLockfile, type VerifyResult, createScriptContext, loadLlmConfigFromEnv, probeLlmCapabilities, readArchiveManifest };
|
package/dist/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as NodeScriptExecutor, c as
|
|
1
|
+
import { I as SKILLS_LOCKFILE, L as SKILL_MANIFEST_FILE, T as createScriptContext } from "./dist-COsE72Ct.js";
|
|
2
|
+
import { a as NodeScriptExecutor, c as SkillManager, d as readArchiveManifest, i as NodeFS, l as loadLlmConfigFromEnv, n as FileArtifactStore, o as OxcSchemaInferer, r as FileMemoryStore, s as SandboxedScriptExecutor, t as CliUiBridge, u as probeLlmCapabilities } from "./dist-Bvhbxrrt.js";
|
|
3
3
|
|
|
4
4
|
export { CliUiBridge, FileArtifactStore, FileMemoryStore, NodeFS, NodeScriptExecutor, OxcSchemaInferer, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SandboxedScriptExecutor, SkillManager, createScriptContext, loadLlmConfigFromEnv, probeLlmCapabilities, readArchiveManifest };
|
package/dist/ui-react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as RenderResultRequest, T as InteractionResponse, vt as UiBridge, w as InteractionRequest } from "./index-CqDIreSE.js";
|
|
2
2
|
//#region ../ui-react/dist/index.d.ts
|
|
3
3
|
//#region src/bridgeState.d.ts
|
|
4
4
|
/**
|
package/dist/ui-vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Q as RenderResultRequest, T as InteractionResponse, vt as UiBridge, w as InteractionRequest } from "./index-CqDIreSE.js";
|
|
2
2
|
import { PropType } from "vue";
|
|
3
3
|
//#region ../ui-vue/dist/index.d.ts
|
|
4
4
|
//#region src/bridgeState.d.ts
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ct as buildRenderResult, Q as RenderResultRequest, T as InteractionResponse, Z as RenderBlock, vt as UiBridge, w as InteractionRequest } from "./index-CqDIreSE.js";
|
|
2
2
|
//#region ../ui/dist/index.d.ts
|
|
3
3
|
//#region src/model/formModel.d.ts
|
|
4
4
|
interface FormModel {
|
package/dist/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as buildRenderResult } from "./dist-COsE72Ct.js";
|
|
2
2
|
import { C as toOpenUiLang, S as toA2uiMessages, _ as interactionToFormModel, a as LitRendererBridge, b as renderRenderResult, c as VERCEL_INTERACTION_TOOL_NAME, d as WebFormBridge, f as collectValues, g as fromVercelToolResult, h as fromOpenUiAction, i as A2UI_VERSION, l as VercelUiBridge, m as fromA2uiAction, n as A2UI_CANCEL_ACTION, o as OPENUI_CANCEL_ACTION, p as ensureStyles, r as A2UI_SUBMIT_ACTION, s as OPENUI_SUBMIT_ACTION, t as A2UI_BASIC_CATALOG_ID, u as WEBSKILL_STYLES_CSS, v as renderBlocks, w as toVercelToolInvocation, x as shapeInteractionValue, y as renderMiniMarkdown } from "./dist-RcqvzAGF.js";
|
|
3
3
|
|
|
4
4
|
export { A2UI_BASIC_CATALOG_ID, A2UI_CANCEL_ACTION, A2UI_SUBMIT_ACTION, A2UI_VERSION, LitRendererBridge, OPENUI_CANCEL_ACTION, OPENUI_SUBMIT_ACTION, VERCEL_INTERACTION_TOOL_NAME, VercelUiBridge, WEBSKILL_STYLES_CSS, WebFormBridge, buildRenderResult, collectValues, ensureStyles, fromA2uiAction, fromOpenUiAction, fromVercelToolResult, interactionToFormModel, renderBlocks, renderMiniMarkdown, renderRenderResult, shapeInteractionValue, toA2uiMessages, toOpenUiLang, toVercelToolInvocation };
|