@hawkeyexl/manni 4.13.0 → 4.15.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/README.md +1 -1
- package/dist/batch-OMDKRGUE.js +48 -0
- package/dist/build-YCY5MUHA.js +37 -0
- package/dist/calibrate-RN2NJ4FS.js +43 -0
- package/dist/capture-2WYROZKA.js +39 -0
- package/dist/check-KRVWHF7E.js +33 -0
- package/dist/{check-NBN2YK2J.js → check-LVUTWAGR.js} +33 -32
- package/dist/{check-NBN2YK2J.js.map → check-LVUTWAGR.js.map} +1 -1
- package/dist/check-MR7IG7IP.js +36 -0
- package/dist/{check-LU5YC3L4.js → check-OIRJ6OBW.js} +15 -14
- package/dist/{chunk-J5NOWIJ3.js → chunk-3CSEHHKB.js} +14 -8
- package/dist/{chunk-J5NOWIJ3.js.map → chunk-3CSEHHKB.js.map} +1 -1
- package/dist/{chunk-7RNONVHI.js → chunk-3EJVJDMX.js} +9 -9
- package/dist/{chunk-LSFXNAHU.js → chunk-3WQMMLIO.js} +129 -59
- package/dist/chunk-3WQMMLIO.js.map +1 -0
- package/dist/{chunk-OREHJQNN.js → chunk-46OWIAAX.js} +5 -4
- package/dist/{chunk-OREHJQNN.js.map → chunk-46OWIAAX.js.map} +1 -1
- package/dist/{chunk-LNGSE7V2.js → chunk-476DMDJ5.js} +132 -27
- package/dist/chunk-476DMDJ5.js.map +1 -0
- package/dist/{chunk-EQ7E6HMG.js → chunk-4MYW2D2U.js} +14 -16
- package/dist/chunk-4MYW2D2U.js.map +1 -0
- package/dist/{chunk-NTEYYYKL.js → chunk-525KMBZS.js} +16 -22
- package/dist/chunk-525KMBZS.js.map +1 -0
- package/dist/{chunk-HIEGOW7X.js → chunk-57DHX65T.js} +5 -79
- package/dist/chunk-57DHX65T.js.map +1 -0
- package/dist/{chunk-PCE7QHXJ.js → chunk-5D24C6WM.js} +6 -1
- package/dist/chunk-5D24C6WM.js.map +1 -0
- package/dist/{chunk-DQOM3DEU.js → chunk-6DYFWAZA.js} +563 -359
- package/dist/chunk-6DYFWAZA.js.map +1 -0
- package/dist/{chunk-CU57HT2E.js → chunk-6WJUZQQX.js} +2 -2
- package/dist/chunk-7EKXSSEO.js +81 -0
- package/dist/chunk-7EKXSSEO.js.map +1 -0
- package/dist/{chunk-ULDV2LUI.js → chunk-7SVFBJBE.js} +10 -4
- package/dist/chunk-7SVFBJBE.js.map +1 -0
- package/dist/{chunk-QKT67PFE.js → chunk-7XHW5DZA.js} +9 -9
- package/dist/{chunk-TDCOKKMI.js → chunk-AL4HRKSZ.js} +3 -3
- package/dist/{chunk-OTJOBZJ5.js → chunk-B2242FYO.js} +2 -1
- package/dist/chunk-B2242FYO.js.map +1 -0
- package/dist/chunk-BREAC43H.js +85 -0
- package/dist/chunk-BREAC43H.js.map +1 -0
- package/dist/{chunk-HKTGHLBA.js → chunk-C37OVJ35.js} +2 -2
- package/dist/{chunk-HKTGHLBA.js.map → chunk-C37OVJ35.js.map} +1 -1
- package/dist/{chunk-YQV75FIL.js → chunk-CFMI74TP.js} +3 -3
- package/dist/{chunk-BMBAAPGN.js → chunk-CWGBRWP7.js} +33 -18
- package/dist/chunk-CWGBRWP7.js.map +1 -0
- package/dist/chunk-DN4LCWSA.js +83 -0
- package/dist/chunk-DN4LCWSA.js.map +1 -0
- package/dist/{chunk-JEUFYSFQ.js → chunk-DW22KCLN.js} +118 -75
- package/dist/chunk-DW22KCLN.js.map +1 -0
- package/dist/{chunk-PCGBXHSE.js → chunk-FEEO7ET6.js} +5 -5
- package/dist/{chunk-CODWRUAD.js → chunk-FYWQS35G.js} +7 -5
- package/dist/chunk-FYWQS35G.js.map +1 -0
- package/dist/{chunk-3O6U4ICM.js → chunk-GLQCSDFS.js} +3 -3
- package/dist/{chunk-BQXY76JB.js → chunk-GUTAKJIF.js} +148 -92
- package/dist/chunk-GUTAKJIF.js.map +1 -0
- package/dist/{chunk-WVXCN5DS.js → chunk-GZHBMMDC.js} +78 -14
- package/dist/chunk-GZHBMMDC.js.map +1 -0
- package/dist/{chunk-52WO7ESI.js → chunk-IE5PXI6M.js} +6 -5
- package/dist/chunk-IE5PXI6M.js.map +1 -0
- package/dist/{chunk-ZXRAE55H.js → chunk-IGRXQC3H.js} +2 -2
- package/dist/{chunk-U6IHLEWT.js → chunk-JCTHXG33.js} +2 -2
- package/dist/{chunk-NSAW7U42.js → chunk-JHE3CYWS.js} +58 -10
- package/dist/chunk-JHE3CYWS.js.map +1 -0
- package/dist/{chunk-6ZFJWUUH.js → chunk-JNMY7KZG.js} +2 -2
- package/dist/chunk-JQPZKWIP.js +76 -0
- package/dist/chunk-JQPZKWIP.js.map +1 -0
- package/dist/{chunk-OBXCJZ6R.js → chunk-JTATFPWB.js} +28 -17
- package/dist/chunk-JTATFPWB.js.map +1 -0
- package/dist/{chunk-3HUCB4Z3.js → chunk-JULE3EU3.js} +10 -7
- package/dist/chunk-JULE3EU3.js.map +1 -0
- package/dist/{chunk-TQ3W6RKG.js → chunk-KCXQXKOL.js} +3 -3
- package/dist/{chunk-VYBYUQIP.js → chunk-KN37BXVY.js} +88 -7
- package/dist/chunk-KN37BXVY.js.map +1 -0
- package/dist/{chunk-OUAH7XF2.js → chunk-MAOX3524.js} +2 -2
- package/dist/chunk-MC7U5IH4.js +126 -0
- package/dist/chunk-MC7U5IH4.js.map +1 -0
- package/dist/{chunk-OYIWF3B2.js → chunk-NIQ2JSZO.js} +29 -20
- package/dist/chunk-NIQ2JSZO.js.map +1 -0
- package/dist/{chunk-HY6ROJTH.js → chunk-OFOIBV5J.js} +86 -10
- package/dist/chunk-OFOIBV5J.js.map +1 -0
- package/dist/{chunk-TZOYZK2E.js → chunk-OZUPJB4J.js} +2 -2
- package/dist/{chunk-N6A6DJUO.js → chunk-Q2VOXKAQ.js} +6 -7
- package/dist/chunk-Q2VOXKAQ.js.map +1 -0
- package/dist/{chunk-GWI6JPTT.js → chunk-Q62Q7CDI.js} +88 -8
- package/dist/chunk-Q62Q7CDI.js.map +1 -0
- package/dist/{chunk-PA7CMQGD.js → chunk-QDO5JFFV.js} +11 -5
- package/dist/chunk-QDO5JFFV.js.map +1 -0
- package/dist/{chunk-VNYXK7TM.js → chunk-QEJ4GH25.js} +8 -8
- package/dist/chunk-QEJ4GH25.js.map +1 -0
- package/dist/chunk-QK6VYJHV.js +26 -0
- package/dist/chunk-QK6VYJHV.js.map +1 -0
- package/dist/chunk-QS2Z3SWL.js +21 -0
- package/dist/chunk-QS2Z3SWL.js.map +1 -0
- package/dist/{chunk-NWUXRV6N.js → chunk-QS3K57OJ.js} +10 -8
- package/dist/chunk-QS3K57OJ.js.map +1 -0
- package/dist/{chunk-OKMTUAWO.js → chunk-QSPH4F56.js} +5 -5
- package/dist/{chunk-3XGTNN3M.js → chunk-RGRNAQG5.js} +12 -124
- package/dist/chunk-RGRNAQG5.js.map +1 -0
- package/dist/{chunk-E6BVUDGY.js → chunk-SLGCRXHM.js} +4 -4
- package/dist/{chunk-KE2F7QES.js → chunk-SVF3WCC7.js} +6 -6
- package/dist/{chunk-IGQMBHFY.js → chunk-T62SFCQY.js} +88 -12
- package/dist/chunk-T62SFCQY.js.map +1 -0
- package/dist/{chunk-SCLXVTFZ.js → chunk-TKINOTVS.js} +1 -1
- package/dist/chunk-TKINOTVS.js.map +1 -0
- package/dist/{chunk-VOXOBUTX.js → chunk-TXZJESES.js} +5 -5
- package/dist/chunk-UPUJJOKB.js +236 -0
- package/dist/chunk-UPUJJOKB.js.map +1 -0
- package/dist/{chunk-7JPL3CUC.js → chunk-URGALOZY.js} +2 -2
- package/dist/{chunk-X4MPUD4B.js → chunk-UVLQRP6O.js} +53 -13
- package/dist/chunk-UVLQRP6O.js.map +1 -0
- package/dist/{chunk-CWXZ2MRT.js → chunk-VHJ72YCD.js} +4 -3
- package/dist/chunk-VHJ72YCD.js.map +1 -0
- package/dist/{chunk-PAU352SV.js → chunk-W4GTMOJW.js} +2 -2
- package/dist/{chunk-SE4JN5XN.js → chunk-WDENIUC7.js} +3 -1
- package/dist/chunk-WDENIUC7.js.map +1 -0
- package/dist/{chunk-3BVDFQ6Y.js → chunk-Y3GWQBJP.js} +5 -5
- package/dist/{chunk-YZ4TJLZQ.js → chunk-YT5HKJWV.js} +497 -18
- package/dist/chunk-YT5HKJWV.js.map +1 -0
- package/dist/{chunk-UQMLCIRX.js → chunk-Z6PZKXSP.js} +6 -6
- package/dist/{chunk-JUL2PRQN.js → chunk-ZC2MZZR5.js} +207 -79
- package/dist/chunk-ZC2MZZR5.js.map +1 -0
- package/dist/{chunk-UKZNLVJW.js → chunk-ZINZTHWO.js} +4 -2
- package/dist/chunk-ZINZTHWO.js.map +1 -0
- package/dist/{cli-4JHQCPHU.js → cli-33E3B2FK.js} +3 -3
- package/dist/{cli-G66X7YMP.js → cli-7JV4RM66.js} +23 -22
- package/dist/{cli-G66X7YMP.js.map → cli-7JV4RM66.js.map} +1 -1
- package/dist/{cli-L5B2RVV2.js → cli-B4DTJ2KC.js} +31 -29
- package/dist/{cli-L5B2RVV2.js.map → cli-B4DTJ2KC.js.map} +1 -1
- package/dist/{cli-ECVT4YXR.js → cli-D4WXCDTS.js} +20 -19
- package/dist/{cli-ECVT4YXR.js.map → cli-D4WXCDTS.js.map} +1 -1
- package/dist/{cli-7DETHSNW.js → cli-DDLLZHZW.js} +90 -84
- package/dist/cli-DDLLZHZW.js.map +1 -0
- package/dist/{cli-KYTCJYXK.js → cli-EVACAD7K.js} +317 -28
- package/dist/cli-EVACAD7K.js.map +1 -0
- package/dist/{cli-H5LVGOVT.js → cli-LIKI7WPR.js} +384 -248
- package/dist/cli-LIKI7WPR.js.map +1 -0
- package/dist/{cli-AZKWTCFV.js → cli-MWUFAS2X.js} +11 -11
- package/dist/{cli-DGFLJ2DD.js → cli-OKPRTVG6.js} +69 -26
- package/dist/cli-OKPRTVG6.js.map +1 -0
- package/dist/{cli-RP5E7XHC.js → cli-QEPVGLQ3.js} +20 -18
- package/dist/{cli-RP5E7XHC.js.map → cli-QEPVGLQ3.js.map} +1 -1
- package/dist/{cli-BW5VOFOZ.js → cli-VP6JTPFS.js} +11 -10
- package/dist/{cli-BW5VOFOZ.js.map → cli-VP6JTPFS.js.map} +1 -1
- package/dist/cli.js +14 -14
- package/dist/{config-JJW75SBX.js → config-7I5CHHRZ.js} +6 -6
- package/dist/docmeta.js +10 -10
- package/dist/github-DV57TW5L.js +32 -0
- package/dist/github-SGX2EARO.js +36 -0
- package/dist/graph/runtime.js.map +1 -1
- package/dist/index.d.ts +222 -45
- package/dist/index.js +138 -132
- package/dist/index.js.map +1 -1
- package/dist/{json-7WV7KL6H.js → json-5EQCGVCV.js} +4 -2
- package/dist/{json-LCVPMEAM.js → json-SHPUCD64.js} +15 -13
- package/dist/{labels-OQXBVM4A.js → labels-3GCGYYV3.js} +14 -12
- package/dist/{labels-OQXBVM4A.js.map → labels-3GCGYYV3.js.map} +1 -1
- package/dist/lint-RE4DMI6E.js +35 -0
- package/dist/list-F56MEJXR.js +36 -0
- package/dist/list-ZR3KY556.js +34 -0
- package/dist/{page-XPX5XJZE.js → page-G7XSO4FD.js} +13 -12
- package/dist/{picker-3XF36MJF.js → picker-FPUC5UGM.js} +3 -3
- package/dist/{prepare-VMBIQYAM.js → prepare-WHMWP7BG.js} +21 -20
- package/dist/{prepare-VMBIQYAM.js.map → prepare-WHMWP7BG.js.map} +1 -1
- package/dist/{pretty-KSTZMBUF.js → pretty-VTJVXWRK.js} +15 -13
- package/dist/{pretty-KG6TMOEI.js → pretty-YVRRWBWN.js} +23 -16
- package/dist/{provider-LBX4IXGX.js → provider-JY2I3VLF.js} +3 -3
- package/dist/{release-VV3UTKE5.js → release-Z3ASYZ3S.js} +3 -3
- package/dist/{reporters-26H3N2KW.js → reporters-FSXJ42EB.js} +6 -5
- package/dist/{reporters-AQU4W3KY.js → reporters-G5R4SURQ.js} +6 -6
- package/dist/{reporters-FBYLPKD4.js → reporters-MHPY4HRA.js} +15 -14
- package/dist/run-FSYOYEPR.js +39 -0
- package/dist/sarif-HBQIDY7T.js +31 -0
- package/dist/sarif-RRUFJZUL.js +37 -0
- package/dist/{term-SI3VM6EM.js → term-ABHGACYE.js} +58 -109
- package/dist/term-ABHGACYE.js.map +1 -0
- package/dist/types-VMOT7RAL.js +12 -0
- package/dist/types-VMOT7RAL.js.map +1 -0
- package/dist/{validate-NQO7TFSN.js → validate-DXYUUGUD.js} +6 -6
- package/dist/validate-DXYUUGUD.js.map +1 -0
- package/package.json +1 -1
- package/plugin/manni/.claude-plugin/plugin.json +1 -1
- package/plugin/manni/skills/check/SKILL.md +2 -2
- package/plugin/manni/skills/evals/SKILL.md +1 -1
- package/plugin/manni/skills/fix/SKILL.md +95 -16
- package/plugin/manni/skills/setup/SKILL.md +1 -1
- package/shapes/graph/shapes-1.1.1.ttl +953 -0
- package/dist/batch-OB2FXT47.js +0 -46
- package/dist/build-4BL24BG3.js +0 -36
- package/dist/calibrate-AEDJ7N7G.js +0 -41
- package/dist/capture-TP3P4YNL.js +0 -38
- package/dist/check-5IYH42KS.js +0 -34
- package/dist/check-S55MH66H.js +0 -30
- package/dist/chunk-3HUCB4Z3.js.map +0 -1
- package/dist/chunk-3XGTNN3M.js.map +0 -1
- package/dist/chunk-52WO7ESI.js.map +0 -1
- package/dist/chunk-BMBAAPGN.js.map +0 -1
- package/dist/chunk-BQXY76JB.js.map +0 -1
- package/dist/chunk-CODWRUAD.js.map +0 -1
- package/dist/chunk-CWXZ2MRT.js.map +0 -1
- package/dist/chunk-DQOM3DEU.js.map +0 -1
- package/dist/chunk-EQ7E6HMG.js.map +0 -1
- package/dist/chunk-GWI6JPTT.js.map +0 -1
- package/dist/chunk-HIEGOW7X.js.map +0 -1
- package/dist/chunk-HY6ROJTH.js.map +0 -1
- package/dist/chunk-IGQMBHFY.js.map +0 -1
- package/dist/chunk-JEUFYSFQ.js.map +0 -1
- package/dist/chunk-JUL2PRQN.js.map +0 -1
- package/dist/chunk-LNGSE7V2.js.map +0 -1
- package/dist/chunk-LSFXNAHU.js.map +0 -1
- package/dist/chunk-MNH7QO4Z.js +0 -15
- package/dist/chunk-MNH7QO4Z.js.map +0 -1
- package/dist/chunk-N6A6DJUO.js.map +0 -1
- package/dist/chunk-NSAW7U42.js.map +0 -1
- package/dist/chunk-NTEYYYKL.js.map +0 -1
- package/dist/chunk-NWUXRV6N.js.map +0 -1
- package/dist/chunk-OBXCJZ6R.js.map +0 -1
- package/dist/chunk-OTJOBZJ5.js.map +0 -1
- package/dist/chunk-OYIWF3B2.js.map +0 -1
- package/dist/chunk-PA7CMQGD.js.map +0 -1
- package/dist/chunk-PCE7QHXJ.js.map +0 -1
- package/dist/chunk-SCLXVTFZ.js.map +0 -1
- package/dist/chunk-SE4JN5XN.js.map +0 -1
- package/dist/chunk-UKZNLVJW.js.map +0 -1
- package/dist/chunk-ULDV2LUI.js.map +0 -1
- package/dist/chunk-VNYXK7TM.js.map +0 -1
- package/dist/chunk-VYBYUQIP.js.map +0 -1
- package/dist/chunk-WVXCN5DS.js.map +0 -1
- package/dist/chunk-X4MPUD4B.js.map +0 -1
- package/dist/chunk-Y6M4JFKG.js +0 -117
- package/dist/chunk-Y6M4JFKG.js.map +0 -1
- package/dist/chunk-YZ4TJLZQ.js.map +0 -1
- package/dist/cli-7DETHSNW.js.map +0 -1
- package/dist/cli-DGFLJ2DD.js.map +0 -1
- package/dist/cli-H5LVGOVT.js.map +0 -1
- package/dist/cli-KYTCJYXK.js.map +0 -1
- package/dist/github-DJQ4MWNZ.js +0 -35
- package/dist/github-UWTDM2J2.js +0 -30
- package/dist/lint-O7XRHKFP.js +0 -34
- package/dist/list-OOOCLOAL.js +0 -35
- package/dist/list-OYQ5XPN2.js +0 -32
- package/dist/run-KUGTU3TT.js +0 -37
- package/dist/term-SI3VM6EM.js.map +0 -1
- package/dist/types-Y6TXHM7M.js +0 -10
- /package/dist/{batch-OB2FXT47.js.map → batch-OMDKRGUE.js.map} +0 -0
- /package/dist/{build-4BL24BG3.js.map → build-YCY5MUHA.js.map} +0 -0
- /package/dist/{calibrate-AEDJ7N7G.js.map → calibrate-RN2NJ4FS.js.map} +0 -0
- /package/dist/{capture-TP3P4YNL.js.map → capture-2WYROZKA.js.map} +0 -0
- /package/dist/{check-5IYH42KS.js.map → check-KRVWHF7E.js.map} +0 -0
- /package/dist/{check-LU5YC3L4.js.map → check-MR7IG7IP.js.map} +0 -0
- /package/dist/{check-S55MH66H.js.map → check-OIRJ6OBW.js.map} +0 -0
- /package/dist/{chunk-7RNONVHI.js.map → chunk-3EJVJDMX.js.map} +0 -0
- /package/dist/{chunk-CU57HT2E.js.map → chunk-6WJUZQQX.js.map} +0 -0
- /package/dist/{chunk-QKT67PFE.js.map → chunk-7XHW5DZA.js.map} +0 -0
- /package/dist/{chunk-TDCOKKMI.js.map → chunk-AL4HRKSZ.js.map} +0 -0
- /package/dist/{chunk-YQV75FIL.js.map → chunk-CFMI74TP.js.map} +0 -0
- /package/dist/{chunk-PCGBXHSE.js.map → chunk-FEEO7ET6.js.map} +0 -0
- /package/dist/{chunk-3O6U4ICM.js.map → chunk-GLQCSDFS.js.map} +0 -0
- /package/dist/{chunk-ZXRAE55H.js.map → chunk-IGRXQC3H.js.map} +0 -0
- /package/dist/{chunk-U6IHLEWT.js.map → chunk-JCTHXG33.js.map} +0 -0
- /package/dist/{chunk-6ZFJWUUH.js.map → chunk-JNMY7KZG.js.map} +0 -0
- /package/dist/{chunk-TQ3W6RKG.js.map → chunk-KCXQXKOL.js.map} +0 -0
- /package/dist/{chunk-OUAH7XF2.js.map → chunk-MAOX3524.js.map} +0 -0
- /package/dist/{chunk-TZOYZK2E.js.map → chunk-OZUPJB4J.js.map} +0 -0
- /package/dist/{chunk-OKMTUAWO.js.map → chunk-QSPH4F56.js.map} +0 -0
- /package/dist/{chunk-E6BVUDGY.js.map → chunk-SLGCRXHM.js.map} +0 -0
- /package/dist/{chunk-KE2F7QES.js.map → chunk-SVF3WCC7.js.map} +0 -0
- /package/dist/{chunk-VOXOBUTX.js.map → chunk-TXZJESES.js.map} +0 -0
- /package/dist/{chunk-7JPL3CUC.js.map → chunk-URGALOZY.js.map} +0 -0
- /package/dist/{chunk-PAU352SV.js.map → chunk-W4GTMOJW.js.map} +0 -0
- /package/dist/{chunk-3BVDFQ6Y.js.map → chunk-Y3GWQBJP.js.map} +0 -0
- /package/dist/{chunk-UQMLCIRX.js.map → chunk-Z6PZKXSP.js.map} +0 -0
- /package/dist/{cli-4JHQCPHU.js.map → cli-33E3B2FK.js.map} +0 -0
- /package/dist/{cli-AZKWTCFV.js.map → cli-MWUFAS2X.js.map} +0 -0
- /package/dist/{config-JJW75SBX.js.map → config-7I5CHHRZ.js.map} +0 -0
- /package/dist/{github-DJQ4MWNZ.js.map → github-DV57TW5L.js.map} +0 -0
- /package/dist/{github-UWTDM2J2.js.map → github-SGX2EARO.js.map} +0 -0
- /package/dist/{json-7WV7KL6H.js.map → json-5EQCGVCV.js.map} +0 -0
- /package/dist/{json-LCVPMEAM.js.map → json-SHPUCD64.js.map} +0 -0
- /package/dist/{lint-O7XRHKFP.js.map → lint-RE4DMI6E.js.map} +0 -0
- /package/dist/{list-OOOCLOAL.js.map → list-F56MEJXR.js.map} +0 -0
- /package/dist/{list-OYQ5XPN2.js.map → list-ZR3KY556.js.map} +0 -0
- /package/dist/{page-XPX5XJZE.js.map → page-G7XSO4FD.js.map} +0 -0
- /package/dist/{picker-3XF36MJF.js.map → picker-FPUC5UGM.js.map} +0 -0
- /package/dist/{pretty-KG6TMOEI.js.map → pretty-VTJVXWRK.js.map} +0 -0
- /package/dist/{pretty-KSTZMBUF.js.map → pretty-YVRRWBWN.js.map} +0 -0
- /package/dist/{provider-LBX4IXGX.js.map → provider-JY2I3VLF.js.map} +0 -0
- /package/dist/{release-VV3UTKE5.js.map → release-Z3ASYZ3S.js.map} +0 -0
- /package/dist/{reporters-26H3N2KW.js.map → reporters-FSXJ42EB.js.map} +0 -0
- /package/dist/{reporters-AQU4W3KY.js.map → reporters-G5R4SURQ.js.map} +0 -0
- /package/dist/{reporters-FBYLPKD4.js.map → reporters-MHPY4HRA.js.map} +0 -0
- /package/dist/{run-KUGTU3TT.js.map → run-FSYOYEPR.js.map} +0 -0
- /package/dist/{types-Y6TXHM7M.js.map → sarif-HBQIDY7T.js.map} +0 -0
- /package/dist/{validate-NQO7TFSN.js.map → sarif-RRUFJZUL.js.map} +0 -0
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
resolvePages,
|
|
9
9
|
runConfigOptions,
|
|
10
10
|
withExternalMetadata
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JTATFPWB.js";
|
|
12
12
|
import {
|
|
13
13
|
SUMMARY_FORMATS,
|
|
14
14
|
parseFormat
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-IGRXQC3H.js";
|
|
16
16
|
import {
|
|
17
17
|
palette
|
|
18
18
|
} from "./chunk-RNVYGWIC.js";
|
|
@@ -76,9 +76,10 @@ function renderList(run, format, opts = {}) {
|
|
|
76
76
|
if (e.grader === "command" && !e.command) bits.push(pc.yellow("needs generation"));
|
|
77
77
|
if (e.skip) bits.push(pc.yellow("skip"));
|
|
78
78
|
lines.push(` - ${e.name} ${pc.dim(`[${bits.join(", ")}]`)}`);
|
|
79
|
+
if (e.assertion !== void 0) lines.push(pc.dim(` ${e.assertion}`));
|
|
79
80
|
}
|
|
80
81
|
for (const pr of plan.problems) {
|
|
81
|
-
const tag = pr.level === "error" ? pc.red("error") : pc.yellow("warn");
|
|
82
|
+
const tag = pr.level === "error" ? pc.red("error") : pr.level === "warning" ? pc.yellow("warn") : pc.dim("notice");
|
|
82
83
|
const line = pr.line != null ? pc.dim(`:${pr.line}`) : "";
|
|
83
84
|
lines.push(` ${tag}${line} ${pr.message}`);
|
|
84
85
|
}
|
|
@@ -93,4 +94,4 @@ export {
|
|
|
93
94
|
runList,
|
|
94
95
|
renderList
|
|
95
96
|
};
|
|
96
|
-
//# sourceMappingURL=chunk-
|
|
97
|
+
//# sourceMappingURL=chunk-46OWIAAX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/docevals/commands/list.ts"],"sourcesContent":["/**\n * `manni docevals list` — dry-run: show the resolved eval plan for each discovered\n * page without executing anything. The fastest way to debug suite/frontmatter\n * resolution.\n */\nimport { palette } from \"../../shared/color.js\";\nimport type { ColorOptions } from \"../reporters/pretty.js\";\nimport { loadRunConfig } from \"../core/config.js\";\nimport {\n discoverPages,\n documentSet,\n runConfigOptions,\n type DocumentInputOptions,\n} from \"../core/discover.js\";\nimport { withExternalMetadata } from \"../core/external.js\";\nimport { resolvePages, type ResolvedPagePlan } from \"../core/resolve.js\";\nimport { applySelection } from \"../core/engine.js\";\nimport { assertRegisteredGraders } from \"../core/feasibility.js\";\nimport {\n parseFormat,\n SUMMARY_FORMATS,\n type SummaryFormat,\n} from \"../reporters/format.js\";\n\nexport interface ListOptions extends DocumentInputOptions {\n format?: SummaryFormat;\n /** Show only these evals by name (ADR 01018). */\n evalNames?: string[];\n /** Show only evals in this suite. */\n suite?: string;\n cwd?: string;\n}\n\nexport interface ListRun {\n plans: ResolvedPagePlan[];\n /** 0 = clean, 1 = resolution errors present. */\n exitCode: 0 | 1;\n}\n\n/**\n * Asynchronous because a page's evals may not be in the page: an owning\n * manifest is a file to read (proposal 0037). `list` and `run` have to answer\n * the same question about the same corpus, so it reads them the same way.\n */\nexport async function runList(\n paths: string[],\n options: ListOptions = {},\n): Promise<ListRun> {\n const cwd = options.cwd ?? process.cwd();\n const config = loadRunConfig(runConfigOptions(paths, options), cwd);\n const pages = await withExternalMetadata(\n discoverPages(config, documentSet(paths, options, \"list\"), cwd),\n config,\n cwd,\n );\n const plans = resolvePages(pages, config);\n assertRegisteredGraders(plans, config);\n // `false`: list executes nothing, so an eval that resolves but is skipped is\n // a legitimate answer here — and this is the command `run`'s empty-match\n // error tells the user to reach for.\n applySelection(plans, config, options, false);\n const hasErrors = plans.some((p) =>\n p.problems.some((pr) => pr.level === \"error\"),\n );\n return { plans, exitCode: hasErrors ? 1 : 0 };\n}\n\nexport function renderList(\n run: ListRun,\n format: SummaryFormat,\n opts: ColorOptions = {},\n): string {\n // Exported from src/index.ts, so library callers reach this without the CLI\n // parser in front. Falling through to the pretty renderer is the silent\n // degradation ADR 01007 removes; it is no less silent off the CLI path.\n parseFormat(format, SUMMARY_FORMATS, \"format\");\n if (format === \"json\") {\n return JSON.stringify(\n run.plans.map((p) => ({\n file: p.page.file,\n skip: p.skip,\n suite: p.suite,\n evals: p.evals.map((e) => ({\n name: e.name,\n suite: e.suite,\n type: e.type,\n grader: e.grader,\n source: e.source,\n skip: e.skip,\n hasCommand: e.command != null,\n assertion: e.assertion,\n })),\n problems: p.problems,\n })),\n null,\n 2,\n );\n }\n\n const pc = palette(opts.color === true);\n const lines: string[] = [];\n for (const plan of run.plans) {\n const suite = plan.suite ? pc.dim(` (suite: ${plan.suite})`) : \"\";\n const skip = plan.skip ? pc.yellow(\" [skipped]\") : \"\";\n lines.push(`${pc.bold(plan.page.file)}${suite}${skip}`);\n if (plan.evals.length === 0 && plan.problems.length === 0) {\n lines.push(pc.dim(\" no evals\"));\n }\n for (const e of plan.evals) {\n const bits = [\n pc.cyan(e.grader),\n e.type,\n e.source === \"page\" ? \"page\" : \"config\",\n ];\n if (e.grader === \"command\" && !e.command) bits.push(pc.yellow(\"needs generation\"));\n if (e.skip) bits.push(pc.yellow(\"skip\"));\n lines.push(` - ${e.name} ${pc.dim(`[${bits.join(\", \")}]`)}`);\n }\n for (const pr of plan.problems) {\n const tag
|
|
1
|
+
{"version":3,"sources":["../src/docevals/commands/list.ts"],"sourcesContent":["/**\n * `manni docevals list` — dry-run: show the resolved eval plan for each discovered\n * page without executing anything. The fastest way to debug suite/frontmatter\n * resolution.\n */\nimport { palette } from \"../../shared/color.js\";\nimport type { ColorOptions } from \"../reporters/pretty.js\";\nimport { loadRunConfig } from \"../core/config.js\";\nimport {\n discoverPages,\n documentSet,\n runConfigOptions,\n type DocumentInputOptions,\n} from \"../core/discover.js\";\nimport { withExternalMetadata } from \"../core/external.js\";\nimport { resolvePages, type ResolvedPagePlan } from \"../core/resolve.js\";\nimport { applySelection } from \"../core/engine.js\";\nimport { assertRegisteredGraders } from \"../core/feasibility.js\";\nimport {\n parseFormat,\n SUMMARY_FORMATS,\n type SummaryFormat,\n} from \"../reporters/format.js\";\n\nexport interface ListOptions extends DocumentInputOptions {\n format?: SummaryFormat;\n /** Show only these evals by name (ADR 01018). */\n evalNames?: string[];\n /** Show only evals in this suite. */\n suite?: string;\n cwd?: string;\n}\n\nexport interface ListRun {\n plans: ResolvedPagePlan[];\n /** 0 = clean, 1 = resolution errors present. */\n exitCode: 0 | 1;\n}\n\n/**\n * Asynchronous because a page's evals may not be in the page: an owning\n * manifest is a file to read (proposal 0037). `list` and `run` have to answer\n * the same question about the same corpus, so it reads them the same way.\n */\nexport async function runList(\n paths: string[],\n options: ListOptions = {},\n): Promise<ListRun> {\n const cwd = options.cwd ?? process.cwd();\n const config = loadRunConfig(runConfigOptions(paths, options), cwd);\n const pages = await withExternalMetadata(\n discoverPages(config, documentSet(paths, options, \"list\"), cwd),\n config,\n cwd,\n );\n const plans = resolvePages(pages, config);\n assertRegisteredGraders(plans, config);\n // `false`: list executes nothing, so an eval that resolves but is skipped is\n // a legitimate answer here — and this is the command `run`'s empty-match\n // error tells the user to reach for.\n applySelection(plans, config, options, false);\n const hasErrors = plans.some((p) =>\n p.problems.some((pr) => pr.level === \"error\"),\n );\n return { plans, exitCode: hasErrors ? 1 : 0 };\n}\n\nexport function renderList(\n run: ListRun,\n format: SummaryFormat,\n opts: ColorOptions = {},\n): string {\n // Exported from src/index.ts, so library callers reach this without the CLI\n // parser in front. Falling through to the pretty renderer is the silent\n // degradation ADR 01007 removes; it is no less silent off the CLI path.\n parseFormat(format, SUMMARY_FORMATS, \"format\");\n if (format === \"json\") {\n return JSON.stringify(\n run.plans.map((p) => ({\n file: p.page.file,\n skip: p.skip,\n suite: p.suite,\n evals: p.evals.map((e) => ({\n name: e.name,\n suite: e.suite,\n type: e.type,\n grader: e.grader,\n source: e.source,\n skip: e.skip,\n hasCommand: e.command != null,\n assertion: e.assertion,\n })),\n problems: p.problems,\n })),\n null,\n 2,\n );\n }\n\n const pc = palette(opts.color === true);\n const lines: string[] = [];\n for (const plan of run.plans) {\n const suite = plan.suite ? pc.dim(` (suite: ${plan.suite})`) : \"\";\n const skip = plan.skip ? pc.yellow(\" [skipped]\") : \"\";\n lines.push(`${pc.bold(plan.page.file)}${suite}${skip}`);\n if (plan.evals.length === 0 && plan.problems.length === 0) {\n lines.push(pc.dim(\" no evals\"));\n }\n for (const e of plan.evals) {\n const bits = [\n pc.cyan(e.grader),\n e.type,\n e.source === \"page\" ? \"page\" : \"config\",\n ];\n if (e.grader === \"command\" && !e.command) bits.push(pc.yellow(\"needs generation\"));\n if (e.skip) bits.push(pc.yellow(\"skip\"));\n lines.push(` - ${e.name} ${pc.dim(`[${bits.join(\", \")}]`)}`);\n // What the eval asks for, so an author reads it before a run fails.\n if (e.assertion !== undefined) lines.push(pc.dim(` ${e.assertion}`));\n }\n for (const pr of plan.problems) {\n const tag =\n pr.level === \"error\" ? pc.red(\"error\") : pr.level === \"warning\" ? pc.yellow(\"warn\") : pc.dim(\"notice\");\n const line = pr.line != null ? pc.dim(`:${pr.line}`) : \"\";\n lines.push(` ${tag}${line} ${pr.message}`);\n }\n }\n const total = run.plans.reduce((n, p) => n + p.evals.length, 0);\n lines.push(\"\");\n lines.push(pc.dim(`${run.plans.length} pages, ${total} evals resolved`));\n return lines.join(\"\\n\");\n}\n"],"mappings":"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","names":[]}
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
STDIN_LABEL,
|
|
9
9
|
STDIN_TOKEN,
|
|
10
10
|
blockLines,
|
|
11
|
+
builtinGuide,
|
|
11
12
|
classifyRef,
|
|
12
13
|
colOf,
|
|
13
14
|
collectSchemaPins,
|
|
@@ -42,7 +43,7 @@ import {
|
|
|
42
43
|
schemaLoadOptions,
|
|
43
44
|
schemaTrustRoot,
|
|
44
45
|
writeFileAtomic
|
|
45
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-OFOIBV5J.js";
|
|
46
47
|
import {
|
|
47
48
|
STDIN_LINES_MARKER
|
|
48
49
|
} from "./chunk-YEUYKR62.js";
|
|
@@ -67,7 +68,7 @@ import {
|
|
|
67
68
|
pageManifestPath,
|
|
68
69
|
parseCollections,
|
|
69
70
|
sameFile
|
|
70
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-B2242FYO.js";
|
|
71
72
|
import {
|
|
72
73
|
ToolError,
|
|
73
74
|
errorMessage
|
|
@@ -454,6 +455,10 @@ var VALUE_NAMING = /* @__PURE__ */ new Map([
|
|
|
454
455
|
["unevaluatedProperties", "must NOT have unevaluated properties"],
|
|
455
456
|
["propertyNames", "property name must be valid"]
|
|
456
457
|
]);
|
|
458
|
+
var CANDIDATE_NAMING = /* @__PURE__ */ new Map([
|
|
459
|
+
["enum", "must be one of the values the schema allows"],
|
|
460
|
+
["const", "must be the value the schema allows"]
|
|
461
|
+
]);
|
|
457
462
|
function at(pointer, pos, locate) {
|
|
458
463
|
const located = locate?.(pointer);
|
|
459
464
|
if (located) {
|
|
@@ -473,12 +478,12 @@ function settleFindings(errors, view, pos, locate) {
|
|
|
473
478
|
for (const e of errors) {
|
|
474
479
|
if (hidden.some((p) => isAtOrUnder(e.instancePath, p))) continue;
|
|
475
480
|
const inside = view.decrypted.find((p) => isAtOrUnder(e.instancePath, p));
|
|
476
|
-
const generic = VALUE_NAMING.get(e.keyword);
|
|
481
|
+
const generic = VALUE_NAMING.get(e.keyword) ?? (inside === void 0 ? void 0 : CANDIDATE_NAMING.get(e.keyword));
|
|
477
482
|
if (inside === void 0 || e.instancePath === inside && generic === void 0) {
|
|
478
483
|
out.push(e);
|
|
479
484
|
continue;
|
|
480
485
|
}
|
|
481
|
-
const { subject, file: _file, line: _line, col: _col, ...rest } = e;
|
|
486
|
+
const { subject, file: _file, line: _line, col: _col, guidance, ...rest } = e;
|
|
482
487
|
void _file;
|
|
483
488
|
void _line;
|
|
484
489
|
void _col;
|
|
@@ -487,7 +492,8 @@ function settleFindings(errors, view, pos, locate) {
|
|
|
487
492
|
instancePath: inside,
|
|
488
493
|
message: generic ?? e.message,
|
|
489
494
|
...generic === void 0 && subject !== void 0 ? { subject } : {},
|
|
490
|
-
...at(inside, pos, locate)
|
|
495
|
+
...at(inside, pos, locate),
|
|
496
|
+
...e.instancePath === inside && guidance != null ? { guidance } : {}
|
|
491
497
|
});
|
|
492
498
|
}
|
|
493
499
|
return out;
|
|
@@ -1480,10 +1486,10 @@ function termScheme(terms) {
|
|
|
1480
1486
|
return term === void 0 ? void 0 : fold(term.id);
|
|
1481
1487
|
};
|
|
1482
1488
|
const children = /* @__PURE__ */ new Map();
|
|
1483
|
-
const link = (parent,
|
|
1484
|
-
if (parent === void 0 ||
|
|
1489
|
+
const link = (parent, child2) => {
|
|
1490
|
+
if (parent === void 0 || child2 === void 0) return;
|
|
1485
1491
|
const set = children.get(parent) ?? /* @__PURE__ */ new Set();
|
|
1486
|
-
set.add(
|
|
1492
|
+
set.add(child2);
|
|
1487
1493
|
children.set(parent, set);
|
|
1488
1494
|
};
|
|
1489
1495
|
for (const term of terms) {
|
|
@@ -1530,6 +1536,80 @@ import * as Ajv2020Ns from "ajv/dist/2020.js";
|
|
|
1530
1536
|
import * as AjvDraft04Ns from "ajv-draft-04";
|
|
1531
1537
|
import * as addFormatsNs from "ajv-formats";
|
|
1532
1538
|
import { createRequire } from "node:module";
|
|
1539
|
+
|
|
1540
|
+
// src/meta/core/guidance.ts
|
|
1541
|
+
function isRecord2(value) {
|
|
1542
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1543
|
+
}
|
|
1544
|
+
function firstSentence(text) {
|
|
1545
|
+
const flat = text.trim().replace(/\s+/g, " ");
|
|
1546
|
+
return flat.split(/(?<=[.!?])\s+(?=[A-Z`"'([])/)[0] ?? flat;
|
|
1547
|
+
}
|
|
1548
|
+
function localRef(root, ref) {
|
|
1549
|
+
if (!ref.startsWith("#")) return void 0;
|
|
1550
|
+
const pointer = ref.slice(1);
|
|
1551
|
+
if (pointer === "") return root;
|
|
1552
|
+
if (!pointer.startsWith("/")) return void 0;
|
|
1553
|
+
let at2 = root;
|
|
1554
|
+
for (const raw of pointer.slice(1).split("/")) {
|
|
1555
|
+
const segment = raw.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1556
|
+
if (Array.isArray(at2)) at2 = at2[Number(segment)];
|
|
1557
|
+
else if (isRecord2(at2)) at2 = at2[segment];
|
|
1558
|
+
else return void 0;
|
|
1559
|
+
}
|
|
1560
|
+
return at2;
|
|
1561
|
+
}
|
|
1562
|
+
function expand(root, node, out = [], seen = /* @__PURE__ */ new Set()) {
|
|
1563
|
+
if (!isRecord2(node) || seen.has(node)) return out;
|
|
1564
|
+
seen.add(node);
|
|
1565
|
+
out.push(node);
|
|
1566
|
+
if (typeof node.$ref === "string") expand(root, localRef(root, node.$ref), out, seen);
|
|
1567
|
+
for (const key of ["allOf", "anyOf", "oneOf"]) {
|
|
1568
|
+
const branches = node[key];
|
|
1569
|
+
if (Array.isArray(branches)) for (const b of branches) expand(root, b, out, seen);
|
|
1570
|
+
}
|
|
1571
|
+
expand(root, node.then, out, seen);
|
|
1572
|
+
expand(root, node.else, out, seen);
|
|
1573
|
+
return out;
|
|
1574
|
+
}
|
|
1575
|
+
function child(root, nodes, segment, index) {
|
|
1576
|
+
const out = [];
|
|
1577
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1578
|
+
for (const n of nodes) {
|
|
1579
|
+
if (index) {
|
|
1580
|
+
const prefix = n.prefixItems;
|
|
1581
|
+
const items = Array.isArray(prefix) ? prefix[Number(segment)] ?? n.items : n.items;
|
|
1582
|
+
expand(root, Array.isArray(items) ? items[Number(segment)] : items, out, seen);
|
|
1583
|
+
} else if (isRecord2(n.properties)) {
|
|
1584
|
+
expand(root, n.properties[segment], out, seen);
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
return out;
|
|
1588
|
+
}
|
|
1589
|
+
function guidanceFor(root, ref, e) {
|
|
1590
|
+
const guide = builtinGuide(ref);
|
|
1591
|
+
const segments2 = e.instancePath === "" ? [] : e.instancePath.slice(1).split("/").map((s) => s.replace(/~1/g, "/").replace(/~0/g, "~"));
|
|
1592
|
+
const missing = e.keyword === "required" ? e.params.missingProperty : void 0;
|
|
1593
|
+
if (typeof missing === "string") segments2.push(missing);
|
|
1594
|
+
let nodes = expand(root, root);
|
|
1595
|
+
const names = [];
|
|
1596
|
+
for (const segment of segments2) {
|
|
1597
|
+
const index = /^\d+$/.test(segment) && nodes.some((n) => n.items !== void 0 || n.prefixItems !== void 0);
|
|
1598
|
+
nodes = child(root, nodes, segment, index);
|
|
1599
|
+
if (nodes.length === 0) return { id: ref, rule: null, description: null, guide };
|
|
1600
|
+
if (!index) names.push(segment);
|
|
1601
|
+
}
|
|
1602
|
+
if (names.length === 0) return { id: ref, rule: null, description: null, guide };
|
|
1603
|
+
const described = nodes.find((n) => typeof n.description === "string")?.description;
|
|
1604
|
+
return {
|
|
1605
|
+
id: ref,
|
|
1606
|
+
rule: names.join("/"),
|
|
1607
|
+
description: typeof described === "string" ? firstSentence(described) : null,
|
|
1608
|
+
guide
|
|
1609
|
+
};
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
// src/meta/core/validator.ts
|
|
1533
1613
|
var draft06MetaSchema = createRequire(import.meta.url)(
|
|
1534
1614
|
"ajv/dist/refs/json-schema-draft-06.json"
|
|
1535
1615
|
);
|
|
@@ -1654,12 +1734,12 @@ function marksSchemaExternal(schema) {
|
|
|
1654
1734
|
if (typeof own !== "object" || own === null) return false;
|
|
1655
1735
|
return own[LOCATION_KEYWORD] === "external";
|
|
1656
1736
|
}
|
|
1657
|
-
function
|
|
1737
|
+
function isRecord3(value) {
|
|
1658
1738
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1659
1739
|
}
|
|
1660
1740
|
function definiteMarkConflict(root, keyword, isMark) {
|
|
1661
1741
|
const marks = /* @__PURE__ */ new Map();
|
|
1662
|
-
const
|
|
1742
|
+
const localRef2 = (node, embedded) => {
|
|
1663
1743
|
const ref = node["$ref"];
|
|
1664
1744
|
if (embedded || typeof ref !== "string" || !ref.startsWith("#")) return void 0;
|
|
1665
1745
|
const pointer = ref.slice(1);
|
|
@@ -1674,7 +1754,7 @@ function definiteMarkConflict(root, keyword, isMark) {
|
|
|
1674
1754
|
return void 0;
|
|
1675
1755
|
}
|
|
1676
1756
|
if (Array.isArray(at2)) at2 = at2[Number(segment)];
|
|
1677
|
-
else if (
|
|
1757
|
+
else if (isRecord3(at2)) at2 = at2[segment];
|
|
1678
1758
|
else return void 0;
|
|
1679
1759
|
}
|
|
1680
1760
|
return at2;
|
|
@@ -1682,7 +1762,7 @@ function definiteMarkConflict(root, keyword, isMark) {
|
|
|
1682
1762
|
const isEmbedded = (node, embedded) => embedded || node !== root && typeof node["$id"] === "string";
|
|
1683
1763
|
const allOf = (node) => Array.isArray(node["allOf"]) ? node["allOf"] : [];
|
|
1684
1764
|
const property = (key, node, embedded, visited) => {
|
|
1685
|
-
if (!
|
|
1765
|
+
if (!isRecord3(node) || visited.has(node)) return;
|
|
1686
1766
|
visited.add(node);
|
|
1687
1767
|
const inner = isEmbedded(node, embedded);
|
|
1688
1768
|
const mark = node[keyword];
|
|
@@ -1692,18 +1772,18 @@ function definiteMarkConflict(root, keyword, isMark) {
|
|
|
1692
1772
|
else marks.set(key, /* @__PURE__ */ new Set([mark]));
|
|
1693
1773
|
}
|
|
1694
1774
|
for (const entry of allOf(node)) property(key, entry, inner, visited);
|
|
1695
|
-
property(key,
|
|
1775
|
+
property(key, localRef2(node, inner), inner, visited);
|
|
1696
1776
|
};
|
|
1697
1777
|
const object = (node, embedded, visited) => {
|
|
1698
|
-
if (!
|
|
1778
|
+
if (!isRecord3(node) || visited.has(node)) return;
|
|
1699
1779
|
visited.add(node);
|
|
1700
1780
|
const inner = isEmbedded(node, embedded);
|
|
1701
1781
|
const properties = node["properties"];
|
|
1702
|
-
if (
|
|
1782
|
+
if (isRecord3(properties)) {
|
|
1703
1783
|
for (const [key, sub] of Object.entries(properties)) property(key, sub, inner, /* @__PURE__ */ new Set());
|
|
1704
1784
|
}
|
|
1705
1785
|
for (const entry of allOf(node)) object(entry, inner, visited);
|
|
1706
|
-
object(
|
|
1786
|
+
object(localRef2(node, inner), inner, visited);
|
|
1707
1787
|
};
|
|
1708
1788
|
object(root, false, /* @__PURE__ */ new Set());
|
|
1709
1789
|
for (const [key, seen] of marks) if (seen.size > 1) return key;
|
|
@@ -2044,12 +2124,36 @@ var Validator = class {
|
|
|
2044
2124
|
const ok = fn(subject);
|
|
2045
2125
|
if (ok) continue;
|
|
2046
2126
|
for (const e of fn.errors ?? []) {
|
|
2047
|
-
|
|
2127
|
+
if (isWrapper(e)) continue;
|
|
2128
|
+
errors.push({
|
|
2129
|
+
...toFieldError(ref, e, lineFor, colFor, locate),
|
|
2130
|
+
guidance: guidanceFor(fn.schema, ref, e)
|
|
2131
|
+
});
|
|
2048
2132
|
}
|
|
2049
2133
|
}
|
|
2050
2134
|
return errors;
|
|
2051
2135
|
}
|
|
2052
2136
|
};
|
|
2137
|
+
function isWrapper(e) {
|
|
2138
|
+
if (e.keyword === "if" || e.keyword === "anyOf") return true;
|
|
2139
|
+
return e.keyword === "oneOf" && e.params.passingSchemas === null;
|
|
2140
|
+
}
|
|
2141
|
+
function messageFor(e, fallback) {
|
|
2142
|
+
if (e.keyword === "false schema") return "must not be present";
|
|
2143
|
+
switch (e.keyword) {
|
|
2144
|
+
case "enum":
|
|
2145
|
+
return `must be one of: ${e.params.allowedValues.map((v) => JSON.stringify(v)).join(", ")}`;
|
|
2146
|
+
case "const":
|
|
2147
|
+
return `must be ${JSON.stringify(e.params.allowedValue)}`;
|
|
2148
|
+
case "minLength":
|
|
2149
|
+
case "minItems":
|
|
2150
|
+
return e.params.limit === 1 ? "must not be empty" : fallback;
|
|
2151
|
+
case "type":
|
|
2152
|
+
return `must be ${[e.params.type].flat().join(" or ")}`;
|
|
2153
|
+
default:
|
|
2154
|
+
return fallback;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2053
2157
|
function subjectOf(e) {
|
|
2054
2158
|
switch (e.keyword) {
|
|
2055
2159
|
case "required":
|
|
@@ -2068,7 +2172,7 @@ function toFieldError(schema, e, lineFor, colFor, locate) {
|
|
|
2068
2172
|
const defined = e;
|
|
2069
2173
|
const instancePath = e.instancePath;
|
|
2070
2174
|
const subject = subjectOf(defined);
|
|
2071
|
-
let message = e.message ?? "is invalid";
|
|
2175
|
+
let message = messageFor(defined, e.message ?? "is invalid");
|
|
2072
2176
|
let wantsColumn = true;
|
|
2073
2177
|
if (defined.keyword === "required") {
|
|
2074
2178
|
message = `must have required property '${defined.params.missingProperty}'`;
|
|
@@ -2416,10 +2520,10 @@ function removeManifestKey(text, options) {
|
|
|
2416
2520
|
);
|
|
2417
2521
|
if (after.errors[0]) throw fail(`The result is not valid YAML: ${after.errors[0].message}`);
|
|
2418
2522
|
const was = doc.toJS({ maxAliasCount: 100 });
|
|
2419
|
-
const wasRoot =
|
|
2523
|
+
const wasRoot = isRecord4(was) ? was : {};
|
|
2420
2524
|
const wasEntry = wasRoot[spelled];
|
|
2421
2525
|
const rest = Object.fromEntries(
|
|
2422
|
-
Object.entries(
|
|
2526
|
+
Object.entries(isRecord4(wasEntry) ? wasEntry : {}).filter(([k]) => k !== key)
|
|
2423
2527
|
);
|
|
2424
2528
|
const kept = Object.entries(wasRoot).filter(([k]) => k !== spelled);
|
|
2425
2529
|
if (Object.keys(rest).length > 0) kept.push([spelled, rest]);
|
|
@@ -2485,7 +2589,7 @@ function renameManifestEntry(text, options) {
|
|
|
2485
2589
|
);
|
|
2486
2590
|
if (after.errors[0]) throw fail(`The result is not valid YAML: ${after.errors[0].message}`);
|
|
2487
2591
|
const was = doc.toJS({ maxAliasCount: 100 });
|
|
2488
|
-
const wasRoot =
|
|
2592
|
+
const wasRoot = isRecord4(was) ? was : {};
|
|
2489
2593
|
const expected = Object.fromEntries(
|
|
2490
2594
|
Object.entries(wasRoot).map(([k, v]) => [k === spelled ? to : k, v])
|
|
2491
2595
|
);
|
|
@@ -2535,14 +2639,14 @@ function readBack(before, out, spelled, key, value, fail) {
|
|
|
2535
2639
|
if (problem) throw fail(`The result is not valid YAML: ${problem.message}`);
|
|
2536
2640
|
const was = before.toJS({ maxAliasCount: 100 });
|
|
2537
2641
|
const now = after.toJS({ maxAliasCount: 100 });
|
|
2538
|
-
const wasRoot =
|
|
2642
|
+
const wasRoot = isRecord4(was) ? was : {};
|
|
2539
2643
|
const wasEntry = wasRoot[spelled];
|
|
2540
2644
|
const expected = {
|
|
2541
2645
|
...wasRoot,
|
|
2542
|
-
[spelled]: { ...
|
|
2646
|
+
[spelled]: { ...isRecord4(wasEntry) ? wasEntry : {}, [key]: value }
|
|
2543
2647
|
};
|
|
2544
|
-
const nowEntry =
|
|
2545
|
-
if (!
|
|
2648
|
+
const nowEntry = isRecord4(now) ? now[spelled] : void 0;
|
|
2649
|
+
if (!isRecord4(nowEntry) || !deepEqual(nowEntry[key], value)) {
|
|
2546
2650
|
throw fail(
|
|
2547
2651
|
"The value reads back differently. A Date, an undefined member, or another value YAML cannot hold does not survive the trip."
|
|
2548
2652
|
);
|
|
@@ -2558,7 +2662,7 @@ function readBack(before, out, spelled, key, value, fail) {
|
|
|
2558
2662
|
if (!r) throw fail("The written value could not be found again.");
|
|
2559
2663
|
return lc.linePos(r[0]).line;
|
|
2560
2664
|
}
|
|
2561
|
-
function
|
|
2665
|
+
function isRecord4(x) {
|
|
2562
2666
|
return typeof x === "object" && x !== null && !Array.isArray(x);
|
|
2563
2667
|
}
|
|
2564
2668
|
|
|
@@ -4526,6 +4630,7 @@ export {
|
|
|
4526
4630
|
TERM_FINDING_KEYWORD,
|
|
4527
4631
|
isTermMark,
|
|
4528
4632
|
termScheme,
|
|
4633
|
+
firstSentence,
|
|
4529
4634
|
compileWithFormats,
|
|
4530
4635
|
stringFormatNames,
|
|
4531
4636
|
validatesFormat,
|
|
@@ -4585,4 +4690,4 @@ export {
|
|
|
4585
4690
|
explicitFalse,
|
|
4586
4691
|
reportConfig
|
|
4587
4692
|
};
|
|
4588
|
-
//# sourceMappingURL=chunk-
|
|
4693
|
+
//# sourceMappingURL=chunk-476DMDJ5.js.map
|