@fses/workbench-app 0.2.0 → 0.2.1

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 (789) hide show
  1. package/WORKBENCH-CLOSURE.json +80 -0
  2. package/node_modules/@byteluck/agentic-protocol/LICENSE +9 -0
  3. package/node_modules/@byteluck/agentic-protocol/README.md +74 -0
  4. package/node_modules/@byteluck/agentic-protocol/dist/index.d.ts +1623 -0
  5. package/node_modules/@byteluck/agentic-protocol/dist/index.mjs +3380 -0
  6. package/node_modules/@byteluck/agentic-protocol/package.json +37 -0
  7. package/node_modules/@byteluck/workbench-skill-contracts/LICENSE +9 -0
  8. package/node_modules/@byteluck/workbench-skill-contracts/dist/index.d.ts +234 -0
  9. package/node_modules/@byteluck/workbench-skill-contracts/dist/index.mjs +394 -0
  10. package/node_modules/@byteluck/workbench-skill-contracts/package.json +37 -0
  11. package/node_modules/@fses/ai-chat/LICENSE +9 -0
  12. package/node_modules/@fses/ai-chat/README.md +320 -0
  13. package/node_modules/@fses/ai-chat/dist/chart-card/data.d.ts +12 -0
  14. package/node_modules/@fses/ai-chat/dist/chart-card/from-markdown.d.ts +11 -0
  15. package/node_modules/@fses/ai-chat/dist/chart-card/from-tool.d.ts +8 -0
  16. package/node_modules/@fses/ai-chat/dist/chart-card/options.d.ts +4 -0
  17. package/node_modules/@fses/ai-chat/dist/chart-card/trace.d.ts +19 -0
  18. package/node_modules/@fses/ai-chat/dist/chart-card/types.d.ts +133 -0
  19. package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDeferredDraft.vue.d.ts +13 -0
  20. package/node_modules/@fses/ai-chat/dist/components/CardRecommendationDraft.vue.d.ts +18 -0
  21. package/node_modules/@fses/ai-chat/dist/components/ChartCardRenderer.vue.d.ts +11 -0
  22. package/node_modules/@fses/ai-chat/dist/components/ChatMessageItem.vue.d.ts +76 -0
  23. package/node_modules/@fses/ai-chat/dist/components/ChatMessageList.vue.d.ts +79 -0
  24. package/node_modules/@fses/ai-chat/dist/components/ChatSender.vue.d.ts +98 -0
  25. package/node_modules/@fses/ai-chat/dist/components/CollapsedToolActivity.vue.d.ts +9 -0
  26. package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +12 -0
  27. package/node_modules/@fses/ai-chat/dist/components/EChartsView.vue.d.ts +6 -0
  28. package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +306 -0
  29. package/node_modules/@fses/ai-chat/dist/components/PlanDraftCard.vue.d.ts +19 -0
  30. package/node_modules/@fses/ai-chat/dist/components/ShellExecPanel.vue.d.ts +6 -0
  31. package/node_modules/@fses/ai-chat/dist/components/TaskTodoPlanBar.vue.d.ts +6 -0
  32. package/node_modules/@fses/ai-chat/dist/components/ThinkingShimmer.vue.d.ts +6 -0
  33. package/node_modules/@fses/ai-chat/dist/composables/context-usage.d.ts +11 -0
  34. package/node_modules/@fses/ai-chat/dist/composables/types.d.ts +465 -0
  35. package/node_modules/@fses/ai-chat/dist/composables/useChat.d.ts +2 -0
  36. package/node_modules/@fses/ai-chat/dist/composables/useSystemEChartsIcon.d.ts +11 -0
  37. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +11408 -0
  38. package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +25 -0
  39. package/node_modules/@fses/ai-chat/dist/index.d.ts +17 -0
  40. package/node_modules/@fses/ai-chat/dist/plugin.d.ts +8 -0
  41. package/node_modules/@fses/ai-chat/dist/style.css +1 -0
  42. package/node_modules/@fses/ai-chat/dist/utils/assistant-markdown.d.ts +11 -0
  43. package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +22 -0
  44. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-config-summary.d.ts +86 -0
  45. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-field-label.d.ts +24 -0
  46. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-source.d.ts +18 -0
  47. package/node_modules/@fses/ai-chat/dist/utils/card-recommendation-title-source.d.ts +12 -0
  48. package/node_modules/@fses/ai-chat/dist/utils/chart-card-visibility.d.ts +24 -0
  49. package/node_modules/@fses/ai-chat/dist/utils/derived-process-labels.d.ts +13 -0
  50. package/node_modules/@fses/ai-chat/dist/utils/echarts-recommendation-icon.d.ts +36 -0
  51. package/node_modules/@fses/ai-chat/dist/utils/group-messages.d.ts +30 -0
  52. package/node_modules/@fses/ai-chat/dist/utils/status-activity.d.ts +48 -0
  53. package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template-icons.generated.d.ts +305 -0
  54. package/node_modules/@fses/ai-chat/dist/utils/system-echarts-template.d.ts +20 -0
  55. package/node_modules/@fses/ai-chat/dist/utils/task-todo-plan.d.ts +40 -0
  56. package/node_modules/@fses/ai-chat/dist/utils/workbench-echarts-theme.d.ts +35 -0
  57. package/node_modules/@fses/ai-chat/package.json +81 -0
  58. package/node_modules/@fses/workbench-card/LICENSE +9 -0
  59. package/node_modules/@fses/workbench-card/README.md +81 -0
  60. package/node_modules/@fses/workbench-card/dist/chart/index.d.ts +8 -0
  61. package/node_modules/@fses/workbench-card/dist/fses-workbench-card-echarts-protocol.js +2230 -0
  62. package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +33731 -0
  63. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +21238 -0
  64. package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -0
  65. package/node_modules/@fses/workbench-card/dist/index.d.ts +11 -0
  66. package/node_modules/@fses/workbench-card/dist/registry/cardRegistry.d.ts +50 -0
  67. package/node_modules/@fses/workbench-card/dist/registry/compositeCardPatterns.d.ts +39 -0
  68. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateCategories.d.ts +20 -0
  69. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.d.ts +1158 -0
  70. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateRegistry.generated.d.ts +1141 -0
  71. package/node_modules/@fses/workbench-card/dist/registry/echartsTemplateTypes.d.ts +76 -0
  72. package/node_modules/@fses/workbench-card/dist/registry/index.d.ts +10 -0
  73. package/node_modules/@fses/workbench-card/dist/renderers/WorkbenchBlockRenderer.vue.d.ts +55 -0
  74. package/node_modules/@fses/workbench-card/dist/renderers/chart/ChartRegistry.vue.d.ts +22 -0
  75. package/node_modules/@fses/workbench-card/dist/renderers/chart/EChartsProtocolRenderer.vue.d.ts +34 -0
  76. package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +219 -0
  77. package/node_modules/@fses/workbench-card/dist/renderers/chart/chartResponsiveLayout.d.ts +47 -0
  78. package/node_modules/@fses/workbench-card/dist/renderers/chart/dynamicEchartOption.d.ts +30 -0
  79. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/adapter.d.ts +73 -0
  80. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/composite.converter.d.ts +11 -0
  81. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/configOnly.converter.d.ts +11 -0
  82. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/geo.converter.d.ts +10 -0
  83. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/graphic.converter.d.ts +10 -0
  84. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/layout.converter.d.ts +11 -0
  85. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/network.converter.d.ts +10 -0
  86. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/scene3D.converter.d.ts +11 -0
  87. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/series.converter.d.ts +10 -0
  88. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/table.converter.d.ts +10 -0
  89. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/timeline.converter.d.ts +11 -0
  90. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/transition.converter.d.ts +11 -0
  91. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tree.converter.d.ts +10 -0
  92. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/converters/tuple.converter.d.ts +10 -0
  93. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/index.d.ts +9 -0
  94. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/merger.d.ts +16 -0
  95. package/node_modules/@fses/workbench-card/dist/renderers/chart/echarts-protocol/types.d.ts +447 -0
  96. package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsRuntimeInteractions.d.ts +30 -0
  97. package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTitle.d.ts +13 -0
  98. package/node_modules/@fses/workbench-card/dist/renderers/chart/echartsTooltipPortal.d.ts +12 -0
  99. package/node_modules/@fses/workbench-card/dist/renderers/chart/types.d.ts +47 -0
  100. package/node_modules/@fses/workbench-card/dist/renderers/chart/useEchart.d.ts +29 -0
  101. package/node_modules/@fses/workbench-card/dist/renderers/chart/workbenchChartTheme.d.ts +36 -0
  102. package/node_modules/@fses/workbench-card/dist/renderers/custom-canvas/canvasLayoutBindings.d.ts +86 -0
  103. package/node_modules/@fses/workbench-card/dist/renderers/hostBridge.d.ts +61 -0
  104. package/node_modules/@fses/workbench-card/dist/renderers/index.d.ts +17 -0
  105. package/node_modules/@fses/workbench-card/dist/renderers/native/nativeBindings.d.ts +145 -0
  106. package/node_modules/@fses/workbench-card/dist/renderers/nested/nestedBlockBindings.d.ts +107 -0
  107. package/node_modules/@fses/workbench-card/dist/renderers/quickLinkDisplay.d.ts +24 -0
  108. package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceCompositeBindings.d.ts +171 -0
  109. package/node_modules/@fses/workbench-card/dist/renderers/reference-composite/referenceRiskAndStrategyBindings.d.ts +91 -0
  110. package/node_modules/@fses/workbench-card/dist/renderers/resizableTable.d.ts +51 -0
  111. package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -0
  112. package/node_modules/@fses/workbench-card/dist/renderers/tableDisplay.d.ts +25 -0
  113. package/node_modules/@fses/workbench-card/dist/renderers/useWorkbenchBlockRendererBindings.d.ts +580 -0
  114. package/node_modules/@fses/workbench-card/dist/shell/workbenchVisualShell.d.ts +48 -0
  115. package/node_modules/@fses/workbench-card/dist/style.css +1 -0
  116. package/node_modules/@fses/workbench-card/dist/types/block.d.ts +2002 -0
  117. package/node_modules/@fses/workbench-card/dist/types/canvas.d.ts +25 -0
  118. package/node_modules/@fses/workbench-card/dist/types/echartsProtocol.d.ts +445 -0
  119. package/node_modules/@fses/workbench-card/dist/types/index.d.ts +10 -0
  120. package/node_modules/@fses/workbench-card/dist/types/registry.d.ts +7 -0
  121. package/node_modules/@fses/workbench-card/dist/types/runtime.d.ts +34 -0
  122. package/node_modules/@fses/workbench-card/package.json +82 -0
  123. package/node_modules/@fses/workbench-card/src/chart/index.ts +8 -0
  124. package/node_modules/@fses/workbench-card/src/index.ts +13 -0
  125. package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +476 -0
  126. package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +206 -0
  127. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +74 -0
  128. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +19951 -0
  129. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.ts +32 -0
  130. package/node_modules/@fses/workbench-card/src/registry/echartsTemplateTypes.ts +83 -0
  131. package/node_modules/@fses/workbench-card/src/registry/index.ts +10 -0
  132. package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +2728 -0
  133. package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +221 -0
  134. package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +304 -0
  135. package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +311 -0
  136. package/node_modules/@fses/workbench-card/src/renderers/chart/chartResponsiveLayout.ts +172 -0
  137. package/node_modules/@fses/workbench-card/src/renderers/chart/dynamicEchartOption.ts +127 -0
  138. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/adapter.ts +1349 -0
  139. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/composite.converter.ts +71 -0
  140. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/configOnly.converter.ts +45 -0
  141. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/geo.converter.ts +97 -0
  142. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/graphic.converter.ts +59 -0
  143. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/layout.converter.ts +53 -0
  144. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/network.converter.ts +82 -0
  145. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/scene3D.converter.ts +73 -0
  146. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/series.converter.ts +795 -0
  147. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/table.converter.ts +195 -0
  148. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/timeline.converter.ts +62 -0
  149. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/transition.converter.ts +58 -0
  150. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tree.converter.ts +75 -0
  151. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/converters/tuple.converter.ts +112 -0
  152. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/index.ts +10 -0
  153. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/merger.ts +109 -0
  154. package/node_modules/@fses/workbench-card/src/renderers/chart/echarts-protocol/types.ts +515 -0
  155. package/node_modules/@fses/workbench-card/src/renderers/chart/echartsRuntimeInteractions.ts +450 -0
  156. package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTitle.ts +94 -0
  157. package/node_modules/@fses/workbench-card/src/renderers/chart/echartsTooltipPortal.ts +140 -0
  158. package/node_modules/@fses/workbench-card/src/renderers/chart/types.ts +53 -0
  159. package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +1820 -0
  160. package/node_modules/@fses/workbench-card/src/renderers/chart/workbenchChartTheme.ts +240 -0
  161. package/node_modules/@fses/workbench-card/src/renderers/custom-canvas/canvasLayoutBindings.ts +660 -0
  162. package/node_modules/@fses/workbench-card/src/renderers/hostBridge.ts +74 -0
  163. package/node_modules/@fses/workbench-card/src/renderers/index.ts +25 -0
  164. package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +1081 -0
  165. package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +1349 -0
  166. package/node_modules/@fses/workbench-card/src/renderers/quickLinkDisplay.ts +53 -0
  167. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +3205 -0
  168. package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +1004 -0
  169. package/node_modules/@fses/workbench-card/src/renderers/resizableTable.ts +136 -0
  170. package/node_modules/@fses/workbench-card/src/renderers/tableDisplay.ts +140 -0
  171. package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +3192 -0
  172. package/node_modules/@fses/workbench-card/src/shell/workbenchVisualShell.ts +228 -0
  173. package/node_modules/@fses/workbench-card/src/styles/workbench-card.css +343 -0
  174. package/node_modules/@fses/workbench-card/src/types/block.ts +2487 -0
  175. package/node_modules/@fses/workbench-card/src/types/canvas.ts +30 -0
  176. package/node_modules/@fses/workbench-card/src/types/echartsProtocol.ts +513 -0
  177. package/node_modules/@fses/workbench-card/src/types/index.ts +10 -0
  178. package/node_modules/@fses/workbench-card/src/types/registry.ts +17 -0
  179. package/node_modules/@fses/workbench-card/src/types/runtime.ts +31 -0
  180. package/node_modules/dompurify/LICENSE +568 -0
  181. package/node_modules/dompurify/README.md +523 -0
  182. package/node_modules/dompurify/dist/purify.cjs.d.ts +451 -0
  183. package/node_modules/dompurify/dist/purify.cjs.js +1472 -0
  184. package/node_modules/dompurify/dist/purify.cjs.js.map +1 -0
  185. package/node_modules/dompurify/dist/purify.es.d.mts +448 -0
  186. package/node_modules/dompurify/dist/purify.es.mjs +1470 -0
  187. package/node_modules/dompurify/dist/purify.es.mjs.map +1 -0
  188. package/node_modules/dompurify/dist/purify.js +1478 -0
  189. package/node_modules/dompurify/dist/purify.js.map +1 -0
  190. package/node_modules/dompurify/dist/purify.min.js +3 -0
  191. package/node_modules/dompurify/dist/purify.min.js.map +1 -0
  192. package/node_modules/dompurify/package.json +168 -0
  193. package/node_modules/zod/LICENSE +21 -0
  194. package/node_modules/zod/README.md +208 -0
  195. package/node_modules/zod/index.cjs +33 -0
  196. package/node_modules/zod/index.d.cts +4 -0
  197. package/node_modules/zod/index.d.ts +4 -0
  198. package/node_modules/zod/index.js +4 -0
  199. package/node_modules/zod/package.json +118 -0
  200. package/node_modules/zod/src/index.ts +4 -0
  201. package/node_modules/zod/src/v3/ZodError.ts +330 -0
  202. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  203. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  204. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  205. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  206. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  207. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  208. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  209. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  210. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  211. package/node_modules/zod/src/v3/errors.ts +13 -0
  212. package/node_modules/zod/src/v3/external.ts +6 -0
  213. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  214. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  215. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  216. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  217. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  218. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  219. package/node_modules/zod/src/v3/index.ts +4 -0
  220. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  221. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  222. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  223. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  224. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  225. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  226. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  227. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  228. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  229. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  230. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  231. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  232. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  233. package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
  234. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  235. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  236. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  237. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  238. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  239. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  240. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  241. package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
  242. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  243. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  244. package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
  245. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  246. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  247. package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
  248. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  249. package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
  250. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  251. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  252. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  253. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  254. package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
  255. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  256. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  257. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  258. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  259. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  260. package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
  261. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  262. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  263. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  264. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  265. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  266. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  267. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  268. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  269. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  270. package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
  271. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  272. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  273. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  274. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  275. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  276. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  277. package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
  278. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  279. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  280. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  281. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  282. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  283. package/node_modules/zod/src/v3/types.ts +5136 -0
  284. package/node_modules/zod/src/v4/classic/checks.ts +30 -0
  285. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  286. package/node_modules/zod/src/v4/classic/compat.ts +66 -0
  287. package/node_modules/zod/src/v4/classic/errors.ts +75 -0
  288. package/node_modules/zod/src/v4/classic/external.ts +50 -0
  289. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  290. package/node_modules/zod/src/v4/classic/iso.ts +90 -0
  291. package/node_modules/zod/src/v4/classic/parse.ts +33 -0
  292. package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
  293. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  294. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  295. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
  296. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  297. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  298. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  299. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
  300. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
  301. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
  302. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  303. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  304. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
  305. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  306. package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
  307. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
  308. package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
  309. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  310. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
  311. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
  312. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
  313. package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
  314. package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
  315. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
  316. package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
  317. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  318. package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
  319. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
  320. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
  321. package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
  322. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
  323. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
  324. package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
  325. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  326. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  327. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
  328. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  329. package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
  330. package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
  331. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
  332. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
  333. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
  334. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
  335. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
  336. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
  337. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  338. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  339. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  340. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
  341. package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
  342. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
  343. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
  344. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
  345. package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
  346. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
  347. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
  348. package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
  349. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
  350. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
  351. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
  352. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
  353. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
  354. package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
  355. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  356. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  357. package/node_modules/zod/src/v4/core/api.ts +1594 -0
  358. package/node_modules/zod/src/v4/core/checks.ts +1283 -0
  359. package/node_modules/zod/src/v4/core/config.ts +15 -0
  360. package/node_modules/zod/src/v4/core/core.ts +134 -0
  361. package/node_modules/zod/src/v4/core/doc.ts +44 -0
  362. package/node_modules/zod/src/v4/core/errors.ts +424 -0
  363. package/node_modules/zod/src/v4/core/function.ts +176 -0
  364. package/node_modules/zod/src/v4/core/index.ts +15 -0
  365. package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
  366. package/node_modules/zod/src/v4/core/parse.ts +94 -0
  367. package/node_modules/zod/src/v4/core/regexes.ts +135 -0
  368. package/node_modules/zod/src/v4/core/registries.ts +96 -0
  369. package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
  370. package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
  371. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  372. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  373. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  374. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  375. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  376. package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
  377. package/node_modules/zod/src/v4/core/util.ts +775 -0
  378. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  379. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  380. package/node_modules/zod/src/v4/index.ts +4 -0
  381. package/node_modules/zod/src/v4/locales/ar.ts +125 -0
  382. package/node_modules/zod/src/v4/locales/az.ts +121 -0
  383. package/node_modules/zod/src/v4/locales/be.ts +184 -0
  384. package/node_modules/zod/src/v4/locales/ca.ts +127 -0
  385. package/node_modules/zod/src/v4/locales/cs.ts +142 -0
  386. package/node_modules/zod/src/v4/locales/de.ts +124 -0
  387. package/node_modules/zod/src/v4/locales/en.ts +127 -0
  388. package/node_modules/zod/src/v4/locales/eo.ts +125 -0
  389. package/node_modules/zod/src/v4/locales/es.ts +125 -0
  390. package/node_modules/zod/src/v4/locales/fa.ts +134 -0
  391. package/node_modules/zod/src/v4/locales/fi.ts +131 -0
  392. package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
  393. package/node_modules/zod/src/v4/locales/fr.ts +124 -0
  394. package/node_modules/zod/src/v4/locales/he.ts +125 -0
  395. package/node_modules/zod/src/v4/locales/hu.ts +126 -0
  396. package/node_modules/zod/src/v4/locales/id.ts +125 -0
  397. package/node_modules/zod/src/v4/locales/index.ts +39 -0
  398. package/node_modules/zod/src/v4/locales/it.ts +125 -0
  399. package/node_modules/zod/src/v4/locales/ja.ts +122 -0
  400. package/node_modules/zod/src/v4/locales/kh.ts +126 -0
  401. package/node_modules/zod/src/v4/locales/ko.ts +131 -0
  402. package/node_modules/zod/src/v4/locales/mk.ts +127 -0
  403. package/node_modules/zod/src/v4/locales/ms.ts +124 -0
  404. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  405. package/node_modules/zod/src/v4/locales/no.ts +124 -0
  406. package/node_modules/zod/src/v4/locales/ota.ts +125 -0
  407. package/node_modules/zod/src/v4/locales/pl.ts +126 -0
  408. package/node_modules/zod/src/v4/locales/ps.ts +133 -0
  409. package/node_modules/zod/src/v4/locales/pt.ts +123 -0
  410. package/node_modules/zod/src/v4/locales/ru.ts +184 -0
  411. package/node_modules/zod/src/v4/locales/sl.ts +126 -0
  412. package/node_modules/zod/src/v4/locales/sv.ts +127 -0
  413. package/node_modules/zod/src/v4/locales/ta.ts +125 -0
  414. package/node_modules/zod/src/v4/locales/th.ts +126 -0
  415. package/node_modules/zod/src/v4/locales/tr.ts +121 -0
  416. package/node_modules/zod/src/v4/locales/ua.ts +126 -0
  417. package/node_modules/zod/src/v4/locales/ur.ts +126 -0
  418. package/node_modules/zod/src/v4/locales/vi.ts +125 -0
  419. package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
  420. package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
  421. package/node_modules/zod/src/v4/mini/checks.ts +32 -0
  422. package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
  423. package/node_modules/zod/src/v4/mini/external.ts +40 -0
  424. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  425. package/node_modules/zod/src/v4/mini/iso.ts +62 -0
  426. package/node_modules/zod/src/v4/mini/parse.ts +1 -0
  427. package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
  428. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
  429. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
  430. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
  431. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
  432. package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
  433. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
  434. package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
  435. package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
  436. package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
  437. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  438. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
  439. package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
  440. package/node_modules/zod/src/v4-mini/index.ts +1 -0
  441. package/node_modules/zod/v3/ZodError.cjs +138 -0
  442. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  443. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  444. package/node_modules/zod/v3/ZodError.js +133 -0
  445. package/node_modules/zod/v3/errors.cjs +17 -0
  446. package/node_modules/zod/v3/errors.d.cts +5 -0
  447. package/node_modules/zod/v3/errors.d.ts +5 -0
  448. package/node_modules/zod/v3/errors.js +9 -0
  449. package/node_modules/zod/v3/external.cjs +22 -0
  450. package/node_modules/zod/v3/external.d.cts +6 -0
  451. package/node_modules/zod/v3/external.d.ts +6 -0
  452. package/node_modules/zod/v3/external.js +6 -0
  453. package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
  454. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  455. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  456. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  457. package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
  458. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  459. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  460. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  461. package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
  462. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  463. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  464. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  465. package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
  466. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  467. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  468. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  469. package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
  470. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  471. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  472. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  473. package/node_modules/zod/v3/helpers/util.cjs +137 -0
  474. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  475. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  476. package/node_modules/zod/v3/helpers/util.js +133 -0
  477. package/node_modules/zod/v3/index.cjs +33 -0
  478. package/node_modules/zod/v3/index.d.cts +4 -0
  479. package/node_modules/zod/v3/index.d.ts +4 -0
  480. package/node_modules/zod/v3/index.js +4 -0
  481. package/node_modules/zod/v3/locales/en.cjs +111 -0
  482. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  483. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  484. package/node_modules/zod/v3/locales/en.js +109 -0
  485. package/node_modules/zod/v3/standard-schema.cjs +2 -0
  486. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  487. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  488. package/node_modules/zod/v3/standard-schema.js +1 -0
  489. package/node_modules/zod/v3/types.cjs +3775 -0
  490. package/node_modules/zod/v3/types.d.cts +1031 -0
  491. package/node_modules/zod/v3/types.d.ts +1031 -0
  492. package/node_modules/zod/v3/types.js +3693 -0
  493. package/node_modules/zod/v4/classic/checks.cjs +32 -0
  494. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  495. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  496. package/node_modules/zod/v4/classic/checks.js +1 -0
  497. package/node_modules/zod/v4/classic/coerce.cjs +47 -0
  498. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  499. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  500. package/node_modules/zod/v4/classic/coerce.js +17 -0
  501. package/node_modules/zod/v4/classic/compat.cjs +57 -0
  502. package/node_modules/zod/v4/classic/compat.d.cts +46 -0
  503. package/node_modules/zod/v4/classic/compat.d.ts +46 -0
  504. package/node_modules/zod/v4/classic/compat.js +27 -0
  505. package/node_modules/zod/v4/classic/errors.cjs +67 -0
  506. package/node_modules/zod/v4/classic/errors.d.cts +30 -0
  507. package/node_modules/zod/v4/classic/errors.d.ts +30 -0
  508. package/node_modules/zod/v4/classic/errors.js +41 -0
  509. package/node_modules/zod/v4/classic/external.cjs +70 -0
  510. package/node_modules/zod/v4/classic/external.d.cts +13 -0
  511. package/node_modules/zod/v4/classic/external.d.ts +13 -0
  512. package/node_modules/zod/v4/classic/external.js +18 -0
  513. package/node_modules/zod/v4/classic/index.cjs +33 -0
  514. package/node_modules/zod/v4/classic/index.d.cts +4 -0
  515. package/node_modules/zod/v4/classic/index.d.ts +4 -0
  516. package/node_modules/zod/v4/classic/index.js +4 -0
  517. package/node_modules/zod/v4/classic/iso.cjs +60 -0
  518. package/node_modules/zod/v4/classic/iso.d.cts +22 -0
  519. package/node_modules/zod/v4/classic/iso.d.ts +22 -0
  520. package/node_modules/zod/v4/classic/iso.js +30 -0
  521. package/node_modules/zod/v4/classic/parse.cjs +32 -0
  522. package/node_modules/zod/v4/classic/parse.d.cts +23 -0
  523. package/node_modules/zod/v4/classic/parse.d.ts +23 -0
  524. package/node_modules/zod/v4/classic/parse.js +6 -0
  525. package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
  526. package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
  527. package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
  528. package/node_modules/zod/v4/classic/schemas.js +1006 -0
  529. package/node_modules/zod/v4/core/api.cjs +1039 -0
  530. package/node_modules/zod/v4/core/api.d.cts +284 -0
  531. package/node_modules/zod/v4/core/api.d.ts +284 -0
  532. package/node_modules/zod/v4/core/api.js +906 -0
  533. package/node_modules/zod/v4/core/checks.cjs +591 -0
  534. package/node_modules/zod/v4/core/checks.d.cts +278 -0
  535. package/node_modules/zod/v4/core/checks.d.ts +278 -0
  536. package/node_modules/zod/v4/core/checks.js +565 -0
  537. package/node_modules/zod/v4/core/core.cjs +67 -0
  538. package/node_modules/zod/v4/core/core.d.cts +49 -0
  539. package/node_modules/zod/v4/core/core.d.ts +49 -0
  540. package/node_modules/zod/v4/core/core.js +61 -0
  541. package/node_modules/zod/v4/core/doc.cjs +39 -0
  542. package/node_modules/zod/v4/core/doc.d.cts +14 -0
  543. package/node_modules/zod/v4/core/doc.d.ts +14 -0
  544. package/node_modules/zod/v4/core/doc.js +35 -0
  545. package/node_modules/zod/v4/core/errors.cjs +226 -0
  546. package/node_modules/zod/v4/core/errors.d.cts +208 -0
  547. package/node_modules/zod/v4/core/errors.d.ts +208 -0
  548. package/node_modules/zod/v4/core/errors.js +195 -0
  549. package/node_modules/zod/v4/core/function.cjs +102 -0
  550. package/node_modules/zod/v4/core/function.d.cts +52 -0
  551. package/node_modules/zod/v4/core/function.d.ts +52 -0
  552. package/node_modules/zod/v4/core/function.js +75 -0
  553. package/node_modules/zod/v4/core/index.cjs +44 -0
  554. package/node_modules/zod/v4/core/index.d.cts +15 -0
  555. package/node_modules/zod/v4/core/index.d.ts +15 -0
  556. package/node_modules/zod/v4/core/index.js +15 -0
  557. package/node_modules/zod/v4/core/json-schema.cjs +2 -0
  558. package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
  559. package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
  560. package/node_modules/zod/v4/core/json-schema.js +1 -0
  561. package/node_modules/zod/v4/core/parse.cjs +87 -0
  562. package/node_modules/zod/v4/core/parse.d.cts +25 -0
  563. package/node_modules/zod/v4/core/parse.d.ts +25 -0
  564. package/node_modules/zod/v4/core/parse.js +57 -0
  565. package/node_modules/zod/v4/core/regexes.cjs +103 -0
  566. package/node_modules/zod/v4/core/regexes.d.cts +62 -0
  567. package/node_modules/zod/v4/core/regexes.d.ts +62 -0
  568. package/node_modules/zod/v4/core/regexes.js +95 -0
  569. package/node_modules/zod/v4/core/registries.cjs +56 -0
  570. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  571. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  572. package/node_modules/zod/v4/core/registries.js +51 -0
  573. package/node_modules/zod/v4/core/schemas.cjs +1748 -0
  574. package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
  575. package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
  576. package/node_modules/zod/v4/core/schemas.js +1717 -0
  577. package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
  578. package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
  579. package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
  580. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  581. package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
  582. package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
  583. package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
  584. package/node_modules/zod/v4/core/to-json-schema.js +849 -0
  585. package/node_modules/zod/v4/core/util.cjs +539 -0
  586. package/node_modules/zod/v4/core/util.d.cts +183 -0
  587. package/node_modules/zod/v4/core/util.d.ts +183 -0
  588. package/node_modules/zod/v4/core/util.js +493 -0
  589. package/node_modules/zod/v4/core/versions.cjs +8 -0
  590. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  591. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  592. package/node_modules/zod/v4/core/versions.js +5 -0
  593. package/node_modules/zod/v4/index.cjs +22 -0
  594. package/node_modules/zod/v4/index.d.cts +3 -0
  595. package/node_modules/zod/v4/index.d.ts +3 -0
  596. package/node_modules/zod/v4/index.js +3 -0
  597. package/node_modules/zod/v4/locales/ar.cjs +142 -0
  598. package/node_modules/zod/v4/locales/ar.d.cts +4 -0
  599. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  600. package/node_modules/zod/v4/locales/ar.js +116 -0
  601. package/node_modules/zod/v4/locales/az.cjs +141 -0
  602. package/node_modules/zod/v4/locales/az.d.cts +4 -0
  603. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  604. package/node_modules/zod/v4/locales/az.js +115 -0
  605. package/node_modules/zod/v4/locales/be.cjs +190 -0
  606. package/node_modules/zod/v4/locales/be.d.cts +4 -0
  607. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  608. package/node_modules/zod/v4/locales/be.js +164 -0
  609. package/node_modules/zod/v4/locales/ca.cjs +144 -0
  610. package/node_modules/zod/v4/locales/ca.d.cts +4 -0
  611. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  612. package/node_modules/zod/v4/locales/ca.js +118 -0
  613. package/node_modules/zod/v4/locales/cs.cjs +161 -0
  614. package/node_modules/zod/v4/locales/cs.d.cts +4 -0
  615. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  616. package/node_modules/zod/v4/locales/cs.js +135 -0
  617. package/node_modules/zod/v4/locales/de.cjs +142 -0
  618. package/node_modules/zod/v4/locales/de.d.cts +4 -0
  619. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  620. package/node_modules/zod/v4/locales/de.js +116 -0
  621. package/node_modules/zod/v4/locales/en.cjs +145 -0
  622. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  623. package/node_modules/zod/v4/locales/en.d.ts +5 -0
  624. package/node_modules/zod/v4/locales/en.js +117 -0
  625. package/node_modules/zod/v4/locales/eo.cjs +144 -0
  626. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  627. package/node_modules/zod/v4/locales/eo.d.ts +5 -0
  628. package/node_modules/zod/v4/locales/eo.js +116 -0
  629. package/node_modules/zod/v4/locales/es.cjs +143 -0
  630. package/node_modules/zod/v4/locales/es.d.cts +4 -0
  631. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  632. package/node_modules/zod/v4/locales/es.js +117 -0
  633. package/node_modules/zod/v4/locales/fa.cjs +148 -0
  634. package/node_modules/zod/v4/locales/fa.d.cts +4 -0
  635. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  636. package/node_modules/zod/v4/locales/fa.js +122 -0
  637. package/node_modules/zod/v4/locales/fi.cjs +148 -0
  638. package/node_modules/zod/v4/locales/fi.d.cts +4 -0
  639. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  640. package/node_modules/zod/v4/locales/fi.js +122 -0
  641. package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
  642. package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
  643. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  644. package/node_modules/zod/v4/locales/fr-CA.js +117 -0
  645. package/node_modules/zod/v4/locales/fr.cjs +142 -0
  646. package/node_modules/zod/v4/locales/fr.d.cts +4 -0
  647. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  648. package/node_modules/zod/v4/locales/fr.js +116 -0
  649. package/node_modules/zod/v4/locales/he.cjs +143 -0
  650. package/node_modules/zod/v4/locales/he.d.cts +4 -0
  651. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  652. package/node_modules/zod/v4/locales/he.js +117 -0
  653. package/node_modules/zod/v4/locales/hu.cjs +143 -0
  654. package/node_modules/zod/v4/locales/hu.d.cts +4 -0
  655. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  656. package/node_modules/zod/v4/locales/hu.js +117 -0
  657. package/node_modules/zod/v4/locales/id.cjs +142 -0
  658. package/node_modules/zod/v4/locales/id.d.cts +4 -0
  659. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  660. package/node_modules/zod/v4/locales/id.js +116 -0
  661. package/node_modules/zod/v4/locales/index.cjs +84 -0
  662. package/node_modules/zod/v4/locales/index.d.cts +39 -0
  663. package/node_modules/zod/v4/locales/index.d.ts +39 -0
  664. package/node_modules/zod/v4/locales/index.js +39 -0
  665. package/node_modules/zod/v4/locales/it.cjs +143 -0
  666. package/node_modules/zod/v4/locales/it.d.cts +4 -0
  667. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  668. package/node_modules/zod/v4/locales/it.js +117 -0
  669. package/node_modules/zod/v4/locales/ja.cjs +141 -0
  670. package/node_modules/zod/v4/locales/ja.d.cts +4 -0
  671. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  672. package/node_modules/zod/v4/locales/ja.js +115 -0
  673. package/node_modules/zod/v4/locales/kh.cjs +143 -0
  674. package/node_modules/zod/v4/locales/kh.d.cts +4 -0
  675. package/node_modules/zod/v4/locales/kh.d.ts +4 -0
  676. package/node_modules/zod/v4/locales/kh.js +117 -0
  677. package/node_modules/zod/v4/locales/ko.cjs +147 -0
  678. package/node_modules/zod/v4/locales/ko.d.cts +4 -0
  679. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  680. package/node_modules/zod/v4/locales/ko.js +121 -0
  681. package/node_modules/zod/v4/locales/mk.cjs +144 -0
  682. package/node_modules/zod/v4/locales/mk.d.cts +4 -0
  683. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  684. package/node_modules/zod/v4/locales/mk.js +118 -0
  685. package/node_modules/zod/v4/locales/ms.cjs +142 -0
  686. package/node_modules/zod/v4/locales/ms.d.cts +4 -0
  687. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  688. package/node_modules/zod/v4/locales/ms.js +116 -0
  689. package/node_modules/zod/v4/locales/nl.cjs +143 -0
  690. package/node_modules/zod/v4/locales/nl.d.cts +4 -0
  691. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  692. package/node_modules/zod/v4/locales/nl.js +117 -0
  693. package/node_modules/zod/v4/locales/no.cjs +142 -0
  694. package/node_modules/zod/v4/locales/no.d.cts +4 -0
  695. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  696. package/node_modules/zod/v4/locales/no.js +116 -0
  697. package/node_modules/zod/v4/locales/ota.cjs +143 -0
  698. package/node_modules/zod/v4/locales/ota.d.cts +4 -0
  699. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  700. package/node_modules/zod/v4/locales/ota.js +117 -0
  701. package/node_modules/zod/v4/locales/pl.cjs +143 -0
  702. package/node_modules/zod/v4/locales/pl.d.cts +4 -0
  703. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  704. package/node_modules/zod/v4/locales/pl.js +117 -0
  705. package/node_modules/zod/v4/locales/ps.cjs +148 -0
  706. package/node_modules/zod/v4/locales/ps.d.cts +4 -0
  707. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  708. package/node_modules/zod/v4/locales/ps.js +122 -0
  709. package/node_modules/zod/v4/locales/pt.cjs +142 -0
  710. package/node_modules/zod/v4/locales/pt.d.cts +4 -0
  711. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  712. package/node_modules/zod/v4/locales/pt.js +116 -0
  713. package/node_modules/zod/v4/locales/ru.cjs +190 -0
  714. package/node_modules/zod/v4/locales/ru.d.cts +4 -0
  715. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  716. package/node_modules/zod/v4/locales/ru.js +164 -0
  717. package/node_modules/zod/v4/locales/sl.cjs +143 -0
  718. package/node_modules/zod/v4/locales/sl.d.cts +4 -0
  719. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  720. package/node_modules/zod/v4/locales/sl.js +117 -0
  721. package/node_modules/zod/v4/locales/sv.cjs +144 -0
  722. package/node_modules/zod/v4/locales/sv.d.cts +4 -0
  723. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  724. package/node_modules/zod/v4/locales/sv.js +118 -0
  725. package/node_modules/zod/v4/locales/ta.cjs +143 -0
  726. package/node_modules/zod/v4/locales/ta.d.cts +4 -0
  727. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  728. package/node_modules/zod/v4/locales/ta.js +117 -0
  729. package/node_modules/zod/v4/locales/th.cjs +143 -0
  730. package/node_modules/zod/v4/locales/th.d.cts +4 -0
  731. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  732. package/node_modules/zod/v4/locales/th.js +117 -0
  733. package/node_modules/zod/v4/locales/tr.cjs +143 -0
  734. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  735. package/node_modules/zod/v4/locales/tr.d.ts +5 -0
  736. package/node_modules/zod/v4/locales/tr.js +115 -0
  737. package/node_modules/zod/v4/locales/ua.cjs +143 -0
  738. package/node_modules/zod/v4/locales/ua.d.cts +4 -0
  739. package/node_modules/zod/v4/locales/ua.d.ts +4 -0
  740. package/node_modules/zod/v4/locales/ua.js +117 -0
  741. package/node_modules/zod/v4/locales/ur.cjs +143 -0
  742. package/node_modules/zod/v4/locales/ur.d.cts +4 -0
  743. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  744. package/node_modules/zod/v4/locales/ur.js +117 -0
  745. package/node_modules/zod/v4/locales/vi.cjs +142 -0
  746. package/node_modules/zod/v4/locales/vi.d.cts +4 -0
  747. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  748. package/node_modules/zod/v4/locales/vi.js +116 -0
  749. package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
  750. package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
  751. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  752. package/node_modules/zod/v4/locales/zh-CN.js +116 -0
  753. package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
  754. package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
  755. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  756. package/node_modules/zod/v4/locales/zh-TW.js +117 -0
  757. package/node_modules/zod/v4/mini/checks.cjs +34 -0
  758. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  759. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  760. package/node_modules/zod/v4/mini/checks.js +1 -0
  761. package/node_modules/zod/v4/mini/coerce.cjs +47 -0
  762. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  763. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  764. package/node_modules/zod/v4/mini/coerce.js +17 -0
  765. package/node_modules/zod/v4/mini/external.cjs +62 -0
  766. package/node_modules/zod/v4/mini/external.d.cts +11 -0
  767. package/node_modules/zod/v4/mini/external.d.ts +11 -0
  768. package/node_modules/zod/v4/mini/external.js +13 -0
  769. package/node_modules/zod/v4/mini/index.cjs +32 -0
  770. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  771. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  772. package/node_modules/zod/v4/mini/index.js +3 -0
  773. package/node_modules/zod/v4/mini/iso.cjs +60 -0
  774. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  775. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  776. package/node_modules/zod/v4/mini/iso.js +30 -0
  777. package/node_modules/zod/v4/mini/parse.cjs +8 -0
  778. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  779. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  780. package/node_modules/zod/v4/mini/parse.js +1 -0
  781. package/node_modules/zod/v4/mini/schemas.cjs +839 -0
  782. package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
  783. package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
  784. package/node_modules/zod/v4/mini/schemas.js +732 -0
  785. package/node_modules/zod/v4-mini/index.cjs +17 -0
  786. package/node_modules/zod/v4-mini/index.d.cts +1 -0
  787. package/node_modules/zod/v4-mini/index.d.ts +1 -0
  788. package/node_modules/zod/v4-mini/index.js +1 -0
  789. package/package.json +99 -104
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@byteluck/workbench-skill-contracts",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "sideEffects": false,
10
+ "main": "./dist/index.mjs",
11
+ "module": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts",
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.mjs"
17
+ }
18
+ },
19
+ "publishConfig": {
20
+ "access": "restricted"
21
+ },
22
+ "dependencies": {
23
+ "zod": "^3.25.76"
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^25.6.0",
27
+ "tsdown": "^0.21.8",
28
+ "typescript": "^6.0.2",
29
+ "vitest": "^4.1.4",
30
+ "@vben/tsconfig": "5.7.1"
31
+ },
32
+ "scripts": {
33
+ "build": "pnpm exec tsdown",
34
+ "check": "tsc -p tsconfig.json --noEmit",
35
+ "test": "vitest run --config ../../vitest.config.ts src/boundary.spec.ts src/validators/payload-validator.spec.ts"
36
+ }
37
+ }
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-present, Vben
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,320 @@
1
+ # @fses/ai-chat
2
+
3
+ 基于 Vue 3 的 AI 对话组件,支持 SSE 流式响应、多轮会话管理、Markdown 渲染、工具调用状态展示和结构化图表卡片渲染。
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add @fses/ai-chat
9
+ ```
10
+
11
+ ### 对等依赖
12
+
13
+ 宿主项目需要提供以下依赖:
14
+
15
+ ```bash
16
+ pnpm add vue@^3.5.32 ant-design-vue@^4.2.6 @ant-design/icons-vue@^6.0.0 @opentiny/tiny-robot@^0.4.1 @opentiny/tiny-robot-svgs@^0.4.1 marked@^18.0.0 echarts@^5.4.0
17
+ ```
18
+
19
+ ## 快速开始
20
+
21
+ ### 方式一:Vue 插件
22
+
23
+ 全局注册组件并配置 API,之后可在任意模板中直接使用 `<FsesAiChat />`。
24
+
25
+ ```typescript
26
+ // main.ts
27
+ import { createApp } from 'vue'
28
+ import Antd from 'ant-design-vue'
29
+ import { FsesAiChatPlugin } from '@fses/ai-chat'
30
+ import 'ant-design-vue/dist/reset.css'
31
+ import '@fses/ai-chat/dist/style.css'
32
+ import App from './App.vue'
33
+
34
+ const app = createApp(App)
35
+
36
+ app.use(Antd)
37
+ app.use(FsesAiChatPlugin, {
38
+ apiBaseUrl: '/ai/runtime/api',
39
+ enableChartCards: true,
40
+ headers: () => ({
41
+ Authorization: `Bearer ${getToken()}`,
42
+ }),
43
+ onError: (err) => {
44
+ console.error('[Chat Error]', err)
45
+ },
46
+ })
47
+
48
+ app.mount('#app')
49
+ ```
50
+
51
+ 在模板中使用:
52
+
53
+ ```vue
54
+ <template>
55
+ <div style="width: 100%; height: 100vh;">
56
+ <FsesAiChat />
57
+ </div>
58
+ </template>
59
+ ```
60
+
61
+ ### 方式二:独立组件
62
+
63
+ 按需引入组件,通过 Props 逐个配置。
64
+
65
+ ```vue
66
+ <script setup lang="ts">
67
+ import { FsesAiChat } from '@fses/ai-chat'
68
+ import '@fses/ai-chat/dist/style.css'
69
+
70
+ function getToken() {
71
+ return localStorage.getItem('token') || ''
72
+ }
73
+ </script>
74
+
75
+ <template>
76
+ <FsesAiChat
77
+ api-base-url="/ai/runtime/api"
78
+ enable-chart-cards
79
+ :headers="() => ({ Authorization: `Bearer ${getToken()}` })"
80
+ :on-error="(err) => console.error(err)"
81
+ placeholder="请输入问数需求..."
82
+ welcome-text="欢迎使用 AI 助手"
83
+ />
84
+ </template>
85
+ ```
86
+
87
+ ### 方式三:Headless
88
+
89
+ 直接使用 `useChat` composable,自行构建界面。
90
+
91
+ ```typescript
92
+ import { useChat } from '@fses/ai-chat'
93
+
94
+ const chat = useChat({
95
+ apiBaseUrl: '/ai/runtime/api',
96
+ enableChartCards: true,
97
+ headers: () => ({ Authorization: `Bearer ${getToken()}` }),
98
+ onConversationChange(id) {
99
+ console.log('切换到会话', id)
100
+ },
101
+ onError(err) {
102
+ console.error(err)
103
+ },
104
+ })
105
+
106
+ await chat.sendMessage('本月回款趋势怎么样?')
107
+
108
+ console.log(chat.messages.value)
109
+ console.log(chat.isLoading.value)
110
+ ```
111
+
112
+ ## 图表卡片
113
+
114
+ 开启 `enableChartCards` 后,助手消息可以携带 `cards?: ChartCardSpec[]`。组件会先渲染 Markdown 正文,再在正文下方渲染结构化图表卡片。
115
+
116
+ 一张图表卡片包含标题、统计周期、一个主图表、摘要、数据来源、权限说明、标准动作按钮和可选版本信息。图表区域由前端通过 ECharts 渲染,后端只需要返回稳定的 `ChartCardSpec` 数据。
117
+
118
+ ### ChartCardSpec
119
+
120
+ ```typescript
121
+ export interface ChartCardSpec {
122
+ type: 'chart-card'
123
+ id: string
124
+ title: string
125
+ period?: string
126
+ chart: {
127
+ type: 'mini-bar' | 'bar' | 'line' | 'area' | 'pie' | 'grouped-bar'
128
+ xField: string
129
+ yFields: string[]
130
+ data: Record<string, unknown>[]
131
+ sort?: 'none' | 'asc' | 'desc'
132
+ limit?: number
133
+ hiddenSeries?: string[]
134
+ }
135
+ summary?: string
136
+ source: {
137
+ label: string
138
+ value?: string
139
+ }
140
+ permission: {
141
+ label: string
142
+ level?: 'self' | 'team' | 'org'
143
+ downloadable?: boolean
144
+ }
145
+ actions?: Array<'view' | 'download' | 'insert-left' | 'save-doc' | 'save-kb' | 'upgrade'>
146
+ meta?: {
147
+ generatedBy?: 'agent'
148
+ prompt?: string
149
+ version?: number
150
+ }
151
+ }
152
+ ```
153
+
154
+ ## API
155
+
156
+ ### Props
157
+
158
+ | 属性 | 类型 | 默认值 | 说明 |
159
+ |------|------|--------|------|
160
+ | `apiBaseUrl` | `string` | 插件配置或 `''` | API 基础地址 |
161
+ | `headers` | `() => Record<string, string>` | 插件配置 | 请求头生成函数 |
162
+ | `onError` | `(error: Error) => void` | 插件配置 | 错误回调 |
163
+ | `enableChartCards` | `boolean` | `false` | 是否启用结构化图表卡片渲染 |
164
+ | `placeholder` | `string` | `'请输入消息...'` | 输入框占位文字 |
165
+ | `welcomeText` | `string` | `'开始新的对话'` | 无消息时的欢迎文字 |
166
+
167
+ Props 优先级高于插件配置,未传入的 Props 会从插件配置中读取。
168
+
169
+ ### 插件配置
170
+
171
+ | 字段 | 类型 | 必填 | 说明 |
172
+ |------|------|------|------|
173
+ | `apiBaseUrl` | `string` | 是 | API 基础地址 |
174
+ | `headers` | `() => Record<string, string>` | 否 | 请求头生成函数,每次请求前调用 |
175
+ | `onError` | `(error: Error) => void` | 否 | 全局错误回调 |
176
+ | `enableChartCards` | `boolean` | 否 | 是否默认启用图表卡片能力 |
177
+ | `transport` | `FsesAiChatTransport` | 是 | 发送消息必须由宿主显式提供 `transport`,组件不会再请求根 `POST /chat` |
178
+
179
+ ### useChat Composable
180
+
181
+ #### 参数
182
+
183
+ | 字段 | 类型 | 必填 | 说明 |
184
+ |------|------|------|------|
185
+ | `apiBaseUrl` | `string` | 是 | 历史会话管理 API 基础地址 |
186
+ | `transport` | `FsesAiChatTransport` | 是 | 消息执行 transport,通常调用 `/fde-core` 后用 `consumeAssistantStream` 接入流 |
187
+ | `headers` | `() => Record<string, string>` | 否 | 请求头生成函数 |
188
+ | `enableChartCards` | `boolean` | 否 | 是否保留并渲染结构化图表卡片 |
189
+ | `onConversationChange` | `(id: string) => void` | 否 | 会话切换回调 |
190
+ | `onError` | `(error: Error) => void` | 否 | 错误回调 |
191
+
192
+ #### 返回值
193
+
194
+ | 字段 | 类型 | 说明 |
195
+ |------|------|------|
196
+ | `conversations` | `Ref<Conversation[]>` | 所有会话列表 |
197
+ | `currentConversationId` | `Ref<string \| null>` | 当前活跃会话 ID |
198
+ | `messages` | `Ref<ChatMessage[]>` | 当前会话的消息列表 |
199
+ | `isLoading` | `Ref<boolean>` | 是否正在请求中 |
200
+ | `streamingMessageId` | `Ref<string \| null>` | 当前正在流式输出的消息 ID |
201
+ | `sendMessage` | `(content: string) => Promise<void>` | 发送消息 |
202
+ | `abortStream` | `() => void` | 中止当前流式请求 |
203
+ | `createConversation` | `() => Promise<string>` | 创建新会话,返回会话 ID |
204
+ | `deleteConversation` | `(id: string) => Promise<void>` | 删除会话 |
205
+ | `renameConversation` | `(id: string, name: string) => Promise<void>` | 重命名会话 |
206
+ | `switchConversation` | `(id: string) => Promise<void>` | 切换会话并加载历史 |
207
+ | `loadHistory` | `(id: string) => Promise<void>` | 加载指定会话的消息历史 |
208
+
209
+ ### 类型定义
210
+
211
+ ```typescript
212
+ interface ChatMessage {
213
+ id: string
214
+ role: 'user' | 'assistant' | 'status'
215
+ content: string
216
+ loading?: boolean
217
+ error?: string
218
+ detail?: string
219
+ timestamp: string
220
+ startTime?: number
221
+ cards?: ChartCardSpec[]
222
+ }
223
+
224
+ interface Conversation {
225
+ id: string
226
+ title: string
227
+ messages: ChatMessage[]
228
+ }
229
+ ```
230
+
231
+ ## 后端 API 约定
232
+
233
+ 组件依赖以下历史会话管理接口。发送消息必须由宿主显式提供 `transport`;运行态或工作台宿主通常在 transport 内调用 `/fde-core`,再把返回流交给 `consumeAssistantStream`。
234
+
235
+ | 方法 | 路径 | 说明 |
236
+ |------|------|------|
237
+ | `GET` | `{apiBaseUrl}/chat/conversations` | 获取会话列表 |
238
+ | `GET` | `{apiBaseUrl}/chat/{id}/history` | 获取会话消息历史 |
239
+ | `DELETE` | `{apiBaseUrl}/chat/{id}` | 删除会话 |
240
+ | `PATCH` | `{apiBaseUrl}/chat/{id}/title` | 重命名会话,请求体:`{ title: string }` |
241
+
242
+ ### SSE 事件协议
243
+
244
+ 宿主 transport 可把运行态返回的 `ReadableStream<Uint8Array>` 传给 `consumeAssistantStream`。该流支持以下事件类型:
245
+
246
+ | 事件类型 | 数据字段 | 说明 |
247
+ |----------|----------|------|
248
+ | `start-step` | 无 | 开始一个新的回复步骤,创建空消息 |
249
+ | `text-delta` | `delta` | 增量文本,追加到当前消息 |
250
+ | `text-end` | 无 | 文本生成结束 |
251
+ | `finish-step` | 无 | 当前步骤完成 |
252
+ | `tool-input-start` | `toolName`, `toolCallId` | 工具开始执行,显示状态条 |
253
+ | `tool-output-available` | `toolCallId`, `duration` | 工具执行成功 |
254
+ | `tool-output-error` | `toolCallId`, `error`, `duration` | 工具执行失败 |
255
+ | `data-oh:subagent.start` | `agentName`, `taskId` | 子代理开始执行 |
256
+ | `data-oh:subagent.done` | `taskId`, `duration` | 子代理执行完成 |
257
+ | `error` | `message` | 服务端错误 |
258
+
259
+ ### 工具名称映射
260
+
261
+ 组件将内部工具名映射为中文标签展示:
262
+
263
+ | 工具名 | 显示标签 |
264
+ |--------|----------|
265
+ | `load_ontology` | 加载本体知识 |
266
+ | `get_connection_config` | 获取数据源配置 |
267
+ | `search_business_glossary` | 搜索术语表 |
268
+ | `match_metrics` | 匹配指标 |
269
+ | `match_dimensions` | 匹配维度 |
270
+ | `validate_sql` | 校验 SQL |
271
+ | `explain_plan` | 分析执行计划 |
272
+ | `execute_sql_api` | 执行 SQL 查询 |
273
+ | `skill` | 调用技能 |
274
+ | `task` | 执行子任务 |
275
+
276
+ ## 功能特性
277
+
278
+ - **SSE 流式响应**:实时展示 AI 回复,支持中止
279
+ - **多会话管理**:创建、切换、重命名、删除会话
280
+ - **Markdown 渲染**:支持 GFM 表格、代码块、列表、引用等
281
+ - **工具调用展示**:可视化工具执行状态和耗时
282
+ - **子代理状态**:展示子代理执行进度
283
+ - **图表卡片**:基于结构化 `ChartCardSpec` 渲染业务图表卡片
284
+ - **安全渲染**:通过 DOMPurify 对 Markdown HTML 进行安全过滤,不执行用户提供的 HTML、CSS、JavaScript 或原始 ECharts option
285
+ - **自动滚动**:新消息到达时自动滚动到底部
286
+ - **错误处理**:流式错误和工具错误均有独立展示
287
+ - **快速操作**:首次使用时提供快捷提问按钮
288
+
289
+ ## 集成演示
290
+
291
+ 宿主应用只需要引入 `FsesAiChat` 并开启图表卡片能力:
292
+
293
+ ```vue
294
+ <script setup lang="ts">
295
+ import { FsesAiChat } from '@fses/ai-chat'
296
+ </script>
297
+
298
+ <template>
299
+ <FsesAiChat api-base-url="/ai_run/api/agent" enable-chart-cards />
300
+ </template>
301
+ ```
302
+
303
+ ## 构建
304
+
305
+ ```bash
306
+ pnpm build
307
+ ```
308
+
309
+ 产出物:
310
+
311
+ - `dist/fses-ai-chat.js`:ES Module
312
+ - `dist/fses-ai-chat.umd.cjs`:UMD
313
+ - `dist/style.css`:样式文件
314
+ - `dist/*.d.ts`:TypeScript 类型声明
315
+
316
+ ## 测试
317
+
318
+ ```bash
319
+ pnpm test
320
+ ```
@@ -0,0 +1,12 @@
1
+ import type { ChartCardSpec, MetricWorkbenchDisplaySpec } from './types';
2
+ /**
3
+ * Formats a numeric chart value with a backend-provided display spec, preserving unit, decimals
4
+ * and percent semantics instead of recomputing them on the frontend.
5
+ * @param value - Raw numeric value from a chart row.
6
+ * @param spec - Backend value display spec (unit/decimals/percent), if any.
7
+ * @returns Formatted string honoring the spec, or the plain number when no spec is given.
8
+ */
9
+ export declare function formatChartValue(value: unknown, spec?: MetricWorkbenchDisplaySpec): string;
10
+ export declare function normalizeNumber(value: unknown): number;
11
+ export declare function getVisibleYFields(spec: ChartCardSpec): string[];
12
+ export declare function getDisplayRows(spec: ChartCardSpec): Record<string, unknown>[];
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @fileoverview Markdown chart-card derivation - turns assistant tabular replies into insertable chart cards.
3
+ * @author seadon
4
+ * @created 2026-05-06
5
+ */
6
+ import type { ChartCardSpec } from './types';
7
+ type DeriveChartCardsOptions = {
8
+ userQuestion?: string;
9
+ };
10
+ export declare function deriveChartCardsFromMarkdown(markdown: string, options?: DeriveChartCardsOptions): ChartCardSpec[];
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ChartCardSpec, MetricWorkbenchCardSpec } from './types';
2
+ /**
3
+ * Builds a workbench metric card from execute_metric_api output.
4
+ * @param output - Tool output emitted by the runtime metric executor.
5
+ * @returns Insertable metric card spec, or null for non-metric outputs.
6
+ */
7
+ export declare function deriveMetricWorkbenchCardFromToolOutput(output: unknown): MetricWorkbenchCardSpec | null;
8
+ export declare function deriveChartCardFromToolOutput(output: unknown): ChartCardSpec | null;
@@ -0,0 +1,4 @@
1
+ import type { ChartCardSpec } from './types';
2
+ type ChartOption = Record<string, any>;
3
+ export declare function createChartOption(spec: ChartCardSpec): ChartOption;
4
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { ChartCardSpec } from './types';
2
+ export declare const WORKBENCH_CARD_TRACE_PREFIX = "[workbench-card-trace]";
3
+ export interface ChartCardTraceSummary {
4
+ cardId: string;
5
+ title: string;
6
+ chartType: string;
7
+ xField: string;
8
+ yFields: string[];
9
+ rowCount: number;
10
+ sourceLabel?: string;
11
+ hasDataBinding: boolean;
12
+ bindingId?: string;
13
+ refreshApi?: string;
14
+ hasParamsSchema?: boolean;
15
+ generatedBy?: string;
16
+ metaVersion?: number;
17
+ }
18
+ export declare function summarizeChartCard(card: ChartCardSpec): ChartCardTraceSummary;
19
+ export declare function traceChartCard(stage: string, payload?: Record<string, unknown>): void;
@@ -0,0 +1,133 @@
1
+ /**
2
+ * @fileoverview Chart card shared types for ai-chat rendering and workbench insertion.
3
+ * @author seadon
4
+ * @created 2026-05-06
5
+ */
6
+ export type ChartCardAction = 'view' | 'download' | 'insert-left' | 'save-doc' | 'save-kb' | 'upgrade';
7
+ export type ChartCardType = 'mini-bar' | 'bar' | 'line' | 'area' | 'pie' | 'donut' | 'radar' | 'scatter' | 'bubble' | 'heatmap' | 'funnel' | 'gauge' | 'map' | 'sankey' | 'tree' | 'treemap' | 'sunburst' | 'candlestick' | 'kline' | 'boxplot' | 'graph' | 'network' | 'horizontal-bar' | 'grouped-bar';
8
+ export interface ChartCardSpec {
9
+ type: 'chart-card';
10
+ id: string;
11
+ title: string;
12
+ period?: string;
13
+ chart: {
14
+ type: ChartCardType;
15
+ xField: string;
16
+ yFields: string[];
17
+ data: Record<string, unknown>[];
18
+ sort?: 'none' | 'asc' | 'desc';
19
+ limit?: number;
20
+ hiddenSeries?: string[];
21
+ /**
22
+ * Backend-provided value display spec (unit, decimals, percent). When present the renderer
23
+ * formats numeric values with it instead of recomputing units/decimals on the frontend.
24
+ */
25
+ valueSpec?: MetricWorkbenchDisplaySpec;
26
+ };
27
+ summary?: string;
28
+ source: {
29
+ label: string;
30
+ value?: string;
31
+ };
32
+ dataBinding?: {
33
+ bindingKind?: 'runtime_metric' | 'semantic_sql' | string;
34
+ source?: 'runtime_metric' | 'semantic_sql' | string;
35
+ question?: string;
36
+ validatedSql?: string;
37
+ sqlDialect?: string;
38
+ bindingId?: string;
39
+ contractHash?: string;
40
+ executeApi?: string;
41
+ metricCode?: string;
42
+ metricId?: string;
43
+ metricName?: string;
44
+ readbackApi?: string;
45
+ refreshApi?: string;
46
+ fieldMapping?: {
47
+ xField?: string;
48
+ yFields?: string[];
49
+ [key: string]: unknown;
50
+ };
51
+ paramsSchema?: Record<string, unknown>;
52
+ permissionContext?: {
53
+ tenantId?: string;
54
+ appId?: string;
55
+ [key: string]: unknown;
56
+ };
57
+ };
58
+ permission: {
59
+ label: string;
60
+ level?: 'self' | 'team' | 'org';
61
+ downloadable?: boolean;
62
+ };
63
+ actions?: ChartCardAction[];
64
+ meta?: {
65
+ generatedBy?: 'agent';
66
+ prompt?: string;
67
+ version?: number;
68
+ /**
69
+ * Height in CSS pixels measured from the rendered chat card before inserting into the workbench canvas.
70
+ */
71
+ workbenchAdaptiveHeightPx?: number;
72
+ };
73
+ }
74
+ export type MetricWorkbenchCardFormat = 'currency' | 'number' | 'percent';
75
+ export interface MetricWorkbenchDisplaySpec {
76
+ unitCode?: string;
77
+ unitLabel?: string;
78
+ valueFormat?: MetricWorkbenchCardFormat | 'text' | string;
79
+ decimalPlaces?: number;
80
+ displayValue?: string;
81
+ [key: string]: unknown;
82
+ }
83
+ export interface MetricWorkbenchCardSpec {
84
+ type: 'metric-card';
85
+ id: string;
86
+ title: string;
87
+ metricName: string;
88
+ metricCode?: string;
89
+ metricId?: string;
90
+ value: number;
91
+ displayValue?: string;
92
+ displaySpec?: MetricWorkbenchDisplaySpec;
93
+ format: MetricWorkbenchCardFormat;
94
+ source: {
95
+ label: string;
96
+ value?: string;
97
+ };
98
+ dataBinding?: {
99
+ bindingKind?: 'runtime_metric' | 'semantic_sql' | string;
100
+ source?: 'runtime_metric' | 'semantic_sql' | string;
101
+ question?: string;
102
+ bindingId?: string;
103
+ contractHash?: string;
104
+ executeApi?: string;
105
+ metricCode?: string;
106
+ metricId?: string;
107
+ metricName?: string;
108
+ readbackApi?: string;
109
+ refreshApi?: string;
110
+ displayValue?: string;
111
+ displaySpec?: MetricWorkbenchDisplaySpec;
112
+ unitCode?: string;
113
+ unitLabel?: string;
114
+ valueFormat?: string;
115
+ decimalPlaces?: number;
116
+ queryFilters?: unknown[];
117
+ paramsSchema?: Record<string, unknown>;
118
+ permissionContext?: {
119
+ tenantId?: string;
120
+ appId?: string;
121
+ [key: string]: unknown;
122
+ };
123
+ };
124
+ permission: {
125
+ label: string;
126
+ level?: 'self' | 'team' | 'org';
127
+ };
128
+ meta?: {
129
+ generatedBy?: 'agent';
130
+ prompt?: string;
131
+ version?: number;
132
+ };
133
+ }
@@ -0,0 +1,13 @@
1
+ import type { CardRecommendationChooseFeedback, CardRecommendationDraft, CardRecommendationItem } from '../composables/types';
2
+ type __VLS_Props = {
3
+ draft: CardRecommendationDraft;
4
+ defer?: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ configure: (item: CardRecommendationItem) => any;
8
+ choose: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onConfigure?: (item: CardRecommendationItem) => any;
11
+ onChoose?: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import type { CardRecommendationChooseFeedback, CardRecommendationDraft, CardRecommendationItem } from '../composables/types';
2
+ import { type RecommendationConfigSummary } from '../utils/card-recommendation-config-summary';
3
+ type __VLS_Props = {
4
+ draft: CardRecommendationDraft;
5
+ };
6
+ /**
7
+ * 璇诲彇鎺ㄨ崘椤归厤缃憳瑕併€? * @param baseItem - 鎺ㄨ崘鍒嗙粍鍘熷椤广€? * @returns 閰嶇疆鎽樿銆? */
8
+ declare function recommendationConfigSummary(baseItem: CardRecommendationItem): RecommendationConfigSummary;
9
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
10
+ recommendationConfigSummary: typeof recommendationConfigSummary;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ configure: (item: CardRecommendationItem) => any;
13
+ choose: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ onConfigure?: (item: CardRecommendationItem) => any;
16
+ onChoose?: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import type { ChartCardSpec } from '../chart-card/types';
2
+ type __VLS_Props = {
3
+ card: ChartCardSpec;
4
+ showInsertAction?: boolean;
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ insertCard: (card: ChartCardSpec) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onInsertCard?: (card: ChartCardSpec) => any;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,76 @@
1
+ import type { ChartCardSpec } from '../chart-card/types';
2
+ import type { CardRecommendationChooseFeedback, CardRecommendationItem, ChatMessage } from '../composables/types';
3
+ import { type PropType } from 'vue';
4
+ /**
5
+ * 将外部保存结果应用到本地按钮状态。
6
+ * @param status - 保存结果状态。
7
+ */
8
+ declare function setMemoryCaptureStatus(status: 'draft' | 'candidate_created' | 'dismissed'): void;
9
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ message: {
11
+ type: PropType<ChatMessage>;
12
+ required: true;
13
+ };
14
+ messages: {
15
+ type: PropType<ChatMessage[]>;
16
+ default: () => any[];
17
+ };
18
+ autoInsertComposePlan: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ taskStateActionsDisabled: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }>, {
27
+ setMemoryCaptureStatus: typeof setMemoryCaptureStatus;
28
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
+ insertCard: (card: ChartCardSpec) => any;
30
+ autoInsertComposePlanChange: (enabled: boolean) => any;
31
+ cancelPlan: () => any;
32
+ cancelTaskState: (turnId: string, taskId: string, phrase: string) => any;
33
+ chooseCardRecommendation: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
34
+ configureCardRecommendation: (item: CardRecommendationItem) => any;
35
+ confirmPlan: (planId: string) => any;
36
+ confirmTaskState: (turnId: string, taskId: string, phrase: string) => any;
37
+ memoryCaptureDismiss: (turnId: string, itemId: string) => any;
38
+ memoryCaptureSave: (turnId: string, itemId: string) => any;
39
+ modifyPlan: (planId: string, prompt: string) => any;
40
+ sendFollowUp: (text: string) => any;
41
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ message: {
43
+ type: PropType<ChatMessage>;
44
+ required: true;
45
+ };
46
+ messages: {
47
+ type: PropType<ChatMessage[]>;
48
+ default: () => any[];
49
+ };
50
+ autoInsertComposePlan: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ taskStateActionsDisabled: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ }>> & Readonly<{
59
+ onInsertCard?: (card: ChartCardSpec) => any;
60
+ onAutoInsertComposePlanChange?: (enabled: boolean) => any;
61
+ onCancelPlan?: () => any;
62
+ onCancelTaskState?: (turnId: string, taskId: string, phrase: string) => any;
63
+ onChooseCardRecommendation?: (item: CardRecommendationItem, feedback?: CardRecommendationChooseFeedback) => any;
64
+ onConfigureCardRecommendation?: (item: CardRecommendationItem) => any;
65
+ onConfirmPlan?: (planId: string) => any;
66
+ onConfirmTaskState?: (turnId: string, taskId: string, phrase: string) => any;
67
+ onMemoryCaptureDismiss?: (turnId: string, itemId: string) => any;
68
+ onMemoryCaptureSave?: (turnId: string, itemId: string) => any;
69
+ onModifyPlan?: (planId: string, prompt: string) => any;
70
+ onSendFollowUp?: (text: string) => any;
71
+ }>, {
72
+ messages: ChatMessage[];
73
+ taskStateActionsDisabled: boolean;
74
+ autoInsertComposePlan: boolean;
75
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
76
+ export default _default;