commandmate 0.44.2 → 0.44.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (581) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +149 -149
  3. package/.next/app-path-routes-manifest.json +21 -21
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +12 -12
  6. package/.next/react-loadable-manifest.json +0 -6
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/api/agents/update/route.js +1 -1
  10. package/.next/server/app/api/agents/update/route_client-reference-manifest.js +1 -1
  11. package/.next/server/app/api/agents/versions/route.js +1 -1
  12. package/.next/server/app/api/agents/versions/route_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/app/release-notes/route_client-reference-manifest.js +1 -1
  14. package/.next/server/app/api/app/update/route.js +2 -2
  15. package/.next/server/app/api/app/update/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/app/update-check/route_client-reference-manifest.js +1 -1
  17. package/.next/server/app/api/auth/login/route.js +1 -1
  18. package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  20. package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  21. package/.next/server/app/api/capabilities/route.js +1 -1
  22. package/.next/server/app/api/capabilities/route_client-reference-manifest.js +1 -1
  23. package/.next/server/app/api/daily-summary/route.js +1 -1
  24. package/.next/server/app/api/daily-summary/route.js.nft.json +1 -1
  25. package/.next/server/app/api/daily-summary/route_client-reference-manifest.js +1 -1
  26. package/.next/server/app/api/daily-summary/status/route.js +1 -1
  27. package/.next/server/app/api/daily-summary/status/route.js.nft.json +1 -1
  28. package/.next/server/app/api/daily-summary/status/route_client-reference-manifest.js +1 -1
  29. package/.next/server/app/api/external-apps/[id]/health/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/external-apps/[id]/route.js +1 -1
  31. package/.next/server/app/api/external-apps/[id]/route_client-reference-manifest.js +1 -1
  32. package/.next/server/app/api/external-apps/route.js +1 -1
  33. package/.next/server/app/api/external-apps/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -1
  35. package/.next/server/app/api/fs/recent-paths/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/api/hooks/agent-event/route.js +2 -2
  37. package/.next/server/app/api/hooks/agent-event/route.js.nft.json +1 -1
  38. package/.next/server/app/api/hooks/agent-event/route_client-reference-manifest.js +1 -1
  39. package/.next/server/app/api/hooks/claude-done/route.js +2 -2
  40. package/.next/server/app/api/hooks/claude-done/route.js.nft.json +1 -1
  41. package/.next/server/app/api/hooks/claude-done/route_client-reference-manifest.js +1 -1
  42. package/.next/server/app/api/hooks/permission-request/route.js +1 -1
  43. package/.next/server/app/api/hooks/permission-request/route.js.nft.json +1 -1
  44. package/.next/server/app/api/hooks/permission-request/route_client-reference-manifest.js +1 -1
  45. package/.next/server/app/api/metrics/vibe/route_client-reference-manifest.js +1 -1
  46. package/.next/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
  47. package/.next/server/app/api/push/escalation/route.js +1 -1
  48. package/.next/server/app/api/push/escalation/route_client-reference-manifest.js +1 -1
  49. package/.next/server/app/api/push/subscriptions/route.js +2 -2
  50. package/.next/server/app/api/push/subscriptions/route_client-reference-manifest.js +1 -1
  51. package/.next/server/app/api/push/vapid/route.js +1 -1
  52. package/.next/server/app/api/push/vapid/route_client-reference-manifest.js +1 -1
  53. package/.next/server/app/api/relays/[relayId]/cancel/route.js +1 -1
  54. package/.next/server/app/api/relays/[relayId]/cancel/route.js.nft.json +1 -1
  55. package/.next/server/app/api/relays/[relayId]/cancel/route_client-reference-manifest.js +1 -1
  56. package/.next/server/app/api/relays/route.js +1 -1
  57. package/.next/server/app/api/relays/route.js.nft.json +1 -1
  58. package/.next/server/app/api/relays/route_client-reference-manifest.js +1 -1
  59. package/.next/server/app/api/remote/pair/route_client-reference-manifest.js +1 -1
  60. package/.next/server/app/api/repositories/[id]/route.js +1 -1
  61. package/.next/server/app/api/repositories/[id]/route_client-reference-manifest.js +1 -1
  62. package/.next/server/app/api/repositories/clone/[jobId]/route.js +1 -1
  63. package/.next/server/app/api/repositories/clone/[jobId]/route.js.nft.json +1 -1
  64. package/.next/server/app/api/repositories/clone/[jobId]/route_client-reference-manifest.js +1 -1
  65. package/.next/server/app/api/repositories/clone/route.js +1 -1
  66. package/.next/server/app/api/repositories/clone/route.js.nft.json +1 -1
  67. package/.next/server/app/api/repositories/clone/route_client-reference-manifest.js +1 -1
  68. package/.next/server/app/api/repositories/excluded/route_client-reference-manifest.js +1 -1
  69. package/.next/server/app/api/repositories/restore/route.js +1 -1
  70. package/.next/server/app/api/repositories/restore/route.js.nft.json +1 -1
  71. package/.next/server/app/api/repositories/restore/route_client-reference-manifest.js +1 -1
  72. package/.next/server/app/api/repositories/route.js +1 -1
  73. package/.next/server/app/api/repositories/route.js.nft.json +1 -1
  74. package/.next/server/app/api/repositories/route_client-reference-manifest.js +1 -1
  75. package/.next/server/app/api/repositories/scan/route.js +1 -1
  76. package/.next/server/app/api/repositories/scan/route.js.nft.json +1 -1
  77. package/.next/server/app/api/repositories/scan/route_client-reference-manifest.js +1 -1
  78. package/.next/server/app/api/repositories/sync/route.js +1 -1
  79. package/.next/server/app/api/repositories/sync/route.js.nft.json +1 -1
  80. package/.next/server/app/api/repositories/sync/route_client-reference-manifest.js +1 -1
  81. package/.next/server/app/api/repositories/validate-path/route_client-reference-manifest.js +1 -1
  82. package/.next/server/app/api/settings/default-agents/route.js +1 -1
  83. package/.next/server/app/api/settings/default-agents/route.js.nft.json +1 -1
  84. package/.next/server/app/api/settings/default-agents/route_client-reference-manifest.js +1 -1
  85. package/.next/server/app/api/settings/default-surface-mode/route_client-reference-manifest.js +1 -1
  86. package/.next/server/app/api/sidebar/group-order/route.js +1 -1
  87. package/.next/server/app/api/sidebar/group-order/route_client-reference-manifest.js +1 -1
  88. package/.next/server/app/api/skills/[id]/route.js +1 -1
  89. package/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
  90. package/.next/server/app/api/skills/installations/route_client-reference-manifest.js +1 -1
  91. package/.next/server/app/api/skills/operations/route_client-reference-manifest.js +1 -1
  92. package/.next/server/app/api/skills/reindex/route_client-reference-manifest.js +1 -1
  93. package/.next/server/app/api/skills/route.js +1 -1
  94. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  95. package/.next/server/app/api/slash-commands/route_client-reference-manifest.js +1 -1
  96. package/.next/server/app/api/tasks/[taskId]/cancel/route_client-reference-manifest.js +1 -1
  97. package/.next/server/app/api/tasks/[taskId]/route_client-reference-manifest.js +1 -1
  98. package/.next/server/app/api/templates/[id]/route.js +2 -2
  99. package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +1 -1
  100. package/.next/server/app/api/templates/route.js +2 -2
  101. package/.next/server/app/api/templates/route_client-reference-manifest.js +1 -1
  102. package/.next/server/app/api/verification/runs/[runId]/route_client-reference-manifest.js +1 -1
  103. package/.next/server/app/api/verification/runs/route_client-reference-manifest.js +1 -1
  104. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js +1 -1
  105. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js.nft.json +1 -1
  106. package/.next/server/app/api/worktrees/[id]/auto-yes/route_client-reference-manifest.js +1 -1
  107. package/.next/server/app/api/worktrees/[id]/capture/route.js +1 -1
  108. package/.next/server/app/api/worktrees/[id]/capture/route.js.nft.json +1 -1
  109. package/.next/server/app/api/worktrees/[id]/capture/route_client-reference-manifest.js +1 -1
  110. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js +1 -1
  111. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js.nft.json +1 -1
  112. package/.next/server/app/api/worktrees/[id]/clear-composer/route_client-reference-manifest.js +1 -1
  113. package/.next/server/app/api/worktrees/[id]/cli-reference/route_client-reference-manifest.js +1 -1
  114. package/.next/server/app/api/worktrees/[id]/cli-tool/route.js +1 -1
  115. package/.next/server/app/api/worktrees/[id]/cli-tool/route_client-reference-manifest.js +1 -1
  116. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js +3 -3
  117. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js.nft.json +1 -1
  118. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route_client-reference-manifest.js +1 -1
  119. package/.next/server/app/api/worktrees/[id]/current-output/route.js +1 -1
  120. package/.next/server/app/api/worktrees/[id]/current-output/route.js.nft.json +1 -1
  121. package/.next/server/app/api/worktrees/[id]/current-output/route_client-reference-manifest.js +1 -1
  122. package/.next/server/app/api/worktrees/[id]/direct-input/route.js +1 -1
  123. package/.next/server/app/api/worktrees/[id]/direct-input/route.js.nft.json +1 -1
  124. package/.next/server/app/api/worktrees/[id]/direct-input/route_client-reference-manifest.js +1 -1
  125. package/.next/server/app/api/worktrees/[id]/env/route_client-reference-manifest.js +1 -1
  126. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route_client-reference-manifest.js +1 -1
  127. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js +2 -2
  128. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js.nft.json +1 -1
  129. package/.next/server/app/api/worktrees/[id]/execution-logs/route_client-reference-manifest.js +1 -1
  130. package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js +1 -1
  131. package/.next/server/app/api/worktrees/[id]/files/[...path]/route_client-reference-manifest.js +1 -1
  132. package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js +1 -1
  133. package/.next/server/app/api/worktrees/[id]/git/branch/create/route_client-reference-manifest.js +1 -1
  134. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js +1 -1
  135. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route_client-reference-manifest.js +1 -1
  136. package/.next/server/app/api/worktrees/[id]/git/branches/route_client-reference-manifest.js +1 -1
  137. package/.next/server/app/api/worktrees/[id]/git/checkout/route.js +1 -1
  138. package/.next/server/app/api/worktrees/[id]/git/checkout/route_client-reference-manifest.js +1 -1
  139. package/.next/server/app/api/worktrees/[id]/git/commit/route.js +1 -1
  140. package/.next/server/app/api/worktrees/[id]/git/commit/route_client-reference-manifest.js +1 -1
  141. package/.next/server/app/api/worktrees/[id]/git/diff/route_client-reference-manifest.js +1 -1
  142. package/.next/server/app/api/worktrees/[id]/git/fetch/route.js +1 -1
  143. package/.next/server/app/api/worktrees/[id]/git/fetch/route_client-reference-manifest.js +1 -1
  144. package/.next/server/app/api/worktrees/[id]/git/log/route_client-reference-manifest.js +1 -1
  145. package/.next/server/app/api/worktrees/[id]/git/pull/route.js +1 -1
  146. package/.next/server/app/api/worktrees/[id]/git/pull/route_client-reference-manifest.js +1 -1
  147. package/.next/server/app/api/worktrees/[id]/git/push/route.js +1 -1
  148. package/.next/server/app/api/worktrees/[id]/git/push/route_client-reference-manifest.js +1 -1
  149. package/.next/server/app/api/worktrees/[id]/git/reset/route.js +1 -1
  150. package/.next/server/app/api/worktrees/[id]/git/reset/route_client-reference-manifest.js +1 -1
  151. package/.next/server/app/api/worktrees/[id]/git/revert/route.js +1 -1
  152. package/.next/server/app/api/worktrees/[id]/git/revert/route_client-reference-manifest.js +1 -1
  153. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route_client-reference-manifest.js +1 -1
  154. package/.next/server/app/api/worktrees/[id]/git/stage/route.js +1 -1
  155. package/.next/server/app/api/worktrees/[id]/git/stage/route_client-reference-manifest.js +1 -1
  156. package/.next/server/app/api/worktrees/[id]/git/staged/route_client-reference-manifest.js +1 -1
  157. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route_client-reference-manifest.js +1 -1
  158. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js +1 -1
  159. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route_client-reference-manifest.js +1 -1
  160. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js +1 -1
  161. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route_client-reference-manifest.js +1 -1
  162. package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js +1 -1
  163. package/.next/server/app/api/worktrees/[id]/git/stash/push/route_client-reference-manifest.js +1 -1
  164. package/.next/server/app/api/worktrees/[id]/git/stash/route_client-reference-manifest.js +1 -1
  165. package/.next/server/app/api/worktrees/[id]/git/status/route_client-reference-manifest.js +1 -1
  166. package/.next/server/app/api/worktrees/[id]/git/unstage/route.js +1 -1
  167. package/.next/server/app/api/worktrees/[id]/git/unstage/route_client-reference-manifest.js +1 -1
  168. package/.next/server/app/api/worktrees/[id]/git/working-diff/route_client-reference-manifest.js +1 -1
  169. package/.next/server/app/api/worktrees/[id]/instances/notes/route.js +1 -1
  170. package/.next/server/app/api/worktrees/[id]/instances/notes/route_client-reference-manifest.js +1 -1
  171. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js +1 -1
  172. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js.nft.json +1 -1
  173. package/.next/server/app/api/worktrees/[id]/instances/opencode/route_client-reference-manifest.js +1 -1
  174. package/.next/server/app/api/worktrees/[id]/interrupt/route.js +1 -1
  175. package/.next/server/app/api/worktrees/[id]/interrupt/route.js.nft.json +1 -1
  176. package/.next/server/app/api/worktrees/[id]/interrupt/route_client-reference-manifest.js +1 -1
  177. package/.next/server/app/api/worktrees/[id]/kill-session/route.js +1 -1
  178. package/.next/server/app/api/worktrees/[id]/kill-session/route.js.nft.json +1 -1
  179. package/.next/server/app/api/worktrees/[id]/kill-session/route_client-reference-manifest.js +1 -1
  180. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route_client-reference-manifest.js +1 -1
  181. package/.next/server/app/api/worktrees/[id]/logs/route_client-reference-manifest.js +1 -1
  182. package/.next/server/app/api/worktrees/[id]/marp-render/route.js +1 -1
  183. package/.next/server/app/api/worktrees/[id]/marp-render/route_client-reference-manifest.js +1 -1
  184. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js +1 -1
  185. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route_client-reference-manifest.js +1 -1
  186. package/.next/server/app/api/worktrees/[id]/memos/route.js +1 -1
  187. package/.next/server/app/api/worktrees/[id]/memos/route_client-reference-manifest.js +1 -1
  188. package/.next/server/app/api/worktrees/[id]/messages/route_client-reference-manifest.js +1 -1
  189. package/.next/server/app/api/worktrees/[id]/opencode/diff/route.js +1 -1
  190. package/.next/server/app/api/worktrees/[id]/opencode/diff/route_client-reference-manifest.js +1 -1
  191. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js +1 -1
  192. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js.nft.json +1 -1
  193. package/.next/server/app/api/worktrees/[id]/opencode/session/route_client-reference-manifest.js +1 -1
  194. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js +1 -1
  195. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js.nft.json +1 -1
  196. package/.next/server/app/api/worktrees/[id]/opencode/share/route_client-reference-manifest.js +1 -1
  197. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js +1 -1
  198. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js.nft.json +1 -1
  199. package/.next/server/app/api/worktrees/[id]/prompt-response/route_client-reference-manifest.js +1 -1
  200. package/.next/server/app/api/worktrees/[id]/resolve-target/route_client-reference-manifest.js +1 -1
  201. package/.next/server/app/api/worktrees/[id]/respond/route.js +1 -1
  202. package/.next/server/app/api/worktrees/[id]/respond/route.js.nft.json +1 -1
  203. package/.next/server/app/api/worktrees/[id]/respond/route_client-reference-manifest.js +1 -1
  204. package/.next/server/app/api/worktrees/[id]/route.js +1 -1
  205. package/.next/server/app/api/worktrees/[id]/route.js.nft.json +1 -1
  206. package/.next/server/app/api/worktrees/[id]/route_client-reference-manifest.js +1 -1
  207. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js +2 -2
  208. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js.nft.json +1 -1
  209. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route_client-reference-manifest.js +1 -1
  210. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js +2 -2
  211. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js.nft.json +1 -1
  212. package/.next/server/app/api/worktrees/[id]/schedules/active/route_client-reference-manifest.js +1 -1
  213. package/.next/server/app/api/worktrees/[id]/schedules/route.js +3 -3
  214. package/.next/server/app/api/worktrees/[id]/schedules/route.js.nft.json +1 -1
  215. package/.next/server/app/api/worktrees/[id]/schedules/route_client-reference-manifest.js +1 -1
  216. package/.next/server/app/api/worktrees/[id]/search/route_client-reference-manifest.js +1 -1
  217. package/.next/server/app/api/worktrees/[id]/send/route.js +1 -1
  218. package/.next/server/app/api/worktrees/[id]/send/route.js.nft.json +1 -1
  219. package/.next/server/app/api/worktrees/[id]/send/route_client-reference-manifest.js +1 -1
  220. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js +2 -2
  221. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js.nft.json +1 -1
  222. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route_client-reference-manifest.js +1 -1
  223. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route_client-reference-manifest.js +1 -1
  224. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js +1 -1
  225. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route_client-reference-manifest.js +1 -1
  226. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route_client-reference-manifest.js +1 -1
  227. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route_client-reference-manifest.js +1 -1
  228. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route_client-reference-manifest.js +1 -1
  229. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js +1 -1
  230. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route_client-reference-manifest.js +1 -1
  231. package/.next/server/app/api/worktrees/[id]/skills/route_client-reference-manifest.js +1 -1
  232. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js +1 -1
  233. package/.next/server/app/api/worktrees/[id]/slash-commands/route_client-reference-manifest.js +1 -1
  234. package/.next/server/app/api/worktrees/[id]/special-keys/route.js +1 -1
  235. package/.next/server/app/api/worktrees/[id]/special-keys/route.js.nft.json +1 -1
  236. package/.next/server/app/api/worktrees/[id]/special-keys/route_client-reference-manifest.js +1 -1
  237. package/.next/server/app/api/worktrees/[id]/tasks/route.js +1 -1
  238. package/.next/server/app/api/worktrees/[id]/tasks/route_client-reference-manifest.js +1 -1
  239. package/.next/server/app/api/worktrees/[id]/terminal/route.js +2 -2
  240. package/.next/server/app/api/worktrees/[id]/terminal/route.js.nft.json +1 -1
  241. package/.next/server/app/api/worktrees/[id]/terminal/route_client-reference-manifest.js +1 -1
  242. package/.next/server/app/api/worktrees/[id]/timers/history/route_client-reference-manifest.js +1 -1
  243. package/.next/server/app/api/worktrees/[id]/timers/route.js +1 -1
  244. package/.next/server/app/api/worktrees/[id]/timers/route.js.nft.json +1 -1
  245. package/.next/server/app/api/worktrees/[id]/timers/route_client-reference-manifest.js +1 -1
  246. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route.js +1 -1
  247. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
  248. package/.next/server/app/api/worktrees/[id]/todos/route.js +1 -1
  249. package/.next/server/app/api/worktrees/[id]/todos/route_client-reference-manifest.js +1 -1
  250. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route_client-reference-manifest.js +1 -1
  251. package/.next/server/app/api/worktrees/[id]/tree/route_client-reference-manifest.js +1 -1
  252. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route_client-reference-manifest.js +1 -1
  253. package/.next/server/app/api/worktrees/[id]/verify/config/route.js +1 -1
  254. package/.next/server/app/api/worktrees/[id]/verify/config/route_client-reference-manifest.js +1 -1
  255. package/.next/server/app/api/worktrees/[id]/verify/route.js +1 -1
  256. package/.next/server/app/api/worktrees/[id]/verify/route_client-reference-manifest.js +1 -1
  257. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route.js +1 -1
  258. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route_client-reference-manifest.js +1 -1
  259. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route_client-reference-manifest.js +1 -1
  260. package/.next/server/app/api/worktrees/[id]/verify/runs/route_client-reference-manifest.js +1 -1
  261. package/.next/server/app/api/worktrees/[id]/viewed/route_client-reference-manifest.js +1 -1
  262. package/.next/server/app/api/worktrees/apply-default-agents/route_client-reference-manifest.js +1 -1
  263. package/.next/server/app/api/worktrees/route.js +1 -1
  264. package/.next/server/app/api/worktrees/route.js.nft.json +1 -1
  265. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
  266. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  267. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  268. package/.next/server/app/more/page_client-reference-manifest.js +1 -1
  269. package/.next/server/app/offline/page_client-reference-manifest.js +1 -1
  270. package/.next/server/app/page_client-reference-manifest.js +1 -1
  271. package/.next/server/app/proxy/[...path]/route_client-reference-manifest.js +1 -1
  272. package/.next/server/app/repositories/page_client-reference-manifest.js +1 -1
  273. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  274. package/.next/server/app/sessions/page.js +1 -1
  275. package/.next/server/app/sessions/page.js.nft.json +1 -1
  276. package/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  277. package/.next/server/app/skills/[skillId]/page_client-reference-manifest.js +1 -1
  278. package/.next/server/app/skills/installed/page_client-reference-manifest.js +1 -1
  279. package/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  280. package/.next/server/app/worktrees/[id]/files/[...path]/page_client-reference-manifest.js +1 -1
  281. package/.next/server/app/worktrees/[id]/page.js +11 -11
  282. package/.next/server/app/worktrees/[id]/page.js.nft.json +1 -1
  283. package/.next/server/app/worktrees/[id]/page_client-reference-manifest.js +1 -1
  284. package/.next/server/app/worktrees/[id]/terminal/page_client-reference-manifest.js +1 -1
  285. package/.next/server/app-paths-manifest.json +21 -21
  286. package/.next/server/chunks/1191.js +2 -2
  287. package/.next/server/chunks/1210.js +1 -1
  288. package/.next/server/chunks/1559.js +2 -0
  289. package/.next/server/chunks/1789.js +1 -0
  290. package/.next/server/chunks/2119.js +1 -1
  291. package/.next/server/chunks/2404.js +1 -1
  292. package/.next/server/chunks/2445.js +1 -1
  293. package/.next/server/chunks/2460.js +1 -1
  294. package/.next/server/chunks/2710.js +1 -1
  295. package/.next/server/chunks/2908.js +1 -1
  296. package/.next/server/chunks/2980.js +1 -1
  297. package/.next/server/chunks/3241.js +1 -1
  298. package/.next/server/chunks/3480.js +1 -1
  299. package/.next/server/chunks/3718.js +1 -1
  300. package/.next/server/chunks/4207.js +2 -2
  301. package/.next/server/chunks/450.js +1 -1
  302. package/.next/server/chunks/4672.js +5 -0
  303. package/.next/server/chunks/{9353.js → 4718.js} +2 -2
  304. package/.next/server/chunks/4837.js +14 -0
  305. package/.next/server/chunks/5048.js +1 -1
  306. package/.next/server/chunks/5209.js +1 -0
  307. package/.next/server/chunks/5595.js +1 -1
  308. package/.next/server/chunks/5625.js +25 -0
  309. package/.next/server/chunks/611.js +1 -1
  310. package/.next/server/chunks/6130.js +1 -1
  311. package/.next/server/chunks/6401.js +1 -1
  312. package/.next/server/chunks/6781.js +1 -1
  313. package/.next/server/chunks/6793.js +3 -3
  314. package/.next/server/chunks/7491.js +2 -2
  315. package/.next/server/chunks/7905.js +1 -1
  316. package/.next/server/chunks/850.js +1 -1
  317. package/.next/server/chunks/8728.js +3 -3
  318. package/.next/server/chunks/8791.js +1 -1
  319. package/.next/server/chunks/8800.js +1 -1
  320. package/.next/server/chunks/8918.js +7 -7
  321. package/.next/server/chunks/9130.js +1 -1
  322. package/.next/server/chunks/9390.js +2 -2
  323. package/.next/server/chunks/9584.js +1 -1
  324. package/.next/server/chunks/9627.js +6 -6
  325. package/.next/server/chunks/9731.js +3 -3
  326. package/.next/server/middleware-manifest.json +5 -5
  327. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  328. package/.next/server/pages/500.html +1 -1
  329. package/.next/server/server-reference-manifest.json +1 -1
  330. package/.next/static/chunks/{1642-fb2e176aaadbd137.js → 1642-767aed8e7c61ef7f.js} +1 -1
  331. package/.next/static/chunks/{2407-051f6f84226a9f2c.js → 2407-06d35bb1aa02de80.js} +1 -1
  332. package/.next/static/chunks/{2619-04bc32f026a0d946.js → 2619-a305ad4810f1393a.js} +1 -1
  333. package/.next/static/chunks/4727-5d695d71e3fdf97b.js +1 -0
  334. package/.next/static/chunks/{8165-3853772f6ae1299b.js → 8165-3525fb42f1b4976e.js} +1 -1
  335. package/.next/static/chunks/app/{layout-9da1ab602bcb3051.js → layout-0d1750b833f5cc3e.js} +1 -1
  336. package/.next/static/chunks/app/sessions/page-2af68c63211c751f.js +1 -0
  337. package/.next/static/chunks/app/worktrees/[id]/page-e36898c3a80e7302.js +1 -0
  338. package/.next/static/chunks/app/worktrees/[id]/terminal/{page-373ea37b16d930c7.js → page-c601f3b3ece6557e.js} +1 -1
  339. package/.next/static/css/057f64a65726c439.css +1 -0
  340. package/.next/trace +13 -13
  341. package/dist/cli/commands/ask.d.ts.map +1 -1
  342. package/dist/cli/commands/ask.js +120 -119
  343. package/dist/cli/commands/attach.d.ts +94 -0
  344. package/dist/cli/commands/attach.d.ts.map +1 -1
  345. package/dist/cli/commands/attach.js +145 -7
  346. package/dist/cli/commands/auto-yes.js +1 -1
  347. package/dist/cli/commands/capture.d.ts.map +1 -1
  348. package/dist/cli/commands/capture.js +3 -5
  349. package/dist/cli/commands/command-target.d.ts +23 -0
  350. package/dist/cli/commands/command-target.d.ts.map +1 -0
  351. package/dist/cli/commands/command-target.js +25 -0
  352. package/dist/cli/commands/instances.d.ts.map +1 -1
  353. package/dist/cli/commands/instances.js +41 -2
  354. package/dist/cli/commands/message-dispatch.d.ts +36 -0
  355. package/dist/cli/commands/message-dispatch.d.ts.map +1 -0
  356. package/dist/cli/commands/message-dispatch.js +63 -0
  357. package/dist/cli/commands/reply.d.ts.map +1 -1
  358. package/dist/cli/commands/reply.js +2 -5
  359. package/dist/cli/commands/respond.d.ts.map +1 -1
  360. package/dist/cli/commands/respond.js +3 -6
  361. package/dist/cli/commands/send.d.ts.map +1 -1
  362. package/dist/cli/commands/send.js +149 -146
  363. package/dist/cli/commands/wait.d.ts.map +1 -1
  364. package/dist/cli/commands/wait.js +589 -431
  365. package/dist/cli/types/api-responses.d.ts +159 -27
  366. package/dist/cli/types/api-responses.d.ts.map +1 -1
  367. package/dist/cli/types/api-responses.js +4 -2
  368. package/dist/cli/utils/api-client.d.ts +25 -5
  369. package/dist/cli/utils/api-client.d.ts.map +1 -1
  370. package/dist/cli/utils/api-client.js +87 -55
  371. package/dist/cli/utils/server-url.d.ts +1 -0
  372. package/dist/cli/utils/server-url.d.ts.map +1 -1
  373. package/dist/cli/utils/server-url.js +7 -0
  374. package/dist/config/uat-isolation.d.ts +140 -0
  375. package/dist/config/uat-isolation.d.ts.map +1 -0
  376. package/dist/config/uat-isolation.js +246 -0
  377. package/dist/lib/global-state.d.ts +12 -0
  378. package/dist/lib/global-state.d.ts.map +1 -0
  379. package/dist/lib/global-state.js +16 -0
  380. package/dist/lib/polling/auto-yes-suppression-reason.d.ts +33 -0
  381. package/dist/lib/polling/auto-yes-suppression-reason.d.ts.map +1 -0
  382. package/dist/lib/polling/auto-yes-suppression-reason.js +2 -0
  383. package/dist/lib/session/prompt-view.d.ts +26 -3
  384. package/dist/lib/session/prompt-view.d.ts.map +1 -1
  385. package/dist/lib/session/prompt-view.js +26 -3
  386. package/dist/lib/session/status-evidence-type.d.ts +16 -0
  387. package/dist/lib/session/status-evidence-type.d.ts.map +1 -0
  388. package/dist/lib/session/status-evidence-type.js +2 -0
  389. package/dist/lib/tmux/legacy-session-alias.d.ts.map +1 -1
  390. package/dist/lib/tmux/legacy-session-alias.js +2 -1
  391. package/dist/server/locales/en/worktree.json +3 -1
  392. package/dist/server/locales/ja/worktree.json +3 -1
  393. package/dist/server/src/cli/types/api-responses.js +4 -2
  394. package/dist/server/src/config/cli-tool-timing-config.js +1 -6
  395. package/dist/server/src/config/uat-isolation.js +246 -0
  396. package/dist/server/src/lib/assistant-response-saver.js +62 -3
  397. package/dist/server/src/lib/auto-yes-lifecycle.js +6 -0
  398. package/dist/server/src/lib/auto-yes-poller.js +450 -160
  399. package/dist/server/src/lib/auto-yes-state.js +2 -2
  400. package/dist/server/src/lib/cli-tools/antigravity.js +38 -79
  401. package/dist/server/src/lib/cli-tools/base.js +151 -0
  402. package/dist/server/src/lib/cli-tools/codex.js +44 -80
  403. package/dist/server/src/lib/cli-tools/command-code.js +24 -56
  404. package/dist/server/src/lib/cli-tools/copilot.js +25 -67
  405. package/dist/server/src/lib/cli-tools/direct-input.js +8 -0
  406. package/dist/server/src/lib/cli-tools/gemini.js +23 -73
  407. package/dist/server/src/lib/cli-tools/opencode-pane-width.js +53 -0
  408. package/dist/server/src/lib/cli-tools/opencode-v2.js +9 -7
  409. package/dist/server/src/lib/cli-tools/opencode.js +21 -85
  410. package/dist/server/src/lib/cli-tools/submit-verified-sender.js +127 -4
  411. package/dist/server/src/lib/cli-tools/vibe-local.js +21 -66
  412. package/dist/server/src/lib/detection/cli-patterns.js +374 -3065
  413. package/dist/server/src/lib/detection/idle-evidence-observation.js +2 -2
  414. package/dist/server/src/lib/detection/prompt-detect-multiple-choice.js +7 -32
  415. package/dist/server/src/lib/detection/prompt-detector.js +2 -35
  416. package/dist/server/src/lib/detection/selection-shape-patterns.js +69 -0
  417. package/dist/server/src/lib/detection/selection-shape.js +32 -520
  418. package/dist/server/src/lib/detection/shared/pasted-text.js +41 -0
  419. package/dist/server/src/lib/detection/shared/shell-pane-command.js +16 -0
  420. package/dist/server/src/lib/detection/shared/strip-box-drawing.js +25 -0
  421. package/dist/server/src/lib/detection/tools/antigravity/detect.js +5 -29
  422. package/dist/server/src/lib/detection/tools/antigravity/dialog.js +2 -15
  423. package/dist/server/src/lib/detection/tools/antigravity/patterns.js +286 -0
  424. package/dist/server/src/lib/detection/tools/claude/detect.js +3 -14
  425. package/dist/server/src/lib/detection/tools/claude/patterns.js +264 -4
  426. package/dist/server/src/lib/detection/tools/claude/prompt.js +2 -10
  427. package/dist/server/src/lib/detection/tools/codex/detect.js +46 -85
  428. package/dist/server/src/lib/detection/tools/codex/live-region.js +33 -2
  429. package/dist/server/src/lib/detection/tools/codex/patterns.js +855 -0
  430. package/dist/server/src/lib/detection/tools/codex/prompt.js +2 -10
  431. package/dist/server/src/lib/detection/tools/command-code/detect.js +8 -50
  432. package/dist/server/src/lib/detection/tools/command-code/dialog.js +2 -18
  433. package/dist/server/src/lib/detection/tools/command-code/patterns.js +234 -0
  434. package/dist/server/src/lib/detection/tools/command-code/selection-shape.js +461 -0
  435. package/dist/server/src/lib/detection/tools/context-above.js +20 -0
  436. package/dist/server/src/lib/detection/tools/copilot/detect.js +10 -35
  437. package/dist/server/src/lib/detection/tools/copilot/patterns.js +640 -0
  438. package/dist/server/src/lib/detection/tools/copilot/prompt.js +2 -10
  439. package/dist/server/src/lib/detection/tools/gemini/patterns.js +29 -0
  440. package/dist/server/src/lib/detection/tools/live-region-specs.js +1 -1
  441. package/dist/server/src/lib/detection/tools/opencode/detect.js +8 -49
  442. package/dist/server/src/lib/detection/tools/opencode/patterns.js +508 -0
  443. package/dist/server/src/lib/detection/tools/opencode-v2/detect.js +7 -42
  444. package/dist/server/src/lib/detection/tools/opencode-v2/patterns.js +63 -0
  445. package/dist/server/src/lib/detection/tools/run-detection.js +6 -47
  446. package/dist/server/src/lib/detection/tools/verdicts.js +59 -0
  447. package/dist/server/src/lib/detection/tools/vibe-local/patterns.js +20 -0
  448. package/dist/server/src/lib/detection/truncate-raw-content.js +38 -0
  449. package/dist/server/src/lib/detection/turn-abandoned.js +66 -0
  450. package/dist/server/src/lib/detection/unclassified-frame-tracker.js +2 -2
  451. package/dist/server/src/lib/global-state.js +16 -0
  452. package/dist/server/src/lib/hooks/agent-session-telemetry.js +4 -6
  453. package/dist/server/src/lib/hooks/permission-decision-state.js +2 -2
  454. package/dist/server/src/lib/hooks/sources/antigravity/history.js +11 -76
  455. package/dist/server/src/lib/hooks/sources/antigravity/hooks-config.js +63 -1
  456. package/dist/server/src/lib/hooks/sources/antigravity/source.js +16 -0
  457. package/dist/server/src/lib/hooks/sources/antigravity/transcript.js +3 -12
  458. package/dist/server/src/lib/hooks/sources/claude/history.js +17 -156
  459. package/dist/server/src/lib/hooks/sources/claude/queued-notice.js +53 -0
  460. package/dist/server/src/lib/hooks/sources/claude/source.js +33 -3
  461. package/dist/server/src/lib/hooks/sources/claude/transcript.js +3 -13
  462. package/dist/server/src/lib/hooks/sources/codex/history.js +11 -74
  463. package/dist/server/src/lib/hooks/sources/codex/hooks-config.js +147 -11
  464. package/dist/server/src/lib/hooks/sources/codex/relay-install.js +64 -21
  465. package/dist/server/src/lib/hooks/sources/codex/transcript.js +5 -15
  466. package/dist/server/src/lib/hooks/sources/command-code/history.js +20 -121
  467. package/dist/server/src/lib/hooks/sources/command-code/transcript.js +3 -13
  468. package/dist/server/src/lib/hooks/sources/copilot/hook-settings.js +161 -31
  469. package/dist/server/src/lib/hooks/sources/define-source.js +40 -55
  470. package/dist/server/src/lib/hooks/sources/event-mapper.js +2 -1
  471. package/dist/server/src/lib/hooks/sources/opencode/diff.js +3 -4
  472. package/dist/server/src/lib/hooks/sources/opencode/history.js +2 -1
  473. package/dist/server/src/lib/hooks/sources/opencode/launch-settings.js +2 -1
  474. package/dist/server/src/lib/hooks/sources/opencode/payloads.js +2 -1
  475. package/dist/server/src/lib/hooks/sources/opencode/ports.js +2 -1
  476. package/dist/server/src/lib/hooks/sources/opencode/subscription.js +4 -3
  477. package/dist/server/src/lib/hooks/sources/opencode/transcript.js +3 -16
  478. package/dist/server/src/lib/hooks/sources/opencode-v2/history.js +2 -1
  479. package/dist/server/src/lib/hooks/sources/opencode-v2/mappers.js +5 -4
  480. package/dist/server/src/lib/hooks/sources/opencode-v2/ports.js +2 -1
  481. package/dist/server/src/lib/hooks/sources/opencode-v2/subscription.js +3 -7
  482. package/dist/server/src/lib/hooks/sources/opencode-v2/usage.js +2 -1
  483. package/dist/server/src/lib/hooks/sources/pending-decisions.js +2 -1
  484. package/dist/server/src/lib/hooks/sources/registry.js +3 -2
  485. package/dist/server/src/lib/hooks/sources/transcript-history.js +262 -0
  486. package/dist/server/src/lib/hooks/sources/turn-body.js +31 -0
  487. package/dist/server/src/lib/hooks/tool-input-normalization-state.js +2 -2
  488. package/dist/server/src/lib/polling/antigravity-permission-receipts.js +2 -2
  489. package/dist/server/src/lib/polling/auto-yes-enter-fallback-state.js +142 -0
  490. package/dist/server/src/lib/polling/auto-yes-enter-fallback.js +187 -0
  491. package/dist/server/src/lib/polling/auto-yes-resolver.js +9 -3
  492. package/dist/server/src/lib/polling/auto-yes-suppression-reason.js +2 -0
  493. package/dist/server/src/lib/polling/auto-yes-suppression-state.js +2 -2
  494. package/dist/server/src/lib/polling/pending-scraped-response.js +190 -0
  495. package/dist/server/src/lib/polling/prompt-dedup-state.js +2 -2
  496. package/dist/server/src/lib/polling/prompt-dedup.js +2 -2
  497. package/dist/server/src/lib/polling/response-checker-dialog-gate.js +95 -0
  498. package/dist/server/src/lib/polling/response-checker-extraction-result.js +50 -0
  499. package/dist/server/src/lib/polling/response-checker-extraction-steps.js +670 -0
  500. package/dist/server/src/lib/polling/response-checker.js +641 -1142
  501. package/dist/server/src/lib/polling/response-dedup.js +3 -4
  502. package/dist/server/src/lib/polling/response-poller-constants.js +17 -0
  503. package/dist/server/src/lib/polling/response-poller-core.js +54 -20
  504. package/dist/server/src/lib/polling/startup-screen.js +142 -0
  505. package/dist/server/src/lib/polling/structured-history-gate.js +3 -2
  506. package/dist/server/src/lib/prompt-answer-semantic.js +178 -0
  507. package/dist/server/src/lib/prompt-answer-sender.js +5 -4
  508. package/dist/server/src/lib/push/failure-episode-state.js +2 -2
  509. package/dist/server/src/lib/push/notification-dedup.js +3 -4
  510. package/dist/server/src/lib/push/prompt-card-state.js +2 -2
  511. package/dist/server/src/lib/push/waiting-push-notifier.js +3 -4
  512. package/dist/server/src/lib/realtime/publisher-registry.js +3 -2
  513. package/dist/server/src/lib/realtime/terminal-broadcast.js +38 -5
  514. package/dist/server/src/lib/realtime/terminal-session-ownership.js +45 -0
  515. package/dist/server/src/lib/relay/relay-delivery.js +3 -2
  516. package/dist/server/src/lib/relay/relay-readiness.js +38 -1
  517. package/dist/server/src/lib/response-cleaner.js +24 -1
  518. package/dist/server/src/lib/response-extractor.js +16 -0
  519. package/dist/server/src/lib/schedule-manager.js +8 -10
  520. package/dist/server/src/lib/session/agent-event-ask-user-question.js +168 -0
  521. package/dist/server/src/lib/session/agent-event-awaiting-instruction.js +104 -0
  522. package/dist/server/src/lib/session/agent-event-dedup.js +539 -0
  523. package/dist/server/src/lib/session/agent-event-model.js +562 -0
  524. package/dist/server/src/lib/session/agent-event-record.js +10 -0
  525. package/dist/server/src/lib/session/agent-event-state.js +106 -1854
  526. package/dist/server/src/lib/session/agent-event-structured-state.js +109 -0
  527. package/dist/server/src/lib/session/agent-event-turn.js +811 -0
  528. package/dist/server/src/lib/session/agent-session-lifecycle.js +11 -2
  529. package/dist/server/src/lib/session/chat-turn-progress.js +322 -0
  530. package/dist/server/src/lib/session/claude-executor.js +45 -5
  531. package/dist/server/src/lib/session/claude-session.js +21 -65
  532. package/dist/server/src/lib/session/cli-session.js +17 -0
  533. package/dist/server/src/lib/session/current-output-builder.js +450 -1103
  534. package/dist/server/src/lib/session/current-output-history-writers.js +255 -0
  535. package/dist/server/src/lib/session/current-output-types.js +9 -0
  536. package/dist/server/src/lib/session/detection-divergence.js +55 -0
  537. package/dist/server/src/lib/session/global-session-constants.js +2 -13
  538. package/dist/server/src/lib/session/hook-turn-hold.js +102 -0
  539. package/dist/server/src/lib/session/layer-disagreement.js +2 -2
  540. package/dist/server/src/lib/session/opencode-session-store.js +2 -1
  541. package/dist/server/src/lib/session/prompt-view.js +26 -3
  542. package/dist/server/src/lib/session/prompt-waiting-composition.js +3 -2
  543. package/dist/server/src/lib/session/provisional-turn.js +3 -1
  544. package/dist/server/src/lib/session/send-user-message.js +1 -1
  545. package/dist/server/src/lib/session/session-starting-state.js +4 -6
  546. package/dist/server/src/lib/session/status-evidence-type.js +2 -0
  547. package/dist/server/src/lib/session/status-evidence.js +2 -2
  548. package/dist/server/src/lib/session/structured-status-merge.js +335 -0
  549. package/dist/server/src/lib/session/waiting-episode-state.js +3 -4
  550. package/dist/server/src/lib/session-cleanup.js +1 -5
  551. package/dist/server/src/lib/skills/install-plan.js +2 -1
  552. package/dist/server/src/lib/skills/snapshot-store.js +2 -2
  553. package/dist/server/src/lib/skills/uninstall-plan.js +2 -2
  554. package/dist/server/src/lib/timer-manager.js +6 -8
  555. package/dist/server/src/lib/tmux/geometry-delegation.js +3 -4
  556. package/dist/server/src/lib/tmux/legacy-session-alias.js +2 -1
  557. package/dist/server/src/lib/tmux/session-hooks.js +2 -1
  558. package/dist/server/src/lib/tmux/session-status-options.js +3 -3
  559. package/dist/server/src/lib/tmux/tmux-capture-cache.js +3 -2
  560. package/dist/server/src/lib/tmux/tmux.js +33 -59
  561. package/dist/server/src/lib/tui-accumulator.js +2 -2
  562. package/dist/server/src/lib/version-checker.js +6 -6
  563. package/dist/server/src/lib/ws-server.js +47 -11
  564. package/docs/en/user-guide/webapp-guide.md +27 -3
  565. package/package.json +1 -1
  566. package/release-notes/0.44.3.json +82 -0
  567. package/scripts/hooks/cmate-agent-event.sh +18 -0
  568. package/.next/server/chunks/1068.js +0 -1
  569. package/.next/server/chunks/4372.js +0 -5
  570. package/.next/server/chunks/6474.js +0 -14
  571. package/.next/server/chunks/967.js +0 -1
  572. package/.next/server/chunks/9798.js +0 -2
  573. package/.next/server/chunks/9882.js +0 -25
  574. package/.next/static/chunks/591-539fec878c9dec5e.js +0 -1
  575. package/.next/static/chunks/app/sessions/page-049e06335187aa91.js +0 -1
  576. package/.next/static/chunks/app/worktrees/[id]/page-2a81397e60f17e63.js +0 -1
  577. package/.next/static/css/38070d879efa1371.css +0 -1
  578. package/dist/server/src/lib/cli-tools/index.js +0 -41
  579. package/dist/server/src/lib/polling/global-session-poller.js +0 -140
  580. /package/.next/static/{QlCqLjorauDDBXPa-C7TK → tWwHQzmvc-rv9KKUtDWfQ}/_buildManifest.js +0 -0
  581. /package/.next/static/{QlCqLjorauDDBXPa-C7TK → tWwHQzmvc-rv9KKUtDWfQ}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=960,a.ids=[960],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4984:a=>{a.exports=require("readline")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{a.exports=require("process")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70178:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>al,patchFetch:()=>ak,routeModule:()=>ag,serverHooks:()=>aj,workAsyncStorage:()=>ah,workUnitAsyncStorage:()=>ai});var d={};c.r(d),c.d(d,{DELETE:()=>ae,GET:()=>aa,HEAD:()=>ab,PATCH:()=>af,POST:()=>ad,PUT:()=>ac});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(88807),w=c(56791),x=c(33873),y=c(66007),z=c(14842),A=c(30233),B=c(73462),C=c(39333);let D=[".mp4"],E=[{extension:".mp4",mimeType:"video/mp4",magicBytes:[102,116,121,112],magicBytesOffset:4}];function F(a){if(!a)return!1;let b=(0,C.HB)(a);return D.includes(b)}function G(a){if(!a)return;let b=(0,C.HB)(a),c=E.find(a=>a.extension===b);return c?.mimeType}function H(a,b){return b.length>0x6400000?{valid:!1,error:"File size exceeds 100MB limit",reason:"too-large"}:!function(a,b){let c=(0,C.HB)(a),d=E.find(a=>a.extension===c);if(!d?.magicBytes)return!1;let e=d.magicBytesOffset||0;return!(b.length<e+d.magicBytes.length)&&d.magicBytes.every((a,c)=>b[e+c]===a)}(a,b)?{valid:!1,error:"Invalid video magic bytes"}:{valid:!0}}var I=c(98125);let J=[".pdf"],K=[37,80,68,70,45],L="application/pdf";var M=c(79748),N=c(27910),O=c(72626);let P=/[\x00-\x1f\x7f]/g,Q=/[^\x20-\x7e]/g;function R(a){return(0,x.basename)(String(a).replace(/\\/g,"/")).replace(P,"")}var S=c(27289);let T=(0,O.h)("api/files"),U={FILE_NOT_FOUND:404,WORKTREE_NOT_FOUND:404,PERMISSION_DENIED:403,NOT_EDITABLE:403,PROTECTED_DIRECTORY:403,INVALID_PATH:400,INVALID_REQUEST:400,INVALID_NAME:400,INVALID_CONTENT:400,DIRECTORY_NOT_EMPTY:400,DELETE_LIMIT_EXCEEDED:400,FILE_EXISTS:409,DISK_FULL:507,INTERNAL_ERROR:500,INVALID_EXTENSION:400,INVALID_MIME_TYPE:400,INVALID_MAGIC_BYTES:400,FILE_TOO_LARGE:413,INVALID_FILENAME:400,INVALID_FILE_CONTENT:400,MOVE_SAME_PATH:400,MOVE_INTO_SELF:400,PDF_SIZE_EXCEEDED:413,SENSITIVE_PATH:403};function V(a,b,c=500){let d=U[a]??c;return u.NextResponse.json({success:!1,error:{code:a,message:b}},{status:d})}function W(a){return`${(a/1024/1024).toFixed(1)}MB`}async function X(a,b){let c=(0,v.getDbInstance)(),d=(0,w.getWorktreeById)(c,a);if(!d)return{error:V("WORKTREE_NOT_FOUND","Worktree not found")};let e=b.join("/"),f=(0,x.normalize)(e);return(0,y.B9)(f,d.path)?(0,y.Px)(f,d.path)?(0,z.Ew)(b)??(0,z.Ew)(f)?{error:V("SENSITIVE_PATH","This path is protected and cannot be accessed through the file API")}:{worktree:d,relativePath:f}:{error:V("INVALID_PATH","Invalid path")}:{error:V("INVALID_PATH","Invalid file path")}}function Y(a){return`File size exceeds ${a/1024/1024}MB limit`}function Z(a){let b=a.error;return"too-large"===a.reason?V("FILE_TOO_LARGE",b??"File too large"):b?.includes("magic bytes")?V("INVALID_MAGIC_BYTES",b):V("INVALID_FILE_CONTENT",b||"Invalid image content")}function $(a){let b=a.error;return"too-large"===a.reason?V("FILE_TOO_LARGE",b??"File too large"):b?.includes("magic bytes")?V("INVALID_MAGIC_BYTES",b):V("INVALID_FILE_CONTENT",b||"Invalid video content")}async function _(a,b,c){let d,e=F(c),f=(0,C.df)(c)&&".svg"!==c;if(!e&&!f)return V("INVALID_EXTENSION","raw=1 is only available for video and non-SVG image files");try{d=await (0,M.open)(b,"r")}catch(a){if("ENOENT"===a.code)return V("FILE_NOT_FOUND","File not found");throw a}let g=!1;try{let b=await d.stat();if(!b.isFile())return V("FILE_NOT_FOUND","File not found");let f=b.size,h=e?0x6400000:C.Fg;if(f>h){let a={error:Y(h),reason:"too-large"};return e?$(a):Z(a)}let i=Buffer.alloc(Math.min(16,f));i.length>0&&await d.read(i,0,i.length,0);let j=e?H(c,i):(0,C.Bg)(c,i);if(!j.valid)return e?$(j):Z(j);let k=e?G(c)||"video/mp4":(0,C.$Y)(c),l=new Headers({"Content-Type":k,"X-Content-Type-Options":"nosniff","Content-Disposition":"inline","Cache-Control":"no-store","Accept-Ranges":"bytes"}),m=function(a,b){if(!a)return null;let c=/^bytes=(\d*)-(\d*)$/.exec(a.trim());if(!c)return null;let[,d,e]=c;if(!d&&!e)return null;if(!d){let a=Number(e);return 0===a||0===b?"unsatisfiable":{start:Math.max(0,b-a),end:b-1}}let f=Number(d),g=e?Number(e):b-1;return e&&g<f?null:f>=b?"unsatisfiable":{start:f,end:Math.min(g,b-1)}}(a.headers.get("range"),f);if("unsatisfiable"===m)return l.set("Content-Range",`bytes */${f}`),new u.NextResponse(null,{status:416,headers:l});let{start:n,end:o}=m??{start:0,end:f-1};l.set("Content-Length",String(0===f?0:o-n+1)),m&&l.set("Content-Range",`bytes ${n}-${o}/${f}`);let p=d.createReadStream({start:n,end:o});g=!0;let q=N.Readable.toWeb(p);return new u.NextResponse(q,{status:m?206:200,headers:l})}finally{g||await d.close()}}async function aa(a,{params:b}){try{let c,{id:d,path:e}=await b,f=(0,S.z)(d),g=await X(f,e);if("error"in g)return g.error;let{worktree:h,relativePath:i}=g,j=i.split(".").pop()||"",k=(0,x.extname)(i).toLowerCase();if("1"===a.nextUrl.searchParams.get("download")){let a=(0,x.join)(h.path,i);try{let b=await (0,M.readFile)(a);return new u.NextResponse(b,{headers:{"Content-Type":"application/octet-stream","Content-Disposition":function(a){var b;let c=R(a).replace(Q,"").replace(/["\\]/g,"_").trim()||"download",d=(b=a,encodeURIComponent(R(b).trim()).replace(/['()*]/g,a=>"%"+a.charCodeAt(0).toString(16).toUpperCase())||"download");return`attachment; filename="${c}"; filename*=UTF-8''${d}`}(i),"Cache-Control":"no-store, private"}})}catch(a){if("ENOENT"===a.code)return V("FILE_NOT_FOUND","File not found");throw a}}if("1"===a.nextUrl.searchParams.get("raw"))return _(a,(0,x.join)(h.path,i),k);if((0,C.df)(k)){let a=(0,x.join)(h.path,i);try{let b=await (0,M.readFile)(a),c=(0,C.Bg)(k,b);if(!c.valid)return Z(c);let d=(0,C.$Y)(k),e=b.toString("base64"),f=`data:${d};base64,${e}`;return u.NextResponse.json({success:!0,path:i,content:f,extension:j,worktreePath:h.path,isImage:!0,mimeType:d})}catch(a){if("ENOENT"===a.code)return V("FILE_NOT_FOUND","File not found");throw a}}if(F(k)){let a=(0,x.join)(h.path,i);try{if((await (0,M.stat)(a)).size>0x6400000)return V("FILE_TOO_LARGE",Y(0x6400000));let b=await (0,M.readFile)(a),c=H(k,b);if(!c.valid)return $(c);let d=G(k)||"video/mp4",e=b.toString("base64"),f=`data:${d};base64,${e}`;return u.NextResponse.json({success:!0,path:i,content:f,extension:j,worktreePath:h.path,isVideo:!0,mimeType:d})}catch(a){if("ENOENT"===a.code)return V("FILE_NOT_FOUND","File not found");throw a}}if(function(a){if(!a)return!1;let b=(0,C.HB)(a);return J.includes(b)}(k)){let a=(0,x.join)(h.path,i);try{let b=await (0,M.readFile)(a),c=function(a){return a.length>0x1400000?{valid:!1,error:"File size exceeds 20MB limit"}:!(a.length<K.length)&&K.every((b,c)=>a[c]===b)?{valid:!0}:{valid:!1,error:"Invalid PDF magic bytes"}}(b);if(!c.valid){if(c.error?.includes("MB"))return V("PDF_SIZE_EXCEEDED",c.error);return V("INVALID_MAGIC_BYTES",c.error||"Invalid PDF magic bytes")}let d=b.toString("base64"),e=`data:${L};base64,${d}`;return u.NextResponse.json({success:!0,path:i,content:e,extension:j,worktreePath:h.path,isPdf:!0,mimeType:L})}catch(a){if("ENOENT"===a.code)return V("FILE_NOT_FOUND","File not found");throw a}}let l=(0,x.join)(h.path,i);try{c=await (0,M.stat)(l)}catch(a){if("ENOENT"===a.code)return V("FILE_NOT_FOUND","File not found");throw a}let m=function(a,b){let c=(0,I.lk)(a)?I.j6:(0,B.Ol)(a)?B.Nu:null;return null===c||b<=c?null:{code:"FILE_TOO_LARGE",message:`Opened read-only: this file is ${W(b)}, over the ${W(c)} limit for editing. You can view it but not save changes.`,limitBytes:c,sizeBytes:b}}(k,c.size),n=m?{readOnly:!0,readOnlyReason:m}:{},{searchParams:o}=new URL(a.url),p=function(a){let b=a.get("startLine"),c=a.get("endLine");if(null===b&&null===c)return{mode:"full"};let d=Number(b),e=Number(c);return Number.isFinite(d)&&Number.isFinite(e)?{mode:"range",startLine:d,endLine:e}:{mode:"invalid"}}(o);if("invalid"===p.mode)return V("INVALID_REQUEST","startLine and endLine must be numeric");if("range"===p.mode){let a=await (0,A.QS)(h.path,i,p.startLine,p.endLine);if(!a.success)return V(a.error?.code||"INTERNAL_ERROR",a.error?.message||"Failed to read file range");return u.NextResponse.json({success:!0,path:i,content:a.content,extension:j,worktreePath:h.path,totalLines:a.totalLines,totalBytes:a.totalBytes,encoding:a.encoding,range:a.range,...n})}let q=c.mtime.toUTCString(),r=a.headers.get("If-Modified-Since");if(r){let a=new Date(r);if(!isNaN(a.getTime())&&c.mtime<=a)return new Response(null,{status:304,headers:{"Last-Modified":q,"Cache-Control":"no-store, private"}})}let s=await (0,A.AJ)(h.path,i);if(!s.success)return V(s.error?.code||"INTERNAL_ERROR",s.error?.message||"Failed to read file");let t=(0,I.lk)(k);return u.NextResponse.json({success:!0,path:i,content:s.content,extension:j,worktreePath:h.path,...t&&{isHtml:!0},totalBytes:c.size,...n},{headers:{"Last-Modified":q,"Cache-Control":"no-store, private"}})}catch(a){return T.error("error-reading-file:",{error:a instanceof Error?a.message:String(a)}),V("INTERNAL_ERROR","Failed to read file")}}async function ab(a,{params:b}){try{let{id:a,path:c}=await b,d=(0,S.z)(a),e=await X(d,c);if("error"in e)return new u.NextResponse(null,{status:e.error.status});let{worktree:f,relativePath:g}=e;try{if(!(await (0,M.stat)((0,x.join)(f.path,g))).isFile())return new u.NextResponse(null,{status:404});return new u.NextResponse(null,{status:200,headers:{"Cache-Control":"no-store, private"}})}catch(b){let a=b.code;if("ENOENT"===a||"ENOTDIR"===a||"ENAMETOOLONG"===a)return new u.NextResponse(null,{status:404});throw b}}catch(a){return T.error("error-probing-file:",{error:a instanceof Error?a.message:String(a)}),new u.NextResponse(null,{status:500})}}async function ac(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await X(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f;if(!(0,A.Du)(h))return V("NOT_EDITABLE","File type is not editable");let{content:i}=await a.json();if(void 0===i)return V("INVALID_REQUEST","Content is required");let j=(0,x.extname)(h).toLowerCase(),k=(0,B.mS)(j,i);if(!k.valid)return V("INVALID_CONTENT",k.error||"Invalid content");let l=await (0,A.ng)(g.path,h,i);if(!l.success)return V(l.error?.code||"INTERNAL_ERROR",l.error?.message||"Failed to update file");return u.NextResponse.json({success:!0,path:h})}catch(a){return T.error("error-updating-file:",{error:a instanceof Error?a.message:String(a)}),V("INTERNAL_ERROR","Failed to update file")}}async function ad(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await X(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f,{type:i,content:j}=await a.json();if(!i||!["file","directory"].includes(i))return V("INVALID_REQUEST",'Type must be "file" or "directory"');if("file"===i&&void 0!==j){let a=(0,x.extname)(h).toLowerCase();if((0,B.Ol)(a)){let b=(0,B.mS)(a,j);if(!b.valid)return V("INVALID_CONTENT",b.error||"Invalid content")}}let k=await (0,A.N_)(g.path,h,i,j);if(!k.success)return V(k.error?.code||"INTERNAL_ERROR",k.error?.message||"Failed to create file/directory");return u.NextResponse.json({success:!0,path:h},{status:201})}catch(a){return T.error("error-creating-filedirectory:",{error:a instanceof Error?a.message:String(a)}),V("INTERNAL_ERROR","Failed to create file/directory")}}async function ae(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await X(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f,{searchParams:i}=new URL(a.url),j="true"===i.get("recursive"),k=await (0,A.Ky)(g.path,h,j);if(!k.success)return V(k.error?.code||"INTERNAL_ERROR",k.error?.message||"Failed to delete file/directory");return u.NextResponse.json({success:!0})}catch(a){return T.error("error-deleting-filedirectory:",{error:a instanceof Error?a.message:String(a)}),V("INTERNAL_ERROR","Failed to delete file/directory")}}async function af(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await X(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f,{action:i,newName:j,destination:k}=await a.json();switch(i){case"rename":{if(!j||"string"!=typeof j)return V("INVALID_REQUEST","newName is required");if((0,z.Ew)([j]))return V("SENSITIVE_PATH","This path is protected and cannot be accessed through the file API");let a=await (0,A.FH)(g.path,h,j);if(!a.success)return V(a.error?.code||"INTERNAL_ERROR",a.error?.message||"Failed to rename file/directory");return u.NextResponse.json({success:!0,path:a.path})}case"move":{if(!k||"string"!=typeof k)return V("INVALID_REQUEST","destination is required and must be a string");if((0,z.Ew)(k))return V("SENSITIVE_PATH","This path is protected and cannot be accessed through the file API");let a=await (0,A.Gl)(g.path,h,k);if(!a.success)return V(a.error?.code||"INTERNAL_ERROR",a.error?.message||"Failed to move file/directory");return u.NextResponse.json({success:!0,path:a.path})}default:return V("INVALID_REQUEST",'Unknown action. Supported: "rename", "move"')}}catch(a){return T.error("error-renaming-filedirectory:",{error:a instanceof Error?a.message:String(a)}),V("INTERNAL_ERROR","Failed to rename file/directory")}}let ag=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/files/[...path]/route",pathname:"/api/worktrees/[id]/files/[...path]",filename:"route",bundlePath:"app/api/worktrees/[id]/files/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/files/[...path]/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:ah,workUnitAsyncStorage:ai,serverHooks:aj}=ag;function ak(){return(0,g.patchFetch)({workAsyncStorage:ah,workUnitAsyncStorage:ai})}async function al(a,b,c){var d;let e="/api/worktrees/[id]/files/[...path]/route";"/index"===e&&(e="/");let g=await ag.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=g,D=(0,j.normalizeAppPath)(e),E=!!(y.dynamicRoutes[D]||y.routes[C]);if(E&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let F=null;!E||ag.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===ag.isDev||!E,H=E&&!G,I=a.method||"GET",J=(0,i.getTracer)(),K=J.getActiveScopeSpan(),L={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:G,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:H,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>ag.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},M=new k.NodeNextRequest(a),N=new k.NodeNextResponse(b),O=l.NextRequestAdapter.fromNodeNextRequest(M,(0,l.signalFromNodeResponse)(b));try{let d=async c=>ag.handle(O,L).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=J.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${I} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${I} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=L.renderOpts.fetchMetrics;let i=L.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=L.renderOpts.collectedTags;if(!E)return await (0,o.I)(M,N,e,L.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,d=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await ag.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await ag.handleResponse({req:a,nextConfig:w,cacheKey:F,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!E)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&E||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(M,N,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};K?await g(K):await J.withPropagatedContext(a.headers,()=>J.trace(m.BaseServerSpan.handleRequest,{spanName:`${I} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":I,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await ag.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})}),E)throw b;return await (0,o.I)(M,N,new Response(null,{status:500})),null}}},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91645:a=>{a.exports=require("net")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1331,641,3722,4390,9627,8807,406,5354,7506],()=>b(b.s=70178));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=960,a.ids=[960],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4984:a=>{a.exports=require("readline")},5007:(a,b,c)=>{c.d(b,{Sw:()=>g,nE:()=>e,of:()=>f});var d=c(10641);async function e(a){try{return{ok:!0,body:await a.json()}}catch{return{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}}}async function f(a){let b=await e(a);if(!b.ok)return b;let c=b.body;return"object"!=typeof c||null===c||Array.isArray(c)?{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}:{ok:!0,body:c}}async function g(a){let b;try{b=await a.json()}catch{return{ok:!0,body:{}}}return"object"!=typeof b||null===b||Array.isArray(b)?{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}:{ok:!0,body:b}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{a.exports=require("process")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70178:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>am,patchFetch:()=>al,routeModule:()=>ah,serverHooks:()=>ak,workAsyncStorage:()=>ai,workUnitAsyncStorage:()=>aj});var d={};c.r(d),c.d(d,{DELETE:()=>af,GET:()=>ab,HEAD:()=>ac,PATCH:()=>ag,POST:()=>ae,PUT:()=>ad});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(88807),w=c(56791),x=c(33873),y=c(66007),z=c(14842),A=c(30233),B=c(73462),C=c(39333);let D=[".mp4"],E=[{extension:".mp4",mimeType:"video/mp4",magicBytes:[102,116,121,112],magicBytesOffset:4}];function F(a){if(!a)return!1;let b=(0,C.HB)(a);return D.includes(b)}function G(a){if(!a)return;let b=(0,C.HB)(a),c=E.find(a=>a.extension===b);return c?.mimeType}function H(a,b){return b.length>0x6400000?{valid:!1,error:"File size exceeds 100MB limit",reason:"too-large"}:!function(a,b){let c=(0,C.HB)(a),d=E.find(a=>a.extension===c);if(!d?.magicBytes)return!1;let e=d.magicBytesOffset||0;return!(b.length<e+d.magicBytes.length)&&d.magicBytes.every((a,c)=>b[e+c]===a)}(a,b)?{valid:!1,error:"Invalid video magic bytes"}:{valid:!0}}var I=c(98125);let J=[".pdf"],K=[37,80,68,70,45],L="application/pdf";var M=c(79748),N=c(27910),O=c(72626);let P=/[\x00-\x1f\x7f]/g,Q=/[^\x20-\x7e]/g;function R(a){return(0,x.basename)(String(a).replace(/\\/g,"/")).replace(P,"")}var S=c(27289),T=c(5007);let U=(0,O.h)("api/files"),V={FILE_NOT_FOUND:404,WORKTREE_NOT_FOUND:404,PERMISSION_DENIED:403,NOT_EDITABLE:403,PROTECTED_DIRECTORY:403,INVALID_PATH:400,INVALID_REQUEST:400,INVALID_NAME:400,INVALID_CONTENT:400,DIRECTORY_NOT_EMPTY:400,DELETE_LIMIT_EXCEEDED:400,FILE_EXISTS:409,DISK_FULL:507,INTERNAL_ERROR:500,INVALID_EXTENSION:400,INVALID_MIME_TYPE:400,INVALID_MAGIC_BYTES:400,FILE_TOO_LARGE:413,INVALID_FILENAME:400,INVALID_FILE_CONTENT:400,MOVE_SAME_PATH:400,MOVE_INTO_SELF:400,PDF_SIZE_EXCEEDED:413,SENSITIVE_PATH:403};function W(a,b,c=500){let d=V[a]??c;return u.NextResponse.json({success:!1,error:{code:a,message:b}},{status:d})}function X(a){return`${(a/1024/1024).toFixed(1)}MB`}async function Y(a,b){let c=(0,v.getDbInstance)(),d=(0,w.getWorktreeById)(c,a);if(!d)return{error:W("WORKTREE_NOT_FOUND","Worktree not found")};let e=b.join("/"),f=(0,x.normalize)(e);return(0,y.B9)(f,d.path)?(0,y.Px)(f,d.path)?(0,z.Ew)(b)??(0,z.Ew)(f)?{error:W("SENSITIVE_PATH","This path is protected and cannot be accessed through the file API")}:{worktree:d,relativePath:f}:{error:W("INVALID_PATH","Invalid path")}:{error:W("INVALID_PATH","Invalid file path")}}function Z(a){return`File size exceeds ${a/1024/1024}MB limit`}function $(a){let b=a.error;return"too-large"===a.reason?W("FILE_TOO_LARGE",b??"File too large"):b?.includes("magic bytes")?W("INVALID_MAGIC_BYTES",b):W("INVALID_FILE_CONTENT",b||"Invalid image content")}function _(a){let b=a.error;return"too-large"===a.reason?W("FILE_TOO_LARGE",b??"File too large"):b?.includes("magic bytes")?W("INVALID_MAGIC_BYTES",b):W("INVALID_FILE_CONTENT",b||"Invalid video content")}async function aa(a,b,c){let d,e=F(c),f=(0,C.df)(c)&&".svg"!==c;if(!e&&!f)return W("INVALID_EXTENSION","raw=1 is only available for video and non-SVG image files");try{d=await (0,M.open)(b,"r")}catch(a){if("ENOENT"===a.code)return W("FILE_NOT_FOUND","File not found");throw a}let g=!1;try{let b=await d.stat();if(!b.isFile())return W("FILE_NOT_FOUND","File not found");let f=b.size,h=e?0x6400000:C.Fg;if(f>h){let a={error:Z(h),reason:"too-large"};return e?_(a):$(a)}let i=Buffer.alloc(Math.min(16,f));i.length>0&&await d.read(i,0,i.length,0);let j=e?H(c,i):(0,C.Bg)(c,i);if(!j.valid)return e?_(j):$(j);let k=e?G(c)||"video/mp4":(0,C.$Y)(c),l=new Headers({"Content-Type":k,"X-Content-Type-Options":"nosniff","Content-Disposition":"inline","Cache-Control":"no-store","Accept-Ranges":"bytes"}),m=function(a,b){if(!a)return null;let c=/^bytes=(\d*)-(\d*)$/.exec(a.trim());if(!c)return null;let[,d,e]=c;if(!d&&!e)return null;if(!d){let a=Number(e);return 0===a||0===b?"unsatisfiable":{start:Math.max(0,b-a),end:b-1}}let f=Number(d),g=e?Number(e):b-1;return e&&g<f?null:f>=b?"unsatisfiable":{start:f,end:Math.min(g,b-1)}}(a.headers.get("range"),f);if("unsatisfiable"===m)return l.set("Content-Range",`bytes */${f}`),new u.NextResponse(null,{status:416,headers:l});let{start:n,end:o}=m??{start:0,end:f-1};l.set("Content-Length",String(0===f?0:o-n+1)),m&&l.set("Content-Range",`bytes ${n}-${o}/${f}`);let p=d.createReadStream({start:n,end:o});g=!0;let q=N.Readable.toWeb(p);return new u.NextResponse(q,{status:m?206:200,headers:l})}finally{g||await d.close()}}async function ab(a,{params:b}){try{let c,{id:d,path:e}=await b,f=(0,S.z)(d),g=await Y(f,e);if("error"in g)return g.error;let{worktree:h,relativePath:i}=g,j=i.split(".").pop()||"",k=(0,x.extname)(i).toLowerCase();if("1"===a.nextUrl.searchParams.get("download")){let a=(0,x.join)(h.path,i);try{let b=await (0,M.readFile)(a);return new u.NextResponse(b,{headers:{"Content-Type":"application/octet-stream","Content-Disposition":function(a){var b;let c=R(a).replace(Q,"").replace(/["\\]/g,"_").trim()||"download",d=(b=a,encodeURIComponent(R(b).trim()).replace(/['()*]/g,a=>"%"+a.charCodeAt(0).toString(16).toUpperCase())||"download");return`attachment; filename="${c}"; filename*=UTF-8''${d}`}(i),"Cache-Control":"no-store, private"}})}catch(a){if("ENOENT"===a.code)return W("FILE_NOT_FOUND","File not found");throw a}}if("1"===a.nextUrl.searchParams.get("raw"))return aa(a,(0,x.join)(h.path,i),k);if((0,C.df)(k)){let a=(0,x.join)(h.path,i);try{let b=await (0,M.readFile)(a),c=(0,C.Bg)(k,b);if(!c.valid)return $(c);let d=(0,C.$Y)(k),e=b.toString("base64"),f=`data:${d};base64,${e}`;return u.NextResponse.json({success:!0,path:i,content:f,extension:j,worktreePath:h.path,isImage:!0,mimeType:d})}catch(a){if("ENOENT"===a.code)return W("FILE_NOT_FOUND","File not found");throw a}}if(F(k)){let a=(0,x.join)(h.path,i);try{if((await (0,M.stat)(a)).size>0x6400000)return W("FILE_TOO_LARGE",Z(0x6400000));let b=await (0,M.readFile)(a),c=H(k,b);if(!c.valid)return _(c);let d=G(k)||"video/mp4",e=b.toString("base64"),f=`data:${d};base64,${e}`;return u.NextResponse.json({success:!0,path:i,content:f,extension:j,worktreePath:h.path,isVideo:!0,mimeType:d})}catch(a){if("ENOENT"===a.code)return W("FILE_NOT_FOUND","File not found");throw a}}if(function(a){if(!a)return!1;let b=(0,C.HB)(a);return J.includes(b)}(k)){let a=(0,x.join)(h.path,i);try{let b=await (0,M.readFile)(a),c=function(a){return a.length>0x1400000?{valid:!1,error:"File size exceeds 20MB limit"}:!(a.length<K.length)&&K.every((b,c)=>a[c]===b)?{valid:!0}:{valid:!1,error:"Invalid PDF magic bytes"}}(b);if(!c.valid){if(c.error?.includes("MB"))return W("PDF_SIZE_EXCEEDED",c.error);return W("INVALID_MAGIC_BYTES",c.error||"Invalid PDF magic bytes")}let d=b.toString("base64"),e=`data:${L};base64,${d}`;return u.NextResponse.json({success:!0,path:i,content:e,extension:j,worktreePath:h.path,isPdf:!0,mimeType:L})}catch(a){if("ENOENT"===a.code)return W("FILE_NOT_FOUND","File not found");throw a}}let l=(0,x.join)(h.path,i);try{c=await (0,M.stat)(l)}catch(a){if("ENOENT"===a.code)return W("FILE_NOT_FOUND","File not found");throw a}let m=function(a,b){let c=(0,I.lk)(a)?I.j6:(0,B.Ol)(a)?B.Nu:null;return null===c||b<=c?null:{code:"FILE_TOO_LARGE",message:`Opened read-only: this file is ${X(b)}, over the ${X(c)} limit for editing. You can view it but not save changes.`,limitBytes:c,sizeBytes:b}}(k,c.size),n=m?{readOnly:!0,readOnlyReason:m}:{},{searchParams:o}=new URL(a.url),p=function(a){let b=a.get("startLine"),c=a.get("endLine");if(null===b&&null===c)return{mode:"full"};let d=Number(b),e=Number(c);return Number.isFinite(d)&&Number.isFinite(e)?{mode:"range",startLine:d,endLine:e}:{mode:"invalid"}}(o);if("invalid"===p.mode)return W("INVALID_REQUEST","startLine and endLine must be numeric");if("range"===p.mode){let a=await (0,A.QS)(h.path,i,p.startLine,p.endLine);if(!a.success)return W(a.error?.code||"INTERNAL_ERROR",a.error?.message||"Failed to read file range");return u.NextResponse.json({success:!0,path:i,content:a.content,extension:j,worktreePath:h.path,totalLines:a.totalLines,totalBytes:a.totalBytes,encoding:a.encoding,range:a.range,...n})}let q=c.mtime.toUTCString(),r=a.headers.get("If-Modified-Since");if(r){let a=new Date(r);if(!isNaN(a.getTime())&&c.mtime<=a)return new Response(null,{status:304,headers:{"Last-Modified":q,"Cache-Control":"no-store, private"}})}let s=await (0,A.AJ)(h.path,i);if(!s.success)return W(s.error?.code||"INTERNAL_ERROR",s.error?.message||"Failed to read file");let t=(0,I.lk)(k);return u.NextResponse.json({success:!0,path:i,content:s.content,extension:j,worktreePath:h.path,...t&&{isHtml:!0},totalBytes:c.size,...n},{headers:{"Last-Modified":q,"Cache-Control":"no-store, private"}})}catch(a){return U.error("error-reading-file:",{error:a instanceof Error?a.message:String(a)}),W("INTERNAL_ERROR","Failed to read file")}}async function ac(a,{params:b}){try{let{id:a,path:c}=await b,d=(0,S.z)(a),e=await Y(d,c);if("error"in e)return new u.NextResponse(null,{status:e.error.status});let{worktree:f,relativePath:g}=e;try{if(!(await (0,M.stat)((0,x.join)(f.path,g))).isFile())return new u.NextResponse(null,{status:404});return new u.NextResponse(null,{status:200,headers:{"Cache-Control":"no-store, private"}})}catch(b){let a=b.code;if("ENOENT"===a||"ENOTDIR"===a||"ENAMETOOLONG"===a)return new u.NextResponse(null,{status:404});throw b}}catch(a){return U.error("error-probing-file:",{error:a instanceof Error?a.message:String(a)}),new u.NextResponse(null,{status:500})}}async function ad(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await Y(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f;if(!(0,A.Du)(h))return W("NOT_EDITABLE","File type is not editable");let i=await (0,T.of)(a);if(!i.ok)return W("INVALID_REQUEST","Invalid request body");let{content:j}=i.body;if(void 0===j)return W("INVALID_REQUEST","Content is required");let k=(0,x.extname)(h).toLowerCase(),l=(0,B.mS)(k,j);if(!l.valid)return W("INVALID_CONTENT",l.error||"Invalid content");let m=await (0,A.ng)(g.path,h,j);if(!m.success)return W(m.error?.code||"INTERNAL_ERROR",m.error?.message||"Failed to update file");return u.NextResponse.json({success:!0,path:h})}catch(a){return U.error("error-updating-file:",{error:a instanceof Error?a.message:String(a)}),W("INTERNAL_ERROR","Failed to update file")}}async function ae(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await Y(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f,i=await (0,T.of)(a);if(!i.ok)return W("INVALID_REQUEST","Invalid request body");let{type:j,content:k}=i.body;if(!j||!["file","directory"].includes(j))return W("INVALID_REQUEST",'Type must be "file" or "directory"');if("file"===j&&void 0!==k){let a=(0,x.extname)(h).toLowerCase();if((0,B.Ol)(a)){let b=(0,B.mS)(a,k);if(!b.valid)return W("INVALID_CONTENT",b.error||"Invalid content")}}let l=await (0,A.N_)(g.path,h,j,k);if(!l.success)return W(l.error?.code||"INTERNAL_ERROR",l.error?.message||"Failed to create file/directory");return u.NextResponse.json({success:!0,path:h},{status:201})}catch(a){return U.error("error-creating-filedirectory:",{error:a instanceof Error?a.message:String(a)}),W("INTERNAL_ERROR","Failed to create file/directory")}}async function af(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await Y(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f,{searchParams:i}=new URL(a.url),j="true"===i.get("recursive"),k=await (0,A.Ky)(g.path,h,j);if(!k.success)return W(k.error?.code||"INTERNAL_ERROR",k.error?.message||"Failed to delete file/directory");return u.NextResponse.json({success:!0})}catch(a){return U.error("error-deleting-filedirectory:",{error:a instanceof Error?a.message:String(a)}),W("INTERNAL_ERROR","Failed to delete file/directory")}}async function ag(a,{params:b}){try{let{id:c,path:d}=await b,e=(0,S.z)(c),f=await Y(e,d);if("error"in f)return f.error;let{worktree:g,relativePath:h}=f,i=await (0,T.of)(a);if(!i.ok)return W("INVALID_REQUEST","Invalid request body");let{action:j,newName:k,destination:l}=i.body;switch(j){case"rename":{if(!k||"string"!=typeof k)return W("INVALID_REQUEST","newName is required");if((0,z.Ew)([k]))return W("SENSITIVE_PATH","This path is protected and cannot be accessed through the file API");let a=await (0,A.FH)(g.path,h,k);if(!a.success)return W(a.error?.code||"INTERNAL_ERROR",a.error?.message||"Failed to rename file/directory");return u.NextResponse.json({success:!0,path:a.path})}case"move":{if(!l||"string"!=typeof l)return W("INVALID_REQUEST","destination is required and must be a string");if((0,z.Ew)(l))return W("SENSITIVE_PATH","This path is protected and cannot be accessed through the file API");let a=await (0,A.Gl)(g.path,h,l);if(!a.success)return W(a.error?.code||"INTERNAL_ERROR",a.error?.message||"Failed to move file/directory");return u.NextResponse.json({success:!0,path:a.path})}default:return W("INVALID_REQUEST",'Unknown action. Supported: "rename", "move"')}}catch(a){return U.error("error-renaming-filedirectory:",{error:a instanceof Error?a.message:String(a)}),W("INTERNAL_ERROR","Failed to rename file/directory")}}let ah=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/files/[...path]/route",pathname:"/api/worktrees/[id]/files/[...path]",filename:"route",bundlePath:"app/api/worktrees/[id]/files/[...path]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/files/[...path]/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:ai,workUnitAsyncStorage:aj,serverHooks:ak}=ah;function al(){return(0,g.patchFetch)({workAsyncStorage:ai,workUnitAsyncStorage:aj})}async function am(a,b,c){var d;let e="/api/worktrees/[id]/files/[...path]/route";"/index"===e&&(e="/");let g=await ah.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,resolvedPathname:C}=g,D=(0,j.normalizeAppPath)(e),E=!!(y.dynamicRoutes[D]||y.routes[C]);if(E&&!x){let a=!!y.routes[C],b=y.dynamicRoutes[D];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let F=null;!E||ah.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===ah.isDev||!E,H=E&&!G,I=a.method||"GET",J=(0,i.getTracer)(),K=J.getActiveScopeSpan(),L={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:G,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:H,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>ah.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},M=new k.NodeNextRequest(a),N=new k.NodeNextResponse(b),O=l.NextRequestAdapter.fromNodeNextRequest(M,(0,l.signalFromNodeResponse)(b));try{let d=async c=>ah.handle(O,L).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=J.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${I} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${I} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&A&&B&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=L.renderOpts.fetchMetrics;let i=L.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=L.renderOpts.collectedTags;if(!E)return await (0,o.I)(M,N,e,L.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==L.renderOpts.collectedRevalidate&&!(L.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&L.renderOpts.collectedRevalidate,d=void 0===L.renderOpts.collectedExpire||L.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:L.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await ah.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await ah.handleResponse({req:a,nextConfig:w,cacheKey:F,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:A,revalidateOnlyGenerated:B,responseGenerator:k,waitUntil:c.waitUntil});if(!E)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",A?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&E||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(M,N,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};K?await g(K):await J.withPropagatedContext(a.headers,()=>J.trace(m.BaseServerSpan.handleRequest,{spanName:`${I} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":I,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await ah.onRequestError(a,b,{routerKind:"App Router",routePath:D,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})}),E)throw b;return await (0,o.I)(M,N,new Response(null,{status:500})),null}}},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91645:a=>{a.exports=require("net")}};var b=require("../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1331,641,3722,4390,9627,8807,406,5354,7506],()=>b(b.s=70178));module.exports=c})();
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/worktrees/[id]/files/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"3809":{"*":{"id":"37397","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"55524","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"3890","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"67266","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"96908","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"39800","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"28393","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"90039","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"26636","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"21350","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"50302","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"31017","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"91042","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"3425","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"46368","name":"*","chunks":[],"async":false}},"94179":{"*":{"id":"45970","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"88710","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/global-error.tsx":{"id":54062,"name":"*","chunks":["2407","static/chunks/2407-051f6f84226a9f2c.js","4219","static/chunks/app/global-error-49f765ecb7fd6527.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/sans.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-sans/Geist-Variable.woff2\",\"variable\":\"--font-geist-sans\",\"weight\":\"100 900\"}],\"variableName\":\"GeistSans\"}":{"id":22311,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/mono.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-mono/GeistMono-Variable.woff2\",\"variable\":\"--font-geist-mono\",\"adjustFontFallback\":false,\"fallback\":[\"ui-monospace\",\"SFMono-Regular\",\"Roboto Mono\",\"Menlo\",\"Monaco\",\"Liberation Mono\",\"DejaVu Sans Mono\",\"Courier New\",\"monospace\"],\"weight\":\"100 900\"}],\"variableName\":\"GeistMono\"}":{"id":7183,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/globals.css":{"id":13673,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/layout/AppShellGate.tsx":{"id":62295,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":23252,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/error.tsx":{"id":50960,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","2407","static/chunks/2407-051f6f84226a9f2c.js","8039","static/chunks/app/error-d9a7067074e7f460.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js":{"id":3809,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4209","static/chunks/app/loading-db675c84e696591f.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/login/page.tsx":{"id":70462,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/more/page.tsx":{"id":57101,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/pwa/OfflineReconnectButton.tsx":{"id":33258,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/page.tsx":{"id":89957,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-1b820c421db48c2c.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/repositories/page.tsx":{"id":24502,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/review/page.tsx":{"id":17442,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/sessions/page.tsx":{"id":89569,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/[skillId]/page.tsx":{"id":89675,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/installed/page.tsx":{"id":72754,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/page.tsx":{"id":99898,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/page.tsx":{"id":94179,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/files/[...path]/page.tsx":{"id":82743,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/terminal/page.tsx":{"id":88201,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/runner/work/CommandMate/CommandMate/src/":[],"/home/runner/work/CommandMate/CommandMate/src/app/global-error":[],"/home/runner/work/CommandMate/CommandMate/src/app/layout":[{"inlined":false,"path":"static/css/531c1fcb1e69d47b.css"},{"inlined":false,"path":"static/css/38070d879efa1371.css"}],"/home/runner/work/CommandMate/CommandMate/src/app/error":[],"/home/runner/work/CommandMate/CommandMate/src/app/loading":[],"/home/runner/work/CommandMate/CommandMate/src/app/page":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/files/[...path]/route":[]},"rscModuleMapping":{"3809":{"*":{"id":"53523","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"13673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"96494","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"58315","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"66164","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"5682","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"64182","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"12319","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"29966","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"15109","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"81021","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"69624","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"21853","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"35731","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"1133","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"60967","name":"*","chunks":[],"async":false}},"94179":{"*":{"id":"7874","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"74080","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/worktrees/[id]/files/[...path]/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"3809":{"*":{"id":"37397","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"55524","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"3890","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"67266","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"96908","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"39800","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"28393","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"90039","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"26636","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"21350","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"50302","name":"*","chunks":[],"async":false}},"84237":{"*":{"id":"53648","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"31017","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"91042","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"3425","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"46368","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"88710","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/global-error.tsx":{"id":54062,"name":"*","chunks":["2407","static/chunks/2407-06d35bb1aa02de80.js","4219","static/chunks/app/global-error-49f765ecb7fd6527.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/sans.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-sans/Geist-Variable.woff2\",\"variable\":\"--font-geist-sans\",\"weight\":\"100 900\"}],\"variableName\":\"GeistSans\"}":{"id":22311,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/mono.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-mono/GeistMono-Variable.woff2\",\"variable\":\"--font-geist-mono\",\"adjustFontFallback\":false,\"fallback\":[\"ui-monospace\",\"SFMono-Regular\",\"Roboto Mono\",\"Menlo\",\"Monaco\",\"Liberation Mono\",\"DejaVu Sans Mono\",\"Courier New\",\"monospace\"],\"weight\":\"100 900\"}],\"variableName\":\"GeistMono\"}":{"id":7183,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/globals.css":{"id":13673,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/layout/AppShellGate.tsx":{"id":62295,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":23252,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/error.tsx":{"id":50960,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","2407","static/chunks/2407-06d35bb1aa02de80.js","8039","static/chunks/app/error-d9a7067074e7f460.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js":{"id":3809,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4209","static/chunks/app/loading-db675c84e696591f.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/login/page.tsx":{"id":70462,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/more/page.tsx":{"id":57101,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/pwa/OfflineReconnectButton.tsx":{"id":33258,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/page.tsx":{"id":89957,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-1b820c421db48c2c.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/review/page.tsx":{"id":17442,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/repositories/page.tsx":{"id":24502,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/[skillId]/page.tsx":{"id":89675,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/sessions/page.tsx":{"id":89569,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/installed/page.tsx":{"id":72754,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/page.tsx":{"id":99898,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/files/[...path]/page.tsx":{"id":82743,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/terminal/page.tsx":{"id":88201,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/page.tsx":{"id":84237,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/runner/work/CommandMate/CommandMate/src/":[],"/home/runner/work/CommandMate/CommandMate/src/app/global-error":[],"/home/runner/work/CommandMate/CommandMate/src/app/layout":[{"inlined":false,"path":"static/css/531c1fcb1e69d47b.css"},{"inlined":false,"path":"static/css/057f64a65726c439.css"}],"/home/runner/work/CommandMate/CommandMate/src/app/error":[],"/home/runner/work/CommandMate/CommandMate/src/app/loading":[],"/home/runner/work/CommandMate/CommandMate/src/app/page":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/files/[...path]/route":[]},"rscModuleMapping":{"3809":{"*":{"id":"53523","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"13673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"96494","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"58315","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"66164","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"5682","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"64182","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"12319","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"29966","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"15109","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"81021","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"69624","name":"*","chunks":[],"async":false}},"84237":{"*":{"id":"7874","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"21853","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"35731","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"1133","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"60967","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"74080","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=3969,a.ids=[3969],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3447:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(79051),w=c(97399),x=c(27289);async function y(a,{params:b}){try{let c,{id:d}=await b,e=(0,x.z)(d),f=(0,x.t)(e);if(f instanceof u.NextResponse)return f;let{name:g,from:h}=await a.json().catch(()=>({})),i=(0,w.I6)(g);if(i instanceof u.NextResponse)return i;if(void 0!==h){let a=(0,w.I6)(h);if(a instanceof u.NextResponse)return a;c=a}return await (0,v.lY)(f.path,{name:i,from:c}),u.NextResponse.json({success:!0,branch:{name:i,isCurrent:!1,isRemote:!1,isDefault:!1,upstream:null,aheadBehind:null,checkedOutWorktreePath:null}},{status:200})}catch(a){return(0,v.x7)(a,"POST /api/worktrees/:id/git/branch/create")}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/git/branch/create/route",pathname:"/api/worktrees/[id]/git/branch/create",filename:"route",bundlePath:"app/api/worktrees/[id]/git/branch/create/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/git/branch/create/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/worktrees/[id]/git/branch/create/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{a.exports=require("process")},21820:a=>{a.exports=require("os")},27289:(a,b,c)=>{c.d(b,{t:()=>j,z:()=>i});var d=c(10641),e=c(88807),f=c(56791),g=c(95506),h=c(66007);function i(a){if(!a)return a;try{if(!(0,h.h6)(a))return a;let b=(0,e.getDbInstance)();return(0,g.l0)(b,a)??a}catch{return a}}function j(a){if(!(0,h.h6)(a))return d.NextResponse.json({error:"Invalid worktree ID format"},{status:400});let b=(0,e.getDbInstance)(),c=(0,f.getWorktreeById)(b,i(a));return c||d.NextResponse.json({error:"Worktree not found"},{status:404})}},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},56791:(a,b,c)=>{c.r(b),c.d(b,{ACTIVE_FILTER:()=>d.ks,ACTIVE_TASK_STATUSES:()=>d.EL,AgentInstanceLimitError:()=>d.AC,CURRENT_SCHEMA_VERSION:()=>f.FT,DEFAULT_RUN_HISTORY_LIMIT:()=>d.Tu,InvalidAgentInstanceError:()=>d.ug,MAX_DISABLED_REPOSITORIES:()=>h.nc,MAX_RUN_HISTORY_DAYS:()=>d.eP,MAX_RUN_HISTORY_LIMIT:()=>d.mg,MemoDbError:()=>d.lm,NEW_SUBSCRIPTION_DEFAULTS:()=>d.s6,PUSH_DEFAULTS_VERSION:()=>d.VP,RepositoryDbError:()=>h.j8,TASK_STATUSES:()=>d.Hi,TERMINAL_TASK_STATUSES:()=>d.sA,VERIFICATION_GATE_SOURCES:()=>d.Dx,VERIFICATION_TRIGGERS:()=>d.af,WORKTREE_TODO_STATUSES:()=>d.KG,addAgentInstance:()=>d.Uq,cancelTimer:()=>d.Ud,cancelTimersByWorktree:()=>d.$$,cleanupOldTimers:()=>d.ul,clearInProgressMessageId:()=>d.YX,clearLastUserMessage:()=>d.cf,clearTimerHistory:()=>d.jf,closeDbInstance:()=>e.closeDbInstance,countAgentInstances:()=>d.fs,countDisabledRepositories:()=>h.QJ,countPushSubscriptionsForKind:()=>d.rC,countWorktreesByRepositoryPath:()=>h.kp,createCloneJob:()=>h.tw,createGateResult:()=>d.hl,createMemo:()=>d.To,createMessage:()=>d.oH,createRepository:()=>h.vB,createTask:()=>d.UT,createTimer:()=>d.CR,createVerificationRun:()=>d.rY,createWorktreeTodo:()=>d.yy,deleteAllMessages:()=>d.pE,deleteMemo:()=>d.cP,deleteMessageById:()=>d.DF,deleteMessagesByCliTool:()=>d.lA,deleteMessagesByInstance:()=>d.Qp,deletePushSubscriptionByEndpoint:()=>d.th,deleteRepository:()=>h.oG,deleteRepositoryWorktrees:()=>d.oZ,deleteSessionState:()=>d.ZP,deleteWorktreeTodo:()=>d.vg,deleteWorktreesByIds:()=>d.Rm,disableExistingRepository:()=>h.eP,disableRepository:()=>h.l$,ensureEnvRepositoriesRegistered:()=>h.ES,filterExcludedPaths:()=>h.Ho,findMessageByRequestId:()=>d.Ow,finishGateResult:()=>d.C8,finishVerificationRun:()=>d.u$,getActiveCloneJobByUrl:()=>h.fD,getActiveTask:()=>d.__,getActiveTaskForInstance:()=>d.MH,getAgentInstance:()=>d.BN,getAgentInstances:()=>d.m0,getAliasedWorktreeIds:()=>d.r3,getAllPushSubscriptions:()=>d.Se,getAllRepositories:()=>h.Yg,getAllRepositoriesWithWorktreeCount:()=>h._D,getAllWorktreeAliases:()=>d.fX,getAllWorktreeIds:()=>d.nO,getAllWorktreePathIds:()=>d.Sj,getCloneJob:()=>h.bM,getCloneJobsByStatus:()=>h.n_,getCurrentVersion:()=>f.Mj,getDailyReport:()=>d.ap,getDbInstance:()=>e.getDbInstance,getDefaultDbPath:()=>g.$b,getExcludedRepositories:()=>h.lS,getExcludedRepositoryPaths:()=>h.pr,getInitialBranch:()=>d.p4,getIssueDbPath:()=>g.zm,getLastAssistantMessageAt:()=>d.nP,getLastMessage:()=>d.sy,getLastUserMessage:()=>d.r8,getLegacyDbPaths:()=>q,getMemoById:()=>d.DN,getMemosByWorktreeId:()=>d.pZ,getMessageById:()=>d.kA,getMessages:()=>d.VL,getMessagesByDateRange:()=>d.lr,getMigrationHistory:()=>f.PS,getPendingTimerCountByWorktree:()=>d.GF,getPendingTimers:()=>d._O,getPushSubscriptionByEndpoint:()=>d.CF,getPushSubscriptionsForKind:()=>d.gn,getRepositories:()=>d.NV,getRepositoryById:()=>h.r,getRepositoryByNormalizedUrl:()=>h.Uj,getRepositoryByPath:()=>h.Dp,getRunningVerificationRun:()=>d.WZ,getSessionState:()=>d.y1,getTask:()=>d.gg,getTimerById:()=>d.kx,getTimersByWorktree:()=>d.DP,getTodosByWorktreeId:()=>d.fr,getVerificationRun:()=>d.J6,getWorktreeAliases:()=>d.Q2,getWorktreeById:()=>d.Ui,getWorktreeIdsByRepository:()=>d.P9,getWorktreeTodoById:()=>d.eN,getWorktrees:()=>d.vi,getWorktreesByRepository:()=>d.uJ,initDatabase:()=>d.s4,isTerminalTaskStatus:()=>d.uB,isWorktreeTodoStatus:()=>d.yT,listRunningVerificationRuns:()=>d.Fi,listTaskEvents:()=>d.HB,listTasks:()=>d.Vk,listVerificationRuns:()=>d.Mt,listVerificationRunsForPeriod:()=>d.UE,markPendingPromptsAsAnswered:()=>d.PL,migrateDbIfNeeded:()=>r,migrateWorktreeIdPreservingChildren:()=>d._h,pushSubscriptionNeedsDefaultsNotice:()=>d.Zj,recomputeLastUserMessage:()=>d.jp,recordAnsweredPrompt:()=>d.pG,recordWorktreeAlias:()=>d.xJ,recoverStuckSendingTimers:()=>d.Xm,registerAndFilterRepositories:()=>h.$G,removeAgentInstance:()=>d.NU,reorderMemos:()=>d.nQ,reorderWorktreeTodos:()=>d.yb,resolveAndValidatePath:()=>p,resolveRepositoryPath:()=>h.mE,resolveWorktreeIdWithAlias:()=>d.l0,restoreRepository:()=>h.RS,rollbackMigrations:()=>f.Wy,runMigrations:()=>f.vI,saveDailyReport:()=>d.tt,saveInitialBranch:()=>d.GA,setAgentInstances:()=>d.Cs,setInProgressMessageId:()=>d.OF,setRepositoryEnabled:()=>h.iQ,updateCliToolId:()=>d.WU,updateCloneJob:()=>h.k5,updateDailyReportContent:()=>d.IF,updateFavorite:()=>d.O,updateLastUserMessage:()=>d.EU,updateLastViewedAt:()=>d.HZ,updateMemo:()=>d.UY,updateMessageContent:()=>d.e8,updatePromptData:()=>d.cw,updatePushSubscriptionPreferences:()=>d.jJ,updateRepository:()=>h.Ir,updateSelectedAgents:()=>d.DC,updateSessionState:()=>d.PP,updateStatus:()=>d.yB,updateTimerStatus:()=>d.j2,updateVibeLocalContextWindow:()=>d.s,updateVibeLocalModel:()=>d.iu,updateWorktreeDescription:()=>d.hq,updateWorktreeLink:()=>d.z1,updateWorktreeTodo:()=>d.bl,upsertPushSubscription:()=>d.jA,upsertWorktree:()=>d.ZL,validateDbPath:()=>g.Sv,validateRepositoryPath:()=>h.Ux,validateSchema:()=>f.i6});var d=c(683),e=c(88807),f=c(67469),g=c(20416),h=c(10406),i=c(29021),j=c.n(i),k=c(33873),l=c.n(k),m=c(21820),n=c(7956);let o=(0,c(72626).h)("db-migration-path");function p(a,b){try{if(!j().existsSync(a))return null;let c=j().realpathSync(a);if((0,n.fW)(c))return o.warn(`[Security] ${b} points to system directory, skipping: ${c}`),null;return c}catch{return o.warn(`[Security] Failed to resolve ${b}: ${a}`),null}}function q(){let a=[];a.push(l().join(process.cwd(),"data","db.sqlite")),a.push(l().join(process.cwd(),"data","cm.db")),a.push(l().join((0,m.homedir)(),".commandmate","data","db.sqlite"));let b=process.env.DATABASE_PATH;if(b)try{let c=l().resolve(b);(0,n.fW)(c)?o.warn(`[Security] Skipping DATABASE_PATH in system directory: ${c}`):a.push(b)}catch{o.warn(`[Security] Invalid DATABASE_PATH: ${b}`)}return a}function r(a){let b=l().resolve(a);if((0,n.fW)(b))throw Error(`Security error: Target path cannot be in system directory: ${b}`);if(j().existsSync(a)){let b=p(a,"target path");if(b)return{migrated:!1,targetPath:b}}for(let a of q()){let c=p(a,"legacy path");if(!c)continue;let d=`${c}.bak`;j().copyFileSync(c,d),j().chmodSync(d,384);let e=l().dirname(b);return j().existsSync(e)||j().mkdirSync(e,{recursive:!0,mode:448}),j().copyFileSync(c,b),o.info(`[Migration] Database migrated from ${c} to ${b}`),o.info(`[Migration] Backup created at ${d}`),{migrated:!0,sourcePath:c,targetPath:b,backupPath:d}}return{migrated:!1,targetPath:b}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91645:a=>{a.exports=require("net")},97399:(a,b,c)=>{c.d(b,{I6:()=>i,Sr:()=>g,eA:()=>k});var d=c(10641),e=c(66007),f=c(65417);function g(a,b){if(!Array.isArray(a)||0===a.length)return d.NextResponse.json({error:"files must be a non-empty array"},{status:400});if(a.length>f.Mo)return d.NextResponse.json({error:`files exceeds the maximum of ${f.Mo}`},{status:400});for(let c of a){if("string"!=typeof c||0===c.length)return d.NextResponse.json({error:"files must contain only non-empty strings"},{status:400});if(!(0,e.B9)(c,b))return d.NextResponse.json({error:"Invalid file path"},{status:400})}return a}let h=/[\x00-\x20\x7F~^:?*[\\]/;function i(a){return"string"!=typeof a||0===a.length||a.length>255||a.startsWith("-")||a.startsWith("/")||a.endsWith("/")||a.includes("//")||a.includes("..")||a.startsWith(".")||a.endsWith(".")||a.endsWith(".lock")||a.includes("@{")||h.test(a)?d.NextResponse.json({error:"Invalid branch name",reason:"invalid_branch_name"},{status:400}):a}let j=/^\d+$/;function k(a){let b,c=()=>d.NextResponse.json({error:"Invalid stash index",reason:"invalid_stash_index"},{status:400});if("number"==typeof a){if(!Number.isInteger(a))return c();b=a}else{if("string"!=typeof a||!j.test(a))return c();b=parseInt(a,10)}return b<0||b>f.Kq?c():b}}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1331,641,3722,4390,9627,8807,406,6065,1944,9051],()=>b(b.s=3447));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=3969,a.ids=[3969],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3447:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(79051),w=c(97399),x=c(27289),y=c(5007);async function z(a,{params:b}){try{let c,{id:d}=await b,e=(0,x.z)(d),f=(0,x.t)(e);if(f instanceof u.NextResponse)return f;let g=await (0,y.Sw)(a);if(!g.ok)return g.response;let{name:h,from:i}=g.body,j=(0,w.I6)(h);if(j instanceof u.NextResponse)return j;if(void 0!==i){let a=(0,w.I6)(i);if(a instanceof u.NextResponse)return a;c=a}return await (0,v.lY)(f.path,{name:j,from:c}),u.NextResponse.json({success:!0,branch:{name:j,isCurrent:!1,isRemote:!1,isDefault:!1,upstream:null,aheadBehind:null,checkedOutWorktreePath:null}},{status:200})}catch(a){return(0,v.x7)(a,"POST /api/worktrees/:id/git/branch/create")}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/git/branch/create/route",pathname:"/api/worktrees/[id]/git/branch/create",filename:"route",bundlePath:"app/api/worktrees/[id]/git/branch/create/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/git/branch/create/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/worktrees/[id]/git/branch/create/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},5007:(a,b,c)=>{c.d(b,{Sw:()=>g,nE:()=>e,of:()=>f});var d=c(10641);async function e(a){try{return{ok:!0,body:await a.json()}}catch{return{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}}}async function f(a){let b=await e(a);if(!b.ok)return b;let c=b.body;return"object"!=typeof c||null===c||Array.isArray(c)?{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}:{ok:!0,body:c}}async function g(a){let b;try{b=await a.json()}catch{return{ok:!0,body:{}}}return"object"!=typeof b||null===b||Array.isArray(b)?{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}:{ok:!0,body:b}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{a.exports=require("process")},21820:a=>{a.exports=require("os")},27289:(a,b,c)=>{c.d(b,{t:()=>j,z:()=>i});var d=c(10641),e=c(88807),f=c(56791),g=c(95506),h=c(66007);function i(a){if(!a)return a;try{if(!(0,h.h6)(a))return a;let b=(0,e.getDbInstance)();return(0,g.l0)(b,a)??a}catch{return a}}function j(a){if(!(0,h.h6)(a))return d.NextResponse.json({error:"Invalid worktree ID format"},{status:400});let b=(0,e.getDbInstance)(),c=(0,f.getWorktreeById)(b,i(a));return c||d.NextResponse.json({error:"Worktree not found"},{status:404})}},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},56791:(a,b,c)=>{c.r(b),c.d(b,{ACTIVE_FILTER:()=>d.ks,ACTIVE_TASK_STATUSES:()=>d.EL,AgentInstanceLimitError:()=>d.AC,CURRENT_SCHEMA_VERSION:()=>f.FT,DEFAULT_RUN_HISTORY_LIMIT:()=>d.Tu,InvalidAgentInstanceError:()=>d.ug,MAX_DISABLED_REPOSITORIES:()=>h.nc,MAX_RUN_HISTORY_DAYS:()=>d.eP,MAX_RUN_HISTORY_LIMIT:()=>d.mg,MemoDbError:()=>d.lm,NEW_SUBSCRIPTION_DEFAULTS:()=>d.s6,PUSH_DEFAULTS_VERSION:()=>d.VP,RepositoryDbError:()=>h.j8,TASK_STATUSES:()=>d.Hi,TERMINAL_TASK_STATUSES:()=>d.sA,VERIFICATION_GATE_SOURCES:()=>d.Dx,VERIFICATION_TRIGGERS:()=>d.af,WORKTREE_TODO_STATUSES:()=>d.KG,addAgentInstance:()=>d.Uq,cancelTimer:()=>d.Ud,cancelTimersByWorktree:()=>d.$$,cleanupOldTimers:()=>d.ul,clearInProgressMessageId:()=>d.YX,clearLastUserMessage:()=>d.cf,clearTimerHistory:()=>d.jf,closeDbInstance:()=>e.closeDbInstance,countAgentInstances:()=>d.fs,countDisabledRepositories:()=>h.QJ,countPushSubscriptionsForKind:()=>d.rC,countWorktreesByRepositoryPath:()=>h.kp,createCloneJob:()=>h.tw,createGateResult:()=>d.hl,createMemo:()=>d.To,createMessage:()=>d.oH,createRepository:()=>h.vB,createTask:()=>d.UT,createTimer:()=>d.CR,createVerificationRun:()=>d.rY,createWorktreeTodo:()=>d.yy,deleteAllMessages:()=>d.pE,deleteMemo:()=>d.cP,deleteMessageById:()=>d.DF,deleteMessagesByCliTool:()=>d.lA,deleteMessagesByInstance:()=>d.Qp,deletePushSubscriptionByEndpoint:()=>d.th,deleteRepository:()=>h.oG,deleteRepositoryWorktrees:()=>d.oZ,deleteSessionState:()=>d.ZP,deleteWorktreeTodo:()=>d.vg,deleteWorktreesByIds:()=>d.Rm,disableExistingRepository:()=>h.eP,disableRepository:()=>h.l$,ensureEnvRepositoriesRegistered:()=>h.ES,filterExcludedPaths:()=>h.Ho,findMessageByRequestId:()=>d.Ow,finishGateResult:()=>d.C8,finishVerificationRun:()=>d.u$,getActiveCloneJobByUrl:()=>h.fD,getActiveTask:()=>d.__,getActiveTaskForInstance:()=>d.MH,getAgentInstance:()=>d.BN,getAgentInstances:()=>d.m0,getAliasedWorktreeIds:()=>d.r3,getAllPushSubscriptions:()=>d.Se,getAllRepositories:()=>h.Yg,getAllRepositoriesWithWorktreeCount:()=>h._D,getAllWorktreeAliases:()=>d.fX,getAllWorktreeIds:()=>d.nO,getAllWorktreePathIds:()=>d.Sj,getCloneJob:()=>h.bM,getCloneJobsByStatus:()=>h.n_,getCurrentVersion:()=>f.Mj,getDailyReport:()=>d.ap,getDbInstance:()=>e.getDbInstance,getDefaultDbPath:()=>g.$b,getExcludedRepositories:()=>h.lS,getExcludedRepositoryPaths:()=>h.pr,getInitialBranch:()=>d.p4,getIssueDbPath:()=>g.zm,getLastAssistantMessageAt:()=>d.nP,getLastMessage:()=>d.sy,getLastUserMessage:()=>d.r8,getLegacyDbPaths:()=>q,getMemoById:()=>d.DN,getMemosByWorktreeId:()=>d.pZ,getMessageById:()=>d.kA,getMessages:()=>d.VL,getMessagesByDateRange:()=>d.lr,getMigrationHistory:()=>f.PS,getPendingTimerCountByWorktree:()=>d.GF,getPendingTimers:()=>d._O,getPushSubscriptionByEndpoint:()=>d.CF,getPushSubscriptionsForKind:()=>d.gn,getRepositories:()=>d.NV,getRepositoryById:()=>h.r,getRepositoryByNormalizedUrl:()=>h.Uj,getRepositoryByPath:()=>h.Dp,getRunningVerificationRun:()=>d.WZ,getSessionState:()=>d.y1,getTask:()=>d.gg,getTimerById:()=>d.kx,getTimersByWorktree:()=>d.DP,getTodosByWorktreeId:()=>d.fr,getVerificationRun:()=>d.J6,getWorktreeAliases:()=>d.Q2,getWorktreeById:()=>d.Ui,getWorktreeIdsByRepository:()=>d.P9,getWorktreeTodoById:()=>d.eN,getWorktrees:()=>d.vi,getWorktreesByRepository:()=>d.uJ,initDatabase:()=>d.s4,isTerminalTaskStatus:()=>d.uB,isWorktreeTodoStatus:()=>d.yT,listRunningVerificationRuns:()=>d.Fi,listTaskEvents:()=>d.HB,listTasks:()=>d.Vk,listVerificationRuns:()=>d.Mt,listVerificationRunsForPeriod:()=>d.UE,markPendingPromptsAsAnswered:()=>d.PL,migrateDbIfNeeded:()=>r,migrateWorktreeIdPreservingChildren:()=>d._h,pushSubscriptionNeedsDefaultsNotice:()=>d.Zj,recomputeLastUserMessage:()=>d.jp,recordAnsweredPrompt:()=>d.pG,recordWorktreeAlias:()=>d.xJ,recoverStuckSendingTimers:()=>d.Xm,registerAndFilterRepositories:()=>h.$G,removeAgentInstance:()=>d.NU,reorderMemos:()=>d.nQ,reorderWorktreeTodos:()=>d.yb,resolveAndValidatePath:()=>p,resolveRepositoryPath:()=>h.mE,resolveWorktreeIdWithAlias:()=>d.l0,restoreRepository:()=>h.RS,rollbackMigrations:()=>f.Wy,runMigrations:()=>f.vI,saveDailyReport:()=>d.tt,saveInitialBranch:()=>d.GA,setAgentInstances:()=>d.Cs,setInProgressMessageId:()=>d.OF,setRepositoryEnabled:()=>h.iQ,updateCliToolId:()=>d.WU,updateCloneJob:()=>h.k5,updateDailyReportContent:()=>d.IF,updateFavorite:()=>d.O,updateLastUserMessage:()=>d.EU,updateLastViewedAt:()=>d.HZ,updateMemo:()=>d.UY,updateMessageContent:()=>d.e8,updatePromptData:()=>d.cw,updatePushSubscriptionPreferences:()=>d.jJ,updateRepository:()=>h.Ir,updateSelectedAgents:()=>d.DC,updateSessionState:()=>d.PP,updateStatus:()=>d.yB,updateTimerStatus:()=>d.j2,updateVibeLocalContextWindow:()=>d.s,updateVibeLocalModel:()=>d.iu,updateWorktreeDescription:()=>d.hq,updateWorktreeLink:()=>d.z1,updateWorktreeTodo:()=>d.bl,upsertPushSubscription:()=>d.jA,upsertWorktree:()=>d.ZL,validateDbPath:()=>g.Sv,validateRepositoryPath:()=>h.Ux,validateSchema:()=>f.i6});var d=c(683),e=c(88807),f=c(67469),g=c(20416),h=c(10406),i=c(29021),j=c.n(i),k=c(33873),l=c.n(k),m=c(21820),n=c(7956);let o=(0,c(72626).h)("db-migration-path");function p(a,b){try{if(!j().existsSync(a))return null;let c=j().realpathSync(a);if((0,n.fW)(c))return o.warn(`[Security] ${b} points to system directory, skipping: ${c}`),null;return c}catch{return o.warn(`[Security] Failed to resolve ${b}: ${a}`),null}}function q(){let a=[];a.push(l().join(process.cwd(),"data","db.sqlite")),a.push(l().join(process.cwd(),"data","cm.db")),a.push(l().join((0,m.homedir)(),".commandmate","data","db.sqlite"));let b=process.env.DATABASE_PATH;if(b)try{let c=l().resolve(b);(0,n.fW)(c)?o.warn(`[Security] Skipping DATABASE_PATH in system directory: ${c}`):a.push(b)}catch{o.warn(`[Security] Invalid DATABASE_PATH: ${b}`)}return a}function r(a){let b=l().resolve(a);if((0,n.fW)(b))throw Error(`Security error: Target path cannot be in system directory: ${b}`);if(j().existsSync(a)){let b=p(a,"target path");if(b)return{migrated:!1,targetPath:b}}for(let a of q()){let c=p(a,"legacy path");if(!c)continue;let d=`${c}.bak`;j().copyFileSync(c,d),j().chmodSync(d,384);let e=l().dirname(b);return j().existsSync(e)||j().mkdirSync(e,{recursive:!0,mode:448}),j().copyFileSync(c,b),o.info(`[Migration] Database migrated from ${c} to ${b}`),o.info(`[Migration] Backup created at ${d}`),{migrated:!0,sourcePath:c,targetPath:b,backupPath:d}}return{migrated:!1,targetPath:b}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91645:a=>{a.exports=require("net")},97399:(a,b,c)=>{c.d(b,{I6:()=>i,Sr:()=>g,eA:()=>k});var d=c(10641),e=c(66007),f=c(65417);function g(a,b){if(!Array.isArray(a)||0===a.length)return d.NextResponse.json({error:"files must be a non-empty array"},{status:400});if(a.length>f.Mo)return d.NextResponse.json({error:`files exceeds the maximum of ${f.Mo}`},{status:400});for(let c of a){if("string"!=typeof c||0===c.length)return d.NextResponse.json({error:"files must contain only non-empty strings"},{status:400});if(!(0,e.B9)(c,b))return d.NextResponse.json({error:"Invalid file path"},{status:400})}return a}let h=/[\x00-\x20\x7F~^:?*[\\]/;function i(a){return"string"!=typeof a||0===a.length||a.length>255||a.startsWith("-")||a.startsWith("/")||a.endsWith("/")||a.includes("//")||a.includes("..")||a.startsWith(".")||a.endsWith(".")||a.endsWith(".lock")||a.includes("@{")||h.test(a)?d.NextResponse.json({error:"Invalid branch name",reason:"invalid_branch_name"},{status:400}):a}let j=/^\d+$/;function k(a){let b,c=()=>d.NextResponse.json({error:"Invalid stash index",reason:"invalid_stash_index"},{status:400});if("number"==typeof a){if(!Number.isInteger(a))return c();b=a}else{if("string"!=typeof a||!j.test(a))return c();b=parseInt(a,10)}return b<0||b>f.Kq?c():b}}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1331,641,3722,4390,9627,8807,406,6065,1944,9051],()=>b(b.s=3447));module.exports=c})();
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/worktrees/[id]/git/branch/create/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"3809":{"*":{"id":"37397","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"55524","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"3890","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"67266","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"96908","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"39800","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"28393","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"90039","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"26636","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"21350","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"50302","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"31017","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"91042","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"3425","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"46368","name":"*","chunks":[],"async":false}},"94179":{"*":{"id":"45970","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"88710","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/global-error.tsx":{"id":54062,"name":"*","chunks":["2407","static/chunks/2407-051f6f84226a9f2c.js","4219","static/chunks/app/global-error-49f765ecb7fd6527.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/sans.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-sans/Geist-Variable.woff2\",\"variable\":\"--font-geist-sans\",\"weight\":\"100 900\"}],\"variableName\":\"GeistSans\"}":{"id":22311,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/mono.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-mono/GeistMono-Variable.woff2\",\"variable\":\"--font-geist-mono\",\"adjustFontFallback\":false,\"fallback\":[\"ui-monospace\",\"SFMono-Regular\",\"Roboto Mono\",\"Menlo\",\"Monaco\",\"Liberation Mono\",\"DejaVu Sans Mono\",\"Courier New\",\"monospace\"],\"weight\":\"100 900\"}],\"variableName\":\"GeistMono\"}":{"id":7183,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/globals.css":{"id":13673,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/layout/AppShellGate.tsx":{"id":62295,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":23252,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-9da1ab602bcb3051.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/error.tsx":{"id":50960,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","2407","static/chunks/2407-051f6f84226a9f2c.js","8039","static/chunks/app/error-d9a7067074e7f460.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js":{"id":3809,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4209","static/chunks/app/loading-db675c84e696591f.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/login/page.tsx":{"id":70462,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/more/page.tsx":{"id":57101,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/pwa/OfflineReconnectButton.tsx":{"id":33258,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/page.tsx":{"id":89957,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-04bc32f026a0d946.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-051f6f84226a9f2c.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-1b820c421db48c2c.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/repositories/page.tsx":{"id":24502,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/review/page.tsx":{"id":17442,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/sessions/page.tsx":{"id":89569,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/[skillId]/page.tsx":{"id":89675,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/installed/page.tsx":{"id":72754,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/page.tsx":{"id":99898,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/page.tsx":{"id":94179,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/files/[...path]/page.tsx":{"id":82743,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/terminal/page.tsx":{"id":88201,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/runner/work/CommandMate/CommandMate/src/":[],"/home/runner/work/CommandMate/CommandMate/src/app/global-error":[],"/home/runner/work/CommandMate/CommandMate/src/app/layout":[{"inlined":false,"path":"static/css/531c1fcb1e69d47b.css"},{"inlined":false,"path":"static/css/38070d879efa1371.css"}],"/home/runner/work/CommandMate/CommandMate/src/app/error":[],"/home/runner/work/CommandMate/CommandMate/src/app/loading":[],"/home/runner/work/CommandMate/CommandMate/src/app/page":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/git/branch/create/route":[]},"rscModuleMapping":{"3809":{"*":{"id":"53523","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"13673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"96494","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"58315","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"66164","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"5682","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"64182","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"12319","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"29966","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"15109","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"81021","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"69624","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"21853","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"35731","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"1133","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"60967","name":"*","chunks":[],"async":false}},"94179":{"*":{"id":"7874","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"74080","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/worktrees/[id]/git/branch/create/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"3809":{"*":{"id":"37397","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"77526","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"78922","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"55524","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"68495","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"3890","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"67266","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"96908","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"39800","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"28393","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"90039","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"75170","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"26636","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"21350","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"82146","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"31603","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"50302","name":"*","chunks":[],"async":false}},"84237":{"*":{"id":"53648","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"31017","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"91042","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"3425","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"46368","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"29234","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"88710","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-page.js":{"id":81959,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/client-segment.js":{"id":17989,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":63886,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":15278,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":98924,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":24431,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":80622,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/global-error.tsx":{"id":54062,"name":"*","chunks":["2407","static/chunks/2407-06d35bb1aa02de80.js","4219","static/chunks/app/global-error-49f765ecb7fd6527.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/sans.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-sans/Geist-Variable.woff2\",\"variable\":\"--font-geist-sans\",\"weight\":\"100 900\"}],\"variableName\":\"GeistSans\"}":{"id":22311,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next/font/local/target.css?{\"path\":\"node_modules/geist/dist/mono.js\",\"import\":\"\",\"arguments\":[{\"src\":\"./fonts/geist-mono/GeistMono-Variable.woff2\",\"variable\":\"--font-geist-mono\",\"adjustFontFallback\":false,\"fallback\":[\"ui-monospace\",\"SFMono-Regular\",\"Roboto Mono\",\"Menlo\",\"Monaco\",\"Liberation Mono\",\"DejaVu Sans Mono\",\"Courier New\",\"monospace\"],\"weight\":\"100 900\"}],\"variableName\":\"GeistMono\"}":{"id":7183,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/globals.css":{"id":13673,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/layout/AppShellGate.tsx":{"id":62295,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":23252,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","6192","static/chunks/6192-a67df090838b9aad.js","8318","static/chunks/8318-01e7d1e5ad0a15a3.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3525fb42f1b4976e.js","9619","static/chunks/9619-6c17a271f7f98fbb.js","7177","static/chunks/app/layout-0d1750b833f5cc3e.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/error.tsx":{"id":50960,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","2407","static/chunks/2407-06d35bb1aa02de80.js","8039","static/chunks/app/error-d9a7067074e7f460.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/node_modules/next-intl/dist/esm/production/shared/NextIntlClientProvider.js":{"id":3809,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4209","static/chunks/app/loading-db675c84e696591f.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/login/page.tsx":{"id":70462,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/more/page.tsx":{"id":57101,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/pwa/OfflineReconnectButton.tsx":{"id":33258,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/page.tsx":{"id":89957,"name":"*","chunks":["6809","static/chunks/6809-c40780dcdbb38ec5.js","4909","static/chunks/4909-1f5c586e3e84e0a5.js","2770","static/chunks/2770-827a64760bab8a3a.js","2619","static/chunks/2619-a305ad4810f1393a.js","8407","static/chunks/8407-9a72e6f07c5d5458.js","2407","static/chunks/2407-06d35bb1aa02de80.js","344","static/chunks/344-e1cefd00787060e4.js","6654","static/chunks/6654-ac431270fac1a283.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-1b820c421db48c2c.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/review/page.tsx":{"id":17442,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/repositories/page.tsx":{"id":24502,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/[skillId]/page.tsx":{"id":89675,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/sessions/page.tsx":{"id":89569,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/installed/page.tsx":{"id":72754,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/skills/page.tsx":{"id":99898,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/files/[...path]/page.tsx":{"id":82743,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/terminal/page.tsx":{"id":88201,"name":"*","chunks":[],"async":false},"/home/runner/work/CommandMate/CommandMate/src/app/worktrees/[id]/page.tsx":{"id":84237,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/home/runner/work/CommandMate/CommandMate/src/":[],"/home/runner/work/CommandMate/CommandMate/src/app/global-error":[],"/home/runner/work/CommandMate/CommandMate/src/app/layout":[{"inlined":false,"path":"static/css/531c1fcb1e69d47b.css"},{"inlined":false,"path":"static/css/057f64a65726c439.css"}],"/home/runner/work/CommandMate/CommandMate/src/app/error":[],"/home/runner/work/CommandMate/CommandMate/src/app/loading":[],"/home/runner/work/CommandMate/CommandMate/src/app/page":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/git/branch/create/route":[]},"rscModuleMapping":{"3809":{"*":{"id":"53523","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}},"13673":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"15278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"17442":{"*":{"id":"96494","name":"*","chunks":[],"async":false}},"17989":{"*":{"id":"36893","name":"*","chunks":[],"async":false}},"23252":{"*":{"id":"58315","name":"*","chunks":[],"async":false}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"33258":{"*":{"id":"66164","name":"*","chunks":[],"async":false}},"50960":{"*":{"id":"5682","name":"*","chunks":[],"async":false}},"54062":{"*":{"id":"64182","name":"*","chunks":[],"async":false}},"57101":{"*":{"id":"12319","name":"*","chunks":[],"async":false}},"62295":{"*":{"id":"29966","name":"*","chunks":[],"async":false}},"63886":{"*":{"id":"89748","name":"*","chunks":[],"async":false}},"70462":{"*":{"id":"15109","name":"*","chunks":[],"async":false}},"72754":{"*":{"id":"81021","name":"*","chunks":[],"async":false}},"80622":{"*":{"id":"51384","name":"*","chunks":[],"async":false}},"81959":{"*":{"id":"23597","name":"*","chunks":[],"async":false}},"82743":{"*":{"id":"69624","name":"*","chunks":[],"async":false}},"84237":{"*":{"id":"7874","name":"*","chunks":[],"async":false}},"88201":{"*":{"id":"21853","name":"*","chunks":[],"async":false}},"89569":{"*":{"id":"35731","name":"*","chunks":[],"async":false}},"89675":{"*":{"id":"1133","name":"*","chunks":[],"async":false}},"89957":{"*":{"id":"60967","name":"*","chunks":[],"async":false}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"74080","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=6680,a.ids=[6680],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{a.exports=require("process")},21820:a=>{a.exports=require("os")},27289:(a,b,c)=>{c.d(b,{t:()=>j,z:()=>i});var d=c(10641),e=c(88807),f=c(56791),g=c(95506),h=c(66007);function i(a){if(!a)return a;try{if(!(0,h.h6)(a))return a;let b=(0,e.getDbInstance)();return(0,g.l0)(b,a)??a}catch{return a}}function j(a){if(!(0,h.h6)(a))return d.NextResponse.json({error:"Invalid worktree ID format"},{status:400});let b=(0,e.getDbInstance)(),c=(0,f.getWorktreeById)(b,i(a));return c||d.NextResponse.json({error:"Worktree not found"},{status:404})}},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},56791:(a,b,c)=>{c.r(b),c.d(b,{ACTIVE_FILTER:()=>d.ks,ACTIVE_TASK_STATUSES:()=>d.EL,AgentInstanceLimitError:()=>d.AC,CURRENT_SCHEMA_VERSION:()=>f.FT,DEFAULT_RUN_HISTORY_LIMIT:()=>d.Tu,InvalidAgentInstanceError:()=>d.ug,MAX_DISABLED_REPOSITORIES:()=>h.nc,MAX_RUN_HISTORY_DAYS:()=>d.eP,MAX_RUN_HISTORY_LIMIT:()=>d.mg,MemoDbError:()=>d.lm,NEW_SUBSCRIPTION_DEFAULTS:()=>d.s6,PUSH_DEFAULTS_VERSION:()=>d.VP,RepositoryDbError:()=>h.j8,TASK_STATUSES:()=>d.Hi,TERMINAL_TASK_STATUSES:()=>d.sA,VERIFICATION_GATE_SOURCES:()=>d.Dx,VERIFICATION_TRIGGERS:()=>d.af,WORKTREE_TODO_STATUSES:()=>d.KG,addAgentInstance:()=>d.Uq,cancelTimer:()=>d.Ud,cancelTimersByWorktree:()=>d.$$,cleanupOldTimers:()=>d.ul,clearInProgressMessageId:()=>d.YX,clearLastUserMessage:()=>d.cf,clearTimerHistory:()=>d.jf,closeDbInstance:()=>e.closeDbInstance,countAgentInstances:()=>d.fs,countDisabledRepositories:()=>h.QJ,countPushSubscriptionsForKind:()=>d.rC,countWorktreesByRepositoryPath:()=>h.kp,createCloneJob:()=>h.tw,createGateResult:()=>d.hl,createMemo:()=>d.To,createMessage:()=>d.oH,createRepository:()=>h.vB,createTask:()=>d.UT,createTimer:()=>d.CR,createVerificationRun:()=>d.rY,createWorktreeTodo:()=>d.yy,deleteAllMessages:()=>d.pE,deleteMemo:()=>d.cP,deleteMessageById:()=>d.DF,deleteMessagesByCliTool:()=>d.lA,deleteMessagesByInstance:()=>d.Qp,deletePushSubscriptionByEndpoint:()=>d.th,deleteRepository:()=>h.oG,deleteRepositoryWorktrees:()=>d.oZ,deleteSessionState:()=>d.ZP,deleteWorktreeTodo:()=>d.vg,deleteWorktreesByIds:()=>d.Rm,disableExistingRepository:()=>h.eP,disableRepository:()=>h.l$,ensureEnvRepositoriesRegistered:()=>h.ES,filterExcludedPaths:()=>h.Ho,findMessageByRequestId:()=>d.Ow,finishGateResult:()=>d.C8,finishVerificationRun:()=>d.u$,getActiveCloneJobByUrl:()=>h.fD,getActiveTask:()=>d.__,getActiveTaskForInstance:()=>d.MH,getAgentInstance:()=>d.BN,getAgentInstances:()=>d.m0,getAliasedWorktreeIds:()=>d.r3,getAllPushSubscriptions:()=>d.Se,getAllRepositories:()=>h.Yg,getAllRepositoriesWithWorktreeCount:()=>h._D,getAllWorktreeAliases:()=>d.fX,getAllWorktreeIds:()=>d.nO,getAllWorktreePathIds:()=>d.Sj,getCloneJob:()=>h.bM,getCloneJobsByStatus:()=>h.n_,getCurrentVersion:()=>f.Mj,getDailyReport:()=>d.ap,getDbInstance:()=>e.getDbInstance,getDefaultDbPath:()=>g.$b,getExcludedRepositories:()=>h.lS,getExcludedRepositoryPaths:()=>h.pr,getInitialBranch:()=>d.p4,getIssueDbPath:()=>g.zm,getLastAssistantMessageAt:()=>d.nP,getLastMessage:()=>d.sy,getLastUserMessage:()=>d.r8,getLegacyDbPaths:()=>q,getMemoById:()=>d.DN,getMemosByWorktreeId:()=>d.pZ,getMessageById:()=>d.kA,getMessages:()=>d.VL,getMessagesByDateRange:()=>d.lr,getMigrationHistory:()=>f.PS,getPendingTimerCountByWorktree:()=>d.GF,getPendingTimers:()=>d._O,getPushSubscriptionByEndpoint:()=>d.CF,getPushSubscriptionsForKind:()=>d.gn,getRepositories:()=>d.NV,getRepositoryById:()=>h.r,getRepositoryByNormalizedUrl:()=>h.Uj,getRepositoryByPath:()=>h.Dp,getRunningVerificationRun:()=>d.WZ,getSessionState:()=>d.y1,getTask:()=>d.gg,getTimerById:()=>d.kx,getTimersByWorktree:()=>d.DP,getTodosByWorktreeId:()=>d.fr,getVerificationRun:()=>d.J6,getWorktreeAliases:()=>d.Q2,getWorktreeById:()=>d.Ui,getWorktreeIdsByRepository:()=>d.P9,getWorktreeTodoById:()=>d.eN,getWorktrees:()=>d.vi,getWorktreesByRepository:()=>d.uJ,initDatabase:()=>d.s4,isTerminalTaskStatus:()=>d.uB,isWorktreeTodoStatus:()=>d.yT,listRunningVerificationRuns:()=>d.Fi,listTaskEvents:()=>d.HB,listTasks:()=>d.Vk,listVerificationRuns:()=>d.Mt,listVerificationRunsForPeriod:()=>d.UE,markPendingPromptsAsAnswered:()=>d.PL,migrateDbIfNeeded:()=>r,migrateWorktreeIdPreservingChildren:()=>d._h,pushSubscriptionNeedsDefaultsNotice:()=>d.Zj,recomputeLastUserMessage:()=>d.jp,recordAnsweredPrompt:()=>d.pG,recordWorktreeAlias:()=>d.xJ,recoverStuckSendingTimers:()=>d.Xm,registerAndFilterRepositories:()=>h.$G,removeAgentInstance:()=>d.NU,reorderMemos:()=>d.nQ,reorderWorktreeTodos:()=>d.yb,resolveAndValidatePath:()=>p,resolveRepositoryPath:()=>h.mE,resolveWorktreeIdWithAlias:()=>d.l0,restoreRepository:()=>h.RS,rollbackMigrations:()=>f.Wy,runMigrations:()=>f.vI,saveDailyReport:()=>d.tt,saveInitialBranch:()=>d.GA,setAgentInstances:()=>d.Cs,setInProgressMessageId:()=>d.OF,setRepositoryEnabled:()=>h.iQ,updateCliToolId:()=>d.WU,updateCloneJob:()=>h.k5,updateDailyReportContent:()=>d.IF,updateFavorite:()=>d.O,updateLastUserMessage:()=>d.EU,updateLastViewedAt:()=>d.HZ,updateMemo:()=>d.UY,updateMessageContent:()=>d.e8,updatePromptData:()=>d.cw,updatePushSubscriptionPreferences:()=>d.jJ,updateRepository:()=>h.Ir,updateSelectedAgents:()=>d.DC,updateSessionState:()=>d.PP,updateStatus:()=>d.yB,updateTimerStatus:()=>d.j2,updateVibeLocalContextWindow:()=>d.s,updateVibeLocalModel:()=>d.iu,updateWorktreeDescription:()=>d.hq,updateWorktreeLink:()=>d.z1,updateWorktreeTodo:()=>d.bl,upsertPushSubscription:()=>d.jA,upsertWorktree:()=>d.ZL,validateDbPath:()=>g.Sv,validateRepositoryPath:()=>h.Ux,validateSchema:()=>f.i6});var d=c(683),e=c(88807),f=c(67469),g=c(20416),h=c(10406),i=c(29021),j=c.n(i),k=c(33873),l=c.n(k),m=c(21820),n=c(7956);let o=(0,c(72626).h)("db-migration-path");function p(a,b){try{if(!j().existsSync(a))return null;let c=j().realpathSync(a);if((0,n.fW)(c))return o.warn(`[Security] ${b} points to system directory, skipping: ${c}`),null;return c}catch{return o.warn(`[Security] Failed to resolve ${b}: ${a}`),null}}function q(){let a=[];a.push(l().join(process.cwd(),"data","db.sqlite")),a.push(l().join(process.cwd(),"data","cm.db")),a.push(l().join((0,m.homedir)(),".commandmate","data","db.sqlite"));let b=process.env.DATABASE_PATH;if(b)try{let c=l().resolve(b);(0,n.fW)(c)?o.warn(`[Security] Skipping DATABASE_PATH in system directory: ${c}`):a.push(b)}catch{o.warn(`[Security] Invalid DATABASE_PATH: ${b}`)}return a}function r(a){let b=l().resolve(a);if((0,n.fW)(b))throw Error(`Security error: Target path cannot be in system directory: ${b}`);if(j().existsSync(a)){let b=p(a,"target path");if(b)return{migrated:!1,targetPath:b}}for(let a of q()){let c=p(a,"legacy path");if(!c)continue;let d=`${c}.bak`;j().copyFileSync(c,d),j().chmodSync(d,384);let e=l().dirname(b);return j().existsSync(e)||j().mkdirSync(e,{recursive:!0,mode:448}),j().copyFileSync(c,b),o.info(`[Migration] Database migrated from ${c} to ${b}`),o.info(`[Migration] Backup created at ${d}`),{migrated:!0,sourcePath:c,targetPath:b,backupPath:d}}return{migrated:!1,targetPath:b}}},57128:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>E,patchFetch:()=>D,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var d={};c.r(d),c.d(d,{POST:()=>y});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(79051),w=c(97399),x=c(27289);async function y(a,{params:b}){try{let{id:c}=await b,d=(0,x.z)(c),e=(0,x.t)(d);if(e instanceof u.NextResponse)return e;let{name:f,force:g}=await a.json().catch(()=>({})),h=(0,w.I6)(f);if(h instanceof u.NextResponse)return h;return await (0,v.SN)(e.path,{name:h,force:!0===g}),u.NextResponse.json({success:!0,deleted:h},{status:200})}catch(a){return(0,v.x7)(a,"POST /api/worktrees/:id/git/branch/delete")}}let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/git/branch/delete/route",pathname:"/api/worktrees/[id]/git/branch/delete",filename:"route",bundlePath:"app/api/worktrees/[id]/git/branch/delete/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/git/branch/delete/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function D(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function E(a,b,c){var d;let e="/api/worktrees/[id]/git/branch/delete/route";"/index"===e&&(e="/");let g=await z.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||z.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===z.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>z.onRequestError(a,b,d,A)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>z.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await z.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91645:a=>{a.exports=require("net")},97399:(a,b,c)=>{c.d(b,{I6:()=>i,Sr:()=>g,eA:()=>k});var d=c(10641),e=c(66007),f=c(65417);function g(a,b){if(!Array.isArray(a)||0===a.length)return d.NextResponse.json({error:"files must be a non-empty array"},{status:400});if(a.length>f.Mo)return d.NextResponse.json({error:`files exceeds the maximum of ${f.Mo}`},{status:400});for(let c of a){if("string"!=typeof c||0===c.length)return d.NextResponse.json({error:"files must contain only non-empty strings"},{status:400});if(!(0,e.B9)(c,b))return d.NextResponse.json({error:"Invalid file path"},{status:400})}return a}let h=/[\x00-\x20\x7F~^:?*[\\]/;function i(a){return"string"!=typeof a||0===a.length||a.length>255||a.startsWith("-")||a.startsWith("/")||a.endsWith("/")||a.includes("//")||a.includes("..")||a.startsWith(".")||a.endsWith(".")||a.endsWith(".lock")||a.includes("@{")||h.test(a)?d.NextResponse.json({error:"Invalid branch name",reason:"invalid_branch_name"},{status:400}):a}let j=/^\d+$/;function k(a){let b,c=()=>d.NextResponse.json({error:"Invalid stash index",reason:"invalid_stash_index"},{status:400});if("number"==typeof a){if(!Number.isInteger(a))return c();b=a}else{if("string"!=typeof a||!j.test(a))return c();b=parseInt(a,10)}return b<0||b>f.Kq?c():b}}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1331,641,3722,4390,9627,8807,406,6065,1944,9051],()=>b(b.s=57128));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=6680,a.ids=[6680],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},5007:(a,b,c)=>{c.d(b,{Sw:()=>g,nE:()=>e,of:()=>f});var d=c(10641);async function e(a){try{return{ok:!0,body:await a.json()}}catch{return{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}}}async function f(a){let b=await e(a);if(!b.ok)return b;let c=b.body;return"object"!=typeof c||null===c||Array.isArray(c)?{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}:{ok:!0,body:c}}async function g(a){let b;try{b=await a.json()}catch{return{ok:!0,body:{}}}return"object"!=typeof b||null===b||Array.isArray(b)?{ok:!1,response:d.NextResponse.json({error:"Invalid request body"},{status:400})}:{ok:!0,body:b}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},19771:a=>{a.exports=require("process")},21820:a=>{a.exports=require("os")},27289:(a,b,c)=>{c.d(b,{t:()=>j,z:()=>i});var d=c(10641),e=c(88807),f=c(56791),g=c(95506),h=c(66007);function i(a){if(!a)return a;try{if(!(0,h.h6)(a))return a;let b=(0,e.getDbInstance)();return(0,g.l0)(b,a)??a}catch{return a}}function j(a){if(!(0,h.h6)(a))return d.NextResponse.json({error:"Invalid worktree ID format"},{status:400});let b=(0,e.getDbInstance)(),c=(0,f.getWorktreeById)(b,i(a));return c||d.NextResponse.json({error:"Worktree not found"},{status:404})}},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},56791:(a,b,c)=>{c.r(b),c.d(b,{ACTIVE_FILTER:()=>d.ks,ACTIVE_TASK_STATUSES:()=>d.EL,AgentInstanceLimitError:()=>d.AC,CURRENT_SCHEMA_VERSION:()=>f.FT,DEFAULT_RUN_HISTORY_LIMIT:()=>d.Tu,InvalidAgentInstanceError:()=>d.ug,MAX_DISABLED_REPOSITORIES:()=>h.nc,MAX_RUN_HISTORY_DAYS:()=>d.eP,MAX_RUN_HISTORY_LIMIT:()=>d.mg,MemoDbError:()=>d.lm,NEW_SUBSCRIPTION_DEFAULTS:()=>d.s6,PUSH_DEFAULTS_VERSION:()=>d.VP,RepositoryDbError:()=>h.j8,TASK_STATUSES:()=>d.Hi,TERMINAL_TASK_STATUSES:()=>d.sA,VERIFICATION_GATE_SOURCES:()=>d.Dx,VERIFICATION_TRIGGERS:()=>d.af,WORKTREE_TODO_STATUSES:()=>d.KG,addAgentInstance:()=>d.Uq,cancelTimer:()=>d.Ud,cancelTimersByWorktree:()=>d.$$,cleanupOldTimers:()=>d.ul,clearInProgressMessageId:()=>d.YX,clearLastUserMessage:()=>d.cf,clearTimerHistory:()=>d.jf,closeDbInstance:()=>e.closeDbInstance,countAgentInstances:()=>d.fs,countDisabledRepositories:()=>h.QJ,countPushSubscriptionsForKind:()=>d.rC,countWorktreesByRepositoryPath:()=>h.kp,createCloneJob:()=>h.tw,createGateResult:()=>d.hl,createMemo:()=>d.To,createMessage:()=>d.oH,createRepository:()=>h.vB,createTask:()=>d.UT,createTimer:()=>d.CR,createVerificationRun:()=>d.rY,createWorktreeTodo:()=>d.yy,deleteAllMessages:()=>d.pE,deleteMemo:()=>d.cP,deleteMessageById:()=>d.DF,deleteMessagesByCliTool:()=>d.lA,deleteMessagesByInstance:()=>d.Qp,deletePushSubscriptionByEndpoint:()=>d.th,deleteRepository:()=>h.oG,deleteRepositoryWorktrees:()=>d.oZ,deleteSessionState:()=>d.ZP,deleteWorktreeTodo:()=>d.vg,deleteWorktreesByIds:()=>d.Rm,disableExistingRepository:()=>h.eP,disableRepository:()=>h.l$,ensureEnvRepositoriesRegistered:()=>h.ES,filterExcludedPaths:()=>h.Ho,findMessageByRequestId:()=>d.Ow,finishGateResult:()=>d.C8,finishVerificationRun:()=>d.u$,getActiveCloneJobByUrl:()=>h.fD,getActiveTask:()=>d.__,getActiveTaskForInstance:()=>d.MH,getAgentInstance:()=>d.BN,getAgentInstances:()=>d.m0,getAliasedWorktreeIds:()=>d.r3,getAllPushSubscriptions:()=>d.Se,getAllRepositories:()=>h.Yg,getAllRepositoriesWithWorktreeCount:()=>h._D,getAllWorktreeAliases:()=>d.fX,getAllWorktreeIds:()=>d.nO,getAllWorktreePathIds:()=>d.Sj,getCloneJob:()=>h.bM,getCloneJobsByStatus:()=>h.n_,getCurrentVersion:()=>f.Mj,getDailyReport:()=>d.ap,getDbInstance:()=>e.getDbInstance,getDefaultDbPath:()=>g.$b,getExcludedRepositories:()=>h.lS,getExcludedRepositoryPaths:()=>h.pr,getInitialBranch:()=>d.p4,getIssueDbPath:()=>g.zm,getLastAssistantMessageAt:()=>d.nP,getLastMessage:()=>d.sy,getLastUserMessage:()=>d.r8,getLegacyDbPaths:()=>q,getMemoById:()=>d.DN,getMemosByWorktreeId:()=>d.pZ,getMessageById:()=>d.kA,getMessages:()=>d.VL,getMessagesByDateRange:()=>d.lr,getMigrationHistory:()=>f.PS,getPendingTimerCountByWorktree:()=>d.GF,getPendingTimers:()=>d._O,getPushSubscriptionByEndpoint:()=>d.CF,getPushSubscriptionsForKind:()=>d.gn,getRepositories:()=>d.NV,getRepositoryById:()=>h.r,getRepositoryByNormalizedUrl:()=>h.Uj,getRepositoryByPath:()=>h.Dp,getRunningVerificationRun:()=>d.WZ,getSessionState:()=>d.y1,getTask:()=>d.gg,getTimerById:()=>d.kx,getTimersByWorktree:()=>d.DP,getTodosByWorktreeId:()=>d.fr,getVerificationRun:()=>d.J6,getWorktreeAliases:()=>d.Q2,getWorktreeById:()=>d.Ui,getWorktreeIdsByRepository:()=>d.P9,getWorktreeTodoById:()=>d.eN,getWorktrees:()=>d.vi,getWorktreesByRepository:()=>d.uJ,initDatabase:()=>d.s4,isTerminalTaskStatus:()=>d.uB,isWorktreeTodoStatus:()=>d.yT,listRunningVerificationRuns:()=>d.Fi,listTaskEvents:()=>d.HB,listTasks:()=>d.Vk,listVerificationRuns:()=>d.Mt,listVerificationRunsForPeriod:()=>d.UE,markPendingPromptsAsAnswered:()=>d.PL,migrateDbIfNeeded:()=>r,migrateWorktreeIdPreservingChildren:()=>d._h,pushSubscriptionNeedsDefaultsNotice:()=>d.Zj,recomputeLastUserMessage:()=>d.jp,recordAnsweredPrompt:()=>d.pG,recordWorktreeAlias:()=>d.xJ,recoverStuckSendingTimers:()=>d.Xm,registerAndFilterRepositories:()=>h.$G,removeAgentInstance:()=>d.NU,reorderMemos:()=>d.nQ,reorderWorktreeTodos:()=>d.yb,resolveAndValidatePath:()=>p,resolveRepositoryPath:()=>h.mE,resolveWorktreeIdWithAlias:()=>d.l0,restoreRepository:()=>h.RS,rollbackMigrations:()=>f.Wy,runMigrations:()=>f.vI,saveDailyReport:()=>d.tt,saveInitialBranch:()=>d.GA,setAgentInstances:()=>d.Cs,setInProgressMessageId:()=>d.OF,setRepositoryEnabled:()=>h.iQ,updateCliToolId:()=>d.WU,updateCloneJob:()=>h.k5,updateDailyReportContent:()=>d.IF,updateFavorite:()=>d.O,updateLastUserMessage:()=>d.EU,updateLastViewedAt:()=>d.HZ,updateMemo:()=>d.UY,updateMessageContent:()=>d.e8,updatePromptData:()=>d.cw,updatePushSubscriptionPreferences:()=>d.jJ,updateRepository:()=>h.Ir,updateSelectedAgents:()=>d.DC,updateSessionState:()=>d.PP,updateStatus:()=>d.yB,updateTimerStatus:()=>d.j2,updateVibeLocalContextWindow:()=>d.s,updateVibeLocalModel:()=>d.iu,updateWorktreeDescription:()=>d.hq,updateWorktreeLink:()=>d.z1,updateWorktreeTodo:()=>d.bl,upsertPushSubscription:()=>d.jA,upsertWorktree:()=>d.ZL,validateDbPath:()=>g.Sv,validateRepositoryPath:()=>h.Ux,validateSchema:()=>f.i6});var d=c(683),e=c(88807),f=c(67469),g=c(20416),h=c(10406),i=c(29021),j=c.n(i),k=c(33873),l=c.n(k),m=c(21820),n=c(7956);let o=(0,c(72626).h)("db-migration-path");function p(a,b){try{if(!j().existsSync(a))return null;let c=j().realpathSync(a);if((0,n.fW)(c))return o.warn(`[Security] ${b} points to system directory, skipping: ${c}`),null;return c}catch{return o.warn(`[Security] Failed to resolve ${b}: ${a}`),null}}function q(){let a=[];a.push(l().join(process.cwd(),"data","db.sqlite")),a.push(l().join(process.cwd(),"data","cm.db")),a.push(l().join((0,m.homedir)(),".commandmate","data","db.sqlite"));let b=process.env.DATABASE_PATH;if(b)try{let c=l().resolve(b);(0,n.fW)(c)?o.warn(`[Security] Skipping DATABASE_PATH in system directory: ${c}`):a.push(b)}catch{o.warn(`[Security] Invalid DATABASE_PATH: ${b}`)}return a}function r(a){let b=l().resolve(a);if((0,n.fW)(b))throw Error(`Security error: Target path cannot be in system directory: ${b}`);if(j().existsSync(a)){let b=p(a,"target path");if(b)return{migrated:!1,targetPath:b}}for(let a of q()){let c=p(a,"legacy path");if(!c)continue;let d=`${c}.bak`;j().copyFileSync(c,d),j().chmodSync(d,384);let e=l().dirname(b);return j().existsSync(e)||j().mkdirSync(e,{recursive:!0,mode:448}),j().copyFileSync(c,b),o.info(`[Migration] Database migrated from ${c} to ${b}`),o.info(`[Migration] Backup created at ${d}`),{migrated:!0,sourcePath:c,targetPath:b,backupPath:d}}return{migrated:!1,targetPath:b}}},57128:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>F,patchFetch:()=>E,routeModule:()=>A,serverHooks:()=>D,workAsyncStorage:()=>B,workUnitAsyncStorage:()=>C});var d={};c.r(d),c.d(d,{POST:()=>z});var e=c(95736),f=c(9117),g=c(4044),h=c(39326),i=c(32324),j=c(261),k=c(54290),l=c(85328),m=c(38928),n=c(46595),o=c(3421),p=c(17679),q=c(41681),r=c(63446),s=c(86439),t=c(51356),u=c(10641),v=c(79051),w=c(97399),x=c(27289),y=c(5007);async function z(a,{params:b}){try{let{id:c}=await b,d=(0,x.z)(c),e=(0,x.t)(d);if(e instanceof u.NextResponse)return e;let f=await (0,y.Sw)(a);if(!f.ok)return f.response;let{name:g,force:h}=f.body,i=(0,w.I6)(g);if(i instanceof u.NextResponse)return i;return await (0,v.SN)(e.path,{name:i,force:!0===h}),u.NextResponse.json({success:!0,deleted:i},{status:200})}catch(a){return(0,v.x7)(a,"POST /api/worktrees/:id/git/branch/delete")}}let A=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/git/branch/delete/route",pathname:"/api/worktrees/[id]/git/branch/delete",filename:"route",bundlePath:"app/api/worktrees/[id]/git/branch/delete/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/git/branch/delete/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:B,workUnitAsyncStorage:C,serverHooks:D}=A;function E(){return(0,g.patchFetch)({workAsyncStorage:B,workUnitAsyncStorage:C})}async function F(a,b,c){var d;let e="/api/worktrees/[id]/git/branch/delete/route";"/index"===e&&(e="/");let g=await A.prepare(a,b,{srcPage:e,multiZoneDraftMode:!1});if(!g)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:u,params:v,nextConfig:w,isDraftMode:x,prerenderManifest:y,routerServerContext:z,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=g,E=(0,j.normalizeAppPath)(e),F=!!(y.dynamicRoutes[E]||y.routes[D]);if(F&&!x){let a=!!y.routes[D],b=y.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new s.NoFallbackError}let G=null;!F||A.isDev||x||(G="/index"===(G=D)?"/":G);let H=!0===A.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,i.getTracer)(),L=K.getActiveScopeSpan(),M={params:v,prerenderManifest:y,renderOpts:{experimental:{cacheComponents:!!w.experimental.cacheComponents,authInterrupts:!!w.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=w.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>A.onRequestError(a,b,d,z)},sharedContext:{buildId:u}},N=new k.NodeNextRequest(a),O=new k.NodeNextResponse(b),P=l.NextRequestAdapter.fromNodeNextRequest(N,(0,l.signalFromNodeResponse)(b));try{let d=async c=>A.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==m.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),g=async g=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!(0,h.getRequestMeta)(a,"minimalMode")&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let e=await d(g);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,o.I)(N,O,e,M.renderOpts.pendingWaitUntil),null;{let a=await e.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(e.headers);j&&(b[r.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=r.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:e.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==f?void 0:f.isStale)&&await A.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})},z),b}},l=await A.handleResponse({req:a,nextConfig:w,cacheKey:G,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:y,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,h.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),x&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,p.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,h.getRequestMeta)(a,"minimalMode")&&F||m.delete(r.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,q.getCacheControlHeader)(l.cacheControl)),await (0,o.I)(N,O,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};L?await g(L):await K.withPropagatedContext(a.headers,()=>K.trace(m.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await A.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,o.I)(N,O,new Response(null,{status:500})),null}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},91645:a=>{a.exports=require("net")},97399:(a,b,c)=>{c.d(b,{I6:()=>i,Sr:()=>g,eA:()=>k});var d=c(10641),e=c(66007),f=c(65417);function g(a,b){if(!Array.isArray(a)||0===a.length)return d.NextResponse.json({error:"files must be a non-empty array"},{status:400});if(a.length>f.Mo)return d.NextResponse.json({error:`files exceeds the maximum of ${f.Mo}`},{status:400});for(let c of a){if("string"!=typeof c||0===c.length)return d.NextResponse.json({error:"files must contain only non-empty strings"},{status:400});if(!(0,e.B9)(c,b))return d.NextResponse.json({error:"Invalid file path"},{status:400})}return a}let h=/[\x00-\x20\x7F~^:?*[\\]/;function i(a){return"string"!=typeof a||0===a.length||a.length>255||a.startsWith("-")||a.startsWith("/")||a.endsWith("/")||a.includes("//")||a.includes("..")||a.startsWith(".")||a.endsWith(".")||a.endsWith(".lock")||a.includes("@{")||h.test(a)?d.NextResponse.json({error:"Invalid branch name",reason:"invalid_branch_name"},{status:400}):a}let j=/^\d+$/;function k(a){let b,c=()=>d.NextResponse.json({error:"Invalid stash index",reason:"invalid_stash_index"},{status:400});if("number"==typeof a){if(!Number.isInteger(a))return c();b=a}else{if("string"!=typeof a||!j.test(a))return c();b=parseInt(a,10)}return b<0||b>f.Kq?c():b}}};var b=require("../../../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[1331,641,3722,4390,9627,8807,406,6065,1944,9051],()=>b(b.s=57128));module.exports=c})();