@powerlines/plugin-alloy 0.19.26 → 0.19.28

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 (326) hide show
  1. package/dist/{builtin-file-B8Y36s1a.mjs → builtin-file-BJwCniGZ.mjs} +4 -4
  2. package/dist/{builtin-file-B8Y36s1a.mjs.map → builtin-file-BJwCniGZ.mjs.map} +1 -1
  3. package/dist/{builtin-file-xc-QSTiJ.d.mts → builtin-file-CzxGDjwC.d.mts} +3 -3
  4. package/dist/{builtin-file-PDckmfzE.d.cts.map → builtin-file-CzxGDjwC.d.mts.map} +1 -1
  5. package/dist/{builtin-file-PDckmfzE.d.cts → builtin-file-RIBYvoCN.d.cts} +3 -3
  6. package/dist/{builtin-file-q7bTHn0Z.d.mts.map → builtin-file-RIBYvoCN.d.cts.map} +1 -1
  7. package/dist/{capnp-CLxcoMcG.d.mts → capnp-BfsEWHU2.d.cts} +2 -2
  8. package/dist/{capnp-CLxcoMcG.d.mts.map → capnp-BfsEWHU2.d.cts.map} +1 -1
  9. package/dist/{capnp-DbPtfpg2.d.cts → capnp-DcnwPttP.d.mts} +2 -2
  10. package/dist/{capnp-DbPtfpg2.d.cts.map → capnp-DcnwPttP.d.mts.map} +1 -1
  11. package/dist/{capnp-CPbob9Cm.mjs → capnp-XK1IvfIR.mjs} +1 -1
  12. package/dist/{capnp-CPbob9Cm.mjs.map → capnp-XK1IvfIR.mjs.map} +1 -1
  13. package/dist/{components-DqfyRVFO.d.cts → components-DPPi58b5.d.cts} +1 -1
  14. package/dist/{components-DqfyRVFO.d.cts.map → components-DPPi58b5.d.cts.map} +1 -1
  15. package/dist/{components-REdw2IIi.d.mts → components-oHSM7vmp.d.mts} +1 -1
  16. package/dist/{components-REdw2IIi.d.mts.map → components-oHSM7vmp.d.mts.map} +1 -1
  17. package/dist/{context-Cfj0Wk3u.d.cts → context-C-CzW-8C.d.mts} +1 -1
  18. package/dist/{context-Cfj0Wk3u.d.cts.map → context-C-CzW-8C.d.mts.map} +1 -1
  19. package/dist/{context-zWXy6keQ.d.mts → context-CiHsTXX7.d.cts} +1 -1
  20. package/dist/{context-zWXy6keQ.d.mts.map → context-CiHsTXX7.d.cts.map} +1 -1
  21. package/dist/{context-BaVJCPfX.mjs → context-DIUW4n33.mjs} +1 -1
  22. package/dist/{context-BaVJCPfX.mjs.map → context-DIUW4n33.mjs.map} +1 -1
  23. package/dist/core/components/index.d.cts +5 -5
  24. package/dist/core/components/index.d.mts +5 -5
  25. package/dist/core/components/index.mjs +6 -6
  26. package/dist/core/components/output.d.cts +1 -1
  27. package/dist/core/components/output.d.mts +1 -1
  28. package/dist/core/components/output.mjs +2 -2
  29. package/dist/core/components/single-line-comment.d.cts +2 -2
  30. package/dist/core/components/single-line-comment.d.mts +2 -2
  31. package/dist/core/components/single-line-comment.mjs +1 -1
  32. package/dist/core/components/source-file.d.cts +2 -2
  33. package/dist/core/components/source-file.d.mts +2 -2
  34. package/dist/core/components/source-file.mjs +2 -2
  35. package/dist/core/contexts/context.d.cts +1 -1
  36. package/dist/core/contexts/context.d.mts +1 -1
  37. package/dist/core/contexts/context.mjs +1 -1
  38. package/dist/core/contexts/index.d.cts +5 -5
  39. package/dist/core/contexts/index.d.mts +5 -5
  40. package/dist/core/contexts/index.mjs +4 -4
  41. package/dist/core/contexts/meta.d.cts +1 -1
  42. package/dist/core/contexts/meta.d.mts +1 -1
  43. package/dist/core/contexts/meta.mjs +1 -1
  44. package/dist/core/contexts/reflection.d.cts +2 -2
  45. package/dist/core/contexts/reflection.d.mts +2 -2
  46. package/dist/core/contexts/reflection.mjs +1 -1
  47. package/dist/core/index.d.cts +10 -9
  48. package/dist/core/index.d.mts +10 -9
  49. package/dist/core/index.mjs +8 -8
  50. package/dist/{create-builtin-Bpswa0ZT.d.cts → create-builtin-BvtcWfWV.d.mts} +1 -1
  51. package/dist/{create-builtin-Bpswa0ZT.d.cts.map → create-builtin-BvtcWfWV.d.mts.map} +1 -1
  52. package/dist/{create-builtin-Be3J_vqf.mjs → create-builtin-C4n9BYjY.mjs} +1 -1
  53. package/dist/{create-builtin-Be3J_vqf.mjs.map → create-builtin-C4n9BYjY.mjs.map} +1 -1
  54. package/dist/{create-builtin-CbEjJreB.d.mts → create-builtin-CI8g-abA.d.cts} +1 -1
  55. package/dist/{create-builtin-CbEjJreB.d.mts.map → create-builtin-CI8g-abA.d.cts.map} +1 -1
  56. package/dist/{dynamic-import-statement-BgLOAe4B.d.cts → dynamic-import-statement-0zTc2EEO.d.cts} +3 -3
  57. package/dist/{dynamic-import-statement-BgLOAe4B.d.cts.map → dynamic-import-statement-0zTc2EEO.d.cts.map} +1 -1
  58. package/dist/{dynamic-import-statement-B4Ov9C7y.mjs → dynamic-import-statement-BVggdOVL.mjs} +1 -1
  59. package/dist/{dynamic-import-statement-B4Ov9C7y.mjs.map → dynamic-import-statement-BVggdOVL.mjs.map} +1 -1
  60. package/dist/{dynamic-import-statement-DSNDMC9Y.d.mts → dynamic-import-statement-pdjThvwh.d.mts} +1 -1
  61. package/dist/{dynamic-import-statement-C7f6CN_b.d.mts.map → dynamic-import-statement-pdjThvwh.d.mts.map} +1 -1
  62. package/dist/{entry-file-CmJcd0C4.d.mts → entry-file-BW-opsS0.d.mts} +4 -4
  63. package/dist/{entry-file-CmJcd0C4.d.mts.map → entry-file-BW-opsS0.d.mts.map} +1 -1
  64. package/dist/{entry-file-DVU9IAeI.d.cts → entry-file-Dsx2DfkL.d.cts} +4 -4
  65. package/dist/{entry-file-DVU9IAeI.d.cts.map → entry-file-Dsx2DfkL.d.cts.map} +1 -1
  66. package/dist/{entry-file-DzlSog-0.mjs → entry-file-P5n-ofhK.mjs} +3 -3
  67. package/dist/{entry-file-DzlSog-0.mjs.map → entry-file-P5n-ofhK.mjs.map} +1 -1
  68. package/dist/{front-matter-CXfCT8a8.d.mts → front-matter-BZuLGCXi.d.mts} +1 -1
  69. package/dist/{front-matter-CXfCT8a8.d.mts.map → front-matter-BZuLGCXi.d.mts.map} +1 -1
  70. package/dist/{front-matter-BeTG0uJA.mjs → front-matter-Dzh6QhN-.mjs} +1 -1
  71. package/dist/{front-matter-BeTG0uJA.mjs.map → front-matter-Dzh6QhN-.mjs.map} +1 -1
  72. package/dist/{front-matter-DpKD40Zz.d.cts → front-matter-tYvUQe2w.d.cts} +3 -3
  73. package/dist/{front-matter-DpKD40Zz.d.cts.map → front-matter-tYvUQe2w.d.cts.map} +1 -1
  74. package/dist/helpers/capnp.d.cts +1 -1
  75. package/dist/helpers/capnp.d.mts +1 -1
  76. package/dist/helpers/capnp.mjs +1 -1
  77. package/dist/helpers/create-builtin.d.cts +1 -1
  78. package/dist/helpers/create-builtin.d.mts +1 -1
  79. package/dist/helpers/create-builtin.mjs +1 -1
  80. package/dist/helpers/index.d.cts +4 -4
  81. package/dist/helpers/index.d.mts +4 -4
  82. package/dist/helpers/index.mjs +4 -4
  83. package/dist/helpers/refkey.d.cts +1 -1
  84. package/dist/helpers/refkey.d.mts +1 -1
  85. package/dist/helpers/refkey.mjs +1 -1
  86. package/dist/helpers/typescript.d.cts +1 -1
  87. package/dist/helpers/typescript.d.mts +1 -1
  88. package/dist/helpers/typescript.mjs +1 -1
  89. package/dist/index-sViox9YW.d.mts +1 -0
  90. package/dist/index-uY8Qbwfx.d.mts +1 -0
  91. package/dist/index.cjs +31 -24
  92. package/dist/index.d.cts +1 -1
  93. package/dist/index.d.cts.map +1 -1
  94. package/dist/index.d.mts +1 -1
  95. package/dist/index.d.mts.map +1 -1
  96. package/dist/index.mjs +32 -25
  97. package/dist/index.mjs.map +1 -1
  98. package/dist/markdown/components/front-matter.d.cts +1 -1
  99. package/dist/markdown/components/front-matter.d.mts +1 -1
  100. package/dist/markdown/components/front-matter.mjs +1 -1
  101. package/dist/markdown/components/index.d.cts +7 -7
  102. package/dist/markdown/components/index.d.mts +7 -7
  103. package/dist/markdown/components/index.mjs +9 -9
  104. package/dist/markdown/components/markdown-file.d.cts +4 -4
  105. package/dist/markdown/components/markdown-file.d.mts +4 -4
  106. package/dist/markdown/components/markdown-file.mjs +6 -6
  107. package/dist/markdown/components/markdown-table.d.cts +3 -3
  108. package/dist/markdown/components/markdown-table.d.mts +3 -3
  109. package/dist/markdown/components/markdown-table.mjs +2 -2
  110. package/dist/markdown/contexts/index.d.cts +2 -2
  111. package/dist/markdown/contexts/index.d.mts +2 -2
  112. package/dist/markdown/contexts/index.mjs +2 -2
  113. package/dist/markdown/contexts/markdown-table.d.cts +1 -1
  114. package/dist/markdown/contexts/markdown-table.d.mts +1 -1
  115. package/dist/markdown/contexts/markdown-table.mjs +1 -1
  116. package/dist/markdown/index.d.cts +8 -8
  117. package/dist/markdown/index.d.mts +8 -8
  118. package/dist/markdown/index.mjs +10 -10
  119. package/dist/{markdown-file-CwMc-alS.d.cts → markdown-file-BDq010LJ.d.mts} +4 -4
  120. package/dist/{markdown-file-B1dmnZ6l.d.mts.map → markdown-file-BDq010LJ.d.mts.map} +1 -1
  121. package/dist/{markdown-file-B1dmnZ6l.d.mts → markdown-file-Cne2IAsX.d.cts} +4 -4
  122. package/dist/{markdown-file-BdgX4c0b.d.cts.map → markdown-file-Cne2IAsX.d.cts.map} +1 -1
  123. package/dist/{markdown-file-DLIS2yeG.mjs → markdown-file-DmarbNrj.mjs} +5 -5
  124. package/dist/{markdown-file-DLIS2yeG.mjs.map → markdown-file-DmarbNrj.mjs.map} +1 -1
  125. package/dist/{markdown-table-PT2TFFY3.mjs → markdown-table-BKaAfa6u.mjs} +1 -1
  126. package/dist/{markdown-table-PT2TFFY3.mjs.map → markdown-table-BKaAfa6u.mjs.map} +1 -1
  127. package/dist/{markdown-table-CnEur72Z.mjs → markdown-table-CRVCcmmS.mjs} +2 -2
  128. package/dist/{markdown-table-CnEur72Z.mjs.map → markdown-table-CRVCcmmS.mjs.map} +1 -1
  129. package/dist/{markdown-table-t6Z-cmxX.d.mts → markdown-table-DIfM03TF.d.mts} +1 -1
  130. package/dist/{markdown-table-CZMEY6IR.d.cts.map → markdown-table-DIfM03TF.d.mts.map} +1 -1
  131. package/dist/{markdown-table-CZMEY6IR.d.cts → markdown-table-Dxxupt8O.d.cts} +1 -1
  132. package/dist/{markdown-table-t6Z-cmxX.d.mts.map → markdown-table-Dxxupt8O.d.cts.map} +1 -1
  133. package/dist/{markdown-table-Cv6HmRUB.d.cts → markdown-table-Dynt50_5.d.mts} +3 -3
  134. package/dist/{markdown-table-BVtAeDoa.d.mts.map → markdown-table-Dynt50_5.d.mts.map} +1 -1
  135. package/dist/{markdown-table-D5Tg3LLV.d.cts → markdown-table-xZyyTn4L.d.cts} +7 -7
  136. package/dist/{markdown-table-Cv6HmRUB.d.cts.map → markdown-table-xZyyTn4L.d.cts.map} +1 -1
  137. package/dist/{meta-DDwBNdE3.d.cts → meta-CyClLk1y.d.mts} +1 -1
  138. package/dist/{meta-DDwBNdE3.d.cts.map → meta-CyClLk1y.d.mts.map} +1 -1
  139. package/dist/{meta-BuwJuxY9.mjs → meta-vNWUnnLO.mjs} +1 -1
  140. package/dist/{meta-BuwJuxY9.mjs.map → meta-vNWUnnLO.mjs.map} +1 -1
  141. package/dist/{meta-RtOYCV7t.d.mts → meta-xgVuv08y.d.cts} +1 -1
  142. package/dist/{meta-RtOYCV7t.d.mts.map → meta-xgVuv08y.d.cts.map} +1 -1
  143. package/dist/{output-BehYSTRr.mjs → output-CUxfvVVp.mjs} +2 -2
  144. package/dist/{output-BehYSTRr.mjs.map → output-CUxfvVVp.mjs.map} +1 -1
  145. package/dist/{output-gLuHZTGo.d.mts → output-CqvSLPi0.d.mts} +1 -1
  146. package/dist/{output-Law_SUlM.d.mts.map → output-CqvSLPi0.d.mts.map} +1 -1
  147. package/dist/{output-CIKSJjPS.d.cts → output-t88bpsXq.d.cts} +3 -3
  148. package/dist/{output-CGYPi1rL.d.cts.map → output-t88bpsXq.d.cts.map} +1 -1
  149. package/dist/{plugin-C-cbPXaG.d.cts → plugin-aN6BnM8T.d.cts} +1 -1
  150. package/dist/{plugin-C-cbPXaG.d.cts.map → plugin-aN6BnM8T.d.cts.map} +1 -1
  151. package/dist/{plugin-Dn0UNaQ3.d.mts → plugin-c-C_CW4P.d.mts} +1 -1
  152. package/dist/{plugin-Dn0UNaQ3.d.mts.map → plugin-c-C_CW4P.d.mts.map} +1 -1
  153. package/dist/{record-expression-ChoLAsVS.d.mts → record-expression-B4Wa9HOn.d.cts} +1 -1
  154. package/dist/{record-expression-ChoLAsVS.d.mts.map → record-expression-B4Wa9HOn.d.cts.map} +1 -1
  155. package/dist/{record-expression-D5W72rZN.mjs → record-expression-BHpXe3mY.mjs} +1 -1
  156. package/dist/{record-expression-D5W72rZN.mjs.map → record-expression-BHpXe3mY.mjs.map} +1 -1
  157. package/dist/{record-expression-Dwg_PZpg.d.cts → record-expression-DYCDlTyT.d.mts} +1 -1
  158. package/dist/{record-expression-Dwg_PZpg.d.cts.map → record-expression-DYCDlTyT.d.mts.map} +1 -1
  159. package/dist/{refkey-D6OjgKgS.d.mts → refkey-CqkD5Tjp.d.mts} +1 -1
  160. package/dist/refkey-CqkD5Tjp.d.mts.map +1 -0
  161. package/dist/{refkey-CQVHeuAq.mjs → refkey-CyhX8n2z.mjs} +1 -1
  162. package/dist/{refkey-CQVHeuAq.mjs.map → refkey-CyhX8n2z.mjs.map} +1 -1
  163. package/dist/{refkey-CP7MJMac.d.cts → refkey-DqDd2Fzs.d.cts} +1 -1
  164. package/dist/refkey-DqDd2Fzs.d.cts.map +1 -0
  165. package/dist/{reflection-BumisltV.d.mts → reflection-CAz7PWzK.d.mts} +2 -2
  166. package/dist/{reflection-I2Uewhuo.d.cts.map → reflection-CAz7PWzK.d.mts.map} +1 -1
  167. package/dist/{reflection-Btb1NqwS.mjs → reflection-ExLWJ473.mjs} +1 -1
  168. package/dist/{reflection-Btb1NqwS.mjs.map → reflection-ExLWJ473.mjs.map} +1 -1
  169. package/dist/{reflection-I2Uewhuo.d.cts → reflection-JGVev2J6.d.cts} +2 -2
  170. package/dist/{reflection-BumisltV.d.mts.map → reflection-JGVev2J6.d.cts.map} +1 -1
  171. package/dist/{single-line-comment-C4oS5eSd.d.mts → single-line-comment-B0sVqs7Q.d.cts} +2 -2
  172. package/dist/{single-line-comment-C4oS5eSd.d.mts.map → single-line-comment-B0sVqs7Q.d.cts.map} +1 -1
  173. package/dist/{single-line-comment-MRVbskt3.mjs → single-line-comment-CGkTdNez.mjs} +1 -1
  174. package/dist/{single-line-comment-MRVbskt3.mjs.map → single-line-comment-CGkTdNez.mjs.map} +1 -1
  175. package/dist/{single-line-comment-DWXxACyy.d.cts → single-line-comment-PMv_zrfe.d.mts} +2 -2
  176. package/dist/{single-line-comment-DWXxACyy.d.cts.map → single-line-comment-PMv_zrfe.d.mts.map} +1 -1
  177. package/dist/{source-file-YrHdUb8H.d.mts → source-file-Bfny_Zo3.d.mts} +4 -4
  178. package/dist/{source-file-BNYeD1w4.d.cts.map → source-file-Bfny_Zo3.d.mts.map} +1 -1
  179. package/dist/{source-file-BNYeD1w4.d.cts → source-file-Bhx5nuCf.d.cts} +2 -2
  180. package/dist/{source-file-YrHdUb8H.d.mts.map → source-file-Bhx5nuCf.d.cts.map} +1 -1
  181. package/dist/{source-file-B5FSrvOa.mjs → source-file-C2DlmRUm.mjs} +2 -2
  182. package/dist/{source-file-B5FSrvOa.mjs.map → source-file-C2DlmRUm.mjs.map} +1 -1
  183. package/dist/{tsdoc-BpOXtq0v.d.cts → tsdoc-BlBkyIWO.d.cts} +2 -2
  184. package/dist/{tsdoc-BpOXtq0v.d.cts.map → tsdoc-BlBkyIWO.d.cts.map} +1 -1
  185. package/dist/{tsdoc-prhuuYav.mjs → tsdoc-C9i5z6EE.mjs} +2 -2
  186. package/dist/{tsdoc-prhuuYav.mjs.map → tsdoc-C9i5z6EE.mjs.map} +1 -1
  187. package/dist/{tsdoc-CwqGhmLe.d.mts → tsdoc-cuL_4mkw.d.mts} +2 -2
  188. package/dist/{tsdoc-CwqGhmLe.d.mts.map → tsdoc-cuL_4mkw.d.mts.map} +1 -1
  189. package/dist/{tsdoc-reflection-CQX-iDtz.mjs → tsdoc-reflection-BFTBtjQ2.mjs} +3 -3
  190. package/dist/{tsdoc-reflection-CQX-iDtz.mjs.map → tsdoc-reflection-BFTBtjQ2.mjs.map} +1 -1
  191. package/dist/{tsdoc-reflection-hz0WQ70o.d.cts → tsdoc-reflection-nKQBTaXx.d.mts} +6 -6
  192. package/dist/{tsdoc-reflection-Cak-O_qk.d.mts.map → tsdoc-reflection-nKQBTaXx.d.mts.map} +1 -1
  193. package/dist/{tsdoc-reflection-ycF-PiB9.d.cts → tsdoc-reflection-veFRE4YR.d.cts} +6 -6
  194. package/dist/{tsdoc-reflection-hz0WQ70o.d.cts.map → tsdoc-reflection-veFRE4YR.d.cts.map} +1 -1
  195. package/dist/types/_internal.cjs +0 -0
  196. package/dist/types/_internal.d.cts +47 -0
  197. package/dist/types/_internal.d.cts.map +1 -0
  198. package/dist/types/_internal.d.mts +47 -0
  199. package/dist/types/_internal.d.mts.map +1 -0
  200. package/dist/types/_internal.mjs +1 -0
  201. package/dist/types/components.d.cts +1 -1
  202. package/dist/types/components.d.mts +1 -1
  203. package/dist/types/components.mjs +1 -1
  204. package/dist/types/index.d.cts +2 -2
  205. package/dist/types/index.d.mts +2 -2
  206. package/dist/types/index.mjs +2 -2
  207. package/dist/types/plugin.d.cts +1 -1
  208. package/dist/types/plugin.d.mts +1 -1
  209. package/dist/types/plugin.mjs +1 -1
  210. package/dist/typescript/components/builtin-file.d.cts +5 -5
  211. package/dist/typescript/components/builtin-file.d.mts +5 -5
  212. package/dist/typescript/components/builtin-file.mjs +7 -7
  213. package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
  214. package/dist/typescript/components/dynamic-import-statement.d.mts +1 -1
  215. package/dist/typescript/components/dynamic-import-statement.mjs +1 -1
  216. package/dist/typescript/components/entry-file.d.cts +4 -4
  217. package/dist/typescript/components/entry-file.d.mts +4 -4
  218. package/dist/typescript/components/entry-file.mjs +6 -6
  219. package/dist/typescript/components/index.d.cts +12 -12
  220. package/dist/typescript/components/index.d.mts +12 -12
  221. package/dist/typescript/components/index.mjs +15 -15
  222. package/dist/typescript/components/record-expression.d.cts +1 -1
  223. package/dist/typescript/components/record-expression.d.mts +1 -1
  224. package/dist/typescript/components/record-expression.mjs +1 -1
  225. package/dist/typescript/components/tsdoc-reflection.d.cts +3 -3
  226. package/dist/typescript/components/tsdoc-reflection.d.mts +3 -3
  227. package/dist/typescript/components/tsdoc-reflection.mjs +4 -4
  228. package/dist/typescript/components/tsdoc.d.cts +2 -2
  229. package/dist/typescript/components/tsdoc.d.mts +2 -2
  230. package/dist/typescript/components/tsdoc.mjs +2 -2
  231. package/dist/typescript/components/typescript-file.d.cts +3 -3
  232. package/dist/typescript/components/typescript-file.d.mts +3 -3
  233. package/dist/typescript/components/typescript-file.mjs +5 -5
  234. package/dist/typescript/components/typescript-interface.d.cts +2 -2
  235. package/dist/typescript/components/typescript-interface.d.mts +2 -2
  236. package/dist/typescript/components/typescript-interface.mjs +5 -5
  237. package/dist/typescript/components/typescript-object.d.cts +2 -2
  238. package/dist/typescript/components/typescript-object.d.mts +2 -2
  239. package/dist/typescript/components/typescript-object.mjs +5 -5
  240. package/dist/typescript/index.d.cts +12 -12
  241. package/dist/typescript/index.d.mts +12 -12
  242. package/dist/typescript/index.mjs +15 -15
  243. package/dist/{typescript-CXP7Oa6_.d.cts → typescript-BpWiXYf3.d.mts} +1 -1
  244. package/dist/{typescript-CXP7Oa6_.d.cts.map → typescript-BpWiXYf3.d.mts.map} +1 -1
  245. package/dist/{typescript-DvynKONm.d.mts → typescript-CJjS7_9C.d.cts} +1 -1
  246. package/dist/{typescript-DvynKONm.d.mts.map → typescript-CJjS7_9C.d.cts.map} +1 -1
  247. package/dist/{typescript-BXhP0qIJ.mjs → typescript-CrVxDaSo.mjs} +1 -1
  248. package/dist/{typescript-BXhP0qIJ.mjs.map → typescript-CrVxDaSo.mjs.map} +1 -1
  249. package/dist/{typescript-file-CNCLRiyf.mjs → typescript-file-CZiIcJah.mjs} +4 -4
  250. package/dist/{typescript-file-CNCLRiyf.mjs.map → typescript-file-CZiIcJah.mjs.map} +1 -1
  251. package/dist/{typescript-file--NT6aFEW.d.cts → typescript-file-CsvsUP0u.d.mts} +3 -3
  252. package/dist/{typescript-file--NT6aFEW.d.cts.map → typescript-file-CsvsUP0u.d.mts.map} +1 -1
  253. package/dist/{typescript-file-BqamPJcI.d.cts → typescript-file-Fc4x93jB.d.cts} +3 -3
  254. package/dist/{typescript-file-BqamPJcI.d.cts.map → typescript-file-Fc4x93jB.d.cts.map} +1 -1
  255. package/dist/{typescript-interface-DX0WJLCa.d.mts → typescript-interface-BQpgao-e.d.mts} +5 -5
  256. package/dist/{typescript-interface-CTyDcMdt.d.mts.map → typescript-interface-BQpgao-e.d.mts.map} +1 -1
  257. package/dist/{typescript-interface-BnRXH_zM.mjs → typescript-interface-CDzEeHla.mjs} +3 -3
  258. package/dist/{typescript-interface-BnRXH_zM.mjs.map → typescript-interface-CDzEeHla.mjs.map} +1 -1
  259. package/dist/{typescript-interface-LTD6nhQZ.d.cts → typescript-interface-CcxpE00-.d.cts} +5 -5
  260. package/dist/{typescript-interface-DX0WJLCa.d.mts.map → typescript-interface-CcxpE00-.d.cts.map} +1 -1
  261. package/dist/{typescript-object-L2Zn4zbB.d.mts → typescript-object-CQqNBUGE.d.cts} +3 -3
  262. package/dist/{typescript-object-DAZ_s-da.d.cts.map → typescript-object-CQqNBUGE.d.cts.map} +1 -1
  263. package/dist/{typescript-object-DAZ_s-da.d.cts → typescript-object-Cphz389O.d.mts} +6 -6
  264. package/dist/{typescript-object-L2Zn4zbB.d.mts.map → typescript-object-Cphz389O.d.mts.map} +1 -1
  265. package/dist/{typescript-object-Dhr7lMRV.mjs → typescript-object-FaGWSJWA.mjs} +3 -3
  266. package/dist/{typescript-object-Dhr7lMRV.mjs.map → typescript-object-FaGWSJWA.mjs.map} +1 -1
  267. package/package.json +20 -6
  268. package/dist/builtin-file-BvEeitxx.d.cts +0 -35
  269. package/dist/builtin-file-BvEeitxx.d.cts.map +0 -1
  270. package/dist/builtin-file-q7bTHn0Z.d.mts +0 -35
  271. package/dist/builtin-file-xc-QSTiJ.d.mts.map +0 -1
  272. package/dist/dynamic-import-statement-C7f6CN_b.d.mts +0 -33
  273. package/dist/dynamic-import-statement-DSNDMC9Y.d.mts.map +0 -1
  274. package/dist/dynamic-import-statement-kxVxtCBQ.d.cts +0 -33
  275. package/dist/dynamic-import-statement-kxVxtCBQ.d.cts.map +0 -1
  276. package/dist/entry-file-Dbo9mrsH.d.cts +0 -28
  277. package/dist/entry-file-Dbo9mrsH.d.cts.map +0 -1
  278. package/dist/front-matter-s2lylY4i.d.cts +0 -16
  279. package/dist/front-matter-s2lylY4i.d.cts.map +0 -1
  280. package/dist/markdown-file-BdgX4c0b.d.cts +0 -29
  281. package/dist/markdown-file-CwMc-alS.d.cts.map +0 -1
  282. package/dist/markdown-file-T8cRtyd8.d.mts +0 -29
  283. package/dist/markdown-file-T8cRtyd8.d.mts.map +0 -1
  284. package/dist/markdown-table-BVtAeDoa.d.mts +0 -28
  285. package/dist/markdown-table-D5Tg3LLV.d.cts.map +0 -1
  286. package/dist/markdown-table-DFbl_3T_.d.mts +0 -28
  287. package/dist/markdown-table-DFbl_3T_.d.mts.map +0 -1
  288. package/dist/output-CGYPi1rL.d.cts +0 -19
  289. package/dist/output-CIKSJjPS.d.cts.map +0 -1
  290. package/dist/output-Law_SUlM.d.mts +0 -19
  291. package/dist/output-gLuHZTGo.d.mts.map +0 -1
  292. package/dist/refkey-CP7MJMac.d.cts.map +0 -1
  293. package/dist/refkey-D6OjgKgS.d.mts.map +0 -1
  294. package/dist/single-line-comment-CBaZAKTr.d.cts +0 -23
  295. package/dist/single-line-comment-CBaZAKTr.d.cts.map +0 -1
  296. package/dist/single-line-comment-ceejgNfU.d.mts +0 -23
  297. package/dist/single-line-comment-ceejgNfU.d.mts.map +0 -1
  298. package/dist/source-file-OtWS66Kr.d.cts +0 -33
  299. package/dist/source-file-OtWS66Kr.d.cts.map +0 -1
  300. package/dist/tsdoc-reflection-Cak-O_qk.d.mts +0 -19
  301. package/dist/tsdoc-reflection-ycF-PiB9.d.cts.map +0 -1
  302. package/dist/typescript-file-dsHm_Y5Y.d.mts +0 -50
  303. package/dist/typescript-file-dsHm_Y5Y.d.mts.map +0 -1
  304. package/dist/typescript-interface-CTyDcMdt.d.mts +0 -26
  305. package/dist/typescript-interface-LTD6nhQZ.d.cts.map +0 -1
  306. package/dist/typescript-object-B7G5A4j-.d.cts +0 -30
  307. package/dist/typescript-object-B7G5A4j-.d.cts.map +0 -1
  308. package/dist/typescript-object-DK3sl8cB.d.mts +0 -30
  309. package/dist/typescript-object-DK3sl8cB.d.mts.map +0 -1
  310. /package/dist/{components-ByryZacA.mjs → components-BHsPgUVD.mjs} +0 -0
  311. /package/dist/{components-C3qpgLKV.mjs → components-C4MWIzKk.mjs} +0 -0
  312. /package/dist/{components-NXgsRgB4.mjs → components-DTKCKgWS.mjs} +0 -0
  313. /package/dist/{components-pztyf7qk.mjs → components-bxkcKDVx.mjs} +0 -0
  314. /package/dist/{contexts-D-vYhGdM.mjs → contexts-D631HKlO.mjs} +0 -0
  315. /package/dist/{contexts-oubuaPo0.mjs → contexts-DppcDJxB.mjs} +0 -0
  316. /package/dist/{index-BJ8-FA6N.d.cts → index--p6oQT9I.d.mts} +0 -0
  317. /package/dist/{index-BXpMZvwA.d.cts → index-BUYyA1Xh.d.cts} +0 -0
  318. /package/dist/{index-BhY1qu3m.d.cts → index-CryTAIZM.d.mts} +0 -0
  319. /package/dist/{index-BjgW3E7y.d.mts → index-CyJfB4lt.d.cts} +0 -0
  320. /package/dist/{index-C3usUse7.d.mts → index-CzItj62a.d.mts} +0 -0
  321. /package/dist/{index-D13oYj4_.d.mts → index-D9IqtUDs.d.cts} +0 -0
  322. /package/dist/{index-DBGd4WeR.d.mts → index-Dt_vyhB_.d.cts} +0 -0
  323. /package/dist/{index-DdxxIAKU.d.cts → index-Iujpc9_6.d.mts} +0 -0
  324. /package/dist/{index-DpEKQcoR.d.cts → index-gxEAO6Ad.d.cts} +0 -0
  325. /package/dist/{index-gpCH5158.d.mts → index-qCd8f7Um.d.cts} +0 -0
  326. /package/dist/{plugin-BzF8Q2v1.mjs → plugin-DTwUbNHt.mjs} +0 -0
@@ -1,6 +1,6 @@
1
- import { i as usePowerlinesSafe } from "./context-BaVJCPfX.mjs";
2
- import { d as TSDocModule } from "./tsdoc-prhuuYav.mjs";
3
- import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "./typescript-file-CNCLRiyf.mjs";
1
+ import { i as usePowerlinesSafe } from "./context-DIUW4n33.mjs";
2
+ import { d as TSDocModule } from "./tsdoc-C9i5z6EE.mjs";
3
+ import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "./typescript-file-CZiIcJah.mjs";
4
4
  import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
5
5
  import { computed, splitProps } from "@alloy-js/core";
6
6
  import { hasFileExtension } from "@stryke/path/file-path-fns";
@@ -59,4 +59,4 @@ function BuiltinFile(props) {
59
59
 
60
60
  //#endregion
61
61
  export { BuiltinFile as t };
62
- //# sourceMappingURL=builtin-file-B8Y36s1a.mjs.map
62
+ //# sourceMappingURL=builtin-file-BJwCniGZ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-file-B8Y36s1a.mjs","names":["computed","splitProps","hasFileExtension","replaceExtension","replacePath","isSet","usePowerlinesSafe","TSDocModule","TypescriptFile","TypescriptFileHeader","TypescriptFileHeaderImports","BuiltinFile","props","children","imports","builtinImports","id","description","tsx","rest","context","path","builtinsPath","_$createComponent","_$mergeProps","header","name","meta","kind","extension","value"],"sources":["../src/typescript/components/builtin-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 { computed, splitProps } from \"@alloy-js/core\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport type { TSDocModuleProps } from \"./tsdoc\";\nimport { TSDocModule } from \"./tsdoc\";\nimport {\n TypescriptFile,\n TypescriptFileHeader,\n TypescriptFileHeaderImports,\n TypescriptFileProps\n} from \"./typescript-file\";\n\nexport type BuiltinFileProps = Omit<TypescriptFileProps, \"path\"> &\n Omit<TSDocModuleProps, \"name\"> & {\n /**\n * The runtime module identifier.\n *\n * @remarks\n * This value will be included after the \\`storm:\\` prefix in the import statement.\n */\n id: string;\n\n /**\n * The description for the builtin module.\n */\n description?: string;\n\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function BuiltinFile(props: BuiltinFileProps) {\n const [{ children, imports, builtinImports, id, description, tsx }, rest] =\n splitProps(props, [\n \"children\",\n \"imports\",\n \"builtinImports\",\n \"id\",\n \"description\",\n \"tsx\"\n ]);\n\n const context = usePowerlinesSafe();\n const path = computed(() =>\n replacePath(\n `${!isSet(tsx) ? id : replaceExtension(id)}${\n hasFileExtension(id) && !isSet(tsx) ? \"\" : tsx ? \".tsx\" : \".ts\"\n }`,\n context?.builtinsPath\n )\n );\n\n return (\n <TypescriptFile\n header={\n <TypescriptFileHeader\n header={<TSDocModule name={id}>{description}</TSDocModule>}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n />\n </TypescriptFileHeader>\n }\n meta={{\n kind: \"builtin\",\n extension: tsx ? \"tsx\" : \"ts\",\n id: replaceExtension(id)\n }}\n {...rest}\n path={path.value}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":""}
1
+ {"version":3,"file":"builtin-file-BJwCniGZ.mjs","names":["computed","splitProps","hasFileExtension","replaceExtension","replacePath","isSet","usePowerlinesSafe","TSDocModule","TypescriptFile","TypescriptFileHeader","TypescriptFileHeaderImports","BuiltinFile","props","children","imports","builtinImports","id","description","tsx","rest","context","path","builtinsPath","_$createComponent","_$mergeProps","header","name","meta","kind","extension","value"],"sources":["../src/typescript/components/builtin-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 { computed, splitProps } from \"@alloy-js/core\";\nimport { hasFileExtension } from \"@stryke/path/file-path-fns\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSet } from \"@stryke/type-checks/is-set\";\nimport { usePowerlinesSafe } from \"../../core/contexts/context\";\nimport type { TSDocModuleProps } from \"./tsdoc\";\nimport { TSDocModule } from \"./tsdoc\";\nimport {\n TypescriptFile,\n TypescriptFileHeader,\n TypescriptFileHeaderImports,\n TypescriptFileProps\n} from \"./typescript-file\";\n\nexport type BuiltinFileProps = Omit<TypescriptFileProps, \"path\"> &\n Omit<TSDocModuleProps, \"name\"> & {\n /**\n * The runtime module identifier.\n *\n * @remarks\n * This value will be included after the \\`storm:\\` prefix in the import statement.\n */\n id: string;\n\n /**\n * The description for the builtin module.\n */\n description?: string;\n\n /**\n * Whether the file is a TSX file.\n *\n * @defaultValue false\n */\n tsx?: boolean;\n };\n\n/**\n * A base component representing a Powerlines generated Typescript source file.\n *\n * @param props - The properties for the source file.\n * @returns The rendered source file component.\n */\nexport function BuiltinFile(props: BuiltinFileProps) {\n const [{ children, imports, builtinImports, id, description, tsx }, rest] =\n splitProps(props, [\n \"children\",\n \"imports\",\n \"builtinImports\",\n \"id\",\n \"description\",\n \"tsx\"\n ]);\n\n const context = usePowerlinesSafe();\n const path = computed(() =>\n replacePath(\n `${!isSet(tsx) ? id : replaceExtension(id)}${\n hasFileExtension(id) && !isSet(tsx) ? \"\" : tsx ? \".tsx\" : \".ts\"\n }`,\n context?.builtinsPath\n )\n );\n\n return (\n <TypescriptFile\n header={\n <TypescriptFileHeader\n header={<TSDocModule name={id}>{description}</TSDocModule>}>\n <TypescriptFileHeaderImports\n imports={imports}\n builtinImports={builtinImports}\n />\n </TypescriptFileHeader>\n }\n meta={{\n kind: \"builtin\",\n extension: tsx ? \"tsx\" : \"ts\",\n id: replaceExtension(id)\n }}\n {...rest}\n path={path.value}>\n {children}\n </TypescriptFile>\n );\n}\n"],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { h as TSDocModuleProps } from "./tsdoc-CwqGhmLe.mjs";
2
- import { o as TypescriptFileProps } from "./typescript-file-dsHm_Y5Y.mjs";
1
+ import { h as TSDocModuleProps } from "./tsdoc-cuL_4mkw.mjs";
2
+ import { o as TypescriptFileProps } from "./typescript-file-CsvsUP0u.mjs";
3
3
  import * as _alloy_js_core17 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
@@ -32,4 +32,4 @@ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core17.Children
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFileProps as n, __ΩBuiltinFileProps as r, BuiltinFile as t };
35
- //# sourceMappingURL=builtin-file-xc-QSTiJ.d.mts.map
35
+ //# sourceMappingURL=builtin-file-CzxGDjwC.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-file-PDckmfzE.d.cts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
1
+ {"version":3,"file":"builtin-file-CzxGDjwC.d.mts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { h as TSDocModuleProps } from "./tsdoc-BpOXtq0v.cjs";
2
- import { o as TypescriptFileProps } from "./typescript-file-BqamPJcI.cjs";
1
+ import { h as TSDocModuleProps } from "./tsdoc-BlBkyIWO.cjs";
2
+ import { o as TypescriptFileProps } from "./typescript-file-Fc4x93jB.cjs";
3
3
  import * as _alloy_js_core17 from "@alloy-js/core";
4
4
 
5
5
  //#region src/typescript/components/builtin-file.d.ts
@@ -32,4 +32,4 @@ declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core17.Children
32
32
  declare type __ΩBuiltinFileProps = any[];
33
33
  //#endregion
34
34
  export { BuiltinFileProps as n, __ΩBuiltinFileProps as r, BuiltinFile as t };
35
- //# sourceMappingURL=builtin-file-PDckmfzE.d.cts.map
35
+ //# sourceMappingURL=builtin-file-RIBYvoCN.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builtin-file-q7bTHn0Z.d.mts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
1
+ {"version":3,"file":"builtin-file-RIBYvoCN.d.cts","names":[],"sources":["../src/typescript/components/builtin-file.tsx"],"sourcesContent":[],"mappings":";;;;;KAgCY,gBAAA,GAAmB,KAAK,+BAClC,KAAK;;;AADP;;;;EACE,EAAA,EAAA,MAAA;EAAI;AA4BN;;;;;;;;;;;;;;;;iBAAgB,WAAA,QAAmB,mBAAgB,gBAAA,CAAA"}
@@ -1,5 +1,5 @@
1
- import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty, Type, TypeEnum, TypeUnion } from "@powerlines/deepkit/vendor/type";
2
1
  import { Context, PluginContext } from "powerlines/types/context";
2
+ import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty, Type, TypeEnum, TypeUnion } from "@powerlines/deepkit/vendor/type";
3
3
  import { CapnpcOptions, CapnpcResult } from "@stryke/capnp/types";
4
4
 
5
5
  //#region src/helpers/capnp.d.ts
@@ -85,4 +85,4 @@ declare type __ΩGenerateCapnpOptions = any[];
85
85
  declare type __ΩGenerateCapnpStructOptions = any[];
86
86
  //#endregion
87
87
  export { stringifyCapnpDefaultValue as C, isVoidType as S, generateCapnpSchema as _, StdioOptions as a, getCapnpUnionTypes as b, __ΩIOType as c, generateCapnp as d, generateCapnpEnumSchema as f, generateCapnpPrimitive as g, generateCapnpMethodSchema as h, LARGE_BUFFER as i, __ΩStdioOptions as l, generateCapnpInterface as m, GenerateCapnpStructOptions as n, __ΩGenerateCapnpOptions as o, generateCapnpId as p, IOType as r, __ΩGenerateCapnpStructOptions as s, GenerateCapnpOptions as t, compile as u, generateCapnpStruct as v, stringifyCapnpValue as w, isCapnpStringUnion as x, getCapnpEnumTypes as y };
88
- //# sourceMappingURL=capnp-CLxcoMcG.d.mts.map
88
+ //# sourceMappingURL=capnp-BfsEWHU2.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capnp-CLxcoMcG.d.mts","names":[],"sources":["../src/helpers/capnp.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA8DA;;;;;AAGG,iBAHmB,OAAA,CAGnB,OAAA,EAFQ,OAER,EAAA,OAAA,CAAA,EADQ,OACR,CADgB,aAChB,CAAA,CAAA,EAAA,OAAA,CAAQ,YAAR,CAAA;;AA+BH;AAiBA;AAoBA;AAsBA;AAgBA;AAUA;AAMa,iBA3FG,0BAAA,CA2F0B,QAAA,EA1F9B,kBA0F8B,GA1FT,mBA0FS,EAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAC1C;AACA;;;;;AAMA;AAUiB,iBA5FD,mBAAA,CA4FqB,IAAA,EA5FK,IA4FL,EAAA,KAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAIrC;;;;;;AAmBiB,iBA/FD,iBAAA,CA+F4B,IAAQ,EA/FZ,IA+FY,CAAA,EAAA,MAAA,GAAA,SAAoB,GAAA,IAAA;AAIxE;AAkBA;AA2DA;AA8EA;AA4MA;AAoEA;iBAxfgB,UAAA,OAAiB;;;;;;;iBAgBjB,kBAAA,OAAyB,OAAO;;;;;;;iBAUhC,kBAAA,OAAyB;cAM5B;KACD,MAAA;KACA,YAAA,GACR,SACA,MAAM;iBAIY,eAAA,CAAA,GAAe;UAUpB,oBAAA;;;iBAIK,aAAA,UACX,2BACG,+BACH,uBAAoB;UAgBd,0BAAA,SAAmC;;;iBAIpC,mBAAA,aACF,gCACH;iBAgBK,sBAAA,aACF,gCACH;iBAyDK,mBAAA,aACF,gCACH;iBA4EK,yBAAA,aACF;iBA2ME,uBAAA,OACR,WAAW;;;;;;;iBAmEH,sBAAA,OAA6B"}
1
+ {"version":3,"file":"capnp-BfsEWHU2.d.cts","names":[],"sources":["../src/helpers/capnp.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA8DA;;;;;AAGG,iBAHmB,OAAA,CAGnB,OAAA,EAFQ,OAER,EAAA,OAAA,CAAA,EADQ,OACR,CADgB,aAChB,CAAA,CAAA,EAAA,OAAA,CAAQ,YAAR,CAAA;;AA+BH;AAiBA;AAoBA;AAsBA;AAgBA;AAUA;AAMa,iBA3FG,0BAAA,CA2F0B,QAAA,EA1F9B,kBA0F8B,GA1FT,mBA0FS,EAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAC1C;AACA;;;;;AAMA;AAUiB,iBA5FD,mBAAA,CA4FqB,IAAA,EA5FK,IA4FL,EAAA,KAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAIrC;;;;;;AAmBiB,iBA/FD,iBAAA,CA+F4B,IAAQ,EA/FZ,IA+FY,CAAA,EAAA,MAAA,GAAA,SAAoB,GAAA,IAAA;AAIxE;AAkBA;AA2DA;AA8EA;AA4MA;AAoEA;iBAxfgB,UAAA,OAAiB;;;;;;;iBAgBjB,kBAAA,OAAyB,OAAO;;;;;;;iBAUhC,kBAAA,OAAyB;cAM5B;KACD,MAAA;KACA,YAAA,GACR,SACA,MAAM;iBAIY,eAAA,CAAA,GAAe;UAUpB,oBAAA;;;iBAIK,aAAA,UACX,2BACG,+BACH,uBAAoB;UAgBd,0BAAA,SAAmC;;;iBAIpC,mBAAA,aACF,gCACH;iBAgBK,sBAAA,aACF,gCACH;iBAyDK,mBAAA,aACF,gCACH;iBA4EK,yBAAA,aACF;iBA2ME,uBAAA,OACR,WAAW;;;;;;;iBAmEH,sBAAA,OAA6B"}
@@ -1,5 +1,5 @@
1
- import { Context, PluginContext } from "powerlines/types/context";
2
1
  import { ReflectionClass, ReflectionMethod, ReflectionParameter, ReflectionProperty, Type, TypeEnum, TypeUnion } from "@powerlines/deepkit/vendor/type";
2
+ import { Context, PluginContext } from "powerlines/types/context";
3
3
  import { CapnpcOptions, CapnpcResult } from "@stryke/capnp/types";
4
4
 
5
5
  //#region src/helpers/capnp.d.ts
@@ -85,4 +85,4 @@ declare type __ΩGenerateCapnpOptions = any[];
85
85
  declare type __ΩGenerateCapnpStructOptions = any[];
86
86
  //#endregion
87
87
  export { stringifyCapnpDefaultValue as C, isVoidType as S, generateCapnpSchema as _, StdioOptions as a, getCapnpUnionTypes as b, __ΩIOType as c, generateCapnp as d, generateCapnpEnumSchema as f, generateCapnpPrimitive as g, generateCapnpMethodSchema as h, LARGE_BUFFER as i, __ΩStdioOptions as l, generateCapnpInterface as m, GenerateCapnpStructOptions as n, __ΩGenerateCapnpOptions as o, generateCapnpId as p, IOType as r, __ΩGenerateCapnpStructOptions as s, GenerateCapnpOptions as t, compile as u, generateCapnpStruct as v, stringifyCapnpValue as w, isCapnpStringUnion as x, getCapnpEnumTypes as y };
88
- //# sourceMappingURL=capnp-DbPtfpg2.d.cts.map
88
+ //# sourceMappingURL=capnp-DcnwPttP.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"capnp-DbPtfpg2.d.cts","names":[],"sources":["../src/helpers/capnp.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA8DA;;;;;AAGG,iBAHmB,OAAA,CAGnB,OAAA,EAFQ,OAER,EAAA,OAAA,CAAA,EADQ,OACR,CADgB,aAChB,CAAA,CAAA,EAAA,OAAA,CAAQ,YAAR,CAAA;;AA+BH;AAiBA;AAoBA;AAsBA;AAgBA;AAUA;AAMa,iBA3FG,0BAAA,CA2F0B,QAAA,EA1F9B,kBA0F8B,GA1FT,mBA0FS,EAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAC1C;AACA;;;;;AAMA;AAUiB,iBA5FD,mBAAA,CA4FqB,IAAA,EA5FK,IA4FL,EAAA,KAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAIrC;;;;;;AAmBiB,iBA/FD,iBAAA,CA+F4B,IAAQ,EA/FZ,IA+FY,CAAA,EAAA,MAAA,GAAA,SAAoB,GAAA,IAAA;AAIxE;AAkBA;AA2DA;AA8EA;AA4MA;AAoEA;iBAxfgB,UAAA,OAAiB;;;;;;;iBAgBjB,kBAAA,OAAyB,OAAO;;;;;;;iBAUhC,kBAAA,OAAyB;cAM5B;KACD,MAAA;KACA,YAAA,GACR,SACA,MAAM;iBAIY,eAAA,CAAA,GAAe;UAUpB,oBAAA;;;iBAIK,aAAA,UACX,2BACG,+BACH,uBAAoB;UAgBd,0BAAA,SAAmC;;;iBAIpC,mBAAA,aACF,gCACH;iBAgBK,sBAAA,aACF,gCACH;iBAyDK,mBAAA,aACF,gCACH;iBA4EK,yBAAA,aACF;iBA2ME,uBAAA,OACR,WAAW;;;;;;;iBAmEH,sBAAA,OAA6B"}
1
+ {"version":3,"file":"capnp-DcnwPttP.d.mts","names":[],"sources":["../src/helpers/capnp.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA8DA;;;;;AAGG,iBAHmB,OAAA,CAGnB,OAAA,EAFQ,OAER,EAAA,OAAA,CAAA,EADQ,OACR,CADgB,aAChB,CAAA,CAAA,EAAA,OAAA,CAAQ,YAAR,CAAA;;AA+BH;AAiBA;AAoBA;AAsBA;AAgBA;AAUA;AAMa,iBA3FG,0BAAA,CA2F0B,QAAA,EA1F9B,kBA0F8B,GA1FT,mBA0FS,EAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAC1C;AACA;;;;;AAMA;AAUiB,iBA5FD,mBAAA,CA4FqB,IAAA,EA5FK,IA4FL,EAAA,KAAA,EAAA,GAAA,CAAA,EAAA,MAAA;AAIrC;;;;;;AAmBiB,iBA/FD,iBAAA,CA+F4B,IAAQ,EA/FZ,IA+FY,CAAA,EAAA,MAAA,GAAA,SAAoB,GAAA,IAAA;AAIxE;AAkBA;AA2DA;AA8EA;AA4MA;AAoEA;iBAxfgB,UAAA,OAAiB;;;;;;;iBAgBjB,kBAAA,OAAyB,OAAO;;;;;;;iBAUhC,kBAAA,OAAyB;cAM5B;KACD,MAAA;KACA,YAAA,GACR,SACA,MAAM;iBAIY,eAAA,CAAA,GAAe;UAUpB,oBAAA;;;iBAIK,aAAA,UACX,2BACG,+BACH,uBAAoB;UAgBd,0BAAA,SAAmC;;;iBAIpC,mBAAA,aACF,gCACH;iBAgBK,sBAAA,aACF,gCACH;iBAyDK,mBAAA,aACF,gCACH;iBA4EK,yBAAA,aACF;iBA2ME,uBAAA,OACR,WAAW;;;;;;;iBAmEH,sBAAA,OAA6B"}
@@ -257,4 +257,4 @@ function generateCapnpPrimitive(type) {
257
257
 
258
258
  //#endregion
259
259
  export { generateCapnpId as a, generateCapnpPrimitive as c, getCapnpEnumTypes as d, getCapnpUnionTypes as f, stringifyCapnpValue as g, stringifyCapnpDefaultValue as h, generateCapnpEnumSchema as i, generateCapnpSchema as l, isVoidType as m, compile as n, generateCapnpInterface as o, isCapnpStringUnion as p, generateCapnp as r, generateCapnpMethodSchema as s, LARGE_BUFFER as t, generateCapnpStruct as u };
260
- //# sourceMappingURL=capnp-CPbob9Cm.mjs.map
260
+ //# sourceMappingURL=capnp-XK1IvfIR.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"capnp-CPbob9Cm.mjs","names":["getUnionTypes","kindToName","getClassName","memberNameToString","ReflectionKind","capnpc","resolveOptions","toArray","getUniqueBy","StormJSON","joinPaths","camelCase","getWords","pascalCase","titleCase","isBigInt","isNull","isNumber","isString","isUndefined","defu","Buffer","exec","promisify","getBaseFileHeader","compile","context","options","opts","ts","js","dts","schemas","artifactsPath","tsconfig","projectRoot","config","workspaceRoot","workspaceConfig","tty","resolvedOptions","Error","join","stringifyCapnpDefaultValue","property","value","stringifyCapnpValue","type","getDefaultValue","kind","string","literal","String","enum","array","stringify","object","objectLiteral","replaceAll","getCapnpEnumTypes","unique","values","filter","enumMember","length","isVoidType","void","never","null","undefined","symbol","getCapnpUnionTypes","isCapnpStringUnion","some","member","LARGE_BUFFER","execAsync","generateCapnpId","stdout","windowsHide","maxBuffer","killSignal","generateCapnp","reflection","capnpId","trim","replace","getMethods","generateCapnpStruct","generateCapnpInterface","structName","name","getTitle","getName","generateCapnpEnums","generateCapnpSchema","interfaceName","formatEnumName","enums","getProperties","prop","isIgnored","union","sort","a","b","isReadonly","getNameAsString","localeCompare","map","enumeration","generateCapnpEnumSchema","index","indexCounter","generateCapnpPropertySchema","methods","generateCapnpMethodSchema","class","classType","Map","Date","methodName","reflectionClass","getParameters","param","generateCapnpPrimitive","getType","hasDefault","getReturnType","getDescription","generateCapnpPropertyComment","result","relaxed","reduce","ret","word","includes","substring","lastIndexOf","current","getSubType","typeArguments","ArrayBuffer","typeName","indexType","types","enumType","Object","entries","key","Set","bigint","number","regexp","boolean"],"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 { getBaseFileHeader } from \"powerlines/lib/utilities/file-header\";\nimport { Context, PluginContext } from \"powerlines/types/context\";\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.projectRoot,\n workspaceRoot: context.workspaceConfig.workspaceRoot,\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${getBaseFileHeader(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":""}
1
+ {"version":3,"file":"capnp-XK1IvfIR.mjs","names":["getUnionTypes","kindToName","getClassName","memberNameToString","ReflectionKind","capnpc","resolveOptions","toArray","getUniqueBy","StormJSON","joinPaths","camelCase","getWords","pascalCase","titleCase","isBigInt","isNull","isNumber","isString","isUndefined","defu","Buffer","exec","promisify","getBaseFileHeader","compile","context","options","opts","ts","js","dts","schemas","artifactsPath","tsconfig","projectRoot","config","workspaceRoot","workspaceConfig","tty","resolvedOptions","Error","join","stringifyCapnpDefaultValue","property","value","stringifyCapnpValue","type","getDefaultValue","kind","string","literal","String","enum","array","stringify","object","objectLiteral","replaceAll","getCapnpEnumTypes","unique","values","filter","enumMember","length","isVoidType","void","never","null","undefined","symbol","getCapnpUnionTypes","isCapnpStringUnion","some","member","LARGE_BUFFER","execAsync","generateCapnpId","stdout","windowsHide","maxBuffer","killSignal","generateCapnp","reflection","capnpId","trim","replace","getMethods","generateCapnpStruct","generateCapnpInterface","structName","name","getTitle","getName","generateCapnpEnums","generateCapnpSchema","interfaceName","formatEnumName","enums","getProperties","prop","isIgnored","union","sort","a","b","isReadonly","getNameAsString","localeCompare","map","enumeration","generateCapnpEnumSchema","index","indexCounter","generateCapnpPropertySchema","methods","generateCapnpMethodSchema","class","classType","Map","Date","methodName","reflectionClass","getParameters","param","generateCapnpPrimitive","getType","hasDefault","getReturnType","getDescription","generateCapnpPropertyComment","result","relaxed","reduce","ret","word","includes","substring","lastIndexOf","current","getSubType","typeArguments","ArrayBuffer","typeName","indexType","types","enumType","Object","entries","key","Set","bigint","number","regexp","boolean"],"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 { getBaseFileHeader } from \"powerlines/lib/utilities/file-header\";\nimport { Context, PluginContext } from \"powerlines/types/context\";\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.projectRoot,\n workspaceRoot: context.workspaceConfig.workspaceRoot,\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${getBaseFileHeader(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":""}
@@ -140,4 +140,4 @@ declare type __ΩTypescriptFileImports = any[];
140
140
  declare type __ΩSourceFileHeaderProps = any[];
141
141
  //#endregion
142
142
  export { __ΩTypescriptFileImportItem as A, __ΩOutputFile as C, __ΩRenderEntryContext as D, __ΩRenderContext as E, __ΩWriteOutputFile as M, __ΩRenderOutputContext as O, __ΩOutputDirectory as S, __ΩRenderBuiltinContext as T, __ΩBuiltinSourceFileContext as _, CopyOutputFile as a, __ΩCopyFileOutputContext as b, ReflectionOverrideInterface as c, RenderEntryContext as d, RenderOutputContext as f, WriteOutputFile as g, TypescriptFileImports as h, CopyFileOutputContext as i, __ΩTypescriptFileImports as j, __ΩSourceFileHeaderProps as k, RenderBuiltinContext as l, TypescriptFileImportItem as m, ComponentProps as n, OutputDirectory as o, SourceFileHeaderProps as p, ComponentPropsWithChildren as r, OutputFile as s, BuiltinSourceFileContext as t, RenderContext as u, __ΩComponentProps as v, __ΩReflectionOverrideInterface as w, __ΩCopyOutputFile as x, __ΩComponentPropsWithChildren as y };
143
- //# sourceMappingURL=components-DqfyRVFO.d.cts.map
143
+ //# sourceMappingURL=components-DPPi58b5.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-DqfyRVFO.d.cts","names":[],"sources":["../src/types/components.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,cAAA;;EAAA,IAAA,EAAA,MAAA;EAcA,UAAA,EAAA,MAAe;EAepB;;;;;;EAOM,MAAA,CAAA,EAzBP,aAyBO;AAElB;AAMiB,UA9BA,eAAA,CA8BkB;EAIlB,IAAA,EAAA,MAAA,GAAA,OAAA,GAAoB,SAAA;EAIpB,IAAA,EAAA,MAAA;EAIA,QAAA,EAAA,MAAA;EAKA,QAAA,EAAA,MAAc;EAEhB;;;;;;EAF+B,MAAA,CAAA,EAnCnC,aAmCmC;AAwB9C;AAOY,KA/DA,UAAA,GA+DA,CA9DP,eA8DiC,GAAA;EAAQ,IAAA,EAAA,MAAA;CAAL,CAAA,GAAA,CA7DpC,eA6DoC,GAAA;EACzB,IAAA,EAAA,OAAA;EAAL,cAAA,CAAA,EA5DY,2BA4DZ;CAAT,CAAA,GAAA,CA1DG,eA0DH,GAAA;EAAQ,IAAA,EAAA,SAAA;EAEO,EAAA,EAAA,MAAA;AAOjB,CAAA,CAAA,GAlEI,cAkEa;AACC,UAjED,eAAA,CAiEC;EACA,IAAA,EAAA,WAAA;EAEO,IAAA,EAAA,MAAA;EAAR,QAAA,EAAA,CAjEJ,eAiEI,GAjEc,UAiEd,CAAA,EAAA;;AAGA,UAjEA,kBAAA,CAiEwB;EAO7B,cAAA,EAvEM,2BAuEe;;AAEf,UAtED,oBAAA,CAsEC;EAFkB,EAAA,EAAA,MAAA;;AAKnB,UArEA,mBAAA,CAqEsB;SApE9B;;UAGQ,qBAAA;;;;UAKA,aAAA,SAAsB;;eAExB;;;;cAKD;;;;YAKF;;;;aAKC;MACP;;;;;UAMW,cAAA;aACJ;;;;;KAMD,0BAAA,GAA6B,KAAK,8BAC5C,SAAS,KAAK;UAEC,wBAAA,SAAiC;;;;;;UAOjC;kBACC;kBACA;;iBAED,QAAQ;;UAGR,wBAAA;;;;;;KAOL,qBAAA,GAAwB,+BAElB,MAAM;UAGP,qBAAA,SAA8B"}
1
+ {"version":3,"file":"components-DPPi58b5.d.cts","names":[],"sources":["../src/types/components.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,cAAA;;EAAA,IAAA,EAAA,MAAA;EAcA,UAAA,EAAA,MAAe;EAepB;;;;;;EAOM,MAAA,CAAA,EAzBP,aAyBO;AAElB;AAMiB,UA9BA,eAAA,CA8BkB;EAIlB,IAAA,EAAA,MAAA,GAAA,OAAA,GAAoB,SAAA;EAIpB,IAAA,EAAA,MAAA;EAIA,QAAA,EAAA,MAAA;EAKA,QAAA,EAAA,MAAc;EAEhB;;;;;;EAF+B,MAAA,CAAA,EAnCnC,aAmCmC;AAwB9C;AAOY,KA/DA,UAAA,GA+DA,CA9DP,eA8DiC,GAAA;EAAQ,IAAA,EAAA,MAAA;CAAL,CAAA,GAAA,CA7DpC,eA6DoC,GAAA;EACzB,IAAA,EAAA,OAAA;EAAL,cAAA,CAAA,EA5DY,2BA4DZ;CAAT,CAAA,GAAA,CA1DG,eA0DH,GAAA;EAAQ,IAAA,EAAA,SAAA;EAEO,EAAA,EAAA,MAAA;AAOjB,CAAA,CAAA,GAlEI,cAkEa;AACC,UAjED,eAAA,CAiEC;EACA,IAAA,EAAA,WAAA;EAEO,IAAA,EAAA,MAAA;EAAR,QAAA,EAAA,CAjEJ,eAiEI,GAjEc,UAiEd,CAAA,EAAA;;AAGA,UAjEA,kBAAA,CAiEwB;EAO7B,cAAA,EAvEM,2BAuEe;;AAEf,UAtED,oBAAA,CAsEC;EAFkB,EAAA,EAAA,MAAA;;AAKnB,UArEA,mBAAA,CAqEsB;SApE9B;;UAGQ,qBAAA;;;;UAKA,aAAA,SAAsB;;eAExB;;;;cAKD;;;;YAKF;;;;aAKC;MACP;;;;;UAMW,cAAA;aACJ;;;;;KAMD,0BAAA,GAA6B,KAAK,8BAC5C,SAAS,KAAK;UAEC,wBAAA,SAAiC;;;;;;UAOjC;kBACC;kBACA;;iBAED,QAAQ;;UAGR,wBAAA;;;;;;KAOL,qBAAA,GAAwB,+BAElB,MAAM;UAGP,qBAAA,SAA8B"}
@@ -140,4 +140,4 @@ declare type __ΩTypescriptFileImports = any[];
140
140
  declare type __ΩSourceFileHeaderProps = any[];
141
141
  //#endregion
142
142
  export { __ΩTypescriptFileImportItem as A, __ΩOutputFile as C, __ΩRenderEntryContext as D, __ΩRenderContext as E, __ΩWriteOutputFile as M, __ΩRenderOutputContext as O, __ΩOutputDirectory as S, __ΩRenderBuiltinContext as T, __ΩBuiltinSourceFileContext as _, CopyOutputFile as a, __ΩCopyFileOutputContext as b, ReflectionOverrideInterface as c, RenderEntryContext as d, RenderOutputContext as f, WriteOutputFile as g, TypescriptFileImports as h, CopyFileOutputContext as i, __ΩTypescriptFileImports as j, __ΩSourceFileHeaderProps as k, RenderBuiltinContext as l, TypescriptFileImportItem as m, ComponentProps as n, OutputDirectory as o, SourceFileHeaderProps as p, ComponentPropsWithChildren as r, OutputFile as s, BuiltinSourceFileContext as t, RenderContext as u, __ΩComponentProps as v, __ΩReflectionOverrideInterface as w, __ΩCopyOutputFile as x, __ΩComponentPropsWithChildren as y };
143
- //# sourceMappingURL=components-REdw2IIi.d.mts.map
143
+ //# sourceMappingURL=components-oHSM7vmp.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components-REdw2IIi.d.mts","names":[],"sources":["../src/types/components.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,cAAA;;EAAA,IAAA,EAAA,MAAA;EAcA,UAAA,EAAA,MAAe;EAepB;;;;;;EAOM,MAAA,CAAA,EAzBP,aAyBO;AAElB;AAMiB,UA9BA,eAAA,CA8BkB;EAIlB,IAAA,EAAA,MAAA,GAAA,OAAA,GAAoB,SAAA;EAIpB,IAAA,EAAA,MAAA;EAIA,QAAA,EAAA,MAAA;EAKA,QAAA,EAAA,MAAc;EAEhB;;;;;;EAF+B,MAAA,CAAA,EAnCnC,aAmCmC;AAwB9C;AAOY,KA/DA,UAAA,GA+DA,CA9DP,eA8DiC,GAAA;EAAQ,IAAA,EAAA,MAAA;CAAL,CAAA,GAAA,CA7DpC,eA6DoC,GAAA;EACzB,IAAA,EAAA,OAAA;EAAL,cAAA,CAAA,EA5DY,2BA4DZ;CAAT,CAAA,GAAA,CA1DG,eA0DH,GAAA;EAAQ,IAAA,EAAA,SAAA;EAEO,EAAA,EAAA,MAAA;AAOjB,CAAA,CAAA,GAlEI,cAkEa;AACC,UAjED,eAAA,CAiEC;EACA,IAAA,EAAA,WAAA;EAEO,IAAA,EAAA,MAAA;EAAR,QAAA,EAAA,CAjEJ,eAiEI,GAjEc,UAiEd,CAAA,EAAA;;AAGA,UAjEA,kBAAA,CAiEwB;EAO7B,cAAA,EAvEM,2BAuEe;;AAEf,UAtED,oBAAA,CAsEC;EAFkB,EAAA,EAAA,MAAA;;AAKnB,UArEA,mBAAA,CAqEsB;SApE9B;;UAGQ,qBAAA;;;;UAKA,aAAA,SAAsB;;eAExB;;;;cAKD;;;;YAKF;;;;aAKC;MACP;;;;;UAMW,cAAA;aACJ;;;;;KAMD,0BAAA,GAA6B,KAAK,8BAC5C,SAAS,KAAK;UAEC,wBAAA,SAAiC;;;;;;UAOjC;kBACC;kBACA;;iBAED,QAAQ;;UAGR,wBAAA;;;;;;KAOL,qBAAA,GAAwB,+BAElB,MAAM;UAGP,qBAAA,SAA8B"}
1
+ {"version":3,"file":"components-oHSM7vmp.d.mts","names":[],"sources":["../src/types/components.ts"],"sourcesContent":[],"mappings":";;;;;;UAuBiB,cAAA;;EAAA,IAAA,EAAA,MAAA;EAcA,UAAA,EAAA,MAAe;EAepB;;;;;;EAOM,MAAA,CAAA,EAzBP,aAyBO;AAElB;AAMiB,UA9BA,eAAA,CA8BkB;EAIlB,IAAA,EAAA,MAAA,GAAA,OAAA,GAAoB,SAAA;EAIpB,IAAA,EAAA,MAAA;EAIA,QAAA,EAAA,MAAA;EAKA,QAAA,EAAA,MAAc;EAEhB;;;;;;EAF+B,MAAA,CAAA,EAnCnC,aAmCmC;AAwB9C;AAOY,KA/DA,UAAA,GA+DA,CA9DP,eA8DiC,GAAA;EAAQ,IAAA,EAAA,MAAA;CAAL,CAAA,GAAA,CA7DpC,eA6DoC,GAAA;EACzB,IAAA,EAAA,OAAA;EAAL,cAAA,CAAA,EA5DY,2BA4DZ;CAAT,CAAA,GAAA,CA1DG,eA0DH,GAAA;EAAQ,IAAA,EAAA,SAAA;EAEO,EAAA,EAAA,MAAA;AAOjB,CAAA,CAAA,GAlEI,cAkEa;AACC,UAjED,eAAA,CAiEC;EACA,IAAA,EAAA,WAAA;EAEO,IAAA,EAAA,MAAA;EAAR,QAAA,EAAA,CAjEJ,eAiEI,GAjEc,UAiEd,CAAA,EAAA;;AAGA,UAjEA,kBAAA,CAiEwB;EAO7B,cAAA,EAvEM,2BAuEe;;AAEf,UAtED,oBAAA,CAsEC;EAFkB,EAAA,EAAA,MAAA;;AAKnB,UArEA,mBAAA,CAqEsB;SApE9B;;UAGQ,qBAAA;;;;UAKA,aAAA,SAAsB;;eAExB;;;;cAKD;;;;YAKF;;;;aAKC;MACP;;;;;UAMW,cAAA;aACJ;;;;;KAMD,0BAAA,GAA6B,KAAK,8BAC5C,SAAS,KAAK;UAEC,wBAAA,SAAiC;;;;;;UAOjC;kBACC;kBACA;;iBAED,QAAQ;;UAGR,wBAAA;;;;;;KAOL,qBAAA,GAAwB,+BAElB,MAAM;UAGP,qBAAA,SAA8B"}
@@ -27,4 +27,4 @@ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContex
27
27
  declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
28
28
  //#endregion
29
29
  export { usePowerlinesSafe as i, usePowerlines as n, usePowerlinesContext as r, PowerlinesContext as t };
30
- //# sourceMappingURL=context-Cfj0Wk3u.d.cts.map
30
+ //# sourceMappingURL=context-C-CzW-8C.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-Cfj0Wk3u.d.cts","names":[],"sources":["../src/core/contexts/context.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AAQgB,cARH,iBAQuB,EARJ,gBAQI,CARa,aAQb,CAAA;;;;;AAWpC;AACmB,iBAZH,oBAYG,CAAA,iBAXA,aAWA,GAXgB,aAWhB,CAAA,CAAA,CAAA,EAVd,QAUc,GAAA,SAAA;;;;AAYnB;;AACmC,iBAdnB,iBAcmB,CAAA,iBAbhB,aAagB,GAbA,aAaA,CAAA,CAAA,CAAA,EAZ9B,QAY8B,GAAA,SAAA;;;;;;iBADnB,+BACG,gBAAgB,kBAC9B"}
1
+ {"version":3,"file":"context-C-CzW-8C.d.mts","names":[],"sources":["../src/core/contexts/context.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AAQgB,cARH,iBAQuB,EARJ,gBAQI,CARa,aAQb,CAAA;;;;;AAWpC;AACmB,iBAZH,oBAYG,CAAA,iBAXA,aAWA,GAXgB,aAWhB,CAAA,CAAA,CAAA,EAVd,QAUc,GAAA,SAAA;;;;AAYnB;;AACmC,iBAdnB,iBAcmB,CAAA,iBAbhB,aAagB,GAbA,aAaA,CAAA,CAAA,CAAA,EAZ9B,QAY8B,GAAA,SAAA;;;;;;iBADnB,+BACG,gBAAgB,kBAC9B"}
@@ -27,4 +27,4 @@ declare function usePowerlinesSafe<TContext extends PluginContext = PluginContex
27
27
  declare function usePowerlines<TContext extends PluginContext = PluginContext>(): TContext;
28
28
  //#endregion
29
29
  export { usePowerlinesSafe as i, usePowerlines as n, usePowerlinesContext as r, PowerlinesContext as t };
30
- //# sourceMappingURL=context-zWXy6keQ.d.mts.map
30
+ //# sourceMappingURL=context-CiHsTXX7.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-zWXy6keQ.d.mts","names":[],"sources":["../src/core/contexts/context.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AAQgB,cARH,iBAQuB,EARJ,gBAQI,CARa,aAQb,CAAA;;;;;AAWpC;AACmB,iBAZH,oBAYG,CAAA,iBAXA,aAWA,GAXgB,aAWhB,CAAA,CAAA,CAAA,EAVd,QAUc,GAAA,SAAA;;;;AAYnB;;AACmC,iBAdnB,iBAcmB,CAAA,iBAbhB,aAagB,GAbA,aAaA,CAAA,CAAA,CAAA,EAZ9B,QAY8B,GAAA,SAAA;;;;;;iBADnB,+BACG,gBAAgB,kBAC9B"}
1
+ {"version":3,"file":"context-CiHsTXX7.d.cts","names":[],"sources":["../src/core/contexts/context.ts"],"sourcesContent":[],"mappings":";;;;;;;AA4BA;AAQgB,cARH,iBAQuB,EARJ,gBAQI,CARa,aAQb,CAAA;;;;;AAWpC;AACmB,iBAZH,oBAYG,CAAA,iBAXA,aAWA,GAXgB,aAWhB,CAAA,CAAA,CAAA,EAVd,QAUc,GAAA,SAAA;;;;AAYnB;;AACmC,iBAdnB,iBAcmB,CAAA,iBAbhB,aAagB,GAbA,aAaA,CAAA,CAAA,CAAA,EAZ9B,QAY8B,GAAA,SAAA;;;;;;iBADnB,+BACG,gBAAgB,kBAC9B"}
@@ -34,4 +34,4 @@ function usePowerlines() {
34
34
 
35
35
  //#endregion
36
36
  export { usePowerlinesSafe as i, usePowerlines as n, usePowerlinesContext as r, PowerlinesContext as t };
37
- //# sourceMappingURL=context-BaVJCPfX.mjs.map
37
+ //# sourceMappingURL=context-DIUW4n33.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"context-BaVJCPfX.mjs","names":["createNamedContext","useContext","PowerlinesContext","usePowerlinesContext","usePowerlinesSafe","powerlines","undefined","usePowerlines","Error"],"sources":["../src/core/contexts/context.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 {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines/types/context\";\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const PowerlinesContext: ComponentContext<PluginContext> =\n createNamedContext<PluginContext>(\"Powerlines\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n return useContext(PowerlinesContext) as TContext | undefined;\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines ?? undefined;\n}\n\n/**\n * Hook to access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context.\n */\nexport function usePowerlines<\n TContext extends PluginContext = PluginContext\n>(): TContext {\n const powerlines = usePowerlinesSafe<TContext>();\n if (!powerlines) {\n throw new Error(\n \"Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return powerlines;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"context-DIUW4n33.mjs","names":["createNamedContext","useContext","PowerlinesContext","usePowerlinesContext","usePowerlinesSafe","powerlines","undefined","usePowerlines","Error"],"sources":["../src/core/contexts/context.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 {\n ComponentContext,\n createNamedContext,\n useContext\n} from \"@alloy-js/core\";\nimport type { PluginContext } from \"powerlines/types/context\";\n\n/**\n * The Powerlines context used in template rendering.\n */\nexport const PowerlinesContext: ComponentContext<PluginContext> =\n createNamedContext<PluginContext>(\"Powerlines\");\n\n/**\n * Hook to access the Powerlines Context.\n *\n * @returns The Context.\n */\nexport function usePowerlinesContext<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n return useContext(PowerlinesContext) as TContext | undefined;\n}\n\n/**\n * Hook to safely access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context or undefined if not set.\n */\nexport function usePowerlinesSafe<\n TContext extends PluginContext = PluginContext\n>(): TContext | undefined {\n const powerlines = usePowerlinesContext<TContext>();\n\n return powerlines ?? undefined;\n}\n\n/**\n * Hook to access the {@link PluginContext | Powerlines context}.\n *\n * @returns The Powerlines context.\n */\nexport function usePowerlines<\n TContext extends PluginContext = PluginContext\n>(): TContext {\n const powerlines = usePowerlinesSafe<TContext>();\n if (!powerlines) {\n throw new Error(\n \"Powerlines - Context is not set. Please make sure the Alloy components are being provided to an invocation of the `render` function added to plugins by `@powerlines/plugin-alloy`.\"\n );\n }\n\n return powerlines;\n}\n"],"mappings":""}
@@ -1,6 +1,6 @@
1
- import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-CIKSJjPS.cjs";
2
- import "../../components-DqfyRVFO.cjs";
3
- import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-DWXxACyy.cjs";
4
- import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BNYeD1w4.cjs";
5
- import "../../index-DdxxIAKU.cjs";
1
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-t88bpsXq.cjs";
2
+ import "../../components-DPPi58b5.cjs";
3
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-B0sVqs7Q.cjs";
4
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-Bhx5nuCf.cjs";
5
+ import "../../index-BUYyA1Xh.cjs";
6
6
  export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
@@ -1,6 +1,6 @@
1
- import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-Law_SUlM.mjs";
2
- import "../../components-REdw2IIi.mjs";
3
- import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-ceejgNfU.mjs";
4
- import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-YrHdUb8H.mjs";
5
- import "../../index-gpCH5158.mjs";
1
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-CqvSLPi0.mjs";
2
+ import "../../components-oHSM7vmp.mjs";
3
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-PMv_zrfe.mjs";
4
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-Bfny_Zo3.mjs";
5
+ import "../../index-CzItj62a.mjs";
6
6
  export { Output, OutputProps, SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, SourceFile, SourceFileProps, __ΩOutputProps, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant, __ΩSourceFileProps };
@@ -1,8 +1,8 @@
1
- import "../../meta-BuwJuxY9.mjs";
2
- import "../../context-BaVJCPfX.mjs";
3
- import { t as Output } from "../../output-BehYSTRr.mjs";
4
- import { t as SingleLineComment } from "../../single-line-comment-MRVbskt3.mjs";
5
- import { t as SourceFile } from "../../source-file-B5FSrvOa.mjs";
6
- import "../../components-pztyf7qk.mjs";
1
+ import "../../meta-vNWUnnLO.mjs";
2
+ import "../../context-DIUW4n33.mjs";
3
+ import { t as Output } from "../../output-CUxfvVVp.mjs";
4
+ import { t as SingleLineComment } from "../../single-line-comment-CGkTdNez.mjs";
5
+ import { t as SourceFile } from "../../source-file-C2DlmRUm.mjs";
6
+ import "../../components-DTKCKgWS.mjs";
7
7
 
8
8
  export { Output, SingleLineComment, SourceFile };
@@ -1,2 +1,2 @@
1
- import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-CIKSJjPS.cjs";
1
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-t88bpsXq.cjs";
2
2
  export { Output, OutputProps, __ΩOutputProps };
@@ -1,2 +1,2 @@
1
- import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-Law_SUlM.mjs";
1
+ import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-CqvSLPi0.mjs";
2
2
  export { Output, OutputProps, __ΩOutputProps };
@@ -1,4 +1,4 @@
1
- import "../../context-BaVJCPfX.mjs";
2
- import { t as Output } from "../../output-BehYSTRr.mjs";
1
+ import "../../context-DIUW4n33.mjs";
2
+ import { t as Output } from "../../output-CUxfvVVp.mjs";
3
3
 
4
4
  export { Output };
@@ -1,3 +1,3 @@
1
- import "../../components-DqfyRVFO.cjs";
2
- import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-DWXxACyy.cjs";
1
+ import "../../components-DPPi58b5.cjs";
2
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-B0sVqs7Q.cjs";
3
3
  export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
@@ -1,3 +1,3 @@
1
- import "../../components-REdw2IIi.mjs";
2
- import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-ceejgNfU.mjs";
1
+ import "../../components-oHSM7vmp.mjs";
2
+ import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-PMv_zrfe.mjs";
3
3
  export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
@@ -1,3 +1,3 @@
1
- import { t as SingleLineComment } from "../../single-line-comment-MRVbskt3.mjs";
1
+ import { t as SingleLineComment } from "../../single-line-comment-CGkTdNez.mjs";
2
2
 
3
3
  export { SingleLineComment };
@@ -1,3 +1,3 @@
1
- import "../../components-DqfyRVFO.cjs";
2
- import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-BNYeD1w4.cjs";
1
+ import "../../components-DPPi58b5.cjs";
2
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-Bhx5nuCf.cjs";
3
3
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -1,3 +1,3 @@
1
- import "../../components-REdw2IIi.mjs";
2
- import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-YrHdUb8H.mjs";
1
+ import "../../components-oHSM7vmp.mjs";
2
+ import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-Bfny_Zo3.mjs";
3
3
  export { SourceFile, SourceFileProps, __ΩSourceFileProps };
@@ -1,4 +1,4 @@
1
- import "../../meta-BuwJuxY9.mjs";
2
- import { t as SourceFile } from "../../source-file-B5FSrvOa.mjs";
1
+ import "../../meta-vNWUnnLO.mjs";
2
+ import { t as SourceFile } from "../../source-file-C2DlmRUm.mjs";
3
3
 
4
4
  export { SourceFile };
@@ -1,2 +1,2 @@
1
- import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-Cfj0Wk3u.cjs";
1
+ import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-CiHsTXX7.cjs";
2
2
  export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,2 +1,2 @@
1
- import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-zWXy6keQ.mjs";
1
+ import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-C-CzW-8C.mjs";
2
2
  export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,3 +1,3 @@
1
- import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-BaVJCPfX.mjs";
1
+ import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-DIUW4n33.mjs";
2
2
 
3
3
  export { PowerlinesContext, usePowerlines, usePowerlinesContext, usePowerlinesSafe };
@@ -1,6 +1,6 @@
1
- import "../../components-DqfyRVFO.cjs";
2
- import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-Cfj0Wk3u.cjs";
3
- import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-DDwBNdE3.cjs";
4
- import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-I2Uewhuo.cjs";
5
- import "../../index-BJ8-FA6N.cjs";
1
+ import "../../components-DPPi58b5.cjs";
2
+ import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-CiHsTXX7.cjs";
3
+ import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-xgVuv08y.cjs";
4
+ import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-JGVev2J6.cjs";
5
+ import "../../index-qCd8f7Um.cjs";
6
6
  export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩReflectionClassContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,6 +1,6 @@
1
- import "../../components-REdw2IIi.mjs";
2
- import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-zWXy6keQ.mjs";
3
- import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-RtOYCV7t.mjs";
4
- import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-BumisltV.mjs";
5
- import "../../index-DBGd4WeR.mjs";
1
+ import "../../components-oHSM7vmp.mjs";
2
+ import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-C-CzW-8C.mjs";
3
+ import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-CyClLk1y.mjs";
4
+ import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-CAz7PWzK.mjs";
5
+ import "../../index-Iujpc9_6.mjs";
6
6
  export { MetaContext, MetaItem, PowerlinesContext, ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩMetaItem, __ΩReflectionClassContextInterface, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,6 +1,6 @@
1
- import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../../meta-BuwJuxY9.mjs";
2
- import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-BaVJCPfX.mjs";
3
- import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../../reflection-Btb1NqwS.mjs";
4
- import "../../contexts-oubuaPo0.mjs";
1
+ import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../../meta-vNWUnnLO.mjs";
2
+ import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-DIUW4n33.mjs";
3
+ import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../../reflection-ExLWJ473.mjs";
4
+ import "../../contexts-D631HKlO.mjs";
5
5
 
6
6
  export { MetaContext, PowerlinesContext, ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useMeta, useMetaContext, useMetaSafe, usePowerlines, usePowerlinesContext, usePowerlinesSafe, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,2 +1,2 @@
1
- import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-DDwBNdE3.cjs";
1
+ import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-xgVuv08y.cjs";
2
2
  export { MetaContext, MetaItem, __ΩMetaItem, useMeta, useMetaContext, useMetaSafe };
@@ -1,2 +1,2 @@
1
- import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-RtOYCV7t.mjs";
1
+ import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-CyClLk1y.mjs";
2
2
  export { MetaContext, MetaItem, __ΩMetaItem, useMeta, useMetaContext, useMetaSafe };
@@ -1,3 +1,3 @@
1
- import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../../meta-BuwJuxY9.mjs";
1
+ import { i as useMetaSafe, n as useMeta, r as useMetaContext, t as MetaContext } from "../../meta-vNWUnnLO.mjs";
2
2
 
3
3
  export { MetaContext, useMeta, useMetaContext, useMetaSafe };
@@ -1,3 +1,3 @@
1
- import "../../components-DqfyRVFO.cjs";
2
- import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-I2Uewhuo.cjs";
1
+ import "../../components-DPPi58b5.cjs";
2
+ import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-JGVev2J6.cjs";
3
3
  export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,3 +1,3 @@
1
- import "../../components-REdw2IIi.mjs";
2
- import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-BumisltV.mjs";
1
+ import "../../components-oHSM7vmp.mjs";
2
+ import { a as ReflectionPropertyContext, c as useReflectionMethod, i as ReflectionParameterContext, l as useReflectionParameter, n as ReflectionClassContextInterface, o as __ΩReflectionClassContextInterface, r as ReflectionMethodContext, s as useReflectionClass, t as ReflectionClassContext, u as useReflectionProperty } from "../../reflection-CAz7PWzK.mjs";
3
3
  export { ReflectionClassContext, ReflectionClassContextInterface, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, __ΩReflectionClassContextInterface, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };
@@ -1,3 +1,3 @@
1
- import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../../reflection-Btb1NqwS.mjs";
1
+ import { a as useReflectionClass, c as useReflectionProperty, i as ReflectionPropertyContext, n as ReflectionMethodContext, o as useReflectionMethod, r as ReflectionParameterContext, s as useReflectionParameter, t as ReflectionClassContext } from "../../reflection-ExLWJ473.mjs";
2
2
 
3
3
  export { ReflectionClassContext, ReflectionMethodContext, ReflectionParameterContext, ReflectionPropertyContext, useReflectionClass, useReflectionMethod, useReflectionParameter, useReflectionProperty };