@unbrained/pm-cli 2026.7.6 → 2026.7.8
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/CHANGELOG.md +50 -0
- package/dist/cli/commands/annotation-command.d.ts +1 -0
- package/dist/cli/commands/annotation-command.js +29 -2
- package/dist/cli/commands/annotation-command.js.map +1 -1
- package/dist/cli/commands/comments.js +3 -4
- package/dist/cli/commands/comments.js.map +1 -1
- package/dist/cli/commands/completion.js +10 -2
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/context.d.ts +1 -0
- package/dist/cli/commands/context.js +4 -4
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/extension/bundled-catalog.d.ts +3 -0
- package/dist/cli/commands/extension/bundled-catalog.js +38 -28
- package/dist/cli/commands/extension/bundled-catalog.js.map +1 -1
- package/dist/cli/commands/extension/install-sources.js +81 -18
- package/dist/cli/commands/extension/install-sources.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +23 -19
- package/dist/cli/commands/extension.js +167 -57
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/health.js +9 -5
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/learnings.js +5 -3
- package/dist/cli/commands/learnings.js.map +1 -1
- package/dist/cli/commands/notes.js +5 -3
- package/dist/cli/commands/notes.js.map +1 -1
- package/dist/cli/commands/reindex.js +4 -3
- package/dist/cli/commands/reindex.js.map +1 -1
- package/dist/cli/commands/search.js +4 -4
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/test.d.ts +9 -0
- package/dist/cli/commands/test.js +144 -105
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/extension-command-help.js +10 -2
- package/dist/cli/extension-command-help.js.map +1 -1
- package/dist/cli/help-content.js +28 -2
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/register-list-query.d.ts +1 -1
- package/dist/cli/register-list-query.js +19 -27
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-operations.d.ts +0 -8
- package/dist/cli/register-operations.js +41 -46
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +119 -13
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.d.ts +5 -1
- package/dist/cli/registration-helpers.js +14 -2
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/append-CDPAYYSB.js +11 -0
- package/dist/cli-bundle/chunks/{gc-2DNMPXMC.js → append-RSPHC423.js} +8 -9
- package/dist/cli-bundle/chunks/{chunk-LK6XLOGP.js → chunk-2BVD4ZD2.js} +288 -233
- package/dist/cli-bundle/chunks/chunk-2BVD4ZD2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-TKD5VCTD.js → chunk-2RADY7IB.js} +517 -195
- package/dist/cli-bundle/chunks/chunk-2RADY7IB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-COSPOP7H.js → chunk-3FRNNVWY.js} +518 -196
- package/dist/cli-bundle/chunks/chunk-3FRNNVWY.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-24YG75HI.js → chunk-3FUXM574.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-IWVU4C2F.js → chunk-3SHDAKMF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-O6AWCQRQ.js → chunk-3UXIMY62.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-O6AWCQRQ.js.map → chunk-3UXIMY62.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MUH7A3FD.js → chunk-3V5C7PUH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ALFPSEWO.js → chunk-3YJDIJIE.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-ALFPSEWO.js.map → chunk-3YJDIJIE.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-EGY6JBQ3.js → chunk-4I7KS5ES.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CRVYGJUI.js → chunk-4OCWJ2AP.js} +13 -17
- package/dist/cli-bundle/chunks/{chunk-CRVYGJUI.js.map → chunk-4OCWJ2AP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-GJ7QC5DJ.js → chunk-5STY7NVM.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-JJP45OEI.js → chunk-5VAZHYVQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CFB33L7W.js → chunk-6FU5BVRB.js} +12 -14
- package/dist/cli-bundle/chunks/{chunk-CFB33L7W.js.map → chunk-6FU5BVRB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-22KBU3MW.js → chunk-6RR4XM5H.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-K46RF36U.js → chunk-6TD5QGIB.js} +7 -7
- package/dist/cli-bundle/chunks/chunk-6TD5QGIB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IX5BXEMX.js → chunk-6WCXSC5V.js} +12 -16
- package/dist/cli-bundle/chunks/{chunk-IX5BXEMX.js.map → chunk-6WCXSC5V.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-ZWBEPGD7.js → chunk-6ZKDMEVT.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-ZWBEPGD7.js.map → chunk-6ZKDMEVT.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-KUOOJR35.js → chunk-7QKSLAHB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MVSP7WGJ.js → chunk-7TBUV7XS.js} +8 -12
- package/dist/cli-bundle/chunks/{chunk-MVSP7WGJ.js.map → chunk-7TBUV7XS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-NGXQ3PFT.js → chunk-7UCBLJDF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-F3K4JGFD.js → chunk-AEOFBBWO.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-F3K4JGFD.js.map → chunk-AEOFBBWO.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-ASMRSIDX.js +10498 -0
- package/dist/cli-bundle/chunks/chunk-ASMRSIDX.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-7DT4WSH2.js → chunk-BFNFTHWQ.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-BPJ5NYSJ.js +5509 -0
- package/dist/cli-bundle/chunks/chunk-BPJ5NYSJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-Y46GD4IX.js → chunk-C3YU3TXX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VPIM42PC.js → chunk-C6XSTACC.js} +11 -7
- package/dist/cli-bundle/chunks/chunk-C6XSTACC.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AZYGZGGI.js → chunk-CGDUIPJL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-FT3QTERD.js → chunk-CXH7EMSB.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-FT3QTERD.js.map → chunk-CXH7EMSB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-DMRNBQOI.js → chunk-D63PEJTB.js} +256 -36
- package/dist/cli-bundle/chunks/chunk-D63PEJTB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RCQZK2GO.js → chunk-D6J5673C.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-RCQZK2GO.js.map → chunk-D6J5673C.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-3UJRFJ5R.js → chunk-DUBC6TI3.js} +28 -34
- package/dist/cli-bundle/chunks/{chunk-3UJRFJ5R.js.map → chunk-DUBC6TI3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-NC33K5ZS.js → chunk-EEJKHF7M.js} +7 -6
- package/dist/cli-bundle/chunks/{chunk-NC33K5ZS.js.map → chunk-EEJKHF7M.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XG625QP4.js → chunk-EP2CKDS7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NZEHECMW.js → chunk-EYPIUFWJ.js} +24 -32
- package/dist/cli-bundle/chunks/{chunk-NZEHECMW.js.map → chunk-EYPIUFWJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-45FYNUFJ.js → chunk-F5DDGY6R.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-45FYNUFJ.js.map → chunk-F5DDGY6R.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-4ZBE5GUN.js → chunk-FFB3WITE.js} +10 -16
- package/dist/cli-bundle/chunks/{chunk-4ZBE5GUN.js.map → chunk-FFB3WITE.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-7D7OOEYG.js → chunk-FJR2S7S4.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-7D7OOEYG.js.map → chunk-FJR2S7S4.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-FL625JJM.js +6792 -0
- package/dist/cli-bundle/chunks/chunk-FL625JJM.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-LPSSSDJR.js → chunk-FOJEBRDD.js} +16 -20
- package/dist/cli-bundle/chunks/{chunk-LPSSSDJR.js.map → chunk-FOJEBRDD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-EOKXK3R3.js → chunk-G4FKP4ID.js} +1220 -398
- package/dist/cli-bundle/chunks/chunk-G4FKP4ID.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-GE44TQMC.js +6726 -0
- package/dist/cli-bundle/chunks/chunk-GE44TQMC.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-XUC7PI2H.js → chunk-GLMJLBLR.js} +6 -10
- package/dist/cli-bundle/chunks/{chunk-XUC7PI2H.js.map → chunk-GLMJLBLR.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-GANUTS7W.js → chunk-GO2X6ZRB.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-GANUTS7W.js.map → chunk-GO2X6ZRB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-CFNGIXZP.js → chunk-GQOKFX2G.js} +22 -26
- package/dist/cli-bundle/chunks/{chunk-CFNGIXZP.js.map → chunk-GQOKFX2G.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-XHET7YUZ.js → chunk-GSQVQINP.js} +8 -10
- package/dist/cli-bundle/chunks/{chunk-XHET7YUZ.js.map → chunk-GSQVQINP.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-HI27UADG.js +5434 -0
- package/dist/cli-bundle/chunks/chunk-HI27UADG.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-I36Y7PCE.js → chunk-HZZ3AC27.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-I36Y7PCE.js.map → chunk-HZZ3AC27.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-OGWQ2IEP.js → chunk-IINCZYM3.js} +8 -12
- package/dist/cli-bundle/chunks/{chunk-OGWQ2IEP.js.map → chunk-IINCZYM3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-EKFNL33R.js → chunk-INOWVPUD.js} +37 -16
- package/dist/cli-bundle/chunks/chunk-INOWVPUD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4LELACOL.js → chunk-IYRG5AEC.js} +15 -23
- package/dist/cli-bundle/chunks/{chunk-4LELACOL.js.map → chunk-IYRG5AEC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MVYWGY2A.js → chunk-J6AD3GWC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-D2XRLB55.js → chunk-JH5XDDYS.js} +14 -20
- package/dist/cli-bundle/chunks/{chunk-D2XRLB55.js.map → chunk-JH5XDDYS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-HOVCGJSD.js → chunk-JYVPLGOW.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-HOVCGJSD.js.map → chunk-JYVPLGOW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MA4SM3QZ.js → chunk-K52C6YPA.js} +12 -18
- package/dist/cli-bundle/chunks/{chunk-MA4SM3QZ.js.map → chunk-K52C6YPA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-R5BMJX33.js → chunk-KFL3XHMA.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-KMXVZ2P7.js +10320 -0
- package/dist/cli-bundle/chunks/chunk-KMXVZ2P7.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4CJFCTLM.js → chunk-LD2NBQ5T.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-4CJFCTLM.js.map → chunk-LD2NBQ5T.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-6QBJLYBP.js → chunk-LG4N6YOK.js} +8 -7
- package/dist/cli-bundle/chunks/{chunk-6QBJLYBP.js.map → chunk-LG4N6YOK.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-L5PSPMZ4.js → chunk-LHDHS4Z6.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-L5PSPMZ4.js.map → chunk-LHDHS4Z6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-M7JNBQAD.js → chunk-MCH6IKK7.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-M7JNBQAD.js.map → chunk-MCH6IKK7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-57NWPFF2.js → chunk-MFLLULHU.js} +281 -233
- package/dist/cli-bundle/chunks/chunk-MFLLULHU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-EGAP5OWD.js → chunk-ML27MHNM.js} +35 -17
- package/dist/cli-bundle/chunks/chunk-ML27MHNM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-3N6RRO2Q.js → chunk-MYHFZNBO.js} +20 -24
- package/dist/cli-bundle/chunks/{chunk-3N6RRO2Q.js.map → chunk-MYHFZNBO.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-6LLVNJXT.js → chunk-NGBWEYNY.js} +12 -18
- package/dist/cli-bundle/chunks/{chunk-6LLVNJXT.js.map → chunk-NGBWEYNY.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-GDDAGPWJ.js → chunk-NRMDT4OV.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-GDDAGPWJ.js.map → chunk-NRMDT4OV.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-NTOOEVJ4.js +5359 -0
- package/dist/cli-bundle/chunks/chunk-NTOOEVJ4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-W6DYWXPQ.js → chunk-P2WE5KCU.js} +261 -34
- package/dist/cli-bundle/chunks/{chunk-W6DYWXPQ.js.map → chunk-P2WE5KCU.js.map} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YN7Y6DQZ.js → chunk-PAWPLIWW.js} +14 -20
- package/dist/cli-bundle/chunks/{chunk-YN7Y6DQZ.js.map → chunk-PAWPLIWW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MWMVPCIE.js → chunk-PCBZ2VJD.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-ZSUS2OD3.js → chunk-PJPZTE7P.js} +1216 -387
- package/dist/cli-bundle/chunks/chunk-PJPZTE7P.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-B6DUFX6H.js → chunk-Q3CFSOQZ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-NO442GWJ.js → chunk-QJZM5WO5.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-NO442GWJ.js.map → chunk-QJZM5WO5.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QLMX7SRD.js → chunk-QLEH6FTQ.js} +6 -6
- package/dist/cli-bundle/chunks/chunk-QLEH6FTQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GBAX2ZAQ.js → chunk-QYZMZD4L.js} +10 -12
- package/dist/cli-bundle/chunks/{chunk-GBAX2ZAQ.js.map → chunk-QYZMZD4L.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-W3DSJQIO.js → chunk-RDJXIAJB.js} +7 -11
- package/dist/cli-bundle/chunks/{chunk-W3DSJQIO.js.map → chunk-RDJXIAJB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-7WBAJSS6.js → chunk-RFHLRMLQ.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-7WBAJSS6.js.map → chunk-RFHLRMLQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SGMFPXKR.js → chunk-RL24NAUX.js} +10 -12
- package/dist/cli-bundle/chunks/{chunk-SGMFPXKR.js.map → chunk-RL24NAUX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-46CUF5L6.js → chunk-RLHQ3G4M.js} +99 -51
- package/dist/cli-bundle/chunks/chunk-RLHQ3G4M.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UH7T2DAX.js → chunk-SCJPFQQT.js} +12 -18
- package/dist/cli-bundle/chunks/{chunk-UH7T2DAX.js.map → chunk-SCJPFQQT.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-B6XS3R3O.js → chunk-SIQGG335.js} +12 -16
- package/dist/cli-bundle/chunks/{chunk-B6XS3R3O.js.map → chunk-SIQGG335.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-E42XTBSP.js → chunk-SN5X5GTU.js} +8 -12
- package/dist/cli-bundle/chunks/{chunk-E42XTBSP.js.map → chunk-SN5X5GTU.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-CL36D4PC.js → chunk-TKWTJGD6.js} +36 -15
- package/dist/cli-bundle/chunks/chunk-TKWTJGD6.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-VIIUS6N6.js → chunk-TR2C6V5T.js} +37 -19
- package/dist/cli-bundle/chunks/chunk-TR2C6V5T.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-TTCJCKUJ.js +5514 -0
- package/dist/cli-bundle/chunks/chunk-TTCJCKUJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KGFUY7WN.js → chunk-TU5P744I.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-TULGS6X6.js → chunk-TUDAYIO7.js} +529 -46
- package/dist/cli-bundle/chunks/chunk-TUDAYIO7.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-MLIYFOE7.js → chunk-U72GF3I2.js} +12 -8
- package/dist/cli-bundle/chunks/chunk-U72GF3I2.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ZZD4J5XY.js → chunk-UCRYCT5M.js} +30 -36
- package/dist/cli-bundle/chunks/{chunk-ZZD4J5XY.js.map → chunk-UCRYCT5M.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-JDDLOQAE.js → chunk-UEATYUZW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JVH7QBVV.js → chunk-UFNFHCAC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NB7RLQFW.js → chunk-UH6VFRV6.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-NB7RLQFW.js.map → chunk-UH6VFRV6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SQOIV3OQ.js → chunk-UIHDZS6X.js} +11 -15
- package/dist/cli-bundle/chunks/{chunk-SQOIV3OQ.js.map → chunk-UIHDZS6X.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-W572BIEB.js → chunk-UURYLDDC.js} +14 -18
- package/dist/cli-bundle/chunks/{chunk-W572BIEB.js.map → chunk-UURYLDDC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-G64OCSKU.js → chunk-UVFJSKTF.js} +9 -13
- package/dist/cli-bundle/chunks/{chunk-G64OCSKU.js.map → chunk-UVFJSKTF.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SMB7RV23.js → chunk-W2VFNVSJ.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-SMB7RV23.js.map → chunk-W2VFNVSJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-HIHMT6WS.js → chunk-WVEMZZCR.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-HIHMT6WS.js.map → chunk-WVEMZZCR.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3VHSI5FL.js → chunk-XN5BEN2B.js} +94 -53
- package/dist/cli-bundle/chunks/chunk-XN5BEN2B.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-SCUR7K7N.js → chunk-XPSGJ4IV.js} +541 -44
- package/dist/cli-bundle/chunks/chunk-XPSGJ4IV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZJ262CED.js → chunk-YQEKE4FO.js} +13 -21
- package/dist/cli-bundle/chunks/{chunk-ZJ262CED.js.map → chunk-YQEKE4FO.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-EBRZZ54H.js → chunk-YR5R4FMQ.js} +26 -34
- package/dist/cli-bundle/chunks/{chunk-EBRZZ54H.js.map → chunk-YR5R4FMQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-XB7KFVFI.js → chunk-YSRXFGNV.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-XB7KFVFI.js.map → chunk-YSRXFGNV.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-HFDADVJZ.js → chunk-YUCKM3MD.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-HFDADVJZ.js.map → chunk-YUCKM3MD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SQYJ4HF2.js → chunk-YUMNZS3X.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-SQYJ4HF2.js.map → chunk-YUMNZS3X.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-AGHMOTGM.js → chunk-Z2JQH2MG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZGK4L4JM.js → chunk-Z6RLSNUX.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-ZGK4L4JM.js.map → chunk-Z6RLSNUX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-Y4M7CPQP.js → chunk-ZMOPZFVT.js} +4 -4
- package/dist/cli-bundle/chunks/close-E3RLZSP2.js +12 -0
- package/dist/cli-bundle/chunks/{close-2SSSHHUZ.js → close-K6BFI3OX.js} +5 -9
- package/dist/cli-bundle/chunks/close-many-6NBL3PM4.js +26 -0
- package/dist/cli-bundle/chunks/close-many-X4YKS3RO.js +22 -0
- package/dist/cli-bundle/chunks/comments-PLFK5ZKK.js +17 -0
- package/dist/cli-bundle/chunks/comments-ZNOD5PTV.js +13 -0
- package/dist/cli-bundle/chunks/copy-F7BUFY4J.js +9 -0
- package/dist/cli-bundle/chunks/{copy-32ROBIDL.js → copy-VH3L4MN2.js} +4 -8
- package/dist/cli-bundle/chunks/create-AMBMYP6F.js +25 -0
- package/dist/cli-bundle/chunks/{create-E77SDCUP.js → create-TRIBYORN.js} +9 -14
- package/dist/cli-bundle/chunks/delete-6KQHZYIP.js +10 -0
- package/dist/cli-bundle/chunks/{delete-RA5KTCLB.js → delete-ZNXUNCZR.js} +4 -8
- package/dist/cli-bundle/chunks/deps-CVDY7FFK.js +13 -0
- package/dist/cli-bundle/chunks/{deps-32SU7HO5.js → deps-SZXQHV73.js} +4 -8
- package/dist/cli-bundle/chunks/{docs-RRUPT7O2.js → docs-DR74ITCD.js} +6 -10
- package/dist/cli-bundle/chunks/docs-WCVYY6I7.js +14 -0
- package/dist/cli-bundle/chunks/files-H5YCA74Z.js +18 -0
- package/dist/cli-bundle/chunks/{files-PYKR2UUG.js → files-QEFQ2M3H.js} +6 -10
- package/dist/cli-bundle/chunks/{contracts-NYPEW2G4.js → focus-55TRYSNA.js} +7 -9
- package/dist/cli-bundle/chunks/focus-N2QGNS5D.js +10 -0
- package/dist/cli-bundle/chunks/history-compact-GWQ4UOEI.js +21 -0
- package/dist/cli-bundle/chunks/{history-compact-3MNXLKAT.js → history-compact-JJZ4EFL3.js} +9 -13
- package/dist/cli-bundle/chunks/history-redact-4GJOLXCM.js +17 -0
- package/dist/cli-bundle/chunks/{history-redact-P6DYF55G.js → history-redact-TPPUT3A5.js} +7 -11
- package/dist/cli-bundle/chunks/history-repair-HVCVCGUF.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-ZJQFMWPD.js → history-repair-J7PIZ6ZP.js} +9 -13
- package/dist/cli-bundle/chunks/{append-BGML6VLD.js → learnings-KB6BT4NR.js} +9 -11
- package/dist/cli-bundle/chunks/learnings-YYY3U2Y7.js +13 -0
- package/dist/cli-bundle/chunks/notes-BGG7VL72.js +13 -0
- package/dist/cli-bundle/chunks/notes-ZTHXVOKM.js +17 -0
- package/dist/cli-bundle/chunks/{plan-CHVE7PBR.js → plan-CJPKFRBK.js} +10 -15
- package/dist/cli-bundle/chunks/plan-MK2QY3GA.js +24 -0
- package/dist/cli-bundle/chunks/{profile-ZXGSKBJD.js → profile-AQNHXOYA.js} +9 -13
- package/dist/cli-bundle/chunks/{profile-LD23PSI6.js → profile-HTBFINKQ.js} +9 -13
- package/dist/cli-bundle/chunks/{register-list-query-B42JCCOI.js → register-list-query-EEF33SUJ.js} +43 -34
- package/dist/cli-bundle/chunks/register-list-query-EEF33SUJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-OEYQHFXO.js → register-list-query-S4FBWIWN.js} +42 -33
- package/dist/cli-bundle/chunks/register-list-query-S4FBWIWN.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-3QXIHCQG.js → register-mutation-L5Q7AUDN.js} +34 -39
- package/dist/cli-bundle/chunks/{register-mutation-3QXIHCQG.js.map → register-mutation-L5Q7AUDN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-mutation-IAEST26S.js → register-mutation-QFLRBCI7.js} +36 -41
- package/dist/cli-bundle/chunks/{register-mutation-IAEST26S.js.map → register-mutation-QFLRBCI7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-5BMM6XQY.js → register-operations-HDE4FVW4.js} +79 -46
- package/dist/cli-bundle/chunks/register-operations-HDE4FVW4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-Z3U3U5KD.js → register-operations-QDU43FCG.js} +78 -45
- package/dist/cli-bundle/chunks/register-operations-QDU43FCG.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-Q6KFNIOZ.js → register-setup-EGMTAXDC.js} +134 -32
- package/dist/cli-bundle/chunks/register-setup-EGMTAXDC.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-3ZVVX2VN.js → register-setup-PNIO3L2P.js} +133 -31
- package/dist/cli-bundle/chunks/register-setup-PNIO3L2P.js.map +7 -0
- package/dist/cli-bundle/chunks/{restore-5RQHAPMA.js → restore-BTBEZ5CK.js} +7 -11
- package/dist/cli-bundle/chunks/restore-EX4UUZL6.js +15 -0
- package/dist/cli-bundle/chunks/{schema-HBORFC6B.js → schema-DGSTYYQB.js} +6 -10
- package/dist/cli-bundle/chunks/{schema-245WW4G2.js → schema-HAIBEE24.js} +6 -10
- package/dist/cli-bundle/chunks/update-MP4XLU56.js +25 -0
- package/dist/cli-bundle/chunks/update-SDIRJGSY.js +21 -0
- package/dist/cli-bundle/chunks/update-many-34AIU6W7.js +31 -0
- package/dist/cli-bundle/chunks/update-many-JUPCNOKV.js +35 -0
- package/dist/cli-bundle/main.js +56 -32
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/cli-bundle/sdk-runtime.js +161 -107
- package/dist/cli-bundle/sdk-testing.js +7 -8
- package/dist/cli-bundle/sdk.js +154 -117
- package/dist/cli-bundle/sdk.js.map +2 -2
- package/dist/core/extensions/extension-types.d.ts +1 -0
- package/dist/core/extensions/extension-types.js +2 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/extensions/loader.js +268 -231
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/history/drift-scan.js +3 -8
- package/dist/core/history/drift-scan.js.map +1 -1
- package/dist/core/output/mutation-projection.js +11 -5
- package/dist/core/output/mutation-projection.js.map +1 -1
- package/dist/core/search/cache.js +3 -3
- package/dist/core/search/cache.js.map +1 -1
- package/dist/core/search/semantic-defaults.d.ts +2 -0
- package/dist/core/search/semantic-defaults.js +11 -4
- package/dist/core/search/semantic-defaults.js.map +1 -1
- package/dist/core/search/vector-stores.d.ts +1 -1
- package/dist/core/search/vector-stores.js +33 -7
- package/dist/core/search/vector-stores.js.map +1 -1
- package/dist/mcp/server.d.ts +1 -1
- package/dist/sdk/cli-contracts/commander-types.js +3 -3
- package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +12 -8
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +10 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +14 -8
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/index.d.ts +1 -1
- package/dist/sdk/index.js +3 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime.d.ts +282 -8
- package/dist/sdk/runtime.js +453 -14
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/start-task-status.d.ts +13 -0
- package/dist/sdk/start-task-status.js +19 -0
- package/dist/sdk/start-task-status.js.map +1 -0
- package/docs/COMMANDS.md +10 -1
- package/docs/EXTENSIONS.md +7 -20
- package/docs/RELEASING.md +6 -0
- package/docs/SDK.md +65 -0
- package/docs/TESTING.md +3 -0
- package/package.json +2 -1
- package/dist/cli-bundle/chunks/activity-WJCGCYPU.js +0 -18
- package/dist/cli-bundle/chunks/activity-Z6QUAUSG.js +0 -22
- package/dist/cli-bundle/chunks/aggregate-BDM6EIAR.js +0 -25
- package/dist/cli-bundle/chunks/aggregate-VQ2DHU3S.js +0 -21
- package/dist/cli-bundle/chunks/append-RKJYPU74.js +0 -15
- package/dist/cli-bundle/chunks/chunk-2XG4IZON.js +0 -218
- package/dist/cli-bundle/chunks/chunk-2XG4IZON.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-37E72CNS.js +0 -217
- package/dist/cli-bundle/chunks/chunk-37E72CNS.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3GCS5SKL.js +0 -228
- package/dist/cli-bundle/chunks/chunk-3GCS5SKL.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3KTN6IBA.js +0 -2330
- package/dist/cli-bundle/chunks/chunk-3KTN6IBA.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-3VHSI5FL.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js +0 -278
- package/dist/cli-bundle/chunks/chunk-425E4QL5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-46CUF5L6.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4BU75MF4.js +0 -87
- package/dist/cli-bundle/chunks/chunk-4BU75MF4.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js +0 -249
- package/dist/cli-bundle/chunks/chunk-4HIFVN7N.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4IWYTWGF.js +0 -819
- package/dist/cli-bundle/chunks/chunk-4IWYTWGF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js +0 -279
- package/dist/cli-bundle/chunks/chunk-4MZVRJOE.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-57NWPFF2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js +0 -268
- package/dist/cli-bundle/chunks/chunk-5AJXHQM7.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-5BMM6XQY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-5GZ7TDD6.js +0 -1868
- package/dist/cli-bundle/chunks/chunk-5GZ7TDD6.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5VAA4YHR.js +0 -1749
- package/dist/cli-bundle/chunks/chunk-5VAA4YHR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-64YKRTSV.js +0 -1961
- package/dist/cli-bundle/chunks/chunk-64YKRTSV.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7C2O74AE.js +0 -23
- package/dist/cli-bundle/chunks/chunk-7C2O74AE.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js +0 -421
- package/dist/cli-bundle/chunks/chunk-B7FRNMYN.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-C5JBZRPU.js +0 -1985
- package/dist/cli-bundle/chunks/chunk-C5JBZRPU.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-CL36D4PC.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-COSPOP7H.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js +0 -3461
- package/dist/cli-bundle/chunks/chunk-COWTDV6B.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-DEWEK6AN.js +0 -1858
- package/dist/cli-bundle/chunks/chunk-DEWEK6AN.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DMRNBQOI.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-E3SZTQ4K.js +0 -1932
- package/dist/cli-bundle/chunks/chunk-E3SZTQ4K.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-EGAP5OWD.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-EKFNL33R.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ENGQOEUY.js +0 -1704
- package/dist/cli-bundle/chunks/chunk-ENGQOEUY.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-EOKXK3R3.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-FLZSGSQR.js +0 -231
- package/dist/cli-bundle/chunks/chunk-FLZSGSQR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js +0 -2090
- package/dist/cli-bundle/chunks/chunk-FOUYJE4A.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-G24G7ZAV.js +0 -1570
- package/dist/cli-bundle/chunks/chunk-G24G7ZAV.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js +0 -239
- package/dist/cli-bundle/chunks/chunk-GEYZ4G4O.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GPLPTGOV.js +0 -530
- package/dist/cli-bundle/chunks/chunk-GPLPTGOV.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-GZRDYONU.js +0 -1005
- package/dist/cli-bundle/chunks/chunk-GZRDYONU.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js +0 -277
- package/dist/cli-bundle/chunks/chunk-HN6NSXNW.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js +0 -309
- package/dist/cli-bundle/chunks/chunk-IQNVQHOP.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-JINYH2DB.js +0 -371
- package/dist/cli-bundle/chunks/chunk-JINYH2DB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js +0 -2257
- package/dist/cli-bundle/chunks/chunk-JQXPY7DN.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-K46RF36U.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js +0 -371
- package/dist/cli-bundle/chunks/chunk-KERMZVY5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js +0 -76
- package/dist/cli-bundle/chunks/chunk-KSRUHV2H.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-LK6XLOGP.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js +0 -140
- package/dist/cli-bundle/chunks/chunk-LP3HSFZ2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js +0 -1601
- package/dist/cli-bundle/chunks/chunk-MAWDPCJW.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MFAZSEM5.js +0 -1031
- package/dist/cli-bundle/chunks/chunk-MFAZSEM5.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MFSCBT5Q.js +0 -995
- package/dist/cli-bundle/chunks/chunk-MFSCBT5Q.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js +0 -296
- package/dist/cli-bundle/chunks/chunk-ML5X7DP2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MLIYFOE7.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js +0 -2043
- package/dist/cli-bundle/chunks/chunk-MR6FJ7LL.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js +0 -2033
- package/dist/cli-bundle/chunks/chunk-MXYA5SAJ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js +0 -1604
- package/dist/cli-bundle/chunks/chunk-N745W3B3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-NMP5I3I5.js +0 -1615
- package/dist/cli-bundle/chunks/chunk-NMP5I3I5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js +0 -20
- package/dist/cli-bundle/chunks/chunk-NNHHXJB2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js +0 -143
- package/dist/cli-bundle/chunks/chunk-PZUGEOPS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-QLMX7SRD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js +0 -398
- package/dist/cli-bundle/chunks/chunk-QX6HM775.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-QZ342C63.js +0 -220
- package/dist/cli-bundle/chunks/chunk-QZ342C63.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-R2EMWY7Q.js +0 -368
- package/dist/cli-bundle/chunks/chunk-R2EMWY7Q.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RFNYTESG.js +0 -520
- package/dist/cli-bundle/chunks/chunk-RFNYTESG.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js +0 -79
- package/dist/cli-bundle/chunks/chunk-RKQOO2UM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js +0 -282
- package/dist/cli-bundle/chunks/chunk-RQLT6ZWB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js +0 -274
- package/dist/cli-bundle/chunks/chunk-S3JS6YVZ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SCUR7K7N.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SHQY2IDC.js +0 -1977
- package/dist/cli-bundle/chunks/chunk-SHQY2IDC.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SPZ6DOGY.js +0 -1041
- package/dist/cli-bundle/chunks/chunk-SPZ6DOGY.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-T42JWV3F.js +0 -822
- package/dist/cli-bundle/chunks/chunk-T42JWV3F.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TKD5VCTD.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TULGS6X6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TZXRBVAM.js +0 -2306
- package/dist/cli-bundle/chunks/chunk-TZXRBVAM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-VIIUS6N6.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-VPIM42PC.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js +0 -368
- package/dist/cli-bundle/chunks/chunk-VQRSPVME.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-VY3VQ22F.js +0 -84
- package/dist/cli-bundle/chunks/chunk-VY3VQ22F.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js +0 -3423
- package/dist/cli-bundle/chunks/chunk-WG34ZNQQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js +0 -2247
- package/dist/cli-bundle/chunks/chunk-WLSM645P.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-WRTENIX3.js +0 -215
- package/dist/cli-bundle/chunks/chunk-WRTENIX3.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js +0 -388
- package/dist/cli-bundle/chunks/chunk-WSBLYDWV.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js +0 -306
- package/dist/cli-bundle/chunks/chunk-XC5BURG2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js +0 -424
- package/dist/cli-bundle/chunks/chunk-XDB7RWQT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js +0 -2128
- package/dist/cli-bundle/chunks/chunk-Y6BK55A3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Z3U3U5KD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js +0 -299
- package/dist/cli-bundle/chunks/chunk-ZO3XKAOP.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-ZSUS2OD3.js.map +0 -7
- package/dist/cli-bundle/chunks/claim-RFS7BROJ.js +0 -19
- package/dist/cli-bundle/chunks/claim-XP5AWZ5H.js +0 -23
- package/dist/cli-bundle/chunks/close-GEANHQ2J.js +0 -16
- package/dist/cli-bundle/chunks/close-many-CMZW7ITN.js +0 -31
- package/dist/cli-bundle/chunks/close-many-ZFDIG6M7.js +0 -27
- package/dist/cli-bundle/chunks/comments-MFSYVNNU.js +0 -21
- package/dist/cli-bundle/chunks/comments-XUBPXDYX.js +0 -17
- package/dist/cli-bundle/chunks/config-D7XQMONX.js +0 -18
- package/dist/cli-bundle/chunks/config-T4FHBSYN.js +0 -22
- package/dist/cli-bundle/chunks/context-DIU275XI.js +0 -48
- package/dist/cli-bundle/chunks/context-JCOYB4LZ.js +0 -44
- package/dist/cli-bundle/chunks/contracts-BVO7CSLK.js +0 -12
- package/dist/cli-bundle/chunks/copy-NAGLGMHZ.js +0 -13
- package/dist/cli-bundle/chunks/create-4V7SWNBB.js +0 -30
- package/dist/cli-bundle/chunks/delete-NQI5OSKN.js +0 -14
- package/dist/cli-bundle/chunks/deps-T7SCWXEX.js +0 -17
- package/dist/cli-bundle/chunks/docs-WL2IWGWV.js +0 -18
- package/dist/cli-bundle/chunks/eval-NF2J5SHR.js +0 -23
- package/dist/cli-bundle/chunks/eval-SKDT3MZU.js +0 -27
- package/dist/cli-bundle/chunks/extension-LAXKCAYE.js +0 -42
- package/dist/cli-bundle/chunks/extension-ZISPBRBC.js +0 -38
- package/dist/cli-bundle/chunks/files-EWRQHGIS.js +0 -22
- package/dist/cli-bundle/chunks/focus-4T7TM4MT.js +0 -18
- package/dist/cli-bundle/chunks/focus-L3YUASOD.js +0 -14
- package/dist/cli-bundle/chunks/gc-2PCTYYRI.js +0 -12
- package/dist/cli-bundle/chunks/get-7DMITJ3G.js +0 -23
- package/dist/cli-bundle/chunks/get-VKQXCXLL.js +0 -19
- package/dist/cli-bundle/chunks/health-CVSTAR2F.js +0 -31
- package/dist/cli-bundle/chunks/health-TV3GKTFN.js +0 -35
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js +0 -20
- package/dist/cli-bundle/chunks/history-D4JUX5XV.js.map +0 -7
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js +0 -24
- package/dist/cli-bundle/chunks/history-LQ2UWZTE.js.map +0 -1
- package/dist/cli-bundle/chunks/history-compact-3MNXLKAT.js.map +0 -1
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js +0 -25
- package/dist/cli-bundle/chunks/history-compact-QWEO32FP.js.map +0 -7
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js +0 -21
- package/dist/cli-bundle/chunks/history-redact-3OIVBVIY.js.map +0 -7
- package/dist/cli-bundle/chunks/history-redact-P6DYF55G.js.map +0 -1
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js +0 -23
- package/dist/cli-bundle/chunks/history-repair-I3E73UGQ.js.map +0 -7
- package/dist/cli-bundle/chunks/history-repair-ZJQFMWPD.js.map +0 -1
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js +0 -30
- package/dist/cli-bundle/chunks/init-C3LJPWQZ.js.map +0 -1
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js +0 -26
- package/dist/cli-bundle/chunks/init-J3DPGWQI.js.map +0 -7
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js +0 -21
- package/dist/cli-bundle/chunks/learnings-5BO2SNDW.js.map +0 -1
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js +0 -17
- package/dist/cli-bundle/chunks/learnings-OGP4JB4I.js.map +0 -7
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js +0 -36
- package/dist/cli-bundle/chunks/list-O5NZVSPN.js.map +0 -1
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js +0 -32
- package/dist/cli-bundle/chunks/list-Z55YCNTC.js.map +0 -7
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js +0 -28
- package/dist/cli-bundle/chunks/next-GBNTGXFC.js.map +0 -7
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js +0 -32
- package/dist/cli-bundle/chunks/next-QKW7PTKE.js.map +0 -1
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js +0 -17
- package/dist/cli-bundle/chunks/notes-R5FZTKWF.js.map +0 -7
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js +0 -21
- package/dist/cli-bundle/chunks/notes-WCGIULVG.js.map +0 -1
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js +0 -29
- package/dist/cli-bundle/chunks/plan-ADISFYH4.js.map +0 -7
- package/dist/cli-bundle/chunks/plan-CHVE7PBR.js.map +0 -1
- package/dist/cli-bundle/chunks/profile-LD23PSI6.js.map +0 -7
- package/dist/cli-bundle/chunks/profile-ZXGSKBJD.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-B42JCCOI.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-OEYQHFXO.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js +0 -19
- package/dist/cli-bundle/chunks/register-operations-I3M3U7DS.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js +0 -23
- package/dist/cli-bundle/chunks/register-operations-UHKENLZV.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-3ZVVX2VN.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-Q6KFNIOZ.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-5RQHAPMA.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js +0 -19
- package/dist/cli-bundle/chunks/restore-PNEIBBLW.js.map +0 -7
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js +0 -29
- package/dist/cli-bundle/chunks/scheduling-shortcuts-4G56YHVQ.js.map +0 -1
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js +0 -25
- package/dist/cli-bundle/chunks/scheduling-shortcuts-75DULBYP.js.map +0 -7
- package/dist/cli-bundle/chunks/schema-245WW4G2.js.map +0 -1
- package/dist/cli-bundle/chunks/schema-HBORFC6B.js.map +0 -7
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js +0 -34
- package/dist/cli-bundle/chunks/search-AOZC5SIK.js.map +0 -7
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js +0 -38
- package/dist/cli-bundle/chunks/search-DRXPGHD7.js.map +0 -1
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js +0 -21
- package/dist/cli-bundle/chunks/stats-NJG4NLHG.js.map +0 -1
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js +0 -17
- package/dist/cli-bundle/chunks/stats-RG6AG4N2.js.map +0 -7
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js +0 -14
- package/dist/cli-bundle/chunks/telemetry-HQC2JJIF.js.map +0 -7
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js +0 -18
- package/dist/cli-bundle/chunks/telemetry-MPNL3HHY.js.map +0 -1
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js +0 -39
- package/dist/cli-bundle/chunks/test-6CMOCWUC.js.map +0 -7
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js +0 -43
- package/dist/cli-bundle/chunks/test-RI7XHBZL.js.map +0 -1
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js +0 -29
- package/dist/cli-bundle/chunks/test-all-7R7YRZIA.js.map +0 -7
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js +0 -33
- package/dist/cli-bundle/chunks/test-all-QEIORFYW.js.map +0 -1
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js +0 -28
- package/dist/cli-bundle/chunks/test-runs-5Y2BOU2S.js.map +0 -1
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js +0 -24
- package/dist/cli-bundle/chunks/test-runs-PVGC3GRZ.js.map +0 -7
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js +0 -30
- package/dist/cli-bundle/chunks/update-QVJDFEAP.js.map +0 -1
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js +0 -26
- package/dist/cli-bundle/chunks/update-VQVHAY6X.js.map +0 -7
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js +0 -37
- package/dist/cli-bundle/chunks/update-many-S7XWBSB3.js.map +0 -7
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js +0 -41
- package/dist/cli-bundle/chunks/update-many-YIYW6XQ6.js.map +0 -1
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js +0 -24
- package/dist/cli-bundle/chunks/upgrade-OPRXA56R.js.map +0 -7
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js +0 -28
- package/dist/cli-bundle/chunks/upgrade-WH4BTQLX.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js +0 -36
- package/dist/cli-bundle/chunks/validate-4NTXSB62.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js +0 -32
- package/dist/cli-bundle/chunks/validate-MUFXQZMI.js.map +0 -7
- /package/dist/cli-bundle/chunks/{activity-WJCGCYPU.js.map → append-CDPAYYSB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-Z6QUAUSG.js.map → append-RSPHC423.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-24YG75HI.js.map → chunk-3FUXM574.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IWVU4C2F.js.map → chunk-3SHDAKMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MUH7A3FD.js.map → chunk-3V5C7PUH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EGY6JBQ3.js.map → chunk-4I7KS5ES.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GJ7QC5DJ.js.map → chunk-5STY7NVM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JJP45OEI.js.map → chunk-5VAZHYVQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-22KBU3MW.js.map → chunk-6RR4XM5H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KUOOJR35.js.map → chunk-7QKSLAHB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NGXQ3PFT.js.map → chunk-7UCBLJDF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7DT4WSH2.js.map → chunk-BFNFTHWQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y46GD4IX.js.map → chunk-C3YU3TXX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AZYGZGGI.js.map → chunk-CGDUIPJL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XG625QP4.js.map → chunk-EP2CKDS7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MVYWGY2A.js.map → chunk-J6AD3GWC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-R5BMJX33.js.map → chunk-KFL3XHMA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MWMVPCIE.js.map → chunk-PCBZ2VJD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-B6DUFX6H.js.map → chunk-Q3CFSOQZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KGFUY7WN.js.map → chunk-TU5P744I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JDDLOQAE.js.map → chunk-UEATYUZW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JVH7QBVV.js.map → chunk-UFNFHCAC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AGHMOTGM.js.map → chunk-Z2JQH2MG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y4M7CPQP.js.map → chunk-ZMOPZFVT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-VQ2DHU3S.js.map → close-E3RLZSP2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-BDM6EIAR.js.map → close-K6BFI3OX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-BGML6VLD.js.map → close-many-6NBL3PM4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-RKJYPU74.js.map → close-many-X4YKS3RO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-XP5AWZ5H.js.map → comments-PLFK5ZKK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-RFS7BROJ.js.map → comments-ZNOD5PTV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-GEANHQ2J.js.map → copy-F7BUFY4J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-2SSSHHUZ.js.map → copy-VH3L4MN2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-ZFDIG6M7.js.map → create-AMBMYP6F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-CMZW7ITN.js.map → create-TRIBYORN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-XUBPXDYX.js.map → delete-6KQHZYIP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-MFSYVNNU.js.map → delete-ZNXUNCZR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-D7XQMONX.js.map → deps-CVDY7FFK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-T4FHBSYN.js.map → deps-SZXQHV73.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-DIU275XI.js.map → docs-DR74ITCD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-JCOYB4LZ.js.map → docs-WCVYY6I7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-BVO7CSLK.js.map → files-H5YCA74Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-NYPEW2G4.js.map → files-QEFQ2M3H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-32ROBIDL.js.map → focus-55TRYSNA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-NAGLGMHZ.js.map → focus-N2QGNS5D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-4V7SWNBB.js.map → history-compact-GWQ4UOEI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-E77SDCUP.js.map → history-compact-JJZ4EFL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-NQI5OSKN.js.map → history-redact-4GJOLXCM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-RA5KTCLB.js.map → history-redact-TPPUT3A5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-T7SCWXEX.js.map → history-repair-HVCVCGUF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-32SU7HO5.js.map → history-repair-J7PIZ6ZP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-RRUPT7O2.js.map → learnings-KB6BT4NR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-WL2IWGWV.js.map → learnings-YYY3U2Y7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-NF2J5SHR.js.map → notes-BGG7VL72.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-SKDT3MZU.js.map → notes-ZTHXVOKM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-LAXKCAYE.js.map → plan-CJPKFRBK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-ZISPBRBC.js.map → plan-MK2QY3GA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-PYKR2UUG.js.map → profile-AQNHXOYA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-EWRQHGIS.js.map → profile-HTBFINKQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-4T7TM4MT.js.map → restore-BTBEZ5CK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-L3YUASOD.js.map → restore-EX4UUZL6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-2PCTYYRI.js.map → schema-DGSTYYQB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-2DNMPXMC.js.map → schema-HAIBEE24.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-7DMITJ3G.js.map → update-MP4XLU56.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-VKQXCXLL.js.map → update-SDIRJGSY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-CVSTAR2F.js.map → update-many-34AIU6W7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-TV3GKTFN.js.map → update-many-JUPCNOKV.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Implements extension runtime contracts and governance for Loader.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b7735a57-30b2-58a3-9d53-6805e011fd12")}catch(e){}}();
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { pathToFileURL } from "node:url";
|
|
@@ -448,6 +448,9 @@ async function scanExtensionLayer(layer, extensionsRoot, enabled, disabled, pmMa
|
|
|
448
448
|
}
|
|
449
449
|
return { diagnostics, warnings, candidates };
|
|
450
450
|
}
|
|
451
|
+
function emptyExtensionLayerScan() {
|
|
452
|
+
return { diagnostics: [], warnings: [], candidates: [] };
|
|
453
|
+
}
|
|
451
454
|
/**
|
|
452
455
|
* Build the `warn`-status scan result for a directory whose manifest is missing
|
|
453
456
|
* or unparseable, carrying the supplied diagnostic warning and no candidate.
|
|
@@ -579,7 +582,9 @@ export async function discoverExtensions(options) {
|
|
|
579
582
|
}
|
|
580
583
|
const enabled = new Set(configured_enabled);
|
|
581
584
|
const disabled = new Set(configured_disabled);
|
|
582
|
-
const globalScan =
|
|
585
|
+
const globalScan = options.ignoreGlobalExtensions === true
|
|
586
|
+
? emptyExtensionLayerScan()
|
|
587
|
+
: await scanExtensionLayer("global", roots.global, enabled, disabled, policy.pmMaxVersionExceededMode.global);
|
|
583
588
|
const projectScan = await scanExtensionLayer("project", roots.project, enabled, disabled, policy.pmMaxVersionExceededMode.project);
|
|
584
589
|
const policyWarnings = [...policy.warnings];
|
|
585
590
|
const effectiveCandidates = buildEffectiveExtensions(globalScan.candidates, projectScan.candidates);
|
|
@@ -1390,8 +1395,8 @@ function assertExtensionCapability(extension, capability, method) {
|
|
|
1390
1395
|
});
|
|
1391
1396
|
}
|
|
1392
1397
|
}
|
|
1393
|
-
function
|
|
1394
|
-
|
|
1398
|
+
function buildExtensionSelfIdentity(extension) {
|
|
1399
|
+
return Object.freeze({
|
|
1395
1400
|
name: extension.name,
|
|
1396
1401
|
layer: extension.layer,
|
|
1397
1402
|
version: extension.version,
|
|
@@ -1400,7 +1405,9 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1400
1405
|
pm_max_version: extension.pm_max_version,
|
|
1401
1406
|
source_package: extension.source_package,
|
|
1402
1407
|
});
|
|
1403
|
-
|
|
1408
|
+
}
|
|
1409
|
+
function buildPolicyExtensionRef(extension) {
|
|
1410
|
+
return {
|
|
1404
1411
|
layer: extension.layer,
|
|
1405
1412
|
name: extension.name,
|
|
1406
1413
|
trusted: extension.trusted === true,
|
|
@@ -1417,65 +1424,114 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1417
1424
|
}
|
|
1418
1425
|
: undefined,
|
|
1419
1426
|
};
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1427
|
+
}
|
|
1428
|
+
class ExtensionApiRegistrar {
|
|
1429
|
+
extension;
|
|
1430
|
+
hooks;
|
|
1431
|
+
#loadedExtension;
|
|
1432
|
+
#extensionRef;
|
|
1433
|
+
#hookRegistry;
|
|
1434
|
+
#commandRegistry;
|
|
1435
|
+
#parserRegistry;
|
|
1436
|
+
#preflightRegistry;
|
|
1437
|
+
#serviceRegistry;
|
|
1438
|
+
#rendererRegistry;
|
|
1439
|
+
#registrationRegistry;
|
|
1440
|
+
#activationWarnings;
|
|
1441
|
+
#policy;
|
|
1442
|
+
constructor(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
|
|
1443
|
+
this.#loadedExtension = extension;
|
|
1444
|
+
this.extension = buildExtensionSelfIdentity(extension);
|
|
1445
|
+
this.#extensionRef = buildPolicyExtensionRef(extension);
|
|
1446
|
+
this.#hookRegistry = hooks;
|
|
1447
|
+
this.#commandRegistry = commands;
|
|
1448
|
+
this.#parserRegistry = parsers;
|
|
1449
|
+
this.#preflightRegistry = preflight;
|
|
1450
|
+
this.#serviceRegistry = services;
|
|
1451
|
+
this.#rendererRegistry = renderers;
|
|
1452
|
+
this.#registrationRegistry = registrations;
|
|
1453
|
+
this.#activationWarnings = activationWarnings;
|
|
1454
|
+
this.#policy = policy;
|
|
1455
|
+
this.registerCommand = this.registerCommand.bind(this);
|
|
1456
|
+
this.registerParser = this.registerParser.bind(this);
|
|
1457
|
+
this.registerPreflight = this.registerPreflight.bind(this);
|
|
1458
|
+
this.registerService = this.registerService.bind(this);
|
|
1459
|
+
this.registerFlags = this.registerFlags.bind(this);
|
|
1460
|
+
this.registerItemFields = this.registerItemFields.bind(this);
|
|
1461
|
+
this.registerItemTypes = this.registerItemTypes.bind(this);
|
|
1462
|
+
this.registerMigration = this.registerMigration.bind(this);
|
|
1463
|
+
this.registerProfile = this.registerProfile.bind(this);
|
|
1464
|
+
this.registerRenderer = this.registerRenderer.bind(this);
|
|
1465
|
+
this.registerImporter = this.registerImporter.bind(this);
|
|
1466
|
+
this.registerExporter = this.registerExporter.bind(this);
|
|
1467
|
+
this.registerSearchProvider = this.registerSearchProvider.bind(this);
|
|
1468
|
+
this.registerVectorStoreAdapter = this.registerVectorStoreAdapter.bind(this);
|
|
1469
|
+
this.hooks = {
|
|
1470
|
+
beforeCommand: (hook) => this.registerBeforeCommand(hook),
|
|
1471
|
+
afterCommand: (hook) => this.registerAfterCommand(hook),
|
|
1472
|
+
onWrite: (hook) => this.registerOnWrite(hook),
|
|
1473
|
+
onRead: (hook) => this.registerOnRead(hook),
|
|
1474
|
+
onIndex: (hook) => this.registerOnIndex(hook),
|
|
1475
|
+
};
|
|
1476
|
+
}
|
|
1477
|
+
allowRegistration(surface, method, capability, details) {
|
|
1478
|
+
const decision = evaluateExtensionPolicyForRegistration(this.#policy, this.#extensionRef, surface, method, capability, details);
|
|
1479
|
+
if (decision.warning) {
|
|
1480
|
+
this.#activationWarnings.push(decision.warning);
|
|
1423
1481
|
}
|
|
1424
|
-
};
|
|
1425
|
-
const allowRegistration = (surface, method, capability, details) => {
|
|
1426
|
-
const decision = evaluateExtensionPolicyForRegistration(policy, extensionRef, surface, method, capability, details);
|
|
1427
|
-
pushPolicyWarning(decision.warning);
|
|
1428
1482
|
return decision.allowed;
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1483
|
+
}
|
|
1484
|
+
registerCommandTrace(mode, command, expectedSchema, received, hint) {
|
|
1485
|
+
return {
|
|
1486
|
+
method: "registerCommand",
|
|
1487
|
+
registration_index: mode === "override" ? this.#commandRegistry.overrides.length : this.#commandRegistry.handlers.length,
|
|
1488
|
+
command,
|
|
1489
|
+
expected_schema: expectedSchema,
|
|
1490
|
+
received: sanitizeRegistrationValue(received),
|
|
1491
|
+
hint,
|
|
1492
|
+
};
|
|
1493
|
+
}
|
|
1494
|
+
registerCommandOverride(command, override) {
|
|
1439
1495
|
const normalizedCommand = normalizeCommandName(command);
|
|
1440
1496
|
if (normalizedCommand.length === 0) {
|
|
1441
|
-
throw createRegistrationValidationError("registerCommand requires a non-empty command name", registerCommandTrace("override", command, 'registerCommand("<command>", (context) => unknown)', command, "Provide a non-empty command path as the first argument."));
|
|
1497
|
+
throw createRegistrationValidationError("registerCommand requires a non-empty command name", this.registerCommandTrace("override", command, 'registerCommand("<command>", (context) => unknown)', command, "Provide a non-empty command path as the first argument."));
|
|
1442
1498
|
}
|
|
1443
1499
|
if (typeof override !== "function") {
|
|
1444
|
-
const trace = registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)',
|
|
1500
|
+
const trace = this.registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)', override, "Provide a function as the second registerCommand argument.");
|
|
1445
1501
|
throw createRegistrationValidationError(`registerCommand requires an override function when command name is provided (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
|
|
1446
1502
|
}
|
|
1447
|
-
if (!allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
|
|
1503
|
+
if (!this.allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
|
|
1448
1504
|
return;
|
|
1449
1505
|
}
|
|
1450
|
-
|
|
1451
|
-
layer:
|
|
1452
|
-
name:
|
|
1506
|
+
this.#commandRegistry.overrides.push({
|
|
1507
|
+
layer: this.#loadedExtension.layer,
|
|
1508
|
+
name: this.#loadedExtension.name,
|
|
1453
1509
|
command: normalizedCommand,
|
|
1454
1510
|
run: override,
|
|
1455
1511
|
});
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1512
|
+
}
|
|
1513
|
+
resolveCommandDefinitionRunHandler(definition, normalizedCommand) {
|
|
1458
1514
|
const runHandler = typeof definition.run === "function" ? definition.run : undefined;
|
|
1459
1515
|
const legacyHandler = typeof definition.handler === "function" ? definition.handler : undefined;
|
|
1460
1516
|
if (!runHandler && legacyHandler) {
|
|
1461
|
-
activationWarnings.push(`extension_command_definition_legacy_handler_alias:${
|
|
1517
|
+
this.#activationWarnings.push(`extension_command_definition_legacy_handler_alias:${this.#loadedExtension.layer}:${this.#loadedExtension.name}:${normalizedCommand}`);
|
|
1462
1518
|
}
|
|
1463
1519
|
return runHandler ?? legacyHandler;
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1520
|
+
}
|
|
1521
|
+
registerCommandDefinition(definition) {
|
|
1466
1522
|
if (typeof definition !== "object" || definition === null) {
|
|
1467
|
-
throw createRegistrationValidationError("registerCommand requires a command definition object", registerCommandTrace("definition", undefined, "{ name: string; run: (context) => unknown; }", definition, "Use registerCommand({ name: \"command path\", run: (context) => ... })."));
|
|
1523
|
+
throw createRegistrationValidationError("registerCommand requires a command definition object", this.registerCommandTrace("definition", undefined, "{ name: string; run: (context) => unknown; }", definition, "Use registerCommand({ name: \"command path\", run: (context) => ... })."));
|
|
1468
1524
|
}
|
|
1469
1525
|
if (typeof definition.name !== "string") {
|
|
1470
|
-
throw createRegistrationValidationError("registerCommand requires a command definition name", registerCommandTrace("definition", undefined, "{ name: string; run: (context) => unknown; }", definition, "Set command definition.name to a non-empty string command path."));
|
|
1526
|
+
throw createRegistrationValidationError("registerCommand requires a command definition name", this.registerCommandTrace("definition", undefined, "{ name: string; run: (context) => unknown; }", definition, "Set command definition.name to a non-empty string command path."));
|
|
1471
1527
|
}
|
|
1472
1528
|
const normalizedCommand = normalizeCommandName(definition.name);
|
|
1473
1529
|
if (normalizedCommand.length === 0) {
|
|
1474
|
-
throw createRegistrationValidationError("registerCommand requires a non-empty command definition name", registerCommandTrace("definition", definition.name, "{ name: string; run: (context) => unknown; }", definition, "Ensure command definition.name contains a non-empty command path."));
|
|
1530
|
+
throw createRegistrationValidationError("registerCommand requires a non-empty command definition name", this.registerCommandTrace("definition", definition.name, "{ name: string; run: (context) => unknown; }", definition, "Ensure command definition.name contains a non-empty command path."));
|
|
1475
1531
|
}
|
|
1476
|
-
const resolvedHandler = resolveCommandDefinitionRunHandler(definition, normalizedCommand);
|
|
1532
|
+
const resolvedHandler = this.resolveCommandDefinitionRunHandler(definition, normalizedCommand);
|
|
1477
1533
|
if (typeof resolvedHandler !== "function") {
|
|
1478
|
-
const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }",
|
|
1534
|
+
const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }", resolvedHandler, "Define command definition.run as a function.");
|
|
1479
1535
|
throw createRegistrationValidationError(`registerCommand requires a command definition run handler (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
|
|
1480
1536
|
}
|
|
1481
1537
|
try {
|
|
@@ -1483,7 +1539,7 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1483
1539
|
assertOptionalStringField("registerCommand definition.description", definition.description);
|
|
1484
1540
|
assertOptionalStringField("registerCommand definition.intent", definition.intent);
|
|
1485
1541
|
const action = resolveCommandDefinitionAction(normalizedCommand, definition.action);
|
|
1486
|
-
if (!allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
|
|
1542
|
+
if (!this.allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
|
|
1487
1543
|
return;
|
|
1488
1544
|
}
|
|
1489
1545
|
const description = definition.description?.trim();
|
|
@@ -1492,19 +1548,21 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1492
1548
|
const failureHints = normalizeOptionalStringArrayField("registerCommand definition.failure_hints", definition.failure_hints);
|
|
1493
1549
|
const argumentsDefinition = normalizeCommandDefinitionArguments(definition.arguments);
|
|
1494
1550
|
if (definition.flags !== undefined) {
|
|
1495
|
-
assertExtensionCapability(
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1551
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerCommand flags");
|
|
1552
|
+
if (this.allowRegistration("schema.flags", "registerCommand flags", "schema")) {
|
|
1553
|
+
validateFlagDefinitions(definition.flags);
|
|
1554
|
+
this.#registrationRegistry.flags.push({
|
|
1555
|
+
layer: this.#loadedExtension.layer,
|
|
1556
|
+
name: this.#loadedExtension.name,
|
|
1557
|
+
target_command: normalizedCommand,
|
|
1558
|
+
flags: normalizeRegistrationRecordList("registerCommand definition.flags", definition.flags),
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1503
1561
|
}
|
|
1504
1562
|
const registration = {
|
|
1505
|
-
layer:
|
|
1506
|
-
name:
|
|
1507
|
-
source_package:
|
|
1563
|
+
layer: this.#loadedExtension.layer,
|
|
1564
|
+
name: this.#loadedExtension.name,
|
|
1565
|
+
source_package: this.#loadedExtension.source_package,
|
|
1508
1566
|
command: normalizedCommand,
|
|
1509
1567
|
action,
|
|
1510
1568
|
examples,
|
|
@@ -1517,74 +1575,74 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1517
1575
|
if (intent) {
|
|
1518
1576
|
registration.intent = intent;
|
|
1519
1577
|
}
|
|
1520
|
-
|
|
1578
|
+
this.#registrationRegistry.commands.push(registration);
|
|
1521
1579
|
}
|
|
1522
1580
|
catch (error) {
|
|
1523
1581
|
const reason = formatUnknownError(error);
|
|
1524
|
-
const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition,
|
|
1582
|
+
const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition, reason);
|
|
1525
1583
|
throw createRegistrationValidationError(`registerCommand definition metadata invalid (command="${normalizedCommand}", registration_index=${trace.registration_index}): ${reason}`, trace);
|
|
1526
1584
|
}
|
|
1527
|
-
|
|
1528
|
-
layer:
|
|
1529
|
-
name:
|
|
1585
|
+
this.#commandRegistry.handlers.push({
|
|
1586
|
+
layer: this.#loadedExtension.layer,
|
|
1587
|
+
name: this.#loadedExtension.name,
|
|
1530
1588
|
command: normalizedCommand,
|
|
1531
1589
|
run: resolvedHandler,
|
|
1532
1590
|
});
|
|
1533
|
-
}
|
|
1534
|
-
|
|
1535
|
-
assertExtensionCapability(
|
|
1591
|
+
}
|
|
1592
|
+
registerCommand(commandOrDefinition, override) {
|
|
1593
|
+
assertExtensionCapability(this.#loadedExtension, "commands", "registerCommand");
|
|
1536
1594
|
if (typeof commandOrDefinition === "string") {
|
|
1537
|
-
registerCommandOverride(commandOrDefinition, override);
|
|
1595
|
+
this.registerCommandOverride(commandOrDefinition, override);
|
|
1538
1596
|
return;
|
|
1539
1597
|
}
|
|
1540
|
-
registerCommandDefinition(commandOrDefinition);
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
assertExtensionCapability(
|
|
1544
|
-
if (!allowRegistration("parser.override", "registerParser", "parser")) {
|
|
1598
|
+
this.registerCommandDefinition(commandOrDefinition);
|
|
1599
|
+
}
|
|
1600
|
+
registerParser(command, override) {
|
|
1601
|
+
assertExtensionCapability(this.#loadedExtension, "parser", "registerParser");
|
|
1602
|
+
if (!this.allowRegistration("parser.override", "registerParser", "parser")) {
|
|
1545
1603
|
return;
|
|
1546
1604
|
}
|
|
1547
1605
|
const normalizedCommand = normalizeCommandName(assertNonEmptyString("registerParser command", command));
|
|
1548
1606
|
assertFunctionHandler("registerParser override", override);
|
|
1549
|
-
|
|
1550
|
-
layer:
|
|
1551
|
-
name:
|
|
1607
|
+
this.#parserRegistry.overrides.push({
|
|
1608
|
+
layer: this.#loadedExtension.layer,
|
|
1609
|
+
name: this.#loadedExtension.name,
|
|
1552
1610
|
command: normalizedCommand,
|
|
1553
1611
|
run: override,
|
|
1554
1612
|
});
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
|
-
assertExtensionCapability(
|
|
1558
|
-
if (!allowRegistration("preflight.override", "registerPreflight", "preflight")) {
|
|
1613
|
+
}
|
|
1614
|
+
registerPreflight(override) {
|
|
1615
|
+
assertExtensionCapability(this.#loadedExtension, "preflight", "registerPreflight");
|
|
1616
|
+
if (!this.allowRegistration("preflight.override", "registerPreflight", "preflight")) {
|
|
1559
1617
|
return;
|
|
1560
1618
|
}
|
|
1561
1619
|
assertFunctionHandler("registerPreflight override", override);
|
|
1562
|
-
|
|
1563
|
-
layer:
|
|
1564
|
-
name:
|
|
1620
|
+
this.#preflightRegistry.overrides.push({
|
|
1621
|
+
layer: this.#loadedExtension.layer,
|
|
1622
|
+
name: this.#loadedExtension.name,
|
|
1565
1623
|
run: override,
|
|
1566
1624
|
});
|
|
1567
|
-
}
|
|
1568
|
-
|
|
1569
|
-
assertExtensionCapability(
|
|
1625
|
+
}
|
|
1626
|
+
registerService(service, override) {
|
|
1627
|
+
assertExtensionCapability(this.#loadedExtension, "services", "registerService");
|
|
1570
1628
|
const normalizedService = String(service).trim().toLowerCase();
|
|
1571
1629
|
if (!isExtensionServiceName(normalizedService)) {
|
|
1572
1630
|
throw new TypeError(`registerService service must be one of: ${KNOWN_EXTENSION_SERVICE_NAMES.join(", ")}`);
|
|
1573
1631
|
}
|
|
1574
|
-
if (!allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
|
|
1632
|
+
if (!this.allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
|
|
1575
1633
|
return;
|
|
1576
1634
|
}
|
|
1577
1635
|
assertFunctionHandler("registerService override", override);
|
|
1578
|
-
|
|
1579
|
-
layer:
|
|
1580
|
-
name:
|
|
1636
|
+
this.#serviceRegistry.overrides.push({
|
|
1637
|
+
layer: this.#loadedExtension.layer,
|
|
1638
|
+
name: this.#loadedExtension.name,
|
|
1581
1639
|
service: normalizedService,
|
|
1582
1640
|
run: override,
|
|
1583
1641
|
});
|
|
1584
|
-
}
|
|
1585
|
-
|
|
1586
|
-
assertExtensionCapability(
|
|
1587
|
-
if (!allowRegistration("renderers.override", "registerRenderer", "renderers")) {
|
|
1642
|
+
}
|
|
1643
|
+
registerRenderer(format, renderer) {
|
|
1644
|
+
assertExtensionCapability(this.#loadedExtension, "renderers", "registerRenderer");
|
|
1645
|
+
if (!this.allowRegistration("renderers.override", "registerRenderer", "renderers")) {
|
|
1588
1646
|
return;
|
|
1589
1647
|
}
|
|
1590
1648
|
if (typeof renderer !== "function") {
|
|
@@ -1594,16 +1652,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1594
1652
|
if (!isOutputRendererFormat(normalizedFormat)) {
|
|
1595
1653
|
throw new Error(`registerRenderer format must be toon|json, received: ${String(format)}`);
|
|
1596
1654
|
}
|
|
1597
|
-
|
|
1598
|
-
layer:
|
|
1599
|
-
name:
|
|
1655
|
+
this.#rendererRegistry.overrides.push({
|
|
1656
|
+
layer: this.#loadedExtension.layer,
|
|
1657
|
+
name: this.#loadedExtension.name,
|
|
1600
1658
|
format: normalizedFormat,
|
|
1601
1659
|
run: renderer,
|
|
1602
1660
|
});
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
assertExtensionCapability(
|
|
1606
|
-
if (!allowRegistration("schema.flags", "registerFlags", "schema")) {
|
|
1661
|
+
}
|
|
1662
|
+
registerFlags(targetCommand, flags) {
|
|
1663
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerFlags");
|
|
1664
|
+
if (!this.allowRegistration("schema.flags", "registerFlags", "schema")) {
|
|
1607
1665
|
return;
|
|
1608
1666
|
}
|
|
1609
1667
|
const normalizedTargetCommand = normalizeCommandName(assertNonEmptyString("registerFlags targetCommand", targetCommand));
|
|
@@ -1612,16 +1670,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1612
1670
|
if (normalizedFlags.length === 0) {
|
|
1613
1671
|
throw new TypeError("registerFlags requires at least one flag definition");
|
|
1614
1672
|
}
|
|
1615
|
-
|
|
1616
|
-
layer:
|
|
1617
|
-
name:
|
|
1673
|
+
this.#registrationRegistry.flags.push({
|
|
1674
|
+
layer: this.#loadedExtension.layer,
|
|
1675
|
+
name: this.#loadedExtension.name,
|
|
1618
1676
|
target_command: normalizedTargetCommand,
|
|
1619
1677
|
flags: normalizedFlags,
|
|
1620
1678
|
});
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
assertExtensionCapability(
|
|
1624
|
-
if (!allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
|
|
1679
|
+
}
|
|
1680
|
+
registerItemFields(fields) {
|
|
1681
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerItemFields");
|
|
1682
|
+
if (!this.allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
|
|
1625
1683
|
return;
|
|
1626
1684
|
}
|
|
1627
1685
|
validateItemFieldDefinitions(fields);
|
|
@@ -1629,15 +1687,15 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1629
1687
|
if (normalizedFields.length === 0) {
|
|
1630
1688
|
throw new TypeError("registerItemFields requires at least one field definition");
|
|
1631
1689
|
}
|
|
1632
|
-
|
|
1633
|
-
layer:
|
|
1634
|
-
name:
|
|
1690
|
+
this.#registrationRegistry.item_fields.push({
|
|
1691
|
+
layer: this.#loadedExtension.layer,
|
|
1692
|
+
name: this.#loadedExtension.name,
|
|
1635
1693
|
fields: normalizedFields,
|
|
1636
1694
|
});
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
assertExtensionCapability(
|
|
1640
|
-
if (!allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
|
|
1695
|
+
}
|
|
1696
|
+
registerItemTypes(types) {
|
|
1697
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerItemTypes");
|
|
1698
|
+
if (!this.allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
|
|
1641
1699
|
return;
|
|
1642
1700
|
}
|
|
1643
1701
|
validateItemTypeDefinitions(types);
|
|
@@ -1645,28 +1703,28 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1645
1703
|
if (normalizedTypes.length === 0) {
|
|
1646
1704
|
throw new TypeError("registerItemTypes requires at least one type definition");
|
|
1647
1705
|
}
|
|
1648
|
-
|
|
1649
|
-
layer:
|
|
1650
|
-
name:
|
|
1706
|
+
this.#registrationRegistry.item_types.push({
|
|
1707
|
+
layer: this.#loadedExtension.layer,
|
|
1708
|
+
name: this.#loadedExtension.name,
|
|
1651
1709
|
types: normalizedTypes,
|
|
1652
1710
|
});
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
assertExtensionCapability(
|
|
1656
|
-
if (!allowRegistration("schema.migrations", "registerMigration", "schema")) {
|
|
1711
|
+
}
|
|
1712
|
+
registerMigration(definition) {
|
|
1713
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerMigration");
|
|
1714
|
+
if (!this.allowRegistration("schema.migrations", "registerMigration", "schema")) {
|
|
1657
1715
|
return;
|
|
1658
1716
|
}
|
|
1659
1717
|
validateMigrationDefinition(definition);
|
|
1660
1718
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerMigration definition", definition);
|
|
1661
|
-
|
|
1662
|
-
layer:
|
|
1663
|
-
name:
|
|
1719
|
+
this.#registrationRegistry.migrations.push(attachRuntimeDefinition({
|
|
1720
|
+
layer: this.#loadedExtension.layer,
|
|
1721
|
+
name: this.#loadedExtension.name,
|
|
1664
1722
|
definition: normalizeRegistrationRecord("registerMigration definition", definition),
|
|
1665
1723
|
}, runtimeDefinition));
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
assertExtensionCapability(
|
|
1669
|
-
if (!allowRegistration("schema.profiles", "registerProfile", "schema")) {
|
|
1724
|
+
}
|
|
1725
|
+
registerProfile(profile) {
|
|
1726
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerProfile");
|
|
1727
|
+
if (!this.allowRegistration("schema.profiles", "registerProfile", "schema")) {
|
|
1670
1728
|
return;
|
|
1671
1729
|
}
|
|
1672
1730
|
// Snapshot first, then validate and default the snapshot: cloning resolves
|
|
@@ -1676,13 +1734,13 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1676
1734
|
// only after validation, so an invalid type is rejected, not silently coerced.
|
|
1677
1735
|
const snapshot = cloneRuntimeRegistrationValue(profile);
|
|
1678
1736
|
validateProjectProfileDefinition(snapshot);
|
|
1679
|
-
|
|
1680
|
-
layer:
|
|
1681
|
-
name:
|
|
1737
|
+
this.#registrationRegistry.profiles.push({
|
|
1738
|
+
layer: this.#loadedExtension.layer,
|
|
1739
|
+
name: this.#loadedExtension.name,
|
|
1682
1740
|
profile: applyProjectProfileDefaults(snapshot),
|
|
1683
1741
|
});
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1742
|
+
}
|
|
1743
|
+
applyImportExportCommandMetadata(method, commandPath, options) {
|
|
1686
1744
|
if (options === undefined) {
|
|
1687
1745
|
return;
|
|
1688
1746
|
}
|
|
@@ -1697,23 +1755,23 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1697
1755
|
const failureHints = normalizeOptionalStringArrayField(`${method} options.failure_hints`, options.failure_hints);
|
|
1698
1756
|
const argumentsDefinition = normalizeCommandDefinitionArguments(options.arguments);
|
|
1699
1757
|
if (options.flags !== undefined) {
|
|
1700
|
-
assertExtensionCapability(
|
|
1758
|
+
assertExtensionCapability(this.#loadedExtension, "schema", `${method} options.flags`);
|
|
1701
1759
|
// Route metadata flags through the same surface-policy gate as registerFlags so
|
|
1702
1760
|
// enforce-mode policies blocking schema.flags are honored even when importers are allowed.
|
|
1703
|
-
if (allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
|
|
1761
|
+
if (this.allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
|
|
1704
1762
|
validateFlagDefinitions(options.flags);
|
|
1705
|
-
|
|
1706
|
-
layer:
|
|
1707
|
-
name:
|
|
1763
|
+
this.#registrationRegistry.flags.push({
|
|
1764
|
+
layer: this.#loadedExtension.layer,
|
|
1765
|
+
name: this.#loadedExtension.name,
|
|
1708
1766
|
target_command: commandPath,
|
|
1709
1767
|
flags: normalizeRegistrationRecordList(`${method} options.flags`, options.flags),
|
|
1710
1768
|
});
|
|
1711
1769
|
}
|
|
1712
1770
|
}
|
|
1713
1771
|
const registration = {
|
|
1714
|
-
layer:
|
|
1715
|
-
name:
|
|
1716
|
-
source_package:
|
|
1772
|
+
layer: this.#loadedExtension.layer,
|
|
1773
|
+
name: this.#loadedExtension.name,
|
|
1774
|
+
source_package: this.#loadedExtension.source_package,
|
|
1717
1775
|
command: commandPath,
|
|
1718
1776
|
action,
|
|
1719
1777
|
examples,
|
|
@@ -1728,11 +1786,11 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1728
1786
|
if (intent) {
|
|
1729
1787
|
registration.intent = intent;
|
|
1730
1788
|
}
|
|
1731
|
-
|
|
1732
|
-
}
|
|
1733
|
-
|
|
1734
|
-
assertExtensionCapability(
|
|
1735
|
-
if (!allowRegistration("importers.importer", "registerImporter", "importers")) {
|
|
1789
|
+
this.#registrationRegistry.commands.push(registration);
|
|
1790
|
+
}
|
|
1791
|
+
registerImporter(name, importer, options) {
|
|
1792
|
+
assertExtensionCapability(this.#loadedExtension, "importers", "registerImporter");
|
|
1793
|
+
if (!this.allowRegistration("importers.importer", "registerImporter", "importers")) {
|
|
1736
1794
|
return;
|
|
1737
1795
|
}
|
|
1738
1796
|
const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerImporter name", name));
|
|
@@ -1740,15 +1798,15 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1740
1798
|
const commandPath = toRegistrationCommandPath(normalizedName, "import");
|
|
1741
1799
|
// Validate and register optional command metadata before mutating the registry
|
|
1742
1800
|
// so an invalid options object leaves no partial importer registration.
|
|
1743
|
-
applyImportExportCommandMetadata("registerImporter", commandPath, options);
|
|
1744
|
-
|
|
1745
|
-
layer:
|
|
1746
|
-
name:
|
|
1801
|
+
this.applyImportExportCommandMetadata("registerImporter", commandPath, options);
|
|
1802
|
+
this.#registrationRegistry.importers.push({
|
|
1803
|
+
layer: this.#loadedExtension.layer,
|
|
1804
|
+
name: this.#loadedExtension.name,
|
|
1747
1805
|
importer: normalizedName,
|
|
1748
1806
|
});
|
|
1749
|
-
|
|
1750
|
-
layer:
|
|
1751
|
-
name:
|
|
1807
|
+
this.#commandRegistry.handlers.push({
|
|
1808
|
+
layer: this.#loadedExtension.layer,
|
|
1809
|
+
name: this.#loadedExtension.name,
|
|
1752
1810
|
command: commandPath,
|
|
1753
1811
|
run: async (context) => importer({
|
|
1754
1812
|
registration: normalizedName,
|
|
@@ -1760,10 +1818,10 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1760
1818
|
pm_root: context.pm_root,
|
|
1761
1819
|
}),
|
|
1762
1820
|
});
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1765
|
-
assertExtensionCapability(
|
|
1766
|
-
if (!allowRegistration("importers.exporter", "registerExporter", "importers")) {
|
|
1821
|
+
}
|
|
1822
|
+
registerExporter(name, exporter, options) {
|
|
1823
|
+
assertExtensionCapability(this.#loadedExtension, "importers", "registerExporter");
|
|
1824
|
+
if (!this.allowRegistration("importers.exporter", "registerExporter", "importers")) {
|
|
1767
1825
|
return;
|
|
1768
1826
|
}
|
|
1769
1827
|
const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerExporter name", name));
|
|
@@ -1771,15 +1829,15 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1771
1829
|
const commandPath = toRegistrationCommandPath(normalizedName, "export");
|
|
1772
1830
|
// Validate and register optional command metadata before mutating the registry
|
|
1773
1831
|
// so an invalid options object leaves no partial exporter registration.
|
|
1774
|
-
applyImportExportCommandMetadata("registerExporter", commandPath, options);
|
|
1775
|
-
|
|
1776
|
-
layer:
|
|
1777
|
-
name:
|
|
1832
|
+
this.applyImportExportCommandMetadata("registerExporter", commandPath, options);
|
|
1833
|
+
this.#registrationRegistry.exporters.push({
|
|
1834
|
+
layer: this.#loadedExtension.layer,
|
|
1835
|
+
name: this.#loadedExtension.name,
|
|
1778
1836
|
exporter: normalizedName,
|
|
1779
1837
|
});
|
|
1780
|
-
|
|
1781
|
-
layer:
|
|
1782
|
-
name:
|
|
1838
|
+
this.#commandRegistry.handlers.push({
|
|
1839
|
+
layer: this.#loadedExtension.layer,
|
|
1840
|
+
name: this.#loadedExtension.name,
|
|
1783
1841
|
command: commandPath,
|
|
1784
1842
|
run: async (context) => exporter({
|
|
1785
1843
|
registration: normalizedName,
|
|
@@ -1791,115 +1849,94 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
1791
1849
|
pm_root: context.pm_root,
|
|
1792
1850
|
}),
|
|
1793
1851
|
});
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
|
-
assertExtensionCapability(
|
|
1797
|
-
if (!allowRegistration("search.provider", "registerSearchProvider", "search")) {
|
|
1852
|
+
}
|
|
1853
|
+
registerSearchProvider(provider) {
|
|
1854
|
+
assertExtensionCapability(this.#loadedExtension, "search", "registerSearchProvider");
|
|
1855
|
+
if (!this.allowRegistration("search.provider", "registerSearchProvider", "search")) {
|
|
1798
1856
|
return;
|
|
1799
1857
|
}
|
|
1800
1858
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerSearchProvider provider", provider);
|
|
1801
|
-
|
|
1802
|
-
layer:
|
|
1803
|
-
name:
|
|
1859
|
+
this.#registrationRegistry.search_providers.push(attachRuntimeDefinition({
|
|
1860
|
+
layer: this.#loadedExtension.layer,
|
|
1861
|
+
name: this.#loadedExtension.name,
|
|
1804
1862
|
definition: normalizeRegistrationRecord("registerSearchProvider provider", provider),
|
|
1805
1863
|
}, runtimeDefinition));
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
assertExtensionCapability(
|
|
1809
|
-
if (!allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
|
|
1864
|
+
}
|
|
1865
|
+
registerVectorStoreAdapter(adapter) {
|
|
1866
|
+
assertExtensionCapability(this.#loadedExtension, "search", "registerVectorStoreAdapter");
|
|
1867
|
+
if (!this.allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
|
|
1810
1868
|
return;
|
|
1811
1869
|
}
|
|
1812
1870
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerVectorStoreAdapter adapter", adapter);
|
|
1813
|
-
|
|
1814
|
-
layer:
|
|
1815
|
-
name:
|
|
1871
|
+
this.#registrationRegistry.vector_store_adapters.push(attachRuntimeDefinition({
|
|
1872
|
+
layer: this.#loadedExtension.layer,
|
|
1873
|
+
name: this.#loadedExtension.name,
|
|
1816
1874
|
definition: normalizeRegistrationRecord("registerVectorStoreAdapter adapter", adapter),
|
|
1817
1875
|
}, runtimeDefinition));
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
assertExtensionCapability(
|
|
1821
|
-
if (!allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
|
|
1876
|
+
}
|
|
1877
|
+
registerBeforeCommand(hook) {
|
|
1878
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.beforeCommand");
|
|
1879
|
+
if (!this.allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
|
|
1822
1880
|
return;
|
|
1823
1881
|
}
|
|
1824
1882
|
assertHookHandler("beforeCommand", hook);
|
|
1825
|
-
|
|
1826
|
-
layer:
|
|
1827
|
-
name:
|
|
1883
|
+
this.#hookRegistry.beforeCommand.push({
|
|
1884
|
+
layer: this.#loadedExtension.layer,
|
|
1885
|
+
name: this.#loadedExtension.name,
|
|
1828
1886
|
run: hook,
|
|
1829
1887
|
});
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
assertExtensionCapability(
|
|
1833
|
-
if (!allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
|
|
1888
|
+
}
|
|
1889
|
+
registerAfterCommand(hook) {
|
|
1890
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.afterCommand");
|
|
1891
|
+
if (!this.allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
|
|
1834
1892
|
return;
|
|
1835
1893
|
}
|
|
1836
1894
|
assertHookHandler("afterCommand", hook);
|
|
1837
|
-
|
|
1838
|
-
layer:
|
|
1839
|
-
name:
|
|
1895
|
+
this.#hookRegistry.afterCommand.push({
|
|
1896
|
+
layer: this.#loadedExtension.layer,
|
|
1897
|
+
name: this.#loadedExtension.name,
|
|
1840
1898
|
run: hook,
|
|
1841
1899
|
});
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
assertExtensionCapability(
|
|
1845
|
-
if (!allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
|
|
1900
|
+
}
|
|
1901
|
+
registerOnWrite(hook) {
|
|
1902
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onWrite");
|
|
1903
|
+
if (!this.allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
|
|
1846
1904
|
return;
|
|
1847
1905
|
}
|
|
1848
1906
|
assertHookHandler("onWrite", hook);
|
|
1849
|
-
|
|
1850
|
-
layer:
|
|
1851
|
-
name:
|
|
1907
|
+
this.#hookRegistry.onWrite.push({
|
|
1908
|
+
layer: this.#loadedExtension.layer,
|
|
1909
|
+
name: this.#loadedExtension.name,
|
|
1852
1910
|
run: hook,
|
|
1853
1911
|
});
|
|
1854
|
-
}
|
|
1855
|
-
|
|
1856
|
-
assertExtensionCapability(
|
|
1857
|
-
if (!allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
|
|
1912
|
+
}
|
|
1913
|
+
registerOnRead(hook) {
|
|
1914
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onRead");
|
|
1915
|
+
if (!this.allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
|
|
1858
1916
|
return;
|
|
1859
1917
|
}
|
|
1860
1918
|
assertHookHandler("onRead", hook);
|
|
1861
|
-
|
|
1862
|
-
layer:
|
|
1863
|
-
name:
|
|
1919
|
+
this.#hookRegistry.onRead.push({
|
|
1920
|
+
layer: this.#loadedExtension.layer,
|
|
1921
|
+
name: this.#loadedExtension.name,
|
|
1864
1922
|
run: hook,
|
|
1865
1923
|
});
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
assertExtensionCapability(
|
|
1869
|
-
if (!allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
|
|
1924
|
+
}
|
|
1925
|
+
registerOnIndex(hook) {
|
|
1926
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onIndex");
|
|
1927
|
+
if (!this.allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
|
|
1870
1928
|
return;
|
|
1871
1929
|
}
|
|
1872
1930
|
assertHookHandler("onIndex", hook);
|
|
1873
|
-
|
|
1874
|
-
layer:
|
|
1875
|
-
name:
|
|
1931
|
+
this.#hookRegistry.onIndex.push({
|
|
1932
|
+
layer: this.#loadedExtension.layer,
|
|
1933
|
+
name: this.#loadedExtension.name,
|
|
1876
1934
|
run: hook,
|
|
1877
1935
|
});
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
registerParser,
|
|
1883
|
-
registerPreflight,
|
|
1884
|
-
registerService,
|
|
1885
|
-
registerFlags,
|
|
1886
|
-
registerItemFields,
|
|
1887
|
-
registerItemTypes,
|
|
1888
|
-
registerMigration,
|
|
1889
|
-
registerProfile,
|
|
1890
|
-
registerRenderer,
|
|
1891
|
-
registerImporter,
|
|
1892
|
-
registerExporter,
|
|
1893
|
-
registerSearchProvider,
|
|
1894
|
-
registerVectorStoreAdapter,
|
|
1895
|
-
hooks: {
|
|
1896
|
-
beforeCommand: registerBeforeCommand,
|
|
1897
|
-
afterCommand: registerAfterCommand,
|
|
1898
|
-
onWrite: registerOnWrite,
|
|
1899
|
-
onRead: registerOnRead,
|
|
1900
|
-
onIndex: registerOnIndex,
|
|
1901
|
-
},
|
|
1902
|
-
};
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
function createExtensionApi(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
|
|
1939
|
+
return new ExtensionApiRegistrar(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy);
|
|
1903
1940
|
}
|
|
1904
1941
|
function getRegistrationCounts(registrations) {
|
|
1905
1942
|
const commandCount = registrations.commands.length;
|
|
@@ -2133,4 +2170,4 @@ export const _testOnlyLoader = {
|
|
|
2133
2170
|
},
|
|
2134
2171
|
};
|
|
2135
2172
|
//# sourceMappingURL=loader.js.map
|
|
2136
|
-
//# debugId=
|
|
2173
|
+
//# debugId=b7735a57-30b2-58a3-9d53-6805e011fd12
|