@unbrained/pm-cli 2026.6.23 → 2026.6.24
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 +28 -0
- package/dist/cli/commands/extension/scaffold.js +142 -54
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension.js +10 -3
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli-bundle/chunks/activity-54TXGJ2T.js +18 -0
- package/dist/cli-bundle/chunks/{activity-H2LMOSSW.js → activity-N7RVTLBQ.js} +11 -11
- package/dist/cli-bundle/chunks/{aggregate-R725FC3S.js → aggregate-63NWNIBR.js} +10 -10
- package/dist/cli-bundle/chunks/{aggregate-EGJLZQBI.js → aggregate-YHCYX2EV.js} +10 -10
- package/dist/cli-bundle/chunks/{append-5J345QGU.js → append-PUKREFV5.js} +8 -8
- package/dist/cli-bundle/chunks/{append-O5HPBMRN.js → append-VLQQDHMJ.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-3VY3YQO6.js → chunk-2WCYE3IF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WZQWHN4R.js → chunk-3BKH2CL3.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7UGEAPRY.js → chunk-4XDGYFHL.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-H4IIJDE4.js → chunk-5BBEWX6C.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2CKH2LMV.js → chunk-5S4ZGDB2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4KD54S3Z.js → chunk-6EBNFQOR.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-QL5RVYOA.js → chunk-6EL7SW5C.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-MJTINN54.js → chunk-6W3Y65PL.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-U2Z5YUSO.js → chunk-A66VYUOV.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-Q2KNGP7C.js → chunk-ABYCA5VX.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-VFAQ4LMN.js → chunk-AEACLRVH.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-7AUB5HNA.js → chunk-ALKFCIIB.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-H2IP4QLJ.js → chunk-ALQKV6U7.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-G6N5VEOK.js → chunk-AYPQUFCX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7MRQ4HMK.js → chunk-B74BP6IS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7SV63ZHD.js → chunk-BFFO3AIB.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-NCVCO3NZ.js → chunk-C4C3EJCJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UVC5LOR7.js → chunk-CG3KP6I5.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-FXR67XVQ.js → chunk-CZIFFMZI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XVF4YARA.js → chunk-DTABLLVE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7XGQXHFB.js → chunk-EOGBMLCE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TQZH6OD6.js → chunk-EWRSXOIZ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-MJTSZKK5.js → chunk-EYPINTFR.js} +131 -97
- package/dist/cli-bundle/chunks/chunk-EYPINTFR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IB3GYLQE.js → chunk-F32L4HR6.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-SBQTAVJZ.js → chunk-F4BNR2IN.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-S2RUQSX2.js → chunk-FBLT6WGK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2T3JG6V4.js → chunk-FMWW2JDU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-W72GHSJE.js → chunk-GDUMGZK3.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-Y4SUQQYH.js → chunk-GQYJEEFX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AONIHR2C.js → chunk-HBAEFWX3.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-YUDJD3XO.js → chunk-HC2S36NB.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-DT5LPYOD.js → chunk-HZF5RLKX.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-P77P2ILI.js → chunk-I6QMJ2XT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZRK4O56R.js → chunk-IAP5KYBQ.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-MVKFOLLM.js → chunk-INPHFO33.js} +119 -49
- package/dist/cli-bundle/chunks/chunk-INPHFO33.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-SKH7OGE5.js → chunk-IOT6WRL5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-66MEDTUD.js → chunk-IXAZI443.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4BHT5VDC.js → chunk-J3NMWFIN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HFFUQR73.js → chunk-J7I4C5ZB.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-G6PYHBBR.js → chunk-JKL6HRMV.js} +12 -7
- package/dist/cli-bundle/chunks/chunk-JKL6HRMV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-NK3UPBVG.js → chunk-JPJDP4VU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-T5472OMV.js → chunk-JV27C7OZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ZQ3ZVXX2.js → chunk-KIEAK7YE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5UVVASSA.js → chunk-KJZOSF7J.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-CIIK67GW.js → chunk-KKX4Z2SE.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-KQMUV6LX.js → chunk-L7UXKP2I.js} +13 -8
- package/dist/cli-bundle/chunks/chunk-L7UXKP2I.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GAJVRGGA.js → chunk-LNEDHJNQ.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-BB6MDVNQ.js → chunk-LU36E6GU.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-CE5P2NQR.js → chunk-M6TUBOGW.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-55ISXAQH.js → chunk-MEXZ5XUM.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AD3A7ZD6.js → chunk-MWMHZOZZ.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-46G6RSB6.js → chunk-N5B6WZC5.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-C5AOG6D2.js → chunk-NJ73ALW2.js} +120 -50
- package/dist/cli-bundle/chunks/chunk-NJ73ALW2.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-S26C36QC.js → chunk-NVXGVEFD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2BFPAUAF.js → chunk-OF7V47P3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IPKJ6B36.js → chunk-OHDQNKJB.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-2RDVQEWV.js → chunk-OQ2E64FH.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-5VOINNKT.js → chunk-PEL2NLQE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SKN7LC5W.js → chunk-PRVTGX64.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-34EONI5F.js → chunk-QOUOMPHO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QH3PJYON.js → chunk-RAWA3Y7O.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-LRKKONT2.js → chunk-RRP6D345.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-FIGAZ4Y7.js → chunk-SKC4UTRP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CKGNPJAG.js → chunk-SMXSDY7J.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KFWBJPSG.js → chunk-SUREE24M.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-O6LLO73I.js → chunk-TIM4OD74.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YDEXO24S.js → chunk-TKPP4GOO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-T72AZDBA.js → chunk-TSI32UEL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7K2XXO4I.js → chunk-UACWNBL2.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-WBRKK5QR.js → chunk-V4UYNSEM.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-M4T5DXD5.js → chunk-VFJYVXHL.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-UELRKQQU.js → chunk-VSAABFGQ.js} +125 -98
- package/dist/cli-bundle/chunks/chunk-VSAABFGQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-WM5ZVBPE.js → chunk-WB5BYQMF.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-SR3EKWZG.js → chunk-XVYKWZNL.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-JR2LV3M4.js → chunk-XXKV4UWE.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-2A34E3BA.js → chunk-YV2OSAMS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VAYA4XFX.js → chunk-ZLWRPBOW.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YJ3SUEPD.js → chunk-ZV7IQ23N.js} +2 -2
- package/dist/cli-bundle/chunks/{claim-4KHAA2RN.js → claim-FZZZCAY6.js} +10 -10
- package/dist/cli-bundle/chunks/{claim-CSPJFLNH.js → claim-XK5QBZE3.js} +10 -10
- package/dist/cli-bundle/chunks/close-JEBZXONN.js +15 -0
- package/dist/cli-bundle/chunks/{close-W56IOGYG.js → close-QHMVWM7M.js} +8 -8
- package/dist/cli-bundle/chunks/{close-many-BX5DCSVV.js → close-many-OIXJE2JZ.js} +15 -15
- package/dist/cli-bundle/chunks/{close-many-TQU5F4E4.js → close-many-SUU5BS2C.js} +15 -15
- package/dist/cli-bundle/chunks/{comments-U5KUC4EU.js → comments-5YM62D75.js} +10 -10
- package/dist/cli-bundle/chunks/{comments-VRECH75R.js → comments-RH3IBIRH.js} +10 -10
- package/dist/cli-bundle/chunks/{config-D3OKQO52.js → config-NCNNWF6R.js} +8 -8
- package/dist/cli-bundle/chunks/{config-MMJA4LLK.js → config-SW3U7XP2.js} +8 -8
- package/dist/cli-bundle/chunks/{context-DHLVPXN3.js → context-55VEOYI3.js} +13 -13
- package/dist/cli-bundle/chunks/{context-BLBD3PUB.js → context-5LB7UGKE.js} +13 -13
- package/dist/cli-bundle/chunks/{contracts-XGVMMPC5.js → contracts-JXFGBOYT.js} +4 -4
- package/dist/cli-bundle/chunks/{contracts-C3SZCXXG.js → contracts-SY6PDFIK.js} +4 -4
- package/dist/cli-bundle/chunks/{copy-5D5DX3VK.js → copy-IEDBJOOX.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-HHL3K4QP.js → copy-N3GE6FYS.js} +7 -7
- package/dist/cli-bundle/chunks/create-CLSCHGJJ.js +30 -0
- package/dist/cli-bundle/chunks/{create-IXY43O4H.js → create-O4VONGPG.js} +14 -14
- package/dist/cli-bundle/chunks/{delete-IBUR3M42.js → delete-724EQ6OS.js} +7 -7
- package/dist/cli-bundle/chunks/{delete-QQC2FGUH.js → delete-LPEIF7RU.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-VTPO4BSE.js → deps-RSBU4SIU.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-KWKRHXIN.js → deps-T3Y6Y7RT.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-7CHFHXLN.js → docs-75ZLCO3G.js} +9 -9
- package/dist/cli-bundle/chunks/{docs-IIO3FEUO.js → docs-IFS7HZPP.js} +9 -9
- package/dist/cli-bundle/chunks/{eval-IO7LREOL.js → eval-L2KD7W3M.js} +12 -12
- package/dist/cli-bundle/chunks/{eval-CEYYEPSX.js → eval-QGR7JCQO.js} +12 -12
- package/dist/cli-bundle/chunks/{extension-KCPUWSY2.js → extension-3JYWJ5K2.js} +6 -6
- package/dist/cli-bundle/chunks/{extension-UTTQDUYI.js → extension-YQF4CPIR.js} +6 -6
- package/dist/cli-bundle/chunks/{files-Z2HHEFGP.js → files-5BQWDRDT.js} +9 -9
- package/dist/cli-bundle/chunks/{files-TPUL6KWB.js → files-EPEJMJHQ.js} +9 -9
- package/dist/cli-bundle/chunks/{focus-JVJCGC2D.js → focus-DQVJAPOE.js} +8 -8
- package/dist/cli-bundle/chunks/{focus-YRNNH7IP.js → focus-RWGKD76E.js} +8 -8
- package/dist/cli-bundle/chunks/{gc-O5GUO3SU.js → gc-BEJMQT64.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-PYVVEELM.js → gc-JEFQDJPA.js} +3 -3
- package/dist/cli-bundle/chunks/{get-X4O3HBEY.js → get-LQG6PEVG.js} +11 -11
- package/dist/cli-bundle/chunks/{get-ENLTEGTX.js → get-WVN75H42.js} +11 -11
- package/dist/cli-bundle/chunks/{health-BOTB7YSU.js → health-JJJOY7DJ.js} +14 -14
- package/dist/cli-bundle/chunks/{health-5EXTY44Q.js → health-P67NZ6TT.js} +14 -14
- package/dist/cli-bundle/chunks/history-ALTM2RRP.js +20 -0
- package/dist/cli-bundle/chunks/{history-AJTXLT6S.js → history-RUKPKNY7.js} +10 -10
- package/dist/cli-bundle/chunks/{history-compact-43OOUAWD.js → history-compact-NQ7VPRVT.js} +12 -12
- package/dist/cli-bundle/chunks/{history-compact-46MRHW3I.js → history-compact-ZAOWR7GD.js} +12 -12
- package/dist/cli-bundle/chunks/history-redact-5YGLWUDH.js +21 -0
- package/dist/cli-bundle/chunks/{history-redact-KUUUVUFM.js → history-redact-YY4XYVEP.js} +11 -11
- package/dist/cli-bundle/chunks/{history-repair-VQTYOSRS.js → history-repair-EHL4ODQY.js} +12 -12
- package/dist/cli-bundle/chunks/{history-repair-B5PZBOPU.js → history-repair-YSQH6SY6.js} +12 -12
- package/dist/cli-bundle/chunks/init-C4CRHW22.js +21 -0
- package/dist/cli-bundle/chunks/{init-BNLVFPRG.js → init-HBFGYS66.js} +11 -11
- package/dist/cli-bundle/chunks/{learnings-XSGX52S7.js → learnings-J555ZFPD.js} +10 -10
- package/dist/cli-bundle/chunks/{learnings-MUUU5KMC.js → learnings-KFQO7GEZ.js} +10 -10
- package/dist/cli-bundle/chunks/{list-32U7BSKE.js → list-C7R33MD5.js} +10 -10
- package/dist/cli-bundle/chunks/{list-ZEEOHLTQ.js → list-DSN6UNFB.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-NJ45OZGF.js → notes-V4VNIQL4.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-OHU25L3M.js → notes-VYJFN2A3.js} +10 -10
- package/dist/cli-bundle/chunks/{plan-KQA7CAKI.js → plan-DHRSVSHR.js} +14 -14
- package/dist/cli-bundle/chunks/{plan-LWWAEV5Y.js → plan-RBHQ5PO7.js} +14 -14
- package/dist/cli-bundle/chunks/{register-list-query-DDCHPONM.js → register-list-query-CCMHGZTF.js} +19 -19
- package/dist/cli-bundle/chunks/{register-list-query-YNPBVIKM.js → register-list-query-OM3E2KMY.js} +19 -19
- package/dist/cli-bundle/chunks/{register-mutation-7ALWDDAX.js → register-mutation-N3CDEGZU.js} +33 -33
- package/dist/cli-bundle/chunks/{register-mutation-LAVKYY63.js → register-mutation-UXTTWL6N.js} +33 -33
- package/dist/cli-bundle/chunks/{register-operations-U5JAW3WE.js → register-operations-R2FLOCRI.js} +32 -32
- package/dist/cli-bundle/chunks/{register-operations-R4VOQ6EF.js → register-operations-UDIFMQKD.js} +32 -32
- package/dist/cli-bundle/chunks/{register-setup-RCRUHMSZ.js → register-setup-G5LTSFYK.js} +17 -17
- package/dist/cli-bundle/chunks/{register-setup-KBXQDCXE.js → register-setup-TWHKICM2.js} +17 -17
- package/dist/cli-bundle/chunks/{restore-6K53WOWO.js → restore-LL2WLEDG.js} +11 -11
- package/dist/cli-bundle/chunks/restore-LQHXBAY5.js +19 -0
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-OQVJXG3M.js → scheduling-shortcuts-255GI3BU.js} +14 -14
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-NJ5UVJFB.js → scheduling-shortcuts-M4H2ZI64.js} +14 -14
- package/dist/cli-bundle/chunks/{schema-RBTJ2YXW.js → schema-C6QA367T.js} +9 -9
- package/dist/cli-bundle/chunks/{schema-MNTAVQCY.js → schema-QO5I4FBL.js} +9 -9
- package/dist/cli-bundle/chunks/{search-6HOIVZDU.js → search-2EI6EAXH.js} +12 -12
- package/dist/cli-bundle/chunks/{search-ZWYEMASC.js → search-QBFBLQRO.js} +12 -12
- package/dist/cli-bundle/chunks/{stats-R5OAJVZK.js → stats-TCW2SZQG.js} +8 -8
- package/dist/cli-bundle/chunks/{stats-FS742AMA.js → stats-TKC6CAKB.js} +8 -8
- package/dist/cli-bundle/chunks/{telemetry-FWEXSJLQ.js → telemetry-BT2VSWU2.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-7DIGDQUO.js → telemetry-LQ6FRTUT.js} +4 -4
- package/dist/cli-bundle/chunks/{test-NZF7OT2F.js → test-NV2DRPUS.js} +16 -16
- package/dist/cli-bundle/chunks/test-WA6RZGM2.js +36 -0
- package/dist/cli-bundle/chunks/{test-all-KL7TLMJF.js → test-all-DZ76VTPQ.js} +16 -16
- package/dist/cli-bundle/chunks/{test-all-DPN62TX7.js → test-all-REW67LXT.js} +16 -16
- package/dist/cli-bundle/chunks/{test-runs-C6CFIVOS.js → test-runs-FQ5WNQLP.js} +5 -5
- package/dist/cli-bundle/chunks/{test-runs-IAJDL6CA.js → test-runs-PX73DMMI.js} +5 -5
- package/dist/cli-bundle/chunks/update-BSKMQOYH.js +28 -0
- package/dist/cli-bundle/chunks/update-FIGYNQ2I.js +24 -0
- package/dist/cli-bundle/chunks/{update-many-YEH2DQL6.js → update-many-2ILP6E4Y.js} +23 -23
- package/dist/cli-bundle/chunks/{update-many-MUTIOAP3.js → update-many-Q5ZEI64S.js} +23 -23
- package/dist/cli-bundle/chunks/{upgrade-UBNLBZNR.js → upgrade-DHL74PQH.js} +6 -6
- package/dist/cli-bundle/chunks/{upgrade-HYJ3SWWU.js → upgrade-FOZKQTQF.js} +6 -6
- package/dist/cli-bundle/chunks/{validate-W5V5ZGQX.js → validate-54SYJ7QW.js} +21 -21
- package/dist/cli-bundle/chunks/{validate-6QWQVCX2.js → validate-HYZNIB6W.js} +21 -21
- package/dist/cli-bundle/main.js +17 -17
- package/dist/core/extensions/loader.d.ts +1 -2
- package/dist/core/extensions/loader.js +40 -103
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/version-compat.d.ts +107 -0
- package/dist/core/extensions/version-compat.js +130 -0
- package/dist/core/extensions/version-compat.js.map +1 -0
- package/dist/sdk/compose.d.ts +341 -2
- package/dist/sdk/compose.js +426 -5
- package/dist/sdk/compose.js.map +1 -1
- package/dist/sdk/define.d.ts +15 -14
- package/dist/sdk/define.js +6 -7
- package/dist/sdk/define.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/testing.d.ts +75 -2
- package/dist/sdk/testing.js +100 -3
- package/dist/sdk/testing.js.map +1 -1
- package/docs/EXTENSIONS.md +11 -10
- package/docs/SDK.md +212 -12
- package/package.json +1 -1
- package/dist/cli-bundle/chunks/activity-XUZ2AHCW.js +0 -18
- package/dist/cli-bundle/chunks/chunk-C5AOG6D2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-G6PYHBBR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KQMUV6LX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MJTSZKK5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MVKFOLLM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UELRKQQU.js.map +0 -1
- package/dist/cli-bundle/chunks/close-A3EMKBBY.js +0 -15
- package/dist/cli-bundle/chunks/create-QVGFYA2X.js +0 -30
- package/dist/cli-bundle/chunks/history-AK3E5Z3C.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-TWIYQV5J.js +0 -21
- package/dist/cli-bundle/chunks/init-RCRKW5PL.js +0 -21
- package/dist/cli-bundle/chunks/restore-2ZKT6UDC.js +0 -19
- package/dist/cli-bundle/chunks/test-QJXLKV26.js +0 -36
- package/dist/cli-bundle/chunks/update-2XCQNOD6.js +0 -28
- package/dist/cli-bundle/chunks/update-IWUCXVH2.js +0 -24
- /package/dist/cli-bundle/chunks/{activity-XUZ2AHCW.js.map → activity-54TXGJ2T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-H2LMOSSW.js.map → activity-N7RVTLBQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-R725FC3S.js.map → aggregate-63NWNIBR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-EGJLZQBI.js.map → aggregate-YHCYX2EV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-5J345QGU.js.map → append-PUKREFV5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-O5HPBMRN.js.map → append-VLQQDHMJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3VY3YQO6.js.map → chunk-2WCYE3IF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WZQWHN4R.js.map → chunk-3BKH2CL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7UGEAPRY.js.map → chunk-4XDGYFHL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H4IIJDE4.js.map → chunk-5BBEWX6C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2CKH2LMV.js.map → chunk-5S4ZGDB2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4KD54S3Z.js.map → chunk-6EBNFQOR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QL5RVYOA.js.map → chunk-6EL7SW5C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MJTINN54.js.map → chunk-6W3Y65PL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-U2Z5YUSO.js.map → chunk-A66VYUOV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q2KNGP7C.js.map → chunk-ABYCA5VX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VFAQ4LMN.js.map → chunk-AEACLRVH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7AUB5HNA.js.map → chunk-ALKFCIIB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H2IP4QLJ.js.map → chunk-ALQKV6U7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-G6N5VEOK.js.map → chunk-AYPQUFCX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MRQ4HMK.js.map → chunk-B74BP6IS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7SV63ZHD.js.map → chunk-BFFO3AIB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NCVCO3NZ.js.map → chunk-C4C3EJCJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UVC5LOR7.js.map → chunk-CG3KP6I5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FXR67XVQ.js.map → chunk-CZIFFMZI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XVF4YARA.js.map → chunk-DTABLLVE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7XGQXHFB.js.map → chunk-EOGBMLCE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TQZH6OD6.js.map → chunk-EWRSXOIZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IB3GYLQE.js.map → chunk-F32L4HR6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SBQTAVJZ.js.map → chunk-F4BNR2IN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S2RUQSX2.js.map → chunk-FBLT6WGK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2T3JG6V4.js.map → chunk-FMWW2JDU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W72GHSJE.js.map → chunk-GDUMGZK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y4SUQQYH.js.map → chunk-GQYJEEFX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AONIHR2C.js.map → chunk-HBAEFWX3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YUDJD3XO.js.map → chunk-HC2S36NB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DT5LPYOD.js.map → chunk-HZF5RLKX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P77P2ILI.js.map → chunk-I6QMJ2XT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZRK4O56R.js.map → chunk-IAP5KYBQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SKH7OGE5.js.map → chunk-IOT6WRL5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-66MEDTUD.js.map → chunk-IXAZI443.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4BHT5VDC.js.map → chunk-J3NMWFIN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HFFUQR73.js.map → chunk-J7I4C5ZB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NK3UPBVG.js.map → chunk-JPJDP4VU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T5472OMV.js.map → chunk-JV27C7OZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZQ3ZVXX2.js.map → chunk-KIEAK7YE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5UVVASSA.js.map → chunk-KJZOSF7J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CIIK67GW.js.map → chunk-KKX4Z2SE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GAJVRGGA.js.map → chunk-LNEDHJNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BB6MDVNQ.js.map → chunk-LU36E6GU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CE5P2NQR.js.map → chunk-M6TUBOGW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-55ISXAQH.js.map → chunk-MEXZ5XUM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AD3A7ZD6.js.map → chunk-MWMHZOZZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-46G6RSB6.js.map → chunk-N5B6WZC5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-S26C36QC.js.map → chunk-NVXGVEFD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2BFPAUAF.js.map → chunk-OF7V47P3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IPKJ6B36.js.map → chunk-OHDQNKJB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2RDVQEWV.js.map → chunk-OQ2E64FH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5VOINNKT.js.map → chunk-PEL2NLQE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SKN7LC5W.js.map → chunk-PRVTGX64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-34EONI5F.js.map → chunk-QOUOMPHO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QH3PJYON.js.map → chunk-RAWA3Y7O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LRKKONT2.js.map → chunk-RRP6D345.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FIGAZ4Y7.js.map → chunk-SKC4UTRP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CKGNPJAG.js.map → chunk-SMXSDY7J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KFWBJPSG.js.map → chunk-SUREE24M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-O6LLO73I.js.map → chunk-TIM4OD74.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YDEXO24S.js.map → chunk-TKPP4GOO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T72AZDBA.js.map → chunk-TSI32UEL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7K2XXO4I.js.map → chunk-UACWNBL2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WBRKK5QR.js.map → chunk-V4UYNSEM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-M4T5DXD5.js.map → chunk-VFJYVXHL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WM5ZVBPE.js.map → chunk-WB5BYQMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SR3EKWZG.js.map → chunk-XVYKWZNL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JR2LV3M4.js.map → chunk-XXKV4UWE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2A34E3BA.js.map → chunk-YV2OSAMS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VAYA4XFX.js.map → chunk-ZLWRPBOW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YJ3SUEPD.js.map → chunk-ZV7IQ23N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-4KHAA2RN.js.map → claim-FZZZCAY6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-CSPJFLNH.js.map → claim-XK5QBZE3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-A3EMKBBY.js.map → close-JEBZXONN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-W56IOGYG.js.map → close-QHMVWM7M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-BX5DCSVV.js.map → close-many-OIXJE2JZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-TQU5F4E4.js.map → close-many-SUU5BS2C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-U5KUC4EU.js.map → comments-5YM62D75.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-VRECH75R.js.map → comments-RH3IBIRH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-D3OKQO52.js.map → config-NCNNWF6R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-MMJA4LLK.js.map → config-SW3U7XP2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-DHLVPXN3.js.map → context-55VEOYI3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-BLBD3PUB.js.map → context-5LB7UGKE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-XGVMMPC5.js.map → contracts-JXFGBOYT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-C3SZCXXG.js.map → contracts-SY6PDFIK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-5D5DX3VK.js.map → copy-IEDBJOOX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-HHL3K4QP.js.map → copy-N3GE6FYS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-QVGFYA2X.js.map → create-CLSCHGJJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-IXY43O4H.js.map → create-O4VONGPG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-IBUR3M42.js.map → delete-724EQ6OS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-QQC2FGUH.js.map → delete-LPEIF7RU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-VTPO4BSE.js.map → deps-RSBU4SIU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-KWKRHXIN.js.map → deps-T3Y6Y7RT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-7CHFHXLN.js.map → docs-75ZLCO3G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-IIO3FEUO.js.map → docs-IFS7HZPP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-IO7LREOL.js.map → eval-L2KD7W3M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-CEYYEPSX.js.map → eval-QGR7JCQO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-KCPUWSY2.js.map → extension-3JYWJ5K2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-UTTQDUYI.js.map → extension-YQF4CPIR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-Z2HHEFGP.js.map → files-5BQWDRDT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-TPUL6KWB.js.map → files-EPEJMJHQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-JVJCGC2D.js.map → focus-DQVJAPOE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-YRNNH7IP.js.map → focus-RWGKD76E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-O5GUO3SU.js.map → gc-BEJMQT64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-PYVVEELM.js.map → gc-JEFQDJPA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-X4O3HBEY.js.map → get-LQG6PEVG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-ENLTEGTX.js.map → get-WVN75H42.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-BOTB7YSU.js.map → health-JJJOY7DJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-5EXTY44Q.js.map → health-P67NZ6TT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-AK3E5Z3C.js.map → history-ALTM2RRP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-AJTXLT6S.js.map → history-RUKPKNY7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-43OOUAWD.js.map → history-compact-NQ7VPRVT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-46MRHW3I.js.map → history-compact-ZAOWR7GD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-TWIYQV5J.js.map → history-redact-5YGLWUDH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-KUUUVUFM.js.map → history-redact-YY4XYVEP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-VQTYOSRS.js.map → history-repair-EHL4ODQY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-B5PZBOPU.js.map → history-repair-YSQH6SY6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-RCRKW5PL.js.map → init-C4CRHW22.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-BNLVFPRG.js.map → init-HBFGYS66.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-XSGX52S7.js.map → learnings-J555ZFPD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-MUUU5KMC.js.map → learnings-KFQO7GEZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-32U7BSKE.js.map → list-C7R33MD5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-ZEEOHLTQ.js.map → list-DSN6UNFB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-NJ45OZGF.js.map → notes-V4VNIQL4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-OHU25L3M.js.map → notes-VYJFN2A3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-KQA7CAKI.js.map → plan-DHRSVSHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-LWWAEV5Y.js.map → plan-RBHQ5PO7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-DDCHPONM.js.map → register-list-query-CCMHGZTF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-YNPBVIKM.js.map → register-list-query-OM3E2KMY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-7ALWDDAX.js.map → register-mutation-N3CDEGZU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-LAVKYY63.js.map → register-mutation-UXTTWL6N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-U5JAW3WE.js.map → register-operations-R2FLOCRI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-R4VOQ6EF.js.map → register-operations-UDIFMQKD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-RCRUHMSZ.js.map → register-setup-G5LTSFYK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-setup-KBXQDCXE.js.map → register-setup-TWHKICM2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-6K53WOWO.js.map → restore-LL2WLEDG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-2ZKT6UDC.js.map → restore-LQHXBAY5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-OQVJXG3M.js.map → scheduling-shortcuts-255GI3BU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-NJ5UVJFB.js.map → scheduling-shortcuts-M4H2ZI64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-RBTJ2YXW.js.map → schema-C6QA367T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-MNTAVQCY.js.map → schema-QO5I4FBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-6HOIVZDU.js.map → search-2EI6EAXH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-ZWYEMASC.js.map → search-QBFBLQRO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-R5OAJVZK.js.map → stats-TCW2SZQG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-FS742AMA.js.map → stats-TKC6CAKB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-FWEXSJLQ.js.map → telemetry-BT2VSWU2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-7DIGDQUO.js.map → telemetry-LQ6FRTUT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-NZF7OT2F.js.map → test-NV2DRPUS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-QJXLKV26.js.map → test-WA6RZGM2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-KL7TLMJF.js.map → test-all-DZ76VTPQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-DPN62TX7.js.map → test-all-REW67LXT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-C6CFIVOS.js.map → test-runs-FQ5WNQLP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-IAJDL6CA.js.map → test-runs-PX73DMMI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-2XCQNOD6.js.map → update-BSKMQOYH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-IWUCXVH2.js.map → update-FIGYNQ2I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-YEH2DQL6.js.map → update-many-2ILP6E4Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-MUTIOAP3.js.map → update-many-Q5ZEI64S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-UBNLBZNR.js.map → upgrade-DHL74PQH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-HYJ3SWWU.js.map → upgrade-FOZKQTQF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{validate-W5V5ZGQX.js.map → validate-54SYJ7QW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{validate-6QWQVCX2.js.map → validate-HYZNIB6W.js.map} +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module core/extensions/version-compat
|
|
3
|
+
*
|
|
4
|
+
* Single source of truth for extension-manifest version-bound compatibility.
|
|
5
|
+
*
|
|
6
|
+
* An extension manifest may declare an inclusive `pm_min_version` lower bound and
|
|
7
|
+
* an inclusive `pm_max_version` upper bound. At load time the
|
|
8
|
+
* {@link ../extensions/loader.js | loader} compares them against the running pm
|
|
9
|
+
* CLI version and skips (or warns about) an extension that falls outside the
|
|
10
|
+
* supported window. The comparison and the per-bound status semantics live here
|
|
11
|
+
* so the runtime loader and the author-time SDK helper
|
|
12
|
+
* (`checkExtensionManifestCompatibility`) share one implementation and can never
|
|
13
|
+
* drift — the same "agrees with the loader by construction" guarantee the
|
|
14
|
+
* declarative authoring helpers (`describeExtensionBlueprint`,
|
|
15
|
+
* `deriveExtensionCapabilities`) already provide.
|
|
16
|
+
*
|
|
17
|
+
* The functions here are pure: they take an already-resolved current version
|
|
18
|
+
* (the loader resolves it from `package.json`; the SDK caller supplies a target
|
|
19
|
+
* version) and return structured outcomes. Warning-string formatting and
|
|
20
|
+
* version resolution stay with the loader; finding/message presentation stays
|
|
21
|
+
* with the SDK.
|
|
22
|
+
*/
|
|
23
|
+
import type { PmMaxVersionExceededMode } from "./extension-types.js";
|
|
24
|
+
/** The two inclusive manifest version bounds pm evaluates at load time. */
|
|
25
|
+
export type PmVersionBoundKind = "pm_min_version" | "pm_max_version";
|
|
26
|
+
/**
|
|
27
|
+
* The outcome of evaluating a single manifest version bound against a pm version.
|
|
28
|
+
*
|
|
29
|
+
* - `absent`: the bound is not declared — nothing to enforce.
|
|
30
|
+
* - `ok`: the bound is declared and satisfied by the current version.
|
|
31
|
+
* - `invalid`: the declared bound is malformed (unparseable, or a range prefix on
|
|
32
|
+
* `pm_max_version`); the loader treats the extension as incompatible and skips it.
|
|
33
|
+
* - `unchecked`: the bound is well-formed but cannot be compared against the
|
|
34
|
+
* current version (the current version is unknown or not comparable); the
|
|
35
|
+
* extension still loads, with an advisory warning.
|
|
36
|
+
* - `unmet`: the current version is older than the inclusive `pm_min_version`
|
|
37
|
+
* lower bound; the loader skips the extension (only emitted for `pm_min_version`).
|
|
38
|
+
* - `exceeded`: the current version is newer than the inclusive `pm_max_version`
|
|
39
|
+
* upper bound and the exceeded mode is `block`; the loader skips the extension
|
|
40
|
+
* (only emitted for `pm_max_version`).
|
|
41
|
+
* - `exceeded_warn`: the current version is newer than `pm_max_version` but the
|
|
42
|
+
* exceeded mode is `warn`, so the extension loads with an advisory warning
|
|
43
|
+
* (only emitted for `pm_max_version`).
|
|
44
|
+
*/
|
|
45
|
+
export type PmVersionBoundStatus = "absent" | "ok" | "invalid" | "unchecked" | "unmet" | "exceeded" | "exceeded_warn";
|
|
46
|
+
/**
|
|
47
|
+
* The structured result of evaluating one manifest version bound, consumed by the
|
|
48
|
+
* loader (to format its `extension_pm_*_version_*` warning strings) and the SDK
|
|
49
|
+
* (to build author-time compatibility findings).
|
|
50
|
+
*/
|
|
51
|
+
export interface PmVersionBoundEvaluation {
|
|
52
|
+
/** Which bound this evaluation describes. */
|
|
53
|
+
kind: PmVersionBoundKind;
|
|
54
|
+
/** The classified outcome of comparing the bound against the current version. */
|
|
55
|
+
status: PmVersionBoundStatus;
|
|
56
|
+
/** Whether the bound permits the extension to load (`false` only for `invalid`/`unmet`/`exceeded`). */
|
|
57
|
+
allowed: boolean;
|
|
58
|
+
/** The declared bound value, verbatim; the empty string when the bound is absent. */
|
|
59
|
+
required: string;
|
|
60
|
+
/** The current version compared against, or `null` when it could not be resolved. */
|
|
61
|
+
current: string | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Parse a comparable release string into numeric segments, or `null` when it is
|
|
65
|
+
* not an interpretable dotted-numeric version.
|
|
66
|
+
*
|
|
67
|
+
* Leniently strips a leading inclusive-minimum `>=` and an optional `v` prefix
|
|
68
|
+
* (so `engines.pm`-style `">=2026.5.31"` and `"v1.2.3"` both parse), then drops
|
|
69
|
+
* any build/pre-release suffix and keeps the leading dotted-numeric release.
|
|
70
|
+
*/
|
|
71
|
+
export declare function parseComparableVersion(value: string): number[] | null;
|
|
72
|
+
/**
|
|
73
|
+
* Compare two comparable version strings segment by segment.
|
|
74
|
+
*
|
|
75
|
+
* Returns `1` when `currentVersion` is greater, `-1` when it is smaller, `0` when
|
|
76
|
+
* equal, and `null` when either side is not an interpretable version (so callers
|
|
77
|
+
* can classify the comparison as `unchecked`). Missing trailing segments are
|
|
78
|
+
* treated as `0`, so `1.2` and `1.2.0` compare equal.
|
|
79
|
+
*/
|
|
80
|
+
export declare function compareComparableVersions(currentVersion: string, otherVersion: string): number | null;
|
|
81
|
+
/**
|
|
82
|
+
* Evaluate a manifest `pm_min_version` inclusive lower bound against the current
|
|
83
|
+
* pm version.
|
|
84
|
+
*
|
|
85
|
+
* An omitted bound is `absent`; a blank, non-string, or unparseable bound is
|
|
86
|
+
* `invalid`; an unknown or incomparable current version is `unchecked`; a current
|
|
87
|
+
* version below the bound is `unmet`; otherwise the bound is satisfied (`ok`).
|
|
88
|
+
* `currentVersion` is `null` when the loader could not resolve the running CLI
|
|
89
|
+
* version.
|
|
90
|
+
*/
|
|
91
|
+
export declare function evaluatePmMinVersionBound(required: unknown, currentVersion: string | null): PmVersionBoundEvaluation;
|
|
92
|
+
/**
|
|
93
|
+
* Evaluate a manifest `pm_max_version` inclusive upper bound against the current
|
|
94
|
+
* pm version.
|
|
95
|
+
*
|
|
96
|
+
* An omitted bound is `absent`. A blank or non-string bound is `invalid`. The
|
|
97
|
+
* upper bound must be an exact version: a range prefix (`<`/`>`/`=`/`~`/`^`) is
|
|
98
|
+
* rejected as `invalid`, because
|
|
99
|
+
* {@link parseComparableVersion} leniently strips a leading `>=` for
|
|
100
|
+
* `engines.pm` min-version compatibility and would otherwise turn a range-like
|
|
101
|
+
* `">=2026.6.1"` into an inclusive max and wrongly block newer CLIs. An
|
|
102
|
+
* unparseable bound is `invalid`; an unknown or incomparable current version is
|
|
103
|
+
* `unchecked`; a current version above the bound is `exceeded` (or
|
|
104
|
+
* `exceeded_warn` when `exceededMode` is `warn`, so the extension still loads
|
|
105
|
+
* during a controlled upgrade window); otherwise the bound is satisfied (`ok`).
|
|
106
|
+
*/
|
|
107
|
+
export declare function evaluatePmMaxVersionBound(required: unknown, currentVersion: string | null, exceededMode: PmMaxVersionExceededMode): PmVersionBoundEvaluation;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
|
|
2
|
+
!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]="9675b93b-da90-574d-a6cf-ea7448b40600")}catch(e){}}();
|
|
3
|
+
function formatVersionBoundValue(value) {
|
|
4
|
+
return typeof value === "string" ? value : String(value);
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Parse a comparable release string into numeric segments, or `null` when it is
|
|
8
|
+
* not an interpretable dotted-numeric version.
|
|
9
|
+
*
|
|
10
|
+
* Leniently strips a leading inclusive-minimum `>=` and an optional `v` prefix
|
|
11
|
+
* (so `engines.pm`-style `">=2026.5.31"` and `"v1.2.3"` both parse), then drops
|
|
12
|
+
* any build/pre-release suffix and keeps the leading dotted-numeric release.
|
|
13
|
+
*/
|
|
14
|
+
export function parseComparableVersion(value) {
|
|
15
|
+
const normalized = value.trim().replace(/^>=\s*/, "").replace(/^v/i, "");
|
|
16
|
+
const release = normalized.split(/[+-]/, 1)[0];
|
|
17
|
+
if (!/^\d+(?:[.-]\d+)*$/.test(release)) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return release.split(/[.-]/).map((part) => Number(part));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Compare two comparable version strings segment by segment.
|
|
24
|
+
*
|
|
25
|
+
* Returns `1` when `currentVersion` is greater, `-1` when it is smaller, `0` when
|
|
26
|
+
* equal, and `null` when either side is not an interpretable version (so callers
|
|
27
|
+
* can classify the comparison as `unchecked`). Missing trailing segments are
|
|
28
|
+
* treated as `0`, so `1.2` and `1.2.0` compare equal.
|
|
29
|
+
*/
|
|
30
|
+
export function compareComparableVersions(currentVersion, otherVersion) {
|
|
31
|
+
const currentParts = parseComparableVersion(currentVersion);
|
|
32
|
+
const otherParts = parseComparableVersion(otherVersion);
|
|
33
|
+
if (!currentParts || !otherParts) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
const width = Math.max(currentParts.length, otherParts.length);
|
|
37
|
+
for (let index = 0; index < width; index += 1) {
|
|
38
|
+
const current = currentParts[index] ?? 0;
|
|
39
|
+
const other = otherParts[index] ?? 0;
|
|
40
|
+
if (current > other) {
|
|
41
|
+
return 1;
|
|
42
|
+
}
|
|
43
|
+
if (current < other) {
|
|
44
|
+
return -1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Evaluate a manifest `pm_min_version` inclusive lower bound against the current
|
|
51
|
+
* pm version.
|
|
52
|
+
*
|
|
53
|
+
* An omitted bound is `absent`; a blank, non-string, or unparseable bound is
|
|
54
|
+
* `invalid`; an unknown or incomparable current version is `unchecked`; a current
|
|
55
|
+
* version below the bound is `unmet`; otherwise the bound is satisfied (`ok`).
|
|
56
|
+
* `currentVersion` is `null` when the loader could not resolve the running CLI
|
|
57
|
+
* version.
|
|
58
|
+
*/
|
|
59
|
+
export function evaluatePmMinVersionBound(required, currentVersion) {
|
|
60
|
+
if (required === undefined || required === null) {
|
|
61
|
+
return { kind: "pm_min_version", status: "absent", allowed: true, required: "", current: currentVersion };
|
|
62
|
+
}
|
|
63
|
+
const declared = formatVersionBoundValue(required);
|
|
64
|
+
if (typeof required !== "string" || declared.trim().length === 0) {
|
|
65
|
+
return { kind: "pm_min_version", status: "invalid", allowed: false, required: declared, current: currentVersion };
|
|
66
|
+
}
|
|
67
|
+
if (!parseComparableVersion(declared)) {
|
|
68
|
+
return { kind: "pm_min_version", status: "invalid", allowed: false, required: declared, current: currentVersion };
|
|
69
|
+
}
|
|
70
|
+
if (currentVersion === null) {
|
|
71
|
+
return { kind: "pm_min_version", status: "unchecked", allowed: true, required: declared, current: null };
|
|
72
|
+
}
|
|
73
|
+
const comparison = compareComparableVersions(currentVersion, declared);
|
|
74
|
+
if (comparison === null) {
|
|
75
|
+
return { kind: "pm_min_version", status: "unchecked", allowed: true, required: declared, current: currentVersion };
|
|
76
|
+
}
|
|
77
|
+
if (comparison < 0) {
|
|
78
|
+
return { kind: "pm_min_version", status: "unmet", allowed: false, required: declared, current: currentVersion };
|
|
79
|
+
}
|
|
80
|
+
return { kind: "pm_min_version", status: "ok", allowed: true, required: declared, current: currentVersion };
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Evaluate a manifest `pm_max_version` inclusive upper bound against the current
|
|
84
|
+
* pm version.
|
|
85
|
+
*
|
|
86
|
+
* An omitted bound is `absent`. A blank or non-string bound is `invalid`. The
|
|
87
|
+
* upper bound must be an exact version: a range prefix (`<`/`>`/`=`/`~`/`^`) is
|
|
88
|
+
* rejected as `invalid`, because
|
|
89
|
+
* {@link parseComparableVersion} leniently strips a leading `>=` for
|
|
90
|
+
* `engines.pm` min-version compatibility and would otherwise turn a range-like
|
|
91
|
+
* `">=2026.6.1"` into an inclusive max and wrongly block newer CLIs. An
|
|
92
|
+
* unparseable bound is `invalid`; an unknown or incomparable current version is
|
|
93
|
+
* `unchecked`; a current version above the bound is `exceeded` (or
|
|
94
|
+
* `exceeded_warn` when `exceededMode` is `warn`, so the extension still loads
|
|
95
|
+
* during a controlled upgrade window); otherwise the bound is satisfied (`ok`).
|
|
96
|
+
*/
|
|
97
|
+
export function evaluatePmMaxVersionBound(required, currentVersion, exceededMode) {
|
|
98
|
+
if (required === undefined || required === null) {
|
|
99
|
+
return { kind: "pm_max_version", status: "absent", allowed: true, required: "", current: currentVersion };
|
|
100
|
+
}
|
|
101
|
+
const declared = formatVersionBoundValue(required);
|
|
102
|
+
if (typeof required !== "string" || declared.trim().length === 0) {
|
|
103
|
+
return { kind: "pm_max_version", status: "invalid", allowed: false, required: declared, current: currentVersion };
|
|
104
|
+
}
|
|
105
|
+
if (/^[<>=~^]/.test(declared.trim()) || !parseComparableVersion(declared)) {
|
|
106
|
+
return { kind: "pm_max_version", status: "invalid", allowed: false, required: declared, current: currentVersion };
|
|
107
|
+
}
|
|
108
|
+
if (currentVersion === null) {
|
|
109
|
+
return { kind: "pm_max_version", status: "unchecked", allowed: true, required: declared, current: null };
|
|
110
|
+
}
|
|
111
|
+
const comparison = compareComparableVersions(currentVersion, declared);
|
|
112
|
+
if (comparison === null) {
|
|
113
|
+
return { kind: "pm_max_version", status: "unchecked", allowed: true, required: declared, current: currentVersion };
|
|
114
|
+
}
|
|
115
|
+
if (comparison > 0) {
|
|
116
|
+
if (exceededMode === "warn") {
|
|
117
|
+
return {
|
|
118
|
+
kind: "pm_max_version",
|
|
119
|
+
status: "exceeded_warn",
|
|
120
|
+
allowed: true,
|
|
121
|
+
required: declared,
|
|
122
|
+
current: currentVersion,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
return { kind: "pm_max_version", status: "exceeded", allowed: false, required: declared, current: currentVersion };
|
|
126
|
+
}
|
|
127
|
+
return { kind: "pm_max_version", status: "ok", allowed: true, required: declared, current: currentVersion };
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=version-compat.js.map
|
|
130
|
+
//# debugId=9675b93b-da90-574d-a6cf-ea7448b40600
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version-compat.js","sources":["core/extensions/version-compat.ts"],"sourceRoot":"/","sourcesContent":["/**\n * @module core/extensions/version-compat\n *\n * Single source of truth for extension-manifest version-bound compatibility.\n *\n * An extension manifest may declare an inclusive `pm_min_version` lower bound and\n * an inclusive `pm_max_version` upper bound. At load time the\n * {@link ../extensions/loader.js | loader} compares them against the running pm\n * CLI version and skips (or warns about) an extension that falls outside the\n * supported window. The comparison and the per-bound status semantics live here\n * so the runtime loader and the author-time SDK helper\n * (`checkExtensionManifestCompatibility`) share one implementation and can never\n * drift — the same \"agrees with the loader by construction\" guarantee the\n * declarative authoring helpers (`describeExtensionBlueprint`,\n * `deriveExtensionCapabilities`) already provide.\n *\n * The functions here are pure: they take an already-resolved current version\n * (the loader resolves it from `package.json`; the SDK caller supplies a target\n * version) and return structured outcomes. Warning-string formatting and\n * version resolution stay with the loader; finding/message presentation stays\n * with the SDK.\n */\nimport type { PmMaxVersionExceededMode } from \"./extension-types.js\";\n\n/** The two inclusive manifest version bounds pm evaluates at load time. */\nexport type PmVersionBoundKind = \"pm_min_version\" | \"pm_max_version\";\n\n/**\n * The outcome of evaluating a single manifest version bound against a pm version.\n *\n * - `absent`: the bound is not declared — nothing to enforce.\n * - `ok`: the bound is declared and satisfied by the current version.\n * - `invalid`: the declared bound is malformed (unparseable, or a range prefix on\n * `pm_max_version`); the loader treats the extension as incompatible and skips it.\n * - `unchecked`: the bound is well-formed but cannot be compared against the\n * current version (the current version is unknown or not comparable); the\n * extension still loads, with an advisory warning.\n * - `unmet`: the current version is older than the inclusive `pm_min_version`\n * lower bound; the loader skips the extension (only emitted for `pm_min_version`).\n * - `exceeded`: the current version is newer than the inclusive `pm_max_version`\n * upper bound and the exceeded mode is `block`; the loader skips the extension\n * (only emitted for `pm_max_version`).\n * - `exceeded_warn`: the current version is newer than `pm_max_version` but the\n * exceeded mode is `warn`, so the extension loads with an advisory warning\n * (only emitted for `pm_max_version`).\n */\nexport type PmVersionBoundStatus =\n | \"absent\"\n | \"ok\"\n | \"invalid\"\n | \"unchecked\"\n | \"unmet\"\n | \"exceeded\"\n | \"exceeded_warn\";\n\n/**\n * The structured result of evaluating one manifest version bound, consumed by the\n * loader (to format its `extension_pm_*_version_*` warning strings) and the SDK\n * (to build author-time compatibility findings).\n */\nexport interface PmVersionBoundEvaluation {\n /** Which bound this evaluation describes. */\n kind: PmVersionBoundKind;\n /** The classified outcome of comparing the bound against the current version. */\n status: PmVersionBoundStatus;\n /** Whether the bound permits the extension to load (`false` only for `invalid`/`unmet`/`exceeded`). */\n allowed: boolean;\n /** The declared bound value, verbatim; the empty string when the bound is absent. */\n required: string;\n /** The current version compared against, or `null` when it could not be resolved. */\n current: string | null;\n}\n\nfunction formatVersionBoundValue(value: unknown): string {\n return typeof value === \"string\" ? value : String(value);\n}\n\n/**\n * Parse a comparable release string into numeric segments, or `null` when it is\n * not an interpretable dotted-numeric version.\n *\n * Leniently strips a leading inclusive-minimum `>=` and an optional `v` prefix\n * (so `engines.pm`-style `\">=2026.5.31\"` and `\"v1.2.3\"` both parse), then drops\n * any build/pre-release suffix and keeps the leading dotted-numeric release.\n */\nexport function parseComparableVersion(value: string): number[] | null {\n const normalized = value.trim().replace(/^>=\\s*/, \"\").replace(/^v/i, \"\");\n const release = normalized.split(/[+-]/, 1)[0];\n if (!/^\\d+(?:[.-]\\d+)*$/.test(release)) {\n return null;\n }\n return release.split(/[.-]/).map((part) => Number(part));\n}\n\n/**\n * Compare two comparable version strings segment by segment.\n *\n * Returns `1` when `currentVersion` is greater, `-1` when it is smaller, `0` when\n * equal, and `null` when either side is not an interpretable version (so callers\n * can classify the comparison as `unchecked`). Missing trailing segments are\n * treated as `0`, so `1.2` and `1.2.0` compare equal.\n */\nexport function compareComparableVersions(currentVersion: string, otherVersion: string): number | null {\n const currentParts = parseComparableVersion(currentVersion);\n const otherParts = parseComparableVersion(otherVersion);\n if (!currentParts || !otherParts) {\n return null;\n }\n const width = Math.max(currentParts.length, otherParts.length);\n for (let index = 0; index < width; index += 1) {\n const current = currentParts[index] ?? 0;\n const other = otherParts[index] ?? 0;\n if (current > other) {\n return 1;\n }\n if (current < other) {\n return -1;\n }\n }\n return 0;\n}\n\n/**\n * Evaluate a manifest `pm_min_version` inclusive lower bound against the current\n * pm version.\n *\n * An omitted bound is `absent`; a blank, non-string, or unparseable bound is\n * `invalid`; an unknown or incomparable current version is `unchecked`; a current\n * version below the bound is `unmet`; otherwise the bound is satisfied (`ok`).\n * `currentVersion` is `null` when the loader could not resolve the running CLI\n * version.\n */\nexport function evaluatePmMinVersionBound(\n required: unknown,\n currentVersion: string | null,\n): PmVersionBoundEvaluation {\n if (required === undefined || required === null) {\n return { kind: \"pm_min_version\", status: \"absent\", allowed: true, required: \"\", current: currentVersion };\n }\n const declared = formatVersionBoundValue(required);\n if (typeof required !== \"string\" || declared.trim().length === 0) {\n return { kind: \"pm_min_version\", status: \"invalid\", allowed: false, required: declared, current: currentVersion };\n }\n if (!parseComparableVersion(declared)) {\n return { kind: \"pm_min_version\", status: \"invalid\", allowed: false, required: declared, current: currentVersion };\n }\n if (currentVersion === null) {\n return { kind: \"pm_min_version\", status: \"unchecked\", allowed: true, required: declared, current: null };\n }\n const comparison = compareComparableVersions(currentVersion, declared);\n if (comparison === null) {\n return { kind: \"pm_min_version\", status: \"unchecked\", allowed: true, required: declared, current: currentVersion };\n }\n if (comparison < 0) {\n return { kind: \"pm_min_version\", status: \"unmet\", allowed: false, required: declared, current: currentVersion };\n }\n return { kind: \"pm_min_version\", status: \"ok\", allowed: true, required: declared, current: currentVersion };\n}\n\n/**\n * Evaluate a manifest `pm_max_version` inclusive upper bound against the current\n * pm version.\n *\n * An omitted bound is `absent`. A blank or non-string bound is `invalid`. The\n * upper bound must be an exact version: a range prefix (`<`/`>`/`=`/`~`/`^`) is\n * rejected as `invalid`, because\n * {@link parseComparableVersion} leniently strips a leading `>=` for\n * `engines.pm` min-version compatibility and would otherwise turn a range-like\n * `\">=2026.6.1\"` into an inclusive max and wrongly block newer CLIs. An\n * unparseable bound is `invalid`; an unknown or incomparable current version is\n * `unchecked`; a current version above the bound is `exceeded` (or\n * `exceeded_warn` when `exceededMode` is `warn`, so the extension still loads\n * during a controlled upgrade window); otherwise the bound is satisfied (`ok`).\n */\nexport function evaluatePmMaxVersionBound(\n required: unknown,\n currentVersion: string | null,\n exceededMode: PmMaxVersionExceededMode,\n): PmVersionBoundEvaluation {\n if (required === undefined || required === null) {\n return { kind: \"pm_max_version\", status: \"absent\", allowed: true, required: \"\", current: currentVersion };\n }\n const declared = formatVersionBoundValue(required);\n if (typeof required !== \"string\" || declared.trim().length === 0) {\n return { kind: \"pm_max_version\", status: \"invalid\", allowed: false, required: declared, current: currentVersion };\n }\n if (/^[<>=~^]/.test(declared.trim()) || !parseComparableVersion(declared)) {\n return { kind: \"pm_max_version\", status: \"invalid\", allowed: false, required: declared, current: currentVersion };\n }\n if (currentVersion === null) {\n return { kind: \"pm_max_version\", status: \"unchecked\", allowed: true, required: declared, current: null };\n }\n const comparison = compareComparableVersions(currentVersion, declared);\n if (comparison === null) {\n return { kind: \"pm_max_version\", status: \"unchecked\", allowed: true, required: declared, current: currentVersion };\n }\n if (comparison > 0) {\n if (exceededMode === \"warn\") {\n return {\n kind: \"pm_max_version\",\n status: \"exceeded_warn\",\n allowed: true,\n required: declared,\n current: currentVersion,\n };\n }\n return { kind: \"pm_max_version\", status: \"exceeded\", allowed: false, required: declared, current: currentVersion };\n }\n return { kind: \"pm_max_version\", status: \"ok\", allowed: true, required: declared, current: currentVersion };\n}\n"],"names":[],"mappings":"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","debugId":"9675b93b-da90-574d-a6cf-ea7448b40600"}
|
package/dist/sdk/compose.d.ts
CHANGED
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
*/
|
|
28
28
|
import type { AfterCommandHook, BeforeCommandHook, CommandDefinition, CommandOverride, ExtensionApi, ExtensionCapability, ExtensionManifest, ExtensionServiceName, Exporter, FlagDefinition, ImportExportRegistrationOptions, Importer, OnIndexHook, OnReadHook, OnWriteHook, OutputRendererFormat, ParserOverride, PreflightOverride, RendererOverride, SchemaFieldDefinition, SchemaItemTypeDefinition, SchemaMigrationDefinition, SearchProviderDefinition, ServiceOverride, VectorStoreAdapterDefinition } from "../core/extensions/loader.js";
|
|
29
29
|
import type { ExtensionActivationSummary } from "../core/extensions/activation-summary.js";
|
|
30
|
+
import type { PmMaxVersionExceededMode } from "../core/extensions/extension-types.js";
|
|
31
|
+
import { type PmVersionBoundKind } from "../core/extensions/version-compat.js";
|
|
30
32
|
/**
|
|
31
33
|
* Documents the extension module payload exchanged by command, SDK, and package integrations.
|
|
32
34
|
*
|
|
@@ -41,8 +43,8 @@ export interface ExtensionModule {
|
|
|
41
43
|
*
|
|
42
44
|
* The authoritative manifest remains on-disk `manifest.json`; this field is
|
|
43
45
|
* useful when authors want colocated metadata for tooling/tests. Type it with
|
|
44
|
-
* {@link defineExtensionManifest} for full contract checking
|
|
45
|
-
*
|
|
46
|
+
* {@link defineExtensionManifest} for full contract checking at the definition
|
|
47
|
+
* site.
|
|
46
48
|
*/
|
|
47
49
|
manifest?: ExtensionManifest;
|
|
48
50
|
activate(api: ExtensionApi): void | Promise<void>;
|
|
@@ -158,6 +160,24 @@ export interface ExtensionBlueprint {
|
|
|
158
160
|
/** Optional teardown hook copied onto the produced module verbatim. */
|
|
159
161
|
deactivate?: () => void | Promise<void>;
|
|
160
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Typed identity helper for a (partial) {@link ExtensionBlueprint} authored as its
|
|
165
|
+
* own module — the typed entry point of the modular declarative-authoring loop.
|
|
166
|
+
*
|
|
167
|
+
* It is the natural companion to {@link mergeExtensionBlueprints}: when an
|
|
168
|
+
* extension's surface is split across files — a commands module, a search module,
|
|
169
|
+
* a hooks module — wrap each fragment so it is contract-checked *at its definition
|
|
170
|
+
* site* (with editor completion), exactly as {@link defineExtension} types a whole
|
|
171
|
+
* module and {@link defineExtensionManifest} types a manifest. It returns its
|
|
172
|
+
* argument unchanged, preserving the literal type
|
|
173
|
+
* so the fragment composes into {@link mergeExtensionBlueprints},
|
|
174
|
+
* {@link composeExtension}, or {@link composeExtensionPackage} with no loss of
|
|
175
|
+
* inference.
|
|
176
|
+
*
|
|
177
|
+
* Use as:
|
|
178
|
+
* `export const commandsModule = defineExtensionBlueprint({ commands: [...] })`
|
|
179
|
+
*/
|
|
180
|
+
export declare function defineExtensionBlueprint<TBlueprint extends ExtensionBlueprint>(blueprint: TBlueprint): TBlueprint;
|
|
161
181
|
/**
|
|
162
182
|
* Assemble an {@link ExtensionModule} from a declarative {@link ExtensionBlueprint}.
|
|
163
183
|
*
|
|
@@ -175,6 +195,44 @@ export interface ExtensionBlueprint {
|
|
|
175
195
|
* the same activation diagnostic either way.
|
|
176
196
|
*/
|
|
177
197
|
export declare function composeExtension(blueprint: ExtensionBlueprint): ExtensionModule;
|
|
198
|
+
/**
|
|
199
|
+
* Merge several partial {@link ExtensionBlueprint}s into one, so an extension's
|
|
200
|
+
* surface can be authored *modularly* — a commands module, a search module, a
|
|
201
|
+
* hooks module — and combined into a single blueprint to feed
|
|
202
|
+
* {@link composeExtension}, {@link composeExtensionPackage},
|
|
203
|
+
* {@link synthesizeExtensionManifest}, {@link describeExtensionBlueprint}, or
|
|
204
|
+
* {@link preflightExtension}.
|
|
205
|
+
*
|
|
206
|
+
* The merge is pure and deterministic and never mutates an input. Each surface
|
|
207
|
+
* combines the way its underlying `api.register*` call composes:
|
|
208
|
+
*
|
|
209
|
+
* - **Array surfaces** — `commands`, `preflights`, `itemTypes`, `itemFields`,
|
|
210
|
+
* `migrations`, `searchProviders`, `vectorStoreAdapters`, `importers`,
|
|
211
|
+
* `exporters` — concatenate in argument order.
|
|
212
|
+
* - **`flags`** concatenates the flag arrays of any shared target command,
|
|
213
|
+
* mirroring additive `api.registerFlags`: every module's flags reach the command.
|
|
214
|
+
* - **Single-handler records** — `commandOverrides`, `parsers`, `renderers`,
|
|
215
|
+
* `services` — follow last-defined-wins precedence on a key collision, exactly
|
|
216
|
+
* like spreading the records in argument order; a later module deliberately
|
|
217
|
+
* overrides an earlier one's handler for that key.
|
|
218
|
+
* - **`hooks`** concatenates each lifecycle kind's array in canonical order.
|
|
219
|
+
* - The imperative **`activate`** escape hatches chain in argument order (each
|
|
220
|
+
* awaited), so every module's escape-hatch wiring still runs.
|
|
221
|
+
* - The **`deactivate`** teardown hooks chain in *reverse* argument order (LIFO),
|
|
222
|
+
* releasing resources in the inverse of acquisition. Teardown is best-effort:
|
|
223
|
+
* a throwing hook does not strand later modules' cleanup — every hook runs and
|
|
224
|
+
* teardown failures are re-thrown afterwards (as the original error for one
|
|
225
|
+
* failure, or an `AggregateError` for several).
|
|
226
|
+
* - The **`manifest`** mirror is last-defined-wins.
|
|
227
|
+
*
|
|
228
|
+
* Because `composeExtension` and the derive/lint/describe helpers are pure readers
|
|
229
|
+
* of this data, a merged blueprint behaves exactly as a hand-written one: a command
|
|
230
|
+
* two modules both define survives as a duplicate in the merged `commands` array
|
|
231
|
+
* and {@link lintExtensionBlueprint} flags it, just as it would in one file. An
|
|
232
|
+
* empty field is omitted rather than emitted empty, so merging zero blueprints
|
|
233
|
+
* returns an empty blueprint (`{}`).
|
|
234
|
+
*/
|
|
235
|
+
export declare function mergeExtensionBlueprints(...blueprints: ExtensionBlueprint[]): ExtensionBlueprint;
|
|
178
236
|
/**
|
|
179
237
|
* Compute the minimal least-privilege capability set a {@link ExtensionBlueprint}
|
|
180
238
|
* exercises, sorted and de-duplicated.
|
|
@@ -295,3 +353,284 @@ export interface ExtensionBlueprintLintResult {
|
|
|
295
353
|
* the imperative `activate` escape hatch is invisible to this static check.
|
|
296
354
|
*/
|
|
297
355
|
export declare function lintExtensionBlueprint(blueprint: ExtensionBlueprint, options?: LintExtensionBlueprintOptions): ExtensionBlueprintLintResult;
|
|
356
|
+
/**
|
|
357
|
+
* The author-supplied identity fields {@link synthesizeExtensionManifest} cannot
|
|
358
|
+
* derive from a blueprint: every {@link ExtensionManifest} field except the
|
|
359
|
+
* generated `capabilities`.
|
|
360
|
+
*
|
|
361
|
+
* The blueprint determines `capabilities` (the surfaces it registers) and nothing
|
|
362
|
+
* else, so `name`/`version`/`entry`/`priority` and any optional metadata
|
|
363
|
+
* (engines, permissions, provenance, version floors/ceilings, sandbox profile,
|
|
364
|
+
* manifest version, activation, legacy aliases) are the author's to supply here.
|
|
365
|
+
*/
|
|
366
|
+
export interface SynthesizeExtensionManifestIdentity extends Omit<ExtensionManifest, "capabilities"> {
|
|
367
|
+
/**
|
|
368
|
+
* Extra capabilities to grant beyond the blueprint's derived set, for surfaces
|
|
369
|
+
* registered through the blueprint's imperative `activate` escape hatch that
|
|
370
|
+
* static derivation cannot see (e.g. a renderer wired in `activate`). Each is
|
|
371
|
+
* legacy-alias resolved and normalized like a declared manifest capability;
|
|
372
|
+
* unknown names are dropped (the synthesized manifest is validated at load).
|
|
373
|
+
*/
|
|
374
|
+
additionalCapabilities?: readonly string[];
|
|
375
|
+
}
|
|
376
|
+
/**
|
|
377
|
+
* Generate a complete, least-privilege {@link ExtensionManifest} from a
|
|
378
|
+
* declarative {@link ExtensionBlueprint} and the author's identity fields.
|
|
379
|
+
*
|
|
380
|
+
* This is the *generate* verb that completes the declarative authoring loop
|
|
381
|
+
* (`compose → derive → describe/lint → synthesize`). Where
|
|
382
|
+
* {@link defineExtensionManifest} only *types* a hand-written manifest and
|
|
383
|
+
* {@link deriveExtensionCapabilities} computes only the capability set, this
|
|
384
|
+
* function assembles the whole manifest: it copies every author-supplied identity
|
|
385
|
+
* field verbatim and fills `capabilities` with `deriveExtensionCapabilities`
|
|
386
|
+
* unioned with any {@link SynthesizeExtensionManifestIdentity.additionalCapabilities | additionalCapabilities},
|
|
387
|
+
* sorted and de-duplicated. The author writes the blueprint once and never
|
|
388
|
+
* hand-syncs `manifest.capabilities` — declaring nothing the extension does not
|
|
389
|
+
* use and nothing it does.
|
|
390
|
+
*
|
|
391
|
+
* It is a pure assembler: it neither validates the blueprint definitions (that
|
|
392
|
+
* stays in `api.register*` at activation) nor the identity fields (the loader
|
|
393
|
+
* validates the on-disk manifest). Pair it with
|
|
394
|
+
* {@link ../sdk/testing.js#assertExtensionManifestMatchesBlueprint} to guard a
|
|
395
|
+
* hand-maintained `manifest.json` against drift in CI.
|
|
396
|
+
*/
|
|
397
|
+
export declare function synthesizeExtensionManifest(blueprint: ExtensionBlueprint, identity: SynthesizeExtensionManifestIdentity): ExtensionManifest;
|
|
398
|
+
/**
|
|
399
|
+
* The two generated halves of a shippable extension package, returned by
|
|
400
|
+
* {@link composeExtensionPackage}.
|
|
401
|
+
*/
|
|
402
|
+
export interface ExtensionPackage {
|
|
403
|
+
/**
|
|
404
|
+
* The runtime {@link ExtensionModule} to export as the package entry's default
|
|
405
|
+
* export. Its `manifest` mirror is set to the same {@link ExtensionPackage.manifest}
|
|
406
|
+
* object, so the in-module metadata and the on-disk manifest never diverge.
|
|
407
|
+
*/
|
|
408
|
+
module: ExtensionModule;
|
|
409
|
+
/**
|
|
410
|
+
* The complete least-privilege {@link ExtensionManifest} to write as the
|
|
411
|
+
* package's `manifest.json`, with `capabilities` derived from the blueprint.
|
|
412
|
+
*/
|
|
413
|
+
manifest: ExtensionManifest;
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* Assemble both halves of a shippable extension package from one declarative
|
|
417
|
+
* {@link ExtensionBlueprint} and the author's identity fields — the author-once
|
|
418
|
+
* capstone of the declarative loop.
|
|
419
|
+
*
|
|
420
|
+
* Where {@link composeExtension} produces only the runtime module and
|
|
421
|
+
* {@link synthesizeExtensionManifest} produces only the manifest, this unifies
|
|
422
|
+
* them: it synthesizes the complete least-privilege manifest from the blueprint
|
|
423
|
+
* and identity, then composes the module with that synthesized manifest set as its
|
|
424
|
+
* authoritative in-module `manifest` mirror. Both halves are therefore generated
|
|
425
|
+
* from a single source and cannot drift — the module's `manifest` is the very
|
|
426
|
+
* object returned as `manifest`. Export `module` as the package entry's default
|
|
427
|
+
* export and write `manifest` as `manifest.json`.
|
|
428
|
+
*
|
|
429
|
+
* It is a pure assembler with no validation, loading, or filesystem access,
|
|
430
|
+
* exactly like the two functions it composes; pair it with
|
|
431
|
+
* {@link preflightExtension} (or {@link ../sdk/testing.js#assertExtensionPreflight})
|
|
432
|
+
* for the author-time verify step. Use {@link mergeExtensionBlueprints} first to
|
|
433
|
+
* assemble the blueprint modularly, then this to ship it.
|
|
434
|
+
*/
|
|
435
|
+
export declare function composeExtensionPackage(blueprint: ExtensionBlueprint, identity: SynthesizeExtensionManifestIdentity): ExtensionPackage;
|
|
436
|
+
/**
|
|
437
|
+
* The target a {@link checkExtensionManifestCompatibility} call evaluates a
|
|
438
|
+
* manifest's version bounds against.
|
|
439
|
+
*/
|
|
440
|
+
export interface ExtensionManifestCompatibilityTarget {
|
|
441
|
+
/**
|
|
442
|
+
* The pm CLI version to check the manifest against, e.g. the running CLI's
|
|
443
|
+
* `version` or a version floor a package commits to supporting. Plain
|
|
444
|
+
* dotted-numeric (`2026.6.23`) or `v`-prefixed values are compared; anything
|
|
445
|
+
* uninterpretable yields an `unchecked` finding rather than a false verdict.
|
|
446
|
+
*/
|
|
447
|
+
pmVersion: string;
|
|
448
|
+
/**
|
|
449
|
+
* How a `pm_max_version` overrun is treated, mirroring the runtime
|
|
450
|
+
* `extensions.policy.pm_max_version_exceeded_mode`. `"block"` (the default)
|
|
451
|
+
* reports an exceeded upper bound as a blocking incompatibility; `"warn"`
|
|
452
|
+
* reports it as a non-blocking advisory, matching an operator who relaxed the
|
|
453
|
+
* gate during a CLI upgrade window.
|
|
454
|
+
*/
|
|
455
|
+
pmMaxVersionExceededMode?: PmMaxVersionExceededMode;
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* The manifest fields {@link checkExtensionManifestCompatibility} evaluates.
|
|
459
|
+
*
|
|
460
|
+
* Values are intentionally `unknown` rather than `string` so an author can
|
|
461
|
+
* preflight the same malformed blank/non-string bounds (e.g. read from a JSON
|
|
462
|
+
* manifest) the loader's manifest parser rejects as `extension_manifest_invalid`.
|
|
463
|
+
*/
|
|
464
|
+
export interface ExtensionManifestCompatibilityManifest {
|
|
465
|
+
/** Inclusive lower pm CLI version bound from `manifest.json`. */
|
|
466
|
+
pm_min_version?: unknown;
|
|
467
|
+
/** Inclusive upper pm CLI version bound from `manifest.json`. */
|
|
468
|
+
pm_max_version?: unknown;
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* The machine-readable kind of an {@link ExtensionManifestCompatibilityFinding},
|
|
472
|
+
* one per `<bound>_<outcome>` the loader can reach. Each mirrors a loader
|
|
473
|
+
* `extension_pm_*_version_*` warning: `*_invalid`/`*_unmet`/`*_exceeded` block the
|
|
474
|
+
* load, while `*_unchecked`/`*_exceeded_warn` are advisory (the extension still
|
|
475
|
+
* loads).
|
|
476
|
+
*/
|
|
477
|
+
export type ExtensionManifestCompatibilityCode = "pm_min_version_invalid" | "pm_min_version_unchecked" | "pm_min_version_unmet" | "pm_max_version_invalid" | "pm_max_version_unchecked" | "pm_max_version_exceeded" | "pm_max_version_exceeded_warn";
|
|
478
|
+
/**
|
|
479
|
+
* A single version-bound issue {@link checkExtensionManifestCompatibility} found
|
|
480
|
+
* when evaluating a manifest against a target pm version.
|
|
481
|
+
*/
|
|
482
|
+
export interface ExtensionManifestCompatibilityFinding {
|
|
483
|
+
/** The machine-readable {@link ExtensionManifestCompatibilityCode} for programmatic handling. */
|
|
484
|
+
code: ExtensionManifestCompatibilityCode;
|
|
485
|
+
/** `error` when the bound blocks the load against the target version, `warning` when it is advisory. */
|
|
486
|
+
severity: "error" | "warning";
|
|
487
|
+
/** Which manifest bound produced the finding. */
|
|
488
|
+
constraint: PmVersionBoundKind;
|
|
489
|
+
/** The declared bound value, verbatim. */
|
|
490
|
+
required: string;
|
|
491
|
+
/** The target pm version the bound was evaluated against. */
|
|
492
|
+
current: string;
|
|
493
|
+
/** Human-readable explanation of the outcome and its effect on loading. */
|
|
494
|
+
message: string;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* The structured result of {@link checkExtensionManifestCompatibility}.
|
|
498
|
+
*/
|
|
499
|
+
export interface ExtensionManifestCompatibilityResult {
|
|
500
|
+
/** `true` when no `error`-severity finding blocks the load against the target version. */
|
|
501
|
+
compatible: boolean;
|
|
502
|
+
/** Every bound finding, lower bound before upper bound; empty when both bounds are absent or satisfied. */
|
|
503
|
+
findings: ExtensionManifestCompatibilityFinding[];
|
|
504
|
+
/** The target pm version the manifest was checked against, echoed back for messaging. */
|
|
505
|
+
pmVersion: string;
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Check, without loading anything, whether an extension manifest's declared
|
|
509
|
+
* version bounds permit it to load on a given pm CLI version.
|
|
510
|
+
*
|
|
511
|
+
* This is the author-time inverse of the loader's runtime version gate: where the
|
|
512
|
+
* loader resolves the *installed* CLI version (asynchronously, from `package.json`)
|
|
513
|
+
* and emits `extension_pm_*_version_*` warnings, this pure synchronous function
|
|
514
|
+
* takes the {@link ExtensionManifestCompatibilityTarget.pmVersion | target version}
|
|
515
|
+
* the author supplies and returns structured findings. Both share the
|
|
516
|
+
* {@link ../core/extensions/version-compat.js | version-compat core}, so the
|
|
517
|
+
* author-time verdict and the runtime decision agree by construction — a package
|
|
518
|
+
* author can pin a CI test to the pm version they support and catch a too-tight
|
|
519
|
+
* `pm_min_version`, a malformed `pm_max_version`, or an upper bound a newer CLI
|
|
520
|
+
* would exceed, long before publishing.
|
|
521
|
+
*
|
|
522
|
+
* `compatible` is `true` only when no bound blocks the load (`*_invalid`,
|
|
523
|
+
* `*_unmet`, and a `block`-mode `*_exceeded`); `*_unchecked` (an uninterpretable
|
|
524
|
+
* bound or target) and a `warn`-mode `*_exceeded_warn` are advisory `warning`
|
|
525
|
+
* findings that still load. Pair it with
|
|
526
|
+
* {@link ../sdk/testing.js#assertExtensionManifestCompatible} to fail CI on a
|
|
527
|
+
* blocking incompatibility.
|
|
528
|
+
*/
|
|
529
|
+
export declare function checkExtensionManifestCompatibility(manifest: ExtensionManifestCompatibilityManifest, target: ExtensionManifestCompatibilityTarget): ExtensionManifestCompatibilityResult;
|
|
530
|
+
/**
|
|
531
|
+
* Options for {@link preflightExtension} and
|
|
532
|
+
* {@link ../sdk/testing.js#assertExtensionPreflight}. Every field is optional:
|
|
533
|
+
* each one a check enables, so an author opts into exactly the stages whose
|
|
534
|
+
* inputs they can supply.
|
|
535
|
+
*/
|
|
536
|
+
export interface PreflightExtensionOptions {
|
|
537
|
+
/**
|
|
538
|
+
* The author-supplied identity fields the blueprint cannot determine
|
|
539
|
+
* (`name`/`version`/`entry`/`priority`, version bounds, etc.). Provide them to
|
|
540
|
+
* have preflight {@link synthesizeExtensionManifest | synthesize} the complete
|
|
541
|
+
* least-privilege manifest and include it in the report; the synthesized
|
|
542
|
+
* version bounds then feed the {@link PreflightExtensionOptions.target | target}
|
|
543
|
+
* compatibility check. Omit to skip manifest synthesis.
|
|
544
|
+
*/
|
|
545
|
+
identity?: SynthesizeExtensionManifestIdentity;
|
|
546
|
+
/**
|
|
547
|
+
* The pm CLI version (and optional max-version overrun mode) to evaluate the
|
|
548
|
+
* manifest's `pm_min_version`/`pm_max_version` bounds against. Provide it to run
|
|
549
|
+
* {@link checkExtensionManifestCompatibility} against the synthesized manifest
|
|
550
|
+
* (or, absent an `identity`, the blueprint's in-module `manifest` mirror). Omit
|
|
551
|
+
* to skip the version-compatibility check.
|
|
552
|
+
*/
|
|
553
|
+
target?: ExtensionManifestCompatibilityTarget;
|
|
554
|
+
/**
|
|
555
|
+
* The capabilities the package's `manifest.json` declares, reconciled against
|
|
556
|
+
* the surfaces the blueprint exercises. Passed straight to
|
|
557
|
+
* {@link lintExtensionBlueprint}; when omitted it falls back to
|
|
558
|
+
* `blueprint.manifest.capabilities`, so the blueprint's in-module mirror is
|
|
559
|
+
* linted by default.
|
|
560
|
+
*/
|
|
561
|
+
declaredCapabilities?: readonly string[];
|
|
562
|
+
}
|
|
563
|
+
/** Which preflight stage produced an {@link ExtensionPreflightFinding}. */
|
|
564
|
+
export type ExtensionPreflightFindingSource = "blueprint" | "compatibility";
|
|
565
|
+
/**
|
|
566
|
+
* A single finding in an {@link ExtensionPreflightReport}, flattened from one of
|
|
567
|
+
* the underlying stages and tagged with its {@link ExtensionPreflightFindingSource}
|
|
568
|
+
* so a consolidated report stays traceable to the check that raised it.
|
|
569
|
+
*/
|
|
570
|
+
export interface ExtensionPreflightFinding {
|
|
571
|
+
/** The stage that produced the finding: blueprint lint or version compatibility. */
|
|
572
|
+
source: ExtensionPreflightFindingSource;
|
|
573
|
+
/** Whether the finding blocks publish/activation (`error`) or is advisory (`warning`). */
|
|
574
|
+
severity: ExtensionBlueprintLintSeverity;
|
|
575
|
+
/** The underlying stage's machine-readable code, for programmatic handling. */
|
|
576
|
+
code: ExtensionBlueprintLintCode | ExtensionManifestCompatibilityCode;
|
|
577
|
+
/** The underlying stage's human-readable explanation, verbatim. */
|
|
578
|
+
message: string;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* The consolidated result of {@link preflightExtension}: every author-time stage's
|
|
582
|
+
* structured output plus a flattened, source-tagged finding list.
|
|
583
|
+
*/
|
|
584
|
+
export interface ExtensionPreflightReport {
|
|
585
|
+
/** `true` when no `error`-severity finding appears across any stage (warnings still pass). */
|
|
586
|
+
ok: boolean;
|
|
587
|
+
/** The least-privilege capability set the blueprint exercises (from {@link deriveExtensionCapabilities}). */
|
|
588
|
+
capabilities: ExtensionCapability[];
|
|
589
|
+
/** The full {@link lintExtensionBlueprint} result (structural + capability-drift findings). */
|
|
590
|
+
blueprint: ExtensionBlueprintLintResult;
|
|
591
|
+
/** The manifest synthesized from `options.identity`, or `null` when no identity was supplied. */
|
|
592
|
+
manifest: ExtensionManifest | null;
|
|
593
|
+
/** The {@link checkExtensionManifestCompatibility} result, or `null` when no `options.target` was supplied. */
|
|
594
|
+
compatibility: ExtensionManifestCompatibilityResult | null;
|
|
595
|
+
/**
|
|
596
|
+
* Every finding from all stages, blueprint-lint findings before compatibility
|
|
597
|
+
* findings, each tagged by `source`. This is the consolidated, curated view: when
|
|
598
|
+
* `options.identity` synthesizes the manifest without an explicit
|
|
599
|
+
* `declaredCapabilities` set, capability-drift findings the lint raised against the
|
|
600
|
+
* blueprint's now-superseded in-module `manifest` mirror are omitted here (the raw
|
|
601
|
+
* `blueprint` result still carries them).
|
|
602
|
+
*/
|
|
603
|
+
findings: ExtensionPreflightFinding[];
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Preflight a declarative {@link ExtensionBlueprint} through every author-time
|
|
607
|
+
* check in one call, returning a single consolidated {@link ExtensionPreflightReport}.
|
|
608
|
+
*
|
|
609
|
+
* This is the author-time capstone — the static analog of
|
|
610
|
+
* {@link ../sdk/testing.js#createExtensionTestHarness}, which unified the
|
|
611
|
+
* runtime-test helpers. Instead of chaining {@link lintExtensionBlueprint},
|
|
612
|
+
* {@link synthesizeExtensionManifest}, and {@link checkExtensionManifestCompatibility}
|
|
613
|
+
* (and reconciling their separate results) before publishing a package, an author
|
|
614
|
+
* runs `preflightExtension(blueprint, { identity, target })` and reads one report:
|
|
615
|
+
*
|
|
616
|
+
* - the blueprint is always linted (structural footguns + capability drift);
|
|
617
|
+
* - when `options.identity` is given, the complete least-privilege manifest is
|
|
618
|
+
* synthesized and returned, so the author never hand-syncs `capabilities`;
|
|
619
|
+
* - when `options.target` is given, the synthesized manifest's version bounds
|
|
620
|
+
* (or, absent an identity, the blueprint's in-module `manifest` mirror) are
|
|
621
|
+
* checked against that pm version.
|
|
622
|
+
*
|
|
623
|
+
* It is pure and side-effect-free — no loading, activation, or filesystem access,
|
|
624
|
+
* exactly like the stages it composes — so it is safe in any author-time or CI
|
|
625
|
+
* context. The per-stage structured results are exposed unmodified
|
|
626
|
+
* (`report.blueprint`/`manifest`/`compatibility`) alongside the flattened,
|
|
627
|
+
* source-tagged `report.findings`; `report.ok` is `false` if any stage produced an
|
|
628
|
+
* `error`-severity finding. The flattened `findings` are curated for the author-once
|
|
629
|
+
* flow: once an `identity` synthesizes the manifest (and no explicit
|
|
630
|
+
* `declaredCapabilities` was pinned), the synthesized manifest — not the blueprint's
|
|
631
|
+
* in-module `manifest` mirror — is what ships, so capability-drift findings the lint
|
|
632
|
+
* raised against that mirror are false positives and are omitted from
|
|
633
|
+
* `report.findings` (the raw `report.blueprint` result still reports them). Pair it
|
|
634
|
+
* with {@link ../sdk/testing.js#assertExtensionPreflight} to fail CI in one line.
|
|
635
|
+
*/
|
|
636
|
+
export declare function preflightExtension(blueprint: ExtensionBlueprint, options?: PreflightExtensionOptions): ExtensionPreflightReport;
|