@surething/cockpit 1.0.276 → 1.0.278

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 (727) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +5 -3
  3. package/.next-prod/build-manifest.json +2 -2
  4. package/.next-prod/cockpit-build.json +1 -1
  5. package/.next-prod/prerender-manifest.json +3 -3
  6. package/.next-prod/routes-manifest.json +18 -6
  7. package/.next-prod/server/app/_global-error/page.js +2 -2
  8. package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
  9. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next-prod/server/app/_global-error.html +1 -1
  11. package/.next-prod/server/app/_global-error.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next-prod/server/app/_not-found/page.js +1 -1
  16. package/.next-prod/server/app/_not-found/page.js.nft.json +1 -1
  17. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  18. package/.next-prod/server/app/_not-found.html +2 -2
  19. package/.next-prod/server/app/_not-found.rsc +3 -3
  20. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
  21. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
  22. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  23. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  24. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  25. package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
  26. package/.next-prod/server/app/api/bash/route.js +1 -1
  27. package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
  28. package/.next-prod/server/app/api/bots/[id]/route.js +1 -1
  29. package/.next-prod/server/app/api/bots/[id]/route.js.nft.json +1 -1
  30. package/.next-prod/server/app/api/bots/route.js +1 -1
  31. package/.next-prod/server/app/api/bots/route.js.nft.json +1 -1
  32. package/.next-prod/server/app/api/chat/codex/route.js +1 -1
  33. package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
  34. package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
  35. package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
  36. package/.next-prod/server/app/api/chat/glm/route.js +1 -1
  37. package/.next-prod/server/app/api/chat/glm/route.js.nft.json +1 -1
  38. package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
  39. package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
  40. package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
  41. package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
  42. package/.next-prod/server/app/api/chat/route.js +1 -1
  43. package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
  44. package/.next-prod/server/app/api/chat/stop/route.js +1 -1
  45. package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
  46. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  47. package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
  48. package/.next-prod/server/app/api/commands/route.js +1 -1
  49. package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
  50. package/.next-prod/server/app/api/comments/route.js +1 -1
  51. package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
  52. package/.next-prod/server/app/api/db/columns/route.js +2 -2
  53. package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
  54. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  55. package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
  56. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  57. package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
  58. package/.next-prod/server/app/api/db/export/route.js +1 -1
  59. package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
  60. package/.next-prod/server/app/api/db/query/route.js +1 -1
  61. package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
  62. package/.next-prod/server/app/api/db/schemas/route.js +1 -1
  63. package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
  64. package/.next-prod/server/app/api/deepseek/balance/route.js +1 -1
  65. package/.next-prod/server/app/api/deepseek/balance/route.js.nft.json +1 -1
  66. package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
  67. package/.next-prod/server/app/api/deepseek/credentials/route.js.nft.json +1 -1
  68. package/.next-prod/server/app/api/deepseek/models/route.js +1 -1
  69. package/.next-prod/server/app/api/deepseek/models/route.js.nft.json +1 -1
  70. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  71. package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
  72. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  73. package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
  74. package/.next-prod/server/app/api/file/route.js +1 -1
  75. package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
  76. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  77. package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
  78. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  79. package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
  80. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  81. package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
  82. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  83. package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
  84. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  85. package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
  86. package/.next-prod/server/app/api/files/index/route.js +1 -1
  87. package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
  88. package/.next-prod/server/app/api/files/init/route.js +1 -1
  89. package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
  90. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  91. package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
  92. package/.next-prod/server/app/api/files/read/route.js +1 -1
  93. package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
  94. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  95. package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
  96. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  97. package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
  98. package/.next-prod/server/app/api/files/save/route.js +1 -1
  99. package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
  100. package/.next-prod/server/app/api/files/search/route.js +1 -1
  101. package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
  102. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  103. package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
  104. package/.next-prod/server/app/api/files/text/route.js +1 -1
  105. package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
  106. package/.next-prod/server/app/api/git/blob/route.js +1 -1
  107. package/.next-prod/server/app/api/git/blob/route.js.nft.json +1 -1
  108. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  109. package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
  110. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  111. package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
  112. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  113. package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
  114. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  115. package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
  116. package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
  117. package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +1 -1
  118. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  119. package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
  120. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  121. package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
  122. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  123. package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
  124. package/.next-prod/server/app/api/git/status/route.js +1 -1
  125. package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
  126. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  127. package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
  128. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  129. package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
  130. package/.next-prod/server/app/api/glm/credentials/route.js +1 -1
  131. package/.next-prod/server/app/api/glm/credentials/route.js.nft.json +1 -1
  132. package/.next-prod/server/app/api/glm/models/route.js +1 -1
  133. package/.next-prod/server/app/api/glm/models/route.js.nft.json +1 -1
  134. package/.next-prod/server/app/api/glm/usage/route.js +1 -1
  135. package/.next-prod/server/app/api/glm/usage/route.js.nft.json +1 -1
  136. package/.next-prod/server/app/api/global-state/route.js +2 -2
  137. package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
  138. package/.next-prod/server/app/api/health/route.js +1 -1
  139. package/.next-prod/server/app/api/health/route.js.nft.json +1 -1
  140. package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -1
  141. package/.next-prod/server/app/api/html-apps/[id]/route.js.nft.json +1 -1
  142. package/.next-prod/server/app/api/html-apps/route.js +1 -1
  143. package/.next-prod/server/app/api/html-apps/route.js.nft.json +1 -1
  144. package/.next-prod/server/app/api/instructions/config/route.js +1 -1
  145. package/.next-prod/server/app/api/instructions/config/route.js.nft.json +1 -1
  146. package/.next-prod/server/app/api/kimi/credentials/route.js +1 -1
  147. package/.next-prod/server/app/api/kimi/credentials/route.js.nft.json +1 -1
  148. package/.next-prod/server/app/api/kimi/models/route.js +1 -1
  149. package/.next-prod/server/app/api/kimi/models/route.js.nft.json +1 -1
  150. package/.next-prod/server/app/api/kimi/usage/route.js +1 -1
  151. package/.next-prod/server/app/api/kimi/usage/route.js.nft.json +1 -1
  152. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  153. package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
  154. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  155. package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
  156. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  157. package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
  158. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  159. package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
  160. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  161. package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
  162. package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
  163. package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
  164. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  165. package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
  166. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  167. package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
  168. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  169. package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
  170. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  171. package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
  172. package/.next-prod/server/app/api/mysql/schemas/route.js +1 -1
  173. package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
  174. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  175. package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
  176. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  177. package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
  178. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  179. package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
  180. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  181. package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
  182. package/.next-prod/server/app/api/note/route.js +1 -1
  183. package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
  184. package/.next-prod/server/app/api/ollama/config/route.js +1 -1
  185. package/.next-prod/server/app/api/ollama/config/route.js.nft.json +1 -1
  186. package/.next-prod/server/app/api/ollama/default-model/route.js +1 -0
  187. package/.next-prod/server/app/api/ollama/default-model/route.js.nft.json +1 -0
  188. package/.next-prod/server/app/api/ollama/default-model/route_client-reference-manifest.js +1 -0
  189. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  190. package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
  191. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  192. package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
  193. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  194. package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
  195. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  196. package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
  197. package/.next-prod/server/app/api/output-styles/config/route.js +1 -0
  198. package/.next-prod/server/app/api/output-styles/config/route.js.nft.json +1 -0
  199. package/.next-prod/server/app/api/output-styles/config/route_client-reference-manifest.js +1 -0
  200. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  201. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  202. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  203. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  204. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  205. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  206. package/.next-prod/server/app/api/project-state/route.js +2 -2
  207. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  208. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  209. package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
  210. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  211. package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
  212. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  213. package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
  214. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  215. package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
  216. package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
  217. package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
  218. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  219. package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
  220. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  221. package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
  222. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  223. package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
  224. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  225. package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
  226. package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
  227. package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
  228. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  229. package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
  230. package/.next-prod/server/app/api/projects/route.js +1 -1
  231. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  232. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  233. package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
  234. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  235. package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
  236. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  237. package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
  238. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  239. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  240. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  241. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  242. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  243. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  244. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  245. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  246. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  247. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  248. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  249. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  250. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  251. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  252. package/.next-prod/server/app/api/restart/route.js +1 -1
  253. package/.next-prod/server/app/api/restart/route.js.nft.json +1 -1
  254. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  255. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  256. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  257. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  258. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  259. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  260. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  261. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  262. package/.next-prod/server/app/api/review/order/route.js +1 -1
  263. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  264. package/.next-prod/server/app/api/review/route.js +1 -1
  265. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  266. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  267. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  268. package/.next-prod/server/app/api/review/users/route.js +1 -1
  269. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  270. package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
  271. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  272. package/.next-prod/server/app/api/services/config/route.js +1 -1
  273. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  274. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  275. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  276. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  277. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  278. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  279. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  280. package/.next-prod/server/app/api/session/[sessionId]/turn/route.js +2 -2
  281. package/.next-prod/server/app/api/session/[sessionId]/turn/route.js.nft.json +1 -1
  282. package/.next-prod/server/app/api/session/user-messages/route.js +1 -1
  283. package/.next-prod/server/app/api/session/user-messages/route.js.nft.json +1 -1
  284. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  285. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  286. package/.next-prod/server/app/api/sessions/delegate/route.js +1 -1
  287. package/.next-prod/server/app/api/sessions/delegate/route.js.nft.json +1 -1
  288. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  289. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  290. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  291. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  292. package/.next-prod/server/app/api/sessions/search/route.js +1 -1
  293. package/.next-prod/server/app/api/sessions/search/route.js.nft.json +1 -1
  294. package/.next-prod/server/app/api/sessions/status/route.js +1 -1
  295. package/.next-prod/server/app/api/sessions/status/route.js.nft.json +1 -1
  296. package/.next-prod/server/app/api/settings/route.js +1 -1
  297. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  298. package/.next-prod/server/app/api/shutdown/route.js +1 -1
  299. package/.next-prod/server/app/api/shutdown/route.js.nft.json +1 -1
  300. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  301. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  302. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  303. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  304. package/.next-prod/server/app/api/skills/route.js +1 -1
  305. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  306. package/.next-prod/server/app/api/snapshots/blob/route.js +1 -1
  307. package/.next-prod/server/app/api/snapshots/blob/route.js.nft.json +1 -1
  308. package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
  309. package/.next-prod/server/app/api/snapshots/diff/route.js.nft.json +1 -1
  310. package/.next-prod/server/app/api/snapshots/range-diff/route.js +1 -0
  311. package/.next-prod/server/app/api/snapshots/range-diff/route.js.nft.json +1 -0
  312. package/.next-prod/server/app/api/snapshots/range-diff/route_client-reference-manifest.js +1 -0
  313. package/.next-prod/server/app/api/snapshots/route.js +1 -1
  314. package/.next-prod/server/app/api/snapshots/route.js.nft.json +1 -1
  315. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  316. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  317. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  318. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  319. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  320. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  321. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  322. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  323. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  324. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  325. package/.next-prod/server/app/api/update/route.js +1 -1
  326. package/.next-prod/server/app/api/update/route.js.nft.json +1 -1
  327. package/.next-prod/server/app/api/update-state/route.js +1 -1
  328. package/.next-prod/server/app/api/update-state/route.js.nft.json +1 -1
  329. package/.next-prod/server/app/api/version/route.js +1 -1
  330. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  331. package/.next-prod/server/app/apps/[...path]/route.js +1 -1
  332. package/.next-prod/server/app/apps/[...path]/route.js.nft.json +1 -1
  333. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  334. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  335. package/.next-prod/server/app/m/page.js +1 -1
  336. package/.next-prod/server/app/m/page.js.nft.json +1 -1
  337. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  338. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  339. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  340. package/.next-prod/server/app/page.js +1 -1
  341. package/.next-prod/server/app/page.js.nft.json +1 -1
  342. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  343. package/.next-prod/server/app/project/page.js +1 -1
  344. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  345. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  346. package/.next-prod/server/app/review/[id]/page.js +1 -1
  347. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  348. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  349. package/.next-prod/server/app-paths-manifest.json +5 -3
  350. package/.next-prod/server/chunks/2493.js +33 -27
  351. package/.next-prod/server/chunks/4949.js +1 -1
  352. package/.next-prod/server/chunks/{3354.js → 5591.js} +5 -5
  353. package/.next-prod/server/chunks/6495.js +1 -1
  354. package/.next-prod/server/chunks/6548.js +1 -1
  355. package/.next-prod/server/chunks/7438.js +16 -15
  356. package/.next-prod/server/chunks/9830.js +1 -1
  357. package/.next-prod/server/functions-config-manifest.json +1 -0
  358. package/.next-prod/server/middleware-build-manifest.js +1 -1
  359. package/.next-prod/server/pages/404.html +2 -2
  360. package/.next-prod/server/pages/500.html +1 -1
  361. package/.next-prod/server/server-reference-manifest.json +1 -1
  362. package/.next-prod/static/I8gbcTQRiRdMF09goE7WI/_buildManifest.js +1 -0
  363. package/.next-prod/static/chunks/{88707-2ab6211efb1fae85.js → 15546-54f06dcff501835d.js} +2 -2
  364. package/.next-prod/static/chunks/{50015-b81552adf20a6a33.js → 21829-993d9bfd63c1ee9e.js} +3 -3
  365. package/.next-prod/static/chunks/60875-acaae14dd7ddcd91.js +35 -0
  366. package/.next-prod/static/chunks/95313-eb607273c688b022.js +17 -0
  367. package/.next-prod/static/chunks/99092-f94ee242866d22b9.js +716 -0
  368. package/.next-prod/static/chunks/app/_global-error/page-b3c86dd8f06140fe.js +1 -0
  369. package/.next-prod/static/chunks/app/api/agent/test/route-b3c86dd8f06140fe.js +1 -0
  370. package/.next-prod/static/chunks/app/api/bash/route-b3c86dd8f06140fe.js +1 -0
  371. package/.next-prod/static/chunks/app/api/bots/[id]/route-b3c86dd8f06140fe.js +1 -0
  372. package/.next-prod/static/chunks/app/api/bots/route-b3c86dd8f06140fe.js +1 -0
  373. package/.next-prod/static/chunks/app/api/chat/codex/route-b3c86dd8f06140fe.js +1 -0
  374. package/.next-prod/static/chunks/app/api/chat/deepseek/route-b3c86dd8f06140fe.js +1 -0
  375. package/.next-prod/static/chunks/app/api/chat/glm/route-b3c86dd8f06140fe.js +1 -0
  376. package/.next-prod/static/chunks/app/api/chat/kimi/route-b3c86dd8f06140fe.js +1 -0
  377. package/.next-prod/static/chunks/app/api/chat/ollama/route-b3c86dd8f06140fe.js +1 -0
  378. package/.next-prod/static/chunks/app/api/chat/route-b3c86dd8f06140fe.js +1 -0
  379. package/.next-prod/static/chunks/app/api/chat/stop/route-b3c86dd8f06140fe.js +1 -0
  380. package/.next-prod/static/chunks/app/api/claude-stats/route-b3c86dd8f06140fe.js +1 -0
  381. package/.next-prod/static/chunks/app/api/commands/route-b3c86dd8f06140fe.js +1 -0
  382. package/.next-prod/static/chunks/app/api/comments/route-b3c86dd8f06140fe.js +1 -0
  383. package/.next-prod/static/chunks/app/api/db/columns/route-b3c86dd8f06140fe.js +1 -0
  384. package/.next-prod/static/chunks/app/api/db/connect/route-b3c86dd8f06140fe.js +1 -0
  385. package/.next-prod/static/chunks/app/api/db/disconnect/route-b3c86dd8f06140fe.js +1 -0
  386. package/.next-prod/static/chunks/app/api/db/export/route-b3c86dd8f06140fe.js +1 -0
  387. package/.next-prod/static/chunks/app/api/db/query/route-b3c86dd8f06140fe.js +1 -0
  388. package/.next-prod/static/chunks/app/api/db/schemas/route-b3c86dd8f06140fe.js +1 -0
  389. package/.next-prod/static/chunks/app/api/deepseek/balance/route-b3c86dd8f06140fe.js +1 -0
  390. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-b3c86dd8f06140fe.js +1 -0
  391. package/.next-prod/static/chunks/app/api/deepseek/models/route-b3c86dd8f06140fe.js +1 -0
  392. package/.next-prod/static/chunks/app/api/dev/spans/route-b3c86dd8f06140fe.js +1 -0
  393. package/.next-prod/static/chunks/app/api/extension/version/route-b3c86dd8f06140fe.js +1 -0
  394. package/.next-prod/static/chunks/app/api/file/route-b3c86dd8f06140fe.js +1 -0
  395. package/.next-prod/static/chunks/app/api/files/blame/route-b3c86dd8f06140fe.js +1 -0
  396. package/.next-prod/static/chunks/app/api/files/clipboard/route-b3c86dd8f06140fe.js +1 -0
  397. package/.next-prod/static/chunks/app/api/files/copy/route-b3c86dd8f06140fe.js +1 -0
  398. package/.next-prod/static/chunks/app/api/files/delete/route-b3c86dd8f06140fe.js +1 -0
  399. package/.next-prod/static/chunks/app/api/files/expanded/route-b3c86dd8f06140fe.js +1 -0
  400. package/.next-prod/static/chunks/app/api/files/index/route-b3c86dd8f06140fe.js +1 -0
  401. package/.next-prod/static/chunks/app/api/files/init/route-b3c86dd8f06140fe.js +1 -0
  402. package/.next-prod/static/chunks/app/api/files/paste/route-b3c86dd8f06140fe.js +1 -0
  403. package/.next-prod/static/chunks/app/api/files/read/route-b3c86dd8f06140fe.js +1 -0
  404. package/.next-prod/static/chunks/app/api/files/readdir/route-b3c86dd8f06140fe.js +1 -0
  405. package/.next-prod/static/chunks/app/api/files/recent/route-b3c86dd8f06140fe.js +1 -0
  406. package/.next-prod/static/chunks/app/api/files/save/route-b3c86dd8f06140fe.js +1 -0
  407. package/.next-prod/static/chunks/app/api/files/search/route-b3c86dd8f06140fe.js +1 -0
  408. package/.next-prod/static/chunks/app/api/files/stat/route-b3c86dd8f06140fe.js +1 -0
  409. package/.next-prod/static/chunks/app/api/files/text/route-b3c86dd8f06140fe.js +1 -0
  410. package/.next-prod/static/chunks/app/api/git/blob/route-b3c86dd8f06140fe.js +1 -0
  411. package/.next-prod/static/chunks/app/api/git/branch-diff/route-b3c86dd8f06140fe.js +1 -0
  412. package/.next-prod/static/chunks/app/api/git/branches/route-b3c86dd8f06140fe.js +1 -0
  413. package/.next-prod/static/chunks/app/api/git/commit-diff/route-b3c86dd8f06140fe.js +1 -0
  414. package/.next-prod/static/chunks/app/api/git/commits/route-b3c86dd8f06140fe.js +1 -0
  415. package/.next-prod/static/chunks/app/api/git/current-branch/route-b3c86dd8f06140fe.js +1 -0
  416. package/.next-prod/static/chunks/app/api/git/diff/route-b3c86dd8f06140fe.js +1 -0
  417. package/.next-prod/static/chunks/app/api/git/discard/route-b3c86dd8f06140fe.js +1 -0
  418. package/.next-prod/static/chunks/app/api/git/stage/route-b3c86dd8f06140fe.js +1 -0
  419. package/.next-prod/static/chunks/app/api/git/status/route-b3c86dd8f06140fe.js +1 -0
  420. package/.next-prod/static/chunks/app/api/git/unstage/route-b3c86dd8f06140fe.js +1 -0
  421. package/.next-prod/static/chunks/app/api/git/worktree/route-b3c86dd8f06140fe.js +1 -0
  422. package/.next-prod/static/chunks/app/api/glm/credentials/route-b3c86dd8f06140fe.js +1 -0
  423. package/.next-prod/static/chunks/app/api/glm/models/route-b3c86dd8f06140fe.js +1 -0
  424. package/.next-prod/static/chunks/app/api/glm/usage/route-b3c86dd8f06140fe.js +1 -0
  425. package/.next-prod/static/chunks/app/api/global-state/route-b3c86dd8f06140fe.js +1 -0
  426. package/.next-prod/static/chunks/app/api/health/route-b3c86dd8f06140fe.js +1 -0
  427. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-b3c86dd8f06140fe.js +1 -0
  428. package/.next-prod/static/chunks/app/api/html-apps/route-b3c86dd8f06140fe.js +1 -0
  429. package/.next-prod/static/chunks/app/api/instructions/config/route-b3c86dd8f06140fe.js +1 -0
  430. package/.next-prod/static/chunks/app/api/kimi/credentials/route-b3c86dd8f06140fe.js +1 -0
  431. package/.next-prod/static/chunks/app/api/kimi/models/route-b3c86dd8f06140fe.js +1 -0
  432. package/.next-prod/static/chunks/app/api/kimi/usage/route-b3c86dd8f06140fe.js +1 -0
  433. package/.next-prod/static/chunks/app/api/lsp/definition/route-b3c86dd8f06140fe.js +1 -0
  434. package/.next-prod/static/chunks/app/api/lsp/hover/route-b3c86dd8f06140fe.js +1 -0
  435. package/.next-prod/static/chunks/app/api/lsp/references/route-b3c86dd8f06140fe.js +1 -0
  436. package/.next-prod/static/chunks/app/api/lsp/status/route-b3c86dd8f06140fe.js +1 -0
  437. package/.next-prod/static/chunks/app/api/lsp/warmup/route-b3c86dd8f06140fe.js +1 -0
  438. package/.next-prod/static/chunks/app/api/mysql/columns/route-b3c86dd8f06140fe.js +1 -0
  439. package/.next-prod/static/chunks/app/api/mysql/connect/route-b3c86dd8f06140fe.js +1 -0
  440. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-b3c86dd8f06140fe.js +1 -0
  441. package/.next-prod/static/chunks/app/api/mysql/export/route-b3c86dd8f06140fe.js +1 -0
  442. package/.next-prod/static/chunks/app/api/mysql/query/route-b3c86dd8f06140fe.js +1 -0
  443. package/.next-prod/static/chunks/app/api/mysql/schemas/route-b3c86dd8f06140fe.js +1 -0
  444. package/.next-prod/static/chunks/app/api/neo4j/connect/route-b3c86dd8f06140fe.js +1 -0
  445. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-b3c86dd8f06140fe.js +1 -0
  446. package/.next-prod/static/chunks/app/api/neo4j/query/route-b3c86dd8f06140fe.js +1 -0
  447. package/.next-prod/static/chunks/app/api/neo4j/schema/route-b3c86dd8f06140fe.js +1 -0
  448. package/.next-prod/static/chunks/app/api/note/route-b3c86dd8f06140fe.js +1 -0
  449. package/.next-prod/static/chunks/app/api/ollama/config/route-b3c86dd8f06140fe.js +1 -0
  450. package/.next-prod/static/chunks/app/api/ollama/default-model/route-b3c86dd8f06140fe.js +1 -0
  451. package/.next-prod/static/chunks/app/api/ollama/models/route-b3c86dd8f06140fe.js +1 -0
  452. package/.next-prod/static/chunks/app/api/ollama/start/route-b3c86dd8f06140fe.js +1 -0
  453. package/.next-prod/static/chunks/app/api/open-cursor/route-b3c86dd8f06140fe.js +1 -0
  454. package/.next-prod/static/chunks/app/api/open-vscode/route-b3c86dd8f06140fe.js +1 -0
  455. package/.next-prod/static/chunks/app/api/output-styles/config/route-b3c86dd8f06140fe.js +1 -0
  456. package/.next-prod/static/chunks/app/api/pick-folder/route-b3c86dd8f06140fe.js +1 -0
  457. package/.next-prod/static/chunks/app/api/pinned-sessions/route-b3c86dd8f06140fe.js +1 -0
  458. package/.next-prod/static/chunks/app/api/project-settings/route-b3c86dd8f06140fe.js +1 -0
  459. package/.next-prod/static/chunks/app/api/project-state/route-b3c86dd8f06140fe.js +1 -0
  460. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-b3c86dd8f06140fe.js +1 -0
  461. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-b3c86dd8f06140fe.js +1 -0
  462. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-b3c86dd8f06140fe.js +1 -0
  463. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-b3c86dd8f06140fe.js +1 -0
  464. package/.next-prod/static/chunks/app/api/projectGraph/context/route-b3c86dd8f06140fe.js +1 -0
  465. package/.next-prod/static/chunks/app/api/projectGraph/file/route-b3c86dd8f06140fe.js +1 -0
  466. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-b3c86dd8f06140fe.js +1 -0
  467. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-b3c86dd8f06140fe.js +1 -0
  468. package/.next-prod/static/chunks/app/api/projectGraph/related/route-b3c86dd8f06140fe.js +1 -0
  469. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-b3c86dd8f06140fe.js +1 -0
  470. package/.next-prod/static/chunks/app/api/projectGraph/search/route-b3c86dd8f06140fe.js +1 -0
  471. package/.next-prod/static/chunks/app/api/projects/route-b3c86dd8f06140fe.js +1 -0
  472. package/.next-prod/static/chunks/app/api/push/public-key/route-b3c86dd8f06140fe.js +1 -0
  473. package/.next-prod/static/chunks/app/api/push/subscribe/route-b3c86dd8f06140fe.js +1 -0
  474. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-b3c86dd8f06140fe.js +1 -0
  475. package/.next-prod/static/chunks/app/api/redis/command/route-b3c86dd8f06140fe.js +1 -0
  476. package/.next-prod/static/chunks/app/api/redis/connect/route-b3c86dd8f06140fe.js +1 -0
  477. package/.next-prod/static/chunks/app/api/redis/delete/route-b3c86dd8f06140fe.js +1 -0
  478. package/.next-prod/static/chunks/app/api/redis/disconnect/route-b3c86dd8f06140fe.js +1 -0
  479. package/.next-prod/static/chunks/app/api/redis/get/route-b3c86dd8f06140fe.js +1 -0
  480. package/.next-prod/static/chunks/app/api/redis/keys/route-b3c86dd8f06140fe.js +1 -0
  481. package/.next-prod/static/chunks/app/api/redis/set/route-b3c86dd8f06140fe.js +1 -0
  482. package/.next-prod/static/chunks/app/api/restart/route-b3c86dd8f06140fe.js +1 -0
  483. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-b3c86dd8f06140fe.js +1 -0
  484. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-b3c86dd8f06140fe.js +1 -0
  485. package/.next-prod/static/chunks/app/api/review/[id]/route-b3c86dd8f06140fe.js +1 -0
  486. package/.next-prod/static/chunks/app/api/review/identify/route-b3c86dd8f06140fe.js +1 -0
  487. package/.next-prod/static/chunks/app/api/review/order/route-b3c86dd8f06140fe.js +1 -0
  488. package/.next-prod/static/chunks/app/api/review/route-b3c86dd8f06140fe.js +1 -0
  489. package/.next-prod/static/chunks/app/api/review/share-info/route-b3c86dd8f06140fe.js +1 -0
  490. package/.next-prod/static/chunks/app/api/review/users/route-b3c86dd8f06140fe.js +1 -0
  491. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-b3c86dd8f06140fe.js +1 -0
  492. package/.next-prod/static/chunks/app/api/services/config/route-b3c86dd8f06140fe.js +1 -0
  493. package/.next-prod/static/chunks/app/api/services/scripts/route-b3c86dd8f06140fe.js +1 -0
  494. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-b3c86dd8f06140fe.js +1 -0
  495. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-b3c86dd8f06140fe.js +1 -0
  496. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-b3c86dd8f06140fe.js +1 -0
  497. package/.next-prod/static/chunks/app/api/session/user-messages/route-b3c86dd8f06140fe.js +1 -0
  498. package/.next-prod/static/chunks/app/api/session-by-path/route-b3c86dd8f06140fe.js +1 -0
  499. package/.next-prod/static/chunks/app/api/sessions/delegate/route-b3c86dd8f06140fe.js +1 -0
  500. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-b3c86dd8f06140fe.js +1 -0
  501. package/.next-prod/static/chunks/app/api/sessions/projects/route-b3c86dd8f06140fe.js +1 -0
  502. package/.next-prod/static/chunks/app/api/sessions/search/route-b3c86dd8f06140fe.js +1 -0
  503. package/.next-prod/static/chunks/app/api/sessions/status/route-b3c86dd8f06140fe.js +1 -0
  504. package/.next-prod/static/chunks/app/api/settings/route-b3c86dd8f06140fe.js +1 -0
  505. package/.next-prod/static/chunks/app/api/shutdown/route-b3c86dd8f06140fe.js +1 -0
  506. package/.next-prod/static/chunks/app/api/skills/[id]/route-b3c86dd8f06140fe.js +1 -0
  507. package/.next-prod/static/chunks/app/api/skills/content/route-b3c86dd8f06140fe.js +1 -0
  508. package/.next-prod/static/chunks/app/api/skills/route-b3c86dd8f06140fe.js +1 -0
  509. package/.next-prod/static/chunks/app/api/snapshots/blob/route-b3c86dd8f06140fe.js +1 -0
  510. package/.next-prod/static/chunks/app/api/snapshots/diff/route-b3c86dd8f06140fe.js +1 -0
  511. package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-b3c86dd8f06140fe.js +1 -0
  512. package/.next-prod/static/chunks/app/api/snapshots/route-b3c86dd8f06140fe.js +1 -0
  513. package/.next-prod/static/chunks/app/api/terminal/aliases/route-b3c86dd8f06140fe.js +1 -0
  514. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-b3c86dd8f06140fe.js +1 -0
  515. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-b3c86dd8f06140fe.js +1 -0
  516. package/.next-prod/static/chunks/app/api/terminal/env/route-b3c86dd8f06140fe.js +1 -0
  517. package/.next-prod/static/chunks/app/api/terminal/history/route-b3c86dd8f06140fe.js +1 -0
  518. package/.next-prod/static/chunks/app/api/update/route-b3c86dd8f06140fe.js +1 -0
  519. package/.next-prod/static/chunks/app/api/update-state/route-b3c86dd8f06140fe.js +1 -0
  520. package/.next-prod/static/chunks/app/api/version/route-b3c86dd8f06140fe.js +1 -0
  521. package/.next-prod/static/chunks/app/apps/[...path]/route-b3c86dd8f06140fe.js +1 -0
  522. package/.next-prod/static/chunks/app/{layout-347ca1b3228d5b23.js → layout-589122feb9071556.js} +1 -1
  523. package/.next-prod/static/chunks/app/m/page-ba0be89e67f08b6d.js +1 -0
  524. package/.next-prod/static/chunks/app/manifest.webmanifest/route-b3c86dd8f06140fe.js +1 -0
  525. package/.next-prod/static/chunks/app/{page-2ade7ecd21636624.js → page-a69072e6dbd4a059.js} +1 -1
  526. package/.next-prod/static/chunks/app/project/{page-2ade7ecd21636624.js → page-a69072e6dbd4a059.js} +1 -1
  527. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-b3c86dd8f06140fe.js +1 -0
  528. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-b3c86dd8f06140fe.js +1 -0
  529. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-b3c86dd8f06140fe.js +1 -0
  530. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-b3c86dd8f06140fe.js +1 -0
  531. package/.next-prod/static/css/2abfec9d3e93011f.css +1 -0
  532. package/.next-prod/trace +15 -15
  533. package/.next-prod/trace-build +1 -1
  534. package/.next-prod/types/app/api/{sessions → ollama/default-model}/route.ts +3 -3
  535. package/.next-prod/types/app/api/output-styles/config/route.ts +353 -0
  536. package/.next-prod/types/app/api/snapshots/range-diff/route.ts +353 -0
  537. package/.next-prod/types/routes.d.ts +4 -2
  538. package/.next-prod/types/validator.ts +27 -9
  539. package/README.md +2 -2
  540. package/README.zh.md +2 -2
  541. package/bin/cock-codegraph.mjs +58 -58
  542. package/bin/cock-connection.mjs +1 -1
  543. package/bin/cock-terminal.mjs +17 -17
  544. package/bin/cockpit-dev.mjs +3 -4
  545. package/bin/cockpit.mjs +243 -9
  546. package/bin/setup-dev.mjs +3 -4
  547. package/dist/{chunk-BCWVTDEZ.mjs → chunk-LPZXJPD6.mjs} +597 -142
  548. package/dist/{chunk-QY2K7YIF.mjs → chunk-W5MB7DIM.mjs} +1 -1
  549. package/dist/httpApi.mjs +2 -2
  550. package/dist/scheduledTasks.mjs +102 -15
  551. package/dist/wsServer.mjs +12 -3
  552. package/package.json +3 -4
  553. package/skills/bot/SKILL.md +3 -3
  554. package/skills/bot-run/SKILL.md +54 -117
  555. package/skills/bot-run/followup.md +38 -0
  556. package/skills/bot-run/wait.md +76 -0
  557. package/skills/bot-turn/SKILL.md +7 -0
  558. package/skills/cc/SKILL.md +0 -1
  559. package/skills/dl/SKILL.md +4 -1
  560. package/.next-prod/server/app/api/sessions/route.js +0 -1
  561. package/.next-prod/server/app/api/sessions/route.js.nft.json +0 -1
  562. package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +0 -1
  563. package/.next-prod/static/O8neHUIr3dQhe1jcOUsQ8/_buildManifest.js +0 -1
  564. package/.next-prod/static/chunks/72539-049ac78fc767d177.js +0 -17
  565. package/.next-prod/static/chunks/89656-d9dd3a8559041236.js +0 -34
  566. package/.next-prod/static/chunks/99092-5b836813f4b1d4b3.js +0 -716
  567. package/.next-prod/static/chunks/app/_global-error/page-e2f146f38bb4df42.js +0 -1
  568. package/.next-prod/static/chunks/app/api/agent/test/route-e2f146f38bb4df42.js +0 -1
  569. package/.next-prod/static/chunks/app/api/bash/route-e2f146f38bb4df42.js +0 -1
  570. package/.next-prod/static/chunks/app/api/bots/[id]/route-e2f146f38bb4df42.js +0 -1
  571. package/.next-prod/static/chunks/app/api/bots/route-e2f146f38bb4df42.js +0 -1
  572. package/.next-prod/static/chunks/app/api/chat/codex/route-e2f146f38bb4df42.js +0 -1
  573. package/.next-prod/static/chunks/app/api/chat/deepseek/route-e2f146f38bb4df42.js +0 -1
  574. package/.next-prod/static/chunks/app/api/chat/glm/route-e2f146f38bb4df42.js +0 -1
  575. package/.next-prod/static/chunks/app/api/chat/kimi/route-e2f146f38bb4df42.js +0 -1
  576. package/.next-prod/static/chunks/app/api/chat/ollama/route-e2f146f38bb4df42.js +0 -1
  577. package/.next-prod/static/chunks/app/api/chat/route-e2f146f38bb4df42.js +0 -1
  578. package/.next-prod/static/chunks/app/api/chat/stop/route-e2f146f38bb4df42.js +0 -1
  579. package/.next-prod/static/chunks/app/api/claude-stats/route-e2f146f38bb4df42.js +0 -1
  580. package/.next-prod/static/chunks/app/api/commands/route-e2f146f38bb4df42.js +0 -1
  581. package/.next-prod/static/chunks/app/api/comments/route-e2f146f38bb4df42.js +0 -1
  582. package/.next-prod/static/chunks/app/api/db/columns/route-e2f146f38bb4df42.js +0 -1
  583. package/.next-prod/static/chunks/app/api/db/connect/route-e2f146f38bb4df42.js +0 -1
  584. package/.next-prod/static/chunks/app/api/db/disconnect/route-e2f146f38bb4df42.js +0 -1
  585. package/.next-prod/static/chunks/app/api/db/export/route-e2f146f38bb4df42.js +0 -1
  586. package/.next-prod/static/chunks/app/api/db/query/route-e2f146f38bb4df42.js +0 -1
  587. package/.next-prod/static/chunks/app/api/db/schemas/route-e2f146f38bb4df42.js +0 -1
  588. package/.next-prod/static/chunks/app/api/deepseek/balance/route-e2f146f38bb4df42.js +0 -1
  589. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-e2f146f38bb4df42.js +0 -1
  590. package/.next-prod/static/chunks/app/api/deepseek/models/route-e2f146f38bb4df42.js +0 -1
  591. package/.next-prod/static/chunks/app/api/dev/spans/route-e2f146f38bb4df42.js +0 -1
  592. package/.next-prod/static/chunks/app/api/extension/version/route-e2f146f38bb4df42.js +0 -1
  593. package/.next-prod/static/chunks/app/api/file/route-e2f146f38bb4df42.js +0 -1
  594. package/.next-prod/static/chunks/app/api/files/blame/route-e2f146f38bb4df42.js +0 -1
  595. package/.next-prod/static/chunks/app/api/files/clipboard/route-e2f146f38bb4df42.js +0 -1
  596. package/.next-prod/static/chunks/app/api/files/copy/route-e2f146f38bb4df42.js +0 -1
  597. package/.next-prod/static/chunks/app/api/files/delete/route-e2f146f38bb4df42.js +0 -1
  598. package/.next-prod/static/chunks/app/api/files/expanded/route-e2f146f38bb4df42.js +0 -1
  599. package/.next-prod/static/chunks/app/api/files/index/route-e2f146f38bb4df42.js +0 -1
  600. package/.next-prod/static/chunks/app/api/files/init/route-e2f146f38bb4df42.js +0 -1
  601. package/.next-prod/static/chunks/app/api/files/paste/route-e2f146f38bb4df42.js +0 -1
  602. package/.next-prod/static/chunks/app/api/files/read/route-e2f146f38bb4df42.js +0 -1
  603. package/.next-prod/static/chunks/app/api/files/readdir/route-e2f146f38bb4df42.js +0 -1
  604. package/.next-prod/static/chunks/app/api/files/recent/route-e2f146f38bb4df42.js +0 -1
  605. package/.next-prod/static/chunks/app/api/files/save/route-e2f146f38bb4df42.js +0 -1
  606. package/.next-prod/static/chunks/app/api/files/search/route-e2f146f38bb4df42.js +0 -1
  607. package/.next-prod/static/chunks/app/api/files/stat/route-e2f146f38bb4df42.js +0 -1
  608. package/.next-prod/static/chunks/app/api/files/text/route-e2f146f38bb4df42.js +0 -1
  609. package/.next-prod/static/chunks/app/api/git/blob/route-e2f146f38bb4df42.js +0 -1
  610. package/.next-prod/static/chunks/app/api/git/branch-diff/route-e2f146f38bb4df42.js +0 -1
  611. package/.next-prod/static/chunks/app/api/git/branches/route-e2f146f38bb4df42.js +0 -1
  612. package/.next-prod/static/chunks/app/api/git/commit-diff/route-e2f146f38bb4df42.js +0 -1
  613. package/.next-prod/static/chunks/app/api/git/commits/route-e2f146f38bb4df42.js +0 -1
  614. package/.next-prod/static/chunks/app/api/git/current-branch/route-e2f146f38bb4df42.js +0 -1
  615. package/.next-prod/static/chunks/app/api/git/diff/route-e2f146f38bb4df42.js +0 -1
  616. package/.next-prod/static/chunks/app/api/git/discard/route-e2f146f38bb4df42.js +0 -1
  617. package/.next-prod/static/chunks/app/api/git/stage/route-e2f146f38bb4df42.js +0 -1
  618. package/.next-prod/static/chunks/app/api/git/status/route-e2f146f38bb4df42.js +0 -1
  619. package/.next-prod/static/chunks/app/api/git/unstage/route-e2f146f38bb4df42.js +0 -1
  620. package/.next-prod/static/chunks/app/api/git/worktree/route-e2f146f38bb4df42.js +0 -1
  621. package/.next-prod/static/chunks/app/api/glm/credentials/route-e2f146f38bb4df42.js +0 -1
  622. package/.next-prod/static/chunks/app/api/glm/models/route-e2f146f38bb4df42.js +0 -1
  623. package/.next-prod/static/chunks/app/api/glm/usage/route-e2f146f38bb4df42.js +0 -1
  624. package/.next-prod/static/chunks/app/api/global-state/route-e2f146f38bb4df42.js +0 -1
  625. package/.next-prod/static/chunks/app/api/health/route-e2f146f38bb4df42.js +0 -1
  626. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-e2f146f38bb4df42.js +0 -1
  627. package/.next-prod/static/chunks/app/api/html-apps/route-e2f146f38bb4df42.js +0 -1
  628. package/.next-prod/static/chunks/app/api/instructions/config/route-e2f146f38bb4df42.js +0 -1
  629. package/.next-prod/static/chunks/app/api/kimi/credentials/route-e2f146f38bb4df42.js +0 -1
  630. package/.next-prod/static/chunks/app/api/kimi/models/route-e2f146f38bb4df42.js +0 -1
  631. package/.next-prod/static/chunks/app/api/kimi/usage/route-e2f146f38bb4df42.js +0 -1
  632. package/.next-prod/static/chunks/app/api/lsp/definition/route-e2f146f38bb4df42.js +0 -1
  633. package/.next-prod/static/chunks/app/api/lsp/hover/route-e2f146f38bb4df42.js +0 -1
  634. package/.next-prod/static/chunks/app/api/lsp/references/route-e2f146f38bb4df42.js +0 -1
  635. package/.next-prod/static/chunks/app/api/lsp/status/route-e2f146f38bb4df42.js +0 -1
  636. package/.next-prod/static/chunks/app/api/lsp/warmup/route-e2f146f38bb4df42.js +0 -1
  637. package/.next-prod/static/chunks/app/api/mysql/columns/route-e2f146f38bb4df42.js +0 -1
  638. package/.next-prod/static/chunks/app/api/mysql/connect/route-e2f146f38bb4df42.js +0 -1
  639. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-e2f146f38bb4df42.js +0 -1
  640. package/.next-prod/static/chunks/app/api/mysql/export/route-e2f146f38bb4df42.js +0 -1
  641. package/.next-prod/static/chunks/app/api/mysql/query/route-e2f146f38bb4df42.js +0 -1
  642. package/.next-prod/static/chunks/app/api/mysql/schemas/route-e2f146f38bb4df42.js +0 -1
  643. package/.next-prod/static/chunks/app/api/neo4j/connect/route-e2f146f38bb4df42.js +0 -1
  644. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-e2f146f38bb4df42.js +0 -1
  645. package/.next-prod/static/chunks/app/api/neo4j/query/route-e2f146f38bb4df42.js +0 -1
  646. package/.next-prod/static/chunks/app/api/neo4j/schema/route-e2f146f38bb4df42.js +0 -1
  647. package/.next-prod/static/chunks/app/api/note/route-e2f146f38bb4df42.js +0 -1
  648. package/.next-prod/static/chunks/app/api/ollama/config/route-e2f146f38bb4df42.js +0 -1
  649. package/.next-prod/static/chunks/app/api/ollama/models/route-e2f146f38bb4df42.js +0 -1
  650. package/.next-prod/static/chunks/app/api/ollama/start/route-e2f146f38bb4df42.js +0 -1
  651. package/.next-prod/static/chunks/app/api/open-cursor/route-e2f146f38bb4df42.js +0 -1
  652. package/.next-prod/static/chunks/app/api/open-vscode/route-e2f146f38bb4df42.js +0 -1
  653. package/.next-prod/static/chunks/app/api/pick-folder/route-e2f146f38bb4df42.js +0 -1
  654. package/.next-prod/static/chunks/app/api/pinned-sessions/route-e2f146f38bb4df42.js +0 -1
  655. package/.next-prod/static/chunks/app/api/project-settings/route-e2f146f38bb4df42.js +0 -1
  656. package/.next-prod/static/chunks/app/api/project-state/route-e2f146f38bb4df42.js +0 -1
  657. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-e2f146f38bb4df42.js +0 -1
  658. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-e2f146f38bb4df42.js +0 -1
  659. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-e2f146f38bb4df42.js +0 -1
  660. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-e2f146f38bb4df42.js +0 -1
  661. package/.next-prod/static/chunks/app/api/projectGraph/context/route-e2f146f38bb4df42.js +0 -1
  662. package/.next-prod/static/chunks/app/api/projectGraph/file/route-e2f146f38bb4df42.js +0 -1
  663. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-e2f146f38bb4df42.js +0 -1
  664. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-e2f146f38bb4df42.js +0 -1
  665. package/.next-prod/static/chunks/app/api/projectGraph/related/route-e2f146f38bb4df42.js +0 -1
  666. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-e2f146f38bb4df42.js +0 -1
  667. package/.next-prod/static/chunks/app/api/projectGraph/search/route-e2f146f38bb4df42.js +0 -1
  668. package/.next-prod/static/chunks/app/api/projects/route-e2f146f38bb4df42.js +0 -1
  669. package/.next-prod/static/chunks/app/api/push/public-key/route-e2f146f38bb4df42.js +0 -1
  670. package/.next-prod/static/chunks/app/api/push/subscribe/route-e2f146f38bb4df42.js +0 -1
  671. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-e2f146f38bb4df42.js +0 -1
  672. package/.next-prod/static/chunks/app/api/redis/command/route-e2f146f38bb4df42.js +0 -1
  673. package/.next-prod/static/chunks/app/api/redis/connect/route-e2f146f38bb4df42.js +0 -1
  674. package/.next-prod/static/chunks/app/api/redis/delete/route-e2f146f38bb4df42.js +0 -1
  675. package/.next-prod/static/chunks/app/api/redis/disconnect/route-e2f146f38bb4df42.js +0 -1
  676. package/.next-prod/static/chunks/app/api/redis/get/route-e2f146f38bb4df42.js +0 -1
  677. package/.next-prod/static/chunks/app/api/redis/keys/route-e2f146f38bb4df42.js +0 -1
  678. package/.next-prod/static/chunks/app/api/redis/set/route-e2f146f38bb4df42.js +0 -1
  679. package/.next-prod/static/chunks/app/api/restart/route-e2f146f38bb4df42.js +0 -1
  680. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-e2f146f38bb4df42.js +0 -1
  681. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-e2f146f38bb4df42.js +0 -1
  682. package/.next-prod/static/chunks/app/api/review/[id]/route-e2f146f38bb4df42.js +0 -1
  683. package/.next-prod/static/chunks/app/api/review/identify/route-e2f146f38bb4df42.js +0 -1
  684. package/.next-prod/static/chunks/app/api/review/order/route-e2f146f38bb4df42.js +0 -1
  685. package/.next-prod/static/chunks/app/api/review/route-e2f146f38bb4df42.js +0 -1
  686. package/.next-prod/static/chunks/app/api/review/share-info/route-e2f146f38bb4df42.js +0 -1
  687. package/.next-prod/static/chunks/app/api/review/users/route-e2f146f38bb4df42.js +0 -1
  688. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-e2f146f38bb4df42.js +0 -1
  689. package/.next-prod/static/chunks/app/api/services/config/route-e2f146f38bb4df42.js +0 -1
  690. package/.next-prod/static/chunks/app/api/services/scripts/route-e2f146f38bb4df42.js +0 -1
  691. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-e2f146f38bb4df42.js +0 -1
  692. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-e2f146f38bb4df42.js +0 -1
  693. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-e2f146f38bb4df42.js +0 -1
  694. package/.next-prod/static/chunks/app/api/session/user-messages/route-e2f146f38bb4df42.js +0 -1
  695. package/.next-prod/static/chunks/app/api/session-by-path/route-e2f146f38bb4df42.js +0 -1
  696. package/.next-prod/static/chunks/app/api/sessions/delegate/route-e2f146f38bb4df42.js +0 -1
  697. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-e2f146f38bb4df42.js +0 -1
  698. package/.next-prod/static/chunks/app/api/sessions/projects/route-e2f146f38bb4df42.js +0 -1
  699. package/.next-prod/static/chunks/app/api/sessions/route-e2f146f38bb4df42.js +0 -1
  700. package/.next-prod/static/chunks/app/api/sessions/search/route-e2f146f38bb4df42.js +0 -1
  701. package/.next-prod/static/chunks/app/api/sessions/status/route-e2f146f38bb4df42.js +0 -1
  702. package/.next-prod/static/chunks/app/api/settings/route-e2f146f38bb4df42.js +0 -1
  703. package/.next-prod/static/chunks/app/api/shutdown/route-e2f146f38bb4df42.js +0 -1
  704. package/.next-prod/static/chunks/app/api/skills/[id]/route-e2f146f38bb4df42.js +0 -1
  705. package/.next-prod/static/chunks/app/api/skills/content/route-e2f146f38bb4df42.js +0 -1
  706. package/.next-prod/static/chunks/app/api/skills/route-e2f146f38bb4df42.js +0 -1
  707. package/.next-prod/static/chunks/app/api/snapshots/blob/route-e2f146f38bb4df42.js +0 -1
  708. package/.next-prod/static/chunks/app/api/snapshots/diff/route-e2f146f38bb4df42.js +0 -1
  709. package/.next-prod/static/chunks/app/api/snapshots/route-e2f146f38bb4df42.js +0 -1
  710. package/.next-prod/static/chunks/app/api/terminal/aliases/route-e2f146f38bb4df42.js +0 -1
  711. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-e2f146f38bb4df42.js +0 -1
  712. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-e2f146f38bb4df42.js +0 -1
  713. package/.next-prod/static/chunks/app/api/terminal/env/route-e2f146f38bb4df42.js +0 -1
  714. package/.next-prod/static/chunks/app/api/terminal/history/route-e2f146f38bb4df42.js +0 -1
  715. package/.next-prod/static/chunks/app/api/update/route-e2f146f38bb4df42.js +0 -1
  716. package/.next-prod/static/chunks/app/api/update-state/route-e2f146f38bb4df42.js +0 -1
  717. package/.next-prod/static/chunks/app/api/version/route-e2f146f38bb4df42.js +0 -1
  718. package/.next-prod/static/chunks/app/apps/[...path]/route-e2f146f38bb4df42.js +0 -1
  719. package/.next-prod/static/chunks/app/m/page-8f4f88b0d67c4181.js +0 -1
  720. package/.next-prod/static/chunks/app/manifest.webmanifest/route-e2f146f38bb4df42.js +0 -1
  721. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-e2f146f38bb4df42.js +0 -1
  722. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-e2f146f38bb4df42.js +0 -1
  723. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-e2f146f38bb4df42.js +0 -1
  724. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-e2f146f38bb4df42.js +0 -1
  725. package/.next-prod/static/css/7a02a222d1299650.css +0 -1
  726. package/bin/cock.mjs +0 -239
  727. /package/.next-prod/static/{O8neHUIr3dQhe1jcOUsQ8 → I8gbcTQRiRdMF09goE7WI}/_ssgManifest.js +0 -0
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * cock codegraph — unified CLI for all 10 /api/projectGraph/* endpoints.
3
+ * cockpit codegraph — unified CLI for all 10 /api/projectGraph/* endpoints.
4
4
  *
5
5
  * Usage:
6
- * cock codegraph List subcommands
7
- * cock codegraph <sub> --help Per-subcommand help
8
- * cock codegraph <sub> ... [--json] All subcommands accept --json
6
+ * cockpit codegraph List subcommands
7
+ * cockpit codegraph <sub> --help Per-subcommand help
8
+ * cockpit codegraph <sub> ... [--json] All subcommands accept --json
9
9
  *
10
10
  * Subcommands map 1:1 to HTTP endpoints; the CLI is a thin shim that
11
11
  * shares the running server's live CodeIndex (no per-invocation parse).
@@ -38,7 +38,7 @@ if (!sub || sub === '-h' || sub === '--help') {
38
38
  }
39
39
 
40
40
  if (!SUBCMDS.includes(sub)) {
41
- stderr.write(`cock codegraph: unknown subcommand "${sub}"\n`);
41
+ stderr.write(`cockpit codegraph: unknown subcommand "${sub}"\n`);
42
42
  stderr.write(`Available: ${SUBCMDS.join(', ')}\n`);
43
43
  exit(2);
44
44
  }
@@ -92,7 +92,7 @@ async function get(path, params) {
92
92
  stderr.write(
93
93
  `codegraph: cannot reach Cockpit at ${BASE}\n` +
94
94
  ` (${err?.code ?? err?.name ?? 'fetch failed'})\n` +
95
- ` Start it with: cock\n`,
95
+ ` Start it with: cockpit\n`,
96
96
  );
97
97
  exit(3);
98
98
  }
@@ -116,7 +116,7 @@ async function post(path, body) {
116
116
  stderr.write(
117
117
  `codegraph: cannot reach Cockpit at ${BASE}\n` +
118
118
  ` (${err?.code ?? err?.name ?? 'fetch failed'})\n` +
119
- ` Start it with: cock\n`,
119
+ ` Start it with: cockpit\n`,
120
120
  );
121
121
  exit(3);
122
122
  }
@@ -542,7 +542,7 @@ async function cmdAffected() {
542
542
  // ============================================================================
543
543
 
544
544
  function printTopHelp() {
545
- stdout.write(`Usage: cock codegraph <subcommand> [options]
545
+ stdout.write(`Usage: cockpit codegraph <subcommand> [options]
546
546
 
547
547
  Lookups (mirror existing /api/projectGraph/* endpoints — coordinates only):
548
548
  search <query> Find symbols by name (file + qname hits)
@@ -589,19 +589,19 @@ Exit codes:
589
589
  0 output produced
590
590
  1 empty result (no callers / no tests / no hits) — short-circuit shell pipelines
591
591
  2 argument or 4xx server error
592
- 3 Cockpit server not reachable (start it: cock <project-path>)
592
+ 3 Cockpit server not reachable (start it: cockpit <project-path>)
593
593
 
594
594
  Prerequisites:
595
595
  Cockpit server running at ${BASE}
596
596
  (override port: COCKPIT_PORT; host is always loopback)
597
597
 
598
598
  Examples:
599
- cock codegraph search getCodeIndex
600
- cock codegraph related getCodeIndex --top 5
601
- cock codegraph risk searchIndex --depth 2
602
- git diff --name-only | cock codegraph affected --stdin # → newline test paths
603
- git diff --name-only | cock codegraph affected --stdin --as-cmd jest # → jest "a" "b" …
604
- git diff --name-only | cock codegraph affected --stdin --as-cmd "vitest run" # → vitest run "a" "b" …
599
+ cockpit codegraph search getCodeIndex
600
+ cockpit codegraph related getCodeIndex --top 5
601
+ cockpit codegraph risk searchIndex --depth 2
602
+ git diff --name-only | cockpit codegraph affected --stdin # → newline test paths
603
+ git diff --name-only | cockpit codegraph affected --stdin --as-cmd jest # → jest "a" "b" …
604
+ git diff --name-only | cockpit codegraph affected --stdin --as-cmd "vitest run" # → vitest run "a" "b" …
605
605
  `);
606
606
  }
607
607
 
@@ -618,14 +618,14 @@ Examples:
618
618
  * Exit codes: <ints + meaning>
619
619
  * Examples: <2-4 worked invocations>
620
620
  *
621
- * Self-documenting like `cock terminal <id>` — agents are stateless between
621
+ * Self-documenting like `cockpit terminal <id>` — agents are stateless between
622
622
  * tool calls, so the help has to carry everything they need.
623
623
  */
624
624
  // Lazy — exposed via getSubHelp() so the top-level `printSubHelp(sub)`
625
625
  // call (which runs before this declaration is reached in module order)
626
626
  // doesn't hit a const TDZ.
627
627
  function getSubHelp() { return {
628
- search: `Usage: cock codegraph search <query> [--limit N=15] [--include-literals] [--json]
628
+ search: `Usage: cockpit codegraph search <query> [--limit N=15] [--include-literals] [--json]
629
629
 
630
630
  Purpose: Find symbols (and files) matching a name fragment. Tokenised
631
631
  match across name + qualifiedName + filePath, with case +
@@ -651,13 +651,13 @@ JSON keys: files[].target, symbols[].target.{filePath,line,symbolKind,qualifiedN
651
651
  Exit: 0=hits, 1=no hits, 2=usage, 3=server unreachable
652
652
 
653
653
  Examples:
654
- cock codegraph search getCodeIndex
655
- cock codegraph search build_code_index # snake-case query, still finds buildCodeIndex
656
- cock codegraph search useChatStore --limit 5
657
- cock codegraph search 'agent.fork' --include-literals # find a name hiding in a literal
658
- cock codegraph search authenticate --json | jq '.symbols[].target'`,
654
+ cockpit codegraph search getCodeIndex
655
+ cockpit codegraph search build_code_index # snake-case query, still finds buildCodeIndex
656
+ cockpit codegraph search useChatStore --limit 5
657
+ cockpit codegraph search 'agent.fork' --include-literals # find a name hiding in a literal
658
+ cockpit codegraph search authenticate --json | jq '.symbols[].target'`,
659
659
 
660
- callers: `Usage: cock codegraph callers <qname> [--file PATH] [--json]
660
+ callers: `Usage: cockpit codegraph callers <qname> [--file PATH] [--json]
661
661
 
662
662
  Purpose: Direct callers of <qname> (1-hop). For transitive use 'impact'
663
663
  or 'risk'. Pass --file when the qname exists in multiple files
@@ -676,11 +676,11 @@ Stderr:
676
676
  Exit: 0=callers found, 1=no callers, 2=usage/qname missing, 3=server
677
677
 
678
678
  Examples:
679
- cock codegraph callers getCodeIndex
680
- cock codegraph callers GET --file packages/feature/explorer/src/server/api/projectGraph/risk.ts
681
- cock codegraph callers searchIndex --json`,
679
+ cockpit codegraph callers getCodeIndex
680
+ cockpit codegraph callers GET --file packages/feature/explorer/src/server/api/projectGraph/risk.ts
681
+ cockpit codegraph callers searchIndex --json`,
682
682
 
683
- callees: `Usage: cock codegraph callees <qname> [--file PATH] [--json]
683
+ callees: `Usage: cockpit codegraph callees <qname> [--file PATH] [--json]
684
684
 
685
685
  Purpose: What <qname> calls directly (1-hop outgoing). Mirror of
686
686
  'callers'. Same shape, opposite direction.
@@ -693,10 +693,10 @@ Output (plain, TAB-separated):
693
693
  Exit: 0=callees found, 1=none, 2=usage, 3=server
694
694
 
695
695
  Examples:
696
- cock codegraph callees runDialogue
697
- cock codegraph callees buildCodeIndex --file packages/feature/explorer/src/server/codeMap/projectGraph/codeIndex.ts`,
696
+ cockpit codegraph callees runDialogue
697
+ cockpit codegraph callees buildCodeIndex --file packages/feature/explorer/src/server/codeMap/projectGraph/codeIndex.ts`,
698
698
 
699
- impact: `Usage: cock codegraph impact <qname> [--file PATH] [--depth N=2] [--json]
699
+ impact: `Usage: cockpit codegraph impact <qname> [--file PATH] [--depth N=2] [--json]
700
700
 
701
701
  Purpose: Transitive callers via BFS, up to <depth> hops. Returns a
702
702
  flat node list capped at 500 server-side. For ranked + bounded
@@ -716,11 +716,11 @@ Stderr:
716
716
  Exit: 0=impacted nodes, 1=target only / no impact, 2=usage, 3=server
717
717
 
718
718
  Examples:
719
- cock codegraph impact getCodeIndex
720
- cock codegraph impact validateCwd --depth 3
721
- cock codegraph impact searchIndex --json | jq '.nodes | length'`,
719
+ cockpit codegraph impact getCodeIndex
720
+ cockpit codegraph impact validateCwd --depth 3
721
+ cockpit codegraph impact searchIndex --json | jq '.nodes | length'`,
722
722
 
723
- file: `Usage: cock codegraph file <path> [--json]
723
+ file: `Usage: cockpit codegraph file <path> [--json]
724
724
 
725
725
  Purpose: Symbol tree of one file. Useful for "what's in this file" or
726
726
  for picking a qname to feed to callers/related/risk.
@@ -734,10 +734,10 @@ Output (plain, TAB-separated):
734
734
  Exit: 0=symbols found, 1=empty file / not indexed, 2=usage, 3=server
735
735
 
736
736
  Examples:
737
- cock codegraph file packages/feature/explorer/src/server/codeMap/types.ts
738
- cock codegraph file packages/feature/explorer/src/server/codeMap/projectGraph/codeIndex.ts --json`,
737
+ cockpit codegraph file packages/feature/explorer/src/server/codeMap/types.ts
738
+ cockpit codegraph file packages/feature/explorer/src/server/codeMap/projectGraph/codeIndex.ts --json`,
739
739
 
740
- coedit: `Usage: cock codegraph coedit <path> [--commits N=100] [--json]
740
+ coedit: `Usage: cockpit codegraph coedit <path> [--commits N=100] [--json]
741
741
 
742
742
  Purpose: Files frequently edited together with <path> in git history.
743
743
  Captures "convention coupling" (parallel registries, double-
@@ -757,10 +757,10 @@ Output (plain, TAB-separated):
757
757
  Exit: 0=signal found, 1=no cooccurrence (totalCommits may be 0), 2=usage, 3=server
758
758
 
759
759
  Examples:
760
- cock codegraph coedit packages/feature/explorer/src/server/codeMap/projectGraph/codeIndex.ts
761
- cock codegraph coedit packages/feature/agent/src/server/lib/cgPrompt.ts --commits 500`,
760
+ cockpit codegraph coedit packages/feature/explorer/src/server/codeMap/projectGraph/codeIndex.ts
761
+ cockpit codegraph coedit packages/feature/agent/src/server/lib/cgPrompt.ts --commits 500`,
762
762
 
763
- context: `Usage: cock codegraph context [--query Q] [--cursor C] [--open F1,F2,...]
763
+ context: `Usage: cockpit codegraph context [--query Q] [--cursor C] [--open F1,F2,...]
764
764
  [--top N=15] [--json]
765
765
 
766
766
  Purpose: Semantic retrieval. Combine free-text query, a cursor anchor,
@@ -790,11 +790,11 @@ Stderr:
790
790
  Exit: 0=results, 1=no results, 2=usage/no seeds, 3=server
791
791
 
792
792
  Examples:
793
- cock codegraph context --query "spawn language server shutdown"
794
- cock codegraph context --query "auth flow" --cursor src/auth.ts::login
795
- cock codegraph context --cursor src/api.ts:42 --top 5`,
793
+ cockpit codegraph context --query "spawn language server shutdown"
794
+ cockpit codegraph context --query "auth flow" --cursor src/auth.ts::login
795
+ cockpit codegraph context --cursor src/api.ts:42 --top 5`,
796
796
 
797
- related: `Usage: cock codegraph related <qname> [--file PATH] [--top N=10]
797
+ related: `Usage: cockpit codegraph related <qname> [--file PATH] [--top N=10]
798
798
  [--include all|structural|coedit] [--json]
799
799
 
800
800
  Purpose: Broader 1-hop relatedness than callers/callees alone. Combines
@@ -820,11 +820,11 @@ Stderr:
820
820
  Exit: 0=results, 1=no relatives, 2=usage, 3=server
821
821
 
822
822
  Examples:
823
- cock codegraph related getCodeIndex --top 5
824
- cock codegraph related NewRoutineModal --include structural
825
- cock codegraph related GET --file packages/feature/explorer/src/server/api/projectGraph/risk.ts`,
823
+ cockpit codegraph related getCodeIndex --top 5
824
+ cockpit codegraph related NewRoutineModal --include structural
825
+ cockpit codegraph related GET --file packages/feature/explorer/src/server/api/projectGraph/risk.ts`,
826
826
 
827
- risk: `Usage: cock codegraph risk <qname> [--file PATH] [--depth N=2]
827
+ risk: `Usage: cockpit codegraph risk <qname> [--file PATH] [--depth N=2]
828
828
  [--top N=20] [--json]
829
829
 
830
830
  Purpose: Risk-scored impact. Wraps 'impact' BFS and overlays
@@ -855,11 +855,11 @@ Stderr:
855
855
  Exit: 0=high-risk nodes returned, 1=qname not found, 2=usage, 3=server
856
856
 
857
857
  Examples:
858
- cock codegraph risk searchIndex
859
- cock codegraph risk getCodeIndex --depth 3 --top 10
860
- cock codegraph risk validateCwd --json | jq '.suggestedTests[].filePath'`,
858
+ cockpit codegraph risk searchIndex
859
+ cockpit codegraph risk getCodeIndex --depth 3 --top 10
860
+ cockpit codegraph risk validateCwd --json | jq '.suggestedTests[].filePath'`,
861
861
 
862
- affected: `Usage: cock codegraph affected <files…|--stdin>
862
+ affected: `Usage: cockpit codegraph affected <files…|--stdin>
863
863
  [--depth N=10] [--filter GLOB]
864
864
  [--as-cmd RUNNER] [--include-all] [--json]
865
865
 
@@ -905,11 +905,11 @@ Exit: 0=tests printed, 1=no tests affected (short-circuit in Makefile),
905
905
  2=usage, 3=server
906
906
 
907
907
  Examples:
908
- git diff --name-only main | cock codegraph affected --stdin
909
- git diff --name-only | cock codegraph affected --stdin --as-cmd jest
910
- git diff --name-only | cock codegraph affected --stdin --as-cmd "vitest run"
911
- cock codegraph affected src/auth.ts --filter "**/*.e2e.ts"
912
- cock codegraph affected --stdin --json | jq '.byInput[] | {file, tests: .reachableTests | length}'`,
908
+ git diff --name-only main | cockpit codegraph affected --stdin
909
+ git diff --name-only | cockpit codegraph affected --stdin --as-cmd jest
910
+ git diff --name-only | cockpit codegraph affected --stdin --as-cmd "vitest run"
911
+ cockpit codegraph affected src/auth.ts --filter "**/*.e2e.ts"
912
+ cockpit codegraph affected --stdin --json | jq '.byInput[] | {file, tests: .reachableTests | length}'`,
913
913
  }; }
914
914
 
915
915
  function printSubHelp(name) {
@@ -921,5 +921,5 @@ function printSubHelp(name) {
921
921
  stdout.write(h + '\n');
922
922
  }
923
923
 
924
- // Exported for cock.mjs `await mod.done` pattern.
924
+ // Exported for cockpit.mjs `await mod.done` pattern.
925
925
  export const done = Promise.resolve();
@@ -39,7 +39,7 @@ const baseUrl = `http://localhost:${port}`;
39
39
  const { stdout, stderr, exit } = process;
40
40
 
41
41
  function printHelp() {
42
- stdout.write(`Usage: cock connection list [--cwd PATH] [--all] [--json]
42
+ stdout.write(`Usage: cockpit connection list [--cwd PATH] [--all] [--json]
43
43
 
44
44
  Purpose: Enumerate all bubbles (terminal + browser) across the running
45
45
  Cockpit server. Each entry carries the user-set title if any
@@ -5,10 +5,10 @@
5
5
  *
6
6
  * 4 subcommands (read-only by design; write side belongs to Bash tool / web UI):
7
7
  *
8
- * cock terminal list Discover terminals
9
- * cock terminal <id> [--json] Status / meta
10
- * cock terminal <id> output [flags] Read + filter + global lineno
11
- * cock terminal <id> wait <mode> [flags] Wait for pattern / idle / exit
8
+ * cockpit terminal list Discover terminals
9
+ * cockpit terminal <id> [--json] Status / meta
10
+ * cockpit terminal <id> output [flags] Read + filter + global lineno
11
+ * cockpit terminal <id> wait <mode> [flags] Wait for pattern / idle / exit
12
12
  *
13
13
  * The CLI is a thin HTTP wrapper. All filtering, lineno bookkeeping, and
14
14
  * waiting happens on the server (see packages/feature/console/server/terminal).
@@ -123,7 +123,7 @@ function printTopHelp() {
123
123
 
124
124
  This CLI is READ-ONLY by design — the write side (stdin, signals, kill) is
125
125
  covered by the Bash tool (spawn your own process) or the Cockpit web UI
126
- (human types into the bubble). cock terminal only reads, filters, and waits.
126
+ (human types into the bubble). cockpit terminal only reads, filters, and waits.
127
127
 
128
128
  Usage: cockpit terminal <id> <action> [flags]
129
129
  cockpit terminal list
@@ -168,7 +168,7 @@ async function cmdList(rest) {
168
168
  // Hint AI to the next step. The cheat sheet on the meta page is the real
169
169
  // entry point — list alone doesn't tell you how to act on any of these ids.
170
170
  console.log('');
171
- console.log(`Next: cock terminal <shortId> (status + full action cheat sheet)`);
171
+ console.log(`Next: cockpit terminal <shortId> (status + full action cheat sheet)`);
172
172
  }
173
173
 
174
174
  /* ───────────────────────────────────────────────────────────────────────── */
@@ -193,8 +193,8 @@ function formatRelative(iso) {
193
193
  function actionsCheatSheet(id) {
194
194
  return `Available actions:
195
195
 
196
- cock terminal ${id} output [flags] Read buffered output (filter + global lineno)
197
- cock terminal ${id} wait <mode> [flags] Block until pattern / idle / exit / timeout
196
+ cockpit terminal ${id} output [flags] Read buffered output (filter + global lineno)
197
+ cockpit terminal ${id} wait <mode> [flags] Block until pattern / idle / exit / timeout
198
198
 
199
199
  Output — read mode (pick one, default = entire buffer):
200
200
  --since <N> Continue from global line number N (cursor from previous call).
@@ -231,22 +231,22 @@ Wait exit codes: 0=condition met, 124=timeout (GNU convention), 2=bad usage, 1=o
231
231
 
232
232
  Common workflows:
233
233
  # Find error candidates with global line numbers
234
- cock terminal ${id} output --grep error -i
234
+ cockpit terminal ${id} output --grep error -i
235
235
 
236
236
  # Inspect 15 lines around line 4920
237
- cock terminal ${id} output --around 4920 --context 15
237
+ cockpit terminal ${id} output --around 4920 --context 15
238
238
 
239
239
  # Incremental read — pass 'next' from previous call's stderr
240
- cock terminal ${id} output --since 5100
240
+ cockpit terminal ${id} output --since 5100
241
241
 
242
242
  # Wait until build settles (3s idle)
243
- cock terminal ${id} wait --idle 3 --timeout 60
243
+ cockpit terminal ${id} wait --idle 3 --timeout 60
244
244
 
245
245
  # Wait until dev server announces ready
246
- cock terminal ${id} wait --pattern 'Ready in' --timeout 90 --print
246
+ cockpit terminal ${id} wait --pattern 'Ready in' --timeout 90 --print
247
247
 
248
248
  # Programmatic — both stdout/stderr fields available in one JSON
249
- cock terminal ${id} output --tail 50 --json | jq .`;
249
+ cockpit terminal ${id} output --tail 50 --json | jq .`;
250
250
  }
251
251
 
252
252
  async function cmdMeta(id, rest) {
@@ -311,7 +311,7 @@ const OUTPUT_FLAG_SPEC = {
311
311
  };
312
312
 
313
313
  function printOutputHelp() {
314
- console.log(`Usage: cock terminal <id> output [flags]
314
+ console.log(`Usage: cockpit terminal <id> output [flags]
315
315
 
316
316
  Read modes (pick one, default = entire buffer):
317
317
  --since <N> Continue from global line number N (cursor)
@@ -434,7 +434,7 @@ const WAIT_FLAG_SPEC = {
434
434
  };
435
435
 
436
436
  function printWaitHelp() {
437
- console.log(`Usage: cock terminal <id> wait [flags]
437
+ console.log(`Usage: cockpit terminal <id> wait [flags]
438
438
 
439
439
  Modes (exactly one):
440
440
  --pattern <regex> Wait until output line matches regex
@@ -512,7 +512,7 @@ async function run() {
512
512
  const rest = args.slice(2);
513
513
 
514
514
  if (!action || action === '--help' || action === '-h' || action === '--json') {
515
- // `cock terminal <id>` or `cock terminal <id> --json` → meta
515
+ // `cockpit terminal <id>` or `cockpit terminal <id> --json` → meta
516
516
  const extras = action ? [action, ...rest] : rest;
517
517
  await cmdMeta(id, extras);
518
518
  return;
@@ -1,9 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // cockpit-dev: dev-mode entry. Sets dev env + delegates to cock.mjs which
3
+ // cockpit-dev: dev-mode entry. Sets dev env + delegates to cockpit.mjs which
4
4
  // holds the shared subcommand dispatcher. The prod entry binaries are
5
- // `cockpit` (recommended) and its short alias `cock` — there is NO short
6
- // `cock-dev` alias by design; dev mode uses the full name only.
5
+ // `cockpit`; dev mode uses the full name only.
7
6
  process.env.COCKPIT_ENV = 'dev';
8
7
  process.env.COCKPIT_PORT = process.env.COCKPIT_PORT || '3456';
9
- await import('./cock.mjs');
8
+ await import('./cockpit.mjs');
package/bin/cockpit.mjs CHANGED
@@ -1,14 +1,248 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
- * `cockpit` — full-name alias for the legacy `cock` command.
3
+ * `cockpit` — the CLI entry point.
4
4
  *
5
- * Both binaries point at the same logic: this file just re-imports `cock.mjs`,
6
- * which executes its top-level CLI on load. Keeping a single source of truth
7
- * means new subcommands / flags only need to land in cock.mjs.
5
+ * Holds the whole command surface: flag parsing, the `--help` text, and the
6
+ * dynamic imports that lazy-load each sub-command module (browser / terminal /
7
+ * codegraph / connection / service). `cockpit-dev` re-imports this file with
8
+ * the dev environment pre-set.
8
9
  *
9
- * Why we ship both:
10
- * - `cock` was the original short alias (kept for muscle memory + back-compat).
11
- * - `cockpit` is the public-facing name we now use in docs, examples, blog
12
- * posts, and screenshots — easier to share in chat / Slack / talks.
10
+ * `__dirname` must stay `bin/` — PROJECT_ROOT and every `./cockpit-*` import
11
+ * resolve from here.
13
12
  */
14
- import './cock.mjs';
13
+
14
+ import { dirname, resolve } from 'path';
15
+ import { fileURLToPath } from 'url';
16
+ import { spawnSync } from 'child_process';
17
+ import { missingAgentBinaries } from '../scripts/agentBinaries.mjs';
18
+
19
+ const __dirname = dirname(fileURLToPath(import.meta.url));
20
+ const PROJECT_ROOT = resolve(__dirname, '..');
21
+
22
+ // --help / -h
23
+ if (process.argv[2] === '--help' || process.argv[2] === '-h' || process.argv[2] === 'help') {
24
+ const { readFileSync } = await import('fs');
25
+ const pkg = JSON.parse(readFileSync(resolve(PROJECT_ROOT, 'package.json'), 'utf8'));
26
+ console.log(`Cockpit v${pkg.version} - One seat. One AI. Everything under control.
27
+
28
+ Usage: cockpit [path] [options]
29
+
30
+ Commands:
31
+ cockpit Start server in the foreground, open last project
32
+ cockpit . Start server, open current directory
33
+ cockpit <path> Start server, open specified directory
34
+ start Start in the background (survives closing the terminal)
35
+ stop Stop the background server
36
+ restart Restart it (--force to drop a token gate)
37
+ status Show whether cockpit is running, and where
38
+ browser <id> <action> Control browser bubbles
39
+ terminal <id> <action> Control terminal bubbles
40
+ codegraph <subcmd> [...] Query the project code graph (search/risk/affected/...)
41
+ connection list [--cwd …] List all bubbles (term + browser) with user-set titles
42
+ update Update to latest version
43
+
44
+ Options:
45
+ --port <port> Set server port (default: 3457); works with start too
46
+ --token <token> Require this token for remote access (local stays open)
47
+ --no-open Don't open browser after start (start never opens one)
48
+ -v, --version Show version
49
+ -h, --help Show this help`);
50
+ process.exit(0);
51
+ }
52
+
53
+ // --version / -v
54
+ if (process.argv[2] === '--version' || process.argv[2] === '-v') {
55
+ const { readFileSync } = await import('fs');
56
+ const pkg = JSON.parse(readFileSync(resolve(PROJECT_ROOT, 'package.json'), 'utf8'));
57
+ console.log(pkg.version);
58
+ process.exit(0);
59
+ }
60
+
61
+ // --no-open
62
+ const noOpenIdx = process.argv.indexOf('--no-open');
63
+ if (noOpenIdx !== -1) {
64
+ process.env.COCKPIT_NO_OPEN = '1';
65
+ process.argv.splice(noOpenIdx, 1);
66
+ }
67
+
68
+ // Parse --port argument
69
+ const portIdx = process.argv.indexOf('--port');
70
+ if (portIdx !== -1 && process.argv[portIdx + 1]) {
71
+ process.env.PORT = process.argv[portIdx + 1];
72
+ process.argv.splice(portIdx, 2);
73
+ }
74
+
75
+ // Parse --token argument → enable shared-token auth (server.mjs reads
76
+ // COCKPIT_TOKEN). Off entirely when omitted. Local (loopback) access stays
77
+ // exempt; remote access must present the token.
78
+ const tokenIdx = process.argv.indexOf('--token');
79
+ if (tokenIdx !== -1 && process.argv[tokenIdx + 1] && !process.argv[tokenIdx + 1].startsWith('-')) {
80
+ process.env.COCKPIT_TOKEN = process.argv[tokenIdx + 1];
81
+ process.argv.splice(tokenIdx, 2);
82
+ }
83
+
84
+ // Default prod port
85
+ if (!process.env.COCKPIT_PORT) {
86
+ process.env.COCKPIT_PORT = '3457';
87
+ }
88
+
89
+ // Subcommand routing
90
+
91
+ // Flush stdout/stderr before exit. process.exit() does NOT wait for
92
+ // async pipe writes to drain — for large outputs (> 16 KiB Node stream
93
+ // highWaterMark) this truncates at exactly 16384 bytes on macOS pipes.
94
+ // Without this, an ollama agent capturing our stdout via execAsync
95
+ // receives a cleanly cut mid-string blob and then misdiagnoses it as
96
+ // "output truncated" (reproduced in sessions 6910d071 & 22727dd4).
97
+ async function flushAndExit(code) {
98
+ const drain = (stream) => new Promise((resolve) => {
99
+ if (!stream.writableLength) { resolve(); return; }
100
+ // Writing an empty string returns false iff the stream is backpressured;
101
+ // the callback then fires once the kernel has actually accepted the data.
102
+ stream.write('', 'utf8', () => resolve());
103
+ });
104
+ try { await Promise.all([drain(process.stdout), drain(process.stderr)]); } catch { /* ignore */ }
105
+ process.exit(code);
106
+ }
107
+
108
+ if (process.argv[2] === 'browser') {
109
+ process.argv.splice(2, 1);
110
+ const mod = await import('./cock-browser.mjs');
111
+ await mod.done;
112
+ await flushAndExit(0);
113
+ }
114
+
115
+ if (process.argv[2] === 'terminal') {
116
+ process.argv.splice(2, 1);
117
+ const mod = await import('./cock-terminal.mjs');
118
+ await mod.done;
119
+ await flushAndExit(0);
120
+ }
121
+
122
+ if (process.argv[2] === 'codegraph') {
123
+ process.argv.splice(2, 1);
124
+ const mod = await import('./cock-codegraph.mjs');
125
+ await mod.done;
126
+ await flushAndExit(0);
127
+ }
128
+
129
+ if (process.argv[2] === 'connection') {
130
+ process.argv.splice(2, 1);
131
+ // cock-connection.mjs handles flow + exit itself (single subcmd, simple).
132
+ await import('./cock-connection.mjs');
133
+ // import() resolves when the module finishes top-level await; that script
134
+ // already calls process.exit() on its own paths, so this fallback only
135
+ // fires for the 0-exit happy path that finished normally.
136
+ await flushAndExit(0);
137
+ }
138
+
139
+ if (process.argv[2] === 'update') {
140
+ // Two mechanisms, picked by whether a server is live — see cock-service.mjs.
141
+ const svc = await import('./cock-service.mjs');
142
+ const code = await svc.update();
143
+ await flushAndExit(code);
144
+ }
145
+
146
+ // ============================================
147
+ // Resolve project directory (if provided)
148
+ // ============================================
149
+ const { existsSync, mkdirSync } = await import('fs');
150
+ const { homedir } = await import('os');
151
+
152
+ // Background process management. Must be routed BEFORE the project-directory
153
+ // fallback below, which treats any unrecognised first argument as a path and
154
+ // creates it — `cockpit start` would otherwise mkdir ./start.
155
+ const SERVICE_COMMANDS = new Set(['start', 'stop', 'restart', 'status']);
156
+ if (SERVICE_COMMANDS.has(process.argv[2])) {
157
+ const sub = process.argv[2];
158
+ const svc = await import('./cock-service.mjs');
159
+ // `restart --force` acknowledges dropping a token gate (see cock-service.mjs).
160
+ const forceIdx = process.argv.indexOf('--force');
161
+ const svcForce = forceIdx !== -1;
162
+ if (svcForce) process.argv.splice(forceIdx, 1);
163
+ // None of these take a project path — the background server is not tied to a
164
+ // project. Say so rather than silently ignoring the argument, since
165
+ // `cockpit <path>` (foreground) does accept one and the difference is easy
166
+ // to trip over.
167
+ const stray = process.argv[3];
168
+ if (stray && !stray.startsWith('-')) {
169
+ console.error(`cockpit ${sub}: ignoring '${stray}' — the background server is not bound to a project.`);
170
+ console.error(` Open a project from the UI, or run \`cockpit ${stray}\` to start in the foreground.\n`);
171
+ }
172
+ const code = await svc[sub]({ force: svcForce });
173
+ await flushAndExit(code);
174
+ }
175
+
176
+ const knownCommands = new Set(['browser', 'terminal', 'update', 'help', 'codegraph', 'connection']);
177
+ const arg = process.argv[2];
178
+ let projectDir = null;
179
+
180
+ // First arg is neither a flag nor a known subcommand → treat it as a directory path
181
+ if (arg && !arg.startsWith('-') && !knownCommands.has(arg)) {
182
+ // Expand ~ to the home directory
183
+ const raw = arg.startsWith('~') ? arg.replace(/^~/, homedir()) : arg;
184
+ projectDir = resolve(raw);
185
+ // Create the directory if it doesn't exist
186
+ if (!existsSync(projectDir)) {
187
+ mkdirSync(projectDir, { recursive: true });
188
+ console.log(`Created ${projectDir}`);
189
+ }
190
+ }
191
+
192
+ // ============================================
193
+ // Check if server is already running
194
+ // ============================================
195
+ const port = process.env.PORT || process.env.COCKPIT_PORT || '3457';
196
+
197
+ async function isServerRunning() {
198
+ try {
199
+ const res = await fetch(`http://localhost:${port}/api/version`, { signal: AbortSignal.timeout(1000) });
200
+ return res.ok;
201
+ } catch {
202
+ return false;
203
+ }
204
+ }
205
+
206
+ const { exec } = await import('child_process');
207
+ const running = await isServerRunning();
208
+
209
+ if (running) {
210
+ // Server already running → open the browser and exit immediately
211
+ const base = `http://localhost:${port}`;
212
+ const url = projectDir ? `${base}/?cwd=${encodeURIComponent(projectDir)}` : base;
213
+ if (!process.env.COCKPIT_NO_OPEN) {
214
+ const cmd = process.platform === 'darwin' ? 'open' : process.platform === 'win32' ? 'start' : 'xdg-open';
215
+ exec(`${cmd} ${url}`);
216
+ }
217
+ console.log(`Cockpit is already running → ${url}`);
218
+ process.exit(0);
219
+ }
220
+
221
+ // ============================================
222
+ // Start server (foreground, Ctrl+C to stop)
223
+ // ============================================
224
+ const isDev = process.env.COCKPIT_ENV === 'dev';
225
+ if (!isDev && !existsSync(resolve(PROJECT_ROOT, '.next-prod', 'BUILD_ID'))) {
226
+ console.error('No production build found.\n');
227
+ console.error('Run: npm run build');
228
+ process.exit(1);
229
+ }
230
+
231
+ // Warn (don't block) if an agent's native binary is missing — every other panel
232
+ // still works, but that engine would otherwise fail only once the user sends a
233
+ // message, and Codex would not even fail loudly: it silently falls back to an
234
+ // unpinned `codex` on PATH. See scripts/agentBinaries.mjs.
235
+ const missingBinaries = missingAgentBinaries();
236
+ if (missingBinaries.length) {
237
+ console.error(`Warning: the native ${missingBinaries.join(' and ')} CLI binary is missing; ${missingBinaries.length > 1 ? 'those engines' : 'that engine'} may not work.`);
238
+ console.error('Fix: npm uninstall -g @surething/cockpit && npm install -g @surething/cockpit\n');
239
+ }
240
+
241
+ // Hand the project directory to server.mjs so it opens the right URL
242
+ if (projectDir) {
243
+ process.env.COCKPIT_OPEN_PROJECT = projectDir;
244
+ }
245
+
246
+ console.log('Starting Cockpit...');
247
+ const args = isDev ? ['--import', 'tsx', 'server.mjs'] : ['server.mjs'];
248
+ spawnSync('node', args, { cwd: PROJECT_ROOT, stdio: 'inherit' });