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,225 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Scalar = require('../nodes/Scalar.js');
|
|
4
|
+
var resolveEnd = require('./resolve-end.js');
|
|
5
|
+
|
|
6
|
+
function resolveFlowScalar(scalar, strict, onError) {
|
|
7
|
+
const { offset, type, source, end } = scalar;
|
|
8
|
+
let _type;
|
|
9
|
+
let value;
|
|
10
|
+
const _onError = (rel, code, msg) => onError(offset + rel, code, msg);
|
|
11
|
+
switch (type) {
|
|
12
|
+
case 'scalar':
|
|
13
|
+
_type = Scalar.Scalar.PLAIN;
|
|
14
|
+
value = plainValue(source, _onError);
|
|
15
|
+
break;
|
|
16
|
+
case 'single-quoted-scalar':
|
|
17
|
+
_type = Scalar.Scalar.QUOTE_SINGLE;
|
|
18
|
+
value = singleQuotedValue(source, _onError);
|
|
19
|
+
break;
|
|
20
|
+
case 'double-quoted-scalar':
|
|
21
|
+
_type = Scalar.Scalar.QUOTE_DOUBLE;
|
|
22
|
+
value = doubleQuotedValue(source, _onError);
|
|
23
|
+
break;
|
|
24
|
+
/* istanbul ignore next should not happen */
|
|
25
|
+
default:
|
|
26
|
+
onError(scalar, 'UNEXPECTED_TOKEN', `Expected a flow scalar value, but found: ${type}`);
|
|
27
|
+
return {
|
|
28
|
+
value: '',
|
|
29
|
+
type: null,
|
|
30
|
+
comment: '',
|
|
31
|
+
range: [offset, offset + source.length, offset + source.length]
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const valueEnd = offset + source.length;
|
|
35
|
+
const re = resolveEnd.resolveEnd(end, valueEnd, strict, onError);
|
|
36
|
+
return {
|
|
37
|
+
value,
|
|
38
|
+
type: _type,
|
|
39
|
+
comment: re.comment,
|
|
40
|
+
range: [offset, valueEnd, re.offset]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function plainValue(source, onError) {
|
|
44
|
+
let badChar = '';
|
|
45
|
+
switch (source[0]) {
|
|
46
|
+
/* istanbul ignore next should not happen */
|
|
47
|
+
case '\t':
|
|
48
|
+
badChar = 'a tab character';
|
|
49
|
+
break;
|
|
50
|
+
case ',':
|
|
51
|
+
badChar = 'flow indicator character ,';
|
|
52
|
+
break;
|
|
53
|
+
case '%':
|
|
54
|
+
badChar = 'directive indicator character %';
|
|
55
|
+
break;
|
|
56
|
+
case '|':
|
|
57
|
+
case '>': {
|
|
58
|
+
badChar = `block scalar indicator ${source[0]}`;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
case '@':
|
|
62
|
+
case '`': {
|
|
63
|
+
badChar = `reserved character ${source[0]}`;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
if (badChar)
|
|
68
|
+
onError(0, 'BAD_SCALAR_START', `Plain value cannot start with ${badChar}`);
|
|
69
|
+
return foldLines(source);
|
|
70
|
+
}
|
|
71
|
+
function singleQuotedValue(source, onError) {
|
|
72
|
+
if (source[source.length - 1] !== "'" || source.length === 1)
|
|
73
|
+
onError(source.length, 'MISSING_CHAR', "Missing closing 'quote");
|
|
74
|
+
return foldLines(source.slice(1, -1)).replace(/''/g, "'");
|
|
75
|
+
}
|
|
76
|
+
function foldLines(source) {
|
|
77
|
+
/**
|
|
78
|
+
* The negative lookbehind here and in the `re` RegExp is to
|
|
79
|
+
* prevent causing a polynomial search time in certain cases.
|
|
80
|
+
*
|
|
81
|
+
* The try-catch is for Safari, which doesn't support this yet:
|
|
82
|
+
* https://caniuse.com/js-regexp-lookbehind
|
|
83
|
+
*/
|
|
84
|
+
let first, line;
|
|
85
|
+
try {
|
|
86
|
+
first = new RegExp('(.*?)(?<![ \t])[ \t]*\r?\n', 'sy');
|
|
87
|
+
line = new RegExp('[ \t]*(.*?)(?:(?<![ \t])[ \t]*)?\r?\n', 'sy');
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
first = /(.*?)[ \t]*\r?\n/sy;
|
|
91
|
+
line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
|
|
92
|
+
}
|
|
93
|
+
let match = first.exec(source);
|
|
94
|
+
if (!match)
|
|
95
|
+
return source;
|
|
96
|
+
let res = match[1];
|
|
97
|
+
let sep = ' ';
|
|
98
|
+
let pos = first.lastIndex;
|
|
99
|
+
line.lastIndex = pos;
|
|
100
|
+
while ((match = line.exec(source))) {
|
|
101
|
+
if (match[1] === '') {
|
|
102
|
+
if (sep === '\n')
|
|
103
|
+
res += sep;
|
|
104
|
+
else
|
|
105
|
+
sep = '\n';
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
res += sep + match[1];
|
|
109
|
+
sep = ' ';
|
|
110
|
+
}
|
|
111
|
+
pos = line.lastIndex;
|
|
112
|
+
}
|
|
113
|
+
const last = /[ \t]*(.*)/sy;
|
|
114
|
+
last.lastIndex = pos;
|
|
115
|
+
match = last.exec(source);
|
|
116
|
+
return res + sep + (match?.[1] ?? '');
|
|
117
|
+
}
|
|
118
|
+
function doubleQuotedValue(source, onError) {
|
|
119
|
+
let res = '';
|
|
120
|
+
for (let i = 1; i < source.length - 1; ++i) {
|
|
121
|
+
const ch = source[i];
|
|
122
|
+
if (ch === '\r' && source[i + 1] === '\n')
|
|
123
|
+
continue;
|
|
124
|
+
if (ch === '\n') {
|
|
125
|
+
const { fold, offset } = foldNewline(source, i);
|
|
126
|
+
res += fold;
|
|
127
|
+
i = offset;
|
|
128
|
+
}
|
|
129
|
+
else if (ch === '\\') {
|
|
130
|
+
let next = source[++i];
|
|
131
|
+
const cc = escapeCodes[next];
|
|
132
|
+
if (cc)
|
|
133
|
+
res += cc;
|
|
134
|
+
else if (next === '\n') {
|
|
135
|
+
// skip escaped newlines, but still trim the following line
|
|
136
|
+
next = source[i + 1];
|
|
137
|
+
while (next === ' ' || next === '\t')
|
|
138
|
+
next = source[++i + 1];
|
|
139
|
+
}
|
|
140
|
+
else if (next === '\r' && source[i + 1] === '\n') {
|
|
141
|
+
// skip escaped CRLF newlines, but still trim the following line
|
|
142
|
+
next = source[++i + 1];
|
|
143
|
+
while (next === ' ' || next === '\t')
|
|
144
|
+
next = source[++i + 1];
|
|
145
|
+
}
|
|
146
|
+
else if (next === 'x' || next === 'u' || next === 'U') {
|
|
147
|
+
const length = { x: 2, u: 4, U: 8 }[next];
|
|
148
|
+
res += parseCharCode(source, i + 1, length, onError);
|
|
149
|
+
i += length;
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
const raw = source.substr(i - 1, 2);
|
|
153
|
+
onError(i - 1, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`);
|
|
154
|
+
res += raw;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else if (ch === ' ' || ch === '\t') {
|
|
158
|
+
// trim trailing whitespace
|
|
159
|
+
const wsStart = i;
|
|
160
|
+
let next = source[i + 1];
|
|
161
|
+
while (next === ' ' || next === '\t')
|
|
162
|
+
next = source[++i + 1];
|
|
163
|
+
if (next !== '\n' && !(next === '\r' && source[i + 2] === '\n'))
|
|
164
|
+
res += i > wsStart ? source.slice(wsStart, i + 1) : ch;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
res += ch;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
if (source[source.length - 1] !== '"' || source.length === 1)
|
|
171
|
+
onError(source.length, 'MISSING_CHAR', 'Missing closing "quote');
|
|
172
|
+
return res;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Fold a single newline into a space, multiple newlines to N - 1 newlines.
|
|
176
|
+
* Presumes `source[offset] === '\n'`
|
|
177
|
+
*/
|
|
178
|
+
function foldNewline(source, offset) {
|
|
179
|
+
let fold = '';
|
|
180
|
+
let ch = source[offset + 1];
|
|
181
|
+
while (ch === ' ' || ch === '\t' || ch === '\n' || ch === '\r') {
|
|
182
|
+
if (ch === '\r' && source[offset + 2] !== '\n')
|
|
183
|
+
break;
|
|
184
|
+
if (ch === '\n')
|
|
185
|
+
fold += '\n';
|
|
186
|
+
offset += 1;
|
|
187
|
+
ch = source[offset + 1];
|
|
188
|
+
}
|
|
189
|
+
if (!fold)
|
|
190
|
+
fold = ' ';
|
|
191
|
+
return { fold, offset };
|
|
192
|
+
}
|
|
193
|
+
const escapeCodes = {
|
|
194
|
+
'0': '\0', // null character
|
|
195
|
+
a: '\x07', // bell character
|
|
196
|
+
b: '\b', // backspace
|
|
197
|
+
e: '\x1b', // escape character
|
|
198
|
+
f: '\f', // form feed
|
|
199
|
+
n: '\n', // line feed
|
|
200
|
+
r: '\r', // carriage return
|
|
201
|
+
t: '\t', // horizontal tab
|
|
202
|
+
v: '\v', // vertical tab
|
|
203
|
+
N: '\u0085', // Unicode next line
|
|
204
|
+
_: '\u00a0', // Unicode non-breaking space
|
|
205
|
+
L: '\u2028', // Unicode line separator
|
|
206
|
+
P: '\u2029', // Unicode paragraph separator
|
|
207
|
+
' ': ' ',
|
|
208
|
+
'"': '"',
|
|
209
|
+
'/': '/',
|
|
210
|
+
'\\': '\\',
|
|
211
|
+
'\t': '\t'
|
|
212
|
+
};
|
|
213
|
+
function parseCharCode(source, offset, length, onError) {
|
|
214
|
+
const cc = source.substr(offset, length);
|
|
215
|
+
const ok = cc.length === length && /^[0-9a-fA-F]+$/.test(cc);
|
|
216
|
+
const code = ok ? parseInt(cc, 16) : NaN;
|
|
217
|
+
if (isNaN(code)) {
|
|
218
|
+
const raw = source.substr(offset - 2, length + 2);
|
|
219
|
+
onError(offset - 2, 'BAD_DQ_ESCAPE', `Invalid escape sequence ${raw}`);
|
|
220
|
+
return raw;
|
|
221
|
+
}
|
|
222
|
+
return String.fromCodePoint(code);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
exports.resolveFlowScalar = resolveFlowScalar;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
4
|
+
let spaceBefore = false;
|
|
5
|
+
let atNewline = startOnNewline;
|
|
6
|
+
let hasSpace = startOnNewline;
|
|
7
|
+
let comment = '';
|
|
8
|
+
let commentSep = '';
|
|
9
|
+
let hasNewline = false;
|
|
10
|
+
let reqSpace = false;
|
|
11
|
+
let tab = null;
|
|
12
|
+
let anchor = null;
|
|
13
|
+
let tag = null;
|
|
14
|
+
let newlineAfterProp = null;
|
|
15
|
+
let comma = null;
|
|
16
|
+
let found = null;
|
|
17
|
+
let start = null;
|
|
18
|
+
for (const token of tokens) {
|
|
19
|
+
if (reqSpace) {
|
|
20
|
+
if (token.type !== 'space' &&
|
|
21
|
+
token.type !== 'newline' &&
|
|
22
|
+
token.type !== 'comma')
|
|
23
|
+
onError(token.offset, 'MISSING_CHAR', 'Tags and anchors must be separated from the next token by white space');
|
|
24
|
+
reqSpace = false;
|
|
25
|
+
}
|
|
26
|
+
if (tab) {
|
|
27
|
+
if (atNewline && token.type !== 'comment' && token.type !== 'newline') {
|
|
28
|
+
onError(tab, 'TAB_AS_INDENT', 'Tabs are not allowed as indentation');
|
|
29
|
+
}
|
|
30
|
+
tab = null;
|
|
31
|
+
}
|
|
32
|
+
switch (token.type) {
|
|
33
|
+
case 'space':
|
|
34
|
+
// At the doc level, tabs at line start may be parsed
|
|
35
|
+
// as leading white space rather than indentation.
|
|
36
|
+
// In a flow collection, only the parser handles indent.
|
|
37
|
+
if (!flow &&
|
|
38
|
+
(indicator !== 'doc-start' || next?.type !== 'flow-collection') &&
|
|
39
|
+
token.source.includes('\t')) {
|
|
40
|
+
tab = token;
|
|
41
|
+
}
|
|
42
|
+
hasSpace = true;
|
|
43
|
+
break;
|
|
44
|
+
case 'comment': {
|
|
45
|
+
if (!hasSpace)
|
|
46
|
+
onError(token, 'MISSING_CHAR', 'Comments must be separated from other tokens by white space characters');
|
|
47
|
+
const cb = token.source.substring(1) || ' ';
|
|
48
|
+
if (!comment)
|
|
49
|
+
comment = cb;
|
|
50
|
+
else
|
|
51
|
+
comment += commentSep + cb;
|
|
52
|
+
commentSep = '';
|
|
53
|
+
atNewline = false;
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
case 'newline':
|
|
57
|
+
if (atNewline) {
|
|
58
|
+
if (comment)
|
|
59
|
+
comment += token.source;
|
|
60
|
+
else if (!found || indicator !== 'seq-item-ind')
|
|
61
|
+
spaceBefore = true;
|
|
62
|
+
}
|
|
63
|
+
else
|
|
64
|
+
commentSep += token.source;
|
|
65
|
+
atNewline = true;
|
|
66
|
+
hasNewline = true;
|
|
67
|
+
if (anchor || tag)
|
|
68
|
+
newlineAfterProp = token;
|
|
69
|
+
hasSpace = true;
|
|
70
|
+
break;
|
|
71
|
+
case 'anchor':
|
|
72
|
+
if (anchor)
|
|
73
|
+
onError(token, 'MULTIPLE_ANCHORS', 'A node can have at most one anchor');
|
|
74
|
+
if (token.source.endsWith(':'))
|
|
75
|
+
onError(token.offset + token.source.length - 1, 'BAD_ALIAS', 'Anchor ending in : is ambiguous', true);
|
|
76
|
+
anchor = token;
|
|
77
|
+
start ?? (start = token.offset);
|
|
78
|
+
atNewline = false;
|
|
79
|
+
hasSpace = false;
|
|
80
|
+
reqSpace = true;
|
|
81
|
+
break;
|
|
82
|
+
case 'tag': {
|
|
83
|
+
if (tag)
|
|
84
|
+
onError(token, 'MULTIPLE_TAGS', 'A node can have at most one tag');
|
|
85
|
+
tag = token;
|
|
86
|
+
start ?? (start = token.offset);
|
|
87
|
+
atNewline = false;
|
|
88
|
+
hasSpace = false;
|
|
89
|
+
reqSpace = true;
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
case indicator:
|
|
93
|
+
// Could here handle preceding comments differently
|
|
94
|
+
if (anchor || tag)
|
|
95
|
+
onError(token, 'BAD_PROP_ORDER', `Anchors and tags must be after the ${token.source} indicator`);
|
|
96
|
+
if (found)
|
|
97
|
+
onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${token.source} in ${flow ?? 'collection'}`);
|
|
98
|
+
found = token;
|
|
99
|
+
atNewline =
|
|
100
|
+
indicator === 'seq-item-ind' || indicator === 'explicit-key-ind';
|
|
101
|
+
hasSpace = false;
|
|
102
|
+
break;
|
|
103
|
+
case 'comma':
|
|
104
|
+
if (flow) {
|
|
105
|
+
if (comma)
|
|
106
|
+
onError(token, 'UNEXPECTED_TOKEN', `Unexpected , in ${flow}`);
|
|
107
|
+
comma = token;
|
|
108
|
+
atNewline = false;
|
|
109
|
+
hasSpace = false;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
// else fallthrough
|
|
113
|
+
default:
|
|
114
|
+
onError(token, 'UNEXPECTED_TOKEN', `Unexpected ${token.type} token`);
|
|
115
|
+
atNewline = false;
|
|
116
|
+
hasSpace = false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
const last = tokens[tokens.length - 1];
|
|
120
|
+
const end = last ? last.offset + last.source.length : offset;
|
|
121
|
+
if (reqSpace &&
|
|
122
|
+
next &&
|
|
123
|
+
next.type !== 'space' &&
|
|
124
|
+
next.type !== 'newline' &&
|
|
125
|
+
next.type !== 'comma' &&
|
|
126
|
+
(next.type !== 'scalar' || next.source !== '')) {
|
|
127
|
+
onError(next.offset, 'MISSING_CHAR', 'Tags and anchors must be separated from the next token by white space');
|
|
128
|
+
}
|
|
129
|
+
if (tab &&
|
|
130
|
+
((atNewline && tab.indent <= parentIndent) ||
|
|
131
|
+
next?.type === 'block-map' ||
|
|
132
|
+
next?.type === 'block-seq'))
|
|
133
|
+
onError(tab, 'TAB_AS_INDENT', 'Tabs are not allowed as indentation');
|
|
134
|
+
return {
|
|
135
|
+
comma,
|
|
136
|
+
found,
|
|
137
|
+
spaceBefore,
|
|
138
|
+
comment,
|
|
139
|
+
hasNewline,
|
|
140
|
+
anchor,
|
|
141
|
+
tag,
|
|
142
|
+
newlineAfterProp,
|
|
143
|
+
end,
|
|
144
|
+
start: start ?? end
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
exports.resolveProps = resolveProps;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function containsNewline(key) {
|
|
4
|
+
if (!key)
|
|
5
|
+
return null;
|
|
6
|
+
switch (key.type) {
|
|
7
|
+
case 'alias':
|
|
8
|
+
case 'scalar':
|
|
9
|
+
case 'double-quoted-scalar':
|
|
10
|
+
case 'single-quoted-scalar':
|
|
11
|
+
if (key.source.includes('\n'))
|
|
12
|
+
return true;
|
|
13
|
+
if (key.end)
|
|
14
|
+
for (const st of key.end)
|
|
15
|
+
if (st.type === 'newline')
|
|
16
|
+
return true;
|
|
17
|
+
return false;
|
|
18
|
+
case 'flow-collection':
|
|
19
|
+
for (const it of key.items) {
|
|
20
|
+
for (const st of it.start)
|
|
21
|
+
if (st.type === 'newline')
|
|
22
|
+
return true;
|
|
23
|
+
if (it.sep)
|
|
24
|
+
for (const st of it.sep)
|
|
25
|
+
if (st.type === 'newline')
|
|
26
|
+
return true;
|
|
27
|
+
if (containsNewline(it.key) || containsNewline(it.value))
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
default:
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
exports.containsNewline = containsNewline;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function emptyScalarPosition(offset, before, pos) {
|
|
4
|
+
if (before) {
|
|
5
|
+
pos ?? (pos = before.length);
|
|
6
|
+
for (let i = pos - 1; i >= 0; --i) {
|
|
7
|
+
let st = before[i];
|
|
8
|
+
switch (st.type) {
|
|
9
|
+
case 'space':
|
|
10
|
+
case 'comment':
|
|
11
|
+
case 'newline':
|
|
12
|
+
offset -= st.source.length;
|
|
13
|
+
continue;
|
|
14
|
+
}
|
|
15
|
+
// Technically, an empty scalar is immediately after the last non-empty
|
|
16
|
+
// node, but it's more useful to place it after any whitespace.
|
|
17
|
+
st = before[++i];
|
|
18
|
+
while (st?.type === 'space') {
|
|
19
|
+
offset += st.source.length;
|
|
20
|
+
st = before[++i];
|
|
21
|
+
}
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return offset;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.emptyScalarPosition = emptyScalarPosition;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var utilContainsNewline = require('./util-contains-newline.js');
|
|
4
|
+
|
|
5
|
+
function flowIndentCheck(indent, fc, onError) {
|
|
6
|
+
if (fc?.type === 'flow-collection') {
|
|
7
|
+
const end = fc.end[0];
|
|
8
|
+
if (end.indent === indent &&
|
|
9
|
+
(end.source === ']' || end.source === '}') &&
|
|
10
|
+
utilContainsNewline.containsNewline(fc)) {
|
|
11
|
+
const msg = 'Flow end indicator should be more indented than parent';
|
|
12
|
+
onError(end, 'BAD_INDENT', msg, true);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.flowIndentCheck = flowIndentCheck;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var identity = require('../nodes/identity.js');
|
|
4
|
+
|
|
5
|
+
function mapIncludes(ctx, items, search) {
|
|
6
|
+
const { uniqueKeys } = ctx.options;
|
|
7
|
+
if (uniqueKeys === false)
|
|
8
|
+
return false;
|
|
9
|
+
const isEqual = typeof uniqueKeys === 'function'
|
|
10
|
+
? uniqueKeys
|
|
11
|
+
: (a, b) => a === b || (identity.isScalar(a) && identity.isScalar(b) && a.value === b.value);
|
|
12
|
+
return items.some(pair => isEqual(pair.key, search));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exports.mapIncludes = mapIncludes;
|