@unbrained/pm-cli 2026.7.7 → 2026.7.9
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 +25 -0
- package/README.md +1 -0
- package/dist/cli/commands/close.js +5 -2
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.js +16 -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/contracts.d.ts +11 -0
- package/dist/cli/commands/contracts.js +112 -15
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.js +4 -2
- package/dist/cli/commands/create.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/list.d.ts +4 -0
- package/dist/cli/commands/list.js +32 -3
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/search.js +3 -3
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/update.d.ts +32 -1
- package/dist/cli/commands/update.js +19 -2
- package/dist/cli/commands/update.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 +5 -2
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-operations.js +4 -2
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +8 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.js +4 -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/{append-PVCTBVJG.js → append-RSPHC423.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-6G6O3OPQ.js → chunk-26MFLA7K.js} +7 -7
- 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-7ML7JONU.js → chunk-2FKIIQMJ.js} +14 -14
- package/dist/cli-bundle/chunks/chunk-2FKIIQMJ.js.map +1 -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-C5ACVMOI.js → chunk-5RJ4LFD3.js} +34 -7
- package/dist/cli-bundle/chunks/chunk-5RJ4LFD3.js.map +7 -0
- 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-4IQKDKGE.js → chunk-5ZMZF53A.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6LCJRGPD.js → chunk-63PZJCKO.js} +10 -7
- package/dist/cli-bundle/chunks/chunk-63PZJCKO.js.map +1 -0
- 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-QFBSP3NI.js → chunk-ASSVI7FP.js} +12 -10
- package/dist/cli-bundle/chunks/{chunk-QFBSP3NI.js.map → chunk-ASSVI7FP.js.map} +1 -1
- 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-J2VGADNG.js → chunk-BPYVKTZE.js} +122 -27
- package/dist/cli-bundle/chunks/chunk-BPYVKTZE.js.map +1 -0
- 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-S547WBYG.js → chunk-CEX2DQXZ.js} +600 -96
- package/dist/cli-bundle/chunks/chunk-CEX2DQXZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2TILG6F2.js → chunk-CGDUIPJL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js → chunk-CHSXGTWF.js} +23 -9
- package/dist/cli-bundle/chunks/{chunk-LZQU6XJG.js.map → chunk-CHSXGTWF.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-J7BOLHAV.js → chunk-CXH7EMSB.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-W5HXHC7C.js → chunk-D6J5673C.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-XZWL7VNE.js → chunk-DBV5A7FT.js} +9 -7
- package/dist/cli-bundle/chunks/chunk-DBV5A7FT.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js → chunk-DQLP22K2.js} +7 -7
- 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-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-CJQM7O7R.js → chunk-FOJEBRDD.js} +5 -5
- 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-DDDWVPID.js → chunk-GSQVQINP.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js → chunk-GZ365M6E.js} +4 -4
- 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-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-XC3X7BQR.js → chunk-K2OKKYSO.js} +11 -9
- package/dist/cli-bundle/chunks/{chunk-XC3X7BQR.js.map → chunk-K2OKKYSO.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YCVWWIKY.js → chunk-K4NMHZR3.js} +111 -24
- package/dist/cli-bundle/chunks/chunk-K4NMHZR3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-EIUBK2LT.js → chunk-K52C6YPA.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-IDIBF4E2.js → chunk-KAJNWMBE.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-2LEJGRQ7.js → chunk-KFL3XHMA.js} +2 -2
- 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-YTD5GICJ.js → chunk-MBLHA6LR.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-F6MT7KKE.js → chunk-MCH6IKK7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js → chunk-MCZK7LY6.js} +24 -10
- package/dist/cli-bundle/chunks/{chunk-7PNQA24K.js.map → chunk-MCZK7LY6.js.map} +1 -1
- 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-FILL6BB2.js → chunk-N4S7BV43.js} +14 -14
- package/dist/cli-bundle/chunks/chunk-N4S7BV43.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2APXX4TZ.js → chunk-NBJCIAVV.js} +108 -21
- package/dist/cli-bundle/chunks/chunk-NBJCIAVV.js.map +1 -0
- 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-TZLYO4PP.js → chunk-NRYZ4QLH.js} +121 -26
- package/dist/cli-bundle/chunks/chunk-NRYZ4QLH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-F6YC2A6X.js → chunk-NSPSJWGL.js} +9 -6
- package/dist/cli-bundle/chunks/chunk-NSPSJWGL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GH73UOSJ.js → chunk-NTOOEVJ4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6XTSYPPO.js → chunk-ONADVBMD.js} +8 -6
- package/dist/cli-bundle/chunks/chunk-ONADVBMD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-Y5IKRUEM.js → chunk-P5SUMCU5.js} +167 -65
- package/dist/cli-bundle/chunks/chunk-P5SUMCU5.js.map +1 -0
- 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-MHNMCDWR.js → chunk-PPY3GXFK.js} +600 -96
- package/dist/cli-bundle/chunks/chunk-PPY3GXFK.js.map +1 -0
- 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-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-QDABF2RB.js → chunk-S7J3GEHL.js} +10 -10
- 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-RY7PTTUB.js → chunk-TI7QSUFK.js} +35 -8
- package/dist/cli-bundle/chunks/chunk-TI7QSUFK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-43SIHQND.js → chunk-TKWTJGD6.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-EOUVR7JN.js → chunk-U72GF3I2.js} +3 -3
- 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-S5BNGFN5.js → chunk-VCGHRLJU.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-3G6UMXT3.js → chunk-W2VFNVSJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ZNEG2UDO.js → chunk-WDNPNW22.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-DG6BSXZ7.js → chunk-WVEMZZCR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TNC6MZUD.js → chunk-XXN2B2MJ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js → chunk-Y2736PT5.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-X47MKQXU.js → chunk-YHKXNGLA.js} +166 -64
- package/dist/cli-bundle/chunks/chunk-YHKXNGLA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js → chunk-YPE5MFPJ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-XPMXPR7K.js → chunk-YSRXFGNV.js} +3 -3
- 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/close-5WY6QO5F.js +12 -0
- package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js → close-TKTFRL7N.js} +5 -5
- package/dist/cli-bundle/chunks/{close-many-D366FTIG.js → close-many-HEPL66EG.js} +13 -13
- package/dist/cli-bundle/chunks/close-many-U2KLQ3NL.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-KCQM6UYM.js +25 -0
- package/dist/cli-bundle/chunks/{create-4GWJWPXG.js → create-LD4SEUD6.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-B42KBMX7.js +24 -0
- package/dist/cli-bundle/chunks/{plan-TN537L24.js → plan-LUR7C24X.js} +10 -10
- package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js → profile-5F75MO5O.js} +9 -9
- package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js → profile-JRDMDGT5.js} +9 -9
- package/dist/cli-bundle/chunks/{register-list-query-ZCRABAPN.js → register-list-query-GZYRZLQZ.js} +17 -16
- package/dist/cli-bundle/chunks/register-list-query-GZYRZLQZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-OHXD7G5N.js → register-list-query-W2W7RQJJ.js} +16 -15
- package/dist/cli-bundle/chunks/register-list-query-W2W7RQJJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js → register-mutation-5UDT3WL3.js} +29 -29
- package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js → register-mutation-7DMOYDPC.js} +29 -29
- package/dist/cli-bundle/chunks/{register-operations-V6VKTG54.js → register-operations-NW43IUPE.js} +29 -28
- package/dist/cli-bundle/chunks/register-operations-NW43IUPE.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-operations-V6PIYEDU.js → register-operations-Y4E32W4D.js} +30 -29
- package/dist/cli-bundle/chunks/register-operations-Y4E32W4D.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-6YVUSQYD.js → register-setup-3GVJ7XPE.js} +21 -19
- package/dist/cli-bundle/chunks/register-setup-3GVJ7XPE.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-6RVAWT6W.js → register-setup-MPTTS52V.js} +20 -18
- package/dist/cli-bundle/chunks/register-setup-MPTTS52V.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-76CRUMC7.js +21 -0
- package/dist/cli-bundle/chunks/{update-LKD64AFP.js → update-ZMYVXM77.js} +12 -12
- package/dist/cli-bundle/chunks/update-many-QYQRGNPU.js +31 -0
- package/dist/cli-bundle/chunks/update-many-U4CEQWI4.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 +149 -53
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +153 -57
- package/dist/cli-bundle/sdk.js.map +3 -3
- 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 +10 -3
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +10 -5
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +20 -4
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +4 -0
- package/dist/sdk/cli-contracts/tool-schema.js +71 -12
- 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 +471 -25
- package/dist/sdk/runtime.js +611 -25
- package/dist/sdk/runtime.js.map +1 -1
- package/docs/AGENT_GUIDE.md +3 -0
- package/docs/COMMANDS.md +10 -1
- package/docs/EXTENSIONS.md +7 -20
- package/docs/RELEASING.md +6 -0
- package/docs/SDK.md +67 -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-6LCJRGPD.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6XTSYPPO.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7ML7JONU.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-C5ACVMOI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-F6YC2A6X.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FILL6BB2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-J2VGADNG.js.map +0 -1
- 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-RY7PTTUB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-S547WBYG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TZLYO4PP.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-XZWL7VNE.js.map +0 -1
- 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-list-query-OHXD7G5N.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-ZCRABAPN.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-V6PIYEDU.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-V6VKTG54.js.map +0 -7
- 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-6G6O3OPQ.js.map → chunk-26MFLA7K.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-4IQKDKGE.js.map → chunk-5ZMZF53A.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-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-W5HXHC7C.js.map → chunk-D6J5673C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ARKHKYYS.js.map → chunk-DQLP22K2.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-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-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-DDDWVPID.js.map → chunk-GSQVQINP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EVEPHNXJ.js.map → chunk-GZ365M6E.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-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-IDIBF4E2.js.map → chunk-KAJNWMBE.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-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-YTD5GICJ.js.map → chunk-MBLHA6LR.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-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-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-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-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-QDABF2RB.js.map → chunk-S7J3GEHL.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-43SIHQND.js.map → chunk-TKWTJGD6.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-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-S5BNGFN5.js.map → chunk-VCGHRLJU.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-ZNEG2UDO.js.map → chunk-WDNPNW22.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-TNC6MZUD.js.map → chunk-XXN2B2MJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YH5NBDFA.js.map → chunk-Y2736PT5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XXIYUTLK.js.map → chunk-YPE5MFPJ.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-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/{close-Z3Q4U7TS.js.map → close-5WY6QO5F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-3YYQ5OG2.js.map → close-TKTFRL7N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-D366FTIG.js.map → close-many-HEPL66EG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-3L2RXH3M.js.map → close-many-U2KLQ3NL.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-KCQM6UYM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-4GWJWPXG.js.map → create-LD4SEUD6.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-OSCNYFGC.js.map → plan-B42KBMX7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-TN537L24.js.map → plan-LUR7C24X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-TIGLAKJ7.js.map → profile-5F75MO5O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-MHAMXMHQ.js.map → profile-JRDMDGT5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-XX4H56PE.js.map → register-mutation-5UDT3WL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-P3G4XP6Q.js.map → register-mutation-7DMOYDPC.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-CJGG5WMV.js.map → update-76CRUMC7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-LKD64AFP.js.map → update-ZMYVXM77.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-G4SM7BHC.js.map → update-many-QYQRGNPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-VLIV3D7R.js.map → update-many-U4CEQWI4.js.map} +0 -0
|
@@ -187,7 +187,7 @@ function resolveConfiguredPmPackageRoot(env = process.env, envName = "PM_CLI_PAC
|
|
|
187
187
|
!(function() {
|
|
188
188
|
try {
|
|
189
189
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
190
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
190
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3e44d901-11ef-5bb5-b0bf-37576240fe79");
|
|
191
191
|
} catch (e2) {
|
|
192
192
|
}
|
|
193
193
|
})();
|
|
@@ -3033,7 +3033,7 @@ function evaluateExtensionPolicyForRegistration(policy, extension, surface, meth
|
|
|
3033
3033
|
!(function() {
|
|
3034
3034
|
try {
|
|
3035
3035
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3036
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3036
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b7735a57-30b2-58a3-9d53-6805e011fd12");
|
|
3037
3037
|
} catch (e2) {
|
|
3038
3038
|
}
|
|
3039
3039
|
})();
|
|
@@ -3424,6 +3424,9 @@ async function scanExtensionLayer(layer, extensionsRoot, enabled, disabled, pmMa
|
|
|
3424
3424
|
}
|
|
3425
3425
|
return { diagnostics, warnings, candidates };
|
|
3426
3426
|
}
|
|
3427
|
+
function emptyExtensionLayerScan() {
|
|
3428
|
+
return { diagnostics: [], warnings: [], candidates: [] };
|
|
3429
|
+
}
|
|
3427
3430
|
function buildUnavailableExtensionScan(layer, directory, manifestPath, warning) {
|
|
3428
3431
|
return {
|
|
3429
3432
|
diagnostic: {
|
|
@@ -3533,7 +3536,7 @@ async function discoverExtensions(options) {
|
|
|
3533
3536
|
}
|
|
3534
3537
|
const enabled = new Set(configured_enabled);
|
|
3535
3538
|
const disabled = new Set(configured_disabled);
|
|
3536
|
-
const globalScan = await scanExtensionLayer("global", roots.global, enabled, disabled, policy.pmMaxVersionExceededMode.global);
|
|
3539
|
+
const globalScan = options.ignoreGlobalExtensions === true ? emptyExtensionLayerScan() : await scanExtensionLayer("global", roots.global, enabled, disabled, policy.pmMaxVersionExceededMode.global);
|
|
3537
3540
|
const projectScan = await scanExtensionLayer("project", roots.project, enabled, disabled, policy.pmMaxVersionExceededMode.project);
|
|
3538
3541
|
const policyWarnings = [...policy.warnings];
|
|
3539
3542
|
const effectiveCandidates = buildEffectiveExtensions(globalScan.candidates, projectScan.candidates);
|
|
@@ -4256,8 +4259,8 @@ function assertExtensionCapability(extension, capability, method) {
|
|
|
4256
4259
|
});
|
|
4257
4260
|
}
|
|
4258
4261
|
}
|
|
4259
|
-
function
|
|
4260
|
-
|
|
4262
|
+
function buildExtensionSelfIdentity(extension) {
|
|
4263
|
+
return Object.freeze({
|
|
4261
4264
|
name: extension.name,
|
|
4262
4265
|
layer: extension.layer,
|
|
4263
4266
|
version: extension.version,
|
|
@@ -4266,7 +4269,9 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4266
4269
|
pm_max_version: extension.pm_max_version,
|
|
4267
4270
|
source_package: extension.source_package
|
|
4268
4271
|
});
|
|
4269
|
-
|
|
4272
|
+
}
|
|
4273
|
+
function buildPolicyExtensionRef(extension) {
|
|
4274
|
+
return {
|
|
4270
4275
|
layer: extension.layer,
|
|
4271
4276
|
name: extension.name,
|
|
4272
4277
|
trusted: extension.trusted === true,
|
|
@@ -4281,65 +4286,114 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4281
4286
|
process_spawn: extension.permissions.process_spawn
|
|
4282
4287
|
} : void 0
|
|
4283
4288
|
};
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4289
|
+
}
|
|
4290
|
+
var ExtensionApiRegistrar = class {
|
|
4291
|
+
extension;
|
|
4292
|
+
hooks;
|
|
4293
|
+
#loadedExtension;
|
|
4294
|
+
#extensionRef;
|
|
4295
|
+
#hookRegistry;
|
|
4296
|
+
#commandRegistry;
|
|
4297
|
+
#parserRegistry;
|
|
4298
|
+
#preflightRegistry;
|
|
4299
|
+
#serviceRegistry;
|
|
4300
|
+
#rendererRegistry;
|
|
4301
|
+
#registrationRegistry;
|
|
4302
|
+
#activationWarnings;
|
|
4303
|
+
#policy;
|
|
4304
|
+
constructor(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
|
|
4305
|
+
this.#loadedExtension = extension;
|
|
4306
|
+
this.extension = buildExtensionSelfIdentity(extension);
|
|
4307
|
+
this.#extensionRef = buildPolicyExtensionRef(extension);
|
|
4308
|
+
this.#hookRegistry = hooks;
|
|
4309
|
+
this.#commandRegistry = commands;
|
|
4310
|
+
this.#parserRegistry = parsers;
|
|
4311
|
+
this.#preflightRegistry = preflight;
|
|
4312
|
+
this.#serviceRegistry = services;
|
|
4313
|
+
this.#rendererRegistry = renderers;
|
|
4314
|
+
this.#registrationRegistry = registrations;
|
|
4315
|
+
this.#activationWarnings = activationWarnings;
|
|
4316
|
+
this.#policy = policy;
|
|
4317
|
+
this.registerCommand = this.registerCommand.bind(this);
|
|
4318
|
+
this.registerParser = this.registerParser.bind(this);
|
|
4319
|
+
this.registerPreflight = this.registerPreflight.bind(this);
|
|
4320
|
+
this.registerService = this.registerService.bind(this);
|
|
4321
|
+
this.registerFlags = this.registerFlags.bind(this);
|
|
4322
|
+
this.registerItemFields = this.registerItemFields.bind(this);
|
|
4323
|
+
this.registerItemTypes = this.registerItemTypes.bind(this);
|
|
4324
|
+
this.registerMigration = this.registerMigration.bind(this);
|
|
4325
|
+
this.registerProfile = this.registerProfile.bind(this);
|
|
4326
|
+
this.registerRenderer = this.registerRenderer.bind(this);
|
|
4327
|
+
this.registerImporter = this.registerImporter.bind(this);
|
|
4328
|
+
this.registerExporter = this.registerExporter.bind(this);
|
|
4329
|
+
this.registerSearchProvider = this.registerSearchProvider.bind(this);
|
|
4330
|
+
this.registerVectorStoreAdapter = this.registerVectorStoreAdapter.bind(this);
|
|
4331
|
+
this.hooks = {
|
|
4332
|
+
beforeCommand: (hook) => this.registerBeforeCommand(hook),
|
|
4333
|
+
afterCommand: (hook) => this.registerAfterCommand(hook),
|
|
4334
|
+
onWrite: (hook) => this.registerOnWrite(hook),
|
|
4335
|
+
onRead: (hook) => this.registerOnRead(hook),
|
|
4336
|
+
onIndex: (hook) => this.registerOnIndex(hook)
|
|
4337
|
+
};
|
|
4338
|
+
}
|
|
4339
|
+
allowRegistration(surface, method, capability, details) {
|
|
4340
|
+
const decision = evaluateExtensionPolicyForRegistration(this.#policy, this.#extensionRef, surface, method, capability, details);
|
|
4341
|
+
if (decision.warning) {
|
|
4342
|
+
this.#activationWarnings.push(decision.warning);
|
|
4287
4343
|
}
|
|
4288
|
-
};
|
|
4289
|
-
const allowRegistration = (surface, method, capability, details) => {
|
|
4290
|
-
const decision = evaluateExtensionPolicyForRegistration(policy, extensionRef, surface, method, capability, details);
|
|
4291
|
-
pushPolicyWarning(decision.warning);
|
|
4292
4344
|
return decision.allowed;
|
|
4293
|
-
}
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4345
|
+
}
|
|
4346
|
+
registerCommandTrace(mode, command, expectedSchema, received, hint) {
|
|
4347
|
+
return {
|
|
4348
|
+
method: "registerCommand",
|
|
4349
|
+
registration_index: mode === "override" ? this.#commandRegistry.overrides.length : this.#commandRegistry.handlers.length,
|
|
4350
|
+
command,
|
|
4351
|
+
expected_schema: expectedSchema,
|
|
4352
|
+
received: sanitizeRegistrationValue(received),
|
|
4353
|
+
hint
|
|
4354
|
+
};
|
|
4355
|
+
}
|
|
4356
|
+
registerCommandOverride(command, override) {
|
|
4303
4357
|
const normalizedCommand = normalizeCommandName(command);
|
|
4304
4358
|
if (normalizedCommand.length === 0) {
|
|
4305
|
-
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."));
|
|
4359
|
+
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."));
|
|
4306
4360
|
}
|
|
4307
4361
|
if (typeof override !== "function") {
|
|
4308
|
-
const trace = registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)',
|
|
4362
|
+
const trace = this.registerCommandTrace("override", normalizedCommand, 'registerCommand("<command>", (context) => unknown)', override, "Provide a function as the second registerCommand argument.");
|
|
4309
4363
|
throw createRegistrationValidationError(`registerCommand requires an override function when command name is provided (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
|
|
4310
4364
|
}
|
|
4311
|
-
if (!allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
|
|
4365
|
+
if (!this.allowRegistration("commands.override", "registerCommand", "commands", { command: normalizedCommand })) {
|
|
4312
4366
|
return;
|
|
4313
4367
|
}
|
|
4314
|
-
|
|
4315
|
-
layer:
|
|
4316
|
-
name:
|
|
4368
|
+
this.#commandRegistry.overrides.push({
|
|
4369
|
+
layer: this.#loadedExtension.layer,
|
|
4370
|
+
name: this.#loadedExtension.name,
|
|
4317
4371
|
command: normalizedCommand,
|
|
4318
4372
|
run: override
|
|
4319
4373
|
});
|
|
4320
|
-
}
|
|
4321
|
-
|
|
4374
|
+
}
|
|
4375
|
+
resolveCommandDefinitionRunHandler(definition, normalizedCommand) {
|
|
4322
4376
|
const runHandler = typeof definition.run === "function" ? definition.run : void 0;
|
|
4323
4377
|
const legacyHandler = typeof definition.handler === "function" ? definition.handler : void 0;
|
|
4324
4378
|
if (!runHandler && legacyHandler) {
|
|
4325
|
-
activationWarnings.push(`extension_command_definition_legacy_handler_alias:${
|
|
4379
|
+
this.#activationWarnings.push(`extension_command_definition_legacy_handler_alias:${this.#loadedExtension.layer}:${this.#loadedExtension.name}:${normalizedCommand}`);
|
|
4326
4380
|
}
|
|
4327
4381
|
return runHandler ?? legacyHandler;
|
|
4328
|
-
}
|
|
4329
|
-
|
|
4382
|
+
}
|
|
4383
|
+
registerCommandDefinition(definition) {
|
|
4330
4384
|
if (typeof definition !== "object" || definition === null) {
|
|
4331
|
-
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) => ... }).'));
|
|
4385
|
+
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) => ... }).'));
|
|
4332
4386
|
}
|
|
4333
4387
|
if (typeof definition.name !== "string") {
|
|
4334
|
-
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."));
|
|
4388
|
+
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."));
|
|
4335
4389
|
}
|
|
4336
4390
|
const normalizedCommand = normalizeCommandName(definition.name);
|
|
4337
4391
|
if (normalizedCommand.length === 0) {
|
|
4338
|
-
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."));
|
|
4392
|
+
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."));
|
|
4339
4393
|
}
|
|
4340
|
-
const resolvedHandler = resolveCommandDefinitionRunHandler(definition, normalizedCommand);
|
|
4394
|
+
const resolvedHandler = this.resolveCommandDefinitionRunHandler(definition, normalizedCommand);
|
|
4341
4395
|
if (typeof resolvedHandler !== "function") {
|
|
4342
|
-
const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }",
|
|
4396
|
+
const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; }", resolvedHandler, "Define command definition.run as a function.");
|
|
4343
4397
|
throw createRegistrationValidationError(`registerCommand requires a command definition run handler (command="${normalizedCommand}", registration_index=${trace.registration_index})`, trace);
|
|
4344
4398
|
}
|
|
4345
4399
|
try {
|
|
@@ -4347,7 +4401,7 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4347
4401
|
assertOptionalStringField("registerCommand definition.description", definition.description);
|
|
4348
4402
|
assertOptionalStringField("registerCommand definition.intent", definition.intent);
|
|
4349
4403
|
const action = resolveCommandDefinitionAction(normalizedCommand, definition.action);
|
|
4350
|
-
if (!allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
|
|
4404
|
+
if (!this.allowRegistration("commands.handler", "registerCommand", "commands", { command: normalizedCommand, action })) {
|
|
4351
4405
|
return;
|
|
4352
4406
|
}
|
|
4353
4407
|
const description = definition.description?.trim();
|
|
@@ -4356,19 +4410,21 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4356
4410
|
const failureHints = normalizeOptionalStringArrayField("registerCommand definition.failure_hints", definition.failure_hints);
|
|
4357
4411
|
const argumentsDefinition = normalizeCommandDefinitionArguments(definition.arguments);
|
|
4358
4412
|
if (definition.flags !== void 0) {
|
|
4359
|
-
assertExtensionCapability(
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4413
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerCommand flags");
|
|
4414
|
+
if (this.allowRegistration("schema.flags", "registerCommand flags", "schema")) {
|
|
4415
|
+
validateFlagDefinitions(definition.flags);
|
|
4416
|
+
this.#registrationRegistry.flags.push({
|
|
4417
|
+
layer: this.#loadedExtension.layer,
|
|
4418
|
+
name: this.#loadedExtension.name,
|
|
4419
|
+
target_command: normalizedCommand,
|
|
4420
|
+
flags: normalizeRegistrationRecordList("registerCommand definition.flags", definition.flags)
|
|
4421
|
+
});
|
|
4422
|
+
}
|
|
4367
4423
|
}
|
|
4368
4424
|
const registration = {
|
|
4369
|
-
layer:
|
|
4370
|
-
name:
|
|
4371
|
-
source_package:
|
|
4425
|
+
layer: this.#loadedExtension.layer,
|
|
4426
|
+
name: this.#loadedExtension.name,
|
|
4427
|
+
source_package: this.#loadedExtension.source_package,
|
|
4372
4428
|
command: normalizedCommand,
|
|
4373
4429
|
action,
|
|
4374
4430
|
examples,
|
|
@@ -4381,73 +4437,73 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4381
4437
|
if (intent) {
|
|
4382
4438
|
registration.intent = intent;
|
|
4383
4439
|
}
|
|
4384
|
-
|
|
4440
|
+
this.#registrationRegistry.commands.push(registration);
|
|
4385
4441
|
} catch (error) {
|
|
4386
4442
|
const reason = formatUnknownError(error);
|
|
4387
|
-
const trace = registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition,
|
|
4443
|
+
const trace = this.registerCommandTrace("definition", normalizedCommand, "{ name: string; run: (context) => unknown; action?: string; arguments?: object[]; flags?: object[]; }", definition, reason);
|
|
4388
4444
|
throw createRegistrationValidationError(`registerCommand definition metadata invalid (command="${normalizedCommand}", registration_index=${trace.registration_index}): ${reason}`, trace);
|
|
4389
4445
|
}
|
|
4390
|
-
|
|
4391
|
-
layer:
|
|
4392
|
-
name:
|
|
4446
|
+
this.#commandRegistry.handlers.push({
|
|
4447
|
+
layer: this.#loadedExtension.layer,
|
|
4448
|
+
name: this.#loadedExtension.name,
|
|
4393
4449
|
command: normalizedCommand,
|
|
4394
4450
|
run: resolvedHandler
|
|
4395
4451
|
});
|
|
4396
|
-
}
|
|
4397
|
-
|
|
4398
|
-
assertExtensionCapability(
|
|
4452
|
+
}
|
|
4453
|
+
registerCommand(commandOrDefinition, override) {
|
|
4454
|
+
assertExtensionCapability(this.#loadedExtension, "commands", "registerCommand");
|
|
4399
4455
|
if (typeof commandOrDefinition === "string") {
|
|
4400
|
-
registerCommandOverride(commandOrDefinition, override);
|
|
4456
|
+
this.registerCommandOverride(commandOrDefinition, override);
|
|
4401
4457
|
return;
|
|
4402
4458
|
}
|
|
4403
|
-
registerCommandDefinition(commandOrDefinition);
|
|
4404
|
-
}
|
|
4405
|
-
|
|
4406
|
-
assertExtensionCapability(
|
|
4407
|
-
if (!allowRegistration("parser.override", "registerParser", "parser")) {
|
|
4459
|
+
this.registerCommandDefinition(commandOrDefinition);
|
|
4460
|
+
}
|
|
4461
|
+
registerParser(command, override) {
|
|
4462
|
+
assertExtensionCapability(this.#loadedExtension, "parser", "registerParser");
|
|
4463
|
+
if (!this.allowRegistration("parser.override", "registerParser", "parser")) {
|
|
4408
4464
|
return;
|
|
4409
4465
|
}
|
|
4410
4466
|
const normalizedCommand = normalizeCommandName(assertNonEmptyString("registerParser command", command));
|
|
4411
4467
|
assertFunctionHandler("registerParser override", override);
|
|
4412
|
-
|
|
4413
|
-
layer:
|
|
4414
|
-
name:
|
|
4468
|
+
this.#parserRegistry.overrides.push({
|
|
4469
|
+
layer: this.#loadedExtension.layer,
|
|
4470
|
+
name: this.#loadedExtension.name,
|
|
4415
4471
|
command: normalizedCommand,
|
|
4416
4472
|
run: override
|
|
4417
4473
|
});
|
|
4418
|
-
}
|
|
4419
|
-
|
|
4420
|
-
assertExtensionCapability(
|
|
4421
|
-
if (!allowRegistration("preflight.override", "registerPreflight", "preflight")) {
|
|
4474
|
+
}
|
|
4475
|
+
registerPreflight(override) {
|
|
4476
|
+
assertExtensionCapability(this.#loadedExtension, "preflight", "registerPreflight");
|
|
4477
|
+
if (!this.allowRegistration("preflight.override", "registerPreflight", "preflight")) {
|
|
4422
4478
|
return;
|
|
4423
4479
|
}
|
|
4424
4480
|
assertFunctionHandler("registerPreflight override", override);
|
|
4425
|
-
|
|
4426
|
-
layer:
|
|
4427
|
-
name:
|
|
4481
|
+
this.#preflightRegistry.overrides.push({
|
|
4482
|
+
layer: this.#loadedExtension.layer,
|
|
4483
|
+
name: this.#loadedExtension.name,
|
|
4428
4484
|
run: override
|
|
4429
4485
|
});
|
|
4430
|
-
}
|
|
4431
|
-
|
|
4432
|
-
assertExtensionCapability(
|
|
4486
|
+
}
|
|
4487
|
+
registerService(service, override) {
|
|
4488
|
+
assertExtensionCapability(this.#loadedExtension, "services", "registerService");
|
|
4433
4489
|
const normalizedService = String(service).trim().toLowerCase();
|
|
4434
4490
|
if (!isExtensionServiceName(normalizedService)) {
|
|
4435
4491
|
throw new TypeError(`registerService service must be one of: ${KNOWN_EXTENSION_SERVICE_NAMES.join(", ")}`);
|
|
4436
4492
|
}
|
|
4437
|
-
if (!allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
|
|
4493
|
+
if (!this.allowRegistration("services.override", "registerService", "services", { service: normalizedService })) {
|
|
4438
4494
|
return;
|
|
4439
4495
|
}
|
|
4440
4496
|
assertFunctionHandler("registerService override", override);
|
|
4441
|
-
|
|
4442
|
-
layer:
|
|
4443
|
-
name:
|
|
4497
|
+
this.#serviceRegistry.overrides.push({
|
|
4498
|
+
layer: this.#loadedExtension.layer,
|
|
4499
|
+
name: this.#loadedExtension.name,
|
|
4444
4500
|
service: normalizedService,
|
|
4445
4501
|
run: override
|
|
4446
4502
|
});
|
|
4447
|
-
}
|
|
4448
|
-
|
|
4449
|
-
assertExtensionCapability(
|
|
4450
|
-
if (!allowRegistration("renderers.override", "registerRenderer", "renderers")) {
|
|
4503
|
+
}
|
|
4504
|
+
registerRenderer(format, renderer) {
|
|
4505
|
+
assertExtensionCapability(this.#loadedExtension, "renderers", "registerRenderer");
|
|
4506
|
+
if (!this.allowRegistration("renderers.override", "registerRenderer", "renderers")) {
|
|
4451
4507
|
return;
|
|
4452
4508
|
}
|
|
4453
4509
|
if (typeof renderer !== "function") {
|
|
@@ -4457,16 +4513,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4457
4513
|
if (!isOutputRendererFormat(normalizedFormat)) {
|
|
4458
4514
|
throw new Error(`registerRenderer format must be toon|json, received: ${String(format)}`);
|
|
4459
4515
|
}
|
|
4460
|
-
|
|
4461
|
-
layer:
|
|
4462
|
-
name:
|
|
4516
|
+
this.#rendererRegistry.overrides.push({
|
|
4517
|
+
layer: this.#loadedExtension.layer,
|
|
4518
|
+
name: this.#loadedExtension.name,
|
|
4463
4519
|
format: normalizedFormat,
|
|
4464
4520
|
run: renderer
|
|
4465
4521
|
});
|
|
4466
|
-
}
|
|
4467
|
-
|
|
4468
|
-
assertExtensionCapability(
|
|
4469
|
-
if (!allowRegistration("schema.flags", "registerFlags", "schema")) {
|
|
4522
|
+
}
|
|
4523
|
+
registerFlags(targetCommand, flags) {
|
|
4524
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerFlags");
|
|
4525
|
+
if (!this.allowRegistration("schema.flags", "registerFlags", "schema")) {
|
|
4470
4526
|
return;
|
|
4471
4527
|
}
|
|
4472
4528
|
const normalizedTargetCommand = normalizeCommandName(assertNonEmptyString("registerFlags targetCommand", targetCommand));
|
|
@@ -4475,16 +4531,16 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4475
4531
|
if (normalizedFlags.length === 0) {
|
|
4476
4532
|
throw new TypeError("registerFlags requires at least one flag definition");
|
|
4477
4533
|
}
|
|
4478
|
-
|
|
4479
|
-
layer:
|
|
4480
|
-
name:
|
|
4534
|
+
this.#registrationRegistry.flags.push({
|
|
4535
|
+
layer: this.#loadedExtension.layer,
|
|
4536
|
+
name: this.#loadedExtension.name,
|
|
4481
4537
|
target_command: normalizedTargetCommand,
|
|
4482
4538
|
flags: normalizedFlags
|
|
4483
4539
|
});
|
|
4484
|
-
}
|
|
4485
|
-
|
|
4486
|
-
assertExtensionCapability(
|
|
4487
|
-
if (!allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
|
|
4540
|
+
}
|
|
4541
|
+
registerItemFields(fields) {
|
|
4542
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerItemFields");
|
|
4543
|
+
if (!this.allowRegistration("schema.itemfields", "registerItemFields", "schema")) {
|
|
4488
4544
|
return;
|
|
4489
4545
|
}
|
|
4490
4546
|
validateItemFieldDefinitions(fields);
|
|
@@ -4492,15 +4548,15 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4492
4548
|
if (normalizedFields.length === 0) {
|
|
4493
4549
|
throw new TypeError("registerItemFields requires at least one field definition");
|
|
4494
4550
|
}
|
|
4495
|
-
|
|
4496
|
-
layer:
|
|
4497
|
-
name:
|
|
4551
|
+
this.#registrationRegistry.item_fields.push({
|
|
4552
|
+
layer: this.#loadedExtension.layer,
|
|
4553
|
+
name: this.#loadedExtension.name,
|
|
4498
4554
|
fields: normalizedFields
|
|
4499
4555
|
});
|
|
4500
|
-
}
|
|
4501
|
-
|
|
4502
|
-
assertExtensionCapability(
|
|
4503
|
-
if (!allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
|
|
4556
|
+
}
|
|
4557
|
+
registerItemTypes(types) {
|
|
4558
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerItemTypes");
|
|
4559
|
+
if (!this.allowRegistration("schema.itemtypes", "registerItemTypes", "schema")) {
|
|
4504
4560
|
return;
|
|
4505
4561
|
}
|
|
4506
4562
|
validateItemTypeDefinitions(types);
|
|
@@ -4508,39 +4564,39 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4508
4564
|
if (normalizedTypes.length === 0) {
|
|
4509
4565
|
throw new TypeError("registerItemTypes requires at least one type definition");
|
|
4510
4566
|
}
|
|
4511
|
-
|
|
4512
|
-
layer:
|
|
4513
|
-
name:
|
|
4567
|
+
this.#registrationRegistry.item_types.push({
|
|
4568
|
+
layer: this.#loadedExtension.layer,
|
|
4569
|
+
name: this.#loadedExtension.name,
|
|
4514
4570
|
types: normalizedTypes
|
|
4515
4571
|
});
|
|
4516
|
-
}
|
|
4517
|
-
|
|
4518
|
-
assertExtensionCapability(
|
|
4519
|
-
if (!allowRegistration("schema.migrations", "registerMigration", "schema")) {
|
|
4572
|
+
}
|
|
4573
|
+
registerMigration(definition) {
|
|
4574
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerMigration");
|
|
4575
|
+
if (!this.allowRegistration("schema.migrations", "registerMigration", "schema")) {
|
|
4520
4576
|
return;
|
|
4521
4577
|
}
|
|
4522
4578
|
validateMigrationDefinition(definition);
|
|
4523
4579
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerMigration definition", definition);
|
|
4524
|
-
|
|
4525
|
-
layer:
|
|
4526
|
-
name:
|
|
4580
|
+
this.#registrationRegistry.migrations.push(attachRuntimeDefinition({
|
|
4581
|
+
layer: this.#loadedExtension.layer,
|
|
4582
|
+
name: this.#loadedExtension.name,
|
|
4527
4583
|
definition: normalizeRegistrationRecord("registerMigration definition", definition)
|
|
4528
4584
|
}, runtimeDefinition));
|
|
4529
|
-
}
|
|
4530
|
-
|
|
4531
|
-
assertExtensionCapability(
|
|
4532
|
-
if (!allowRegistration("schema.profiles", "registerProfile", "schema")) {
|
|
4585
|
+
}
|
|
4586
|
+
registerProfile(profile) {
|
|
4587
|
+
assertExtensionCapability(this.#loadedExtension, "schema", "registerProfile");
|
|
4588
|
+
if (!this.allowRegistration("schema.profiles", "registerProfile", "schema")) {
|
|
4533
4589
|
return;
|
|
4534
4590
|
}
|
|
4535
4591
|
const snapshot = cloneRuntimeRegistrationValue(profile);
|
|
4536
4592
|
validateProjectProfileDefinition(snapshot);
|
|
4537
|
-
|
|
4538
|
-
layer:
|
|
4539
|
-
name:
|
|
4593
|
+
this.#registrationRegistry.profiles.push({
|
|
4594
|
+
layer: this.#loadedExtension.layer,
|
|
4595
|
+
name: this.#loadedExtension.name,
|
|
4540
4596
|
profile: applyProjectProfileDefaults(snapshot)
|
|
4541
4597
|
});
|
|
4542
|
-
}
|
|
4543
|
-
|
|
4598
|
+
}
|
|
4599
|
+
applyImportExportCommandMetadata(method, commandPath, options) {
|
|
4544
4600
|
if (options === void 0) {
|
|
4545
4601
|
return;
|
|
4546
4602
|
}
|
|
@@ -4555,21 +4611,21 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4555
4611
|
const failureHints = normalizeOptionalStringArrayField(`${method} options.failure_hints`, options.failure_hints);
|
|
4556
4612
|
const argumentsDefinition = normalizeCommandDefinitionArguments(options.arguments);
|
|
4557
4613
|
if (options.flags !== void 0) {
|
|
4558
|
-
assertExtensionCapability(
|
|
4559
|
-
if (allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
|
|
4614
|
+
assertExtensionCapability(this.#loadedExtension, "schema", `${method} options.flags`);
|
|
4615
|
+
if (this.allowRegistration("schema.flags", `${method} options.flags`, "schema")) {
|
|
4560
4616
|
validateFlagDefinitions(options.flags);
|
|
4561
|
-
|
|
4562
|
-
layer:
|
|
4563
|
-
name:
|
|
4617
|
+
this.#registrationRegistry.flags.push({
|
|
4618
|
+
layer: this.#loadedExtension.layer,
|
|
4619
|
+
name: this.#loadedExtension.name,
|
|
4564
4620
|
target_command: commandPath,
|
|
4565
4621
|
flags: normalizeRegistrationRecordList(`${method} options.flags`, options.flags)
|
|
4566
4622
|
});
|
|
4567
4623
|
}
|
|
4568
4624
|
}
|
|
4569
4625
|
const registration = {
|
|
4570
|
-
layer:
|
|
4571
|
-
name:
|
|
4572
|
-
source_package:
|
|
4626
|
+
layer: this.#loadedExtension.layer,
|
|
4627
|
+
name: this.#loadedExtension.name,
|
|
4628
|
+
source_package: this.#loadedExtension.source_package,
|
|
4573
4629
|
command: commandPath,
|
|
4574
4630
|
action,
|
|
4575
4631
|
examples,
|
|
@@ -4584,25 +4640,25 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4584
4640
|
if (intent) {
|
|
4585
4641
|
registration.intent = intent;
|
|
4586
4642
|
}
|
|
4587
|
-
|
|
4588
|
-
}
|
|
4589
|
-
|
|
4590
|
-
assertExtensionCapability(
|
|
4591
|
-
if (!allowRegistration("importers.importer", "registerImporter", "importers")) {
|
|
4643
|
+
this.#registrationRegistry.commands.push(registration);
|
|
4644
|
+
}
|
|
4645
|
+
registerImporter(name, importer, options) {
|
|
4646
|
+
assertExtensionCapability(this.#loadedExtension, "importers", "registerImporter");
|
|
4647
|
+
if (!this.allowRegistration("importers.importer", "registerImporter", "importers")) {
|
|
4592
4648
|
return;
|
|
4593
4649
|
}
|
|
4594
4650
|
const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerImporter name", name));
|
|
4595
4651
|
assertFunctionHandler("registerImporter importer", importer);
|
|
4596
4652
|
const commandPath = toRegistrationCommandPath(normalizedName, "import");
|
|
4597
|
-
applyImportExportCommandMetadata("registerImporter", commandPath, options);
|
|
4598
|
-
|
|
4599
|
-
layer:
|
|
4600
|
-
name:
|
|
4653
|
+
this.applyImportExportCommandMetadata("registerImporter", commandPath, options);
|
|
4654
|
+
this.#registrationRegistry.importers.push({
|
|
4655
|
+
layer: this.#loadedExtension.layer,
|
|
4656
|
+
name: this.#loadedExtension.name,
|
|
4601
4657
|
importer: normalizedName
|
|
4602
4658
|
});
|
|
4603
|
-
|
|
4604
|
-
layer:
|
|
4605
|
-
name:
|
|
4659
|
+
this.#commandRegistry.handlers.push({
|
|
4660
|
+
layer: this.#loadedExtension.layer,
|
|
4661
|
+
name: this.#loadedExtension.name,
|
|
4606
4662
|
command: commandPath,
|
|
4607
4663
|
run: async (context) => importer({
|
|
4608
4664
|
registration: normalizedName,
|
|
@@ -4614,24 +4670,24 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4614
4670
|
pm_root: context.pm_root
|
|
4615
4671
|
})
|
|
4616
4672
|
});
|
|
4617
|
-
}
|
|
4618
|
-
|
|
4619
|
-
assertExtensionCapability(
|
|
4620
|
-
if (!allowRegistration("importers.exporter", "registerExporter", "importers")) {
|
|
4673
|
+
}
|
|
4674
|
+
registerExporter(name, exporter, options) {
|
|
4675
|
+
assertExtensionCapability(this.#loadedExtension, "importers", "registerExporter");
|
|
4676
|
+
if (!this.allowRegistration("importers.exporter", "registerExporter", "importers")) {
|
|
4621
4677
|
return;
|
|
4622
4678
|
}
|
|
4623
4679
|
const normalizedName = normalizeRegistrationName(assertNonEmptyString("registerExporter name", name));
|
|
4624
4680
|
assertFunctionHandler("registerExporter exporter", exporter);
|
|
4625
4681
|
const commandPath = toRegistrationCommandPath(normalizedName, "export");
|
|
4626
|
-
applyImportExportCommandMetadata("registerExporter", commandPath, options);
|
|
4627
|
-
|
|
4628
|
-
layer:
|
|
4629
|
-
name:
|
|
4682
|
+
this.applyImportExportCommandMetadata("registerExporter", commandPath, options);
|
|
4683
|
+
this.#registrationRegistry.exporters.push({
|
|
4684
|
+
layer: this.#loadedExtension.layer,
|
|
4685
|
+
name: this.#loadedExtension.name,
|
|
4630
4686
|
exporter: normalizedName
|
|
4631
4687
|
});
|
|
4632
|
-
|
|
4633
|
-
layer:
|
|
4634
|
-
name:
|
|
4688
|
+
this.#commandRegistry.handlers.push({
|
|
4689
|
+
layer: this.#loadedExtension.layer,
|
|
4690
|
+
name: this.#loadedExtension.name,
|
|
4635
4691
|
command: commandPath,
|
|
4636
4692
|
run: async (context) => exporter({
|
|
4637
4693
|
registration: normalizedName,
|
|
@@ -4643,115 +4699,94 @@ function createExtensionApi(extension, hooks, commands, parsers, preflight, serv
|
|
|
4643
4699
|
pm_root: context.pm_root
|
|
4644
4700
|
})
|
|
4645
4701
|
});
|
|
4646
|
-
}
|
|
4647
|
-
|
|
4648
|
-
assertExtensionCapability(
|
|
4649
|
-
if (!allowRegistration("search.provider", "registerSearchProvider", "search")) {
|
|
4702
|
+
}
|
|
4703
|
+
registerSearchProvider(provider) {
|
|
4704
|
+
assertExtensionCapability(this.#loadedExtension, "search", "registerSearchProvider");
|
|
4705
|
+
if (!this.allowRegistration("search.provider", "registerSearchProvider", "search")) {
|
|
4650
4706
|
return;
|
|
4651
4707
|
}
|
|
4652
4708
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerSearchProvider provider", provider);
|
|
4653
|
-
|
|
4654
|
-
layer:
|
|
4655
|
-
name:
|
|
4709
|
+
this.#registrationRegistry.search_providers.push(attachRuntimeDefinition({
|
|
4710
|
+
layer: this.#loadedExtension.layer,
|
|
4711
|
+
name: this.#loadedExtension.name,
|
|
4656
4712
|
definition: normalizeRegistrationRecord("registerSearchProvider provider", provider)
|
|
4657
4713
|
}, runtimeDefinition));
|
|
4658
|
-
}
|
|
4659
|
-
|
|
4660
|
-
assertExtensionCapability(
|
|
4661
|
-
if (!allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
|
|
4714
|
+
}
|
|
4715
|
+
registerVectorStoreAdapter(adapter) {
|
|
4716
|
+
assertExtensionCapability(this.#loadedExtension, "search", "registerVectorStoreAdapter");
|
|
4717
|
+
if (!this.allowRegistration("search.vectorstore", "registerVectorStoreAdapter", "search")) {
|
|
4662
4718
|
return;
|
|
4663
4719
|
}
|
|
4664
4720
|
const runtimeDefinition = normalizeRuntimeRegistrationRecord("registerVectorStoreAdapter adapter", adapter);
|
|
4665
|
-
|
|
4666
|
-
layer:
|
|
4667
|
-
name:
|
|
4721
|
+
this.#registrationRegistry.vector_store_adapters.push(attachRuntimeDefinition({
|
|
4722
|
+
layer: this.#loadedExtension.layer,
|
|
4723
|
+
name: this.#loadedExtension.name,
|
|
4668
4724
|
definition: normalizeRegistrationRecord("registerVectorStoreAdapter adapter", adapter)
|
|
4669
4725
|
}, runtimeDefinition));
|
|
4670
|
-
}
|
|
4671
|
-
|
|
4672
|
-
assertExtensionCapability(
|
|
4673
|
-
if (!allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
|
|
4726
|
+
}
|
|
4727
|
+
registerBeforeCommand(hook) {
|
|
4728
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.beforeCommand");
|
|
4729
|
+
if (!this.allowRegistration("hooks.beforecommand", "api.hooks.beforeCommand", "hooks")) {
|
|
4674
4730
|
return;
|
|
4675
4731
|
}
|
|
4676
4732
|
assertHookHandler("beforeCommand", hook);
|
|
4677
|
-
|
|
4678
|
-
layer:
|
|
4679
|
-
name:
|
|
4733
|
+
this.#hookRegistry.beforeCommand.push({
|
|
4734
|
+
layer: this.#loadedExtension.layer,
|
|
4735
|
+
name: this.#loadedExtension.name,
|
|
4680
4736
|
run: hook
|
|
4681
4737
|
});
|
|
4682
|
-
}
|
|
4683
|
-
|
|
4684
|
-
assertExtensionCapability(
|
|
4685
|
-
if (!allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
|
|
4738
|
+
}
|
|
4739
|
+
registerAfterCommand(hook) {
|
|
4740
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.afterCommand");
|
|
4741
|
+
if (!this.allowRegistration("hooks.aftercommand", "api.hooks.afterCommand", "hooks")) {
|
|
4686
4742
|
return;
|
|
4687
4743
|
}
|
|
4688
4744
|
assertHookHandler("afterCommand", hook);
|
|
4689
|
-
|
|
4690
|
-
layer:
|
|
4691
|
-
name:
|
|
4745
|
+
this.#hookRegistry.afterCommand.push({
|
|
4746
|
+
layer: this.#loadedExtension.layer,
|
|
4747
|
+
name: this.#loadedExtension.name,
|
|
4692
4748
|
run: hook
|
|
4693
4749
|
});
|
|
4694
|
-
}
|
|
4695
|
-
|
|
4696
|
-
assertExtensionCapability(
|
|
4697
|
-
if (!allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
|
|
4750
|
+
}
|
|
4751
|
+
registerOnWrite(hook) {
|
|
4752
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onWrite");
|
|
4753
|
+
if (!this.allowRegistration("hooks.onwrite", "api.hooks.onWrite", "hooks")) {
|
|
4698
4754
|
return;
|
|
4699
4755
|
}
|
|
4700
4756
|
assertHookHandler("onWrite", hook);
|
|
4701
|
-
|
|
4702
|
-
layer:
|
|
4703
|
-
name:
|
|
4757
|
+
this.#hookRegistry.onWrite.push({
|
|
4758
|
+
layer: this.#loadedExtension.layer,
|
|
4759
|
+
name: this.#loadedExtension.name,
|
|
4704
4760
|
run: hook
|
|
4705
4761
|
});
|
|
4706
|
-
}
|
|
4707
|
-
|
|
4708
|
-
assertExtensionCapability(
|
|
4709
|
-
if (!allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
|
|
4762
|
+
}
|
|
4763
|
+
registerOnRead(hook) {
|
|
4764
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onRead");
|
|
4765
|
+
if (!this.allowRegistration("hooks.onread", "api.hooks.onRead", "hooks")) {
|
|
4710
4766
|
return;
|
|
4711
4767
|
}
|
|
4712
4768
|
assertHookHandler("onRead", hook);
|
|
4713
|
-
|
|
4714
|
-
layer:
|
|
4715
|
-
name:
|
|
4769
|
+
this.#hookRegistry.onRead.push({
|
|
4770
|
+
layer: this.#loadedExtension.layer,
|
|
4771
|
+
name: this.#loadedExtension.name,
|
|
4716
4772
|
run: hook
|
|
4717
4773
|
});
|
|
4718
|
-
}
|
|
4719
|
-
|
|
4720
|
-
assertExtensionCapability(
|
|
4721
|
-
if (!allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
|
|
4774
|
+
}
|
|
4775
|
+
registerOnIndex(hook) {
|
|
4776
|
+
assertExtensionCapability(this.#loadedExtension, "hooks", "api.hooks.onIndex");
|
|
4777
|
+
if (!this.allowRegistration("hooks.onindex", "api.hooks.onIndex", "hooks")) {
|
|
4722
4778
|
return;
|
|
4723
4779
|
}
|
|
4724
4780
|
assertHookHandler("onIndex", hook);
|
|
4725
|
-
|
|
4726
|
-
layer:
|
|
4727
|
-
name:
|
|
4781
|
+
this.#hookRegistry.onIndex.push({
|
|
4782
|
+
layer: this.#loadedExtension.layer,
|
|
4783
|
+
name: this.#loadedExtension.name,
|
|
4728
4784
|
run: hook
|
|
4729
4785
|
});
|
|
4730
|
-
}
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
registerParser,
|
|
4735
|
-
registerPreflight,
|
|
4736
|
-
registerService,
|
|
4737
|
-
registerFlags,
|
|
4738
|
-
registerItemFields,
|
|
4739
|
-
registerItemTypes,
|
|
4740
|
-
registerMigration,
|
|
4741
|
-
registerProfile,
|
|
4742
|
-
registerRenderer,
|
|
4743
|
-
registerImporter,
|
|
4744
|
-
registerExporter,
|
|
4745
|
-
registerSearchProvider,
|
|
4746
|
-
registerVectorStoreAdapter,
|
|
4747
|
-
hooks: {
|
|
4748
|
-
beforeCommand: registerBeforeCommand,
|
|
4749
|
-
afterCommand: registerAfterCommand,
|
|
4750
|
-
onWrite: registerOnWrite,
|
|
4751
|
-
onRead: registerOnRead,
|
|
4752
|
-
onIndex: registerOnIndex
|
|
4753
|
-
}
|
|
4754
|
-
};
|
|
4786
|
+
}
|
|
4787
|
+
};
|
|
4788
|
+
function createExtensionApi(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy) {
|
|
4789
|
+
return new ExtensionApiRegistrar(extension, hooks, commands, parsers, preflight, services, renderers, registrations, activationWarnings, policy);
|
|
4755
4790
|
}
|
|
4756
4791
|
function getRegistrationCounts(registrations) {
|
|
4757
4792
|
const commandCount = registrations.commands.length;
|
|
@@ -5816,4 +5851,4 @@ export {
|
|
|
5816
5851
|
statusIsTerminal,
|
|
5817
5852
|
evictOldestMemoEntries
|
|
5818
5853
|
};
|
|
5819
|
-
//# sourceMappingURL=chunk-
|
|
5854
|
+
//# sourceMappingURL=chunk-2BVD4ZD2.js.map
|