@unbrained/pm-cli 2026.7.8 → 2026.7.10
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 +30 -0
- package/README.md +1 -0
- package/dist/cli/bootstrap-args.js +6 -3
- package/dist/cli/bootstrap-args.js.map +1 -1
- package/dist/cli/commands/close.js +5 -2
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.js +8 -2
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/context.d.ts +23 -0
- package/dist/cli/commands/context.js +96 -7
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/contracts.d.ts +11 -0
- package/dist/cli/commands/contracts.js +112 -15
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.js +4 -2
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +1 -1
- package/dist/cli/commands/extension.js +91 -32
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/init.d.ts +19 -3
- package/dist/cli/commands/init.js +57 -24
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/list.d.ts +4 -0
- package/dist/cli/commands/list.js +32 -3
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/next.d.ts +3 -1
- package/dist/cli/commands/next.js +19 -7
- package/dist/cli/commands/next.js.map +1 -1
- package/dist/cli/commands/update.d.ts +32 -1
- package/dist/cli/commands/update.js +37 -10
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/register-list-query.js +10 -4
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-operations.js +4 -2
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +11 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.js +4 -2
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/append-G7NGOQVU.js +11 -0
- package/dist/cli-bundle/chunks/{append-RSPHC423.js → append-SIECQAPH.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-CGDUIPJL.js → chunk-22PW73KV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ML27MHNM.js → chunk-2RW5DWHQ.js} +98 -22
- package/dist/cli-bundle/chunks/chunk-2RW5DWHQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GO2X6ZRB.js → chunk-35U3AVRY.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-4I7KS5ES.js → chunk-3JFQRPOI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NRMDT4OV.js → chunk-3THCOPYI.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-D6J5673C.js → chunk-4BINCIRM.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-D63PEJTB.js → chunk-4P2GYOM5.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-LHDHS4Z6.js → chunk-4QE5HOJY.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-5VAZHYVQ.js → chunk-56J3MPGE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UCRYCT5M.js → chunk-5BFBDJ4R.js} +38 -16
- package/dist/cli-bundle/chunks/chunk-5BFBDJ4R.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IINCZYM3.js → chunk-62ECRG6J.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EYPIUFWJ.js → chunk-62KPBB2W.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-3FUXM574.js → chunk-6MK6M35B.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-XN5BEN2B.js → chunk-6PBZBIS6.js} +35 -8
- package/dist/cli-bundle/chunks/chunk-6PBZBIS6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GQOKFX2G.js → chunk-6WIP52LQ.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-GLMJLBLR.js → chunk-75NAGPEL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6TD5QGIB.js → chunk-77CWXIAC.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3FRNNVWY.js → chunk-7S2UC7S6.js} +427 -133
- package/dist/cli-bundle/chunks/chunk-7S2UC7S6.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PAWPLIWW.js → chunk-7THLDY3D.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-QJZM5WO5.js → chunk-7TRCAREE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EEJKHF7M.js → chunk-7TRVVYPI.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-PJPZTE7P.js → chunk-A62N3BM3.js} +8 -6
- package/dist/cli-bundle/chunks/chunk-A62N3BM3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-TU5P744I.js → chunk-A7DJG5EF.js} +55 -6
- package/dist/cli-bundle/chunks/chunk-A7DJG5EF.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZMOPZFVT.js → chunk-AD4HJKQZ.js} +49 -7
- package/dist/cli-bundle/chunks/chunk-AD4HJKQZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7QKSLAHB.js → chunk-AIWGQK6K.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P2WE5KCU.js → chunk-AKCHJXJ4.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-KFL3XHMA.js → chunk-AYPXY3HF.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RL24NAUX.js → chunk-B7FCPO65.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-4OCWJ2AP.js → chunk-BC7QBM2A.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-LD2NBQ5T.js → chunk-BST7GFIX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GE44TQMC.js → chunk-CUBPPDDF.js} +145 -62
- package/dist/cli-bundle/chunks/chunk-CUBPPDDF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FJR2S7S4.js → chunk-CYBW4HK7.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-7UCBLJDF.js → chunk-DDF7UMVV.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YQEKE4FO.js → chunk-DLHFJZ2S.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-PCBZ2VJD.js → chunk-DMD2TENU.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-SCJPFQQT.js → chunk-DN67YDFH.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-7TBUV7XS.js → chunk-DNHILSD7.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-FFB3WITE.js → chunk-DT6NDP53.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-G4FKP4ID.js → chunk-DWGHHSDC.js} +9 -7
- package/dist/cli-bundle/chunks/chunk-DWGHHSDC.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-3V5C7PUH.js → chunk-DYUAQVDK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MCH6IKK7.js → chunk-E2RJZQNW.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6ZKDMEVT.js → chunk-ECXJ7OHI.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-LG4N6YOK.js → chunk-ESXG6VFX.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-TR2C6V5T.js → chunk-EXG6XTJC.js} +101 -25
- package/dist/cli-bundle/chunks/chunk-EXG6XTJC.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-BPJ5NYSJ.js → chunk-F7UA74OZ.js} +54 -7
- package/dist/cli-bundle/chunks/chunk-F7UA74OZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GSQVQINP.js → chunk-FBD2WUNS.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YSRXFGNV.js → chunk-FSD7W7Y2.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-JYVPLGOW.js → chunk-FWL5XVYI.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-KMXVZ2P7.js → chunk-FYMHD6VX.js} +122 -27
- package/dist/cli-bundle/chunks/chunk-FYMHD6VX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-SIQGG335.js → chunk-GMNCW27N.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-3SHDAKMF.js → chunk-GPPWUJMR.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-W2VFNVSJ.js → chunk-H3HKQXQJ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UIHDZS6X.js → chunk-HFQ7QQZL.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-Z6RLSNUX.js → chunk-HLUB7G6J.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ASMRSIDX.js → chunk-HWUIK7YL.js} +121 -26
- package/dist/cli-bundle/chunks/chunk-HWUIK7YL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-U72GF3I2.js → chunk-INAZHXOI.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-INOWVPUD.js → chunk-J3ELHLOJ.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-2BVD4ZD2.js → chunk-J3FDNQWM.js} +4 -3
- package/dist/cli-bundle/chunks/chunk-J3FDNQWM.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UH6VFRV6.js → chunk-J3Z2JMDV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-HI27UADG.js → chunk-JDEXIVKQ.js} +372 -20
- package/dist/cli-bundle/chunks/chunk-JDEXIVKQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-MYHFZNBO.js → chunk-JFOBTM4D.js} +8 -8
- package/dist/cli-bundle/chunks/{chunk-J6AD3GWC.js → chunk-JNELC5UO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-YUCKM3MD.js → chunk-JQ5NB6O2.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3UXIMY62.js → chunk-KFC6X4PI.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-C3YU3TXX.js → chunk-L2SWAZ3S.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QLEH6FTQ.js → chunk-LVVZLEW5.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-RFHLRMLQ.js → chunk-M66PC7JI.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-UVFJSKTF.js → chunk-M7DWRMNY.js} +10 -7
- package/dist/cli-bundle/chunks/chunk-M7DWRMNY.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UEATYUZW.js → chunk-M7JYEBPT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Z2JQH2MG.js → chunk-MQ632QRB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IYRG5AEC.js → chunk-N7N3PUUP.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-3YJDIJIE.js → chunk-NPJLTZQZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-TUDAYIO7.js → chunk-NQTIOKHL.js} +12 -10
- package/dist/cli-bundle/chunks/{chunk-TUDAYIO7.js.map → chunk-NQTIOKHL.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-BFNFTHWQ.js → chunk-O67XP4FD.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-XPSGJ4IV.js → chunk-OVYXSZOQ.js} +11 -9
- package/dist/cli-bundle/chunks/{chunk-XPSGJ4IV.js.map → chunk-OVYXSZOQ.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-FOJEBRDD.js → chunk-P7PDLLCE.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-SN5X5GTU.js → chunk-PEACKWHL.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-HZZ3AC27.js → chunk-PFRGQZG2.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-Q3CFSOQZ.js → chunk-PMU2OJ3N.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-5STY7NVM.js → chunk-PUMTJMMF.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-K52C6YPA.js → chunk-QTJCMK2S.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-6FU5BVRB.js → chunk-RAE2SLNO.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YR5R4FMQ.js → chunk-RYA7QE7B.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-TTCJCKUJ.js → chunk-SL337EYZ.js} +379 -20
- package/dist/cli-bundle/chunks/chunk-SL337EYZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RDJXIAJB.js → chunk-SMKQFGDI.js} +9 -6
- package/dist/cli-bundle/chunks/chunk-SMKQFGDI.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UFNFHCAC.js → chunk-SWQMU4AD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MFLLULHU.js → chunk-TB2CZJAQ.js} +5 -4
- package/dist/cli-bundle/chunks/chunk-TB2CZJAQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-WVEMZZCR.js → chunk-TEKAGPZV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-JH5XDDYS.js → chunk-TM5E2IED.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-C6XSTACC.js → chunk-TTRL5GE6.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AEOFBBWO.js → chunk-UA2VI62P.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-6RR4XM5H.js → chunk-UYK26VRP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CXH7EMSB.js → chunk-VBDQTL3Z.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NGBWEYNY.js → chunk-W2FXYQ6D.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-UURYLDDC.js → chunk-WZ7EPGUX.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-2RADY7IB.js → chunk-XES6AVCK.js} +427 -126
- package/dist/cli-bundle/chunks/chunk-XES6AVCK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-QYZMZD4L.js → chunk-XVCB574W.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-F5DDGY6R.js → chunk-XWS3Z57Q.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EP2CKDS7.js → chunk-XXJB4GLJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-NTOOEVJ4.js → chunk-Y5Q4FEE4.js} +47 -7
- package/dist/cli-bundle/chunks/chunk-Y5Q4FEE4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-DUBC6TI3.js → chunk-YA4B6P3L.js} +37 -15
- package/dist/cli-bundle/chunks/chunk-YA4B6P3L.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FL625JJM.js → chunk-Z3R2Z5KW.js} +145 -62
- package/dist/cli-bundle/chunks/chunk-Z3R2Z5KW.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RLHQ3G4M.js → chunk-Z5MFM54X.js} +34 -7
- package/dist/cli-bundle/chunks/chunk-Z5MFM54X.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6WCXSC5V.js → chunk-ZGDJA6WI.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-TKWTJGD6.js → chunk-ZIU35KME.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-YUMNZS3X.js → chunk-ZQ2KEWE7.js} +3 -3
- package/dist/cli-bundle/chunks/close-2NVUCJXV.js +12 -0
- package/dist/cli-bundle/chunks/{close-K6BFI3OX.js → close-BZPS37KL.js} +5 -5
- package/dist/cli-bundle/chunks/{close-many-6NBL3PM4.js → close-many-KKNCGLVR.js} +13 -13
- package/dist/cli-bundle/chunks/close-many-S5WKLWVO.js +22 -0
- package/dist/cli-bundle/chunks/{comments-PLFK5ZKK.js → comments-PV5XG342.js} +7 -7
- package/dist/cli-bundle/chunks/comments-XAM2ADHO.js +13 -0
- package/dist/cli-bundle/chunks/copy-OJ2YNJ7S.js +9 -0
- package/dist/cli-bundle/chunks/{copy-VH3L4MN2.js → copy-OZDYDQUG.js} +4 -4
- package/dist/cli-bundle/chunks/create-5O3QK3PX.js +25 -0
- package/dist/cli-bundle/chunks/{create-TRIBYORN.js → create-WGFKEJAK.js} +9 -9
- package/dist/cli-bundle/chunks/{delete-ZNXUNCZR.js → delete-NTYXFL7A.js} +4 -4
- package/dist/cli-bundle/chunks/delete-V7FPW6JL.js +10 -0
- package/dist/cli-bundle/chunks/{deps-CVDY7FFK.js → deps-7WVENNH3.js} +4 -4
- package/dist/cli-bundle/chunks/{deps-SZXQHV73.js → deps-Z6RD6RWW.js} +4 -4
- package/dist/cli-bundle/chunks/{docs-DR74ITCD.js → docs-2NIRGHAN.js} +6 -6
- package/dist/cli-bundle/chunks/docs-SOY2CMH3.js +14 -0
- package/dist/cli-bundle/chunks/{files-QEFQ2M3H.js → files-4OH2I663.js} +6 -6
- package/dist/cli-bundle/chunks/{files-H5YCA74Z.js → files-5KNAFW67.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-55TRYSNA.js → focus-CLNZWWKW.js} +5 -5
- package/dist/cli-bundle/chunks/focus-JUKXZN3J.js +10 -0
- package/dist/cli-bundle/chunks/{history-compact-JJZ4EFL3.js → history-compact-R3T3XPD4.js} +9 -9
- package/dist/cli-bundle/chunks/history-compact-WKAKPLFQ.js +21 -0
- package/dist/cli-bundle/chunks/{history-redact-TPPUT3A5.js → history-redact-CLJDCBNF.js} +7 -7
- package/dist/cli-bundle/chunks/history-redact-Y67UDKD3.js +17 -0
- package/dist/cli-bundle/chunks/history-repair-2WLXWQAM.js +19 -0
- package/dist/cli-bundle/chunks/{history-repair-J7PIZ6ZP.js → history-repair-LNA7V2VI.js} +9 -9
- package/dist/cli-bundle/chunks/{learnings-KB6BT4NR.js → learnings-2L72KBOE.js} +7 -7
- package/dist/cli-bundle/chunks/learnings-PNK7WUWO.js +13 -0
- package/dist/cli-bundle/chunks/{notes-ZTHXVOKM.js → notes-USDIABZV.js} +7 -7
- package/dist/cli-bundle/chunks/notes-X4SWEJSB.js +13 -0
- package/dist/cli-bundle/chunks/plan-JU454RMZ.js +24 -0
- package/dist/cli-bundle/chunks/{plan-CJPKFRBK.js → plan-U4RWU56Z.js} +10 -10
- package/dist/cli-bundle/chunks/{profile-AQNHXOYA.js → profile-COBKZJUQ.js} +9 -9
- package/dist/cli-bundle/chunks/{profile-HTBFINKQ.js → profile-RKIRCXH7.js} +9 -9
- package/dist/cli-bundle/chunks/{register-list-query-EEF33SUJ.js → register-list-query-2VBANNFM.js} +20 -18
- package/dist/cli-bundle/chunks/register-list-query-2VBANNFM.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-S4FBWIWN.js → register-list-query-4AZEKWZ5.js} +19 -17
- package/dist/cli-bundle/chunks/register-list-query-4AZEKWZ5.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-QFLRBCI7.js → register-mutation-JGXTDEIZ.js} +29 -29
- package/dist/cli-bundle/chunks/{register-mutation-L5Q7AUDN.js → register-mutation-XVO4GGZI.js} +29 -29
- package/dist/cli-bundle/chunks/{register-operations-HDE4FVW4.js → register-operations-4EEFV5KJ.js} +30 -29
- package/dist/cli-bundle/chunks/register-operations-4EEFV5KJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-QDU43FCG.js → register-operations-UV25Z4BN.js} +29 -28
- package/dist/cli-bundle/chunks/register-operations-UV25Z4BN.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-setup-EGMTAXDC.js → register-setup-MMXQQC5J.js} +27 -19
- package/dist/cli-bundle/chunks/register-setup-MMXQQC5J.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-PNIO3L2P.js → register-setup-NQE5MW63.js} +26 -18
- package/dist/cli-bundle/chunks/register-setup-NQE5MW63.js.map +7 -0
- package/dist/cli-bundle/chunks/restore-54HR2EYD.js +15 -0
- package/dist/cli-bundle/chunks/{restore-BTBEZ5CK.js → restore-BINCHJIY.js} +7 -7
- package/dist/cli-bundle/chunks/{schema-DGSTYYQB.js → schema-2JZNEQSG.js} +6 -6
- package/dist/cli-bundle/chunks/{schema-HAIBEE24.js → schema-VV3K5WZI.js} +6 -6
- package/dist/cli-bundle/chunks/{update-MP4XLU56.js → update-DK3GAY5D.js} +12 -12
- package/dist/cli-bundle/chunks/update-OIMRKTX6.js +21 -0
- package/dist/cli-bundle/chunks/update-many-5KI6MW76.js +31 -0
- package/dist/cli-bundle/chunks/update-many-IOLDHIZT.js +35 -0
- package/dist/cli-bundle/main.js +16 -54
- package/dist/cli-bundle/main.js.map +3 -3
- package/dist/cli-bundle/sdk-runtime.js +117 -53
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +142 -58
- package/dist/cli-bundle/sdk.js.map +3 -3
- package/dist/core/extensions/extension-types.d.ts +1 -1
- package/dist/core/extensions/extension-types.js +3 -2
- package/dist/core/extensions/extension-types.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/core/store/front-matter-cache.d.ts +8 -0
- package/dist/core/store/front-matter-cache.js +22 -9
- package/dist/core/store/front-matter-cache.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-mutation-options.js +4 -4
- package/dist/sdk/cli-contracts/commander-mutation-options.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.js +10 -2
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +10 -5
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +12 -4
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +4 -0
- package/dist/sdk/cli-contracts/tool-schema.js +66 -11
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/context-relevance.d.ts +166 -0
- package/dist/sdk/context-relevance.js +299 -0
- package/dist/sdk/context-relevance.js.map +1 -0
- package/dist/sdk/index.d.ts +2 -1
- package/dist/sdk/index.js +4 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime.d.ts +340 -25
- package/dist/sdk/runtime.js +413 -25
- package/dist/sdk/runtime.js.map +1 -1
- package/docs/AGENT_GUIDE.md +3 -0
- package/docs/COMMANDS.md +17 -2
- package/docs/EXTENSIONS.md +3 -1
- package/docs/SDK.md +115 -0
- package/docs/TESTING.md +40 -1
- package/package.json +4 -2
- package/dist/cli-bundle/chunks/append-CDPAYYSB.js +0 -11
- package/dist/cli-bundle/chunks/chunk-2BVD4ZD2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-2RADY7IB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3FRNNVWY.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-ASMRSIDX.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-BPJ5NYSJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-DUBC6TI3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FL625JJM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-G4FKP4ID.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GE44TQMC.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-HI27UADG.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KMXVZ2P7.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MFLLULHU.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ML27MHNM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-NTOOEVJ4.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-PJPZTE7P.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RDJXIAJB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RLHQ3G4M.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TR2C6V5T.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TTCJCKUJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TU5P744I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UCRYCT5M.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UVFJSKTF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XN5BEN2B.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ZMOPZFVT.js.map +0 -1
- package/dist/cli-bundle/chunks/close-E3RLZSP2.js +0 -12
- package/dist/cli-bundle/chunks/close-many-X4YKS3RO.js +0 -22
- package/dist/cli-bundle/chunks/comments-ZNOD5PTV.js +0 -13
- package/dist/cli-bundle/chunks/copy-F7BUFY4J.js +0 -9
- package/dist/cli-bundle/chunks/create-AMBMYP6F.js +0 -25
- package/dist/cli-bundle/chunks/delete-6KQHZYIP.js +0 -10
- package/dist/cli-bundle/chunks/docs-WCVYY6I7.js +0 -14
- package/dist/cli-bundle/chunks/focus-N2QGNS5D.js +0 -10
- package/dist/cli-bundle/chunks/history-compact-GWQ4UOEI.js +0 -21
- package/dist/cli-bundle/chunks/history-redact-4GJOLXCM.js +0 -17
- package/dist/cli-bundle/chunks/history-repair-HVCVCGUF.js +0 -19
- package/dist/cli-bundle/chunks/learnings-YYY3U2Y7.js +0 -13
- package/dist/cli-bundle/chunks/notes-BGG7VL72.js +0 -13
- package/dist/cli-bundle/chunks/plan-MK2QY3GA.js +0 -24
- package/dist/cli-bundle/chunks/register-list-query-EEF33SUJ.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-S4FBWIWN.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-HDE4FVW4.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-QDU43FCG.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-EGMTAXDC.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-PNIO3L2P.js.map +0 -7
- package/dist/cli-bundle/chunks/restore-EX4UUZL6.js +0 -15
- package/dist/cli-bundle/chunks/update-SDIRJGSY.js +0 -21
- package/dist/cli-bundle/chunks/update-many-34AIU6W7.js +0 -31
- package/dist/cli-bundle/chunks/update-many-JUPCNOKV.js +0 -35
- /package/dist/cli-bundle/chunks/{append-CDPAYYSB.js.map → append-G7NGOQVU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-RSPHC423.js.map → append-SIECQAPH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CGDUIPJL.js.map → chunk-22PW73KV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GO2X6ZRB.js.map → chunk-35U3AVRY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4I7KS5ES.js.map → chunk-3JFQRPOI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NRMDT4OV.js.map → chunk-3THCOPYI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D6J5673C.js.map → chunk-4BINCIRM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D63PEJTB.js.map → chunk-4P2GYOM5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LHDHS4Z6.js.map → chunk-4QE5HOJY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5VAZHYVQ.js.map → chunk-56J3MPGE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IINCZYM3.js.map → chunk-62ECRG6J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EYPIUFWJ.js.map → chunk-62KPBB2W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3FUXM574.js.map → chunk-6MK6M35B.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GQOKFX2G.js.map → chunk-6WIP52LQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GLMJLBLR.js.map → chunk-75NAGPEL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6TD5QGIB.js.map → chunk-77CWXIAC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PAWPLIWW.js.map → chunk-7THLDY3D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QJZM5WO5.js.map → chunk-7TRCAREE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EEJKHF7M.js.map → chunk-7TRVVYPI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7QKSLAHB.js.map → chunk-AIWGQK6K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P2WE5KCU.js.map → chunk-AKCHJXJ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KFL3XHMA.js.map → chunk-AYPXY3HF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RL24NAUX.js.map → chunk-B7FCPO65.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4OCWJ2AP.js.map → chunk-BC7QBM2A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LD2NBQ5T.js.map → chunk-BST7GFIX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FJR2S7S4.js.map → chunk-CYBW4HK7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7UCBLJDF.js.map → chunk-DDF7UMVV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQEKE4FO.js.map → chunk-DLHFJZ2S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-PCBZ2VJD.js.map → chunk-DMD2TENU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SCJPFQQT.js.map → chunk-DN67YDFH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-7TBUV7XS.js.map → chunk-DNHILSD7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FFB3WITE.js.map → chunk-DT6NDP53.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3V5C7PUH.js.map → chunk-DYUAQVDK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MCH6IKK7.js.map → chunk-E2RJZQNW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ZKDMEVT.js.map → chunk-ECXJ7OHI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LG4N6YOK.js.map → chunk-ESXG6VFX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GSQVQINP.js.map → chunk-FBD2WUNS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YSRXFGNV.js.map → chunk-FSD7W7Y2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JYVPLGOW.js.map → chunk-FWL5XVYI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SIQGG335.js.map → chunk-GMNCW27N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3SHDAKMF.js.map → chunk-GPPWUJMR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W2VFNVSJ.js.map → chunk-H3HKQXQJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UIHDZS6X.js.map → chunk-HFQ7QQZL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z6RLSNUX.js.map → chunk-HLUB7G6J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-U72GF3I2.js.map → chunk-INAZHXOI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-INOWVPUD.js.map → chunk-J3ELHLOJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UH6VFRV6.js.map → chunk-J3Z2JMDV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MYHFZNBO.js.map → chunk-JFOBTM4D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-J6AD3GWC.js.map → chunk-JNELC5UO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YUCKM3MD.js.map → chunk-JQ5NB6O2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3UXIMY62.js.map → chunk-KFC6X4PI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C3YU3TXX.js.map → chunk-L2SWAZ3S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QLEH6FTQ.js.map → chunk-LVVZLEW5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RFHLRMLQ.js.map → chunk-M66PC7JI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UEATYUZW.js.map → chunk-M7JYEBPT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z2JQH2MG.js.map → chunk-MQ632QRB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IYRG5AEC.js.map → chunk-N7N3PUUP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3YJDIJIE.js.map → chunk-NPJLTZQZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BFNFTHWQ.js.map → chunk-O67XP4FD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FOJEBRDD.js.map → chunk-P7PDLLCE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SN5X5GTU.js.map → chunk-PEACKWHL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HZZ3AC27.js.map → chunk-PFRGQZG2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q3CFSOQZ.js.map → chunk-PMU2OJ3N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5STY7NVM.js.map → chunk-PUMTJMMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K52C6YPA.js.map → chunk-QTJCMK2S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6FU5BVRB.js.map → chunk-RAE2SLNO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YR5R4FMQ.js.map → chunk-RYA7QE7B.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UFNFHCAC.js.map → chunk-SWQMU4AD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WVEMZZCR.js.map → chunk-TEKAGPZV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JH5XDDYS.js.map → chunk-TM5E2IED.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-C6XSTACC.js.map → chunk-TTRL5GE6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AEOFBBWO.js.map → chunk-UA2VI62P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6RR4XM5H.js.map → chunk-UYK26VRP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CXH7EMSB.js.map → chunk-VBDQTL3Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NGBWEYNY.js.map → chunk-W2FXYQ6D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UURYLDDC.js.map → chunk-WZ7EPGUX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QYZMZD4L.js.map → chunk-XVCB574W.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F5DDGY6R.js.map → chunk-XWS3Z57Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EP2CKDS7.js.map → chunk-XXJB4GLJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6WCXSC5V.js.map → chunk-ZGDJA6WI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TKWTJGD6.js.map → chunk-ZIU35KME.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YUMNZS3X.js.map → chunk-ZQ2KEWE7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-E3RLZSP2.js.map → close-2NVUCJXV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-K6BFI3OX.js.map → close-BZPS37KL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-6NBL3PM4.js.map → close-many-KKNCGLVR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-X4YKS3RO.js.map → close-many-S5WKLWVO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-PLFK5ZKK.js.map → comments-PV5XG342.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-ZNOD5PTV.js.map → comments-XAM2ADHO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-F7BUFY4J.js.map → copy-OJ2YNJ7S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-VH3L4MN2.js.map → copy-OZDYDQUG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-AMBMYP6F.js.map → create-5O3QK3PX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-TRIBYORN.js.map → create-WGFKEJAK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ZNXUNCZR.js.map → delete-NTYXFL7A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-6KQHZYIP.js.map → delete-V7FPW6JL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-CVDY7FFK.js.map → deps-7WVENNH3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-SZXQHV73.js.map → deps-Z6RD6RWW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-DR74ITCD.js.map → docs-2NIRGHAN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-WCVYY6I7.js.map → docs-SOY2CMH3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-QEFQ2M3H.js.map → files-4OH2I663.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-H5YCA74Z.js.map → files-5KNAFW67.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-55TRYSNA.js.map → focus-CLNZWWKW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-N2QGNS5D.js.map → focus-JUKXZN3J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-JJZ4EFL3.js.map → history-compact-R3T3XPD4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-GWQ4UOEI.js.map → history-compact-WKAKPLFQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-TPPUT3A5.js.map → history-redact-CLJDCBNF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-4GJOLXCM.js.map → history-redact-Y67UDKD3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-HVCVCGUF.js.map → history-repair-2WLXWQAM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-J7PIZ6ZP.js.map → history-repair-LNA7V2VI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-KB6BT4NR.js.map → learnings-2L72KBOE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-YYY3U2Y7.js.map → learnings-PNK7WUWO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-ZTHXVOKM.js.map → notes-USDIABZV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-BGG7VL72.js.map → notes-X4SWEJSB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-MK2QY3GA.js.map → plan-JU454RMZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-CJPKFRBK.js.map → plan-U4RWU56Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-AQNHXOYA.js.map → profile-COBKZJUQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-HTBFINKQ.js.map → profile-RKIRCXH7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-QFLRBCI7.js.map → register-mutation-JGXTDEIZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{register-mutation-L5Q7AUDN.js.map → register-mutation-XVO4GGZI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-EX4UUZL6.js.map → restore-54HR2EYD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-BTBEZ5CK.js.map → restore-BINCHJIY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-DGSTYYQB.js.map → schema-2JZNEQSG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-HAIBEE24.js.map → schema-VV3K5WZI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-MP4XLU56.js.map → update-DK3GAY5D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-SDIRJGSY.js.map → update-OIMRKTX6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-34AIU6W7.js.map → update-many-5KI6MW76.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-JUPCNOKV.js.map → update-many-IOLDHIZT.js.map} +0 -0
|
@@ -4,40 +4,42 @@ import {
|
|
|
4
4
|
normalizeManagedDirectoryName,
|
|
5
5
|
normalizeStringList,
|
|
6
6
|
parseExtensionManifest,
|
|
7
|
+
renderPmCommand,
|
|
7
8
|
validateExtensionDirectory
|
|
8
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A7DJG5EF.js";
|
|
9
10
|
import {
|
|
10
11
|
describeExtensionActivation,
|
|
11
12
|
renderExtensionSurfaceMarkdown
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3JFQRPOI.js";
|
|
13
14
|
import {
|
|
14
15
|
ensureTypeFolderScaffold
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WZ7EPGUX.js";
|
|
16
17
|
import {
|
|
17
18
|
TYPE_PRESET_NAMES,
|
|
18
19
|
normalizeTypePresetName,
|
|
19
20
|
resolveTypePresetDefinitions
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VBDQTL3Z.js";
|
|
21
22
|
import {
|
|
22
23
|
PM_CORE_COMMAND_NAMES
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-EXG6XTJC.js";
|
|
24
25
|
import {
|
|
25
26
|
parseItemTypesFile,
|
|
26
27
|
serializeItemTypesFile,
|
|
27
28
|
upsertItemType
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DDF7UMVV.js";
|
|
29
30
|
import {
|
|
30
31
|
splitCommaList
|
|
31
32
|
} from "./chunk-5HIZDR5A.js";
|
|
32
33
|
import {
|
|
33
34
|
PmCliError,
|
|
35
|
+
createSerialQueue,
|
|
34
36
|
getActiveExtensionRegistrations,
|
|
35
37
|
normalizePrefix,
|
|
36
38
|
nowIso,
|
|
37
39
|
readSettings,
|
|
38
40
|
runActiveOnWriteHooks,
|
|
39
41
|
writeSettings
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-F7UA74OZ.js";
|
|
41
43
|
import {
|
|
42
44
|
DEFAULT_RUNTIME_SCHEMA_FILE_PATHS,
|
|
43
45
|
EXIT_CODE,
|
|
@@ -65,7 +67,7 @@ import {
|
|
|
65
67
|
resolvePmPackageRootFromModule,
|
|
66
68
|
resolvePmRoot,
|
|
67
69
|
writeFileAtomic
|
|
68
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-J3FDNQWM.js";
|
|
69
71
|
|
|
70
72
|
// dist/core/packages/manifest.js
|
|
71
73
|
import fs from "node:fs/promises";
|
|
@@ -2527,6 +2529,7 @@ import { execFile as execFile2 } from "node:child_process";
|
|
|
2527
2529
|
import fs6 from "node:fs/promises";
|
|
2528
2530
|
import os2 from "node:os";
|
|
2529
2531
|
import path6 from "node:path";
|
|
2532
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
2530
2533
|
import { promisify as promisify2 } from "node:util";
|
|
2531
2534
|
|
|
2532
2535
|
// dist/cli/commands/extension/managed-state.js
|
|
@@ -4048,7 +4051,7 @@ function buildDoctorConsistencySummary(scope, installedExtensions, loadedExtensi
|
|
|
4048
4051
|
!(function() {
|
|
4049
4052
|
try {
|
|
4050
4053
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
4051
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
4054
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "87a4158d-15a1-5df7-8893-c55bae10a16a");
|
|
4052
4055
|
} catch (e2) {
|
|
4053
4056
|
}
|
|
4054
4057
|
})();
|
|
@@ -4607,6 +4610,7 @@ async function listInstalledExtensions(extensionsRoot, scope, settings, state) {
|
|
|
4607
4610
|
warnings: warnings.sort((left, right) => left.localeCompare(right))
|
|
4608
4611
|
};
|
|
4609
4612
|
}
|
|
4613
|
+
var extensionRuntimeProbeQueue = createSerialQueue();
|
|
4610
4614
|
function summarizeRuntimeCommandPathsForExtension(extensionName, installed) {
|
|
4611
4615
|
const normalizedName = normalizeExtensionNameForMatch(extensionName);
|
|
4612
4616
|
const entry = installed.find((candidate) => normalizeExtensionNameForMatch(candidate.name) === normalizedName);
|
|
@@ -4624,15 +4628,21 @@ function resolveCommandDiscoveryPackageName(extensionName, source) {
|
|
|
4624
4628
|
}
|
|
4625
4629
|
return extensionName;
|
|
4626
4630
|
}
|
|
4627
|
-
function buildInstallCommandDiscovery(extensionName, source, commandSummary) {
|
|
4631
|
+
function buildInstallCommandDiscovery(extensionName, source, commandSummary, activationFailure) {
|
|
4628
4632
|
const helpCommands = commandSummary.command_paths.map((commandPath) => `pm ${commandPath} --help`);
|
|
4633
|
+
const sdkDependencyMissing = activationFailure?.error.toLowerCase().includes("@unbrained/pm-cli") === true;
|
|
4634
|
+
const nextSteps = commandSummary.command_paths.length > 0 ? [...helpCommands] : ["Run pm package doctor --project --detail deep if expected package commands are missing."];
|
|
4635
|
+
if (sdkDependencyMissing) {
|
|
4636
|
+
nextSteps.unshift("Install @unbrained/pm-cli in the target workspace so declarative package runtime imports resolve, then reinstall the package.");
|
|
4637
|
+
}
|
|
4629
4638
|
return {
|
|
4630
4639
|
package_name: resolveCommandDiscoveryPackageName(extensionName, source),
|
|
4631
4640
|
extension_name: extensionName,
|
|
4632
4641
|
command_paths: commandSummary.command_paths,
|
|
4633
4642
|
action_paths: commandSummary.action_paths,
|
|
4634
4643
|
help_commands: helpCommands,
|
|
4635
|
-
next_steps:
|
|
4644
|
+
next_steps: nextSteps,
|
|
4645
|
+
...sdkDependencyMissing ? { sdk_dependency_status: "missing" } : {}
|
|
4636
4646
|
};
|
|
4637
4647
|
}
|
|
4638
4648
|
function summarizeActivationFailureForDiagnostics(failure) {
|
|
@@ -4667,24 +4677,46 @@ function resolveInstallRuntimeActivationStatus(extensionName, scope, runtimeInst
|
|
|
4667
4677
|
return runtimeInstalledExtension?.activation_status ?? (installActivationFailure ? "failed" : "unknown");
|
|
4668
4678
|
}
|
|
4669
4679
|
async function probeRuntimeCommandPathsForInstall(pmRoot, settings, refreshedInstalled, global2) {
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4680
|
+
return extensionRuntimeProbeQueue.enqueue(async () => {
|
|
4681
|
+
const originalPackageRoot = process.env.PM_CLI_PACKAGE_ROOT;
|
|
4682
|
+
process.env.PM_CLI_PACKAGE_ROOT = path6.resolve(path6.dirname(fileURLToPath2(import.meta.url)), "../../..");
|
|
4683
|
+
try {
|
|
4684
|
+
const loadResult = await loadExtensions({
|
|
4685
|
+
pmRoot,
|
|
4686
|
+
settings,
|
|
4687
|
+
cwd: process.cwd(),
|
|
4688
|
+
noExtensions: global2.noExtensions === true,
|
|
4689
|
+
reload_token: nextExtensionReloadToken(),
|
|
4690
|
+
cache_bust: true
|
|
4691
|
+
});
|
|
4692
|
+
const activationResult = await activateExtensions({
|
|
4693
|
+
...loadResult,
|
|
4694
|
+
loaded: loadResult.loaded
|
|
4695
|
+
});
|
|
4696
|
+
const runtimeFailures = [
|
|
4697
|
+
...loadResult.failed.map((failure) => ({
|
|
4698
|
+
layer: failure.layer,
|
|
4699
|
+
name: failure.name,
|
|
4700
|
+
entry_path: failure.entry_path,
|
|
4701
|
+
error: failure.error
|
|
4702
|
+
})),
|
|
4703
|
+
...collectActivationFailureDiagnostics(activationResult.failed)
|
|
4704
|
+
];
|
|
4705
|
+
return {
|
|
4706
|
+
installed: applyDoctorRuntimeActivationState(refreshedInstalled, loadResult, activationResult),
|
|
4707
|
+
warnings: [...loadResult.warnings, ...activationResult.warnings],
|
|
4708
|
+
activation_failures: runtimeFailures,
|
|
4709
|
+
extensions_disabled: loadResult.disabled_by_flag,
|
|
4710
|
+
item_type_registrations: activationResult.registrations.item_types
|
|
4711
|
+
};
|
|
4712
|
+
} finally {
|
|
4713
|
+
if (originalPackageRoot === void 0) {
|
|
4714
|
+
delete process.env.PM_CLI_PACKAGE_ROOT;
|
|
4715
|
+
} else {
|
|
4716
|
+
process.env.PM_CLI_PACKAGE_ROOT = originalPackageRoot;
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4681
4719
|
});
|
|
4682
|
-
return {
|
|
4683
|
-
installed: applyDoctorRuntimeActivationState(refreshedInstalled, loadResult, activationResult),
|
|
4684
|
-
warnings: [...loadResult.warnings, ...activationResult.warnings],
|
|
4685
|
-
activation_failures: collectActivationFailureDiagnostics(activationResult.failed),
|
|
4686
|
-
item_type_registrations: activationResult.registrations.item_types
|
|
4687
|
-
};
|
|
4688
4720
|
}
|
|
4689
4721
|
async function checkGithubUpdate(source, gitCommandRunner = runGitCommand) {
|
|
4690
4722
|
const checkedAt = nowIso();
|
|
@@ -4944,9 +4976,9 @@ async function runExtension(target, options, global2) {
|
|
|
4944
4976
|
const scope = resolveScope(options);
|
|
4945
4977
|
const resolvedRoots = resolveExtensionRootsForScope(scope, global2);
|
|
4946
4978
|
const warnings = [];
|
|
4947
|
-
const withResult = (details) => {
|
|
4979
|
+
const withResult = (details, ok = true) => {
|
|
4948
4980
|
const result = {
|
|
4949
|
-
ok
|
|
4981
|
+
ok,
|
|
4950
4982
|
action,
|
|
4951
4983
|
scope,
|
|
4952
4984
|
roots: action === "catalog" && typeof options.fields === "string" && options.fields.trim().length > 0 ? {
|
|
@@ -5013,6 +5045,7 @@ async function runExtensionInitAction(ctx) {
|
|
|
5013
5045
|
...options.vocabulary === "package" ? [`Install dependencies: cd ${quotedShellTargetPath}, then run "npm install"`] : [
|
|
5014
5046
|
`Install type-check dependencies: cd ${quotedShellTargetPath}, then run "npm install -D typescript @types/node @unbrained/pm-cli"`
|
|
5015
5047
|
],
|
|
5048
|
+
...options.vocabulary === "package" && options.declarative === true ? ["Ensure the target workspace can resolve @unbrained/pm-cli before installing this declarative package."] : [],
|
|
5016
5049
|
`Install the scaffold: ${options.vocabulary === "package" ? "pm install --project" : "pm extension --install --project"} ${quotedTargetPath}`,
|
|
5017
5050
|
`Smoke-test command path: pm ${scaffold.command_name}`,
|
|
5018
5051
|
...options.vocabulary === "package" ? [`Validate the package: cd ${quotedShellTargetPath}, then run "npm run typecheck" and "npm test"`] : [`Type-check the source (optional): cd ${quotedShellTargetPath}, then run "npx tsc --noEmit"`],
|
|
@@ -5159,6 +5192,23 @@ async function performExtensionInstallUnderLock(ctx, input3) {
|
|
|
5159
5192
|
const commandSummary = summarizeRuntimeCommandPathsForExtension(validated.manifest.name, runtimeProbe.installed);
|
|
5160
5193
|
const installActivationFailure = findActivationFailureByName(validated.manifest.name, runtimeProbe.activation_failures, scope);
|
|
5161
5194
|
const runtimeActivationStatus = resolveInstallRuntimeActivationStatus(validated.manifest.name, scope, runtimeProbe.installed, installActivationFailure);
|
|
5195
|
+
const activated = !runtimeProbe.extensions_disabled && runtimeActivationStatus !== "failed";
|
|
5196
|
+
if (!activated) {
|
|
5197
|
+
warnings.push(`extension_install_activation_failed:${scope}:${validated.manifest.name}:${runtimeActivationStatus}`);
|
|
5198
|
+
}
|
|
5199
|
+
const verification = {
|
|
5200
|
+
status: activated ? "ok" : "degraded",
|
|
5201
|
+
target_pm_root: resolvedRoots.pm_root,
|
|
5202
|
+
activation_status: runtimeActivationStatus,
|
|
5203
|
+
activated,
|
|
5204
|
+
registered_commands: commandSummary.command_paths,
|
|
5205
|
+
registered_actions: commandSummary.action_paths,
|
|
5206
|
+
registered_item_types: installedItemTypeDefinitions,
|
|
5207
|
+
health: {
|
|
5208
|
+
status: activated ? "ok" : "degraded",
|
|
5209
|
+
blocking_failure_count: activated ? 0 : 1
|
|
5210
|
+
}
|
|
5211
|
+
};
|
|
5162
5212
|
return withResult({
|
|
5163
5213
|
extension: {
|
|
5164
5214
|
name: validated.manifest.name,
|
|
@@ -5171,18 +5221,19 @@ async function performExtensionInstallUnderLock(ctx, input3) {
|
|
|
5171
5221
|
destination_path: destinationDirectory,
|
|
5172
5222
|
overwritten: destinationExists && !installInPlace,
|
|
5173
5223
|
installed_in_place: installInPlace,
|
|
5174
|
-
activated
|
|
5224
|
+
activated,
|
|
5175
5225
|
settings_changed: activationChanged,
|
|
5176
5226
|
runtime_activation_status: runtimeActivationStatus,
|
|
5177
5227
|
command_paths: commandSummary.command_paths,
|
|
5178
5228
|
action_paths: commandSummary.action_paths,
|
|
5179
|
-
command_discovery: buildInstallCommandDiscovery(validated.manifest.name, sourceRecord, commandSummary),
|
|
5229
|
+
command_discovery: buildInstallCommandDiscovery(validated.manifest.name, sourceRecord, commandSummary, installActivationFailure),
|
|
5230
|
+
verification,
|
|
5180
5231
|
activation_diagnostics: {
|
|
5181
5232
|
failed_count: runtimeProbe.activation_failures.length,
|
|
5182
5233
|
failed: runtimeProbe.activation_failures,
|
|
5183
5234
|
installed_extension_failed: installActivationFailure ?? null
|
|
5184
5235
|
}
|
|
5185
|
-
});
|
|
5236
|
+
}, activated);
|
|
5186
5237
|
}
|
|
5187
5238
|
async function runExtensionInstallAction(ctx) {
|
|
5188
5239
|
const { action, normalizedTarget, resolvedRoots, warnings, options, global: global2, withResult } = ctx;
|
|
@@ -5203,9 +5254,11 @@ async function runExtensionInstallAction(ctx) {
|
|
|
5203
5254
|
for (const entry of packages) {
|
|
5204
5255
|
warnings.push(...entry.result.warnings);
|
|
5205
5256
|
}
|
|
5257
|
+
const installedAll = packages.every((entry) => entry.result.ok);
|
|
5206
5258
|
return withResult({
|
|
5207
|
-
installed_all:
|
|
5208
|
-
installed_count: packages.length,
|
|
5259
|
+
installed_all: installedAll,
|
|
5260
|
+
installed_count: packages.filter((entry) => entry.result.ok).length,
|
|
5261
|
+
failed_count: packages.filter((entry) => !entry.result.ok).length,
|
|
5209
5262
|
packages: packages.map((entry) => ({
|
|
5210
5263
|
alias: entry.alias,
|
|
5211
5264
|
ok: entry.result.ok,
|
|
@@ -5217,9 +5270,12 @@ async function runExtensionInstallAction(ctx) {
|
|
|
5217
5270
|
command_paths: entry.result.details.command_paths,
|
|
5218
5271
|
action_paths: entry.result.details.action_paths,
|
|
5219
5272
|
command_discovery: entry.result.details.command_discovery,
|
|
5273
|
+
verification: entry.result.details.verification,
|
|
5274
|
+
runtime_activation_status: entry.result.details.runtime_activation_status,
|
|
5275
|
+
activation_diagnostics: entry.result.details.activation_diagnostics,
|
|
5220
5276
|
warnings: entry.result.warnings
|
|
5221
5277
|
}))
|
|
5222
|
-
});
|
|
5278
|
+
}, installedAll);
|
|
5223
5279
|
}
|
|
5224
5280
|
const bundledAliasSource = typeof githubOption === "string" ? null : await resolveBundledExtensionAliasSource(explicitSourceInput);
|
|
5225
5281
|
const bundledAliasName = bundledAliasSource === null ? null : explicitSourceInput.trim().toLowerCase();
|
|
@@ -6226,7 +6282,7 @@ async function runInitAgentGuidance(options) {
|
|
|
6226
6282
|
!(function() {
|
|
6227
6283
|
try {
|
|
6228
6284
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
6229
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
6285
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b6aecd92-d6ca-5ef1-9c46-edc4c7fdd332");
|
|
6230
6286
|
} catch (e2) {
|
|
6231
6287
|
}
|
|
6232
6288
|
})();
|
|
@@ -6234,6 +6290,7 @@ function summarizeInitResult(result) {
|
|
|
6234
6290
|
return {
|
|
6235
6291
|
ok: result.ok,
|
|
6236
6292
|
path: result.path,
|
|
6293
|
+
target: result.target,
|
|
6237
6294
|
id_prefix: result.settings.id_prefix,
|
|
6238
6295
|
governance_preset: result.governance_preset,
|
|
6239
6296
|
telemetry: {
|
|
@@ -6306,18 +6363,36 @@ function isPathLikeInitTarget(rawValue) {
|
|
|
6306
6363
|
}
|
|
6307
6364
|
return path8.isAbsolute(trimmed) || trimmed.startsWith(".") || trimmed.includes("/") || trimmed.includes("\\");
|
|
6308
6365
|
}
|
|
6309
|
-
function resolveInitInvocation(cwd, global2, prefixArg) {
|
|
6366
|
+
function resolveInitInvocation(cwd, global2, prefixArg, workspaceArg) {
|
|
6367
|
+
const normalizedWorkspace = workspaceArg?.trim();
|
|
6368
|
+
if (workspaceArg !== void 0 && normalizedWorkspace?.length === 0) {
|
|
6369
|
+
throw new PmCliError("--workspace must not be empty", EXIT_CODE.USAGE);
|
|
6370
|
+
}
|
|
6371
|
+
if (normalizedWorkspace !== void 0) {
|
|
6372
|
+
if (global2.path !== void 0 || isPathLikeInitTarget(prefixArg)) {
|
|
6373
|
+
throw new PmCliError("--workspace cannot be combined with --pm-path/--path or a path-like positional target.", EXIT_CODE.USAGE);
|
|
6374
|
+
}
|
|
6375
|
+
const workspaceRoot = path8.resolve(cwd, normalizedWorkspace);
|
|
6376
|
+
const pmRoot2 = path8.join(workspaceRoot, ".agents", "pm");
|
|
6377
|
+
return {
|
|
6378
|
+
pmRoot: pmRoot2,
|
|
6379
|
+
prefixArg,
|
|
6380
|
+
target: { mode: "workspace-path", tracker_root: pmRoot2, workspace_root: workspaceRoot }
|
|
6381
|
+
};
|
|
6382
|
+
}
|
|
6310
6383
|
if (global2.path === void 0 && isPathLikeInitTarget(prefixArg)) {
|
|
6311
6384
|
const positionalTarget = path8.resolve(cwd, prefixArg.trim());
|
|
6312
6385
|
return {
|
|
6313
6386
|
pmRoot: positionalTarget,
|
|
6314
6387
|
prefixArg: void 0,
|
|
6315
|
-
|
|
6388
|
+
target: { mode: "tracker-path", tracker_root: positionalTarget }
|
|
6316
6389
|
};
|
|
6317
6390
|
}
|
|
6391
|
+
const pmRoot = resolvePmRoot(cwd, global2.path);
|
|
6318
6392
|
return {
|
|
6319
|
-
pmRoot
|
|
6320
|
-
prefixArg
|
|
6393
|
+
pmRoot,
|
|
6394
|
+
prefixArg,
|
|
6395
|
+
target: global2.path === void 0 ? { mode: "workspace-discovery", tracker_root: pmRoot, workspace_root: cwd } : { mode: "tracker-path", tracker_root: pmRoot }
|
|
6321
6396
|
};
|
|
6322
6397
|
}
|
|
6323
6398
|
function normalizeInitAgentGuidanceMode(rawValue) {
|
|
@@ -6404,8 +6479,8 @@ async function isLikelyWorkspaceRoot(candidate) {
|
|
|
6404
6479
|
}
|
|
6405
6480
|
return false;
|
|
6406
6481
|
}
|
|
6407
|
-
async function assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot,
|
|
6408
|
-
if (
|
|
6482
|
+
async function assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot, explicitTrackerTarget, force) {
|
|
6483
|
+
if (!explicitTrackerTarget || force) {
|
|
6409
6484
|
return;
|
|
6410
6485
|
}
|
|
6411
6486
|
if (await pathExists(path8.join(pmRoot, "settings.json"))) {
|
|
@@ -6418,7 +6493,7 @@ async function assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot, global2, forc
|
|
|
6418
6493
|
throw new PmCliError(`Refusing to initialize tracker files directly in workspace root "${pmRoot}".`, EXIT_CODE.USAGE, {
|
|
6419
6494
|
code: "workspace_root_pm_path",
|
|
6420
6495
|
type: "urn:pm-cli:error:workspace_root_pm_path",
|
|
6421
|
-
why: "--pm-path/--path
|
|
6496
|
+
why: "Path-like init targets and --pm-path/--path point at the tracker storage directory itself, not the repository workspace. Point at .agents/pm, use --workspace, or pass --force if you intentionally want root-level tracker files.",
|
|
6422
6497
|
examples: [
|
|
6423
6498
|
`pm --pm-path ${nestedTracker} init --yes`,
|
|
6424
6499
|
"pm init --yes",
|
|
@@ -6673,47 +6748,53 @@ async function ensureInitTypeDirectories(params) {
|
|
|
6673
6748
|
params.createdDirs.push(...scaffold.createdDirs);
|
|
6674
6749
|
params.warnings.push(...scaffold.warnings);
|
|
6675
6750
|
}
|
|
6676
|
-
async function maybeInstallInitBundledPackages(installBundledPackages, global2, warnings) {
|
|
6751
|
+
async function maybeInstallInitBundledPackages(installBundledPackages, global2, pmRoot, warnings) {
|
|
6677
6752
|
if (!installBundledPackages) {
|
|
6678
6753
|
return void 0;
|
|
6679
6754
|
}
|
|
6680
|
-
const packageInstallResult = await runExtension("all", { install: true, project: true }, global2);
|
|
6755
|
+
const packageInstallResult = await runExtension("all", { install: true, project: true }, { ...global2, path: pmRoot });
|
|
6681
6756
|
warnings.push(...packageInstallResult.warnings);
|
|
6682
6757
|
const installedPackages = summarizeInstalledPackages(packageInstallResult);
|
|
6683
|
-
|
|
6684
|
-
|
|
6758
|
+
const failedAliases = installedPackages.packages.filter((entry) => !entry.ok).map((entry) => entry.alias);
|
|
6759
|
+
if (!installedPackages.installed_all || failedAliases.length > 0) {
|
|
6760
|
+
throw new PmCliError(`pm init --with-packages did not install all bundled packages successfully${failedAliases.length > 0 ? `: ${failedAliases.join(", ")}` : "."}`, EXIT_CODE.GENERIC_FAILURE);
|
|
6685
6761
|
}
|
|
6686
6762
|
return installedPackages;
|
|
6687
6763
|
}
|
|
6688
6764
|
function buildInitNextSteps(params) {
|
|
6765
|
+
const pmCommand = (args) => renderPmCommand([
|
|
6766
|
+
...params.target.mode === "workspace-discovery" ? [] : ["--pm-path", params.target.tracker_root],
|
|
6767
|
+
...args
|
|
6768
|
+
]);
|
|
6689
6769
|
const nextSteps = [
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6770
|
+
`Create your first item: ${pmCommand(["create", "--type", "Task", "--title", "<title>"])}`,
|
|
6771
|
+
`List active items: ${pmCommand(["list"])}`,
|
|
6772
|
+
`Get agent-friendly project context: ${pmCommand(["context"])}`
|
|
6693
6773
|
];
|
|
6694
6774
|
if (!params.installBundledPackages) {
|
|
6695
|
-
nextSteps.push(
|
|
6696
|
-
nextSteps.push(
|
|
6775
|
+
nextSteps.push(`Add optional packages for richer workflows: ${pmCommand(["install", "calendar", "--project"])}, ${pmCommand(["install", "templates", "--project"])}, ${pmCommand(["install", "guide-shell", "--project"])}`);
|
|
6776
|
+
nextSteps.push(`Or install everything bundled: ${pmCommand(["init", "--with-packages"])} (idempotent on re-run)`);
|
|
6697
6777
|
} else {
|
|
6698
|
-
nextSteps.push(
|
|
6778
|
+
nextSteps.push(`Explore newly-available commands: ${pmCommand(["cal"])}, ${pmCommand(["templates"])}, ${pmCommand(["guide"])}`);
|
|
6699
6779
|
}
|
|
6700
6780
|
if (params.registeredTypePreset) {
|
|
6701
|
-
nextSteps.push(`Inspect registered preset types:
|
|
6781
|
+
nextSteps.push(`Inspect registered preset types: ${pmCommand(["schema", "list"])}, ${pmCommand(["schema", "show", params.registeredTypePreset.registered[0] ?? params.registeredTypePreset.updated[0]])}`);
|
|
6702
6782
|
}
|
|
6703
6783
|
nextSteps.push("Set PM_AUTHOR=<your-agent-id> so mutations attribute to the right caller.");
|
|
6704
6784
|
for (const guidanceNextStep of params.agentGuidanceNextSteps) {
|
|
6705
|
-
|
|
6706
|
-
|
|
6785
|
+
const scopedGuidance = params.target.mode === "workspace-discovery" ? guidanceNextStep : guidanceNextStep.replace(/\bpm (?=[a-z])/g, () => `${pmCommand([])} `);
|
|
6786
|
+
if (!nextSteps.includes(scopedGuidance)) {
|
|
6787
|
+
nextSteps.push(scopedGuidance);
|
|
6707
6788
|
}
|
|
6708
6789
|
}
|
|
6709
6790
|
return nextSteps;
|
|
6710
6791
|
}
|
|
6711
6792
|
async function runInit(prefixArg, global2, options = {}) {
|
|
6712
6793
|
const cwd = process.cwd();
|
|
6713
|
-
const invocation = resolveInitInvocation(cwd, global2, prefixArg);
|
|
6794
|
+
const invocation = resolveInitInvocation(cwd, global2, prefixArg, options.workspace);
|
|
6714
6795
|
const pmRoot = invocation.pmRoot;
|
|
6715
6796
|
prefixArg = invocation.prefixArg;
|
|
6716
|
-
await assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot,
|
|
6797
|
+
await assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot, invocation.target.mode === "tracker-path", options.force === true);
|
|
6717
6798
|
const createdDirs = [];
|
|
6718
6799
|
const warnings = [];
|
|
6719
6800
|
const baseDirs = await ensureInitDirectories(pmRoot, PM_REQUIRED_SUBDIRS);
|
|
@@ -6753,15 +6834,17 @@ async function runInit(prefixArg, global2, options = {}) {
|
|
|
6753
6834
|
settings = await readSettings(pmRoot);
|
|
6754
6835
|
}
|
|
6755
6836
|
await ensureInitTypeDirectories({ pmRoot, settings, createdDirs, warnings });
|
|
6756
|
-
const installedPackages = await maybeInstallInitBundledPackages(normalizedOptions.installBundledPackages, global2, warnings);
|
|
6837
|
+
const installedPackages = await maybeInstallInitBundledPackages(normalizedOptions.installBundledPackages, global2, pmRoot, warnings);
|
|
6757
6838
|
const nextSteps = buildInitNextSteps({
|
|
6758
6839
|
installBundledPackages: normalizedOptions.installBundledPackages,
|
|
6759
6840
|
registeredTypePreset,
|
|
6760
|
-
agentGuidanceNextSteps: agentGuidance.next_steps
|
|
6841
|
+
agentGuidanceNextSteps: agentGuidance.next_steps,
|
|
6842
|
+
target: invocation.target
|
|
6761
6843
|
});
|
|
6762
6844
|
return {
|
|
6763
6845
|
ok: true,
|
|
6764
6846
|
path: pmRoot,
|
|
6847
|
+
target: invocation.target,
|
|
6765
6848
|
settings,
|
|
6766
6849
|
created_dirs: createdDirs,
|
|
6767
6850
|
warnings,
|
|
@@ -6789,4 +6872,4 @@ export {
|
|
|
6789
6872
|
summarizeInitResult,
|
|
6790
6873
|
runInit
|
|
6791
6874
|
};
|
|
6792
|
-
//# sourceMappingURL=chunk-
|
|
6875
|
+
//# sourceMappingURL=chunk-Z3R2Z5KW.js.map
|