@powerlines/plugin-alloy 0.19.26 → 0.19.27
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.
- package/dist/{builtin-file-xc-QSTiJ.d.mts → builtin-file-B1gDGzgo.d.mts} +3 -3
- package/dist/{builtin-file-PDckmfzE.d.cts.map → builtin-file-B1gDGzgo.d.mts.map} +1 -1
- package/dist/{builtin-file-BvEeitxx.d.cts → builtin-file-BFR1F4LN.d.cts} +5 -5
- package/dist/{builtin-file-q7bTHn0Z.d.mts.map → builtin-file-BFR1F4LN.d.cts.map} +1 -1
- package/dist/{builtin-file-B8Y36s1a.mjs → builtin-file-BJwCniGZ.mjs} +4 -4
- package/dist/{builtin-file-B8Y36s1a.mjs.map → builtin-file-BJwCniGZ.mjs.map} +1 -1
- package/dist/{builtin-file-PDckmfzE.d.cts → builtin-file-CzxGDjwC.d.mts} +3 -3
- package/dist/{builtin-file-xc-QSTiJ.d.mts.map → builtin-file-CzxGDjwC.d.mts.map} +1 -1
- package/dist/{builtin-file-q7bTHn0Z.d.mts → builtin-file-DdgGKu84.d.cts} +5 -5
- package/dist/{builtin-file-BvEeitxx.d.cts.map → builtin-file-DdgGKu84.d.cts.map} +1 -1
- package/dist/{capnp-CLxcoMcG.d.mts → capnp-BfsEWHU2.d.cts} +2 -2
- package/dist/{capnp-CLxcoMcG.d.mts.map → capnp-BfsEWHU2.d.cts.map} +1 -1
- package/dist/{capnp-DbPtfpg2.d.cts → capnp-DcnwPttP.d.mts} +2 -2
- package/dist/{capnp-DbPtfpg2.d.cts.map → capnp-DcnwPttP.d.mts.map} +1 -1
- package/dist/{capnp-CPbob9Cm.mjs → capnp-XK1IvfIR.mjs} +1 -1
- package/dist/{capnp-CPbob9Cm.mjs.map → capnp-XK1IvfIR.mjs.map} +1 -1
- package/dist/{components-DqfyRVFO.d.cts → components-DPPi58b5.d.cts} +1 -1
- package/dist/{components-DqfyRVFO.d.cts.map → components-DPPi58b5.d.cts.map} +1 -1
- package/dist/{components-REdw2IIi.d.mts → components-oHSM7vmp.d.mts} +1 -1
- package/dist/{components-REdw2IIi.d.mts.map → components-oHSM7vmp.d.mts.map} +1 -1
- package/dist/{context-Cfj0Wk3u.d.cts → context-C-CzW-8C.d.mts} +1 -1
- package/dist/{context-Cfj0Wk3u.d.cts.map → context-C-CzW-8C.d.mts.map} +1 -1
- package/dist/{context-zWXy6keQ.d.mts → context-CiHsTXX7.d.cts} +1 -1
- package/dist/{context-zWXy6keQ.d.mts.map → context-CiHsTXX7.d.cts.map} +1 -1
- package/dist/{context-BaVJCPfX.mjs → context-DIUW4n33.mjs} +1 -1
- package/dist/{context-BaVJCPfX.mjs.map → context-DIUW4n33.mjs.map} +1 -1
- package/dist/core/components/index.d.cts +5 -5
- package/dist/core/components/index.d.mts +5 -5
- package/dist/core/components/index.mjs +6 -6
- package/dist/core/components/output.d.cts +1 -1
- package/dist/core/components/output.d.mts +1 -1
- package/dist/core/components/output.mjs +2 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/single-line-comment.mjs +1 -1
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/core/components/source-file.d.mts +2 -2
- package/dist/core/components/source-file.mjs +2 -2
- package/dist/core/contexts/context.d.cts +1 -1
- package/dist/core/contexts/context.d.mts +1 -1
- package/dist/core/contexts/context.mjs +1 -1
- package/dist/core/contexts/index.d.cts +5 -5
- package/dist/core/contexts/index.d.mts +5 -5
- package/dist/core/contexts/index.mjs +4 -4
- package/dist/core/contexts/meta.d.cts +1 -1
- package/dist/core/contexts/meta.d.mts +1 -1
- package/dist/core/contexts/meta.mjs +1 -1
- package/dist/core/contexts/reflection.d.cts +2 -2
- package/dist/core/contexts/reflection.d.mts +2 -2
- package/dist/core/contexts/reflection.mjs +1 -1
- package/dist/core/index.d.cts +10 -9
- package/dist/core/index.d.mts +10 -9
- package/dist/core/index.mjs +8 -8
- package/dist/{create-builtin-Bpswa0ZT.d.cts → create-builtin-BvtcWfWV.d.mts} +1 -1
- package/dist/{create-builtin-Bpswa0ZT.d.cts.map → create-builtin-BvtcWfWV.d.mts.map} +1 -1
- package/dist/{create-builtin-Be3J_vqf.mjs → create-builtin-C4n9BYjY.mjs} +1 -1
- package/dist/{create-builtin-Be3J_vqf.mjs.map → create-builtin-C4n9BYjY.mjs.map} +1 -1
- package/dist/{create-builtin-CbEjJreB.d.mts → create-builtin-CI8g-abA.d.cts} +1 -1
- package/dist/{create-builtin-CbEjJreB.d.mts.map → create-builtin-CI8g-abA.d.cts.map} +1 -1
- package/dist/{dynamic-import-statement-B4Ov9C7y.mjs → dynamic-import-statement-BVggdOVL.mjs} +1 -1
- package/dist/{dynamic-import-statement-B4Ov9C7y.mjs.map → dynamic-import-statement-BVggdOVL.mjs.map} +1 -1
- package/dist/{dynamic-import-statement-BgLOAe4B.d.cts → dynamic-import-statement-CS1htio2.d.cts} +3 -3
- package/dist/{dynamic-import-statement-BgLOAe4B.d.cts.map → dynamic-import-statement-CS1htio2.d.cts.map} +1 -1
- package/dist/{dynamic-import-statement-C7f6CN_b.d.mts → dynamic-import-statement-D4OSoBmE.d.cts} +3 -3
- package/dist/{dynamic-import-statement-C7f6CN_b.d.mts.map → dynamic-import-statement-D4OSoBmE.d.cts.map} +1 -1
- package/dist/{dynamic-import-statement-DSNDMC9Y.d.mts → dynamic-import-statement-pdjThvwh.d.mts} +1 -1
- package/dist/{dynamic-import-statement-DSNDMC9Y.d.mts.map → dynamic-import-statement-pdjThvwh.d.mts.map} +1 -1
- package/dist/{entry-file-DVU9IAeI.d.cts → entry-file-BzKcWfGp.d.cts} +4 -4
- package/dist/{entry-file-CmJcd0C4.d.mts.map → entry-file-BzKcWfGp.d.cts.map} +1 -1
- package/dist/entry-file-Ccq_SXmN.d.cts +28 -0
- package/dist/{entry-file-DVU9IAeI.d.cts.map → entry-file-Ccq_SXmN.d.cts.map} +1 -1
- package/dist/{entry-file-CmJcd0C4.d.mts → entry-file-DAQKjse0.d.mts} +2 -2
- package/dist/{entry-file-Dbo9mrsH.d.cts.map → entry-file-DAQKjse0.d.mts.map} +1 -1
- package/dist/{entry-file-Dbo9mrsH.d.cts → entry-file-DUBROn1J.d.mts} +2 -2
- package/dist/entry-file-DUBROn1J.d.mts.map +1 -0
- package/dist/{entry-file-DzlSog-0.mjs → entry-file-P5n-ofhK.mjs} +3 -3
- package/dist/{entry-file-DzlSog-0.mjs.map → entry-file-P5n-ofhK.mjs.map} +1 -1
- package/dist/{front-matter-CXfCT8a8.d.mts → front-matter-BZuLGCXi.d.mts} +1 -1
- package/dist/{front-matter-CXfCT8a8.d.mts.map → front-matter-BZuLGCXi.d.mts.map} +1 -1
- package/dist/{front-matter-BeTG0uJA.mjs → front-matter-Dzh6QhN-.mjs} +1 -1
- package/dist/{front-matter-BeTG0uJA.mjs.map → front-matter-Dzh6QhN-.mjs.map} +1 -1
- package/dist/{front-matter-DpKD40Zz.d.cts → front-matter-tYvUQe2w.d.cts} +3 -3
- package/dist/{front-matter-DpKD40Zz.d.cts.map → front-matter-tYvUQe2w.d.cts.map} +1 -1
- package/dist/helpers/capnp.d.cts +1 -1
- package/dist/helpers/capnp.d.mts +1 -1
- package/dist/helpers/capnp.mjs +1 -1
- package/dist/helpers/create-builtin.d.cts +1 -1
- package/dist/helpers/create-builtin.d.mts +1 -1
- package/dist/helpers/create-builtin.mjs +1 -1
- package/dist/helpers/index.d.cts +4 -4
- package/dist/helpers/index.d.mts +4 -4
- package/dist/helpers/index.mjs +4 -4
- package/dist/helpers/refkey.d.cts +1 -1
- package/dist/helpers/refkey.d.mts +1 -1
- package/dist/helpers/refkey.mjs +1 -1
- package/dist/helpers/typescript.d.cts +1 -1
- package/dist/helpers/typescript.d.mts +1 -1
- package/dist/helpers/typescript.mjs +1 -1
- package/dist/index-sViox9YW.d.mts +1 -0
- package/dist/index-uY8Qbwfx.d.mts +1 -0
- package/dist/index.cjs +31 -24
- package/dist/index.d.cts +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +32 -25
- package/dist/index.mjs.map +1 -1
- package/dist/markdown/components/front-matter.d.cts +1 -1
- package/dist/markdown/components/front-matter.d.mts +1 -1
- package/dist/markdown/components/front-matter.mjs +1 -1
- package/dist/markdown/components/index.d.cts +7 -7
- package/dist/markdown/components/index.d.mts +7 -7
- package/dist/markdown/components/index.mjs +9 -9
- package/dist/markdown/components/markdown-file.d.cts +4 -4
- package/dist/markdown/components/markdown-file.d.mts +4 -4
- package/dist/markdown/components/markdown-file.mjs +6 -6
- package/dist/markdown/components/markdown-table.d.cts +3 -3
- package/dist/markdown/components/markdown-table.d.mts +3 -3
- package/dist/markdown/components/markdown-table.mjs +2 -2
- package/dist/markdown/contexts/index.d.cts +2 -2
- package/dist/markdown/contexts/index.d.mts +2 -2
- package/dist/markdown/contexts/index.mjs +2 -2
- package/dist/markdown/contexts/markdown-table.d.cts +1 -1
- package/dist/markdown/contexts/markdown-table.d.mts +1 -1
- package/dist/markdown/contexts/markdown-table.mjs +1 -1
- package/dist/markdown/index.d.cts +8 -8
- package/dist/markdown/index.d.mts +8 -8
- package/dist/markdown/index.mjs +10 -10
- package/dist/{markdown-file-CwMc-alS.d.cts → markdown-file-BDq010LJ.d.mts} +4 -4
- package/dist/{markdown-file-B1dmnZ6l.d.mts.map → markdown-file-BDq010LJ.d.mts.map} +1 -1
- package/dist/{markdown-file-T8cRtyd8.d.mts → markdown-file-DUOoBT0j.d.mts} +4 -4
- package/dist/{markdown-file-BdgX4c0b.d.cts.map → markdown-file-DUOoBT0j.d.mts.map} +1 -1
- package/dist/{markdown-file-B1dmnZ6l.d.mts → markdown-file-Daa2WXu5.d.cts} +7 -7
- package/dist/{markdown-file-CwMc-alS.d.cts.map → markdown-file-Daa2WXu5.d.cts.map} +1 -1
- package/dist/{markdown-file-DLIS2yeG.mjs → markdown-file-DmarbNrj.mjs} +5 -5
- package/dist/{markdown-file-DLIS2yeG.mjs.map → markdown-file-DmarbNrj.mjs.map} +1 -1
- package/dist/{markdown-file-BdgX4c0b.d.cts → markdown-file-ltW4_Q0T.d.cts} +7 -7
- package/dist/markdown-file-ltW4_Q0T.d.cts.map +1 -0
- package/dist/{markdown-table-PT2TFFY3.mjs → markdown-table-BKaAfa6u.mjs} +1 -1
- package/dist/{markdown-table-PT2TFFY3.mjs.map → markdown-table-BKaAfa6u.mjs.map} +1 -1
- package/dist/{markdown-table-CnEur72Z.mjs → markdown-table-CRVCcmmS.mjs} +2 -2
- package/dist/{markdown-table-CnEur72Z.mjs.map → markdown-table-CRVCcmmS.mjs.map} +1 -1
- package/dist/{markdown-table-BVtAeDoa.d.mts → markdown-table-C_kG5G4f.d.cts} +7 -7
- package/dist/{markdown-table-BVtAeDoa.d.mts.map → markdown-table-C_kG5G4f.d.cts.map} +1 -1
- package/dist/{markdown-table-t6Z-cmxX.d.mts → markdown-table-DIfM03TF.d.mts} +1 -1
- package/dist/{markdown-table-CZMEY6IR.d.cts.map → markdown-table-DIfM03TF.d.mts.map} +1 -1
- package/dist/{markdown-table-CZMEY6IR.d.cts → markdown-table-Dxxupt8O.d.cts} +1 -1
- package/dist/{markdown-table-t6Z-cmxX.d.mts.map → markdown-table-Dxxupt8O.d.cts.map} +1 -1
- package/dist/{markdown-table-Cv6HmRUB.d.cts → markdown-table-Dynt50_5.d.mts} +3 -3
- package/dist/{markdown-table-Cv6HmRUB.d.cts.map → markdown-table-Dynt50_5.d.mts.map} +1 -1
- package/dist/{markdown-table-D5Tg3LLV.d.cts → markdown-table-NL_Znt5-.d.cts} +7 -7
- package/dist/markdown-table-NL_Znt5-.d.cts.map +1 -0
- package/dist/{meta-DDwBNdE3.d.cts → meta-CyClLk1y.d.mts} +1 -1
- package/dist/{meta-DDwBNdE3.d.cts.map → meta-CyClLk1y.d.mts.map} +1 -1
- package/dist/{meta-BuwJuxY9.mjs → meta-vNWUnnLO.mjs} +1 -1
- package/dist/{meta-BuwJuxY9.mjs.map → meta-vNWUnnLO.mjs.map} +1 -1
- package/dist/{meta-RtOYCV7t.d.mts → meta-xgVuv08y.d.cts} +1 -1
- package/dist/{meta-RtOYCV7t.d.mts.map → meta-xgVuv08y.d.cts.map} +1 -1
- package/dist/{output-CIKSJjPS.d.cts → output-BKTOo_-D.d.cts} +3 -3
- package/dist/{output-CIKSJjPS.d.cts.map → output-BKTOo_-D.d.cts.map} +1 -1
- package/dist/{output-BehYSTRr.mjs → output-CUxfvVVp.mjs} +2 -2
- package/dist/{output-BehYSTRr.mjs.map → output-CUxfvVVp.mjs.map} +1 -1
- package/dist/{output-gLuHZTGo.d.mts → output-CqvSLPi0.d.mts} +1 -1
- package/dist/{output-Law_SUlM.d.mts.map → output-CqvSLPi0.d.mts.map} +1 -1
- package/dist/{output-Law_SUlM.d.mts → output-DIrAcd1E.d.mts} +1 -1
- package/dist/{output-gLuHZTGo.d.mts.map → output-DIrAcd1E.d.mts.map} +1 -1
- package/dist/{output-CGYPi1rL.d.cts → output-DM-QQQD2.d.cts} +3 -3
- package/dist/{output-CGYPi1rL.d.cts.map → output-DM-QQQD2.d.cts.map} +1 -1
- package/dist/{plugin-C-cbPXaG.d.cts → plugin-aN6BnM8T.d.cts} +1 -1
- package/dist/{plugin-C-cbPXaG.d.cts.map → plugin-aN6BnM8T.d.cts.map} +1 -1
- package/dist/{plugin-Dn0UNaQ3.d.mts → plugin-c-C_CW4P.d.mts} +1 -1
- package/dist/{plugin-Dn0UNaQ3.d.mts.map → plugin-c-C_CW4P.d.mts.map} +1 -1
- package/dist/{record-expression-ChoLAsVS.d.mts → record-expression-B4Wa9HOn.d.cts} +1 -1
- package/dist/{record-expression-ChoLAsVS.d.mts.map → record-expression-B4Wa9HOn.d.cts.map} +1 -1
- package/dist/{record-expression-D5W72rZN.mjs → record-expression-BHpXe3mY.mjs} +1 -1
- package/dist/{record-expression-D5W72rZN.mjs.map → record-expression-BHpXe3mY.mjs.map} +1 -1
- package/dist/{record-expression-Dwg_PZpg.d.cts → record-expression-DYCDlTyT.d.mts} +1 -1
- package/dist/{record-expression-Dwg_PZpg.d.cts.map → record-expression-DYCDlTyT.d.mts.map} +1 -1
- package/dist/{refkey-D6OjgKgS.d.mts → refkey-CqkD5Tjp.d.mts} +1 -1
- package/dist/refkey-CqkD5Tjp.d.mts.map +1 -0
- package/dist/{refkey-CQVHeuAq.mjs → refkey-CyhX8n2z.mjs} +1 -1
- package/dist/{refkey-CQVHeuAq.mjs.map → refkey-CyhX8n2z.mjs.map} +1 -1
- package/dist/{refkey-CP7MJMac.d.cts → refkey-DqDd2Fzs.d.cts} +1 -1
- package/dist/refkey-DqDd2Fzs.d.cts.map +1 -0
- package/dist/{reflection-BumisltV.d.mts → reflection-CAz7PWzK.d.mts} +2 -2
- package/dist/{reflection-BumisltV.d.mts.map → reflection-CAz7PWzK.d.mts.map} +1 -1
- package/dist/{reflection-Btb1NqwS.mjs → reflection-ExLWJ473.mjs} +1 -1
- package/dist/{reflection-Btb1NqwS.mjs.map → reflection-ExLWJ473.mjs.map} +1 -1
- package/dist/{reflection-I2Uewhuo.d.cts → reflection-JGVev2J6.d.cts} +2 -2
- package/dist/{reflection-I2Uewhuo.d.cts.map → reflection-JGVev2J6.d.cts.map} +1 -1
- package/dist/{single-line-comment-C4oS5eSd.d.mts → single-line-comment-BF8JT7na.d.cts} +4 -4
- package/dist/{single-line-comment-C4oS5eSd.d.mts.map → single-line-comment-BF8JT7na.d.cts.map} +1 -1
- package/dist/{single-line-comment-MRVbskt3.mjs → single-line-comment-CGkTdNez.mjs} +1 -1
- package/dist/{single-line-comment-MRVbskt3.mjs.map → single-line-comment-CGkTdNez.mjs.map} +1 -1
- package/dist/{single-line-comment-DWXxACyy.d.cts → single-line-comment-Fbi6KSVW.d.cts} +2 -2
- package/dist/{single-line-comment-DWXxACyy.d.cts.map → single-line-comment-Fbi6KSVW.d.cts.map} +1 -1
- package/dist/{single-line-comment-ceejgNfU.d.mts → single-line-comment-PMv_zrfe.d.mts} +2 -2
- package/dist/{single-line-comment-ceejgNfU.d.mts.map → single-line-comment-PMv_zrfe.d.mts.map} +1 -1
- package/dist/{source-file-YrHdUb8H.d.mts → source-file-Bfny_Zo3.d.mts} +4 -4
- package/dist/{source-file-BNYeD1w4.d.cts.map → source-file-Bfny_Zo3.d.mts.map} +1 -1
- package/dist/{source-file-B5FSrvOa.mjs → source-file-C2DlmRUm.mjs} +2 -2
- package/dist/{source-file-B5FSrvOa.mjs.map → source-file-C2DlmRUm.mjs.map} +1 -1
- package/dist/{source-file-BNYeD1w4.d.cts → source-file-CQl0UCgf.d.mts} +2 -2
- package/dist/{source-file-YrHdUb8H.d.mts.map → source-file-CQl0UCgf.d.mts.map} +1 -1
- package/dist/{source-file-OtWS66Kr.d.cts → source-file-DJot_Dm_.d.cts} +2 -2
- package/dist/{source-file-OtWS66Kr.d.cts.map → source-file-DJot_Dm_.d.cts.map} +1 -1
- package/dist/source-file-Dx80HTDu.d.cts +33 -0
- package/dist/source-file-Dx80HTDu.d.cts.map +1 -0
- package/dist/{tsdoc-BpOXtq0v.d.cts → tsdoc-BlBkyIWO.d.cts} +2 -2
- package/dist/tsdoc-BlBkyIWO.d.cts.map +1 -0
- package/dist/{tsdoc-prhuuYav.mjs → tsdoc-C9i5z6EE.mjs} +2 -2
- package/dist/{tsdoc-prhuuYav.mjs.map → tsdoc-C9i5z6EE.mjs.map} +1 -1
- package/dist/{tsdoc-CwqGhmLe.d.mts → tsdoc-cuL_4mkw.d.mts} +2 -2
- package/dist/{tsdoc-BpOXtq0v.d.cts.map → tsdoc-cuL_4mkw.d.mts.map} +1 -1
- package/dist/{tsdoc-reflection-CQX-iDtz.mjs → tsdoc-reflection-BFTBtjQ2.mjs} +3 -3
- package/dist/{tsdoc-reflection-CQX-iDtz.mjs.map → tsdoc-reflection-BFTBtjQ2.mjs.map} +1 -1
- package/dist/{tsdoc-reflection-hz0WQ70o.d.cts → tsdoc-reflection-Bqatkzvb.d.cts} +2 -2
- package/dist/{tsdoc-reflection-Cak-O_qk.d.mts.map → tsdoc-reflection-Bqatkzvb.d.cts.map} +1 -1
- package/dist/{tsdoc-reflection-ycF-PiB9.d.cts → tsdoc-reflection-CBmIdCMR.d.mts} +2 -2
- package/dist/{tsdoc-reflection-hz0WQ70o.d.cts.map → tsdoc-reflection-CBmIdCMR.d.mts.map} +1 -1
- package/dist/{tsdoc-reflection-Cak-O_qk.d.mts → tsdoc-reflection-D6D_9W1j.d.cts} +6 -6
- package/dist/tsdoc-reflection-D6D_9W1j.d.cts.map +1 -0
- package/dist/types/components.d.cts +1 -1
- package/dist/types/components.d.mts +1 -1
- package/dist/types/components.mjs +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +2 -2
- package/dist/types/internal.cjs +0 -0
- package/dist/types/internal.d.cts +47 -0
- package/dist/types/internal.d.cts.map +1 -0
- package/dist/types/internal.d.mts +47 -0
- package/dist/types/internal.d.mts.map +1 -0
- package/dist/types/internal.mjs +1 -0
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.mjs +1 -1
- package/dist/typescript/components/builtin-file.d.cts +5 -5
- package/dist/typescript/components/builtin-file.d.mts +5 -5
- package/dist/typescript/components/builtin-file.mjs +7 -7
- package/dist/typescript/components/dynamic-import-statement.d.cts +1 -1
- package/dist/typescript/components/dynamic-import-statement.d.mts +1 -1
- package/dist/typescript/components/dynamic-import-statement.mjs +1 -1
- package/dist/typescript/components/entry-file.d.cts +4 -4
- package/dist/typescript/components/entry-file.d.mts +4 -4
- package/dist/typescript/components/entry-file.mjs +6 -6
- package/dist/typescript/components/index.d.cts +12 -12
- package/dist/typescript/components/index.d.mts +12 -12
- package/dist/typescript/components/index.mjs +15 -15
- package/dist/typescript/components/record-expression.d.cts +1 -1
- package/dist/typescript/components/record-expression.d.mts +1 -1
- package/dist/typescript/components/record-expression.mjs +1 -1
- package/dist/typescript/components/tsdoc-reflection.d.cts +3 -3
- package/dist/typescript/components/tsdoc-reflection.d.mts +3 -3
- package/dist/typescript/components/tsdoc-reflection.mjs +4 -4
- package/dist/typescript/components/tsdoc.d.cts +2 -2
- package/dist/typescript/components/tsdoc.d.mts +2 -2
- package/dist/typescript/components/tsdoc.mjs +2 -2
- package/dist/typescript/components/typescript-file.d.cts +3 -3
- package/dist/typescript/components/typescript-file.d.mts +3 -3
- package/dist/typescript/components/typescript-file.mjs +5 -5
- package/dist/typescript/components/typescript-interface.d.cts +2 -2
- package/dist/typescript/components/typescript-interface.d.mts +2 -2
- package/dist/typescript/components/typescript-interface.mjs +5 -5
- package/dist/typescript/components/typescript-object.d.cts +2 -2
- package/dist/typescript/components/typescript-object.d.mts +2 -2
- package/dist/typescript/components/typescript-object.mjs +5 -5
- package/dist/typescript/index.d.cts +12 -12
- package/dist/typescript/index.d.mts +12 -12
- package/dist/typescript/index.mjs +15 -15
- package/dist/{typescript-CXP7Oa6_.d.cts → typescript-BpWiXYf3.d.mts} +1 -1
- package/dist/{typescript-CXP7Oa6_.d.cts.map → typescript-BpWiXYf3.d.mts.map} +1 -1
- package/dist/{typescript-DvynKONm.d.mts → typescript-CJjS7_9C.d.cts} +1 -1
- package/dist/{typescript-DvynKONm.d.mts.map → typescript-CJjS7_9C.d.cts.map} +1 -1
- package/dist/{typescript-BXhP0qIJ.mjs → typescript-CrVxDaSo.mjs} +1 -1
- package/dist/{typescript-BXhP0qIJ.mjs.map → typescript-CrVxDaSo.mjs.map} +1 -1
- package/dist/{typescript-file--NT6aFEW.d.cts → typescript-file-BPPaMWbi.d.cts} +3 -3
- package/dist/{typescript-file--NT6aFEW.d.cts.map → typescript-file-BPPaMWbi.d.cts.map} +1 -1
- package/dist/{typescript-file-BqamPJcI.d.cts → typescript-file-CWoL1YfK.d.mts} +3 -3
- package/dist/{typescript-file-BqamPJcI.d.cts.map → typescript-file-CWoL1YfK.d.mts.map} +1 -1
- package/dist/{typescript-file-CNCLRiyf.mjs → typescript-file-CZiIcJah.mjs} +4 -4
- package/dist/{typescript-file-CNCLRiyf.mjs.map → typescript-file-CZiIcJah.mjs.map} +1 -1
- package/dist/{typescript-file-dsHm_Y5Y.d.mts → typescript-file-CsvsUP0u.d.mts} +3 -3
- package/dist/{typescript-file-dsHm_Y5Y.d.mts.map → typescript-file-CsvsUP0u.d.mts.map} +1 -1
- package/dist/typescript-file-dA_jN-zS.d.cts +50 -0
- package/dist/typescript-file-dA_jN-zS.d.cts.map +1 -0
- package/dist/{typescript-interface-CTyDcMdt.d.mts → typescript-interface-B4TrVU5Q.d.mts} +2 -2
- package/dist/{typescript-interface-CTyDcMdt.d.mts.map → typescript-interface-B4TrVU5Q.d.mts.map} +1 -1
- package/dist/{typescript-interface-BnRXH_zM.mjs → typescript-interface-CDzEeHla.mjs} +3 -3
- package/dist/{typescript-interface-BnRXH_zM.mjs.map → typescript-interface-CDzEeHla.mjs.map} +1 -1
- package/dist/{typescript-interface-DX0WJLCa.d.mts → typescript-interface-D-9IsIBo.d.mts} +2 -2
- package/dist/{typescript-interface-DX0WJLCa.d.mts.map → typescript-interface-D-9IsIBo.d.mts.map} +1 -1
- package/dist/{typescript-interface-LTD6nhQZ.d.cts → typescript-interface-D117ftmn.d.cts} +5 -5
- package/dist/{typescript-interface-LTD6nhQZ.d.cts.map → typescript-interface-D117ftmn.d.cts.map} +1 -1
- package/dist/typescript-interface-DK1Lw2QY.d.cts +26 -0
- package/dist/typescript-interface-DK1Lw2QY.d.cts.map +1 -0
- package/dist/{typescript-object-DK3sl8cB.d.mts → typescript-object-BklBd_r3.d.cts} +6 -6
- package/dist/{typescript-object-DAZ_s-da.d.cts.map → typescript-object-BklBd_r3.d.cts.map} +1 -1
- package/dist/{typescript-object-L2Zn4zbB.d.mts → typescript-object-Cphz389O.d.mts} +2 -2
- package/dist/{typescript-object-L2Zn4zbB.d.mts.map → typescript-object-Cphz389O.d.mts.map} +1 -1
- package/dist/{typescript-object-DAZ_s-da.d.cts → typescript-object-DjlOpuDJ.d.cts} +2 -2
- package/dist/{typescript-object-DK3sl8cB.d.mts.map → typescript-object-DjlOpuDJ.d.cts.map} +1 -1
- package/dist/{typescript-object-Dhr7lMRV.mjs → typescript-object-FaGWSJWA.mjs} +3 -3
- package/dist/{typescript-object-Dhr7lMRV.mjs.map → typescript-object-FaGWSJWA.mjs.map} +1 -1
- package/dist/{typescript-object-B7G5A4j-.d.cts → typescript-object-WobVpqpw.d.mts} +3 -3
- package/dist/{typescript-object-B7G5A4j-.d.cts.map → typescript-object-WobVpqpw.d.mts.map} +1 -1
- package/package.json +16 -2
- package/dist/dynamic-import-statement-kxVxtCBQ.d.cts +0 -33
- package/dist/dynamic-import-statement-kxVxtCBQ.d.cts.map +0 -1
- package/dist/front-matter-s2lylY4i.d.cts +0 -16
- package/dist/front-matter-s2lylY4i.d.cts.map +0 -1
- package/dist/markdown-file-T8cRtyd8.d.mts.map +0 -1
- package/dist/markdown-table-D5Tg3LLV.d.cts.map +0 -1
- package/dist/markdown-table-DFbl_3T_.d.mts +0 -28
- package/dist/markdown-table-DFbl_3T_.d.mts.map +0 -1
- package/dist/refkey-CP7MJMac.d.cts.map +0 -1
- package/dist/refkey-D6OjgKgS.d.mts.map +0 -1
- package/dist/single-line-comment-CBaZAKTr.d.cts +0 -23
- package/dist/single-line-comment-CBaZAKTr.d.cts.map +0 -1
- package/dist/tsdoc-CwqGhmLe.d.mts.map +0 -1
- package/dist/tsdoc-reflection-ycF-PiB9.d.cts.map +0 -1
- /package/dist/{components-ByryZacA.mjs → components-BHsPgUVD.mjs} +0 -0
- /package/dist/{components-C3qpgLKV.mjs → components-C4MWIzKk.mjs} +0 -0
- /package/dist/{components-NXgsRgB4.mjs → components-DTKCKgWS.mjs} +0 -0
- /package/dist/{components-pztyf7qk.mjs → components-bxkcKDVx.mjs} +0 -0
- /package/dist/{contexts-D-vYhGdM.mjs → contexts-D631HKlO.mjs} +0 -0
- /package/dist/{contexts-oubuaPo0.mjs → contexts-DppcDJxB.mjs} +0 -0
- /package/dist/{index-BJ8-FA6N.d.cts → index--p6oQT9I.d.mts} +0 -0
- /package/dist/{index-BXpMZvwA.d.cts → index-BUYyA1Xh.d.cts} +0 -0
- /package/dist/{index-BhY1qu3m.d.cts → index-CryTAIZM.d.mts} +0 -0
- /package/dist/{index-BjgW3E7y.d.mts → index-CyJfB4lt.d.cts} +0 -0
- /package/dist/{index-C3usUse7.d.mts → index-CzItj62a.d.mts} +0 -0
- /package/dist/{index-D13oYj4_.d.mts → index-D9IqtUDs.d.cts} +0 -0
- /package/dist/{index-DBGd4WeR.d.mts → index-Dt_vyhB_.d.cts} +0 -0
- /package/dist/{index-DdxxIAKU.d.cts → index-Iujpc9_6.d.mts} +0 -0
- /package/dist/{index-DpEKQcoR.d.cts → index-gxEAO6Ad.d.cts} +0 -0
- /package/dist/{index-gpCH5158.d.mts → index-qCd8f7Um.d.cts} +0 -0
- /package/dist/{plugin-BzF8Q2v1.mjs → plugin-DTwUbNHt.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as TSDocModuleProps } from "./tsdoc-
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
1
|
+
import { h as TSDocModuleProps } from "./tsdoc-cuL_4mkw.mjs";
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-CWoL1YfK.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-
|
|
35
|
+
//# sourceMappingURL=builtin-file-B1gDGzgo.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-B1gDGzgo.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,6 +1,6 @@
|
|
|
1
|
-
import { h as TSDocModuleProps } from "./tsdoc-
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file
|
|
3
|
-
import * as
|
|
1
|
+
import { h as TSDocModuleProps } from "./tsdoc-BlBkyIWO.cjs";
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-BPPaMWbi.cjs";
|
|
3
|
+
import * as _alloy_js_core15 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,8 +28,8 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core15.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-
|
|
35
|
+
//# sourceMappingURL=builtin-file-BFR1F4LN.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-BFR1F4LN.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,6 +1,6 @@
|
|
|
1
|
-
import { i as usePowerlinesSafe } from "./context-
|
|
2
|
-
import { d as TSDocModule } from "./tsdoc-
|
|
3
|
-
import { n as TypescriptFileHeader, r as TypescriptFileHeaderImports, t as TypescriptFile } from "./typescript-file-
|
|
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-
|
|
62
|
+
//# sourceMappingURL=builtin-file-BJwCniGZ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
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-
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
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-
|
|
35
|
+
//# sourceMappingURL=builtin-file-CzxGDjwC.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { h as TSDocModuleProps } from "./tsdoc-
|
|
2
|
-
import { o as TypescriptFileProps } from "./typescript-file-
|
|
3
|
-
import * as
|
|
1
|
+
import { h as TSDocModuleProps } from "./tsdoc-BlBkyIWO.cjs";
|
|
2
|
+
import { o as TypescriptFileProps } from "./typescript-file-dA_jN-zS.cjs";
|
|
3
|
+
import * as _alloy_js_core6 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/typescript/components/builtin-file.d.ts
|
|
6
6
|
type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProps, "name"> & {
|
|
@@ -28,8 +28,8 @@ type BuiltinFileProps = Omit<TypescriptFileProps, "path"> & Omit<TSDocModuleProp
|
|
|
28
28
|
* @param props - The properties for the source file.
|
|
29
29
|
* @returns The rendered source file component.
|
|
30
30
|
*/
|
|
31
|
-
declare function BuiltinFile(props: BuiltinFileProps):
|
|
31
|
+
declare function BuiltinFile(props: BuiltinFileProps): _alloy_js_core6.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-
|
|
35
|
+
//# sourceMappingURL=builtin-file-DdgGKu84.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-file-
|
|
1
|
+
{"version":3,"file":"builtin-file-DdgGKu84.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,eAAA,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-
|
|
88
|
+
//# sourceMappingURL=capnp-BfsEWHU2.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capnp-
|
|
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-
|
|
88
|
+
//# sourceMappingURL=capnp-DcnwPttP.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capnp-
|
|
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-
|
|
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-
|
|
143
|
+
//# sourceMappingURL=components-DPPi58b5.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-
|
|
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-
|
|
143
|
+
//# sourceMappingURL=components-oHSM7vmp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-
|
|
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-
|
|
30
|
+
//# sourceMappingURL=context-C-CzW-8C.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
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-
|
|
30
|
+
//# sourceMappingURL=context-CiHsTXX7.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-
|
|
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-
|
|
2
|
-
import "../../components-
|
|
3
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-
|
|
4
|
-
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-
|
|
5
|
-
import "../../index-
|
|
1
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-BKTOo_-D.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-BF8JT7na.cjs";
|
|
4
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-Dx80HTDu.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-
|
|
2
|
-
import "../../components-
|
|
3
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-
|
|
4
|
-
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-
|
|
5
|
-
import "../../index-
|
|
1
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-DIrAcd1E.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-CQl0UCgf.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-
|
|
2
|
-
import "../../context-
|
|
3
|
-
import { t as Output } from "../../output-
|
|
4
|
-
import { t as SingleLineComment } from "../../single-line-comment-
|
|
5
|
-
import { t as SourceFile } from "../../source-file-
|
|
6
|
-
import "../../components-
|
|
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-
|
|
1
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-BKTOo_-D.cjs";
|
|
2
2
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-
|
|
1
|
+
import { n as OutputProps, r as __ΩOutputProps, t as Output } from "../../output-DIrAcd1E.mjs";
|
|
2
2
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../components-
|
|
2
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-
|
|
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-BF8JT7na.cjs";
|
|
3
3
|
export { SingleLineComment, SingleLineCommentProps, SingleLineCommentVariant, __ΩSingleLineCommentProps, __ΩSingleLineCommentVariant };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../components-
|
|
2
|
-
import { a as __ΩSingleLineCommentVariant, i as __ΩSingleLineCommentProps, n as SingleLineCommentProps, r as SingleLineCommentVariant, t as SingleLineComment } from "../../single-line-comment-
|
|
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 "../../components-
|
|
2
|
-
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-
|
|
1
|
+
import "../../components-DPPi58b5.cjs";
|
|
2
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-Dx80HTDu.cjs";
|
|
3
3
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../components-
|
|
2
|
-
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-
|
|
1
|
+
import "../../components-oHSM7vmp.mjs";
|
|
2
|
+
import { n as SourceFileProps, r as __ΩSourceFileProps, t as SourceFile } from "../../source-file-CQl0UCgf.mjs";
|
|
3
3
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-
|
|
3
|
-
import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-
|
|
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-
|
|
5
|
-
import "../../index-
|
|
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-
|
|
2
|
-
import { i as usePowerlinesSafe, n as usePowerlines, r as usePowerlinesContext, t as PowerlinesContext } from "../../context-
|
|
3
|
-
import { a as useMetaContext, i as useMeta, n as MetaItem, o as useMetaSafe, r as __ΩMetaItem, t as MetaContext } from "../../meta-
|
|
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-
|
|
5
|
-
import "../../index-
|
|
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 };
|