@jcjeon/integration-cli 0.2.0 → 0.2.1

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 (820) hide show
  1. package/apps/server/dist/app.controller.d.ts +6 -0
  2. package/apps/server/dist/app.controller.js +35 -0
  3. package/apps/server/dist/app.controller.js.map +1 -0
  4. package/apps/server/dist/app.module.d.ts +2 -0
  5. package/apps/server/dist/app.module.js +30 -0
  6. package/apps/server/dist/app.module.js.map +1 -0
  7. package/apps/server/dist/app.service.d.ts +3 -0
  8. package/apps/server/dist/app.service.js +20 -0
  9. package/apps/server/dist/app.service.js.map +1 -0
  10. package/apps/server/dist/common/ji-paths.d.ts +22 -0
  11. package/apps/server/dist/common/ji-paths.js +77 -0
  12. package/apps/server/dist/common/ji-paths.js.map +1 -0
  13. package/apps/server/dist/database/database.module.d.ts +2 -0
  14. package/apps/server/dist/database/database.module.js +38 -0
  15. package/apps/server/dist/database/database.module.js.map +1 -0
  16. package/apps/server/dist/database/entities/agent-changelog.entity.d.ts +14 -0
  17. package/apps/server/dist/database/entities/agent-changelog.entity.js +75 -0
  18. package/apps/server/dist/database/entities/agent-changelog.entity.js.map +1 -0
  19. package/apps/server/dist/database/entities/agent-session.entity.d.ts +10 -0
  20. package/apps/server/dist/database/entities/agent-session.entity.js +60 -0
  21. package/apps/server/dist/database/entities/agent-session.entity.js.map +1 -0
  22. package/apps/server/dist/database/entities/conversation.entity.d.ts +12 -0
  23. package/apps/server/dist/database/entities/conversation.entity.js +66 -0
  24. package/apps/server/dist/database/entities/conversation.entity.js.map +1 -0
  25. package/apps/server/dist/database/entities/session.entity.d.ts +6 -0
  26. package/apps/server/dist/database/entities/session.entity.js +40 -0
  27. package/apps/server/dist/database/entities/session.entity.js.map +1 -0
  28. package/apps/server/dist/database/entities/task-agent-run.entity.d.ts +15 -0
  29. package/apps/server/dist/database/entities/task-agent-run.entity.js +77 -0
  30. package/apps/server/dist/database/entities/task-agent-run.entity.js.map +1 -0
  31. package/apps/server/dist/database/entities/task-agent.entity.d.ts +16 -0
  32. package/apps/server/dist/database/entities/task-agent.entity.js +76 -0
  33. package/apps/server/dist/database/entities/task-agent.entity.js.map +1 -0
  34. package/apps/server/dist/database/entities/task-requirement.entity.d.ts +10 -0
  35. package/apps/server/dist/database/entities/task-requirement.entity.js +56 -0
  36. package/apps/server/dist/database/entities/task-requirement.entity.js.map +1 -0
  37. package/apps/server/dist/database/entities/task-run.entity.d.ts +13 -0
  38. package/apps/server/dist/database/entities/task-run.entity.js +67 -0
  39. package/apps/server/dist/database/entities/task-run.entity.js.map +1 -0
  40. package/apps/server/dist/database/entities/task.entity.d.ts +14 -0
  41. package/apps/server/dist/database/entities/task.entity.js +72 -0
  42. package/apps/server/dist/database/entities/task.entity.js.map +1 -0
  43. package/apps/server/dist/main.d.ts +1 -0
  44. package/apps/server/dist/main.js +81 -0
  45. package/apps/server/dist/main.js.map +1 -0
  46. package/apps/server/dist/modules/agents/agents.module.d.ts +2 -0
  47. package/apps/server/dist/modules/agents/agents.module.js +23 -0
  48. package/apps/server/dist/modules/agents/agents.module.js.map +1 -0
  49. package/apps/server/dist/modules/agents/claude/claude-auth.manager.d.ts +15 -0
  50. package/apps/server/dist/modules/agents/claude/claude-auth.manager.js +71 -0
  51. package/apps/server/dist/modules/agents/claude/claude-auth.manager.js.map +1 -0
  52. package/apps/server/dist/modules/agents/claude/claude-pty.manager.d.ts +29 -0
  53. package/apps/server/dist/modules/agents/claude/claude-pty.manager.js +372 -0
  54. package/apps/server/dist/modules/agents/claude/claude-pty.manager.js.map +1 -0
  55. package/apps/server/dist/modules/agents/claude/claude.controller.d.ts +19 -0
  56. package/apps/server/dist/modules/agents/claude/claude.controller.js +125 -0
  57. package/apps/server/dist/modules/agents/claude/claude.controller.js.map +1 -0
  58. package/apps/server/dist/modules/agents/claude/claude.gateway.d.ts +27 -0
  59. package/apps/server/dist/modules/agents/claude/claude.gateway.js +148 -0
  60. package/apps/server/dist/modules/agents/claude/claude.gateway.js.map +1 -0
  61. package/apps/server/dist/modules/agents/claude/claude.module.d.ts +2 -0
  62. package/apps/server/dist/modules/agents/claude/claude.module.js +30 -0
  63. package/apps/server/dist/modules/agents/claude/claude.module.js.map +1 -0
  64. package/apps/server/dist/modules/agents/claude/claude.service.d.ts +28 -0
  65. package/apps/server/dist/modules/agents/claude/claude.service.js +94 -0
  66. package/apps/server/dist/modules/agents/claude/claude.service.js.map +1 -0
  67. package/apps/server/dist/modules/agents/claude/dto/create-session.dto.d.ts +6 -0
  68. package/apps/server/dist/modules/agents/claude/dto/create-session.dto.js +46 -0
  69. package/apps/server/dist/modules/agents/claude/dto/create-session.dto.js.map +1 -0
  70. package/apps/server/dist/modules/agents/claude/dto/resize-session.dto.d.ts +4 -0
  71. package/apps/server/dist/modules/agents/claude/dto/resize-session.dto.js +31 -0
  72. package/apps/server/dist/modules/agents/claude/dto/resize-session.dto.js.map +1 -0
  73. package/apps/server/dist/modules/agents/claude/dto/send-input.dto.d.ts +3 -0
  74. package/apps/server/dist/modules/agents/claude/dto/send-input.dto.js +25 -0
  75. package/apps/server/dist/modules/agents/claude/dto/send-input.dto.js.map +1 -0
  76. package/apps/server/dist/modules/agents/claude/interfaces/claude-session.interface.d.ts +22 -0
  77. package/apps/server/dist/modules/agents/claude/interfaces/claude-session.interface.js +3 -0
  78. package/apps/server/dist/modules/agents/claude/interfaces/claude-session.interface.js.map +1 -0
  79. package/apps/server/dist/modules/agents/claude/interfaces/pty-event.interface.d.ts +9 -0
  80. package/apps/server/dist/modules/agents/claude/interfaces/pty-event.interface.js +3 -0
  81. package/apps/server/dist/modules/agents/claude/interfaces/pty-event.interface.js.map +1 -0
  82. package/apps/server/dist/modules/agents/claude/interfaces/stream-event.interface.d.ts +53 -0
  83. package/apps/server/dist/modules/agents/claude/interfaces/stream-event.interface.js +3 -0
  84. package/apps/server/dist/modules/agents/claude/interfaces/stream-event.interface.js.map +1 -0
  85. package/apps/server/dist/modules/agents/codex/codex-auth.manager.d.ts +16 -0
  86. package/apps/server/dist/modules/agents/codex/codex-auth.manager.js +136 -0
  87. package/apps/server/dist/modules/agents/codex/codex-auth.manager.js.map +1 -0
  88. package/apps/server/dist/modules/agents/codex/codex-session.manager.d.ts +37 -0
  89. package/apps/server/dist/modules/agents/codex/codex-session.manager.js +319 -0
  90. package/apps/server/dist/modules/agents/codex/codex-session.manager.js.map +1 -0
  91. package/apps/server/dist/modules/agents/codex/codex.controller.d.ts +19 -0
  92. package/apps/server/dist/modules/agents/codex/codex.controller.js +95 -0
  93. package/apps/server/dist/modules/agents/codex/codex.controller.js.map +1 -0
  94. package/apps/server/dist/modules/agents/codex/codex.gateway.d.ts +27 -0
  95. package/apps/server/dist/modules/agents/codex/codex.gateway.js +123 -0
  96. package/apps/server/dist/modules/agents/codex/codex.gateway.js.map +1 -0
  97. package/apps/server/dist/modules/agents/codex/codex.module.d.ts +2 -0
  98. package/apps/server/dist/modules/agents/codex/codex.module.js +29 -0
  99. package/apps/server/dist/modules/agents/codex/codex.module.js.map +1 -0
  100. package/apps/server/dist/modules/agents/codex/dto/configure-auth.dto.d.ts +3 -0
  101. package/apps/server/dist/modules/agents/codex/dto/configure-auth.dto.js +23 -0
  102. package/apps/server/dist/modules/agents/codex/dto/configure-auth.dto.js.map +1 -0
  103. package/apps/server/dist/modules/agents/gemini/dto/configure-auth.dto.d.ts +5 -0
  104. package/apps/server/dist/modules/agents/gemini/dto/configure-auth.dto.js +31 -0
  105. package/apps/server/dist/modules/agents/gemini/dto/configure-auth.dto.js.map +1 -0
  106. package/apps/server/dist/modules/agents/gemini/dto/create-session.dto.d.ts +3 -0
  107. package/apps/server/dist/modules/agents/gemini/dto/create-session.dto.js +25 -0
  108. package/apps/server/dist/modules/agents/gemini/dto/create-session.dto.js.map +1 -0
  109. package/apps/server/dist/modules/agents/gemini/dto/send-input.dto.d.ts +3 -0
  110. package/apps/server/dist/modules/agents/gemini/dto/send-input.dto.js +25 -0
  111. package/apps/server/dist/modules/agents/gemini/dto/send-input.dto.js.map +1 -0
  112. package/apps/server/dist/modules/agents/gemini/gemini-auth.manager.d.ts +20 -0
  113. package/apps/server/dist/modules/agents/gemini/gemini-auth.manager.js +154 -0
  114. package/apps/server/dist/modules/agents/gemini/gemini-auth.manager.js.map +1 -0
  115. package/apps/server/dist/modules/agents/gemini/gemini-session.manager.d.ts +31 -0
  116. package/apps/server/dist/modules/agents/gemini/gemini-session.manager.js +304 -0
  117. package/apps/server/dist/modules/agents/gemini/gemini-session.manager.js.map +1 -0
  118. package/apps/server/dist/modules/agents/gemini/gemini.controller.d.ts +19 -0
  119. package/apps/server/dist/modules/agents/gemini/gemini.controller.js +135 -0
  120. package/apps/server/dist/modules/agents/gemini/gemini.controller.js.map +1 -0
  121. package/apps/server/dist/modules/agents/gemini/gemini.gateway.d.ts +24 -0
  122. package/apps/server/dist/modules/agents/gemini/gemini.gateway.js +142 -0
  123. package/apps/server/dist/modules/agents/gemini/gemini.gateway.js.map +1 -0
  124. package/apps/server/dist/modules/agents/gemini/gemini.module.d.ts +2 -0
  125. package/apps/server/dist/modules/agents/gemini/gemini.module.js +29 -0
  126. package/apps/server/dist/modules/agents/gemini/gemini.module.js.map +1 -0
  127. package/apps/server/dist/modules/agents/gemini/interfaces/gemini-session.interface.d.ts +16 -0
  128. package/apps/server/dist/modules/agents/gemini/interfaces/gemini-session.interface.js +3 -0
  129. package/apps/server/dist/modules/agents/gemini/interfaces/gemini-session.interface.js.map +1 -0
  130. package/apps/server/dist/modules/agents/gemini/interfaces/stream-event.interface.d.ts +12 -0
  131. package/apps/server/dist/modules/agents/gemini/interfaces/stream-event.interface.js +3 -0
  132. package/apps/server/dist/modules/agents/gemini/interfaces/stream-event.interface.js.map +1 -0
  133. package/apps/server/dist/modules/changelog/changelog.controller.d.ts +7 -0
  134. package/apps/server/dist/modules/changelog/changelog.controller.js +50 -0
  135. package/apps/server/dist/modules/changelog/changelog.controller.js.map +1 -0
  136. package/apps/server/dist/modules/changelog/changelog.module.d.ts +2 -0
  137. package/apps/server/dist/modules/changelog/changelog.module.js +26 -0
  138. package/apps/server/dist/modules/changelog/changelog.module.js.map +1 -0
  139. package/apps/server/dist/modules/changelog/changelog.service.d.ts +68 -0
  140. package/apps/server/dist/modules/changelog/changelog.service.js +598 -0
  141. package/apps/server/dist/modules/changelog/changelog.service.js.map +1 -0
  142. package/apps/server/dist/modules/conversations/conversation.controller.d.ts +11 -0
  143. package/apps/server/dist/modules/conversations/conversation.controller.js +95 -0
  144. package/apps/server/dist/modules/conversations/conversation.controller.js.map +1 -0
  145. package/apps/server/dist/modules/conversations/conversation.module.d.ts +2 -0
  146. package/apps/server/dist/modules/conversations/conversation.module.js +26 -0
  147. package/apps/server/dist/modules/conversations/conversation.module.js.map +1 -0
  148. package/apps/server/dist/modules/conversations/conversation.service.d.ts +13 -0
  149. package/apps/server/dist/modules/conversations/conversation.service.js +61 -0
  150. package/apps/server/dist/modules/conversations/conversation.service.js.map +1 -0
  151. package/apps/server/dist/modules/conversations/dto/create-conversation.dto.d.ts +10 -0
  152. package/apps/server/dist/modules/conversations/dto/create-conversation.dto.js +64 -0
  153. package/apps/server/dist/modules/conversations/dto/create-conversation.dto.js.map +1 -0
  154. package/apps/server/dist/modules/conversations/enums/conversation.enum.d.ts +12 -0
  155. package/apps/server/dist/modules/conversations/enums/conversation.enum.js +18 -0
  156. package/apps/server/dist/modules/conversations/enums/conversation.enum.js.map +1 -0
  157. package/apps/server/dist/modules/fs/fs.controller.d.ts +6 -0
  158. package/apps/server/dist/modules/fs/fs.controller.js +85 -0
  159. package/apps/server/dist/modules/fs/fs.controller.js.map +1 -0
  160. package/apps/server/dist/modules/fs/fs.module.d.ts +2 -0
  161. package/apps/server/dist/modules/fs/fs.module.js +20 -0
  162. package/apps/server/dist/modules/fs/fs.module.js.map +1 -0
  163. package/apps/server/dist/modules/harness/dto/save-harness.dto.d.ts +4 -0
  164. package/apps/server/dist/modules/harness/dto/save-harness.dto.js +27 -0
  165. package/apps/server/dist/modules/harness/dto/save-harness.dto.js.map +1 -0
  166. package/apps/server/dist/modules/harness/harness.controller.d.ts +14 -0
  167. package/apps/server/dist/modules/harness/harness.controller.js +72 -0
  168. package/apps/server/dist/modules/harness/harness.controller.js.map +1 -0
  169. package/apps/server/dist/modules/harness/harness.module.d.ts +2 -0
  170. package/apps/server/dist/modules/harness/harness.module.js +23 -0
  171. package/apps/server/dist/modules/harness/harness.module.js.map +1 -0
  172. package/apps/server/dist/modules/harness/harness.service.d.ts +20 -0
  173. package/apps/server/dist/modules/harness/harness.service.js +134 -0
  174. package/apps/server/dist/modules/harness/harness.service.js.map +1 -0
  175. package/apps/server/dist/modules/sessions/session.controller.d.ts +12 -0
  176. package/apps/server/dist/modules/sessions/session.controller.js +79 -0
  177. package/apps/server/dist/modules/sessions/session.controller.js.map +1 -0
  178. package/apps/server/dist/modules/sessions/session.module.d.ts +2 -0
  179. package/apps/server/dist/modules/sessions/session.module.js +26 -0
  180. package/apps/server/dist/modules/sessions/session.module.js.map +1 -0
  181. package/apps/server/dist/modules/sessions/session.service.d.ts +9 -0
  182. package/apps/server/dist/modules/sessions/session.service.js +49 -0
  183. package/apps/server/dist/modules/sessions/session.service.js.map +1 -0
  184. package/apps/server/dist/modules/tasks/dto/create-task.dto.d.ts +15 -0
  185. package/apps/server/dist/modules/tasks/dto/create-task.dto.js +88 -0
  186. package/apps/server/dist/modules/tasks/dto/create-task.dto.js.map +1 -0
  187. package/apps/server/dist/modules/tasks/dto/execute-task.dto.d.ts +7 -0
  188. package/apps/server/dist/modules/tasks/dto/execute-task.dto.js +43 -0
  189. package/apps/server/dist/modules/tasks/dto/execute-task.dto.js.map +1 -0
  190. package/apps/server/dist/modules/tasks/dto/merge-file.dto.d.ts +3 -0
  191. package/apps/server/dist/modules/tasks/dto/merge-file.dto.js +23 -0
  192. package/apps/server/dist/modules/tasks/dto/merge-file.dto.js.map +1 -0
  193. package/apps/server/dist/modules/tasks/dto/rerun-task.dto.d.ts +4 -0
  194. package/apps/server/dist/modules/tasks/dto/rerun-task.dto.js +32 -0
  195. package/apps/server/dist/modules/tasks/dto/rerun-task.dto.js.map +1 -0
  196. package/apps/server/dist/modules/tasks/dto/update-task.dto.d.ts +15 -0
  197. package/apps/server/dist/modules/tasks/dto/update-task.dto.js +89 -0
  198. package/apps/server/dist/modules/tasks/dto/update-task.dto.js.map +1 -0
  199. package/apps/server/dist/modules/tasks/task-execution.service.d.ts +105 -0
  200. package/apps/server/dist/modules/tasks/task-execution.service.js +842 -0
  201. package/apps/server/dist/modules/tasks/task-execution.service.js.map +1 -0
  202. package/apps/server/dist/modules/tasks/task.gateway.d.ts +17 -0
  203. package/apps/server/dist/modules/tasks/task.gateway.js +126 -0
  204. package/apps/server/dist/modules/tasks/task.gateway.js.map +1 -0
  205. package/apps/server/dist/modules/tasks/tasks.controller.d.ts +29 -0
  206. package/apps/server/dist/modules/tasks/tasks.controller.js +209 -0
  207. package/apps/server/dist/modules/tasks/tasks.controller.js.map +1 -0
  208. package/apps/server/dist/modules/tasks/tasks.module.d.ts +2 -0
  209. package/apps/server/dist/modules/tasks/tasks.module.js +42 -0
  210. package/apps/server/dist/modules/tasks/tasks.module.js.map +1 -0
  211. package/apps/server/dist/modules/tasks/tasks.service.d.ts +47 -0
  212. package/apps/server/dist/modules/tasks/tasks.service.js +341 -0
  213. package/apps/server/dist/modules/tasks/tasks.service.js.map +1 -0
  214. package/apps/server/dist/tsconfig.build.tsbuildinfo +1 -0
  215. package/apps/web/.next/BUILD_ID +1 -0
  216. package/apps/web/.next/app-path-routes-manifest.json +12 -0
  217. package/apps/web/.next/build/chunks/[root-of-the-server]__0cstldc._.js +206 -0
  218. package/apps/web/.next/build/chunks/[root-of-the-server]__0cstldc._.js.map +8 -0
  219. package/apps/web/.next/build/chunks/[root-of-the-server]__0s3ts0r._.js +500 -0
  220. package/apps/web/.next/build/chunks/[root-of-the-server]__0s3ts0r._.js.map +11 -0
  221. package/apps/web/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0xqnjlz._.js +13 -0
  222. package/apps/web/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_0xqnjlz._.js.map +5 -0
  223. package/apps/web/.next/build/chunks/[turbopack]_runtime.js +890 -0
  224. package/apps/web/.next/build/chunks/[turbopack]_runtime.js.map +11 -0
  225. package/apps/web/.next/build/chunks/node_modules_13sb.px._.js +6820 -0
  226. package/apps/web/.next/build/chunks/node_modules_13sb.px._.js.map +47 -0
  227. package/apps/web/.next/build/package.json +1 -0
  228. package/apps/web/.next/build/postcss.js +6 -0
  229. package/apps/web/.next/build/postcss.js.map +5 -0
  230. package/apps/web/.next/build-manifest.json +21 -0
  231. package/apps/web/.next/diagnostics/build-diagnostics.json +6 -0
  232. package/apps/web/.next/diagnostics/framework.json +1 -0
  233. package/apps/web/.next/diagnostics/route-bundle-stats.json +118 -0
  234. package/apps/web/.next/export-marker.json +6 -0
  235. package/apps/web/.next/fallback-build-manifest.json +13 -0
  236. package/apps/web/.next/images-manifest.json +68 -0
  237. package/apps/web/.next/next-minimal-server.js.nft.json +1 -0
  238. package/apps/web/.next/next-server.js.nft.json +1 -0
  239. package/apps/web/.next/package.json +1 -0
  240. package/apps/web/.next/prerender-manifest.json +234 -0
  241. package/apps/web/.next/required-server-files.js +332 -0
  242. package/apps/web/.next/required-server-files.json +332 -0
  243. package/apps/web/.next/routes-manifest.json +108 -0
  244. package/apps/web/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  245. package/apps/web/.next/server/app/_global-error/page/build-manifest.json +17 -0
  246. package/apps/web/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  247. package/apps/web/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  248. package/apps/web/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  249. package/apps/web/.next/server/app/_global-error/page.js +10 -0
  250. package/apps/web/.next/server/app/_global-error/page.js.map +5 -0
  251. package/apps/web/.next/server/app/_global-error/page.js.nft.json +1 -0
  252. package/apps/web/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
  253. package/apps/web/.next/server/app/_global-error.html +1 -0
  254. package/apps/web/.next/server/app/_global-error.meta +15 -0
  255. package/apps/web/.next/server/app/_global-error.rsc +15 -0
  256. package/apps/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  257. package/apps/web/.next/server/app/_global-error.segments/_full.segment.rsc +15 -0
  258. package/apps/web/.next/server/app/_global-error.segments/_head.segment.rsc +6 -0
  259. package/apps/web/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  260. package/apps/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  261. package/apps/web/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  262. package/apps/web/.next/server/app/_not-found/page/build-manifest.json +17 -0
  263. package/apps/web/.next/server/app/_not-found/page/next-font-manifest.json +11 -0
  264. package/apps/web/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  265. package/apps/web/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  266. package/apps/web/.next/server/app/_not-found/page.js +13 -0
  267. package/apps/web/.next/server/app/_not-found/page.js.map +5 -0
  268. package/apps/web/.next/server/app/_not-found/page.js.nft.json +1 -0
  269. package/apps/web/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
  270. package/apps/web/.next/server/app/_not-found.html +1 -0
  271. package/apps/web/.next/server/app/_not-found.meta +16 -0
  272. package/apps/web/.next/server/app/_not-found.rsc +19 -0
  273. package/apps/web/.next/server/app/_not-found.segments/_full.segment.rsc +19 -0
  274. package/apps/web/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
  275. package/apps/web/.next/server/app/_not-found.segments/_index.segment.rsc +8 -0
  276. package/apps/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  277. package/apps/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
  278. package/apps/web/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -0
  279. package/apps/web/.next/server/app/claude/page/app-paths-manifest.json +3 -0
  280. package/apps/web/.next/server/app/claude/page/build-manifest.json +17 -0
  281. package/apps/web/.next/server/app/claude/page/next-font-manifest.json +11 -0
  282. package/apps/web/.next/server/app/claude/page/react-loadable-manifest.json +1 -0
  283. package/apps/web/.next/server/app/claude/page/server-reference-manifest.json +4 -0
  284. package/apps/web/.next/server/app/claude/page.js +14 -0
  285. package/apps/web/.next/server/app/claude/page.js.map +5 -0
  286. package/apps/web/.next/server/app/claude/page.js.nft.json +1 -0
  287. package/apps/web/.next/server/app/claude/page_client-reference-manifest.js +3 -0
  288. package/apps/web/.next/server/app/claude.html +1 -0
  289. package/apps/web/.next/server/app/claude.meta +15 -0
  290. package/apps/web/.next/server/app/claude.rsc +22 -0
  291. package/apps/web/.next/server/app/claude.segments/_full.segment.rsc +22 -0
  292. package/apps/web/.next/server/app/claude.segments/_head.segment.rsc +6 -0
  293. package/apps/web/.next/server/app/claude.segments/_index.segment.rsc +8 -0
  294. package/apps/web/.next/server/app/claude.segments/_tree.segment.rsc +5 -0
  295. package/apps/web/.next/server/app/claude.segments/claude/__PAGE__.segment.rsc +6 -0
  296. package/apps/web/.next/server/app/claude.segments/claude.segment.rsc +5 -0
  297. package/apps/web/.next/server/app/codex/page/app-paths-manifest.json +3 -0
  298. package/apps/web/.next/server/app/codex/page/build-manifest.json +17 -0
  299. package/apps/web/.next/server/app/codex/page/next-font-manifest.json +11 -0
  300. package/apps/web/.next/server/app/codex/page/react-loadable-manifest.json +1 -0
  301. package/apps/web/.next/server/app/codex/page/server-reference-manifest.json +4 -0
  302. package/apps/web/.next/server/app/codex/page.js +14 -0
  303. package/apps/web/.next/server/app/codex/page.js.map +5 -0
  304. package/apps/web/.next/server/app/codex/page.js.nft.json +1 -0
  305. package/apps/web/.next/server/app/codex/page_client-reference-manifest.js +3 -0
  306. package/apps/web/.next/server/app/codex.html +1 -0
  307. package/apps/web/.next/server/app/codex.meta +15 -0
  308. package/apps/web/.next/server/app/codex.rsc +25 -0
  309. package/apps/web/.next/server/app/codex.segments/_full.segment.rsc +25 -0
  310. package/apps/web/.next/server/app/codex.segments/_head.segment.rsc +6 -0
  311. package/apps/web/.next/server/app/codex.segments/_index.segment.rsc +8 -0
  312. package/apps/web/.next/server/app/codex.segments/_tree.segment.rsc +5 -0
  313. package/apps/web/.next/server/app/codex.segments/codex/__PAGE__.segment.rsc +9 -0
  314. package/apps/web/.next/server/app/codex.segments/codex.segment.rsc +5 -0
  315. package/apps/web/.next/server/app/favicon.ico/route/app-paths-manifest.json +3 -0
  316. package/apps/web/.next/server/app/favicon.ico/route/build-manifest.json +9 -0
  317. package/apps/web/.next/server/app/favicon.ico/route.js +6 -0
  318. package/apps/web/.next/server/app/favicon.ico/route.js.map +5 -0
  319. package/apps/web/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  320. package/apps/web/.next/server/app/favicon.ico.meta +1 -0
  321. package/apps/web/.next/server/app/gemini/page/app-paths-manifest.json +3 -0
  322. package/apps/web/.next/server/app/gemini/page/build-manifest.json +17 -0
  323. package/apps/web/.next/server/app/gemini/page/next-font-manifest.json +11 -0
  324. package/apps/web/.next/server/app/gemini/page/react-loadable-manifest.json +1 -0
  325. package/apps/web/.next/server/app/gemini/page/server-reference-manifest.json +4 -0
  326. package/apps/web/.next/server/app/gemini/page.js +14 -0
  327. package/apps/web/.next/server/app/gemini/page.js.map +5 -0
  328. package/apps/web/.next/server/app/gemini/page.js.nft.json +1 -0
  329. package/apps/web/.next/server/app/gemini/page_client-reference-manifest.js +3 -0
  330. package/apps/web/.next/server/app/gemini.html +1 -0
  331. package/apps/web/.next/server/app/gemini.meta +15 -0
  332. package/apps/web/.next/server/app/gemini.rsc +25 -0
  333. package/apps/web/.next/server/app/gemini.segments/_full.segment.rsc +25 -0
  334. package/apps/web/.next/server/app/gemini.segments/_head.segment.rsc +6 -0
  335. package/apps/web/.next/server/app/gemini.segments/_index.segment.rsc +8 -0
  336. package/apps/web/.next/server/app/gemini.segments/_tree.segment.rsc +5 -0
  337. package/apps/web/.next/server/app/gemini.segments/gemini/__PAGE__.segment.rsc +9 -0
  338. package/apps/web/.next/server/app/gemini.segments/gemini.segment.rsc +5 -0
  339. package/apps/web/.next/server/app/index.html +1 -0
  340. package/apps/web/.next/server/app/index.meta +14 -0
  341. package/apps/web/.next/server/app/index.rsc +23 -0
  342. package/apps/web/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -0
  343. package/apps/web/.next/server/app/index.segments/_full.segment.rsc +23 -0
  344. package/apps/web/.next/server/app/index.segments/_head.segment.rsc +6 -0
  345. package/apps/web/.next/server/app/index.segments/_index.segment.rsc +8 -0
  346. package/apps/web/.next/server/app/index.segments/_tree.segment.rsc +5 -0
  347. package/apps/web/.next/server/app/login/page/app-paths-manifest.json +3 -0
  348. package/apps/web/.next/server/app/login/page/build-manifest.json +17 -0
  349. package/apps/web/.next/server/app/login/page/next-font-manifest.json +11 -0
  350. package/apps/web/.next/server/app/login/page/react-loadable-manifest.json +1 -0
  351. package/apps/web/.next/server/app/login/page/server-reference-manifest.json +4 -0
  352. package/apps/web/.next/server/app/login/page.js +14 -0
  353. package/apps/web/.next/server/app/login/page.js.map +5 -0
  354. package/apps/web/.next/server/app/login/page.js.nft.json +1 -0
  355. package/apps/web/.next/server/app/login/page_client-reference-manifest.js +3 -0
  356. package/apps/web/.next/server/app/login.html +1 -0
  357. package/apps/web/.next/server/app/login.meta +15 -0
  358. package/apps/web/.next/server/app/login.rsc +25 -0
  359. package/apps/web/.next/server/app/login.segments/_full.segment.rsc +25 -0
  360. package/apps/web/.next/server/app/login.segments/_head.segment.rsc +6 -0
  361. package/apps/web/.next/server/app/login.segments/_index.segment.rsc +8 -0
  362. package/apps/web/.next/server/app/login.segments/_tree.segment.rsc +5 -0
  363. package/apps/web/.next/server/app/login.segments/login/__PAGE__.segment.rsc +9 -0
  364. package/apps/web/.next/server/app/login.segments/login.segment.rsc +5 -0
  365. package/apps/web/.next/server/app/page/app-paths-manifest.json +3 -0
  366. package/apps/web/.next/server/app/page/build-manifest.json +17 -0
  367. package/apps/web/.next/server/app/page/next-font-manifest.json +11 -0
  368. package/apps/web/.next/server/app/page/react-loadable-manifest.json +1 -0
  369. package/apps/web/.next/server/app/page/server-reference-manifest.json +4 -0
  370. package/apps/web/.next/server/app/page.js +14 -0
  371. package/apps/web/.next/server/app/page.js.map +5 -0
  372. package/apps/web/.next/server/app/page.js.nft.json +1 -0
  373. package/apps/web/.next/server/app/page_client-reference-manifest.js +3 -0
  374. package/apps/web/.next/server/app/task/[id]/page/app-paths-manifest.json +3 -0
  375. package/apps/web/.next/server/app/task/[id]/page/build-manifest.json +17 -0
  376. package/apps/web/.next/server/app/task/[id]/page/next-font-manifest.json +11 -0
  377. package/apps/web/.next/server/app/task/[id]/page/react-loadable-manifest.json +1 -0
  378. package/apps/web/.next/server/app/task/[id]/page/server-reference-manifest.json +4 -0
  379. package/apps/web/.next/server/app/task/[id]/page.js +14 -0
  380. package/apps/web/.next/server/app/task/[id]/page.js.map +5 -0
  381. package/apps/web/.next/server/app/task/[id]/page.js.nft.json +1 -0
  382. package/apps/web/.next/server/app/task/[id]/page_client-reference-manifest.js +3 -0
  383. package/apps/web/.next/server/app/test/page/app-paths-manifest.json +3 -0
  384. package/apps/web/.next/server/app/test/page/build-manifest.json +17 -0
  385. package/apps/web/.next/server/app/test/page/next-font-manifest.json +11 -0
  386. package/apps/web/.next/server/app/test/page/react-loadable-manifest.json +1 -0
  387. package/apps/web/.next/server/app/test/page/server-reference-manifest.json +4 -0
  388. package/apps/web/.next/server/app/test/page.js +14 -0
  389. package/apps/web/.next/server/app/test/page.js.map +5 -0
  390. package/apps/web/.next/server/app/test/page.js.nft.json +1 -0
  391. package/apps/web/.next/server/app/test/page_client-reference-manifest.js +3 -0
  392. package/apps/web/.next/server/app/test.html +1 -0
  393. package/apps/web/.next/server/app/test.meta +15 -0
  394. package/apps/web/.next/server/app/test.rsc +25 -0
  395. package/apps/web/.next/server/app/test.segments/_full.segment.rsc +25 -0
  396. package/apps/web/.next/server/app/test.segments/_head.segment.rsc +6 -0
  397. package/apps/web/.next/server/app/test.segments/_index.segment.rsc +8 -0
  398. package/apps/web/.next/server/app/test.segments/_tree.segment.rsc +5 -0
  399. package/apps/web/.next/server/app/test.segments/test/__PAGE__.segment.rsc +9 -0
  400. package/apps/web/.next/server/app/test.segments/test.segment.rsc +5 -0
  401. package/apps/web/.next/server/app-paths-manifest.json +12 -0
  402. package/apps/web/.next/server/chunks/[externals]_next_dist_0arv.vj._.js +3 -0
  403. package/apps/web/.next/server/chunks/[externals]_next_dist_0arv.vj._.js.map +1 -0
  404. package/apps/web/.next/server/chunks/[root-of-the-server]__0xjvedo._.js +13 -0
  405. package/apps/web/.next/server/chunks/[root-of-the-server]__0xjvedo._.js.map +1 -0
  406. package/apps/web/.next/server/chunks/[turbopack]_runtime.js +903 -0
  407. package/apps/web/.next/server/chunks/[turbopack]_runtime.js.map +11 -0
  408. package/apps/web/.next/server/chunks/apps_web__next-internal_server_app_favicon_ico_route_actions_0h5n1et.js +3 -0
  409. package/apps/web/.next/server/chunks/apps_web__next-internal_server_app_favicon_ico_route_actions_0h5n1et.js.map +1 -0
  410. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__00707zu._.js +3 -0
  411. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__00707zu._.js.map +1 -0
  412. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__02w1lqw._.js +33 -0
  413. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__02w1lqw._.js.map +1 -0
  414. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__058frv2._.js +3 -0
  415. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__058frv2._.js.map +1 -0
  416. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05mnfv7._.js +3 -0
  417. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05mnfv7._.js.map +1 -0
  418. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05w0js1._.js +3 -0
  419. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05w0js1._.js.map +1 -0
  420. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05y8~sf._.js +3 -0
  421. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__05y8~sf._.js.map +1 -0
  422. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0a~4k2j._.js +8 -0
  423. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0a~4k2j._.js.map +1 -0
  424. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0bzgqz2._.js +3 -0
  425. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0bzgqz2._.js.map +1 -0
  426. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0csq2e.._.js +3 -0
  427. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0csq2e.._.js.map +1 -0
  428. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0dgn1-d._.js +8 -0
  429. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0dgn1-d._.js.map +1 -0
  430. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g.z8rw._.js +3 -0
  431. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g.z8rw._.js.map +1 -0
  432. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g7.yrd._.js +3 -0
  433. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0g7.yrd._.js.map +1 -0
  434. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ill7bp._.js +4 -0
  435. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0ill7bp._.js.map +1 -0
  436. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0lxs646._.js +33 -0
  437. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0lxs646._.js.map +1 -0
  438. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0osecwm._.js +3 -0
  439. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0osecwm._.js.map +1 -0
  440. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0x5.eah._.js +3 -0
  441. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__0x5.eah._.js.map +1 -0
  442. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10mg911._.js +9 -0
  443. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10mg911._.js.map +1 -0
  444. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10xopfz._.js +3 -0
  445. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__10xopfz._.js.map +1 -0
  446. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__11illgy._.js +3 -0
  447. package/apps/web/.next/server/chunks/ssr/[root-of-the-server]__11illgy._.js.map +1 -0
  448. package/apps/web/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
  449. package/apps/web/.next/server/chunks/ssr/[turbopack]_runtime.js.map +11 -0
  450. package/apps/web/.next/server/chunks/ssr/_0hy8~s0._.js +6 -0
  451. package/apps/web/.next/server/chunks/ssr/_0hy8~s0._.js.map +1 -0
  452. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__global-error_page_actions_0.u5cfa.js +3 -0
  453. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__global-error_page_actions_0.u5cfa.js.map +1 -0
  454. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_0appun9.js +3 -0
  455. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app__not-found_page_actions_0appun9.js.map +1 -0
  456. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_claude_page_actions_0_uv-yn.js +3 -0
  457. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_claude_page_actions_0_uv-yn.js.map +1 -0
  458. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_codex_page_actions_0ace7zi.js +3 -0
  459. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_codex_page_actions_0ace7zi.js.map +1 -0
  460. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_gemini_page_actions_0ux-r~z.js +3 -0
  461. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_gemini_page_actions_0ux-r~z.js.map +1 -0
  462. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_login_page_actions_0srfp5v.js +3 -0
  463. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_login_page_actions_0srfp5v.js.map +1 -0
  464. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_0rm5_5w.js +3 -0
  465. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_page_actions_0rm5_5w.js.map +1 -0
  466. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_task_[id]_page_actions_0bd_3_p.js +3 -0
  467. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_task_[id]_page_actions_0bd_3_p.js.map +1 -0
  468. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_test_page_actions_0pn8asm.js +3 -0
  469. package/apps/web/.next/server/chunks/ssr/apps_web__next-internal_server_app_test_page_actions_0pn8asm.js.map +1 -0
  470. package/apps/web/.next/server/chunks/ssr/apps_web_src_0s6cw51._.js +8 -0
  471. package/apps/web/.next/server/chunks/ssr/apps_web_src_0s6cw51._.js.map +1 -0
  472. package/apps/web/.next/server/chunks/ssr/apps_web_src_app_login_page_tsx_07oskhj._.js +3 -0
  473. package/apps/web/.next/server/chunks/ssr/apps_web_src_app_login_page_tsx_07oskhj._.js.map +1 -0
  474. package/apps/web/.next/server/chunks/ssr/apps_web_src_app_page_tsx_0kq.zh9._.js +3 -0
  475. package/apps/web/.next/server/chunks/ssr/apps_web_src_app_page_tsx_0kq.zh9._.js.map +1 -0
  476. package/apps/web/.next/server/chunks/ssr/apps_web_src_app_test_page_tsx_04ji_kt._.js +3 -0
  477. package/apps/web/.next/server/chunks/ssr/apps_web_src_app_test_page_tsx_04ji_kt._.js.map +1 -0
  478. package/apps/web/.next/server/chunks/ssr/apps_web_src_features_02y94.o._.js +3 -0
  479. package/apps/web/.next/server/chunks/ssr/apps_web_src_features_02y94.o._.js.map +1 -0
  480. package/apps/web/.next/server/chunks/ssr/apps_web_src_features_0y6q6xu._.js +3 -0
  481. package/apps/web/.next/server/chunks/ssr/apps_web_src_features_0y6q6xu._.js.map +1 -0
  482. package/apps/web/.next/server/chunks/ssr/node_modules_09w7yel._.js +33 -0
  483. package/apps/web/.next/server/chunks/ssr/node_modules_09w7yel._.js.map +1 -0
  484. package/apps/web/.next/server/chunks/ssr/node_modules_0ck2~9g._.js +3 -0
  485. package/apps/web/.next/server/chunks/ssr/node_modules_0ck2~9g._.js.map +1 -0
  486. package/apps/web/.next/server/chunks/ssr/node_modules_0i2xw~e._.js +3 -0
  487. package/apps/web/.next/server/chunks/ssr/node_modules_0i2xw~e._.js.map +1 -0
  488. package/apps/web/.next/server/chunks/ssr/node_modules_0vtdjw7._.js +3 -0
  489. package/apps/web/.next/server/chunks/ssr/node_modules_0vtdjw7._.js.map +1 -0
  490. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_03nkrli._.js +19 -0
  491. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_03nkrli._.js.map +1 -0
  492. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js +6 -0
  493. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js.map +1 -0
  494. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js +3 -0
  495. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_0inhx6q._.js.map +1 -0
  496. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js +3 -0
  497. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js.map +1 -0
  498. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js +3 -0
  499. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js.map +1 -0
  500. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js +3 -0
  501. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js.map +1 -0
  502. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_01s3o34.js +4 -0
  503. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_01s3o34.js.map +1 -0
  504. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ax1b3s.js +4 -0
  505. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0ax1b3s.js.map +1 -0
  506. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0gl78zj.js +4 -0
  507. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0gl78zj.js.map +1 -0
  508. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0j~tyzr.js +4 -0
  509. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0j~tyzr.js.map +1 -0
  510. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0khf96-.js +4 -0
  511. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0khf96-.js.map +1 -0
  512. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0qgz_85.js +4 -0
  513. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0qgz_85.js.map +1 -0
  514. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0unh3f-.js +4 -0
  515. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0unh3f-.js.map +1 -0
  516. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uq606i.js +4 -0
  517. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0uq606i.js.map +1 -0
  518. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_128e6.l.js +4 -0
  519. package/apps/web/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_128e6.l.js.map +1 -0
  520. package/apps/web/.next/server/functions-config-manifest.json +4 -0
  521. package/apps/web/.next/server/interception-route-rewrite-manifest.js +1 -0
  522. package/apps/web/.next/server/middleware-build-manifest.js +21 -0
  523. package/apps/web/.next/server/middleware-manifest.json +6 -0
  524. package/apps/web/.next/server/next-font-manifest.js +1 -0
  525. package/apps/web/.next/server/next-font-manifest.json +39 -0
  526. package/apps/web/.next/server/pages/404.html +1 -0
  527. package/apps/web/.next/server/pages/500.html +1 -0
  528. package/apps/web/.next/server/pages-manifest.json +4 -0
  529. package/apps/web/.next/server/prefetch-hints.json +1 -0
  530. package/apps/web/.next/server/server-reference-manifest.js +1 -0
  531. package/apps/web/.next/server/server-reference-manifest.json +5 -0
  532. package/apps/web/.next/static/chunks/01xlw8hd842-c.js +1 -0
  533. package/apps/web/.next/static/chunks/03~yq9q893hmn.js +1 -0
  534. package/apps/web/.next/static/chunks/04w-clkdzn_sn.js +6 -0
  535. package/apps/web/.next/static/chunks/066jf0nk75nic.css +2 -0
  536. package/apps/web/.next/static/chunks/0bmpc66o4m-9z.js +1 -0
  537. package/apps/web/.next/static/chunks/0cctfc2jrxq_0.js +1 -0
  538. package/apps/web/.next/static/chunks/0dk1ec~jpoxa3.css +1 -0
  539. package/apps/web/.next/static/chunks/0e992tq36rg-i.js +6 -0
  540. package/apps/web/.next/static/chunks/0ieuc6bs-l0iy.js +7 -0
  541. package/apps/web/.next/static/chunks/0nd5y.4d2gl8g.js +1 -0
  542. package/apps/web/.next/static/chunks/0o-t4yw-v8ahl.js +6 -0
  543. package/apps/web/.next/static/chunks/0pqt~8bl3ukh4.js +4 -0
  544. package/apps/web/.next/static/chunks/0rjn.~e6pvni1.js +2 -0
  545. package/apps/web/.next/static/chunks/0t2xr05rlu96l.js +1 -0
  546. package/apps/web/.next/static/chunks/0uuu-x.ka3jyt.js +1 -0
  547. package/apps/web/.next/static/chunks/0x15z029u118o.js +1 -0
  548. package/apps/web/.next/static/chunks/0~.kxojjn0k1x.js +1 -0
  549. package/apps/web/.next/static/chunks/10t1c-qsk.cdw.js +1 -0
  550. package/apps/web/.next/static/chunks/14zwv8duu059g.js +31 -0
  551. package/apps/web/.next/static/chunks/turbopack-0gpa2pyrgntw-.js +1 -0
  552. package/apps/web/.next/static/fdXuROcW6IkgkI61bg3UM/_buildManifest.js +11 -0
  553. package/apps/web/.next/static/fdXuROcW6IkgkI61bg3UM/_clientMiddlewareManifest.js +1 -0
  554. package/apps/web/.next/static/fdXuROcW6IkgkI61bg3UM/_ssgManifest.js +1 -0
  555. package/apps/web/.next/static/media/4fa387ec64143e14-s.0wkzw~je483f-.woff2 +0 -0
  556. package/apps/web/.next/static/media/53b9e256198e5412-s.0-wfv7uh4i7h9.woff2 +0 -0
  557. package/apps/web/.next/static/media/5ce348bf30bf5439-s.0zgw-jeven.3w.woff2 +0 -0
  558. package/apps/web/.next/static/media/6306c77e7c8268e4-s.0rhz0arwfsn~5.woff2 +0 -0
  559. package/apps/web/.next/static/media/7178b3e590c64307-s.0nx0ww8fni_q3.woff2 +0 -0
  560. package/apps/web/.next/static/media/797e433ab948586e-s.p.08e28id.o-okb.woff2 +0 -0
  561. package/apps/web/.next/static/media/7d817b4c03b0c5f1-s.0l76wvqk9d84w.woff2 +0 -0
  562. package/apps/web/.next/static/media/8a480f0b521d4e75-s.0jzbimsg8vl84.woff2 +0 -0
  563. package/apps/web/.next/static/media/bbc41e54d2fcbd21-s.0k4k9394f2q-k.woff2 +0 -0
  564. package/apps/web/.next/static/media/caa3a2e1cccd8315-s.p.09~u27dqhyhd6.woff2 +0 -0
  565. package/apps/web/.next/static/media/favicon.0x3dzn~oxb6tn.ico +0 -0
  566. package/apps/web/.next/static/media/fef07dbb0973bf53-s.12tyk43_3sh9u.woff2 +0 -0
  567. package/apps/web/.next/trace +1 -0
  568. package/apps/web/.next/trace-build +1 -0
  569. package/apps/web/.next/turbopack +0 -0
  570. package/apps/web/.next/types/cache-life.d.ts +145 -0
  571. package/apps/web/.next/types/routes.d.ts +63 -0
  572. package/apps/web/.next/types/validator.ts +115 -0
  573. package/package.json +28 -42
  574. package/packages/cli/dist/commands/init.d.ts +1 -2
  575. package/packages/cli/dist/commands/init.js +14 -16
  576. package/packages/cli/dist/commands/start.js +41 -26
  577. package/packages/cli/dist/index.js +6 -23
  578. package/packages/cli/dist/utils/package-root.d.ts +3 -0
  579. package/packages/cli/dist/utils/package-root.js +62 -0
  580. package/.gitignore +0 -23
  581. package/.npmignore +0 -21
  582. package/.prettierignore +0 -6
  583. package/.prettierrc +0 -26
  584. package/AGENTS.md +0 -10
  585. package/CLAUDE.md +0 -10
  586. package/apps/server/eslint.config.mjs +0 -20
  587. package/apps/server/nest-cli.json +0 -8
  588. package/apps/server/package.json +0 -89
  589. package/apps/server/scripts/postinstall.js +0 -53
  590. package/apps/server/src/__mocks__/glob.js +0 -6
  591. package/apps/server/src/__mocks__/uuid.js +0 -5
  592. package/apps/server/src/app.controller.spec.ts +0 -24
  593. package/apps/server/src/app.controller.ts +0 -13
  594. package/apps/server/src/app.module.ts +0 -18
  595. package/apps/server/src/app.service.ts +0 -8
  596. package/apps/server/src/common/ji-paths.ts +0 -41
  597. package/apps/server/src/database/database.module.ts +0 -27
  598. package/apps/server/src/database/entities/agent-changelog.entity.ts +0 -39
  599. package/apps/server/src/database/entities/agent-session.entity.ts +0 -29
  600. package/apps/server/src/database/entities/conversation.entity.ts +0 -41
  601. package/apps/server/src/database/entities/session.entity.ts +0 -16
  602. package/apps/server/src/database/entities/task-agent-run.entity.ts +0 -40
  603. package/apps/server/src/database/entities/task-agent.entity.ts +0 -42
  604. package/apps/server/src/database/entities/task-requirement.entity.ts +0 -27
  605. package/apps/server/src/database/entities/task-run.entity.ts +0 -41
  606. package/apps/server/src/database/entities/task.entity.ts +0 -44
  607. package/apps/server/src/main.ts +0 -65
  608. package/apps/server/src/modules/agents/agent-model-settings.spec.ts +0 -80
  609. package/apps/server/src/modules/agents/agents.module.ts +0 -11
  610. package/apps/server/src/modules/agents/claude/claude-auth.manager.ts +0 -83
  611. package/apps/server/src/modules/agents/claude/claude-pty.manager.ts +0 -380
  612. package/apps/server/src/modules/agents/claude/claude.controller.ts +0 -85
  613. package/apps/server/src/modules/agents/claude/claude.gateway.ts +0 -158
  614. package/apps/server/src/modules/agents/claude/claude.module.ts +0 -18
  615. package/apps/server/src/modules/agents/claude/claude.service.ts +0 -67
  616. package/apps/server/src/modules/agents/claude/dto/create-session.dto.ts +0 -24
  617. package/apps/server/src/modules/agents/claude/dto/resize-session.dto.ts +0 -13
  618. package/apps/server/src/modules/agents/claude/dto/send-input.dto.ts +0 -9
  619. package/apps/server/src/modules/agents/claude/interfaces/claude-session.interface.ts +0 -26
  620. package/apps/server/src/modules/agents/claude/interfaces/pty-event.interface.ts +0 -10
  621. package/apps/server/src/modules/agents/claude/interfaces/stream-event.interface.ts +0 -61
  622. package/apps/server/src/modules/agents/codex/codex-auth.manager.ts +0 -107
  623. package/apps/server/src/modules/agents/codex/codex-session.manager.ts +0 -357
  624. package/apps/server/src/modules/agents/codex/codex.controller.ts +0 -64
  625. package/apps/server/src/modules/agents/codex/codex.gateway.ts +0 -97
  626. package/apps/server/src/modules/agents/codex/codex.module.ts +0 -17
  627. package/apps/server/src/modules/agents/codex/dto/configure-auth.dto.ts +0 -7
  628. package/apps/server/src/modules/agents/gemini/dto/configure-auth.dto.ts +0 -15
  629. package/apps/server/src/modules/agents/gemini/dto/create-session.dto.ts +0 -9
  630. package/apps/server/src/modules/agents/gemini/dto/send-input.dto.ts +0 -9
  631. package/apps/server/src/modules/agents/gemini/gemini-auth.manager.ts +0 -157
  632. package/apps/server/src/modules/agents/gemini/gemini-session.manager.ts +0 -287
  633. package/apps/server/src/modules/agents/gemini/gemini.controller.ts +0 -93
  634. package/apps/server/src/modules/agents/gemini/gemini.gateway.ts +0 -149
  635. package/apps/server/src/modules/agents/gemini/gemini.module.ts +0 -17
  636. package/apps/server/src/modules/agents/gemini/interfaces/gemini-session.interface.ts +0 -18
  637. package/apps/server/src/modules/agents/gemini/interfaces/stream-event.interface.ts +0 -14
  638. package/apps/server/src/modules/agents/session-termination.spec.ts +0 -103
  639. package/apps/server/src/modules/changelog/changelog.controller.ts +0 -20
  640. package/apps/server/src/modules/changelog/changelog.module.ts +0 -14
  641. package/apps/server/src/modules/changelog/changelog.service.spec.ts +0 -531
  642. package/apps/server/src/modules/changelog/changelog.service.ts +0 -690
  643. package/apps/server/src/modules/conversations/conversation.controller.spec.ts +0 -106
  644. package/apps/server/src/modules/conversations/conversation.controller.ts +0 -60
  645. package/apps/server/src/modules/conversations/conversation.module.ts +0 -14
  646. package/apps/server/src/modules/conversations/conversation.service.spec.ts +0 -176
  647. package/apps/server/src/modules/conversations/conversation.service.ts +0 -54
  648. package/apps/server/src/modules/conversations/dto/create-conversation.dto.ts +0 -37
  649. package/apps/server/src/modules/conversations/enums/conversation.enum.ts +0 -13
  650. package/apps/server/src/modules/fs/fs.controller.ts +0 -29
  651. package/apps/server/src/modules/fs/fs.module.ts +0 -8
  652. package/apps/server/src/modules/harness/dto/save-harness.dto.ts +0 -9
  653. package/apps/server/src/modules/harness/harness.controller.spec.ts +0 -95
  654. package/apps/server/src/modules/harness/harness.controller.ts +0 -35
  655. package/apps/server/src/modules/harness/harness.module.ts +0 -11
  656. package/apps/server/src/modules/harness/harness.service.spec.ts +0 -217
  657. package/apps/server/src/modules/harness/harness.service.ts +0 -112
  658. package/apps/server/src/modules/sessions/session.controller.spec.ts +0 -68
  659. package/apps/server/src/modules/sessions/session.controller.ts +0 -43
  660. package/apps/server/src/modules/sessions/session.module.ts +0 -14
  661. package/apps/server/src/modules/sessions/session.service.spec.ts +0 -106
  662. package/apps/server/src/modules/sessions/session.service.ts +0 -35
  663. package/apps/server/src/modules/tasks/dto/create-task.dto.ts +0 -54
  664. package/apps/server/src/modules/tasks/dto/execute-task.dto.ts +0 -22
  665. package/apps/server/src/modules/tasks/dto/merge-file.dto.ts +0 -7
  666. package/apps/server/src/modules/tasks/dto/rerun-task.dto.ts +0 -14
  667. package/apps/server/src/modules/tasks/dto/update-task.dto.ts +0 -55
  668. package/apps/server/src/modules/tasks/task-execution.service.ts +0 -978
  669. package/apps/server/src/modules/tasks/task.gateway.ts +0 -140
  670. package/apps/server/src/modules/tasks/tasks.controller.spec.ts +0 -210
  671. package/apps/server/src/modules/tasks/tasks.controller.ts +0 -139
  672. package/apps/server/src/modules/tasks/tasks.module.ts +0 -30
  673. package/apps/server/src/modules/tasks/tasks.service.spec.ts +0 -552
  674. package/apps/server/src/modules/tasks/tasks.service.ts +0 -333
  675. package/apps/server/test/app.e2e-spec.ts +0 -28
  676. package/apps/server/test/jest-e2e.json +0 -9
  677. package/apps/server/tsconfig.build.json +0 -4
  678. package/apps/server/tsconfig.json +0 -13
  679. package/apps/web/AGENTS.md +0 -7
  680. package/apps/web/CLAUDE.md +0 -1
  681. package/apps/web/eslint.config.mjs +0 -21
  682. package/apps/web/next-env.d.ts +0 -6
  683. package/apps/web/postcss.config.mjs +0 -7
  684. package/apps/web/src/app/claude/page.tsx +0 -5
  685. package/apps/web/src/app/codex/page.tsx +0 -126
  686. package/apps/web/src/app/gemini/page.tsx +0 -130
  687. package/apps/web/src/app/globals.css +0 -149
  688. package/apps/web/src/app/layout.tsx +0 -40
  689. package/apps/web/src/app/login/page.tsx +0 -67
  690. package/apps/web/src/app/page.tsx +0 -497
  691. package/apps/web/src/app/task/[id]/page.tsx +0 -11
  692. package/apps/web/src/app/test/page.tsx +0 -298
  693. package/apps/web/src/components/ui/Modal.tsx +0 -78
  694. package/apps/web/src/components/ui/WorkingDirPicker.tsx +0 -195
  695. package/apps/web/src/components/ui/__tests__/Modal.test.tsx +0 -68
  696. package/apps/web/src/features/auth/api/__tests__/auth.api.test.ts +0 -83
  697. package/apps/web/src/features/auth/api/auth.api.ts +0 -81
  698. package/apps/web/src/features/auth/hooks/__tests__/useClaudeAuth.test.ts +0 -166
  699. package/apps/web/src/features/auth/hooks/__tests__/useCodexAuth.test.ts +0 -127
  700. package/apps/web/src/features/auth/hooks/__tests__/useGeminiAuth.test.ts +0 -120
  701. package/apps/web/src/features/auth/hooks/useClaudeAuth.ts +0 -88
  702. package/apps/web/src/features/auth/hooks/useCodexAuth.ts +0 -149
  703. package/apps/web/src/features/auth/hooks/useGeminiAuth.ts +0 -125
  704. package/apps/web/src/features/auth/ui/CodexLoginPanel.tsx +0 -302
  705. package/apps/web/src/features/auth/ui/GeminiLoginPanel.tsx +0 -316
  706. package/apps/web/src/features/auth/ui/LoginForm.tsx +0 -190
  707. package/apps/web/src/features/auth/ui/LoginPanel.tsx +0 -114
  708. package/apps/web/src/features/auth/ui/__tests__/LoginPanel.test.tsx +0 -105
  709. package/apps/web/src/features/chat/api/__tests__/sessions.api.test.ts +0 -187
  710. package/apps/web/src/features/chat/api/sessions.api.ts +0 -161
  711. package/apps/web/src/features/chat/container/ClaudePageContainer.tsx +0 -152
  712. package/apps/web/src/features/chat/hooks/__tests__/useCodexSessions.test.ts +0 -131
  713. package/apps/web/src/features/chat/hooks/__tests__/useGeminiSessions.test.ts +0 -130
  714. package/apps/web/src/features/chat/hooks/useAgentModelSettings.ts +0 -54
  715. package/apps/web/src/features/chat/hooks/useClaudeSessions.ts +0 -323
  716. package/apps/web/src/features/chat/hooks/useCodexSessions.ts +0 -275
  717. package/apps/web/src/features/chat/hooks/useGeminiSessions.ts +0 -255
  718. package/apps/web/src/features/chat/hooks/useSessionCommand.ts +0 -66
  719. package/apps/web/src/features/chat/hooks/useSessionRename.ts +0 -61
  720. package/apps/web/src/features/chat/hooks/useSessionWorkingDirectories.ts +0 -34
  721. package/apps/web/src/features/chat/hooks/useUnifiedSessions.ts +0 -156
  722. package/apps/web/src/features/chat/lib/agentModelOptions.ts +0 -72
  723. package/apps/web/src/features/chat/ui/AgentModelPicker.tsx +0 -134
  724. package/apps/web/src/features/chat/ui/AgentSelectModal.tsx +0 -236
  725. package/apps/web/src/features/chat/ui/ChatInput.tsx +0 -162
  726. package/apps/web/src/features/chat/ui/ChatMessage.tsx +0 -204
  727. package/apps/web/src/features/chat/ui/ChatWorkspace.tsx +0 -207
  728. package/apps/web/src/features/chat/ui/CheckingSkeleton.tsx +0 -44
  729. package/apps/web/src/features/chat/ui/ClaudeLoginView.tsx +0 -44
  730. package/apps/web/src/features/chat/ui/PermissionCard.tsx +0 -37
  731. package/apps/web/src/features/chat/ui/SessionSidebar.tsx +0 -280
  732. package/apps/web/src/features/chat/ui/__tests__/AgentSelectModal.test.tsx +0 -58
  733. package/apps/web/src/features/chat/ui/__tests__/ChatInput.test.tsx +0 -134
  734. package/apps/web/src/features/chat/ui/__tests__/ChatMessage.test.tsx +0 -106
  735. package/apps/web/src/features/chat/ui/__tests__/ChatWorkspace.test.tsx +0 -66
  736. package/apps/web/src/features/diff/ui/DiffFileRow.tsx +0 -73
  737. package/apps/web/src/features/diff/ui/DiffHunk.tsx +0 -61
  738. package/apps/web/src/features/diff/ui/FileChangeBadge.tsx +0 -23
  739. package/apps/web/src/features/diff/ui/__tests__/DiffFileRow.test.tsx +0 -40
  740. package/apps/web/src/features/diff/ui/__tests__/DiffHunk.test.tsx +0 -24
  741. package/apps/web/src/features/diff/ui/__tests__/FileChangeBadge.test.tsx +0 -16
  742. package/apps/web/src/features/fs/api/fs.api.ts +0 -14
  743. package/apps/web/src/features/fs/hooks/useDirBrowser.ts +0 -50
  744. package/apps/web/src/features/harness/api/__tests__/harness.api.test.ts +0 -73
  745. package/apps/web/src/features/harness/api/harness.api.ts +0 -46
  746. package/apps/web/src/features/harness/hooks/__tests__/useHarness.test.ts +0 -65
  747. package/apps/web/src/features/harness/hooks/useHarness.ts +0 -66
  748. package/apps/web/src/features/harness/ui/HarnessModal.tsx +0 -171
  749. package/apps/web/src/features/harness/ui/__tests__/HarnessModal.test.tsx +0 -46
  750. package/apps/web/src/features/status/ui/AgentStatusModal.tsx +0 -267
  751. package/apps/web/src/features/status/ui/__tests__/AgentStatusModal.test.tsx +0 -71
  752. package/apps/web/src/features/tasks/api/__tests__/changelog.api.test.ts +0 -89
  753. package/apps/web/src/features/tasks/api/__tests__/tasks.api.test.ts +0 -282
  754. package/apps/web/src/features/tasks/api/changelog.api.ts +0 -52
  755. package/apps/web/src/features/tasks/api/tasks.api.ts +0 -175
  756. package/apps/web/src/features/tasks/container/TaskDetailPageContainer.tsx +0 -69
  757. package/apps/web/src/features/tasks/hooks/__tests__/useChangelogCodeCopy.test.ts +0 -48
  758. package/apps/web/src/features/tasks/hooks/__tests__/useTaskChangelog.test.ts +0 -48
  759. package/apps/web/src/features/tasks/hooks/__tests__/useTaskCreate.test.ts +0 -217
  760. package/apps/web/src/features/tasks/hooks/__tests__/useTaskEdit.test.ts +0 -152
  761. package/apps/web/src/features/tasks/hooks/__tests__/useTaskExecution.test.ts +0 -143
  762. package/apps/web/src/features/tasks/hooks/__tests__/useTaskList.test.ts +0 -168
  763. package/apps/web/src/features/tasks/hooks/__tests__/useTaskNotification.test.ts +0 -125
  764. package/apps/web/src/features/tasks/hooks/__tests__/useTaskRuns.test.ts +0 -51
  765. package/apps/web/src/features/tasks/hooks/useChangelogCodeCopy.ts +0 -52
  766. package/apps/web/src/features/tasks/hooks/useCopyToClipboard.ts +0 -47
  767. package/apps/web/src/features/tasks/hooks/useTaskChangelog.ts +0 -32
  768. package/apps/web/src/features/tasks/hooks/useTaskCreate.ts +0 -137
  769. package/apps/web/src/features/tasks/hooks/useTaskDetail.ts +0 -217
  770. package/apps/web/src/features/tasks/hooks/useTaskEdit.ts +0 -130
  771. package/apps/web/src/features/tasks/hooks/useTaskExecution.ts +0 -137
  772. package/apps/web/src/features/tasks/hooks/useTaskList.ts +0 -159
  773. package/apps/web/src/features/tasks/hooks/useTaskNotification.ts +0 -80
  774. package/apps/web/src/features/tasks/hooks/useTaskRuns.ts +0 -32
  775. package/apps/web/src/features/tasks/ui/AgentOutputPanel.tsx +0 -203
  776. package/apps/web/src/features/tasks/ui/AgentRoleSelect.tsx +0 -97
  777. package/apps/web/src/features/tasks/ui/ChangelogPanel.tsx +0 -321
  778. package/apps/web/src/features/tasks/ui/RunHistoryPanel.tsx +0 -193
  779. package/apps/web/src/features/tasks/ui/TaskCreateModal.tsx +0 -205
  780. package/apps/web/src/features/tasks/ui/TaskDetailView.tsx +0 -413
  781. package/apps/web/src/features/tasks/ui/TaskEditModal.tsx +0 -165
  782. package/apps/web/src/features/tasks/ui/TaskListModal.tsx +0 -591
  783. package/apps/web/src/features/tasks/ui/__tests__/AgentRoleSelect.test.tsx +0 -91
  784. package/apps/web/src/features/tasks/ui/__tests__/ChangelogPanel.test.tsx +0 -94
  785. package/apps/web/src/features/tasks/ui/__tests__/RunHistoryPanel.test.tsx +0 -71
  786. package/apps/web/src/features/tasks/ui/__tests__/TaskCreateModal.test.tsx +0 -153
  787. package/apps/web/src/features/tasks/ui/__tests__/TaskEditModal.test.tsx +0 -75
  788. package/apps/web/src/features/tasks/ui/__tests__/TaskListModal.test.tsx +0 -243
  789. package/apps/web/src/hooks/useWorkingDir.ts +0 -28
  790. package/apps/web/src/lib/__tests__/ansi.test.ts +0 -88
  791. package/apps/web/src/lib/ansi.ts +0 -105
  792. package/apps/web/src/lib/constants.ts +0 -4
  793. package/apps/web/src/lib/quota.ts +0 -22
  794. package/apps/web/src/lib/theme.tsx +0 -78
  795. package/apps/web/src/lib/toast.tsx +0 -175
  796. package/apps/web/src/store/agentStatusStore.ts +0 -38
  797. package/apps/web/tsconfig.json +0 -18
  798. package/apps/web/vitest.config.ts +0 -25
  799. package/apps/web/vitest.setup.ts +0 -10
  800. package/packages/cli/dist/utils/project-init.d.ts +0 -12
  801. package/packages/cli/dist/utils/project-init.js +0 -258
  802. package/packages/cli/package.json +0 -30
  803. package/packages/cli/src/commands/check.ts +0 -77
  804. package/packages/cli/src/commands/init.ts +0 -209
  805. package/packages/cli/src/commands/start.ts +0 -183
  806. package/packages/cli/src/index.ts +0 -91
  807. package/packages/cli/src/utils/agent-tools.ts +0 -201
  808. package/packages/cli/src/utils/project-init.ts +0 -252
  809. package/packages/cli/src/utils/proxy.ts +0 -123
  810. package/packages/cli/tsconfig.json +0 -14
  811. package/packages/eslint-config/base.mjs +0 -31
  812. package/packages/eslint-config/nest.mjs +0 -55
  813. package/packages/eslint-config/next.mjs +0 -23
  814. package/packages/eslint-config/package.json +0 -20
  815. package/packages/typescript-config/base.json +0 -16
  816. package/packages/typescript-config/nestjs.json +0 -17
  817. package/packages/typescript-config/nextjs.json +0 -15
  818. package/packages/typescript-config/package.json +0 -11
  819. package/turbo.json +0 -28
  820. /package/apps/web/{src/app/favicon.ico → .next/server/app/favicon.ico.body} +0 -0
@@ -0,0 +1,842 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
45
+ return function (target, key) { decorator(target, key, paramIndex); }
46
+ };
47
+ var TaskExecutionService_1;
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.TaskExecutionService = void 0;
50
+ const child_process_1 = require("child_process");
51
+ const IS_WIN = process.platform === 'win32';
52
+ const uuid_1 = require("uuid");
53
+ const events_1 = require("events");
54
+ const fs = __importStar(require("fs"));
55
+ const common_1 = require("@nestjs/common");
56
+ const typeorm_1 = require("@nestjs/typeorm");
57
+ const typeorm_2 = require("typeorm");
58
+ const task_agent_entity_1 = require("../../database/entities/task-agent.entity");
59
+ const task_agent_run_entity_1 = require("../../database/entities/task-agent-run.entity");
60
+ const task_entity_1 = require("../../database/entities/task.entity");
61
+ const task_run_entity_1 = require("../../database/entities/task-run.entity");
62
+ const gemini_auth_manager_1 = require("../agents/gemini/gemini-auth.manager");
63
+ const conversation_service_1 = require("../conversations/conversation.service");
64
+ const conversation_enum_1 = require("../conversations/enums/conversation.enum");
65
+ const changelog_service_1 = require("../changelog/changelog.service");
66
+ const harness_service_1 = require("../harness/harness.service");
67
+ let TaskExecutionService = TaskExecutionService_1 = class TaskExecutionService extends events_1.EventEmitter {
68
+ agentRepo;
69
+ agentRunRepo;
70
+ taskRepo;
71
+ runRepo;
72
+ geminiAuthManager;
73
+ conversationService;
74
+ gitChangelogService;
75
+ harnessService;
76
+ logger = new common_1.Logger(TaskExecutionService_1.name);
77
+ claudeBin = 'claude';
78
+ geminiBin = 'gemini';
79
+ codexBin = 'codex';
80
+ logBuffer = new Map();
81
+ pendingMap = new Map();
82
+ promptIdMap = new Map();
83
+ worktreeMap = new Map();
84
+ directorySnapshotMap = new Map();
85
+ resultReceivedSet = new Set();
86
+ runIdMap = new Map();
87
+ taskRunIdMap = new Map();
88
+ processMap = new Map();
89
+ stoppingAgentSet = new Set();
90
+ isShuttingDown = false;
91
+ constructor(agentRepo, agentRunRepo, taskRepo, runRepo, geminiAuthManager, conversationService, gitChangelogService, harnessService) {
92
+ super();
93
+ this.agentRepo = agentRepo;
94
+ this.agentRunRepo = agentRunRepo;
95
+ this.taskRepo = taskRepo;
96
+ this.runRepo = runRepo;
97
+ this.geminiAuthManager = geminiAuthManager;
98
+ this.conversationService = conversationService;
99
+ this.gitChangelogService = gitChangelogService;
100
+ this.harnessService = harnessService;
101
+ }
102
+ async onModuleInit() {
103
+ this.claudeBin = this.resolveClaude();
104
+ this.logger.log(`claude 경로: ${this.claudeBin}`);
105
+ this.geminiBin = this.resolveGemini();
106
+ this.logger.log(`gemini 경로: ${this.geminiBin}`);
107
+ this.codexBin = this.resolveCodex();
108
+ this.logger.log(`codex 경로: ${this.codexBin}`);
109
+ await this.recoverStuckTasks();
110
+ }
111
+ async recoverStuckTasks() {
112
+ const [stuckAgents, stuckTasks, stuckRuns] = await Promise.all([
113
+ this.agentRepo.find({ where: { status: 'running' } }),
114
+ this.taskRepo.find({ where: { status: 'running' } }),
115
+ this.runRepo.find({ where: { status: 'running' } }),
116
+ ]);
117
+ if (stuckAgents.length === 0 && stuckTasks.length === 0 && stuckRuns.length === 0)
118
+ return;
119
+ const taskIds = new Set([
120
+ ...stuckAgents.map((a) => a.taskId),
121
+ ...stuckTasks.map((t) => t.id),
122
+ ...stuckRuns.map((r) => r.taskId),
123
+ ]);
124
+ const now = new Date();
125
+ if (stuckAgents.length > 0) {
126
+ await this.agentRepo.update(stuckAgents.map((a) => a.id), { status: 'stopped' });
127
+ }
128
+ const stuckAgentIds = stuckAgents.map((a) => a.id);
129
+ if (stuckAgentIds.length > 0) {
130
+ const stuckAgentRuns = await this.agentRunRepo.find({
131
+ where: stuckAgentIds.map((id) => ({ agentId: id, status: 'running' })),
132
+ });
133
+ if (stuckAgentRuns.length > 0) {
134
+ await this.agentRunRepo.update(stuckAgentRuns.map((r) => r.id), { status: 'stopped' });
135
+ }
136
+ }
137
+ if (taskIds.size > 0) {
138
+ const ids = Array.from(taskIds);
139
+ await Promise.all([
140
+ this.taskRepo.update({ id: (0, typeorm_2.In)(ids), status: 'running' }, { status: 'stopped' }),
141
+ this.runRepo.update({ taskId: (0, typeorm_2.In)(ids), status: 'running' }, { status: 'stopped', completedAt: now }),
142
+ ]);
143
+ }
144
+ this.logger.warn(`서버 재시작 복구: ${stuckAgents.length}개 에이전트, ${taskIds.size}개 작업을 stopped으로 변경`);
145
+ }
146
+ onModuleDestroy() {
147
+ this.isShuttingDown = true;
148
+ for (const [key, proc] of this.processMap.entries()) {
149
+ this.stoppingAgentSet.add(key);
150
+ try {
151
+ proc.kill('SIGTERM');
152
+ }
153
+ catch (err) {
154
+ this.logger.warn(`프로세스 종료 실패 (${key}): ${err instanceof Error ? err.message : String(err)}`);
155
+ }
156
+ }
157
+ this.logBuffer.clear();
158
+ this.pendingMap.clear();
159
+ this.promptIdMap.clear();
160
+ this.worktreeMap.clear();
161
+ this.directorySnapshotMap.clear();
162
+ this.resultReceivedSet.clear();
163
+ this.runIdMap.clear();
164
+ this.taskRunIdMap.clear();
165
+ this.processMap.clear();
166
+ this.stoppingAgentSet.clear();
167
+ }
168
+ async spawnTask(task, supplementNote, runId, options = {}) {
169
+ if (!task.agents.length) {
170
+ throw new Error('에이전트가 없습니다. 최소 하나의 에이전트를 추가하세요.');
171
+ }
172
+ const workingDir = this.resolveWorkingDir(task.workingDir);
173
+ const isGitRepo = this.gitChangelogService.isGitRepo(workingDir);
174
+ const reqList = [...task.requirements]
175
+ .sort((a, b) => a.orderIndex - b.orderIndex)
176
+ .map((r, i) => `${i + 1}. ${r.content}`)
177
+ .join('\n');
178
+ this.logBuffer.set(task.id, new Map());
179
+ this.pendingMap.set(task.id, new Set(task.agents.map((a) => a.id)));
180
+ if (runId != null) {
181
+ this.taskRunIdMap.set(task.id, runId);
182
+ }
183
+ const testCodeAgentIds = new Set(options.testCodeAgentIds ?? []);
184
+ for (const agent of task.agents) {
185
+ const roleLabel = agent.role === 'other' && agent.customRole ? agent.customRole : agent.role;
186
+ const shouldWriteTestCode = testCodeAgentIds.has(agent.id);
187
+ const commonHarness = this.harnessService.findOne('common');
188
+ const roleHarness = this.harnessService.findOne(agent.role);
189
+ const harnessSection = [
190
+ commonHarness?.content?.trim() ? `[공통 하네스]\n${commonHarness.content.trim()}` : '',
191
+ roleHarness?.content?.trim() ? `[${roleLabel} 하네스]\n${roleHarness.content.trim()}` : '',
192
+ ].filter(Boolean).join('\n\n');
193
+ const prompt = [
194
+ harnessSection ? `${harnessSection}\n\n` : '',
195
+ `당신은 ${roleLabel} 역할의 AI 에이전트입니다.`,
196
+ `\n\n[작업 목표]\n${task.title}`,
197
+ reqList ? `\n\n[요구사항]\n${reqList}` : '',
198
+ supplementNote ? `\n\n[이전 결과 보완 사항]\n${supplementNote}` : '',
199
+ shouldWriteTestCode
200
+ ? '\n\n[테스트 코드 작성 지시]\n이번 실행에서는 구현 변경뿐 아니라 관련 테스트 코드를 반드시 작성하세요. 프로젝트의 기존 테스트 프레임워크, 파일 위치, 네이밍 패턴을 따르고 가능한 경우 테스트를 실행해 결과를 남기세요.'
201
+ : '',
202
+ `\n\n위 작업을 수행해주세요.`,
203
+ ].join('');
204
+ await this.agentRepo.update(agent.id, { status: 'running' });
205
+ this.initAgentBuffer(task.id, agent.id);
206
+ if (runId != null) {
207
+ this.runIdMap.set(`${task.id}-${agent.id}`, runId);
208
+ const agentRun = this.agentRunRepo.create({
209
+ runId,
210
+ agentId: agent.id,
211
+ status: 'running',
212
+ });
213
+ const savedAgentRun = await this.agentRunRepo.save(agentRun);
214
+ this.runIdMap.set(`agentRunId-${task.id}-${agent.id}`, savedAgentRun.id);
215
+ }
216
+ const promptId = (0, uuid_1.v4)();
217
+ this.promptIdMap.set(`${task.id}-${agent.id}`, promptId);
218
+ await this.conversationService.create({
219
+ sessionId: task.id,
220
+ promptId,
221
+ content: prompt,
222
+ agentModel: this.getAgentModel(agent.agentType),
223
+ type: conversation_enum_1.ConversationType.USER_MESSAGE,
224
+ agentId: agent.id,
225
+ runId: runId ?? null,
226
+ });
227
+ let agentWorkDir = workingDir;
228
+ const agentKey = this.getAgentKey(task.id, agent.id);
229
+ this.directorySnapshotMap.set(agentKey, {
230
+ workingDir,
231
+ snapshot: this.gitChangelogService.createDirectorySnapshot(workingDir),
232
+ });
233
+ if (isGitRepo) {
234
+ try {
235
+ const { worktreePath, branchName, agentWorkDir: worktreeAgentDir } = this.gitChangelogService.createWorktree(workingDir, agent.agentType);
236
+ const startCommitHash = this.gitChangelogService.getCurrentHead(workingDir);
237
+ await this.agentRepo.update(agent.id, { worktreePath, startCommitHash });
238
+ if (runId != null) {
239
+ const agentRunId = this.runIdMap.get(`agentRunId-${task.id}-${agent.id}`);
240
+ if (agentRunId != null) {
241
+ await this.agentRunRepo.update(agentRunId, { worktreePath, startCommitHash });
242
+ }
243
+ }
244
+ this.worktreeMap.set(agentKey, { worktreePath, branchName, mainRepoDir: workingDir });
245
+ agentWorkDir = worktreeAgentDir;
246
+ }
247
+ catch (err) {
248
+ this.logger.warn(`Agent ${agent.id} worktree 생성 실패, 원본 디렉토리 사용: ${err}`);
249
+ }
250
+ }
251
+ if (agent.agentType === 'gemini') {
252
+ this.spawnGeminiAgent(task.id, task.title, agent.id, agentWorkDir, prompt);
253
+ }
254
+ else if (agent.agentType === 'codex') {
255
+ this.spawnCodexAgent(task.id, task.title, agent.id, agentWorkDir, prompt);
256
+ }
257
+ else {
258
+ this.spawnClaudeAgent(task.id, task.title, agent.id, agentWorkDir, prompt);
259
+ }
260
+ }
261
+ await this.taskRepo.update(task.id, { status: 'running' });
262
+ this.emit('task:status', { taskId: task.id, status: 'running', title: task.title });
263
+ }
264
+ async stopTask(task) {
265
+ const pending = this.pendingMap.get(task.id);
266
+ if (pending) {
267
+ pending.clear();
268
+ this.pendingMap.delete(task.id);
269
+ }
270
+ for (const agent of task.agents) {
271
+ const isRunning = agent.status === 'running' || this.processMap.has(this.getAgentKey(task.id, agent.id));
272
+ if (isRunning) {
273
+ this.requestAgentStop(task.id, agent.id);
274
+ await this.agentRepo.update(agent.id, { status: 'stopped' });
275
+ this.updateAgentBuffer(task.id, agent.id, { status: 'stopped' });
276
+ await this.updateAgentRunStatus(task.id, agent.id, 'stopped');
277
+ const ev = { taskId: task.id, agentId: agent.id, message: '수동으로 중지됐습니다.' };
278
+ this.emit('agent:error', ev);
279
+ }
280
+ }
281
+ await this.taskRepo.update(task.id, { status: 'stopped' });
282
+ const taskRunId = this.taskRunIdMap.get(task.id);
283
+ if (taskRunId != null) {
284
+ await this.runRepo.update(taskRunId, { status: 'stopped', completedAt: new Date() });
285
+ this.taskRunIdMap.delete(task.id);
286
+ }
287
+ this.emit('task:status', { taskId: task.id, status: 'stopped', title: task.title });
288
+ }
289
+ getBufferedLogs(taskId) {
290
+ const agentMap = this.logBuffer.get(taskId);
291
+ if (!agentMap)
292
+ return [];
293
+ return Array.from(agentMap.values());
294
+ }
295
+ spawnClaudeAgent(taskId, taskTitle, agentId, workingDir, prompt) {
296
+ const args = [
297
+ '--output-format', 'stream-json',
298
+ '--verbose',
299
+ '--print',
300
+ '--dangerously-skip-permissions',
301
+ '-p', prompt,
302
+ ];
303
+ this.logger.log(`[Task:${taskTitle}] Claude Agent ${agentId} 실행 — cwd: ${workingDir}`);
304
+ const proc = (0, child_process_1.spawn)(this.claudeBin, args, {
305
+ cwd: workingDir,
306
+ env: process.env,
307
+ stdio: ['ignore', 'pipe', 'pipe'],
308
+ });
309
+ this.registerProcess(taskId, agentId, proc);
310
+ let buffer = '';
311
+ proc.stdout.on('data', (chunk) => {
312
+ if (this.isAgentStopping(taskId, agentId))
313
+ return;
314
+ buffer += chunk.toString();
315
+ const lines = buffer.split('\n');
316
+ buffer = lines.pop() ?? '';
317
+ for (const line of lines) {
318
+ const trimmed = line.trim();
319
+ if (trimmed)
320
+ this.handleClaudeLine(taskId, agentId, trimmed);
321
+ }
322
+ });
323
+ proc.stderr.on('data', (chunk) => {
324
+ if (this.isAgentStopping(taskId, agentId))
325
+ return;
326
+ this.logger.warn(`[Task:${taskId}] Claude Agent ${agentId} stderr: ${chunk.toString().slice(0, 200)}`);
327
+ });
328
+ proc.on('close', (exitCode) => {
329
+ if (this.isAgentStopping(taskId, agentId)) {
330
+ this.cleanupAgentRuntime(taskId, agentId);
331
+ return;
332
+ }
333
+ if (buffer.trim())
334
+ this.handleClaudeLine(taskId, agentId, buffer.trim());
335
+ const key = `${taskId}-${agentId}`;
336
+ const hadResult = this.resultReceivedSet.delete(key);
337
+ if (!hadResult) {
338
+ this.logger.warn(`[Task:${taskId}] Claude Agent ${agentId} exited (code: ${exitCode}) without result`);
339
+ void this.agentRepo.update(agentId, { status: 'error' });
340
+ this.updateAgentBuffer(taskId, agentId, { status: 'error', errorMessage: `종료 코드: ${exitCode}` });
341
+ void this.updateAgentRunStatus(taskId, agentId, 'error');
342
+ this.emit('agent:error', { taskId, agentId, message: `프로세스가 코드 ${exitCode}로 종료됐습니다.` });
343
+ }
344
+ void this.finalizeAgent(taskId, agentId);
345
+ });
346
+ proc.on('error', (err) => {
347
+ if (this.isAgentStopping(taskId, agentId))
348
+ return;
349
+ this.logger.error(`[Task:${taskId}] Claude Agent ${agentId} spawn error: ${err.message}`);
350
+ this.resultReceivedSet.delete(`${taskId}-${agentId}`);
351
+ void this.agentRepo.update(agentId, { status: 'error' });
352
+ this.updateAgentBuffer(taskId, agentId, { status: 'error', errorMessage: err.message });
353
+ void this.updateAgentRunStatus(taskId, agentId, 'error');
354
+ this.emit('agent:error', { taskId, agentId, message: err.message });
355
+ void this.finalizeAgent(taskId, agentId);
356
+ });
357
+ }
358
+ spawnCodexAgent(taskId, taskTitle, agentId, workingDir, prompt) {
359
+ this.logger.log(`[Task:${taskTitle}] Codex Agent ${agentId} 실행 — cwd: ${workingDir}`);
360
+ const codexArgs = ['exec', '-c', 'approval_policy=never', '-c', 'sandbox_mode=danger-full-access', prompt];
361
+ const [codexCmd, codexSpawnArgs] = IS_WIN
362
+ ? ['cmd.exe', ['/c', 'codex', ...codexArgs]]
363
+ : [this.codexBin, codexArgs];
364
+ const proc = (0, child_process_1.spawn)(codexCmd, codexSpawnArgs, {
365
+ cwd: workingDir,
366
+ env: process.env,
367
+ stdio: ['ignore', 'pipe', 'pipe'],
368
+ });
369
+ this.registerProcess(taskId, agentId, proc);
370
+ let output = '';
371
+ const handleChunk = (chunk) => {
372
+ if (this.isAgentStopping(taskId, agentId))
373
+ return;
374
+ const raw = chunk.toString();
375
+ const text = raw
376
+ .replace(/\x1b\[[0-9;?]*[a-zA-Z]/g, '')
377
+ .replace(/\x1b\][^\x07]*\x07/g, '')
378
+ .replace(/\r/g, '');
379
+ if (!text.trim())
380
+ return;
381
+ output += text;
382
+ const prev = this.getAgentBuffer(taskId, agentId);
383
+ this.updateAgentBuffer(taskId, agentId, { output: prev.output + text });
384
+ this.emit('agent:output', { taskId, agentId, text });
385
+ };
386
+ proc.stdout.on('data', handleChunk);
387
+ proc.stderr.on('data', handleChunk);
388
+ proc.on('close', (exitCode) => {
389
+ if (this.isAgentStopping(taskId, agentId)) {
390
+ this.cleanupAgentRuntime(taskId, agentId);
391
+ return;
392
+ }
393
+ const isError = (exitCode ?? 0) !== 0;
394
+ const status = isError ? 'error' : 'completed';
395
+ void this.agentRepo.update(agentId, { status });
396
+ this.updateAgentBuffer(taskId, agentId, { status });
397
+ void this.updateAgentRunStatus(taskId, agentId, status, 0, 0);
398
+ if (isError) {
399
+ this.updateAgentBuffer(taskId, agentId, { errorMessage: `종료 코드: ${exitCode}` });
400
+ }
401
+ this.emit('agent:done', {
402
+ taskId,
403
+ agentId,
404
+ result: output.trim(),
405
+ isError,
406
+ durationMs: 0,
407
+ costUsd: 0,
408
+ });
409
+ void this.finalizeAgent(taskId, agentId);
410
+ });
411
+ proc.on('error', (err) => {
412
+ if (this.isAgentStopping(taskId, agentId))
413
+ return;
414
+ this.logger.error(`[Task:${taskId}] Codex Agent ${agentId} spawn error: ${err.message}`);
415
+ void this.agentRepo.update(agentId, { status: 'error' });
416
+ this.updateAgentBuffer(taskId, agentId, { status: 'error', errorMessage: err.message });
417
+ void this.updateAgentRunStatus(taskId, agentId, 'error');
418
+ this.emit('agent:error', { taskId, agentId, message: err.message });
419
+ void this.finalizeAgent(taskId, agentId);
420
+ });
421
+ }
422
+ spawnGeminiAgent(taskId, taskTitle, agentId, workingDir, prompt) {
423
+ this.logger.log(`[Task:${taskTitle}] Gemini Agent ${agentId} 실행 — bin: ${this.geminiBin}, cwd: ${workingDir}`);
424
+ const proc = (0, child_process_1.spawn)(this.geminiBin, ['-y', '-p', prompt], {
425
+ cwd: workingDir,
426
+ env: this.geminiAuthManager.getEnvForGemini(),
427
+ stdio: ['ignore', 'pipe', 'pipe'],
428
+ });
429
+ this.registerProcess(taskId, agentId, proc);
430
+ let output = '';
431
+ const handleChunk = (chunk) => {
432
+ if (this.isAgentStopping(taskId, agentId))
433
+ return;
434
+ const raw = chunk.toString();
435
+ const text = raw
436
+ .replace(/\x1b\[[0-9;?]*[a-zA-Z]/g, '')
437
+ .replace(/\x1b\][^\x07]*\x07/g, '')
438
+ .replace(/\r/g, '');
439
+ if (!text.trim())
440
+ return;
441
+ output += text;
442
+ const prev = this.getAgentBuffer(taskId, agentId);
443
+ this.updateAgentBuffer(taskId, agentId, { output: prev.output + text });
444
+ this.emit('agent:output', { taskId, agentId, text });
445
+ };
446
+ proc.stdout.on('data', handleChunk);
447
+ proc.stderr.on('data', handleChunk);
448
+ proc.on('close', (exitCode) => {
449
+ if (this.isAgentStopping(taskId, agentId)) {
450
+ this.cleanupAgentRuntime(taskId, agentId);
451
+ return;
452
+ }
453
+ const isError = (exitCode ?? 0) !== 0;
454
+ const status = isError ? 'error' : 'completed';
455
+ void this.agentRepo.update(agentId, { status });
456
+ this.updateAgentBuffer(taskId, agentId, { status });
457
+ void this.updateAgentRunStatus(taskId, agentId, status, 0, 0);
458
+ if (isError) {
459
+ this.updateAgentBuffer(taskId, agentId, { errorMessage: `종료 코드: ${exitCode}` });
460
+ }
461
+ this.emit('agent:done', {
462
+ taskId,
463
+ agentId,
464
+ result: output.trim(),
465
+ isError,
466
+ durationMs: 0,
467
+ costUsd: 0,
468
+ });
469
+ void this.finalizeAgent(taskId, agentId);
470
+ });
471
+ proc.on('error', (err) => {
472
+ if (this.isAgentStopping(taskId, agentId))
473
+ return;
474
+ this.logger.error(`[Task:${taskId}] Gemini Agent ${agentId} spawn error: ${err.message}`);
475
+ void this.agentRepo.update(agentId, { status: 'error' });
476
+ this.updateAgentBuffer(taskId, agentId, { status: 'error', errorMessage: err.message });
477
+ void this.updateAgentRunStatus(taskId, agentId, 'error');
478
+ this.emit('agent:error', { taskId, agentId, message: err.message });
479
+ void this.finalizeAgent(taskId, agentId);
480
+ });
481
+ }
482
+ handleClaudeLine(taskId, agentId, line) {
483
+ let event;
484
+ try {
485
+ event = JSON.parse(line);
486
+ }
487
+ catch {
488
+ return;
489
+ }
490
+ switch (event.type) {
491
+ case 'assistant': {
492
+ const e = event;
493
+ for (const block of e.message.content) {
494
+ if (block.type === 'text' && block.text.trim()) {
495
+ const prev = this.getAgentBuffer(taskId, agentId);
496
+ this.updateAgentBuffer(taskId, agentId, { output: prev.output + block.text });
497
+ this.emit('agent:output', { taskId, agentId, text: block.text });
498
+ }
499
+ if (block.type === 'tool_use') {
500
+ const toolLine = `\n⚙ ${block.name}(${JSON.stringify(block.input).slice(0, 120)})\n`;
501
+ const prev = this.getAgentBuffer(taskId, agentId);
502
+ this.updateAgentBuffer(taskId, agentId, { output: prev.output + toolLine });
503
+ this.emit('agent:tool', { taskId, agentId, tool: block.name, input: block.input });
504
+ }
505
+ }
506
+ break;
507
+ }
508
+ case 'result': {
509
+ const e = event;
510
+ const status = e.is_error ? 'error' : 'completed';
511
+ this.resultReceivedSet.add(`${taskId}-${agentId}`);
512
+ void this.agentRepo.update(agentId, { status });
513
+ this.updateAgentBuffer(taskId, agentId, {
514
+ status,
515
+ durationMs: e.duration_ms,
516
+ costUsd: e.total_cost_usd,
517
+ });
518
+ void this.updateAgentRunStatus(taskId, agentId, status, e.duration_ms, e.total_cost_usd);
519
+ this.emit('agent:done', {
520
+ taskId,
521
+ agentId,
522
+ result: e.result,
523
+ isError: e.is_error,
524
+ durationMs: e.duration_ms,
525
+ costUsd: e.total_cost_usd,
526
+ });
527
+ break;
528
+ }
529
+ }
530
+ }
531
+ async finalizeAgent(taskId, agentId) {
532
+ try {
533
+ const worktreeKey = this.getAgentKey(taskId, agentId);
534
+ const worktreeInfo = this.worktreeMap.get(worktreeKey);
535
+ const directorySnapshotInfo = this.directorySnapshotMap.get(worktreeKey);
536
+ this.worktreeMap.delete(worktreeKey);
537
+ this.directorySnapshotMap.delete(worktreeKey);
538
+ if (worktreeInfo) {
539
+ const { worktreePath } = worktreeInfo;
540
+ const [agent, task] = await Promise.all([
541
+ this.agentRepo.findOne({ where: { id: agentId } }),
542
+ this.taskRepo.findOne({ where: { id: taskId } }),
543
+ ]);
544
+ if (agent?.startCommitHash) {
545
+ const roleLabel = agent.role === 'other' && agent.customRole
546
+ ? agent.customRole
547
+ : agent.role;
548
+ const commitMessage = `feat(${agent.agentType}/${roleLabel}): ${task?.title ?? taskId}`;
549
+ const runId = this.runIdMap.get(`${taskId}-${agentId}`);
550
+ await this.gitChangelogService.captureAndSave(taskId, agentId, worktreePath, agent.startCommitHash, commitMessage, runId);
551
+ }
552
+ }
553
+ if (directorySnapshotInfo) {
554
+ const runId = this.runIdMap.get(`${taskId}-${agentId}`);
555
+ await this.gitChangelogService.captureDirectoryAndSave(taskId, agentId, directorySnapshotInfo.workingDir, directorySnapshotInfo.snapshot, runId);
556
+ }
557
+ await this.checkTaskCompletion(taskId, agentId);
558
+ }
559
+ finally {
560
+ this.cleanupAgentRuntime(taskId, agentId);
561
+ }
562
+ }
563
+ async checkTaskCompletion(taskId, agentId) {
564
+ const pending = this.pendingMap.get(taskId);
565
+ if (!pending)
566
+ return;
567
+ pending.delete(agentId);
568
+ await this.saveAgentMessage(taskId, agentId);
569
+ if (pending.size > 0)
570
+ return;
571
+ this.pendingMap.delete(taskId);
572
+ const [agents, taskEntity] = await Promise.all([
573
+ this.agentRepo.find({ where: { taskId } }),
574
+ this.taskRepo.findOne({ where: { id: taskId } }),
575
+ ]);
576
+ const hasError = agents.some((a) => a.status === 'error');
577
+ const newStatus = hasError ? 'error' : 'completed';
578
+ await this.taskRepo.update(taskId, { status: newStatus });
579
+ const taskRunId = this.taskRunIdMap.get(taskId);
580
+ if (taskRunId != null) {
581
+ await this.runRepo.update(taskRunId, { status: newStatus, completedAt: new Date() });
582
+ this.taskRunIdMap.delete(taskId);
583
+ }
584
+ this.emit('task:status', { taskId, status: newStatus, title: taskEntity?.title });
585
+ this.logger.log(`Task ${taskId} → ${newStatus}`);
586
+ }
587
+ async saveAgentMessage(taskId, agentId) {
588
+ const promptId = this.promptIdMap.get(`${taskId}-${agentId}`);
589
+ if (!promptId)
590
+ return;
591
+ this.promptIdMap.delete(`${taskId}-${agentId}`);
592
+ const buf = this.getAgentBuffer(taskId, agentId);
593
+ if (!buf.output.trim())
594
+ return;
595
+ const agent = await this.agentRepo.findOne({ where: { id: agentId } });
596
+ const agentModel = this.getAgentModel(agent?.agentType ?? 'claude');
597
+ const runId = this.runIdMap.get(`${taskId}-${agentId}`);
598
+ try {
599
+ await this.conversationService.create({
600
+ sessionId: taskId,
601
+ promptId,
602
+ content: buf.output.trim(),
603
+ agentModel,
604
+ type: conversation_enum_1.ConversationType.AGENT_MESSAGE,
605
+ agentId,
606
+ runId: runId ?? null,
607
+ });
608
+ }
609
+ catch (err) {
610
+ this.logger.error(`Agent ${agentId} 메시지 저장 실패: ${err}`);
611
+ }
612
+ }
613
+ async getLogsFromDb(taskId) {
614
+ const agents = await this.agentRepo.find({ where: { taskId } });
615
+ if (!agents.length)
616
+ return [];
617
+ const latestRun = await this.agentRunRepo.findOne({
618
+ where: { agentId: agents[0].id },
619
+ order: { runId: 'DESC' },
620
+ });
621
+ let conversations;
622
+ if (latestRun?.runId != null) {
623
+ conversations = await this.conversationService.findByRun(latestRun.runId);
624
+ }
625
+ else {
626
+ conversations = await this.conversationService.findBySession(taskId);
627
+ }
628
+ const statusMap = new Map(agents.map((a) => [a.id, a.status]));
629
+ const agentMessages = conversations.filter((c) => c.type === conversation_enum_1.ConversationType.AGENT_MESSAGE && c.agentId != null);
630
+ const byAgent = new Map();
631
+ for (const msg of agentMessages) {
632
+ const id = Number(msg.agentId);
633
+ byAgent.set(id, (byAgent.get(id) ?? '') + msg.content);
634
+ }
635
+ return agents.map((agent) => ({
636
+ agentId: agent.id,
637
+ status: statusMap.get(agent.id) ?? 'stopped',
638
+ output: byAgent.get(agent.id) ?? '',
639
+ }));
640
+ }
641
+ async updateAgentRunStatus(taskId, agentId, status, durationMs, costUsd) {
642
+ const agentRunId = this.runIdMap.get(`agentRunId-${taskId}-${agentId}`);
643
+ if (agentRunId == null)
644
+ return;
645
+ await this.agentRunRepo.update(agentRunId, {
646
+ status,
647
+ ...(durationMs != null ? { durationMs } : {}),
648
+ ...(costUsd != null ? { costUsd } : {}),
649
+ });
650
+ }
651
+ initAgentBuffer(taskId, agentId) {
652
+ if (!this.logBuffer.has(taskId))
653
+ this.logBuffer.set(taskId, new Map());
654
+ this.logBuffer.get(taskId).set(agentId, { agentId, status: 'running', output: '' });
655
+ }
656
+ getAgentBuffer(taskId, agentId) {
657
+ return this.logBuffer.get(taskId)?.get(agentId) ?? { agentId, status: 'running', output: '' };
658
+ }
659
+ updateAgentBuffer(taskId, agentId, patch) {
660
+ const agentMap = this.logBuffer.get(taskId);
661
+ if (!agentMap)
662
+ return;
663
+ const cur = agentMap.get(agentId) ?? { agentId, status: 'running', output: '' };
664
+ agentMap.set(agentId, { ...cur, ...patch });
665
+ }
666
+ getAgentKey(taskId, agentId) {
667
+ return `${taskId}-${agentId}`;
668
+ }
669
+ getAgentModel(agentType) {
670
+ if (agentType === 'gemini')
671
+ return conversation_enum_1.AgentModel.GEMINI;
672
+ if (agentType === 'codex')
673
+ return conversation_enum_1.AgentModel.CODEX;
674
+ if (agentType === 'opencode')
675
+ return conversation_enum_1.AgentModel.OPENCODE;
676
+ return conversation_enum_1.AgentModel.CLAUDE;
677
+ }
678
+ registerProcess(taskId, agentId, proc) {
679
+ this.processMap.set(this.getAgentKey(taskId, agentId), proc);
680
+ }
681
+ isAgentStopping(taskId, agentId) {
682
+ return this.isShuttingDown || this.stoppingAgentSet.has(this.getAgentKey(taskId, agentId));
683
+ }
684
+ requestAgentStop(taskId, agentId) {
685
+ const key = this.getAgentKey(taskId, agentId);
686
+ const proc = this.processMap.get(key);
687
+ if (!proc)
688
+ return;
689
+ this.stoppingAgentSet.add(key);
690
+ try {
691
+ proc.kill('SIGTERM');
692
+ const forceKill = setTimeout(() => {
693
+ if (!this.processMap.has(key))
694
+ return;
695
+ try {
696
+ proc.kill('SIGKILL');
697
+ }
698
+ catch (err) {
699
+ this.logger.warn(`프로세스 강제 종료 실패 (${key}): ${err instanceof Error ? err.message : String(err)}`);
700
+ }
701
+ }, 5000);
702
+ forceKill.unref?.();
703
+ }
704
+ catch (err) {
705
+ this.logger.warn(`프로세스 종료 실패 (${key}): ${err instanceof Error ? err.message : String(err)}`);
706
+ }
707
+ }
708
+ cleanupAgentRuntime(taskId, agentId) {
709
+ const key = this.getAgentKey(taskId, agentId);
710
+ this.processMap.delete(key);
711
+ this.stoppingAgentSet.delete(key);
712
+ this.resultReceivedSet.delete(key);
713
+ this.promptIdMap.delete(key);
714
+ this.worktreeMap.delete(key);
715
+ this.directorySnapshotMap.delete(key);
716
+ this.runIdMap.delete(key);
717
+ this.runIdMap.delete(`agentRunId-${key}`);
718
+ }
719
+ resolveClaude() {
720
+ const candidates = [
721
+ () => (0, child_process_1.execSync)('which claude', { encoding: 'utf8', timeout: 2000 }).trim(),
722
+ () => {
723
+ const home = process.env.HOME ?? '';
724
+ const nvmDefault = `${home}/.nvm/versions/node/${process.version}/bin/claude`;
725
+ if (fs.existsSync(nvmDefault))
726
+ return nvmDefault;
727
+ throw new Error('not found');
728
+ },
729
+ () => {
730
+ const npmBin = (0, child_process_1.execSync)('npm bin -g', { encoding: 'utf8', timeout: 2000 }).trim();
731
+ const p = `${npmBin}/claude`;
732
+ if (fs.existsSync(p))
733
+ return p;
734
+ throw new Error('not found');
735
+ },
736
+ ];
737
+ for (const fn of candidates) {
738
+ try {
739
+ const p = fn();
740
+ if (p)
741
+ return p;
742
+ }
743
+ catch { }
744
+ }
745
+ this.logger.warn('claude 바이너리 경로를 자동 탐지하지 못했습니다. "claude"로 폴백합니다.');
746
+ return 'claude';
747
+ }
748
+ resolveGemini() {
749
+ const candidates = [
750
+ () => (0, child_process_1.execSync)('which gemini', { encoding: 'utf8', timeout: 2000 }).trim(),
751
+ () => {
752
+ const home = process.env.HOME ?? '';
753
+ const nvmDefault = `${home}/.nvm/versions/node/${process.version}/bin/gemini`;
754
+ if (fs.existsSync(nvmDefault))
755
+ return nvmDefault;
756
+ throw new Error('not found');
757
+ },
758
+ () => {
759
+ const npmBin = (0, child_process_1.execSync)('npm bin -g', { encoding: 'utf8', timeout: 2000 }).trim();
760
+ const p = `${npmBin}/gemini`;
761
+ if (fs.existsSync(p))
762
+ return p;
763
+ throw new Error('not found');
764
+ },
765
+ ];
766
+ for (const fn of candidates) {
767
+ try {
768
+ const p = fn();
769
+ if (p)
770
+ return p;
771
+ }
772
+ catch { }
773
+ }
774
+ this.logger.warn('gemini 바이너리 경로를 자동 탐지하지 못했습니다. "gemini"로 폴백합니다.');
775
+ return 'gemini';
776
+ }
777
+ resolveCodex() {
778
+ const candidates = [
779
+ () => (0, child_process_1.execSync)('which codex', { encoding: 'utf8', timeout: 2000 }).trim(),
780
+ () => {
781
+ const home = process.env.HOME ?? '';
782
+ const nvmDefault = `${home}/.nvm/versions/node/${process.version}/bin/codex`;
783
+ if (fs.existsSync(nvmDefault))
784
+ return nvmDefault;
785
+ throw new Error('not found');
786
+ },
787
+ () => {
788
+ const npmBin = (0, child_process_1.execSync)('npm bin -g', { encoding: 'utf8', timeout: 2000 }).trim();
789
+ const p = `${npmBin}/codex`;
790
+ if (fs.existsSync(p))
791
+ return p;
792
+ throw new Error('not found');
793
+ },
794
+ ];
795
+ for (const fn of candidates) {
796
+ try {
797
+ const p = fn();
798
+ if (p)
799
+ return p;
800
+ }
801
+ catch { }
802
+ }
803
+ this.logger.warn('codex 바이너리 경로를 자동 탐지하지 못했습니다. "codex"로 폴백합니다.');
804
+ return 'codex';
805
+ }
806
+ resolveWorkingDir(workingDir) {
807
+ try {
808
+ if (!workingDir) {
809
+ return process.cwd();
810
+ }
811
+ if (!fs.existsSync(workingDir)) {
812
+ throw new common_1.BadRequestException(`작업 디렉토리가 존재하지 않습니다: ${workingDir}`);
813
+ }
814
+ if (!fs.statSync(workingDir).isDirectory()) {
815
+ throw new common_1.BadRequestException(`작업 디렉토리가 폴더가 아닙니다: ${workingDir}`);
816
+ }
817
+ return workingDir;
818
+ }
819
+ catch (err) {
820
+ if (err instanceof common_1.BadRequestException)
821
+ throw err;
822
+ throw new common_1.BadRequestException(`작업 디렉토리를 확인할 수 없습니다: ${workingDir}`);
823
+ }
824
+ }
825
+ };
826
+ exports.TaskExecutionService = TaskExecutionService;
827
+ exports.TaskExecutionService = TaskExecutionService = TaskExecutionService_1 = __decorate([
828
+ (0, common_1.Injectable)(),
829
+ __param(0, (0, typeorm_1.InjectRepository)(task_agent_entity_1.TaskAgentEntity)),
830
+ __param(1, (0, typeorm_1.InjectRepository)(task_agent_run_entity_1.TaskAgentRunEntity)),
831
+ __param(2, (0, typeorm_1.InjectRepository)(task_entity_1.TaskEntity)),
832
+ __param(3, (0, typeorm_1.InjectRepository)(task_run_entity_1.TaskRunEntity)),
833
+ __metadata("design:paramtypes", [typeorm_2.Repository,
834
+ typeorm_2.Repository,
835
+ typeorm_2.Repository,
836
+ typeorm_2.Repository,
837
+ gemini_auth_manager_1.GeminiAuthManager,
838
+ conversation_service_1.ConversationService,
839
+ changelog_service_1.GitChangelogService,
840
+ harness_service_1.HarnessService])
841
+ ], TaskExecutionService);
842
+ //# sourceMappingURL=task-execution.service.js.map