commandmate 0.42.2 → 0.44.0

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 (624) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +176 -176
  3. package/.next/app-path-routes-manifest.json +34 -34
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +15 -15
  6. package/.next/required-server-files.json +1 -1
  7. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  8. package/.next/server/app/api/agents/update/route.js.nft.json +1 -1
  9. package/.next/server/app/api/agents/update/route_client-reference-manifest.js +1 -1
  10. package/.next/server/app/api/agents/versions/route.js.nft.json +1 -1
  11. package/.next/server/app/api/agents/versions/route_client-reference-manifest.js +1 -1
  12. package/.next/server/app/api/app/release-notes/route_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/app/update/route.js +2 -2
  14. package/.next/server/app/api/app/update/route.js.nft.json +1 -1
  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.js +1 -1
  17. package/.next/server/app/api/app/update-check/route.js.nft.json +1 -1
  18. package/.next/server/app/api/app/update-check/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  20. package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  21. package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  22. package/.next/server/app/api/capabilities/route.js +1 -1
  23. package/.next/server/app/api/capabilities/route_client-reference-manifest.js +1 -1
  24. package/.next/server/app/api/daily-summary/route.js +1 -1
  25. package/.next/server/app/api/daily-summary/route.js.nft.json +1 -1
  26. package/.next/server/app/api/daily-summary/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/daily-summary/status/route.js +1 -1
  28. package/.next/server/app/api/daily-summary/status/route.js.nft.json +1 -1
  29. package/.next/server/app/api/daily-summary/status/route_client-reference-manifest.js +1 -1
  30. package/.next/server/app/api/external-apps/[id]/health/route.js.nft.json +1 -1
  31. package/.next/server/app/api/external-apps/[id]/health/route_client-reference-manifest.js +1 -1
  32. package/.next/server/app/api/external-apps/[id]/route.js.nft.json +1 -1
  33. package/.next/server/app/api/external-apps/[id]/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/external-apps/route.js.nft.json +1 -1
  35. package/.next/server/app/api/external-apps/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/api/fs/browse/route.js.nft.json +1 -1
  37. package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -1
  38. package/.next/server/app/api/fs/recent-paths/route.js.nft.json +1 -1
  39. package/.next/server/app/api/fs/recent-paths/route_client-reference-manifest.js +1 -1
  40. package/.next/server/app/api/hooks/agent-event/route.js +103 -1
  41. package/.next/server/app/api/hooks/agent-event/route.js.nft.json +1 -1
  42. package/.next/server/app/api/hooks/agent-event/route_client-reference-manifest.js +1 -1
  43. package/.next/server/app/api/hooks/claude-done/route.js +2 -2
  44. package/.next/server/app/api/hooks/claude-done/route.js.nft.json +1 -1
  45. package/.next/server/app/api/hooks/claude-done/route_client-reference-manifest.js +1 -1
  46. package/.next/server/app/api/hooks/permission-request/route.js +1 -1
  47. package/.next/server/app/api/hooks/permission-request/route.js.nft.json +1 -1
  48. package/.next/server/app/api/hooks/permission-request/route_client-reference-manifest.js +1 -1
  49. package/.next/server/app/api/metrics/vibe/route.js.nft.json +1 -1
  50. package/.next/server/app/api/metrics/vibe/route_client-reference-manifest.js +1 -1
  51. package/.next/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
  52. package/.next/server/app/api/push/escalation/route.js +1 -1
  53. package/.next/server/app/api/push/escalation/route.js.nft.json +1 -1
  54. package/.next/server/app/api/push/escalation/route_client-reference-manifest.js +1 -1
  55. package/.next/server/app/api/push/subscriptions/route.js.nft.json +1 -1
  56. package/.next/server/app/api/push/subscriptions/route_client-reference-manifest.js +1 -1
  57. package/.next/server/app/api/push/vapid/route.js +1 -1
  58. package/.next/server/app/api/push/vapid/route.js.nft.json +1 -1
  59. package/.next/server/app/api/push/vapid/route_client-reference-manifest.js +1 -1
  60. package/.next/server/app/api/relays/[relayId]/cancel/route.js +1 -1
  61. package/.next/server/app/api/relays/[relayId]/cancel/route.js.nft.json +1 -1
  62. package/.next/server/app/api/relays/[relayId]/cancel/route_client-reference-manifest.js +1 -1
  63. package/.next/server/app/api/relays/route.js +1 -1
  64. package/.next/server/app/api/relays/route.js.nft.json +1 -1
  65. package/.next/server/app/api/relays/route_client-reference-manifest.js +1 -1
  66. package/.next/server/app/api/remote/pair/route_client-reference-manifest.js +1 -1
  67. package/.next/server/app/api/repositories/[id]/route.js.nft.json +1 -1
  68. package/.next/server/app/api/repositories/[id]/route_client-reference-manifest.js +1 -1
  69. package/.next/server/app/api/repositories/clone/[jobId]/route.js +1 -1
  70. package/.next/server/app/api/repositories/clone/[jobId]/route.js.nft.json +1 -1
  71. package/.next/server/app/api/repositories/clone/[jobId]/route_client-reference-manifest.js +1 -1
  72. package/.next/server/app/api/repositories/clone/route.js +1 -1
  73. package/.next/server/app/api/repositories/clone/route.js.nft.json +1 -1
  74. package/.next/server/app/api/repositories/clone/route_client-reference-manifest.js +1 -1
  75. package/.next/server/app/api/repositories/excluded/route.js.nft.json +1 -1
  76. package/.next/server/app/api/repositories/excluded/route_client-reference-manifest.js +1 -1
  77. package/.next/server/app/api/repositories/restore/route.js +1 -1
  78. package/.next/server/app/api/repositories/restore/route.js.nft.json +1 -1
  79. package/.next/server/app/api/repositories/restore/route_client-reference-manifest.js +1 -1
  80. package/.next/server/app/api/repositories/route.js +1 -1
  81. package/.next/server/app/api/repositories/route.js.nft.json +1 -1
  82. package/.next/server/app/api/repositories/route_client-reference-manifest.js +1 -1
  83. package/.next/server/app/api/repositories/scan/route.js +1 -1
  84. package/.next/server/app/api/repositories/scan/route.js.nft.json +1 -1
  85. package/.next/server/app/api/repositories/scan/route_client-reference-manifest.js +1 -1
  86. package/.next/server/app/api/repositories/sync/route.js +1 -1
  87. package/.next/server/app/api/repositories/sync/route.js.nft.json +1 -1
  88. package/.next/server/app/api/repositories/sync/route_client-reference-manifest.js +1 -1
  89. package/.next/server/app/api/repositories/validate-path/route.js.nft.json +1 -1
  90. package/.next/server/app/api/repositories/validate-path/route_client-reference-manifest.js +1 -1
  91. package/.next/server/app/api/settings/default-agents/route.js +1 -1
  92. package/.next/server/app/api/settings/default-agents/route.js.nft.json +1 -1
  93. package/.next/server/app/api/settings/default-agents/route_client-reference-manifest.js +1 -1
  94. package/.next/server/app/api/settings/default-surface-mode/route.js.nft.json +1 -1
  95. package/.next/server/app/api/settings/default-surface-mode/route_client-reference-manifest.js +1 -1
  96. package/.next/server/app/api/sidebar/group-order/route.js.nft.json +1 -1
  97. package/.next/server/app/api/sidebar/group-order/route_client-reference-manifest.js +1 -1
  98. package/.next/server/app/api/skills/[id]/route.js +1 -1
  99. package/.next/server/app/api/skills/[id]/route.js.nft.json +1 -1
  100. package/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
  101. package/.next/server/app/api/skills/installations/route.js +1 -1
  102. package/.next/server/app/api/skills/installations/route.js.nft.json +1 -1
  103. package/.next/server/app/api/skills/installations/route_client-reference-manifest.js +1 -1
  104. package/.next/server/app/api/skills/operations/route.js +2 -2
  105. package/.next/server/app/api/skills/operations/route.js.nft.json +1 -1
  106. package/.next/server/app/api/skills/operations/route_client-reference-manifest.js +1 -1
  107. package/.next/server/app/api/skills/reindex/route.js +1 -1
  108. package/.next/server/app/api/skills/reindex/route.js.nft.json +1 -1
  109. package/.next/server/app/api/skills/reindex/route_client-reference-manifest.js +1 -1
  110. package/.next/server/app/api/skills/route.js +1 -1
  111. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  112. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  113. package/.next/server/app/api/slash-commands/route.js +1 -1
  114. package/.next/server/app/api/slash-commands/route.js.nft.json +1 -1
  115. package/.next/server/app/api/slash-commands/route_client-reference-manifest.js +1 -1
  116. package/.next/server/app/api/tasks/[taskId]/cancel/route.js.nft.json +1 -1
  117. package/.next/server/app/api/tasks/[taskId]/cancel/route_client-reference-manifest.js +1 -1
  118. package/.next/server/app/api/tasks/[taskId]/route.js.nft.json +1 -1
  119. package/.next/server/app/api/tasks/[taskId]/route_client-reference-manifest.js +1 -1
  120. package/.next/server/app/api/templates/[id]/route.js.nft.json +1 -1
  121. package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +1 -1
  122. package/.next/server/app/api/templates/route.js.nft.json +1 -1
  123. package/.next/server/app/api/templates/route_client-reference-manifest.js +1 -1
  124. package/.next/server/app/api/verification/runs/[runId]/route.js.nft.json +1 -1
  125. package/.next/server/app/api/verification/runs/[runId]/route_client-reference-manifest.js +1 -1
  126. package/.next/server/app/api/verification/runs/route.js.nft.json +1 -1
  127. package/.next/server/app/api/verification/runs/route_client-reference-manifest.js +1 -1
  128. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js +1 -1
  129. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js.nft.json +1 -1
  130. package/.next/server/app/api/worktrees/[id]/auto-yes/route_client-reference-manifest.js +1 -1
  131. package/.next/server/app/api/worktrees/[id]/capture/route.js +1 -1
  132. package/.next/server/app/api/worktrees/[id]/capture/route.js.nft.json +1 -1
  133. package/.next/server/app/api/worktrees/[id]/capture/route_client-reference-manifest.js +1 -1
  134. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js +1 -1
  135. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js.nft.json +1 -1
  136. package/.next/server/app/api/worktrees/[id]/clear-composer/route_client-reference-manifest.js +1 -1
  137. package/.next/server/app/api/worktrees/[id]/cli-reference/route.js.nft.json +1 -1
  138. package/.next/server/app/api/worktrees/[id]/cli-reference/route_client-reference-manifest.js +1 -1
  139. package/.next/server/app/api/worktrees/[id]/cli-tool/route.js.nft.json +1 -1
  140. package/.next/server/app/api/worktrees/[id]/cli-tool/route_client-reference-manifest.js +1 -1
  141. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js +3 -1
  142. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js.nft.json +1 -1
  143. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route_client-reference-manifest.js +1 -1
  144. package/.next/server/app/api/worktrees/[id]/current-output/route.js +1 -1
  145. package/.next/server/app/api/worktrees/[id]/current-output/route.js.nft.json +1 -1
  146. package/.next/server/app/api/worktrees/[id]/current-output/route_client-reference-manifest.js +1 -1
  147. package/.next/server/app/api/worktrees/[id]/direct-input/route.js +1 -1
  148. package/.next/server/app/api/worktrees/[id]/direct-input/route.js.nft.json +1 -1
  149. package/.next/server/app/api/worktrees/[id]/direct-input/route_client-reference-manifest.js +1 -1
  150. package/.next/server/app/api/worktrees/[id]/env/route.js.nft.json +1 -1
  151. package/.next/server/app/api/worktrees/[id]/env/route_client-reference-manifest.js +1 -1
  152. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route.js +1 -1
  153. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route.js.nft.json +1 -1
  154. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route_client-reference-manifest.js +1 -1
  155. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js +3 -1
  156. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js.nft.json +1 -1
  157. package/.next/server/app/api/worktrees/[id]/execution-logs/route_client-reference-manifest.js +1 -1
  158. package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js +1 -1
  159. package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js.nft.json +1 -1
  160. package/.next/server/app/api/worktrees/[id]/files/[...path]/route_client-reference-manifest.js +1 -1
  161. package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js.nft.json +1 -1
  162. package/.next/server/app/api/worktrees/[id]/git/branch/create/route_client-reference-manifest.js +1 -1
  163. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js.nft.json +1 -1
  164. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route_client-reference-manifest.js +1 -1
  165. package/.next/server/app/api/worktrees/[id]/git/branches/route.js.nft.json +1 -1
  166. package/.next/server/app/api/worktrees/[id]/git/branches/route_client-reference-manifest.js +1 -1
  167. package/.next/server/app/api/worktrees/[id]/git/checkout/route.js.nft.json +1 -1
  168. package/.next/server/app/api/worktrees/[id]/git/checkout/route_client-reference-manifest.js +1 -1
  169. package/.next/server/app/api/worktrees/[id]/git/commit/route.js.nft.json +1 -1
  170. package/.next/server/app/api/worktrees/[id]/git/commit/route_client-reference-manifest.js +1 -1
  171. package/.next/server/app/api/worktrees/[id]/git/diff/route.js.nft.json +1 -1
  172. package/.next/server/app/api/worktrees/[id]/git/diff/route_client-reference-manifest.js +1 -1
  173. package/.next/server/app/api/worktrees/[id]/git/fetch/route.js.nft.json +1 -1
  174. package/.next/server/app/api/worktrees/[id]/git/fetch/route_client-reference-manifest.js +1 -1
  175. package/.next/server/app/api/worktrees/[id]/git/log/route.js.nft.json +1 -1
  176. package/.next/server/app/api/worktrees/[id]/git/log/route_client-reference-manifest.js +1 -1
  177. package/.next/server/app/api/worktrees/[id]/git/pull/route.js.nft.json +1 -1
  178. package/.next/server/app/api/worktrees/[id]/git/pull/route_client-reference-manifest.js +1 -1
  179. package/.next/server/app/api/worktrees/[id]/git/push/route.js.nft.json +1 -1
  180. package/.next/server/app/api/worktrees/[id]/git/push/route_client-reference-manifest.js +1 -1
  181. package/.next/server/app/api/worktrees/[id]/git/reset/route.js.nft.json +1 -1
  182. package/.next/server/app/api/worktrees/[id]/git/reset/route_client-reference-manifest.js +1 -1
  183. package/.next/server/app/api/worktrees/[id]/git/revert/route.js.nft.json +1 -1
  184. package/.next/server/app/api/worktrees/[id]/git/revert/route_client-reference-manifest.js +1 -1
  185. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route.js.nft.json +1 -1
  186. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route_client-reference-manifest.js +1 -1
  187. package/.next/server/app/api/worktrees/[id]/git/stage/route.js.nft.json +1 -1
  188. package/.next/server/app/api/worktrees/[id]/git/stage/route_client-reference-manifest.js +1 -1
  189. package/.next/server/app/api/worktrees/[id]/git/staged/route.js.nft.json +1 -1
  190. package/.next/server/app/api/worktrees/[id]/git/staged/route_client-reference-manifest.js +1 -1
  191. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route.js.nft.json +1 -1
  192. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route_client-reference-manifest.js +1 -1
  193. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js.nft.json +1 -1
  194. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route_client-reference-manifest.js +1 -1
  195. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js.nft.json +1 -1
  196. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route_client-reference-manifest.js +1 -1
  197. package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js.nft.json +1 -1
  198. package/.next/server/app/api/worktrees/[id]/git/stash/push/route_client-reference-manifest.js +1 -1
  199. package/.next/server/app/api/worktrees/[id]/git/stash/route.js.nft.json +1 -1
  200. package/.next/server/app/api/worktrees/[id]/git/stash/route_client-reference-manifest.js +1 -1
  201. package/.next/server/app/api/worktrees/[id]/git/status/route.js.nft.json +1 -1
  202. package/.next/server/app/api/worktrees/[id]/git/status/route_client-reference-manifest.js +1 -1
  203. package/.next/server/app/api/worktrees/[id]/git/unstage/route.js.nft.json +1 -1
  204. package/.next/server/app/api/worktrees/[id]/git/unstage/route_client-reference-manifest.js +1 -1
  205. package/.next/server/app/api/worktrees/[id]/git/working-diff/route.js.nft.json +1 -1
  206. package/.next/server/app/api/worktrees/[id]/git/working-diff/route_client-reference-manifest.js +1 -1
  207. package/.next/server/app/api/worktrees/[id]/instances/notes/route.js.nft.json +1 -1
  208. package/.next/server/app/api/worktrees/[id]/instances/notes/route_client-reference-manifest.js +1 -1
  209. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js +1 -1
  210. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js.nft.json +1 -1
  211. package/.next/server/app/api/worktrees/[id]/instances/opencode/route_client-reference-manifest.js +1 -1
  212. package/.next/server/app/api/worktrees/[id]/interrupt/route.js +1 -1
  213. package/.next/server/app/api/worktrees/[id]/interrupt/route.js.nft.json +1 -1
  214. package/.next/server/app/api/worktrees/[id]/interrupt/route_client-reference-manifest.js +1 -1
  215. package/.next/server/app/api/worktrees/[id]/kill-session/route.js +1 -1
  216. package/.next/server/app/api/worktrees/[id]/kill-session/route.js.nft.json +1 -1
  217. package/.next/server/app/api/worktrees/[id]/kill-session/route_client-reference-manifest.js +1 -1
  218. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route.js.nft.json +1 -1
  219. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route_client-reference-manifest.js +1 -1
  220. package/.next/server/app/api/worktrees/[id]/logs/route.js.nft.json +1 -1
  221. package/.next/server/app/api/worktrees/[id]/logs/route_client-reference-manifest.js +1 -1
  222. package/.next/server/app/api/worktrees/[id]/marp-render/route.js +7 -7
  223. package/.next/server/app/api/worktrees/[id]/marp-render/route.js.nft.json +1 -1
  224. package/.next/server/app/api/worktrees/[id]/marp-render/route_client-reference-manifest.js +1 -1
  225. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js.nft.json +1 -1
  226. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route_client-reference-manifest.js +1 -1
  227. package/.next/server/app/api/worktrees/[id]/memos/route.js.nft.json +1 -1
  228. package/.next/server/app/api/worktrees/[id]/memos/route_client-reference-manifest.js +1 -1
  229. package/.next/server/app/api/worktrees/[id]/messages/route.js.nft.json +1 -1
  230. package/.next/server/app/api/worktrees/[id]/messages/route_client-reference-manifest.js +1 -1
  231. package/.next/server/app/api/worktrees/[id]/opencode/diff/route.js.nft.json +1 -1
  232. package/.next/server/app/api/worktrees/[id]/opencode/diff/route_client-reference-manifest.js +1 -1
  233. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js +1 -1
  234. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js.nft.json +1 -1
  235. package/.next/server/app/api/worktrees/[id]/opencode/session/route_client-reference-manifest.js +1 -1
  236. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js +1 -1
  237. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js.nft.json +1 -1
  238. package/.next/server/app/api/worktrees/[id]/opencode/share/route_client-reference-manifest.js +1 -1
  239. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js +1 -1
  240. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js.nft.json +1 -1
  241. package/.next/server/app/api/worktrees/[id]/prompt-response/route_client-reference-manifest.js +1 -1
  242. package/.next/server/app/api/worktrees/[id]/resolve-target/route.js.nft.json +1 -1
  243. package/.next/server/app/api/worktrees/[id]/resolve-target/route_client-reference-manifest.js +1 -1
  244. package/.next/server/app/api/worktrees/[id]/respond/route.js +1 -1
  245. package/.next/server/app/api/worktrees/[id]/respond/route.js.nft.json +1 -1
  246. package/.next/server/app/api/worktrees/[id]/respond/route_client-reference-manifest.js +1 -1
  247. package/.next/server/app/api/worktrees/[id]/route.js +1 -103
  248. package/.next/server/app/api/worktrees/[id]/route.js.nft.json +1 -1
  249. package/.next/server/app/api/worktrees/[id]/route_client-reference-manifest.js +1 -1
  250. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js +3 -1
  251. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js.nft.json +1 -1
  252. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route_client-reference-manifest.js +1 -1
  253. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js +3 -1
  254. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js.nft.json +1 -1
  255. package/.next/server/app/api/worktrees/[id]/schedules/active/route_client-reference-manifest.js +1 -1
  256. package/.next/server/app/api/worktrees/[id]/schedules/route.js +3 -1
  257. package/.next/server/app/api/worktrees/[id]/schedules/route.js.nft.json +1 -1
  258. package/.next/server/app/api/worktrees/[id]/schedules/route_client-reference-manifest.js +1 -1
  259. package/.next/server/app/api/worktrees/[id]/search/route.js +1 -1
  260. package/.next/server/app/api/worktrees/[id]/search/route.js.nft.json +1 -1
  261. package/.next/server/app/api/worktrees/[id]/search/route_client-reference-manifest.js +1 -1
  262. package/.next/server/app/api/worktrees/[id]/send/route.js +1 -103
  263. package/.next/server/app/api/worktrees/[id]/send/route.js.nft.json +1 -1
  264. package/.next/server/app/api/worktrees/[id]/send/route_client-reference-manifest.js +1 -1
  265. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js +103 -1
  266. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js.nft.json +1 -1
  267. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route_client-reference-manifest.js +1 -1
  268. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js +1 -1
  269. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js.nft.json +1 -1
  270. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route_client-reference-manifest.js +1 -1
  271. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js +1 -1
  272. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js.nft.json +1 -1
  273. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route_client-reference-manifest.js +1 -1
  274. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js +1 -1
  275. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js.nft.json +1 -1
  276. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route_client-reference-manifest.js +1 -1
  277. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js +1 -1
  278. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js.nft.json +1 -1
  279. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route_client-reference-manifest.js +1 -1
  280. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route.js +1 -1
  281. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route.js.nft.json +1 -1
  282. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route_client-reference-manifest.js +1 -1
  283. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js +1 -1
  284. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js.nft.json +1 -1
  285. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route_client-reference-manifest.js +1 -1
  286. package/.next/server/app/api/worktrees/[id]/skills/route.js +1 -1
  287. package/.next/server/app/api/worktrees/[id]/skills/route.js.nft.json +1 -1
  288. package/.next/server/app/api/worktrees/[id]/skills/route_client-reference-manifest.js +1 -1
  289. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js +1 -1
  290. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js.nft.json +1 -1
  291. package/.next/server/app/api/worktrees/[id]/slash-commands/route_client-reference-manifest.js +1 -1
  292. package/.next/server/app/api/worktrees/[id]/special-keys/route.js +1 -1
  293. package/.next/server/app/api/worktrees/[id]/special-keys/route.js.nft.json +1 -1
  294. package/.next/server/app/api/worktrees/[id]/special-keys/route_client-reference-manifest.js +1 -1
  295. package/.next/server/app/api/worktrees/[id]/tasks/route.js.nft.json +1 -1
  296. package/.next/server/app/api/worktrees/[id]/tasks/route_client-reference-manifest.js +1 -1
  297. package/.next/server/app/api/worktrees/[id]/terminal/route.js +103 -1
  298. package/.next/server/app/api/worktrees/[id]/terminal/route.js.nft.json +1 -1
  299. package/.next/server/app/api/worktrees/[id]/terminal/route_client-reference-manifest.js +1 -1
  300. package/.next/server/app/api/worktrees/[id]/timers/history/route.js.nft.json +1 -1
  301. package/.next/server/app/api/worktrees/[id]/timers/history/route_client-reference-manifest.js +1 -1
  302. package/.next/server/app/api/worktrees/[id]/timers/route.js +1 -1
  303. package/.next/server/app/api/worktrees/[id]/timers/route.js.nft.json +1 -1
  304. package/.next/server/app/api/worktrees/[id]/timers/route_client-reference-manifest.js +1 -1
  305. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route.js.nft.json +1 -1
  306. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
  307. package/.next/server/app/api/worktrees/[id]/todos/route.js.nft.json +1 -1
  308. package/.next/server/app/api/worktrees/[id]/todos/route_client-reference-manifest.js +1 -1
  309. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route.js.nft.json +1 -1
  310. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route_client-reference-manifest.js +1 -1
  311. package/.next/server/app/api/worktrees/[id]/tree/route.js.nft.json +1 -1
  312. package/.next/server/app/api/worktrees/[id]/tree/route_client-reference-manifest.js +1 -1
  313. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route.js.nft.json +1 -1
  314. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route_client-reference-manifest.js +1 -1
  315. package/.next/server/app/api/worktrees/[id]/verify/config/route.js.nft.json +1 -1
  316. package/.next/server/app/api/worktrees/[id]/verify/config/route_client-reference-manifest.js +1 -1
  317. package/.next/server/app/api/worktrees/[id]/verify/route.js +1 -1
  318. package/.next/server/app/api/worktrees/[id]/verify/route.js.nft.json +1 -1
  319. package/.next/server/app/api/worktrees/[id]/verify/route_client-reference-manifest.js +1 -1
  320. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route.js +1 -1
  321. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route.js.nft.json +1 -1
  322. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/cancel/route_client-reference-manifest.js +1 -1
  323. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route.js.nft.json +1 -1
  324. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route_client-reference-manifest.js +1 -1
  325. package/.next/server/app/api/worktrees/[id]/verify/runs/route.js.nft.json +1 -1
  326. package/.next/server/app/api/worktrees/[id]/verify/runs/route_client-reference-manifest.js +1 -1
  327. package/.next/server/app/api/worktrees/[id]/viewed/route.js.nft.json +1 -1
  328. package/.next/server/app/api/worktrees/[id]/viewed/route_client-reference-manifest.js +1 -1
  329. package/.next/server/app/api/worktrees/apply-default-agents/route.js.nft.json +1 -1
  330. package/.next/server/app/api/worktrees/apply-default-agents/route_client-reference-manifest.js +1 -1
  331. package/.next/server/app/api/worktrees/route.js +1 -1
  332. package/.next/server/app/api/worktrees/route.js.nft.json +1 -1
  333. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
  334. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  335. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  336. package/.next/server/app/more/page_client-reference-manifest.js +1 -1
  337. package/.next/server/app/offline/page_client-reference-manifest.js +1 -1
  338. package/.next/server/app/page_client-reference-manifest.js +1 -1
  339. package/.next/server/app/proxy/[...path]/route.js.nft.json +1 -1
  340. package/.next/server/app/proxy/[...path]/route_client-reference-manifest.js +1 -1
  341. package/.next/server/app/repositories/page_client-reference-manifest.js +1 -1
  342. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  343. package/.next/server/app/sessions/page.js +1 -1
  344. package/.next/server/app/sessions/page.js.nft.json +1 -1
  345. package/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  346. package/.next/server/app/skills/[skillId]/page.js +1 -1
  347. package/.next/server/app/skills/[skillId]/page.js.nft.json +1 -1
  348. package/.next/server/app/skills/[skillId]/page_client-reference-manifest.js +1 -1
  349. package/.next/server/app/skills/installed/page_client-reference-manifest.js +1 -1
  350. package/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  351. package/.next/server/app/worktrees/[id]/files/[...path]/page.js +1 -1
  352. package/.next/server/app/worktrees/[id]/files/[...path]/page.js.nft.json +1 -1
  353. package/.next/server/app/worktrees/[id]/files/[...path]/page_client-reference-manifest.js +1 -1
  354. package/.next/server/app/worktrees/[id]/page.js +9 -9
  355. package/.next/server/app/worktrees/[id]/page.js.nft.json +1 -1
  356. package/.next/server/app/worktrees/[id]/page_client-reference-manifest.js +1 -1
  357. package/.next/server/app/worktrees/[id]/terminal/page.js +1 -1
  358. package/.next/server/app/worktrees/[id]/terminal/page.js.nft.json +1 -1
  359. package/.next/server/app/worktrees/[id]/terminal/page_client-reference-manifest.js +1 -1
  360. package/.next/server/app-paths-manifest.json +34 -34
  361. package/.next/server/chunks/1068.js +1 -1
  362. package/.next/server/chunks/1210.js +1 -1
  363. package/.next/server/chunks/1501.js +3 -3
  364. package/.next/server/chunks/2119.js +1 -1
  365. package/.next/server/chunks/22.js +1 -1
  366. package/.next/server/chunks/2283.js +15 -0
  367. package/.next/server/chunks/2328.js +1 -1
  368. package/.next/server/chunks/2404.js +4 -3
  369. package/.next/server/chunks/2445.js +1 -1
  370. package/.next/server/chunks/252.js +1 -1
  371. package/.next/server/chunks/2816.js +1 -1
  372. package/.next/server/chunks/3543.js +1 -1
  373. package/.next/server/chunks/3730.js +1 -1
  374. package/.next/server/chunks/3945.js +1 -1
  375. package/.next/server/chunks/4207.js +3 -3
  376. package/.next/server/chunks/4802.js +1 -1
  377. package/.next/server/chunks/488.js +1 -0
  378. package/.next/server/chunks/5064.js +1 -1
  379. package/.next/server/chunks/5326.js +1 -1
  380. package/.next/server/chunks/5456.js +1 -1
  381. package/.next/server/chunks/5571.js +1 -1
  382. package/.next/server/chunks/5775.js +1 -1
  383. package/.next/server/chunks/611.js +1 -1
  384. package/.next/server/chunks/6130.js +1 -1
  385. package/.next/server/chunks/6285.js +1 -1
  386. package/.next/server/chunks/6401.js +1 -1
  387. package/.next/server/chunks/6474.js +14 -0
  388. package/.next/server/chunks/650.js +1 -1
  389. package/.next/server/chunks/6661.js +1 -1
  390. package/.next/server/chunks/6781.js +1 -1
  391. package/.next/server/chunks/6793.js +1 -1
  392. package/.next/server/chunks/6927.js +1 -0
  393. package/.next/server/chunks/7491.js +3 -0
  394. package/.next/server/chunks/7506.js +1 -1
  395. package/.next/server/chunks/7685.js +1 -1
  396. package/.next/server/chunks/7905.js +1 -1
  397. package/.next/server/chunks/8543.js +1 -1
  398. package/.next/server/chunks/8581.js +2 -2
  399. package/.next/server/chunks/8728.js +2 -2
  400. package/.next/server/chunks/8782.js +1 -0
  401. package/.next/server/chunks/8791.js +1 -1
  402. package/.next/server/chunks/8800.js +4 -3
  403. package/.next/server/chunks/8918.js +108 -6
  404. package/.next/server/chunks/9130.js +3 -3
  405. package/.next/server/chunks/{8052.js → 9353.js} +4 -2
  406. package/.next/server/chunks/9390.js +3 -0
  407. package/.next/server/chunks/9627.js +3 -3
  408. package/.next/server/chunks/967.js +1 -0
  409. package/.next/server/chunks/9731.js +3 -3
  410. package/.next/server/chunks/9882.js +3 -3
  411. package/.next/server/middleware-manifest.json +5 -5
  412. package/.next/server/pages/500.html +1 -1
  413. package/.next/server/pages-manifest.json +1 -1
  414. package/.next/server/server-reference-manifest.json +1 -1
  415. package/.next/server/src/middleware.js +2 -2
  416. package/.next/server/src/middleware.js.map +1 -1
  417. package/.next/static/chunks/2053-85a974ddfe7498fe.js +1 -0
  418. package/.next/static/chunks/{2407-6b9e12c099fa598c.js → 2407-340774f1a24f2b45.js} +1 -1
  419. package/.next/static/chunks/5449-6cb80bab2bd06b79.js +1 -0
  420. package/.next/static/chunks/5521-c358c31f60e5e689.js +1 -0
  421. package/.next/static/chunks/591-0a45801e83f26f24.js +1 -0
  422. package/.next/static/chunks/8165-3853772f6ae1299b.js +1 -0
  423. package/.next/static/chunks/{8566-a6a7c70558927410.js → 8566-aeda747542072ace.js} +1 -1
  424. package/.next/static/chunks/8811-29eaa24237f48558.js +1 -0
  425. package/.next/static/chunks/{9619-22adf5367c4b7080.js → 9619-84aced0846cbe3ac.js} +1 -1
  426. package/.next/static/chunks/app/{layout-5b95e1236dcd9ef6.js → layout-0fc249fb7de75a27.js} +1 -1
  427. package/.next/static/chunks/app/review/page-ff9efae3f86eb840.js +1 -0
  428. package/.next/static/chunks/app/sessions/page-55297155e7bf01b9.js +1 -0
  429. package/.next/static/chunks/app/skills/[skillId]/page-9ee7a381636e60cb.js +1 -0
  430. package/.next/static/chunks/app/skills/page-182e16168b2fc098.js +1 -0
  431. package/.next/static/chunks/app/worktrees/[id]/page-d2103e0c25be83c8.js +1 -0
  432. package/.next/static/css/38070d879efa1371.css +1 -0
  433. package/.next/trace +13 -13
  434. package/README.md +58 -620
  435. package/dist/cli/commands/ask.d.ts.map +1 -1
  436. package/dist/cli/commands/ask.js +23 -149
  437. package/dist/cli/commands/capture.d.ts.map +1 -1
  438. package/dist/cli/commands/capture.js +11 -1
  439. package/dist/cli/commands/docs.d.ts.map +1 -1
  440. package/dist/cli/commands/docs.js +5 -0
  441. package/dist/cli/commands/remote.d.ts +24 -1
  442. package/dist/cli/commands/remote.d.ts.map +1 -1
  443. package/dist/cli/commands/remote.js +155 -6
  444. package/dist/cli/commands/reply.d.ts +40 -0
  445. package/dist/cli/commands/reply.d.ts.map +1 -0
  446. package/dist/cli/commands/reply.js +133 -0
  447. package/dist/cli/commands/respond.d.ts.map +1 -1
  448. package/dist/cli/commands/respond.js +255 -112
  449. package/dist/cli/commands/stop.d.ts.map +1 -1
  450. package/dist/cli/commands/stop.js +53 -1
  451. package/dist/cli/commands/sync.js +3 -3
  452. package/dist/cli/commands/wait.d.ts +5 -0
  453. package/dist/cli/commands/wait.d.ts.map +1 -1
  454. package/dist/cli/commands/wait.js +10 -1
  455. package/dist/cli/docs/agent-operations.d.ts +2 -2
  456. package/dist/cli/docs/agent-operations.d.ts.map +1 -1
  457. package/dist/cli/docs/agent-operations.js +13 -0
  458. package/dist/cli/docs/setup-guide.d.ts +14 -0
  459. package/dist/cli/docs/setup-guide.d.ts.map +1 -0
  460. package/dist/cli/docs/setup-guide.js +366 -0
  461. package/dist/cli/program.d.ts.map +1 -1
  462. package/dist/cli/program.js +4 -0
  463. package/dist/cli/types/api-responses.d.ts +11 -0
  464. package/dist/cli/types/api-responses.d.ts.map +1 -1
  465. package/dist/cli/types/index.d.ts +2 -0
  466. package/dist/cli/types/index.d.ts.map +1 -1
  467. package/dist/cli/utils/daemon.d.ts +42 -2
  468. package/dist/cli/utils/daemon.d.ts.map +1 -1
  469. package/dist/cli/utils/daemon.js +222 -40
  470. package/dist/cli/utils/docs-reader.d.ts +6 -0
  471. package/dist/cli/utils/docs-reader.d.ts.map +1 -1
  472. package/dist/cli/utils/docs-reader.js +14 -13
  473. package/dist/cli/utils/npm-runner.d.ts +12 -0
  474. package/dist/cli/utils/npm-runner.d.ts.map +1 -1
  475. package/dist/cli/utils/npm-runner.js +36 -0
  476. package/dist/cli/utils/process-inspect.d.ts +55 -0
  477. package/dist/cli/utils/process-inspect.d.ts.map +1 -0
  478. package/dist/cli/utils/process-inspect.js +214 -0
  479. package/dist/cli/utils/remote-pairing.d.ts +68 -0
  480. package/dist/cli/utils/remote-pairing.d.ts.map +1 -0
  481. package/dist/cli/utils/remote-pairing.js +117 -0
  482. package/dist/cli/utils/reply-ledger.d.ts +95 -0
  483. package/dist/cli/utils/reply-ledger.d.ts.map +1 -0
  484. package/dist/cli/utils/reply-ledger.js +187 -0
  485. package/dist/cli/utils/server-identity.d.ts +50 -0
  486. package/dist/cli/utils/server-identity.d.ts.map +1 -0
  487. package/dist/cli/utils/server-identity.js +118 -0
  488. package/dist/cli/utils/server-ready.d.ts +13 -0
  489. package/dist/cli/utils/server-ready.d.ts.map +1 -1
  490. package/dist/cli/utils/server-ready.js +16 -0
  491. package/dist/lib/cli-tools/copilot-executable.d.ts +9 -0
  492. package/dist/lib/cli-tools/copilot-executable.d.ts.map +1 -1
  493. package/dist/lib/cli-tools/copilot-executable.js +21 -5
  494. package/dist/lib/cli-tools/opencode-executable.d.ts +103 -0
  495. package/dist/lib/cli-tools/opencode-executable.d.ts.map +1 -0
  496. package/dist/lib/cli-tools/opencode-executable.js +179 -0
  497. package/dist/lib/cli-tools/types.d.ts +1 -1
  498. package/dist/lib/cli-tools/types.d.ts.map +1 -1
  499. package/dist/lib/cli-tools/types.js +5 -1
  500. package/dist/lib/detection/tools/verified-against.d.ts +15 -0
  501. package/dist/lib/detection/tools/verified-against.d.ts.map +1 -1
  502. package/dist/lib/detection/tools/verified-against.js +17 -1
  503. package/dist/lib/detection/version-probes.d.ts.map +1 -1
  504. package/dist/lib/detection/version-probes.js +14 -1
  505. package/dist/lib/security/pairing-code.d.ts +2 -1
  506. package/dist/lib/security/pairing-code.d.ts.map +1 -1
  507. package/dist/lib/session/tmux-session-surface.d.ts.map +1 -1
  508. package/dist/lib/session/tmux-session-surface.js +1 -1
  509. package/dist/server/locales/en/worktree.json +72 -20
  510. package/dist/server/locales/ja/worktree.json +72 -20
  511. package/dist/server/server.js +23 -0
  512. package/dist/server/src/config/cli-tool-timing-config.js +19 -1
  513. package/dist/server/src/config/detection-evidence-config.js +3 -0
  514. package/dist/server/src/config/image-extensions.js +1 -0
  515. package/dist/server/src/config/schedule-config.js +55 -1
  516. package/dist/server/src/lib/auto-yes-poller.js +69 -4
  517. package/dist/server/src/lib/cli-tools/agent-mode-spec.js +54 -2
  518. package/dist/server/src/lib/cli-tools/base.js +6 -2
  519. package/dist/server/src/lib/cli-tools/command-code-plan-review.js +175 -0
  520. package/dist/server/src/lib/cli-tools/command-code.js +81 -2
  521. package/dist/server/src/lib/cli-tools/composer-spec.js +10 -0
  522. package/dist/server/src/lib/cli-tools/copilot-executable.js +21 -5
  523. package/dist/server/src/lib/cli-tools/graceful-exit.js +15 -1
  524. package/dist/server/src/lib/cli-tools/index.js +3 -1
  525. package/dist/server/src/lib/cli-tools/install-hints.js +9 -3
  526. package/dist/server/src/lib/cli-tools/liveness-spec.js +19 -0
  527. package/dist/server/src/lib/cli-tools/manager.js +2 -0
  528. package/dist/server/src/lib/cli-tools/opencode-executable.js +179 -0
  529. package/dist/server/src/lib/cli-tools/opencode-v2.js +369 -0
  530. package/dist/server/src/lib/cli-tools/opencode.js +29 -5
  531. package/dist/server/src/lib/cli-tools/types.js +5 -1
  532. package/dist/server/src/lib/cmate-cli-tool-parser.js +65 -7
  533. package/dist/server/src/lib/cmate-parser.js +12 -0
  534. package/dist/server/src/lib/cmate-validator.js +13 -1
  535. package/dist/server/src/lib/detection/cli-patterns.js +172 -3
  536. package/dist/server/src/lib/detection/model-info-extractor.js +79 -7
  537. package/dist/server/src/lib/detection/status-detector.js +10 -1
  538. package/dist/server/src/lib/detection/tools/codex/cli-patterns.js +2 -1
  539. package/dist/server/src/lib/detection/tools/codex/detect.js +26 -0
  540. package/dist/server/src/lib/detection/tools/command-code/plan-review-state.js +75 -0
  541. package/dist/server/src/lib/detection/tools/opencode-v2/detect.js +253 -0
  542. package/dist/server/src/lib/detection/tools/opencode-v2/dialog-title.js +48 -0
  543. package/dist/server/src/lib/detection/tools/registry.js +2 -0
  544. package/dist/server/src/lib/detection/tools/run-detection.js +9 -0
  545. package/dist/server/src/lib/detection/tools/verified-against.js +17 -1
  546. package/dist/server/src/lib/detection/upstream-faults.js +8 -0
  547. package/dist/server/src/lib/detection/version-probes.js +14 -1
  548. package/dist/server/src/lib/hooks/agent-session-telemetry.js +36 -1
  549. package/dist/server/src/lib/hooks/sources/claude/transcript.js +33 -1
  550. package/dist/server/src/lib/hooks/sources/opencode/log-diagnosis.js +105 -0
  551. package/dist/server/src/lib/hooks/sources/opencode/source.js +7 -1
  552. package/dist/server/src/lib/hooks/sources/opencode-v2/client.js +422 -0
  553. package/dist/server/src/lib/hooks/sources/opencode-v2/decision-labels.js +24 -0
  554. package/dist/server/src/lib/hooks/sources/opencode-v2/history.js +421 -0
  555. package/dist/server/src/lib/hooks/sources/opencode-v2/ingest.js +271 -0
  556. package/dist/server/src/lib/hooks/sources/opencode-v2/mappers.js +165 -0
  557. package/dist/server/src/lib/hooks/sources/opencode-v2/payloads.js +351 -0
  558. package/dist/server/src/lib/hooks/sources/opencode-v2/ports.js +230 -0
  559. package/dist/server/src/lib/hooks/sources/opencode-v2/reattach.js +149 -0
  560. package/dist/server/src/lib/hooks/sources/opencode-v2/runtime.js +180 -0
  561. package/dist/server/src/lib/hooks/sources/opencode-v2/secrets.js +182 -0
  562. package/dist/server/src/lib/hooks/sources/opencode-v2/source.js +295 -0
  563. package/dist/server/src/lib/hooks/sources/opencode-v2/subscription.js +455 -0
  564. package/dist/server/src/lib/hooks/sources/opencode-v2/tool-id.js +18 -0
  565. package/dist/server/src/lib/hooks/sources/opencode-v2/usage.js +214 -0
  566. package/dist/server/src/lib/hooks/sources/registry.js +2 -0
  567. package/dist/server/src/lib/hooks/structured-decision-response.js +14 -5
  568. package/dist/server/src/lib/job-executor.js +2 -1
  569. package/dist/server/src/lib/polling/auto-yes-dialog-gate.js +15 -1
  570. package/dist/server/src/lib/polling/structured-history-gate.js +19 -5
  571. package/dist/server/src/lib/relay/relay-delivery.js +4 -1
  572. package/dist/server/src/lib/session/agent-event-state.js +24 -0
  573. package/dist/server/src/lib/session/claude-executor.js +186 -12
  574. package/dist/server/src/lib/session/claude-session.js +131 -15
  575. package/dist/server/src/lib/session/current-output-builder.js +27 -3
  576. package/dist/server/src/lib/session/send-user-message.js +4 -0
  577. package/dist/server/src/lib/session/session-start-error.js +20 -0
  578. package/dist/server/src/lib/session/structured-prompt.js +54 -0
  579. package/dist/server/src/lib/session/tmux-session-surface.js +1 -1
  580. package/dist/server/src/lib/skills/agent-state-paths.js +39 -0
  581. package/dist/server/src/lib/skills/compatibility-matrix.js +65 -0
  582. package/dist/server/src/lib/skills/receipt-owned-paths.js +118 -0
  583. package/dist/server/src/lib/tmux/tmux.js +73 -2
  584. package/dist/server/src/lib/verification/env-clean-gate.js +281 -10
  585. package/dist/server/src/lib/verification/gate-runner.js +29 -2
  586. package/dist/server/src/lib/verification/scope-gate.js +58 -4
  587. package/dist/server/src/types/cli-tool-contracts.js +10 -2
  588. package/dist/types/cli-tool-contracts.d.ts +16 -5
  589. package/dist/types/cli-tool-contracts.d.ts.map +1 -1
  590. package/dist/types/cli-tool-contracts.js +10 -2
  591. package/docs/en/architecture.md +722 -0
  592. package/docs/en/user-guide/agents-guide.md +306 -0
  593. package/docs/en/user-guide/cli-setup-guide.md +676 -0
  594. package/docs/en/user-guide/cmate-schedules-guide.md +388 -0
  595. package/docs/en/user-guide/commands-guide.md +467 -0
  596. package/docs/en/user-guide/quick-start.md +231 -0
  597. package/docs/en/user-guide/webapp-guide.md +1020 -0
  598. package/docs/en/user-guide/workflow-examples.md +463 -0
  599. package/package.json +19 -7
  600. package/release-notes/0.43.0.json +130 -0
  601. package/release-notes/0.44.0.json +82 -0
  602. package/scripts/hooks/cmate-agent-event.sh +14 -0
  603. package/scripts/opencode-v2/launch.sh +226 -0
  604. package/.next/server/chunks/1990.js +0 -103
  605. package/.next/server/chunks/3707.js +0 -15
  606. package/.next/server/chunks/4443.js +0 -3
  607. package/.next/server/chunks/5164.js +0 -1
  608. package/.next/server/chunks/5742.js +0 -1
  609. package/.next/server/chunks/7004.js +0 -1
  610. package/.next/server/chunks/8673.js +0 -14
  611. package/.next/static/chunks/2039-117a361f795ddc4b.js +0 -1
  612. package/.next/static/chunks/2053-611dd27d42721b79.js +0 -1
  613. package/.next/static/chunks/3778-56f41fc2cecb8c43.js +0 -1
  614. package/.next/static/chunks/5449-550bd273dccc3ae4.js +0 -1
  615. package/.next/static/chunks/7705-2a2936551b0cf9a3.js +0 -1
  616. package/.next/static/chunks/8165-934ee7ff3b4ddfd4.js +0 -1
  617. package/.next/static/chunks/app/review/page-30616daa1dc595c2.js +0 -1
  618. package/.next/static/chunks/app/sessions/page-1a8ba152bbcb9efb.js +0 -1
  619. package/.next/static/chunks/app/skills/[skillId]/page-ab7e432b69fccb3b.js +0 -1
  620. package/.next/static/chunks/app/skills/page-56b4fa11223e0cbd.js +0 -1
  621. package/.next/static/chunks/app/worktrees/[id]/page-59f5337e031518c6.js +0 -1
  622. package/.next/static/css/b3f433d52b8ed5c8.css +0 -1
  623. /package/.next/static/{MXZXkcFAnpELZnxxHB4iJ → wu7SUiHTirFcrpo5teyZ3}/_buildManifest.js +0 -0
  624. /package/.next/static/{MXZXkcFAnpELZnxxHB4iJ → wu7SUiHTirFcrpo5teyZ3}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/worktrees/[id]/skills/[skillId]/uninstall/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}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"80776","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}},"64725":{"*":{"id":"54706","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}},"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-6b9e12c099fa598c.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":25772,"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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-8483ba400af011f5.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/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]/page.tsx":{"id":64725,"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]/files/[...path]/page.tsx":{"id":82743,"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/b3f433d52b8ed5c8.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]/skills/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/uninstall/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}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"58315","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}},"64725":{"*":{"id":"7874","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}},"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]/skills/[skillId]/uninstall/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"2155":{"*":{"id":"55046","name":"*","chunks":[],"async":false}},"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}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"80776","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}},"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-340774f1a24f2b45.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":25772,"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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-8483ba400af011f5.js"],"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/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/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":2155,"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]/files/[...path]/page.tsx":{"id":82743,"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]/skills/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/uninstall/route":[]},"rscModuleMapping":{"2155":{"*":{"id":"7874","name":"*","chunks":[],"async":false}},"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}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"58315","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}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"74080","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=1421,a.ids=[1421],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")},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")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74075:a=>{a.exports=require("zlib")},76689:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>O,patchFetch:()=>N,routeModule:()=>J,serverHooks:()=>M,workAsyncStorage:()=>K,workUnitAsyncStorage:()=>L});var d={};c.r(d),c.d(d,{POST:()=>I,dynamic:()=>E});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(72626),w=c(27289),x=c(13075),y=c(52710),z=c(33095),A=c(1185),B=c(8584),C=c(98170),D=c(92328);let E="force-dynamic",F=(0,v.h)("api/worktrees/[id]/skills/[skillId]/uninstall-plan"),G=["path","paths","worktreePath","repositoryPath","installRoot","targetPath","files","checksum","sha256","receipt","receiptDigest","force"];async function H(a){let b={};try{let c=await a.text();c.trim().length>0&&(b=JSON.parse(c))}catch{return(0,D.En)("SKILL_UNINSTALL_INVALID_BODY","Malformed JSON body.",400)}if(null===b||"object"!=typeof b||Array.isArray(b))return(0,D.En)("SKILL_UNINSTALL_INVALID_BODY","Body must be a JSON object.",400);let c=Object.keys(b);return c.some(a=>G.includes(a))?(0,D.En)("SKILL_PLAN_INPUT_REJECTED","The uninstall target is resolved by the server and cannot be supplied by the client.",400):c.length>0?(0,D.En)("SKILL_UNINSTALL_INVALID_BODY","Unknown field in body.",400):null}async function I(a,{params:b}){(0,C.mF)();try{let{id:c,skillId:d}=await b,e=(0,w.z)(c),f=(0,w.t)(e);if(f instanceof u.NextResponse)return f;let g=(0,x.jH)(d);if(!g.ok)return(0,D.En)(g.errors[0].code,"Invalid Skill ID.",400);let h=await H(a);if(h)return h;let i=(0,B.BD)(f.path,g.value),j=await (0,z.M$)(f.path),k=(0,A.hN)({actor:{type:a.headers.get("authorization")?"cli":"user",id:null},worktree:{id:f.id,name:f.name,path:f.path,repositoryName:f.repositoryDisplayName??f.repositoryName},skillId:g.value,installRootAbs:i,git:j});return u.NextResponse.json({plan:k.dto},{headers:D.Ai})}catch(a){if((0,B.e9)(a))return(0,D.En)(a.code,"The uninstall target was rejected.",a.status);if((0,y.Rq)(a))return(0,D.En)("SKILL_PLAN_NOT_FOUND"===a.code?"SKILL_UNINSTALL_NOT_INSTALLED":a.code,"No installed Skill was found to uninstall.","SKILL_PLAN_NOT_FOUND"===a.code?404:a.status);return F.error("skill-uninstall-plan-failed",{error:a instanceof Error?a.message:String(a)}),(0,D.En)("SKILL_UNINSTALL_PLAN_INTERNAL_ERROR","Failed to build the uninstall plan.",500)}}let J=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route",pathname:"/api/worktrees/[id]/skills/[skillId]/uninstall-plan",filename:"route",bundlePath:"app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:K,workUnitAsyncStorage:L,serverHooks:M}=J;function N(){return(0,g.patchFetch)({workAsyncStorage:K,workUnitAsyncStorage:L})}async function O(a,b,c){var d;let e="/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route";"/index"===e&&(e="/");let g=await J.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||J.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===J.isDev||!E,H=E&&!G,I=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: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)=>J.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=>J.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=`${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=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!E)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 J.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await J.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)(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:`${I} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":I,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await J.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)(N,O,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")},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,6065,2328,5456,2710,5048,9360,9584,8584],()=>b(b.s=76689));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=1421,a.ids=[1421],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")},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")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},74075:a=>{a.exports=require("zlib")},76689:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>O,patchFetch:()=>N,routeModule:()=>J,serverHooks:()=>M,workAsyncStorage:()=>K,workUnitAsyncStorage:()=>L});var d={};c.r(d),c.d(d,{POST:()=>I,dynamic:()=>E});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(72626),w=c(27289),x=c(13075),y=c(52710),z=c(33095),A=c(1185),B=c(8584),C=c(98170),D=c(92328);let E="force-dynamic",F=(0,v.h)("api/worktrees/[id]/skills/[skillId]/uninstall-plan"),G=["path","paths","worktreePath","repositoryPath","installRoot","targetPath","files","checksum","sha256","receipt","receiptDigest","force"];async function H(a){let b={};try{let c=await a.text();c.trim().length>0&&(b=JSON.parse(c))}catch{return(0,D.En)("SKILL_UNINSTALL_INVALID_BODY","Malformed JSON body.",400)}if(null===b||"object"!=typeof b||Array.isArray(b))return(0,D.En)("SKILL_UNINSTALL_INVALID_BODY","Body must be a JSON object.",400);let c=Object.keys(b);return c.some(a=>G.includes(a))?(0,D.En)("SKILL_PLAN_INPUT_REJECTED","The uninstall target is resolved by the server and cannot be supplied by the client.",400):c.length>0?(0,D.En)("SKILL_UNINSTALL_INVALID_BODY","Unknown field in body.",400):null}async function I(a,{params:b}){(0,C.mF)();try{let{id:c,skillId:d}=await b,e=(0,w.z)(c),f=(0,w.t)(e);if(f instanceof u.NextResponse)return f;let g=(0,x.jH)(d);if(!g.ok)return(0,D.En)(g.errors[0].code,"Invalid Skill ID.",400);let h=await H(a);if(h)return h;let i=(0,B.BD)(f.path,g.value),j=await (0,z.M$)(f.path),k=(0,A.hN)({actor:{type:a.headers.get("authorization")?"cli":"user",id:null},worktree:{id:f.id,name:f.name,path:f.path,repositoryName:f.repositoryDisplayName??f.repositoryName},skillId:g.value,installRootAbs:i,git:j});return u.NextResponse.json({plan:k.dto},{headers:D.Ai})}catch(a){if((0,B.e9)(a))return(0,D.En)(a.code,"The uninstall target was rejected.",a.status);if((0,y.Rq)(a))return(0,D.En)("SKILL_PLAN_NOT_FOUND"===a.code?"SKILL_UNINSTALL_NOT_INSTALLED":a.code,"No installed Skill was found to uninstall.","SKILL_PLAN_NOT_FOUND"===a.code?404:a.status);return F.error("skill-uninstall-plan-failed",{error:a instanceof Error?a.message:String(a)}),(0,D.En)("SKILL_UNINSTALL_PLAN_INTERNAL_ERROR","Failed to build the uninstall plan.",500)}}let J=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route",pathname:"/api/worktrees/[id]/skills/[skillId]/uninstall-plan",filename:"route",bundlePath:"app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:K,workUnitAsyncStorage:L,serverHooks:M}=J;function N(){return(0,g.patchFetch)({workAsyncStorage:K,workUnitAsyncStorage:L})}async function O(a,b,c){var d;let e="/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route";"/index"===e&&(e="/");let g=await J.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||J.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===J.isDev||!E,H=E&&!G,I=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: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)=>J.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=>J.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=`${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=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!E)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 J.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await J.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)(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:`${I} ${a.url}`,kind:i.SpanKind.SERVER,attributes:{"http.method":I,"http.target":a.url}},g))}catch(b){if(b instanceof s.NoFallbackError||await J.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)(N,O,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")},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,6065,5456,2710,2328,5048,9360,9584,8584],()=>b(b.s=76689));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../../../data/cm.db","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../scripts/hooks/cmate-agent-event.sh","../../../../../../../../package.json","../../../../../../../chunks/1331.js","../../../../../../../chunks/2328.js","../../../../../../../chunks/2710.js","../../../../../../../chunks/3722.js","../../../../../../../chunks/406.js","../../../../../../../chunks/4390.js","../../../../../../../chunks/5048.js","../../../../../../../chunks/5456.js","../../../../../../../chunks/6065.js","../../../../../../../chunks/641.js","../../../../../../../chunks/8584.js","../../../../../../../chunks/8807.js","../../../../../../../chunks/9360.js","../../../../../../../chunks/9584.js","../../../../../../../chunks/9627.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../scripts/hooks/cmate-agent-event.sh","../../../../../../../../package.json","../../../../../../../chunks/1331.js","../../../../../../../chunks/2328.js","../../../../../../../chunks/2710.js","../../../../../../../chunks/3722.js","../../../../../../../chunks/406.js","../../../../../../../chunks/4390.js","../../../../../../../chunks/5048.js","../../../../../../../chunks/5456.js","../../../../../../../chunks/6065.js","../../../../../../../chunks/641.js","../../../../../../../chunks/8584.js","../../../../../../../chunks/8807.js","../../../../../../../chunks/9360.js","../../../../../../../chunks/9584.js","../../../../../../../chunks/9627.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/worktrees/[id]/skills/[skillId]/uninstall-plan/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}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"80776","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}},"64725":{"*":{"id":"54706","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}},"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-6b9e12c099fa598c.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":25772,"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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-934ee7ff3b4ddfd4.js","9619","static/chunks/9619-22adf5367c4b7080.js","7177","static/chunks/app/layout-5b95e1236dcd9ef6.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-6b9e12c099fa598c.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-6b9e12c099fa598c.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-550bd273dccc3ae4.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-8483ba400af011f5.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/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]/page.tsx":{"id":64725,"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]/files/[...path]/page.tsx":{"id":82743,"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/b3f433d52b8ed5c8.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]/skills/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/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}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"58315","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}},"64725":{"*":{"id":"7874","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}},"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]/skills/[skillId]/uninstall-plan/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"2155":{"*":{"id":"55046","name":"*","chunks":[],"async":false}},"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}},"24431":{"*":{"id":"12263","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"19941","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"80776","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}},"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-340774f1a24f2b45.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.js"],"async":false},"/home/runner/work/CommandMate/CommandMate/src/components/providers/AppProviders.tsx":{"id":25772,"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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8165","static/chunks/8165-3853772f6ae1299b.js","9619","static/chunks/9619-84aced0846cbe3ac.js","7177","static/chunks/app/layout-0fc249fb7de75a27.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-340774f1a24f2b45.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-340774f1a24f2b45.js","344","static/chunks/344-6f9fc1f38f01a839.js","5449","static/chunks/5449-6cb80bab2bd06b79.js","6966","static/chunks/6966-bb854d1145783a64.js","8606","static/chunks/8606-79c36d4c204bbd38.js","4768","static/chunks/4768-fc0aa1d0891cac08.js","8974","static/chunks/app/page-8483ba400af011f5.js"],"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/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/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":2155,"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]/files/[...path]/page.tsx":{"id":82743,"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]/skills/route":[],"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route":[]},"rscModuleMapping":{"2155":{"*":{"id":"7874","name":"*","chunks":[],"async":false}},"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}},"24431":{"*":{"id":"73041","name":"*","chunks":[],"async":false}},"24502":{"*":{"id":"1154","name":"*","chunks":[],"async":false}},"25772":{"*":{"id":"58315","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}},"98924":{"*":{"id":"69576","name":"*","chunks":[],"async":false}},"99898":{"*":{"id":"74080","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=2260,a.ids=[2260],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")},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")},42415:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>aw,patchFetch:()=>av,routeModule:()=>ar,serverHooks:()=>au,workAsyncStorage:()=>as,workUnitAsyncStorage:()=>at});var d={};c.r(d),c.d(d,{POST:()=>an,dynamic:()=>ae});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(29021),v=c(10641),w=c(72626),x=c(88807),y=c(27289),z=c(13075),A=c(93356),B=c(4548),C=c(55927),D=c(89936),E=c(52710),F=c(33095),G=c(1185),H=c(82484),I=c(89476),J=c(50300),K=c(10500),L=c(74516),M=c(55926);c(55511);var N=c(33873),O=c.n(N),P=c(96210),Q=c(365),R=c(8584);let S={TARGET_UNSAFE:"SKILL_UPDATE_TARGET_UNSAFE",ANCESTOR_UNSAFE:"SKILL_UPDATE_ANCESTOR_UNSAFE",NOT_INSTALLED:"SKILL_UPDATE_NOT_INSTALLED",LOCAL_CHANGES:"SKILL_UPDATE_LOCAL_CHANGES",DRIFT:"SKILL_UPDATE_DRIFT",CROSS_DEVICE:"SKILL_UPDATE_CROSS_DEVICE",STAGING_IO:"SKILL_UPDATE_STAGING_IO",BACKUP_IO:"SKILL_UPDATE_BACKUP_IO",PAYLOAD_MISMATCH:"SKILL_UPDATE_PAYLOAD_MISMATCH",COMMIT_FAILED:"SKILL_UPDATE_COMMIT_FAILED",RESTORE_FAILED:"SKILL_UPDATE_RESTORE_FAILED"},T={[S.TARGET_UNSAFE]:400,[S.ANCESTOR_UNSAFE]:409,[S.NOT_INSTALLED]:409,[S.LOCAL_CHANGES]:409,[S.DRIFT]:409,[S.CROSS_DEVICE]:500,[S.STAGING_IO]:500,[S.BACKUP_IO]:500,[S.PAYLOAD_MISMATCH]:500,[S.COMMIT_FAILED]:500,[S.RESTORE_FAILED]:500};class U extends Error{constructor(a,b,c=[]){super(`Skill update rejected: ${a}`),this.code=a,this.detail=b,this.blockers=c,this.name="SkillUpdateError"}get status(){return T[this.code]}}function V(a){return a instanceof U}function W(a,b,c=[]){throw new U(a,b,c)}let X={[Q.Qb.TARGET_UNSAFE]:S.TARGET_UNSAFE,[Q.Qb.ANCESTOR_UNSAFE]:S.ANCESTOR_UNSAFE,[Q.Qb.CROSS_DEVICE]:S.CROSS_DEVICE,[Q.Qb.PAYLOAD_MISMATCH]:S.PAYLOAD_MISMATCH},Y={succeeded:"skills.update.nextAction.succeeded",committedReconciling:"skills.update.nextAction.committedReconciling",failed:"skills.update.nextAction.failed"},Z={native:"skills.update.reload.native",commandmate_runtime:"skills.update.reload.commandmateRuntime",unsupported:"skills.update.reload.unsupported",unknown:"skills.update.reload.unknown"};function $(a,b,c){try{(0,R.S8)(a,b,c)}catch(a){throw(0,R.e9)(a)&&W(S.ANCESTOR_UNSAFE,a.detail),a}}function _(a){try{(0,u.rmdirSync)(a)}catch{}}function aa(a){(0,u.rmSync)(a,{recursive:!0,force:!0})}var ab=c(55317),ac=c(98170),ad=c(92328);let ae="force-dynamic",af=(0,w.h)("api/worktrees/[id]/skills/[skillId]/update"),ag=["path","paths","worktreePath","repositoryPath","installRoot","targetPath","url","artifactUrl","artifact","files","checksum","sha256","snapshotId","commit","receipt","receiptDigest","force"],ah=["planToken","version","acknowledgeRisk","acknowledgeRiskIncrease","idempotencyKey"],ai=/^[A-Za-z0-9._:-]{8,128}$/;function aj(a){return{ok:!1,response:(0,ad.En)("SKILL_UPDATE_INVALID_BODY",a,400)}}async function ak(a){let b;try{b=JSON.parse(await a.text())}catch{return aj("Malformed JSON body.")}if(null===b||"object"!=typeof b||Array.isArray(b))return aj("Body must be a JSON object.");let c=b;for(let a of Object.keys(c)){if(ag.includes(a))return{ok:!1,response:(0,ad.En)("SKILL_PLAN_INPUT_REJECTED","The update target is resolved by the server and cannot be supplied by the client.",400)};if(!ah.includes(a))return aj("Unknown field in body.")}let{planToken:d,version:e,idempotencyKey:f}=c;return"string"==typeof d&&H.jY.test(d)?"string"!=typeof e||0===e.length?aj("Field `version` must name the version the plan was built for."):void 0===f||"string"==typeof f&&ai.test(f)?{ok:!0,body:{planToken:d,version:e,acknowledgeRisk:!0===c.acknowledgeRisk,acknowledgeRiskIncrease:!0===c.acknowledgeRiskIncrease,idempotencyKey:"string"==typeof f?f:null}}:aj("Field `idempotencyKey` has an unsupported format."):aj("Field `planToken` must be a plan token issued by the update-plan endpoint.")}function al(a,b){let c=(0,J.iZ)(a),d="SUCCEEDED"===a.state;return{operationId:a.operationId,idempotencyKey:a.idempotencyKey,state:a.state,result:d?"succeeded":"committed_reconciling",committed:c,reconcilePending:!d,nextActionKey:d?Y.succeeded:Y.committedReconciling,replayed:b.replayed}}function am(a,b,c,d){return v.NextResponse.json({error:b,code:a,nextActionKey:Y.failed,blockers:[...d]},{status:c,headers:ad.Ai})}async function an(a,{params:b}){(0,ac.mF)();let c=null,d=null;try{let e,f,g,{id:h,skillId:i}=await b,j=(0,y.z)(h),k=(0,y.t)(j);if(k instanceof v.NextResponse)return k;let l=(0,z.jH)(i);if(!l.ok)return(0,ad.En)(l.errors[0].code,"Invalid Skill ID.",400);let m=await ak(a);if(!m.ok)return m.response;let n={type:a.headers.get("authorization")?"cli":"user",id:null},o=a=>(0,K.Nt)(a,k.path,l.value);if(null!==m.body.idempotencyKey){let a=(0,J.mZ)(m.body.idempotencyKey);if(null!==a&&o(a))return ao(a,k.id,l.value,m.body.version)}try{e=(0,u.realpathSync)(k.path)}catch{return(0,ad.En)("SKILL_UPDATE_TARGET_UNSAFE","The registered worktree path could not be resolved.",409)}let p=(0,H.E4)(m.body.planToken);if(!p.dto.updatable)return am(S.LOCAL_CHANGES,"The update was refused; nothing was written.",409,p.dto.blockers);let q=(0,I.p8)(e,l.value),r=(0,J.IF)({idempotencyKey:m.body.idempotencyKey??void 0,binding:{actor:n,operation:"update",target:{worktreeId:k.id,skillId:l.value,version:m.body.version,fromVersion:p.binding.fromVersion},planHash:p.bindingHash},lockKey:q,isReplayable:o,source:{origin:"github-release",repository:p.dto.skill.source.repository,ref:p.dto.skill.source.ref,commit:p.dto.skill.source.commit,artifactSha256:p.binding.artifactSha256}});if(!r.ok)return(0,ad.En)("SKILL_UPDATE_IDEMPOTENCY_CONFLICT","This idempotency key was already used for a different request.",409);if(r.replayed)return ao(r.entry,k.id,l.value,m.body.version);let s=r.entry;if(!(d=(0,I.k8)({key:q,operationId:s.operationId})).ok)return(0,J.Pg)(s.idempotencyKey),d=null,(0,ad.En)("SKILL_UPDATE_LOCKED","Another operation is already running for this Skill and worktree.",409);let t=await (0,F.M$)(k.path),w=(0,F.bh)((0,F.cu)(k.path,l.value));try{f=(0,H.cl)(m.body.planToken,{actor:n,worktreeId:k.id,skillId:l.value,toVersion:m.body.version,riskAcknowledged:m.body.acknowledgeRisk,riskIncreaseAcknowledged:m.body.acknowledgeRiskIncrease},{branch:t.branch,headCommit:t.headCommit,currentTreeHash:(0,F.Hg)(w.files),receiptDigest:(0,G.oY)(w)})}catch(a){throw(0,J.Pg)(s.idempotencyKey),a}c=f.binding.snapshotId;try{if((0,D.Oi)(c).sha256!==f.binding.artifactSha256)throw Error("snapshot artifact digest does not match the plan binding");let a=(0,B.uu)((0,D.LH)(c),{skillId:l.value,version:f.binding.toVersion}),b=(0,A.Q_)(f.receiptBytes);g=function(a){Q.rf.test(a.operationId)||W(S.STAGING_IO,{reason:"operation-id"}),Q.rf.test((l=a.operationId,`${l}-new`))&&Q.rf.test((m=a.operationId,`${m}-old`))||W(S.STAGING_IO,{reason:"operation-id-length"});let b=void 0===a.stateRoot?{}:{root:a.stateRoot},c=a.rootPrefixes&&a.rootPrefixes.length>0?[...a.rootPrefixes]:[P.Co],d=[],e=null;for(let b of c){let c=function(a,b,c){(!P.X0.test(c)||c.length>P.cj)&&W(S.TARGET_UNSAFE,{reason:"skill-id"});try{return(0,F.yj)(a,b,c)}catch{return W(S.TARGET_UNSAFE,{reason:"install-root"})}}(a.worktreePath,b,a.skillId);$(a.worktreeRealPath,a.worktreePath,b);let f=(0,F.bh)(c),g=(0,G.II)(c,a.skillId,{existing:f,rootPrefix:b});g.present||W(S.NOT_INSTALLED,{root:b}),g.removable&&null!==g.receipt||W(S.LOCAL_CHANGES,void 0,g.blockers),null!==g.receiptDigest&&(0,A.U2)(g.receiptDigest,a.expectedReceiptDigest)||W(S.DRIFT,{reason:"receipt-digest",root:b}),g.currentTreeHash!==a.expectedTreeHash&&W(S.DRIFT,{reason:"tree-hash",root:b}),e=g.receipt.version,d.push({prefix:b,rel:(0,F.QL)(b,a.skillId),abs:c,existing:f})}let f=d[0];null===e&&W(S.NOT_INSTALLED);let g=a.snapshot.files.map(b=>{let c=a.snapshot.readFile(b.path);return(0,A.U2)((0,A.Q_)(c),b.sha256)||W(S.PAYLOAD_MISMATCH,{reason:"snapshot-digest"}),{relativePath:b.path,bytes:c,executable:b.executable}}),h=(0,Q.Gx)(a.snapshot.files.map(a=>a.path),a.snapshot.directories),i=function(a,b){var c,d,e;let f=(c=a.backupId,O().join((0,M.m_)("backups",b),c)),g=O().join(f,"payload");try{(0,u.mkdirSync)(g,{recursive:!0,mode:M.QQ})}catch{W(S.BACKUP_IO,{reason:"mkdir"})}let h=[];for(let b of a.existing.files){let a,c=O().join(g,b.path);try{(0,u.mkdirSync)(O().dirname(c),{recursive:!0,mode:M.QQ}),d=c,e=b.bytes,(0,u.writeFileSync)(d,e,{flag:"wx",mode:M.Pq})}catch{W(S.BACKUP_IO,{reason:"write"})}try{a=(0,u.readFileSync)(c)}catch{return W(S.BACKUP_IO,{reason:"readback"})}(0,A.U2)((0,A.Q_)(a),b.sha256)||W(S.BACKUP_IO,{reason:"digest"}),h.push({path:b.path,sha256:b.sha256,size:b.size,executable:b.executable})}let i={schemaVersion:1,backupId:a.backupId,worktreeId:a.worktreeId,skillId:a.skillId,fromVersion:a.fromVersion,toVersion:a.toVersion,receiptDigest:a.receiptDigest,treeHash:a.treeHash,files:h,createdAt:Date.now()};try{(0,M.of)(O().join(f,"backup.json"),i)}catch{W(S.BACKUP_IO,{reason:"manifest"})}return i}({backupId:a.operationId,worktreeId:a.worktreeId,skillId:a.skillId,fromVersion:e,toVersion:a.snapshot.version,receiptDigest:a.expectedReceiptDigest,treeHash:a.expectedTreeHash,existing:f.existing},b),j=new Map,k=(n=a.operationId,`${n}-new`);try{for(let b of d)j.set(b.prefix,(0,Q.wh)({worktreePath:a.worktreePath,worktreeRealPath:a.worktreeRealPath,rootPrefix:b.prefix,skillId:a.skillId,stagingName:k,payload:g,directories:h,receiptBytes:a.receiptBytes,plannedTreeHash:a.plannedTreeHash}))}catch(a){var l,m,n,o;for(let a of j.values())aa(a.stagingDir),_(a.stagingRoot);throw(0,Q.Zm)(a)&&W(X[a.code]??S.STAGING_IO,a.detail),a}let p=[],q=[],r=!1;for(let b=0;b<d.length;b+=1){let c=d[b],e=j.get(c.prefix),f=O().join(e.stagingRoot,(o=a.operationId,`${o}-old`));try{(function(a){let{root:b,stagedRoot:c,asideDir:d}=a;$(a.worktreeRealPath,a.worktreePath,b.prefix);let e=(0,F.bh)(b.abs),f=e.files.find(a=>a.path===E.zi);e.present&&void 0!==f||W(S.DRIFT,{reason:"receipt-vanished",root:b.prefix}),(0,A.U2)(f.sha256,a.expectedReceiptDigest)||W(S.DRIFT,{reason:"receipt-digest",root:b.prefix}),(0,F.Hg)(e.files)!==a.expectedTreeHash&&W(S.DRIFT,{reason:"tree-hash",root:b.prefix}),function(a){try{let b=(0,u.lstatSync)(a);return b.isDirectory()&&!b.isSymbolicLink()}catch{return!1}}(d)&&W(S.STAGING_IO,{reason:"aside-occupied",root:b.prefix}),a.hooks?.beforeAside?.(b.prefix);try{(0,u.renameSync)(b.abs,d)}catch{W(S.COMMIT_FAILED,{reason:"aside-rename",root:b.prefix})}try{a.hooks?.beforePublish?.(b.prefix),(0,u.renameSync)(c.stagingDir,b.abs)}catch(a){try{(0,u.renameSync)(d,b.abs)}catch{W(S.RESTORE_FAILED,{root:b.prefix})}if(V(a))throw a;W(S.COMMIT_FAILED,{reason:"publish-rename",root:b.prefix})}})({root:c,stagedRoot:e,asideDir:f,worktreeRealPath:a.worktreeRealPath,worktreePath:a.worktreePath,expectedReceiptDigest:a.expectedReceiptDigest,expectedTreeHash:a.expectedTreeHash,hooks:a.hooks}),p.push(c.rel),0===b&&(r=!0,a.onCommitPoint?.()),a.hooks?.afterPublish?.(c.prefix)}catch(a){if(!r){for(let a of j.values())aa(a.stagingDir),_(a.stagingRoot);throw a}for(let a=b;a<d.length;a+=1)p.includes(d[a].rel)||q.push(d[a].rel);break}aa(f),_(e.stagingRoot)}let s=(0,A.Q_)(a.receiptBytes);return{installRoot:f.rel,installRoots:d.map(a=>a.rel),committedRoots:p,pendingRoots:q,reconciling:q.length>0,fromVersion:e,toVersion:a.snapshot.version,receiptPath:`${f.rel}/${E.zi}`,receiptSha256:s,receiptSize:a.receiptBytes.byteLength,files:a.snapshot.files.map(a=>({path:a.path,sha256:a.sha256,size:a.size,executable:a.executable})),treeHash:a.plannedTreeHash,backup:{backupId:i.backupId,fromVersion:i.fromVersion,fileCount:i.files.length,verified:!0}}}({worktreePath:k.path,worktreeRealPath:e,worktreeId:k.id,skillId:l.value,operationId:s.operationId,snapshot:a,receiptBytes:f.receiptBytes,plannedTreeHash:f.binding.plannedTreeHash,expectedReceiptDigest:f.binding.currentReceiptDigest,expectedTreeHash:f.binding.currentTreeHash,rootPrefixes:f.rootPrefixes,onCommitPoint:()=>{s=(0,J.Y9)(s,"FS_COMMITTED",{receiptDigest:b})}})}catch(a){if(V(a)&&a.code===S.RESTORE_FAILED)throw aq(s,"failed"),af.error("skill-update-restore-failed",{operationId:s.operationId}),a;throw(0,J.Pg)(s.idempotencyKey),a}if(g.reconciling)s=(0,J.Y9)(s,"FAILED_RECONCILABLE",{error:{code:"SKILL_UPDATE_SECONDARY_ROOT_PENDING",message:"a secondary install root was not switched"}}),aq(s,"failed"),af.warn("skill-update-secondary-root-pending",{operationId:s.operationId,pendingRoots:g.pendingRoots.join(",")});else try{let a=(0,x.getDbInstance)();(0,ab.Tk)(a,{worktreeId:k.id,receipt:f.receipt,receiptSha256:g.receiptSha256,operationId:s.operationId,installedAt:s.fsCommittedAt??Date.now()}),s=(0,J.Y9)(s,"INDEXED"),s=(0,J.Y9)(s,"SUCCEEDED",{error:null}),aq(s,"succeeded")}catch(a){s=(0,J.Y9)(s,"FAILED_RECONCILABLE",{error:{code:"SKILL_UPDATE_INDEX_FAILED",message:ap(a)}}),aq(s,"failed"),af.error("skill-update-index-failed",{operationId:s.operationId,error:(0,M.f$)(ap(a))})}let C={operation:al(s,{replayed:!1}),update:{skillId:f.receipt.skill_id,fromVersion:g.fromVersion,toVersion:g.toVersion,installRoot:g.installRoot,installRoots:g.installRoots,committedRoots:g.committedRoots,pendingRoots:g.pendingRoots,receipt:{path:g.receiptPath,sha256:g.receiptSha256,size:g.receiptSize},files:g.files,treeHash:g.treeHash},reload:{skillId:f.receipt.skill_id,version:f.receipt.version,installRoot:g.installRoot,agents:f.receipt.agent_compatibility.map(a=>({agent:a.agent,support:a.support,messageKey:Z[a.support]}))},rollback:{available:!0,backup:g.backup,messageKey:"skills.update.rollbackAvailable"}};return v.NextResponse.json(C,{headers:ad.Ai})}catch(a){if((0,E.Rq)(a))return(0,ad.En)(a.code,"The update plan was rejected.",a.status);if(V(a))return am(a.code,a.code===S.RESTORE_FAILED?"The update did not complete. The previous payload is preserved and will be restored automatically.":"The update was refused; nothing was written.",a.status,a.blockers);if((0,C.uI)(a))return(0,ad.En)(a.code,"The Skill package failed verification.",422);if((0,A.eG)(a))return(0,ad.En)(a.code,"The verified artifact could not be read.",502);return af.error("skill-update-failed",{error:(0,M.f$)(ap(a))}),(0,ad.En)("SKILL_UPDATE_INTERNAL_ERROR","Failed to apply the update.",500)}finally{d?.ok&&(0,I.x3)(d.lock),c&&(0,D.TO)(c)}}function ao(a,b,c,d){if(a.target.worktreeId!==b||a.target.skillId!==c||a.target.version!==d)return(0,ad.En)("SKILL_UPDATE_IDEMPOTENCY_CONFLICT","This idempotency key was already used for a different request.",409);if(!(0,J.iZ)(a))return(0,ad.En)("PREPARING"===a.state?"SKILL_UPDATE_IN_PROGRESS":"SKILL_UPDATE_FAILED","PREPARING"===a.state?"The operation for this idempotency key is still running.":"The operation for this idempotency key did not update anything.",409);let e=(0,ab.c7)((0,x.getDbInstance)(),b,c),f={operation:al(a,{replayed:!0}),update:e?{skillId:e.skillId,version:e.version,installRoot:e.installRoot,installRoots:e.installRoots,receipt:{path:`${e.installRoot}/${E.zi}`,sha256:e.receiptSha256}}:null};return v.NextResponse.json(f,{headers:ad.Ai})}function ap(a){return a instanceof Error?a.message:String(a)}function aq(a,b){try{(0,L.JM)((0,x.getDbInstance)(),(0,L.ek)(a,b))}catch(b){af.warn("skill-update-audit-failed",{operationId:a.operationId,error:(0,M.f$)(ap(b))})}}let ar=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/skills/[skillId]/update/route",pathname:"/api/worktrees/[id]/skills/[skillId]/update",filename:"route",bundlePath:"app/api/worktrees/[id]/skills/[skillId]/update/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/update/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:as,workUnitAsyncStorage:at,serverHooks:au}=ar;function av(){return(0,g.patchFetch)({workAsyncStorage:as,workUnitAsyncStorage:at})}async function aw(a,b,c){var d;let e="/api/worktrees/[id]/skills/[skillId]/update/route";"/index"===e&&(e="/");let g=await ar.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||ar.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===ar.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)=>ar.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=>ar.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 ar.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await ar.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 ar.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}}},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")},74075:a=>{a.exports=require("zlib")},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},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,6065,2328,5456,2710,5048,9360,9584,28,8584,365],()=>b(b.s=42415));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=2260,a.ids=[2260],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")},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")},42415:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>aw,patchFetch:()=>av,routeModule:()=>ar,serverHooks:()=>au,workAsyncStorage:()=>as,workUnitAsyncStorage:()=>at});var d={};c.r(d),c.d(d,{POST:()=>an,dynamic:()=>ae});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(29021),v=c(10641),w=c(72626),x=c(88807),y=c(27289),z=c(13075),A=c(93356),B=c(4548),C=c(55927),D=c(89936),E=c(52710),F=c(33095),G=c(1185),H=c(82484),I=c(89476),J=c(50300),K=c(10500),L=c(74516),M=c(55926);c(55511);var N=c(33873),O=c.n(N),P=c(96210),Q=c(365),R=c(8584);let S={TARGET_UNSAFE:"SKILL_UPDATE_TARGET_UNSAFE",ANCESTOR_UNSAFE:"SKILL_UPDATE_ANCESTOR_UNSAFE",NOT_INSTALLED:"SKILL_UPDATE_NOT_INSTALLED",LOCAL_CHANGES:"SKILL_UPDATE_LOCAL_CHANGES",DRIFT:"SKILL_UPDATE_DRIFT",CROSS_DEVICE:"SKILL_UPDATE_CROSS_DEVICE",STAGING_IO:"SKILL_UPDATE_STAGING_IO",BACKUP_IO:"SKILL_UPDATE_BACKUP_IO",PAYLOAD_MISMATCH:"SKILL_UPDATE_PAYLOAD_MISMATCH",COMMIT_FAILED:"SKILL_UPDATE_COMMIT_FAILED",RESTORE_FAILED:"SKILL_UPDATE_RESTORE_FAILED"},T={[S.TARGET_UNSAFE]:400,[S.ANCESTOR_UNSAFE]:409,[S.NOT_INSTALLED]:409,[S.LOCAL_CHANGES]:409,[S.DRIFT]:409,[S.CROSS_DEVICE]:500,[S.STAGING_IO]:500,[S.BACKUP_IO]:500,[S.PAYLOAD_MISMATCH]:500,[S.COMMIT_FAILED]:500,[S.RESTORE_FAILED]:500};class U extends Error{constructor(a,b,c=[]){super(`Skill update rejected: ${a}`),this.code=a,this.detail=b,this.blockers=c,this.name="SkillUpdateError"}get status(){return T[this.code]}}function V(a){return a instanceof U}function W(a,b,c=[]){throw new U(a,b,c)}let X={[Q.Qb.TARGET_UNSAFE]:S.TARGET_UNSAFE,[Q.Qb.ANCESTOR_UNSAFE]:S.ANCESTOR_UNSAFE,[Q.Qb.CROSS_DEVICE]:S.CROSS_DEVICE,[Q.Qb.PAYLOAD_MISMATCH]:S.PAYLOAD_MISMATCH},Y={succeeded:"skills.update.nextAction.succeeded",committedReconciling:"skills.update.nextAction.committedReconciling",failed:"skills.update.nextAction.failed"},Z={native:"skills.update.reload.native",commandmate_runtime:"skills.update.reload.commandmateRuntime",unsupported:"skills.update.reload.unsupported",unknown:"skills.update.reload.unknown"};function $(a,b,c){try{(0,R.S8)(a,b,c)}catch(a){throw(0,R.e9)(a)&&W(S.ANCESTOR_UNSAFE,a.detail),a}}function _(a){try{(0,u.rmdirSync)(a)}catch{}}function aa(a){(0,u.rmSync)(a,{recursive:!0,force:!0})}var ab=c(55317),ac=c(98170),ad=c(92328);let ae="force-dynamic",af=(0,w.h)("api/worktrees/[id]/skills/[skillId]/update"),ag=["path","paths","worktreePath","repositoryPath","installRoot","targetPath","url","artifactUrl","artifact","files","checksum","sha256","snapshotId","commit","receipt","receiptDigest","force"],ah=["planToken","version","acknowledgeRisk","acknowledgeRiskIncrease","idempotencyKey"],ai=/^[A-Za-z0-9._:-]{8,128}$/;function aj(a){return{ok:!1,response:(0,ad.En)("SKILL_UPDATE_INVALID_BODY",a,400)}}async function ak(a){let b;try{b=JSON.parse(await a.text())}catch{return aj("Malformed JSON body.")}if(null===b||"object"!=typeof b||Array.isArray(b))return aj("Body must be a JSON object.");let c=b;for(let a of Object.keys(c)){if(ag.includes(a))return{ok:!1,response:(0,ad.En)("SKILL_PLAN_INPUT_REJECTED","The update target is resolved by the server and cannot be supplied by the client.",400)};if(!ah.includes(a))return aj("Unknown field in body.")}let{planToken:d,version:e,idempotencyKey:f}=c;return"string"==typeof d&&H.jY.test(d)?"string"!=typeof e||0===e.length?aj("Field `version` must name the version the plan was built for."):void 0===f||"string"==typeof f&&ai.test(f)?{ok:!0,body:{planToken:d,version:e,acknowledgeRisk:!0===c.acknowledgeRisk,acknowledgeRiskIncrease:!0===c.acknowledgeRiskIncrease,idempotencyKey:"string"==typeof f?f:null}}:aj("Field `idempotencyKey` has an unsupported format."):aj("Field `planToken` must be a plan token issued by the update-plan endpoint.")}function al(a,b){let c=(0,J.iZ)(a),d="SUCCEEDED"===a.state;return{operationId:a.operationId,idempotencyKey:a.idempotencyKey,state:a.state,result:d?"succeeded":"committed_reconciling",committed:c,reconcilePending:!d,nextActionKey:d?Y.succeeded:Y.committedReconciling,replayed:b.replayed}}function am(a,b,c,d){return v.NextResponse.json({error:b,code:a,nextActionKey:Y.failed,blockers:[...d]},{status:c,headers:ad.Ai})}async function an(a,{params:b}){(0,ac.mF)();let c=null,d=null;try{let e,f,g,{id:h,skillId:i}=await b,j=(0,y.z)(h),k=(0,y.t)(j);if(k instanceof v.NextResponse)return k;let l=(0,z.jH)(i);if(!l.ok)return(0,ad.En)(l.errors[0].code,"Invalid Skill ID.",400);let m=await ak(a);if(!m.ok)return m.response;let n={type:a.headers.get("authorization")?"cli":"user",id:null},o=a=>(0,K.Nt)(a,k.path,l.value);if(null!==m.body.idempotencyKey){let a=(0,J.mZ)(m.body.idempotencyKey);if(null!==a&&o(a))return ao(a,k.id,l.value,m.body.version)}try{e=(0,u.realpathSync)(k.path)}catch{return(0,ad.En)("SKILL_UPDATE_TARGET_UNSAFE","The registered worktree path could not be resolved.",409)}let p=(0,H.E4)(m.body.planToken);if(!p.dto.updatable)return am(S.LOCAL_CHANGES,"The update was refused; nothing was written.",409,p.dto.blockers);let q=(0,I.p8)(e,l.value),r=(0,J.IF)({idempotencyKey:m.body.idempotencyKey??void 0,binding:{actor:n,operation:"update",target:{worktreeId:k.id,skillId:l.value,version:m.body.version,fromVersion:p.binding.fromVersion},planHash:p.bindingHash},lockKey:q,isReplayable:o,source:{origin:"github-release",repository:p.dto.skill.source.repository,ref:p.dto.skill.source.ref,commit:p.dto.skill.source.commit,artifactSha256:p.binding.artifactSha256}});if(!r.ok)return(0,ad.En)("SKILL_UPDATE_IDEMPOTENCY_CONFLICT","This idempotency key was already used for a different request.",409);if(r.replayed)return ao(r.entry,k.id,l.value,m.body.version);let s=r.entry;if(!(d=(0,I.k8)({key:q,operationId:s.operationId})).ok)return(0,J.Pg)(s.idempotencyKey),d=null,(0,ad.En)("SKILL_UPDATE_LOCKED","Another operation is already running for this Skill and worktree.",409);let t=await (0,F.M$)(k.path),w=(0,F.bh)((0,F.cu)(k.path,l.value));try{f=(0,H.cl)(m.body.planToken,{actor:n,worktreeId:k.id,skillId:l.value,toVersion:m.body.version,riskAcknowledged:m.body.acknowledgeRisk,riskIncreaseAcknowledged:m.body.acknowledgeRiskIncrease},{branch:t.branch,headCommit:t.headCommit,currentTreeHash:(0,F.Hg)(w.files),receiptDigest:(0,G.oY)(w)})}catch(a){throw(0,J.Pg)(s.idempotencyKey),a}c=f.binding.snapshotId;try{if((0,D.Oi)(c).sha256!==f.binding.artifactSha256)throw Error("snapshot artifact digest does not match the plan binding");let a=(0,B.uu)((0,D.LH)(c),{skillId:l.value,version:f.binding.toVersion}),b=(0,A.Q_)(f.receiptBytes);g=function(a){Q.rf.test(a.operationId)||W(S.STAGING_IO,{reason:"operation-id"}),Q.rf.test((l=a.operationId,`${l}-new`))&&Q.rf.test((m=a.operationId,`${m}-old`))||W(S.STAGING_IO,{reason:"operation-id-length"});let b=void 0===a.stateRoot?{}:{root:a.stateRoot},c=a.rootPrefixes&&a.rootPrefixes.length>0?[...a.rootPrefixes]:[P.Co],d=[],e=null;for(let b of c){let c=function(a,b,c){(!P.X0.test(c)||c.length>P.cj)&&W(S.TARGET_UNSAFE,{reason:"skill-id"});try{return(0,F.yj)(a,b,c)}catch{return W(S.TARGET_UNSAFE,{reason:"install-root"})}}(a.worktreePath,b,a.skillId);$(a.worktreeRealPath,a.worktreePath,b);let f=(0,F.bh)(c),g=(0,G.II)(c,a.skillId,{existing:f,rootPrefix:b});g.present||W(S.NOT_INSTALLED,{root:b}),g.removable&&null!==g.receipt||W(S.LOCAL_CHANGES,void 0,g.blockers),null!==g.receiptDigest&&(0,A.U2)(g.receiptDigest,a.expectedReceiptDigest)||W(S.DRIFT,{reason:"receipt-digest",root:b}),g.currentTreeHash!==a.expectedTreeHash&&W(S.DRIFT,{reason:"tree-hash",root:b}),e=g.receipt.version,d.push({prefix:b,rel:(0,F.QL)(b,a.skillId),abs:c,existing:f})}let f=d[0];null===e&&W(S.NOT_INSTALLED);let g=a.snapshot.files.map(b=>{let c=a.snapshot.readFile(b.path);return(0,A.U2)((0,A.Q_)(c),b.sha256)||W(S.PAYLOAD_MISMATCH,{reason:"snapshot-digest"}),{relativePath:b.path,bytes:c,executable:b.executable}}),h=(0,Q.Gx)(a.snapshot.files.map(a=>a.path),a.snapshot.directories),i=function(a,b){var c,d,e;let f=(c=a.backupId,O().join((0,M.m_)("backups",b),c)),g=O().join(f,"payload");try{(0,u.mkdirSync)(g,{recursive:!0,mode:M.QQ})}catch{W(S.BACKUP_IO,{reason:"mkdir"})}let h=[];for(let b of a.existing.files){let a,c=O().join(g,b.path);try{(0,u.mkdirSync)(O().dirname(c),{recursive:!0,mode:M.QQ}),d=c,e=b.bytes,(0,u.writeFileSync)(d,e,{flag:"wx",mode:M.Pq})}catch{W(S.BACKUP_IO,{reason:"write"})}try{a=(0,u.readFileSync)(c)}catch{return W(S.BACKUP_IO,{reason:"readback"})}(0,A.U2)((0,A.Q_)(a),b.sha256)||W(S.BACKUP_IO,{reason:"digest"}),h.push({path:b.path,sha256:b.sha256,size:b.size,executable:b.executable})}let i={schemaVersion:1,backupId:a.backupId,worktreeId:a.worktreeId,skillId:a.skillId,fromVersion:a.fromVersion,toVersion:a.toVersion,receiptDigest:a.receiptDigest,treeHash:a.treeHash,files:h,createdAt:Date.now()};try{(0,M.of)(O().join(f,"backup.json"),i)}catch{W(S.BACKUP_IO,{reason:"manifest"})}return i}({backupId:a.operationId,worktreeId:a.worktreeId,skillId:a.skillId,fromVersion:e,toVersion:a.snapshot.version,receiptDigest:a.expectedReceiptDigest,treeHash:a.expectedTreeHash,existing:f.existing},b),j=new Map,k=(n=a.operationId,`${n}-new`);try{for(let b of d)j.set(b.prefix,(0,Q.wh)({worktreePath:a.worktreePath,worktreeRealPath:a.worktreeRealPath,rootPrefix:b.prefix,skillId:a.skillId,stagingName:k,payload:g,directories:h,receiptBytes:a.receiptBytes,plannedTreeHash:a.plannedTreeHash}))}catch(a){var l,m,n,o;for(let a of j.values())aa(a.stagingDir),_(a.stagingRoot);throw(0,Q.Zm)(a)&&W(X[a.code]??S.STAGING_IO,a.detail),a}let p=[],q=[],r=!1;for(let b=0;b<d.length;b+=1){let c=d[b],e=j.get(c.prefix),f=O().join(e.stagingRoot,(o=a.operationId,`${o}-old`));try{(function(a){let{root:b,stagedRoot:c,asideDir:d}=a;$(a.worktreeRealPath,a.worktreePath,b.prefix);let e=(0,F.bh)(b.abs),f=e.files.find(a=>a.path===E.zi);e.present&&void 0!==f||W(S.DRIFT,{reason:"receipt-vanished",root:b.prefix}),(0,A.U2)(f.sha256,a.expectedReceiptDigest)||W(S.DRIFT,{reason:"receipt-digest",root:b.prefix}),(0,F.Hg)(e.files)!==a.expectedTreeHash&&W(S.DRIFT,{reason:"tree-hash",root:b.prefix}),function(a){try{let b=(0,u.lstatSync)(a);return b.isDirectory()&&!b.isSymbolicLink()}catch{return!1}}(d)&&W(S.STAGING_IO,{reason:"aside-occupied",root:b.prefix}),a.hooks?.beforeAside?.(b.prefix);try{(0,u.renameSync)(b.abs,d)}catch{W(S.COMMIT_FAILED,{reason:"aside-rename",root:b.prefix})}try{a.hooks?.beforePublish?.(b.prefix),(0,u.renameSync)(c.stagingDir,b.abs)}catch(a){try{(0,u.renameSync)(d,b.abs)}catch{W(S.RESTORE_FAILED,{root:b.prefix})}if(V(a))throw a;W(S.COMMIT_FAILED,{reason:"publish-rename",root:b.prefix})}})({root:c,stagedRoot:e,asideDir:f,worktreeRealPath:a.worktreeRealPath,worktreePath:a.worktreePath,expectedReceiptDigest:a.expectedReceiptDigest,expectedTreeHash:a.expectedTreeHash,hooks:a.hooks}),p.push(c.rel),0===b&&(r=!0,a.onCommitPoint?.()),a.hooks?.afterPublish?.(c.prefix)}catch(a){if(!r){for(let a of j.values())aa(a.stagingDir),_(a.stagingRoot);throw a}for(let a=b;a<d.length;a+=1)p.includes(d[a].rel)||q.push(d[a].rel);break}aa(f),_(e.stagingRoot)}let s=(0,A.Q_)(a.receiptBytes);return{installRoot:f.rel,installRoots:d.map(a=>a.rel),committedRoots:p,pendingRoots:q,reconciling:q.length>0,fromVersion:e,toVersion:a.snapshot.version,receiptPath:`${f.rel}/${E.zi}`,receiptSha256:s,receiptSize:a.receiptBytes.byteLength,files:a.snapshot.files.map(a=>({path:a.path,sha256:a.sha256,size:a.size,executable:a.executable})),treeHash:a.plannedTreeHash,backup:{backupId:i.backupId,fromVersion:i.fromVersion,fileCount:i.files.length,verified:!0}}}({worktreePath:k.path,worktreeRealPath:e,worktreeId:k.id,skillId:l.value,operationId:s.operationId,snapshot:a,receiptBytes:f.receiptBytes,plannedTreeHash:f.binding.plannedTreeHash,expectedReceiptDigest:f.binding.currentReceiptDigest,expectedTreeHash:f.binding.currentTreeHash,rootPrefixes:f.rootPrefixes,onCommitPoint:()=>{s=(0,J.Y9)(s,"FS_COMMITTED",{receiptDigest:b})}})}catch(a){if(V(a)&&a.code===S.RESTORE_FAILED)throw aq(s,"failed"),af.error("skill-update-restore-failed",{operationId:s.operationId}),a;throw(0,J.Pg)(s.idempotencyKey),a}if(g.reconciling)s=(0,J.Y9)(s,"FAILED_RECONCILABLE",{error:{code:"SKILL_UPDATE_SECONDARY_ROOT_PENDING",message:"a secondary install root was not switched"}}),aq(s,"failed"),af.warn("skill-update-secondary-root-pending",{operationId:s.operationId,pendingRoots:g.pendingRoots.join(",")});else try{let a=(0,x.getDbInstance)();(0,ab.Tk)(a,{worktreeId:k.id,receipt:f.receipt,receiptSha256:g.receiptSha256,operationId:s.operationId,installedAt:s.fsCommittedAt??Date.now()}),s=(0,J.Y9)(s,"INDEXED"),s=(0,J.Y9)(s,"SUCCEEDED",{error:null}),aq(s,"succeeded")}catch(a){s=(0,J.Y9)(s,"FAILED_RECONCILABLE",{error:{code:"SKILL_UPDATE_INDEX_FAILED",message:ap(a)}}),aq(s,"failed"),af.error("skill-update-index-failed",{operationId:s.operationId,error:(0,M.f$)(ap(a))})}let C={operation:al(s,{replayed:!1}),update:{skillId:f.receipt.skill_id,fromVersion:g.fromVersion,toVersion:g.toVersion,installRoot:g.installRoot,installRoots:g.installRoots,committedRoots:g.committedRoots,pendingRoots:g.pendingRoots,receipt:{path:g.receiptPath,sha256:g.receiptSha256,size:g.receiptSize},files:g.files,treeHash:g.treeHash},reload:{skillId:f.receipt.skill_id,version:f.receipt.version,installRoot:g.installRoot,agents:f.receipt.agent_compatibility.map(a=>({agent:a.agent,support:a.support,messageKey:Z[a.support]}))},rollback:{available:!0,backup:g.backup,messageKey:"skills.update.rollbackAvailable"}};return v.NextResponse.json(C,{headers:ad.Ai})}catch(a){if((0,E.Rq)(a))return(0,ad.En)(a.code,"The update plan was rejected.",a.status);if(V(a))return am(a.code,a.code===S.RESTORE_FAILED?"The update did not complete. The previous payload is preserved and will be restored automatically.":"The update was refused; nothing was written.",a.status,a.blockers);if((0,C.uI)(a))return(0,ad.En)(a.code,"The Skill package failed verification.",422);if((0,A.eG)(a))return(0,ad.En)(a.code,"The verified artifact could not be read.",502);return af.error("skill-update-failed",{error:(0,M.f$)(ap(a))}),(0,ad.En)("SKILL_UPDATE_INTERNAL_ERROR","Failed to apply the update.",500)}finally{d?.ok&&(0,I.x3)(d.lock),c&&(0,D.TO)(c)}}function ao(a,b,c,d){if(a.target.worktreeId!==b||a.target.skillId!==c||a.target.version!==d)return(0,ad.En)("SKILL_UPDATE_IDEMPOTENCY_CONFLICT","This idempotency key was already used for a different request.",409);if(!(0,J.iZ)(a))return(0,ad.En)("PREPARING"===a.state?"SKILL_UPDATE_IN_PROGRESS":"SKILL_UPDATE_FAILED","PREPARING"===a.state?"The operation for this idempotency key is still running.":"The operation for this idempotency key did not update anything.",409);let e=(0,ab.c7)((0,x.getDbInstance)(),b,c),f={operation:al(a,{replayed:!0}),update:e?{skillId:e.skillId,version:e.version,installRoot:e.installRoot,installRoots:e.installRoots,receipt:{path:`${e.installRoot}/${E.zi}`,sha256:e.receiptSha256}}:null};return v.NextResponse.json(f,{headers:ad.Ai})}function ap(a){return a instanceof Error?a.message:String(a)}function aq(a,b){try{(0,L.JM)((0,x.getDbInstance)(),(0,L.ek)(a,b))}catch(b){af.warn("skill-update-audit-failed",{operationId:a.operationId,error:(0,M.f$)(ap(b))})}}let ar=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/worktrees/[id]/skills/[skillId]/update/route",pathname:"/api/worktrees/[id]/skills/[skillId]/update",filename:"route",bundlePath:"app/api/worktrees/[id]/skills/[skillId]/update/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/CommandMate/CommandMate/src/app/api/worktrees/[id]/skills/[skillId]/update/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:as,workUnitAsyncStorage:at,serverHooks:au}=ar;function av(){return(0,g.patchFetch)({workAsyncStorage:as,workUnitAsyncStorage:at})}async function aw(a,b,c){var d;let e="/api/worktrees/[id]/skills/[skillId]/update/route";"/index"===e&&(e="/");let g=await ar.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||ar.isDev||x||(F="/index"===(F=C)?"/":F);let G=!0===ar.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)=>ar.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=>ar.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 ar.onRequestError(a,b,{routerKind:"App Router",routePath:e,routeType:"route",revalidateReason:(0,n.c)({isRevalidate:H,isOnDemandRevalidate:A})},z),b}},l=await ar.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 ar.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}}},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")},74075:a=>{a.exports=require("zlib")},79428:a=>{a.exports=require("buffer")},79551:a=>{a.exports=require("url")},79646:a=>{a.exports=require("child_process")},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,6065,5456,2710,2328,5048,9360,9584,28,8584,365],()=>b(b.s=42415));module.exports=c})();
@@ -1 +1 @@
1
- {"version":1,"files":["../../../../../../../../../data/cm.db","../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../scripts/hooks/cmate-agent-event.sh","../../../../../../../../package.json","../../../../../../../chunks/1331.js","../../../../../../../chunks/2328.js","../../../../../../../chunks/2710.js","../../../../../../../chunks/28.js","../../../../../../../chunks/365.js","../../../../../../../chunks/3722.js","../../../../../../../chunks/406.js","../../../../../../../chunks/4390.js","../../../../../../../chunks/5048.js","../../../../../../../chunks/5456.js","../../../../../../../chunks/6065.js","../../../../../../../chunks/641.js","../../../../../../../chunks/8584.js","../../../../../../../chunks/8807.js","../../../../../../../chunks/9360.js","../../../../../../../chunks/9584.js","../../../../../../../chunks/9627.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
1
+ {"version":1,"files":["../../../../../../../../../node_modules/better-sqlite3/build/Release/better_sqlite3.node","../../../../../../../../../node_modules/better-sqlite3/lib/database.js","../../../../../../../../../node_modules/better-sqlite3/lib/index.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/aggregate.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/backup.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/function.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/inspect.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/pragma.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/serialize.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/table.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/transaction.js","../../../../../../../../../node_modules/better-sqlite3/lib/methods/wrappers.js","../../../../../../../../../node_modules/better-sqlite3/lib/sqlite-error.js","../../../../../../../../../node_modules/better-sqlite3/lib/util.js","../../../../../../../../../node_modules/better-sqlite3/package.json","../../../../../../../../../node_modules/bindings/bindings.js","../../../../../../../../../node_modules/bindings/package.json","../../../../../../../../../node_modules/file-uri-to-path/index.js","../../../../../../../../../node_modules/file-uri-to-path/package.json","../../../../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../package.json","../../../../../../../../../scripts/hooks/cmate-agent-event.sh","../../../../../../../../package.json","../../../../../../../chunks/1331.js","../../../../../../../chunks/2328.js","../../../../../../../chunks/2710.js","../../../../../../../chunks/28.js","../../../../../../../chunks/365.js","../../../../../../../chunks/3722.js","../../../../../../../chunks/406.js","../../../../../../../chunks/4390.js","../../../../../../../chunks/5048.js","../../../../../../../chunks/5456.js","../../../../../../../chunks/6065.js","../../../../../../../chunks/641.js","../../../../../../../chunks/8584.js","../../../../../../../chunks/8807.js","../../../../../../../chunks/9360.js","../../../../../../../chunks/9584.js","../../../../../../../chunks/9627.js","../../../../../../../webpack-runtime.js","route_client-reference-manifest.js"]}