@unbrained/pm-cli 2026.7.7 → 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 +18 -0
- 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.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/search.js +3 -3
- package/dist/cli/commands/search.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.js +3 -2
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-setup.js +8 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli-bundle/chunks/append-CDPAYYSB.js +11 -0
- package/dist/cli-bundle/chunks/{append-PVCTBVJG.js → append-RSPHC423.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-LCFJ7XAM.js → chunk-2BVD4ZD2.js} +267 -232
- package/dist/cli-bundle/chunks/chunk-2BVD4ZD2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-MHNMCDWR.js → chunk-2RADY7IB.js} +212 -38
- package/dist/cli-bundle/chunks/chunk-2RADY7IB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-S547WBYG.js → chunk-3FRNNVWY.js} +212 -38
- package/dist/cli-bundle/chunks/chunk-3FRNNVWY.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-H2SMKL2N.js → chunk-3FUXM574.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-DR2V5OIV.js → chunk-3SHDAKMF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-MRFWUSVA.js → chunk-3UXIMY62.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-WCWVEXGA.js → chunk-3V5C7PUH.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-43YSKY75.js → chunk-3YJDIJIE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-HX6QXV5P.js → chunk-4I7KS5ES.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XHCVAZGM.js → chunk-4OCWJ2AP.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-3TYOW6RR.js → chunk-5STY7NVM.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-7VQ3JJN5.js → chunk-5VAZHYVQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MCEUKJKW.js → chunk-6FU5BVRB.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-AJUON7E6.js → chunk-6RR4XM5H.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TEISGNSH.js → chunk-6TD5QGIB.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-565WYS5W.js → chunk-6WCXSC5V.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-NWWL22C7.js → chunk-6ZKDMEVT.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-VLEA2UTQ.js → chunk-7QKSLAHB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-S6VC2A2K.js → chunk-7TBUV7XS.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YPMZMKN7.js → chunk-7UCBLJDF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4MZOKTI2.js → chunk-AEOFBBWO.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TZLYO4PP.js → chunk-ASMRSIDX.js} +16 -16
- package/dist/cli-bundle/chunks/{chunk-ZO7CLOY2.js → chunk-BFNFTHWQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YNCFP5AR.js → chunk-BPJ5NYSJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P3MJJW7P.js → chunk-C3YU3TXX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SY75LYXR.js → chunk-C6XSTACC.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-2TILG6F2.js → chunk-CGDUIPJL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-J7BOLHAV.js → chunk-CXH7EMSB.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6G6O3OPQ.js → chunk-D63PEJTB.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-W5HXHC7C.js → chunk-D6J5673C.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js → chunk-DUBC6TI3.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-YPD7SQ5P.js → chunk-EEJKHF7M.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-EDO7VXSO.js → chunk-EP2CKDS7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-S5BNGFN5.js → chunk-EYPIUFWJ.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-SIM5JDON.js → chunk-F5DDGY6R.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-I74FMIWA.js → chunk-FFB3WITE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-43UQN754.js → chunk-FJR2S7S4.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-X47MKQXU.js → chunk-FL625JJM.js} +166 -64
- package/dist/cli-bundle/chunks/chunk-FL625JJM.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-CJQM7O7R.js → chunk-FOJEBRDD.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-XZWL7VNE.js → chunk-G4FKP4ID.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-Y5IKRUEM.js → chunk-GE44TQMC.js} +167 -65
- package/dist/cli-bundle/chunks/chunk-GE44TQMC.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-E3YQFSFE.js → chunk-GLMJLBLR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KTGJ2CBU.js → chunk-GO2X6ZRB.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js → chunk-GQOKFX2G.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-DDDWVPID.js → chunk-GSQVQINP.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-7ML7JONU.js → chunk-HI27UADG.js} +14 -14
- package/dist/cli-bundle/chunks/chunk-HI27UADG.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-VGO73OCK.js → chunk-HZZ3AC27.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7Y5N34HX.js → chunk-IINCZYM3.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GLS6VMWI.js → chunk-INOWVPUD.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-4IQKDKGE.js → chunk-IYRG5AEC.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-PDXJXEZJ.js → chunk-J6AD3GWC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-52NS7JDP.js → chunk-JH5XDDYS.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-GPIDUMMN.js → chunk-JYVPLGOW.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-EIUBK2LT.js → chunk-K52C6YPA.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-2LEJGRQ7.js → chunk-KFL3XHMA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-J2VGADNG.js → chunk-KMXVZ2P7.js} +16 -16
- package/dist/cli-bundle/chunks/{chunk-XS2TMNXR.js → chunk-LD2NBQ5T.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-II7R6KD4.js → chunk-LG4N6YOK.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-M62RO3XK.js → chunk-LHDHS4Z6.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-F6MT7KKE.js → chunk-MCH6IKK7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UO7XAZK6.js → chunk-MFLLULHU.js} +267 -232
- package/dist/cli-bundle/chunks/chunk-MFLLULHU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2APXX4TZ.js → chunk-ML27MHNM.js} +23 -7
- package/dist/cli-bundle/chunks/chunk-ML27MHNM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IDIBF4E2.js → chunk-MYHFZNBO.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-Y7KYVCZM.js → chunk-NGBWEYNY.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-RB3KLPAH.js → chunk-NRMDT4OV.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-GH73UOSJ.js → chunk-NTOOEVJ4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZNEG2UDO.js → chunk-P2WE5KCU.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-EMXPI36L.js → chunk-PAWPLIWW.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-AGAVEDIE.js → chunk-PCBZ2VJD.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-6XTSYPPO.js → chunk-PJPZTE7P.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-3X542TEY.js → chunk-Q3CFSOQZ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-4BKDAEDF.js → chunk-QJZM5WO5.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-HHEWQXPD.js → chunk-QLEH6FTQ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-D2DCTFTL.js → chunk-QYZMZD4L.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-F6YC2A6X.js → chunk-RDJXIAJB.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-6UQCNWFV.js → chunk-RFHLRMLQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-Q64AYQYW.js → chunk-RL24NAUX.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-C5ACVMOI.js → chunk-RLHQ3G4M.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-5FIQ4EX3.js → chunk-SCJPFQQT.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-42LXP4VO.js → chunk-SIQGG335.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-TNC6MZUD.js → chunk-SN5X5GTU.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-43SIHQND.js → chunk-TKWTJGD6.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-YCVWWIKY.js → chunk-TR2C6V5T.js} +25 -9
- package/dist/cli-bundle/chunks/chunk-TR2C6V5T.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FILL6BB2.js → chunk-TTCJCKUJ.js} +14 -14
- package/dist/cli-bundle/chunks/chunk-TTCJCKUJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-YTD5GICJ.js → chunk-TU5P744I.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-QFBSP3NI.js → chunk-TUDAYIO7.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-EOUVR7JN.js → chunk-U72GF3I2.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js → chunk-UCRYCT5M.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-FN6SB4HU.js → chunk-UEATYUZW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-V5ZWKJNY.js → chunk-UFNFHCAC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XBX5CBRQ.js → chunk-UH6VFRV6.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GTM5HQL4.js → chunk-UIHDZS6X.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-TGUK6XN6.js → chunk-UURYLDDC.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-6LCJRGPD.js → chunk-UVFJSKTF.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3G6UMXT3.js → chunk-W2VFNVSJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-DG6BSXZ7.js → chunk-WVEMZZCR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-RY7PTTUB.js → chunk-XN5BEN2B.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-XC3X7BQR.js → chunk-XPSGJ4IV.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js → chunk-YQEKE4FO.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-QDABF2RB.js → chunk-YR5R4FMQ.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-XPMXPR7K.js → chunk-YSRXFGNV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js → chunk-YUCKM3MD.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-N6ZHDLUY.js → chunk-YUMNZS3X.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TEKZOS7M.js → chunk-Z2JQH2MG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-E3LWJUGF.js → chunk-Z6RLSNUX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js → chunk-ZMOPZFVT.js} +4 -4
- package/dist/cli-bundle/chunks/close-E3RLZSP2.js +12 -0
- package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js → close-K6BFI3OX.js} +5 -5
- package/dist/cli-bundle/chunks/{close-many-D366FTIG.js → close-many-6NBL3PM4.js} +13 -13
- package/dist/cli-bundle/chunks/close-many-X4YKS3RO.js +22 -0
- package/dist/cli-bundle/chunks/{comments-54XDJNFE.js → comments-PLFK5ZKK.js} +7 -7
- 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-44RT5GDW.js → copy-VH3L4MN2.js} +4 -4
- package/dist/cli-bundle/chunks/create-AMBMYP6F.js +25 -0
- package/dist/cli-bundle/chunks/{create-4GWJWPXG.js → create-TRIBYORN.js} +9 -9
- package/dist/cli-bundle/chunks/delete-6KQHZYIP.js +10 -0
- package/dist/cli-bundle/chunks/{delete-YQ2VPXNF.js → delete-ZNXUNCZR.js} +4 -4
- package/dist/cli-bundle/chunks/{deps-FMANWFRP.js → deps-CVDY7FFK.js} +4 -4
- package/dist/cli-bundle/chunks/{deps-BU5EBJDU.js → deps-SZXQHV73.js} +4 -4
- package/dist/cli-bundle/chunks/{docs-OQBSJNIA.js → docs-DR74ITCD.js} +6 -6
- package/dist/cli-bundle/chunks/docs-WCVYY6I7.js +14 -0
- package/dist/cli-bundle/chunks/{files-72HZEBOE.js → files-H5YCA74Z.js} +6 -6
- package/dist/cli-bundle/chunks/{files-HTSB2KJG.js → files-QEFQ2M3H.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-FOG4ALC2.js → focus-55TRYSNA.js} +5 -5
- 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-M6IFAMBP.js → history-compact-JJZ4EFL3.js} +9 -9
- package/dist/cli-bundle/chunks/history-redact-4GJOLXCM.js +17 -0
- package/dist/cli-bundle/chunks/{history-redact-NQX3OGZP.js → history-redact-TPPUT3A5.js} +7 -7
- package/dist/cli-bundle/chunks/history-repair-HVCVCGUF.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-NHOJG7WO.js → history-repair-J7PIZ6ZP.js} +9 -9
- package/dist/cli-bundle/chunks/{learnings-T63JGKKN.js → learnings-KB6BT4NR.js} +7 -7
- 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-U7L6HQQ2.js → notes-ZTHXVOKM.js} +7 -7
- package/dist/cli-bundle/chunks/{plan-TN537L24.js → plan-CJPKFRBK.js} +10 -10
- package/dist/cli-bundle/chunks/plan-MK2QY3GA.js +24 -0
- package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js → profile-AQNHXOYA.js} +9 -9
- package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js → profile-HTBFINKQ.js} +9 -9
- package/dist/cli-bundle/chunks/{register-list-query-ZCRABAPN.js → register-list-query-EEF33SUJ.js} +16 -15
- package/dist/cli-bundle/chunks/{register-list-query-ZCRABAPN.js.map → register-list-query-EEF33SUJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-list-query-OHXD7G5N.js → register-list-query-S4FBWIWN.js} +15 -14
- package/dist/cli-bundle/chunks/{register-list-query-OHXD7G5N.js.map → register-list-query-S4FBWIWN.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js → register-mutation-L5Q7AUDN.js} +29 -29
- package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js → register-mutation-QFLRBCI7.js} +29 -29
- package/dist/cli-bundle/chunks/{register-operations-V6PIYEDU.js → register-operations-HDE4FVW4.js} +26 -26
- package/dist/cli-bundle/chunks/{register-operations-V6VKTG54.js → register-operations-QDU43FCG.js} +26 -26
- package/dist/cli-bundle/chunks/{register-setup-6YVUSQYD.js → register-setup-EGMTAXDC.js} +21 -19
- package/dist/cli-bundle/chunks/register-setup-EGMTAXDC.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-6RVAWT6W.js → register-setup-PNIO3L2P.js} +20 -18
- package/dist/cli-bundle/chunks/register-setup-PNIO3L2P.js.map +7 -0
- package/dist/cli-bundle/chunks/{restore-HC3YSWF7.js → restore-BTBEZ5CK.js} +7 -7
- package/dist/cli-bundle/chunks/restore-EX4UUZL6.js +15 -0
- package/dist/cli-bundle/chunks/{schema-DAGSYO6E.js → schema-DGSTYYQB.js} +6 -6
- package/dist/cli-bundle/chunks/{schema-UBXJCQAC.js → schema-HAIBEE24.js} +6 -6
- package/dist/cli-bundle/chunks/{update-LKD64AFP.js → update-MP4XLU56.js} +12 -12
- 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 +39 -13
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/cli-bundle/sdk-runtime.js +85 -53
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +87 -55
- 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/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 +7 -3
- 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 +7 -3
- 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 +132 -1
- package/dist/sdk/runtime.js +200 -2
- package/dist/sdk/runtime.js.map +1 -1
- package/docs/EXTENSIONS.md +7 -20
- package/docs/RELEASING.md +6 -0
- package/docs/SDK.md +30 -0
- package/package.json +2 -1
- package/dist/cli-bundle/chunks/append-F7WPGIQL.js +0 -11
- package/dist/cli-bundle/chunks/chunk-2APXX4TZ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7ML7JONU.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-FILL6BB2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-LCFJ7XAM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MHNMCDWR.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-S547WBYG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UO7XAZK6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-X47MKQXU.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Y5IKRUEM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-YCVWWIKY.js.map +0 -7
- package/dist/cli-bundle/chunks/close-Z3Q4U7TS.js +0 -12
- package/dist/cli-bundle/chunks/close-many-3L2RXH3M.js +0 -22
- package/dist/cli-bundle/chunks/comments-HGHC2PN6.js +0 -13
- package/dist/cli-bundle/chunks/copy-UGMUGHZA.js +0 -9
- package/dist/cli-bundle/chunks/create-AZXCUYKP.js +0 -25
- package/dist/cli-bundle/chunks/delete-Y6SXIQ4X.js +0 -10
- package/dist/cli-bundle/chunks/docs-VNPBZXEL.js +0 -14
- package/dist/cli-bundle/chunks/focus-SUTMKXGX.js +0 -10
- package/dist/cli-bundle/chunks/history-compact-NEXRPP2O.js +0 -21
- package/dist/cli-bundle/chunks/history-redact-WQJBZ3PX.js +0 -17
- package/dist/cli-bundle/chunks/history-repair-CBHMHAJO.js +0 -19
- package/dist/cli-bundle/chunks/learnings-M64NTSOR.js +0 -13
- package/dist/cli-bundle/chunks/notes-73WE2UV2.js +0 -13
- package/dist/cli-bundle/chunks/plan-OSCNYFGC.js +0 -24
- package/dist/cli-bundle/chunks/register-setup-6RVAWT6W.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-6YVUSQYD.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-LFAMMRYZ.js +0 -15
- package/dist/cli-bundle/chunks/update-CJGG5WMV.js +0 -21
- package/dist/cli-bundle/chunks/update-many-G4SM7BHC.js +0 -31
- package/dist/cli-bundle/chunks/update-many-VLIV3D7R.js +0 -35
- /package/dist/cli-bundle/chunks/{append-F7WPGIQL.js.map → append-CDPAYYSB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-PVCTBVJG.js.map → append-RSPHC423.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H2SMKL2N.js.map → chunk-3FUXM574.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DR2V5OIV.js.map → chunk-3SHDAKMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MRFWUSVA.js.map → chunk-3UXIMY62.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WCWVEXGA.js.map → chunk-3V5C7PUH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-43YSKY75.js.map → chunk-3YJDIJIE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HX6QXV5P.js.map → chunk-4I7KS5ES.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XHCVAZGM.js.map → chunk-4OCWJ2AP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3TYOW6RR.js.map → chunk-5STY7NVM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7VQ3JJN5.js.map → chunk-5VAZHYVQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MCEUKJKW.js.map → chunk-6FU5BVRB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AJUON7E6.js.map → chunk-6RR4XM5H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TEISGNSH.js.map → chunk-6TD5QGIB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-565WYS5W.js.map → chunk-6WCXSC5V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NWWL22C7.js.map → chunk-6ZKDMEVT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VLEA2UTQ.js.map → chunk-7QKSLAHB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S6VC2A2K.js.map → chunk-7TBUV7XS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YPMZMKN7.js.map → chunk-7UCBLJDF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4MZOKTI2.js.map → chunk-AEOFBBWO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TZLYO4PP.js.map → chunk-ASMRSIDX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZO7CLOY2.js.map → chunk-BFNFTHWQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YNCFP5AR.js.map → chunk-BPJ5NYSJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P3MJJW7P.js.map → chunk-C3YU3TXX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SY75LYXR.js.map → chunk-C6XSTACC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2TILG6F2.js.map → chunk-CGDUIPJL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-J7BOLHAV.js.map → chunk-CXH7EMSB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6G6O3OPQ.js.map → chunk-D63PEJTB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W5HXHC7C.js.map → chunk-D6J5673C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js.map → chunk-DUBC6TI3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YPD7SQ5P.js.map → chunk-EEJKHF7M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EDO7VXSO.js.map → chunk-EP2CKDS7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S5BNGFN5.js.map → chunk-EYPIUFWJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SIM5JDON.js.map → chunk-F5DDGY6R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I74FMIWA.js.map → chunk-FFB3WITE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-43UQN754.js.map → chunk-FJR2S7S4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CJQM7O7R.js.map → chunk-FOJEBRDD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XZWL7VNE.js.map → chunk-G4FKP4ID.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-E3YQFSFE.js.map → chunk-GLMJLBLR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KTGJ2CBU.js.map → chunk-GO2X6ZRB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js.map → chunk-GQOKFX2G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DDDWVPID.js.map → chunk-GSQVQINP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VGO73OCK.js.map → chunk-HZZ3AC27.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7Y5N34HX.js.map → chunk-IINCZYM3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GLS6VMWI.js.map → chunk-INOWVPUD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4IQKDKGE.js.map → chunk-IYRG5AEC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PDXJXEZJ.js.map → chunk-J6AD3GWC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-52NS7JDP.js.map → chunk-JH5XDDYS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GPIDUMMN.js.map → chunk-JYVPLGOW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EIUBK2LT.js.map → chunk-K52C6YPA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2LEJGRQ7.js.map → chunk-KFL3XHMA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-J2VGADNG.js.map → chunk-KMXVZ2P7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XS2TMNXR.js.map → chunk-LD2NBQ5T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-II7R6KD4.js.map → chunk-LG4N6YOK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-M62RO3XK.js.map → chunk-LHDHS4Z6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F6MT7KKE.js.map → chunk-MCH6IKK7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IDIBF4E2.js.map → chunk-MYHFZNBO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y7KYVCZM.js.map → chunk-NGBWEYNY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RB3KLPAH.js.map → chunk-NRMDT4OV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GH73UOSJ.js.map → chunk-NTOOEVJ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNEG2UDO.js.map → chunk-P2WE5KCU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EMXPI36L.js.map → chunk-PAWPLIWW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AGAVEDIE.js.map → chunk-PCBZ2VJD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6XTSYPPO.js.map → chunk-PJPZTE7P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3X542TEY.js.map → chunk-Q3CFSOQZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4BKDAEDF.js.map → chunk-QJZM5WO5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HHEWQXPD.js.map → chunk-QLEH6FTQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D2DCTFTL.js.map → chunk-QYZMZD4L.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F6YC2A6X.js.map → chunk-RDJXIAJB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6UQCNWFV.js.map → chunk-RFHLRMLQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q64AYQYW.js.map → chunk-RL24NAUX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C5ACVMOI.js.map → chunk-RLHQ3G4M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5FIQ4EX3.js.map → chunk-SCJPFQQT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-42LXP4VO.js.map → chunk-SIQGG335.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TNC6MZUD.js.map → chunk-SN5X5GTU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-43SIHQND.js.map → chunk-TKWTJGD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YTD5GICJ.js.map → chunk-TU5P744I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QFBSP3NI.js.map → chunk-TUDAYIO7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EOUVR7JN.js.map → chunk-U72GF3I2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js.map → chunk-UCRYCT5M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FN6SB4HU.js.map → chunk-UEATYUZW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-V5ZWKJNY.js.map → chunk-UFNFHCAC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XBX5CBRQ.js.map → chunk-UH6VFRV6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GTM5HQL4.js.map → chunk-UIHDZS6X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TGUK6XN6.js.map → chunk-UURYLDDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6LCJRGPD.js.map → chunk-UVFJSKTF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3G6UMXT3.js.map → chunk-W2VFNVSJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DG6BSXZ7.js.map → chunk-WVEMZZCR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RY7PTTUB.js.map → chunk-XN5BEN2B.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XC3X7BQR.js.map → chunk-XPSGJ4IV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js.map → chunk-YQEKE4FO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QDABF2RB.js.map → chunk-YR5R4FMQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XPMXPR7K.js.map → chunk-YSRXFGNV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js.map → chunk-YUCKM3MD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N6ZHDLUY.js.map → chunk-YUMNZS3X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TEKZOS7M.js.map → chunk-Z2JQH2MG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-E3LWJUGF.js.map → chunk-Z6RLSNUX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js.map → chunk-ZMOPZFVT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-Z3Q4U7TS.js.map → close-E3RLZSP2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js.map → close-K6BFI3OX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-D366FTIG.js.map → close-many-6NBL3PM4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-3L2RXH3M.js.map → close-many-X4YKS3RO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-54XDJNFE.js.map → comments-PLFK5ZKK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-HGHC2PN6.js.map → comments-ZNOD5PTV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-UGMUGHZA.js.map → copy-F7BUFY4J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-44RT5GDW.js.map → copy-VH3L4MN2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-AZXCUYKP.js.map → create-AMBMYP6F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-4GWJWPXG.js.map → create-TRIBYORN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-Y6SXIQ4X.js.map → delete-6KQHZYIP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-YQ2VPXNF.js.map → delete-ZNXUNCZR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-FMANWFRP.js.map → deps-CVDY7FFK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-BU5EBJDU.js.map → deps-SZXQHV73.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-OQBSJNIA.js.map → docs-DR74ITCD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-VNPBZXEL.js.map → docs-WCVYY6I7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-72HZEBOE.js.map → files-H5YCA74Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-HTSB2KJG.js.map → files-QEFQ2M3H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-FOG4ALC2.js.map → focus-55TRYSNA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-SUTMKXGX.js.map → focus-N2QGNS5D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-NEXRPP2O.js.map → history-compact-GWQ4UOEI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-M6IFAMBP.js.map → history-compact-JJZ4EFL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-WQJBZ3PX.js.map → history-redact-4GJOLXCM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-NQX3OGZP.js.map → history-redact-TPPUT3A5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-CBHMHAJO.js.map → history-repair-HVCVCGUF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-NHOJG7WO.js.map → history-repair-J7PIZ6ZP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-T63JGKKN.js.map → learnings-KB6BT4NR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-M64NTSOR.js.map → learnings-YYY3U2Y7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-73WE2UV2.js.map → notes-BGG7VL72.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-U7L6HQQ2.js.map → notes-ZTHXVOKM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-TN537L24.js.map → plan-CJPKFRBK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-OSCNYFGC.js.map → plan-MK2QY3GA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js.map → profile-AQNHXOYA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js.map → profile-HTBFINKQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js.map → register-mutation-L5Q7AUDN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js.map → register-mutation-QFLRBCI7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-V6PIYEDU.js.map → register-operations-HDE4FVW4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-V6VKTG54.js.map → register-operations-QDU43FCG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-HC3YSWF7.js.map → restore-BTBEZ5CK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-LFAMMRYZ.js.map → restore-EX4UUZL6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-DAGSYO6E.js.map → schema-DGSTYYQB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-UBXJCQAC.js.map → schema-HAIBEE24.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-LKD64AFP.js.map → update-MP4XLU56.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-CJGG5WMV.js.map → update-SDIRJGSY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-G4SM7BHC.js.map → update-many-34AIU6W7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-VLIV3D7R.js.map → update-many-JUPCNOKV.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// dist/core/fs/fs-utils.js
|
|
2
2
|
|
|
3
|
-
!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]="
|
|
3
|
+
!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]="e9729333-6db5-59ee-8259-e1cba10d635f")}catch(e){}}();
|
|
4
4
|
import * as fs from "node:fs/promises";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import crypto from "node:crypto";
|
|
@@ -3277,6 +3277,9 @@ async function scanExtensionLayer(layer, extensionsRoot, enabled, disabled, pmMa
|
|
|
3277
3277
|
}
|
|
3278
3278
|
return { diagnostics, warnings, candidates };
|
|
3279
3279
|
}
|
|
3280
|
+
function emptyExtensionLayerScan() {
|
|
3281
|
+
return { diagnostics: [], warnings: [], candidates: [] };
|
|
3282
|
+
}
|
|
3280
3283
|
function buildUnavailableExtensionScan(layer, directory, manifestPath, warning) {
|
|
3281
3284
|
return {
|
|
3282
3285
|
diagnostic: {
|
|
@@ -3386,7 +3389,7 @@ async function discoverExtensions(options) {
|
|
|
3386
3389
|
}
|
|
3387
3390
|
const enabled = new Set(configured_enabled);
|
|
3388
3391
|
const disabled = new Set(configured_disabled);
|
|
3389
|
-
const globalScan = await scanExtensionLayer("global", roots.global, enabled, disabled, policy.pmMaxVersionExceededMode.global);
|
|
3392
|
+
const globalScan = options.ignoreGlobalExtensions === true ? emptyExtensionLayerScan() : await scanExtensionLayer("global", roots.global, enabled, disabled, policy.pmMaxVersionExceededMode.global);
|
|
3390
3393
|
const projectScan = await scanExtensionLayer("project", roots.project, enabled, disabled, policy.pmMaxVersionExceededMode.project);
|
|
3391
3394
|
const policyWarnings = [...policy.warnings];
|
|
3392
3395
|
const effectiveCandidates = buildEffectiveExtensions(globalScan.candidates, projectScan.candidates);
|
|
@@ -4109,8 +4112,8 @@ function assertExtensionCapability(extension, capability, method) {
|
|
|
4109
4112
|
});
|
|
4110
4113
|
}
|
|
4111
4114
|
}
|
|
4112
|
-
function
|
|
4113
|
-
|
|
4115
|
+
function buildExtensionSelfIdentity(extension) {
|
|
4116
|
+
return Object.freeze({
|
|
4114
4117
|
name: extension.name,
|
|
4115
4118
|
layer: extension.layer,
|
|
4116
4119
|
version: extension.version,
|
|
@@ -4119,7 +4122,9 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4119
4122
|
pm_max_version: extension.pm_max_version,
|
|
4120
4123
|
source_package: extension.source_package
|
|
4121
4124
|
});
|
|
4122
|
-
|
|
4125
|
+
}
|
|
4126
|
+
function buildPolicyExtensionRef(extension) {
|
|
4127
|
+
return {
|
|
4123
4128
|
layer: extension.layer,
|
|
4124
4129
|
name: extension.name,
|
|
4125
4130
|
trusted: extension.trusted === true,
|
|
@@ -4134,65 +4139,114 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4134
4139
|
process_spawn: extension.permissions.process_spawn
|
|
4135
4140
|
} : void 0
|
|
4136
4141
|
};
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4142
|
+
}
|
|
4143
|
+
var ExtensionApiRegistrar = class {
|
|
4144
|
+
extension;
|
|
4145
|
+
hooks;
|
|
4146
|
+
#loadedExtension;
|
|
4147
|
+
#extensionRef;
|
|
4148
|
+
#hookRegistry;
|
|
4149
|
+
#commandRegistry;
|
|
4150
|
+
#parserRegistry;
|
|
4151
|
+
#preflightRegistry;
|
|
4152
|
+
#serviceRegistry;
|
|
4153
|
+
#rendererRegistry;
|
|
4154
|
+
#registrationRegistry;
|
|
4155
|
+
#activationWarnings;
|
|
4156
|
+
#policy;
|
|
4157
|
+
constructor(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
|
|
4158
|
+
this.#loadedExtension = extension;
|
|
4159
|
+
this.extension = buildExtensionSelfIdentity(extension);
|
|
4160
|
+
this.#extensionRef = buildPolicyExtensionRef(extension);
|
|
4161
|
+
this.#hookRegistry = hooks;
|
|
4162
|
+
this.#commandRegistry = commands;
|
|
4163
|
+
this.#parserRegistry = parsers;
|
|
4164
|
+
this.#preflightRegistry = preflight;
|
|
4165
|
+
this.#serviceRegistry = services;
|
|
4166
|
+
this.#rendererRegistry = renderers;
|
|
4167
|
+
this.#registrationRegistry = registrations;
|
|
4168
|
+
this.#activationWarnings = activationWarnings;
|
|
4169
|
+
this.#policy = policy;
|
|
4170
|
+
this.registerCommand = this.registerCommand.bind(this);
|
|
4171
|
+
this.registerParser = this.registerParser.bind(this);
|
|
4172
|
+
this.registerPreflight = this.registerPreflight.bind(this);
|
|
4173
|
+
this.registerService = this.registerService.bind(this);
|
|
4174
|
+
this.registerFlags = this.registerFlags.bind(this);
|
|
4175
|
+
this.registerItemFields = this.registerItemFields.bind(this);
|
|
4176
|
+
this.registerItemTypes = this.registerItemTypes.bind(this);
|
|
4177
|
+
this.registerMigration = this.registerMigration.bind(this);
|
|
4178
|
+
this.registerProfile = this.registerProfile.bind(this);
|
|
4179
|
+
this.registerRenderer = this.registerRenderer.bind(this);
|
|
4180
|
+
this.registerImporter = this.registerImporter.bind(this);
|
|
4181
|
+
this.registerExporter = this.registerExporter.bind(this);
|
|
4182
|
+
this.registerSearchProvider = this.registerSearchProvider.bind(this);
|
|
4183
|
+
this.registerVectorStoreAdapter = this.registerVectorStoreAdapter.bind(this);
|
|
4184
|
+
this.hooks = {
|
|
4185
|
+
beforeCommand: (hook) => this.registerBeforeCommand(hook),
|
|
4186
|
+
afterCommand: (hook) => this.registerAfterCommand(hook),
|
|
4187
|
+
onWrite: (hook) => this.registerOnWrite(hook),
|
|
4188
|
+
onRead: (hook) => this.registerOnRead(hook),
|
|
4189
|
+
onIndex: (hook) => this.registerOnIndex(hook)
|
|
4190
|
+
};
|
|
4191
|
+
}
|
|
4192
|
+
allowRegistration(surface, method, capability, details) {
|
|
4193
|
+
const decision = evaluateExtensionPolicyForRegistration(this.#policy, this.#extensionRef, surface, method, capability, details);
|
|
4194
|
+
if (decision.warning) {
|
|
4195
|
+
this.#activationWarnings.push(decision.warning);
|
|
4140
4196
|
}
|
|
4141
|
-
};
|
|
4142
|
-
const allowRegistration = (surface, method, capability, details) => {
|
|
4143
|
-
const decision = evaluateExtensionPolicyForRegistration(policy, extensionRef, surface, method, capability, details);
|
|
4144
|
-
pushPolicyWarning(decision.warning);
|
|
4145
4197
|
return decision.allowed;
|
|
4146
|
-
}
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4198
|
+
}
|
|
4199
|
+
registerCommandTrace(mode, command, expectedSchema, received, hint) {
|
|
4200
|
+
return {
|
|
4201
|
+
method: "registerCommand",
|
|
4202
|
+
registration_index: mode === "override" ? this.#commandRegistry.overrides.length : this.#commandRegistry.handlers.length,
|
|
4203
|
+
command,
|
|
4204
|
+
expected_schema: expectedSchema,
|
|
4205
|
+
received: sanitizeRegistrationValue(received),
|
|
4206
|
+
hint
|
|
4207
|
+
};
|
|
4208
|
+
}
|
|
4209
|
+
registerCommandOverride(command, override) {
|
|
4156
4210
|
const normalizedCommand = normalizeCommandName(command);
|
|
4157
4211
|
if (normalizedCommand.length === 0) {
|
|
4158
|
-
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."));
|
|
4212
|
+
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."));
|
|
4159
4213
|
}
|
|
4160
4214
|
if (typeof override !== "function") {
|
|
4161
|
-
const trace = registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)',
|
|
4215
|
+
const trace = this.registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)', override, "Provide a function as the second registerCommand argument.");
|
|
4162
4216
|
throw createRegistrationValidationError(`registerCommand requires an override function when command name is provided (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
|
|
4163
4217
|
}
|
|
4164
|
-
if (!allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
|
|
4218
|
+
if (!this.allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
|
|
4165
4219
|
return;
|
|
4166
4220
|
}
|
|
4167
|
-
|
|
4168
|
-
layer:
|
|
4169
|
-
name:
|
|
4221
|
+
this.#commandRegistry.overrides.push({
|
|
4222
|
+
layer: this.#loadedExtension.layer,
|
|
4223
|
+
name: this.#loadedExtension.name,
|
|
4170
4224
|
command: normalizedCommand,
|
|
4171
4225
|
run: override
|
|
4172
4226
|
});
|
|
4173
|
-
}
|
|
4174
|
-
|
|
4227
|
+
}
|
|
4228
|
+
resolveCommandDefinitionRunHandler(definition, normalizedCommand) {
|
|
4175
4229
|
const runHandler = typeof definition.run === "function" ? definition.run : void 0;
|
|
4176
4230
|
const legacyHandler = typeof definition.handler === "function" ? definition.handler : void 0;
|
|
4177
4231
|
if (!runHandler && legacyHandler) {
|
|
4178
|
-
activationWarnings.push(`extension_command_definition_legacy_handler_alias:${
|
|
4232
|
+
this.#activationWarnings.push(`extension_command_definition_legacy_handler_alias:${this.#loadedExtension.layer}:${this.#loadedExtension.name}:${normalizedCommand}`);
|
|
4179
4233
|
}
|
|
4180
4234
|
return runHandler ?? legacyHandler;
|
|
4181
|
-
}
|
|
4182
|
-
|
|
4235
|
+
}
|
|
4236
|
+
registerCommandDefinition(definition) {
|
|
4183
4237
|
if (typeof definition !== "object" || definition === null) {
|
|
4184
|
-
throw createRegistrationValidationError("registerCommand requires a command definition object", registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, 'Use registerCommand({ name: "command path", run: (context) => ... }).'));
|
|
4238
|
+
throw createRegistrationValidationError("registerCommand requires a command definition object", this.registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, 'Use registerCommand({ name: "command path", run: (context) => ... }).'));
|
|
4185
4239
|
}
|
|
4186
4240
|
if (typeof definition.name !== "string") {
|
|
4187
|
-
throw createRegistrationValidationError("registerCommand requires a command definition name", registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, "Set command definition.name to a non-empty string command path."));
|
|
4241
|
+
throw createRegistrationValidationError("registerCommand requires a command definition name", this.registerCommandTrace("definition", void 0, "{ name: string; run: (context) => unknown; }", definition, "Set command definition.name to a non-empty string command path."));
|
|
4188
4242
|
}
|
|
4189
4243
|
const normalizedCommand = normalizeCommandName(definition.name);
|
|
4190
4244
|
if (normalizedCommand.length === 0) {
|
|
4191
|
-
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."));
|
|
4245
|
+
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."));
|
|
4192
4246
|
}
|
|
4193
|
-
const resolvedHandler = resolveCommandDefinitionRunHandler(definition, normalizedCommand);
|
|
4247
|
+
const resolvedHandler = this.resolveCommandDefinitionRunHandler(definition, normalizedCommand);
|
|
4194
4248
|
if (typeof resolvedHandler !== "function") {
|
|
4195
|
-
const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }",
|
|
4249
|
+
const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }", resolvedHandler, "Define command definition.run as a function.");
|
|
4196
4250
|
throw createRegistrationValidationError(`registerCommand requires a command definition run handler (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
|
|
4197
4251
|
}
|
|
4198
4252
|
try {
|
|
@@ -4200,7 +4254,7 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4200
4254
|
assertOptionalStringField("registerCommand definition.description", definition.description);
|
|
4201
4255
|
assertOptionalStringField("registerCommand definition.intent", definition.intent);
|
|
4202
4256
|
const action = resolveCommandDefinitionAction(normalizedCommand, definition.action);
|
|
4203
|
-
if (!allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
|
|
4257
|
+
if (!this.allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
|
|
4204
4258
|
return;
|
|
4205
4259
|
}
|
|
4206
4260
|
const description = definition.description?.trim();
|
|
@@ -4209,19 +4263,21 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4209
4263
|
const failureHints = normalizeOptionalStringArrayField("registerCommand definition.failure_hints", definition.failure_hints);
|
|
4210
4264
|
const argumentsDefinition = normalizeCommandDefinitionArguments(definition.arguments);
|
|
4211
4265
|
if (definition.flags !== void 0) {
|
|
4212
|
-
assertExtensionCapability(
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4266
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerCommand flags");
|
|
4267
|
+
if (this.allowRegistration("schema.flags", "registerCommand flags", "schema")) {
|
|
4268
|
+
validateFlagDefinitions(definition.flags);
|
|
4269
|
+
this.#registrationRegistry.flags.push({
|
|
4270
|
+
layer: this.#loadedExtension.layer,
|
|
4271
|
+
name: this.#loadedExtension.name,
|
|
4272
|
+
target_command: normalizedCommand,
|
|
4273
|
+
flags: normalizeRegistrationRecordList("registerCommand definition.flags", definition.flags)
|
|
4274
|
+
});
|
|
4275
|
+
}
|
|
4220
4276
|
}
|
|
4221
4277
|
const registration = {
|
|
4222
|
-
layer:
|
|
4223
|
-
name:
|
|
4224
|
-
source_package:
|
|
4278
|
+
layer: this.#loadedExtension.layer,
|
|
4279
|
+
name: this.#loadedExtension.name,
|
|
4280
|
+
source_package: this.#loadedExtension.source_package,
|
|
4225
4281
|
command: normalizedCommand,
|
|
4226
4282
|
action,
|
|
4227
4283
|
examples,
|
|
@@ -4234,73 +4290,73 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4234
4290
|
if (intent) {
|
|
4235
4291
|
registration.intent = intent;
|
|
4236
4292
|
}
|
|
4237
|
-
|
|
4293
|
+
this.#registrationRegistry.commands.push(registration);
|
|
4238
4294
|
} catch (error) {
|
|
4239
4295
|
const reason = formatUnknownError(error);
|
|
4240
|
-
const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition,
|
|
4296
|
+
const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition, reason);
|
|
4241
4297
|
throw createRegistrationValidationError(`registerCommand definition metadata invalid (command="${normalizedCommand}", registration_index=${trace.registration_index}): ${reason}`, trace);
|
|
4242
4298
|
}
|
|
4243
|
-
|
|
4244
|
-
layer:
|
|
4245
|
-
name:
|
|
4299
|
+
this.#commandRegistry.handlers.push({
|
|
4300
|
+
layer: this.#loadedExtension.layer,
|
|
4301
|
+
name: this.#loadedExtension.name,
|
|
4246
4302
|
command: normalizedCommand,
|
|
4247
4303
|
run: resolvedHandler
|
|
4248
4304
|
});
|
|
4249
|
-
}
|
|
4250
|
-
|
|
4251
|
-
assertExtensionCapability(
|
|
4305
|
+
}
|
|
4306
|
+
registerCommand(commandOrDefinition, override) {
|
|
4307
|
+
assertExtensionCapability(this.#loadedExtension, "commands", "registerCommand");
|
|
4252
4308
|
if (typeof commandOrDefinition === "string") {
|
|
4253
|
-
registerCommandOverride(commandOrDefinition, override);
|
|
4309
|
+
this.registerCommandOverride(commandOrDefinition, override);
|
|
4254
4310
|
return;
|
|
4255
4311
|
}
|
|
4256
|
-
registerCommandDefinition(commandOrDefinition);
|
|
4257
|
-
}
|
|
4258
|
-
|
|
4259
|
-
assertExtensionCapability(
|
|
4260
|
-
if (!allowRegistration("parser.override", "registerParser", "parser")) {
|
|
4312
|
+
this.registerCommandDefinition(commandOrDefinition);
|
|
4313
|
+
}
|
|
4314
|
+
registerParser(command, override) {
|
|
4315
|
+
assertExtensionCapability(this.#loadedExtension, "parser", "registerParser");
|
|
4316
|
+
if (!this.allowRegistration("parser.override", "registerParser", "parser")) {
|
|
4261
4317
|
return;
|
|
4262
4318
|
}
|
|
4263
4319
|
const normalizedCommand = normalizeCommandName(assertNonEmptyString("registerParser command", command));
|
|
4264
4320
|
assertFunctionHandler("registerParser override", override);
|
|
4265
|
-
|
|
4266
|
-
layer:
|
|
4267
|
-
name:
|
|
4321
|
+
this.#parserRegistry.overrides.push({
|
|
4322
|
+
layer: this.#loadedExtension.layer,
|
|
4323
|
+
name: this.#loadedExtension.name,
|
|
4268
4324
|
command: normalizedCommand,
|
|
4269
4325
|
run: override
|
|
4270
4326
|
});
|
|
4271
|
-
}
|
|
4272
|
-
|
|
4273
|
-
assertExtensionCapability(
|
|
4274
|
-
if (!allowRegistration("preflight.override", "registerPreflight", "preflight")) {
|
|
4327
|
+
}
|
|
4328
|
+
registerPreflight(override) {
|
|
4329
|
+
assertExtensionCapability(this.#loadedExtension, "preflight", "registerPreflight");
|
|
4330
|
+
if (!this.allowRegistration("preflight.override", "registerPreflight", "preflight")) {
|
|
4275
4331
|
return;
|
|
4276
4332
|
}
|
|
4277
4333
|
assertFunctionHandler("registerPreflight override", override);
|
|
4278
|
-
|
|
4279
|
-
layer:
|
|
4280
|
-
name:
|
|
4334
|
+
this.#preflightRegistry.overrides.push({
|
|
4335
|
+
layer: this.#loadedExtension.layer,
|
|
4336
|
+
name: this.#loadedExtension.name,
|
|
4281
4337
|
run: override
|
|
4282
4338
|
});
|
|
4283
|
-
}
|
|
4284
|
-
|
|
4285
|
-
assertExtensionCapability(
|
|
4339
|
+
}
|
|
4340
|
+
registerService(service, override) {
|
|
4341
|
+
assertExtensionCapability(this.#loadedExtension, "services", "registerService");
|
|
4286
4342
|
const normalizedService = String(service).trim().toLowerCase();
|
|
4287
4343
|
if (!isExtensionServiceName(normalizedService)) {
|
|
4288
4344
|
throw new TypeError(`registerService service must be one of: ${KNOWN_EXTENSION_SERVICE_NAMES.join(", ")}`);
|
|
4289
4345
|
}
|
|
4290
|
-
if (!allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
|
|
4346
|
+
if (!this.allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
|
|
4291
4347
|
return;
|
|
4292
4348
|
}
|
|
4293
4349
|
assertFunctionHandler("registerService override", override);
|
|
4294
|
-
|
|
4295
|
-
layer:
|
|
4296
|
-
name:
|
|
4350
|
+
this.#serviceRegistry.overrides.push({
|
|
4351
|
+
layer: this.#loadedExtension.layer,
|
|
4352
|
+
name: this.#loadedExtension.name,
|
|
4297
4353
|
service: normalizedService,
|
|
4298
4354
|
run: override
|
|
4299
4355
|
});
|
|
4300
|
-
}
|
|
4301
|
-
|
|
4302
|
-
assertExtensionCapability(
|
|
4303
|
-
if (!allowRegistration("renderers.override", "registerRenderer", "renderers")) {
|
|
4356
|
+
}
|
|
4357
|
+
registerRenderer(format, renderer) {
|
|
4358
|
+
assertExtensionCapability(this.#loadedExtension, "renderers", "registerRenderer");
|
|
4359
|
+
if (!this.allowRegistration("renderers.override", "registerRenderer", "renderers")) {
|
|
4304
4360
|
return;
|
|
4305
4361
|
}
|
|
4306
4362
|
if (typeof renderer !== "function") {
|
|
@@ -4310,16 +4366,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4310
4366
|
if (!isOutputRendererFormat(normalizedFormat)) {
|
|
4311
4367
|
throw new Error(`registerRenderer format must be toon|json, received: ${String(format)}`);
|
|
4312
4368
|
}
|
|
4313
|
-
|
|
4314
|
-
layer:
|
|
4315
|
-
name:
|
|
4369
|
+
this.#rendererRegistry.overrides.push({
|
|
4370
|
+
layer: this.#loadedExtension.layer,
|
|
4371
|
+
name: this.#loadedExtension.name,
|
|
4316
4372
|
format: normalizedFormat,
|
|
4317
4373
|
run: renderer
|
|
4318
4374
|
});
|
|
4319
|
-
}
|
|
4320
|
-
|
|
4321
|
-
assertExtensionCapability(
|
|
4322
|
-
if (!allowRegistration("schema.flags", "registerFlags", "schema")) {
|
|
4375
|
+
}
|
|
4376
|
+
registerFlags(targetCommand, flags) {
|
|
4377
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerFlags");
|
|
4378
|
+
if (!this.allowRegistration("schema.flags", "registerFlags", "schema")) {
|
|
4323
4379
|
return;
|
|
4324
4380
|
}
|
|
4325
4381
|
const normalizedTargetCommand = normalizeCommandName(assertNonEmptyString("registerFlags targetCommand", targetCommand));
|
|
@@ -4328,16 +4384,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4328
4384
|
if (normalizedFlags.length === 0) {
|
|
4329
4385
|
throw new TypeError("registerFlags requires at least one flag definition");
|
|
4330
4386
|
}
|
|
4331
|
-
|
|
4332
|
-
layer:
|
|
4333
|
-
name:
|
|
4387
|
+
this.#registrationRegistry.flags.push({
|
|
4388
|
+
layer: this.#loadedExtension.layer,
|
|
4389
|
+
name: this.#loadedExtension.name,
|
|
4334
4390
|
target_command: normalizedTargetCommand,
|
|
4335
4391
|
flags: normalizedFlags
|
|
4336
4392
|
});
|
|
4337
|
-
}
|
|
4338
|
-
|
|
4339
|
-
assertExtensionCapability(
|
|
4340
|
-
if (!allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
|
|
4393
|
+
}
|
|
4394
|
+
registerItemFields(fields) {
|
|
4395
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerItemFields");
|
|
4396
|
+
if (!this.allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
|
|
4341
4397
|
return;
|
|
4342
4398
|
}
|
|
4343
4399
|
validateItemFieldDefinitions(fields);
|
|
@@ -4345,15 +4401,15 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4345
4401
|
if (normalizedFields.length === 0) {
|
|
4346
4402
|
throw new TypeError("registerItemFields requires at least one field definition");
|
|
4347
4403
|
}
|
|
4348
|
-
|
|
4349
|
-
layer:
|
|
4350
|
-
name:
|
|
4404
|
+
this.#registrationRegistry.item_fields.push({
|
|
4405
|
+
layer: this.#loadedExtension.layer,
|
|
4406
|
+
name: this.#loadedExtension.name,
|
|
4351
4407
|
fields: normalizedFields
|
|
4352
4408
|
});
|
|
4353
|
-
}
|
|
4354
|
-
|
|
4355
|
-
assertExtensionCapability(
|
|
4356
|
-
if (!allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
|
|
4409
|
+
}
|
|
4410
|
+
registerItemTypes(types) {
|
|
4411
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerItemTypes");
|
|
4412
|
+
if (!this.allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
|
|
4357
4413
|
return;
|
|
4358
4414
|
}
|
|
4359
4415
|
validateItemTypeDefinitions(types);
|
|
@@ -4361,39 +4417,39 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4361
4417
|
if (normalizedTypes.length === 0) {
|
|
4362
4418
|
throw new TypeError("registerItemTypes requires at least one type definition");
|
|
4363
4419
|
}
|
|
4364
|
-
|
|
4365
|
-
layer:
|
|
4366
|
-
name:
|
|
4420
|
+
this.#registrationRegistry.item_types.push({
|
|
4421
|
+
layer: this.#loadedExtension.layer,
|
|
4422
|
+
name: this.#loadedExtension.name,
|
|
4367
4423
|
types: normalizedTypes
|
|
4368
4424
|
});
|
|
4369
|
-
}
|
|
4370
|
-
|
|
4371
|
-
assertExtensionCapability(
|
|
4372
|
-
if (!allowRegistration("schema.migrations", "registerMigration", "schema")) {
|
|
4425
|
+
}
|
|
4426
|
+
registerMigration(definition) {
|
|
4427
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerMigration");
|
|
4428
|
+
if (!this.allowRegistration("schema.migrations", "registerMigration", "schema")) {
|
|
4373
4429
|
return;
|
|
4374
4430
|
}
|
|
4375
4431
|
validateMigrationDefinition(definition);
|
|
4376
4432
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerMigration definition", definition);
|
|
4377
|
-
|
|
4378
|
-
layer:
|
|
4379
|
-
name:
|
|
4433
|
+
this.#registrationRegistry.migrations.push(attachRuntimeDefinition({
|
|
4434
|
+
layer: this.#loadedExtension.layer,
|
|
4435
|
+
name: this.#loadedExtension.name,
|
|
4380
4436
|
definition: normalizeRegistrationRecord("registerMigration definition", definition)
|
|
4381
4437
|
}, runtimeDefinition));
|
|
4382
|
-
}
|
|
4383
|
-
|
|
4384
|
-
assertExtensionCapability(
|
|
4385
|
-
if (!allowRegistration("schema.profiles", "registerProfile", "schema")) {
|
|
4438
|
+
}
|
|
4439
|
+
registerProfile(profile) {
|
|
4440
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerProfile");
|
|
4441
|
+
if (!this.allowRegistration("schema.profiles", "registerProfile", "schema")) {
|
|
4386
4442
|
return;
|
|
4387
4443
|
}
|
|
4388
4444
|
const snapshot = cloneRuntimeRegistrationValue(profile);
|
|
4389
4445
|
validateProjectProfileDefinition(snapshot);
|
|
4390
|
-
|
|
4391
|
-
layer:
|
|
4392
|
-
name:
|
|
4446
|
+
this.#registrationRegistry.profiles.push({
|
|
4447
|
+
layer: this.#loadedExtension.layer,
|
|
4448
|
+
name: this.#loadedExtension.name,
|
|
4393
4449
|
profile: applyProjectProfileDefaults(snapshot)
|
|
4394
4450
|
});
|
|
4395
|
-
}
|
|
4396
|
-
|
|
4451
|
+
}
|
|
4452
|
+
applyImportExportCommandMetadata(method, commandPath, options) {
|
|
4397
4453
|
if (options === void 0) {
|
|
4398
4454
|
return;
|
|
4399
4455
|
}
|
|
@@ -4408,21 +4464,21 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4408
4464
|
const failureHints = normalizeOptionalStringArrayField(`${method} options.failure_hints`, options.failure_hints);
|
|
4409
4465
|
const argumentsDefinition = normalizeCommandDefinitionArguments(options.arguments);
|
|
4410
4466
|
if (options.flags !== void 0) {
|
|
4411
|
-
assertExtensionCapability(
|
|
4412
|
-
if (allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
|
|
4467
|
+
assertExtensionCapability(this.#loadedExtension, "schema", `${method} options.flags`);
|
|
4468
|
+
if (this.allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
|
|
4413
4469
|
validateFlagDefinitions(options.flags);
|
|
4414
|
-
|
|
4415
|
-
layer:
|
|
4416
|
-
name:
|
|
4470
|
+
this.#registrationRegistry.flags.push({
|
|
4471
|
+
layer: this.#loadedExtension.layer,
|
|
4472
|
+
name: this.#loadedExtension.name,
|
|
4417
4473
|
target_command: commandPath,
|
|
4418
4474
|
flags: normalizeRegistrationRecordList(`${method} options.flags`, options.flags)
|
|
4419
4475
|
});
|
|
4420
4476
|
}
|
|
4421
4477
|
}
|
|
4422
4478
|
const registration = {
|
|
4423
|
-
layer:
|
|
4424
|
-
name:
|
|
4425
|
-
source_package:
|
|
4479
|
+
layer: this.#loadedExtension.layer,
|
|
4480
|
+
name: this.#loadedExtension.name,
|
|
4481
|
+
source_package: this.#loadedExtension.source_package,
|
|
4426
4482
|
command: commandPath,
|
|
4427
4483
|
action,
|
|
4428
4484
|
examples,
|
|
@@ -4437,25 +4493,25 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4437
4493
|
if (intent) {
|
|
4438
4494
|
registration.intent = intent;
|
|
4439
4495
|
}
|
|
4440
|
-
|
|
4441
|
-
}
|
|
4442
|
-
|
|
4443
|
-
assertExtensionCapability(
|
|
4444
|
-
if (!allowRegistration("importers.importer", "registerImporter", "importers")) {
|
|
4496
|
+
this.#registrationRegistry.commands.push(registration);
|
|
4497
|
+
}
|
|
4498
|
+
registerImporter(name, importer, options) {
|
|
4499
|
+
assertExtensionCapability(this.#loadedExtension, "importers", "registerImporter");
|
|
4500
|
+
if (!this.allowRegistration("importers.importer", "registerImporter", "importers")) {
|
|
4445
4501
|
return;
|
|
4446
4502
|
}
|
|
4447
4503
|
const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerImporter name", name));
|
|
4448
4504
|
assertFunctionHandler("registerImporter importer", importer);
|
|
4449
4505
|
const commandPath = toRegistrationCommandPath(normalizedName, "import");
|
|
4450
|
-
applyImportExportCommandMetadata("registerImporter", commandPath, options);
|
|
4451
|
-
|
|
4452
|
-
layer:
|
|
4453
|
-
name:
|
|
4506
|
+
this.applyImportExportCommandMetadata("registerImporter", commandPath, options);
|
|
4507
|
+
this.#registrationRegistry.importers.push({
|
|
4508
|
+
layer: this.#loadedExtension.layer,
|
|
4509
|
+
name: this.#loadedExtension.name,
|
|
4454
4510
|
importer: normalizedName
|
|
4455
4511
|
});
|
|
4456
|
-
|
|
4457
|
-
layer:
|
|
4458
|
-
name:
|
|
4512
|
+
this.#commandRegistry.handlers.push({
|
|
4513
|
+
layer: this.#loadedExtension.layer,
|
|
4514
|
+
name: this.#loadedExtension.name,
|
|
4459
4515
|
command: commandPath,
|
|
4460
4516
|
run: async (context) => importer({
|
|
4461
4517
|
registration: normalizedName,
|
|
@@ -4467,24 +4523,24 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4467
4523
|
pm_root: context.pm_root
|
|
4468
4524
|
})
|
|
4469
4525
|
});
|
|
4470
|
-
}
|
|
4471
|
-
|
|
4472
|
-
assertExtensionCapability(
|
|
4473
|
-
if (!allowRegistration("importers.exporter", "registerExporter", "importers")) {
|
|
4526
|
+
}
|
|
4527
|
+
registerExporter(name, exporter, options) {
|
|
4528
|
+
assertExtensionCapability(this.#loadedExtension, "importers", "registerExporter");
|
|
4529
|
+
if (!this.allowRegistration("importers.exporter", "registerExporter", "importers")) {
|
|
4474
4530
|
return;
|
|
4475
4531
|
}
|
|
4476
4532
|
const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerExporter name", name));
|
|
4477
4533
|
assertFunctionHandler("registerExporter exporter", exporter);
|
|
4478
4534
|
const commandPath = toRegistrationCommandPath(normalizedName, "export");
|
|
4479
|
-
applyImportExportCommandMetadata("registerExporter", commandPath, options);
|
|
4480
|
-
|
|
4481
|
-
layer:
|
|
4482
|
-
name:
|
|
4535
|
+
this.applyImportExportCommandMetadata("registerExporter", commandPath, options);
|
|
4536
|
+
this.#registrationRegistry.exporters.push({
|
|
4537
|
+
layer: this.#loadedExtension.layer,
|
|
4538
|
+
name: this.#loadedExtension.name,
|
|
4483
4539
|
exporter: normalizedName
|
|
4484
4540
|
});
|
|
4485
|
-
|
|
4486
|
-
layer:
|
|
4487
|
-
name:
|
|
4541
|
+
this.#commandRegistry.handlers.push({
|
|
4542
|
+
layer: this.#loadedExtension.layer,
|
|
4543
|
+
name: this.#loadedExtension.name,
|
|
4488
4544
|
command: commandPath,
|
|
4489
4545
|
run: async (context) => exporter({
|
|
4490
4546
|
registration: normalizedName,
|
|
@@ -4496,115 +4552,94 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4496
4552
|
pm_root: context.pm_root
|
|
4497
4553
|
})
|
|
4498
4554
|
});
|
|
4499
|
-
}
|
|
4500
|
-
|
|
4501
|
-
assertExtensionCapability(
|
|
4502
|
-
if (!allowRegistration("search.provider", "registerSearchProvider", "search")) {
|
|
4555
|
+
}
|
|
4556
|
+
registerSearchProvider(provider) {
|
|
4557
|
+
assertExtensionCapability(this.#loadedExtension, "search", "registerSearchProvider");
|
|
4558
|
+
if (!this.allowRegistration("search.provider", "registerSearchProvider", "search")) {
|
|
4503
4559
|
return;
|
|
4504
4560
|
}
|
|
4505
4561
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerSearchProvider provider", provider);
|
|
4506
|
-
|
|
4507
|
-
layer:
|
|
4508
|
-
name:
|
|
4562
|
+
this.#registrationRegistry.search_providers.push(attachRuntimeDefinition({
|
|
4563
|
+
layer: this.#loadedExtension.layer,
|
|
4564
|
+
name: this.#loadedExtension.name,
|
|
4509
4565
|
definition: normalizeRegistrationRecord("registerSearchProvider provider", provider)
|
|
4510
4566
|
}, runtimeDefinition));
|
|
4511
|
-
}
|
|
4512
|
-
|
|
4513
|
-
assertExtensionCapability(
|
|
4514
|
-
if (!allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
|
|
4567
|
+
}
|
|
4568
|
+
registerVectorStoreAdapter(adapter) {
|
|
4569
|
+
assertExtensionCapability(this.#loadedExtension, "search", "registerVectorStoreAdapter");
|
|
4570
|
+
if (!this.allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
|
|
4515
4571
|
return;
|
|
4516
4572
|
}
|
|
4517
4573
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerVectorStoreAdapter adapter", adapter);
|
|
4518
|
-
|
|
4519
|
-
layer:
|
|
4520
|
-
name:
|
|
4574
|
+
this.#registrationRegistry.vector_store_adapters.push(attachRuntimeDefinition({
|
|
4575
|
+
layer: this.#loadedExtension.layer,
|
|
4576
|
+
name: this.#loadedExtension.name,
|
|
4521
4577
|
definition: normalizeRegistrationRecord("registerVectorStoreAdapter adapter", adapter)
|
|
4522
4578
|
}, runtimeDefinition));
|
|
4523
|
-
}
|
|
4524
|
-
|
|
4525
|
-
assertExtensionCapability(
|
|
4526
|
-
if (!allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
|
|
4579
|
+
}
|
|
4580
|
+
registerBeforeCommand(hook) {
|
|
4581
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.beforeCommand");
|
|
4582
|
+
if (!this.allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
|
|
4527
4583
|
return;
|
|
4528
4584
|
}
|
|
4529
4585
|
assertHookHandler("beforeCommand", hook);
|
|
4530
|
-
|
|
4531
|
-
layer:
|
|
4532
|
-
name:
|
|
4586
|
+
this.#hookRegistry.beforeCommand.push({
|
|
4587
|
+
layer: this.#loadedExtension.layer,
|
|
4588
|
+
name: this.#loadedExtension.name,
|
|
4533
4589
|
run: hook
|
|
4534
4590
|
});
|
|
4535
|
-
}
|
|
4536
|
-
|
|
4537
|
-
assertExtensionCapability(
|
|
4538
|
-
if (!allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
|
|
4591
|
+
}
|
|
4592
|
+
registerAfterCommand(hook) {
|
|
4593
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.afterCommand");
|
|
4594
|
+
if (!this.allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
|
|
4539
4595
|
return;
|
|
4540
4596
|
}
|
|
4541
4597
|
assertHookHandler("afterCommand", hook);
|
|
4542
|
-
|
|
4543
|
-
layer:
|
|
4544
|
-
name:
|
|
4598
|
+
this.#hookRegistry.afterCommand.push({
|
|
4599
|
+
layer: this.#loadedExtension.layer,
|
|
4600
|
+
name: this.#loadedExtension.name,
|
|
4545
4601
|
run: hook
|
|
4546
4602
|
});
|
|
4547
|
-
}
|
|
4548
|
-
|
|
4549
|
-
assertExtensionCapability(
|
|
4550
|
-
if (!allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
|
|
4603
|
+
}
|
|
4604
|
+
registerOnWrite(hook) {
|
|
4605
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onWrite");
|
|
4606
|
+
if (!this.allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
|
|
4551
4607
|
return;
|
|
4552
4608
|
}
|
|
4553
4609
|
assertHookHandler("onWrite", hook);
|
|
4554
|
-
|
|
4555
|
-
layer:
|
|
4556
|
-
name:
|
|
4610
|
+
this.#hookRegistry.onWrite.push({
|
|
4611
|
+
layer: this.#loadedExtension.layer,
|
|
4612
|
+
name: this.#loadedExtension.name,
|
|
4557
4613
|
run: hook
|
|
4558
4614
|
});
|
|
4559
|
-
}
|
|
4560
|
-
|
|
4561
|
-
assertExtensionCapability(
|
|
4562
|
-
if (!allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
|
|
4615
|
+
}
|
|
4616
|
+
registerOnRead(hook) {
|
|
4617
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onRead");
|
|
4618
|
+
if (!this.allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
|
|
4563
4619
|
return;
|
|
4564
4620
|
}
|
|
4565
4621
|
assertHookHandler("onRead", hook);
|
|
4566
|
-
|
|
4567
|
-
layer:
|
|
4568
|
-
name:
|
|
4622
|
+
this.#hookRegistry.onRead.push({
|
|
4623
|
+
layer: this.#loadedExtension.layer,
|
|
4624
|
+
name: this.#loadedExtension.name,
|
|
4569
4625
|
run: hook
|
|
4570
4626
|
});
|
|
4571
|
-
}
|
|
4572
|
-
|
|
4573
|
-
assertExtensionCapability(
|
|
4574
|
-
if (!allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
|
|
4627
|
+
}
|
|
4628
|
+
registerOnIndex(hook) {
|
|
4629
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onIndex");
|
|
4630
|
+
if (!this.allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
|
|
4575
4631
|
return;
|
|
4576
4632
|
}
|
|
4577
4633
|
assertHookHandler("onIndex", hook);
|
|
4578
|
-
|
|
4579
|
-
layer:
|
|
4580
|
-
name:
|
|
4634
|
+
this.#hookRegistry.onIndex.push({
|
|
4635
|
+
layer: this.#loadedExtension.layer,
|
|
4636
|
+
name: this.#loadedExtension.name,
|
|
4581
4637
|
run: hook
|
|
4582
4638
|
});
|
|
4583
|
-
}
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
registerParser,
|
|
4588
|
-
registerPreflight,
|
|
4589
|
-
registerService,
|
|
4590
|
-
registerFlags,
|
|
4591
|
-
registerItemFields,
|
|
4592
|
-
registerItemTypes,
|
|
4593
|
-
registerMigration,
|
|
4594
|
-
registerProfile,
|
|
4595
|
-
registerRenderer,
|
|
4596
|
-
registerImporter,
|
|
4597
|
-
registerExporter,
|
|
4598
|
-
registerSearchProvider,
|
|
4599
|
-
registerVectorStoreAdapter,
|
|
4600
|
-
hooks: {
|
|
4601
|
-
beforeCommand: registerBeforeCommand,
|
|
4602
|
-
afterCommand: registerAfterCommand,
|
|
4603
|
-
onWrite: registerOnWrite,
|
|
4604
|
-
onRead: registerOnRead,
|
|
4605
|
-
onIndex: registerOnIndex
|
|
4606
|
-
}
|
|
4607
|
-
};
|
|
4639
|
+
}
|
|
4640
|
+
};
|
|
4641
|
+
function createExtensionApi(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
|
|
4642
|
+
return new ExtensionApiRegistrar(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy);
|
|
4608
4643
|
}
|
|
4609
4644
|
function getRegistrationCounts(registrations) {
|
|
4610
4645
|
const commandCount = registrations.commands.length;
|
|
@@ -5648,6 +5683,6 @@ export {
|
|
|
5648
5683
|
statusIsTerminal,
|
|
5649
5684
|
evictOldestMemoEntries
|
|
5650
5685
|
};
|
|
5651
|
-
//# sourceMappingURL=chunk-
|
|
5686
|
+
//# sourceMappingURL=chunk-MFLLULHU.js.map
|
|
5652
5687
|
|
|
5653
|
-
//# debugId=
|
|
5688
|
+
//# debugId=e9729333-6db5-59ee-8259-e1cba10d635f
|