@shepai/cli 1.179.1 → 1.180.0-pr548.764147

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 (924) hide show
  1. package/apis/json-schema/Application.yaml +40 -0
  2. package/apis/json-schema/ApplicationStatus.yaml +8 -0
  3. package/apis/json-schema/InteractiveMessage.yaml +3 -0
  4. package/apis/json-schema/WorkflowStep.yaml +53 -0
  5. package/apis/json-schema/WorkflowStepStatus.yaml +10 -0
  6. package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts +17 -0
  7. package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.d.ts.map +1 -0
  8. package/dist/packages/core/src/application/ports/output/repositories/application-repository.interface.js +6 -0
  9. package/dist/packages/core/src/application/ports/output/repositories/index.d.ts +1 -0
  10. package/dist/packages/core/src/application/ports/output/repositories/index.d.ts.map +1 -1
  11. package/dist/packages/core/src/application/ports/output/repositories/interactive-session-repository.interface.d.ts +13 -0
  12. package/dist/packages/core/src/application/ports/output/repositories/interactive-session-repository.interface.d.ts.map +1 -1
  13. package/dist/packages/core/src/application/ports/output/repositories/workflow-step-repository.interface.d.ts +52 -0
  14. package/dist/packages/core/src/application/ports/output/repositories/workflow-step-repository.interface.d.ts.map +1 -0
  15. package/dist/packages/core/src/application/ports/output/repositories/workflow-step-repository.interface.js +11 -0
  16. package/dist/packages/core/src/application/ports/output/services/application-brief-store.interface.d.ts +36 -0
  17. package/dist/packages/core/src/application/ports/output/services/application-brief-store.interface.d.ts.map +1 -0
  18. package/dist/packages/core/src/application/ports/output/services/application-brief-store.interface.js +22 -0
  19. package/dist/packages/core/src/application/ports/output/services/application-creation-prompt-builder.interface.d.ts +116 -0
  20. package/dist/packages/core/src/application/ports/output/services/application-creation-prompt-builder.interface.d.ts.map +1 -0
  21. package/dist/packages/core/src/application/ports/output/services/application-creation-prompt-builder.interface.js +27 -0
  22. package/dist/packages/core/src/application/ports/output/services/application-file-system-service.interface.d.ts +100 -0
  23. package/dist/packages/core/src/application/ports/output/services/application-file-system-service.interface.d.ts.map +1 -0
  24. package/dist/packages/core/src/application/ports/output/services/application-file-system-service.interface.js +20 -0
  25. package/dist/packages/core/src/application/ports/output/services/index.d.ts +4 -0
  26. package/dist/packages/core/src/application/ports/output/services/index.d.ts.map +1 -1
  27. package/dist/packages/core/src/application/ports/output/services/index.js +1 -0
  28. package/dist/packages/core/src/application/ports/output/services/interactive-session-service.interface.d.ts +111 -5
  29. package/dist/packages/core/src/application/ports/output/services/interactive-session-service.interface.d.ts.map +1 -1
  30. package/dist/packages/core/src/application/ports/output/services/terminal-session-service.interface.d.ts +46 -0
  31. package/dist/packages/core/src/application/ports/output/services/terminal-session-service.interface.d.ts.map +1 -0
  32. package/dist/packages/core/src/application/ports/output/services/terminal-session-service.interface.js +9 -0
  33. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts +92 -0
  34. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.d.ts.map +1 -0
  35. package/dist/packages/core/src/application/use-cases/applications/create-application.use-case.js +305 -0
  36. package/dist/packages/core/src/application/use-cases/applications/delete-application.use-case.d.ts +15 -0
  37. package/dist/packages/core/src/application/use-cases/applications/delete-application.use-case.d.ts.map +1 -0
  38. package/dist/packages/core/src/application/use-cases/applications/delete-application.use-case.js +45 -0
  39. package/dist/packages/core/src/application/use-cases/applications/get-application.use-case.d.ts +13 -0
  40. package/dist/packages/core/src/application/use-cases/applications/get-application.use-case.d.ts.map +1 -0
  41. package/dist/packages/core/src/application/use-cases/applications/get-application.use-case.js +33 -0
  42. package/dist/packages/core/src/application/use-cases/applications/index.d.ts +13 -0
  43. package/dist/packages/core/src/application/use-cases/applications/index.d.ts.map +1 -0
  44. package/dist/packages/core/src/application/use-cases/applications/index.js +10 -0
  45. package/dist/packages/core/src/application/use-cases/applications/list-application-files.use-case.d.ts +18 -0
  46. package/dist/packages/core/src/application/use-cases/applications/list-application-files.use-case.d.ts.map +1 -0
  47. package/dist/packages/core/src/application/use-cases/applications/list-application-files.use-case.js +41 -0
  48. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts +13 -0
  49. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.d.ts.map +1 -0
  50. package/dist/packages/core/src/application/use-cases/applications/list-applications.use-case.js +33 -0
  51. package/dist/packages/core/src/application/use-cases/applications/read-application-file-raw.use-case.d.ts +22 -0
  52. package/dist/packages/core/src/application/use-cases/applications/read-application-file-raw.use-case.d.ts.map +1 -0
  53. package/dist/packages/core/src/application/use-cases/applications/read-application-file-raw.use-case.js +46 -0
  54. package/dist/packages/core/src/application/use-cases/applications/read-application-file.use-case.d.ts +19 -0
  55. package/dist/packages/core/src/application/use-cases/applications/read-application-file.use-case.d.ts.map +1 -0
  56. package/dist/packages/core/src/application/use-cases/applications/read-application-file.use-case.js +43 -0
  57. package/dist/packages/core/src/application/use-cases/applications/update-application.use-case.d.ts +14 -0
  58. package/dist/packages/core/src/application/use-cases/applications/update-application.use-case.d.ts.map +1 -0
  59. package/dist/packages/core/src/application/use-cases/applications/update-application.use-case.js +33 -0
  60. package/dist/packages/core/src/application/use-cases/applications/watch-application-files.use-case.d.ts +21 -0
  61. package/dist/packages/core/src/application/use-cases/applications/watch-application-files.use-case.d.ts.map +1 -0
  62. package/dist/packages/core/src/application/use-cases/applications/watch-application-files.use-case.js +43 -0
  63. package/dist/packages/core/src/application/use-cases/applications/write-application-file.use-case.d.ts +22 -0
  64. package/dist/packages/core/src/application/use-cases/applications/write-application-file.use-case.d.ts.map +1 -0
  65. package/dist/packages/core/src/application/use-cases/applications/write-application-file.use-case.js +44 -0
  66. package/dist/packages/core/src/application/use-cases/interactive/send-interactive-message.use-case.d.ts +18 -0
  67. package/dist/packages/core/src/application/use-cases/interactive/send-interactive-message.use-case.d.ts.map +1 -1
  68. package/dist/packages/core/src/application/use-cases/interactive/send-interactive-message.use-case.js +1 -1
  69. package/dist/packages/core/src/application/use-cases/terminal/create-terminal-session.use-case.d.ts +19 -0
  70. package/dist/packages/core/src/application/use-cases/terminal/create-terminal-session.use-case.d.ts.map +1 -0
  71. package/dist/packages/core/src/application/use-cases/terminal/create-terminal-session.use-case.js +42 -0
  72. package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.d.ts +77 -0
  73. package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.d.ts.map +1 -0
  74. package/dist/packages/core/src/application/use-cases/workflows/run-workflow.use-case.js +191 -0
  75. package/dist/packages/core/src/application/workflows/application-creation.workflow.d.ts +50 -0
  76. package/dist/packages/core/src/application/workflows/application-creation.workflow.d.ts.map +1 -0
  77. package/dist/packages/core/src/application/workflows/application-creation.workflow.js +138 -0
  78. package/dist/packages/core/src/domain/generated/output.d.ts +102 -0
  79. package/dist/packages/core/src/domain/generated/output.d.ts.map +1 -1
  80. package/dist/packages/core/src/domain/generated/output.js +14 -0
  81. package/dist/packages/core/src/infrastructure/di/container.d.ts.map +1 -1
  82. package/dist/packages/core/src/infrastructure/di/container.js +93 -1
  83. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts +37 -0
  84. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.d.ts.map +1 -0
  85. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/application.mapper.js +52 -0
  86. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/interactive-message.mapper.d.ts +1 -0
  87. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/interactive-message.mapper.d.ts.map +1 -1
  88. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/interactive-message.mapper.js +2 -0
  89. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-step.mapper.d.ts +25 -0
  90. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-step.mapper.d.ts.map +1 -0
  91. package/dist/packages/core/src/infrastructure/persistence/sqlite/mappers/workflow-step.mapper.js +50 -0
  92. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-create-applications-table.d.ts +5 -0
  93. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-create-applications-table.d.ts.map +1 -0
  94. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/056-create-applications-table.js +34 -0
  95. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/057-workflow-steps.d.ts +31 -0
  96. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/057-workflow-steps.d.ts.map +1 -0
  97. package/dist/packages/core/src/infrastructure/persistence/sqlite/migrations/057-workflow-steps.js +72 -0
  98. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts +21 -0
  99. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.d.ts.map +1 -0
  100. package/dist/packages/core/src/infrastructure/repositories/sqlite-application.repository.js +98 -0
  101. package/dist/packages/core/src/infrastructure/repositories/sqlite-interactive-message.repository.js +2 -2
  102. package/dist/packages/core/src/infrastructure/repositories/sqlite-interactive-session.repository.d.ts +1 -0
  103. package/dist/packages/core/src/infrastructure/repositories/sqlite-interactive-session.repository.d.ts.map +1 -1
  104. package/dist/packages/core/src/infrastructure/repositories/sqlite-interactive-session.repository.js +16 -0
  105. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-step.repository.d.ts +29 -0
  106. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-step.repository.d.ts.map +1 -0
  107. package/dist/packages/core/src/infrastructure/repositories/sqlite-workflow-step.repository.js +157 -0
  108. package/dist/packages/core/src/infrastructure/services/agents/application-creation/application-creation-prompt.builder.d.ts +25 -0
  109. package/dist/packages/core/src/infrastructure/services/agents/application-creation/application-creation-prompt.builder.d.ts.map +1 -0
  110. package/dist/packages/core/src/infrastructure/services/agents/application-creation/application-creation-prompt.builder.js +95 -0
  111. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/brand.d.ts +2 -0
  112. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/brand.d.ts.map +1 -0
  113. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/brand.js +11 -0
  114. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/dynamic.d.ts +14 -0
  115. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/dynamic.d.ts.map +1 -0
  116. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/dynamic.js +50 -0
  117. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/mission.d.ts +2 -0
  118. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/mission.d.ts.map +1 -0
  119. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/mission.js +10 -0
  120. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/output-contract.d.ts +2 -0
  121. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/output-contract.d.ts.map +1 -0
  122. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/output-contract.js +20 -0
  123. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/quality.d.ts +2 -0
  124. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/quality.d.ts.map +1 -0
  125. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/quality.js +12 -0
  126. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/role.d.ts +2 -0
  127. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/role.d.ts.map +1 -0
  128. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/role.js +9 -0
  129. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/tech-stack.d.ts +2 -0
  130. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/tech-stack.d.ts.map +1 -0
  131. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/tech-stack.js +23 -0
  132. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/user-interaction.d.ts +2 -0
  133. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/user-interaction.d.ts.map +1 -0
  134. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/user-interaction.js +29 -0
  135. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/workflow.d.ts +15 -0
  136. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/workflow.d.ts.map +1 -0
  137. package/dist/packages/core/src/infrastructure/services/agents/application-creation/prompts/workflow.js +40 -0
  138. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-interactive-executor.service.d.ts.map +1 -1
  139. package/dist/packages/core/src/infrastructure/services/agents/common/executors/claude-code-interactive-executor.service.js +14 -8
  140. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.d.ts.map +1 -1
  141. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/node-helpers.js +4 -1
  142. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.d.ts.map +1 -1
  143. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/merge-prompts.js +11 -6
  144. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts +2 -2
  145. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.d.ts.map +1 -1
  146. package/dist/packages/core/src/infrastructure/services/agents/feature-agent/nodes/prompts/pr-branding.js +2 -2
  147. package/dist/packages/core/src/infrastructure/services/filesystem/application-brief.store.d.ts +20 -0
  148. package/dist/packages/core/src/infrastructure/services/filesystem/application-brief.store.d.ts.map +1 -0
  149. package/dist/packages/core/src/infrastructure/services/filesystem/application-brief.store.js +40 -0
  150. package/dist/packages/core/src/infrastructure/services/filesystem/node-application-file-system.service.d.ts +18 -0
  151. package/dist/packages/core/src/infrastructure/services/filesystem/node-application-file-system.service.d.ts.map +1 -0
  152. package/dist/packages/core/src/infrastructure/services/filesystem/node-application-file-system.service.js +292 -0
  153. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.d.ts.map +1 -1
  154. package/dist/packages/core/src/infrastructure/services/git/git-pr.service.js +3 -2
  155. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts +16 -5
  156. package/dist/packages/core/src/infrastructure/services/git/pr-branding.d.ts.map +1 -1
  157. package/dist/packages/core/src/infrastructure/services/git/pr-branding.js +38 -7
  158. package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.d.ts +49 -10
  159. package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.d.ts.map +1 -1
  160. package/dist/packages/core/src/infrastructure/services/interactive/interactive-session.service.js +323 -149
  161. package/dist/packages/core/src/infrastructure/services/terminal/pty-terminal-session.service.d.ts +22 -0
  162. package/dist/packages/core/src/infrastructure/services/terminal/pty-terminal-session.service.d.ts.map +1 -0
  163. package/dist/packages/core/src/infrastructure/services/terminal/pty-terminal-session.service.js +182 -0
  164. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.d.ts.map +1 -1
  165. package/dist/src/presentation/web/app/(dashboard)/get-graph-data.js +11 -1
  166. package/dist/src/presentation/web/app/actions/check-all-agents-status.d.ts +7 -0
  167. package/dist/src/presentation/web/app/actions/check-all-agents-status.d.ts.map +1 -0
  168. package/dist/src/presentation/web/app/actions/check-all-agents-status.js +30 -0
  169. package/dist/src/presentation/web/app/actions/create-application.d.ts +33 -0
  170. package/dist/src/presentation/web/app/actions/create-application.d.ts.map +1 -0
  171. package/dist/src/presentation/web/app/actions/create-application.js +29 -0
  172. package/dist/src/presentation/web/app/actions/create-project-and-feature.d.ts +20 -0
  173. package/dist/src/presentation/web/app/actions/create-project-and-feature.d.ts.map +1 -0
  174. package/dist/src/presentation/web/app/actions/create-project-and-feature.js +84 -0
  175. package/dist/src/presentation/web/app/actions/delete-application.d.ts +4 -0
  176. package/dist/src/presentation/web/app/actions/delete-application.d.ts.map +1 -0
  177. package/dist/src/presentation/web/app/actions/delete-application.js +16 -0
  178. package/dist/src/presentation/web/app/actions/deploy-application.d.ts +20 -0
  179. package/dist/src/presentation/web/app/actions/deploy-application.d.ts.map +1 -0
  180. package/dist/src/presentation/web/app/actions/deploy-application.js +62 -0
  181. package/dist/src/presentation/web/app/actions/get-application-debug-prompt.d.ts +25 -0
  182. package/dist/src/presentation/web/app/actions/get-application-debug-prompt.d.ts.map +1 -0
  183. package/dist/src/presentation/web/app/actions/get-application-debug-prompt.js +37 -0
  184. package/dist/src/presentation/web/app/actions/get-git-log.js +2 -2
  185. package/dist/src/presentation/web/app/actions/update-application.d.ts +5 -0
  186. package/dist/src/presentation/web/app/actions/update-application.d.ts.map +1 -0
  187. package/dist/src/presentation/web/app/actions/update-application.js +21 -0
  188. package/dist/src/presentation/web/app/api/applications/[id]/files/content/route.d.ts +17 -0
  189. package/dist/src/presentation/web/app/api/applications/[id]/files/content/route.d.ts.map +1 -0
  190. package/dist/src/presentation/web/app/api/applications/[id]/files/content/route.js +63 -0
  191. package/dist/src/presentation/web/app/api/applications/[id]/files/raw/route.d.ts +17 -0
  192. package/dist/src/presentation/web/app/api/applications/[id]/files/raw/route.d.ts.map +1 -0
  193. package/dist/src/presentation/web/app/api/applications/[id]/files/raw/route.js +55 -0
  194. package/dist/src/presentation/web/app/api/applications/[id]/files/route.d.ts +16 -0
  195. package/dist/src/presentation/web/app/api/applications/[id]/files/route.d.ts.map +1 -0
  196. package/dist/src/presentation/web/app/api/applications/[id]/files/route.js +23 -0
  197. package/dist/src/presentation/web/app/api/applications/[id]/files/watch/route.d.ts +21 -0
  198. package/dist/src/presentation/web/app/api/applications/[id]/files/watch/route.d.ts.map +1 -0
  199. package/dist/src/presentation/web/app/api/applications/[id]/files/watch/route.js +86 -0
  200. package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.d.ts +15 -6
  201. package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.d.ts.map +1 -1
  202. package/dist/src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.js +36 -20
  203. package/dist/src/presentation/web/app/api/interactive/chat/turn-statuses/stream/route.d.ts +21 -0
  204. package/dist/src/presentation/web/app/api/interactive/chat/turn-statuses/stream/route.d.ts.map +1 -0
  205. package/dist/src/presentation/web/app/api/interactive/chat/turn-statuses/stream/route.js +82 -0
  206. package/dist/src/presentation/web/app/api/terminal/[sessionId]/input/route.d.ts +15 -0
  207. package/dist/src/presentation/web/app/api/terminal/[sessionId]/input/route.d.ts.map +1 -0
  208. package/dist/src/presentation/web/app/api/terminal/[sessionId]/input/route.js +27 -0
  209. package/dist/src/presentation/web/app/api/terminal/[sessionId]/resize/route.d.ts +15 -0
  210. package/dist/src/presentation/web/app/api/terminal/[sessionId]/resize/route.d.ts.map +1 -0
  211. package/dist/src/presentation/web/app/api/terminal/[sessionId]/resize/route.js +27 -0
  212. package/dist/src/presentation/web/app/api/terminal/[sessionId]/route.d.ts +15 -0
  213. package/dist/src/presentation/web/app/api/terminal/[sessionId]/route.d.ts.map +1 -0
  214. package/dist/src/presentation/web/app/api/terminal/[sessionId]/route.js +20 -0
  215. package/dist/src/presentation/web/app/api/terminal/[sessionId]/stream/route.d.ts +17 -0
  216. package/dist/src/presentation/web/app/api/terminal/[sessionId]/stream/route.d.ts.map +1 -0
  217. package/dist/src/presentation/web/app/api/terminal/[sessionId]/stream/route.js +76 -0
  218. package/dist/src/presentation/web/app/api/terminal/route.d.ts +12 -0
  219. package/dist/src/presentation/web/app/api/terminal/route.d.ts.map +1 -0
  220. package/dist/src/presentation/web/app/api/terminal/route.js +34 -0
  221. package/dist/src/presentation/web/app/application/[id]/page.d.ts +8 -0
  222. package/dist/src/presentation/web/app/application/[id]/page.d.ts.map +1 -0
  223. package/dist/src/presentation/web/app/application/[id]/page.js +65 -0
  224. package/dist/src/presentation/web/app/build-graph-nodes.d.ts +3 -1
  225. package/dist/src/presentation/web/app/build-graph-nodes.d.ts.map +1 -1
  226. package/dist/src/presentation/web/app/build-graph-nodes.js +19 -0
  227. package/dist/src/presentation/web/components/assistant-ui/thread.d.ts +5 -1
  228. package/dist/src/presentation/web/components/assistant-ui/thread.d.ts.map +1 -1
  229. package/dist/src/presentation/web/components/assistant-ui/thread.js +19 -5
  230. package/dist/src/presentation/web/components/common/application-node/application-node-config.d.ts +24 -0
  231. package/dist/src/presentation/web/components/common/application-node/application-node-config.d.ts.map +1 -0
  232. package/dist/src/presentation/web/components/common/application-node/application-node-config.js +1 -0
  233. package/dist/src/presentation/web/components/common/application-node/application-node.d.ts +7 -0
  234. package/dist/src/presentation/web/components/common/application-node/application-node.d.ts.map +1 -0
  235. package/dist/src/presentation/web/components/common/application-node/application-node.js +156 -0
  236. package/dist/src/presentation/web/components/common/application-node/application-node.stories.d.ts +12 -0
  237. package/dist/src/presentation/web/components/common/application-node/application-node.stories.d.ts.map +1 -0
  238. package/dist/src/presentation/web/components/common/application-node/application-node.stories.js +100 -0
  239. package/dist/src/presentation/web/components/common/attachment-chip/attachment-chip.d.ts.map +1 -1
  240. package/dist/src/presentation/web/components/common/attachment-chip/attachment-chip.js +1 -1
  241. package/dist/src/presentation/web/components/features/application-page/application-page.d.ts +31 -0
  242. package/dist/src/presentation/web/components/features/application-page/application-page.d.ts.map +1 -0
  243. package/dist/src/presentation/web/components/features/application-page/application-page.js +330 -0
  244. package/dist/src/presentation/web/components/features/application-page/application-page.stories.d.ts +9 -0
  245. package/dist/src/presentation/web/components/features/application-page/application-page.stories.d.ts.map +1 -0
  246. package/dist/src/presentation/web/components/features/application-page/application-page.stories.js +51 -0
  247. package/dist/src/presentation/web/components/features/application-page/ide-tab/api.d.ts +11 -0
  248. package/dist/src/presentation/web/components/features/application-page/ide-tab/api.d.ts.map +1 -0
  249. package/dist/src/presentation/web/components/features/application-page/ide-tab/api.js +35 -0
  250. package/dist/src/presentation/web/components/features/application-page/ide-tab/editor-pane.d.ts +27 -0
  251. package/dist/src/presentation/web/components/features/application-page/ide-tab/editor-pane.d.ts.map +1 -0
  252. package/dist/src/presentation/web/components/features/application-page/ide-tab/editor-pane.js +147 -0
  253. package/dist/src/presentation/web/components/features/application-page/ide-tab/file-tree-panel.d.ts +19 -0
  254. package/dist/src/presentation/web/components/features/application-page/ide-tab/file-tree-panel.d.ts.map +1 -0
  255. package/dist/src/presentation/web/components/features/application-page/ide-tab/file-tree-panel.js +85 -0
  256. package/dist/src/presentation/web/components/features/application-page/ide-tab/ide-tab.d.ts +16 -0
  257. package/dist/src/presentation/web/components/features/application-page/ide-tab/ide-tab.d.ts.map +1 -0
  258. package/dist/src/presentation/web/components/features/application-page/ide-tab/ide-tab.js +53 -0
  259. package/dist/src/presentation/web/components/features/application-page/ide-tab/ide-tab.stories.d.ts +9 -0
  260. package/dist/src/presentation/web/components/features/application-page/ide-tab/ide-tab.stories.d.ts.map +1 -0
  261. package/dist/src/presentation/web/components/features/application-page/ide-tab/ide-tab.stories.js +111 -0
  262. package/dist/src/presentation/web/components/features/application-page/ide-tab/image-viewer.d.ts +27 -0
  263. package/dist/src/presentation/web/components/features/application-page/ide-tab/image-viewer.d.ts.map +1 -0
  264. package/dist/src/presentation/web/components/features/application-page/ide-tab/image-viewer.js +162 -0
  265. package/dist/src/presentation/web/components/features/application-page/ide-tab/index.d.ts +3 -0
  266. package/dist/src/presentation/web/components/features/application-page/ide-tab/index.d.ts.map +1 -0
  267. package/dist/src/presentation/web/components/features/application-page/ide-tab/index.js +1 -0
  268. package/dist/src/presentation/web/components/features/application-page/ide-tab/types.d.ts +56 -0
  269. package/dist/src/presentation/web/components/features/application-page/ide-tab/types.d.ts.map +1 -0
  270. package/dist/src/presentation/web/components/features/application-page/ide-tab/types.js +35 -0
  271. package/dist/src/presentation/web/components/features/application-page/ide-tab/use-ide-state.d.ts +39 -0
  272. package/dist/src/presentation/web/components/features/application-page/ide-tab/use-ide-state.d.ts.map +1 -0
  273. package/dist/src/presentation/web/components/features/application-page/ide-tab/use-ide-state.js +238 -0
  274. package/dist/src/presentation/web/components/features/application-page/ide-tab/use-resolved-theme.d.ts +14 -0
  275. package/dist/src/presentation/web/components/features/application-page/ide-tab/use-resolved-theme.d.ts.map +1 -0
  276. package/dist/src/presentation/web/components/features/application-page/ide-tab/use-resolved-theme.js +37 -0
  277. package/dist/src/presentation/web/components/features/application-page/run-dev-button.d.ts +19 -0
  278. package/dist/src/presentation/web/components/features/application-page/run-dev-button.d.ts.map +1 -0
  279. package/dist/src/presentation/web/components/features/application-page/run-dev-button.js +80 -0
  280. package/dist/src/presentation/web/components/features/application-page/terminal-tab.d.ts +9 -0
  281. package/dist/src/presentation/web/components/features/application-page/terminal-tab.d.ts.map +1 -0
  282. package/dist/src/presentation/web/components/features/application-page/terminal-tab.js +224 -0
  283. package/dist/src/presentation/web/components/features/application-page/web-preview-tab.d.ts +6 -0
  284. package/dist/src/presentation/web/components/features/application-page/web-preview-tab.d.ts.map +1 -0
  285. package/dist/src/presentation/web/components/features/application-page/web-preview-tab.js +57 -0
  286. package/dist/src/presentation/web/components/features/chat/ChatSheet.d.ts.map +1 -1
  287. package/dist/src/presentation/web/components/features/chat/ChatSheet.js +4 -2
  288. package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts +38 -1
  289. package/dist/src/presentation/web/components/features/chat/ChatTab.d.ts.map +1 -1
  290. package/dist/src/presentation/web/components/features/chat/ChatTab.js +53 -8
  291. package/dist/src/presentation/web/components/features/chat/StepTracker.d.ts +36 -0
  292. package/dist/src/presentation/web/components/features/chat/StepTracker.d.ts.map +1 -0
  293. package/dist/src/presentation/web/components/features/chat/StepTracker.js +133 -0
  294. package/dist/src/presentation/web/components/features/chat/StepTracker.stories.d.ts +11 -0
  295. package/dist/src/presentation/web/components/features/chat/StepTracker.stories.d.ts.map +1 -0
  296. package/dist/src/presentation/web/components/features/chat/StepTracker.stories.js +121 -0
  297. package/dist/src/presentation/web/components/features/chat/chat-state-query.d.ts +12 -0
  298. package/dist/src/presentation/web/components/features/chat/chat-state-query.d.ts.map +1 -0
  299. package/dist/src/presentation/web/components/features/chat/chat-state-query.js +20 -0
  300. package/dist/src/presentation/web/components/features/chat/tool-bubble/detect.d.ts +38 -0
  301. package/dist/src/presentation/web/components/features/chat/tool-bubble/detect.d.ts.map +1 -0
  302. package/dist/src/presentation/web/components/features/chat/tool-bubble/detect.js +91 -0
  303. package/dist/src/presentation/web/components/features/chat/tool-bubble/file-card.d.ts +17 -0
  304. package/dist/src/presentation/web/components/features/chat/tool-bubble/file-card.d.ts.map +1 -0
  305. package/dist/src/presentation/web/components/features/chat/tool-bubble/file-card.js +25 -0
  306. package/dist/src/presentation/web/components/features/chat/tool-bubble/generic-bubble.d.ts +11 -0
  307. package/dist/src/presentation/web/components/features/chat/tool-bubble/generic-bubble.d.ts.map +1 -0
  308. package/dist/src/presentation/web/components/features/chat/tool-bubble/generic-bubble.js +15 -0
  309. package/dist/src/presentation/web/components/features/chat/tool-bubble/index.d.ts +21 -0
  310. package/dist/src/presentation/web/components/features/chat/tool-bubble/index.d.ts.map +1 -0
  311. package/dist/src/presentation/web/components/features/chat/tool-bubble/index.js +37 -0
  312. package/dist/src/presentation/web/components/features/chat/tool-bubble/tool-chip.d.ts +14 -0
  313. package/dist/src/presentation/web/components/features/chat/tool-bubble/tool-chip.d.ts.map +1 -0
  314. package/dist/src/presentation/web/components/features/chat/tool-bubble/tool-chip.js +13 -0
  315. package/dist/src/presentation/web/components/features/chat/useChatRuntime.d.ts +52 -1
  316. package/dist/src/presentation/web/components/features/chat/useChatRuntime.d.ts.map +1 -1
  317. package/dist/src/presentation/web/components/features/chat/useChatRuntime.js +360 -28
  318. package/dist/src/presentation/web/components/features/chat/workflow-placeholder.d.ts +21 -0
  319. package/dist/src/presentation/web/components/features/chat/workflow-placeholder.d.ts.map +1 -0
  320. package/dist/src/presentation/web/components/features/chat/workflow-placeholder.js +40 -0
  321. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts +3 -1
  322. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.d.ts.map +1 -1
  323. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.js +183 -120
  324. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.stories.d.ts +4 -16
  325. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.stories.d.ts.map +1 -1
  326. package/dist/src/presentation/web/components/features/control-center/control-center-empty-state.stories.js +16 -109
  327. package/dist/src/presentation/web/components/features/control-center/control-center-inner.d.ts.map +1 -1
  328. package/dist/src/presentation/web/components/features/control-center/control-center-inner.js +40 -17
  329. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts +4 -0
  330. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.d.ts.map +1 -1
  331. package/dist/src/presentation/web/components/features/control-center/use-control-center-state.js +25 -1
  332. package/dist/src/presentation/web/components/features/control-center/use-fab-actions.d.ts +2 -1
  333. package/dist/src/presentation/web/components/features/control-center/use-fab-actions.d.ts.map +1 -1
  334. package/dist/src/presentation/web/components/features/control-center/use-fab-actions.js +9 -2
  335. package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.d.ts.map +1 -1
  336. package/dist/src/presentation/web/components/features/control-center/welcome-agent-setup.js +2 -9
  337. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts +2 -1
  338. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.d.ts.map +1 -1
  339. package/dist/src/presentation/web/components/features/features-canvas/features-canvas.js +2 -0
  340. package/dist/src/presentation/web/components/features/settings/AgentModelPicker/index.d.ts +3 -1
  341. package/dist/src/presentation/web/components/features/settings/AgentModelPicker/index.d.ts.map +1 -1
  342. package/dist/src/presentation/web/components/features/settings/AgentModelPicker/index.js +9 -4
  343. package/dist/src/presentation/web/hooks/deployment-status-provider.d.ts +1 -1
  344. package/dist/src/presentation/web/hooks/deployment-status-provider.d.ts.map +1 -1
  345. package/dist/src/presentation/web/hooks/deployment-status-provider.js +4 -1
  346. package/dist/src/presentation/web/hooks/use-graph-state.d.ts +5 -0
  347. package/dist/src/presentation/web/hooks/use-graph-state.d.ts.map +1 -1
  348. package/dist/src/presentation/web/hooks/use-graph-state.js +37 -2
  349. package/dist/src/presentation/web/hooks/use-turn-statuses.d.ts +13 -3
  350. package/dist/src/presentation/web/hooks/use-turn-statuses.d.ts.map +1 -1
  351. package/dist/src/presentation/web/hooks/use-turn-statuses.js +73 -13
  352. package/dist/src/presentation/web/lib/derive-graph.d.ts +11 -1
  353. package/dist/src/presentation/web/lib/derive-graph.d.ts.map +1 -1
  354. package/dist/src/presentation/web/lib/derive-graph.js +35 -1
  355. package/dist/src/presentation/web/lib/layout-with-dagre.d.ts +8 -1
  356. package/dist/src/presentation/web/lib/layout-with-dagre.d.ts.map +1 -1
  357. package/dist/src/presentation/web/lib/layout-with-dagre.js +27 -3
  358. package/dist/src/presentation/web/next.config.d.ts.map +1 -1
  359. package/dist/src/presentation/web/next.config.js +1 -0
  360. package/dist/translations/ar/web.json +2 -1
  361. package/dist/translations/de/web.json +2 -1
  362. package/dist/translations/en/web.json +2 -1
  363. package/dist/translations/es/web.json +2 -1
  364. package/dist/translations/fr/web.json +2 -1
  365. package/dist/translations/he/web.json +2 -1
  366. package/dist/translations/pt/web.json +2 -1
  367. package/dist/translations/ru/web.json +2 -1
  368. package/dist/translations/uk/web.json +2 -1
  369. package/dist/tsconfig.build.tsbuildinfo +1 -1
  370. package/package.json +5 -3
  371. package/web/.next/BUILD_ID +1 -1
  372. package/web/.next/app-path-routes-manifest.json +11 -0
  373. package/web/.next/build-manifest.json +5 -5
  374. package/web/.next/fallback-build-manifest.json +2 -2
  375. package/web/.next/prerender-manifest.json +3 -3
  376. package/web/.next/required-server-files.js +4 -3
  377. package/web/.next/required-server-files.json +4 -3
  378. package/web/.next/routes-manifest.json +84 -0
  379. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/build-manifest.json +3 -3
  380. package/web/.next/server/app/(dashboard)/@drawer/adopt/page/server-reference-manifest.json +111 -81
  381. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js +6 -5
  382. package/web/.next/server/app/(dashboard)/@drawer/adopt/page.js.nft.json +1 -1
  383. package/web/.next/server/app/(dashboard)/@drawer/adopt/page_client-reference-manifest.js +1 -1
  384. package/web/.next/server/app/(dashboard)/@drawer/chat/page/build-manifest.json +3 -3
  385. package/web/.next/server/app/(dashboard)/@drawer/chat/page/server-reference-manifest.json +107 -77
  386. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js +6 -5
  387. package/web/.next/server/app/(dashboard)/@drawer/chat/page.js.nft.json +1 -1
  388. package/web/.next/server/app/(dashboard)/@drawer/chat/page_client-reference-manifest.js +1 -1
  389. package/web/.next/server/app/(dashboard)/@drawer/create/page/build-manifest.json +3 -3
  390. package/web/.next/server/app/(dashboard)/@drawer/create/page/server-reference-manifest.json +113 -83
  391. package/web/.next/server/app/(dashboard)/@drawer/create/page.js +6 -5
  392. package/web/.next/server/app/(dashboard)/@drawer/create/page.js.nft.json +1 -1
  393. package/web/.next/server/app/(dashboard)/@drawer/create/page_client-reference-manifest.js +1 -1
  394. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/build-manifest.json +3 -3
  395. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page/server-reference-manifest.json +129 -99
  396. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js +6 -5
  397. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  398. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  399. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/build-manifest.json +3 -3
  400. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page/server-reference-manifest.json +129 -99
  401. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js +6 -5
  402. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page.js.nft.json +1 -1
  403. package/web/.next/server/app/(dashboard)/@drawer/feature/[featureId]/page_client-reference-manifest.js +1 -1
  404. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/build-manifest.json +3 -3
  405. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +109 -79
  406. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js +6 -5
  407. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  408. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  409. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/build-manifest.json +3 -3
  410. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page/server-reference-manifest.json +109 -79
  411. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js +6 -5
  412. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page.js.nft.json +1 -1
  413. package/web/.next/server/app/(dashboard)/@drawer/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  414. package/web/.next/server/app/(dashboard)/chat/page/build-manifest.json +3 -3
  415. package/web/.next/server/app/(dashboard)/chat/page/server-reference-manifest.json +107 -77
  416. package/web/.next/server/app/(dashboard)/chat/page.js +6 -5
  417. package/web/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  418. package/web/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  419. package/web/.next/server/app/(dashboard)/create/page/build-manifest.json +3 -3
  420. package/web/.next/server/app/(dashboard)/create/page/server-reference-manifest.json +113 -83
  421. package/web/.next/server/app/(dashboard)/create/page.js +6 -5
  422. package/web/.next/server/app/(dashboard)/create/page.js.nft.json +1 -1
  423. package/web/.next/server/app/(dashboard)/create/page_client-reference-manifest.js +1 -1
  424. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/build-manifest.json +3 -3
  425. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page/server-reference-manifest.json +129 -99
  426. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js +6 -5
  427. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page.js.nft.json +1 -1
  428. package/web/.next/server/app/(dashboard)/feature/[featureId]/[tab]/page_client-reference-manifest.js +1 -1
  429. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/build-manifest.json +3 -3
  430. package/web/.next/server/app/(dashboard)/feature/[featureId]/page/server-reference-manifest.json +129 -99
  431. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js +6 -5
  432. package/web/.next/server/app/(dashboard)/feature/[featureId]/page.js.nft.json +1 -1
  433. package/web/.next/server/app/(dashboard)/feature/[featureId]/page_client-reference-manifest.js +1 -1
  434. package/web/.next/server/app/(dashboard)/page/build-manifest.json +3 -3
  435. package/web/.next/server/app/(dashboard)/page/server-reference-manifest.json +107 -77
  436. package/web/.next/server/app/(dashboard)/page.js +6 -5
  437. package/web/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  438. package/web/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  439. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/build-manifest.json +3 -3
  440. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page/server-reference-manifest.json +109 -79
  441. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js +6 -5
  442. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page.js.nft.json +1 -1
  443. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/[tab]/page_client-reference-manifest.js +1 -1
  444. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/build-manifest.json +3 -3
  445. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page/server-reference-manifest.json +109 -79
  446. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js +6 -5
  447. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page.js.nft.json +1 -1
  448. package/web/.next/server/app/(dashboard)/repository/[repositoryId]/page_client-reference-manifest.js +1 -1
  449. package/web/.next/server/app/_global-error/page/build-manifest.json +3 -3
  450. package/web/.next/server/app/_global-error/page.js +1 -1
  451. package/web/.next/server/app/_global-error/page.js.nft.json +1 -1
  452. package/web/.next/server/app/_global-error.html +2 -2
  453. package/web/.next/server/app/_global-error.rsc +1 -1
  454. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  455. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  456. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  457. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  458. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  459. package/web/.next/server/app/_not-found/page/build-manifest.json +3 -3
  460. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +27 -12
  461. package/web/.next/server/app/_not-found/page.js +2 -2
  462. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  463. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  464. package/web/.next/server/app/api/applications/[id]/files/content/route/app-paths-manifest.json +3 -0
  465. package/web/.next/server/app/api/applications/[id]/files/content/route/build-manifest.json +11 -0
  466. package/web/.next/server/app/api/applications/[id]/files/content/route/server-reference-manifest.json +4 -0
  467. package/web/.next/server/app/api/applications/[id]/files/content/route.js +6 -0
  468. package/web/.next/server/app/api/applications/[id]/files/content/route.js.map +5 -0
  469. package/web/.next/server/app/api/applications/[id]/files/content/route.js.nft.json +1 -0
  470. package/web/.next/server/app/api/applications/[id]/files/content/route_client-reference-manifest.js +2 -0
  471. package/web/.next/server/app/api/applications/[id]/files/raw/route/app-paths-manifest.json +3 -0
  472. package/web/.next/server/app/api/applications/[id]/files/raw/route/build-manifest.json +11 -0
  473. package/web/.next/server/app/api/applications/[id]/files/raw/route/server-reference-manifest.json +4 -0
  474. package/web/.next/server/app/api/applications/[id]/files/raw/route.js +7 -0
  475. package/web/.next/server/app/api/applications/[id]/files/raw/route.js.map +5 -0
  476. package/web/.next/server/app/api/applications/[id]/files/raw/route.js.nft.json +1 -0
  477. package/web/.next/server/app/api/applications/[id]/files/raw/route_client-reference-manifest.js +2 -0
  478. package/web/.next/server/app/api/applications/[id]/files/route/app-paths-manifest.json +3 -0
  479. package/web/.next/server/app/api/applications/[id]/files/route/build-manifest.json +11 -0
  480. package/web/.next/server/app/api/applications/[id]/files/route/server-reference-manifest.json +4 -0
  481. package/web/.next/server/app/api/applications/[id]/files/route.js +6 -0
  482. package/web/.next/server/app/api/applications/[id]/files/route.js.map +5 -0
  483. package/web/.next/server/app/api/applications/[id]/files/route.js.nft.json +1 -0
  484. package/web/.next/server/app/api/applications/[id]/files/route_client-reference-manifest.js +2 -0
  485. package/web/.next/server/app/api/applications/[id]/files/watch/route/app-paths-manifest.json +3 -0
  486. package/web/.next/server/app/api/applications/[id]/files/watch/route/build-manifest.json +11 -0
  487. package/web/.next/server/app/api/applications/[id]/files/watch/route/server-reference-manifest.json +4 -0
  488. package/web/.next/server/app/api/applications/[id]/files/watch/route.js +6 -0
  489. package/web/.next/server/app/api/applications/[id]/files/watch/route.js.map +5 -0
  490. package/web/.next/server/app/api/applications/[id]/files/watch/route.js.nft.json +1 -0
  491. package/web/.next/server/app/api/applications/[id]/files/watch/route_client-reference-manifest.js +2 -0
  492. package/web/.next/server/app/api/attachments/preview/route.js +1 -1
  493. package/web/.next/server/app/api/attachments/preview/route.js.nft.json +1 -1
  494. package/web/.next/server/app/api/directory/list/route.js +1 -1
  495. package/web/.next/server/app/api/directory/list/route.js.nft.json +1 -1
  496. package/web/.next/server/app/api/evidence/route.js +1 -1
  497. package/web/.next/server/app/api/evidence/route.js.nft.json +1 -1
  498. package/web/.next/server/app/api/feature-logs/route.js +1 -1
  499. package/web/.next/server/app/api/feature-logs/route.js.nft.json +1 -1
  500. package/web/.next/server/app/api/graph-data/route.js +1 -1
  501. package/web/.next/server/app/api/graph-data/route.js.nft.json +1 -1
  502. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js +1 -1
  503. package/web/.next/server/app/api/interactive/chat/[featureId]/messages/route.js.nft.json +1 -1
  504. package/web/.next/server/app/api/interactive/chat/turn-statuses/stream/route/app-paths-manifest.json +3 -0
  505. package/web/.next/server/app/api/interactive/chat/turn-statuses/stream/route/build-manifest.json +11 -0
  506. package/web/.next/server/app/api/interactive/chat/turn-statuses/stream/route/server-reference-manifest.json +4 -0
  507. package/web/.next/server/app/api/interactive/chat/turn-statuses/stream/route.js +6 -0
  508. package/web/.next/server/app/api/interactive/chat/turn-statuses/stream/route.js.map +5 -0
  509. package/web/.next/server/app/api/interactive/chat/turn-statuses/stream/route.js.nft.json +1 -0
  510. package/web/.next/server/app/api/interactive/chat/turn-statuses/stream/route_client-reference-manifest.js +2 -0
  511. package/web/.next/server/app/api/sessions/route.js +1 -1
  512. package/web/.next/server/app/api/sessions/route.js.nft.json +1 -1
  513. package/web/.next/server/app/api/sessions-batch/route.js +1 -1
  514. package/web/.next/server/app/api/sessions-batch/route.js.nft.json +1 -1
  515. package/web/.next/server/app/api/terminal/[sessionId]/input/route/app-paths-manifest.json +3 -0
  516. package/web/.next/server/app/api/terminal/[sessionId]/input/route/build-manifest.json +11 -0
  517. package/web/.next/server/app/api/terminal/[sessionId]/input/route/server-reference-manifest.json +4 -0
  518. package/web/.next/server/app/api/terminal/[sessionId]/input/route.js +6 -0
  519. package/web/.next/server/app/api/terminal/[sessionId]/input/route.js.map +5 -0
  520. package/web/.next/server/app/api/terminal/[sessionId]/input/route.js.nft.json +1 -0
  521. package/web/.next/server/app/api/terminal/[sessionId]/input/route_client-reference-manifest.js +2 -0
  522. package/web/.next/server/app/api/terminal/[sessionId]/resize/route/app-paths-manifest.json +3 -0
  523. package/web/.next/server/app/api/terminal/[sessionId]/resize/route/build-manifest.json +11 -0
  524. package/web/.next/server/app/api/terminal/[sessionId]/resize/route/server-reference-manifest.json +4 -0
  525. package/web/.next/server/app/api/terminal/[sessionId]/resize/route.js +6 -0
  526. package/web/.next/server/app/api/terminal/[sessionId]/resize/route.js.map +5 -0
  527. package/web/.next/server/app/api/terminal/[sessionId]/resize/route.js.nft.json +1 -0
  528. package/web/.next/server/app/api/terminal/[sessionId]/resize/route_client-reference-manifest.js +2 -0
  529. package/web/.next/server/app/api/terminal/[sessionId]/route/app-paths-manifest.json +3 -0
  530. package/web/.next/server/app/api/terminal/[sessionId]/route/build-manifest.json +11 -0
  531. package/web/.next/server/app/api/terminal/[sessionId]/route/server-reference-manifest.json +4 -0
  532. package/web/.next/server/app/api/terminal/[sessionId]/route.js +6 -0
  533. package/web/.next/server/app/api/terminal/[sessionId]/route.js.map +5 -0
  534. package/web/.next/server/app/api/terminal/[sessionId]/route.js.nft.json +1 -0
  535. package/web/.next/server/app/api/terminal/[sessionId]/route_client-reference-manifest.js +2 -0
  536. package/web/.next/server/app/api/terminal/[sessionId]/stream/route/app-paths-manifest.json +3 -0
  537. package/web/.next/server/app/api/terminal/[sessionId]/stream/route/build-manifest.json +11 -0
  538. package/web/.next/server/app/api/terminal/[sessionId]/stream/route/server-reference-manifest.json +4 -0
  539. package/web/.next/server/app/api/terminal/[sessionId]/stream/route.js +6 -0
  540. package/web/.next/server/app/api/terminal/[sessionId]/stream/route.js.map +5 -0
  541. package/web/.next/server/app/api/terminal/[sessionId]/stream/route.js.nft.json +1 -0
  542. package/web/.next/server/app/api/terminal/[sessionId]/stream/route_client-reference-manifest.js +2 -0
  543. package/web/.next/server/app/api/terminal/route/app-paths-manifest.json +3 -0
  544. package/web/.next/server/app/api/terminal/route/build-manifest.json +11 -0
  545. package/web/.next/server/app/api/terminal/route/server-reference-manifest.json +4 -0
  546. package/web/.next/server/app/api/terminal/route.js +6 -0
  547. package/web/.next/server/app/api/terminal/route.js.map +5 -0
  548. package/web/.next/server/app/api/terminal/route.js.nft.json +1 -0
  549. package/web/.next/server/app/api/terminal/route_client-reference-manifest.js +2 -0
  550. package/web/.next/server/app/application/[id]/page/app-paths-manifest.json +3 -0
  551. package/web/.next/server/app/application/[id]/page/build-manifest.json +18 -0
  552. package/web/.next/server/app/application/[id]/page/next-font-manifest.json +6 -0
  553. package/web/.next/server/app/application/[id]/page/react-loadable-manifest.json +8 -0
  554. package/web/.next/server/app/application/[id]/page/server-reference-manifest.json +230 -0
  555. package/web/.next/server/app/application/[id]/page.js +19 -0
  556. package/web/.next/server/app/application/[id]/page.js.map +5 -0
  557. package/web/.next/server/app/application/[id]/page.js.nft.json +1 -0
  558. package/web/.next/server/app/application/[id]/page_client-reference-manifest.js +2 -0
  559. package/web/.next/server/app/features/page/build-manifest.json +3 -3
  560. package/web/.next/server/app/features/page/server-reference-manifest.json +27 -12
  561. package/web/.next/server/app/features/page.js +2 -2
  562. package/web/.next/server/app/features/page.js.nft.json +1 -1
  563. package/web/.next/server/app/features/page_client-reference-manifest.js +1 -1
  564. package/web/.next/server/app/settings/page/build-manifest.json +3 -3
  565. package/web/.next/server/app/settings/page/server-reference-manifest.json +33 -18
  566. package/web/.next/server/app/settings/page.js +2 -2
  567. package/web/.next/server/app/settings/page.js.nft.json +1 -1
  568. package/web/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  569. package/web/.next/server/app/skills/page/build-manifest.json +3 -3
  570. package/web/.next/server/app/skills/page/server-reference-manifest.json +56 -26
  571. package/web/.next/server/app/skills/page.js +4 -3
  572. package/web/.next/server/app/skills/page.js.nft.json +1 -1
  573. package/web/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  574. package/web/.next/server/app/tools/page/build-manifest.json +3 -3
  575. package/web/.next/server/app/tools/page/server-reference-manifest.json +52 -22
  576. package/web/.next/server/app/tools/page.js +3 -2
  577. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  578. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  579. package/web/.next/server/app/version/page/build-manifest.json +3 -3
  580. package/web/.next/server/app/version/page/server-reference-manifest.json +27 -12
  581. package/web/.next/server/app/version/page.js +3 -3
  582. package/web/.next/server/app/version/page.js.nft.json +1 -1
  583. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  584. package/web/.next/server/app-paths-manifest.json +11 -0
  585. package/web/.next/server/chunks/0d725_next-internal_server_app_api_applications_[id]_files_raw_route_actions_69e55b18.js +3 -0
  586. package/web/.next/server/chunks/0d725_next-internal_server_app_api_applications_[id]_files_raw_route_actions_69e55b18.js.map +1 -0
  587. package/web/.next/server/chunks/0d725_next-internal_server_app_api_terminal_[sessionId]_resize_route_actions_068451e5.js +3 -0
  588. package/web/.next/server/chunks/0d725_next-internal_server_app_api_terminal_[sessionId]_resize_route_actions_068451e5.js.map +1 -0
  589. package/web/.next/server/chunks/0d725_next-internal_server_app_api_terminal_[sessionId]_stream_route_actions_475d5f68.js +3 -0
  590. package/web/.next/server/chunks/0d725_next-internal_server_app_api_terminal_[sessionId]_stream_route_actions_475d5f68.js.map +1 -0
  591. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js +1 -1
  592. package/web/.next/server/chunks/403f9_next_dist_esm_build_templates_app-route_370c43b1.js.map +1 -1
  593. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_terminal_[sessionId]_route_actions_20e0d9a3.js +3 -0
  594. package/web/.next/server/chunks/744ca_web__next-internal_server_app_api_terminal_[sessionId]_route_actions_20e0d9a3.js.map +1 -0
  595. package/web/.next/server/chunks/8ba4b_server_app_api_applications_[id]_files_content_route_actions_b0c05593.js +3 -0
  596. package/web/.next/server/chunks/8ba4b_server_app_api_applications_[id]_files_content_route_actions_b0c05593.js.map +1 -0
  597. package/web/.next/server/chunks/8ba4b_server_app_api_applications_[id]_files_watch_route_actions_30d3aeeb.js +3 -0
  598. package/web/.next/server/chunks/8ba4b_server_app_api_applications_[id]_files_watch_route_actions_30d3aeeb.js.map +1 -0
  599. package/web/.next/server/chunks/8ba4b_server_app_api_interactive_chat_turn-statuses_stream_route_actions_52514889.js +3 -0
  600. package/web/.next/server/chunks/8ba4b_server_app_api_interactive_chat_turn-statuses_stream_route_actions_52514889.js.map +1 -0
  601. package/web/.next/server/chunks/[root-of-the-server]__038012df._.js +3 -0
  602. package/web/.next/server/chunks/[root-of-the-server]__038012df._.js.map +1 -0
  603. package/web/.next/server/chunks/[root-of-the-server]__0e3323be._.js +3 -0
  604. package/web/.next/server/chunks/[root-of-the-server]__0e3323be._.js.map +1 -0
  605. package/web/.next/server/chunks/[root-of-the-server]__38b9b39e._.js +3 -0
  606. package/web/.next/server/chunks/[root-of-the-server]__38b9b39e._.js.map +1 -0
  607. package/web/.next/server/chunks/[root-of-the-server]__3c22f57d._.js +3 -0
  608. package/web/.next/server/chunks/[root-of-the-server]__3c22f57d._.js.map +1 -0
  609. package/web/.next/server/chunks/[root-of-the-server]__4906ab60._.js +3 -0
  610. package/web/.next/server/chunks/[root-of-the-server]__4906ab60._.js.map +1 -0
  611. package/web/.next/server/chunks/{[root-of-the-server]__2f61738a._.js → [root-of-the-server]__4eb2c4e4._.js} +2 -2
  612. package/web/.next/server/chunks/{[root-of-the-server]__acea6565._.js → [root-of-the-server]__5e3c6f3a._.js} +2 -2
  613. package/web/.next/server/chunks/[root-of-the-server]__72175657._.js +9 -0
  614. package/web/.next/server/chunks/[root-of-the-server]__72175657._.js.map +1 -0
  615. package/web/.next/server/chunks/{[root-of-the-server]__31598852._.js → [root-of-the-server]__86965b92._.js} +2 -2
  616. package/web/.next/server/chunks/[root-of-the-server]__8a281f8d._.js +19 -13
  617. package/web/.next/server/chunks/[root-of-the-server]__8a281f8d._.js.map +1 -1
  618. package/web/.next/server/chunks/[root-of-the-server]__92409aeb._.js +3 -0
  619. package/web/.next/server/chunks/[root-of-the-server]__92409aeb._.js.map +1 -0
  620. package/web/.next/server/chunks/[root-of-the-server]__a402b567._.js +1 -1
  621. package/web/.next/server/chunks/[root-of-the-server]__a52f55af._.js +6 -0
  622. package/web/.next/server/chunks/[root-of-the-server]__a52f55af._.js.map +1 -0
  623. package/web/.next/server/chunks/{[root-of-the-server]__2b1074db._.js → [root-of-the-server]__ac92afe7._.js} +2 -2
  624. package/web/.next/server/chunks/{[root-of-the-server]__2b1074db._.js.map → [root-of-the-server]__ac92afe7._.js.map} +1 -1
  625. package/web/.next/server/chunks/[root-of-the-server]__b2a4bfcc._.js +3 -0
  626. package/web/.next/server/chunks/{[root-of-the-server]__c78383b1._.js.map → [root-of-the-server]__b2a4bfcc._.js.map} +1 -1
  627. package/web/.next/server/chunks/{[root-of-the-server]__e3692208._.js → [root-of-the-server]__c8f90b29._.js} +2 -2
  628. package/web/.next/server/chunks/{[root-of-the-server]__2b71641f._.js → [root-of-the-server]__cbf5b20b._.js} +2 -2
  629. package/web/.next/server/chunks/{[root-of-the-server]__2b71641f._.js.map → [root-of-the-server]__cbf5b20b._.js.map} +1 -1
  630. package/web/.next/server/chunks/[root-of-the-server]__ccfcaa08._.js +3 -0
  631. package/web/.next/server/chunks/[root-of-the-server]__ccfcaa08._.js.map +1 -0
  632. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js +1 -1
  633. package/web/.next/server/chunks/[root-of-the-server]__cd67a84c._.js.map +1 -1
  634. package/web/.next/server/chunks/[root-of-the-server]__deb67d81._.js +9 -0
  635. package/web/.next/server/chunks/[root-of-the-server]__deb67d81._.js.map +1 -0
  636. package/web/.next/server/chunks/{[root-of-the-server]__fc6fd958._.js → [root-of-the-server]__ecd08b79._.js} +2 -2
  637. package/web/.next/server/chunks/b1a17_presentation_web__next-internal_server_app_api_terminal_route_actions_f93ca3cb.js +3 -0
  638. package/web/.next/server/chunks/b1a17_presentation_web__next-internal_server_app_api_terminal_route_actions_f93ca3cb.js.map +1 -0
  639. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_applications_[id]_files_route_actions_e1af3c3a.js +3 -0
  640. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_applications_[id]_files_route_actions_e1af3c3a.js.map +1 -0
  641. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_terminal_[sessionId]_input_route_actions_b7785e18.js +3 -0
  642. package/web/.next/server/chunks/f3a1f__next-internal_server_app_api_terminal_[sessionId]_input_route_actions_b7785e18.js.map +1 -0
  643. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js +1 -1
  644. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_create-drawer-client_tsx_5e26fc0a._.js.map +1 -1
  645. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js +2 -2
  646. package/web/.next/server/chunks/ssr/744ca_web_components_common_control-center-drawer_feature-drawer-client_tsx_e9755fc8._.js.map +1 -1
  647. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_5da25833._.js +3 -0
  648. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_5da25833._.js.map +1 -0
  649. package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js +3 -0
  650. package/web/.next/server/chunks/ssr/[root-of-the-server]__013a0318._.js.map +1 -0
  651. package/web/.next/server/chunks/ssr/{[root-of-the-server]__d1040bd1._.js → [root-of-the-server]__090f24cb._.js} +2 -2
  652. package/web/.next/server/chunks/ssr/{[root-of-the-server]__d1040bd1._.js.map → [root-of-the-server]__090f24cb._.js.map} +1 -1
  653. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js +4 -0
  654. package/web/.next/server/chunks/ssr/[root-of-the-server]__17dadd08._.js.map +1 -0
  655. package/web/.next/server/chunks/ssr/[root-of-the-server]__1925bef0._.js +4 -0
  656. package/web/.next/server/chunks/ssr/[root-of-the-server]__1925bef0._.js.map +1 -0
  657. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js +4 -0
  658. package/web/.next/server/chunks/ssr/[root-of-the-server]__1a9687c4._.js.map +1 -0
  659. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js +12 -0
  660. package/web/.next/server/chunks/ssr/[root-of-the-server]__24756fa9._.js.map +1 -0
  661. package/web/.next/server/chunks/ssr/[root-of-the-server]__4ee8be85._.js +4 -0
  662. package/web/.next/server/chunks/ssr/[root-of-the-server]__4ee8be85._.js.map +1 -0
  663. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js +3 -0
  664. package/web/.next/server/chunks/ssr/[root-of-the-server]__70986695._.js.map +1 -0
  665. package/web/.next/server/chunks/ssr/{[root-of-the-server]__efeeaed4._.js → [root-of-the-server]__7aa484f5._.js} +2 -2
  666. package/web/.next/server/chunks/ssr/{[root-of-the-server]__efeeaed4._.js.map → [root-of-the-server]__7aa484f5._.js.map} +1 -1
  667. package/web/.next/server/chunks/ssr/{[root-of-the-server]__86ff0bc5._.js → [root-of-the-server]__87bc4dac._.js} +3 -3
  668. package/web/.next/server/chunks/ssr/[root-of-the-server]__87bc4dac._.js.map +1 -0
  669. package/web/.next/server/chunks/ssr/{[root-of-the-server]__e0592c69._.js → [root-of-the-server]__894882ab._.js} +2 -2
  670. package/web/.next/server/chunks/ssr/[root-of-the-server]__a3a4ddef._.js +3 -0
  671. package/web/.next/server/chunks/ssr/[root-of-the-server]__a3a4ddef._.js.map +1 -0
  672. package/web/.next/server/chunks/ssr/[root-of-the-server]__a4222b95._.js +3 -0
  673. package/web/.next/server/chunks/ssr/[root-of-the-server]__a4222b95._.js.map +1 -0
  674. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js +3 -0
  675. package/web/.next/server/chunks/ssr/[root-of-the-server]__a5ea76a6._.js.map +1 -0
  676. package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js +3 -0
  677. package/web/.next/server/chunks/ssr/[root-of-the-server]__a6f2b763._.js.map +1 -0
  678. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js +4 -0
  679. package/web/.next/server/chunks/ssr/[root-of-the-server]__bb391c45._.js.map +1 -0
  680. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js +4 -0
  681. package/web/.next/server/chunks/ssr/[root-of-the-server]__dd3e834e._.js.map +1 -0
  682. package/web/.next/server/chunks/ssr/{[root-of-the-server]__357d99f9._.js → [root-of-the-server]__e265da61._.js} +2 -2
  683. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js +3 -0
  684. package/web/.next/server/chunks/ssr/[root-of-the-server]__f3ca7bea._.js.map +1 -0
  685. package/web/.next/server/chunks/ssr/_0277d3b5._.js +21 -0
  686. package/web/.next/server/chunks/ssr/_0277d3b5._.js.map +1 -0
  687. package/web/.next/server/chunks/ssr/_1879404a._.js +1 -1
  688. package/web/.next/server/chunks/ssr/_1879404a._.js.map +1 -1
  689. package/web/.next/server/chunks/ssr/_1e08a336._.js +1 -1
  690. package/web/.next/server/chunks/ssr/_295fffde._.js.map +1 -1
  691. package/web/.next/server/chunks/ssr/_2bea8166._.js +4 -0
  692. package/web/.next/server/chunks/ssr/_2bea8166._.js.map +1 -0
  693. package/web/.next/server/chunks/ssr/_44531b76._.js +9 -0
  694. package/web/.next/server/chunks/ssr/_44531b76._.js.map +1 -0
  695. package/web/.next/server/chunks/ssr/_45496654._.js +1 -1
  696. package/web/.next/server/chunks/ssr/_45496654._.js.map +1 -1
  697. package/web/.next/server/chunks/ssr/_56b9d60f._.js +1 -1
  698. package/web/.next/server/chunks/ssr/_56b9d60f._.js.map +1 -1
  699. package/web/.next/server/chunks/ssr/_5bf2415e._.js +7 -0
  700. package/web/.next/server/chunks/ssr/_5bf2415e._.js.map +1 -0
  701. package/web/.next/server/chunks/ssr/_82c47cc2._.js +3 -0
  702. package/web/.next/server/chunks/ssr/{_bb09579b._.js.map → _82c47cc2._.js.map} +1 -1
  703. package/web/.next/server/chunks/ssr/_869a3a15._.js +3 -0
  704. package/web/.next/server/chunks/ssr/_869a3a15._.js.map +1 -0
  705. package/web/.next/server/chunks/ssr/{_7d50fed0._.js → _946a7fc6._.js} +3 -3
  706. package/web/.next/server/chunks/ssr/_946a7fc6._.js.map +1 -0
  707. package/web/.next/server/chunks/ssr/_948d3cc6._.js +3 -0
  708. package/web/.next/server/chunks/ssr/_948d3cc6._.js.map +1 -0
  709. package/web/.next/server/chunks/ssr/{_5889596f._.js → _96718a00._.js} +2 -2
  710. package/web/.next/server/chunks/ssr/_96718a00._.js.map +1 -0
  711. package/web/.next/server/chunks/ssr/_9df33116._.js +3 -0
  712. package/web/.next/server/chunks/ssr/_9df33116._.js.map +1 -0
  713. package/web/.next/server/chunks/ssr/_b227ff50._.js +3 -0
  714. package/web/.next/server/chunks/ssr/_b227ff50._.js.map +1 -0
  715. package/web/.next/server/chunks/ssr/_e071ba48._.js +3 -0
  716. package/web/.next/server/chunks/ssr/_e071ba48._.js.map +1 -0
  717. package/web/.next/server/chunks/ssr/_ee88b448._.js +3 -0
  718. package/web/.next/server/chunks/ssr/_ee88b448._.js.map +1 -0
  719. package/web/.next/server/chunks/ssr/_eff1b518._.js +3 -0
  720. package/web/.next/server/chunks/ssr/_eff1b518._.js.map +1 -0
  721. package/web/.next/server/chunks/ssr/_f227429a._.js +3 -0
  722. package/web/.next/server/chunks/ssr/_f227429a._.js.map +1 -0
  723. package/web/.next/server/chunks/ssr/{_496c9117._.js → _f86fc1bf._.js} +2 -2
  724. package/web/.next/server/chunks/ssr/_f86fc1bf._.js.map +1 -0
  725. package/web/.next/server/chunks/ssr/_f8c55130._.js +4 -0
  726. package/web/.next/server/chunks/ssr/_f8c55130._.js.map +1 -0
  727. package/web/.next/server/chunks/ssr/_ff6f3257._.js +3 -0
  728. package/web/.next/server/chunks/ssr/_ff6f3257._.js.map +1 -0
  729. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js +1 -1
  730. package/web/.next/server/chunks/ssr/b1a17_presentation_web_components_features_settings_settings-page-client_tsx_6ed9d5f8._.js.map +1 -1
  731. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js +1 -1
  732. package/web/.next/server/chunks/ssr/f3a1f_components_common_control-center-drawer_repository-drawer-client_tsx_39a00c03._.js.map +1 -1
  733. package/web/.next/server/chunks/ssr/{_1b7dae9a._.js → f7870_sonner_dist_index_mjs_dbf63824._.js} +2 -2
  734. package/web/.next/server/chunks/ssr/f7870_sonner_dist_index_mjs_dbf63824._.js.map +1 -0
  735. package/web/.next/server/chunks/ssr/node_modules__pnpm_1300ae39._.js +3 -0
  736. package/web/.next/server/chunks/ssr/node_modules__pnpm_1300ae39._.js.map +1 -0
  737. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js +3 -0
  738. package/web/.next/server/chunks/ssr/src_presentation_web_36f2bc45._.js.map +1 -0
  739. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js +3 -0
  740. package/web/.next/server/chunks/ssr/src_presentation_web_486908de._.js.map +1 -0
  741. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js +3 -0
  742. package/web/.next/server/chunks/ssr/src_presentation_web_5c3596bc._.js.map +1 -0
  743. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js +3 -0
  744. package/web/.next/server/chunks/ssr/src_presentation_web_6159fef8._.js.map +1 -0
  745. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js +3 -0
  746. package/web/.next/server/chunks/ssr/src_presentation_web_6326f81e._.js.map +1 -0
  747. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js +3 -0
  748. package/web/.next/server/chunks/ssr/src_presentation_web_6b2fdcd8._.js.map +1 -0
  749. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js +3 -0
  750. package/web/.next/server/chunks/ssr/src_presentation_web_74703c9f._.js.map +1 -0
  751. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js +3 -0
  752. package/web/.next/server/chunks/ssr/src_presentation_web_a8056dac._.js.map +1 -0
  753. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js +3 -0
  754. package/web/.next/server/chunks/ssr/src_presentation_web_ad42cc73._.js.map +1 -0
  755. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js +32 -0
  756. package/web/.next/server/chunks/ssr/src_presentation_web_app_actions_open-ide_ts_baaca5d5._.js.map +1 -0
  757. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js +3 -0
  758. package/web/.next/server/chunks/ssr/src_presentation_web_b00bfb08._.js.map +1 -0
  759. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js +3 -0
  760. package/web/.next/server/chunks/ssr/src_presentation_web_ca99d62d._.js.map +1 -0
  761. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js +1 -1
  762. package/web/.next/server/chunks/ssr/src_presentation_web_components_895e5bfa._.js.map +1 -1
  763. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js +3 -0
  764. package/web/.next/server/chunks/ssr/src_presentation_web_components_common_base-drawer_base-drawer_tsx_97dfbbc8._.js.map +1 -0
  765. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js +3 -0
  766. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_control-center_7ac3562e._.js.map +1 -0
  767. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js +1 -1
  768. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_skills_8a174cac._.js.map +1 -1
  769. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_3d0aa70c._.js +1 -1
  770. package/web/.next/server/chunks/ssr/src_presentation_web_components_features_tools_tools-page-client_tsx_3d0aa70c._.js.map +1 -1
  771. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js +3 -0
  772. package/web/.next/server/chunks/ssr/src_presentation_web_f1edcf5e._.js.map +1 -0
  773. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js +3 -0
  774. package/web/.next/server/chunks/ssr/src_presentation_web_f9436804._.js.map +1 -0
  775. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js +1 -1
  776. package/web/.next/server/chunks/ssr/translations_23dd5e7e._.js.map +1 -1
  777. package/web/.next/server/middleware-build-manifest.js +3 -3
  778. package/web/.next/server/pages/500.html +2 -2
  779. package/web/.next/server/server-reference-manifest.js +1 -1
  780. package/web/.next/server/server-reference-manifest.json +1084 -703
  781. package/web/.next/static/chunks/{d26d0a7bc1a9b5a4.js → 010215070d22b4e6.js} +2 -2
  782. package/web/.next/static/chunks/06b9d6dbf635c370.css +1 -0
  783. package/web/.next/static/chunks/0a67d6e50e27452e.js +1 -0
  784. package/web/.next/static/chunks/11ef340e4cfbdbe6.js +1 -0
  785. package/web/.next/static/chunks/1ae0cf5be30ef398.js +1 -0
  786. package/web/.next/static/chunks/2a64d4b1a285fac5.js +1 -0
  787. package/web/.next/static/chunks/2ddda685a9100fd8.js +19 -0
  788. package/web/.next/static/chunks/2fe20598e1b4793a.js +5 -0
  789. package/web/.next/static/chunks/3ee4449e73eb4917.js +1 -0
  790. package/web/.next/static/chunks/{eb1ca1b0a34166f5.js → 66261997e6f830f1.js} +1 -1
  791. package/web/.next/static/chunks/6ecbcce796343f44.js +1 -0
  792. package/web/.next/static/chunks/7c3fe3c694874dea.js +1 -0
  793. package/web/.next/static/chunks/8f783e12274578c2.js +1 -0
  794. package/web/.next/static/chunks/927442d2628f6e22.js +1 -0
  795. package/web/.next/static/chunks/9370d114ce5b69fb.js +7 -0
  796. package/web/.next/static/chunks/b17c2d874c373d4e.js +1 -0
  797. package/web/.next/static/chunks/b2a010b2ba8710f4.js +1 -0
  798. package/web/.next/static/chunks/b7b85a15f387ab7c.css +1 -0
  799. package/web/.next/static/chunks/b99506a6f7bc2fa8.js +1 -0
  800. package/web/.next/static/chunks/{5a2bdbc57ed1368e.js → c1559152cf2ab9c6.js} +1 -1
  801. package/web/.next/static/chunks/d2182843a406b5a7.js +5 -0
  802. package/web/.next/static/chunks/edf812d5efffa096.js +7 -0
  803. package/web/.next/static/chunks/{f5c61237675acc89.js → ee9a716c6424ff25.js} +1 -1
  804. package/web/.next/static/chunks/f7a55ba1f789c55f.js +1 -0
  805. package/web/.next/static/chunks/fcf27468f8026dbd.js +1 -0
  806. package/web/.next/static/chunks/fe8bcc8ff36a61c0.js +1 -0
  807. package/web/.next/static/chunks/{turbopack-fa58b7ea4a4b26e7.js → turbopack-d16f2f815897af68.js} +1 -1
  808. package/web/next.config.mjs +1 -1
  809. package/web/package.json +7 -0
  810. package/web/.next/server/chunks/[root-of-the-server]__c78383b1._.js +0 -3
  811. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_bdff55d6.js +0 -3
  812. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_adopt_page_actions_bdff55d6.js.map +0 -1
  813. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_6aa77d75.js +0 -3
  814. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_@drawer_chat_page_actions_6aa77d75.js.map +0 -1
  815. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_24adb073.js +0 -3
  816. package/web/.next/server/chunks/ssr/744ca_web__next-internal_server_app_(dashboard)_chat_page_actions_24adb073.js.map +0 -1
  817. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_281e0ef8._.js +0 -3
  818. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_281e0ef8._.js.map +0 -1
  819. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_a593f310._.js +0 -3
  820. package/web/.next/server/chunks/ssr/7f428_lucide-react_dist_esm_icons_a593f310._.js.map +0 -1
  821. package/web/.next/server/chunks/ssr/[root-of-the-server]__16c1388b._.js +0 -3
  822. package/web/.next/server/chunks/ssr/[root-of-the-server]__16c1388b._.js.map +0 -1
  823. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js +0 -4
  824. package/web/.next/server/chunks/ssr/[root-of-the-server]__1f389e5d._.js.map +0 -1
  825. package/web/.next/server/chunks/ssr/[root-of-the-server]__22d17c66._.js +0 -3
  826. package/web/.next/server/chunks/ssr/[root-of-the-server]__22d17c66._.js.map +0 -1
  827. package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js +0 -4
  828. package/web/.next/server/chunks/ssr/[root-of-the-server]__6c7d3936._.js.map +0 -1
  829. package/web/.next/server/chunks/ssr/[root-of-the-server]__75070d2e._.js +0 -3
  830. package/web/.next/server/chunks/ssr/[root-of-the-server]__75070d2e._.js.map +0 -1
  831. package/web/.next/server/chunks/ssr/[root-of-the-server]__7c634c0f._.js +0 -4
  832. package/web/.next/server/chunks/ssr/[root-of-the-server]__7c634c0f._.js.map +0 -1
  833. package/web/.next/server/chunks/ssr/[root-of-the-server]__86ff0bc5._.js.map +0 -1
  834. package/web/.next/server/chunks/ssr/[root-of-the-server]__8f02b364._.js +0 -4
  835. package/web/.next/server/chunks/ssr/[root-of-the-server]__8f02b364._.js.map +0 -1
  836. package/web/.next/server/chunks/ssr/[root-of-the-server]__9dde817e._.js +0 -3
  837. package/web/.next/server/chunks/ssr/[root-of-the-server]__9dde817e._.js.map +0 -1
  838. package/web/.next/server/chunks/ssr/[root-of-the-server]__a00db173._.js +0 -3
  839. package/web/.next/server/chunks/ssr/[root-of-the-server]__a00db173._.js.map +0 -1
  840. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js +0 -4
  841. package/web/.next/server/chunks/ssr/[root-of-the-server]__b7b96453._.js.map +0 -1
  842. package/web/.next/server/chunks/ssr/[root-of-the-server]__cf751517._.js +0 -4
  843. package/web/.next/server/chunks/ssr/[root-of-the-server]__cf751517._.js.map +0 -1
  844. package/web/.next/server/chunks/ssr/[root-of-the-server]__e5f31e9a._.js +0 -3
  845. package/web/.next/server/chunks/ssr/[root-of-the-server]__e5f31e9a._.js.map +0 -1
  846. package/web/.next/server/chunks/ssr/_15f6bbd4._.js +0 -3
  847. package/web/.next/server/chunks/ssr/_15f6bbd4._.js.map +0 -1
  848. package/web/.next/server/chunks/ssr/_1b7dae9a._.js.map +0 -1
  849. package/web/.next/server/chunks/ssr/_396a6887._.js +0 -3
  850. package/web/.next/server/chunks/ssr/_396a6887._.js.map +0 -1
  851. package/web/.next/server/chunks/ssr/_43ba79e7._.js +0 -3
  852. package/web/.next/server/chunks/ssr/_43ba79e7._.js.map +0 -1
  853. package/web/.next/server/chunks/ssr/_496c9117._.js.map +0 -1
  854. package/web/.next/server/chunks/ssr/_49b8d085._.js +0 -3
  855. package/web/.next/server/chunks/ssr/_49b8d085._.js.map +0 -1
  856. package/web/.next/server/chunks/ssr/_5889596f._.js.map +0 -1
  857. package/web/.next/server/chunks/ssr/_6abfa39e._.js +0 -3
  858. package/web/.next/server/chunks/ssr/_6abfa39e._.js.map +0 -1
  859. package/web/.next/server/chunks/ssr/_74a1a173._.js +0 -7
  860. package/web/.next/server/chunks/ssr/_74a1a173._.js.map +0 -1
  861. package/web/.next/server/chunks/ssr/_7cb0396e._.js +0 -3
  862. package/web/.next/server/chunks/ssr/_7cb0396e._.js.map +0 -1
  863. package/web/.next/server/chunks/ssr/_7d50fed0._.js.map +0 -1
  864. package/web/.next/server/chunks/ssr/_9bbdd461._.js +0 -4
  865. package/web/.next/server/chunks/ssr/_9bbdd461._.js.map +0 -1
  866. package/web/.next/server/chunks/ssr/_b7a43c05._.js +0 -3
  867. package/web/.next/server/chunks/ssr/_b7a43c05._.js.map +0 -1
  868. package/web/.next/server/chunks/ssr/_bb09579b._.js +0 -3
  869. package/web/.next/server/chunks/ssr/_bcd239dd._.js +0 -3
  870. package/web/.next/server/chunks/ssr/_bcd239dd._.js.map +0 -1
  871. package/web/.next/server/chunks/ssr/_e680c57c._.js +0 -9
  872. package/web/.next/server/chunks/ssr/_e680c57c._.js.map +0 -1
  873. package/web/.next/server/chunks/ssr/node_modules__pnpm_63d47a3e._.js +0 -3
  874. package/web/.next/server/chunks/ssr/node_modules__pnpm_63d47a3e._.js.map +0 -1
  875. package/web/.next/server/chunks/ssr/node_modules__pnpm_ef15a0bd._.js +0 -3
  876. package/web/.next/server/chunks/ssr/node_modules__pnpm_ef15a0bd._.js.map +0 -1
  877. package/web/.next/server/chunks/ssr/src_presentation_web_0338c789._.js +0 -3
  878. package/web/.next/server/chunks/ssr/src_presentation_web_0338c789._.js.map +0 -1
  879. package/web/.next/server/chunks/ssr/src_presentation_web_071f1e80._.js +0 -5
  880. package/web/.next/server/chunks/ssr/src_presentation_web_071f1e80._.js.map +0 -1
  881. package/web/.next/server/chunks/ssr/src_presentation_web_55c1ff7d._.js +0 -3
  882. package/web/.next/server/chunks/ssr/src_presentation_web_55c1ff7d._.js.map +0 -1
  883. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js +0 -3
  884. package/web/.next/server/chunks/ssr/src_presentation_web_9a543843._.js.map +0 -1
  885. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_ad14a90f.js +0 -3
  886. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_(dashboard)_page_actions_ad14a90f.js.map +0 -1
  887. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js +0 -3
  888. package/web/.next/server/chunks/ssr/src_presentation_web_bade80bd._.js.map +0 -1
  889. package/web/.next/server/chunks/ssr/src_presentation_web_d5838156._.js +0 -3
  890. package/web/.next/server/chunks/ssr/src_presentation_web_d5838156._.js.map +0 -1
  891. package/web/.next/server/chunks/ssr/src_presentation_web_dc28bc60._.js +0 -5
  892. package/web/.next/server/chunks/ssr/src_presentation_web_dc28bc60._.js.map +0 -1
  893. package/web/.next/server/chunks/ssr/src_presentation_web_dcb020e3._.js +0 -3
  894. package/web/.next/server/chunks/ssr/src_presentation_web_dcb020e3._.js.map +0 -1
  895. package/web/.next/static/chunks/09edd35d194bec06.js +0 -5
  896. package/web/.next/static/chunks/124b79a5d2a760fb.css +0 -1
  897. package/web/.next/static/chunks/200e07d995bd9a42.js +0 -1
  898. package/web/.next/static/chunks/22e3a3738308da2e.js +0 -1
  899. package/web/.next/static/chunks/25d3c4d18b8aecff.js +0 -7
  900. package/web/.next/static/chunks/2ceebcc839ee0d4b.js +0 -1
  901. package/web/.next/static/chunks/34444901ca3a1c3b.js +0 -1
  902. package/web/.next/static/chunks/3cf86457869c47bc.js +0 -1
  903. package/web/.next/static/chunks/4052a4971fbbac9c.js +0 -1
  904. package/web/.next/static/chunks/55060446f5490f20.js +0 -3
  905. package/web/.next/static/chunks/59bff7b33ebe5f68.js +0 -1
  906. package/web/.next/static/chunks/8b0a9cb5109fe899.js +0 -1
  907. package/web/.next/static/chunks/971e52f3f386ccfd.js +0 -1
  908. package/web/.next/static/chunks/981c6f3f1db99b4e.js +0 -1
  909. package/web/.next/static/chunks/b63e6727c84f30e2.js +0 -1
  910. package/web/.next/static/chunks/c10c0d6d458453bc.js +0 -1
  911. package/web/.next/static/chunks/c94a6a3d54dd4997.js +0 -5
  912. package/web/.next/static/chunks/d04d868f0971941d.js +0 -1
  913. package/web/.next/static/chunks/e7502fb670f32235.js +0 -1
  914. package/web/.next/static/chunks/fb7211d94190d010.js +0 -5
  915. /package/web/.next/server/chunks/{[root-of-the-server]__2f61738a._.js.map → [root-of-the-server]__4eb2c4e4._.js.map} +0 -0
  916. /package/web/.next/server/chunks/{[root-of-the-server]__acea6565._.js.map → [root-of-the-server]__5e3c6f3a._.js.map} +0 -0
  917. /package/web/.next/server/chunks/{[root-of-the-server]__31598852._.js.map → [root-of-the-server]__86965b92._.js.map} +0 -0
  918. /package/web/.next/server/chunks/{[root-of-the-server]__e3692208._.js.map → [root-of-the-server]__c8f90b29._.js.map} +0 -0
  919. /package/web/.next/server/chunks/{[root-of-the-server]__fc6fd958._.js.map → [root-of-the-server]__ecd08b79._.js.map} +0 -0
  920. /package/web/.next/server/chunks/ssr/{[root-of-the-server]__e0592c69._.js.map → [root-of-the-server]__894882ab._.js.map} +0 -0
  921. /package/web/.next/server/chunks/ssr/{[root-of-the-server]__357d99f9._.js.map → [root-of-the-server]__e265da61._.js.map} +0 -0
  922. /package/web/.next/static/{mLJ1Qa4FUFmmZm0crRH2U → ex3OTWRXHxfwD9RkifALI}/_buildManifest.js +0 -0
  923. /package/web/.next/static/{mLJ1Qa4FUFmmZm0crRH2U → ex3OTWRXHxfwD9RkifALI}/_clientMiddlewareManifest.json +0 -0
  924. /package/web/.next/static/{mLJ1Qa4FUFmmZm0crRH2U → ex3OTWRXHxfwD9RkifALI}/_ssgManifest.js +0 -0
@@ -45,8 +45,8 @@ export async function getGitRepoInfo(repositoryPath, commitLimit = 8) {
45
45
  git(repositoryPath, ['stash', 'list']),
46
46
  // 6: working tree status
47
47
  git(repositoryPath, ['status', '--porcelain']),
48
- // 7: diff stats (uncommitted)
49
- git(repositoryPath, ['diff', '--shortstat']),
48
+ // 7: diff stats (uncommitted — includes staged + unstaged vs HEAD)
49
+ git(repositoryPath, ['diff', 'HEAD', '--shortstat']),
50
50
  ]);
51
51
  const val = (i) => (results[i].status === 'fulfilled' ? results[i].value : '');
52
52
  // Parse commits
@@ -0,0 +1,5 @@
1
+ import type { UpdateApplicationFields } from '../../../../../packages/core/src/application/use-cases/applications/update-application.use-case.js';
2
+ export declare function updateApplication(id: string, fields: UpdateApplicationFields): Promise<{
3
+ error?: string;
4
+ }>;
5
+ //# sourceMappingURL=update-application.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-application.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/web/app/actions/update-application.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,uBAAuB,EAExB,MAAM,6EAA6E,CAAC;AAErF,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAiB7B"}
@@ -0,0 +1,21 @@
1
+ 'use server';
2
+ import { revalidatePath } from 'next/cache';
3
+ import { resolve } from '../../lib/server-container.js';
4
+ export async function updateApplication(id, fields) {
5
+ if (!id?.trim()) {
6
+ return { error: 'Application ID is required' };
7
+ }
8
+ try {
9
+ const useCase = resolve('UpdateApplicationUseCase');
10
+ await useCase.execute(id, fields);
11
+ // Refresh server components that read the application — the
12
+ // application page itself, and the dashboard graph data.
13
+ revalidatePath(`/application/${id}`);
14
+ revalidatePath('/');
15
+ return {};
16
+ }
17
+ catch (error) {
18
+ const message = error instanceof Error ? error.message : 'Failed to update application';
19
+ return { error: message };
20
+ }
21
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * GET /api/applications/[id]/files/content?path=relative/file
3
+ * PUT /api/applications/[id]/files/content { path, content }
4
+ *
5
+ * Reads and writes a single text file inside an application's repository.
6
+ */
7
+ import type { NextRequest } from 'next/server';
8
+ export declare const dynamic = "force-dynamic";
9
+ interface RouteParams {
10
+ params: Promise<{
11
+ id: string;
12
+ }>;
13
+ }
14
+ export declare function GET(request: NextRequest, { params }: RouteParams): Promise<Response>;
15
+ export declare function PUT(request: NextRequest, { params }: RouteParams): Promise<Response>;
16
+ export {};
17
+ //# sourceMappingURL=route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/applications/[id]/files/content/route.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAK/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjC;AAUD,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAkB1F;AAOD,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAwB1F"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * GET /api/applications/[id]/files/content?path=relative/file
3
+ * PUT /api/applications/[id]/files/content { path, content }
4
+ *
5
+ * Reads and writes a single text file inside an application's repository.
6
+ */
7
+ import { resolve } from '../../../../../../lib/server-container.js';
8
+ export const dynamic = 'force-dynamic';
9
+ function errorStatus(message) {
10
+ if (/not found/i.test(message))
11
+ return 404;
12
+ if (/path is required/i.test(message))
13
+ return 400;
14
+ if (/escapes/i.test(message))
15
+ return 400;
16
+ if (/is a directory/i.test(message))
17
+ return 400;
18
+ return 500;
19
+ }
20
+ export async function GET(request, { params }) {
21
+ try {
22
+ const { id } = await params;
23
+ const url = new URL(request.url);
24
+ const pathParam = url.searchParams.get('path');
25
+ if (!pathParam) {
26
+ return Response.json({ error: 'path query parameter is required' }, { status: 400 });
27
+ }
28
+ const useCase = resolve('ReadApplicationFileUseCase');
29
+ const result = await useCase.execute({ applicationId: id, path: pathParam });
30
+ return Response.json(result);
31
+ }
32
+ catch (error) {
33
+ // eslint-disable-next-line no-console
34
+ console.error('[GET /api/applications/:id/files/content]', error);
35
+ const message = error instanceof Error ? error.message : String(error);
36
+ return Response.json({ error: message }, { status: errorStatus(message) });
37
+ }
38
+ }
39
+ export async function PUT(request, { params }) {
40
+ try {
41
+ const { id } = await params;
42
+ const body = (await request.json().catch(() => ({})));
43
+ if (!body.path || typeof body.path !== 'string') {
44
+ return Response.json({ error: 'path is required' }, { status: 400 });
45
+ }
46
+ if (typeof body.content !== 'string') {
47
+ return Response.json({ error: 'content must be a string' }, { status: 400 });
48
+ }
49
+ const useCase = resolve('WriteApplicationFileUseCase');
50
+ await useCase.execute({
51
+ applicationId: id,
52
+ path: body.path,
53
+ content: body.content,
54
+ });
55
+ return Response.json({ ok: true });
56
+ }
57
+ catch (error) {
58
+ // eslint-disable-next-line no-console
59
+ console.error('[PUT /api/applications/:id/files/content]', error);
60
+ const message = error instanceof Error ? error.message : String(error);
61
+ return Response.json({ error: message }, { status: errorStatus(message) });
62
+ }
63
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * GET /api/applications/[id]/files/raw?path=relative/asset.png
3
+ *
4
+ * Streams a file from an application's repository as raw bytes with a
5
+ * best-effort content-type. Used by the IDE tab to preview images and
6
+ * other binary assets without round-tripping them through JSON.
7
+ */
8
+ import { type NextRequest } from 'next/server';
9
+ export declare const dynamic = "force-dynamic";
10
+ interface RouteParams {
11
+ params: Promise<{
12
+ id: string;
13
+ }>;
14
+ }
15
+ export declare function GET(request: NextRequest, { params }: RouteParams): Promise<Response>;
16
+ export {};
17
+ //# sourceMappingURL=route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/applications/[id]/files/raw/route.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAI7D,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjC;AAWD,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAgC1F"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * GET /api/applications/[id]/files/raw?path=relative/asset.png
3
+ *
4
+ * Streams a file from an application's repository as raw bytes with a
5
+ * best-effort content-type. Used by the IDE tab to preview images and
6
+ * other binary assets without round-tripping them through JSON.
7
+ */
8
+ import { NextResponse } from 'next/server';
9
+ import { resolve } from '../../../../../../lib/server-container.js';
10
+ export const dynamic = 'force-dynamic';
11
+ function errorStatus(message) {
12
+ if (/not found/i.test(message))
13
+ return 404;
14
+ if (/path is required/i.test(message))
15
+ return 400;
16
+ if (/escapes/i.test(message))
17
+ return 400;
18
+ if (/is a directory/i.test(message))
19
+ return 400;
20
+ if (/size limit/i.test(message))
21
+ return 413;
22
+ return 500;
23
+ }
24
+ export async function GET(request, { params }) {
25
+ try {
26
+ const { id } = await params;
27
+ const url = new URL(request.url);
28
+ const pathParam = url.searchParams.get('path');
29
+ if (!pathParam) {
30
+ return Response.json({ error: 'path query parameter is required' }, { status: 400 });
31
+ }
32
+ const useCase = resolve('ReadApplicationFileRawUseCase');
33
+ const result = await useCase.execute({ applicationId: id, path: pathParam });
34
+ // Copy into a fresh ArrayBuffer so Next.js 16's BodyInit type constraint
35
+ // (which requires `ArrayBuffer`, not the wider `ArrayBufferLike`) is
36
+ // satisfied. The prior version passing a Node Buffer directly was being
37
+ // served with an incorrect length, causing the image to render broken.
38
+ const ab = new ArrayBuffer(result.buffer.byteLength);
39
+ new Uint8Array(ab).set(result.buffer);
40
+ return new NextResponse(ab, {
41
+ status: 200,
42
+ headers: {
43
+ 'Content-Type': result.mimeType,
44
+ 'Content-Length': String(result.size),
45
+ 'Cache-Control': 'no-store',
46
+ },
47
+ });
48
+ }
49
+ catch (error) {
50
+ // eslint-disable-next-line no-console
51
+ console.error('[GET /api/applications/:id/files/raw]', error);
52
+ const message = error instanceof Error ? error.message : String(error);
53
+ return Response.json({ error: message }, { status: errorStatus(message) });
54
+ }
55
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * GET /api/applications/[id]/files
3
+ *
4
+ * Returns the full directory tree for an application's repository path.
5
+ * Used by the IDE tab's file explorer.
6
+ */
7
+ import type { NextRequest } from 'next/server';
8
+ export declare const dynamic = "force-dynamic";
9
+ interface RouteParams {
10
+ params: Promise<{
11
+ id: string;
12
+ }>;
13
+ }
14
+ export declare function GET(_request: NextRequest, { params }: RouteParams): Promise<Response>;
15
+ export {};
16
+ //# sourceMappingURL=route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/presentation/web/app/api/applications/[id]/files/route.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjC;AAED,wBAAsB,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAa3F"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * GET /api/applications/[id]/files
3
+ *
4
+ * Returns the full directory tree for an application's repository path.
5
+ * Used by the IDE tab's file explorer.
6
+ */
7
+ import { resolve } from '../../../../../lib/server-container.js';
8
+ export const dynamic = 'force-dynamic';
9
+ export async function GET(_request, { params }) {
10
+ try {
11
+ const { id } = await params;
12
+ const useCase = resolve('ListApplicationFilesUseCase');
13
+ const tree = await useCase.execute({ applicationId: id });
14
+ return Response.json({ tree });
15
+ }
16
+ catch (error) {
17
+ // eslint-disable-next-line no-console
18
+ console.error('[GET /api/applications/:id/files]', error);
19
+ const message = error instanceof Error ? error.message : String(error);
20
+ const status = /not found/i.test(message) ? 404 : 500;
21
+ return Response.json({ error: message }, { status });
22
+ }
23
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * GET /api/applications/[id]/files/watch
3
+ *
4
+ * Server-Sent Events stream of filesystem change events under an
5
+ * application's repository path. Used by the IDE tab to refresh the
6
+ * file tree and re-read open files when the agent (or any other
7
+ * process) modifies them.
8
+ *
9
+ * Events:
10
+ * - `change` — `{ kind: 'created'|'modified'|'deleted', path, isDirectory }`
11
+ */
12
+ import type { NextRequest } from 'next/server';
13
+ export declare const dynamic = "force-dynamic";
14
+ interface RouteParams {
15
+ params: Promise<{
16
+ id: string;
17
+ }>;
18
+ }
19
+ export declare function GET(request: NextRequest, { params }: RouteParams): Promise<Response>;
20
+ export {};
21
+ //# sourceMappingURL=route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/applications/[id]/files/watch/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjC;AAED,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CA0E1F"}
@@ -0,0 +1,86 @@
1
+ /**
2
+ * GET /api/applications/[id]/files/watch
3
+ *
4
+ * Server-Sent Events stream of filesystem change events under an
5
+ * application's repository path. Used by the IDE tab to refresh the
6
+ * file tree and re-read open files when the agent (or any other
7
+ * process) modifies them.
8
+ *
9
+ * Events:
10
+ * - `change` — `{ kind: 'created'|'modified'|'deleted', path, isDirectory }`
11
+ */
12
+ import { resolve } from '../../../../../../lib/server-container.js';
13
+ export const dynamic = 'force-dynamic';
14
+ export async function GET(request, { params }) {
15
+ const { id } = await params;
16
+ let unsubscribe = null;
17
+ const useCase = resolve('WatchApplicationFilesUseCase');
18
+ const encoder = new TextEncoder();
19
+ const stream = new ReadableStream({
20
+ async start(controller) {
21
+ let closed = false;
22
+ function enqueue(text) {
23
+ if (closed)
24
+ return;
25
+ try {
26
+ controller.enqueue(encoder.encode(text));
27
+ }
28
+ catch {
29
+ // stream already closed
30
+ }
31
+ }
32
+ enqueue(': connected\n\n');
33
+ const heartbeat = setInterval(() => {
34
+ enqueue(': heartbeat\n\n');
35
+ }, 15_000);
36
+ try {
37
+ unsubscribe = await useCase.execute({
38
+ applicationId: id,
39
+ onEvent: (event) => {
40
+ enqueue(`event: change\ndata: ${JSON.stringify(event)}\n\n`);
41
+ },
42
+ });
43
+ }
44
+ catch (error) {
45
+ const message = error instanceof Error ? error.message : String(error);
46
+ enqueue(`event: error\ndata: ${JSON.stringify({ error: message })}\n\n`);
47
+ clearInterval(heartbeat);
48
+ closed = true;
49
+ try {
50
+ controller.close();
51
+ }
52
+ catch {
53
+ // ignore
54
+ }
55
+ return;
56
+ }
57
+ function cleanup() {
58
+ if (closed)
59
+ return;
60
+ closed = true;
61
+ clearInterval(heartbeat);
62
+ try {
63
+ unsubscribe?.();
64
+ }
65
+ catch {
66
+ // ignore
67
+ }
68
+ try {
69
+ controller.close();
70
+ }
71
+ catch {
72
+ // ignore
73
+ }
74
+ }
75
+ request.signal.addEventListener('abort', cleanup, { once: true });
76
+ },
77
+ });
78
+ return new Response(stream, {
79
+ headers: {
80
+ 'Content-Type': 'text/event-stream',
81
+ 'Cache-Control': 'no-cache, no-transform',
82
+ Connection: 'keep-alive',
83
+ 'X-Accel-Buffering': 'no',
84
+ },
85
+ });
86
+ }
@@ -1,13 +1,22 @@
1
1
  /**
2
2
  * Feature-scoped SSE stream for real-time chat updates.
3
3
  *
4
- * Resolves the active session for the feature internally.
5
- * Emits:
6
- * - `delta` events with token chunks
7
- * - `log` events for tool use / thinking
8
- * - `done` events at end-of-turn
4
+ * This is the single source of truth for chat state changes on the
5
+ * client — the React side drops periodic polling and relies entirely
6
+ * on these events plus a one-shot fetch per (re)connection.
9
7
  *
10
- * `featureId` is a polymorphic scope key: a feature UUID, "repo-<id>", or "global".
8
+ * Emits named events:
9
+ * - `delta` — token chunks (streaming assistant text)
10
+ * - `log` — tool use / thinking status text
11
+ * - `activity` — structured tool_use / tool_result events
12
+ * - `interaction` — agent is asking the user a question
13
+ * - `message` — a newly persisted user/assistant/tool message
14
+ * - `session_status`— session lifecycle transition
15
+ * - `turn_status` — turn activity transition (drives "Thinking…")
16
+ * - `done` — end-of-turn marker
17
+ *
18
+ * `featureId` is a polymorphic scope key: a feature UUID, `app-<id>`,
19
+ * `repo-<id>`, or `global`.
11
20
  */
12
21
  import type { NextRequest } from 'next/server';
13
22
  export declare const dynamic = "force-dynamic";
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAoF1F"}
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/interactive/chat/[featureId]/stream/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAED,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAuG1F"}
@@ -1,13 +1,22 @@
1
1
  /**
2
2
  * Feature-scoped SSE stream for real-time chat updates.
3
3
  *
4
- * Resolves the active session for the feature internally.
5
- * Emits:
6
- * - `delta` events with token chunks
7
- * - `log` events for tool use / thinking
8
- * - `done` events at end-of-turn
4
+ * This is the single source of truth for chat state changes on the
5
+ * client — the React side drops periodic polling and relies entirely
6
+ * on these events plus a one-shot fetch per (re)connection.
9
7
  *
10
- * `featureId` is a polymorphic scope key: a feature UUID, "repo-<id>", or "global".
8
+ * Emits named events:
9
+ * - `delta` — token chunks (streaming assistant text)
10
+ * - `log` — tool use / thinking status text
11
+ * - `activity` — structured tool_use / tool_result events
12
+ * - `interaction` — agent is asking the user a question
13
+ * - `message` — a newly persisted user/assistant/tool message
14
+ * - `session_status`— session lifecycle transition
15
+ * - `turn_status` — turn activity transition (drives "Thinking…")
16
+ * - `done` — end-of-turn marker
17
+ *
18
+ * `featureId` is a polymorphic scope key: a feature UUID, `app-<id>`,
19
+ * `repo-<id>`, or `global`.
11
20
  */
12
21
  import { resolve } from '../../../../../../lib/server-container.js';
13
22
  export const dynamic = 'force-dynamic';
@@ -35,29 +44,36 @@ export async function GET(request, { params }) {
35
44
  enqueue(': heartbeat\n\n');
36
45
  }, 15_000);
37
46
  const unsubscribe = service.subscribeByFeature(featureId, (chunk) => {
38
- if (chunk.done) {
39
- enqueue(`event: done\ndata: ${JSON.stringify({ done: true, featureId })}\n\n`);
47
+ // A single chunk may carry multiple independent signals (e.g.
48
+ // a `log` alongside an `activity`). Emit every field that is
49
+ // present — order is fixed so clients can rely on it.
50
+ if (chunk.message) {
51
+ enqueue(`event: message\ndata: ${JSON.stringify({ message: chunk.message, featureId })}\n\n`);
52
+ }
53
+ if (chunk.sessionStatus) {
54
+ enqueue(`event: session_status\ndata: ${JSON.stringify({ sessionStatus: chunk.sessionStatus, featureId })}\n\n`);
55
+ }
56
+ if (chunk.turnStatus) {
57
+ enqueue(`event: turn_status\ndata: ${JSON.stringify({ turnStatus: chunk.turnStatus, featureId })}\n\n`);
40
58
  }
41
- else if (chunk.interaction) {
42
- // Agent is asking the user a question — emit interaction event
59
+ if (chunk.interaction) {
43
60
  enqueue(`event: interaction\ndata: ${JSON.stringify({ interaction: chunk.interaction, featureId })}\n\n`);
44
- if (chunk.log) {
45
- enqueue(`event: log\ndata: ${JSON.stringify({ log: chunk.log, featureId })}\n\n`);
46
- }
47
61
  }
48
- else if (chunk.activity) {
62
+ if (chunk.activity) {
49
63
  enqueue(`event: activity\ndata: ${JSON.stringify({ activity: chunk.activity, featureId })}\n\n`);
50
- // Also send log for the status indicator
51
- if (chunk.log) {
52
- enqueue(`event: log\ndata: ${JSON.stringify({ log: chunk.log, featureId })}\n\n`);
53
- }
54
64
  }
55
- else if (chunk.log) {
65
+ if (chunk.log) {
56
66
  enqueue(`event: log\ndata: ${JSON.stringify({ log: chunk.log, featureId })}\n\n`);
57
67
  }
58
- else if (chunk.delta) {
68
+ if (chunk.delta) {
59
69
  enqueue(`event: delta\ndata: ${JSON.stringify({ delta: chunk.delta, featureId })}\n\n`);
60
70
  }
71
+ if (chunk.done) {
72
+ enqueue(`event: done\ndata: ${JSON.stringify({ done: true, featureId })}\n\n`);
73
+ }
74
+ if (chunk.workflowStep) {
75
+ enqueue(`event: workflow_step\ndata: ${JSON.stringify({ step: chunk.workflowStep, featureId })}\n\n`);
76
+ }
61
77
  });
62
78
  function cleanup() {
63
79
  if (closed)
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Global turn-status SSE stream.
3
+ *
4
+ * GET /api/interactive/chat/turn-statuses/stream
5
+ *
6
+ * One long-lived connection that pushes every turn-status transition
7
+ * from every active session (feat-*, app-*, repo-*, global). The
8
+ * sidebar consumes this instead of polling /api/interactive/chat/turn-statuses
9
+ * every 2 seconds.
10
+ *
11
+ * Emits named events:
12
+ * - `turn_status` — payload: { featureId, turnStatus }
13
+ *
14
+ * Initial state is NOT replayed — clients fetch the snapshot via the
15
+ * sibling GET endpoint on mount, then consume this stream for live
16
+ * updates.
17
+ */
18
+ import type { NextRequest } from 'next/server';
19
+ export declare const dynamic = "force-dynamic";
20
+ export declare function GET(request: NextRequest): Promise<Response>;
21
+ //# sourceMappingURL=route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/presentation/web/app/api/interactive/chat/turn-statuses/stream/route.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,wBAAsB,GAAG,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAmEjE"}
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Global turn-status SSE stream.
3
+ *
4
+ * GET /api/interactive/chat/turn-statuses/stream
5
+ *
6
+ * One long-lived connection that pushes every turn-status transition
7
+ * from every active session (feat-*, app-*, repo-*, global). The
8
+ * sidebar consumes this instead of polling /api/interactive/chat/turn-statuses
9
+ * every 2 seconds.
10
+ *
11
+ * Emits named events:
12
+ * - `turn_status` — payload: { featureId, turnStatus }
13
+ *
14
+ * Initial state is NOT replayed — clients fetch the snapshot via the
15
+ * sibling GET endpoint on mount, then consume this stream for live
16
+ * updates.
17
+ */
18
+ import { resolve } from '../../../../../../lib/server-container.js';
19
+ export const dynamic = 'force-dynamic';
20
+ export async function GET(request) {
21
+ try {
22
+ const service = resolve('IInteractiveSessionService');
23
+ const encoder = new TextEncoder();
24
+ const stream = new ReadableStream({
25
+ start(controller) {
26
+ let closed = false;
27
+ function enqueue(text) {
28
+ if (closed)
29
+ return;
30
+ try {
31
+ controller.enqueue(encoder.encode(text));
32
+ }
33
+ catch {
34
+ // Stream may already be closed
35
+ }
36
+ }
37
+ enqueue(': connected\n\n');
38
+ const heartbeat = setInterval(() => {
39
+ enqueue(': heartbeat\n\n');
40
+ }, 15_000);
41
+ // Fan out every session's turn-status transitions through this
42
+ // single subscription. Only emit when a chunk carries a
43
+ // turnStatus — ignore everything else (deltas, tool events,
44
+ // messages) since the sidebar doesn't render those.
45
+ const unsubscribe = service.subscribeAll((featureId, chunk) => {
46
+ if (chunk.turnStatus) {
47
+ enqueue(`event: turn_status\ndata: ${JSON.stringify({ featureId, turnStatus: chunk.turnStatus })}\n\n`);
48
+ }
49
+ });
50
+ function cleanup() {
51
+ if (closed)
52
+ return;
53
+ closed = true;
54
+ clearInterval(heartbeat);
55
+ unsubscribe();
56
+ try {
57
+ controller.close();
58
+ }
59
+ catch {
60
+ // Stream may already be closed
61
+ }
62
+ }
63
+ request.signal.addEventListener('abort', cleanup, { once: true });
64
+ },
65
+ });
66
+ return new Response(stream, {
67
+ headers: {
68
+ 'Content-Type': 'text/event-stream',
69
+ 'Cache-Control': 'no-cache',
70
+ Connection: 'keep-alive',
71
+ },
72
+ });
73
+ }
74
+ catch (error) {
75
+ // eslint-disable-next-line no-console
76
+ console.error('[GET /api/interactive/chat/turn-statuses/stream]', error);
77
+ return new Response(JSON.stringify({ error: String(error) }), {
78
+ status: 500,
79
+ headers: { 'Content-Type': 'application/json' },
80
+ });
81
+ }
82
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * POST /api/terminal/[sessionId]/input
3
+ *
4
+ * Writes raw keystroke data to a terminal session's stdin.
5
+ */
6
+ import type { NextRequest } from 'next/server';
7
+ export declare const dynamic = "force-dynamic";
8
+ interface RouteParams {
9
+ params: Promise<{
10
+ sessionId: string;
11
+ }>;
12
+ }
13
+ export declare function POST(request: NextRequest, { params }: RouteParams): Promise<Response>;
14
+ export {};
15
+ //# sourceMappingURL=route.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/presentation/web/app/api/terminal/[sessionId]/input/route.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,eAAO,MAAM,OAAO,kBAAkB,CAAC;AAEvC,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACxC;AAMD,wBAAsB,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAoB3F"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * POST /api/terminal/[sessionId]/input
3
+ *
4
+ * Writes raw keystroke data to a terminal session's stdin.
5
+ */
6
+ import { resolve } from '../../../../../lib/server-container.js';
7
+ export const dynamic = 'force-dynamic';
8
+ export async function POST(request, { params }) {
9
+ const { sessionId } = await params;
10
+ try {
11
+ const body = (await request.json().catch(() => ({})));
12
+ if (typeof body.data !== 'string') {
13
+ return Response.json({ error: 'data is required' }, { status: 400 });
14
+ }
15
+ const service = resolve('ITerminalSessionService');
16
+ if (!service.exists(sessionId)) {
17
+ return Response.json({ error: 'session not found' }, { status: 404 });
18
+ }
19
+ service.write(sessionId, body.data);
20
+ return Response.json({ ok: true });
21
+ }
22
+ catch (error) {
23
+ // eslint-disable-next-line no-console
24
+ console.error('[POST /api/terminal/:sessionId/input]', error);
25
+ return Response.json({ error: String(error) }, { status: 500 });
26
+ }
27
+ }