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,131 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var anchors = require('../doc/anchors.js');
|
|
4
|
+
var identity = require('../nodes/identity.js');
|
|
5
|
+
var stringifyComment = require('./stringifyComment.js');
|
|
6
|
+
var stringifyString = require('./stringifyString.js');
|
|
7
|
+
|
|
8
|
+
function createStringifyContext(doc, options) {
|
|
9
|
+
const opt = Object.assign({
|
|
10
|
+
blockQuote: true,
|
|
11
|
+
commentString: stringifyComment.stringifyComment,
|
|
12
|
+
defaultKeyType: null,
|
|
13
|
+
defaultStringType: 'PLAIN',
|
|
14
|
+
directives: null,
|
|
15
|
+
doubleQuotedAsJSON: false,
|
|
16
|
+
doubleQuotedMinMultiLineLength: 40,
|
|
17
|
+
falseStr: 'false',
|
|
18
|
+
flowCollectionPadding: true,
|
|
19
|
+
indentSeq: true,
|
|
20
|
+
lineWidth: 80,
|
|
21
|
+
minContentWidth: 20,
|
|
22
|
+
nullStr: 'null',
|
|
23
|
+
simpleKeys: false,
|
|
24
|
+
singleQuote: null,
|
|
25
|
+
trueStr: 'true',
|
|
26
|
+
verifyAliasOrder: true
|
|
27
|
+
}, doc.schema.toStringOptions, options);
|
|
28
|
+
let inFlow;
|
|
29
|
+
switch (opt.collectionStyle) {
|
|
30
|
+
case 'block':
|
|
31
|
+
inFlow = false;
|
|
32
|
+
break;
|
|
33
|
+
case 'flow':
|
|
34
|
+
inFlow = true;
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
inFlow = null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
anchors: new Set(),
|
|
41
|
+
doc,
|
|
42
|
+
flowCollectionPadding: opt.flowCollectionPadding ? ' ' : '',
|
|
43
|
+
indent: '',
|
|
44
|
+
indentStep: typeof opt.indent === 'number' ? ' '.repeat(opt.indent) : ' ',
|
|
45
|
+
inFlow,
|
|
46
|
+
options: opt
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function getTagObject(tags, item) {
|
|
50
|
+
if (item.tag) {
|
|
51
|
+
const match = tags.filter(t => t.tag === item.tag);
|
|
52
|
+
if (match.length > 0)
|
|
53
|
+
return match.find(t => t.format === item.format) ?? match[0];
|
|
54
|
+
}
|
|
55
|
+
let tagObj = undefined;
|
|
56
|
+
let obj;
|
|
57
|
+
if (identity.isScalar(item)) {
|
|
58
|
+
obj = item.value;
|
|
59
|
+
let match = tags.filter(t => t.identify?.(obj));
|
|
60
|
+
if (match.length > 1) {
|
|
61
|
+
const testMatch = match.filter(t => t.test);
|
|
62
|
+
if (testMatch.length > 0)
|
|
63
|
+
match = testMatch;
|
|
64
|
+
}
|
|
65
|
+
tagObj =
|
|
66
|
+
match.find(t => t.format === item.format) ?? match.find(t => !t.format);
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
obj = item;
|
|
70
|
+
tagObj = tags.find(t => t.nodeClass && obj instanceof t.nodeClass);
|
|
71
|
+
}
|
|
72
|
+
if (!tagObj) {
|
|
73
|
+
const name = obj?.constructor?.name ?? (obj === null ? 'null' : typeof obj);
|
|
74
|
+
throw new Error(`Tag not resolved for ${name} value`);
|
|
75
|
+
}
|
|
76
|
+
return tagObj;
|
|
77
|
+
}
|
|
78
|
+
// needs to be called before value stringifier to allow for circular anchor refs
|
|
79
|
+
function stringifyProps(node, tagObj, { anchors: anchors$1, doc }) {
|
|
80
|
+
if (!doc.directives)
|
|
81
|
+
return '';
|
|
82
|
+
const props = [];
|
|
83
|
+
const anchor = (identity.isScalar(node) || identity.isCollection(node)) && node.anchor;
|
|
84
|
+
if (anchor && anchors.anchorIsValid(anchor)) {
|
|
85
|
+
anchors$1.add(anchor);
|
|
86
|
+
props.push(`&${anchor}`);
|
|
87
|
+
}
|
|
88
|
+
const tag = node.tag ?? (tagObj.default ? null : tagObj.tag);
|
|
89
|
+
if (tag)
|
|
90
|
+
props.push(doc.directives.tagString(tag));
|
|
91
|
+
return props.join(' ');
|
|
92
|
+
}
|
|
93
|
+
function stringify(item, ctx, onComment, onChompKeep) {
|
|
94
|
+
if (identity.isPair(item))
|
|
95
|
+
return item.toString(ctx, onComment, onChompKeep);
|
|
96
|
+
if (identity.isAlias(item)) {
|
|
97
|
+
if (ctx.doc.directives)
|
|
98
|
+
return item.toString(ctx);
|
|
99
|
+
if (ctx.resolvedAliases?.has(item)) {
|
|
100
|
+
throw new TypeError(`Cannot stringify circular structure without alias nodes`);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
if (ctx.resolvedAliases)
|
|
104
|
+
ctx.resolvedAliases.add(item);
|
|
105
|
+
else
|
|
106
|
+
ctx.resolvedAliases = new Set([item]);
|
|
107
|
+
item = item.resolve(ctx.doc);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
let tagObj = undefined;
|
|
111
|
+
const node = identity.isNode(item)
|
|
112
|
+
? item
|
|
113
|
+
: ctx.doc.createNode(item, { onTagObj: o => (tagObj = o) });
|
|
114
|
+
tagObj ?? (tagObj = getTagObject(ctx.doc.schema.tags, node));
|
|
115
|
+
const props = stringifyProps(node, tagObj, ctx);
|
|
116
|
+
if (props.length > 0)
|
|
117
|
+
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
118
|
+
const str = typeof tagObj.stringify === 'function'
|
|
119
|
+
? tagObj.stringify(node, ctx, onComment, onChompKeep)
|
|
120
|
+
: identity.isScalar(node)
|
|
121
|
+
? stringifyString.stringifyString(node, ctx, onComment, onChompKeep)
|
|
122
|
+
: node.toString(ctx, onComment, onChompKeep);
|
|
123
|
+
if (!props)
|
|
124
|
+
return str;
|
|
125
|
+
return identity.isScalar(node) || str[0] === '{' || str[0] === '['
|
|
126
|
+
? `${props} ${str}`
|
|
127
|
+
: `${props}\n${ctx.indent}${str}`;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
exports.createStringifyContext = createStringifyContext;
|
|
131
|
+
exports.stringify = stringify;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../nodes/identity.js');
|
|
4
|
+
var stringify = require('./stringify.js');
|
|
5
|
+
var stringifyComment = require('./stringifyComment.js');
|
|
6
|
+
|
|
7
|
+
function stringifyCollection(collection, ctx, options) {
|
|
8
|
+
const flow = ctx.inFlow ?? collection.flow;
|
|
9
|
+
const stringify = flow ? stringifyFlowCollection : stringifyBlockCollection;
|
|
10
|
+
return stringify(collection, ctx, options);
|
|
11
|
+
}
|
|
12
|
+
function stringifyBlockCollection({ comment, items }, ctx, { blockItemPrefix, flowChars, itemIndent, onChompKeep, onComment }) {
|
|
13
|
+
const { indent, options: { commentString } } = ctx;
|
|
14
|
+
const itemCtx = Object.assign({}, ctx, { indent: itemIndent, type: null });
|
|
15
|
+
let chompKeep = false; // flag for the preceding node's status
|
|
16
|
+
const lines = [];
|
|
17
|
+
for (let i = 0; i < items.length; ++i) {
|
|
18
|
+
const item = items[i];
|
|
19
|
+
let comment = null;
|
|
20
|
+
if (identity.isNode(item)) {
|
|
21
|
+
if (!chompKeep && item.spaceBefore)
|
|
22
|
+
lines.push('');
|
|
23
|
+
addCommentBefore(ctx, lines, item.commentBefore, chompKeep);
|
|
24
|
+
if (item.comment)
|
|
25
|
+
comment = item.comment;
|
|
26
|
+
}
|
|
27
|
+
else if (identity.isPair(item)) {
|
|
28
|
+
const ik = identity.isNode(item.key) ? item.key : null;
|
|
29
|
+
if (ik) {
|
|
30
|
+
if (!chompKeep && ik.spaceBefore)
|
|
31
|
+
lines.push('');
|
|
32
|
+
addCommentBefore(ctx, lines, ik.commentBefore, chompKeep);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
chompKeep = false;
|
|
36
|
+
let str = stringify.stringify(item, itemCtx, () => (comment = null), () => (chompKeep = true));
|
|
37
|
+
if (comment)
|
|
38
|
+
str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
|
|
39
|
+
if (chompKeep && comment)
|
|
40
|
+
chompKeep = false;
|
|
41
|
+
lines.push(blockItemPrefix + str);
|
|
42
|
+
}
|
|
43
|
+
let str;
|
|
44
|
+
if (lines.length === 0) {
|
|
45
|
+
str = flowChars.start + flowChars.end;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
str = lines[0];
|
|
49
|
+
for (let i = 1; i < lines.length; ++i) {
|
|
50
|
+
const line = lines[i];
|
|
51
|
+
str += line ? `\n${indent}${line}` : '\n';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (comment) {
|
|
55
|
+
str += '\n' + stringifyComment.indentComment(commentString(comment), indent);
|
|
56
|
+
if (onComment)
|
|
57
|
+
onComment();
|
|
58
|
+
}
|
|
59
|
+
else if (chompKeep && onChompKeep)
|
|
60
|
+
onChompKeep();
|
|
61
|
+
return str;
|
|
62
|
+
}
|
|
63
|
+
function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
|
|
64
|
+
const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
|
|
65
|
+
itemIndent += indentStep;
|
|
66
|
+
const itemCtx = Object.assign({}, ctx, {
|
|
67
|
+
indent: itemIndent,
|
|
68
|
+
inFlow: true,
|
|
69
|
+
type: null
|
|
70
|
+
});
|
|
71
|
+
let reqNewline = false;
|
|
72
|
+
let linesAtValue = 0;
|
|
73
|
+
const lines = [];
|
|
74
|
+
for (let i = 0; i < items.length; ++i) {
|
|
75
|
+
const item = items[i];
|
|
76
|
+
let comment = null;
|
|
77
|
+
if (identity.isNode(item)) {
|
|
78
|
+
if (item.spaceBefore)
|
|
79
|
+
lines.push('');
|
|
80
|
+
addCommentBefore(ctx, lines, item.commentBefore, false);
|
|
81
|
+
if (item.comment)
|
|
82
|
+
comment = item.comment;
|
|
83
|
+
}
|
|
84
|
+
else if (identity.isPair(item)) {
|
|
85
|
+
const ik = identity.isNode(item.key) ? item.key : null;
|
|
86
|
+
if (ik) {
|
|
87
|
+
if (ik.spaceBefore)
|
|
88
|
+
lines.push('');
|
|
89
|
+
addCommentBefore(ctx, lines, ik.commentBefore, false);
|
|
90
|
+
if (ik.comment)
|
|
91
|
+
reqNewline = true;
|
|
92
|
+
}
|
|
93
|
+
const iv = identity.isNode(item.value) ? item.value : null;
|
|
94
|
+
if (iv) {
|
|
95
|
+
if (iv.comment)
|
|
96
|
+
comment = iv.comment;
|
|
97
|
+
if (iv.commentBefore)
|
|
98
|
+
reqNewline = true;
|
|
99
|
+
}
|
|
100
|
+
else if (item.value == null && ik?.comment) {
|
|
101
|
+
comment = ik.comment;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (comment)
|
|
105
|
+
reqNewline = true;
|
|
106
|
+
let str = stringify.stringify(item, itemCtx, () => (comment = null));
|
|
107
|
+
if (i < items.length - 1)
|
|
108
|
+
str += ',';
|
|
109
|
+
if (comment)
|
|
110
|
+
str += stringifyComment.lineComment(str, itemIndent, commentString(comment));
|
|
111
|
+
if (!reqNewline && (lines.length > linesAtValue || str.includes('\n')))
|
|
112
|
+
reqNewline = true;
|
|
113
|
+
lines.push(str);
|
|
114
|
+
linesAtValue = lines.length;
|
|
115
|
+
}
|
|
116
|
+
const { start, end } = flowChars;
|
|
117
|
+
if (lines.length === 0) {
|
|
118
|
+
return start + end;
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
if (!reqNewline) {
|
|
122
|
+
const len = lines.reduce((sum, line) => sum + line.length + 2, 2);
|
|
123
|
+
reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
|
|
124
|
+
}
|
|
125
|
+
if (reqNewline) {
|
|
126
|
+
let str = start;
|
|
127
|
+
for (const line of lines)
|
|
128
|
+
str += line ? `\n${indentStep}${indent}${line}` : '\n';
|
|
129
|
+
return `${str}\n${indent}${end}`;
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return `${start}${fcPadding}${lines.join(' ')}${fcPadding}${end}`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
function addCommentBefore({ indent, options: { commentString } }, lines, comment, chompKeep) {
|
|
137
|
+
if (comment && chompKeep)
|
|
138
|
+
comment = comment.replace(/^\n+/, '');
|
|
139
|
+
if (comment) {
|
|
140
|
+
const ic = stringifyComment.indentComment(commentString(comment), indent);
|
|
141
|
+
lines.push(ic.trimStart()); // Avoid double indent on first line
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
exports.stringifyCollection = stringifyCollection;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Stringifies a comment.
|
|
5
|
+
*
|
|
6
|
+
* Empty comment lines are left empty,
|
|
7
|
+
* lines consisting of a single space are replaced by `#`,
|
|
8
|
+
* and all other lines are prefixed with a `#`.
|
|
9
|
+
*/
|
|
10
|
+
const stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, '#');
|
|
11
|
+
function indentComment(comment, indent) {
|
|
12
|
+
if (/^\n+$/.test(comment))
|
|
13
|
+
return comment.substring(1);
|
|
14
|
+
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
15
|
+
}
|
|
16
|
+
const lineComment = (str, indent, comment) => str.endsWith('\n')
|
|
17
|
+
? indentComment(comment, indent)
|
|
18
|
+
: comment.includes('\n')
|
|
19
|
+
? '\n' + indentComment(comment, indent)
|
|
20
|
+
: (str.endsWith(' ') ? '' : ' ') + comment;
|
|
21
|
+
|
|
22
|
+
exports.indentComment = indentComment;
|
|
23
|
+
exports.lineComment = lineComment;
|
|
24
|
+
exports.stringifyComment = stringifyComment;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../nodes/identity.js');
|
|
4
|
+
var stringify = require('./stringify.js');
|
|
5
|
+
var stringifyComment = require('./stringifyComment.js');
|
|
6
|
+
|
|
7
|
+
function stringifyDocument(doc, options) {
|
|
8
|
+
const lines = [];
|
|
9
|
+
let hasDirectives = options.directives === true;
|
|
10
|
+
if (options.directives !== false && doc.directives) {
|
|
11
|
+
const dir = doc.directives.toString(doc);
|
|
12
|
+
if (dir) {
|
|
13
|
+
lines.push(dir);
|
|
14
|
+
hasDirectives = true;
|
|
15
|
+
}
|
|
16
|
+
else if (doc.directives.docStart)
|
|
17
|
+
hasDirectives = true;
|
|
18
|
+
}
|
|
19
|
+
if (hasDirectives)
|
|
20
|
+
lines.push('---');
|
|
21
|
+
const ctx = stringify.createStringifyContext(doc, options);
|
|
22
|
+
const { commentString } = ctx.options;
|
|
23
|
+
if (doc.commentBefore) {
|
|
24
|
+
if (lines.length !== 1)
|
|
25
|
+
lines.unshift('');
|
|
26
|
+
const cs = commentString(doc.commentBefore);
|
|
27
|
+
lines.unshift(stringifyComment.indentComment(cs, ''));
|
|
28
|
+
}
|
|
29
|
+
let chompKeep = false;
|
|
30
|
+
let contentComment = null;
|
|
31
|
+
if (doc.contents) {
|
|
32
|
+
if (identity.isNode(doc.contents)) {
|
|
33
|
+
if (doc.contents.spaceBefore && hasDirectives)
|
|
34
|
+
lines.push('');
|
|
35
|
+
if (doc.contents.commentBefore) {
|
|
36
|
+
const cs = commentString(doc.contents.commentBefore);
|
|
37
|
+
lines.push(stringifyComment.indentComment(cs, ''));
|
|
38
|
+
}
|
|
39
|
+
// top-level block scalars need to be indented if followed by a comment
|
|
40
|
+
ctx.forceBlockIndent = !!doc.comment;
|
|
41
|
+
contentComment = doc.contents.comment;
|
|
42
|
+
}
|
|
43
|
+
const onChompKeep = contentComment ? undefined : () => (chompKeep = true);
|
|
44
|
+
let body = stringify.stringify(doc.contents, ctx, () => (contentComment = null), onChompKeep);
|
|
45
|
+
if (contentComment)
|
|
46
|
+
body += stringifyComment.lineComment(body, '', commentString(contentComment));
|
|
47
|
+
if ((body[0] === '|' || body[0] === '>') &&
|
|
48
|
+
lines[lines.length - 1] === '---') {
|
|
49
|
+
// Top-level block scalars with a preceding doc marker ought to use the
|
|
50
|
+
// same line for their header.
|
|
51
|
+
lines[lines.length - 1] = `--- ${body}`;
|
|
52
|
+
}
|
|
53
|
+
else
|
|
54
|
+
lines.push(body);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
lines.push(stringify.stringify(doc.contents, ctx));
|
|
58
|
+
}
|
|
59
|
+
if (doc.directives?.docEnd) {
|
|
60
|
+
if (doc.comment) {
|
|
61
|
+
const cs = commentString(doc.comment);
|
|
62
|
+
if (cs.includes('\n')) {
|
|
63
|
+
lines.push('...');
|
|
64
|
+
lines.push(stringifyComment.indentComment(cs, ''));
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
lines.push(`... ${cs}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
lines.push('...');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
let dc = doc.comment;
|
|
76
|
+
if (dc && chompKeep)
|
|
77
|
+
dc = dc.replace(/^\n+/, '');
|
|
78
|
+
if (dc) {
|
|
79
|
+
if ((!chompKeep || contentComment) && lines[lines.length - 1] !== '')
|
|
80
|
+
lines.push('');
|
|
81
|
+
lines.push(stringifyComment.indentComment(commentString(dc), ''));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return lines.join('\n') + '\n';
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
exports.stringifyDocument = stringifyDocument;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
4
|
+
if (typeof value === 'bigint')
|
|
5
|
+
return String(value);
|
|
6
|
+
const num = typeof value === 'number' ? value : Number(value);
|
|
7
|
+
if (!isFinite(num))
|
|
8
|
+
return isNaN(num) ? '.nan' : num < 0 ? '-.inf' : '.inf';
|
|
9
|
+
let n = Object.is(value, -0) ? '-0' : JSON.stringify(value);
|
|
10
|
+
if (!format &&
|
|
11
|
+
minFractionDigits &&
|
|
12
|
+
(!tag || tag === 'tag:yaml.org,2002:float') &&
|
|
13
|
+
/^\d/.test(n)) {
|
|
14
|
+
let i = n.indexOf('.');
|
|
15
|
+
if (i < 0) {
|
|
16
|
+
i = n.length;
|
|
17
|
+
n += '.';
|
|
18
|
+
}
|
|
19
|
+
let d = minFractionDigits - (n.length - i - 1);
|
|
20
|
+
while (d-- > 0)
|
|
21
|
+
n += '0';
|
|
22
|
+
}
|
|
23
|
+
return n;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.stringifyNumber = stringifyNumber;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../nodes/identity.js');
|
|
4
|
+
var Scalar = require('../nodes/Scalar.js');
|
|
5
|
+
var stringify = require('./stringify.js');
|
|
6
|
+
var stringifyComment = require('./stringifyComment.js');
|
|
7
|
+
|
|
8
|
+
function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
9
|
+
const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
10
|
+
let keyComment = (identity.isNode(key) && key.comment) || null;
|
|
11
|
+
if (simpleKeys) {
|
|
12
|
+
if (keyComment) {
|
|
13
|
+
throw new Error('With simple keys, key nodes cannot have comments');
|
|
14
|
+
}
|
|
15
|
+
if (identity.isCollection(key) || (!identity.isNode(key) && typeof key === 'object')) {
|
|
16
|
+
const msg = 'With simple keys, collection cannot be used as a key value';
|
|
17
|
+
throw new Error(msg);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
let explicitKey = !simpleKeys &&
|
|
21
|
+
(!key ||
|
|
22
|
+
(keyComment && value == null && !ctx.inFlow) ||
|
|
23
|
+
identity.isCollection(key) ||
|
|
24
|
+
(identity.isScalar(key)
|
|
25
|
+
? key.type === Scalar.Scalar.BLOCK_FOLDED || key.type === Scalar.Scalar.BLOCK_LITERAL
|
|
26
|
+
: typeof key === 'object'));
|
|
27
|
+
ctx = Object.assign({}, ctx, {
|
|
28
|
+
allNullValues: false,
|
|
29
|
+
implicitKey: !explicitKey && (simpleKeys || !allNullValues),
|
|
30
|
+
indent: indent + indentStep
|
|
31
|
+
});
|
|
32
|
+
let keyCommentDone = false;
|
|
33
|
+
let chompKeep = false;
|
|
34
|
+
let str = stringify.stringify(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
|
|
35
|
+
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
36
|
+
if (simpleKeys)
|
|
37
|
+
throw new Error('With simple keys, single line scalar must not span more than 1024 characters');
|
|
38
|
+
explicitKey = true;
|
|
39
|
+
}
|
|
40
|
+
if (ctx.inFlow) {
|
|
41
|
+
if (allNullValues || value == null) {
|
|
42
|
+
if (keyCommentDone && onComment)
|
|
43
|
+
onComment();
|
|
44
|
+
return str === '' ? '?' : explicitKey ? `? ${str}` : str;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
else if ((allNullValues && !simpleKeys) || (value == null && explicitKey)) {
|
|
48
|
+
str = `? ${str}`;
|
|
49
|
+
if (keyComment && !keyCommentDone) {
|
|
50
|
+
str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
51
|
+
}
|
|
52
|
+
else if (chompKeep && onChompKeep)
|
|
53
|
+
onChompKeep();
|
|
54
|
+
return str;
|
|
55
|
+
}
|
|
56
|
+
if (keyCommentDone)
|
|
57
|
+
keyComment = null;
|
|
58
|
+
if (explicitKey) {
|
|
59
|
+
if (keyComment)
|
|
60
|
+
str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
61
|
+
str = `? ${str}\n${indent}:`;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
str = `${str}:`;
|
|
65
|
+
if (keyComment)
|
|
66
|
+
str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
67
|
+
}
|
|
68
|
+
let vsb, vcb, valueComment;
|
|
69
|
+
if (identity.isNode(value)) {
|
|
70
|
+
vsb = !!value.spaceBefore;
|
|
71
|
+
vcb = value.commentBefore;
|
|
72
|
+
valueComment = value.comment;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
vsb = false;
|
|
76
|
+
vcb = null;
|
|
77
|
+
valueComment = null;
|
|
78
|
+
if (value && typeof value === 'object')
|
|
79
|
+
value = doc.createNode(value);
|
|
80
|
+
}
|
|
81
|
+
ctx.implicitKey = false;
|
|
82
|
+
if (!explicitKey && !keyComment && identity.isScalar(value))
|
|
83
|
+
ctx.indentAtStart = str.length + 1;
|
|
84
|
+
chompKeep = false;
|
|
85
|
+
if (!indentSeq &&
|
|
86
|
+
indentStep.length >= 2 &&
|
|
87
|
+
!ctx.inFlow &&
|
|
88
|
+
!explicitKey &&
|
|
89
|
+
identity.isSeq(value) &&
|
|
90
|
+
!value.flow &&
|
|
91
|
+
!value.tag &&
|
|
92
|
+
!value.anchor) {
|
|
93
|
+
// If indentSeq === false, consider '- ' as part of indentation where possible
|
|
94
|
+
ctx.indent = ctx.indent.substring(2);
|
|
95
|
+
}
|
|
96
|
+
let valueCommentDone = false;
|
|
97
|
+
const valueStr = stringify.stringify(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
|
|
98
|
+
let ws = ' ';
|
|
99
|
+
if (keyComment || vsb || vcb) {
|
|
100
|
+
ws = vsb ? '\n' : '';
|
|
101
|
+
if (vcb) {
|
|
102
|
+
const cs = commentString(vcb);
|
|
103
|
+
ws += `\n${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
104
|
+
}
|
|
105
|
+
if (valueStr === '' && !ctx.inFlow) {
|
|
106
|
+
if (ws === '\n' && valueComment)
|
|
107
|
+
ws = '\n\n';
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
ws += `\n${ctx.indent}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else if (!explicitKey && identity.isCollection(value)) {
|
|
114
|
+
const vs0 = valueStr[0];
|
|
115
|
+
const nl0 = valueStr.indexOf('\n');
|
|
116
|
+
const hasNewline = nl0 !== -1;
|
|
117
|
+
const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0;
|
|
118
|
+
if (hasNewline || !flow) {
|
|
119
|
+
let hasPropsLine = false;
|
|
120
|
+
if (hasNewline && (vs0 === '&' || vs0 === '!')) {
|
|
121
|
+
let sp0 = valueStr.indexOf(' ');
|
|
122
|
+
if (vs0 === '&' &&
|
|
123
|
+
sp0 !== -1 &&
|
|
124
|
+
sp0 < nl0 &&
|
|
125
|
+
valueStr[sp0 + 1] === '!') {
|
|
126
|
+
sp0 = valueStr.indexOf(' ', sp0 + 1);
|
|
127
|
+
}
|
|
128
|
+
if (sp0 === -1 || nl0 < sp0)
|
|
129
|
+
hasPropsLine = true;
|
|
130
|
+
}
|
|
131
|
+
if (!hasPropsLine)
|
|
132
|
+
ws = `\n${ctx.indent}`;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
else if (valueStr === '' || valueStr[0] === '\n') {
|
|
136
|
+
ws = '';
|
|
137
|
+
}
|
|
138
|
+
str += ws + valueStr;
|
|
139
|
+
if (ctx.inFlow) {
|
|
140
|
+
if (valueCommentDone && onComment)
|
|
141
|
+
onComment();
|
|
142
|
+
}
|
|
143
|
+
else if (valueComment && !valueCommentDone) {
|
|
144
|
+
str += stringifyComment.lineComment(str, ctx.indent, commentString(valueComment));
|
|
145
|
+
}
|
|
146
|
+
else if (chompKeep && onChompKeep) {
|
|
147
|
+
onChompKeep();
|
|
148
|
+
}
|
|
149
|
+
return str;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
exports.stringifyPair = stringifyPair;
|