@loom-framework/core 0.1.0-alpha.18 → 0.1.0-alpha.180

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 (795) hide show
  1. package/builtin-skills/antd/SKILL.md +266 -0
  2. package/builtin-skills/antv-g2-chart/SKILL.md +1067 -0
  3. package/builtin-skills/antv-g2-chart/references/animations/g2-animation-intro.md +176 -0
  4. package/builtin-skills/antv-g2-chart/references/animations/g2-animation-keyframe.md +149 -0
  5. package/builtin-skills/antv-g2-chart/references/animations/g2-animation-types.md +253 -0
  6. package/builtin-skills/antv-g2-chart/references/components/g2-comp-annotation.md +237 -0
  7. package/builtin-skills/antv-g2-chart/references/components/g2-comp-axis-config.md +648 -0
  8. package/builtin-skills/antv-g2-chart/references/components/g2-comp-axis-radar.md +219 -0
  9. package/builtin-skills/antv-g2-chart/references/components/g2-comp-label-config.md +174 -0
  10. package/builtin-skills/antv-g2-chart/references/components/g2-comp-legend-category.md +278 -0
  11. package/builtin-skills/antv-g2-chart/references/components/g2-comp-legend-config.md +363 -0
  12. package/builtin-skills/antv-g2-chart/references/components/g2-comp-legend-continuous.md +264 -0
  13. package/builtin-skills/antv-g2-chart/references/components/g2-comp-scrollbar.md +276 -0
  14. package/builtin-skills/antv-g2-chart/references/components/g2-comp-slider.md +333 -0
  15. package/builtin-skills/antv-g2-chart/references/components/g2-comp-title.md +149 -0
  16. package/builtin-skills/antv-g2-chart/references/components/g2-comp-tooltip-config.md +358 -0
  17. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-facet-circle.md +97 -0
  18. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-facet-rect.md +241 -0
  19. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-geo-map.md +210 -0
  20. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-geoview.md +143 -0
  21. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-repeat-matrix.md +171 -0
  22. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-space-flex.md +142 -0
  23. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-space-layer.md +149 -0
  24. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-timing-keyframe.md +91 -0
  25. package/builtin-skills/antv-g2-chart/references/compositions/g2-comp-view.md +309 -0
  26. package/builtin-skills/antv-g2-chart/references/concepts/g2-concept-chart-selection.md +235 -0
  27. package/builtin-skills/antv-g2-chart/references/concepts/g2-concept-color-theory.md +287 -0
  28. package/builtin-skills/antv-g2-chart/references/concepts/g2-concept-visual-channels.md +180 -0
  29. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-cartesian.md +131 -0
  30. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-fisheye.md +131 -0
  31. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-helix.md +141 -0
  32. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-parallel.md +129 -0
  33. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-polar.md +143 -0
  34. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-radial.md +214 -0
  35. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-theta.md +171 -0
  36. package/builtin-skills/antv-g2-chart/references/coordinates/g2-coord-transpose.md +195 -0
  37. package/builtin-skills/antv-g2-chart/references/core/g2-core-chart-init.md +266 -0
  38. package/builtin-skills/antv-g2-chart/references/core/g2-core-encode-channel.md +197 -0
  39. package/builtin-skills/antv-g2-chart/references/core/g2-core-view-composition.md +224 -0
  40. package/builtin-skills/antv-g2-chart/references/data/g2-data-ema.md +190 -0
  41. package/builtin-skills/antv-g2-chart/references/data/g2-data-fetch.md +167 -0
  42. package/builtin-skills/antv-g2-chart/references/data/g2-data-filter.md +212 -0
  43. package/builtin-skills/antv-g2-chart/references/data/g2-data-fold.md +260 -0
  44. package/builtin-skills/antv-g2-chart/references/data/g2-data-format-tabular.md +280 -0
  45. package/builtin-skills/antv-g2-chart/references/data/g2-data-kde.md +426 -0
  46. package/builtin-skills/antv-g2-chart/references/data/g2-data-log.md +140 -0
  47. package/builtin-skills/antv-g2-chart/references/data/g2-data-slice.md +147 -0
  48. package/builtin-skills/antv-g2-chart/references/data/g2-data-sort.md +251 -0
  49. package/builtin-skills/antv-g2-chart/references/data/g2-data-sortby.md +183 -0
  50. package/builtin-skills/antv-g2-chart/references/data/g2-data-transform-patterns.md +394 -0
  51. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-adaptive-filter.md +118 -0
  52. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brush-axis.md +112 -0
  53. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brush-filter.md +122 -0
  54. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brush-x-y-highlight.md +127 -0
  55. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brush-xy.md +118 -0
  56. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brush.md +184 -0
  57. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brushx-filter.md +170 -0
  58. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brushx-highlight.md +186 -0
  59. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brushy-filter.md +170 -0
  60. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-brushy-highlight.md +185 -0
  61. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-chart-index.md +127 -0
  62. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-drilldown.md +149 -0
  63. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-element-highlight-by.md +125 -0
  64. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-element-highlight.md +235 -0
  65. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-element-hover-scale.md +109 -0
  66. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-element-point-move.md +152 -0
  67. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-element-select-by.md +133 -0
  68. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-element-select.md +249 -0
  69. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-fisheye.md +117 -0
  70. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-legend-filter.md +130 -0
  71. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-legend-highlight.md +130 -0
  72. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-poptip.md +105 -0
  73. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-scrollbar-filter.md +144 -0
  74. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-slider-filter.md +231 -0
  75. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-slider-wheel.md +138 -0
  76. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-tooltip.md +192 -0
  77. package/builtin-skills/antv-g2-chart/references/interactions/g2-interaction-treemap-drilldown.md +152 -0
  78. package/builtin-skills/antv-g2-chart/references/label-transform/g2-label-transform-contrast-reverse.md +170 -0
  79. package/builtin-skills/antv-g2-chart/references/label-transform/g2-label-transform-exceed-adjust.md +146 -0
  80. package/builtin-skills/antv-g2-chart/references/label-transform/g2-label-transform-overflow-hide.md +185 -0
  81. package/builtin-skills/antv-g2-chart/references/label-transform/g2-label-transform-overflow-stroke.md +147 -0
  82. package/builtin-skills/antv-g2-chart/references/label-transform/g2-label-transform-overlap-dodge-y.md +225 -0
  83. package/builtin-skills/antv-g2-chart/references/label-transform/g2-label-transform-overlap-hide.md +213 -0
  84. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-arc-diagram.md +196 -0
  85. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-arc-donut.md +148 -0
  86. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-arc-pie.md +212 -0
  87. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-area-basic.md +168 -0
  88. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-area-stacked.md +150 -0
  89. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-beeswarm.md +134 -0
  90. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-bi-directional-bar.md +297 -0
  91. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-box-boxplot.md +163 -0
  92. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-boxplot.md +340 -0
  93. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-bullet.md +203 -0
  94. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-cell-heatmap.md +370 -0
  95. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-chord.md +341 -0
  96. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-connector.md +126 -0
  97. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-contourline.md +243 -0
  98. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-density.md +457 -0
  99. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-distribution-curve.md +298 -0
  100. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-funnel.md +329 -0
  101. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-gantt.md +208 -0
  102. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-gauge.md +247 -0
  103. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-heatmap.md +130 -0
  104. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-histogram.md +186 -0
  105. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-image.md +129 -0
  106. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-interval-basic.md +528 -0
  107. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-interval-grouped.md +161 -0
  108. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-interval-normalized.md +147 -0
  109. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-interval-stacked.md +183 -0
  110. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-k-chart.md +237 -0
  111. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-line-basic.md +353 -0
  112. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-line-multi.md +156 -0
  113. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-linex-liney.md +176 -0
  114. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-link.md +134 -0
  115. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-liquid.md +125 -0
  116. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-mosaic.md +257 -0
  117. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-pack.md +424 -0
  118. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-parallel.md +195 -0
  119. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-partition.md +275 -0
  120. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-path.md +135 -0
  121. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-point-bubble.md +138 -0
  122. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-point-scatter.md +177 -0
  123. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-polygon.md +130 -0
  124. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-radar.md +231 -0
  125. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-radial-bar.md +226 -0
  126. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-range-rangey.md +253 -0
  127. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-rangex.md +293 -0
  128. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-rect.md +115 -0
  129. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-regression-curve.md +276 -0
  130. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-rose.md +182 -0
  131. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-sankey.md +217 -0
  132. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-shape.md +160 -0
  133. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-spiral.md +257 -0
  134. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-sunburst.md +327 -0
  135. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-text.md +309 -0
  136. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-tree.md +235 -0
  137. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-treemap.md +426 -0
  138. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-vector.md +108 -0
  139. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-venn.md +204 -0
  140. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-violin.md +307 -0
  141. package/builtin-skills/antv-g2-chart/references/marks/g2-mark-wordcloud.md +155 -0
  142. package/builtin-skills/antv-g2-chart/references/palette/g2-palette-category10.md +196 -0
  143. package/builtin-skills/antv-g2-chart/references/palette/g2-palette-category20.md +238 -0
  144. package/builtin-skills/antv-g2-chart/references/patterns/g2-pattern-performance.md +181 -0
  145. package/builtin-skills/antv-g2-chart/references/patterns/g2-pattern-responsive.md +232 -0
  146. package/builtin-skills/antv-g2-chart/references/patterns/g2-pattern-v4-to-v5.md +223 -0
  147. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-band.md +127 -0
  148. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-linear.md +259 -0
  149. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-log.md +226 -0
  150. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-ordinal.md +135 -0
  151. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-point.md +242 -0
  152. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-pow-sqrt.md +124 -0
  153. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-quantile-quantize.md +119 -0
  154. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-sequential.md +267 -0
  155. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-threshold.md +133 -0
  156. package/builtin-skills/antv-g2-chart/references/scales/g2-scale-time.md +159 -0
  157. package/builtin-skills/antv-g2-chart/references/themes/g2-theme-builtin.md +192 -0
  158. package/builtin-skills/antv-g2-chart/references/themes/g2-theme-custom.md +183 -0
  159. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-bin.md +153 -0
  160. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-binx.md +133 -0
  161. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-diffy.md +130 -0
  162. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-dodgex.md +90 -0
  163. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-flexx.md +115 -0
  164. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-group.md +233 -0
  165. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-groupcolor.md +182 -0
  166. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-groupx.md +265 -0
  167. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-groupy.md +167 -0
  168. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-jitter.md +149 -0
  169. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-jitterx.md +177 -0
  170. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-jittery.md +177 -0
  171. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-normalizey.md +83 -0
  172. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-pack.md +164 -0
  173. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-sample.md +143 -0
  174. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-select.md +147 -0
  175. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-selectx.md +179 -0
  176. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-selecty.md +179 -0
  177. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-sort-color.md +115 -0
  178. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-sortx.md +285 -0
  179. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-sorty.md +117 -0
  180. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-stack-enter.md +158 -0
  181. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-stacky.md +218 -0
  182. package/builtin-skills/antv-g2-chart/references/transforms/g2-transform-symmetryy.md +122 -0
  183. package/builtin-skills/app-skill/SKILL.md +48 -0
  184. package/builtin-skills/app-skill/references/auth.md +180 -0
  185. package/builtin-skills/app-skill/references/data-semantics.md +44 -0
  186. package/builtin-skills/app-skill/references/events.md +119 -0
  187. package/builtin-skills/app-skill/references/evolution.md +90 -0
  188. package/builtin-skills/app-skill/references/model.md +124 -0
  189. package/builtin-skills/app-skill/references/models.md +45 -0
  190. package/builtin-skills/app-skill/references/notification.md +123 -0
  191. package/builtin-skills/app-skill/references/process-builder.md +444 -0
  192. package/builtin-skills/app-skill/references/process-metrics.md +93 -0
  193. package/builtin-skills/app-skill/references/process.md +336 -0
  194. package/builtin-skills/chart-visualization/SKILL.md +101 -0
  195. package/builtin-skills/loom/SKILL.md +301 -0
  196. package/builtin-skills/loom/references/README.md +285 -0
  197. package/builtin-skills/loom/references/dashboard.md +259 -0
  198. package/builtin-skills/loom/references/data-model.md +290 -0
  199. package/builtin-skills/loom/references/eject.md +111 -0
  200. package/builtin-skills/yuque-reader/SKILL.md +43 -0
  201. package/builtin-skills/yuque-reader/references/config.md +52 -0
  202. package/builtin-skills/yuque-reader/scripts/fetch_doc.py +121 -0
  203. package/dist/adapter-base.d.ts +31 -0
  204. package/dist/adapter-base.d.ts.map +1 -0
  205. package/dist/adapter-base.js +69 -0
  206. package/dist/adapter-base.js.map +1 -0
  207. package/dist/adapter-factory.d.ts +8 -0
  208. package/dist/adapter-factory.d.ts.map +1 -0
  209. package/dist/adapter-factory.js +25 -0
  210. package/dist/adapter-factory.js.map +1 -0
  211. package/dist/adapter-filesystem.d.ts +25 -11
  212. package/dist/adapter-filesystem.d.ts.map +1 -1
  213. package/dist/adapter-filesystem.js +230 -52
  214. package/dist/adapter-filesystem.js.map +1 -1
  215. package/dist/adapter-sqlite.d.ts +9 -23
  216. package/dist/adapter-sqlite.d.ts.map +1 -1
  217. package/dist/adapter-sqlite.js +94 -55
  218. package/dist/adapter-sqlite.js.map +1 -1
  219. package/dist/adapters/base.d.ts +31 -0
  220. package/dist/adapters/base.d.ts.map +1 -0
  221. package/dist/adapters/base.js +69 -0
  222. package/dist/adapters/base.js.map +1 -0
  223. package/dist/adapters/factory.d.ts +8 -0
  224. package/dist/adapters/factory.d.ts.map +1 -0
  225. package/dist/adapters/factory.js +25 -0
  226. package/dist/adapters/factory.js.map +1 -0
  227. package/dist/adapters/filesystem.d.ts +46 -0
  228. package/dist/adapters/filesystem.d.ts.map +1 -0
  229. package/dist/adapters/filesystem.js +321 -0
  230. package/dist/adapters/filesystem.js.map +1 -0
  231. package/dist/adapters/index.d.ts +10 -0
  232. package/dist/adapters/index.d.ts.map +1 -0
  233. package/dist/adapters/index.js +8 -0
  234. package/dist/adapters/index.js.map +1 -0
  235. package/dist/adapters/sqlite.d.ts +37 -0
  236. package/dist/adapters/sqlite.d.ts.map +1 -0
  237. package/dist/adapters/sqlite.js +264 -0
  238. package/dist/adapters/sqlite.js.map +1 -0
  239. package/dist/backend/ai/button-resolver.d.ts +18 -0
  240. package/dist/backend/ai/button-resolver.d.ts.map +1 -0
  241. package/dist/backend/ai/button-resolver.js +58 -0
  242. package/dist/backend/ai/button-resolver.js.map +1 -0
  243. package/dist/backend/ai/content-blocks.d.ts +18 -0
  244. package/dist/backend/ai/content-blocks.d.ts.map +1 -0
  245. package/dist/backend/ai/content-blocks.js +66 -0
  246. package/dist/backend/ai/content-blocks.js.map +1 -0
  247. package/dist/backend/ai/engine.d.ts +65 -0
  248. package/dist/backend/ai/engine.d.ts.map +1 -0
  249. package/dist/backend/ai/engine.js +238 -0
  250. package/dist/backend/ai/engine.js.map +1 -0
  251. package/dist/backend/ai/index.d.ts +11 -0
  252. package/dist/backend/ai/index.d.ts.map +1 -0
  253. package/dist/backend/ai/index.js +8 -0
  254. package/dist/backend/ai/index.js.map +1 -0
  255. package/dist/backend/ai/output-parser.d.ts +36 -0
  256. package/dist/backend/ai/output-parser.d.ts.map +1 -0
  257. package/dist/backend/ai/output-parser.js +264 -0
  258. package/dist/backend/ai/output-parser.js.map +1 -0
  259. package/dist/backend/ai/session-manager.d.ts +106 -0
  260. package/dist/backend/ai/session-manager.d.ts.map +1 -0
  261. package/dist/backend/ai/session-manager.js +304 -0
  262. package/dist/backend/ai/session-manager.js.map +1 -0
  263. package/dist/backend/auth/jwt.d.ts +16 -0
  264. package/dist/backend/auth/jwt.d.ts.map +1 -0
  265. package/dist/backend/auth/jwt.js +57 -0
  266. package/dist/backend/auth/jwt.js.map +1 -0
  267. package/dist/backend/auth/password.d.ts +10 -0
  268. package/dist/backend/auth/password.d.ts.map +1 -0
  269. package/dist/backend/auth/password.js +19 -0
  270. package/dist/backend/auth/password.js.map +1 -0
  271. package/dist/backend/auth/rbac.d.ts +36 -0
  272. package/dist/backend/auth/rbac.d.ts.map +1 -0
  273. package/dist/backend/auth/rbac.js +130 -0
  274. package/dist/backend/auth/rbac.js.map +1 -0
  275. package/dist/backend/auth/request-context.d.ts +15 -0
  276. package/dist/backend/auth/request-context.d.ts.map +1 -0
  277. package/dist/backend/auth/request-context.js +17 -0
  278. package/dist/backend/auth/request-context.js.map +1 -0
  279. package/dist/backend/auth/service-token.d.ts +11 -0
  280. package/dist/backend/auth/service-token.d.ts.map +1 -0
  281. package/dist/backend/auth/service-token.js +13 -0
  282. package/dist/backend/auth/service-token.js.map +1 -0
  283. package/dist/backend/auth/token-store.d.ts +28 -0
  284. package/dist/backend/auth/token-store.d.ts.map +1 -0
  285. package/dist/backend/auth/token-store.js +84 -0
  286. package/dist/backend/auth/token-store.js.map +1 -0
  287. package/dist/backend/auth/user-store.d.ts +42 -0
  288. package/dist/backend/auth/user-store.d.ts.map +1 -0
  289. package/dist/backend/auth/user-store.js +112 -0
  290. package/dist/backend/auth/user-store.js.map +1 -0
  291. package/dist/backend/events/event-bus.d.ts +39 -0
  292. package/dist/backend/events/event-bus.d.ts.map +1 -0
  293. package/dist/backend/events/event-bus.js +182 -0
  294. package/dist/backend/events/event-bus.js.map +1 -0
  295. package/dist/backend/events/event-emitting-adapter.d.ts +31 -0
  296. package/dist/backend/events/event-emitting-adapter.d.ts.map +1 -0
  297. package/dist/backend/events/event-emitting-adapter.js +70 -0
  298. package/dist/backend/events/event-emitting-adapter.js.map +1 -0
  299. package/dist/backend/events/event-registry.d.ts +24 -0
  300. package/dist/backend/events/event-registry.d.ts.map +1 -0
  301. package/dist/backend/events/event-registry.js +22 -0
  302. package/dist/backend/events/event-registry.js.map +1 -0
  303. package/dist/backend/events/index.d.ts +7 -0
  304. package/dist/backend/events/index.d.ts.map +1 -0
  305. package/dist/backend/events/index.js +7 -0
  306. package/dist/backend/events/index.js.map +1 -0
  307. package/dist/backend/index.d.ts +92 -0
  308. package/dist/backend/index.d.ts.map +1 -0
  309. package/dist/backend/index.js +460 -0
  310. package/dist/backend/index.js.map +1 -0
  311. package/dist/backend/lifecycle/index.d.ts +2 -0
  312. package/dist/backend/lifecycle/index.d.ts.map +1 -0
  313. package/dist/backend/lifecycle/index.js +2 -0
  314. package/dist/backend/lifecycle/index.js.map +1 -0
  315. package/dist/backend/lifecycle/manager.d.ts +67 -0
  316. package/dist/backend/lifecycle/manager.d.ts.map +1 -0
  317. package/dist/backend/lifecycle/manager.js +606 -0
  318. package/dist/backend/lifecycle/manager.js.map +1 -0
  319. package/dist/backend/loom-paths.d.ts +28 -0
  320. package/dist/backend/loom-paths.d.ts.map +1 -0
  321. package/dist/backend/loom-paths.js +45 -0
  322. package/dist/backend/loom-paths.js.map +1 -0
  323. package/dist/backend/notifications/interpolate.d.ts +6 -0
  324. package/dist/backend/notifications/interpolate.d.ts.map +1 -0
  325. package/dist/backend/notifications/interpolate.js +11 -0
  326. package/dist/backend/notifications/interpolate.js.map +1 -0
  327. package/dist/backend/notifications/notification-storage.d.ts +27 -0
  328. package/dist/backend/notifications/notification-storage.d.ts.map +1 -0
  329. package/dist/backend/notifications/notification-storage.js +160 -0
  330. package/dist/backend/notifications/notification-storage.js.map +1 -0
  331. package/dist/backend/observe/index.d.ts +6 -0
  332. package/dist/backend/observe/index.d.ts.map +1 -0
  333. package/dist/backend/observe/index.js +5 -0
  334. package/dist/backend/observe/index.js.map +1 -0
  335. package/dist/backend/observe/logger.d.ts +26 -0
  336. package/dist/backend/observe/logger.d.ts.map +1 -0
  337. package/dist/backend/observe/logger.js +68 -0
  338. package/dist/backend/observe/logger.js.map +1 -0
  339. package/dist/backend/observe/types.d.ts +26 -0
  340. package/dist/backend/observe/types.d.ts.map +1 -0
  341. package/dist/backend/observe/types.js +7 -0
  342. package/dist/backend/observe/types.js.map +1 -0
  343. package/dist/backend/process/engine.d.ts +113 -0
  344. package/dist/backend/process/engine.d.ts.map +1 -0
  345. package/dist/backend/process/engine.js +606 -0
  346. package/dist/backend/process/engine.js.map +1 -0
  347. package/dist/backend/process/index.d.ts +7 -0
  348. package/dist/backend/process/index.d.ts.map +1 -0
  349. package/dist/backend/process/index.js +6 -0
  350. package/dist/backend/process/index.js.map +1 -0
  351. package/dist/backend/process/logger.d.ts +38 -0
  352. package/dist/backend/process/logger.d.ts.map +1 -0
  353. package/dist/backend/process/logger.js +198 -0
  354. package/dist/backend/process/logger.js.map +1 -0
  355. package/dist/backend/process/metrics-store.d.ts +32 -0
  356. package/dist/backend/process/metrics-store.d.ts.map +1 -0
  357. package/dist/backend/process/metrics-store.js +108 -0
  358. package/dist/backend/process/metrics-store.js.map +1 -0
  359. package/dist/backend/process/migrate.d.ts +12 -0
  360. package/dist/backend/process/migrate.d.ts.map +1 -0
  361. package/dist/backend/process/migrate.js +145 -0
  362. package/dist/backend/process/migrate.js.map +1 -0
  363. package/dist/backend/process/queue.d.ts +33 -0
  364. package/dist/backend/process/queue.d.ts.map +1 -0
  365. package/dist/backend/process/queue.js +94 -0
  366. package/dist/backend/process/queue.js.map +1 -0
  367. package/dist/backend/process/registry.d.ts +29 -0
  368. package/dist/backend/process/registry.d.ts.map +1 -0
  369. package/dist/backend/process/registry.js +105 -0
  370. package/dist/backend/process/registry.js.map +1 -0
  371. package/dist/backend/process/trigger.d.ts +29 -0
  372. package/dist/backend/process/trigger.d.ts.map +1 -0
  373. package/dist/backend/process/trigger.js +108 -0
  374. package/dist/backend/process/trigger.js.map +1 -0
  375. package/dist/backend/routes/ai-config.d.ts +18 -0
  376. package/dist/backend/routes/ai-config.d.ts.map +1 -0
  377. package/dist/backend/routes/ai-config.js +295 -0
  378. package/dist/backend/routes/ai-config.js.map +1 -0
  379. package/dist/backend/routes/auth-routes.d.ts +33 -0
  380. package/dist/backend/routes/auth-routes.d.ts.map +1 -0
  381. package/dist/backend/routes/auth-routes.js +528 -0
  382. package/dist/backend/routes/auth-routes.js.map +1 -0
  383. package/dist/backend/routes/chat-sse.d.ts +17 -0
  384. package/dist/backend/routes/chat-sse.d.ts.map +1 -0
  385. package/dist/backend/routes/chat-sse.js +60 -0
  386. package/dist/backend/routes/chat-sse.js.map +1 -0
  387. package/dist/backend/routes/chat.d.ts +30 -0
  388. package/dist/backend/routes/chat.d.ts.map +1 -0
  389. package/dist/backend/routes/chat.js +258 -0
  390. package/dist/backend/routes/chat.js.map +1 -0
  391. package/dist/backend/routes/data.d.ts +16 -0
  392. package/dist/backend/routes/data.d.ts.map +1 -0
  393. package/dist/backend/routes/data.js +371 -0
  394. package/dist/backend/routes/data.js.map +1 -0
  395. package/dist/backend/routes/event-routes.d.ts +15 -0
  396. package/dist/backend/routes/event-routes.d.ts.map +1 -0
  397. package/dist/backend/routes/event-routes.js +35 -0
  398. package/dist/backend/routes/event-routes.js.map +1 -0
  399. package/dist/backend/routes/health.d.ts +7 -0
  400. package/dist/backend/routes/health.d.ts.map +1 -0
  401. package/dist/backend/routes/health.js +15 -0
  402. package/dist/backend/routes/health.js.map +1 -0
  403. package/dist/backend/routes/index.d.ts +24 -0
  404. package/dist/backend/routes/index.d.ts.map +1 -0
  405. package/dist/backend/routes/index.js +16 -0
  406. package/dist/backend/routes/index.js.map +1 -0
  407. package/dist/backend/routes/lifecycle-routes.d.ts +10 -0
  408. package/dist/backend/routes/lifecycle-routes.d.ts.map +1 -0
  409. package/dist/backend/routes/lifecycle-routes.js +54 -0
  410. package/dist/backend/routes/lifecycle-routes.js.map +1 -0
  411. package/dist/backend/routes/notification-routes.d.ts +22 -0
  412. package/dist/backend/routes/notification-routes.d.ts.map +1 -0
  413. package/dist/backend/routes/notification-routes.js +129 -0
  414. package/dist/backend/routes/notification-routes.js.map +1 -0
  415. package/dist/backend/routes/process-routes.d.ts +19 -0
  416. package/dist/backend/routes/process-routes.d.ts.map +1 -0
  417. package/dist/backend/routes/process-routes.js +373 -0
  418. package/dist/backend/routes/process-routes.js.map +1 -0
  419. package/dist/backend/routes/session-routes.d.ts +22 -0
  420. package/dist/backend/routes/session-routes.d.ts.map +1 -0
  421. package/dist/backend/routes/session-routes.js +97 -0
  422. package/dist/backend/routes/session-routes.js.map +1 -0
  423. package/dist/backend/routes/skill-archive.d.ts +13 -0
  424. package/dist/backend/routes/skill-archive.d.ts.map +1 -0
  425. package/dist/backend/routes/skill-archive.js +84 -0
  426. package/dist/backend/routes/skill-archive.js.map +1 -0
  427. package/dist/backend/routes/skill-parser.d.ts +41 -0
  428. package/dist/backend/routes/skill-parser.d.ts.map +1 -0
  429. package/dist/backend/routes/skill-parser.js +184 -0
  430. package/dist/backend/routes/skill-parser.js.map +1 -0
  431. package/dist/backend/routes/skill-service.d.ts +113 -0
  432. package/dist/backend/routes/skill-service.d.ts.map +1 -0
  433. package/dist/backend/routes/skill-service.js +265 -0
  434. package/dist/backend/routes/skill-service.js.map +1 -0
  435. package/dist/backend/routes/skills.d.ts +18 -0
  436. package/dist/backend/routes/skills.d.ts.map +1 -0
  437. package/dist/backend/routes/skills.js +168 -0
  438. package/dist/backend/routes/skills.js.map +1 -0
  439. package/dist/backend/routes/upload.d.ts +25 -0
  440. package/dist/backend/routes/upload.d.ts.map +1 -0
  441. package/dist/backend/routes/upload.js +100 -0
  442. package/dist/backend/routes/upload.js.map +1 -0
  443. package/dist/backend/services/skill-archive.d.ts +13 -0
  444. package/dist/backend/services/skill-archive.d.ts.map +1 -0
  445. package/dist/backend/services/skill-archive.js +84 -0
  446. package/dist/backend/services/skill-archive.js.map +1 -0
  447. package/dist/backend/services/skill-parser.d.ts +41 -0
  448. package/dist/backend/services/skill-parser.d.ts.map +1 -0
  449. package/dist/backend/services/skill-parser.js +184 -0
  450. package/dist/backend/services/skill-parser.js.map +1 -0
  451. package/dist/backend/services/skill-service.d.ts +113 -0
  452. package/dist/backend/services/skill-service.d.ts.map +1 -0
  453. package/dist/backend/services/skill-service.js +265 -0
  454. package/dist/backend/services/skill-service.js.map +1 -0
  455. package/dist/bin.d.ts +8 -0
  456. package/dist/bin.d.ts.map +1 -0
  457. package/dist/bin.js +12 -0
  458. package/dist/bin.js.map +1 -0
  459. package/dist/capability-generator.d.ts +21 -6
  460. package/dist/capability-generator.d.ts.map +1 -1
  461. package/dist/capability-generator.js +88 -261
  462. package/dist/capability-generator.js.map +1 -1
  463. package/dist/cli/commands/auth.d.ts +11 -0
  464. package/dist/cli/commands/auth.d.ts.map +1 -0
  465. package/dist/cli/commands/auth.js +211 -0
  466. package/dist/cli/commands/auth.js.map +1 -0
  467. package/dist/cli/commands/build.d.ts +11 -0
  468. package/dist/cli/commands/build.d.ts.map +1 -0
  469. package/dist/cli/commands/build.js +170 -0
  470. package/dist/cli/commands/build.js.map +1 -0
  471. package/dist/cli/commands/data.d.ts +15 -0
  472. package/dist/cli/commands/data.d.ts.map +1 -0
  473. package/dist/cli/commands/data.js +214 -0
  474. package/dist/cli/commands/data.js.map +1 -0
  475. package/dist/cli/commands/dev.d.ts +8 -0
  476. package/dist/cli/commands/dev.d.ts.map +1 -0
  477. package/dist/cli/commands/dev.js +114 -0
  478. package/dist/cli/commands/dev.js.map +1 -0
  479. package/dist/cli/commands/eject.d.ts +12 -0
  480. package/dist/cli/commands/eject.d.ts.map +1 -0
  481. package/dist/cli/commands/eject.js +280 -0
  482. package/dist/cli/commands/eject.js.map +1 -0
  483. package/dist/cli/commands/generate-capabilities.d.ts +8 -0
  484. package/dist/cli/commands/generate-capabilities.d.ts.map +1 -0
  485. package/dist/cli/commands/generate-capabilities.js +41 -0
  486. package/dist/cli/commands/generate-capabilities.js.map +1 -0
  487. package/dist/cli/commands/generate-cli-command.d.ts +8 -0
  488. package/dist/cli/commands/generate-cli-command.d.ts.map +1 -0
  489. package/dist/cli/commands/generate-cli-command.js +64 -0
  490. package/dist/cli/commands/generate-cli-command.js.map +1 -0
  491. package/dist/cli/commands/generate-dashboard.d.ts +9 -0
  492. package/dist/cli/commands/generate-dashboard.d.ts.map +1 -0
  493. package/dist/cli/commands/generate-dashboard.js +113 -0
  494. package/dist/cli/commands/generate-dashboard.js.map +1 -0
  495. package/dist/cli/commands/generate-notification.d.ts +9 -0
  496. package/dist/cli/commands/generate-notification.d.ts.map +1 -0
  497. package/dist/cli/commands/generate-notification.js +24 -0
  498. package/dist/cli/commands/generate-notification.js.map +1 -0
  499. package/dist/cli/commands/generate-page.d.ts +9 -0
  500. package/dist/cli/commands/generate-page.d.ts.map +1 -0
  501. package/dist/cli/commands/generate-page.js +105 -0
  502. package/dist/cli/commands/generate-page.js.map +1 -0
  503. package/dist/cli/commands/generate-skill.d.ts +8 -0
  504. package/dist/cli/commands/generate-skill.d.ts.map +1 -0
  505. package/dist/cli/commands/generate-skill.js +75 -0
  506. package/dist/cli/commands/generate-skill.js.map +1 -0
  507. package/dist/cli/commands/generate-system-settings.d.ts +10 -0
  508. package/dist/cli/commands/generate-system-settings.d.ts.map +1 -0
  509. package/dist/cli/commands/generate-system-settings.js +56 -0
  510. package/dist/cli/commands/generate-system-settings.js.map +1 -0
  511. package/dist/cli/commands/generate.d.ts +6 -0
  512. package/dist/cli/commands/generate.d.ts.map +1 -0
  513. package/dist/cli/commands/generate.js +21 -0
  514. package/dist/cli/commands/generate.js.map +1 -0
  515. package/dist/cli/commands/init.d.ts +8 -0
  516. package/dist/cli/commands/init.d.ts.map +1 -0
  517. package/dist/cli/commands/init.js +384 -0
  518. package/dist/cli/commands/init.js.map +1 -0
  519. package/dist/cli/commands/lifecycle.d.ts +8 -0
  520. package/dist/cli/commands/lifecycle.d.ts.map +1 -0
  521. package/dist/cli/commands/lifecycle.js +166 -0
  522. package/dist/cli/commands/lifecycle.js.map +1 -0
  523. package/dist/cli/commands/model.d.ts +9 -0
  524. package/dist/cli/commands/model.d.ts.map +1 -0
  525. package/dist/cli/commands/model.js +218 -0
  526. package/dist/cli/commands/model.js.map +1 -0
  527. package/dist/cli/commands/notification.d.ts +8 -0
  528. package/dist/cli/commands/notification.d.ts.map +1 -0
  529. package/dist/cli/commands/notification.js +179 -0
  530. package/dist/cli/commands/notification.js.map +1 -0
  531. package/dist/cli/commands/observe.d.ts +9 -0
  532. package/dist/cli/commands/observe.d.ts.map +1 -0
  533. package/dist/cli/commands/observe.js +142 -0
  534. package/dist/cli/commands/observe.js.map +1 -0
  535. package/dist/cli/commands/process.d.ts +8 -0
  536. package/dist/cli/commands/process.d.ts.map +1 -0
  537. package/dist/cli/commands/process.js +561 -0
  538. package/dist/cli/commands/process.js.map +1 -0
  539. package/dist/cli/commands/role.d.ts +12 -0
  540. package/dist/cli/commands/role.d.ts.map +1 -0
  541. package/dist/cli/commands/role.js +208 -0
  542. package/dist/cli/commands/role.js.map +1 -0
  543. package/dist/cli/commands/serve.d.ts +12 -0
  544. package/dist/cli/commands/serve.d.ts.map +1 -0
  545. package/dist/cli/commands/serve.js +43 -0
  546. package/dist/cli/commands/serve.js.map +1 -0
  547. package/dist/cli/commands/skill.d.ts +9 -0
  548. package/dist/cli/commands/skill.d.ts.map +1 -0
  549. package/dist/cli/commands/skill.js +186 -0
  550. package/dist/cli/commands/skill.js.map +1 -0
  551. package/dist/cli/commands/user-cmd.d.ts +9 -0
  552. package/dist/cli/commands/user-cmd.d.ts.map +1 -0
  553. package/dist/cli/commands/user-cmd.js +195 -0
  554. package/dist/cli/commands/user-cmd.js.map +1 -0
  555. package/dist/cli/framework.d.ts +28 -0
  556. package/dist/cli/framework.d.ts.map +1 -0
  557. package/dist/cli/framework.js +29 -0
  558. package/dist/cli/framework.js.map +1 -0
  559. package/dist/cli/generators/capability-generator.d.ts +35 -0
  560. package/dist/cli/generators/capability-generator.d.ts.map +1 -0
  561. package/dist/cli/generators/capability-generator.js +369 -0
  562. package/dist/cli/generators/capability-generator.js.map +1 -0
  563. package/dist/cli/helpers/app-tsx-utils.d.ts +12 -0
  564. package/dist/cli/helpers/app-tsx-utils.d.ts.map +1 -0
  565. package/dist/cli/helpers/app-tsx-utils.js +22 -0
  566. package/dist/cli/helpers/app-tsx-utils.js.map +1 -0
  567. package/dist/cli/helpers/app-tsx-wiring-engine.d.ts +70 -0
  568. package/dist/cli/helpers/app-tsx-wiring-engine.d.ts.map +1 -0
  569. package/dist/cli/helpers/app-tsx-wiring-engine.js +535 -0
  570. package/dist/cli/helpers/app-tsx-wiring-engine.js.map +1 -0
  571. package/dist/cli/helpers/app-tsx-wiring.d.ts +19 -0
  572. package/dist/cli/helpers/app-tsx-wiring.d.ts.map +1 -0
  573. package/dist/cli/helpers/app-tsx-wiring.js +145 -0
  574. package/dist/cli/helpers/app-tsx-wiring.js.map +1 -0
  575. package/dist/cli/helpers/auth-client.d.ts +19 -0
  576. package/dist/cli/helpers/auth-client.d.ts.map +1 -0
  577. package/dist/cli/helpers/auth-client.js +42 -0
  578. package/dist/cli/helpers/auth-client.js.map +1 -0
  579. package/dist/cli/helpers/backup.d.ts +16 -0
  580. package/dist/cli/helpers/backup.d.ts.map +1 -0
  581. package/dist/cli/helpers/backup.js +34 -0
  582. package/dist/cli/helpers/backup.js.map +1 -0
  583. package/dist/cli/helpers/column-template.d.ts +20 -0
  584. package/dist/cli/helpers/column-template.d.ts.map +1 -0
  585. package/dist/cli/helpers/column-template.js +165 -0
  586. package/dist/cli/helpers/column-template.js.map +1 -0
  587. package/dist/cli/helpers/duration.d.ts +5 -0
  588. package/dist/cli/helpers/duration.d.ts.map +1 -0
  589. package/dist/cli/helpers/duration.js +5 -0
  590. package/dist/cli/helpers/duration.js.map +1 -0
  591. package/dist/cli/helpers/field-template.d.ts +14 -0
  592. package/dist/cli/helpers/field-template.d.ts.map +1 -0
  593. package/dist/cli/helpers/field-template.js +117 -0
  594. package/dist/cli/helpers/field-template.js.map +1 -0
  595. package/dist/cli/helpers/i18n-template.d.ts +21 -0
  596. package/dist/cli/helpers/i18n-template.d.ts.map +1 -0
  597. package/dist/cli/helpers/i18n-template.js +69 -0
  598. package/dist/cli/helpers/i18n-template.js.map +1 -0
  599. package/dist/cli/helpers/naming.d.ts +11 -0
  600. package/dist/cli/helpers/naming.d.ts.map +1 -0
  601. package/dist/cli/helpers/naming.js +21 -0
  602. package/dist/cli/helpers/naming.js.map +1 -0
  603. package/dist/cli/helpers/system-page-config.d.ts +27 -0
  604. package/dist/cli/helpers/system-page-config.d.ts.map +1 -0
  605. package/dist/cli/helpers/system-page-config.js +73 -0
  606. package/dist/cli/helpers/system-page-config.js.map +1 -0
  607. package/dist/cli/index.d.ts +9 -0
  608. package/dist/cli/index.d.ts.map +1 -0
  609. package/dist/cli/index.js +49 -0
  610. package/dist/cli/index.js.map +1 -0
  611. package/dist/cli/lib/credentials.d.ts +27 -0
  612. package/dist/cli/lib/credentials.d.ts.map +1 -0
  613. package/dist/cli/lib/credentials.js +112 -0
  614. package/dist/cli/lib/credentials.js.map +1 -0
  615. package/dist/cli/templates/auth-wiring.d.ts +17 -0
  616. package/dist/cli/templates/auth-wiring.d.ts.map +1 -0
  617. package/dist/cli/templates/auth-wiring.js +31 -0
  618. package/dist/cli/templates/auth-wiring.js.map +1 -0
  619. package/dist/cli/templates/backend-entry.d.ts +5 -0
  620. package/dist/cli/templates/backend-entry.d.ts.map +1 -0
  621. package/dist/cli/templates/backend-entry.js +17 -0
  622. package/dist/cli/templates/backend-entry.js.map +1 -0
  623. package/dist/cli/templates/claude-md.d.ts +20 -0
  624. package/dist/cli/templates/claude-md.d.ts.map +1 -0
  625. package/dist/cli/templates/claude-md.js +123 -0
  626. package/dist/cli/templates/claude-md.js.map +1 -0
  627. package/dist/cli/templates/crud-page.d.ts +14 -0
  628. package/dist/cli/templates/crud-page.d.ts.map +1 -0
  629. package/dist/cli/templates/crud-page.js +436 -0
  630. package/dist/cli/templates/crud-page.js.map +1 -0
  631. package/dist/cli/templates/dashboard-page.d.ts +11 -0
  632. package/dist/cli/templates/dashboard-page.d.ts.map +1 -0
  633. package/dist/cli/templates/dashboard-page.js +606 -0
  634. package/dist/cli/templates/dashboard-page.js.map +1 -0
  635. package/dist/cli/templates/frontend-entry.d.ts +11 -0
  636. package/dist/cli/templates/frontend-entry.d.ts.map +1 -0
  637. package/dist/cli/templates/frontend-entry.js +94 -0
  638. package/dist/cli/templates/frontend-entry.js.map +1 -0
  639. package/dist/cli/templates/gitignore.d.ts +5 -0
  640. package/dist/cli/templates/gitignore.d.ts.map +1 -0
  641. package/dist/cli/templates/gitignore.js +13 -0
  642. package/dist/cli/templates/gitignore.js.map +1 -0
  643. package/dist/cli/templates/index.d.ts +21 -0
  644. package/dist/cli/templates/index.d.ts.map +1 -0
  645. package/dist/cli/templates/index.js +21 -0
  646. package/dist/cli/templates/index.js.map +1 -0
  647. package/dist/cli/templates/login-page.d.ts +8 -0
  648. package/dist/cli/templates/login-page.d.ts.map +1 -0
  649. package/dist/cli/templates/login-page.js +67 -0
  650. package/dist/cli/templates/login-page.js.map +1 -0
  651. package/dist/cli/templates/loom-config.d.ts +15 -0
  652. package/dist/cli/templates/loom-config.d.ts.map +1 -0
  653. package/dist/cli/templates/loom-config.js +91 -0
  654. package/dist/cli/templates/loom-config.js.map +1 -0
  655. package/dist/cli/templates/model-management-page.d.ts +8 -0
  656. package/dist/cli/templates/model-management-page.d.ts.map +1 -0
  657. package/dist/cli/templates/model-management-page.js +373 -0
  658. package/dist/cli/templates/model-management-page.js.map +1 -0
  659. package/dist/cli/templates/notification-center-page.d.ts +8 -0
  660. package/dist/cli/templates/notification-center-page.d.ts.map +1 -0
  661. package/dist/cli/templates/notification-center-page.js +240 -0
  662. package/dist/cli/templates/notification-center-page.js.map +1 -0
  663. package/dist/cli/templates/notification-detail-page.d.ts +8 -0
  664. package/dist/cli/templates/notification-detail-page.d.ts.map +1 -0
  665. package/dist/cli/templates/notification-detail-page.js +87 -0
  666. package/dist/cli/templates/notification-detail-page.js.map +1 -0
  667. package/dist/cli/templates/package-json.d.ts +9 -0
  668. package/dist/cli/templates/package-json.d.ts.map +1 -0
  669. package/dist/cli/templates/package-json.js +41 -0
  670. package/dist/cli/templates/package-json.js.map +1 -0
  671. package/dist/cli/templates/process-management-page.d.ts +8 -0
  672. package/dist/cli/templates/process-management-page.d.ts.map +1 -0
  673. package/dist/cli/templates/process-management-page.js +520 -0
  674. package/dist/cli/templates/process-management-page.js.map +1 -0
  675. package/dist/cli/templates/readme.d.ts +9 -0
  676. package/dist/cli/templates/readme.d.ts.map +1 -0
  677. package/dist/cli/templates/readme.js +47 -0
  678. package/dist/cli/templates/readme.js.map +1 -0
  679. package/dist/cli/templates/skill-management-page.d.ts +8 -0
  680. package/dist/cli/templates/skill-management-page.d.ts.map +1 -0
  681. package/dist/cli/templates/skill-management-page.js +476 -0
  682. package/dist/cli/templates/skill-management-page.js.map +1 -0
  683. package/dist/cli/templates/system-settings-page.d.ts +10 -0
  684. package/dist/cli/templates/system-settings-page.d.ts.map +1 -0
  685. package/dist/cli/templates/system-settings-page.js +768 -0
  686. package/dist/cli/templates/system-settings-page.js.map +1 -0
  687. package/dist/cli/templates/tsconfig.d.ts +6 -0
  688. package/dist/cli/templates/tsconfig.d.ts.map +1 -0
  689. package/dist/cli/templates/tsconfig.js +41 -0
  690. package/dist/cli/templates/tsconfig.js.map +1 -0
  691. package/dist/cli/templates/user-management-page.d.ts +8 -0
  692. package/dist/cli/templates/user-management-page.d.ts.map +1 -0
  693. package/dist/cli/templates/user-management-page.js +497 -0
  694. package/dist/cli/templates/user-management-page.js.map +1 -0
  695. package/dist/cli/templates/vite-config.d.ts +9 -0
  696. package/dist/cli/templates/vite-config.d.ts.map +1 -0
  697. package/dist/cli/templates/vite-config.js +26 -0
  698. package/dist/cli/templates/vite-config.js.map +1 -0
  699. package/dist/cli/utils.d.ts +10 -0
  700. package/dist/cli/utils.d.ts.map +1 -0
  701. package/dist/cli/utils.js +31 -0
  702. package/dist/cli/utils.js.map +1 -0
  703. package/dist/commands.d.ts +1 -5
  704. package/dist/commands.d.ts.map +1 -1
  705. package/dist/commands.js +0 -11
  706. package/dist/commands.js.map +1 -1
  707. package/dist/config.d.ts +1320 -96
  708. package/dist/config.d.ts.map +1 -1
  709. package/dist/config.js +161 -16
  710. package/dist/config.js.map +1 -1
  711. package/dist/dashboard-config.d.ts +149 -0
  712. package/dist/dashboard-config.d.ts.map +1 -0
  713. package/dist/dashboard-config.js +40 -0
  714. package/dist/dashboard-config.js.map +1 -0
  715. package/dist/index.d.ts +23 -9
  716. package/dist/index.d.ts.map +1 -1
  717. package/dist/index.js +20 -5
  718. package/dist/index.js.map +1 -1
  719. package/dist/server-bin.d.ts +12 -0
  720. package/dist/server-bin.d.ts.map +1 -0
  721. package/dist/server-bin.js +43 -0
  722. package/dist/server-bin.js.map +1 -0
  723. package/dist/system-prompt.d.ts +20 -0
  724. package/dist/system-prompt.d.ts.map +1 -0
  725. package/dist/system-prompt.js +140 -0
  726. package/dist/system-prompt.js.map +1 -0
  727. package/dist/types/adapter.d.ts +30 -0
  728. package/dist/types/adapter.d.ts.map +1 -0
  729. package/dist/types/adapter.js +5 -0
  730. package/dist/types/adapter.js.map +1 -0
  731. package/dist/types/ai.d.ts +78 -0
  732. package/dist/types/ai.d.ts.map +1 -0
  733. package/dist/types/ai.js +5 -0
  734. package/dist/types/ai.js.map +1 -0
  735. package/dist/types/auth.d.ts +62 -0
  736. package/dist/types/auth.d.ts.map +1 -0
  737. package/dist/types/auth.js +5 -0
  738. package/dist/types/auth.js.map +1 -0
  739. package/dist/types/chat.d.ts +47 -0
  740. package/dist/types/chat.d.ts.map +1 -0
  741. package/dist/types/chat.js +8 -0
  742. package/dist/types/chat.js.map +1 -0
  743. package/dist/types/command.d.ts +25 -0
  744. package/dist/types/command.d.ts.map +1 -0
  745. package/dist/types/command.js +5 -0
  746. package/dist/types/command.js.map +1 -0
  747. package/dist/types/config.d.ts +69 -0
  748. package/dist/types/config.d.ts.map +1 -0
  749. package/dist/types/config.js +5 -0
  750. package/dist/types/config.js.map +1 -0
  751. package/dist/types/dashboard.d.ts +59 -0
  752. package/dist/types/dashboard.d.ts.map +1 -0
  753. package/dist/types/dashboard.js +5 -0
  754. package/dist/types/dashboard.js.map +1 -0
  755. package/dist/types/event.d.ts +103 -0
  756. package/dist/types/event.d.ts.map +1 -0
  757. package/dist/types/event.js +38 -0
  758. package/dist/types/event.js.map +1 -0
  759. package/dist/types/index.d.ts +22 -0
  760. package/dist/types/index.d.ts.map +1 -0
  761. package/dist/types/index.js +9 -0
  762. package/dist/types/index.js.map +1 -0
  763. package/dist/types/lifecycle.d.ts +71 -0
  764. package/dist/types/lifecycle.d.ts.map +1 -0
  765. package/dist/types/lifecycle.js +10 -0
  766. package/dist/types/lifecycle.js.map +1 -0
  767. package/dist/types/locale.d.ts +21 -0
  768. package/dist/types/locale.d.ts.map +1 -0
  769. package/dist/types/locale.js +36 -0
  770. package/dist/types/locale.js.map +1 -0
  771. package/dist/types/model.d.ts +71 -0
  772. package/dist/types/model.d.ts.map +1 -0
  773. package/dist/types/model.js +5 -0
  774. package/dist/types/model.js.map +1 -0
  775. package/dist/types/notification.d.ts +33 -0
  776. package/dist/types/notification.d.ts.map +1 -0
  777. package/dist/types/notification.js +5 -0
  778. package/dist/types/notification.js.map +1 -0
  779. package/dist/types/process.d.ts +191 -0
  780. package/dist/types/process.d.ts.map +1 -0
  781. package/dist/types/process.js +5 -0
  782. package/dist/types/process.js.map +1 -0
  783. package/dist/types.d.ts +4 -199
  784. package/dist/types.d.ts.map +1 -1
  785. package/dist/types.js +4 -3
  786. package/dist/types.js.map +1 -1
  787. package/dist/utils/duration.d.ts +8 -0
  788. package/dist/utils/duration.d.ts.map +1 -0
  789. package/dist/utils/duration.js +22 -0
  790. package/dist/utils/duration.js.map +1 -0
  791. package/dist/utils/id.d.ts +7 -0
  792. package/dist/utils/id.d.ts.map +1 -0
  793. package/dist/utils/id.js +9 -0
  794. package/dist/utils/id.js.map +1 -0
  795. package/package.json +30 -5
@@ -0,0 +1,336 @@
1
+ # Process CLI Reference
2
+
3
+ ## Overview
4
+
5
+ Process is Loom's automation engine for scheduling and event-driven AI tasks. Each process has triggers (cron, event, or manual) and executes AI prompts via the Claude Code engine.
6
+
7
+ ## Commands
8
+
9
+ ### `loom process add`
10
+
11
+ Create a new process definition.
12
+
13
+ ```bash
14
+ # Lightweight process (inline prompt)
15
+ loom process add --name "daily-summary" \
16
+ --cron "0 9 * * 1-5" \
17
+ --prompt "Summarize yesterday's data and email the team" \
18
+ --owner admin
19
+
20
+ # Full process (with PROCESS.md)
21
+ loom process add --name "weekly-report" \
22
+ --cron "0 9 * * 1" \
23
+ --process "weekly-report" \
24
+ --owner admin \
25
+ --description "Weekly analytics report"
26
+
27
+ # Event-triggered process
28
+ loom process add --name "on-task-create" \
29
+ --on-event "data:create:tasks" \
30
+ --prompt "Analyze the new task and suggest priorities" \
31
+ --owner admin \
32
+ --event-debounce 2000
33
+
34
+ # With metrics config
35
+ loom process add --name "health-check" \
36
+ --cron "*/30 * * * *" \
37
+ --prompt "Check system health" \
38
+ --metrics-config ./metrics-config.json \
39
+ --owner bot
40
+
41
+ # With a specific model
42
+ loom process add --name "complex-analysis" \
43
+ --cron "0 2 * * *" \
44
+ --prompt "Analyze daily data and generate insights" \
45
+ --owner admin \
46
+ --model "claude-opus-4-7"
47
+ ```
48
+
49
+ **Options:**
50
+ | Flag | Required | Description |
51
+ |------|----------|-------------|
52
+ | `--name` | Yes | Process name (^[a-zA-Z][a-zA-Z0-9_-]*$) |
53
+ | `--prompt` | One of | Inline prompt for lightweight process |
54
+ | `--process` | One of | Full process name (expects .loom/processes/{name}/PROCESS.md) |
55
+ | `--cron` | No | Cron schedule expression |
56
+ | `--cron-timezone` | No | Timezone for cron (e.g., "America/New_York") |
57
+ | `--on-event` | No | EventBus pattern (e.g., "data:create:tasks") |
58
+ | `--event-filter` | No | JSON filter on event payload fields |
59
+ | `--event-debounce` | No | Debounce window in ms (default: 1000) |
60
+ | `--description` | No | Process description |
61
+ | `--owner` | No | Owner username (default: from processes config) |
62
+ | `--owner-token` | No | Direct JWT token (bypasses runtime resolution) |
63
+ | `--metrics-config` | No | Path to metrics DashboardWidget config JSON |
64
+ | `--source` | No | Feeder script command (auto-registers lifecycle script + event subscription) |
65
+ | `--model` | No | AI model name for this process (must exist in model management; use `loom model list` to see available models) |
66
+ | `--token` | No | Auth token (or set LOOM_TOKEN) |
67
+ | `--server` | No | Server URL (or set LOOM_SERVER, default: http://localhost:3000) |
68
+
69
+ ### `loom process list`
70
+
71
+ List all processes.
72
+
73
+ ```bash
74
+ loom process list
75
+ loom process list --status active
76
+ loom process list --status paused
77
+ ```
78
+
79
+ ### `loom process status <name>`
80
+
81
+ Show detailed process status.
82
+
83
+ ```bash
84
+ loom process status daily-summary
85
+ ```
86
+
87
+ ### `loom process run <name>`
88
+
89
+ Manually trigger a process execution.
90
+
91
+ ```bash
92
+ loom process run daily-summary
93
+ loom process run on-task-create --payload '{"model":"tasks","id":"task_123"}'
94
+ ```
95
+
96
+ ### `loom process pause <name>`
97
+
98
+ Pause a process (stops triggers, manual run still works).
99
+
100
+ ```bash
101
+ loom process pause daily-summary
102
+ ```
103
+
104
+ ### `loom process resume <name>`
105
+
106
+ Resume a paused process.
107
+
108
+ ```bash
109
+ loom process resume daily-summary
110
+ ```
111
+
112
+ ### `loom process update <name>`
113
+
114
+ Update an existing process definition.
115
+
116
+ ```bash
117
+ loom process update daily-summary --cron "0 10 * * 1-5"
118
+ loom process update on-task-create --prompt "Updated prompt text"
119
+ loom process update daily-summary --description "Updated description" --cron "0 8 * * 1-5"
120
+ ```
121
+
122
+ **Options:**
123
+ | Flag | Required | Description |
124
+ |------|----------|-------------|
125
+ | `--cron` | No | Update cron schedule expression |
126
+ | `--cron-timezone` | No | Update cron timezone |
127
+ | `--on-event` | No | Update event trigger pattern |
128
+ | `--event-filter` | No | Update event payload filter as JSON |
129
+ | `--event-debounce` | No | Update debounce window in ms |
130
+ | `--prompt` | No | Update inline prompt |
131
+ | `--description` | No | Update description |
132
+ | `--model` | No | Update AI model name (pass empty string to remove model binding) |
133
+ | `--token` | No | Auth token (or set LOOM_TOKEN) |
134
+ | `--server` | No | Server URL (or set LOOM_SERVER, default: http://localhost:3000) |
135
+
136
+ ### `loom process remove <name>`
137
+
138
+ Remove a process definition. Logs are preserved.
139
+
140
+ ```bash
141
+ loom process remove daily-summary
142
+ ```
143
+
144
+ ### `loom process logs <name> [runId]`
145
+
146
+ View execution logs. When `runId` is provided, shows details for a single run.
147
+
148
+ ```bash
149
+ # List recent logs
150
+ loom process logs daily-summary
151
+ loom process logs daily-summary --limit 50
152
+ loom process logs daily-summary --offset 10
153
+
154
+ # View a specific run
155
+ loom process logs daily-summary run_abc123
156
+ ```
157
+
158
+ ### `loom process generate <name>`
159
+
160
+ Create PROCESS.md scaffold directory (for full process mode). Called by AI, not directly by users.
161
+
162
+ ```bash
163
+ loom process generate daily-report --description "Daily report generator"
164
+ ```
165
+
166
+ ### `loom process metrics-report <name>`
167
+
168
+ Report a business metric snapshot. Used by AI agent during process execution.
169
+
170
+ ```bash
171
+ # Basic report
172
+ loom process metrics-report my-process --metric-name "成功率" --value 0.95 --unit "%"
173
+
174
+ # With target and dimensions
175
+ loom process metrics-report my-process \
176
+ --metric-name "错题重复率" \
177
+ --value 3 \
178
+ --unit "条" \
179
+ --target 0 \
180
+ --dimensions '{"subject":"数学"}' \
181
+ --run-id $LOOM_RUN_ID
182
+ ```
183
+
184
+ **Options:**
185
+ | Flag | Required | Description |
186
+ |------|----------|-------------|
187
+ | `--metric-name` | Yes | Human-readable metric name |
188
+ | `--value` | Yes | Numeric metric value |
189
+ | `--run-id` | No | Run ID (defaults to LOOM_RUN_ID env var) |
190
+ | `--timestamp` | No | ISO timestamp (defaults to now) |
191
+ | `--dimensions` | No | Dimension labels as JSON |
192
+ | `--target` | No | Target value for goal-line |
193
+ | `--unit` | No | Unit label (e.g., "%", "条") |
194
+ | `--token` | No | Auth token (or set LOOM_TOKEN) |
195
+ | `--server` | No | Server URL (or set LOOM_SERVER) |
196
+
197
+ ### `loom process metrics-set-view-config <name>`
198
+
199
+ Set or update the business metrics view configuration. This defines how process metrics are visualized in the Process Management page — each metric gets its own card and optional chart.
200
+
201
+ **When to use:** After creating a full process with `## Metrics` section, design the view config and write it using this command. See the Process Builder reference for the `ProcessMetricsViewConfig` schema and chart design guidelines.
202
+
203
+ ```bash
204
+ # From JSON string
205
+ loom process metrics-set-view-config my-process --config '{"version":1,"metrics":[{"metricName":"成功率","title":"成功率","chartType":"gauge","direction":"target","target":1,"unit":"%"}],"charts":[]}'
206
+
207
+ # From file (recommended for complex configs)
208
+ loom process metrics-set-view-config my-process --config @./view-config.json
209
+ ```
210
+
211
+ **ProcessMetricsViewConfig structure:**
212
+ - `version`: Always `1`
213
+ - `metrics[]`: Metric card definitions. Each card shows latest value, trend arrow, and target.
214
+ - `metricName`: Exact name used in `metrics-report` calls
215
+ - `title`: Display title
216
+ - `chartType`: `"gauge"` | `"number"` | `"line"` | `"bar"` | `"area"` — gauge/number only render as cards; line/bar/area also render as independent charts
217
+ - `direction`: `"increasing"` | `"decreasing"` | `"target"` — controls trend arrow color
218
+ - `target`: Goal value (shown on card)
219
+ - `unit`: Unit label (e.g., "%", "条", "次")
220
+ - `charts[]`: G2 v5 chart specs. Each chart MUST include `metricName` for data filtering.
221
+ - `metricName`: Which metric's snapshots this chart displays
222
+ - `title`: Chart title
223
+ - `type`: G2 mark type (`"line"`, `"interval"`, `"area"`, etc.)
224
+ - `encode`: Field mapping (use `timestamp` for X axis, `value` for Y axis)
225
+ - Other G2 spec properties: `scale`, `axis`, `transform`, etc.
226
+
227
+ **Key design rule:** Each chart shows ONE metric only. Never combine different metrics in one chart — they have different units and scales. Use `metricName` to filter data.
228
+
229
+ **Options:**
230
+ | Flag | Required | Description |
231
+ |------|----------|-------------|
232
+ | `--config` | Yes | View config JSON (use `@file` to read from file) |
233
+ | `--token` | No | Auth token (or set LOOM_TOKEN) |
234
+ | `--server` | No | Server URL (or set LOOM_SERVER) |
235
+
236
+ ### `loom process export <name>`
237
+
238
+ Export process definition as JSON.
239
+
240
+ ```bash
241
+ loom process export daily-summary
242
+ ```
243
+
244
+ ## Process Modes
245
+
246
+ ### Lightweight Mode (`--prompt`)
247
+
248
+ - Inline prompt, no PROCESS.md file
249
+ - Best for simple, single-task automations
250
+ - Quick to set up and modify
251
+
252
+ ### Full Mode (`--process`)
253
+
254
+ - Has PROCESS.md at `.loom/processes/{name}/PROCESS.md`
255
+ - Can include reference files in `.loom/processes/{name}/references/`
256
+ - Best for complex, multi-step workflows
257
+ - Supports Metrics and Evolution sections
258
+
259
+ ## Trigger Types
260
+
261
+ ### Cron
262
+ Standard 5-field cron expression: `minute hour day month weekday`
263
+ ```
264
+ */5 * * * * — Every 5 minutes
265
+ 0 9 * * 1-5 — Weekdays at 9 AM
266
+ 0 0 1 * * — First of every month
267
+ ```
268
+
269
+ ### Event
270
+ EventBus pattern matching: `{category}:{action}:{target}`
271
+ ```
272
+ data:create:tasks — When a task is created
273
+ data:update:* — Any data update
274
+ user:created — When a user is created
275
+ process:completed:xxx — When process xxx completes
276
+ ```
277
+
278
+ ### Source (Feeder)
279
+ When a process needs a persistent external data source, use `--source` to declare a Feeder script. The script starts when the Loom instance becomes ready and stops when the instance shuts down.
280
+
281
+ ```bash
282
+ loom process add --name ingest \
283
+ --on-event "dingtalk:mention" \
284
+ --source "bash examples/feeders/dingtalk-mention.sh" \
285
+ --process "ingest" \
286
+ --owner admin
287
+ ```
288
+
289
+ This single command:
290
+ 1. Registers the Process definition with a `source` field
291
+ 2. Auto-starts the Feeder via LifecycleManager
292
+ 3. Auto-registers the event subscription if not already present
293
+
294
+ Removing the process with `loom process remove` automatically cleans up the Feeder if no other process subscribes to the same event pattern.
295
+
296
+ **Feeder script contract:**
297
+ - Trap SIGTERM/SIGINT and exit with code 0 for graceful shutdown
298
+ - Use `$LOOM_SERVER_URL` instead of hardcoded URLs
299
+ - Exit code 0 = normal (no restart); non-zero = crash (auto-restart with backoff)
300
+ - One script instance per name
301
+
302
+ **Lifecycle event patterns:**
303
+ | Pattern | When |
304
+ |---------|------|
305
+ | `lifecycle:started:{name}` | Feeder script started |
306
+ | `lifecycle:failed:{name}` | Feeder script exited abnormally |
307
+ | `lifecycle:circuit_open:{name}` | Feeder reached max restarts |
308
+ | `lifecycle:restart:{name}` | Feeder restarting with backoff |
309
+
310
+ ### Manual
311
+ `loom process run <name>` — immediate execution, works even when paused.
312
+
313
+ ## Service Token Authentication
314
+
315
+ When auth is enabled, processes need a service token to operate:
316
+ - `--owner <username>`: Runtime resolution via UserStore (recommended)
317
+ - `--owner-token <jwt>`: Direct JWT token (less secure, stored in processes/_registry.json)
318
+
319
+ ## Execution Model
320
+
321
+ 1. Trigger fires → entry enqueued
322
+ 2. Queue slot available → process starts
323
+ 3. AI prompt built (PROCESS.md + references + event context + metrics protocol)
324
+ 4. Claude Code engine executes with timeout, env vars injected: LOOM_SERVER, LOOM_PROCESS_NAME, LOOM_RUN_ID
325
+ 5. Agent may call `loom process metrics-report` to report business metrics during execution
326
+ 6. Result logged to `.loom/processes/{name}/logs/{runId}.json`
327
+ 7. Metric snapshots stored in `.loom/processes/{name}/metrics.jsonl`
328
+ 8. Event emitted: `process:started`, `process:completed`, or `process:failed`
329
+
330
+ ## Concurrency
331
+
332
+ Controlled by `processes.maxConcurrent` in loom.config.ts (default: 5). When max is reached, new triggers queue until a slot opens.
333
+
334
+ ## Debounce
335
+
336
+ Event triggers have `eventDebounceMs` (default: 1000ms). Rapid events within the window are collapsed — only one execution fires with the last event's payload.
@@ -0,0 +1,101 @@
1
+ ---
2
+ name: chart-visualization
3
+ description: 将数据可视化为图表。当用户需要生成柱状图、折线图、饼图、散点图、雷达图、桑基图、思维导图、流程图等图表时调用此技能,通过 curl 工具调用 AntV API 生成图表图片
4
+ ---
5
+
6
+ 请根据用户输入的内容,将数据可视化为图表。
7
+
8
+ ## 步骤
9
+ 1. 分析用户数据和需求,选择最合适的图表类型
10
+ 2. 构造符合规范的 JSON 请求体
11
+ 3. 使用 curl 工具调用 API 生成图表图片
12
+ 4. 将返回的图片 URL 以 Markdown 图片格式输出
13
+
14
+ ## 图表选择指南
15
+
16
+ 根据用户的数据特征和需求,选择最合适的图表类型:
17
+
18
+ - **时间序列**:用 `line`(趋势)或 `area`(累计趋势);两个不同量纲用 `dual-axes`
19
+ - **比较类**:用 `bar`(横向分类对比)或 `column`(纵向分类对比);频率分布用 `histogram`
20
+ - **占比类**:用 `pie`(比例构成)或 `treemap`(层级占比)
21
+ - **关系与流程**:用 `scatter`(相关性)、`sankey`(流向)或 `venn`(集合重叠)
22
+ - **层级与树形**:用 `organization-chart` 或 `mind-map`
23
+ - **专用类型**:
24
+ - `radar`:多维度对比
25
+ - `funnel`:流程阶段转化
26
+ - `liquid`:百分比/进度
27
+ - `word-cloud`:文本词频
28
+ - `boxplot` / `violin`:统计分布
29
+ - `network-graph`:复杂节点关系
30
+ - `fishbone-diagram`:因果分析
31
+ - `flow-diagram`:流程图
32
+ - `spreadsheet`:结构化数据表或透视表
33
+
34
+ ## API 接口
35
+
36
+ POST https://antv-studio.alipay.com/api/gpt-vis
37
+
38
+ 请求体为 JSON,必须包含 `type` 和 `source: "chart-visualization-skills"` 字段。
39
+
40
+ 示例:
41
+ ```bash
42
+ curl -X POST https://antv-studio.alipay.com/api/gpt-vis \
43
+ -H "Content-Type: application/json" \
44
+ -d '{"type":"line","source":"chart-visualization-skills","data":[{"time":"2025-01","value":100}],"title":"示例图表"}'
45
+ ```
46
+
47
+ 返回示例:
48
+ ```json
49
+ {"success":true,"resultObj":"https://..."}
50
+ ```
51
+
52
+ 将 `resultObj` 中的 URL 以 Markdown 图片格式输出:`![图表](URL)`
53
+
54
+ ## 支持的图表类型
55
+
56
+ | 分类 | 图表类型 |
57
+ |------|---------|
58
+ | 比较类 | 条形图(bar)、柱状图(column)、瀑布图(waterfall)、双轴图(dual-axes) |
59
+ | 趋势类 | 面积图(area)、折线图(line)、散点图(scatter) |
60
+ | 分布类 | 箱线图(boxplot)、直方图(histogram)、小提琴图(violin)、漏斗图(funnel) |
61
+ | 占比类 | 饼图(pie)、水波图(liquid)、词云(word-cloud) |
62
+ | 层级类 | 组织架构图(organization-chart)、思维导图(mind-map)、矩形树图(treemap)、桑基图(sankey) |
63
+ | 关系类 | 关系图(network-graph)、韦恩图(venn) |
64
+ | 流程类 | 流程图(flow-diagram)、鱼骨图(fishbone-diagram) |
65
+ | 多维类 | 雷达图(radar) |
66
+ | 表格类 | 表格/透视表(spreadsheet) |
67
+
68
+ ## 通用可选参数
69
+
70
+ | 参数 | 类型 | 默认值 | 说明 |
71
+ |------|------|--------|------|
72
+ | theme | string | "default" | 主题:"default" / "academy" / "dark" |
73
+ | width | number | 600 | 图表宽度 |
74
+ | height | number | 400 | 图表高度 |
75
+ | title | string | "" | 图表标题 |
76
+ | style.texture | string | "default" | 纹理:"default" / "rough"(手绘风格) |
77
+
78
+ 带坐标轴的图表还支持:axisXTitle、axisYTitle。
79
+
80
+ ## 各图表 data 格式
81
+
82
+ - **area / line**: `{time: string, value: number, group?: string}[]`,可选 stack: boolean
83
+ - **bar**: `{category: string, value: number, group?: string}[]`,可选 group / stack (默认 stack: true)
84
+ - **column**: `{category: string, value: number, group?: string}[]`,可选 group (默认 true) / stack
85
+ - **scatter**: `{x: number, y: number, group?: string}[]`
86
+ - **pie**: `{category: string, value: number}[]`,可选 innerRadius: number (0-1)
87
+ - **radar**: `{name: string, value: number, group?: string}[]`
88
+ - **funnel**: `{category: string, value: number}[]`
89
+ - **waterfall**: `{category: string, value?: number, isTotal?: boolean, isIntermediateTotal?: boolean}[]`
90
+ - **dual-axes**: categories: string[], series: {type: "column"|"line", data: number[], axisYTitle?: string}[]
91
+ - **histogram**: `number[]`,可选 binNumber: number
92
+ - **boxplot / violin**: `{category: string, value: number, group?: string}[]`
93
+ - **liquid**: percent: number (0-1),可选 shape: "circle"|"rect"|"pin"|"triangle"
94
+ - **word-cloud**: `{text: string, value: number}[]`
95
+ - **sankey**: `{source: string, target: string, value: number}[]`,可选 nodeAlign
96
+ - **treemap**: `{name: string, value: number, children?: ...}[]` (最深 3 层)
97
+ - **venn**: `{sets: string[], value: number, label?: string}[]`
98
+ - **network-graph / flow-diagram**: `{nodes: {name: string}[], edges: {source: string, target: string, name?: string}[]}`
99
+ - **fishbone-diagram / mind-map**: `{name: string, children?: ...}` (最深 3 层)
100
+ - **organization-chart**: `{name: string, description?: string, children?: ...}` (最深 3 层),可选 orient: "horizontal"|"vertical"
101
+ - **spreadsheet**: `Record<string, string | number>[]`,可选 rows / columns / values(透视表字段)