@shepai/cli 1.174.0-pr531.0f666b7 → 1.174.0-pr531.f30e316

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 (187) hide show
  1. package/dist/packages/core/src/application/use-cases/features/create/create-feature-from-remote.use-case.d.ts.map +1 -1
  2. package/dist/packages/core/src/application/use-cases/features/create/create-feature-from-remote.use-case.js +4 -1
  3. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.d.ts +3 -1
  4. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.d.ts.map +1 -1
  5. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.js +22 -4
  6. package/dist/packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.d.ts +1 -1
  7. package/dist/packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.d.ts.map +1 -1
  8. package/dist/packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.js +3 -2
  9. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/repository.mapper.js +1 -1
  10. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +10 -0
  11. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  12. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +32 -2
  13. package/dist/tsconfig.build.tsbuildinfo +1 -1
  14. package/package.json +1 -1
  15. package/web/.next/BUILD_ID +1 -1
  16. package/web/.next/build-manifest.json +2 -2
  17. package/web/.next/fallback-build-manifest.json +2 -2
  18. package/web/.next/prerender-manifest.json +3 -3
  19. package/web/.next/required-server-files.js +1 -1
  20. package/web/.next/required-server-files.json +1 -1
  21. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +29 -29
  22. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  23. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  24. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +27 -27
  25. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  26. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  27. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +30 -30
  28. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  29. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  30. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +38 -38
  31. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  32. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  33. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +38 -38
  34. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  35. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  36. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  37. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  38. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  39. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  40. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  41. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  42. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +27 -27
  43. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  44. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  45. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +30 -30
  46. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  47. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  48. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +38 -38
  49. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  50. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  51. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +38 -38
  52. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  53. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  54. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +27 -27
  55. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  56. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  57. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +28 -28
  58. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  59. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  60. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +28 -28
  61. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  62. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  63. package/web/.next/server/app/_global-error.html +2 -2
  64. package/web/.next/server/app/_global-error.rsc +1 -1
  65. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  66. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  67. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  68. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  69. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  70. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +6 -6
  71. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  72. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  73. package/web/.next/server/app/features/page/server-reference-manifest.json +6 -6
  74. package/web/.next/server/app/features/page.js.nft.json +1 -1
  75. package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
  76. package/web/.next/server/app/settings/page/server-reference-manifest.json +9 -9
  77. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  78. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  79. package/web/.next/server/app/skills/page/server-reference-manifest.json +13 -13
  80. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  81. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  82. package/web/.next/server/app/tools/page/server-reference-manifest.json +11 -11
  83. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  84. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  85. package/web/.next/server/app/version/page/server-reference-manifest.json +6 -6
  86. package/web/.next/server/app/version/page.js.nft.json +1 -1
  87. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  88. package/web/.next/server/chunks/[root-of-the-server]__2b71641f._.js +1 -1
  89. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  90. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js +1 -1
  91. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_ad0071c9.js.map +1 -1
  92. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js +1 -1
  93. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_90d98b2b.js.map +1 -1
  94. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js +1 -1
  95. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_d3828105.js.map +1 -1
  96. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  97. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  98. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
  99. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  100. package/web/.next/server/chunks/ssr/[root-of-the-server]__1cd4327c._.js +1 -1
  101. package/web/.next/server/chunks/ssr/[root-of-the-server]__1cd4327c._.js.map +1 -1
  102. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +1 -1
  103. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +1 -1
  104. package/web/.next/server/chunks/ssr/[root-of-the-server]__357d99f9._.js +1 -1
  105. package/web/.next/server/chunks/ssr/[root-of-the-server]__51ec77a8._.js +1 -1
  106. package/web/.next/server/chunks/ssr/[root-of-the-server]__51ec77a8._.js.map +1 -1
  107. package/web/.next/server/chunks/ssr/[root-of-the-server]__540c615f._.js +2 -2
  108. package/web/.next/server/chunks/ssr/[root-of-the-server]__66047a1b._.js +1 -1
  109. package/web/.next/server/chunks/ssr/[root-of-the-server]__66047a1b._.js.map +1 -1
  110. package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js +1 -1
  111. package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js.map +1 -1
  112. package/web/.next/server/chunks/ssr/[root-of-the-server]__a932cd3a._.js +1 -1
  113. package/web/.next/server/chunks/ssr/[root-of-the-server]__a932cd3a._.js.map +1 -1
  114. package/web/.next/server/chunks/ssr/[root-of-the-server]__aa72e794._.js +1 -1
  115. package/web/.next/server/chunks/ssr/[root-of-the-server]__aa72e794._.js.map +1 -1
  116. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +1 -1
  117. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +1 -1
  118. package/web/.next/server/chunks/ssr/_05c23ad9._.js +1 -1
  119. package/web/.next/server/chunks/ssr/_05c23ad9._.js.map +1 -1
  120. package/web/.next/server/chunks/ssr/_16eb4fec._.js +1 -1
  121. package/web/.next/server/chunks/ssr/_16eb4fec._.js.map +1 -1
  122. package/web/.next/server/chunks/ssr/_40647de5._.js +3 -0
  123. package/web/.next/server/chunks/ssr/{_f080a56e._.js.map → _40647de5._.js.map} +1 -1
  124. package/web/.next/server/chunks/ssr/{_1c627e53._.js → _407472e8._.js} +2 -2
  125. package/web/.next/server/chunks/ssr/{_1c627e53._.js.map → _407472e8._.js.map} +1 -1
  126. package/web/.next/server/chunks/ssr/_4cbb7f95._.js +1 -1
  127. package/web/.next/server/chunks/ssr/_4cbb7f95._.js.map +1 -1
  128. package/web/.next/server/chunks/ssr/{_398f5019._.js → _4d3f77a5._.js} +2 -2
  129. package/web/.next/server/chunks/ssr/{_398f5019._.js.map → _4d3f77a5._.js.map} +1 -1
  130. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  131. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  132. package/web/.next/server/chunks/ssr/_6abfa39e._.js +1 -1
  133. package/web/.next/server/chunks/ssr/_6abfa39e._.js.map +1 -1
  134. package/web/.next/server/chunks/ssr/_f4d222d6._.js +1 -1
  135. package/web/.next/server/chunks/ssr/_f8c55130._.js +1 -1
  136. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  137. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  138. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
  139. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js.map +1 -1
  140. package/web/.next/server/chunks/ssr/src_presentation_web_17d39233._.js +1 -1
  141. package/web/.next/server/chunks/ssr/src_presentation_web_17d39233._.js.map +1 -1
  142. package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js +2 -2
  143. package/web/.next/server/chunks/ssr/src_presentation_web_54b02639._.js.map +1 -1
  144. package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js +2 -2
  145. package/web/.next/server/chunks/ssr/src_presentation_web_7b7b9e3b._.js.map +1 -1
  146. package/web/.next/server/chunks/ssr/src_presentation_web_807cba76._.js +1 -1
  147. package/web/.next/server/chunks/ssr/src_presentation_web_807cba76._.js.map +1 -1
  148. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js +1 -1
  149. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_90b5e66e.js.map +1 -1
  150. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js +1 -1
  151. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_skills_page_actions_4ce30db7.js.map +1 -1
  152. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js +1 -1
  153. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_tools_page_actions_e4032193.js.map +1 -1
  154. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +1 -1
  155. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  156. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  157. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  158. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  159. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
  160. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
  161. package/web/.next/server/chunks/ssr/src_presentation_web_e1cd1869._.js +1 -1
  162. package/web/.next/server/chunks/ssr/src_presentation_web_e1cd1869._.js.map +1 -1
  163. package/web/.next/server/chunks/ssr/src_presentation_web_e3a30e30._.js +1 -1
  164. package/web/.next/server/chunks/ssr/src_presentation_web_e3a30e30._.js.map +1 -1
  165. package/web/.next/server/pages/500.html +2 -2
  166. package/web/.next/server/server-reference-manifest.js +1 -1
  167. package/web/.next/server/server-reference-manifest.json +50 -50
  168. package/web/.next/static/chunks/{041bbd573f24c747.js → 238e98dc18173f3e.js} +1 -1
  169. package/web/.next/static/chunks/{6adf506943611449.js → 37a2c7d9f7ed4c70.js} +1 -1
  170. package/web/.next/static/chunks/{79b8efa054660be8.js → 5131ca56e7dededb.js} +1 -1
  171. package/web/.next/static/chunks/{dbaa2ef826fd65d6.js → 5b5dc670cdfc2da7.js} +1 -1
  172. package/web/.next/static/chunks/{273d92d4c2d7785c.js → 6eceaa68ec0ae58e.js} +1 -1
  173. package/web/.next/static/chunks/{53fc463b54ef2b4b.js → 72f2804297c88857.js} +2 -2
  174. package/web/.next/static/chunks/{b88dd71478d03b6a.js → 91faf432af42e357.js} +1 -1
  175. package/web/.next/static/chunks/{ae65839330ff1113.js → 993dbb55a8050809.js} +1 -1
  176. package/web/.next/static/chunks/ae749d9ceca4976d.js +1 -0
  177. package/web/.next/static/chunks/{7e50572eaeede7f0.js → d5d0fc38d308adcf.js} +2 -2
  178. package/web/.next/static/chunks/{9f5327851ad07bdf.js → d8ebde84eba598d8.js} +1 -1
  179. package/web/.next/static/chunks/{659ee5c3bcd5908a.js → d95dde07cd78a76f.js} +1 -1
  180. package/web/.next/static/chunks/e5c42a95cf9d76fd.js +1 -0
  181. package/web/.next/static/chunks/{6129f01524593835.js → eabfae7c0a839c29.js} +1 -1
  182. package/web/.next/server/chunks/ssr/_f080a56e._.js +0 -3
  183. package/web/.next/static/chunks/88192bc55f93b89e.js +0 -1
  184. package/web/.next/static/chunks/ad7590436eef8a9e.js +0 -1
  185. /package/web/.next/static/{UWgKy2y_bjIYkCFOMl8Am → Snx_Eir98y9zinqpnZeHB}/_buildManifest.js +0 -0
  186. /package/web/.next/static/{UWgKy2y_bjIYkCFOMl8Am → Snx_Eir98y9zinqpnZeHB}/_clientMiddlewareManifest.json +0 -0
  187. /package/web/.next/static/{UWgKy2y_bjIYkCFOMl8Am → Snx_Eir98y9zinqpnZeHB}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"create-feature-from-remote.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/use-cases/features/create/create-feature-from-remote.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACZ,MAAM,uEAAuE,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,yDAAyD,CAAC;AACxG,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAE1E,MAAM,WAAW,4BAA4B;IAC3C,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,uCAAuC;IACvC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,kCAAkC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;IAG1B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,qBACa,8BAA8B;IAGvC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAFpB,aAAa,EAAE,6BAA6B,EAE5C,oBAAoB,EAAE,oBAAoB;IAG7D;;;OAGG;IACG,OAAO,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4BhF;;;OAGG;IACG,YAAY,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA4BpF;;;OAGG;IACG,kBAAkB,CACtB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,4BAA4B,EACnC,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC;CAuB1D"}
1
+ {"version":3,"file":"create-feature-from-remote.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/use-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;AAED,qBACa,8BAA8B;IAGvC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAFpB,aAAa,EAAE,6BAA6B,EAE5C,oBAAoB,EAAE,oBAAoB;IAG7D;;;OAGG;IACG,OAAO,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,mBAAmB,CAAC;IA4BhF;;;OAGG;IACG,YAAY,CAAC,KAAK,EAAE,4BAA4B,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA4BpF;;;OAGG;IACG,kBAAkB,CACtB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,4BAA4B,EACnC,WAAW,EAAE,OAAO,GACnB,OAAO,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC;CA0B1D"}
@@ -98,7 +98,10 @@ let CreateFeatureFromRemoteUseCase = class CreateFeatureFromRemoteUseCase {
98
98
  async initializeAndSpawn(feature, input, shouldSpawn) {
99
99
  return this.createFeatureUseCase.initializeAndSpawn(feature, {
100
100
  userInput: input.userInput,
101
- repositoryPath: '', // Will be resolved from feature.repositoryId
101
+ // CreateFeatureUseCase.initializeAndSpawn reads the effective repo path
102
+ // from feature.repositoryPath, but the interface still requires this
103
+ // field. Pass the feature's repositoryPath for consistency.
104
+ repositoryPath: feature.repositoryPath,
102
105
  approvalGates: input.approvalGates,
103
106
  push: input.push,
104
107
  openPr: input.openPr,
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import type { Repository } from '../../../domain/generated/output.js';
9
9
  import type { IGitHubRepositoryService, CloneOptions, ForkOptions } from '../../ports/output/services/github-repository-service.interface.js';
10
+ import type { IGitPrService } from '../../ports/output/services/git-pr-service.interface.js';
10
11
  import type { IRepositoryRepository } from '../../ports/output/repositories/repository-repository.interface.js';
11
12
  import { AddRepositoryUseCase } from './add-repository.use-case.js';
12
13
  export interface ImportGitHubRepositoryInput {
@@ -25,7 +26,8 @@ export declare class ImportGitHubRepositoryUseCase {
25
26
  private readonly gitHubService;
26
27
  private readonly repositoryRepo;
27
28
  private readonly addRepositoryUseCase;
28
- constructor(gitHubService: IGitHubRepositoryService, repositoryRepo: IRepositoryRepository, addRepositoryUseCase: AddRepositoryUseCase);
29
+ private readonly gitPrService;
30
+ constructor(gitHubService: IGitHubRepositoryService, repositoryRepo: IRepositoryRepository, addRepositoryUseCase: AddRepositoryUseCase, gitPrService: IGitPrService);
29
31
  execute(input: ImportGitHubRepositoryInput): Promise<Repository>;
30
32
  /**
31
33
  * Direct clone path — user has push access to the repository.
@@ -1 +1 @@
1
- {"version":3,"file":"import-github-repository.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/repositories/import-github-repository.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACZ,MAAM,oEAAoE,CAAC;AAC5E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAChH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,WAAW,2BAA2B;IAC1C,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAUD,qBACa,6BAA6B;IAGtC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAE/B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAJpB,aAAa,EAAE,wBAAwB,EAEvC,cAAc,EAAE,qBAAqB,EAErC,oBAAoB,EAAE,oBAAoB;IAGvD,OAAO,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC;IAgCtE;;OAEG;YACW,WAAW;IAsBzB;;OAEG;YACW,YAAY;IAgD1B,OAAO,CAAC,kBAAkB;CAW3B"}
1
+ {"version":3,"file":"import-github-repository.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/repositories/import-github-repository.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,EACV,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACZ,MAAM,oEAAoE,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAC;AAC7F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAChH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAKpE,MAAM,WAAW,2BAA2B;IAC1C,kDAAkD;IAClD,GAAG,EAAE,MAAM,CAAC;IACZ,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,2DAA2D;IAC3D,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAUD,qBACa,6BAA6B;IAGtC,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAE/B,OAAO,CAAC,QAAQ,CAAC,oBAAoB;IAErC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBANZ,aAAa,EAAE,wBAAwB,EAEvC,cAAc,EAAE,qBAAqB,EAErC,oBAAoB,EAAE,oBAAoB,EAE1C,YAAY,EAAE,aAAa;IAGxC,OAAO,CAAC,KAAK,EAAE,2BAA2B,GAAG,OAAO,CAAC,UAAU,CAAC;IAgCtE;;OAEG;YACW,WAAW;IAsBzB;;OAEG;YACW,YAAY;IAqD1B,OAAO,CAAC,kBAAkB;CAW3B"}
@@ -21,6 +21,8 @@ import { injectable, inject } from 'tsyringe';
21
21
  import { homedir } from 'node:os';
22
22
  import { join } from 'node:path';
23
23
  import { AddRepositoryUseCase } from './add-repository.use-case.js';
24
+ /** Name of the git remote used to track the original upstream repo of a fork. */
25
+ const UPSTREAM_REMOTE_NAME = 'upstream';
24
26
  /**
25
27
  * Normalizes a GitHub remote URL for storage and duplicate detection.
26
28
  * Lowercases and strips trailing .git suffix.
@@ -32,10 +34,12 @@ let ImportGitHubRepositoryUseCase = class ImportGitHubRepositoryUseCase {
32
34
  gitHubService;
33
35
  repositoryRepo;
34
36
  addRepositoryUseCase;
35
- constructor(gitHubService, repositoryRepo, addRepositoryUseCase) {
37
+ gitPrService;
38
+ constructor(gitHubService, repositoryRepo, addRepositoryUseCase, gitPrService) {
36
39
  this.gitHubService = gitHubService;
37
40
  this.repositoryRepo = repositoryRepo;
38
41
  this.addRepositoryUseCase = addRepositoryUseCase;
42
+ this.gitPrService = gitPrService;
39
43
  }
40
44
  async execute(input) {
41
45
  // 1. Validate URL — throws GitHubUrlParseError for invalid formats
@@ -91,6 +95,10 @@ let ImportGitHubRepositoryUseCase = class ImportGitHubRepositoryUseCase {
91
95
  // Clone the fork
92
96
  const destination = this.resolveDestination(input, repoName);
93
97
  await this.gitHubService.cloneRepository(forkResult.nameWithOwner, destination, input.cloneOptions);
98
+ // Configure the upstream remote so users can `git fetch upstream` / sync
99
+ // with the original repo. Without this, the fork has no knowledge of its
100
+ // upstream — breaking PR workflows that rely on upstream as the merge base.
101
+ await this.gitPrService.addRemote(destination, UPSTREAM_REMOTE_NAME, normalizedOriginalUrl);
94
102
  // Register the cloned fork
95
103
  const repository = await this.addRepositoryUseCase.execute({
96
104
  path: destination,
@@ -111,13 +119,13 @@ let ImportGitHubRepositoryUseCase = class ImportGitHubRepositoryUseCase {
111
119
  }
112
120
  resolveDestination(input, repoName) {
113
121
  if (input.dest) {
114
- return input.dest;
122
+ return normalizePath(input.dest);
115
123
  }
116
124
  let baseDir = input.defaultCloneDir ?? join(homedir(), 'repos');
117
125
  if (baseDir.startsWith('~/')) {
118
126
  baseDir = join(homedir(), baseDir.slice(2));
119
127
  }
120
- return join(baseDir, repoName);
128
+ return normalizePath(join(baseDir, repoName));
121
129
  }
122
130
  };
123
131
  ImportGitHubRepositoryUseCase = __decorate([
@@ -125,6 +133,16 @@ ImportGitHubRepositoryUseCase = __decorate([
125
133
  __param(0, inject('IGitHubRepositoryService')),
126
134
  __param(1, inject('IRepositoryRepository')),
127
135
  __param(2, inject(AddRepositoryUseCase)),
128
- __metadata("design:paramtypes", [Object, Object, AddRepositoryUseCase])
136
+ __param(3, inject('IGitPrService')),
137
+ __metadata("design:paramtypes", [Object, Object, AddRepositoryUseCase, Object])
129
138
  ], ImportGitHubRepositoryUseCase);
130
139
  export { ImportGitHubRepositoryUseCase };
140
+ /**
141
+ * Normalizes a filesystem path to use forward slashes.
142
+ *
143
+ * Per packages/CLAUDE.md, all paths stored in the database MUST use forward
144
+ * slashes so that Windows and POSIX callers resolve/compare identically.
145
+ */
146
+ function normalizePath(p) {
147
+ return p.replace(/\\/g, '/');
148
+ }
@@ -5,7 +5,7 @@
5
5
  * no remote yet. Uses `gh repo create` with `--source=.` to create the
6
6
  * remote repo, configure the origin remote, and push the current branch.
7
7
  */
8
- import type { IGitPrService } from '../../ports/output/services/git-pr-service.interface.js';
8
+ import { type IGitPrService } from '../../ports/output/services/git-pr-service.interface.js';
9
9
  export interface InitRemoteRepositoryInput {
10
10
  /** Working directory of the local repository */
11
11
  cwd: string;
@@ -1 +1 @@
1
- {"version":3,"file":"init-remote-repository.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yDAAyD,CAAC;AAE7F,MAAM,WAAW,yBAAyB;IACxC,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBACa,2BAA2B;IAGpC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,aAAa;IAGxC,OAAO,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAsBrF"}
1
+ {"version":3,"file":"init-remote-repository.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/repositories/init-remote-repository.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,yDAAyD,CAAC;AAEjE,MAAM,WAAW,yBAAyB;IACxC,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,qBACa,2BAA2B;IAGpC,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,aAAa;IAGxC,OAAO,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAuBrF"}
@@ -19,6 +19,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
19
19
  };
20
20
  import { injectable, inject } from 'tsyringe';
21
21
  import { basename } from 'node:path';
22
+ import { GitPrError, GitPrErrorCode, } from '../../ports/output/services/git-pr-service.interface.js';
22
23
  let InitRemoteRepositoryUseCase = class InitRemoteRepositoryUseCase {
23
24
  gitPrService;
24
25
  constructor(gitPrService) {
@@ -29,8 +30,8 @@ let InitRemoteRepositoryUseCase = class InitRemoteRepositoryUseCase {
29
30
  const hasRemote = await this.gitPrService.hasRemote(input.cwd);
30
31
  if (hasRemote) {
31
32
  const existingUrl = await this.gitPrService.getRemoteUrl(input.cwd);
32
- throw new Error(`Repository already has a remote configured${existingUrl ? ` (${existingUrl})` : ''}. ` +
33
- 'Use `git remote set-url origin <url>` to change it.');
33
+ throw new GitPrError(`Repository already has a remote configured${existingUrl ? ` (${existingUrl})` : ''}. ` +
34
+ 'Use `git remote set-url origin <url>` to change it.', GitPrErrorCode.REMOTE_ALREADY_EXISTS);
34
35
  }
35
36
  // 2. Derive repo name from directory if not provided
36
37
  const name = input.name ?? basename(input.cwd);
@@ -36,7 +36,7 @@ export function fromDatabase(row) {
36
36
  name: row.name,
37
37
  path: row.path,
38
38
  remoteUrl: row.remote_url ?? undefined,
39
- isFork: row.is_fork === 1 ? true : undefined,
39
+ isFork: row.is_fork === 1,
40
40
  upstreamUrl: row.upstream_url ?? undefined,
41
41
  createdAt: new Date(row.created_at),
42
42
  updatedAt: new Date(row.updated_at),
@@ -48,6 +48,16 @@ export declare class GitPrService implements IGitPrService {
48
48
  isPrivate: boolean;
49
49
  org?: string;
50
50
  }): Promise<string>;
51
+ /**
52
+ * Extracts the first github.com repository URL from a blob of text.
53
+ * Returns a normalized URL without a trailing `.git` suffix or punctuation.
54
+ */
55
+ private extractGitHubUrl;
56
+ /**
57
+ * Queries the current repo's URL via `gh repo view --json url`. Used as a
58
+ * fallback when URL parsing from `gh repo create` output fails.
59
+ */
60
+ private queryRepoUrl;
51
61
  addRemote(cwd: string, remoteName: string, remoteUrl: string): Promise<void>;
52
62
  private parseDiffStat;
53
63
  syncMain(cwd: string, baseBranch: string): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"git-pr.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/git-pr.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AAC5G,OAAO,KAAK,EACV,cAAc,EAGd,WAAW,EACX,QAAQ,EACR,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,wEAAwE,CAAC;AAUhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1D,qBACa,YAAa,YAAW,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,YAAY;IAErE,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKxC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgBjD,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAgF9C,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKnD,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKpD,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxD,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAYv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CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB1C,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQvC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IActD,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQpC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQrC,mBAAmB,CACvB,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAe9C"}
1
+ {"version":3,"file":"git-pr.service.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/git-pr.service.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wEAAwE,CAAC;AAC5G,OAAO,KAAK,EACV,cAAc,EAGd,WAAW,EACX,QAAQ,EACR,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,wEAAwE,CAAC;AAUhF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG1D,qBACa,YAAa,YAAW,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,YAAY;IAErE,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAKxC,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAgBjD,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAgF9C,QAAQ,CAAC,GAAG,EAAE,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AAO,CAAC,aAAa;IAoBf,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0CxD,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAyEnF,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAelD,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAQvD,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB1C,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQvC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IActD,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQpC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAQrC,mBAAmB,CACvB,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAe9C"}
@@ -663,8 +663,19 @@ let GitPrService = class GitPrService {
663
663
  '--push',
664
664
  ];
665
665
  try {
666
- const { stdout } = await this.execFile('gh', args, { cwd });
667
- return stdout.trim();
666
+ const { stdout, stderr } = await this.execFile('gh', args, { cwd });
667
+ // `gh repo create` emits status lines to stdout/stderr that include the
668
+ // created repo URL somewhere in the output (e.g. "✓ Created repository
669
+ // org/name on GitHub\n https://github.com/org/name"). Scrape the first
670
+ // github.com URL we can find rather than returning the raw multi-line blob.
671
+ const combined = `${stdout}\n${stderr}`;
672
+ const parsedUrl = this.extractGitHubUrl(combined);
673
+ if (parsedUrl) {
674
+ return parsedUrl;
675
+ }
676
+ // Fall back to `gh repo view` from the cwd — after --push, origin is the
677
+ // authoritative source of the repo URL.
678
+ return await this.queryRepoUrl(cwd);
668
679
  }
669
680
  catch (error) {
670
681
  const ghError = this.parseGhError(error);
@@ -674,6 +685,25 @@ let GitPrService = class GitPrService {
674
685
  throw ghError;
675
686
  }
676
687
  }
688
+ /**
689
+ * Extracts the first github.com repository URL from a blob of text.
690
+ * Returns a normalized URL without a trailing `.git` suffix or punctuation.
691
+ */
692
+ extractGitHubUrl(text) {
693
+ const match = text.match(/https:\/\/github\.com\/[\w.-]+\/[\w.-]+/);
694
+ if (!match) {
695
+ return null;
696
+ }
697
+ return match[0].replace(/\.git$/, '').replace(/[).,;]+$/, '');
698
+ }
699
+ /**
700
+ * Queries the current repo's URL via `gh repo view --json url`. Used as a
701
+ * fallback when URL parsing from `gh repo create` output fails.
702
+ */
703
+ async queryRepoUrl(cwd) {
704
+ const { stdout } = await this.execFile('gh', ['repo', 'view', '--json', 'url', '--jq', '.url'], { cwd });
705
+ return stdout.trim();
706
+ }
677
707
  async addRemote(cwd, remoteName, remoteUrl) {
678
708
  try {
679
709
  await this.execFile('git', ['remote', 'add', remoteName, remoteUrl], { cwd });