@loom-framework/core 0.1.0-alpha.16 → 0.1.0-alpha.161

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 (757) 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/models.md +45 -0
  189. package/builtin-skills/app-skill/references/notification.md +123 -0
  190. package/builtin-skills/app-skill/references/process-builder.md +383 -0
  191. package/builtin-skills/app-skill/references/process-metrics.md +93 -0
  192. package/builtin-skills/app-skill/references/process.md +294 -0
  193. package/builtin-skills/chart-visualization/SKILL.md +101 -0
  194. package/builtin-skills/loom/SKILL.md +280 -0
  195. package/builtin-skills/loom/references/README.md +285 -0
  196. package/builtin-skills/loom/references/dashboard.md +257 -0
  197. package/builtin-skills/loom/references/data-model.md +191 -0
  198. package/builtin-skills/yuque-reader/SKILL.md +43 -0
  199. package/builtin-skills/yuque-reader/references/config.md +52 -0
  200. package/builtin-skills/yuque-reader/scripts/fetch_doc.py +121 -0
  201. package/dist/adapter-base.d.ts +31 -0
  202. package/dist/adapter-base.d.ts.map +1 -0
  203. package/dist/adapter-base.js +69 -0
  204. package/dist/adapter-base.js.map +1 -0
  205. package/dist/adapter-factory.d.ts +8 -0
  206. package/dist/adapter-factory.d.ts.map +1 -0
  207. package/dist/adapter-factory.js +25 -0
  208. package/dist/adapter-factory.js.map +1 -0
  209. package/dist/adapter-filesystem.d.ts +25 -11
  210. package/dist/adapter-filesystem.d.ts.map +1 -1
  211. package/dist/adapter-filesystem.js +230 -52
  212. package/dist/adapter-filesystem.js.map +1 -1
  213. package/dist/adapter-sqlite.d.ts +9 -23
  214. package/dist/adapter-sqlite.d.ts.map +1 -1
  215. package/dist/adapter-sqlite.js +94 -55
  216. package/dist/adapter-sqlite.js.map +1 -1
  217. package/dist/adapters/base.d.ts +31 -0
  218. package/dist/adapters/base.d.ts.map +1 -0
  219. package/dist/adapters/base.js +69 -0
  220. package/dist/adapters/base.js.map +1 -0
  221. package/dist/adapters/factory.d.ts +8 -0
  222. package/dist/adapters/factory.d.ts.map +1 -0
  223. package/dist/adapters/factory.js +25 -0
  224. package/dist/adapters/factory.js.map +1 -0
  225. package/dist/adapters/filesystem.d.ts +46 -0
  226. package/dist/adapters/filesystem.d.ts.map +1 -0
  227. package/dist/adapters/filesystem.js +321 -0
  228. package/dist/adapters/filesystem.js.map +1 -0
  229. package/dist/adapters/index.d.ts +10 -0
  230. package/dist/adapters/index.d.ts.map +1 -0
  231. package/dist/adapters/index.js +8 -0
  232. package/dist/adapters/index.js.map +1 -0
  233. package/dist/adapters/sqlite.d.ts +37 -0
  234. package/dist/adapters/sqlite.d.ts.map +1 -0
  235. package/dist/adapters/sqlite.js +264 -0
  236. package/dist/adapters/sqlite.js.map +1 -0
  237. package/dist/backend/ai/button-resolver.d.ts +18 -0
  238. package/dist/backend/ai/button-resolver.d.ts.map +1 -0
  239. package/dist/backend/ai/button-resolver.js +58 -0
  240. package/dist/backend/ai/button-resolver.js.map +1 -0
  241. package/dist/backend/ai/content-blocks.d.ts +18 -0
  242. package/dist/backend/ai/content-blocks.d.ts.map +1 -0
  243. package/dist/backend/ai/content-blocks.js +66 -0
  244. package/dist/backend/ai/content-blocks.js.map +1 -0
  245. package/dist/backend/ai/engine.d.ts +65 -0
  246. package/dist/backend/ai/engine.d.ts.map +1 -0
  247. package/dist/backend/ai/engine.js +237 -0
  248. package/dist/backend/ai/engine.js.map +1 -0
  249. package/dist/backend/ai/index.d.ts +11 -0
  250. package/dist/backend/ai/index.d.ts.map +1 -0
  251. package/dist/backend/ai/index.js +8 -0
  252. package/dist/backend/ai/index.js.map +1 -0
  253. package/dist/backend/ai/output-parser.d.ts +36 -0
  254. package/dist/backend/ai/output-parser.d.ts.map +1 -0
  255. package/dist/backend/ai/output-parser.js +264 -0
  256. package/dist/backend/ai/output-parser.js.map +1 -0
  257. package/dist/backend/ai/session-manager.d.ts +106 -0
  258. package/dist/backend/ai/session-manager.d.ts.map +1 -0
  259. package/dist/backend/ai/session-manager.js +304 -0
  260. package/dist/backend/ai/session-manager.js.map +1 -0
  261. package/dist/backend/auth/jwt.d.ts +16 -0
  262. package/dist/backend/auth/jwt.d.ts.map +1 -0
  263. package/dist/backend/auth/jwt.js +57 -0
  264. package/dist/backend/auth/jwt.js.map +1 -0
  265. package/dist/backend/auth/password.d.ts +10 -0
  266. package/dist/backend/auth/password.d.ts.map +1 -0
  267. package/dist/backend/auth/password.js +19 -0
  268. package/dist/backend/auth/password.js.map +1 -0
  269. package/dist/backend/auth/rbac.d.ts +36 -0
  270. package/dist/backend/auth/rbac.d.ts.map +1 -0
  271. package/dist/backend/auth/rbac.js +129 -0
  272. package/dist/backend/auth/rbac.js.map +1 -0
  273. package/dist/backend/auth/request-context.d.ts +15 -0
  274. package/dist/backend/auth/request-context.d.ts.map +1 -0
  275. package/dist/backend/auth/request-context.js +17 -0
  276. package/dist/backend/auth/request-context.js.map +1 -0
  277. package/dist/backend/auth/service-token.d.ts +11 -0
  278. package/dist/backend/auth/service-token.d.ts.map +1 -0
  279. package/dist/backend/auth/service-token.js +13 -0
  280. package/dist/backend/auth/service-token.js.map +1 -0
  281. package/dist/backend/auth/token-store.d.ts +28 -0
  282. package/dist/backend/auth/token-store.d.ts.map +1 -0
  283. package/dist/backend/auth/token-store.js +84 -0
  284. package/dist/backend/auth/token-store.js.map +1 -0
  285. package/dist/backend/auth/user-store.d.ts +42 -0
  286. package/dist/backend/auth/user-store.d.ts.map +1 -0
  287. package/dist/backend/auth/user-store.js +112 -0
  288. package/dist/backend/auth/user-store.js.map +1 -0
  289. package/dist/backend/events/event-bus.d.ts +39 -0
  290. package/dist/backend/events/event-bus.d.ts.map +1 -0
  291. package/dist/backend/events/event-bus.js +182 -0
  292. package/dist/backend/events/event-bus.js.map +1 -0
  293. package/dist/backend/events/event-emitting-adapter.d.ts +31 -0
  294. package/dist/backend/events/event-emitting-adapter.d.ts.map +1 -0
  295. package/dist/backend/events/event-emitting-adapter.js +70 -0
  296. package/dist/backend/events/event-emitting-adapter.js.map +1 -0
  297. package/dist/backend/events/event-registry.d.ts +24 -0
  298. package/dist/backend/events/event-registry.d.ts.map +1 -0
  299. package/dist/backend/events/event-registry.js +22 -0
  300. package/dist/backend/events/event-registry.js.map +1 -0
  301. package/dist/backend/events/index.d.ts +7 -0
  302. package/dist/backend/events/index.d.ts.map +1 -0
  303. package/dist/backend/events/index.js +7 -0
  304. package/dist/backend/events/index.js.map +1 -0
  305. package/dist/backend/index.d.ts +88 -0
  306. package/dist/backend/index.d.ts.map +1 -0
  307. package/dist/backend/index.js +422 -0
  308. package/dist/backend/index.js.map +1 -0
  309. package/dist/backend/loom-paths.d.ts +28 -0
  310. package/dist/backend/loom-paths.d.ts.map +1 -0
  311. package/dist/backend/loom-paths.js +45 -0
  312. package/dist/backend/loom-paths.js.map +1 -0
  313. package/dist/backend/notifications/interpolate.d.ts +6 -0
  314. package/dist/backend/notifications/interpolate.d.ts.map +1 -0
  315. package/dist/backend/notifications/interpolate.js +11 -0
  316. package/dist/backend/notifications/interpolate.js.map +1 -0
  317. package/dist/backend/notifications/notification-storage.d.ts +27 -0
  318. package/dist/backend/notifications/notification-storage.d.ts.map +1 -0
  319. package/dist/backend/notifications/notification-storage.js +160 -0
  320. package/dist/backend/notifications/notification-storage.js.map +1 -0
  321. package/dist/backend/observe/index.d.ts +6 -0
  322. package/dist/backend/observe/index.d.ts.map +1 -0
  323. package/dist/backend/observe/index.js +5 -0
  324. package/dist/backend/observe/index.js.map +1 -0
  325. package/dist/backend/observe/logger.d.ts +26 -0
  326. package/dist/backend/observe/logger.d.ts.map +1 -0
  327. package/dist/backend/observe/logger.js +68 -0
  328. package/dist/backend/observe/logger.js.map +1 -0
  329. package/dist/backend/observe/types.d.ts +26 -0
  330. package/dist/backend/observe/types.d.ts.map +1 -0
  331. package/dist/backend/observe/types.js +7 -0
  332. package/dist/backend/observe/types.js.map +1 -0
  333. package/dist/backend/process/engine.d.ts +105 -0
  334. package/dist/backend/process/engine.d.ts.map +1 -0
  335. package/dist/backend/process/engine.js +589 -0
  336. package/dist/backend/process/engine.js.map +1 -0
  337. package/dist/backend/process/index.d.ts +7 -0
  338. package/dist/backend/process/index.d.ts.map +1 -0
  339. package/dist/backend/process/index.js +6 -0
  340. package/dist/backend/process/index.js.map +1 -0
  341. package/dist/backend/process/logger.d.ts +32 -0
  342. package/dist/backend/process/logger.d.ts.map +1 -0
  343. package/dist/backend/process/logger.js +148 -0
  344. package/dist/backend/process/logger.js.map +1 -0
  345. package/dist/backend/process/metrics-store.d.ts +32 -0
  346. package/dist/backend/process/metrics-store.d.ts.map +1 -0
  347. package/dist/backend/process/metrics-store.js +108 -0
  348. package/dist/backend/process/metrics-store.js.map +1 -0
  349. package/dist/backend/process/migrate.d.ts +12 -0
  350. package/dist/backend/process/migrate.d.ts.map +1 -0
  351. package/dist/backend/process/migrate.js +145 -0
  352. package/dist/backend/process/migrate.js.map +1 -0
  353. package/dist/backend/process/queue.d.ts +33 -0
  354. package/dist/backend/process/queue.d.ts.map +1 -0
  355. package/dist/backend/process/queue.js +94 -0
  356. package/dist/backend/process/queue.js.map +1 -0
  357. package/dist/backend/process/registry.d.ts +29 -0
  358. package/dist/backend/process/registry.d.ts.map +1 -0
  359. package/dist/backend/process/registry.js +105 -0
  360. package/dist/backend/process/registry.js.map +1 -0
  361. package/dist/backend/process/trigger.d.ts +29 -0
  362. package/dist/backend/process/trigger.d.ts.map +1 -0
  363. package/dist/backend/process/trigger.js +108 -0
  364. package/dist/backend/process/trigger.js.map +1 -0
  365. package/dist/backend/routes/ai-config.d.ts +15 -0
  366. package/dist/backend/routes/ai-config.d.ts.map +1 -0
  367. package/dist/backend/routes/ai-config.js +171 -0
  368. package/dist/backend/routes/ai-config.js.map +1 -0
  369. package/dist/backend/routes/auth-routes.d.ts +33 -0
  370. package/dist/backend/routes/auth-routes.d.ts.map +1 -0
  371. package/dist/backend/routes/auth-routes.js +528 -0
  372. package/dist/backend/routes/auth-routes.js.map +1 -0
  373. package/dist/backend/routes/chat-sse.d.ts +17 -0
  374. package/dist/backend/routes/chat-sse.d.ts.map +1 -0
  375. package/dist/backend/routes/chat-sse.js +60 -0
  376. package/dist/backend/routes/chat-sse.js.map +1 -0
  377. package/dist/backend/routes/chat.d.ts +30 -0
  378. package/dist/backend/routes/chat.d.ts.map +1 -0
  379. package/dist/backend/routes/chat.js +258 -0
  380. package/dist/backend/routes/chat.js.map +1 -0
  381. package/dist/backend/routes/data.d.ts +16 -0
  382. package/dist/backend/routes/data.d.ts.map +1 -0
  383. package/dist/backend/routes/data.js +371 -0
  384. package/dist/backend/routes/data.js.map +1 -0
  385. package/dist/backend/routes/event-routes.d.ts +15 -0
  386. package/dist/backend/routes/event-routes.d.ts.map +1 -0
  387. package/dist/backend/routes/event-routes.js +35 -0
  388. package/dist/backend/routes/event-routes.js.map +1 -0
  389. package/dist/backend/routes/health.d.ts +7 -0
  390. package/dist/backend/routes/health.d.ts.map +1 -0
  391. package/dist/backend/routes/health.js +15 -0
  392. package/dist/backend/routes/health.js.map +1 -0
  393. package/dist/backend/routes/index.d.ts +22 -0
  394. package/dist/backend/routes/index.d.ts.map +1 -0
  395. package/dist/backend/routes/index.js +15 -0
  396. package/dist/backend/routes/index.js.map +1 -0
  397. package/dist/backend/routes/notification-routes.d.ts +22 -0
  398. package/dist/backend/routes/notification-routes.d.ts.map +1 -0
  399. package/dist/backend/routes/notification-routes.js +128 -0
  400. package/dist/backend/routes/notification-routes.js.map +1 -0
  401. package/dist/backend/routes/process-routes.d.ts +17 -0
  402. package/dist/backend/routes/process-routes.d.ts.map +1 -0
  403. package/dist/backend/routes/process-routes.js +303 -0
  404. package/dist/backend/routes/process-routes.js.map +1 -0
  405. package/dist/backend/routes/session-routes.d.ts +22 -0
  406. package/dist/backend/routes/session-routes.d.ts.map +1 -0
  407. package/dist/backend/routes/session-routes.js +97 -0
  408. package/dist/backend/routes/session-routes.js.map +1 -0
  409. package/dist/backend/routes/skill-archive.d.ts +13 -0
  410. package/dist/backend/routes/skill-archive.d.ts.map +1 -0
  411. package/dist/backend/routes/skill-archive.js +84 -0
  412. package/dist/backend/routes/skill-archive.js.map +1 -0
  413. package/dist/backend/routes/skill-parser.d.ts +41 -0
  414. package/dist/backend/routes/skill-parser.d.ts.map +1 -0
  415. package/dist/backend/routes/skill-parser.js +184 -0
  416. package/dist/backend/routes/skill-parser.js.map +1 -0
  417. package/dist/backend/routes/skill-service.d.ts +113 -0
  418. package/dist/backend/routes/skill-service.d.ts.map +1 -0
  419. package/dist/backend/routes/skill-service.js +265 -0
  420. package/dist/backend/routes/skill-service.js.map +1 -0
  421. package/dist/backend/routes/skills.d.ts +18 -0
  422. package/dist/backend/routes/skills.d.ts.map +1 -0
  423. package/dist/backend/routes/skills.js +168 -0
  424. package/dist/backend/routes/skills.js.map +1 -0
  425. package/dist/backend/routes/upload.d.ts +25 -0
  426. package/dist/backend/routes/upload.d.ts.map +1 -0
  427. package/dist/backend/routes/upload.js +100 -0
  428. package/dist/backend/routes/upload.js.map +1 -0
  429. package/dist/backend/services/skill-archive.d.ts +13 -0
  430. package/dist/backend/services/skill-archive.d.ts.map +1 -0
  431. package/dist/backend/services/skill-archive.js +84 -0
  432. package/dist/backend/services/skill-archive.js.map +1 -0
  433. package/dist/backend/services/skill-parser.d.ts +41 -0
  434. package/dist/backend/services/skill-parser.d.ts.map +1 -0
  435. package/dist/backend/services/skill-parser.js +184 -0
  436. package/dist/backend/services/skill-parser.js.map +1 -0
  437. package/dist/backend/services/skill-service.d.ts +113 -0
  438. package/dist/backend/services/skill-service.d.ts.map +1 -0
  439. package/dist/backend/services/skill-service.js +265 -0
  440. package/dist/backend/services/skill-service.js.map +1 -0
  441. package/dist/bin.d.ts +8 -0
  442. package/dist/bin.d.ts.map +1 -0
  443. package/dist/bin.js +12 -0
  444. package/dist/bin.js.map +1 -0
  445. package/dist/capability-generator.d.ts +21 -6
  446. package/dist/capability-generator.d.ts.map +1 -1
  447. package/dist/capability-generator.js +88 -261
  448. package/dist/capability-generator.js.map +1 -1
  449. package/dist/cli/commands/auth.d.ts +11 -0
  450. package/dist/cli/commands/auth.d.ts.map +1 -0
  451. package/dist/cli/commands/auth.js +211 -0
  452. package/dist/cli/commands/auth.js.map +1 -0
  453. package/dist/cli/commands/build.d.ts +11 -0
  454. package/dist/cli/commands/build.d.ts.map +1 -0
  455. package/dist/cli/commands/build.js +170 -0
  456. package/dist/cli/commands/build.js.map +1 -0
  457. package/dist/cli/commands/data.d.ts +15 -0
  458. package/dist/cli/commands/data.d.ts.map +1 -0
  459. package/dist/cli/commands/data.js +214 -0
  460. package/dist/cli/commands/data.js.map +1 -0
  461. package/dist/cli/commands/dev.d.ts +8 -0
  462. package/dist/cli/commands/dev.d.ts.map +1 -0
  463. package/dist/cli/commands/dev.js +97 -0
  464. package/dist/cli/commands/dev.js.map +1 -0
  465. package/dist/cli/commands/eject.d.ts +12 -0
  466. package/dist/cli/commands/eject.d.ts.map +1 -0
  467. package/dist/cli/commands/eject.js +451 -0
  468. package/dist/cli/commands/eject.js.map +1 -0
  469. package/dist/cli/commands/generate-capabilities.d.ts +8 -0
  470. package/dist/cli/commands/generate-capabilities.d.ts.map +1 -0
  471. package/dist/cli/commands/generate-capabilities.js +41 -0
  472. package/dist/cli/commands/generate-capabilities.js.map +1 -0
  473. package/dist/cli/commands/generate-cli-command.d.ts +8 -0
  474. package/dist/cli/commands/generate-cli-command.d.ts.map +1 -0
  475. package/dist/cli/commands/generate-cli-command.js +64 -0
  476. package/dist/cli/commands/generate-cli-command.js.map +1 -0
  477. package/dist/cli/commands/generate-dashboard.d.ts +9 -0
  478. package/dist/cli/commands/generate-dashboard.d.ts.map +1 -0
  479. package/dist/cli/commands/generate-dashboard.js +113 -0
  480. package/dist/cli/commands/generate-dashboard.js.map +1 -0
  481. package/dist/cli/commands/generate-notification.d.ts +9 -0
  482. package/dist/cli/commands/generate-notification.d.ts.map +1 -0
  483. package/dist/cli/commands/generate-notification.js +24 -0
  484. package/dist/cli/commands/generate-notification.js.map +1 -0
  485. package/dist/cli/commands/generate-page.d.ts +9 -0
  486. package/dist/cli/commands/generate-page.d.ts.map +1 -0
  487. package/dist/cli/commands/generate-page.js +105 -0
  488. package/dist/cli/commands/generate-page.js.map +1 -0
  489. package/dist/cli/commands/generate-skill.d.ts +8 -0
  490. package/dist/cli/commands/generate-skill.d.ts.map +1 -0
  491. package/dist/cli/commands/generate-skill.js +75 -0
  492. package/dist/cli/commands/generate-skill.js.map +1 -0
  493. package/dist/cli/commands/generate-system-settings.d.ts +10 -0
  494. package/dist/cli/commands/generate-system-settings.d.ts.map +1 -0
  495. package/dist/cli/commands/generate-system-settings.js +231 -0
  496. package/dist/cli/commands/generate-system-settings.js.map +1 -0
  497. package/dist/cli/commands/generate.d.ts +6 -0
  498. package/dist/cli/commands/generate.d.ts.map +1 -0
  499. package/dist/cli/commands/generate.js +21 -0
  500. package/dist/cli/commands/generate.js.map +1 -0
  501. package/dist/cli/commands/init.d.ts +8 -0
  502. package/dist/cli/commands/init.d.ts.map +1 -0
  503. package/dist/cli/commands/init.js +388 -0
  504. package/dist/cli/commands/init.js.map +1 -0
  505. package/dist/cli/commands/notification.d.ts +8 -0
  506. package/dist/cli/commands/notification.d.ts.map +1 -0
  507. package/dist/cli/commands/notification.js +175 -0
  508. package/dist/cli/commands/notification.js.map +1 -0
  509. package/dist/cli/commands/observe.d.ts +9 -0
  510. package/dist/cli/commands/observe.d.ts.map +1 -0
  511. package/dist/cli/commands/observe.js +142 -0
  512. package/dist/cli/commands/observe.js.map +1 -0
  513. package/dist/cli/commands/process.d.ts +8 -0
  514. package/dist/cli/commands/process.d.ts.map +1 -0
  515. package/dist/cli/commands/process.js +538 -0
  516. package/dist/cli/commands/process.js.map +1 -0
  517. package/dist/cli/commands/role.d.ts +12 -0
  518. package/dist/cli/commands/role.d.ts.map +1 -0
  519. package/dist/cli/commands/role.js +208 -0
  520. package/dist/cli/commands/role.js.map +1 -0
  521. package/dist/cli/commands/serve.d.ts +12 -0
  522. package/dist/cli/commands/serve.d.ts.map +1 -0
  523. package/dist/cli/commands/serve.js +43 -0
  524. package/dist/cli/commands/serve.js.map +1 -0
  525. package/dist/cli/commands/skill.d.ts +9 -0
  526. package/dist/cli/commands/skill.d.ts.map +1 -0
  527. package/dist/cli/commands/skill.js +186 -0
  528. package/dist/cli/commands/skill.js.map +1 -0
  529. package/dist/cli/commands/user-cmd.d.ts +9 -0
  530. package/dist/cli/commands/user-cmd.d.ts.map +1 -0
  531. package/dist/cli/commands/user-cmd.js +195 -0
  532. package/dist/cli/commands/user-cmd.js.map +1 -0
  533. package/dist/cli/framework.d.ts +28 -0
  534. package/dist/cli/framework.d.ts.map +1 -0
  535. package/dist/cli/framework.js +29 -0
  536. package/dist/cli/framework.js.map +1 -0
  537. package/dist/cli/generators/capability-generator.d.ts +35 -0
  538. package/dist/cli/generators/capability-generator.d.ts.map +1 -0
  539. package/dist/cli/generators/capability-generator.js +369 -0
  540. package/dist/cli/generators/capability-generator.js.map +1 -0
  541. package/dist/cli/helpers/app-tsx-wiring.d.ts +54 -0
  542. package/dist/cli/helpers/app-tsx-wiring.d.ts.map +1 -0
  543. package/dist/cli/helpers/app-tsx-wiring.js +748 -0
  544. package/dist/cli/helpers/app-tsx-wiring.js.map +1 -0
  545. package/dist/cli/helpers/auth-client.d.ts +19 -0
  546. package/dist/cli/helpers/auth-client.d.ts.map +1 -0
  547. package/dist/cli/helpers/auth-client.js +42 -0
  548. package/dist/cli/helpers/auth-client.js.map +1 -0
  549. package/dist/cli/helpers/backup.d.ts +16 -0
  550. package/dist/cli/helpers/backup.d.ts.map +1 -0
  551. package/dist/cli/helpers/backup.js +34 -0
  552. package/dist/cli/helpers/backup.js.map +1 -0
  553. package/dist/cli/helpers/column-template.d.ts +20 -0
  554. package/dist/cli/helpers/column-template.d.ts.map +1 -0
  555. package/dist/cli/helpers/column-template.js +158 -0
  556. package/dist/cli/helpers/column-template.js.map +1 -0
  557. package/dist/cli/helpers/duration.d.ts +5 -0
  558. package/dist/cli/helpers/duration.d.ts.map +1 -0
  559. package/dist/cli/helpers/duration.js +5 -0
  560. package/dist/cli/helpers/duration.js.map +1 -0
  561. package/dist/cli/helpers/field-template.d.ts +14 -0
  562. package/dist/cli/helpers/field-template.d.ts.map +1 -0
  563. package/dist/cli/helpers/field-template.js +113 -0
  564. package/dist/cli/helpers/field-template.js.map +1 -0
  565. package/dist/cli/helpers/i18n-template.d.ts +21 -0
  566. package/dist/cli/helpers/i18n-template.d.ts.map +1 -0
  567. package/dist/cli/helpers/i18n-template.js +69 -0
  568. package/dist/cli/helpers/i18n-template.js.map +1 -0
  569. package/dist/cli/helpers/naming.d.ts +11 -0
  570. package/dist/cli/helpers/naming.d.ts.map +1 -0
  571. package/dist/cli/helpers/naming.js +21 -0
  572. package/dist/cli/helpers/naming.js.map +1 -0
  573. package/dist/cli/index.d.ts +9 -0
  574. package/dist/cli/index.d.ts.map +1 -0
  575. package/dist/cli/index.js +45 -0
  576. package/dist/cli/index.js.map +1 -0
  577. package/dist/cli/lib/credentials.d.ts +27 -0
  578. package/dist/cli/lib/credentials.d.ts.map +1 -0
  579. package/dist/cli/lib/credentials.js +112 -0
  580. package/dist/cli/lib/credentials.js.map +1 -0
  581. package/dist/cli/templates/auth-wiring.d.ts +17 -0
  582. package/dist/cli/templates/auth-wiring.d.ts.map +1 -0
  583. package/dist/cli/templates/auth-wiring.js +31 -0
  584. package/dist/cli/templates/auth-wiring.js.map +1 -0
  585. package/dist/cli/templates/backend-entry.d.ts +5 -0
  586. package/dist/cli/templates/backend-entry.d.ts.map +1 -0
  587. package/dist/cli/templates/backend-entry.js +17 -0
  588. package/dist/cli/templates/backend-entry.js.map +1 -0
  589. package/dist/cli/templates/claude-md.d.ts +20 -0
  590. package/dist/cli/templates/claude-md.d.ts.map +1 -0
  591. package/dist/cli/templates/claude-md.js +123 -0
  592. package/dist/cli/templates/claude-md.js.map +1 -0
  593. package/dist/cli/templates/crud-page.d.ts +14 -0
  594. package/dist/cli/templates/crud-page.d.ts.map +1 -0
  595. package/dist/cli/templates/crud-page.js +429 -0
  596. package/dist/cli/templates/crud-page.js.map +1 -0
  597. package/dist/cli/templates/dashboard-page.d.ts +11 -0
  598. package/dist/cli/templates/dashboard-page.d.ts.map +1 -0
  599. package/dist/cli/templates/dashboard-page.js +490 -0
  600. package/dist/cli/templates/dashboard-page.js.map +1 -0
  601. package/dist/cli/templates/frontend-entry.d.ts +11 -0
  602. package/dist/cli/templates/frontend-entry.d.ts.map +1 -0
  603. package/dist/cli/templates/frontend-entry.js +94 -0
  604. package/dist/cli/templates/frontend-entry.js.map +1 -0
  605. package/dist/cli/templates/gitignore.d.ts +5 -0
  606. package/dist/cli/templates/gitignore.d.ts.map +1 -0
  607. package/dist/cli/templates/gitignore.js +13 -0
  608. package/dist/cli/templates/gitignore.js.map +1 -0
  609. package/dist/cli/templates/index.d.ts +21 -0
  610. package/dist/cli/templates/index.d.ts.map +1 -0
  611. package/dist/cli/templates/index.js +21 -0
  612. package/dist/cli/templates/index.js.map +1 -0
  613. package/dist/cli/templates/login-page.d.ts +9 -0
  614. package/dist/cli/templates/login-page.d.ts.map +1 -0
  615. package/dist/cli/templates/login-page.js +75 -0
  616. package/dist/cli/templates/login-page.js.map +1 -0
  617. package/dist/cli/templates/loom-config.d.ts +13 -0
  618. package/dist/cli/templates/loom-config.d.ts.map +1 -0
  619. package/dist/cli/templates/loom-config.js +67 -0
  620. package/dist/cli/templates/loom-config.js.map +1 -0
  621. package/dist/cli/templates/model-management-page.d.ts +9 -0
  622. package/dist/cli/templates/model-management-page.d.ts.map +1 -0
  623. package/dist/cli/templates/model-management-page.js +299 -0
  624. package/dist/cli/templates/model-management-page.js.map +1 -0
  625. package/dist/cli/templates/notification-center-page.d.ts +9 -0
  626. package/dist/cli/templates/notification-center-page.d.ts.map +1 -0
  627. package/dist/cli/templates/notification-center-page.js +258 -0
  628. package/dist/cli/templates/notification-center-page.js.map +1 -0
  629. package/dist/cli/templates/notification-detail-page.d.ts +9 -0
  630. package/dist/cli/templates/notification-detail-page.d.ts.map +1 -0
  631. package/dist/cli/templates/notification-detail-page.js +102 -0
  632. package/dist/cli/templates/notification-detail-page.js.map +1 -0
  633. package/dist/cli/templates/package-json.d.ts +9 -0
  634. package/dist/cli/templates/package-json.d.ts.map +1 -0
  635. package/dist/cli/templates/package-json.js +41 -0
  636. package/dist/cli/templates/package-json.js.map +1 -0
  637. package/dist/cli/templates/process-management-page.d.ts +8 -0
  638. package/dist/cli/templates/process-management-page.d.ts.map +1 -0
  639. package/dist/cli/templates/process-management-page.js +902 -0
  640. package/dist/cli/templates/process-management-page.js.map +1 -0
  641. package/dist/cli/templates/readme.d.ts +9 -0
  642. package/dist/cli/templates/readme.d.ts.map +1 -0
  643. package/dist/cli/templates/readme.js +47 -0
  644. package/dist/cli/templates/readme.js.map +1 -0
  645. package/dist/cli/templates/skill-management-page.d.ts +9 -0
  646. package/dist/cli/templates/skill-management-page.d.ts.map +1 -0
  647. package/dist/cli/templates/skill-management-page.js +476 -0
  648. package/dist/cli/templates/skill-management-page.js.map +1 -0
  649. package/dist/cli/templates/system-settings-page.d.ts +10 -0
  650. package/dist/cli/templates/system-settings-page.d.ts.map +1 -0
  651. package/dist/cli/templates/system-settings-page.js +768 -0
  652. package/dist/cli/templates/system-settings-page.js.map +1 -0
  653. package/dist/cli/templates/tsconfig.d.ts +6 -0
  654. package/dist/cli/templates/tsconfig.d.ts.map +1 -0
  655. package/dist/cli/templates/tsconfig.js +41 -0
  656. package/dist/cli/templates/tsconfig.js.map +1 -0
  657. package/dist/cli/templates/user-management-page.d.ts +10 -0
  658. package/dist/cli/templates/user-management-page.d.ts.map +1 -0
  659. package/dist/cli/templates/user-management-page.js +495 -0
  660. package/dist/cli/templates/user-management-page.js.map +1 -0
  661. package/dist/cli/templates/vite-config.d.ts +5 -0
  662. package/dist/cli/templates/vite-config.d.ts.map +1 -0
  663. package/dist/cli/templates/vite-config.js +24 -0
  664. package/dist/cli/templates/vite-config.js.map +1 -0
  665. package/dist/cli/utils.d.ts +10 -0
  666. package/dist/cli/utils.d.ts.map +1 -0
  667. package/dist/cli/utils.js +31 -0
  668. package/dist/cli/utils.js.map +1 -0
  669. package/dist/commands.d.ts +1 -5
  670. package/dist/commands.d.ts.map +1 -1
  671. package/dist/commands.js +0 -11
  672. package/dist/commands.js.map +1 -1
  673. package/dist/config.d.ts +1191 -93
  674. package/dist/config.d.ts.map +1 -1
  675. package/dist/config.js +138 -15
  676. package/dist/config.js.map +1 -1
  677. package/dist/dashboard-config.d.ts +149 -0
  678. package/dist/dashboard-config.d.ts.map +1 -0
  679. package/dist/dashboard-config.js +40 -0
  680. package/dist/dashboard-config.js.map +1 -0
  681. package/dist/index.d.ts +23 -9
  682. package/dist/index.d.ts.map +1 -1
  683. package/dist/index.js +20 -5
  684. package/dist/index.js.map +1 -1
  685. package/dist/server-bin.d.ts +12 -0
  686. package/dist/server-bin.d.ts.map +1 -0
  687. package/dist/server-bin.js +43 -0
  688. package/dist/server-bin.js.map +1 -0
  689. package/dist/system-prompt.d.ts +20 -0
  690. package/dist/system-prompt.d.ts.map +1 -0
  691. package/dist/system-prompt.js +140 -0
  692. package/dist/system-prompt.js.map +1 -0
  693. package/dist/types/adapter.d.ts +30 -0
  694. package/dist/types/adapter.d.ts.map +1 -0
  695. package/dist/types/adapter.js +5 -0
  696. package/dist/types/adapter.js.map +1 -0
  697. package/dist/types/ai.d.ts +74 -0
  698. package/dist/types/ai.d.ts.map +1 -0
  699. package/dist/types/ai.js +5 -0
  700. package/dist/types/ai.js.map +1 -0
  701. package/dist/types/auth.d.ts +62 -0
  702. package/dist/types/auth.d.ts.map +1 -0
  703. package/dist/types/auth.js +5 -0
  704. package/dist/types/auth.js.map +1 -0
  705. package/dist/types/chat.d.ts +47 -0
  706. package/dist/types/chat.d.ts.map +1 -0
  707. package/dist/types/chat.js +8 -0
  708. package/dist/types/chat.js.map +1 -0
  709. package/dist/types/command.d.ts +25 -0
  710. package/dist/types/command.d.ts.map +1 -0
  711. package/dist/types/command.js +5 -0
  712. package/dist/types/command.js.map +1 -0
  713. package/dist/types/config.d.ts +65 -0
  714. package/dist/types/config.d.ts.map +1 -0
  715. package/dist/types/config.js +5 -0
  716. package/dist/types/config.js.map +1 -0
  717. package/dist/types/dashboard.d.ts +59 -0
  718. package/dist/types/dashboard.d.ts.map +1 -0
  719. package/dist/types/dashboard.js +5 -0
  720. package/dist/types/dashboard.js.map +1 -0
  721. package/dist/types/event.d.ts +103 -0
  722. package/dist/types/event.d.ts.map +1 -0
  723. package/dist/types/event.js +38 -0
  724. package/dist/types/event.js.map +1 -0
  725. package/dist/types/index.d.ts +21 -0
  726. package/dist/types/index.d.ts.map +1 -0
  727. package/dist/types/index.js +9 -0
  728. package/dist/types/index.js.map +1 -0
  729. package/dist/types/locale.d.ts +21 -0
  730. package/dist/types/locale.d.ts.map +1 -0
  731. package/dist/types/locale.js +36 -0
  732. package/dist/types/locale.js.map +1 -0
  733. package/dist/types/model.d.ts +69 -0
  734. package/dist/types/model.d.ts.map +1 -0
  735. package/dist/types/model.js +5 -0
  736. package/dist/types/model.js.map +1 -0
  737. package/dist/types/notification.d.ts +31 -0
  738. package/dist/types/notification.d.ts.map +1 -0
  739. package/dist/types/notification.js +5 -0
  740. package/dist/types/notification.js.map +1 -0
  741. package/dist/types/process.d.ts +150 -0
  742. package/dist/types/process.d.ts.map +1 -0
  743. package/dist/types/process.js +5 -0
  744. package/dist/types/process.js.map +1 -0
  745. package/dist/types.d.ts +4 -199
  746. package/dist/types.d.ts.map +1 -1
  747. package/dist/types.js +4 -3
  748. package/dist/types.js.map +1 -1
  749. package/dist/utils/duration.d.ts +8 -0
  750. package/dist/utils/duration.d.ts.map +1 -0
  751. package/dist/utils/duration.js +22 -0
  752. package/dist/utils/duration.js.map +1 -0
  753. package/dist/utils/id.d.ts +7 -0
  754. package/dist/utils/id.d.ts.map +1 -0
  755. package/dist/utils/id.js +9 -0
  756. package/dist/utils/id.js.map +1 -0
  757. package/package.json +24 -3
@@ -0,0 +1,383 @@
1
+ # Process Builder Guide
2
+
3
+ ## Purpose
4
+
5
+ This guide helps AI assistants create Processes for users. When a user says "I want to automate X" or "run Y every day", use this guide to build a process definition.
6
+
7
+ ## Lightweight vs Full Decision
8
+
9
+ ### Use Lightweight (`--prompt`) when:
10
+ - Single, simple task
11
+ - No reference files needed
12
+ - Prompt fits in a few sentences
13
+ - No metrics dashboard needed
14
+
15
+ ### Use Full (`--process`) when:
16
+ - Multi-step workflow with decision points
17
+ - Reference documentation needed (API docs, data schemas, style guides)
18
+ - Metrics dashboard desired
19
+ - Process may evolve over time (Evolution section)
20
+
21
+ ## Step-by-Step Creation
22
+
23
+ ### 1. Analyze the Request
24
+
25
+ Identify:
26
+ - **What** the process should do
27
+ - **When** it should run (schedule or event trigger)
28
+ - **Who** owns it (username for service token)
29
+ - **Complexity** (lightweight vs full)
30
+
31
+ ### 2. Choose Trigger
32
+
33
+ | Need | Use | Example |
34
+ |------|-----|---------|
35
+ | Periodic schedule | `--cron` | `0 9 * * 1-5` (weekdays 9am) |
36
+ | On data change | `--on-event` | `data:create:tasks` |
37
+ | On user action | `--on-event` | `user:created` |
38
+ | Manual only | Neither | Just `loom process run` |
39
+
40
+ ### 3. Create the Process
41
+
42
+ For lightweight:
43
+ ```bash
44
+ loom process add --name "task-summary" \
45
+ --cron "0 9 * * *" \
46
+ --prompt "Read all tasks created yesterday, summarize key themes, and post a digest" \
47
+ --owner admin
48
+ ```
49
+
50
+ For full:
51
+ ```bash
52
+ # Step 1: Generate scaffold
53
+ loom process generate weekly-report --description "Weekly analytics report"
54
+
55
+ # Step 2: Edit PROCESS.md with detailed flow
56
+ # (AI should write the PROCESS.md content)
57
+
58
+ # Step 3: Add reference files if needed
59
+ # If this process requires additional context, create the references directory
60
+ # and add files that the AI agent will need during execution:
61
+ mkdir -p .loom/processes/weekly-report/references
62
+ # Then add reference files such as:
63
+ # - Skill references (CLI command usage, API docs)
64
+ # - Domain knowledge (data schemas, business rules)
65
+ # - Scripts or tools (data transforms, query templates)
66
+ # Only create the directory when reference files are actually needed.
67
+ # Skip this step if no additional context is required.
68
+
69
+ # Step 4: Register the process
70
+ loom process add --name "weekly-report" \
71
+ --cron "0 9 * * 1" \
72
+ --process "weekly-report" \
73
+ --owner admin
74
+
75
+ # Step 5: Initialize metrics view config (if PROCESS.md has ## Metrics section)
76
+ # Design the view config based on ## Metrics section (see "Initializing Metrics Visualization" below)
77
+ # Then write it using metrics-set-view-config:
78
+ loom process metrics-set-view-config weekly-report --config @./view-config.json
79
+ ```
80
+
81
+ ### 4. Verify
82
+
83
+ ```bash
84
+ loom process status <name>
85
+ loom process run <name> # manual test
86
+ loom process logs <name> # check result
87
+ ```
88
+
89
+ ## PROCESS.md Best Practices
90
+
91
+ ### Structure
92
+
93
+ ```markdown
94
+ # Process: <name>
95
+
96
+ ## Description
97
+ What this process does and why.
98
+
99
+ ## Trigger
100
+ When it runs and what triggers it.
101
+
102
+ ## Flow
103
+ Step-by-step instructions:
104
+ 1. Read data from <model>
105
+ 2. Analyze <something>
106
+ 3. Write results to <model>
107
+ 4. Send notification with execution result via `loom notification send`
108
+
109
+ ## Decision Points
110
+ Key decisions the AI should make:
111
+ - If X, do Y
112
+ - If Z, skip to step N
113
+
114
+ ## Metrics
115
+ How success is measured:
116
+ - Execution time < N seconds
117
+ - Error rate < X%
118
+ - Output quality: <criteria>
119
+
120
+ ## Evolution
121
+ How this process should improve:
122
+ - After N runs, review and optimize prompt
123
+ - Track common errors and add handling
124
+
125
+ ## References
126
+ _List files in the `references/` directory that support this process:_
127
+ - _Skill references (e.g., CLI command usage, API docs)_
128
+ - _Domain knowledge (e.g., data schemas, business rules)_
129
+ - _Scripts or tools (e.g., data transforms, query templates)_
130
+ _Only create the `references/` directory and add files when needed._
131
+ ```
132
+
133
+ ### Tips
134
+ - Be specific in Flow steps — AI follows them literally
135
+ - Include data model names and field names
136
+ - Reference CLI commands: `loom data list <model>`, `loom data create <model>`
137
+ - Use `loom data` commands for data operations, not direct file I/O
138
+ - Include error handling in Decision Points
139
+ - Add a notification step at the end of Flow to send execution results to yourself: `loom notification send --userId <owner> --type success --title "Process completed" --description "Summary of results" --token $LOOM_TOKEN`
140
+
141
+ ## Metrics Definition
142
+
143
+ When defining `## Metrics` in PROCESS.md, follow these guidelines so the system can properly track and visualize them:
144
+
145
+ ### Format
146
+
147
+ Each metric should include:
148
+ - **Name**: A clear, concise identifier (e.g., "错题 review 率")
149
+ - **Meaning**: What this metric measures and why it matters
150
+ - **Direction**: Whether the metric should increase, decrease, or approach a target
151
+ - `increasing` = higher is better (e.g., success rate)
152
+ - `decreasing` = lower is better (e.g., error count)
153
+ - `target` = should approach a specific value (e.g., 100% coverage)
154
+ - **Target** (optional): The goal value
155
+ - **Unit** (optional): Measurement unit (e.g., "%", "条", "次")
156
+ - **Chart** (optional): Suggested chart type for visualization
157
+
158
+ ### Example
159
+
160
+ ```markdown
161
+ ## Metrics
162
+
163
+ - **错题 review 率**: 每次触发后,是否成功将错题写入 review_plans。方向:趋近目标值。目标:100%。单位:%。图表:gauge。
164
+ - **错题重复出现率**: 统计相同错误模式的错题数量趋势。方向:越低越好。单位:条。图表:line。
165
+ ```
166
+
167
+ ### Initializing Metrics Visualization
168
+
169
+ After registering a full process with `--process`, you MUST initialize the metrics view configuration so the Process Management page can render charts for each metric. This is a two-step process:
170
+
171
+ #### Step 1: Design the view config based on ## Metrics
172
+
173
+ Analyze each metric in the `## Metrics` section and generate a `ProcessMetricsViewConfig` JSON. The config has two parts:
174
+
175
+ - **`metrics[]`**: Metric card definitions (shown as number + trend + target)
176
+ - **`charts[]`**: G2 v5 chart specs (one independent chart per metric, filtered by `metricName`)
177
+
178
+ **ProcessMetricsViewConfig Schema:**
179
+
180
+ ```typescript
181
+ {
182
+ version: 1,
183
+ metrics: ProcessMetricView[], // Metric card definitions
184
+ charts: Record<string, unknown>[] // G2 v5 chart specs
185
+ }
186
+
187
+ // ProcessMetricView:
188
+ {
189
+ metricName: string; // Must match the exact name used in metrics-report
190
+ title: string; // Display title for the card
191
+ description?: string; // Optional tooltip description
192
+ chartType: string; // 'line' | 'bar' | 'area' | 'gauge' | 'number'
193
+ direction?: 'increasing' | 'decreasing' | 'target';
194
+ target?: number; // Goal value (shown on card)
195
+ unit?: string; // Unit label (e.g., "%", "条", "次")
196
+ }
197
+ ```
198
+
199
+ **Chart type selection guide:**
200
+
201
+ | Metric direction + unit | chartType | Has chart? | Reasoning |
202
+ |------------------------|-----------|-----------|-----------|
203
+ | `target` + `%` unit | `gauge` | No (card only) | Percentage target → card shows current vs target |
204
+ | `target` + non-`%` unit | `number` | No (card only) | Numeric target → card is sufficient |
205
+ | `increasing` / `decreasing` + `%` | `line` | Yes | Track trend over time |
206
+ | `increasing` / `decreasing` + count unit | `bar` | Yes | Compare across runs |
207
+
208
+ **Chart spec design rules:**
209
+
210
+ 1. **Each metric gets its own independent chart** — never mix different metrics in one chart. Different metrics have different units and scales, combining them makes the chart unreadable.
211
+ 2. **Every chart MUST include `metricName`** — the frontend uses this field to filter `metricSnapshots` for that specific metric. Without it, all data would be mixed.
212
+ 3. **Chart data fields** reference `ProcessMetricSnapshot` properties: `timestamp`, `value`, `metricName`, `dimensions`, `target`, `unit`. The frontend injects filtered snapshots as `data`.
213
+ 4. **Title each chart** — add a `title` field matching the metric's human-readable name.
214
+
215
+ **Chart spec templates by type:**
216
+
217
+ ```jsonc
218
+ // line chart — time series trend
219
+ {
220
+ "metricName": "错题重复出现率",
221
+ "title": "错题重复出现率趋势",
222
+ "type": "line",
223
+ "encode": { "x": "timestamp", "y": "value" },
224
+ "scale": { "y": { "nice": true } },
225
+ "axis": { "x": { "title": "时间" }, "y": { "title": "值" } }
226
+ }
227
+
228
+ // bar chart — per-run comparison
229
+ {
230
+ "metricName": "新增错题数",
231
+ "title": "每次执行新增错题数",
232
+ "type": "interval",
233
+ "encode": { "x": "runId", "y": "value" },
234
+ "scale": { "y": { "nice": true } }
235
+ }
236
+
237
+ // area chart — cumulative trend
238
+ {
239
+ "metricName": "review 完成数",
240
+ "title": "Review 完成趋势",
241
+ "type": "area",
242
+ "encode": { "x": "timestamp", "y": "value" },
243
+ "scale": { "y": { "nice": true } }
244
+ }
245
+ ```
246
+
247
+ 5. **gauge and number types do NOT need a chart entry** — they only appear as metric cards (showing latest value, trend arrow, and target).
248
+
249
+ #### Step 2: Write the view config
250
+
251
+ Use `loom process metrics-set-view-config` to write the configuration:
252
+
253
+ ```bash
254
+ # From JSON string
255
+ loom process metrics-set-view-config <name> --config '{
256
+ "version": 1,
257
+ "metrics": [
258
+ {
259
+ "metricName": "错题 review 率",
260
+ "title": "错题 Review 率",
261
+ "description": "每次触发后成功写入 review_plans 的比率",
262
+ "chartType": "gauge",
263
+ "direction": "target",
264
+ "target": 1,
265
+ "unit": "%"
266
+ },
267
+ {
268
+ "metricName": "错题重复出现率",
269
+ "title": "错题重复出现率",
270
+ "description": "相同错误模式的错题数量趋势",
271
+ "chartType": "line",
272
+ "direction": "decreasing",
273
+ "unit": "条"
274
+ }
275
+ ],
276
+ "charts": [
277
+ {
278
+ "metricName": "错题重复出现率",
279
+ "title": "错题重复出现率趋势",
280
+ "type": "line",
281
+ "encode": { "x": "timestamp", "y": "value" },
282
+ "scale": { "y": { "nice": true } },
283
+ "axis": { "x": { "title": "时间" }, "y": { "title": "条" } }
284
+ }
285
+ ]
286
+ }'
287
+
288
+ # Or from a file
289
+ loom process metrics-set-view-config <name> --config @./view-config.json
290
+ ```
291
+
292
+ Note: The server must be running when using this command (it calls the API).
293
+
294
+ ### Complete example — error-pattern-analysis process
295
+
296
+ PROCESS.md `## Metrics` section:
297
+
298
+ ```markdown
299
+ ## Metrics
300
+
301
+ - **错题 review 率**: 每次触发后,是否成功将错题写入 review_plans。方向:趋近目标值。目标:100%。单位:%。图表:gauge。
302
+ - **错题重复出现率**: 统计相同错误模式的错题数量趋势。方向:越低越好。单位:条。图表:line。
303
+ ```
304
+
305
+ Corresponding view config:
306
+
307
+ ```json
308
+ {
309
+ "version": 1,
310
+ "metrics": [
311
+ {
312
+ "metricName": "错题 review 率",
313
+ "title": "错题 Review 率",
314
+ "description": "每次触发后成功写入 review_plans 的比率",
315
+ "chartType": "gauge",
316
+ "direction": "target",
317
+ "target": 1,
318
+ "unit": "%"
319
+ },
320
+ {
321
+ "metricName": "错题重复出现率",
322
+ "title": "错题重复出现率",
323
+ "description": "相同错误模式的错题数量趋势",
324
+ "chartType": "line",
325
+ "direction": "decreasing",
326
+ "unit": "条"
327
+ }
328
+ ],
329
+ "charts": [
330
+ {
331
+ "metricName": "错题重复出现率",
332
+ "title": "错题重复出现率趋势",
333
+ "type": "line",
334
+ "encode": { "x": "timestamp", "y": "value" },
335
+ "scale": { "y": { "nice": true } },
336
+ "axis": { "x": { "title": "时间" }, "y": { "title": "条" } }
337
+ }
338
+ ]
339
+ }
340
+ ```
341
+
342
+ Note: "错题 review 率" has `chartType: "gauge"` which only renders as a metric card (latest value + target + trend). It does NOT need a chart entry in `charts[]`.
343
+
344
+ ### Reporting metrics during execution
345
+
346
+ When a process's PROCESS.md has a `## Metrics` section, the system automatically injects a Metrics Protocol into the AI prompt. The agent MUST call `loom process metrics-report` for each metric after computing its value:
347
+
348
+ ```bash
349
+ loom process metrics-report <process-name> \
350
+ --metric-name "错题 review 率" \
351
+ --value 0.95 \
352
+ --target 1 \
353
+ --unit "%" \
354
+ --run-id $LOOM_RUN_ID
355
+ ```
356
+
357
+ Key points:
358
+ - `--metric-name` MUST exactly match the name used in the view config (including `metrics[]` entries)
359
+ - `--run-id` is automatically available via the `$LOOM_RUN_ID` environment variable
360
+ - `--dimensions` is optional for dimensional breakdown (e.g., `--dimensions '{"subject":"数学"}'`)
361
+ - Report each metric as soon as it's computed, don't batch at the end
362
+
363
+ ## Common Cron Patterns
364
+
365
+ | Pattern | Schedule |
366
+ |---------|----------|
367
+ | `*/5 * * * *` | Every 5 minutes |
368
+ | `*/15 * * * *` | Every 15 minutes |
369
+ | `0 * * * *` | Every hour |
370
+ | `0 9 * * *` | Daily at 9 AM |
371
+ | `0 9 * * 1-5` | Weekdays at 9 AM |
372
+ | `0 9 * * 1` | Every Monday at 9 AM |
373
+ | `0 0 1 * *` | First of every month |
374
+
375
+ ## Common Event Patterns
376
+
377
+ | Pattern | When |
378
+ |---------|------|
379
+ | `data:create:<model>` | New record created |
380
+ | `data:update:<model>` | Record updated |
381
+ | `data:delete:<model>` | Record deleted |
382
+ | `user:created` | New user registered |
383
+ | `process:completed:<name>` | Another process finished |
@@ -0,0 +1,93 @@
1
+ # Process Metrics Reference
2
+
3
+ ## Overview
4
+
5
+ Process metrics allow you to define dashboard widgets for monitoring process execution. Metrics are served via the `/api/v1/processes/:name/metrics` endpoint and configured per-process.
6
+
7
+ ## Metrics Config
8
+
9
+ Define metrics using DashboardWidget schema in `--metrics-config <path>` JSON file or via the API.
10
+
11
+ ### Example: metrics-config.json
12
+
13
+ ```json
14
+ [
15
+ {
16
+ "type": "stat",
17
+ "title": "成功率",
18
+ "model": "__process_metrics",
19
+ "aggregate": "sum",
20
+ "field": "completedRuns",
21
+ "color": "#52c41a"
22
+ },
23
+ {
24
+ "type": "stat",
25
+ "title": "失败次数",
26
+ "model": "__process_metrics",
27
+ "aggregate": "sum",
28
+ "field": "failedRuns",
29
+ "color": "#ff4d4f"
30
+ },
31
+ {
32
+ "type": "line",
33
+ "title": "执行趋势",
34
+ "model": "__process_metrics",
35
+ "aggregate": "sum",
36
+ "field": "totalRuns",
37
+ "groupBy": "date",
38
+ "dateInterval": "day"
39
+ }
40
+ ]
41
+ ```
42
+
43
+ ### Available Widget Types
44
+
45
+ | Type | Description | Required Fields |
46
+ |------|-------------|-----------------|
47
+ | `stat` | Single number display | `title`, `model`, `aggregate`, `field` |
48
+ | `line` | Line chart | `title`, `model`, `aggregate`, `field`, `groupBy`, `dateInterval` |
49
+ | `bar` | Bar chart | `title`, `model`, `aggregate`, `field`, `groupBy` |
50
+ | `pie` | Pie chart | `title`, `model`, `field`, `groupBy` |
51
+ | `gauge` | Gauge display | `title`, `model`, `field`, `min`, `max` |
52
+ | `table` | Table view | `title`, `model`, `columns` |
53
+
54
+ ### Available Metrics Fields
55
+
56
+ From `ProcessMetricsAggregate`:
57
+
58
+ | Field | Type | Description |
59
+ |-------|------|-------------|
60
+ | `date` | string | Date (YYYY-MM-DD) |
61
+ | `totalRuns` | number | Total executions |
62
+ | `completedRuns` | number | Successful executions |
63
+ | `failedRuns` | number | Failed executions |
64
+ | `timeoutRuns` | number | Timed out executions |
65
+ | `avgDurationMs` | number | Average duration in ms |
66
+ | `lastRunAt` | string\|null | Last execution timestamp |
67
+ | `lastStatus` | string\|null | Last execution status |
68
+
69
+ ### Setting Metrics Config
70
+
71
+ ```bash
72
+ # During process creation
73
+ loom process add --name "health-check" \
74
+ --cron "*/30 * * * *" \
75
+ --prompt "Check system health" \
76
+ --metrics-config ./health-metrics.json \
77
+ --owner admin
78
+
79
+ # Or create the JSON file first
80
+ echo '[
81
+ {"type":"stat","title":"Success Rate","model":"__process_metrics","aggregate":"sum","field":"completedRuns"},
82
+ {"type":"stat","title":"Avg Duration","model":"__process_metrics","aggregate":"avg","field":"avgDurationMs"}
83
+ ]' > health-metrics.json
84
+ ```
85
+
86
+ ### API Endpoints
87
+
88
+ | Endpoint | Method | Description |
89
+ |----------|--------|-------------|
90
+ | `/api/v1/processes/:name/metrics` | GET | Get aggregated metrics data |
91
+ | `/api/v1/processes/:name/metrics-config` | GET | Get widget configuration |
92
+
93
+ The frontend ProcessManagementPage Metrics tab fetches both endpoints and renders the configured widgets dynamically.