@unbrained/pm-cli 2026.6.22 → 2026.6.23
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 +22 -0
- package/dist/cli/commands/completion.js +5 -4
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/contracts.js +4 -3
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/extension/describe.d.ts +70 -0
- package/dist/cli/commands/extension/describe.js +76 -0
- package/dist/cli/commands/extension/describe.js.map +1 -0
- package/dist/cli/commands/extension/scaffold.js +50 -2
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +2 -1
- package/dist/cli/commands/extension.js +28 -3
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/help-content.js +6 -2
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/register-setup.js +10 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js → activity-H2LMOSSW.js} +11 -11
- package/dist/cli-bundle/chunks/activity-XUZ2AHCW.js +18 -0
- package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js → aggregate-EGJLZQBI.js} +10 -10
- package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js → aggregate-R725FC3S.js} +10 -10
- package/dist/cli-bundle/chunks/{append-3HY5G7ET.js → append-5J345QGU.js} +8 -8
- package/dist/cli-bundle/chunks/{append-K54MDQYC.js → append-O5HPBMRN.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js → chunk-2A34E3BA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7MPTFYT3.js → chunk-2BFPAUAF.js} +15 -4
- package/dist/cli-bundle/chunks/chunk-2BFPAUAF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js → chunk-2CKH2LMV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js → chunk-2RDVQEWV.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js → chunk-2T3JG6V4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js → chunk-34EONI5F.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js → chunk-3VY3YQO6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js → chunk-46G6RSB6.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js → chunk-4BHT5VDC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js → chunk-4KD54S3Z.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js → chunk-55ISXAQH.js} +7 -4
- package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js.map → chunk-55ISXAQH.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js → chunk-5UVVASSA.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js → chunk-5VOINNKT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js → chunk-66MEDTUD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js → chunk-7AUB5HNA.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js → chunk-7K2XXO4I.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js → chunk-7MRQ4HMK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js → chunk-7SV63ZHD.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js → chunk-7UGEAPRY.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js → chunk-7XGQXHFB.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js → chunk-AD3A7ZD6.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js → chunk-AONIHR2C.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js → chunk-BB6MDVNQ.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-3GL6LTUL.js → chunk-C5AOG6D2.js} +53 -5
- package/dist/cli-bundle/chunks/{chunk-3GL6LTUL.js.map → chunk-C5AOG6D2.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js → chunk-CE5P2NQR.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js → chunk-CIIK67GW.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-TRUFOER3.js → chunk-CKGNPJAG.js} +15 -4
- package/dist/cli-bundle/chunks/chunk-CKGNPJAG.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js → chunk-DT5LPYOD.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js → chunk-FIGAZ4Y7.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js → chunk-FXR67XVQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js → chunk-G6N5VEOK.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7GCCDXXN.js → chunk-G6PYHBBR.js} +117 -7
- package/dist/cli-bundle/chunks/chunk-G6PYHBBR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js → chunk-GAJVRGGA.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js → chunk-H2IP4QLJ.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-VB54F347.js → chunk-H4IIJDE4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js → chunk-HFFUQR73.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js → chunk-IB3GYLQE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js → chunk-IPKJ6B36.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js → chunk-JR2LV3M4.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js → chunk-KFWBJPSG.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-D35LTIFR.js → chunk-KQMUV6LX.js} +104 -8
- package/dist/cli-bundle/chunks/chunk-KQMUV6LX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js → chunk-LRKKONT2.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js → chunk-M4T5DXD5.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js → chunk-MJTINN54.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-RZZMSY4P.js → chunk-MJTSZKK5.js} +21 -2
- package/dist/cli-bundle/chunks/{chunk-RZZMSY4P.js.map → chunk-MJTSZKK5.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4YJA4LGU.js → chunk-MVKFOLLM.js} +52 -4
- package/dist/cli-bundle/chunks/{chunk-4YJA4LGU.js.map → chunk-MVKFOLLM.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js → chunk-NCVCO3NZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js → chunk-NK3UPBVG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js → chunk-O6LLO73I.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js → chunk-P77P2ILI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-I367IDZP.js → chunk-Q2KNGP7C.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js → chunk-QH3PJYON.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-5SESR24H.js → chunk-QL5RVYOA.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js → chunk-S26C36QC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js → chunk-S2RUQSX2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js → chunk-SBQTAVJZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js → chunk-SKH7OGE5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js → chunk-SKN7LC5W.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js → chunk-SR3EKWZG.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js → chunk-T5472OMV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js → chunk-T72AZDBA.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js → chunk-TQZH6OD6.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js → chunk-U2Z5YUSO.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-KL5ELX2X.js → chunk-UELRKQQU.js} +22 -3
- package/dist/cli-bundle/chunks/chunk-UELRKQQU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js → chunk-UVC5LOR7.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js → chunk-VAYA4XFX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js → chunk-VFAQ4LMN.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js → chunk-W72GHSJE.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js → chunk-WBRKK5QR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js → chunk-WM5ZVBPE.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js → chunk-WZQWHN4R.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js → chunk-XVF4YARA.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js → chunk-Y4SUQQYH.js} +8 -5
- package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js.map → chunk-Y4SUQQYH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js → chunk-YDEXO24S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js → chunk-YJ3SUEPD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js → chunk-YUDJD3XO.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js → chunk-ZQ3ZVXX2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js → chunk-ZRK4O56R.js} +13 -13
- package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js → claim-4KHAA2RN.js} +10 -10
- package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js → claim-CSPJFLNH.js} +10 -10
- package/dist/cli-bundle/chunks/close-A3EMKBBY.js +15 -0
- package/dist/cli-bundle/chunks/{close-4RKSL5L6.js → close-W56IOGYG.js} +8 -8
- package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js → close-many-BX5DCSVV.js} +15 -15
- package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js → close-many-TQU5F4E4.js} +15 -15
- package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js → comments-U5KUC4EU.js} +10 -10
- package/dist/cli-bundle/chunks/{comments-OOH64LWW.js → comments-VRECH75R.js} +10 -10
- package/dist/cli-bundle/chunks/{config-3445MCQQ.js → config-D3OKQO52.js} +8 -8
- package/dist/cli-bundle/chunks/{config-LCDMKRB2.js → config-MMJA4LLK.js} +8 -8
- package/dist/cli-bundle/chunks/{context-DZMIBIVP.js → context-BLBD3PUB.js} +13 -13
- package/dist/cli-bundle/chunks/{context-PJCURODY.js → context-DHLVPXN3.js} +13 -13
- package/dist/cli-bundle/chunks/{contracts-7YDFEJB3.js → contracts-C3SZCXXG.js} +7 -5
- package/dist/cli-bundle/chunks/contracts-C3SZCXXG.js.map +7 -0
- package/dist/cli-bundle/chunks/{contracts-MP2P3HL5.js → contracts-XGVMMPC5.js} +8 -6
- package/dist/cli-bundle/chunks/contracts-XGVMMPC5.js.map +1 -0
- package/dist/cli-bundle/chunks/{copy-63IQQRRS.js → copy-5D5DX3VK.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js → copy-HHL3K4QP.js} +7 -7
- package/dist/cli-bundle/chunks/{create-TGSB5GV4.js → create-IXY43O4H.js} +14 -14
- package/dist/cli-bundle/chunks/create-QVGFYA2X.js +30 -0
- package/dist/cli-bundle/chunks/{delete-ARILQQLB.js → delete-IBUR3M42.js} +7 -7
- package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js → delete-QQC2FGUH.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js → deps-KWKRHXIN.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js → deps-VTPO4BSE.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js → docs-7CHFHXLN.js} +9 -9
- package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js → docs-IIO3FEUO.js} +9 -9
- package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js → eval-CEYYEPSX.js} +12 -12
- package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js → eval-IO7LREOL.js} +12 -12
- package/dist/cli-bundle/chunks/{extension-OQPS27B4.js → extension-KCPUWSY2.js} +6 -6
- package/dist/cli-bundle/chunks/{extension-NLMS47I4.js → extension-UTTQDUYI.js} +6 -6
- package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js → files-TPUL6KWB.js} +9 -9
- package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js → files-Z2HHEFGP.js} +9 -9
- package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js → focus-JVJCGC2D.js} +8 -8
- package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js → focus-YRNNH7IP.js} +8 -8
- package/dist/cli-bundle/chunks/{gc-LXXDY456.js → gc-O5GUO3SU.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js → gc-PYVVEELM.js} +3 -3
- package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js → get-ENLTEGTX.js} +11 -11
- package/dist/cli-bundle/chunks/{get-W23G7MJX.js → get-X4O3HBEY.js} +11 -11
- package/dist/cli-bundle/chunks/{health-5LHSX365.js → health-5EXTY44Q.js} +14 -14
- package/dist/cli-bundle/chunks/{health-UDDGJLPP.js → health-BOTB7YSU.js} +14 -14
- package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js → history-AJTXLT6S.js} +10 -10
- package/dist/cli-bundle/chunks/history-AK3E5Z3C.js +20 -0
- package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js → history-compact-43OOUAWD.js} +12 -12
- package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js → history-compact-46MRHW3I.js} +12 -12
- package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js → history-redact-KUUUVUFM.js} +11 -11
- package/dist/cli-bundle/chunks/history-redact-TWIYQV5J.js +21 -0
- package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js → history-repair-B5PZBOPU.js} +12 -12
- package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js → history-repair-VQTYOSRS.js} +12 -12
- package/dist/cli-bundle/chunks/{init-HASX3YNJ.js → init-BNLVFPRG.js} +11 -11
- package/dist/cli-bundle/chunks/init-RCRKW5PL.js +21 -0
- package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js → learnings-MUUU5KMC.js} +10 -10
- package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js → learnings-XSGX52S7.js} +10 -10
- package/dist/cli-bundle/chunks/{list-6FMKTIH3.js → list-32U7BSKE.js} +10 -10
- package/dist/cli-bundle/chunks/{list-5UU2W24O.js → list-ZEEOHLTQ.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js → notes-NJ45OZGF.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-MODH5CBT.js → notes-OHU25L3M.js} +10 -10
- package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js → plan-KQA7CAKI.js} +14 -14
- package/dist/cli-bundle/chunks/{plan-EHQALWSC.js → plan-LWWAEV5Y.js} +14 -14
- package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js → register-list-query-DDCHPONM.js} +19 -19
- package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js → register-list-query-YNPBVIKM.js} +19 -19
- package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js → register-mutation-7ALWDDAX.js} +33 -33
- package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js → register-mutation-LAVKYY63.js} +33 -33
- package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js → register-operations-R4VOQ6EF.js} +32 -32
- package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js → register-operations-U5JAW3WE.js} +32 -32
- package/dist/cli-bundle/chunks/{register-setup-HXEHMDHE.js → register-setup-KBXQDCXE.js} +23 -19
- package/dist/cli-bundle/chunks/register-setup-KBXQDCXE.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-JSMJEFCJ.js → register-setup-RCRUHMSZ.js} +24 -20
- package/dist/cli-bundle/chunks/register-setup-RCRUHMSZ.js.map +1 -0
- package/dist/cli-bundle/chunks/restore-2ZKT6UDC.js +19 -0
- package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js → restore-6K53WOWO.js} +11 -11
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js → scheduling-shortcuts-NJ5UVJFB.js} +14 -14
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js → scheduling-shortcuts-OQVJXG3M.js} +14 -14
- package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js → schema-MNTAVQCY.js} +9 -9
- package/dist/cli-bundle/chunks/{schema-74YENAJL.js → schema-RBTJ2YXW.js} +9 -9
- package/dist/cli-bundle/chunks/{search-7USZ6XZA.js → search-6HOIVZDU.js} +12 -12
- package/dist/cli-bundle/chunks/{search-GNAUE65M.js → search-ZWYEMASC.js} +12 -12
- package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js → stats-FS742AMA.js} +8 -8
- package/dist/cli-bundle/chunks/{stats-CVHASAEU.js → stats-R5OAJVZK.js} +8 -8
- package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js → telemetry-7DIGDQUO.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js → telemetry-FWEXSJLQ.js} +4 -4
- package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js → test-NZF7OT2F.js} +16 -16
- package/dist/cli-bundle/chunks/test-QJXLKV26.js +36 -0
- package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js → test-all-DPN62TX7.js} +16 -16
- package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js → test-all-KL7TLMJF.js} +16 -16
- package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js → test-runs-C6CFIVOS.js} +5 -5
- package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js → test-runs-IAJDL6CA.js} +5 -5
- package/dist/cli-bundle/chunks/update-2XCQNOD6.js +28 -0
- package/dist/cli-bundle/chunks/update-IWUCXVH2.js +24 -0
- package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js → update-many-MUTIOAP3.js} +23 -23
- package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js → update-many-YEH2DQL6.js} +23 -23
- package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js → upgrade-HYJ3SWWU.js} +6 -6
- package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js → upgrade-UBNLBZNR.js} +6 -6
- package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js → validate-6QWQVCX2.js} +21 -21
- package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js → validate-W5V5ZGQX.js} +21 -21
- package/dist/cli-bundle/main.js +22 -18
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/core/extensions/activation-summary.d.ts +109 -0
- package/dist/core/extensions/activation-summary.js +60 -0
- package/dist/core/extensions/activation-summary.js.map +1 -0
- package/dist/core/extensions/capability-usage.d.ts +10 -0
- package/dist/core/extensions/capability-usage.js +12 -3
- package/dist/core/extensions/capability-usage.js.map +1 -1
- package/dist/core/telemetry/runtime.js +5 -2
- package/dist/core/telemetry/runtime.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.js +4 -2
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +1 -0
- package/dist/sdk/cli-contracts.js +10 -2
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/compose.d.ts +297 -0
- package/dist/sdk/compose.js +420 -0
- package/dist/sdk/compose.js.map +1 -0
- package/dist/sdk/define.d.ts +194 -0
- package/dist/sdk/define.js +205 -0
- package/dist/sdk/define.js.map +1 -0
- package/dist/sdk/index.d.ts +4 -27
- package/dist/sdk/index.js +5 -12
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/testing.d.ts +147 -1
- package/dist/sdk/testing.js +179 -2
- package/dist/sdk/testing.js.map +1 -1
- package/docs/COMMANDS.md +1 -0
- package/docs/EXTENSIONS.md +8 -5
- package/docs/SDK.md +245 -16
- package/package.json +1 -1
- package/dist/cli-bundle/chunks/activity-NEOI45NX.js +0 -18
- package/dist/cli-bundle/chunks/chunk-7GCCDXXN.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7MPTFYT3.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-D35LTIFR.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KL5ELX2X.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TRUFOER3.js.map +0 -7
- package/dist/cli-bundle/chunks/close-Z6AI736U.js +0 -15
- package/dist/cli-bundle/chunks/contracts-7YDFEJB3.js.map +0 -7
- package/dist/cli-bundle/chunks/contracts-MP2P3HL5.js.map +0 -1
- package/dist/cli-bundle/chunks/create-3BV2VA3Q.js +0 -30
- package/dist/cli-bundle/chunks/history-YRQUD4YM.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-27OEOZRZ.js +0 -21
- package/dist/cli-bundle/chunks/init-DWAKYRXI.js +0 -21
- package/dist/cli-bundle/chunks/register-setup-HXEHMDHE.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-JSMJEFCJ.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-XY4YE2OV.js +0 -19
- package/dist/cli-bundle/chunks/test-COWPCGBE.js +0 -36
- package/dist/cli-bundle/chunks/update-7IYQHX4Q.js +0 -24
- package/dist/cli-bundle/chunks/update-IJKDRBIX.js +0 -28
- /package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js.map → activity-H2LMOSSW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-NEOI45NX.js.map → activity-XUZ2AHCW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js.map → aggregate-EGJLZQBI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js.map → aggregate-R725FC3S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-3HY5G7ET.js.map → append-5J345QGU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-K54MDQYC.js.map → append-O5HPBMRN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js.map → chunk-2A34E3BA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js.map → chunk-2CKH2LMV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js.map → chunk-2RDVQEWV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js.map → chunk-2T3JG6V4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js.map → chunk-34EONI5F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js.map → chunk-3VY3YQO6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js.map → chunk-46G6RSB6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js.map → chunk-4BHT5VDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js.map → chunk-4KD54S3Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js.map → chunk-5UVVASSA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js.map → chunk-5VOINNKT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js.map → chunk-66MEDTUD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js.map → chunk-7AUB5HNA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js.map → chunk-7K2XXO4I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js.map → chunk-7MRQ4HMK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js.map → chunk-7SV63ZHD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js.map → chunk-7UGEAPRY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js.map → chunk-7XGQXHFB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js.map → chunk-AD3A7ZD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js.map → chunk-AONIHR2C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js.map → chunk-BB6MDVNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js.map → chunk-CE5P2NQR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js.map → chunk-CIIK67GW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js.map → chunk-DT5LPYOD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js.map → chunk-FIGAZ4Y7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js.map → chunk-FXR67XVQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js.map → chunk-G6N5VEOK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js.map → chunk-GAJVRGGA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js.map → chunk-H2IP4QLJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VB54F347.js.map → chunk-H4IIJDE4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js.map → chunk-HFFUQR73.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js.map → chunk-IB3GYLQE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js.map → chunk-IPKJ6B36.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js.map → chunk-JR2LV3M4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js.map → chunk-KFWBJPSG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js.map → chunk-LRKKONT2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js.map → chunk-M4T5DXD5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js.map → chunk-MJTINN54.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js.map → chunk-NCVCO3NZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js.map → chunk-NK3UPBVG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js.map → chunk-O6LLO73I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js.map → chunk-P77P2ILI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I367IDZP.js.map → chunk-Q2KNGP7C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js.map → chunk-QH3PJYON.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5SESR24H.js.map → chunk-QL5RVYOA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js.map → chunk-S26C36QC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js.map → chunk-S2RUQSX2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js.map → chunk-SBQTAVJZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js.map → chunk-SKH7OGE5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js.map → chunk-SKN7LC5W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js.map → chunk-SR3EKWZG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js.map → chunk-T5472OMV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js.map → chunk-T72AZDBA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js.map → chunk-TQZH6OD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js.map → chunk-U2Z5YUSO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js.map → chunk-UVC5LOR7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js.map → chunk-VAYA4XFX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js.map → chunk-VFAQ4LMN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js.map → chunk-W72GHSJE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js.map → chunk-WBRKK5QR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js.map → chunk-WM5ZVBPE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js.map → chunk-WZQWHN4R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js.map → chunk-XVF4YARA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js.map → chunk-YDEXO24S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js.map → chunk-YJ3SUEPD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js.map → chunk-YUDJD3XO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js.map → chunk-ZQ3ZVXX2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js.map → chunk-ZRK4O56R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js.map → claim-4KHAA2RN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js.map → claim-CSPJFLNH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-Z6AI736U.js.map → close-A3EMKBBY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-4RKSL5L6.js.map → close-W56IOGYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js.map → close-many-BX5DCSVV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js.map → close-many-TQU5F4E4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js.map → comments-U5KUC4EU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-OOH64LWW.js.map → comments-VRECH75R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-3445MCQQ.js.map → config-D3OKQO52.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-LCDMKRB2.js.map → config-MMJA4LLK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-DZMIBIVP.js.map → context-BLBD3PUB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-PJCURODY.js.map → context-DHLVPXN3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-63IQQRRS.js.map → copy-5D5DX3VK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js.map → copy-HHL3K4QP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-TGSB5GV4.js.map → create-IXY43O4H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-3BV2VA3Q.js.map → create-QVGFYA2X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ARILQQLB.js.map → delete-IBUR3M42.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js.map → delete-QQC2FGUH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js.map → deps-KWKRHXIN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js.map → deps-VTPO4BSE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js.map → docs-7CHFHXLN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js.map → docs-IIO3FEUO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js.map → eval-CEYYEPSX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js.map → eval-IO7LREOL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-OQPS27B4.js.map → extension-KCPUWSY2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-NLMS47I4.js.map → extension-UTTQDUYI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js.map → files-TPUL6KWB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js.map → files-Z2HHEFGP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js.map → focus-JVJCGC2D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js.map → focus-YRNNH7IP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-LXXDY456.js.map → gc-O5GUO3SU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js.map → gc-PYVVEELM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js.map → get-ENLTEGTX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-W23G7MJX.js.map → get-X4O3HBEY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-5LHSX365.js.map → health-5EXTY44Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-UDDGJLPP.js.map → health-BOTB7YSU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js.map → history-AJTXLT6S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-YRQUD4YM.js.map → history-AK3E5Z3C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js.map → history-compact-43OOUAWD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js.map → history-compact-46MRHW3I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js.map → history-redact-KUUUVUFM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-27OEOZRZ.js.map → history-redact-TWIYQV5J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js.map → history-repair-B5PZBOPU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js.map → history-repair-VQTYOSRS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-HASX3YNJ.js.map → init-BNLVFPRG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-DWAKYRXI.js.map → init-RCRKW5PL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js.map → learnings-MUUU5KMC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js.map → learnings-XSGX52S7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-6FMKTIH3.js.map → list-32U7BSKE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-5UU2W24O.js.map → list-ZEEOHLTQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js.map → notes-NJ45OZGF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-MODH5CBT.js.map → notes-OHU25L3M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js.map → plan-KQA7CAKI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-EHQALWSC.js.map → plan-LWWAEV5Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js.map → register-list-query-DDCHPONM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js.map → register-list-query-YNPBVIKM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js.map → register-mutation-7ALWDDAX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js.map → register-mutation-LAVKYY63.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js.map → register-operations-R4VOQ6EF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js.map → register-operations-U5JAW3WE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-XY4YE2OV.js.map → restore-2ZKT6UDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js.map → restore-6K53WOWO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js.map → scheduling-shortcuts-NJ5UVJFB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js.map → scheduling-shortcuts-OQVJXG3M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js.map → schema-MNTAVQCY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-74YENAJL.js.map → schema-RBTJ2YXW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-7USZ6XZA.js.map → search-6HOIVZDU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-GNAUE65M.js.map → search-ZWYEMASC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js.map → stats-FS742AMA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-CVHASAEU.js.map → stats-R5OAJVZK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js.map → telemetry-7DIGDQUO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js.map → telemetry-FWEXSJLQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js.map → test-NZF7OT2F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-COWPCGBE.js.map → test-QJXLKV26.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js.map → test-all-DPN62TX7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js.map → test-all-KL7TLMJF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js.map → test-runs-C6CFIVOS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js.map → test-runs-IAJDL6CA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-IJKDRBIX.js.map → update-2XCQNOD6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-7IYQHX4Q.js.map → update-IWUCXVH2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js.map → update-many-MUTIOAP3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js.map → update-many-YEH2DQL6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js.map → upgrade-HYJ3SWWU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js.map → upgrade-UBNLBZNR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js.map → validate-6QWQVCX2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js.map → validate-W5V5ZGQX.js.map} +0 -0
package/docs/EXTENSIONS.md
CHANGED
|
@@ -87,7 +87,7 @@ Package roots declare resources in `package.json` under `pm`:
|
|
|
87
87
|
|
|
88
88
|
Installation activates `pm.extensions`. `pm.docs`, `pm.examples`, `pm.assets`, and `pm.prompts` are catalog metadata (metadata-only — they are discovered and surfaced in the catalog but not executed). Declare agent-facing prompt/slash-command markdown under `pm.prompts` and non-code assets (images, skills, fixtures) under `pm.assets`; their conventional roots are `prompts/` (also `.agents/pm/prompts/`) and `assets/` (also `.agents/pm/assets/`).
|
|
89
89
|
|
|
90
|
-
`pm package init` emits a root extension (`"extensions": ["."]`) so local package installs can activate without dependency bootstrapping. The default `--capability commands` scaffold registers a starter command and a colocated `node:test` suite. `--capability hooks` keeps the starter command and adds an `after_command` lifecycle hook plus SDK testing coverage with `assertRegisteredHook` and `runRegisteredHookForTest`, giving package authors a runnable template for reacting to pm mutations when project management is context management. `--capability search` keeps the starter command and adds a deterministic search provider/vector-store adapter pair plus SDK tests with `assertRegisteredSearchProvider`, `assertRegisteredVectorStoreAdapter`, `runRegisteredSearchProviderForTest`, and `runRegisteredVectorStoreAdapterForTest`, giving retrieval packages a copyable context-management primitive without external services. `--capability importers` keeps the starter command and adds paired import/export command registrations plus SDK tests with `assertRegisteredImporter`, `assertRegisteredExporter`, `runRegisteredImporterForTest`, and `runRegisteredExporterForTest`, giving integration packages a copyable context-movement primitive for synchronizing external project systems; the generated manifest declares both `importers` and `schema` because the starter includes schema-governed flag metadata. Starter manifests use the same least-privilege policy metadata as pure first-party command packages: `trusted: true`, `sandbox_profile: "strict"`, and explicit `false` permissions for `fs_read`, `fs_write`, `network`, `env_read`, `env_write`, and `process_spawn`. Larger packages may point at nested extension directories after declaring runtime dependencies, relaxing only the permissions they actually need, and validating with `pm package doctor`.
|
|
90
|
+
`pm package init` emits a root extension (`"extensions": ["."]`) so local package installs can activate without dependency bootstrapping. The generated entrypoint stays import-free for that first local install, while the generated package README shows how to graduate exported command/hook definitions to the SDK [define* builders](../.agents/pm/decisions/pm-3mph.toon) after `npm install` materializes the peer SDK. The default `--capability commands` scaffold registers a starter command and a colocated `node:test` suite. `--capability hooks` keeps the starter command and adds an `after_command` lifecycle hook plus SDK testing coverage with `assertRegisteredHook` and `runRegisteredHookForTest`, giving package authors a runnable template for reacting to pm mutations when project management is context management. `--capability search` keeps the starter command and adds a deterministic search provider/vector-store adapter pair plus SDK tests with `assertRegisteredSearchProvider`, `assertRegisteredVectorStoreAdapter`, `runRegisteredSearchProviderForTest`, and `runRegisteredVectorStoreAdapterForTest`, giving retrieval packages a copyable context-management primitive without external services. `--capability importers` keeps the starter command and adds paired import/export command registrations plus SDK tests with `assertRegisteredImporter`, `assertRegisteredExporter`, `runRegisteredImporterForTest`, and `runRegisteredExporterForTest`, giving integration packages a copyable context-movement primitive for synchronizing external project systems; the generated manifest declares both `importers` and `schema` because the starter includes schema-governed flag metadata. Starter manifests use the same least-privilege policy metadata as pure first-party command packages: `trusted: true`, `sandbox_profile: "strict"`, and explicit `false` permissions for `fs_read`, `fs_write`, `network`, `env_read`, `env_write`, and `process_spawn`. Larger packages may point at nested extension directories after declaring runtime dependencies, relaxing only the permissions they actually need, and validating with `pm package doctor`.
|
|
91
91
|
|
|
92
92
|
Package tests can pair `readPmPackageManifest(packageRoot)` with
|
|
93
93
|
`assertPackageManifest(manifest, { resources: ... })` from
|
|
@@ -334,11 +334,12 @@ surface guarantees.
|
|
|
334
334
|
|
|
335
335
|
## Lifecycle Commands
|
|
336
336
|
|
|
337
|
-
Explore installed runtime entries:
|
|
337
|
+
Explore installed runtime entries, or describe exactly what each loaded package registers (commands, hooks, item types, providers, overrides) as a by-name surface map:
|
|
338
338
|
|
|
339
339
|
```bash
|
|
340
340
|
pm package explore --project
|
|
341
|
-
pm package
|
|
341
|
+
pm package describe --project # every loaded package
|
|
342
|
+
pm package describe my-extension # one package's surface map
|
|
342
343
|
```
|
|
343
344
|
|
|
344
345
|
Run diagnostics:
|
|
@@ -416,12 +417,14 @@ Third-party packages should import only stable public SDK subpaths:
|
|
|
416
417
|
|
|
417
418
|
```js
|
|
418
419
|
import { defineExtension, createPmCliExpectedError } from "@unbrained/pm-cli/sdk";
|
|
419
|
-
import {
|
|
420
|
+
import { createExtensionTestHarness, activateExtensionForTest } from "@unbrained/pm-cli/sdk/testing";
|
|
420
421
|
```
|
|
421
422
|
|
|
422
423
|
Use `createPmCliExpectedError(message, { exitCode, context })` for expected user/action failures from package commands. It creates an `Error` named `PmCliError` with a structural `exitCode`, so separately installed package code still gets expected-error handling and Sentry filtering.
|
|
423
424
|
|
|
424
|
-
|
|
425
|
+
Prefer the `define*` builders for exported registration definitions (`defineCommand`, `defineFlag`, `defineSearchProvider`, `defineAfterCommandHook`, and the matching override/import/export/hook helpers; see ADR [pm-3mph](../.agents/pm/decisions/pm-3mph.toon)). They are zero-cost identity functions that preserve object literal types and contextually type function parameters before the definitions reach `api.register*`; runtime validation remains in the loader, and behavior validation remains in `sdk/testing`.
|
|
426
|
+
|
|
427
|
+
Prefer `createExtensionTestHarness(module, { capabilities })` in package unit tests: it activates the module once and returns a fluent fixture whose `assert*`/`run*` methods are already bound to the right activation sub-registry (so you never thread `activation.registrations` vs `activation.commands` vs `activation.hooks` by hand), plus a `deactivate()` that runs the real teardown engine — e.g. `harness.assertCommandContract({ command })`, `await harness.runCommand({ command })`, `await harness.deactivate()`. The methods do not use `this`, so they are safe to destructure. For finer control, the standalone helpers remain public: `activateExtensionForTest(module)` returns the raw `activation`, then `runRegisteredCommandForTest(activation.commands, { command })` invokes a registered command handler through pm's real dispatch engine to assert behavior, not just wiring; the matching `runRegisteredHookForTest` (lifecycle hooks), `runRegistered{Parser,Preflight,Command,Renderer,Service}OverrideForTest` (override surfaces), and `runRegistered{SearchProvider,VectorStoreAdapter,Migration,Importer,Exporter}ForTest` (executable registrations — the importer/exporter helpers take the whole `activation` and resolve by name, deriving the command path internally) helpers extend that invoke verb to every other runtime surface. Keep `pm package doctor --project --detail deep --trace` and runtime contracts for integration tests against installed packages.
|
|
425
428
|
|
|
426
429
|
`PM_CLI_PACKAGE_ROOT` is first-party only. Bundled packages in this repository use it to find the running CLI's `dist/sdk/runtime.js` before they are published or installed independently. External packages must not read this environment variable or import from `dist/` or `src/core`; use `@unbrained/pm-cli/sdk`, `@unbrained/pm-cli/sdk/runtime`, and `@unbrained/pm-cli/sdk/testing`. During `pm install npm:<package>`, pm links the installed package's `@unbrained/pm-cli` dependency back to the running host CLI so SDK imports resolve without a duplicate nested CLI install.
|
|
427
430
|
|
package/docs/SDK.md
CHANGED
|
@@ -36,6 +36,8 @@ Source of truth:
|
|
|
36
36
|
Common authoring exports:
|
|
37
37
|
|
|
38
38
|
- `defineExtension`
|
|
39
|
+
- `composeExtension` / `deriveExtensionCapabilities`
|
|
40
|
+
- `describeExtensionBlueprint` (static surface map of a blueprint) / `lintExtensionBlueprint` (author-time preflight)
|
|
39
41
|
- `EXTENSION_CAPABILITIES`
|
|
40
42
|
- `EXTENSION_CAPABILITY_CONTRACT`
|
|
41
43
|
- `EXTENSION_CAPABILITY_CONTRACT_VERSION`
|
|
@@ -48,6 +50,14 @@ Common authoring exports:
|
|
|
48
50
|
- `createPmCliExpectedError`
|
|
49
51
|
- `isPmCliExpectedError`
|
|
50
52
|
|
|
53
|
+
Registration builders (`define*`, zero-cost identity — see [Authoring Builders](#authoring-builders)):
|
|
54
|
+
|
|
55
|
+
- `defineCommand` / `defineFlag` / `defineItemType` / `defineItemField` / `defineMigration`
|
|
56
|
+
- `defineSearchProvider` / `defineVectorStoreAdapter`
|
|
57
|
+
- `defineCommandOverride` / `defineParserOverride` / `definePreflightOverride` / `defineServiceOverride` / `defineRendererOverride`
|
|
58
|
+
- `defineImporter` / `defineExporter`
|
|
59
|
+
- `defineBeforeCommandHook` / `defineAfterCommandHook` / `defineOnWriteHook` / `defineOnReadHook` / `defineOnIndexHook`
|
|
60
|
+
|
|
51
61
|
Package manifest exports:
|
|
52
62
|
|
|
53
63
|
- `PM_PACKAGE_RESOURCE_KINDS` (`extensions`, `docs`, `examples`, `assets`, `prompts`)
|
|
@@ -73,6 +83,7 @@ Command/action contract exports:
|
|
|
73
83
|
|
|
74
84
|
Testing helper exports (also under `@unbrained/pm-cli/sdk/testing`):
|
|
75
85
|
|
|
86
|
+
- `createExtensionTestHarness`
|
|
76
87
|
- `activateExtensionForTest`
|
|
77
88
|
- `deactivateExtensionForTest`
|
|
78
89
|
- `runRegisteredCommandForTest`
|
|
@@ -105,6 +116,23 @@ Testing helper exports (also under `@unbrained/pm-cli/sdk/testing`):
|
|
|
105
116
|
- `assertRegisteredServiceOverride`
|
|
106
117
|
- `assertRegisteredMigration`
|
|
107
118
|
- `assertExtensionCapabilityUsage`
|
|
119
|
+
- `assertExtensionBlueprint` (throwing preflight; pairs with `lintExtensionBlueprint`)
|
|
120
|
+
- `describeExtensionActivation`
|
|
121
|
+
- `describeExtensionBlueprint` / `lintExtensionBlueprint` (also surfaced here for the full author → describe → preflight → test loop)
|
|
122
|
+
|
|
123
|
+
`createExtensionTestHarness(module, options)` is the recommended entry point and
|
|
124
|
+
the ergonomic capstone over every standalone helper below: it activates the
|
|
125
|
+
module once and returns a fluent `ExtensionTestHarness` whose `assert*`/`run*`
|
|
126
|
+
methods are pre-bound to the correct activation sub-registry, so a package author
|
|
127
|
+
never threads `activation.registrations` vs `activation.commands` vs
|
|
128
|
+
`activation.hooks` (etc.) by hand — picking the wrong one is a common footgun that
|
|
129
|
+
surfaces as a confusing `available: (none)` error. Write
|
|
130
|
+
`const ext = await createExtensionTestHarness(module, { capabilities: ["commands"] })`,
|
|
131
|
+
then `ext.assertCommandContract({ command })`, `await ext.runCommand({ command })`,
|
|
132
|
+
and `await ext.deactivate()`. The methods do not use `this`, so they remain safe
|
|
133
|
+
to destructure (`const { runCommand } = ext;`), and the raw `ext.activation`
|
|
134
|
+
stays public as an escape hatch to the standalone helpers for any surface a
|
|
135
|
+
convenience method does not cover.
|
|
108
136
|
|
|
109
137
|
`assertExtensionCapabilityUsage(activation, { declared })` is the least-privilege
|
|
110
138
|
counterpart of the per-surface `assertRegistered*` helpers: pass the same
|
|
@@ -208,6 +236,51 @@ importer / exporter is registered (and, for providers and adapters, implements t
|
|
|
208
236
|
requested operation), so a typo surfaces as a descriptive error rather than a
|
|
209
237
|
silent no-op. All invoke helpers are `async`, so a test always `await`s them.
|
|
210
238
|
|
|
239
|
+
`describeExtensionActivation(activation, { extensionName })` is the **describe**
|
|
240
|
+
(enumerate-all) verb that complements the `assertRegistered*` (verify-one) and
|
|
241
|
+
`runRegistered*ForTest` (invoke-one) helpers. The activation result already
|
|
242
|
+
carries per-surface *counts*; this returns the *names*. It walks every
|
|
243
|
+
sub-registry once and returns a flat `ExtensionActivationSummary` whose arrays
|
|
244
|
+
are de-duplicated and locale-sorted (except `hooks`, emitted in canonical
|
|
245
|
+
lifecycle order to mirror `hook_counts`) of every registered surface's
|
|
246
|
+
identifiers — command paths, hook kinds, item-type /
|
|
247
|
+
field names, migration ids, importer / exporter / provider / adapter names,
|
|
248
|
+
overridden service names and renderer formats, flag target-commands, and the
|
|
249
|
+
preflight-override count — plus the `capabilities` those surfaces exercise. Two
|
|
250
|
+
uses:
|
|
251
|
+
|
|
252
|
+
```ts
|
|
253
|
+
import { describeExtensionActivation } from "@unbrained/pm-cli/sdk/testing";
|
|
254
|
+
|
|
255
|
+
const summary = describeExtensionActivation(activation);
|
|
256
|
+
// Least-privilege check: assert the WHOLE registration surface in one deepEqual.
|
|
257
|
+
assert.deepEqual(summary.commands, ["greet hello"]);
|
|
258
|
+
assert.deepEqual(summary.hooks, ["after_command"]);
|
|
259
|
+
assert.deepEqual(summary.capabilities, ["commands", "hooks"]);
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
Without `extensionName` the summary unions every extension in the activation;
|
|
263
|
+
with it (matched case-insensitively after trimming, like
|
|
264
|
+
`collectUsedExtensionCapabilities`) only that extension's registrations
|
|
265
|
+
contribute. The three command fields capture distinct dimensions and can
|
|
266
|
+
overlap: `commands` lists definitions declared via `registerCommand(definition)`,
|
|
267
|
+
`command_handlers` lists every command path backed by an extension handler (a
|
|
268
|
+
superset that also includes the synthesized `"<name> import"` / `"<name> export"`
|
|
269
|
+
importer/exporter paths), and `command_overrides` lists built-in commands
|
|
270
|
+
replaced via `registerCommand(name, override)`. For agents, one call returns the
|
|
271
|
+
entire surface instead of traversing fifteen-plus sub-registries — keeping the context
|
|
272
|
+
window lean ("project management = context management").
|
|
273
|
+
|
|
274
|
+
The same verb is reachable from the CLI and MCP without writing a test:
|
|
275
|
+
`pm extension describe [name]` / `pm package describe [name]` (and `pm_run` with
|
|
276
|
+
`action: "extension"`/`"package"` and `describe: true`) activate the workspace's
|
|
277
|
+
extensions and return each loaded extension's `ExtensionActivationSummary` under
|
|
278
|
+
`details.extensions[].surfaces`, plus a deduplicated `details.union`. Omit the name
|
|
279
|
+
to map every loaded package; pass one to scope to it. This is the agent-facing answer
|
|
280
|
+
to "what does this installed package add to my context?" — distinct from
|
|
281
|
+
`pm package doctor` (errors/policy) and `pm package manage` (update metadata), which
|
|
282
|
+
report only command/action paths, not the full registration surface.
|
|
283
|
+
|
|
211
284
|
Commander option contract exports:
|
|
212
285
|
|
|
213
286
|
- `CREATE_COMMANDER_OPTION_REGISTRATION_CONTRACTS`
|
|
@@ -243,6 +316,7 @@ the registration surfaces a package actually exercises at activation):
|
|
|
243
316
|
Common types:
|
|
244
317
|
|
|
245
318
|
- `ExtensionApi`
|
|
319
|
+
- `ExtensionActivationSummary`
|
|
246
320
|
- `ExtensionManifest`
|
|
247
321
|
- `ExtensionManifestEngines`
|
|
248
322
|
- `CommandDefinition`
|
|
@@ -320,26 +394,18 @@ assertPackageManifest(manifest, {
|
|
|
320
394
|
```
|
|
321
395
|
|
|
322
396
|
Package tests can also assert extension registrations without importing private
|
|
323
|
-
loader internals.
|
|
324
|
-
the
|
|
397
|
+
loader internals. Prefer `createExtensionTestHarness` — its `assert*`/`run*`
|
|
398
|
+
methods bind to the right sub-registry for you:
|
|
325
399
|
|
|
326
400
|
```ts
|
|
327
|
-
import {
|
|
328
|
-
activateExtensionForTest,
|
|
329
|
-
assertRegisteredCommandContract,
|
|
330
|
-
assertRegisteredFlags,
|
|
331
|
-
} from "@unbrained/pm-cli/sdk/testing";
|
|
401
|
+
import { createExtensionTestHarness } from "@unbrained/pm-cli/sdk/testing";
|
|
332
402
|
|
|
333
|
-
const
|
|
403
|
+
const ext = await createExtensionTestHarness(extensionModule, { capabilities: ["commands", "schema"] });
|
|
334
404
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
assertRegisteredFlags(activation.registrations, {
|
|
340
|
-
targetCommand: "list",
|
|
341
|
-
flags: ["--incident-filter"],
|
|
342
|
-
});
|
|
405
|
+
ext.assertCommandContract({ command: "incident triage", flags: ["--severity"] });
|
|
406
|
+
ext.assertFlags({ targetCommand: "list", flags: ["--incident-filter"] });
|
|
407
|
+
const { result } = await ext.runCommand({ command: "incident triage", options: { severity: "high" } });
|
|
408
|
+
await ext.deactivate();
|
|
343
409
|
```
|
|
344
410
|
|
|
345
411
|
For provider-safe schemas, use `PM_PROVIDER_TOOL_PARAMETERS_SCHEMA`. It is flat and avoids advanced schema constructs such as root `oneOf`.
|
|
@@ -560,6 +626,153 @@ import { createPmCliExpectedError } from "@unbrained/pm-cli/sdk/runtime";
|
|
|
560
626
|
|
|
561
627
|
`PM_CLI_PACKAGE_ROOT` is reserved for first-party packages bundled inside this repository. Those packages use it to locate the running CLI's `dist/sdk/runtime.js` before they are installed as independent npm packages. External packages must not depend on `PM_CLI_PACKAGE_ROOT`, `dist/` paths, or `src/core/...`; declare `@unbrained/pm-cli` as a dependency or peer dependency and import the public SDK subpaths instead. When pm installs a registry package, it links that dependency to the running host CLI so the package gets the active SDK without downloading a second CLI copy into the project.
|
|
562
628
|
|
|
629
|
+
## Authoring Builders
|
|
630
|
+
|
|
631
|
+
Tracked: [pm-12tj](../.agents/pm/features/pm-12tj.toon) (design rationale: ADR [pm-3mph](../.agents/pm/decisions/pm-3mph.toon)).
|
|
632
|
+
|
|
633
|
+
The `define*` builders are the authoring half of the `author → register → test`
|
|
634
|
+
loop: they type a registration definition where you write it, before it ever
|
|
635
|
+
reaches `api.register*`. Each is a zero-cost identity function (it returns its
|
|
636
|
+
argument unchanged), exactly like `defineExtension` and the wider
|
|
637
|
+
`defineConfig`/`defineComponent` ecosystem convention — the value is entirely at
|
|
638
|
+
the type level.
|
|
639
|
+
|
|
640
|
+
This matters most in **plain-JavaScript packages** (the default `pm package init`
|
|
641
|
+
scaffold). A bare `const cmd = { ... }` is unchecked because JS has no type
|
|
642
|
+
annotations; wrapping it in a builder restores full contract checking and infers
|
|
643
|
+
the nested handler's `context` parameter through the editor's TypeScript language
|
|
644
|
+
service. It also lets you colocate, export, reuse, and unit-test a definition
|
|
645
|
+
apart from `activate`:
|
|
646
|
+
|
|
647
|
+
```js
|
|
648
|
+
import { defineCommand, defineAfterCommandHook } from "@unbrained/pm-cli/sdk";
|
|
649
|
+
|
|
650
|
+
// `context` is inferred even though this is a .js file with no annotations.
|
|
651
|
+
export const greetCommand = defineCommand({
|
|
652
|
+
name: "greet hello",
|
|
653
|
+
action: "greet-hello",
|
|
654
|
+
description: "Say hello.",
|
|
655
|
+
run: (context) => ({ greeting: `hi ${context.args[0] ?? "world"}` }),
|
|
656
|
+
});
|
|
657
|
+
|
|
658
|
+
export const auditHook = defineAfterCommandHook((context) => {
|
|
659
|
+
if (!context.ok) return;
|
|
660
|
+
// react to context.affected — "project management = context management"
|
|
661
|
+
});
|
|
662
|
+
|
|
663
|
+
export function activate(api) {
|
|
664
|
+
api.registerCommand(greetCommand);
|
|
665
|
+
api.hooks.afterCommand(auditHook);
|
|
666
|
+
}
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
Object-definition builders (`defineExtensionManifest`, `defineCommand`,
|
|
670
|
+
`defineFlag`, `defineItemType`, `defineItemField`, `defineMigration`,
|
|
671
|
+
`defineSearchProvider`, `defineVectorStoreAdapter`) preserve the narrow literal
|
|
672
|
+
type. `defineExtensionManifest` additionally contract-checks the in-module
|
|
673
|
+
manifest mirror where it is authored and pairs with `deriveExtensionCapabilities`
|
|
674
|
+
(see [Declarative Authoring](#declarative-authoring)). Function-definition
|
|
675
|
+
builders (`defineCommandOverride`, `defineParserOverride`,
|
|
676
|
+
`definePreflightOverride`, `defineServiceOverride`, `defineRendererOverride`,
|
|
677
|
+
`defineImporter`, `defineExporter`, and the five hook builders
|
|
678
|
+
`defineBeforeCommandHook` / `defineAfterCommandHook` / `defineOnWriteHook` /
|
|
679
|
+
`defineOnReadHook` / `defineOnIndexHook`) are non-generic so a bare arrow's
|
|
680
|
+
parameter is contextually typed instead of falling back to `any`. The
|
|
681
|
+
[`assertRegistered*`](#testing-helpers) helpers below verify these same
|
|
682
|
+
definitions once registered.
|
|
683
|
+
|
|
684
|
+
## Declarative Authoring
|
|
685
|
+
|
|
686
|
+
Tracked: [pm-iqq0](../.agents/pm/features/pm-iqq0.toon).
|
|
687
|
+
|
|
688
|
+
`composeExtension` is the capstone of the `author → register → test` loop. Instead
|
|
689
|
+
of hand-wiring each `api.register*` call inside an imperative `activate(api)`
|
|
690
|
+
body — calling the right method, in the right order, without forgetting one —
|
|
691
|
+
describe **what** to register as a plain `ExtensionBlueprint` object and let the
|
|
692
|
+
SDK generate the `activate` for you. Every field is optional; populate the
|
|
693
|
+
surfaces you use (ideally with `define*`-authored definitions) and leave the rest
|
|
694
|
+
out:
|
|
695
|
+
|
|
696
|
+
```js
|
|
697
|
+
import { composeExtension, defineCommand, deriveExtensionCapabilities } from "@unbrained/pm-cli/sdk";
|
|
698
|
+
|
|
699
|
+
const echo = defineCommand({
|
|
700
|
+
name: "command-kit echo",
|
|
701
|
+
action: "command-kit-echo",
|
|
702
|
+
description: "Echo a message as structured output.",
|
|
703
|
+
run: (context) => ({ message: context.args.join(" ") }),
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
const blueprint = {
|
|
707
|
+
commands: [echo],
|
|
708
|
+
parsers: { "command-kit echo": (context) => ({ options: context.options }) },
|
|
709
|
+
flags: { list: [{ long: "--kit-note", value_type: "string", value_name: "text" }] },
|
|
710
|
+
};
|
|
711
|
+
|
|
712
|
+
// The generated `activate` registers commands → overrides → flags → parsers →
|
|
713
|
+
// renderers → services → preflights → item types → item fields → migrations →
|
|
714
|
+
// search providers → vector store adapters → importers → exporters → hooks, then
|
|
715
|
+
// awaits any imperative `activate` you also pass (an escape hatch run last).
|
|
716
|
+
export default composeExtension(blueprint);
|
|
717
|
+
```
|
|
718
|
+
|
|
719
|
+
`deriveExtensionCapabilities(blueprint)` returns the exact least-privilege
|
|
720
|
+
capability set the blueprint exercises (sorted, de-duplicated), so you can author
|
|
721
|
+
`manifest.json` `capabilities` with zero declared-but-unused or used-but-undeclared
|
|
722
|
+
drift. It is the author-time inverse of the runtime
|
|
723
|
+
[`reconcileExtensionCapabilityUsage`](#capability-requirements) check, and the set
|
|
724
|
+
it returns is the set `composeExtension`'s generated `activate` requires — they
|
|
725
|
+
agree by construction:
|
|
726
|
+
|
|
727
|
+
```js
|
|
728
|
+
deriveExtensionCapabilities(blueprint); // ["commands", "parser", "schema"]
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
The blueprint's record-keyed fields (`commandOverrides`, `flags`, `parsers`,
|
|
732
|
+
`renderers`, `services`) map a routing key to its handler, mirroring the
|
|
733
|
+
two-argument `api.register*` overloads; `hooks` groups the five lifecycle kinds.
|
|
734
|
+
`composeExtension` is a pure assembler: it does not validate definitions —
|
|
735
|
+
per-surface contract enforcement stays in `api.register*` and the loader, so a
|
|
736
|
+
malformed definition surfaces the same activation diagnostic as a hand-written
|
|
737
|
+
`activate`. The bundled first-party packages intentionally keep import-free
|
|
738
|
+
hand-written `activate` bodies so they load in extension-only installs; reach for
|
|
739
|
+
`composeExtension` in npm package-mode authoring where the SDK is a dependency.
|
|
740
|
+
|
|
741
|
+
### Author-time introspection and preflight
|
|
742
|
+
|
|
743
|
+
Tracked: [pm-tlpv](../.agents/pm/features/pm-tlpv.toon),
|
|
744
|
+
[pm-9ect](../.agents/pm/features/pm-9ect.toon),
|
|
745
|
+
[pm-4oio](../.agents/pm/decisions/pm-4oio.toon).
|
|
746
|
+
|
|
747
|
+
Two pure, no-activation helpers complete the loop, so a blueprint is fully
|
|
748
|
+
inspectable and verifiable before it is ever loaded — the author-time inverse of
|
|
749
|
+
the runtime guardrails (the same discipline as `deriveExtensionCapabilities`
|
|
750
|
+
inverting [`reconcileExtensionCapabilityUsage`](#capability-requirements)):
|
|
751
|
+
|
|
752
|
+
```js
|
|
753
|
+
import { describeExtensionBlueprint, lintExtensionBlueprint } from "@unbrained/pm-cli/sdk";
|
|
754
|
+
|
|
755
|
+
// describeExtensionBlueprint returns the same ExtensionActivationSummary shape as
|
|
756
|
+
// the runtime describeExtensionActivation — but from the blueprint data alone, no
|
|
757
|
+
// activation. It is to the named surfaces what deriveExtensionCapabilities is to
|
|
758
|
+
// the capability set.
|
|
759
|
+
describeExtensionBlueprint(blueprint).command_handlers; // ["command-kit echo", ...]
|
|
760
|
+
|
|
761
|
+
// lintExtensionBlueprint preflights for the footguns activation would otherwise
|
|
762
|
+
// surface late: a capability a surface exercises but the manifest omits is an
|
|
763
|
+
// `error` (the loader throws extension_capability_missing); a declared-but-unused
|
|
764
|
+
// capability, a duplicate command, a command/override conflict, and a present-but-
|
|
765
|
+
// empty surface are `warning`s. Pass declaredCapabilities or set manifest.capabilities.
|
|
766
|
+
const report = lintExtensionBlueprint(blueprint, { declaredCapabilities: ["commands", "parser", "schema"] });
|
|
767
|
+
report.ok; // false if any error-severity finding
|
|
768
|
+
report.findings; // [{ code, severity, message, capability?/command?/field? }, ...]
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
Both read only the declarative data, so the imperative `activate` escape hatch is
|
|
772
|
+
invisible to them — a blueprint that registers everything through that hatch
|
|
773
|
+
summarizes as empty and lints clean. In a package test, `assertExtensionBlueprint`
|
|
774
|
+
(below) turns the lint into a one-line CI guard.
|
|
775
|
+
|
|
563
776
|
## Testing Helpers
|
|
564
777
|
|
|
565
778
|
Package tests can assert registration contracts without depending on Vitest-specific
|
|
@@ -607,6 +820,22 @@ guardrails, but it does not discover files or install packages. Use it for unit
|
|
|
607
820
|
tests of extension registration shape; keep `pm package doctor` and runtime
|
|
608
821
|
contracts in integration tests.
|
|
609
822
|
|
|
823
|
+
For declarative (`composeExtension`) packages, `assertExtensionBlueprint(blueprint, options?)`
|
|
824
|
+
is the `assert*` family member that preflights the blueprint *without* activating
|
|
825
|
+
it — it runs `lintExtensionBlueprint` and throws if any finding is error-severity
|
|
826
|
+
(today: a capability a surface exercises but the declared set omits, which would
|
|
827
|
+
fail activation with `extension_capability_missing`). It returns the full
|
|
828
|
+
`ExtensionBlueprintLintResult` on success so a test can still inspect advisory
|
|
829
|
+
warnings:
|
|
830
|
+
|
|
831
|
+
```ts
|
|
832
|
+
import { assertExtensionBlueprint } from "@unbrained/pm-cli/sdk/testing";
|
|
833
|
+
|
|
834
|
+
// Throws if the blueprint and its declared capabilities have drifted; otherwise
|
|
835
|
+
// returns the lint result (including any non-blocking warnings) for inspection.
|
|
836
|
+
const report = assertExtensionBlueprint(blueprint);
|
|
837
|
+
```
|
|
838
|
+
|
|
610
839
|
Invoke a registered command handler to assert its behavior (not just that it was
|
|
611
840
|
registered). `runRegisteredCommandForTest` dispatches through pm's real engine and
|
|
612
841
|
returns the `CommandHandlerResult`:
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
_testOnly,
|
|
3
|
-
runActivity
|
|
4
|
-
} from "./chunk-QQWEROGS.js";
|
|
5
|
-
import "./chunk-YRLLL5TY.js";
|
|
6
|
-
import "./chunk-J2TSPY5L.js";
|
|
7
|
-
import "./chunk-PJS2J7Z4.js";
|
|
8
|
-
import "./chunk-GNDHOR64.js";
|
|
9
|
-
import "./chunk-AJXYOYJV.js";
|
|
10
|
-
import "./chunk-CR7KFPAQ.js";
|
|
11
|
-
import "./chunk-3VLPDG3J.js";
|
|
12
|
-
import "./chunk-4JXWVHMN.js";
|
|
13
|
-
import "./chunk-RZZMSY4P.js";
|
|
14
|
-
export {
|
|
15
|
-
_testOnly,
|
|
16
|
-
runActivity
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=activity-NEOI45NX.js.map
|