@shepai/cli 1.182.0 → 1.182.1-pr550.9abbae3

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 (524) hide show
  1. package/apis/json-schema/Application.yaml +7 -0
  2. package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts +1 -1
  3. package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts.map +1 -1
  4. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts +8 -1
  5. package/dist/packages/core/src/application/ports/output/services/git-pr-service.interface.d.ts.map +1 -1
  6. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts +3 -3
  7. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts.map +1 -1
  8. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.js +13 -21
  9. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts +19 -3
  10. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts.map +1 -1
  11. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.js +37 -4
  12. package/dist/packages/core/src/application/use-cases/applications/resume-application-workflow.use-case.d.ts +30 -0
  13. package/dist/packages/core/src/application/use-cases/applications/resume-application-workflow.use-case.d.ts.map +1 -0
  14. package/dist/packages/core/src/application/use-cases/applications/resume-application-workflow.use-case.js +122 -0
  15. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.d.ts +13 -1
  16. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.d.ts.map +1 -1
  17. package/dist/packages/core/src/application/use-cases/repositories/import-github-repository.use-case.js +44 -5
  18. package/dist/packages/core/src/domain/generated/output.d.ts +8 -0
  19. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  20. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  21. package/dist/packages/core/src/infrastructure/di/container.js +5 -0
  22. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts +2 -0
  23. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts.map +1 -1
  24. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.js +4 -0
  25. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/058-add-setup-complete-to-applications.d.ts +5 -0
  26. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/058-add-setup-complete-to-applications.d.ts.map +1 -0
  27. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/058-add-setup-complete-to-applications.js +10 -0
  28. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/059-add-agent-session-id-to-applications.d.ts +5 -0
  29. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/059-add-agent-session-id-to-applications.d.ts.map +1 -0
  30. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/059-add-agent-session-id-to-applications.js +10 -0
  31. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts +1 -1
  32. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts.map +1 -1
  33. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.js +10 -2
  34. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  35. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +4 -1
  36. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.d.ts.map +1 -1
  37. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/fast-implement.prompt.js +4 -1
  38. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.d.ts.map +1 -1
  39. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/implement.prompt.js +4 -1
  40. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts.map +1 -1
  41. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.js +11 -6
  42. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts +2 -2
  43. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts.map +1 -1
  44. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.js +2 -2
  45. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts +1 -0
  46. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  47. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +18 -2
  48. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts +16 -5
  49. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts.map +1 -1
  50. package/dist/packages/core/src/infrastructure/services/git/pr-branding.js +38 -7
  51. package/dist/src/presentation/web/app/api/applications/[id]/resume/route.d.ts +20 -0
  52. package/dist/src/presentation/web/app/api/applications/[id]/resume/route.d.ts.map +1 -0
  53. package/dist/src/presentation/web/app/api/applications/[id]/resume/route.js +25 -0
  54. package/dist/src/presentation/web/app/api/applications/[id]/route.d.ts +19 -0
  55. package/dist/src/presentation/web/app/api/applications/[id]/route.d.ts.map +1 -0
  56. package/dist/src/presentation/web/app/api/applications/[id]/route.js +46 -0
  57. package/dist/src/presentation/web/app/api/applications/route.d.ts +9 -0
  58. package/dist/src/presentation/web/app/api/applications/route.d.ts.map +1 -0
  59. package/dist/src/presentation/web/app/api/applications/route.js +20 -0
  60. package/dist/src/presentation/web/app/application/[id]/page.d.ts +4 -4
  61. package/dist/src/presentation/web/app/application/[id]/page.d.ts.map +1 -1
  62. package/dist/src/presentation/web/app/application/[id]/page.js +2 -61
  63. package/dist/src/presentation/web/app/applications/page.d.ts +2 -0
  64. package/dist/src/presentation/web/app/applications/page.d.ts.map +1 -0
  65. package/dist/src/presentation/web/app/applications/page.js +5 -0
  66. package/dist/src/presentation/web/components/assistant-ui/thread.js +2 -2
  67. package/dist/src/presentation/web/components/common/application-node/application-node.d.ts.map +1 -1
  68. package/dist/src/presentation/web/components/common/application-node/application-node.js +3 -37
  69. package/dist/src/presentation/web/components/features/application-page/application-page-loader.d.ts +4 -0
  70. package/dist/src/presentation/web/components/features/application-page/application-page-loader.d.ts.map +1 -0
  71. package/dist/src/presentation/web/components/features/application-page/application-page-loader.js +47 -0
  72. package/dist/src/presentation/web/components/features/application-page/application-page.d.ts.map +1 -1
  73. package/dist/src/presentation/web/components/features/application-page/application-page.js +75 -54
  74. package/dist/src/presentation/web/components/features/application-page/application-page.stories.d.ts.map +1 -1
  75. package/dist/src/presentation/web/components/features/application-page/application-page.stories.js +1 -0
  76. package/dist/src/presentation/web/components/features/application-page/run-dev-button.d.ts +3 -1
  77. package/dist/src/presentation/web/components/features/application-page/run-dev-button.d.ts.map +1 -1
  78. package/dist/src/presentation/web/components/features/application-page/run-dev-button.js +6 -2
  79. package/dist/src/presentation/web/components/features/applications/application-card.d.ts +7 -0
  80. package/dist/src/presentation/web/components/features/applications/application-card.d.ts.map +1 -0
  81. package/dist/src/presentation/web/components/features/applications/application-card.js +82 -0
  82. package/dist/src/presentation/web/components/features/applications/application-card.stories.d.ts +13 -0
  83. package/dist/src/presentation/web/components/features/applications/application-card.stories.d.ts.map +1 -0
  84. package/dist/src/presentation/web/components/features/applications/application-card.stories.js +69 -0
  85. package/dist/src/presentation/web/components/features/applications/applications-page-client.d.ts +5 -0
  86. package/dist/src/presentation/web/components/features/applications/applications-page-client.d.ts.map +1 -0
  87. package/dist/src/presentation/web/components/features/applications/applications-page-client.js +28 -0
  88. package/dist/src/presentation/web/components/features/applications/applications-page-client.stories.d.ts +10 -0
  89. package/dist/src/presentation/web/components/features/applications/applications-page-client.stories.d.ts.map +1 -0
  90. package/dist/src/presentation/web/components/features/applications/applications-page-client.stories.js +93 -0
  91. package/dist/src/presentation/web/components/features/chat/ChatComposer.d.ts +3 -1
  92. package/dist/src/presentation/web/components/features/chat/ChatComposer.d.ts.map +1 -1
  93. package/dist/src/presentation/web/components/features/chat/ChatComposer.js +2 -2
  94. package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts +3 -1
  95. package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts.map +1 -1
  96. package/dist/src/presentation/web/components/features/chat/ChatTab.js +4 -3
  97. package/dist/src/presentation/web/components/features/chat/StepTracker.d.ts +6 -1
  98. package/dist/src/presentation/web/components/features/chat/StepTracker.d.ts.map +1 -1
  99. package/dist/src/presentation/web/components/features/chat/StepTracker.js +23 -20
  100. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  101. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +3 -2
  102. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts +3 -1
  103. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
  104. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +2 -2
  105. package/dist/src/presentation/web/components/features/settings/language-settings-section.d.ts.map +1 -1
  106. package/dist/src/presentation/web/components/features/settings/language-settings-section.js +1 -0
  107. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.d.ts +1 -0
  108. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.d.ts.map +1 -1
  109. package/dist/src/presentation/web/components/features/settings/language-settings-section.stories.js +5 -0
  110. package/dist/src/presentation/web/components/features/settings/settings-page-client.d.ts.map +1 -1
  111. package/dist/src/presentation/web/components/features/settings/settings-page-client.js +23 -3
  112. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  113. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +2 -2
  114. package/dist/src/presentation/web/lib/derive-app-status.d.ts +23 -0
  115. package/dist/src/presentation/web/lib/derive-app-status.d.ts.map +1 -0
  116. package/dist/src/presentation/web/lib/derive-app-status.js +89 -0
  117. package/dist/src/presentation/web/lib/i18n.d.ts.map +1 -1
  118. package/dist/src/presentation/web/lib/i18n.js +3 -0
  119. package/dist/translations/ar/web.json +2 -1
  120. package/dist/translations/de/web.json +2 -1
  121. package/dist/translations/en/web.json +2 -1
  122. package/dist/translations/es/web.json +2 -1
  123. package/dist/translations/fr/web.json +2 -1
  124. package/dist/translations/he/web.json +2 -1
  125. package/dist/translations/pt/web.json +2 -1
  126. package/dist/translations/ru/web.json +2 -1
  127. package/dist/translations/uk/web.json +2 -1
  128. package/dist/tsconfig.build.tsbuildinfo +1 -1
  129. package/package.json +1 -1
  130. package/web/.next/BUILD_ID +1 -1
  131. package/web/.next/app-path-routes-manifest.json +4 -0
  132. package/web/.next/build-manifest.json +2 -2
  133. package/web/.next/fallback-build-manifest.json +2 -2
  134. package/web/.next/prerender-manifest.json +3 -3
  135. package/web/.next/required-server-files.js +3 -3
  136. package/web/.next/required-server-files.json +3 -3
  137. package/web/.next/routes-manifest.json +28 -0
  138. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +32 -32
  139. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +5 -5
  140. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  141. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  142. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +30 -30
  143. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +5 -5
  144. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  145. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  146. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +33 -33
  147. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +5 -5
  148. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  149. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  150. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  151. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +5 -5
  152. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  153. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  154. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +41 -41
  155. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +5 -5
  156. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  157. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  158. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  159. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +5 -5
  160. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  161. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  162. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  163. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +5 -5
  164. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  165. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  166. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +30 -30
  167. package/web/.next/server/app/(dashboard)/chat/page.js +5 -5
  168. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  169. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  170. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +33 -33
  171. package/web/.next/server/app/(dashboard)/create/page.js +5 -5
  172. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  173. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  174. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +41 -41
  175. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +5 -5
  176. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  177. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  178. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +41 -41
  179. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +5 -5
  180. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  181. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  182. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +30 -30
  183. package/web/.next/server/app/(dashboard)/page.js +5 -5
  184. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  185. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  186. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +31 -31
  187. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +5 -5
  188. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  189. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  190. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +31 -31
  191. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +5 -5
  192. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  193. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  194. package/web/.next/server/app/_global-error/page.js +1 -1
  195. package/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  196. package/web/.next/server/app/_global-error.html +2 -2
  197. package/web/.next/server/app/_global-error.rsc +1 -1
  198. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  199. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  200. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  201. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  202. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  203. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +7 -7
  204. package/web/.next/server/app/_not-found/page.js +1 -1
  205. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  206. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  207. package/web/.next/server/app/api/applications/[id]/resume/route/app-paths-manifest.json +3 -0
  208. package/web/.next/server/app/api/applications/[id]/resume/route/build-manifest.json +11 -0
  209. package/web/.next/server/app/api/applications/[id]/resume/route/server-reference-manifest.json +4 -0
  210. package/web/.next/server/app/api/applications/[id]/resume/route.js +7 -0
  211. package/web/.next/server/app/api/applications/[id]/resume/route.js.map +5 -0
  212. package/web/.next/server/app/api/applications/[id]/resume/route.js.nft.json +1 -0
  213. package/web/.next/server/app/api/applications/[id]/resume/route_client-reference-manifest.js +2 -0
  214. package/web/.next/server/app/api/applications/[id]/route/app-paths-manifest.json +3 -0
  215. package/web/.next/server/app/api/applications/[id]/route/build-manifest.json +11 -0
  216. package/web/.next/server/app/api/applications/[id]/route/server-reference-manifest.json +4 -0
  217. package/web/.next/server/app/api/applications/[id]/route.js +7 -0
  218. package/web/.next/server/app/api/applications/[id]/route.js.map +5 -0
  219. package/web/.next/server/app/api/applications/[id]/route.js.nft.json +1 -0
  220. package/web/.next/server/app/api/applications/[id]/route_client-reference-manifest.js +2 -0
  221. package/web/.next/server/app/api/applications/route/app-paths-manifest.json +3 -0
  222. package/web/.next/server/app/api/applications/route/build-manifest.json +11 -0
  223. package/web/.next/server/app/api/applications/route/server-reference-manifest.json +4 -0
  224. package/web/.next/server/app/api/applications/route.js +7 -0
  225. package/web/.next/server/app/api/applications/route.js.map +5 -0
  226. package/web/.next/server/app/api/applications/route.js.nft.json +1 -0
  227. package/web/.next/server/app/api/applications/route_client-reference-manifest.js +2 -0
  228. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  229. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  230. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  231. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  232. package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +45 -30
  233. package/web/.next/server/app/application/[id]/page.js +3 -3
  234. package/web/.next/server/app/application/[id]/page.js.nft.json +1 -1
  235. package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +1 -1
  236. package/web/.next/server/app/applications/page/app-paths-manifest.json +3 -0
  237. package/web/.next/server/app/applications/page/build-manifest.json +18 -0
  238. package/web/.next/server/app/applications/page/next-font-manifest.json +6 -0
  239. package/web/.next/server/app/applications/page/react-loadable-manifest.json +1 -0
  240. package/web/.next/server/app/applications/page/server-reference-manifest.json +230 -0
  241. package/web/.next/server/app/applications/page.js +19 -0
  242. package/web/.next/server/app/applications/page.js.map +5 -0
  243. package/web/.next/server/app/applications/page.js.nft.json +1 -0
  244. package/web/.next/server/app/applications/page_client-reference-manifest.js +2 -0
  245. package/web/.next/server/app/features/page/server-reference-manifest.json +7 -7
  246. package/web/.next/server/app/features/page.js +1 -1
  247. package/web/.next/server/app/features/page.js.nft.json +1 -1
  248. package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
  249. package/web/.next/server/app/settings/page/server-reference-manifest.json +10 -10
  250. package/web/.next/server/app/settings/page.js +1 -1
  251. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  252. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  253. package/web/.next/server/app/skills/page/server-reference-manifest.json +15 -15
  254. package/web/.next/server/app/skills/page.js +1 -1
  255. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  256. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  257. package/web/.next/server/app/tools/page/server-reference-manifest.json +13 -13
  258. package/web/.next/server/app/tools/page.js +1 -1
  259. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  260. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  261. package/web/.next/server/app/version/page/server-reference-manifest.json +7 -7
  262. package/web/.next/server/app/version/page.js +1 -1
  263. package/web/.next/server/app/version/page.js.nft.json +1 -1
  264. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  265. package/web/.next/server/app-paths-manifest.json +4 -0
  266. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_[id]_route_actions_e31b426d.js +3 -0
  267. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_[id]_route_actions_e31b426d.js.map +1 -0
  268. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_route_actions_2b7d20d0.js +3 -0
  269. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_applications_route_actions_2b7d20d0.js.map +1 -0
  270. package/web/.next/server/chunks/[root-of-the-server]__3bb635e8._.js +3 -0
  271. package/web/.next/server/chunks/[root-of-the-server]__3bb635e8._.js.map +1 -0
  272. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  273. package/web/.next/server/chunks/[root-of-the-server]__ac0027b4._.js +3 -0
  274. package/web/.next/server/chunks/[root-of-the-server]__ac0027b4._.js.map +1 -0
  275. package/web/.next/server/chunks/[root-of-the-server]__b2a4bfcc._.js.map +1 -1
  276. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  277. package/web/.next/server/chunks/[root-of-the-server]__ce82df38._.js +3 -0
  278. package/web/.next/server/chunks/[root-of-the-server]__ce82df38._.js.map +1 -0
  279. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_applications_[id]_resume_route_actions_3a66d646.js +3 -0
  280. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_applications_[id]_resume_route_actions_3a66d646.js.map +1 -0
  281. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js +3 -0
  282. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_4f9eef62.js.map +1 -0
  283. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js +3 -0
  284. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_ffa16a22.js.map +1 -0
  285. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js +3 -0
  286. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_a1a998f9.js.map +1 -0
  287. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  288. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  289. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
  290. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  291. package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js +3 -0
  292. package/web/.next/server/chunks/ssr/744ca_web_components_features_applications_applications-page-client_tsx_d0db9938._.js.map +1 -0
  293. package/web/.next/server/chunks/ssr/[root-of-the-server]__04f4895b._.js +3 -0
  294. package/web/.next/server/chunks/ssr/[root-of-the-server]__04f4895b._.js.map +1 -0
  295. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js +1 -1
  296. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js.map +1 -1
  297. package/web/.next/server/chunks/ssr/[root-of-the-server]__1925bef0._.js +1 -1
  298. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js +1 -1
  299. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js.map +1 -1
  300. package/web/.next/server/chunks/ssr/[root-of-the-server]__347fd0f6._.js +3 -0
  301. package/web/.next/server/chunks/ssr/[root-of-the-server]__347fd0f6._.js.map +1 -0
  302. package/web/.next/server/chunks/ssr/[root-of-the-server]__46dd2baf._.js +3 -0
  303. package/web/.next/server/chunks/ssr/[root-of-the-server]__46dd2baf._.js.map +1 -0
  304. package/web/.next/server/chunks/ssr/[root-of-the-server]__4ee8be85._.js +1 -1
  305. package/web/.next/server/chunks/ssr/[root-of-the-server]__73cb4ff6._.js +3 -0
  306. package/web/.next/server/chunks/ssr/[root-of-the-server]__73cb4ff6._.js.map +1 -0
  307. package/web/.next/server/chunks/ssr/{[root-of-the-server]__87bc4dac._.js → [root-of-the-server]__86ff0bc5._.js} +3 -3
  308. package/web/.next/server/chunks/ssr/[root-of-the-server]__86ff0bc5._.js.map +1 -0
  309. package/web/.next/server/chunks/ssr/[root-of-the-server]__91c50abe._.js +3 -0
  310. package/web/.next/server/chunks/ssr/[root-of-the-server]__91c50abe._.js.map +1 -0
  311. package/web/.next/server/chunks/ssr/[root-of-the-server]__a48af49f._.js +3 -0
  312. package/web/.next/server/chunks/ssr/[root-of-the-server]__a48af49f._.js.map +1 -0
  313. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js +1 -1
  314. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js.map +1 -1
  315. package/web/.next/server/chunks/ssr/[root-of-the-server]__d5e22d1a._.js +3 -0
  316. package/web/.next/server/chunks/ssr/{[root-of-the-server]__7aa484f5._.js.map → [root-of-the-server]__d5e22d1a._.js.map} +1 -1
  317. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js +1 -1
  318. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js.map +1 -1
  319. package/web/.next/server/chunks/ssr/[root-of-the-server]__e0aa2bcb._.js +3 -0
  320. package/web/.next/server/chunks/ssr/[root-of-the-server]__e0aa2bcb._.js.map +1 -0
  321. package/web/.next/server/chunks/ssr/[root-of-the-server]__e265da61._.js +1 -1
  322. package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js +12 -0
  323. package/web/.next/server/chunks/ssr/[root-of-the-server]__ef0b8905._.js.map +1 -0
  324. package/web/.next/server/chunks/ssr/[root-of-the-server]__f5614810._.js +3 -0
  325. package/web/.next/server/chunks/ssr/{[root-of-the-server]__090f24cb._.js.map → [root-of-the-server]__f5614810._.js.map} +1 -1
  326. package/web/.next/server/chunks/ssr/[root-of-the-server]__fe5db6b2._.js +3 -0
  327. package/web/.next/server/chunks/ssr/[root-of-the-server]__fe5db6b2._.js.map +1 -0
  328. package/web/.next/server/chunks/ssr/_0f9d0acd._.js +3 -0
  329. package/web/.next/server/chunks/ssr/_0f9d0acd._.js.map +1 -0
  330. package/web/.next/server/chunks/ssr/{_177d29c6._.js → _17af2817._.js} +2 -2
  331. package/web/.next/server/chunks/ssr/{_177d29c6._.js.map → _17af2817._.js.map} +1 -1
  332. package/web/.next/server/chunks/ssr/_1879404a._.js +1 -1
  333. package/web/.next/server/chunks/ssr/_1879404a._.js.map +1 -1
  334. package/web/.next/server/chunks/ssr/_295fffde._.js.map +1 -1
  335. package/web/.next/server/chunks/ssr/_29b8ed64._.js +3 -0
  336. package/web/.next/server/chunks/ssr/_29b8ed64._.js.map +1 -0
  337. package/web/.next/server/chunks/ssr/_2bc302d1._.js +3 -0
  338. package/web/.next/server/chunks/ssr/_2bc302d1._.js.map +1 -0
  339. package/web/.next/server/chunks/ssr/_3683083e._.js +3 -0
  340. package/web/.next/server/chunks/ssr/_3683083e._.js.map +1 -0
  341. package/web/.next/server/chunks/ssr/_45496654._.js.map +1 -1
  342. package/web/.next/server/chunks/ssr/_4b57bcc3._.js +9 -0
  343. package/web/.next/server/chunks/ssr/_4b57bcc3._.js.map +1 -0
  344. package/web/.next/server/chunks/ssr/_519d77a9._.js +3 -0
  345. package/web/.next/server/chunks/ssr/_519d77a9._.js.map +1 -0
  346. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  347. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  348. package/web/.next/server/chunks/ssr/{_503102fc._.js → _58b8982b._.js} +2 -2
  349. package/web/.next/server/chunks/ssr/_58b8982b._.js.map +1 -0
  350. package/web/.next/server/chunks/ssr/_7e5e3270._.js +3 -0
  351. package/web/.next/server/chunks/ssr/_7e5e3270._.js.map +1 -0
  352. package/web/.next/server/chunks/ssr/_8c3086bf._.js +3 -0
  353. package/web/.next/server/chunks/ssr/_8c3086bf._.js.map +1 -0
  354. package/web/.next/server/chunks/ssr/_9173e475._.js +21 -0
  355. package/web/.next/server/chunks/ssr/_9173e475._.js.map +1 -0
  356. package/web/.next/server/chunks/ssr/_946a7fc6._.js +1 -1
  357. package/web/.next/server/chunks/ssr/_946a7fc6._.js.map +1 -1
  358. package/web/.next/server/chunks/ssr/_b4cc51d4._.js +3 -0
  359. package/web/.next/server/chunks/ssr/_b4cc51d4._.js.map +1 -0
  360. package/web/.next/server/chunks/ssr/_b5093a26._.js +3 -0
  361. package/web/.next/server/chunks/ssr/_b5093a26._.js.map +1 -0
  362. package/web/.next/server/chunks/ssr/_bc03ac82._.js +4 -0
  363. package/web/.next/server/chunks/ssr/_bc03ac82._.js.map +1 -0
  364. package/web/.next/server/chunks/ssr/_e65abbd1._.js +3 -0
  365. package/web/.next/server/chunks/ssr/_e65abbd1._.js.map +1 -0
  366. package/web/.next/server/chunks/ssr/_f20557ff._.js +3 -0
  367. package/web/.next/server/chunks/ssr/_f20557ff._.js.map +1 -0
  368. package/web/.next/server/chunks/ssr/_f86fc1bf._.js +1 -1
  369. package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -1
  370. package/web/.next/server/chunks/ssr/_f8c55130._.js +1 -1
  371. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  372. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  373. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
  374. package/web/.next/server/chunks/ssr/node_modules__pnpm_28a53b5d._.js +3 -0
  375. package/web/.next/server/chunks/ssr/node_modules__pnpm_28a53b5d._.js.map +1 -0
  376. package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js +3 -0
  377. package/web/.next/server/chunks/ssr/src_presentation_web_47181610._.js.map +1 -0
  378. package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js +3 -0
  379. package/web/.next/server/chunks/ssr/src_presentation_web_5d3f4199._.js.map +1 -0
  380. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js +1 -1
  381. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js.map +1 -1
  382. package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js +3 -0
  383. package/web/.next/server/chunks/ssr/src_presentation_web_61d96ba8._.js.map +1 -0
  384. package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js +3 -0
  385. package/web/.next/server/chunks/ssr/src_presentation_web_6994959a._.js.map +1 -0
  386. package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js +32 -0
  387. package/web/.next/server/chunks/ssr/src_presentation_web_77dadf68._.js.map +1 -0
  388. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js +3 -0
  389. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js.map +1 -0
  390. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js +3 -0
  391. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_c3f6f57e.js.map +1 -0
  392. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js +1 -1
  393. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js.map +1 -1
  394. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_8514dfcd._.js +32 -0
  395. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_8514dfcd._.js.map +1 -0
  396. package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js +3 -0
  397. package/web/.next/server/chunks/ssr/src_presentation_web_b95ed206._.js.map +1 -0
  398. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js +3 -0
  399. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js.map +1 -0
  400. package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js +3 -0
  401. package/web/.next/server/chunks/ssr/src_presentation_web_c543cf3e._.js.map +1 -0
  402. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  403. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  404. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +1 -1
  405. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -1
  406. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
  407. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
  408. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_dropdown-menu_tsx_229332e3._.js +3 -0
  409. package/web/.next/server/chunks/ssr/src_presentation_web_components_ui_dropdown-menu_tsx_229332e3._.js.map +1 -0
  410. package/web/.next/server/chunks/ssr/translations_1562ae1a._.js +3 -0
  411. package/web/.next/server/chunks/ssr/translations_1562ae1a._.js.map +1 -0
  412. package/web/.next/server/pages/500.html +2 -2
  413. package/web/.next/server/server-reference-manifest.js +1 -1
  414. package/web/.next/server/server-reference-manifest.json +184 -72
  415. package/web/.next/static/chunks/{b4aa3a83f2451e07.js → 05becd66afb22d37.js} +1 -1
  416. package/web/.next/static/chunks/1bd2a325f95d3211.js +2 -0
  417. package/web/.next/static/chunks/2cbe80f8e84d59a8.js +1 -0
  418. package/web/.next/static/chunks/37e434e579ecfa02.js +1 -0
  419. package/web/.next/static/chunks/3aaae7ceefe72828.js +7 -0
  420. package/web/.next/static/chunks/3d1543ff12dfaff1.js +1 -0
  421. package/web/.next/static/chunks/{ac22076c64634ac1.js → 4b8bedfda131650a.js} +1 -1
  422. package/web/.next/static/chunks/{83fc7ea32e18c9a5.js → 4ea617a22e21fb04.js} +1 -1
  423. package/web/.next/static/chunks/53f12c1844f881af.js +1 -0
  424. package/web/.next/static/chunks/5795b9f399523c9e.js +1 -0
  425. package/web/.next/static/chunks/{2fe20598e1b4793a.js → 6b2859ea368e7df3.js} +3 -3
  426. package/web/.next/static/chunks/71c7fe96accaab17.js +19 -0
  427. package/web/.next/static/chunks/792fffaa4af33248.js +1 -0
  428. package/web/.next/static/chunks/{87a0df5389e06641.js → 7b6c91400184cb4d.js} +1 -1
  429. package/web/.next/static/chunks/83ba6946af31cdc4.js +3 -0
  430. package/web/.next/static/chunks/897771202f55ecfe.js +1 -0
  431. package/web/.next/static/chunks/9d9bf7403612ae86.js +1 -0
  432. package/web/.next/static/chunks/{be2e80436bc15812.js → a9d2a436d682fded.js} +3 -3
  433. package/web/.next/static/chunks/adf16efe8bac05e9.css +1 -0
  434. package/web/.next/static/chunks/{ceff12f8a2e5bc08.js → ae2fcb50ea0d8652.js} +1 -1
  435. package/web/.next/static/chunks/b0474319e5a50043.js +1 -0
  436. package/web/.next/static/chunks/b85532fb1545927c.js +5 -0
  437. package/web/.next/static/chunks/{33dc7a1041f4ab64.js → b8acda37576199f1.js} +1 -1
  438. package/web/.next/static/chunks/c788a245f6898401.js +1 -0
  439. package/web/.next/static/chunks/d0bcde99ca2878d1.js +1 -0
  440. package/web/.next/static/chunks/{de7de1db2a8788dd.js → ed714d3a13ff6c16.js} +1 -1
  441. package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js +0 -3
  442. package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js.map +0 -1
  443. package/web/.next/server/chunks/ssr/[root-of-the-server]__090f24cb._.js +0 -3
  444. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js +0 -12
  445. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js.map +0 -1
  446. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js +0 -3
  447. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js.map +0 -1
  448. package/web/.next/server/chunks/ssr/[root-of-the-server]__7aa484f5._.js +0 -3
  449. package/web/.next/server/chunks/ssr/[root-of-the-server]__87bc4dac._.js.map +0 -1
  450. package/web/.next/server/chunks/ssr/[root-of-the-server]__a3a4ddef._.js +0 -3
  451. package/web/.next/server/chunks/ssr/[root-of-the-server]__a3a4ddef._.js.map +0 -1
  452. package/web/.next/server/chunks/ssr/[root-of-the-server]__a4222b95._.js +0 -3
  453. package/web/.next/server/chunks/ssr/[root-of-the-server]__a4222b95._.js.map +0 -1
  454. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js +0 -3
  455. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js.map +0 -1
  456. package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js +0 -3
  457. package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js.map +0 -1
  458. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js +0 -3
  459. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js.map +0 -1
  460. package/web/.next/server/chunks/ssr/_0277d3b5._.js +0 -21
  461. package/web/.next/server/chunks/ssr/_0277d3b5._.js.map +0 -1
  462. package/web/.next/server/chunks/ssr/_21cc662b._.js +0 -3
  463. package/web/.next/server/chunks/ssr/_21cc662b._.js.map +0 -1
  464. package/web/.next/server/chunks/ssr/_44531b76._.js +0 -9
  465. package/web/.next/server/chunks/ssr/_44531b76._.js.map +0 -1
  466. package/web/.next/server/chunks/ssr/_503102fc._.js.map +0 -1
  467. package/web/.next/server/chunks/ssr/_575fe3ee._.js +0 -3
  468. package/web/.next/server/chunks/ssr/_575fe3ee._.js.map +0 -1
  469. package/web/.next/server/chunks/ssr/_869a3a15._.js +0 -3
  470. package/web/.next/server/chunks/ssr/_869a3a15._.js.map +0 -1
  471. package/web/.next/server/chunks/ssr/_a7184dfa._.js +0 -3
  472. package/web/.next/server/chunks/ssr/_a7184dfa._.js.map +0 -1
  473. package/web/.next/server/chunks/ssr/_b227ff50._.js +0 -3
  474. package/web/.next/server/chunks/ssr/_b227ff50._.js.map +0 -1
  475. package/web/.next/server/chunks/ssr/_e071ba48._.js +0 -3
  476. package/web/.next/server/chunks/ssr/_e071ba48._.js.map +0 -1
  477. package/web/.next/server/chunks/ssr/_eff1b518._.js +0 -3
  478. package/web/.next/server/chunks/ssr/_eff1b518._.js.map +0 -1
  479. package/web/.next/server/chunks/ssr/_f227429a._.js +0 -3
  480. package/web/.next/server/chunks/ssr/_f227429a._.js.map +0 -1
  481. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js +0 -3
  482. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js.map +0 -1
  483. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js +0 -3
  484. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js.map +0 -1
  485. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js +0 -3
  486. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js.map +0 -1
  487. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js +0 -3
  488. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js.map +0 -1
  489. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js +0 -3
  490. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js.map +0 -1
  491. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js +0 -3
  492. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js.map +0 -1
  493. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js +0 -3
  494. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js.map +0 -1
  495. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +0 -32
  496. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js.map +0 -1
  497. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js +0 -3
  498. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js.map +0 -1
  499. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +0 -3
  500. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +0 -1
  501. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +0 -3
  502. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +0 -1
  503. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js +0 -3
  504. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js.map +0 -1
  505. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js +0 -3
  506. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js.map +0 -1
  507. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +0 -3
  508. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js.map +0 -1
  509. package/web/.next/static/chunks/06b9d6dbf635c370.css +0 -1
  510. package/web/.next/static/chunks/1ae0cf5be30ef398.js +0 -1
  511. package/web/.next/static/chunks/2424ab50273fe1d9.js +0 -7
  512. package/web/.next/static/chunks/6afd16b2fe544054.js +0 -2
  513. package/web/.next/static/chunks/7604027076448f2b.js +0 -19
  514. package/web/.next/static/chunks/8c9016ab8c1f6204.js +0 -1
  515. package/web/.next/static/chunks/927442d2628f6e22.js +0 -1
  516. package/web/.next/static/chunks/94e8559ae19a16e1.js +0 -1
  517. package/web/.next/static/chunks/a0cfca1e5fd467e9.js +0 -1
  518. package/web/.next/static/chunks/a2531137c7d36d54.js +0 -7
  519. package/web/.next/static/chunks/b87904ecdddde972.js +0 -1
  520. package/web/.next/static/chunks/b99506a6f7bc2fa8.js +0 -1
  521. package/web/.next/static/chunks/e4f0ca20b62bd66f.js +0 -1
  522. /package/web/.next/static/{EVCmRtpgNX9ebXGb-bV1G → tAvYhk4e_F_yStLz4wtDg}/_buildManifest.js +0 -0
  523. /package/web/.next/static/{EVCmRtpgNX9ebXGb-bV1G → tAvYhk4e_F_yStLz4wtDg}/_clientMiddlewareManifest.json +0 -0
  524. /package/web/.next/static/{EVCmRtpgNX9ebXGb-bV1G → tAvYhk4e_F_yStLz4wtDg}/_ssgManifest.js +0 -0
@@ -28,6 +28,12 @@ properties:
28
28
  status:
29
29
  $ref: ApplicationStatus.yaml
30
30
  description: Current application status
31
+ setupComplete:
32
+ type: boolean
33
+ description: Whether the initial setup workflow has completed successfully
34
+ agentSessionId:
35
+ type: string
36
+ description: Persistent agent SDK session ID — set once on first session boot, never changes
31
37
  required:
32
38
  - name
33
39
  - slug
@@ -35,6 +41,7 @@ required:
35
41
  - repositoryPath
36
42
  - additionalPaths
37
43
  - status
44
+ - setupComplete
38
45
  allOf:
39
46
  - $ref: SoftDeletableEntity.yaml
40
47
  description: A persistent AI-powered application workspace
@@ -10,7 +10,7 @@ export interface IApplicationRepository {
10
10
  findBySlug(slug: string): Promise<Application | null>;
11
11
  findByPath(path: string): Promise<Application | null>;
12
12
  list(): Promise<Application[]>;
13
- update(id: string, fields: Partial<Pick<Application, 'name' | 'status' | 'additionalPaths' | 'agentType' | 'modelOverride'>>): Promise<void>;
13
+ update(id: string, fields: Partial<Pick<Application, 'name' | 'status' | 'additionalPaths' | 'agentType' | 'modelOverride' | 'setupComplete' | 'agentSessionId'>>): Promise<void>;
14
14
  softDelete(id: string): Promise<void>;
15
15
  restore(id: string): Promise<void>;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"application-repository.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/repositories/application-repository.interface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAE1E,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAClD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACtD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACtD,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC/B,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,OAAO,CACb,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,QAAQ,GAAG,iBAAiB,GAAG,WAAW,GAAG,eAAe,CAAC,CACzF,GACA,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC"}
1
+ {"version":3,"file":"application-repository.interface.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/core/src/application/ports/output/repositories/application-repository.interface.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAE1E,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAClD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACtD,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACtD,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC/B,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,OAAO,CACb,IAAI,CACF,WAAW,EACT,MAAM,GACN,QAAQ,GACR,iBAAiB,GACjB,WAAW,GACX,eAAe,GACf,eAAe,GACf,gBAAgB,CACnB,CACF,GACA,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpC"}
@@ -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,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,cAAc,EACpB,KAAK,CAAC,EAAE,KAAK,YAAA;CAKhC;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,wBAAwB;IACxB,MAAM,EAAE,QAAQ,CAAC;IACjB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,8BAA8B;IAC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Ac,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,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,EA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7 @@ import type { IApplicationBriefStore } from '../../ports/output/services/applica
17
17
  import type { CreateProjectUseCase } from '../projects/create-project.use-case.js';
18
18
  import type { SendInteractiveMessageUseCase } from '../interactive/send-interactive-message.use-case.js';
19
19
  import type { RunWorkflowUseCase } from '../workflows/run-workflow.use-case.js';
20
- import type { IInteractiveSessionService } from '../../ports/output/services/interactive-session-service.interface.js';
20
+ import type { IInteractiveSessionRepository } from '../../ports/output/repositories/interactive-session-repository.interface.js';
21
21
  /**
22
22
  * Build the very first message the agent sees on turn 1. Carries the
23
23
  * user's verbatim request AND a hard directive to read the brief
@@ -71,8 +71,8 @@ export declare class CreateApplicationUseCase {
71
71
  private readonly sendMessage;
72
72
  private readonly briefStore;
73
73
  private readonly runWorkflow;
74
- private readonly sessionService;
75
- constructor(appRepo: IApplicationRepository, createProject: CreateProjectUseCase, promptBuilder: IApplicationCreationPromptBuilder, sendMessage: SendInteractiveMessageUseCase, briefStore: IApplicationBriefStore, runWorkflow: RunWorkflowUseCase, sessionService: IInteractiveSessionService);
74
+ private readonly sessionRepo;
75
+ constructor(appRepo: IApplicationRepository, createProject: CreateProjectUseCase, promptBuilder: IApplicationCreationPromptBuilder, sendMessage: SendInteractiveMessageUseCase, briefStore: IApplicationBriefStore, runWorkflow: RunWorkflowUseCase, sessionRepo: IInteractiveSessionRepository);
76
76
  execute(input: CreateApplicationInput): Promise<CreateApplicationResult>;
77
77
  /**
78
78
  * Kick off the orchestrator asynchronously. Resolves the session
@@ -1 +1 @@
1
- {"version":3,"file":"create-application.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/applications/create-application.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAClH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,8EAA8E,CAAC;AAC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AAkB,EAE/B,cAAc,EAAE,0BAA0B;IAGvD,OAAO,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IA2G9E;;;;;;OAMG;YACW,gBAAgB;IAqC9B;;;;OAIG;YACW,6BAA6B;CA0B5C"}
1
+ {"version":3,"file":"create-application.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/applications/create-application.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAClH,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,8EAA8E,CAAC;AACtI,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AACzG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AAGjI;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAe9F;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,WAAW,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;CACxB;AAoDD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED,qBACa,wBAAwB;IAGjC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAExB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAE5B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAE3B,OAAO,CAAC,QAAQ,CAAC,WAAW;IAE5B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAZX,OAAO,EAAE,sBAAsB,EAE/B,aAAa,EAAE,oBAAoB,EAEnC,aAAa,EAAE,iCAAiC,EAEhD,WAAW,EAAE,6BAA6B,EAE1C,UAAU,EAAE,sBAAsB,EAElC,WAAW,EAAE,kBAAkB,EAE/B,WAAW,EAAE,6BAA6B;IAGvD,OAAO,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAoG9E;;;;;;OAMG;YACW,gBAAgB;IAuC9B;;;;OAIG;YACW,6BAA6B;CA0B5C"}
@@ -122,30 +122,22 @@ let CreateApplicationUseCase = class CreateApplicationUseCase {
122
122
  sendMessage;
123
123
  briefStore;
124
124
  runWorkflow;
125
- sessionService;
126
- constructor(appRepo, createProject, promptBuilder, sendMessage, briefStore, runWorkflow, sessionService) {
125
+ sessionRepo;
126
+ constructor(appRepo, createProject, promptBuilder, sendMessage, briefStore, runWorkflow, sessionRepo) {
127
127
  this.appRepo = appRepo;
128
128
  this.createProject = createProject;
129
129
  this.promptBuilder = promptBuilder;
130
130
  this.sendMessage = sendMessage;
131
131
  this.briefStore = briefStore;
132
132
  this.runWorkflow = runWorkflow;
133
- this.sessionService = sessionService;
133
+ this.sessionRepo = sessionRepo;
134
134
  }
135
135
  async execute(input) {
136
136
  // 1. Derive a stable slug stem from the description.
137
137
  const baseSlug = slugify(input.description);
138
138
  // 2. Allocate a unique <stem>-<6hex> slug + scaffold the project folder.
139
- // Random tag means siblings created from the same description never
140
- // collide on disk or in the DB; the retry loop below covers the
141
- // astronomically rare case where two random tags do clash.
142
139
  const { slug, projectPath } = await this.allocateUniqueSlugAndScaffold(baseSlug);
143
140
  // 3. Generate the human-readable display name from the BASE slug
144
- // only — the random hex tag is an internal disambiguator that
145
- // lives on the `slug` field (and the worktree path), and must
146
- // NEVER bleed into the user-visible title. Names are allowed to
147
- // duplicate; uniqueness is enforced on `slug`. Users can rename
148
- // afterwards via the application page.
149
141
  const name = toTitleCase(baseSlug);
150
142
  // 4. Create Application record
151
143
  const now = new Date();
@@ -157,6 +149,7 @@ let CreateApplicationUseCase = class CreateApplicationUseCase {
157
149
  repositoryPath: projectPath,
158
150
  additionalPaths: [],
159
151
  status: ApplicationStatus.Idle,
152
+ setupComplete: false,
160
153
  agentType: input.agentType,
161
154
  modelOverride: input.modelOverride,
162
155
  createdAt: now,
@@ -245,21 +238,20 @@ let CreateApplicationUseCase = class CreateApplicationUseCase {
245
238
  workflow: APPLICATION_CREATION_WORKFLOW,
246
239
  model: args.model,
247
240
  agentType: args.agentType,
248
- // First-step wrapper: the agent's very first turn sees the
249
- // "read the brief first" directive stapled onto step 1's
250
- // prompt. The chat UI still shows the user's verbatim
251
- // description as the first bubble — the orchestrator
252
- // persists `userMessage` as the first message row before
253
- // dispatching the turn.
254
241
  firstStepPromptWrapper: (stepPrompt) => buildKickoffDirective({
255
242
  briefPath: args.briefPath,
256
243
  userMessage: `${args.userMessage}\n\n---\n\n${stepPrompt}`,
257
244
  }),
258
- // Persisted first bubble — the orchestrator writes this as
259
- // the user message before sending the first agent turn so
260
- // the chat has an immediate visual anchor.
261
245
  visibleFirstMessage: args.userMessage,
262
246
  });
247
+ // All steps completed — mark the application as setup complete
248
+ // and persist the agent session ID for future resumption.
249
+ const appId = args.featureId.replace(/^app-/, '');
250
+ const agentSessionId = await this.sessionRepo.findLatestAgentSessionIdForFeature(args.featureId);
251
+ await this.appRepo.update(appId, {
252
+ setupComplete: true,
253
+ ...(agentSessionId ? { agentSessionId } : {}),
254
+ });
263
255
  }
264
256
  catch (err) {
265
257
  // eslint-disable-next-line no-console
@@ -299,7 +291,7 @@ CreateApplicationUseCase = __decorate([
299
291
  __param(3, inject('SendInteractiveMessageUseCase')),
300
292
  __param(4, inject('IApplicationBriefStore')),
301
293
  __param(5, inject('RunWorkflowUseCase')),
302
- __param(6, inject('IInteractiveSessionService')),
294
+ __param(6, inject('IInteractiveSessionRepository')),
303
295
  __metadata("design:paramtypes", [Object, Function, Object, Function, Object, Function, Object])
304
296
  ], CreateApplicationUseCase);
305
297
  export { CreateApplicationUseCase };
@@ -1,13 +1,29 @@
1
1
  /**
2
2
  * List Applications Use Case
3
3
  *
4
- * Returns all (non-deleted) application records.
4
+ * Returns all (non-deleted) application records with their effective
5
+ * status derived from the `setupComplete` flag and workflow steps.
5
6
  */
6
7
  import type { Application } from '../../../domain/generated/output.js';
7
8
  import type { IApplicationRepository } from '../../ports/output/repositories/application-repository.interface.js';
9
+ import type { IWorkflowStepRepository } from '../../ports/output/repositories/workflow-step-repository.interface.js';
10
+ /**
11
+ * Effective status for an application, derived from persisted app
12
+ * status + workflow step health.
13
+ *
14
+ * - `ready` — setup complete, app is usable
15
+ * - `building` — setup in progress (a step is running)
16
+ * - `interrupted` — setup was interrupted (agent killed / crashed)
17
+ * - `failed` — a setup step failed with an error
18
+ */
19
+ export type ApplicationEffectiveStatus = 'ready' | 'building' | 'interrupted' | 'failed';
20
+ export interface ApplicationWithStatus extends Application {
21
+ effectiveStatus: ApplicationEffectiveStatus;
22
+ }
8
23
  export declare class ListApplicationsUseCase {
9
24
  private readonly appRepo;
10
- constructor(appRepo: IApplicationRepository);
11
- execute(): Promise<Application[]>;
25
+ private readonly stepRepo;
26
+ constructor(appRepo: IApplicationRepository, stepRepo: IWorkflowStepRepository);
27
+ execute(): Promise<ApplicationWithStatus[]>;
12
28
  }
13
29
  //# sourceMappingURL=list-applications.use-case.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-applications.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/applications/list-applications.use-case.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAElH,qBACa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,sBAAsB;IAG5C,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAGxC"}
1
+ {"version":3,"file":"list-applications.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/applications/list-applications.use-case.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAClH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uEAAuE,CAAC;AAErH;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,QAAQ,CAAC;AAEzF,MAAM,WAAW,qBAAsB,SAAQ,WAAW;IACxD,eAAe,EAAE,0BAA0B,CAAC;CAC7C;AAED,qBACa,uBAAuB;IAGhC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAExB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAFR,OAAO,EAAE,sBAAsB,EAE/B,QAAQ,EAAE,uBAAuB;IAG9C,OAAO,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;CAoBlD"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * List Applications Use Case
3
3
  *
4
- * Returns all (non-deleted) application records.
4
+ * Returns all (non-deleted) application records with their effective
5
+ * status derived from the `setupComplete` flag and workflow steps.
5
6
  */
6
7
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
7
8
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -16,18 +17,50 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
16
17
  return function (target, key) { decorator(target, key, paramIndex); }
17
18
  };
18
19
  import { injectable, inject } from 'tsyringe';
20
+ import { WorkflowStepStatus } from '../../../domain/generated/output.js';
19
21
  let ListApplicationsUseCase = class ListApplicationsUseCase {
20
22
  appRepo;
21
- constructor(appRepo) {
23
+ stepRepo;
24
+ constructor(appRepo, stepRepo) {
22
25
  this.appRepo = appRepo;
26
+ this.stepRepo = stepRepo;
23
27
  }
24
28
  async execute() {
25
- return this.appRepo.list();
29
+ const apps = await this.appRepo.list();
30
+ // For apps where setup is not complete, fetch workflow steps to
31
+ // determine the precise status (building / interrupted / failed).
32
+ // Apps with setupComplete=true skip the step query entirely.
33
+ const results = [];
34
+ for (const app of apps) {
35
+ if (app.setupComplete) {
36
+ results.push({ ...app, effectiveStatus: 'ready' });
37
+ continue;
38
+ }
39
+ const steps = await this.stepRepo.listByFeature(`app-${app.id}`);
40
+ results.push({ ...app, effectiveStatus: deriveEffectiveStatus(app, steps) });
41
+ }
42
+ return results;
26
43
  }
27
44
  };
28
45
  ListApplicationsUseCase = __decorate([
29
46
  injectable(),
30
47
  __param(0, inject('IApplicationRepository')),
31
- __metadata("design:paramtypes", [Object])
48
+ __param(1, inject('IWorkflowStepRepository')),
49
+ __metadata("design:paramtypes", [Object, Object])
32
50
  ], ListApplicationsUseCase);
33
51
  export { ListApplicationsUseCase };
52
+ function deriveEffectiveStatus(app, steps) {
53
+ if (app.status === 'Error')
54
+ return 'failed';
55
+ if (steps.length === 0)
56
+ return 'ready';
57
+ if (steps.some((s) => s.status === WorkflowStepStatus.failed))
58
+ return 'failed';
59
+ if (steps.some((s) => s.status === WorkflowStepStatus.interrupted))
60
+ return 'interrupted';
61
+ if (steps.some((s) => s.status === WorkflowStepStatus.running))
62
+ return 'building';
63
+ if (steps.every((s) => s.status === WorkflowStepStatus.done))
64
+ return 'ready';
65
+ return 'building';
66
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Resume Application Workflow Use Case
3
+ *
4
+ * Resumes an interrupted application-creation workflow by:
5
+ * 1. Resetting any `interrupted` steps back to `pending`
6
+ * 2. Walking remaining steps: for each pending step, send its prompt
7
+ * to the agent, wait for the turn to complete, mark it done.
8
+ *
9
+ * The agent SDK session is resumed (same conversation context) because
10
+ * the session service looks up the previous `agentSessionId` from the DB.
11
+ */
12
+ import type { IApplicationRepository } from '../../ports/output/repositories/application-repository.interface.js';
13
+ import type { IWorkflowStepRepository } from '../../ports/output/repositories/workflow-step-repository.interface.js';
14
+ import type { IInteractiveSessionService } from '../../ports/output/services/interactive-session-service.interface.js';
15
+ import type { IInteractiveSessionRepository } from '../../ports/output/repositories/interactive-session-repository.interface.js';
16
+ import type { SendInteractiveMessageUseCase } from '../interactive/send-interactive-message.use-case.js';
17
+ export interface ResumeApplicationWorkflowInput {
18
+ applicationId: string;
19
+ }
20
+ export declare class ResumeApplicationWorkflowUseCase {
21
+ private readonly appRepo;
22
+ private readonly stepRepo;
23
+ private readonly session;
24
+ private readonly sendMessage;
25
+ private readonly sessionRepo;
26
+ constructor(appRepo: IApplicationRepository, stepRepo: IWorkflowStepRepository, session: IInteractiveSessionService, sendMessage: SendInteractiveMessageUseCase, sessionRepo: IInteractiveSessionRepository);
27
+ execute(input: ResumeApplicationWorkflowInput): Promise<void>;
28
+ private refreshStep;
29
+ }
30
+ //# sourceMappingURL=resume-application-workflow.use-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resume-application-workflow.use-case.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/src/application/use-cases/applications/resume-application-workflow.use-case.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qEAAqE,CAAC;AAClH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uEAAuE,CAAC;AACrH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,sEAAsE,CAAC;AACvH,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6EAA6E,CAAC;AACjI,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,qDAAqD,CAAC;AAGzG,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,qBACa,gCAAgC;IAGzC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAExB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAEzB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAExB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAE5B,OAAO,CAAC,QAAQ,CAAC,WAAW;gBARX,OAAO,EAAE,sBAAsB,EAE/B,QAAQ,EAAE,uBAAuB,EAEjC,OAAO,EAAE,0BAA0B,EAEnC,WAAW,EAAE,6BAA6B,EAE1C,WAAW,EAAE,6BAA6B;IAGvD,OAAO,CAAC,KAAK,EAAE,8BAA8B,GAAG,OAAO,CAAC,IAAI,CAAC;YAoErD,WAAW;CAK1B"}
@@ -0,0 +1,122 @@
1
+ /**
2
+ * Resume Application Workflow Use Case
3
+ *
4
+ * Resumes an interrupted application-creation workflow by:
5
+ * 1. Resetting any `interrupted` steps back to `pending`
6
+ * 2. Walking remaining steps: for each pending step, send its prompt
7
+ * to the agent, wait for the turn to complete, mark it done.
8
+ *
9
+ * The agent SDK session is resumed (same conversation context) because
10
+ * the session service looks up the previous `agentSessionId` from the DB.
11
+ */
12
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
13
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
14
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
15
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
17
+ };
18
+ var __metadata = (this && this.__metadata) || function (k, v) {
19
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
20
+ };
21
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
22
+ return function (target, key) { decorator(target, key, paramIndex); }
23
+ };
24
+ import { injectable, inject } from 'tsyringe';
25
+ import { WorkflowStepStatus } from '../../../domain/generated/output.js';
26
+ import { APPLICATION_CREATION_WORKFLOW } from '../../workflows/application-creation.workflow.js';
27
+ let ResumeApplicationWorkflowUseCase = class ResumeApplicationWorkflowUseCase {
28
+ appRepo;
29
+ stepRepo;
30
+ session;
31
+ sendMessage;
32
+ sessionRepo;
33
+ constructor(appRepo, stepRepo, session, sendMessage, sessionRepo) {
34
+ this.appRepo = appRepo;
35
+ this.stepRepo = stepRepo;
36
+ this.session = session;
37
+ this.sendMessage = sendMessage;
38
+ this.sessionRepo = sessionRepo;
39
+ }
40
+ async execute(input) {
41
+ const app = await this.appRepo.findById(input.applicationId);
42
+ if (!app)
43
+ throw new Error(`Application ${input.applicationId} not found`);
44
+ const featureId = `app-${app.id}`;
45
+ const steps = await this.stepRepo.listByFeature(featureId);
46
+ if (steps.length === 0)
47
+ return;
48
+ // Reset interrupted steps back to pending
49
+ for (const step of steps) {
50
+ if (step.status === WorkflowStepStatus.interrupted) {
51
+ await this.stepRepo.updateStatus(step.id, WorkflowStepStatus.pending);
52
+ this.session.notifyWorkflowStep(featureId, await this.refreshStep(step.id));
53
+ }
54
+ }
55
+ // Walk steps — skip done ones, execute pending ones sequentially
56
+ for (let i = 0; i < steps.length; i++) {
57
+ const step = steps[i];
58
+ const definition = APPLICATION_CREATION_WORKFLOW.steps[i];
59
+ if (!definition)
60
+ break;
61
+ // Refresh status (might have been reset above)
62
+ const current = await this.stepRepo.findById(step.id);
63
+ if (!current)
64
+ break;
65
+ if (current.status === WorkflowStepStatus.done)
66
+ continue;
67
+ if (current.status !== WorkflowStepStatus.pending)
68
+ break;
69
+ // Mark running
70
+ await this.stepRepo.updateStatus(step.id, WorkflowStepStatus.running);
71
+ this.session.notifyWorkflowStep(featureId, await this.refreshStep(step.id));
72
+ this.session.setActiveStep(featureId, step.id);
73
+ const turnDone = this.session.waitForTurnDone(featureId);
74
+ try {
75
+ await this.sendMessage.execute({
76
+ featureId,
77
+ content: definition.prompt,
78
+ worktreePath: app.repositoryPath,
79
+ model: app.modelOverride,
80
+ agentType: app.agentType,
81
+ });
82
+ await turnDone;
83
+ await this.stepRepo.updateStatus(step.id, WorkflowStepStatus.done, {
84
+ summary: definition.title,
85
+ });
86
+ this.session.notifyWorkflowStep(featureId, await this.refreshStep(step.id));
87
+ }
88
+ catch (err) {
89
+ await this.stepRepo.updateStatus(step.id, WorkflowStepStatus.failed, {
90
+ error: err instanceof Error ? err.message : String(err),
91
+ });
92
+ this.session.notifyWorkflowStep(featureId, await this.refreshStep(step.id));
93
+ return;
94
+ }
95
+ finally {
96
+ this.session.clearActiveStep(featureId);
97
+ }
98
+ }
99
+ // All remaining steps completed — mark setup as done and persist session ID
100
+ const agentSessionId = await this.sessionRepo.findLatestAgentSessionIdForFeature(featureId);
101
+ await this.appRepo.update(app.id, {
102
+ setupComplete: true,
103
+ ...(agentSessionId ? { agentSessionId } : {}),
104
+ });
105
+ }
106
+ async refreshStep(stepId) {
107
+ const row = await this.stepRepo.findById(stepId);
108
+ if (!row)
109
+ throw new Error(`Workflow step ${stepId} vanished`);
110
+ return row;
111
+ }
112
+ };
113
+ ResumeApplicationWorkflowUseCase = __decorate([
114
+ injectable(),
115
+ __param(0, inject('IApplicationRepository')),
116
+ __param(1, inject('IWorkflowStepRepository')),
117
+ __param(2, inject('IInteractiveSessionService')),
118
+ __param(3, inject('SendInteractiveMessageUseCase')),
119
+ __param(4, inject('IInteractiveSessionRepository')),
120
+ __metadata("design:paramtypes", [Object, Object, Object, Function, Object])
121
+ ], ResumeApplicationWorkflowUseCase);
122
+ export { ResumeApplicationWorkflowUseCase };
@@ -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(),
@@ -1720,6 +1720,14 @@ export type Application = SoftDeletableEntity & {
1720
1720
  * Current application status
1721
1721
  */
1722
1722
  status: ApplicationStatus;
1723
+ /**
1724
+ * Whether the initial setup workflow has completed successfully
1725
+ */
1726
+ setupComplete: boolean;
1727
+ /**
1728
+ * Persistent agent SDK session ID — set once on first session boot, never changes
1729
+ */
1730
+ agentSessionId?: string;
1723
1731
  };
1724
1732
  /**
1725
1733
  * Single installation suggestion for a tool