@unbrained/pm-cli 2026.6.22 → 2026.6.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -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 +183 -47
- 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 +36 -4
- 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-54TXGJ2T.js +18 -0
- package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js → activity-N7RVTLBQ.js} +11 -11
- package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js → aggregate-63NWNIBR.js} +10 -10
- package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js → aggregate-YHCYX2EV.js} +10 -10
- package/dist/cli-bundle/chunks/{append-3HY5G7ET.js → append-PUKREFV5.js} +8 -8
- package/dist/cli-bundle/chunks/{append-K54MDQYC.js → append-VLQQDHMJ.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js → chunk-2WCYE3IF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js → chunk-3BKH2CL3.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js → chunk-4XDGYFHL.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-VB54F347.js → chunk-5BBEWX6C.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js → chunk-5S4ZGDB2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js → chunk-6EBNFQOR.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-5SESR24H.js → chunk-6EL7SW5C.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js → chunk-6W3Y65PL.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js → chunk-A66VYUOV.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-I367IDZP.js → chunk-ABYCA5VX.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js → chunk-AEACLRVH.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js → chunk-ALKFCIIB.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js → chunk-ALQKV6U7.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js → chunk-AYPQUFCX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js → chunk-B74BP6IS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js → chunk-BFFO3AIB.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js → chunk-C4C3EJCJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js → chunk-CG3KP6I5.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js → chunk-CZIFFMZI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js → chunk-DTABLLVE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js → chunk-EOGBMLCE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js → chunk-EWRSXOIZ.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-RZZMSY4P.js → chunk-EYPINTFR.js} +151 -98
- package/dist/cli-bundle/chunks/chunk-EYPINTFR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js → chunk-F32L4HR6.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js → chunk-F4BNR2IN.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js → chunk-FBLT6WGK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js → chunk-FMWW2JDU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js → chunk-GDUMGZK3.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js → chunk-GQYJEEFX.js} +8 -5
- package/dist/cli-bundle/chunks/{chunk-KBTREGVO.js.map → chunk-GQYJEEFX.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js → chunk-HBAEFWX3.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js → chunk-HC2S36NB.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js → chunk-HZF5RLKX.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js → chunk-I6QMJ2XT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js → chunk-IAP5KYBQ.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-4YJA4LGU.js → chunk-INPHFO33.js} +160 -42
- package/dist/cli-bundle/chunks/chunk-INPHFO33.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js → chunk-IOT6WRL5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js → chunk-IXAZI443.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js → chunk-J3NMWFIN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js → chunk-J7I4C5ZB.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-7GCCDXXN.js → chunk-JKL6HRMV.js} +123 -8
- package/dist/cli-bundle/chunks/chunk-JKL6HRMV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js → chunk-JPJDP4VU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js → chunk-JV27C7OZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js → chunk-KIEAK7YE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js → chunk-KJZOSF7J.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js → chunk-KKX4Z2SE.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-D35LTIFR.js → chunk-L7UXKP2I.js} +110 -9
- package/dist/cli-bundle/chunks/chunk-L7UXKP2I.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js → chunk-LNEDHJNQ.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js → chunk-LU36E6GU.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js → chunk-M6TUBOGW.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js → chunk-MEXZ5XUM.js} +7 -4
- package/dist/cli-bundle/chunks/{chunk-DBQUQ3AS.js.map → chunk-MEXZ5XUM.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js → chunk-MWMHZOZZ.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js → chunk-N5B6WZC5.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-3GL6LTUL.js → chunk-NJ73ALW2.js} +161 -43
- package/dist/cli-bundle/chunks/chunk-NJ73ALW2.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js → chunk-NVXGVEFD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-7MPTFYT3.js → chunk-OF7V47P3.js} +15 -4
- package/dist/cli-bundle/chunks/chunk-OF7V47P3.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js → chunk-OHDQNKJB.js} +6 -6
- package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js → chunk-OQ2E64FH.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js → chunk-PEL2NLQE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js → chunk-PRVTGX64.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js → chunk-QOUOMPHO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js → chunk-RAWA3Y7O.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js → chunk-RRP6D345.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js → chunk-SKC4UTRP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TRUFOER3.js → chunk-SMXSDY7J.js} +15 -4
- package/dist/cli-bundle/chunks/chunk-SMXSDY7J.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js → chunk-SUREE24M.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js → chunk-TIM4OD74.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js → chunk-TKPP4GOO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js → chunk-TSI32UEL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js → chunk-UACWNBL2.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js → chunk-V4UYNSEM.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js → chunk-VFJYVXHL.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-KL5ELX2X.js → chunk-VSAABFGQ.js} +144 -98
- package/dist/cli-bundle/chunks/chunk-VSAABFGQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js → chunk-WB5BYQMF.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js → chunk-XVYKWZNL.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js → chunk-XXKV4UWE.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js → chunk-YV2OSAMS.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js → chunk-ZLWRPBOW.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js → chunk-ZV7IQ23N.js} +2 -2
- package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js → claim-FZZZCAY6.js} +10 -10
- package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js → claim-XK5QBZE3.js} +10 -10
- package/dist/cli-bundle/chunks/close-JEBZXONN.js +15 -0
- package/dist/cli-bundle/chunks/{close-4RKSL5L6.js → close-QHMVWM7M.js} +8 -8
- package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js → close-many-OIXJE2JZ.js} +15 -15
- package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js → close-many-SUU5BS2C.js} +15 -15
- package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js → comments-5YM62D75.js} +10 -10
- package/dist/cli-bundle/chunks/{comments-OOH64LWW.js → comments-RH3IBIRH.js} +10 -10
- package/dist/cli-bundle/chunks/{config-3445MCQQ.js → config-NCNNWF6R.js} +8 -8
- package/dist/cli-bundle/chunks/{config-LCDMKRB2.js → config-SW3U7XP2.js} +8 -8
- package/dist/cli-bundle/chunks/{context-PJCURODY.js → context-55VEOYI3.js} +13 -13
- package/dist/cli-bundle/chunks/{context-DZMIBIVP.js → context-5LB7UGKE.js} +13 -13
- package/dist/cli-bundle/chunks/{contracts-MP2P3HL5.js → contracts-JXFGBOYT.js} +8 -6
- package/dist/cli-bundle/chunks/contracts-JXFGBOYT.js.map +1 -0
- package/dist/cli-bundle/chunks/{contracts-7YDFEJB3.js → contracts-SY6PDFIK.js} +7 -5
- package/dist/cli-bundle/chunks/contracts-SY6PDFIK.js.map +7 -0
- package/dist/cli-bundle/chunks/{copy-63IQQRRS.js → copy-IEDBJOOX.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js → copy-N3GE6FYS.js} +7 -7
- package/dist/cli-bundle/chunks/create-CLSCHGJJ.js +30 -0
- package/dist/cli-bundle/chunks/{create-TGSB5GV4.js → create-O4VONGPG.js} +14 -14
- package/dist/cli-bundle/chunks/{delete-ARILQQLB.js → delete-724EQ6OS.js} +7 -7
- package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js → delete-LPEIF7RU.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js → deps-RSBU4SIU.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js → deps-T3Y6Y7RT.js} +7 -7
- package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js → docs-75ZLCO3G.js} +9 -9
- package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js → docs-IFS7HZPP.js} +9 -9
- package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js → eval-L2KD7W3M.js} +12 -12
- package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js → eval-QGR7JCQO.js} +12 -12
- package/dist/cli-bundle/chunks/{extension-OQPS27B4.js → extension-3JYWJ5K2.js} +6 -6
- package/dist/cli-bundle/chunks/{extension-NLMS47I4.js → extension-YQF4CPIR.js} +6 -6
- package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js → files-5BQWDRDT.js} +9 -9
- package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js → files-EPEJMJHQ.js} +9 -9
- package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js → focus-DQVJAPOE.js} +8 -8
- package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js → focus-RWGKD76E.js} +8 -8
- package/dist/cli-bundle/chunks/{gc-LXXDY456.js → gc-BEJMQT64.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js → gc-JEFQDJPA.js} +3 -3
- package/dist/cli-bundle/chunks/{get-W23G7MJX.js → get-LQG6PEVG.js} +11 -11
- package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js → get-WVN75H42.js} +11 -11
- package/dist/cli-bundle/chunks/{health-UDDGJLPP.js → health-JJJOY7DJ.js} +14 -14
- package/dist/cli-bundle/chunks/{health-5LHSX365.js → health-P67NZ6TT.js} +14 -14
- package/dist/cli-bundle/chunks/history-ALTM2RRP.js +20 -0
- package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js → history-RUKPKNY7.js} +10 -10
- package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js → history-compact-NQ7VPRVT.js} +12 -12
- package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js → history-compact-ZAOWR7GD.js} +12 -12
- package/dist/cli-bundle/chunks/history-redact-5YGLWUDH.js +21 -0
- package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js → history-redact-YY4XYVEP.js} +11 -11
- package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js → history-repair-EHL4ODQY.js} +12 -12
- package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js → history-repair-YSQH6SY6.js} +12 -12
- package/dist/cli-bundle/chunks/init-C4CRHW22.js +21 -0
- package/dist/cli-bundle/chunks/{init-HASX3YNJ.js → init-HBFGYS66.js} +11 -11
- package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js → learnings-J555ZFPD.js} +10 -10
- package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js → learnings-KFQO7GEZ.js} +10 -10
- package/dist/cli-bundle/chunks/{list-6FMKTIH3.js → list-C7R33MD5.js} +10 -10
- package/dist/cli-bundle/chunks/{list-5UU2W24O.js → list-DSN6UNFB.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js → notes-V4VNIQL4.js} +10 -10
- package/dist/cli-bundle/chunks/{notes-MODH5CBT.js → notes-VYJFN2A3.js} +10 -10
- package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js → plan-DHRSVSHR.js} +14 -14
- package/dist/cli-bundle/chunks/{plan-EHQALWSC.js → plan-RBHQ5PO7.js} +14 -14
- package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js → register-list-query-CCMHGZTF.js} +19 -19
- package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js → register-list-query-OM3E2KMY.js} +19 -19
- package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js → register-mutation-N3CDEGZU.js} +33 -33
- package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js → register-mutation-UXTTWL6N.js} +33 -33
- package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js → register-operations-R2FLOCRI.js} +32 -32
- package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js → register-operations-UDIFMQKD.js} +32 -32
- package/dist/cli-bundle/chunks/{register-setup-JSMJEFCJ.js → register-setup-G5LTSFYK.js} +24 -20
- package/dist/cli-bundle/chunks/register-setup-G5LTSFYK.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-HXEHMDHE.js → register-setup-TWHKICM2.js} +23 -19
- package/dist/cli-bundle/chunks/register-setup-TWHKICM2.js.map +7 -0
- package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js → restore-LL2WLEDG.js} +11 -11
- package/dist/cli-bundle/chunks/restore-LQHXBAY5.js +19 -0
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js → scheduling-shortcuts-255GI3BU.js} +14 -14
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js → scheduling-shortcuts-M4H2ZI64.js} +14 -14
- package/dist/cli-bundle/chunks/{schema-74YENAJL.js → schema-C6QA367T.js} +9 -9
- package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js → schema-QO5I4FBL.js} +9 -9
- package/dist/cli-bundle/chunks/{search-7USZ6XZA.js → search-2EI6EAXH.js} +12 -12
- package/dist/cli-bundle/chunks/{search-GNAUE65M.js → search-QBFBLQRO.js} +12 -12
- package/dist/cli-bundle/chunks/{stats-CVHASAEU.js → stats-TCW2SZQG.js} +8 -8
- package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js → stats-TKC6CAKB.js} +8 -8
- package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js → telemetry-BT2VSWU2.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js → telemetry-LQ6FRTUT.js} +4 -4
- package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js → test-NV2DRPUS.js} +16 -16
- package/dist/cli-bundle/chunks/test-WA6RZGM2.js +36 -0
- package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js → test-all-DZ76VTPQ.js} +16 -16
- package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js → test-all-REW67LXT.js} +16 -16
- package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js → test-runs-FQ5WNQLP.js} +5 -5
- package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js → test-runs-PX73DMMI.js} +5 -5
- package/dist/cli-bundle/chunks/update-BSKMQOYH.js +28 -0
- package/dist/cli-bundle/chunks/update-FIGYNQ2I.js +24 -0
- package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js → update-many-2ILP6E4Y.js} +23 -23
- package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js → update-many-Q5ZEI64S.js} +23 -23
- package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js → upgrade-DHL74PQH.js} +6 -6
- package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js → upgrade-FOZKQTQF.js} +6 -6
- package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js → validate-54SYJ7QW.js} +21 -21
- package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js → validate-HYZNIB6W.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/extensions/loader.d.ts +1 -2
- package/dist/core/extensions/loader.js +40 -103
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/version-compat.d.ts +107 -0
- package/dist/core/extensions/version-compat.js +130 -0
- package/dist/core/extensions/version-compat.js.map +1 -0
- package/dist/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 +636 -0
- package/dist/sdk/compose.js +841 -0
- package/dist/sdk/compose.js.map +1 -0
- package/dist/sdk/define.d.ts +195 -0
- package/dist/sdk/define.js +204 -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 +221 -2
- package/dist/sdk/testing.js +276 -2
- package/dist/sdk/testing.js.map +1 -1
- package/docs/COMMANDS.md +1 -0
- package/docs/EXTENSIONS.md +18 -14
- package/docs/SDK.md +445 -16
- package/package.json +1 -1
- package/dist/cli-bundle/chunks/activity-NEOI45NX.js +0 -18
- package/dist/cli-bundle/chunks/chunk-3GL6LTUL.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-4YJA4LGU.js.map +0 -7
- 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-RZZMSY4P.js.map +0 -7
- 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-NEOI45NX.js.map → activity-54TXGJ2T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-DXS2XMQU.js.map → activity-N7RVTLBQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-IHM4KMQ3.js.map → aggregate-63NWNIBR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{aggregate-NMYDVQF7.js.map → aggregate-YHCYX2EV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-3HY5G7ET.js.map → append-PUKREFV5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-K54MDQYC.js.map → append-VLQQDHMJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DU64SZUQ.js.map → chunk-2WCYE3IF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NKZOJPXK.js.map → chunk-3BKH2CL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7MALIV5H.js.map → chunk-4XDGYFHL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VB54F347.js.map → chunk-5BBEWX6C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DHBPJ7VG.js.map → chunk-5S4ZGDB2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UKK2VTTH.js.map → chunk-6EBNFQOR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5SESR24H.js.map → chunk-6EL7SW5C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JLSC5NPC.js.map → chunk-6W3Y65PL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HYQV75IB.js.map → chunk-A66VYUOV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I367IDZP.js.map → chunk-ABYCA5VX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-47HTJ6BU.js.map → chunk-AEACLRVH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MD7XKVWI.js.map → chunk-ALKFCIIB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-B2KR24R4.js.map → chunk-ALQKV6U7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NIWY4V4Z.js.map → chunk-AYPQUFCX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AJXYOYJV.js.map → chunk-B74BP6IS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-THKDPOS5.js.map → chunk-BFFO3AIB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CR7KFPAQ.js.map → chunk-C4C3EJCJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-J2TSPY5L.js.map → chunk-CG3KP6I5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CWPBGUC7.js.map → chunk-CZIFFMZI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-75VEYQJS.js.map → chunk-DTABLLVE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TIKJAXQW.js.map → chunk-EOGBMLCE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YATDFWYK.js.map → chunk-EWRSXOIZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RPRFBXND.js.map → chunk-F32L4HR6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NVUATMTC.js.map → chunk-F4BNR2IN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y4BZEND6.js.map → chunk-FBLT6WGK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PCH2JTEO.js.map → chunk-FMWW2JDU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WQDX7DVG.js.map → chunk-GDUMGZK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FK6MV5F5.js.map → chunk-HBAEFWX3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6UPTNMVW.js.map → chunk-HC2S36NB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XKNF3VRJ.js.map → chunk-HZF5RLKX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4JXWVHMN.js.map → chunk-I6QMJ2XT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-44O4JIN6.js.map → chunk-IAP5KYBQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A7E4ZXG2.js.map → chunk-IOT6WRL5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KRJJPDUO.js.map → chunk-IXAZI443.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DMT4ODVN.js.map → chunk-J3NMWFIN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7PBGTIN3.js.map → chunk-J7I4C5ZB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CLLVBO3I.js.map → chunk-JPJDP4VU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PJS2J7Z4.js.map → chunk-JV27C7OZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K25UDYJ4.js.map → chunk-KIEAK7YE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GGAXE22C.js.map → chunk-KJZOSF7J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GXBSFKSX.js.map → chunk-KKX4Z2SE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C5SWTISA.js.map → chunk-LNEDHJNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YRLLL5TY.js.map → chunk-LU36E6GU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I6XE47J2.js.map → chunk-M6TUBOGW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YJICYNAV.js.map → chunk-MWMHZOZZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SFKQAVZA.js.map → chunk-N5B6WZC5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WBSYW3NT.js.map → chunk-NVXGVEFD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GNDHOR64.js.map → chunk-OHDQNKJB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2LEYMXI6.js.map → chunk-OQ2E64FH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-25XZN3JD.js.map → chunk-PEL2NLQE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H6FNDCDI.js.map → chunk-PRVTGX64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TZQKEBKF.js.map → chunk-QOUOMPHO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-77VKGH4L.js.map → chunk-RAWA3Y7O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y335KFHD.js.map → chunk-RRP6D345.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4SDKF5BG.js.map → chunk-SKC4UTRP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JY25IOEZ.js.map → chunk-SUREE24M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-A25LOPRG.js.map → chunk-TIM4OD74.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KK4TQ3ZP.js.map → chunk-TKPP4GOO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6FQHNHQQ.js.map → chunk-TSI32UEL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TJABI6PR.js.map → chunk-UACWNBL2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EVPVCE4R.js.map → chunk-V4UYNSEM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QQWEROGS.js.map → chunk-VFJYVXHL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQSWTVZF.js.map → chunk-WB5BYQMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MNGAQB2E.js.map → chunk-XVYKWZNL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-V4SM4UAL.js.map → chunk-XXKV4UWE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GU7YHKYP.js.map → chunk-YV2OSAMS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P7ZU73BO.js.map → chunk-ZLWRPBOW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3VLPDG3J.js.map → chunk-ZV7IQ23N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-MPXNVBZQ.js.map → claim-FZZZCAY6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-SKHJDLW6.js.map → claim-XK5QBZE3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-Z6AI736U.js.map → close-JEBZXONN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-4RKSL5L6.js.map → close-QHMVWM7M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-SXODYBDP.js.map → close-many-OIXJE2JZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-AWTPXLHJ.js.map → close-many-SUU5BS2C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-YYW5P7AG.js.map → comments-5YM62D75.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-OOH64LWW.js.map → comments-RH3IBIRH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-3445MCQQ.js.map → config-NCNNWF6R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{config-LCDMKRB2.js.map → config-SW3U7XP2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-PJCURODY.js.map → context-55VEOYI3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{context-DZMIBIVP.js.map → context-5LB7UGKE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-63IQQRRS.js.map → copy-IEDBJOOX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-TASIH2AZ.js.map → copy-N3GE6FYS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-3BV2VA3Q.js.map → create-CLSCHGJJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-TGSB5GV4.js.map → create-O4VONGPG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ARILQQLB.js.map → delete-724EQ6OS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ZQKBZYNK.js.map → delete-LPEIF7RU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-MSHQR2GY.js.map → deps-RSBU4SIU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-NJFJIMQ5.js.map → deps-T3Y6Y7RT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-XK2UVUXX.js.map → docs-75ZLCO3G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-SS4UKYYA.js.map → docs-IFS7HZPP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-JOTG2YHU.js.map → eval-L2KD7W3M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{eval-FVZGX5IZ.js.map → eval-QGR7JCQO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-OQPS27B4.js.map → extension-3JYWJ5K2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-NLMS47I4.js.map → extension-YQF4CPIR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-Y2P6LN5A.js.map → files-5BQWDRDT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-3EVJQZ2N.js.map → files-EPEJMJHQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-D5ZUPTII.js.map → focus-DQVJAPOE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-ZPIFTY4R.js.map → focus-RWGKD76E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-LXXDY456.js.map → gc-BEJMQT64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-RNOEQHSX.js.map → gc-JEFQDJPA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-W23G7MJX.js.map → get-LQG6PEVG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{get-Q3SZGQHD.js.map → get-WVN75H42.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-UDDGJLPP.js.map → health-JJJOY7DJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-5LHSX365.js.map → health-P67NZ6TT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-YRQUD4YM.js.map → history-ALTM2RRP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-6CZVFIUJ.js.map → history-RUKPKNY7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-VWUSQH6Z.js.map → history-compact-NQ7VPRVT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-M35PDQ4G.js.map → history-compact-ZAOWR7GD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-27OEOZRZ.js.map → history-redact-5YGLWUDH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-AJGARHT3.js.map → history-redact-YY4XYVEP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-YUAHIPIN.js.map → history-repair-EHL4ODQY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-5RDMF7K4.js.map → history-repair-YSQH6SY6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-DWAKYRXI.js.map → init-C4CRHW22.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-HASX3YNJ.js.map → init-HBFGYS66.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-JNGUIJDK.js.map → learnings-J555ZFPD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-M4KA6MQE.js.map → learnings-KFQO7GEZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-6FMKTIH3.js.map → list-C7R33MD5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-5UU2W24O.js.map → list-DSN6UNFB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-PYCPLA5Y.js.map → notes-V4VNIQL4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-MODH5CBT.js.map → notes-VYJFN2A3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-DXRIRYRU.js.map → plan-DHRSVSHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-EHQALWSC.js.map → plan-RBHQ5PO7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-QAASVP2J.js.map → register-list-query-CCMHGZTF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-list-query-WE54YJMH.js.map → register-list-query-OM3E2KMY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-B6DZJTY2.js.map → register-mutation-N3CDEGZU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-CPV4C2KR.js.map → register-mutation-UXTTWL6N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-RC4C3423.js.map → register-operations-R2FLOCRI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-operations-AT3BVVX2.js.map → register-operations-UDIFMQKD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-FNBV4GWE.js.map → restore-LL2WLEDG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-XY4YE2OV.js.map → restore-LQHXBAY5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-ECL6GBMZ.js.map → scheduling-shortcuts-255GI3BU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{scheduling-shortcuts-JRIUREEU.js.map → scheduling-shortcuts-M4H2ZI64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-74YENAJL.js.map → schema-C6QA367T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-TCW3I7QR.js.map → schema-QO5I4FBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-7USZ6XZA.js.map → search-2EI6EAXH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-GNAUE65M.js.map → search-QBFBLQRO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-CVHASAEU.js.map → stats-TCW2SZQG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{stats-DQMKJMFT.js.map → stats-TKC6CAKB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-PQTL5YS2.js.map → telemetry-BT2VSWU2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-7P5EUWCS.js.map → telemetry-LQ6FRTUT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-FDQZQNZ4.js.map → test-NV2DRPUS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-COWPCGBE.js.map → test-WA6RZGM2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-PIPPS4S5.js.map → test-all-DZ76VTPQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-all-WQIAZVA6.js.map → test-all-REW67LXT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-JS6DNCCI.js.map → test-runs-FQ5WNQLP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-runs-NZD2QGL5.js.map → test-runs-PX73DMMI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-IJKDRBIX.js.map → update-BSKMQOYH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-7IYQHX4Q.js.map → update-FIGYNQ2I.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-B3TH5TDS.js.map → update-many-2ILP6E4Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-6NTZ5J5D.js.map → update-many-Q5ZEI64S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-76IKZ6EZ.js.map → upgrade-DHL74PQH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{upgrade-4C7VE7MS.js.map → upgrade-FOZKQTQF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{validate-BPM6Z3OT.js.map → validate-54SYJ7QW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{validate-AQU7OCL3.js.map → validate-HYZNIB6W.js.map} +0 -0
|
@@ -5,26 +5,26 @@ import {
|
|
|
5
5
|
normalizeReplayPatchOps,
|
|
6
6
|
tryApplyReplayPatch,
|
|
7
7
|
verifyHistoryChain
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WB5BYQMF.js";
|
|
9
9
|
import {
|
|
10
10
|
parseLimit
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-V4UYNSEM.js";
|
|
12
12
|
import {
|
|
13
13
|
enforceHistoryStreamPolicyForItem,
|
|
14
14
|
hashDocument,
|
|
15
15
|
hashEmptyDocument,
|
|
16
16
|
locateItem,
|
|
17
17
|
readLocatedItem
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KJZOSF7J.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeItemId
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FBLT6WGK.js";
|
|
22
22
|
import {
|
|
23
23
|
findFirstMergeConflictMarker
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZLWRPBOW.js";
|
|
25
25
|
import {
|
|
26
26
|
resolveItemTypeRegistry
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-TKPP4GOO.js";
|
|
28
28
|
import {
|
|
29
29
|
EXIT_CODE,
|
|
30
30
|
PmCliError,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
readSettings,
|
|
37
37
|
resolvePmRoot,
|
|
38
38
|
runActiveOnReadHooks
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-VSAABFGQ.js";
|
|
40
40
|
|
|
41
41
|
// dist/core/history/history-diff.js
|
|
42
42
|
function decodeJsonPointerSegment(segment) {
|
|
@@ -264,6 +264,6 @@ export {
|
|
|
264
264
|
readHistoryEntries,
|
|
265
265
|
runHistory
|
|
266
266
|
};
|
|
267
|
-
//# sourceMappingURL=chunk-
|
|
267
|
+
//# sourceMappingURL=chunk-MWMHZOZZ.js.map
|
|
268
268
|
|
|
269
269
|
//# debugId=bcfc5ee3-530b-5b04-8b4c-6510049c5b19
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
parseLinkedTestMinLines,
|
|
16
16
|
parseLinkedTestRegexList,
|
|
17
17
|
parseLinkedTestStringList
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AYPQUFCX.js";
|
|
19
19
|
import {
|
|
20
20
|
createStdinTokenResolver,
|
|
21
21
|
parseCsvKv,
|
|
22
22
|
parseOptionalNumber
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-KIEAK7YE.js";
|
|
24
24
|
import {
|
|
25
25
|
runInit
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EWRSXOIZ.js";
|
|
27
27
|
import {
|
|
28
28
|
locateItem,
|
|
29
29
|
mutateItem,
|
|
30
30
|
readLocatedItem
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-KJZOSF7J.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveItemTypeRegistry
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TKPP4GOO.js";
|
|
35
35
|
import {
|
|
36
36
|
compareTimestampStrings,
|
|
37
37
|
nowIso
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FMWW2JDU.js";
|
|
39
39
|
import {
|
|
40
40
|
EXIT_CODE,
|
|
41
41
|
ITEM_FILE_EXTENSIONS,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
resolveGlobalPmRoot,
|
|
49
49
|
resolvePmRoot,
|
|
50
50
|
stableValueEquals
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-VSAABFGQ.js";
|
|
52
52
|
|
|
53
53
|
// dist/cli/commands/test.js
|
|
54
54
|
import { spawn } from "node:child_process";
|
|
@@ -1884,6 +1884,6 @@ export {
|
|
|
1884
1884
|
runTest,
|
|
1885
1885
|
_testOnlyTestCommand
|
|
1886
1886
|
};
|
|
1887
|
-
//# sourceMappingURL=chunk-
|
|
1887
|
+
//# sourceMappingURL=chunk-N5B6WZC5.js.map
|
|
1888
1888
|
|
|
1889
1889
|
//# debugId=eca9038d-c58d-57e0-9b7d-a32f72ff68b8
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e68ba064-77cc-5c36-bb28-275d9fe97142")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
4
|
normalizeManagedDirectoryName
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-J3NMWFIN.js";
|
|
6
6
|
import {
|
|
7
7
|
EXIT_CODE,
|
|
8
8
|
PmCliError,
|
|
9
9
|
pathExists
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VSAABFGQ.js";
|
|
11
11
|
|
|
12
12
|
// dist/cli/commands/extension/scaffold.js
|
|
13
13
|
import fs from "node:fs/promises";
|
|
@@ -22,6 +22,26 @@ var SCAFFOLD_DECLARED_PERMISSIONS = {
|
|
|
22
22
|
env_write: false,
|
|
23
23
|
process_spawn: false
|
|
24
24
|
};
|
|
25
|
+
var SCAFFOLD_TYPESCRIPT_VERSION = "^6.0.0";
|
|
26
|
+
var SCAFFOLD_TYPES_NODE_VERSION = "^20.0.0";
|
|
27
|
+
var SCAFFOLD_TSCONFIG = {
|
|
28
|
+
compilerOptions: {
|
|
29
|
+
target: "ES2022",
|
|
30
|
+
module: "NodeNext",
|
|
31
|
+
moduleResolution: "NodeNext",
|
|
32
|
+
strict: true,
|
|
33
|
+
esModuleInterop: true,
|
|
34
|
+
skipLibCheck: true,
|
|
35
|
+
declaration: false,
|
|
36
|
+
// `node:test`/`node:assert` in the colocated test (and Node globals) resolve
|
|
37
|
+
// from `@types/node`; name it explicitly so it is loaded regardless of how the
|
|
38
|
+
// package manager lays out `node_modules/@types`.
|
|
39
|
+
types: ["node"]
|
|
40
|
+
},
|
|
41
|
+
// Recursive so a package that grows into subdirectory `*.ts` modules still
|
|
42
|
+
// type-checks and compiles them; tsc excludes `node_modules` by default.
|
|
43
|
+
include: ["**/*.ts"]
|
|
44
|
+
};
|
|
25
45
|
var SCAFFOLD_CAPABILITIES = ["commands", "hooks", "search", "importers"];
|
|
26
46
|
var SCAFFOLD_MANIFEST_CAPABILITIES = {
|
|
27
47
|
commands: ["commands"],
|
|
@@ -36,23 +56,24 @@ var SAMPLE_TEST_CAPABILITIES_LITERAL = {
|
|
|
36
56
|
importers: '["commands", "schema", "importers"]'
|
|
37
57
|
};
|
|
38
58
|
var ENTRYPOINT_BULLETS = {
|
|
39
|
-
commands: "- `index.
|
|
40
|
-
hooks: "- `index.
|
|
41
|
-
search: "- `index.
|
|
42
|
-
importers: "- `index.
|
|
59
|
+
commands: "- `index.ts`: starter command registration plus a `deactivate` teardown stub (compiled to `index.js`).",
|
|
60
|
+
hooks: "- `index.ts`: starter command registration, an `after_command` lifecycle hook, and a `deactivate` teardown stub (compiled to `index.js`).",
|
|
61
|
+
search: "- `index.ts`: starter command registration, a search provider, a vector-store adapter, and a `deactivate` teardown stub (compiled to `index.js`).",
|
|
62
|
+
importers: "- `index.ts`: starter command registration, importer/exporter command registrations, and a `deactivate` teardown stub (compiled to `index.js`)."
|
|
43
63
|
};
|
|
44
64
|
var SAMPLE_TEST_BULLETS = {
|
|
45
|
-
commands: "- `index.test.
|
|
46
|
-
hooks: "- `index.test.
|
|
47
|
-
search: "- `index.test.
|
|
48
|
-
importers: "- `index.test.
|
|
65
|
+
commands: "- `index.test.ts`: sample `node:test` suite covering activation, command invocation, and teardown via the SDK testing helpers.",
|
|
66
|
+
hooks: "- `index.test.ts`: sample `node:test` suite covering activation, command invocation, the after_command hook, and teardown via the SDK testing helpers.",
|
|
67
|
+
search: "- `index.test.ts`: sample `node:test` suite covering activation, command invocation, search provider/vector adapter invocation, and teardown via the SDK testing helpers.",
|
|
68
|
+
importers: "- `index.test.ts`: sample `node:test` suite covering activation, command invocation, importer/exporter invocation, and teardown via the SDK testing helpers."
|
|
49
69
|
};
|
|
70
|
+
var TSCONFIG_BULLET = "- `tsconfig.json`: strict TypeScript config that compiles `index.ts` to the `./index.js` entry.";
|
|
50
71
|
var PACKAGE_CAPABILITY_README_SECTIONS = {
|
|
51
72
|
commands: [],
|
|
52
73
|
hooks: [
|
|
53
74
|
"",
|
|
54
75
|
"## Lifecycle Hook",
|
|
55
|
-
"`index.
|
|
76
|
+
"`index.ts` registers an `after_command` hook via `api.hooks.afterCommand`.",
|
|
56
77
|
"pm fires it once a command finishes, passing the command outcome and the",
|
|
57
78
|
"items it mutated (`context.affected`). React there to keep external context",
|
|
58
79
|
"in sync - sync records, emit telemetry, or refresh derived state. The",
|
|
@@ -62,7 +83,7 @@ var PACKAGE_CAPABILITY_README_SECTIONS = {
|
|
|
62
83
|
search: [
|
|
63
84
|
"",
|
|
64
85
|
"## Search Provider",
|
|
65
|
-
"`index.
|
|
86
|
+
"`index.ts` registers a deterministic in-memory search provider and",
|
|
66
87
|
"vector-store adapter through `api.registerSearchProvider` and",
|
|
67
88
|
"`api.registerVectorStoreAdapter`. Replace the sample scoring,",
|
|
68
89
|
"embedding, and storage behavior with your project-specific retrieval",
|
|
@@ -72,7 +93,7 @@ var PACKAGE_CAPABILITY_README_SECTIONS = {
|
|
|
72
93
|
importers: [
|
|
73
94
|
"",
|
|
74
95
|
"## Importer and Exporter",
|
|
75
|
-
"`index.
|
|
96
|
+
"`index.ts` registers paired project-context import/export commands through",
|
|
76
97
|
"`api.registerImporter` and `api.registerExporter`. Replace the starter",
|
|
77
98
|
"payloads with your domain adapter: GitHub issues, CSV rows, documents,",
|
|
78
99
|
"tickets, or another project-management source of truth. The `importers`",
|
|
@@ -85,7 +106,7 @@ var EXTENSION_CAPABILITY_README_SECTIONS = {
|
|
|
85
106
|
hooks: [
|
|
86
107
|
"",
|
|
87
108
|
"## Lifecycle Hook",
|
|
88
|
-
"`index.
|
|
109
|
+
"`index.ts` registers an `after_command` hook via `api.hooks.afterCommand`.",
|
|
89
110
|
"pm fires it once a command finishes, passing the command outcome and the",
|
|
90
111
|
"items it mutated (`context.affected`). React there to keep external context",
|
|
91
112
|
"in sync. The `hooks` capability in `manifest.json` grants the registration;",
|
|
@@ -94,7 +115,7 @@ var EXTENSION_CAPABILITY_README_SECTIONS = {
|
|
|
94
115
|
search: [
|
|
95
116
|
"",
|
|
96
117
|
"## Search Provider",
|
|
97
|
-
"`index.
|
|
118
|
+
"`index.ts` registers a deterministic in-memory search provider and",
|
|
98
119
|
"vector-store adapter through `api.registerSearchProvider` and",
|
|
99
120
|
"`api.registerVectorStoreAdapter`. Replace the sample scoring, embedding,",
|
|
100
121
|
"and storage behavior with your project-specific retrieval logic. The",
|
|
@@ -103,7 +124,7 @@ var EXTENSION_CAPABILITY_README_SECTIONS = {
|
|
|
103
124
|
importers: [
|
|
104
125
|
"",
|
|
105
126
|
"## Importer and Exporter",
|
|
106
|
-
"`index.
|
|
127
|
+
"`index.ts` registers paired project-context import/export commands through",
|
|
107
128
|
"`api.registerImporter` and `api.registerExporter`. Replace the starter",
|
|
108
129
|
"payloads with your domain adapter. The `importers` capability grants both",
|
|
109
130
|
"registrations, and `schema` grants the example command flag metadata."
|
|
@@ -300,6 +321,8 @@ function buildSampleTestSource(extensionName, commandName, capability) {
|
|
|
300
321
|
` extensionName: ${JSON.stringify(extensionName)},`,
|
|
301
322
|
" });",
|
|
302
323
|
"",
|
|
324
|
+
" // The starter provider reads only document title/id, so `settings` is a",
|
|
325
|
+
" // minimal typed stub and `documents` carry just the fields it inspects.",
|
|
303
326
|
" const query = await runRegisteredSearchProviderForTest(activation.registrations, {",
|
|
304
327
|
` provider: ${JSON.stringify(searchProviderName)},`,
|
|
305
328
|
' operation: "query",',
|
|
@@ -308,11 +331,11 @@ function buildSampleTestSource(extensionName, commandName, capability) {
|
|
|
308
331
|
' mode: "semantic",',
|
|
309
332
|
' tokens: ["sync"],',
|
|
310
333
|
" options: {},",
|
|
311
|
-
" settings: {},",
|
|
334
|
+
" settings: {} as PmSettings,",
|
|
312
335
|
" documents: [",
|
|
313
336
|
' { metadata: { id: "pm-1", title: "Sync external context" }, body: "" },',
|
|
314
337
|
' { metadata: { id: "pm-2", title: "Unrelated task" }, body: "" },',
|
|
315
|
-
" ],",
|
|
338
|
+
" ] as ItemDocument[],",
|
|
316
339
|
" },",
|
|
317
340
|
" });",
|
|
318
341
|
' assert.deepEqual(query, { hits: [{ id: "pm-1", score: 1, matched_fields: ["title"] }] });',
|
|
@@ -320,14 +343,14 @@ function buildSampleTestSource(extensionName, commandName, capability) {
|
|
|
320
343
|
" const embedding = await runRegisteredSearchProviderForTest(activation.registrations, {",
|
|
321
344
|
` provider: ${JSON.stringify(searchProviderName)},`,
|
|
322
345
|
' operation: "embed",',
|
|
323
|
-
' context: { input: "abc", settings: {}, model: "starter-model" },',
|
|
346
|
+
' context: { input: "abc", settings: {} as PmSettings, model: "starter-model" },',
|
|
324
347
|
" });",
|
|
325
348
|
" assert.deepEqual(embedding, [3]);",
|
|
326
349
|
"",
|
|
327
350
|
" const vectorHits = await runRegisteredVectorStoreAdapterForTest(activation.registrations, {",
|
|
328
351
|
` adapter: ${JSON.stringify(vectorAdapterName)},`,
|
|
329
352
|
' operation: "query",',
|
|
330
|
-
" context: { vector: [0.1, 0.2], limit: 2, settings: {} },",
|
|
353
|
+
" context: { vector: [0.1, 0.2], limit: 2, settings: {} as PmSettings },",
|
|
331
354
|
" });",
|
|
332
355
|
' assert.deepEqual(vectorHits, [{ id: "starter-vector-hit", score: 2 }]);',
|
|
333
356
|
"});",
|
|
@@ -372,6 +395,9 @@ function buildSampleTestSource(extensionName, commandName, capability) {
|
|
|
372
395
|
"import {",
|
|
373
396
|
...importNames,
|
|
374
397
|
'} from "@unbrained/pm-cli/sdk/testing";',
|
|
398
|
+
// The search sample's synthetic query/vector contexts reference these SDK types
|
|
399
|
+
// for their typed-stub fixtures; other capabilities need no extra type imports.
|
|
400
|
+
...searchEnabled ? ['import type { ItemDocument, PmSettings } from "@unbrained/pm-cli/sdk";'] : [],
|
|
375
401
|
'import extension from "./index.js";',
|
|
376
402
|
"",
|
|
377
403
|
`test(${JSON.stringify(`${extensionName} registers its starter command`)}, async () => {`,
|
|
@@ -397,8 +423,14 @@ function buildSampleTestSource(extensionName, commandName, capability) {
|
|
|
397
423
|
` command: ${JSON.stringify(commandName)},`,
|
|
398
424
|
" });",
|
|
399
425
|
" assert.equal(invocation.handled, true);",
|
|
400
|
-
"
|
|
401
|
-
|
|
426
|
+
" // The handler result is typed `unknown`, so deep-equality on the whole",
|
|
427
|
+
" // structured payload keeps the assertion type-safe without a cast.",
|
|
428
|
+
" assert.deepEqual(invocation.result, {",
|
|
429
|
+
" ok: true,",
|
|
430
|
+
` source: ${JSON.stringify(extensionName)},`,
|
|
431
|
+
` command: ${JSON.stringify(commandName)},`,
|
|
432
|
+
' message: "Starter extension scaffold is active.",',
|
|
433
|
+
" });",
|
|
402
434
|
"});",
|
|
403
435
|
"",
|
|
404
436
|
...hookTestLines,
|
|
@@ -434,8 +466,9 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
434
466
|
}, null, 2)}
|
|
435
467
|
`;
|
|
436
468
|
const entrypoint = [
|
|
437
|
-
'
|
|
438
|
-
"
|
|
469
|
+
'import type { ExtensionApi } from "@unbrained/pm-cli/sdk";',
|
|
470
|
+
"",
|
|
471
|
+
"export function activate(api: ExtensionApi): void {",
|
|
439
472
|
...buildActivateBodyLines(extensionName, commandName, capability),
|
|
440
473
|
"}",
|
|
441
474
|
"",
|
|
@@ -443,7 +476,7 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
443
476
|
"// shutdown/reload (e.g. the MCP server between requests) to release anything",
|
|
444
477
|
"// `activate` opened - timers, connections, caches. This starter holds no such",
|
|
445
478
|
"// resources, so it stays a documented no-op; add cleanup here as you grow.",
|
|
446
|
-
"export function deactivate() {}",
|
|
479
|
+
"export function deactivate(): void {}",
|
|
447
480
|
"",
|
|
448
481
|
"export default {",
|
|
449
482
|
" activate,",
|
|
@@ -451,6 +484,8 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
451
484
|
"};",
|
|
452
485
|
""
|
|
453
486
|
].join("\n");
|
|
487
|
+
const tsconfig = `${JSON.stringify(SCAFFOLD_TSCONFIG, null, 2)}
|
|
488
|
+
`;
|
|
454
489
|
const entrypointBullet = ENTRYPOINT_BULLETS[capability];
|
|
455
490
|
if (vocabulary === "package") {
|
|
456
491
|
const packageJson = `${JSON.stringify({
|
|
@@ -459,14 +494,21 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
459
494
|
private: true,
|
|
460
495
|
type: "module",
|
|
461
496
|
keywords: ["pm-package"],
|
|
462
|
-
// `
|
|
463
|
-
//
|
|
497
|
+
// `build` compiles index.ts to the ./index.js the manifest loads; `test`
|
|
498
|
+
// compiles first (Node's `node --test` runs the emitted *.test.js, not the
|
|
499
|
+
// TypeScript source) then runs the colocated sample against the peer SDK
|
|
500
|
+
// testing helpers — no third-party test runner required.
|
|
464
501
|
scripts: {
|
|
465
|
-
|
|
502
|
+
build: "tsc",
|
|
503
|
+
test: "tsc && node --test"
|
|
466
504
|
},
|
|
467
505
|
peerDependencies: {
|
|
468
506
|
"@unbrained/pm-cli": "*"
|
|
469
507
|
},
|
|
508
|
+
devDependencies: {
|
|
509
|
+
"@types/node": SCAFFOLD_TYPES_NODE_VERSION,
|
|
510
|
+
typescript: SCAFFOLD_TYPESCRIPT_VERSION
|
|
511
|
+
},
|
|
470
512
|
pm: {
|
|
471
513
|
aliases: [extensionName],
|
|
472
514
|
extensions: ["."],
|
|
@@ -483,34 +525,101 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
483
525
|
`;
|
|
484
526
|
const sampleTest = buildSampleTestSource(extensionName, commandName, capability);
|
|
485
527
|
const sampleTestBullet = SAMPLE_TEST_BULLETS[capability];
|
|
486
|
-
const gitignore = [
|
|
528
|
+
const gitignore = [
|
|
529
|
+
"node_modules/",
|
|
530
|
+
"*.log",
|
|
531
|
+
"",
|
|
532
|
+
"# Compiled TypeScript output (npm run build)",
|
|
533
|
+
"*.js",
|
|
534
|
+
"*.test.js",
|
|
535
|
+
"*.js.map",
|
|
536
|
+
"*.d.ts",
|
|
537
|
+
"*.d.ts.map",
|
|
538
|
+
""
|
|
539
|
+
].join("\n");
|
|
540
|
+
const searchProviderName = `${extensionName}-search`;
|
|
541
|
+
const vectorAdapterName = `${extensionName}-vector`;
|
|
542
|
+
const adapterName = `${extensionName.replace(/-/g, " ")} items`;
|
|
543
|
+
const defineBuilderImports = [
|
|
544
|
+
"defineCommand",
|
|
545
|
+
...capability === "hooks" ? ["defineAfterCommandHook"] : [],
|
|
546
|
+
...capability === "search" ? ["defineSearchProvider", "defineVectorStoreAdapter"] : [],
|
|
547
|
+
...capability === "importers" ? ["defineImporter", "defineExporter"] : []
|
|
548
|
+
].join(", ");
|
|
549
|
+
const defineBuilderSnippet = [
|
|
550
|
+
"```ts",
|
|
551
|
+
`import { ${defineBuilderImports} } from "@unbrained/pm-cli/sdk";`,
|
|
552
|
+
'import type { ExtensionApi } from "@unbrained/pm-cli/sdk";',
|
|
553
|
+
"",
|
|
554
|
+
"export const pingCommand = defineCommand({",
|
|
555
|
+
` name: ${JSON.stringify(commandName)},`,
|
|
556
|
+
' description: "Starter scaffold command. Replace with your own behavior.",',
|
|
557
|
+
" run: (context) => ({ ok: true, command: context.command }),",
|
|
558
|
+
"});"
|
|
559
|
+
];
|
|
560
|
+
if (capability === "hooks") {
|
|
561
|
+
defineBuilderSnippet.push("", "export const afterCommandHook = defineAfterCommandHook((context) => {", " if (!context.ok) return;", " // React to context.affected here as your package grows.", "});");
|
|
562
|
+
}
|
|
563
|
+
if (capability === "search") {
|
|
564
|
+
defineBuilderSnippet.push("", "export const searchProvider = defineSearchProvider({", ` name: ${JSON.stringify(searchProviderName)},`, " query: async (context) => ({", " hits: context.documents", ' .filter((document) => String(document.metadata.title ?? "").toLowerCase().includes(context.query.toLowerCase()))', ' .map((document) => ({ id: document.metadata.id, score: 1, matched_fields: ["title"] })),', " }),", " embed: async (context) => [context.input.length],", "});", "", "export const vectorStoreAdapter = defineVectorStoreAdapter({", ` name: ${JSON.stringify(vectorAdapterName)},`, ' query: async (context) => [{ id: "starter-vector-hit", score: context.limit }],', " upsert: async (context) => ({ upserted: context.points.length }),", " delete: async (context) => ({ deleted: context.ids.length }),", "});");
|
|
565
|
+
}
|
|
566
|
+
if (capability === "importers") {
|
|
567
|
+
defineBuilderSnippet.push("", "export const importer = defineImporter(async (context) => ({", " imported: 1,", ' source: context.options.source ?? "starter",', " args: context.args,", "}));", "", "export const exporter = defineExporter(async (context) => ({", " exported: true,", ' destination: context.options.destination ?? "stdout",', " args: context.args,", "}));");
|
|
568
|
+
}
|
|
569
|
+
defineBuilderSnippet.push("", "export function activate(api: ExtensionApi): void {", " api.registerCommand(pingCommand);");
|
|
570
|
+
if (capability === "hooks") {
|
|
571
|
+
defineBuilderSnippet.push(" api.hooks.afterCommand(afterCommandHook);");
|
|
572
|
+
}
|
|
573
|
+
if (capability === "search") {
|
|
574
|
+
defineBuilderSnippet.push(" api.registerSearchProvider(searchProvider);", " api.registerVectorStoreAdapter(vectorStoreAdapter);");
|
|
575
|
+
}
|
|
576
|
+
if (capability === "importers") {
|
|
577
|
+
defineBuilderSnippet.push(` api.registerImporter(${JSON.stringify(adapterName)}, importer, {`, ` action: ${JSON.stringify(`${adapterName} import`)},`, ' description: "Import starter records into pm context.",', " flags: [", " {", ' long: "--source",', ' value_name: "name",', ' value_type: "string",', ' description: "Source name or path to import from.",', " },", " ],", " });", ` api.registerExporter(${JSON.stringify(adapterName)}, exporter, {`, ` action: ${JSON.stringify(`${adapterName} export`)},`, ' description: "Export pm context into starter records.",', " flags: [", " {", ' long: "--destination",', ' value_name: "name",', ' value_type: "string",', ' description: "Destination name or path to export to.",', " },", " ],", " });");
|
|
578
|
+
}
|
|
579
|
+
defineBuilderSnippet.push("}", "", "export function deactivate(): void {}", "", "export default { activate, deactivate };", "```");
|
|
487
580
|
const packageReadme = [
|
|
488
581
|
`# ${packageName}`,
|
|
489
582
|
"",
|
|
490
583
|
"Generated by `pm package init`.",
|
|
491
584
|
"",
|
|
492
585
|
"## Included Files",
|
|
493
|
-
"- `package.json`: package metadata, `test`
|
|
586
|
+
"- `package.json`: package metadata, `build`/`test` scripts, and `pm` resource manifest.",
|
|
494
587
|
"- `manifest.json`: extension metadata and capabilities.",
|
|
495
588
|
entrypointBullet,
|
|
496
589
|
sampleTestBullet,
|
|
497
|
-
|
|
590
|
+
TSCONFIG_BULLET,
|
|
591
|
+
"- `.gitignore`: ignores `node_modules/`, logs, and compiled JavaScript/declaration output.",
|
|
498
592
|
"",
|
|
499
593
|
"## Quick Start",
|
|
594
|
+
"This package is authored in TypeScript; build it once so the manifest's",
|
|
595
|
+
"`./index.js` entry exists, then install it:",
|
|
500
596
|
"```bash",
|
|
597
|
+
"npm install",
|
|
598
|
+
"npm run build",
|
|
501
599
|
"pm install --project <package-path>",
|
|
502
600
|
`pm ${commandName}`,
|
|
503
601
|
"pm package doctor --project --detail summary",
|
|
504
602
|
"```",
|
|
505
603
|
"",
|
|
506
604
|
"## Validate the Package",
|
|
507
|
-
"
|
|
605
|
+
"`npm install` pulls the peer SDK and TypeScript; `npm test` compiles and runs",
|
|
606
|
+
"the colocated sample test:",
|
|
508
607
|
"```bash",
|
|
509
608
|
"npm install",
|
|
510
609
|
"npm test",
|
|
511
610
|
"```",
|
|
512
|
-
"`npm test` runs `node --test
|
|
611
|
+
"`npm test` runs `tsc && node --test`: it compiles `index.ts`/`index.test.ts`",
|
|
612
|
+
"then executes the emitted `index.test.js` against the",
|
|
513
613
|
"`@unbrained/pm-cli/sdk/testing` helpers - no extra test runner required.",
|
|
614
|
+
"",
|
|
615
|
+
"## Authoring With define* Builders",
|
|
616
|
+
"`index.ts` is authored fully in TypeScript so every registration is checked",
|
|
617
|
+
"against the SDK contracts at author time. Use the public SDK authoring",
|
|
618
|
+
"builders for exported definitions you want literal-type preservation,",
|
|
619
|
+
"contextual handler inference, and direct unit tests for:",
|
|
620
|
+
...defineBuilderSnippet,
|
|
621
|
+
"The builders return their argument unchanged; runtime validation still lives",
|
|
622
|
+
"in `api.register*`, and behavior validation lives in `sdk/testing`.",
|
|
514
623
|
...PACKAGE_CAPABILITY_README_SECTIONS[capability],
|
|
515
624
|
"",
|
|
516
625
|
"## Compatibility Bounds",
|
|
@@ -523,8 +632,8 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
523
632
|
'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`.',
|
|
524
633
|
"",
|
|
525
634
|
"## Notes",
|
|
526
|
-
"-
|
|
527
|
-
"- Move larger runtimes into
|
|
635
|
+
"- Author in `index.ts`; `npm run build` (tsc) emits the `./index.js` the manifest loads, so rebuild after editing before installing or reloading.",
|
|
636
|
+
"- Move larger runtimes into sibling or subdirectory `*.ts` modules and import them; `tsconfig.json` compiles every `*.ts` in the package (recursively).",
|
|
528
637
|
"- Add capabilities to the extension manifest only when the entrypoint uses the matching SDK API.",
|
|
529
638
|
"- Use `@unbrained/pm-cli/sdk` as the public SDK import for richer package runtimes.",
|
|
530
639
|
""
|
|
@@ -532,8 +641,9 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
532
641
|
return {
|
|
533
642
|
"package.json": packageJson,
|
|
534
643
|
"manifest.json": manifest,
|
|
535
|
-
"index.
|
|
536
|
-
"index.test.
|
|
644
|
+
"index.ts": entrypoint,
|
|
645
|
+
"index.test.ts": sampleTest,
|
|
646
|
+
"tsconfig.json": tsconfig,
|
|
537
647
|
".gitignore": gitignore,
|
|
538
648
|
"README.md": packageReadme
|
|
539
649
|
};
|
|
@@ -546,9 +656,16 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
546
656
|
"## Included Files",
|
|
547
657
|
"- `manifest.json`: extension metadata and capabilities.",
|
|
548
658
|
entrypointBullet,
|
|
659
|
+
TSCONFIG_BULLET,
|
|
549
660
|
"",
|
|
550
661
|
"## Quick Start",
|
|
662
|
+
"This extension is authored in TypeScript; compile `index.ts` to the manifest's",
|
|
663
|
+
"`./index.js` entry, then install it. The SDK types resolve once",
|
|
664
|
+
"`@unbrained/pm-cli` is available to the compiler (install it, Node types, and TypeScript, or",
|
|
665
|
+
"build from a project that already depends on the CLI):",
|
|
551
666
|
"```bash",
|
|
667
|
+
"npm install -D typescript @types/node @unbrained/pm-cli",
|
|
668
|
+
"npx tsc",
|
|
552
669
|
"pm extension --install --project <scaffold-path>",
|
|
553
670
|
`pm ${commandName}`,
|
|
554
671
|
"pm extension --doctor --project --detail summary",
|
|
@@ -565,14 +682,15 @@ function buildStarterExtensionScaffoldFiles(extensionName, commandName, vocabula
|
|
|
565
682
|
'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`.',
|
|
566
683
|
"",
|
|
567
684
|
"## Notes",
|
|
568
|
-
"- This scaffold uses ESM
|
|
569
|
-
"-
|
|
685
|
+
"- This scaffold uses TypeScript ESM source compiled to ESM output, so it works in package scopes with `type: module`.",
|
|
686
|
+
"- Author in `index.ts` and recompile to `index.js` (the manifest entry) after editing capabilities or command behavior.",
|
|
570
687
|
"- Release any resources `activate` opens (timers, connections, caches) in the `deactivate` teardown hook.",
|
|
571
688
|
""
|
|
572
689
|
].join("\n");
|
|
573
690
|
return {
|
|
574
691
|
"manifest.json": manifest,
|
|
575
|
-
"index.
|
|
692
|
+
"index.ts": entrypoint,
|
|
693
|
+
"tsconfig.json": tsconfig,
|
|
576
694
|
"README.md": readme
|
|
577
695
|
};
|
|
578
696
|
}
|
|
@@ -638,6 +756,6 @@ export {
|
|
|
638
756
|
SCAFFOLD_CAPABILITIES,
|
|
639
757
|
scaffoldExtensionProject
|
|
640
758
|
};
|
|
641
|
-
//# sourceMappingURL=chunk-
|
|
759
|
+
//# sourceMappingURL=chunk-NJ73ALW2.js.map
|
|
642
760
|
|
|
643
|
-
//# debugId=
|
|
761
|
+
//# debugId=e68ba064-77cc-5c36-bb28-275d9fe97142
|