@powerlines/plugin-alloy 0.26.237 → 0.26.239

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 (334) hide show
  1. package/dist/core/components/index.cjs +1 -9
  2. package/dist/core/components/index.d.cts +1 -5
  3. package/dist/core/components/index.d.mts +1 -5
  4. package/dist/core/components/index.mjs +1 -5
  5. package/dist/core/components/infrastructure-file.cjs +6 -3
  6. package/dist/core/components/infrastructure-file.d.cts +1 -1
  7. package/dist/core/components/infrastructure-file.d.cts.map +1 -1
  8. package/dist/core/components/infrastructure-file.d.mts +1 -1
  9. package/dist/core/components/infrastructure-file.mjs +5 -2
  10. package/dist/core/contexts/index.cjs +1 -11
  11. package/dist/core/contexts/index.d.cts +1 -3
  12. package/dist/core/contexts/index.d.mts +1 -3
  13. package/dist/core/contexts/index.mjs +1 -3
  14. package/dist/core/index.cjs +2 -23
  15. package/dist/core/index.d.cts +2 -10
  16. package/dist/core/index.d.mts +2 -10
  17. package/dist/core/index.mjs +2 -10
  18. package/dist/helpers/capnp.cjs +29 -29
  19. package/dist/helpers/capnp.d.cts +1 -1
  20. package/dist/helpers/capnp.d.cts.map +1 -1
  21. package/dist/helpers/capnp.d.mts +1 -1
  22. package/dist/helpers/capnp.mjs +3 -3
  23. package/dist/index.cjs +10 -2
  24. package/dist/index.d.cts +10 -4
  25. package/dist/index.d.cts.map +1 -1
  26. package/dist/index.d.mts +10 -4
  27. package/dist/index.mjs +10 -2
  28. package/dist/render.cjs +69 -52
  29. package/dist/render.d.cts +34 -5
  30. package/dist/render.d.cts.map +1 -1
  31. package/dist/render.d.mts +34 -5
  32. package/dist/render.mjs +70 -53
  33. package/dist/types/index.d.cts +2 -3
  34. package/dist/types/index.d.mts +2 -3
  35. package/dist/types/plugin.d.cts +7 -4
  36. package/dist/types/plugin.d.cts.map +1 -1
  37. package/dist/types/plugin.d.mts +7 -4
  38. package/dist/typescript/components/builtin-file.cjs +6 -6
  39. package/dist/typescript/components/builtin-file.d.cts +2 -2
  40. package/dist/typescript/components/builtin-file.d.cts.map +1 -1
  41. package/dist/typescript/components/builtin-file.d.mts +2 -2
  42. package/dist/typescript/components/builtin-file.mjs +2 -2
  43. package/dist/typescript/components/entry-file.cjs +2 -2
  44. package/dist/typescript/components/entry-file.d.cts +1 -1
  45. package/dist/typescript/components/entry-file.d.cts.map +1 -1
  46. package/dist/typescript/components/entry-file.d.mts +1 -1
  47. package/dist/typescript/components/entry-file.mjs +1 -1
  48. package/dist/typescript/components/index.cjs +1 -56
  49. package/dist/typescript/components/index.d.cts +1 -12
  50. package/dist/typescript/components/index.d.mts +1 -12
  51. package/dist/typescript/components/index.mjs +1 -12
  52. package/dist/typescript/index.cjs +1 -64
  53. package/dist/typescript/index.d.cts +1 -17
  54. package/dist/typescript/index.d.mts +1 -17
  55. package/dist/typescript/index.mjs +1 -17
  56. package/package.json +20 -641
  57. package/dist/core/components/output.cjs +0 -40
  58. package/dist/core/components/output.d.cts +0 -22
  59. package/dist/core/components/output.d.cts.map +0 -1
  60. package/dist/core/components/output.d.mts +0 -22
  61. package/dist/core/components/output.d.mts.map +0 -1
  62. package/dist/core/components/output.mjs +0 -40
  63. package/dist/core/components/output.mjs.map +0 -1
  64. package/dist/core/components/single-line-comment.cjs +0 -22
  65. package/dist/core/components/single-line-comment.d.cts +0 -19
  66. package/dist/core/components/single-line-comment.d.cts.map +0 -1
  67. package/dist/core/components/single-line-comment.d.mts +0 -19
  68. package/dist/core/components/single-line-comment.d.mts.map +0 -1
  69. package/dist/core/components/single-line-comment.mjs +0 -22
  70. package/dist/core/components/single-line-comment.mjs.map +0 -1
  71. package/dist/core/components/source-file.cjs +0 -64
  72. package/dist/core/components/source-file.d.cts +0 -30
  73. package/dist/core/components/source-file.d.cts.map +0 -1
  74. package/dist/core/components/source-file.d.mts +0 -30
  75. package/dist/core/components/source-file.d.mts.map +0 -1
  76. package/dist/core/components/source-file.mjs +0 -62
  77. package/dist/core/components/source-file.mjs.map +0 -1
  78. package/dist/core/components/spacing.cjs +0 -19
  79. package/dist/core/components/spacing.d.cts +0 -19
  80. package/dist/core/components/spacing.d.cts.map +0 -1
  81. package/dist/core/components/spacing.d.mts +0 -19
  82. package/dist/core/components/spacing.d.mts.map +0 -1
  83. package/dist/core/components/spacing.mjs +0 -19
  84. package/dist/core/components/spacing.mjs.map +0 -1
  85. package/dist/core/contexts/meta.cjs +0 -40
  86. package/dist/core/contexts/meta.d.cts +0 -46
  87. package/dist/core/contexts/meta.d.cts.map +0 -1
  88. package/dist/core/contexts/meta.d.mts +0 -46
  89. package/dist/core/contexts/meta.d.mts.map +0 -1
  90. package/dist/core/contexts/meta.mjs +0 -37
  91. package/dist/core/contexts/meta.mjs.map +0 -1
  92. package/dist/core/contexts/schema.cjs +0 -38
  93. package/dist/core/contexts/schema.d.cts +0 -26
  94. package/dist/core/contexts/schema.d.cts.map +0 -1
  95. package/dist/core/contexts/schema.d.mts +0 -26
  96. package/dist/core/contexts/schema.d.mts.map +0 -1
  97. package/dist/core/contexts/schema.mjs +0 -35
  98. package/dist/core/contexts/schema.mjs.map +0 -1
  99. package/dist/core/helpers/code.cjs +0 -33
  100. package/dist/core/helpers/code.d.cts +0 -28
  101. package/dist/core/helpers/code.d.cts.map +0 -1
  102. package/dist/core/helpers/code.d.mts +0 -28
  103. package/dist/core/helpers/code.d.mts.map +0 -1
  104. package/dist/core/helpers/code.mjs +0 -33
  105. package/dist/core/helpers/code.mjs.map +0 -1
  106. package/dist/core/helpers/index.cjs +0 -4
  107. package/dist/core/helpers/index.d.cts +0 -2
  108. package/dist/core/helpers/index.d.mts +0 -2
  109. package/dist/core/helpers/index.mjs +0 -3
  110. package/dist/hcl/components/block-declaration.cjs +0 -33
  111. package/dist/hcl/components/block-declaration.d.cts +0 -19
  112. package/dist/hcl/components/block-declaration.d.cts.map +0 -1
  113. package/dist/hcl/components/block-declaration.d.mts +0 -19
  114. package/dist/hcl/components/block-declaration.d.mts.map +0 -1
  115. package/dist/hcl/components/block-declaration.mjs +0 -33
  116. package/dist/hcl/components/block-declaration.mjs.map +0 -1
  117. package/dist/hcl/components/hcl-file.cjs +0 -82
  118. package/dist/hcl/components/hcl-file.d.cts +0 -25
  119. package/dist/hcl/components/hcl-file.d.cts.map +0 -1
  120. package/dist/hcl/components/hcl-file.d.mts +0 -25
  121. package/dist/hcl/components/hcl-file.d.mts.map +0 -1
  122. package/dist/hcl/components/hcl-file.mjs +0 -81
  123. package/dist/hcl/components/hcl-file.mjs.map +0 -1
  124. package/dist/hcl/components/index.cjs +0 -11
  125. package/dist/hcl/components/index.d.cts +0 -5
  126. package/dist/hcl/components/index.d.mts +0 -5
  127. package/dist/hcl/components/index.mjs +0 -6
  128. package/dist/hcl/components/packer-file.cjs +0 -28
  129. package/dist/hcl/components/packer-file.d.cts +0 -16
  130. package/dist/hcl/components/packer-file.d.cts.map +0 -1
  131. package/dist/hcl/components/packer-file.d.mts +0 -16
  132. package/dist/hcl/components/packer-file.d.mts.map +0 -1
  133. package/dist/hcl/components/packer-file.mjs +0 -28
  134. package/dist/hcl/components/packer-file.mjs.map +0 -1
  135. package/dist/hcl/components/terraform-file.cjs +0 -29
  136. package/dist/hcl/components/terraform-file.d.cts +0 -17
  137. package/dist/hcl/components/terraform-file.d.cts.map +0 -1
  138. package/dist/hcl/components/terraform-file.d.mts +0 -17
  139. package/dist/hcl/components/terraform-file.d.mts.map +0 -1
  140. package/dist/hcl/components/terraform-file.mjs +0 -29
  141. package/dist/hcl/components/terraform-file.mjs.map +0 -1
  142. package/dist/hcl/index.cjs +0 -12
  143. package/dist/hcl/index.d.cts +0 -6
  144. package/dist/hcl/index.d.mts +0 -6
  145. package/dist/hcl/index.mjs +0 -7
  146. package/dist/markdown/components/alert.cjs +0 -74
  147. package/dist/markdown/components/alert.d.cts +0 -52
  148. package/dist/markdown/components/alert.d.cts.map +0 -1
  149. package/dist/markdown/components/alert.d.mts +0 -52
  150. package/dist/markdown/components/alert.d.mts.map +0 -1
  151. package/dist/markdown/components/alert.mjs +0 -69
  152. package/dist/markdown/components/alert.mjs.map +0 -1
  153. package/dist/markdown/components/front-matter.cjs +0 -30
  154. package/dist/markdown/components/front-matter.d.cts +0 -13
  155. package/dist/markdown/components/front-matter.d.cts.map +0 -1
  156. package/dist/markdown/components/front-matter.d.mts +0 -13
  157. package/dist/markdown/components/front-matter.d.mts.map +0 -1
  158. package/dist/markdown/components/front-matter.mjs +0 -30
  159. package/dist/markdown/components/front-matter.mjs.map +0 -1
  160. package/dist/markdown/components/heading.cjs +0 -23
  161. package/dist/markdown/components/heading.d.cts +0 -17
  162. package/dist/markdown/components/heading.d.cts.map +0 -1
  163. package/dist/markdown/components/heading.d.mts +0 -17
  164. package/dist/markdown/components/heading.d.mts.map +0 -1
  165. package/dist/markdown/components/heading.mjs +0 -23
  166. package/dist/markdown/components/heading.mjs.map +0 -1
  167. package/dist/markdown/components/index.cjs +0 -20
  168. package/dist/markdown/components/index.d.cts +0 -6
  169. package/dist/markdown/components/index.d.mts +0 -6
  170. package/dist/markdown/components/index.mjs +0 -7
  171. package/dist/markdown/components/markdown-file.cjs +0 -146
  172. package/dist/markdown/components/markdown-file.d.cts +0 -25
  173. package/dist/markdown/components/markdown-file.d.cts.map +0 -1
  174. package/dist/markdown/components/markdown-file.d.mts +0 -25
  175. package/dist/markdown/components/markdown-file.d.mts.map +0 -1
  176. package/dist/markdown/components/markdown-file.mjs +0 -145
  177. package/dist/markdown/components/markdown-file.mjs.map +0 -1
  178. package/dist/markdown/components/markdown-table.cjs +0 -106
  179. package/dist/markdown/components/markdown-table.d.cts +0 -37
  180. package/dist/markdown/components/markdown-table.d.cts.map +0 -1
  181. package/dist/markdown/components/markdown-table.d.mts +0 -37
  182. package/dist/markdown/components/markdown-table.d.mts.map +0 -1
  183. package/dist/markdown/components/markdown-table.mjs +0 -104
  184. package/dist/markdown/components/markdown-table.mjs.map +0 -1
  185. package/dist/markdown/contexts/index.cjs +0 -7
  186. package/dist/markdown/contexts/index.d.cts +0 -2
  187. package/dist/markdown/contexts/index.d.mts +0 -2
  188. package/dist/markdown/contexts/index.mjs +0 -3
  189. package/dist/markdown/contexts/markdown-table.cjs +0 -37
  190. package/dist/markdown/contexts/markdown-table.d.cts +0 -35
  191. package/dist/markdown/contexts/markdown-table.d.cts.map +0 -1
  192. package/dist/markdown/contexts/markdown-table.d.mts +0 -35
  193. package/dist/markdown/contexts/markdown-table.d.mts.map +0 -1
  194. package/dist/markdown/contexts/markdown-table.mjs +0 -34
  195. package/dist/markdown/contexts/markdown-table.mjs.map +0 -1
  196. package/dist/markdown/index.cjs +0 -27
  197. package/dist/markdown/index.d.cts +0 -9
  198. package/dist/markdown/index.d.mts +0 -9
  199. package/dist/markdown/index.mjs +0 -10
  200. package/dist/types/components.cjs +0 -9
  201. package/dist/types/components.d.cts +0 -137
  202. package/dist/types/components.d.cts.map +0 -1
  203. package/dist/types/components.d.mts +0 -137
  204. package/dist/types/components.d.mts.map +0 -1
  205. package/dist/types/components.mjs +0 -10
  206. package/dist/types/components.mjs.map +0 -1
  207. package/dist/typescript/components/class-declaration.cjs +0 -305
  208. package/dist/typescript/components/class-declaration.d.cts +0 -139
  209. package/dist/typescript/components/class-declaration.d.cts.map +0 -1
  210. package/dist/typescript/components/class-declaration.d.mts +0 -139
  211. package/dist/typescript/components/class-declaration.d.mts.map +0 -1
  212. package/dist/typescript/components/class-declaration.mjs +0 -300
  213. package/dist/typescript/components/class-declaration.mjs.map +0 -1
  214. package/dist/typescript/components/dynamic-import-statement.cjs +0 -25
  215. package/dist/typescript/components/dynamic-import-statement.d.cts +0 -30
  216. package/dist/typescript/components/dynamic-import-statement.d.cts.map +0 -1
  217. package/dist/typescript/components/dynamic-import-statement.d.mts +0 -30
  218. package/dist/typescript/components/dynamic-import-statement.d.mts.map +0 -1
  219. package/dist/typescript/components/dynamic-import-statement.mjs +0 -25
  220. package/dist/typescript/components/dynamic-import-statement.mjs.map +0 -1
  221. package/dist/typescript/components/interface-declaration.cjs +0 -257
  222. package/dist/typescript/components/interface-declaration.d.cts +0 -78
  223. package/dist/typescript/components/interface-declaration.d.cts.map +0 -1
  224. package/dist/typescript/components/interface-declaration.d.mts +0 -78
  225. package/dist/typescript/components/interface-declaration.d.mts.map +0 -1
  226. package/dist/typescript/components/interface-declaration.mjs +0 -254
  227. package/dist/typescript/components/interface-declaration.mjs.map +0 -1
  228. package/dist/typescript/components/object-declaration.cjs +0 -131
  229. package/dist/typescript/components/object-declaration.d.cts +0 -24
  230. package/dist/typescript/components/object-declaration.d.cts.map +0 -1
  231. package/dist/typescript/components/object-declaration.d.mts +0 -24
  232. package/dist/typescript/components/object-declaration.d.mts.map +0 -1
  233. package/dist/typescript/components/object-declaration.mjs +0 -130
  234. package/dist/typescript/components/object-declaration.mjs.map +0 -1
  235. package/dist/typescript/components/property-name.cjs +0 -31
  236. package/dist/typescript/components/property-name.d.cts +0 -21
  237. package/dist/typescript/components/property-name.d.cts.map +0 -1
  238. package/dist/typescript/components/property-name.d.mts +0 -21
  239. package/dist/typescript/components/property-name.d.mts.map +0 -1
  240. package/dist/typescript/components/property-name.mjs +0 -31
  241. package/dist/typescript/components/property-name.mjs.map +0 -1
  242. package/dist/typescript/components/record-expression.cjs +0 -12
  243. package/dist/typescript/components/record-expression.d.cts +0 -9
  244. package/dist/typescript/components/record-expression.d.cts.map +0 -1
  245. package/dist/typescript/components/record-expression.d.mts +0 -9
  246. package/dist/typescript/components/record-expression.d.mts.map +0 -1
  247. package/dist/typescript/components/record-expression.mjs +0 -12
  248. package/dist/typescript/components/record-expression.mjs.map +0 -1
  249. package/dist/typescript/components/tsdoc-schema.cjs +0 -166
  250. package/dist/typescript/components/tsdoc-schema.d.cts +0 -21
  251. package/dist/typescript/components/tsdoc-schema.d.cts.map +0 -1
  252. package/dist/typescript/components/tsdoc-schema.d.mts +0 -21
  253. package/dist/typescript/components/tsdoc-schema.d.mts.map +0 -1
  254. package/dist/typescript/components/tsdoc-schema.mjs +0 -165
  255. package/dist/typescript/components/tsdoc-schema.mjs.map +0 -1
  256. package/dist/typescript/components/tsdoc.cjs +0 -486
  257. package/dist/typescript/components/tsdoc.d.cts +0 -163
  258. package/dist/typescript/components/tsdoc.d.cts.map +0 -1
  259. package/dist/typescript/components/tsdoc.d.mts +0 -163
  260. package/dist/typescript/components/tsdoc.d.mts.map +0 -1
  261. package/dist/typescript/components/tsdoc.mjs +0 -465
  262. package/dist/typescript/components/tsdoc.mjs.map +0 -1
  263. package/dist/typescript/components/type-declaration.cjs +0 -38
  264. package/dist/typescript/components/type-declaration.d.cts +0 -15
  265. package/dist/typescript/components/type-declaration.d.cts.map +0 -1
  266. package/dist/typescript/components/type-declaration.d.mts +0 -15
  267. package/dist/typescript/components/type-declaration.d.mts.map +0 -1
  268. package/dist/typescript/components/type-declaration.mjs +0 -38
  269. package/dist/typescript/components/type-declaration.mjs.map +0 -1
  270. package/dist/typescript/components/type-parameters.cjs +0 -82
  271. package/dist/typescript/components/type-parameters.d.cts +0 -22
  272. package/dist/typescript/components/type-parameters.d.cts.map +0 -1
  273. package/dist/typescript/components/type-parameters.d.mts +0 -22
  274. package/dist/typescript/components/type-parameters.d.mts.map +0 -1
  275. package/dist/typescript/components/type-parameters.mjs +0 -82
  276. package/dist/typescript/components/type-parameters.mjs.map +0 -1
  277. package/dist/typescript/components/typescript-file.cjs +0 -231
  278. package/dist/typescript/components/typescript-file.d.cts +0 -46
  279. package/dist/typescript/components/typescript-file.d.cts.map +0 -1
  280. package/dist/typescript/components/typescript-file.d.mts +0 -46
  281. package/dist/typescript/components/typescript-file.d.mts.map +0 -1
  282. package/dist/typescript/components/typescript-file.mjs +0 -229
  283. package/dist/typescript/components/typescript-file.mjs.map +0 -1
  284. package/dist/typescript/contexts/index.cjs +0 -4
  285. package/dist/typescript/contexts/index.d.cts +0 -2
  286. package/dist/typescript/contexts/index.d.mts +0 -2
  287. package/dist/typescript/contexts/index.mjs +0 -3
  288. package/dist/typescript/contexts/lexical-scope.cjs +0 -25
  289. package/dist/typescript/contexts/lexical-scope.d.cts +0 -12
  290. package/dist/typescript/contexts/lexical-scope.d.cts.map +0 -1
  291. package/dist/typescript/contexts/lexical-scope.d.mts +0 -12
  292. package/dist/typescript/contexts/lexical-scope.d.mts.map +0 -1
  293. package/dist/typescript/contexts/lexical-scope.mjs +0 -25
  294. package/dist/typescript/contexts/lexical-scope.mjs.map +0 -1
  295. package/dist/typescript/contexts/member-scope.cjs +0 -23
  296. package/dist/typescript/contexts/member-scope.d.cts +0 -18
  297. package/dist/typescript/contexts/member-scope.d.cts.map +0 -1
  298. package/dist/typescript/contexts/member-scope.d.mts +0 -18
  299. package/dist/typescript/contexts/member-scope.d.mts.map +0 -1
  300. package/dist/typescript/contexts/member-scope.mjs +0 -23
  301. package/dist/typescript/contexts/member-scope.mjs.map +0 -1
  302. package/dist/typescript/helpers/get-call-signature-props.cjs +0 -25
  303. package/dist/typescript/helpers/get-call-signature-props.d.cts +0 -13
  304. package/dist/typescript/helpers/get-call-signature-props.d.cts.map +0 -1
  305. package/dist/typescript/helpers/get-call-signature-props.d.mts +0 -13
  306. package/dist/typescript/helpers/get-call-signature-props.d.mts.map +0 -1
  307. package/dist/typescript/helpers/get-call-signature-props.mjs +0 -25
  308. package/dist/typescript/helpers/get-call-signature-props.mjs.map +0 -1
  309. package/dist/typescript/helpers/index.cjs +0 -6
  310. package/dist/typescript/helpers/index.d.cts +0 -3
  311. package/dist/typescript/helpers/index.d.mts +0 -3
  312. package/dist/typescript/helpers/index.mjs +0 -4
  313. package/dist/typescript/helpers/utilities.cjs +0 -15
  314. package/dist/typescript/helpers/utilities.d.cts +0 -11
  315. package/dist/typescript/helpers/utilities.d.cts.map +0 -1
  316. package/dist/typescript/helpers/utilities.d.mts +0 -11
  317. package/dist/typescript/helpers/utilities.d.mts.map +0 -1
  318. package/dist/typescript/helpers/utilities.mjs +0 -14
  319. package/dist/typescript/helpers/utilities.mjs.map +0 -1
  320. package/dist/yaml/components/index.cjs +0 -5
  321. package/dist/yaml/components/index.d.cts +0 -2
  322. package/dist/yaml/components/index.d.mts +0 -2
  323. package/dist/yaml/components/index.mjs +0 -3
  324. package/dist/yaml/components/yaml-file.cjs +0 -148
  325. package/dist/yaml/components/yaml-file.d.cts +0 -31
  326. package/dist/yaml/components/yaml-file.d.cts.map +0 -1
  327. package/dist/yaml/components/yaml-file.d.mts +0 -31
  328. package/dist/yaml/components/yaml-file.d.mts.map +0 -1
  329. package/dist/yaml/components/yaml-file.mjs +0 -147
  330. package/dist/yaml/components/yaml-file.mjs.map +0 -1
  331. package/dist/yaml/index.cjs +0 -6
  332. package/dist/yaml/index.d.cts +0 -3
  333. package/dist/yaml/index.d.mts +0 -3
  334. package/dist/yaml/index.mjs +0 -4
@@ -1,12 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_core_components_source_file = require('./source-file.cjs');
3
2
  const require_core_components_infrastructure_file = require('./infrastructure-file.cjs');
4
- const require_core_components_output = require('./output.cjs');
5
- const require_core_components_single_line_comment = require('./single-line-comment.cjs');
6
- const require_core_components_spacing = require('./spacing.cjs');
7
3
 
8
- exports.InfrastructureFile = require_core_components_infrastructure_file.InfrastructureFile;
9
- exports.Output = require_core_components_output.Output;
10
- exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
11
- exports.SourceFile = require_core_components_source_file.SourceFile;
12
- exports.Spacing = require_core_components_spacing.Spacing;
4
+ exports.InfrastructureFile = require_core_components_infrastructure_file.InfrastructureFile;
@@ -1,6 +1,2 @@
1
- import { SourceFile, SourceFileProps } from "./source-file.cjs";
2
1
  import { InfrastructureFile, InfrastructureFileProps } from "./infrastructure-file.cjs";
3
- import { Output, OutputProps } from "./output.cjs";
4
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./single-line-comment.cjs";
5
- import { Spacing, SpacingProps } from "./spacing.cjs";
6
- export { InfrastructureFile, InfrastructureFileProps, Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps };
2
+ export { InfrastructureFile, InfrastructureFileProps };
@@ -1,6 +1,2 @@
1
- import { SourceFile, SourceFileProps } from "./source-file.mjs";
2
1
  import { InfrastructureFile, InfrastructureFileProps } from "./infrastructure-file.mjs";
3
- import { Output, OutputProps } from "./output.mjs";
4
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./single-line-comment.mjs";
5
- import { Spacing, SpacingProps } from "./spacing.mjs";
6
- export { InfrastructureFile, InfrastructureFileProps, Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps };
2
+ export { InfrastructureFile, InfrastructureFileProps };
@@ -1,7 +1,3 @@
1
- import { SourceFile } from "./source-file.mjs";
2
1
  import { InfrastructureFile } from "./infrastructure-file.mjs";
3
- import { Output } from "./output.mjs";
4
- import { SingleLineComment } from "./single-line-comment.mjs";
5
- import { Spacing } from "./spacing.mjs";
6
2
 
7
- export { InfrastructureFile, Output, SingleLineComment, SourceFile, Spacing };
3
+ export { InfrastructureFile };
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
3
3
  const require_core_contexts_context = require('../contexts/context.cjs');
4
- const require_core_components_source_file = require('./source-file.cjs');
5
4
  let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
6
5
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
7
6
  let _alloy_js_core = require("@alloy-js/core");
8
7
  let _stryke_path_replace = require("@stryke/path/replace");
8
+ let _power_plant_alloy_js_core_components_source_file = require("@power-plant/alloy-js/core/components/source-file");
9
9
  let _stryke_path_append = require("@stryke/path/append");
10
10
  let defu = require("defu");
11
11
  defu = require_runtime.__toESM(defu, 1);
@@ -30,7 +30,7 @@ function InfrastructureFile(props) {
30
30
  const path = (0, _alloy_js_core.computed)(() => {
31
31
  return (0, _stryke_path_append.appendExtension)((0, _stryke_path_replace.replaceExtension)(context ? (0, _stryke_path_append.appendPath)(id, (0, _stryke_path_replace.replacePath)(context.infrastructurePath, context.config.cwd)) : id), filetype.value);
32
32
  });
33
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_core_components_source_file.SourceFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
33
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_power_plant_alloy_js_core_components_source_file.SourceFile, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
34
34
  get filetype() {
35
35
  return filetype.value;
36
36
  },
@@ -38,7 +38,10 @@ function InfrastructureFile(props) {
38
38
  return path.value;
39
39
  },
40
40
  get meta() {
41
- return (0, defu.default)({ kind: "infrastructure" }, meta ?? {});
41
+ return (0, defu.default)({
42
+ kind: "infrastructure",
43
+ id: (0, _stryke_path_replace.replaceExtension)(id)
44
+ }, meta ?? {});
42
45
  },
43
46
  children
44
47
  }));
@@ -1,4 +1,4 @@
1
- import { SourceFileProps } from "./source-file.cjs";
1
+ import { SourceFileProps } from "@power-plant/alloy-js/core/components/source-file";
2
2
  //#region src/core/components/infrastructure-file.d.ts
3
3
  type InfrastructureFileProps = Omit<SourceFileProps, "path"> & {
4
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/core/components/infrastructure-file.tsx"],"mappings":";;KA6BY,0BAA0B,KAAK;;;;EAIzC;;;;;;;EAQA;;;;;;;;iBASc,mBAAmB,OAAO,mDAAuB"}
1
+ {"version":3,"file":"infrastructure-file.d.cts","names":[],"sources":["../../../src/core/components/infrastructure-file.tsx"],"mappings":";;KAgCY,0BAA0B,KAAK;;;;EAIzC;;;;;;;EAQA;;;;;;;;iBASc,mBAAmB,OAAO,mDAAuB"}
@@ -1,4 +1,4 @@
1
- import { SourceFileProps } from "./source-file.mjs";
1
+ import { SourceFileProps } from "@power-plant/alloy-js/core/components/source-file";
2
2
  //#region src/core/components/infrastructure-file.d.ts
3
3
  type InfrastructureFileProps = Omit<SourceFileProps, "path"> & {
4
4
  /**
@@ -1,9 +1,9 @@
1
1
  import { usePowerlinesSafe } from "../contexts/context.mjs";
2
- import { SourceFile } from "./source-file.mjs";
3
2
  import { findFileExtensionSafe, hasFileExtension } from "@stryke/path/file-path-fns";
4
3
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
4
  import { computed, splitProps } from "@alloy-js/core";
6
5
  import { replaceExtension, replacePath } from "@stryke/path/replace";
6
+ import { SourceFile } from "@power-plant/alloy-js/core/components/source-file";
7
7
  import { appendExtension, appendPath } from "@stryke/path/append";
8
8
  import defu from "defu";
9
9
 
@@ -35,7 +35,10 @@ function InfrastructureFile(props) {
35
35
  return path.value;
36
36
  },
37
37
  get meta() {
38
- return defu({ kind: "infrastructure" }, meta ?? {});
38
+ return defu({
39
+ kind: "infrastructure",
40
+ id: replaceExtension(id)
41
+ }, meta ?? {});
39
42
  },
40
43
  children
41
44
  }));
@@ -1,17 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_core_contexts_context = require('./context.cjs');
3
- const require_core_contexts_meta = require('./meta.cjs');
4
- const require_core_contexts_schema = require('./schema.cjs');
5
3
 
6
- exports.MetaContext = require_core_contexts_meta.MetaContext;
7
4
  exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
8
- exports.SchemaContext = require_core_contexts_schema.SchemaContext;
9
- exports.SchemaPropertyContext = require_core_contexts_schema.SchemaPropertyContext;
10
- exports.useMeta = require_core_contexts_meta.useMeta;
11
- exports.useMetaContext = require_core_contexts_meta.useMetaContext;
12
- exports.useMetaSafe = require_core_contexts_meta.useMetaSafe;
13
5
  exports.usePowerlines = require_core_contexts_context.usePowerlines;
14
6
  exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
15
- exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
16
- exports.useSchema = require_core_contexts_schema.useSchema;
17
- exports.useSchemaProperty = require_core_contexts_schema.useSchemaProperty;
7
+ exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
@@ -1,4 +1,2 @@
1
1
  import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.cjs";
2
- import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.cjs";
3
- import { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty } from "./schema.cjs";
4
- export { MetaContext, MetaItem, PowerlinesContext, SchemaContext, SchemaPropertyContext, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useSchema, useSchemaProperty };
2
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,4 +1,2 @@
1
1
  import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
- import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./meta.mjs";
3
- import { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty } from "./schema.mjs";
4
- export { MetaContext, MetaItem, PowerlinesContext, SchemaContext, SchemaPropertyContext, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useSchema, useSchemaProperty };
2
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,5 +1,3 @@
1
1
  import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./context.mjs";
2
- import { MetaContext, useMeta, useMetaContext, useMetaSafe } from "./meta.mjs";
3
- import { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty } from "./schema.mjs";
4
2
 
5
- export { MetaContext, PowerlinesContext, SchemaContext, SchemaPropertyContext, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useSchema, useSchemaProperty };
3
+ export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,32 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_core_contexts_context = require('./contexts/context.cjs');
3
- const require_core_contexts_meta = require('./contexts/meta.cjs');
4
- const require_core_components_source_file = require('./components/source-file.cjs');
5
3
  const require_core_components_infrastructure_file = require('./components/infrastructure-file.cjs');
6
- const require_core_contexts_schema = require('./contexts/schema.cjs');
7
- require('./contexts/index.cjs');
8
- const require_core_components_output = require('./components/output.cjs');
9
- const require_core_components_single_line_comment = require('./components/single-line-comment.cjs');
10
- const require_core_components_spacing = require('./components/spacing.cjs');
11
4
  require('./components/index.cjs');
12
- const require_core_helpers_code = require('./helpers/code.cjs');
13
- require('./helpers/index.cjs');
5
+ require('./contexts/index.cjs');
14
6
 
15
7
  exports.InfrastructureFile = require_core_components_infrastructure_file.InfrastructureFile;
16
- exports.MetaContext = require_core_contexts_meta.MetaContext;
17
- exports.Output = require_core_components_output.Output;
18
8
  exports.PowerlinesContext = require_core_contexts_context.PowerlinesContext;
19
- exports.SchemaContext = require_core_contexts_schema.SchemaContext;
20
- exports.SchemaPropertyContext = require_core_contexts_schema.SchemaPropertyContext;
21
- exports.SingleLineComment = require_core_components_single_line_comment.SingleLineComment;
22
- exports.SourceFile = require_core_components_source_file.SourceFile;
23
- exports.Spacing = require_core_components_spacing.Spacing;
24
- exports.code = require_core_helpers_code.code;
25
- exports.useMeta = require_core_contexts_meta.useMeta;
26
- exports.useMetaContext = require_core_contexts_meta.useMetaContext;
27
- exports.useMetaSafe = require_core_contexts_meta.useMetaSafe;
28
9
  exports.usePowerlines = require_core_contexts_context.usePowerlines;
29
10
  exports.usePowerlinesContext = require_core_contexts_context.usePowerlinesContext;
30
- exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
31
- exports.useSchema = require_core_contexts_schema.useSchema;
32
- exports.useSchemaProperty = require_core_contexts_schema.useSchemaProperty;
11
+ exports.usePowerlinesSafe = require_core_contexts_context.usePowerlinesSafe;
@@ -1,13 +1,5 @@
1
- import { SourceFile, SourceFileProps } from "./components/source-file.cjs";
2
1
  import { InfrastructureFile, InfrastructureFileProps } from "./components/infrastructure-file.cjs";
2
+ import "./components/index.cjs";
3
3
  import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.cjs";
4
- import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.cjs";
5
- import { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty } from "./contexts/schema.cjs";
6
4
  import "./contexts/index.cjs";
7
- import { Output, OutputProps } from "./components/output.cjs";
8
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./components/single-line-comment.cjs";
9
- import { Spacing, SpacingProps } from "./components/spacing.cjs";
10
- import "./components/index.cjs";
11
- import { code } from "./helpers/code.cjs";
12
- import "./helpers/index.cjs";
13
- export { InfrastructureFile, InfrastructureFileProps, MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, SchemaContext, SchemaPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useSchema, useSchemaProperty };
5
+ export { InfrastructureFile, InfrastructureFileProps, PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,13 +1,5 @@
1
- import { SourceFile, SourceFileProps } from "./components/source-file.mjs";
2
1
  import { InfrastructureFile, InfrastructureFileProps } from "./components/infrastructure-file.mjs";
2
+ import "./components/index.mjs";
3
3
  import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
4
- import { MetaContext, MetaItem, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.mjs";
5
- import { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty } from "./contexts/schema.mjs";
6
4
  import "./contexts/index.mjs";
7
- import { Output, OutputProps } from "./components/output.mjs";
8
- import { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant } from "./components/single-line-comment.mjs";
9
- import { Spacing, SpacingProps } from "./components/spacing.mjs";
10
- import "./components/index.mjs";
11
- import { code } from "./helpers/code.mjs";
12
- import "./helpers/index.mjs";
13
- export { InfrastructureFile, InfrastructureFileProps, MetaContext, MetaItem, Output, OutputProps, PowerlinesContext, SchemaContext, SchemaPropertyContext, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, Spacing, SpacingProps, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useSchema, useSchemaProperty };
5
+ export { InfrastructureFile, InfrastructureFileProps, PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,14 +1,6 @@
1
1
  import { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe } from "./contexts/context.mjs";
2
- import { MetaContext, useMeta, useMetaContext, useMetaSafe } from "./contexts/meta.mjs";
3
- import { SourceFile } from "./components/source-file.mjs";
4
2
  import { InfrastructureFile } from "./components/infrastructure-file.mjs";
5
- import { SchemaContext, SchemaPropertyContext, useSchema, useSchemaProperty } from "./contexts/schema.mjs";
6
- import "./contexts/index.mjs";
7
- import { Output } from "./components/output.mjs";
8
- import { SingleLineComment } from "./components/single-line-comment.mjs";
9
- import { Spacing } from "./components/spacing.mjs";
10
3
  import "./components/index.mjs";
11
- import { code } from "./helpers/code.mjs";
12
- import "./helpers/index.mjs";
4
+ import "./contexts/index.mjs";
13
5
 
14
- export { InfrastructureFile, MetaContext, Output, PowerlinesContext, SchemaContext, SchemaPropertyContext, SingleLineComment, SourceFile, Spacing, code, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useSchema, useSchemaProperty };
6
+ export { InfrastructureFile, PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -2,9 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
3
  let defu = require("defu");
4
4
  defu = require_runtime.__toESM(defu, 1);
5
- let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
6
- let powerlines_utils = require("powerlines/utils");
7
- let _powerlines_schema = require("@powerlines/schema");
5
+ let _power_plant_schema = require("@power-plant/schema");
8
6
  let _stryke_capnp_compile = require("@stryke/capnp/compile");
9
7
  let _stryke_capnp_helpers = require("@stryke/capnp/helpers");
10
8
  let _stryke_convert_to_array = require("@stryke/convert/to-array");
@@ -14,11 +12,13 @@ let _stryke_path_join = require("@stryke/path/join");
14
12
  let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
15
13
  let _stryke_string_format_get_words = require("@stryke/string-format/get-words");
16
14
  let _stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
15
+ let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
17
16
  let _stryke_type_checks_is_bigint = require("@stryke/type-checks/is-bigint");
18
17
  let _stryke_type_checks_is_number = require("@stryke/type-checks/is-number");
19
18
  let _stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
20
19
  let node_child_process = require("node:child_process");
21
20
  let node_util = require("node:util");
21
+ let powerlines_utils = require("powerlines/utils");
22
22
 
23
23
  //#region src/helpers/capnp.ts
24
24
  /**
@@ -61,7 +61,7 @@ function stringifyCapnpDefaultValue(property, value) {
61
61
  * @returns A string representation of the value.
62
62
  */
63
63
  function stringifyCapnpValue(schema, value) {
64
- return (0, _powerlines_schema.isJsonSchemaString)(schema) || (0, _powerlines_schema.isJsonSchemaLiteral)(schema) && (0, _stryke_type_checks_is_string.isString)(schema.const) ? `"${String(value)}"` : (0, _powerlines_schema.isJsonSchemaEnum)(schema) || (0, _powerlines_schema.isJsonSchemaNativeEnum)(schema) ? `${(0, _stryke_string_format_camel_case.camelCase)(String(value))}` : (0, _powerlines_schema.isJsonSchemaArray)(schema) && !(0, _powerlines_schema.isJsonSchemaMap)(schema) ? _stryke_json.StormJSON.stringify(value) : (0, _powerlines_schema.isJsonSchemaObject)(schema) || (0, _powerlines_schema.isJsonSchemaRecord)(schema) ? _stryke_json.StormJSON.stringify(value).replaceAll("{", "(").replaceAll("}", ")") : String(value);
64
+ return (0, _power_plant_schema.isJsonSchemaString)(schema) || (0, _power_plant_schema.isJsonSchemaLiteral)(schema) && (0, _stryke_type_checks_is_string.isString)(schema.const) ? `"${String(value)}"` : (0, _power_plant_schema.isJsonSchemaEnum)(schema) || (0, _power_plant_schema.isJsonSchemaNativeEnum)(schema) ? `${(0, _stryke_string_format_camel_case.camelCase)(String(value))}` : (0, _power_plant_schema.isJsonSchemaArray)(schema) && !(0, _power_plant_schema.isJsonSchemaMap)(schema) ? _stryke_json.StormJSON.stringify(value) : (0, _power_plant_schema.isJsonSchemaObject)(schema) || (0, _power_plant_schema.isJsonSchemaRecord)(schema) ? _stryke_json.StormJSON.stringify(value).replaceAll("{", "(").replaceAll("}", ")") : String(value);
65
65
  }
66
66
  /**
67
67
  * Converts a ReflectionProperty's default value to a Cap'n Proto schema string representation.
@@ -84,7 +84,7 @@ function getCapnpEnumTypes(schema) {
84
84
  * @returns True if the Type is a `Void` type, false otherwise.
85
85
  */
86
86
  function isVoidType(schema) {
87
- return (0, _powerlines_schema.isJsonSchemaNever)(schema) || (0, _powerlines_schema.isJsonSchemaNull)(schema) || (0, _powerlines_schema.isJsonSchemaUndefined)(schema);
87
+ return (0, _power_plant_schema.isJsonSchemaNever)(schema) || (0, _power_plant_schema.isJsonSchemaNull)(schema) || (0, _power_plant_schema.isJsonSchemaUndefined)(schema);
88
88
  }
89
89
  /**
90
90
  * Converts a {@link TypeUnion} to an array of its underlying Cap'n Proto primitive type representation.
@@ -106,7 +106,7 @@ function getCapnpUnionTypes(schema) {
106
106
  * @returns An array of Cap'n Proto primitive types.
107
107
  */
108
108
  function isCapnpStringUnion(schema) {
109
- return getCapnpUnionTypes(schema).some((member) => (0, _powerlines_schema.isJsonSchemaString)(member) || (0, _powerlines_schema.isJsonSchemaLiteral)(member) && (0, _stryke_type_checks_is_string.isString)(member.const));
109
+ return getCapnpUnionTypes(schema).some((member) => (0, _power_plant_schema.isJsonSchemaString)(member) || (0, _power_plant_schema.isJsonSchemaLiteral)(member) && (0, _stryke_type_checks_is_string.isString)(member.const));
110
110
  }
111
111
  const LARGE_BUFFER = 1024 * 1e6;
112
112
  const execAsync = (0, node_util.promisify)(node_child_process.exec);
@@ -146,7 +146,7 @@ function formatEnumName(name) {
146
146
  return (0, _stryke_string_format_pascal_case.pascalCase)(`${name}_Type`);
147
147
  }
148
148
  function generateCapnpEnums(schema) {
149
- const enums = (0, _powerlines_schema.getPropertiesList)(schema).filter((prop) => !prop.ignore && ((0, _powerlines_schema.isJsonSchemaEnum)(prop) || (0, _powerlines_schema.isJsonSchemaNativeEnum)(prop) || ((0, _powerlines_schema.isJsonSchemaUnion)(prop) || (0, _powerlines_schema.isJsonSchemaAnyOf)(prop)) && getCapnpUnionTypes(prop).filter((t) => (0, _powerlines_schema.isJsonSchemaLiteral)(t) && ((0, _stryke_type_checks_is_string.isString)(t.const) || (0, _stryke_type_checks_is_number.isNumber)(t.const))).length === 1)).sort((a, b) => a.readOnly && b.readOnly || !a.readOnly && !b.readOnly ? b.name.localeCompare(a.name) : a.readOnly ? 1 : -1);
149
+ const enums = (0, _power_plant_schema.getPropertiesList)(schema).filter((prop) => !prop.ignore && ((0, _power_plant_schema.isJsonSchemaEnum)(prop) || (0, _power_plant_schema.isJsonSchemaNativeEnum)(prop) || ((0, _power_plant_schema.isJsonSchemaUnion)(prop) || (0, _power_plant_schema.isJsonSchemaAnyOf)(prop)) && getCapnpUnionTypes(prop).filter((t) => (0, _power_plant_schema.isJsonSchemaLiteral)(t) && ((0, _stryke_type_checks_is_string.isString)(t.const) || (0, _stryke_type_checks_is_number.isNumber)(t.const))).length === 1)).sort((a, b) => a.readOnly && b.readOnly || !a.readOnly && !b.readOnly ? b.name.localeCompare(a.name) : a.readOnly ? 1 : -1);
150
150
  if (enums.length === 0) return "";
151
151
  return `${enums.map((prop) => generateCapnpEnumSchema(prop, formatEnumName(prop.name))).join("\n\n")}
152
152
 
@@ -155,10 +155,10 @@ function generateCapnpEnums(schema) {
155
155
  function generateCapnpSchema(schema, options = {}) {
156
156
  let index = 0;
157
157
  const indexCounter = options?.indexCounter ?? (() => index++);
158
- const props = (0, _powerlines_schema.getPropertiesList)(schema);
158
+ const props = (0, _power_plant_schema.getPropertiesList)(schema);
159
159
  const filteredProps = props.filter((prop) => !prop.ignore).sort((a, b) => a.readOnly && b.readOnly || !a.readOnly && !b.readOnly ? b.name.localeCompare(a.name) : a.readOnly ? 1 : -1);
160
- const hasMap = props.some((prop) => (0, _powerlines_schema.isJsonSchemaMap)(prop));
161
- const hasDate = props.some((prop) => (0, _powerlines_schema.isJsonSchemaDate)(prop));
160
+ const hasMap = props.some((prop) => (0, _power_plant_schema.isJsonSchemaMap)(prop));
161
+ const hasDate = props.some((prop) => (0, _power_plant_schema.isJsonSchemaDate)(prop));
162
162
  return `${filteredProps.map((prop) => generateCapnpPropertySchema(prop, indexCounter)).join(" \n\n ")}${hasMap ? `
163
163
  struct Map(Key, Value) {
164
164
  entries @0 :List(Entry);
@@ -203,11 +203,11 @@ function generateCapnpPropertyComment(prop) {
203
203
  function generateCapnpPropertySchema(prop, indexCounter) {
204
204
  const propName = prop.name;
205
205
  const defaultStr = prop.default !== void 0 ? ` = ${stringifyCapnpDefaultValue(prop)}` : "";
206
- if ((0, _powerlines_schema.isJsonSchemaUnion)(prop) || (0, _powerlines_schema.isJsonSchemaAnyOf)(prop)) {
206
+ if ((0, _power_plant_schema.isJsonSchemaUnion)(prop) || (0, _power_plant_schema.isJsonSchemaAnyOf)(prop)) {
207
207
  const unionTypes = getCapnpUnionTypes(prop);
208
208
  if (unionTypes.length === 0) return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :Void;
209
209
  ${generateCapnpPropertyComment(prop)}`;
210
- else if (unionTypes.filter((t) => (0, _powerlines_schema.isJsonSchemaLiteral)(t) && ((0, _stryke_type_checks_is_string.isString)(t.const) || (0, _stryke_type_checks_is_number.isNumber)(t.const))).length === 1) return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :${formatEnumName(propName)}${defaultStr};
210
+ else if (unionTypes.filter((t) => (0, _power_plant_schema.isJsonSchemaLiteral)(t) && ((0, _stryke_type_checks_is_string.isString)(t.const) || (0, _stryke_type_checks_is_number.isNumber)(t.const))).length === 1) return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :${formatEnumName(propName)}${defaultStr};
211
211
  ${generateCapnpPropertyComment(prop)}`;
212
212
  else return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} :union {
213
213
  ${unionTypes.map((t) => {
@@ -215,37 +215,37 @@ ${unionTypes.map((t) => {
215
215
  }).join("\n")}
216
216
  }
217
217
  ${generateCapnpPropertyComment(prop)}`;
218
- } else if ((0, _powerlines_schema.isJsonSchemaMap)(prop)) {
218
+ } else if ((0, _power_plant_schema.isJsonSchemaMap)(prop)) {
219
219
  const keySchema = prop.items?.prefixItems?.[0];
220
220
  const valueSchema = prop.items?.prefixItems?.[1];
221
221
  return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :Map(${keySchema ? generateCapnpPrimitive(keySchema) : "Data"}, ${valueSchema ? generateCapnpPrimitive(valueSchema) : "Data"})${defaultStr};
222
222
  ${generateCapnpPropertyComment(prop)}`;
223
- } else if ((0, _powerlines_schema.isJsonSchemaDate)(prop)) return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :Data${defaultStr};
223
+ } else if ((0, _power_plant_schema.isJsonSchemaDate)(prop)) return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :Data${defaultStr};
224
224
  ${generateCapnpPropertyComment(prop)}`;
225
- else if ((0, _powerlines_schema.isJsonSchemaSet)(prop) || (0, _powerlines_schema.isJsonSchemaTuple)(prop)) {
225
+ else if ((0, _power_plant_schema.isJsonSchemaSet)(prop) || (0, _power_plant_schema.isJsonSchemaTuple)(prop)) {
226
226
  const itemSchema = prop.items;
227
227
  return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :List(${itemSchema ? generateCapnpPrimitive(itemSchema) : "Data"})${defaultStr};
228
228
  ${generateCapnpPropertyComment(prop)}`;
229
- } else if ((0, _powerlines_schema.isJsonSchemaArray)(prop)) {
229
+ } else if ((0, _power_plant_schema.isJsonSchemaArray)(prop)) {
230
230
  const itemSchema = prop.items;
231
231
  return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :List(${itemSchema ? generateCapnpPrimitive(itemSchema) : "Data"})${defaultStr};
232
232
  ${generateCapnpPropertyComment(prop)}`;
233
- } else if ((0, _powerlines_schema.isJsonSchemaRef)(prop)) {
233
+ } else if ((0, _power_plant_schema.isJsonSchemaRef)(prop)) {
234
234
  const refName = prop.$ref.split("/").pop() || prop.$ref;
235
235
  return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :${(0, _stryke_string_format_pascal_case.pascalCase)(refName)}${defaultStr};
236
236
  ${generateCapnpPropertyComment(prop)}`;
237
- } else if ((0, _powerlines_schema.isJsonSchemaObject)(prop) || (0, _powerlines_schema.isJsonSchemaRecord)(prop)) {
237
+ } else if ((0, _power_plant_schema.isJsonSchemaObject)(prop) || (0, _power_plant_schema.isJsonSchemaRecord)(prop)) {
238
238
  const typeName = prop.title || propName;
239
239
  return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :${(0, _stryke_string_format_pascal_case.pascalCase)(typeName)}${generateCapnpStruct(prop, { name: (0, _stryke_string_format_pascal_case.pascalCase)(typeName) })}${defaultStr};
240
240
  ${generateCapnpPropertyComment(prop)}`;
241
- } else if ((0, _powerlines_schema.isJsonSchemaEnum)(prop) || (0, _powerlines_schema.isJsonSchemaNativeEnum)(prop)) return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :${(0, _stryke_string_format_pascal_case.pascalCase)(propName)}${defaultStr};
241
+ } else if ((0, _power_plant_schema.isJsonSchemaEnum)(prop) || (0, _power_plant_schema.isJsonSchemaNativeEnum)(prop)) return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :${(0, _stryke_string_format_pascal_case.pascalCase)(propName)}${defaultStr};
242
242
  ${generateCapnpPropertyComment(prop)}`;
243
243
  return `${(0, _stryke_string_format_camel_case.camelCase)(propName)} @${indexCounter()} :${generateCapnpPrimitive(prop)}${defaultStr};
244
244
  ${generateCapnpPropertyComment(prop)}`;
245
245
  }
246
246
  function generateCapnpEnumSchema(schema, name) {
247
- if ((0, _powerlines_schema.isJsonSchemaAnyOf)(schema)) {
248
- const enumValues = (schema.anyOf || []).filter((t) => (0, _powerlines_schema.isJsonSchemaLiteral)(t) && ((0, _stryke_type_checks_is_string.isString)(t.const) || (0, _stryke_type_checks_is_number.isNumber)(t.const))).map((t) => t.const);
247
+ if ((0, _power_plant_schema.isJsonSchemaAnyOf)(schema)) {
248
+ const enumValues = (schema.anyOf || []).filter((t) => (0, _power_plant_schema.isJsonSchemaLiteral)(t) && ((0, _stryke_type_checks_is_string.isString)(t.const) || (0, _stryke_type_checks_is_number.isNumber)(t.const))).map((t) => t.const);
249
249
  return generateCapnpEnumSchema({
250
250
  type: enumValues.some((v) => (0, _stryke_type_checks_is_string.isString)(v)) ? "string" : "number",
251
251
  enum: enumValues
@@ -274,17 +274,17 @@ ${values.map((value) => ` ${enumType === "Text" && value ? (0, _stryke_string
274
274
  * @returns A string representation of the Cap'n Proto primitive type.
275
275
  */
276
276
  function generateCapnpPrimitive(schema) {
277
- if ((0, _powerlines_schema.isJsonSchemaNever)(schema) || (0, _powerlines_schema.isJsonSchemaNull)(schema) || (0, _powerlines_schema.isJsonSchemaUndefined)(schema)) return "Void";
278
- if ((0, _powerlines_schema.isJsonSchemaDate)(schema)) return "Date";
279
- if ((0, _powerlines_schema.isJsonSchemaSet)(schema)) {
277
+ if ((0, _power_plant_schema.isJsonSchemaNever)(schema) || (0, _power_plant_schema.isJsonSchemaNull)(schema) || (0, _power_plant_schema.isJsonSchemaUndefined)(schema)) return "Void";
278
+ if ((0, _power_plant_schema.isJsonSchemaDate)(schema)) return "Date";
279
+ if ((0, _power_plant_schema.isJsonSchemaSet)(schema)) {
280
280
  const itemSchema = schema.items;
281
281
  return `List(${itemSchema ? generateCapnpPrimitive(itemSchema) : "Data"})`;
282
282
  }
283
- if ((0, _powerlines_schema.isJsonSchemaBigint)(schema)) return "UInt64";
284
- if ((0, _powerlines_schema.isJsonSchemaNumber)(schema) || (0, _powerlines_schema.isJsonSchemaInteger)(schema)) return "Float64";
285
- if ((0, _powerlines_schema.isJsonSchemaString)(schema)) return "Text";
286
- if ((0, _powerlines_schema.isJsonSchemaBoolean)(schema)) return "Bool";
287
- if ((0, _powerlines_schema.isJsonSchemaLiteral)(schema)) {
283
+ if ((0, _power_plant_schema.isJsonSchemaBigint)(schema)) return "UInt64";
284
+ if ((0, _power_plant_schema.isJsonSchemaNumber)(schema) || (0, _power_plant_schema.isJsonSchemaInteger)(schema)) return "Float64";
285
+ if ((0, _power_plant_schema.isJsonSchemaString)(schema)) return "Text";
286
+ if ((0, _power_plant_schema.isJsonSchemaBoolean)(schema)) return "Bool";
287
+ if ((0, _power_plant_schema.isJsonSchemaLiteral)(schema)) {
288
288
  const constVal = schema.const;
289
289
  if ((0, _stryke_type_checks_is_number.isNumber)(constVal)) return "Float64";
290
290
  if ((0, _stryke_type_checks_is_bigint.isBigInt)(constVal)) return "UInt64";
@@ -1,5 +1,5 @@
1
1
  import { Context, PluginContext } from "powerlines";
2
- import { GetPropertyResult, JsonSchema, JsonSchemaAnyOf, JsonSchemaEnum, JsonSchemaNativeEnum, JsonSchemaObject } from "@powerlines/schema";
2
+ import { GetPropertyResult, JsonSchema, JsonSchemaAnyOf, JsonSchemaEnum, JsonSchemaNativeEnum, JsonSchemaObject } from "@power-plant/schema";
3
3
  import { CapnpcOptions, CapnpcResult } from "@stryke/capnp/types";
4
4
  //#region src/helpers/capnp.d.ts
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"capnp.d.cts","names":[],"sources":["../../src/helpers/capnp.ts"],"mappings":";;;;;;;;;;;iBA8EsB,QACpB,SAAS,SACT,UAAS,QAAQ,iBAChB,QAAQ;;;;;;;;iBA+BK,2BACd,UAAU,mBACV;;;;;;;;iBAYc,oBAAoB,QAAQ,YAAY;;;;;;;iBAmBxC,kBACd,QAAQ;;;;;;;iBAuBM,WAAW,QAAQ;;;;;;;iBAcnB,mBAAmB,QAAQ,aAAa;;;;;;;iBAoBxC,mBAAmB,QAAQ;cAS9B;KACD;KACA,eACR,SACA,MAAM;iBAIY,mBAAe;UAUpB;EACf;;iBAGoB,cACpB,SAAS,eACT,QAAQ,kBACR,SAAS,uBAAoB;UAYd,mCAAmC;EAClD;;iBAGc,oBACd,QAAQ,kBACR,UAAS;iBAYK,uBACd,QAAQ,kBACR,UAAS;iBA2DK,oBACd,QAAQ,kBACR,UAAS;iBAiLK,wBACd,QAAQ,iBAAiB,uBAAuB,iBAChD;;;;;;;;;;;;;iBA4Dc,uBAAuB,QAAQ"}
1
+ {"version":3,"file":"capnp.d.cts","names":[],"sources":["../../src/helpers/capnp.ts"],"mappings":";;;;;;;;;;;iBA8EsB,QACpB,SAAS,SACT,UAAS,QAAQ,iBAChB,QAAQ;;;;;;;;iBA+BK,2BACd,UAAU,mBACV;;;;;;;;iBAYc,oBAAoB,QAAQ,YAAY;;;;;;;iBAmBxC,kBACd,QAAQ;;;;;;;iBAuBM,WAAW,QAAQ;;;;;;;iBAcnB,mBAAmB,QAAQ,aAAa;;;;;;;iBAoBxC,mBAAmB,QAAQ;cAS9B;KACD;KACA,eACV,SAAS,MAAM;iBAIK,mBAAe;UAUpB;EACf;;iBAGoB,cACpB,SAAS,eACT,QAAQ,kBACR,SAAS,uBAAoB;UAYd,mCAAmC;EAClD;;iBAGc,oBACd,QAAQ,kBACR,UAAS;iBAYK,uBACd,QAAQ,kBACR,UAAS;iBAyDK,oBACd,QAAQ,kBACR,UAAS;iBA+KK,wBACd,QAAQ,iBAAiB,uBAAuB,iBAChD;;;;;;;;;;;;;iBA4Dc,uBAAuB,QAAQ"}
@@ -1,4 +1,4 @@
1
- import { GetPropertyResult, JsonSchema, JsonSchemaAnyOf, JsonSchemaEnum, JsonSchemaNativeEnum, JsonSchemaObject } from "@powerlines/schema";
1
+ import { GetPropertyResult, JsonSchema, JsonSchemaAnyOf, JsonSchemaEnum, JsonSchemaNativeEnum, JsonSchemaObject } from "@power-plant/schema";
2
2
  import { Context, PluginContext } from "powerlines";
3
3
  import { CapnpcOptions, CapnpcResult } from "@stryke/capnp/types";
4
4
  //#region src/helpers/capnp.d.ts
@@ -1,7 +1,5 @@
1
1
  import defu from "defu";
2
- import { titleCase } from "@stryke/string-format/title-case";
3
- import { getFileHeader } from "powerlines/utils";
4
- import { getPropertiesList, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaUndefined, isJsonSchemaUnion } from "@powerlines/schema";
2
+ import { getPropertiesList, isJsonSchemaAnyOf, isJsonSchemaArray, isJsonSchemaBigint, isJsonSchemaBoolean, isJsonSchemaDate, isJsonSchemaEnum, isJsonSchemaInteger, isJsonSchemaLiteral, isJsonSchemaMap, isJsonSchemaNativeEnum, isJsonSchemaNever, isJsonSchemaNull, isJsonSchemaNumber, isJsonSchemaObject, isJsonSchemaRecord, isJsonSchemaRef, isJsonSchemaSet, isJsonSchemaString, isJsonSchemaTuple, isJsonSchemaUndefined, isJsonSchemaUnion } from "@power-plant/schema";
5
3
  import { capnpc } from "@stryke/capnp/compile";
6
4
  import { resolveOptions } from "@stryke/capnp/helpers";
7
5
  import { toArray } from "@stryke/convert/to-array";
@@ -11,11 +9,13 @@ import { joinPaths } from "@stryke/path/join";
11
9
  import { camelCase } from "@stryke/string-format/camel-case";
12
10
  import { getWords } from "@stryke/string-format/get-words";
13
11
  import { pascalCase } from "@stryke/string-format/pascal-case";
12
+ import { titleCase } from "@stryke/string-format/title-case";
14
13
  import { isBigInt } from "@stryke/type-checks/is-bigint";
15
14
  import { isNumber } from "@stryke/type-checks/is-number";
16
15
  import { isString } from "@stryke/type-checks/is-string";
17
16
  import { exec } from "node:child_process";
18
17
  import { promisify } from "node:util";
18
+ import { getFileHeader } from "powerlines/utils";
19
19
 
20
20
  //#region src/helpers/capnp.ts
21
21
  /**
package/dist/index.cjs CHANGED
@@ -8,8 +8,15 @@ let _stryke_path_file_path_fns = require("@stryke/path/file-path-fns");
8
8
  /**
9
9
  * Alloy-js plugin for Powerlines.
10
10
  *
11
+ * @remarks
12
+ * Integrates Alloy-js via Power Plant when a `template` is provided, and
13
+ * configures Babel/tsdown for Alloy JSX builds.
14
+ *
15
+ * @see https://alloy-framework.github.io/alloy/guides/getting-started/
16
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
17
+ *
11
18
  * @param options - The Alloy-js plugin user configuration options.
12
- * @returns A Powerlines plugin that integrates Alloy-js transformations.
19
+ * @returns Powerlines plugin instances.
13
20
  */
14
21
  const plugin = (options = {}) => {
15
22
  return [(0, _powerlines_plugin_babel.default)(), {
@@ -31,7 +38,8 @@ const plugin = (options = {}) => {
31
38
  "@alloy-js/core",
32
39
  "@alloy-js/typescript",
33
40
  "@alloy-js/json",
34
- "@alloy-js/markdown"
41
+ "@alloy-js/markdown",
42
+ "@power-plant/alloy-js"
35
43
  ] }
36
44
  };
37
45
  },
package/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile } from "./types/components.cjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "./types/plugin.cjs";
1
+ import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, PowerPlantAlloyOptions } from "./types/plugin.cjs";
3
2
  import "./types/index.cjs";
4
3
  import { Plugin } from "powerlines";
5
4
  //#region src/index.d.ts
@@ -11,10 +10,17 @@ declare module "powerlines" {
11
10
  /**
12
11
  * Alloy-js plugin for Powerlines.
13
12
  *
13
+ * @remarks
14
+ * Integrates Alloy-js via Power Plant when a `template` is provided, and
15
+ * configures Babel/tsdown for Alloy JSX builds.
16
+ *
17
+ * @see https://alloy-framework.github.io/alloy/guides/getting-started/
18
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
19
+ *
14
20
  * @param options - The Alloy-js plugin user configuration options.
15
- * @returns A Powerlines plugin that integrates Alloy-js transformations.
21
+ * @returns Powerlines plugin instances.
16
22
  */
17
23
  declare const plugin: <TContext extends AlloyPluginContext = AlloyPluginContext>(options?: AlloyPluginOptions) => Plugin<TContext>[];
18
24
  //#endregion
19
- export { type AlloyPluginContext, type AlloyPluginOptions, type AlloyPluginResolvedConfig, type AlloyPluginUserConfig, type BuiltinSourceFileContext, type ComponentProps, type ComponentPropsWithChildren, type CopyFileOutputContext, type CopyOutputFile, type OutputDirectory, type OutputFile, type ReflectionOverrideInterface, type RenderBuiltinContext, type RenderContext, type RenderEntryContext, type RenderOutputContext, type SourceFileHeaderProps, type TypescriptFileImportItem, type TypescriptFileImports, type WriteOutputFile, plugin as default, plugin };
25
+ export { type AlloyPluginContext, type AlloyPluginOptions, type AlloyPluginResolvedConfig, type AlloyPluginUserConfig, type PowerPlantAlloyOptions, plugin as default, plugin };
20
26
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;YA0BY;IACR,QAAQ;;;;;;;;;cAUC,SACX,iBAAiB,qBAAqB,oBAEtC,UAAS,uBA2DJ,OAAO"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;YA0BY;IACR,QAAQ;;;;;;;;;;;;;;;;cAiBC,SACX,iBAAiB,qBAAqB,oBAEtC,UAAS,uBACR,OAAO"}
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
- import { BuiltinSourceFileContext, ComponentProps, ComponentPropsWithChildren, CopyFileOutputContext, CopyOutputFile, OutputDirectory, OutputFile, ReflectionOverrideInterface, RenderBuiltinContext, RenderContext, RenderEntryContext, RenderOutputContext, SourceFileHeaderProps, TypescriptFileImportItem, TypescriptFileImports, WriteOutputFile } from "./types/components.mjs";
2
- import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "./types/plugin.mjs";
1
+ import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig, PowerPlantAlloyOptions } from "./types/plugin.mjs";
3
2
  import "./types/index.mjs";
4
3
  import { Plugin } from "powerlines";
5
4
  //#region src/index.d.ts
@@ -11,10 +10,17 @@ declare module "powerlines" {
11
10
  /**
12
11
  * Alloy-js plugin for Powerlines.
13
12
  *
13
+ * @remarks
14
+ * Integrates Alloy-js via Power Plant when a `template` is provided, and
15
+ * configures Babel/tsdown for Alloy JSX builds.
16
+ *
17
+ * @see https://alloy-framework.github.io/alloy/guides/getting-started/
18
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
19
+ *
14
20
  * @param options - The Alloy-js plugin user configuration options.
15
- * @returns A Powerlines plugin that integrates Alloy-js transformations.
21
+ * @returns Powerlines plugin instances.
16
22
  */
17
23
  declare const plugin: <TContext extends AlloyPluginContext = AlloyPluginContext>(options?: AlloyPluginOptions) => Plugin<TContext>[];
18
24
  //#endregion
19
- export { type AlloyPluginContext, type AlloyPluginOptions, type AlloyPluginResolvedConfig, type AlloyPluginUserConfig, type BuiltinSourceFileContext, type ComponentProps, type ComponentPropsWithChildren, type CopyFileOutputContext, type CopyOutputFile, type OutputDirectory, type OutputFile, type ReflectionOverrideInterface, type RenderBuiltinContext, type RenderContext, type RenderEntryContext, type RenderOutputContext, type SourceFileHeaderProps, type TypescriptFileImportItem, type TypescriptFileImports, type WriteOutputFile, plugin as default, plugin };
25
+ export { type AlloyPluginContext, type AlloyPluginOptions, type AlloyPluginResolvedConfig, type AlloyPluginUserConfig, type PowerPlantAlloyOptions, plugin as default, plugin };
20
26
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -5,8 +5,15 @@ import { findFileExtension } from "@stryke/path/file-path-fns";
5
5
  /**
6
6
  * Alloy-js plugin for Powerlines.
7
7
  *
8
+ * @remarks
9
+ * Integrates Alloy-js via Power Plant when a `template` is provided, and
10
+ * configures Babel/tsdown for Alloy JSX builds.
11
+ *
12
+ * @see https://alloy-framework.github.io/alloy/guides/getting-started/
13
+ * @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
14
+ *
8
15
  * @param options - The Alloy-js plugin user configuration options.
9
- * @returns A Powerlines plugin that integrates Alloy-js transformations.
16
+ * @returns Powerlines plugin instances.
10
17
  */
11
18
  const plugin = (options = {}) => {
12
19
  return [babel(), {
@@ -28,7 +35,8 @@ const plugin = (options = {}) => {
28
35
  "@alloy-js/core",
29
36
  "@alloy-js/typescript",
30
37
  "@alloy-js/json",
31
- "@alloy-js/markdown"
38
+ "@alloy-js/markdown",
39
+ "@power-plant/alloy-js"
32
40
  ] }
33
41
  };
34
42
  },