@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,16 +4,16 @@ import {
|
|
|
4
4
|
executeHistoryRewrite,
|
|
5
5
|
resolveHistorySubject,
|
|
6
6
|
writeHistoryRawWithRollback
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TM5E2IED.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveAuthor
|
|
10
10
|
} from "./chunk-T5RRNDA7.js";
|
|
11
11
|
import {
|
|
12
12
|
lifecycleClassifierFromStatusRegistry
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JNELC5UO.js";
|
|
14
14
|
import {
|
|
15
15
|
readHistoryEntries
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZGDJA6WI.js";
|
|
17
17
|
import {
|
|
18
18
|
cloneEmptyReplayDocument,
|
|
19
19
|
historyEntriesToRaw,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
toReplayDocument,
|
|
23
23
|
tryApplyReplayPatch,
|
|
24
24
|
verifyHistoryChain
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-62ECRG6J.js";
|
|
26
26
|
import {
|
|
27
27
|
PmCliError,
|
|
28
28
|
createHistoryEntry,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
readSettings,
|
|
34
34
|
runActiveOnReadHooks,
|
|
35
35
|
runActiveOnWriteHooks
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Y5Q4FEE4.js";
|
|
37
37
|
import {
|
|
38
38
|
EXIT_CODE,
|
|
39
39
|
getSettingsPath,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
resolveItemTypeRegistry,
|
|
43
43
|
resolvePmRoot,
|
|
44
44
|
resolveRuntimeStatusRegistry
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-TB2CZJAQ.js";
|
|
46
46
|
|
|
47
47
|
// dist/cli/commands/history-compact.js
|
|
48
48
|
import fs from "node:fs/promises";
|
|
@@ -544,6 +544,6 @@ export {
|
|
|
544
544
|
assertHistoryCompactTarget,
|
|
545
545
|
runHistoryCompactBulk
|
|
546
546
|
};
|
|
547
|
-
//# sourceMappingURL=chunk-
|
|
547
|
+
//# sourceMappingURL=chunk-BC7QBM2A.js.map
|
|
548
548
|
|
|
549
549
|
//# debugId=066b9461-1946-5b62-8a6f-777da307c9c0
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
getActiveExtensionRegistrations,
|
|
6
6
|
listAllFrontMatterLight,
|
|
7
7
|
readSettings
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Y5Q4FEE4.js";
|
|
9
9
|
import {
|
|
10
10
|
EXIT_CODE,
|
|
11
11
|
getSettingsPath,
|
|
12
12
|
pathExists,
|
|
13
13
|
resolveItemTypeRegistry,
|
|
14
14
|
resolvePmRoot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TB2CZJAQ.js";
|
|
16
16
|
|
|
17
17
|
// dist/cli/commands/deps.js
|
|
18
18
|
var DEPS_FORMAT_VALUES = ["tree", "graph"];
|
|
@@ -215,6 +215,6 @@ export {
|
|
|
215
215
|
DEPS_COLLAPSE_VALUES,
|
|
216
216
|
runDeps
|
|
217
217
|
};
|
|
218
|
-
//# sourceMappingURL=chunk-
|
|
218
|
+
//# sourceMappingURL=chunk-BST7GFIX.js.map
|
|
219
219
|
|
|
220
220
|
//# debugId=7ca68c4d-ec0c-5aed-a5ff-2dd272fb85e7
|
|
@@ -1,45 +1,47 @@
|
|
|
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]="704ef87f-4cbc-5841-bb42-d6cfb02586a7")}catch(e){}}();
|
|
3
3
|
import {
|
|
4
4
|
EXECUTABLE_COMMAND_ALIASES,
|
|
5
5
|
normalizeExtensionNameForMatch,
|
|
6
6
|
normalizeManagedDirectoryName,
|
|
7
7
|
normalizeStringList,
|
|
8
8
|
parseExtensionManifest,
|
|
9
|
+
renderPmCommand,
|
|
9
10
|
validateExtensionDirectory
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AD4HJKQZ.js";
|
|
11
12
|
import {
|
|
12
13
|
describeExtensionActivation,
|
|
13
14
|
renderExtensionSurfaceMarkdown
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MQ632QRB.js";
|
|
15
16
|
import {
|
|
16
17
|
ensureTypeFolderScaffold
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-P7PDLLCE.js";
|
|
18
19
|
import {
|
|
19
20
|
TYPE_PRESET_NAMES,
|
|
20
21
|
normalizeTypePresetName,
|
|
21
22
|
resolveTypePresetDefinitions
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FSD7W7Y2.js";
|
|
23
24
|
import {
|
|
24
25
|
PM_CORE_COMMAND_NAMES
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-2RW5DWHQ.js";
|
|
26
27
|
import {
|
|
27
28
|
parseItemTypesFile,
|
|
28
29
|
serializeItemTypesFile,
|
|
29
30
|
upsertItemType
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AIWGQK6K.js";
|
|
31
32
|
import {
|
|
32
33
|
splitCommaList
|
|
33
34
|
} from "./chunk-P4SESZGT.js";
|
|
34
35
|
import {
|
|
35
36
|
PmCliError,
|
|
37
|
+
createSerialQueue,
|
|
36
38
|
getActiveExtensionRegistrations,
|
|
37
39
|
normalizePrefix,
|
|
38
40
|
nowIso,
|
|
39
41
|
readSettings,
|
|
40
42
|
runActiveOnWriteHooks,
|
|
41
43
|
writeSettings
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Y5Q4FEE4.js";
|
|
43
45
|
import {
|
|
44
46
|
DEFAULT_RUNTIME_SCHEMA_FILE_PATHS,
|
|
45
47
|
EXIT_CODE,
|
|
@@ -67,7 +69,7 @@ import {
|
|
|
67
69
|
resolvePmPackageRootFromModule,
|
|
68
70
|
resolvePmRoot,
|
|
69
71
|
writeFileAtomic
|
|
70
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-TB2CZJAQ.js";
|
|
71
73
|
|
|
72
74
|
// dist/core/packages/manifest.js
|
|
73
75
|
import fs from "node:fs/promises";
|
|
@@ -2508,6 +2510,7 @@ import { execFile as execFile2 } from "node:child_process";
|
|
|
2508
2510
|
import fs6 from "node:fs/promises";
|
|
2509
2511
|
import os2 from "node:os";
|
|
2510
2512
|
import path6 from "node:path";
|
|
2513
|
+
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
2511
2514
|
import { promisify as promisify2 } from "node:util";
|
|
2512
2515
|
|
|
2513
2516
|
// dist/cli/commands/extension/managed-state.js
|
|
@@ -4553,6 +4556,7 @@ async function listInstalledExtensions(extensionsRoot, scope, settings, state) {
|
|
|
4553
4556
|
warnings: warnings.sort((left, right) => left.localeCompare(right))
|
|
4554
4557
|
};
|
|
4555
4558
|
}
|
|
4559
|
+
var extensionRuntimeProbeQueue = createSerialQueue();
|
|
4556
4560
|
function summarizeRuntimeCommandPathsForExtension(extensionName, installed) {
|
|
4557
4561
|
const normalizedName = normalizeExtensionNameForMatch(extensionName);
|
|
4558
4562
|
const entry = installed.find((candidate) => normalizeExtensionNameForMatch(candidate.name) === normalizedName);
|
|
@@ -4570,15 +4574,21 @@ function resolveCommandDiscoveryPackageName(extensionName, source) {
|
|
|
4570
4574
|
}
|
|
4571
4575
|
return extensionName;
|
|
4572
4576
|
}
|
|
4573
|
-
function buildInstallCommandDiscovery(extensionName, source, commandSummary) {
|
|
4577
|
+
function buildInstallCommandDiscovery(extensionName, source, commandSummary, activationFailure) {
|
|
4574
4578
|
const helpCommands = commandSummary.command_paths.map((commandPath) => `pm ${commandPath} --help`);
|
|
4579
|
+
const sdkDependencyMissing = activationFailure?.error.toLowerCase().includes("@unbrained/pm-cli") === true;
|
|
4580
|
+
const nextSteps = commandSummary.command_paths.length > 0 ? [...helpCommands] : ["Run pm package doctor --project --detail deep if expected package commands are missing."];
|
|
4581
|
+
if (sdkDependencyMissing) {
|
|
4582
|
+
nextSteps.unshift("Install @unbrained/pm-cli in the target workspace so declarative package runtime imports resolve, then reinstall the package.");
|
|
4583
|
+
}
|
|
4575
4584
|
return {
|
|
4576
4585
|
package_name: resolveCommandDiscoveryPackageName(extensionName, source),
|
|
4577
4586
|
extension_name: extensionName,
|
|
4578
4587
|
command_paths: commandSummary.command_paths,
|
|
4579
4588
|
action_paths: commandSummary.action_paths,
|
|
4580
4589
|
help_commands: helpCommands,
|
|
4581
|
-
next_steps:
|
|
4590
|
+
next_steps: nextSteps,
|
|
4591
|
+
...sdkDependencyMissing ? { sdk_dependency_status: "missing" } : {}
|
|
4582
4592
|
};
|
|
4583
4593
|
}
|
|
4584
4594
|
function summarizeActivationFailureForDiagnostics(failure) {
|
|
@@ -4613,24 +4623,46 @@ function resolveInstallRuntimeActivationStatus(extensionName, scope, runtimeInst
|
|
|
4613
4623
|
return runtimeInstalledExtension?.activation_status ?? (installActivationFailure ? "failed" : "unknown");
|
|
4614
4624
|
}
|
|
4615
4625
|
async function probeRuntimeCommandPathsForInstall(pmRoot, settings, refreshedInstalled, global) {
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4626
|
+
return extensionRuntimeProbeQueue.enqueue(async () => {
|
|
4627
|
+
const originalPackageRoot = process.env.PM_CLI_PACKAGE_ROOT;
|
|
4628
|
+
process.env.PM_CLI_PACKAGE_ROOT = path6.resolve(path6.dirname(fileURLToPath2(import.meta.url)), "../../..");
|
|
4629
|
+
try {
|
|
4630
|
+
const loadResult = await loadExtensions({
|
|
4631
|
+
pmRoot,
|
|
4632
|
+
settings,
|
|
4633
|
+
cwd: process.cwd(),
|
|
4634
|
+
noExtensions: global.noExtensions === true,
|
|
4635
|
+
reload_token: nextExtensionReloadToken(),
|
|
4636
|
+
cache_bust: true
|
|
4637
|
+
});
|
|
4638
|
+
const activationResult = await activateExtensions({
|
|
4639
|
+
...loadResult,
|
|
4640
|
+
loaded: loadResult.loaded
|
|
4641
|
+
});
|
|
4642
|
+
const runtimeFailures = [
|
|
4643
|
+
...loadResult.failed.map((failure) => ({
|
|
4644
|
+
layer: failure.layer,
|
|
4645
|
+
name: failure.name,
|
|
4646
|
+
entry_path: failure.entry_path,
|
|
4647
|
+
error: failure.error
|
|
4648
|
+
})),
|
|
4649
|
+
...collectActivationFailureDiagnostics(activationResult.failed)
|
|
4650
|
+
];
|
|
4651
|
+
return {
|
|
4652
|
+
installed: applyDoctorRuntimeActivationState(refreshedInstalled, loadResult, activationResult),
|
|
4653
|
+
warnings: [...loadResult.warnings, ...activationResult.warnings],
|
|
4654
|
+
activation_failures: runtimeFailures,
|
|
4655
|
+
extensions_disabled: loadResult.disabled_by_flag,
|
|
4656
|
+
item_type_registrations: activationResult.registrations.item_types
|
|
4657
|
+
};
|
|
4658
|
+
} finally {
|
|
4659
|
+
if (originalPackageRoot === void 0) {
|
|
4660
|
+
delete process.env.PM_CLI_PACKAGE_ROOT;
|
|
4661
|
+
} else {
|
|
4662
|
+
process.env.PM_CLI_PACKAGE_ROOT = originalPackageRoot;
|
|
4663
|
+
}
|
|
4664
|
+
}
|
|
4627
4665
|
});
|
|
4628
|
-
return {
|
|
4629
|
-
installed: applyDoctorRuntimeActivationState(refreshedInstalled, loadResult, activationResult),
|
|
4630
|
-
warnings: [...loadResult.warnings, ...activationResult.warnings],
|
|
4631
|
-
activation_failures: collectActivationFailureDiagnostics(activationResult.failed),
|
|
4632
|
-
item_type_registrations: activationResult.registrations.item_types
|
|
4633
|
-
};
|
|
4634
4666
|
}
|
|
4635
4667
|
async function checkGithubUpdate(source, gitCommandRunner = runGitCommand) {
|
|
4636
4668
|
const checkedAt = nowIso();
|
|
@@ -4890,9 +4922,9 @@ async function runExtension(target, options, global) {
|
|
|
4890
4922
|
const scope = resolveScope(options);
|
|
4891
4923
|
const resolvedRoots = resolveExtensionRootsForScope(scope, global);
|
|
4892
4924
|
const warnings = [];
|
|
4893
|
-
const withResult = (details) => {
|
|
4925
|
+
const withResult = (details, ok = true) => {
|
|
4894
4926
|
const result = {
|
|
4895
|
-
ok
|
|
4927
|
+
ok,
|
|
4896
4928
|
action,
|
|
4897
4929
|
scope,
|
|
4898
4930
|
roots: action === "catalog" && typeof options.fields === "string" && options.fields.trim().length > 0 ? {
|
|
@@ -4959,6 +4991,7 @@ async function runExtensionInitAction(ctx) {
|
|
|
4959
4991
|
...options.vocabulary === "package" ? [`Install dependencies: cd ${quotedShellTargetPath}, then run "npm install"`] : [
|
|
4960
4992
|
`Install type-check dependencies: cd ${quotedShellTargetPath}, then run "npm install -D typescript @types/node @unbrained/pm-cli"`
|
|
4961
4993
|
],
|
|
4994
|
+
...options.vocabulary === "package" && options.declarative === true ? ["Ensure the target workspace can resolve @unbrained/pm-cli before installing this declarative package."] : [],
|
|
4962
4995
|
`Install the scaffold: ${options.vocabulary === "package" ? "pm install --project" : "pm extension --install --project"} ${quotedTargetPath}`,
|
|
4963
4996
|
`Smoke-test command path: pm ${scaffold.command_name}`,
|
|
4964
4997
|
...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"`],
|
|
@@ -5105,6 +5138,23 @@ async function performExtensionInstallUnderLock(ctx, input3) {
|
|
|
5105
5138
|
const commandSummary = summarizeRuntimeCommandPathsForExtension(validated.manifest.name, runtimeProbe.installed);
|
|
5106
5139
|
const installActivationFailure = findActivationFailureByName(validated.manifest.name, runtimeProbe.activation_failures, scope);
|
|
5107
5140
|
const runtimeActivationStatus = resolveInstallRuntimeActivationStatus(validated.manifest.name, scope, runtimeProbe.installed, installActivationFailure);
|
|
5141
|
+
const activated = !runtimeProbe.extensions_disabled && runtimeActivationStatus !== "failed";
|
|
5142
|
+
if (!activated) {
|
|
5143
|
+
warnings.push(`extension_install_activation_failed:${scope}:${validated.manifest.name}:${runtimeActivationStatus}`);
|
|
5144
|
+
}
|
|
5145
|
+
const verification = {
|
|
5146
|
+
status: activated ? "ok" : "degraded",
|
|
5147
|
+
target_pm_root: resolvedRoots.pm_root,
|
|
5148
|
+
activation_status: runtimeActivationStatus,
|
|
5149
|
+
activated,
|
|
5150
|
+
registered_commands: commandSummary.command_paths,
|
|
5151
|
+
registered_actions: commandSummary.action_paths,
|
|
5152
|
+
registered_item_types: installedItemTypeDefinitions,
|
|
5153
|
+
health: {
|
|
5154
|
+
status: activated ? "ok" : "degraded",
|
|
5155
|
+
blocking_failure_count: activated ? 0 : 1
|
|
5156
|
+
}
|
|
5157
|
+
};
|
|
5108
5158
|
return withResult({
|
|
5109
5159
|
extension: {
|
|
5110
5160
|
name: validated.manifest.name,
|
|
@@ -5117,18 +5167,19 @@ async function performExtensionInstallUnderLock(ctx, input3) {
|
|
|
5117
5167
|
destination_path: destinationDirectory,
|
|
5118
5168
|
overwritten: destinationExists && !installInPlace,
|
|
5119
5169
|
installed_in_place: installInPlace,
|
|
5120
|
-
activated
|
|
5170
|
+
activated,
|
|
5121
5171
|
settings_changed: activationChanged,
|
|
5122
5172
|
runtime_activation_status: runtimeActivationStatus,
|
|
5123
5173
|
command_paths: commandSummary.command_paths,
|
|
5124
5174
|
action_paths: commandSummary.action_paths,
|
|
5125
|
-
command_discovery: buildInstallCommandDiscovery(validated.manifest.name, sourceRecord, commandSummary),
|
|
5175
|
+
command_discovery: buildInstallCommandDiscovery(validated.manifest.name, sourceRecord, commandSummary, installActivationFailure),
|
|
5176
|
+
verification,
|
|
5126
5177
|
activation_diagnostics: {
|
|
5127
5178
|
failed_count: runtimeProbe.activation_failures.length,
|
|
5128
5179
|
failed: runtimeProbe.activation_failures,
|
|
5129
5180
|
installed_extension_failed: installActivationFailure ?? null
|
|
5130
5181
|
}
|
|
5131
|
-
});
|
|
5182
|
+
}, activated);
|
|
5132
5183
|
}
|
|
5133
5184
|
async function runExtensionInstallAction(ctx) {
|
|
5134
5185
|
const { action, normalizedTarget, resolvedRoots, warnings, options, global, withResult } = ctx;
|
|
@@ -5149,9 +5200,11 @@ async function runExtensionInstallAction(ctx) {
|
|
|
5149
5200
|
for (const entry of packages) {
|
|
5150
5201
|
warnings.push(...entry.result.warnings);
|
|
5151
5202
|
}
|
|
5203
|
+
const installedAll = packages.every((entry) => entry.result.ok);
|
|
5152
5204
|
return withResult({
|
|
5153
|
-
installed_all:
|
|
5154
|
-
installed_count: packages.length,
|
|
5205
|
+
installed_all: installedAll,
|
|
5206
|
+
installed_count: packages.filter((entry) => entry.result.ok).length,
|
|
5207
|
+
failed_count: packages.filter((entry) => !entry.result.ok).length,
|
|
5155
5208
|
packages: packages.map((entry) => ({
|
|
5156
5209
|
alias: entry.alias,
|
|
5157
5210
|
ok: entry.result.ok,
|
|
@@ -5163,9 +5216,12 @@ async function runExtensionInstallAction(ctx) {
|
|
|
5163
5216
|
command_paths: entry.result.details.command_paths,
|
|
5164
5217
|
action_paths: entry.result.details.action_paths,
|
|
5165
5218
|
command_discovery: entry.result.details.command_discovery,
|
|
5219
|
+
verification: entry.result.details.verification,
|
|
5220
|
+
runtime_activation_status: entry.result.details.runtime_activation_status,
|
|
5221
|
+
activation_diagnostics: entry.result.details.activation_diagnostics,
|
|
5166
5222
|
warnings: entry.result.warnings
|
|
5167
5223
|
}))
|
|
5168
|
-
});
|
|
5224
|
+
}, installedAll);
|
|
5169
5225
|
}
|
|
5170
5226
|
const bundledAliasSource = typeof githubOption === "string" ? null : await resolveBundledExtensionAliasSource(explicitSourceInput);
|
|
5171
5227
|
const bundledAliasName = bundledAliasSource === null ? null : explicitSourceInput.trim().toLowerCase();
|
|
@@ -6166,6 +6222,7 @@ function summarizeInitResult(result) {
|
|
|
6166
6222
|
return {
|
|
6167
6223
|
ok: result.ok,
|
|
6168
6224
|
path: result.path,
|
|
6225
|
+
target: result.target,
|
|
6169
6226
|
id_prefix: result.settings.id_prefix,
|
|
6170
6227
|
governance_preset: result.governance_preset,
|
|
6171
6228
|
telemetry: {
|
|
@@ -6238,18 +6295,36 @@ function isPathLikeInitTarget(rawValue) {
|
|
|
6238
6295
|
}
|
|
6239
6296
|
return path8.isAbsolute(trimmed) || trimmed.startsWith(".") || trimmed.includes("/") || trimmed.includes("\\");
|
|
6240
6297
|
}
|
|
6241
|
-
function resolveInitInvocation(cwd, global, prefixArg) {
|
|
6298
|
+
function resolveInitInvocation(cwd, global, prefixArg, workspaceArg) {
|
|
6299
|
+
const normalizedWorkspace = workspaceArg?.trim();
|
|
6300
|
+
if (workspaceArg !== void 0 && normalizedWorkspace?.length === 0) {
|
|
6301
|
+
throw new PmCliError("--workspace must not be empty", EXIT_CODE.USAGE);
|
|
6302
|
+
}
|
|
6303
|
+
if (normalizedWorkspace !== void 0) {
|
|
6304
|
+
if (global.path !== void 0 || isPathLikeInitTarget(prefixArg)) {
|
|
6305
|
+
throw new PmCliError("--workspace cannot be combined with --pm-path/--path or a path-like positional target.", EXIT_CODE.USAGE);
|
|
6306
|
+
}
|
|
6307
|
+
const workspaceRoot = path8.resolve(cwd, normalizedWorkspace);
|
|
6308
|
+
const pmRoot2 = path8.join(workspaceRoot, ".agents", "pm");
|
|
6309
|
+
return {
|
|
6310
|
+
pmRoot: pmRoot2,
|
|
6311
|
+
prefixArg,
|
|
6312
|
+
target: { mode: "workspace-path", tracker_root: pmRoot2, workspace_root: workspaceRoot }
|
|
6313
|
+
};
|
|
6314
|
+
}
|
|
6242
6315
|
if (global.path === void 0 && isPathLikeInitTarget(prefixArg)) {
|
|
6243
6316
|
const positionalTarget = path8.resolve(cwd, prefixArg.trim());
|
|
6244
6317
|
return {
|
|
6245
6318
|
pmRoot: positionalTarget,
|
|
6246
6319
|
prefixArg: void 0,
|
|
6247
|
-
|
|
6320
|
+
target: { mode: "tracker-path", tracker_root: positionalTarget }
|
|
6248
6321
|
};
|
|
6249
6322
|
}
|
|
6323
|
+
const pmRoot = resolvePmRoot(cwd, global.path);
|
|
6250
6324
|
return {
|
|
6251
|
-
pmRoot
|
|
6252
|
-
prefixArg
|
|
6325
|
+
pmRoot,
|
|
6326
|
+
prefixArg,
|
|
6327
|
+
target: global.path === void 0 ? { mode: "workspace-discovery", tracker_root: pmRoot, workspace_root: cwd } : { mode: "tracker-path", tracker_root: pmRoot }
|
|
6253
6328
|
};
|
|
6254
6329
|
}
|
|
6255
6330
|
function normalizeInitAgentGuidanceMode(rawValue) {
|
|
@@ -6336,8 +6411,8 @@ async function isLikelyWorkspaceRoot(candidate) {
|
|
|
6336
6411
|
}
|
|
6337
6412
|
return false;
|
|
6338
6413
|
}
|
|
6339
|
-
async function assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot,
|
|
6340
|
-
if (
|
|
6414
|
+
async function assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot, explicitTrackerTarget, force) {
|
|
6415
|
+
if (!explicitTrackerTarget || force) {
|
|
6341
6416
|
return;
|
|
6342
6417
|
}
|
|
6343
6418
|
if (await pathExists(path8.join(pmRoot, "settings.json"))) {
|
|
@@ -6350,7 +6425,7 @@ async function assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot, global, force
|
|
|
6350
6425
|
throw new PmCliError(`Refusing to initialize tracker files directly in workspace root "${pmRoot}".`, EXIT_CODE.USAGE, {
|
|
6351
6426
|
code: "workspace_root_pm_path",
|
|
6352
6427
|
type: "urn:pm-cli:error:workspace_root_pm_path",
|
|
6353
|
-
why: "--pm-path/--path
|
|
6428
|
+
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.",
|
|
6354
6429
|
examples: [
|
|
6355
6430
|
`pm --pm-path ${nestedTracker} init --yes`,
|
|
6356
6431
|
"pm init --yes",
|
|
@@ -6605,47 +6680,53 @@ async function ensureInitTypeDirectories(params) {
|
|
|
6605
6680
|
params.createdDirs.push(...scaffold.createdDirs);
|
|
6606
6681
|
params.warnings.push(...scaffold.warnings);
|
|
6607
6682
|
}
|
|
6608
|
-
async function maybeInstallInitBundledPackages(installBundledPackages, global, warnings) {
|
|
6683
|
+
async function maybeInstallInitBundledPackages(installBundledPackages, global, pmRoot, warnings) {
|
|
6609
6684
|
if (!installBundledPackages) {
|
|
6610
6685
|
return void 0;
|
|
6611
6686
|
}
|
|
6612
|
-
const packageInstallResult = await runExtension("all", { install: true, project: true }, global);
|
|
6687
|
+
const packageInstallResult = await runExtension("all", { install: true, project: true }, { ...global, path: pmRoot });
|
|
6613
6688
|
warnings.push(...packageInstallResult.warnings);
|
|
6614
6689
|
const installedPackages = summarizeInstalledPackages(packageInstallResult);
|
|
6615
|
-
|
|
6616
|
-
|
|
6690
|
+
const failedAliases = installedPackages.packages.filter((entry) => !entry.ok).map((entry) => entry.alias);
|
|
6691
|
+
if (!installedPackages.installed_all || failedAliases.length > 0) {
|
|
6692
|
+
throw new PmCliError(`pm init --with-packages did not install all bundled packages successfully${failedAliases.length > 0 ? `: ${failedAliases.join(", ")}` : "."}`, EXIT_CODE.GENERIC_FAILURE);
|
|
6617
6693
|
}
|
|
6618
6694
|
return installedPackages;
|
|
6619
6695
|
}
|
|
6620
6696
|
function buildInitNextSteps(params) {
|
|
6697
|
+
const pmCommand = (args) => renderPmCommand([
|
|
6698
|
+
...params.target.mode === "workspace-discovery" ? [] : ["--pm-path", params.target.tracker_root],
|
|
6699
|
+
...args
|
|
6700
|
+
]);
|
|
6621
6701
|
const nextSteps = [
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6702
|
+
`Create your first item: ${pmCommand(["create", "--type", "Task", "--title", "<title>"])}`,
|
|
6703
|
+
`List active items: ${pmCommand(["list"])}`,
|
|
6704
|
+
`Get agent-friendly project context: ${pmCommand(["context"])}`
|
|
6625
6705
|
];
|
|
6626
6706
|
if (!params.installBundledPackages) {
|
|
6627
|
-
nextSteps.push(
|
|
6628
|
-
nextSteps.push(
|
|
6707
|
+
nextSteps.push(`Add optional packages for richer workflows: ${pmCommand(["install", "calendar", "--project"])}, ${pmCommand(["install", "templates", "--project"])}, ${pmCommand(["install", "guide-shell", "--project"])}`);
|
|
6708
|
+
nextSteps.push(`Or install everything bundled: ${pmCommand(["init", "--with-packages"])} (idempotent on re-run)`);
|
|
6629
6709
|
} else {
|
|
6630
|
-
nextSteps.push(
|
|
6710
|
+
nextSteps.push(`Explore newly-available commands: ${pmCommand(["cal"])}, ${pmCommand(["templates"])}, ${pmCommand(["guide"])}`);
|
|
6631
6711
|
}
|
|
6632
6712
|
if (params.registeredTypePreset) {
|
|
6633
|
-
nextSteps.push(`Inspect registered preset types:
|
|
6713
|
+
nextSteps.push(`Inspect registered preset types: ${pmCommand(["schema", "list"])}, ${pmCommand(["schema", "show", params.registeredTypePreset.registered[0] ?? params.registeredTypePreset.updated[0]])}`);
|
|
6634
6714
|
}
|
|
6635
6715
|
nextSteps.push("Set PM_AUTHOR=<your-agent-id> so mutations attribute to the right caller.");
|
|
6636
6716
|
for (const guidanceNextStep of params.agentGuidanceNextSteps) {
|
|
6637
|
-
|
|
6638
|
-
|
|
6717
|
+
const scopedGuidance = params.target.mode === "workspace-discovery" ? guidanceNextStep : guidanceNextStep.replace(/\bpm (?=[a-z])/g, () => `${pmCommand([])} `);
|
|
6718
|
+
if (!nextSteps.includes(scopedGuidance)) {
|
|
6719
|
+
nextSteps.push(scopedGuidance);
|
|
6639
6720
|
}
|
|
6640
6721
|
}
|
|
6641
6722
|
return nextSteps;
|
|
6642
6723
|
}
|
|
6643
6724
|
async function runInit(prefixArg, global, options = {}) {
|
|
6644
6725
|
const cwd = process.cwd();
|
|
6645
|
-
const invocation = resolveInitInvocation(cwd, global, prefixArg);
|
|
6726
|
+
const invocation = resolveInitInvocation(cwd, global, prefixArg, options.workspace);
|
|
6646
6727
|
const pmRoot = invocation.pmRoot;
|
|
6647
6728
|
prefixArg = invocation.prefixArg;
|
|
6648
|
-
await assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot,
|
|
6729
|
+
await assertExplicitTrackerPathIsNotWorkspaceRoot(pmRoot, invocation.target.mode === "tracker-path", options.force === true);
|
|
6649
6730
|
const createdDirs = [];
|
|
6650
6731
|
const warnings = [];
|
|
6651
6732
|
const baseDirs = await ensureInitDirectories(pmRoot, PM_REQUIRED_SUBDIRS);
|
|
@@ -6685,15 +6766,17 @@ async function runInit(prefixArg, global, options = {}) {
|
|
|
6685
6766
|
settings = await readSettings(pmRoot);
|
|
6686
6767
|
}
|
|
6687
6768
|
await ensureInitTypeDirectories({ pmRoot, settings, createdDirs, warnings });
|
|
6688
|
-
const installedPackages = await maybeInstallInitBundledPackages(normalizedOptions.installBundledPackages, global, warnings);
|
|
6769
|
+
const installedPackages = await maybeInstallInitBundledPackages(normalizedOptions.installBundledPackages, global, pmRoot, warnings);
|
|
6689
6770
|
const nextSteps = buildInitNextSteps({
|
|
6690
6771
|
installBundledPackages: normalizedOptions.installBundledPackages,
|
|
6691
6772
|
registeredTypePreset,
|
|
6692
|
-
agentGuidanceNextSteps: agentGuidance.next_steps
|
|
6773
|
+
agentGuidanceNextSteps: agentGuidance.next_steps,
|
|
6774
|
+
target: invocation.target
|
|
6693
6775
|
});
|
|
6694
6776
|
return {
|
|
6695
6777
|
ok: true,
|
|
6696
6778
|
path: pmRoot,
|
|
6779
|
+
target: invocation.target,
|
|
6697
6780
|
settings,
|
|
6698
6781
|
created_dirs: createdDirs,
|
|
6699
6782
|
warnings,
|
|
@@ -6721,6 +6804,6 @@ export {
|
|
|
6721
6804
|
summarizeInitResult,
|
|
6722
6805
|
runInit
|
|
6723
6806
|
};
|
|
6724
|
-
//# sourceMappingURL=chunk-
|
|
6807
|
+
//# sourceMappingURL=chunk-CUBPPDDF.js.map
|
|
6725
6808
|
|
|
6726
|
-
//# debugId=
|
|
6809
|
+
//# debugId=704ef87f-4cbc-5841-bb42-d6cfb02586a7
|