@unbrained/pm-cli 2026.7.18 → 2026.7.19

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.
Files changed (497) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/CHANGELOG.md +17 -0
  3. package/dist/cli/commands/claim.js +6 -4
  4. package/dist/cli/commands/claim.js.map +1 -1
  5. package/dist/cli/commands/comments.js +5 -2
  6. package/dist/cli/commands/comments.js.map +1 -1
  7. package/dist/cli/commands/context.d.ts +10 -1
  8. package/dist/cli/commands/context.js +44 -6
  9. package/dist/cli/commands/context.js.map +1 -1
  10. package/dist/cli/commands/create.js +15 -4
  11. package/dist/cli/commands/create.js.map +1 -1
  12. package/dist/cli/commands/next.js +13 -3
  13. package/dist/cli/commands/next.js.map +1 -1
  14. package/dist/cli/commands/update.js +14 -3
  15. package/dist/cli/commands/update.js.map +1 -1
  16. package/dist/cli/error-guidance.js +23 -4
  17. package/dist/cli/error-guidance.js.map +1 -1
  18. package/dist/cli/extension-command-help.d.ts +11 -0
  19. package/dist/cli/extension-command-help.js +62 -2
  20. package/dist/cli/extension-command-help.js.map +1 -1
  21. package/dist/cli/main.d.ts +1 -0
  22. package/dist/cli/main.js +16 -11
  23. package/dist/cli/main.js.map +1 -1
  24. package/dist/cli-bundle/bundle-manifest.json +326 -350
  25. package/dist/cli-bundle/chunks/{append-5YF3TO7I.js → append-MBXHNWSX.js} +5 -5
  26. package/dist/cli-bundle/chunks/append-XUYF7NON.js +11 -0
  27. package/dist/cli-bundle/chunks/{chunk-BIRYX32V.js → chunk-2UCG5H6B.js} +3 -3
  28. package/dist/cli-bundle/chunks/{chunk-VE6ZSTQW.js → chunk-2XPDCXK5.js} +4 -4
  29. package/dist/cli-bundle/chunks/{chunk-I3INI567.js → chunk-3EZZTFL2.js} +909 -124
  30. package/dist/cli-bundle/chunks/chunk-3EZZTFL2.js.map +7 -0
  31. package/dist/cli-bundle/chunks/{chunk-GLZKZON6.js → chunk-3HSRP6T2.js} +2 -2
  32. package/dist/cli-bundle/chunks/{chunk-XWBD6DSR.js → chunk-3KPNOZOH.js} +23 -23
  33. package/dist/cli-bundle/chunks/{chunk-MR4SHYR4.js → chunk-3QNUDDY2.js} +104 -23
  34. package/dist/cli-bundle/chunks/chunk-3QNUDDY2.js.map +7 -0
  35. package/dist/cli-bundle/chunks/{chunk-SIPOACV5.js → chunk-46Z6FAVP.js} +888 -124
  36. package/dist/cli-bundle/chunks/chunk-46Z6FAVP.js.map +1 -0
  37. package/dist/cli-bundle/chunks/{chunk-HO4DLBNK.js → chunk-4M6RZJXF.js} +2 -2
  38. package/dist/cli-bundle/chunks/{chunk-RXPQ5Q23.js → chunk-4PSJVGRE.js} +11 -11
  39. package/dist/cli-bundle/chunks/{chunk-ADXDCAKP.js → chunk-5S6IZXK7.js} +146 -32
  40. package/dist/cli-bundle/chunks/{chunk-IL5SPRMH.js.map → chunk-5S6IZXK7.js.map} +7 -1
  41. package/dist/cli-bundle/chunks/chunk-66SRNEBK.js +143 -0
  42. package/dist/cli-bundle/chunks/chunk-66SRNEBK.js.map +7 -0
  43. package/dist/cli-bundle/chunks/{chunk-YFE7JHX3.js → chunk-6BNV3G6C.js} +2 -2
  44. package/dist/cli-bundle/chunks/{chunk-43UMFKCK.js → chunk-6V4T4RD3.js} +23 -23
  45. package/dist/cli-bundle/chunks/chunk-77XFQRTD.js +140 -0
  46. package/dist/cli-bundle/chunks/chunk-77XFQRTD.js.map +1 -0
  47. package/dist/cli-bundle/chunks/{chunk-EHJFUOXL.js → chunk-7B7IHMLH.js} +3 -3
  48. package/dist/cli-bundle/chunks/{chunk-I7DIDUSP.js → chunk-7CHWLT2J.js} +2 -2
  49. package/dist/cli-bundle/chunks/{chunk-L6FVNR7X.js → chunk-A3GAQLBH.js} +5 -5
  50. package/dist/cli-bundle/chunks/{chunk-B57RJHBZ.js → chunk-A4FVWFZY.js} +4 -4
  51. package/dist/cli-bundle/chunks/{chunk-D52ZN3BF.js → chunk-A5EQPNV7.js} +2 -2
  52. package/dist/cli-bundle/chunks/{chunk-TZAE66GQ.js → chunk-AGEBQRBG.js} +15 -15
  53. package/dist/cli-bundle/chunks/{chunk-WU3KAN6A.js → chunk-AQUNTB7G.js} +3 -3
  54. package/dist/cli-bundle/chunks/{chunk-OGVTB5VO.js → chunk-AR24KW26.js} +237 -36
  55. package/dist/cli-bundle/chunks/chunk-AR24KW26.js.map +7 -0
  56. package/dist/cli-bundle/chunks/{chunk-XWYQ2LT4.js → chunk-BBGR4FKQ.js} +4 -4
  57. package/dist/cli-bundle/chunks/{chunk-HTXXXF45.js → chunk-BDC4TW4B.js} +98 -24
  58. package/dist/cli-bundle/chunks/chunk-BDC4TW4B.js.map +1 -0
  59. package/dist/cli-bundle/chunks/{chunk-2FUOXSRN.js → chunk-BFJP4VYC.js} +4 -4
  60. package/dist/cli-bundle/chunks/{chunk-633PKXLT.js → chunk-BZKE2O5V.js} +3 -3
  61. package/dist/cli-bundle/chunks/{chunk-XPUTSGJU.js → chunk-CZA2DXCV.js} +230 -36
  62. package/dist/cli-bundle/chunks/chunk-CZA2DXCV.js.map +1 -0
  63. package/dist/cli-bundle/chunks/{chunk-KX62NMZC.js → chunk-D35WYXWC.js} +626 -5
  64. package/dist/cli-bundle/chunks/chunk-D35WYXWC.js.map +1 -0
  65. package/dist/cli-bundle/chunks/chunk-DOASIOQR.js +289 -0
  66. package/dist/cli-bundle/chunks/chunk-DOASIOQR.js.map +7 -0
  67. package/dist/cli-bundle/chunks/{chunk-L337QKWJ.js → chunk-DUDLSQFG.js} +5 -5
  68. package/dist/cli-bundle/chunks/{chunk-BVLOMU6O.js → chunk-E7KBMWEF.js} +2 -2
  69. package/dist/cli-bundle/chunks/{chunk-3QDR6ZLU.js → chunk-EAV3P54W.js} +9 -9
  70. package/dist/cli-bundle/chunks/{chunk-3QDR6ZLU.js.map → chunk-EAV3P54W.js.map} +2 -2
  71. package/dist/cli-bundle/chunks/{chunk-WQXRZMFN.js → chunk-EEECAV5M.js} +2 -2
  72. package/dist/cli-bundle/chunks/{chunk-35FHWD4C.js → chunk-EI3UIMZM.js} +4 -4
  73. package/dist/cli-bundle/chunks/{chunk-RGMWJLXF.js → chunk-EVAN5VJA.js} +8 -5
  74. package/dist/cli-bundle/chunks/{chunk-RGMWJLXF.js.map → chunk-EVAN5VJA.js.map} +2 -2
  75. package/dist/cli-bundle/chunks/{chunk-PT7MCCGD.js → chunk-FIUTBFC6.js} +2 -2
  76. package/dist/cli-bundle/chunks/{chunk-7H5NNCJ5.js → chunk-FQF6VVPH.js} +4 -4
  77. package/dist/cli-bundle/chunks/{chunk-6DYOZS6C.js → chunk-FQO5THHM.js} +2 -2
  78. package/dist/cli-bundle/chunks/{chunk-5HGZKQUL.js → chunk-FQODDTE7.js} +4 -4
  79. package/dist/cli-bundle/chunks/{chunk-67RO3H4N.js → chunk-G33XIMRT.js} +6 -6
  80. package/dist/cli-bundle/chunks/{chunk-D53RTYVI.js → chunk-GFZB5CLP.js} +20 -10
  81. package/dist/cli-bundle/chunks/chunk-GFZB5CLP.js.map +7 -0
  82. package/dist/cli-bundle/chunks/{chunk-QWBKN3QC.js → chunk-GKCEEXMA.js} +8 -8
  83. package/dist/cli-bundle/chunks/{chunk-DG2EQRIH.js → chunk-GRDK25BN.js} +7 -7
  84. package/dist/cli-bundle/chunks/{chunk-FXFCFL73.js → chunk-H3YKUVDR.js} +5 -5
  85. package/dist/cli-bundle/chunks/{chunk-IL5SPRMH.js → chunk-IEMXESIS.js} +123 -16
  86. package/dist/cli-bundle/chunks/chunk-IEMXESIS.js.map +1 -0
  87. package/dist/cli-bundle/chunks/{chunk-ARGDWQ4J.js → chunk-IGBBTPM5.js} +2 -2
  88. package/dist/cli-bundle/chunks/{chunk-QPGQNLPI.js → chunk-IR3GOO6E.js} +3842 -4109
  89. package/dist/cli-bundle/chunks/chunk-IR3GOO6E.js.map +1 -0
  90. package/dist/cli-bundle/chunks/{chunk-FY4RLHSC.js → chunk-IRJ6F23W.js} +2 -2
  91. package/dist/cli-bundle/chunks/{chunk-66MKH7SZ.js → chunk-IXG5CMBR.js} +4 -4
  92. package/dist/cli-bundle/chunks/{chunk-F3VC3GOV.js → chunk-JBW2S2C6.js} +2090 -253
  93. package/dist/cli-bundle/chunks/chunk-JBW2S2C6.js.map +7 -0
  94. package/dist/cli-bundle/chunks/{chunk-7UCY6DR5.js → chunk-JPWUZOMR.js} +2 -2
  95. package/dist/cli-bundle/chunks/{chunk-FVNWHUME.js → chunk-K2L6FZBX.js} +8 -8
  96. package/dist/cli-bundle/chunks/chunk-KGPLSHJD.js +286 -0
  97. package/dist/cli-bundle/chunks/chunk-KGPLSHJD.js.map +1 -0
  98. package/dist/cli-bundle/chunks/{chunk-YQEZWI3R.js → chunk-KZ5AC6B5.js} +5 -3
  99. package/dist/cli-bundle/chunks/chunk-KZ5AC6B5.js.map +7 -0
  100. package/dist/cli-bundle/chunks/{chunk-X2MGQMZO.js → chunk-LT5UWU7H.js} +2 -2
  101. package/dist/cli-bundle/chunks/{chunk-KH6QAHME.js → chunk-M4B4RK4J.js} +3 -3
  102. package/dist/cli-bundle/chunks/{chunk-QRZNCRNA.js → chunk-MI3346YW.js} +377 -240
  103. package/dist/cli-bundle/chunks/chunk-MI3346YW.js.map +1 -0
  104. package/dist/cli-bundle/chunks/{chunk-2XOSFSTH.js → chunk-MQOSMBWV.js} +5 -5
  105. package/dist/cli-bundle/chunks/{chunk-YIIIAKCE.js → chunk-MRXAHR4B.js} +28 -22
  106. package/dist/cli-bundle/chunks/chunk-MRXAHR4B.js.map +1 -0
  107. package/dist/cli-bundle/chunks/{chunk-7R6UIHYY.js → chunk-N2TEEOXJ.js} +5 -5
  108. package/dist/cli-bundle/chunks/{chunk-NTRQLE2R.js → chunk-N7FCFJ76.js} +2 -2
  109. package/dist/cli-bundle/chunks/{chunk-37DRDP2B.js → chunk-NPEYH6CE.js} +5 -5
  110. package/dist/cli-bundle/chunks/{chunk-GKPCTQYG.js → chunk-NTS2RKHN.js} +3942 -4216
  111. package/dist/cli-bundle/chunks/chunk-NTS2RKHN.js.map +7 -0
  112. package/dist/cli-bundle/chunks/{chunk-6VHUGVNP.js → chunk-ODEIDKGW.js} +2062 -246
  113. package/dist/cli-bundle/chunks/chunk-ODEIDKGW.js.map +1 -0
  114. package/dist/cli-bundle/chunks/{chunk-2CXL335K.js → chunk-OK7VSX3N.js} +3 -3
  115. package/dist/cli-bundle/chunks/{chunk-NNANAWFH.js → chunk-OKPZDH43.js} +3 -3
  116. package/dist/cli-bundle/chunks/{chunk-G6MYGULG.js → chunk-OKWJUL6F.js} +6 -6
  117. package/dist/cli-bundle/chunks/{chunk-HPAYDSR2.js → chunk-P24ZU5QV.js} +27 -21
  118. package/dist/cli-bundle/chunks/chunk-P24ZU5QV.js.map +7 -0
  119. package/dist/cli-bundle/chunks/{chunk-TGBTLGPX.js → chunk-Q4PSG2GV.js} +13 -4
  120. package/dist/cli-bundle/chunks/{chunk-TGBTLGPX.js.map → chunk-Q4PSG2GV.js.map} +1 -1
  121. package/dist/cli-bundle/chunks/{chunk-5UKQLQM2.js → chunk-Q5NHJ6RO.js} +6 -4
  122. package/dist/cli-bundle/chunks/chunk-Q5NHJ6RO.js.map +1 -0
  123. package/dist/cli-bundle/chunks/{chunk-D5XHO4Q7.js → chunk-Q6JPYR7I.js} +2 -2
  124. package/dist/cli-bundle/chunks/{chunk-P22HGFFI.js → chunk-QFG4MB7P.js} +5 -5
  125. package/dist/cli-bundle/chunks/{chunk-P22HGFFI.js.map → chunk-QFG4MB7P.js.map} +1 -1
  126. package/dist/cli-bundle/chunks/{chunk-IE5KRAKN.js → chunk-QQ77W23U.js} +4 -4
  127. package/dist/cli-bundle/chunks/{chunk-M7MVOKVV.js → chunk-QYGK2XQ3.js} +3 -3
  128. package/dist/cli-bundle/chunks/{chunk-646MQXFW.js → chunk-RLLOZAM2.js} +4 -4
  129. package/dist/cli-bundle/chunks/{chunk-646MQXFW.js.map → chunk-RLLOZAM2.js.map} +2 -2
  130. package/dist/cli-bundle/chunks/{chunk-X5YCTFKT.js → chunk-RWAIRGBC.js} +3 -3
  131. package/dist/cli-bundle/chunks/{chunk-W5E2UUSH.js → chunk-RX53WHFI.js} +3 -3
  132. package/dist/cli-bundle/chunks/{chunk-R5XTTZSJ.js → chunk-SBW7EQC4.js} +5 -5
  133. package/dist/cli-bundle/chunks/{chunk-TM5CIO3F.js → chunk-SGJB6PXA.js} +3 -3
  134. package/dist/cli-bundle/chunks/{chunk-DDFGYUCQ.js → chunk-STBCBDKF.js} +7 -7
  135. package/dist/cli-bundle/chunks/{chunk-EX7OQT3Y.js → chunk-SUNZKVAH.js} +10 -10
  136. package/dist/cli-bundle/chunks/{chunk-EX7OQT3Y.js.map → chunk-SUNZKVAH.js.map} +1 -1
  137. package/dist/cli-bundle/chunks/{chunk-FHOBCGQO.js → chunk-SVAWG7EE.js} +2 -2
  138. package/dist/cli-bundle/chunks/{chunk-6O44IN44.js → chunk-T6MOTLOJ.js} +2 -2
  139. package/dist/cli-bundle/chunks/{chunk-HSYV4ZYT.js → chunk-TELI67UP.js} +9 -6
  140. package/dist/cli-bundle/chunks/{chunk-HSYV4ZYT.js.map → chunk-TELI67UP.js.map} +1 -1
  141. package/dist/cli-bundle/chunks/{chunk-EWIT5WIC.js → chunk-U6RYD446.js} +11 -11
  142. package/dist/cli-bundle/chunks/{chunk-E4FXM2XB.js → chunk-UE7LK3RE.js} +5 -5
  143. package/dist/cli-bundle/chunks/{chunk-N33FD2UI.js → chunk-UNNCT5QY.js} +3 -3
  144. package/dist/cli-bundle/chunks/{chunk-2IPNL3DR.js → chunk-UOIFZ66L.js} +3 -3
  145. package/dist/cli-bundle/chunks/{chunk-LSOWTLEM.js → chunk-UU6EP25G.js} +2 -2
  146. package/dist/cli-bundle/chunks/{chunk-HYTOJW2Q.js → chunk-UW6HCMP2.js} +15 -15
  147. package/dist/cli-bundle/chunks/{chunk-47HXN6RX.js → chunk-UWAQI3B7.js} +3 -3
  148. package/dist/cli-bundle/chunks/{chunk-YKFHF37B.js → chunk-V4QHAMI5.js} +3 -3
  149. package/dist/cli-bundle/chunks/{chunk-VAHZIPWS.js → chunk-VA3H7VVC.js} +4 -4
  150. package/dist/cli-bundle/chunks/{chunk-XC2HEEOV.js → chunk-VFA5EIEN.js} +21 -11
  151. package/dist/cli-bundle/chunks/chunk-VFA5EIEN.js.map +1 -0
  152. package/dist/cli-bundle/chunks/{chunk-TLWJP5BF.js → chunk-VQOG2ETB.js} +4 -4
  153. package/dist/cli-bundle/chunks/{chunk-H5IOT54C.js → chunk-VSQE43NO.js} +8 -8
  154. package/dist/cli-bundle/chunks/{chunk-BDA35QG5.js → chunk-W6IEJXNC.js} +2 -2
  155. package/dist/cli-bundle/chunks/{chunk-WACRQ26A.js → chunk-WCBB6VI3.js} +637 -9
  156. package/dist/cli-bundle/chunks/chunk-WCBB6VI3.js.map +7 -0
  157. package/dist/cli-bundle/chunks/{chunk-OWP6QFBV.js → chunk-XDWXPG2E.js} +4 -4
  158. package/dist/cli-bundle/chunks/{chunk-CKX4WOPC.js → chunk-XKVHL3MB.js} +2 -2
  159. package/dist/cli-bundle/chunks/{chunk-WL3SS45P.js → chunk-XVB6BATY.js} +3 -3
  160. package/dist/cli-bundle/chunks/{chunk-NVZ6NVHJ.js → chunk-XXWDEQ6O.js} +4 -4
  161. package/dist/cli-bundle/chunks/{chunk-ILVOOAT4.js → chunk-Y2VSGFT4.js} +8 -8
  162. package/dist/cli-bundle/chunks/{chunk-NCVT6XEL.js → chunk-YG56M3NE.js} +11 -11
  163. package/dist/cli-bundle/chunks/{chunk-AFGKSHAM.js → chunk-YGEA4CLH.js} +4 -4
  164. package/dist/cli-bundle/chunks/{chunk-AXRT7K5V.js → chunk-YIC5NGXF.js} +11 -11
  165. package/dist/cli-bundle/chunks/{chunk-DHNG452T.js → chunk-ZF52NVRT.js} +396 -245
  166. package/dist/cli-bundle/chunks/chunk-ZF52NVRT.js.map +7 -0
  167. package/dist/cli-bundle/chunks/{chunk-XXLXJL7V.js → chunk-ZUCBPXNA.js} +4 -4
  168. package/dist/cli-bundle/chunks/{close-X3CF6FQP.js → close-7NWA3GLA.js} +5 -5
  169. package/dist/cli-bundle/chunks/close-ZZCDDWJT.js +12 -0
  170. package/dist/cli-bundle/chunks/close-many-QCZHFCON.js +23 -0
  171. package/dist/cli-bundle/chunks/{close-many-J7A5EHOQ.js → close-many-YALQ7AXS.js} +14 -14
  172. package/dist/cli-bundle/chunks/comments-FMQNYPSZ.js +13 -0
  173. package/dist/cli-bundle/chunks/{comments-TMHMALA5.js → comments-SQIQ5WYR.js} +7 -7
  174. package/dist/cli-bundle/chunks/copy-GI3RCVZP.js +9 -0
  175. package/dist/cli-bundle/chunks/{copy-FWQA5OU4.js → copy-YDAMENCP.js} +4 -4
  176. package/dist/cli-bundle/chunks/{create-AQ5SIGZC.js → create-JSL6CXU3.js} +11 -9
  177. package/dist/cli-bundle/chunks/create-LXMLYJNM.js +29 -0
  178. package/dist/cli-bundle/chunks/delete-5DFAXJNI.js +10 -0
  179. package/dist/cli-bundle/chunks/{delete-YYYFOSEA.js → delete-IGVOZEU2.js} +4 -4
  180. package/dist/cli-bundle/chunks/{deps-NIIKXLPB.js → deps-BQAXUQAK.js} +6 -6
  181. package/dist/cli-bundle/chunks/{deps-MQ4ZIGZB.js → deps-CBPPSS6J.js} +6 -6
  182. package/dist/cli-bundle/chunks/docs-KCWPLQOV.js +14 -0
  183. package/dist/cli-bundle/chunks/{docs-53NUGMIQ.js → docs-NS2AZWCN.js} +7 -7
  184. package/dist/cli-bundle/chunks/{files-3PXGXYDB.js → files-PVWEPT5J.js} +7 -7
  185. package/dist/cli-bundle/chunks/{files-EGLKHD7O.js → files-XUUBQ76I.js} +7 -7
  186. package/dist/cli-bundle/chunks/focus-3EJVFI3D.js +10 -0
  187. package/dist/cli-bundle/chunks/{focus-SRPASFTN.js → focus-DHBHKK3E.js} +5 -5
  188. package/dist/cli-bundle/chunks/{history-compact-G4DULDCX.js → history-compact-3TNPYVFG.js} +6 -6
  189. package/dist/cli-bundle/chunks/history-compact-JHYVDYLW.js +16 -0
  190. package/dist/cli-bundle/chunks/{history-redact-IUSJ6X3E.js → history-redact-ELRL73XN.js} +4 -4
  191. package/dist/cli-bundle/chunks/{history-redact-THHGRQXV.js → history-redact-KKFDICCF.js} +4 -4
  192. package/dist/cli-bundle/chunks/{history-repair-LUQWRS7X.js → history-repair-J7WKZFAG.js} +6 -6
  193. package/dist/cli-bundle/chunks/history-repair-REMI7DDI.js +16 -0
  194. package/dist/cli-bundle/chunks/learnings-O6V5WDCV.js +13 -0
  195. package/dist/cli-bundle/chunks/{learnings-2MRNBFJF.js → learnings-X4D6JCCG.js} +7 -7
  196. package/dist/cli-bundle/chunks/{notes-73JWKWUD.js → notes-UQC6VS6N.js} +7 -7
  197. package/dist/cli-bundle/chunks/notes-ZSZREWZA.js +13 -0
  198. package/dist/cli-bundle/chunks/{plan-AZPMCG37.js → plan-5GKRBJJO.js} +12 -10
  199. package/dist/cli-bundle/chunks/plan-EZW2YDDY.js +26 -0
  200. package/dist/cli-bundle/chunks/{profile-AVCIIZID.js → profile-5PQAPCLF.js} +10 -10
  201. package/dist/cli-bundle/chunks/{profile-LFYO3HHX.js → profile-CW4BD3FO.js} +10 -10
  202. package/dist/cli-bundle/chunks/{register-list-query-UKMF55FT.js → register-list-query-HTDQE6VI.js} +24 -24
  203. package/dist/cli-bundle/chunks/{register-list-query-MZUF2EEC.js → register-list-query-PHIPDFP2.js} +24 -24
  204. package/dist/cli-bundle/chunks/{register-mutation-T6RVNJC4.js → register-mutation-BLEWM5I6.js} +32 -32
  205. package/dist/cli-bundle/chunks/{register-mutation-2PBW2GEX.js → register-mutation-OTYHR7J6.js} +32 -32
  206. package/dist/cli-bundle/chunks/{register-operations-KHZYR6MG.js → register-operations-AMCUFYEW.js} +38 -40
  207. package/dist/cli-bundle/chunks/{register-operations-KHZYR6MG.js.map → register-operations-AMCUFYEW.js.map} +1 -1
  208. package/dist/cli-bundle/chunks/{register-operations-WPQ2LWZJ.js → register-operations-MRLHOZYR.js} +36 -38
  209. package/dist/cli-bundle/chunks/{register-operations-WPQ2LWZJ.js.map → register-operations-MRLHOZYR.js.map} +1 -1
  210. package/dist/cli-bundle/chunks/{register-setup-PGDNOXDQ.js → register-setup-N2FOSWAG.js} +15 -17
  211. package/dist/cli-bundle/chunks/{register-setup-PGDNOXDQ.js.map → register-setup-N2FOSWAG.js.map} +1 -1
  212. package/dist/cli-bundle/chunks/{register-setup-TDN7WAO6.js → register-setup-ZVKTDL4G.js} +17 -19
  213. package/dist/cli-bundle/chunks/{register-setup-TDN7WAO6.js.map → register-setup-ZVKTDL4G.js.map} +1 -1
  214. package/dist/cli-bundle/chunks/restore-A55MLFAI.js +14 -0
  215. package/dist/cli-bundle/chunks/{restore-E3PRGDN3.js → restore-HEQAG6EK.js} +6 -6
  216. package/dist/cli-bundle/chunks/{schema-5JNFQFUW.js → schema-MAXAIHEC.js} +6 -6
  217. package/dist/cli-bundle/chunks/{schema-TMIW4XZC.js → schema-Q5DAWJ2S.js} +6 -6
  218. package/dist/cli-bundle/chunks/update-5DTSCWVF.js +23 -0
  219. package/dist/cli-bundle/chunks/{update-SQYZA3ZW.js → update-DWFXXJKP.js} +15 -13
  220. package/dist/cli-bundle/chunks/update-many-6T4ZLZS7.js +34 -0
  221. package/dist/cli-bundle/chunks/update-many-MYRK6VBJ.js +38 -0
  222. package/dist/cli-bundle/main.js +152 -29
  223. package/dist/cli-bundle/main.js.map +3 -3
  224. package/dist/cli-bundle/sdk-runtime.js +72 -75
  225. package/dist/cli-bundle/sdk-testing.js +8 -8
  226. package/dist/cli-bundle/sdk.js +288 -642
  227. package/dist/cli-bundle/sdk.js.map +4 -4
  228. package/dist/core/extensions/activation-summary.d.ts +2 -0
  229. package/dist/core/extensions/activation-summary.js +7 -2
  230. package/dist/core/extensions/activation-summary.js.map +1 -1
  231. package/dist/core/extensions/capability-usage.d.ts +1 -1
  232. package/dist/core/extensions/capability-usage.js +5 -2
  233. package/dist/core/extensions/capability-usage.js.map +1 -1
  234. package/dist/core/extensions/extension-hook-runtime.js +3 -2
  235. package/dist/core/extensions/extension-hook-runtime.js.map +1 -1
  236. package/dist/core/extensions/extension-registries.js +3 -2
  237. package/dist/core/extensions/extension-registries.js.map +1 -1
  238. package/dist/core/extensions/extension-types.d.ts +38 -1
  239. package/dist/core/extensions/extension-types.js +3 -2
  240. package/dist/core/extensions/extension-types.js.map +1 -1
  241. package/dist/core/extensions/loader.js +36 -2
  242. package/dist/core/extensions/loader.js.map +1 -1
  243. package/dist/core/store/item-store.d.ts +4 -1
  244. package/dist/core/store/item-store.js +3 -3
  245. package/dist/core/store/item-store.js.map +1 -1
  246. package/dist/core/store/paths.d.ts +2 -0
  247. package/dist/core/store/paths.js +26 -3
  248. package/dist/core/store/paths.js.map +1 -1
  249. package/dist/sdk/cli-contracts/enum-contracts.d.ts +1 -1
  250. package/dist/sdk/compose.d.ts +3 -0
  251. package/dist/sdk/compose.js +14 -2
  252. package/dist/sdk/compose.js.map +1 -1
  253. package/dist/sdk/dependencies.js +3 -3
  254. package/dist/sdk/dependencies.js.map +1 -1
  255. package/dist/sdk/extension-command-context.d.ts +10 -0
  256. package/dist/sdk/extension-command-context.js +30 -0
  257. package/dist/sdk/extension-command-context.js.map +1 -0
  258. package/dist/sdk/graph/assembly.js +14 -4
  259. package/dist/sdk/graph/assembly.js.map +1 -1
  260. package/dist/sdk/graph/index.d.ts +1 -0
  261. package/dist/sdk/graph/index.js +3 -2
  262. package/dist/sdk/graph/index.js.map +1 -1
  263. package/dist/sdk/graph/mutation-advisory.d.ts +20 -0
  264. package/dist/sdk/graph/mutation-advisory.js +80 -0
  265. package/dist/sdk/graph/mutation-advisory.js.map +1 -0
  266. package/dist/sdk/graph/run.d.ts +5 -1
  267. package/dist/sdk/graph/run.js +11 -3
  268. package/dist/sdk/graph/run.js.map +1 -1
  269. package/dist/sdk/index.d.ts +4 -1
  270. package/dist/sdk/index.js +5 -2
  271. package/dist/sdk/index.js.map +1 -1
  272. package/dist/sdk/ownership-source.d.ts +2 -0
  273. package/dist/sdk/ownership-source.js +22 -0
  274. package/dist/sdk/ownership-source.js.map +1 -0
  275. package/dist/sdk/relationship-history.d.ts +38 -0
  276. package/dist/sdk/relationship-history.js +60 -2
  277. package/dist/sdk/relationship-history.js.map +1 -1
  278. package/dist/sdk/relationships.js +49 -8
  279. package/dist/sdk/relationships.js.map +1 -1
  280. package/dist/sdk/runtime-input.js +3 -2
  281. package/dist/sdk/runtime-input.js.map +1 -1
  282. package/dist/sdk/runtime.d.ts +2 -0
  283. package/dist/sdk/runtime.js +19 -2
  284. package/dist/sdk/runtime.js.map +1 -1
  285. package/dist/sdk/tracker-root-discovery.d.ts +6 -0
  286. package/dist/sdk/tracker-root-discovery.js +10 -0
  287. package/dist/sdk/tracker-root-discovery.js.map +1 -0
  288. package/dist/sdk/workspace-transaction.d.ts +83 -0
  289. package/dist/sdk/workspace-transaction.js +364 -0
  290. package/dist/sdk/workspace-transaction.js.map +1 -0
  291. package/docs/AGENT_UX_CONTRACTS.md +41 -0
  292. package/docs/EXTENSIONS.md +4 -4
  293. package/docs/README.md +1 -0
  294. package/docs/SDK.md +102 -1
  295. package/marketplace.json +2 -2
  296. package/package.json +1 -1
  297. package/packages/pm-beads/package.json +1 -1
  298. package/packages/pm-calendar/package.json +1 -1
  299. package/packages/pm-command-kit/package.json +1 -1
  300. package/packages/pm-governance-audit/package.json +1 -1
  301. package/packages/pm-guide-shell/package.json +1 -1
  302. package/packages/pm-kanban/package.json +1 -1
  303. package/packages/pm-lifecycle-hooks/package.json +1 -1
  304. package/packages/pm-linked-test-adapters/package.json +1 -1
  305. package/packages/pm-search-advanced/package.json +1 -1
  306. package/packages/pm-templates/package.json +1 -1
  307. package/packages/pm-todos/package.json +1 -1
  308. package/packages/pm-vcs/GAP_REPORT.md +31 -0
  309. package/packages/pm-vcs/README.md +62 -0
  310. package/packages/pm-vcs/extensions/vcs/index.ts +745 -0
  311. package/packages/pm-vcs/extensions/vcs/manifest.json +19 -0
  312. package/packages/pm-vcs/extensions/vcs/package.json +3 -0
  313. package/packages/pm-vcs/package.json +55 -0
  314. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  315. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  316. package/dist/cli-bundle/chunks/append-JHO5K6RP.js +0 -11
  317. package/dist/cli-bundle/chunks/chunk-2BX74BAS.js +0 -125
  318. package/dist/cli-bundle/chunks/chunk-2BX74BAS.js.map +0 -7
  319. package/dist/cli-bundle/chunks/chunk-3CUQZNQ6.js +0 -672
  320. package/dist/cli-bundle/chunks/chunk-3CUQZNQ6.js.map +0 -7
  321. package/dist/cli-bundle/chunks/chunk-5UKQLQM2.js.map +0 -1
  322. package/dist/cli-bundle/chunks/chunk-6VHUGVNP.js.map +0 -1
  323. package/dist/cli-bundle/chunks/chunk-74FKFFXO.js +0 -172
  324. package/dist/cli-bundle/chunks/chunk-74FKFFXO.js.map +0 -7
  325. package/dist/cli-bundle/chunks/chunk-ADXDCAKP.js.map +0 -7
  326. package/dist/cli-bundle/chunks/chunk-BAP7G3N2.js +0 -178
  327. package/dist/cli-bundle/chunks/chunk-BAP7G3N2.js.map +0 -7
  328. package/dist/cli-bundle/chunks/chunk-D53RTYVI.js.map +0 -7
  329. package/dist/cli-bundle/chunks/chunk-DHNG452T.js.map +0 -7
  330. package/dist/cli-bundle/chunks/chunk-EY7ZE3TG.js +0 -1831
  331. package/dist/cli-bundle/chunks/chunk-EY7ZE3TG.js.map +0 -1
  332. package/dist/cli-bundle/chunks/chunk-F3VC3GOV.js.map +0 -7
  333. package/dist/cli-bundle/chunks/chunk-FL4D53ND.js +0 -162
  334. package/dist/cli-bundle/chunks/chunk-FL4D53ND.js.map +0 -1
  335. package/dist/cli-bundle/chunks/chunk-GKPCTQYG.js.map +0 -7
  336. package/dist/cli-bundle/chunks/chunk-HPAYDSR2.js.map +0 -7
  337. package/dist/cli-bundle/chunks/chunk-HTXXXF45.js.map +0 -1
  338. package/dist/cli-bundle/chunks/chunk-I3INI567.js.map +0 -7
  339. package/dist/cli-bundle/chunks/chunk-KX62NMZC.js.map +0 -1
  340. package/dist/cli-bundle/chunks/chunk-L5BTTDU5.js +0 -662
  341. package/dist/cli-bundle/chunks/chunk-L5BTTDU5.js.map +0 -1
  342. package/dist/cli-bundle/chunks/chunk-MR4SHYR4.js.map +0 -7
  343. package/dist/cli-bundle/chunks/chunk-OGVTB5VO.js.map +0 -7
  344. package/dist/cli-bundle/chunks/chunk-QPGQNLPI.js.map +0 -1
  345. package/dist/cli-bundle/chunks/chunk-QRZNCRNA.js.map +0 -1
  346. package/dist/cli-bundle/chunks/chunk-RC4UOUXA.js +0 -122
  347. package/dist/cli-bundle/chunks/chunk-RC4UOUXA.js.map +0 -1
  348. package/dist/cli-bundle/chunks/chunk-RTBX3C4C.js +0 -1841
  349. package/dist/cli-bundle/chunks/chunk-RTBX3C4C.js.map +0 -7
  350. package/dist/cli-bundle/chunks/chunk-SIPOACV5.js.map +0 -1
  351. package/dist/cli-bundle/chunks/chunk-WACRQ26A.js.map +0 -7
  352. package/dist/cli-bundle/chunks/chunk-XC2HEEOV.js.map +0 -1
  353. package/dist/cli-bundle/chunks/chunk-XPUTSGJU.js.map +0 -1
  354. package/dist/cli-bundle/chunks/chunk-YIIIAKCE.js.map +0 -1
  355. package/dist/cli-bundle/chunks/chunk-YJSURTBB.js +0 -175
  356. package/dist/cli-bundle/chunks/chunk-YJSURTBB.js.map +0 -1
  357. package/dist/cli-bundle/chunks/chunk-YQEZWI3R.js.map +0 -7
  358. package/dist/cli-bundle/chunks/close-GPD7DTJV.js +0 -12
  359. package/dist/cli-bundle/chunks/close-many-NQLYGPYW.js +0 -23
  360. package/dist/cli-bundle/chunks/comments-2AOZQ5D2.js +0 -13
  361. package/dist/cli-bundle/chunks/copy-N3LCQBMC.js +0 -9
  362. package/dist/cli-bundle/chunks/create-KOGQ3JKD.js +0 -27
  363. package/dist/cli-bundle/chunks/delete-6G3MBZ6S.js +0 -10
  364. package/dist/cli-bundle/chunks/docs-OWRGDMNY.js +0 -14
  365. package/dist/cli-bundle/chunks/focus-KZLIA6WS.js +0 -10
  366. package/dist/cli-bundle/chunks/history-compact-HHIUOMZ7.js +0 -16
  367. package/dist/cli-bundle/chunks/history-repair-KG7SWXI6.js +0 -16
  368. package/dist/cli-bundle/chunks/learnings-ZVHSALJY.js +0 -13
  369. package/dist/cli-bundle/chunks/notes-BAKUL5DJ.js +0 -13
  370. package/dist/cli-bundle/chunks/plan-LEAGLPGP.js +0 -24
  371. package/dist/cli-bundle/chunks/restore-KIUYTAEJ.js +0 -14
  372. package/dist/cli-bundle/chunks/update-XZJYS5X7.js +0 -21
  373. package/dist/cli-bundle/chunks/update-many-R24B3GBK.js +0 -36
  374. package/dist/cli-bundle/chunks/update-many-WQ3R3J6N.js +0 -32
  375. /package/dist/cli-bundle/chunks/{append-5YF3TO7I.js.map → append-MBXHNWSX.js.map} +0 -0
  376. /package/dist/cli-bundle/chunks/{append-JHO5K6RP.js.map → append-XUYF7NON.js.map} +0 -0
  377. /package/dist/cli-bundle/chunks/{chunk-BIRYX32V.js.map → chunk-2UCG5H6B.js.map} +0 -0
  378. /package/dist/cli-bundle/chunks/{chunk-VE6ZSTQW.js.map → chunk-2XPDCXK5.js.map} +0 -0
  379. /package/dist/cli-bundle/chunks/{chunk-GLZKZON6.js.map → chunk-3HSRP6T2.js.map} +0 -0
  380. /package/dist/cli-bundle/chunks/{chunk-XWBD6DSR.js.map → chunk-3KPNOZOH.js.map} +0 -0
  381. /package/dist/cli-bundle/chunks/{chunk-HO4DLBNK.js.map → chunk-4M6RZJXF.js.map} +0 -0
  382. /package/dist/cli-bundle/chunks/{chunk-RXPQ5Q23.js.map → chunk-4PSJVGRE.js.map} +0 -0
  383. /package/dist/cli-bundle/chunks/{chunk-YFE7JHX3.js.map → chunk-6BNV3G6C.js.map} +0 -0
  384. /package/dist/cli-bundle/chunks/{chunk-43UMFKCK.js.map → chunk-6V4T4RD3.js.map} +0 -0
  385. /package/dist/cli-bundle/chunks/{chunk-EHJFUOXL.js.map → chunk-7B7IHMLH.js.map} +0 -0
  386. /package/dist/cli-bundle/chunks/{chunk-I7DIDUSP.js.map → chunk-7CHWLT2J.js.map} +0 -0
  387. /package/dist/cli-bundle/chunks/{chunk-L6FVNR7X.js.map → chunk-A3GAQLBH.js.map} +0 -0
  388. /package/dist/cli-bundle/chunks/{chunk-B57RJHBZ.js.map → chunk-A4FVWFZY.js.map} +0 -0
  389. /package/dist/cli-bundle/chunks/{chunk-D52ZN3BF.js.map → chunk-A5EQPNV7.js.map} +0 -0
  390. /package/dist/cli-bundle/chunks/{chunk-TZAE66GQ.js.map → chunk-AGEBQRBG.js.map} +0 -0
  391. /package/dist/cli-bundle/chunks/{chunk-WU3KAN6A.js.map → chunk-AQUNTB7G.js.map} +0 -0
  392. /package/dist/cli-bundle/chunks/{chunk-XWYQ2LT4.js.map → chunk-BBGR4FKQ.js.map} +0 -0
  393. /package/dist/cli-bundle/chunks/{chunk-2FUOXSRN.js.map → chunk-BFJP4VYC.js.map} +0 -0
  394. /package/dist/cli-bundle/chunks/{chunk-633PKXLT.js.map → chunk-BZKE2O5V.js.map} +0 -0
  395. /package/dist/cli-bundle/chunks/{chunk-L337QKWJ.js.map → chunk-DUDLSQFG.js.map} +0 -0
  396. /package/dist/cli-bundle/chunks/{chunk-BVLOMU6O.js.map → chunk-E7KBMWEF.js.map} +0 -0
  397. /package/dist/cli-bundle/chunks/{chunk-WQXRZMFN.js.map → chunk-EEECAV5M.js.map} +0 -0
  398. /package/dist/cli-bundle/chunks/{chunk-35FHWD4C.js.map → chunk-EI3UIMZM.js.map} +0 -0
  399. /package/dist/cli-bundle/chunks/{chunk-PT7MCCGD.js.map → chunk-FIUTBFC6.js.map} +0 -0
  400. /package/dist/cli-bundle/chunks/{chunk-7H5NNCJ5.js.map → chunk-FQF6VVPH.js.map} +0 -0
  401. /package/dist/cli-bundle/chunks/{chunk-6DYOZS6C.js.map → chunk-FQO5THHM.js.map} +0 -0
  402. /package/dist/cli-bundle/chunks/{chunk-5HGZKQUL.js.map → chunk-FQODDTE7.js.map} +0 -0
  403. /package/dist/cli-bundle/chunks/{chunk-67RO3H4N.js.map → chunk-G33XIMRT.js.map} +0 -0
  404. /package/dist/cli-bundle/chunks/{chunk-QWBKN3QC.js.map → chunk-GKCEEXMA.js.map} +0 -0
  405. /package/dist/cli-bundle/chunks/{chunk-DG2EQRIH.js.map → chunk-GRDK25BN.js.map} +0 -0
  406. /package/dist/cli-bundle/chunks/{chunk-FXFCFL73.js.map → chunk-H3YKUVDR.js.map} +0 -0
  407. /package/dist/cli-bundle/chunks/{chunk-ARGDWQ4J.js.map → chunk-IGBBTPM5.js.map} +0 -0
  408. /package/dist/cli-bundle/chunks/{chunk-FY4RLHSC.js.map → chunk-IRJ6F23W.js.map} +0 -0
  409. /package/dist/cli-bundle/chunks/{chunk-66MKH7SZ.js.map → chunk-IXG5CMBR.js.map} +0 -0
  410. /package/dist/cli-bundle/chunks/{chunk-7UCY6DR5.js.map → chunk-JPWUZOMR.js.map} +0 -0
  411. /package/dist/cli-bundle/chunks/{chunk-FVNWHUME.js.map → chunk-K2L6FZBX.js.map} +0 -0
  412. /package/dist/cli-bundle/chunks/{chunk-X2MGQMZO.js.map → chunk-LT5UWU7H.js.map} +0 -0
  413. /package/dist/cli-bundle/chunks/{chunk-KH6QAHME.js.map → chunk-M4B4RK4J.js.map} +0 -0
  414. /package/dist/cli-bundle/chunks/{chunk-2XOSFSTH.js.map → chunk-MQOSMBWV.js.map} +0 -0
  415. /package/dist/cli-bundle/chunks/{chunk-7R6UIHYY.js.map → chunk-N2TEEOXJ.js.map} +0 -0
  416. /package/dist/cli-bundle/chunks/{chunk-NTRQLE2R.js.map → chunk-N7FCFJ76.js.map} +0 -0
  417. /package/dist/cli-bundle/chunks/{chunk-37DRDP2B.js.map → chunk-NPEYH6CE.js.map} +0 -0
  418. /package/dist/cli-bundle/chunks/{chunk-2CXL335K.js.map → chunk-OK7VSX3N.js.map} +0 -0
  419. /package/dist/cli-bundle/chunks/{chunk-NNANAWFH.js.map → chunk-OKPZDH43.js.map} +0 -0
  420. /package/dist/cli-bundle/chunks/{chunk-G6MYGULG.js.map → chunk-OKWJUL6F.js.map} +0 -0
  421. /package/dist/cli-bundle/chunks/{chunk-D5XHO4Q7.js.map → chunk-Q6JPYR7I.js.map} +0 -0
  422. /package/dist/cli-bundle/chunks/{chunk-IE5KRAKN.js.map → chunk-QQ77W23U.js.map} +0 -0
  423. /package/dist/cli-bundle/chunks/{chunk-M7MVOKVV.js.map → chunk-QYGK2XQ3.js.map} +0 -0
  424. /package/dist/cli-bundle/chunks/{chunk-X5YCTFKT.js.map → chunk-RWAIRGBC.js.map} +0 -0
  425. /package/dist/cli-bundle/chunks/{chunk-W5E2UUSH.js.map → chunk-RX53WHFI.js.map} +0 -0
  426. /package/dist/cli-bundle/chunks/{chunk-R5XTTZSJ.js.map → chunk-SBW7EQC4.js.map} +0 -0
  427. /package/dist/cli-bundle/chunks/{chunk-TM5CIO3F.js.map → chunk-SGJB6PXA.js.map} +0 -0
  428. /package/dist/cli-bundle/chunks/{chunk-DDFGYUCQ.js.map → chunk-STBCBDKF.js.map} +0 -0
  429. /package/dist/cli-bundle/chunks/{chunk-FHOBCGQO.js.map → chunk-SVAWG7EE.js.map} +0 -0
  430. /package/dist/cli-bundle/chunks/{chunk-6O44IN44.js.map → chunk-T6MOTLOJ.js.map} +0 -0
  431. /package/dist/cli-bundle/chunks/{chunk-EWIT5WIC.js.map → chunk-U6RYD446.js.map} +0 -0
  432. /package/dist/cli-bundle/chunks/{chunk-E4FXM2XB.js.map → chunk-UE7LK3RE.js.map} +0 -0
  433. /package/dist/cli-bundle/chunks/{chunk-N33FD2UI.js.map → chunk-UNNCT5QY.js.map} +0 -0
  434. /package/dist/cli-bundle/chunks/{chunk-2IPNL3DR.js.map → chunk-UOIFZ66L.js.map} +0 -0
  435. /package/dist/cli-bundle/chunks/{chunk-LSOWTLEM.js.map → chunk-UU6EP25G.js.map} +0 -0
  436. /package/dist/cli-bundle/chunks/{chunk-HYTOJW2Q.js.map → chunk-UW6HCMP2.js.map} +0 -0
  437. /package/dist/cli-bundle/chunks/{chunk-47HXN6RX.js.map → chunk-UWAQI3B7.js.map} +0 -0
  438. /package/dist/cli-bundle/chunks/{chunk-YKFHF37B.js.map → chunk-V4QHAMI5.js.map} +0 -0
  439. /package/dist/cli-bundle/chunks/{chunk-VAHZIPWS.js.map → chunk-VA3H7VVC.js.map} +0 -0
  440. /package/dist/cli-bundle/chunks/{chunk-TLWJP5BF.js.map → chunk-VQOG2ETB.js.map} +0 -0
  441. /package/dist/cli-bundle/chunks/{chunk-H5IOT54C.js.map → chunk-VSQE43NO.js.map} +0 -0
  442. /package/dist/cli-bundle/chunks/{chunk-BDA35QG5.js.map → chunk-W6IEJXNC.js.map} +0 -0
  443. /package/dist/cli-bundle/chunks/{chunk-OWP6QFBV.js.map → chunk-XDWXPG2E.js.map} +0 -0
  444. /package/dist/cli-bundle/chunks/{chunk-CKX4WOPC.js.map → chunk-XKVHL3MB.js.map} +0 -0
  445. /package/dist/cli-bundle/chunks/{chunk-WL3SS45P.js.map → chunk-XVB6BATY.js.map} +0 -0
  446. /package/dist/cli-bundle/chunks/{chunk-NVZ6NVHJ.js.map → chunk-XXWDEQ6O.js.map} +0 -0
  447. /package/dist/cli-bundle/chunks/{chunk-ILVOOAT4.js.map → chunk-Y2VSGFT4.js.map} +0 -0
  448. /package/dist/cli-bundle/chunks/{chunk-NCVT6XEL.js.map → chunk-YG56M3NE.js.map} +0 -0
  449. /package/dist/cli-bundle/chunks/{chunk-AFGKSHAM.js.map → chunk-YGEA4CLH.js.map} +0 -0
  450. /package/dist/cli-bundle/chunks/{chunk-AXRT7K5V.js.map → chunk-YIC5NGXF.js.map} +0 -0
  451. /package/dist/cli-bundle/chunks/{chunk-XXLXJL7V.js.map → chunk-ZUCBPXNA.js.map} +0 -0
  452. /package/dist/cli-bundle/chunks/{close-X3CF6FQP.js.map → close-7NWA3GLA.js.map} +0 -0
  453. /package/dist/cli-bundle/chunks/{close-GPD7DTJV.js.map → close-ZZCDDWJT.js.map} +0 -0
  454. /package/dist/cli-bundle/chunks/{close-many-NQLYGPYW.js.map → close-many-QCZHFCON.js.map} +0 -0
  455. /package/dist/cli-bundle/chunks/{close-many-J7A5EHOQ.js.map → close-many-YALQ7AXS.js.map} +0 -0
  456. /package/dist/cli-bundle/chunks/{comments-2AOZQ5D2.js.map → comments-FMQNYPSZ.js.map} +0 -0
  457. /package/dist/cli-bundle/chunks/{comments-TMHMALA5.js.map → comments-SQIQ5WYR.js.map} +0 -0
  458. /package/dist/cli-bundle/chunks/{copy-N3LCQBMC.js.map → copy-GI3RCVZP.js.map} +0 -0
  459. /package/dist/cli-bundle/chunks/{copy-FWQA5OU4.js.map → copy-YDAMENCP.js.map} +0 -0
  460. /package/dist/cli-bundle/chunks/{create-AQ5SIGZC.js.map → create-JSL6CXU3.js.map} +0 -0
  461. /package/dist/cli-bundle/chunks/{create-KOGQ3JKD.js.map → create-LXMLYJNM.js.map} +0 -0
  462. /package/dist/cli-bundle/chunks/{delete-6G3MBZ6S.js.map → delete-5DFAXJNI.js.map} +0 -0
  463. /package/dist/cli-bundle/chunks/{delete-YYYFOSEA.js.map → delete-IGVOZEU2.js.map} +0 -0
  464. /package/dist/cli-bundle/chunks/{deps-NIIKXLPB.js.map → deps-BQAXUQAK.js.map} +0 -0
  465. /package/dist/cli-bundle/chunks/{deps-MQ4ZIGZB.js.map → deps-CBPPSS6J.js.map} +0 -0
  466. /package/dist/cli-bundle/chunks/{docs-OWRGDMNY.js.map → docs-KCWPLQOV.js.map} +0 -0
  467. /package/dist/cli-bundle/chunks/{docs-53NUGMIQ.js.map → docs-NS2AZWCN.js.map} +0 -0
  468. /package/dist/cli-bundle/chunks/{files-3PXGXYDB.js.map → files-PVWEPT5J.js.map} +0 -0
  469. /package/dist/cli-bundle/chunks/{files-EGLKHD7O.js.map → files-XUUBQ76I.js.map} +0 -0
  470. /package/dist/cli-bundle/chunks/{focus-KZLIA6WS.js.map → focus-3EJVFI3D.js.map} +0 -0
  471. /package/dist/cli-bundle/chunks/{focus-SRPASFTN.js.map → focus-DHBHKK3E.js.map} +0 -0
  472. /package/dist/cli-bundle/chunks/{history-compact-G4DULDCX.js.map → history-compact-3TNPYVFG.js.map} +0 -0
  473. /package/dist/cli-bundle/chunks/{history-compact-HHIUOMZ7.js.map → history-compact-JHYVDYLW.js.map} +0 -0
  474. /package/dist/cli-bundle/chunks/{history-redact-IUSJ6X3E.js.map → history-redact-ELRL73XN.js.map} +0 -0
  475. /package/dist/cli-bundle/chunks/{history-redact-THHGRQXV.js.map → history-redact-KKFDICCF.js.map} +0 -0
  476. /package/dist/cli-bundle/chunks/{history-repair-LUQWRS7X.js.map → history-repair-J7WKZFAG.js.map} +0 -0
  477. /package/dist/cli-bundle/chunks/{history-repair-KG7SWXI6.js.map → history-repair-REMI7DDI.js.map} +0 -0
  478. /package/dist/cli-bundle/chunks/{learnings-ZVHSALJY.js.map → learnings-O6V5WDCV.js.map} +0 -0
  479. /package/dist/cli-bundle/chunks/{learnings-2MRNBFJF.js.map → learnings-X4D6JCCG.js.map} +0 -0
  480. /package/dist/cli-bundle/chunks/{notes-73JWKWUD.js.map → notes-UQC6VS6N.js.map} +0 -0
  481. /package/dist/cli-bundle/chunks/{notes-BAKUL5DJ.js.map → notes-ZSZREWZA.js.map} +0 -0
  482. /package/dist/cli-bundle/chunks/{plan-AZPMCG37.js.map → plan-5GKRBJJO.js.map} +0 -0
  483. /package/dist/cli-bundle/chunks/{plan-LEAGLPGP.js.map → plan-EZW2YDDY.js.map} +0 -0
  484. /package/dist/cli-bundle/chunks/{profile-AVCIIZID.js.map → profile-5PQAPCLF.js.map} +0 -0
  485. /package/dist/cli-bundle/chunks/{profile-LFYO3HHX.js.map → profile-CW4BD3FO.js.map} +0 -0
  486. /package/dist/cli-bundle/chunks/{register-list-query-UKMF55FT.js.map → register-list-query-HTDQE6VI.js.map} +0 -0
  487. /package/dist/cli-bundle/chunks/{register-list-query-MZUF2EEC.js.map → register-list-query-PHIPDFP2.js.map} +0 -0
  488. /package/dist/cli-bundle/chunks/{register-mutation-T6RVNJC4.js.map → register-mutation-BLEWM5I6.js.map} +0 -0
  489. /package/dist/cli-bundle/chunks/{register-mutation-2PBW2GEX.js.map → register-mutation-OTYHR7J6.js.map} +0 -0
  490. /package/dist/cli-bundle/chunks/{restore-KIUYTAEJ.js.map → restore-A55MLFAI.js.map} +0 -0
  491. /package/dist/cli-bundle/chunks/{restore-E3PRGDN3.js.map → restore-HEQAG6EK.js.map} +0 -0
  492. /package/dist/cli-bundle/chunks/{schema-5JNFQFUW.js.map → schema-MAXAIHEC.js.map} +0 -0
  493. /package/dist/cli-bundle/chunks/{schema-TMIW4XZC.js.map → schema-Q5DAWJ2S.js.map} +0 -0
  494. /package/dist/cli-bundle/chunks/{update-XZJYS5X7.js.map → update-5DTSCWVF.js.map} +0 -0
  495. /package/dist/cli-bundle/chunks/{update-SQYZA3ZW.js.map → update-DWFXXJKP.js.map} +0 -0
  496. /package/dist/cli-bundle/chunks/{update-many-WQ3R3J6N.js.map → update-many-6T4ZLZS7.js.map} +0 -0
  497. /package/dist/cli-bundle/chunks/{update-many-R24B3GBK.js.map → update-many-MYRK6VBJ.js.map} +0 -0
@@ -1,672 +0,0 @@
1
- // dist/sdk/relationships.js
2
- !(function() {
3
- try {
4
- var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
5
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "00588d49-70aa-59c8-bc85-d0bbd5e77d4b");
6
- } catch (e2) {
7
- }
8
- })();
9
- var BUILTIN_RELATIONSHIP_KINDS = [
10
- {
11
- kind: "blocked_by",
12
- direction: "directed",
13
- inverse: "blocks",
14
- ordering: true,
15
- precedence: "target_before_source",
16
- hierarchy: false,
17
- outgoing: "many",
18
- incoming: "many",
19
- lifecycle: "persistent",
20
- aliases: ["depends_on"],
21
- compatibilityVersion: 1,
22
- allowSelf: false
23
- },
24
- {
25
- kind: "blocks",
26
- direction: "directed",
27
- inverse: "blocked_by",
28
- ordering: true,
29
- precedence: "source_before_target",
30
- hierarchy: false,
31
- outgoing: "many",
32
- incoming: "many",
33
- lifecycle: "persistent",
34
- compatibilityVersion: 1,
35
- allowSelf: false
36
- },
37
- {
38
- kind: "parent",
39
- direction: "directed",
40
- inverse: "child",
41
- ordering: false,
42
- hierarchy: true,
43
- hierarchyDirection: "target_parent",
44
- outgoing: "one",
45
- incoming: "many",
46
- lifecycle: "supersedable",
47
- aliases: ["child_of", "epic"],
48
- compatibilityVersion: 1,
49
- allowSelf: false
50
- },
51
- {
52
- kind: "child",
53
- direction: "directed",
54
- inverse: "parent",
55
- ordering: false,
56
- hierarchy: true,
57
- hierarchyDirection: "source_parent",
58
- outgoing: "many",
59
- incoming: "one",
60
- lifecycle: "supersedable",
61
- aliases: ["parent_child", "task"],
62
- compatibilityVersion: 1,
63
- allowSelf: false
64
- },
65
- {
66
- kind: "related",
67
- direction: "undirected",
68
- ordering: false,
69
- hierarchy: false,
70
- outgoing: "many",
71
- incoming: "many",
72
- lifecycle: "persistent",
73
- aliases: ["related_to"],
74
- compatibilityVersion: 1,
75
- allowSelf: false
76
- },
77
- {
78
- kind: "discovered_from",
79
- direction: "directed",
80
- ordering: false,
81
- hierarchy: false,
82
- outgoing: "many",
83
- incoming: "many",
84
- lifecycle: "persistent",
85
- compatibilityVersion: 1,
86
- allowSelf: false
87
- },
88
- {
89
- kind: "incident_from",
90
- direction: "directed",
91
- ordering: false,
92
- hierarchy: false,
93
- outgoing: "many",
94
- incoming: "many",
95
- lifecycle: "persistent",
96
- compatibilityVersion: 1,
97
- allowSelf: false
98
- },
99
- {
100
- kind: "supersedes",
101
- direction: "directed",
102
- ordering: false,
103
- hierarchy: false,
104
- outgoing: "many",
105
- incoming: "many",
106
- lifecycle: "supersedable",
107
- compatibilityVersion: 1,
108
- allowSelf: false
109
- }
110
- ];
111
- function normalizeKind(kind) {
112
- return kind.trim().toLowerCase().replaceAll("-", "_");
113
- }
114
- function normalizeInverseKind(inverse) {
115
- if (inverse === void 0)
116
- return void 0;
117
- const normalized = normalizeKind(inverse);
118
- if (!/^[a-z][a-z0-9_]*$/.test(normalized))
119
- throw new TypeError(`Invalid inverse relationship kind: ${inverse}`);
120
- return normalized;
121
- }
122
- function freezeValue(value, visited = /* @__PURE__ */ new Set()) {
123
- if (value === null || typeof value !== "object")
124
- return value;
125
- if (visited.has(value))
126
- return value;
127
- visited.add(value);
128
- if (Array.isArray(value)) {
129
- for (const entry of value)
130
- freezeValue(entry, visited);
131
- return Object.freeze(value);
132
- }
133
- for (const entry of Object.values(value))
134
- freezeValue(entry, visited);
135
- return Object.freeze(value);
136
- }
137
- function assertRelationshipPrecedence(definition, kind) {
138
- if (definition.precedence !== void 0 && definition.precedence !== "source_before_target" && definition.precedence !== "target_before_source")
139
- throw new TypeError(`Invalid relationship precedence for ${kind}`);
140
- if (!definition.ordering && definition.precedence !== void 0)
141
- throw new TypeError(`Non-ordering relationship kind cannot declare precedence: ${kind}`);
142
- }
143
- function assertRelationshipHierarchyDirection(definition, kind) {
144
- if (definition.hierarchyDirection !== void 0 && definition.hierarchyDirection !== "source_parent" && definition.hierarchyDirection !== "target_parent")
145
- throw new TypeError(`Invalid relationship hierarchy direction for ${kind}`);
146
- if (!definition.hierarchy && definition.hierarchyDirection !== void 0)
147
- throw new TypeError(`Non-hierarchy relationship kind cannot declare hierarchy direction: ${kind}`);
148
- }
149
- var RelationshipKindRegistry = class {
150
- #definitions = /* @__PURE__ */ new Map();
151
- #aliases = /* @__PURE__ */ new Map();
152
- /** Create a registry initialized with the stable built-in ontology by default. */
153
- constructor(definitions = BUILTIN_RELATIONSHIP_KINDS) {
154
- for (const definition of definitions)
155
- this.register(definition);
156
- }
157
- /** Register one definition after validating its identifier, version, and aliases. */
158
- register(definition) {
159
- const kind = normalizeKind(definition.kind);
160
- if (!/^[a-z][a-z0-9_]*$/.test(kind))
161
- throw new TypeError(`Invalid relationship kind: ${definition.kind}`);
162
- if (!Number.isInteger(definition.compatibilityVersion) || definition.compatibilityVersion < 1)
163
- throw new TypeError(`Invalid compatibility version for ${kind}`);
164
- assertRelationshipPrecedence(definition, kind);
165
- assertRelationshipHierarchyDirection(definition, kind);
166
- if (this.#definitions.has(kind) || this.#aliases.has(kind))
167
- throw new TypeError(`Relationship kind already registered: ${kind}`);
168
- const inverse = normalizeInverseKind(definition.inverse);
169
- const aliases = [
170
- ...new Set((definition.aliases ?? []).map(normalizeKind))
171
- ].sort();
172
- for (const alias of aliases) {
173
- if (!/^[a-z][a-z0-9_]*$/.test(alias))
174
- throw new TypeError(`Invalid relationship alias: ${alias}`);
175
- if (alias === kind || this.#definitions.has(alias) || this.#aliases.has(alias))
176
- throw new TypeError(`Relationship alias already registered: ${alias}`);
177
- }
178
- const normalized = Object.freeze({
179
- ...definition,
180
- kind,
181
- inverse,
182
- aliases: Object.freeze(aliases),
183
- payloadSchema: definition.payloadSchema ? freezeValue(structuredClone(definition.payloadSchema)) : void 0
184
- });
185
- this.#definitions.set(kind, normalized);
186
- for (const alias of aliases)
187
- this.#aliases.set(alias, kind);
188
- return this;
189
- }
190
- /** Resolve a canonical kind or compatibility alias. */
191
- resolve(kind) {
192
- if (typeof kind !== "string")
193
- return void 0;
194
- const normalized = normalizeKind(kind);
195
- return this.#definitions.get(this.#aliases.get(normalized) ?? normalized);
196
- }
197
- /** Resolve a kind or throw a precise error suitable for command adapters. */
198
- require(kind) {
199
- const definition = this.resolve(kind);
200
- if (!definition)
201
- throw new TypeError(`Unknown relationship kind: ${kind}`);
202
- return definition;
203
- }
204
- /** Return a deterministic immutable registry snapshot. */
205
- list() {
206
- return Object.freeze([...this.#definitions.values()].sort((left, right) => left.kind.localeCompare(right.kind)));
207
- }
208
- };
209
- function createRelationshipKindRegistry() {
210
- return new RelationshipKindRegistry();
211
- }
212
- var defaultRegistry = createRelationshipKindRegistry();
213
- function isOrderingRelationshipKind(kind, registry = defaultRegistry) {
214
- return registry.resolve(kind)?.ordering === true;
215
- }
216
- function compareEdges(left, right) {
217
- return left.source.localeCompare(right.source) || left.target.localeCompare(right.target) || left.kind.localeCompare(right.kind);
218
- }
219
- function normalizeRelationshipEdge(candidate, nodes, registry) {
220
- const source = typeof candidate.source === "string" ? candidate.source.trim() : "";
221
- const target = typeof candidate.target === "string" ? candidate.target.trim() : "";
222
- const definition = registry.require(candidate.kind);
223
- if (!nodes.has(source) || !nodes.has(target))
224
- throw new TypeError(`Relationship endpoint not found: ${source} -> ${target}`);
225
- if (source === target && !definition.allowSelf)
226
- throw new TypeError(`Self relationship is not allowed for ${definition.kind}`);
227
- const edge = Object.freeze({
228
- ...candidate,
229
- source,
230
- target,
231
- kind: definition.kind
232
- });
233
- const endpoints = definition.direction === "undirected" ? [source, target].sort().join("\0") : `${source}\0${target}`;
234
- return { edge, identity: `${definition.kind}\0${endpoints}` };
235
- }
236
- function appendIndexedEdge(index, node, edge) {
237
- const indexed = index.get(node);
238
- if (indexed)
239
- indexed.push(edge);
240
- else
241
- index.set(node, [edge]);
242
- }
243
- function normalizeNodeId(value) {
244
- return typeof value === "string" ? value.trim() : "";
245
- }
246
- function resolveExistingNodeId(value, ids) {
247
- const id = normalizeNodeId(value);
248
- return id && ids.has(id) ? id : void 0;
249
- }
250
- function reconstructPath(source, target, parents) {
251
- const path = [target];
252
- let cursor = target;
253
- while (cursor !== source) {
254
- cursor = parents.get(cursor);
255
- path.push(cursor);
256
- }
257
- return path.reverse();
258
- }
259
- var RelationshipGraph = class _RelationshipGraph {
260
- #registry;
261
- #nodes;
262
- #nodeSnapshot;
263
- #edges;
264
- #outgoing = /* @__PURE__ */ new Map();
265
- #incoming = /* @__PURE__ */ new Map();
266
- /** Validate and index nodes and edges without reading tracker storage. */
267
- constructor(nodes, edges, registry = defaultRegistry) {
268
- this.#registry = registry;
269
- this.#nodes = new Set([...nodes].filter((id) => typeof id === "string").map((id) => id.trim()).filter(Boolean));
270
- this.#nodeSnapshot = Object.freeze([...this.#nodes].sort());
271
- const deduped = /* @__PURE__ */ new Map();
272
- for (const candidate of edges) {
273
- const { edge, identity } = normalizeRelationshipEdge(candidate, this.#nodes, registry);
274
- deduped.set(identity, edge);
275
- }
276
- this.#edges = Object.freeze([...deduped.values()].sort(compareEdges));
277
- for (const edge of this.#edges) {
278
- appendIndexedEdge(this.#outgoing, edge.source, edge);
279
- appendIndexedEdge(this.#incoming, edge.target, edge);
280
- if (registry.require(edge.kind).direction === "undirected") {
281
- appendIndexedEdge(this.#outgoing, edge.target, edge);
282
- appendIndexedEdge(this.#incoming, edge.source, edge);
283
- }
284
- }
285
- }
286
- /** Build the graph directly from item metadata, including hierarchy and legacy blocker fields. */
287
- static fromItems(items, registry = defaultRegistry) {
288
- const ids = new Set(items.map((item) => normalizeNodeId(item.id)).filter(Boolean));
289
- const edges = [];
290
- for (const item of items) {
291
- const source = normalizeNodeId(item.id);
292
- if (!source)
293
- continue;
294
- const parent = resolveExistingNodeId(item.parent, ids);
295
- if (parent)
296
- edges.push({ source, target: parent, kind: "parent" });
297
- const blockedBy = resolveExistingNodeId(item.blocked_by, ids);
298
- if (blockedBy)
299
- edges.push({
300
- source,
301
- target: blockedBy,
302
- kind: "blocked_by"
303
- });
304
- for (const dependency of item.dependencies ?? []) {
305
- const dependencyId = resolveExistingNodeId(dependency.id, ids);
306
- if (dependencyId && registry.resolve(dependency.kind))
307
- edges.push({
308
- source,
309
- target: dependencyId,
310
- kind: dependency.kind,
311
- createdAt: dependency.created_at,
312
- author: dependency.author
313
- });
314
- }
315
- }
316
- return new _RelationshipGraph(ids, edges, registry);
317
- }
318
- /** Return the deterministic immutable edge snapshot. */
319
- edges() {
320
- return this.#edges;
321
- }
322
- /** Return the deterministic immutable edges incident to one node. */
323
- incidentEdges(id) {
324
- this.#assertNode(id);
325
- const outgoing = this.#outgoing.get(id) ?? [];
326
- const incoming = this.#incoming.get(id) ?? [];
327
- if (outgoing.length === 0)
328
- return Object.freeze([...incoming]);
329
- if (incoming.length === 0)
330
- return Object.freeze([...outgoing]);
331
- const edges = [];
332
- let outgoingIndex = 0;
333
- let incomingIndex = 0;
334
- while (outgoingIndex < outgoing.length || incomingIndex < incoming.length) {
335
- const outgoingEdge = outgoing[outgoingIndex];
336
- const incomingEdge = incoming[incomingIndex];
337
- const edge = outgoingEdge === void 0 ? incomingEdge : incomingEdge === void 0 || compareEdges(outgoingEdge, incomingEdge) <= 0 ? outgoingEdge : incomingEdge;
338
- if (edges.at(-1) !== edge)
339
- edges.push(edge);
340
- if (outgoingEdge === edge)
341
- outgoingIndex += 1;
342
- if (incomingEdge === edge)
343
- incomingIndex += 1;
344
- }
345
- return Object.freeze(edges);
346
- }
347
- /** Return the deterministic immutable node snapshot. */
348
- nodes() {
349
- return this.#nodeSnapshot;
350
- }
351
- /** Report whether an identifier names an indexed node. */
352
- hasNode(id) {
353
- return this.#nodes.has(id);
354
- }
355
- /** Return the registry that interprets this graph's relationship kinds. */
356
- registry() {
357
- return this.#registry;
358
- }
359
- #assertNode(id) {
360
- if (!this.#nodes.has(id))
361
- throw new TypeError(`Relationship node not found: ${id}`);
362
- }
363
- #matchesKinds(edge, kinds) {
364
- if (!kinds)
365
- return true;
366
- const definition = this.#registry.require(edge.kind);
367
- return kinds.has(edge.kind) || definition.inverse !== void 0 && kinds.has(definition.inverse);
368
- }
369
- #neighbors(id, direction, kinds) {
370
- const candidates = [
371
- ...direction === "incoming" ? [] : this.#outgoing.get(id) ?? [],
372
- ...direction === "outgoing" ? [] : this.#incoming.get(id) ?? []
373
- ];
374
- return [...new Set(candidates)].filter((edge) => this.#matchesKinds(edge, kinds)).map((edge) => ({
375
- id: edge.source === id ? edge.target : edge.source,
376
- edge
377
- })).sort((left, right) => left.id.localeCompare(right.id) || compareEdges(left.edge, right.edge));
378
- }
379
- /** Return one-hop adjacent node identifiers. */
380
- adjacency(id, options = {}) {
381
- this.#assertNode(id);
382
- options.signal?.throwIfAborted();
383
- const kinds = options.kinds ? new Set(options.kinds.map((kind) => this.#registry.require(kind).kind)) : void 0;
384
- const rows = this.#neighbors(id, options.direction ?? "outgoing", kinds);
385
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
386
- const uniqueNeighbors = [...new Set(rows.map((row) => row.id))];
387
- const value = uniqueNeighbors.slice(0, limit);
388
- return {
389
- value,
390
- meta: {
391
- visitedNodes: 1,
392
- inspectedEdges: rows.length,
393
- truncated: value.length < uniqueNeighbors.length,
394
- nextCursor: value.at(-1)
395
- }
396
- };
397
- }
398
- /** Return deterministic one-hop neighbor rows paired with each connecting edge. */
399
- neighborEdges(id, options = {}) {
400
- this.#assertNode(id);
401
- options.signal?.throwIfAborted();
402
- const kinds = options.kinds ? new Set(options.kinds.map((kind) => this.#registry.require(kind).kind)) : void 0;
403
- const rows = this.#neighbors(id, options.direction ?? "outgoing", kinds);
404
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
405
- const value = rows.slice(0, limit);
406
- return {
407
- value,
408
- meta: {
409
- visitedNodes: 1,
410
- inspectedEdges: rows.length,
411
- truncated: value.length < rows.length,
412
- nextCursor: value.at(-1)?.id
413
- }
414
- };
415
- }
416
- /** Return bounded transitive closure in breadth-first discovery order. */
417
- closure(id, options = {}) {
418
- this.#assertNode(id);
419
- const kinds = options.kinds ? new Set(options.kinds.map((kind) => this.#registry.require(kind).kind)) : void 0;
420
- const direction = options.direction ?? "outgoing";
421
- const limit = options.limit ?? Number.POSITIVE_INFINITY;
422
- const maxDepth = options.maxDepth ?? Number.POSITIVE_INFINITY;
423
- const seen = /* @__PURE__ */ new Set([id]);
424
- const value = [];
425
- const queue = [{ id, depth: 0 }];
426
- let visitedNodes = 0;
427
- let inspectedEdges = 0;
428
- let truncated = false;
429
- traversal: for (let index = 0; index < queue.length; index += 1) {
430
- options.signal?.throwIfAborted();
431
- const current = queue[index];
432
- visitedNodes += 1;
433
- const neighbors = this.#neighbors(current.id, direction, kinds);
434
- inspectedEdges += neighbors.length;
435
- if (current.depth >= maxDepth) {
436
- if (neighbors.some((neighbor) => !seen.has(neighbor.id)))
437
- truncated = true;
438
- continue;
439
- }
440
- for (const neighbor of neighbors) {
441
- if (seen.has(neighbor.id))
442
- continue;
443
- if (value.length >= limit) {
444
- truncated = true;
445
- break traversal;
446
- }
447
- seen.add(neighbor.id);
448
- value.push(neighbor.id);
449
- queue.push({ id: neighbor.id, depth: current.depth + 1 });
450
- }
451
- }
452
- return {
453
- value,
454
- meta: {
455
- visitedNodes,
456
- inspectedEdges,
457
- truncated,
458
- nextCursor: value.at(-1)
459
- }
460
- };
461
- }
462
- /** Return a deterministic shortest path, or an empty array when disconnected. */
463
- shortestPath(source, target, options = {}) {
464
- this.#assertNode(source);
465
- this.#assertNode(target);
466
- if (source === target)
467
- return {
468
- value: [source],
469
- meta: { visitedNodes: 1, inspectedEdges: 0, truncated: false }
470
- };
471
- const kinds = options.kinds ? new Set(options.kinds.map((kind) => this.#registry.require(kind).kind)) : void 0;
472
- const direction = options.direction ?? "outgoing";
473
- const maxDepth = options.maxDepth ?? Number.POSITIVE_INFINITY;
474
- const queue = [{ id: source, depth: 0 }];
475
- const parents = /* @__PURE__ */ new Map();
476
- const seen = /* @__PURE__ */ new Set([source]);
477
- let visitedNodes = 0;
478
- let inspectedEdges = 0;
479
- let truncated = false;
480
- for (let index = 0; index < queue.length; index += 1) {
481
- options.signal?.throwIfAborted();
482
- const current = queue[index];
483
- visitedNodes += 1;
484
- const neighbors = this.#neighbors(current.id, direction, kinds);
485
- inspectedEdges += neighbors.length;
486
- if (current.depth >= maxDepth) {
487
- if (neighbors.some((neighbor) => !seen.has(neighbor.id)))
488
- truncated = true;
489
- continue;
490
- }
491
- for (const neighbor of neighbors) {
492
- if (seen.has(neighbor.id))
493
- continue;
494
- parents.set(neighbor.id, current.id);
495
- if (neighbor.id === target)
496
- return {
497
- value: reconstructPath(source, target, parents),
498
- meta: { visitedNodes, inspectedEdges, truncated: false }
499
- };
500
- seen.add(neighbor.id);
501
- queue.push({ id: neighbor.id, depth: current.depth + 1 });
502
- }
503
- }
504
- return {
505
- value: [],
506
- meta: { visitedNodes, inspectedEdges, truncated }
507
- };
508
- }
509
- /** Return the induced subgraph over a bounded closure including the root. */
510
- subgraph(id, options = {}) {
511
- const closure = this.closure(id, options);
512
- const nodes = [id, ...closure.value].sort();
513
- const included = new Set(nodes);
514
- const kinds = options.kinds ? new Set(options.kinds.map((kind) => this.#registry.require(kind).kind)) : void 0;
515
- const edges = /* @__PURE__ */ new Set();
516
- for (const node of nodes) {
517
- for (const edge of this.#outgoing.get(node) ?? []) {
518
- if (included.has(edge.source) && included.has(edge.target) && this.#matchesKinds(edge, kinds))
519
- edges.add(edge);
520
- }
521
- }
522
- return {
523
- value: {
524
- nodes,
525
- edges: [...edges].sort(compareEdges)
526
- },
527
- meta: closure.meta
528
- };
529
- }
530
- };
531
- function dependencyToRelationship(source, dependency, registry = defaultRegistry) {
532
- return {
533
- source,
534
- target: dependency.id,
535
- kind: registry.require(dependency.kind).kind,
536
- createdAt: dependency.created_at,
537
- author: dependency.author
538
- };
539
- }
540
-
541
- // dist/sdk/graph/assembly.js
542
- !(function() {
543
- try {
544
- var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
545
- n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6d8ff34a-789b-5b49-8304-9a7d53f8365d");
546
- } catch (e2) {
547
- }
548
- })();
549
- function normalizeDependencyReferenceTarget(target) {
550
- if (typeof target !== "string")
551
- return void 0;
552
- const normalized = target.trim();
553
- if (!normalized || ["none", "null", "n/a", "na"].includes(normalized.toLowerCase()))
554
- return void 0;
555
- return normalized;
556
- }
557
- function normalizeDependencyGraphTarget(target) {
558
- const normalized = normalizeDependencyReferenceTarget(target);
559
- return normalized?.toLowerCase() === "no-active-blocker" ? void 0 : normalized;
560
- }
561
- function collectDanglingDependencyReferences(items, isTerminal = (status) => status === "closed" || status === "canceled") {
562
- const safeItems = items.filter((item) => typeof item?.id === "string" && item.id.trim().length > 0);
563
- const knownIds = new Set(safeItems.map((item) => item.id.trim().toLowerCase()));
564
- const rows = /* @__PURE__ */ new Map();
565
- const addReference = (item, target, kind, source) => {
566
- const normalized = normalizeDependencyReferenceTarget(target);
567
- if (!normalized || knownIds.has(normalized.toLowerCase())) {
568
- return;
569
- }
570
- const row = {
571
- holder_id: item.id.trim(),
572
- target_id: normalized,
573
- kind,
574
- source,
575
- holder_status: item.status,
576
- legacy_terminal: isTerminal(item.status),
577
- no_active_blocker_sentinel: normalized.toLowerCase() === "no-active-blocker"
578
- };
579
- rows.set(`${row.holder_id}::${row.target_id}::${row.kind}::${row.source}`, row);
580
- };
581
- for (const item of safeItems) {
582
- addReference(item, item.parent, "parent", "parent");
583
- addReference(item, item.blocked_by, "blocked_by", "blocked_by");
584
- for (const dependency of item.dependencies ?? []) {
585
- if (typeof dependency !== "object" || dependency === null) {
586
- continue;
587
- }
588
- const legacyDependency = dependency;
589
- addReference(item, legacyDependency.id, typeof legacyDependency.kind === "string" ? legacyDependency.kind : "related", "dependency");
590
- }
591
- }
592
- const sorted = [...rows.values()].sort((left, right) => left.holder_id.localeCompare(right.holder_id) || left.target_id.localeCompare(right.target_id) || left.kind.localeCompare(right.kind) || left.source.localeCompare(right.source));
593
- const legacyTerminal = sorted.filter((row) => row.legacy_terminal);
594
- return {
595
- active: sorted.filter((row) => !row.legacy_terminal),
596
- legacy_terminal: legacyTerminal,
597
- no_active_blocker_sentinels: sorted.filter((row) => row.no_active_blocker_sentinel)
598
- };
599
- }
600
- function collectMissingDependencyTargetIds(dangling) {
601
- const targets = /* @__PURE__ */ new Map();
602
- for (const reference of [...dangling.active, ...dangling.legacy_terminal]) {
603
- if (reference.no_active_blocker_sentinel)
604
- continue;
605
- const target = reference.target_id.trim();
606
- const key = target.toLowerCase();
607
- if (!targets.has(key))
608
- targets.set(key, target);
609
- }
610
- return [...targets.values()].sort((left, right) => left.localeCompare(right));
611
- }
612
- function assembleWorkspaceRelationshipGraph(items, isTerminal, registry) {
613
- const safeItems = items.filter((item) => typeof item?.id === "string" && item.id.trim().length > 0);
614
- const canonicalIds = new Map(safeItems.map((item) => [item.id.trim().toLowerCase(), item.id.trim()]));
615
- const dangling = collectDanglingDependencyReferences(safeItems, isTerminal);
616
- const missingIds = collectMissingDependencyTargetIds(dangling);
617
- for (const id of missingIds)
618
- canonicalIds.set(id.toLowerCase(), id);
619
- const graphItems = safeItems.map((item) => {
620
- const parent = normalizeDependencyGraphTarget(item.parent);
621
- const blocker = normalizeDependencyGraphTarget(item.blocked_by);
622
- const dependencies = (item.dependencies ?? []).flatMap((rawDependency) => {
623
- if (typeof rawDependency !== "object" || rawDependency === null)
624
- return [];
625
- const dependency = rawDependency;
626
- const target = normalizeDependencyGraphTarget(dependency.id);
627
- if (!target)
628
- return [];
629
- return [
630
- {
631
- id: canonicalIds.get(target.toLowerCase()),
632
- kind: typeof dependency.kind === "string" ? dependency.kind : "related"
633
- }
634
- ];
635
- });
636
- return {
637
- id: item.id.trim(),
638
- ...parent ? { parent: canonicalIds.get(parent.toLowerCase()) } : {},
639
- ...blocker ? { blocked_by: canonicalIds.get(blocker.toLowerCase()) } : {},
640
- dependencies
641
- };
642
- });
643
- return {
644
- graph: RelationshipGraph.fromItems([...graphItems, ...missingIds.map((id) => ({ id }))], registry),
645
- details: [
646
- ...safeItems.map((item) => ({
647
- id: item.id.trim(),
648
- title: item.title,
649
- status: item.status
650
- })),
651
- ...missingIds.map((id) => ({
652
- id,
653
- title: `[missing] ${id}`,
654
- status: "missing"
655
- }))
656
- ],
657
- missingIdSet: new Set(missingIds.map((id) => id.toLowerCase())),
658
- dangling
659
- };
660
- }
661
-
662
- export {
663
- RelationshipKindRegistry,
664
- createRelationshipKindRegistry,
665
- isOrderingRelationshipKind,
666
- RelationshipGraph,
667
- dependencyToRelationship,
668
- collectDanglingDependencyReferences,
669
- collectMissingDependencyTargetIds,
670
- assembleWorkspaceRelationshipGraph
671
- };
672
- //# sourceMappingURL=chunk-3CUQZNQ6.js.map