spec-cat 0.1.0
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/.output/nitro.json +15 -0
- package/.output/public/_nuxt/2EtD6e53.js +1 -0
- package/.output/public/_nuxt/2UxHyX5q.js +1 -0
- package/.output/public/_nuxt/3e1v2bzS.js +1 -0
- package/.output/public/_nuxt/4A_iFExJ.js +1 -0
- package/.output/public/_nuxt/5FxpIoe_.js +1 -0
- package/.output/public/_nuxt/5X7smno1.js +1 -0
- package/.output/public/_nuxt/5i3qLPDT.js +1 -0
- package/.output/public/_nuxt/83L43bj1.js +1 -0
- package/.output/public/_nuxt/85-TOEBH.js +1 -0
- package/.output/public/_nuxt/B0m2ddpp.js +1 -0
- package/.output/public/_nuxt/B1dDrJ26.js +1 -0
- package/.output/public/_nuxt/B1yitclQ.js +1 -0
- package/.output/public/_nuxt/B2wdmh_w.js +126 -0
- package/.output/public/_nuxt/B6aJPvgy.js +1 -0
- package/.output/public/_nuxt/B7c-h3xW.js +1 -0
- package/.output/public/_nuxt/B7mTdjB0.js +1 -0
- package/.output/public/_nuxt/B93PlW-d.js +1 -0
- package/.output/public/_nuxt/BBf5iR-q.js +1 -0
- package/.output/public/_nuxt/BEDo0Tqx.js +1 -0
- package/.output/public/_nuxt/BERRCDM3.js +1 -0
- package/.output/public/_nuxt/BETggiCN.js +1 -0
- package/.output/public/_nuxt/BEwlwnbL.js +1 -0
- package/.output/public/_nuxt/BFfxhgS-.js +1 -0
- package/.output/public/_nuxt/BGHnOYBU.js +1 -0
- package/.output/public/_nuxt/BGJmEYvX.js +1 -0
- package/.output/public/_nuxt/BH7IYjvW.js +1 -0
- package/.output/public/_nuxt/BIGW1oBm.js +1 -0
- package/.output/public/_nuxt/BJDFO7_C.js +1 -0
- package/.output/public/_nuxt/BLmx8bSh.js +1 -0
- package/.output/public/_nuxt/BLtJtn59.js +1 -0
- package/.output/public/_nuxt/BM1_JUlF.js +1 -0
- package/.output/public/_nuxt/BMWR74SV.js +1 -0
- package/.output/public/_nuxt/BPQ3VLAy.js +1 -0
- package/.output/public/_nuxt/BQ8w6xss.js +1 -0
- package/.output/public/_nuxt/BR5kRUq4.js +1 -0
- package/.output/public/_nuxt/BRHolxvo.js +1 -0
- package/.output/public/_nuxt/BRZ36xJF.js +1 -0
- package/.output/public/_nuxt/BTJTHyun.js +1 -0
- package/.output/public/_nuxt/BTifaqeh.js +1 -0
- package/.output/public/_nuxt/BUOk7wkI.js +1 -0
- package/.output/public/_nuxt/BUw7H-hv.js +1 -0
- package/.output/public/_nuxt/BV7otONQ.js +1 -0
- package/.output/public/_nuxt/BVQ-GDCI.js +1 -0
- package/.output/public/_nuxt/BWvSN4gD.js +1 -0
- package/.output/public/_nuxt/BXkSAIEj.js +1 -0
- package/.output/public/_nuxt/BYV0-3_D.js +1 -0
- package/.output/public/_nuxt/BYunw83y.js +1 -0
- package/.output/public/_nuxt/BZvkOJ9d.js +1 -0
- package/.output/public/_nuxt/B_m7g4N7.js +1 -0
- package/.output/public/_nuxt/Ba13S78F.js +1 -0
- package/.output/public/_nuxt/BcOcwvcX.js +1 -0
- package/.output/public/_nuxt/BcVCzyr7.js +1 -0
- package/.output/public/_nuxt/BdImnpbu.js +1 -0
- package/.output/public/_nuxt/BdnUsdx6.js +1 -0
- package/.output/public/_nuxt/BfHTSMKl.js +1 -0
- package/.output/public/_nuxt/BfjtVDDH.js +1 -0
- package/.output/public/_nuxt/BgDCqdQA.js +1 -0
- package/.output/public/_nuxt/BhOHFoWU.js +1 -0
- package/.output/public/_nuxt/BhRPY-oY.js +1 -0
- package/.output/public/_nuxt/Bhrxn6JZ.js +1 -0
- package/.output/public/_nuxt/BkioyH1T.js +1 -0
- package/.output/public/_nuxt/Bkuqu6BP.js +1 -0
- package/.output/public/_nuxt/BmXAJ9_W.js +1 -0
- package/.output/public/_nuxt/Bmn6On1c.js +1 -0
- package/.output/public/_nuxt/Bp3cYrEr.js +1 -0
- package/.output/public/_nuxt/Bp6g37R7.js +1 -0
- package/.output/public/_nuxt/BqTXFGrv.js +1 -0
- package/.output/public/_nuxt/BqYA7rlc.js +1 -0
- package/.output/public/_nuxt/Bqlz6CoK.js +1 -0
- package/.output/public/_nuxt/Br6cN0cg.js +1 -0
- package/.output/public/_nuxt/BrzmwbiE.js +1 -0
- package/.output/public/_nuxt/BsS91CYL.js +1 -0
- package/.output/public/_nuxt/BspZqrRM.js +1 -0
- package/.output/public/_nuxt/BtCnVYZw.js +1 -0
- package/.output/public/_nuxt/BtOb2qkB.js +1 -0
- package/.output/public/_nuxt/BthQWCQV.js +1 -0
- package/.output/public/_nuxt/BtqSS_iP.js +1 -0
- package/.output/public/_nuxt/BtvRca6l.js +1 -0
- package/.output/public/_nuxt/Buea-lGh.js +1 -0
- package/.output/public/_nuxt/Bv_4Rxtq.js +1 -0
- package/.output/public/_nuxt/BvosqTnx.js +1 -0
- package/.output/public/_nuxt/BvzEVeQv.js +1 -0
- package/.output/public/_nuxt/Bw305WKR.js +1 -0
- package/.output/public/_nuxt/BwcbSlWF.js +4 -0
- package/.output/public/_nuxt/BxgE0vQu.js +1 -0
- package/.output/public/_nuxt/BzJJZx-M.js +1 -0
- package/.output/public/_nuxt/BzTr9Aqm.js +1 -0
- package/.output/public/_nuxt/C-HG3fhB.js +1 -0
- package/.output/public/_nuxt/C-SQnVFl.js +1 -0
- package/.output/public/_nuxt/C-sUppwS.js +1 -0
- package/.output/public/_nuxt/C0HS_06l.js +1 -0
- package/.output/public/_nuxt/C0hk2d4L.js +1 -0
- package/.output/public/_nuxt/C151Ov-r.js +1 -0
- package/.output/public/_nuxt/C2t-YnRu.js +1 -0
- package/.output/public/_nuxt/C39BiMTA.js +1 -0
- package/.output/public/_nuxt/C3B-1QV4.js +1 -0
- package/.output/public/_nuxt/C3Wv6jpd.js +1 -0
- package/.output/public/_nuxt/C3mMm8J8.js +1 -0
- package/.output/public/_nuxt/C47S-Tmv.js +1 -0
- package/.output/public/_nuxt/C4EeE6gA.js +1 -0
- package/.output/public/_nuxt/C4IJs8-o.js +1 -0
- package/.output/public/_nuxt/C4gqWexZ.js +1 -0
- package/.output/public/_nuxt/C5YyOfLZ.js +1 -0
- package/.output/public/_nuxt/C5wk2twv.js +1 -0
- package/.output/public/_nuxt/C7zT0LnQ.js +1 -0
- package/.output/public/_nuxt/C8M2exoo.js +1 -0
- package/.output/public/_nuxt/C8lEn-DE.js +1 -0
- package/.output/public/_nuxt/C98Dy4si.js +1 -0
- package/.output/public/_nuxt/C9XAeP06.js +1 -0
- package/.output/public/_nuxt/C9dUb6Cb.js +1 -0
- package/.output/public/_nuxt/C9oPPf7i.js +1 -0
- package/.output/public/_nuxt/C9tS-k6U.js +1 -0
- package/.output/public/_nuxt/CDVJQ6XC.js +1 -0
- package/.output/public/_nuxt/CDx5xZoG.js +1 -0
- package/.output/public/_nuxt/CEL-wOlO.js +1 -0
- package/.output/public/_nuxt/CEu0bR-o.js +1 -0
- package/.output/public/_nuxt/CF10PKvl.js +1 -0
- package/.output/public/_nuxt/CFHQjOhq.js +1 -0
- package/.output/public/_nuxt/CG6Dc4jp.js +1 -0
- package/.output/public/_nuxt/CG8Ifv2g.js +1 -0
- package/.output/public/_nuxt/CGscLIrv.js +1 -0
- package/.output/public/_nuxt/CH1njM8p.js +1 -0
- package/.output/public/_nuxt/CHLpvVh8.js +1 -0
- package/.output/public/_nuxt/CHM0blh-.js +1 -0
- package/.output/public/_nuxt/CJc9bBzg.js +1 -0
- package/.output/public/_nuxt/CKIfxQSi.js +1 -0
- package/.output/public/_nuxt/CLZrNe3w.js +1 -0
- package/.output/public/_nuxt/CLxacb5B.js +1 -0
- package/.output/public/_nuxt/CMTm3GFP.js +1 -0
- package/.output/public/_nuxt/CMjwMIkn.js +1 -0
- package/.output/public/_nuxt/CO1LY3CK.js +1 -0
- package/.output/public/_nuxt/COTT6rNZ.js +1 -0
- package/.output/public/_nuxt/COcwbKMJ.js +1 -0
- package/.output/public/_nuxt/COkxafJQ.js +1 -0
- package/.output/public/_nuxt/COt5Ahok.js +1 -0
- package/.output/public/_nuxt/CQ8jqdy-.js +1 -0
- package/.output/public/_nuxt/CS3Unz2-.js +1 -0
- package/.output/public/_nuxt/CSXwinHm.js +1 -0
- package/.output/public/_nuxt/CTRr51gU.js +1 -0
- package/.output/public/_nuxt/CVO1_9PV.js +1 -0
- package/.output/public/_nuxt/CVdnzihN.js +1 -0
- package/.output/public/_nuxt/CW8IKDeL.js +1 -0
- package/.output/public/_nuxt/CXZktZb0.js +1 -0
- package/.output/public/_nuxt/CXtECtnM.js +1 -0
- package/.output/public/_nuxt/CYsAdtH9.js +1 -0
- package/.output/public/_nuxt/CZhp0h8q.js +1 -0
- package/.output/public/_nuxt/CafNBF8u.js +1 -0
- package/.output/public/_nuxt/CbFg5uaA.js +1 -0
- package/.output/public/_nuxt/CbfX1IO0.js +1 -0
- package/.output/public/_nuxt/CeAyd5Ju.js +1 -0
- package/.output/public/_nuxt/CeZK1NFH.js +1 -0
- package/.output/public/_nuxt/CenWIFCC.js +1 -0
- package/.output/public/_nuxt/CfQXZHmo.js +1 -0
- package/.output/public/_nuxt/Cg-RD9OK.js +1 -0
- package/.output/public/_nuxt/ChMvpjG-.js +1 -0
- package/.output/public/_nuxt/Cj5Yp3dK.js +1 -0
- package/.output/public/_nuxt/CjoLj4QM.js +1 -0
- package/.output/public/_nuxt/CkByrt1z.js +1 -0
- package/.output/public/_nuxt/CkXjmgJE.js +1 -0
- package/.output/public/_nuxt/CklMAg4u.js +1 -0
- package/.output/public/_nuxt/Cl0AqbOI.js +1 -0
- package/.output/public/_nuxt/Cm3UrAx6.js +1 -0
- package/.output/public/_nuxt/CmIQRyeF.js +1 -0
- package/.output/public/_nuxt/Cmh6b_Ma.js +1 -0
- package/.output/public/_nuxt/Cn7AkR1O.js +1 -0
- package/.output/public/_nuxt/CnnebwVN.js +1 -0
- package/.output/public/_nuxt/CnnmHF94.js +1 -0
- package/.output/public/_nuxt/CnsnAmq5.js +1 -0
- package/.output/public/_nuxt/Co6uUVPk.js +1 -0
- package/.output/public/_nuxt/CoDkCxhg.js +1 -0
- package/.output/public/_nuxt/Cp-IABpG.js +1 -0
- package/.output/public/_nuxt/CpOuai2O.js +1 -0
- package/.output/public/_nuxt/Cq5zzVJU.js +1 -0
- package/.output/public/_nuxt/CquLrc37.js +1 -0
- package/.output/public/_nuxt/CsfeWuGM.js +1 -0
- package/.output/public/_nuxt/Csfq5Kiy.js +1 -0
- package/.output/public/_nuxt/CuPHTKiy.js +1 -0
- package/.output/public/_nuxt/CufHLc7y.js +1 -0
- package/.output/public/_nuxt/Cuk6v7N8.js +1 -0
- package/.output/public/_nuxt/Cvjx9yec.js +1 -0
- package/.output/public/_nuxt/CwoSXNpI.js +1 -0
- package/.output/public/_nuxt/CxGSJlkm.js +1 -0
- package/.output/public/_nuxt/CxLEBnE3.js +1 -0
- package/.output/public/_nuxt/CxbxFI8M.js +1 -0
- package/.output/public/_nuxt/CyktbL80.js +1 -0
- package/.output/public/_nuxt/CylS5w8V.js +1 -0
- package/.output/public/_nuxt/CzTSHFRz.js +1 -0
- package/.output/public/_nuxt/D-2ljcwZ.js +1 -0
- package/.output/public/_nuxt/D0YGMca9.js +1 -0
- package/.output/public/_nuxt/D0r3Knsf.js +1 -0
- package/.output/public/_nuxt/D17OF-Vu.js +1 -0
- package/.output/public/_nuxt/D1j8_8rp.js +1 -0
- package/.output/public/_nuxt/D3lLCCz7.js +1 -0
- package/.output/public/_nuxt/D4_iv3hh.js +1 -0
- package/.output/public/_nuxt/D4h5O-jR.js +1 -0
- package/.output/public/_nuxt/D5-asLiD.js +1 -0
- package/.output/public/_nuxt/D53aC0YG.js +1 -0
- package/.output/public/_nuxt/D5KoaKCx.js +1 -0
- package/.output/public/_nuxt/D7o27uSR.js +1 -0
- package/.output/public/_nuxt/D7oLnXFd.js +1 -0
- package/.output/public/_nuxt/D82EKSYY.js +1 -0
- package/.output/public/_nuxt/D87Tk5Gz.js +1 -0
- package/.output/public/_nuxt/D8_7TLub.js +1 -0
- package/.output/public/_nuxt/D93ZcfNL.js +1 -0
- package/.output/public/_nuxt/D97Zzqfu.js +1 -0
- package/.output/public/_nuxt/DAi9KRSo.js +1 -0
- package/.output/public/_nuxt/DBab5Zcv.js +153 -0
- package/.output/public/_nuxt/DEthMvLe.js +1 -0
- package/.output/public/_nuxt/DFQXde-d.js +1 -0
- package/.output/public/_nuxt/DFWUc33u.js +1 -0
- package/.output/public/_nuxt/DFXneXwc.js +1 -0
- package/.output/public/_nuxt/DGP4VlC8.js +1 -0
- package/.output/public/_nuxt/DGztddWO.js +1 -0
- package/.output/public/_nuxt/DH5Ifo-i.js +1 -0
- package/.output/public/_nuxt/DHCkPAjA.js +1 -0
- package/.output/public/_nuxt/DHJKELXO.js +1 -0
- package/.output/public/_nuxt/DHQR4-dF.js +1 -0
- package/.output/public/_nuxt/DJjDtW9f.js +1 -0
- package/.output/public/_nuxt/DM8c43g1.js +1 -0
- package/.output/public/_nuxt/DMwsHuHA.js +1 -0
- package/.output/public/_nuxt/DMzUqQB5.js +1 -0
- package/.output/public/_nuxt/DPfMkruS.js +1 -0
- package/.output/public/_nuxt/DQwYQDb2.js +1 -0
- package/.output/public/_nuxt/DQyhUUbL.js +1 -0
- package/.output/public/_nuxt/DRg8JJMk.js +1 -0
- package/.output/public/_nuxt/DRw_LuNl.js +1 -0
- package/.output/public/_nuxt/DU1UobuO.js +1 -0
- package/.output/public/_nuxt/DUszq2jm.js +1 -0
- package/.output/public/_nuxt/DV7GczEv.js +1 -0
- package/.output/public/_nuxt/DVFEvuxE.js +1 -0
- package/.output/public/_nuxt/DVMEJ2y_.js +1 -0
- package/.output/public/_nuxt/DVxCFoDh.js +1 -0
- package/.output/public/_nuxt/DWedfzmr.js +1 -0
- package/.output/public/_nuxt/DWrx1Km3.js +1 -0
- package/.output/public/_nuxt/DXbdFlpD.js +1 -0
- package/.output/public/_nuxt/DXmwc3jG.js +1 -0
- package/.output/public/_nuxt/DXvB9xmW.js +1 -0
- package/.output/public/_nuxt/DYoxhk2S.js +1 -0
- package/.output/public/_nuxt/DZf3V79B.js +1 -0
- package/.output/public/_nuxt/DZu-aV2c.js +1 -0
- package/.output/public/_nuxt/DZxFcAj9.js +1 -0
- package/.output/public/_nuxt/D_Q5rh1f.js +1 -0
- package/.output/public/_nuxt/Da5cRb03.js +1 -0
- package/.output/public/_nuxt/DcaNXYhu.js +1 -0
- package/.output/public/_nuxt/Dd19v3D-.js +1 -0
- package/.output/public/_nuxt/DdkO51Og.js +1 -0
- package/.output/public/_nuxt/Ddv68eIx.js +1 -0
- package/.output/public/_nuxt/Des-eS-w.js +1 -0
- package/.output/public/_nuxt/Df6bDoY_.js +1 -0
- package/.output/public/_nuxt/Dg5xB15N.js +1 -0
- package/.output/public/_nuxt/DhmSosst.js +1 -0
- package/.output/public/_nuxt/DkFqJrB1.js +1 -0
- package/.output/public/_nuxt/DkwncUOv.js +1 -0
- package/.output/public/_nuxt/DlAUqK2U.js +1 -0
- package/.output/public/_nuxt/DnULxvSX.js +1 -0
- package/.output/public/_nuxt/Dpen1YoG.js +1 -0
- package/.output/public/_nuxt/Dph4kLrZ.js +1 -0
- package/.output/public/_nuxt/DqQDbK_p.js +1 -0
- package/.output/public/_nuxt/DqwNpetd.js +1 -0
- package/.output/public/_nuxt/DsOJ9woJ.js +1 -0
- package/.output/public/_nuxt/Dspwwk_N.js +1 -0
- package/.output/public/_nuxt/DsumFeuD.js +1 -0
- package/.output/public/_nuxt/Dv7Oe6Be.js +1 -0
- package/.output/public/_nuxt/Dx-B1_4e.js +1 -0
- package/.output/public/_nuxt/DxNHbxmM.js +1 -0
- package/.output/public/_nuxt/DxSwrfjg.js +1 -0
- package/.output/public/_nuxt/DyxjwDmM.js +1 -0
- package/.output/public/_nuxt/Dzze3sRP.js +1 -0
- package/.output/public/_nuxt/E3gJ1_iC.js +1 -0
- package/.output/public/_nuxt/GsRaNv29.js +1 -0
- package/.output/public/_nuxt/IF9eRakj.js +1 -0
- package/.output/public/_nuxt/IeuSbFQv.js +1 -0
- package/.output/public/_nuxt/KNuzSjk0.js +1 -0
- package/.output/public/_nuxt/L9t79GZl.js +1 -0
- package/.output/public/_nuxt/MzD3tlZU.js +1 -0
- package/.output/public/_nuxt/P80f7IUj.js +1 -0
- package/.output/public/_nuxt/Pmp26Uib.js +1 -0
- package/.output/public/_nuxt/QIJgUcNo.js +1 -0
- package/.output/public/_nuxt/RNghxpo_.js +1 -0
- package/.output/public/_nuxt/TsXTqZ29.js +1 -0
- package/.output/public/_nuxt/VCDPK7BO.js +1 -0
- package/.output/public/_nuxt/VOosw3JB.js +1 -0
- package/.output/public/_nuxt/W9tJ9s81.js +1 -0
- package/.output/public/_nuxt/YqXBG_HV.js +1 -0
- package/.output/public/_nuxt/Yzrsuije.js +1 -0
- package/.output/public/_nuxt/_ykCGR6B.js +1 -0
- package/.output/public/_nuxt/bCR0ucgS.js +1 -0
- package/.output/public/_nuxt/bN70gL4F.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/21578a05-1b7e-4847-a8ff-7480800ea4a6.json +1 -0
- package/.output/public/_nuxt/default.DcjOo57q.css +1 -0
- package/.output/public/_nuxt/dwOrl1Do.js +1 -0
- package/.output/public/_nuxt/entry.CFLOfmis.css +1 -0
- package/.output/public/_nuxt/error-404.DuOyHzDc.css +1 -0
- package/.output/public/_nuxt/error-500.MhEffcqa.css +1 -0
- package/.output/public/_nuxt/fKv21gyL.js +1 -0
- package/.output/public/_nuxt/fuZLfV_i.js +1 -0
- package/.output/public/_nuxt/g9-lgVsj.js +1 -0
- package/.output/public/_nuxt/gcz8RCvz.js +1 -0
- package/.output/public/_nuxt/hJgmCMqR.js +1 -0
- package/.output/public/_nuxt/hegEt444.js +1 -0
- package/.output/public/_nuxt/k_qm7-4y.js +1 -0
- package/.output/public/_nuxt/lXgVvXCa.js +1 -0
- package/.output/public/_nuxt/m17aaUwq.js +1 -0
- package/.output/public/_nuxt/mWjccvbQ.js +1 -0
- package/.output/public/_nuxt/mjskCLCv.js +1 -0
- package/.output/public/_nuxt/n2N0HUVH.js +1 -0
- package/.output/public/_nuxt/qdsjHGoJ.js +1 -0
- package/.output/public/_nuxt/rGO070M0.js +1 -0
- package/.output/public/_nuxt/u5AG7uiY.js +1 -0
- package/.output/public/_nuxt/uYugtg8r.js +1 -0
- package/.output/public/_nuxt/vGWfd6FD.js +1 -0
- package/.output/public/_nuxt/wDzz0qaB.js +1 -0
- package/.output/public/_nuxt/yv6CvBhz.js +1 -0
- package/.output/public/app-logo.svg +1 -0
- package/.output/server/chunks/_/chat.mjs +9 -0
- package/.output/server/chunks/_/chat.mjs.map +1 -0
- package/.output/server/chunks/_/claudeProvider.mjs +159 -0
- package/.output/server/chunks/_/claudeProvider.mjs.map +1 -0
- package/.output/server/chunks/_/codexProvider.mjs +757 -0
- package/.output/server/chunks/_/codexProvider.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/git.mjs +707 -0
- package/.output/server/chunks/_/git.mjs.map +1 -0
- package/.output/server/chunks/_/git2.mjs +33 -0
- package/.output/server/chunks/_/git2.mjs.map +1 -0
- package/.output/server/chunks/_/providerProcessError.mjs +119 -0
- package/.output/server/chunks/_/providerProcessError.mjs.map +1 -0
- package/.output/server/chunks/_/validateWorktree.mjs +19 -0
- package/.output/server/chunks/_/validateWorktree.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +15584 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/_ws.mjs +575 -0
- package/.output/server/chunks/routes/_ws.mjs.map +1 -0
- package/.output/server/chunks/routes/api/ai/providers.get.mjs +34 -0
- package/.output/server/chunks/routes/api/ai/providers.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auto-mode/status.get.mjs +35 -0
- package/.output/server/chunks/routes/api/auto-mode/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auto-mode/toggle.post.mjs +45 -0
- package/.output/server/chunks/routes/api/auto-mode/toggle.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/compare.get.mjs +70 -0
- package/.output/server/chunks/routes/api/chat/compare.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/context.get.mjs +147 -0
- package/.output/server/chunks/routes/api/chat/context.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/finalize.post.mjs +173 -0
- package/.output/server/chunks/routes/api/chat/finalize.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs +92 -0
- package/.output/server/chunks/routes/api/chat/generate-commit-message.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview-sync.post.mjs +59 -0
- package/.output/server/chunks/routes/api/chat/preview-sync.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview.delete.mjs +63 -0
- package/.output/server/chunks/routes/api/chat/preview.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/preview.post.mjs +91 -0
- package/.output/server/chunks/routes/api/chat/preview.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/rebase.post.mjs +109 -0
- package/.output/server/chunks/routes/api/chat/rebase.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree-commit.post.mjs +69 -0
- package/.output/server/chunks/routes/api/chat/worktree-commit.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree.delete.mjs +72 -0
- package/.output/server/chunks/routes/api/chat/worktree.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat/worktree.post.mjs +99 -0
- package/.output/server/chunks/routes/api/chat/worktree.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/chat.post.mjs +217 -0
- package/.output/server/chunks/routes/api/chat.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/_conversationId/archive.post.mjs +119 -0
- package/.output/server/chunks/routes/api/conversations/_conversationId/archive.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId/restore.post.mjs +125 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId/restore.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId_.delete.mjs +56 -0
- package/.output/server/chunks/routes/api/conversations/archives/_archiveId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations/archives.get.mjs +54 -0
- package/.output/server/chunks/routes/api/conversations/archives.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations.get.mjs +33 -0
- package/.output/server/chunks/routes/api/conversations.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/conversations.post.mjs +45 -0
- package/.output/server/chunks/routes/api/conversations.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/cwd.get.mjs +34 -0
- package/.output/server/chunks/routes/api/cwd.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branch-rename.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/branch-rename.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branch.delete.mjs +108 -0
- package/.output/server/chunks/routes/api/git/branch.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/branches.get.mjs +115 -0
- package/.output/server/chunks/routes/api/git/branches.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/checkout.post.mjs +110 -0
- package/.output/server/chunks/routes/api/git/checkout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/cherry-pick.post.mjs +79 -0
- package/.output/server/chunks/routes/api/git/cherry-pick.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/clean.post.mjs +65 -0
- package/.output/server/chunks/routes/api/git/clean.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/commit/_id_.get.mjs +63 -0
- package/.output/server/chunks/routes/api/git/commit/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/commit.post.mjs +95 -0
- package/.output/server/chunks/routes/api/git/commit.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/diff.get.mjs +83 -0
- package/.output/server/chunks/routes/api/git/diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/fetch.post.mjs +82 -0
- package/.output/server/chunks/routes/api/git/fetch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/file-diff.get.mjs +84 -0
- package/.output/server/chunks/routes/api/git/file-diff.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/graph.get.mjs +146 -0
- package/.output/server/chunks/routes/api/git/graph.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/log.get.mjs +166 -0
- package/.output/server/chunks/routes/api/git/log.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/merge-base.get.mjs +105 -0
- package/.output/server/chunks/routes/api/git/merge-base.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/merge.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/merge.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/pull.post.mjs +86 -0
- package/.output/server/chunks/routes/api/git/pull.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/push.post.mjs +91 -0
- package/.output/server/chunks/routes/api/git/push.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/rebase.post.mjs +82 -0
- package/.output/server/chunks/routes/api/git/rebase.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.delete.mjs +70 -0
- package/.output/server/chunks/routes/api/git/remote.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.post.mjs +76 -0
- package/.output/server/chunks/routes/api/git/remote.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remote.put.mjs +79 -0
- package/.output/server/chunks/routes/api/git/remote.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/remotes.get.mjs +63 -0
- package/.output/server/chunks/routes/api/git/remotes.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/reset.post.mjs +83 -0
- package/.output/server/chunks/routes/api/git/reset.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/revert.post.mjs +76 -0
- package/.output/server/chunks/routes/api/git/revert.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/show.get.mjs +82 -0
- package/.output/server/chunks/routes/api/git/show.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stage.post.mjs +73 -0
- package/.output/server/chunks/routes/api/git/stage.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-apply.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/stash-apply.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-branch.post.mjs +80 -0
- package/.output/server/chunks/routes/api/git/stash-branch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-drop.post.mjs +71 -0
- package/.output/server/chunks/routes/api/git/stash-drop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash-pop.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/stash-pop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash.get.mjs +62 -0
- package/.output/server/chunks/routes/api/git/stash.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/stash.post.mjs +71 -0
- package/.output/server/chunks/routes/api/git/stash.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/state.get.mjs +70 -0
- package/.output/server/chunks/routes/api/git/state.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/status.get.mjs +121 -0
- package/.output/server/chunks/routes/api/git/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag/_name_.get.mjs +70 -0
- package/.output/server/chunks/routes/api/git/tag/_name_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag-push.post.mjs +73 -0
- package/.output/server/chunks/routes/api/git/tag-push.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag.delete.mjs +76 -0
- package/.output/server/chunks/routes/api/git/tag.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/tag.post.mjs +87 -0
- package/.output/server/chunks/routes/api/git/tag.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/git/unstage.post.mjs +74 -0
- package/.output/server/chunks/routes/api/git/unstage.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +41 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get2.mjs +168 -0
- package/.output/server/chunks/routes/api/index.get2.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +150 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/abort.post.mjs +49 -0
- package/.output/server/chunks/routes/api/rebase/abort.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/ai-resolve.post.mjs +79 -0
- package/.output/server/chunks/routes/api/rebase/ai-resolve.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/conflicts.get.mjs +69 -0
- package/.output/server/chunks/routes/api/rebase/conflicts.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/continue-sync.post.mjs +76 -0
- package/.output/server/chunks/routes/api/rebase/continue-sync.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/continue.post.mjs +136 -0
- package/.output/server/chunks/routes/api/rebase/continue.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/rebase/resolve.put.mjs +52 -0
- package/.output/server/chunks/routes/api/rebase/resolve.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/repository/status.get.mjs +132 -0
- package/.output/server/chunks/routes/api/repository/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings.get.mjs +54 -0
- package/.output/server/chunks/routes/api/settings.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings.post.mjs +49 -0
- package/.output/server/chunks/routes/api/settings.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/skills/_skillId/prompt.post.mjs +64 -0
- package/.output/server/chunks/routes/api/skills/_skillId/prompt.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.get.mjs +61 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.put.mjs +65 -0
- package/.output/server/chunks/routes/api/specs/_featureId/_...filename_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/features.get.mjs +110 -0
- package/.output/server/chunks/routes/api/specs/features.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/reindex.post.mjs +43 -0
- package/.output/server/chunks/routes/api/specs/reindex.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/search.get.mjs +72 -0
- package/.output/server/chunks/routes/api/specs/search.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/specs/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/specs/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/worktrees/_name/switch.post.mjs +77 -0
- package/.output/server/chunks/routes/api/worktrees/_name/switch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/worktrees/_name_.delete.mjs +99 -0
- package/.output/server/chunks/routes/api/worktrees/_name_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/auto-mode-ws.mjs +65 -0
- package/.output/server/chunks/routes/auto-mode-ws.mjs.map +1 -0
- package/.output/server/chunks/routes/git-watcher-ws.mjs +155 -0
- package/.output/server/chunks/routes/git-watcher-ws.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +417 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/index.mjs +26 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +689 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1868 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6770 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1732 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +879 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/chokidar/handler.js +632 -0
- package/.output/server/node_modules/chokidar/index.js +822 -0
- package/.output/server/node_modules/chokidar/package.json +63 -0
- package/.output/server/node_modules/devalue/index.js +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +6 -0
- package/.output/server/node_modules/devalue/src/parse.js +234 -0
- package/.output/server/node_modules/devalue/src/stringify.js +265 -0
- package/.output/server/node_modules/devalue/src/uneval.js +407 -0
- package/.output/server/node_modules/devalue/src/utils.js +118 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +266 -0
- package/.output/server/node_modules/hookable/package.json +52 -0
- package/.output/server/node_modules/readdirp/index.js +272 -0
- package/.output/server/node_modules/readdirp/package.json +66 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGCfDSEL.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CYpwL2hc.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-node.js +105 -0
- package/.output/server/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/.output/server/node_modules/yaml/dist/compose/composer.js +222 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/.output/server/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/.output/server/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/.output/server/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/.output/server/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/.output/server/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/.output/server/node_modules/yaml/dist/doc/Document.js +337 -0
- package/.output/server/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/.output/server/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/.output/server/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/.output/server/node_modules/yaml/dist/doc/directives.js +178 -0
- package/.output/server/node_modules/yaml/dist/errors.js +62 -0
- package/.output/server/node_modules/yaml/dist/index.js +50 -0
- package/.output/server/node_modules/yaml/dist/log.js +19 -0
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +116 -0
- package/.output/server/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/.output/server/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/.output/server/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/.output/server/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/.output/server/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/.output/server/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/.output/server/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/.output/server/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/.output/server/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/.output/server/node_modules/yaml/dist/parse/cst.js +112 -0
- package/.output/server/node_modules/yaml/dist/parse/lexer.js +719 -0
- package/.output/server/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/.output/server/node_modules/yaml/dist/parse/parser.js +972 -0
- package/.output/server/node_modules/yaml/dist/public-api.js +107 -0
- package/.output/server/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/.output/server/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/.output/server/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/.output/server/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/.output/server/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/.output/server/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/.output/server/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/.output/server/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/.output/server/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/.output/server/node_modules/yaml/dist/schema/tags.js +99 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/merge.js +68 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/.output/server/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/.output/server/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringify.js +131 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyCollection.js +145 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/.output/server/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/.output/server/node_modules/yaml/dist/visit.js +236 -0
- package/.output/server/node_modules/yaml/package.json +97 -0
- package/.output/server/package.json +29 -0
- package/README.md +136 -0
- package/bin/spec-cat.js +80 -0
- package/package.json +82 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vue-bundle-renderer",
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"description": "Bundle Renderer for Vue 3.0",
|
|
5
|
+
"repository": "nuxt-contrib/vue-bundle-renderer",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./runtime": {
|
|
14
|
+
"types": "./dist/runtime.d.ts",
|
|
15
|
+
"import": "./dist/runtime.mjs",
|
|
16
|
+
"require": "./dist/runtime.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.cjs",
|
|
20
|
+
"module": "./dist/index.mjs",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"runtime.d.ts"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "unbuild",
|
|
28
|
+
"dev": "vitest",
|
|
29
|
+
"lint": "eslint src",
|
|
30
|
+
"prepack": "unbuild",
|
|
31
|
+
"test": "pnpm lint && pnpm vitest run --coverage && tsc --noEmit",
|
|
32
|
+
"bench": "vitest bench"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"ufo": "^1.6.1"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@codspeed/vitest-plugin": "^5.0.0",
|
|
39
|
+
"@nuxt/eslint-config": "^1.9.0",
|
|
40
|
+
"@types/node": "^22.18.6",
|
|
41
|
+
"@types/semver": "^7.7.1",
|
|
42
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
43
|
+
"changelogen": "^0.6.2",
|
|
44
|
+
"eslint": "^9.36.0",
|
|
45
|
+
"pkg-pr-new": "^0.0.60",
|
|
46
|
+
"semver": "^7.7.2",
|
|
47
|
+
"std-env": "^3.9.0",
|
|
48
|
+
"typescript": "^5.9.2",
|
|
49
|
+
"unbuild": "^3.6.1",
|
|
50
|
+
"vite": "^7.1.7",
|
|
51
|
+
"vitest": "3.2.4",
|
|
52
|
+
"vue": "3.5.22"
|
|
53
|
+
},
|
|
54
|
+
"packageManager": "pnpm@10.17.1"
|
|
55
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../nodes/identity.js');
|
|
4
|
+
var Scalar = require('../nodes/Scalar.js');
|
|
5
|
+
var YAMLMap = require('../nodes/YAMLMap.js');
|
|
6
|
+
var YAMLSeq = require('../nodes/YAMLSeq.js');
|
|
7
|
+
var resolveBlockMap = require('./resolve-block-map.js');
|
|
8
|
+
var resolveBlockSeq = require('./resolve-block-seq.js');
|
|
9
|
+
var resolveFlowCollection = require('./resolve-flow-collection.js');
|
|
10
|
+
|
|
11
|
+
function resolveCollection(CN, ctx, token, onError, tagName, tag) {
|
|
12
|
+
const coll = token.type === 'block-map'
|
|
13
|
+
? resolveBlockMap.resolveBlockMap(CN, ctx, token, onError, tag)
|
|
14
|
+
: token.type === 'block-seq'
|
|
15
|
+
? resolveBlockSeq.resolveBlockSeq(CN, ctx, token, onError, tag)
|
|
16
|
+
: resolveFlowCollection.resolveFlowCollection(CN, ctx, token, onError, tag);
|
|
17
|
+
const Coll = coll.constructor;
|
|
18
|
+
// If we got a tagName matching the class, or the tag name is '!',
|
|
19
|
+
// then use the tagName from the node class used to create it.
|
|
20
|
+
if (tagName === '!' || tagName === Coll.tagName) {
|
|
21
|
+
coll.tag = Coll.tagName;
|
|
22
|
+
return coll;
|
|
23
|
+
}
|
|
24
|
+
if (tagName)
|
|
25
|
+
coll.tag = tagName;
|
|
26
|
+
return coll;
|
|
27
|
+
}
|
|
28
|
+
function composeCollection(CN, ctx, token, props, onError) {
|
|
29
|
+
const tagToken = props.tag;
|
|
30
|
+
const tagName = !tagToken
|
|
31
|
+
? null
|
|
32
|
+
: ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg));
|
|
33
|
+
if (token.type === 'block-seq') {
|
|
34
|
+
const { anchor, newlineAfterProp: nl } = props;
|
|
35
|
+
const lastProp = anchor && tagToken
|
|
36
|
+
? anchor.offset > tagToken.offset
|
|
37
|
+
? anchor
|
|
38
|
+
: tagToken
|
|
39
|
+
: (anchor ?? tagToken);
|
|
40
|
+
if (lastProp && (!nl || nl.offset < lastProp.offset)) {
|
|
41
|
+
const message = 'Missing newline after block sequence props';
|
|
42
|
+
onError(lastProp, 'MISSING_CHAR', message);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const expType = token.type === 'block-map'
|
|
46
|
+
? 'map'
|
|
47
|
+
: token.type === 'block-seq'
|
|
48
|
+
? 'seq'
|
|
49
|
+
: token.start.source === '{'
|
|
50
|
+
? 'map'
|
|
51
|
+
: 'seq';
|
|
52
|
+
// shortcut: check if it's a generic YAMLMap or YAMLSeq
|
|
53
|
+
// before jumping into the custom tag logic.
|
|
54
|
+
if (!tagToken ||
|
|
55
|
+
!tagName ||
|
|
56
|
+
tagName === '!' ||
|
|
57
|
+
(tagName === YAMLMap.YAMLMap.tagName && expType === 'map') ||
|
|
58
|
+
(tagName === YAMLSeq.YAMLSeq.tagName && expType === 'seq')) {
|
|
59
|
+
return resolveCollection(CN, ctx, token, onError, tagName);
|
|
60
|
+
}
|
|
61
|
+
let tag = ctx.schema.tags.find(t => t.tag === tagName && t.collection === expType);
|
|
62
|
+
if (!tag) {
|
|
63
|
+
const kt = ctx.schema.knownTags[tagName];
|
|
64
|
+
if (kt?.collection === expType) {
|
|
65
|
+
ctx.schema.tags.push(Object.assign({}, kt, { default: false }));
|
|
66
|
+
tag = kt;
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
if (kt) {
|
|
70
|
+
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? 'scalar'}`, true);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
|
|
74
|
+
}
|
|
75
|
+
return resolveCollection(CN, ctx, token, onError, tagName);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const coll = resolveCollection(CN, ctx, token, onError, tagName, tag);
|
|
79
|
+
const res = tag.resolve?.(coll, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg), ctx.options) ?? coll;
|
|
80
|
+
const node = identity.isNode(res)
|
|
81
|
+
? res
|
|
82
|
+
: new Scalar.Scalar(res);
|
|
83
|
+
node.range = coll.range;
|
|
84
|
+
node.tag = tagName;
|
|
85
|
+
if (tag?.format)
|
|
86
|
+
node.format = tag.format;
|
|
87
|
+
return node;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
exports.composeCollection = composeCollection;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Document = require('../doc/Document.js');
|
|
4
|
+
var composeNode = require('./compose-node.js');
|
|
5
|
+
var resolveEnd = require('./resolve-end.js');
|
|
6
|
+
var resolveProps = require('./resolve-props.js');
|
|
7
|
+
|
|
8
|
+
function composeDoc(options, directives, { offset, start, value, end }, onError) {
|
|
9
|
+
const opts = Object.assign({ _directives: directives }, options);
|
|
10
|
+
const doc = new Document.Document(undefined, opts);
|
|
11
|
+
const ctx = {
|
|
12
|
+
atKey: false,
|
|
13
|
+
atRoot: true,
|
|
14
|
+
directives: doc.directives,
|
|
15
|
+
options: doc.options,
|
|
16
|
+
schema: doc.schema
|
|
17
|
+
};
|
|
18
|
+
const props = resolveProps.resolveProps(start, {
|
|
19
|
+
indicator: 'doc-start',
|
|
20
|
+
next: value ?? end?.[0],
|
|
21
|
+
offset,
|
|
22
|
+
onError,
|
|
23
|
+
parentIndent: 0,
|
|
24
|
+
startOnNewline: true
|
|
25
|
+
});
|
|
26
|
+
if (props.found) {
|
|
27
|
+
doc.directives.docStart = true;
|
|
28
|
+
if (value &&
|
|
29
|
+
(value.type === 'block-map' || value.type === 'block-seq') &&
|
|
30
|
+
!props.hasNewline)
|
|
31
|
+
onError(props.end, 'MISSING_CHAR', 'Block collection cannot start on same line with directives-end marker');
|
|
32
|
+
}
|
|
33
|
+
// @ts-expect-error If Contents is set, let's trust the user
|
|
34
|
+
doc.contents = value
|
|
35
|
+
? composeNode.composeNode(ctx, value, props, onError)
|
|
36
|
+
: composeNode.composeEmptyNode(ctx, props.end, start, null, props, onError);
|
|
37
|
+
const contentEnd = doc.contents.range[2];
|
|
38
|
+
const re = resolveEnd.resolveEnd(end, contentEnd, false, onError);
|
|
39
|
+
if (re.comment)
|
|
40
|
+
doc.comment = re.comment;
|
|
41
|
+
doc.range = [offset, contentEnd, re.offset];
|
|
42
|
+
return doc;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
exports.composeDoc = composeDoc;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Alias = require('../nodes/Alias.js');
|
|
4
|
+
var identity = require('../nodes/identity.js');
|
|
5
|
+
var composeCollection = require('./compose-collection.js');
|
|
6
|
+
var composeScalar = require('./compose-scalar.js');
|
|
7
|
+
var resolveEnd = require('./resolve-end.js');
|
|
8
|
+
var utilEmptyScalarPosition = require('./util-empty-scalar-position.js');
|
|
9
|
+
|
|
10
|
+
const CN = { composeNode, composeEmptyNode };
|
|
11
|
+
function composeNode(ctx, token, props, onError) {
|
|
12
|
+
const atKey = ctx.atKey;
|
|
13
|
+
const { spaceBefore, comment, anchor, tag } = props;
|
|
14
|
+
let node;
|
|
15
|
+
let isSrcToken = true;
|
|
16
|
+
switch (token.type) {
|
|
17
|
+
case 'alias':
|
|
18
|
+
node = composeAlias(ctx, token, onError);
|
|
19
|
+
if (anchor || tag)
|
|
20
|
+
onError(token, 'ALIAS_PROPS', 'An alias node must not specify any properties');
|
|
21
|
+
break;
|
|
22
|
+
case 'scalar':
|
|
23
|
+
case 'single-quoted-scalar':
|
|
24
|
+
case 'double-quoted-scalar':
|
|
25
|
+
case 'block-scalar':
|
|
26
|
+
node = composeScalar.composeScalar(ctx, token, tag, onError);
|
|
27
|
+
if (anchor)
|
|
28
|
+
node.anchor = anchor.source.substring(1);
|
|
29
|
+
break;
|
|
30
|
+
case 'block-map':
|
|
31
|
+
case 'block-seq':
|
|
32
|
+
case 'flow-collection':
|
|
33
|
+
node = composeCollection.composeCollection(CN, ctx, token, props, onError);
|
|
34
|
+
if (anchor)
|
|
35
|
+
node.anchor = anchor.source.substring(1);
|
|
36
|
+
break;
|
|
37
|
+
default: {
|
|
38
|
+
const message = token.type === 'error'
|
|
39
|
+
? token.message
|
|
40
|
+
: `Unsupported token (type: ${token.type})`;
|
|
41
|
+
onError(token, 'UNEXPECTED_TOKEN', message);
|
|
42
|
+
node = composeEmptyNode(ctx, token.offset, undefined, null, props, onError);
|
|
43
|
+
isSrcToken = false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (anchor && node.anchor === '')
|
|
47
|
+
onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string');
|
|
48
|
+
if (atKey &&
|
|
49
|
+
ctx.options.stringKeys &&
|
|
50
|
+
(!identity.isScalar(node) ||
|
|
51
|
+
typeof node.value !== 'string' ||
|
|
52
|
+
(node.tag && node.tag !== 'tag:yaml.org,2002:str'))) {
|
|
53
|
+
const msg = 'With stringKeys, all keys must be strings';
|
|
54
|
+
onError(tag ?? token, 'NON_STRING_KEY', msg);
|
|
55
|
+
}
|
|
56
|
+
if (spaceBefore)
|
|
57
|
+
node.spaceBefore = true;
|
|
58
|
+
if (comment) {
|
|
59
|
+
if (token.type === 'scalar' && token.source === '')
|
|
60
|
+
node.comment = comment;
|
|
61
|
+
else
|
|
62
|
+
node.commentBefore = comment;
|
|
63
|
+
}
|
|
64
|
+
// @ts-expect-error Type checking misses meaning of isSrcToken
|
|
65
|
+
if (ctx.options.keepSourceTokens && isSrcToken)
|
|
66
|
+
node.srcToken = token;
|
|
67
|
+
return node;
|
|
68
|
+
}
|
|
69
|
+
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) {
|
|
70
|
+
const token = {
|
|
71
|
+
type: 'scalar',
|
|
72
|
+
offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
|
|
73
|
+
indent: -1,
|
|
74
|
+
source: ''
|
|
75
|
+
};
|
|
76
|
+
const node = composeScalar.composeScalar(ctx, token, tag, onError);
|
|
77
|
+
if (anchor) {
|
|
78
|
+
node.anchor = anchor.source.substring(1);
|
|
79
|
+
if (node.anchor === '')
|
|
80
|
+
onError(anchor, 'BAD_ALIAS', 'Anchor cannot be an empty string');
|
|
81
|
+
}
|
|
82
|
+
if (spaceBefore)
|
|
83
|
+
node.spaceBefore = true;
|
|
84
|
+
if (comment) {
|
|
85
|
+
node.comment = comment;
|
|
86
|
+
node.range[2] = end;
|
|
87
|
+
}
|
|
88
|
+
return node;
|
|
89
|
+
}
|
|
90
|
+
function composeAlias({ options }, { offset, source, end }, onError) {
|
|
91
|
+
const alias = new Alias.Alias(source.substring(1));
|
|
92
|
+
if (alias.source === '')
|
|
93
|
+
onError(offset, 'BAD_ALIAS', 'Alias cannot be an empty string');
|
|
94
|
+
if (alias.source.endsWith(':'))
|
|
95
|
+
onError(offset + source.length - 1, 'BAD_ALIAS', 'Alias ending in : is ambiguous', true);
|
|
96
|
+
const valueEnd = offset + source.length;
|
|
97
|
+
const re = resolveEnd.resolveEnd(end, valueEnd, options.strict, onError);
|
|
98
|
+
alias.range = [offset, valueEnd, re.offset];
|
|
99
|
+
if (re.comment)
|
|
100
|
+
alias.comment = re.comment;
|
|
101
|
+
return alias;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
exports.composeEmptyNode = composeEmptyNode;
|
|
105
|
+
exports.composeNode = composeNode;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../nodes/identity.js');
|
|
4
|
+
var Scalar = require('../nodes/Scalar.js');
|
|
5
|
+
var resolveBlockScalar = require('./resolve-block-scalar.js');
|
|
6
|
+
var resolveFlowScalar = require('./resolve-flow-scalar.js');
|
|
7
|
+
|
|
8
|
+
function composeScalar(ctx, token, tagToken, onError) {
|
|
9
|
+
const { value, type, comment, range } = token.type === 'block-scalar'
|
|
10
|
+
? resolveBlockScalar.resolveBlockScalar(ctx, token, onError)
|
|
11
|
+
: resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
|
|
12
|
+
const tagName = tagToken
|
|
13
|
+
? ctx.directives.tagName(tagToken.source, msg => onError(tagToken, 'TAG_RESOLVE_FAILED', msg))
|
|
14
|
+
: null;
|
|
15
|
+
let tag;
|
|
16
|
+
if (ctx.options.stringKeys && ctx.atKey) {
|
|
17
|
+
tag = ctx.schema[identity.SCALAR];
|
|
18
|
+
}
|
|
19
|
+
else if (tagName)
|
|
20
|
+
tag = findScalarTagByName(ctx.schema, value, tagName, tagToken, onError);
|
|
21
|
+
else if (token.type === 'scalar')
|
|
22
|
+
tag = findScalarTagByTest(ctx, value, token, onError);
|
|
23
|
+
else
|
|
24
|
+
tag = ctx.schema[identity.SCALAR];
|
|
25
|
+
let scalar;
|
|
26
|
+
try {
|
|
27
|
+
const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options);
|
|
28
|
+
scalar = identity.isScalar(res) ? res : new Scalar.Scalar(res);
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
32
|
+
onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg);
|
|
33
|
+
scalar = new Scalar.Scalar(value);
|
|
34
|
+
}
|
|
35
|
+
scalar.range = range;
|
|
36
|
+
scalar.source = value;
|
|
37
|
+
if (type)
|
|
38
|
+
scalar.type = type;
|
|
39
|
+
if (tagName)
|
|
40
|
+
scalar.tag = tagName;
|
|
41
|
+
if (tag.format)
|
|
42
|
+
scalar.format = tag.format;
|
|
43
|
+
if (comment)
|
|
44
|
+
scalar.comment = comment;
|
|
45
|
+
return scalar;
|
|
46
|
+
}
|
|
47
|
+
function findScalarTagByName(schema, value, tagName, tagToken, onError) {
|
|
48
|
+
if (tagName === '!')
|
|
49
|
+
return schema[identity.SCALAR]; // non-specific tag
|
|
50
|
+
const matchWithTest = [];
|
|
51
|
+
for (const tag of schema.tags) {
|
|
52
|
+
if (!tag.collection && tag.tag === tagName) {
|
|
53
|
+
if (tag.default && tag.test)
|
|
54
|
+
matchWithTest.push(tag);
|
|
55
|
+
else
|
|
56
|
+
return tag;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
for (const tag of matchWithTest)
|
|
60
|
+
if (tag.test?.test(value))
|
|
61
|
+
return tag;
|
|
62
|
+
const kt = schema.knownTags[tagName];
|
|
63
|
+
if (kt && !kt.collection) {
|
|
64
|
+
// Ensure that the known tag is available for stringifying,
|
|
65
|
+
// but does not get used by default.
|
|
66
|
+
schema.tags.push(Object.assign({}, kt, { default: false, test: undefined }));
|
|
67
|
+
return kt;
|
|
68
|
+
}
|
|
69
|
+
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str');
|
|
70
|
+
return schema[identity.SCALAR];
|
|
71
|
+
}
|
|
72
|
+
function findScalarTagByTest({ atKey, directives, schema }, value, token, onError) {
|
|
73
|
+
const tag = schema.tags.find(tag => (tag.default === true || (atKey && tag.default === 'key')) &&
|
|
74
|
+
tag.test?.test(value)) || schema[identity.SCALAR];
|
|
75
|
+
if (schema.compat) {
|
|
76
|
+
const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ??
|
|
77
|
+
schema[identity.SCALAR];
|
|
78
|
+
if (tag.tag !== compat.tag) {
|
|
79
|
+
const ts = directives.tagString(tag.tag);
|
|
80
|
+
const cs = directives.tagString(compat.tag);
|
|
81
|
+
const msg = `Value may be parsed as either ${ts} or ${cs}`;
|
|
82
|
+
onError(token, 'TAG_RESOLVE_FAILED', msg, true);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return tag;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
exports.composeScalar = composeScalar;
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var node_process = require('process');
|
|
4
|
+
var directives = require('../doc/directives.js');
|
|
5
|
+
var Document = require('../doc/Document.js');
|
|
6
|
+
var errors = require('../errors.js');
|
|
7
|
+
var identity = require('../nodes/identity.js');
|
|
8
|
+
var composeDoc = require('./compose-doc.js');
|
|
9
|
+
var resolveEnd = require('./resolve-end.js');
|
|
10
|
+
|
|
11
|
+
function getErrorPos(src) {
|
|
12
|
+
if (typeof src === 'number')
|
|
13
|
+
return [src, src + 1];
|
|
14
|
+
if (Array.isArray(src))
|
|
15
|
+
return src.length === 2 ? src : [src[0], src[1]];
|
|
16
|
+
const { offset, source } = src;
|
|
17
|
+
return [offset, offset + (typeof source === 'string' ? source.length : 1)];
|
|
18
|
+
}
|
|
19
|
+
function parsePrelude(prelude) {
|
|
20
|
+
let comment = '';
|
|
21
|
+
let atComment = false;
|
|
22
|
+
let afterEmptyLine = false;
|
|
23
|
+
for (let i = 0; i < prelude.length; ++i) {
|
|
24
|
+
const source = prelude[i];
|
|
25
|
+
switch (source[0]) {
|
|
26
|
+
case '#':
|
|
27
|
+
comment +=
|
|
28
|
+
(comment === '' ? '' : afterEmptyLine ? '\n\n' : '\n') +
|
|
29
|
+
(source.substring(1) || ' ');
|
|
30
|
+
atComment = true;
|
|
31
|
+
afterEmptyLine = false;
|
|
32
|
+
break;
|
|
33
|
+
case '%':
|
|
34
|
+
if (prelude[i + 1]?.[0] !== '#')
|
|
35
|
+
i += 1;
|
|
36
|
+
atComment = false;
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
// This may be wrong after doc-end, but in that case it doesn't matter
|
|
40
|
+
if (!atComment)
|
|
41
|
+
afterEmptyLine = true;
|
|
42
|
+
atComment = false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return { comment, afterEmptyLine };
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Compose a stream of CST nodes into a stream of YAML Documents.
|
|
49
|
+
*
|
|
50
|
+
* ```ts
|
|
51
|
+
* import { Composer, Parser } from 'yaml'
|
|
52
|
+
*
|
|
53
|
+
* const src: string = ...
|
|
54
|
+
* const tokens = new Parser().parse(src)
|
|
55
|
+
* const docs = new Composer().compose(tokens)
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
class Composer {
|
|
59
|
+
constructor(options = {}) {
|
|
60
|
+
this.doc = null;
|
|
61
|
+
this.atDirectives = false;
|
|
62
|
+
this.prelude = [];
|
|
63
|
+
this.errors = [];
|
|
64
|
+
this.warnings = [];
|
|
65
|
+
this.onError = (source, code, message, warning) => {
|
|
66
|
+
const pos = getErrorPos(source);
|
|
67
|
+
if (warning)
|
|
68
|
+
this.warnings.push(new errors.YAMLWarning(pos, code, message));
|
|
69
|
+
else
|
|
70
|
+
this.errors.push(new errors.YAMLParseError(pos, code, message));
|
|
71
|
+
};
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
|
73
|
+
this.directives = new directives.Directives({ version: options.version || '1.2' });
|
|
74
|
+
this.options = options;
|
|
75
|
+
}
|
|
76
|
+
decorate(doc, afterDoc) {
|
|
77
|
+
const { comment, afterEmptyLine } = parsePrelude(this.prelude);
|
|
78
|
+
//console.log({ dc: doc.comment, prelude, comment })
|
|
79
|
+
if (comment) {
|
|
80
|
+
const dc = doc.contents;
|
|
81
|
+
if (afterDoc) {
|
|
82
|
+
doc.comment = doc.comment ? `${doc.comment}\n${comment}` : comment;
|
|
83
|
+
}
|
|
84
|
+
else if (afterEmptyLine || doc.directives.docStart || !dc) {
|
|
85
|
+
doc.commentBefore = comment;
|
|
86
|
+
}
|
|
87
|
+
else if (identity.isCollection(dc) && !dc.flow && dc.items.length > 0) {
|
|
88
|
+
let it = dc.items[0];
|
|
89
|
+
if (identity.isPair(it))
|
|
90
|
+
it = it.key;
|
|
91
|
+
const cb = it.commentBefore;
|
|
92
|
+
it.commentBefore = cb ? `${comment}\n${cb}` : comment;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
const cb = dc.commentBefore;
|
|
96
|
+
dc.commentBefore = cb ? `${comment}\n${cb}` : comment;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
if (afterDoc) {
|
|
100
|
+
Array.prototype.push.apply(doc.errors, this.errors);
|
|
101
|
+
Array.prototype.push.apply(doc.warnings, this.warnings);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
doc.errors = this.errors;
|
|
105
|
+
doc.warnings = this.warnings;
|
|
106
|
+
}
|
|
107
|
+
this.prelude = [];
|
|
108
|
+
this.errors = [];
|
|
109
|
+
this.warnings = [];
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Current stream status information.
|
|
113
|
+
*
|
|
114
|
+
* Mostly useful at the end of input for an empty stream.
|
|
115
|
+
*/
|
|
116
|
+
streamInfo() {
|
|
117
|
+
return {
|
|
118
|
+
comment: parsePrelude(this.prelude).comment,
|
|
119
|
+
directives: this.directives,
|
|
120
|
+
errors: this.errors,
|
|
121
|
+
warnings: this.warnings
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Compose tokens into documents.
|
|
126
|
+
*
|
|
127
|
+
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
|
|
128
|
+
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
|
|
129
|
+
*/
|
|
130
|
+
*compose(tokens, forceDoc = false, endOffset = -1) {
|
|
131
|
+
for (const token of tokens)
|
|
132
|
+
yield* this.next(token);
|
|
133
|
+
yield* this.end(forceDoc, endOffset);
|
|
134
|
+
}
|
|
135
|
+
/** Advance the composer by one CST token. */
|
|
136
|
+
*next(token) {
|
|
137
|
+
if (node_process.env.LOG_STREAM)
|
|
138
|
+
console.dir(token, { depth: null });
|
|
139
|
+
switch (token.type) {
|
|
140
|
+
case 'directive':
|
|
141
|
+
this.directives.add(token.source, (offset, message, warning) => {
|
|
142
|
+
const pos = getErrorPos(token);
|
|
143
|
+
pos[0] += offset;
|
|
144
|
+
this.onError(pos, 'BAD_DIRECTIVE', message, warning);
|
|
145
|
+
});
|
|
146
|
+
this.prelude.push(token.source);
|
|
147
|
+
this.atDirectives = true;
|
|
148
|
+
break;
|
|
149
|
+
case 'document': {
|
|
150
|
+
const doc = composeDoc.composeDoc(this.options, this.directives, token, this.onError);
|
|
151
|
+
if (this.atDirectives && !doc.directives.docStart)
|
|
152
|
+
this.onError(token, 'MISSING_CHAR', 'Missing directives-end/doc-start indicator line');
|
|
153
|
+
this.decorate(doc, false);
|
|
154
|
+
if (this.doc)
|
|
155
|
+
yield this.doc;
|
|
156
|
+
this.doc = doc;
|
|
157
|
+
this.atDirectives = false;
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
case 'byte-order-mark':
|
|
161
|
+
case 'space':
|
|
162
|
+
break;
|
|
163
|
+
case 'comment':
|
|
164
|
+
case 'newline':
|
|
165
|
+
this.prelude.push(token.source);
|
|
166
|
+
break;
|
|
167
|
+
case 'error': {
|
|
168
|
+
const msg = token.source
|
|
169
|
+
? `${token.message}: ${JSON.stringify(token.source)}`
|
|
170
|
+
: token.message;
|
|
171
|
+
const error = new errors.YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg);
|
|
172
|
+
if (this.atDirectives || !this.doc)
|
|
173
|
+
this.errors.push(error);
|
|
174
|
+
else
|
|
175
|
+
this.doc.errors.push(error);
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
case 'doc-end': {
|
|
179
|
+
if (!this.doc) {
|
|
180
|
+
const msg = 'Unexpected doc-end without preceding document';
|
|
181
|
+
this.errors.push(new errors.YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', msg));
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
this.doc.directives.docEnd = true;
|
|
185
|
+
const end = resolveEnd.resolveEnd(token.end, token.offset + token.source.length, this.doc.options.strict, this.onError);
|
|
186
|
+
this.decorate(this.doc, true);
|
|
187
|
+
if (end.comment) {
|
|
188
|
+
const dc = this.doc.comment;
|
|
189
|
+
this.doc.comment = dc ? `${dc}\n${end.comment}` : end.comment;
|
|
190
|
+
}
|
|
191
|
+
this.doc.range[2] = end.offset;
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
default:
|
|
195
|
+
this.errors.push(new errors.YAMLParseError(getErrorPos(token), 'UNEXPECTED_TOKEN', `Unsupported token ${token.type}`));
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Call at end of input to yield any remaining document.
|
|
200
|
+
*
|
|
201
|
+
* @param forceDoc - If the stream contains no document, still emit a final document including any comments and directives that would be applied to a subsequent document.
|
|
202
|
+
* @param endOffset - Should be set if `forceDoc` is also set, to set the document range end and to indicate errors correctly.
|
|
203
|
+
*/
|
|
204
|
+
*end(forceDoc = false, endOffset = -1) {
|
|
205
|
+
if (this.doc) {
|
|
206
|
+
this.decorate(this.doc, true);
|
|
207
|
+
yield this.doc;
|
|
208
|
+
this.doc = null;
|
|
209
|
+
}
|
|
210
|
+
else if (forceDoc) {
|
|
211
|
+
const opts = Object.assign({ _directives: this.directives }, this.options);
|
|
212
|
+
const doc = new Document.Document(undefined, opts);
|
|
213
|
+
if (this.atDirectives)
|
|
214
|
+
this.onError(endOffset, 'MISSING_CHAR', 'Missing directives-end indicator line');
|
|
215
|
+
doc.range = [0, endOffset, endOffset];
|
|
216
|
+
this.decorate(doc, false);
|
|
217
|
+
yield doc;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
exports.Composer = Composer;
|