@loom-framework/core 0.1.0-alpha.17 → 0.1.0-alpha.171

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 (770) 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 +408 -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 +308 -0
  195. package/builtin-skills/loom/references/README.md +285 -0
  196. package/builtin-skills/loom/references/dashboard.md +259 -0
  197. package/builtin-skills/loom/references/data-model.md +221 -0
  198. package/builtin-skills/loom/references/eject.md +111 -0
  199. package/builtin-skills/yuque-reader/SKILL.md +43 -0
  200. package/builtin-skills/yuque-reader/references/config.md +52 -0
  201. package/builtin-skills/yuque-reader/scripts/fetch_doc.py +121 -0
  202. package/dist/adapter-base.d.ts +31 -0
  203. package/dist/adapter-base.d.ts.map +1 -0
  204. package/dist/adapter-base.js +69 -0
  205. package/dist/adapter-base.js.map +1 -0
  206. package/dist/adapter-factory.d.ts +8 -0
  207. package/dist/adapter-factory.d.ts.map +1 -0
  208. package/dist/adapter-factory.js +25 -0
  209. package/dist/adapter-factory.js.map +1 -0
  210. package/dist/adapter-filesystem.d.ts +25 -11
  211. package/dist/adapter-filesystem.d.ts.map +1 -1
  212. package/dist/adapter-filesystem.js +230 -52
  213. package/dist/adapter-filesystem.js.map +1 -1
  214. package/dist/adapter-sqlite.d.ts +9 -23
  215. package/dist/adapter-sqlite.d.ts.map +1 -1
  216. package/dist/adapter-sqlite.js +94 -55
  217. package/dist/adapter-sqlite.js.map +1 -1
  218. package/dist/adapters/base.d.ts +31 -0
  219. package/dist/adapters/base.d.ts.map +1 -0
  220. package/dist/adapters/base.js +69 -0
  221. package/dist/adapters/base.js.map +1 -0
  222. package/dist/adapters/factory.d.ts +8 -0
  223. package/dist/adapters/factory.d.ts.map +1 -0
  224. package/dist/adapters/factory.js +25 -0
  225. package/dist/adapters/factory.js.map +1 -0
  226. package/dist/adapters/filesystem.d.ts +46 -0
  227. package/dist/adapters/filesystem.d.ts.map +1 -0
  228. package/dist/adapters/filesystem.js +321 -0
  229. package/dist/adapters/filesystem.js.map +1 -0
  230. package/dist/adapters/index.d.ts +10 -0
  231. package/dist/adapters/index.d.ts.map +1 -0
  232. package/dist/adapters/index.js +8 -0
  233. package/dist/adapters/index.js.map +1 -0
  234. package/dist/adapters/sqlite.d.ts +37 -0
  235. package/dist/adapters/sqlite.d.ts.map +1 -0
  236. package/dist/adapters/sqlite.js +264 -0
  237. package/dist/adapters/sqlite.js.map +1 -0
  238. package/dist/backend/ai/button-resolver.d.ts +18 -0
  239. package/dist/backend/ai/button-resolver.d.ts.map +1 -0
  240. package/dist/backend/ai/button-resolver.js +58 -0
  241. package/dist/backend/ai/button-resolver.js.map +1 -0
  242. package/dist/backend/ai/content-blocks.d.ts +18 -0
  243. package/dist/backend/ai/content-blocks.d.ts.map +1 -0
  244. package/dist/backend/ai/content-blocks.js +66 -0
  245. package/dist/backend/ai/content-blocks.js.map +1 -0
  246. package/dist/backend/ai/engine.d.ts +65 -0
  247. package/dist/backend/ai/engine.d.ts.map +1 -0
  248. package/dist/backend/ai/engine.js +238 -0
  249. package/dist/backend/ai/engine.js.map +1 -0
  250. package/dist/backend/ai/index.d.ts +11 -0
  251. package/dist/backend/ai/index.d.ts.map +1 -0
  252. package/dist/backend/ai/index.js +8 -0
  253. package/dist/backend/ai/index.js.map +1 -0
  254. package/dist/backend/ai/output-parser.d.ts +36 -0
  255. package/dist/backend/ai/output-parser.d.ts.map +1 -0
  256. package/dist/backend/ai/output-parser.js +264 -0
  257. package/dist/backend/ai/output-parser.js.map +1 -0
  258. package/dist/backend/ai/session-manager.d.ts +106 -0
  259. package/dist/backend/ai/session-manager.d.ts.map +1 -0
  260. package/dist/backend/ai/session-manager.js +304 -0
  261. package/dist/backend/ai/session-manager.js.map +1 -0
  262. package/dist/backend/auth/jwt.d.ts +16 -0
  263. package/dist/backend/auth/jwt.d.ts.map +1 -0
  264. package/dist/backend/auth/jwt.js +57 -0
  265. package/dist/backend/auth/jwt.js.map +1 -0
  266. package/dist/backend/auth/password.d.ts +10 -0
  267. package/dist/backend/auth/password.d.ts.map +1 -0
  268. package/dist/backend/auth/password.js +19 -0
  269. package/dist/backend/auth/password.js.map +1 -0
  270. package/dist/backend/auth/rbac.d.ts +36 -0
  271. package/dist/backend/auth/rbac.d.ts.map +1 -0
  272. package/dist/backend/auth/rbac.js +129 -0
  273. package/dist/backend/auth/rbac.js.map +1 -0
  274. package/dist/backend/auth/request-context.d.ts +15 -0
  275. package/dist/backend/auth/request-context.d.ts.map +1 -0
  276. package/dist/backend/auth/request-context.js +17 -0
  277. package/dist/backend/auth/request-context.js.map +1 -0
  278. package/dist/backend/auth/service-token.d.ts +11 -0
  279. package/dist/backend/auth/service-token.d.ts.map +1 -0
  280. package/dist/backend/auth/service-token.js +13 -0
  281. package/dist/backend/auth/service-token.js.map +1 -0
  282. package/dist/backend/auth/token-store.d.ts +28 -0
  283. package/dist/backend/auth/token-store.d.ts.map +1 -0
  284. package/dist/backend/auth/token-store.js +84 -0
  285. package/dist/backend/auth/token-store.js.map +1 -0
  286. package/dist/backend/auth/user-store.d.ts +42 -0
  287. package/dist/backend/auth/user-store.d.ts.map +1 -0
  288. package/dist/backend/auth/user-store.js +112 -0
  289. package/dist/backend/auth/user-store.js.map +1 -0
  290. package/dist/backend/events/event-bus.d.ts +39 -0
  291. package/dist/backend/events/event-bus.d.ts.map +1 -0
  292. package/dist/backend/events/event-bus.js +182 -0
  293. package/dist/backend/events/event-bus.js.map +1 -0
  294. package/dist/backend/events/event-emitting-adapter.d.ts +31 -0
  295. package/dist/backend/events/event-emitting-adapter.d.ts.map +1 -0
  296. package/dist/backend/events/event-emitting-adapter.js +70 -0
  297. package/dist/backend/events/event-emitting-adapter.js.map +1 -0
  298. package/dist/backend/events/event-registry.d.ts +24 -0
  299. package/dist/backend/events/event-registry.d.ts.map +1 -0
  300. package/dist/backend/events/event-registry.js +22 -0
  301. package/dist/backend/events/event-registry.js.map +1 -0
  302. package/dist/backend/events/index.d.ts +7 -0
  303. package/dist/backend/events/index.d.ts.map +1 -0
  304. package/dist/backend/events/index.js +7 -0
  305. package/dist/backend/events/index.js.map +1 -0
  306. package/dist/backend/index.d.ts +88 -0
  307. package/dist/backend/index.d.ts.map +1 -0
  308. package/dist/backend/index.js +424 -0
  309. package/dist/backend/index.js.map +1 -0
  310. package/dist/backend/loom-paths.d.ts +28 -0
  311. package/dist/backend/loom-paths.d.ts.map +1 -0
  312. package/dist/backend/loom-paths.js +45 -0
  313. package/dist/backend/loom-paths.js.map +1 -0
  314. package/dist/backend/notifications/interpolate.d.ts +6 -0
  315. package/dist/backend/notifications/interpolate.d.ts.map +1 -0
  316. package/dist/backend/notifications/interpolate.js +11 -0
  317. package/dist/backend/notifications/interpolate.js.map +1 -0
  318. package/dist/backend/notifications/notification-storage.d.ts +27 -0
  319. package/dist/backend/notifications/notification-storage.d.ts.map +1 -0
  320. package/dist/backend/notifications/notification-storage.js +160 -0
  321. package/dist/backend/notifications/notification-storage.js.map +1 -0
  322. package/dist/backend/observe/index.d.ts +6 -0
  323. package/dist/backend/observe/index.d.ts.map +1 -0
  324. package/dist/backend/observe/index.js +5 -0
  325. package/dist/backend/observe/index.js.map +1 -0
  326. package/dist/backend/observe/logger.d.ts +26 -0
  327. package/dist/backend/observe/logger.d.ts.map +1 -0
  328. package/dist/backend/observe/logger.js +68 -0
  329. package/dist/backend/observe/logger.js.map +1 -0
  330. package/dist/backend/observe/types.d.ts +26 -0
  331. package/dist/backend/observe/types.d.ts.map +1 -0
  332. package/dist/backend/observe/types.js +7 -0
  333. package/dist/backend/observe/types.js.map +1 -0
  334. package/dist/backend/process/engine.d.ts +113 -0
  335. package/dist/backend/process/engine.d.ts.map +1 -0
  336. package/dist/backend/process/engine.js +608 -0
  337. package/dist/backend/process/engine.js.map +1 -0
  338. package/dist/backend/process/index.d.ts +7 -0
  339. package/dist/backend/process/index.d.ts.map +1 -0
  340. package/dist/backend/process/index.js +6 -0
  341. package/dist/backend/process/index.js.map +1 -0
  342. package/dist/backend/process/logger.d.ts +38 -0
  343. package/dist/backend/process/logger.d.ts.map +1 -0
  344. package/dist/backend/process/logger.js +198 -0
  345. package/dist/backend/process/logger.js.map +1 -0
  346. package/dist/backend/process/metrics-store.d.ts +32 -0
  347. package/dist/backend/process/metrics-store.d.ts.map +1 -0
  348. package/dist/backend/process/metrics-store.js +108 -0
  349. package/dist/backend/process/metrics-store.js.map +1 -0
  350. package/dist/backend/process/migrate.d.ts +12 -0
  351. package/dist/backend/process/migrate.d.ts.map +1 -0
  352. package/dist/backend/process/migrate.js +145 -0
  353. package/dist/backend/process/migrate.js.map +1 -0
  354. package/dist/backend/process/queue.d.ts +33 -0
  355. package/dist/backend/process/queue.d.ts.map +1 -0
  356. package/dist/backend/process/queue.js +94 -0
  357. package/dist/backend/process/queue.js.map +1 -0
  358. package/dist/backend/process/registry.d.ts +29 -0
  359. package/dist/backend/process/registry.d.ts.map +1 -0
  360. package/dist/backend/process/registry.js +105 -0
  361. package/dist/backend/process/registry.js.map +1 -0
  362. package/dist/backend/process/trigger.d.ts +29 -0
  363. package/dist/backend/process/trigger.d.ts.map +1 -0
  364. package/dist/backend/process/trigger.js +108 -0
  365. package/dist/backend/process/trigger.js.map +1 -0
  366. package/dist/backend/routes/ai-config.d.ts +15 -0
  367. package/dist/backend/routes/ai-config.d.ts.map +1 -0
  368. package/dist/backend/routes/ai-config.js +171 -0
  369. package/dist/backend/routes/ai-config.js.map +1 -0
  370. package/dist/backend/routes/auth-routes.d.ts +33 -0
  371. package/dist/backend/routes/auth-routes.d.ts.map +1 -0
  372. package/dist/backend/routes/auth-routes.js +528 -0
  373. package/dist/backend/routes/auth-routes.js.map +1 -0
  374. package/dist/backend/routes/chat-sse.d.ts +17 -0
  375. package/dist/backend/routes/chat-sse.d.ts.map +1 -0
  376. package/dist/backend/routes/chat-sse.js +60 -0
  377. package/dist/backend/routes/chat-sse.js.map +1 -0
  378. package/dist/backend/routes/chat.d.ts +30 -0
  379. package/dist/backend/routes/chat.d.ts.map +1 -0
  380. package/dist/backend/routes/chat.js +258 -0
  381. package/dist/backend/routes/chat.js.map +1 -0
  382. package/dist/backend/routes/data.d.ts +16 -0
  383. package/dist/backend/routes/data.d.ts.map +1 -0
  384. package/dist/backend/routes/data.js +371 -0
  385. package/dist/backend/routes/data.js.map +1 -0
  386. package/dist/backend/routes/event-routes.d.ts +15 -0
  387. package/dist/backend/routes/event-routes.d.ts.map +1 -0
  388. package/dist/backend/routes/event-routes.js +35 -0
  389. package/dist/backend/routes/event-routes.js.map +1 -0
  390. package/dist/backend/routes/health.d.ts +7 -0
  391. package/dist/backend/routes/health.d.ts.map +1 -0
  392. package/dist/backend/routes/health.js +15 -0
  393. package/dist/backend/routes/health.js.map +1 -0
  394. package/dist/backend/routes/index.d.ts +22 -0
  395. package/dist/backend/routes/index.d.ts.map +1 -0
  396. package/dist/backend/routes/index.js +15 -0
  397. package/dist/backend/routes/index.js.map +1 -0
  398. package/dist/backend/routes/notification-routes.d.ts +22 -0
  399. package/dist/backend/routes/notification-routes.d.ts.map +1 -0
  400. package/dist/backend/routes/notification-routes.js +129 -0
  401. package/dist/backend/routes/notification-routes.js.map +1 -0
  402. package/dist/backend/routes/process-routes.d.ts +17 -0
  403. package/dist/backend/routes/process-routes.d.ts.map +1 -0
  404. package/dist/backend/routes/process-routes.js +309 -0
  405. package/dist/backend/routes/process-routes.js.map +1 -0
  406. package/dist/backend/routes/session-routes.d.ts +22 -0
  407. package/dist/backend/routes/session-routes.d.ts.map +1 -0
  408. package/dist/backend/routes/session-routes.js +97 -0
  409. package/dist/backend/routes/session-routes.js.map +1 -0
  410. package/dist/backend/routes/skill-archive.d.ts +13 -0
  411. package/dist/backend/routes/skill-archive.d.ts.map +1 -0
  412. package/dist/backend/routes/skill-archive.js +84 -0
  413. package/dist/backend/routes/skill-archive.js.map +1 -0
  414. package/dist/backend/routes/skill-parser.d.ts +41 -0
  415. package/dist/backend/routes/skill-parser.d.ts.map +1 -0
  416. package/dist/backend/routes/skill-parser.js +184 -0
  417. package/dist/backend/routes/skill-parser.js.map +1 -0
  418. package/dist/backend/routes/skill-service.d.ts +113 -0
  419. package/dist/backend/routes/skill-service.d.ts.map +1 -0
  420. package/dist/backend/routes/skill-service.js +265 -0
  421. package/dist/backend/routes/skill-service.js.map +1 -0
  422. package/dist/backend/routes/skills.d.ts +18 -0
  423. package/dist/backend/routes/skills.d.ts.map +1 -0
  424. package/dist/backend/routes/skills.js +168 -0
  425. package/dist/backend/routes/skills.js.map +1 -0
  426. package/dist/backend/routes/upload.d.ts +25 -0
  427. package/dist/backend/routes/upload.d.ts.map +1 -0
  428. package/dist/backend/routes/upload.js +100 -0
  429. package/dist/backend/routes/upload.js.map +1 -0
  430. package/dist/backend/services/skill-archive.d.ts +13 -0
  431. package/dist/backend/services/skill-archive.d.ts.map +1 -0
  432. package/dist/backend/services/skill-archive.js +84 -0
  433. package/dist/backend/services/skill-archive.js.map +1 -0
  434. package/dist/backend/services/skill-parser.d.ts +41 -0
  435. package/dist/backend/services/skill-parser.d.ts.map +1 -0
  436. package/dist/backend/services/skill-parser.js +184 -0
  437. package/dist/backend/services/skill-parser.js.map +1 -0
  438. package/dist/backend/services/skill-service.d.ts +113 -0
  439. package/dist/backend/services/skill-service.d.ts.map +1 -0
  440. package/dist/backend/services/skill-service.js +265 -0
  441. package/dist/backend/services/skill-service.js.map +1 -0
  442. package/dist/bin.d.ts +8 -0
  443. package/dist/bin.d.ts.map +1 -0
  444. package/dist/bin.js +12 -0
  445. package/dist/bin.js.map +1 -0
  446. package/dist/capability-generator.d.ts +21 -6
  447. package/dist/capability-generator.d.ts.map +1 -1
  448. package/dist/capability-generator.js +88 -261
  449. package/dist/capability-generator.js.map +1 -1
  450. package/dist/cli/commands/auth.d.ts +11 -0
  451. package/dist/cli/commands/auth.d.ts.map +1 -0
  452. package/dist/cli/commands/auth.js +211 -0
  453. package/dist/cli/commands/auth.js.map +1 -0
  454. package/dist/cli/commands/build.d.ts +11 -0
  455. package/dist/cli/commands/build.d.ts.map +1 -0
  456. package/dist/cli/commands/build.js +170 -0
  457. package/dist/cli/commands/build.js.map +1 -0
  458. package/dist/cli/commands/data.d.ts +15 -0
  459. package/dist/cli/commands/data.d.ts.map +1 -0
  460. package/dist/cli/commands/data.js +214 -0
  461. package/dist/cli/commands/data.js.map +1 -0
  462. package/dist/cli/commands/dev.d.ts +8 -0
  463. package/dist/cli/commands/dev.d.ts.map +1 -0
  464. package/dist/cli/commands/dev.js +97 -0
  465. package/dist/cli/commands/dev.js.map +1 -0
  466. package/dist/cli/commands/eject.d.ts +12 -0
  467. package/dist/cli/commands/eject.d.ts.map +1 -0
  468. package/dist/cli/commands/eject.js +280 -0
  469. package/dist/cli/commands/eject.js.map +1 -0
  470. package/dist/cli/commands/generate-capabilities.d.ts +8 -0
  471. package/dist/cli/commands/generate-capabilities.d.ts.map +1 -0
  472. package/dist/cli/commands/generate-capabilities.js +41 -0
  473. package/dist/cli/commands/generate-capabilities.js.map +1 -0
  474. package/dist/cli/commands/generate-cli-command.d.ts +8 -0
  475. package/dist/cli/commands/generate-cli-command.d.ts.map +1 -0
  476. package/dist/cli/commands/generate-cli-command.js +64 -0
  477. package/dist/cli/commands/generate-cli-command.js.map +1 -0
  478. package/dist/cli/commands/generate-dashboard.d.ts +9 -0
  479. package/dist/cli/commands/generate-dashboard.d.ts.map +1 -0
  480. package/dist/cli/commands/generate-dashboard.js +113 -0
  481. package/dist/cli/commands/generate-dashboard.js.map +1 -0
  482. package/dist/cli/commands/generate-notification.d.ts +9 -0
  483. package/dist/cli/commands/generate-notification.d.ts.map +1 -0
  484. package/dist/cli/commands/generate-notification.js +24 -0
  485. package/dist/cli/commands/generate-notification.js.map +1 -0
  486. package/dist/cli/commands/generate-page.d.ts +9 -0
  487. package/dist/cli/commands/generate-page.d.ts.map +1 -0
  488. package/dist/cli/commands/generate-page.js +105 -0
  489. package/dist/cli/commands/generate-page.js.map +1 -0
  490. package/dist/cli/commands/generate-skill.d.ts +8 -0
  491. package/dist/cli/commands/generate-skill.d.ts.map +1 -0
  492. package/dist/cli/commands/generate-skill.js +75 -0
  493. package/dist/cli/commands/generate-skill.js.map +1 -0
  494. package/dist/cli/commands/generate-system-settings.d.ts +10 -0
  495. package/dist/cli/commands/generate-system-settings.d.ts.map +1 -0
  496. package/dist/cli/commands/generate-system-settings.js +56 -0
  497. package/dist/cli/commands/generate-system-settings.js.map +1 -0
  498. package/dist/cli/commands/generate.d.ts +6 -0
  499. package/dist/cli/commands/generate.d.ts.map +1 -0
  500. package/dist/cli/commands/generate.js +21 -0
  501. package/dist/cli/commands/generate.js.map +1 -0
  502. package/dist/cli/commands/init.d.ts +8 -0
  503. package/dist/cli/commands/init.d.ts.map +1 -0
  504. package/dist/cli/commands/init.js +371 -0
  505. package/dist/cli/commands/init.js.map +1 -0
  506. package/dist/cli/commands/notification.d.ts +8 -0
  507. package/dist/cli/commands/notification.d.ts.map +1 -0
  508. package/dist/cli/commands/notification.js +179 -0
  509. package/dist/cli/commands/notification.js.map +1 -0
  510. package/dist/cli/commands/observe.d.ts +9 -0
  511. package/dist/cli/commands/observe.d.ts.map +1 -0
  512. package/dist/cli/commands/observe.js +142 -0
  513. package/dist/cli/commands/observe.js.map +1 -0
  514. package/dist/cli/commands/process.d.ts +8 -0
  515. package/dist/cli/commands/process.d.ts.map +1 -0
  516. package/dist/cli/commands/process.js +538 -0
  517. package/dist/cli/commands/process.js.map +1 -0
  518. package/dist/cli/commands/role.d.ts +12 -0
  519. package/dist/cli/commands/role.d.ts.map +1 -0
  520. package/dist/cli/commands/role.js +208 -0
  521. package/dist/cli/commands/role.js.map +1 -0
  522. package/dist/cli/commands/serve.d.ts +12 -0
  523. package/dist/cli/commands/serve.d.ts.map +1 -0
  524. package/dist/cli/commands/serve.js +43 -0
  525. package/dist/cli/commands/serve.js.map +1 -0
  526. package/dist/cli/commands/skill.d.ts +9 -0
  527. package/dist/cli/commands/skill.d.ts.map +1 -0
  528. package/dist/cli/commands/skill.js +186 -0
  529. package/dist/cli/commands/skill.js.map +1 -0
  530. package/dist/cli/commands/user-cmd.d.ts +9 -0
  531. package/dist/cli/commands/user-cmd.d.ts.map +1 -0
  532. package/dist/cli/commands/user-cmd.js +195 -0
  533. package/dist/cli/commands/user-cmd.js.map +1 -0
  534. package/dist/cli/framework.d.ts +28 -0
  535. package/dist/cli/framework.d.ts.map +1 -0
  536. package/dist/cli/framework.js +29 -0
  537. package/dist/cli/framework.js.map +1 -0
  538. package/dist/cli/generators/capability-generator.d.ts +35 -0
  539. package/dist/cli/generators/capability-generator.d.ts.map +1 -0
  540. package/dist/cli/generators/capability-generator.js +369 -0
  541. package/dist/cli/generators/capability-generator.js.map +1 -0
  542. package/dist/cli/helpers/app-tsx-utils.d.ts +12 -0
  543. package/dist/cli/helpers/app-tsx-utils.d.ts.map +1 -0
  544. package/dist/cli/helpers/app-tsx-utils.js +22 -0
  545. package/dist/cli/helpers/app-tsx-utils.js.map +1 -0
  546. package/dist/cli/helpers/app-tsx-wiring-engine.d.ts +70 -0
  547. package/dist/cli/helpers/app-tsx-wiring-engine.d.ts.map +1 -0
  548. package/dist/cli/helpers/app-tsx-wiring-engine.js +535 -0
  549. package/dist/cli/helpers/app-tsx-wiring-engine.js.map +1 -0
  550. package/dist/cli/helpers/app-tsx-wiring.d.ts +19 -0
  551. package/dist/cli/helpers/app-tsx-wiring.d.ts.map +1 -0
  552. package/dist/cli/helpers/app-tsx-wiring.js +145 -0
  553. package/dist/cli/helpers/app-tsx-wiring.js.map +1 -0
  554. package/dist/cli/helpers/auth-client.d.ts +19 -0
  555. package/dist/cli/helpers/auth-client.d.ts.map +1 -0
  556. package/dist/cli/helpers/auth-client.js +42 -0
  557. package/dist/cli/helpers/auth-client.js.map +1 -0
  558. package/dist/cli/helpers/backup.d.ts +16 -0
  559. package/dist/cli/helpers/backup.d.ts.map +1 -0
  560. package/dist/cli/helpers/backup.js +34 -0
  561. package/dist/cli/helpers/backup.js.map +1 -0
  562. package/dist/cli/helpers/column-template.d.ts +20 -0
  563. package/dist/cli/helpers/column-template.d.ts.map +1 -0
  564. package/dist/cli/helpers/column-template.js +165 -0
  565. package/dist/cli/helpers/column-template.js.map +1 -0
  566. package/dist/cli/helpers/duration.d.ts +5 -0
  567. package/dist/cli/helpers/duration.d.ts.map +1 -0
  568. package/dist/cli/helpers/duration.js +5 -0
  569. package/dist/cli/helpers/duration.js.map +1 -0
  570. package/dist/cli/helpers/field-template.d.ts +14 -0
  571. package/dist/cli/helpers/field-template.d.ts.map +1 -0
  572. package/dist/cli/helpers/field-template.js +117 -0
  573. package/dist/cli/helpers/field-template.js.map +1 -0
  574. package/dist/cli/helpers/i18n-template.d.ts +21 -0
  575. package/dist/cli/helpers/i18n-template.d.ts.map +1 -0
  576. package/dist/cli/helpers/i18n-template.js +69 -0
  577. package/dist/cli/helpers/i18n-template.js.map +1 -0
  578. package/dist/cli/helpers/naming.d.ts +11 -0
  579. package/dist/cli/helpers/naming.d.ts.map +1 -0
  580. package/dist/cli/helpers/naming.js +21 -0
  581. package/dist/cli/helpers/naming.js.map +1 -0
  582. package/dist/cli/helpers/system-page-config.d.ts +27 -0
  583. package/dist/cli/helpers/system-page-config.d.ts.map +1 -0
  584. package/dist/cli/helpers/system-page-config.js +73 -0
  585. package/dist/cli/helpers/system-page-config.js.map +1 -0
  586. package/dist/cli/index.d.ts +9 -0
  587. package/dist/cli/index.d.ts.map +1 -0
  588. package/dist/cli/index.js +45 -0
  589. package/dist/cli/index.js.map +1 -0
  590. package/dist/cli/lib/credentials.d.ts +27 -0
  591. package/dist/cli/lib/credentials.d.ts.map +1 -0
  592. package/dist/cli/lib/credentials.js +112 -0
  593. package/dist/cli/lib/credentials.js.map +1 -0
  594. package/dist/cli/templates/auth-wiring.d.ts +17 -0
  595. package/dist/cli/templates/auth-wiring.d.ts.map +1 -0
  596. package/dist/cli/templates/auth-wiring.js +31 -0
  597. package/dist/cli/templates/auth-wiring.js.map +1 -0
  598. package/dist/cli/templates/backend-entry.d.ts +5 -0
  599. package/dist/cli/templates/backend-entry.d.ts.map +1 -0
  600. package/dist/cli/templates/backend-entry.js +17 -0
  601. package/dist/cli/templates/backend-entry.js.map +1 -0
  602. package/dist/cli/templates/claude-md.d.ts +20 -0
  603. package/dist/cli/templates/claude-md.d.ts.map +1 -0
  604. package/dist/cli/templates/claude-md.js +123 -0
  605. package/dist/cli/templates/claude-md.js.map +1 -0
  606. package/dist/cli/templates/crud-page.d.ts +14 -0
  607. package/dist/cli/templates/crud-page.d.ts.map +1 -0
  608. package/dist/cli/templates/crud-page.js +436 -0
  609. package/dist/cli/templates/crud-page.js.map +1 -0
  610. package/dist/cli/templates/dashboard-page.d.ts +11 -0
  611. package/dist/cli/templates/dashboard-page.d.ts.map +1 -0
  612. package/dist/cli/templates/dashboard-page.js +606 -0
  613. package/dist/cli/templates/dashboard-page.js.map +1 -0
  614. package/dist/cli/templates/frontend-entry.d.ts +11 -0
  615. package/dist/cli/templates/frontend-entry.d.ts.map +1 -0
  616. package/dist/cli/templates/frontend-entry.js +94 -0
  617. package/dist/cli/templates/frontend-entry.js.map +1 -0
  618. package/dist/cli/templates/gitignore.d.ts +5 -0
  619. package/dist/cli/templates/gitignore.d.ts.map +1 -0
  620. package/dist/cli/templates/gitignore.js +13 -0
  621. package/dist/cli/templates/gitignore.js.map +1 -0
  622. package/dist/cli/templates/index.d.ts +21 -0
  623. package/dist/cli/templates/index.d.ts.map +1 -0
  624. package/dist/cli/templates/index.js +21 -0
  625. package/dist/cli/templates/index.js.map +1 -0
  626. package/dist/cli/templates/login-page.d.ts +8 -0
  627. package/dist/cli/templates/login-page.d.ts.map +1 -0
  628. package/dist/cli/templates/login-page.js +67 -0
  629. package/dist/cli/templates/login-page.js.map +1 -0
  630. package/dist/cli/templates/loom-config.d.ts +13 -0
  631. package/dist/cli/templates/loom-config.d.ts.map +1 -0
  632. package/dist/cli/templates/loom-config.js +67 -0
  633. package/dist/cli/templates/loom-config.js.map +1 -0
  634. package/dist/cli/templates/model-management-page.d.ts +8 -0
  635. package/dist/cli/templates/model-management-page.d.ts.map +1 -0
  636. package/dist/cli/templates/model-management-page.js +304 -0
  637. package/dist/cli/templates/model-management-page.js.map +1 -0
  638. package/dist/cli/templates/notification-center-page.d.ts +8 -0
  639. package/dist/cli/templates/notification-center-page.d.ts.map +1 -0
  640. package/dist/cli/templates/notification-center-page.js +240 -0
  641. package/dist/cli/templates/notification-center-page.js.map +1 -0
  642. package/dist/cli/templates/notification-detail-page.d.ts +8 -0
  643. package/dist/cli/templates/notification-detail-page.d.ts.map +1 -0
  644. package/dist/cli/templates/notification-detail-page.js +87 -0
  645. package/dist/cli/templates/notification-detail-page.js.map +1 -0
  646. package/dist/cli/templates/package-json.d.ts +9 -0
  647. package/dist/cli/templates/package-json.d.ts.map +1 -0
  648. package/dist/cli/templates/package-json.js +41 -0
  649. package/dist/cli/templates/package-json.js.map +1 -0
  650. package/dist/cli/templates/process-management-page.d.ts +8 -0
  651. package/dist/cli/templates/process-management-page.d.ts.map +1 -0
  652. package/dist/cli/templates/process-management-page.js +498 -0
  653. package/dist/cli/templates/process-management-page.js.map +1 -0
  654. package/dist/cli/templates/readme.d.ts +9 -0
  655. package/dist/cli/templates/readme.d.ts.map +1 -0
  656. package/dist/cli/templates/readme.js +47 -0
  657. package/dist/cli/templates/readme.js.map +1 -0
  658. package/dist/cli/templates/skill-management-page.d.ts +8 -0
  659. package/dist/cli/templates/skill-management-page.d.ts.map +1 -0
  660. package/dist/cli/templates/skill-management-page.js +476 -0
  661. package/dist/cli/templates/skill-management-page.js.map +1 -0
  662. package/dist/cli/templates/system-settings-page.d.ts +10 -0
  663. package/dist/cli/templates/system-settings-page.d.ts.map +1 -0
  664. package/dist/cli/templates/system-settings-page.js +768 -0
  665. package/dist/cli/templates/system-settings-page.js.map +1 -0
  666. package/dist/cli/templates/tsconfig.d.ts +6 -0
  667. package/dist/cli/templates/tsconfig.d.ts.map +1 -0
  668. package/dist/cli/templates/tsconfig.js +41 -0
  669. package/dist/cli/templates/tsconfig.js.map +1 -0
  670. package/dist/cli/templates/user-management-page.d.ts +8 -0
  671. package/dist/cli/templates/user-management-page.d.ts.map +1 -0
  672. package/dist/cli/templates/user-management-page.js +497 -0
  673. package/dist/cli/templates/user-management-page.js.map +1 -0
  674. package/dist/cli/templates/vite-config.d.ts +5 -0
  675. package/dist/cli/templates/vite-config.d.ts.map +1 -0
  676. package/dist/cli/templates/vite-config.js +24 -0
  677. package/dist/cli/templates/vite-config.js.map +1 -0
  678. package/dist/cli/utils.d.ts +10 -0
  679. package/dist/cli/utils.d.ts.map +1 -0
  680. package/dist/cli/utils.js +31 -0
  681. package/dist/cli/utils.js.map +1 -0
  682. package/dist/commands.d.ts +1 -5
  683. package/dist/commands.d.ts.map +1 -1
  684. package/dist/commands.js +0 -11
  685. package/dist/commands.js.map +1 -1
  686. package/dist/config.d.ts +1200 -93
  687. package/dist/config.d.ts.map +1 -1
  688. package/dist/config.js +139 -15
  689. package/dist/config.js.map +1 -1
  690. package/dist/dashboard-config.d.ts +149 -0
  691. package/dist/dashboard-config.d.ts.map +1 -0
  692. package/dist/dashboard-config.js +40 -0
  693. package/dist/dashboard-config.js.map +1 -0
  694. package/dist/index.d.ts +23 -9
  695. package/dist/index.d.ts.map +1 -1
  696. package/dist/index.js +20 -5
  697. package/dist/index.js.map +1 -1
  698. package/dist/server-bin.d.ts +12 -0
  699. package/dist/server-bin.d.ts.map +1 -0
  700. package/dist/server-bin.js +43 -0
  701. package/dist/server-bin.js.map +1 -0
  702. package/dist/system-prompt.d.ts +20 -0
  703. package/dist/system-prompt.d.ts.map +1 -0
  704. package/dist/system-prompt.js +140 -0
  705. package/dist/system-prompt.js.map +1 -0
  706. package/dist/types/adapter.d.ts +30 -0
  707. package/dist/types/adapter.d.ts.map +1 -0
  708. package/dist/types/adapter.js +5 -0
  709. package/dist/types/adapter.js.map +1 -0
  710. package/dist/types/ai.d.ts +74 -0
  711. package/dist/types/ai.d.ts.map +1 -0
  712. package/dist/types/ai.js +5 -0
  713. package/dist/types/ai.js.map +1 -0
  714. package/dist/types/auth.d.ts +62 -0
  715. package/dist/types/auth.d.ts.map +1 -0
  716. package/dist/types/auth.js +5 -0
  717. package/dist/types/auth.js.map +1 -0
  718. package/dist/types/chat.d.ts +47 -0
  719. package/dist/types/chat.d.ts.map +1 -0
  720. package/dist/types/chat.js +8 -0
  721. package/dist/types/chat.js.map +1 -0
  722. package/dist/types/command.d.ts +25 -0
  723. package/dist/types/command.d.ts.map +1 -0
  724. package/dist/types/command.js +5 -0
  725. package/dist/types/command.js.map +1 -0
  726. package/dist/types/config.d.ts +65 -0
  727. package/dist/types/config.d.ts.map +1 -0
  728. package/dist/types/config.js +5 -0
  729. package/dist/types/config.js.map +1 -0
  730. package/dist/types/dashboard.d.ts +59 -0
  731. package/dist/types/dashboard.d.ts.map +1 -0
  732. package/dist/types/dashboard.js +5 -0
  733. package/dist/types/dashboard.js.map +1 -0
  734. package/dist/types/event.d.ts +103 -0
  735. package/dist/types/event.d.ts.map +1 -0
  736. package/dist/types/event.js +38 -0
  737. package/dist/types/event.js.map +1 -0
  738. package/dist/types/index.d.ts +21 -0
  739. package/dist/types/index.d.ts.map +1 -0
  740. package/dist/types/index.js +9 -0
  741. package/dist/types/index.js.map +1 -0
  742. package/dist/types/locale.d.ts +21 -0
  743. package/dist/types/locale.d.ts.map +1 -0
  744. package/dist/types/locale.js +36 -0
  745. package/dist/types/locale.js.map +1 -0
  746. package/dist/types/model.d.ts +71 -0
  747. package/dist/types/model.d.ts.map +1 -0
  748. package/dist/types/model.js +5 -0
  749. package/dist/types/model.js.map +1 -0
  750. package/dist/types/notification.d.ts +33 -0
  751. package/dist/types/notification.d.ts.map +1 -0
  752. package/dist/types/notification.js +5 -0
  753. package/dist/types/notification.js.map +1 -0
  754. package/dist/types/process.d.ts +180 -0
  755. package/dist/types/process.d.ts.map +1 -0
  756. package/dist/types/process.js +5 -0
  757. package/dist/types/process.js.map +1 -0
  758. package/dist/types.d.ts +4 -199
  759. package/dist/types.d.ts.map +1 -1
  760. package/dist/types.js +4 -3
  761. package/dist/types.js.map +1 -1
  762. package/dist/utils/duration.d.ts +8 -0
  763. package/dist/utils/duration.d.ts.map +1 -0
  764. package/dist/utils/duration.js +22 -0
  765. package/dist/utils/duration.js.map +1 -0
  766. package/dist/utils/id.d.ts +7 -0
  767. package/dist/utils/id.d.ts.map +1 -0
  768. package/dist/utils/id.js +9 -0
  769. package/dist/utils/id.js.map +1 -0
  770. package/package.json +30 -5
@@ -0,0 +1,304 @@
1
+ /**
2
+ * Model Management page template
3
+ *
4
+ * GENERATED by scripts/generate-templates.ts — v0.1.0-alpha.171 — DO NOT EDIT MANUALLY.
5
+ * Source: packages/frontend-antd/src/auth/model-management-page.tsx
6
+ */
7
+ export function modelManagementPageTemplate() {
8
+ return `/**
9
+ * ModelManagementPage - AI model configuration management
10
+ */
11
+
12
+ import React, { useState, useEffect, useCallback } from 'react';
13
+ import { Card, Table, Button, Modal, Form, Input, Switch, Tag, Space, Typography, message, theme, Breadcrumb, Flex } from 'antd';
14
+ import { PlusOutlined, EditOutlined, DeleteOutlined, RobotOutlined, HomeOutlined, AppstoreAddOutlined } from '@ant-design/icons';
15
+ import { useLocale, registerMessages, useAppShell, useAuthenticatedFetch } from '@loom-framework/frontend-antd';
16
+
17
+ registerMessages('zh-CN', {
18
+ 'model.title': '模型管理',
19
+ 'model.addModel': '添加模型',
20
+ 'model.addEngine': '添加AI引擎',
21
+ 'model.editModel': '编辑模型',
22
+ 'model.modelName': '模型名',
23
+ 'model.authToken': '认证令牌',
24
+ 'model.baseUrl': 'API 地址',
25
+ 'model.setDefault': '设为默认',
26
+ 'model.default': '默认',
27
+ 'model.engine': 'AI 引擎',
28
+ 'model.configured': '已配置',
29
+ 'model.notSet': '未设置',
30
+ 'model.deleteConfirm': '确认删除模型 "{name}"?',
31
+ 'model.deleteSuccess': '模型已删除',
32
+ 'model.addSuccess': '模型已添加',
33
+ 'model.updateSuccess': '模型已更新',
34
+ 'model.saveFailed': '保存模型失败',
35
+ 'model.loadFailed': '加载模型失败',
36
+ 'model.nameRequired': '请输入模型名称',
37
+ 'model.baseUrlRequired': '请输入 API 地址',
38
+ 'model.tokenMasked': '留空保持当前值不变',
39
+ 'model.enterToken': '输入认证令牌',
40
+ });
41
+
42
+ registerMessages('en-US', {
43
+ 'model.title': 'Model Management',
44
+ 'model.addModel': 'Add Model',
45
+ 'model.addEngine': 'Add AI Engine',
46
+ 'model.editModel': 'Edit Model',
47
+ 'model.modelName': 'Model Name',
48
+ 'model.authToken': 'Auth Token',
49
+ 'model.baseUrl': 'API Base URL',
50
+ 'model.setDefault': 'Set as Default',
51
+ 'model.default': 'Default',
52
+ 'model.engine': 'AI Engine',
53
+ 'model.configured': 'Configured',
54
+ 'model.notSet': 'Not Set',
55
+ 'model.deleteConfirm': 'Delete model "{name}"?',
56
+ 'model.deleteSuccess': 'Model deleted',
57
+ 'model.addSuccess': 'Model added',
58
+ 'model.updateSuccess': 'Model updated',
59
+ 'model.saveFailed': 'Failed to save model',
60
+ 'model.loadFailed': 'Failed to load models',
61
+ 'model.nameRequired': 'Model name is required',
62
+ 'model.baseUrlRequired': 'Base URL is required',
63
+ 'model.tokenMasked': 'Leave empty to keep current',
64
+ 'model.enterToken': 'Enter auth token',
65
+ });
66
+
67
+ interface ModelItem {
68
+ name: string;
69
+ authToken?: string;
70
+ hasAuthToken?: boolean;
71
+ baseUrl?: string;
72
+ isDefault: boolean;
73
+ }
74
+
75
+ const API = '/api/v1/ai/models';
76
+
77
+ function ModelManagementPage(): React.ReactElement {
78
+ const { token } = theme.useToken();
79
+ const { t } = useLocale();
80
+ const { breadcrumbs, onNavClick } = useAppShell();
81
+ const authFetch = useAuthenticatedFetch();
82
+ const [models, setModels] = useState<ModelItem[]>([]);
83
+ const [loading, setLoading] = useState(false);
84
+ const [modalOpen, setModalOpen] = useState(false);
85
+ const [editingModel, setEditingModel] = useState<ModelItem | null>(null);
86
+ const [form] = Form.useForm();
87
+
88
+ const fetchModels = useCallback(async () => {
89
+ setLoading(true);
90
+ try {
91
+ const res = await authFetch(API);
92
+ const data = await res.json();
93
+ setModels(Array.isArray(data) ? data : []);
94
+ } catch {
95
+ message.error(t('model.loadFailed') || 'Failed to load models');
96
+ } finally {
97
+ setLoading(false);
98
+ }
99
+ }, [authFetch]);
100
+
101
+ useEffect(() => { fetchModels(); }, [fetchModels]);
102
+
103
+ const handleSave = async () => {
104
+ try {
105
+ const values = await form.validateFields();
106
+ let updatedModels = models.map(m => ({ ...m, isDefault: false }));
107
+
108
+ if (editingModel) {
109
+ updatedModels = updatedModels.map(m =>
110
+ m.name === editingModel.name ? { ...m, ...values, hasAuthToken: values.authToken ? true : m.hasAuthToken } : m
111
+ );
112
+ } else {
113
+ updatedModels.push({ ...values, hasAuthToken: !!values.authToken });
114
+ }
115
+
116
+ if (values.isDefault) {
117
+ updatedModels = updatedModels.map(m => ({ ...m, isDefault: m.name === values.name }));
118
+ } else if (!updatedModels.some(m => m.isDefault)) {
119
+ updatedModels[0].isDefault = true;
120
+ }
121
+
122
+ const res = await authFetch(API, {
123
+ method: 'PUT',
124
+ headers: { 'Content-Type': 'application/json' },
125
+ body: JSON.stringify({ models: updatedModels }),
126
+ });
127
+
128
+ if (res.ok) {
129
+ const data = await res.json();
130
+ setModels(Array.isArray(data) ? data : []);
131
+ message.success(editingModel ? (t('model.updateSuccess') || 'Model updated') : (t('model.addSuccess') || 'Model added'));
132
+ } else {
133
+ message.error(t('model.saveFailed') || 'Failed to save model');
134
+ }
135
+
136
+ setModalOpen(false);
137
+ setEditingModel(null);
138
+ form.resetFields();
139
+ } catch { /* validation error */ }
140
+ };
141
+
142
+ const handleDelete = async (name: string) => {
143
+ Modal.confirm({
144
+ title: t('model.deleteConfirm')?.replace('{name}', name) || \`Delete model "\${name}"?\`,
145
+ onOk: async () => {
146
+ const updatedModels = models.filter(m => m.name !== name);
147
+ if (updatedModels.length > 0 && !updatedModels.some(m => m.isDefault)) {
148
+ updatedModels[0].isDefault = true;
149
+ }
150
+
151
+ const res = await authFetch(API, {
152
+ method: 'PUT',
153
+ headers: { 'Content-Type': 'application/json' },
154
+ body: JSON.stringify({ models: updatedModels }),
155
+ });
156
+
157
+ if (res.ok) {
158
+ const data = await res.json();
159
+ setModels(Array.isArray(data) ? data : []);
160
+ message.success(t('model.deleteSuccess') || 'Model deleted');
161
+ }
162
+ },
163
+ });
164
+ };
165
+
166
+ const openEditModal = (model: ModelItem) => {
167
+ setEditingModel(model);
168
+ form.setFieldsValue({
169
+ name: model.name,
170
+ authToken: model.authToken,
171
+ baseUrl: model.baseUrl,
172
+ isDefault: model.isDefault,
173
+ });
174
+ setModalOpen(true);
175
+ };
176
+
177
+ const openAddModal = () => {
178
+ setEditingModel(null);
179
+ form.resetFields();
180
+ form.setFieldsValue({ isDefault: models.length === 0 });
181
+ setModalOpen(true);
182
+ };
183
+
184
+ const columns = [
185
+ {
186
+ title: t('model.modelName') || 'Model Name',
187
+ dataIndex: 'name',
188
+ key: 'name',
189
+ render: (name: string, record: ModelItem) => (
190
+ <Space>
191
+ <span style={{ fontWeight: token.fontWeightStrong }}>{name}</span>
192
+ {record.isDefault && <Tag color="blue">{t('model.default') || 'Default'}</Tag>}
193
+ </Space>
194
+ ),
195
+ },
196
+ {
197
+ title: t('model.baseUrl') || 'API Base URL',
198
+ dataIndex: 'baseUrl',
199
+ key: 'baseUrl',
200
+ render: (url: string) => url ? <Typography.Text copyable={{ text: url }} style={{ fontSize: token.fontSizeSM }}>{url}</Typography.Text> : <Typography.Text type="secondary">—</Typography.Text>,
201
+ },
202
+ {
203
+ title: t('model.authToken') || 'Auth Token',
204
+ dataIndex: 'hasAuthToken',
205
+ key: 'hasAuthToken',
206
+ width: 120,
207
+ render: (has: boolean) => has ? <Tag color="green">{t('model.configured') || 'Configured'}</Tag> : <Tag>{t('model.notSet') || 'Not Set'}</Tag>,
208
+ },
209
+ {
210
+ title: t('common.action') || 'Action',
211
+ key: 'action',
212
+ width: 120,
213
+ render: (_: unknown, record: ModelItem) => (
214
+ <Space size={0}>
215
+ <Button type="text" size="small" icon={<EditOutlined />} onClick={() => openEditModal(record)} />
216
+ {!record.isDefault && (
217
+ <Button type="text" size="small" danger icon={<DeleteOutlined />} onClick={() => handleDelete(record.name)} />
218
+ )}
219
+ </Space>
220
+ ),
221
+ },
222
+ ];
223
+
224
+ return (
225
+ <div style={{ display: 'flex', flexDirection: 'column', flex: 1, minHeight: 0 }}>
226
+ <Flex justify="space-between" align="center" style={{ marginBottom: 12 }}>
227
+ <Breadcrumb items={[{ title: <HomeOutlined onClick={() => onNavClick?.('')} style={{ cursor: 'pointer' }} /> }, ...(breadcrumbs || []).map((b: { title: string; path?: string }) => ({ title: b.path ? <a onClick={() => onNavClick?.(b.path!)}>{b.title}</a> : b.title }))]} />
228
+ <Button type="primary" icon={<AppstoreAddOutlined />} disabled>
229
+ {t('model.addEngine') || 'Add AI Engine'}
230
+ </Button>
231
+ </Flex>
232
+ <Card
233
+ title={
234
+ <Space>
235
+ <RobotOutlined />
236
+ <span>Claude Code</span>
237
+ <Typography.Text type="secondary" style={{ fontWeight: 'normal' }}>
238
+ {t('model.engine') || 'AI Engine'}
239
+ </Typography.Text>
240
+ </Space>
241
+ }
242
+ extra={
243
+ <Button type="primary" size="small" icon={<PlusOutlined />} onClick={openAddModal}>
244
+ {t('model.addModel') || 'Add Model'}
245
+ </Button>
246
+ }
247
+ >
248
+ <Table
249
+ dataSource={models}
250
+ columns={columns}
251
+ rowKey="name"
252
+ loading={loading}
253
+ pagination={false}
254
+ size="small"
255
+ />
256
+ </Card>
257
+
258
+ <Modal
259
+ title={editingModel ? (t('model.editModel') || 'Edit Model') : (t('model.addModel') || 'Add Model')}
260
+ open={modalOpen}
261
+ onOk={handleSave}
262
+ onCancel={() => { setModalOpen(false); setEditingModel(null); form.resetFields(); }}
263
+ okText={t('common.save') || 'Save'}
264
+ cancelText={t('common.cancel') || 'Cancel'}
265
+ destroyOnClose
266
+ >
267
+ <Form form={form} layout="vertical" style={{ marginTop: token.marginMD }}>
268
+ <Form.Item
269
+ name="name"
270
+ label={t('model.modelName') || 'Model Name'}
271
+ rules={[{ required: true, message: t('model.nameRequired') || 'Model name is required' }]}
272
+ >
273
+ <Input disabled={!!editingModel} placeholder="e.g. GLM-5.1, Kimi-K2.5" />
274
+ </Form.Item>
275
+ <Form.Item
276
+ name="baseUrl"
277
+ label={t('model.baseUrl') || 'API Base URL'}
278
+ rules={[{ required: true, message: t('model.baseUrlRequired') || 'Base URL is required' }]}
279
+ >
280
+ <Input placeholder="https://api.example.com" />
281
+ </Form.Item>
282
+ <Form.Item
283
+ name="authToken"
284
+ label={t('model.authToken') || 'Auth Token'}
285
+ >
286
+ <Input.Password placeholder={editingModel?.hasAuthToken ? t('model.tokenMasked') || 'Leave empty to keep current' : t('model.enterToken') || 'Enter auth token'} />
287
+ </Form.Item>
288
+ <Form.Item
289
+ name="isDefault"
290
+ label={t('model.setDefault') || 'Set as Default'}
291
+ valuePropName="checked"
292
+ >
293
+ <Switch />
294
+ </Form.Item>
295
+ </Form>
296
+ </Modal>
297
+ </div>
298
+ );
299
+ }
300
+
301
+ export default ModelManagementPage;
302
+ `;
303
+ }
304
+ //# sourceMappingURL=model-management-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-management-page.js","sourceRoot":"","sources":["../../../src/cli/templates/model-management-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,UAAU,2BAA2B;IACzC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsSR,CAAC;AACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * NotificationCenter page template
3
+ *
4
+ * GENERATED by scripts/generate-templates.ts — v0.1.0-alpha.171 — DO NOT EDIT MANUALLY.
5
+ * Source: packages/frontend-antd/src/components/pages/NotificationCenter.tsx
6
+ */
7
+ export declare function notificationCenterPageTemplate(): string;
8
+ //# sourceMappingURL=notification-center-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-center-page.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/notification-center-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,8BAA8B,IAAI,MAAM,CAwOvD"}
@@ -0,0 +1,240 @@
1
+ /**
2
+ * NotificationCenter page template
3
+ *
4
+ * GENERATED by scripts/generate-templates.ts — v0.1.0-alpha.171 — DO NOT EDIT MANUALLY.
5
+ * Source: packages/frontend-antd/src/components/pages/NotificationCenter.tsx
6
+ */
7
+ export function notificationCenterPageTemplate() {
8
+ return `/**
9
+ * NotificationCenterPage - Full-page notification management
10
+ *
11
+ * Persistent notifications from server API with Table display.
12
+ * Supports multi-select batch read/delete.
13
+ */
14
+
15
+ import React, { useState, useCallback } from 'react';
16
+ import { Table, Button, Space, Tag, Typography, Popconfirm, Select, message, Breadcrumb, Flex, Tooltip } from 'antd';
17
+ import { CheckOutlined, DeleteOutlined, HomeOutlined, MessageOutlined } from '@ant-design/icons';
18
+ import type { LoomNotification, BreadcrumbItem } from '@loom-framework/frontend-antd';
19
+ import { useNotificationCenter, useAppShell, useLocale, registerMessages, AIContext, useResponsiveTableHeight, formatTime } from '@loom-framework/frontend-antd';
20
+
21
+ registerMessages('zh-CN', {
22
+ 'notification.viewSession': 'Loom 会话',
23
+ });
24
+
25
+ registerMessages('en-US', {
26
+ 'notification.viewSession': 'Loom Session',
27
+ });
28
+
29
+ export const NOTIFICATION_TYPE_COLORS: Record<string, string> = {
30
+ info: 'blue',
31
+ warning: 'orange',
32
+ error: 'red',
33
+ success: 'green',
34
+ };
35
+
36
+ export const NOTIFICATION_SOURCE_COLORS: Record<string, string> = {
37
+ system: 'default',
38
+ event: 'purple',
39
+ cli: 'cyan',
40
+ };
41
+
42
+ function NotificationCenterPage() {
43
+ const { notifications, loading, fetchNotifications, markRead, markAllRead, deleteNotification, clearAll, markBatchRead, deleteBatch, selectNotification } = useNotificationCenter();
44
+ const { breadcrumbs, onNavClick } = useAppShell();
45
+ const { t } = useLocale();
46
+ const aiContext = React.useContext(AIContext);
47
+ const [filter, setFilter] = useState<string>('all');
48
+ const [selectedRowKeys, setSelectedRowKeys] = useState<React.Key[]>([]);
49
+ const { ref: tableWrapperRef, scrollY } = useResponsiveTableHeight([notifications.length]);
50
+
51
+ const handleFilterChange = useCallback((value: string) => {
52
+ setFilter(value);
53
+ if (value === 'unread') {
54
+ fetchNotifications({ limit: 50, unreadOnly: true });
55
+ } else {
56
+ fetchNotifications({ limit: 50 });
57
+ }
58
+ }, [fetchNotifications]);
59
+
60
+ const handleMarkAllRead = useCallback(async () => {
61
+ await markAllRead();
62
+ message.success(t('notification.markAllRead'));
63
+ }, [markAllRead, t]);
64
+
65
+ const handleBatchMarkRead = useCallback(async () => {
66
+ const ids = selectedRowKeys as string[];
67
+ await markBatchRead(ids);
68
+ setSelectedRowKeys([]);
69
+ message.success(t('notification.batchMarkRead'));
70
+ }, [markBatchRead, selectedRowKeys, t]);
71
+
72
+ const handleBatchDelete = useCallback(async () => {
73
+ const ids = selectedRowKeys as string[];
74
+ await deleteBatch(ids);
75
+ setSelectedRowKeys([]);
76
+ message.success(t('notification.batchDelete'));
77
+ }, [deleteBatch, selectedRowKeys, t]);
78
+
79
+ const handleClearAll = useCallback(async () => {
80
+ await clearAll();
81
+ setSelectedRowKeys([]);
82
+ message.success(t('notification.clearAll'));
83
+ }, [clearAll, t]);
84
+
85
+ const handleMarkRead = useCallback(async (id: string) => {
86
+ await markRead(id);
87
+ }, [markRead]);
88
+
89
+ const handleDelete = useCallback(async (id: string) => {
90
+ await deleteNotification(id);
91
+ }, [deleteNotification]);
92
+
93
+ const columns = [
94
+ {
95
+ title: t('notification.colType'),
96
+ dataIndex: 'type',
97
+ key: 'type',
98
+ width: 80,
99
+ render: (type: string) => <Tag color={NOTIFICATION_TYPE_COLORS[type] || 'default'}>{t(\`notification.type.\${type}\`)}</Tag>,
100
+ },
101
+ {
102
+ title: t('notification.colTitle'),
103
+ dataIndex: 'title',
104
+ key: 'title',
105
+ render: (title: string, record: LoomNotification) => (
106
+ <Typography.Text strong={!record.read}>{title}</Typography.Text>
107
+ ),
108
+ },
109
+ {
110
+ title: t('notification.colDescription'),
111
+ dataIndex: 'description',
112
+ key: 'description',
113
+ ellipsis: true,
114
+ render: (desc: string) => (
115
+ <Typography.Text type="secondary" ellipsis>{desc}</Typography.Text>
116
+ ),
117
+ },
118
+ {
119
+ title: t('notification.colSource'),
120
+ dataIndex: 'source',
121
+ key: 'source',
122
+ width: 90,
123
+ render: (source: string) => <Tag color={NOTIFICATION_SOURCE_COLORS[source] || 'default'}>{t(\`notification.source.\${source}\`) || source}</Tag>,
124
+ },
125
+ {
126
+ title: t('field.createdAt'),
127
+ dataIndex: 'createdAt',
128
+ key: 'createdAt',
129
+ width: 140,
130
+ render: (val: string) => <Typography.Text type="secondary">{formatTime(val)}</Typography.Text>,
131
+ },
132
+ {
133
+ title: t('common.action'),
134
+ key: 'action',
135
+ width: 100,
136
+ render: (_: unknown, record: LoomNotification) => (
137
+ <Space size={0}>
138
+ {!record.read && (
139
+ <Button type="text" size="small" icon={<CheckOutlined />} onClick={(e) => { e.stopPropagation(); handleMarkRead(record.id); }}>
140
+ {t('notification.markRead')}
141
+ </Button>
142
+ )}
143
+ <Popconfirm
144
+ title={t('notification.deleteConfirm')}
145
+ onConfirm={() => handleDelete(record.id)}
146
+ >
147
+ <Button type="text" danger size="small" icon={<DeleteOutlined />} onClick={(e) => e.stopPropagation()} />
148
+ </Popconfirm>
149
+ </Space>
150
+ ),
151
+ },
152
+ {
153
+ title: '',
154
+ key: 'session',
155
+ width: 48,
156
+ render: (_: unknown, record: LoomNotification) =>
157
+ record.sessionId && aiContext?.switchToSession ? (
158
+ <Tooltip title={t('notification.viewSession')}>
159
+ <Button type="link" size="small" icon={<MessageOutlined />}
160
+ onClick={(e) => { e.stopPropagation(); aiContext.switchToSession!(record.sessionId!); }}
161
+ />
162
+ </Tooltip>
163
+ ) : null,
164
+ },
165
+ ];
166
+
167
+ const filterOptions = [
168
+ { value: 'all', label: t('notification.all') },
169
+ { value: 'unread', label: t('notification.unread') },
170
+ { value: 'info', label: t('notification.type.info') },
171
+ { value: 'warning', label: t('notification.type.warning') },
172
+ { value: 'error', label: t('notification.type.error') },
173
+ { value: 'success', label: t('notification.type.success') },
174
+ ];
175
+
176
+ const filteredNotifications = filter === 'all' || filter === 'unread'
177
+ ? notifications
178
+ : notifications.filter(n => n.type === filter);
179
+
180
+ const hasSelected = selectedRowKeys.length > 0;
181
+
182
+ return (
183
+ <div style={{ display: 'flex', flexDirection: 'column', flex: 1, minHeight: 0 }}>
184
+ <Flex justify="space-between" align="center" style={{ marginBottom: 12 }}>
185
+ <Breadcrumb items={[{ title: <HomeOutlined onClick={() => onNavClick?.('')} style={{ cursor: 'pointer' }} /> }, ...(breadcrumbs || []).map((b: BreadcrumbItem) => ({ title: b.path ? <a onClick={() => { if (b.path) onNavClick?.(b.path); }}>{b.title}</a> : b.title }))]} />
186
+ <Space>
187
+ <Select
188
+ value={filter}
189
+ onChange={handleFilterChange}
190
+ options={filterOptions}
191
+ style={{ width: 120 }}
192
+ />
193
+ <Button icon={<CheckOutlined />} onClick={handleMarkAllRead}>{t('notification.markAllRead')}</Button>
194
+ <Popconfirm title={t('notification.clearConfirm')} onConfirm={handleClearAll}>
195
+ <Button danger>{t('notification.clearAll')}</Button>
196
+ </Popconfirm>
197
+ {hasSelected && (
198
+ <>
199
+ <Button icon={<CheckOutlined />} onClick={handleBatchMarkRead}>
200
+ {t('notification.batchMarkRead')} ({selectedRowKeys.length})
201
+ </Button>
202
+ <Popconfirm title={t('notification.deleteConfirm')} onConfirm={handleBatchDelete}>
203
+ <Button danger icon={<DeleteOutlined />}>
204
+ {t('notification.batchDelete')} ({selectedRowKeys.length})
205
+ </Button>
206
+ </Popconfirm>
207
+ </>
208
+ )}
209
+ </Space>
210
+ </Flex>
211
+ <div ref={tableWrapperRef} style={{ flex: 1, minHeight: 0, overflow: 'hidden' }}>
212
+ <Table
213
+ dataSource={filteredNotifications}
214
+ columns={columns}
215
+ rowKey="id"
216
+ loading={loading}
217
+ pagination={{ pageSize: 20, showTotal: (total: number) => t('crud.total', { total }) }}
218
+ size="middle"
219
+ scroll={{ x: 'max-content', y: scrollY }}
220
+ rowSelection={{
221
+ selectedRowKeys,
222
+ onChange: setSelectedRowKeys,
223
+ }}
224
+ onRow={(record) => ({
225
+ onClick: () => {
226
+ selectNotification(record.id);
227
+ onNavClick?.('notification-detail');
228
+ },
229
+ style: { cursor: 'pointer' },
230
+ })}
231
+ />
232
+ </div>
233
+ </div>
234
+ );
235
+ }
236
+
237
+ export default NotificationCenterPage;
238
+ `;
239
+ }
240
+ //# sourceMappingURL=notification-center-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-center-page.js","sourceRoot":"","sources":["../../../src/cli/templates/notification-center-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,UAAU,8BAA8B;IAC5C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsOR,CAAC;AACF,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * NotificationDetail page template
3
+ *
4
+ * GENERATED by scripts/generate-templates.ts — v0.1.0-alpha.171 — DO NOT EDIT MANUALLY.
5
+ * Source: packages/frontend-antd/src/components/pages/NotificationDetail.tsx
6
+ */
7
+ export declare function notificationDetailPageTemplate(): string;
8
+ //# sourceMappingURL=notification-detail-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-detail-page.d.ts","sourceRoot":"","sources":["../../../src/cli/templates/notification-detail-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wBAAgB,8BAA8B,IAAI,MAAM,CA+EvD"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * NotificationDetail page template
3
+ *
4
+ * GENERATED by scripts/generate-templates.ts — v0.1.0-alpha.171 — DO NOT EDIT MANUALLY.
5
+ * Source: packages/frontend-antd/src/components/pages/NotificationDetail.tsx
6
+ */
7
+ export function notificationDetailPageTemplate() {
8
+ return `/**
9
+ * NotificationDetailPage - Single notification detail with Markdown rendering
10
+ */
11
+
12
+ import React from 'react';
13
+ import { Tag, Typography, Empty, Breadcrumb, Button, Space, Flex } from 'antd';
14
+ import { ArrowLeftOutlined, HomeOutlined, MessageOutlined } from '@ant-design/icons';
15
+ import { XMarkdown } from '@ant-design/x-markdown';
16
+ import '@ant-design/x-markdown/themes/light.css';
17
+ import '@ant-design/x-markdown/themes/dark.css';
18
+ import type { BreadcrumbItem } from '@loom-framework/frontend-antd';
19
+ import { useNotificationCenter, useAppShell, useLocale, registerMessages, AIContext, useLoomTheme, formatTime, NOTIFICATION_TYPE_COLORS, NOTIFICATION_SOURCE_COLORS } from '@loom-framework/frontend-antd';
20
+
21
+ registerMessages('zh-CN', {
22
+ 'notification.viewSession': 'Loom 会话',
23
+ });
24
+
25
+ registerMessages('en-US', {
26
+ 'notification.viewSession': 'Loom Session',
27
+ });
28
+
29
+ function NotificationDetailPage() {
30
+ const { notifications, selectedNotificationId } = useNotificationCenter();
31
+ const { breadcrumbs, onNavClick } = useAppShell();
32
+ const { t } = useLocale();
33
+ const aiContext = React.useContext(AIContext);
34
+ const { mode } = useLoomTheme();
35
+
36
+ const notification = notifications.find(n => n.id === selectedNotificationId) ?? null;
37
+
38
+ const themeClass = mode === 'dark' ? 'x-markdown-dark' : 'x-markdown-light';
39
+
40
+ if (!notification) {
41
+ return (
42
+ <div style={{ display: 'flex', flexDirection: 'column', flex: 1, minHeight: 0 }}>
43
+ <Empty description={t('notification.notFound')}>
44
+ <Button type="primary" onClick={() => onNavClick?.('notifications')}>
45
+ <ArrowLeftOutlined /> {t('notification.backToList')}
46
+ </Button>
47
+ </Empty>
48
+ </div>
49
+ );
50
+ }
51
+
52
+ return (
53
+ <div style={{ display: 'flex', flexDirection: 'column', flex: 1, minHeight: 0 }}>
54
+ <Flex justify="space-between" align="center" style={{ marginBottom: 12 }}>
55
+ <Breadcrumb items={[{ title: <HomeOutlined onClick={() => onNavClick?.('')} style={{ cursor: 'pointer' }} /> }, ...(breadcrumbs || []).map((b: BreadcrumbItem) => ({ title: b.path ? <a onClick={() => { if (b.path) onNavClick?.(b.path); }}>{b.title}</a> : b.title }))]} />
56
+ <Space>
57
+ {notification.sessionId && aiContext?.switchToSession && (
58
+ <Button icon={<MessageOutlined />} onClick={() => aiContext.switchToSession!(notification.sessionId!)}>
59
+ {t('notification.viewSession')}
60
+ </Button>
61
+ )}
62
+ <Button icon={<ArrowLeftOutlined />} onClick={() => onNavClick?.('notifications')}>
63
+ {t('notification.backToList')}
64
+ </Button>
65
+ </Space>
66
+ </Flex>
67
+
68
+ <div style={{ marginBottom: 16 }}>
69
+ <Space size={8} align="center" style={{ marginBottom: 8 }}>
70
+ <Tag color={NOTIFICATION_TYPE_COLORS[notification.type]}>{t(\`notification.type.\${notification.type}\`)}</Tag>
71
+ <Tag color={NOTIFICATION_SOURCE_COLORS[notification.source] || 'default'}>{t(\`notification.source.\${notification.source}\`) || notification.source}</Tag>
72
+ <Typography.Text type="secondary">{formatTime(notification.createdAt)}</Typography.Text>
73
+ </Space>
74
+ <Typography.Title level={4} style={{ marginBottom: 8 }}>{notification.title}</Typography.Title>
75
+ </div>
76
+
77
+ <div className={themeClass} style={{ flex: 1, overflow: 'auto' }}>
78
+ <XMarkdown content={notification.description || ''} />
79
+ </div>
80
+ </div>
81
+ );
82
+ }
83
+
84
+ export default NotificationDetailPage;
85
+ `;
86
+ }
87
+ //# sourceMappingURL=notification-detail-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-detail-page.js","sourceRoot":"","sources":["../../../src/cli/templates/notification-detail-page.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,UAAU,8BAA8B;IAC5C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6ER,CAAC;AACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * package.json template
3
+ */
4
+ export interface PackageJsonTemplateOptions {
5
+ name: string;
6
+ version: string;
7
+ }
8
+ export declare function createPackageJson(options: PackageJsonTemplateOptions): object;
9
+ //# sourceMappingURL=package-json.d.ts.map