commandmate 0.27.1 → 0.29.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 (980) hide show
  1. package/.env.example +28 -0
  2. package/.next/BUILD_ID +1 -1
  3. package/.next/app-build-manifest.json +441 -404
  4. package/.next/app-path-routes-manifest.json +34 -29
  5. package/.next/build-manifest.json +5 -5
  6. package/.next/prerender-manifest.json +9 -9
  7. package/.next/react-loadable-manifest.json +0 -6
  8. package/.next/required-server-files.json +1 -1
  9. package/.next/routes-manifest.json +32 -0
  10. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/api/app/update/route.js +1 -1
  12. package/.next/server/app/api/app/update/route.js.nft.json +1 -1
  13. package/.next/server/app/api/app/update/route_client-reference-manifest.js +1 -1
  14. package/.next/server/app/api/app/update-check/route.js +1 -1
  15. package/.next/server/app/api/app/update-check/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/assistant/conversation/route.js +1 -1
  17. package/.next/server/app/api/assistant/conversation/route.js.nft.json +1 -1
  18. package/.next/server/app/api/assistant/conversation/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/assistant/current-output/route.js +1 -1
  20. package/.next/server/app/api/assistant/current-output/route.js.nft.json +1 -1
  21. package/.next/server/app/api/assistant/current-output/route_client-reference-manifest.js +1 -1
  22. package/.next/server/app/api/assistant/messages/route.js +1 -1
  23. package/.next/server/app/api/assistant/messages/route.js.nft.json +1 -1
  24. package/.next/server/app/api/assistant/messages/route_client-reference-manifest.js +1 -1
  25. package/.next/server/app/api/assistant/session/route.js +1 -1
  26. package/.next/server/app/api/assistant/session/route.js.nft.json +1 -1
  27. package/.next/server/app/api/assistant/session/route_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/assistant/start/route.js +32 -1
  29. package/.next/server/app/api/assistant/start/route.js.nft.json +1 -1
  30. package/.next/server/app/api/assistant/start/route_client-reference-manifest.js +1 -1
  31. package/.next/server/app/api/assistant/terminal/route.js +34 -3
  32. package/.next/server/app/api/assistant/terminal/route.js.nft.json +1 -1
  33. package/.next/server/app/api/assistant/terminal/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/assistant/tools/route.js +1 -1
  35. package/.next/server/app/api/assistant/tools/route.js.nft.json +1 -1
  36. package/.next/server/app/api/assistant/tools/route_client-reference-manifest.js +1 -1
  37. package/.next/server/app/api/auth/login/route.js +1 -1
  38. package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  39. package/.next/server/app/api/auth/logout/route.js +1 -1
  40. package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  41. package/.next/server/app/api/auth/status/route.js +1 -1
  42. package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  43. package/.next/server/app/api/capabilities/route.js +1 -1
  44. package/.next/server/app/api/capabilities/route_client-reference-manifest.js +1 -1
  45. package/.next/server/app/api/daily-summary/route.js +1 -1
  46. package/.next/server/app/api/daily-summary/route.js.nft.json +1 -1
  47. package/.next/server/app/api/daily-summary/route_client-reference-manifest.js +1 -1
  48. package/.next/server/app/api/daily-summary/status/route.js +1 -1
  49. package/.next/server/app/api/daily-summary/status/route.js.nft.json +1 -1
  50. package/.next/server/app/api/daily-summary/status/route_client-reference-manifest.js +1 -1
  51. package/.next/server/app/api/external-apps/[id]/health/route.js +1 -1
  52. package/.next/server/app/api/external-apps/[id]/health/route.js.nft.json +1 -1
  53. package/.next/server/app/api/external-apps/[id]/health/route_client-reference-manifest.js +1 -1
  54. package/.next/server/app/api/external-apps/[id]/route.js +1 -1
  55. package/.next/server/app/api/external-apps/[id]/route.js.nft.json +1 -1
  56. package/.next/server/app/api/external-apps/[id]/route_client-reference-manifest.js +1 -1
  57. package/.next/server/app/api/external-apps/route.js +1 -1
  58. package/.next/server/app/api/external-apps/route.js.nft.json +1 -1
  59. package/.next/server/app/api/external-apps/route_client-reference-manifest.js +1 -1
  60. package/.next/server/app/api/fs/browse/route.js +1 -1
  61. package/.next/server/app/api/fs/browse/route.js.nft.json +1 -1
  62. package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -1
  63. package/.next/server/app/api/fs/recent-paths/route.js +1 -1
  64. package/.next/server/app/api/fs/recent-paths/route.js.nft.json +1 -1
  65. package/.next/server/app/api/fs/recent-paths/route_client-reference-manifest.js +1 -1
  66. package/.next/server/app/api/hooks/agent-event/route.js +1 -1
  67. package/.next/server/app/api/hooks/agent-event/route.js.nft.json +1 -1
  68. package/.next/server/app/api/hooks/agent-event/route_client-reference-manifest.js +1 -1
  69. package/.next/server/app/api/hooks/claude-done/route.js +2 -2
  70. package/.next/server/app/api/hooks/claude-done/route.js.nft.json +1 -1
  71. package/.next/server/app/api/hooks/claude-done/route_client-reference-manifest.js +1 -1
  72. package/.next/server/app/api/hooks/permission-request/route.js +1 -1
  73. package/.next/server/app/api/hooks/permission-request/route.js.nft.json +1 -1
  74. package/.next/server/app/api/hooks/permission-request/route_client-reference-manifest.js +1 -1
  75. package/.next/server/app/api/metrics/vibe/route.js +1 -1
  76. package/.next/server/app/api/metrics/vibe/route.js.nft.json +1 -1
  77. package/.next/server/app/api/metrics/vibe/route_client-reference-manifest.js +1 -1
  78. package/.next/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
  79. package/.next/server/app/api/push/escalation/route.js +1 -1
  80. package/.next/server/app/api/push/escalation/route.js.nft.json +1 -1
  81. package/.next/server/app/api/push/escalation/route_client-reference-manifest.js +1 -1
  82. package/.next/server/app/api/push/subscriptions/route.js +7 -1
  83. package/.next/server/app/api/push/subscriptions/route.js.nft.json +1 -1
  84. package/.next/server/app/api/push/subscriptions/route_client-reference-manifest.js +1 -1
  85. package/.next/server/app/api/push/vapid/route.js +1 -1
  86. package/.next/server/app/api/push/vapid/route.js.nft.json +1 -1
  87. package/.next/server/app/api/push/vapid/route_client-reference-manifest.js +1 -1
  88. package/.next/server/app/api/remote/pair/route.js +2 -0
  89. package/.next/server/app/api/remote/pair/route.js.nft.json +1 -0
  90. package/.next/server/app/api/remote/pair/route_client-reference-manifest.js +1 -0
  91. package/.next/server/app/api/repositories/[id]/route.js +1 -1
  92. package/.next/server/app/api/repositories/[id]/route.js.nft.json +1 -1
  93. package/.next/server/app/api/repositories/[id]/route_client-reference-manifest.js +1 -1
  94. package/.next/server/app/api/repositories/[id]/todos/[todoId]/route.js +1 -1
  95. package/.next/server/app/api/repositories/[id]/todos/[todoId]/route.js.nft.json +1 -1
  96. package/.next/server/app/api/repositories/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
  97. package/.next/server/app/api/repositories/[id]/todos/route.js +1 -1
  98. package/.next/server/app/api/repositories/[id]/todos/route.js.nft.json +1 -1
  99. package/.next/server/app/api/repositories/[id]/todos/route_client-reference-manifest.js +1 -1
  100. package/.next/server/app/api/repositories/clone/[jobId]/route.js +1 -1
  101. package/.next/server/app/api/repositories/clone/[jobId]/route.js.nft.json +1 -1
  102. package/.next/server/app/api/repositories/clone/[jobId]/route_client-reference-manifest.js +1 -1
  103. package/.next/server/app/api/repositories/clone/route.js +1 -1
  104. package/.next/server/app/api/repositories/clone/route.js.nft.json +1 -1
  105. package/.next/server/app/api/repositories/clone/route_client-reference-manifest.js +1 -1
  106. package/.next/server/app/api/repositories/excluded/route.js +1 -1
  107. package/.next/server/app/api/repositories/excluded/route.js.nft.json +1 -1
  108. package/.next/server/app/api/repositories/excluded/route_client-reference-manifest.js +1 -1
  109. package/.next/server/app/api/repositories/restore/route.js +1 -1
  110. package/.next/server/app/api/repositories/restore/route.js.nft.json +1 -1
  111. package/.next/server/app/api/repositories/restore/route_client-reference-manifest.js +1 -1
  112. package/.next/server/app/api/repositories/route.js +1 -1
  113. package/.next/server/app/api/repositories/route.js.nft.json +1 -1
  114. package/.next/server/app/api/repositories/route_client-reference-manifest.js +1 -1
  115. package/.next/server/app/api/repositories/scan/route.js +1 -1
  116. package/.next/server/app/api/repositories/scan/route.js.nft.json +1 -1
  117. package/.next/server/app/api/repositories/scan/route_client-reference-manifest.js +1 -1
  118. package/.next/server/app/api/repositories/sync/route.js +1 -1
  119. package/.next/server/app/api/repositories/sync/route.js.nft.json +1 -1
  120. package/.next/server/app/api/repositories/sync/route_client-reference-manifest.js +1 -1
  121. package/.next/server/app/api/repositories/validate-path/route.js +1 -1
  122. package/.next/server/app/api/repositories/validate-path/route.js.nft.json +1 -1
  123. package/.next/server/app/api/repositories/validate-path/route_client-reference-manifest.js +1 -1
  124. package/.next/server/app/api/sidebar/group-order/route.js +1 -1
  125. package/.next/server/app/api/sidebar/group-order/route.js.nft.json +1 -1
  126. package/.next/server/app/api/sidebar/group-order/route_client-reference-manifest.js +1 -1
  127. package/.next/server/app/api/skills/[id]/route.js.nft.json +1 -1
  128. package/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
  129. package/.next/server/app/api/skills/installations/route.js +1 -1
  130. package/.next/server/app/api/skills/installations/route.js.nft.json +1 -1
  131. package/.next/server/app/api/skills/installations/route_client-reference-manifest.js +1 -1
  132. package/.next/server/app/api/skills/operations/route.js +1 -1
  133. package/.next/server/app/api/skills/operations/route.js.nft.json +1 -1
  134. package/.next/server/app/api/skills/operations/route_client-reference-manifest.js +1 -1
  135. package/.next/server/app/api/skills/reindex/route.js +1 -1
  136. package/.next/server/app/api/skills/reindex/route.js.nft.json +1 -1
  137. package/.next/server/app/api/skills/reindex/route_client-reference-manifest.js +1 -1
  138. package/.next/server/app/api/skills/route.js.nft.json +1 -1
  139. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  140. package/.next/server/app/api/slash-commands/route.js.nft.json +1 -1
  141. package/.next/server/app/api/slash-commands/route_client-reference-manifest.js +1 -1
  142. package/.next/server/app/api/tasks/[taskId]/cancel/route.js +1 -1
  143. package/.next/server/app/api/tasks/[taskId]/cancel/route.js.nft.json +1 -1
  144. package/.next/server/app/api/tasks/[taskId]/cancel/route_client-reference-manifest.js +1 -1
  145. package/.next/server/app/api/tasks/[taskId]/route.js +1 -1
  146. package/.next/server/app/api/tasks/[taskId]/route.js.nft.json +1 -1
  147. package/.next/server/app/api/tasks/[taskId]/route_client-reference-manifest.js +1 -1
  148. package/.next/server/app/api/templates/[id]/route.js +2 -2
  149. package/.next/server/app/api/templates/[id]/route.js.nft.json +1 -1
  150. package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +1 -1
  151. package/.next/server/app/api/templates/route.js +2 -2
  152. package/.next/server/app/api/templates/route.js.nft.json +1 -1
  153. package/.next/server/app/api/templates/route_client-reference-manifest.js +1 -1
  154. package/.next/server/app/api/todos/route.js +1 -1
  155. package/.next/server/app/api/todos/route.js.nft.json +1 -1
  156. package/.next/server/app/api/todos/route_client-reference-manifest.js +1 -1
  157. package/.next/server/app/api/verification/runs/[runId]/route.js +1 -1
  158. package/.next/server/app/api/verification/runs/[runId]/route.js.nft.json +1 -1
  159. package/.next/server/app/api/verification/runs/[runId]/route_client-reference-manifest.js +1 -1
  160. package/.next/server/app/api/verification/runs/route.js +1 -1
  161. package/.next/server/app/api/verification/runs/route.js.nft.json +1 -1
  162. package/.next/server/app/api/verification/runs/route_client-reference-manifest.js +1 -1
  163. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js +1 -1
  164. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js.nft.json +1 -1
  165. package/.next/server/app/api/worktrees/[id]/auto-yes/route_client-reference-manifest.js +1 -1
  166. package/.next/server/app/api/worktrees/[id]/capture/route.js +1 -1
  167. package/.next/server/app/api/worktrees/[id]/capture/route.js.nft.json +1 -1
  168. package/.next/server/app/api/worktrees/[id]/capture/route_client-reference-manifest.js +1 -1
  169. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js +1 -1
  170. package/.next/server/app/api/worktrees/[id]/clear-composer/route.js.nft.json +1 -1
  171. package/.next/server/app/api/worktrees/[id]/clear-composer/route_client-reference-manifest.js +1 -1
  172. package/.next/server/app/api/worktrees/[id]/cli-tool/route.js +1 -1
  173. package/.next/server/app/api/worktrees/[id]/cli-tool/route.js.nft.json +1 -1
  174. package/.next/server/app/api/worktrees/[id]/cli-tool/route_client-reference-manifest.js +1 -1
  175. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js +2 -2
  176. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js.nft.json +1 -1
  177. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route_client-reference-manifest.js +1 -1
  178. package/.next/server/app/api/worktrees/[id]/current-output/route.js +2 -2
  179. package/.next/server/app/api/worktrees/[id]/current-output/route.js.nft.json +1 -1
  180. package/.next/server/app/api/worktrees/[id]/current-output/route_client-reference-manifest.js +1 -1
  181. package/.next/server/app/api/worktrees/[id]/env/route.js +1 -1
  182. package/.next/server/app/api/worktrees/[id]/env/route.js.nft.json +1 -1
  183. package/.next/server/app/api/worktrees/[id]/env/route_client-reference-manifest.js +1 -1
  184. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route.js +1 -1
  185. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route.js.nft.json +1 -1
  186. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route_client-reference-manifest.js +1 -1
  187. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js +2 -2
  188. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js.nft.json +1 -1
  189. package/.next/server/app/api/worktrees/[id]/execution-logs/route_client-reference-manifest.js +1 -1
  190. package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js +1 -1
  191. package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js.nft.json +1 -1
  192. package/.next/server/app/api/worktrees/[id]/files/[...path]/route_client-reference-manifest.js +1 -1
  193. package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js +1 -1
  194. package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js.nft.json +1 -1
  195. package/.next/server/app/api/worktrees/[id]/git/branch/create/route_client-reference-manifest.js +1 -1
  196. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js +1 -1
  197. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js.nft.json +1 -1
  198. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route_client-reference-manifest.js +1 -1
  199. package/.next/server/app/api/worktrees/[id]/git/branches/route.js +1 -1
  200. package/.next/server/app/api/worktrees/[id]/git/branches/route.js.nft.json +1 -1
  201. package/.next/server/app/api/worktrees/[id]/git/branches/route_client-reference-manifest.js +1 -1
  202. package/.next/server/app/api/worktrees/[id]/git/checkout/route.js +1 -1
  203. package/.next/server/app/api/worktrees/[id]/git/checkout/route.js.nft.json +1 -1
  204. package/.next/server/app/api/worktrees/[id]/git/checkout/route_client-reference-manifest.js +1 -1
  205. package/.next/server/app/api/worktrees/[id]/git/commit/route.js +1 -1
  206. package/.next/server/app/api/worktrees/[id]/git/commit/route.js.nft.json +1 -1
  207. package/.next/server/app/api/worktrees/[id]/git/commit/route_client-reference-manifest.js +1 -1
  208. package/.next/server/app/api/worktrees/[id]/git/diff/route.js +1 -1
  209. package/.next/server/app/api/worktrees/[id]/git/diff/route.js.nft.json +1 -1
  210. package/.next/server/app/api/worktrees/[id]/git/diff/route_client-reference-manifest.js +1 -1
  211. package/.next/server/app/api/worktrees/[id]/git/fetch/route.js +1 -1
  212. package/.next/server/app/api/worktrees/[id]/git/fetch/route.js.nft.json +1 -1
  213. package/.next/server/app/api/worktrees/[id]/git/fetch/route_client-reference-manifest.js +1 -1
  214. package/.next/server/app/api/worktrees/[id]/git/log/route.js +1 -1
  215. package/.next/server/app/api/worktrees/[id]/git/log/route.js.nft.json +1 -1
  216. package/.next/server/app/api/worktrees/[id]/git/log/route_client-reference-manifest.js +1 -1
  217. package/.next/server/app/api/worktrees/[id]/git/pull/route.js +1 -1
  218. package/.next/server/app/api/worktrees/[id]/git/pull/route.js.nft.json +1 -1
  219. package/.next/server/app/api/worktrees/[id]/git/pull/route_client-reference-manifest.js +1 -1
  220. package/.next/server/app/api/worktrees/[id]/git/push/route.js +1 -1
  221. package/.next/server/app/api/worktrees/[id]/git/push/route.js.nft.json +1 -1
  222. package/.next/server/app/api/worktrees/[id]/git/push/route_client-reference-manifest.js +1 -1
  223. package/.next/server/app/api/worktrees/[id]/git/reset/route.js +1 -1
  224. package/.next/server/app/api/worktrees/[id]/git/reset/route.js.nft.json +1 -1
  225. package/.next/server/app/api/worktrees/[id]/git/reset/route_client-reference-manifest.js +1 -1
  226. package/.next/server/app/api/worktrees/[id]/git/revert/route.js +1 -1
  227. package/.next/server/app/api/worktrees/[id]/git/revert/route.js.nft.json +1 -1
  228. package/.next/server/app/api/worktrees/[id]/git/revert/route_client-reference-manifest.js +1 -1
  229. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route.js +1 -1
  230. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route.js.nft.json +1 -1
  231. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route_client-reference-manifest.js +1 -1
  232. package/.next/server/app/api/worktrees/[id]/git/stage/route.js +1 -1
  233. package/.next/server/app/api/worktrees/[id]/git/stage/route.js.nft.json +1 -1
  234. package/.next/server/app/api/worktrees/[id]/git/stage/route_client-reference-manifest.js +1 -1
  235. package/.next/server/app/api/worktrees/[id]/git/staged/route.js +1 -1
  236. package/.next/server/app/api/worktrees/[id]/git/staged/route.js.nft.json +1 -1
  237. package/.next/server/app/api/worktrees/[id]/git/staged/route_client-reference-manifest.js +1 -1
  238. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route.js +1 -1
  239. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route.js.nft.json +1 -1
  240. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route_client-reference-manifest.js +1 -1
  241. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js +1 -1
  242. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js.nft.json +1 -1
  243. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route_client-reference-manifest.js +1 -1
  244. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js +1 -1
  245. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js.nft.json +1 -1
  246. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route_client-reference-manifest.js +1 -1
  247. package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js +1 -1
  248. package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js.nft.json +1 -1
  249. package/.next/server/app/api/worktrees/[id]/git/stash/push/route_client-reference-manifest.js +1 -1
  250. package/.next/server/app/api/worktrees/[id]/git/stash/route.js +1 -1
  251. package/.next/server/app/api/worktrees/[id]/git/stash/route.js.nft.json +1 -1
  252. package/.next/server/app/api/worktrees/[id]/git/stash/route_client-reference-manifest.js +1 -1
  253. package/.next/server/app/api/worktrees/[id]/git/status/route.js +1 -1
  254. package/.next/server/app/api/worktrees/[id]/git/status/route.js.nft.json +1 -1
  255. package/.next/server/app/api/worktrees/[id]/git/status/route_client-reference-manifest.js +1 -1
  256. package/.next/server/app/api/worktrees/[id]/git/unstage/route.js +1 -1
  257. package/.next/server/app/api/worktrees/[id]/git/unstage/route.js.nft.json +1 -1
  258. package/.next/server/app/api/worktrees/[id]/git/unstage/route_client-reference-manifest.js +1 -1
  259. package/.next/server/app/api/worktrees/[id]/git/working-diff/route.js +1 -1
  260. package/.next/server/app/api/worktrees/[id]/git/working-diff/route.js.nft.json +1 -1
  261. package/.next/server/app/api/worktrees/[id]/git/working-diff/route_client-reference-manifest.js +1 -1
  262. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js +1 -0
  263. package/.next/server/app/api/worktrees/[id]/instances/opencode/route.js.nft.json +1 -0
  264. package/.next/server/app/api/worktrees/[id]/instances/opencode/route_client-reference-manifest.js +1 -0
  265. package/.next/server/app/api/worktrees/[id]/interrupt/route.js +1 -1
  266. package/.next/server/app/api/worktrees/[id]/interrupt/route.js.nft.json +1 -1
  267. package/.next/server/app/api/worktrees/[id]/interrupt/route_client-reference-manifest.js +1 -1
  268. package/.next/server/app/api/worktrees/[id]/kill-session/route.js +1 -1
  269. package/.next/server/app/api/worktrees/[id]/kill-session/route.js.nft.json +1 -1
  270. package/.next/server/app/api/worktrees/[id]/kill-session/route_client-reference-manifest.js +1 -1
  271. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route.js +1 -1
  272. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route.js.nft.json +1 -1
  273. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route_client-reference-manifest.js +1 -1
  274. package/.next/server/app/api/worktrees/[id]/logs/route.js +2 -2
  275. package/.next/server/app/api/worktrees/[id]/logs/route.js.nft.json +1 -1
  276. package/.next/server/app/api/worktrees/[id]/logs/route_client-reference-manifest.js +1 -1
  277. package/.next/server/app/api/worktrees/[id]/marp-render/route.js +4 -4
  278. package/.next/server/app/api/worktrees/[id]/marp-render/route.js.nft.json +1 -1
  279. package/.next/server/app/api/worktrees/[id]/marp-render/route_client-reference-manifest.js +1 -1
  280. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js +1 -1
  281. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js.nft.json +1 -1
  282. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route_client-reference-manifest.js +1 -1
  283. package/.next/server/app/api/worktrees/[id]/memos/route.js +1 -1
  284. package/.next/server/app/api/worktrees/[id]/memos/route.js.nft.json +1 -1
  285. package/.next/server/app/api/worktrees/[id]/memos/route_client-reference-manifest.js +1 -1
  286. package/.next/server/app/api/worktrees/[id]/messages/route.js +1 -1
  287. package/.next/server/app/api/worktrees/[id]/messages/route.js.nft.json +1 -1
  288. package/.next/server/app/api/worktrees/[id]/messages/route_client-reference-manifest.js +1 -1
  289. package/.next/server/app/api/worktrees/[id]/opencode/diff/route.js +1 -0
  290. package/.next/server/app/api/worktrees/[id]/opencode/diff/route.js.nft.json +1 -0
  291. package/.next/server/app/api/worktrees/[id]/opencode/diff/route_client-reference-manifest.js +1 -0
  292. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js +1 -0
  293. package/.next/server/app/api/worktrees/[id]/opencode/session/route.js.nft.json +1 -0
  294. package/.next/server/app/api/worktrees/[id]/opencode/session/route_client-reference-manifest.js +1 -0
  295. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js +1 -0
  296. package/.next/server/app/api/worktrees/[id]/opencode/share/route.js.nft.json +1 -0
  297. package/.next/server/app/api/worktrees/[id]/opencode/share/route_client-reference-manifest.js +1 -0
  298. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js +1 -1
  299. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js.nft.json +1 -1
  300. package/.next/server/app/api/worktrees/[id]/prompt-response/route_client-reference-manifest.js +1 -1
  301. package/.next/server/app/api/worktrees/[id]/resolve-target/route.js +1 -1
  302. package/.next/server/app/api/worktrees/[id]/resolve-target/route.js.nft.json +1 -1
  303. package/.next/server/app/api/worktrees/[id]/resolve-target/route_client-reference-manifest.js +1 -1
  304. package/.next/server/app/api/worktrees/[id]/respond/route.js +1 -1
  305. package/.next/server/app/api/worktrees/[id]/respond/route.js.nft.json +1 -1
  306. package/.next/server/app/api/worktrees/[id]/respond/route_client-reference-manifest.js +1 -1
  307. package/.next/server/app/api/worktrees/[id]/route.js +1 -1
  308. package/.next/server/app/api/worktrees/[id]/route.js.nft.json +1 -1
  309. package/.next/server/app/api/worktrees/[id]/route_client-reference-manifest.js +1 -1
  310. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js +5 -1
  311. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js.nft.json +1 -1
  312. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route_client-reference-manifest.js +1 -1
  313. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js +1 -1
  314. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js.nft.json +1 -1
  315. package/.next/server/app/api/worktrees/[id]/schedules/active/route_client-reference-manifest.js +1 -1
  316. package/.next/server/app/api/worktrees/[id]/schedules/route.js +6 -2
  317. package/.next/server/app/api/worktrees/[id]/schedules/route.js.nft.json +1 -1
  318. package/.next/server/app/api/worktrees/[id]/schedules/route_client-reference-manifest.js +1 -1
  319. package/.next/server/app/api/worktrees/[id]/search/route.js +1 -1
  320. package/.next/server/app/api/worktrees/[id]/search/route.js.nft.json +1 -1
  321. package/.next/server/app/api/worktrees/[id]/search/route_client-reference-manifest.js +1 -1
  322. package/.next/server/app/api/worktrees/[id]/send/route.js +7 -3
  323. package/.next/server/app/api/worktrees/[id]/send/route.js.nft.json +1 -1
  324. package/.next/server/app/api/worktrees/[id]/send/route_client-reference-manifest.js +1 -1
  325. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js +1 -1
  326. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js.nft.json +1 -1
  327. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route_client-reference-manifest.js +1 -1
  328. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js +1 -1
  329. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js.nft.json +1 -1
  330. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route_client-reference-manifest.js +1 -1
  331. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js +1 -1
  332. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js.nft.json +1 -1
  333. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route_client-reference-manifest.js +1 -1
  334. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js +1 -1
  335. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js.nft.json +1 -1
  336. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route_client-reference-manifest.js +1 -1
  337. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js +1 -1
  338. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js.nft.json +1 -1
  339. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route_client-reference-manifest.js +1 -1
  340. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route.js +1 -1
  341. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route.js.nft.json +1 -1
  342. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update/route_client-reference-manifest.js +1 -1
  343. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js +1 -1
  344. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route.js.nft.json +1 -1
  345. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/update-plan/route_client-reference-manifest.js +1 -1
  346. package/.next/server/app/api/worktrees/[id]/skills/route.js +1 -1
  347. package/.next/server/app/api/worktrees/[id]/skills/route.js.nft.json +1 -1
  348. package/.next/server/app/api/worktrees/[id]/skills/route_client-reference-manifest.js +1 -1
  349. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js +1 -1
  350. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js.nft.json +1 -1
  351. package/.next/server/app/api/worktrees/[id]/slash-commands/route_client-reference-manifest.js +1 -1
  352. package/.next/server/app/api/worktrees/[id]/special-keys/route.js +1 -1
  353. package/.next/server/app/api/worktrees/[id]/special-keys/route.js.nft.json +1 -1
  354. package/.next/server/app/api/worktrees/[id]/special-keys/route_client-reference-manifest.js +1 -1
  355. package/.next/server/app/api/worktrees/[id]/start-polling/route.js +1 -1
  356. package/.next/server/app/api/worktrees/[id]/start-polling/route.js.nft.json +1 -1
  357. package/.next/server/app/api/worktrees/[id]/start-polling/route_client-reference-manifest.js +1 -1
  358. package/.next/server/app/api/worktrees/[id]/tasks/route.js +1 -1
  359. package/.next/server/app/api/worktrees/[id]/tasks/route.js.nft.json +1 -1
  360. package/.next/server/app/api/worktrees/[id]/tasks/route_client-reference-manifest.js +1 -1
  361. package/.next/server/app/api/worktrees/[id]/terminal/route.js +1 -1
  362. package/.next/server/app/api/worktrees/[id]/terminal/route.js.nft.json +1 -1
  363. package/.next/server/app/api/worktrees/[id]/terminal/route_client-reference-manifest.js +1 -1
  364. package/.next/server/app/api/worktrees/[id]/timers/history/route.js +1 -1
  365. package/.next/server/app/api/worktrees/[id]/timers/history/route.js.nft.json +1 -1
  366. package/.next/server/app/api/worktrees/[id]/timers/history/route_client-reference-manifest.js +1 -1
  367. package/.next/server/app/api/worktrees/[id]/timers/route.js +1 -3
  368. package/.next/server/app/api/worktrees/[id]/timers/route.js.nft.json +1 -1
  369. package/.next/server/app/api/worktrees/[id]/timers/route_client-reference-manifest.js +1 -1
  370. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route.js +1 -1
  371. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route.js.nft.json +1 -1
  372. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
  373. package/.next/server/app/api/worktrees/[id]/todos/route.js +1 -1
  374. package/.next/server/app/api/worktrees/[id]/todos/route.js.nft.json +1 -1
  375. package/.next/server/app/api/worktrees/[id]/todos/route_client-reference-manifest.js +1 -1
  376. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route.js +1 -1
  377. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route.js.nft.json +1 -1
  378. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route_client-reference-manifest.js +1 -1
  379. package/.next/server/app/api/worktrees/[id]/tree/route.js +1 -1
  380. package/.next/server/app/api/worktrees/[id]/tree/route.js.nft.json +1 -1
  381. package/.next/server/app/api/worktrees/[id]/tree/route_client-reference-manifest.js +1 -1
  382. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route.js +1 -1
  383. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route.js.nft.json +1 -1
  384. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route_client-reference-manifest.js +1 -1
  385. package/.next/server/app/api/worktrees/[id]/verify/route.js +1 -1
  386. package/.next/server/app/api/worktrees/[id]/verify/route.js.nft.json +1 -1
  387. package/.next/server/app/api/worktrees/[id]/verify/route_client-reference-manifest.js +1 -1
  388. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route.js +1 -1
  389. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route.js.nft.json +1 -1
  390. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route_client-reference-manifest.js +1 -1
  391. package/.next/server/app/api/worktrees/[id]/verify/runs/route.js +1 -1
  392. package/.next/server/app/api/worktrees/[id]/verify/runs/route.js.nft.json +1 -1
  393. package/.next/server/app/api/worktrees/[id]/verify/runs/route_client-reference-manifest.js +1 -1
  394. package/.next/server/app/api/worktrees/[id]/viewed/route.js +1 -1
  395. package/.next/server/app/api/worktrees/[id]/viewed/route.js.nft.json +1 -1
  396. package/.next/server/app/api/worktrees/[id]/viewed/route_client-reference-manifest.js +1 -1
  397. package/.next/server/app/api/worktrees/route.js +1 -1
  398. package/.next/server/app/api/worktrees/route.js.nft.json +1 -1
  399. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
  400. package/.next/server/app/chat/page_client-reference-manifest.js +1 -1
  401. package/.next/server/app/login/page.js +2 -2
  402. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  403. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  404. package/.next/server/app/more/page.js +1 -1
  405. package/.next/server/app/more/page_client-reference-manifest.js +1 -1
  406. package/.next/server/app/offline/page_client-reference-manifest.js +1 -1
  407. package/.next/server/app/page_client-reference-manifest.js +1 -1
  408. package/.next/server/app/proxy/[...path]/route.js +1 -1
  409. package/.next/server/app/proxy/[...path]/route.js.nft.json +1 -1
  410. package/.next/server/app/proxy/[...path]/route_client-reference-manifest.js +1 -1
  411. package/.next/server/app/repositories/page_client-reference-manifest.js +1 -1
  412. package/.next/server/app/review/page.js +1 -1
  413. package/.next/server/app/review/page.js.nft.json +1 -1
  414. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  415. package/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  416. package/.next/server/app/skills/[skillId]/page_client-reference-manifest.js +1 -1
  417. package/.next/server/app/skills/installed/page_client-reference-manifest.js +1 -1
  418. package/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  419. package/.next/server/app/worktrees/[id]/files/[...path]/page.js +1 -1
  420. package/.next/server/app/worktrees/[id]/files/[...path]/page.js.nft.json +1 -1
  421. package/.next/server/app/worktrees/[id]/files/[...path]/page_client-reference-manifest.js +1 -1
  422. package/.next/server/app/worktrees/[id]/page.js +15 -10
  423. package/.next/server/app/worktrees/[id]/page.js.nft.json +1 -1
  424. package/.next/server/app/worktrees/[id]/page_client-reference-manifest.js +1 -1
  425. package/.next/server/app/worktrees/[id]/terminal/page.js +2 -2
  426. package/.next/server/app/worktrees/[id]/terminal/page.js.nft.json +1 -1
  427. package/.next/server/app/worktrees/[id]/terminal/page_client-reference-manifest.js +1 -1
  428. package/.next/server/app-paths-manifest.json +34 -29
  429. package/.next/server/chunks/1058.js +1 -0
  430. package/.next/server/chunks/1068.js +1 -3
  431. package/.next/server/chunks/1162.js +1 -1
  432. package/.next/server/chunks/1191.js +13 -0
  433. package/.next/server/chunks/1296.js +1 -1
  434. package/.next/server/chunks/1601.js +2 -2
  435. package/.next/server/chunks/1714.js +7 -0
  436. package/.next/server/chunks/1886.js +5 -0
  437. package/.next/server/chunks/1944.js +1 -0
  438. package/.next/server/chunks/2119.js +1 -1
  439. package/.next/server/chunks/221.js +19 -0
  440. package/.next/server/chunks/222.js +1 -0
  441. package/.next/server/chunks/2328.js +1 -1
  442. package/.next/server/chunks/2366.js +1 -0
  443. package/.next/server/chunks/2404.js +1 -1
  444. package/.next/server/chunks/243.js +1 -0
  445. package/.next/server/chunks/2445.js +1 -1
  446. package/.next/server/chunks/2759.js +1 -1
  447. package/.next/server/chunks/3346.js +1 -1
  448. package/.next/server/chunks/3440.js +1 -1
  449. package/.next/server/chunks/3480.js +17 -1
  450. package/.next/server/chunks/3543.js +1 -1
  451. package/.next/server/chunks/3558.js +1 -0
  452. package/.next/server/chunks/3945.js +1 -1
  453. package/.next/server/chunks/4299.js +1 -0
  454. package/.next/server/chunks/4393.js +1 -1
  455. package/.next/server/chunks/5017.js +1 -1
  456. package/.next/server/chunks/5089.js +1 -1
  457. package/.next/server/chunks/5354.js +1 -1
  458. package/.next/server/chunks/5571.js +1 -1
  459. package/.next/server/chunks/6130.js +1 -1
  460. package/.next/server/chunks/6274.js +11 -10
  461. package/.next/server/chunks/6285.js +1 -1
  462. package/.next/server/chunks/6337.js +1 -0
  463. package/.next/server/chunks/6401.js +1 -1
  464. package/.next/server/chunks/663.js +78 -0
  465. package/.next/server/chunks/7472.js +1 -1
  466. package/.next/server/chunks/7824.js +1 -0
  467. package/.next/server/chunks/7905.js +1 -0
  468. package/.next/server/chunks/880.js +6 -6
  469. package/.next/server/chunks/8807.js +84 -18
  470. package/.next/server/chunks/9123.js +2 -2
  471. package/.next/server/chunks/9130.js +5 -0
  472. package/.next/server/chunks/9328.js +1 -1
  473. package/.next/server/chunks/9358.js +1 -1
  474. package/.next/server/chunks/9508.js +1 -1
  475. package/.next/server/chunks/9584.js +1 -0
  476. package/.next/server/chunks/9627.js +274 -0
  477. package/.next/server/chunks/9798.js +2 -0
  478. package/.next/server/chunks/9938.js +1 -1
  479. package/.next/server/functions-config-manifest.json +3 -1
  480. package/.next/server/middleware-build-manifest.js +1 -1
  481. package/.next/server/middleware-manifest.json +5 -5
  482. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  483. package/.next/server/pages/500.html +1 -1
  484. package/.next/server/server-reference-manifest.json +1 -1
  485. package/.next/server/src/middleware.js +1 -1
  486. package/.next/server/src/middleware.js.map +1 -1
  487. package/.next/static/chunks/1188-8567ee5ecfef02ee.js +1 -0
  488. package/.next/static/chunks/3361-aa1b6e7c1d7eeeb4.js +1 -0
  489. package/.next/static/chunks/3968-8d8ca15657748bfb.js +1 -0
  490. package/.next/static/chunks/5229-580b581fce5aeb52.js +1 -0
  491. package/.next/static/chunks/6381-c8d93ec301dbc380.js +1 -0
  492. package/.next/static/chunks/app/api/app/update/route-e3626364434d521b.js +1 -0
  493. package/.next/static/chunks/app/api/app/update-check/route-e3626364434d521b.js +1 -0
  494. package/.next/static/chunks/app/api/assistant/conversation/route-e3626364434d521b.js +1 -0
  495. package/.next/static/chunks/app/api/assistant/current-output/route-e3626364434d521b.js +1 -0
  496. package/.next/static/chunks/app/api/assistant/messages/route-e3626364434d521b.js +1 -0
  497. package/.next/static/chunks/app/api/assistant/session/route-e3626364434d521b.js +1 -0
  498. package/.next/static/chunks/app/api/assistant/start/route-e3626364434d521b.js +1 -0
  499. package/.next/static/chunks/app/api/assistant/terminal/route-e3626364434d521b.js +1 -0
  500. package/.next/static/chunks/app/api/assistant/tools/route-e3626364434d521b.js +1 -0
  501. package/.next/static/chunks/app/api/auth/login/route-e3626364434d521b.js +1 -0
  502. package/.next/static/chunks/app/api/auth/logout/route-e3626364434d521b.js +1 -0
  503. package/.next/static/chunks/app/api/auth/status/route-e3626364434d521b.js +1 -0
  504. package/.next/static/chunks/app/api/capabilities/route-e3626364434d521b.js +1 -0
  505. package/.next/static/chunks/app/api/daily-summary/route-e3626364434d521b.js +1 -0
  506. package/.next/static/chunks/app/api/daily-summary/status/route-e3626364434d521b.js +1 -0
  507. package/.next/static/chunks/app/api/external-apps/[id]/health/route-e3626364434d521b.js +1 -0
  508. package/.next/static/chunks/app/api/external-apps/[id]/route-e3626364434d521b.js +1 -0
  509. package/.next/static/chunks/app/api/external-apps/route-e3626364434d521b.js +1 -0
  510. package/.next/static/chunks/app/api/fs/browse/route-e3626364434d521b.js +1 -0
  511. package/.next/static/chunks/app/api/fs/recent-paths/route-e3626364434d521b.js +1 -0
  512. package/.next/static/chunks/app/api/hooks/agent-event/route-e3626364434d521b.js +1 -0
  513. package/.next/static/chunks/app/api/hooks/claude-done/route-e3626364434d521b.js +1 -0
  514. package/.next/static/chunks/app/api/hooks/permission-request/route-e3626364434d521b.js +1 -0
  515. package/.next/static/chunks/app/api/metrics/vibe/route-e3626364434d521b.js +1 -0
  516. package/.next/static/chunks/app/api/ollama/models/route-e3626364434d521b.js +1 -0
  517. package/.next/static/chunks/app/api/push/escalation/route-e3626364434d521b.js +1 -0
  518. package/.next/static/chunks/app/api/push/subscriptions/route-e3626364434d521b.js +1 -0
  519. package/.next/static/chunks/app/api/push/vapid/route-e3626364434d521b.js +1 -0
  520. package/.next/static/chunks/app/api/remote/pair/route-e3626364434d521b.js +1 -0
  521. package/.next/static/chunks/app/api/repositories/[id]/route-e3626364434d521b.js +1 -0
  522. package/.next/static/chunks/app/api/repositories/[id]/todos/[todoId]/route-e3626364434d521b.js +1 -0
  523. package/.next/static/chunks/app/api/repositories/[id]/todos/route-e3626364434d521b.js +1 -0
  524. package/.next/static/chunks/app/api/repositories/clone/[jobId]/route-e3626364434d521b.js +1 -0
  525. package/.next/static/chunks/app/api/repositories/clone/route-e3626364434d521b.js +1 -0
  526. package/.next/static/chunks/app/api/repositories/excluded/route-e3626364434d521b.js +1 -0
  527. package/.next/static/chunks/app/api/repositories/restore/route-e3626364434d521b.js +1 -0
  528. package/.next/static/chunks/app/api/repositories/route-e3626364434d521b.js +1 -0
  529. package/.next/static/chunks/app/api/repositories/scan/route-e3626364434d521b.js +1 -0
  530. package/.next/static/chunks/app/api/repositories/sync/route-e3626364434d521b.js +1 -0
  531. package/.next/static/chunks/app/api/repositories/validate-path/route-e3626364434d521b.js +1 -0
  532. package/.next/static/chunks/app/api/sidebar/group-order/route-e3626364434d521b.js +1 -0
  533. package/.next/static/chunks/app/api/skills/[id]/route-e3626364434d521b.js +1 -0
  534. package/.next/static/chunks/app/api/skills/installations/route-e3626364434d521b.js +1 -0
  535. package/.next/static/chunks/app/api/skills/operations/route-e3626364434d521b.js +1 -0
  536. package/.next/static/chunks/app/api/skills/reindex/route-e3626364434d521b.js +1 -0
  537. package/.next/static/chunks/app/api/skills/route-e3626364434d521b.js +1 -0
  538. package/.next/static/chunks/app/api/slash-commands/route-e3626364434d521b.js +1 -0
  539. package/.next/static/chunks/app/api/tasks/[taskId]/cancel/route-e3626364434d521b.js +1 -0
  540. package/.next/static/chunks/app/api/tasks/[taskId]/route-e3626364434d521b.js +1 -0
  541. package/.next/static/chunks/app/api/templates/[id]/route-e3626364434d521b.js +1 -0
  542. package/.next/static/chunks/app/api/templates/route-e3626364434d521b.js +1 -0
  543. package/.next/static/chunks/app/api/todos/route-e3626364434d521b.js +1 -0
  544. package/.next/static/chunks/app/api/verification/runs/[runId]/route-e3626364434d521b.js +1 -0
  545. package/.next/static/chunks/app/api/verification/runs/route-e3626364434d521b.js +1 -0
  546. package/.next/static/chunks/app/api/worktrees/[id]/auto-yes/route-e3626364434d521b.js +1 -0
  547. package/.next/static/chunks/app/api/worktrees/[id]/capture/route-e3626364434d521b.js +1 -0
  548. package/.next/static/chunks/app/api/worktrees/[id]/clear-composer/route-e3626364434d521b.js +1 -0
  549. package/.next/static/chunks/app/api/worktrees/[id]/cli-tool/route-e3626364434d521b.js +1 -0
  550. package/.next/static/chunks/app/api/worktrees/[id]/cmate/schedules/route-e3626364434d521b.js +1 -0
  551. package/.next/static/chunks/app/api/worktrees/[id]/current-output/route-e3626364434d521b.js +1 -0
  552. package/.next/static/chunks/app/api/worktrees/[id]/env/route-e3626364434d521b.js +1 -0
  553. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/[logId]/route-e3626364434d521b.js +1 -0
  554. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/route-e3626364434d521b.js +1 -0
  555. package/.next/static/chunks/app/api/worktrees/[id]/files/[...path]/route-e3626364434d521b.js +1 -0
  556. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/create/route-e3626364434d521b.js +1 -0
  557. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/delete/route-e3626364434d521b.js +1 -0
  558. package/.next/static/chunks/app/api/worktrees/[id]/git/branches/route-e3626364434d521b.js +1 -0
  559. package/.next/static/chunks/app/api/worktrees/[id]/git/checkout/route-e3626364434d521b.js +1 -0
  560. package/.next/static/chunks/app/api/worktrees/[id]/git/commit/route-e3626364434d521b.js +1 -0
  561. package/.next/static/chunks/app/api/worktrees/[id]/git/diff/route-e3626364434d521b.js +1 -0
  562. package/.next/static/chunks/app/api/worktrees/[id]/git/fetch/route-e3626364434d521b.js +1 -0
  563. package/.next/static/chunks/app/api/worktrees/[id]/git/log/route-e3626364434d521b.js +1 -0
  564. package/.next/static/chunks/app/api/worktrees/[id]/git/pull/route-e3626364434d521b.js +1 -0
  565. package/.next/static/chunks/app/api/worktrees/[id]/git/push/route-e3626364434d521b.js +1 -0
  566. package/.next/static/chunks/app/api/worktrees/[id]/git/reset/route-e3626364434d521b.js +1 -0
  567. package/.next/static/chunks/app/api/worktrees/[id]/git/revert/route-e3626364434d521b.js +1 -0
  568. package/.next/static/chunks/app/api/worktrees/[id]/git/show/[commitHash]/route-e3626364434d521b.js +1 -0
  569. package/.next/static/chunks/app/api/worktrees/[id]/git/stage/route-e3626364434d521b.js +1 -0
  570. package/.next/static/chunks/app/api/worktrees/[id]/git/staged/route-e3626364434d521b.js +1 -0
  571. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/[index]/route-e3626364434d521b.js +1 -0
  572. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/apply/route-e3626364434d521b.js +1 -0
  573. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/pop/route-e3626364434d521b.js +1 -0
  574. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/push/route-e3626364434d521b.js +1 -0
  575. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/route-e3626364434d521b.js +1 -0
  576. package/.next/static/chunks/app/api/worktrees/[id]/git/status/route-e3626364434d521b.js +1 -0
  577. package/.next/static/chunks/app/api/worktrees/[id]/git/unstage/route-e3626364434d521b.js +1 -0
  578. package/.next/static/chunks/app/api/worktrees/[id]/git/working-diff/route-e3626364434d521b.js +1 -0
  579. package/.next/static/chunks/app/api/worktrees/[id]/instances/opencode/route-e3626364434d521b.js +1 -0
  580. package/.next/static/chunks/app/api/worktrees/[id]/interrupt/route-e3626364434d521b.js +1 -0
  581. package/.next/static/chunks/app/api/worktrees/[id]/kill-session/route-e3626364434d521b.js +1 -0
  582. package/.next/static/chunks/app/api/worktrees/[id]/logs/[filename]/route-e3626364434d521b.js +1 -0
  583. package/.next/static/chunks/app/api/worktrees/[id]/logs/route-e3626364434d521b.js +1 -0
  584. package/.next/static/chunks/app/api/worktrees/[id]/marp-render/route-e3626364434d521b.js +1 -0
  585. package/.next/static/chunks/app/api/worktrees/[id]/memos/[memoId]/route-e3626364434d521b.js +1 -0
  586. package/.next/static/chunks/app/api/worktrees/[id]/memos/route-e3626364434d521b.js +1 -0
  587. package/.next/static/chunks/app/api/worktrees/[id]/messages/route-e3626364434d521b.js +1 -0
  588. package/.next/static/chunks/app/api/worktrees/[id]/opencode/diff/route-e3626364434d521b.js +1 -0
  589. package/.next/static/chunks/app/api/worktrees/[id]/opencode/session/route-e3626364434d521b.js +1 -0
  590. package/.next/static/chunks/app/api/worktrees/[id]/opencode/share/route-e3626364434d521b.js +1 -0
  591. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/route-e3626364434d521b.js +1 -0
  592. package/.next/static/chunks/app/api/worktrees/[id]/resolve-target/route-e3626364434d521b.js +1 -0
  593. package/.next/static/chunks/app/api/worktrees/[id]/respond/route-e3626364434d521b.js +1 -0
  594. package/.next/static/chunks/app/api/worktrees/[id]/route-e3626364434d521b.js +1 -0
  595. package/.next/static/chunks/app/api/worktrees/[id]/schedules/[scheduleId]/route-e3626364434d521b.js +1 -0
  596. package/.next/static/chunks/app/api/worktrees/[id]/schedules/active/route-e3626364434d521b.js +1 -0
  597. package/.next/static/chunks/app/api/worktrees/[id]/schedules/route-e3626364434d521b.js +1 -0
  598. package/.next/static/chunks/app/api/worktrees/[id]/search/route-e3626364434d521b.js +1 -0
  599. package/.next/static/chunks/app/api/worktrees/[id]/send/route-e3626364434d521b.js +1 -0
  600. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route-e3626364434d521b.js +1 -0
  601. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/install/route-e3626364434d521b.js +1 -0
  602. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/plan/route-e3626364434d521b.js +1 -0
  603. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall/route-e3626364434d521b.js +1 -0
  604. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route-e3626364434d521b.js +1 -0
  605. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update/route-e3626364434d521b.js +1 -0
  606. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update-plan/route-e3626364434d521b.js +1 -0
  607. package/.next/static/chunks/app/api/worktrees/[id]/skills/route-e3626364434d521b.js +1 -0
  608. package/.next/static/chunks/app/api/worktrees/[id]/slash-commands/route-e3626364434d521b.js +1 -0
  609. package/.next/static/chunks/app/api/worktrees/[id]/special-keys/route-e3626364434d521b.js +1 -0
  610. package/.next/static/chunks/app/api/worktrees/[id]/start-polling/route-e3626364434d521b.js +1 -0
  611. package/.next/static/chunks/app/api/worktrees/[id]/tasks/route-e3626364434d521b.js +1 -0
  612. package/.next/static/chunks/app/api/worktrees/[id]/terminal/route-e3626364434d521b.js +1 -0
  613. package/.next/static/chunks/app/api/worktrees/[id]/timers/history/route-e3626364434d521b.js +1 -0
  614. package/.next/static/chunks/app/api/worktrees/[id]/timers/route-e3626364434d521b.js +1 -0
  615. package/.next/static/chunks/app/api/worktrees/[id]/todos/[todoId]/route-e3626364434d521b.js +1 -0
  616. package/.next/static/chunks/app/api/worktrees/[id]/todos/route-e3626364434d521b.js +1 -0
  617. package/.next/static/chunks/app/api/worktrees/[id]/tree/[...path]/route-e3626364434d521b.js +1 -0
  618. package/.next/static/chunks/app/api/worktrees/[id]/tree/route-e3626364434d521b.js +1 -0
  619. package/.next/static/chunks/app/api/worktrees/[id]/upload/[...path]/route-e3626364434d521b.js +1 -0
  620. package/.next/static/chunks/app/api/worktrees/[id]/verify/route-e3626364434d521b.js +1 -0
  621. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/[runId]/route-e3626364434d521b.js +1 -0
  622. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/route-e3626364434d521b.js +1 -0
  623. package/.next/static/chunks/app/api/worktrees/[id]/viewed/route-e3626364434d521b.js +1 -0
  624. package/.next/static/chunks/app/api/worktrees/route-e3626364434d521b.js +1 -0
  625. package/.next/static/chunks/app/login/page-03659dded846ef1d.js +1 -0
  626. package/.next/static/chunks/app/manifest.webmanifest/route-e3626364434d521b.js +1 -0
  627. package/.next/static/chunks/app/more/page-03867ab635d197c7.js +1 -0
  628. package/.next/static/chunks/app/proxy/[...path]/route-e3626364434d521b.js +1 -0
  629. package/.next/static/chunks/app/review/page-9a6d18ddcccbb63c.js +1 -0
  630. package/.next/static/chunks/app/worktrees/[id]/layout-e3626364434d521b.js +1 -0
  631. package/.next/static/chunks/app/worktrees/[id]/page-c07b23b6ca58091c.js +1 -0
  632. package/.next/static/chunks/app/worktrees/[id]/terminal/page-00ad5d9a62a71cab.js +1 -0
  633. package/.next/static/chunks/webpack-7e79064bfce988d7.js +1 -0
  634. package/.next/static/css/b6990f889f4f9515.css +1 -0
  635. package/.next/static/uulKcSOgyxChTo4SipUSF/_buildManifest.js +1 -0
  636. package/.next/trace +13 -13
  637. package/.next/types/app/api/remote/pair/route.ts +347 -0
  638. package/.next/types/app/api/worktrees/[id]/instances/opencode/route.ts +347 -0
  639. package/.next/types/app/api/worktrees/[id]/opencode/diff/route.ts +347 -0
  640. package/.next/types/app/api/worktrees/[id]/opencode/session/route.ts +347 -0
  641. package/.next/types/app/api/worktrees/[id]/opencode/share/route.ts +347 -0
  642. package/.next/types/routes.d.ts +6 -1
  643. package/.next/types/validator.ts +45 -0
  644. package/README.md +24 -4
  645. package/dist/cli/commands/init.d.ts.map +1 -1
  646. package/dist/cli/commands/init.js +66 -0
  647. package/dist/cli/commands/instances.d.ts.map +1 -1
  648. package/dist/cli/commands/instances.js +46 -1
  649. package/dist/cli/commands/interrupt.d.ts +25 -0
  650. package/dist/cli/commands/interrupt.d.ts.map +1 -0
  651. package/dist/cli/commands/interrupt.js +146 -0
  652. package/dist/cli/commands/remote.d.ts +248 -0
  653. package/dist/cli/commands/remote.d.ts.map +1 -0
  654. package/dist/cli/commands/remote.js +849 -0
  655. package/dist/cli/commands/report.d.ts.map +1 -1
  656. package/dist/cli/commands/report.js +11 -4
  657. package/dist/cli/commands/respond.d.ts.map +1 -1
  658. package/dist/cli/commands/respond.js +146 -1
  659. package/dist/cli/commands/status.d.ts.map +1 -1
  660. package/dist/cli/commands/status.js +104 -0
  661. package/dist/cli/commands/wait.d.ts.map +1 -1
  662. package/dist/cli/commands/wait.js +39 -1
  663. package/dist/cli/config/agent-target-options.d.ts +12 -0
  664. package/dist/cli/config/agent-target-options.d.ts.map +1 -1
  665. package/dist/cli/config/agent-target-options.js +15 -1
  666. package/dist/cli/config/security-messages.d.ts +25 -0
  667. package/dist/cli/config/security-messages.d.ts.map +1 -1
  668. package/dist/cli/config/security-messages.js +43 -1
  669. package/dist/cli/docs/agent-operations.d.ts +1 -1
  670. package/dist/cli/docs/agent-operations.d.ts.map +1 -1
  671. package/dist/cli/docs/agent-operations.js +34 -0
  672. package/dist/cli/program.d.ts.map +1 -1
  673. package/dist/cli/program.js +12 -0
  674. package/dist/cli/types/api-responses.d.ts +375 -0
  675. package/dist/cli/types/api-responses.d.ts.map +1 -1
  676. package/dist/cli/types/index.d.ts +83 -0
  677. package/dist/cli/types/index.d.ts.map +1 -1
  678. package/dist/cli/types/index.js +31 -1
  679. package/dist/cli/utils/daemon.d.ts.map +1 -1
  680. package/dist/cli/utils/daemon.js +3 -0
  681. package/dist/cli/utils/env-setup.d.ts +24 -0
  682. package/dist/cli/utils/env-setup.d.ts.map +1 -1
  683. package/dist/cli/utils/env-setup.js +70 -0
  684. package/dist/cli/utils/qr-terminal.d.ts +54 -0
  685. package/dist/cli/utils/qr-terminal.d.ts.map +1 -0
  686. package/dist/cli/utils/qr-terminal.js +181 -0
  687. package/dist/cli/utils/remote-state.d.ts +123 -0
  688. package/dist/cli/utils/remote-state.d.ts.map +1 -0
  689. package/dist/cli/utils/remote-state.js +193 -0
  690. package/dist/cli/utils/vapid-keygen.d.ts +74 -0
  691. package/dist/cli/utils/vapid-keygen.d.ts.map +1 -0
  692. package/dist/cli/utils/vapid-keygen.js +111 -0
  693. package/dist/config/auth-config.d.ts +1 -1
  694. package/dist/config/auth-config.d.ts.map +1 -1
  695. package/dist/config/auth-config.js +5 -0
  696. package/dist/lib/cli-tools/types.d.ts +11 -1
  697. package/dist/lib/cli-tools/types.d.ts.map +1 -1
  698. package/dist/lib/detection/tools/verified-against.d.ts +14 -3
  699. package/dist/lib/detection/tools/verified-against.d.ts.map +1 -1
  700. package/dist/lib/detection/tools/verified-against.js +14 -3
  701. package/dist/lib/push/vapid.d.ts +178 -0
  702. package/dist/lib/push/vapid.d.ts.map +1 -0
  703. package/dist/lib/push/vapid.js +293 -0
  704. package/dist/lib/remote/cloudflare.d.ts +285 -0
  705. package/dist/lib/remote/cloudflare.d.ts.map +1 -0
  706. package/dist/lib/remote/cloudflare.js +619 -0
  707. package/dist/lib/remote/index.d.ts +17 -0
  708. package/dist/lib/remote/index.d.ts.map +1 -0
  709. package/dist/lib/remote/index.js +64 -0
  710. package/dist/lib/remote/provider-registry.d.ts +29 -0
  711. package/dist/lib/remote/provider-registry.d.ts.map +1 -0
  712. package/dist/lib/remote/provider-registry.js +73 -0
  713. package/dist/lib/remote/tailscale.d.ts +268 -0
  714. package/dist/lib/remote/tailscale.d.ts.map +1 -0
  715. package/dist/lib/remote/tailscale.js +546 -0
  716. package/dist/lib/remote/types.d.ts +127 -0
  717. package/dist/lib/remote/types.d.ts.map +1 -0
  718. package/dist/lib/remote/types.js +53 -0
  719. package/dist/lib/security/pairing-code.d.ts +182 -0
  720. package/dist/lib/security/pairing-code.d.ts.map +1 -0
  721. package/dist/lib/security/pairing-code.js +265 -0
  722. package/dist/lib/server/localhost-self-check.d.ts +203 -0
  723. package/dist/lib/server/localhost-self-check.d.ts.map +1 -0
  724. package/dist/lib/server/localhost-self-check.js +333 -0
  725. package/dist/server/locales/en/notifications.json +23 -1
  726. package/dist/server/locales/ja/notifications.json +23 -1
  727. package/dist/server/server.js +103 -0
  728. package/dist/server/src/config/auth-config.js +5 -0
  729. package/dist/server/src/config/image-extensions.js +244 -0
  730. package/dist/server/src/config/opencode-constants.js +69 -0
  731. package/dist/server/src/config/tmux-pane-config.js +100 -1
  732. package/dist/server/src/lib/cli-tools/base.js +33 -48
  733. package/dist/server/src/lib/cli-tools/opencode-config.js +12 -0
  734. package/dist/server/src/lib/cli-tools/opencode.js +435 -7
  735. package/dist/server/src/lib/cli-tools/start-availability.js +160 -0
  736. package/dist/server/src/lib/cmate-cli-tool-parser.js +328 -7
  737. package/dist/server/src/lib/cmate-parser.js +12 -0
  738. package/dist/server/src/lib/db/agent-instances-db.js +129 -0
  739. package/dist/server/src/lib/db/agent-session-cost-db.js +204 -0
  740. package/dist/server/src/lib/db/agent-session-cost-sampler.js +194 -0
  741. package/dist/server/src/lib/db/chat-db.js +33 -0
  742. package/dist/server/src/lib/db/db-instance.js +11 -0
  743. package/dist/server/src/lib/db/db.js +8 -3
  744. package/dist/server/src/lib/db/migrations/index.js +6 -0
  745. package/dist/server/src/lib/db/migrations/runner.js +1 -1
  746. package/dist/server/src/lib/db/migrations/v57-push-subscription-defaults-notice.js +54 -0
  747. package/dist/server/src/lib/db/migrations/v58-agent-session-costs.js +100 -0
  748. package/dist/server/src/lib/db/migrations/v59-opencode-instance-settings.js +71 -0
  749. package/dist/server/src/lib/db/push-subscriptions-db.js +56 -5
  750. package/dist/server/src/lib/detection/cli-patterns.js +17 -6
  751. package/dist/server/src/lib/detection/excerpt.js +48 -0
  752. package/dist/server/src/lib/detection/model-info-extractor.js +26 -3
  753. package/dist/server/src/lib/detection/opencode-modal-overlay.js +400 -0
  754. package/dist/server/src/lib/detection/opencode-pane-obstruction.js +181 -0
  755. package/dist/server/src/lib/detection/status-detector.js +7 -0
  756. package/dist/server/src/lib/detection/status-reason.js +20 -0
  757. package/dist/server/src/lib/detection/terminal-columns.js +94 -0
  758. package/dist/server/src/lib/detection/tools/opencode/detect.js +43 -0
  759. package/dist/server/src/lib/detection/tools/opencode/prompt.js +20 -0
  760. package/dist/server/src/lib/detection/tools/verified-against.js +14 -3
  761. package/dist/server/src/lib/detection/upstream-faults.js +7 -22
  762. package/dist/server/src/lib/hooks/agent-session-telemetry.js +324 -0
  763. package/dist/server/src/lib/hooks/pending-decision-kind.js +72 -0
  764. package/dist/server/src/lib/hooks/sources/define-source.js +88 -0
  765. package/dist/server/src/lib/hooks/sources/opencode/client.js +907 -2
  766. package/dist/server/src/lib/hooks/sources/opencode/diff.js +336 -0
  767. package/dist/server/src/lib/hooks/sources/opencode/history.js +480 -0
  768. package/dist/server/src/lib/hooks/sources/opencode/ingest.js +76 -7
  769. package/dist/server/src/lib/hooks/sources/opencode/launch-settings.js +222 -0
  770. package/dist/server/src/lib/hooks/sources/opencode/mappers.js +31 -0
  771. package/dist/server/src/lib/hooks/sources/opencode/payloads.js +45 -0
  772. package/dist/server/src/lib/hooks/sources/opencode/ports.js +16 -0
  773. package/dist/server/src/lib/hooks/sources/opencode/push.js +307 -0
  774. package/dist/server/src/lib/hooks/sources/opencode/reattach.js +284 -0
  775. package/dist/server/src/lib/hooks/sources/opencode/runtime.js +165 -2
  776. package/dist/server/src/lib/hooks/sources/opencode/source.js +46 -2
  777. package/dist/server/src/lib/hooks/sources/opencode/subscription.js +407 -4
  778. package/dist/server/src/lib/hooks/sources/opencode/transcript.js +383 -0
  779. package/dist/server/src/lib/hooks/structured-decision-response.js +460 -0
  780. package/dist/server/src/lib/job-executor.js +43 -20
  781. package/dist/server/src/lib/polling/response-checker.js +43 -16
  782. package/dist/server/src/lib/polling/structured-history-gate.js +75 -0
  783. package/dist/server/src/lib/prompt-answer-sender.js +153 -2
  784. package/dist/server/src/lib/push/delivery-health.js +237 -0
  785. package/dist/server/src/lib/push/failure-push-notifier.js +109 -7
  786. package/dist/server/src/lib/push/index.js +25 -1
  787. package/dist/server/src/lib/push/prompt-card-state.js +254 -14
  788. package/dist/server/src/lib/push/push-sender.js +63 -12
  789. package/dist/server/src/lib/push/resolution-push-notifier.js +15 -3
  790. package/dist/server/src/lib/push/vapid.js +264 -5
  791. package/dist/server/src/lib/push/waiting-push-notifier.js +7 -0
  792. package/dist/server/src/lib/server/localhost-self-check.js +333 -0
  793. package/dist/server/src/lib/session/agent-event-state.js +169 -4
  794. package/dist/server/src/lib/session/claude-executor.js +152 -15
  795. package/dist/server/src/lib/session/current-output-builder.js +182 -15
  796. package/dist/server/src/lib/session/opencode-session-api.js +214 -0
  797. package/dist/server/src/lib/session/opencode-session-recall.js +168 -0
  798. package/dist/server/src/lib/session/opencode-session-store.js +274 -0
  799. package/dist/server/src/lib/session/provisional-turn.js +54 -1
  800. package/dist/server/src/lib/session/send-user-message.js +6 -5
  801. package/dist/server/src/lib/session/structured-prompt.js +53 -2
  802. package/dist/server/src/lib/skills/compatibility-matrix.js +50 -1
  803. package/dist/server/src/lib/tmux/tmux.js +74 -4
  804. package/dist/server/src/lib/verification/gate-runner.js +71 -8
  805. package/dist/server/src/types/agent-session.js +63 -0
  806. package/dist/server/src/types/agent-transcript.js +80 -0
  807. package/dist/server/src/types/opencode-export.js +228 -0
  808. package/dist/server/src/types/opencode-instance-settings.js +140 -0
  809. package/dist/server/src/types/opencode-share.js +111 -0
  810. package/dist/server/src/types/terminal-keys.js +69 -1
  811. package/dist/types/cli-tool-contracts.d.ts +48 -0
  812. package/dist/types/cli-tool-contracts.d.ts.map +1 -1
  813. package/dist/types/terminal-keys.d.ts +89 -0
  814. package/dist/types/terminal-keys.d.ts.map +1 -0
  815. package/dist/types/terminal-keys.js +105 -0
  816. package/package.json +2 -1
  817. package/.next/server/chunks/1029.js +0 -1
  818. package/.next/server/chunks/1239.js +0 -1
  819. package/.next/server/chunks/1538.js +0 -7
  820. package/.next/server/chunks/2546.js +0 -1
  821. package/.next/server/chunks/2689.js +0 -13
  822. package/.next/server/chunks/3292.js +0 -1
  823. package/.next/server/chunks/3417.js +0 -1
  824. package/.next/server/chunks/3736.js +0 -1
  825. package/.next/server/chunks/4423.js +0 -1
  826. package/.next/server/chunks/4444.js +0 -32
  827. package/.next/server/chunks/4565.js +0 -3
  828. package/.next/server/chunks/467.js +0 -1
  829. package/.next/server/chunks/4905.js +0 -5
  830. package/.next/server/chunks/552.js +0 -19
  831. package/.next/server/chunks/5998.js +0 -74
  832. package/.next/server/chunks/6919.js +0 -1
  833. package/.next/server/chunks/7970.js +0 -229
  834. package/.next/server/chunks/8536.js +0 -1
  835. package/.next/server/chunks/9284.js +0 -1
  836. package/.next/static/9IXgWfBUtnEnRqnbmErTp/_buildManifest.js +0 -1
  837. package/.next/static/chunks/3361-5d6e93fba8a92bc1.js +0 -1
  838. package/.next/static/chunks/5229-1f5f19740a8d6c11.js +0 -1
  839. package/.next/static/chunks/6271.295ced91b6335f18.js +0 -1
  840. package/.next/static/chunks/6381-8cfe50a5ca5425b1.js +0 -1
  841. package/.next/static/chunks/8521-c43994fb58501d13.js +0 -1
  842. package/.next/static/chunks/app/api/app/update/route-6add0d88e2828c23.js +0 -1
  843. package/.next/static/chunks/app/api/app/update-check/route-6add0d88e2828c23.js +0 -1
  844. package/.next/static/chunks/app/api/assistant/conversation/route-6add0d88e2828c23.js +0 -1
  845. package/.next/static/chunks/app/api/assistant/current-output/route-6add0d88e2828c23.js +0 -1
  846. package/.next/static/chunks/app/api/assistant/messages/route-6add0d88e2828c23.js +0 -1
  847. package/.next/static/chunks/app/api/assistant/session/route-6add0d88e2828c23.js +0 -1
  848. package/.next/static/chunks/app/api/assistant/start/route-6add0d88e2828c23.js +0 -1
  849. package/.next/static/chunks/app/api/assistant/terminal/route-6add0d88e2828c23.js +0 -1
  850. package/.next/static/chunks/app/api/assistant/tools/route-6add0d88e2828c23.js +0 -1
  851. package/.next/static/chunks/app/api/auth/login/route-6add0d88e2828c23.js +0 -1
  852. package/.next/static/chunks/app/api/auth/logout/route-6add0d88e2828c23.js +0 -1
  853. package/.next/static/chunks/app/api/auth/status/route-6add0d88e2828c23.js +0 -1
  854. package/.next/static/chunks/app/api/capabilities/route-6add0d88e2828c23.js +0 -1
  855. package/.next/static/chunks/app/api/daily-summary/route-6add0d88e2828c23.js +0 -1
  856. package/.next/static/chunks/app/api/daily-summary/status/route-6add0d88e2828c23.js +0 -1
  857. package/.next/static/chunks/app/api/external-apps/[id]/health/route-6add0d88e2828c23.js +0 -1
  858. package/.next/static/chunks/app/api/external-apps/[id]/route-6add0d88e2828c23.js +0 -1
  859. package/.next/static/chunks/app/api/external-apps/route-6add0d88e2828c23.js +0 -1
  860. package/.next/static/chunks/app/api/fs/browse/route-6add0d88e2828c23.js +0 -1
  861. package/.next/static/chunks/app/api/fs/recent-paths/route-6add0d88e2828c23.js +0 -1
  862. package/.next/static/chunks/app/api/hooks/agent-event/route-6add0d88e2828c23.js +0 -1
  863. package/.next/static/chunks/app/api/hooks/claude-done/route-6add0d88e2828c23.js +0 -1
  864. package/.next/static/chunks/app/api/hooks/permission-request/route-6add0d88e2828c23.js +0 -1
  865. package/.next/static/chunks/app/api/metrics/vibe/route-6add0d88e2828c23.js +0 -1
  866. package/.next/static/chunks/app/api/ollama/models/route-6add0d88e2828c23.js +0 -1
  867. package/.next/static/chunks/app/api/push/escalation/route-6add0d88e2828c23.js +0 -1
  868. package/.next/static/chunks/app/api/push/subscriptions/route-6add0d88e2828c23.js +0 -1
  869. package/.next/static/chunks/app/api/push/vapid/route-6add0d88e2828c23.js +0 -1
  870. package/.next/static/chunks/app/api/repositories/[id]/route-6add0d88e2828c23.js +0 -1
  871. package/.next/static/chunks/app/api/repositories/[id]/todos/[todoId]/route-6add0d88e2828c23.js +0 -1
  872. package/.next/static/chunks/app/api/repositories/[id]/todos/route-6add0d88e2828c23.js +0 -1
  873. package/.next/static/chunks/app/api/repositories/clone/[jobId]/route-6add0d88e2828c23.js +0 -1
  874. package/.next/static/chunks/app/api/repositories/clone/route-6add0d88e2828c23.js +0 -1
  875. package/.next/static/chunks/app/api/repositories/excluded/route-6add0d88e2828c23.js +0 -1
  876. package/.next/static/chunks/app/api/repositories/restore/route-6add0d88e2828c23.js +0 -1
  877. package/.next/static/chunks/app/api/repositories/route-6add0d88e2828c23.js +0 -1
  878. package/.next/static/chunks/app/api/repositories/scan/route-6add0d88e2828c23.js +0 -1
  879. package/.next/static/chunks/app/api/repositories/sync/route-6add0d88e2828c23.js +0 -1
  880. package/.next/static/chunks/app/api/repositories/validate-path/route-6add0d88e2828c23.js +0 -1
  881. package/.next/static/chunks/app/api/sidebar/group-order/route-6add0d88e2828c23.js +0 -1
  882. package/.next/static/chunks/app/api/skills/[id]/route-6add0d88e2828c23.js +0 -1
  883. package/.next/static/chunks/app/api/skills/installations/route-6add0d88e2828c23.js +0 -1
  884. package/.next/static/chunks/app/api/skills/operations/route-6add0d88e2828c23.js +0 -1
  885. package/.next/static/chunks/app/api/skills/reindex/route-6add0d88e2828c23.js +0 -1
  886. package/.next/static/chunks/app/api/skills/route-6add0d88e2828c23.js +0 -1
  887. package/.next/static/chunks/app/api/slash-commands/route-6add0d88e2828c23.js +0 -1
  888. package/.next/static/chunks/app/api/tasks/[taskId]/cancel/route-6add0d88e2828c23.js +0 -1
  889. package/.next/static/chunks/app/api/tasks/[taskId]/route-6add0d88e2828c23.js +0 -1
  890. package/.next/static/chunks/app/api/templates/[id]/route-6add0d88e2828c23.js +0 -1
  891. package/.next/static/chunks/app/api/templates/route-6add0d88e2828c23.js +0 -1
  892. package/.next/static/chunks/app/api/todos/route-6add0d88e2828c23.js +0 -1
  893. package/.next/static/chunks/app/api/verification/runs/[runId]/route-6add0d88e2828c23.js +0 -1
  894. package/.next/static/chunks/app/api/verification/runs/route-6add0d88e2828c23.js +0 -1
  895. package/.next/static/chunks/app/api/worktrees/[id]/auto-yes/route-6add0d88e2828c23.js +0 -1
  896. package/.next/static/chunks/app/api/worktrees/[id]/capture/route-6add0d88e2828c23.js +0 -1
  897. package/.next/static/chunks/app/api/worktrees/[id]/clear-composer/route-6add0d88e2828c23.js +0 -1
  898. package/.next/static/chunks/app/api/worktrees/[id]/cli-tool/route-6add0d88e2828c23.js +0 -1
  899. package/.next/static/chunks/app/api/worktrees/[id]/cmate/schedules/route-6add0d88e2828c23.js +0 -1
  900. package/.next/static/chunks/app/api/worktrees/[id]/current-output/route-6add0d88e2828c23.js +0 -1
  901. package/.next/static/chunks/app/api/worktrees/[id]/env/route-6add0d88e2828c23.js +0 -1
  902. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/[logId]/route-6add0d88e2828c23.js +0 -1
  903. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/route-6add0d88e2828c23.js +0 -1
  904. package/.next/static/chunks/app/api/worktrees/[id]/files/[...path]/route-6add0d88e2828c23.js +0 -1
  905. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/create/route-6add0d88e2828c23.js +0 -1
  906. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/delete/route-6add0d88e2828c23.js +0 -1
  907. package/.next/static/chunks/app/api/worktrees/[id]/git/branches/route-6add0d88e2828c23.js +0 -1
  908. package/.next/static/chunks/app/api/worktrees/[id]/git/checkout/route-6add0d88e2828c23.js +0 -1
  909. package/.next/static/chunks/app/api/worktrees/[id]/git/commit/route-6add0d88e2828c23.js +0 -1
  910. package/.next/static/chunks/app/api/worktrees/[id]/git/diff/route-6add0d88e2828c23.js +0 -1
  911. package/.next/static/chunks/app/api/worktrees/[id]/git/fetch/route-6add0d88e2828c23.js +0 -1
  912. package/.next/static/chunks/app/api/worktrees/[id]/git/log/route-6add0d88e2828c23.js +0 -1
  913. package/.next/static/chunks/app/api/worktrees/[id]/git/pull/route-6add0d88e2828c23.js +0 -1
  914. package/.next/static/chunks/app/api/worktrees/[id]/git/push/route-6add0d88e2828c23.js +0 -1
  915. package/.next/static/chunks/app/api/worktrees/[id]/git/reset/route-6add0d88e2828c23.js +0 -1
  916. package/.next/static/chunks/app/api/worktrees/[id]/git/revert/route-6add0d88e2828c23.js +0 -1
  917. package/.next/static/chunks/app/api/worktrees/[id]/git/show/[commitHash]/route-6add0d88e2828c23.js +0 -1
  918. package/.next/static/chunks/app/api/worktrees/[id]/git/stage/route-6add0d88e2828c23.js +0 -1
  919. package/.next/static/chunks/app/api/worktrees/[id]/git/staged/route-6add0d88e2828c23.js +0 -1
  920. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/[index]/route-6add0d88e2828c23.js +0 -1
  921. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/apply/route-6add0d88e2828c23.js +0 -1
  922. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/pop/route-6add0d88e2828c23.js +0 -1
  923. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/push/route-6add0d88e2828c23.js +0 -1
  924. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/route-6add0d88e2828c23.js +0 -1
  925. package/.next/static/chunks/app/api/worktrees/[id]/git/status/route-6add0d88e2828c23.js +0 -1
  926. package/.next/static/chunks/app/api/worktrees/[id]/git/unstage/route-6add0d88e2828c23.js +0 -1
  927. package/.next/static/chunks/app/api/worktrees/[id]/git/working-diff/route-6add0d88e2828c23.js +0 -1
  928. package/.next/static/chunks/app/api/worktrees/[id]/interrupt/route-6add0d88e2828c23.js +0 -1
  929. package/.next/static/chunks/app/api/worktrees/[id]/kill-session/route-6add0d88e2828c23.js +0 -1
  930. package/.next/static/chunks/app/api/worktrees/[id]/logs/[filename]/route-6add0d88e2828c23.js +0 -1
  931. package/.next/static/chunks/app/api/worktrees/[id]/logs/route-6add0d88e2828c23.js +0 -1
  932. package/.next/static/chunks/app/api/worktrees/[id]/marp-render/route-6add0d88e2828c23.js +0 -1
  933. package/.next/static/chunks/app/api/worktrees/[id]/memos/[memoId]/route-6add0d88e2828c23.js +0 -1
  934. package/.next/static/chunks/app/api/worktrees/[id]/memos/route-6add0d88e2828c23.js +0 -1
  935. package/.next/static/chunks/app/api/worktrees/[id]/messages/route-6add0d88e2828c23.js +0 -1
  936. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/route-6add0d88e2828c23.js +0 -1
  937. package/.next/static/chunks/app/api/worktrees/[id]/resolve-target/route-6add0d88e2828c23.js +0 -1
  938. package/.next/static/chunks/app/api/worktrees/[id]/respond/route-6add0d88e2828c23.js +0 -1
  939. package/.next/static/chunks/app/api/worktrees/[id]/route-6add0d88e2828c23.js +0 -1
  940. package/.next/static/chunks/app/api/worktrees/[id]/schedules/[scheduleId]/route-6add0d88e2828c23.js +0 -1
  941. package/.next/static/chunks/app/api/worktrees/[id]/schedules/active/route-6add0d88e2828c23.js +0 -1
  942. package/.next/static/chunks/app/api/worktrees/[id]/schedules/route-6add0d88e2828c23.js +0 -1
  943. package/.next/static/chunks/app/api/worktrees/[id]/search/route-6add0d88e2828c23.js +0 -1
  944. package/.next/static/chunks/app/api/worktrees/[id]/send/route-6add0d88e2828c23.js +0 -1
  945. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route-6add0d88e2828c23.js +0 -1
  946. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/install/route-6add0d88e2828c23.js +0 -1
  947. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/plan/route-6add0d88e2828c23.js +0 -1
  948. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall/route-6add0d88e2828c23.js +0 -1
  949. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route-6add0d88e2828c23.js +0 -1
  950. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update/route-6add0d88e2828c23.js +0 -1
  951. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/update-plan/route-6add0d88e2828c23.js +0 -1
  952. package/.next/static/chunks/app/api/worktrees/[id]/skills/route-6add0d88e2828c23.js +0 -1
  953. package/.next/static/chunks/app/api/worktrees/[id]/slash-commands/route-6add0d88e2828c23.js +0 -1
  954. package/.next/static/chunks/app/api/worktrees/[id]/special-keys/route-6add0d88e2828c23.js +0 -1
  955. package/.next/static/chunks/app/api/worktrees/[id]/start-polling/route-6add0d88e2828c23.js +0 -1
  956. package/.next/static/chunks/app/api/worktrees/[id]/tasks/route-6add0d88e2828c23.js +0 -1
  957. package/.next/static/chunks/app/api/worktrees/[id]/terminal/route-6add0d88e2828c23.js +0 -1
  958. package/.next/static/chunks/app/api/worktrees/[id]/timers/history/route-6add0d88e2828c23.js +0 -1
  959. package/.next/static/chunks/app/api/worktrees/[id]/timers/route-6add0d88e2828c23.js +0 -1
  960. package/.next/static/chunks/app/api/worktrees/[id]/todos/[todoId]/route-6add0d88e2828c23.js +0 -1
  961. package/.next/static/chunks/app/api/worktrees/[id]/todos/route-6add0d88e2828c23.js +0 -1
  962. package/.next/static/chunks/app/api/worktrees/[id]/tree/[...path]/route-6add0d88e2828c23.js +0 -1
  963. package/.next/static/chunks/app/api/worktrees/[id]/tree/route-6add0d88e2828c23.js +0 -1
  964. package/.next/static/chunks/app/api/worktrees/[id]/upload/[...path]/route-6add0d88e2828c23.js +0 -1
  965. package/.next/static/chunks/app/api/worktrees/[id]/verify/route-6add0d88e2828c23.js +0 -1
  966. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/[runId]/route-6add0d88e2828c23.js +0 -1
  967. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/route-6add0d88e2828c23.js +0 -1
  968. package/.next/static/chunks/app/api/worktrees/[id]/viewed/route-6add0d88e2828c23.js +0 -1
  969. package/.next/static/chunks/app/api/worktrees/route-6add0d88e2828c23.js +0 -1
  970. package/.next/static/chunks/app/login/page-adc51f0f7cbb7ac6.js +0 -1
  971. package/.next/static/chunks/app/manifest.webmanifest/route-6add0d88e2828c23.js +0 -1
  972. package/.next/static/chunks/app/more/page-3266dfa945972649.js +0 -1
  973. package/.next/static/chunks/app/proxy/[...path]/route-6add0d88e2828c23.js +0 -1
  974. package/.next/static/chunks/app/review/page-8f63aff862fee421.js +0 -1
  975. package/.next/static/chunks/app/worktrees/[id]/layout-6add0d88e2828c23.js +0 -1
  976. package/.next/static/chunks/app/worktrees/[id]/page-f7b3dfbe757dc6b8.js +0 -1
  977. package/.next/static/chunks/app/worktrees/[id]/terminal/page-a75fe180a7233b2b.js +0 -1
  978. package/.next/static/chunks/webpack-6a9668cf54a26eba.js +0 -1
  979. package/.next/static/css/928e5a8830fbf997.css +0 -1
  980. /package/.next/static/{9IXgWfBUtnEnRqnbmErTp → uulKcSOgyxChTo4SipUSF}/_ssgManifest.js +0 -0
@@ -0,0 +1,546 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tailscaleProvider = exports.defaultTailscaleDeps = exports.BACKEND_STATE_RUNNING = exports.SERVE_TIMEOUT_MS = exports.DETECT_TIMEOUT_MS = exports.SERVE_PATH = exports.SERVE_HTTPS_PORT = exports.LOOPBACK_HOST = exports.TAILSCALE_VERSION_ARG = exports.TAILSCALE_BIN = void 0;
4
+ exports.normalizeDnsName = normalizeDnsName;
5
+ exports.serveHandlerKey = serveHandlerKey;
6
+ exports.parseServeHandlerKey = parseServeHandlerKey;
7
+ exports.parseServeConfig = parseServeConfig;
8
+ exports.serveHandlerKeys = serveHandlerKeys;
9
+ exports.snapshotServeConfig = snapshotServeConfig;
10
+ exports.buildServeArgs = buildServeArgs;
11
+ exports.buildServeOffArgs = buildServeOffArgs;
12
+ exports.buildServeUrl = buildServeUrl;
13
+ exports.readServeReadiness = readServeReadiness;
14
+ exports.createTailscaleProvider = createTailscaleProvider;
15
+ /**
16
+ * Tailscale Serve Provider (Issue #1937, R3).
17
+ *
18
+ * Implements §6.1–§6.3 of `docs/design/remote-qr-pairing-1937.md`. §6.4's
19
+ * Tailscale table was written as a guess on a machine that had no `tailscale`
20
+ * at all (U-2). Everything below marked "measured" was measured on 2026-08-29
21
+ * against Tailscale 1.102.3 (standalone/macsys, `/usr/local/bin/tailscale`) on
22
+ * macOS; the raw session is in `dev-reports/issue/1937/u2-tailscale-serve.md`.
23
+ * Where the two disagree, the measurement wins.
24
+ *
25
+ * ## The one thing this file exists to get right
26
+ *
27
+ * Serve configuration is persistent state owned by tailscaled. The user may
28
+ * already be publishing their own services through it, and **there is no undo
29
+ * and no backup**. So the whole design here is about the blast radius of
30
+ * teardown, and the measurement below is the reason it is not obvious:
31
+ *
32
+ * | invocation | measured effect on a node serving `/` and `/u2-existing-user` |
33
+ * |---|---|
34
+ * | `serve --https=<port> --set-path <path> off` | removes exactly that one handler |
35
+ * | the same command with the path passed positionally instead | **wiped both handlers; config back to `{}`** |
36
+ * | the same command with no path at all | **wiped both handlers; config back to `{}`** |
37
+ *
38
+ * The middle row matters most, because the untargeted form is *what Tailscale
39
+ * itself prints* after a successful `serve`: its success banner recommends
40
+ * re-running `serve` with only `--https=<port>` and the word "off", no path.
41
+ * Following that hint would delete the user's configuration along with ours,
42
+ * silently, with exit status 0. (The banner's exact wording is quoted in the
43
+ * dev report; it is paraphrased here so this file does not trip the guard that
44
+ * forbids the shape — which is itself a small positive control.)
45
+ *
46
+ * Hence {@link buildServeOffArgs} is the only place an `off` argv is built, it
47
+ * always carries `--set-path`, and it derives that path from the handler key it
48
+ * is undoing rather than from anything ambient.
49
+ *
50
+ * ## Why `off` at all, when `serve --help` never mentions it
51
+ *
52
+ * 1.102.3's help lists `status` / `reset` / `drain` / `clear` / `advertise` /
53
+ * `get-config` / `set-config` and no `off`. Two alternatives were measured and
54
+ * rejected before settling on the undocumented-but-live `off`:
55
+ *
56
+ * - `get-config` + `set-config` looked like a "snapshot and restore" route, but
57
+ * measuring their help shows both are **service**-scoped (`--service`, or
58
+ * `--all` meaning "all services"). They do not address node-level Serve
59
+ * handlers at all, so they cannot express "remove this one handler".
60
+ * - `drain` / `clear` are likewise service-scoped, and both are *destructive*
61
+ * at service granularity. They are now forbidden outright by
62
+ * `tests/unit/config/remote-destructive-command-guard.test.ts`.
63
+ *
64
+ * That leaves `off`, which is undocumented in `--help` yet is the exact string
65
+ * the CLI recommends in its own success output, and which measured clean:
66
+ * exit 0, only the named handler removed, and the `TCP` entry for the port
67
+ * cleaned up automatically once the last handler on it is gone.
68
+ *
69
+ * ## What `start()` refuses to do
70
+ *
71
+ * Measured: running `serve` for a path that already has a handler **overwrites
72
+ * it, prints the new mapping, and exits 0**. Nothing warns, and the previous
73
+ * upstream is unrecoverable. `preexisting` cannot help after the fact — §6.3-2
74
+ * protects the user's entries from `stop()`, not from `start()`. So `start()`
75
+ * reads the snapshot first and refuses when its target key is already taken.
76
+ *
77
+ * Deliberately absent: `reset()` / `cleanupAll()` (§6.3-1), and any command
78
+ * that operates on "the current configuration" rather than on a handle.
79
+ *
80
+ * This module imports Node builtins and `./types` only. No `@/` alias, so it
81
+ * resolves under `tsconfig.cli.json` (which sets `paths: {}`).
82
+ */
83
+ const child_process_1 = require("child_process");
84
+ const types_1 = require("./types");
85
+ /** The executable. Looked up on PATH by `spawnSync`, never through a shell. */
86
+ exports.TAILSCALE_BIN = 'tailscale';
87
+ /**
88
+ * Mirrors `PreflightChecker.checkDependency()`: one argument, passed in an
89
+ * array. Measured: `tailscale version` prints `1.102.3` as its first line,
90
+ * while `tailscale --version` prints the same number followed by four lines of
91
+ * commit hashes. Both work; the subcommand is the tidier one to parse.
92
+ */
93
+ exports.TAILSCALE_VERSION_ARG = 'version';
94
+ /**
95
+ * The only host this Provider ever names.
96
+ *
97
+ * A constant rather than a parameter, so "the upstream is always loopback" is a
98
+ * property of the code and not of every call site. §9.2 pins it from outside as
99
+ * well, by asserting the argv `start()` builds.
100
+ *
101
+ * Measured: passing a bare port (`tailscale serve --bg 19001`) also resolves to
102
+ * `http://127.0.0.1:19001`. The full URL is passed anyway, so the guarantee is
103
+ * visible in argv instead of relying on a Tailscale-side default.
104
+ */
105
+ exports.LOOPBACK_HOST = '127.0.0.1';
106
+ /**
107
+ * The HTTPS port Serve publishes on.
108
+ *
109
+ * 443 is the port `tailscale serve <target>` uses by default and the one the
110
+ * tailnet's HTTPS certificate covers (measured: `status --json` reports
111
+ * `CertDomains: ["<node>.<tailnet>.ts.net"]`, so no extra enablement step is
112
+ * needed on this machine).
113
+ */
114
+ exports.SERVE_HTTPS_PORT = 443;
115
+ /**
116
+ * The path CommandMate publishes on.
117
+ *
118
+ * Root, not a prefix: the Next.js app is served without a `basePath`, so a
119
+ * handler mounted at `/commandmate` would return an app whose own asset and API
120
+ * URLs all point back at `/`.
121
+ */
122
+ exports.SERVE_PATH = '/';
123
+ /** Same 5s budget `PreflightChecker` gives every other dependency probe. */
124
+ exports.DETECT_TIMEOUT_MS = 5_000;
125
+ /**
126
+ * Budget for the Serve mutations.
127
+ *
128
+ * Longer than the probe: `serve --bg` talks to tailscaled and, the first time a
129
+ * tailnet uses HTTPS, can provision a certificate. Measured latency on an
130
+ * already-provisioned node was well under a second.
131
+ */
132
+ exports.SERVE_TIMEOUT_MS = 30_000;
133
+ /** `BackendState` from `tailscale status --json` when the node is usable. */
134
+ exports.BACKEND_STATE_RUNNING = 'Running';
135
+ exports.defaultTailscaleDeps = {
136
+ spawnSync: child_process_1.spawnSync,
137
+ servePort: exports.SERVE_HTTPS_PORT,
138
+ servePath: exports.SERVE_PATH,
139
+ detectTimeoutMs: exports.DETECT_TIMEOUT_MS,
140
+ serveTimeoutMs: exports.SERVE_TIMEOUT_MS,
141
+ };
142
+ /**
143
+ * Drops the trailing dot from a MagicDNS name.
144
+ *
145
+ * Measured: `Self.DNSName` is `maenomac-studio.taile4f402.ts.net.` — fully
146
+ * qualified, with the root dot — while the key Serve uses in its own `Web` map
147
+ * is `maenomac-studio.taile4f402.ts.net:443`, without it. The two must agree
148
+ * or every snapshot key would miss.
149
+ */
150
+ function normalizeDnsName(name) {
151
+ return name.trim().replace(/\.+$/, '');
152
+ }
153
+ /**
154
+ * The key one Serve handler is known by, in the keyspace `PreexistingSnapshot`
155
+ * and `RemoteHandle.owned.revert` share (§6.3-2).
156
+ *
157
+ * `<host>:<port><path>` — byte-for-byte the `Web` map key with the handler path
158
+ * appended, so a snapshot key and an owned key are comparable by construction
159
+ * rather than by convention.
160
+ */
161
+ function serveHandlerKey(host, port, path) {
162
+ return `${normalizeDnsName(host)}:${String(port)}${path}`;
163
+ }
164
+ /**
165
+ * Inverse of {@link serveHandlerKey}.
166
+ *
167
+ * Returns null rather than guessing. A key that cannot be parsed is a key whose
168
+ * undo command cannot be built safely, and the caller reports that instead of
169
+ * running a less specific command — which, per the measurement in the file
170
+ * header, is how a whole-port wipe happens.
171
+ */
172
+ function parseServeHandlerKey(key) {
173
+ const slash = key.indexOf('/');
174
+ if (slash <= 0)
175
+ return null;
176
+ const hostPort = key.slice(0, slash);
177
+ const path = key.slice(slash);
178
+ const colon = hostPort.lastIndexOf(':');
179
+ if (colon <= 0 || colon === hostPort.length - 1)
180
+ return null;
181
+ const host = hostPort.slice(0, colon);
182
+ const port = Number(hostPort.slice(colon + 1));
183
+ if (!Number.isInteger(port) || port < 1 || port > 65535)
184
+ return null;
185
+ if (host.length === 0)
186
+ return null;
187
+ return { host, port, path };
188
+ }
189
+ /**
190
+ * Parses `tailscale serve status --json`.
191
+ *
192
+ * Empty output is an empty configuration, not a failure: measured, the command
193
+ * prints `{}` when nothing is served, and a Provider that treated "no config"
194
+ * as "could not read config" would refuse to start on a clean machine.
195
+ */
196
+ function parseServeConfig(text) {
197
+ const trimmed = text.trim();
198
+ if (trimmed.length === 0)
199
+ return {};
200
+ let parsed;
201
+ try {
202
+ parsed = JSON.parse(trimmed);
203
+ }
204
+ catch {
205
+ return null;
206
+ }
207
+ if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed))
208
+ return null;
209
+ return parsed;
210
+ }
211
+ /**
212
+ * Every handler currently configured, as keys, sorted.
213
+ *
214
+ * This is the list §6.3-2 protects. Anything in here existed before CommandMate
215
+ * ran and must survive `stop()`.
216
+ */
217
+ function serveHandlerKeys(config) {
218
+ const keys = [];
219
+ for (const [hostPort, entry] of Object.entries(config.Web ?? {})) {
220
+ const handlers = entry?.Handlers;
221
+ if (typeof handlers !== 'object' || handlers === null)
222
+ continue;
223
+ for (const path of Object.keys(handlers)) {
224
+ keys.push(`${hostPort}${path}`);
225
+ }
226
+ }
227
+ return keys.sort();
228
+ }
229
+ /** Wraps a parsed config as the snapshot shape the shared skip rule reads. */
230
+ function snapshotServeConfig(config) {
231
+ return { keys: serveHandlerKeys(config), raw: config };
232
+ }
233
+ /**
234
+ * The argv that publishes `http://127.0.0.1:<upstreamPort>`.
235
+ *
236
+ * `LOOPBACK_HOST` is a constant here and `upstreamPort` is validated before it
237
+ * arrives, so the only caller-supplied value that reaches the command line is a
238
+ * port number. `--yes` keeps tailscaled from ever asking a question on a
239
+ * non-interactive run.
240
+ */
241
+ function buildServeArgs(opts) {
242
+ return [
243
+ 'serve',
244
+ '--bg',
245
+ '--yes',
246
+ `--https=${String(opts.servePort)}`,
247
+ '--set-path',
248
+ opts.servePath,
249
+ `http://${exports.LOOPBACK_HOST}:${String(opts.upstreamPort)}`,
250
+ ];
251
+ }
252
+ /**
253
+ * The argv that removes exactly one handler.
254
+ *
255
+ * **The `--set-path` is load-bearing.** Measured on 1.102.3, dropping it — or
256
+ * passing the path positionally, the way older Tailscale documentation shows —
257
+ * removes every handler on the port and exits 0. See the table in the file
258
+ * header. This is the only function in the codebase that builds an `off` argv,
259
+ * and it cannot build one without a path.
260
+ */
261
+ function buildServeOffArgs(parsed) {
262
+ return [
263
+ 'serve',
264
+ `--https=${String(parsed.port)}`,
265
+ '--set-path',
266
+ parsed.path,
267
+ '--yes',
268
+ 'off',
269
+ ];
270
+ }
271
+ /** The public URL a handler on `<host>:<port><path>` answers on. */
272
+ function buildServeUrl(host, port) {
273
+ const authority = port === 443 ? normalizeDnsName(host) : `${normalizeDnsName(host)}:${String(port)}`;
274
+ return `https://${authority}`;
275
+ }
276
+ /** Rejects anything that could not be a TCP port before it reaches argv. */
277
+ function assertUpstreamPort(port) {
278
+ if (!Number.isInteger(port) || port < 1 || port > 65535) {
279
+ throw new Error(`tailscale-serve: upstream port must be 1-65535, got ${String(port)}`);
280
+ }
281
+ }
282
+ function messageOf(error) {
283
+ return error instanceof Error ? error.message : String(error);
284
+ }
285
+ /** Trims a command's output to something safe to put in a user-facing reason. */
286
+ function outputTail(result) {
287
+ const text = `${result.stderr ?? ''}\n${result.stdout ?? ''}`;
288
+ const lines = text
289
+ .split('\n')
290
+ .map((line) => line.trim())
291
+ .filter((line) => line.length > 0)
292
+ .slice(-3);
293
+ if (lines.length === 0)
294
+ return '';
295
+ return `: ${lines.join(' | ').slice(0, 300)}`;
296
+ }
297
+ function runTailscale(deps, args, timeoutMs) {
298
+ let result;
299
+ try {
300
+ // Array args, no `shell`. MF-SEC-1, and the same call shape as
301
+ // `PreflightChecker.checkDependency()`.
302
+ result = deps.spawnSync(exports.TAILSCALE_BIN, args, { encoding: 'utf-8', timeout: timeoutMs });
303
+ }
304
+ catch (error) {
305
+ return { ok: false, stdout: '', reason: `tailscale ${args[0]} failed: ${messageOf(error)}` };
306
+ }
307
+ if (result.error) {
308
+ const code = result.error.code;
309
+ const reason = code === 'ENOENT'
310
+ ? 'tailscale is not installed'
311
+ : `tailscale ${args[0]} failed: ${messageOf(result.error)}`;
312
+ return { ok: false, stdout: result.stdout ?? '', reason };
313
+ }
314
+ if (result.status !== 0) {
315
+ return {
316
+ ok: false,
317
+ stdout: result.stdout ?? '',
318
+ reason: `tailscale ${args[0]} exited with ${String(result.status)}${outputTail(result)}`,
319
+ };
320
+ }
321
+ return { ok: true, stdout: result.stdout ?? '', reason: '' };
322
+ }
323
+ /**
324
+ * Decides `ready` from `tailscale status --json`.
325
+ *
326
+ * Two signals, both measured present on a working node: `BackendState` is
327
+ * `Running`, and `Self.DNSName` carries the MagicDNS name Serve publishes on.
328
+ * They are checked separately because they fail separately — a logged-out node
329
+ * reports a non-`Running` state, while a tailnet with MagicDNS disabled is
330
+ * `Running` with no name to serve under.
331
+ */
332
+ function readServeReadiness(text) {
333
+ let status;
334
+ try {
335
+ const parsed = JSON.parse(text);
336
+ if (typeof parsed !== 'object' || parsed === null) {
337
+ return { ready: false, dnsName: null, reason: 'tailscale status --json was not an object' };
338
+ }
339
+ status = parsed;
340
+ }
341
+ catch (error) {
342
+ return {
343
+ ready: false,
344
+ dnsName: null,
345
+ reason: `could not parse tailscale status --json: ${messageOf(error)}`,
346
+ };
347
+ }
348
+ const backendState = typeof status.BackendState === 'string' ? status.BackendState : 'unknown';
349
+ if (backendState !== exports.BACKEND_STATE_RUNNING) {
350
+ return {
351
+ ready: false,
352
+ dnsName: null,
353
+ reason: `tailscale is not connected (BackendState=${backendState}); log in with the Tailscale app or CLI first`,
354
+ };
355
+ }
356
+ const rawName = typeof status.Self?.DNSName === 'string' ? status.Self.DNSName : '';
357
+ const dnsName = normalizeDnsName(rawName);
358
+ if (dnsName.length === 0) {
359
+ const suffix = typeof status.MagicDNSSuffix === 'string' && status.MagicDNSSuffix.length > 0
360
+ ? ` (MagicDNS suffix: ${status.MagicDNSSuffix})`
361
+ : '';
362
+ return {
363
+ ready: false,
364
+ dnsName: null,
365
+ reason: `this node has no MagicDNS name, so Serve has no hostname to publish on${suffix}`,
366
+ };
367
+ }
368
+ return { ready: true, dnsName };
369
+ }
370
+ /**
371
+ * Builds the Provider.
372
+ *
373
+ * The returned object has exactly the four members `RemoteProvider` declares —
374
+ * the seams stay closed over in here rather than becoming a fifth key, because
375
+ * the contract test pins that list and §6.3-1 is the reason it does.
376
+ */
377
+ function createTailscaleProvider(overrides = {}) {
378
+ const deps = { ...exports.defaultTailscaleDeps, ...overrides };
379
+ /** Reads the current Serve configuration. Side-effect free. */
380
+ function readServeConfig() {
381
+ const run = runTailscale(deps, ['serve', 'status', '--json'], deps.detectTimeoutMs);
382
+ if (!run.ok)
383
+ return { config: null, reason: run.reason };
384
+ const config = parseServeConfig(run.stdout);
385
+ if (config === null) {
386
+ return { config: null, reason: 'could not parse tailscale serve status --json' };
387
+ }
388
+ return { config, reason: '' };
389
+ }
390
+ return {
391
+ id: 'tailscale-serve',
392
+ async detect() {
393
+ const version = runTailscale(deps, [exports.TAILSCALE_VERSION_ARG], deps.detectTimeoutMs);
394
+ if (!version.ok) {
395
+ return { available: false, ready: false, reason: version.reason };
396
+ }
397
+ // `available` is settled here: the executable exists and answered. Every
398
+ // failure past this point leaves `available: true` and only moves
399
+ // `ready`, which is the split §6.1 asks for and the split the
400
+ // orchestrator's selection rule is written against.
401
+ const parsedVersion = /(\d+\.\d+\.\d+)/.exec(version.stdout.trim())?.[1];
402
+ const base = parsedVersion === undefined ? {} : { version: parsedVersion };
403
+ const status = runTailscale(deps, ['status', '--json'], deps.detectTimeoutMs);
404
+ if (!status.ok) {
405
+ return { available: true, ...base, ready: false, reason: status.reason };
406
+ }
407
+ const readiness = readServeReadiness(status.stdout);
408
+ if (!readiness.ready) {
409
+ return { available: true, ...base, ready: false, reason: readiness.reason };
410
+ }
411
+ return { available: true, ...base, ready: true };
412
+ },
413
+ async start({ port, signal }) {
414
+ assertUpstreamPort(port);
415
+ if (signal.aborted) {
416
+ throw new Error('tailscale-serve: aborted before anything was served');
417
+ }
418
+ const status = runTailscale(deps, ['status', '--json'], deps.detectTimeoutMs);
419
+ if (!status.ok)
420
+ throw new Error(`tailscale-serve: ${status.reason}`);
421
+ const readiness = readServeReadiness(status.stdout);
422
+ if (!readiness.ready || readiness.dnsName === null) {
423
+ throw new Error(`tailscale-serve: ${readiness.reason ?? 'not ready'}`);
424
+ }
425
+ const host = readiness.dnsName;
426
+ // §6.3-2: the snapshot is taken before anything is created, and `start()`
427
+ // may not return without it. Failing to read it is fatal rather than
428
+ // degraded — a handle with an empty `preexisting` would tell `stop()`
429
+ // that the user has no configuration to protect.
430
+ const snapshot = readServeConfig();
431
+ if (snapshot.config === null) {
432
+ throw new Error(`tailscale-serve: refusing to serve without a pre-existing-config snapshot (${snapshot.reason})`);
433
+ }
434
+ const preexisting = snapshotServeConfig(snapshot.config);
435
+ const key = serveHandlerKey(host, deps.servePort, deps.servePath);
436
+ if (preexisting.keys.includes(key)) {
437
+ // Measured: running `serve` over an occupied path overwrites it, prints
438
+ // the new mapping and exits 0. The old upstream is then unrecoverable,
439
+ // and §6.3-2 cannot help — it governs `stop()`, not `start()`. So the
440
+ // only safe answer is to not start.
441
+ throw new Error(`tailscale-serve: ${key} is already served (by ${describeExistingProxy(snapshot.config, key)}). ` +
442
+ 'CommandMate will not overwrite a handler it did not create; remove it yourself, or free the path first.');
443
+ }
444
+ const tcpConflict = findTcpConflict(snapshot.config, deps.servePort);
445
+ if (tcpConflict !== null) {
446
+ throw new Error(`tailscale-serve: port ${String(deps.servePort)} is already used as ${tcpConflict}, not for HTTPS. ` +
447
+ 'CommandMate will not repurpose it.');
448
+ }
449
+ if (signal.aborted) {
450
+ throw new Error('tailscale-serve: aborted before anything was served');
451
+ }
452
+ const args = buildServeArgs({
453
+ servePort: deps.servePort,
454
+ servePath: deps.servePath,
455
+ upstreamPort: port,
456
+ });
457
+ const served = runTailscale(deps, args, deps.serveTimeoutMs);
458
+ if (!served.ok)
459
+ throw new Error(`tailscale-serve: ${served.reason}`);
460
+ const upstream = `http://${exports.LOOPBACK_HOST}:${String(port)}`;
461
+ // Verify against tailscaled rather than trusting exit 0. If the handler
462
+ // is not there, nothing was created, so there is nothing to undo and the
463
+ // failure can be reported without touching any configuration.
464
+ const after = readServeConfig();
465
+ if (after.config === null || !serveHandlerKeys(after.config).includes(key)) {
466
+ throw new Error(`tailscale-serve: ${key} was not created (checked with serve status --json${after.config === null ? `; ${after.reason}` : ''})`);
467
+ }
468
+ return {
469
+ provider: 'tailscale-serve',
470
+ url: buildServeUrl(host, deps.servePort),
471
+ // `pid: null` because Serve is configuration held by tailscaled, not a
472
+ // child process: `--bg` returns immediately and leaves nothing of ours
473
+ // running. The revert entry is the upstream we installed, kept so a
474
+ // human reading the state file can see what the key meant.
475
+ owned: { pid: null, revert: { [key]: upstream } },
476
+ preexisting,
477
+ };
478
+ },
479
+ async stop(handle) {
480
+ // The shared §6.3-2 rule, used by both Providers so they cannot drift.
481
+ const plan = (0, types_1.planStop)(handle);
482
+ const warnings = [];
483
+ for (const key of Object.keys(plan.revert)) {
484
+ const parsed = parseServeHandlerKey(key);
485
+ if (parsed === null) {
486
+ // Refusing to act beats acting imprecisely: the less specific undo
487
+ // command is exactly the one that wipes the whole port.
488
+ warnings.push(`tailscale-serve: cannot parse owned key "${key}"; left in place rather than guessing a removal command`);
489
+ continue;
490
+ }
491
+ const off = runTailscale(deps, buildServeOffArgs(parsed), deps.serveTimeoutMs);
492
+ if (!off.ok) {
493
+ warnings.push(`tailscale-serve: could not remove ${key}: ${off.reason}`);
494
+ }
495
+ }
496
+ if (handle.owned.pid !== null) {
497
+ // This Provider never records a pid, so a handle that has one was not
498
+ // produced here. Signalling an unknown process is not a teardown step
499
+ // this Provider is entitled to take.
500
+ warnings.push(`tailscale-serve: handle claims pid ${String(handle.owned.pid)}, which this provider never creates; left alone`);
501
+ }
502
+ return { reverted: warnings.length === 0, skipped: plan.skipped, warnings };
503
+ },
504
+ };
505
+ }
506
+ /** Names the upstream currently behind a key, for a refusal message. */
507
+ function describeExistingProxy(config, key) {
508
+ for (const [hostPort, entry] of Object.entries(config.Web ?? {})) {
509
+ const handlers = entry?.Handlers;
510
+ if (typeof handlers !== 'object' || handlers === null)
511
+ continue;
512
+ for (const [path, handler] of Object.entries(handlers)) {
513
+ if (`${hostPort}${path}` !== key)
514
+ continue;
515
+ const proxy = handler?.Proxy;
516
+ return typeof proxy === 'string' && proxy.length > 0 ? proxy : 'an existing handler';
517
+ }
518
+ }
519
+ return 'an existing handler';
520
+ }
521
+ /**
522
+ * Reports a non-HTTPS use of the port CommandMate wants.
523
+ *
524
+ * A raw TCP forwarder or a TLS-terminated forwarder occupies the whole port;
525
+ * adding an HTTPS handler there would take it over. Measured: an HTTPS handler
526
+ * records `{"HTTPS": true}` under `TCP.<port>`, which is the compatible case
527
+ * and is what lets a second path be added alongside an existing one.
528
+ */
529
+ function findTcpConflict(config, port) {
530
+ const entry = config.TCP?.[String(port)];
531
+ if (entry === null || entry === undefined)
532
+ return null;
533
+ if (entry.HTTPS === true)
534
+ return null;
535
+ if (typeof entry.TCPForward === 'string' && entry.TCPForward.length > 0) {
536
+ return `a TCP forwarder to ${entry.TCPForward}`;
537
+ }
538
+ if (typeof entry.TerminateTLS === 'string' && entry.TerminateTLS.length > 0) {
539
+ return `a TLS-terminated forwarder for ${entry.TerminateTLS}`;
540
+ }
541
+ if (entry.HTTP === true)
542
+ return 'a plain-HTTP listener';
543
+ return 'a non-HTTPS listener';
544
+ }
545
+ /** The shipped Provider, wired to the real `tailscale`. */
546
+ exports.tailscaleProvider = createTailscaleProvider();
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Provider abstraction for `commandmate remote` (Issue #1937, R1).
3
+ *
4
+ * The shapes here are §6.1 of `docs/design/remote-qr-pairing-1937.md` verbatim.
5
+ * Two of them carry a structural guarantee rather than a convention, and both
6
+ * exist because a Provider can destroy configuration the user created and that
7
+ * CommandMate has no way to restore (§6.3):
8
+ *
9
+ * 1. `RemoteProvider` has no `reset()` / `cleanupAll()`. `stop()` takes a
10
+ * `RemoteHandle` and nothing else, so "read the Provider's whole config and
11
+ * tear it down" is not expressible in this type. A pinning test asserts the
12
+ * member list stays exactly `id` / `detect` / `start` / `stop`.
13
+ * 2. `start()` must return `preexisting`. `stop()` reverts only what is in
14
+ * `owned` and NOT in `preexisting`; anything in both is skipped and reported
15
+ * in `StopOutcome.skipped` so a human can see what was left alone.
16
+ *
17
+ * Choosing between Providers is deliberately NOT here. "Tailscale first, and do
18
+ * not silently fall back to a public tunnel" is a rule about selection, not a
19
+ * property of either Provider, so it lives in the orchestrator that will own
20
+ * `src/cli/commands/remote.ts` (R9). See `provider-registry.ts`.
21
+ */
22
+ /** Every Provider CommandMate knows how to drive. */
23
+ export type RemoteProviderId = 'tailscale-serve' | 'cloudflare-quick';
24
+ /**
25
+ * Result of a side-effect-free probe.
26
+ *
27
+ * `available` and `ready` are separate on purpose: Tailscale can be installed
28
+ * and still be unable to serve because the machine is not logged in. Keeping
29
+ * the two apart is what lets the orchestrator write the selection rule
30
+ * (Tailscale -> cloudflared -> explain) as a plain `ready` check.
31
+ */
32
+ export interface ProviderDetection {
33
+ /** The executable exists and could be run. */
34
+ available: boolean;
35
+ /** Version string as reported by the executable, when it could be read. */
36
+ version?: string;
37
+ /** The Provider is in a state where `start()` could succeed right now. */
38
+ ready: boolean;
39
+ /** Why `available` or `ready` is false. Shown to the user; never a secret. */
40
+ reason?: string;
41
+ }
42
+ /**
43
+ * A snapshot of the Provider's own configuration taken immediately before
44
+ * `start()` ran.
45
+ *
46
+ * `RemoteHandle.preexisting` is typed `unknown` because the raw shape differs
47
+ * per Provider (§6.2: "how to take the snapshot is Provider-specific"). This
48
+ * interface is the one part the shared skip rule needs to read, so a Provider
49
+ * that has revertible state MUST snapshot into this shape. A Provider with no
50
+ * persistent state (Cloudflare Quick Tunnel) leaves `preexisting` as `null`.
51
+ */
52
+ export interface PreexistingSnapshot {
53
+ /**
54
+ * Keys, in the same keyspace as `RemoteHandle.owned.revert`, that already
55
+ * existed before `start()`. `stop()` must not touch these.
56
+ */
57
+ keys: readonly string[];
58
+ /** The verbatim Provider-specific snapshot, kept for diagnostics. */
59
+ raw: unknown;
60
+ }
61
+ /** What CommandMate made the Provider create during one remote session. */
62
+ export interface RemoteHandle {
63
+ provider: RemoteProviderId;
64
+ /** The public https:// URL the Provider is now serving. */
65
+ url: string;
66
+ /** Identifies only what CommandMate created. `stop()` touches nothing else. */
67
+ owned: {
68
+ /** Child process CommandMate spawned, or null when the Provider is a daemon. */
69
+ pid: number | null;
70
+ /** Provider-specific "how to undo this", keyed like `PreexistingSnapshot.keys`. */
71
+ revert: Record<string, string> | null;
72
+ };
73
+ /**
74
+ * Provider state as it was just before `start()`. Anything in here is
75
+ * off-limits to `stop()`. Use `PreexistingSnapshot` when there is state to
76
+ * protect; `null` when the Provider persists nothing.
77
+ */
78
+ preexisting: unknown;
79
+ }
80
+ /** What `stop()` actually did, including what it deliberately did not do. */
81
+ export interface StopOutcome {
82
+ /** True only if every owned entry that needed reverting was reverted. */
83
+ reverted: boolean;
84
+ /**
85
+ * Owned keys left alone because they were also in `preexisting`. Surfacing
86
+ * them is the point: a silent skip is indistinguishable from a silent delete.
87
+ */
88
+ skipped: string[];
89
+ /** Non-fatal problems worth showing the user. */
90
+ warnings: string[];
91
+ }
92
+ /**
93
+ * One way of exposing `http://127.0.0.1:<port>` to a phone.
94
+ *
95
+ * Deliberately absent: any method that operates on "the Provider's current
96
+ * configuration" instead of on a handle. See the file header.
97
+ */
98
+ export interface RemoteProvider {
99
+ readonly id: RemoteProviderId;
100
+ /** Probe availability and readiness. Must have no side effects. */
101
+ detect(): Promise<ProviderDetection>;
102
+ /** Expose 127.0.0.1:port. Must fill in `preexisting` before returning. */
103
+ start(opts: {
104
+ port: number;
105
+ signal: AbortSignal;
106
+ }): Promise<RemoteHandle>;
107
+ /** Undo only `handle.owned`. Never touches anything in `handle.preexisting`. */
108
+ stop(handle: RemoteHandle): Promise<StopOutcome>;
109
+ }
110
+ /** Narrows `RemoteHandle.preexisting` to the shape the shared skip rule reads. */
111
+ export declare function isPreexistingSnapshot(value: unknown): value is PreexistingSnapshot;
112
+ /** The revert entries `stop()` may act on, and the ones it must leave alone. */
113
+ export interface StopPlan {
114
+ /** Owned and not preexisting: safe to undo. */
115
+ revert: Record<string, string>;
116
+ /** Owned and also preexisting: must be left in place, and reported. */
117
+ skipped: string[];
118
+ }
119
+ /**
120
+ * Splits a handle's owned revert entries into "safe to undo" and "leave alone".
121
+ *
122
+ * This is the single implementation of §6.3-2. Every Provider's `stop()` routes
123
+ * through it so the rule cannot drift between Providers, and so the rule can be
124
+ * tested once instead of once per Provider.
125
+ */
126
+ export declare function planStop(handle: RemoteHandle): StopPlan;
127
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/remote/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,qDAAqD;AACrD,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;AAEtE;;;;;;;GAOG;AACH,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,SAAS,EAAE,OAAO,CAAC;IACnB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,KAAK,EAAE,OAAO,CAAC;IACf,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,qEAAqE;IACrE,GAAG,EAAE,OAAO,CAAC;CACd;AAED,2EAA2E;AAC3E,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,+EAA+E;IAC/E,KAAK,EAAE;QACL,gFAAgF;QAChF,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;QACnB,mFAAmF;QACnF,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;KACvC,CAAC;IACF;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,6EAA6E;AAC7E,MAAM,WAAW,WAAW;IAC1B,yEAAyE;IACzE,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,gBAAgB,CAAC;IAC9B,mEAAmE;IACnE,MAAM,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACrC,0EAA0E;IAC1E,KAAK,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1E,gFAAgF;IAChF,IAAI,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAClD;AAED,kFAAkF;AAClF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,mBAAmB,CAIlF;AAED,gFAAgF;AAChF,MAAM,WAAW,QAAQ;IACvB,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,uEAAuE;IACvE,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,YAAY,GAAG,QAAQ,CAgBvD"}