@unbrained/pm-cli 2026.7.20 → 2026.7.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/CHANGELOG.md +11 -0
- package/dist/cli/commander-usage.d.ts +1 -1
- package/dist/cli/commander-usage.js +5 -5
- package/dist/cli/commander-usage.js.map +1 -1
- package/dist/cli/commands/completion.js +13 -5
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/contracts.js +4 -3
- package/dist/cli/commands/contracts.js.map +1 -1
- package/dist/cli/error-guidance.d.ts +2 -0
- package/dist/cli/error-guidance.js +7 -2
- package/dist/cli/error-guidance.js.map +1 -1
- package/dist/cli/main.d.ts +1 -5
- package/dist/cli/main.js +12 -50
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +13 -3
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +45 -3
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-structured-mutation.d.ts +14 -0
- package/dist/cli/register-structured-mutation.js +62 -0
- package/dist/cli/register-structured-mutation.js.map +1 -0
- package/dist/cli/registration-helpers.js +5 -3
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/bundle-manifest.json +280 -296
- package/dist/cli-bundle/chunks/{append-E6V54WOQ.js → append-7OVFYR3C.js} +3 -3
- package/dist/cli-bundle/chunks/{append-NNJ3EFIT.js → append-DFETHAZL.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-C3KD7U3T.js → chunk-2L6ZP22J.js} +241 -10
- package/dist/cli-bundle/chunks/chunk-2L6ZP22J.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-KZEANWJS.js → chunk-4PUUNQDV.js} +98 -30
- package/dist/cli-bundle/chunks/chunk-4PUUNQDV.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-RDV4ZFYS.js → chunk-4QOB7L7I.js} +7 -9
- package/dist/cli-bundle/chunks/{chunk-RDV4ZFYS.js.map → chunk-4QOB7L7I.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-3LPFHE3P.js → chunk-4QSQ6XDK.js} +62 -20
- package/dist/cli-bundle/chunks/chunk-4QSQ6XDK.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-QJKL5PHS.js → chunk-7656MAUL.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3AO5VSDR.js → chunk-7RW4JCU2.js} +328 -6
- package/dist/cli-bundle/chunks/chunk-7RW4JCU2.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-X6K5XTTN.js → chunk-7W2UAXXT.js} +5 -5
- package/dist/cli-bundle/chunks/{chunk-SSKOQNMS.js → chunk-ABWCF646.js} +9 -11
- package/dist/cli-bundle/chunks/{chunk-SSKOQNMS.js.map → chunk-ABWCF646.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-WVA4DVNV.js → chunk-ADBTSVGK.js} +71 -33
- package/dist/cli-bundle/chunks/chunk-ADBTSVGK.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-J4FBIFU6.js → chunk-AELMUANP.js} +12 -6
- package/dist/cli-bundle/chunks/chunk-AELMUANP.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4F6BWJ4J.js → chunk-AMJPSANK.js} +57 -36
- package/dist/cli-bundle/chunks/chunk-AMJPSANK.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6VIJ7UA5.js → chunk-AS4SAZ5R.js} +850 -819
- package/dist/cli-bundle/chunks/chunk-AS4SAZ5R.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-SG74J6MV.js → chunk-ATBCUC7Y.js} +574 -5
- package/dist/cli-bundle/chunks/chunk-ATBCUC7Y.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5OK4UGFV.js → chunk-BXNDKOR2.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KSPWRNVP.js → chunk-CPX275C6.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JH2ZSLO3.js → chunk-DZRV2OPA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-L7BH7IWU.js → chunk-E5XMKOSB.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CQTQKUUV.js → chunk-EWJWSNRU.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-DAQ45GCS.js → chunk-F2LBF7XJ.js} +22 -15
- package/dist/cli-bundle/chunks/chunk-F2LBF7XJ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6XMUURSS.js → chunk-FJIFFBJX.js} +64 -33
- package/dist/cli-bundle/chunks/chunk-FJIFFBJX.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-E7ICD63T.js → chunk-FO6OSVEN.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-E7ICD63T.js.map → chunk-FO6OSVEN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-3MCTMJXI.js → chunk-FPBMLYPI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UZDQXNUB.js → chunk-FSE2IKJQ.js} +46 -5
- package/dist/cli-bundle/chunks/chunk-FSE2IKJQ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IX677TRO.js → chunk-GKX4NJ7U.js} +8 -10
- package/dist/cli-bundle/chunks/{chunk-IX677TRO.js.map → chunk-GKX4NJ7U.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-DVDBQA3B.js → chunk-GTK4DTEW.js} +5 -5
- package/dist/cli-bundle/chunks/chunk-H7EAER5L.js +974 -0
- package/dist/cli-bundle/chunks/chunk-H7EAER5L.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-5UX66S6U.js → chunk-ICDAQ4TD.js} +316 -8
- package/dist/cli-bundle/chunks/chunk-ICDAQ4TD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-YQQNAKW3.js → chunk-JFD5LPMI.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-YQQNAKW3.js.map → chunk-JFD5LPMI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-QANSTTC7.js → chunk-JXCW2TI2.js} +6 -8
- package/dist/cli-bundle/chunks/{chunk-QANSTTC7.js.map → chunk-JXCW2TI2.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-GSJSM5BJ.js → chunk-K36WV5J6.js} +76 -13
- package/dist/cli-bundle/chunks/chunk-K36WV5J6.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-GVI6FAFG.js → chunk-K55VMLSS.js} +7 -5
- package/dist/cli-bundle/chunks/chunk-K55VMLSS.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-GIQSU6S2.js → chunk-KBLZ3AA5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-XJF7CDNH.js → chunk-KH44WBAT.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GV2262OF.js → chunk-LAV26CQG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VDO2JMD4.js → chunk-LVC72YRD.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3VY6MIEO.js → chunk-LZYP423P.js} +35 -6
- package/dist/cli-bundle/chunks/chunk-LZYP423P.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZYPFOO3L.js → chunk-MATHDCGG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-OV7MSW3I.js → chunk-MWQ2HC2A.js} +99 -31
- package/dist/cli-bundle/chunks/chunk-MWQ2HC2A.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-NHT3F4WZ.js → chunk-NUF7ROFH.js} +840 -816
- package/dist/cli-bundle/chunks/chunk-NUF7ROFH.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-AOEOYL3S.js → chunk-O4BCOJTZ.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-RJO3YAFM.js → chunk-OCUBRA6D.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-5IZJWSDB.js → chunk-OG5DVFMA.js} +22 -15
- package/dist/cli-bundle/chunks/chunk-OG5DVFMA.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-I577UHC7.js → chunk-OR42SO64.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ZOJ3LR7O.js → chunk-OY7DMU5P.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HEWM6CEN.js → chunk-P7MTHPJQ.js} +50 -9
- package/dist/cli-bundle/chunks/chunk-P7MTHPJQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-2BO4CA46.js → chunk-PFNHX655.js} +236 -12
- package/dist/cli-bundle/chunks/{chunk-2BO4CA46.js.map → chunk-PFNHX655.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-ZV2NTVMJ.js → chunk-PONKZPCJ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-THAOZG4U.js → chunk-PQSEQD6E.js} +8 -6
- package/dist/cli-bundle/chunks/chunk-PQSEQD6E.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-PWDEHT3L.js +991 -0
- package/dist/cli-bundle/chunks/chunk-PWDEHT3L.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UX6SSO2I.js → chunk-PZC2FUOQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WUVEBQW6.js → chunk-QG4GFLQ6.js} +3 -5
- package/dist/cli-bundle/chunks/{chunk-WUVEBQW6.js.map → chunk-QG4GFLQ6.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-VQIHNHMJ.js → chunk-QIH77CAG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-R3EWPG4A.js → chunk-QJIKE24M.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QLZ643FM.js → chunk-QOOTOD3W.js} +10 -12
- package/dist/cli-bundle/chunks/{chunk-QLZ643FM.js.map → chunk-QOOTOD3W.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-MYSS5H2A.js → chunk-R3P6FZJW.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-MYSS5H2A.js.map → chunk-R3P6FZJW.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-G3COA6GS.js → chunk-RNPZYNHS.js} +56 -35
- package/dist/cli-bundle/chunks/chunk-RNPZYNHS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-T44FMVRL.js → chunk-RPESLSO5.js} +62 -20
- package/dist/cli-bundle/chunks/chunk-RPESLSO5.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-INSTSQNZ.js → chunk-SY4SFZSD.js} +595 -3
- package/dist/cli-bundle/chunks/chunk-SY4SFZSD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-HB3P4M52.js → chunk-TRSHFPRZ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-HRW7GF6T.js → chunk-UCBDQI5E.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-4U4Z6AHI.js → chunk-V22ZPOKN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JM6YAXTR.js → chunk-VHXHVTUU.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-LPEYZRUR.js → chunk-VJQG4BIM.js} +35 -6
- package/dist/cli-bundle/chunks/chunk-VJQG4BIM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-D6NXDNP3.js → chunk-VLRGDBLY.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JAPE62Y5.js → chunk-VNTCM3VW.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-FDHPAVVB.js → chunk-VXOOB6YX.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-GFQP7HAZ.js → chunk-VZIZB6QH.js} +3 -5
- package/dist/cli-bundle/chunks/{chunk-GFQP7HAZ.js.map → chunk-VZIZB6QH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-HQ3SB4CN.js → chunk-X3W65QK3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RZJLNXFG.js → chunk-XJTABV3X.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GVT754PX.js → chunk-YCIUJJOD.js} +11 -5
- package/dist/cli-bundle/chunks/chunk-YCIUJJOD.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IJNK6WW2.js → chunk-Z75ONV25.js} +75 -12
- package/dist/cli-bundle/chunks/chunk-Z75ONV25.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-4L23AGQ7.js → chunk-Z7VWXXJM.js} +5 -7
- package/dist/cli-bundle/chunks/{chunk-4L23AGQ7.js.map → chunk-Z7VWXXJM.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-YBT7O4KT.js → chunk-ZTVA4KLN.js} +4 -6
- package/dist/cli-bundle/chunks/{chunk-YBT7O4KT.js.map → chunk-ZTVA4KLN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-TYHJDFYW.js → chunk-ZVZGXPQ5.js} +2 -2
- package/dist/cli-bundle/chunks/{close-many-SDA426VT.js → close-many-5RZXVN4J.js} +5 -6
- package/dist/cli-bundle/chunks/{close-many-UTZANOCQ.js → close-many-RZVTUGBG.js} +5 -6
- package/dist/cli-bundle/chunks/{comments-LZN6FXXC.js → comments-TPU7QRBL.js} +4 -4
- package/dist/cli-bundle/chunks/{comments-VBQ345ND.js → comments-Z4KV6FU3.js} +4 -4
- package/dist/cli-bundle/chunks/{create-GG4RBCGC.js → create-EIFBIVNQ.js} +6 -6
- package/dist/cli-bundle/chunks/{create-JBC5KUW6.js → create-RGSPN5GD.js} +6 -6
- package/dist/cli-bundle/chunks/{deps-FI4O6NQS.js → deps-UH5EQQUY.js} +3 -3
- package/dist/cli-bundle/chunks/{deps-DELOO4TL.js → deps-YG7UF3VR.js} +3 -3
- package/dist/cli-bundle/chunks/{docs-6Z2MP526.js → docs-G32TK6XS.js} +4 -4
- package/dist/cli-bundle/chunks/{docs-2UYBP5D6.js → docs-JWWNRC27.js} +4 -4
- package/dist/cli-bundle/chunks/{files-HKEAN5MA.js → files-3H32UQ4K.js} +4 -4
- package/dist/cli-bundle/chunks/{files-HEUGSJZL.js → files-4ALMCSKB.js} +4 -4
- package/dist/cli-bundle/chunks/{history-compact-7NDVP3PT.js → history-compact-77BT2LUB.js} +3 -4
- package/dist/cli-bundle/chunks/{history-compact-65YVN5DB.js → history-compact-VCKGTX64.js} +3 -4
- package/dist/cli-bundle/chunks/{history-redact-7YBL4XSG.js → history-redact-LJPZPNFA.js} +2 -3
- package/dist/cli-bundle/chunks/{history-redact-IZGNJBU4.js → history-redact-PWTTJ3XS.js} +2 -3
- package/dist/cli-bundle/chunks/{history-repair-7M4PYQUH.js → history-repair-I7CBNCV3.js} +5 -6
- package/dist/cli-bundle/chunks/{history-repair-GNGETJLI.js → history-repair-YTDZRK5E.js} +5 -6
- package/dist/cli-bundle/chunks/{learnings-3YXDRWFT.js → learnings-CYNOICKR.js} +4 -4
- package/dist/cli-bundle/chunks/{learnings-ALC6IMNL.js → learnings-KTYW3AL7.js} +4 -4
- package/dist/cli-bundle/chunks/{notes-7JMLQ447.js → notes-FGO63FXL.js} +4 -4
- package/dist/cli-bundle/chunks/{notes-JFCLTC5C.js → notes-ZERD3KB2.js} +4 -4
- package/dist/cli-bundle/chunks/{plan-T3XB3WTK.js → plan-OFJUBIM5.js} +7 -7
- package/dist/cli-bundle/chunks/{plan-KOIPWVOZ.js → plan-SGCDDTYR.js} +7 -7
- package/dist/cli-bundle/chunks/{profile-OILJHKUW.js → profile-3THJPIQY.js} +4 -5
- package/dist/cli-bundle/chunks/{profile-RJXA7PGS.js → profile-XEZAMMBW.js} +4 -5
- package/dist/cli-bundle/chunks/{register-list-query-CFVG75P3.js → register-list-query-BR435Q2H.js} +19 -16
- package/dist/cli-bundle/chunks/register-list-query-BR435Q2H.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-list-query-E7UVY4TN.js → register-list-query-RWTWLOBE.js} +18 -15
- package/dist/cli-bundle/chunks/register-list-query-RWTWLOBE.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-mutation-IQ55E25C.js → register-mutation-HLWC2WNP.js} +167 -31
- package/dist/cli-bundle/chunks/register-mutation-HLWC2WNP.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-4VJTXBZW.js → register-mutation-ZJX5AZM5.js} +173 -30
- package/dist/cli-bundle/chunks/register-mutation-ZJX5AZM5.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-operations-AR7RMX4W.js → register-operations-744YBJMV.js} +23 -25
- package/dist/cli-bundle/chunks/{register-operations-AR7RMX4W.js.map → register-operations-744YBJMV.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-NOLZGORC.js → register-operations-UEBJH6AN.js} +21 -23
- package/dist/cli-bundle/chunks/{register-operations-NOLZGORC.js.map → register-operations-UEBJH6AN.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-EYZ7VTPZ.js → register-setup-5DA4UZXI.js} +7 -8
- package/dist/cli-bundle/chunks/{register-setup-EYZ7VTPZ.js.map → register-setup-5DA4UZXI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-BB77VUEE.js → register-setup-6H25M3BH.js} +9 -10
- package/dist/cli-bundle/chunks/{register-setup-BB77VUEE.js.map → register-setup-6H25M3BH.js.map} +1 -1
- package/dist/cli-bundle/chunks/{restore-ZH65GZFB.js → restore-6TDVSATY.js} +4 -5
- package/dist/cli-bundle/chunks/{restore-L6IAGOD7.js → restore-RSL7C7LO.js} +4 -5
- package/dist/cli-bundle/chunks/{schema-4ERWM5QJ.js → schema-HFXFSGPG.js} +2 -3
- package/dist/cli-bundle/chunks/{schema-55DL3Q52.js → schema-TPVTIJPO.js} +2 -3
- package/dist/cli-bundle/chunks/{update-FW6FKDOP.js → update-LJZCL5SI.js} +7 -7
- package/dist/cli-bundle/chunks/{update-TJHSPRPT.js → update-SIA7LH5Y.js} +7 -7
- package/dist/cli-bundle/chunks/{update-many-PWXX5WHO.js → update-many-BDBZVGQL.js} +11 -12
- package/dist/cli-bundle/chunks/{update-many-NNALYQCN.js → update-many-MOY3A5B3.js} +11 -12
- package/dist/cli-bundle/main.js +60 -85
- package/dist/cli-bundle/main.js.map +2 -2
- package/dist/cli-bundle/sdk-runtime.js +37 -37
- package/dist/cli-bundle/sdk.js +126 -291
- package/dist/cli-bundle/sdk.js.map +4 -4
- package/dist/core/item/parse.d.ts +1 -1
- package/dist/core/item/parse.js +13 -7
- package/dist/core/item/parse.js.map +1 -1
- package/dist/core/output/mutation-projection.d.ts +2 -0
- package/dist/core/output/mutation-projection.js +33 -2
- package/dist/core/output/mutation-projection.js.map +1 -1
- package/dist/core/output/output.d.ts +4 -0
- package/dist/core/output/output.js +18 -13
- package/dist/core/output/output.js.map +1 -1
- package/dist/core/shared/command-types.d.ts +4 -0
- package/dist/core/shared/command-types.js +2 -2
- package/dist/core/shared/command-types.js.map +1 -1
- package/dist/mcp/server.js +39 -4
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-definitions.js +45 -4
- package/dist/mcp/tool-definitions.js.map +1 -1
- package/dist/sdk/cli-bootstrap.d.ts +2 -0
- package/dist/sdk/cli-bootstrap.js +20 -27
- package/dist/sdk/cli-bootstrap.js.map +1 -1
- package/dist/sdk/cli-contracts/enum-contracts.d.ts +2 -2
- package/dist/sdk/cli-contracts/enum-contracts.js +7 -2
- package/dist/sdk/cli-contracts/enum-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/flag-contracts.d.ts +2 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +21 -2
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +10 -2
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +16 -3
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +6 -2
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +1 -1
- package/dist/sdk/cli-contracts.js +3 -3
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/cli-program.js +4 -2
- package/dist/sdk/cli-program.js.map +1 -1
- package/dist/sdk/dependencies.d.ts +3 -2
- package/dist/sdk/dependencies.js +13 -12
- package/dist/sdk/dependencies.js.map +1 -1
- package/dist/sdk/error-runtime.d.ts +10 -0
- package/dist/sdk/error-runtime.js +59 -0
- package/dist/sdk/error-runtime.js.map +1 -0
- package/dist/sdk/graph/analytics.d.ts +9 -0
- package/dist/sdk/graph/analytics.js +24 -13
- package/dist/sdk/graph/analytics.js.map +1 -1
- package/dist/sdk/graph/assembly.d.ts +39 -0
- package/dist/sdk/graph/assembly.js +92 -12
- package/dist/sdk/graph/assembly.js.map +1 -1
- package/dist/sdk/graph/cache.d.ts +4 -1
- package/dist/sdk/graph/cache.js +17 -4
- package/dist/sdk/graph/cache.js.map +1 -1
- package/dist/sdk/graph/centrality.d.ts +82 -0
- package/dist/sdk/graph/centrality.js +259 -0
- package/dist/sdk/graph/centrality.js.map +1 -0
- package/dist/sdk/graph/durable-cache.d.ts +71 -0
- package/dist/sdk/graph/durable-cache.js +205 -0
- package/dist/sdk/graph/durable-cache.js.map +1 -0
- package/dist/sdk/graph/governance.d.ts +69 -1
- package/dist/sdk/graph/governance.js +143 -35
- package/dist/sdk/graph/governance.js.map +1 -1
- package/dist/sdk/graph/index.d.ts +7 -4
- package/dist/sdk/graph/index.js +8 -5
- package/dist/sdk/graph/index.js.map +1 -1
- package/dist/sdk/graph/mutation-advisory.d.ts +35 -4
- package/dist/sdk/graph/mutation-advisory.js +124 -35
- package/dist/sdk/graph/mutation-advisory.js.map +1 -1
- package/dist/sdk/graph/remediation.js +12 -2
- package/dist/sdk/graph/remediation.js.map +1 -1
- package/dist/sdk/graph/run.d.ts +133 -2
- package/dist/sdk/graph/run.js +217 -8
- package/dist/sdk/graph/run.js.map +1 -1
- package/dist/sdk/graph/scheduling.d.ts +59 -0
- package/dist/sdk/graph/scheduling.js +125 -0
- package/dist/sdk/graph/scheduling.js.map +1 -0
- package/dist/sdk/graph/traversal.d.ts +11 -0
- package/dist/sdk/graph/traversal.js +16 -2
- package/dist/sdk/graph/traversal.js.map +1 -1
- package/dist/sdk/index.d.ts +4 -0
- package/dist/sdk/index.js +6 -2
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/runtime-input.js +7 -2
- package/dist/sdk/runtime-input.js.map +1 -1
- package/dist/sdk/runtime-primitives.d.ts +10 -0
- package/dist/sdk/runtime-primitives.js +14 -0
- package/dist/sdk/runtime-primitives.js.map +1 -0
- package/dist/sdk/runtime.d.ts +15 -0
- package/dist/sdk/runtime.js +16 -3
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/structured-mutations.d.ts +21 -0
- package/dist/sdk/structured-mutations.js +375 -0
- package/dist/sdk/structured-mutations.js.map +1 -0
- package/docs/COMMANDS.md +85 -5
- package/docs/RELATIONSHIP_GRAPH.md +48 -7
- package/docs/SDK.md +78 -3
- package/marketplace.json +2 -2
- package/package.json +1 -1
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/packages/pm-vcs/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-claude/README.md +5 -3
- package/plugins/pm-claude/commands/pm-init.md +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/dist/cli-bundle/chunks/chunk-3AO5VSDR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-3LPFHE3P.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-3VY6MIEO.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4F6BWJ4J.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5IZJWSDB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-5UX66S6U.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6C2ZZX5Z.js +0 -286
- package/dist/cli-bundle/chunks/chunk-6C2ZZX5Z.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6VIJ7UA5.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6XMUURSS.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-C3KD7U3T.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-CFHAODHQ.js +0 -334
- package/dist/cli-bundle/chunks/chunk-CFHAODHQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DAQ45GCS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-E6LEMURX.js +0 -249
- package/dist/cli-bundle/chunks/chunk-E6LEMURX.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-G3COA6GS.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GSJSM5BJ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-GVI6FAFG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-GVT754PX.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-HEWM6CEN.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-IJNK6WW2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-INSTSQNZ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-J4FBIFU6.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-KZEANWJS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-LPEYZRUR.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-NHT3F4WZ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-OV7MSW3I.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-P7JTWYLH.js +0 -246
- package/dist/cli-bundle/chunks/chunk-P7JTWYLH.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-R5U2VZ3K.js +0 -344
- package/dist/cli-bundle/chunks/chunk-R5U2VZ3K.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-SG74J6MV.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-T44FMVRL.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-THAOZG4U.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UQLXSG72.js +0 -289
- package/dist/cli-bundle/chunks/chunk-UQLXSG72.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UZDQXNUB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-WVA4DVNV.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-CFVG75P3.js.map +0 -1
- package/dist/cli-bundle/chunks/register-list-query-E7UVY4TN.js.map +0 -7
- package/dist/cli-bundle/chunks/register-mutation-4VJTXBZW.js.map +0 -7
- package/dist/cli-bundle/chunks/register-mutation-IQ55E25C.js.map +0 -1
- /package/dist/cli-bundle/chunks/{append-E6V54WOQ.js.map → append-7OVFYR3C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-NNJ3EFIT.js.map → append-DFETHAZL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QJKL5PHS.js.map → chunk-7656MAUL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-X6K5XTTN.js.map → chunk-7W2UAXXT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-5OK4UGFV.js.map → chunk-BXNDKOR2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KSPWRNVP.js.map → chunk-CPX275C6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JH2ZSLO3.js.map → chunk-DZRV2OPA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-L7BH7IWU.js.map → chunk-E5XMKOSB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CQTQKUUV.js.map → chunk-EWJWSNRU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3MCTMJXI.js.map → chunk-FPBMLYPI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DVDBQA3B.js.map → chunk-GTK4DTEW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GIQSU6S2.js.map → chunk-KBLZ3AA5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-XJF7CDNH.js.map → chunk-KH44WBAT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GV2262OF.js.map → chunk-LAV26CQG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VDO2JMD4.js.map → chunk-LVC72YRD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZYPFOO3L.js.map → chunk-MATHDCGG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-AOEOYL3S.js.map → chunk-O4BCOJTZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RJO3YAFM.js.map → chunk-OCUBRA6D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-I577UHC7.js.map → chunk-OR42SO64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZOJ3LR7O.js.map → chunk-OY7DMU5P.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZV2NTVMJ.js.map → chunk-PONKZPCJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UX6SSO2I.js.map → chunk-PZC2FUOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VQIHNHMJ.js.map → chunk-QIH77CAG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-R3EWPG4A.js.map → chunk-QJIKE24M.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HB3P4M52.js.map → chunk-TRSHFPRZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HRW7GF6T.js.map → chunk-UCBDQI5E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4U4Z6AHI.js.map → chunk-V22ZPOKN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JM6YAXTR.js.map → chunk-VHXHVTUU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-D6NXDNP3.js.map → chunk-VLRGDBLY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JAPE62Y5.js.map → chunk-VNTCM3VW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FDHPAVVB.js.map → chunk-VXOOB6YX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HQ3SB4CN.js.map → chunk-X3W65QK3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RZJLNXFG.js.map → chunk-XJTABV3X.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TYHJDFYW.js.map → chunk-ZVZGXPQ5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-SDA426VT.js.map → close-many-5RZXVN4J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-UTZANOCQ.js.map → close-many-RZVTUGBG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-LZN6FXXC.js.map → comments-TPU7QRBL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-VBQ345ND.js.map → comments-Z4KV6FU3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-GG4RBCGC.js.map → create-EIFBIVNQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-JBC5KUW6.js.map → create-RGSPN5GD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-FI4O6NQS.js.map → deps-UH5EQQUY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-DELOO4TL.js.map → deps-YG7UF3VR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-6Z2MP526.js.map → docs-G32TK6XS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-2UYBP5D6.js.map → docs-JWWNRC27.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-HKEAN5MA.js.map → files-3H32UQ4K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-HEUGSJZL.js.map → files-4ALMCSKB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-7NDVP3PT.js.map → history-compact-77BT2LUB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-65YVN5DB.js.map → history-compact-VCKGTX64.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-7YBL4XSG.js.map → history-redact-LJPZPNFA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-IZGNJBU4.js.map → history-redact-PWTTJ3XS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-7M4PYQUH.js.map → history-repair-I7CBNCV3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-GNGETJLI.js.map → history-repair-YTDZRK5E.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-3YXDRWFT.js.map → learnings-CYNOICKR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-ALC6IMNL.js.map → learnings-KTYW3AL7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-7JMLQ447.js.map → notes-FGO63FXL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-JFCLTC5C.js.map → notes-ZERD3KB2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-T3XB3WTK.js.map → plan-OFJUBIM5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-KOIPWVOZ.js.map → plan-SGCDDTYR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-OILJHKUW.js.map → profile-3THJPIQY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-RJXA7PGS.js.map → profile-XEZAMMBW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-ZH65GZFB.js.map → restore-6TDVSATY.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-L6IAGOD7.js.map → restore-RSL7C7LO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-4ERWM5QJ.js.map → schema-HFXFSGPG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-55DL3Q52.js.map → schema-TPVTIJPO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-FW6FKDOP.js.map → update-LJZCL5SI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-TJHSPRPT.js.map → update-SIA7LH5Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-PWXX5WHO.js.map → update-many-BDBZVGQL.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-NNALYQCN.js.map → update-many-MOY3A5B3.js.map} +0 -0
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -2,27 +2,38 @@ import {
|
|
|
2
2
|
ITEM_LATEST_TIMESTAMP_FIELDS,
|
|
3
3
|
ITEM_UNION_COLLECTION_FIELDS,
|
|
4
4
|
MERGE_DRIVER_ARTIFACT_VALUES,
|
|
5
|
+
_testOnlyItemTransaction,
|
|
6
|
+
commitItemMutations,
|
|
7
|
+
itemDocumentToMutationOptions,
|
|
5
8
|
mergeHistoryStreams,
|
|
6
9
|
mergeItemDocuments,
|
|
7
10
|
mergeJsonDocuments,
|
|
8
11
|
mergeRelationshipEventStreams,
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
parseAtomicMutationControls,
|
|
13
|
+
parseItemMutationBatch,
|
|
14
|
+
runMergeDriver,
|
|
15
|
+
validateItemMutationRows
|
|
16
|
+
} from "./chunks/chunk-SY4SFZSD.js";
|
|
11
17
|
import {
|
|
12
18
|
applyBootstrapPagerPolicy,
|
|
13
19
|
applyInvocationAuthorOverride,
|
|
14
20
|
coalesceRepeatedListFlags,
|
|
15
21
|
createPmCliProgram,
|
|
22
|
+
describeUnknownError,
|
|
23
|
+
isCommanderError,
|
|
16
24
|
listAliasPluralKeys,
|
|
17
25
|
mergeLinkedTestTwoTokenEntries,
|
|
18
26
|
normalizeBootstrapInvocation,
|
|
19
27
|
normalizeLegacyExtensionActionSyntax,
|
|
28
|
+
normalizeThrownExitCode,
|
|
20
29
|
parseBootstrapCommandName,
|
|
21
30
|
parseBootstrapGlobalOptions,
|
|
22
31
|
parseBootstrapHelpRequest,
|
|
23
32
|
parseBootstrapTypeValue,
|
|
24
|
-
|
|
25
|
-
|
|
33
|
+
readThrownExitCode,
|
|
34
|
+
stripGlobalBootstrapTokens,
|
|
35
|
+
wrapThrownErrorForSentry
|
|
36
|
+
} from "./chunks/chunk-ADBTSVGK.js";
|
|
26
37
|
import {
|
|
27
38
|
PM_CLI_EXPECTED_ERROR_NAME,
|
|
28
39
|
PmClient,
|
|
@@ -102,6 +113,7 @@ import {
|
|
|
102
113
|
runCompletion,
|
|
103
114
|
runGuide,
|
|
104
115
|
runReindex,
|
|
116
|
+
runWithActiveExtensions,
|
|
105
117
|
schema,
|
|
106
118
|
schemaAddField,
|
|
107
119
|
schemaAddStatus,
|
|
@@ -139,36 +151,43 @@ import {
|
|
|
139
151
|
update,
|
|
140
152
|
upgrade,
|
|
141
153
|
validate
|
|
142
|
-
} from "./chunks/chunk-
|
|
143
|
-
import "./chunks/chunk-
|
|
154
|
+
} from "./chunks/chunk-AMJPSANK.js";
|
|
155
|
+
import "./chunks/chunk-7W2UAXXT.js";
|
|
144
156
|
import {
|
|
145
157
|
_testOnlyConfigCommand,
|
|
146
158
|
runConfig
|
|
147
|
-
} from "./chunks/chunk-
|
|
159
|
+
} from "./chunks/chunk-V22ZPOKN.js";
|
|
148
160
|
import {
|
|
149
161
|
DEFAULT_CHILD_SAMPLE_LIMIT,
|
|
150
162
|
DEFAULT_EVAL_QUERIES_RELATIVE_PATH,
|
|
163
|
+
GRAPH_DURABLE_CACHE_MIN_ITEMS,
|
|
164
|
+
GRAPH_DURABLE_CACHE_VERSION,
|
|
151
165
|
MAX_CHILD_PROJECTION_ITEMS,
|
|
152
|
-
|
|
166
|
+
analyzeGraphImpact,
|
|
167
|
+
analyzeKnowledgeGraph,
|
|
168
|
+
analyzeRelationshipExecution,
|
|
169
|
+
analyzeRelationshipSchedule,
|
|
153
170
|
buildItemChildrenRollup,
|
|
154
171
|
buildItemSchedule,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
hierarchyDescendants,
|
|
172
|
+
clearDurableGraphCache,
|
|
173
|
+
compareRelationshipSnapshots,
|
|
174
|
+
computeRelationshipCentrality,
|
|
175
|
+
durableGraphCachePath,
|
|
176
|
+
durableGraphCacheStatus,
|
|
177
|
+
findRelationshipCutStructure,
|
|
178
|
+
graphAuditBaselinePath,
|
|
163
179
|
itemHasSchedule,
|
|
164
|
-
|
|
165
|
-
|
|
180
|
+
loadGraphAuditBaseline,
|
|
181
|
+
openDurableGraphCache,
|
|
166
182
|
parseGraphSubcommand,
|
|
183
|
+
persistDurableGraphResult,
|
|
167
184
|
planRelationshipRemediation,
|
|
168
185
|
runEval,
|
|
169
186
|
runGraph,
|
|
170
|
-
runSearch
|
|
171
|
-
|
|
187
|
+
runSearch,
|
|
188
|
+
saveGraphAuditBaseline,
|
|
189
|
+
shouldPersistDurableGraphCache
|
|
190
|
+
} from "./chunks/chunk-AS4SAZ5R.js";
|
|
172
191
|
import {
|
|
173
192
|
TELEMETRY_SUBCOMMANDS,
|
|
174
193
|
_testOnlyHealthCommand,
|
|
@@ -198,8 +217,8 @@ import {
|
|
|
198
217
|
runWorkspaceTransactionGc,
|
|
199
218
|
scanHistoryAuthorAttribution,
|
|
200
219
|
summarizeContextPreflight
|
|
201
|
-
} from "./chunks/chunk-
|
|
202
|
-
import "./chunks/chunk-
|
|
220
|
+
} from "./chunks/chunk-RPESLSO5.js";
|
|
221
|
+
import "./chunks/chunk-O4BCOJTZ.js";
|
|
203
222
|
import {
|
|
204
223
|
INIT_AGENT_GUIDANCE_MODE_VALUES,
|
|
205
224
|
PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,
|
|
@@ -215,7 +234,7 @@ import {
|
|
|
215
234
|
runInit,
|
|
216
235
|
runInitAgentGuidance,
|
|
217
236
|
summarizeInitResult
|
|
218
|
-
} from "./chunks/chunk-
|
|
237
|
+
} from "./chunks/chunk-FO6OSVEN.js";
|
|
219
238
|
import {
|
|
220
239
|
CONTEXT_EVALUATION_METRIC_NAMES,
|
|
221
240
|
CONTEXT_PACKING_PROFILES,
|
|
@@ -238,33 +257,33 @@ import {
|
|
|
238
257
|
scoreContextCandidates,
|
|
239
258
|
scoreContextCandidatesWithActiveExtensions,
|
|
240
259
|
summarizeContextEvaluationReports
|
|
241
|
-
} from "./chunks/chunk-
|
|
260
|
+
} from "./chunks/chunk-ZTVA4KLN.js";
|
|
242
261
|
import {
|
|
243
262
|
refreshSemanticEmbeddingsForMutatedItems,
|
|
244
263
|
runSemanticRefreshWorker
|
|
245
|
-
} from "./chunks/chunk-
|
|
264
|
+
} from "./chunks/chunk-K55VMLSS.js";
|
|
246
265
|
import {
|
|
247
266
|
HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,
|
|
248
267
|
assertHistoryCompactTarget,
|
|
249
268
|
runHistoryCompact,
|
|
250
269
|
runHistoryCompactBulk
|
|
251
|
-
} from "./chunks/chunk-
|
|
270
|
+
} from "./chunks/chunk-4QOB7L7I.js";
|
|
252
271
|
import "./chunks/chunk-PNTULOGU.js";
|
|
253
272
|
import {
|
|
254
273
|
analyzeReconciliationDiscard,
|
|
255
274
|
assertHistoryRepairTarget,
|
|
256
275
|
runHistoryRepair,
|
|
257
276
|
runHistoryRepairAll
|
|
258
|
-
} from "./chunks/chunk-
|
|
259
|
-
import "./chunks/chunk-
|
|
260
|
-
import "./chunks/chunk-
|
|
261
|
-
import "./chunks/chunk-
|
|
262
|
-
import "./chunks/chunk-
|
|
277
|
+
} from "./chunks/chunk-GKX4NJ7U.js";
|
|
278
|
+
import "./chunks/chunk-E5XMKOSB.js";
|
|
279
|
+
import "./chunks/chunk-ZVZGXPQ5.js";
|
|
280
|
+
import "./chunks/chunk-VHXHVTUU.js";
|
|
281
|
+
import "./chunks/chunk-DZRV2OPA.js";
|
|
263
282
|
import {
|
|
264
283
|
PLAN_SHOW_DEPTH_VALUES,
|
|
265
284
|
PLAN_SUBCOMMANDS,
|
|
266
285
|
PLAN_TEMPLATE_NAMES
|
|
267
|
-
} from "./chunks/chunk-
|
|
286
|
+
} from "./chunks/chunk-VLRGDBLY.js";
|
|
268
287
|
import "./chunks/chunk-YUSOJDWM.js";
|
|
269
288
|
import {
|
|
270
289
|
PROFILE_SUBCOMMANDS,
|
|
@@ -284,7 +303,7 @@ import {
|
|
|
284
303
|
runTemplatesList,
|
|
285
304
|
runTemplatesSave,
|
|
286
305
|
runTemplatesShow
|
|
287
|
-
} from "./chunks/chunk-
|
|
306
|
+
} from "./chunks/chunk-VNTCM3VW.js";
|
|
288
307
|
import {
|
|
289
308
|
ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
290
309
|
APPEND_FLAG_CONTRACTS,
|
|
@@ -409,8 +428,7 @@ import {
|
|
|
409
428
|
resolveSubcommandFlagContractsForCommand,
|
|
410
429
|
toCompletionFlagString,
|
|
411
430
|
withFlagAliasMetadata
|
|
412
|
-
} from "./chunks/chunk-
|
|
413
|
-
import "./chunks/chunk-3AO5VSDR.js";
|
|
431
|
+
} from "./chunks/chunk-P7MTHPJQ.js";
|
|
414
432
|
import {
|
|
415
433
|
PM_GITATTRIBUTES_END,
|
|
416
434
|
PM_GITATTRIBUTES_START,
|
|
@@ -418,8 +436,8 @@ import {
|
|
|
418
436
|
buildMergeAttributePatterns,
|
|
419
437
|
refreshMergeAttributeFenceIfInstalled,
|
|
420
438
|
runMergeInstall
|
|
421
|
-
} from "./chunks/chunk-
|
|
422
|
-
import "./chunks/chunk-
|
|
439
|
+
} from "./chunks/chunk-7RW4JCU2.js";
|
|
440
|
+
import "./chunks/chunk-BXNDKOR2.js";
|
|
423
441
|
import {
|
|
424
442
|
isErrnoError,
|
|
425
443
|
limitAnnotationEntries,
|
|
@@ -429,7 +447,7 @@ import {
|
|
|
429
447
|
resolveAnnotationInput,
|
|
430
448
|
runAnnotationCommand,
|
|
431
449
|
wrapOwnershipConflict
|
|
432
|
-
} from "./chunks/chunk-
|
|
450
|
+
} from "./chunks/chunk-X3W65QK3.js";
|
|
433
451
|
import {
|
|
434
452
|
LINKED_TEST_ENV_NAME_PATTERN,
|
|
435
453
|
LINKED_TEST_PM_CONTEXT_MODE_VALUES,
|
|
@@ -445,19 +463,29 @@ import {
|
|
|
445
463
|
parseLinkedTestMinLines,
|
|
446
464
|
parseLinkedTestRegexList,
|
|
447
465
|
parseLinkedTestStringList
|
|
448
|
-
} from "./chunks/chunk-
|
|
466
|
+
} from "./chunks/chunk-4PUUNQDV.js";
|
|
449
467
|
import "./chunks/chunk-SF3DT5HJ.js";
|
|
450
468
|
import {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
469
|
+
auditWorkspaceRelationshipGraph,
|
|
470
|
+
collectDuplicateRelationshipEdgeGroups,
|
|
471
|
+
collectOrderingCycles,
|
|
472
|
+
computeRelationshipDominators,
|
|
473
|
+
detectRelationshipCommunities,
|
|
474
|
+
diffRelationshipAuditSnapshots,
|
|
475
|
+
enumerateRelationshipPaths,
|
|
476
|
+
findRedundantRelationshipEdges,
|
|
477
|
+
forEachMatchedRelationshipEdge,
|
|
478
|
+
formatDuplicateEdgeGroup,
|
|
479
|
+
hierarchyAncestors,
|
|
480
|
+
hierarchyDescendants,
|
|
481
|
+
orderingPredecessors,
|
|
482
|
+
orderingSuccessors
|
|
483
|
+
} from "./chunks/chunk-PWDEHT3L.js";
|
|
456
484
|
import {
|
|
457
485
|
SUPPRESS_HOST_OUTPUT_MARKER,
|
|
458
486
|
isHostOutputSuppressed,
|
|
459
487
|
suppressHostOutput
|
|
460
|
-
} from "./chunks/chunk-
|
|
488
|
+
} from "./chunks/chunk-LZYP423P.js";
|
|
461
489
|
import "./chunks/chunk-YQWCZ5AC.js";
|
|
462
490
|
import "./chunks/chunk-IAQE32BI.js";
|
|
463
491
|
import "./chunks/chunk-JSLT7WVE.js";
|
|
@@ -470,21 +498,24 @@ import {
|
|
|
470
498
|
resetWorkspaceGraphCache,
|
|
471
499
|
runDeps,
|
|
472
500
|
workspaceGraphCache
|
|
473
|
-
} from "./chunks/chunk-
|
|
501
|
+
} from "./chunks/chunk-F2LBF7XJ.js";
|
|
474
502
|
import {
|
|
475
503
|
assembleWorkspaceRelationshipGraph,
|
|
476
504
|
collectDanglingDependencyReferences,
|
|
477
|
-
|
|
478
|
-
|
|
505
|
+
collectDuplicateDependencyRows,
|
|
506
|
+
collectMissingDependencyTargetIds,
|
|
507
|
+
normalizeDependencyGraphTarget,
|
|
508
|
+
resolveWorkspaceRelationshipKindRegistry
|
|
509
|
+
} from "./chunks/chunk-Z75ONV25.js";
|
|
479
510
|
import "./chunks/chunk-6X5MZ5R2.js";
|
|
480
511
|
import {
|
|
481
512
|
runDocs
|
|
482
|
-
} from "./chunks/chunk-
|
|
513
|
+
} from "./chunks/chunk-PZC2FUOQ.js";
|
|
483
514
|
import "./chunks/chunk-ZHBI2AP7.js";
|
|
484
515
|
import {
|
|
485
516
|
runFiles,
|
|
486
517
|
runFilesDiscover
|
|
487
|
-
} from "./chunks/chunk-
|
|
518
|
+
} from "./chunks/chunk-VXOOB6YX.js";
|
|
488
519
|
import {
|
|
489
520
|
applyPathMigrations,
|
|
490
521
|
applyStandaloneNote,
|
|
@@ -501,7 +532,7 @@ import {
|
|
|
501
532
|
runLinkedArtifacts,
|
|
502
533
|
sortLinkedArtifacts,
|
|
503
534
|
validateLinkedPaths
|
|
504
|
-
} from "./chunks/chunk-
|
|
535
|
+
} from "./chunks/chunk-OCUBRA6D.js";
|
|
505
536
|
import "./chunks/chunk-D6HZN36B.js";
|
|
506
537
|
import {
|
|
507
538
|
activateExtensionForTest,
|
|
@@ -574,11 +605,12 @@ import "./chunks/chunk-SR3JOATZ.js";
|
|
|
574
605
|
import "./chunks/chunk-FSRHYUDA.js";
|
|
575
606
|
import "./chunks/chunk-UZLJOEAC.js";
|
|
576
607
|
import "./chunks/chunk-WWNL6WMH.js";
|
|
577
|
-
import "./chunks/chunk-
|
|
608
|
+
import "./chunks/chunk-OR42SO64.js";
|
|
578
609
|
import {
|
|
610
|
+
createStdinTokenResolver,
|
|
579
611
|
parseTags
|
|
580
|
-
} from "./chunks/chunk-
|
|
581
|
-
import "./chunks/chunk-
|
|
612
|
+
} from "./chunks/chunk-YCIUJJOD.js";
|
|
613
|
+
import "./chunks/chunk-LVC72YRD.js";
|
|
582
614
|
import "./chunks/chunk-72LQ4TKV.js";
|
|
583
615
|
import "./chunks/chunk-KWYX6ZIR.js";
|
|
584
616
|
import {
|
|
@@ -607,10 +639,10 @@ import {
|
|
|
607
639
|
computeActionabilityReport,
|
|
608
640
|
resolveItemBlockers
|
|
609
641
|
} from "./chunks/chunk-TVYYO5A7.js";
|
|
610
|
-
import "./chunks/chunk-
|
|
642
|
+
import "./chunks/chunk-QG4GFLQ6.js";
|
|
611
643
|
import {
|
|
612
644
|
getItemAt
|
|
613
|
-
} from "./chunks/chunk-
|
|
645
|
+
} from "./chunks/chunk-VZIZB6QH.js";
|
|
614
646
|
import {
|
|
615
647
|
_testOnly,
|
|
616
648
|
applyHistoryPatch,
|
|
@@ -621,9 +653,10 @@ import {
|
|
|
621
653
|
resolveHistorySubject,
|
|
622
654
|
resolveHistoryTarget,
|
|
623
655
|
runHistoryRedact
|
|
624
|
-
} from "./chunks/chunk-
|
|
625
|
-
import
|
|
626
|
-
|
|
656
|
+
} from "./chunks/chunk-2L6ZP22J.js";
|
|
657
|
+
import {
|
|
658
|
+
resolveAuthor
|
|
659
|
+
} from "./chunks/chunk-YRYYFGV3.js";
|
|
627
660
|
import {
|
|
628
661
|
BASELINE_ITEM_FORMAT_VERSION,
|
|
629
662
|
CURRENT_ITEM_FORMAT_VERSION,
|
|
@@ -724,7 +757,7 @@ async function flushTelemetryQueue() {
|
|
|
724
757
|
!(function() {
|
|
725
758
|
try {
|
|
726
759
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
727
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
760
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "94a76dca-4199-582e-882e-9525a42319db");
|
|
728
761
|
} catch (e2) {
|
|
729
762
|
}
|
|
730
763
|
})();
|
|
@@ -747,236 +780,6 @@ async function flushTelemetryQueue() {
|
|
|
747
780
|
}
|
|
748
781
|
})();
|
|
749
782
|
|
|
750
|
-
// dist/sdk/item-transaction.js
|
|
751
|
-
import path from "node:path";
|
|
752
|
-
!(function() {
|
|
753
|
-
try {
|
|
754
|
-
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
755
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "2f005f55-4b5d-5f78-b688-132457f22f99");
|
|
756
|
-
} catch (e2) {
|
|
757
|
-
}
|
|
758
|
-
})();
|
|
759
|
-
async function readItemSnapshot(pmRoot, id) {
|
|
760
|
-
try {
|
|
761
|
-
const located = await get(id, {}, { pmRoot });
|
|
762
|
-
const item = located.item;
|
|
763
|
-
return {
|
|
764
|
-
id: item.id,
|
|
765
|
-
closedAt: item.closed_at,
|
|
766
|
-
updatedAt: item.updated_at
|
|
767
|
-
};
|
|
768
|
-
} catch (error) {
|
|
769
|
-
if (error instanceof PmCliError && error.exitCode === EXIT_CODE.NOT_FOUND) {
|
|
770
|
-
return void 0;
|
|
771
|
-
}
|
|
772
|
-
throw error;
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
function deriveStepId(mutation, index) {
|
|
776
|
-
const sanitizedTarget = mutation.id.replaceAll(/[^a-zA-Z0-9._-]/gu, "_");
|
|
777
|
-
return `${index + 1}-${mutation.op}-${sanitizedTarget}`;
|
|
778
|
-
}
|
|
779
|
-
function bulkHistoryMarker(transactionId, stepId, phase) {
|
|
780
|
-
return `bulk-item-transaction ${transactionId} ${stepId} ${phase}`;
|
|
781
|
-
}
|
|
782
|
-
async function isUpdateMarkerApplied(pmRoot, canonicalId, transactionId, stepId) {
|
|
783
|
-
const entries = await readHistoryEntries(path.join(pmRoot, "history", `${canonicalId}.jsonl`), canonicalId);
|
|
784
|
-
const applyMarker = bulkHistoryMarker(transactionId, stepId, "apply");
|
|
785
|
-
const compensateMarker = bulkHistoryMarker(transactionId, stepId, "compensate");
|
|
786
|
-
for (let index = entries.length - 1; index >= 0; index -= 1) {
|
|
787
|
-
const message = entries[index].message;
|
|
788
|
-
if (message === applyMarker) {
|
|
789
|
-
return true;
|
|
790
|
-
}
|
|
791
|
-
if (message === compensateMarker) {
|
|
792
|
-
return false;
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
return false;
|
|
796
|
-
}
|
|
797
|
-
async function prepareRestoreCompensation(pmRoot, mutation) {
|
|
798
|
-
const snapshot = await readItemSnapshot(pmRoot, mutation.id);
|
|
799
|
-
if (snapshot?.updatedAt === void 0) {
|
|
800
|
-
throw new PmCliError(`Bulk ${mutation.op} target ${mutation.id} does not exist or has no restorable version`, EXIT_CODE.NOT_FOUND);
|
|
801
|
-
}
|
|
802
|
-
return { target_updated_at: snapshot.updatedAt };
|
|
803
|
-
}
|
|
804
|
-
async function compensateByRestore(config2, itemId, stepId, data) {
|
|
805
|
-
const target = data !== null && typeof data === "object" && !Array.isArray(data) ? data.target_updated_at : void 0;
|
|
806
|
-
if (typeof target !== "string") {
|
|
807
|
-
return;
|
|
808
|
-
}
|
|
809
|
-
if (await readItemSnapshot(config2.pmRoot, itemId) === void 0) {
|
|
810
|
-
return;
|
|
811
|
-
}
|
|
812
|
-
await restore(itemId, target, {
|
|
813
|
-
force: true,
|
|
814
|
-
author: config2.author,
|
|
815
|
-
message: bulkHistoryMarker(config2.transactionId, stepId, "compensate")
|
|
816
|
-
}, { pmRoot: config2.pmRoot });
|
|
817
|
-
}
|
|
818
|
-
function buildCreateStep(config2, mutation, stepId) {
|
|
819
|
-
return {
|
|
820
|
-
id: stepId,
|
|
821
|
-
async inspect() {
|
|
822
|
-
const snapshot = await readItemSnapshot(config2.pmRoot, mutation.id);
|
|
823
|
-
if (snapshot === void 0) {
|
|
824
|
-
return { state: "pending" };
|
|
825
|
-
}
|
|
826
|
-
return { state: "applied", result: { id: snapshot.id, op: "create" } };
|
|
827
|
-
},
|
|
828
|
-
async apply() {
|
|
829
|
-
const created = await create({ ...mutation.options, author: config2.author, id: mutation.id }, { pmRoot: config2.pmRoot });
|
|
830
|
-
const createdItem = created.item;
|
|
831
|
-
return { id: String(createdItem.id), op: "create" };
|
|
832
|
-
},
|
|
833
|
-
async compensate() {
|
|
834
|
-
const snapshot = await readItemSnapshot(config2.pmRoot, mutation.id);
|
|
835
|
-
if (snapshot === void 0) {
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
if (config2.createCompensation === "delete") {
|
|
839
|
-
await deleteItem(mutation.id, {
|
|
840
|
-
force: true,
|
|
841
|
-
author: config2.author,
|
|
842
|
-
message: `Compensate interrupted bulk transaction ${config2.transactionId}`
|
|
843
|
-
}, { pmRoot: config2.pmRoot });
|
|
844
|
-
return;
|
|
845
|
-
}
|
|
846
|
-
if (snapshot.closedAt !== void 0) {
|
|
847
|
-
return;
|
|
848
|
-
}
|
|
849
|
-
await close(mutation.id, `Compensated: interrupted bulk transaction ${config2.transactionId}`, { force: true, author: config2.author }, { pmRoot: config2.pmRoot });
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
}
|
|
853
|
-
function buildUpdateStep(config2, mutation, stepId) {
|
|
854
|
-
return {
|
|
855
|
-
id: stepId,
|
|
856
|
-
async inspect() {
|
|
857
|
-
const snapshot = await readItemSnapshot(config2.pmRoot, mutation.id);
|
|
858
|
-
if (snapshot === void 0) {
|
|
859
|
-
return { state: "pending" };
|
|
860
|
-
}
|
|
861
|
-
const applied = await isUpdateMarkerApplied(config2.pmRoot, snapshot.id, config2.transactionId, stepId);
|
|
862
|
-
if (!applied) {
|
|
863
|
-
return { state: "pending" };
|
|
864
|
-
}
|
|
865
|
-
return { state: "applied", result: { id: snapshot.id, op: "update" } };
|
|
866
|
-
},
|
|
867
|
-
async prepareCompensation() {
|
|
868
|
-
return prepareRestoreCompensation(config2.pmRoot, mutation);
|
|
869
|
-
},
|
|
870
|
-
async apply() {
|
|
871
|
-
const updated = await update(mutation.id, {
|
|
872
|
-
...mutation.options,
|
|
873
|
-
author: config2.author,
|
|
874
|
-
message: bulkHistoryMarker(config2.transactionId, stepId, "apply")
|
|
875
|
-
}, { pmRoot: config2.pmRoot });
|
|
876
|
-
const updatedItem = updated.item;
|
|
877
|
-
return { id: String(updatedItem.id), op: "update" };
|
|
878
|
-
},
|
|
879
|
-
async compensate(data) {
|
|
880
|
-
await compensateByRestore(config2, mutation.id, stepId, data);
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
}
|
|
884
|
-
function buildCloseStep(config2, mutation, stepId) {
|
|
885
|
-
return {
|
|
886
|
-
id: stepId,
|
|
887
|
-
// An already-terminal target counts as applied: closing it again would
|
|
888
|
-
// fight legitimate prior closure, and recovery must adopt completed work.
|
|
889
|
-
async inspect() {
|
|
890
|
-
const snapshot = await readItemSnapshot(config2.pmRoot, mutation.id);
|
|
891
|
-
if (snapshot?.closedAt === void 0) {
|
|
892
|
-
return { state: "pending" };
|
|
893
|
-
}
|
|
894
|
-
return { state: "applied", result: { id: snapshot.id, op: "close" } };
|
|
895
|
-
},
|
|
896
|
-
async prepareCompensation() {
|
|
897
|
-
return prepareRestoreCompensation(config2.pmRoot, mutation);
|
|
898
|
-
},
|
|
899
|
-
async apply() {
|
|
900
|
-
const closed = await close(mutation.id, mutation.reason, { ...mutation.options, author: config2.author }, { pmRoot: config2.pmRoot });
|
|
901
|
-
const closedItem = closed.item;
|
|
902
|
-
return { id: String(closedItem.id), op: "close" };
|
|
903
|
-
},
|
|
904
|
-
async compensate(data) {
|
|
905
|
-
await compensateByRestore(config2, mutation.id, stepId, data);
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
}
|
|
909
|
-
function buildStepForMutation(config2, mutation, index) {
|
|
910
|
-
const stepId = deriveStepId(mutation, index);
|
|
911
|
-
if (mutation.op === "create") {
|
|
912
|
-
return buildCreateStep(config2, mutation, stepId);
|
|
913
|
-
}
|
|
914
|
-
if (mutation.op === "update") {
|
|
915
|
-
return buildUpdateStep(config2, mutation, stepId);
|
|
916
|
-
}
|
|
917
|
-
return buildCloseStep(config2, mutation, stepId);
|
|
918
|
-
}
|
|
919
|
-
function assertValidBulkMutation(mutation, index) {
|
|
920
|
-
if (mutation === null || typeof mutation !== "object" || Array.isArray(mutation)) {
|
|
921
|
-
throw new TypeError(`Bulk mutation ${index + 1} must be an object`);
|
|
922
|
-
}
|
|
923
|
-
if (!["create", "update", "close"].includes(mutation.op)) {
|
|
924
|
-
throw new TypeError(`Bulk mutation ${index + 1} op must be create, update, or close`);
|
|
925
|
-
}
|
|
926
|
-
if (typeof mutation.id !== "string" || mutation.id.trim().length === 0) {
|
|
927
|
-
throw new TypeError(`Bulk mutation ${index + 1} requires a non-empty id`);
|
|
928
|
-
}
|
|
929
|
-
if (mutation.op === "close" && (typeof mutation.reason !== "string" || mutation.reason.trim().length === 0)) {
|
|
930
|
-
throw new TypeError(`Bulk close mutation ${index + 1} requires a non-empty reason`);
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
async function commitItemMutations(options) {
|
|
934
|
-
const mutations = [...options.mutations];
|
|
935
|
-
if (mutations.length === 0) {
|
|
936
|
-
throw new TypeError("Bulk item transaction requires at least one mutation");
|
|
937
|
-
}
|
|
938
|
-
for (const [index, mutation] of mutations.entries()) {
|
|
939
|
-
assertValidBulkMutation(mutation, index);
|
|
940
|
-
}
|
|
941
|
-
const createCompensation = options.createCompensation ?? "close";
|
|
942
|
-
if (!["close", "delete"].includes(createCompensation)) {
|
|
943
|
-
throw new TypeError("Bulk item transaction createCompensation must be close or delete");
|
|
944
|
-
}
|
|
945
|
-
const stepConfig = {
|
|
946
|
-
pmRoot: options.pmRoot,
|
|
947
|
-
author: options.author,
|
|
948
|
-
transactionId: options.transactionId,
|
|
949
|
-
createCompensation
|
|
950
|
-
};
|
|
951
|
-
const committed = await commitWorkspaceTransaction({
|
|
952
|
-
pmRoot: options.pmRoot,
|
|
953
|
-
transactionId: options.transactionId,
|
|
954
|
-
author: options.author,
|
|
955
|
-
steps: mutations.map((mutation, index) => buildStepForMutation(stepConfig, mutation, index)),
|
|
956
|
-
...options.lockTtlSeconds === void 0 ? {} : { lockTtlSeconds: options.lockTtlSeconds },
|
|
957
|
-
...options.lockWaitMs === void 0 ? {} : { lockWaitMs: options.lockWaitMs },
|
|
958
|
-
...options.onTransition === void 0 ? {} : { onTransition: options.onTransition }
|
|
959
|
-
});
|
|
960
|
-
const results = {};
|
|
961
|
-
for (const [stepId, value] of Object.entries(committed.results)) {
|
|
962
|
-
results[stepId] = value;
|
|
963
|
-
}
|
|
964
|
-
return {
|
|
965
|
-
transactionId: committed.transactionId,
|
|
966
|
-
status: "committed",
|
|
967
|
-
recovered: committed.recovered,
|
|
968
|
-
results
|
|
969
|
-
};
|
|
970
|
-
}
|
|
971
|
-
var _testOnlyItemTransaction = {
|
|
972
|
-
buildCreateStep,
|
|
973
|
-
bulkHistoryMarker,
|
|
974
|
-
compensateByRestore,
|
|
975
|
-
deriveStepId,
|
|
976
|
-
isUpdateMarkerApplied,
|
|
977
|
-
readItemSnapshot
|
|
978
|
-
};
|
|
979
|
-
|
|
980
783
|
// dist/sdk/define.js
|
|
981
784
|
!(function() {
|
|
982
785
|
try {
|
|
@@ -1053,7 +856,7 @@ function defineOnIndexHook(hook) {
|
|
|
1053
856
|
!(function() {
|
|
1054
857
|
try {
|
|
1055
858
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
1056
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
859
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "42f4193d-7f0c-50b4-b12c-a5b8add83520");
|
|
1057
860
|
} catch (e2) {
|
|
1058
861
|
}
|
|
1059
862
|
})();
|
|
@@ -1129,6 +932,8 @@ export {
|
|
|
1129
932
|
GC_FLAG_CONTRACTS,
|
|
1130
933
|
GET_FLAG_CONTRACTS,
|
|
1131
934
|
GLOBAL_FLAG_CONTRACTS,
|
|
935
|
+
GRAPH_DURABLE_CACHE_MIN_ITEMS,
|
|
936
|
+
GRAPH_DURABLE_CACHE_VERSION,
|
|
1132
937
|
GRAPH_SUBCOMMAND_VALUES,
|
|
1133
938
|
GUIDE_FLAG_CONTRACTS,
|
|
1134
939
|
HEALTH_FLAG_CONTRACTS,
|
|
@@ -1248,6 +1053,7 @@ export {
|
|
|
1248
1053
|
analyzeKnowledgeGraph,
|
|
1249
1054
|
analyzeReconciliationDiscard,
|
|
1250
1055
|
analyzeRelationshipExecution,
|
|
1056
|
+
analyzeRelationshipSchedule,
|
|
1251
1057
|
append,
|
|
1252
1058
|
appendHistoryEntry,
|
|
1253
1059
|
applyBootstrapPagerPolicy,
|
|
@@ -1296,6 +1102,7 @@ export {
|
|
|
1296
1102
|
claimNext,
|
|
1297
1103
|
classifyItemFormatVersion,
|
|
1298
1104
|
classifyLinkedTestFailure,
|
|
1105
|
+
clearDurableGraphCache,
|
|
1299
1106
|
clearWorkspaceContractsCache,
|
|
1300
1107
|
close,
|
|
1301
1108
|
closeTask,
|
|
@@ -1303,9 +1110,11 @@ export {
|
|
|
1303
1110
|
collectBlockedByIds,
|
|
1304
1111
|
collectDanglingDependencyReferences,
|
|
1305
1112
|
collectDependencyBlockedIds,
|
|
1113
|
+
collectDuplicateDependencyRows,
|
|
1306
1114
|
collectDuplicateRelationshipEdgeGroups,
|
|
1307
1115
|
collectMissingDependencyTargetIds,
|
|
1308
1116
|
collectNewOrderingCycleWarnings,
|
|
1117
|
+
collectOrderingCycles,
|
|
1309
1118
|
collectPackageExtensionDirectories,
|
|
1310
1119
|
collectUsedExtensionCapabilities,
|
|
1311
1120
|
comments,
|
|
@@ -1317,6 +1126,7 @@ export {
|
|
|
1317
1126
|
composeExtension,
|
|
1318
1127
|
composeExtensionPackage,
|
|
1319
1128
|
computeActionabilityReport,
|
|
1129
|
+
computeRelationshipCentrality,
|
|
1320
1130
|
computeRelationshipDominators,
|
|
1321
1131
|
computeWorkspaceGraphFingerprint,
|
|
1322
1132
|
config,
|
|
@@ -1330,6 +1140,7 @@ export {
|
|
|
1330
1140
|
createPmCliProgram,
|
|
1331
1141
|
createQueryFingerprint,
|
|
1332
1142
|
createRelationshipKindRegistry,
|
|
1143
|
+
createStdinTokenResolver,
|
|
1333
1144
|
deactivateExtensionForTest,
|
|
1334
1145
|
decodeQueryCursor,
|
|
1335
1146
|
decodeQueryCursorState,
|
|
@@ -1367,9 +1178,13 @@ export {
|
|
|
1367
1178
|
describeItemOwnershipConflict,
|
|
1368
1179
|
describeProfileComposition,
|
|
1369
1180
|
describeProjectProfile,
|
|
1181
|
+
describeUnknownError,
|
|
1370
1182
|
detectRelationshipCommunities,
|
|
1183
|
+
diffRelationshipAuditSnapshots,
|
|
1371
1184
|
discoverNearbyPmRoot,
|
|
1372
1185
|
docs,
|
|
1186
|
+
durableGraphCachePath,
|
|
1187
|
+
durableGraphCacheStatus,
|
|
1373
1188
|
effectiveItemFormatVersion,
|
|
1374
1189
|
emptyImportedDocument,
|
|
1375
1190
|
encodeQueryCursor,
|
|
@@ -1388,8 +1203,10 @@ export {
|
|
|
1388
1203
|
files,
|
|
1389
1204
|
filesDiscover,
|
|
1390
1205
|
findRedundantRelationshipEdges,
|
|
1206
|
+
findRelationshipCutStructure,
|
|
1391
1207
|
flushTelemetryQueue,
|
|
1392
1208
|
focus,
|
|
1209
|
+
forEachMatchedRelationshipEdge,
|
|
1393
1210
|
formatDuplicateEdgeGroup,
|
|
1394
1211
|
formatProfileApplyHuman,
|
|
1395
1212
|
formatProfileLintHuman,
|
|
@@ -1406,6 +1223,7 @@ export {
|
|
|
1406
1223
|
getSettingsPath,
|
|
1407
1224
|
getWorkspaceContracts,
|
|
1408
1225
|
graph,
|
|
1226
|
+
graphAuditBaselinePath,
|
|
1409
1227
|
health,
|
|
1410
1228
|
hierarchyAncestors,
|
|
1411
1229
|
hierarchyDescendants,
|
|
@@ -1416,6 +1234,7 @@ export {
|
|
|
1416
1234
|
historyRepairAll,
|
|
1417
1235
|
init,
|
|
1418
1236
|
inspectHistoryAuthorStream,
|
|
1237
|
+
isCommanderError,
|
|
1419
1238
|
isErrnoError,
|
|
1420
1239
|
isHostOutputSuppressed,
|
|
1421
1240
|
isOrderingRelationshipKind,
|
|
@@ -1426,6 +1245,7 @@ export {
|
|
|
1426
1245
|
isPmExtensionServiceNameContract,
|
|
1427
1246
|
isPmToolAction,
|
|
1428
1247
|
isTimestampLiteral,
|
|
1248
|
+
itemDocumentToMutationOptions,
|
|
1429
1249
|
itemHasSchedule,
|
|
1430
1250
|
learnings,
|
|
1431
1251
|
limitAnnotationEntries,
|
|
@@ -1436,6 +1256,7 @@ export {
|
|
|
1436
1256
|
listAllItemMetadata,
|
|
1437
1257
|
listProfiles,
|
|
1438
1258
|
loadCreateTemplateOptions,
|
|
1259
|
+
loadGraphAuditBaseline,
|
|
1439
1260
|
locateItem,
|
|
1440
1261
|
mergeExtensionBlueprints,
|
|
1441
1262
|
mergeHistoryStreams,
|
|
@@ -1445,6 +1266,7 @@ export {
|
|
|
1445
1266
|
mergeRelationshipEventStreams,
|
|
1446
1267
|
next,
|
|
1447
1268
|
normalizeBootstrapInvocation,
|
|
1269
|
+
normalizeDependencyGraphTarget,
|
|
1448
1270
|
normalizeItemFormatVersion,
|
|
1449
1271
|
normalizeItemId,
|
|
1450
1272
|
normalizeItemMetadata,
|
|
@@ -1453,8 +1275,10 @@ export {
|
|
|
1453
1275
|
normalizeProfileName,
|
|
1454
1276
|
normalizeRawItemId,
|
|
1455
1277
|
normalizeStatusInput,
|
|
1278
|
+
normalizeThrownExitCode,
|
|
1456
1279
|
notes,
|
|
1457
1280
|
nowIso,
|
|
1281
|
+
openDurableGraphCache,
|
|
1458
1282
|
orderingPredecessors,
|
|
1459
1283
|
orderingSuccessors,
|
|
1460
1284
|
packContextCandidates,
|
|
@@ -1473,12 +1297,14 @@ export {
|
|
|
1473
1297
|
parseAddEntries,
|
|
1474
1298
|
parseAddGlobEntries,
|
|
1475
1299
|
parseAnnotationTextInput,
|
|
1300
|
+
parseAtomicMutationControls,
|
|
1476
1301
|
parseBootstrapCommandName,
|
|
1477
1302
|
parseBootstrapGlobalOptions,
|
|
1478
1303
|
parseBootstrapHelpRequest,
|
|
1479
1304
|
parseBootstrapTypeValue,
|
|
1480
1305
|
parseGraphSubcommand,
|
|
1481
1306
|
parseIntegerLimit,
|
|
1307
|
+
parseItemMutationBatch,
|
|
1482
1308
|
parseLimit,
|
|
1483
1309
|
parseLinkedTestAssertionEqualsMap,
|
|
1484
1310
|
parseLinkedTestAssertionGteMap,
|
|
@@ -1497,6 +1323,7 @@ export {
|
|
|
1497
1323
|
parseType,
|
|
1498
1324
|
pathExists,
|
|
1499
1325
|
pauseTask,
|
|
1326
|
+
persistDurableGraphResult,
|
|
1500
1327
|
planProfileApplication,
|
|
1501
1328
|
planRelationshipRemediation,
|
|
1502
1329
|
preflightExtension,
|
|
@@ -1521,6 +1348,7 @@ export {
|
|
|
1521
1348
|
readSettings,
|
|
1522
1349
|
readStringArrayFromCommanderOptions,
|
|
1523
1350
|
readStringOption,
|
|
1351
|
+
readThrownExitCode,
|
|
1524
1352
|
reconcileExtensionCapabilityUsage,
|
|
1525
1353
|
recordContextUsageServing,
|
|
1526
1354
|
recordContextUsageTouch,
|
|
@@ -1538,6 +1366,7 @@ export {
|
|
|
1538
1366
|
resetWorkspaceGraphCache,
|
|
1539
1367
|
resolveAnnotationIndex,
|
|
1540
1368
|
resolveAnnotationInput,
|
|
1369
|
+
resolveAuthor,
|
|
1541
1370
|
resolveCalendarOutputFormat,
|
|
1542
1371
|
resolveGuideOutputFormat,
|
|
1543
1372
|
resolveHistorySubject,
|
|
@@ -1551,6 +1380,7 @@ export {
|
|
|
1551
1380
|
resolveRuntimeFieldRegistry,
|
|
1552
1381
|
resolveRuntimeStatusRegistry,
|
|
1553
1382
|
resolveSubcommandFlagContractsForCommand,
|
|
1383
|
+
resolveWorkspaceRelationshipKindRegistry,
|
|
1554
1384
|
restore,
|
|
1555
1385
|
runAction,
|
|
1556
1386
|
runActiveOnReadHooks,
|
|
@@ -1617,7 +1447,9 @@ export {
|
|
|
1617
1447
|
runTestRunsStop,
|
|
1618
1448
|
runTestRunsWorker,
|
|
1619
1449
|
runValidate,
|
|
1450
|
+
runWithActiveExtensions,
|
|
1620
1451
|
runWorkspaceTransactionGc,
|
|
1452
|
+
saveGraphAuditBaseline,
|
|
1621
1453
|
scanHistoryAuthorAttribution,
|
|
1622
1454
|
scanItemFormatVersions,
|
|
1623
1455
|
schema,
|
|
@@ -1639,6 +1471,7 @@ export {
|
|
|
1639
1471
|
search,
|
|
1640
1472
|
selectImportAuthor,
|
|
1641
1473
|
serializeItemDocument,
|
|
1474
|
+
shouldPersistDurableGraphCache,
|
|
1642
1475
|
sortLinkedArtifacts,
|
|
1643
1476
|
splitFrontMatter,
|
|
1644
1477
|
startTask,
|
|
@@ -1669,10 +1502,12 @@ export {
|
|
|
1669
1502
|
update,
|
|
1670
1503
|
upgrade,
|
|
1671
1504
|
validate,
|
|
1505
|
+
validateItemMutationRows,
|
|
1672
1506
|
validateLinkedPaths,
|
|
1673
1507
|
withFlagAliasMetadata,
|
|
1674
1508
|
workspaceGraphCache,
|
|
1675
1509
|
wrapOwnershipConflict,
|
|
1510
|
+
wrapThrownErrorForSentry,
|
|
1676
1511
|
writeFileAtomic
|
|
1677
1512
|
};
|
|
1678
1513
|
//# sourceMappingURL=sdk.js.map
|