tower-studio 0.1.1 → 0.1.3

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 (873) hide show
  1. package/components.json +25 -0
  2. package/next.config.ts +1 -1
  3. package/package.json +10 -11
  4. package/postcss.config.mjs +7 -0
  5. package/prisma/dev.db +0 -0
  6. package/prisma/prisma/dev.db +0 -0
  7. package/prisma/seed.ts +50 -0
  8. package/scripts/init-tower.ts +10 -0
  9. package/scripts/post-tool-hook.js +188 -0
  10. package/scripts/session-start-hook.js +79 -0
  11. package/scripts/stop-hook.js +78 -0
  12. package/skills/tower/SKILL.md +375 -0
  13. package/src/actions/__tests__/agent-actions-username.test.ts +30 -0
  14. package/src/actions/__tests__/asset-actions.test.ts +251 -0
  15. package/src/actions/__tests__/assistant-actions.test.ts +20 -0
  16. package/src/actions/__tests__/cli-profile-actions.test.ts +243 -0
  17. package/src/actions/__tests__/label-actions.test.ts +187 -0
  18. package/src/actions/__tests__/note-actions.test.ts +237 -0
  19. package/src/actions/__tests__/onboarding-actions.test.ts +265 -0
  20. package/src/actions/__tests__/project-actions.test.ts +179 -0
  21. package/src/actions/__tests__/prompt-actions.test.ts +213 -0
  22. package/src/actions/__tests__/report-actions.test.ts +246 -0
  23. package/src/actions/__tests__/search-code-actions.test.ts +308 -0
  24. package/src/actions/__tests__/task-actions-overview.test.ts +58 -0
  25. package/src/actions/__tests__/task-actions-pin.test.ts +79 -0
  26. package/src/actions/__tests__/workspace-actions.test.ts +256 -0
  27. package/src/actions/agent-actions.ts +741 -0
  28. package/src/actions/agent-config-actions.ts +44 -0
  29. package/src/actions/ai-config-actions.ts +51 -0
  30. package/src/actions/asset-actions.ts +131 -0
  31. package/src/actions/assistant-actions.ts +107 -0
  32. package/src/actions/cli-profile-actions.ts +98 -0
  33. package/src/actions/config-actions.ts +84 -0
  34. package/src/actions/file-actions.ts +262 -0
  35. package/src/actions/git-actions.ts +90 -0
  36. package/src/actions/label-actions.ts +67 -0
  37. package/src/actions/note-actions.ts +87 -0
  38. package/src/actions/onboarding-actions.ts +103 -0
  39. package/src/actions/preview-actions.ts +76 -0
  40. package/src/actions/project-actions.ts +222 -0
  41. package/src/actions/prompt-actions.ts +73 -0
  42. package/src/actions/report-actions.ts +141 -0
  43. package/src/actions/search-actions.ts +21 -0
  44. package/src/actions/search-code-actions.ts +185 -0
  45. package/src/actions/task-actions.ts +350 -0
  46. package/src/actions/workspace-actions.ts +224 -0
  47. package/src/app/api/adapters/test/route.ts +52 -0
  48. package/src/app/api/browse-fs/route.ts +90 -0
  49. package/src/app/api/files/assets/[projectId]/[filename]/route.ts +38 -0
  50. package/src/app/api/git/route.ts +367 -0
  51. package/src/app/api/internal/assets/[projectId]/[filename]/route.ts +51 -0
  52. package/src/app/api/internal/assets/reveal/route.ts +71 -0
  53. package/src/app/api/internal/assistant/chat/route.ts +217 -0
  54. package/src/app/api/internal/assistant/images/route.ts +51 -0
  55. package/src/app/api/internal/assistant/route.ts +50 -0
  56. package/src/app/api/internal/assistant/sessions/route.ts +44 -0
  57. package/src/app/api/internal/cache/[...segments]/route.ts +59 -0
  58. package/src/app/api/internal/hooks/install/route.ts +41 -0
  59. package/src/app/api/internal/hooks/session/route.ts +60 -0
  60. package/src/app/api/internal/hooks/stop/route.ts +61 -0
  61. package/src/app/api/internal/hooks/upload/route.ts +173 -0
  62. package/src/app/api/internal/notifications/pending/route.ts +20 -0
  63. package/src/app/api/internal/terminal/[taskId]/buffer/route.ts +48 -0
  64. package/src/app/api/internal/terminal/[taskId]/input/route.ts +64 -0
  65. package/src/app/api/internal/terminal/[taskId]/start/route.ts +37 -0
  66. package/src/app/api/tasks/[taskId]/diff/route.ts +224 -0
  67. package/src/app/api/tasks/[taskId]/merge/route.ts +159 -0
  68. package/src/app/globals.css +247 -0
  69. package/src/app/layout.tsx +63 -0
  70. package/src/app/missions/missions-client.tsx +338 -0
  71. package/src/app/missions/page.tsx +10 -0
  72. package/src/app/onboarding/page.tsx +619 -0
  73. package/src/app/page.tsx +5 -0
  74. package/src/app/settings/page.tsx +7 -0
  75. package/src/app/workspaces/[workspaceId]/archive/archive-page-client.tsx +258 -0
  76. package/src/app/workspaces/[workspaceId]/archive/page.tsx +36 -0
  77. package/src/app/workspaces/[workspaceId]/assets/assets-page-client.tsx +232 -0
  78. package/src/app/workspaces/[workspaceId]/assets/page.tsx +36 -0
  79. package/src/app/workspaces/[workspaceId]/board-page-client.tsx +257 -0
  80. package/src/app/workspaces/[workspaceId]/notes/notes-page-client.tsx +337 -0
  81. package/src/app/workspaces/[workspaceId]/notes/page.tsx +39 -0
  82. package/src/app/workspaces/[workspaceId]/page.tsx +81 -0
  83. package/src/app/workspaces/[workspaceId]/projects/[projectId]/page.tsx +30 -0
  84. package/src/app/workspaces/[workspaceId]/tasks/[taskId]/page.tsx +97 -0
  85. package/src/app/workspaces/[workspaceId]/tasks/[taskId]/task-page-client.tsx +601 -0
  86. package/src/app/workspaces/page.tsx +13 -0
  87. package/src/components/assets/asset-item.tsx +128 -0
  88. package/src/components/assets/asset-list.tsx +31 -0
  89. package/src/components/assets/asset-upload.tsx +216 -0
  90. package/src/components/assets/image-lightbox.tsx +72 -0
  91. package/src/components/assets/text-preview-dialog.tsx +135 -0
  92. package/src/components/assistant/assistant-chat-bubble.tsx +308 -0
  93. package/src/components/assistant/assistant-chat.tsx +215 -0
  94. package/src/components/assistant/assistant-panel.tsx +149 -0
  95. package/src/components/assistant/assistant-provider.tsx +512 -0
  96. package/src/components/assistant/image-preview-modal.tsx +60 -0
  97. package/src/components/assistant/image-thumbnail-strip.tsx +94 -0
  98. package/src/components/board/board-column.tsx +115 -0
  99. package/src/components/board/board-filters.tsx +42 -0
  100. package/src/components/board/board-stats.tsx +52 -0
  101. package/src/components/board/column-tasks-dialog.tsx +100 -0
  102. package/src/components/board/create-task-dialog.tsx +362 -0
  103. package/src/components/board/kanban-board.tsx +169 -0
  104. package/src/components/board/project-tabs.tsx +93 -0
  105. package/src/components/board/task-card-context-menu.tsx +121 -0
  106. package/src/components/board/task-card.tsx +135 -0
  107. package/src/components/layout/__tests__/top-bar-username.test.tsx +24 -0
  108. package/src/components/layout/app-sidebar.tsx +662 -0
  109. package/src/components/layout/folder-browser-dialog.tsx +273 -0
  110. package/src/components/layout/layout-client.tsx +198 -0
  111. package/src/components/layout/search-dialog.tsx +196 -0
  112. package/src/components/layout/sub-page-nav.tsx +54 -0
  113. package/src/components/layout/top-bar.tsx +265 -0
  114. package/src/components/missions/grid-layout-presets.ts +19 -0
  115. package/src/components/missions/grid-preset-picker.tsx +209 -0
  116. package/src/components/missions/merge-missions.ts +30 -0
  117. package/src/components/missions/mission-card.tsx +203 -0
  118. package/src/components/missions/task-picker-dialog.tsx +415 -0
  119. package/src/components/notes/category-filter.tsx +44 -0
  120. package/src/components/notes/note-card.tsx +67 -0
  121. package/src/components/notes/note-editor.tsx +28 -0
  122. package/src/components/notes/note-list.tsx +30 -0
  123. package/src/components/notifications/notification-permission-banner.tsx +49 -0
  124. package/src/components/notifications/use-notification-listener.ts +114 -0
  125. package/src/components/onboarding/__tests__/onboarding-wizard.test.tsx +185 -0
  126. package/src/components/onboarding/guided-tour.tsx +255 -0
  127. package/src/components/onboarding/onboarding-wizard.tsx +84 -0
  128. package/src/components/onboarding/wizard-step-cli.tsx +53 -0
  129. package/src/components/onboarding/wizard-step-username.tsx +59 -0
  130. package/src/components/project/create-project-dialog.tsx +310 -0
  131. package/src/components/project/import-project-dialog.tsx +414 -0
  132. package/src/components/providers/theme-provider.tsx +8 -0
  133. package/src/components/repository/create-branch-dialog.tsx +165 -0
  134. package/src/components/repository/git-changes-panel.tsx +294 -0
  135. package/src/components/repository/git-log-panel.tsx +83 -0
  136. package/src/components/repository/git-stash-panel.tsx +158 -0
  137. package/src/components/repository/repo-sidebar.tsx +855 -0
  138. package/src/components/settings/cli-adapter-tester.tsx +144 -0
  139. package/src/components/settings/settings-page.tsx +2111 -0
  140. package/src/components/task/code-editor.tsx +376 -0
  141. package/src/components/task/code-search.tsx +219 -0
  142. package/src/components/task/diff-editor.tsx +97 -0
  143. package/src/components/task/editor-git-panel.tsx +792 -0
  144. package/src/components/task/editor-tabs.tsx +68 -0
  145. package/src/components/task/execution-timeline.tsx +258 -0
  146. package/src/components/task/file-tree-context-menu.tsx +113 -0
  147. package/src/components/task/file-tree-node.tsx +269 -0
  148. package/src/components/task/file-tree.tsx +575 -0
  149. package/src/components/task/preview-panel.tsx +281 -0
  150. package/src/components/task/task-detail-panel.tsx +455 -0
  151. package/src/components/task/task-diff-view.tsx +207 -0
  152. package/src/components/task/task-file-changes.tsx +19 -0
  153. package/src/components/task/task-merge-confirm-dialog.tsx +152 -0
  154. package/src/components/task/task-metadata.tsx +74 -0
  155. package/src/components/task/task-notes-panel.tsx +219 -0
  156. package/src/components/task/task-overview-drawer.tsx +172 -0
  157. package/src/components/task/task-terminal.tsx +294 -0
  158. package/src/components/task/terminal-portal.tsx +156 -0
  159. package/src/components/task/types.ts +6 -0
  160. package/src/components/ui/avatar.tsx +109 -0
  161. package/src/components/ui/badge.tsx +52 -0
  162. package/src/components/ui/button.tsx +58 -0
  163. package/src/components/ui/card.tsx +103 -0
  164. package/src/components/ui/command.tsx +196 -0
  165. package/src/components/ui/dialog.tsx +160 -0
  166. package/src/components/ui/dropdown-menu.tsx +268 -0
  167. package/src/components/ui/empty-state.tsx +26 -0
  168. package/src/components/ui/error-boundary.tsx +58 -0
  169. package/src/components/ui/input-group.tsx +158 -0
  170. package/src/components/ui/input.tsx +20 -0
  171. package/src/components/ui/label.tsx +20 -0
  172. package/src/components/ui/popover.tsx +90 -0
  173. package/src/components/ui/scroll-area.tsx +55 -0
  174. package/src/components/ui/segmented-control.tsx +42 -0
  175. package/src/components/ui/select.tsx +207 -0
  176. package/src/components/ui/separator.tsx +25 -0
  177. package/src/components/ui/sheet.tsx +138 -0
  178. package/src/components/ui/sonner.tsx +49 -0
  179. package/src/components/ui/switch.tsx +32 -0
  180. package/src/components/ui/tabs.tsx +82 -0
  181. package/src/components/ui/textarea.tsx +18 -0
  182. package/src/components/ui/toast.tsx +86 -0
  183. package/src/components/ui/tooltip.tsx +66 -0
  184. package/src/hooks/__tests__/sse-event-reducer.test.ts +263 -0
  185. package/src/hooks/__tests__/use-assistant-chat.test.ts +34 -0
  186. package/src/hooks/__tests__/use-image-upload.test.ts +443 -0
  187. package/src/hooks/sse-event-reducer.ts +144 -0
  188. package/src/hooks/use-assistant-chat.ts +190 -0
  189. package/src/hooks/use-image-upload.ts +140 -0
  190. package/src/instrumentation.ts +18 -0
  191. package/src/lib/__tests__/assistant-message-converter.test.ts +162 -0
  192. package/src/lib/__tests__/assistant-sessions.test.ts +253 -0
  193. package/src/lib/__tests__/build-multimodal-prompt.test.ts +173 -0
  194. package/src/lib/__tests__/config-reader.test.ts +75 -0
  195. package/src/lib/__tests__/diff-parser.test.ts +212 -0
  196. package/src/lib/__tests__/execution-summary.test.ts +237 -0
  197. package/src/lib/__tests__/file-serve.test.ts +178 -0
  198. package/src/lib/__tests__/file-utils.test.ts +177 -0
  199. package/src/lib/__tests__/internal-api-guard.test.ts +151 -0
  200. package/src/lib/__tests__/logger.test.ts +181 -0
  201. package/src/lib/__tests__/platform.test.ts +566 -0
  202. package/src/lib/__tests__/reveal-route-security.test.ts +65 -0
  203. package/src/lib/__tests__/schemas.test.ts +377 -0
  204. package/src/lib/__tests__/terminal-link-provider.test.ts +160 -0
  205. package/src/lib/__tests__/upload-route-security.test.ts +120 -0
  206. package/src/lib/ai/__tests__/capability-resolver.test.ts +71 -0
  207. package/src/lib/ai/__tests__/claude-cli-adapter.test.ts +103 -0
  208. package/src/lib/ai/__tests__/provider-registry.test.ts +74 -0
  209. package/src/lib/ai/adapters/cli/claude-cli-adapter.ts +166 -0
  210. package/src/lib/ai/capability-resolver.ts +81 -0
  211. package/src/lib/ai/provider-registry.ts +54 -0
  212. package/src/lib/ai/providers/claude.ts +19 -0
  213. package/src/lib/ai/providers/index.ts +12 -0
  214. package/src/lib/ai/types.ts +151 -0
  215. package/src/lib/assistant-constants.ts +2 -0
  216. package/src/lib/assistant-message-converter.ts +131 -0
  217. package/src/lib/assistant-sessions.ts +75 -0
  218. package/src/lib/build-multimodal-prompt.ts +53 -0
  219. package/src/lib/claude-session.ts +156 -0
  220. package/src/lib/cli-test.ts +476 -0
  221. package/src/lib/config-defaults.ts +121 -0
  222. package/src/lib/config-reader.ts +16 -0
  223. package/src/lib/constants.ts +26 -0
  224. package/src/lib/db.ts +28 -0
  225. package/src/lib/diff-parser.ts +132 -0
  226. package/src/lib/execution-summary.ts +287 -0
  227. package/src/lib/file-serve-client.ts +13 -0
  228. package/src/lib/file-serve.ts +32 -0
  229. package/src/lib/file-utils.ts +108 -0
  230. package/src/lib/fs-security.ts +22 -0
  231. package/src/lib/fts.ts +83 -0
  232. package/src/lib/git-api.ts +19 -0
  233. package/src/lib/git-url.ts +244 -0
  234. package/src/lib/i18n/en.ts +754 -0
  235. package/src/lib/i18n/types.ts +4 -0
  236. package/src/lib/i18n/zh.ts +769 -0
  237. package/src/lib/i18n.tsx +64 -0
  238. package/src/lib/init-tower.ts +129 -0
  239. package/src/lib/instrumentation-tasks.ts +116 -0
  240. package/src/lib/internal-api-guard.ts +63 -0
  241. package/src/lib/logger.ts +46 -0
  242. package/src/lib/mime-magic.ts +67 -0
  243. package/src/lib/platform.ts +518 -0
  244. package/src/lib/preview-process.ts +40 -0
  245. package/src/lib/pty/__tests__/ws-server-assistant.test.ts +7 -0
  246. package/src/lib/pty/pty-session.ts +157 -0
  247. package/src/lib/pty/session-store.ts +67 -0
  248. package/src/lib/pty/ws-server.ts +335 -0
  249. package/src/lib/schemas.ts +67 -0
  250. package/src/lib/search.ts +225 -0
  251. package/src/lib/terminal-link-provider.ts +90 -0
  252. package/src/lib/tower-dir.ts +69 -0
  253. package/src/lib/utils.ts +20 -0
  254. package/src/lib/worktree.ts +184 -0
  255. package/src/stores/board-store.ts +46 -0
  256. package/src/stores/task-execution-store.ts +41 -0
  257. package/src/types/index.ts +36 -0
  258. package/.next/BUILD_ID +0 -1
  259. package/.next/app-path-routes-manifest.json +0 -41
  260. package/.next/build/chunks/0kjx__pnpm_05m.mc_._.js +0 -6681
  261. package/.next/build/chunks/[root-of-the-server]__0a5dngl._.js +0 -206
  262. package/.next/build/chunks/[root-of-the-server]__13e2v6w._.js +0 -500
  263. package/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0y_r.ay._.js +0 -13
  264. package/.next/build/chunks/[turbopack]_runtime.js +0 -890
  265. package/.next/build/package.json +0 -1
  266. package/.next/build/postcss.js +0 -6
  267. package/.next/build-manifest.json +0 -22
  268. package/.next/cache/.previewinfo +0 -1
  269. package/.next/cache/.rscinfo +0 -1
  270. package/.next/cache/.tsbuildinfo +0 -1
  271. package/.next/diagnostics/build-diagnostics.json +0 -6
  272. package/.next/diagnostics/framework.json +0 -1
  273. package/.next/diagnostics/route-bundle-stats.json +0 -299
  274. package/.next/export-marker.json +0 -6
  275. package/.next/fallback-build-manifest.json +0 -13
  276. package/.next/images-manifest.json +0 -68
  277. package/.next/next-minimal-server.js.nft.json +0 -1
  278. package/.next/next-server.js.nft.json +0 -1
  279. package/.next/package.json +0 -1
  280. package/.next/prerender-manifest.json +0 -278
  281. package/.next/required-server-files.js +0 -338
  282. package/.next/required-server-files.json +0 -338
  283. package/.next/routes-manifest.json +0 -312
  284. package/.next/server/app/_global-error/page/app-paths-manifest.json +0 -3
  285. package/.next/server/app/_global-error/page/build-manifest.json +0 -18
  286. package/.next/server/app/_global-error/page/next-font-manifest.json +0 -6
  287. package/.next/server/app/_global-error/page/react-loadable-manifest.json +0 -1
  288. package/.next/server/app/_global-error/page/server-reference-manifest.json +0 -4
  289. package/.next/server/app/_global-error/page.js +0 -12
  290. package/.next/server/app/_global-error/page.js.nft.json +0 -1
  291. package/.next/server/app/_global-error/page_client-reference-manifest.js +0 -3
  292. package/.next/server/app/_global-error.html +0 -1
  293. package/.next/server/app/_global-error.meta +0 -15
  294. package/.next/server/app/_global-error.rsc +0 -15
  295. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +0 -5
  296. package/.next/server/app/_global-error.segments/_full.segment.rsc +0 -15
  297. package/.next/server/app/_global-error.segments/_head.segment.rsc +0 -6
  298. package/.next/server/app/_global-error.segments/_index.segment.rsc +0 -5
  299. package/.next/server/app/_global-error.segments/_tree.segment.rsc +0 -1
  300. package/.next/server/app/_not-found/page/app-paths-manifest.json +0 -3
  301. package/.next/server/app/_not-found/page/build-manifest.json +0 -18
  302. package/.next/server/app/_not-found/page/next-font-manifest.json +0 -11
  303. package/.next/server/app/_not-found/page/react-loadable-manifest.json +0 -16
  304. package/.next/server/app/_not-found/page/server-reference-manifest.json +0 -233
  305. package/.next/server/app/_not-found/page.js +0 -20
  306. package/.next/server/app/_not-found/page.js.nft.json +0 -1
  307. package/.next/server/app/_not-found/page_client-reference-manifest.js +0 -3
  308. package/.next/server/app/_not-found.html +0 -1
  309. package/.next/server/app/_not-found.meta +0 -16
  310. package/.next/server/app/_not-found.rsc +0 -24
  311. package/.next/server/app/_not-found.segments/_full.segment.rsc +0 -24
  312. package/.next/server/app/_not-found.segments/_head.segment.rsc +0 -6
  313. package/.next/server/app/_not-found.segments/_index.segment.rsc +0 -12
  314. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +0 -5
  315. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +0 -5
  316. package/.next/server/app/_not-found.segments/_tree.segment.rsc +0 -4
  317. package/.next/server/app/api/adapters/test/route/app-paths-manifest.json +0 -3
  318. package/.next/server/app/api/adapters/test/route/build-manifest.json +0 -9
  319. package/.next/server/app/api/adapters/test/route/server-reference-manifest.json +0 -4
  320. package/.next/server/app/api/adapters/test/route.js +0 -9
  321. package/.next/server/app/api/adapters/test/route.js.nft.json +0 -1
  322. package/.next/server/app/api/adapters/test/route_client-reference-manifest.js +0 -3
  323. package/.next/server/app/api/browse-fs/route/app-paths-manifest.json +0 -3
  324. package/.next/server/app/api/browse-fs/route/build-manifest.json +0 -9
  325. package/.next/server/app/api/browse-fs/route/server-reference-manifest.json +0 -4
  326. package/.next/server/app/api/browse-fs/route.js +0 -7
  327. package/.next/server/app/api/browse-fs/route.js.nft.json +0 -1
  328. package/.next/server/app/api/browse-fs/route_client-reference-manifest.js +0 -3
  329. package/.next/server/app/api/files/assets/[projectId]/[filename]/route/app-paths-manifest.json +0 -3
  330. package/.next/server/app/api/files/assets/[projectId]/[filename]/route/build-manifest.json +0 -9
  331. package/.next/server/app/api/files/assets/[projectId]/[filename]/route/server-reference-manifest.json +0 -4
  332. package/.next/server/app/api/files/assets/[projectId]/[filename]/route.js +0 -7
  333. package/.next/server/app/api/files/assets/[projectId]/[filename]/route.js.nft.json +0 -1
  334. package/.next/server/app/api/files/assets/[projectId]/[filename]/route_client-reference-manifest.js +0 -3
  335. package/.next/server/app/api/git/route/app-paths-manifest.json +0 -3
  336. package/.next/server/app/api/git/route/build-manifest.json +0 -9
  337. package/.next/server/app/api/git/route/server-reference-manifest.json +0 -4
  338. package/.next/server/app/api/git/route.js +0 -8
  339. package/.next/server/app/api/git/route.js.nft.json +0 -1
  340. package/.next/server/app/api/git/route_client-reference-manifest.js +0 -3
  341. package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/app-paths-manifest.json +0 -3
  342. package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/build-manifest.json +0 -9
  343. package/.next/server/app/api/internal/assets/[projectId]/[filename]/route/server-reference-manifest.json +0 -4
  344. package/.next/server/app/api/internal/assets/[projectId]/[filename]/route.js +0 -7
  345. package/.next/server/app/api/internal/assets/[projectId]/[filename]/route.js.nft.json +0 -1
  346. package/.next/server/app/api/internal/assets/[projectId]/[filename]/route_client-reference-manifest.js +0 -3
  347. package/.next/server/app/api/internal/assets/reveal/route/app-paths-manifest.json +0 -3
  348. package/.next/server/app/api/internal/assets/reveal/route/build-manifest.json +0 -9
  349. package/.next/server/app/api/internal/assets/reveal/route/server-reference-manifest.json +0 -4
  350. package/.next/server/app/api/internal/assets/reveal/route.js +0 -7
  351. package/.next/server/app/api/internal/assets/reveal/route.js.nft.json +0 -1
  352. package/.next/server/app/api/internal/assets/reveal/route_client-reference-manifest.js +0 -3
  353. package/.next/server/app/api/internal/assistant/chat/route/app-paths-manifest.json +0 -3
  354. package/.next/server/app/api/internal/assistant/chat/route/build-manifest.json +0 -9
  355. package/.next/server/app/api/internal/assistant/chat/route/server-reference-manifest.json +0 -4
  356. package/.next/server/app/api/internal/assistant/chat/route.js +0 -7
  357. package/.next/server/app/api/internal/assistant/chat/route.js.nft.json +0 -1
  358. package/.next/server/app/api/internal/assistant/chat/route_client-reference-manifest.js +0 -3
  359. package/.next/server/app/api/internal/assistant/images/route/app-paths-manifest.json +0 -3
  360. package/.next/server/app/api/internal/assistant/images/route/build-manifest.json +0 -9
  361. package/.next/server/app/api/internal/assistant/images/route/server-reference-manifest.json +0 -4
  362. package/.next/server/app/api/internal/assistant/images/route.js +0 -9
  363. package/.next/server/app/api/internal/assistant/images/route.js.nft.json +0 -1
  364. package/.next/server/app/api/internal/assistant/images/route_client-reference-manifest.js +0 -3
  365. package/.next/server/app/api/internal/assistant/route/app-paths-manifest.json +0 -3
  366. package/.next/server/app/api/internal/assistant/route/build-manifest.json +0 -9
  367. package/.next/server/app/api/internal/assistant/route/server-reference-manifest.json +0 -4
  368. package/.next/server/app/api/internal/assistant/route.js +0 -7
  369. package/.next/server/app/api/internal/assistant/route.js.nft.json +0 -1
  370. package/.next/server/app/api/internal/assistant/route_client-reference-manifest.js +0 -3
  371. package/.next/server/app/api/internal/assistant/sessions/route/app-paths-manifest.json +0 -3
  372. package/.next/server/app/api/internal/assistant/sessions/route/build-manifest.json +0 -9
  373. package/.next/server/app/api/internal/assistant/sessions/route/server-reference-manifest.json +0 -4
  374. package/.next/server/app/api/internal/assistant/sessions/route.js +0 -7
  375. package/.next/server/app/api/internal/assistant/sessions/route.js.nft.json +0 -1
  376. package/.next/server/app/api/internal/assistant/sessions/route_client-reference-manifest.js +0 -3
  377. package/.next/server/app/api/internal/cache/[...segments]/route/app-paths-manifest.json +0 -3
  378. package/.next/server/app/api/internal/cache/[...segments]/route/build-manifest.json +0 -9
  379. package/.next/server/app/api/internal/cache/[...segments]/route/server-reference-manifest.json +0 -4
  380. package/.next/server/app/api/internal/cache/[...segments]/route.js +0 -7
  381. package/.next/server/app/api/internal/cache/[...segments]/route.js.nft.json +0 -1
  382. package/.next/server/app/api/internal/cache/[...segments]/route_client-reference-manifest.js +0 -3
  383. package/.next/server/app/api/internal/hooks/install/route/app-paths-manifest.json +0 -3
  384. package/.next/server/app/api/internal/hooks/install/route/build-manifest.json +0 -9
  385. package/.next/server/app/api/internal/hooks/install/route/server-reference-manifest.json +0 -4
  386. package/.next/server/app/api/internal/hooks/install/route.js +0 -7
  387. package/.next/server/app/api/internal/hooks/install/route.js.nft.json +0 -1
  388. package/.next/server/app/api/internal/hooks/install/route_client-reference-manifest.js +0 -3
  389. package/.next/server/app/api/internal/hooks/session/route/app-paths-manifest.json +0 -3
  390. package/.next/server/app/api/internal/hooks/session/route/build-manifest.json +0 -9
  391. package/.next/server/app/api/internal/hooks/session/route/server-reference-manifest.json +0 -4
  392. package/.next/server/app/api/internal/hooks/session/route.js +0 -7
  393. package/.next/server/app/api/internal/hooks/session/route.js.nft.json +0 -1
  394. package/.next/server/app/api/internal/hooks/session/route_client-reference-manifest.js +0 -3
  395. package/.next/server/app/api/internal/hooks/stop/route/app-paths-manifest.json +0 -3
  396. package/.next/server/app/api/internal/hooks/stop/route/build-manifest.json +0 -9
  397. package/.next/server/app/api/internal/hooks/stop/route/server-reference-manifest.json +0 -4
  398. package/.next/server/app/api/internal/hooks/stop/route.js +0 -8
  399. package/.next/server/app/api/internal/hooks/stop/route.js.nft.json +0 -1
  400. package/.next/server/app/api/internal/hooks/stop/route_client-reference-manifest.js +0 -3
  401. package/.next/server/app/api/internal/hooks/upload/route/app-paths-manifest.json +0 -3
  402. package/.next/server/app/api/internal/hooks/upload/route/build-manifest.json +0 -9
  403. package/.next/server/app/api/internal/hooks/upload/route/server-reference-manifest.json +0 -4
  404. package/.next/server/app/api/internal/hooks/upload/route.js +0 -7
  405. package/.next/server/app/api/internal/hooks/upload/route.js.nft.json +0 -1
  406. package/.next/server/app/api/internal/hooks/upload/route_client-reference-manifest.js +0 -3
  407. package/.next/server/app/api/internal/notifications/pending/route/app-paths-manifest.json +0 -3
  408. package/.next/server/app/api/internal/notifications/pending/route/build-manifest.json +0 -9
  409. package/.next/server/app/api/internal/notifications/pending/route/server-reference-manifest.json +0 -4
  410. package/.next/server/app/api/internal/notifications/pending/route.js +0 -7
  411. package/.next/server/app/api/internal/notifications/pending/route.js.nft.json +0 -1
  412. package/.next/server/app/api/internal/notifications/pending/route_client-reference-manifest.js +0 -3
  413. package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/app-paths-manifest.json +0 -3
  414. package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/build-manifest.json +0 -9
  415. package/.next/server/app/api/internal/terminal/[taskId]/buffer/route/server-reference-manifest.json +0 -4
  416. package/.next/server/app/api/internal/terminal/[taskId]/buffer/route.js +0 -8
  417. package/.next/server/app/api/internal/terminal/[taskId]/buffer/route.js.nft.json +0 -1
  418. package/.next/server/app/api/internal/terminal/[taskId]/buffer/route_client-reference-manifest.js +0 -3
  419. package/.next/server/app/api/internal/terminal/[taskId]/input/route/app-paths-manifest.json +0 -3
  420. package/.next/server/app/api/internal/terminal/[taskId]/input/route/build-manifest.json +0 -9
  421. package/.next/server/app/api/internal/terminal/[taskId]/input/route/server-reference-manifest.json +0 -4
  422. package/.next/server/app/api/internal/terminal/[taskId]/input/route.js +0 -8
  423. package/.next/server/app/api/internal/terminal/[taskId]/input/route.js.nft.json +0 -1
  424. package/.next/server/app/api/internal/terminal/[taskId]/input/route_client-reference-manifest.js +0 -3
  425. package/.next/server/app/api/internal/terminal/[taskId]/start/route/app-paths-manifest.json +0 -3
  426. package/.next/server/app/api/internal/terminal/[taskId]/start/route/build-manifest.json +0 -9
  427. package/.next/server/app/api/internal/terminal/[taskId]/start/route/server-reference-manifest.json +0 -4
  428. package/.next/server/app/api/internal/terminal/[taskId]/start/route.js +0 -10
  429. package/.next/server/app/api/internal/terminal/[taskId]/start/route.js.nft.json +0 -1
  430. package/.next/server/app/api/internal/terminal/[taskId]/start/route_client-reference-manifest.js +0 -3
  431. package/.next/server/app/api/tasks/[taskId]/diff/route/app-paths-manifest.json +0 -3
  432. package/.next/server/app/api/tasks/[taskId]/diff/route/build-manifest.json +0 -9
  433. package/.next/server/app/api/tasks/[taskId]/diff/route/server-reference-manifest.json +0 -4
  434. package/.next/server/app/api/tasks/[taskId]/diff/route.js +0 -8
  435. package/.next/server/app/api/tasks/[taskId]/diff/route.js.nft.json +0 -1
  436. package/.next/server/app/api/tasks/[taskId]/diff/route_client-reference-manifest.js +0 -3
  437. package/.next/server/app/api/tasks/[taskId]/merge/route/app-paths-manifest.json +0 -3
  438. package/.next/server/app/api/tasks/[taskId]/merge/route/build-manifest.json +0 -9
  439. package/.next/server/app/api/tasks/[taskId]/merge/route/server-reference-manifest.json +0 -4
  440. package/.next/server/app/api/tasks/[taskId]/merge/route.js +0 -9
  441. package/.next/server/app/api/tasks/[taskId]/merge/route.js.nft.json +0 -1
  442. package/.next/server/app/api/tasks/[taskId]/merge/route_client-reference-manifest.js +0 -3
  443. package/.next/server/app/apple-icon.png/route/app-paths-manifest.json +0 -3
  444. package/.next/server/app/apple-icon.png/route/build-manifest.json +0 -9
  445. package/.next/server/app/apple-icon.png/route.js +0 -8
  446. package/.next/server/app/apple-icon.png/route.js.nft.json +0 -1
  447. package/.next/server/app/apple-icon.png.meta +0 -1
  448. package/.next/server/app/favicon.ico/route/app-paths-manifest.json +0 -3
  449. package/.next/server/app/favicon.ico/route/build-manifest.json +0 -9
  450. package/.next/server/app/favicon.ico/route.js +0 -8
  451. package/.next/server/app/favicon.ico/route.js.nft.json +0 -1
  452. package/.next/server/app/favicon.ico.meta +0 -1
  453. package/.next/server/app/icon0.svg/route/app-paths-manifest.json +0 -3
  454. package/.next/server/app/icon0.svg/route/build-manifest.json +0 -9
  455. package/.next/server/app/icon0.svg/route.js +0 -8
  456. package/.next/server/app/icon0.svg/route.js.nft.json +0 -1
  457. package/.next/server/app/icon0.svg.meta +0 -1
  458. package/.next/server/app/icon1.png/route/app-paths-manifest.json +0 -3
  459. package/.next/server/app/icon1.png/route/build-manifest.json +0 -9
  460. package/.next/server/app/icon1.png/route.js +0 -8
  461. package/.next/server/app/icon1.png/route.js.nft.json +0 -1
  462. package/.next/server/app/icon1.png.meta +0 -1
  463. package/.next/server/app/index.html +0 -1
  464. package/.next/server/app/index.meta +0 -16
  465. package/.next/server/app/index.rsc +0 -25
  466. package/.next/server/app/index.segments/__PAGE__.segment.rsc +0 -6
  467. package/.next/server/app/index.segments/_full.segment.rsc +0 -25
  468. package/.next/server/app/index.segments/_head.segment.rsc +0 -6
  469. package/.next/server/app/index.segments/_index.segment.rsc +0 -12
  470. package/.next/server/app/index.segments/_tree.segment.rsc +0 -6
  471. package/.next/server/app/manifest.json/route/app-paths-manifest.json +0 -3
  472. package/.next/server/app/manifest.json/route/build-manifest.json +0 -9
  473. package/.next/server/app/manifest.json/route.js +0 -7
  474. package/.next/server/app/manifest.json/route.js.nft.json +0 -1
  475. package/.next/server/app/manifest.json.meta +0 -1
  476. package/.next/server/app/missions/page/app-paths-manifest.json +0 -3
  477. package/.next/server/app/missions/page/build-manifest.json +0 -18
  478. package/.next/server/app/missions/page/next-font-manifest.json +0 -11
  479. package/.next/server/app/missions/page/react-loadable-manifest.json +0 -16
  480. package/.next/server/app/missions/page/server-reference-manifest.json +0 -401
  481. package/.next/server/app/missions/page.js +0 -22
  482. package/.next/server/app/missions/page.js.nft.json +0 -1
  483. package/.next/server/app/missions/page_client-reference-manifest.js +0 -3
  484. package/.next/server/app/onboarding/page/app-paths-manifest.json +0 -3
  485. package/.next/server/app/onboarding/page/build-manifest.json +0 -18
  486. package/.next/server/app/onboarding/page/next-font-manifest.json +0 -11
  487. package/.next/server/app/onboarding/page/react-loadable-manifest.json +0 -16
  488. package/.next/server/app/onboarding/page/server-reference-manifest.json +0 -233
  489. package/.next/server/app/onboarding/page.js +0 -21
  490. package/.next/server/app/onboarding/page.js.nft.json +0 -1
  491. package/.next/server/app/onboarding/page_client-reference-manifest.js +0 -3
  492. package/.next/server/app/onboarding.html +0 -1
  493. package/.next/server/app/onboarding.meta +0 -15
  494. package/.next/server/app/onboarding.rsc +0 -30
  495. package/.next/server/app/onboarding.segments/_full.segment.rsc +0 -30
  496. package/.next/server/app/onboarding.segments/_head.segment.rsc +0 -6
  497. package/.next/server/app/onboarding.segments/_index.segment.rsc +0 -12
  498. package/.next/server/app/onboarding.segments/_tree.segment.rsc +0 -6
  499. package/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +0 -9
  500. package/.next/server/app/onboarding.segments/onboarding.segment.rsc +0 -5
  501. package/.next/server/app/page/app-paths-manifest.json +0 -3
  502. package/.next/server/app/page/build-manifest.json +0 -18
  503. package/.next/server/app/page/next-font-manifest.json +0 -11
  504. package/.next/server/app/page/react-loadable-manifest.json +0 -16
  505. package/.next/server/app/page/server-reference-manifest.json +0 -233
  506. package/.next/server/app/page.js +0 -21
  507. package/.next/server/app/page.js.nft.json +0 -1
  508. package/.next/server/app/page_client-reference-manifest.js +0 -3
  509. package/.next/server/app/settings/page/app-paths-manifest.json +0 -3
  510. package/.next/server/app/settings/page/build-manifest.json +0 -18
  511. package/.next/server/app/settings/page/next-font-manifest.json +0 -11
  512. package/.next/server/app/settings/page/react-loadable-manifest.json +0 -16
  513. package/.next/server/app/settings/page/server-reference-manifest.json +0 -341
  514. package/.next/server/app/settings/page.js +0 -21
  515. package/.next/server/app/settings/page.js.nft.json +0 -1
  516. package/.next/server/app/settings/page_client-reference-manifest.js +0 -3
  517. package/.next/server/app/settings.html +0 -1
  518. package/.next/server/app/settings.meta +0 -15
  519. package/.next/server/app/settings.rsc +0 -30
  520. package/.next/server/app/settings.segments/_full.segment.rsc +0 -30
  521. package/.next/server/app/settings.segments/_head.segment.rsc +0 -6
  522. package/.next/server/app/settings.segments/_index.segment.rsc +0 -12
  523. package/.next/server/app/settings.segments/_tree.segment.rsc +0 -6
  524. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +0 -9
  525. package/.next/server/app/settings.segments/settings.segment.rsc +0 -5
  526. package/.next/server/app/workspaces/[workspaceId]/archive/page/app-paths-manifest.json +0 -3
  527. package/.next/server/app/workspaces/[workspaceId]/archive/page/build-manifest.json +0 -18
  528. package/.next/server/app/workspaces/[workspaceId]/archive/page/next-font-manifest.json +0 -11
  529. package/.next/server/app/workspaces/[workspaceId]/archive/page/react-loadable-manifest.json +0 -16
  530. package/.next/server/app/workspaces/[workspaceId]/archive/page/server-reference-manifest.json +0 -497
  531. package/.next/server/app/workspaces/[workspaceId]/archive/page.js +0 -21
  532. package/.next/server/app/workspaces/[workspaceId]/archive/page.js.nft.json +0 -1
  533. package/.next/server/app/workspaces/[workspaceId]/archive/page_client-reference-manifest.js +0 -3
  534. package/.next/server/app/workspaces/[workspaceId]/assets/page/app-paths-manifest.json +0 -3
  535. package/.next/server/app/workspaces/[workspaceId]/assets/page/build-manifest.json +0 -18
  536. package/.next/server/app/workspaces/[workspaceId]/assets/page/next-font-manifest.json +0 -11
  537. package/.next/server/app/workspaces/[workspaceId]/assets/page/react-loadable-manifest.json +0 -16
  538. package/.next/server/app/workspaces/[workspaceId]/assets/page/server-reference-manifest.json +0 -461
  539. package/.next/server/app/workspaces/[workspaceId]/assets/page.js +0 -21
  540. package/.next/server/app/workspaces/[workspaceId]/assets/page.js.nft.json +0 -1
  541. package/.next/server/app/workspaces/[workspaceId]/assets/page_client-reference-manifest.js +0 -3
  542. package/.next/server/app/workspaces/[workspaceId]/notes/page/app-paths-manifest.json +0 -3
  543. package/.next/server/app/workspaces/[workspaceId]/notes/page/build-manifest.json +0 -18
  544. package/.next/server/app/workspaces/[workspaceId]/notes/page/next-font-manifest.json +0 -11
  545. package/.next/server/app/workspaces/[workspaceId]/notes/page/react-loadable-manifest.json +0 -16
  546. package/.next/server/app/workspaces/[workspaceId]/notes/page/server-reference-manifest.json +0 -401
  547. package/.next/server/app/workspaces/[workspaceId]/notes/page.js +0 -21
  548. package/.next/server/app/workspaces/[workspaceId]/notes/page.js.nft.json +0 -1
  549. package/.next/server/app/workspaces/[workspaceId]/notes/page_client-reference-manifest.js +0 -3
  550. package/.next/server/app/workspaces/[workspaceId]/page/app-paths-manifest.json +0 -3
  551. package/.next/server/app/workspaces/[workspaceId]/page/build-manifest.json +0 -18
  552. package/.next/server/app/workspaces/[workspaceId]/page/next-font-manifest.json +0 -11
  553. package/.next/server/app/workspaces/[workspaceId]/page/react-loadable-manifest.json +0 -16
  554. package/.next/server/app/workspaces/[workspaceId]/page/server-reference-manifest.json +0 -569
  555. package/.next/server/app/workspaces/[workspaceId]/page.js +0 -22
  556. package/.next/server/app/workspaces/[workspaceId]/page.js.nft.json +0 -1
  557. package/.next/server/app/workspaces/[workspaceId]/page_client-reference-manifest.js +0 -3
  558. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/app-paths-manifest.json +0 -3
  559. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/build-manifest.json +0 -18
  560. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/next-font-manifest.json +0 -11
  561. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/react-loadable-manifest.json +0 -16
  562. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page/server-reference-manifest.json +0 -233
  563. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js +0 -21
  564. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page.js.nft.json +0 -1
  565. package/.next/server/app/workspaces/[workspaceId]/projects/[projectId]/page_client-reference-manifest.js +0 -3
  566. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/app-paths-manifest.json +0 -3
  567. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/build-manifest.json +0 -18
  568. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/next-font-manifest.json +0 -11
  569. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/react-loadable-manifest.json +0 -22
  570. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page/server-reference-manifest.json +0 -581
  571. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js +0 -23
  572. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page.js.nft.json +0 -1
  573. package/.next/server/app/workspaces/[workspaceId]/tasks/[taskId]/page_client-reference-manifest.js +0 -3
  574. package/.next/server/app/workspaces/page/app-paths-manifest.json +0 -3
  575. package/.next/server/app/workspaces/page/build-manifest.json +0 -18
  576. package/.next/server/app/workspaces/page/next-font-manifest.json +0 -11
  577. package/.next/server/app/workspaces/page/react-loadable-manifest.json +0 -16
  578. package/.next/server/app/workspaces/page/server-reference-manifest.json +0 -329
  579. package/.next/server/app/workspaces/page.js +0 -21
  580. package/.next/server/app/workspaces/page.js.nft.json +0 -1
  581. package/.next/server/app/workspaces/page_client-reference-manifest.js +0 -3
  582. package/.next/server/app-paths-manifest.json +0 -41
  583. package/.next/server/chunks/03j-_@anthropic-ai_claude-agent-sdk_sdk_mjs_04597t~._.js +0 -85
  584. package/.next/server/chunks/0cve_next-internal_server_app_api_internal_cache_[___segments]_route_actions_09n1sa3.js +0 -3
  585. package/.next/server/chunks/0tp-_server_app_api_files_assets_[projectId]_[filename]_route_actions_02i2urs.js +0 -3
  586. package/.next/server/chunks/0tp-_server_app_api_internal_assets_[projectId]_[filename]_route_actions_0kjz576.js +0 -3
  587. package/.next/server/chunks/0tp-_server_app_api_internal_notifications_pending_route_actions_08bx38r.js +0 -3
  588. package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_buffer_route_actions_0bpyf5x.js +0 -3
  589. package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_input_route_actions_0alu32r.js +0 -3
  590. package/.next/server/chunks/0tp-_server_app_api_internal_terminal_[taskId]_start_route_actions_0swqog2.js +0 -3
  591. package/.next/server/chunks/0w1v_zod_v4_classic_external_0m-7hz_.js +0 -39
  592. package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_chat_route_actions_0x-qbrh.js +0 -3
  593. package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_images_route_actions_0vws40t.js +0 -3
  594. package/.next/server/chunks/0~.g__next-internal_server_app_api_internal_assistant_sessions_route_actions_0p09rcp.js +0 -3
  595. package/.next/server/chunks/10ge_next_dist_08.3req._.js +0 -13
  596. package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_00gmiw_.js +0 -3
  597. package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0jwpolf.js +0 -3
  598. package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0liabcf.js +0 -3
  599. package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_0z9_0_i.js +0 -3
  600. package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_13w3ubu.js +0 -3
  601. package/.next/server/chunks/10ge_next_dist_esm_build_templates_app-route_13~vb_i.js +0 -4
  602. package/.next/server/chunks/[externals]__02xkqim._.js +0 -3
  603. package/.next/server/chunks/[externals]__09oeovy._.js +0 -3
  604. package/.next/server/chunks/[externals]__0~rg.xo._.js +0 -3
  605. package/.next/server/chunks/[externals]__11rejr-._.js +0 -3
  606. package/.next/server/chunks/[externals]_child_process_0pwkpv9._.js +0 -3
  607. package/.next/server/chunks/[externals]_next_dist_0g2nsos._.js +0 -3
  608. package/.next/server/chunks/[externals]_util_0wtvqkc._.js +0 -3
  609. package/.next/server/chunks/[root-of-the-server]__02p-gd5._.js +0 -3
  610. package/.next/server/chunks/[root-of-the-server]__0319djr._.js +0 -3
  611. package/.next/server/chunks/[root-of-the-server]__043lk8~._.js +0 -4
  612. package/.next/server/chunks/[root-of-the-server]__053y9tf._.js +0 -3
  613. package/.next/server/chunks/[root-of-the-server]__05pxb~w._.js +0 -20
  614. package/.next/server/chunks/[root-of-the-server]__07-am_7._.js +0 -20
  615. package/.next/server/chunks/[root-of-the-server]__09gjz6h._.js +0 -3
  616. package/.next/server/chunks/[root-of-the-server]__0_irb2s._.js +0 -3
  617. package/.next/server/chunks/[root-of-the-server]__0c4edwt._.js +0 -3
  618. package/.next/server/chunks/[root-of-the-server]__0c7y1r0._.js +0 -3
  619. package/.next/server/chunks/[root-of-the-server]__0dj34zn._.js +0 -3
  620. package/.next/server/chunks/[root-of-the-server]__0dqta7g._.js +0 -3
  621. package/.next/server/chunks/[root-of-the-server]__0j3gbp7._.js +0 -3
  622. package/.next/server/chunks/[root-of-the-server]__0ko_rm_._.js +0 -3
  623. package/.next/server/chunks/[root-of-the-server]__0miy2g.._.js +0 -3
  624. package/.next/server/chunks/[root-of-the-server]__0mt-eeb._.js +0 -3
  625. package/.next/server/chunks/[root-of-the-server]__0n-6-hc._.js +0 -3
  626. package/.next/server/chunks/[root-of-the-server]__0nur_ir._.js +0 -3
  627. package/.next/server/chunks/[root-of-the-server]__0pz60q-._.js +0 -20
  628. package/.next/server/chunks/[root-of-the-server]__0q~5ya5._.js +0 -3
  629. package/.next/server/chunks/[root-of-the-server]__0rpqx55._.js +0 -3
  630. package/.next/server/chunks/[root-of-the-server]__0sjsc63._.js +0 -4
  631. package/.next/server/chunks/[root-of-the-server]__0th.w7w._.js +0 -3
  632. package/.next/server/chunks/[root-of-the-server]__0u..agy._.js +0 -11
  633. package/.next/server/chunks/[root-of-the-server]__0umzekq._.js +0 -3
  634. package/.next/server/chunks/[root-of-the-server]__0wu61w.._.js +0 -3
  635. package/.next/server/chunks/[root-of-the-server]__11v.yk_._.js +0 -4
  636. package/.next/server/chunks/[root-of-the-server]__12._zd-._.js +0 -3
  637. package/.next/server/chunks/[root-of-the-server]__130shf~._.js +0 -3
  638. package/.next/server/chunks/[turbopack]_runtime.js +0 -903
  639. package/.next/server/chunks/ssr/03j-_@anthropic-ai_claude-agent-sdk_sdk_mjs_0kr2_y.._.js +0 -84
  640. package/.next/server/chunks/ssr/040e_@monaco-editor_react_dist_index_mjs_0t4i-ho._.js +0 -3
  641. package/.next/server/chunks/ssr/040e_@monaco-editor_react_dist_index_mjs_0z6t1fr._.js +0 -3
  642. package/.next/server/chunks/ssr/0kjx__pnpm_0g9g8h6._.js +0 -3
  643. package/.next/server/chunks/ssr/0kjx__pnpm_0l.5ii.._.js +0 -3
  644. package/.next/server/chunks/ssr/0kjx__pnpm_0wrn.h9._.js +0 -14
  645. package/.next/server/chunks/ssr/0rik_@dnd-kit_core_dist_core_esm_11giptg.js +0 -3
  646. package/.next/server/chunks/ssr/0~.g_src_app_workspaces_[workspaceId]_tasks_[taskId]_task-page-client_tsx_0bbseig._.js +0 -3
  647. package/.next/server/chunks/ssr/10ge_next_00.-vj.._.js +0 -18
  648. package/.next/server/chunks/ssr/10ge_next_dist_01n~t8z._.js +0 -6
  649. package/.next/server/chunks/ssr/10ge_next_dist_06_-w96._.js +0 -19
  650. package/.next/server/chunks/ssr/10ge_next_dist_0pw4my6._.js +0 -6
  651. package/.next/server/chunks/ssr/10ge_next_dist_0wjbiu9._.js +0 -3
  652. package/.next/server/chunks/ssr/10ge_next_dist_0~ti7jc._.js +0 -3
  653. package/.next/server/chunks/ssr/10ge_next_dist_10.ihny._.js +0 -3
  654. package/.next/server/chunks/ssr/10ge_next_dist_client_components_0--gzcy._.js +0 -3
  655. package/.next/server/chunks/ssr/10ge_next_dist_client_components_0eil7-a._.js +0 -33
  656. package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_forbidden_0nzsnb2.js +0 -3
  657. package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_global-error_125sopd.js +0 -3
  658. package/.next/server/chunks/ssr/10ge_next_dist_client_components_builtin_unauthorized_0z93cpe.js +0 -3
  659. package/.next/server/chunks/ssr/10ge_next_dist_compiled_0g45ze2._.js +0 -3
  660. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_080g02v.js +0 -4
  661. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_08khzah.js +0 -4
  662. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_09~o5q0.js +0 -4
  663. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0_rj_f4.js +0 -4
  664. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0c-wmj1.js +0 -4
  665. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0fjd2ua.js +0 -4
  666. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0hpuyf0.js +0 -4
  667. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0knnyic.js +0 -4
  668. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0oi86k6.js +0 -4
  669. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0rmwdra.js +0 -4
  670. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_0zgisbd.js +0 -4
  671. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_11pz1fw.js +0 -4
  672. package/.next/server/chunks/ssr/10ge_next_dist_esm_build_templates_app-page_12reczc.js +0 -4
  673. package/.next/server/chunks/ssr/119e_lucide-react_dist_esm_icons_0636jyq._.js +0 -3
  674. package/.next/server/chunks/ssr/[externals]__0of4r_r._.js +0 -3
  675. package/.next/server/chunks/ssr/[externals]__0z1ffhu._.js +0 -3
  676. package/.next/server/chunks/ssr/[externals]_child_process_0pwkpv9._.js +0 -3
  677. package/.next/server/chunks/ssr/[root-of-the-server]__0-0j_z3._.js +0 -3
  678. package/.next/server/chunks/ssr/[root-of-the-server]__0.8y0n9._.js +0 -3
  679. package/.next/server/chunks/ssr/[root-of-the-server]__0.uoh7q._.js +0 -3
  680. package/.next/server/chunks/ssr/[root-of-the-server]__01ws4-7._.js +0 -3
  681. package/.next/server/chunks/ssr/[root-of-the-server]__024-5kd._.js +0 -3
  682. package/.next/server/chunks/ssr/[root-of-the-server]__02ipahf._.js +0 -3
  683. package/.next/server/chunks/ssr/[root-of-the-server]__03.14vw._.js +0 -3
  684. package/.next/server/chunks/ssr/[root-of-the-server]__03swpls._.js +0 -3
  685. package/.next/server/chunks/ssr/[root-of-the-server]__04xn50b._.js +0 -30
  686. package/.next/server/chunks/ssr/[root-of-the-server]__05452ke._.js +0 -30
  687. package/.next/server/chunks/ssr/[root-of-the-server]__06o5v8i._.js +0 -30
  688. package/.next/server/chunks/ssr/[root-of-the-server]__06sm5cw._.js +0 -3
  689. package/.next/server/chunks/ssr/[root-of-the-server]__09m32ch._.js +0 -3
  690. package/.next/server/chunks/ssr/[root-of-the-server]__0_0kxz4._.js +0 -3
  691. package/.next/server/chunks/ssr/[root-of-the-server]__0adx8p4._.js +0 -30
  692. package/.next/server/chunks/ssr/[root-of-the-server]__0bk3s4l._.js +0 -3
  693. package/.next/server/chunks/ssr/[root-of-the-server]__0d5p5d.._.js +0 -30
  694. package/.next/server/chunks/ssr/[root-of-the-server]__0d7u1lw._.js +0 -3
  695. package/.next/server/chunks/ssr/[root-of-the-server]__0fg8.hp._.js +0 -3
  696. package/.next/server/chunks/ssr/[root-of-the-server]__0gsj3~.._.js +0 -30
  697. package/.next/server/chunks/ssr/[root-of-the-server]__0i6glcp._.js +0 -30
  698. package/.next/server/chunks/ssr/[root-of-the-server]__0ibsor_._.js +0 -3
  699. package/.next/server/chunks/ssr/[root-of-the-server]__0j5~a_o._.js +0 -3
  700. package/.next/server/chunks/ssr/[root-of-the-server]__0jgbj6l._.js +0 -3
  701. package/.next/server/chunks/ssr/[root-of-the-server]__0jux8~h._.js +0 -33
  702. package/.next/server/chunks/ssr/[root-of-the-server]__0l~dc3x._.js +0 -3
  703. package/.next/server/chunks/ssr/[root-of-the-server]__0n32nv5._.js +0 -30
  704. package/.next/server/chunks/ssr/[root-of-the-server]__0n8qufu._.js +0 -3
  705. package/.next/server/chunks/ssr/[root-of-the-server]__0ndt9h3._.js +0 -3
  706. package/.next/server/chunks/ssr/[root-of-the-server]__0p~u4y6._.js +0 -3
  707. package/.next/server/chunks/ssr/[root-of-the-server]__0q.du4s._.js +0 -3
  708. package/.next/server/chunks/ssr/[root-of-the-server]__0rs7pkn._.js +0 -3
  709. package/.next/server/chunks/ssr/[root-of-the-server]__0sysz2q._.js +0 -47
  710. package/.next/server/chunks/ssr/[root-of-the-server]__0t25~v8._.js +0 -3
  711. package/.next/server/chunks/ssr/[root-of-the-server]__0ti70do._.js +0 -3
  712. package/.next/server/chunks/ssr/[root-of-the-server]__0uevudp._.js +0 -30
  713. package/.next/server/chunks/ssr/[root-of-the-server]__0v0dk_o._.js +0 -3
  714. package/.next/server/chunks/ssr/[root-of-the-server]__0vpgotk._.js +0 -3
  715. package/.next/server/chunks/ssr/[root-of-the-server]__0wwqzmm._.js +0 -3
  716. package/.next/server/chunks/ssr/[root-of-the-server]__0xt3-qb._.js +0 -3
  717. package/.next/server/chunks/ssr/[root-of-the-server]__0y-lkvf._.js +0 -3
  718. package/.next/server/chunks/ssr/[root-of-the-server]__0zvf.ro._.js +0 -3
  719. package/.next/server/chunks/ssr/[root-of-the-server]__11m7m-q._.js +0 -3
  720. package/.next/server/chunks/ssr/[root-of-the-server]__1223b0_._.js +0 -30
  721. package/.next/server/chunks/ssr/[root-of-the-server]__12f810l._.js +0 -3
  722. package/.next/server/chunks/ssr/[root-of-the-server]__13-by9r._.js +0 -33
  723. package/.next/server/chunks/ssr/[root-of-the-server]__13-egel._.js +0 -3
  724. package/.next/server/chunks/ssr/[turbopack]_runtime.js +0 -903
  725. package/.next/server/chunks/ssr/tower_0-nwtka._.js +0 -3
  726. package/.next/server/chunks/ssr/tower_0-omr_b._.js +0 -30
  727. package/.next/server/chunks/ssr/tower_01szasw._.js +0 -3
  728. package/.next/server/chunks/ssr/tower_035l~qv._.js +0 -3
  729. package/.next/server/chunks/ssr/tower_03jazku._.js +0 -3
  730. package/.next/server/chunks/ssr/tower_0_i~57x._.js +0 -3
  731. package/.next/server/chunks/ssr/tower_0agzi_m._.js +0 -3
  732. package/.next/server/chunks/ssr/tower_0d.car1._.js +0 -30
  733. package/.next/server/chunks/ssr/tower_0egtw-7._.js +0 -30
  734. package/.next/server/chunks/ssr/tower_0h3r32m._.js +0 -30
  735. package/.next/server/chunks/ssr/tower_0kl_bfy._.js +0 -7
  736. package/.next/server/chunks/ssr/tower_0le1h0h._.js +0 -3
  737. package/.next/server/chunks/ssr/tower_0mz4ut.._.js +0 -3
  738. package/.next/server/chunks/ssr/tower_0nuj.0p._.js +0 -39
  739. package/.next/server/chunks/ssr/tower_0pcqezm._.js +0 -3
  740. package/.next/server/chunks/ssr/tower_0r7uuim._.js +0 -30
  741. package/.next/server/chunks/ssr/tower_0rdk81e._.js +0 -3
  742. package/.next/server/chunks/ssr/tower_0sojjnu._.js +0 -3
  743. package/.next/server/chunks/ssr/tower_0tc~.xl._.js +0 -30
  744. package/.next/server/chunks/ssr/tower_0tuq2iz._.js +0 -30
  745. package/.next/server/chunks/ssr/tower_0wvk~r.._.js +0 -3
  746. package/.next/server/chunks/ssr/tower_0xg_zeq._.js +0 -3
  747. package/.next/server/chunks/ssr/tower_0~oir9k._.js +0 -3
  748. package/.next/server/chunks/ssr/tower_10p15te._.js +0 -3
  749. package/.next/server/chunks/ssr/tower_10t13p4._.js +0 -6
  750. package/.next/server/chunks/ssr/tower_117pzh8._.js +0 -3
  751. package/.next/server/chunks/ssr/tower_11q5_.m._.js +0 -3
  752. package/.next/server/chunks/ssr/tower_138qlx5._.js +0 -3
  753. package/.next/server/chunks/ssr/tower__next-internal_server_app__global-error_page_actions_13t5~qk.js +0 -3
  754. package/.next/server/chunks/ssr/tower_src_0puzd-6._.js +0 -3
  755. package/.next/server/chunks/ssr/tower_src_actions_agent-actions_ts_0j.e1tn._.js +0 -4
  756. package/.next/server/chunks/ssr/tower_src_actions_file-actions_ts_0424lna._.js +0 -3
  757. package/.next/server/chunks/ssr/tower_src_app_missions_missions-client_tsx_0a9vjyr._.js +0 -3
  758. package/.next/server/chunks/ssr/tower_src_app_onboarding_page_tsx_0_3krz1._.js +0 -3
  759. package/.next/server/chunks/ssr/tower_src_app_settings_page_tsx_0vo5e-o._.js +0 -3
  760. package/.next/server/chunks/ssr/tower_src_app_workspaces_[workspaceId]_assets_assets-page-client_tsx_0zfgzhi._.js +0 -3
  761. package/.next/server/chunks/ssr/tower_src_app_workspaces_[workspaceId]_board-page-client_tsx_0kjp1u0._.js +0 -7
  762. package/.next/server/chunks/ssr/tower_src_components_ui_select_tsx_10ajx~2._.js +0 -3
  763. package/.next/server/chunks/ssr/tower_src_lib_01420_4._.js +0 -3
  764. package/.next/server/chunks/ssr/tower_src_lib_0i-zjpa._.js +0 -3
  765. package/.next/server/chunks/ssr/tower_src_lib_0ja~kdb._.js +0 -3
  766. package/.next/server/chunks/ssr/tower_src_lib_0obw2r8._.js +0 -3
  767. package/.next/server/chunks/ssr/tower_src_lib_0rgfsuf._.js +0 -3
  768. package/.next/server/chunks/ssr/tower_src_lib_constants_ts_0o218_c._.js +0 -3
  769. package/.next/server/chunks/tower_03g~ktv._.js +0 -7
  770. package/.next/server/chunks/tower_05du07.._.js +0 -10
  771. package/.next/server/chunks/tower_0a-x6m.._.js +0 -3
  772. package/.next/server/chunks/tower__next-internal_server_app_api_adapters_test_route_actions_13jw~9b.js +0 -3
  773. package/.next/server/chunks/tower__next-internal_server_app_api_browse-fs_route_actions_0k5p2xy.js +0 -3
  774. package/.next/server/chunks/tower__next-internal_server_app_api_git_route_actions_0rvpodb.js +0 -3
  775. package/.next/server/chunks/tower__next-internal_server_app_api_internal_assets_reveal_route_actions_0idwm6j.js +0 -3
  776. package/.next/server/chunks/tower__next-internal_server_app_api_internal_assistant_route_actions_0rdz1d..js +0 -3
  777. package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_install_route_actions_06dxleu.js +0 -3
  778. package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_session_route_actions_0wlv4lf.js +0 -3
  779. package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_stop_route_actions_101_oub.js +0 -3
  780. package/.next/server/chunks/tower__next-internal_server_app_api_internal_hooks_upload_route_actions_0439qz_.js +0 -3
  781. package/.next/server/chunks/tower__next-internal_server_app_api_tasks_[taskId]_diff_route_actions_0nthc84.js +0 -3
  782. package/.next/server/chunks/tower__next-internal_server_app_api_tasks_[taskId]_merge_route_actions_0g.x0nb.js +0 -3
  783. package/.next/server/chunks/tower__next-internal_server_app_apple-icon_png_route_actions_0bni-sb.js +0 -3
  784. package/.next/server/chunks/tower__next-internal_server_app_favicon_ico_route_actions_0kw~xj2.js +0 -3
  785. package/.next/server/chunks/tower__next-internal_server_app_icon0_svg_route_actions_0nww9-e.js +0 -3
  786. package/.next/server/chunks/tower__next-internal_server_app_icon1_png_route_actions_09h.ywu.js +0 -3
  787. package/.next/server/chunks/tower__next-internal_server_app_manifest_json_route_actions_080ob~r.js +0 -3
  788. package/.next/server/chunks/tower_src_0..vg-t._.js +0 -3
  789. package/.next/server/chunks/tower_src_05rqj.1._.js +0 -3
  790. package/.next/server/chunks/tower_src_lib_0uok6j3._.js +0 -3
  791. package/.next/server/chunks/tower_src_lib_0w8qt4s._.js +0 -3
  792. package/.next/server/chunks/tower_src_lib_constants_ts_0cxd4.p._.js +0 -3
  793. package/.next/server/edge/chunks/0y9m_next_dist_esm_build_templates_edge-wrapper_0cx_eo..js +0 -3
  794. package/.next/server/edge/chunks/tower_0wvfs38._.js +0 -3
  795. package/.next/server/functions-config-manifest.json +0 -22
  796. package/.next/server/instrumentation/middleware-manifest.json +0 -12
  797. package/.next/server/instrumentation.js +0 -4
  798. package/.next/server/instrumentation.js.nft.json +0 -1
  799. package/.next/server/interception-route-rewrite-manifest.js +0 -1
  800. package/.next/server/middleware-build-manifest.js +0 -22
  801. package/.next/server/middleware-manifest.json +0 -6
  802. package/.next/server/next-font-manifest.js +0 -1
  803. package/.next/server/next-font-manifest.json +0 -55
  804. package/.next/server/pages/404.html +0 -1
  805. package/.next/server/pages/500.html +0 -1
  806. package/.next/server/pages-manifest.json +0 -4
  807. package/.next/server/prefetch-hints.json +0 -1
  808. package/.next/server/server-reference-manifest.js +0 -1
  809. package/.next/server/server-reference-manifest.json +0 -2778
  810. package/.next/static/chunks/0.uav~g39w7rr.js +0 -1
  811. package/.next/static/chunks/00z-g3x93ngvn.js +0 -1
  812. package/.next/static/chunks/02f8le_y~6gnd.js +0 -1
  813. package/.next/static/chunks/03e.4ymu.j5wl.js +0 -1
  814. package/.next/static/chunks/03~yq9q893hmn.js +0 -1
  815. package/.next/static/chunks/05-b9qqm3av9~.js +0 -1
  816. package/.next/static/chunks/05~v02mkan5z..js +0 -1
  817. package/.next/static/chunks/06-mw~zl.diaf.js +0 -1
  818. package/.next/static/chunks/06fsp5nfga486.js +0 -1
  819. package/.next/static/chunks/07~c.vc82_c1-.js +0 -1
  820. package/.next/static/chunks/0abtpeymj-58i.js +0 -1
  821. package/.next/static/chunks/0amhu3hs4zxxw.js +0 -1
  822. package/.next/static/chunks/0drgc-oztq6o-.css +0 -1
  823. package/.next/static/chunks/0eaa2lmymh2fx.js +0 -1
  824. package/.next/static/chunks/0j9qriqni_r1..js +0 -2
  825. package/.next/static/chunks/0k.u8sxy~e469.js +0 -4
  826. package/.next/static/chunks/0k_9.73yz~q10.js +0 -1
  827. package/.next/static/chunks/0ltsz~s~e4wzu.js +0 -1
  828. package/.next/static/chunks/0lvd52mjiit6s.js +0 -1
  829. package/.next/static/chunks/0mf7~j7tvqr46.js +0 -1
  830. package/.next/static/chunks/0mq0uqbbbb1~2.js +0 -1
  831. package/.next/static/chunks/0neevhl_o1ozu.css +0 -2
  832. package/.next/static/chunks/0omj~p3uxkic-.js +0 -1
  833. package/.next/static/chunks/0qe.8bmmwuucu.js +0 -5
  834. package/.next/static/chunks/0qpq1~6v-eql7.js +0 -1
  835. package/.next/static/chunks/0t-gr6j-c65qb.js +0 -1
  836. package/.next/static/chunks/0tcl81ybuob5i.js +0 -1
  837. package/.next/static/chunks/0uqimvsni_op~.js +0 -1
  838. package/.next/static/chunks/0uxf0jd91e-0r.js +0 -1
  839. package/.next/static/chunks/0vn2y~4w7u3ui.js +0 -83
  840. package/.next/static/chunks/0wt3kws~_yr8z.js +0 -1
  841. package/.next/static/chunks/0z2bzovqhl2f5.js +0 -1
  842. package/.next/static/chunks/0z7bwntvfhxzi.js +0 -12
  843. package/.next/static/chunks/10n23t.1hpb-1.js +0 -1
  844. package/.next/static/chunks/14xzmrt5ly6gq.js +0 -31
  845. package/.next/static/chunks/151wr~6x8aclx.js +0 -1
  846. package/.next/static/chunks/15gjy.xhhriy8.js +0 -5
  847. package/.next/static/chunks/16ft9mdv3zwse.js +0 -1
  848. package/.next/static/chunks/16w-ap~msrwpj.js +0 -1
  849. package/.next/static/chunks/17oc2l.ekcs8b.css +0 -1
  850. package/.next/static/chunks/turbopack-0wjmrsi.z32s0.js +0 -1
  851. package/.next/static/dwsGxWRLV_FPRJyEkai5s/_buildManifest.js +0 -11
  852. package/.next/static/dwsGxWRLV_FPRJyEkai5s/_clientMiddlewareManifest.js +0 -1
  853. package/.next/static/dwsGxWRLV_FPRJyEkai5s/_ssgManifest.js +0 -1
  854. package/.next/static/media/4fa387ec64143e14-s.0q3udbd2bu5yp.woff2 +0 -0
  855. package/.next/static/media/7178b3e590c64307-s.11.cyxs5p-0z~.woff2 +0 -0
  856. package/.next/static/media/797e433ab948586e-s.p.0.q-h669a_dqa.woff2 +0 -0
  857. package/.next/static/media/8a480f0b521d4e75-s.06d3mdzz5bre_.woff2 +0 -0
  858. package/.next/static/media/apple-icon.16aocl-s-v2qz.png +0 -0
  859. package/.next/static/media/bbc41e54d2fcbd21-s.0gw~uztddq1df.woff2 +0 -0
  860. package/.next/static/media/caa3a2e1cccd8315-s.p.16t1db8_9y2o~.woff2 +0 -0
  861. package/.next/static/media/favicon.0y2d6j9cou~8p.ico +0 -0
  862. package/.next/static/media/icon0.0a6mkq6meyird.svg +0 -1
  863. package/.next/static/media/icon1.04ux133882seb.png +0 -0
  864. package/.next/trace +0 -2
  865. package/.next/trace-build +0 -1
  866. package/.next/turbopack +0 -0
  867. package/.next/types/routes.d.ts +0 -103
  868. package/.next/types/validator.ts +0 -349
  869. /package/{.next/server/app/apple-icon.png.body → src/app/apple-icon.png} +0 -0
  870. /package/{.next/server/app/favicon.ico.body → src/app/favicon.ico} +0 -0
  871. /package/{.next/server/app/icon0.svg.body → src/app/icon0.svg} +0 -0
  872. /package/{.next/server/app/icon1.png.body → src/app/icon1.png} +0 -0
  873. /package/{.next/server/app/manifest.json.body → src/app/manifest.json} +0 -0
@@ -0,0 +1,741 @@
1
+ "use server";
2
+
3
+ import { db } from "@/lib/db";
4
+ import { revalidatePath } from "next/cache";
5
+ import { createWorktree } from "@/lib/worktree";
6
+ import { createSession } from "@/lib/pty/session-store";
7
+ import { logger } from "@/lib/logger";
8
+ import { readConfigValue } from "@/lib/config-reader";
9
+ import { resolveCliAdapter } from "@/lib/ai/capability-resolver";
10
+ import { writeFile, rm, mkdtemp, mkdir } from "fs/promises";
11
+ import { tmpdir } from "os";
12
+ import { join } from "path";
13
+
14
+ export interface ActiveExecutionInfo {
15
+ executionId: string;
16
+ taskId: string;
17
+ taskTitle: string;
18
+ projectId: string;
19
+ projectName: string;
20
+ projectAlias: string | null;
21
+ projectLocalPath: string | null;
22
+ workspaceId: string;
23
+ workspaceName: string;
24
+ worktreePath: string | null;
25
+ startedAt: string | null; // ISO string for serialization
26
+ }
27
+
28
+ const log = logger.create("agent-actions");
29
+
30
+ const SIGNAL_DIR = join(tmpdir(), "tower-signals");
31
+
32
+ async function writeExitSignal(taskId: string, exitCode: number): Promise<void> {
33
+ try {
34
+ await mkdir(SIGNAL_DIR, { recursive: true, mode: 0o700 });
35
+ await writeFile(join(SIGNAL_DIR, `exit-${taskId}`), String(exitCode), { mode: 0o600 });
36
+ } catch {
37
+ // Best-effort — notification degraded, not fatal
38
+ }
39
+ }
40
+
41
+ function parseProfileJson<T>(raw: string, label: string): T {
42
+ try {
43
+ return JSON.parse(raw) as T;
44
+ } catch {
45
+ throw new Error(`CLI Profile ${label} 格式损坏,请在 Settings 中修复`);
46
+ }
47
+ }
48
+
49
+ export async function sendTaskMessage(taskId: string, content: string) {
50
+ const userMessage = await db.taskMessage.create({
51
+ data: {
52
+ role: "USER",
53
+ content,
54
+ taskId,
55
+ },
56
+ });
57
+
58
+ revalidatePath("/workspaces");
59
+ return { userMessage };
60
+ }
61
+
62
+ export async function getTaskMessages(taskId: string) {
63
+ return db.taskMessage.findMany({
64
+ where: { taskId },
65
+ orderBy: { createdAt: "asc" },
66
+ });
67
+ }
68
+
69
+ export async function startTaskExecution(
70
+ taskId: string,
71
+ agent: string = "CLAUDE_CODE",
72
+ worktreePath?: string,
73
+ worktreeBranch?: string
74
+ ) {
75
+ const execution = await db.taskExecution.create({
76
+ data: {
77
+ taskId,
78
+ agent,
79
+ status: "RUNNING",
80
+ startedAt: new Date(),
81
+ worktreePath: worktreePath ?? null,
82
+ worktreeBranch: worktreeBranch ?? null,
83
+ },
84
+ });
85
+
86
+ await db.task.update({
87
+ where: { id: taskId },
88
+ data: { status: "IN_PROGRESS" },
89
+ });
90
+
91
+ revalidatePath("/workspaces");
92
+ return execution;
93
+ }
94
+
95
+ export async function stopTaskExecution(executionId: string, status: "COMPLETED" | "FAILED" = "FAILED") {
96
+ const execution = await db.taskExecution.update({
97
+ where: { id: executionId },
98
+ data: { status, endedAt: new Date() },
99
+ });
100
+ revalidatePath("/workspaces");
101
+ return execution;
102
+ }
103
+
104
+ /**
105
+ * Stop a running PTY session for a task. Kills the process, captures summary,
106
+ * and updates the execution status to COMPLETED.
107
+ */
108
+ export async function stopPtyExecution(taskId: string): Promise<void> {
109
+ const { destroySession, getSession } = await import("@/lib/pty/session-store");
110
+
111
+ // Capture buffer before destroying
112
+ const session = getSession(taskId);
113
+ const terminalBuffer = session?.getBuffer() ?? "";
114
+
115
+ // Find the RUNNING execution + task project for direct mode fallback
116
+ const execution = await db.taskExecution.findFirst({
117
+ where: { taskId, status: "RUNNING" },
118
+ orderBy: { createdAt: "desc" },
119
+ });
120
+ const task = await db.task.findUnique({
121
+ where: { id: taskId },
122
+ include: { project: { select: { localPath: true } } },
123
+ });
124
+
125
+ // Destroy the PTY session (kills the process)
126
+ destroySession(taskId);
127
+
128
+ if (execution) {
129
+ await db.taskExecution.update({
130
+ where: { id: execution.id },
131
+ data: { status: "COMPLETED", endedAt: new Date() },
132
+ });
133
+
134
+ // Transition task to IN_REVIEW
135
+ await db.task.update({
136
+ where: { id: taskId },
137
+ data: { status: "IN_REVIEW" },
138
+ });
139
+
140
+ // Capture summary — use worktreePath or project localPath for direct mode
141
+ const summaryPath = execution.worktreePath || task?.project?.localPath || null;
142
+ const { captureExecutionSummary } = await import("@/lib/execution-summary");
143
+ await captureExecutionSummary(
144
+ execution.id, taskId, 0, terminalBuffer, summaryPath
145
+ );
146
+ }
147
+
148
+ revalidatePath("/workspaces");
149
+ }
150
+
151
+ export async function getTaskExecutions(taskId: string) {
152
+ return db.taskExecution.findMany({
153
+ where: { taskId },
154
+ orderBy: { createdAt: "desc" },
155
+ include: {
156
+ insightNote: { select: { id: true, title: true, content: true } },
157
+ },
158
+ });
159
+ }
160
+
161
+ /**
162
+ * Resume a previous Claude CLI session for a task.
163
+ * Reuses the existing TaskExecution record (same session = same execution).
164
+ */
165
+ export async function resumePtyExecution(
166
+ taskId: string,
167
+ previousSessionId: string
168
+ ): Promise<{ executionId: string; worktreePath: string | null }> {
169
+ const task = await db.task.findUnique({
170
+ where: { id: taskId },
171
+ include: { project: true },
172
+ });
173
+
174
+ if (!task) throw new Error("Task not found");
175
+ if (!task.project?.localPath) throw new Error("Project has no local path configured");
176
+
177
+ // Clean up stale RUNNING executions (not the one we're resuming)
178
+ await db.taskExecution.updateMany({
179
+ where: { taskId, status: "RUNNING", NOT: { sessionId: previousSessionId } },
180
+ data: { status: "FAILED", endedAt: new Date() },
181
+ });
182
+
183
+ // Find the existing execution for this session — reuse it
184
+ const prevExec = await db.taskExecution.findFirst({
185
+ where: { taskId, sessionId: previousSessionId },
186
+ orderBy: { createdAt: "desc" },
187
+ });
188
+
189
+ if (!prevExec) throw new Error("Previous execution not found");
190
+
191
+ const baseCwd = prevExec.worktreePath ?? task.project.localPath;
192
+ const cwd = task.subPath ? join(baseCwd, task.subPath) : baseCwd;
193
+
194
+ // Read CliProfile — determines profile args and env vars
195
+ const profile = await db.cliProfile.findFirst({ where: { isDefault: true } });
196
+ if (!profile) throw new Error("No default CLI profile found — run seed first");
197
+ const profileBaseArgs = parseProfileJson<string[]>(profile.baseArgs, "baseArgs");
198
+ const profileEnvVars = parseProfileJson<Record<string, string>>(profile.envVars, "envVars");
199
+
200
+ // Read idle timeout from config
201
+ const idleTimeoutSec = await readConfigValue<number>("terminal.idleTimeoutSec", 180);
202
+
203
+ // Resolve adapter
204
+ const { adapter: cliAdapter } = await resolveCliAdapter("terminal");
205
+
206
+ const adapterEnv = cliAdapter.buildEnvOverrides({
207
+ taskId,
208
+ taskTitle: task.title,
209
+ apiUrl: `http://localhost:${process.env.PORT || "3000"}`,
210
+ callbackUrl: prevExec.callbackUrl ?? undefined,
211
+ });
212
+
213
+ // Reuse execution: set back to RUNNING
214
+ const execution = await db.taskExecution.update({
215
+ where: { id: prevExec.id },
216
+ data: { status: "RUNNING", endedAt: null },
217
+ });
218
+
219
+ await db.task.update({
220
+ where: { id: taskId },
221
+ data: { status: "IN_PROGRESS" },
222
+ });
223
+ revalidatePath("/workspaces");
224
+
225
+ const usernameVal = await readConfigValue<string>("onboarding.username", "");
226
+
227
+ const spawnResult = cliAdapter.buildSpawnArgs({
228
+ taskId,
229
+ prompt: "",
230
+ cwd,
231
+ resumeSessionId: previousSessionId,
232
+ profileArgs: [
233
+ ...profileBaseArgs,
234
+ ...(usernameVal ? ["--append-system-prompt", `The user's name is ${usernameVal}.`] : []),
235
+ ],
236
+ profileEnvVars,
237
+ envOverrides: adapterEnv,
238
+ });
239
+
240
+ const SESSION_ERROR_RE = /no conversation found with session id|unknown session|session .* not found/i;
241
+
242
+ createSession(
243
+ taskId,
244
+ spawnResult.command,
245
+ spawnResult.args,
246
+ cwd,
247
+ () => {},
248
+ async (exitCode) => {
249
+ // Write exit code signal file for notify-agi.sh (runs before DB update)
250
+ await writeExitSignal(taskId, exitCode);
251
+
252
+ // Guard: if stopPtyExecution already handled this, skip
253
+ const currentExec = await db.taskExecution.findUnique({ where: { id: execution.id } });
254
+ if (currentExec?.status !== "RUNNING") return;
255
+
256
+ const { getSession } = await import("@/lib/pty/session-store");
257
+ const session = getSession(taskId);
258
+ const terminalBuffer = session?.getBuffer() ?? "";
259
+
260
+ // Session resume fallback: if Claude exited with session error, auto-retry fresh
261
+ if (exitCode !== 0 && SESSION_ERROR_RE.test(terminalBuffer)) {
262
+ log.info("Session resume failed — retrying with fresh execution", { taskId, previousSessionId });
263
+ await db.taskExecution.update({
264
+ where: { id: execution.id },
265
+ data: { status: "FAILED", endedAt: new Date() },
266
+ }).catch(() => {});
267
+ try {
268
+ await startPtyExecution(taskId, task.title);
269
+ } catch (err) {
270
+ log.error("Fresh execution retry also failed", err, { taskId });
271
+ }
272
+ return;
273
+ }
274
+
275
+ await db.taskExecution.update({
276
+ where: { id: execution.id },
277
+ data: {
278
+ status: exitCode === 0 ? "COMPLETED" : "FAILED",
279
+ endedAt: new Date(),
280
+ },
281
+ }).catch(() => {});
282
+
283
+ // Use worktreePath if available, otherwise fall back to project localPath (direct mode)
284
+ const summaryPath = prevExec.worktreePath || task.project!.localPath;
285
+ const { captureExecutionSummary } = await import("@/lib/execution-summary");
286
+ await captureExecutionSummary(execution.id, taskId, exitCode, terminalBuffer, summaryPath);
287
+
288
+ // Dispatch task completion event for notification system (Phase 65)
289
+ const { dispatchTaskCompletionEvent } = await import("@/actions/onboarding-actions");
290
+ await dispatchTaskCompletionEvent({
291
+ taskId,
292
+ taskTitle: task.title,
293
+ status: exitCode === 0 ? "COMPLETED" : "FAILED",
294
+ executionId: execution.id,
295
+ workspaceId: task.project.workspaceId,
296
+ });
297
+
298
+ if (exitCode === 0) {
299
+ await db.task.update({ where: { id: taskId }, data: { status: "IN_REVIEW" } }).catch(() => {});
300
+ }
301
+ },
302
+ spawnResult.env,
303
+ undefined,
304
+ idleTimeoutSec * 1000
305
+ );
306
+
307
+ return { executionId: execution.id, worktreePath: prevExec.worktreePath ?? baseCwd ?? null };
308
+ }
309
+
310
+ /**
311
+ * Continue the most recent Claude CLI session for a task (no sessionId needed).
312
+ * Uses `claude --continue` to resume the latest conversation in the cwd.
313
+ * Useful when a session was interrupted (crash, power loss) and sessionId was not captured.
314
+ */
315
+ export async function continueLatestPtyExecution(
316
+ taskId: string
317
+ ): Promise<{ executionId: string; worktreePath: string | null }> {
318
+ const task = await db.task.findUnique({
319
+ where: { id: taskId },
320
+ include: { project: true },
321
+ });
322
+
323
+ if (!task) throw new Error("Task not found");
324
+ if (!task.project?.localPath) throw new Error("Project has no local path configured");
325
+
326
+ // Find the latest execution to reuse its worktree path
327
+ const latestExec = await db.taskExecution.findFirst({
328
+ where: { taskId },
329
+ orderBy: { createdAt: "desc" },
330
+ });
331
+
332
+ // Destroy any live PTY session for this task before spawning a new one
333
+ const { destroySession: destroyExisting } = await import("@/lib/pty/session-store");
334
+ destroyExisting(taskId);
335
+
336
+ // Clean up stale RUNNING executions
337
+ await db.taskExecution.updateMany({
338
+ where: { taskId, status: "RUNNING" },
339
+ data: { status: "FAILED", endedAt: new Date() },
340
+ });
341
+
342
+ const baseCwd = latestExec?.worktreePath ?? task.project.localPath;
343
+ const cwd = task.subPath ? join(baseCwd, task.subPath) : baseCwd;
344
+
345
+ // Read CliProfile
346
+ const profile = await db.cliProfile.findFirst({ where: { isDefault: true } });
347
+ if (!profile) throw new Error("No default CLI profile found — run seed first");
348
+ const profileBaseArgs = parseProfileJson<string[]>(profile.baseArgs, "baseArgs");
349
+ const profileEnvVars = parseProfileJson<Record<string, string>>(profile.envVars, "envVars");
350
+ const idleTimeoutSec = await readConfigValue<number>("terminal.idleTimeoutSec", 180);
351
+
352
+ // Resolve adapter
353
+ const { adapter: cliAdapter, provider: providerDef } = await resolveCliAdapter("terminal");
354
+
355
+ const adapterEnv = cliAdapter.buildEnvOverrides({
356
+ taskId,
357
+ taskTitle: task.title,
358
+ apiUrl: `http://localhost:${process.env.PORT || "3000"}`,
359
+ });
360
+
361
+ // Create a new execution record
362
+ const execution = await db.taskExecution.create({
363
+ data: {
364
+ taskId,
365
+ agent: providerDef.agentFieldValue,
366
+ status: "RUNNING",
367
+ startedAt: new Date(),
368
+ worktreePath: latestExec?.worktreePath ?? null,
369
+ worktreeBranch: latestExec?.worktreeBranch ?? null,
370
+ },
371
+ });
372
+
373
+ await db.task.update({
374
+ where: { id: taskId },
375
+ data: { status: "IN_PROGRESS" },
376
+ });
377
+ revalidatePath("/workspaces");
378
+
379
+ const usernameVal = await readConfigValue<string>("onboarding.username", "");
380
+
381
+ const spawnResult = cliAdapter.buildSpawnArgs({
382
+ taskId,
383
+ prompt: "",
384
+ cwd,
385
+ continueLatest: true,
386
+ profileArgs: [
387
+ ...profileBaseArgs,
388
+ ...(usernameVal ? ["--append-system-prompt", `The user's name is ${usernameVal}.`] : []),
389
+ ],
390
+ profileEnvVars,
391
+ envOverrides: adapterEnv,
392
+ });
393
+
394
+ createSession(
395
+ taskId,
396
+ spawnResult.command,
397
+ spawnResult.args,
398
+ cwd,
399
+ () => {},
400
+ async (exitCode) => {
401
+ await writeExitSignal(taskId, exitCode);
402
+
403
+ const currentExec = await db.taskExecution.findUnique({ where: { id: execution.id } });
404
+ if (currentExec?.status !== "RUNNING") return;
405
+
406
+ const { getSession } = await import("@/lib/pty/session-store");
407
+ const session = getSession(taskId);
408
+ const terminalBuffer = session?.getBuffer() ?? "";
409
+
410
+ await db.taskExecution.update({
411
+ where: { id: execution.id },
412
+ data: {
413
+ status: exitCode === 0 ? "COMPLETED" : "FAILED",
414
+ endedAt: new Date(),
415
+ },
416
+ }).catch(() => {});
417
+
418
+ const summaryPath = latestExec?.worktreePath || task.project!.localPath;
419
+ const { captureExecutionSummary } = await import("@/lib/execution-summary");
420
+ await captureExecutionSummary(execution.id, taskId, exitCode, terminalBuffer, summaryPath);
421
+
422
+ // Dispatch task completion event for notification system (Phase 65)
423
+ const { dispatchTaskCompletionEvent } = await import("@/actions/onboarding-actions");
424
+ await dispatchTaskCompletionEvent({
425
+ taskId,
426
+ taskTitle: task.title,
427
+ status: exitCode === 0 ? "COMPLETED" : "FAILED",
428
+ executionId: execution.id,
429
+ workspaceId: task.project.workspaceId,
430
+ });
431
+
432
+ if (exitCode === 0) {
433
+ await db.task.update({ where: { id: taskId }, data: { status: "IN_REVIEW" } }).catch(() => {});
434
+ }
435
+ },
436
+ spawnResult.env,
437
+ undefined,
438
+ idleTimeoutSec * 1000
439
+ );
440
+
441
+ return { executionId: execution.id, worktreePath: latestExec?.worktreePath ?? baseCwd ?? null };
442
+ }
443
+
444
+ /**
445
+ * INT-01: Create a TaskExecution row and spawn Claude CLI in PTY mode.
446
+ *
447
+ * This replaces the SSE stream route for terminal-based execution (Phase 26).
448
+ * The session is pre-created with a no-op onData; ws-server.ts wires the real
449
+ * WebSocket broadcaster when the client connects (via setDataListener).
450
+ *
451
+ * Differences from stream route:
452
+ * - No --output-format stream-json or --print - flags (INT-02: raw TTY mode)
453
+ * - Status update happens in the PTY onExit callback (INT-03)
454
+ * - revalidatePath called after status transition to IN_PROGRESS
455
+ */
456
+ export async function startPtyExecution(
457
+ taskId: string,
458
+ prompt: string,
459
+ selectedPromptId?: string | null,
460
+ callbackUrl?: string | null
461
+ ): Promise<{ executionId: string; worktreePath: string | null }> {
462
+ // 1. Load task with project
463
+ const task = await db.task.findUnique({
464
+ where: { id: taskId },
465
+ include: { project: true },
466
+ });
467
+
468
+ if (!task) {
469
+ throw new Error("Task not found");
470
+ }
471
+
472
+ if (!task.project?.localPath) {
473
+ throw new Error("Project has no local path configured");
474
+ }
475
+
476
+ // 1a. Enforce concurrency limit
477
+ const maxConcurrent = await readConfigValue<number>("system.maxConcurrentExecutions", 20);
478
+ const runningCount = await db.taskExecution.count({ where: { status: "RUNNING" } });
479
+ if (runningCount >= maxConcurrent) {
480
+ throw new Error(`已达并发上限(${maxConcurrent}),请等待其他任务完成后再启动`);
481
+ }
482
+
483
+ // 1b. Read CliProfile — determines profile args and env vars
484
+ const profile = await db.cliProfile.findFirst({ where: { isDefault: true } });
485
+ if (!profile) throw new Error("No default CLI profile found — run seed first");
486
+ const profileBaseArgs = parseProfileJson<string[]>(profile.baseArgs, "baseArgs");
487
+ const profileEnvVars = parseProfileJson<Record<string, string>>(profile.envVars, "envVars");
488
+
489
+ // 1c. Read idle timeout from config
490
+ const idleTimeoutSec = await readConfigValue<number>("terminal.idleTimeoutSec", 180);
491
+
492
+ // 1d. Resolve adapter
493
+ const { adapter: cliAdapter, provider: providerDef, model: configuredModel } = await resolveCliAdapter("terminal");
494
+
495
+ // 2. Clean up stale RUNNING executions (from crashed/killed processes)
496
+ await db.taskExecution.updateMany({
497
+ where: { taskId, status: "RUNNING" },
498
+ data: { status: "FAILED", endedAt: new Date() },
499
+ });
500
+
501
+ // 3. Transition task to IN_PROGRESS (from TODO, IN_REVIEW, or any non-terminal state)
502
+ if (task.status !== "IN_PROGRESS") {
503
+ await db.task.update({
504
+ where: { id: taskId },
505
+ data: { status: "IN_PROGRESS" },
506
+ });
507
+ revalidatePath("/workspaces");
508
+ }
509
+
510
+ // 4. Build full prompt string (mirrors stream/route.ts buildExecutionPrompt)
511
+ const messages = await db.taskMessage.findMany({
512
+ where: { taskId },
513
+ orderBy: { createdAt: "desc" },
514
+ take: 10,
515
+ });
516
+ const contextParts = [
517
+ `Task: ${task.title}`,
518
+ task.description ? `Description: ${task.description}` : "",
519
+ messages.length > 0
520
+ ? `Recent conversation:\n${messages
521
+ .reverse()
522
+ .map((m) => `${m.role}: ${m.content}`)
523
+ .join("\n")}`
524
+ : "",
525
+ prompt.trim() ? `User message: ${prompt}` : "",
526
+ ].filter(Boolean);
527
+ const fullPrompt = contextParts.join("\n\n");
528
+
529
+ // 5. Prepare instructions file if task has a promptId (or selectedPromptId)
530
+ let instructionsFile: string | undefined;
531
+ let tempDir: string | undefined;
532
+
533
+ const promptId = selectedPromptId ?? task.promptId;
534
+ if (promptId) {
535
+ const promptRecord = await db.agentPrompt.findUnique({
536
+ where: { id: promptId },
537
+ });
538
+ if (promptRecord?.content) {
539
+ tempDir = await mkdtemp(join(tmpdir(), "tower-pty-"));
540
+ instructionsFile = join(tempDir, "instructions.md");
541
+ await writeFile(instructionsFile, promptRecord.content, "utf-8");
542
+ }
543
+ }
544
+
545
+ // 6. Create worktree if task has a baseBranch
546
+ let resolvedWorktreePath: string | null = null;
547
+ let resolvedWorktreeBranch: string | null = null;
548
+
549
+ if (task.baseBranch && task.project.localPath) {
550
+ const { worktreePath, worktreeBranch } = await createWorktree(
551
+ task.project.localPath,
552
+ taskId,
553
+ task.baseBranch
554
+ );
555
+ resolvedWorktreePath = worktreePath;
556
+ resolvedWorktreeBranch = worktreeBranch;
557
+ }
558
+
559
+ const baseCwd = resolvedWorktreePath ?? task.project.localPath;
560
+ const cwd = task.subPath ? join(baseCwd, task.subPath) : baseCwd;
561
+
562
+ // 7. Create TaskExecution row with RUNNING status
563
+ const execution = await db.taskExecution.create({
564
+ data: {
565
+ taskId,
566
+ agent: providerDef.agentFieldValue,
567
+ status: "RUNNING",
568
+ startedAt: new Date(),
569
+ worktreePath: resolvedWorktreePath ?? null,
570
+ worktreeBranch: resolvedWorktreeBranch ?? null,
571
+ callbackUrl: callbackUrl ?? null,
572
+ },
573
+ });
574
+
575
+ // 7b. Record forkCommit
576
+ // Worktree mode: merge-base between baseBranch and HEAD
577
+ // Direct mode: current HEAD commit (baseline for diff)
578
+ if (task.project.localPath) {
579
+ try {
580
+ const { execFileSync } = await import("child_process");
581
+ let forkCommit: string;
582
+ if (resolvedWorktreePath && task.baseBranch) {
583
+ forkCommit = execFileSync(
584
+ "git", ["merge-base", task.baseBranch, "HEAD"],
585
+ { cwd: resolvedWorktreePath, encoding: "utf-8", timeout: 5000 }
586
+ ).trim();
587
+ } else {
588
+ forkCommit = execFileSync(
589
+ "git", ["rev-parse", "HEAD"],
590
+ { cwd: task.project.localPath, encoding: "utf-8", timeout: 5000 }
591
+ ).trim();
592
+ }
593
+ if (forkCommit) {
594
+ await db.taskExecution.update({
595
+ where: { id: execution.id },
596
+ data: { forkCommit },
597
+ });
598
+ }
599
+ } catch {
600
+ // Best effort — diff will fallback to branch comparison
601
+ }
602
+ }
603
+
604
+ // 7c. Build system prompt additions
605
+ let appendSystemPrompt = "";
606
+ if (instructionsFile) {
607
+ const { readFile } = await import("fs/promises");
608
+ appendSystemPrompt += await readFile(instructionsFile, "utf-8");
609
+ }
610
+ const usernameVal = await readConfigValue<string>("onboarding.username", "");
611
+ if (usernameVal) {
612
+ appendSystemPrompt += (appendSystemPrompt ? "\n" : "") + `The user's name is ${usernameVal}.`;
613
+ }
614
+
615
+ // 8. Adapter produces complete command + args + env
616
+ const spawnResult = cliAdapter.buildSpawnArgs({
617
+ taskId,
618
+ prompt: fullPrompt,
619
+ cwd,
620
+ profileArgs: [
621
+ ...profileBaseArgs,
622
+ ...(appendSystemPrompt ? ["--append-system-prompt", appendSystemPrompt] : []),
623
+ ...(configuredModel ? ["--model", configuredModel] : []),
624
+ ],
625
+ profileEnvVars,
626
+ envOverrides: cliAdapter.buildEnvOverrides({
627
+ taskId,
628
+ taskTitle: task.title,
629
+ apiUrl: `http://localhost:${process.env.PORT || "3000"}`,
630
+ callbackUrl: callbackUrl ?? undefined,
631
+ }),
632
+ });
633
+
634
+ // 9. Create PTY session — onData is a no-op; ws-server.ts wires the real
635
+ // broadcaster via setDataListener when the WebSocket client connects
636
+ createSession(
637
+ taskId,
638
+ spawnResult.command,
639
+ spawnResult.args,
640
+ cwd,
641
+ () => {},
642
+ async (exitCode) => {
643
+ // Write exit code signal file for notify-agi.sh (runs before DB update)
644
+ await writeExitSignal(taskId, exitCode);
645
+
646
+ // Guard: if stopPtyExecution already handled this execution, skip
647
+ const currentExec = await db.taskExecution.findUnique({ where: { id: execution.id } });
648
+ if (currentExec?.status !== "RUNNING") {
649
+ // Already finalized by stopPtyExecution — don't overwrite
650
+ return;
651
+ }
652
+
653
+ // Capture terminal buffer FIRST (before session might be destroyed)
654
+ const { getSession } = await import("@/lib/pty/session-store");
655
+ const session = getSession(taskId);
656
+ const terminalBuffer = session?.getBuffer() ?? "";
657
+
658
+ // INT-03: Update execution status and task status on PTY exit
659
+ await db.taskExecution
660
+ .update({
661
+ where: { id: execution.id },
662
+ data: {
663
+ status: exitCode === 0 ? "COMPLETED" : "FAILED",
664
+ endedAt: new Date(),
665
+ },
666
+ })
667
+ .catch((err: unknown) => {
668
+ log.error("Failed to update execution status", err);
669
+ });
670
+
671
+ // Capture execution summary (git log, stats, terminal log)
672
+ // Use worktreePath if available, otherwise fall back to project localPath (direct mode)
673
+ const summaryPath = resolvedWorktreePath || task.project!.localPath;
674
+ const { captureExecutionSummary } = await import("@/lib/execution-summary");
675
+ await captureExecutionSummary(
676
+ execution.id,
677
+ taskId,
678
+ exitCode,
679
+ terminalBuffer,
680
+ summaryPath
681
+ );
682
+
683
+ // Dispatch task completion event for notification system (Phase 65)
684
+ const { dispatchTaskCompletionEvent } = await import("@/actions/onboarding-actions");
685
+ await dispatchTaskCompletionEvent({
686
+ taskId,
687
+ taskTitle: task.title,
688
+ status: exitCode === 0 ? "COMPLETED" : "FAILED",
689
+ executionId: execution.id,
690
+ workspaceId: task.project.workspaceId,
691
+ });
692
+
693
+ if (exitCode === 0) {
694
+ await db.task
695
+ .update({ where: { id: taskId }, data: { status: "IN_REVIEW" } })
696
+ .catch((err: unknown) => {
697
+ log.error("Failed to update task status", err);
698
+ });
699
+ }
700
+
701
+ // Clean up temp instructions dir
702
+ if (tempDir) {
703
+ await rm(tempDir, { recursive: true, force: true }).catch(() => {});
704
+ }
705
+ },
706
+ spawnResult.env,
707
+ undefined,
708
+ idleTimeoutSec * 1000
709
+ );
710
+
711
+ return { executionId: execution.id, worktreePath: resolvedWorktreePath ?? baseCwd ?? null };
712
+ }
713
+
714
+ export async function getActiveExecutionsAcrossWorkspaces(): Promise<ActiveExecutionInfo[]> {
715
+ const executions = await db.taskExecution.findMany({
716
+ where: { status: "RUNNING" },
717
+ orderBy: { startedAt: "asc" },
718
+ include: {
719
+ task: {
720
+ include: {
721
+ project: {
722
+ include: { workspace: true },
723
+ },
724
+ },
725
+ },
726
+ },
727
+ });
728
+ return executions.map((e) => ({
729
+ executionId: e.id,
730
+ taskId: e.taskId,
731
+ taskTitle: e.task.title,
732
+ projectId: e.task.project.id,
733
+ projectName: e.task.project.name,
734
+ projectAlias: e.task.project.alias,
735
+ projectLocalPath: e.task.project.localPath,
736
+ workspaceId: e.task.project.workspace.id,
737
+ workspaceName: e.task.project.workspace.name,
738
+ worktreePath: e.worktreePath,
739
+ startedAt: e.startedAt?.toISOString() ?? null,
740
+ }));
741
+ }