@powerlines/plugin-alloy 0.26.179 → 0.26.181

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 (422) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +14 -0
  2. package/dist/_virtual/_rolldown/runtime.mjs +18 -0
  3. package/dist/core/components/infrastructure-file.cjs +8 -1
  4. package/dist/core/components/infrastructure-file.mjs +3 -1
  5. package/dist/core/components/infrastructure-file.mjs.map +1 -1
  6. package/dist/core/components/infrastructure-file.test.cjs +16 -0
  7. package/dist/core/components/infrastructure-file.test.d.cts +1 -0
  8. package/dist/core/components/infrastructure-file.test.d.mts +1 -0
  9. package/dist/core/components/infrastructure-file.test.mjs +18 -0
  10. package/dist/core/components/infrastructure-file.test.mjs.map +1 -0
  11. package/dist/core/components/output.cjs +9 -1
  12. package/dist/core/components/output.d.cts.map +1 -1
  13. package/dist/core/components/output.d.mts.map +1 -1
  14. package/dist/core/components/output.mjs +3 -1
  15. package/dist/core/components/output.mjs.map +1 -1
  16. package/dist/core/components/output.test.cjs +16 -0
  17. package/dist/core/components/output.test.d.cts +1 -0
  18. package/dist/core/components/output.test.d.mts +1 -0
  19. package/dist/core/components/output.test.mjs +18 -0
  20. package/dist/core/components/output.test.mjs.map +1 -0
  21. package/dist/core/components/single-line-comment.cjs +9 -1
  22. package/dist/core/components/single-line-comment.mjs +3 -1
  23. package/dist/core/components/single-line-comment.mjs.map +1 -1
  24. package/dist/core/components/single-line-comment.test.cjs +16 -0
  25. package/dist/core/components/single-line-comment.test.d.cts +1 -0
  26. package/dist/core/components/single-line-comment.test.d.mts +1 -0
  27. package/dist/core/components/single-line-comment.test.mjs +18 -0
  28. package/dist/core/components/single-line-comment.test.mjs.map +1 -0
  29. package/dist/core/components/source-file.cjs +8 -1
  30. package/dist/core/components/source-file.mjs +3 -1
  31. package/dist/core/components/source-file.mjs.map +1 -1
  32. package/dist/core/components/source-file.test.cjs +16 -0
  33. package/dist/core/components/source-file.test.d.cts +1 -0
  34. package/dist/core/components/source-file.test.d.mts +1 -0
  35. package/dist/core/components/source-file.test.mjs +18 -0
  36. package/dist/core/components/source-file.test.mjs.map +1 -0
  37. package/dist/core/components/spacing.cjs +9 -1
  38. package/dist/core/components/spacing.d.cts.map +1 -1
  39. package/dist/core/components/spacing.d.mts.map +1 -1
  40. package/dist/core/components/spacing.mjs +3 -1
  41. package/dist/core/components/spacing.mjs.map +1 -1
  42. package/dist/core/components/spacing.test.cjs +16 -0
  43. package/dist/core/components/spacing.test.d.cts +1 -0
  44. package/dist/core/components/spacing.test.d.mts +1 -0
  45. package/dist/core/components/spacing.test.mjs +18 -0
  46. package/dist/core/components/spacing.test.mjs.map +1 -0
  47. package/dist/core/contexts/context.cjs +13 -0
  48. package/dist/core/contexts/context.d.cts.map +1 -1
  49. package/dist/core/contexts/context.d.mts.map +1 -1
  50. package/dist/core/contexts/context.mjs +8 -1
  51. package/dist/core/contexts/context.mjs.map +1 -1
  52. package/dist/core/contexts/context.test.cjs +16 -0
  53. package/dist/core/contexts/context.test.d.cts +1 -0
  54. package/dist/core/contexts/context.test.d.mts +1 -0
  55. package/dist/core/contexts/context.test.mjs +18 -0
  56. package/dist/core/contexts/context.test.mjs.map +1 -0
  57. package/dist/core/contexts/meta.cjs +13 -0
  58. package/dist/core/contexts/meta.d.cts.map +1 -1
  59. package/dist/core/contexts/meta.d.mts.map +1 -1
  60. package/dist/core/contexts/meta.mjs +8 -1
  61. package/dist/core/contexts/meta.mjs.map +1 -1
  62. package/dist/core/contexts/meta.test.cjs +16 -0
  63. package/dist/core/contexts/meta.test.d.cts +1 -0
  64. package/dist/core/contexts/meta.test.d.mts +1 -0
  65. package/dist/core/contexts/meta.test.mjs +18 -0
  66. package/dist/core/contexts/meta.test.mjs.map +1 -0
  67. package/dist/core/contexts/schema.cjs +13 -0
  68. package/dist/core/contexts/schema.d.cts.map +1 -1
  69. package/dist/core/contexts/schema.d.mts.map +1 -1
  70. package/dist/core/contexts/schema.mjs +8 -1
  71. package/dist/core/contexts/schema.mjs.map +1 -1
  72. package/dist/core/contexts/schema.test.cjs +16 -0
  73. package/dist/core/contexts/schema.test.d.cts +1 -0
  74. package/dist/core/contexts/schema.test.d.mts +1 -0
  75. package/dist/core/contexts/schema.test.mjs +18 -0
  76. package/dist/core/contexts/schema.test.mjs.map +1 -0
  77. package/dist/core/helpers/code.cjs +9 -1
  78. package/dist/core/helpers/code.mjs +3 -1
  79. package/dist/core/helpers/code.mjs.map +1 -1
  80. package/dist/core/helpers/code.test.cjs +16 -0
  81. package/dist/core/helpers/code.test.d.cts +1 -0
  82. package/dist/core/helpers/code.test.d.mts +1 -0
  83. package/dist/core/helpers/code.test.mjs +18 -0
  84. package/dist/core/helpers/code.test.mjs.map +1 -0
  85. package/dist/hcl/components/block-declaration.cjs +9 -1
  86. package/dist/hcl/components/block-declaration.mjs +3 -1
  87. package/dist/hcl/components/block-declaration.mjs.map +1 -1
  88. package/dist/hcl/components/block-declaration.test.cjs +16 -0
  89. package/dist/hcl/components/block-declaration.test.d.cts +1 -0
  90. package/dist/hcl/components/block-declaration.test.d.mts +1 -0
  91. package/dist/hcl/components/block-declaration.test.mjs +18 -0
  92. package/dist/hcl/components/block-declaration.test.mjs.map +1 -0
  93. package/dist/hcl/components/hcl-file.cjs +12 -1
  94. package/dist/hcl/components/hcl-file.mjs +6 -1
  95. package/dist/hcl/components/hcl-file.mjs.map +1 -1
  96. package/dist/hcl/components/hcl-file.test.cjs +16 -0
  97. package/dist/hcl/components/hcl-file.test.d.cts +1 -0
  98. package/dist/hcl/components/hcl-file.test.d.mts +1 -0
  99. package/dist/hcl/components/hcl-file.test.mjs +18 -0
  100. package/dist/hcl/components/hcl-file.test.mjs.map +1 -0
  101. package/dist/hcl/components/packer-file.cjs +9 -1
  102. package/dist/hcl/components/packer-file.mjs +3 -1
  103. package/dist/hcl/components/packer-file.mjs.map +1 -1
  104. package/dist/hcl/components/packer-file.test.cjs +16 -0
  105. package/dist/hcl/components/packer-file.test.d.cts +1 -0
  106. package/dist/hcl/components/packer-file.test.d.mts +1 -0
  107. package/dist/hcl/components/packer-file.test.mjs +18 -0
  108. package/dist/hcl/components/packer-file.test.mjs.map +1 -0
  109. package/dist/hcl/components/terraform-file.cjs +9 -1
  110. package/dist/hcl/components/terraform-file.mjs +3 -1
  111. package/dist/hcl/components/terraform-file.mjs.map +1 -1
  112. package/dist/hcl/components/terraform-file.test.cjs +16 -0
  113. package/dist/hcl/components/terraform-file.test.d.cts +1 -0
  114. package/dist/hcl/components/terraform-file.test.d.mts +1 -0
  115. package/dist/hcl/components/terraform-file.test.mjs +18 -0
  116. package/dist/hcl/components/terraform-file.test.mjs.map +1 -0
  117. package/dist/helpers/capnp.cjs +24 -0
  118. package/dist/helpers/capnp.d.cts.map +1 -1
  119. package/dist/helpers/capnp.d.mts.map +1 -1
  120. package/dist/helpers/capnp.mjs +20 -1
  121. package/dist/helpers/capnp.mjs.map +1 -1
  122. package/dist/helpers/capnp.test.cjs +16 -0
  123. package/dist/helpers/capnp.test.d.cts +1 -0
  124. package/dist/helpers/capnp.test.d.mts +1 -0
  125. package/dist/helpers/capnp.test.mjs +18 -0
  126. package/dist/helpers/capnp.test.mjs.map +1 -0
  127. package/dist/helpers/create-builtin.cjs +9 -1
  128. package/dist/helpers/create-builtin.d.cts.map +1 -1
  129. package/dist/helpers/create-builtin.d.mts.map +1 -1
  130. package/dist/helpers/create-builtin.mjs +3 -1
  131. package/dist/helpers/create-builtin.mjs.map +1 -1
  132. package/dist/helpers/create-builtin.test.cjs +16 -0
  133. package/dist/helpers/create-builtin.test.d.cts +1 -0
  134. package/dist/helpers/create-builtin.test.d.mts +1 -0
  135. package/dist/helpers/create-builtin.test.mjs +18 -0
  136. package/dist/helpers/create-builtin.test.mjs.map +1 -0
  137. package/dist/helpers/refkey.cjs +1 -0
  138. package/dist/helpers/refkey.d.cts.map +1 -1
  139. package/dist/helpers/refkey.d.mts.map +1 -1
  140. package/dist/helpers/refkey.mjs +1 -0
  141. package/dist/helpers/refkey.mjs.map +1 -1
  142. package/dist/helpers/refkey.test.cjs +30 -0
  143. package/dist/helpers/refkey.test.d.cts +1 -0
  144. package/dist/helpers/refkey.test.d.mts +1 -0
  145. package/dist/helpers/refkey.test.mjs +32 -0
  146. package/dist/helpers/refkey.test.mjs.map +1 -0
  147. package/dist/helpers/typescript.cjs +9 -1
  148. package/dist/helpers/typescript.d.cts.map +1 -1
  149. package/dist/helpers/typescript.d.mts.map +1 -1
  150. package/dist/helpers/typescript.mjs +3 -1
  151. package/dist/helpers/typescript.mjs.map +1 -1
  152. package/dist/helpers/typescript.test.cjs +16 -0
  153. package/dist/helpers/typescript.test.d.cts +1 -0
  154. package/dist/helpers/typescript.test.d.mts +1 -0
  155. package/dist/helpers/typescript.test.mjs +18 -0
  156. package/dist/helpers/typescript.test.mjs.map +1 -0
  157. package/dist/markdown/components/front-matter.cjs +9 -1
  158. package/dist/markdown/components/front-matter.mjs +3 -1
  159. package/dist/markdown/components/front-matter.mjs.map +1 -1
  160. package/dist/markdown/components/front-matter.test.cjs +16 -0
  161. package/dist/markdown/components/front-matter.test.d.cts +1 -0
  162. package/dist/markdown/components/front-matter.test.d.mts +1 -0
  163. package/dist/markdown/components/front-matter.test.mjs +18 -0
  164. package/dist/markdown/components/front-matter.test.mjs.map +1 -0
  165. package/dist/markdown/components/heading.cjs +9 -1
  166. package/dist/markdown/components/heading.mjs +3 -1
  167. package/dist/markdown/components/heading.mjs.map +1 -1
  168. package/dist/markdown/components/heading.test.cjs +16 -0
  169. package/dist/markdown/components/heading.test.d.cts +1 -0
  170. package/dist/markdown/components/heading.test.d.mts +1 -0
  171. package/dist/markdown/components/heading.test.mjs +18 -0
  172. package/dist/markdown/components/heading.test.mjs.map +1 -0
  173. package/dist/markdown/components/markdown-file.cjs +12 -1
  174. package/dist/markdown/components/markdown-file.mjs +6 -1
  175. package/dist/markdown/components/markdown-file.mjs.map +1 -1
  176. package/dist/markdown/components/markdown-file.test.cjs +16 -0
  177. package/dist/markdown/components/markdown-file.test.d.cts +1 -0
  178. package/dist/markdown/components/markdown-file.test.d.mts +1 -0
  179. package/dist/markdown/components/markdown-file.test.mjs +18 -0
  180. package/dist/markdown/components/markdown-file.test.mjs.map +1 -0
  181. package/dist/markdown/components/markdown-table.cjs +13 -1
  182. package/dist/markdown/components/markdown-table.d.cts.map +1 -1
  183. package/dist/markdown/components/markdown-table.d.mts.map +1 -1
  184. package/dist/markdown/components/markdown-table.mjs +7 -1
  185. package/dist/markdown/components/markdown-table.mjs.map +1 -1
  186. package/dist/markdown/components/markdown-table.test.cjs +16 -0
  187. package/dist/markdown/components/markdown-table.test.d.cts +1 -0
  188. package/dist/markdown/components/markdown-table.test.d.mts +1 -0
  189. package/dist/markdown/components/markdown-table.test.mjs +18 -0
  190. package/dist/markdown/components/markdown-table.test.mjs.map +1 -0
  191. package/dist/markdown/contexts/markdown-table.cjs +13 -0
  192. package/dist/markdown/contexts/markdown-table.d.cts.map +1 -1
  193. package/dist/markdown/contexts/markdown-table.d.mts.map +1 -1
  194. package/dist/markdown/contexts/markdown-table.mjs +8 -1
  195. package/dist/markdown/contexts/markdown-table.mjs.map +1 -1
  196. package/dist/markdown/contexts/markdown-table.test.cjs +16 -0
  197. package/dist/markdown/contexts/markdown-table.test.d.cts +1 -0
  198. package/dist/markdown/contexts/markdown-table.test.d.mts +1 -0
  199. package/dist/markdown/contexts/markdown-table.test.mjs +18 -0
  200. package/dist/markdown/contexts/markdown-table.test.mjs.map +1 -0
  201. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.cjs +78 -0
  202. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +78 -0
  203. package/dist/node_modules/.pnpm/@jridgewell_sourcemap-codec@1.5.5/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
  204. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.cjs +1487 -0
  205. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs +1473 -0
  206. package/dist/node_modules/.pnpm/@vitest_expect@4.1.7/node_modules/@vitest/expect/dist/index.mjs.map +1 -0
  207. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.cjs +889 -0
  208. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs +888 -0
  209. package/dist/node_modules/.pnpm/@vitest_pretty-format@4.1.7/node_modules/@vitest/pretty-format/dist/index.mjs.map +1 -0
  210. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs +1614 -0
  211. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs +1594 -0
  212. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs.map +1 -0
  213. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.cjs +1 -0
  214. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/index.mjs +3 -0
  215. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.cjs +1 -0
  216. package/dist/node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/utils.mjs +3 -0
  217. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.cjs +923 -0
  218. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs +922 -0
  219. package/dist/node_modules/.pnpm/@vitest_snapshot@4.1.7/node_modules/@vitest/snapshot/dist/index.mjs.map +1 -0
  220. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.cjs +391 -0
  221. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs +386 -0
  222. package/dist/node_modules/.pnpm/@vitest_spy@4.1.7/node_modules/@vitest/spy/dist/index.mjs.map +1 -0
  223. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.cjs +82 -0
  224. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs +82 -0
  225. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.mjs.map +1 -0
  226. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.cjs +1358 -0
  227. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs +1357 -0
  228. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/diff.mjs.map +1 -0
  229. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.cjs +561 -0
  230. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs +559 -0
  231. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/display.mjs.map +1 -0
  232. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.cjs +37 -0
  233. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs +38 -0
  234. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/error.mjs.map +1 -0
  235. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.cjs +197 -0
  236. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs +181 -0
  237. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/helpers.mjs.map +1 -0
  238. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.cjs +29 -0
  239. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs +27 -0
  240. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/offset.mjs.map +1 -0
  241. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.cjs +77 -0
  242. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs +77 -0
  243. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/serialize.mjs.map +1 -0
  244. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.cjs +374 -0
  245. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs +374 -0
  246. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/source-map.mjs.map +1 -0
  247. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.cjs +38 -0
  248. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs +37 -0
  249. package/dist/node_modules/.pnpm/@vitest_utils@4.1.7/node_modules/@vitest/utils/dist/timers.mjs.map +1 -0
  250. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.cjs +2978 -0
  251. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs +2973 -0
  252. package/dist/node_modules/.pnpm/chai@6.2.2/node_modules/chai/index.mjs.map +1 -0
  253. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.cjs +939 -0
  254. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs +940 -0
  255. package/dist/node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.mjs.map +1 -0
  256. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.cjs +87 -0
  257. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs +87 -0
  258. package/dist/node_modules/.pnpm/tinyrainbow@3.1.0/node_modules/tinyrainbow/dist/index.mjs.map +1 -0
  259. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.cjs +6 -0
  260. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs +6 -0
  261. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.mjs.map +1 -0
  262. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.cjs +54 -0
  263. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs +52 -0
  264. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/rpc.MzXet3jl.mjs.map +1 -0
  265. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs +2696 -0
  266. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs +2697 -0
  267. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs.map +1 -0
  268. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.cjs +47 -0
  269. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs +45 -0
  270. package/dist/node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/utils.BX5Fg8C4.mjs.map +1 -0
  271. package/dist/render.d.cts.map +1 -1
  272. package/dist/render.d.mts.map +1 -1
  273. package/dist/render.mjs.map +1 -1
  274. package/dist/typescript/components/builtin-file.cjs +9 -1
  275. package/dist/typescript/components/builtin-file.mjs +3 -1
  276. package/dist/typescript/components/builtin-file.mjs.map +1 -1
  277. package/dist/typescript/components/builtin-file.test.cjs +16 -0
  278. package/dist/typescript/components/builtin-file.test.d.cts +1 -0
  279. package/dist/typescript/components/builtin-file.test.d.mts +1 -0
  280. package/dist/typescript/components/builtin-file.test.mjs +18 -0
  281. package/dist/typescript/components/builtin-file.test.mjs.map +1 -0
  282. package/dist/typescript/components/class-declaration.cjs +16 -1
  283. package/dist/typescript/components/class-declaration.mjs +10 -1
  284. package/dist/typescript/components/class-declaration.mjs.map +1 -1
  285. package/dist/typescript/components/class-declaration.test.cjs +16 -0
  286. package/dist/typescript/components/class-declaration.test.d.cts +1 -0
  287. package/dist/typescript/components/class-declaration.test.d.mts +1 -0
  288. package/dist/typescript/components/class-declaration.test.mjs +18 -0
  289. package/dist/typescript/components/class-declaration.test.mjs.map +1 -0
  290. package/dist/typescript/components/dynamic-import-statement.cjs +9 -1
  291. package/dist/typescript/components/dynamic-import-statement.mjs +3 -1
  292. package/dist/typescript/components/dynamic-import-statement.mjs.map +1 -1
  293. package/dist/typescript/components/dynamic-import-statement.test.cjs +16 -0
  294. package/dist/typescript/components/dynamic-import-statement.test.d.cts +1 -0
  295. package/dist/typescript/components/dynamic-import-statement.test.d.mts +1 -0
  296. package/dist/typescript/components/dynamic-import-statement.test.mjs +18 -0
  297. package/dist/typescript/components/dynamic-import-statement.test.mjs.map +1 -0
  298. package/dist/typescript/components/entry-file.cjs +8 -1
  299. package/dist/typescript/components/entry-file.mjs +3 -1
  300. package/dist/typescript/components/entry-file.mjs.map +1 -1
  301. package/dist/typescript/components/entry-file.test.cjs +16 -0
  302. package/dist/typescript/components/entry-file.test.d.cts +1 -0
  303. package/dist/typescript/components/entry-file.test.d.mts +1 -0
  304. package/dist/typescript/components/entry-file.test.mjs +18 -0
  305. package/dist/typescript/components/entry-file.test.mjs.map +1 -0
  306. package/dist/typescript/components/interface-declaration.cjs +14 -1
  307. package/dist/typescript/components/interface-declaration.mjs +8 -1
  308. package/dist/typescript/components/interface-declaration.mjs.map +1 -1
  309. package/dist/typescript/components/interface-declaration.test.cjs +16 -0
  310. package/dist/typescript/components/interface-declaration.test.d.cts +1 -0
  311. package/dist/typescript/components/interface-declaration.test.d.mts +1 -0
  312. package/dist/typescript/components/interface-declaration.test.mjs +18 -0
  313. package/dist/typescript/components/interface-declaration.test.mjs.map +1 -0
  314. package/dist/typescript/components/object-declaration.cjs +12 -1
  315. package/dist/typescript/components/object-declaration.mjs +6 -1
  316. package/dist/typescript/components/object-declaration.mjs.map +1 -1
  317. package/dist/typescript/components/object-declaration.test.cjs +16 -0
  318. package/dist/typescript/components/object-declaration.test.d.cts +1 -0
  319. package/dist/typescript/components/object-declaration.test.d.mts +1 -0
  320. package/dist/typescript/components/object-declaration.test.mjs +18 -0
  321. package/dist/typescript/components/object-declaration.test.mjs.map +1 -0
  322. package/dist/typescript/components/property-name.cjs +9 -1
  323. package/dist/typescript/components/property-name.mjs +3 -1
  324. package/dist/typescript/components/property-name.mjs.map +1 -1
  325. package/dist/typescript/components/property-name.test.cjs +16 -0
  326. package/dist/typescript/components/property-name.test.d.cts +1 -0
  327. package/dist/typescript/components/property-name.test.d.mts +1 -0
  328. package/dist/typescript/components/property-name.test.mjs +18 -0
  329. package/dist/typescript/components/property-name.test.mjs.map +1 -0
  330. package/dist/typescript/components/record-expression.cjs +9 -1
  331. package/dist/typescript/components/record-expression.d.cts.map +1 -1
  332. package/dist/typescript/components/record-expression.d.mts.map +1 -1
  333. package/dist/typescript/components/record-expression.mjs +3 -1
  334. package/dist/typescript/components/record-expression.mjs.map +1 -1
  335. package/dist/typescript/components/record-expression.test.cjs +16 -0
  336. package/dist/typescript/components/record-expression.test.d.cts +1 -0
  337. package/dist/typescript/components/record-expression.test.d.mts +1 -0
  338. package/dist/typescript/components/record-expression.test.mjs +18 -0
  339. package/dist/typescript/components/record-expression.test.mjs.map +1 -0
  340. package/dist/typescript/components/tsdoc-schema.cjs +12 -1
  341. package/dist/typescript/components/tsdoc-schema.mjs +6 -1
  342. package/dist/typescript/components/tsdoc-schema.mjs.map +1 -1
  343. package/dist/typescript/components/tsdoc-schema.test.cjs +16 -0
  344. package/dist/typescript/components/tsdoc-schema.test.d.cts +1 -0
  345. package/dist/typescript/components/tsdoc-schema.test.d.mts +1 -0
  346. package/dist/typescript/components/tsdoc-schema.test.mjs +18 -0
  347. package/dist/typescript/components/tsdoc-schema.test.mjs.map +1 -0
  348. package/dist/typescript/components/tsdoc.cjs +32 -1
  349. package/dist/typescript/components/tsdoc.d.cts.map +1 -1
  350. package/dist/typescript/components/tsdoc.d.mts.map +1 -1
  351. package/dist/typescript/components/tsdoc.mjs +26 -1
  352. package/dist/typescript/components/tsdoc.mjs.map +1 -1
  353. package/dist/typescript/components/tsdoc.test.cjs +16 -0
  354. package/dist/typescript/components/tsdoc.test.d.cts +1 -0
  355. package/dist/typescript/components/tsdoc.test.d.mts +1 -0
  356. package/dist/typescript/components/tsdoc.test.mjs +18 -0
  357. package/dist/typescript/components/tsdoc.test.mjs.map +1 -0
  358. package/dist/typescript/components/type-declaration.cjs +9 -1
  359. package/dist/typescript/components/type-declaration.mjs +3 -1
  360. package/dist/typescript/components/type-declaration.mjs.map +1 -1
  361. package/dist/typescript/components/type-declaration.test.cjs +16 -0
  362. package/dist/typescript/components/type-declaration.test.d.cts +1 -0
  363. package/dist/typescript/components/type-declaration.test.d.mts +1 -0
  364. package/dist/typescript/components/type-declaration.test.mjs +18 -0
  365. package/dist/typescript/components/type-declaration.test.mjs.map +1 -0
  366. package/dist/typescript/components/type-parameters.cjs +9 -1
  367. package/dist/typescript/components/type-parameters.mjs +3 -1
  368. package/dist/typescript/components/type-parameters.mjs.map +1 -1
  369. package/dist/typescript/components/type-parameters.test.cjs +16 -0
  370. package/dist/typescript/components/type-parameters.test.d.cts +1 -0
  371. package/dist/typescript/components/type-parameters.test.d.mts +1 -0
  372. package/dist/typescript/components/type-parameters.test.mjs +18 -0
  373. package/dist/typescript/components/type-parameters.test.mjs.map +1 -0
  374. package/dist/typescript/components/typescript-file.cjs +13 -1
  375. package/dist/typescript/components/typescript-file.mjs +7 -1
  376. package/dist/typescript/components/typescript-file.mjs.map +1 -1
  377. package/dist/typescript/components/typescript-file.test.cjs +16 -0
  378. package/dist/typescript/components/typescript-file.test.d.cts +1 -0
  379. package/dist/typescript/components/typescript-file.test.d.mts +1 -0
  380. package/dist/typescript/components/typescript-file.test.mjs +18 -0
  381. package/dist/typescript/components/typescript-file.test.mjs.map +1 -0
  382. package/dist/typescript/contexts/lexical-scope.cjs +9 -1
  383. package/dist/typescript/contexts/lexical-scope.mjs +3 -1
  384. package/dist/typescript/contexts/lexical-scope.mjs.map +1 -1
  385. package/dist/typescript/contexts/lexical-scope.test.cjs +16 -0
  386. package/dist/typescript/contexts/lexical-scope.test.d.cts +1 -0
  387. package/dist/typescript/contexts/lexical-scope.test.d.mts +1 -0
  388. package/dist/typescript/contexts/lexical-scope.test.mjs +18 -0
  389. package/dist/typescript/contexts/lexical-scope.test.mjs.map +1 -0
  390. package/dist/typescript/contexts/member-scope.cjs +9 -1
  391. package/dist/typescript/contexts/member-scope.mjs +3 -1
  392. package/dist/typescript/contexts/member-scope.mjs.map +1 -1
  393. package/dist/typescript/contexts/member-scope.test.cjs +16 -0
  394. package/dist/typescript/contexts/member-scope.test.d.cts +1 -0
  395. package/dist/typescript/contexts/member-scope.test.d.mts +1 -0
  396. package/dist/typescript/contexts/member-scope.test.mjs +18 -0
  397. package/dist/typescript/contexts/member-scope.test.mjs.map +1 -0
  398. package/dist/typescript/helpers/get-call-signature-props.cjs +9 -1
  399. package/dist/typescript/helpers/get-call-signature-props.mjs +3 -1
  400. package/dist/typescript/helpers/get-call-signature-props.mjs.map +1 -1
  401. package/dist/typescript/helpers/get-call-signature-props.test.cjs +16 -0
  402. package/dist/typescript/helpers/get-call-signature-props.test.d.cts +1 -0
  403. package/dist/typescript/helpers/get-call-signature-props.test.d.mts +1 -0
  404. package/dist/typescript/helpers/get-call-signature-props.test.mjs +18 -0
  405. package/dist/typescript/helpers/get-call-signature-props.test.mjs.map +1 -0
  406. package/dist/typescript/helpers/utilities.cjs +9 -1
  407. package/dist/typescript/helpers/utilities.mjs +4 -1
  408. package/dist/typescript/helpers/utilities.mjs.map +1 -1
  409. package/dist/typescript/helpers/utilities.test.cjs +16 -0
  410. package/dist/typescript/helpers/utilities.test.d.cts +1 -0
  411. package/dist/typescript/helpers/utilities.test.d.mts +1 -0
  412. package/dist/typescript/helpers/utilities.test.mjs +18 -0
  413. package/dist/typescript/helpers/utilities.test.mjs.map +1 -0
  414. package/dist/yaml/components/yaml-file.cjs +12 -1
  415. package/dist/yaml/components/yaml-file.mjs +6 -1
  416. package/dist/yaml/components/yaml-file.mjs.map +1 -1
  417. package/dist/yaml/components/yaml-file.test.cjs +16 -0
  418. package/dist/yaml/components/yaml-file.test.d.cts +1 -0
  419. package/dist/yaml/components/yaml-file.test.d.mts +1 -0
  420. package/dist/yaml/components/yaml-file.test.mjs +18 -0
  421. package/dist/yaml/components/yaml-file.test.mjs.map +1 -0
  422. package/package.json +590 -17
@@ -1,4 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
3
  const require_core_contexts_context = require('../../core/contexts/context.cjs');
3
4
  const require_core_components_infrastructure_file = require('../../core/components/infrastructure-file.cjs');
4
5
  const require_core_components_single_line_comment = require('../../core/components/single-line-comment.cjs');
@@ -9,6 +10,10 @@ let _stryke_string_format_title_case = require("@stryke/string-format/title-case
9
10
  let powerlines_utils = require("powerlines/utils");
10
11
 
11
12
  //#region src/hcl/components/hcl-file.tsx
13
+ var hcl_file_exports = /* @__PURE__ */ require_runtime.__exportAll({
14
+ HCLFile: () => HCLFile,
15
+ HCLFileHeader: () => HCLFileHeader
16
+ });
12
17
  /**
13
18
  * A base component representing a Powerlines generated HCL source file.
14
19
  *
@@ -79,4 +84,10 @@ function HCLFileHeader(props) {
79
84
 
80
85
  //#endregion
81
86
  exports.HCLFile = HCLFile;
82
- exports.HCLFileHeader = HCLFileHeader;
87
+ exports.HCLFileHeader = HCLFileHeader;
88
+ Object.defineProperty(exports, 'hcl_file_exports', {
89
+ enumerable: true,
90
+ get: function () {
91
+ return hcl_file_exports;
92
+ }
93
+ });
@@ -1,3 +1,4 @@
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
1
2
  import { usePowerlines } from "../../core/contexts/context.mjs";
2
3
  import { InfrastructureFile } from "../../core/components/infrastructure-file.mjs";
3
4
  import { SingleLineComment } from "../../core/components/single-line-comment.mjs";
@@ -8,6 +9,10 @@ import { titleCase } from "@stryke/string-format/title-case";
8
9
  import { getFileHeaderWarning } from "powerlines/utils";
9
10
 
10
11
  //#region src/hcl/components/hcl-file.tsx
12
+ var hcl_file_exports = /* @__PURE__ */ __exportAll({
13
+ HCLFile: () => HCLFile,
14
+ HCLFileHeader: () => HCLFileHeader
15
+ });
11
16
  /**
12
17
  * A base component representing a Powerlines generated HCL source file.
13
18
  *
@@ -77,5 +82,5 @@ function HCLFileHeader(props) {
77
82
  }
78
83
 
79
84
  //#endregion
80
- export { HCLFile, HCLFileHeader };
85
+ export { HCLFile, HCLFileHeader, hcl_file_exports };
81
86
  //# sourceMappingURL=hcl-file.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"hcl-file.mjs","names":[],"sources":["../../../src/hcl/components/hcl-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Children, computed, Show, splitProps } from \"@alloy-js/core\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { getFileHeaderWarning } from \"powerlines/utils\";\nimport {\n InfrastructureFile,\n InfrastructureFileProps\n} from \"../../core/components/infrastructure-file\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { usePowerlines } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type HCLFileProps = Omit<\n InfrastructureFileProps,\n \"header\" | \"filetype\"\n> &\n ComponentProps & {\n header?: Children;\n filetype?: \"hcl\" | \"tf\" | `${string}.hcl` | `${string}.tf`;\n };\n\n/**\n * A base component representing a Powerlines generated HCL source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function HCLFile(props: HCLFileProps) {\n const [{ children, storage, header, filetype: _filetype, id }, rest] =\n splitProps(props, [\"children\", \"storage\", \"header\", \"filetype\", \"id\"]);\n\n const filetype = computed(() => _filetype || findFileExtension(id) || \"hcl\");\n\n return (\n <InfrastructureFile\n header={<HCLFileHeader>{header}</HCLFileHeader>}\n {...rest}\n id={id}\n filetype={filetype.value}\n storage={storage || \"fs\"}>\n <Show when={Boolean(children)}>{children}</Show>\n </InfrastructureFile>\n );\n}\n\n/**\n * Renders the header for a Powerlines HCL source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function HCLFileHeader(props: ComponentProps) {\n const [{ children }] = splitProps(props, [\"children\"]);\n\n const context = usePowerlines();\n\n return (\n <>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment variant=\"hcl\">{`Generated by ${\n titleCase(context?.config?.framework?.name) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment variant=\"hcl\">\n {getFileHeaderWarning(context)}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAiCA,SAAE,QAAA,OAAA;CACA,MAAA,CAAA,EACE,UACA,SACD,6BAED,MACG,QAAK,WAAU,OAAA;EAAY;EAAG;EAAoB;EAAK;EAAW;CAAA,CAAA;CACtE,MAAA,WAAA,eAAA,aAAA,kBAAA,EAAA,KAAA,KAAA;CACC,OAAO,gBAAa,oBAAyB,WAAK,EAChD,IAAA,SAAY;EACd,OAAA,gBAAA,eAAA,EACK,UAAS,OACd,CAAK;CACH;EAEI;;GAEN,OAAO,SAAA;EACL;EACA,SAAS,WAAE;EACX,IAAI,WAAM;GACR,OAAM,gBAAA,MAAA;IACN,IAAA,OAAU;KACV,OAAS,QAAU,QAAM;IACxB;IACD;GACH,CAAA;EACH;;AAEA;;;;;;;;CASE,MAAM,CAAA,gBAEN,WAAO,OAAA,CAAA,UAAA,CAAA;CACP,MAAG,UAAA,cAAA;CACH,OAAK;EAAA,gBAAmB,MAAQ;GAC9B,IAAI,OAAC;IACH,OAAK,QAAQ,QAAA;GACf;GACA,IAAI,WAAE;IACJ,OAAM,CAAA,UAAA,gBAAA,OAAA,CAAA,CAAA,CAAA;GACR;EACF,CAAC;EAAG,gBAAY,mBAAiB;GAC/B,SAAO;GACP,IAAG,WAAK;IACN,OAAC,gBAAkB,UAAa,SAAA,QAAA,WAAA,IAAA,KAAA;GAClC;EACF,CAAC;EAAG,gBAAE,OAAiB,CAAA,CAAA;EAAA,gBAAA,mBAAA;GACrB,SAAQ;GACR,IAAE,WAAA;IACH,OAAA,qBAAA,OAAA;GACH"}
1
+ {"version":3,"file":"hcl-file.mjs","names":[],"sources":["../../../src/hcl/components/hcl-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Children, computed, Show, splitProps } from \"@alloy-js/core\";\nimport { findFileExtension } from \"@stryke/path/file-path-fns\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { getFileHeaderWarning } from \"powerlines/utils\";\nimport {\n InfrastructureFile,\n InfrastructureFileProps\n} from \"../../core/components/infrastructure-file\";\nimport { SingleLineComment } from \"../../core/components/single-line-comment\";\nimport { usePowerlines } from \"../../core/contexts/context\";\nimport { ComponentProps } from \"../../types/components\";\n\nexport type HCLFileProps = Omit<\n InfrastructureFileProps,\n \"header\" | \"filetype\"\n> &\n ComponentProps & {\n header?: Children;\n filetype?: \"hcl\" | \"tf\" | `${string}.hcl` | `${string}.tf`;\n };\n\n/**\n * A base component representing a Powerlines generated HCL source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function HCLFile(props: HCLFileProps) {\n const [{ children, storage, header, filetype: _filetype, id }, rest] =\n splitProps(props, [\"children\", \"storage\", \"header\", \"filetype\", \"id\"]);\n\n const filetype = computed(() => _filetype || findFileExtension(id) || \"hcl\");\n\n return (\n <InfrastructureFile\n header={<HCLFileHeader>{header}</HCLFileHeader>}\n {...rest}\n id={id}\n filetype={filetype.value}\n storage={storage || \"fs\"}>\n <Show when={Boolean(children)}>{children}</Show>\n </InfrastructureFile>\n );\n}\n\n/**\n * Renders the header for a Powerlines HCL source file.\n *\n * @param props - The properties for the source file header.\n * @returns The rendered source file header.\n */\nexport function HCLFileHeader(props: ComponentProps) {\n const [{ children }] = splitProps(props, [\"children\"]);\n\n const context = usePowerlines();\n\n return (\n <>\n <Show when={Boolean(children)}>\n <>\n {children}\n <hbr />\n </>\n </Show>\n <SingleLineComment variant=\"hcl\">{`Generated by ${\n titleCase(context?.config?.framework?.name) || \"Powerlines\"\n }`}</SingleLineComment>\n <hbr />\n <SingleLineComment variant=\"hcl\">\n {getFileHeaderWarning(context)}\n </SingleLineComment>\n <hbr />\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAiCA,SAAE,QAAA,OAAA;CACA,MAAA,CAAA,EACE,UACA,SACD,6BAED,MACG,QAAK,WAAU,OAAA;EAAY;EAAG;EAAoB;EAAK;EAAW;CAAA,CAAA;CACtE,MAAA,WAAA,eAAA,aAAA,kBAAA,EAAA,KAAA,KAAA;CACC,OAAO,gBAAa,oBAAyB,WAAK,EAChD,IAAA,SAAY;EACd,OAAA,gBAAA,eAAA,EACK,UAAS,OACd,CAAK;CACH;EAEI;;GAEN,OAAO,SAAA;EACL;EACA,SAAS,WAAE;EACX,IAAI,WAAM;GACR,OAAM,gBAAA,MAAA;IACN,IAAA,OAAU;KACV,OAAS,QAAU,QAAM;IACxB;IACD;GACH,CAAA;EACH;;AAEA;;;;;;;;CASE,MAAM,CAAA,gBAEN,WAAO,OAAA,CAAA,UAAA,CAAA;CACP,MAAG,UAAA,cAAA;CACH,OAAK;EAAA,gBAAmB,MAAQ;GAC9B,IAAI,OAAC;IACH,OAAK,QAAQ,QAAA;GACf;GACA,IAAI,WAAE;IACJ,OAAM,CAAA,UAAA,gBAAA,OAAA,CAAA,CAAA,CAAA;GACR;EACF,CAAC;EAAG,gBAAY,mBAAiB;GAC/B,SAAO;GACP,IAAG,WAAK;IACN,OAAC,gBAAkB,UAAa,SAAA,QAAA,WAAA,IAAA,KAAA;GAClC;EACF,CAAC;EAAG,gBAAE,OAAiB,CAAA,CAAA;EAAA,gBAAA,mBAAA;GACrB,SAAQ;GACR,IAAE,WAAA;IACH,OAAA,qBAAA,OAAA;GACH"}
@@ -0,0 +1,16 @@
1
+ const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
2
+ const require_test_DNmyFkvJ = require('../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
3
+ const require_hcl_components_hcl_file = require('./hcl-file.cjs');
4
+
5
+ //#region src/hcl/components/hcl-file.test.ts
6
+ require_chunk_artifact.describe("plugins/plugin-alloy/src/hcl/components/hcl-file.tsx", () => {
7
+ require_chunk_artifact.it("loads module exports", () => {
8
+ require_test_DNmyFkvJ.globalExpect(require_hcl_components_hcl_file.hcl_file_exports).toBeDefined();
9
+ require_test_DNmyFkvJ.globalExpect(typeof require_hcl_components_hcl_file.hcl_file_exports).toBe("object");
10
+ });
11
+ require_chunk_artifact.it("has at least one runtime export", () => {
12
+ require_test_DNmyFkvJ.globalExpect(Object.keys(require_hcl_components_hcl_file.hcl_file_exports).length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+
16
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,18 @@
1
+ import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
2
+ import { globalExpect } from "../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
3
+ import { hcl_file_exports } from "./hcl-file.mjs";
4
+
5
+ //#region src/hcl/components/hcl-file.test.ts
6
+ describe("plugins/plugin-alloy/src/hcl/components/hcl-file.tsx", () => {
7
+ it("loads module exports", () => {
8
+ globalExpect(hcl_file_exports).toBeDefined();
9
+ globalExpect(typeof hcl_file_exports).toBe("object");
10
+ });
11
+ it("has at least one runtime export", () => {
12
+ globalExpect(Object.keys(hcl_file_exports).length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+
16
+ //#endregion
17
+ export { };
18
+ //# sourceMappingURL=hcl-file.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hcl-file.test.mjs","names":[],"sources":["../../../src/hcl/components/hcl-file.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./hcl-file\";\n\ndescribe(\"plugins/plugin-alloy/src/hcl/components/hcl-file.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,gBAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,gBAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
@@ -1,9 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
3
  const require_hcl_components_hcl_file = require('./hcl-file.cjs');
3
4
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
5
  let _alloy_js_core = require("@alloy-js/core");
5
6
 
6
7
  //#region src/hcl/components/packer-file.tsx
8
+ var packer_file_exports = /* @__PURE__ */ require_runtime.__exportAll({ PackerFile: () => PackerFile });
7
9
  /**
8
10
  * A base component representing a Powerlines generated [Packer](https://developer.hashicorp.com/packer/docs/templates/hcl_templates) source file.
9
11
  *
@@ -25,4 +27,10 @@ function PackerFile(props) {
25
27
  }
26
28
 
27
29
  //#endregion
28
- exports.PackerFile = PackerFile;
30
+ exports.PackerFile = PackerFile;
31
+ Object.defineProperty(exports, 'packer_file_exports', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return packer_file_exports;
35
+ }
36
+ });
@@ -1,8 +1,10 @@
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
1
2
  import { HCLFile } from "./hcl-file.mjs";
2
3
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
3
4
  import { Show, splitProps } from "@alloy-js/core";
4
5
 
5
6
  //#region src/hcl/components/packer-file.tsx
7
+ var packer_file_exports = /* @__PURE__ */ __exportAll({ PackerFile: () => PackerFile });
6
8
  /**
7
9
  * A base component representing a Powerlines generated [Packer](https://developer.hashicorp.com/packer/docs/templates/hcl_templates) source file.
8
10
  *
@@ -24,5 +26,5 @@ function PackerFile(props) {
24
26
  }
25
27
 
26
28
  //#endregion
27
- export { PackerFile };
29
+ export { PackerFile, packer_file_exports };
28
30
  //# sourceMappingURL=packer-file.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"packer-file.mjs","names":[],"sources":["../../../src/hcl/components/packer-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Show, splitProps } from \"@alloy-js/core\";\nimport { PartialKeys } from \"@stryke/types/base\";\nimport { HCLFile, HCLFileProps } from \"./hcl-file\";\n\nexport type PackerFileProps = PartialKeys<HCLFileProps, \"filetype\">;\n\n/**\n * A base component representing a Powerlines generated [Packer](https://developer.hashicorp.com/packer/docs/templates/hcl_templates) source file.\n *\n * @see https://developer.hashicorp.com/packer\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function PackerFile(props: PackerFileProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <HCLFile filetype=\"pkr.hcl\" {...rest}>\n <Show when={Boolean(children)}>{children}</Show>\n </HCLFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA8BA,SAAgB,WAAS,OAAO;CAC9B,MAAA,CAAA,EACF,YACE,QAAS,WAAY,OAAQ,CAAA,UAAW,CAAA;8CAExC,UAAO,UACP,GAAG,MAAA,EACD,IAAG,WAAW;EACZ,OAAO,gBAAA,MAAA;GACV,IAAA,OAAA;IACH,OAAA,QAAA,QAAA"}
1
+ {"version":3,"file":"packer-file.mjs","names":[],"sources":["../../../src/hcl/components/packer-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Show, splitProps } from \"@alloy-js/core\";\nimport { PartialKeys } from \"@stryke/types/base\";\nimport { HCLFile, HCLFileProps } from \"./hcl-file\";\n\nexport type PackerFileProps = PartialKeys<HCLFileProps, \"filetype\">;\n\n/**\n * A base component representing a Powerlines generated [Packer](https://developer.hashicorp.com/packer/docs/templates/hcl_templates) source file.\n *\n * @see https://developer.hashicorp.com/packer\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function PackerFile(props: PackerFileProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <HCLFile filetype=\"pkr.hcl\" {...rest}>\n <Show when={Boolean(children)}>{children}</Show>\n </HCLFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AA8BA,SAAgB,WAAS,OAAO;CAC9B,MAAA,CAAA,EACF,YACE,QAAS,WAAY,OAAQ,CAAA,UAAW,CAAA;8CAExC,UAAO,UACP,GAAG,MAAA,EACD,IAAG,WAAW;EACZ,OAAO,gBAAA,MAAA;GACV,IAAA,OAAA;IACH,OAAA,QAAA,QAAA"}
@@ -0,0 +1,16 @@
1
+ const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
2
+ const require_test_DNmyFkvJ = require('../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
3
+ const require_hcl_components_packer_file = require('./packer-file.cjs');
4
+
5
+ //#region src/hcl/components/packer-file.test.ts
6
+ require_chunk_artifact.describe("plugins/plugin-alloy/src/hcl/components/packer-file.tsx", () => {
7
+ require_chunk_artifact.it("loads module exports", () => {
8
+ require_test_DNmyFkvJ.globalExpect(require_hcl_components_packer_file.packer_file_exports).toBeDefined();
9
+ require_test_DNmyFkvJ.globalExpect(typeof require_hcl_components_packer_file.packer_file_exports).toBe("object");
10
+ });
11
+ require_chunk_artifact.it("has at least one runtime export", () => {
12
+ require_test_DNmyFkvJ.globalExpect(Object.keys(require_hcl_components_packer_file.packer_file_exports).length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+
16
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,18 @@
1
+ import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
2
+ import { globalExpect } from "../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
3
+ import { packer_file_exports } from "./packer-file.mjs";
4
+
5
+ //#region src/hcl/components/packer-file.test.ts
6
+ describe("plugins/plugin-alloy/src/hcl/components/packer-file.tsx", () => {
7
+ it("loads module exports", () => {
8
+ globalExpect(packer_file_exports).toBeDefined();
9
+ globalExpect(typeof packer_file_exports).toBe("object");
10
+ });
11
+ it("has at least one runtime export", () => {
12
+ globalExpect(Object.keys(packer_file_exports).length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+
16
+ //#endregion
17
+ export { };
18
+ //# sourceMappingURL=packer-file.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packer-file.test.mjs","names":[],"sources":["../../../src/hcl/components/packer-file.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./packer-file\";\n\ndescribe(\"plugins/plugin-alloy/src/hcl/components/packer-file.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,mBAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,mBAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
@@ -1,9 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
2
3
  const require_hcl_components_hcl_file = require('./hcl-file.cjs');
3
4
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
5
  let _alloy_js_core = require("@alloy-js/core");
5
6
 
6
7
  //#region src/hcl/components/terraform-file.tsx
8
+ var terraform_file_exports = /* @__PURE__ */ require_runtime.__exportAll({ TerraformFile: () => TerraformFile });
7
9
  /**
8
10
  * A base component representing a Powerlines generated [Terraform](https://developer.hashicorp.com/terraform/language) or [OpenTofu](https://opentofu.org/docs/language/) source file.
9
11
  *
@@ -26,4 +28,10 @@ function TerraformFile(props) {
26
28
  }
27
29
 
28
30
  //#endregion
29
- exports.TerraformFile = TerraformFile;
31
+ exports.TerraformFile = TerraformFile;
32
+ Object.defineProperty(exports, 'terraform_file_exports', {
33
+ enumerable: true,
34
+ get: function () {
35
+ return terraform_file_exports;
36
+ }
37
+ });
@@ -1,8 +1,10 @@
1
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.mjs";
1
2
  import { HCLFile } from "./hcl-file.mjs";
2
3
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
3
4
  import { Show, splitProps } from "@alloy-js/core";
4
5
 
5
6
  //#region src/hcl/components/terraform-file.tsx
7
+ var terraform_file_exports = /* @__PURE__ */ __exportAll({ TerraformFile: () => TerraformFile });
6
8
  /**
7
9
  * A base component representing a Powerlines generated [Terraform](https://developer.hashicorp.com/terraform/language) or [OpenTofu](https://opentofu.org/docs/language/) source file.
8
10
  *
@@ -25,5 +27,5 @@ function TerraformFile(props) {
25
27
  }
26
28
 
27
29
  //#endregion
28
- export { TerraformFile };
30
+ export { TerraformFile, terraform_file_exports };
29
31
  //# sourceMappingURL=terraform-file.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"terraform-file.mjs","names":[],"sources":["../../../src/hcl/components/terraform-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Show, splitProps } from \"@alloy-js/core\";\nimport { PartialKeys } from \"@stryke/types/base\";\nimport { HCLFile, HCLFileProps } from \"./hcl-file\";\n\nexport type TerraformFileProps = PartialKeys<HCLFileProps, \"filetype\">;\n\n/**\n * A base component representing a Powerlines generated [Terraform](https://developer.hashicorp.com/terraform/language) or [OpenTofu](https://opentofu.org/docs/language/) source file.\n *\n * @see https://developer.hashicorp.com/terraform\n * @see https://opentofu.org\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function TerraformFile(props: TerraformFileProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <HCLFile filetype=\"tf\" {...rest}>\n <Show when={Boolean(children)}>{children}</Show>\n </HCLFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AA+BA,SAAgB,cAAS,OAAY;CACnC,MAAA,CAAA,EACF,YACE,QAAS,WAAY,OAAQ,CAAA,UAAW,CAAA;8CAExC,UAAO,KACP,GAAG,MAAA,EACD,IAAG,WAAW;EACZ,OAAO,gBAAA,MAAA;GACV,IAAA,OAAA;IACH,OAAA,QAAA,QAAA"}
1
+ {"version":3,"file":"terraform-file.mjs","names":[],"sources":["../../../src/hcl/components/terraform-file.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { Show, splitProps } from \"@alloy-js/core\";\nimport { PartialKeys } from \"@stryke/types/base\";\nimport { HCLFile, HCLFileProps } from \"./hcl-file\";\n\nexport type TerraformFileProps = PartialKeys<HCLFileProps, \"filetype\">;\n\n/**\n * A base component representing a Powerlines generated [Terraform](https://developer.hashicorp.com/terraform/language) or [OpenTofu](https://opentofu.org/docs/language/) source file.\n *\n * @see https://developer.hashicorp.com/terraform\n * @see https://opentofu.org\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function TerraformFile(props: TerraformFileProps) {\n const [{ children }, rest] = splitProps(props, [\"children\"]);\n\n return (\n <HCLFile filetype=\"tf\" {...rest}>\n <Show when={Boolean(children)}>{children}</Show>\n </HCLFile>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AA+BA,SAAgB,cAAS,OAAY;CACnC,MAAA,CAAA,EACF,YACE,QAAS,WAAY,OAAQ,CAAA,UAAW,CAAA;8CAExC,UAAO,KACP,GAAG,MAAA,EACD,IAAG,WAAW;EACZ,OAAO,gBAAA,MAAA;GACV,IAAA,OAAA;IACH,OAAA,QAAA,QAAA"}
@@ -0,0 +1,16 @@
1
+ const require_chunk_artifact = require('../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
2
+ const require_test_DNmyFkvJ = require('../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
3
+ const require_hcl_components_terraform_file = require('./terraform-file.cjs');
4
+
5
+ //#region src/hcl/components/terraform-file.test.ts
6
+ require_chunk_artifact.describe("plugins/plugin-alloy/src/hcl/components/terraform-file.tsx", () => {
7
+ require_chunk_artifact.it("loads module exports", () => {
8
+ require_test_DNmyFkvJ.globalExpect(require_hcl_components_terraform_file.terraform_file_exports).toBeDefined();
9
+ require_test_DNmyFkvJ.globalExpect(typeof require_hcl_components_terraform_file.terraform_file_exports).toBe("object");
10
+ });
11
+ require_chunk_artifact.it("has at least one runtime export", () => {
12
+ require_test_DNmyFkvJ.globalExpect(Object.keys(require_hcl_components_terraform_file.terraform_file_exports).length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+
16
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,18 @@
1
+ import { describe, it } from "../../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.mjs";
2
+ import { globalExpect } from "../../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.mjs";
3
+ import { terraform_file_exports } from "./terraform-file.mjs";
4
+
5
+ //#region src/hcl/components/terraform-file.test.ts
6
+ describe("plugins/plugin-alloy/src/hcl/components/terraform-file.tsx", () => {
7
+ it("loads module exports", () => {
8
+ globalExpect(terraform_file_exports).toBeDefined();
9
+ globalExpect(typeof terraform_file_exports).toBe("object");
10
+ });
11
+ it("has at least one runtime export", () => {
12
+ globalExpect(Object.keys(terraform_file_exports).length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+
16
+ //#endregion
17
+ export { };
18
+ //# sourceMappingURL=terraform-file.test.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"terraform-file.test.mjs","names":[],"sources":["../../../src/hcl/components/terraform-file.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./terraform-file\";\n\ndescribe(\"plugins/plugin-alloy/src/hcl/components/terraform-file.tsx\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;CAGA,GAAA,8BAAmC;EAC/B,aAAO,sBAAQ,EAAO,YAAS;EAC/B,aAAO,OAAA,sBAAe,EAAA,KAAY,QAAC;CACrC,CAAC;CACD,GAAE,yCAAA;;CAEF,CAAA;AACF,CAAC"}
@@ -26,6 +26,24 @@ let node_child_process = require("node:child_process");
26
26
  let node_util = require("node:util");
27
27
 
28
28
  //#region src/helpers/capnp.ts
29
+ var capnp_exports = /* @__PURE__ */ require_runtime.__exportAll({
30
+ LARGE_BUFFER: () => LARGE_BUFFER,
31
+ compile: () => compile,
32
+ generateCapnp: () => generateCapnp,
33
+ generateCapnpEnumSchema: () => generateCapnpEnumSchema,
34
+ generateCapnpId: () => generateCapnpId,
35
+ generateCapnpInterface: () => generateCapnpInterface,
36
+ generateCapnpMethodSchema: () => generateCapnpMethodSchema,
37
+ generateCapnpPrimitive: () => generateCapnpPrimitive,
38
+ generateCapnpSchema: () => generateCapnpSchema,
39
+ generateCapnpStruct: () => generateCapnpStruct,
40
+ getCapnpEnumTypes: () => getCapnpEnumTypes,
41
+ getCapnpUnionTypes: () => getCapnpUnionTypes,
42
+ isCapnpStringUnion: () => isCapnpStringUnion,
43
+ isVoidType: () => isVoidType,
44
+ stringifyCapnpDefaultValue: () => stringifyCapnpDefaultValue,
45
+ stringifyCapnpValue: () => stringifyCapnpValue
46
+ });
29
47
  /**
30
48
  * Compiles a Cap'n Proto schema into TypeScript definitions.
31
49
  *
@@ -260,6 +278,12 @@ function generateCapnpPrimitive(type) {
260
278
 
261
279
  //#endregion
262
280
  exports.LARGE_BUFFER = LARGE_BUFFER;
281
+ Object.defineProperty(exports, 'capnp_exports', {
282
+ enumerable: true,
283
+ get: function () {
284
+ return capnp_exports;
285
+ }
286
+ });
263
287
  exports.compile = compile;
264
288
  exports.generateCapnp = generateCapnp;
265
289
  exports.generateCapnpEnumSchema = generateCapnpEnumSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"capnp.d.cts","names":[],"sources":["../../src/helpers/capnp.ts"],"mappings":";;;;;;;AA8DA;;;;;iBAAsB,OAAA,CACpB,OAAA,EAAS,OAAA,EACT,OAAA,GAAS,OAAA,CAAQ,aAAA,IAChB,OAAA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S,0BAA+B;AAAA,iBAyD1B,mBAAA,CACd,UAAA,EAAY,eAAA,OACZ,OAAA,GAAS,0BAA+B;AAAA,iBA4E1B,yBAAA,CACd,UAAA,EAAY,gBAAgB,EAC5B,YAAA;AAAA,iBA0Mc,uBAAA,CACd,IAAA,EAAM,QAAA,GAAW,SAAS,EAC1B,IAAA;AAtZwC;AAC1C;;;;AAAkB;AADwB,iBAwd1B,sBAAA,CAAuB,IAAU,EAAJ,IAAI"}
@@ -1,3 +1,4 @@
1
+ import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
1
2
  import defu from "defu";
2
3
  import { titleCase } from "@stryke/string-format/title-case";
3
4
  import { getFileHeader } from "powerlines/utils";
@@ -23,6 +24,24 @@ import { exec } from "node:child_process";
23
24
  import { promisify } from "node:util";
24
25
 
25
26
  //#region src/helpers/capnp.ts
27
+ var capnp_exports = /* @__PURE__ */ __exportAll({
28
+ LARGE_BUFFER: () => LARGE_BUFFER,
29
+ compile: () => compile,
30
+ generateCapnp: () => generateCapnp,
31
+ generateCapnpEnumSchema: () => generateCapnpEnumSchema,
32
+ generateCapnpId: () => generateCapnpId,
33
+ generateCapnpInterface: () => generateCapnpInterface,
34
+ generateCapnpMethodSchema: () => generateCapnpMethodSchema,
35
+ generateCapnpPrimitive: () => generateCapnpPrimitive,
36
+ generateCapnpSchema: () => generateCapnpSchema,
37
+ generateCapnpStruct: () => generateCapnpStruct,
38
+ getCapnpEnumTypes: () => getCapnpEnumTypes,
39
+ getCapnpUnionTypes: () => getCapnpUnionTypes,
40
+ isCapnpStringUnion: () => isCapnpStringUnion,
41
+ isVoidType: () => isVoidType,
42
+ stringifyCapnpDefaultValue: () => stringifyCapnpDefaultValue,
43
+ stringifyCapnpValue: () => stringifyCapnpValue
44
+ });
26
45
  /**
27
46
  * Compiles a Cap'n Proto schema into TypeScript definitions.
28
47
  *
@@ -256,5 +275,5 @@ function generateCapnpPrimitive(type) {
256
275
  }
257
276
 
258
277
  //#endregion
259
- export { LARGE_BUFFER, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue };
278
+ export { LARGE_BUFFER, capnp_exports, compile, generateCapnp, generateCapnpEnumSchema, generateCapnpId, generateCapnpInterface, generateCapnpMethodSchema, generateCapnpPrimitive, generateCapnpSchema, generateCapnpStruct, getCapnpEnumTypes, getCapnpUnionTypes, isCapnpStringUnion, isVoidType, stringifyCapnpDefaultValue, stringifyCapnpValue };
260
279
  //# sourceMappingURL=capnp.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"capnp.mjs","names":[],"sources":["../../src/helpers/capnp.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getUnionTypes, kindToName } from \"@powerlines/deepkit/utilities\";\nimport { getClassName } from \"@powerlines/deepkit/vendor/core\";\nimport {\n memberNameToString,\n ReflectionClass,\n ReflectionKind,\n ReflectionMethod,\n ReflectionParameter,\n ReflectionProperty,\n Type,\n TypeEnum,\n TypeLiteral,\n TypeUnion\n} from \"@powerlines/deepkit/vendor/type\";\nimport { capnpc } from \"@stryke/capnp/compile\";\nimport { resolveOptions } from \"@stryke/capnp/helpers\";\nimport type { CapnpcOptions, CapnpcResult } from \"@stryke/capnp/types\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { getUniqueBy } from \"@stryke/helpers/get-unique\";\nimport { StormJSON } from \"@stryke/json\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { getWords } from \"@stryke/string-format/get-words\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBigInt } from \"@stryke/type-checks/is-bigint\";\nimport { isNull } from \"@stryke/type-checks/is-null\";\nimport { isNumber } from \"@stryke/type-checks/is-number\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport defu from \"defu\";\nimport { Buffer } from \"node:buffer\";\nimport { exec } from \"node:child_process\";\nimport { promisify } from \"node:util\";\nimport { Context, PluginContext } from \"powerlines\";\nimport { getFileHeader } from \"powerlines/utils\";\n\n/**\n * Compiles a Cap'n Proto schema into TypeScript definitions.\n *\n * @param context - The context containing the project and workspace information.\n * @param options - The options for compiling the schema.\n * @returns A promise that resolves to the compiled schema.\n */\nexport async function compile(\n context: Context,\n options: Partial<CapnpcOptions> = {}\n): Promise<CapnpcResult> {\n const opts = defu(options, {\n ts: true,\n js: false,\n dts: false,\n schemas: joinPaths(context.artifactsPath, \"schemas\"),\n tsconfig: context.tsconfig,\n projectRoot: context.config.root,\n workspaceRoot: context.config.cwd,\n tty: true\n }) as Parameters<typeof resolveOptions>[0];\n\n const resolvedOptions = await resolveOptions(opts);\n if (!resolvedOptions) {\n throw new Error(\n `✖ No Cap'n Proto schema files found in the specified source paths: ${toArray(\n opts.schemas\n ).join(\", \")}.`\n );\n }\n\n return capnpc(resolvedOptions);\n}\n\n/**\n * Converts any {@link ReflectionProperty} or {@link ReflectionParameter}'s value to string representation.\n *\n * @param property - The {@link ReflectionProperty} or {@link ReflectionParameter} containing the value to stringify.\n * @param value - The value to stringify.\n * @returns A string representation of the value.\n */\nexport function stringifyCapnpDefaultValue(\n property: ReflectionProperty | ReflectionParameter,\n value?: any\n): string {\n return stringifyCapnpValue(\n property.type,\n value ?? property.getDefaultValue()\n );\n}\n\n/**\n * Converts any {@link Type}'s actual value to string representation.\n *\n * @param type - The {@link Type} of the value to stringify.\n * @param value - The value to stringify.\n * @returns A string representation of the value.\n */\nexport function stringifyCapnpValue(type: Type, value: any): string {\n return type.kind === ReflectionKind.string ||\n (type.kind === ReflectionKind.literal && isString(type.literal))\n ? `\"${String(value)}\"`\n : type.kind === ReflectionKind.enum\n ? `${camelCase(String(value))}`\n : type.kind === ReflectionKind.array\n ? StormJSON.stringify(value)\n : type.kind === ReflectionKind.object ||\n type.kind === ReflectionKind.objectLiteral\n ? StormJSON.stringify(value).replaceAll(\"{\", \"(\").replaceAll(\"}\", \")\")\n : String(value);\n}\n\n/**\n * Converts a ReflectionProperty's default value to a Cap'n Proto schema string representation.\n *\n * @param type - The TypeEnum to evaluate.\n * @returns A string representation of the property.\n */\nexport function getCapnpEnumTypes(type: Type): \"Text\" | \"Float32\" | null {\n if (type.kind !== ReflectionKind.enum) {\n return null;\n }\n\n const unique = getUniqueBy(\n type.values.filter(value => !isUndefined(value) && !isNull(value)),\n enumMember => (isString(enumMember) ? \"Text\" : \"Float32\")\n );\n if (unique.length === 0) {\n return null;\n }\n\n return unique[0] && isString(unique[0]) ? \"Text\" : \"Float32\";\n}\n\n/**\n * Determines if a Type is a `Void` type in a Cap'n Proto schema.\n *\n * @param type - The Type to check.\n * @returns True if the Type is a `Void` type, false otherwise.\n */\nexport function isVoidType(type: Type): boolean {\n return (\n type.kind === ReflectionKind.void ||\n type.kind === ReflectionKind.never ||\n type.kind === ReflectionKind.null ||\n type.kind === ReflectionKind.undefined ||\n type.kind === ReflectionKind.symbol\n );\n}\n\n/**\n * Converts a {@link TypeUnion} to an array of its underlying Cap'n Proto primitive type representation.\n *\n * @param type - The {@link TypeUnion} to convert.\n * @returns A string representation of the Cap'n Proto primitive type.\n */\nexport function getCapnpUnionTypes(type: Type): Type[] {\n return getUnionTypes(type);\n}\n\n/**\n * Converts a {@link TypeUnion} to an array of its underlying Cap'n Proto primitive type representation.\n *\n * @param type - The {@link TypeUnion} to convert.\n * @returns An array of Cap'n Proto primitive types.\n */\nexport function isCapnpStringUnion(type: Type): boolean {\n return getCapnpUnionTypes(type).some(\n member => member.kind === ReflectionKind.string\n );\n}\n\nexport const LARGE_BUFFER = 1024 * 1000000;\nexport type IOType = \"overlapped\" | \"pipe\" | \"ignore\" | \"inherit\";\nexport type StdioOptions =\n | IOType\n | Array<IOType | \"ipc\" | number | null | undefined>;\n\nconst execAsync = promisify(exec);\n\nexport async function generateCapnpId() {\n const { stdout } = await execAsync(\"capnp id\", {\n windowsHide: true,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\"\n });\n\n return stdout;\n}\n\nexport interface GenerateCapnpOptions {\n name?: string;\n}\n\nexport async function generateCapnp(\n context: PluginContext,\n reflection: ReflectionClass<any>,\n options: GenerateCapnpOptions\n) {\n const capnpId = await generateCapnpId();\n\n return `${capnpId.trim()};\n${getFileHeader(context)\n .replace(/^\\r*\\n*/g, \"\")\n .replaceAll(\"//\", \"#\")}\n${\n reflection.getMethods().length === 0\n ? generateCapnpStruct(reflection, options)\n : generateCapnpInterface(reflection, options)\n}\n`.trim();\n}\n\nexport interface GenerateCapnpStructOptions extends GenerateCapnpOptions {\n indexCounter?: () => number;\n}\n\nexport function generateCapnpStruct(\n reflection: ReflectionClass<any>,\n options: GenerateCapnpStructOptions = {}\n): string {\n const structName =\n options?.name ||\n reflection.getTitle() ||\n reflection.getClassName() ||\n reflection.getName();\n\n return `${generateCapnpEnums(reflection)}struct ${pascalCase(structName)} {\n # Struct definition for ${titleCase(structName)}.\n\n ${generateCapnpSchema(reflection, options)}\n}\n`;\n}\n\nexport function generateCapnpInterface(\n reflection: ReflectionClass<any>,\n options: GenerateCapnpStructOptions = {}\n): string {\n const interfaceName =\n options?.name ||\n reflection.getTitle() ||\n reflection.getClassName() ||\n reflection.getName();\n\n return `${generateCapnpEnums(reflection)}interface ${pascalCase(interfaceName)} {\n # Interface definition for ${titleCase(interfaceName)}.\n\n ${generateCapnpSchema(reflection, options)}\n}\n`;\n}\n\nfunction formatEnumName(name: string) {\n return pascalCase(`${name}_Type`);\n}\n\nfunction generateCapnpEnums(reflection: ReflectionClass<any>): string {\n const enums = reflection\n .getProperties()\n .filter(\n prop =>\n !prop.isIgnored() &&\n (prop.type.kind === ReflectionKind.enum ||\n (prop.type.kind === ReflectionKind.union &&\n getCapnpUnionTypes(prop.type).filter(\n type =>\n type.kind === ReflectionKind.literal &&\n (isString(type.literal) || isNumber(type.literal))\n ).length === 1))\n )\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? b.getNameAsString().localeCompare(a.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n );\n if (enums.length === 0) {\n return \"\";\n }\n\n return `${enums\n .map(enumeration =>\n generateCapnpEnumSchema(\n enumeration.type as TypeEnum | TypeUnion,\n formatEnumName(enumeration.getNameAsString())\n )\n )\n .join(\"\\n\\n\")}\n\n`;\n}\n\nexport function generateCapnpSchema(\n reflection: ReflectionClass<any>,\n options: GenerateCapnpStructOptions = {}\n): string {\n let index = 0;\n const indexCounter: () => number = options?.indexCounter ?? (() => index++);\n\n return `${reflection\n .getProperties()\n .filter(prop => !prop.isIgnored())\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? b.getNameAsString().localeCompare(a.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n )\n .map(prop => generateCapnpPropertySchema(prop, indexCounter))\n .join(\" \\n\\n\\t\")}${reflection\n .getMethods()\n .filter(methods => !methods.isIgnored())\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? String(b.getName()).localeCompare(String(a.getName()))\n : a.isReadonly()\n ? 1\n : -1\n )\n .map(methods => generateCapnpMethodSchema(methods, indexCounter))\n .join(\" \\n\\n\\t\")}${\n reflection\n .getProperties()\n .some(\n prop =>\n prop.type.kind === ReflectionKind.class && prop.type.classType === Map\n )\n ? `\n struct Map(Key, Value) {\n entries @0 :List(Entry);\n\n struct Entry {\n key @0 :Key;\n value @1 :Value;\n }\n }`\n : \"\"\n }${\n reflection\n .getProperties()\n .some(\n prop =>\n prop.type.kind === ReflectionKind.class &&\n prop.type.classType === Date\n )\n ? `\n struct Date {\n # A standard Gregorian calendar date.\n\n year @0 :Int16;\n # The year - Must include the century.\n # Negative value indicates BC.\n\n month @1 :UInt8; # The month, 1-12\n\n day @2 :UInt8; # The day of the month, 1-30\n\n hour @3 :UInt8; # The hour of the day, 0-23\n\n minute @4 :UInt8; # The minute of the hour, 0-59\n\n second @5 :UInt8; # The second of the minute, 0-59\n\n millisecond @6 :UInt16; # Milliseconds of the second, 0-999\n }`\n : \"\"\n }`;\n}\n\nexport function generateCapnpMethodSchema(\n reflection: ReflectionMethod,\n indexCounter: () => number\n): string {\n const methodName =\n reflection.getTitle() || typeof reflection.getName() === \"string\"\n ? String(reflection.getName())\n : \"\";\n if (!methodName) {\n throw new Error(\n `Cannot generate Cap'n Proto schema for method without a name - Parent interface: ${reflection.reflectionClass.getName()}`\n );\n }\n\n return `${camelCase(methodName)} @${indexCounter()} (${reflection\n .getParameters()\n .map(param => {\n return `${camelCase(\n param.getName()\n )} :${generateCapnpPrimitive(param.getType())}${\n param.hasDefault() ? ` = ${stringifyCapnpDefaultValue(param)}` : \"\"\n }`;\n })\n .join(\", \")})${\n isVoidType(reflection.getReturnType())\n ? \"\"\n : ` -> (${kindToName(\n reflection.getReturnType().kind\n )}: ${generateCapnpPrimitive(reflection.getReturnType())})`\n }; # ${(\n reflection.getDescription() ||\n `The ${titleCase(\n reflection.reflectionClass.getTitle() ||\n reflection.reflectionClass.getName()\n )} interface ${titleCase(methodName)} method.`\n ).replaceAll(\"\\n\", \". \")}`;\n}\n\nfunction generateCapnpPropertyComment(reflection: ReflectionProperty) {\n const result = getWords(\n reflection.getDescription() ||\n `A schema property for ${titleCase(\n reflection.getTitle() || reflection.getNameAsString()\n )} field.`,\n {\n relaxed: true\n }\n )\n .reduce((ret, word) => {\n let length = ret.length;\n if (ret.includes(\"\\n\")) {\n length = ret.substring(ret.lastIndexOf(\"\\n\") + 1).length;\n }\n\n const current = word.trim();\n if (length + current.length > 60) {\n ret += `\\n\\t# ${current}`;\n } else {\n ret += ` ${current}`;\n }\n return ret;\n }, \"\")\n .trim();\n if (result.length > 0) {\n return `\\t# ${result}`;\n }\n\n return \"\";\n}\n\nfunction generateCapnpPropertySchema(\n reflection: ReflectionProperty,\n indexCounter: () => number\n): string {\n if (reflection.type.kind === ReflectionKind.union) {\n if (getCapnpUnionTypes(reflection.type).length === 0) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Void;\n${generateCapnpPropertyComment(reflection)}`;\n } else if (\n getCapnpUnionTypes(reflection.type).filter(\n type =>\n type.kind === ReflectionKind.literal &&\n (isString(type.literal) || isNumber(type.literal))\n ).length === 1\n ) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${formatEnumName(\n reflection.getNameAsString()\n )}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else {\n return `${camelCase(reflection.getNameAsString())} :union {\n${getCapnpUnionTypes(reflection.type)\n .map(\n type =>\n ` ${kindToName(type.kind)} @${indexCounter()} :${generateCapnpPrimitive(\n type\n )};`\n )\n .join(\"\\n\")}\n }\n${generateCapnpPropertyComment(reflection)}`;\n }\n } else if (reflection.type.kind === ReflectionKind.array) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :List(${generateCapnpPrimitive(reflection.getSubType())})${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.kind === ReflectionKind.class) {\n if (reflection.type.classType === Map) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Map(${\n !reflection.type.typeArguments ||\n reflection.type.typeArguments.length === 0 ||\n !reflection.type.typeArguments[0]\n ? \"Data\"\n : generateCapnpPrimitive(reflection.type.typeArguments[0])\n }, ${\n !reflection.type.typeArguments ||\n reflection.type.typeArguments.length < 2 ||\n !reflection.type.typeArguments[1]\n ? \"Data\"\n : generateCapnpPrimitive(reflection.type.typeArguments[1])\n })${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.classType === Date) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Data${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.classType === Buffer) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Data${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.classType === ArrayBuffer) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Data${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${pascalCase(\n reflection.type.typeName || getClassName(reflection.type.classType)\n )}${generateCapnpStruct(reflection.reflectionClass, {\n name: pascalCase(\n reflection.type.typeName || getClassName(reflection.type.classType)\n )\n })}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n }\n } else if (reflection.type.kind === ReflectionKind.objectLiteral) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${pascalCase(\n reflection.type.typeName ||\n memberNameToString(reflection.getNameAsString())\n )}${generateCapnpStruct(reflection.reflectionClass, {\n name: pascalCase(\n reflection.type.typeName ||\n memberNameToString(reflection.getNameAsString())\n )\n })}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.kind === ReflectionKind.enum) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${pascalCase(\n reflection.getNameAsString()\n )}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n }\n\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${generateCapnpPrimitive(\n reflection.getType()\n )}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n}\n\nexport function generateCapnpEnumSchema(\n type: TypeEnum | TypeUnion,\n name: string\n): string {\n if (type.kind === ReflectionKind.union) {\n return generateCapnpEnumSchema(\n {\n kind: ReflectionKind.enum,\n indexType: type,\n enum: (type.types as TypeLiteral[]).reduce<\n Record<string, string | number>\n >((ret, type) => {\n if (isString(type.literal) || isNumber(type.literal)) {\n ret[camelCase(String(type.literal))] = type.literal;\n }\n\n return ret;\n }, {}),\n values: (\n getCapnpUnionTypes(type).filter(\n type =>\n type.kind === ReflectionKind.literal &&\n (isString(type.literal) || isNumber(type.literal))\n ) as TypeLiteral[]\n ).map(type => type.literal as string | number)\n },\n name\n );\n }\n\n let index = 0;\n const indexCounter: () => number = () => index++;\n\n const enumType = getCapnpEnumTypes(type);\n if (!enumType) {\n return \"\";\n }\n\n return `enum ${pascalCase(name)} {\n${\n type.enum && Object.entries(type.enum).length > 0\n ? Object.entries(type.enum)\n .filter(([, value]) => value !== null && value !== undefined)\n .map(([key]) => ` ${camelCase(key)} @${indexCounter()};`)\n .join(\"\\n\")\n : type.values\n .filter(value => value !== null && value !== undefined)\n .map(\n value =>\n `${\n enumType === \"Text\" && value\n ? camelCase(String(value))\n : `${\n type.typeName ? `${camelCase(type.typeName)}_` : \"\"\n }${value || \"\"}`\n } @${indexCounter()};`\n )\n .join(\"\\n\")\n}\n }`;\n}\n\n/**\n * Generates a string representation of Cap'n Proto primitive types from a Deepkit Type.\n *\n * @param type - The Deepkit Type to convert.\n * @returns A string representation of the Cap'n Proto primitive type.\n */\nexport function generateCapnpPrimitive(type: Type): string {\n return type.kind === ReflectionKind.never ||\n type.kind === ReflectionKind.void ||\n type.kind === ReflectionKind.null ||\n type.kind === ReflectionKind.undefined ||\n type.kind === ReflectionKind.symbol\n ? \"Void\"\n : type.kind === ReflectionKind.class && type.classType === Date\n ? \"Date\"\n : type.kind === ReflectionKind.class && type.classType === Set\n ? `List(${\n type.typeArguments && type.typeArguments[0]\n ? generateCapnpPrimitive(type.typeArguments[0])\n : \"Data\"\n })`\n : type.kind === ReflectionKind.bigint\n ? \"UInt64\"\n : type.kind === ReflectionKind.number\n ? \"Float64\"\n : type.kind === ReflectionKind.string ||\n type.kind === ReflectionKind.regexp\n ? \"Text\"\n : type.kind === ReflectionKind.boolean\n ? \"Bool\"\n : type.kind === ReflectionKind.literal\n ? isNumber(type.literal)\n ? \"Float64\"\n : isBigInt(type.literal)\n ? \"UInt64\"\n : isString(type.literal)\n ? \"Text\"\n : typeof type.literal === \"boolean\"\n ? \"Bool\"\n : \"Data\"\n : \"Data\";\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,eAAsB,QAAK,SAAA,UAAc,CAAA,GAAA;CACzC,MAAQ,OAAC,KAAW,SAAO;EAC3B,IAAQ;EACR,IAAQ;;EAEN,SAAA,UAAA,QAAA,eAAA,SAAA;EACC,UAAW,QAAM;EACnB,aAAA,QAAA,OAAA;EACG,eAAe,QAAK,OAAQ;EAC5B,KAAK;CACP,CAAC;CACD,MAAA,kBAAA,MAAA,eAAA,IAAA;CACF,IAAM,CAAC,iBACL,MAAQ,IAAC,MAAO,sEAAA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,cAAA,OAAA,SAAA,KAAA,SAAA,eAAA,SAAA,KAAA,cAAA,MAAA,QAAA,KAAA,iBAAA,KAAA,cAAA,KAAA,uBAAA,KAAA,cAAA,EAAA,IAAA,OAAA,KAAA,KAAA,SAAA,eAAA,SAAA,WAAA,KAAA,SAAA,eAAA,SAAA,YAAA,KAAA,SAAA,eAAA,UAAA,KAAA,SAAA,eAAA,SAAA,SAAA,KAAA,SAAA,eAAA,UAAA,SAAA,KAAA,SAAA,eAAA,UAAA,SAAA,KAAA,OAAA,IAAA,YAAA,SAAA,KAAA,OAAA,IAAA,WAAA,SAAA,KAAA,OAAA,IAAA,SAAA,OAAA,KAAA,YAAA,YAAA,SAAA,SAAA;AACvB"}
1
+ {"version":3,"file":"capnp.mjs","names":[],"sources":["../../src/helpers/capnp.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { getUnionTypes, kindToName } from \"@powerlines/deepkit/utilities\";\nimport { getClassName } from \"@powerlines/deepkit/vendor/core\";\nimport {\n memberNameToString,\n ReflectionClass,\n ReflectionKind,\n ReflectionMethod,\n ReflectionParameter,\n ReflectionProperty,\n Type,\n TypeEnum,\n TypeLiteral,\n TypeUnion\n} from \"@powerlines/deepkit/vendor/type\";\nimport { capnpc } from \"@stryke/capnp/compile\";\nimport { resolveOptions } from \"@stryke/capnp/helpers\";\nimport type { CapnpcOptions, CapnpcResult } from \"@stryke/capnp/types\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { getUniqueBy } from \"@stryke/helpers/get-unique\";\nimport { StormJSON } from \"@stryke/json\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { getWords } from \"@stryke/string-format/get-words\";\nimport { pascalCase } from \"@stryke/string-format/pascal-case\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { isBigInt } from \"@stryke/type-checks/is-bigint\";\nimport { isNull } from \"@stryke/type-checks/is-null\";\nimport { isNumber } from \"@stryke/type-checks/is-number\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport { isUndefined } from \"@stryke/type-checks/is-undefined\";\nimport defu from \"defu\";\nimport { Buffer } from \"node:buffer\";\nimport { exec } from \"node:child_process\";\nimport { promisify } from \"node:util\";\nimport { Context, PluginContext } from \"powerlines\";\nimport { getFileHeader } from \"powerlines/utils\";\n\n/**\n * Compiles a Cap'n Proto schema into TypeScript definitions.\n *\n * @param context - The context containing the project and workspace information.\n * @param options - The options for compiling the schema.\n * @returns A promise that resolves to the compiled schema.\n */\nexport async function compile(\n context: Context,\n options: Partial<CapnpcOptions> = {}\n): Promise<CapnpcResult> {\n const opts = defu(options, {\n ts: true,\n js: false,\n dts: false,\n schemas: joinPaths(context.artifactsPath, \"schemas\"),\n tsconfig: context.tsconfig,\n projectRoot: context.config.root,\n workspaceRoot: context.config.cwd,\n tty: true\n }) as Parameters<typeof resolveOptions>[0];\n\n const resolvedOptions = await resolveOptions(opts);\n if (!resolvedOptions) {\n throw new Error(\n `✖ No Cap'n Proto schema files found in the specified source paths: ${toArray(\n opts.schemas\n ).join(\", \")}.`\n );\n }\n\n return capnpc(resolvedOptions);\n}\n\n/**\n * Converts any {@link ReflectionProperty} or {@link ReflectionParameter}'s value to string representation.\n *\n * @param property - The {@link ReflectionProperty} or {@link ReflectionParameter} containing the value to stringify.\n * @param value - The value to stringify.\n * @returns A string representation of the value.\n */\nexport function stringifyCapnpDefaultValue(\n property: ReflectionProperty | ReflectionParameter,\n value?: any\n): string {\n return stringifyCapnpValue(\n property.type,\n value ?? property.getDefaultValue()\n );\n}\n\n/**\n * Converts any {@link Type}'s actual value to string representation.\n *\n * @param type - The {@link Type} of the value to stringify.\n * @param value - The value to stringify.\n * @returns A string representation of the value.\n */\nexport function stringifyCapnpValue(type: Type, value: any): string {\n return type.kind === ReflectionKind.string ||\n (type.kind === ReflectionKind.literal && isString(type.literal))\n ? `\"${String(value)}\"`\n : type.kind === ReflectionKind.enum\n ? `${camelCase(String(value))}`\n : type.kind === ReflectionKind.array\n ? StormJSON.stringify(value)\n : type.kind === ReflectionKind.object ||\n type.kind === ReflectionKind.objectLiteral\n ? StormJSON.stringify(value).replaceAll(\"{\", \"(\").replaceAll(\"}\", \")\")\n : String(value);\n}\n\n/**\n * Converts a ReflectionProperty's default value to a Cap'n Proto schema string representation.\n *\n * @param type - The TypeEnum to evaluate.\n * @returns A string representation of the property.\n */\nexport function getCapnpEnumTypes(type: Type): \"Text\" | \"Float32\" | null {\n if (type.kind !== ReflectionKind.enum) {\n return null;\n }\n\n const unique = getUniqueBy(\n type.values.filter(value => !isUndefined(value) && !isNull(value)),\n enumMember => (isString(enumMember) ? \"Text\" : \"Float32\")\n );\n if (unique.length === 0) {\n return null;\n }\n\n return unique[0] && isString(unique[0]) ? \"Text\" : \"Float32\";\n}\n\n/**\n * Determines if a Type is a `Void` type in a Cap'n Proto schema.\n *\n * @param type - The Type to check.\n * @returns True if the Type is a `Void` type, false otherwise.\n */\nexport function isVoidType(type: Type): boolean {\n return (\n type.kind === ReflectionKind.void ||\n type.kind === ReflectionKind.never ||\n type.kind === ReflectionKind.null ||\n type.kind === ReflectionKind.undefined ||\n type.kind === ReflectionKind.symbol\n );\n}\n\n/**\n * Converts a {@link TypeUnion} to an array of its underlying Cap'n Proto primitive type representation.\n *\n * @param type - The {@link TypeUnion} to convert.\n * @returns A string representation of the Cap'n Proto primitive type.\n */\nexport function getCapnpUnionTypes(type: Type): Type[] {\n return getUnionTypes(type);\n}\n\n/**\n * Converts a {@link TypeUnion} to an array of its underlying Cap'n Proto primitive type representation.\n *\n * @param type - The {@link TypeUnion} to convert.\n * @returns An array of Cap'n Proto primitive types.\n */\nexport function isCapnpStringUnion(type: Type): boolean {\n return getCapnpUnionTypes(type).some(\n member => member.kind === ReflectionKind.string\n );\n}\n\nexport const LARGE_BUFFER = 1024 * 1000000;\nexport type IOType = \"overlapped\" | \"pipe\" | \"ignore\" | \"inherit\";\nexport type StdioOptions =\n | IOType\n | Array<IOType | \"ipc\" | number | null | undefined>;\n\nconst execAsync = promisify(exec);\n\nexport async function generateCapnpId() {\n const { stdout } = await execAsync(\"capnp id\", {\n windowsHide: true,\n maxBuffer: LARGE_BUFFER,\n killSignal: \"SIGTERM\"\n });\n\n return stdout;\n}\n\nexport interface GenerateCapnpOptions {\n name?: string;\n}\n\nexport async function generateCapnp(\n context: PluginContext,\n reflection: ReflectionClass<any>,\n options: GenerateCapnpOptions\n) {\n const capnpId = await generateCapnpId();\n\n return `${capnpId.trim()};\n${getFileHeader(context)\n .replace(/^\\r*\\n*/g, \"\")\n .replaceAll(\"//\", \"#\")}\n${\n reflection.getMethods().length === 0\n ? generateCapnpStruct(reflection, options)\n : generateCapnpInterface(reflection, options)\n}\n`.trim();\n}\n\nexport interface GenerateCapnpStructOptions extends GenerateCapnpOptions {\n indexCounter?: () => number;\n}\n\nexport function generateCapnpStruct(\n reflection: ReflectionClass<any>,\n options: GenerateCapnpStructOptions = {}\n): string {\n const structName =\n options?.name ||\n reflection.getTitle() ||\n reflection.getClassName() ||\n reflection.getName();\n\n return `${generateCapnpEnums(reflection)}struct ${pascalCase(structName)} {\n # Struct definition for ${titleCase(structName)}.\n\n ${generateCapnpSchema(reflection, options)}\n}\n`;\n}\n\nexport function generateCapnpInterface(\n reflection: ReflectionClass<any>,\n options: GenerateCapnpStructOptions = {}\n): string {\n const interfaceName =\n options?.name ||\n reflection.getTitle() ||\n reflection.getClassName() ||\n reflection.getName();\n\n return `${generateCapnpEnums(reflection)}interface ${pascalCase(interfaceName)} {\n # Interface definition for ${titleCase(interfaceName)}.\n\n ${generateCapnpSchema(reflection, options)}\n}\n`;\n}\n\nfunction formatEnumName(name: string) {\n return pascalCase(`${name}_Type`);\n}\n\nfunction generateCapnpEnums(reflection: ReflectionClass<any>): string {\n const enums = reflection\n .getProperties()\n .filter(\n prop =>\n !prop.isIgnored() &&\n (prop.type.kind === ReflectionKind.enum ||\n (prop.type.kind === ReflectionKind.union &&\n getCapnpUnionTypes(prop.type).filter(\n type =>\n type.kind === ReflectionKind.literal &&\n (isString(type.literal) || isNumber(type.literal))\n ).length === 1))\n )\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? b.getNameAsString().localeCompare(a.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n );\n if (enums.length === 0) {\n return \"\";\n }\n\n return `${enums\n .map(enumeration =>\n generateCapnpEnumSchema(\n enumeration.type as TypeEnum | TypeUnion,\n formatEnumName(enumeration.getNameAsString())\n )\n )\n .join(\"\\n\\n\")}\n\n`;\n}\n\nexport function generateCapnpSchema(\n reflection: ReflectionClass<any>,\n options: GenerateCapnpStructOptions = {}\n): string {\n let index = 0;\n const indexCounter: () => number = options?.indexCounter ?? (() => index++);\n\n return `${reflection\n .getProperties()\n .filter(prop => !prop.isIgnored())\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? b.getNameAsString().localeCompare(a.getNameAsString())\n : a.isReadonly()\n ? 1\n : -1\n )\n .map(prop => generateCapnpPropertySchema(prop, indexCounter))\n .join(\" \\n\\n\\t\")}${reflection\n .getMethods()\n .filter(methods => !methods.isIgnored())\n .sort((a, b) =>\n (a.isReadonly() && b.isReadonly()) || (!a.isReadonly() && !b.isReadonly())\n ? String(b.getName()).localeCompare(String(a.getName()))\n : a.isReadonly()\n ? 1\n : -1\n )\n .map(methods => generateCapnpMethodSchema(methods, indexCounter))\n .join(\" \\n\\n\\t\")}${\n reflection\n .getProperties()\n .some(\n prop =>\n prop.type.kind === ReflectionKind.class && prop.type.classType === Map\n )\n ? `\n struct Map(Key, Value) {\n entries @0 :List(Entry);\n\n struct Entry {\n key @0 :Key;\n value @1 :Value;\n }\n }`\n : \"\"\n }${\n reflection\n .getProperties()\n .some(\n prop =>\n prop.type.kind === ReflectionKind.class &&\n prop.type.classType === Date\n )\n ? `\n struct Date {\n # A standard Gregorian calendar date.\n\n year @0 :Int16;\n # The year - Must include the century.\n # Negative value indicates BC.\n\n month @1 :UInt8; # The month, 1-12\n\n day @2 :UInt8; # The day of the month, 1-30\n\n hour @3 :UInt8; # The hour of the day, 0-23\n\n minute @4 :UInt8; # The minute of the hour, 0-59\n\n second @5 :UInt8; # The second of the minute, 0-59\n\n millisecond @6 :UInt16; # Milliseconds of the second, 0-999\n }`\n : \"\"\n }`;\n}\n\nexport function generateCapnpMethodSchema(\n reflection: ReflectionMethod,\n indexCounter: () => number\n): string {\n const methodName =\n reflection.getTitle() || typeof reflection.getName() === \"string\"\n ? String(reflection.getName())\n : \"\";\n if (!methodName) {\n throw new Error(\n `Cannot generate Cap'n Proto schema for method without a name - Parent interface: ${reflection.reflectionClass.getName()}`\n );\n }\n\n return `${camelCase(methodName)} @${indexCounter()} (${reflection\n .getParameters()\n .map(param => {\n return `${camelCase(\n param.getName()\n )} :${generateCapnpPrimitive(param.getType())}${\n param.hasDefault() ? ` = ${stringifyCapnpDefaultValue(param)}` : \"\"\n }`;\n })\n .join(\", \")})${\n isVoidType(reflection.getReturnType())\n ? \"\"\n : ` -> (${kindToName(\n reflection.getReturnType().kind\n )}: ${generateCapnpPrimitive(reflection.getReturnType())})`\n }; # ${(\n reflection.getDescription() ||\n `The ${titleCase(\n reflection.reflectionClass.getTitle() ||\n reflection.reflectionClass.getName()\n )} interface ${titleCase(methodName)} method.`\n ).replaceAll(\"\\n\", \". \")}`;\n}\n\nfunction generateCapnpPropertyComment(reflection: ReflectionProperty) {\n const result = getWords(\n reflection.getDescription() ||\n `A schema property for ${titleCase(\n reflection.getTitle() || reflection.getNameAsString()\n )} field.`,\n {\n relaxed: true\n }\n )\n .reduce((ret, word) => {\n let length = ret.length;\n if (ret.includes(\"\\n\")) {\n length = ret.substring(ret.lastIndexOf(\"\\n\") + 1).length;\n }\n\n const current = word.trim();\n if (length + current.length > 60) {\n ret += `\\n\\t# ${current}`;\n } else {\n ret += ` ${current}`;\n }\n return ret;\n }, \"\")\n .trim();\n if (result.length > 0) {\n return `\\t# ${result}`;\n }\n\n return \"\";\n}\n\nfunction generateCapnpPropertySchema(\n reflection: ReflectionProperty,\n indexCounter: () => number\n): string {\n if (reflection.type.kind === ReflectionKind.union) {\n if (getCapnpUnionTypes(reflection.type).length === 0) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Void;\n${generateCapnpPropertyComment(reflection)}`;\n } else if (\n getCapnpUnionTypes(reflection.type).filter(\n type =>\n type.kind === ReflectionKind.literal &&\n (isString(type.literal) || isNumber(type.literal))\n ).length === 1\n ) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${formatEnumName(\n reflection.getNameAsString()\n )}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else {\n return `${camelCase(reflection.getNameAsString())} :union {\n${getCapnpUnionTypes(reflection.type)\n .map(\n type =>\n ` ${kindToName(type.kind)} @${indexCounter()} :${generateCapnpPrimitive(\n type\n )};`\n )\n .join(\"\\n\")}\n }\n${generateCapnpPropertyComment(reflection)}`;\n }\n } else if (reflection.type.kind === ReflectionKind.array) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :List(${generateCapnpPrimitive(reflection.getSubType())})${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.kind === ReflectionKind.class) {\n if (reflection.type.classType === Map) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Map(${\n !reflection.type.typeArguments ||\n reflection.type.typeArguments.length === 0 ||\n !reflection.type.typeArguments[0]\n ? \"Data\"\n : generateCapnpPrimitive(reflection.type.typeArguments[0])\n }, ${\n !reflection.type.typeArguments ||\n reflection.type.typeArguments.length < 2 ||\n !reflection.type.typeArguments[1]\n ? \"Data\"\n : generateCapnpPrimitive(reflection.type.typeArguments[1])\n })${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.classType === Date) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Data${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.classType === Buffer) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Data${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.classType === ArrayBuffer) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :Data${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${pascalCase(\n reflection.type.typeName || getClassName(reflection.type.classType)\n )}${generateCapnpStruct(reflection.reflectionClass, {\n name: pascalCase(\n reflection.type.typeName || getClassName(reflection.type.classType)\n )\n })}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n }\n } else if (reflection.type.kind === ReflectionKind.objectLiteral) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${pascalCase(\n reflection.type.typeName ||\n memberNameToString(reflection.getNameAsString())\n )}${generateCapnpStruct(reflection.reflectionClass, {\n name: pascalCase(\n reflection.type.typeName ||\n memberNameToString(reflection.getNameAsString())\n )\n })}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n } else if (reflection.type.kind === ReflectionKind.enum) {\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${pascalCase(\n reflection.getNameAsString()\n )}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n }\n\n return `${camelCase(reflection.getNameAsString())} @${indexCounter()} :${generateCapnpPrimitive(\n reflection.getType()\n )}${\n reflection.hasDefault()\n ? ` = ${stringifyCapnpDefaultValue(reflection)}`\n : \"\"\n };\n${generateCapnpPropertyComment(reflection)}`;\n}\n\nexport function generateCapnpEnumSchema(\n type: TypeEnum | TypeUnion,\n name: string\n): string {\n if (type.kind === ReflectionKind.union) {\n return generateCapnpEnumSchema(\n {\n kind: ReflectionKind.enum,\n indexType: type,\n enum: (type.types as TypeLiteral[]).reduce<\n Record<string, string | number>\n >((ret, type) => {\n if (isString(type.literal) || isNumber(type.literal)) {\n ret[camelCase(String(type.literal))] = type.literal;\n }\n\n return ret;\n }, {}),\n values: (\n getCapnpUnionTypes(type).filter(\n type =>\n type.kind === ReflectionKind.literal &&\n (isString(type.literal) || isNumber(type.literal))\n ) as TypeLiteral[]\n ).map(type => type.literal as string | number)\n },\n name\n );\n }\n\n let index = 0;\n const indexCounter: () => number = () => index++;\n\n const enumType = getCapnpEnumTypes(type);\n if (!enumType) {\n return \"\";\n }\n\n return `enum ${pascalCase(name)} {\n${\n type.enum && Object.entries(type.enum).length > 0\n ? Object.entries(type.enum)\n .filter(([, value]) => value !== null && value !== undefined)\n .map(([key]) => ` ${camelCase(key)} @${indexCounter()};`)\n .join(\"\\n\")\n : type.values\n .filter(value => value !== null && value !== undefined)\n .map(\n value =>\n `${\n enumType === \"Text\" && value\n ? camelCase(String(value))\n : `${\n type.typeName ? `${camelCase(type.typeName)}_` : \"\"\n }${value || \"\"}`\n } @${indexCounter()};`\n )\n .join(\"\\n\")\n}\n }`;\n}\n\n/**\n * Generates a string representation of Cap'n Proto primitive types from a Deepkit Type.\n *\n * @param type - The Deepkit Type to convert.\n * @returns A string representation of the Cap'n Proto primitive type.\n */\nexport function generateCapnpPrimitive(type: Type): string {\n return type.kind === ReflectionKind.never ||\n type.kind === ReflectionKind.void ||\n type.kind === ReflectionKind.null ||\n type.kind === ReflectionKind.undefined ||\n type.kind === ReflectionKind.symbol\n ? \"Void\"\n : type.kind === ReflectionKind.class && type.classType === Date\n ? \"Date\"\n : type.kind === ReflectionKind.class && type.classType === Set\n ? `List(${\n type.typeArguments && type.typeArguments[0]\n ? generateCapnpPrimitive(type.typeArguments[0])\n : \"Data\"\n })`\n : type.kind === ReflectionKind.bigint\n ? \"UInt64\"\n : type.kind === ReflectionKind.number\n ? \"Float64\"\n : type.kind === ReflectionKind.string ||\n type.kind === ReflectionKind.regexp\n ? \"Text\"\n : type.kind === ReflectionKind.boolean\n ? \"Bool\"\n : type.kind === ReflectionKind.literal\n ? isNumber(type.literal)\n ? \"Float64\"\n : isBigInt(type.literal)\n ? \"UInt64\"\n : isString(type.literal)\n ? \"Text\"\n : typeof type.literal === \"boolean\"\n ? \"Bool\"\n : \"Data\"\n : \"Data\";\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDA,eAAsB,QAAK,SAAA,UAAc,CAAA,GAAA;CACzC,MAAQ,OAAC,KAAW,SAAO;EAC3B,IAAQ;EACR,IAAQ;;EAEN,SAAA,UAAA,QAAA,eAAA,SAAA;EACC,UAAW,QAAM;EACnB,aAAA,QAAA,OAAA;EACG,eAAe,QAAK,OAAQ;EAC5B,KAAK;CACP,CAAC;CACD,MAAA,kBAAA,MAAA,eAAA,IAAA;CACF,IAAM,CAAC,iBACL,MAAQ,IAA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AA,SAAA,KAAA,cAAA,OAAA,SAAA,KAAA,SAAA,eAAA,SAAA,KAAA,cAAA,MAAA,QAAA,KAAA,iBAAA,KAAA,cAAA,KAAA,uBAAA,KAAA,cAAA,EAAA,IAAA,OAAA,KAAA,KAAA,SAAA,eAAA,SAAA,WAAA,KAAA,SAAA,eAAA,SAAA,YAAA,KAAA,SAAA,eAAA,UAAA,KAAA,SAAA,eAAA,SAAA,SAAA,KAAA,SAAA,eAAA,UAAA,SAAA,KAAA,SAAA,eAAA,UAAA,SAAA,KAAA,OAAA,IAAA,YAAA,SAAA,KAAA,OAAA,IAAA,WAAA,SAAA,KAAA,OAAA,IAAA,SAAA,OAAA,KAAA,YAAA,YAAA,SAAA,SAAA;AACvB"}
@@ -0,0 +1,16 @@
1
+ const require_chunk_artifact = require('../node_modules/.pnpm/@vitest_runner@4.1.7/node_modules/@vitest/runner/dist/chunk-artifact.cjs');
2
+ const require_test_DNmyFkvJ = require('../node_modules/.pnpm/vitest@4.1.7_@opentelemetry_api@1.9.1_@types_node@25.9.1_@vitest_coverage-v8@4.1.7_vite_34dd47607c0af5e5ae7f1b2f95fc48c3/node_modules/vitest/dist/chunks/test.DNmyFkvJ.cjs');
3
+ const require_helpers_capnp = require('./capnp.cjs');
4
+
5
+ //#region src/helpers/capnp.test.ts
6
+ require_chunk_artifact.describe("plugins/plugin-alloy/src/helpers/capnp.ts", () => {
7
+ require_chunk_artifact.it("loads module exports", () => {
8
+ require_test_DNmyFkvJ.globalExpect(require_helpers_capnp.capnp_exports).toBeDefined();
9
+ require_test_DNmyFkvJ.globalExpect(typeof require_helpers_capnp.capnp_exports).toBe("object");
10
+ });
11
+ require_chunk_artifact.it("has at least one runtime export", () => {
12
+ require_test_DNmyFkvJ.globalExpect(Object.keys(require_helpers_capnp.capnp_exports).length).toBeGreaterThan(0);
13
+ });
14
+ });
15
+
16
+ //#endregion
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };