@unbrained/pm-cli 2026.6.24 → 2026.7.1
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/AGENTS.md +2 -0
- package/CHANGELOG.md +113 -1
- package/CONTRIBUTING.md +30 -0
- package/README.md +16 -3
- package/dist/cli/bootstrap-args.js +89 -79
- package/dist/cli/bootstrap-args.js.map +1 -1
- package/dist/cli/commander-usage.js +3 -3
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/aggregate.js +8 -7
- package/dist/cli/commands/aggregate.js.map +1 -1
- package/dist/cli/commands/calendar.js +63 -62
- package/dist/cli/commands/calendar.js.map +1 -1
- package/dist/cli/commands/close.d.ts +2 -4
- package/dist/cli/commands/close.js +5 -17
- package/dist/cli/commands/close.js.map +1 -1
- package/dist/cli/commands/completion.js +158 -9
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +1 -1
- package/dist/cli/commands/config.js +2 -2
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/context.d.ts +31 -4
- package/dist/cli/commands/context.js +33 -10
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/contracts.js +48 -8
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/commands/create.d.ts +1 -6
- package/dist/cli/commands/create.js +491 -587
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/bundled-catalog.js +59 -46
- package/dist/cli/commands/extension/bundled-catalog.js.map +1 -1
- package/dist/cli/commands/extension/describe.d.ts +15 -0
- package/dist/cli/commands/extension/describe.js +48 -2
- package/dist/cli/commands/extension/describe.js.map +1 -1
- package/dist/cli/commands/extension/doctor.js +129 -75
- package/dist/cli/commands/extension/doctor.js.map +1 -1
- package/dist/cli/commands/extension/install-sources.js +37 -7
- package/dist/cli/commands/extension/install-sources.js.map +1 -1
- package/dist/cli/commands/extension/managed-state.js +101 -57
- package/dist/cli/commands/extension/managed-state.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.d.ts +38 -8
- package/dist/cli/commands/extension/scaffold.js +1956 -242
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +28 -3
- package/dist/cli/commands/extension.js +1181 -880
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/index.d.ts +3 -1
- package/dist/cli/commands/index.js +5 -3
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/item-filter-options.d.ts +63 -0
- package/dist/cli/commands/item-filter-options.js +10 -0
- package/dist/cli/commands/item-filter-options.js.map +1 -0
- package/dist/cli/commands/legacy-none-tokens.d.ts +14 -0
- package/dist/cli/commands/legacy-none-tokens.js +31 -2
- package/dist/cli/commands/legacy-none-tokens.js.map +1 -1
- package/dist/cli/commands/linked-artifacts.d.ts +7 -0
- package/dist/cli/commands/linked-artifacts.js +12 -2
- package/dist/cli/commands/linked-artifacts.js.map +1 -1
- package/dist/cli/commands/list-filter-shared.js +55 -48
- package/dist/cli/commands/list-filter-shared.js.map +1 -1
- package/dist/cli/commands/list.d.ts +16 -39
- package/dist/cli/commands/list.js +127 -118
- package/dist/cli/commands/list.js.map +1 -1
- package/dist/cli/commands/next.d.ts +98 -0
- package/dist/cli/commands/next.js +304 -0
- package/dist/cli/commands/next.js.map +1 -0
- package/dist/cli/commands/profile.d.ts +208 -0
- package/dist/cli/commands/profile.js +418 -0
- package/dist/cli/commands/profile.js.map +1 -0
- package/dist/cli/commands/repeatable-metadata-parsers.js +12 -13
- package/dist/cli/commands/repeatable-metadata-parsers.js.map +1 -1
- package/dist/cli/commands/schema.d.ts +7 -0
- package/dist/cli/commands/schema.js +9 -3
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/search.d.ts +2 -39
- package/dist/cli/commands/search.js +196 -172
- package/dist/cli/commands/search.js.map +1 -1
- package/dist/cli/commands/shared-unset-fields.d.ts +30 -0
- package/dist/cli/commands/shared-unset-fields.js +161 -0
- package/dist/cli/commands/shared-unset-fields.js.map +1 -0
- package/dist/cli/commands/stats.js +15 -3
- package/dist/cli/commands/stats.js.map +1 -1
- package/dist/cli/commands/test.js +115 -125
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/update.d.ts +1 -6
- package/dist/cli/commands/update.js +37 -232
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/validate.js +20 -5
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/extension-command-options.js +48 -21
- package/dist/cli/extension-command-options.js.map +1 -1
- package/dist/cli/help-content.js +26 -2
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/help-json-payload.js +3 -3
- package/dist/cli/help-json-payload.js.map +1 -1
- package/dist/cli/main.js +27 -12
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +42 -3
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +86 -2
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-setup.js +67 -6
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.d.ts +9 -1
- package/dist/cli/registration-helpers.js +149 -123
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/chunks/activity-AW6XVFH6.js +16 -0
- package/dist/cli-bundle/chunks/{activity-N7RVTLBQ.js → activity-DBLQVIP6.js} +9 -11
- package/dist/cli-bundle/chunks/{aggregate-63NWNIBR.js → aggregate-JTEF4BP7.js} +17 -18
- package/dist/cli-bundle/chunks/aggregate-JTEF4BP7.js.map +1 -0
- package/dist/cli-bundle/chunks/{aggregate-YHCYX2EV.js → aggregate-SDF7DUOD.js} +16 -17
- package/dist/cli-bundle/chunks/aggregate-SDF7DUOD.js.map +7 -0
- package/dist/cli-bundle/chunks/{append-VLQQDHMJ.js → append-LOVPGVPT.js} +8 -10
- package/dist/cli-bundle/chunks/{append-VLQQDHMJ.js.map → append-LOVPGVPT.js.map} +1 -1
- package/dist/cli-bundle/chunks/{append-PUKREFV5.js → append-QCFJSDFL.js} +10 -12
- package/dist/cli-bundle/chunks/{append-PUKREFV5.js.map → append-QCFJSDFL.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-ABYCA5VX.js → chunk-22WKIL3H.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-ABYCA5VX.js.map → chunk-22WKIL3H.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-A66VYUOV.js → chunk-2466X6E4.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-A66VYUOV.js.map → chunk-2466X6E4.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-F32L4HR6.js → chunk-27BXPBAY.js} +3 -3
- package/dist/cli-bundle/chunks/{schema-QO5I4FBL.js → chunk-2D4HATP2.js} +136 -66
- package/dist/cli-bundle/chunks/chunk-2D4HATP2.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-J7I4C5ZB.js → chunk-3J6JRJ3I.js} +153 -125
- package/dist/cli-bundle/chunks/chunk-3J6JRJ3I.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-OHDQNKJB.js → chunk-3K2M5OYU.js} +106 -34
- package/dist/cli-bundle/chunks/chunk-3K2M5OYU.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-XVYKWZNL.js → chunk-3S2KT7NG.js} +127 -127
- package/dist/cli-bundle/chunks/chunk-3S2KT7NG.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5BBEWX6C.js → chunk-3VGN2UWE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-N5B6WZC5.js → chunk-3XZCOZ5J.js} +115 -123
- package/dist/cli-bundle/chunks/chunk-3XZCOZ5J.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4A3BJ675.js +799 -0
- package/dist/cli-bundle/chunks/chunk-4A3BJ675.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-4BU75MF4.js +87 -0
- package/dist/cli-bundle/chunks/chunk-4BU75MF4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-HZF5RLKX.js → chunk-4DSGXSBL.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-HZF5RLKX.js.map → chunk-4DSGXSBL.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-JV27C7OZ.js → chunk-4DUVCVLZ.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-JV27C7OZ.js.map → chunk-4DUVCVLZ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-IAP5KYBQ.js → chunk-4XOIEKSD.js} +563 -506
- package/dist/cli-bundle/chunks/chunk-4XOIEKSD.js.map +1 -0
- package/dist/cli-bundle/chunks/{context-5LB7UGKE.js → chunk-55SNVXRQ.js} +79 -82
- package/dist/cli-bundle/chunks/chunk-55SNVXRQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-BFFO3AIB.js → chunk-5CGRF3L5.js} +128 -128
- package/dist/cli-bundle/chunks/chunk-5CGRF3L5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-JKL6HRMV.js → chunk-5QFDBI4F.js} +1260 -1046
- package/dist/cli-bundle/chunks/chunk-5QFDBI4F.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-LU36E6GU.js → chunk-64HNBBFQ.js} +8 -12
- package/dist/cli-bundle/chunks/{chunk-LU36E6GU.js.map → chunk-64HNBBFQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-6AQZPVHQ.js +2444 -0
- package/dist/cli-bundle/chunks/chunk-6AQZPVHQ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-7M2HAZEB.js +17 -0
- package/dist/cli-bundle/chunks/chunk-7M2HAZEB.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-VSAABFGQ.js → chunk-7R4QEMZZ.js} +1490 -734
- package/dist/cli-bundle/chunks/chunk-7R4QEMZZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-M6TUBOGW.js → chunk-A7FPBAQS.js} +19 -12
- package/dist/cli-bundle/chunks/chunk-A7FPBAQS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GQYJEEFX.js → chunk-AVEE5EHK.js} +53 -54
- package/dist/cli-bundle/chunks/chunk-AVEE5EHK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FMWW2JDU.js → chunk-AXIDKKAT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TIM4OD74.js → chunk-BDTISOSD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-C4C3EJCJ.js → chunk-BHO33VBQ.js} +509 -363
- package/dist/cli-bundle/chunks/chunk-BHO33VBQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6W3Y65PL.js → chunk-BZCEN4JA.js} +198 -177
- package/dist/cli-bundle/chunks/chunk-BZCEN4JA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RRP6D345.js → chunk-CF7RL6FR.js} +12 -16
- package/dist/cli-bundle/chunks/{chunk-RRP6D345.js.map → chunk-CF7RL6FR.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-HC2S36NB.js → chunk-CWFNTKQJ.js} +154 -126
- package/dist/cli-bundle/chunks/chunk-CWFNTKQJ.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-CZVISY5A.js +87 -0
- package/dist/cli-bundle/chunks/chunk-CZVISY5A.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-CZIFFMZI.js → chunk-DDPTYJIM.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AYPQUFCX.js → chunk-EJUDVUYZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-EOGBMLCE.js → chunk-EVMTBV6V.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-RAWA3Y7O.js → chunk-FFMQB7WR.js} +199 -178
- package/dist/cli-bundle/chunks/chunk-FFMQB7WR.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-CG3KP6I5.js → chunk-G7I7DEZA.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-MEXZ5XUM.js → chunk-GJ326ZKX.js} +53 -54
- package/dist/cli-bundle/chunks/chunk-GJ326ZKX.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HPPFYYOV.js +119 -0
- package/dist/cli-bundle/chunks/chunk-HPPFYYOV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-OF7V47P3.js → chunk-HXTQJXWT.js} +2172 -2146
- package/dist/cli-bundle/chunks/chunk-HXTQJXWT.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-F4BNR2IN.js → chunk-HYTGA6GI.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-2WCYE3IF.js → chunk-HZZEHPRG.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-IBMFIKVS.js +14 -0
- package/dist/cli-bundle/chunks/chunk-IBMFIKVS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YV2OSAMS.js → chunk-IJYK2T43.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4XDGYFHL.js → chunk-IPYBJWTE.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-4XDGYFHL.js.map → chunk-IPYBJWTE.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-6EBNFQOR.js → chunk-IZBR4NRW.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-6EBNFQOR.js.map → chunk-IZBR4NRW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-VFJYVXHL.js → chunk-JLM7BHI7.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-VFJYVXHL.js.map → chunk-JLM7BHI7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-6EL7SW5C.js → chunk-JMP4E6D7.js} +114 -122
- package/dist/cli-bundle/chunks/chunk-JMP4E6D7.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-QOUOMPHO.js → chunk-JPECA746.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-KJZOSF7J.js → chunk-JSU5P7VS.js} +100 -35
- package/dist/cli-bundle/chunks/chunk-JSU5P7VS.js.map +1 -0
- package/dist/cli-bundle/chunks/{context-55VEOYI3.js → chunk-JWXRETDF.js} +79 -82
- package/dist/cli-bundle/chunks/chunk-JWXRETDF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-OQ2E64FH.js → chunk-KNPEF7QG.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-3BKH2CL3.js → chunk-L5OEFZQG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-DTABLLVE.js → chunk-LB6TP6MC.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-DTABLLVE.js.map → chunk-LB6TP6MC.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TSI32UEL.js → chunk-MAUKX7JC.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-TSI32UEL.js.map → chunk-MAUKX7JC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-SMXSDY7J.js → chunk-MDPEOIGN.js} +2221 -2172
- package/dist/cli-bundle/chunks/chunk-MDPEOIGN.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5S4ZGDB2.js → chunk-N74UMG5H.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IXAZI443.js → chunk-NFDPYAIP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-SKC4UTRP.js → chunk-NKZAN7BD.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-NOLPZMSV.js +116 -0
- package/dist/cli-bundle/chunks/chunk-NOLPZMSV.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-L7UXKP2I.js → chunk-NU2UEROZ.js} +1257 -1029
- package/dist/cli-bundle/chunks/chunk-NU2UEROZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-HBAEFWX3.js → chunk-NUHHPVVS.js} +65 -335
- package/dist/cli-bundle/chunks/chunk-NUHHPVVS.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-JPJDP4VU.js → chunk-NWMZWYYB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-MWMHZOZZ.js → chunk-OGXLACHC.js} +10 -14
- package/dist/cli-bundle/chunks/{chunk-MWMHZOZZ.js.map → chunk-OGXLACHC.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-OKQ22KTH.js +379 -0
- package/dist/cli-bundle/chunks/chunk-OKQ22KTH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KKX4Z2SE.js → chunk-OTUHB4HS.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-ZLWRPBOW.js → chunk-QCWF6IYD.js} +510 -364
- package/dist/cli-bundle/chunks/chunk-QCWF6IYD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-PRVTGX64.js → chunk-RGEMWD6Q.js} +11 -23
- package/dist/cli-bundle/chunks/chunk-RGEMWD6Q.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-RH5ZBYFD.js +809 -0
- package/dist/cli-bundle/chunks/chunk-RH5ZBYFD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ALQKV6U7.js → chunk-RLDHZHQS.js} +12 -16
- package/dist/cli-bundle/chunks/{chunk-ALQKV6U7.js.map → chunk-RLDHZHQS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{schema-C6QA367T.js → chunk-RMMQ74TG.js} +144 -67
- package/dist/cli-bundle/chunks/chunk-RMMQ74TG.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-EYPINTFR.js → chunk-RVUALSJF.js} +1516 -753
- package/dist/cli-bundle/chunks/chunk-RVUALSJF.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-SDR5J34Q.js +2468 -0
- package/dist/cli-bundle/chunks/chunk-SDR5J34Q.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-WB5BYQMF.js → chunk-SLMUGTK3.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-SUREE24M.js → chunk-TP5Q5ZD3.js} +12 -24
- package/dist/cli-bundle/chunks/chunk-TP5Q5ZD3.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UACWNBL2.js → chunk-UYUYDGIB.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-UACWNBL2.js.map → chunk-UYUYDGIB.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-V4UYNSEM.js → chunk-UZIWVBE6.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-V4UYNSEM.js.map → chunk-UZIWVBE6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-EWRSXOIZ.js → chunk-V3NOKJF2.js} +11 -13
- package/dist/cli-bundle/chunks/{chunk-EWRSXOIZ.js.map → chunk-V3NOKJF2.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-XXKV4UWE.js → chunk-VARHOHYV.js} +571 -507
- package/dist/cli-bundle/chunks/chunk-VARHOHYV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AEACLRVH.js → chunk-VICZWYGZ.js} +18 -11
- package/dist/cli-bundle/chunks/chunk-VICZWYGZ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-VY3VQ22F.js +84 -0
- package/dist/cli-bundle/chunks/chunk-VY3VQ22F.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-VZDBVEZR.js +382 -0
- package/dist/cli-bundle/chunks/chunk-VZDBVEZR.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GDUMGZK3.js → chunk-W4ULYO7Z.js} +11 -13
- package/dist/cli-bundle/chunks/{chunk-GDUMGZK3.js.map → chunk-W4ULYO7Z.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-I6QMJ2XT.js → chunk-WYDHYJPO.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ALKFCIIB.js → chunk-YITK2PJ6.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-ALKFCIIB.js.map → chunk-YITK2PJ6.js.map} +1 -1
- package/dist/cli-bundle/chunks/chunk-YJIEJRZB.js +84 -0
- package/dist/cli-bundle/chunks/chunk-YJIEJRZB.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-LNEDHJNQ.js → chunk-ZETXE4SE.js} +66 -329
- package/dist/cli-bundle/chunks/chunk-ZETXE4SE.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KIEAK7YE.js → chunk-ZRP4VG5U.js} +2 -2
- package/dist/cli-bundle/chunks/{claim-FZZZCAY6.js → claim-EMQLYPRW.js} +10 -12
- package/dist/cli-bundle/chunks/{claim-FZZZCAY6.js.map → claim-EMQLYPRW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{claim-XK5QBZE3.js → claim-T3GCKV7C.js} +8 -10
- package/dist/cli-bundle/chunks/{claim-XK5QBZE3.js.map → claim-T3GCKV7C.js.map} +1 -1
- package/dist/cli-bundle/chunks/close-E6ZZGCJY.js +14 -0
- package/dist/cli-bundle/chunks/{close-QHMVWM7M.js → close-TQYAAFJP.js} +7 -8
- package/dist/cli-bundle/chunks/{close-many-OIXJE2JZ.js → close-many-BG5QQIDQ.js} +16 -18
- package/dist/cli-bundle/chunks/{close-many-OIXJE2JZ.js.map → close-many-BG5QQIDQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{close-many-SUU5BS2C.js → close-many-LDRVEQY2.js} +18 -20
- package/dist/cli-bundle/chunks/{close-many-SUU5BS2C.js.map → close-many-LDRVEQY2.js.map} +1 -1
- package/dist/cli-bundle/chunks/{comments-5YM62D75.js → comments-QCKR2YY2.js} +11 -13
- package/dist/cli-bundle/chunks/{comments-5YM62D75.js.map → comments-QCKR2YY2.js.map} +1 -1
- package/dist/cli-bundle/chunks/{comments-RH3IBIRH.js → comments-YUXJRZPQ.js} +9 -11
- package/dist/cli-bundle/chunks/{comments-RH3IBIRH.js.map → comments-YUXJRZPQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{config-NCNNWF6R.js → config-DMSU64QO.js} +18 -387
- package/dist/cli-bundle/chunks/config-DMSU64QO.js.map +7 -0
- package/dist/cli-bundle/chunks/{config-SW3U7XP2.js → config-QH2DICD6.js} +18 -380
- package/dist/cli-bundle/chunks/config-QH2DICD6.js.map +1 -0
- package/dist/cli-bundle/chunks/context-B6275WPX.js +46 -0
- package/dist/cli-bundle/chunks/context-OCZ3FJ4Z.js +42 -0
- package/dist/cli-bundle/chunks/{contracts-SY6PDFIK.js → contracts-HN7ABKLP.js} +72 -15
- package/dist/cli-bundle/chunks/contracts-HN7ABKLP.js.map +7 -0
- package/dist/cli-bundle/chunks/{contracts-JXFGBOYT.js → contracts-W4FZVVD6.js} +72 -15
- package/dist/cli-bundle/chunks/contracts-W4FZVVD6.js.map +1 -0
- package/dist/cli-bundle/chunks/{copy-N3GE6FYS.js → copy-BTJOSKKT.js} +7 -11
- package/dist/cli-bundle/chunks/{copy-N3GE6FYS.js.map → copy-BTJOSKKT.js.map} +1 -1
- package/dist/cli-bundle/chunks/{copy-IEDBJOOX.js → copy-DEM4DATS.js} +9 -13
- package/dist/cli-bundle/chunks/{copy-IEDBJOOX.js.map → copy-DEM4DATS.js.map} +1 -1
- package/dist/cli-bundle/chunks/create-OH3BDGBB.js +28 -0
- package/dist/cli-bundle/chunks/{create-O4VONGPG.js → create-RLRJMRTM.js} +12 -14
- package/dist/cli-bundle/chunks/{delete-LPEIF7RU.js → delete-BHK7VB2Z.js} +5 -7
- package/dist/cli-bundle/chunks/{delete-LPEIF7RU.js.map → delete-BHK7VB2Z.js.map} +1 -1
- package/dist/cli-bundle/chunks/{delete-724EQ6OS.js → delete-LSVHAB4Y.js} +7 -9
- package/dist/cli-bundle/chunks/{delete-724EQ6OS.js.map → delete-LSVHAB4Y.js.map} +1 -1
- package/dist/cli-bundle/chunks/{deps-RSBU4SIU.js → deps-4UDFJRUA.js} +8 -11
- package/dist/cli-bundle/chunks/{deps-RSBU4SIU.js.map → deps-4UDFJRUA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{deps-T3Y6Y7RT.js → deps-XHYXWEPT.js} +6 -9
- package/dist/cli-bundle/chunks/{deps-T3Y6Y7RT.js.map → deps-XHYXWEPT.js.map} +1 -1
- package/dist/cli-bundle/chunks/{docs-IFS7HZPP.js → docs-26S44RXU.js} +8 -9
- package/dist/cli-bundle/chunks/{docs-IFS7HZPP.js.map → docs-26S44RXU.js.map} +1 -1
- package/dist/cli-bundle/chunks/{docs-75ZLCO3G.js → docs-GYZNVS26.js} +10 -11
- package/dist/cli-bundle/chunks/{docs-75ZLCO3G.js.map → docs-GYZNVS26.js.map} +1 -1
- package/dist/cli-bundle/chunks/{eval-L2KD7W3M.js → eval-PGRVIJQU.js} +12 -14
- package/dist/cli-bundle/chunks/{eval-L2KD7W3M.js.map → eval-PGRVIJQU.js.map} +1 -1
- package/dist/cli-bundle/chunks/{eval-QGR7JCQO.js → eval-UYF3ZPVO.js} +10 -12
- package/dist/cli-bundle/chunks/{eval-QGR7JCQO.js.map → eval-UYF3ZPVO.js.map} +1 -1
- package/dist/cli-bundle/chunks/{extension-YQF4CPIR.js → extension-CPSLJQVE.js} +12 -7
- package/dist/cli-bundle/chunks/{extension-3JYWJ5K2.js → extension-CXJ6RELI.js} +12 -7
- package/dist/cli-bundle/chunks/{files-EPEJMJHQ.js → files-MBNICQFM.js} +9 -11
- package/dist/cli-bundle/chunks/{files-EPEJMJHQ.js.map → files-MBNICQFM.js.map} +1 -1
- package/dist/cli-bundle/chunks/{files-5BQWDRDT.js → files-NQHEXUZD.js} +11 -13
- package/dist/cli-bundle/chunks/{files-5BQWDRDT.js.map → files-NQHEXUZD.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-RWGKD76E.js → focus-DWYIG7GU.js} +10 -14
- package/dist/cli-bundle/chunks/{focus-RWGKD76E.js.map → focus-DWYIG7GU.js.map} +1 -1
- package/dist/cli-bundle/chunks/{focus-DQVJAPOE.js → focus-XZW5423D.js} +8 -12
- package/dist/cli-bundle/chunks/{focus-DQVJAPOE.js.map → focus-XZW5423D.js.map} +1 -1
- package/dist/cli-bundle/chunks/{gc-BEJMQT64.js → gc-7GQYOS2G.js} +3 -3
- package/dist/cli-bundle/chunks/{gc-JEFQDJPA.js → gc-LPVMKJQJ.js} +3 -3
- package/dist/cli-bundle/chunks/{get-LQG6PEVG.js → get-A7MAOHCU.js} +10 -13
- package/dist/cli-bundle/chunks/{get-LQG6PEVG.js.map → get-A7MAOHCU.js.map} +1 -1
- package/dist/cli-bundle/chunks/{get-WVN75H42.js → get-DSDEKJ3L.js} +12 -15
- package/dist/cli-bundle/chunks/{get-WVN75H42.js.map → get-DSDEKJ3L.js.map} +1 -1
- package/dist/cli-bundle/chunks/{health-JJJOY7DJ.js → health-3IPFLKXB.js} +17 -17
- package/dist/cli-bundle/chunks/{health-P67NZ6TT.js → health-GZXGBZ36.js} +17 -17
- package/dist/cli-bundle/chunks/{history-RUKPKNY7.js → history-NERDJNUB.js} +8 -10
- package/dist/cli-bundle/chunks/history-WSZHY3PN.js +18 -0
- package/dist/cli-bundle/chunks/{history-compact-NQ7VPRVT.js → history-compact-2WRZ2WK4.js} +11 -14
- package/dist/cli-bundle/chunks/{history-compact-NQ7VPRVT.js.map → history-compact-2WRZ2WK4.js.map} +1 -1
- package/dist/cli-bundle/chunks/{history-compact-ZAOWR7GD.js → history-compact-HR7BB4LR.js} +13 -16
- package/dist/cli-bundle/chunks/{history-compact-ZAOWR7GD.js.map → history-compact-HR7BB4LR.js.map} +1 -1
- package/dist/cli-bundle/chunks/history-redact-MP6CH7U5.js +19 -0
- package/dist/cli-bundle/chunks/{history-redact-YY4XYVEP.js → history-redact-O3NBCNWC.js} +9 -11
- package/dist/cli-bundle/chunks/{history-repair-EHL4ODQY.js → history-repair-LCMOS45X.js} +11 -14
- package/dist/cli-bundle/chunks/{history-repair-EHL4ODQY.js.map → history-repair-LCMOS45X.js.map} +1 -1
- package/dist/cli-bundle/chunks/{history-repair-YSQH6SY6.js → history-repair-XA3LC4GA.js} +13 -16
- package/dist/cli-bundle/chunks/{history-repair-YSQH6SY6.js.map → history-repair-XA3LC4GA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{init-HBFGYS66.js → init-64XDLQJB.js} +12 -11
- package/dist/cli-bundle/chunks/init-PAX32BJA.js +22 -0
- package/dist/cli-bundle/chunks/{learnings-KFQO7GEZ.js → learnings-JR6MA5TI.js} +9 -11
- package/dist/cli-bundle/chunks/{learnings-KFQO7GEZ.js.map → learnings-JR6MA5TI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{learnings-J555ZFPD.js → learnings-LPKCSJX7.js} +11 -13
- package/dist/cli-bundle/chunks/{learnings-J555ZFPD.js.map → learnings-LPKCSJX7.js.map} +1 -1
- package/dist/cli-bundle/chunks/{list-C7R33MD5.js → list-DNBJVO3E.js} +10 -10
- package/dist/cli-bundle/chunks/{list-DSN6UNFB.js → list-G5Y65VF6.js} +10 -10
- package/dist/cli-bundle/chunks/next-BCERKDUR.js +277 -0
- package/dist/cli-bundle/chunks/next-BCERKDUR.js.map +7 -0
- package/dist/cli-bundle/chunks/next-FYTQF6HG.js +274 -0
- package/dist/cli-bundle/chunks/next-FYTQF6HG.js.map +1 -0
- package/dist/cli-bundle/chunks/{notes-V4VNIQL4.js → notes-2BMU3VVQ.js} +9 -11
- package/dist/cli-bundle/chunks/{notes-V4VNIQL4.js.map → notes-2BMU3VVQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{notes-VYJFN2A3.js → notes-6KTGO2OJ.js} +11 -13
- package/dist/cli-bundle/chunks/{notes-VYJFN2A3.js.map → notes-6KTGO2OJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{plan-RBHQ5PO7.js → plan-4WXEQCTN.js} +15 -18
- package/dist/cli-bundle/chunks/{plan-RBHQ5PO7.js.map → plan-4WXEQCTN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{plan-DHRSVSHR.js → plan-RKZHQVXR.js} +17 -20
- package/dist/cli-bundle/chunks/{plan-DHRSVSHR.js.map → plan-RKZHQVXR.js.map} +1 -1
- package/dist/cli-bundle/chunks/profile-4OMM32CD.js +1235 -0
- package/dist/cli-bundle/chunks/profile-4OMM32CD.js.map +7 -0
- package/dist/cli-bundle/chunks/profile-QLER5ENE.js +1197 -0
- package/dist/cli-bundle/chunks/profile-QLER5ENE.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-OM3E2KMY.js → register-list-query-7LV46VAU.js} +45 -21
- package/dist/cli-bundle/chunks/register-list-query-7LV46VAU.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-CCMHGZTF.js → register-list-query-SNG5PGA4.js} +44 -20
- package/dist/cli-bundle/chunks/register-list-query-SNG5PGA4.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-N3CDEGZU.js → register-mutation-ENNDUAZG.js} +106 -40
- package/dist/cli-bundle/chunks/register-mutation-ENNDUAZG.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-UXTTWL6N.js → register-mutation-KK7PHYYU.js} +105 -39
- package/dist/cli-bundle/chunks/register-mutation-KK7PHYYU.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-operations-UDIFMQKD.js → register-operations-C6OWLDSH.js} +32 -34
- package/dist/cli-bundle/chunks/{register-operations-UDIFMQKD.js.map → register-operations-C6OWLDSH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-R2FLOCRI.js → register-operations-HZ6XERQG.js} +30 -32
- package/dist/cli-bundle/chunks/{register-operations-R2FLOCRI.js.map → register-operations-HZ6XERQG.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-G5LTSFYK.js → register-setup-P67EMBDJ.js} +68 -25
- package/dist/cli-bundle/chunks/register-setup-P67EMBDJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-setup-TWHKICM2.js → register-setup-ZKJ53RS7.js} +67 -24
- package/dist/cli-bundle/chunks/register-setup-ZKJ53RS7.js.map +7 -0
- package/dist/cli-bundle/chunks/{restore-LL2WLEDG.js → restore-4MHZFJ2E.js} +9 -11
- package/dist/cli-bundle/chunks/restore-YALDGTQR.js +17 -0
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-M4H2ZI64.js → scheduling-shortcuts-LB6DOLRL.js} +14 -16
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-M4H2ZI64.js.map → scheduling-shortcuts-LB6DOLRL.js.map} +1 -1
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-255GI3BU.js → scheduling-shortcuts-UTOYKLXQ.js} +12 -14
- package/dist/cli-bundle/chunks/{scheduling-shortcuts-255GI3BU.js.map → scheduling-shortcuts-UTOYKLXQ.js.map} +1 -1
- package/dist/cli-bundle/chunks/schema-73HR2OJW.js +75 -0
- package/dist/cli-bundle/chunks/schema-U6LJKSIR.js +71 -0
- package/dist/cli-bundle/chunks/{search-2EI6EAXH.js → search-AXPXKZER.js} +10 -12
- package/dist/cli-bundle/chunks/{search-QBFBLQRO.js → search-KILGT37L.js} +10 -12
- package/dist/cli-bundle/chunks/{stats-TKC6CAKB.js → stats-PSYVVTNZ.js} +21 -13
- package/dist/cli-bundle/chunks/stats-PSYVVTNZ.js.map +1 -0
- package/dist/cli-bundle/chunks/{stats-TCW2SZQG.js → stats-W5KNVJWQ.js} +20 -12
- package/dist/cli-bundle/chunks/stats-W5KNVJWQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{telemetry-BT2VSWU2.js → telemetry-BZUF6H7G.js} +4 -4
- package/dist/cli-bundle/chunks/{telemetry-LQ6FRTUT.js → telemetry-GAHHQTOS.js} +4 -4
- package/dist/cli-bundle/chunks/test-ACD52Z3S.js +35 -0
- package/dist/cli-bundle/chunks/test-ACD52Z3S.js.map +7 -0
- package/dist/cli-bundle/chunks/{test-NV2DRPUS.js → test-PWDIZ255.js} +15 -16
- package/dist/cli-bundle/chunks/test-PWDIZ255.js.map +1 -0
- package/dist/cli-bundle/chunks/{test-all-DZ76VTPQ.js → test-all-L2MDDUCA.js} +20 -22
- package/dist/cli-bundle/chunks/{test-all-DZ76VTPQ.js.map → test-all-L2MDDUCA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-all-REW67LXT.js → test-all-RBZ6DLU2.js} +18 -20
- package/dist/cli-bundle/chunks/{test-all-REW67LXT.js.map → test-all-RBZ6DLU2.js.map} +1 -1
- package/dist/cli-bundle/chunks/{test-runs-PX73DMMI.js → test-runs-PLRAZEFW.js} +5 -6
- package/dist/cli-bundle/chunks/test-runs-PLRAZEFW.js.map +7 -0
- package/dist/cli-bundle/chunks/{test-runs-FQ5WNQLP.js → test-runs-UXIXPDKU.js} +6 -7
- package/dist/cli-bundle/chunks/test-runs-UXIXPDKU.js.map +1 -0
- package/dist/cli-bundle/chunks/update-AMRSOIWP.js +24 -0
- package/dist/cli-bundle/chunks/update-AMRSOIWP.js.map +7 -0
- package/dist/cli-bundle/chunks/update-KFX2SIAC.js +28 -0
- package/dist/cli-bundle/chunks/update-KFX2SIAC.js.map +1 -0
- package/dist/cli-bundle/chunks/{update-many-Q5ZEI64S.js → update-many-RNSBX2TA.js} +35 -36
- package/dist/cli-bundle/chunks/{update-many-Q5ZEI64S.js.map → update-many-RNSBX2TA.js.map} +1 -1
- package/dist/cli-bundle/chunks/{update-many-2ILP6E4Y.js → update-many-Z5GJS5LC.js} +33 -34
- package/dist/cli-bundle/chunks/{update-many-2ILP6E4Y.js.map → update-many-Z5GJS5LC.js.map} +1 -1
- package/dist/cli-bundle/chunks/{upgrade-FOZKQTQF.js → upgrade-BRL6KCOJ.js} +13 -8
- package/dist/cli-bundle/chunks/{upgrade-FOZKQTQF.js.map → upgrade-BRL6KCOJ.js.map} +1 -1
- package/dist/cli-bundle/chunks/{upgrade-DHL74PQH.js → upgrade-HAK6JG2O.js} +11 -6
- package/dist/cli-bundle/chunks/{upgrade-DHL74PQH.js.map → upgrade-HAK6JG2O.js.map} +1 -1
- package/dist/cli-bundle/chunks/{validate-HYZNIB6W.js → validate-MTUVL5VC.js} +38 -28
- package/dist/cli-bundle/chunks/validate-MTUVL5VC.js.map +7 -0
- package/dist/cli-bundle/chunks/{validate-54SYJ7QW.js → validate-X5W76YJL.js} +39 -29
- package/dist/cli-bundle/chunks/validate-X5W76YJL.js.map +1 -0
- package/dist/cli-bundle/main.js +95 -724
- package/dist/cli-bundle/main.js.map +4 -4
- package/dist/core/config/positional-value.d.ts +2 -0
- package/dist/core/config/positional-value.js +2 -2
- package/dist/core/config/positional-value.js.map +1 -1
- package/dist/core/extensions/activation-summary-markdown.d.ts +71 -0
- package/dist/core/extensions/activation-summary-markdown.js +151 -0
- package/dist/core/extensions/activation-summary-markdown.js.map +1 -0
- package/dist/core/extensions/activation-summary.d.ts +2 -0
- package/dist/core/extensions/activation-summary.js +3 -2
- package/dist/core/extensions/activation-summary.js.map +1 -1
- package/dist/core/extensions/capability-usage.d.ts +1 -1
- package/dist/core/extensions/capability-usage.js +4 -3
- package/dist/core/extensions/capability-usage.js.map +1 -1
- package/dist/core/extensions/extension-policy.d.ts +18 -3
- package/dist/core/extensions/extension-policy.js +116 -106
- package/dist/core/extensions/extension-policy.js.map +1 -1
- package/dist/core/extensions/extension-registries.js +3 -2
- package/dist/core/extensions/extension-registries.js.map +1 -1
- package/dist/core/extensions/extension-types.d.ts +21 -1
- package/dist/core/extensions/extension-types.js +3 -2
- package/dist/core/extensions/extension-types.js.map +1 -1
- package/dist/core/extensions/loader.js +439 -232
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/fs/fs-utils.js +27 -2
- package/dist/core/fs/fs-utils.js.map +1 -1
- package/dist/core/item/actionability.d.ts +57 -0
- package/dist/core/item/actionability.js +178 -0
- package/dist/core/item/actionability.js.map +1 -0
- package/dist/core/item/item-format.js +523 -410
- package/dist/core/item/item-format.js.map +1 -1
- package/dist/core/item/type-registry.js +18 -45
- package/dist/core/item/type-registry.js.map +1 -1
- package/dist/core/profile/profile-describe.d.ts +64 -0
- package/dist/core/profile/profile-describe.js +83 -0
- package/dist/core/profile/profile-describe.js.map +1 -0
- package/dist/core/profile/profile-lint.d.ts +53 -0
- package/dist/core/profile/profile-lint.js +422 -0
- package/dist/core/profile/profile-lint.js.map +1 -0
- package/dist/core/profile/profile-plan.d.ts +145 -0
- package/dist/core/profile/profile-plan.js +0 -0
- package/dist/core/profile/profile-plan.js.map +1 -0
- package/dist/core/profile/profile-presets.d.ts +218 -0
- package/dist/core/profile/profile-presets.js +325 -0
- package/dist/core/profile/profile-presets.js.map +1 -0
- package/dist/core/schema/fields-file.js +25 -25
- package/dist/core/schema/fields-file.js.map +1 -1
- package/dist/core/schema/item-types-file.js +3 -3
- package/dist/core/schema/item-types-file.js.map +1 -1
- package/dist/core/schema/runtime-schema.js +4 -4
- package/dist/core/schema/runtime-schema.js.map +1 -1
- package/dist/core/schema/status-defs-file.js +3 -3
- package/dist/core/schema/status-defs-file.js.map +1 -1
- package/dist/core/shared/serialization.js +83 -62
- package/dist/core/shared/serialization.js.map +1 -1
- package/dist/core/store/item-store.d.ts +1 -0
- package/dist/core/store/item-store.js +16 -8
- package/dist/core/store/item-store.js.map +1 -1
- package/dist/core/store/paths.js +4 -32
- package/dist/core/store/paths.js.map +1 -1
- package/dist/core/store/settings.js +14 -14
- package/dist/core/store/settings.js.map +1 -1
- package/dist/core/telemetry/observability.js +50 -54
- package/dist/core/telemetry/observability.js.map +1 -1
- package/dist/core/telemetry/runtime.js +11 -2
- package/dist/core/telemetry/runtime.js.map +1 -1
- package/dist/core/test/background-runs.js +3 -2
- package/dist/core/test/background-runs.js.map +1 -1
- package/dist/core/validate/linked-artifact-reference.d.ts +24 -0
- package/dist/core/validate/linked-artifact-reference.js +41 -0
- package/dist/core/validate/linked-artifact-reference.js.map +1 -0
- package/dist/mcp/server.js +540 -420
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-definitions.js +33 -2
- package/dist/mcp/tool-definitions.js.map +1 -1
- package/dist/sdk/cli-contracts/commander-types.d.ts +1 -0
- package/dist/sdk/cli-contracts/commander-types.js +15 -2
- package/dist/sdk/cli-contracts/commander-types.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +3 -3
- package/dist/sdk/cli-contracts/enum-contracts.js +6 -2
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +149 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +1514 -0
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -0
- package/dist/sdk/cli-contracts/string-lists.d.ts +14 -0
- package/dist/sdk/cli-contracts/string-lists.js +20 -0
- package/dist/sdk/cli-contracts/string-lists.js.map +1 -0
- package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +51 -109
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +17 -0
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +54 -5
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.d.ts +74 -0
- package/dist/sdk/cli-contracts/tool-schema.js +871 -0
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -0
- package/dist/sdk/cli-contracts.d.ts +13 -193
- package/dist/sdk/cli-contracts.js +5 -2277
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/compose.d.ts +11 -5
- package/dist/sdk/compose.js +240 -124
- package/dist/sdk/compose.js.map +1 -1
- package/dist/sdk/define.d.ts +14 -0
- package/dist/sdk/define.js +17 -2
- package/dist/sdk/define.js.map +1 -1
- package/dist/sdk/index.d.ts +14 -3
- package/dist/sdk/index.js +14 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/testing.d.ts +82 -2
- package/dist/sdk/testing.js +74 -3
- package/dist/sdk/testing.js.map +1 -1
- package/docs/AGENT_GUIDE.md +2 -0
- package/docs/CLAUDE_CODE_PLUGIN.md +2 -2
- package/docs/COMMANDS.md +37 -0
- package/docs/EXTENSIONS.md +12 -13
- package/docs/RELEASING.md +8 -4
- package/docs/SDK.md +184 -17
- package/docs/TESTING.md +12 -0
- package/docs/examples/policy-restricted-extension/README.md +6 -0
- package/docs/examples/policy-restricted-extension/index.ts +40 -0
- package/docs/examples/policy-restricted-extension/manifest.json +2 -2
- package/docs/examples/starter-extension/README.md +14 -2
- package/docs/examples/starter-extension/{index.js → index.ts} +51 -6
- package/docs/examples/starter-extension/manifest.json +2 -2
- package/package.json +20 -7
- package/packages/pm-beads/extensions/beads/index.ts +3 -3
- package/packages/pm-beads/extensions/beads/manifest.json +2 -2
- package/packages/pm-beads/extensions/beads/runtime-loader.ts +19 -7
- package/packages/pm-beads/extensions/beads/runtime.ts +155 -37
- package/packages/pm-calendar/extensions/calendar/index.ts +3 -3
- package/packages/pm-calendar/extensions/calendar/manifest.json +2 -2
- package/packages/pm-calendar/extensions/calendar/runtime.ts +2 -2
- package/packages/pm-command-kit/extensions/command-kit/index.ts +1 -1
- package/packages/pm-command-kit/extensions/command-kit/manifest.json +2 -2
- package/packages/pm-governance-audit/extensions/governance-audit/index.ts +2 -2
- package/packages/pm-governance-audit/extensions/governance-audit/manifest.json +2 -2
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.ts +1 -1
- package/packages/pm-guide-shell/extensions/guide-shell/index.ts +2 -2
- package/packages/pm-guide-shell/extensions/guide-shell/manifest.json +2 -2
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.ts +1 -1
- package/packages/pm-kanban/README.md +97 -0
- package/packages/pm-kanban/extensions/kanban/index.ts +191 -0
- package/packages/pm-kanban/extensions/kanban/manifest.json +19 -0
- package/packages/pm-kanban/package.json +57 -0
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/index.ts +1 -1
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/manifest.json +2 -2
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.ts +2 -2
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/manifest.json +2 -2
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.ts +1 -1
- package/packages/pm-search-advanced/extensions/search-advanced/index.ts +2 -2
- package/packages/pm-search-advanced/extensions/search-advanced/manifest.json +2 -2
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.ts +1 -1
- package/packages/pm-templates/extensions/templates/index.ts +2 -2
- package/packages/pm-templates/extensions/templates/manifest.json +2 -2
- package/packages/pm-templates/extensions/templates/runtime.ts +1 -1
- package/packages/pm-todos/extensions/todos/index.ts +3 -3
- package/packages/pm-todos/extensions/todos/manifest.json +2 -2
- package/packages/pm-todos/extensions/todos/runtime-loader.ts +19 -7
- package/packages/pm-todos/extensions/todos/runtime.ts +177 -43
- package/plugins/pm-claude/scripts/pm-mcp-server.mjs +2 -2
- package/plugins/pm-codex/scripts/pm-mcp-server.mjs +2 -2
- package/scripts/bundle-cli.mjs +1 -1
- package/dist/cli-bundle/chunks/activity-54TXGJ2T.js +0 -18
- package/dist/cli-bundle/chunks/aggregate-63NWNIBR.js.map +0 -1
- package/dist/cli-bundle/chunks/aggregate-YHCYX2EV.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6EL7SW5C.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6W3Y65PL.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-AEACLRVH.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-B74BP6IS.js +0 -78
- package/dist/cli-bundle/chunks/chunk-B74BP6IS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-BFFO3AIB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-C4C3EJCJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-EYPINTFR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FBLT6WGK.js +0 -75
- package/dist/cli-bundle/chunks/chunk-FBLT6WGK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GQYJEEFX.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-HBAEFWX3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HC2S36NB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-IAP5KYBQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-INPHFO33.js +0 -764
- package/dist/cli-bundle/chunks/chunk-INPHFO33.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-IOT6WRL5.js +0 -86
- package/dist/cli-bundle/chunks/chunk-IOT6WRL5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-ISEKN64V.js +0 -35
- package/dist/cli-bundle/chunks/chunk-ISEKN64V.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-J3NMWFIN.js +0 -115
- package/dist/cli-bundle/chunks/chunk-J3NMWFIN.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-J7I4C5ZB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-JKL6HRMV.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-KJZOSF7J.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-L7UXKP2I.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-LNEDHJNQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-M6TUBOGW.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-MEXZ5XUM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-N5B6WZC5.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-NJ73ALW2.js +0 -761
- package/dist/cli-bundle/chunks/chunk-NJ73ALW2.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-NVXGVEFD.js +0 -83
- package/dist/cli-bundle/chunks/chunk-NVXGVEFD.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-OF7V47P3.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-OHDQNKJB.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-PEL2NLQE.js +0 -118
- package/dist/cli-bundle/chunks/chunk-PEL2NLQE.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-PRVTGX64.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-RAWA3Y7O.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-SMXSDY7J.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SUREE24M.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-TKPP4GOO.js +0 -654
- package/dist/cli-bundle/chunks/chunk-TKPP4GOO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-VSAABFGQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-W2VMLL5S.js +0 -32
- package/dist/cli-bundle/chunks/chunk-W2VMLL5S.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-XVYKWZNL.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-XXKV4UWE.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-ZLWRPBOW.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ZV7IQ23N.js +0 -657
- package/dist/cli-bundle/chunks/chunk-ZV7IQ23N.js.map +0 -7
- package/dist/cli-bundle/chunks/close-JEBZXONN.js +0 -15
- package/dist/cli-bundle/chunks/config-NCNNWF6R.js.map +0 -7
- package/dist/cli-bundle/chunks/config-SW3U7XP2.js.map +0 -1
- package/dist/cli-bundle/chunks/context-55VEOYI3.js.map +0 -1
- package/dist/cli-bundle/chunks/context-5LB7UGKE.js.map +0 -7
- package/dist/cli-bundle/chunks/contracts-JXFGBOYT.js.map +0 -1
- package/dist/cli-bundle/chunks/contracts-SY6PDFIK.js.map +0 -7
- package/dist/cli-bundle/chunks/create-CLSCHGJJ.js +0 -30
- package/dist/cli-bundle/chunks/history-ALTM2RRP.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-5YGLWUDH.js +0 -21
- package/dist/cli-bundle/chunks/init-C4CRHW22.js +0 -21
- package/dist/cli-bundle/chunks/register-list-query-CCMHGZTF.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-OM3E2KMY.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-N3CDEGZU.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-UXTTWL6N.js.map +0 -7
- package/dist/cli-bundle/chunks/register-setup-G5LTSFYK.js.map +0 -1
- package/dist/cli-bundle/chunks/register-setup-TWHKICM2.js.map +0 -7
- package/dist/cli-bundle/chunks/restore-LQHXBAY5.js +0 -19
- package/dist/cli-bundle/chunks/schema-C6QA367T.js.map +0 -7
- package/dist/cli-bundle/chunks/schema-QO5I4FBL.js.map +0 -1
- package/dist/cli-bundle/chunks/stats-TCW2SZQG.js.map +0 -7
- package/dist/cli-bundle/chunks/stats-TKC6CAKB.js.map +0 -1
- package/dist/cli-bundle/chunks/test-WA6RZGM2.js +0 -36
- package/dist/cli-bundle/chunks/test-runs-FQ5WNQLP.js.map +0 -1
- package/dist/cli-bundle/chunks/test-runs-PX73DMMI.js.map +0 -7
- package/dist/cli-bundle/chunks/update-BSKMQOYH.js +0 -28
- package/dist/cli-bundle/chunks/update-FIGYNQ2I.js +0 -24
- package/dist/cli-bundle/chunks/validate-54SYJ7QW.js.map +0 -1
- package/dist/cli-bundle/chunks/validate-HYZNIB6W.js.map +0 -7
- package/docs/examples/policy-restricted-extension/index.js +0 -21
- package/packages/pm-beads/extensions/beads/index.js +0 -64
- package/packages/pm-beads/extensions/beads/runtime-loader.js +0 -86
- package/packages/pm-beads/extensions/beads/runtime.js +0 -482
- package/packages/pm-calendar/extensions/calendar/index.js +0 -150
- package/packages/pm-calendar/extensions/calendar/runtime.js +0 -126
- package/packages/pm-command-kit/extensions/command-kit/index.js +0 -181
- package/packages/pm-governance-audit/extensions/governance-audit/index.js +0 -177
- package/packages/pm-governance-audit/extensions/governance-audit/runtime.js +0 -153
- package/packages/pm-guide-shell/extensions/guide-shell/index.js +0 -98
- package/packages/pm-guide-shell/extensions/guide-shell/runtime.js +0 -294
- package/packages/pm-lifecycle-hooks/extensions/lifecycle-hooks/index.js +0 -18
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/index.js +0 -124
- package/packages/pm-linked-test-adapters/extensions/linked-test-adapters/runtime.js +0 -110
- package/packages/pm-search-advanced/extensions/search-advanced/index.js +0 -258
- package/packages/pm-search-advanced/extensions/search-advanced/runtime.js +0 -361
- package/packages/pm-templates/extensions/templates/index.js +0 -132
- package/packages/pm-templates/extensions/templates/runtime.js +0 -35
- package/packages/pm-todos/extensions/todos/index.js +0 -81
- package/packages/pm-todos/extensions/todos/runtime-loader.js +0 -86
- package/packages/pm-todos/extensions/todos/runtime.js +0 -545
- /package/dist/cli-bundle/chunks/{activity-54TXGJ2T.js.map → activity-AW6XVFH6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{activity-N7RVTLBQ.js.map → activity-DBLQVIP6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F32L4HR6.js.map → chunk-27BXPBAY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5BBEWX6C.js.map → chunk-3VGN2UWE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FMWW2JDU.js.map → chunk-AXIDKKAT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TIM4OD74.js.map → chunk-BDTISOSD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CZIFFMZI.js.map → chunk-DDPTYJIM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AYPQUFCX.js.map → chunk-EJUDVUYZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-EOGBMLCE.js.map → chunk-EVMTBV6V.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CG3KP6I5.js.map → chunk-G7I7DEZA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-F4BNR2IN.js.map → chunk-HYTGA6GI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2WCYE3IF.js.map → chunk-HZZEHPRG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YV2OSAMS.js.map → chunk-IJYK2T43.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QOUOMPHO.js.map → chunk-JPECA746.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OQ2E64FH.js.map → chunk-KNPEF7QG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3BKH2CL3.js.map → chunk-L5OEFZQG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5S4ZGDB2.js.map → chunk-N74UMG5H.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IXAZI443.js.map → chunk-NFDPYAIP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-SKC4UTRP.js.map → chunk-NKZAN7BD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JPJDP4VU.js.map → chunk-NWMZWYYB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KKX4Z2SE.js.map → chunk-OTUHB4HS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WB5BYQMF.js.map → chunk-SLMUGTK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I6QMJ2XT.js.map → chunk-WYDHYJPO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KIEAK7YE.js.map → chunk-ZRP4VG5U.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-JEBZXONN.js.map → close-E6ZZGCJY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-QHMVWM7M.js.map → close-TQYAAFJP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-O4VONGPG.js.map → context-B6275WPX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-CLSCHGJJ.js.map → context-OCZ3FJ4Z.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-YQF4CPIR.js.map → create-OH3BDGBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{extension-3JYWJ5K2.js.map → create-RLRJMRTM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-ALTM2RRP.js.map → extension-CPSLJQVE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-RUKPKNY7.js.map → extension-CXJ6RELI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-BEJMQT64.js.map → gc-7GQYOS2G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{gc-JEFQDJPA.js.map → gc-LPVMKJQJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-JJJOY7DJ.js.map → health-3IPFLKXB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{health-P67NZ6TT.js.map → health-GZXGBZ36.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-YY4XYVEP.js.map → history-NERDJNUB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-5YGLWUDH.js.map → history-WSZHY3PN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-C4CRHW22.js.map → history-redact-MP6CH7U5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{init-HBFGYS66.js.map → history-redact-O3NBCNWC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-C7R33MD5.js.map → init-64XDLQJB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{list-DSN6UNFB.js.map → init-PAX32BJA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-LL2WLEDG.js.map → list-DNBJVO3E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-LQHXBAY5.js.map → list-G5Y65VF6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-2EI6EAXH.js.map → restore-4MHZFJ2E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{search-QBFBLQRO.js.map → restore-YALDGTQR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-NV2DRPUS.js.map → schema-73HR2OJW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{test-WA6RZGM2.js.map → schema-U6LJKSIR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-BSKMQOYH.js.map → search-AXPXKZER.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-FIGYNQ2I.js.map → search-KILGT37L.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-BT2VSWU2.js.map → telemetry-BZUF6H7G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{telemetry-LQ6FRTUT.js.map → telemetry-GAHHQTOS.js.map} +0 -0
|
@@ -0,0 +1,871 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module sdk/cli-contracts/tool-schema
|
|
3
|
+
*
|
|
4
|
+
* MCP tool-parameter schema contracts: the per-action required/optional key sets
|
|
5
|
+
* and the lazily-built strict (action-scoped) and provider-compatible (flat)
|
|
6
|
+
* JSON Schemas served to MCP clients, the `pm contracts` command, and SDK
|
|
7
|
+
* consumers from a single source of truth.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5c1fba35-3cb1-5029-847a-047dabe7014e")}catch(e){}}();
|
|
11
|
+
import { normalizeUniqueStringList } from "./string-lists.js";
|
|
12
|
+
import { PM_TOOL_ACTIONS } from "./enum-contracts.js";
|
|
13
|
+
import { TOOL_CREATE_OPTION_CONTRACTS, TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS, TOOL_UPDATE_OPTION_CONTRACTS, TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS, TOOL_NORMALIZE_FILTER_OPTION_CONTRACTS, TOOL_CONTEXT_OPTION_CONTRACTS, TOOL_ACTIVITY_OPTION_CONTRACTS, TOOL_LIST_FILTER_OPTION_CONTRACTS, TOOL_AGGREGATE_OPTION_CONTRACTS, TOOL_DEDUPE_AUDIT_OPTION_CONTRACTS, TOOL_SEARCH_FILTER_OPTION_CONTRACTS, TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS, } from "./tool-option-contracts.js";
|
|
14
|
+
import { PM_TOOL_PARAMETER_PROPERTIES, PM_TOOL_PARAMETER_METADATA, PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA, PLAN_ACTION_PARAMETER_PROPERTIES, PLAN_ACTION_PARAMETER_METADATA, } from "./tool-parameter-tables.js";
|
|
15
|
+
import { toUniqueFlagContracts, withFlagAliasMetadata } from "./flag-contracts.js";
|
|
16
|
+
const PM_TOOL_GLOBAL_PARAMETER_KEYS = [
|
|
17
|
+
"json",
|
|
18
|
+
"quiet",
|
|
19
|
+
"profile",
|
|
20
|
+
"noExtensions",
|
|
21
|
+
"noPager",
|
|
22
|
+
"path",
|
|
23
|
+
"pmExecutable",
|
|
24
|
+
"timeoutMs",
|
|
25
|
+
];
|
|
26
|
+
const PM_TOOL_ACTION_MUTATION_PARAMETER_KEYS = {
|
|
27
|
+
create: ["fullChangedFields", "idOnly"],
|
|
28
|
+
copy: ["fullChangedFields", "idOnly"],
|
|
29
|
+
update: ["fullChangedFields", "idOnly"],
|
|
30
|
+
close: ["fullChangedFields", "idOnly"],
|
|
31
|
+
append: ["fullChangedFields"],
|
|
32
|
+
"update-many": ["fullChangedFields"],
|
|
33
|
+
"close-many": ["fullChangedFields"],
|
|
34
|
+
};
|
|
35
|
+
function toSchemaKeyList(values) {
|
|
36
|
+
return normalizeUniqueStringList(values);
|
|
37
|
+
}
|
|
38
|
+
const CREATE_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
39
|
+
...TOOL_CREATE_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
40
|
+
...TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
41
|
+
"assignee",
|
|
42
|
+
]);
|
|
43
|
+
const UPDATE_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
44
|
+
...TOOL_UPDATE_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
45
|
+
...TOOL_SHARED_CREATE_UPDATE_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
46
|
+
"force",
|
|
47
|
+
]);
|
|
48
|
+
const UPDATE_MANY_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
49
|
+
...TOOL_UPDATE_MANY_FILTER_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
50
|
+
...UPDATE_CONTRACT_PARAMETER_KEYS,
|
|
51
|
+
"dryRun",
|
|
52
|
+
"rollback",
|
|
53
|
+
"noCheckpoint",
|
|
54
|
+
]);
|
|
55
|
+
const NORMALIZE_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
56
|
+
...TOOL_NORMALIZE_FILTER_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
57
|
+
"dryRun",
|
|
58
|
+
"apply",
|
|
59
|
+
"author",
|
|
60
|
+
"message",
|
|
61
|
+
"allowAuditUpdate",
|
|
62
|
+
"force",
|
|
63
|
+
]);
|
|
64
|
+
const CLOSE_MANY_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
65
|
+
...TOOL_CLOSE_MANY_FILTER_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
66
|
+
"reason",
|
|
67
|
+
"resolution",
|
|
68
|
+
"expectedResult",
|
|
69
|
+
"actualResult",
|
|
70
|
+
"validateClose",
|
|
71
|
+
"dryRun",
|
|
72
|
+
"rollback",
|
|
73
|
+
"noCheckpoint",
|
|
74
|
+
"author",
|
|
75
|
+
"message",
|
|
76
|
+
"force",
|
|
77
|
+
]);
|
|
78
|
+
const CONTEXT_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
79
|
+
...TOOL_CONTEXT_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
80
|
+
"past",
|
|
81
|
+
"section",
|
|
82
|
+
]);
|
|
83
|
+
const ACTIVITY_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
84
|
+
...TOOL_ACTIVITY_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
85
|
+
"stream",
|
|
86
|
+
]);
|
|
87
|
+
const LIST_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
88
|
+
...TOOL_LIST_FILTER_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
89
|
+
"includeBody",
|
|
90
|
+
"noTruncate",
|
|
91
|
+
"compact",
|
|
92
|
+
"brief",
|
|
93
|
+
"full",
|
|
94
|
+
]);
|
|
95
|
+
const AGGREGATE_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
96
|
+
...TOOL_AGGREGATE_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
97
|
+
"count",
|
|
98
|
+
"completion",
|
|
99
|
+
"includeUnparented",
|
|
100
|
+
]);
|
|
101
|
+
const DEDUPE_AUDIT_CONTRACT_PARAMETER_KEYS = toSchemaKeyList(TOOL_DEDUPE_AUDIT_OPTION_CONTRACTS.map((entry) => entry.param));
|
|
102
|
+
const SEARCH_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
103
|
+
"query",
|
|
104
|
+
"keywords",
|
|
105
|
+
"mode",
|
|
106
|
+
"semantic",
|
|
107
|
+
"hybrid",
|
|
108
|
+
"includeLinked",
|
|
109
|
+
"titleExact",
|
|
110
|
+
"phraseExact",
|
|
111
|
+
"highlight",
|
|
112
|
+
"compact",
|
|
113
|
+
"full",
|
|
114
|
+
...TOOL_SEARCH_FILTER_OPTION_CONTRACTS.map((entry) => entry.param),
|
|
115
|
+
]);
|
|
116
|
+
const NEXT_CONTRACT_PARAMETER_KEYS = toSchemaKeyList([
|
|
117
|
+
"type",
|
|
118
|
+
"tag",
|
|
119
|
+
"priority",
|
|
120
|
+
"assignee",
|
|
121
|
+
"assigneeFilter",
|
|
122
|
+
"sprint",
|
|
123
|
+
"release",
|
|
124
|
+
"parent",
|
|
125
|
+
"limit",
|
|
126
|
+
"blockedLimit",
|
|
127
|
+
"readyOnly",
|
|
128
|
+
"format",
|
|
129
|
+
]);
|
|
130
|
+
const AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS = ["author", "message", "force"];
|
|
131
|
+
const PM_TOOL_ACTION_SCHEMA_CONTRACTS = {
|
|
132
|
+
init: { optional: ["prefix", "preset", "typePreset", "defaults", "author", "agentGuidance", "withPackages", "force", "verbose"] },
|
|
133
|
+
config: {
|
|
134
|
+
required: ["scope", "configAction"],
|
|
135
|
+
optional: ["key", "value", "criterion", "clearCriteria", "format", "policy"],
|
|
136
|
+
},
|
|
137
|
+
"extension-init": { required: ["target"], optional: ["scope"] },
|
|
138
|
+
"extension-install": {
|
|
139
|
+
optional: ["target", "github", "scope", "ref"],
|
|
140
|
+
anyOfRequired: [["target"], ["github"]],
|
|
141
|
+
},
|
|
142
|
+
"extension-uninstall": { required: ["target"], optional: ["scope"] },
|
|
143
|
+
"extension-explore": { optional: ["scope"] },
|
|
144
|
+
"extension-manage": { optional: ["scope", "runtimeProbe", "fixManagedState"] },
|
|
145
|
+
"extension-describe": { optional: ["target", "scope", "markdown", "output"] },
|
|
146
|
+
"extension-reload": { optional: ["scope", "watch"] },
|
|
147
|
+
"extension-doctor": { optional: ["scope", "detail", "trace", "fixManagedState", "strictExit", "failOnWarn"] },
|
|
148
|
+
"extension-catalog": { optional: ["scope", "fields"] },
|
|
149
|
+
"extension-adopt": { required: ["target"], optional: ["scope", "github", "ref"] },
|
|
150
|
+
"extension-adopt-all": { optional: ["scope"] },
|
|
151
|
+
"extension-activate": { required: ["target"], optional: ["scope"] },
|
|
152
|
+
"extension-deactivate": { required: ["target"], optional: ["scope"] },
|
|
153
|
+
extension: {
|
|
154
|
+
optional: [
|
|
155
|
+
"target",
|
|
156
|
+
"scope",
|
|
157
|
+
"github",
|
|
158
|
+
"ref",
|
|
159
|
+
"init",
|
|
160
|
+
"install",
|
|
161
|
+
"uninstall",
|
|
162
|
+
"explore",
|
|
163
|
+
"manage",
|
|
164
|
+
"describe",
|
|
165
|
+
"markdown",
|
|
166
|
+
"output",
|
|
167
|
+
"reload",
|
|
168
|
+
"doctor",
|
|
169
|
+
"catalog",
|
|
170
|
+
"adopt",
|
|
171
|
+
"adoptAll",
|
|
172
|
+
"activate",
|
|
173
|
+
"deactivate",
|
|
174
|
+
"runtimeProbe",
|
|
175
|
+
"fixManagedState",
|
|
176
|
+
"detail",
|
|
177
|
+
"trace",
|
|
178
|
+
"watch",
|
|
179
|
+
"strictExit",
|
|
180
|
+
"failOnWarn",
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
"package-init": { required: ["target"], optional: ["scope"] },
|
|
184
|
+
"package-install": {
|
|
185
|
+
optional: ["target", "github", "scope", "ref"],
|
|
186
|
+
anyOfRequired: [["target"], ["github"]],
|
|
187
|
+
},
|
|
188
|
+
"package-uninstall": { required: ["target"], optional: ["scope"] },
|
|
189
|
+
"package-explore": { optional: ["scope"] },
|
|
190
|
+
"package-manage": { optional: ["scope", "runtimeProbe", "fixManagedState"] },
|
|
191
|
+
"package-describe": { optional: ["target", "scope", "markdown", "output"] },
|
|
192
|
+
"package-reload": { optional: ["scope", "watch"] },
|
|
193
|
+
"package-doctor": { optional: ["scope", "detail", "trace", "fixManagedState", "strictExit", "failOnWarn"] },
|
|
194
|
+
"package-catalog": { optional: ["scope", "fields"] },
|
|
195
|
+
"package-adopt": { required: ["target"], optional: ["scope", "github", "ref"] },
|
|
196
|
+
"package-adopt-all": { optional: ["scope"] },
|
|
197
|
+
"package-activate": { required: ["target"], optional: ["scope"] },
|
|
198
|
+
"package-deactivate": { required: ["target"], optional: ["scope"] },
|
|
199
|
+
package: {
|
|
200
|
+
optional: [
|
|
201
|
+
"target",
|
|
202
|
+
"scope",
|
|
203
|
+
"github",
|
|
204
|
+
"ref",
|
|
205
|
+
"init",
|
|
206
|
+
"install",
|
|
207
|
+
"uninstall",
|
|
208
|
+
"explore",
|
|
209
|
+
"manage",
|
|
210
|
+
"describe",
|
|
211
|
+
"markdown",
|
|
212
|
+
"output",
|
|
213
|
+
"reload",
|
|
214
|
+
"doctor",
|
|
215
|
+
"catalog",
|
|
216
|
+
"adopt",
|
|
217
|
+
"adoptAll",
|
|
218
|
+
"activate",
|
|
219
|
+
"deactivate",
|
|
220
|
+
"runtimeProbe",
|
|
221
|
+
"fixManagedState",
|
|
222
|
+
"detail",
|
|
223
|
+
"trace",
|
|
224
|
+
"watch",
|
|
225
|
+
"strictExit",
|
|
226
|
+
"failOnWarn",
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
install: {
|
|
230
|
+
optional: ["target", "github", "scope", "ref"],
|
|
231
|
+
anyOfRequired: [["target"], ["github"]],
|
|
232
|
+
},
|
|
233
|
+
upgrade: {
|
|
234
|
+
optional: ["target", "scope", "dryRun", "cliOnly", "packagesOnly", "repair", "tag", "packageName"],
|
|
235
|
+
},
|
|
236
|
+
create: {
|
|
237
|
+
required: ["title", "description", "type", "status", "priority", "message"],
|
|
238
|
+
optional: CREATE_CONTRACT_PARAMETER_KEYS,
|
|
239
|
+
},
|
|
240
|
+
copy: { required: ["id"], optional: ["title", "author", "message"] },
|
|
241
|
+
focus: { optional: ["id", "clear"], mutuallyExclusive: [["id", "clear"]] },
|
|
242
|
+
list: { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
243
|
+
"list-all": { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
244
|
+
"list-draft": { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
245
|
+
"list-open": { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
246
|
+
"list-in-progress": { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
247
|
+
"list-blocked": { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
248
|
+
"list-closed": { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
249
|
+
"list-canceled": { optional: LIST_CONTRACT_PARAMETER_KEYS },
|
|
250
|
+
aggregate: { optional: AGGREGATE_CONTRACT_PARAMETER_KEYS },
|
|
251
|
+
"dedupe-audit": { optional: DEDUPE_AUDIT_CONTRACT_PARAMETER_KEYS },
|
|
252
|
+
guide: { optional: ["list", "format", "depth"] },
|
|
253
|
+
context: { optional: CONTEXT_CONTRACT_PARAMETER_KEYS },
|
|
254
|
+
ctx: { optional: CONTEXT_CONTRACT_PARAMETER_KEYS },
|
|
255
|
+
get: { required: ["id"], optional: ["depth", "full", "fields", "tree", "treeDepth", "format"] },
|
|
256
|
+
search: {
|
|
257
|
+
optional: SEARCH_CONTRACT_PARAMETER_KEYS,
|
|
258
|
+
anyOfRequired: [["query"], ["keywords"]],
|
|
259
|
+
},
|
|
260
|
+
next: { optional: NEXT_CONTRACT_PARAMETER_KEYS },
|
|
261
|
+
reindex: { optional: ["mode", "progress"] },
|
|
262
|
+
history: { required: ["id"], optional: ["limit", "compact", "full", "diff", "verify", "format"] },
|
|
263
|
+
"history-redact": {
|
|
264
|
+
required: ["id"],
|
|
265
|
+
optional: ["literal", "regex", "replacement", "dryRun", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS],
|
|
266
|
+
anyOfRequired: [["literal"], ["regex"]],
|
|
267
|
+
},
|
|
268
|
+
"history-repair": {
|
|
269
|
+
// Exactly one of `id` (single stream) or `all` (bulk drift repair) is required.
|
|
270
|
+
optional: ["id", "all", "dryRun", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS],
|
|
271
|
+
oneOfRequired: [["id"], ["all"]],
|
|
272
|
+
},
|
|
273
|
+
"history-compact": {
|
|
274
|
+
// Single-id mode (`id` + optional `before`) or bulk mode (any of `ids` /
|
|
275
|
+
// `allOver` / `closed` / `allStreams`, with optional `minEntries`). Scan
|
|
276
|
+
// selectors (`allOver` + `closed`/`allStreams`) legitimately combine, so the
|
|
277
|
+
// mode/exclusivity contract is enforced at runtime by assertHistoryCompactTarget
|
|
278
|
+
// rather than a one-of schema rule.
|
|
279
|
+
optional: ["id", "before", "ids", "allOver", "closed", "allStreams", "minEntries", "dryRun", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS],
|
|
280
|
+
},
|
|
281
|
+
schema: {
|
|
282
|
+
required: ["subcommand"],
|
|
283
|
+
// No --message: schema mutations write config files, not item history.
|
|
284
|
+
optional: [
|
|
285
|
+
"name",
|
|
286
|
+
"description",
|
|
287
|
+
"defaultStatus",
|
|
288
|
+
"folder",
|
|
289
|
+
"alias",
|
|
290
|
+
"role",
|
|
291
|
+
"order",
|
|
292
|
+
"fieldType",
|
|
293
|
+
"commands",
|
|
294
|
+
"cliFlag",
|
|
295
|
+
"required",
|
|
296
|
+
"requiredOnCreate",
|
|
297
|
+
"allowUnset",
|
|
298
|
+
"requiredTypes",
|
|
299
|
+
"typePreset",
|
|
300
|
+
"infer",
|
|
301
|
+
"minCount",
|
|
302
|
+
"apply",
|
|
303
|
+
"author",
|
|
304
|
+
"force",
|
|
305
|
+
],
|
|
306
|
+
conditionalRequired: [
|
|
307
|
+
{ property: "subcommand", value: "show", required: ["name"] },
|
|
308
|
+
{ property: "subcommand", value: "show-status", required: ["name"] },
|
|
309
|
+
{ property: "subcommand", value: "add-type", required: ["name"] },
|
|
310
|
+
{ property: "subcommand", value: "remove-type", required: ["name"] },
|
|
311
|
+
// show-status/add-status/remove-status pass the status id as `name`.
|
|
312
|
+
{ property: "subcommand", value: "add-status", required: ["name"] },
|
|
313
|
+
{ property: "subcommand", value: "remove-status", required: ["name"] },
|
|
314
|
+
// field subcommands pass the field key as `name`.
|
|
315
|
+
{ property: "subcommand", value: "add-field", required: ["name"] },
|
|
316
|
+
{ property: "subcommand", value: "remove-field", required: ["name"] },
|
|
317
|
+
{ property: "subcommand", value: "show-field", required: ["name"] },
|
|
318
|
+
// apply-preset passes the preset name as `typePreset`.
|
|
319
|
+
{ property: "subcommand", value: "apply-preset", required: ["typePreset"] },
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
profile: {
|
|
323
|
+
required: ["subcommand"],
|
|
324
|
+
// No --message: profile staging writes config/schema files, not item history.
|
|
325
|
+
optional: ["name", "dryRun", "author", "force"],
|
|
326
|
+
conditionalRequired: [
|
|
327
|
+
{ property: "subcommand", value: "show", required: ["name"] },
|
|
328
|
+
{ property: "subcommand", value: "apply", required: ["name"] },
|
|
329
|
+
{ property: "subcommand", value: "lint", required: ["name"] },
|
|
330
|
+
],
|
|
331
|
+
},
|
|
332
|
+
plan: {
|
|
333
|
+
required: ["subcommand"],
|
|
334
|
+
optional: [
|
|
335
|
+
"id",
|
|
336
|
+
"stepRef",
|
|
337
|
+
"reorderTo",
|
|
338
|
+
"title",
|
|
339
|
+
"description",
|
|
340
|
+
"scope",
|
|
341
|
+
"parent",
|
|
342
|
+
"related",
|
|
343
|
+
"blocks",
|
|
344
|
+
"blockedBy",
|
|
345
|
+
"harness",
|
|
346
|
+
"mode",
|
|
347
|
+
"resumeContext",
|
|
348
|
+
"tags",
|
|
349
|
+
"priority",
|
|
350
|
+
"body",
|
|
351
|
+
"claim",
|
|
352
|
+
"fromSearch",
|
|
353
|
+
"stepTitle",
|
|
354
|
+
"step",
|
|
355
|
+
"stepBody",
|
|
356
|
+
"stepOwner",
|
|
357
|
+
"stepStatus",
|
|
358
|
+
"stepEvidence",
|
|
359
|
+
"stepBlockedReason",
|
|
360
|
+
"stepReplacement",
|
|
361
|
+
"dependsOn",
|
|
362
|
+
"link",
|
|
363
|
+
"linkKind",
|
|
364
|
+
"linkNote",
|
|
365
|
+
"promoteToItemDep",
|
|
366
|
+
"allowMultipleActive",
|
|
367
|
+
"file",
|
|
368
|
+
"test",
|
|
369
|
+
"doc",
|
|
370
|
+
"decisionText",
|
|
371
|
+
"decision",
|
|
372
|
+
"decisionRationale",
|
|
373
|
+
"decisionEvidence",
|
|
374
|
+
"discoveryText",
|
|
375
|
+
"discovery",
|
|
376
|
+
"validationText",
|
|
377
|
+
"validation",
|
|
378
|
+
"validationCommand",
|
|
379
|
+
"validationExpected",
|
|
380
|
+
"depth",
|
|
381
|
+
"fields",
|
|
382
|
+
"steps",
|
|
383
|
+
"materializeType",
|
|
384
|
+
"materializeParent",
|
|
385
|
+
"materializeTags",
|
|
386
|
+
...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS,
|
|
387
|
+
],
|
|
388
|
+
},
|
|
389
|
+
activity: { optional: ACTIVITY_CONTRACT_PARAMETER_KEYS },
|
|
390
|
+
restore: { required: ["id", "target"], optional: AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS },
|
|
391
|
+
update: { required: ["id"], optional: UPDATE_CONTRACT_PARAMETER_KEYS },
|
|
392
|
+
"update-many": { optional: UPDATE_MANY_CONTRACT_PARAMETER_KEYS },
|
|
393
|
+
normalize: { optional: NORMALIZE_CONTRACT_PARAMETER_KEYS },
|
|
394
|
+
close: {
|
|
395
|
+
required: ["id"],
|
|
396
|
+
optional: [
|
|
397
|
+
"text",
|
|
398
|
+
"reason",
|
|
399
|
+
"closeReason",
|
|
400
|
+
"duplicateOf",
|
|
401
|
+
"validateClose",
|
|
402
|
+
"resolution",
|
|
403
|
+
"expectedResult",
|
|
404
|
+
"actualResult",
|
|
405
|
+
...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS,
|
|
406
|
+
],
|
|
407
|
+
},
|
|
408
|
+
"close-many": { optional: CLOSE_MANY_CONTRACT_PARAMETER_KEYS },
|
|
409
|
+
delete: { required: ["id"], optional: ["dryRun", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS] },
|
|
410
|
+
append: { required: ["id", "body"], optional: AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS },
|
|
411
|
+
comments: {
|
|
412
|
+
required: ["id"],
|
|
413
|
+
optional: ["text", "add", "stdin", "file", "edit", "delete", "limit", "allowAuditComment", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS],
|
|
414
|
+
},
|
|
415
|
+
"comments-audit": {
|
|
416
|
+
optional: [
|
|
417
|
+
"status",
|
|
418
|
+
"type",
|
|
419
|
+
"assignee",
|
|
420
|
+
"assigneeFilter",
|
|
421
|
+
"parent",
|
|
422
|
+
"tag",
|
|
423
|
+
"sprint",
|
|
424
|
+
"release",
|
|
425
|
+
"priority",
|
|
426
|
+
"limitItems",
|
|
427
|
+
"limit",
|
|
428
|
+
"fullHistory",
|
|
429
|
+
"latest",
|
|
430
|
+
],
|
|
431
|
+
},
|
|
432
|
+
notes: {
|
|
433
|
+
required: ["id"],
|
|
434
|
+
optional: ["text", "add", "limit", "allowAuditNote", "allowAuditComment", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS],
|
|
435
|
+
},
|
|
436
|
+
learnings: {
|
|
437
|
+
required: ["id"],
|
|
438
|
+
optional: ["text", "add", "limit", "allowAuditLearning", "allowAuditComment", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS],
|
|
439
|
+
},
|
|
440
|
+
files: {
|
|
441
|
+
required: ["id"],
|
|
442
|
+
optional: [
|
|
443
|
+
"add",
|
|
444
|
+
"addGlob",
|
|
445
|
+
"remove",
|
|
446
|
+
"migrate",
|
|
447
|
+
"list",
|
|
448
|
+
// GH-170 (pm-pfnx): `addNote` is the MCP spelling of the CLI --note flag
|
|
449
|
+
// (the shared `note` parameter is the array-typed create/update note
|
|
450
|
+
// seed, so files/docs use a distinct single-string key).
|
|
451
|
+
"addNote",
|
|
452
|
+
"discover",
|
|
453
|
+
"apply",
|
|
454
|
+
"discoveryNote",
|
|
455
|
+
"appendStable",
|
|
456
|
+
"validatePaths",
|
|
457
|
+
"audit",
|
|
458
|
+
...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS,
|
|
459
|
+
],
|
|
460
|
+
dependentAnyOfRequired: [{ property: "addNote", anyOfRequired: [["add"], ["addGlob"]] }],
|
|
461
|
+
},
|
|
462
|
+
docs: {
|
|
463
|
+
required: ["id"],
|
|
464
|
+
optional: [
|
|
465
|
+
"add",
|
|
466
|
+
"addGlob",
|
|
467
|
+
"remove",
|
|
468
|
+
"migrate",
|
|
469
|
+
"addNote",
|
|
470
|
+
"list",
|
|
471
|
+
"validatePaths",
|
|
472
|
+
"audit",
|
|
473
|
+
...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS,
|
|
474
|
+
],
|
|
475
|
+
dependentAnyOfRequired: [{ property: "addNote", anyOfRequired: [["add"], ["addGlob"]] }],
|
|
476
|
+
},
|
|
477
|
+
deps: { required: ["id"], optional: ["format", "maxDepth", "collapse", "summary"] },
|
|
478
|
+
test: {
|
|
479
|
+
required: ["id"],
|
|
480
|
+
optional: [
|
|
481
|
+
"add",
|
|
482
|
+
"addJson",
|
|
483
|
+
"remove",
|
|
484
|
+
"run",
|
|
485
|
+
"match",
|
|
486
|
+
"onlyIndex",
|
|
487
|
+
"onlyLast",
|
|
488
|
+
"background",
|
|
489
|
+
"timeout",
|
|
490
|
+
"progress",
|
|
491
|
+
"envSet",
|
|
492
|
+
"envClear",
|
|
493
|
+
"sharedHostSafe",
|
|
494
|
+
"pmContext",
|
|
495
|
+
"overrideLinkedPmContext",
|
|
496
|
+
"failOnContextMismatch",
|
|
497
|
+
"failOnSkipped",
|
|
498
|
+
"failOnEmptyTestRun",
|
|
499
|
+
"requireAssertionsForPm",
|
|
500
|
+
"checkContext",
|
|
501
|
+
"autoPmContext",
|
|
502
|
+
...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS,
|
|
503
|
+
],
|
|
504
|
+
},
|
|
505
|
+
"test-all": {
|
|
506
|
+
optional: [
|
|
507
|
+
"status",
|
|
508
|
+
"limit",
|
|
509
|
+
"offset",
|
|
510
|
+
"background",
|
|
511
|
+
"timeout",
|
|
512
|
+
"progress",
|
|
513
|
+
"envSet",
|
|
514
|
+
"envClear",
|
|
515
|
+
"sharedHostSafe",
|
|
516
|
+
"pmContext",
|
|
517
|
+
"overrideLinkedPmContext",
|
|
518
|
+
"failOnContextMismatch",
|
|
519
|
+
"failOnSkipped",
|
|
520
|
+
"failOnEmptyTestRun",
|
|
521
|
+
"requireAssertionsForPm",
|
|
522
|
+
"checkContext",
|
|
523
|
+
"autoPmContext",
|
|
524
|
+
],
|
|
525
|
+
},
|
|
526
|
+
telemetry: {
|
|
527
|
+
optional: ["subcommand", "limit"],
|
|
528
|
+
},
|
|
529
|
+
"test-runs-list": {
|
|
530
|
+
optional: ["status", "limit"],
|
|
531
|
+
},
|
|
532
|
+
"test-runs-status": {
|
|
533
|
+
required: ["runId"],
|
|
534
|
+
},
|
|
535
|
+
"test-runs-logs": {
|
|
536
|
+
required: ["runId"],
|
|
537
|
+
optional: ["stream", "tail"],
|
|
538
|
+
},
|
|
539
|
+
"test-runs-stop": {
|
|
540
|
+
required: ["runId"],
|
|
541
|
+
optional: ["force"],
|
|
542
|
+
},
|
|
543
|
+
"test-runs-resume": {
|
|
544
|
+
required: ["runId"],
|
|
545
|
+
optional: ["author"],
|
|
546
|
+
},
|
|
547
|
+
stats: { optional: ["storage", "metadataCoverage", "fieldUtilization", "byAssignee", "byTag", "byPriority", "tagPrefix"] },
|
|
548
|
+
health: {
|
|
549
|
+
optional: [
|
|
550
|
+
"strictDirectories",
|
|
551
|
+
"strictExit",
|
|
552
|
+
"failOnWarn",
|
|
553
|
+
"checkOnly",
|
|
554
|
+
"checkTelemetry",
|
|
555
|
+
"noRefresh",
|
|
556
|
+
"refreshVectors",
|
|
557
|
+
"verboseStaleItems",
|
|
558
|
+
"brief",
|
|
559
|
+
"summary",
|
|
560
|
+
"skipVectors",
|
|
561
|
+
"skipIntegrity",
|
|
562
|
+
"skipDrift",
|
|
563
|
+
"full",
|
|
564
|
+
],
|
|
565
|
+
},
|
|
566
|
+
validate: {
|
|
567
|
+
optional: [
|
|
568
|
+
"checkMetadata",
|
|
569
|
+
"metadataProfile",
|
|
570
|
+
"checkResolution",
|
|
571
|
+
"checkLifecycle",
|
|
572
|
+
"checkStaleBlockers",
|
|
573
|
+
"dependencyCycleSeverity",
|
|
574
|
+
"parentCycleSeverity",
|
|
575
|
+
"checkFiles",
|
|
576
|
+
"scanMode",
|
|
577
|
+
"includePmInternals",
|
|
578
|
+
"verboseFileLists",
|
|
579
|
+
"verboseDiagnostics",
|
|
580
|
+
"allAffectedIds",
|
|
581
|
+
"strictExit",
|
|
582
|
+
"failOnWarn",
|
|
583
|
+
"fixHints",
|
|
584
|
+
"autoFix",
|
|
585
|
+
"dryRun",
|
|
586
|
+
"fixScope",
|
|
587
|
+
"pruneMissing",
|
|
588
|
+
"checkHistoryDrift",
|
|
589
|
+
"checkCommandReferences",
|
|
590
|
+
],
|
|
591
|
+
},
|
|
592
|
+
gc: { optional: ["dryRun", "gcScope"] },
|
|
593
|
+
contracts: { optional: ["contractAction", "command", "schemaOnly", "flagsOnly", "availabilityOnly", "runtimeOnly", "activeOnly", "full"] },
|
|
594
|
+
completion: { required: ["shell"], optional: ["eagerTags"] },
|
|
595
|
+
claim: { required: ["id"], optional: AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS },
|
|
596
|
+
release: { required: ["id"], optional: ["allowAuditRelease", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS] },
|
|
597
|
+
"start-task": { required: ["id"], optional: AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS },
|
|
598
|
+
"pause-task": { required: ["id"], optional: AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS },
|
|
599
|
+
"close-task": { required: ["id"], optional: ["text", "validateClose", ...AUTHOR_MESSAGE_FORCE_PARAMETER_KEYS] },
|
|
600
|
+
};
|
|
601
|
+
export const PM_TOOL_ACTION_PARAMETER_CONTRACTS = Object.freeze(Object.fromEntries(PM_TOOL_ACTIONS.map((action) => [action, PM_TOOL_ACTION_SCHEMA_CONTRACTS[action]])));
|
|
602
|
+
function fallbackToolParameterDescription(key) {
|
|
603
|
+
return key
|
|
604
|
+
.replace(/([a-z0-9])([A-Z])/g, "$1 $2")
|
|
605
|
+
.replace(/[_-]/g, " ")
|
|
606
|
+
.trim()
|
|
607
|
+
.replace(/^./, (value) => value.toUpperCase())
|
|
608
|
+
.concat(".");
|
|
609
|
+
}
|
|
610
|
+
function decorateToolParameterDefinition(key, definition) {
|
|
611
|
+
const baseDefinition = typeof definition === "object" && definition !== null ? { ...definition } : {};
|
|
612
|
+
const metadata = PM_TOOL_PARAMETER_METADATA[key];
|
|
613
|
+
return {
|
|
614
|
+
...baseDefinition,
|
|
615
|
+
description: metadata?.description ?? fallbackToolParameterDescription(key),
|
|
616
|
+
...(metadata?.examples ? { examples: metadata.examples } : {}),
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
function actionScopedToolParameterMetadata(action, key) {
|
|
620
|
+
if (action === "plan" && Object.prototype.hasOwnProperty.call(PLAN_ACTION_PARAMETER_METADATA, key)) {
|
|
621
|
+
return PLAN_ACTION_PARAMETER_METADATA[key];
|
|
622
|
+
}
|
|
623
|
+
const actionOverrides = PM_TOOL_ACTION_SCOPED_PARAMETER_METADATA[action];
|
|
624
|
+
if (actionOverrides && Object.prototype.hasOwnProperty.call(actionOverrides, key)) {
|
|
625
|
+
return actionOverrides[key];
|
|
626
|
+
}
|
|
627
|
+
return PM_TOOL_PARAMETER_METADATA[key];
|
|
628
|
+
}
|
|
629
|
+
function decorateActionScopedToolParameterDefinition(action, key, definition) {
|
|
630
|
+
const baseDefinition = typeof definition === "object" && definition !== null ? { ...definition } : {};
|
|
631
|
+
const metadata = actionScopedToolParameterMetadata(action, key);
|
|
632
|
+
return {
|
|
633
|
+
...baseDefinition,
|
|
634
|
+
description: metadata?.description ?? fallbackToolParameterDescription(key),
|
|
635
|
+
...(metadata?.examples ? { examples: metadata.examples } : {}),
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
function actionScopedToolParameterDefinition(action, key) {
|
|
639
|
+
if (action === "plan" && Object.prototype.hasOwnProperty.call(PLAN_ACTION_PARAMETER_PROPERTIES, key)) {
|
|
640
|
+
return PLAN_ACTION_PARAMETER_PROPERTIES[key];
|
|
641
|
+
}
|
|
642
|
+
if ((action === "get" || action === "history" || action === "search") && key === "format") {
|
|
643
|
+
return { type: "string", enum: ["json", "toon"] };
|
|
644
|
+
}
|
|
645
|
+
return PM_TOOL_PARAMETER_PROPERTIES[key];
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Build the `properties` map for one action-scoped schema: the fixed `action`
|
|
649
|
+
* literal followed by every allowed parameter that resolves to a concrete
|
|
650
|
+
* definition, each decorated with its action-scoped description and examples.
|
|
651
|
+
*/
|
|
652
|
+
function buildActionScopedSchemaProperties(action, allowedKeys) {
|
|
653
|
+
const properties = {
|
|
654
|
+
action: {
|
|
655
|
+
const: action,
|
|
656
|
+
description: PM_TOOL_PARAMETER_METADATA.action?.description ?? "Tool action to execute.",
|
|
657
|
+
},
|
|
658
|
+
};
|
|
659
|
+
for (const key of allowedKeys) {
|
|
660
|
+
if (key === "action") {
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
const definition = actionScopedToolParameterDefinition(action, key);
|
|
664
|
+
if (definition) {
|
|
665
|
+
properties[key] = decorateActionScopedToolParameterDefinition(action, key, definition);
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
return properties;
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Build the `oneOf` branches for an action whose contract requires exactly one of
|
|
672
|
+
* several field groups. Each branch requires its own group and — when sibling
|
|
673
|
+
* groups exist — forbids any field drawn from them, so the schema rejects the same
|
|
674
|
+
* overlapping combinations the runtime rejects; `history-repair`'s `all` branch
|
|
675
|
+
* additionally pins `all` to the literal `true`.
|
|
676
|
+
*/
|
|
677
|
+
function buildOneOfSchemaEntries(action, oneOfRequiredGroups) {
|
|
678
|
+
const allOneOfFields = oneOfRequiredGroups.flat();
|
|
679
|
+
return oneOfRequiredGroups.map((requiredFields) => {
|
|
680
|
+
const otherFields = allOneOfFields.filter((field) => !requiredFields.includes(field));
|
|
681
|
+
return {
|
|
682
|
+
required: [...requiredFields],
|
|
683
|
+
...(otherFields.length > 0 ? { not: { anyOf: otherFields.map((field) => ({ required: [field] })) } } : {}),
|
|
684
|
+
...(action === "history-repair" && requiredFields.includes("all") ? { properties: { all: { const: true } } } : {}),
|
|
685
|
+
};
|
|
686
|
+
});
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Build the consolidated `allOf` constraint list for an action's contract,
|
|
690
|
+
* appending branches in a fixed order — conditional-required (`if`/`then`), then
|
|
691
|
+
* dependent any-of-required, then mutually-exclusive (`not`/`required`) — so a
|
|
692
|
+
* given contract always serializes to a byte-identical schema. Returns an empty
|
|
693
|
+
* array when the contract declares none of these constraints, letting the caller
|
|
694
|
+
* omit the `allOf` key entirely.
|
|
695
|
+
*/
|
|
696
|
+
function buildActionScopedAllOf(contract) {
|
|
697
|
+
const allOf = [];
|
|
698
|
+
if (contract.conditionalRequired && contract.conditionalRequired.length > 0) {
|
|
699
|
+
for (const entry of contract.conditionalRequired) {
|
|
700
|
+
allOf.push({
|
|
701
|
+
if: {
|
|
702
|
+
properties: {
|
|
703
|
+
[entry.property]: { const: entry.value },
|
|
704
|
+
},
|
|
705
|
+
required: [entry.property],
|
|
706
|
+
},
|
|
707
|
+
// eslint-disable-next-line unicorn/no-thenable -- JSON Schema conditional keyword, not a Promise-like object.
|
|
708
|
+
then: {
|
|
709
|
+
required: entry.required,
|
|
710
|
+
},
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
if (contract.dependentAnyOfRequired && contract.dependentAnyOfRequired.length > 0) {
|
|
715
|
+
for (const entry of contract.dependentAnyOfRequired) {
|
|
716
|
+
allOf.push({
|
|
717
|
+
if: { required: [entry.property] },
|
|
718
|
+
// eslint-disable-next-line unicorn/no-thenable -- JSON Schema conditional keyword, not a Promise-like object.
|
|
719
|
+
then: {
|
|
720
|
+
anyOf: entry.anyOfRequired.map((requiredFields) => ({
|
|
721
|
+
required: [...requiredFields],
|
|
722
|
+
})),
|
|
723
|
+
},
|
|
724
|
+
});
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
if (contract.mutuallyExclusive && contract.mutuallyExclusive.length > 0) {
|
|
728
|
+
for (const group of contract.mutuallyExclusive) {
|
|
729
|
+
allOf.push({ not: { required: toSchemaKeyList(group) } });
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
return allOf;
|
|
733
|
+
}
|
|
734
|
+
function buildActionScopedToolSchema(action) {
|
|
735
|
+
const contract = PM_TOOL_ACTION_SCHEMA_CONTRACTS[action];
|
|
736
|
+
const required = toSchemaKeyList(contract.required ?? []);
|
|
737
|
+
const optional = toSchemaKeyList(contract.optional ?? []);
|
|
738
|
+
const mutationParameterKeys = PM_TOOL_ACTION_MUTATION_PARAMETER_KEYS[action] ?? [];
|
|
739
|
+
const allowedKeys = toSchemaKeyList(["action", ...PM_TOOL_GLOBAL_PARAMETER_KEYS, ...mutationParameterKeys, ...required, ...optional]);
|
|
740
|
+
const schema = {
|
|
741
|
+
type: "object",
|
|
742
|
+
additionalProperties: false,
|
|
743
|
+
required: ["action", ...required],
|
|
744
|
+
title: `pm action "${action}" parameters`,
|
|
745
|
+
properties: buildActionScopedSchemaProperties(action, allowedKeys),
|
|
746
|
+
};
|
|
747
|
+
if (contract.anyOfRequired && contract.anyOfRequired.length > 0) {
|
|
748
|
+
schema.anyOf = contract.anyOfRequired.map((requiredFields) => ({
|
|
749
|
+
required: [...requiredFields],
|
|
750
|
+
}));
|
|
751
|
+
}
|
|
752
|
+
if (contract.oneOfRequired && contract.oneOfRequired.length > 0) {
|
|
753
|
+
schema.oneOf = buildOneOfSchemaEntries(action, contract.oneOfRequired);
|
|
754
|
+
}
|
|
755
|
+
const allOf = buildActionScopedAllOf(contract);
|
|
756
|
+
if (allOf.length > 0) {
|
|
757
|
+
schema.allOf = allOf;
|
|
758
|
+
}
|
|
759
|
+
return schema;
|
|
760
|
+
}
|
|
761
|
+
// Building the full MCP tool-parameter schemas (one variant per action) is only
|
|
762
|
+
// needed by the MCP server, the `pm contracts` command, and SDK consumers — never
|
|
763
|
+
// on the hot CLI path that imports this module for flag contracts. Wrap them in a
|
|
764
|
+
// memoized lazy Proxy so the build is deferred until first property access and the
|
|
765
|
+
// object API (`.type`, `.oneOf`, spread, JSON.stringify) stays identical.
|
|
766
|
+
function createLazyContractSchema(build) {
|
|
767
|
+
let value;
|
|
768
|
+
const resolve = () => (value ??= build());
|
|
769
|
+
return new Proxy({}, {
|
|
770
|
+
get: (_target, prop) => resolve()[prop],
|
|
771
|
+
has: (_target, prop) => prop in resolve(),
|
|
772
|
+
ownKeys: () => Reflect.ownKeys(resolve()),
|
|
773
|
+
getOwnPropertyDescriptor: (_target, prop) => {
|
|
774
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(resolve(), prop);
|
|
775
|
+
if (descriptor) {
|
|
776
|
+
descriptor.configurable = true;
|
|
777
|
+
}
|
|
778
|
+
return descriptor;
|
|
779
|
+
},
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Canonical version of the action-scoped strict MCP tool-parameters schema
|
|
784
|
+
* (`PM_TOOL_PARAMETERS_SCHEMA`). Exported as the single source of truth so the
|
|
785
|
+
* MCP server, the `pm contracts` command, SDK consumers, and the contract tests
|
|
786
|
+
* all bind to one constant instead of re-typing the `"4.0.2"` literal (pm-r9sz).
|
|
787
|
+
* Bump the patch/minor for additive, backward-compatible schema changes; bump
|
|
788
|
+
* the MAJOR for breaking changes — the major also drives the `$id`
|
|
789
|
+
* `tool-parameters-v{major}` slug, so the two never drift.
|
|
790
|
+
*/
|
|
791
|
+
export const PM_TOOL_PARAMETERS_SCHEMA_VERSION = "4.0.6";
|
|
792
|
+
/**
|
|
793
|
+
* Major component of {@link PM_TOOL_PARAMETERS_SCHEMA_VERSION}, used to build the
|
|
794
|
+
* schema `$id` slug so a breaking version bump renames the document in lockstep.
|
|
795
|
+
*/
|
|
796
|
+
export const PM_TOOL_PARAMETERS_SCHEMA_MAJOR = PM_TOOL_PARAMETERS_SCHEMA_VERSION.split(".")[0];
|
|
797
|
+
/**
|
|
798
|
+
* Version of the provider-compatible flat tool-parameters schema
|
|
799
|
+
* (`PM_PROVIDER_TOOL_PARAMETERS_SCHEMA`). Tracked separately from the strict
|
|
800
|
+
* schema because the flat projection evolves independently.
|
|
801
|
+
*/
|
|
802
|
+
export const PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION = "1.0.0";
|
|
803
|
+
export const PM_TOOL_PARAMETERS_SCHEMA = createLazyContractSchema(() => ({
|
|
804
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
805
|
+
$id: `https://schema.unbrained.dev/pm-cli/tool-parameters-v${PM_TOOL_PARAMETERS_SCHEMA_MAJOR}.schema.json`,
|
|
806
|
+
title: "pm-cli tool parameters (action-scoped strict schema)",
|
|
807
|
+
"x-schema-version": PM_TOOL_PARAMETERS_SCHEMA_VERSION,
|
|
808
|
+
type: "object",
|
|
809
|
+
oneOf: PM_TOOL_ACTIONS.map((action) => buildActionScopedToolSchema(action)),
|
|
810
|
+
}));
|
|
811
|
+
function toProviderCompatibleParameterDefinition(key, definition) {
|
|
812
|
+
const decorated = decorateToolParameterDefinition(key, definition);
|
|
813
|
+
if (typeof decorated.type === "string") {
|
|
814
|
+
return decorated;
|
|
815
|
+
}
|
|
816
|
+
const anyOf = Array.isArray(decorated.anyOf) ? decorated.anyOf : [];
|
|
817
|
+
const firstTypedVariant = anyOf.find((variant) => typeof variant.type === "string");
|
|
818
|
+
if (firstTypedVariant) {
|
|
819
|
+
const { anyOf: _anyOf, ...rest } = decorated;
|
|
820
|
+
// Spread the whole typed variant (type plus any enum/minimum/maximum/pattern
|
|
821
|
+
// constraints) so the flat provider schema keeps the variant's validation,
|
|
822
|
+
// then let the decorated top-level fields (description, examples) win.
|
|
823
|
+
return {
|
|
824
|
+
...firstTypedVariant,
|
|
825
|
+
...rest,
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
const { anyOf: _anyOf, ...rest } = decorated;
|
|
829
|
+
return {
|
|
830
|
+
...rest,
|
|
831
|
+
type: "string",
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
function buildProviderCompatibleToolSchema() {
|
|
835
|
+
const properties = {
|
|
836
|
+
action: {
|
|
837
|
+
type: "string",
|
|
838
|
+
description: PM_TOOL_PARAMETER_METADATA.action?.description ?? "Tool action to execute.",
|
|
839
|
+
},
|
|
840
|
+
options: {
|
|
841
|
+
type: "object",
|
|
842
|
+
additionalProperties: true,
|
|
843
|
+
description: "Advanced command options object forwarded to the selected pm action.",
|
|
844
|
+
},
|
|
845
|
+
};
|
|
846
|
+
for (const key of Object.keys(PM_TOOL_PARAMETER_PROPERTIES).sort()) {
|
|
847
|
+
properties[key] = toProviderCompatibleParameterDefinition(key, PM_TOOL_PARAMETER_PROPERTIES[key]);
|
|
848
|
+
}
|
|
849
|
+
return {
|
|
850
|
+
title: "pm-cli tool parameters (provider-compatible flat schema)",
|
|
851
|
+
"x-schema-version": PM_PROVIDER_TOOL_PARAMETERS_SCHEMA_VERSION,
|
|
852
|
+
type: "object",
|
|
853
|
+
additionalProperties: false,
|
|
854
|
+
required: ["action"],
|
|
855
|
+
properties,
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
export const PM_PROVIDER_TOOL_PARAMETERS_SCHEMA = createLazyContractSchema(buildProviderCompatibleToolSchema);
|
|
859
|
+
export const _testOnlyCliContracts = {
|
|
860
|
+
buildActionScopedToolSchema,
|
|
861
|
+
buildProviderCompatibleToolSchema,
|
|
862
|
+
decorateActionScopedToolParameterDefinition,
|
|
863
|
+
decorateToolParameterDefinition,
|
|
864
|
+
toolActionSchemaContracts: PM_TOOL_ACTION_SCHEMA_CONTRACTS,
|
|
865
|
+
toolParameterMetadata: PM_TOOL_PARAMETER_METADATA,
|
|
866
|
+
toProviderCompatibleParameterDefinition,
|
|
867
|
+
toUniqueFlagContracts,
|
|
868
|
+
withFlagAliasMetadata,
|
|
869
|
+
};
|
|
870
|
+
//# sourceMappingURL=tool-schema.js.map
|
|
871
|
+
//# debugId=5c1fba35-3cb1-5029-847a-047dabe7014e
|