@webskill/sdk 0.2.6 → 0.2.8
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 +13 -4
- package/dist/browser.js +16 -6
- package/dist/catalogComponents-C_V39rbF-BOHveMWa.js +120303 -0
- package/dist/{dist-BXpDDZpR.js → dist-B9VLwOME.js} +464 -29
- package/dist/{dist-DNSG9FqC.js → dist-CtBLBbEz.js} +1186 -123
- package/dist/dist-DxyxmXPU-DGC-dpXf.js +5621 -0
- package/dist/echarts-DhNm2ene.js +78816 -0
- package/dist/governance.d.ts +29 -196
- package/dist/governance.js +38 -199
- package/dist/index-7DVaZJU7.d.ts +597 -0
- package/dist/{index-DJOha4b6.d.ts → index-QrHtAudz.d.ts} +37 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/jsonRenderRegistry-9GrWP_hE-CQY8bT9w.js +2468 -0
- package/dist/mcp.d.ts +5 -3
- package/dist/mcp.js +9 -4
- package/dist/node.d.ts +49 -4
- package/dist/node.js +2064 -4
- package/dist/openUiLibrary-B8-Cvou9-D3RsU2EB.js +3785 -0
- package/dist/rolldown-runtime-BOF7iYI8.js +55 -0
- package/dist/sandboxWorkerEntry.js +12 -3
- package/dist/{index-DRlYzdr2.d.ts → skillVersionStore-B7rGjtMi-BgnQho9v.d.ts} +128 -3
- package/dist/testing.d.ts +1 -1
- package/dist/{types-CKm5G_eQ-krKWW8WV.d.ts → types-AmKCKJn_-BogJPQHU.d.ts} +129 -2
- package/dist/ui-react.d.ts +138 -2
- package/dist/ui-react.js +6935 -3
- package/dist/ui-vue.d.ts +1 -1
- package/dist/ui-vue.js +1 -1
- package/dist/ui.d.ts +3 -203
- package/dist/ui.js +3 -3
- package/dist/webskillLitCatalog-CNaUpasU-CfSRvqCZ.js +1601 -0
- package/package.json +2 -1
- package/dist/dist-DWFDb1Ww.js +0 -1896
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as UiSurfaceDrafts, G as SkillDocument, H as SkillCatalog, K as SkillInstallSource, N as FileSystemProvider, P as JsonSchema, U as SkillCatalogEntry, W as SkillDiscovery, Y as SkillManifest, _ as RenderResultRequest, a as InteractionPolicy, c as LlmClient, d as LlmResponse, f as LlmStreamEvent, g as RenderBlock, h as MemoryStore, i as FormField, it as WebSkillErrorCode, j as DiscoveryResult, l as LlmCompleteInput, m as LlmToolSpec, n as ArtifactStore, o as InteractionRequest, r as ChartSpec, t as Artifact, tt as ValidationReport, u as LlmMessage, v as UiBridge, w as UiSurfaceEvent, x as UiSurfaceActionRequest, y as UiSurface } from "./types-AmKCKJn_-BogJPQHU.js";
|
|
2
2
|
//#region ../runtime/dist/index.d.ts
|
|
3
3
|
//#region src/llm/openAiCompatibleClient.d.ts
|
|
4
4
|
interface OpenAiCompatibleClientConfig {
|
|
@@ -247,7 +247,7 @@ type LifecycleHook = (ctx: LifecycleHookContext) => Promise<void | {
|
|
|
247
247
|
}>;
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region src/trace/types.d.ts
|
|
250
|
-
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';
|
|
250
|
+
type TraceEventType = 'skill.routed' | 'skill.activated' | 'llm.request' | 'llm.response' | 'tool.started' | 'tool.completed' | 'tool.failed' | 'artifact.created' | 'ui.requested' | 'ui.resumed' | 'ui.surface-action.requested' | 'ui.surface-action.resolved' | 'ui.rendered' | 'run.warning' | 'run.completed' | 'run.cancelled' | 'run.failed' | 'run.resumed';
|
|
251
251
|
interface TraceEvent {
|
|
252
252
|
id: string;
|
|
253
253
|
runId: string;
|
|
@@ -322,6 +322,14 @@ declare function extractChartSpec(data: unknown): ChartSpec | undefined;
|
|
|
322
322
|
*/
|
|
323
323
|
declare function buildRenderResult(run: RuntimeRun, output: string, renderBlocks?: RenderBlock[]): RenderResultRequest;
|
|
324
324
|
//#endregion
|
|
325
|
+
//#region src/interaction/surface.d.ts
|
|
326
|
+
/** Validates the allowlisted, data-only shape accepted by a UI surface renderer. @experimental */
|
|
327
|
+
declare function validateUiSurface(value: unknown): UiSurface;
|
|
328
|
+
/** Validates an individual event in the framework-neutral surface stream. @experimental */
|
|
329
|
+
declare function validateUiSurfaceEvent(value: unknown): UiSurfaceEvent;
|
|
330
|
+
/** Extracts validated surface stream events from structured tool output. @experimental */
|
|
331
|
+
declare function extractUiSurfaceEvents(data: unknown): UiSurfaceEvent[];
|
|
332
|
+
//#endregion
|
|
325
333
|
//#region src/interaction/schemaToForm.d.ts
|
|
326
334
|
/**
|
|
327
335
|
* JsonSchema → 表单模型:按 properties 生成字段,required 标记必填;
|
|
@@ -420,6 +428,7 @@ declare class FsMemoryStore implements MemoryStore {
|
|
|
420
428
|
constructor(deps: {
|
|
421
429
|
root: string;
|
|
422
430
|
fs: FileSystemProvider;
|
|
431
|
+
onWarning?: (message: string) => void;
|
|
423
432
|
});
|
|
424
433
|
get(scope: string, key: string): Promise<unknown>;
|
|
425
434
|
set(scope: string, key: string, value: unknown): Promise<void>;
|
|
@@ -464,6 +473,7 @@ declare class FsArtifactStore implements ArtifactStore {
|
|
|
464
473
|
constructor(deps: {
|
|
465
474
|
root: string;
|
|
466
475
|
fs: FileSystemProvider;
|
|
476
|
+
onWarning?: (message: string) => void;
|
|
467
477
|
});
|
|
468
478
|
createTextArtifact(input: {
|
|
469
479
|
runId: string;
|
|
@@ -549,6 +559,18 @@ type NetworkPolicy = 'deny-all' | 'allow-all' | {
|
|
|
549
559
|
declare function isNetworkAllowed(policy: NetworkPolicy, url: string): boolean;
|
|
550
560
|
/** 阻断 trace 用的脱敏 host(解析失败返回占位,不记录完整 URL) */
|
|
551
561
|
declare function networkUrlHost(url: string): string;
|
|
562
|
+
/**
|
|
563
|
+
* 网络策略判定逻辑的可注入源码(单一来源)。
|
|
564
|
+
*
|
|
565
|
+
* 0.2.8 C4:此前各注入点直接拼 `isNetworkAllowed.toString()`,依赖**函数名在产物里保持不变**。
|
|
566
|
+
* SDK 自身不压缩,但消费方一旦跑生产构建,打包器会把导出函数改名(`function Ke(...)`),
|
|
567
|
+
* 注入后的沙箱里 `isNetworkAllowed` 就是 undefined —— 沙箱内任何 fetch 直接
|
|
568
|
+
* TOOL_EXECUTION_FAILED,网络白名单形同虚设。dev server 不压缩,所以只在真实产物上暴露。
|
|
569
|
+
*
|
|
570
|
+
* 因此改为把函数源码绑定到**固定的变量名**上:`var isNetworkAllowed = function Ke(...) {…};`
|
|
571
|
+
* ——名字随便压缩,绑定名恒定。两个函数都自包含(不引用模块内其它符号),故可独立绑定。
|
|
572
|
+
*/
|
|
573
|
+
declare function networkPolicyLibSource(): string;
|
|
552
574
|
//#endregion
|
|
553
575
|
//#region src/sandbox/errorCodes.d.ts
|
|
554
576
|
/**
|
|
@@ -648,12 +670,22 @@ interface RunSnapshot {
|
|
|
648
670
|
activeSkillNames: string[];
|
|
649
671
|
/** 已注册脚本工具定义(恢复后免重新激活) */
|
|
650
672
|
activatedTools: ToolDefinition[];
|
|
651
|
-
/**
|
|
652
|
-
pendingInteraction
|
|
673
|
+
/** 等待中的旧交互(恢复时重新发起,表单重新渲染) */
|
|
674
|
+
pendingInteraction?: InteractionRequest;
|
|
675
|
+
/** 等待中的 surface action;其工具结果已入消息历史,无需重跑工具。 */
|
|
676
|
+
pendingSurfaceAction?: UiSurfaceActionRequest;
|
|
677
|
+
/** 未提交的 surface form values;仅在 interrupted surface action 等待期间保存。 */
|
|
678
|
+
surfaceDrafts?: UiSurfaceDrafts;
|
|
653
679
|
/** $chart 等内容收集的渲染块(0.2.0 起跨 resume 保留;旧快照缺省视为空) */
|
|
654
680
|
renderBlocks?: RenderBlock[];
|
|
681
|
+
/** 已成功渲染的 surface 事件;resume 时按原序重放(旧快照缺省视为空) */
|
|
682
|
+
surfaceEvents?: UiSurfaceEvent[];
|
|
655
683
|
/** 交互 id 序号(resume 后续算,避免 id 冲突;旧快照缺省从 0 起) */
|
|
656
684
|
interactionSeq?: number;
|
|
685
|
+
/** Runtime 注入的 surface action nonce 序号(resume 后续算;旧快照缺省从 0 起) */
|
|
686
|
+
surfaceActionSeq?: number;
|
|
687
|
+
/** 已被当前 run 消费的 surface action capabilities(旧快照缺省为空)。 */
|
|
688
|
+
processedSurfaceActionNonces?: string[];
|
|
657
689
|
/** 已累计的交互等待 ms(resume 后续算,保持 totalTimeout 排除交互等待的语义;旧快照缺省为 0) */
|
|
658
690
|
pausedMs?: number;
|
|
659
691
|
/** 进入 interrupted 时计算的过期时间 */
|
|
@@ -849,4 +881,4 @@ declare class WebSkillRuntime {
|
|
|
849
881
|
cancel(runId: string): boolean;
|
|
850
882
|
}
|
|
851
883
|
//#endregion
|
|
852
|
-
export { SerializingMemoryStore as $, LifecycleHook as A,
|
|
884
|
+
export { SerializingMemoryStore as $, LifecycleHook as A, schemaToForm as At, RUN_SNAPSHOT_SCHEMA_VERSION as B, FullDisclosureRouter as C, networkPolicyLibSource as Ct, HookRunnerOptions as D, normalizeToolError as Dt, HookRunner as E, normalizeToolContent as Et, OpenAiCompatibleClientConfig as F, RunTerminationReason as G, RunResult as H, ProgressiveRouter as I, RuntimeSession as J, RuntimePhase as K, READ_SKILL_FILE_INPUT_SCHEMA as L, LifecycleListener as M, toVercelToolSpecs as Mt, NetworkPolicy as N, validateUiSurface as Nt, InstalledSkillManifest as O, parseBridgeRequest as Ot, OpenAiCompatibleClient as P, validateUiSurfaceEvent as Pt, ScriptExecutor as Q, READ_SKILL_FILE_TOOL as R, FsRunSnapshotStore as S, mergeCatalogEntries as St, GoogleGenAiClientConfig as T, normalizeErrorCode as Tt, RunSnapshot as U, RouteResult as V, RunSnapshotStore as W, SchemaInferer as X, RuntimeSessionHandle as Y, ScriptExecutionContext as Z, EventBus as _, extractChartSpec as _t, AgentLoopConfig as a, TraceClock as at, FsArtifactStore as b, fromVercelStreamPart as bt, AnthropicClientConfig as c, TraceRecorder as ct, BridgeCapabilities as d, WebSkillRuntime as dt, SkillRouter as et, BridgeCapability as f, WebSkillRuntimeDeps as ft, CapabilityMode as g, createWebSkillApi as gt, CapabilityApproval as h, createScriptContext as ht, AgentLoop as i, ToolResult as it, LifecycleHookContext as j, toLlmToolSpec as jt, LifecycleEvent as k, resolveToolName as kt, ApprovalDecision as l, VercelToolSpec as lt, BridgeResponse as m, buildRenderResult as mt, ASK_USER_TOOL as n, ToolDefinition as nt, AgentLoopDeps as o, TraceEvent as ot, BridgeRequest as p, bridgeError as pt, RuntimeRun as q, ASK_USER_TOOL_NAME as r, ToolResolution as rt, AnthropicClient as s, TraceEventType as st, ASK_USER_INPUT_SCHEMA as t, SkillStateGuard as tt, ApprovalScope as u, WebSkillApi as ut, ExternalSkillProvider as v, extractUiSurfaceEvents as vt, GoogleGenAiClient as w, networkUrlHost as wt, FsMemoryStore as x, isNetworkAllowed as xt, ExternalToolSource as y, fromVercelResult as yt, READ_SKILL_FILE_TOOL_NAME as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { $ as SerializingMemoryStore, A as LifecycleHook, At as
|
|
3
|
-
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, AnthropicClient, type AnthropicClientConfig, type ApprovalDecision, type ApprovalScope, type ArchiveLimits, type Artifact, type ArtifactStore, type BridgeCapabilities, type BridgeCapability, type BridgeRequest, type BridgeResponse, CapabilityApproval, type CapabilityMode, type CatalogRenderer, type ChartSpec, DEFAULT_ARCHIVE_LIMITS, type DiscoveryResult, EventBus, type ExternalSkillProvider, type ExternalToolSource, type FileStat, type FileSystemProvider, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FullDisclosureRouter, GoogleGenAiClient, type GoogleGenAiClientConfig, HookRunner, type HookRunnerOptions, type InstalledSkillManifest, 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, MemoryFS, type MemoryStore, type NetworkPolicy, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, type RemoteUrlPolicy, type RenderBlock, type RenderResultRequest, type RouteResult, type RunResult, type RunSnapshot, type RunSnapshotStore, type RunTerminationReason, type RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, type SchemaInferer, type ScriptExecutionContext, type ScriptExecutor, SerializingMemoryStore, type SkillCatalog, type SkillCatalogEntry, SkillDiscovery, type SkillDocument, type SkillInstallSource, type SkillIssue, type SkillLocation, type SkillManifest, type SkillMetadata, type SkillPackManifest, SkillReader, type SkillRouter, type SkillSource, type SkillStateGuard, type SkillsLockfile, type ToolDefinition, type ToolResolution, type ToolResult, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type UiBridge, type ValidationReport, type VercelToolSpec, type VerifyResult, type WebSkillApi, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, escapeXml, exportSkills, extractChartSpec, fromVercelResult, fromVercelStreamPart, isNetworkAllowed, isValidSkillName, jsonRenderer, mergeCatalogEntries, messageOf, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, readResponseWithLimit, renderAvailableSkillsXml, renderCatalogJson, resolveArchiveLimits, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, unzipWithLimits, validateSkills, verifyManifest, xmlRenderer };
|
|
1
|
+
import { $ as SkillSource, A as DEFAULT_ARCHIVE_LIMITS, B as SKILL_NAME_PATTERN, C as UiSurfaceDrafts, Ct as renderCatalogJson, D as UiSurfaceSnapshot, Dt as validateSkills, E as UiSurfacePatch, Et as unzipWithLimits, F as MemoryFS, G as SkillDocument, H as SkillCatalog, I as RemoteUrlPolicy, J as SkillLocation, K as SkillInstallSource, L as SKILLS_LOCKFILE, M as FileStat, N as FileSystemProvider, O as ArchiveLimits, Ot as verifyManifest, P as JsonSchema, Q as SkillReader, R as SKILL_MANIFEST_FILE, S as UiSurfaceActionResponse, St as renderAvailableSkillsXml, T as UiSurfaceFormField, Tt as resolveInsideRoot, U as SkillCatalogEntry, V as SKILL_PACK_FILE, W as SkillDiscovery, X as SkillMetadata, Y as SkillManifest, Z as SkillPackManifest, _ as RenderResultRequest, _t as messageOf, a as InteractionPolicy, at as assertRemoteUrlAllowed, b as UiSurfaceAction, bt as parseSkillPackManifest, c as LlmClient, ct as buildCatalog, d as LlmResponse, dt as checkSkillRules, et as SkillsLockfile, f as LlmStreamEvent, ft as computeDigest, g as RenderBlock, gt as jsonRenderer, h as MemoryStore, ht as isValidSkillName, i as FormField, it as WebSkillErrorCode, j as DiscoveryResult, k as CatalogRenderer, kt as xmlRenderer, l as LlmCompleteInput, lt as buildManifest, m as LlmToolSpec, mt as exportSkills, n as ArtifactStore, nt as VerifyResult, o as InteractionRequest, ot as assertSafePathSegment, p as LlmToolCall, pt as escapeXml, q as SkillIssue, r as ChartSpec, rt as WebSkillError, s as InteractionResponse, st as atomicWriteText, t as Artifact, tt as ValidationReport, u as LlmMessage, ut as checkDependencyCycles, v as UiBridge, vt as normalizePath, w as UiSurfaceEvent, wt as resolveArchiveLimits, x as UiSurfaceActionRequest, xt as readResponseWithLimit, y as UiSurface, yt as parseSkillMarkdown, z as SKILL_NAME_MAX_LENGTH } from "./types-AmKCKJn_-BogJPQHU.js";
|
|
2
|
+
import { $ as SerializingMemoryStore, A as LifecycleHook, At as schemaToForm, B as RUN_SNAPSHOT_SCHEMA_VERSION, C as FullDisclosureRouter, Ct as networkPolicyLibSource, D as HookRunnerOptions, Dt as normalizeToolError, E as HookRunner, Et as normalizeToolContent, F as OpenAiCompatibleClientConfig, G as RunTerminationReason, H as RunResult, I as ProgressiveRouter, J as RuntimeSession, K as RuntimePhase, L as READ_SKILL_FILE_INPUT_SCHEMA, M as LifecycleListener, Mt as toVercelToolSpecs, N as NetworkPolicy, Nt as validateUiSurface, O as InstalledSkillManifest, Ot as parseBridgeRequest, P as OpenAiCompatibleClient, Pt as validateUiSurfaceEvent, Q as ScriptExecutor, R as READ_SKILL_FILE_TOOL, S as FsRunSnapshotStore, St as mergeCatalogEntries, T as GoogleGenAiClientConfig, Tt as normalizeErrorCode, U as RunSnapshot, V as RouteResult, W as RunSnapshotStore, X as SchemaInferer, Y as RuntimeSessionHandle, Z as ScriptExecutionContext, _ as EventBus, _t as extractChartSpec, a as AgentLoopConfig, at as TraceClock, b as FsArtifactStore, bt as fromVercelStreamPart, c as AnthropicClientConfig, ct as TraceRecorder, d as BridgeCapabilities, dt as WebSkillRuntime, et as SkillRouter, f as BridgeCapability, ft as WebSkillRuntimeDeps, g as CapabilityMode, gt as createWebSkillApi, h as CapabilityApproval, ht as createScriptContext, i as AgentLoop, it as ToolResult, j as LifecycleHookContext, jt as toLlmToolSpec, k as LifecycleEvent, kt as resolveToolName, l as ApprovalDecision, lt as VercelToolSpec, m as BridgeResponse, mt as buildRenderResult, n as ASK_USER_TOOL, nt as ToolDefinition, o as AgentLoopDeps, ot as TraceEvent, p as BridgeRequest, pt as bridgeError, q as RuntimeRun, r as ASK_USER_TOOL_NAME, rt as ToolResolution, s as AnthropicClient, st as TraceEventType, t as ASK_USER_INPUT_SCHEMA, tt as SkillStateGuard, u as ApprovalScope, ut as WebSkillApi, v as ExternalSkillProvider, vt as extractUiSurfaceEvents, w as GoogleGenAiClient, wt as networkUrlHost, x as FsMemoryStore, xt as isNetworkAllowed, y as ExternalToolSource, yt as fromVercelResult, z as READ_SKILL_FILE_TOOL_NAME } from "./index-QrHtAudz.js";
|
|
3
|
+
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, type AgentLoopConfig, type AgentLoopDeps, AnthropicClient, type AnthropicClientConfig, type ApprovalDecision, type ApprovalScope, type ArchiveLimits, type Artifact, type ArtifactStore, type BridgeCapabilities, type BridgeCapability, type BridgeRequest, type BridgeResponse, CapabilityApproval, type CapabilityMode, type CatalogRenderer, type ChartSpec, DEFAULT_ARCHIVE_LIMITS, type DiscoveryResult, EventBus, type ExternalSkillProvider, type ExternalToolSource, type FileStat, type FileSystemProvider, type FormField, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FullDisclosureRouter, GoogleGenAiClient, type GoogleGenAiClientConfig, HookRunner, type HookRunnerOptions, type InstalledSkillManifest, 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, MemoryFS, type MemoryStore, type NetworkPolicy, OpenAiCompatibleClient, type OpenAiCompatibleClientConfig, ProgressiveRouter, READ_SKILL_FILE_INPUT_SCHEMA, READ_SKILL_FILE_TOOL, READ_SKILL_FILE_TOOL_NAME, RUN_SNAPSHOT_SCHEMA_VERSION, type RemoteUrlPolicy, type RenderBlock, type RenderResultRequest, type RouteResult, type RunResult, type RunSnapshot, type RunSnapshotStore, type RunTerminationReason, type RuntimePhase, type RuntimeRun, type RuntimeSession, type RuntimeSessionHandle, SKILLS_LOCKFILE, SKILL_MANIFEST_FILE, SKILL_NAME_MAX_LENGTH, SKILL_NAME_PATTERN, SKILL_PACK_FILE, type SchemaInferer, type ScriptExecutionContext, type ScriptExecutor, SerializingMemoryStore, type SkillCatalog, type SkillCatalogEntry, SkillDiscovery, type SkillDocument, type SkillInstallSource, type SkillIssue, type SkillLocation, type SkillManifest, type SkillMetadata, type SkillPackManifest, SkillReader, type SkillRouter, type SkillSource, type SkillStateGuard, type SkillsLockfile, type ToolDefinition, type ToolResolution, type ToolResult, type TraceClock, type TraceEvent, type TraceEventType, TraceRecorder, type UiBridge, type UiSurface, type UiSurfaceAction, type UiSurfaceActionRequest, type UiSurfaceActionResponse, type UiSurfaceDrafts, type UiSurfaceEvent, type UiSurfaceFormField, type UiSurfacePatch, type UiSurfaceSnapshot, type ValidationReport, type VercelToolSpec, type VerifyResult, type WebSkillApi, WebSkillError, type WebSkillErrorCode, WebSkillRuntime, type WebSkillRuntimeDeps, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, escapeXml, exportSkills, extractChartSpec, extractUiSurfaceEvents, fromVercelResult, fromVercelStreamPart, isNetworkAllowed, isValidSkillName, jsonRenderer, mergeCatalogEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, readResponseWithLimit, renderAvailableSkillsXml, renderCatalogJson, resolveArchiveLimits, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSurface, validateUiSurfaceEvent, verifyManifest, xmlRenderer };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { A as resolveArchiveLimits, C as messageOf, D as readResponseWithLimit, E as parseSkillPackManifest, F as xmlRenderer, M as unzipWithLimits, N as validateSkills, O as renderAvailableSkillsXml, P as verifyManifest, S as jsonRenderer, T as parseSkillMarkdown, _ as checkSkillRules, a as SKILL_NAME_MAX_LENGTH, b as exportSkills, c as SkillDiscovery, d as assertRemoteUrlAllowed, f as assertSafePathSegment, g as checkDependencyCycles, h as buildManifest, i as SKILL_MANIFEST_FILE, j as resolveInsideRoot, k as renderCatalogJson, l as SkillReader, m as buildCatalog, n as MemoryFS, o as SKILL_NAME_PATTERN, p as atomicWriteText, r as SKILLS_LOCKFILE, s as SKILL_PACK_FILE, t as DEFAULT_ARCHIVE_LIMITS, u as WebSkillError, v as computeDigest, w as normalizePath, x as isValidSkillName, y as escapeXml } from "./dist-BQzncxXg.js";
|
|
2
|
-
import { A as
|
|
2
|
+
import { A as fromVercelStreamPart, B as schemaToForm, C as bridgeError, D as extractChartSpec, E as createWebSkillApi, F as normalizeErrorCode, H as toVercelToolSpecs, I as normalizeToolContent, L as normalizeToolError, M as mergeCatalogEntries, N as networkPolicyLibSource, O as extractUiSurfaceEvents, P as networkUrlHost, R as parseBridgeRequest, S as WebSkillRuntime, T as createScriptContext, U as validateUiSurface, V as toLlmToolSpec, W as validateUiSurfaceEvent, _ as READ_SKILL_FILE_TOOL, a as AnthropicClient, b as SerializingMemoryStore, c as FsArtifactStore, d as FullDisclosureRouter, f as GoogleGenAiClient, g as READ_SKILL_FILE_INPUT_SCHEMA, h as ProgressiveRouter, i as AgentLoop, j as isNetworkAllowed, k as fromVercelResult, l as FsMemoryStore, m as OpenAiCompatibleClient, n as ASK_USER_TOOL, o as CapabilityApproval, p as HookRunner, r as ASK_USER_TOOL_NAME, s as EventBus, t as ASK_USER_INPUT_SCHEMA, u as FsRunSnapshotStore, v as READ_SKILL_FILE_TOOL_NAME, w as buildRenderResult, x as TraceRecorder, y as RUN_SNAPSHOT_SCHEMA_VERSION, z as resolveToolName } from "./dist-B9VLwOME.js";
|
|
3
3
|
|
|
4
|
-
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, AnthropicClient, CapabilityApproval, DEFAULT_ARCHIVE_LIMITS, EventBus, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FullDisclosureRouter, GoogleGenAiClient, HookRunner, MemoryFS, 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, SKILL_PACK_FILE, SerializingMemoryStore, SkillDiscovery, SkillReader, TraceRecorder, WebSkillError, WebSkillRuntime, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, escapeXml, exportSkills, extractChartSpec, fromVercelResult, fromVercelStreamPart, isNetworkAllowed, isValidSkillName, jsonRenderer, mergeCatalogEntries, messageOf, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, readResponseWithLimit, renderAvailableSkillsXml, renderCatalogJson, resolveArchiveLimits, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, unzipWithLimits, validateSkills, verifyManifest, xmlRenderer };
|
|
4
|
+
export { ASK_USER_INPUT_SCHEMA, ASK_USER_TOOL, ASK_USER_TOOL_NAME, AgentLoop, AnthropicClient, CapabilityApproval, DEFAULT_ARCHIVE_LIMITS, EventBus, FsArtifactStore, FsMemoryStore, FsRunSnapshotStore, FullDisclosureRouter, GoogleGenAiClient, HookRunner, MemoryFS, 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, SKILL_PACK_FILE, SerializingMemoryStore, SkillDiscovery, SkillReader, TraceRecorder, WebSkillError, WebSkillRuntime, assertRemoteUrlAllowed, assertSafePathSegment, atomicWriteText, bridgeError, buildCatalog, buildManifest, buildRenderResult, checkDependencyCycles, checkSkillRules, computeDigest, createScriptContext, createWebSkillApi, escapeXml, exportSkills, extractChartSpec, extractUiSurfaceEvents, fromVercelResult, fromVercelStreamPart, isNetworkAllowed, isValidSkillName, jsonRenderer, mergeCatalogEntries, messageOf, networkPolicyLibSource, networkUrlHost, normalizeErrorCode, normalizePath, normalizeToolContent, normalizeToolError, parseBridgeRequest, parseSkillMarkdown, parseSkillPackManifest, readResponseWithLimit, renderAvailableSkillsXml, renderCatalogJson, resolveArchiveLimits, resolveInsideRoot, resolveToolName, schemaToForm, toLlmToolSpec, toVercelToolSpecs, unzipWithLimits, validateSkills, validateUiSurface, validateUiSurfaceEvent, verifyManifest, xmlRenderer };
|