@unbrained/pm-cli 2026.6.13 → 2026.6.17
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 +102 -0
- package/README.md +1 -1
- package/dist/cli/bootstrap-args.d.ts +29 -0
- package/dist/cli/bootstrap-args.js +11 -4
- package/dist/cli/bootstrap-args.js.map +1 -1
- package/dist/cli/commander-usage.d.ts +12 -0
- package/dist/cli/commander-usage.js +18 -7
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/activity.d.ts +19 -0
- package/dist/cli/commands/activity.js +12 -2
- package/dist/cli/commands/activity.js.map +1 -1
- package/dist/cli/commands/aggregate.d.ts +58 -0
- package/dist/cli/commands/aggregate.js +48 -15
- package/dist/cli/commands/aggregate.js.map +1 -1
- package/dist/cli/commands/annotation-command.d.ts +6 -1
- package/dist/cli/commands/annotation-command.js +72 -2
- package/dist/cli/commands/annotation-command.js.map +1 -1
- package/dist/cli/commands/append.js +4 -3
- package/dist/cli/commands/append.js.map +1 -1
- package/dist/cli/commands/close-many.d.ts +20 -0
- package/dist/cli/commands/close-many.js +14 -23
- package/dist/cli/commands/close-many.js.map +1 -1
- package/dist/cli/commands/close.js +37 -4
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/comments-audit.js +3 -2
- package/dist/cli/commands/comments-audit.js.map +1 -1
- package/dist/cli/commands/comments.d.ts +2 -0
- package/dist/cli/commands/comments.js +49 -23
- package/dist/cli/commands/comments.js.map +1 -1
- package/dist/cli/commands/completion.js +362 -15
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +51 -1
- package/dist/cli/commands/config.js +50 -12
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/context.d.ts +79 -1
- package/dist/cli/commands/context.js +151 -25
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/contracts.d.ts +80 -1
- package/dist/cli/commands/contracts.js +54 -4
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.d.ts +51 -0
- package/dist/cli/commands/create.js +137 -18
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/dedupe-audit.d.ts +33 -0
- package/dist/cli/commands/dedupe-audit.js +18 -14
- package/dist/cli/commands/dedupe-audit.js.map +1 -1
- package/dist/cli/commands/deps.js +7 -4
- package/dist/cli/commands/deps.js.map +1 -1
- package/dist/cli/commands/event-validation-messages.js +3 -3
- package/dist/cli/commands/event-validation-messages.js.map +1 -1
- package/dist/cli/commands/extension/bundled-catalog.d.ts +7 -0
- package/dist/cli/commands/extension/bundled-catalog.js +19 -15
- package/dist/cli/commands/extension/bundled-catalog.js.map +1 -1
- package/dist/cli/commands/extension/install-sources.d.ts +41 -1
- package/dist/cli/commands/extension/install-sources.js +26 -8
- package/dist/cli/commands/extension/install-sources.js.map +1 -1
- package/dist/cli/commands/extension/shared.d.ts +5 -0
- package/dist/cli/commands/extension/shared.js +9 -3
- package/dist/cli/commands/extension/shared.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +133 -1
- package/dist/cli/commands/extension.js +127 -9
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/files.d.ts +30 -1
- package/dist/cli/commands/files.js +21 -2
- package/dist/cli/commands/files.js.map +1 -1
- package/dist/cli/commands/focus.d.ts +11 -0
- package/dist/cli/commands/focus.js +86 -0
- package/dist/cli/commands/focus.js.map +1 -0
- package/dist/cli/commands/get.d.ts +9 -2
- package/dist/cli/commands/get.js +34 -6
- package/dist/cli/commands/get.js.map +1 -1
- package/dist/cli/commands/guide.d.ts +5 -0
- package/dist/cli/commands/guide.js +6 -3
- package/dist/cli/commands/guide.js.map +1 -1
- package/dist/cli/commands/health.d.ts +109 -0
- package/dist/cli/commands/health.js +87 -35
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history-compact.js +27 -36
- package/dist/cli/commands/history-compact.js.map +1 -1
- package/dist/cli/commands/history-redact.d.ts +46 -0
- package/dist/cli/commands/history-redact.js +99 -67
- package/dist/cli/commands/history-redact.js.map +1 -1
- package/dist/cli/commands/history-repair.js +34 -37
- package/dist/cli/commands/history-repair.js.map +1 -1
- package/dist/cli/commands/history.js +6 -2
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/index.d.ts +4 -1
- package/dist/cli/commands/index.js +6 -3
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init-agent-guidance.d.ts +54 -0
- package/dist/cli/commands/init-agent-guidance.js +31 -4
- package/dist/cli/commands/init-agent-guidance.js.map +1 -1
- package/dist/cli/commands/init.d.ts +38 -2
- package/dist/cli/commands/init.js +50 -64
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/learnings.js +4 -3
- package/dist/cli/commands/learnings.js.map +1 -1
- package/dist/cli/commands/lifecycle-transitions.d.ts +23 -0
- package/dist/cli/commands/lifecycle-transitions.js +41 -0
- package/dist/cli/commands/lifecycle-transitions.js.map +1 -0
- package/dist/cli/commands/linked-artifacts.d.ts +5 -0
- package/dist/cli/commands/linked-artifacts.js +18 -4
- package/dist/cli/commands/linked-artifacts.js.map +1 -1
- package/dist/cli/commands/linked-test-parsers.d.ts +5 -0
- package/dist/cli/commands/linked-test-parsers.js +5 -2
- package/dist/cli/commands/linked-test-parsers.js.map +1 -1
- package/dist/cli/commands/list-filter-shared.d.ts +8 -0
- package/dist/cli/commands/list-filter-shared.js +70 -0
- package/dist/cli/commands/list-filter-shared.js.map +1 -0
- package/dist/cli/commands/list.d.ts +116 -0
- package/dist/cli/commands/list.js +194 -6
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/normalize.js +16 -2
- package/dist/cli/commands/normalize.js.map +1 -1
- package/dist/cli/commands/notes.js +4 -3
- package/dist/cli/commands/notes.js.map +1 -1
- package/dist/cli/commands/plan.js +3 -2
- package/dist/cli/commands/plan.js.map +1 -1
- package/dist/cli/commands/recurrence-parsers.d.ts +9 -0
- package/dist/cli/commands/recurrence-parsers.js +19 -2
- package/dist/cli/commands/recurrence-parsers.js.map +1 -1
- package/dist/cli/commands/reindex.d.ts +83 -0
- package/dist/cli/commands/reindex.js +45 -10
- package/dist/cli/commands/reindex.js.map +1 -1
- package/dist/cli/commands/repeatable-metadata-parsers.js +28 -4
- package/dist/cli/commands/repeatable-metadata-parsers.js.map +1 -1
- package/dist/cli/commands/restore.d.ts +40 -1
- package/dist/cli/commands/restore.js +27 -2
- package/dist/cli/commands/restore.js.map +1 -1
- package/dist/cli/commands/scheduling-shortcuts.d.ts +43 -0
- package/dist/cli/commands/scheduling-shortcuts.js +87 -0
- package/dist/cli/commands/scheduling-shortcuts.js.map +1 -0
- package/dist/cli/commands/schema.d.ts +152 -2
- package/dist/cli/commands/schema.js +510 -4
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/search.d.ts +289 -1
- package/dist/cli/commands/search.js +367 -60
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/stats.d.ts +38 -0
- package/dist/cli/commands/stats.js +38 -10
- package/dist/cli/commands/stats.js.map +1 -1
- package/dist/cli/commands/telemetry.js +5 -3
- package/dist/cli/commands/telemetry.js.map +1 -1
- package/dist/cli/commands/templates.d.ts +18 -0
- package/dist/cli/commands/templates.js +9 -2
- package/dist/cli/commands/templates.js.map +1 -1
- package/dist/cli/commands/test-all.d.ts +5 -0
- package/dist/cli/commands/test-all.js +9 -3
- package/dist/cli/commands/test-all.js.map +1 -1
- package/dist/cli/commands/test.d.ts +70 -1
- package/dist/cli/commands/test.js +84 -3
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/update-many.d.ts +34 -1
- package/dist/cli/commands/update-many.js +60 -31
- package/dist/cli/commands/update-many.js.map +1 -1
- package/dist/cli/commands/update.d.ts +71 -0
- package/dist/cli/commands/update.js +91 -11
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/upgrade.d.ts +28 -1
- package/dist/cli/commands/upgrade.js +17 -4
- package/dist/cli/commands/upgrade.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +114 -0
- package/dist/cli/commands/validate.js +153 -8
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/error-guidance.d.ts +30 -0
- package/dist/cli/error-guidance.js +41 -6
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/extension-command-options.js +9 -7
- package/dist/cli/extension-command-options.js.map +1 -1
- package/dist/cli/help-content.d.ts +8 -0
- package/dist/cli/help-content.js +54 -6
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/help-json-payload.d.ts +19 -1
- package/dist/cli/help-json-payload.js +16 -7
- package/dist/cli/help-json-payload.js.map +1 -1
- package/dist/cli/main.d.ts +242 -0
- package/dist/cli/main.js +241 -45
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +62 -5
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.d.ts +16 -0
- package/dist/cli/register-mutation.js +376 -100
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.d.ts +8 -0
- package/dist/cli/register-operations.js +134 -11
- package/dist/cli/register-operations.js.map +1 -1
- package/dist/cli/register-setup.js +9 -6
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.d.ts +4 -0
- package/dist/cli/registration-helpers.js +124 -38
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/activity-PZYSZA26.js +18 -0
- package/dist/cli-bundle/chunks/{activity-PPO7QWJF.js → activity-SFM4THAU.js} +13 -11
- package/dist/cli-bundle/chunks/{aggregate-IRHJWEKG.js → aggregate-Y5ADDKBM.js} +55 -26
- package/dist/cli-bundle/chunks/aggregate-Y5ADDKBM.js.map +1 -0
- package/dist/cli-bundle/chunks/{aggregate-XEBW22UQ.js → aggregate-YTAUQLRW.js} +54 -25
- package/dist/cli-bundle/chunks/aggregate-YTAUQLRW.js.map +7 -0
- package/dist/cli-bundle/chunks/{append-NL67JNJU.js → append-4M7OVV7M.js} +11 -11
- package/dist/cli-bundle/chunks/append-4M7OVV7M.js.map +1 -0
- package/dist/cli-bundle/chunks/{append-N2AWXKZC.js → append-HSPK4L4V.js} +10 -10
- package/dist/cli-bundle/chunks/{append-N2AWXKZC.js.map → append-HSPK4L4V.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IIOIBAQW.js → chunk-26BM6YLO.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-CEGUH2E5.js → chunk-2C6FU3D3.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-CEGUH2E5.js.map → chunk-2C6FU3D3.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SQDKAEKG.js → chunk-2OPYLXDO.js} +117 -37
- package/dist/cli-bundle/chunks/chunk-2OPYLXDO.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4ZKKZMLH.js → chunk-2S46FKLB.js} +104 -30
- package/dist/cli-bundle/chunks/chunk-2S46FKLB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LSSTKL3Y.js → chunk-2TMKMTEI.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-QU3OPNVV.js → chunk-2VH7DFSJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RHYBR6G7.js → chunk-3ENF4NO4.js} +74 -14
- package/dist/cli-bundle/chunks/chunk-3ENF4NO4.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-3GR2HTYY.js +404 -0
- package/dist/cli-bundle/chunks/chunk-3GR2HTYY.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AAUYXSFF.js → chunk-3R3FYCBV.js} +223 -50
- package/dist/cli-bundle/chunks/chunk-3R3FYCBV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5HSAHRYA.js → chunk-3UKJX3RP.js} +82 -21
- package/dist/cli-bundle/chunks/chunk-3UKJX3RP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-4RTLBTYS.js +83 -0
- package/dist/cli-bundle/chunks/chunk-4RTLBTYS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UCVJP4JL.js → chunk-5FDYWOJT.js} +52 -8
- package/dist/cli-bundle/chunks/chunk-5FDYWOJT.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-LGOXXQUW.js → chunk-5XGWFUW2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LYNQ3NGI.js → chunk-6BD77FGL.js} +309 -20
- package/dist/cli-bundle/chunks/chunk-6BD77FGL.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-6EFCFPNE.js +35 -0
- package/dist/cli-bundle/chunks/chunk-6EFCFPNE.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-36BCSMKP.js → chunk-6HF6CIY2.js} +26 -11
- package/dist/cli-bundle/chunks/chunk-6HF6CIY2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-M3SI2REU.js → chunk-6PBPD4MN.js} +322 -19
- package/dist/cli-bundle/chunks/chunk-6PBPD4MN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-TSXWFN3L.js → chunk-6VFUEGOA.js} +53 -9
- package/dist/cli-bundle/chunks/chunk-6VFUEGOA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2J2AH4V5.js → chunk-AAOXSPAE.js} +56 -72
- package/dist/cli-bundle/chunks/chunk-AAOXSPAE.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-Z647PYLD.js → chunk-AJCQ5GT6.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-ALTGYHN3.js +61 -0
- package/dist/cli-bundle/chunks/chunk-ALTGYHN3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KHGTYCJ6.js → chunk-AOJQL33L.js} +83 -22
- package/dist/cli-bundle/chunks/chunk-AOJQL33L.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5LMF75Q7.js → chunk-AXLDUGXA.js} +7 -4
- package/dist/cli-bundle/chunks/{chunk-5LMF75Q7.js.map → chunk-AXLDUGXA.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DWG4FHPY.js → chunk-BITCVGHT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JE5IZXDS.js → chunk-CGQTFWYI.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LFW5NQUP.js → chunk-CHM2VFVL.js} +407 -290
- package/dist/cli-bundle/chunks/chunk-CHM2VFVL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-VYZNX4C5.js → chunk-COVLE33A.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-SGMGMCIF.js → chunk-DDNBWH4W.js} +157 -25
- package/dist/cli-bundle/chunks/chunk-DDNBWH4W.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-6ZFTM65G.js → chunk-F5MSD5HE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6TBR5AZ2.js → chunk-FAXB6F6R.js} +76 -8
- package/dist/cli-bundle/chunks/chunk-FAXB6F6R.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-L6YQONLM.js → chunk-FPDK5BZQ.js} +18 -19
- package/dist/cli-bundle/chunks/chunk-FPDK5BZQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-AGG32LKL.js → chunk-FPY2TOFI.js} +480 -24
- package/dist/cli-bundle/chunks/chunk-FPY2TOFI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JWXTOYBI.js → chunk-G2MOUCTU.js} +121 -44
- package/dist/cli-bundle/chunks/chunk-G2MOUCTU.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3VULHQNS.js → chunk-G57RHEGP.js} +36 -18
- package/dist/cli-bundle/chunks/chunk-G57RHEGP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-QQG4HEX7.js → chunk-IROHIK2T.js} +37 -63
- package/dist/cli-bundle/chunks/chunk-IROHIK2T.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GOO4UXBI.js → chunk-JZHL4E3Q.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-XXLMJDUB.js → chunk-KA22USXD.js} +21 -22
- package/dist/cli-bundle/chunks/chunk-KA22USXD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-WLH7X4RN.js → chunk-KBC4O7SY.js} +56 -72
- package/dist/cli-bundle/chunks/chunk-KBC4O7SY.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-NN6RKGFW.js → chunk-KCAGIH6K.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-BVL5KGVA.js → chunk-KO3VM5GS.js} +27 -12
- package/dist/cli-bundle/chunks/chunk-KO3VM5GS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IXVSSHGV.js → chunk-LNH5Q32E.js} +13 -8
- package/dist/cli-bundle/chunks/chunk-LNH5Q32E.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3FMQMHAG.js → chunk-LORM3M2I.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3FMQMHAG.js.map → chunk-LORM3M2I.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-PNYAAB4S.js → chunk-LWGMDLQ6.js} +8 -3
- package/dist/cli-bundle/chunks/chunk-LWGMDLQ6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GFBEXDCQ.js → chunk-M4AVU7VC.js} +19 -8
- package/dist/cli-bundle/chunks/{chunk-GFBEXDCQ.js.map → chunk-M4AVU7VC.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3CQPVBK3.js → chunk-MIBX6ZRN.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AUDDXKNX.js → chunk-MMF2E3FM.js} +77 -9
- package/dist/cli-bundle/chunks/chunk-MMF2E3FM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RFR2YQGO.js → chunk-MORZOR7W.js} +21 -8
- package/dist/cli-bundle/chunks/chunk-MORZOR7W.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4TPFXE2R.js → chunk-MUTUZ2HD.js} +118 -74
- package/dist/cli-bundle/chunks/chunk-MUTUZ2HD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-HZOX5BYD.js → chunk-OGXEBTX3.js} +35 -17
- package/dist/cli-bundle/chunks/chunk-OGXEBTX3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-LOAR5TKX.js → chunk-OOIH6J5T.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LOAR5TKX.js.map → chunk-OOIH6J5T.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-VNC2HBL4.js → chunk-OSBJPPX3.js} +20 -9
- package/dist/cli-bundle/chunks/chunk-OSBJPPX3.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2ANTZBYF.js → chunk-PJS3WDO2.js} +122 -45
- package/dist/cli-bundle/chunks/chunk-PJS3WDO2.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7SM7VA5I.js → chunk-QGPE2H6Z.js} +19 -8
- package/dist/cli-bundle/chunks/chunk-QGPE2H6Z.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-QVTFFLR2.js +58 -0
- package/dist/cli-bundle/chunks/chunk-QVTFFLR2.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JCTZV7TO.js → chunk-QW2F6ARZ.js} +8 -5
- package/dist/cli-bundle/chunks/{chunk-JCTZV7TO.js.map → chunk-QW2F6ARZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-TOX7YQ7X.js → chunk-QXC3LWB7.js} +223 -50
- package/dist/cli-bundle/chunks/chunk-QXC3LWB7.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-W6KNFAMZ.js → chunk-QXMXRPX5.js} +9 -8
- package/dist/cli-bundle/chunks/chunk-QXMXRPX5.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-O3YCJOVX.js → chunk-R4AKUPKI.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-O3YCJOVX.js.map → chunk-R4AKUPKI.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-RASR23HV.js +394 -0
- package/dist/cli-bundle/chunks/chunk-RASR23HV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JW7D6437.js → chunk-SCDCNGCV.js} +20 -9
- package/dist/cli-bundle/chunks/chunk-SCDCNGCV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GRZGHGRG.js → chunk-SCS5PVAA.js} +10 -9
- package/dist/cli-bundle/chunks/{chunk-GRZGHGRG.js.map → chunk-SCS5PVAA.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-S2CDTRJ6.js → chunk-SJCMTOEU.js} +381 -271
- package/dist/cli-bundle/chunks/chunk-SJCMTOEU.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-XWDZVCBJ.js → chunk-SO2ES46D.js} +11 -10
- package/dist/cli-bundle/chunks/{chunk-XWDZVCBJ.js.map → chunk-SO2ES46D.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MACCNKSZ.js → chunk-TBV33CB4.js} +36 -62
- package/dist/cli-bundle/chunks/chunk-TBV33CB4.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-TEFEXQWI.js +86 -0
- package/dist/cli-bundle/chunks/chunk-TEFEXQWI.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-HLEGAQXT.js → chunk-TWBDDVIF.js} +20 -7
- package/dist/cli-bundle/chunks/chunk-TWBDDVIF.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4JHJ7YG2.js → chunk-UGUJ2UOR.js} +118 -74
- package/dist/cli-bundle/chunks/chunk-UGUJ2UOR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-XOYHMHFF.js → chunk-UN6P3IJ4.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-32XSW44C.js → chunk-V2GYOMEX.js} +10 -9
- package/dist/cli-bundle/chunks/chunk-V2GYOMEX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-HWHONML5.js → chunk-VF3KQGNY.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-SOHXUA2Q.js → chunk-VHG6LUKR.js} +116 -36
- package/dist/cli-bundle/chunks/chunk-VHG6LUKR.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7CRFV6JR.js → chunk-VXHMQDXA.js} +483 -27
- package/dist/cli-bundle/chunks/chunk-VXHMQDXA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IZHCCG4S.js → chunk-VXRFAE7W.js} +14 -9
- package/dist/cli-bundle/chunks/chunk-VXRFAE7W.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-R4VWYWRN.js → chunk-W3HFLORZ.js} +7 -2
- package/dist/cli-bundle/chunks/chunk-W3HFLORZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4FHLNNW7.js → chunk-WQRL4COW.js} +74 -14
- package/dist/cli-bundle/chunks/chunk-WQRL4COW.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-X3W5ESZQ.js +32 -0
- package/dist/cli-bundle/chunks/chunk-X3W5ESZQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-MGAQ6KZG.js → chunk-XESAPVZ4.js} +166 -27
- package/dist/cli-bundle/chunks/chunk-XESAPVZ4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PEH7SZD2.js → chunk-YLAW3FZN.js} +105 -31
- package/dist/cli-bundle/chunks/chunk-YLAW3FZN.js.map +7 -0
- package/dist/cli-bundle/chunks/{claim-HE6KEGJW.js → claim-WGAWJCPY.js} +10 -10
- package/dist/cli-bundle/chunks/{claim-QJOQBH7J.js → claim-ZI6P4LMU.js} +10 -10
- package/dist/cli-bundle/chunks/close-I7PRQ5G7.js +13 -0
- package/dist/cli-bundle/chunks/{close-SPUFW5QR.js → close-JMVVSIQE.js} +8 -8
- package/dist/cli-bundle/chunks/{close-many-GKAJX54X.js → close-many-IKPJXVOZ.js} +32 -20
- package/dist/cli-bundle/chunks/close-many-IKPJXVOZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{close-many-GL6NRUU5.js → close-many-TXABDCSJ.js} +31 -19
- package/dist/cli-bundle/chunks/close-many-TXABDCSJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{comments-5FPT6L7N.js → comments-RLWR2S7W.js} +55 -31
- package/dist/cli-bundle/chunks/comments-RLWR2S7W.js.map +1 -0
- package/dist/cli-bundle/chunks/{comments-TOLOYWNI.js → comments-YAMXKHUX.js} +54 -30
- package/dist/cli-bundle/chunks/comments-YAMXKHUX.js.map +7 -0
- package/dist/cli-bundle/chunks/{config-7N6D7YJE.js → config-7ICYC2WU.js} +83 -19
- package/dist/cli-bundle/chunks/config-7ICYC2WU.js.map +7 -0
- package/dist/cli-bundle/chunks/{config-4MN45TIH.js → config-NGWN3EXC.js} +83 -19
- package/dist/cli-bundle/chunks/config-NGWN3EXC.js.map +1 -0
- package/dist/cli-bundle/chunks/{context-AQSLE7DZ.js → context-K6QAHN5H.js} +128 -39
- package/dist/cli-bundle/chunks/context-K6QAHN5H.js.map +1 -0
- package/dist/cli-bundle/chunks/{context-U3PUJMVN.js → context-VGXOOAH2.js} +127 -38
- package/dist/cli-bundle/chunks/context-VGXOOAH2.js.map +7 -0
- package/dist/cli-bundle/chunks/{contracts-ITSJXO3O.js → contracts-KJGY2AQA.js} +99 -15
- package/dist/cli-bundle/chunks/contracts-KJGY2AQA.js.map +1 -0
- package/dist/cli-bundle/chunks/{contracts-H7KCQXLY.js → contracts-KMA6OJY7.js} +99 -15
- package/dist/cli-bundle/chunks/contracts-KMA6OJY7.js.map +7 -0
- package/dist/cli-bundle/chunks/{copy-EB3MUCSW.js → copy-Q2PPU4AY.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-C4W522JM.js → copy-SC6UF3PI.js} +7 -7
- package/dist/cli-bundle/chunks/{create-4EQNELMY.js → create-76FE7JVF.js} +16 -13
- package/dist/cli-bundle/chunks/create-RTRFW6RE.js +30 -0
- package/dist/cli-bundle/chunks/{delete-X5QLXIQX.js → delete-T6DJSUJI.js} +7 -7
- package/dist/cli-bundle/chunks/{delete-ZLGUYIXU.js → delete-XFUX533E.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-GPB3LGWN.js → deps-5GWMMS6D.js} +9 -10
- package/dist/cli-bundle/chunks/{deps-GPB3LGWN.js.map → deps-5GWMMS6D.js.map} +2 -2
- package/dist/cli-bundle/chunks/{deps-HV2C2L46.js → deps-MCCU633S.js} +10 -11
- package/dist/cli-bundle/chunks/deps-MCCU633S.js.map +1 -0
- package/dist/cli-bundle/chunks/{docs-SRTLCQOL.js → docs-HE3HCQ4S.js} +9 -9
- package/dist/cli-bundle/chunks/{docs-RJQPLROO.js → docs-SXMOABHR.js} +9 -9
- package/dist/cli-bundle/chunks/{extension-WKPVPNCC.js → extension-E23K4QRR.js} +7 -5
- package/dist/cli-bundle/chunks/{extension-MM3TVWOO.js → extension-PMD3XMLN.js} +7 -5
- package/dist/cli-bundle/chunks/{files-OIFN3DQX.js → files-2RSWGPEU.js} +25 -11
- package/dist/cli-bundle/chunks/files-2RSWGPEU.js.map +1 -0
- package/dist/cli-bundle/chunks/{files-LIFDKNCN.js → files-ZWFJFWBK.js} +24 -10
- package/dist/cli-bundle/chunks/files-ZWFJFWBK.js.map +7 -0
- package/dist/cli-bundle/chunks/focus-KTTB3P3F.js +106 -0
- package/dist/cli-bundle/chunks/focus-KTTB3P3F.js.map +1 -0
- package/dist/cli-bundle/chunks/focus-ZMDP4FEL.js +109 -0
- package/dist/cli-bundle/chunks/focus-ZMDP4FEL.js.map +7 -0
- package/dist/cli-bundle/chunks/{gc-NRFHLVFT.js → gc-BXIAKLAH.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-DL6AVOX5.js → gc-C7K6JNUO.js} +3 -3
- package/dist/cli-bundle/chunks/{get-SAB7CRBG.js → get-AZQLC4NO.js} +43 -16
- package/dist/cli-bundle/chunks/get-AZQLC4NO.js.map +1 -0
- package/dist/cli-bundle/chunks/{get-K7UULTQF.js → get-I65HTAWO.js} +42 -15
- package/dist/cli-bundle/chunks/get-I65HTAWO.js.map +7 -0
- package/dist/cli-bundle/chunks/{health-NUVZYIEV.js → health-3MFFPQVZ.js} +75 -49
- package/dist/cli-bundle/chunks/health-3MFFPQVZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{health-VJWH3ZFK.js → health-MYZEOCLI.js} +74 -48
- package/dist/cli-bundle/chunks/health-MYZEOCLI.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-GYFD2DJW.js → history-73Z6OBFZ.js} +10 -10
- package/dist/cli-bundle/chunks/history-BIPHVUMF.js +20 -0
- package/dist/cli-bundle/chunks/{history-compact-WQZQ6KXM.js → history-compact-24VQ63A3.js} +37 -46
- package/dist/cli-bundle/chunks/history-compact-24VQ63A3.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-compact-SLL6ESXH.js → history-compact-UIAR2OI4.js} +38 -47
- package/dist/cli-bundle/chunks/history-compact-UIAR2OI4.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-redact-SDTDR6WM.js → history-redact-7YCXEWJD.js} +13 -11
- package/dist/cli-bundle/chunks/history-redact-WZZ6GZ2Z.js +21 -0
- package/dist/cli-bundle/chunks/{history-repair-BJCGM6Q3.js → history-repair-4NOFFG2W.js} +44 -49
- package/dist/cli-bundle/chunks/history-repair-4NOFFG2W.js.map +1 -0
- package/dist/cli-bundle/chunks/{history-repair-UCYS55ZX.js → history-repair-GQN2X4TR.js} +43 -48
- package/dist/cli-bundle/chunks/history-repair-GQN2X4TR.js.map +7 -0
- package/dist/cli-bundle/chunks/init-K34V4PZR.js +20 -0
- package/dist/cli-bundle/chunks/{init-MXV57LKL.js → init-TDEDNVMM.js} +12 -9
- package/dist/cli-bundle/chunks/{learnings-QKJOKEAO.js → learnings-TV2CTGJ3.js} +13 -12
- package/dist/cli-bundle/chunks/learnings-TV2CTGJ3.js.map +7 -0
- package/dist/cli-bundle/chunks/{learnings-L6KTZGOT.js → learnings-U67FTXPB.js} +14 -13
- package/dist/cli-bundle/chunks/learnings-U67FTXPB.js.map +1 -0
- package/dist/cli-bundle/chunks/list-MSHYOCFU.js +33 -0
- package/dist/cli-bundle/chunks/list-VV57WGUD.js +29 -0
- package/dist/cli-bundle/chunks/{notes-HMCB7TK6.js → notes-EUANWWKD.js} +13 -12
- package/dist/cli-bundle/chunks/notes-EUANWWKD.js.map +7 -0
- package/dist/cli-bundle/chunks/{notes-3NLK7WTZ.js → notes-GYVNDAL4.js} +14 -13
- package/dist/cli-bundle/chunks/notes-GYVNDAL4.js.map +1 -0
- package/dist/cli-bundle/chunks/{plan-NANUWH4T.js → plan-4LF4AV63.js} +15 -14
- package/dist/cli-bundle/chunks/plan-4LF4AV63.js.map +7 -0
- package/dist/cli-bundle/chunks/{plan-DWBYI5C6.js → plan-W27O6DBS.js} +16 -15
- package/dist/cli-bundle/chunks/plan-W27O6DBS.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-SMMMLSWW.js → register-list-query-BXLEHJ7L.js} +32 -23
- package/dist/cli-bundle/chunks/register-list-query-BXLEHJ7L.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-PWQ5F2VI.js → register-list-query-C2MS3BVQ.js} +31 -22
- package/dist/cli-bundle/chunks/register-list-query-C2MS3BVQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-QKFPTIZG.js → register-mutation-6UCOEQ6L.js} +361 -106
- package/dist/cli-bundle/chunks/register-mutation-6UCOEQ6L.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-ZYJQ4DVP.js → register-mutation-HE73PREP.js} +355 -107
- package/dist/cli-bundle/chunks/register-mutation-HE73PREP.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-2FMZ6WEF.js → register-operations-L6C32FDA.js} +111 -39
- package/dist/cli-bundle/chunks/register-operations-L6C32FDA.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-operations-BAFQURZG.js → register-operations-QQEHEX4P.js} +112 -40
- package/dist/cli-bundle/chunks/register-operations-QQEHEX4P.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-QN2XV7UL.js → register-setup-A7N4PNT3.js} +18 -21
- package/dist/cli-bundle/chunks/register-setup-A7N4PNT3.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-DQEIKBIP.js → register-setup-WHG3NBP6.js} +17 -20
- package/dist/cli-bundle/chunks/register-setup-WHG3NBP6.js.map +7 -0
- package/dist/cli-bundle/chunks/{restore-FJQWXMPY.js → restore-TSWSULYY.js} +13 -11
- package/dist/cli-bundle/chunks/restore-XQXICL3V.js +19 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-NC46K6BD.js +91 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-NC46K6BD.js.map +7 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-UGDPQALY.js +88 -0
- package/dist/cli-bundle/chunks/scheduling-shortcuts-UGDPQALY.js.map +1 -0
- package/dist/cli-bundle/chunks/{schema-ZZ7ZDM2X.js → schema-7U7JUYGK.js} +797 -10
- package/dist/cli-bundle/chunks/schema-7U7JUYGK.js.map +1 -0
- package/dist/cli-bundle/chunks/{schema-RNVJ55V2.js → schema-TSBYSEMW.js} +810 -9
- package/dist/cli-bundle/chunks/schema-TSBYSEMW.js.map +7 -0
- package/dist/cli-bundle/chunks/{search-BJ457C2A.js → search-OXLSQKHP.js} +328 -71
- package/dist/cli-bundle/chunks/search-OXLSQKHP.js.map +7 -0
- package/dist/cli-bundle/chunks/{search-FQDZXX7P.js → search-T3TOFLOQ.js} +328 -71
- package/dist/cli-bundle/chunks/search-T3TOFLOQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{stats-DUQWCVOS.js → stats-5CLG22YZ.js} +41 -16
- package/dist/cli-bundle/chunks/stats-5CLG22YZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{stats-CUG3ZHOI.js → stats-XEMUXS42.js} +42 -17
- package/dist/cli-bundle/chunks/stats-XEMUXS42.js.map +1 -0
- package/dist/cli-bundle/chunks/{telemetry-RK2VX75A.js → telemetry-23OPBBZT.js} +7 -7
- package/dist/cli-bundle/chunks/telemetry-23OPBBZT.js.map +1 -0
- package/dist/cli-bundle/chunks/{telemetry-33MRGX4Z.js → telemetry-I3D7XZ55.js} +6 -6
- package/dist/cli-bundle/chunks/telemetry-I3D7XZ55.js.map +7 -0
- package/dist/cli-bundle/chunks/test-AROS3LIV.js +35 -0
- package/dist/cli-bundle/chunks/{test-Y3CTFMEC.js → test-CECIMKOA.js} +17 -14
- package/dist/cli-bundle/chunks/{test-all-ARSMX33Q.js → test-all-4DEQPIXH.js} +25 -17
- package/dist/cli-bundle/chunks/test-all-4DEQPIXH.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-all-ANYQ33O2.js → test-all-6RO6X3SM.js} +24 -16
- package/dist/cli-bundle/chunks/test-all-6RO6X3SM.js.map +7 -0
- package/dist/cli-bundle/chunks/{test-runs-5URSD34O.js → test-runs-AAXVFWKH.js} +62 -65
- package/dist/cli-bundle/chunks/test-runs-AAXVFWKH.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-runs-XNACGSNQ.js → test-runs-LYBQSYRC.js} +61 -64
- package/dist/cli-bundle/chunks/test-runs-LYBQSYRC.js.map +7 -0
- package/dist/cli-bundle/chunks/update-MIWEJC76.js +24 -0
- package/dist/cli-bundle/chunks/update-P7I5YSRB.js +28 -0
- package/dist/cli-bundle/chunks/{update-many-724JCVDE.js → update-many-5B4HLVBK.js} +79 -33
- package/dist/cli-bundle/chunks/update-many-5B4HLVBK.js.map +7 -0
- package/dist/cli-bundle/chunks/{update-many-6B7PJ33I.js → update-many-G2QOVZSB.js} +80 -34
- package/dist/cli-bundle/chunks/update-many-G2QOVZSB.js.map +1 -0
- package/dist/cli-bundle/chunks/{upgrade-QHRGDBSA.js → upgrade-GFIDL62L.js} +23 -9
- package/dist/cli-bundle/chunks/upgrade-GFIDL62L.js.map +1 -0
- package/dist/cli-bundle/chunks/{upgrade-ALBEZAI7.js → upgrade-QUQYL7D3.js} +22 -8
- package/dist/cli-bundle/chunks/upgrade-QUQYL7D3.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-UY6DRCG5.js → validate-ADDZBMM3.js} +236 -30
- package/dist/cli-bundle/chunks/validate-ADDZBMM3.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-IQRYFXIV.js → validate-MAS3H6ZP.js} +222 -30
- package/dist/cli-bundle/chunks/validate-MAS3H6ZP.js.map +1 -0
- package/dist/cli-bundle/main.js +312 -139
- package/dist/cli-bundle/main.js.map +3 -3
- package/dist/cli.d.ts +10 -0
- package/dist/cli.js +21 -8
- package/dist/cli.js.map +1 -1
- package/dist/core/config/nested-settings.js +40 -2
- package/dist/core/config/nested-settings.js.map +1 -1
- package/dist/core/diagnostics/remediation.js +7 -2
- package/dist/core/diagnostics/remediation.js.map +1 -1
- package/dist/core/extensions/extension-policy.js +14 -15
- package/dist/core/extensions/extension-policy.js.map +1 -1
- package/dist/core/extensions/item-fields.js +4 -5
- package/dist/core/extensions/item-fields.js.map +1 -1
- package/dist/core/extensions/loader.d.ts +75 -1
- package/dist/core/extensions/loader.js +56 -32
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/governance/content-fields.d.ts +84 -0
- package/dist/core/governance/content-fields.js +182 -0
- package/dist/core/governance/content-fields.js.map +1 -0
- package/dist/core/governance/issue-codes.d.ts +51 -0
- package/dist/core/governance/issue-codes.js +95 -0
- package/dist/core/governance/issue-codes.js.map +1 -0
- package/dist/core/governance/metadata-coverage.d.ts +168 -0
- package/dist/core/governance/metadata-coverage.js +362 -0
- package/dist/core/governance/metadata-coverage.js.map +1 -0
- package/dist/core/history/history-rewrite.d.ts +22 -0
- package/dist/core/history/history-rewrite.js +38 -2
- package/dist/core/history/history-rewrite.js.map +1 -1
- package/dist/core/history/history.d.ts +7 -0
- package/dist/core/history/history.js +6 -2
- package/dist/core/history/history.js.map +1 -1
- package/dist/core/io/body-file.d.ts +14 -0
- package/dist/core/io/body-file.js +47 -0
- package/dist/core/io/body-file.js.map +1 -0
- package/dist/core/item/item-format.d.ts +46 -1
- package/dist/core/item/item-format.js +51 -60
- package/dist/core/item/item-format.js.map +1 -1
- package/dist/core/item/parse.d.ts +41 -0
- package/dist/core/item/parse.js +69 -16
- package/dist/core/item/parse.js.map +1 -1
- package/dist/core/item/type-registry.d.ts +1 -0
- package/dist/core/item/type-registry.js +8 -10
- package/dist/core/item/type-registry.js.map +1 -1
- package/dist/core/lock/lock.d.ts +26 -0
- package/dist/core/lock/lock.js +10 -2
- package/dist/core/lock/lock.js.map +1 -1
- package/dist/core/output/output.d.ts +7 -0
- package/dist/core/output/output.js +6 -2
- package/dist/core/output/output.js.map +1 -1
- package/dist/core/schema/fields-file.d.ts +94 -0
- package/dist/core/schema/fields-file.js +317 -0
- package/dist/core/schema/fields-file.js.map +1 -0
- package/dist/core/schema/item-types-file.d.ts +25 -2
- package/dist/core/schema/item-types-file.js +78 -6
- package/dist/core/schema/item-types-file.js.map +1 -1
- package/dist/core/schema/runtime-schema.d.ts +7 -0
- package/dist/core/schema/runtime-schema.js +23 -16
- package/dist/core/schema/runtime-schema.js.map +1 -1
- package/dist/core/schema/type-inference.d.ts +34 -0
- package/dist/core/schema/type-inference.js +97 -0
- package/dist/core/schema/type-inference.js.map +1 -0
- package/dist/core/schema/type-presets.d.ts +30 -0
- package/dist/core/schema/type-presets.js +96 -0
- package/dist/core/schema/type-presets.js.map +1 -0
- package/dist/core/search/cache.d.ts +19 -1
- package/dist/core/search/cache.js +11 -3
- package/dist/core/search/cache.js.map +1 -1
- package/dist/core/search/corpus.d.ts +36 -2
- package/dist/core/search/corpus.js +120 -24
- package/dist/core/search/corpus.js.map +1 -1
- package/dist/core/search/providers.d.ts +19 -0
- package/dist/core/search/providers.js +19 -2
- package/dist/core/search/providers.js.map +1 -1
- package/dist/core/sentry/instrument.d.ts +1 -0
- package/dist/core/sentry/instrument.js +6 -2
- package/dist/core/sentry/instrument.js.map +1 -1
- package/dist/core/session/session-state.d.ts +16 -0
- package/dist/core/session/session-state.js +48 -0
- package/dist/core/session/session-state.js.map +1 -0
- package/dist/core/shared/constants.d.ts +8 -0
- package/dist/core/shared/constants.js +11 -2
- package/dist/core/shared/constants.js.map +1 -1
- package/dist/core/shared/text-normalization.js +4 -3
- package/dist/core/shared/text-normalization.js.map +1 -1
- package/dist/core/shared/time.d.ts +13 -0
- package/dist/core/shared/time.js +19 -7
- package/dist/core/shared/time.js.map +1 -1
- package/dist/core/store/front-matter-cache.d.ts +13 -0
- package/dist/core/store/front-matter-cache.js +21 -11
- package/dist/core/store/front-matter-cache.js.map +1 -1
- package/dist/core/store/item-store.d.ts +11 -0
- package/dist/core/store/item-store.js +12 -3
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/core/store/settings-validator.d.ts +2 -0
- package/dist/core/store/settings-validator.js +25 -2
- package/dist/core/store/settings-validator.js.map +1 -1
- package/dist/core/store/settings.d.ts +60 -1
- package/dist/core/store/settings.js +100 -46
- package/dist/core/store/settings.js.map +1 -1
- package/dist/core/telemetry/observability.js +10 -8
- package/dist/core/telemetry/observability.js.map +1 -1
- package/dist/core/telemetry/runtime.d.ts +272 -1
- package/dist/core/telemetry/runtime.js +358 -37
- package/dist/core/telemetry/runtime.js.map +1 -1
- package/dist/core/test/background-runs.d.ts +35 -0
- package/dist/core/test/background-runs.js +72 -61
- package/dist/core/test/background-runs.js.map +1 -1
- package/dist/core/test/run-selectors.js +5 -4
- package/dist/core/test/run-selectors.js.map +1 -1
- package/dist/core/validate/estimate-defaults.d.ts +39 -0
- package/dist/core/validate/estimate-defaults.js +117 -0
- package/dist/core/validate/estimate-defaults.js.map +1 -0
- package/dist/core/validate/fix-planning.d.ts +21 -3
- package/dist/core/validate/fix-planning.js +31 -4
- package/dist/core/validate/fix-planning.js.map +1 -1
- package/dist/core/validate/missing-link-owners.d.ts +64 -0
- package/dist/core/validate/missing-link-owners.js +98 -0
- package/dist/core/validate/missing-link-owners.js.map +1 -0
- package/dist/mcp/server.d.ts +61 -0
- package/dist/mcp/server.js +98 -8
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-definitions.js +64 -10
- package/dist/mcp/tool-definitions.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-types.js +13 -2
- package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +2 -2
- package/dist/sdk/cli-contracts/enum-contracts.js +7 -2
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +110 -2
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +127 -11
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +31 -0
- package/dist/sdk/cli-contracts.js +238 -12
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/types.d.ts +17 -1
- package/dist/types.js +3 -3
- package/dist/types.js.map +1 -1
- package/docs/AGENT_GUIDE.md +15 -3
- package/docs/CLAUDE_CODE_PLUGIN.md +2 -2
- package/docs/COMMANDS.md +171 -10
- package/docs/CONFIGURATION.md +135 -0
- package/docs/TESTING.md +6 -4
- package/package.json +6 -4
- package/packages/pm-calendar/extensions/calendar/runtime.js +6 -0
- package/packages/pm-calendar/extensions/calendar/runtime.ts +12 -0
- package/packages/pm-todos/extensions/todos/runtime.ts +5 -0
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/README.md +3 -3
- package/plugins/pm-claude/commands/pm-init.md +1 -1
- package/plugins/pm-codex/README.md +1 -1
- package/scripts/bundle-cli.mjs +46 -37
- package/scripts/finalize-build.mjs +20 -9
- package/scripts/prepare-build-cache.mjs +27 -16
- package/dist/cli-bundle/chunks/activity-XIOTGZMU.js +0 -16
- package/dist/cli-bundle/chunks/aggregate-IRHJWEKG.js.map +0 -1
- package/dist/cli-bundle/chunks/aggregate-XEBW22UQ.js.map +0 -7
- package/dist/cli-bundle/chunks/append-NL67JNJU.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-2ANTZBYF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-2J2AH4V5.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-32XSW44C.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-36BCSMKP.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-3VULHQNS.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-4FHLNNW7.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4JHJ7YG2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4TPFXE2R.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-4ZKKZMLH.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-5HSAHRYA.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6TBR5AZ2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7CRFV6JR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-7SM7VA5I.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-AAUYXSFF.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-AGG32LKL.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-AUDDXKNX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-BVL5KGVA.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-C24PWDFG.js +0 -138
- package/dist/cli-bundle/chunks/chunk-C24PWDFG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HLEGAQXT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HZOX5BYD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-IXVSSHGV.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-IZHCCG4S.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JW7D6437.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JWXTOYBI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KHGTYCJ6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-L6YQONLM.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-LFW5NQUP.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-LYNQ3NGI.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-M3SI2REU.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MACCNKSZ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MGAQ6KZG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-PEH7SZD2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-PNYAAB4S.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-QQG4HEX7.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-R4VWYWRN.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RFR2YQGO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RHYBR6G7.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-S2CDTRJ6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SGMGMCIF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SOHXUA2Q.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SQDKAEKG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-TOX7YQ7X.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TSXWFN3L.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UCVJP4JL.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-V4KP3TCN.js +0 -128
- package/dist/cli-bundle/chunks/chunk-V4KP3TCN.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-VNC2HBL4.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-W6KNFAMZ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-WLH7X4RN.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XXLMJDUB.js.map +0 -7
- package/dist/cli-bundle/chunks/close-WOG5WTMZ.js +0 -13
- package/dist/cli-bundle/chunks/close-many-GKAJX54X.js.map +0 -1
- package/dist/cli-bundle/chunks/close-many-GL6NRUU5.js.map +0 -7
- package/dist/cli-bundle/chunks/comments-5FPT6L7N.js.map +0 -1
- package/dist/cli-bundle/chunks/comments-TOLOYWNI.js.map +0 -7
- package/dist/cli-bundle/chunks/config-4MN45TIH.js.map +0 -1
- package/dist/cli-bundle/chunks/config-7N6D7YJE.js.map +0 -7
- package/dist/cli-bundle/chunks/context-AQSLE7DZ.js.map +0 -1
- package/dist/cli-bundle/chunks/context-U3PUJMVN.js.map +0 -7
- package/dist/cli-bundle/chunks/contracts-H7KCQXLY.js.map +0 -7
- package/dist/cli-bundle/chunks/contracts-ITSJXO3O.js.map +0 -1
- package/dist/cli-bundle/chunks/create-NW3K7LVG.js +0 -27
- package/dist/cli-bundle/chunks/deps-HV2C2L46.js.map +0 -1
- package/dist/cli-bundle/chunks/files-LIFDKNCN.js.map +0 -7
- package/dist/cli-bundle/chunks/files-OIFN3DQX.js.map +0 -1
- package/dist/cli-bundle/chunks/get-K7UULTQF.js.map +0 -7
- package/dist/cli-bundle/chunks/get-SAB7CRBG.js.map +0 -1
- package/dist/cli-bundle/chunks/health-NUVZYIEV.js.map +0 -1
- package/dist/cli-bundle/chunks/health-VJWH3ZFK.js.map +0 -7
- package/dist/cli-bundle/chunks/history-IUVN4NTN.js +0 -20
- package/dist/cli-bundle/chunks/history-compact-SLL6ESXH.js.map +0 -1
- package/dist/cli-bundle/chunks/history-compact-WQZQ6KXM.js.map +0 -7
- package/dist/cli-bundle/chunks/history-redact-75KIIJUJ.js +0 -19
- package/dist/cli-bundle/chunks/history-repair-BJCGM6Q3.js.map +0 -1
- package/dist/cli-bundle/chunks/history-repair-UCYS55ZX.js.map +0 -7
- package/dist/cli-bundle/chunks/init-JJFYRUKG.js +0 -17
- package/dist/cli-bundle/chunks/learnings-L6KTZGOT.js.map +0 -1
- package/dist/cli-bundle/chunks/learnings-QKJOKEAO.js.map +0 -7
- package/dist/cli-bundle/chunks/list-GGVPXEV6.js +0 -23
- package/dist/cli-bundle/chunks/list-VOQDQHA4.js +0 -19
- package/dist/cli-bundle/chunks/notes-3NLK7WTZ.js.map +0 -1
- package/dist/cli-bundle/chunks/notes-HMCB7TK6.js.map +0 -7
- package/dist/cli-bundle/chunks/plan-DWBYI5C6.js.map +0 -1
- package/dist/cli-bundle/chunks/plan-NANUWH4T.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-PWQ5F2VI.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-SMMMLSWW.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-QKFPTIZG.js.map +0 -7
- package/dist/cli-bundle/chunks/register-mutation-ZYJQ4DVP.js.map +0 -1
- package/dist/cli-bundle/chunks/register-operations-2FMZ6WEF.js.map +0 -7
- package/dist/cli-bundle/chunks/register-operations-BAFQURZG.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-DQEIKBIP.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-QN2XV7UL.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-DRBNXJJH.js +0 -17
- package/dist/cli-bundle/chunks/schema-RNVJ55V2.js.map +0 -7
- package/dist/cli-bundle/chunks/schema-ZZ7ZDM2X.js.map +0 -1
- package/dist/cli-bundle/chunks/search-BJ457C2A.js.map +0 -7
- package/dist/cli-bundle/chunks/search-FQDZXX7P.js.map +0 -1
- package/dist/cli-bundle/chunks/stats-CUG3ZHOI.js.map +0 -1
- package/dist/cli-bundle/chunks/stats-DUQWCVOS.js.map +0 -7
- package/dist/cli-bundle/chunks/telemetry-33MRGX4Z.js.map +0 -7
- package/dist/cli-bundle/chunks/telemetry-RK2VX75A.js.map +0 -1
- package/dist/cli-bundle/chunks/test-SDMYEQHH.js +0 -32
- package/dist/cli-bundle/chunks/test-all-ANYQ33O2.js.map +0 -7
- package/dist/cli-bundle/chunks/test-all-ARSMX33Q.js.map +0 -1
- package/dist/cli-bundle/chunks/test-runs-5URSD34O.js.map +0 -1
- package/dist/cli-bundle/chunks/test-runs-XNACGSNQ.js.map +0 -7
- package/dist/cli-bundle/chunks/update-PD46VOXI.js +0 -21
- package/dist/cli-bundle/chunks/update-U235A7WP.js +0 -25
- package/dist/cli-bundle/chunks/update-many-6B7PJ33I.js.map +0 -1
- package/dist/cli-bundle/chunks/update-many-724JCVDE.js.map +0 -7
- package/dist/cli-bundle/chunks/upgrade-ALBEZAI7.js.map +0 -7
- package/dist/cli-bundle/chunks/upgrade-QHRGDBSA.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-IQRYFXIV.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-UY6DRCG5.js.map +0 -7
- /package/dist/cli-bundle/chunks/{activity-XIOTGZMU.js.map → activity-PZYSZA26.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-PPO7QWJF.js.map → activity-SFM4THAU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IIOIBAQW.js.map → chunk-26BM6YLO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LSSTKL3Y.js.map → chunk-2TMKMTEI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QU3OPNVV.js.map → chunk-2VH7DFSJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LGOXXQUW.js.map → chunk-5XGWFUW2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z647PYLD.js.map → chunk-AJCQ5GT6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DWG4FHPY.js.map → chunk-BITCVGHT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JE5IZXDS.js.map → chunk-CGQTFWYI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VYZNX4C5.js.map → chunk-COVLE33A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ZFTM65G.js.map → chunk-F5MSD5HE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GOO4UXBI.js.map → chunk-JZHL4E3Q.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NN6RKGFW.js.map → chunk-KCAGIH6K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3CQPVBK3.js.map → chunk-MIBX6ZRN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XOYHMHFF.js.map → chunk-UN6P3IJ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HWHONML5.js.map → chunk-VF3KQGNY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-HE6KEGJW.js.map → claim-WGAWJCPY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-QJOQBH7J.js.map → claim-ZI6P4LMU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-WOG5WTMZ.js.map → close-I7PRQ5G7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-SPUFW5QR.js.map → close-JMVVSIQE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-EB3MUCSW.js.map → copy-Q2PPU4AY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-C4W522JM.js.map → copy-SC6UF3PI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-4EQNELMY.js.map → create-76FE7JVF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-NW3K7LVG.js.map → create-RTRFW6RE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-X5QLXIQX.js.map → delete-T6DJSUJI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ZLGUYIXU.js.map → delete-XFUX533E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-SRTLCQOL.js.map → docs-HE3HCQ4S.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-RJQPLROO.js.map → docs-SXMOABHR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-WKPVPNCC.js.map → extension-E23K4QRR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-MM3TVWOO.js.map → extension-PMD3XMLN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-NRFHLVFT.js.map → gc-BXIAKLAH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-DL6AVOX5.js.map → gc-C7K6JNUO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-GYFD2DJW.js.map → history-73Z6OBFZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-IUVN4NTN.js.map → history-BIPHVUMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-SDTDR6WM.js.map → history-redact-7YCXEWJD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-75KIIJUJ.js.map → history-redact-WZZ6GZ2Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-JJFYRUKG.js.map → init-K34V4PZR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-MXV57LKL.js.map → init-TDEDNVMM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-GGVPXEV6.js.map → list-MSHYOCFU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-VOQDQHA4.js.map → list-VV57WGUD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-FJQWXMPY.js.map → restore-TSWSULYY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-DRBNXJJH.js.map → restore-XQXICL3V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-SDMYEQHH.js.map → test-AROS3LIV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-Y3CTFMEC.js.map → test-CECIMKOA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-PD46VOXI.js.map → update-MIWEJC76.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-U235A7WP.js.map → update-P7I5YSRB.js.map} +0 -0
package/dist/cli-bundle/main.js
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
emitTelemetryErrorEvent,
|
|
6
6
|
finishTelemetryCommand,
|
|
7
7
|
startTelemetryCommand
|
|
8
|
-
} from "./chunks/chunk-
|
|
8
|
+
} from "./chunks/chunk-3R3FYCBV.js";
|
|
9
9
|
import {
|
|
10
10
|
migrateItemFilesToFormat
|
|
11
|
-
} from "./chunks/chunk-
|
|
11
|
+
} from "./chunks/chunk-26BM6YLO.js";
|
|
12
12
|
import {
|
|
13
13
|
normalizeExtensionNameForMatch
|
|
14
|
-
} from "./chunks/chunk-
|
|
14
|
+
} from "./chunks/chunk-AXLDUGXA.js";
|
|
15
15
|
import {
|
|
16
16
|
applyDefaultOutputFormat,
|
|
17
17
|
clearResolvedGlobalOptions,
|
|
@@ -21,27 +21,27 @@ import {
|
|
|
21
21
|
getGlobalOptions,
|
|
22
22
|
invalidateSearchCachesForMutation,
|
|
23
23
|
setResolvedGlobalOptions
|
|
24
|
-
} from "./chunks/chunk-
|
|
24
|
+
} from "./chunks/chunk-G2MOUCTU.js";
|
|
25
25
|
import {
|
|
26
26
|
PM_CORE_COMMAND_NAMES,
|
|
27
27
|
resolveSubcommandFlagContractsForCommand
|
|
28
|
-
} from "./chunks/chunk-
|
|
29
|
-
import "./chunks/chunk-
|
|
28
|
+
} from "./chunks/chunk-VXHMQDXA.js";
|
|
29
|
+
import "./chunks/chunk-YLAW3FZN.js";
|
|
30
30
|
import {
|
|
31
31
|
printError,
|
|
32
32
|
printResult,
|
|
33
33
|
writeStdout
|
|
34
|
-
} from "./chunks/chunk-
|
|
35
|
-
import "./chunks/chunk-
|
|
36
|
-
import "./chunks/chunk-
|
|
37
|
-
import "./chunks/chunk-
|
|
34
|
+
} from "./chunks/chunk-R4AKUPKI.js";
|
|
35
|
+
import "./chunks/chunk-KA22USXD.js";
|
|
36
|
+
import "./chunks/chunk-5XGWFUW2.js";
|
|
37
|
+
import "./chunks/chunk-TBV33CB4.js";
|
|
38
38
|
import {
|
|
39
39
|
commandOptionFlagLabel,
|
|
40
40
|
resolveCommandOptionPolicyState,
|
|
41
41
|
resolveItemTypeRegistry,
|
|
42
42
|
resolveTypeDefinition
|
|
43
|
-
} from "./chunks/chunk-
|
|
44
|
-
import "./chunks/chunk-
|
|
43
|
+
} from "./chunks/chunk-QXMXRPX5.js";
|
|
44
|
+
import "./chunks/chunk-LNH5Q32E.js";
|
|
45
45
|
import {
|
|
46
46
|
BUILTIN_ITEM_TYPE_VALUES,
|
|
47
47
|
EXIT_CODE,
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
setActiveExtensionServices,
|
|
86
86
|
toNonEmptyStringOrUndefined,
|
|
87
87
|
writeSettings
|
|
88
|
-
} from "./chunks/chunk-
|
|
88
|
+
} from "./chunks/chunk-CHM2VFVL.js";
|
|
89
89
|
|
|
90
90
|
// dist/cli/main.js
|
|
91
91
|
import { Command } from "commander";
|
|
@@ -186,7 +186,7 @@ async function maybeRunFirstUseTelemetryPrompt(commandPath, globalOptions) {
|
|
|
186
186
|
!(function() {
|
|
187
187
|
try {
|
|
188
188
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
189
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
189
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8d40e365-c64b-5f7b-a275-92c9123cff27");
|
|
190
190
|
} catch (e2) {
|
|
191
191
|
}
|
|
192
192
|
})();
|
|
@@ -655,7 +655,7 @@ async function sentryFlush(timeoutMs = 3e3) {
|
|
|
655
655
|
!(function() {
|
|
656
656
|
try {
|
|
657
657
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
658
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
658
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "73a3f15b-1652-55b5-8ca9-6eadaaad6420");
|
|
659
659
|
} catch (e2) {
|
|
660
660
|
}
|
|
661
661
|
})();
|
|
@@ -802,17 +802,19 @@ function validateLooseCommandOptionsWithFlagDefinitions(options, definitions, co
|
|
|
802
802
|
for (const definition of definitions) {
|
|
803
803
|
const keys = collectLooseOptionKeys(definition);
|
|
804
804
|
const label = formatLooseOptionLabel(definition);
|
|
805
|
-
|
|
806
|
-
|
|
805
|
+
const fallbackLabel = keys.length > 0 ? `--${keys[0]}` : null;
|
|
806
|
+
const normalizedLabel = label ?? fallbackLabel;
|
|
807
|
+
if (normalizedLabel) {
|
|
808
|
+
labels.push(normalizedLabel);
|
|
807
809
|
}
|
|
808
810
|
for (const key of keys) {
|
|
809
811
|
allowed.add(key);
|
|
810
812
|
if (definition.enabled === false) {
|
|
811
|
-
disabled.set(key,
|
|
813
|
+
disabled.set(key, normalizedLabel);
|
|
812
814
|
}
|
|
813
815
|
}
|
|
814
816
|
if (definition.required === true && definition.enabled !== false && keys.length > 0) {
|
|
815
|
-
required.push({ keys, label:
|
|
817
|
+
required.push({ keys, label: normalizedLabel });
|
|
816
818
|
}
|
|
817
819
|
}
|
|
818
820
|
for (const key of Object.keys(options)) {
|
|
@@ -968,7 +970,7 @@ function stripLooseCommandOptionTokens(args, definitions) {
|
|
|
968
970
|
if (parsed) {
|
|
969
971
|
const normalizedKey = toLooseOptionKey(parsed.key);
|
|
970
972
|
if (knownKeys.has(normalizedKey)) {
|
|
971
|
-
const token = args[index]
|
|
973
|
+
const token = args[index];
|
|
972
974
|
const consumed = booleanKeys.has(normalizedKey) && !token.includes("=") ? 1 : parsed.consumed;
|
|
973
975
|
index += consumed;
|
|
974
976
|
continue;
|
|
@@ -984,19 +986,23 @@ function stripLooseCommandOptionTokens(args, definitions) {
|
|
|
984
986
|
!(function() {
|
|
985
987
|
try {
|
|
986
988
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
987
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
989
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "146dcfa8-3537-5d79-b9b6-475987cf6224");
|
|
988
990
|
} catch (e2) {
|
|
989
991
|
}
|
|
990
992
|
})();
|
|
993
|
+
function firstExampleOrEmpty(examples) {
|
|
994
|
+
return examples.length > 0 ? [examples[0]] : [];
|
|
995
|
+
}
|
|
991
996
|
function renderCompactHelpBundle(bundle) {
|
|
992
997
|
const lines = [
|
|
993
998
|
"",
|
|
994
999
|
"Intent:",
|
|
995
1000
|
` ${bundle.why}`
|
|
996
1001
|
];
|
|
997
|
-
|
|
1002
|
+
const compactExamples = firstExampleOrEmpty(bundle.examples);
|
|
1003
|
+
if (compactExamples.length > 0) {
|
|
998
1004
|
lines.push("", "Example:");
|
|
999
|
-
lines.push(` ${
|
|
1005
|
+
lines.push(` ${compactExamples[0]}`);
|
|
1000
1006
|
}
|
|
1001
1007
|
lines.push("", "Need deeper rationale and more examples?");
|
|
1002
1008
|
lines.push(" Re-run with --explain.");
|
|
@@ -1229,6 +1235,19 @@ var HELP_BY_COMMAND_PATH = {
|
|
|
1229
1235
|
"Use --type <value> to load type-aware policy guidance in --help output."
|
|
1230
1236
|
]
|
|
1231
1237
|
},
|
|
1238
|
+
focus: {
|
|
1239
|
+
why: "Sets a session focused item so new pm create items default their --parent to it (project management = context management).",
|
|
1240
|
+
examples: [
|
|
1241
|
+
"pm focus pm-epic1",
|
|
1242
|
+
"pm focus",
|
|
1243
|
+
"pm focus --clear"
|
|
1244
|
+
],
|
|
1245
|
+
tips: [
|
|
1246
|
+
"Focus is session-local (stored in .agents/pm/runtime/session.json, gitignored) \u2014 it never affects teammates.",
|
|
1247
|
+
'An explicit --parent on pm create always overrides the focused item; use --parent "" to create with no parent.',
|
|
1248
|
+
"A stale focused item produces the same missing-parent validation as an explicit stale --parent."
|
|
1249
|
+
]
|
|
1250
|
+
},
|
|
1232
1251
|
update: {
|
|
1233
1252
|
why: "Mutates existing item fields while preserving history and lock safety.",
|
|
1234
1253
|
examples: [
|
|
@@ -1436,7 +1455,7 @@ var HELP_BY_COMMAND_PATH = {
|
|
|
1436
1455
|
tips: [
|
|
1437
1456
|
"Default depth is standard for body plus linked artifacts without append-only logs; use brief for metadata-only checks or --full for complete history-heavy metadata.",
|
|
1438
1457
|
"Use --fields for the smallest deterministic item metadata payload when an agent only needs specific fields.",
|
|
1439
|
-
"JSON output shape is { item,
|
|
1458
|
+
"JSON output shape is { item, linked, claim_state, children }; body is nested at item.body (parity with list --include-body), and children appears for requested/container rollups."
|
|
1440
1459
|
]
|
|
1441
1460
|
},
|
|
1442
1461
|
history: {
|
|
@@ -1652,6 +1671,30 @@ var HELP_BY_COMMAND_PATH = {
|
|
|
1652
1671
|
why: "Lifecycle alias that closes with reason text and clears assignment metadata.",
|
|
1653
1672
|
examples: ['pm close-task pm-a1b2 "All acceptance criteria met" --author "codex-agent" --message "Close and handoff"']
|
|
1654
1673
|
},
|
|
1674
|
+
meet: {
|
|
1675
|
+
why: "Shortcut to create a Meeting from friendly time flags (start/duration) without structured --event CSV.",
|
|
1676
|
+
examples: [
|
|
1677
|
+
'pm meet "Sprint Planning" --start +1h --duration 1h',
|
|
1678
|
+
'pm meet "1:1" --start 2026-07-01T15:00:00Z --end 2026-07-01T15:30:00Z --location "Room A"'
|
|
1679
|
+
],
|
|
1680
|
+
tips: [
|
|
1681
|
+
"Start defaults to now and duration to 1h; pass --end to set an explicit end instead of --duration.",
|
|
1682
|
+
"--duration units are h/d/w/m where m is months (not minutes); use --end for sub-hour spans."
|
|
1683
|
+
]
|
|
1684
|
+
},
|
|
1685
|
+
event: {
|
|
1686
|
+
why: "Shortcut to create an Event from friendly time flags (start/duration) without structured --event CSV.",
|
|
1687
|
+
examples: [
|
|
1688
|
+
'pm event "Release v2" --start 2026-07-01T10:00:00Z --duration 2h',
|
|
1689
|
+
'pm event "Conference" --start 2026-08-01 --all-day'
|
|
1690
|
+
],
|
|
1691
|
+
tips: ["Start defaults to now and duration to 1h; pass --end to set an explicit end instead of --duration."]
|
|
1692
|
+
},
|
|
1693
|
+
remind: {
|
|
1694
|
+
why: "Shortcut to create a Reminder from a single point in time without structured --reminder CSV.",
|
|
1695
|
+
examples: ['pm remind "Review PR" --at +2d', 'pm remind "Follow up" --at 2026-07-01T09:00:00Z --text "Ping the team"'],
|
|
1696
|
+
tips: ["The reminder time defaults to +1d and the reminder text defaults to the title."]
|
|
1697
|
+
},
|
|
1655
1698
|
completion: {
|
|
1656
1699
|
why: "Generates shell completion scripts for faster and more reliable command entry.",
|
|
1657
1700
|
examples: ["pm completion bash", "pm completion zsh", "pm completion fish", "pm completion bash --eager-tags"],
|
|
@@ -1703,7 +1746,7 @@ function resolveHelpNarrative(commandPath, detailMode) {
|
|
|
1703
1746
|
const bundle = resolveHelpBundleForPath(commandPath);
|
|
1704
1747
|
return {
|
|
1705
1748
|
intent: bundle.why,
|
|
1706
|
-
examples: detailMode === "detailed" ? [...bundle.examples] : bundle.examples
|
|
1749
|
+
examples: detailMode === "detailed" ? [...bundle.examples] : firstExampleOrEmpty(bundle.examples),
|
|
1707
1750
|
tips: detailMode === "detailed" ? [...bundle.tips ?? []] : [],
|
|
1708
1751
|
detail_mode: detailMode
|
|
1709
1752
|
};
|
|
@@ -1762,10 +1805,28 @@ function renderPmCommand(argv) {
|
|
|
1762
1805
|
!(function() {
|
|
1763
1806
|
try {
|
|
1764
1807
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
1765
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
1808
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5ecd5461-a75d-524f-9d41-e4108f6c3d21");
|
|
1766
1809
|
} catch (e2) {
|
|
1767
1810
|
}
|
|
1768
1811
|
})();
|
|
1812
|
+
var STRUCTURED_WHY_SUPPRESSION_CODES = /* @__PURE__ */ new Set([
|
|
1813
|
+
"unknown_command",
|
|
1814
|
+
"unknown_option",
|
|
1815
|
+
"missing_required_option",
|
|
1816
|
+
"missing_required_argument",
|
|
1817
|
+
"invalid_argument_value",
|
|
1818
|
+
"invalid_command_usage",
|
|
1819
|
+
"command_failed"
|
|
1820
|
+
]);
|
|
1821
|
+
function includeWhyInStructuredGuidance(message) {
|
|
1822
|
+
if (!message.why) {
|
|
1823
|
+
return false;
|
|
1824
|
+
}
|
|
1825
|
+
if (message.recovery?.recovery_mode === "compact") {
|
|
1826
|
+
return false;
|
|
1827
|
+
}
|
|
1828
|
+
return !STRUCTURED_WHY_SUPPRESSION_CODES.has(message.code);
|
|
1829
|
+
}
|
|
1769
1830
|
function errorType(code) {
|
|
1770
1831
|
return `urn:pm-cli:error:${code}`;
|
|
1771
1832
|
}
|
|
@@ -1932,7 +1993,7 @@ function guidanceToJsonEnvelope(message, exitCode) {
|
|
|
1932
1993
|
required: message.required,
|
|
1933
1994
|
exit_code: exitCode
|
|
1934
1995
|
};
|
|
1935
|
-
if (message
|
|
1996
|
+
if (includeWhyInStructuredGuidance(message)) {
|
|
1936
1997
|
payload.why = message.why;
|
|
1937
1998
|
}
|
|
1938
1999
|
if (message.examples && message.examples.length > 0) {
|
|
@@ -1954,7 +2015,7 @@ function guidanceToClassification(message) {
|
|
|
1954
2015
|
detail: message.happened,
|
|
1955
2016
|
required: message.required
|
|
1956
2017
|
};
|
|
1957
|
-
if (message
|
|
2018
|
+
if (includeWhyInStructuredGuidance(message)) {
|
|
1958
2019
|
payload.why = message.why;
|
|
1959
2020
|
}
|
|
1960
2021
|
if (message.examples && message.examples.length > 0) {
|
|
@@ -2027,7 +2088,7 @@ function buildAllowedValueRetryCommand(recovery, allowedValues) {
|
|
|
2027
2088
|
return void 0;
|
|
2028
2089
|
}
|
|
2029
2090
|
function buildFallbackTitleFromMessage(message) {
|
|
2030
|
-
const firstLine = message.split(/\r?\n/)[0]
|
|
2091
|
+
const firstLine = message.split(/\r?\n/)[0].trim();
|
|
2031
2092
|
if (firstLine.length === 0) {
|
|
2032
2093
|
return void 0;
|
|
2033
2094
|
}
|
|
@@ -2134,10 +2195,11 @@ function buildPmCliErrorGuidance(rawMessage, context) {
|
|
|
2134
2195
|
if (missingRequiredOption || missingRequiredOptions) {
|
|
2135
2196
|
const plural = Boolean(missingRequiredOptions);
|
|
2136
2197
|
const missingOptionFlag = !plural ? message.replace(/^Missing required option\s+/, "").trim() : null;
|
|
2198
|
+
const missingOptionLabel = missingOptionFlag ?? "";
|
|
2137
2199
|
const missingOptionRequired = missingOptionFlag ? `Pass ${missingOptionFlag} with a valid value before running the command.` : "Provide the required option for this command invocation.";
|
|
2138
2200
|
return applyPmCliErrorContext(makeGuidanceMessage({
|
|
2139
2201
|
code: "missing_required_option",
|
|
2140
|
-
title: plural ? "Missing required options" :
|
|
2202
|
+
title: plural ? "Missing required options" : `Missing required option ${missingOptionLabel}`,
|
|
2141
2203
|
happened: message,
|
|
2142
2204
|
required: plural ? "Provide every required option for this command invocation." : missingOptionRequired,
|
|
2143
2205
|
why: "Required options define command intent and enforce deterministic write contracts.",
|
|
@@ -2945,7 +3007,7 @@ function ensureCommandPath(root, pathParts) {
|
|
|
2945
3007
|
!(function() {
|
|
2946
3008
|
try {
|
|
2947
3009
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
2948
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3010
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b586e62c-508a-5b84-9104-e9df98a81188");
|
|
2949
3011
|
} catch (e2) {
|
|
2950
3012
|
}
|
|
2951
3013
|
})();
|
|
@@ -3230,8 +3292,8 @@ function collectLongFlagCandidates(contract) {
|
|
|
3230
3292
|
}
|
|
3231
3293
|
return candidates;
|
|
3232
3294
|
}
|
|
3233
|
-
function buildFlagLookup(commandName) {
|
|
3234
|
-
const contracts = resolveSubcommandFlagContractsForCommand(commandName);
|
|
3295
|
+
function buildFlagLookup(commandName, contractsOverride) {
|
|
3296
|
+
const contracts = contractsOverride ?? resolveSubcommandFlagContractsForCommand(commandName);
|
|
3235
3297
|
const canonicalByNormalized = /* @__PURE__ */ new Map();
|
|
3236
3298
|
const canonicalByCompact = /* @__PURE__ */ new Map();
|
|
3237
3299
|
const canonicalComparablesMap = /* @__PURE__ */ new Map();
|
|
@@ -3741,7 +3803,7 @@ async function enforceItemFormatWriteGateAndPreflightMigration(commandPath, opti
|
|
|
3741
3803
|
!(function() {
|
|
3742
3804
|
try {
|
|
3743
3805
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3744
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3806
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "40abf375-9b2a-5973-9c05-a3ba20617c07");
|
|
3745
3807
|
} catch (e2) {
|
|
3746
3808
|
}
|
|
3747
3809
|
})();
|
|
@@ -3918,9 +3980,9 @@ function collectInstalledPackageCommandPathHints(unknownToken, extensionDescript
|
|
|
3918
3980
|
}
|
|
3919
3981
|
return [...new Set(hints)].sort((left, right) => left.localeCompare(right));
|
|
3920
3982
|
}
|
|
3921
|
-
function collectKnownLongFlags(commandName) {
|
|
3983
|
+
function collectKnownLongFlags(commandName, contractsOverride) {
|
|
3922
3984
|
const flags = /* @__PURE__ */ new Set();
|
|
3923
|
-
const contracts = resolveSubcommandFlagContractsForCommand(commandName);
|
|
3985
|
+
const contracts = contractsOverride ?? resolveSubcommandFlagContractsForCommand(commandName);
|
|
3924
3986
|
for (const contract of contracts) {
|
|
3925
3987
|
if (contract.flag.startsWith("--")) {
|
|
3926
3988
|
flags.add(normalizeLongFlag(contract.flag));
|
|
@@ -4042,7 +4104,7 @@ function buildUnknownCommandGuidanceFromRuntime(rawMessage, root, extensionDescr
|
|
|
4042
4104
|
if (commandPaths.length === 0) {
|
|
4043
4105
|
return void 0;
|
|
4044
4106
|
}
|
|
4045
|
-
const primaryToken = normalizedUnknown.split(" ")[0]
|
|
4107
|
+
const primaryToken = normalizedUnknown.split(" ")[0];
|
|
4046
4108
|
const rankedCandidates = commandPaths.map((commandPath) => {
|
|
4047
4109
|
const directScore = scoreCommandPathMatch(commandPath, normalizedUnknown);
|
|
4048
4110
|
const fallbackScore = primaryToken !== normalizedUnknown ? scoreCommandPathMatch(commandPath, primaryToken) : Number.POSITIVE_INFINITY;
|
|
@@ -4060,7 +4122,8 @@ function buildUnknownCommandGuidanceFromRuntime(rawMessage, root, extensionDescr
|
|
|
4060
4122
|
const fallbackTopLevel = [...new Set(commandPaths.map((commandPath) => commandPath.split(" ")[0]).filter((segment) => segment.length > 0))];
|
|
4061
4123
|
fallbackTopLevel.sort((left, right) => left.localeCompare(right));
|
|
4062
4124
|
const suggestedPaths = (combinedCandidates.length > 0 ? combinedCandidates : fallbackTopLevel).slice(0, 3);
|
|
4063
|
-
const
|
|
4125
|
+
const suggestedExamples = suggestedPaths.map((path) => `pm ${path} --help`);
|
|
4126
|
+
const examples = combinedCandidates.length > 0 ? [.../* @__PURE__ */ new Set([...suggestedExamples, "pm --help"])] : [.../* @__PURE__ */ new Set(["pm --help", ...suggestedExamples])];
|
|
4064
4127
|
const optionalPackageHint = resolveOptionalPackageInstallHint(normalizedUnknown);
|
|
4065
4128
|
const didYouMean = combinedCandidates.length > 0 ? `Did you mean: ${combinedCandidates.slice(0, 3).join(", ")}?` : null;
|
|
4066
4129
|
return {
|
|
@@ -4222,7 +4285,7 @@ async function formatCommanderUsageJson(error, rootProgram, extensionDescriptors
|
|
|
4222
4285
|
!(function() {
|
|
4223
4286
|
try {
|
|
4224
4287
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
4225
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
4288
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "9cd6003e-01d2-51de-9fbd-aa1d49d03e68");
|
|
4226
4289
|
} catch (e2) {
|
|
4227
4290
|
}
|
|
4228
4291
|
})();
|
|
@@ -4318,14 +4381,13 @@ function compactHelpOptionAliases(options) {
|
|
|
4318
4381
|
}
|
|
4319
4382
|
}
|
|
4320
4383
|
for (const aliasOption of aliasOptions) {
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
}
|
|
4324
|
-
const canonical = canonicalByLong.get(aliasOption.alias_for);
|
|
4384
|
+
const aliasFor = aliasOption.alias_for;
|
|
4385
|
+
const canonical = canonicalByLong.get(aliasFor);
|
|
4325
4386
|
if (!canonical) {
|
|
4326
4387
|
continue;
|
|
4327
4388
|
}
|
|
4328
|
-
const
|
|
4389
|
+
const aliasLong = aliasOption.long;
|
|
4390
|
+
const aliases = /* @__PURE__ */ new Set([...canonical.aliases ?? [], aliasLong]);
|
|
4329
4391
|
canonical.aliases = [...aliases].sort((left, right) => left.localeCompare(right));
|
|
4330
4392
|
}
|
|
4331
4393
|
return options.filter((option) => {
|
|
@@ -4496,7 +4558,7 @@ function attachCreateUpdatePolicyHelpText(rootProgram, typeRegistry, argv) {
|
|
|
4496
4558
|
!(function() {
|
|
4497
4559
|
try {
|
|
4498
4560
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
4499
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
4561
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "12283419-5440-5044-9a95-611ae055357c");
|
|
4500
4562
|
} catch (e2) {
|
|
4501
4563
|
}
|
|
4502
4564
|
})();
|
|
@@ -4509,6 +4571,9 @@ if (typeof process.env[PM_PACKAGE_ROOT_ENV] !== "string" || process.env[PM_PACKA
|
|
|
4509
4571
|
}
|
|
4510
4572
|
var activeExtensionHookContext = null;
|
|
4511
4573
|
var activeTelemetryCommandContext = null;
|
|
4574
|
+
function setActiveExtensionHookContextForTest(context) {
|
|
4575
|
+
activeExtensionHookContext = context;
|
|
4576
|
+
}
|
|
4512
4577
|
var TELEMETRY_COMMAND_RESOLUTION_SET = /* @__PURE__ */ new Set([
|
|
4513
4578
|
"success",
|
|
4514
4579
|
"nonexistent_command",
|
|
@@ -4535,10 +4600,10 @@ var EXPECTED_HANDLED_ERROR_EXIT_CODES = /* @__PURE__ */ new Set([
|
|
|
4535
4600
|
EXIT_CODE.CONFLICT
|
|
4536
4601
|
]);
|
|
4537
4602
|
var TRUE_LIKE_ENV_VALUES = /* @__PURE__ */ new Set(["1", "true", "yes", "on"]);
|
|
4538
|
-
var loadSetupRegistrationModule = createLazyModule(() => import("./chunks/register-setup-
|
|
4539
|
-
var loadListQueryRegistrationModule = createLazyModule(() => import("./chunks/register-list-query-
|
|
4540
|
-
var loadMutationRegistrationModule = createLazyModule(() => import("./chunks/register-mutation-
|
|
4541
|
-
var loadOperationRegistrationModule = createLazyModule(() => import("./chunks/register-operations-
|
|
4603
|
+
var loadSetupRegistrationModule = createLazyModule(() => import("./chunks/register-setup-WHG3NBP6.js"));
|
|
4604
|
+
var loadListQueryRegistrationModule = createLazyModule(() => import("./chunks/register-list-query-C2MS3BVQ.js"));
|
|
4605
|
+
var loadMutationRegistrationModule = createLazyModule(() => import("./chunks/register-mutation-6UCOEQ6L.js"));
|
|
4606
|
+
var loadOperationRegistrationModule = createLazyModule(() => import("./chunks/register-operations-L6C32FDA.js"));
|
|
4542
4607
|
function describeUnknownError(error) {
|
|
4543
4608
|
if (error instanceof PmCliError) {
|
|
4544
4609
|
return error.message;
|
|
@@ -4589,6 +4654,7 @@ function buildPmCliRecoveryContext(context, invocationArgv, rawMessage) {
|
|
|
4589
4654
|
const existingRecovery = context?.recovery;
|
|
4590
4655
|
if (existingRecovery?.recovery_mode === "compact" && !explainRequested) {
|
|
4591
4656
|
return {
|
|
4657
|
+
/* c8 ignore next */
|
|
4592
4658
|
...context ?? {},
|
|
4593
4659
|
recovery: existingRecovery
|
|
4594
4660
|
};
|
|
@@ -4616,6 +4682,7 @@ function buildPmCliRecoveryContext(context, invocationArgv, rawMessage) {
|
|
|
4616
4682
|
const recovery = {
|
|
4617
4683
|
attempted_command: existingRecovery?.attempted_command ?? attemptedCommand,
|
|
4618
4684
|
normalized_args: existingRecovery?.normalized_args ?? [...invocationArgv],
|
|
4685
|
+
/* c8 ignore next */
|
|
4619
4686
|
provided_fields: existingRecovery?.provided_fields ?? (providedFields.length > 0 ? providedFields : void 0),
|
|
4620
4687
|
missing: existingRecovery?.missing ?? inferredMissing,
|
|
4621
4688
|
...existingRecovery?.recovery_mode ? { recovery_mode: existingRecovery.recovery_mode } : {},
|
|
@@ -4839,6 +4906,67 @@ async function maybeLogHandledCliErrorToSentry(params) {
|
|
|
4839
4906
|
sentryLogCliUsageError(params);
|
|
4840
4907
|
return true;
|
|
4841
4908
|
}
|
|
4909
|
+
async function handleGenericRunPmCliError(params) {
|
|
4910
|
+
const message = describeUnknownError(params.error);
|
|
4911
|
+
const classification = classifyUnknownError(message);
|
|
4912
|
+
if (params.bootstrapGlobal.json) {
|
|
4913
|
+
printError(JSON.stringify(formatUnknownErrorForJson(message, EXIT_CODE.GENERIC_FAILURE), null, 2));
|
|
4914
|
+
} else {
|
|
4915
|
+
printError(message);
|
|
4916
|
+
}
|
|
4917
|
+
process.exitCode = EXIT_CODE.GENERIC_FAILURE;
|
|
4918
|
+
let errorCategory = "runtime";
|
|
4919
|
+
let commandResolution = "runtime_failed";
|
|
4920
|
+
try {
|
|
4921
|
+
await ensureSentryForErrorReporting();
|
|
4922
|
+
sentryCaptureCliError(params.error);
|
|
4923
|
+
const telemetry = await params.emitTelemetryCommandError({
|
|
4924
|
+
command: params.attemptedCommand,
|
|
4925
|
+
errorCode: classification.code,
|
|
4926
|
+
errorMessage: classification.detail,
|
|
4927
|
+
exitCode: EXIT_CODE.GENERIC_FAILURE,
|
|
4928
|
+
options: {
|
|
4929
|
+
bootstrap_global_options: params.bootstrapGlobal
|
|
4930
|
+
},
|
|
4931
|
+
resolutionStage: "execute"
|
|
4932
|
+
});
|
|
4933
|
+
errorCategory = telemetry.errorCategory;
|
|
4934
|
+
commandResolution = telemetry.commandResolution;
|
|
4935
|
+
sentryFinishCommandSpan(false, message, {
|
|
4936
|
+
error_code: classification.code,
|
|
4937
|
+
error_category: errorCategory,
|
|
4938
|
+
exit_code: EXIT_CODE.GENERIC_FAILURE,
|
|
4939
|
+
command_resolution: commandResolution,
|
|
4940
|
+
resolution_stage: "execute"
|
|
4941
|
+
});
|
|
4942
|
+
} catch (reportingError) {
|
|
4943
|
+
if (!params.bootstrapGlobal.json) {
|
|
4944
|
+
printError(`Failed to report error: ${describeUnknownError(reportingError)}`);
|
|
4945
|
+
}
|
|
4946
|
+
}
|
|
4947
|
+
try {
|
|
4948
|
+
await runAndClearAfterCommandHooks({
|
|
4949
|
+
ok: false,
|
|
4950
|
+
error: message,
|
|
4951
|
+
exit_code: EXIT_CODE.GENERIC_FAILURE,
|
|
4952
|
+
error_code: classification.code,
|
|
4953
|
+
error_category: errorCategory,
|
|
4954
|
+
command_resolution: commandResolution,
|
|
4955
|
+
resolution_stage: "execute"
|
|
4956
|
+
});
|
|
4957
|
+
} catch (hookError) {
|
|
4958
|
+
if (!params.bootstrapGlobal.json) {
|
|
4959
|
+
printError(`Failed to run error hooks: ${describeUnknownError(hookError)}`);
|
|
4960
|
+
}
|
|
4961
|
+
}
|
|
4962
|
+
try {
|
|
4963
|
+
await sentryFlush();
|
|
4964
|
+
} catch (flushError) {
|
|
4965
|
+
if (!params.bootstrapGlobal.json) {
|
|
4966
|
+
printError(`Failed to flush error reporting: ${describeUnknownError(flushError)}`);
|
|
4967
|
+
}
|
|
4968
|
+
}
|
|
4969
|
+
}
|
|
4842
4970
|
function extractCommandScopedOptions(command, commandArgs, extensionFlagDefinitions = []) {
|
|
4843
4971
|
const allOptions = command.optsWithGlobals();
|
|
4844
4972
|
const scoped = { ...allOptions };
|
|
@@ -5924,7 +6052,24 @@ function resolveCoreCommandRegistrationSelection(invocationArgv) {
|
|
|
5924
6052
|
function shouldAttachRichHelpTextForInvocation(invocationArgv) {
|
|
5925
6053
|
return invocationArgv.length === 0 || parseBootstrapHelpRequest(invocationArgv).requested;
|
|
5926
6054
|
}
|
|
6055
|
+
var IDEMPOTENT_TOP_LEVEL_REGISTRATION = /* @__PURE__ */ Symbol("pmCliIdempotentTopLevelRegistration");
|
|
6056
|
+
function ensureIdempotentTopLevelCommandRegistration(rootProgram) {
|
|
6057
|
+
const guarded = rootProgram;
|
|
6058
|
+
if (guarded[IDEMPOTENT_TOP_LEVEL_REGISTRATION]) {
|
|
6059
|
+
return;
|
|
6060
|
+
}
|
|
6061
|
+
guarded[IDEMPOTENT_TOP_LEVEL_REGISTRATION] = true;
|
|
6062
|
+
const registerOriginalCommand = rootProgram.command.bind(rootProgram);
|
|
6063
|
+
rootProgram.command = ((nameAndArgs, ...rest) => {
|
|
6064
|
+
const commandName = nameAndArgs.split(/\s+/u)[0];
|
|
6065
|
+
if (rootProgram.commands.some((existing) => existing.name() === commandName || existing.aliases().includes(commandName))) {
|
|
6066
|
+
return new Command(commandName);
|
|
6067
|
+
}
|
|
6068
|
+
return registerOriginalCommand(nameAndArgs, ...rest);
|
|
6069
|
+
});
|
|
6070
|
+
}
|
|
5927
6071
|
async function registerCoreCommandFamilies(rootProgram, selection) {
|
|
6072
|
+
ensureIdempotentTopLevelCommandRegistration(rootProgram);
|
|
5928
6073
|
if (selection.setup) {
|
|
5929
6074
|
const { registerSetupCommands } = await loadSetupRegistrationModule();
|
|
5930
6075
|
registerSetupCommands(rootProgram);
|
|
@@ -6030,11 +6175,11 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6030
6175
|
const bootstrapPmRoot = resolvePmRoot(process.cwd(), bootstrapGlobal.path);
|
|
6031
6176
|
const attemptedCommand = parseBootstrapCommandName(invocationArgv) ?? "<unknown>";
|
|
6032
6177
|
const emitTelemetryCommandError = async (params) => {
|
|
6033
|
-
const
|
|
6034
|
-
const
|
|
6178
|
+
const errorCategory = resolveTelemetryErrorCategory(params.errorCode);
|
|
6179
|
+
const commandResolution = deriveTelemetryCommandResolution({
|
|
6035
6180
|
ok: false,
|
|
6036
6181
|
errorCode: params.errorCode,
|
|
6037
|
-
errorCategory
|
|
6182
|
+
errorCategory
|
|
6038
6183
|
});
|
|
6039
6184
|
await emitTelemetryErrorEvent({
|
|
6040
6185
|
command: params.command,
|
|
@@ -6046,13 +6191,13 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6046
6191
|
error_code: params.errorCode,
|
|
6047
6192
|
error_message: params.errorMessage,
|
|
6048
6193
|
exit_code: params.exitCode,
|
|
6049
|
-
error_category:
|
|
6050
|
-
command_resolution:
|
|
6194
|
+
error_category: errorCategory,
|
|
6195
|
+
command_resolution: commandResolution,
|
|
6051
6196
|
resolution_stage: params.resolutionStage
|
|
6052
6197
|
});
|
|
6053
6198
|
return {
|
|
6054
|
-
errorCategory
|
|
6055
|
-
commandResolution
|
|
6199
|
+
errorCategory,
|
|
6200
|
+
commandResolution
|
|
6056
6201
|
};
|
|
6057
6202
|
};
|
|
6058
6203
|
if (!bootstrapGlobal.noExtensions) {
|
|
@@ -6074,11 +6219,13 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6074
6219
|
const exitCode = error instanceof PmCliError ? error.exitCode : normalizeThrownExitCode(numericExitCode);
|
|
6075
6220
|
const context = error instanceof PmCliError ? error.context : void 0;
|
|
6076
6221
|
const enrichedContext = buildPmCliRecoveryContext(context, invocationArgv, errorMessage);
|
|
6077
|
-
const
|
|
6078
|
-
const
|
|
6222
|
+
const classification = classifyPmCliError(errorMessage, enrichedContext);
|
|
6223
|
+
const renderedError = jsonErrors ? JSON.stringify(formatPmCliErrorForJson(errorMessage, exitCode, enrichedContext), null, 2) : formatPmCliErrorForDisplay(errorMessage, enrichedContext);
|
|
6224
|
+
printError(renderedError);
|
|
6225
|
+
const { errorCategory, commandResolution } = await emitTelemetryCommandError({
|
|
6079
6226
|
command: attemptedCommand,
|
|
6080
|
-
errorCode:
|
|
6081
|
-
errorMessage:
|
|
6227
|
+
errorCode: classification.code,
|
|
6228
|
+
errorMessage: classification.detail,
|
|
6082
6229
|
exitCode,
|
|
6083
6230
|
options: {
|
|
6084
6231
|
bootstrap_global_options: bootstrapGlobal
|
|
@@ -6087,38 +6234,33 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6087
6234
|
});
|
|
6088
6235
|
const loggedHandledErrorToSentry = await maybeLogHandledCliErrorToSentry({
|
|
6089
6236
|
command: attemptedCommand,
|
|
6090
|
-
error_code:
|
|
6091
|
-
error_category:
|
|
6237
|
+
error_code: classification.code,
|
|
6238
|
+
error_category: errorCategory,
|
|
6092
6239
|
exit_code: exitCode,
|
|
6093
|
-
error_message:
|
|
6094
|
-
command_resolution:
|
|
6240
|
+
error_message: classification.detail,
|
|
6241
|
+
command_resolution: commandResolution,
|
|
6095
6242
|
resolution_stage: "execute",
|
|
6096
6243
|
source_context: activeTelemetryCommandContext?.source_context
|
|
6097
6244
|
});
|
|
6098
6245
|
sentryFinishCommandSpan(false, errorMessage, {
|
|
6099
|
-
error_code:
|
|
6100
|
-
error_category:
|
|
6246
|
+
error_code: classification.code,
|
|
6247
|
+
error_category: errorCategory,
|
|
6101
6248
|
exit_code: exitCode,
|
|
6102
|
-
command_resolution:
|
|
6249
|
+
command_resolution: commandResolution,
|
|
6103
6250
|
resolution_stage: "execute"
|
|
6104
6251
|
});
|
|
6105
6252
|
await runAndClearAfterCommandHooks({
|
|
6106
6253
|
ok: false,
|
|
6107
6254
|
error: errorMessage,
|
|
6108
6255
|
exit_code: exitCode,
|
|
6109
|
-
error_code:
|
|
6110
|
-
error_category:
|
|
6111
|
-
command_resolution:
|
|
6256
|
+
error_code: classification.code,
|
|
6257
|
+
error_category: errorCategory,
|
|
6258
|
+
command_resolution: commandResolution,
|
|
6112
6259
|
resolution_stage: "execute"
|
|
6113
6260
|
});
|
|
6114
6261
|
if (loggedHandledErrorToSentry) {
|
|
6115
6262
|
sentryCaptureCliError(wrapThrownErrorForSentry(error, errorMessage));
|
|
6116
6263
|
}
|
|
6117
|
-
if (jsonErrors) {
|
|
6118
|
-
printError(JSON.stringify(formatPmCliErrorForJson(errorMessage, exitCode, enrichedContext), null, 2));
|
|
6119
|
-
} else {
|
|
6120
|
-
printError(formatPmCliErrorForDisplay(errorMessage, enrichedContext));
|
|
6121
|
-
}
|
|
6122
6264
|
if (loggedHandledErrorToSentry) {
|
|
6123
6265
|
await sentryFlush(HANDLED_ERROR_SENTRY_FLUSH_TIMEOUT_MS);
|
|
6124
6266
|
}
|
|
@@ -6136,7 +6278,7 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6136
6278
|
const unknownMessage = `unknown command '${unknownToken}'`;
|
|
6137
6279
|
const recoveryCommandDescriptors = await loadRuntimeExtensionCommandDescriptorsForRecovery(resolvePmRoot(process.cwd(), bootstrapGlobal.path));
|
|
6138
6280
|
const usageContext = await resolveCommanderUsageContext({ message: unknownMessage }, program, recoveryCommandDescriptors);
|
|
6139
|
-
const
|
|
6281
|
+
const classification = classifyCommanderError(usageContext.message, usageContext.commandName, usageContext.allowedTypes, {
|
|
6140
6282
|
unknownCommandExamples: usageContext.unknownCommandExamples,
|
|
6141
6283
|
unknownCommandNextSteps: usageContext.unknownCommandNextSteps,
|
|
6142
6284
|
attemptedCommand: usageContext.attemptedCommand,
|
|
@@ -6145,10 +6287,10 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6145
6287
|
unknownOptionSuggestions: usageContext.unknownOptionSuggestions,
|
|
6146
6288
|
suggestedRetryCommand: usageContext.suggestedRetryCommand
|
|
6147
6289
|
});
|
|
6148
|
-
const { errorCategory
|
|
6290
|
+
const { errorCategory, commandResolution } = await emitTelemetryCommandError({
|
|
6149
6291
|
command: unknownToken,
|
|
6150
|
-
errorCode:
|
|
6151
|
-
errorMessage:
|
|
6292
|
+
errorCode: classification.code,
|
|
6293
|
+
errorMessage: classification.detail,
|
|
6152
6294
|
exitCode: EXIT_CODE.USAGE,
|
|
6153
6295
|
options: {
|
|
6154
6296
|
bootstrap_global_options: bootstrapGlobal,
|
|
@@ -6158,29 +6300,29 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6158
6300
|
});
|
|
6159
6301
|
const loggedHandledErrorToSentry = await maybeLogHandledCliErrorToSentry({
|
|
6160
6302
|
command: unknownToken,
|
|
6161
|
-
error_code:
|
|
6162
|
-
error_category:
|
|
6303
|
+
error_code: classification.code,
|
|
6304
|
+
error_category: errorCategory,
|
|
6163
6305
|
exit_code: EXIT_CODE.USAGE,
|
|
6164
|
-
error_message:
|
|
6165
|
-
command_resolution:
|
|
6306
|
+
error_message: classification.detail,
|
|
6307
|
+
command_resolution: commandResolution,
|
|
6166
6308
|
resolution_stage: "parse",
|
|
6167
6309
|
source_context: activeTelemetryCommandContext?.source_context
|
|
6168
6310
|
});
|
|
6169
6311
|
const renderedUsage = jsonErrors ? await formatCommanderUsageJson({ message: unknownMessage }, program, recoveryCommandDescriptors) : await formatCommanderUsageMessage({ message: unknownMessage }, program, recoveryCommandDescriptors);
|
|
6170
6312
|
sentryFinishCommandSpan(false, unknownMessage, {
|
|
6171
|
-
error_code:
|
|
6172
|
-
error_category:
|
|
6313
|
+
error_code: classification.code,
|
|
6314
|
+
error_category: errorCategory,
|
|
6173
6315
|
exit_code: EXIT_CODE.USAGE,
|
|
6174
|
-
command_resolution:
|
|
6316
|
+
command_resolution: commandResolution,
|
|
6175
6317
|
resolution_stage: "parse"
|
|
6176
6318
|
});
|
|
6177
6319
|
await runAndClearAfterCommandHooks({
|
|
6178
6320
|
ok: false,
|
|
6179
6321
|
error: unknownMessage,
|
|
6180
6322
|
exit_code: EXIT_CODE.USAGE,
|
|
6181
|
-
error_code:
|
|
6182
|
-
error_category:
|
|
6183
|
-
command_resolution:
|
|
6323
|
+
error_code: classification.code,
|
|
6324
|
+
error_category: errorCategory,
|
|
6325
|
+
command_resolution: commandResolution,
|
|
6184
6326
|
resolution_stage: "parse"
|
|
6185
6327
|
});
|
|
6186
6328
|
if (jsonErrors) {
|
|
@@ -6225,7 +6367,7 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6225
6367
|
}
|
|
6226
6368
|
if (code?.startsWith("commander.")) {
|
|
6227
6369
|
const usageContext = await resolveCommanderUsageContext(error, program, activeRuntimeExtensionCommandDescriptors);
|
|
6228
|
-
const
|
|
6370
|
+
const classification = classifyCommanderError(usageContext.message, usageContext.commandName, usageContext.allowedTypes, {
|
|
6229
6371
|
unknownCommandExamples: usageContext.unknownCommandExamples,
|
|
6230
6372
|
unknownCommandNextSteps: usageContext.unknownCommandNextSteps,
|
|
6231
6373
|
attemptedCommand: usageContext.attemptedCommand,
|
|
@@ -6234,10 +6376,10 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6234
6376
|
unknownOptionSuggestions: usageContext.unknownOptionSuggestions,
|
|
6235
6377
|
suggestedRetryCommand: usageContext.suggestedRetryCommand
|
|
6236
6378
|
});
|
|
6237
|
-
const { errorCategory
|
|
6379
|
+
const { errorCategory, commandResolution } = await emitTelemetryCommandError({
|
|
6238
6380
|
command: attemptedCommand,
|
|
6239
|
-
errorCode:
|
|
6240
|
-
errorMessage:
|
|
6381
|
+
errorCode: classification.code,
|
|
6382
|
+
errorMessage: classification.detail,
|
|
6241
6383
|
exitCode: EXIT_CODE.USAGE,
|
|
6242
6384
|
options: {
|
|
6243
6385
|
bootstrap_global_options: bootstrapGlobal,
|
|
@@ -6247,29 +6389,29 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6247
6389
|
});
|
|
6248
6390
|
const loggedHandledErrorToSentry = await maybeLogHandledCliErrorToSentry({
|
|
6249
6391
|
command: attemptedCommand,
|
|
6250
|
-
error_code:
|
|
6251
|
-
error_category:
|
|
6392
|
+
error_code: classification.code,
|
|
6393
|
+
error_category: errorCategory,
|
|
6252
6394
|
exit_code: EXIT_CODE.USAGE,
|
|
6253
|
-
error_message:
|
|
6254
|
-
command_resolution:
|
|
6395
|
+
error_message: classification.detail,
|
|
6396
|
+
command_resolution: commandResolution,
|
|
6255
6397
|
resolution_stage: "parse",
|
|
6256
6398
|
source_context: activeTelemetryCommandContext?.source_context
|
|
6257
6399
|
});
|
|
6258
6400
|
const renderedUsage = jsonErrors ? await formatCommanderUsageJson(error, program, activeRuntimeExtensionCommandDescriptors) : await formatCommanderUsageMessage(error, program, activeRuntimeExtensionCommandDescriptors);
|
|
6259
6401
|
sentryFinishCommandSpan(false, usageContext.message, {
|
|
6260
|
-
error_code:
|
|
6261
|
-
error_category:
|
|
6402
|
+
error_code: classification.code,
|
|
6403
|
+
error_category: errorCategory,
|
|
6262
6404
|
exit_code: EXIT_CODE.USAGE,
|
|
6263
|
-
command_resolution:
|
|
6405
|
+
command_resolution: commandResolution,
|
|
6264
6406
|
resolution_stage: "parse"
|
|
6265
6407
|
});
|
|
6266
6408
|
await runAndClearAfterCommandHooks({
|
|
6267
6409
|
ok: false,
|
|
6268
6410
|
error: usageContext.message,
|
|
6269
6411
|
exit_code: EXIT_CODE.USAGE,
|
|
6270
|
-
error_code:
|
|
6271
|
-
error_category:
|
|
6272
|
-
command_resolution:
|
|
6412
|
+
error_code: classification.code,
|
|
6413
|
+
error_category: errorCategory,
|
|
6414
|
+
command_resolution: commandResolution,
|
|
6273
6415
|
resolution_stage: "parse"
|
|
6274
6416
|
});
|
|
6275
6417
|
if (jsonErrors) {
|
|
@@ -6284,51 +6426,82 @@ async function runPmCli(rawArgv = process.argv.slice(2)) {
|
|
|
6284
6426
|
return;
|
|
6285
6427
|
}
|
|
6286
6428
|
}
|
|
6287
|
-
await
|
|
6288
|
-
|
|
6289
|
-
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
command: attemptedCommand,
|
|
6293
|
-
errorCode: classification.code,
|
|
6294
|
-
errorMessage: classification.detail,
|
|
6295
|
-
exitCode: EXIT_CODE.GENERIC_FAILURE,
|
|
6296
|
-
options: {
|
|
6297
|
-
bootstrap_global_options: bootstrapGlobal
|
|
6298
|
-
},
|
|
6299
|
-
resolutionStage: "execute"
|
|
6300
|
-
});
|
|
6301
|
-
sentryFinishCommandSpan(false, message, {
|
|
6302
|
-
error_code: classification.code,
|
|
6303
|
-
error_category: errorCategory,
|
|
6304
|
-
exit_code: EXIT_CODE.GENERIC_FAILURE,
|
|
6305
|
-
command_resolution: commandResolution,
|
|
6306
|
-
resolution_stage: "execute"
|
|
6429
|
+
await handleGenericRunPmCliError({
|
|
6430
|
+
error,
|
|
6431
|
+
attemptedCommand,
|
|
6432
|
+
bootstrapGlobal,
|
|
6433
|
+
emitTelemetryCommandError
|
|
6307
6434
|
});
|
|
6308
|
-
await runAndClearAfterCommandHooks({
|
|
6309
|
-
ok: false,
|
|
6310
|
-
error: message,
|
|
6311
|
-
exit_code: EXIT_CODE.GENERIC_FAILURE,
|
|
6312
|
-
error_code: classification.code,
|
|
6313
|
-
error_category: errorCategory,
|
|
6314
|
-
command_resolution: commandResolution,
|
|
6315
|
-
resolution_stage: "execute"
|
|
6316
|
-
});
|
|
6317
|
-
if (jsonErrors) {
|
|
6318
|
-
printError(JSON.stringify(formatUnknownErrorForJson(message, EXIT_CODE.GENERIC_FAILURE), null, 2));
|
|
6319
|
-
} else {
|
|
6320
|
-
printError(message);
|
|
6321
|
-
}
|
|
6322
|
-
await sentryFlush();
|
|
6323
|
-
process.exitCode = EXIT_CODE.GENERIC_FAILURE;
|
|
6324
6435
|
}
|
|
6325
6436
|
}
|
|
6326
6437
|
var _testOnly = {
|
|
6438
|
+
activationCommandMatchesProbe,
|
|
6439
|
+
bootstrapProfileEnabled,
|
|
6440
|
+
buildBootstrapActivationProbe,
|
|
6441
|
+
buildPostActionTelemetryOutcome,
|
|
6327
6442
|
buildPmCliRecoveryContext,
|
|
6443
|
+
buildRuntimeExtensionDiscoverySnapshotCacheKey,
|
|
6444
|
+
buildRuntimeExtensionSnapshotCacheKey,
|
|
6445
|
+
addRuntimeFieldOption,
|
|
6446
|
+
collectActivationCommandCandidates,
|
|
6447
|
+
collectExtensionFlagDefinitionsForCommand,
|
|
6448
|
+
collectExtensionFlagDefinitionsForInvocation,
|
|
6449
|
+
collectLeadingCommandArgs,
|
|
6450
|
+
collectParsedActivationCommandArgs,
|
|
6451
|
+
collectRuntimeFieldLooseFlagDefinitionsForCommand,
|
|
6452
|
+
commandHasLongOption,
|
|
6453
|
+
commandHasShortOption,
|
|
6454
|
+
commandPathNeedsSearchExtensions,
|
|
6455
|
+
commandPathNeedsTemplateExtensions,
|
|
6456
|
+
describeUnknownError,
|
|
6457
|
+
defaultPreflightDecision,
|
|
6458
|
+
discoveryNeedsActivationForProbe,
|
|
6459
|
+
emitExtensionProfile,
|
|
6460
|
+
emitExtensionSkippedProfile,
|
|
6461
|
+
emitSettingsReadWarnings,
|
|
6462
|
+
ensureIdempotentTopLevelCommandRegistration,
|
|
6463
|
+
enforceExplicitRetryForFlagTypos,
|
|
6464
|
+
envFlagEnabled,
|
|
6465
|
+
executeRegisteredRuntimeMigrations,
|
|
6466
|
+
extractCommandScopedOptions,
|
|
6467
|
+
extensionActivationCommands,
|
|
6468
|
+
extensionCapabilities,
|
|
6469
|
+
extensionNeedsActivationForProbe,
|
|
6470
|
+
extensionProvidesTemplatesRuntime,
|
|
6471
|
+
hasAnyCapability,
|
|
6472
|
+
handleGenericRunPmCliError,
|
|
6473
|
+
inferMissingFieldsFromErrorMessage,
|
|
6474
|
+
inferPostActionErrorCode,
|
|
6475
|
+
inferPostActionFailureMessage,
|
|
6476
|
+
invocationRequestsVersion,
|
|
6328
6477
|
isCommanderError,
|
|
6478
|
+
loadRuntimeExtensionCommandDescriptorsForRecovery,
|
|
6479
|
+
loadRuntimeExtensionDiscoverySnapshot,
|
|
6480
|
+
loadRuntimeExtensionSnapshot,
|
|
6481
|
+
maybeLoadRuntimeExtensions,
|
|
6482
|
+
maybeAttachCreateUpdatePolicyHelpText,
|
|
6483
|
+
maybeLogHandledCliErrorToSentry,
|
|
6484
|
+
normalizeTelemetryCommandResolution,
|
|
6485
|
+
normalizeTelemetryErrorCategory,
|
|
6486
|
+
normalizeTelemetryResolutionStage,
|
|
6329
6487
|
normalizeThrownExitCode,
|
|
6488
|
+
probeUsesAnyFlag,
|
|
6489
|
+
readRecordBoolean,
|
|
6490
|
+
readRecordNumber,
|
|
6491
|
+
readRecordString,
|
|
6492
|
+
registerDynamicExtensionCommandPaths,
|
|
6493
|
+
registerRuntimeSchemaFieldFlags,
|
|
6494
|
+
resolveCoreCommandRegistrationSelection,
|
|
6330
6495
|
readThrownExitCode,
|
|
6496
|
+
runAndClearAfterCommandHooks,
|
|
6497
|
+
runRequiredExtensionCommand,
|
|
6498
|
+
shouldAttachRichHelpTextForInvocation,
|
|
6331
6499
|
shouldLogHandledErrorToSentry,
|
|
6500
|
+
shouldRegisterDynamicExtensionPaths,
|
|
6501
|
+
shouldRegisterRuntimeSchemaFlags,
|
|
6502
|
+
setActiveExtensionHookContextForTest,
|
|
6503
|
+
toLooseFieldDefinitionType,
|
|
6504
|
+
wrapProgramActionsForExtensionHandlers,
|
|
6332
6505
|
wrapThrownErrorForSentry
|
|
6333
6506
|
};
|
|
6334
6507
|
export {
|