@unbrained/pm-cli 2026.7.14 → 2026.7.16
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/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +54 -0
- package/README.md +14 -11
- package/dist/cli/argv-utils.d.ts +1 -4
- package/dist/cli/argv-utils.js +3 -13
- package/dist/cli/argv-utils.js.map +1 -1
- package/dist/cli/bootstrap-args.d.ts +6 -4
- package/dist/cli/bootstrap-args.js +51 -16
- package/dist/cli/bootstrap-args.js.map +1 -1
- package/dist/cli/bundle-integrity.d.ts +49 -0
- package/dist/cli/bundle-integrity.js +111 -0
- package/dist/cli/bundle-integrity.js.map +1 -0
- package/dist/cli/commands/completion.js +7 -2
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +6 -163
- package/dist/cli/commands/config.js +4 -1133
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/context.d.ts +2 -4
- package/dist/cli/commands/context.js +10 -85
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/create.d.ts +1 -0
- package/dist/cli/commands/create.js +3 -2
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/describe.d.ts +2 -91
- package/dist/cli/commands/extension/describe.js +4 -142
- package/dist/cli/commands/extension/describe.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.d.ts +2 -36
- package/dist/cli/commands/extension/scaffold.js +4 -2435
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension/shared.d.ts +2 -28
- package/dist/cli/commands/extension/shared.js +4 -130
- package/dist/cli/commands/extension/shared.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +3 -400
- package/dist/cli/commands/extension.js +4 -2183
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/gc.d.ts +6 -56
- package/dist/cli/commands/gc.js +4 -270
- package/dist/cli/commands/gc.js.map +1 -1
- package/dist/cli/commands/get.d.ts +18 -5
- package/dist/cli/commands/get.js +117 -58
- package/dist/cli/commands/get.js.map +1 -1
- package/dist/cli/commands/health.d.ts +6 -184
- package/dist/cli/commands/health.js +4 -1747
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history-compact.d.ts +4 -139
- package/dist/cli/commands/history-compact.js +5 -510
- package/dist/cli/commands/history-compact.js.map +1 -1
- package/dist/cli/commands/history-redact.d.ts +8 -120
- package/dist/cli/commands/history-redact.js +6 -581
- package/dist/cli/commands/history-redact.js.map +1 -1
- package/dist/cli/commands/history-repair.d.ts +7 -89
- package/dist/cli/commands/history-repair.js +5 -257
- package/dist/cli/commands/history-repair.js.map +1 -1
- package/dist/cli/commands/history.d.ts +1 -2
- package/dist/cli/commands/history.js +6 -48
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init-agent-guidance.d.ts +6 -113
- package/dist/cli/commands/init-agent-guidance.js +4 -431
- package/dist/cli/commands/init-agent-guidance.js.map +1 -1
- package/dist/cli/commands/init.d.ts +6 -181
- package/dist/cli/commands/init.js +4 -690
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/next.js +3 -3
- package/dist/cli/commands/next.js.map +1 -1
- package/dist/cli/commands/profile.d.ts +4 -174
- package/dist/cli/commands/profile.js +4 -425
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/commands/restore.d.ts +4 -19
- package/dist/cli/commands/restore.js +9 -158
- package/dist/cli/commands/restore.js.map +1 -1
- package/dist/cli/commands/schema.d.ts +7 -507
- package/dist/cli/commands/schema.js +5 -1254
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/test.d.ts +2 -4
- package/dist/cli/commands/test.js +7 -97
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +9 -249
- package/dist/cli/commands/validate.js +9 -2150
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/extension-command-help.js +18 -4
- package/dist/cli/extension-command-help.js.map +1 -1
- package/dist/cli/extension-command-options.js +3 -3
- package/dist/cli/extension-command-options.js.map +1 -1
- package/dist/cli/help-content.js +7 -3
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/main.js +20 -30
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +4 -2
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +11 -3
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-setup.js +4 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.js +3 -2
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/bundle-manifest.json +782 -0
- package/dist/cli-bundle/chunks/{append-PVZJDM6J.js → append-OJQFUQ4T.js} +5 -5
- package/dist/cli-bundle/chunks/append-UZVHUO74.js +11 -0
- package/dist/cli-bundle/chunks/{chunk-MQZ3PLCF.js → chunk-2IFFUZLC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P6MYFH6K.js → chunk-2JKGO6QX.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-X3GYR4P2.js → chunk-2NCIPMQP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q7E6OYZK.js → chunk-2VPAVL7O.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DRNJPEPQ.js → chunk-2WSE6PO2.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-FDSBDNYE.js → chunk-34L5OT3Y.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TH7U4KLY.js → chunk-3AUGG2DP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NKW36AMT.js → chunk-3CLU2XZO.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-N3CMP4NI.js → chunk-3S5QVM5H.js} +43 -7
- package/dist/cli-bundle/chunks/chunk-3S5QVM5H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-3U7ZR6M4.js +64 -0
- package/dist/cli-bundle/chunks/chunk-3U7ZR6M4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ABRCOSDC.js → chunk-3WM75PWC.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-4223PVZT.js +121 -0
- package/dist/cli-bundle/chunks/chunk-4223PVZT.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5URI7TPJ.js → chunk-4XQ3BDV4.js} +281 -164
- package/dist/cli-bundle/chunks/chunk-4XQ3BDV4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-X6BVXQ52.js → chunk-5JLUII3O.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-MKL4CP2I.js → chunk-5ZSLZLDN.js} +631 -246
- package/dist/cli-bundle/chunks/chunk-5ZSLZLDN.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-Q37E63AM.js → chunk-6CFNAVTF.js} +21 -141
- package/dist/cli-bundle/chunks/chunk-6CFNAVTF.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3TL7WOEF.js → chunk-6N2VXVTQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ERL2YFJ2.js → chunk-6S3YSUYG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ZUKSZVBW.js → chunk-7B67ZL4N.js} +8 -7
- package/dist/cli-bundle/chunks/chunk-7B67ZL4N.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IA3YFTXT.js → chunk-7PIWCHTW.js} +11 -13
- package/dist/cli-bundle/chunks/chunk-7PIWCHTW.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BPD26E3P.js → chunk-7Z4LKRS4.js} +291 -81
- package/dist/cli-bundle/chunks/chunk-7Z4LKRS4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IFZA4VB5.js → chunk-AHVTB5I5.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-DO5RGJXT.js → chunk-APRVSW2O.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NAQYVWSQ.js → chunk-B7PE22W6.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-MD6ULIPJ.js → chunk-BCOFWYW4.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KADLSPIU.js → chunk-BEP7WJA2.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-BKVG6XOA.js +1114 -0
- package/dist/cli-bundle/chunks/chunk-BKVG6XOA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AFWZRL7M.js → chunk-BSEQUTQP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AFWZRL7M.js.map → chunk-BSEQUTQP.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OBDLEQG5.js → chunk-CRVF2JDM.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-FJZDA6MS.js → chunk-DM4H7FP4.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-DUT67M43.js +5 -0
- package/dist/cli-bundle/chunks/{chunk-44LNIULG.js → chunk-DYH63FX7.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LWTIRS3Y.js → chunk-E2OJMKML.js} +306 -82
- package/dist/cli-bundle/chunks/chunk-E2OJMKML.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-HAMLIWAF.js → chunk-EAB64KLB.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-CIOZ376P.js → chunk-EACOH7AU.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-HL7V2PHX.js → chunk-EH2OPHBI.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-HL7V2PHX.js.map → chunk-EH2OPHBI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-QK2ZN6UL.js → chunk-EJEXHTY5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WQUEHPZB.js → chunk-EYLCSJAI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-655STMGA.js → chunk-FMBNM2EN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RMF3IOYQ.js → chunk-FNSPG7MU.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-5CT5BW6E.js → chunk-GM5QHQU6.js} +46 -40
- package/dist/cli-bundle/chunks/chunk-GM5QHQU6.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FTQLW4JD.js → chunk-GOSLKLFE.js} +418 -24
- package/dist/cli-bundle/chunks/chunk-GOSLKLFE.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KB726FMH.js → chunk-H2Z3FYXQ.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-H3EIEWGR.js +162 -0
- package/dist/cli-bundle/chunks/chunk-H3EIEWGR.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2QIQGYPW.js → chunk-H5APFTHZ.js} +53 -10
- package/dist/cli-bundle/chunks/chunk-H5APFTHZ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HDH3JUGG.js +118 -0
- package/dist/cli-bundle/chunks/chunk-HDH3JUGG.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ZAYYDNB3.js → chunk-HO4KXD6I.js} +22 -142
- package/dist/cli-bundle/chunks/chunk-HO4KXD6I.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ILLUE5DI.js → chunk-HYB5AZ63.js} +203 -62
- package/dist/cli-bundle/chunks/{chunk-ILLUE5DI.js.map → chunk-HYB5AZ63.js.map} +3 -3
- package/dist/cli-bundle/chunks/{chunk-BN62TO2S.js → chunk-IA5FKNII.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JL7WZ4O2.js → chunk-IG3SWA4A.js} +33 -9
- package/dist/cli-bundle/chunks/chunk-IG3SWA4A.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-W6HZ55JO.js → chunk-IJIICKVW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IGED7NH2.js → chunk-ILX33QXL.js} +668 -251
- package/dist/cli-bundle/chunks/chunk-ILX33QXL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UGTVWL3E.js → chunk-INU6DKT5.js} +47 -41
- package/dist/cli-bundle/chunks/chunk-INU6DKT5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UB2QYSTO.js → chunk-J5AOEGDC.js} +26 -18
- package/dist/cli-bundle/chunks/chunk-J5AOEGDC.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4DY4KPQI.js → chunk-J6364LFM.js} +1330 -937
- package/dist/cli-bundle/chunks/chunk-J6364LFM.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-DVOLZJ3C.js → chunk-J6EY5V4N.js} +1295 -939
- package/dist/cli-bundle/chunks/chunk-J6EY5V4N.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-JFTKLTEF.js +1097 -0
- package/dist/cli-bundle/chunks/chunk-JFTKLTEF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-M7EWN4TF.js → chunk-JOUQZENX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-J4NZOP3I.js → chunk-JXQUXVMI.js} +9 -8
- package/dist/cli-bundle/chunks/chunk-JXQUXVMI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2FNWQXZ2.js → chunk-JYFOV7FC.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-HLHSQ5CA.js → chunk-K2X6U4UA.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-6OTZMORS.js → chunk-K3WII2ME.js} +27 -27
- package/dist/cli-bundle/chunks/chunk-K3WII2ME.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-M6ASXYCU.js → chunk-KG44YSKD.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YVKE5ZDM.js → chunk-KPMKHGEA.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-QASRVKUQ.js → chunk-LPYWLWDS.js} +257 -163
- package/dist/cli-bundle/chunks/chunk-LPYWLWDS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RGXD5JJR.js → chunk-LSG2U345.js} +19 -12
- package/dist/cli-bundle/chunks/chunk-LSG2U345.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MIQDDLB5.js +5 -0
- package/dist/cli-bundle/chunks/{chunk-UJ4HJYWL.js → chunk-NLDFBC6J.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WRKB56FC.js → chunk-NP22ERDF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YQYG2V23.js → chunk-NU3IMIEA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3I3LRT2G.js → chunk-NVPZIJVR.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JAF4TUQ7.js → chunk-ODALILG3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CDJYP7OQ.js → chunk-ONG5V5CI.js} +190 -63
- package/dist/cli-bundle/chunks/chunk-ONG5V5CI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-QZ7LT3XE.js → chunk-ONREO4ST.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-OW4JWD5M.js +61 -0
- package/dist/cli-bundle/chunks/chunk-OW4JWD5M.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-3CMRNVTO.js → chunk-P74IZQ7A.js} +12 -12
- package/dist/cli-bundle/chunks/chunk-PENXZX3U.js +172 -0
- package/dist/cli-bundle/chunks/chunk-PENXZX3U.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZTRBSABY.js → chunk-PGY23YTC.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-H2QBAKLQ.js → chunk-PMOSXADO.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-PNTULOGU.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-GSEADLRH.js → chunk-Q7A43DS4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QSPARJWF.js → chunk-QEHQ2GVG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VJTAEIPC.js → chunk-QIPLHNP7.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-GXXC7QSK.js → chunk-QKECXBBG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GXXC7QSK.js.map → chunk-QKECXBBG.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-K7WNZ7KD.js → chunk-QKJGPFAF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-F7PSHRNO.js → chunk-QKXHFPYM.js} +27 -10
- package/dist/cli-bundle/chunks/chunk-QKXHFPYM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ZNP64HOW.js → chunk-RLCHOOHC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IAPHYPRL.js → chunk-RMLWNPH2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UVBA6F5A.js → chunk-RRM5JYJC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6IIVBC56.js → chunk-S6MQESFR.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-QABYZYLU.js → chunk-SDQLJWBO.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-ANSJHDOZ.js → chunk-SELVXEZK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DYEX6NFH.js → chunk-TD3LVC7D.js} +438 -23
- package/dist/cli-bundle/chunks/chunk-TD3LVC7D.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-WD6MSYMP.js → chunk-TKOVBP6C.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TZ2PSLLT.js → chunk-TQSZFPIS.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-WPAWZW7S.js → chunk-TSMHDIW4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TZRTLMWM.js → chunk-UFXU44HV.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-TWLDBKQU.js → chunk-ULTHRDBP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-OI4S4KCI.js → chunk-UMOPHQSU.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-OI4S4KCI.js.map → chunk-UMOPHQSU.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RA5AIAMP.js → chunk-UOHFKBUV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-PHKP3AGR.js → chunk-UWQHLMEB.js} +35 -18
- package/dist/cli-bundle/chunks/chunk-UWQHLMEB.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6TTOHMTB.js → chunk-UXONS674.js} +45 -112
- package/dist/cli-bundle/chunks/chunk-UXONS674.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4RXTMU57.js → chunk-UY2ACEMF.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6PKA3SJQ.js → chunk-WQPUU7XD.js} +19 -28
- package/dist/cli-bundle/chunks/chunk-WQPUU7XD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7TQMR6LK.js → chunk-WT3ZEOGH.js} +70 -20
- package/dist/cli-bundle/chunks/chunk-WT3ZEOGH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FIGXOCEQ.js → chunk-WUJQK4YV.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-T4BRCB6Z.js → chunk-XSJUSQAE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6MHSBDGD.js → chunk-XXXF6PAQ.js} +50 -117
- package/dist/cli-bundle/chunks/chunk-XXXF6PAQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UKUIIBDW.js → chunk-YAQEBNY7.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-7QDSYUMF.js → chunk-YAROI3PD.js} +44 -21
- package/dist/cli-bundle/chunks/chunk-YAROI3PD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-E2WC6S4P.js → chunk-YBLZ2VE7.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-Y72FV7RM.js → chunk-YCQET3OT.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-YUSOJDWM.js +9 -0
- package/dist/cli-bundle/chunks/chunk-YXSHIAUJ.js +58 -0
- package/dist/cli-bundle/chunks/chunk-YXSHIAUJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FS6UM5WH.js → chunk-ZI6VQWQ7.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-ZKRZY773.js +68 -0
- package/dist/cli-bundle/chunks/chunk-ZKRZY773.js.map +7 -0
- package/dist/cli-bundle/chunks/{close-LZECOMHO.js → close-CWODTPKG.js} +5 -5
- package/dist/cli-bundle/chunks/close-W6LI2PKM.js +12 -0
- package/dist/cli-bundle/chunks/{close-many-ZHI6A5TN.js → close-many-CQFUY7MR.js} +15 -13
- package/dist/cli-bundle/chunks/close-many-DLDDVSH5.js +23 -0
- package/dist/cli-bundle/chunks/comments-E3TNTK24.js +13 -0
- package/dist/cli-bundle/chunks/{comments-AJWRTFZ5.js → comments-WGLHR7LB.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-GMXYKBXT.js → copy-LXVDXH7B.js} +4 -4
- package/dist/cli-bundle/chunks/copy-Q5ZJPUKR.js +9 -0
- package/dist/cli-bundle/chunks/{create-F53OBTOU.js → create-J5U6ND4K.js} +9 -9
- package/dist/cli-bundle/chunks/{create-HU4Q7RJX.js → create-LBVCYMEG.js} +9 -9
- package/dist/cli-bundle/chunks/{delete-GSDZLTRC.js → delete-PMJBNY5G.js} +4 -4
- package/dist/cli-bundle/chunks/delete-WNHB3LYW.js +10 -0
- package/dist/cli-bundle/chunks/{deps-WWB7P2GT.js → deps-JZ7TMVCB.js} +7 -4
- package/dist/cli-bundle/chunks/{deps-U57I7EAK.js → deps-OA26IS25.js} +7 -4
- package/dist/cli-bundle/chunks/{docs-MQIY2ZQS.js → docs-FEWB2DQB.js} +6 -6
- package/dist/cli-bundle/chunks/docs-HA2AIDBB.js +14 -0
- package/dist/cli-bundle/chunks/{files-TBZD7V6H.js → files-6YFBJRBG.js} +6 -6
- package/dist/cli-bundle/chunks/{files-TTY6N2AV.js → files-EFIWKFTM.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-XT6YVFFX.js → focus-4QJR7FOQ.js} +5 -5
- package/dist/cli-bundle/chunks/focus-POIW5LTJ.js +10 -0
- package/dist/cli-bundle/chunks/{history-compact-KKVUWB4V.js → history-compact-CKRPDTJN.js} +6 -10
- package/dist/cli-bundle/chunks/history-compact-FWG2C7FZ.js +16 -0
- package/dist/cli-bundle/chunks/history-redact-BB3TGDAE.js +15 -0
- package/dist/cli-bundle/chunks/{history-redact-3DVZOILD.js → history-redact-D225BHOZ.js} +5 -6
- package/dist/cli-bundle/chunks/history-repair-6GEAM7HE.js +16 -0
- package/dist/cli-bundle/chunks/{history-repair-ITDUMK4N.js → history-repair-RQXKQHL4.js} +6 -8
- package/dist/cli-bundle/chunks/{learnings-FGO3NSFW.js → learnings-JLNLCOL5.js} +7 -7
- package/dist/cli-bundle/chunks/learnings-RSNLSWDC.js +13 -0
- package/dist/cli-bundle/chunks/notes-2WDH6DXU.js +13 -0
- package/dist/cli-bundle/chunks/{notes-NQ6RXVW6.js → notes-GB47XXQQ.js} +7 -7
- package/dist/cli-bundle/chunks/plan-DOVI2VMW.js +24 -0
- package/dist/cli-bundle/chunks/{plan-2NNEO46V.js → plan-VDCJ2PCN.js} +10 -10
- package/dist/cli-bundle/chunks/{profile-AAQUU6T3.js → profile-FAU7NZML.js} +10 -10
- package/dist/cli-bundle/chunks/{profile-U725ATWZ.js → profile-IVXQEL3D.js} +10 -10
- package/dist/cli-bundle/chunks/{register-list-query-BUWCYHBT.js → register-list-query-DKA3EH5D.js} +22 -19
- package/dist/cli-bundle/chunks/register-list-query-DKA3EH5D.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-KTZ6AGE7.js → register-list-query-UL4UKBBN.js} +23 -20
- package/dist/cli-bundle/chunks/register-list-query-UL4UKBBN.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-UELYYOR7.js → register-mutation-ARFHRW55.js} +36 -32
- package/dist/cli-bundle/chunks/{register-mutation-UELYYOR7.js.map → register-mutation-ARFHRW55.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-4FMGJJF7.js → register-mutation-RBBJ52DK.js} +37 -33
- package/dist/cli-bundle/chunks/register-mutation-RBBJ52DK.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-JVW24J2Y.js → register-operations-ZIBBRSED.js} +41 -39
- package/dist/cli-bundle/chunks/{register-operations-JVW24J2Y.js.map → register-operations-ZIBBRSED.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-ISUX6LY5.js → register-operations-ZUJ5JWPE.js} +39 -37
- package/dist/cli-bundle/chunks/{register-operations-ISUX6LY5.js.map → register-operations-ZUJ5JWPE.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-5XNGKJ22.js → register-setup-BCVLFEYS.js} +29 -17
- package/dist/cli-bundle/chunks/{register-setup-5XNGKJ22.js.map → register-setup-BCVLFEYS.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-ZTNY6S7R.js → register-setup-TDCGWIOS.js} +19 -18
- package/dist/cli-bundle/chunks/{register-setup-ZTNY6S7R.js.map → register-setup-TDCGWIOS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{restore-B3BAB6X2.js → restore-25DLT2Q2.js} +6 -6
- package/dist/cli-bundle/chunks/restore-YPMVUUEX.js +14 -0
- package/dist/cli-bundle/chunks/{schema-U7IM2DXV.js → schema-FNU3WE4O.js} +7 -6
- package/dist/cli-bundle/chunks/{schema-LZNUYHDB.js → schema-NBCM3RAD.js} +7 -6
- package/dist/cli-bundle/chunks/update-WWBYOPXO.js +21 -0
- package/dist/cli-bundle/chunks/update-WWBYOPXO.js.map +7 -0
- package/dist/cli-bundle/chunks/{update-Q3UCILNR.js → update-XHSIAIXE.js} +12 -12
- package/dist/cli-bundle/chunks/update-XHSIAIXE.js.map +1 -0
- package/dist/cli-bundle/chunks/update-many-OUGIU5SF.js +32 -0
- package/dist/cli-bundle/chunks/update-many-OUGIU5SF.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-TA7NGQBO.js +36 -0
- package/dist/cli-bundle/chunks/update-many-TA7NGQBO.js.map +1 -0
- package/dist/cli-bundle/main.js +826 -43
- package/dist/cli-bundle/main.js.map +4 -4
- package/dist/cli-bundle/sdk-runtime.js +70 -57
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +876 -74
- package/dist/cli-bundle/sdk.js.map +4 -4
- package/dist/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/dist/core/diagnostics/remediation.js +12 -2
- package/dist/core/diagnostics/remediation.js.map +1 -1
- package/dist/core/history/projection.d.ts +39 -0
- package/dist/core/history/projection.js +164 -0
- package/dist/core/history/projection.js.map +1 -0
- package/dist/core/history/read.d.ts +3 -0
- package/dist/core/history/read.js +55 -0
- package/dist/core/history/read.js.map +1 -0
- package/dist/core/output/output-control.d.ts +18 -0
- package/dist/core/output/output-control.js +26 -0
- package/dist/core/output/output-control.js.map +1 -0
- package/dist/core/output/output.js +20 -8
- package/dist/core/output/output.js.map +1 -1
- package/dist/core/sentry/helpers.js +10 -2
- package/dist/core/sentry/helpers.js.map +1 -1
- package/dist/core/shared/command-types.d.ts +2 -0
- package/dist/core/shared/command-types.js +2 -2
- package/dist/core/shared/command-types.js.map +1 -1
- package/dist/core/shared/errors.d.ts +11 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/shared/errors.js.map +1 -1
- package/dist/mcp/server.d.ts +2 -2
- package/dist/mcp/tool-definitions.js +5 -5
- package/dist/mcp/tool-definitions.js.map +1 -1
- package/dist/sdk/author-attribution.d.ts +35 -0
- package/dist/sdk/author-attribution.js +118 -0
- package/dist/sdk/author-attribution.js.map +1 -0
- package/dist/sdk/cli-contracts/command-aliases.d.ts +7 -0
- package/dist/sdk/cli-contracts/command-aliases.js +17 -0
- package/dist/sdk/cli-contracts/command-aliases.js.map +1 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +6 -2
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +21 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +3 -3
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +1 -0
- package/dist/sdk/cli-contracts.js +3 -2
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/cli-program.d.ts +8 -0
- package/dist/sdk/cli-program.js +39 -0
- package/dist/sdk/cli-program.js.map +1 -0
- package/dist/sdk/command-line.d.ts +11 -0
- package/dist/sdk/command-line.js +40 -0
- package/dist/sdk/command-line.js.map +1 -0
- package/dist/sdk/config.d.ts +163 -0
- package/dist/sdk/config.js +1087 -0
- package/dist/sdk/config.js.map +1 -0
- package/dist/sdk/context-relevance.d.ts +21 -0
- package/dist/sdk/context-relevance.js +70 -2
- package/dist/sdk/context-relevance.js.map +1 -1
- package/dist/sdk/dependencies.d.ts +15 -2
- package/dist/sdk/dependencies.js +97 -8
- package/dist/sdk/dependencies.js.map +1 -1
- package/dist/{cli/commands → sdk}/extension/bundled-catalog.d.ts +1 -1
- package/dist/{cli/commands → sdk}/extension/bundled-catalog.js +12 -12
- package/dist/sdk/extension/bundled-catalog.js.map +1 -0
- package/dist/sdk/extension/concurrency.d.ts +7 -0
- package/dist/sdk/extension/concurrency.js +26 -0
- package/dist/sdk/extension/concurrency.js.map +1 -0
- package/dist/sdk/extension/describe.d.ts +91 -0
- package/dist/sdk/extension/describe.js +144 -0
- package/dist/sdk/extension/describe.js.map +1 -0
- package/dist/{cli/commands → sdk}/extension/doctor.d.ts +3 -3
- package/dist/{cli/commands → sdk}/extension/doctor.js +7 -7
- package/dist/sdk/extension/doctor.js.map +1 -0
- package/dist/sdk/extension/install-runtime.d.ts +26 -0
- package/dist/sdk/extension/install-runtime.js +269 -0
- package/dist/sdk/extension/install-runtime.js.map +1 -0
- package/dist/sdk/extension/install-snapshot.d.ts +23 -0
- package/dist/sdk/extension/install-snapshot.js +66 -0
- package/dist/sdk/extension/install-snapshot.js.map +1 -0
- package/dist/{cli/commands → sdk}/extension/install-sources.d.ts +3 -3
- package/dist/{cli/commands → sdk}/extension/install-sources.js +15 -12
- package/dist/sdk/extension/install-sources.js.map +1 -0
- package/dist/{cli/commands → sdk}/extension/managed-state.js +6 -6
- package/dist/sdk/extension/managed-state.js.map +1 -0
- package/dist/sdk/extension/scaffold.d.ts +36 -0
- package/dist/sdk/extension/scaffold.js +2436 -0
- package/dist/sdk/extension/scaffold.js.map +1 -0
- package/dist/sdk/extension/shared.d.ts +28 -0
- package/dist/sdk/extension/shared.js +140 -0
- package/dist/sdk/extension/shared.js.map +1 -0
- package/dist/sdk/extension/update-check.d.ts +15 -0
- package/dist/sdk/extension/update-check.js +68 -0
- package/dist/sdk/extension/update-check.js.map +1 -0
- package/dist/sdk/extension.d.ts +367 -0
- package/dist/sdk/extension.js +2174 -0
- package/dist/sdk/extension.js.map +1 -0
- package/dist/sdk/governance/gc.d.ts +56 -0
- package/dist/sdk/governance/gc.js +276 -0
- package/dist/sdk/governance/gc.js.map +1 -0
- package/dist/sdk/governance/health.d.ts +187 -0
- package/dist/sdk/governance/health.js +1796 -0
- package/dist/sdk/governance/health.js.map +1 -0
- package/dist/sdk/governance/validate.d.ts +255 -0
- package/dist/sdk/governance/validate.js +2175 -0
- package/dist/sdk/governance/validate.js.map +1 -0
- package/dist/sdk/history-compact.d.ts +142 -0
- package/dist/sdk/history-compact.js +508 -0
- package/dist/sdk/history-compact.js.map +1 -0
- package/dist/sdk/history-mcp.d.ts +17 -0
- package/dist/sdk/history-mcp.js +68 -0
- package/dist/sdk/history-mcp.js.map +1 -0
- package/dist/sdk/history-read.d.ts +31 -0
- package/dist/sdk/history-read.js +58 -0
- package/dist/sdk/history-read.js.map +1 -0
- package/dist/sdk/history-redact.d.ts +120 -0
- package/dist/sdk/history-redact.js +577 -0
- package/dist/sdk/history-redact.js.map +1 -0
- package/dist/sdk/history-repair.d.ts +89 -0
- package/dist/sdk/history-repair.js +263 -0
- package/dist/sdk/history-repair.js.map +1 -0
- package/dist/sdk/index.d.ts +25 -1
- package/dist/sdk/index.js +27 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/init-agent-guidance.d.ts +113 -0
- package/dist/sdk/init-agent-guidance.js +437 -0
- package/dist/sdk/init-agent-guidance.js.map +1 -0
- package/dist/sdk/init.d.ts +186 -0
- package/dist/sdk/init.js +733 -0
- package/dist/sdk/init.js.map +1 -0
- package/dist/sdk/invocation-author.d.ts +2 -0
- package/dist/sdk/invocation-author.js +39 -0
- package/dist/sdk/invocation-author.js.map +1 -0
- package/dist/sdk/item-children.d.ts +45 -0
- package/dist/sdk/item-children.js +75 -0
- package/dist/sdk/item-children.js.map +1 -0
- package/dist/sdk/item-schedule.d.ts +26 -0
- package/dist/sdk/item-schedule.js +28 -0
- package/dist/sdk/item-schedule.js.map +1 -0
- package/dist/sdk/output.d.ts +7 -0
- package/dist/sdk/output.js +11 -0
- package/dist/sdk/output.js.map +1 -0
- package/dist/sdk/pagination.d.ts +4 -1
- package/dist/sdk/pagination.js +13 -5
- package/dist/sdk/pagination.js.map +1 -1
- package/dist/sdk/profile.d.ts +176 -0
- package/dist/sdk/profile.js +431 -0
- package/dist/sdk/profile.js.map +1 -0
- package/dist/sdk/relationship-analytics.d.ts +108 -0
- package/dist/sdk/relationship-analytics.js +292 -0
- package/dist/sdk/relationship-analytics.js.map +1 -0
- package/dist/sdk/relationship-context.d.ts +67 -0
- package/dist/sdk/relationship-context.js +207 -0
- package/dist/sdk/relationship-context.js.map +1 -0
- package/dist/sdk/relationship-history.d.ts +109 -0
- package/dist/sdk/relationship-history.js +401 -0
- package/dist/sdk/relationship-history.js.map +1 -0
- package/dist/sdk/relationships.d.ts +145 -0
- package/dist/sdk/relationships.js +551 -0
- package/dist/sdk/relationships.js.map +1 -0
- package/dist/sdk/runtime-input.d.ts +10 -0
- package/dist/sdk/runtime-input.js +60 -0
- package/dist/sdk/runtime-input.js.map +1 -0
- package/dist/sdk/runtime.d.ts +31 -8
- package/dist/sdk/runtime.js +61 -57
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/schema.d.ts +507 -0
- package/dist/sdk/schema.js +1269 -0
- package/dist/sdk/schema.js.map +1 -0
- package/dist/{cli/commands → sdk}/templates.d.ts +1 -1
- package/dist/{cli/commands → sdk}/templates.js +9 -9
- package/dist/sdk/templates.js.map +1 -0
- package/dist/{cli/commands → sdk}/test/linked-command-detection.d.ts +10 -2
- package/dist/sdk/test/linked-command-detection.js +525 -0
- package/dist/sdk/test/linked-command-detection.js.map +1 -0
- package/docs/COMMANDS.md +58 -40
- package/docs/EXTENSIONS.md +10 -1
- package/docs/RELATIONSHIP_GRAPH.md +113 -0
- package/docs/RELEASING.md +2 -0
- package/docs/SDK.md +156 -9
- package/docs/SDK_CUSTOMIZATION_PRIMITIVES.md +79 -0
- package/marketplace.json +2 -2
- package/package.json +3 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-governance-audit/extensions/governance-audit/runtime-utils.ts +76 -16
- package/packages/pm-governance-audit/extensions/governance-audit/sdk.ts +8 -0
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/scripts/bundle-cli.mjs +66 -23
- package/dist/cli/commands/extension/bundled-catalog.js.map +0 -1
- package/dist/cli/commands/extension/doctor.js.map +0 -1
- package/dist/cli/commands/extension/install-sources.js.map +0 -1
- package/dist/cli/commands/extension/managed-state.js.map +0 -1
- package/dist/cli/commands/templates.js.map +0 -1
- package/dist/cli/commands/test/linked-command-detection.js +0 -248
- package/dist/cli/commands/test/linked-command-detection.js.map +0 -1
- package/dist/cli-bundle/chunks/append-DYQWQK2J.js +0 -11
- package/dist/cli-bundle/chunks/chunk-2GA3NK35.js +0 -530
- package/dist/cli-bundle/chunks/chunk-2GA3NK35.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-2QIQGYPW.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4DY4KPQI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4WREH7RT.js +0 -554
- package/dist/cli-bundle/chunks/chunk-4WREH7RT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5CT5BW6E.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5URI7TPJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6MHSBDGD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6OTZMORS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6PKA3SJQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6TTOHMTB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7QDSYUMF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7TQMR6LK.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-B5DZYTT3.js +0 -312
- package/dist/cli-bundle/chunks/chunk-B5DZYTT3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-BPD26E3P.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-CDJYP7OQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DBZVUJTK.js +0 -858
- package/dist/cli-bundle/chunks/chunk-DBZVUJTK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DVOLZJ3C.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DYEX6NFH.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-F7PSHRNO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-FO7GMJKG.js +0 -875
- package/dist/cli-bundle/chunks/chunk-FO7GMJKG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FTQLW4JD.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-IA3YFTXT.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-IGED7NH2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-J4NZOP3I.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JL7WZ4O2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-L24HCJFC.js +0 -309
- package/dist/cli-bundle/chunks/chunk-L24HCJFC.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-LWTIRS3Y.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MKL4CP2I.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-N3CMP4NI.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-PHKP3AGR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Q37E63AM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-QASRVKUQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RGXD5JJR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UB2QYSTO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UGTVWL3E.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ZAYYDNB3.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ZUKSZVBW.js.map +0 -7
- package/dist/cli-bundle/chunks/close-RI4JQQHU.js +0 -12
- package/dist/cli-bundle/chunks/close-many-LY2XJ52M.js +0 -21
- package/dist/cli-bundle/chunks/comments-35M273DN.js +0 -13
- package/dist/cli-bundle/chunks/copy-NPYM7M7U.js +0 -9
- package/dist/cli-bundle/chunks/delete-ODRWJWAM.js +0 -10
- package/dist/cli-bundle/chunks/docs-G7N4E2JO.js +0 -14
- package/dist/cli-bundle/chunks/focus-U5TRVCRS.js +0 -10
- package/dist/cli-bundle/chunks/history-compact-M7GHYVFN.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-JIHZLHDP.js +0 -16
- package/dist/cli-bundle/chunks/history-repair-NAFCHLH7.js +0 -18
- package/dist/cli-bundle/chunks/learnings-SONGPSHI.js +0 -13
- package/dist/cli-bundle/chunks/notes-BSD53H2W.js +0 -13
- package/dist/cli-bundle/chunks/plan-AWLYGBNV.js +0 -24
- package/dist/cli-bundle/chunks/register-list-query-BUWCYHBT.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-KTZ6AGE7.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-4FMGJJF7.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-66GLMHIX.js +0 -14
- package/dist/cli-bundle/chunks/update-2XGHIVQ2.js +0 -21
- package/dist/cli-bundle/chunks/update-many-75K57FS3.js +0 -34
- package/dist/cli-bundle/chunks/update-many-U42YA445.js +0 -30
- /package/dist/cli-bundle/chunks/{append-PVZJDM6J.js.map → append-OJQFUQ4T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-DYQWQK2J.js.map → append-UZVHUO74.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MQZ3PLCF.js.map → chunk-2IFFUZLC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P6MYFH6K.js.map → chunk-2JKGO6QX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-X3GYR4P2.js.map → chunk-2NCIPMQP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q7E6OYZK.js.map → chunk-2VPAVL7O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DRNJPEPQ.js.map → chunk-2WSE6PO2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FDSBDNYE.js.map → chunk-34L5OT3Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TH7U4KLY.js.map → chunk-3AUGG2DP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NKW36AMT.js.map → chunk-3CLU2XZO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ABRCOSDC.js.map → chunk-3WM75PWC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-X6BVXQ52.js.map → chunk-5JLUII3O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3TL7WOEF.js.map → chunk-6N2VXVTQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ERL2YFJ2.js.map → chunk-6S3YSUYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IFZA4VB5.js.map → chunk-AHVTB5I5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DO5RGJXT.js.map → chunk-APRVSW2O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NAQYVWSQ.js.map → chunk-B7PE22W6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MD6ULIPJ.js.map → chunk-BCOFWYW4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KADLSPIU.js.map → chunk-BEP7WJA2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OBDLEQG5.js.map → chunk-CRVF2JDM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FJZDA6MS.js.map → chunk-DM4H7FP4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-LZECOMHO.js.map → chunk-DUT67M43.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-44LNIULG.js.map → chunk-DYH63FX7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HAMLIWAF.js.map → chunk-EAB64KLB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CIOZ376P.js.map → chunk-EACOH7AU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QK2ZN6UL.js.map → chunk-EJEXHTY5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WQUEHPZB.js.map → chunk-EYLCSJAI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-655STMGA.js.map → chunk-FMBNM2EN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RMF3IOYQ.js.map → chunk-FNSPG7MU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KB726FMH.js.map → chunk-H2Z3FYXQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BN62TO2S.js.map → chunk-IA5FKNII.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W6HZ55JO.js.map → chunk-IJIICKVW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-M7EWN4TF.js.map → chunk-JOUQZENX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2FNWQXZ2.js.map → chunk-JYFOV7FC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HLHSQ5CA.js.map → chunk-K2X6U4UA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-M6ASXYCU.js.map → chunk-KG44YSKD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YVKE5ZDM.js.map → chunk-KPMKHGEA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-ZHI6A5TN.js.map → chunk-MIQDDLB5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UJ4HJYWL.js.map → chunk-NLDFBC6J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WRKB56FC.js.map → chunk-NP22ERDF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQYG2V23.js.map → chunk-NU3IMIEA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3I3LRT2G.js.map → chunk-NVPZIJVR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JAF4TUQ7.js.map → chunk-ODALILG3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QZ7LT3XE.js.map → chunk-ONREO4ST.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3CMRNVTO.js.map → chunk-P74IZQ7A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZTRBSABY.js.map → chunk-PGY23YTC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H2QBAKLQ.js.map → chunk-PMOSXADO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-RI4JQQHU.js.map → chunk-PNTULOGU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GSEADLRH.js.map → chunk-Q7A43DS4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QSPARJWF.js.map → chunk-QEHQ2GVG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VJTAEIPC.js.map → chunk-QIPLHNP7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K7WNZ7KD.js.map → chunk-QKJGPFAF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNP64HOW.js.map → chunk-RLCHOOHC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IAPHYPRL.js.map → chunk-RMLWNPH2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UVBA6F5A.js.map → chunk-RRM5JYJC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6IIVBC56.js.map → chunk-S6MQESFR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QABYZYLU.js.map → chunk-SDQLJWBO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ANSJHDOZ.js.map → chunk-SELVXEZK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WD6MSYMP.js.map → chunk-TKOVBP6C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TZ2PSLLT.js.map → chunk-TQSZFPIS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WPAWZW7S.js.map → chunk-TSMHDIW4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TZRTLMWM.js.map → chunk-UFXU44HV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TWLDBKQU.js.map → chunk-ULTHRDBP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RA5AIAMP.js.map → chunk-UOHFKBUV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4RXTMU57.js.map → chunk-UY2ACEMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FIGXOCEQ.js.map → chunk-WUJQK4YV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T4BRCB6Z.js.map → chunk-XSJUSQAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UKUIIBDW.js.map → chunk-YAQEBNY7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-E2WC6S4P.js.map → chunk-YBLZ2VE7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y72FV7RM.js.map → chunk-YCQET3OT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-LY2XJ52M.js.map → chunk-YUSOJDWM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FS6UM5WH.js.map → chunk-ZI6VQWQ7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-AJWRTFZ5.js.map → close-CWODTPKG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-35M273DN.js.map → close-W6LI2PKM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-GMXYKBXT.js.map → close-many-CQFUY7MR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-NPYM7M7U.js.map → close-many-DLDDVSH5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-F53OBTOU.js.map → comments-E3TNTK24.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-HU4Q7RJX.js.map → comments-WGLHR7LB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-GSDZLTRC.js.map → copy-LXVDXH7B.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ODRWJWAM.js.map → copy-Q5ZJPUKR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-U57I7EAK.js.map → create-J5U6ND4K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-WWB7P2GT.js.map → create-LBVCYMEG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-MQIY2ZQS.js.map → delete-PMJBNY5G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-G7N4E2JO.js.map → delete-WNHB3LYW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-TTY6N2AV.js.map → deps-JZ7TMVCB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-TBZD7V6H.js.map → deps-OA26IS25.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-XT6YVFFX.js.map → docs-FEWB2DQB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-U5TRVCRS.js.map → docs-HA2AIDBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-M7GHYVFN.js.map → files-6YFBJRBG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-KKVUWB4V.js.map → files-EFIWKFTM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-3DVZOILD.js.map → focus-4QJR7FOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-JIHZLHDP.js.map → focus-POIW5LTJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-ITDUMK4N.js.map → history-compact-CKRPDTJN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-NAFCHLH7.js.map → history-compact-FWG2C7FZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-SONGPSHI.js.map → history-redact-BB3TGDAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-FGO3NSFW.js.map → history-redact-D225BHOZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-BSD53H2W.js.map → history-repair-6GEAM7HE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-NQ6RXVW6.js.map → history-repair-RQXKQHL4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-2NNEO46V.js.map → learnings-JLNLCOL5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-AWLYGBNV.js.map → learnings-RSNLSWDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-U725ATWZ.js.map → notes-2WDH6DXU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-AAQUU6T3.js.map → notes-GB47XXQQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-66GLMHIX.js.map → plan-DOVI2VMW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-B3BAB6X2.js.map → plan-VDCJ2PCN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-U7IM2DXV.js.map → profile-FAU7NZML.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-LZNUYHDB.js.map → profile-IVXQEL3D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-Q3UCILNR.js.map → restore-25DLT2Q2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-2XGHIVQ2.js.map → restore-YPMVUUEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-75K57FS3.js.map → schema-FNU3WE4O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-U42YA445.js.map → schema-NBCM3RAD.js.map} +0 -0
- /package/dist/{cli/commands → sdk}/extension/managed-state.d.ts +0 -0
|
@@ -0,0 +1,525 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module sdk/test/linked-command-detection
|
|
3
|
+
*
|
|
4
|
+
* Parses linked-test command invocations for sandbox and context-safety checks.
|
|
5
|
+
*/
|
|
6
|
+
// Pure, leaf-level helpers for detecting how linked-test shell commands invoke
|
|
7
|
+
// the pm CLI (directly, via npx/pnpm/npm exec, or a launcher subcommand) and for
|
|
8
|
+
// pulling structured context (subcommand, referenced item ids, runner) out of a
|
|
9
|
+
// normalized command string. Kept in core so SDK governance and CLI test
|
|
10
|
+
// execution share one dependency-direction-safe parser.
|
|
11
|
+
|
|
12
|
+
!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]="3b8460ce-e579-5c5a-94ca-b6cc616c088b")}catch(e){}}();
|
|
13
|
+
const PM_SUBCOMMANDS_WITH_ITEM_REFERENCE = new Set([
|
|
14
|
+
"get",
|
|
15
|
+
"history",
|
|
16
|
+
"restore",
|
|
17
|
+
"update",
|
|
18
|
+
"close",
|
|
19
|
+
"delete",
|
|
20
|
+
"append",
|
|
21
|
+
"claim",
|
|
22
|
+
"release",
|
|
23
|
+
"comments",
|
|
24
|
+
"notes",
|
|
25
|
+
"learnings",
|
|
26
|
+
"files",
|
|
27
|
+
"docs",
|
|
28
|
+
"deps",
|
|
29
|
+
"test",
|
|
30
|
+
]);
|
|
31
|
+
/** Public contract for pm global flags with value, shared by SDK and presentation-layer consumers. */
|
|
32
|
+
export const PM_GLOBAL_FLAGS_WITH_VALUE = new Set([
|
|
33
|
+
"--pm-path",
|
|
34
|
+
"--path",
|
|
35
|
+
"--author",
|
|
36
|
+
]);
|
|
37
|
+
/** Value-bearing flags accepted before item positionals by item-referencing commands. */
|
|
38
|
+
export const PM_ITEM_REFERENCE_FLAGS_WITH_VALUE = {
|
|
39
|
+
get: new Set([
|
|
40
|
+
"--depth",
|
|
41
|
+
"--fields",
|
|
42
|
+
"--tree-depth",
|
|
43
|
+
"--tree_depth",
|
|
44
|
+
"--at",
|
|
45
|
+
"--format",
|
|
46
|
+
]),
|
|
47
|
+
history: new Set(["--limit", "--field", "--format"]),
|
|
48
|
+
restore: new Set(["--message"]),
|
|
49
|
+
update: new Set([
|
|
50
|
+
"--title",
|
|
51
|
+
"-t",
|
|
52
|
+
"--description",
|
|
53
|
+
"-d",
|
|
54
|
+
"--body",
|
|
55
|
+
"-b",
|
|
56
|
+
"--status",
|
|
57
|
+
"-s",
|
|
58
|
+
"--close-reason",
|
|
59
|
+
"--close_reason",
|
|
60
|
+
"--priority",
|
|
61
|
+
"-p",
|
|
62
|
+
"--type",
|
|
63
|
+
"--tags",
|
|
64
|
+
"--add-tags",
|
|
65
|
+
"--add_tags",
|
|
66
|
+
"--remove-tags",
|
|
67
|
+
"--remove_tags",
|
|
68
|
+
"--deadline",
|
|
69
|
+
"--estimated-minutes",
|
|
70
|
+
"--estimate",
|
|
71
|
+
"--estimated_minutes",
|
|
72
|
+
"--acceptance-criteria",
|
|
73
|
+
"--ac",
|
|
74
|
+
"--acceptance_criteria",
|
|
75
|
+
"--definition-of-ready",
|
|
76
|
+
"--definition_of_ready",
|
|
77
|
+
"--order",
|
|
78
|
+
"--rank",
|
|
79
|
+
"--goal",
|
|
80
|
+
"--objective",
|
|
81
|
+
"--value",
|
|
82
|
+
"--impact",
|
|
83
|
+
"--outcome",
|
|
84
|
+
"--why-now",
|
|
85
|
+
"--why_now",
|
|
86
|
+
"--message",
|
|
87
|
+
"--assignee",
|
|
88
|
+
"--parent",
|
|
89
|
+
"--reviewer",
|
|
90
|
+
"--risk",
|
|
91
|
+
"--confidence",
|
|
92
|
+
"--sprint",
|
|
93
|
+
"--release",
|
|
94
|
+
"--blocked-by",
|
|
95
|
+
"--blocked_by",
|
|
96
|
+
"--blocked-reason",
|
|
97
|
+
"--blocked_reason",
|
|
98
|
+
"--unblock-note",
|
|
99
|
+
"--unblock_note",
|
|
100
|
+
"--reporter",
|
|
101
|
+
"--severity",
|
|
102
|
+
"--environment",
|
|
103
|
+
"--repro-steps",
|
|
104
|
+
"--repro_steps",
|
|
105
|
+
"--resolution",
|
|
106
|
+
"--expected-result",
|
|
107
|
+
"--expected_result",
|
|
108
|
+
"--expected",
|
|
109
|
+
"--actual-result",
|
|
110
|
+
"--actual_result",
|
|
111
|
+
"--actual",
|
|
112
|
+
"--affected-version",
|
|
113
|
+
"--affected_version",
|
|
114
|
+
"--fixed-version",
|
|
115
|
+
"--fixed_version",
|
|
116
|
+
"--component",
|
|
117
|
+
"--regression",
|
|
118
|
+
"--customer-impact",
|
|
119
|
+
"--customer_impact",
|
|
120
|
+
"--dep",
|
|
121
|
+
"--dep-remove",
|
|
122
|
+
"--dep_remove",
|
|
123
|
+
"--comment",
|
|
124
|
+
"--note",
|
|
125
|
+
"--learning",
|
|
126
|
+
"--file",
|
|
127
|
+
"--test",
|
|
128
|
+
"--doc",
|
|
129
|
+
"--reminder",
|
|
130
|
+
"--event",
|
|
131
|
+
"--type-option",
|
|
132
|
+
"--type_option",
|
|
133
|
+
"--field",
|
|
134
|
+
"--unset",
|
|
135
|
+
"--body-file",
|
|
136
|
+
]),
|
|
137
|
+
close: new Set([
|
|
138
|
+
"--reason",
|
|
139
|
+
"-r",
|
|
140
|
+
"--close-reason",
|
|
141
|
+
"--duplicate-of",
|
|
142
|
+
"-d",
|
|
143
|
+
"--message",
|
|
144
|
+
"-m",
|
|
145
|
+
"--validate-close",
|
|
146
|
+
"--resolution",
|
|
147
|
+
"--expected-result",
|
|
148
|
+
"--expected_result",
|
|
149
|
+
"--expected",
|
|
150
|
+
"--actual-result",
|
|
151
|
+
"--actual_result",
|
|
152
|
+
"--actual",
|
|
153
|
+
]),
|
|
154
|
+
delete: new Set(["--message"]),
|
|
155
|
+
append: new Set(["--body", "--text", "--message"]),
|
|
156
|
+
claim: new Set([
|
|
157
|
+
"--assignee",
|
|
158
|
+
"--message",
|
|
159
|
+
"--type",
|
|
160
|
+
"--tag",
|
|
161
|
+
"--priority",
|
|
162
|
+
"--assignee-filter",
|
|
163
|
+
"--parent",
|
|
164
|
+
"--sprint",
|
|
165
|
+
"--release",
|
|
166
|
+
"--max-attempts",
|
|
167
|
+
]),
|
|
168
|
+
release: new Set(["--assignee", "--message"]),
|
|
169
|
+
comments: new Set([
|
|
170
|
+
"--add",
|
|
171
|
+
"--body",
|
|
172
|
+
"--comment",
|
|
173
|
+
"--file",
|
|
174
|
+
"--edit",
|
|
175
|
+
"--delete",
|
|
176
|
+
"--limit",
|
|
177
|
+
"--message",
|
|
178
|
+
]),
|
|
179
|
+
notes: new Set([
|
|
180
|
+
"--add",
|
|
181
|
+
"--file",
|
|
182
|
+
"--edit",
|
|
183
|
+
"--delete",
|
|
184
|
+
"--limit",
|
|
185
|
+
"--message",
|
|
186
|
+
]),
|
|
187
|
+
learnings: new Set([
|
|
188
|
+
"--add",
|
|
189
|
+
"--file",
|
|
190
|
+
"--edit",
|
|
191
|
+
"--delete",
|
|
192
|
+
"--limit",
|
|
193
|
+
"--message",
|
|
194
|
+
]),
|
|
195
|
+
files: new Set([
|
|
196
|
+
"--add",
|
|
197
|
+
"--add-glob",
|
|
198
|
+
"--remove",
|
|
199
|
+
"--migrate",
|
|
200
|
+
"--note",
|
|
201
|
+
"--message",
|
|
202
|
+
]),
|
|
203
|
+
docs: new Set([
|
|
204
|
+
"--add",
|
|
205
|
+
"--add-glob",
|
|
206
|
+
"--remove",
|
|
207
|
+
"--migrate",
|
|
208
|
+
"--note",
|
|
209
|
+
"--message",
|
|
210
|
+
]),
|
|
211
|
+
deps: new Set([
|
|
212
|
+
"--format",
|
|
213
|
+
"--max-depth",
|
|
214
|
+
"--collapse",
|
|
215
|
+
"--node-limit",
|
|
216
|
+
"--edge-limit",
|
|
217
|
+
"--token-budget",
|
|
218
|
+
"--cursor",
|
|
219
|
+
]),
|
|
220
|
+
test: new Set([
|
|
221
|
+
"--add",
|
|
222
|
+
"--add-json",
|
|
223
|
+
"--remove",
|
|
224
|
+
"--match",
|
|
225
|
+
"--only-index",
|
|
226
|
+
"--timeout",
|
|
227
|
+
"--env-set",
|
|
228
|
+
"--env-clear",
|
|
229
|
+
"--pm-context",
|
|
230
|
+
"--message",
|
|
231
|
+
]),
|
|
232
|
+
};
|
|
233
|
+
/** Public contract for npx flags with value, shared by SDK and presentation-layer consumers. */
|
|
234
|
+
export const NPX_FLAGS_WITH_VALUE = new Set(["-p", "--package"]);
|
|
235
|
+
/** Public contract for npx flags whose value is the command string itself. */
|
|
236
|
+
export const NPX_COMMAND_STRING_FLAGS = new Set(["-c", "--call"]);
|
|
237
|
+
/** Public contract for pnpm global flags with value, shared by SDK and presentation-layer consumers. */
|
|
238
|
+
export const PNPM_GLOBAL_FLAGS_WITH_VALUE = new Set([
|
|
239
|
+
"-c",
|
|
240
|
+
"-C",
|
|
241
|
+
"--config",
|
|
242
|
+
"--dir",
|
|
243
|
+
"--filter",
|
|
244
|
+
"--workspace-dir",
|
|
245
|
+
]);
|
|
246
|
+
/** Public contract for npm global flags with value, shared by SDK and presentation-layer consumers. */
|
|
247
|
+
export const NPM_GLOBAL_FLAGS_WITH_VALUE = new Set([
|
|
248
|
+
"-C",
|
|
249
|
+
"--prefix",
|
|
250
|
+
"--userconfig",
|
|
251
|
+
"--cache",
|
|
252
|
+
]);
|
|
253
|
+
/** Public contract for yarn global flags with value, shared by SDK and presentation-layer consumers. */
|
|
254
|
+
export const YARN_GLOBAL_FLAGS_WITH_VALUE = new Set(["--cwd"]);
|
|
255
|
+
/** Public contract for bun global flags with value, shared by SDK and presentation-layer consumers. */
|
|
256
|
+
export const BUN_GLOBAL_FLAGS_WITH_VALUE = new Set(["--cwd"]);
|
|
257
|
+
/** Public contract for npm exec subcommands, shared by SDK and presentation-layer consumers. */
|
|
258
|
+
export const NPM_EXEC_SUBCOMMANDS = new Set(["exec", "x"]);
|
|
259
|
+
/** Public contract for script run subcommands, shared by SDK and presentation-layer consumers. */
|
|
260
|
+
export const SCRIPT_RUN_SUBCOMMANDS = new Set(["run", "run-script"]);
|
|
261
|
+
/** Public contract for script run flags with value, shared by SDK and presentation-layer consumers. */
|
|
262
|
+
export const SCRIPT_RUN_FLAGS_WITH_VALUE = new Set([
|
|
263
|
+
"-C",
|
|
264
|
+
"--dir",
|
|
265
|
+
"--cwd",
|
|
266
|
+
"-w",
|
|
267
|
+
"--workspace",
|
|
268
|
+
"--filter",
|
|
269
|
+
]);
|
|
270
|
+
/** Implements split normalized command segments for the public runtime surface of this module. */
|
|
271
|
+
export function splitNormalizedCommandSegments(normalizedCommand) {
|
|
272
|
+
return normalizedCommand
|
|
273
|
+
.split(/&&|\|\||\||;/)
|
|
274
|
+
.map((segment) => segment.trim())
|
|
275
|
+
.filter((segment) => segment.length > 0);
|
|
276
|
+
}
|
|
277
|
+
/** Extract pm CLI arguments from one normalized shell-command segment. */
|
|
278
|
+
export function extractPmInvocationArgsFromSegment(segment) {
|
|
279
|
+
const tokens = stripLeadingEnvAssignments(segment.split(" ").filter((token) => token.length > 0));
|
|
280
|
+
if (tokens.length === 0)
|
|
281
|
+
return null;
|
|
282
|
+
const [executable, ...args] = tokens;
|
|
283
|
+
if (isPmExecutableToken(executable) || isPmCliScriptToken(executable)) {
|
|
284
|
+
return args;
|
|
285
|
+
}
|
|
286
|
+
if (executable === "node" && args[0] && isPmCliScriptToken(args[0])) {
|
|
287
|
+
return args.slice(1);
|
|
288
|
+
}
|
|
289
|
+
const invocation = executable === "npx" || executable === "bunx"
|
|
290
|
+
? parseNpxCommand(args)
|
|
291
|
+
: executable === "pnpm"
|
|
292
|
+
? parsePnpmDlxCommand(args)
|
|
293
|
+
: executable === "npm"
|
|
294
|
+
? parseNpmExecCommand(args)
|
|
295
|
+
: null;
|
|
296
|
+
return invocation &&
|
|
297
|
+
(isPmExecutableToken(invocation.command) ||
|
|
298
|
+
isPmCliPackageToken(invocation.command))
|
|
299
|
+
? invocation.args
|
|
300
|
+
: null;
|
|
301
|
+
}
|
|
302
|
+
/** Extract referenced item IDs from pm CLI invocations embedded in one command. */
|
|
303
|
+
export const extractReferencedPmItemIdsFromCommand = (command, idPrefix = "pm") => {
|
|
304
|
+
const normalizedPrefix = idPrefix.trim().toLowerCase().replace(/-+$/, "");
|
|
305
|
+
if (normalizedPrefix.length === 0)
|
|
306
|
+
return [];
|
|
307
|
+
const normalizedCommand = command
|
|
308
|
+
.trim()
|
|
309
|
+
.replaceAll("\\", "/")
|
|
310
|
+
.replaceAll('"', "")
|
|
311
|
+
.replaceAll("'", "")
|
|
312
|
+
.replaceAll(/\s+/g, " ")
|
|
313
|
+
.toLowerCase();
|
|
314
|
+
const ids = new Set();
|
|
315
|
+
for (const segment of splitNormalizedCommandSegments(normalizedCommand)) {
|
|
316
|
+
const invocationArgs = extractPmInvocationArgsFromSegment(segment);
|
|
317
|
+
const context = invocationArgs
|
|
318
|
+
? resolvePmSubcommandContext(invocationArgs)
|
|
319
|
+
: null;
|
|
320
|
+
const candidate = context && PM_SUBCOMMANDS_WITH_ITEM_REFERENCE.has(context.subcommand)
|
|
321
|
+
? firstPositionalToken(context.remaining, PM_ITEM_REFERENCE_FLAGS_WITH_VALUE[context.subcommand])
|
|
322
|
+
: undefined;
|
|
323
|
+
const normalizedCandidate = candidate?.trim().toLowerCase();
|
|
324
|
+
if (normalizedCandidate?.startsWith(`${normalizedPrefix}-`) === true &&
|
|
325
|
+
normalizedCandidate.length > normalizedPrefix.length + 1) {
|
|
326
|
+
ids.add(candidate);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
return [...ids].sort((left, right) => left.localeCompare(right));
|
|
330
|
+
};
|
|
331
|
+
/** Implements strip leading env assignments for the public runtime surface of this module. */
|
|
332
|
+
export function stripLeadingEnvAssignments(tokens) {
|
|
333
|
+
let start = 0;
|
|
334
|
+
if (tokens[start] === "env") {
|
|
335
|
+
start += 1;
|
|
336
|
+
}
|
|
337
|
+
while (start < tokens.length) {
|
|
338
|
+
const token = tokens[start];
|
|
339
|
+
if (/^(?:[a-z_][a-z0-9_]*|\$env:[a-z_][a-z0-9_]*)=.*/.test(token)) {
|
|
340
|
+
start += 1;
|
|
341
|
+
continue;
|
|
342
|
+
}
|
|
343
|
+
break;
|
|
344
|
+
}
|
|
345
|
+
return tokens.slice(start);
|
|
346
|
+
}
|
|
347
|
+
/** Implements first pm subcommand for the public runtime surface of this module. */
|
|
348
|
+
export function firstPmSubcommand(args) {
|
|
349
|
+
let index = 0;
|
|
350
|
+
while (index < args.length) {
|
|
351
|
+
const token = args[index];
|
|
352
|
+
if (token === "--") {
|
|
353
|
+
index += 1;
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
if (token.startsWith("-")) {
|
|
357
|
+
if (PM_GLOBAL_FLAGS_WITH_VALUE.has(token)) {
|
|
358
|
+
index += 2;
|
|
359
|
+
continue;
|
|
360
|
+
}
|
|
361
|
+
index += 1;
|
|
362
|
+
continue;
|
|
363
|
+
}
|
|
364
|
+
return token;
|
|
365
|
+
}
|
|
366
|
+
return undefined;
|
|
367
|
+
}
|
|
368
|
+
/** Implements check whether pm executable token for the public runtime surface of this module. */
|
|
369
|
+
export function isPmExecutableToken(token) {
|
|
370
|
+
return (token === "pm" ||
|
|
371
|
+
token === "pm.cmd" ||
|
|
372
|
+
token === "pm.exe" ||
|
|
373
|
+
token.endsWith("/pm") ||
|
|
374
|
+
token.endsWith("/pm.cmd") ||
|
|
375
|
+
token.endsWith("/pm.exe"));
|
|
376
|
+
}
|
|
377
|
+
/** Implements normalize package specifier for the public runtime surface of this module. */
|
|
378
|
+
export function normalizePackageSpecifier(token) {
|
|
379
|
+
const trimmed = token.trim();
|
|
380
|
+
if (!trimmed.startsWith("@")) {
|
|
381
|
+
const versionSeparator = trimmed.indexOf("@");
|
|
382
|
+
return versionSeparator === -1
|
|
383
|
+
? trimmed
|
|
384
|
+
: trimmed.slice(0, versionSeparator);
|
|
385
|
+
}
|
|
386
|
+
const scopeSeparator = trimmed.indexOf("/");
|
|
387
|
+
if (scopeSeparator === -1) {
|
|
388
|
+
return trimmed;
|
|
389
|
+
}
|
|
390
|
+
const versionSeparator = trimmed.indexOf("@", scopeSeparator + 1);
|
|
391
|
+
return versionSeparator === -1 ? trimmed : trimmed.slice(0, versionSeparator);
|
|
392
|
+
}
|
|
393
|
+
/** Implements check whether pm cli package token for the public runtime surface of this module. */
|
|
394
|
+
export function isPmCliPackageToken(token) {
|
|
395
|
+
const normalizedSpecifier = normalizePackageSpecifier(token);
|
|
396
|
+
return (normalizedSpecifier === "pm-cli" ||
|
|
397
|
+
normalizedSpecifier.endsWith("/pm-cli") ||
|
|
398
|
+
token === "pm-cli" ||
|
|
399
|
+
token.endsWith("/pm-cli"));
|
|
400
|
+
}
|
|
401
|
+
/** Implements check whether pm cli script token for the public runtime surface of this module. */
|
|
402
|
+
export function isPmCliScriptToken(token) {
|
|
403
|
+
return (token === "dist/cli.js" ||
|
|
404
|
+
token === "./dist/cli.js" ||
|
|
405
|
+
token.endsWith("/dist/cli.js"));
|
|
406
|
+
}
|
|
407
|
+
/** Implements parse npx command for the public runtime surface of this module. */
|
|
408
|
+
export function parseNpxCommand(tokens) {
|
|
409
|
+
let index = 0;
|
|
410
|
+
while (index < tokens.length) {
|
|
411
|
+
const token = tokens[index];
|
|
412
|
+
if (token === "--") {
|
|
413
|
+
index += 1;
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
if (!token.startsWith("-")) {
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
const inlineCommandMatch = /^(?:-c|--call)=(.*)$/.exec(token);
|
|
420
|
+
if (inlineCommandMatch) {
|
|
421
|
+
const command = inlineCommandMatch[1];
|
|
422
|
+
return command ? { command, args: tokens.slice(index + 1) } : null;
|
|
423
|
+
}
|
|
424
|
+
if (NPX_COMMAND_STRING_FLAGS.has(token)) {
|
|
425
|
+
index += 1;
|
|
426
|
+
break;
|
|
427
|
+
}
|
|
428
|
+
index += NPX_FLAGS_WITH_VALUE.has(token) && !token.includes("=") ? 2 : 1;
|
|
429
|
+
}
|
|
430
|
+
const command = tokens[index];
|
|
431
|
+
if (!command) {
|
|
432
|
+
return null;
|
|
433
|
+
}
|
|
434
|
+
return {
|
|
435
|
+
command,
|
|
436
|
+
args: tokens.slice(index + 1),
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
/** Implements parse launcher subcommand for the public runtime surface of this module. */
|
|
440
|
+
export function parseLauncherSubcommand(tokens, flagsWithValue) {
|
|
441
|
+
let index = 0;
|
|
442
|
+
while (index < tokens.length) {
|
|
443
|
+
const token = tokens[index];
|
|
444
|
+
if (token === "--") {
|
|
445
|
+
index += 1;
|
|
446
|
+
continue;
|
|
447
|
+
}
|
|
448
|
+
if (token.startsWith("-")) {
|
|
449
|
+
if (token.includes("=")) {
|
|
450
|
+
index += 1;
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
if (flagsWithValue.has(token)) {
|
|
454
|
+
index += 2;
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
index += 1;
|
|
458
|
+
continue;
|
|
459
|
+
}
|
|
460
|
+
return {
|
|
461
|
+
subcommand: token,
|
|
462
|
+
args: tokens.slice(index + 1),
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
467
|
+
/** Implements parse pnpm dlx command for the public runtime surface of this module. */
|
|
468
|
+
export function parsePnpmDlxCommand(tokens) {
|
|
469
|
+
const parsed = parseLauncherSubcommand(tokens, PNPM_GLOBAL_FLAGS_WITH_VALUE);
|
|
470
|
+
if (parsed?.subcommand !== "dlx") {
|
|
471
|
+
return null;
|
|
472
|
+
}
|
|
473
|
+
return parseNpxCommand(parsed.args);
|
|
474
|
+
}
|
|
475
|
+
/** Implements parse npm exec command for the public runtime surface of this module. */
|
|
476
|
+
export function parseNpmExecCommand(tokens) {
|
|
477
|
+
const parsed = parseLauncherSubcommand(tokens, NPM_GLOBAL_FLAGS_WITH_VALUE);
|
|
478
|
+
if (!parsed || !NPM_EXEC_SUBCOMMANDS.has(parsed.subcommand)) {
|
|
479
|
+
return null;
|
|
480
|
+
}
|
|
481
|
+
return parseNpxCommand(parsed.args);
|
|
482
|
+
}
|
|
483
|
+
/** Implements resolve pm subcommand context for the public runtime surface of this module. */
|
|
484
|
+
export function resolvePmSubcommandContext(args) {
|
|
485
|
+
let index = 0;
|
|
486
|
+
while (index < args.length) {
|
|
487
|
+
const token = args[index];
|
|
488
|
+
if (token === "--") {
|
|
489
|
+
index += 1;
|
|
490
|
+
continue;
|
|
491
|
+
}
|
|
492
|
+
if (token.startsWith("-")) {
|
|
493
|
+
if (PM_GLOBAL_FLAGS_WITH_VALUE.has(token)) {
|
|
494
|
+
index += 2;
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
index += 1;
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
return {
|
|
501
|
+
subcommand: token,
|
|
502
|
+
remaining: args.slice(index + 1),
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
return null;
|
|
506
|
+
}
|
|
507
|
+
/** Implements first positional token for the public runtime surface of this module. */
|
|
508
|
+
export function firstPositionalToken(tokens, flagsWithValue = new Set()) {
|
|
509
|
+
for (let index = 0; index < tokens.length; index += 1) {
|
|
510
|
+
const token = tokens[index];
|
|
511
|
+
if (token === "--") {
|
|
512
|
+
return tokens[index + 1];
|
|
513
|
+
}
|
|
514
|
+
if (!token.startsWith("-")) {
|
|
515
|
+
return token;
|
|
516
|
+
}
|
|
517
|
+
if (!token.includes("=") &&
|
|
518
|
+
(PM_GLOBAL_FLAGS_WITH_VALUE.has(token) || flagsWithValue.has(token))) {
|
|
519
|
+
index += 1;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return undefined;
|
|
523
|
+
}
|
|
524
|
+
//# sourceMappingURL=linked-command-detection.js.map
|
|
525
|
+
//# debugId=3b8460ce-e579-5c5a-94ca-b6cc616c088b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-command-detection.js","sources":["sdk/test/linked-command-detection.ts"],"sourceRoot":"/","sourcesContent":["/**\n * @module sdk/test/linked-command-detection\n *\n * Parses linked-test command invocations for sandbox and context-safety checks.\n */\n// Pure, leaf-level helpers for detecting how linked-test shell commands invoke\n// the pm CLI (directly, via npx/pnpm/npm exec, or a launcher subcommand) and for\n// pulling structured context (subcommand, referenced item ids, runner) out of a\n// normalized command string. Kept in core so SDK governance and CLI test\n// execution share one dependency-direction-safe parser.\n\nconst PM_SUBCOMMANDS_WITH_ITEM_REFERENCE = new Set([\n \"get\",\n \"history\",\n \"restore\",\n \"update\",\n \"close\",\n \"delete\",\n \"append\",\n \"claim\",\n \"release\",\n \"comments\",\n \"notes\",\n \"learnings\",\n \"files\",\n \"docs\",\n \"deps\",\n \"test\",\n]);\n\n/** Public contract for pm global flags with value, shared by SDK and presentation-layer consumers. */\nexport const PM_GLOBAL_FLAGS_WITH_VALUE = new Set([\n \"--pm-path\",\n \"--path\",\n \"--author\",\n]);\n/** Value-bearing flags accepted before item positionals by item-referencing commands. */\nexport const PM_ITEM_REFERENCE_FLAGS_WITH_VALUE: Readonly<\n Record<string, ReadonlySet<string>>\n> = {\n get: new Set([\n \"--depth\",\n \"--fields\",\n \"--tree-depth\",\n \"--tree_depth\",\n \"--at\",\n \"--format\",\n ]),\n history: new Set([\"--limit\", \"--field\", \"--format\"]),\n restore: new Set([\"--message\"]),\n update: new Set([\n \"--title\",\n \"-t\",\n \"--description\",\n \"-d\",\n \"--body\",\n \"-b\",\n \"--status\",\n \"-s\",\n \"--close-reason\",\n \"--close_reason\",\n \"--priority\",\n \"-p\",\n \"--type\",\n \"--tags\",\n \"--add-tags\",\n \"--add_tags\",\n \"--remove-tags\",\n \"--remove_tags\",\n \"--deadline\",\n \"--estimated-minutes\",\n \"--estimate\",\n \"--estimated_minutes\",\n \"--acceptance-criteria\",\n \"--ac\",\n \"--acceptance_criteria\",\n \"--definition-of-ready\",\n \"--definition_of_ready\",\n \"--order\",\n \"--rank\",\n \"--goal\",\n \"--objective\",\n \"--value\",\n \"--impact\",\n \"--outcome\",\n \"--why-now\",\n \"--why_now\",\n \"--message\",\n \"--assignee\",\n \"--parent\",\n \"--reviewer\",\n \"--risk\",\n \"--confidence\",\n \"--sprint\",\n \"--release\",\n \"--blocked-by\",\n \"--blocked_by\",\n \"--blocked-reason\",\n \"--blocked_reason\",\n \"--unblock-note\",\n \"--unblock_note\",\n \"--reporter\",\n \"--severity\",\n \"--environment\",\n \"--repro-steps\",\n \"--repro_steps\",\n \"--resolution\",\n \"--expected-result\",\n \"--expected_result\",\n \"--expected\",\n \"--actual-result\",\n \"--actual_result\",\n \"--actual\",\n \"--affected-version\",\n \"--affected_version\",\n \"--fixed-version\",\n \"--fixed_version\",\n \"--component\",\n \"--regression\",\n \"--customer-impact\",\n \"--customer_impact\",\n \"--dep\",\n \"--dep-remove\",\n \"--dep_remove\",\n \"--comment\",\n \"--note\",\n \"--learning\",\n \"--file\",\n \"--test\",\n \"--doc\",\n \"--reminder\",\n \"--event\",\n \"--type-option\",\n \"--type_option\",\n \"--field\",\n \"--unset\",\n \"--body-file\",\n ]),\n close: new Set([\n \"--reason\",\n \"-r\",\n \"--close-reason\",\n \"--duplicate-of\",\n \"-d\",\n \"--message\",\n \"-m\",\n \"--validate-close\",\n \"--resolution\",\n \"--expected-result\",\n \"--expected_result\",\n \"--expected\",\n \"--actual-result\",\n \"--actual_result\",\n \"--actual\",\n ]),\n delete: new Set([\"--message\"]),\n append: new Set([\"--body\", \"--text\", \"--message\"]),\n claim: new Set([\n \"--assignee\",\n \"--message\",\n \"--type\",\n \"--tag\",\n \"--priority\",\n \"--assignee-filter\",\n \"--parent\",\n \"--sprint\",\n \"--release\",\n \"--max-attempts\",\n ]),\n release: new Set([\"--assignee\", \"--message\"]),\n comments: new Set([\n \"--add\",\n \"--body\",\n \"--comment\",\n \"--file\",\n \"--edit\",\n \"--delete\",\n \"--limit\",\n \"--message\",\n ]),\n notes: new Set([\n \"--add\",\n \"--file\",\n \"--edit\",\n \"--delete\",\n \"--limit\",\n \"--message\",\n ]),\n learnings: new Set([\n \"--add\",\n \"--file\",\n \"--edit\",\n \"--delete\",\n \"--limit\",\n \"--message\",\n ]),\n files: new Set([\n \"--add\",\n \"--add-glob\",\n \"--remove\",\n \"--migrate\",\n \"--note\",\n \"--message\",\n ]),\n docs: new Set([\n \"--add\",\n \"--add-glob\",\n \"--remove\",\n \"--migrate\",\n \"--note\",\n \"--message\",\n ]),\n deps: new Set([\n \"--format\",\n \"--max-depth\",\n \"--collapse\",\n \"--node-limit\",\n \"--edge-limit\",\n \"--token-budget\",\n \"--cursor\",\n ]),\n test: new Set([\n \"--add\",\n \"--add-json\",\n \"--remove\",\n \"--match\",\n \"--only-index\",\n \"--timeout\",\n \"--env-set\",\n \"--env-clear\",\n \"--pm-context\",\n \"--message\",\n ]),\n};\n/** Public contract for npx flags with value, shared by SDK and presentation-layer consumers. */\nexport const NPX_FLAGS_WITH_VALUE = new Set([\"-p\", \"--package\"]);\n/** Public contract for npx flags whose value is the command string itself. */\nexport const NPX_COMMAND_STRING_FLAGS = new Set([\"-c\", \"--call\"]);\n/** Public contract for pnpm global flags with value, shared by SDK and presentation-layer consumers. */\nexport const PNPM_GLOBAL_FLAGS_WITH_VALUE = new Set([\n \"-c\",\n \"-C\",\n \"--config\",\n \"--dir\",\n \"--filter\",\n \"--workspace-dir\",\n]);\n/** Public contract for npm global flags with value, shared by SDK and presentation-layer consumers. */\nexport const NPM_GLOBAL_FLAGS_WITH_VALUE = new Set([\n \"-C\",\n \"--prefix\",\n \"--userconfig\",\n \"--cache\",\n]);\n/** Public contract for yarn global flags with value, shared by SDK and presentation-layer consumers. */\nexport const YARN_GLOBAL_FLAGS_WITH_VALUE = new Set([\"--cwd\"]);\n/** Public contract for bun global flags with value, shared by SDK and presentation-layer consumers. */\nexport const BUN_GLOBAL_FLAGS_WITH_VALUE = new Set([\"--cwd\"]);\n/** Public contract for npm exec subcommands, shared by SDK and presentation-layer consumers. */\nexport const NPM_EXEC_SUBCOMMANDS = new Set([\"exec\", \"x\"]);\n/** Public contract for script run subcommands, shared by SDK and presentation-layer consumers. */\nexport const SCRIPT_RUN_SUBCOMMANDS = new Set([\"run\", \"run-script\"]);\n/** Public contract for script run flags with value, shared by SDK and presentation-layer consumers. */\nexport const SCRIPT_RUN_FLAGS_WITH_VALUE = new Set([\n \"-C\",\n \"--dir\",\n \"--cwd\",\n \"-w\",\n \"--workspace\",\n \"--filter\",\n]);\n\n/** Implements split normalized command segments for the public runtime surface of this module. */\nexport function splitNormalizedCommandSegments(\n normalizedCommand: string,\n): string[] {\n return normalizedCommand\n .split(/&&|\\|\\||\\||;/)\n .map((segment) => segment.trim())\n .filter((segment) => segment.length > 0);\n}\n\n/** Extract pm CLI arguments from one normalized shell-command segment. */\nexport function extractPmInvocationArgsFromSegment(\n segment: string,\n): string[] | null {\n const tokens = stripLeadingEnvAssignments(\n segment.split(\" \").filter((token) => token.length > 0),\n );\n if (tokens.length === 0) return null;\n const [executable, ...args] = tokens;\n if (isPmExecutableToken(executable) || isPmCliScriptToken(executable)) {\n return args;\n }\n if (executable === \"node\" && args[0] && isPmCliScriptToken(args[0])) {\n return args.slice(1);\n }\n const invocation =\n executable === \"npx\" || executable === \"bunx\"\n ? parseNpxCommand(args)\n : executable === \"pnpm\"\n ? parsePnpmDlxCommand(args)\n : executable === \"npm\"\n ? parseNpmExecCommand(args)\n : null;\n return invocation &&\n (isPmExecutableToken(invocation.command) ||\n isPmCliPackageToken(invocation.command))\n ? invocation.args\n : null;\n}\n\n/** Extract referenced item IDs from pm CLI invocations embedded in one command. */\nexport const extractReferencedPmItemIdsFromCommand = (\n command: string,\n idPrefix = \"pm\",\n): string[] => {\n const normalizedPrefix = idPrefix.trim().toLowerCase().replace(/-+$/, \"\");\n if (normalizedPrefix.length === 0) return [];\n const normalizedCommand = command\n .trim()\n .replaceAll(\"\\\\\", \"/\")\n .replaceAll('\"', \"\")\n .replaceAll(\"'\", \"\")\n .replaceAll(/\\s+/g, \" \")\n .toLowerCase();\n const ids = new Set<string>();\n for (const segment of splitNormalizedCommandSegments(normalizedCommand)) {\n const invocationArgs = extractPmInvocationArgsFromSegment(segment);\n const context = invocationArgs\n ? resolvePmSubcommandContext(invocationArgs)\n : null;\n const candidate =\n context && PM_SUBCOMMANDS_WITH_ITEM_REFERENCE.has(context.subcommand)\n ? firstPositionalToken(\n context.remaining,\n PM_ITEM_REFERENCE_FLAGS_WITH_VALUE[context.subcommand],\n )\n : undefined;\n const normalizedCandidate = candidate?.trim().toLowerCase();\n if (\n normalizedCandidate?.startsWith(`${normalizedPrefix}-`) === true &&\n normalizedCandidate.length > normalizedPrefix.length + 1\n ) {\n ids.add(candidate as string);\n }\n }\n return [...ids].sort((left, right) => left.localeCompare(right));\n};\n\n/** Implements strip leading env assignments for the public runtime surface of this module. */\nexport function stripLeadingEnvAssignments(tokens: string[]): string[] {\n let start = 0;\n if (tokens[start] === \"env\") {\n start += 1;\n }\n while (start < tokens.length) {\n const token = tokens[start];\n if (/^(?:[a-z_][a-z0-9_]*|\\$env:[a-z_][a-z0-9_]*)=.*/.test(token)) {\n start += 1;\n continue;\n }\n break;\n }\n return tokens.slice(start);\n}\n\n/** Implements first pm subcommand for the public runtime surface of this module. */\nexport function firstPmSubcommand(args: string[]): string | undefined {\n let index = 0;\n while (index < args.length) {\n const token = args[index];\n if (token === \"--\") {\n index += 1;\n continue;\n }\n if (token.startsWith(\"-\")) {\n if (PM_GLOBAL_FLAGS_WITH_VALUE.has(token)) {\n index += 2;\n continue;\n }\n index += 1;\n continue;\n }\n return token;\n }\n return undefined;\n}\n\n/** Implements check whether pm executable token for the public runtime surface of this module. */\nexport function isPmExecutableToken(token: string): boolean {\n return (\n token === \"pm\" ||\n token === \"pm.cmd\" ||\n token === \"pm.exe\" ||\n token.endsWith(\"/pm\") ||\n token.endsWith(\"/pm.cmd\") ||\n token.endsWith(\"/pm.exe\")\n );\n}\n\n/** Implements normalize package specifier for the public runtime surface of this module. */\nexport function normalizePackageSpecifier(token: string): string {\n const trimmed = token.trim();\n if (!trimmed.startsWith(\"@\")) {\n const versionSeparator = trimmed.indexOf(\"@\");\n return versionSeparator === -1\n ? trimmed\n : trimmed.slice(0, versionSeparator);\n }\n const scopeSeparator = trimmed.indexOf(\"/\");\n if (scopeSeparator === -1) {\n return trimmed;\n }\n const versionSeparator = trimmed.indexOf(\"@\", scopeSeparator + 1);\n return versionSeparator === -1 ? trimmed : trimmed.slice(0, versionSeparator);\n}\n\n/** Implements check whether pm cli package token for the public runtime surface of this module. */\nexport function isPmCliPackageToken(token: string): boolean {\n const normalizedSpecifier = normalizePackageSpecifier(token);\n return (\n normalizedSpecifier === \"pm-cli\" ||\n normalizedSpecifier.endsWith(\"/pm-cli\") ||\n token === \"pm-cli\" ||\n token.endsWith(\"/pm-cli\")\n );\n}\n\n/** Implements check whether pm cli script token for the public runtime surface of this module. */\nexport function isPmCliScriptToken(token: string): boolean {\n return (\n token === \"dist/cli.js\" ||\n token === \"./dist/cli.js\" ||\n token.endsWith(\"/dist/cli.js\")\n );\n}\n\n/** Implements parse npx command for the public runtime surface of this module. */\nexport function parseNpxCommand(\n tokens: string[],\n): { command: string; args: string[] } | null {\n let index = 0;\n while (index < tokens.length) {\n const token = tokens[index];\n if (token === \"--\") {\n index += 1;\n break;\n }\n if (!token.startsWith(\"-\")) {\n break;\n }\n const inlineCommandMatch = /^(?:-c|--call)=(.*)$/.exec(token);\n if (inlineCommandMatch) {\n const command = inlineCommandMatch[1];\n return command ? { command, args: tokens.slice(index + 1) } : null;\n }\n if (NPX_COMMAND_STRING_FLAGS.has(token)) {\n index += 1;\n break;\n }\n index += NPX_FLAGS_WITH_VALUE.has(token) && !token.includes(\"=\") ? 2 : 1;\n }\n const command = tokens[index];\n if (!command) {\n return null;\n }\n return {\n command,\n args: tokens.slice(index + 1),\n };\n}\n\n/** Implements parse launcher subcommand for the public runtime surface of this module. */\nexport function parseLauncherSubcommand(\n tokens: string[],\n flagsWithValue: Set<string>,\n): { subcommand: string; args: string[] } | null {\n let index = 0;\n while (index < tokens.length) {\n const token = tokens[index];\n if (token === \"--\") {\n index += 1;\n continue;\n }\n if (token.startsWith(\"-\")) {\n if (token.includes(\"=\")) {\n index += 1;\n continue;\n }\n if (flagsWithValue.has(token)) {\n index += 2;\n continue;\n }\n index += 1;\n continue;\n }\n return {\n subcommand: token,\n args: tokens.slice(index + 1),\n };\n }\n return null;\n}\n\n/** Implements parse pnpm dlx command for the public runtime surface of this module. */\nexport function parsePnpmDlxCommand(\n tokens: string[],\n): { command: string; args: string[] } | null {\n const parsed = parseLauncherSubcommand(tokens, PNPM_GLOBAL_FLAGS_WITH_VALUE);\n if (parsed?.subcommand !== \"dlx\") {\n return null;\n }\n return parseNpxCommand(parsed.args);\n}\n\n/** Implements parse npm exec command for the public runtime surface of this module. */\nexport function parseNpmExecCommand(\n tokens: string[],\n): { command: string; args: string[] } | null {\n const parsed = parseLauncherSubcommand(tokens, NPM_GLOBAL_FLAGS_WITH_VALUE);\n if (!parsed || !NPM_EXEC_SUBCOMMANDS.has(parsed.subcommand)) {\n return null;\n }\n return parseNpxCommand(parsed.args);\n}\n\n/** Implements resolve pm subcommand context for the public runtime surface of this module. */\nexport function resolvePmSubcommandContext(\n args: string[],\n): { subcommand: string; remaining: string[] } | null {\n let index = 0;\n while (index < args.length) {\n const token = args[index];\n if (token === \"--\") {\n index += 1;\n continue;\n }\n if (token.startsWith(\"-\")) {\n if (PM_GLOBAL_FLAGS_WITH_VALUE.has(token)) {\n index += 2;\n continue;\n }\n index += 1;\n continue;\n }\n return {\n subcommand: token,\n remaining: args.slice(index + 1),\n };\n }\n return null;\n}\n\n/** Implements first positional token for the public runtime surface of this module. */\nexport function firstPositionalToken(\n tokens: string[],\n flagsWithValue: ReadonlySet<string> = new Set(),\n): string | undefined {\n for (let index = 0; index < tokens.length; index += 1) {\n const token = tokens[index];\n if (token === \"--\") {\n return tokens[index + 1];\n }\n if (!token.startsWith(\"-\")) {\n return token;\n }\n if (\n !token.includes(\"=\") &&\n (PM_GLOBAL_FLAGS_WITH_VALUE.has(token) || flagsWithValue.has(token))\n ) {\n index += 1;\n }\n }\n return undefined;\n}\n"],"names":[],"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