@unbrained/pm-cli 2026.6.13 → 2026.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +84 -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 +269 -8
- 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 +49 -0
- package/dist/cli/commands/create.js +105 -7
- 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 +1 -0
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init-agent-guidance.d.ts +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 +36 -1
- package/dist/cli/commands/init.js +38 -5
- 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/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/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/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/schema.d.ts +18 -0
- package/dist/cli/commands/schema.js +30 -3
- 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 +74 -8
- 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 +30 -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 +223 -0
- package/dist/cli/main.js +203 -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 +210 -40
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-operations.d.ts +8 -0
- package/dist/cli/register-operations.js +33 -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-5P2KQCTH.js +18 -0
- package/dist/cli-bundle/chunks/{activity-PPO7QWJF.js → activity-MJGTX4LO.js} +13 -11
- package/dist/cli-bundle/chunks/{aggregate-XEBW22UQ.js → aggregate-MH3GROKB.js} +54 -25
- package/dist/cli-bundle/chunks/aggregate-MH3GROKB.js.map +7 -0
- package/dist/cli-bundle/chunks/{aggregate-IRHJWEKG.js → aggregate-OUGCDFNC.js} +55 -26
- package/dist/cli-bundle/chunks/aggregate-OUGCDFNC.js.map +1 -0
- package/dist/cli-bundle/chunks/{append-N2AWXKZC.js → append-2Q4BPUBW.js} +10 -10
- package/dist/cli-bundle/chunks/{append-N2AWXKZC.js.map → append-2Q4BPUBW.js.map} +2 -2
- package/dist/cli-bundle/chunks/{append-NL67JNJU.js → append-VCRUG2W6.js} +11 -11
- package/dist/cli-bundle/chunks/append-VCRUG2W6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GRZGHGRG.js → chunk-2IUJBMKS.js} +10 -9
- package/dist/cli-bundle/chunks/{chunk-GRZGHGRG.js.map → chunk-2IUJBMKS.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6ZFTM65G.js → chunk-2JEGCDYT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3CQPVBK3.js → chunk-3WAULYOY.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-AGG32LKL.js → chunk-3XOXWOGA.js} +359 -19
- package/dist/cli-bundle/chunks/chunk-3XOXWOGA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-XXLMJDUB.js → chunk-4KBK4BA3.js} +13 -15
- package/dist/cli-bundle/chunks/chunk-4KBK4BA3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UCVJP4JL.js → chunk-4VLB4JH2.js} +51 -8
- package/dist/cli-bundle/chunks/chunk-4VLB4JH2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-BVL5KGVA.js → chunk-656HPQPO.js} +27 -12
- package/dist/cli-bundle/chunks/chunk-656HPQPO.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LYNQ3NGI.js → chunk-667XI4UJ.js} +309 -20
- package/dist/cli-bundle/chunks/chunk-667XI4UJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-W6KNFAMZ.js → chunk-6BV7ENQL.js} +9 -8
- package/dist/cli-bundle/chunks/chunk-6BV7ENQL.js.map +7 -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-7SM7VA5I.js → chunk-6NQXMGYU.js} +19 -8
- package/dist/cli-bundle/chunks/chunk-6NQXMGYU.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AAUYXSFF.js → chunk-764O7EUA.js} +223 -50
- package/dist/cli-bundle/chunks/chunk-764O7EUA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-VYZNX4C5.js → chunk-7AGIXLNK.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-7EILPFMA.js +404 -0
- package/dist/cli-bundle/chunks/chunk-7EILPFMA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-L6YQONLM.js → chunk-7K2MXFMX.js} +11 -13
- package/dist/cli-bundle/chunks/chunk-7K2MXFMX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-HZOX5BYD.js → chunk-7L5VOUYP.js} +6 -17
- package/dist/cli-bundle/chunks/chunk-7L5VOUYP.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-7ZGKNHUL.js +61 -0
- package/dist/cli-bundle/chunks/chunk-7ZGKNHUL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-TOX7YQ7X.js → chunk-A576QZDL.js} +223 -50
- package/dist/cli-bundle/chunks/chunk-A576QZDL.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RFR2YQGO.js → chunk-AERT7KT3.js} +5 -5
- package/dist/cli-bundle/chunks/chunk-ASM4DVRW.js +58 -0
- package/dist/cli-bundle/chunks/chunk-ASM4DVRW.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-SQDKAEKG.js → chunk-B5Q7XC4K.js} +117 -37
- package/dist/cli-bundle/chunks/chunk-B5Q7XC4K.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RHYBR6G7.js → chunk-BJWTFOZM.js} +74 -14
- package/dist/cli-bundle/chunks/chunk-BJWTFOZM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4ZKKZMLH.js → chunk-CBMETQ2U.js} +104 -30
- package/dist/cli-bundle/chunks/chunk-CBMETQ2U.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-XOYHMHFF.js → chunk-E6J2PEK6.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-IIOIBAQW.js → chunk-F2GC6L3N.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-3VULHQNS.js → chunk-F7WSO5UX.js} +7 -18
- package/dist/cli-bundle/chunks/chunk-F7WSO5UX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JCTZV7TO.js → chunk-FTAZLAR7.js} +8 -5
- package/dist/cli-bundle/chunks/{chunk-JCTZV7TO.js.map → chunk-FTAZLAR7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-AUDDXKNX.js → chunk-FXNT5LPX.js} +77 -9
- package/dist/cli-bundle/chunks/chunk-FXNT5LPX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IZHCCG4S.js → chunk-G2YVUY7I.js} +14 -9
- package/dist/cli-bundle/chunks/chunk-G2YVUY7I.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5HSAHRYA.js → chunk-G3CEIXTV.js} +68 -19
- package/dist/cli-bundle/chunks/chunk-G3CEIXTV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-QQG4HEX7.js → chunk-GAVE4MYM.js} +37 -63
- package/dist/cli-bundle/chunks/chunk-GAVE4MYM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-3FMQMHAG.js → chunk-GQ4JKNMV.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3FMQMHAG.js.map → chunk-GQ4JKNMV.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MACCNKSZ.js → chunk-GYMG7AG6.js} +36 -62
- package/dist/cli-bundle/chunks/chunk-GYMG7AG6.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-7CRFV6JR.js → chunk-H6EH6ENJ.js} +362 -22
- package/dist/cli-bundle/chunks/chunk-H6EH6ENJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2J2AH4V5.js → chunk-HDIDUME4.js} +45 -13
- package/dist/cli-bundle/chunks/chunk-HDIDUME4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2ANTZBYF.js → chunk-HPELHUTG.js} +122 -45
- package/dist/cli-bundle/chunks/chunk-HPELHUTG.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-VNC2HBL4.js → chunk-II7OGE3V.js} +20 -9
- package/dist/cli-bundle/chunks/chunk-II7OGE3V.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-CEGUH2E5.js → chunk-ILHLIA47.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-CEGUH2E5.js.map → chunk-ILHLIA47.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-4TPFXE2R.js → chunk-IMQG4VR3.js} +118 -74
- package/dist/cli-bundle/chunks/chunk-IMQG4VR3.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-MGAQ6KZG.js → chunk-IQVB3YDD.js} +82 -21
- package/dist/cli-bundle/chunks/chunk-IQVB3YDD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-WLH7X4RN.js → chunk-KQ3LAMDO.js} +45 -13
- package/dist/cli-bundle/chunks/chunk-KQ3LAMDO.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-S2CDTRJ6.js → chunk-KTVETP66.js} +379 -271
- package/dist/cli-bundle/chunks/chunk-KTVETP66.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-36BCSMKP.js → chunk-KZYVTOG5.js} +26 -11
- package/dist/cli-bundle/chunks/chunk-KZYVTOG5.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-XWDZVCBJ.js → chunk-L6FJPOT4.js} +11 -10
- package/dist/cli-bundle/chunks/{chunk-XWDZVCBJ.js.map → chunk-L6FJPOT4.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-LFW5NQUP.js → chunk-LV5FFQ7M.js} +405 -290
- package/dist/cli-bundle/chunks/chunk-LV5FFQ7M.js.map +7 -0
- 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-QU3OPNVV.js → chunk-M23HXJL3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LSSTKL3Y.js → chunk-MJZUZ2QE.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-LOAR5TKX.js → chunk-NCIBNERT.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LOAR5TKX.js.map → chunk-NCIBNERT.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-6TBR5AZ2.js → chunk-NIQHNDBZ.js} +76 -8
- package/dist/cli-bundle/chunks/chunk-NIQHNDBZ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-Z647PYLD.js → chunk-O46LTCXQ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-GFBEXDCQ.js → chunk-OCTQJP42.js} +19 -8
- package/dist/cli-bundle/chunks/{chunk-GFBEXDCQ.js.map → chunk-OCTQJP42.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HLEGAQXT.js → chunk-OLTYNVJR.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-IXVSSHGV.js → chunk-OY3P2I6B.js} +13 -8
- package/dist/cli-bundle/chunks/chunk-OY3P2I6B.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KHGTYCJ6.js → chunk-PZD7WPUC.js} +69 -20
- package/dist/cli-bundle/chunks/chunk-PZD7WPUC.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4FHLNNW7.js → chunk-Q5RLUCP3.js} +74 -14
- package/dist/cli-bundle/chunks/chunk-Q5RLUCP3.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-SOHXUA2Q.js → chunk-RKKIH2ZQ.js} +116 -36
- package/dist/cli-bundle/chunks/chunk-RKKIH2ZQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-O3YCJOVX.js → chunk-SPYPC5CB.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-O3YCJOVX.js.map → chunk-SPYPC5CB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SGMGMCIF.js → chunk-SY4GKIWT.js} +82 -21
- package/dist/cli-bundle/chunks/chunk-SY4GKIWT.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5LMF75Q7.js → chunk-SY4PZWIZ.js} +7 -4
- package/dist/cli-bundle/chunks/{chunk-5LMF75Q7.js.map → chunk-SY4PZWIZ.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HWHONML5.js → chunk-T5VU7ROQ.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-JWXTOYBI.js → chunk-TIRZIQRP.js} +121 -44
- package/dist/cli-bundle/chunks/chunk-TIRZIQRP.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-PEH7SZD2.js → chunk-TUB3DZAZ.js} +105 -31
- package/dist/cli-bundle/chunks/chunk-TUB3DZAZ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-UAR2VNCK.js +394 -0
- package/dist/cli-bundle/chunks/chunk-UAR2VNCK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-NN6RKGFW.js → chunk-UBMCSJXX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-JE5IZXDS.js → chunk-UUKORJSN.js} +4 -4
- 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-LGOXXQUW.js → chunk-WZCQVABQ.js} +2 -2
- 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-M3SI2REU.js → chunk-XLNNCKTN.js} +322 -19
- package/dist/cli-bundle/chunks/chunk-XLNNCKTN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4JHJ7YG2.js → chunk-XNOY7TCB.js} +118 -74
- package/dist/cli-bundle/chunks/chunk-XNOY7TCB.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-DWG4FHPY.js → chunk-YGRPBFMA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JW7D6437.js → chunk-YXTLI4XP.js} +20 -9
- package/dist/cli-bundle/chunks/chunk-YXTLI4XP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-TSXWFN3L.js → chunk-Z3MUNQRV.js} +52 -9
- package/dist/cli-bundle/chunks/chunk-Z3MUNQRV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GOO4UXBI.js → chunk-ZJRDVYZI.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-32XSW44C.js → chunk-ZONXMSVB.js} +10 -9
- package/dist/cli-bundle/chunks/chunk-ZONXMSVB.js.map +1 -0
- package/dist/cli-bundle/chunks/{claim-QJOQBH7J.js → claim-4APLUXJW.js} +10 -10
- package/dist/cli-bundle/chunks/{claim-HE6KEGJW.js → claim-NEO7AGWH.js} +10 -10
- package/dist/cli-bundle/chunks/{close-SPUFW5QR.js → close-3QABBNGU.js} +8 -8
- package/dist/cli-bundle/chunks/close-ILMZR3D7.js +13 -0
- package/dist/cli-bundle/chunks/{close-many-GKAJX54X.js → close-many-MIZLTYGL.js} +32 -20
- package/dist/cli-bundle/chunks/close-many-MIZLTYGL.js.map +1 -0
- package/dist/cli-bundle/chunks/{close-many-GL6NRUU5.js → close-many-Q7Y5AHQI.js} +31 -19
- package/dist/cli-bundle/chunks/close-many-Q7Y5AHQI.js.map +7 -0
- package/dist/cli-bundle/chunks/{comments-5FPT6L7N.js → comments-DAIQPOMU.js} +55 -31
- package/dist/cli-bundle/chunks/comments-DAIQPOMU.js.map +1 -0
- package/dist/cli-bundle/chunks/{comments-TOLOYWNI.js → comments-IWFSVM4P.js} +54 -30
- package/dist/cli-bundle/chunks/comments-IWFSVM4P.js.map +7 -0
- package/dist/cli-bundle/chunks/{config-4MN45TIH.js → config-IOJELD6O.js} +45 -19
- package/dist/cli-bundle/chunks/config-IOJELD6O.js.map +1 -0
- package/dist/cli-bundle/chunks/{config-7N6D7YJE.js → config-PXTMAYV3.js} +44 -18
- package/dist/cli-bundle/chunks/config-PXTMAYV3.js.map +7 -0
- package/dist/cli-bundle/chunks/{context-AQSLE7DZ.js → context-QHJSCJW4.js} +128 -39
- package/dist/cli-bundle/chunks/context-QHJSCJW4.js.map +1 -0
- package/dist/cli-bundle/chunks/{context-U3PUJMVN.js → context-XZS2VFKU.js} +127 -38
- package/dist/cli-bundle/chunks/context-XZS2VFKU.js.map +7 -0
- package/dist/cli-bundle/chunks/{contracts-ITSJXO3O.js → contracts-B7U4OJTV.js} +54 -10
- package/dist/cli-bundle/chunks/contracts-B7U4OJTV.js.map +1 -0
- package/dist/cli-bundle/chunks/{contracts-H7KCQXLY.js → contracts-NSBVLXQ3.js} +54 -10
- package/dist/cli-bundle/chunks/contracts-NSBVLXQ3.js.map +7 -0
- package/dist/cli-bundle/chunks/{copy-EB3MUCSW.js → copy-Q64T5FD4.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-C4W522JM.js → copy-SG34LCMU.js} +7 -7
- package/dist/cli-bundle/chunks/create-F5HZX2S4.js +30 -0
- package/dist/cli-bundle/chunks/{create-4EQNELMY.js → create-IPAX2SNL.js} +16 -13
- package/dist/cli-bundle/chunks/{delete-ZLGUYIXU.js → delete-TLXR7LJ2.js} +7 -7
- package/dist/cli-bundle/chunks/{delete-X5QLXIQX.js → delete-VH3L7DZ6.js} +7 -7
- package/dist/cli-bundle/chunks/{deps-GPB3LGWN.js → deps-J3HBBLDB.js} +9 -10
- package/dist/cli-bundle/chunks/{deps-GPB3LGWN.js.map → deps-J3HBBLDB.js.map} +2 -2
- package/dist/cli-bundle/chunks/{deps-HV2C2L46.js → deps-XV6JJ6IN.js} +10 -11
- package/dist/cli-bundle/chunks/deps-XV6JJ6IN.js.map +1 -0
- package/dist/cli-bundle/chunks/{docs-SRTLCQOL.js → docs-GWDEB7JH.js} +9 -9
- package/dist/cli-bundle/chunks/{docs-RJQPLROO.js → docs-RCLNSKID.js} +9 -9
- package/dist/cli-bundle/chunks/{extension-MM3TVWOO.js → extension-5RN65LHT.js} +7 -5
- package/dist/cli-bundle/chunks/{extension-WKPVPNCC.js → extension-7KO2NX2A.js} +7 -5
- package/dist/cli-bundle/chunks/{files-OIFN3DQX.js → files-3TCQHUHA.js} +25 -11
- package/dist/cli-bundle/chunks/files-3TCQHUHA.js.map +1 -0
- package/dist/cli-bundle/chunks/{files-LIFDKNCN.js → files-5FDUPSEA.js} +24 -10
- package/dist/cli-bundle/chunks/files-5FDUPSEA.js.map +7 -0
- package/dist/cli-bundle/chunks/focus-7AQMNRSU.js +109 -0
- package/dist/cli-bundle/chunks/focus-7AQMNRSU.js.map +7 -0
- package/dist/cli-bundle/chunks/focus-HQXBYPKM.js +106 -0
- package/dist/cli-bundle/chunks/focus-HQXBYPKM.js.map +1 -0
- package/dist/cli-bundle/chunks/{gc-DL6AVOX5.js → gc-2FGKYRJ4.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-NRFHLVFT.js → gc-5B6ABL3Z.js} +3 -3
- package/dist/cli-bundle/chunks/{get-SAB7CRBG.js → get-FUMVOJQD.js} +43 -16
- package/dist/cli-bundle/chunks/get-FUMVOJQD.js.map +1 -0
- package/dist/cli-bundle/chunks/{get-K7UULTQF.js → get-H5BZTW4A.js} +42 -15
- package/dist/cli-bundle/chunks/get-H5BZTW4A.js.map +7 -0
- package/dist/cli-bundle/chunks/{health-NUVZYIEV.js → health-JSVOR6B4.js} +75 -49
- package/dist/cli-bundle/chunks/health-JSVOR6B4.js.map +1 -0
- package/dist/cli-bundle/chunks/{health-VJWH3ZFK.js → health-LE2ZQGSM.js} +74 -48
- package/dist/cli-bundle/chunks/health-LE2ZQGSM.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-GYFD2DJW.js → history-QO4JVJJP.js} +10 -10
- package/dist/cli-bundle/chunks/history-SSXGGTVZ.js +20 -0
- package/dist/cli-bundle/chunks/{history-compact-WQZQ6KXM.js → history-compact-ID74DOUI.js} +37 -46
- package/dist/cli-bundle/chunks/history-compact-ID74DOUI.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-compact-SLL6ESXH.js → history-compact-SDFRPZ4V.js} +38 -47
- package/dist/cli-bundle/chunks/history-compact-SDFRPZ4V.js.map +1 -0
- package/dist/cli-bundle/chunks/history-redact-VBH44Y7F.js +21 -0
- package/dist/cli-bundle/chunks/{history-redact-SDTDR6WM.js → history-redact-Z4P5MM3G.js} +13 -11
- package/dist/cli-bundle/chunks/{history-repair-UCYS55ZX.js → history-repair-ANHEYWKF.js} +43 -48
- package/dist/cli-bundle/chunks/history-repair-ANHEYWKF.js.map +7 -0
- package/dist/cli-bundle/chunks/{history-repair-BJCGM6Q3.js → history-repair-CKE7GLZR.js} +44 -49
- package/dist/cli-bundle/chunks/history-repair-CKE7GLZR.js.map +1 -0
- package/dist/cli-bundle/chunks/init-7FBQO77A.js +19 -0
- package/dist/cli-bundle/chunks/{init-MXV57LKL.js → init-K6MSMB37.js} +11 -9
- package/dist/cli-bundle/chunks/{learnings-QKJOKEAO.js → learnings-VIS3NOQV.js} +13 -12
- package/dist/cli-bundle/chunks/learnings-VIS3NOQV.js.map +7 -0
- package/dist/cli-bundle/chunks/{learnings-L6KTZGOT.js → learnings-YYNB64GN.js} +14 -13
- package/dist/cli-bundle/chunks/learnings-YYNB64GN.js.map +1 -0
- package/dist/cli-bundle/chunks/list-7UE44A2R.js +29 -0
- package/dist/cli-bundle/chunks/list-UHMA3N2K.js +33 -0
- package/dist/cli-bundle/chunks/{notes-3NLK7WTZ.js → notes-2HRMV67I.js} +14 -13
- package/dist/cli-bundle/chunks/notes-2HRMV67I.js.map +1 -0
- package/dist/cli-bundle/chunks/{notes-HMCB7TK6.js → notes-IN3UMA7W.js} +13 -12
- package/dist/cli-bundle/chunks/notes-IN3UMA7W.js.map +7 -0
- package/dist/cli-bundle/chunks/{plan-DWBYI5C6.js → plan-I3SVH7FV.js} +16 -15
- package/dist/cli-bundle/chunks/plan-I3SVH7FV.js.map +1 -0
- package/dist/cli-bundle/chunks/{plan-NANUWH4T.js → plan-PAWCCAPW.js} +15 -14
- package/dist/cli-bundle/chunks/plan-PAWCCAPW.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-PWQ5F2VI.js → register-list-query-N7Z7RTDM.js} +31 -22
- package/dist/cli-bundle/chunks/register-list-query-N7Z7RTDM.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-SMMMLSWW.js → register-list-query-OTIK4DVA.js} +32 -23
- package/dist/cli-bundle/chunks/register-list-query-OTIK4DVA.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-QKFPTIZG.js → register-mutation-UFZK6Q57.js} +216 -66
- package/dist/cli-bundle/chunks/register-mutation-UFZK6Q57.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-ZYJQ4DVP.js → register-mutation-XFORLS6D.js} +210 -67
- package/dist/cli-bundle/chunks/register-mutation-XFORLS6D.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-2FMZ6WEF.js → register-operations-6ZCLKRBG.js} +53 -39
- package/dist/cli-bundle/chunks/register-operations-6ZCLKRBG.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-operations-BAFQURZG.js → register-operations-ITE7JTH3.js} +54 -40
- package/dist/cli-bundle/chunks/register-operations-ITE7JTH3.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-QN2XV7UL.js → register-setup-7RKGE4BQ.js} +18 -21
- package/dist/cli-bundle/chunks/register-setup-7RKGE4BQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-DQEIKBIP.js → register-setup-7UKEFKT6.js} +17 -20
- package/dist/cli-bundle/chunks/register-setup-7UKEFKT6.js.map +7 -0
- package/dist/cli-bundle/chunks/{restore-FJQWXMPY.js → restore-NNVPBBVJ.js} +13 -11
- package/dist/cli-bundle/chunks/restore-XXXLQ2XC.js +19 -0
- package/dist/cli-bundle/chunks/{schema-RNVJ55V2.js → schema-3HCLXCFX.js} +27 -9
- package/dist/cli-bundle/chunks/schema-3HCLXCFX.js.map +7 -0
- package/dist/cli-bundle/chunks/{schema-ZZ7ZDM2X.js → schema-3YKCQ3VO.js} +28 -10
- package/dist/cli-bundle/chunks/schema-3YKCQ3VO.js.map +1 -0
- package/dist/cli-bundle/chunks/{search-BJ457C2A.js → search-NQ42NC6A.js} +328 -71
- package/dist/cli-bundle/chunks/search-NQ42NC6A.js.map +7 -0
- package/dist/cli-bundle/chunks/{search-FQDZXX7P.js → search-V7PZ2ICH.js} +328 -71
- package/dist/cli-bundle/chunks/search-V7PZ2ICH.js.map +1 -0
- package/dist/cli-bundle/chunks/{stats-DUQWCVOS.js → stats-7KD4PJC5.js} +41 -16
- package/dist/cli-bundle/chunks/stats-7KD4PJC5.js.map +7 -0
- package/dist/cli-bundle/chunks/{stats-CUG3ZHOI.js → stats-GRHO6RFB.js} +42 -17
- package/dist/cli-bundle/chunks/stats-GRHO6RFB.js.map +1 -0
- package/dist/cli-bundle/chunks/{telemetry-33MRGX4Z.js → telemetry-H5GLXNG5.js} +6 -6
- package/dist/cli-bundle/chunks/telemetry-H5GLXNG5.js.map +7 -0
- package/dist/cli-bundle/chunks/{telemetry-RK2VX75A.js → telemetry-TRRYZXWT.js} +7 -7
- package/dist/cli-bundle/chunks/telemetry-TRRYZXWT.js.map +1 -0
- package/dist/cli-bundle/chunks/test-6CZNIIGA.js +34 -0
- package/dist/cli-bundle/chunks/{test-Y3CTFMEC.js → test-7GVQ3VMN.js} +16 -14
- package/dist/cli-bundle/chunks/{test-all-ANYQ33O2.js → test-all-3LF2OZD2.js} +23 -16
- package/dist/cli-bundle/chunks/test-all-3LF2OZD2.js.map +7 -0
- package/dist/cli-bundle/chunks/{test-all-ARSMX33Q.js → test-all-ODVADHV6.js} +24 -17
- package/dist/cli-bundle/chunks/test-all-ODVADHV6.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-runs-5URSD34O.js → test-runs-LYT6ZTNQ.js} +62 -65
- package/dist/cli-bundle/chunks/test-runs-LYT6ZTNQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-runs-XNACGSNQ.js → test-runs-RVP6VWN7.js} +61 -64
- package/dist/cli-bundle/chunks/test-runs-RVP6VWN7.js.map +7 -0
- package/dist/cli-bundle/chunks/update-MPGM6SBE.js +28 -0
- package/dist/cli-bundle/chunks/update-UN75XW3C.js +24 -0
- package/dist/cli-bundle/chunks/{update-many-6B7PJ33I.js → update-many-FCU6RKTO.js} +80 -34
- package/dist/cli-bundle/chunks/update-many-FCU6RKTO.js.map +1 -0
- package/dist/cli-bundle/chunks/{update-many-724JCVDE.js → update-many-XSEQJ24X.js} +79 -33
- package/dist/cli-bundle/chunks/update-many-XSEQJ24X.js.map +7 -0
- package/dist/cli-bundle/chunks/{upgrade-ALBEZAI7.js → upgrade-A6TL3INC.js} +22 -8
- package/dist/cli-bundle/chunks/upgrade-A6TL3INC.js.map +7 -0
- package/dist/cli-bundle/chunks/{upgrade-QHRGDBSA.js → upgrade-FOB5LHO5.js} +23 -9
- package/dist/cli-bundle/chunks/upgrade-FOB5LHO5.js.map +1 -0
- package/dist/cli-bundle/chunks/{validate-IQRYFXIV.js → validate-7BLDG3AT.js} +221 -30
- package/dist/cli-bundle/chunks/validate-7BLDG3AT.js.map +1 -0
- package/dist/cli-bundle/chunks/{validate-UY6DRCG5.js → validate-EHL3MI2V.js} +235 -30
- package/dist/cli-bundle/chunks/validate-EHL3MI2V.js.map +7 -0
- package/dist/cli-bundle/main.js +270 -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/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 +9 -0
- package/dist/core/item/parse.js +10 -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/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/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/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 +50 -7
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-definitions.js +17 -4
- 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 +4 -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 +83 -8
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +28 -0
- package/dist/sdk/cli-contracts.js +164 -11
- 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 +136 -7
- package/docs/CONFIGURATION.md +52 -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-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-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-5P2KQCTH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-PPO7QWJF.js.map → activity-MJGTX4LO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6ZFTM65G.js.map → chunk-2JEGCDYT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3CQPVBK3.js.map → chunk-3WAULYOY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VYZNX4C5.js.map → chunk-7AGIXLNK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RFR2YQGO.js.map → chunk-AERT7KT3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XOYHMHFF.js.map → chunk-E6J2PEK6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IIOIBAQW.js.map → chunk-F2GC6L3N.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QU3OPNVV.js.map → chunk-M23HXJL3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LSSTKL3Y.js.map → chunk-MJZUZ2QE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Z647PYLD.js.map → chunk-O46LTCXQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HLEGAQXT.js.map → chunk-OLTYNVJR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HWHONML5.js.map → chunk-T5VU7ROQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NN6RKGFW.js.map → chunk-UBMCSJXX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JE5IZXDS.js.map → chunk-UUKORJSN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-LGOXXQUW.js.map → chunk-WZCQVABQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DWG4FHPY.js.map → chunk-YGRPBFMA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GOO4UXBI.js.map → chunk-ZJRDVYZI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-QJOQBH7J.js.map → claim-4APLUXJW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{claim-HE6KEGJW.js.map → claim-NEO7AGWH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-SPUFW5QR.js.map → close-3QABBNGU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-WOG5WTMZ.js.map → close-ILMZR3D7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-EB3MUCSW.js.map → copy-Q64T5FD4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-C4W522JM.js.map → copy-SG34LCMU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-NW3K7LVG.js.map → create-F5HZX2S4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-4EQNELMY.js.map → create-IPAX2SNL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ZLGUYIXU.js.map → delete-TLXR7LJ2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-X5QLXIQX.js.map → delete-VH3L7DZ6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-SRTLCQOL.js.map → docs-GWDEB7JH.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-RJQPLROO.js.map → docs-RCLNSKID.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-MM3TVWOO.js.map → extension-5RN65LHT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-WKPVPNCC.js.map → extension-7KO2NX2A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-DL6AVOX5.js.map → gc-2FGKYRJ4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-NRFHLVFT.js.map → gc-5B6ABL3Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-GYFD2DJW.js.map → history-QO4JVJJP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-IUVN4NTN.js.map → history-SSXGGTVZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-75KIIJUJ.js.map → history-redact-VBH44Y7F.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-SDTDR6WM.js.map → history-redact-Z4P5MM3G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-JJFYRUKG.js.map → init-7FBQO77A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-MXV57LKL.js.map → init-K6MSMB37.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-VOQDQHA4.js.map → list-7UE44A2R.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-GGVPXEV6.js.map → list-UHMA3N2K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-FJQWXMPY.js.map → restore-NNVPBBVJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-DRBNXJJH.js.map → restore-XXXLQ2XC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-SDMYEQHH.js.map → test-6CZNIIGA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-Y3CTFMEC.js.map → test-7GVQ3VMN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-U235A7WP.js.map → update-MPGM6SBE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-PD46VOXI.js.map → update-UN75XW3C.js.map} +0 -0
|
@@ -11,36 +11,47 @@ import {
|
|
|
11
11
|
resolveEmbeddingProviders,
|
|
12
12
|
resolveSettingsWithSemanticRuntimeDefaults,
|
|
13
13
|
resolveVectorStores
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TUB3DZAZ.js";
|
|
15
15
|
import {
|
|
16
|
+
buildContentFilterEcho,
|
|
17
|
+
buildGovernanceMissingFilterEcho,
|
|
16
18
|
collectRuntimeFilterValues,
|
|
17
19
|
matchesRuntimeFilters,
|
|
18
|
-
parseStatusFilterCsv
|
|
19
|
-
|
|
20
|
+
parseStatusFilterCsv,
|
|
21
|
+
resolveContentFieldFilters,
|
|
22
|
+
resolveMissingMetadataFilters
|
|
23
|
+
} from "./chunk-XLNNCKTN.js";
|
|
24
|
+
import {
|
|
25
|
+
hasContentFieldFilter,
|
|
26
|
+
hasMissingMetadataFilter,
|
|
27
|
+
itemMatchesContentFilters,
|
|
28
|
+
itemMatchesMissingMetadata,
|
|
29
|
+
lifecycleClassifierFromStatusRegistry
|
|
30
|
+
} from "./chunk-7EILPFMA.js";
|
|
20
31
|
import {
|
|
21
32
|
parseLimit,
|
|
22
33
|
parsePriority,
|
|
23
34
|
parseType
|
|
24
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-7AGIXLNK.js";
|
|
25
36
|
import {
|
|
26
37
|
collectRegisteredItemFieldNames,
|
|
27
38
|
listAllDocumentCandidatesCached,
|
|
28
39
|
listAllFrontMatter,
|
|
29
40
|
toItemRecord
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-4KBK4BA3.js";
|
|
42
|
+
import "./chunk-WZCQVABQ.js";
|
|
32
43
|
import {
|
|
33
44
|
isTerminalStatus,
|
|
34
45
|
parseItemDocument
|
|
35
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-GYMG7AG6.js";
|
|
36
47
|
import {
|
|
37
48
|
resolveItemTypeRegistry
|
|
38
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-6BV7ENQL.js";
|
|
39
50
|
import {
|
|
40
51
|
compareTimestampStrings,
|
|
41
52
|
nowIso,
|
|
42
53
|
resolveIsoOrRelative
|
|
43
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-OY3P2I6B.js";
|
|
44
55
|
import {
|
|
45
56
|
EXIT_CODE,
|
|
46
57
|
PmCliError,
|
|
@@ -59,7 +70,7 @@ import {
|
|
|
59
70
|
runActiveOnReadHooks,
|
|
60
71
|
toNonEmptyString,
|
|
61
72
|
toNonEmptyStringOrUndefined
|
|
62
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-LV5FFQ7M.js";
|
|
63
74
|
|
|
64
75
|
// dist/cli/commands/search.js
|
|
65
76
|
import fs from "node:fs/promises";
|
|
@@ -107,7 +118,7 @@ function resolveRegisteredVectorStoreAdapter(registrations, configuredAdapter) {
|
|
|
107
118
|
!(function() {
|
|
108
119
|
try {
|
|
109
120
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
110
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
121
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "f232eaee-3735-55a2-a605-5ea434b4092b");
|
|
111
122
|
} catch (e2) {
|
|
112
123
|
}
|
|
113
124
|
})();
|
|
@@ -328,7 +339,7 @@ async function rerankCandidatesWithEmbeddings(provider, model, query, candidates
|
|
|
328
339
|
!(function() {
|
|
329
340
|
try {
|
|
330
341
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
331
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
342
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "159f3fa3-02f9-5744-91bd-7d6b0f550537");
|
|
332
343
|
} catch (e2) {
|
|
333
344
|
}
|
|
334
345
|
})();
|
|
@@ -402,13 +413,14 @@ var SEARCH_ITEM_FIELD_KEYS = /* @__PURE__ */ new Set([
|
|
|
402
413
|
var LONG_QUERY_TOKEN_THRESHOLD = 2;
|
|
403
414
|
var LONG_QUERY_TITLE_EXACT_BONUS = 120;
|
|
404
415
|
var LONG_QUERY_PHRASE_MULTIPLIER = 6;
|
|
416
|
+
var ALL_TERMS_COVERAGE_BONUS = 40;
|
|
405
417
|
var IMPLICIT_HYBRID_EMBEDDING_TIMEOUT_MS = 8e3;
|
|
406
418
|
var IMPLICIT_HYBRID_VECTOR_TIMEOUT_MS = 8e3;
|
|
407
419
|
function isNonEmptyRecord(value) {
|
|
408
420
|
return typeof value === "object" && value !== null && !Array.isArray(value) && Object.keys(value).length > 0;
|
|
409
421
|
}
|
|
410
422
|
function buildCompactSearchFilterSummary(params) {
|
|
411
|
-
const { mode, options, includeLinked, titleExact, phraseExact, scoreThreshold, hybridSemanticWeight, runtimeFieldFilters } = params;
|
|
423
|
+
const { mode, matchMode, options, includeLinked, titleExact, phraseExact, scoreThreshold, hybridSemanticWeight, runtimeFieldFilters } = params;
|
|
412
424
|
const filters = {};
|
|
413
425
|
if (options.status !== void 0) {
|
|
414
426
|
filters.status = options.status;
|
|
@@ -428,6 +440,35 @@ function buildCompactSearchFilterSummary(params) {
|
|
|
428
440
|
if (options.deadlineAfter !== void 0) {
|
|
429
441
|
filters.deadline_after = options.deadlineAfter;
|
|
430
442
|
}
|
|
443
|
+
if (options.updatedAfter !== void 0) {
|
|
444
|
+
filters.updated_after = options.updatedAfter;
|
|
445
|
+
}
|
|
446
|
+
if (options.updatedBefore !== void 0) {
|
|
447
|
+
filters.updated_before = options.updatedBefore;
|
|
448
|
+
}
|
|
449
|
+
if (options.createdAfter !== void 0) {
|
|
450
|
+
filters.created_after = options.createdAfter;
|
|
451
|
+
}
|
|
452
|
+
if (options.createdBefore !== void 0) {
|
|
453
|
+
filters.created_before = options.createdBefore;
|
|
454
|
+
}
|
|
455
|
+
if (options.assignee !== void 0) {
|
|
456
|
+
filters.assignee = options.assignee;
|
|
457
|
+
}
|
|
458
|
+
if (options.sprint !== void 0) {
|
|
459
|
+
filters.sprint = options.sprint;
|
|
460
|
+
}
|
|
461
|
+
if (options.release !== void 0) {
|
|
462
|
+
filters.release = options.release;
|
|
463
|
+
}
|
|
464
|
+
if (options.parent !== void 0) {
|
|
465
|
+
filters.parent = options.parent;
|
|
466
|
+
}
|
|
467
|
+
Object.assign(filters, buildGovernanceMissingFilterEcho(options));
|
|
468
|
+
Object.assign(filters, buildContentFilterEcho(options));
|
|
469
|
+
if (matchMode !== "or") {
|
|
470
|
+
filters.match_mode = matchMode;
|
|
471
|
+
}
|
|
431
472
|
if (includeLinked) {
|
|
432
473
|
filters.include_linked = true;
|
|
433
474
|
}
|
|
@@ -451,6 +492,41 @@ function buildCompactSearchFilterSummary(params) {
|
|
|
451
492
|
}
|
|
452
493
|
return filters;
|
|
453
494
|
}
|
|
495
|
+
function buildVerboseSearchFilters(params) {
|
|
496
|
+
const { effectiveMode, matchMode, options, includeLinked, titleExact, phraseExact, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, runtimeFieldFilters } = params;
|
|
497
|
+
return {
|
|
498
|
+
mode: effectiveMode,
|
|
499
|
+
match_mode: matchMode,
|
|
500
|
+
status: options.status ?? null,
|
|
501
|
+
type: options.type ?? null,
|
|
502
|
+
tag: options.tag ?? null,
|
|
503
|
+
priority: options.priority ?? null,
|
|
504
|
+
deadline_before: options.deadlineBefore ?? null,
|
|
505
|
+
deadline_after: options.deadlineAfter ?? null,
|
|
506
|
+
updated_after: options.updatedAfter ?? null,
|
|
507
|
+
updated_before: options.updatedBefore ?? null,
|
|
508
|
+
created_after: options.createdAfter ?? null,
|
|
509
|
+
created_before: options.createdBefore ?? null,
|
|
510
|
+
assignee: options.assignee ?? null,
|
|
511
|
+
sprint: options.sprint ?? null,
|
|
512
|
+
release: options.release ?? null,
|
|
513
|
+
parent: options.parent ?? null,
|
|
514
|
+
...buildGovernanceMissingFilterEcho(options),
|
|
515
|
+
...buildContentFilterEcho(options),
|
|
516
|
+
include_linked: includeLinked,
|
|
517
|
+
title_exact: titleExact,
|
|
518
|
+
phrase_exact: phraseExact,
|
|
519
|
+
score_threshold: scoreThreshold,
|
|
520
|
+
hybrid_semantic_weight: effectiveMode === "hybrid" ? hybridSemanticWeight : null,
|
|
521
|
+
query_expansion_enabled: queryExpansion.enabled,
|
|
522
|
+
query_expansion_provider: queryExpansion.provider,
|
|
523
|
+
rerank_enabled: rerank.enabled,
|
|
524
|
+
rerank_model: rerank.model,
|
|
525
|
+
rerank_top_k: rerank.top_k,
|
|
526
|
+
limit: options.limit ?? null,
|
|
527
|
+
runtime_filters: runtimeFieldFilters
|
|
528
|
+
};
|
|
529
|
+
}
|
|
454
530
|
function collectErrorCauseCodes(error) {
|
|
455
531
|
const codes = [];
|
|
456
532
|
let current = error;
|
|
@@ -530,6 +606,34 @@ function parsePhraseExact(raw) {
|
|
|
530
606
|
function parseSemanticWeightOverride(raw) {
|
|
531
607
|
return coerceNumberInRange(raw, 0, 1) ?? void 0;
|
|
532
608
|
}
|
|
609
|
+
function parseMatchMode(raw) {
|
|
610
|
+
if (raw === void 0) {
|
|
611
|
+
return "or";
|
|
612
|
+
}
|
|
613
|
+
const normalized = raw.trim().toLowerCase();
|
|
614
|
+
if (normalized !== "and" && normalized !== "or" && normalized !== "exact") {
|
|
615
|
+
throw new PmCliError("Search --match-mode must be one of and|or|exact", EXIT_CODE.USAGE);
|
|
616
|
+
}
|
|
617
|
+
return normalized;
|
|
618
|
+
}
|
|
619
|
+
function parseMinScoreOverride(raw) {
|
|
620
|
+
if (raw === void 0 || raw === null || raw === "") {
|
|
621
|
+
return void 0;
|
|
622
|
+
}
|
|
623
|
+
const parsed = typeof raw === "number" ? raw : Number(String(raw).trim());
|
|
624
|
+
if (!Number.isFinite(parsed) || parsed < 0) {
|
|
625
|
+
throw new PmCliError("Search --min-score must be a finite number >= 0", EXIT_CODE.USAGE);
|
|
626
|
+
}
|
|
627
|
+
return parsed;
|
|
628
|
+
}
|
|
629
|
+
function parseTimestampWindow(raw, fieldLabel) {
|
|
630
|
+
if (raw == null)
|
|
631
|
+
return void 0;
|
|
632
|
+
const value = String(raw).trim();
|
|
633
|
+
if (value.length === 0)
|
|
634
|
+
return void 0;
|
|
635
|
+
return resolveIsoOrRelative(value, /* @__PURE__ */ new Date(), fieldLabel);
|
|
636
|
+
}
|
|
533
637
|
function normalizeSearchPhrase(value) {
|
|
534
638
|
return value.toLowerCase().replace(/\s+/g, " ").trim();
|
|
535
639
|
}
|
|
@@ -579,6 +683,47 @@ function parseProjectionConfig(options) {
|
|
|
579
683
|
fields: []
|
|
580
684
|
};
|
|
581
685
|
}
|
|
686
|
+
var _testOnlySearchCommand = {
|
|
687
|
+
applyFilters,
|
|
688
|
+
applyExactQueryFilters,
|
|
689
|
+
buildVerboseSearchFilters,
|
|
690
|
+
buildExplicitSemanticFallbackWarning,
|
|
691
|
+
buildCompactSearchFilterSummary,
|
|
692
|
+
buildHybridLexicalScore,
|
|
693
|
+
buildImplicitSemanticFallbackWarning,
|
|
694
|
+
buildRerankCorpus,
|
|
695
|
+
buildSemanticHits,
|
|
696
|
+
classifyImplicitSemanticFallbackReason,
|
|
697
|
+
collectErrorCauseCodes,
|
|
698
|
+
collectExactPhraseFields,
|
|
699
|
+
collectLinkedPaths,
|
|
700
|
+
combineHybridHits,
|
|
701
|
+
computeSemanticOrHybridHits,
|
|
702
|
+
countOccurrences,
|
|
703
|
+
dependencyEntries,
|
|
704
|
+
documentContainsExactPhrase,
|
|
705
|
+
emptySearchResult,
|
|
706
|
+
loadDocuments,
|
|
707
|
+
maybeEmitVectorIndexStaleWarning,
|
|
708
|
+
loadLinkedCorpus,
|
|
709
|
+
mergeVectorHitsById,
|
|
710
|
+
normalizeExtensionProviderHits,
|
|
711
|
+
normalizeScoreMap,
|
|
712
|
+
parseProjectionConfig,
|
|
713
|
+
parseTimestampWindow,
|
|
714
|
+
parseTokens,
|
|
715
|
+
readSearchFieldValue,
|
|
716
|
+
requireSemanticDependencies,
|
|
717
|
+
resolveExtensionSearchProvider,
|
|
718
|
+
resolveExtensionSearchProviderByName,
|
|
719
|
+
resolveExtensionVectorAdapter,
|
|
720
|
+
resolveLinkedCorpusRoots,
|
|
721
|
+
scoreDocument,
|
|
722
|
+
sortHits,
|
|
723
|
+
stringArray,
|
|
724
|
+
textEntries,
|
|
725
|
+
validateSearchProjectionFields
|
|
726
|
+
};
|
|
582
727
|
function validateSearchProjectionFields(projection, runtimeFieldRegistry) {
|
|
583
728
|
if (projection.mode !== "fields") {
|
|
584
729
|
return;
|
|
@@ -649,13 +794,28 @@ function applyExactQueryFilters(items, normalizedQuery, options) {
|
|
|
649
794
|
return true;
|
|
650
795
|
});
|
|
651
796
|
}
|
|
652
|
-
function applyFilters(items, options, typeRegistry, runtimeFieldFilters, statusFilter) {
|
|
797
|
+
function applyFilters(items, options, typeRegistry, runtimeFieldFilters, statusFilter, lifecycleClassifier) {
|
|
653
798
|
const typeFilter = parseType(options.type, typeRegistry);
|
|
654
799
|
const tagFilter = options.tag?.trim().toLowerCase();
|
|
655
800
|
const priorityFilter = parsePriority(options.priority);
|
|
656
801
|
const deadlineBefore = parseDeadline(options.deadlineBefore, "deadline-before");
|
|
657
802
|
const deadlineAfter = parseDeadline(options.deadlineAfter, "deadline-after");
|
|
803
|
+
const updatedAfter = parseTimestampWindow(options.updatedAfter, "updated-after");
|
|
804
|
+
const updatedBefore = parseTimestampWindow(options.updatedBefore, "updated-before");
|
|
805
|
+
const createdAfter = parseTimestampWindow(options.createdAfter, "created-after");
|
|
806
|
+
const createdBefore = parseTimestampWindow(options.createdBefore, "created-before");
|
|
807
|
+
const assigneeFilter = options.assignee?.trim();
|
|
808
|
+
const sprintFilter = options.sprint?.trim();
|
|
809
|
+
const releaseFilter = options.release?.trim();
|
|
810
|
+
const parentFilter = options.parent?.trim();
|
|
658
811
|
const statusSet = statusFilter && statusFilter.length > 0 ? new Set(statusFilter) : void 0;
|
|
812
|
+
const missingMetadataFilters = resolveMissingMetadataFilters(options);
|
|
813
|
+
const missingMetadataActive = hasMissingMetadataFilter(missingMetadataFilters);
|
|
814
|
+
const contentFieldFilters = resolveContentFieldFilters(options);
|
|
815
|
+
const contentFiltersActive = hasContentFieldFilter(contentFieldFilters);
|
|
816
|
+
if (assigneeFilter && (assigneeFilter.toLowerCase() === "none" || assigneeFilter.toLowerCase() === "null")) {
|
|
817
|
+
throw new PmCliError('--assignee no longer accepts "none" or "null".', EXIT_CODE.USAGE);
|
|
818
|
+
}
|
|
659
819
|
return items.filter((document) => {
|
|
660
820
|
const item = document.metadata;
|
|
661
821
|
if (statusSet && !statusSet.has(item.status))
|
|
@@ -670,8 +830,30 @@ function applyFilters(items, options, typeRegistry, runtimeFieldFilters, statusF
|
|
|
670
830
|
return false;
|
|
671
831
|
if (deadlineAfter && (!item.deadline || compareTimestampStrings(item.deadline, deadlineAfter) < 0))
|
|
672
832
|
return false;
|
|
833
|
+
if (updatedAfter && compareTimestampStrings(item.updated_at, updatedAfter) < 0)
|
|
834
|
+
return false;
|
|
835
|
+
if (updatedBefore && compareTimestampStrings(item.updated_at, updatedBefore) > 0)
|
|
836
|
+
return false;
|
|
837
|
+
if (createdAfter && compareTimestampStrings(item.created_at, createdAfter) < 0)
|
|
838
|
+
return false;
|
|
839
|
+
if (createdBefore && compareTimestampStrings(item.created_at, createdBefore) > 0)
|
|
840
|
+
return false;
|
|
841
|
+
if (assigneeFilter !== void 0 && item.assignee !== assigneeFilter)
|
|
842
|
+
return false;
|
|
843
|
+
if (sprintFilter !== void 0 && item.sprint !== sprintFilter)
|
|
844
|
+
return false;
|
|
845
|
+
if (releaseFilter !== void 0 && item.release !== releaseFilter)
|
|
846
|
+
return false;
|
|
847
|
+
if (parentFilter !== void 0 && item.parent !== parentFilter)
|
|
848
|
+
return false;
|
|
673
849
|
if (!matchesRuntimeFilters(item, runtimeFieldFilters))
|
|
674
850
|
return false;
|
|
851
|
+
if (missingMetadataActive && !itemMatchesMissingMetadata(item, missingMetadataFilters, lifecycleClassifier)) {
|
|
852
|
+
return false;
|
|
853
|
+
}
|
|
854
|
+
if (contentFiltersActive && !itemMatchesContentFilters(item, contentFieldFilters)) {
|
|
855
|
+
return false;
|
|
856
|
+
}
|
|
675
857
|
return true;
|
|
676
858
|
});
|
|
677
859
|
}
|
|
@@ -764,7 +946,7 @@ async function loadLinkedCorpus(document, roots) {
|
|
|
764
946
|
}
|
|
765
947
|
return chunks.join("\n");
|
|
766
948
|
}
|
|
767
|
-
function scoreDocument(document, tokens, normalizedQuery, linkedCorpus, tuning) {
|
|
949
|
+
function scoreDocument(document, tokens, normalizedQuery, linkedCorpus, tuning, applyCoverageBonus = false) {
|
|
768
950
|
const item = document.metadata;
|
|
769
951
|
const titleTokenCounts = /* @__PURE__ */ new Map();
|
|
770
952
|
for (const token of tokenizeForExactTokenMatch(item.title)) {
|
|
@@ -791,11 +973,13 @@ function scoreDocument(document, tokens, normalizedQuery, linkedCorpus, tuning)
|
|
|
791
973
|
];
|
|
792
974
|
let score = 0;
|
|
793
975
|
const matched = /* @__PURE__ */ new Set();
|
|
976
|
+
const matchedTokens = /* @__PURE__ */ new Set();
|
|
794
977
|
for (const token of tokens) {
|
|
795
978
|
const exactTitleMatches = titleTokenCounts.get(token) ?? 0;
|
|
796
979
|
if (exactTitleMatches > 0) {
|
|
797
980
|
score += exactTitleMatches * tuning.title_exact_bonus;
|
|
798
981
|
matched.add("title");
|
|
982
|
+
matchedTokens.add(token);
|
|
799
983
|
}
|
|
800
984
|
for (const field of searchableFields) {
|
|
801
985
|
const fieldValue = field.value.toLowerCase();
|
|
@@ -803,9 +987,15 @@ function scoreDocument(document, tokens, normalizedQuery, linkedCorpus, tuning)
|
|
|
803
987
|
if (occurrences > 0) {
|
|
804
988
|
score += occurrences * field.weight;
|
|
805
989
|
matched.add(field.name);
|
|
990
|
+
matchedTokens.add(token);
|
|
806
991
|
}
|
|
807
992
|
}
|
|
808
993
|
}
|
|
994
|
+
const distinctTokens = new Set(tokens);
|
|
995
|
+
const matchedAllTerms = distinctTokens.size > 0 && matchedTokens.size === distinctTokens.size;
|
|
996
|
+
if (applyCoverageBonus && distinctTokens.size > 1 && matchedAllTerms) {
|
|
997
|
+
score += ALL_TERMS_COVERAGE_BONUS;
|
|
998
|
+
}
|
|
809
999
|
const isLongPhraseQuery = tokens.length >= LONG_QUERY_TOKEN_THRESHOLD && normalizedQuery.includes(" ");
|
|
810
1000
|
if (isLongPhraseQuery) {
|
|
811
1001
|
const normalizedTitle = normalizeSearchPhrase(item.title);
|
|
@@ -828,7 +1018,8 @@ function scoreDocument(document, tokens, normalizedQuery, linkedCorpus, tuning)
|
|
|
828
1018
|
return {
|
|
829
1019
|
item,
|
|
830
1020
|
score,
|
|
831
|
-
matched_fields: [...matched].sort((a, b) => a.localeCompare(b))
|
|
1021
|
+
matched_fields: [...matched].sort((a, b) => a.localeCompare(b)),
|
|
1022
|
+
matched_all_terms: matchedAllTerms
|
|
832
1023
|
};
|
|
833
1024
|
}
|
|
834
1025
|
function sortHits(items, statusRegistry) {
|
|
@@ -850,8 +1041,8 @@ function sortHits(items, statusRegistry) {
|
|
|
850
1041
|
return a.item.id.localeCompare(b.item.id);
|
|
851
1042
|
});
|
|
852
1043
|
}
|
|
853
|
-
function buildHybridLexicalScore(document, tokens, normalizedQuery, includeLinked, linkedCorpusById, tuning) {
|
|
854
|
-
return scoreDocument(document, tokens, normalizedQuery, includeLinked ? linkedCorpusById.get(document.metadata.id) ?? "" : "", tuning);
|
|
1044
|
+
function buildHybridLexicalScore(document, tokens, normalizedQuery, includeLinked, linkedCorpusById, tuning, applyCoverageBonus = false) {
|
|
1045
|
+
return scoreDocument(document, tokens, normalizedQuery, includeLinked ? linkedCorpusById.get(document.metadata.id) ?? "" : "", tuning, applyCoverageBonus);
|
|
855
1046
|
}
|
|
856
1047
|
function normalizeScoreMap(scoreById) {
|
|
857
1048
|
if (scoreById.size === 0) {
|
|
@@ -931,11 +1122,13 @@ function resolveSearchTuning(settings) {
|
|
|
931
1122
|
linked_content_weight: resolveWeight(tuning.linked_content_weight, defaults.linked_content_weight)
|
|
932
1123
|
};
|
|
933
1124
|
}
|
|
934
|
-
function emptySearchResult(query, mode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters) {
|
|
1125
|
+
function emptySearchResult(query, mode, matchMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters, countOnly = false) {
|
|
1126
|
+
const countExtras = countOnly ? { total: 0, count_only: true } : {};
|
|
935
1127
|
const compactSummaryMode = projection.mode === "compact" && options.compact === true;
|
|
936
1128
|
if (compactSummaryMode) {
|
|
937
1129
|
const compactFilters = buildCompactSearchFilterSummary({
|
|
938
1130
|
mode,
|
|
1131
|
+
matchMode,
|
|
939
1132
|
options,
|
|
940
1133
|
includeLinked,
|
|
941
1134
|
titleExact: options.titleExact === true,
|
|
@@ -949,6 +1142,7 @@ function emptySearchResult(query, mode, options, includeLinked, scoreThreshold,
|
|
|
949
1142
|
mode,
|
|
950
1143
|
items: [],
|
|
951
1144
|
count: 0,
|
|
1145
|
+
...countExtras,
|
|
952
1146
|
filters: compactFilters,
|
|
953
1147
|
...warnings.length > 0 ? { warnings } : {}
|
|
954
1148
|
};
|
|
@@ -959,26 +1153,20 @@ function emptySearchResult(query, mode, options, includeLinked, scoreThreshold,
|
|
|
959
1153
|
mode,
|
|
960
1154
|
items: [],
|
|
961
1155
|
count: 0,
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
query_expansion_provider: queryExpansion.provider,
|
|
977
|
-
rerank_enabled: rerank.enabled,
|
|
978
|
-
rerank_model: rerank.model,
|
|
979
|
-
rerank_top_k: rerank.top_k,
|
|
980
|
-
limit: options.limit ?? null
|
|
981
|
-
},
|
|
1156
|
+
...countExtras,
|
|
1157
|
+
filters: buildVerboseSearchFilters({
|
|
1158
|
+
effectiveMode: mode,
|
|
1159
|
+
matchMode,
|
|
1160
|
+
options,
|
|
1161
|
+
includeLinked,
|
|
1162
|
+
titleExact: options.titleExact === true,
|
|
1163
|
+
phraseExact: options.phraseExact === true,
|
|
1164
|
+
scoreThreshold,
|
|
1165
|
+
hybridSemanticWeight,
|
|
1166
|
+
queryExpansion,
|
|
1167
|
+
rerank,
|
|
1168
|
+
runtimeFieldFilters: runtimeFieldFilters ?? {}
|
|
1169
|
+
}),
|
|
982
1170
|
projection: {
|
|
983
1171
|
mode: projection.mode,
|
|
984
1172
|
fields: projectionFields
|
|
@@ -1396,7 +1584,7 @@ function readSearchFieldValue(hit, field) {
|
|
|
1396
1584
|
}
|
|
1397
1585
|
function projectSearchHits(hits, projection) {
|
|
1398
1586
|
if (projection.mode === "full") {
|
|
1399
|
-
return hits;
|
|
1587
|
+
return hits.map(({ matched_all_terms: _matchedAllTerms, ...hit }) => hit);
|
|
1400
1588
|
}
|
|
1401
1589
|
return hits.map((hit) => {
|
|
1402
1590
|
const projected = {};
|
|
@@ -1410,6 +1598,9 @@ async function runSearch(query, options, global2) {
|
|
|
1410
1598
|
const includeLinked = parseIncludeLinked(options.includeLinked);
|
|
1411
1599
|
const titleExact = parseTitleExact(options.titleExact);
|
|
1412
1600
|
const phraseExact = parsePhraseExact(options.phraseExact);
|
|
1601
|
+
const matchMode = parseMatchMode(typeof options.matchMode === "string" ? options.matchMode : void 0);
|
|
1602
|
+
const minScoreOverride = parseMinScoreOverride(options.minScore);
|
|
1603
|
+
const countOnly = options.count === true;
|
|
1413
1604
|
const tokens = parseTokens(query);
|
|
1414
1605
|
const normalizedQuery = normalizeSearchPhrase(query);
|
|
1415
1606
|
const limit = parseLimit(options.limit);
|
|
@@ -1429,7 +1620,7 @@ async function runSearch(query, options, global2) {
|
|
|
1429
1620
|
const statusFilter = parseStatusFilterCsv(typeof options.status === "string" ? options.status : void 0, statusRegistry, { strict: true });
|
|
1430
1621
|
const typeRegistry = resolveItemTypeRegistry(settings, getActiveExtensionRegistrations());
|
|
1431
1622
|
const maxResults = resolveSearchMaxResults(settings);
|
|
1432
|
-
const scoreThreshold = resolveSearchScoreThreshold(settings);
|
|
1623
|
+
const scoreThreshold = minScoreOverride ?? resolveSearchScoreThreshold(settings);
|
|
1433
1624
|
const semanticWeightProvided = options.semanticWeight !== void 0;
|
|
1434
1625
|
const semanticWeightOverride = parseSemanticWeightOverride(options.semanticWeight);
|
|
1435
1626
|
const hybridSemanticWeight = semanticWeightOverride ?? resolveHybridSemanticWeight(settings);
|
|
@@ -1454,13 +1645,16 @@ async function runSearch(query, options, global2) {
|
|
|
1454
1645
|
warnings.push("search_hybrid_semantic_weight_override_invalid:using_settings_default");
|
|
1455
1646
|
}
|
|
1456
1647
|
const allDocuments = loadedDocuments.documents;
|
|
1457
|
-
const
|
|
1648
|
+
const lifecycleClassifier = lifecycleClassifierFromStatusRegistry(statusRegistry);
|
|
1649
|
+
const metadataFilteredDocuments = applyFilters(allDocuments, options, typeRegistry, runtimeFieldFilters, statusFilter, lifecycleClassifier);
|
|
1458
1650
|
const filteredDocuments = applyExactQueryFilters(metadataFilteredDocuments, normalizedQuery, {
|
|
1459
1651
|
titleExact,
|
|
1460
|
-
|
|
1652
|
+
// --match-mode exact reuses the exact-phrase containment logic so the whole
|
|
1653
|
+
// normalized query must appear as a contiguous phrase in some searchable field.
|
|
1654
|
+
phraseExact: phraseExact || matchMode === "exact"
|
|
1461
1655
|
});
|
|
1462
1656
|
if (effectiveMode === "keyword" && (filteredDocuments.length === 0 || limit === 0)) {
|
|
1463
|
-
return emptySearchResult(query, effectiveMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters);
|
|
1657
|
+
return emptySearchResult(query, effectiveMode, matchMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters, countOnly);
|
|
1464
1658
|
}
|
|
1465
1659
|
const projectRoot = process.cwd();
|
|
1466
1660
|
const globalRoot = resolveGlobalPmRoot(projectRoot);
|
|
@@ -1472,7 +1666,19 @@ async function runSearch(query, options, global2) {
|
|
|
1472
1666
|
linkedCorpusById.set(id, corpus);
|
|
1473
1667
|
}
|
|
1474
1668
|
}
|
|
1475
|
-
const
|
|
1669
|
+
const applyCoverageBonus = matchMode === "or";
|
|
1670
|
+
const keywordHits = filteredDocuments.map((document) => buildHybridLexicalScore(
|
|
1671
|
+
document,
|
|
1672
|
+
tokens,
|
|
1673
|
+
normalizedQuery,
|
|
1674
|
+
// Linked corpus is only collected into linkedCorpusById when the user
|
|
1675
|
+
// passed --include-linked (and mode is keyword/hybrid), so pass the
|
|
1676
|
+
// parsed flag directly rather than re-deriving it from the mode.
|
|
1677
|
+
includeLinked,
|
|
1678
|
+
linkedCorpusById,
|
|
1679
|
+
tuning,
|
|
1680
|
+
applyCoverageBonus
|
|
1681
|
+
)).filter((entry) => entry !== null).filter((entry) => matchMode !== "and" || entry.matched_all_terms === true);
|
|
1476
1682
|
let hits = keywordHits;
|
|
1477
1683
|
if (effectiveMode !== "keyword") {
|
|
1478
1684
|
const builtInSemanticWillRun = !extensionSearchProvider && providerResolution.active !== null && (vectorResolution.active !== null || extensionVectorAdapter !== null);
|
|
@@ -1484,7 +1690,7 @@ async function runSearch(query, options, global2) {
|
|
|
1484
1690
|
requireSemanticDependencies(effectiveMode, providerResolution, vectorResolution, extensionVectorAdapter !== null);
|
|
1485
1691
|
}
|
|
1486
1692
|
if (filteredDocuments.length === 0 || limit === 0) {
|
|
1487
|
-
return emptySearchResult(query, effectiveMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters);
|
|
1693
|
+
return emptySearchResult(query, effectiveMode, matchMode, options, includeLinked, scoreThreshold, hybridSemanticWeight, queryExpansion, rerank, projection, warnings, runtimeFieldFilters, countOnly);
|
|
1488
1694
|
}
|
|
1489
1695
|
const filteredById = new Map(filteredDocuments.map((document) => [document.metadata.id, document]));
|
|
1490
1696
|
const canUseBuiltInSemantic = providerResolution.active !== null && (vectorResolution.active !== null || extensionVectorAdapter !== null);
|
|
@@ -1525,6 +1731,7 @@ async function runSearch(query, options, global2) {
|
|
|
1525
1731
|
rerankExtension,
|
|
1526
1732
|
warnings,
|
|
1527
1733
|
settings,
|
|
1734
|
+
/* c8 ignore next 5 -- reserved for future implicit-hybrid auto-mode; current parseMode defaults keyword when mode is omitted */
|
|
1528
1735
|
...implicitHybridMode ? {
|
|
1529
1736
|
embeddingTimeoutMs: IMPLICIT_HYBRID_EMBEDDING_TIMEOUT_MS,
|
|
1530
1737
|
vectorQueryTimeoutMs: IMPLICIT_HYBRID_VECTOR_TIMEOUT_MS
|
|
@@ -1547,14 +1754,69 @@ async function runSearch(query, options, global2) {
|
|
|
1547
1754
|
}
|
|
1548
1755
|
const thresholded = hits.filter((entry) => entry.score >= scoreThreshold);
|
|
1549
1756
|
const sorted = sortHits(thresholded, statusRegistry);
|
|
1550
|
-
const
|
|
1551
|
-
const
|
|
1552
|
-
const
|
|
1757
|
+
const total = sorted.length;
|
|
1758
|
+
const resolvedLimit = limit ?? maxResults;
|
|
1759
|
+
const limited = sorted.slice(0, resolvedLimit);
|
|
1553
1760
|
const projectionFields = projection.mode === "full" ? null : [...projection.fields];
|
|
1554
1761
|
const compactSummaryMode = projection.mode === "compact" && options.compact === true;
|
|
1762
|
+
if (countOnly) {
|
|
1763
|
+
if (compactSummaryMode) {
|
|
1764
|
+
const compactFilters = buildCompactSearchFilterSummary({
|
|
1765
|
+
mode: effectiveMode,
|
|
1766
|
+
matchMode,
|
|
1767
|
+
options,
|
|
1768
|
+
includeLinked,
|
|
1769
|
+
titleExact,
|
|
1770
|
+
phraseExact,
|
|
1771
|
+
scoreThreshold,
|
|
1772
|
+
hybridSemanticWeight,
|
|
1773
|
+
runtimeFieldFilters
|
|
1774
|
+
});
|
|
1775
|
+
return {
|
|
1776
|
+
query: query.trim(),
|
|
1777
|
+
mode: effectiveMode,
|
|
1778
|
+
items: [],
|
|
1779
|
+
count: total,
|
|
1780
|
+
total,
|
|
1781
|
+
count_only: true,
|
|
1782
|
+
filters: compactFilters,
|
|
1783
|
+
...warnings.length > 0 ? { warnings } : {}
|
|
1784
|
+
};
|
|
1785
|
+
}
|
|
1786
|
+
return {
|
|
1787
|
+
query: query.trim(),
|
|
1788
|
+
mode: effectiveMode,
|
|
1789
|
+
items: [],
|
|
1790
|
+
count: total,
|
|
1791
|
+
total,
|
|
1792
|
+
count_only: true,
|
|
1793
|
+
filters: buildVerboseSearchFilters({
|
|
1794
|
+
effectiveMode,
|
|
1795
|
+
matchMode,
|
|
1796
|
+
options,
|
|
1797
|
+
includeLinked,
|
|
1798
|
+
titleExact,
|
|
1799
|
+
phraseExact,
|
|
1800
|
+
scoreThreshold,
|
|
1801
|
+
hybridSemanticWeight,
|
|
1802
|
+
queryExpansion,
|
|
1803
|
+
rerank,
|
|
1804
|
+
runtimeFieldFilters
|
|
1805
|
+
}),
|
|
1806
|
+
projection: {
|
|
1807
|
+
mode: projection.mode,
|
|
1808
|
+
fields: projectionFields
|
|
1809
|
+
},
|
|
1810
|
+
now: nowIso(),
|
|
1811
|
+
...warnings.length > 0 ? { warnings } : {}
|
|
1812
|
+
};
|
|
1813
|
+
}
|
|
1814
|
+
const projectedItems = projectSearchHits(limited, projection);
|
|
1815
|
+
const truncationExtras = limited.length < total ? { total } : {};
|
|
1555
1816
|
if (compactSummaryMode) {
|
|
1556
1817
|
const compactFilters = buildCompactSearchFilterSummary({
|
|
1557
1818
|
mode: effectiveMode,
|
|
1819
|
+
matchMode,
|
|
1558
1820
|
options,
|
|
1559
1821
|
includeLinked,
|
|
1560
1822
|
titleExact,
|
|
@@ -1568,6 +1830,7 @@ async function runSearch(query, options, global2) {
|
|
|
1568
1830
|
mode: effectiveMode,
|
|
1569
1831
|
items: projectedItems,
|
|
1570
1832
|
count: projectedItems.length,
|
|
1833
|
+
...truncationExtras,
|
|
1571
1834
|
filters: compactFilters,
|
|
1572
1835
|
...warnings.length > 0 ? { warnings } : {}
|
|
1573
1836
|
};
|
|
@@ -1577,27 +1840,20 @@ async function runSearch(query, options, global2) {
|
|
|
1577
1840
|
mode: effectiveMode,
|
|
1578
1841
|
items: projectedItems,
|
|
1579
1842
|
count: projectedItems.length,
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
query_expansion_provider: queryExpansion.provider,
|
|
1595
|
-
rerank_enabled: rerank.enabled,
|
|
1596
|
-
rerank_model: rerank.model,
|
|
1597
|
-
rerank_top_k: rerank.top_k,
|
|
1598
|
-
limit: options.limit ?? null,
|
|
1599
|
-
runtime_filters: runtimeFieldFilters
|
|
1600
|
-
},
|
|
1843
|
+
...truncationExtras,
|
|
1844
|
+
filters: buildVerboseSearchFilters({
|
|
1845
|
+
effectiveMode,
|
|
1846
|
+
matchMode,
|
|
1847
|
+
options,
|
|
1848
|
+
includeLinked,
|
|
1849
|
+
titleExact,
|
|
1850
|
+
phraseExact,
|
|
1851
|
+
scoreThreshold,
|
|
1852
|
+
hybridSemanticWeight,
|
|
1853
|
+
queryExpansion,
|
|
1854
|
+
rerank,
|
|
1855
|
+
runtimeFieldFilters
|
|
1856
|
+
}),
|
|
1601
1857
|
projection: {
|
|
1602
1858
|
mode: projection.mode,
|
|
1603
1859
|
fields: projectionFields
|
|
@@ -1607,6 +1863,7 @@ async function runSearch(query, options, global2) {
|
|
|
1607
1863
|
};
|
|
1608
1864
|
}
|
|
1609
1865
|
export {
|
|
1866
|
+
_testOnlySearchCommand,
|
|
1610
1867
|
classifyImplicitSemanticFallbackReason,
|
|
1611
1868
|
collectErrorCauseCodes,
|
|
1612
1869
|
resolveHybridSemanticWeight,
|
|
@@ -1615,4 +1872,4 @@ export {
|
|
|
1615
1872
|
resolveSearchTuning,
|
|
1616
1873
|
runSearch
|
|
1617
1874
|
};
|
|
1618
|
-
//# sourceMappingURL=search-
|
|
1875
|
+
//# sourceMappingURL=search-NQ42NC6A.js.map
|