@unbrained/pm-cli 2026.7.14 → 2026.7.15
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 +48 -0
- package/README.md +14 -11
- package/dist/cli/argv-utils.d.ts +1 -4
- package/dist/cli/argv-utils.js +3 -13
- package/dist/cli/argv-utils.js.map +1 -1
- package/dist/cli/bootstrap-args.d.ts +6 -4
- package/dist/cli/bootstrap-args.js +51 -16
- package/dist/cli/bootstrap-args.js.map +1 -1
- package/dist/cli/bundle-integrity.d.ts +49 -0
- package/dist/cli/bundle-integrity.js +111 -0
- package/dist/cli/bundle-integrity.js.map +1 -0
- package/dist/cli/commands/completion.js +7 -2
- package/dist/cli/commands/completion.js.map +1 -1
- package/dist/cli/commands/config.d.ts +6 -163
- package/dist/cli/commands/config.js +4 -1133
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/context.d.ts +2 -4
- package/dist/cli/commands/context.js +10 -85
- package/dist/cli/commands/context.js.map +1 -1
- package/dist/cli/commands/create.d.ts +1 -0
- package/dist/cli/commands/create.js +3 -2
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/extension/describe.d.ts +2 -91
- package/dist/cli/commands/extension/describe.js +4 -142
- package/dist/cli/commands/extension/describe.js.map +1 -1
- package/dist/cli/commands/extension/scaffold.d.ts +2 -36
- package/dist/cli/commands/extension/scaffold.js +4 -2435
- package/dist/cli/commands/extension/scaffold.js.map +1 -1
- package/dist/cli/commands/extension/shared.d.ts +2 -28
- package/dist/cli/commands/extension/shared.js +4 -130
- package/dist/cli/commands/extension/shared.js.map +1 -1
- package/dist/cli/commands/extension.d.ts +3 -400
- package/dist/cli/commands/extension.js +4 -2183
- package/dist/cli/commands/extension.js.map +1 -1
- package/dist/cli/commands/gc.d.ts +6 -56
- package/dist/cli/commands/gc.js +4 -270
- package/dist/cli/commands/gc.js.map +1 -1
- package/dist/cli/commands/get.d.ts +18 -5
- package/dist/cli/commands/get.js +117 -58
- package/dist/cli/commands/get.js.map +1 -1
- package/dist/cli/commands/health.d.ts +6 -184
- package/dist/cli/commands/health.js +4 -1747
- package/dist/cli/commands/health.js.map +1 -1
- package/dist/cli/commands/history-compact.d.ts +4 -139
- package/dist/cli/commands/history-compact.js +5 -510
- package/dist/cli/commands/history-compact.js.map +1 -1
- package/dist/cli/commands/history-redact.d.ts +8 -120
- package/dist/cli/commands/history-redact.js +6 -581
- package/dist/cli/commands/history-redact.js.map +1 -1
- package/dist/cli/commands/history-repair.d.ts +7 -89
- package/dist/cli/commands/history-repair.js +5 -257
- package/dist/cli/commands/history-repair.js.map +1 -1
- package/dist/cli/commands/history.d.ts +1 -2
- package/dist/cli/commands/history.js +6 -48
- package/dist/cli/commands/history.js.map +1 -1
- package/dist/cli/commands/index.d.ts +1 -0
- package/dist/cli/commands/index.js +3 -2
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/init-agent-guidance.d.ts +6 -113
- package/dist/cli/commands/init-agent-guidance.js +4 -431
- package/dist/cli/commands/init-agent-guidance.js.map +1 -1
- package/dist/cli/commands/init.d.ts +6 -181
- package/dist/cli/commands/init.js +4 -690
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/next.js +3 -3
- package/dist/cli/commands/next.js.map +1 -1
- package/dist/cli/commands/profile.d.ts +4 -174
- package/dist/cli/commands/profile.js +4 -425
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/commands/restore.d.ts +4 -19
- package/dist/cli/commands/restore.js +9 -158
- package/dist/cli/commands/restore.js.map +1 -1
- package/dist/cli/commands/schema.d.ts +7 -507
- package/dist/cli/commands/schema.js +5 -1254
- package/dist/cli/commands/schema.js.map +1 -1
- package/dist/cli/commands/test.d.ts +2 -4
- package/dist/cli/commands/test.js +7 -97
- package/dist/cli/commands/test.js.map +1 -1
- package/dist/cli/commands/validate.d.ts +9 -249
- package/dist/cli/commands/validate.js +9 -2150
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/extension-command-help.js +18 -4
- package/dist/cli/extension-command-help.js.map +1 -1
- package/dist/cli/extension-command-options.js +3 -3
- package/dist/cli/extension-command-options.js.map +1 -1
- package/dist/cli/help-content.js +7 -3
- package/dist/cli/help-content.js.map +1 -1
- package/dist/cli/main.js +20 -30
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/register-list-query.js +4 -2
- package/dist/cli/register-list-query.js.map +1 -1
- package/dist/cli/register-mutation.js +11 -3
- package/dist/cli/register-mutation.js.map +1 -1
- package/dist/cli/register-setup.js +4 -2
- package/dist/cli/register-setup.js.map +1 -1
- package/dist/cli/registration-helpers.js +3 -2
- package/dist/cli/registration-helpers.js.map +1 -1
- package/dist/cli-bundle/bundle-manifest.json +782 -0
- package/dist/cli-bundle/chunks/{append-PVZJDM6J.js → append-OJQFUQ4T.js} +5 -5
- package/dist/cli-bundle/chunks/append-UZVHUO74.js +11 -0
- package/dist/cli-bundle/chunks/{chunk-MQZ3PLCF.js → chunk-2IFFUZLC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-P6MYFH6K.js → chunk-2JKGO6QX.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-X3GYR4P2.js → chunk-2NCIPMQP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-Q7E6OYZK.js → chunk-2VPAVL7O.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DRNJPEPQ.js → chunk-2WSE6PO2.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-FDSBDNYE.js → chunk-34L5OT3Y.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TH7U4KLY.js → chunk-3AUGG2DP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NKW36AMT.js → chunk-3CLU2XZO.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-N3CMP4NI.js → chunk-3S5QVM5H.js} +43 -7
- package/dist/cli-bundle/chunks/chunk-3S5QVM5H.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-3U7ZR6M4.js +64 -0
- package/dist/cli-bundle/chunks/chunk-3U7ZR6M4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ABRCOSDC.js → chunk-3WM75PWC.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-4223PVZT.js +121 -0
- package/dist/cli-bundle/chunks/chunk-4223PVZT.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-5URI7TPJ.js → chunk-4XQ3BDV4.js} +281 -164
- package/dist/cli-bundle/chunks/chunk-4XQ3BDV4.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-X6BVXQ52.js → chunk-5JLUII3O.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-MKL4CP2I.js → chunk-5ZSLZLDN.js} +631 -246
- package/dist/cli-bundle/chunks/chunk-5ZSLZLDN.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-Q37E63AM.js → chunk-6CFNAVTF.js} +21 -141
- package/dist/cli-bundle/chunks/chunk-6CFNAVTF.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-3TL7WOEF.js → chunk-6N2VXVTQ.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-ERL2YFJ2.js → chunk-6S3YSUYG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-ZUKSZVBW.js → chunk-7B67ZL4N.js} +8 -7
- package/dist/cli-bundle/chunks/chunk-7B67ZL4N.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-IA3YFTXT.js → chunk-7PIWCHTW.js} +11 -13
- package/dist/cli-bundle/chunks/chunk-7PIWCHTW.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-BPD26E3P.js → chunk-7Z4LKRS4.js} +291 -81
- package/dist/cli-bundle/chunks/chunk-7Z4LKRS4.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-IFZA4VB5.js → chunk-AHVTB5I5.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-DO5RGJXT.js → chunk-APRVSW2O.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-NAQYVWSQ.js → chunk-B7PE22W6.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-MD6ULIPJ.js → chunk-BCOFWYW4.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-KADLSPIU.js → chunk-BEP7WJA2.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-BKVG6XOA.js +1114 -0
- package/dist/cli-bundle/chunks/chunk-BKVG6XOA.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-AFWZRL7M.js → chunk-BSEQUTQP.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-AFWZRL7M.js.map → chunk-BSEQUTQP.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-OBDLEQG5.js → chunk-CRVF2JDM.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-FJZDA6MS.js → chunk-DM4H7FP4.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-DUT67M43.js +5 -0
- package/dist/cli-bundle/chunks/{chunk-44LNIULG.js → chunk-DYH63FX7.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-LWTIRS3Y.js → chunk-E2OJMKML.js} +306 -82
- package/dist/cli-bundle/chunks/chunk-E2OJMKML.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-HAMLIWAF.js → chunk-EAB64KLB.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-CIOZ376P.js → chunk-EACOH7AU.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-HL7V2PHX.js → chunk-EH2OPHBI.js} +10 -10
- package/dist/cli-bundle/chunks/{chunk-HL7V2PHX.js.map → chunk-EH2OPHBI.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-QK2ZN6UL.js → chunk-EJEXHTY5.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WQUEHPZB.js → chunk-EYLCSJAI.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-655STMGA.js → chunk-FMBNM2EN.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RMF3IOYQ.js → chunk-FNSPG7MU.js} +12 -12
- package/dist/cli-bundle/chunks/{chunk-5CT5BW6E.js → chunk-GM5QHQU6.js} +46 -40
- package/dist/cli-bundle/chunks/chunk-GM5QHQU6.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FTQLW4JD.js → chunk-GOSLKLFE.js} +418 -24
- package/dist/cli-bundle/chunks/chunk-GOSLKLFE.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-KB726FMH.js → chunk-H2Z3FYXQ.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-H3EIEWGR.js +162 -0
- package/dist/cli-bundle/chunks/chunk-H3EIEWGR.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2QIQGYPW.js → chunk-H5APFTHZ.js} +53 -10
- package/dist/cli-bundle/chunks/chunk-H5APFTHZ.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-HDH3JUGG.js +118 -0
- package/dist/cli-bundle/chunks/chunk-HDH3JUGG.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ZAYYDNB3.js → chunk-HO4KXD6I.js} +22 -142
- package/dist/cli-bundle/chunks/chunk-HO4KXD6I.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ILLUE5DI.js → chunk-HYB5AZ63.js} +203 -62
- package/dist/cli-bundle/chunks/{chunk-ILLUE5DI.js.map → chunk-HYB5AZ63.js.map} +3 -3
- package/dist/cli-bundle/chunks/{chunk-BN62TO2S.js → chunk-IA5FKNII.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JL7WZ4O2.js → chunk-IG3SWA4A.js} +33 -9
- package/dist/cli-bundle/chunks/chunk-IG3SWA4A.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-W6HZ55JO.js → chunk-IJIICKVW.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IGED7NH2.js → chunk-ILX33QXL.js} +668 -251
- package/dist/cli-bundle/chunks/chunk-ILX33QXL.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UGTVWL3E.js → chunk-INU6DKT5.js} +47 -41
- package/dist/cli-bundle/chunks/chunk-INU6DKT5.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-UB2QYSTO.js → chunk-J5AOEGDC.js} +26 -18
- package/dist/cli-bundle/chunks/chunk-J5AOEGDC.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4DY4KPQI.js → chunk-J6364LFM.js} +1330 -937
- package/dist/cli-bundle/chunks/chunk-J6364LFM.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-DVOLZJ3C.js → chunk-J6EY5V4N.js} +1295 -939
- package/dist/cli-bundle/chunks/chunk-J6EY5V4N.js.map +1 -0
- package/dist/cli-bundle/chunks/chunk-JFTKLTEF.js +1097 -0
- package/dist/cli-bundle/chunks/chunk-JFTKLTEF.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-M7EWN4TF.js → chunk-JOUQZENX.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-J4NZOP3I.js → chunk-JXQUXVMI.js} +9 -8
- package/dist/cli-bundle/chunks/chunk-JXQUXVMI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-2FNWQXZ2.js → chunk-JYFOV7FC.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-HLHSQ5CA.js → chunk-K2X6U4UA.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-6OTZMORS.js → chunk-K3WII2ME.js} +27 -27
- package/dist/cli-bundle/chunks/chunk-K3WII2ME.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-M6ASXYCU.js → chunk-KG44YSKD.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-YVKE5ZDM.js → chunk-KPMKHGEA.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-QASRVKUQ.js → chunk-LPYWLWDS.js} +257 -163
- package/dist/cli-bundle/chunks/chunk-LPYWLWDS.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-RGXD5JJR.js → chunk-LSG2U345.js} +19 -12
- package/dist/cli-bundle/chunks/chunk-LSG2U345.js.map +7 -0
- package/dist/cli-bundle/chunks/chunk-MIQDDLB5.js +5 -0
- package/dist/cli-bundle/chunks/{chunk-UJ4HJYWL.js → chunk-NLDFBC6J.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-WRKB56FC.js → chunk-NP22ERDF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-YQYG2V23.js → chunk-NU3IMIEA.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-3I3LRT2G.js → chunk-NVPZIJVR.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-JAF4TUQ7.js → chunk-ODALILG3.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-CDJYP7OQ.js → chunk-ONG5V5CI.js} +190 -63
- package/dist/cli-bundle/chunks/chunk-ONG5V5CI.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-QZ7LT3XE.js → chunk-ONREO4ST.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-OW4JWD5M.js +61 -0
- package/dist/cli-bundle/chunks/chunk-OW4JWD5M.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-3CMRNVTO.js → chunk-P74IZQ7A.js} +12 -12
- package/dist/cli-bundle/chunks/chunk-PENXZX3U.js +172 -0
- package/dist/cli-bundle/chunks/chunk-PENXZX3U.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-ZTRBSABY.js → chunk-PGY23YTC.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-H2QBAKLQ.js → chunk-PMOSXADO.js} +3 -3
- package/dist/cli-bundle/chunks/chunk-PNTULOGU.js +9 -0
- package/dist/cli-bundle/chunks/{chunk-GSEADLRH.js → chunk-Q7A43DS4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-QSPARJWF.js → chunk-QEHQ2GVG.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-VJTAEIPC.js → chunk-QIPLHNP7.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-GXXC7QSK.js → chunk-QKECXBBG.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-GXXC7QSK.js.map → chunk-QKECXBBG.js.map} +1 -1
- package/dist/cli-bundle/chunks/{chunk-K7WNZ7KD.js → chunk-QKJGPFAF.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-F7PSHRNO.js → chunk-QKXHFPYM.js} +27 -10
- package/dist/cli-bundle/chunks/chunk-QKXHFPYM.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-ZNP64HOW.js → chunk-RLCHOOHC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-IAPHYPRL.js → chunk-RMLWNPH2.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-UVBA6F5A.js → chunk-RRM5JYJC.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6IIVBC56.js → chunk-S6MQESFR.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-QABYZYLU.js → chunk-SDQLJWBO.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-ANSJHDOZ.js → chunk-SELVXEZK.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-DYEX6NFH.js → chunk-TD3LVC7D.js} +438 -23
- package/dist/cli-bundle/chunks/chunk-TD3LVC7D.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-WD6MSYMP.js → chunk-TKOVBP6C.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TZ2PSLLT.js → chunk-TQSZFPIS.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-WPAWZW7S.js → chunk-TSMHDIW4.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-TZRTLMWM.js → chunk-UFXU44HV.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-TWLDBKQU.js → chunk-ULTHRDBP.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-OI4S4KCI.js → chunk-UMOPHQSU.js} +9 -9
- package/dist/cli-bundle/chunks/{chunk-OI4S4KCI.js.map → chunk-UMOPHQSU.js.map} +2 -2
- package/dist/cli-bundle/chunks/{chunk-RA5AIAMP.js → chunk-UOHFKBUV.js} +3 -3
- package/dist/cli-bundle/chunks/{chunk-PHKP3AGR.js → chunk-UWQHLMEB.js} +35 -18
- package/dist/cli-bundle/chunks/chunk-UWQHLMEB.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-6TTOHMTB.js → chunk-UXONS674.js} +45 -112
- package/dist/cli-bundle/chunks/chunk-UXONS674.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-4RXTMU57.js → chunk-UY2ACEMF.js} +7 -7
- package/dist/cli-bundle/chunks/{chunk-6PKA3SJQ.js → chunk-WQPUU7XD.js} +19 -28
- package/dist/cli-bundle/chunks/chunk-WQPUU7XD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-7TQMR6LK.js → chunk-WT3ZEOGH.js} +70 -20
- package/dist/cli-bundle/chunks/chunk-WT3ZEOGH.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-FIGXOCEQ.js → chunk-WUJQK4YV.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-T4BRCB6Z.js → chunk-XSJUSQAE.js} +2 -2
- package/dist/cli-bundle/chunks/{chunk-6MHSBDGD.js → chunk-XXXF6PAQ.js} +50 -117
- package/dist/cli-bundle/chunks/chunk-XXXF6PAQ.js.map +7 -0
- package/dist/cli-bundle/chunks/{chunk-UKUIIBDW.js → chunk-YAQEBNY7.js} +4 -4
- package/dist/cli-bundle/chunks/{chunk-7QDSYUMF.js → chunk-YAROI3PD.js} +44 -21
- package/dist/cli-bundle/chunks/chunk-YAROI3PD.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-E2WC6S4P.js → chunk-YBLZ2VE7.js} +13 -13
- package/dist/cli-bundle/chunks/{chunk-Y72FV7RM.js → chunk-YCQET3OT.js} +2 -2
- package/dist/cli-bundle/chunks/chunk-YUSOJDWM.js +9 -0
- package/dist/cli-bundle/chunks/chunk-YXSHIAUJ.js +58 -0
- package/dist/cli-bundle/chunks/chunk-YXSHIAUJ.js.map +1 -0
- package/dist/cli-bundle/chunks/{chunk-FS6UM5WH.js → chunk-ZI6VQWQ7.js} +4 -4
- package/dist/cli-bundle/chunks/chunk-ZKRZY773.js +68 -0
- package/dist/cli-bundle/chunks/chunk-ZKRZY773.js.map +7 -0
- package/dist/cli-bundle/chunks/{close-LZECOMHO.js → close-CWODTPKG.js} +5 -5
- package/dist/cli-bundle/chunks/close-W6LI2PKM.js +12 -0
- package/dist/cli-bundle/chunks/{close-many-ZHI6A5TN.js → close-many-CQFUY7MR.js} +15 -13
- package/dist/cli-bundle/chunks/close-many-DLDDVSH5.js +23 -0
- package/dist/cli-bundle/chunks/comments-E3TNTK24.js +13 -0
- package/dist/cli-bundle/chunks/{comments-AJWRTFZ5.js → comments-WGLHR7LB.js} +7 -7
- package/dist/cli-bundle/chunks/{copy-GMXYKBXT.js → copy-LXVDXH7B.js} +4 -4
- package/dist/cli-bundle/chunks/copy-Q5ZJPUKR.js +9 -0
- package/dist/cli-bundle/chunks/{create-F53OBTOU.js → create-J5U6ND4K.js} +9 -9
- package/dist/cli-bundle/chunks/{create-HU4Q7RJX.js → create-LBVCYMEG.js} +9 -9
- package/dist/cli-bundle/chunks/{delete-GSDZLTRC.js → delete-PMJBNY5G.js} +4 -4
- package/dist/cli-bundle/chunks/delete-WNHB3LYW.js +10 -0
- package/dist/cli-bundle/chunks/{deps-WWB7P2GT.js → deps-JZ7TMVCB.js} +7 -4
- package/dist/cli-bundle/chunks/{deps-U57I7EAK.js → deps-OA26IS25.js} +7 -4
- package/dist/cli-bundle/chunks/{docs-MQIY2ZQS.js → docs-FEWB2DQB.js} +6 -6
- package/dist/cli-bundle/chunks/docs-HA2AIDBB.js +14 -0
- package/dist/cli-bundle/chunks/{files-TBZD7V6H.js → files-6YFBJRBG.js} +6 -6
- package/dist/cli-bundle/chunks/{files-TTY6N2AV.js → files-EFIWKFTM.js} +6 -6
- package/dist/cli-bundle/chunks/{focus-XT6YVFFX.js → focus-4QJR7FOQ.js} +5 -5
- package/dist/cli-bundle/chunks/focus-POIW5LTJ.js +10 -0
- package/dist/cli-bundle/chunks/{history-compact-KKVUWB4V.js → history-compact-CKRPDTJN.js} +6 -10
- package/dist/cli-bundle/chunks/history-compact-FWG2C7FZ.js +16 -0
- package/dist/cli-bundle/chunks/history-redact-BB3TGDAE.js +15 -0
- package/dist/cli-bundle/chunks/{history-redact-3DVZOILD.js → history-redact-D225BHOZ.js} +5 -6
- package/dist/cli-bundle/chunks/history-repair-6GEAM7HE.js +16 -0
- package/dist/cli-bundle/chunks/{history-repair-ITDUMK4N.js → history-repair-RQXKQHL4.js} +6 -8
- package/dist/cli-bundle/chunks/{learnings-FGO3NSFW.js → learnings-JLNLCOL5.js} +7 -7
- package/dist/cli-bundle/chunks/learnings-RSNLSWDC.js +13 -0
- package/dist/cli-bundle/chunks/notes-2WDH6DXU.js +13 -0
- package/dist/cli-bundle/chunks/{notes-NQ6RXVW6.js → notes-GB47XXQQ.js} +7 -7
- package/dist/cli-bundle/chunks/plan-DOVI2VMW.js +24 -0
- package/dist/cli-bundle/chunks/{plan-2NNEO46V.js → plan-VDCJ2PCN.js} +10 -10
- package/dist/cli-bundle/chunks/{profile-AAQUU6T3.js → profile-FAU7NZML.js} +10 -10
- package/dist/cli-bundle/chunks/{profile-U725ATWZ.js → profile-IVXQEL3D.js} +10 -10
- package/dist/cli-bundle/chunks/{register-list-query-BUWCYHBT.js → register-list-query-DKA3EH5D.js} +22 -19
- package/dist/cli-bundle/chunks/register-list-query-DKA3EH5D.js.map +7 -0
- package/dist/cli-bundle/chunks/{register-list-query-KTZ6AGE7.js → register-list-query-UL4UKBBN.js} +23 -20
- package/dist/cli-bundle/chunks/register-list-query-UL4UKBBN.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-mutation-UELYYOR7.js → register-mutation-ARFHRW55.js} +36 -32
- package/dist/cli-bundle/chunks/{register-mutation-UELYYOR7.js.map → register-mutation-ARFHRW55.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-mutation-4FMGJJF7.js → register-mutation-RBBJ52DK.js} +37 -33
- package/dist/cli-bundle/chunks/register-mutation-RBBJ52DK.js.map +1 -0
- package/dist/cli-bundle/chunks/{register-operations-JVW24J2Y.js → register-operations-ZIBBRSED.js} +41 -39
- package/dist/cli-bundle/chunks/{register-operations-JVW24J2Y.js.map → register-operations-ZIBBRSED.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-operations-ISUX6LY5.js → register-operations-ZUJ5JWPE.js} +39 -37
- package/dist/cli-bundle/chunks/{register-operations-ISUX6LY5.js.map → register-operations-ZUJ5JWPE.js.map} +1 -1
- package/dist/cli-bundle/chunks/{register-setup-5XNGKJ22.js → register-setup-BCVLFEYS.js} +29 -17
- package/dist/cli-bundle/chunks/{register-setup-5XNGKJ22.js.map → register-setup-BCVLFEYS.js.map} +2 -2
- package/dist/cli-bundle/chunks/{register-setup-ZTNY6S7R.js → register-setup-TDCGWIOS.js} +19 -18
- package/dist/cli-bundle/chunks/{register-setup-ZTNY6S7R.js.map → register-setup-TDCGWIOS.js.map} +1 -1
- package/dist/cli-bundle/chunks/{restore-B3BAB6X2.js → restore-25DLT2Q2.js} +6 -6
- package/dist/cli-bundle/chunks/restore-YPMVUUEX.js +14 -0
- package/dist/cli-bundle/chunks/{schema-U7IM2DXV.js → schema-FNU3WE4O.js} +7 -6
- package/dist/cli-bundle/chunks/{schema-LZNUYHDB.js → schema-NBCM3RAD.js} +7 -6
- package/dist/cli-bundle/chunks/update-WWBYOPXO.js +21 -0
- package/dist/cli-bundle/chunks/update-WWBYOPXO.js.map +7 -0
- package/dist/cli-bundle/chunks/{update-Q3UCILNR.js → update-XHSIAIXE.js} +12 -12
- package/dist/cli-bundle/chunks/update-XHSIAIXE.js.map +1 -0
- package/dist/cli-bundle/chunks/update-many-OUGIU5SF.js +32 -0
- package/dist/cli-bundle/chunks/update-many-OUGIU5SF.js.map +7 -0
- package/dist/cli-bundle/chunks/update-many-TA7NGQBO.js +36 -0
- package/dist/cli-bundle/chunks/update-many-TA7NGQBO.js.map +1 -0
- package/dist/cli-bundle/main.js +826 -43
- package/dist/cli-bundle/main.js.map +4 -4
- package/dist/cli-bundle/sdk-runtime.js +70 -57
- package/dist/cli-bundle/sdk-testing.js +6 -6
- package/dist/cli-bundle/sdk.js +876 -74
- package/dist/cli-bundle/sdk.js.map +4 -4
- package/dist/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/dist/core/diagnostics/remediation.js +12 -2
- package/dist/core/diagnostics/remediation.js.map +1 -1
- package/dist/core/history/projection.d.ts +39 -0
- package/dist/core/history/projection.js +164 -0
- package/dist/core/history/projection.js.map +1 -0
- package/dist/core/history/read.d.ts +3 -0
- package/dist/core/history/read.js +55 -0
- package/dist/core/history/read.js.map +1 -0
- package/dist/core/output/output-control.d.ts +18 -0
- package/dist/core/output/output-control.js +26 -0
- package/dist/core/output/output-control.js.map +1 -0
- package/dist/core/output/output.js +20 -8
- package/dist/core/output/output.js.map +1 -1
- package/dist/core/sentry/helpers.js +10 -2
- package/dist/core/sentry/helpers.js.map +1 -1
- package/dist/core/shared/command-types.d.ts +2 -0
- package/dist/core/shared/command-types.js +2 -2
- package/dist/core/shared/command-types.js.map +1 -1
- package/dist/core/shared/errors.d.ts +11 -0
- package/dist/core/shared/errors.js +2 -2
- package/dist/core/shared/errors.js.map +1 -1
- package/dist/mcp/server.d.ts +2 -2
- package/dist/mcp/tool-definitions.js +5 -5
- package/dist/mcp/tool-definitions.js.map +1 -1
- package/dist/sdk/author-attribution.d.ts +35 -0
- package/dist/sdk/author-attribution.js +118 -0
- package/dist/sdk/author-attribution.js.map +1 -0
- package/dist/sdk/cli-contracts/command-aliases.d.ts +7 -0
- package/dist/sdk/cli-contracts/command-aliases.js +17 -0
- package/dist/sdk/cli-contracts/command-aliases.js.map +1 -0
- package/dist/sdk/cli-contracts/flag-contracts.js +5 -2
- package/dist/sdk/cli-contracts/flag-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-option-contracts.js +6 -2
- package/dist/sdk/cli-contracts/tool-option-contracts.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-parameter-tables.js +21 -2
- package/dist/sdk/cli-contracts/tool-parameter-tables.js.map +1 -1
- package/dist/sdk/cli-contracts/tool-schema.js +3 -3
- package/dist/sdk/cli-contracts/tool-schema.js.map +1 -1
- package/dist/sdk/cli-contracts.d.ts +1 -0
- package/dist/sdk/cli-contracts.js +3 -2
- package/dist/sdk/cli-contracts.js.map +1 -1
- package/dist/sdk/cli-program.d.ts +8 -0
- package/dist/sdk/cli-program.js +39 -0
- package/dist/sdk/cli-program.js.map +1 -0
- package/dist/sdk/command-line.d.ts +11 -0
- package/dist/sdk/command-line.js +40 -0
- package/dist/sdk/command-line.js.map +1 -0
- package/dist/sdk/config.d.ts +163 -0
- package/dist/sdk/config.js +1087 -0
- package/dist/sdk/config.js.map +1 -0
- package/dist/sdk/context-relevance.d.ts +21 -0
- package/dist/sdk/context-relevance.js +70 -2
- package/dist/sdk/context-relevance.js.map +1 -1
- package/dist/sdk/dependencies.d.ts +15 -2
- package/dist/sdk/dependencies.js +97 -8
- package/dist/sdk/dependencies.js.map +1 -1
- package/dist/{cli/commands → sdk}/extension/bundled-catalog.d.ts +1 -1
- package/dist/{cli/commands → sdk}/extension/bundled-catalog.js +12 -12
- package/dist/sdk/extension/bundled-catalog.js.map +1 -0
- package/dist/sdk/extension/concurrency.d.ts +7 -0
- package/dist/sdk/extension/concurrency.js +26 -0
- package/dist/sdk/extension/concurrency.js.map +1 -0
- package/dist/sdk/extension/describe.d.ts +91 -0
- package/dist/sdk/extension/describe.js +144 -0
- package/dist/sdk/extension/describe.js.map +1 -0
- package/dist/{cli/commands → sdk}/extension/doctor.d.ts +3 -3
- package/dist/{cli/commands → sdk}/extension/doctor.js +7 -7
- package/dist/sdk/extension/doctor.js.map +1 -0
- package/dist/sdk/extension/install-runtime.d.ts +26 -0
- package/dist/sdk/extension/install-runtime.js +269 -0
- package/dist/sdk/extension/install-runtime.js.map +1 -0
- package/dist/sdk/extension/install-snapshot.d.ts +23 -0
- package/dist/sdk/extension/install-snapshot.js +66 -0
- package/dist/sdk/extension/install-snapshot.js.map +1 -0
- package/dist/{cli/commands → sdk}/extension/install-sources.d.ts +3 -3
- package/dist/{cli/commands → sdk}/extension/install-sources.js +15 -12
- package/dist/sdk/extension/install-sources.js.map +1 -0
- package/dist/{cli/commands → sdk}/extension/managed-state.js +6 -6
- package/dist/sdk/extension/managed-state.js.map +1 -0
- package/dist/sdk/extension/scaffold.d.ts +36 -0
- package/dist/sdk/extension/scaffold.js +2436 -0
- package/dist/sdk/extension/scaffold.js.map +1 -0
- package/dist/sdk/extension/shared.d.ts +28 -0
- package/dist/sdk/extension/shared.js +140 -0
- package/dist/sdk/extension/shared.js.map +1 -0
- package/dist/sdk/extension/update-check.d.ts +15 -0
- package/dist/sdk/extension/update-check.js +68 -0
- package/dist/sdk/extension/update-check.js.map +1 -0
- package/dist/sdk/extension.d.ts +367 -0
- package/dist/sdk/extension.js +2174 -0
- package/dist/sdk/extension.js.map +1 -0
- package/dist/sdk/governance/gc.d.ts +56 -0
- package/dist/sdk/governance/gc.js +276 -0
- package/dist/sdk/governance/gc.js.map +1 -0
- package/dist/sdk/governance/health.d.ts +187 -0
- package/dist/sdk/governance/health.js +1796 -0
- package/dist/sdk/governance/health.js.map +1 -0
- package/dist/sdk/governance/validate.d.ts +255 -0
- package/dist/sdk/governance/validate.js +2175 -0
- package/dist/sdk/governance/validate.js.map +1 -0
- package/dist/sdk/history-compact.d.ts +142 -0
- package/dist/sdk/history-compact.js +508 -0
- package/dist/sdk/history-compact.js.map +1 -0
- package/dist/sdk/history-mcp.d.ts +17 -0
- package/dist/sdk/history-mcp.js +68 -0
- package/dist/sdk/history-mcp.js.map +1 -0
- package/dist/sdk/history-read.d.ts +31 -0
- package/dist/sdk/history-read.js +58 -0
- package/dist/sdk/history-read.js.map +1 -0
- package/dist/sdk/history-redact.d.ts +120 -0
- package/dist/sdk/history-redact.js +577 -0
- package/dist/sdk/history-redact.js.map +1 -0
- package/dist/sdk/history-repair.d.ts +89 -0
- package/dist/sdk/history-repair.js +263 -0
- package/dist/sdk/history-repair.js.map +1 -0
- package/dist/sdk/index.d.ts +25 -1
- package/dist/sdk/index.js +27 -3
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/init-agent-guidance.d.ts +113 -0
- package/dist/sdk/init-agent-guidance.js +437 -0
- package/dist/sdk/init-agent-guidance.js.map +1 -0
- package/dist/sdk/init.d.ts +186 -0
- package/dist/sdk/init.js +733 -0
- package/dist/sdk/init.js.map +1 -0
- package/dist/sdk/invocation-author.d.ts +2 -0
- package/dist/sdk/invocation-author.js +39 -0
- package/dist/sdk/invocation-author.js.map +1 -0
- package/dist/sdk/item-children.d.ts +45 -0
- package/dist/sdk/item-children.js +75 -0
- package/dist/sdk/item-children.js.map +1 -0
- package/dist/sdk/item-schedule.d.ts +26 -0
- package/dist/sdk/item-schedule.js +28 -0
- package/dist/sdk/item-schedule.js.map +1 -0
- package/dist/sdk/output.d.ts +7 -0
- package/dist/sdk/output.js +11 -0
- package/dist/sdk/output.js.map +1 -0
- package/dist/sdk/pagination.d.ts +4 -1
- package/dist/sdk/pagination.js +13 -5
- package/dist/sdk/pagination.js.map +1 -1
- package/dist/sdk/profile.d.ts +176 -0
- package/dist/sdk/profile.js +431 -0
- package/dist/sdk/profile.js.map +1 -0
- package/dist/sdk/relationship-analytics.d.ts +108 -0
- package/dist/sdk/relationship-analytics.js +292 -0
- package/dist/sdk/relationship-analytics.js.map +1 -0
- package/dist/sdk/relationship-context.d.ts +67 -0
- package/dist/sdk/relationship-context.js +207 -0
- package/dist/sdk/relationship-context.js.map +1 -0
- package/dist/sdk/relationship-history.d.ts +109 -0
- package/dist/sdk/relationship-history.js +401 -0
- package/dist/sdk/relationship-history.js.map +1 -0
- package/dist/sdk/relationships.d.ts +145 -0
- package/dist/sdk/relationships.js +551 -0
- package/dist/sdk/relationships.js.map +1 -0
- package/dist/sdk/runtime-input.d.ts +10 -0
- package/dist/sdk/runtime-input.js +60 -0
- package/dist/sdk/runtime-input.js.map +1 -0
- package/dist/sdk/runtime.d.ts +31 -8
- package/dist/sdk/runtime.js +61 -57
- package/dist/sdk/runtime.js.map +1 -1
- package/dist/sdk/schema.d.ts +507 -0
- package/dist/sdk/schema.js +1269 -0
- package/dist/sdk/schema.js.map +1 -0
- package/dist/{cli/commands → sdk}/templates.d.ts +1 -1
- package/dist/{cli/commands → sdk}/templates.js +9 -9
- package/dist/sdk/templates.js.map +1 -0
- package/dist/{cli/commands → sdk}/test/linked-command-detection.d.ts +10 -2
- package/dist/sdk/test/linked-command-detection.js +525 -0
- package/dist/sdk/test/linked-command-detection.js.map +1 -0
- package/docs/COMMANDS.md +58 -40
- package/docs/EXTENSIONS.md +10 -1
- package/docs/RELATIONSHIP_GRAPH.md +113 -0
- package/docs/RELEASING.md +2 -0
- package/docs/SDK.md +156 -9
- package/docs/SDK_CUSTOMIZATION_PRIMITIVES.md +79 -0
- package/marketplace.json +2 -2
- package/package.json +3 -2
- package/packages/pm-beads/package.json +1 -1
- package/packages/pm-calendar/package.json +1 -1
- package/packages/pm-command-kit/package.json +1 -1
- package/packages/pm-governance-audit/extensions/governance-audit/runtime-utils.ts +76 -16
- package/packages/pm-governance-audit/extensions/governance-audit/sdk.ts +8 -0
- package/packages/pm-governance-audit/package.json +1 -1
- package/packages/pm-guide-shell/package.json +1 -1
- package/packages/pm-kanban/package.json +1 -1
- package/packages/pm-lifecycle-hooks/package.json +1 -1
- package/packages/pm-linked-test-adapters/package.json +1 -1
- package/packages/pm-search-advanced/package.json +1 -1
- package/packages/pm-templates/package.json +1 -1
- package/packages/pm-todos/package.json +1 -1
- package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
- package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
- package/scripts/bundle-cli.mjs +66 -23
- package/dist/cli/commands/extension/bundled-catalog.js.map +0 -1
- package/dist/cli/commands/extension/doctor.js.map +0 -1
- package/dist/cli/commands/extension/install-sources.js.map +0 -1
- package/dist/cli/commands/extension/managed-state.js.map +0 -1
- package/dist/cli/commands/templates.js.map +0 -1
- package/dist/cli/commands/test/linked-command-detection.js +0 -248
- package/dist/cli/commands/test/linked-command-detection.js.map +0 -1
- package/dist/cli-bundle/chunks/append-DYQWQK2J.js +0 -11
- package/dist/cli-bundle/chunks/chunk-2GA3NK35.js +0 -530
- package/dist/cli-bundle/chunks/chunk-2GA3NK35.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-2QIQGYPW.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4DY4KPQI.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-4WREH7RT.js +0 -554
- package/dist/cli-bundle/chunks/chunk-4WREH7RT.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5CT5BW6E.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-5URI7TPJ.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6MHSBDGD.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6OTZMORS.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-6PKA3SJQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-6TTOHMTB.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7QDSYUMF.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-7TQMR6LK.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-B5DZYTT3.js +0 -312
- package/dist/cli-bundle/chunks/chunk-B5DZYTT3.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-BPD26E3P.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-CDJYP7OQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DBZVUJTK.js +0 -858
- package/dist/cli-bundle/chunks/chunk-DBZVUJTK.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DVOLZJ3C.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-DYEX6NFH.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-F7PSHRNO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-FO7GMJKG.js +0 -875
- package/dist/cli-bundle/chunks/chunk-FO7GMJKG.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-FTQLW4JD.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-IA3YFTXT.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-IGED7NH2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-J4NZOP3I.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-JL7WZ4O2.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-L24HCJFC.js +0 -309
- package/dist/cli-bundle/chunks/chunk-L24HCJFC.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-LWTIRS3Y.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-MKL4CP2I.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-N3CMP4NI.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-PHKP3AGR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-Q37E63AM.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-QASRVKUQ.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-RGXD5JJR.js.map +0 -7
- package/dist/cli-bundle/chunks/chunk-UB2QYSTO.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-UGTVWL3E.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ZAYYDNB3.js.map +0 -1
- package/dist/cli-bundle/chunks/chunk-ZUKSZVBW.js.map +0 -7
- package/dist/cli-bundle/chunks/close-RI4JQQHU.js +0 -12
- package/dist/cli-bundle/chunks/close-many-LY2XJ52M.js +0 -21
- package/dist/cli-bundle/chunks/comments-35M273DN.js +0 -13
- package/dist/cli-bundle/chunks/copy-NPYM7M7U.js +0 -9
- package/dist/cli-bundle/chunks/delete-ODRWJWAM.js +0 -10
- package/dist/cli-bundle/chunks/docs-G7N4E2JO.js +0 -14
- package/dist/cli-bundle/chunks/focus-U5TRVCRS.js +0 -10
- package/dist/cli-bundle/chunks/history-compact-M7GHYVFN.js +0 -20
- package/dist/cli-bundle/chunks/history-redact-JIHZLHDP.js +0 -16
- package/dist/cli-bundle/chunks/history-repair-NAFCHLH7.js +0 -18
- package/dist/cli-bundle/chunks/learnings-SONGPSHI.js +0 -13
- package/dist/cli-bundle/chunks/notes-BSD53H2W.js +0 -13
- package/dist/cli-bundle/chunks/plan-AWLYGBNV.js +0 -24
- package/dist/cli-bundle/chunks/register-list-query-BUWCYHBT.js.map +0 -7
- package/dist/cli-bundle/chunks/register-list-query-KTZ6AGE7.js.map +0 -1
- package/dist/cli-bundle/chunks/register-mutation-4FMGJJF7.js.map +0 -1
- package/dist/cli-bundle/chunks/restore-66GLMHIX.js +0 -14
- package/dist/cli-bundle/chunks/update-2XGHIVQ2.js +0 -21
- package/dist/cli-bundle/chunks/update-many-75K57FS3.js +0 -34
- package/dist/cli-bundle/chunks/update-many-U42YA445.js +0 -30
- /package/dist/cli-bundle/chunks/{append-PVZJDM6J.js.map → append-OJQFUQ4T.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{append-DYQWQK2J.js.map → append-UZVHUO74.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MQZ3PLCF.js.map → chunk-2IFFUZLC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-P6MYFH6K.js.map → chunk-2JKGO6QX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-X3GYR4P2.js.map → chunk-2NCIPMQP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Q7E6OYZK.js.map → chunk-2VPAVL7O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DRNJPEPQ.js.map → chunk-2WSE6PO2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FDSBDNYE.js.map → chunk-34L5OT3Y.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TH7U4KLY.js.map → chunk-3AUGG2DP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NKW36AMT.js.map → chunk-3CLU2XZO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ABRCOSDC.js.map → chunk-3WM75PWC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-X6BVXQ52.js.map → chunk-5JLUII3O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3TL7WOEF.js.map → chunk-6N2VXVTQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ERL2YFJ2.js.map → chunk-6S3YSUYG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IFZA4VB5.js.map → chunk-AHVTB5I5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-DO5RGJXT.js.map → chunk-APRVSW2O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-NAQYVWSQ.js.map → chunk-B7PE22W6.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-MD6ULIPJ.js.map → chunk-BCOFWYW4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KADLSPIU.js.map → chunk-BEP7WJA2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-OBDLEQG5.js.map → chunk-CRVF2JDM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FJZDA6MS.js.map → chunk-DM4H7FP4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-LZECOMHO.js.map → chunk-DUT67M43.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-44LNIULG.js.map → chunk-DYH63FX7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HAMLIWAF.js.map → chunk-EAB64KLB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-CIOZ376P.js.map → chunk-EACOH7AU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QK2ZN6UL.js.map → chunk-EJEXHTY5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WQUEHPZB.js.map → chunk-EYLCSJAI.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-655STMGA.js.map → chunk-FMBNM2EN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RMF3IOYQ.js.map → chunk-FNSPG7MU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-KB726FMH.js.map → chunk-H2Z3FYXQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-BN62TO2S.js.map → chunk-IA5FKNII.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-W6HZ55JO.js.map → chunk-IJIICKVW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-M7EWN4TF.js.map → chunk-JOUQZENX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-2FNWQXZ2.js.map → chunk-JYFOV7FC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-HLHSQ5CA.js.map → chunk-K2X6U4UA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-M6ASXYCU.js.map → chunk-KG44YSKD.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YVKE5ZDM.js.map → chunk-KPMKHGEA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-ZHI6A5TN.js.map → chunk-MIQDDLB5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UJ4HJYWL.js.map → chunk-NLDFBC6J.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WRKB56FC.js.map → chunk-NP22ERDF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-YQYG2V23.js.map → chunk-NU3IMIEA.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3I3LRT2G.js.map → chunk-NVPZIJVR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-JAF4TUQ7.js.map → chunk-ODALILG3.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QZ7LT3XE.js.map → chunk-ONREO4ST.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-3CMRNVTO.js.map → chunk-P74IZQ7A.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZTRBSABY.js.map → chunk-PGY23YTC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-H2QBAKLQ.js.map → chunk-PMOSXADO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-RI4JQQHU.js.map → chunk-PNTULOGU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-GSEADLRH.js.map → chunk-Q7A43DS4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QSPARJWF.js.map → chunk-QEHQ2GVG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-VJTAEIPC.js.map → chunk-QIPLHNP7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-K7WNZ7KD.js.map → chunk-QKJGPFAF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ZNP64HOW.js.map → chunk-RLCHOOHC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-IAPHYPRL.js.map → chunk-RMLWNPH2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UVBA6F5A.js.map → chunk-RRM5JYJC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-6IIVBC56.js.map → chunk-S6MQESFR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-QABYZYLU.js.map → chunk-SDQLJWBO.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-ANSJHDOZ.js.map → chunk-SELVXEZK.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WD6MSYMP.js.map → chunk-TKOVBP6C.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TZ2PSLLT.js.map → chunk-TQSZFPIS.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-WPAWZW7S.js.map → chunk-TSMHDIW4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TZRTLMWM.js.map → chunk-UFXU44HV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-TWLDBKQU.js.map → chunk-ULTHRDBP.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-RA5AIAMP.js.map → chunk-UOHFKBUV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-4RXTMU57.js.map → chunk-UY2ACEMF.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FIGXOCEQ.js.map → chunk-WUJQK4YV.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-T4BRCB6Z.js.map → chunk-XSJUSQAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-UKUIIBDW.js.map → chunk-YAQEBNY7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-E2WC6S4P.js.map → chunk-YBLZ2VE7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-Y72FV7RM.js.map → chunk-YCQET3OT.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{close-many-LY2XJ52M.js.map → chunk-YUSOJDWM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{chunk-FS6UM5WH.js.map → chunk-ZI6VQWQ7.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-AJWRTFZ5.js.map → close-CWODTPKG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{comments-35M273DN.js.map → close-W6LI2PKM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-GMXYKBXT.js.map → close-many-CQFUY7MR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{copy-NPYM7M7U.js.map → close-many-DLDDVSH5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-F53OBTOU.js.map → comments-E3TNTK24.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{create-HU4Q7RJX.js.map → comments-WGLHR7LB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-GSDZLTRC.js.map → copy-LXVDXH7B.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{delete-ODRWJWAM.js.map → copy-Q5ZJPUKR.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-U57I7EAK.js.map → create-J5U6ND4K.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{deps-WWB7P2GT.js.map → create-LBVCYMEG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-MQIY2ZQS.js.map → delete-PMJBNY5G.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{docs-G7N4E2JO.js.map → delete-WNHB3LYW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-TTY6N2AV.js.map → deps-JZ7TMVCB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{files-TBZD7V6H.js.map → deps-OA26IS25.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-XT6YVFFX.js.map → docs-FEWB2DQB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{focus-U5TRVCRS.js.map → docs-HA2AIDBB.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-M7GHYVFN.js.map → files-6YFBJRBG.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-compact-KKVUWB4V.js.map → files-EFIWKFTM.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-3DVZOILD.js.map → focus-4QJR7FOQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-redact-JIHZLHDP.js.map → focus-POIW5LTJ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-ITDUMK4N.js.map → history-compact-CKRPDTJN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{history-repair-NAFCHLH7.js.map → history-compact-FWG2C7FZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-SONGPSHI.js.map → history-redact-BB3TGDAE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{learnings-FGO3NSFW.js.map → history-redact-D225BHOZ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-BSD53H2W.js.map → history-repair-6GEAM7HE.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{notes-NQ6RXVW6.js.map → history-repair-RQXKQHL4.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-2NNEO46V.js.map → learnings-JLNLCOL5.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{plan-AWLYGBNV.js.map → learnings-RSNLSWDC.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-U725ATWZ.js.map → notes-2WDH6DXU.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{profile-AAQUU6T3.js.map → notes-GB47XXQQ.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-66GLMHIX.js.map → plan-DOVI2VMW.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{restore-B3BAB6X2.js.map → plan-VDCJ2PCN.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-U7IM2DXV.js.map → profile-FAU7NZML.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{schema-LZNUYHDB.js.map → profile-IVXQEL3D.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-Q3UCILNR.js.map → restore-25DLT2Q2.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-2XGHIVQ2.js.map → restore-YPMVUUEX.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-75K57FS3.js.map → schema-FNU3WE4O.js.map} +0 -0
- /package/dist/cli-bundle/chunks/{update-many-U42YA445.js.map → schema-NBCM3RAD.js.map} +0 -0
- /package/dist/{cli/commands → sdk}/extension/managed-state.d.ts +0 -0
package/dist/cli-bundle/sdk.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
applyInvocationAuthorOverride,
|
|
3
|
+
createPmCliProgram
|
|
4
|
+
} from "./chunks/chunk-ZKRZY773.js";
|
|
1
5
|
import {
|
|
2
6
|
PM_CLI_EXPECTED_ERROR_NAME,
|
|
3
7
|
PmClient,
|
|
@@ -32,6 +36,11 @@ import {
|
|
|
32
36
|
getContracts,
|
|
33
37
|
getWorkspaceContracts,
|
|
34
38
|
health,
|
|
39
|
+
historyCompact,
|
|
40
|
+
historyCompactBulk,
|
|
41
|
+
historyRedact,
|
|
42
|
+
historyRepair,
|
|
43
|
+
historyRepairAll,
|
|
35
44
|
init,
|
|
36
45
|
isPmCliExpectedError,
|
|
37
46
|
learnings,
|
|
@@ -104,25 +113,73 @@ import {
|
|
|
104
113
|
update,
|
|
105
114
|
upgrade,
|
|
106
115
|
validate
|
|
107
|
-
} from "./chunks/chunk-
|
|
108
|
-
import "./chunks/chunk-ZHBI2AP7.js";
|
|
116
|
+
} from "./chunks/chunk-4XQ3BDV4.js";
|
|
109
117
|
import "./chunks/chunk-6X5MZ5R2.js";
|
|
110
118
|
import "./chunks/chunk-3HKUXVKV.js";
|
|
111
|
-
import "./chunks/chunk-
|
|
119
|
+
import "./chunks/chunk-PNTULOGU.js";
|
|
112
120
|
import {
|
|
121
|
+
assertHistoryRepairTarget,
|
|
122
|
+
runHistoryRepair,
|
|
123
|
+
runHistoryRepairAll
|
|
124
|
+
} from "./chunks/chunk-LSG2U345.js";
|
|
125
|
+
import {
|
|
126
|
+
_testOnlyHealthCommand,
|
|
127
|
+
_testOnlyValidateCommand,
|
|
128
|
+
inspectHistoryAuthorStream,
|
|
129
|
+
runGc,
|
|
130
|
+
runHealth,
|
|
113
131
|
runTestRunsList,
|
|
114
132
|
runTestRunsLogs,
|
|
115
133
|
runTestRunsResume,
|
|
116
134
|
runTestRunsStatus,
|
|
117
|
-
runTestRunsStop
|
|
118
|
-
|
|
135
|
+
runTestRunsStop,
|
|
136
|
+
runValidate,
|
|
137
|
+
scanHistoryAuthorAttribution
|
|
138
|
+
} from "./chunks/chunk-ILX33QXL.js";
|
|
139
|
+
import {
|
|
140
|
+
runDocs
|
|
141
|
+
} from "./chunks/chunk-ODALILG3.js";
|
|
142
|
+
import {
|
|
143
|
+
RelationshipGraph,
|
|
144
|
+
RelationshipKindRegistry,
|
|
145
|
+
buildRelationshipContext,
|
|
146
|
+
collectDanglingDependencyReferences,
|
|
147
|
+
createRelationshipKindRegistry,
|
|
148
|
+
dependencyToRelationship,
|
|
149
|
+
isOrderingRelationshipKind,
|
|
150
|
+
runDeps
|
|
151
|
+
} from "./chunks/chunk-BKVG6XOA.js";
|
|
152
|
+
import "./chunks/chunk-KG44YSKD.js";
|
|
153
|
+
import "./chunks/chunk-6S3YSUYG.js";
|
|
154
|
+
import "./chunks/chunk-H2Z3FYXQ.js";
|
|
155
|
+
import "./chunks/chunk-3AUGG2DP.js";
|
|
156
|
+
import "./chunks/chunk-AHVTB5I5.js";
|
|
157
|
+
import {
|
|
158
|
+
PROFILE_SUBCOMMANDS,
|
|
159
|
+
_testOnly as _testOnly4,
|
|
160
|
+
describeProfileComposition,
|
|
161
|
+
describeProjectProfile,
|
|
162
|
+
formatProfileApplyHuman,
|
|
163
|
+
formatProfileLintHuman,
|
|
164
|
+
formatProfileListHuman,
|
|
165
|
+
formatProfileShowHuman,
|
|
166
|
+
loadCreateTemplateOptions,
|
|
167
|
+
planProfileApplication,
|
|
168
|
+
runProfileApply,
|
|
169
|
+
runProfileLint,
|
|
170
|
+
runProfileList,
|
|
171
|
+
runProfileShow,
|
|
172
|
+
runTemplatesList,
|
|
173
|
+
runTemplatesSave,
|
|
174
|
+
runTemplatesShow
|
|
175
|
+
} from "./chunks/chunk-UWQHLMEB.js";
|
|
176
|
+
import "./chunks/chunk-FMBNM2EN.js";
|
|
177
|
+
import "./chunks/chunk-34L5OT3Y.js";
|
|
178
|
+
import "./chunks/chunk-ZHBI2AP7.js";
|
|
119
179
|
import {
|
|
120
180
|
runFiles,
|
|
121
181
|
runFilesDiscover
|
|
122
|
-
} from "./chunks/chunk-
|
|
123
|
-
import {
|
|
124
|
-
runDocs
|
|
125
|
-
} from "./chunks/chunk-JAF4TUQ7.js";
|
|
182
|
+
} from "./chunks/chunk-ZI6VQWQ7.js";
|
|
126
183
|
import {
|
|
127
184
|
applyPathMigrations,
|
|
128
185
|
applyStandaloneNote,
|
|
@@ -139,28 +196,25 @@ import {
|
|
|
139
196
|
runLinkedArtifacts,
|
|
140
197
|
sortLinkedArtifacts,
|
|
141
198
|
validateLinkedPaths
|
|
142
|
-
} from "./chunks/chunk-
|
|
199
|
+
} from "./chunks/chunk-WUJQK4YV.js";
|
|
200
|
+
import "./chunks/chunk-FNSPG7MU.js";
|
|
201
|
+
import "./chunks/chunk-YBLZ2VE7.js";
|
|
202
|
+
import "./chunks/chunk-UOHFKBUV.js";
|
|
203
|
+
import "./chunks/chunk-6CFNAVTF.js";
|
|
204
|
+
import "./chunks/chunk-CRVF2JDM.js";
|
|
143
205
|
import {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
import "./chunks/chunk-KADLSPIU.js";
|
|
149
|
-
import "./chunks/chunk-ERL2YFJ2.js";
|
|
150
|
-
import "./chunks/chunk-KB726FMH.js";
|
|
151
|
-
import "./chunks/chunk-TH7U4KLY.js";
|
|
152
|
-
import "./chunks/chunk-IFZA4VB5.js";
|
|
206
|
+
PLAN_SHOW_DEPTH_VALUES,
|
|
207
|
+
PLAN_SUBCOMMANDS,
|
|
208
|
+
PLAN_TEMPLATE_NAMES
|
|
209
|
+
} from "./chunks/chunk-K2X6U4UA.js";
|
|
153
210
|
import {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
} from "./chunks/chunk-PHKP3AGR.js";
|
|
162
|
-
import "./chunks/chunk-655STMGA.js";
|
|
163
|
-
import "./chunks/chunk-FDSBDNYE.js";
|
|
211
|
+
HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,
|
|
212
|
+
assertHistoryCompactTarget,
|
|
213
|
+
runHistoryCompact,
|
|
214
|
+
runHistoryCompactBulk
|
|
215
|
+
} from "./chunks/chunk-K3WII2ME.js";
|
|
216
|
+
import "./chunks/chunk-YUSOJDWM.js";
|
|
217
|
+
import "./chunks/chunk-BEP7WJA2.js";
|
|
164
218
|
import {
|
|
165
219
|
isErrnoError,
|
|
166
220
|
limitAnnotationEntries,
|
|
@@ -170,22 +224,8 @@ import {
|
|
|
170
224
|
resolveAnnotationInput,
|
|
171
225
|
runAnnotationCommand,
|
|
172
226
|
wrapOwnershipConflict
|
|
173
|
-
} from "./chunks/chunk-
|
|
174
|
-
import "./chunks/chunk-
|
|
175
|
-
import "./chunks/chunk-E2WC6S4P.js";
|
|
176
|
-
import "./chunks/chunk-RA5AIAMP.js";
|
|
177
|
-
import "./chunks/chunk-Q37E63AM.js";
|
|
178
|
-
import "./chunks/chunk-OBDLEQG5.js";
|
|
179
|
-
import "./chunks/chunk-DRNJPEPQ.js";
|
|
180
|
-
import {
|
|
181
|
-
PLAN_SHOW_DEPTH_VALUES,
|
|
182
|
-
PLAN_SUBCOMMANDS,
|
|
183
|
-
PLAN_TEMPLATE_NAMES
|
|
184
|
-
} from "./chunks/chunk-HLHSQ5CA.js";
|
|
185
|
-
import "./chunks/chunk-6OTZMORS.js";
|
|
186
|
-
import "./chunks/chunk-DYEX6NFH.js";
|
|
187
|
-
import "./chunks/chunk-YRYYFGV3.js";
|
|
188
|
-
import "./chunks/chunk-WRKB56FC.js";
|
|
227
|
+
} from "./chunks/chunk-QIPLHNP7.js";
|
|
228
|
+
import "./chunks/chunk-NP22ERDF.js";
|
|
189
229
|
import {
|
|
190
230
|
activateExtensionForTest,
|
|
191
231
|
assertExtensionBlueprint,
|
|
@@ -237,7 +277,7 @@ import {
|
|
|
237
277
|
runRegisteredServiceOverrideForTest,
|
|
238
278
|
runRegisteredVectorStoreAdapterForTest,
|
|
239
279
|
synthesizeExtensionManifest
|
|
240
|
-
} from "./chunks/chunk-
|
|
280
|
+
} from "./chunks/chunk-KPMKHGEA.js";
|
|
241
281
|
import {
|
|
242
282
|
BUILTIN_PROFILES,
|
|
243
283
|
PROFILE_LINT_CODES,
|
|
@@ -247,32 +287,52 @@ import {
|
|
|
247
287
|
listProfiles,
|
|
248
288
|
normalizeProfileName,
|
|
249
289
|
resolveProfile
|
|
250
|
-
} from "./chunks/chunk-
|
|
290
|
+
} from "./chunks/chunk-YAQEBNY7.js";
|
|
251
291
|
import "./chunks/chunk-KAE727L2.js";
|
|
252
|
-
import "./chunks/chunk-7TQMR6LK.js";
|
|
253
292
|
import {
|
|
293
|
+
_testOnlyConfigCommand,
|
|
294
|
+
runConfig
|
|
295
|
+
} from "./chunks/chunk-WT3ZEOGH.js";
|
|
296
|
+
import {
|
|
297
|
+
INIT_AGENT_GUIDANCE_MODE_VALUES,
|
|
254
298
|
PM_PACKAGE_CONVENTIONAL_RESOURCE_ROOTS,
|
|
255
299
|
PM_PACKAGE_RESOURCE_KINDS,
|
|
300
|
+
_testOnly,
|
|
301
|
+
_testOnly2,
|
|
256
302
|
collectPackageExtensionDirectories,
|
|
257
|
-
readPmPackageManifest
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
303
|
+
readPmPackageManifest,
|
|
304
|
+
runExtension,
|
|
305
|
+
runInit,
|
|
306
|
+
runInitAgentGuidance,
|
|
307
|
+
summarizeInitResult
|
|
308
|
+
} from "./chunks/chunk-J6364LFM.js";
|
|
309
|
+
import "./chunks/chunk-GM5QHQU6.js";
|
|
310
|
+
import "./chunks/chunk-BCOFWYW4.js";
|
|
311
|
+
import {
|
|
312
|
+
quoteCommandArg,
|
|
313
|
+
quoteWindowsCommandArg,
|
|
314
|
+
renderPmCommand
|
|
315
|
+
} from "./chunks/chunk-PENXZX3U.js";
|
|
261
316
|
import {
|
|
262
317
|
describeExtensionActivation,
|
|
263
318
|
renderExtensionSurfaceMarkdown
|
|
264
|
-
} from "./chunks/chunk-
|
|
319
|
+
} from "./chunks/chunk-EYLCSJAI.js";
|
|
265
320
|
import "./chunks/chunk-Q3K5XPAQ.js";
|
|
266
|
-
import "./chunks/chunk-
|
|
267
|
-
import "./chunks/chunk-DO5RGJXT.js";
|
|
321
|
+
import "./chunks/chunk-APRVSW2O.js";
|
|
268
322
|
import {
|
|
323
|
+
DEFAULT_CHILD_SAMPLE_LIMIT,
|
|
324
|
+
MAX_CHILD_PROJECTION_ITEMS,
|
|
325
|
+
buildItemChildrenRollup,
|
|
326
|
+
buildItemSchedule,
|
|
327
|
+
itemHasSchedule,
|
|
269
328
|
runSearch
|
|
270
|
-
} from "./chunks/chunk-
|
|
329
|
+
} from "./chunks/chunk-HYB5AZ63.js";
|
|
271
330
|
import {
|
|
272
331
|
CONTEXT_EVALUATION_METRIC_NAMES,
|
|
273
332
|
CONTEXT_PACKING_PROFILES,
|
|
274
333
|
CONTEXT_RELEVANCE_SERVICE,
|
|
275
334
|
CONTEXT_RELEVANCE_SIGNAL_NAMES,
|
|
335
|
+
buildItemContextRelevanceCandidates,
|
|
276
336
|
defaultScoreContextCandidates,
|
|
277
337
|
evaluateContextRanking,
|
|
278
338
|
packContextCandidates,
|
|
@@ -285,8 +345,9 @@ import {
|
|
|
285
345
|
scoreContextCandidates,
|
|
286
346
|
scoreContextCandidatesWithActiveExtensions,
|
|
287
347
|
summarizeContextEvaluationReports
|
|
288
|
-
} from "./chunks/chunk-
|
|
348
|
+
} from "./chunks/chunk-E2OJMKML.js";
|
|
289
349
|
import "./chunks/chunk-KWYX6ZIR.js";
|
|
350
|
+
import "./chunks/chunk-XXXF6PAQ.js";
|
|
290
351
|
import {
|
|
291
352
|
QUERY_CURSOR_CONTRACT,
|
|
292
353
|
createQueryFingerprint,
|
|
@@ -295,19 +356,32 @@ import {
|
|
|
295
356
|
encodeQueryCursor,
|
|
296
357
|
paginateQueryRows,
|
|
297
358
|
resolveQueryCursorStart
|
|
298
|
-
} from "./chunks/chunk-
|
|
299
|
-
import
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
import "./chunks/chunk-
|
|
359
|
+
} from "./chunks/chunk-4223PVZT.js";
|
|
360
|
+
import {
|
|
361
|
+
getItemAt
|
|
362
|
+
} from "./chunks/chunk-3U7ZR6M4.js";
|
|
363
|
+
import "./chunks/chunk-IJIICKVW.js";
|
|
364
|
+
import {
|
|
365
|
+
_testOnly as _testOnly3,
|
|
366
|
+
applyHistoryPatch,
|
|
367
|
+
ensureMaterializedHistoryTarget,
|
|
368
|
+
extractPatchFailureContext,
|
|
369
|
+
readHistoryEntries,
|
|
370
|
+
replayHistoryToTarget,
|
|
371
|
+
resolveHistorySubject,
|
|
372
|
+
resolveHistoryTarget,
|
|
373
|
+
runHistoryRedact
|
|
374
|
+
} from "./chunks/chunk-TD3LVC7D.js";
|
|
375
|
+
import "./chunks/chunk-NU3IMIEA.js";
|
|
376
|
+
import "./chunks/chunk-YRYYFGV3.js";
|
|
303
377
|
import {
|
|
304
378
|
readContextUsageAffinity,
|
|
305
379
|
recordContextUsageServing,
|
|
306
380
|
recordContextUsageTouch,
|
|
307
381
|
recordContextUsageTouches
|
|
308
|
-
} from "./chunks/chunk-
|
|
382
|
+
} from "./chunks/chunk-YCQET3OT.js";
|
|
309
383
|
import "./chunks/chunk-CYCJBU3I.js";
|
|
310
|
-
import "./chunks/chunk-
|
|
384
|
+
import "./chunks/chunk-7B67ZL4N.js";
|
|
311
385
|
import {
|
|
312
386
|
ACTIVITY_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
313
387
|
APPEND_FLAG_CONTRACTS,
|
|
@@ -430,16 +504,22 @@ import {
|
|
|
430
504
|
resolveSubcommandFlagContractsForCommand,
|
|
431
505
|
toCompletionFlagString,
|
|
432
506
|
withFlagAliasMetadata
|
|
433
|
-
} from "./chunks/chunk-
|
|
434
|
-
import "./chunks/chunk-
|
|
435
|
-
import "./chunks/chunk-
|
|
507
|
+
} from "./chunks/chunk-H5APFTHZ.js";
|
|
508
|
+
import "./chunks/chunk-UMOPHQSU.js";
|
|
509
|
+
import "./chunks/chunk-RMLWNPH2.js";
|
|
436
510
|
import {
|
|
437
511
|
parseTags
|
|
438
|
-
} from "./chunks/chunk-
|
|
439
|
-
import "./chunks/chunk-
|
|
440
|
-
import "./chunks/chunk-
|
|
512
|
+
} from "./chunks/chunk-TKOVBP6C.js";
|
|
513
|
+
import "./chunks/chunk-ULTHRDBP.js";
|
|
514
|
+
import "./chunks/chunk-SELVXEZK.js";
|
|
441
515
|
import "./chunks/chunk-D6HZN36B.js";
|
|
442
|
-
import
|
|
516
|
+
import {
|
|
517
|
+
SUPPRESS_HOST_OUTPUT_MARKER,
|
|
518
|
+
isHostOutputSuppressed,
|
|
519
|
+
suppressHostOutput
|
|
520
|
+
} from "./chunks/chunk-IG3SWA4A.js";
|
|
521
|
+
import "./chunks/chunk-2WSE6PO2.js";
|
|
522
|
+
import "./chunks/chunk-NLDFBC6J.js";
|
|
443
523
|
import {
|
|
444
524
|
BASELINE_ITEM_FORMAT_VERSION,
|
|
445
525
|
CURRENT_ITEM_FORMAT_VERSION,
|
|
@@ -467,7 +547,7 @@ import {
|
|
|
467
547
|
scanItemFormatVersions,
|
|
468
548
|
serializeItemDocument,
|
|
469
549
|
splitFrontMatter
|
|
470
|
-
} from "./chunks/chunk-
|
|
550
|
+
} from "./chunks/chunk-XSJUSQAE.js";
|
|
471
551
|
import {
|
|
472
552
|
BUILTIN_ITEM_TYPE_VALUES,
|
|
473
553
|
CONFIDENCE_TEXT_VALUES,
|
|
@@ -501,7 +581,655 @@ import {
|
|
|
501
581
|
resolveRuntimeFieldRegistry,
|
|
502
582
|
resolveRuntimeStatusRegistry,
|
|
503
583
|
writeFileAtomic
|
|
504
|
-
} from "./chunks/chunk-
|
|
584
|
+
} from "./chunks/chunk-BSEQUTQP.js";
|
|
585
|
+
|
|
586
|
+
// dist/sdk/output.js
|
|
587
|
+
!(function() {
|
|
588
|
+
try {
|
|
589
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
590
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fee22fbe-b4a1-5524-9df1-7be06fb07427");
|
|
591
|
+
} catch (e2) {
|
|
592
|
+
}
|
|
593
|
+
})();
|
|
594
|
+
|
|
595
|
+
// dist/sdk/relationship-analytics.js
|
|
596
|
+
!(function() {
|
|
597
|
+
try {
|
|
598
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
599
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0a54b889-6d5c-565c-85ff-47e5cce68a32");
|
|
600
|
+
} catch (e2) {
|
|
601
|
+
}
|
|
602
|
+
})();
|
|
603
|
+
function appendNeighbor(adjacency, source, target) {
|
|
604
|
+
adjacency.get(source).add(target);
|
|
605
|
+
}
|
|
606
|
+
function createAdjacency(nodes) {
|
|
607
|
+
return new Map(nodes.map((node) => [node, /* @__PURE__ */ new Set()]));
|
|
608
|
+
}
|
|
609
|
+
function sortComponents(components) {
|
|
610
|
+
for (const component of components)
|
|
611
|
+
component.sort();
|
|
612
|
+
return components.sort((left, right) => right.length - left.length || left[0].localeCompare(right[0]));
|
|
613
|
+
}
|
|
614
|
+
function stableJsonValue(value) {
|
|
615
|
+
if (Array.isArray(value))
|
|
616
|
+
return value.map((entry) => stableJsonValue(entry));
|
|
617
|
+
if (value === null || typeof value !== "object")
|
|
618
|
+
return value;
|
|
619
|
+
const toJSON = value.toJSON;
|
|
620
|
+
if (typeof toJSON === "function")
|
|
621
|
+
return stableJsonValue(toJSON.call(value));
|
|
622
|
+
return Object.fromEntries(Object.entries(value).sort(([left], [right]) => left.localeCompare(right)).map(([key, entry]) => [key, stableJsonValue(entry)]));
|
|
623
|
+
}
|
|
624
|
+
function relationshipEdgeKey(edge) {
|
|
625
|
+
return JSON.stringify(stableJsonValue(edge));
|
|
626
|
+
}
|
|
627
|
+
function appendFinishingOrder(start, adjacency, visited, order) {
|
|
628
|
+
const stack = [{ id: start, expanded: false }];
|
|
629
|
+
while (stack.length > 0) {
|
|
630
|
+
const current = stack.pop();
|
|
631
|
+
if (current.expanded) {
|
|
632
|
+
order.push(current.id);
|
|
633
|
+
continue;
|
|
634
|
+
}
|
|
635
|
+
if (visited.has(current.id))
|
|
636
|
+
continue;
|
|
637
|
+
visited.add(current.id);
|
|
638
|
+
stack.push({ id: current.id, expanded: true });
|
|
639
|
+
const neighbors = [...adjacency.get(current.id)].sort().reverse();
|
|
640
|
+
for (const neighbor of neighbors)
|
|
641
|
+
if (!visited.has(neighbor))
|
|
642
|
+
stack.push({ id: neighbor, expanded: false });
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
function computeFinishingOrder(nodes, adjacency) {
|
|
646
|
+
const visited = /* @__PURE__ */ new Set();
|
|
647
|
+
const order = [];
|
|
648
|
+
for (const start of nodes)
|
|
649
|
+
if (!visited.has(start))
|
|
650
|
+
appendFinishingOrder(start, adjacency, visited, order);
|
|
651
|
+
return order;
|
|
652
|
+
}
|
|
653
|
+
function collectReverseComponents(order, reverse) {
|
|
654
|
+
const visited = /* @__PURE__ */ new Set();
|
|
655
|
+
const components = [];
|
|
656
|
+
for (const start of [...order].reverse()) {
|
|
657
|
+
if (visited.has(start))
|
|
658
|
+
continue;
|
|
659
|
+
const component = [];
|
|
660
|
+
const stack = [start];
|
|
661
|
+
visited.add(start);
|
|
662
|
+
while (stack.length > 0) {
|
|
663
|
+
const current = stack.pop();
|
|
664
|
+
component.push(current);
|
|
665
|
+
for (const neighbor of reverse.get(current)) {
|
|
666
|
+
if (visited.has(neighbor))
|
|
667
|
+
continue;
|
|
668
|
+
visited.add(neighbor);
|
|
669
|
+
stack.push(neighbor);
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
components.push(component);
|
|
673
|
+
}
|
|
674
|
+
return sortComponents(components);
|
|
675
|
+
}
|
|
676
|
+
function stronglyConnectedComponents(nodes, adjacency) {
|
|
677
|
+
const reverse = createAdjacency(nodes);
|
|
678
|
+
for (const [source, targets] of adjacency)
|
|
679
|
+
for (const target of targets)
|
|
680
|
+
appendNeighbor(reverse, target, source);
|
|
681
|
+
return collectReverseComponents(computeFinishingOrder(nodes, adjacency), reverse);
|
|
682
|
+
}
|
|
683
|
+
function buildExecutionAdjacency(graph, registry) {
|
|
684
|
+
const adjacency = createAdjacency(graph.nodes());
|
|
685
|
+
for (const edge of graph.edges()) {
|
|
686
|
+
const definition = registry.require(edge.kind);
|
|
687
|
+
if (!definition.ordering)
|
|
688
|
+
continue;
|
|
689
|
+
const sourceFirst = (definition.precedence ?? "source_before_target") === "source_before_target";
|
|
690
|
+
appendNeighbor(adjacency, sourceFirst ? edge.source : edge.target, sourceFirst ? edge.target : edge.source);
|
|
691
|
+
}
|
|
692
|
+
return adjacency;
|
|
693
|
+
}
|
|
694
|
+
function topologicalLayers(nodes, adjacency) {
|
|
695
|
+
const indegree = new Map(nodes.map((node) => [node, 0]));
|
|
696
|
+
for (const targets of adjacency.values())
|
|
697
|
+
for (const target of targets)
|
|
698
|
+
indegree.set(target, indegree.get(target) + 1);
|
|
699
|
+
let frontier = nodes.filter((node) => indegree.get(node) === 0).sort();
|
|
700
|
+
const layers = [];
|
|
701
|
+
while (frontier.length > 0) {
|
|
702
|
+
layers.push(frontier);
|
|
703
|
+
const next2 = [];
|
|
704
|
+
for (const source of frontier) {
|
|
705
|
+
for (const target of adjacency.get(source)) {
|
|
706
|
+
const remaining = indegree.get(target) - 1;
|
|
707
|
+
indegree.set(target, remaining);
|
|
708
|
+
if (remaining === 0)
|
|
709
|
+
next2.push(target);
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
frontier = next2.sort();
|
|
713
|
+
}
|
|
714
|
+
return layers;
|
|
715
|
+
}
|
|
716
|
+
function longestPath(order, adjacency) {
|
|
717
|
+
const depth = new Map(order.map((node) => [node, 0]));
|
|
718
|
+
const parent = /* @__PURE__ */ new Map();
|
|
719
|
+
for (const source of order) {
|
|
720
|
+
for (const target of adjacency.get(source)) {
|
|
721
|
+
if (!depth.has(target))
|
|
722
|
+
continue;
|
|
723
|
+
const candidate = depth.get(source) + 1;
|
|
724
|
+
const currentParent = parent.get(target);
|
|
725
|
+
if (candidate > depth.get(target) || candidate === depth.get(target) && (currentParent === void 0 || source.localeCompare(currentParent) < 0)) {
|
|
726
|
+
depth.set(target, candidate);
|
|
727
|
+
parent.set(target, source);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
const end = [...order].sort((left, right) => depth.get(right) - depth.get(left) || left.localeCompare(right))[0];
|
|
732
|
+
const path2 = end === void 0 ? [] : [end];
|
|
733
|
+
while (path2[0] !== void 0 && parent.has(path2[0]))
|
|
734
|
+
path2.unshift(parent.get(path2[0]));
|
|
735
|
+
return { depth: Object.fromEntries(depth), path: path2 };
|
|
736
|
+
}
|
|
737
|
+
function reconstructImpactPath(root, target, parents) {
|
|
738
|
+
const path2 = [target];
|
|
739
|
+
let cursor = target;
|
|
740
|
+
while (cursor !== root) {
|
|
741
|
+
cursor = parents.get(cursor);
|
|
742
|
+
path2.push(cursor);
|
|
743
|
+
}
|
|
744
|
+
return path2.reverse();
|
|
745
|
+
}
|
|
746
|
+
function analyzeRelationshipExecution(graph, options = {}) {
|
|
747
|
+
const registry = options.registry ?? createRelationshipKindRegistry();
|
|
748
|
+
const nodes = [...graph.nodes()];
|
|
749
|
+
const adjacency = buildExecutionAdjacency(graph, registry);
|
|
750
|
+
const layers = topologicalLayers(nodes, adjacency);
|
|
751
|
+
const order = layers.flat();
|
|
752
|
+
const acyclic = order.length === nodes.length;
|
|
753
|
+
const cycles = acyclic ? [] : stronglyConnectedComponents(nodes, adjacency).filter((component) => component.length > 1 || adjacency.get(component[0]).has(component[0]));
|
|
754
|
+
const longest = longestPath(order, adjacency);
|
|
755
|
+
return {
|
|
756
|
+
exact: true,
|
|
757
|
+
acyclic,
|
|
758
|
+
order,
|
|
759
|
+
layers,
|
|
760
|
+
frontier: layers[0] ?? [],
|
|
761
|
+
depth: longest.depth,
|
|
762
|
+
criticalPath: longest.path,
|
|
763
|
+
criticalPathLength: Math.max(0, longest.path.length - 1),
|
|
764
|
+
cycles,
|
|
765
|
+
provenance: { algorithm: "kahn-longest-path", edgeFamily: "ordering" }
|
|
766
|
+
};
|
|
767
|
+
}
|
|
768
|
+
function analyzeGraphImpact(graph, root, options = {}) {
|
|
769
|
+
const direction = options.direction ?? "outgoing";
|
|
770
|
+
const maxDepth = options.maxDepth ?? Number.POSITIVE_INFINITY;
|
|
771
|
+
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
772
|
+
const queue = [{ id: root, depth: 0 }];
|
|
773
|
+
const seen = /* @__PURE__ */ new Set([root]);
|
|
774
|
+
const parents = /* @__PURE__ */ new Map();
|
|
775
|
+
const affected = [];
|
|
776
|
+
let visitedNodes = 0;
|
|
777
|
+
let inspectedEdges = 0;
|
|
778
|
+
let truncated = false;
|
|
779
|
+
traversal: for (let index = 0; index < queue.length; index += 1) {
|
|
780
|
+
options.signal?.throwIfAborted();
|
|
781
|
+
const current = queue[index];
|
|
782
|
+
visitedNodes += 1;
|
|
783
|
+
const adjacent = graph.adjacency(current.id, {
|
|
784
|
+
direction,
|
|
785
|
+
kinds: options.kinds,
|
|
786
|
+
signal: options.signal
|
|
787
|
+
});
|
|
788
|
+
inspectedEdges += adjacent.meta.inspectedEdges;
|
|
789
|
+
if (current.depth >= maxDepth) {
|
|
790
|
+
if (adjacent.value.some((id) => !seen.has(id)))
|
|
791
|
+
truncated = true;
|
|
792
|
+
continue;
|
|
793
|
+
}
|
|
794
|
+
for (const id of adjacent.value) {
|
|
795
|
+
if (seen.has(id))
|
|
796
|
+
continue;
|
|
797
|
+
if (affected.length >= limit) {
|
|
798
|
+
truncated = true;
|
|
799
|
+
break traversal;
|
|
800
|
+
}
|
|
801
|
+
seen.add(id);
|
|
802
|
+
parents.set(id, current.id);
|
|
803
|
+
const depth = current.depth + 1;
|
|
804
|
+
affected.push({
|
|
805
|
+
id,
|
|
806
|
+
distance: depth,
|
|
807
|
+
path: reconstructImpactPath(root, id, parents)
|
|
808
|
+
});
|
|
809
|
+
queue.push({ id, depth });
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
return {
|
|
813
|
+
root,
|
|
814
|
+
affected,
|
|
815
|
+
exact: true,
|
|
816
|
+
truncated,
|
|
817
|
+
cost: { visitedNodes, inspectedEdges }
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
function analyzeKnowledgeGraph(graph) {
|
|
821
|
+
const nodes = [...graph.nodes()];
|
|
822
|
+
const weak = createAdjacency(nodes);
|
|
823
|
+
const directed = createAdjacency(nodes);
|
|
824
|
+
for (const edge of graph.edges()) {
|
|
825
|
+
appendNeighbor(weak, edge.source, edge.target);
|
|
826
|
+
appendNeighbor(weak, edge.target, edge.source);
|
|
827
|
+
appendNeighbor(directed, edge.source, edge.target);
|
|
828
|
+
}
|
|
829
|
+
const components = [];
|
|
830
|
+
const visited = /* @__PURE__ */ new Set();
|
|
831
|
+
for (const start of nodes) {
|
|
832
|
+
if (visited.has(start))
|
|
833
|
+
continue;
|
|
834
|
+
const component = [];
|
|
835
|
+
const stack = [start];
|
|
836
|
+
visited.add(start);
|
|
837
|
+
while (stack.length > 0) {
|
|
838
|
+
const current = stack.pop();
|
|
839
|
+
component.push(current);
|
|
840
|
+
for (const neighbor of weak.get(current)) {
|
|
841
|
+
if (visited.has(neighbor))
|
|
842
|
+
continue;
|
|
843
|
+
visited.add(neighbor);
|
|
844
|
+
stack.push(neighbor);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
components.push(component);
|
|
848
|
+
}
|
|
849
|
+
const degrees = nodes.map((id) => ({ id, degree: weak.get(id).size }));
|
|
850
|
+
const maximum = Math.max(0, ...degrees.map(({ degree }) => degree));
|
|
851
|
+
return {
|
|
852
|
+
components: sortComponents(components),
|
|
853
|
+
stronglyConnected: stronglyConnectedComponents(nodes, directed),
|
|
854
|
+
orphans: degrees.filter(({ degree }) => degree === 0).map(({ id }) => id),
|
|
855
|
+
hubs: degrees.filter(({ degree }) => degree > 0 && degree === maximum),
|
|
856
|
+
exact: true,
|
|
857
|
+
provenance: { algorithm: "component-degree", edgeFamily: "all" }
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
function compareRelationshipSnapshots(before, after) {
|
|
861
|
+
const earlier = new Map(before.edges.map((edge) => [relationshipEdgeKey(edge), edge]));
|
|
862
|
+
const later = new Map(after.edges.map((edge) => [relationshipEdgeKey(edge), edge]));
|
|
863
|
+
return {
|
|
864
|
+
fromVersion: before.version,
|
|
865
|
+
toVersion: after.version,
|
|
866
|
+
added: [...later].filter(([key]) => !earlier.has(key)).map(([, edge]) => edge),
|
|
867
|
+
removed: [...earlier].filter(([key]) => !later.has(key)).map(([, edge]) => edge),
|
|
868
|
+
unchangedCount: [...earlier.keys()].filter((key) => later.has(key)).length,
|
|
869
|
+
exact: true
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// dist/sdk/relationship-history.js
|
|
874
|
+
import { constants } from "node:fs";
|
|
875
|
+
import { lstat, mkdir, open } from "node:fs/promises";
|
|
876
|
+
import path from "node:path";
|
|
877
|
+
!(function() {
|
|
878
|
+
try {
|
|
879
|
+
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
880
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "787e8f44-80d5-554f-9232-9675cf6a8637");
|
|
881
|
+
} catch (e2) {
|
|
882
|
+
}
|
|
883
|
+
})();
|
|
884
|
+
function requiredText(value, field) {
|
|
885
|
+
if (typeof value !== "string" || value.trim().length === 0)
|
|
886
|
+
throw new TypeError(`Relationship event ${field} must be non-empty`);
|
|
887
|
+
return value.trim();
|
|
888
|
+
}
|
|
889
|
+
function edgeIdentity(edge, registry) {
|
|
890
|
+
const definition = registry.require(edge.kind);
|
|
891
|
+
const endpoints = definition.direction === "undirected" ? [edge.source, edge.target].sort().join("\0") : `${edge.source}\0${edge.target}`;
|
|
892
|
+
return `${definition.kind}\0${endpoints}`;
|
|
893
|
+
}
|
|
894
|
+
function freezeEdge(edge) {
|
|
895
|
+
return Object.freeze({
|
|
896
|
+
...edge,
|
|
897
|
+
...edge.payload === void 0 ? {} : { payload: Object.freeze(structuredClone(edge.payload)) }
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
function assertCardinality(candidate, excludeRelationshipId, registry, indexes) {
|
|
901
|
+
const definition = registry.require(candidate.kind);
|
|
902
|
+
const outgoingOwner = indexes.outgoingOne.get(`${definition.kind}\0${candidate.source}`);
|
|
903
|
+
if (outgoingOwner !== void 0 && outgoingOwner !== excludeRelationshipId)
|
|
904
|
+
throw new TypeError(`Relationship outgoing cardinality exceeded for ${definition.kind}`);
|
|
905
|
+
const incomingOwner = indexes.incomingOne.get(`${definition.kind}\0${candidate.target}`);
|
|
906
|
+
if (incomingOwner !== void 0 && incomingOwner !== excludeRelationshipId)
|
|
907
|
+
throw new TypeError(`Relationship incoming cardinality exceeded for ${definition.kind}`);
|
|
908
|
+
const identity = edgeIdentity(candidate, registry);
|
|
909
|
+
const identityOwner = indexes.identities.get(identity);
|
|
910
|
+
if (identityOwner !== void 0 && identityOwner !== excludeRelationshipId)
|
|
911
|
+
throw new TypeError(`Relationship edge already active: ${identity}`);
|
|
912
|
+
}
|
|
913
|
+
function replayEvents(events) {
|
|
914
|
+
const active = /* @__PURE__ */ new Map();
|
|
915
|
+
for (const event of events) {
|
|
916
|
+
if (event.action === "remove")
|
|
917
|
+
active.delete(event.relationshipId);
|
|
918
|
+
else
|
|
919
|
+
active.set(event.relationshipId, event.edge);
|
|
920
|
+
}
|
|
921
|
+
return active;
|
|
922
|
+
}
|
|
923
|
+
function normalizeEventHeader(input, currentVersion, eventIds) {
|
|
924
|
+
if (input.expectedVersion !== void 0 && input.expectedVersion !== currentVersion)
|
|
925
|
+
throw new TypeError(`Relationship event version conflict: expected ${input.expectedVersion}, current ${currentVersion}`);
|
|
926
|
+
const eventId = requiredText(input.eventId, "eventId");
|
|
927
|
+
if (eventIds.has(eventId))
|
|
928
|
+
throw new TypeError(`Relationship event already exists: ${eventId}`);
|
|
929
|
+
if (input.action !== "add" && input.action !== "remove" && input.action !== "supersede")
|
|
930
|
+
throw new TypeError(`Unknown relationship event action: ${input.action}`);
|
|
931
|
+
if (!Number.isFinite(Date.parse(input.timestamp)))
|
|
932
|
+
throw new TypeError("Relationship event timestamp must be valid");
|
|
933
|
+
return {
|
|
934
|
+
eventId,
|
|
935
|
+
relationshipId: requiredText(input.relationshipId, "relationshipId"),
|
|
936
|
+
author: requiredText(input.author, "author"),
|
|
937
|
+
timestamp: new Date(input.timestamp).toISOString()
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
function resolveMutationEdge(input, relationshipId, active, nodes, registry, indexes) {
|
|
941
|
+
const isActive = active.has(relationshipId);
|
|
942
|
+
if (input.action === "add" && isActive)
|
|
943
|
+
throw new TypeError(`Relationship is already active: ${relationshipId}`);
|
|
944
|
+
if (input.action !== "add" && !isActive)
|
|
945
|
+
throw new TypeError(`Relationship is not active: ${relationshipId}`);
|
|
946
|
+
if (input.action === "remove")
|
|
947
|
+
return void 0;
|
|
948
|
+
if (!input.edge)
|
|
949
|
+
throw new TypeError(`Relationship ${input.action} event requires an edge`);
|
|
950
|
+
const source = typeof input.edge.source === "string" ? input.edge.source.trim() : "";
|
|
951
|
+
const target = typeof input.edge.target === "string" ? input.edge.target.trim() : "";
|
|
952
|
+
if (!nodes.has(source) || !nodes.has(target))
|
|
953
|
+
throw new TypeError(`Relationship endpoint not found: ${source} -> ${target}`);
|
|
954
|
+
const canonical = new RelationshipGraph([source, target], [input.edge], registry).edges()[0];
|
|
955
|
+
assertCardinality(canonical, relationshipId, registry, indexes);
|
|
956
|
+
return freezeEdge(canonical);
|
|
957
|
+
}
|
|
958
|
+
var RelationshipEventLog = class {
|
|
959
|
+
#nodes;
|
|
960
|
+
#registry;
|
|
961
|
+
#events = [];
|
|
962
|
+
#eventIds = /* @__PURE__ */ new Set();
|
|
963
|
+
#active = /* @__PURE__ */ new Map();
|
|
964
|
+
#cardinalityIndexes = {
|
|
965
|
+
identities: /* @__PURE__ */ new Map(),
|
|
966
|
+
outgoingOne: /* @__PURE__ */ new Map(),
|
|
967
|
+
incomingOne: /* @__PURE__ */ new Map()
|
|
968
|
+
};
|
|
969
|
+
/** Create an empty relationship ledger for a fixed node universe. */
|
|
970
|
+
constructor(nodes, options = {}) {
|
|
971
|
+
this.#nodes = new Set([...nodes].filter((node) => typeof node === "string").map((node) => node.trim()).filter(Boolean));
|
|
972
|
+
this.#registry = options.registry ?? createRelationshipKindRegistry();
|
|
973
|
+
}
|
|
974
|
+
/** Current append sequence. */
|
|
975
|
+
get version() {
|
|
976
|
+
return this.#events.length;
|
|
977
|
+
}
|
|
978
|
+
/** Return an immutable copy of the full event stream. */
|
|
979
|
+
events() {
|
|
980
|
+
return Object.freeze([...this.#events]);
|
|
981
|
+
}
|
|
982
|
+
/** Add one active relationship to constant-time validation indexes. */
|
|
983
|
+
#indexActive(relationshipId, edge) {
|
|
984
|
+
const definition = this.#registry.require(edge.kind);
|
|
985
|
+
this.#cardinalityIndexes.identities.set(edgeIdentity(edge, this.#registry), relationshipId);
|
|
986
|
+
if (definition.outgoing === "one")
|
|
987
|
+
this.#cardinalityIndexes.outgoingOne.set(`${definition.kind}\0${edge.source}`, relationshipId);
|
|
988
|
+
if (definition.incoming === "one")
|
|
989
|
+
this.#cardinalityIndexes.incomingOne.set(`${definition.kind}\0${edge.target}`, relationshipId);
|
|
990
|
+
}
|
|
991
|
+
/** Remove one superseded or deleted relationship from validation indexes. */
|
|
992
|
+
#unindexActive(edge) {
|
|
993
|
+
const definition = this.#registry.require(edge.kind);
|
|
994
|
+
this.#cardinalityIndexes.identities.delete(edgeIdentity(edge, this.#registry));
|
|
995
|
+
if (definition.outgoing === "one")
|
|
996
|
+
this.#cardinalityIndexes.outgoingOne.delete(`${definition.kind}\0${edge.source}`);
|
|
997
|
+
if (definition.incoming === "one")
|
|
998
|
+
this.#cardinalityIndexes.incomingOne.delete(`${definition.kind}\0${edge.target}`);
|
|
999
|
+
}
|
|
1000
|
+
/** Validate and append one attributable relationship mutation. */
|
|
1001
|
+
append(input) {
|
|
1002
|
+
const header = normalizeEventHeader(input, this.version, this.#eventIds);
|
|
1003
|
+
const previous = this.#active.get(header.relationshipId);
|
|
1004
|
+
const edge = resolveMutationEdge(input, header.relationshipId, this.#active, this.#nodes, this.#registry, this.#cardinalityIndexes);
|
|
1005
|
+
const event = Object.freeze({
|
|
1006
|
+
eventId: header.eventId,
|
|
1007
|
+
relationshipId: header.relationshipId,
|
|
1008
|
+
action: input.action,
|
|
1009
|
+
...edge === void 0 ? {} : { edge },
|
|
1010
|
+
author: header.author,
|
|
1011
|
+
timestamp: header.timestamp,
|
|
1012
|
+
...input.reason?.trim() ? { reason: input.reason.trim() } : {},
|
|
1013
|
+
sequence: this.version + 1
|
|
1014
|
+
});
|
|
1015
|
+
this.#events.push(event);
|
|
1016
|
+
this.#eventIds.add(header.eventId);
|
|
1017
|
+
if (previous)
|
|
1018
|
+
this.#unindexActive(previous);
|
|
1019
|
+
if (input.action === "remove")
|
|
1020
|
+
this.#active.delete(header.relationshipId);
|
|
1021
|
+
else {
|
|
1022
|
+
this.#active.set(header.relationshipId, edge);
|
|
1023
|
+
this.#indexActive(header.relationshipId, edge);
|
|
1024
|
+
}
|
|
1025
|
+
return event;
|
|
1026
|
+
}
|
|
1027
|
+
/** Materialize an exact point-in-time graph without mutating the ledger. */
|
|
1028
|
+
snapshot(options = {}) {
|
|
1029
|
+
if (options.atVersion !== void 0 && options.atTimestamp !== void 0)
|
|
1030
|
+
throw new TypeError("Relationship snapshot accepts one target");
|
|
1031
|
+
let included;
|
|
1032
|
+
if (options.atTimestamp !== void 0) {
|
|
1033
|
+
const timestamp = Date.parse(options.atTimestamp);
|
|
1034
|
+
if (!Number.isFinite(timestamp))
|
|
1035
|
+
throw new TypeError("Relationship snapshot timestamp must be valid");
|
|
1036
|
+
let lastIndex = -1;
|
|
1037
|
+
for (let index = this.#events.length - 1; index >= 0; index -= 1) {
|
|
1038
|
+
if (Date.parse(this.#events[index].timestamp) > timestamp)
|
|
1039
|
+
continue;
|
|
1040
|
+
lastIndex = index;
|
|
1041
|
+
break;
|
|
1042
|
+
}
|
|
1043
|
+
included = lastIndex === -1 ? [] : this.#events.slice(0, lastIndex + 1);
|
|
1044
|
+
} else {
|
|
1045
|
+
const version = options.atVersion ?? this.version;
|
|
1046
|
+
if (!Number.isInteger(version) || version < 0 || version > this.version)
|
|
1047
|
+
throw new TypeError(`Relationship snapshot version out of range: ${version}`);
|
|
1048
|
+
included = this.#events.slice(0, version);
|
|
1049
|
+
}
|
|
1050
|
+
const active = replayEvents(included);
|
|
1051
|
+
const graph = new RelationshipGraph(this.#nodes, active.values(), this.#registry);
|
|
1052
|
+
return Object.freeze({
|
|
1053
|
+
version: included.length,
|
|
1054
|
+
...included.at(-1) ? { asOf: included.at(-1).timestamp } : {},
|
|
1055
|
+
edges: graph.edges(),
|
|
1056
|
+
graph
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
/** Page the immutable event stream with a cursor bound to this log version. */
|
|
1060
|
+
page(options) {
|
|
1061
|
+
if (!Number.isInteger(options.limit) || options.limit < 1)
|
|
1062
|
+
throw new TypeError("Relationship event page limit must be positive");
|
|
1063
|
+
const fingerprint = createQueryFingerprint("relationship-events", {
|
|
1064
|
+
order: "append-sequence"
|
|
1065
|
+
});
|
|
1066
|
+
const snapshot = options.cursor === void 0 ? this.version : Number(decodeQueryCursorState(options.cursor, fingerprint).snapshot);
|
|
1067
|
+
if (!Number.isSafeInteger(snapshot) || snapshot < 0 || snapshot > this.version)
|
|
1068
|
+
throw new TypeError("Relationship event cursor snapshot version is invalid");
|
|
1069
|
+
const page = paginateQueryRows(this.#events.slice(0, snapshot), {
|
|
1070
|
+
cursor: options.cursor,
|
|
1071
|
+
fingerprint,
|
|
1072
|
+
limit: options.limit,
|
|
1073
|
+
readId: (event) => event.eventId,
|
|
1074
|
+
snapshot: String(snapshot)
|
|
1075
|
+
});
|
|
1076
|
+
return {
|
|
1077
|
+
version: snapshot,
|
|
1078
|
+
events: page.rows,
|
|
1079
|
+
hasMore: page.has_more,
|
|
1080
|
+
...page.next_cursor ? { nextCursor: page.next_cursor } : {}
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
var RELATIONSHIP_STORE_LOCK_ID = "relationship-event-store";
|
|
1085
|
+
var RELATIONSHIP_NOFOLLOW_FLAG = constants.O_NOFOLLOW;
|
|
1086
|
+
function acquireRelationshipStoreLock(pmRoot) {
|
|
1087
|
+
return acquireLock(pmRoot, RELATIONSHIP_STORE_LOCK_ID, 30, `relationship-store:${process.pid}`, false, false, 3e3);
|
|
1088
|
+
}
|
|
1089
|
+
async function resolveRelationshipEventStorePath(pmRoot, relativePath = "relationships/events.jsonl") {
|
|
1090
|
+
const root = path.resolve(pmRoot);
|
|
1091
|
+
const target = path.resolve(root, relativePath);
|
|
1092
|
+
const relative = path.relative(root, target);
|
|
1093
|
+
if (relative.length === 0)
|
|
1094
|
+
throw new TypeError("Relationship event path must name a file within the tracker root");
|
|
1095
|
+
if (relative === ".." || relative.startsWith(`..${path.sep}`) || path.isAbsolute(relative))
|
|
1096
|
+
throw new TypeError("Relationship event path must stay within the tracker root");
|
|
1097
|
+
await mkdir(root, { recursive: true });
|
|
1098
|
+
const rootStats = await lstat(root);
|
|
1099
|
+
if (rootStats.isSymbolicLink())
|
|
1100
|
+
throw new TypeError("Relationship event tracker root must not be a symbolic link");
|
|
1101
|
+
let current = root;
|
|
1102
|
+
for (const segment of relative.split(path.sep)) {
|
|
1103
|
+
current = path.join(current, segment);
|
|
1104
|
+
try {
|
|
1105
|
+
if ((await lstat(current)).isSymbolicLink())
|
|
1106
|
+
throw new TypeError("Relationship event path must not contain symbolic links");
|
|
1107
|
+
} catch (error) {
|
|
1108
|
+
if (error.code === "ENOENT")
|
|
1109
|
+
break;
|
|
1110
|
+
throw error;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
return target;
|
|
1114
|
+
}
|
|
1115
|
+
async function loadRelationshipEventLog(target, nodes, registry) {
|
|
1116
|
+
const log = new RelationshipEventLog(nodes, { registry });
|
|
1117
|
+
let raw;
|
|
1118
|
+
let handle;
|
|
1119
|
+
try {
|
|
1120
|
+
handle = await open(target, constants.O_RDONLY | RELATIONSHIP_NOFOLLOW_FLAG);
|
|
1121
|
+
raw = await handle.readFile("utf8");
|
|
1122
|
+
} catch (error) {
|
|
1123
|
+
if (error.code === "ENOENT")
|
|
1124
|
+
return log;
|
|
1125
|
+
throw error;
|
|
1126
|
+
} finally {
|
|
1127
|
+
await handle?.close();
|
|
1128
|
+
}
|
|
1129
|
+
const lines = raw.split("\n");
|
|
1130
|
+
for (let index = 0; index < lines.length; index += 1) {
|
|
1131
|
+
const line = lines[index].trim();
|
|
1132
|
+
if (!line)
|
|
1133
|
+
continue;
|
|
1134
|
+
let stored;
|
|
1135
|
+
try {
|
|
1136
|
+
stored = JSON.parse(line);
|
|
1137
|
+
} catch {
|
|
1138
|
+
throw new TypeError(`Invalid relationship event JSONL at line ${index + 1}`);
|
|
1139
|
+
}
|
|
1140
|
+
if (stored.sequence !== log.version + 1)
|
|
1141
|
+
throw new TypeError(`Invalid relationship event sequence at line ${index + 1}`);
|
|
1142
|
+
log.append({
|
|
1143
|
+
eventId: stored.eventId,
|
|
1144
|
+
relationshipId: stored.relationshipId,
|
|
1145
|
+
action: stored.action,
|
|
1146
|
+
...stored.edge === void 0 ? {} : { edge: stored.edge },
|
|
1147
|
+
author: stored.author,
|
|
1148
|
+
timestamp: stored.timestamp,
|
|
1149
|
+
...stored.reason === void 0 ? {} : { reason: stored.reason },
|
|
1150
|
+
expectedVersion: log.version
|
|
1151
|
+
});
|
|
1152
|
+
}
|
|
1153
|
+
return log;
|
|
1154
|
+
}
|
|
1155
|
+
var RelationshipEventStore = class _RelationshipEventStore {
|
|
1156
|
+
#pmRoot;
|
|
1157
|
+
#nodes;
|
|
1158
|
+
#registry;
|
|
1159
|
+
#path;
|
|
1160
|
+
#log;
|
|
1161
|
+
constructor(options, nodes, target, log) {
|
|
1162
|
+
this.#pmRoot = options.pmRoot;
|
|
1163
|
+
this.#nodes = nodes;
|
|
1164
|
+
this.#registry = options.registry;
|
|
1165
|
+
this.#path = target;
|
|
1166
|
+
this.#log = log;
|
|
1167
|
+
}
|
|
1168
|
+
/** Open and validate an existing stream or create an empty store view. */
|
|
1169
|
+
static async open(options) {
|
|
1170
|
+
const nodes = Object.freeze([...options.nodes]);
|
|
1171
|
+
const target = await resolveRelationshipEventStorePath(options.pmRoot, options.relativePath);
|
|
1172
|
+
const release2 = await acquireRelationshipStoreLock(options.pmRoot);
|
|
1173
|
+
try {
|
|
1174
|
+
await resolveRelationshipEventStorePath(options.pmRoot, target);
|
|
1175
|
+
const log = await loadRelationshipEventLog(target, nodes, options.registry);
|
|
1176
|
+
return new _RelationshipEventStore(options, nodes, target, log);
|
|
1177
|
+
} finally {
|
|
1178
|
+
await release2();
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
/** Absolute JSONL path, exposed for diagnostics and backup tooling. */
|
|
1182
|
+
get path() {
|
|
1183
|
+
return this.#path;
|
|
1184
|
+
}
|
|
1185
|
+
/** Refresh from durable history and return the current validated append sequence. */
|
|
1186
|
+
async currentVersion() {
|
|
1187
|
+
this.#log = await this.#refreshFromDurableHistory();
|
|
1188
|
+
return this.#log.version;
|
|
1189
|
+
}
|
|
1190
|
+
/** Append one event after refreshing under the shared workspace lock. */
|
|
1191
|
+
async append(input) {
|
|
1192
|
+
const release2 = await acquireRelationshipStoreLock(this.#pmRoot);
|
|
1193
|
+
try {
|
|
1194
|
+
const target = await resolveRelationshipEventStorePath(this.#pmRoot, this.#path);
|
|
1195
|
+
const refreshed = await loadRelationshipEventLog(target, this.#nodes, this.#registry);
|
|
1196
|
+
const event = refreshed.append(input);
|
|
1197
|
+
await mkdir(path.dirname(target), { recursive: true });
|
|
1198
|
+
await resolveRelationshipEventStorePath(this.#pmRoot, target);
|
|
1199
|
+
const handle = await open(target, constants.O_APPEND | constants.O_CREAT | constants.O_WRONLY | RELATIONSHIP_NOFOLLOW_FLAG);
|
|
1200
|
+
try {
|
|
1201
|
+
await handle.appendFile(`${JSON.stringify(event)}
|
|
1202
|
+
`, "utf8");
|
|
1203
|
+
} finally {
|
|
1204
|
+
await handle.close();
|
|
1205
|
+
}
|
|
1206
|
+
this.#log = refreshed;
|
|
1207
|
+
return event;
|
|
1208
|
+
} finally {
|
|
1209
|
+
await release2();
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
/** Refresh from durable history and materialize an exact validated snapshot. */
|
|
1213
|
+
async snapshot(options = {}) {
|
|
1214
|
+
this.#log = await this.#refreshFromDurableHistory();
|
|
1215
|
+
return this.#log.snapshot(options);
|
|
1216
|
+
}
|
|
1217
|
+
/** Refresh from durable history and page immutable events. */
|
|
1218
|
+
async page(options) {
|
|
1219
|
+
this.#log = await this.#refreshFromDurableHistory();
|
|
1220
|
+
return this.#log.page(options);
|
|
1221
|
+
}
|
|
1222
|
+
/** Serialize a durable refresh with writers so readers never observe a torn JSONL tail. */
|
|
1223
|
+
async #refreshFromDurableHistory() {
|
|
1224
|
+
const release2 = await acquireRelationshipStoreLock(this.#pmRoot);
|
|
1225
|
+
try {
|
|
1226
|
+
const target = await resolveRelationshipEventStorePath(this.#pmRoot, this.#path);
|
|
1227
|
+
return await loadRelationshipEventLog(target, this.#nodes, this.#registry);
|
|
1228
|
+
} finally {
|
|
1229
|
+
await release2();
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
505
1233
|
|
|
506
1234
|
// dist/sdk/define.js
|
|
507
1235
|
!(function() {
|
|
@@ -579,7 +1307,7 @@ function defineOnIndexHook(hook) {
|
|
|
579
1307
|
!(function() {
|
|
580
1308
|
try {
|
|
581
1309
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
582
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
1310
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d975f914-6acc-5da2-b7c4-d696f1b339b6");
|
|
583
1311
|
} catch (e2) {
|
|
584
1312
|
}
|
|
585
1313
|
})();
|
|
@@ -617,6 +1345,7 @@ export {
|
|
|
617
1345
|
CREATE_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
618
1346
|
CREATE_FLAG_CONTRACTS,
|
|
619
1347
|
CURRENT_ITEM_FORMAT_VERSION,
|
|
1348
|
+
DEFAULT_CHILD_SAMPLE_LIMIT,
|
|
620
1349
|
DELETE_FLAG_CONTRACTS,
|
|
621
1350
|
DEPENDENCY_KIND_VALUES,
|
|
622
1351
|
DEPS_FLAG_CONTRACTS,
|
|
@@ -654,10 +1383,12 @@ export {
|
|
|
654
1383
|
GLOBAL_FLAG_CONTRACTS,
|
|
655
1384
|
GUIDE_FLAG_CONTRACTS,
|
|
656
1385
|
HEALTH_FLAG_CONTRACTS,
|
|
1386
|
+
HISTORY_COMPACT_BULK_DEFAULT_MIN_ENTRIES,
|
|
657
1387
|
HISTORY_COMPACT_FLAG_CONTRACTS,
|
|
658
1388
|
HISTORY_FLAG_CONTRACTS,
|
|
659
1389
|
HISTORY_REDACT_FLAG_CONTRACTS,
|
|
660
1390
|
HISTORY_REPAIR_FLAG_CONTRACTS,
|
|
1391
|
+
INIT_AGENT_GUIDANCE_MODE_VALUES,
|
|
661
1392
|
INIT_FLAG_CONTRACTS,
|
|
662
1393
|
INSTALL_FLAG_CONTRACTS,
|
|
663
1394
|
ISSUE_SEVERITY_VALUES,
|
|
@@ -665,6 +1396,7 @@ export {
|
|
|
665
1396
|
LEARNINGS_FLAG_CONTRACTS,
|
|
666
1397
|
LIST_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
667
1398
|
LIST_FILTER_FLAG_CONTRACTS,
|
|
1399
|
+
MAX_CHILD_PROJECTION_ITEMS,
|
|
668
1400
|
MEET_FLAG_CONTRACTS,
|
|
669
1401
|
NEXT_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
670
1402
|
NEXT_FLAG_CONTRACTS,
|
|
@@ -697,6 +1429,7 @@ export {
|
|
|
697
1429
|
PROFILE_LINT_CODES,
|
|
698
1430
|
PROFILE_LINT_DIMENSIONS,
|
|
699
1431
|
PROFILE_NAMES,
|
|
1432
|
+
PROFILE_SUBCOMMANDS,
|
|
700
1433
|
PmCliError,
|
|
701
1434
|
PmClient,
|
|
702
1435
|
QUERY_CURSOR_CONTRACT,
|
|
@@ -706,6 +1439,10 @@ export {
|
|
|
706
1439
|
RESERVED_ITEM_FIELD_NAMES,
|
|
707
1440
|
RESTORE_FLAG_CONTRACTS,
|
|
708
1441
|
RISK_VALUES,
|
|
1442
|
+
RelationshipEventLog,
|
|
1443
|
+
RelationshipEventStore,
|
|
1444
|
+
RelationshipGraph,
|
|
1445
|
+
RelationshipKindRegistry,
|
|
709
1446
|
SCHEMA_FLAG_CONTRACTS,
|
|
710
1447
|
SEARCH_COMMANDER_STRING_OPTION_CONTRACTS,
|
|
711
1448
|
SEARCH_FLAG_CONTRACTS,
|
|
@@ -713,6 +1450,7 @@ export {
|
|
|
713
1450
|
STATS_FLAG_CONTRACTS,
|
|
714
1451
|
STATUS_VALUES,
|
|
715
1452
|
SUBCOMMAND_GLOBAL_FLAG_CONTRACTS,
|
|
1453
|
+
SUPPRESS_HOST_OUTPUT_MARKER,
|
|
716
1454
|
TELEMETRY_FLAG_CONTRACTS,
|
|
717
1455
|
TEST_ALL_FLAG_CONTRACTS,
|
|
718
1456
|
TEST_FLAG_CONTRACTS,
|
|
@@ -735,11 +1473,23 @@ export {
|
|
|
735
1473
|
UPDATE_FLAG_CONTRACTS,
|
|
736
1474
|
UPDATE_MANY_FLAG_CONTRACTS,
|
|
737
1475
|
UPGRADE_FLAG_CONTRACTS,
|
|
1476
|
+
_testOnly3 as _testOnly,
|
|
1477
|
+
_testOnlyConfigCommand,
|
|
1478
|
+
_testOnlyHealthCommand,
|
|
1479
|
+
_testOnly2 as _testOnlyInit,
|
|
1480
|
+
_testOnly as _testOnlyInitAgentGuidance,
|
|
1481
|
+
_testOnly4 as _testOnlyTemplates,
|
|
1482
|
+
_testOnlyValidateCommand,
|
|
738
1483
|
acquireLock,
|
|
739
1484
|
activateExtensionForTest,
|
|
740
1485
|
aggregate,
|
|
1486
|
+
analyzeGraphImpact,
|
|
1487
|
+
analyzeKnowledgeGraph,
|
|
1488
|
+
analyzeRelationshipExecution,
|
|
741
1489
|
append,
|
|
742
1490
|
appendHistoryEntry,
|
|
1491
|
+
applyHistoryPatch,
|
|
1492
|
+
applyInvocationAuthorOverride,
|
|
743
1493
|
applyPathMigrations,
|
|
744
1494
|
applyStandaloneNote,
|
|
745
1495
|
artifactKey,
|
|
@@ -749,6 +1499,8 @@ export {
|
|
|
749
1499
|
assertExtensionManifestCompatible,
|
|
750
1500
|
assertExtensionManifestMatchesBlueprint,
|
|
751
1501
|
assertExtensionPreflight,
|
|
1502
|
+
assertHistoryCompactTarget,
|
|
1503
|
+
assertHistoryRepairTarget,
|
|
752
1504
|
assertPackageManifest,
|
|
753
1505
|
assertProjectProfile,
|
|
754
1506
|
assertRegisteredCommandContract,
|
|
@@ -767,6 +1519,10 @@ export {
|
|
|
767
1519
|
assertRegisteredSearchProvider,
|
|
768
1520
|
assertRegisteredServiceOverride,
|
|
769
1521
|
assertRegisteredVectorStoreAdapter,
|
|
1522
|
+
buildItemChildrenRollup,
|
|
1523
|
+
buildItemContextRelevanceCandidates,
|
|
1524
|
+
buildItemSchedule,
|
|
1525
|
+
buildRelationshipContext,
|
|
770
1526
|
canonicalDocument,
|
|
771
1527
|
checkExtensionManifestCompatibility,
|
|
772
1528
|
claim,
|
|
@@ -781,6 +1537,7 @@ export {
|
|
|
781
1537
|
comments,
|
|
782
1538
|
commitImportedItem,
|
|
783
1539
|
compactFlagAliasContracts,
|
|
1540
|
+
compareRelationshipSnapshots,
|
|
784
1541
|
composeExtension,
|
|
785
1542
|
composeExtensionPackage,
|
|
786
1543
|
config,
|
|
@@ -790,7 +1547,9 @@ export {
|
|
|
790
1547
|
createExtensionTestHarness,
|
|
791
1548
|
createHistoryEntry,
|
|
792
1549
|
createPmCliExpectedError,
|
|
1550
|
+
createPmCliProgram,
|
|
793
1551
|
createQueryFingerprint,
|
|
1552
|
+
createRelationshipKindRegistry,
|
|
794
1553
|
deactivateExtensionForTest,
|
|
795
1554
|
decodeQueryCursor,
|
|
796
1555
|
decodeQueryCursorState,
|
|
@@ -820,6 +1579,7 @@ export {
|
|
|
820
1579
|
defineServiceOverride,
|
|
821
1580
|
defineVectorStoreAdapter,
|
|
822
1581
|
deleteItem,
|
|
1582
|
+
dependencyToRelationship,
|
|
823
1583
|
deps,
|
|
824
1584
|
deriveExtensionCapabilities,
|
|
825
1585
|
describeExtensionActivation,
|
|
@@ -830,6 +1590,7 @@ export {
|
|
|
830
1590
|
effectiveItemFormatVersion,
|
|
831
1591
|
emptyImportedDocument,
|
|
832
1592
|
encodeQueryCursor,
|
|
1593
|
+
ensureMaterializedHistoryTarget,
|
|
833
1594
|
ensureScope,
|
|
834
1595
|
ensureTrackerInitialized,
|
|
835
1596
|
evaluateContextRanking,
|
|
@@ -838,21 +1599,35 @@ export {
|
|
|
838
1599
|
extensionActivate,
|
|
839
1600
|
extensionDeactivate,
|
|
840
1601
|
extensionList,
|
|
1602
|
+
extractPatchFailureContext,
|
|
841
1603
|
files,
|
|
842
1604
|
filesDiscover,
|
|
843
1605
|
focus,
|
|
1606
|
+
formatProfileApplyHuman,
|
|
1607
|
+
formatProfileLintHuman,
|
|
1608
|
+
formatProfileListHuman,
|
|
1609
|
+
formatProfileShowHuman,
|
|
844
1610
|
gc,
|
|
845
1611
|
generateItemId,
|
|
846
1612
|
get,
|
|
847
1613
|
getActiveExtensionRegistrations,
|
|
848
1614
|
getContracts,
|
|
849
1615
|
getHistoryPath,
|
|
1616
|
+
getItemAt,
|
|
850
1617
|
getItemPath,
|
|
851
1618
|
getSettingsPath,
|
|
852
1619
|
getWorkspaceContracts,
|
|
853
1620
|
health,
|
|
1621
|
+
historyCompact,
|
|
1622
|
+
historyCompactBulk,
|
|
1623
|
+
historyRedact,
|
|
1624
|
+
historyRepair,
|
|
1625
|
+
historyRepairAll,
|
|
854
1626
|
init,
|
|
1627
|
+
inspectHistoryAuthorStream,
|
|
855
1628
|
isErrnoError,
|
|
1629
|
+
isHostOutputSuppressed,
|
|
1630
|
+
isOrderingRelationshipKind,
|
|
856
1631
|
isPmCliExpectedError,
|
|
857
1632
|
isPmExtensionCapabilityContract,
|
|
858
1633
|
isPmExtensionPolicyModeContract,
|
|
@@ -860,6 +1635,7 @@ export {
|
|
|
860
1635
|
isPmExtensionServiceNameContract,
|
|
861
1636
|
isPmToolAction,
|
|
862
1637
|
isTimestampLiteral,
|
|
1638
|
+
itemHasSchedule,
|
|
863
1639
|
learnings,
|
|
864
1640
|
limitAnnotationEntries,
|
|
865
1641
|
lintExtensionBlueprint,
|
|
@@ -908,6 +1684,8 @@ export {
|
|
|
908
1684
|
profileLint,
|
|
909
1685
|
profileList,
|
|
910
1686
|
profileShow,
|
|
1687
|
+
quoteCommandArg,
|
|
1688
|
+
quoteWindowsCommandArg,
|
|
911
1689
|
readAnnotationEntries,
|
|
912
1690
|
readBooleanOption,
|
|
913
1691
|
readContextUsageAffinity,
|
|
@@ -915,6 +1693,7 @@ export {
|
|
|
915
1693
|
readFileIfExists,
|
|
916
1694
|
readFirstStringFromCommanderOptions,
|
|
917
1695
|
readFirstValueFromCommanderOptions,
|
|
1696
|
+
readHistoryEntries,
|
|
918
1697
|
readLocatedItem,
|
|
919
1698
|
readPmPackageManifest,
|
|
920
1699
|
readRequiredString,
|
|
@@ -932,10 +1711,14 @@ export {
|
|
|
932
1711
|
renderCalendarToon,
|
|
933
1712
|
renderExtensionSurfaceMarkdown,
|
|
934
1713
|
renderGuideMarkdown,
|
|
1714
|
+
renderPmCommand,
|
|
1715
|
+
replayHistoryToTarget,
|
|
935
1716
|
resolveAnnotationIndex,
|
|
936
1717
|
resolveAnnotationInput,
|
|
937
1718
|
resolveCalendarOutputFormat,
|
|
938
1719
|
resolveGuideOutputFormat,
|
|
1720
|
+
resolveHistorySubject,
|
|
1721
|
+
resolveHistoryTarget,
|
|
939
1722
|
resolveItemTypeRegistry,
|
|
940
1723
|
resolvePmRoot,
|
|
941
1724
|
resolveProfile,
|
|
@@ -950,14 +1733,29 @@ export {
|
|
|
950
1733
|
runAnnotationCommand,
|
|
951
1734
|
runCalendar,
|
|
952
1735
|
runCompletion,
|
|
1736
|
+
runConfig,
|
|
953
1737
|
runContextEvaluationCorpus,
|
|
954
1738
|
runContextEvaluationScenario,
|
|
955
1739
|
runDeps,
|
|
956
1740
|
runDocs,
|
|
1741
|
+
runExtension,
|
|
957
1742
|
runFiles,
|
|
958
1743
|
runFilesDiscover,
|
|
1744
|
+
runGc,
|
|
959
1745
|
runGuide,
|
|
1746
|
+
runHealth,
|
|
1747
|
+
runHistoryCompact,
|
|
1748
|
+
runHistoryCompactBulk,
|
|
1749
|
+
runHistoryRedact,
|
|
1750
|
+
runHistoryRepair,
|
|
1751
|
+
runHistoryRepairAll,
|
|
1752
|
+
runInit,
|
|
1753
|
+
runInitAgentGuidance,
|
|
960
1754
|
runLinkedArtifacts,
|
|
1755
|
+
runProfileApply,
|
|
1756
|
+
runProfileLint,
|
|
1757
|
+
runProfileList,
|
|
1758
|
+
runProfileShow,
|
|
961
1759
|
runRegisteredCommandForTest,
|
|
962
1760
|
runRegisteredCommandOverrideForTest,
|
|
963
1761
|
runRegisteredExporterForTest,
|
|
@@ -980,6 +1778,8 @@ export {
|
|
|
980
1778
|
runTestRunsResume,
|
|
981
1779
|
runTestRunsStatus,
|
|
982
1780
|
runTestRunsStop,
|
|
1781
|
+
runValidate,
|
|
1782
|
+
scanHistoryAuthorAttribution,
|
|
983
1783
|
scanItemFormatVersions,
|
|
984
1784
|
schema,
|
|
985
1785
|
schemaAddField,
|
|
@@ -1005,6 +1805,8 @@ export {
|
|
|
1005
1805
|
startTask,
|
|
1006
1806
|
stats,
|
|
1007
1807
|
summarizeContextEvaluationReports,
|
|
1808
|
+
summarizeInitResult,
|
|
1809
|
+
suppressHostOutput,
|
|
1008
1810
|
synthesizeExtensionManifest,
|
|
1009
1811
|
toCompletionFlagString,
|
|
1010
1812
|
toEstimatedMinutesValue,
|