@icen.ai/ui 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/AGENTS.md +138 -80
  2. package/README.md +66 -91
  3. package/dist/base.css +208 -179
  4. package/dist/behaviors/accordion.mjs +8 -8
  5. package/dist/behaviors/ai-branch.d.mts +1 -1
  6. package/dist/behaviors/ai-branch.mjs +1010 -94
  7. package/dist/behaviors/ai-chat.d.mts +7 -7
  8. package/dist/behaviors/ai-chat.mjs +1071 -161
  9. package/dist/behaviors/ai-composer.d.mts +44 -12
  10. package/dist/behaviors/ai-composer.mjs +1997 -524
  11. package/dist/behaviors/ai-core.d.mts +1 -1
  12. package/dist/behaviors/ai-core.mjs +1016 -107
  13. package/dist/behaviors/ai-diff.mjs +1019 -127
  14. package/dist/behaviors/ai-feedback.d.mts +1 -1
  15. package/dist/behaviors/ai-feedback.mjs +1035 -126
  16. package/dist/behaviors/ai-panel.d.mts +8 -8
  17. package/dist/behaviors/ai-panel.mjs +1284 -266
  18. package/dist/behaviors/ai-provider.mjs +1003 -101
  19. package/dist/behaviors/ai-threads.d.mts +1 -1
  20. package/dist/behaviors/ai-threads.mjs +1068 -154
  21. package/dist/behaviors/ai-tool.d.mts +2 -2
  22. package/dist/behaviors/ai-tool.mjs +2037 -396
  23. package/dist/behaviors/ai-tools.d.mts +89 -16
  24. package/dist/behaviors/ai-tools.mjs +4448 -372
  25. package/dist/behaviors/autocomplete.d.mts +53 -0
  26. package/dist/behaviors/autocomplete.mjs +1600 -0
  27. package/dist/behaviors/back-top.d.mts +1 -1
  28. package/dist/behaviors/back-top.mjs +951 -14
  29. package/dist/behaviors/carousel.d.mts +1 -1
  30. package/dist/behaviors/carousel.mjs +906 -11
  31. package/dist/behaviors/cascader.d.mts +48 -0
  32. package/dist/behaviors/cascader.mjs +1853 -0
  33. package/dist/behaviors/charts.d.mts +72 -8
  34. package/dist/behaviors/charts.mjs +1901 -256
  35. package/dist/behaviors/code-block.d.mts +36 -0
  36. package/dist/behaviors/code-block.mjs +1611 -0
  37. package/dist/behaviors/command-palette.d.mts +9 -6
  38. package/dist/behaviors/command-palette.mjs +161 -59
  39. package/dist/behaviors/context-menu.d.mts +9 -8
  40. package/dist/behaviors/context-menu.mjs +1112 -44
  41. package/dist/behaviors/controls.d.mts +13 -13
  42. package/dist/behaviors/controls.mjs +989 -130
  43. package/dist/behaviors/copy.d.mts +21 -2
  44. package/dist/behaviors/copy.mjs +1206 -42
  45. package/dist/behaviors/datatable.d.mts +53 -3
  46. package/dist/behaviors/datatable.mjs +1963 -207
  47. package/dist/behaviors/date-picker.d.mts +0 -1
  48. package/dist/behaviors/date-picker.mjs +1340 -293
  49. package/dist/behaviors/design.d.mts +54 -0
  50. package/dist/behaviors/design.mjs +109 -0
  51. package/dist/behaviors/dropdown.d.mts +5 -6
  52. package/dist/behaviors/dropdown.mjs +262 -110
  53. package/dist/behaviors/events.d.mts +120 -3
  54. package/dist/behaviors/events.mjs +47 -2
  55. package/dist/behaviors/feedback.d.mts +30 -0
  56. package/dist/behaviors/feedback.mjs +296 -0
  57. package/dist/behaviors/focus.d.mts +8 -0
  58. package/dist/behaviors/focus.mjs +24 -0
  59. package/dist/behaviors/form-validate.d.mts +102 -0
  60. package/dist/behaviors/form-validate.mjs +6091 -0
  61. package/dist/behaviors/i18n.d.mts +789 -0
  62. package/dist/behaviors/i18n.mjs +1711 -0
  63. package/dist/behaviors/icons.d.mts +93 -0
  64. package/dist/behaviors/icons.mjs +113 -0
  65. package/dist/behaviors/input.d.mts +9 -1
  66. package/dist/behaviors/input.mjs +1056 -60
  67. package/dist/behaviors/kb-access.d.mts +1 -1
  68. package/dist/behaviors/kb-access.mjs +2129 -239
  69. package/dist/behaviors/kb-acl.d.mts +6 -6
  70. package/dist/behaviors/kb-acl.mjs +1119 -179
  71. package/dist/behaviors/kb-answer.mjs +2070 -418
  72. package/dist/behaviors/kb-audit.d.mts +1 -1
  73. package/dist/behaviors/kb-audit.mjs +1076 -154
  74. package/dist/behaviors/kb-canvas.mjs +1100 -177
  75. package/dist/behaviors/kb-chain.mjs +1022 -100
  76. package/dist/behaviors/kb-checkpoint.d.mts +1 -1
  77. package/dist/behaviors/kb-checkpoint.mjs +1319 -169
  78. package/dist/behaviors/kb-chunks.mjs +1152 -213
  79. package/dist/behaviors/kb-citation.d.mts +1 -1
  80. package/dist/behaviors/kb-citation.mjs +1201 -179
  81. package/dist/behaviors/kb-clarify.mjs +1058 -130
  82. package/dist/behaviors/kb-conflict.mjs +1041 -119
  83. package/dist/behaviors/kb-connector.mjs +1104 -176
  84. package/dist/behaviors/kb-core.d.mts +6 -1
  85. package/dist/behaviors/kb-core.mjs +1077 -162
  86. package/dist/behaviors/kb-eval.mjs +1971 -144
  87. package/dist/behaviors/kb-explain.d.mts +1 -1
  88. package/dist/behaviors/kb-explain.mjs +1024 -102
  89. package/dist/behaviors/kb-filter.mjs +2008 -178
  90. package/dist/behaviors/kb-gap.d.mts +1 -1
  91. package/dist/behaviors/kb-gap.mjs +1043 -121
  92. package/dist/behaviors/kb-hittest.d.mts +1 -1
  93. package/dist/behaviors/kb-hittest.mjs +1093 -150
  94. package/dist/behaviors/kb-metadata.mjs +1052 -130
  95. package/dist/behaviors/kb-passage.d.mts +2 -2
  96. package/dist/behaviors/kb-passage.mjs +1101 -161
  97. package/dist/behaviors/kb-pipeline.d.mts +2 -2
  98. package/dist/behaviors/kb-pipeline.mjs +1082 -162
  99. package/dist/behaviors/kb-qa.mjs +1088 -160
  100. package/dist/behaviors/kb-rerank.mjs +1047 -114
  101. package/dist/behaviors/kb-retrieval.mjs +2063 -224
  102. package/dist/behaviors/kb-review.mjs +1990 -159
  103. package/dist/behaviors/kb-sandbox.d.mts +1 -1
  104. package/dist/behaviors/kb-sandbox.mjs +1026 -104
  105. package/dist/behaviors/kb-segment.mjs +1111 -179
  106. package/dist/behaviors/kb-select.d.mts +24 -0
  107. package/dist/behaviors/kb-select.mjs +1989 -0
  108. package/dist/behaviors/kb-sources.d.mts +1 -1
  109. package/dist/behaviors/kb-sources.mjs +1084 -170
  110. package/dist/behaviors/kb-sql.d.mts +1 -1
  111. package/dist/behaviors/kb-sql.mjs +1143 -226
  112. package/dist/behaviors/kb-trace.d.mts +1 -1
  113. package/dist/behaviors/kb-trace.mjs +1042 -128
  114. package/dist/behaviors/kb-visibility.mjs +1086 -158
  115. package/dist/behaviors/kb-who-can.mjs +1974 -137
  116. package/dist/behaviors/mentions.d.mts +93 -0
  117. package/dist/behaviors/mentions.mjs +2152 -0
  118. package/dist/behaviors/modal.d.mts +4 -3
  119. package/dist/behaviors/modal.mjs +1055 -33
  120. package/dist/behaviors/nav.d.mts +1 -1
  121. package/dist/behaviors/nav.mjs +6 -6
  122. package/dist/behaviors/notification.d.mts +16 -8
  123. package/dist/behaviors/notification.mjs +1615 -265
  124. package/dist/behaviors/panel.d.mts +4 -0
  125. package/dist/behaviors/panel.mjs +994 -0
  126. package/dist/behaviors/popover.d.mts +28 -5
  127. package/dist/behaviors/popover.mjs +225 -24
  128. package/dist/behaviors/select.d.mts +5 -2
  129. package/dist/behaviors/select.mjs +1410 -117
  130. package/dist/behaviors/sidebar.d.mts +1 -1
  131. package/dist/behaviors/sidebar.mjs +13 -13
  132. package/dist/behaviors/slider.d.mts +1 -1
  133. package/dist/behaviors/slider.mjs +9 -9
  134. package/dist/behaviors/split-pane.d.mts +1 -1
  135. package/dist/behaviors/split-pane.mjs +7 -7
  136. package/dist/behaviors/suggestions.d.mts +27 -0
  137. package/dist/behaviors/suggestions.mjs +1089 -0
  138. package/dist/behaviors/svg-parse.d.mts +14 -0
  139. package/dist/behaviors/svg-parse.mjs +37 -0
  140. package/dist/behaviors/tabs.d.mts +2 -2
  141. package/dist/behaviors/tabs.mjs +25 -25
  142. package/dist/behaviors/tag-input.d.mts +23 -5
  143. package/dist/behaviors/tag-input.mjs +1359 -104
  144. package/dist/behaviors/theme-switcher.d.mts +24 -0
  145. package/dist/behaviors/theme-switcher.mjs +1981 -0
  146. package/dist/behaviors/theme.d.mts +15 -8
  147. package/dist/behaviors/theme.mjs +390 -28
  148. package/dist/behaviors/toast.d.mts +24 -25
  149. package/dist/behaviors/toast.mjs +1266 -88
  150. package/dist/behaviors/tooltip.d.mts +4 -0
  151. package/dist/behaviors/tooltip.mjs +378 -0
  152. package/dist/behaviors/tree-select.d.mts +69 -0
  153. package/dist/behaviors/tree-select.mjs +1907 -0
  154. package/dist/behaviors/tree.d.mts +1 -1
  155. package/dist/behaviors/tree.mjs +15 -15
  156. package/dist/behaviors/upload.d.mts +3 -2
  157. package/dist/behaviors/upload.mjs +1076 -66
  158. package/dist/cli.mjs +5 -6
  159. package/dist/components/ai-chat.css +666 -573
  160. package/dist/components/ai-diff.css +153 -132
  161. package/dist/components/ai-panel.css +351 -343
  162. package/dist/components/ai-tool.css +393 -238
  163. package/dist/components/autocomplete.css +61 -0
  164. package/dist/components/autocomplete.mjs +3 -0
  165. package/dist/components/back-top.css +34 -31
  166. package/dist/components/badge.css +44 -41
  167. package/dist/components/breadcrumb.css +67 -46
  168. package/dist/components/btn.css +80 -74
  169. package/dist/components/card.css +117 -106
  170. package/dist/components/cascader.css +311 -0
  171. package/dist/components/cascader.mjs +3 -0
  172. package/dist/components/chart-area.css +8 -2
  173. package/dist/components/chart-bar.css +95 -33
  174. package/dist/components/chart-gauge.css +14 -11
  175. package/dist/components/chart-graph.css +20 -17
  176. package/dist/components/chart-heatmap.css +96 -90
  177. package/dist/components/chart-line.css +8 -3
  178. package/dist/components/chart-pie.css +9 -6
  179. package/dist/components/chart-radar.css +8 -5
  180. package/dist/components/chart-scatter.css +9 -6
  181. package/dist/components/chart-sparkline.css +5 -2
  182. package/dist/components/chart-stack.css +14 -11
  183. package/dist/components/charts.css +164 -73
  184. package/dist/components/code-block.css +418 -0
  185. package/dist/components/code-block.mjs +4 -0
  186. package/dist/components/command-palette.css +138 -117
  187. package/dist/components/content.css +257 -251
  188. package/dist/components/copy.css +72 -44
  189. package/dist/components/datatable.css +423 -181
  190. package/dist/components/date-picker.css +135 -104
  191. package/dist/components/empty.css +68 -65
  192. package/dist/components/feedback.css +201 -183
  193. package/dist/components/form-validate.css +120 -0
  194. package/dist/components/form-validate.mjs +3 -0
  195. package/dist/components/form.css +150 -127
  196. package/dist/components/icon.css +102 -0
  197. package/dist/components/icon.mjs +3 -0
  198. package/dist/components/input.css +159 -104
  199. package/dist/components/kb-agent.css +188 -173
  200. package/dist/components/kb-data.css +257 -253
  201. package/dist/components/kb-ground.css +197 -185
  202. package/dist/components/kb-ingest.css +334 -350
  203. package/dist/components/kb-ops.css +265 -259
  204. package/dist/components/kb-perm.css +260 -271
  205. package/dist/components/kb-search.css +317 -360
  206. package/dist/components/kb.css +120 -109
  207. package/dist/components/layout.css +85 -82
  208. package/dist/components/material-chinese.css +73 -0
  209. package/dist/components/material-soviet.css +76 -0
  210. package/dist/components/material.css +275 -0
  211. package/dist/components/media.css +220 -166
  212. package/dist/components/mentions.css +189 -0
  213. package/dist/components/mentions.mjs +3 -0
  214. package/dist/components/menu.css +113 -105
  215. package/dist/components/modal.css +107 -112
  216. package/dist/components/nav.css +118 -115
  217. package/dist/components/notification.css +238 -174
  218. package/dist/components/pagination.css +56 -53
  219. package/dist/components/panel.css +66 -63
  220. package/dist/components/panel.mjs +1 -0
  221. package/dist/components/pill.css +81 -71
  222. package/dist/components/popover.css +67 -53
  223. package/dist/components/scroll-area.css +113 -110
  224. package/dist/components/segmented.css +146 -143
  225. package/dist/components/select.css +206 -186
  226. package/dist/components/sidebar.css +137 -127
  227. package/dist/components/slider.css +117 -114
  228. package/dist/components/split-pane.css +112 -109
  229. package/dist/components/stat.css +112 -106
  230. package/dist/components/steps.css +109 -103
  231. package/dist/components/switch.css +138 -134
  232. package/dist/components/table.css +131 -107
  233. package/dist/components/tabs.css +114 -108
  234. package/dist/components/tag-input.css +48 -133
  235. package/dist/components/tag.css +81 -71
  236. package/dist/components/theme-switcher.css +105 -0
  237. package/dist/components/theme-switcher.mjs +3 -0
  238. package/dist/components/toast.css +100 -86
  239. package/dist/components/toolbar.css +45 -42
  240. package/dist/components/tooltip.css +102 -43
  241. package/dist/components/tooltip.mjs +1 -0
  242. package/dist/components/tree-select.css +416 -0
  243. package/dist/components/tree-select.mjs +3 -0
  244. package/dist/components/upload.css +135 -92
  245. package/dist/fonts/LICENSES/ark-pixel/OFL.txt +96 -0
  246. package/dist/fonts/LICENSES/cubic-11/OFL.txt +108 -0
  247. package/dist/fonts/LICENSES/galmuri/LICENSE.txt +93 -0
  248. package/dist/fonts/OFL.txt +96 -0
  249. package/dist/fonts/README.md +14 -0
  250. package/dist/fonts/fusion-pixel-12px-zh-hans.woff2 +0 -0
  251. package/dist/index.d.mts +28 -14
  252. package/dist/index.mjs +20705 -9601
  253. package/dist/react.d.mts +91 -0
  254. package/dist/react.mjs +8208 -0
  255. package/dist/registry.json +130 -13
  256. package/dist/tokens/chinese.css +44 -0
  257. package/dist/tokens/colors.css +365 -1222
  258. package/dist/tokens/design.css +109 -0
  259. package/dist/tokens/dtcg.json +11198 -0
  260. package/dist/tokens/figma.variables.json +7017 -0
  261. package/dist/tokens/icon-masks.css +78 -0
  262. package/dist/tokens/pixel.css +50 -0
  263. package/dist/tokens/soviet.css +44 -0
  264. package/dist/tokens/style-profiles.css +36 -547
  265. package/dist/tokens/themes.json +308 -0
  266. package/dist/tokens/tokens-studio.json +6728 -0
  267. package/dist/tokens/typography.css +21 -18
  268. package/dist/tokens.css +1555 -1801
  269. package/dist/ui.css +11975 -9831
  270. package/dist/vue.d.mts +344 -0
  271. package/dist/vue.mjs +7781 -0
  272. package/docs/spec/ai-input-experience.md +75 -0
  273. package/docs/spec/ai-native.md +238 -147
  274. package/docs/spec/design-philosophy.md +189 -0
  275. package/docs/spec/design-primitives.md +196 -0
  276. package/docs/spec/kb-family.md +147 -115
  277. package/package.json +43 -8
  278. package/dist/retro-effects.css +0 -255
  279. package/dist/tokens/retro-effects.css +0 -255
  280. package/docs/research/2026-10-03-ai-kb-components.md +0 -392
  281. package/docs/research/2026-10-03-kb-permissions.md +0 -992
package/dist/vue.d.mts ADDED
@@ -0,0 +1,344 @@
1
+ import { AiClient, AiAuditor } from './behaviors/ai-provider.js';
2
+ import * as vue from 'vue';
3
+ import { PropType, Ref } from 'vue';
4
+ import { IcenEventMap } from './behaviors/events.js';
5
+ import { ChartSpec } from './behaviors/charts.js';
6
+ export { ChartHandle } from './behaviors/charts.js';
7
+ import { TableOptions } from './behaviors/datatable.js';
8
+ export { TableColumn, TableHandle } from './behaviors/datatable.js';
9
+ import { AiMessageModel } from './behaviors/ai-chat.js';
10
+ export { AiMessageHandle } from './behaviors/ai-chat.js';
11
+ import { AiProviderOption, AiComposerCurrentModel, AiComposerBindOpts } from './behaviors/ai-composer.js';
12
+ export { AiContent, AiContentPart, AiStatus, AiToolCallModel, AiUsage } from './behaviors/ai-core.js';
13
+ import './behaviors/mentions.js';
14
+ import './behaviors/suggestions.js';
15
+ import './behaviors/kb-core.js';
16
+ import './behaviors/icons.js';
17
+ import './behaviors/popover.js';
18
+ import './behaviors/ai-panel.js';
19
+ import './behaviors/context-menu.js';
20
+
21
+ type MaybeRef<T> = T | Ref<T | null>;
22
+ type Cleanup = (() => void) | void;
23
+ /**
24
+ * 生命周期接线原语:mounted 时调 init,清理函数在 unmounted / deps 变化时执行。
25
+ * init 本体需幂等(库内 init* 全部满足);SSR 下 onMounted 不上服务端,天然安全。
26
+ */
27
+ declare function useIcenInit(init: (root?: HTMLElement | Document) => Cleanup, deps?: unknown[]): void;
28
+ /**
29
+ * 事件桥原语:onIcen 的 Vue 形态。within 传 Ref 或元素;缺省全局(广播事件
30
+ * icen:ai-done / icen:ai-usage 只经 [document, window],要收广播必须缺省 within)。
31
+ */
32
+ declare function useIcenEvent<K extends keyof IcenEventMap>(type: K, handler: (detail: IcenEventMap[K], event: CustomEvent<IcenEventMap[K]>) => void, opts?: {
33
+ within?: MaybeRef<HTMLElement | Document | null>;
34
+ }): void;
35
+ interface VueRendererConfig<Opts, Handle> {
36
+ create: (el: HTMLElement, opts: Opts) => Handle;
37
+ /** 缺省:数据变化时 destroy + 重建(同一容器元素) */
38
+ update?: (handle: Handle, opts: Opts) => void;
39
+ destroy: (handle: Handle) => void;
40
+ /** 数据 prop 名(IcenChart 用 'spec',其余 'opts') */
41
+ prop?: string;
42
+ /** kebab 化 icen 事件名(不带 icen: 前缀;emits 声明 + 透出,detail 为契约 detail) */
43
+ events?: string[];
44
+ defaultClass?: string;
45
+ }
46
+ /**
47
+ * 薄封装工厂:props 进,同一个命令式内核出。
48
+ * mounted → create + 事件桥;数据 prop deep watch → update 或 destroy+重建;unmounted → destroy。
49
+ * 句柄经 defineExpose({ getHandle }) 透出。
50
+ */
51
+ declare function createVueRenderer<Opts, Handle>(cfg: VueRendererConfig<Opts, Handle>): vue.DefineComponent<vue.ExtractPropTypes<{
52
+ [x: string]: {
53
+ type: PropType<Opts>;
54
+ required: true;
55
+ default?: undefined;
56
+ } | {
57
+ type: StringConstructor;
58
+ default: undefined;
59
+ required?: undefined;
60
+ } | {
61
+ type: PropType<string | Record<string, string>>;
62
+ default: undefined;
63
+ required?: undefined;
64
+ };
65
+ class: {
66
+ type: StringConstructor;
67
+ default: undefined;
68
+ };
69
+ style: {
70
+ type: PropType<string | Record<string, string>>;
71
+ default: undefined;
72
+ };
73
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
74
+ [key: string]: any;
75
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, string[], string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
76
+ [x: string]: {
77
+ type: PropType<Opts>;
78
+ required: true;
79
+ default?: undefined;
80
+ } | {
81
+ type: StringConstructor;
82
+ default: undefined;
83
+ required?: undefined;
84
+ } | {
85
+ type: PropType<string | Record<string, string>>;
86
+ default: undefined;
87
+ required?: undefined;
88
+ };
89
+ class: {
90
+ type: StringConstructor;
91
+ default: undefined;
92
+ };
93
+ style: {
94
+ type: PropType<string | Record<string, string>>;
95
+ default: undefined;
96
+ };
97
+ }>> & Readonly<{
98
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
99
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
100
+ /** 图表:renderChart 封装;spec deep watch → handle.update(原地重渲) */
101
+ declare const IcenChart: vue.DefineComponent<vue.ExtractPropTypes<{
102
+ [x: string]: {
103
+ type: PropType<ChartSpec>;
104
+ required: true;
105
+ default?: undefined;
106
+ } | {
107
+ type: StringConstructor;
108
+ default: undefined;
109
+ required?: undefined;
110
+ } | {
111
+ type: PropType<string | Record<string, string>>;
112
+ default: undefined;
113
+ required?: undefined;
114
+ };
115
+ class: {
116
+ type: StringConstructor;
117
+ default: undefined;
118
+ };
119
+ style: {
120
+ type: PropType<string | Record<string, string>>;
121
+ default: undefined;
122
+ };
123
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
124
+ [key: string]: any;
125
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, string[], string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
126
+ [x: string]: {
127
+ type: PropType<ChartSpec>;
128
+ required: true;
129
+ default?: undefined;
130
+ } | {
131
+ type: StringConstructor;
132
+ default: undefined;
133
+ required?: undefined;
134
+ } | {
135
+ type: PropType<string | Record<string, string>>;
136
+ default: undefined;
137
+ required?: undefined;
138
+ };
139
+ class: {
140
+ type: StringConstructor;
141
+ default: undefined;
142
+ };
143
+ style: {
144
+ type: PropType<string | Record<string, string>>;
145
+ default: undefined;
146
+ };
147
+ }>> & Readonly<{
148
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
149
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
150
+ /** 数据表:createTable 封装;opts 变化 destroy + 重建 */
151
+ declare const IcenDataTable: vue.DefineComponent<vue.ExtractPropTypes<{
152
+ [x: string]: {
153
+ type: PropType<TableOptions<Record<string, unknown>>>;
154
+ required: true;
155
+ default?: undefined;
156
+ } | {
157
+ type: StringConstructor;
158
+ default: undefined;
159
+ required?: undefined;
160
+ } | {
161
+ type: PropType<string | Record<string, string>>;
162
+ default: undefined;
163
+ required?: undefined;
164
+ };
165
+ class: {
166
+ type: StringConstructor;
167
+ default: undefined;
168
+ };
169
+ style: {
170
+ type: PropType<string | Record<string, string>>;
171
+ default: undefined;
172
+ };
173
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
174
+ [key: string]: any;
175
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, string[], string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
176
+ [x: string]: {
177
+ type: PropType<TableOptions<Record<string, unknown>>>;
178
+ required: true;
179
+ default?: undefined;
180
+ } | {
181
+ type: StringConstructor;
182
+ default: undefined;
183
+ required?: undefined;
184
+ } | {
185
+ type: PropType<string | Record<string, string>>;
186
+ default: undefined;
187
+ required?: undefined;
188
+ };
189
+ class: {
190
+ type: StringConstructor;
191
+ default: undefined;
192
+ };
193
+ style: {
194
+ type: PropType<string | Record<string, string>>;
195
+ default: undefined;
196
+ };
197
+ }>> & Readonly<{
198
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
199
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
200
+ /** AI 消息:renderAiMessage 快照渲染;model 变化 = 清空容器 + 重渲 */
201
+ declare const IcenAiMessage: vue.DefineComponent<vue.ExtractPropTypes<{
202
+ [x: string]: {
203
+ type: PropType<AiMessageModel>;
204
+ required: true;
205
+ default?: undefined;
206
+ } | {
207
+ type: StringConstructor;
208
+ default: undefined;
209
+ required?: undefined;
210
+ } | {
211
+ type: PropType<string | Record<string, string>>;
212
+ default: undefined;
213
+ required?: undefined;
214
+ };
215
+ class: {
216
+ type: StringConstructor;
217
+ default: undefined;
218
+ };
219
+ style: {
220
+ type: PropType<string | Record<string, string>>;
221
+ default: undefined;
222
+ };
223
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
224
+ [key: string]: any;
225
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, string[], string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
226
+ [x: string]: {
227
+ type: PropType<AiMessageModel>;
228
+ required: true;
229
+ default?: undefined;
230
+ } | {
231
+ type: StringConstructor;
232
+ default: undefined;
233
+ required?: undefined;
234
+ } | {
235
+ type: PropType<string | Record<string, string>>;
236
+ default: undefined;
237
+ required?: undefined;
238
+ };
239
+ class: {
240
+ type: StringConstructor;
241
+ default: undefined;
242
+ };
243
+ style: {
244
+ type: PropType<string | Record<string, string>>;
245
+ default: undefined;
246
+ };
247
+ }>> & Readonly<{
248
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
249
+ }>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
250
+ interface IcenAiComposerProps {
251
+ client?: AiClient;
252
+ models?: {
253
+ providers: AiProviderOption[];
254
+ current?: AiComposerCurrentModel;
255
+ };
256
+ usage?: AiComposerBindOpts['usage'];
257
+ messagesEl?: MaybeRef<HTMLElement | null>;
258
+ class?: string;
259
+ style?: string | Record<string, string>;
260
+ }
261
+ /**
262
+ * AI 输入台:内部 initAiComposer + setComposerModels + bindComposer,
263
+ * unmounted 调 binding.unbind()。emits 透出 composer 事件族(kebab)。
264
+ * DOM 契约为 ai-composer.css 头注释的标记骨架。
265
+ */
266
+ declare const IcenAiComposer: vue.DefineComponent<vue.ExtractPropTypes<{
267
+ client: {
268
+ type: PropType<AiClient>;
269
+ default: undefined;
270
+ };
271
+ models: {
272
+ type: PropType<IcenAiComposerProps["models"]>;
273
+ default: undefined;
274
+ };
275
+ usage: {
276
+ type: PropType<IcenAiComposerProps["usage"]>;
277
+ default: undefined;
278
+ };
279
+ messagesEl: {
280
+ type: PropType<IcenAiComposerProps["messagesEl"]>;
281
+ default: undefined;
282
+ };
283
+ class: {
284
+ type: StringConstructor;
285
+ default: undefined;
286
+ };
287
+ style: {
288
+ type: PropType<string | Record<string, string>>;
289
+ default: undefined;
290
+ };
291
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
292
+ [key: string]: any;
293
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("ai-usage" | "ai-todo-toggle" | "ai-ref" | "ai-command" | "ai-model-change" | "ai-attach" | "ai-dequeue" | "ai-queue" | "ai-stop" | "ai-send")[], "ai-usage" | "ai-todo-toggle" | "ai-ref" | "ai-command" | "ai-model-change" | "ai-attach" | "ai-dequeue" | "ai-queue" | "ai-stop" | "ai-send", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
294
+ client: {
295
+ type: PropType<AiClient>;
296
+ default: undefined;
297
+ };
298
+ models: {
299
+ type: PropType<IcenAiComposerProps["models"]>;
300
+ default: undefined;
301
+ };
302
+ usage: {
303
+ type: PropType<IcenAiComposerProps["usage"]>;
304
+ default: undefined;
305
+ };
306
+ messagesEl: {
307
+ type: PropType<IcenAiComposerProps["messagesEl"]>;
308
+ default: undefined;
309
+ };
310
+ class: {
311
+ type: StringConstructor;
312
+ default: undefined;
313
+ };
314
+ style: {
315
+ type: PropType<string | Record<string, string>>;
316
+ default: undefined;
317
+ };
318
+ }>> & Readonly<{
319
+ "onAi-usage"?: ((...args: any[]) => any) | undefined;
320
+ "onAi-todo-toggle"?: ((...args: any[]) => any) | undefined;
321
+ "onAi-ref"?: ((...args: any[]) => any) | undefined;
322
+ "onAi-command"?: ((...args: any[]) => any) | undefined;
323
+ "onAi-model-change"?: ((...args: any[]) => any) | undefined;
324
+ "onAi-attach"?: ((...args: any[]) => any) | undefined;
325
+ "onAi-dequeue"?: ((...args: any[]) => any) | undefined;
326
+ "onAi-queue"?: ((...args: any[]) => any) | undefined;
327
+ "onAi-stop"?: ((...args: any[]) => any) | undefined;
328
+ "onAi-send"?: ((...args: any[]) => any) | undefined;
329
+ }>, {
330
+ class: string;
331
+ style: string | Record<string, string>;
332
+ usage: {
333
+ from: "context" | "billing" | AiAuditor;
334
+ total?: number;
335
+ } | undefined;
336
+ models: {
337
+ providers: AiProviderOption[];
338
+ current?: AiComposerCurrentModel;
339
+ } | undefined;
340
+ messagesEl: MaybeRef<HTMLElement | null> | undefined;
341
+ client: AiClient;
342
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
343
+
344
+ export { AiClient, AiComposerBindOpts, AiComposerCurrentModel, AiMessageModel, AiProviderOption, ChartSpec, IcenAiComposer, type IcenAiComposerProps, IcenAiMessage, IcenChart, IcenDataTable, TableOptions, type VueRendererConfig, createVueRenderer, useIcenEvent, useIcenInit };