@webskill/sdk 0.2.5 → 0.2.7
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 +2 -2
- package/dist/browser.js +1 -1
- package/dist/catalogComponents-C_V39rbF-B94i0fW7.js +129139 -0
- package/dist/{dist-B77plHjw.js → dist-BdOW8N4V.js} +505 -35
- package/dist/{dist-Chk8iB-E.js → dist-CcMIUXeZ.js} +1 -1
- 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 +94 -93
- package/dist/governance.js +205 -194
- package/dist/{index-CsDJvYGV.d.ts → index-BHL5FWGw.d.ts} +2 -2
- package/dist/index-BNQNSDKg.d.ts +580 -0
- package/dist/{index-DfINBEOy.d.ts → index-BpIK7tJM.d.ts} +35 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/jsonRenderRegistry-9GrWP_hE-CMkryt1H.js +2468 -0
- package/dist/mcp.d.ts +2 -2
- package/dist/mcp.js +1 -1
- package/dist/node.d.ts +3 -3
- package/dist/node.js +2 -2
- package/dist/openUiLibrary-B8-Cvou9-Cu1QZqoT.js +3785 -0
- package/dist/rolldown-runtime-BOF7iYI8.js +55 -0
- package/dist/testing.d.ts +1 -1
- package/dist/{types-CKm5G_eQ-krKWW8WV.d.ts → types-7fnqDVrf-BnRQjVU3.d.ts} +127 -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/ui-vue.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as RenderResultRequest, o as InteractionRequest, s as InteractionResponse, v as UiBridge } from "./types-
|
|
1
|
+
import { _ as RenderResultRequest, o as InteractionRequest, s as InteractionResponse, v as UiBridge } from "./types-7fnqDVrf-BnRQjVU3.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-vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as shapeInteractionValue, P as interactionToFormModel, S as collectValues, dt as renderMiniMarkdown, ut as renderMiniChart } from "./dist-CtBLBbEz.js";
|
|
2
2
|
import { defineComponent, h, reactive, ref } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region ../ui-vue/dist/index.js
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,203 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { mt as
|
|
3
|
-
|
|
4
|
-
//#region src/model/formModel.d.ts
|
|
5
|
-
interface FormModel {
|
|
6
|
-
kind: 'ask' | 'confirm' | 'form' | 'select' | 'authorize';
|
|
7
|
-
title?: string;
|
|
8
|
-
message?: string;
|
|
9
|
-
controls: ControlModel[];
|
|
10
|
-
submitLabel: string;
|
|
11
|
-
cancelLabel?: string;
|
|
12
|
-
}
|
|
13
|
-
interface ControlModel {
|
|
14
|
-
name: string;
|
|
15
|
-
label: string;
|
|
16
|
-
control: 'text' | 'number' | 'boolean' | 'select' | 'textarea';
|
|
17
|
-
required?: boolean;
|
|
18
|
-
description?: string;
|
|
19
|
-
defaultValue?: unknown;
|
|
20
|
-
options?: Array<{
|
|
21
|
-
label: string;
|
|
22
|
-
value: unknown;
|
|
23
|
-
}>;
|
|
24
|
-
}
|
|
25
|
-
/** 提交值按请求类型归形(WebFormBridge 与框架组件库共享单一来源) */
|
|
26
|
-
declare function shapeInteractionValue(model: FormModel, values: Record<string, unknown>): unknown;
|
|
27
|
-
/** 五类 InteractionRequest → 统一中间模型(框架无关) */
|
|
28
|
-
declare function interactionToFormModel(request: InteractionRequest): FormModel;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/model/collectValues.d.ts
|
|
31
|
-
interface CollectedValues {
|
|
32
|
-
values: Record<string, unknown>;
|
|
33
|
-
/** required 但为空的控件名(阻止提交) */
|
|
34
|
-
missingRequired: string[];
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 严格类型化控件值收集:
|
|
38
|
-
* - number 空串 → undefined(非 0);非数值输入(NaN)按缺失处理(required 时入 missingRequired)
|
|
39
|
-
* - select 用 option 值本身经 JSON 编码比对命中(对象值可正确命中)
|
|
40
|
-
* - required 空值列入 missingRequired(由调用方阻止提交并标记)
|
|
41
|
-
*/
|
|
42
|
-
declare function collectValues(controls: ControlModel[], container: ParentNode): CollectedValues;
|
|
43
|
-
//#endregion
|
|
44
|
-
//#region src/markdown/miniMarkdown.d.ts
|
|
45
|
-
/**
|
|
46
|
-
* 最小子集 markdown → DOM:标题(#..###)、无序列表、代码块(```)、加粗、链接。
|
|
47
|
-
* 全部内容经 textContent 写入,用户内容天然转义防 HTML 注入。
|
|
48
|
-
*/
|
|
49
|
-
declare function renderMiniMarkdown(text: string, doc: Document): HTMLElement;
|
|
50
|
-
//#endregion
|
|
51
|
-
//#region src/chart/miniChart.d.ts
|
|
52
|
-
/** 固定 8 色循环调色板 */
|
|
53
|
-
declare const CHART_PALETTE: readonly ["#4e79a7", "#f28e2b", "#e15759", "#76b7b2", "#59a14f", "#edc948", "#b07aa1", "#ff9da7"];
|
|
54
|
-
/**
|
|
55
|
-
* ChartSpec → SVG(bar 等宽柱 + 值标签;line 折线 + 点;pie 扇形 + 图例;空数据容错)
|
|
56
|
-
* @stable
|
|
57
|
-
*/
|
|
58
|
-
declare function renderMiniChart(chart: ChartSpec, doc: Document): SVGSVGElement;
|
|
59
|
-
/** A2UI/OpenUI 降级:chart → table(labels 为首列,series 各为一列) */
|
|
60
|
-
declare function chartToTable(chart: ChartSpec): {
|
|
61
|
-
type: 'table';
|
|
62
|
-
columns: string[];
|
|
63
|
-
rows: unknown[][];
|
|
64
|
-
};
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region src/web/webFormBridge.d.ts
|
|
67
|
-
/**
|
|
68
|
-
* 框架无关原生 DOM 的 UiBridge:request 渲染表单并返回 Promise
|
|
69
|
-
* (提交 resolve / 取消 {cancelled:true}),完成后卸载 DOM。
|
|
70
|
-
* document 可注入(jsdom 测试);BEM class 样式可覆写。
|
|
71
|
-
*/
|
|
72
|
-
declare class WebFormBridge implements UiBridge {
|
|
73
|
-
#private;
|
|
74
|
-
constructor(options: {
|
|
75
|
-
mount: HTMLElement;
|
|
76
|
-
document?: Document;
|
|
77
|
-
styles?: boolean;
|
|
78
|
-
});
|
|
79
|
-
request(input: InteractionRequest): Promise<InteractionResponse>;
|
|
80
|
-
/** 尽力取消等待中的 request(超时后清理遗留表单) */
|
|
81
|
-
cancel(id: string): void;
|
|
82
|
-
renderResult(input: RenderResultRequest): Promise<void>;
|
|
83
|
-
progress(input: {
|
|
84
|
-
runId: string;
|
|
85
|
-
message: string;
|
|
86
|
-
value?: number;
|
|
87
|
-
}): Promise<void>;
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
//#region src/web/resultRenderer.d.ts
|
|
91
|
-
/** RenderBlock → DOM(markdown/json/table/image/file/chart 六种) */
|
|
92
|
-
declare function renderBlocks(container: HTMLElement, blocks: RenderBlock[], doc: Document): void;
|
|
93
|
-
/** 完整 RenderResultRequest → DOM(summary 头 + blocks) */
|
|
94
|
-
declare function renderRenderResult(request: RenderResultRequest, doc: Document): HTMLElement;
|
|
95
|
-
//#endregion
|
|
96
|
-
//#region src/web/styles.d.ts
|
|
97
|
-
/** 最小样式(BEM class,应用可整体覆写) */
|
|
98
|
-
declare const WEBSKILL_STYLES_CSS = "\n.webskill-form { display: block; padding: 12px; border: 1px solid #d0d0d0; border-radius: 8px; font-family: system-ui, sans-serif; max-width: 420px; }\n.webskill-form__title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }\n.webskill-form__message { margin: 0 0 10px; font-size: 14px; }\n.webskill-form__control { margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }\n.webskill-form__control--invalid .webskill-form__input { border-color: #d33; }\n.webskill-form__label { font-size: 13px; font-weight: 500; }\n.webskill-form__label-required::after { content: ' *'; color: #d33; }\n.webskill-form__description { font-size: 12px; color: #666; }\n.webskill-form__error { font-size: 12px; color: #d33; display: none; }\n.webskill-form__control--invalid .webskill-form__error { display: block; }\n.webskill-form__input { padding: 6px 8px; border: 1px solid #bbb; border-radius: 4px; font-size: 14px; font-family: inherit; }\n.webskill-form__actions { display: flex; gap: 8px; margin-top: 12px; }\n.webskill-form__button { padding: 6px 14px; border-radius: 4px; border: 1px solid #bbb; background: #fff; cursor: pointer; font-size: 14px; }\n.webskill-form__button--primary { background: #2563eb; border-color: #2563eb; color: #fff; }\n.webskill-form__button--ghost { background: transparent; }\n.webskill-result { font-family: system-ui, sans-serif; font-size: 14px; }\n.webskill-result__summary { font-size: 12px; color: #666; margin-bottom: 6px; }\n.webskill-result__json { background: #f5f5f5; padding: 8px; border-radius: 4px; overflow-x: auto; }\n.webskill-result__file { padding: 4px 0; font-size: 13px; }\n.webskill-md pre { background: #f5f5f5; padding: 8px; border-radius: 4px; overflow-x: auto; }\n.webskill-md h1, .webskill-md h2, .webskill-md h3 { margin: 8px 0 4px; }\n.webskill-md p { margin: 4px 0; }\n.webskill-md ul { margin: 4px 0; padding-left: 20px; }\n";
|
|
99
|
-
/** 每个 document 只注入一次 */
|
|
100
|
-
declare function ensureStyles(doc: Document): void;
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region src/adapters/vercel/vercelPayload.d.ts
|
|
103
|
-
/** Vercel AI SDK v7 ToolCallPart 兼容结构 */
|
|
104
|
-
interface VercelToolInvocation {
|
|
105
|
-
type: 'tool-call';
|
|
106
|
-
toolCallId: string;
|
|
107
|
-
toolName: string;
|
|
108
|
-
input: unknown;
|
|
109
|
-
}
|
|
110
|
-
declare const VERCEL_INTERACTION_TOOL_NAME = "webskill_interaction";
|
|
111
|
-
/** InteractionRequest → SDK tool UI 结构(应用聊天 UI 直接消费) */
|
|
112
|
-
declare function toVercelToolInvocation(request: InteractionRequest): VercelToolInvocation;
|
|
113
|
-
/** SDK 回传(tool result / output)→ InteractionResponse */
|
|
114
|
-
declare function fromVercelToolResult(part: unknown): InteractionResponse;
|
|
115
|
-
//#endregion
|
|
116
|
-
//#region src/adapters/vercel/vercelUiBridge.d.ts
|
|
117
|
-
/**
|
|
118
|
-
* 薄桥接类:request → SDK tool UI 结构 → 应用的聊天 UI(sendInteraction 回调实现)
|
|
119
|
-
* → SDK 回传 → InteractionResponse。
|
|
120
|
-
*/
|
|
121
|
-
declare class VercelUiBridge implements UiBridge {
|
|
122
|
-
#private;
|
|
123
|
-
constructor(deps: {
|
|
124
|
-
sendInteraction: (invocation: VercelToolInvocation) => Promise<unknown>;
|
|
125
|
-
});
|
|
126
|
-
request(input: InteractionRequest): Promise<InteractionResponse>;
|
|
127
|
-
}
|
|
128
|
-
//#endregion
|
|
129
|
-
//#region src/adapters/openui/openuiLang.d.ts
|
|
130
|
-
/**
|
|
131
|
-
* InteractionRequest ↔ openui-lang 双向转换。
|
|
132
|
-
* openui-lang 语法(@openuidev/react-lang 实测):
|
|
133
|
-
* - 每行一条语句 `identifier = Expression`,`root = Component(...)` 为入口
|
|
134
|
-
* - 组件调用参数为位置参数;字符串双引号反斜杠转义
|
|
135
|
-
* - 组件词汇(与应用 Library 约定):Form(title, children)、
|
|
136
|
-
* Text(content)(纯展示文本,authorize 的能力描述用)、
|
|
137
|
-
* TextField(name, label, required?, defaultValue?)、NumberField、BooleanField(name, label, default?)、
|
|
138
|
-
* SelectField(name, label, options)、SubmitButton(label, actionType, requestId)、
|
|
139
|
-
* CancelButton(label, actionType, requestId)
|
|
140
|
-
*/
|
|
141
|
-
declare const OPENUI_SUBMIT_ACTION = "webskill:submit";
|
|
142
|
-
declare const OPENUI_CANCEL_ACTION = "webskill:cancel";
|
|
143
|
-
/** authorize 的 Allow 专用动作(提交即批准 → value:true;Deny 走 cancel → cancelled:true) */
|
|
144
|
-
declare const OPENUI_AUTHORIZE_ACTION = "webskill:authorize";
|
|
145
|
-
/** @experimental */
|
|
146
|
-
declare function toOpenUiLang(request: InteractionRequest): string;
|
|
147
|
-
/**
|
|
148
|
-
* OpenUI ActionEvent → InteractionResponse(formState 优先,取消单独分支)
|
|
149
|
-
* @experimental
|
|
150
|
-
*/
|
|
151
|
-
declare function fromOpenUiAction(action: unknown): InteractionResponse;
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region src/adapters/a2ui/a2uiMessages.d.ts
|
|
154
|
-
/**
|
|
155
|
-
* InteractionRequest → A2UI 协议消息(v0.9.1,Basic Catalog)。
|
|
156
|
-
* 依据 https://a2ui.org/specification/v0.9-a2ui/:
|
|
157
|
-
* - 信封 {version, createSurface|updateComponents|updateDataModel|deleteSurface}
|
|
158
|
-
* - 组件为扁平邻接表(id 引用),root 必需
|
|
159
|
-
* - 输入组件与数据模型经 JSON Pointer 双向绑定;action.context 回传
|
|
160
|
-
* - createSurface.sendDataModel: true → 客户端动作时携带完整数据模型
|
|
161
|
-
*
|
|
162
|
-
* action 约定:submit → {name: 'webskill:submit', context: {requestId}};
|
|
163
|
-
* cancel → {name: 'webskill:cancel', context: {requestId}}。
|
|
164
|
-
*/
|
|
165
|
-
declare const A2UI_VERSION = "v0.9.1";
|
|
166
|
-
declare const A2UI_BASIC_CATALOG_ID = "https://a2ui.org/specification/v0_9/catalogs/basic/catalog.json";
|
|
167
|
-
declare const A2UI_SUBMIT_ACTION = "webskill:submit";
|
|
168
|
-
declare const A2UI_CANCEL_ACTION = "webskill:cancel";
|
|
169
|
-
interface A2uiMessage {
|
|
170
|
-
version: string;
|
|
171
|
-
[key: string]: unknown;
|
|
172
|
-
}
|
|
173
|
-
/** @experimental */
|
|
174
|
-
declare function toA2uiMessages(request: InteractionRequest): A2uiMessage[];
|
|
175
|
-
/**
|
|
176
|
-
* 按 InteractionRequest.type 解码提交值(绑定模型原样回传的是表单对象):
|
|
177
|
-
* confirm 仅 confirmed===true 批准;select 还原原始 option 值(非字符串值经 JSON 编码比对);
|
|
178
|
-
* form 的 number 字段转 number(NaN 保留原值);ask 取 answer;authorize 提交即批准。
|
|
179
|
-
* 纯转换器:任何直接使用 fromA2uiAction 的消费者都应经此拿到正确类型。
|
|
180
|
-
* @experimental
|
|
181
|
-
*/
|
|
182
|
-
declare function decodeInteractionResponse(request: InteractionRequest, response: InteractionResponse): InteractionResponse;
|
|
183
|
-
/**
|
|
184
|
-
* A2UI client→server action 事件 → InteractionResponse。
|
|
185
|
-
* 传入 request 时按类型解码提交值(见 decodeInteractionResponse)。
|
|
186
|
-
* @experimental
|
|
187
|
-
*/
|
|
188
|
-
declare function fromA2uiAction(event: unknown, request?: InteractionRequest): InteractionResponse;
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region src/a2uiRuntime/litRendererBridge.d.ts
|
|
191
|
-
/** @experimental */
|
|
192
|
-
declare class LitRendererBridge implements UiBridge {
|
|
193
|
-
#private;
|
|
194
|
-
constructor(deps: {
|
|
195
|
-
mount: HTMLElement;
|
|
196
|
-
document?: Document;
|
|
197
|
-
});
|
|
198
|
-
request(input: InteractionRequest): Promise<InteractionResponse>;
|
|
199
|
-
/** runtime 交互超时/取消:移除 surface 并以 cancelled resolve pending Promise(防悬挂 + DOM 残留) */
|
|
200
|
-
cancel(id: string): void;
|
|
201
|
-
}
|
|
202
|
-
//#endregion
|
|
203
|
-
export { A2UI_BASIC_CATALOG_ID, A2UI_CANCEL_ACTION, A2UI_SUBMIT_ACTION, A2UI_VERSION, type A2uiMessage, CHART_PALETTE, type CollectedValues, type ControlModel, type FormModel, LitRendererBridge, OPENUI_AUTHORIZE_ACTION, OPENUI_CANCEL_ACTION, OPENUI_SUBMIT_ACTION, VERCEL_INTERACTION_TOOL_NAME, type VercelToolInvocation, VercelUiBridge, WEBSKILL_STYLES_CSS, WebFormBridge, buildRenderResult, chartToTable, collectValues, decodeInteractionResponse, ensureStyles, fromA2uiAction, fromOpenUiAction, fromVercelToolResult, interactionToFormModel, renderBlocks, renderMiniChart, renderMiniMarkdown, renderRenderResult, shapeInteractionValue, toA2uiMessages, toOpenUiLang, toVercelToolInvocation };
|
|
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 };
|
package/dist/ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as buildRenderResult } from "./dist-
|
|
2
|
-
import { C as
|
|
1
|
+
import { w as buildRenderResult } from "./dist-BdOW8N4V.js";
|
|
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
|
-
export { A2UI_BASIC_CATALOG_ID, A2UI_CANCEL_ACTION, A2UI_SUBMIT_ACTION, A2UI_VERSION, CHART_PALETTE, LitRendererBridge, OPENUI_AUTHORIZE_ACTION, OPENUI_CANCEL_ACTION, OPENUI_SUBMIT_ACTION, VERCEL_INTERACTION_TOOL_NAME, VercelUiBridge, WEBSKILL_STYLES_CSS, WebFormBridge, buildRenderResult, chartToTable, collectValues, decodeInteractionResponse, ensureStyles, fromA2uiAction, fromOpenUiAction, fromVercelToolResult, interactionToFormModel, renderBlocks, renderMiniChart, renderMiniMarkdown, renderRenderResult, shapeInteractionValue, toA2uiMessages, toOpenUiLang, toVercelToolInvocation };
|
|
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 };
|