@shepai/cli 1.182.0-pr548.9285cca → 1.182.0-pr551.a38709b

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 (201) hide show
  1. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts +8 -1
  2. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts.map +1 -1
  3. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.d.ts +13 -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 +44 -5
  6. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  7. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +1 -4
  8. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.d.ts.map +1 -1
  9. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.js +1 -4
  10. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.d.ts.map +1 -1
  11. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.js +1 -4
  12. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts.map +1 -1
  13. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.js +6 -11
  14. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts +2 -2
  15. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts.map +1 -1
  16. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.js +2 -2
  17. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +1 -0
  18. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  19. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +17 -3
  20. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts +5 -16
  21. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts.map +1 -1
  22. package/dist/packages/core/src/infrastructure/services/git/pr-branding.js +7 -38
  23. package/dist/tsconfig.build.tsbuildinfo +1 -1
  24. package/package.json +1 -1
  25. package/web/.next/BUILD_ID +1 -1
  26. package/web/.next/build-manifest.json +2 -2
  27. package/web/.next/fallback-build-manifest.json +2 -2
  28. package/web/.next/prerender-manifest.json +3 -3
  29. package/web/.next/required-server-files.js +1 -1
  30. package/web/.next/required-server-files.json +1 -1
  31. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +32 -32
  32. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  33. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  34. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +30 -30
  35. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  36. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  37. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +33 -33
  38. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  39. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  40. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  41. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  42. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  43. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +41 -41
  44. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  45. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  46. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  47. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  48. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  49. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  50. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  51. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  52. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +30 -30
  53. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  54. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  55. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +33 -33
  56. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  57. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  58. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  59. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  60. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  61. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +41 -41
  62. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  63. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  64. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +30 -30
  65. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  66. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  67. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  68. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  69. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  70. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  71. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  72. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  73. package/web/.next/server/app/_global-error.html +2 -2
  74. package/web/.next/server/app/_global-error.rsc +1 -1
  75. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  76. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  77. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  78. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  79. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  80. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +7 -7
  81. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  82. package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +15 -15
  83. package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
  84. package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
  85. package/web/.next/server/app/features/page/server-reference-manifest.json +7 -7
  86. package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
  87. package/web/.next/server/app/settings/page/server-reference-manifest.json +10 -10
  88. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  89. package/web/.next/server/app/skills/page/server-reference-manifest.json +15 -15
  90. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  91. package/web/.next/server/app/tools/page/server-reference-manifest.json +13 -13
  92. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  93. package/web/.next/server/app/version/page/server-reference-manifest.json +7 -7
  94. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  95. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +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]__013a0318._.js +1 -1
  101. package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js.map +1 -1
  102. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js +1 -1
  103. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js.map +1 -1
  104. package/web/.next/server/chunks/ssr/[root-of-the-server]__1925bef0._.js +1 -1
  105. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js +1 -1
  106. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js.map +1 -1
  107. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js +2 -2
  108. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js.map +1 -1
  109. package/web/.next/server/chunks/ssr/[root-of-the-server]__4ee8be85._.js +1 -1
  110. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js +1 -1
  111. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js.map +1 -1
  112. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js +1 -1
  113. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js.map +1 -1
  114. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js +1 -1
  115. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js.map +1 -1
  116. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js +1 -1
  117. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js.map +1 -1
  118. package/web/.next/server/chunks/ssr/[root-of-the-server]__e265da61._.js +1 -1
  119. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js +1 -1
  120. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js.map +1 -1
  121. package/web/.next/server/chunks/ssr/_0277d3b5._.js +1 -1
  122. package/web/.next/server/chunks/ssr/_0277d3b5._.js.map +1 -1
  123. package/web/.next/server/chunks/ssr/{_cc456949._.js → _1215e87d._.js} +2 -2
  124. package/web/.next/server/chunks/ssr/{_cc456949._.js.map → _1215e87d._.js.map} +1 -1
  125. package/web/.next/server/chunks/ssr/{_9f2d11a2._.js → _132b9c6f._.js} +2 -2
  126. package/web/.next/server/chunks/ssr/{_9f2d11a2._.js.map → _132b9c6f._.js.map} +1 -1
  127. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  128. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  129. package/web/.next/server/chunks/ssr/{_2dcbafcc._.js → _82b2ff14._.js} +2 -2
  130. package/web/.next/server/chunks/ssr/{_2dcbafcc._.js.map → _82b2ff14._.js.map} +1 -1
  131. package/web/.next/server/chunks/ssr/_946a7fc6._.js +1 -1
  132. package/web/.next/server/chunks/ssr/_946a7fc6._.js.map +1 -1
  133. package/web/.next/server/chunks/ssr/{_04e59c76._.js → _b293de5b._.js} +2 -2
  134. package/web/.next/server/chunks/ssr/{_04e59c76._.js.map → _b293de5b._.js.map} +1 -1
  135. package/web/.next/server/chunks/ssr/{_7a8d82d8._.js → _b2ba38a7._.js} +2 -2
  136. package/web/.next/server/chunks/ssr/{_7a8d82d8._.js.map → _b2ba38a7._.js.map} +1 -1
  137. package/web/.next/server/chunks/ssr/_eff1b518._.js +1 -1
  138. package/web/.next/server/chunks/ssr/_eff1b518._.js.map +1 -1
  139. package/web/.next/server/chunks/ssr/_f227429a._.js +1 -1
  140. package/web/.next/server/chunks/ssr/_f227429a._.js.map +1 -1
  141. package/web/.next/server/chunks/ssr/_f86fc1bf._.js +1 -1
  142. package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -1
  143. package/web/.next/server/chunks/ssr/_f8c55130._.js +1 -1
  144. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  145. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  146. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
  147. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js +1 -1
  148. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js.map +1 -1
  149. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js +1 -1
  150. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js.map +1 -1
  151. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js +1 -1
  152. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js.map +1 -1
  153. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js +1 -1
  154. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js.map +1 -1
  155. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js +1 -1
  156. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js.map +1 -1
  157. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js +1 -1
  158. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js.map +1 -1
  159. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js +1 -1
  160. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js.map +1 -1
  161. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js +1 -1
  162. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js.map +1 -1
  163. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js +1 -1
  164. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js.map +1 -1
  165. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +3 -3
  166. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js +1 -1
  167. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js.map +1 -1
  168. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  169. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  170. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
  171. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -1
  172. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +1 -1
  173. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -1
  174. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
  175. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
  176. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js +1 -1
  177. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js.map +1 -1
  178. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js +1 -1
  179. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js.map +1 -1
  180. package/web/.next/server/pages/500.html +2 -2
  181. package/web/.next/server/server-reference-manifest.js +1 -1
  182. package/web/.next/server/server-reference-manifest.json +54 -54
  183. package/web/.next/static/chunks/{0fca538c8a29691d.js → 0626c1f3be924d10.js} +1 -1
  184. package/web/.next/static/chunks/{5c4f318453ac7984.js → 08c26d75182cd248.js} +1 -1
  185. package/web/.next/static/chunks/{bd0a4fdd2b1cc737.js → 0fe080b3d96e99ee.js} +1 -1
  186. package/web/.next/static/chunks/{8441fecda031344a.js → 101fad983866b920.js} +1 -1
  187. package/web/.next/static/chunks/{a7b75ff95a0f9779.js → 1ea4ee45083c7305.js} +1 -1
  188. package/web/.next/static/chunks/{2a6dce03c4bc24a1.js → 297ad8d11577657f.js} +1 -1
  189. package/web/.next/static/chunks/{df4464ba4edeee49.js → 54c1124786cb9192.js} +1 -1
  190. package/web/.next/static/chunks/{e9bd2883b2ba2017.js → 66c7ba3935ea54b0.js} +1 -1
  191. package/web/.next/static/chunks/{2d0deaa168eca4a6.js → 86e1b907f0e031a6.js} +1 -1
  192. package/web/.next/static/chunks/{8de6ff9a58d783f1.js → 9de30a482e9333bd.js} +1 -1
  193. package/web/.next/static/chunks/{6454c634b1dfd9e1.js → 9fb24cc33c31e7ed.js} +1 -1
  194. package/web/.next/static/chunks/{21a17efb196571ff.js → a1a1d1f660fb75d0.js} +1 -1
  195. package/web/.next/static/chunks/{911685bfab863324.js → b9e087e74ad0f025.js} +2 -2
  196. package/web/.next/static/chunks/{b649d60a870a6b30.js → df5684fc353d298f.js} +1 -1
  197. package/web/.next/static/chunks/{4df1826f2280bb91.js → e1ce32a5445472dd.js} +1 -1
  198. package/web/.next/static/chunks/{1332132fa08b32a6.js → e71325daa238d28e.js} +1 -1
  199. /package/web/.next/static/{fHns2V-tULTm-kY_Fjx8m → H2Y8tbP_KBYItAxGStzRm}/_buildManifest.js +0 -0
  200. /package/web/.next/static/{fHns2V-tULTm-kY_Fjx8m → H2Y8tbP_KBYItAxGStzRm}/_clientMiddlewareManifest.json +0 -0
  201. /package/web/.next/static/{fHns2V-tULTm-kY_Fjx8m → H2Y8tbP_KBYItAxGStzRm}/_ssgManifest.js +0 -0
@@ -164,7 +164,7 @@ export interface IGitPrService {
164
164
  org?: string;
165
165
  }): Promise<string>;
166
166
  /**
167
- * Add a git remote to the local repository.
167
+ * Add a git remote to the local repository, or update its URL if it already exists.
168
168
  *
169
169
  * @param cwd - Working directory path
170
170
  * @param remoteName - Name for the remote (e.g. "origin")
@@ -172,6 +172,13 @@ export interface IGitPrService {
172
172
  * @throws GitPrError with GIT_ERROR code on failure
173
173
  */
174
174
  addRemote(cwd: string, remoteName: string, remoteUrl: string): Promise<void>;
175
+ /**
176
+ * Pull latest changes from the remote for the current branch.
177
+ *
178
+ * @param cwd - Working directory path
179
+ * @throws GitPrError with GIT_ERROR code on failure
180
+ */
181
+ pull(cwd: string): Promise<void>;
175
182
  /**
176
183
  * Detect the repository's default branch with robust fallback chain:
177
184
  * 1. Remote HEAD (git symbolic-ref refs/remotes/origin/HEAD)
@@ -1 +1 @@
1
- {"version":3,"file":"git-pr-service.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/services/git-pr-service.interface.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAEvE;;GAEG;AACH,oBAAY,cAAc;IACxB,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,YAAY,iBAAiB;IAC7B,qBAAqB,0BAA0B;IAC/C,kBAAkB,uBAAuB;IACzC,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,KAAK;aAGjB,IAAI,EAAE,cAAc;aACpB,KAAK,CAAC,EAAE,KAAK;gBAF7B,OAA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,CAAC;IAEzD;;;;;;;;;;;;;;OAcG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpF;;;;;;;OAOG;IACH,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEnD;;;;;;;OAOG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;;;;;;OAQG;IACH,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3C;;;;;;OAMG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExC;;;;;;;;OAQG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvD;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CACjB,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,CAAC;CAC/C"}
1
+ {"version":3,"file":"git-pr-service.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/services/git-pr-service.interface.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,QAA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;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAErC;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;;;;;;;;;;OAaG;IACH,mBAAmB,CACjB,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,CAAC;CAC/C"}
@@ -37,6 +37,18 @@ export declare class ImportGitHubRepositoryUseCase {
37
37
  * Fork-and-clone path — user lacks push access, so we auto-fork first.
38
38
  */
39
39
  private forkAndClone;
40
- private resolveDestination;
40
+ /**
41
+ * Resolve the clone destination, handling the case where the directory already exists.
42
+ *
43
+ * If the destination exists and is a git repo with the same remote origin → git pull and
44
+ * signal that clone can be skipped. If it's a different remote or not a git repo → suffix
45
+ * with a random short hash so the clone proceeds to a new directory.
46
+ */
47
+ private resolveCloneDestination;
48
+ private resolveBasePath;
49
+ /**
50
+ * Compare two remote URLs for equivalence, normalizing case, .git suffix, and protocol.
51
+ */
52
+ private isSameRemote;
41
53
  }
42
54
  //# sourceMappingURL=import-github-repository.use-case.d.ts.map
@@ -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,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"}
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;AAOH,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;IA4BzB;;OAEG;YACW,YAAY;IA2D1B;;;;;;OAMG;YACW,uBAAuB;IAwBrC,OAAO,CAAC,eAAe;IAYvB;;OAEG;IACH,OAAO,CAAC,YAAY;CAQrB"}
@@ -18,6 +18,8 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
18
18
  return function (target, key) { decorator(target, key, paramIndex); }
19
19
  };
20
20
  import { injectable, inject } from 'tsyringe';
21
+ import { randomBytes } from 'node:crypto';
22
+ import { existsSync } from 'node:fs';
21
23
  import { homedir } from 'node:os';
22
24
  import { join } from 'node:path';
23
25
  import { AddRepositoryUseCase } from './add-repository.use-case.js';
@@ -69,8 +71,10 @@ let ImportGitHubRepositoryUseCase = class ImportGitHubRepositoryUseCase {
69
71
  * Direct clone path — user has push access to the repository.
70
72
  */
71
73
  async cloneDirect(input, nameWithOwner, repoName, normalizedUrl) {
72
- const destination = this.resolveDestination(input, repoName);
73
- await this.gitHubService.cloneRepository(nameWithOwner, destination, input.cloneOptions);
74
+ const { destination, alreadyUpToDate } = await this.resolveCloneDestination(input, repoName, normalizedUrl);
75
+ if (!alreadyUpToDate) {
76
+ await this.gitHubService.cloneRepository(nameWithOwner, destination, input.cloneOptions);
77
+ }
74
78
  const repository = await this.addRepositoryUseCase.execute({
75
79
  path: destination,
76
80
  name: repoName,
@@ -93,8 +97,10 @@ let ImportGitHubRepositoryUseCase = class ImportGitHubRepositoryUseCase {
93
97
  return existingForkByRemote;
94
98
  }
95
99
  // Clone the fork
96
- const destination = this.resolveDestination(input, repoName);
97
- await this.gitHubService.cloneRepository(forkResult.nameWithOwner, destination, input.cloneOptions);
100
+ const { destination, alreadyUpToDate } = await this.resolveCloneDestination(input, repoName, normalizedForkUrl);
101
+ if (!alreadyUpToDate) {
102
+ await this.gitHubService.cloneRepository(forkResult.nameWithOwner, destination, input.cloneOptions);
103
+ }
98
104
  // Configure the upstream remote so users can `git fetch upstream` / sync
99
105
  // with the original repo. Without this, the fork has no knowledge of its
100
106
  // upstream — breaking PR workflows that rely on upstream as the merge base.
@@ -117,7 +123,30 @@ let ImportGitHubRepositoryUseCase = class ImportGitHubRepositoryUseCase {
117
123
  upstreamUrl: normalizedOriginalUrl,
118
124
  };
119
125
  }
120
- resolveDestination(input, repoName) {
126
+ /**
127
+ * Resolve the clone destination, handling the case where the directory already exists.
128
+ *
129
+ * If the destination exists and is a git repo with the same remote origin → git pull and
130
+ * signal that clone can be skipped. If it's a different remote or not a git repo → suffix
131
+ * with a random short hash so the clone proceeds to a new directory.
132
+ */
133
+ async resolveCloneDestination(input, repoName, expectedRemoteUrl) {
134
+ const destination = this.resolveBasePath(input, repoName);
135
+ if (!existsSync(destination)) {
136
+ return { destination, alreadyUpToDate: false };
137
+ }
138
+ // Directory exists — check its remote origin
139
+ const existingRemote = await this.gitPrService.getRemoteUrl(destination);
140
+ if (existingRemote && this.isSameRemote(existingRemote, expectedRemoteUrl)) {
141
+ // Same remote — pull to update, skip clone
142
+ await this.gitPrService.pull(destination);
143
+ return { destination, alreadyUpToDate: true };
144
+ }
145
+ // Different remote or not a git repo — use a suffixed directory name
146
+ const hash = randomBytes(3).toString('hex');
147
+ return { destination: normalizePath(`${destination}-${hash}`), alreadyUpToDate: false };
148
+ }
149
+ resolveBasePath(input, repoName) {
121
150
  if (input.dest) {
122
151
  return normalizePath(input.dest);
123
152
  }
@@ -127,6 +156,16 @@ let ImportGitHubRepositoryUseCase = class ImportGitHubRepositoryUseCase {
127
156
  }
128
157
  return normalizePath(join(baseDir, repoName));
129
158
  }
159
+ /**
160
+ * Compare two remote URLs for equivalence, normalizing case, .git suffix, and protocol.
161
+ */
162
+ isSameRemote(a, b) {
163
+ const normalize = (url) => url
164
+ .toLowerCase()
165
+ .replace(/\.git$/, '')
166
+ .replace(/\/$/, '');
167
+ return normalize(a) === normalize(b);
168
+ }
130
169
  };
131
170
  ImportGitHubRepositoryUseCase = __decorate([
132
171
  injectable(),
@@ -1 +1 @@
1
- {"version":3,"file":"node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAWrD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM;IAE7C,4DAA4D;gBAChD,IAAI;kBAGF,MAAM,GAAG,IAAI;mBAIZ,MAAM,GAAG,IAAI;EAK/B;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D;;GAEG;AACH,wBAAgB,YAAY,CAAC,OA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BAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAwInE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,QAAQ,EAAE,EACpB,GAAG,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GACvC,IAAI,CAaN"}
1
+ {"version":3,"file":"node-helpers.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,KAAK,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,+DAA+D,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAUrD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM;IAE7C,4DAA4D;gBAChD,IAAI;kBAGF,MAAM,GAAG,IAAI;mBAIZ,MAAM,GAAG,IAAI;EAK/B;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMtE;AAoBD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAO1D;AAED;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,EACxB,SAAS,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,EAC3D,QAAQ,CAAC,EAAE,MAAM,GAChB,qBAAqB,CAUvB;AAeD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MA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AAM,EAAE,GAAG,CAAC,EAAE,UAAU,GAAG,IAAI,CAoB1F;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAa5F;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAG,MAAM,CAiCT;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAa3E;AAKD;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,UAAU,GACd,IAAI,CA6BN;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CACzB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,EAAE,UAAU,KAAK,MAAM,GACjE,CAAC,KAAK,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAwInE;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,iBAAiB,EACxB,QAAQ,EAAE,QAAQ,EAAE,EACpB,GAAG,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GACvC,IAAI,CAaN"}
@@ -14,7 +14,6 @@ import { reportNodeStart } from '../heartbeat.js';
14
14
  import { recordPhaseStart, recordPhaseEnd, recordApprovalWaitStart, } from '../phase-timing-context.js';
15
15
  import { updateNodeLifecycle } from '../lifecycle-context.js';
16
16
  import { getLogPrefix, setCurrentPhase } from '../log-context.js';
17
- import { COMMIT_CO_AUTHOR } from './prompts/pr-branding.js';
18
17
  /**
19
18
  * Create a scoped logger that prefixes messages with the node name.
20
19
  * Output goes to stdout which the worker redirects to the log file.
@@ -351,10 +350,8 @@ export function buildCommitPushBlock(opts) {
351
350
  ``,
352
351
  `After completing all tasks above:`,
353
352
  `1. Stage the changed files: ${fileList} (use \`git add\` with the specific paths)`,
354
- `2. Commit with a conventional commit message${opts.skipVerification ? ' using `--no-verify` to skip hooks' : ''} and include the Shep Bot co-author trailer:`,
355
- ` - e.g. \`git commit${opts.skipVerification ? ' --no-verify' : ''} -m "${opts.commitHint}" -m "" -m "${COMMIT_CO_AUTHOR}"\``,
353
+ `2. Commit with a conventional commit message${opts.skipVerification ? ' using `--no-verify` to skip hooks' : ''} e.g. \`git commit${opts.skipVerification ? ' --no-verify' : ''} -m "${opts.commitHint}"\``,
356
354
  ` - The message should accurately describe what changed`,
357
- ` - Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer`,
358
355
  ];
359
356
  if (opts.push && !opts.skipVerification) {
360
357
  lines.push(`3. Run local verification before pushing:`);
@@ -1 +1 @@
1
- {"version":3,"file":"fast-implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAyIxD;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CA0EzE"}
1
+ {"version":3,"file":"fast-implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAwIxD;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,CAwEzE"}
@@ -12,7 +12,6 @@ import { readFileSync, readdirSync, statSync } from 'node:fs';
12
12
  import { join } from 'node:path';
13
13
  import yaml from 'js-yaml';
14
14
  import { readSpecFile } from '../node-helpers.js';
15
- import { COMMIT_CO_AUTHOR } from '../../../../git/pr-branding.js';
16
15
  /**
17
16
  * Read a file from the worktree, returning empty string if not found.
18
17
  */
@@ -180,9 +179,7 @@ ${userQuery}
180
179
  3. Run the test suite and fix any failures
181
180
  4. Run the linter and fix any issues
182
181
  5. Ensure the project builds successfully
183
- 6. Commit your work with descriptive conventional commit messages and include the Shep Bot co-author trailer:
184
- - e.g. \`git commit -m "feat(scope): description" -m "" -m "${COMMIT_CO_AUTHOR}"\`
185
- - Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer above
182
+ 6. Commit your work with descriptive conventional commit messages (e.g. \`feat(scope): description\`)
186
183
  - Commit incrementally as you complete logical units of work — do NOT wait until the end
187
184
  - Each commit should be a coherent, working unit${state.push ? `\n7. Push to remote after committing: \`git push -u origin HEAD\`\n - Do NOT wait for or watch CI — just push and finish` : ''}
188
185
 
@@ -1 +1 @@
1
- {"version":3,"file":"implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGxD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,GAAG,EAAE;QAAE,GAAG,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IACnE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAwBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAAE,EAClB,OAAO,EAAE;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACzE,MAAM,CAqER"}
1
+ {"version":3,"file":"implement.prompt.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,GAAG,EAAE;QAAE,GAAG,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC;IACnE,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAwBD;;;;GAIG;AACH,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,iBAAiB,EACxB,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,EAAE,EAClB,OAAO,EAAE;IAAE,WAAW,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GACzE,MAAM,CAmER"}
@@ -6,7 +6,6 @@
6
6
  * and verification instructions.
7
7
  */
8
8
  import { readSpecFile } from '../node-helpers.js';
9
- import { COMMIT_CO_AUTHOR } from '../../../../git/pr-branding.js';
10
9
  function formatTaskSection(task) {
11
10
  let section = `### Task ${task.id}: ${task.title}\n${task.description}\n`;
12
11
  section += `\n**Acceptance Criteria:**\n`;
@@ -80,9 +79,7 @@ ${taskSections}
80
79
  2. For tasks with TDD guidance: write tests alongside implementation following the hints provided — use them as guidance, not rigid steps
81
80
  3. Follow existing codebase conventions for file placement, naming patterns, and architecture layers
82
81
  ${verificationBlock}
83
- 5. Commit your work with descriptive conventional commit messages and include the Shep Bot co-author trailer:
84
- - e.g. \`git commit -m "feat(scope): description" -m "" -m "${COMMIT_CO_AUTHOR}"\`
85
- - Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer above
82
+ 5. Commit your work with descriptive conventional commit messages (e.g. \`feat(scope): description\`)
86
83
  - Commit incrementally as you complete logical units of work — do NOT wait until the end
87
84
  - Each commit should be a coherent, working unit
88
85
  - It is CRITICAL that all implementation code is committed before this phase ends — evidence collection runs next and needs a clean working tree${state.push ? `\n6. Push to remote after committing: \`git push -u origin HEAD\`\n - Do NOT wait for or watch CI — just push and finish` : ''}
@@ -1 +1 @@
1
- {"version":3,"file":"merge-prompts.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAyCxD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU9F;AAuCD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,QAAQ,EAAE,EACpB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAUR;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CA8ER;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,GACtB,MAAM,CAiDR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,MAAM,CA4BR;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAqDzD"}
1
+ {"version":3,"file":"merge-prompts.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAyCxD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAU9F;AAuCD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,QAAQ,EAAE,EACpB,MAAM,CAAC,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAUR;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,iBAAiB,EACxB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CA2ER;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CACzC,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,GACtB,MAAM,CAiDR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,MAAM,EACnB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,MAAM,CA0BR;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAqDzD"}
@@ -11,7 +11,7 @@
11
11
  import yaml from 'js-yaml';
12
12
  import { EvidenceType } from '../../../../../../domain/generated/output.js';
13
13
  import { readSpecFile, buildResumeContext } from '../node-helpers.js';
14
- import { PR_BRANDING, COMMIT_CO_AUTHOR } from './pr-branding.js';
14
+ import { PR_BRANDING } from './pr-branding.js';
15
15
  /**
16
16
  * Extract merge-phase rejection feedback from spec.yaml.
17
17
  */
@@ -137,9 +137,7 @@ export function buildCommitPushPrPrompt(state, branch, baseBranch, repoUrl) {
137
137
  3. Write a conventional commit message based on the actual diff content
138
138
  - Use the format: \`feat(<scope>): <description>\` or \`fix(<scope>): <description>\`
139
139
  - The commit message should summarize what actually changed, not be generic
140
- - MUST include the co-author trailer: \`${COMMIT_CO_AUTHOR}\`
141
- - Run: \`git commit -m "<your message>" -m "" -m "${COMMIT_CO_AUTHOR}"\`
142
- - Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer above`);
140
+ - Run \`git commit -m "<your message>"\``);
143
141
  // Step 2: Local verification before push (conditional)
144
142
  if (shouldPush) {
145
143
  steps.push(`4. Run local verification checks before pushing:
@@ -184,7 +182,6 @@ ${evidenceSection}
184
182
  ## Constraints
185
183
 
186
184
  - Write a meaningful conventional commit message derived from the actual diff — do NOT use generic messages
187
- - Every commit MUST include the co-author trailer: \`${COMMIT_CO_AUTHOR}\` — do NOT include any other Co-Authored-By trailer
188
185
  ${rejectionSection ? '- You MUST modify source code files to address the rejection feedback above BEFORE committing' : '- Do NOT modify any source code files — only perform git operations'}
189
186
  ${!state.commitSpecs ? '- Do NOT commit the `specs/` directory — it must stay untracked. If you accidentally staged it, run `git reset -- specs/` before committing' : ''}
190
187
  - Do NOT amend existing commits
@@ -239,8 +236,8 @@ Follow these steps EXACTLY:
239
236
  - For config files (.gitignore, tsconfig.json, etc.), merge both sides' additions
240
237
  - Stage each resolved file: \`git add <file>\`
241
238
 
242
- 4. After ALL conflicts are resolved, commit with the Shep Bot co-author trailer:
243
- \`git commit -m "${commitMessage.replace(/"/g, '\\"')}" -m "" -m "${COMMIT_CO_AUTHOR}"\`
239
+ 4. After ALL conflicts are resolved, commit:
240
+ \`git commit -m "${commitMessage.replace(/"/g, '\\"')}"\`
244
241
 
245
242
  5. Delete the feature branch:
246
243
  \`git branch -d ${featureBranch}\` (non-fatal if it fails)
@@ -281,16 +278,14 @@ ${failureLogs}
281
278
  1. Analyze the CI failure logs above to diagnose the root cause
282
279
  2. Apply a targeted fix to resolve the failure — change only what is necessary
283
280
  3. Stage all changes: \`git add -A\`
284
- 4. Commit with this exact conventional commit message format and the Shep Bot co-author trailer:
285
- \`git commit -m "fix(ci): attempt ${attemptNumber}/${maxAttempts} — <short description of what you fixed>" -m "" -m "${COMMIT_CO_AUTHOR}"\`
281
+ 4. Commit with this exact conventional commit message format:
282
+ \`fix(ci): attempt ${attemptNumber}/${maxAttempts} — <short description of what you fixed>\`
286
283
  5. Push the fix to the branch: \`git push origin ${branch}\`
287
284
 
288
285
  ## Constraints
289
286
 
290
287
  - Fix ONLY the issue(s) causing the CI failure — do not refactor unrelated code
291
288
  - The commit message MUST start with \`fix(ci): attempt ${attemptNumber}/${maxAttempts} — \`
292
- - The commit MUST include the co-author trailer: \`${COMMIT_CO_AUTHOR}\`
293
- - Do NOT include any other Co-Authored-By trailer (e.g. Claude) — only the Shep Bot trailer
294
289
  - Do NOT create a new branch — push directly to \`${branch}\`
295
290
  - If the failure is unclear, make your best diagnosis and explain your reasoning in the commit message`;
296
291
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Re-export PR & commit branding from the canonical location in git services.
2
+ * Re-export PR branding from the canonical location in git services.
3
3
  */
4
- export { PR_BRANDING, COMMIT_CO_AUTHOR, applyPrBranding, applyCommitBranding, } from '../../../../../services/git/pr-branding.js';
4
+ export { PR_BRANDING, applyPrBranding } from '../../../../../services/git/pr-branding.js';
5
5
  //# sourceMappingURL=pr-branding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,8CAA8C,CAAC"}
1
+ {"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Re-export PR & commit branding from the canonical location in git services.
2
+ * Re-export PR branding from the canonical location in git services.
3
3
  */
4
- export { PR_BRANDING, COMMIT_CO_AUTHOR, applyPrBranding, applyCommitBranding, } from '../../../../../services/git/pr-branding.js';
4
+ export { PR_BRANDING, applyPrBranding } from '../../../../../services/git/pr-branding.js';
@@ -59,6 +59,7 @@ export declare class GitPrService implements IGitPrService {
59
59
  */
60
60
  private queryRepoUrl;
61
61
  addRemote(cwd: string, remoteName: string, remoteUrl: string): Promise<void>;
62
+ pull(cwd: string): Promise<void>;
62
63
  private parseDiffStat;
63
64
  syncMain(cwd: string, baseBranch: string): Promise<void>;
64
65
  rebaseOnMain(cwd: string, featureBranch: 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;;;;;GAK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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,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,GAA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,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"}
@@ -22,7 +22,7 @@ import { readFileSync, writeFileSync, unlinkSync } from 'node:fs';
22
22
  import { tmpdir } from 'node:os';
23
23
  import { join } from 'node:path';
24
24
  import yaml from 'js-yaml';
25
- import { applyPrBranding, applyCommitBranding } from './pr-branding.js';
25
+ import { applyPrBranding } from './pr-branding.js';
26
26
  let GitPrService = class GitPrService {
27
27
  execFile;
28
28
  constructor(execFile) {
@@ -298,10 +298,9 @@ let GitPrService = class GitPrService {
298
298
  if (status.trim().length > 0) {
299
299
  // Write commit message to a temp file to avoid shell splitting on Windows
300
300
  // (DI-injected execFile uses shell: true on Windows, which splits on spaces)
301
- const brandedMessage = applyCommitBranding(commitMessage);
302
301
  const msgFile = join(tmpdir(), `shep-merge-msg-${Date.now()}.txt`);
303
302
  try {
304
- writeFileSync(msgFile, brandedMessage, 'utf8');
303
+ writeFileSync(msgFile, commitMessage, 'utf8');
305
304
  await this.execFile('git', ['commit', '--file', msgFile], { cwd });
306
305
  }
307
306
  finally {
@@ -756,6 +755,21 @@ let GitPrService = class GitPrService {
756
755
  try {
757
756
  await this.execFile('git', ['remote', 'add', remoteName, remoteUrl], { cwd });
758
757
  }
758
+ catch {
759
+ // Remote may already exist (e.g. gh repo clone auto-adds upstream for forks)
760
+ // — update its URL instead of failing.
761
+ try {
762
+ await this.execFile('git', ['remote', 'set-url', remoteName, remoteUrl], { cwd });
763
+ }
764
+ catch (setUrlError) {
765
+ throw this.parseGitError(setUrlError);
766
+ }
767
+ }
768
+ }
769
+ async pull(cwd) {
770
+ try {
771
+ await this.execFile('git', ['pull'], { cwd });
772
+ }
759
773
  catch (error) {
760
774
  throw this.parseGitError(error);
761
775
  }
@@ -1,28 +1,17 @@
1
1
  /**
2
- * PR & Commit Branding
2
+ * PR Branding
3
3
  *
4
- * Centralizes the branding used in pull request bodies and commit
5
- * trailers created by Shep. Ensures consistent attribution across all
6
- * PR creation paths (agent-driven, fork-and-PR, etc.) and all commit
7
- * paths (agent commits, squash-merge commits, CI-fix commits).
4
+ * Centralizes the branding footer used in pull request bodies
5
+ * created by Shep. Ensures consistent attribution across all
6
+ * PR creation paths (agent-driven, fork-and-PR, etc.).
8
7
  */
9
8
  /** The branding line to append to PR bodies. */
10
9
  export declare const PR_BRANDING = "[\uD83D\uDC11](https://github.com/shep-ai/shep) Built with [Shep.bot](https://shep.bot)";
11
- /** The co-author trailer to include in commit messages. */
12
- export declare const COMMIT_CO_AUTHOR = "Co-Authored-By: Shep Bot <shep-agent@users.noreply.github.com>";
13
10
  /**
14
11
  * Ensure a PR body carries the correct Shep branding.
15
12
  *
16
13
  * 1. Strips any unwanted AI-tool attribution footers
17
- * 2. Strips any unwanted Co-Authored-By trailers
18
- * 3. Appends the Shep branding line if not already present
14
+ * 2. Appends the Shep branding line if not already present
19
15
  */
20
16
  export declare function applyPrBranding(body: string): string;
21
- /**
22
- * Ensure a commit message carries the correct Shep co-author trailer.
23
- *
24
- * 1. Strips any unwanted Co-Authored-By trailers (e.g. Claude)
25
- * 2. Appends the Shep Bot co-author trailer if not already present
26
- */
27
- export declare function applyCommitBranding(message: string): string;
28
17
  //# sourceMappingURL=pr-branding.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/pr-branding.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,gDAAgD;AAChD,eAAO,MAAM,WAAW,4FACyD,CAAC;AAElF,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,mEAAmE,CAAC;AAkBjG;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBpD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAa3D"}
1
+ {"version":3,"file":"pr-branding.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/infrastructure/services/git/pr-branding.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,gDAAgD;AAChD,eAAO,MAAM,WAAW,4FACyD,CAAC;AASlF;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAapD"}
@@ -1,40 +1,26 @@
1
1
  /**
2
- * PR & Commit Branding
2
+ * PR Branding
3
3
  *
4
- * Centralizes the branding used in pull request bodies and commit
5
- * trailers created by Shep. Ensures consistent attribution across all
6
- * PR creation paths (agent-driven, fork-and-PR, etc.) and all commit
7
- * paths (agent commits, squash-merge commits, CI-fix commits).
4
+ * Centralizes the branding footer used in pull request bodies
5
+ * created by Shep. Ensures consistent attribution across all
6
+ * PR creation paths (agent-driven, fork-and-PR, etc.).
8
7
  */
9
8
  /** The branding line to append to PR bodies. */
10
9
  export const PR_BRANDING = '[🐑](https://github.com/shep-ai/shep) Built with [Shep.bot](https://shep.bot)';
11
- /** The co-author trailer to include in commit messages. */
12
- export const COMMIT_CO_AUTHOR = 'Co-Authored-By: Shep Bot <shep-agent@users.noreply.github.com>';
13
10
  /**
14
11
  * Pattern matching common AI-tool attribution footers that should be
15
12
  * replaced (e.g. "Generated with Claude Code", "Co-Authored-By: Claude").
16
13
  */
17
- const UNWANTED_PR_BRANDING_PATTERN = /\n*(?:🤖\s*)?Generated with \[Claude Code\]\(https:\/\/claude\.com\/claude-code\)\s*/gi;
18
- /**
19
- * Pattern matching unwanted Co-Authored-By trailers from AI tools.
20
- * Matches lines like:
21
- * Co-Authored-By: Claude <noreply@anthropic.com>
22
- * Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
23
- * Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
24
- */
25
- const UNWANTED_CO_AUTHOR_PATTERN = /\n*Co-Authored-By:\s*Claude[^\n]*<noreply@anthropic\.com>\s*/gi;
14
+ const UNWANTED_BRANDING_PATTERN = /\n*(?:🤖\s*)?Generated with \[Claude Code\]\(https:\/\/claude\.com\/claude-code\)\s*/gi;
26
15
  /**
27
16
  * Ensure a PR body carries the correct Shep branding.
28
17
  *
29
18
  * 1. Strips any unwanted AI-tool attribution footers
30
- * 2. Strips any unwanted Co-Authored-By trailers
31
- * 3. Appends the Shep branding line if not already present
19
+ * 2. Appends the Shep branding line if not already present
32
20
  */
33
21
  export function applyPrBranding(body) {
34
22
  // Strip unwanted branding
35
- let cleaned = body.replace(UNWANTED_PR_BRANDING_PATTERN, '');
36
- // Strip unwanted co-author trailers
37
- cleaned = cleaned.replace(UNWANTED_CO_AUTHOR_PATTERN, '');
23
+ let cleaned = body.replace(UNWANTED_BRANDING_PATTERN, '');
38
24
  // Trim trailing whitespace/newlines before appending branding
39
25
  cleaned = cleaned.trimEnd();
40
26
  // Only append if not already present
@@ -43,20 +29,3 @@ export function applyPrBranding(body) {
43
29
  }
44
30
  return cleaned;
45
31
  }
46
- /**
47
- * Ensure a commit message carries the correct Shep co-author trailer.
48
- *
49
- * 1. Strips any unwanted Co-Authored-By trailers (e.g. Claude)
50
- * 2. Appends the Shep Bot co-author trailer if not already present
51
- */
52
- export function applyCommitBranding(message) {
53
- // Strip unwanted co-author trailers
54
- let cleaned = message.replace(UNWANTED_CO_AUTHOR_PATTERN, '');
55
- // Trim trailing whitespace/newlines
56
- cleaned = cleaned.trimEnd();
57
- // Only append if not already present
58
- if (!cleaned.includes(COMMIT_CO_AUTHOR)) {
59
- cleaned = `${cleaned}\n\n${COMMIT_CO_AUTHOR}`;
60
- }
61
- return cleaned;
62
- }