@unbrained/pm-cli 2026.6.21 → 2026.6.22
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 -3
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/extension/doctor.d.ts +11 -0
- package/dist/cli/commands/extension/doctor.js +31 -2
- package/dist/cli/commands/extension/doctor.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.d.ts +16 -2
- package/dist/cli/commands/extension/scaffold.js +481 -48
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +1 -0
- package/dist/cli/commands/extension.js +9 -4
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/help-content.js +16 -4
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/register-setup.js +6 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli-bundle/chunks/{activity-KW3IRP44.js → activity-DXS2XMQU.js} +11 -11
- package/dist/cli-bundle/chunks/activity-NEOI45NX.js +18 -0
- package/dist/cli-bundle/chunks/{aggregate-FIGQEIL3.js → aggregate-IHM4KMQ3.js} +10 -10
- package/dist/cli-bundle/chunks/{aggregate-3ZKQG5SW.js → aggregate-NMYDVQF7.js} +10 -10
- package/dist/cli-bundle/chunks/{append-EWJYJ7CH.js → append-3HY5G7ET.js} +8 -8
- package/dist/cli-bundle/chunks/{append-QEOLX3XB.js → append-K54MDQYC.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-CF55WVVS.js → chunk-25XZN3JD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WQ7NIVDK.js → chunk-2LEYMXI6.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-3GL6LTUL.js +643 -0
- package/dist/cli-bundle/chunks/chunk-3GL6LTUL.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FRUFKWNK.js → chunk-3VLPDG3J.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-C3AZ5ZML.js → chunk-44O4JIN6.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-J4MYYSOL.js → chunk-47HTJ6BU.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-YCJX76PW.js → chunk-4JXWVHMN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-37QXHBIB.js → chunk-4SDKF5BG.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-4YJA4LGU.js +646 -0
- package/dist/cli-bundle/chunks/chunk-4YJA4LGU.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-NJHMAJ6N.js → chunk-5SESR24H.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-2EIMPCE4.js → chunk-6FQHNHQQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-5FIEHKEX.js → chunk-6UPTNMVW.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-FKBDKV7Y.js → chunk-75VEYQJS.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GMHPNNYG.js → chunk-77VKGH4L.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-5PCI3UBT.js → chunk-7GCCDXXN.js} +55 -266
- package/dist/cli-bundle/chunks/chunk-7GCCDXXN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-OFYMIDF2.js → chunk-7MALIV5H.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-A4Z7ZOL5.js → chunk-7MPTFYT3.js} +20 -15
- package/dist/cli-bundle/chunks/chunk-7MPTFYT3.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RLK7P77C.js → chunk-7PBGTIN3.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-6H4LF7AO.js → chunk-A25LOPRG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-M5XALUSL.js → chunk-A7E4ZXG2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7D3SAQXM.js → chunk-AJXYOYJV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HCU6WUSY.js → chunk-B2KR24R4.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-2GCDRRIF.js → chunk-C5SWTISA.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-AIS5PGI3.js → chunk-CLLVBO3I.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QGG32QHW.js → chunk-CR7KFPAQ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UV6IYE5U.js → chunk-CWPBGUC7.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-32R4PIC6.js → chunk-D35LTIFR.js} +55 -259
- package/dist/cli-bundle/chunks/chunk-D35LTIFR.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-QQHISQBJ.js → chunk-DBQUQ3AS.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-5QICDWMV.js → chunk-DHBPJ7VG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SRYYRVPB.js → chunk-DMT4ODVN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-PUH4D67U.js → chunk-DU64SZUQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-C4N5I7ZW.js → chunk-EVPVCE4R.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-3EWSGA7N.js → chunk-FK6MV5F5.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-NIUEXCFS.js → chunk-GGAXE22C.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-SX75ADBK.js → chunk-GNDHOR64.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-GOZUHWFD.js → chunk-GU7YHKYP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NXS7ZKAK.js → chunk-GXBSFKSX.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-NJN7LL7U.js → chunk-H6FNDCDI.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-FWPDUYEY.js → chunk-HYQV75IB.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-F5NZWFSW.js → chunk-I367IDZP.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-52OCIDPG.js → chunk-I6XE47J2.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-HIP7WVTL.js → chunk-J2TSPY5L.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-2PKHRP6G.js → chunk-JLSC5NPC.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-PP2U4NMT.js → chunk-JY25IOEZ.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-Q2J2HJUN.js → chunk-K25UDYJ4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SBGXDO7A.js → chunk-KBTREGVO.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-QZTWBFXJ.js → chunk-KK4TQ3ZP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-434HM6Z5.js → chunk-KL5ELX2X.js} +81 -3
- package/dist/cli-bundle/chunks/chunk-KL5ELX2X.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-NIGXMNNI.js → chunk-KRJJPDUO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AZMOLBN3.js → chunk-MD7XKVWI.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6ZXM2XNF.js → chunk-MNGAQB2E.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-3MDHREEV.js → chunk-NIWY4V4Z.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TKBHZPKD.js → chunk-NKZOJPXK.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CZPXY7UW.js → chunk-NVUATMTC.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-LEU5GHRC.js → chunk-P7ZU73BO.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NSBZ2CKF.js → chunk-PCH2JTEO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-B473GZWW.js → chunk-PJS2J7Z4.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-5IDI42VV.js → chunk-QQWEROGS.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6M4RJS4M.js → chunk-RPRFBXND.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-HMOADQVT.js → chunk-RZZMSY4P.js} +88 -3
- package/dist/cli-bundle/chunks/chunk-RZZMSY4P.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-N5ZJACJ6.js → chunk-SFKQAVZA.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-EBH56IXK.js → chunk-THKDPOS5.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-LUWW7L4B.js → chunk-TIKJAXQW.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-OTHIWLMB.js → chunk-TJABI6PR.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-HC4AWIKT.js → chunk-TRUFOER3.js} +19 -14
- package/dist/cli-bundle/chunks/{chunk-HC4AWIKT.js.map → chunk-TRUFOER3.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-76Z3YSHV.js → chunk-TZQKEBKF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-PFSRUHDH.js → chunk-UKK2VTTH.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-H7NJZWG2.js → chunk-V4SM4UAL.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-CZUB4XWO.js → chunk-VB54F347.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-O47BPOPC.js → chunk-WBSYW3NT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UPE3CDD7.js → chunk-WQDX7DVG.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-NB3PYLQ6.js → chunk-XKNF3VRJ.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-F7K5GWP3.js → chunk-Y335KFHD.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-D7FYS6PG.js → chunk-Y4BZEND6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6CJWZAN7.js → chunk-YATDFWYK.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-UEMNL33O.js → chunk-YJICYNAV.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-Z6T4PQI2.js → chunk-YQSWTVZF.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-RVHYI7SL.js → chunk-YRLLL5TY.js} +8 -8
- package/dist/cli-bundle/chunks/{claim-RC56YUWG.js → claim-MPXNVBZQ.js} +10 -10
- package/dist/cli-bundle/chunks/{claim-THOJ6CMV.js → claim-SKHJDLW6.js} +10 -10
- package/dist/cli-bundle/chunks/{close-SG5MNCVQ.js → close-4RKSL5L6.js} +8 -8
- package/dist/cli-bundle/chunks/close-Z6AI736U.js +15 -0
- package/dist/cli-bundle/chunks/{close-many-DKQLBGLV.js → close-many-AWTPXLHJ.js} +15 -15
- package/dist/cli-bundle/chunks/{close-many-3L3AQZBU.js → close-many-SXODYBDP.js} +15 -15
- package/dist/cli-bundle/chunks/{comments-SKWMDWCW.js → comments-OOH64LWW.js} +10 -10
- package/dist/cli-bundle/chunks/{comments-M7ZOZNBX.js → comments-YYW5P7AG.js} +10 -10
- package/dist/cli-bundle/chunks/{config-OZCUABPB.js → config-3445MCQQ.js} +8 -8
- package/dist/cli-bundle/chunks/{config-7CK62S7T.js → config-LCDMKRB2.js} +8 -8
- package/dist/cli-bundle/chunks/{context-PUG2A7RC.js → context-DZMIBIVP.js} +13 -13
- package/dist/cli-bundle/chunks/{context-OEC366TO.js → context-PJCURODY.js} +13 -13
- package/dist/cli-bundle/chunks/{contracts-3THOLA7L.js → contracts-7YDFEJB3.js} +4 -4
- package/dist/cli-bundle/chunks/{contracts-N65FXEOL.js → contracts-MP2P3HL5.js} +4 -4
- package/dist/cli-bundle/chunks/{copy-JPX7VZCH.js → copy-63IQQRRS.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-6QLHILAC.js → copy-TASIH2AZ.js} +7 -7
- package/dist/cli-bundle/chunks/create-3BV2VA3Q.js +30 -0
- package/dist/cli-bundle/chunks/{create-Y54ZVVZH.js → create-TGSB5GV4.js} +14 -14
- package/dist/cli-bundle/chunks/{delete-63PCMQAJ.js → delete-ARILQQLB.js} +7 -7
- package/dist/cli-bundle/chunks/{delete-GDSMGAGJ.js → delete-ZQKBZYNK.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-T4ZF5G54.js → deps-MSHQR2GY.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-XYQ73XRH.js → deps-NJFJIMQ5.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-C75YIXHC.js → docs-SS4UKYYA.js} +9 -9
- package/dist/cli-bundle/chunks/{docs-EHNPDWUL.js → docs-XK2UVUXX.js} +9 -9
- package/dist/cli-bundle/chunks/{eval-GTENKE24.js → eval-FVZGX5IZ.js} +12 -12
- package/dist/cli-bundle/chunks/{eval-3WKDTRMH.js → eval-JOTG2YHU.js} +12 -12
- package/dist/cli-bundle/chunks/{extension-46NWACO3.js → extension-NLMS47I4.js} +6 -5
- package/dist/cli-bundle/chunks/{extension-D5FDZ2CO.js → extension-OQPS27B4.js} +6 -5
- package/dist/cli-bundle/chunks/{files-X3H7CCBQ.js → files-3EVJQZ2N.js} +9 -9
- package/dist/cli-bundle/chunks/{files-DSZBOSSN.js → files-Y2P6LN5A.js} +9 -9
- package/dist/cli-bundle/chunks/{focus-5STQXDPU.js → focus-D5ZUPTII.js} +8 -8
- package/dist/cli-bundle/chunks/{focus-MDVPOWB5.js → focus-ZPIFTY4R.js} +8 -8
- package/dist/cli-bundle/chunks/{gc-ZMST3WQP.js → gc-LXXDY456.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-ZC7JHBG7.js → gc-RNOEQHSX.js} +3 -3
- package/dist/cli-bundle/chunks/{get-NT7L2HUZ.js → get-Q3SZGQHD.js} +11 -11
- package/dist/cli-bundle/chunks/{get-J2IPJRZW.js → get-W23G7MJX.js} +11 -11
- package/dist/cli-bundle/chunks/{health-WOYBR3KU.js → health-5LHSX365.js} +14 -13
- package/dist/cli-bundle/chunks/{health-WOYBR3KU.js.map → health-5LHSX365.js.map} +1 -1
- package/dist/cli-bundle/chunks/{health-IVMA3XQC.js → health-UDDGJLPP.js} +16 -15
- package/dist/cli-bundle/chunks/{health-IVMA3XQC.js.map → health-UDDGJLPP.js.map} +1 -1
- package/dist/cli-bundle/chunks/{history-RLH2QCRO.js → history-6CZVFIUJ.js} +10 -10
- package/dist/cli-bundle/chunks/history-YRQUD4YM.js +20 -0
- package/dist/cli-bundle/chunks/{history-compact-ZBEBGJM7.js → history-compact-M35PDQ4G.js} +12 -12
- package/dist/cli-bundle/chunks/{history-compact-UXDIFC33.js → history-compact-VWUSQH6Z.js} +12 -12
- package/dist/cli-bundle/chunks/history-redact-27OEOZRZ.js +21 -0
- package/dist/cli-bundle/chunks/{history-redact-P7I7AWMB.js → history-redact-AJGARHT3.js} +11 -11
- package/dist/cli-bundle/chunks/{history-repair-52KINVIK.js → history-repair-5RDMF7K4.js} +12 -12
- package/dist/cli-bundle/chunks/{history-repair-RM5ITLU5.js → history-repair-YUAHIPIN.js} +12 -12
- package/dist/cli-bundle/chunks/init-DWAKYRXI.js +21 -0
- package/dist/cli-bundle/chunks/{init-2BNZOO6F.js → init-HASX3YNJ.js} +11 -10
- package/dist/cli-bundle/chunks/{learnings-W6F3FIPL.js → learnings-JNGUIJDK.js} +10 -10
- package/dist/cli-bundle/chunks/{learnings-YGYVHWJK.js → learnings-M4KA6MQE.js} +10 -10
- package/dist/cli-bundle/chunks/{list-KPAYU5KZ.js → list-5UU2W24O.js} +10 -10
- package/dist/cli-bundle/chunks/{list-K6FPV4J4.js → list-6FMKTIH3.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-YTD6ZILW.js → notes-MODH5CBT.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-PU74EPKV.js → notes-PYCPLA5Y.js} +10 -10
- package/dist/cli-bundle/chunks/{plan-GEQYUCBW.js → plan-DXRIRYRU.js} +14 -14
- package/dist/cli-bundle/chunks/{plan-FNXHXRCI.js → plan-EHQALWSC.js} +14 -14
- package/dist/cli-bundle/chunks/{register-list-query-QI45RMKN.js → register-list-query-QAASVP2J.js} +19 -19
- package/dist/cli-bundle/chunks/{register-list-query-PHWYHENI.js → register-list-query-WE54YJMH.js} +19 -19
- package/dist/cli-bundle/chunks/{register-mutation-YINRTS7L.js → register-mutation-B6DZJTY2.js} +33 -33
- package/dist/cli-bundle/chunks/{register-mutation-X3BUOQEL.js → register-mutation-CPV4C2KR.js} +33 -33
- package/dist/cli-bundle/chunks/{register-operations-E5JEASRK.js → register-operations-AT3BVVX2.js} +32 -32
- package/dist/cli-bundle/chunks/{register-operations-MIDTRW7S.js → register-operations-RC4C3423.js} +32 -32
- package/dist/cli-bundle/chunks/{register-setup-EG2U6CEU.js → register-setup-HXEHMDHE.js} +23 -18
- package/dist/cli-bundle/chunks/register-setup-HXEHMDHE.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-DYBFLEZX.js → register-setup-JSMJEFCJ.js} +24 -19
- package/dist/cli-bundle/chunks/register-setup-JSMJEFCJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{restore-XQYSWBV7.js → restore-FNBV4GWE.js} +11 -11
- package/dist/cli-bundle/chunks/restore-XY4YE2OV.js +19 -0
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-HJMTEXKE.js → scheduling-shortcuts-ECL6GBMZ.js} +14 -14
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-NNT5ASZR.js → scheduling-shortcuts-JRIUREEU.js} +14 -14
- package/dist/cli-bundle/chunks/{schema-TZXW6XWD.js → schema-74YENAJL.js} +9 -9
- package/dist/cli-bundle/chunks/{schema-263RI4WW.js → schema-TCW3I7QR.js} +9 -9
- package/dist/cli-bundle/chunks/{search-SFRJOVDG.js → search-7USZ6XZA.js} +12 -12
- package/dist/cli-bundle/chunks/{search-LECJYSXE.js → search-GNAUE65M.js} +12 -12
- package/dist/cli-bundle/chunks/{stats-VPBGSRQH.js → stats-CVHASAEU.js} +8 -8
- package/dist/cli-bundle/chunks/{stats-N7ER2PNK.js → stats-DQMKJMFT.js} +8 -8
- package/dist/cli-bundle/chunks/{telemetry-PP3FUNBU.js → telemetry-7P5EUWCS.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-L6K3BUIQ.js → telemetry-PQTL5YS2.js} +4 -4
- package/dist/cli-bundle/chunks/test-COWPCGBE.js +36 -0
- package/dist/cli-bundle/chunks/{test-3EGNS3T5.js → test-FDQZQNZ4.js} +16 -15
- package/dist/cli-bundle/chunks/{test-all-ZHFAWNC3.js → test-all-PIPPS4S5.js} +18 -17
- package/dist/cli-bundle/chunks/{test-all-ZHFAWNC3.js.map → test-all-PIPPS4S5.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-all-NJ5V2QFS.js → test-all-WQIAZVA6.js} +16 -15
- package/dist/cli-bundle/chunks/{test-all-NJ5V2QFS.js.map → test-all-WQIAZVA6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-runs-GN3C6GOI.js → test-runs-JS6DNCCI.js} +5 -5
- package/dist/cli-bundle/chunks/{test-runs-AJHR6IQF.js → test-runs-NZD2QGL5.js} +5 -5
- package/dist/cli-bundle/chunks/update-7IYQHX4Q.js +24 -0
- package/dist/cli-bundle/chunks/update-IJKDRBIX.js +28 -0
- package/dist/cli-bundle/chunks/{update-many-RYQ64CFW.js → update-many-6NTZ5J5D.js} +23 -23
- package/dist/cli-bundle/chunks/{update-many-N2AN6ZDH.js → update-many-B3TH5TDS.js} +23 -23
- package/dist/cli-bundle/chunks/{upgrade-VPCIYAVW.js → upgrade-4C7VE7MS.js} +8 -7
- package/dist/cli-bundle/chunks/{upgrade-VPCIYAVW.js.map → upgrade-4C7VE7MS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{upgrade-TJXFLZIX.js → upgrade-76IKZ6EZ.js} +6 -5
- package/dist/cli-bundle/chunks/{upgrade-TJXFLZIX.js.map → upgrade-76IKZ6EZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{validate-PHKIYGSY.js → validate-AQU7OCL3.js} +21 -20
- package/dist/cli-bundle/chunks/{validate-PHKIYGSY.js.map → validate-AQU7OCL3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{validate-JMNWEUYF.js → validate-BPM6Z3OT.js} +23 -22
- package/dist/cli-bundle/chunks/{validate-JMNWEUYF.js.map → validate-BPM6Z3OT.js.map} +1 -1
- package/dist/cli-bundle/main.js +34 -22
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/core/extensions/capability-usage.d.ts +82 -0
- package/dist/core/extensions/capability-usage.js +133 -0
- package/dist/core/extensions/capability-usage.js.map +1 -0
- package/dist/core/extensions/extension-capability-aliases.d.ts +7 -0
- package/dist/core/extensions/extension-capability-aliases.js +12 -2
- package/dist/core/extensions/extension-capability-aliases.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -0
- package/dist/core/extensions/index.js +3 -2
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +1 -0
- package/dist/sdk/cli-contracts.js +18 -13
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/index.d.ts +7 -2
- package/dist/sdk/index.js +8 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/testing.d.ts +520 -1
- package/dist/sdk/testing.js +477 -18
- package/dist/sdk/testing.js.map +1 -1
- package/docs/EXTENSIONS.md +4 -8
- package/docs/SDK.md +257 -0
- package/package.json +2 -2
- package/dist/cli-bundle/chunks/activity-CIHV64UC.js +0 -18
- package/dist/cli-bundle/chunks/chunk-32R4PIC6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-434HM6Z5.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-5PCI3UBT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-A4Z7ZOL5.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-HMOADQVT.js.map +0 -7
- package/dist/cli-bundle/chunks/close-DNMHGOCX.js +0 -15
- package/dist/cli-bundle/chunks/create-NNP6TSFO.js +0 -30
- package/dist/cli-bundle/chunks/history-WX3MGFS2.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-YQGU3XRA.js +0 -21
- package/dist/cli-bundle/chunks/init-SC2P6CHP.js +0 -20
- package/dist/cli-bundle/chunks/register-setup-DYBFLEZX.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-EG2U6CEU.js.map +0 -7
- package/dist/cli-bundle/chunks/restore-5KHR2YYQ.js +0 -19
- package/dist/cli-bundle/chunks/test-RQCTSWUK.js +0 -35
- package/dist/cli-bundle/chunks/update-6YXOGHRT.js +0 -24
- package/dist/cli-bundle/chunks/update-V33YUBRP.js +0 -28
- /package/dist/cli-bundle/chunks/{activity-KW3IRP44.js.map → activity-DXS2XMQU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-CIHV64UC.js.map → activity-NEOI45NX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-FIGQEIL3.js.map → aggregate-IHM4KMQ3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-3ZKQG5SW.js.map → aggregate-NMYDVQF7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-EWJYJ7CH.js.map → append-3HY5G7ET.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-QEOLX3XB.js.map → append-K54MDQYC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CF55WVVS.js.map → chunk-25XZN3JD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WQ7NIVDK.js.map → chunk-2LEYMXI6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FRUFKWNK.js.map → chunk-3VLPDG3J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C3AZ5ZML.js.map → chunk-44O4JIN6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-J4MYYSOL.js.map → chunk-47HTJ6BU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YCJX76PW.js.map → chunk-4JXWVHMN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-37QXHBIB.js.map → chunk-4SDKF5BG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NJHMAJ6N.js.map → chunk-5SESR24H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2EIMPCE4.js.map → chunk-6FQHNHQQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5FIEHKEX.js.map → chunk-6UPTNMVW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FKBDKV7Y.js.map → chunk-75VEYQJS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GMHPNNYG.js.map → chunk-77VKGH4L.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OFYMIDF2.js.map → chunk-7MALIV5H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RLK7P77C.js.map → chunk-7PBGTIN3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6H4LF7AO.js.map → chunk-A25LOPRG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-M5XALUSL.js.map → chunk-A7E4ZXG2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7D3SAQXM.js.map → chunk-AJXYOYJV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HCU6WUSY.js.map → chunk-B2KR24R4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2GCDRRIF.js.map → chunk-C5SWTISA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AIS5PGI3.js.map → chunk-CLLVBO3I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QGG32QHW.js.map → chunk-CR7KFPAQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UV6IYE5U.js.map → chunk-CWPBGUC7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QQHISQBJ.js.map → chunk-DBQUQ3AS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5QICDWMV.js.map → chunk-DHBPJ7VG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SRYYRVPB.js.map → chunk-DMT4ODVN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PUH4D67U.js.map → chunk-DU64SZUQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C4N5I7ZW.js.map → chunk-EVPVCE4R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3EWSGA7N.js.map → chunk-FK6MV5F5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NIUEXCFS.js.map → chunk-GGAXE22C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SX75ADBK.js.map → chunk-GNDHOR64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GOZUHWFD.js.map → chunk-GU7YHKYP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NXS7ZKAK.js.map → chunk-GXBSFKSX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NJN7LL7U.js.map → chunk-H6FNDCDI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FWPDUYEY.js.map → chunk-HYQV75IB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F5NZWFSW.js.map → chunk-I367IDZP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-52OCIDPG.js.map → chunk-I6XE47J2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HIP7WVTL.js.map → chunk-J2TSPY5L.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2PKHRP6G.js.map → chunk-JLSC5NPC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PP2U4NMT.js.map → chunk-JY25IOEZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q2J2HJUN.js.map → chunk-K25UDYJ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SBGXDO7A.js.map → chunk-KBTREGVO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QZTWBFXJ.js.map → chunk-KK4TQ3ZP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NIGXMNNI.js.map → chunk-KRJJPDUO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AZMOLBN3.js.map → chunk-MD7XKVWI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ZXM2XNF.js.map → chunk-MNGAQB2E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3MDHREEV.js.map → chunk-NIWY4V4Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TKBHZPKD.js.map → chunk-NKZOJPXK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CZPXY7UW.js.map → chunk-NVUATMTC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LEU5GHRC.js.map → chunk-P7ZU73BO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NSBZ2CKF.js.map → chunk-PCH2JTEO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-B473GZWW.js.map → chunk-PJS2J7Z4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5IDI42VV.js.map → chunk-QQWEROGS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6M4RJS4M.js.map → chunk-RPRFBXND.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-N5ZJACJ6.js.map → chunk-SFKQAVZA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EBH56IXK.js.map → chunk-THKDPOS5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LUWW7L4B.js.map → chunk-TIKJAXQW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OTHIWLMB.js.map → chunk-TJABI6PR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-76Z3YSHV.js.map → chunk-TZQKEBKF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PFSRUHDH.js.map → chunk-UKK2VTTH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H7NJZWG2.js.map → chunk-V4SM4UAL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CZUB4XWO.js.map → chunk-VB54F347.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-O47BPOPC.js.map → chunk-WBSYW3NT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UPE3CDD7.js.map → chunk-WQDX7DVG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NB3PYLQ6.js.map → chunk-XKNF3VRJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F7K5GWP3.js.map → chunk-Y335KFHD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D7FYS6PG.js.map → chunk-Y4BZEND6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6CJWZAN7.js.map → chunk-YATDFWYK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UEMNL33O.js.map → chunk-YJICYNAV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z6T4PQI2.js.map → chunk-YQSWTVZF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RVHYI7SL.js.map → chunk-YRLLL5TY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-RC56YUWG.js.map → claim-MPXNVBZQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-THOJ6CMV.js.map → claim-SKHJDLW6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-SG5MNCVQ.js.map → close-4RKSL5L6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-DNMHGOCX.js.map → close-Z6AI736U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-DKQLBGLV.js.map → close-many-AWTPXLHJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-3L3AQZBU.js.map → close-many-SXODYBDP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-SKWMDWCW.js.map → comments-OOH64LWW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-M7ZOZNBX.js.map → comments-YYW5P7AG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-OZCUABPB.js.map → config-3445MCQQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-7CK62S7T.js.map → config-LCDMKRB2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-PUG2A7RC.js.map → context-DZMIBIVP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-OEC366TO.js.map → context-PJCURODY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-3THOLA7L.js.map → contracts-7YDFEJB3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{contracts-N65FXEOL.js.map → contracts-MP2P3HL5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-JPX7VZCH.js.map → copy-63IQQRRS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-6QLHILAC.js.map → copy-TASIH2AZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-NNP6TSFO.js.map → create-3BV2VA3Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-Y54ZVVZH.js.map → create-TGSB5GV4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-63PCMQAJ.js.map → delete-ARILQQLB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-GDSMGAGJ.js.map → delete-ZQKBZYNK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-T4ZF5G54.js.map → deps-MSHQR2GY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-XYQ73XRH.js.map → deps-NJFJIMQ5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-C75YIXHC.js.map → docs-SS4UKYYA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-EHNPDWUL.js.map → docs-XK2UVUXX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-GTENKE24.js.map → eval-FVZGX5IZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-3WKDTRMH.js.map → eval-JOTG2YHU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-46NWACO3.js.map → extension-NLMS47I4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-D5FDZ2CO.js.map → extension-OQPS27B4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-X3H7CCBQ.js.map → files-3EVJQZ2N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-DSZBOSSN.js.map → files-Y2P6LN5A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-5STQXDPU.js.map → focus-D5ZUPTII.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-MDVPOWB5.js.map → focus-ZPIFTY4R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-ZMST3WQP.js.map → gc-LXXDY456.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-ZC7JHBG7.js.map → gc-RNOEQHSX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-NT7L2HUZ.js.map → get-Q3SZGQHD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-J2IPJRZW.js.map → get-W23G7MJX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-RLH2QCRO.js.map → history-6CZVFIUJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-WX3MGFS2.js.map → history-YRQUD4YM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-ZBEBGJM7.js.map → history-compact-M35PDQ4G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-UXDIFC33.js.map → history-compact-VWUSQH6Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-YQGU3XRA.js.map → history-redact-27OEOZRZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-P7I7AWMB.js.map → history-redact-AJGARHT3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-52KINVIK.js.map → history-repair-5RDMF7K4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-RM5ITLU5.js.map → history-repair-YUAHIPIN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-SC2P6CHP.js.map → init-DWAKYRXI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-2BNZOO6F.js.map → init-HASX3YNJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-W6F3FIPL.js.map → learnings-JNGUIJDK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-YGYVHWJK.js.map → learnings-M4KA6MQE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-KPAYU5KZ.js.map → list-5UU2W24O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-K6FPV4J4.js.map → list-6FMKTIH3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-YTD6ZILW.js.map → notes-MODH5CBT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-PU74EPKV.js.map → notes-PYCPLA5Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-GEQYUCBW.js.map → plan-DXRIRYRU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-FNXHXRCI.js.map → plan-EHQALWSC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-QI45RMKN.js.map → register-list-query-QAASVP2J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-PHWYHENI.js.map → register-list-query-WE54YJMH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-YINRTS7L.js.map → register-mutation-B6DZJTY2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-X3BUOQEL.js.map → register-mutation-CPV4C2KR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-E5JEASRK.js.map → register-operations-AT3BVVX2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-MIDTRW7S.js.map → register-operations-RC4C3423.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-XQYSWBV7.js.map → restore-FNBV4GWE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-5KHR2YYQ.js.map → restore-XY4YE2OV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-HJMTEXKE.js.map → scheduling-shortcuts-ECL6GBMZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-NNT5ASZR.js.map → scheduling-shortcuts-JRIUREEU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-TZXW6XWD.js.map → schema-74YENAJL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-263RI4WW.js.map → schema-TCW3I7QR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-SFRJOVDG.js.map → search-7USZ6XZA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-LECJYSXE.js.map → search-GNAUE65M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-VPBGSRQH.js.map → stats-CVHASAEU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-N7ER2PNK.js.map → stats-DQMKJMFT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-PP3FUNBU.js.map → telemetry-7P5EUWCS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-L6K3BUIQ.js.map → telemetry-PQTL5YS2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-RQCTSWUK.js.map → test-COWPCGBE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-3EGNS3T5.js.map → test-FDQZQNZ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-GN3C6GOI.js.map → test-runs-JS6DNCCI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-AJHR6IQF.js.map → test-runs-NZD2QGL5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-6YXOGHRT.js.map → update-7IYQHX4Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-V33YUBRP.js.map → update-IJKDRBIX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-RYQ64CFW.js.map → update-many-6NTZ5J5D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-N2AN6ZDH.js.map → update-many-B3TH5TDS.js.map} +0 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Implements extension package-management support for Scaffold.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
7
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="61e2eb79-305a-5636-b5ca-ab0c6aa4afcc")}catch(e){}}();
|
|
8
8
|
import fs from "node:fs/promises";
|
|
9
9
|
import path from "node:path";
|
|
10
10
|
import { pathExists } from "../../../core/fs/fs-utils.js";
|
|
@@ -17,18 +17,453 @@ import { normalizeManagedDirectoryName } from "./shared.js";
|
|
|
17
17
|
// tracks the manifest schema generation (currently 1).
|
|
18
18
|
const SCAFFOLD_MANIFEST_VERSION = 1;
|
|
19
19
|
const SCAFFOLD_PM_MIN_VERSION = "2026.5.0";
|
|
20
|
+
const SCAFFOLD_DECLARED_PERMISSIONS = {
|
|
21
|
+
fs_read: false,
|
|
22
|
+
fs_write: false,
|
|
23
|
+
network: false,
|
|
24
|
+
env_read: false,
|
|
25
|
+
env_write: false,
|
|
26
|
+
process_spawn: false,
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Capability shapes the package/extension scaffolder can target via the
|
|
30
|
+
* `--capability` selector. `commands` emits the default command-only starter;
|
|
31
|
+
* `hooks` additionally wires an `after_command` lifecycle reactor, `search`
|
|
32
|
+
* wires an in-memory provider/adapter pair, and `importers` wires importer and
|
|
33
|
+
* exporter command primitives so authors can customize project context movement
|
|
34
|
+
* without starting from a blank extension.
|
|
35
|
+
*/
|
|
36
|
+
export const SCAFFOLD_CAPABILITIES = ["commands", "hooks", "search", "importers"];
|
|
37
|
+
const SCAFFOLD_MANIFEST_CAPABILITIES = {
|
|
38
|
+
commands: ["commands"],
|
|
39
|
+
hooks: ["commands", "hooks"],
|
|
40
|
+
search: ["commands", "search"],
|
|
41
|
+
importers: ["commands", "schema", "importers"],
|
|
42
|
+
};
|
|
43
|
+
const SAMPLE_TEST_CAPABILITIES_LITERAL = {
|
|
44
|
+
commands: '["commands"]',
|
|
45
|
+
hooks: '["commands", "hooks"]',
|
|
46
|
+
search: '["commands", "search"]',
|
|
47
|
+
importers: '["commands", "schema", "importers"]',
|
|
48
|
+
};
|
|
49
|
+
const ENTRYPOINT_BULLETS = {
|
|
50
|
+
commands: "- `index.js`: starter command registration plus a `deactivate` teardown stub.",
|
|
51
|
+
hooks: "- `index.js`: starter command registration, an `after_command` lifecycle hook, and a `deactivate` teardown stub.",
|
|
52
|
+
search: "- `index.js`: starter command registration, a search provider, a vector-store adapter, and a `deactivate` teardown stub.",
|
|
53
|
+
importers: "- `index.js`: starter command registration, importer/exporter command registrations, and a `deactivate` teardown stub.",
|
|
54
|
+
};
|
|
55
|
+
const SAMPLE_TEST_BULLETS = {
|
|
56
|
+
commands: "- `index.test.js`: sample `node:test` suite covering activation, command invocation, and teardown via the SDK testing helpers.",
|
|
57
|
+
hooks: "- `index.test.js`: sample `node:test` suite covering activation, command invocation, the after_command hook, and teardown via the SDK testing helpers.",
|
|
58
|
+
search: "- `index.test.js`: sample `node:test` suite covering activation, command invocation, search provider/vector adapter invocation, and teardown via the SDK testing helpers.",
|
|
59
|
+
importers: "- `index.test.js`: sample `node:test` suite covering activation, command invocation, importer/exporter invocation, and teardown via the SDK testing helpers.",
|
|
60
|
+
};
|
|
61
|
+
const PACKAGE_CAPABILITY_README_SECTIONS = {
|
|
62
|
+
commands: [],
|
|
63
|
+
hooks: [
|
|
64
|
+
"",
|
|
65
|
+
"## Lifecycle Hook",
|
|
66
|
+
"`index.js` registers an `after_command` hook via `api.hooks.afterCommand`.",
|
|
67
|
+
"pm fires it once a command finishes, passing the command outcome and the",
|
|
68
|
+
"items it mutated (`context.affected`). React there to keep external context",
|
|
69
|
+
"in sync - sync records, emit telemetry, or refresh derived state. The",
|
|
70
|
+
"`hooks` capability in `manifest.json` is what grants the hook registration;",
|
|
71
|
+
"remove it (and the hook) if your package only needs commands.",
|
|
72
|
+
],
|
|
73
|
+
search: [
|
|
74
|
+
"",
|
|
75
|
+
"## Search Provider",
|
|
76
|
+
"`index.js` registers a deterministic in-memory search provider and",
|
|
77
|
+
"vector-store adapter through `api.registerSearchProvider` and",
|
|
78
|
+
"`api.registerVectorStoreAdapter`. Replace the sample scoring,",
|
|
79
|
+
"embedding, and storage behavior with your project-specific retrieval",
|
|
80
|
+
"logic. The `search` capability in `manifest.json` grants both",
|
|
81
|
+
"registrations.",
|
|
82
|
+
],
|
|
83
|
+
importers: [
|
|
84
|
+
"",
|
|
85
|
+
"## Importer and Exporter",
|
|
86
|
+
"`index.js` registers paired project-context import/export commands through",
|
|
87
|
+
"`api.registerImporter` and `api.registerExporter`. Replace the starter",
|
|
88
|
+
"payloads with your domain adapter: GitHub issues, CSV rows, documents,",
|
|
89
|
+
"tickets, or another project-management source of truth. The `importers`",
|
|
90
|
+
"capability grants both registrations, and `schema` grants the example",
|
|
91
|
+
"command flag metadata.",
|
|
92
|
+
],
|
|
93
|
+
};
|
|
94
|
+
const EXTENSION_CAPABILITY_README_SECTIONS = {
|
|
95
|
+
commands: [],
|
|
96
|
+
hooks: [
|
|
97
|
+
"",
|
|
98
|
+
"## Lifecycle Hook",
|
|
99
|
+
"`index.js` registers an `after_command` hook via `api.hooks.afterCommand`.",
|
|
100
|
+
"pm fires it once a command finishes, passing the command outcome and the",
|
|
101
|
+
"items it mutated (`context.affected`). React there to keep external context",
|
|
102
|
+
"in sync. The `hooks` capability in `manifest.json` grants the registration;",
|
|
103
|
+
"remove it (and the hook) if your extension only needs commands.",
|
|
104
|
+
],
|
|
105
|
+
search: [
|
|
106
|
+
"",
|
|
107
|
+
"## Search Provider",
|
|
108
|
+
"`index.js` registers a deterministic in-memory search provider and",
|
|
109
|
+
"vector-store adapter through `api.registerSearchProvider` and",
|
|
110
|
+
"`api.registerVectorStoreAdapter`. Replace the sample scoring, embedding,",
|
|
111
|
+
"and storage behavior with your project-specific retrieval logic. The",
|
|
112
|
+
"`search` capability in `manifest.json` grants both registrations.",
|
|
113
|
+
],
|
|
114
|
+
importers: [
|
|
115
|
+
"",
|
|
116
|
+
"## Importer and Exporter",
|
|
117
|
+
"`index.js` registers paired project-context import/export commands through",
|
|
118
|
+
"`api.registerImporter` and `api.registerExporter`. Replace the starter",
|
|
119
|
+
"payloads with your domain adapter. The `importers` capability grants both",
|
|
120
|
+
"registrations, and `schema` grants the example command flag metadata.",
|
|
121
|
+
],
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Build the `activate` body lines for the starter entrypoint. The base body
|
|
125
|
+
* always registers the starter command; capability-specific variants append
|
|
126
|
+
* the matching SDK surface so generated packages demonstrate one runnable
|
|
127
|
+
* customization primitive end to end.
|
|
128
|
+
*/
|
|
129
|
+
function buildActivateBodyLines(extensionName, commandName, capability) {
|
|
130
|
+
const searchProviderName = `${extensionName}-search`;
|
|
131
|
+
const vectorAdapterName = `${extensionName}-vector`;
|
|
132
|
+
const adapterName = `${extensionName.replace(/-/g, " ")} items`;
|
|
133
|
+
const commandLines = [
|
|
134
|
+
" api.registerCommand({",
|
|
135
|
+
` name: ${JSON.stringify(commandName)},`,
|
|
136
|
+
' description: "Starter scaffold command. Replace with your own behavior.",',
|
|
137
|
+
" run: async (context) => ({",
|
|
138
|
+
" ok: true,",
|
|
139
|
+
` source: ${JSON.stringify(extensionName)},`,
|
|
140
|
+
" command: context.command,",
|
|
141
|
+
' message: "Starter extension scaffold is active.",',
|
|
142
|
+
" }),",
|
|
143
|
+
" });",
|
|
144
|
+
];
|
|
145
|
+
if (capability === "commands") {
|
|
146
|
+
return commandLines;
|
|
147
|
+
}
|
|
148
|
+
if (capability === "search") {
|
|
149
|
+
return [
|
|
150
|
+
...commandLines,
|
|
151
|
+
"",
|
|
152
|
+
" // Search providers let packages customize how pm ranks and retrieves",
|
|
153
|
+
" // project context. This starter is deterministic and dependency-free:",
|
|
154
|
+
" // replace the scoring with your domain retrieval, embedding, or rerank",
|
|
155
|
+
" // logic as the package grows.",
|
|
156
|
+
" api.registerSearchProvider({",
|
|
157
|
+
` name: ${JSON.stringify(searchProviderName)},`,
|
|
158
|
+
" query: async (context) => {",
|
|
159
|
+
" const needle = context.query.toLowerCase();",
|
|
160
|
+
" const hits = context.documents",
|
|
161
|
+
" .filter((document) => {",
|
|
162
|
+
" const title = String(document.metadata.title ?? \"\").toLowerCase();",
|
|
163
|
+
" return title.includes(needle);",
|
|
164
|
+
" })",
|
|
165
|
+
" .map((document) => ({",
|
|
166
|
+
" id: document.metadata.id,",
|
|
167
|
+
" score: 1,",
|
|
168
|
+
' matched_fields: ["title"],',
|
|
169
|
+
" }));",
|
|
170
|
+
" return { hits };",
|
|
171
|
+
" },",
|
|
172
|
+
" embed: async (context) => [context.input.length],",
|
|
173
|
+
" });",
|
|
174
|
+
"",
|
|
175
|
+
" // Vector-store adapters let packages own semantic index storage. This",
|
|
176
|
+
" // starter returns a stable in-memory hit so generated tests can exercise",
|
|
177
|
+
" // the adapter without external services.",
|
|
178
|
+
" api.registerVectorStoreAdapter({",
|
|
179
|
+
` name: ${JSON.stringify(vectorAdapterName)},`,
|
|
180
|
+
" query: async (context) => [{ id: \"starter-vector-hit\", score: context.limit }],",
|
|
181
|
+
" upsert: async (context) => ({ upserted: context.points.length }),",
|
|
182
|
+
" delete: async (context) => ({ deleted: context.ids.length }),",
|
|
183
|
+
" });",
|
|
184
|
+
];
|
|
185
|
+
}
|
|
186
|
+
if (capability === "importers") {
|
|
187
|
+
return [
|
|
188
|
+
...commandLines,
|
|
189
|
+
"",
|
|
190
|
+
" // Importers/exporters are the bridge between pm's context graph and",
|
|
191
|
+
" // another project-management system. Keep the starter deterministic so",
|
|
192
|
+
" // package tests can run without touching the network or filesystem; replace",
|
|
193
|
+
" // these payloads with your adapter's real mapping as the package grows.",
|
|
194
|
+
" api.registerImporter(",
|
|
195
|
+
` ${JSON.stringify(adapterName)},`,
|
|
196
|
+
" async (context) => ({",
|
|
197
|
+
" imported: 1,",
|
|
198
|
+
" source: context.options.source ?? \"starter\",",
|
|
199
|
+
" args: context.args,",
|
|
200
|
+
" }),",
|
|
201
|
+
" {",
|
|
202
|
+
` action: ${JSON.stringify(`${adapterName} import`)},`,
|
|
203
|
+
' description: "Import starter records into pm context.",',
|
|
204
|
+
" flags: [",
|
|
205
|
+
" {",
|
|
206
|
+
' long: "--source",',
|
|
207
|
+
' value_name: "name",',
|
|
208
|
+
' value_type: "string",',
|
|
209
|
+
' description: "Source name or path to import from.",',
|
|
210
|
+
" },",
|
|
211
|
+
" ],",
|
|
212
|
+
" },",
|
|
213
|
+
" );",
|
|
214
|
+
"",
|
|
215
|
+
" api.registerExporter(",
|
|
216
|
+
` ${JSON.stringify(adapterName)},`,
|
|
217
|
+
" async (context) => ({",
|
|
218
|
+
" exported: true,",
|
|
219
|
+
" destination: context.options.destination ?? \"stdout\",",
|
|
220
|
+
" args: context.args,",
|
|
221
|
+
" }),",
|
|
222
|
+
" {",
|
|
223
|
+
` action: ${JSON.stringify(`${adapterName} export`)},`,
|
|
224
|
+
' description: "Export pm context into starter records.",',
|
|
225
|
+
" flags: [",
|
|
226
|
+
" {",
|
|
227
|
+
' long: "--destination",',
|
|
228
|
+
' value_name: "name",',
|
|
229
|
+
' value_type: "string",',
|
|
230
|
+
' description: "Destination name or path to export to.",',
|
|
231
|
+
" },",
|
|
232
|
+
" ],",
|
|
233
|
+
" },",
|
|
234
|
+
" );",
|
|
235
|
+
];
|
|
236
|
+
}
|
|
237
|
+
return [
|
|
238
|
+
...commandLines,
|
|
239
|
+
"",
|
|
240
|
+
" // after_command hooks fire once pm finishes a command, receiving the items",
|
|
241
|
+
" // it mutated. This is the natural place to react to every change - sync to",
|
|
242
|
+
" // an external system, emit telemetry, or refresh derived context",
|
|
243
|
+
' // ("project management = context management"). This starter is a documented',
|
|
244
|
+
" // no-op on the success path; replace the body with your own reaction.",
|
|
245
|
+
" api.hooks.afterCommand((context) => {",
|
|
246
|
+
" if (!context.ok) {",
|
|
247
|
+
" return;",
|
|
248
|
+
" }",
|
|
249
|
+
" // `context.affected` lists the items pm mutated (id, status,",
|
|
250
|
+
" // changed_fields). React here, e.g.:",
|
|
251
|
+
" // for (const item of context.affected ?? []) { /* ...item.id... */ }",
|
|
252
|
+
" });",
|
|
253
|
+
];
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Build the colocated `node:test` sample suite for the chosen capability. Every
|
|
257
|
+
* variant covers activation, command invocation, and teardown via the SDK
|
|
258
|
+
* testing helpers; the `hooks` variant adds a test that asserts the
|
|
259
|
+
* `after_command` hook is registered and fires cleanly through the public SDK
|
|
260
|
+
* testing helper `runRegisteredHookForTest`.
|
|
261
|
+
*/
|
|
262
|
+
function buildSampleTestSource(extensionName, commandName, capability) {
|
|
263
|
+
const hooksEnabled = capability === "hooks";
|
|
264
|
+
const searchEnabled = capability === "search";
|
|
265
|
+
const importersEnabled = capability === "importers";
|
|
266
|
+
const capabilitiesLiteral = SAMPLE_TEST_CAPABILITIES_LITERAL[capability];
|
|
267
|
+
const searchProviderName = `${extensionName}-search`;
|
|
268
|
+
const vectorAdapterName = `${extensionName}-vector`;
|
|
269
|
+
const adapterName = `${extensionName.replace(/-/g, " ")} items`;
|
|
270
|
+
const importNames = [
|
|
271
|
+
" activateExtensionForTest,",
|
|
272
|
+
" assertExtensionDeactivated,",
|
|
273
|
+
" assertRegisteredCommandContract,",
|
|
274
|
+
...(hooksEnabled ? [" assertRegisteredHook,"] : []),
|
|
275
|
+
...(searchEnabled ? [" assertRegisteredSearchProvider,", " assertRegisteredVectorStoreAdapter,"] : []),
|
|
276
|
+
...(importersEnabled ? [" assertRegisteredImporter,", " assertRegisteredExporter,"] : []),
|
|
277
|
+
" deactivateExtensionForTest,",
|
|
278
|
+
" runRegisteredCommandForTest,",
|
|
279
|
+
...(hooksEnabled ? [" runRegisteredHookForTest,"] : []),
|
|
280
|
+
...(searchEnabled ? [" runRegisteredSearchProviderForTest,", " runRegisteredVectorStoreAdapterForTest,"] : []),
|
|
281
|
+
...(importersEnabled ? [" runRegisteredImporterForTest,", " runRegisteredExporterForTest,"] : []),
|
|
282
|
+
];
|
|
283
|
+
const hookTestLines = hooksEnabled
|
|
284
|
+
? [
|
|
285
|
+
`test(${JSON.stringify(`${extensionName} reacts to commands via its after_command hook`)}, async () => {`,
|
|
286
|
+
" const activation = await activateExtensionForTest(extension, {",
|
|
287
|
+
` name: ${JSON.stringify(extensionName)},`,
|
|
288
|
+
` capabilities: ${capabilitiesLiteral},`,
|
|
289
|
+
" });",
|
|
290
|
+
" // assertRegisteredHook throws unless an after_command hook is registered,",
|
|
291
|
+
" // so reaching the next line already proves the hook is wired.",
|
|
292
|
+
" assertRegisteredHook(activation.hooks, {",
|
|
293
|
+
' kind: "after_command",',
|
|
294
|
+
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
295
|
+
" });",
|
|
296
|
+
" // runRegisteredHookForTest fires the hook through pm's real runner with a",
|
|
297
|
+
" // synthetic context and returns the warnings it produced; a clean hook",
|
|
298
|
+
" // returns none. Replace the context/assertions as your hook grows.",
|
|
299
|
+
" const warnings = await runRegisteredHookForTest(activation.hooks, {",
|
|
300
|
+
' kind: "after_command",',
|
|
301
|
+
" context: {",
|
|
302
|
+
` command: ${JSON.stringify(commandName)},`,
|
|
303
|
+
" args: [],",
|
|
304
|
+
' pm_root: "",',
|
|
305
|
+
" ok: true,",
|
|
306
|
+
" affected: [],",
|
|
307
|
+
" },",
|
|
308
|
+
" });",
|
|
309
|
+
" assert.deepEqual(warnings, []);",
|
|
310
|
+
"});",
|
|
311
|
+
"",
|
|
312
|
+
]
|
|
313
|
+
: [];
|
|
314
|
+
const searchTestLines = searchEnabled
|
|
315
|
+
? [
|
|
316
|
+
`test(${JSON.stringify(`${extensionName} registers and invokes search primitives`)}, async () => {`,
|
|
317
|
+
" const activation = await activateExtensionForTest(extension, {",
|
|
318
|
+
` name: ${JSON.stringify(extensionName)},`,
|
|
319
|
+
` capabilities: ${capabilitiesLiteral},`,
|
|
320
|
+
" });",
|
|
321
|
+
" assertRegisteredSearchProvider(activation.registrations, {",
|
|
322
|
+
` provider: ${JSON.stringify(searchProviderName)},`,
|
|
323
|
+
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
324
|
+
" });",
|
|
325
|
+
" assertRegisteredVectorStoreAdapter(activation.registrations, {",
|
|
326
|
+
` adapter: ${JSON.stringify(vectorAdapterName)},`,
|
|
327
|
+
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
328
|
+
" });",
|
|
329
|
+
"",
|
|
330
|
+
" const query = await runRegisteredSearchProviderForTest(activation.registrations, {",
|
|
331
|
+
` provider: ${JSON.stringify(searchProviderName)},`,
|
|
332
|
+
' operation: "query",',
|
|
333
|
+
" context: {",
|
|
334
|
+
' query: "sync",',
|
|
335
|
+
' mode: "semantic",',
|
|
336
|
+
' tokens: ["sync"],',
|
|
337
|
+
" options: {},",
|
|
338
|
+
" settings: {},",
|
|
339
|
+
" documents: [",
|
|
340
|
+
' { metadata: { id: "pm-1", title: "Sync external context" }, body: "" },',
|
|
341
|
+
' { metadata: { id: "pm-2", title: "Unrelated task" }, body: "" },',
|
|
342
|
+
" ],",
|
|
343
|
+
" },",
|
|
344
|
+
" });",
|
|
345
|
+
' assert.deepEqual(query, { hits: [{ id: "pm-1", score: 1, matched_fields: ["title"] }] });',
|
|
346
|
+
"",
|
|
347
|
+
" const embedding = await runRegisteredSearchProviderForTest(activation.registrations, {",
|
|
348
|
+
` provider: ${JSON.stringify(searchProviderName)},`,
|
|
349
|
+
' operation: "embed",',
|
|
350
|
+
' context: { input: "abc", settings: {}, model: "starter-model" },',
|
|
351
|
+
" });",
|
|
352
|
+
" assert.deepEqual(embedding, [3]);",
|
|
353
|
+
"",
|
|
354
|
+
" const vectorHits = await runRegisteredVectorStoreAdapterForTest(activation.registrations, {",
|
|
355
|
+
` adapter: ${JSON.stringify(vectorAdapterName)},`,
|
|
356
|
+
' operation: "query",',
|
|
357
|
+
" context: { vector: [0.1, 0.2], limit: 2, settings: {} },",
|
|
358
|
+
" });",
|
|
359
|
+
' assert.deepEqual(vectorHits, [{ id: "starter-vector-hit", score: 2 }]);',
|
|
360
|
+
"});",
|
|
361
|
+
"",
|
|
362
|
+
]
|
|
363
|
+
: [];
|
|
364
|
+
const importerTestLines = importersEnabled
|
|
365
|
+
? [
|
|
366
|
+
`test(${JSON.stringify(`${extensionName} registers and invokes import/export primitives`)}, async () => {`,
|
|
367
|
+
" const activation = await activateExtensionForTest(extension, {",
|
|
368
|
+
` name: ${JSON.stringify(extensionName)},`,
|
|
369
|
+
` capabilities: ${capabilitiesLiteral},`,
|
|
370
|
+
" });",
|
|
371
|
+
" assertRegisteredImporter(activation.registrations, {",
|
|
372
|
+
` importer: ${JSON.stringify(adapterName)},`,
|
|
373
|
+
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
374
|
+
" });",
|
|
375
|
+
" assertRegisteredExporter(activation.registrations, {",
|
|
376
|
+
` exporter: ${JSON.stringify(adapterName)},`,
|
|
377
|
+
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
378
|
+
" });",
|
|
379
|
+
"",
|
|
380
|
+
" const imported = await runRegisteredImporterForTest(activation, {",
|
|
381
|
+
` importer: ${JSON.stringify(adapterName)},`,
|
|
382
|
+
' options: { source: "tickets" },',
|
|
383
|
+
' args: ["batch-1"],',
|
|
384
|
+
" });",
|
|
385
|
+
" assert.equal(imported.handled, true);",
|
|
386
|
+
' assert.deepEqual(imported.result, { imported: 1, source: "tickets", args: ["batch-1"] });',
|
|
387
|
+
"",
|
|
388
|
+
" const exported = await runRegisteredExporterForTest(activation, {",
|
|
389
|
+
` exporter: ${JSON.stringify(adapterName)},`,
|
|
390
|
+
' options: { destination: "archive" },',
|
|
391
|
+
' args: ["done"],',
|
|
392
|
+
" });",
|
|
393
|
+
" assert.equal(exported.handled, true);",
|
|
394
|
+
' assert.deepEqual(exported.result, { exported: true, destination: "archive", args: ["done"] });',
|
|
395
|
+
"});",
|
|
396
|
+
"",
|
|
397
|
+
]
|
|
398
|
+
: [];
|
|
399
|
+
return [
|
|
400
|
+
'import assert from "node:assert/strict";',
|
|
401
|
+
'import { test } from "node:test";',
|
|
402
|
+
"import {",
|
|
403
|
+
...importNames,
|
|
404
|
+
'} from "@unbrained/pm-cli/sdk/testing";',
|
|
405
|
+
'import extension from "./index.js";',
|
|
406
|
+
"",
|
|
407
|
+
`test(${JSON.stringify(`${extensionName} registers its starter command`)}, async () => {`,
|
|
408
|
+
" // `capabilities` mirrors manifest.json so the in-memory activation grants",
|
|
409
|
+
" // the capabilities the entrypoint relies on.",
|
|
410
|
+
" const activation = await activateExtensionForTest(extension, {",
|
|
411
|
+
` name: ${JSON.stringify(extensionName)},`,
|
|
412
|
+
` capabilities: ${capabilitiesLiteral},`,
|
|
413
|
+
" });",
|
|
414
|
+
" // assertRegisteredCommandContract throws if the command is not",
|
|
415
|
+
" // registered, so reaching here already proves the wiring; assert on the",
|
|
416
|
+
" // returned definition to demonstrate inspecting registered metadata.",
|
|
417
|
+
" const registered = assertRegisteredCommandContract(activation.registrations, {",
|
|
418
|
+
` command: ${JSON.stringify(commandName)},`,
|
|
419
|
+
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
420
|
+
" });",
|
|
421
|
+
' assert.equal(typeof registered.command.description, "string");',
|
|
422
|
+
"",
|
|
423
|
+
" // runRegisteredCommandForTest invokes the handler through pm's real",
|
|
424
|
+
" // dispatch engine, so this asserts behavior - not just that the command",
|
|
425
|
+
" // is wired. Replace these assertions as you flesh out your command.",
|
|
426
|
+
" const invocation = await runRegisteredCommandForTest(activation.commands, {",
|
|
427
|
+
` command: ${JSON.stringify(commandName)},`,
|
|
428
|
+
" });",
|
|
429
|
+
" assert.equal(invocation.handled, true);",
|
|
430
|
+
" assert.equal(invocation.result.ok, true);",
|
|
431
|
+
` assert.equal(invocation.result.command, ${JSON.stringify(commandName)});`,
|
|
432
|
+
"});",
|
|
433
|
+
"",
|
|
434
|
+
...hookTestLines,
|
|
435
|
+
...searchTestLines,
|
|
436
|
+
...importerTestLines,
|
|
437
|
+
`test(${JSON.stringify(`${extensionName} tears down cleanly via deactivate`)}, async () => {`,
|
|
438
|
+
" // deactivateExtensionForTest runs pm's real teardown engine over the",
|
|
439
|
+
" // module, so this proves your `deactivate` hook runs without throwing.",
|
|
440
|
+
" const teardown = await deactivateExtensionForTest(extension, {",
|
|
441
|
+
` name: ${JSON.stringify(extensionName)},`,
|
|
442
|
+
" });",
|
|
443
|
+
" // assertExtensionDeactivated throws unless exactly one extension tore down",
|
|
444
|
+
" // with no failures, so reaching the next line already proves teardown ran.",
|
|
445
|
+
" assertExtensionDeactivated(teardown);",
|
|
446
|
+
" assert.equal(teardown.deactivated, 1);",
|
|
447
|
+
"});",
|
|
448
|
+
"",
|
|
449
|
+
].join("\n");
|
|
450
|
+
}
|
|
20
451
|
/**
|
|
21
452
|
* Implements build starter extension scaffold files for the public runtime surface of this module.
|
|
22
453
|
*/
|
|
23
|
-
export function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabulary) {
|
|
454
|
+
export function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabulary, capability = "commands") {
|
|
24
455
|
const packageName = `pm-${extensionName}`;
|
|
456
|
+
const capabilities = SCAFFOLD_MANIFEST_CAPABILITIES[capability];
|
|
25
457
|
const manifest = `${JSON.stringify({
|
|
26
458
|
name: extensionName,
|
|
27
459
|
version: "0.1.0",
|
|
28
460
|
entry: "./index.js",
|
|
29
|
-
capabilities: ["commands"],
|
|
30
461
|
manifest_version: SCAFFOLD_MANIFEST_VERSION,
|
|
31
462
|
pm_min_version: SCAFFOLD_PM_MIN_VERSION,
|
|
463
|
+
trusted: true,
|
|
464
|
+
sandbox_profile: "strict",
|
|
465
|
+
permissions: { ...SCAFFOLD_DECLARED_PERMISSIONS },
|
|
466
|
+
capabilities,
|
|
32
467
|
}, null, 2)}\n`;
|
|
33
468
|
// Keep scaffolds dependency-light by default: even package mode can be
|
|
34
469
|
// installed before peer dependencies are materialized in the generated root.
|
|
@@ -37,23 +472,24 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
37
472
|
const entrypoint = [
|
|
38
473
|
'/** @param {import("@unbrained/pm-cli/sdk").ExtensionApi} api */',
|
|
39
474
|
"export function activate(api) {",
|
|
40
|
-
|
|
41
|
-
` name: ${JSON.stringify(commandName)},`,
|
|
42
|
-
' description: "Starter scaffold command. Replace with your own behavior.",',
|
|
43
|
-
" run: async (context) => ({",
|
|
44
|
-
" ok: true,",
|
|
45
|
-
` source: ${JSON.stringify(extensionName)},`,
|
|
46
|
-
" command: context.command,",
|
|
47
|
-
' message: "Starter extension scaffold is active.",',
|
|
48
|
-
" }),",
|
|
49
|
-
" });",
|
|
475
|
+
...buildActivateBodyLines(extensionName, commandName, capability),
|
|
50
476
|
"}",
|
|
51
477
|
"",
|
|
478
|
+
"// `deactivate` is the teardown counterpart to `activate`: pm runs it on host",
|
|
479
|
+
"// shutdown/reload (e.g. the MCP server between requests) to release anything",
|
|
480
|
+
"// `activate` opened - timers, connections, caches. This starter holds no such",
|
|
481
|
+
"// resources, so it stays a documented no-op; add cleanup here as you grow.",
|
|
482
|
+
"export function deactivate() {}",
|
|
483
|
+
"",
|
|
52
484
|
"export default {",
|
|
53
485
|
" activate,",
|
|
486
|
+
" deactivate,",
|
|
54
487
|
"};",
|
|
55
488
|
"",
|
|
56
489
|
].join("\n");
|
|
490
|
+
// README bullet describing what index.js wires, kept in sync with the chosen
|
|
491
|
+
// capability so the generated docs match the generated code.
|
|
492
|
+
const entrypointBullet = ENTRYPOINT_BULLETS[capability];
|
|
57
493
|
if (vocabulary === "package") {
|
|
58
494
|
const packageJson = `${JSON.stringify({
|
|
59
495
|
name: packageName,
|
|
@@ -82,33 +518,12 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
82
518
|
},
|
|
83
519
|
},
|
|
84
520
|
}, null, 2)}\n`;
|
|
85
|
-
// node:test sample: demonstrates validating
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
'import { activateExtensionForTest, assertRegisteredCommandContract } from "@unbrained/pm-cli/sdk/testing";',
|
|
92
|
-
'import extension from "./index.js";',
|
|
93
|
-
"",
|
|
94
|
-
`test(${JSON.stringify(`${extensionName} registers its starter command`)}, async () => {`,
|
|
95
|
-
" // `capabilities` mirrors manifest.json so the in-memory activation grants",
|
|
96
|
-
" // the `commands` capability the entrypoint relies on.",
|
|
97
|
-
" const activation = await activateExtensionForTest(extension, {",
|
|
98
|
-
` name: ${JSON.stringify(extensionName)},`,
|
|
99
|
-
' capabilities: ["commands"],',
|
|
100
|
-
" });",
|
|
101
|
-
" // assertRegisteredCommandContract throws if the command is not",
|
|
102
|
-
" // registered, so reaching here already proves the wiring; assert on the",
|
|
103
|
-
" // returned definition to demonstrate inspecting registered metadata.",
|
|
104
|
-
" const registered = assertRegisteredCommandContract(activation.registrations, {",
|
|
105
|
-
` command: ${JSON.stringify(commandName)},`,
|
|
106
|
-
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
107
|
-
" });",
|
|
108
|
-
' assert.equal(typeof registered.command.description, "string");',
|
|
109
|
-
"});",
|
|
110
|
-
"",
|
|
111
|
-
].join("\n");
|
|
521
|
+
// node:test sample: demonstrates validating the package with the SDK testing
|
|
522
|
+
// helpers without adding a third-party test runner. The suite covers the
|
|
523
|
+
// capability the scaffold targets (command invocation, and for the hooks
|
|
524
|
+
// capability, the after_command lifecycle hook).
|
|
525
|
+
const sampleTest = buildSampleTestSource(extensionName, commandName, capability);
|
|
526
|
+
const sampleTestBullet = SAMPLE_TEST_BULLETS[capability];
|
|
112
527
|
const gitignore = ["node_modules/", "*.log", ""].join("\n");
|
|
113
528
|
const packageReadme = [
|
|
114
529
|
`# ${packageName}`,
|
|
@@ -118,8 +533,8 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
118
533
|
"## Included Files",
|
|
119
534
|
"- `package.json`: package metadata, `test` script, and `pm` resource manifest.",
|
|
120
535
|
"- `manifest.json`: extension metadata and capabilities.",
|
|
121
|
-
|
|
122
|
-
|
|
536
|
+
entrypointBullet,
|
|
537
|
+
sampleTestBullet,
|
|
123
538
|
"- `.gitignore`: ignores `node_modules/` and log files.",
|
|
124
539
|
"",
|
|
125
540
|
"## Quick Start",
|
|
@@ -136,7 +551,8 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
136
551
|
"npm test",
|
|
137
552
|
"```",
|
|
138
553
|
"`npm test` runs `node --test`, which executes `index.test.js` against the",
|
|
139
|
-
"`@unbrained/pm-cli/sdk/testing` helpers
|
|
554
|
+
"`@unbrained/pm-cli/sdk/testing` helpers - no extra test runner required.",
|
|
555
|
+
...PACKAGE_CAPABILITY_README_SECTIONS[capability],
|
|
140
556
|
"",
|
|
141
557
|
"## Compatibility Bounds",
|
|
142
558
|
"`manifest.json` cannot hold comments, so the version-compatibility fields are documented here:",
|
|
@@ -144,6 +560,9 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
144
560
|
`- \`pm_min_version\` (string): lowest pm CLI version that may load this package. Scaffolded as \`${SCAFFOLD_PM_MIN_VERSION}\`. The loader blocks the package on older CLIs.`,
|
|
145
561
|
"- `pm_max_version` (string, optional): highest pm CLI version that may load this package. Add it to block CLIs that are newer than the version you have validated against. The loader blocks the package when the CLI exceeds this bound.",
|
|
146
562
|
"",
|
|
563
|
+
"## Policy Metadata",
|
|
564
|
+
"The starter command is pure compute, so `manifest.json` declares `trusted: true`, `sandbox_profile: \"strict\"`, and all six permission keys as `false`. Keep that least-privilege shape for pure packages; relax only the specific permission your package actually needs and verify with `pm package doctor --project --detail deep --trace`.",
|
|
565
|
+
"",
|
|
147
566
|
"## Notes",
|
|
148
567
|
"- Keep simple starter runtime behavior at the package root so local installs work without dependency bootstrapping.",
|
|
149
568
|
"- Move larger runtimes into subdirectories only after adding package dependencies and validating `pm package doctor`.",
|
|
@@ -167,7 +586,7 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
167
586
|
"",
|
|
168
587
|
"## Included Files",
|
|
169
588
|
"- `manifest.json`: extension metadata and capabilities.",
|
|
170
|
-
|
|
589
|
+
entrypointBullet,
|
|
171
590
|
"",
|
|
172
591
|
"## Quick Start",
|
|
173
592
|
"```bash",
|
|
@@ -175,6 +594,7 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
175
594
|
`pm ${commandName}`,
|
|
176
595
|
"pm extension --doctor --project --detail summary",
|
|
177
596
|
"```",
|
|
597
|
+
...EXTENSION_CAPABILITY_README_SECTIONS[capability],
|
|
178
598
|
"",
|
|
179
599
|
"## Compatibility Bounds",
|
|
180
600
|
"`manifest.json` cannot hold comments, so the version-compatibility fields are documented here:",
|
|
@@ -182,9 +602,13 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
182
602
|
`- \`pm_min_version\` (string): lowest pm CLI version that may load this extension. Scaffolded as \`${SCAFFOLD_PM_MIN_VERSION}\`. The loader blocks the extension on older CLIs.`,
|
|
183
603
|
"- `pm_max_version` (string, optional): highest pm CLI version that may load this extension. Add it to block CLIs that are newer than the version you have validated against. The loader blocks the extension when the CLI exceeds this bound.",
|
|
184
604
|
"",
|
|
605
|
+
"## Policy Metadata",
|
|
606
|
+
"The starter command is pure compute, so `manifest.json` declares `trusted: true`, `sandbox_profile: \"strict\"`, and all six permission keys as `false`. Keep that least-privilege shape for pure extensions; relax only the specific permission your extension actually needs and verify with `pm extension --doctor --project --detail deep --trace`.",
|
|
607
|
+
"",
|
|
185
608
|
"## Notes",
|
|
186
609
|
"- This scaffold uses ESM exports so it works in package scopes with `type: module`.",
|
|
187
610
|
"- Update `manifest.json` capabilities and `index.js` command behavior as your extension evolves.",
|
|
611
|
+
"- Release any resources `activate` opens (timers, connections, caches) in the `deactivate` teardown hook.",
|
|
188
612
|
"",
|
|
189
613
|
].join("\n");
|
|
190
614
|
return {
|
|
@@ -196,12 +620,20 @@ export function buildStarterExtensionScaffoldFiles(extensionName, commandName, v
|
|
|
196
620
|
/**
|
|
197
621
|
* Implements scaffold extension project for the public runtime surface of this module.
|
|
198
622
|
*/
|
|
199
|
-
export async function scaffoldExtensionProject(target, vocabulary = "extension") {
|
|
623
|
+
export async function scaffoldExtensionProject(target, vocabulary = "extension", capability = "commands") {
|
|
624
|
+
const normalizedCapability = capability.trim().toLowerCase();
|
|
625
|
+
if (!SCAFFOLD_CAPABILITIES.includes(normalizedCapability)) {
|
|
626
|
+
throw new PmCliError(`Unknown scaffold capability "${capability}". Supported capabilities: ${SCAFFOLD_CAPABILITIES.join(", ")}.`, EXIT_CODE.USAGE);
|
|
627
|
+
}
|
|
628
|
+
const resolvedCapability = normalizedCapability;
|
|
200
629
|
const normalizedTarget = target.trim();
|
|
201
630
|
const targetPath = path.resolve(process.cwd(), normalizedTarget);
|
|
202
631
|
const extensionName = normalizeManagedDirectoryName(path.basename(targetPath));
|
|
203
|
-
|
|
204
|
-
|
|
632
|
+
// Hyphenated top-level command groups can surface in help but fail dispatch in
|
|
633
|
+
// Commander, so generated starters use space-separated command words while the
|
|
634
|
+
// manifest and package identity keep their normalized directory names.
|
|
635
|
+
const commandName = `${extensionName.replace(/-/g, " ")} ping`;
|
|
636
|
+
const scaffoldFiles = buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabulary, resolvedCapability);
|
|
205
637
|
let createdDirectory = false;
|
|
206
638
|
if (await pathExists(targetPath)) {
|
|
207
639
|
const existingTargetStats = await fs.stat(targetPath);
|
|
@@ -243,10 +675,11 @@ export async function scaffoldExtensionProject(target, vocabulary = "extension")
|
|
|
243
675
|
return {
|
|
244
676
|
extension_name: extensionName,
|
|
245
677
|
command_name: commandName,
|
|
678
|
+
capability: resolvedCapability,
|
|
246
679
|
target_path: targetPath,
|
|
247
680
|
created_directory: createdDirectory,
|
|
248
681
|
files,
|
|
249
682
|
};
|
|
250
683
|
}
|
|
251
684
|
//# sourceMappingURL=scaffold.js.map
|
|
252
|
-
//# debugId=
|
|
685
|
+
//# debugId=61e2eb79-305a-5636-b5ca-ab0c6aa4afcc
|