@webskill/sdk 0.2.7 → 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.
@@ -1,5 +1,5 @@
1
1
  import { ft as uiCatalog } from "./dist-CtBLBbEz.js";
2
- import { n as catalogComponentImpls } from "./catalogComponents-C_V39rbF-B94i0fW7.js";
2
+ import { n as catalogComponentImpls } from "./catalogComponents-C_V39rbF-BOHveMWa.js";
3
3
  import { z } from "zod";
4
4
  import { Component, Fragment, createContext, useCallback, useContext, useEffect, useInsertionEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -151,6 +151,7 @@ function setupNetworkGuards(task) {
151
151
  */
152
152
  const internalExit = process.reallyExit.bind(process);
153
153
  function stripProcessEscapeHatches() {
154
+ const remaining = [];
154
155
  for (const key of [
155
156
  "binding",
156
157
  "_linkedBinding",
@@ -158,9 +159,17 @@ function stripProcessEscapeHatches() {
158
159
  "openStdin",
159
160
  "reallyExit",
160
161
  "abort"
161
- ]) try {
162
- Reflect.deleteProperty(process, key);
163
- } catch {}
162
+ ]) {
163
+ try {
164
+ Reflect.deleteProperty(process, key);
165
+ } catch {}
166
+ if (key in process) remaining.push(key);
167
+ }
168
+ if (remaining.length > 0) {
169
+ const err = /* @__PURE__ */ new Error(`Sandbox hardening failed: cannot remove process escape hatches (${remaining.join(", ")})`);
170
+ err.code = "TOOL_EXECUTION_FAILED";
171
+ throw err;
172
+ }
164
173
  }
165
174
  async function main() {
166
175
  const task = workerData;
@@ -1,5 +1,5 @@
1
- import { K as SkillInstallSource, M as FileStat, N as FileSystemProvider, O as ArchiveLimits, P as JsonSchema, Y as SkillManifest, _ as RenderResultRequest, et as SkillsLockfile, nt as VerifyResult, o as InteractionRequest, s as InteractionResponse, v as UiBridge } from "./types-7fnqDVrf-BnRQjVU3.js";
2
- import { N as NetworkPolicy, Q as ScriptExecutor, X as SchemaInferer, Z as ScriptExecutionContext, b as FsArtifactStore, d as BridgeCapabilities, it as ToolResult, nt as ToolDefinition, u as ApprovalScope, x as FsMemoryStore } from "./index-BpIK7tJM.js";
1
+ import { K as SkillInstallSource, M as FileStat, N as FileSystemProvider, O as ArchiveLimits, P as JsonSchema, U as SkillCatalogEntry, Y as SkillManifest, _ as RenderResultRequest, et as SkillsLockfile, nt as VerifyResult, o as InteractionRequest, s as InteractionResponse, v as UiBridge } from "./types-AmKCKJn_-BogJPQHU.js";
2
+ import { N as NetworkPolicy, Q as ScriptExecutor, X as SchemaInferer, Z as ScriptExecutionContext, b as FsArtifactStore, d as BridgeCapabilities, it as ToolResult, nt as ToolDefinition, u as ApprovalScope, x as FsMemoryStore } from "./index-QrHtAudz.js";
3
3
  import { Readable, Writable } from "node:stream";
4
4
  //#region ../node/dist/index.d.ts
5
5
  //#region src/fs/nodeFs.d.ts
@@ -237,4 +237,129 @@ declare function exportArchive(fs: FileSystemProvider, skillRoot: string, option
237
237
  /** 只解出归档中的 webskill.skill-manifest.json 条目(安装前预览) */
238
238
  declare function readArchiveManifest(fs: FileSystemProvider, archivePath: string): Promise<SkillManifest>;
239
239
  //#endregion
240
- export { NodeScriptExecutor as a, ProcessSandboxOptions as c, SkillManager as d, exportArchive as f, NodeFS as i, SandboxOptions as l, FileArtifactStore as n, OxcSchemaInferer as o, readArchiveManifest as p, FileMemoryStore as r, ProcessSandboxExecutor as s, CliUiBridge as t, SandboxedScriptExecutor as u };
240
+ //#region ../governance/dist/skillVersionStore-B7rGjtMi.d.ts
241
+ //#region src/types.d.ts
242
+ type CandidateStatus = 'draft' | 'pending-review' | 'approved' | 'published' | 'rejected';
243
+ type CandidateSource = 'runtime-miss' | 'document' | 'manual';
244
+ type CandidateRisk = 'low' | 'medium' | 'high';
245
+ interface CandidateFile {
246
+ path: string;
247
+ kind: 'skill-md' | 'script' | 'reference' | 'asset';
248
+ content: string;
249
+ }
250
+ interface CandidateSkill {
251
+ id: string;
252
+ name: string;
253
+ description: string;
254
+ status: CandidateStatus;
255
+ source: CandidateSource;
256
+ risk: CandidateRisk;
257
+ riskReasons: string[];
258
+ files: CandidateFile[];
259
+ suggestedTests?: string[];
260
+ createdAt: string;
261
+ updatedAt: string;
262
+ metadata?: Record<string, unknown>;
263
+ }
264
+ interface AuditEvent {
265
+ id: string;
266
+ type: string;
267
+ target: string;
268
+ actor?: string;
269
+ ts: string;
270
+ data?: Record<string, unknown>;
271
+ /** hash 链:上一条事件的 hash(首条为 GENESIS) */
272
+ prevHash?: string;
273
+ /** 本事件规范化载荷 + prevHash 的 sha256 */
274
+ hash?: string;
275
+ }
276
+ interface AuditLog {
277
+ append(event: Omit<AuditEvent, 'id' | 'ts'> & {
278
+ id?: string;
279
+ ts?: string;
280
+ }): Promise<AuditEvent>;
281
+ query(filter: {
282
+ target?: string;
283
+ type?: string;
284
+ since?: string;
285
+ }): Promise<AuditEvent[]>;
286
+ }
287
+ interface SkillVersion {
288
+ versionId: string;
289
+ parentVersionId?: string;
290
+ createdAt: string;
291
+ reason: string;
292
+ manifest: SkillManifest;
293
+ auditEventId?: string;
294
+ /** 发布时捕获的技能归档(zip 相对路径,applyRollback 恢复用;0.2.0 起记录) */
295
+ archivePath?: string;
296
+ }
297
+ type SkillState = 'active' | 'quarantined' | 'deprecated' | 'disabled';
298
+ //#endregion
299
+ //#region src/candidate/candidateStore.d.ts
300
+ /** 逐文件持久化的候选存储:<managedRoot>/.webskill/candidates/<id>.json */
301
+ declare class CandidateStore {
302
+ #private;
303
+ constructor(deps: {
304
+ root: string;
305
+ fs: FileSystemProvider;
306
+ });
307
+ save(candidate: CandidateSkill): Promise<void>;
308
+ get(id: string): Promise<CandidateSkill>;
309
+ list(): Promise<CandidateSkill[]>;
310
+ updateStatus(id: string, status: CandidateStatus, now?: string): Promise<CandidateSkill>;
311
+ }
312
+ /** 硬门禁:仅 published 可转换为 Catalog 条目,否则 APPROVAL_REQUIRED */
313
+ declare function candidateToCatalogEntry(candidate: CandidateSkill): SkillCatalogEntry;
314
+ //#endregion
315
+ //#region src/approval/policies.d.ts
316
+ interface ApprovalDecision {
317
+ needsHuman: boolean;
318
+ reason: string;
319
+ }
320
+ interface ApprovalPolicy {
321
+ evaluate(candidate: CandidateSkill): ApprovalDecision;
322
+ }
323
+ /** 默认策略:任何候选都必须人工审批 */
324
+ declare class AlwaysHumanApprovalPolicy implements ApprovalPolicy {
325
+ evaluate(candidate: CandidateSkill): ApprovalDecision;
326
+ }
327
+ /** 规则组合策略:首个命中的规则胜出,全部未命中走 fallback(默认 AlwaysHuman) */
328
+ declare class CompositeApprovalPolicy implements ApprovalPolicy {
329
+ #private;
330
+ constructor(rules: Array<(candidate: CandidateSkill) => ApprovalDecision | undefined>, fallback?: ApprovalPolicy);
331
+ evaluate(candidate: CandidateSkill): ApprovalDecision;
332
+ }
333
+ //#endregion
334
+ //#region src/versioning/skillVersionStore.d.ts
335
+ /** 版本存储:manifest 快照 + parentVersionId 链;回滚 = 追加新版本(谱系不断)。
336
+ * 保留策略:maxArchivesPerSkill(默认 5)超出时清理最旧版本(json + zip 归档一并删除)。 */
337
+ declare class SkillVersionStore {
338
+ #private;
339
+ constructor(deps: {
340
+ root: string;
341
+ fs: FileSystemProvider;
342
+ now?: () => string;
343
+ createId?: () => string;
344
+ audit?: AuditLog;
345
+ /** 每技能保留的版本/归档上限(默认 5,超出清理最旧) */
346
+ maxArchivesPerSkill?: number;
347
+ });
348
+ add(skillName: string, input: {
349
+ reason: string;
350
+ manifest: SkillManifest;
351
+ parentVersionId?: string;
352
+ archive?: Uint8Array;
353
+ }): Promise<SkillVersion>;
354
+ /** 读取版本归档字节(applyRollback 用;未捕获归档的旧版本 → GOVERNANCE_FAILED) */
355
+ readArchive(skillName: string, versionId: string): Promise<Uint8Array>;
356
+ list(skillName: string): Promise<SkillVersion[]>;
357
+ get(skillName: string, versionId: string): Promise<SkillVersion>;
358
+ /** 回滚:基于旧 manifest 追加新版本 + skill.rolled_back 审计 */
359
+ rollback(skillName: string, targetVersionId: string, input: {
360
+ actor?: string;
361
+ reason?: string;
362
+ }): Promise<SkillVersion>;
363
+ }
364
+ //#endregion
365
+ export { ProcessSandboxExecutor as C, SkillManager as D, SandboxedScriptExecutor as E, exportArchive as O, OxcSchemaInferer as S, SandboxOptions as T, CliUiBridge as _, AuditLog as a, NodeFS as b, CandidateSkill as c, CandidateStore as d, CompositeApprovalPolicy as f, candidateToCatalogEntry as g, SkillVersionStore as h, AuditEvent as i, readArchiveManifest as k, CandidateSource as l, SkillVersion as m, ApprovalDecision as n, CandidateFile as o, SkillState as p, ApprovalPolicy as r, CandidateRisk as s, AlwaysHumanApprovalPolicy as t, CandidateStatus as u, FileArtifactStore as v, ProcessSandboxOptions as w, NodeScriptExecutor as x, FileMemoryStore as y };
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as LlmClient, d as LlmResponse, f as LlmStreamEvent, h as MemoryStore, l as LlmCompleteInput, n as ArtifactStore, o as InteractionRequest, s as InteractionResponse, t as Artifact, v as UiBridge } from "./types-7fnqDVrf-BnRQjVU3.js";
1
+ import { c as LlmClient, d as LlmResponse, f as LlmStreamEvent, h as MemoryStore, l as LlmCompleteInput, n as ArtifactStore, o as InteractionRequest, s as InteractionResponse, t as Artifact, v as UiBridge } from "./types-AmKCKJn_-BogJPQHU.js";
2
2
  import { a as loadGoogleConfigFromEnv, i as loadAnthropicConfigFromEnv, n as LlmEnvConfig, o as loadLlmConfigFromEnv, r as ProviderEnvConfig } from "./env-BPUBZCwJ-4jat_SVG.js";
3
3
  //#region ../runtime/dist/testing.d.ts
4
4
  //#region src/llm/mockLlmClient.d.ts
@@ -405,7 +405,7 @@ declare function escapeXml(text: string): string;
405
405
  declare function renderAvailableSkillsXml(catalog: SkillCatalog): string;
406
406
  declare const xmlRenderer: CatalogRenderer;
407
407
  //#endregion
408
- //#region ../runtime/dist/types-7fnqDVrf.d.ts
408
+ //#region ../runtime/dist/types-AmKCKJn_.d.ts
409
409
  //#region src/llm/streamTypes.d.ts
410
410
  /** 流式 LLM 事件(OpenAI SSE / Vercel fullStream 统一映射) */
411
411
  type LlmStreamEvent = {
@@ -437,6 +437,8 @@ interface LlmToolCall {
437
437
  id: string;
438
438
  name: string;
439
439
  arguments: Record<string, unknown>;
440
+ /** 流式拼接后的 arguments 不是合法 JSON 时的错误描述;设置时 arguments 不可信 */
441
+ argumentsParseError?: string;
440
442
  }
441
443
  interface LlmResponse {
442
444
  content?: string;
@@ -1,5 +1,5 @@
1
- import { C as UiSurfaceDrafts, D as UiSurfaceSnapshot, S as UiSurfaceActionResponse, _ as RenderResultRequest, b as UiSurfaceAction, o as InteractionRequest, s as InteractionResponse, v as UiBridge, w as UiSurfaceEvent, x as UiSurfaceActionRequest } from "./types-7fnqDVrf-BnRQjVU3.js";
2
- import { R as UiSpecNode } from "./index-BNQNSDKg.js";
1
+ import { C as UiSurfaceDrafts, D as UiSurfaceSnapshot, S as UiSurfaceActionResponse, _ as RenderResultRequest, b as UiSurfaceAction, o as InteractionRequest, s as InteractionResponse, v as UiBridge, w as UiSurfaceEvent, x as UiSurfaceActionRequest } from "./types-AmKCKJn_-BogJPQHU.js";
2
+ import { B as UiSpecNode } from "./index-7DVaZJU7.js";
3
3
  import { z } from "zod";
4
4
  import { ComponentType, ReactNode } from "react";
5
5
  //#region ../ui-react/dist/index.d.ts
package/dist/ui-react.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { u as WebSkillError } from "./dist-BQzncxXg.js";
2
- import { H as validateUiSurface, U as validateUiSurfaceEvent } from "./dist-BdOW8N4V.js";
2
+ import { U as validateUiSurface, W as validateUiSurfaceEvent } from "./dist-B9VLwOME.js";
3
3
  import { B as shapeInteractionValue, F as isUiSpecSurface, G as toJsonRenderSpec, P as interactionToFormModel, S as collectValues, dt as renderMiniMarkdown, ft as uiCatalog, q as toOpenUiSpecLang, ut as renderMiniChart } from "./dist-CtBLBbEz.js";
4
- import { a as Checkbox, c as DropdownMenuCheckboxItem, d as Input, f as Markdown, g as Textarea, h as Switch, i as Button, l as DropdownMenuContent, m as Separator, n as catalogComponentImpls, o as DataTable, p as Select, r as Badge, s as DropdownMenu, t as EChart, u as DropdownMenuTrigger } from "./catalogComponents-C_V39rbF-B94i0fW7.js";
4
+ import { a as Checkbox, c as DropdownMenuCheckboxItem, d as Input, f as Markdown, g as Textarea, h as Switch, i as Button, l as DropdownMenuContent, m as Separator, n as catalogComponentImpls, o as DataTable, p as Select, r as Badge, s as DropdownMenu, t as EChart, u as DropdownMenuTrigger } from "./catalogComponents-C_V39rbF-BOHveMWa.js";
5
5
  import * as React$1 from "react";
6
6
  import React, { useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -7130,7 +7130,7 @@ function JsonRenderSpecSurface({ spec }) {
7130
7130
  const [unavailable, setUnavailable] = useState(false);
7131
7131
  useEffect(() => {
7132
7132
  let cancelled = false;
7133
- import("./jsonRenderRegistry-9GrWP_hE-CMkryt1H.js").then((loaded) => {
7133
+ import("./jsonRenderRegistry-9GrWP_hE-CQY8bT9w.js").then((loaded) => {
7134
7134
  if (!cancelled) setModule(loaded);
7135
7135
  }).catch(() => {
7136
7136
  if (!cancelled) setUnavailable(true);
@@ -7173,7 +7173,7 @@ function OpenUiSpecSurface({ spec }) {
7173
7173
  const [unavailable, setUnavailable] = useState(false);
7174
7174
  useEffect(() => {
7175
7175
  let cancelled = false;
7176
- import("./openUiLibrary-B8-Cvou9-Cu1QZqoT.js").then((loaded) => {
7176
+ import("./openUiLibrary-B8-Cvou9-D3RsU2EB.js").then((loaded) => {
7177
7177
  if (!cancelled) setModule(loaded);
7178
7178
  }).catch(() => {
7179
7179
  if (!cancelled) setUnavailable(true);
package/dist/ui-vue.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as RenderResultRequest, o as InteractionRequest, s as InteractionResponse, v as UiBridge } from "./types-7fnqDVrf-BnRQjVU3.js";
1
+ import { _ as RenderResultRequest, o as InteractionRequest, s as InteractionResponse, v as UiBridge } from "./types-AmKCKJn_-BogJPQHU.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,3 +1,3 @@
1
- import { mt as buildRenderResult } from "./index-BpIK7tJM.js";
2
- import { $ as ZodRuntime, A as UI_SPEC_COMPONENT, At as toJsonRenderSpec, B as UiSpecValidation, C as OPENUI_SUBMIT_ACTION, Ct as renderMiniMarkdown, D as RENDER_UI_TOOL, Dt as toA2uiSpecMessages, E as OpenUiRuntime, Et as toA2uiMessages, F as UiCatalogToolSourceOptions, Ft as toUiSurfaceActionDispatch, G as VERCEL_SURFACE_DATA_PART_TYPE, H as UiSurfaceDescriptor, I as UiComponentDef, It as toUiSurfaceDescriptor, J as VercelUiBridge, K as VercelSurfaceDataPart, L as UiSpecIssue, Lt as toVercelSurfaceDataPart, M as UiCatalog, Mt as toOpenUiSpecLang, N as UiCatalogInput, Nt as toOpenUiSurfaceLang, O as SurfaceRendererProvenance, Ot as toA2uiSurfaceAction, P as UiCatalogPromptOptions, Pt as toSurface, Q as WebFormBridge, R as UiSpecNode, Rt as toVercelToolInvocation, S as OPENUI_CANCEL_ACTION, St as renderMiniChart, T as OpenUiRendererProps, Tt as shapeInteractionValue, U as VERCEL_INTERACTION_TOOL_NAME, V as UiSurfaceActionDispatch, W as VERCEL_SURFACE_ACTION_DATA_PART_TYPE, X as WEBSKILL_STYLES_CSS, Y as WEBSKILL_A2UI_CATALOG_ID, Z as WEBSKILL_SURFACE_ACTION, _ as FormModel, _t as interactionToFormModel, a as A2UI_SPEC_FORM_PATH, at as createUiCatalogToolSource, b as LoadedOpenUiPeers, bt as loadWebSkillLitCatalog, c as A2UI_VERSION, ct as ensureStyles, d as A2uiMessage, dt as fromA2uiSurfaceAction, et as a2uiComponentSchema, f as A2uiSpecActionEvent, ft as fromOpenUiAction, g as ControlModel, gt as fromVercelToolResult, h as CollectedValues, ht as fromVercelSurfaceAction, i as A2UI_SPEC_ACTION, it as collectValues, j as UiActionDef, jt as toOpenUiLang, k as UI_CATALOG_GROUPS, kt as toA2uiSurfaceMessages, l as A2uiCatalogDefinition, lt as fromA2uiAction, m as CHART_PALETTE, mt as fromUiSurfaceActionDispatch, n as A2UI_CANCEL_ACTION, nt as buildA2uiCatalogDefinition, o as A2UI_SUBMIT_ACTION, ot as decodeInteractionResponse, p as A2uiSpecMessageOptions, pt as fromOpenUiSurfaceAction, q as VercelToolInvocation, r as A2UI_COMMON_TYPES, rt as chartToTable, s as A2UI_SURFACE_ACTION, st as defineUiCatalog, t as A2UI_BASIC_CATALOG_ID, tt as a2uiComponentShapes, u as A2uiComponentShape, ut as fromA2uiSpecAction, v as JsonRenderSpec, vt as isUiSpecSurface, w as OPENUI_SURFACE_ACTION, wt as renderRenderResult, x as OPENUI_AUTHORIZE_ACTION, xt as renderBlocks, y as LitRendererBridge, yt as loadOpenUiPeers, z as UiSpecSurfaceProps, zt as uiCatalog } from "./index-BNQNSDKg.js";
3
- export { A2UI_BASIC_CATALOG_ID, A2UI_CANCEL_ACTION, A2UI_COMMON_TYPES, A2UI_SPEC_ACTION, A2UI_SPEC_FORM_PATH, A2UI_SUBMIT_ACTION, A2UI_SURFACE_ACTION, A2UI_VERSION, type A2uiCatalogDefinition, type A2uiComponentShape, type A2uiMessage, type A2uiSpecActionEvent, type A2uiSpecMessageOptions, CHART_PALETTE, type CollectedValues, type ControlModel, type FormModel, type JsonRenderSpec, LitRendererBridge, type LoadedOpenUiPeers, OPENUI_AUTHORIZE_ACTION, OPENUI_CANCEL_ACTION, OPENUI_SUBMIT_ACTION, OPENUI_SURFACE_ACTION, type OpenUiRendererProps, type OpenUiRuntime, RENDER_UI_TOOL, type SurfaceRendererProvenance, UI_CATALOG_GROUPS, UI_SPEC_COMPONENT, type UiActionDef, type UiCatalog, type UiCatalogInput, type UiCatalogPromptOptions, type UiCatalogToolSourceOptions, type UiComponentDef, type UiSpecIssue, type UiSpecNode, type UiSpecSurfaceProps, type UiSpecValidation, type UiSurfaceActionDispatch, type UiSurfaceDescriptor, VERCEL_INTERACTION_TOOL_NAME, VERCEL_SURFACE_ACTION_DATA_PART_TYPE, VERCEL_SURFACE_DATA_PART_TYPE, type VercelSurfaceDataPart, type VercelToolInvocation, VercelUiBridge, WEBSKILL_A2UI_CATALOG_ID, WEBSKILL_STYLES_CSS, WEBSKILL_SURFACE_ACTION, WebFormBridge, type ZodRuntime, a2uiComponentSchema, a2uiComponentShapes, buildA2uiCatalogDefinition, buildRenderResult, chartToTable, collectValues, createUiCatalogToolSource, decodeInteractionResponse, defineUiCatalog, ensureStyles, fromA2uiAction, fromA2uiSpecAction, fromA2uiSurfaceAction, fromOpenUiAction, fromOpenUiSurfaceAction, fromUiSurfaceActionDispatch, fromVercelSurfaceAction, fromVercelToolResult, interactionToFormModel, isUiSpecSurface, loadOpenUiPeers, loadWebSkillLitCatalog, renderBlocks, renderMiniChart, renderMiniMarkdown, renderRenderResult, shapeInteractionValue, toA2uiMessages, toA2uiSpecMessages, toA2uiSurfaceAction, toA2uiSurfaceMessages, toJsonRenderSpec, toOpenUiLang, toOpenUiSpecLang, toOpenUiSurfaceLang, toSurface, toUiSurfaceActionDispatch, toUiSurfaceDescriptor, toVercelSurfaceDataPart, toVercelToolInvocation, uiCatalog };
1
+ import { mt as buildRenderResult } from "./index-QrHtAudz.js";
2
+ import { $ as WEBSKILL_SURFACE_ACTION, A as SurfaceRendererProvenance, At as toA2uiSurfaceAction, B as UiSpecNode, Bt as toVercelToolInvocation, C as OPENUI_AUTHORIZE_ACTION, Ct as renderBlocks, D as OpenUiRendererProps, Dt as shapeInteractionValue, E as OPENUI_SURFACE_ACTION, Et as renderRenderResult, F as UiCatalogInput, Ft as toOpenUiSurfaceLang, G as VERCEL_INTERACTION_TOOL_NAME, H as UiSpecValidation, I as UiCatalogPromptOptions, It as toSurface, J as VercelSurfaceDataPart, K as VERCEL_SURFACE_ACTION_DATA_PART_TYPE, L as UiCatalogToolSourceOptions, Lt as toUiSurfaceActionDispatch, M as UI_SPEC_COMPONENT, Mt as toJsonRenderSpec, N as UiActionDef, Nt as toOpenUiLang, O as OpenUiRuntime, Ot as toA2uiMessages, P as UiCatalog, Pt as toOpenUiSpecLang, Q as WEBSKILL_STYLES_CSS, R as UiComponentDef, Rt as toUiSurfaceDescriptor, S as LoadedOpenUiPeers, St as loadWebSkillLitCatalog, T as OPENUI_SUBMIT_ACTION, Tt as renderMiniMarkdown, U as UiSurfaceActionDispatch, V as UiSpecSurfaceProps, Vt as uiCatalog, W as UiSurfaceDescriptor, X as VercelUiBridge, Y as VercelToolInvocation, Z as WEBSKILL_A2UI_CATALOG_ID, _ as CollectedValues, _t as fromVercelSurfaceAction, a as A2UI_SPEC_FORM_PATH, at as chartToTable, b as JsonRenderSpec, bt as isUiSpecSurface, c as A2UI_VERSION, ct as decodeInteractionResponse, d as A2uiCatalogHandle, dt as fromA2uiAction, et as WebFormBridge, f as A2uiComponentShape, ft as fromA2uiSpecAction, g as CHART_PALETTE, gt as fromUiSurfaceActionDispatch, h as A2uiSpecMessageOptions, ht as fromOpenUiSurfaceAction, i as A2UI_SPEC_ACTION, it as buildA2uiCatalogDefinition, j as UI_CATALOG_GROUPS, jt as toA2uiSurfaceMessages, k as RENDER_UI_TOOL, kt as toA2uiSpecMessages, l as A2uiCatalogComponent, lt as defineUiCatalog, m as A2uiSpecActionEvent, mt as fromOpenUiAction, n as A2UI_CANCEL_ACTION, nt as a2uiComponentSchema, o as A2UI_SUBMIT_ACTION, ot as collectValues, p as A2uiMessage, pt as fromA2uiSurfaceAction, q as VERCEL_SURFACE_DATA_PART_TYPE, r as A2UI_COMMON_TYPES, rt as a2uiComponentShapes, s as A2UI_SURFACE_ACTION, st as createUiCatalogToolSource, t as A2UI_BASIC_CATALOG_ID, tt as ZodRuntime, u as A2uiCatalogDefinition, ut as ensureStyles, v as ControlModel, vt as fromVercelToolResult, w as OPENUI_CANCEL_ACTION, wt as renderMiniChart, x as LitRendererBridge, xt as loadOpenUiPeers, y as FormModel, yt as interactionToFormModel, z as UiSpecIssue, zt as toVercelSurfaceDataPart } from "./index-7DVaZJU7.js";
3
+ export { A2UI_BASIC_CATALOG_ID, A2UI_CANCEL_ACTION, A2UI_COMMON_TYPES, A2UI_SPEC_ACTION, A2UI_SPEC_FORM_PATH, A2UI_SUBMIT_ACTION, A2UI_SURFACE_ACTION, A2UI_VERSION, type A2uiCatalogComponent, type A2uiCatalogDefinition, type A2uiCatalogHandle, type A2uiComponentShape, type A2uiMessage, type A2uiSpecActionEvent, type A2uiSpecMessageOptions, CHART_PALETTE, type CollectedValues, type ControlModel, type FormModel, type JsonRenderSpec, LitRendererBridge, type LoadedOpenUiPeers, OPENUI_AUTHORIZE_ACTION, OPENUI_CANCEL_ACTION, OPENUI_SUBMIT_ACTION, OPENUI_SURFACE_ACTION, type OpenUiRendererProps, type OpenUiRuntime, RENDER_UI_TOOL, type SurfaceRendererProvenance, UI_CATALOG_GROUPS, UI_SPEC_COMPONENT, type UiActionDef, type UiCatalog, type UiCatalogInput, type UiCatalogPromptOptions, type UiCatalogToolSourceOptions, type UiComponentDef, type UiSpecIssue, type UiSpecNode, type UiSpecSurfaceProps, type UiSpecValidation, type UiSurfaceActionDispatch, type UiSurfaceDescriptor, VERCEL_INTERACTION_TOOL_NAME, VERCEL_SURFACE_ACTION_DATA_PART_TYPE, VERCEL_SURFACE_DATA_PART_TYPE, type VercelSurfaceDataPart, type VercelToolInvocation, VercelUiBridge, WEBSKILL_A2UI_CATALOG_ID, WEBSKILL_STYLES_CSS, WEBSKILL_SURFACE_ACTION, WebFormBridge, type ZodRuntime, a2uiComponentSchema, a2uiComponentShapes, buildA2uiCatalogDefinition, buildRenderResult, chartToTable, collectValues, createUiCatalogToolSource, decodeInteractionResponse, defineUiCatalog, ensureStyles, fromA2uiAction, fromA2uiSpecAction, fromA2uiSurfaceAction, fromOpenUiAction, fromOpenUiSurfaceAction, fromUiSurfaceActionDispatch, fromVercelSurfaceAction, fromVercelToolResult, interactionToFormModel, isUiSpecSurface, loadOpenUiPeers, loadWebSkillLitCatalog, renderBlocks, renderMiniChart, renderMiniMarkdown, renderRenderResult, shapeInteractionValue, toA2uiMessages, toA2uiSpecMessages, toA2uiSurfaceAction, toA2uiSurfaceMessages, toJsonRenderSpec, toOpenUiLang, toOpenUiSpecLang, toOpenUiSurfaceLang, toSurface, toUiSurfaceActionDispatch, toUiSurfaceDescriptor, toVercelSurfaceDataPart, toVercelToolInvocation, uiCatalog };
package/dist/ui.js CHANGED
@@ -1,4 +1,4 @@
1
- import { w as buildRenderResult } from "./dist-BdOW8N4V.js";
1
+ import { w as buildRenderResult } from "./dist-B9VLwOME.js";
2
2
  import { $ as toVercelToolInvocation, A as fromOpenUiSurfaceAction, B as shapeInteractionValue, C as createUiCatalogToolSource, D as fromA2uiSpecAction, E as fromA2uiAction, F as isUiSpecSurface, G as toJsonRenderSpec, H as toA2uiSpecMessages, I as loadOpenUiPeers, J as toOpenUiSurfaceLang, K as toOpenUiLang, L as loadWebSkillLitCatalog, M as fromVercelSurfaceAction, N as fromVercelToolResult, O as fromA2uiSurfaceAction, P as interactionToFormModel, Q as toVercelSurfaceDataPart, R as renderBlocks, S as collectValues, T as ensureStyles, U as toA2uiSurfaceAction, V as toA2uiMessages, W as toA2uiSurfaceMessages, X as toUiSurfaceActionDispatch, Y as toSurface, Z as toUiSurfaceDescriptor, _ as VERCEL_SURFACE_DATA_PART_TYPE, a as A2UI_SUBMIT_ACTION, at as a2uiComponentSchema, b as WEBSKILL_SURFACE_ACTION, c as LitRendererBridge, ct as chartToTable, d as OPENUI_SUBMIT_ACTION, dt as renderMiniMarkdown, f as OPENUI_SURFACE_ACTION, ft as uiCatalog, g as VERCEL_SURFACE_ACTION_DATA_PART_TYPE, h as VERCEL_INTERACTION_TOOL_NAME, i as A2UI_SPEC_FORM_PATH, it as WEBSKILL_A2UI_CATALOG_ID, j as fromUiSurfaceActionDispatch, k as fromOpenUiAction, l as OPENUI_AUTHORIZE_ACTION, lt as defineUiCatalog, m as UI_SPEC_COMPONENT, n as A2UI_CANCEL_ACTION, nt as CHART_PALETTE, o as A2UI_SURFACE_ACTION, ot as a2uiComponentShapes, p as RENDER_UI_TOOL, q as toOpenUiSpecLang, r as A2UI_SPEC_ACTION, rt as UI_CATALOG_GROUPS, s as A2UI_VERSION, st as buildA2uiCatalogDefinition, t as A2UI_BASIC_CATALOG_ID, tt as A2UI_COMMON_TYPES, u as OPENUI_CANCEL_ACTION, ut as renderMiniChart, v as VercelUiBridge, w as decodeInteractionResponse, x as WebFormBridge, y as WEBSKILL_STYLES_CSS, z as renderRenderResult } from "./dist-CtBLBbEz.js";
3
3
 
4
4
  export { A2UI_BASIC_CATALOG_ID, A2UI_CANCEL_ACTION, A2UI_COMMON_TYPES, A2UI_SPEC_ACTION, A2UI_SPEC_FORM_PATH, A2UI_SUBMIT_ACTION, A2UI_SURFACE_ACTION, A2UI_VERSION, CHART_PALETTE, LitRendererBridge, OPENUI_AUTHORIZE_ACTION, OPENUI_CANCEL_ACTION, OPENUI_SUBMIT_ACTION, OPENUI_SURFACE_ACTION, RENDER_UI_TOOL, UI_CATALOG_GROUPS, UI_SPEC_COMPONENT, VERCEL_INTERACTION_TOOL_NAME, VERCEL_SURFACE_ACTION_DATA_PART_TYPE, VERCEL_SURFACE_DATA_PART_TYPE, VercelUiBridge, WEBSKILL_A2UI_CATALOG_ID, WEBSKILL_STYLES_CSS, WEBSKILL_SURFACE_ACTION, WebFormBridge, a2uiComponentSchema, a2uiComponentShapes, buildA2uiCatalogDefinition, buildRenderResult, chartToTable, collectValues, createUiCatalogToolSource, decodeInteractionResponse, defineUiCatalog, ensureStyles, fromA2uiAction, fromA2uiSpecAction, fromA2uiSurfaceAction, fromOpenUiAction, fromOpenUiSurfaceAction, fromUiSurfaceActionDispatch, fromVercelSurfaceAction, fromVercelToolResult, interactionToFormModel, isUiSpecSurface, loadOpenUiPeers, loadWebSkillLitCatalog, renderBlocks, renderMiniChart, renderMiniMarkdown, renderRenderResult, shapeInteractionValue, toA2uiMessages, toA2uiSpecMessages, toA2uiSurfaceAction, toA2uiSurfaceMessages, toJsonRenderSpec, toOpenUiLang, toOpenUiSpecLang, toOpenUiSurfaceLang, toSurface, toUiSurfaceActionDispatch, toUiSurfaceDescriptor, toVercelSurfaceDataPart, toVercelToolInvocation, uiCatalog };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webskill/sdk",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "description": "WebSkill \u2014 browser/Node agent skill runtime (skills, tools, MCP, governance, UI)",
5
5
  "license": "MIT",
6
6
  "type": "module",