@surething/cockpit 1.0.276 → 1.0.277

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 (719) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +5 -4
  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 +12 -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 +1 -1
  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 +1 -1
  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/pick-folder/route.js +1 -1
  198. package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
  199. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  200. package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
  201. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  202. package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
  203. package/.next-prod/server/app/api/project-state/route.js +2 -2
  204. package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
  205. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  206. package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
  207. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  208. package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
  209. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  210. package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
  211. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  212. package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
  213. package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
  214. package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
  215. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  216. package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
  217. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  218. package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
  219. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  220. package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
  221. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  222. package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
  223. package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
  224. package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
  225. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  226. package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
  227. package/.next-prod/server/app/api/projects/route.js +1 -1
  228. package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
  229. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  230. package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
  231. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  232. package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
  233. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  234. package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
  235. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  236. package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
  237. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  238. package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
  239. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  240. package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
  241. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  242. package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
  243. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  244. package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
  245. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  246. package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
  247. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  248. package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
  249. package/.next-prod/server/app/api/restart/route.js +1 -1
  250. package/.next-prod/server/app/api/restart/route.js.nft.json +1 -1
  251. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  252. package/.next-prod/server/app/api/review/[id]/comments/route.js.nft.json +1 -1
  253. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  254. package/.next-prod/server/app/api/review/[id]/replies/route.js.nft.json +1 -1
  255. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  256. package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
  257. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  258. package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
  259. package/.next-prod/server/app/api/review/order/route.js +1 -1
  260. package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
  261. package/.next-prod/server/app/api/review/route.js +1 -1
  262. package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
  263. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  264. package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
  265. package/.next-prod/server/app/api/review/users/route.js +1 -1
  266. package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
  267. package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
  268. package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
  269. package/.next-prod/server/app/api/services/config/route.js +1 -1
  270. package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
  271. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  272. package/.next-prod/server/app/api/services/scripts/route.js.nft.json +1 -1
  273. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  274. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js.nft.json +1 -1
  275. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  276. package/.next-prod/server/app/api/session/[sessionId]/history/route.js.nft.json +1 -1
  277. package/.next-prod/server/app/api/session/[sessionId]/turn/route.js +2 -2
  278. package/.next-prod/server/app/api/session/[sessionId]/turn/route.js.nft.json +1 -1
  279. package/.next-prod/server/app/api/session/user-messages/route.js +1 -1
  280. package/.next-prod/server/app/api/session/user-messages/route.js.nft.json +1 -1
  281. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  282. package/.next-prod/server/app/api/session-by-path/route.js.nft.json +1 -1
  283. package/.next-prod/server/app/api/sessions/delegate/route.js +1 -1
  284. package/.next-prod/server/app/api/sessions/delegate/route.js.nft.json +1 -1
  285. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  286. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js.nft.json +1 -1
  287. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  288. package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
  289. package/.next-prod/server/app/api/sessions/search/route.js +1 -1
  290. package/.next-prod/server/app/api/sessions/search/route.js.nft.json +1 -1
  291. package/.next-prod/server/app/api/sessions/status/route.js +1 -1
  292. package/.next-prod/server/app/api/sessions/status/route.js.nft.json +1 -1
  293. package/.next-prod/server/app/api/settings/route.js +1 -1
  294. package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
  295. package/.next-prod/server/app/api/shutdown/route.js +1 -1
  296. package/.next-prod/server/app/api/shutdown/route.js.nft.json +1 -1
  297. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  298. package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
  299. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  300. package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
  301. package/.next-prod/server/app/api/skills/route.js +1 -1
  302. package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
  303. package/.next-prod/server/app/api/snapshots/blob/route.js +1 -1
  304. package/.next-prod/server/app/api/snapshots/blob/route.js.nft.json +1 -1
  305. package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
  306. package/.next-prod/server/app/api/snapshots/diff/route.js.nft.json +1 -1
  307. package/.next-prod/server/app/api/snapshots/range-diff/route.js +1 -0
  308. package/.next-prod/server/app/api/snapshots/range-diff/route.js.nft.json +1 -0
  309. package/.next-prod/server/app/api/snapshots/range-diff/route_client-reference-manifest.js +1 -0
  310. package/.next-prod/server/app/api/snapshots/route.js +1 -1
  311. package/.next-prod/server/app/api/snapshots/route.js.nft.json +1 -1
  312. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  313. package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
  314. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  315. package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +1 -1
  316. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  317. package/.next-prod/server/app/api/terminal/bubble-order/route.js.nft.json +1 -1
  318. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  319. package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
  320. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  321. package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
  322. package/.next-prod/server/app/api/update/route.js +1 -1
  323. package/.next-prod/server/app/api/update/route.js.nft.json +1 -1
  324. package/.next-prod/server/app/api/update-state/route.js +1 -1
  325. package/.next-prod/server/app/api/update-state/route.js.nft.json +1 -1
  326. package/.next-prod/server/app/api/version/route.js +1 -1
  327. package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
  328. package/.next-prod/server/app/apps/[...path]/route.js +1 -1
  329. package/.next-prod/server/app/apps/[...path]/route.js.nft.json +1 -1
  330. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  331. package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
  332. package/.next-prod/server/app/m/page.js +1 -1
  333. package/.next-prod/server/app/m/page.js.nft.json +1 -1
  334. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  335. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  336. package/.next-prod/server/app/manifest.webmanifest/route.js.nft.json +1 -1
  337. package/.next-prod/server/app/page.js +1 -1
  338. package/.next-prod/server/app/page.js.nft.json +1 -1
  339. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  340. package/.next-prod/server/app/project/page.js +1 -1
  341. package/.next-prod/server/app/project/page.js.nft.json +1 -1
  342. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  343. package/.next-prod/server/app/review/[id]/page.js +1 -1
  344. package/.next-prod/server/app/review/[id]/page.js.nft.json +1 -1
  345. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  346. package/.next-prod/server/app-paths-manifest.json +5 -4
  347. package/.next-prod/server/chunks/2493.js +20 -20
  348. package/.next-prod/server/chunks/6548.js +1 -1
  349. package/.next-prod/server/chunks/7438.js +14 -14
  350. package/.next-prod/server/chunks/{3354.js → 8131.js} +2 -2
  351. package/.next-prod/server/chunks/9830.js +1 -1
  352. package/.next-prod/server/middleware-build-manifest.js +1 -1
  353. package/.next-prod/server/pages/404.html +2 -2
  354. package/.next-prod/server/pages/500.html +1 -1
  355. package/.next-prod/server/server-reference-manifest.json +1 -1
  356. package/.next-prod/static/chunks/{88707-2ab6211efb1fae85.js → 15546-54f06dcff501835d.js} +2 -2
  357. package/.next-prod/static/chunks/89656-1b5bae337f6b6892.js +34 -0
  358. package/.next-prod/static/chunks/95313-96a541e7ce6f76c4.js +17 -0
  359. package/.next-prod/static/chunks/99092-7b5fa4560a398020.js +716 -0
  360. package/.next-prod/static/chunks/{50015-b81552adf20a6a33.js → 99365-c697e983b9728d08.js} +2 -2
  361. package/.next-prod/static/chunks/app/_global-error/page-6ac899b2cd280c12.js +1 -0
  362. package/.next-prod/static/chunks/app/api/agent/test/route-6ac899b2cd280c12.js +1 -0
  363. package/.next-prod/static/chunks/app/api/bash/route-6ac899b2cd280c12.js +1 -0
  364. package/.next-prod/static/chunks/app/api/bots/[id]/route-6ac899b2cd280c12.js +1 -0
  365. package/.next-prod/static/chunks/app/api/bots/route-6ac899b2cd280c12.js +1 -0
  366. package/.next-prod/static/chunks/app/api/chat/codex/route-6ac899b2cd280c12.js +1 -0
  367. package/.next-prod/static/chunks/app/api/chat/deepseek/route-6ac899b2cd280c12.js +1 -0
  368. package/.next-prod/static/chunks/app/api/chat/glm/route-6ac899b2cd280c12.js +1 -0
  369. package/.next-prod/static/chunks/app/api/chat/kimi/route-6ac899b2cd280c12.js +1 -0
  370. package/.next-prod/static/chunks/app/api/chat/ollama/route-6ac899b2cd280c12.js +1 -0
  371. package/.next-prod/static/chunks/app/api/chat/route-6ac899b2cd280c12.js +1 -0
  372. package/.next-prod/static/chunks/app/api/chat/stop/route-6ac899b2cd280c12.js +1 -0
  373. package/.next-prod/static/chunks/app/api/claude-stats/route-6ac899b2cd280c12.js +1 -0
  374. package/.next-prod/static/chunks/app/api/commands/route-6ac899b2cd280c12.js +1 -0
  375. package/.next-prod/static/chunks/app/api/comments/route-6ac899b2cd280c12.js +1 -0
  376. package/.next-prod/static/chunks/app/api/db/columns/route-6ac899b2cd280c12.js +1 -0
  377. package/.next-prod/static/chunks/app/api/db/connect/route-6ac899b2cd280c12.js +1 -0
  378. package/.next-prod/static/chunks/app/api/db/disconnect/route-6ac899b2cd280c12.js +1 -0
  379. package/.next-prod/static/chunks/app/api/db/export/route-6ac899b2cd280c12.js +1 -0
  380. package/.next-prod/static/chunks/app/api/db/query/route-6ac899b2cd280c12.js +1 -0
  381. package/.next-prod/static/chunks/app/api/db/schemas/route-6ac899b2cd280c12.js +1 -0
  382. package/.next-prod/static/chunks/app/api/deepseek/balance/route-6ac899b2cd280c12.js +1 -0
  383. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6ac899b2cd280c12.js +1 -0
  384. package/.next-prod/static/chunks/app/api/deepseek/models/route-6ac899b2cd280c12.js +1 -0
  385. package/.next-prod/static/chunks/app/api/dev/spans/route-6ac899b2cd280c12.js +1 -0
  386. package/.next-prod/static/chunks/app/api/extension/version/route-6ac899b2cd280c12.js +1 -0
  387. package/.next-prod/static/chunks/app/api/file/route-6ac899b2cd280c12.js +1 -0
  388. package/.next-prod/static/chunks/app/api/files/blame/route-6ac899b2cd280c12.js +1 -0
  389. package/.next-prod/static/chunks/app/api/files/clipboard/route-6ac899b2cd280c12.js +1 -0
  390. package/.next-prod/static/chunks/app/api/files/copy/route-6ac899b2cd280c12.js +1 -0
  391. package/.next-prod/static/chunks/app/api/files/delete/route-6ac899b2cd280c12.js +1 -0
  392. package/.next-prod/static/chunks/app/api/files/expanded/route-6ac899b2cd280c12.js +1 -0
  393. package/.next-prod/static/chunks/app/api/files/index/route-6ac899b2cd280c12.js +1 -0
  394. package/.next-prod/static/chunks/app/api/files/init/route-6ac899b2cd280c12.js +1 -0
  395. package/.next-prod/static/chunks/app/api/files/paste/route-6ac899b2cd280c12.js +1 -0
  396. package/.next-prod/static/chunks/app/api/files/read/route-6ac899b2cd280c12.js +1 -0
  397. package/.next-prod/static/chunks/app/api/files/readdir/route-6ac899b2cd280c12.js +1 -0
  398. package/.next-prod/static/chunks/app/api/files/recent/route-6ac899b2cd280c12.js +1 -0
  399. package/.next-prod/static/chunks/app/api/files/save/route-6ac899b2cd280c12.js +1 -0
  400. package/.next-prod/static/chunks/app/api/files/search/route-6ac899b2cd280c12.js +1 -0
  401. package/.next-prod/static/chunks/app/api/files/stat/route-6ac899b2cd280c12.js +1 -0
  402. package/.next-prod/static/chunks/app/api/files/text/route-6ac899b2cd280c12.js +1 -0
  403. package/.next-prod/static/chunks/app/api/git/blob/route-6ac899b2cd280c12.js +1 -0
  404. package/.next-prod/static/chunks/app/api/git/branch-diff/route-6ac899b2cd280c12.js +1 -0
  405. package/.next-prod/static/chunks/app/api/git/branches/route-6ac899b2cd280c12.js +1 -0
  406. package/.next-prod/static/chunks/app/api/git/commit-diff/route-6ac899b2cd280c12.js +1 -0
  407. package/.next-prod/static/chunks/app/api/git/commits/route-6ac899b2cd280c12.js +1 -0
  408. package/.next-prod/static/chunks/app/api/git/current-branch/route-6ac899b2cd280c12.js +1 -0
  409. package/.next-prod/static/chunks/app/api/git/diff/route-6ac899b2cd280c12.js +1 -0
  410. package/.next-prod/static/chunks/app/api/git/discard/route-6ac899b2cd280c12.js +1 -0
  411. package/.next-prod/static/chunks/app/api/git/stage/route-6ac899b2cd280c12.js +1 -0
  412. package/.next-prod/static/chunks/app/api/git/status/route-6ac899b2cd280c12.js +1 -0
  413. package/.next-prod/static/chunks/app/api/git/unstage/route-6ac899b2cd280c12.js +1 -0
  414. package/.next-prod/static/chunks/app/api/git/worktree/route-6ac899b2cd280c12.js +1 -0
  415. package/.next-prod/static/chunks/app/api/glm/credentials/route-6ac899b2cd280c12.js +1 -0
  416. package/.next-prod/static/chunks/app/api/glm/models/route-6ac899b2cd280c12.js +1 -0
  417. package/.next-prod/static/chunks/app/api/glm/usage/route-6ac899b2cd280c12.js +1 -0
  418. package/.next-prod/static/chunks/app/api/global-state/route-6ac899b2cd280c12.js +1 -0
  419. package/.next-prod/static/chunks/app/api/health/route-6ac899b2cd280c12.js +1 -0
  420. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-6ac899b2cd280c12.js +1 -0
  421. package/.next-prod/static/chunks/app/api/html-apps/route-6ac899b2cd280c12.js +1 -0
  422. package/.next-prod/static/chunks/app/api/instructions/config/route-6ac899b2cd280c12.js +1 -0
  423. package/.next-prod/static/chunks/app/api/kimi/credentials/route-6ac899b2cd280c12.js +1 -0
  424. package/.next-prod/static/chunks/app/api/kimi/models/route-6ac899b2cd280c12.js +1 -0
  425. package/.next-prod/static/chunks/app/api/kimi/usage/route-6ac899b2cd280c12.js +1 -0
  426. package/.next-prod/static/chunks/app/api/lsp/definition/route-6ac899b2cd280c12.js +1 -0
  427. package/.next-prod/static/chunks/app/api/lsp/hover/route-6ac899b2cd280c12.js +1 -0
  428. package/.next-prod/static/chunks/app/api/lsp/references/route-6ac899b2cd280c12.js +1 -0
  429. package/.next-prod/static/chunks/app/api/lsp/status/route-6ac899b2cd280c12.js +1 -0
  430. package/.next-prod/static/chunks/app/api/lsp/warmup/route-6ac899b2cd280c12.js +1 -0
  431. package/.next-prod/static/chunks/app/api/mysql/columns/route-6ac899b2cd280c12.js +1 -0
  432. package/.next-prod/static/chunks/app/api/mysql/connect/route-6ac899b2cd280c12.js +1 -0
  433. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6ac899b2cd280c12.js +1 -0
  434. package/.next-prod/static/chunks/app/api/mysql/export/route-6ac899b2cd280c12.js +1 -0
  435. package/.next-prod/static/chunks/app/api/mysql/query/route-6ac899b2cd280c12.js +1 -0
  436. package/.next-prod/static/chunks/app/api/mysql/schemas/route-6ac899b2cd280c12.js +1 -0
  437. package/.next-prod/static/chunks/app/api/neo4j/connect/route-6ac899b2cd280c12.js +1 -0
  438. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6ac899b2cd280c12.js +1 -0
  439. package/.next-prod/static/chunks/app/api/neo4j/query/route-6ac899b2cd280c12.js +1 -0
  440. package/.next-prod/static/chunks/app/api/neo4j/schema/route-6ac899b2cd280c12.js +1 -0
  441. package/.next-prod/static/chunks/app/api/note/route-6ac899b2cd280c12.js +1 -0
  442. package/.next-prod/static/chunks/app/api/ollama/config/route-6ac899b2cd280c12.js +1 -0
  443. package/.next-prod/static/chunks/app/api/ollama/default-model/route-6ac899b2cd280c12.js +1 -0
  444. package/.next-prod/static/chunks/app/api/ollama/models/route-6ac899b2cd280c12.js +1 -0
  445. package/.next-prod/static/chunks/app/api/ollama/start/route-6ac899b2cd280c12.js +1 -0
  446. package/.next-prod/static/chunks/app/api/open-cursor/route-6ac899b2cd280c12.js +1 -0
  447. package/.next-prod/static/chunks/app/api/open-vscode/route-6ac899b2cd280c12.js +1 -0
  448. package/.next-prod/static/chunks/app/api/pick-folder/route-6ac899b2cd280c12.js +1 -0
  449. package/.next-prod/static/chunks/app/api/pinned-sessions/route-6ac899b2cd280c12.js +1 -0
  450. package/.next-prod/static/chunks/app/api/project-settings/route-6ac899b2cd280c12.js +1 -0
  451. package/.next-prod/static/chunks/app/api/project-state/route-6ac899b2cd280c12.js +1 -0
  452. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6ac899b2cd280c12.js +1 -0
  453. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6ac899b2cd280c12.js +1 -0
  454. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6ac899b2cd280c12.js +1 -0
  455. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6ac899b2cd280c12.js +1 -0
  456. package/.next-prod/static/chunks/app/api/projectGraph/context/route-6ac899b2cd280c12.js +1 -0
  457. package/.next-prod/static/chunks/app/api/projectGraph/file/route-6ac899b2cd280c12.js +1 -0
  458. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6ac899b2cd280c12.js +1 -0
  459. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6ac899b2cd280c12.js +1 -0
  460. package/.next-prod/static/chunks/app/api/projectGraph/related/route-6ac899b2cd280c12.js +1 -0
  461. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-6ac899b2cd280c12.js +1 -0
  462. package/.next-prod/static/chunks/app/api/projectGraph/search/route-6ac899b2cd280c12.js +1 -0
  463. package/.next-prod/static/chunks/app/api/projects/route-6ac899b2cd280c12.js +1 -0
  464. package/.next-prod/static/chunks/app/api/push/public-key/route-6ac899b2cd280c12.js +1 -0
  465. package/.next-prod/static/chunks/app/api/push/subscribe/route-6ac899b2cd280c12.js +1 -0
  466. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6ac899b2cd280c12.js +1 -0
  467. package/.next-prod/static/chunks/app/api/redis/command/route-6ac899b2cd280c12.js +1 -0
  468. package/.next-prod/static/chunks/app/api/redis/connect/route-6ac899b2cd280c12.js +1 -0
  469. package/.next-prod/static/chunks/app/api/redis/delete/route-6ac899b2cd280c12.js +1 -0
  470. package/.next-prod/static/chunks/app/api/redis/disconnect/route-6ac899b2cd280c12.js +1 -0
  471. package/.next-prod/static/chunks/app/api/redis/get/route-6ac899b2cd280c12.js +1 -0
  472. package/.next-prod/static/chunks/app/api/redis/keys/route-6ac899b2cd280c12.js +1 -0
  473. package/.next-prod/static/chunks/app/api/redis/set/route-6ac899b2cd280c12.js +1 -0
  474. package/.next-prod/static/chunks/app/api/restart/route-6ac899b2cd280c12.js +1 -0
  475. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-6ac899b2cd280c12.js +1 -0
  476. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-6ac899b2cd280c12.js +1 -0
  477. package/.next-prod/static/chunks/app/api/review/[id]/route-6ac899b2cd280c12.js +1 -0
  478. package/.next-prod/static/chunks/app/api/review/identify/route-6ac899b2cd280c12.js +1 -0
  479. package/.next-prod/static/chunks/app/api/review/order/route-6ac899b2cd280c12.js +1 -0
  480. package/.next-prod/static/chunks/app/api/review/route-6ac899b2cd280c12.js +1 -0
  481. package/.next-prod/static/chunks/app/api/review/share-info/route-6ac899b2cd280c12.js +1 -0
  482. package/.next-prod/static/chunks/app/api/review/users/route-6ac899b2cd280c12.js +1 -0
  483. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6ac899b2cd280c12.js +1 -0
  484. package/.next-prod/static/chunks/app/api/services/config/route-6ac899b2cd280c12.js +1 -0
  485. package/.next-prod/static/chunks/app/api/services/scripts/route-6ac899b2cd280c12.js +1 -0
  486. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6ac899b2cd280c12.js +1 -0
  487. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6ac899b2cd280c12.js +1 -0
  488. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-6ac899b2cd280c12.js +1 -0
  489. package/.next-prod/static/chunks/app/api/session/user-messages/route-6ac899b2cd280c12.js +1 -0
  490. package/.next-prod/static/chunks/app/api/session-by-path/route-6ac899b2cd280c12.js +1 -0
  491. package/.next-prod/static/chunks/app/api/sessions/delegate/route-6ac899b2cd280c12.js +1 -0
  492. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6ac899b2cd280c12.js +1 -0
  493. package/.next-prod/static/chunks/app/api/sessions/projects/route-6ac899b2cd280c12.js +1 -0
  494. package/.next-prod/static/chunks/app/api/sessions/search/route-6ac899b2cd280c12.js +1 -0
  495. package/.next-prod/static/chunks/app/api/sessions/status/route-6ac899b2cd280c12.js +1 -0
  496. package/.next-prod/static/chunks/app/api/settings/route-6ac899b2cd280c12.js +1 -0
  497. package/.next-prod/static/chunks/app/api/shutdown/route-6ac899b2cd280c12.js +1 -0
  498. package/.next-prod/static/chunks/app/api/skills/[id]/route-6ac899b2cd280c12.js +1 -0
  499. package/.next-prod/static/chunks/app/api/skills/content/route-6ac899b2cd280c12.js +1 -0
  500. package/.next-prod/static/chunks/app/api/skills/route-6ac899b2cd280c12.js +1 -0
  501. package/.next-prod/static/chunks/app/api/snapshots/blob/route-6ac899b2cd280c12.js +1 -0
  502. package/.next-prod/static/chunks/app/api/snapshots/diff/route-6ac899b2cd280c12.js +1 -0
  503. package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-6ac899b2cd280c12.js +1 -0
  504. package/.next-prod/static/chunks/app/api/snapshots/route-6ac899b2cd280c12.js +1 -0
  505. package/.next-prod/static/chunks/app/api/terminal/aliases/route-6ac899b2cd280c12.js +1 -0
  506. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6ac899b2cd280c12.js +1 -0
  507. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6ac899b2cd280c12.js +1 -0
  508. package/.next-prod/static/chunks/app/api/terminal/env/route-6ac899b2cd280c12.js +1 -0
  509. package/.next-prod/static/chunks/app/api/terminal/history/route-6ac899b2cd280c12.js +1 -0
  510. package/.next-prod/static/chunks/app/api/update/route-6ac899b2cd280c12.js +1 -0
  511. package/.next-prod/static/chunks/app/api/update-state/route-6ac899b2cd280c12.js +1 -0
  512. package/.next-prod/static/chunks/app/api/version/route-6ac899b2cd280c12.js +1 -0
  513. package/.next-prod/static/chunks/app/apps/[...path]/route-6ac899b2cd280c12.js +1 -0
  514. package/.next-prod/static/chunks/app/{layout-347ca1b3228d5b23.js → layout-f3f9426dccb507b2.js} +1 -1
  515. package/.next-prod/static/chunks/app/m/page-ba0be89e67f08b6d.js +1 -0
  516. package/.next-prod/static/chunks/app/manifest.webmanifest/route-6ac899b2cd280c12.js +1 -0
  517. package/.next-prod/static/chunks/app/{page-2ade7ecd21636624.js → page-d97e5df9486f39cb.js} +1 -1
  518. package/.next-prod/static/chunks/app/project/{page-2ade7ecd21636624.js → page-d97e5df9486f39cb.js} +1 -1
  519. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6ac899b2cd280c12.js +1 -0
  520. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6ac899b2cd280c12.js +1 -0
  521. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6ac899b2cd280c12.js +1 -0
  522. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6ac899b2cd280c12.js +1 -0
  523. package/.next-prod/static/css/e6181fb6c73884b4.css +1 -0
  524. package/.next-prod/static/yEJ9Z5Bjv9ti4WeYINfCs/_buildManifest.js +1 -0
  525. package/.next-prod/trace +15 -15
  526. package/.next-prod/trace-build +1 -1
  527. package/.next-prod/types/app/api/{sessions → ollama/default-model}/route.ts +3 -3
  528. package/.next-prod/types/app/api/snapshots/range-diff/route.ts +353 -0
  529. package/.next-prod/types/routes.d.ts +3 -2
  530. package/.next-prod/types/validator.ts +18 -9
  531. package/README.md +2 -2
  532. package/README.zh.md +2 -2
  533. package/bin/cock-codegraph.mjs +58 -58
  534. package/bin/cock-connection.mjs +1 -1
  535. package/bin/cock-terminal.mjs +17 -17
  536. package/bin/cockpit-dev.mjs +3 -4
  537. package/bin/cockpit.mjs +243 -9
  538. package/bin/setup-dev.mjs +3 -4
  539. package/dist/{chunk-QY2K7YIF.mjs → chunk-5ZXPIG4Z.mjs} +1 -1
  540. package/dist/{chunk-BCWVTDEZ.mjs → chunk-SGVT4QFB.mjs} +370 -93
  541. package/dist/httpApi.mjs +2 -2
  542. package/dist/scheduledTasks.mjs +71 -14
  543. package/dist/wsServer.mjs +2 -2
  544. package/package.json +3 -4
  545. package/skills/bot/SKILL.md +3 -3
  546. package/skills/bot-run/SKILL.md +54 -117
  547. package/skills/bot-run/followup.md +38 -0
  548. package/skills/bot-run/wait.md +76 -0
  549. package/skills/bot-turn/SKILL.md +7 -0
  550. package/skills/cc/SKILL.md +0 -1
  551. package/skills/dl/SKILL.md +4 -1
  552. package/.next-prod/server/app/api/sessions/route.js +0 -1
  553. package/.next-prod/server/app/api/sessions/route.js.nft.json +0 -1
  554. package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +0 -1
  555. package/.next-prod/static/O8neHUIr3dQhe1jcOUsQ8/_buildManifest.js +0 -1
  556. package/.next-prod/static/chunks/72539-049ac78fc767d177.js +0 -17
  557. package/.next-prod/static/chunks/89656-d9dd3a8559041236.js +0 -34
  558. package/.next-prod/static/chunks/99092-5b836813f4b1d4b3.js +0 -716
  559. package/.next-prod/static/chunks/app/_global-error/page-e2f146f38bb4df42.js +0 -1
  560. package/.next-prod/static/chunks/app/api/agent/test/route-e2f146f38bb4df42.js +0 -1
  561. package/.next-prod/static/chunks/app/api/bash/route-e2f146f38bb4df42.js +0 -1
  562. package/.next-prod/static/chunks/app/api/bots/[id]/route-e2f146f38bb4df42.js +0 -1
  563. package/.next-prod/static/chunks/app/api/bots/route-e2f146f38bb4df42.js +0 -1
  564. package/.next-prod/static/chunks/app/api/chat/codex/route-e2f146f38bb4df42.js +0 -1
  565. package/.next-prod/static/chunks/app/api/chat/deepseek/route-e2f146f38bb4df42.js +0 -1
  566. package/.next-prod/static/chunks/app/api/chat/glm/route-e2f146f38bb4df42.js +0 -1
  567. package/.next-prod/static/chunks/app/api/chat/kimi/route-e2f146f38bb4df42.js +0 -1
  568. package/.next-prod/static/chunks/app/api/chat/ollama/route-e2f146f38bb4df42.js +0 -1
  569. package/.next-prod/static/chunks/app/api/chat/route-e2f146f38bb4df42.js +0 -1
  570. package/.next-prod/static/chunks/app/api/chat/stop/route-e2f146f38bb4df42.js +0 -1
  571. package/.next-prod/static/chunks/app/api/claude-stats/route-e2f146f38bb4df42.js +0 -1
  572. package/.next-prod/static/chunks/app/api/commands/route-e2f146f38bb4df42.js +0 -1
  573. package/.next-prod/static/chunks/app/api/comments/route-e2f146f38bb4df42.js +0 -1
  574. package/.next-prod/static/chunks/app/api/db/columns/route-e2f146f38bb4df42.js +0 -1
  575. package/.next-prod/static/chunks/app/api/db/connect/route-e2f146f38bb4df42.js +0 -1
  576. package/.next-prod/static/chunks/app/api/db/disconnect/route-e2f146f38bb4df42.js +0 -1
  577. package/.next-prod/static/chunks/app/api/db/export/route-e2f146f38bb4df42.js +0 -1
  578. package/.next-prod/static/chunks/app/api/db/query/route-e2f146f38bb4df42.js +0 -1
  579. package/.next-prod/static/chunks/app/api/db/schemas/route-e2f146f38bb4df42.js +0 -1
  580. package/.next-prod/static/chunks/app/api/deepseek/balance/route-e2f146f38bb4df42.js +0 -1
  581. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-e2f146f38bb4df42.js +0 -1
  582. package/.next-prod/static/chunks/app/api/deepseek/models/route-e2f146f38bb4df42.js +0 -1
  583. package/.next-prod/static/chunks/app/api/dev/spans/route-e2f146f38bb4df42.js +0 -1
  584. package/.next-prod/static/chunks/app/api/extension/version/route-e2f146f38bb4df42.js +0 -1
  585. package/.next-prod/static/chunks/app/api/file/route-e2f146f38bb4df42.js +0 -1
  586. package/.next-prod/static/chunks/app/api/files/blame/route-e2f146f38bb4df42.js +0 -1
  587. package/.next-prod/static/chunks/app/api/files/clipboard/route-e2f146f38bb4df42.js +0 -1
  588. package/.next-prod/static/chunks/app/api/files/copy/route-e2f146f38bb4df42.js +0 -1
  589. package/.next-prod/static/chunks/app/api/files/delete/route-e2f146f38bb4df42.js +0 -1
  590. package/.next-prod/static/chunks/app/api/files/expanded/route-e2f146f38bb4df42.js +0 -1
  591. package/.next-prod/static/chunks/app/api/files/index/route-e2f146f38bb4df42.js +0 -1
  592. package/.next-prod/static/chunks/app/api/files/init/route-e2f146f38bb4df42.js +0 -1
  593. package/.next-prod/static/chunks/app/api/files/paste/route-e2f146f38bb4df42.js +0 -1
  594. package/.next-prod/static/chunks/app/api/files/read/route-e2f146f38bb4df42.js +0 -1
  595. package/.next-prod/static/chunks/app/api/files/readdir/route-e2f146f38bb4df42.js +0 -1
  596. package/.next-prod/static/chunks/app/api/files/recent/route-e2f146f38bb4df42.js +0 -1
  597. package/.next-prod/static/chunks/app/api/files/save/route-e2f146f38bb4df42.js +0 -1
  598. package/.next-prod/static/chunks/app/api/files/search/route-e2f146f38bb4df42.js +0 -1
  599. package/.next-prod/static/chunks/app/api/files/stat/route-e2f146f38bb4df42.js +0 -1
  600. package/.next-prod/static/chunks/app/api/files/text/route-e2f146f38bb4df42.js +0 -1
  601. package/.next-prod/static/chunks/app/api/git/blob/route-e2f146f38bb4df42.js +0 -1
  602. package/.next-prod/static/chunks/app/api/git/branch-diff/route-e2f146f38bb4df42.js +0 -1
  603. package/.next-prod/static/chunks/app/api/git/branches/route-e2f146f38bb4df42.js +0 -1
  604. package/.next-prod/static/chunks/app/api/git/commit-diff/route-e2f146f38bb4df42.js +0 -1
  605. package/.next-prod/static/chunks/app/api/git/commits/route-e2f146f38bb4df42.js +0 -1
  606. package/.next-prod/static/chunks/app/api/git/current-branch/route-e2f146f38bb4df42.js +0 -1
  607. package/.next-prod/static/chunks/app/api/git/diff/route-e2f146f38bb4df42.js +0 -1
  608. package/.next-prod/static/chunks/app/api/git/discard/route-e2f146f38bb4df42.js +0 -1
  609. package/.next-prod/static/chunks/app/api/git/stage/route-e2f146f38bb4df42.js +0 -1
  610. package/.next-prod/static/chunks/app/api/git/status/route-e2f146f38bb4df42.js +0 -1
  611. package/.next-prod/static/chunks/app/api/git/unstage/route-e2f146f38bb4df42.js +0 -1
  612. package/.next-prod/static/chunks/app/api/git/worktree/route-e2f146f38bb4df42.js +0 -1
  613. package/.next-prod/static/chunks/app/api/glm/credentials/route-e2f146f38bb4df42.js +0 -1
  614. package/.next-prod/static/chunks/app/api/glm/models/route-e2f146f38bb4df42.js +0 -1
  615. package/.next-prod/static/chunks/app/api/glm/usage/route-e2f146f38bb4df42.js +0 -1
  616. package/.next-prod/static/chunks/app/api/global-state/route-e2f146f38bb4df42.js +0 -1
  617. package/.next-prod/static/chunks/app/api/health/route-e2f146f38bb4df42.js +0 -1
  618. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-e2f146f38bb4df42.js +0 -1
  619. package/.next-prod/static/chunks/app/api/html-apps/route-e2f146f38bb4df42.js +0 -1
  620. package/.next-prod/static/chunks/app/api/instructions/config/route-e2f146f38bb4df42.js +0 -1
  621. package/.next-prod/static/chunks/app/api/kimi/credentials/route-e2f146f38bb4df42.js +0 -1
  622. package/.next-prod/static/chunks/app/api/kimi/models/route-e2f146f38bb4df42.js +0 -1
  623. package/.next-prod/static/chunks/app/api/kimi/usage/route-e2f146f38bb4df42.js +0 -1
  624. package/.next-prod/static/chunks/app/api/lsp/definition/route-e2f146f38bb4df42.js +0 -1
  625. package/.next-prod/static/chunks/app/api/lsp/hover/route-e2f146f38bb4df42.js +0 -1
  626. package/.next-prod/static/chunks/app/api/lsp/references/route-e2f146f38bb4df42.js +0 -1
  627. package/.next-prod/static/chunks/app/api/lsp/status/route-e2f146f38bb4df42.js +0 -1
  628. package/.next-prod/static/chunks/app/api/lsp/warmup/route-e2f146f38bb4df42.js +0 -1
  629. package/.next-prod/static/chunks/app/api/mysql/columns/route-e2f146f38bb4df42.js +0 -1
  630. package/.next-prod/static/chunks/app/api/mysql/connect/route-e2f146f38bb4df42.js +0 -1
  631. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-e2f146f38bb4df42.js +0 -1
  632. package/.next-prod/static/chunks/app/api/mysql/export/route-e2f146f38bb4df42.js +0 -1
  633. package/.next-prod/static/chunks/app/api/mysql/query/route-e2f146f38bb4df42.js +0 -1
  634. package/.next-prod/static/chunks/app/api/mysql/schemas/route-e2f146f38bb4df42.js +0 -1
  635. package/.next-prod/static/chunks/app/api/neo4j/connect/route-e2f146f38bb4df42.js +0 -1
  636. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-e2f146f38bb4df42.js +0 -1
  637. package/.next-prod/static/chunks/app/api/neo4j/query/route-e2f146f38bb4df42.js +0 -1
  638. package/.next-prod/static/chunks/app/api/neo4j/schema/route-e2f146f38bb4df42.js +0 -1
  639. package/.next-prod/static/chunks/app/api/note/route-e2f146f38bb4df42.js +0 -1
  640. package/.next-prod/static/chunks/app/api/ollama/config/route-e2f146f38bb4df42.js +0 -1
  641. package/.next-prod/static/chunks/app/api/ollama/models/route-e2f146f38bb4df42.js +0 -1
  642. package/.next-prod/static/chunks/app/api/ollama/start/route-e2f146f38bb4df42.js +0 -1
  643. package/.next-prod/static/chunks/app/api/open-cursor/route-e2f146f38bb4df42.js +0 -1
  644. package/.next-prod/static/chunks/app/api/open-vscode/route-e2f146f38bb4df42.js +0 -1
  645. package/.next-prod/static/chunks/app/api/pick-folder/route-e2f146f38bb4df42.js +0 -1
  646. package/.next-prod/static/chunks/app/api/pinned-sessions/route-e2f146f38bb4df42.js +0 -1
  647. package/.next-prod/static/chunks/app/api/project-settings/route-e2f146f38bb4df42.js +0 -1
  648. package/.next-prod/static/chunks/app/api/project-state/route-e2f146f38bb4df42.js +0 -1
  649. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-e2f146f38bb4df42.js +0 -1
  650. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-e2f146f38bb4df42.js +0 -1
  651. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-e2f146f38bb4df42.js +0 -1
  652. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-e2f146f38bb4df42.js +0 -1
  653. package/.next-prod/static/chunks/app/api/projectGraph/context/route-e2f146f38bb4df42.js +0 -1
  654. package/.next-prod/static/chunks/app/api/projectGraph/file/route-e2f146f38bb4df42.js +0 -1
  655. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-e2f146f38bb4df42.js +0 -1
  656. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-e2f146f38bb4df42.js +0 -1
  657. package/.next-prod/static/chunks/app/api/projectGraph/related/route-e2f146f38bb4df42.js +0 -1
  658. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-e2f146f38bb4df42.js +0 -1
  659. package/.next-prod/static/chunks/app/api/projectGraph/search/route-e2f146f38bb4df42.js +0 -1
  660. package/.next-prod/static/chunks/app/api/projects/route-e2f146f38bb4df42.js +0 -1
  661. package/.next-prod/static/chunks/app/api/push/public-key/route-e2f146f38bb4df42.js +0 -1
  662. package/.next-prod/static/chunks/app/api/push/subscribe/route-e2f146f38bb4df42.js +0 -1
  663. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-e2f146f38bb4df42.js +0 -1
  664. package/.next-prod/static/chunks/app/api/redis/command/route-e2f146f38bb4df42.js +0 -1
  665. package/.next-prod/static/chunks/app/api/redis/connect/route-e2f146f38bb4df42.js +0 -1
  666. package/.next-prod/static/chunks/app/api/redis/delete/route-e2f146f38bb4df42.js +0 -1
  667. package/.next-prod/static/chunks/app/api/redis/disconnect/route-e2f146f38bb4df42.js +0 -1
  668. package/.next-prod/static/chunks/app/api/redis/get/route-e2f146f38bb4df42.js +0 -1
  669. package/.next-prod/static/chunks/app/api/redis/keys/route-e2f146f38bb4df42.js +0 -1
  670. package/.next-prod/static/chunks/app/api/redis/set/route-e2f146f38bb4df42.js +0 -1
  671. package/.next-prod/static/chunks/app/api/restart/route-e2f146f38bb4df42.js +0 -1
  672. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-e2f146f38bb4df42.js +0 -1
  673. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-e2f146f38bb4df42.js +0 -1
  674. package/.next-prod/static/chunks/app/api/review/[id]/route-e2f146f38bb4df42.js +0 -1
  675. package/.next-prod/static/chunks/app/api/review/identify/route-e2f146f38bb4df42.js +0 -1
  676. package/.next-prod/static/chunks/app/api/review/order/route-e2f146f38bb4df42.js +0 -1
  677. package/.next-prod/static/chunks/app/api/review/route-e2f146f38bb4df42.js +0 -1
  678. package/.next-prod/static/chunks/app/api/review/share-info/route-e2f146f38bb4df42.js +0 -1
  679. package/.next-prod/static/chunks/app/api/review/users/route-e2f146f38bb4df42.js +0 -1
  680. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-e2f146f38bb4df42.js +0 -1
  681. package/.next-prod/static/chunks/app/api/services/config/route-e2f146f38bb4df42.js +0 -1
  682. package/.next-prod/static/chunks/app/api/services/scripts/route-e2f146f38bb4df42.js +0 -1
  683. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-e2f146f38bb4df42.js +0 -1
  684. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-e2f146f38bb4df42.js +0 -1
  685. package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-e2f146f38bb4df42.js +0 -1
  686. package/.next-prod/static/chunks/app/api/session/user-messages/route-e2f146f38bb4df42.js +0 -1
  687. package/.next-prod/static/chunks/app/api/session-by-path/route-e2f146f38bb4df42.js +0 -1
  688. package/.next-prod/static/chunks/app/api/sessions/delegate/route-e2f146f38bb4df42.js +0 -1
  689. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-e2f146f38bb4df42.js +0 -1
  690. package/.next-prod/static/chunks/app/api/sessions/projects/route-e2f146f38bb4df42.js +0 -1
  691. package/.next-prod/static/chunks/app/api/sessions/route-e2f146f38bb4df42.js +0 -1
  692. package/.next-prod/static/chunks/app/api/sessions/search/route-e2f146f38bb4df42.js +0 -1
  693. package/.next-prod/static/chunks/app/api/sessions/status/route-e2f146f38bb4df42.js +0 -1
  694. package/.next-prod/static/chunks/app/api/settings/route-e2f146f38bb4df42.js +0 -1
  695. package/.next-prod/static/chunks/app/api/shutdown/route-e2f146f38bb4df42.js +0 -1
  696. package/.next-prod/static/chunks/app/api/skills/[id]/route-e2f146f38bb4df42.js +0 -1
  697. package/.next-prod/static/chunks/app/api/skills/content/route-e2f146f38bb4df42.js +0 -1
  698. package/.next-prod/static/chunks/app/api/skills/route-e2f146f38bb4df42.js +0 -1
  699. package/.next-prod/static/chunks/app/api/snapshots/blob/route-e2f146f38bb4df42.js +0 -1
  700. package/.next-prod/static/chunks/app/api/snapshots/diff/route-e2f146f38bb4df42.js +0 -1
  701. package/.next-prod/static/chunks/app/api/snapshots/route-e2f146f38bb4df42.js +0 -1
  702. package/.next-prod/static/chunks/app/api/terminal/aliases/route-e2f146f38bb4df42.js +0 -1
  703. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-e2f146f38bb4df42.js +0 -1
  704. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-e2f146f38bb4df42.js +0 -1
  705. package/.next-prod/static/chunks/app/api/terminal/env/route-e2f146f38bb4df42.js +0 -1
  706. package/.next-prod/static/chunks/app/api/terminal/history/route-e2f146f38bb4df42.js +0 -1
  707. package/.next-prod/static/chunks/app/api/update/route-e2f146f38bb4df42.js +0 -1
  708. package/.next-prod/static/chunks/app/api/update-state/route-e2f146f38bb4df42.js +0 -1
  709. package/.next-prod/static/chunks/app/api/version/route-e2f146f38bb4df42.js +0 -1
  710. package/.next-prod/static/chunks/app/apps/[...path]/route-e2f146f38bb4df42.js +0 -1
  711. package/.next-prod/static/chunks/app/m/page-8f4f88b0d67c4181.js +0 -1
  712. package/.next-prod/static/chunks/app/manifest.webmanifest/route-e2f146f38bb4df42.js +0 -1
  713. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-e2f146f38bb4df42.js +0 -1
  714. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-e2f146f38bb4df42.js +0 -1
  715. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-e2f146f38bb4df42.js +0 -1
  716. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-e2f146f38bb4df42.js +0 -1
  717. package/.next-prod/static/css/7a02a222d1299650.css +0 -1
  718. package/bin/cock.mjs +0 -239
  719. /package/.next-prod/static/{O8neHUIr3dQhe1jcOUsQ8 → yEJ9Z5Bjv9ti4WeYINfCs}/_ssgManifest.js +0 -0
package/dist/httpApi.mjs CHANGED
@@ -27,10 +27,10 @@ import {
27
27
  unregisterBrowser,
28
28
  unregisterTerminal,
29
29
  writeStdinToCommand
30
- } from "./chunk-QY2K7YIF.mjs";
30
+ } from "./chunk-5ZXPIG4Z.mjs";
31
31
  import {
32
32
  getTerminalHistoryPath
33
- } from "./chunk-BCWVTDEZ.mjs";
33
+ } from "./chunk-SGVT4QFB.mjs";
34
34
  import "./chunk-7P6ASYW6.mjs";
35
35
 
36
36
  // src/lib/httpApi.ts
@@ -22,7 +22,7 @@ import {
22
22
  updateGlobalState,
23
23
  withFileLock,
24
24
  writeJsonFile
25
- } from "./chunk-BCWVTDEZ.mjs";
25
+ } from "./chunk-SGVT4QFB.mjs";
26
26
  import "./chunk-7P6ASYW6.mjs";
27
27
 
28
28
  // packages/feature/agent/src/server/scheduledTasks.ts
@@ -456,6 +456,10 @@ var en_default = {
456
456
  compareMode: "Compare",
457
457
  compareModeOff: "Close branch comparison",
458
458
  compareModeOn: "Compare with selected branch",
459
+ compareScopeHead: "HEAD",
460
+ compareScopeWorktree: "Worktree",
461
+ compareScopeHeadHint: "Compare committed work only",
462
+ compareScopeWorktreeHint: "Include uncommitted changes (staged / unstaged / untracked)",
459
463
  createFile: "New File",
460
464
  createFileIn: "New File (in {{path}}/)",
461
465
  fileName: "File name...",
@@ -480,6 +484,8 @@ var en_default = {
480
484
  loadingDiff: "Loading diff...",
481
485
  noDiffFiles: "No diff files",
482
486
  nFilesChanged: "{{count}} files changed (vs {{branch}})",
487
+ nFilesChangedWorktree: "{{count}} files changed (vs {{branch}}, incl. uncommitted)",
488
+ noDiffFilesHeadHint: "Nothing committed on this branch yet \u2014 switch to Worktree to see uncommitted changes",
483
489
  loadingCommits: "Loading commits...",
484
490
  noCommits: "No commits",
485
491
  allLoaded: "All {{count}} records loaded",
@@ -625,7 +631,7 @@ var en_default = {
625
631
  deleteInstructionGroupConfirm: 'Deleting "{{name}}" also deletes the {{count}} instruction(s) inside it. Continue?',
626
632
  editGlobalInstructions: "Edit global instructions",
627
633
  editProjectInstructions: "Edit project instructions",
628
- quickInstructionsMarkdownHint: "One top-level entry per line. Add lines beginning with \u201C- \u201D after a group name for its instructions.",
634
+ quickInstructionsMarkdownHint: "One top-level entry per line. Add lines beginning with \u201C- \u201D after a group name for its instructions. Write \\n for a line break inside one instruction.",
629
635
  quickInstructionsMarkdownPlaceholder: "Continue\nDraw with text\n- Draw a login flow\n- Draw a system architecture",
630
636
  quickInstructionsMarkdownError: "Invalid format on line {{line}}.",
631
637
  savingQuickInstructions: "Saving...",
@@ -1188,6 +1194,18 @@ var en_default = {
1188
1194
  reconstructed: "reconstructed",
1189
1195
  reconstructedHint: "Rebuilt from tool-call parameters \u2014 not a disk snapshot",
1190
1196
  truncated: "Too many files \u2014 list truncated",
1197
+ aggregate: "Aggregate",
1198
+ aggregateOn: "View the net change across all calls",
1199
+ aggregateOff: "Back to per-call view",
1200
+ fileChangesAggregate: "File Changes ({{count}}) \xB7 Aggregate",
1201
+ aggregateSummary: "{{count}} files changed (across {{calls}} calls)",
1202
+ aggregateLoading: "Aggregating changes\u2026",
1203
+ aggregateEmpty: "No net change after aggregation",
1204
+ aggregateUnavailable: "No snapshots \u2014 cannot aggregate",
1205
+ aggregateFailed: "Aggregation failed",
1206
+ aggregateBaselineSkipped: "Skipped {{count}} baseline-scale call(s)",
1207
+ aggregateBaselineIncluded: "Including {{count}} baseline-scale call(s)",
1208
+ aggregateSkippedHint: "These calls touched more than {{threshold}} files \u2014 usually a branch switch or rebase rather than authored work. Click to toggle.",
1191
1209
  imageBefore: "Before",
1192
1210
  imageAfter: "After",
1193
1211
  imageAdded: "Added",
@@ -1337,7 +1355,8 @@ var en_default = {
1337
1355
  symbolMessage: "Explain {{name}} ({{path}}:{{lines}})",
1338
1356
  selectionMessage: "Explain",
1339
1357
  commitFileMessage: "Explain what git commit {{hash}} changed in {{path}}",
1340
- compareFileMessage: "Explain the git changes to {{path}} in {{base}}..HEAD",
1358
+ compareFileMessage: "Explain the git changes to {{path}} in {{base}}...HEAD",
1359
+ compareFileWorktreeMessage: "Explain the changes to {{path}} relative to {{base}}, including uncommitted work",
1341
1360
  stagedFileMessage: "Explain the git staged changes to {{path}}",
1342
1361
  unstagedFileMessage: "Explain the git working tree changes to {{path}}"
1343
1362
  },
@@ -1795,6 +1814,10 @@ var zh_default = {
1795
1814
  compareMode: "\u5BF9\u6BD4",
1796
1815
  compareModeOff: "\u5173\u95ED\u5206\u652F\u5BF9\u6BD4",
1797
1816
  compareModeOn: "\u4E0E\u9009\u5B9A\u5206\u652F\u5BF9\u6BD4",
1817
+ compareScopeHead: "HEAD",
1818
+ compareScopeWorktree: "\u5DE5\u4F5C\u533A",
1819
+ compareScopeHeadHint: "\u4EC5\u5BF9\u6BD4\u5DF2\u63D0\u4EA4\u7684\u6539\u52A8",
1820
+ compareScopeWorktreeHint: "\u5BF9\u6BD4\u5305\u542B\u672A\u63D0\u4EA4\u7684\u6539\u52A8\uFF08\u5DF2\u6682\u5B58 / \u672A\u6682\u5B58 / \u672A\u8DDF\u8E2A\uFF09",
1798
1821
  createFile: "\u65B0\u5EFA\u6587\u4EF6",
1799
1822
  createFileIn: "\u65B0\u5EFA\u6587\u4EF6 (\u5728 {{path}}/)",
1800
1823
  fileName: "\u6587\u4EF6\u540D...",
@@ -1819,6 +1842,8 @@ var zh_default = {
1819
1842
  loadingDiff: "\u52A0\u8F7D\u5BF9\u6BD4\u6587\u4EF6\u4E2D...",
1820
1843
  noDiffFiles: "\u65E0\u5DEE\u5F02\u6587\u4EF6",
1821
1844
  nFilesChanged: "{{count}} \u4E2A\u6587\u4EF6\u53D8\u66F4\uFF08vs {{branch}}\uFF09",
1845
+ nFilesChangedWorktree: "{{count}} \u4E2A\u6587\u4EF6\u53D8\u66F4\uFF08vs {{branch}}\uFF0C\u542B\u672A\u63D0\u4EA4\uFF09",
1846
+ noDiffFilesHeadHint: "\u672C\u5206\u652F\u5C1A\u65E0\u5DF2\u63D0\u4EA4\u7684\u6539\u52A8\uFF0C\u5207\u5230\u300C\u5DE5\u4F5C\u533A\u300D\u53EF\u770B\u5230\u672A\u63D0\u4EA4\u7684\u90E8\u5206",
1822
1847
  loadingCommits: "\u52A0\u8F7D\u63D0\u4EA4\u8BB0\u5F55\u4E2D...",
1823
1848
  noCommits: "\u65E0\u63D0\u4EA4\u8BB0\u5F55",
1824
1849
  allLoaded: "\u5DF2\u52A0\u8F7D\u5168\u90E8 {{count}} \u6761\u8BB0\u5F55",
@@ -1964,7 +1989,7 @@ var zh_default = {
1964
1989
  deleteInstructionGroupConfirm: "\u5220\u9664\u5206\u7EC4\u300C{{name}}\u300D\u4F1A\u540C\u65F6\u5220\u9664\u7EC4\u5185 {{count}} \u6761\u6307\u4EE4\uFF0C\u786E\u5B9A\u7EE7\u7EED\uFF1F",
1965
1990
  editGlobalInstructions: "\u7F16\u8F91\u5168\u5C40\u6307\u4EE4",
1966
1991
  editProjectInstructions: "\u7F16\u8F91\u9879\u76EE\u6307\u4EE4",
1967
- quickInstructionsMarkdownHint: "\u4E00\u7EA7\u5185\u5BB9\u6BCF\u884C\u4E00\u6761\uFF1B\u5206\u7EC4\u540D\u79F0\u540E\u7684\u300C- \u300D\u5F00\u5934\u884C\u662F\u8BE5\u5206\u7EC4\u7684\u5B50\u547D\u4EE4\u3002",
1992
+ quickInstructionsMarkdownHint: "\u4E00\u7EA7\u5185\u5BB9\u6BCF\u884C\u4E00\u6761\uFF1B\u5206\u7EC4\u540D\u79F0\u540E\u7684\u300C- \u300D\u5F00\u5934\u884C\u662F\u8BE5\u5206\u7EC4\u7684\u5B50\u547D\u4EE4\uFF1B\u5355\u6761\u6307\u4EE4\u5185\u7684\u6362\u884C\u7528 \\n \u8868\u793A\u3002",
1968
1993
  quickInstructionsMarkdownPlaceholder: "\u6309\u63A8\u8350\u5B9E\u65BD\n\u7528\u6587\u672C\u753B\u56FE\n- \u753B\u4E00\u4E2A\u767B\u5F55\u6D41\u7A0B\n- \u753B\u4E00\u4E2A\u7CFB\u7EDF\u67B6\u6784",
1969
1994
  quickInstructionsMarkdownError: "\u7B2C {{line}} \u884C\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",
1970
1995
  savingQuickInstructions: "\u4FDD\u5B58\u4E2D...",
@@ -2527,6 +2552,18 @@ var zh_default = {
2527
2552
  reconstructed: "\u53C2\u6570\u91CD\u5EFA",
2528
2553
  reconstructedHint: "\u7531\u5DE5\u5177\u8C03\u7528\u53C2\u6570\u91CD\u5EFA\uFF0C\u975E\u78C1\u76D8\u5FEB\u7167",
2529
2554
  truncated: "\u6587\u4EF6\u8FC7\u591A\uFF0C\u4EC5\u663E\u793A\u90E8\u5206",
2555
+ aggregate: "\u6C47\u603B",
2556
+ aggregateOn: "\u67E5\u770B\u5168\u90E8\u8C03\u7528\u7684\u7D2F\u8BA1\u53D8\u66F4",
2557
+ aggregateOff: "\u8FD4\u56DE\u9010\u6B21\u8C03\u7528",
2558
+ fileChangesAggregate: "\u6587\u4EF6\u53D8\u66F4 ({{count}}) \xB7 \u6C47\u603B",
2559
+ aggregateSummary: "{{count}} \u4E2A\u6587\u4EF6\u53D8\u66F4\uFF08{{calls}} \u6B21\u8C03\u7528\u7D2F\u8BA1\uFF09",
2560
+ aggregateLoading: "\u6B63\u5728\u6C47\u603B\u53D8\u66F4\u2026",
2561
+ aggregateEmpty: "\u7D2F\u8BA1\u540E\u65E0\u51C0\u53D8\u66F4",
2562
+ aggregateUnavailable: "\u65E0\u5FEB\u7167\uFF0C\u65E0\u6CD5\u6C47\u603B",
2563
+ aggregateFailed: "\u6C47\u603B\u5931\u8D25",
2564
+ aggregateBaselineSkipped: "\u5DF2\u8DF3\u8FC7 {{count}} \u6B21\u57FA\u7EBF\u7EA7\u8C03\u7528",
2565
+ aggregateBaselineIncluded: "\u5DF2\u8BA1\u5165 {{count}} \u6B21\u57FA\u7EBF\u7EA7\u8C03\u7528",
2566
+ aggregateSkippedHint: "\u8FD9\u4E9B\u8C03\u7528\u6539\u52A8\u7684\u6587\u4EF6\u6570\u8D85\u8FC7 {{threshold}}\uFF0C\u901A\u5E38\u662F\u5207\u6362\u5206\u652F / rebase \u800C\u975E\u7F16\u5199\u4EE3\u7801\u3002\u70B9\u51FB\u5207\u6362\u662F\u5426\u8BA1\u5165",
2530
2567
  imageBefore: "\u53D8\u66F4\u524D",
2531
2568
  imageAfter: "\u53D8\u66F4\u540E",
2532
2569
  imageAdded: "\u65B0\u589E",
@@ -2676,7 +2713,8 @@ var zh_default = {
2676
2713
  symbolMessage: "\u89E3\u91CA\u4E00\u4E0B {{name}} ({{path}}:{{lines}})",
2677
2714
  selectionMessage: "\u89E3\u91CA\u4E00\u4E0B",
2678
2715
  commitFileMessage: "\u89E3\u91CA\u4E00\u4E0B git commit {{hash}} \u5BF9 {{path}} \u7684\u6539\u52A8",
2679
- compareFileMessage: "\u89E3\u91CA\u4E00\u4E0B git {{base}}..HEAD \u4E2D {{path}} \u7684\u6539\u52A8",
2716
+ compareFileMessage: "\u89E3\u91CA\u4E00\u4E0B git {{base}}...HEAD \u4E2D {{path}} \u7684\u6539\u52A8",
2717
+ compareFileWorktreeMessage: "\u89E3\u91CA\u4E00\u4E0B {{path}} \u76F8\u5BF9 {{base}} \u7684\u6539\u52A8\uFF08\u542B\u672A\u63D0\u4EA4\u7684\u90E8\u5206\uFF09",
2680
2718
  stagedFileMessage: "\u89E3\u91CA\u4E00\u4E0B git \u6682\u5B58\u533A\u4E2D {{path}} \u7684\u6539\u52A8",
2681
2719
  unstagedFileMessage: "\u89E3\u91CA\u4E00\u4E0B git \u5DE5\u4F5C\u533A\u4E2D {{path}} \u7684\u6539\u52A8"
2682
2720
  },
@@ -2728,6 +2766,7 @@ var src_default = i18n;
2728
2766
 
2729
2767
  // packages/feature/agent/src/server/scheduledTasks.ts
2730
2768
  var MAX_CONSECUTIVE_FAILURES = 3;
2769
+ var RUN_DEADLINE_MS = 60 * 60 * 1e3;
2731
2770
  var MISSED_ONCE_GRACE_MS = 60 * 60 * 1e3;
2732
2771
  function buildTaskPrompt(task) {
2733
2772
  if (!task.taskFile) return task.message;
@@ -2781,6 +2820,15 @@ function getNextCronTime(cronExpr, after = /* @__PURE__ */ new Date()) {
2781
2820
  }
2782
2821
  return after.getTime() + 864e5;
2783
2822
  }
2823
+ async function rebindTaskSession(task, key) {
2824
+ const newSessionId = getRunSessionId(key);
2825
+ if (!newSessionId) return false;
2826
+ if (newSessionId === task.sessionId) return true;
2827
+ console.warn(`[ScheduledTask] task ${task.id}: rebound session ${task.sessionId} \u2192 ${newSessionId}`);
2828
+ task.sessionId = newSessionId;
2829
+ await scheduledTaskManager.persistSessionRebind(task.id, newSessionId);
2830
+ return true;
2831
+ }
2784
2832
  var dispatchEngineMessageEff = (task, engine, startFresh) => Effect_exports.tryPromise({
2785
2833
  try: async () => {
2786
2834
  const spec = getEngineSpec(engine);
@@ -2802,25 +2850,21 @@ var dispatchEngineMessageEff = (task, engine, startFresh) => Effect_exports.tryP
2802
2850
  throw new Error(`${engine} dispatch rejected (${outcome.status}): ${outcome.error}`);
2803
2851
  }
2804
2852
  const key = outcome.runKey;
2805
- const deadline = Date.now() + 30 * 60 * 1e3;
2853
+ let rebound = !startFresh;
2854
+ const deadline = Date.now() + RUN_DEADLINE_MS;
2806
2855
  while (isRunActive(key) && Date.now() < deadline) {
2856
+ if (!rebound) rebound = await rebindTaskSession(task, key);
2807
2857
  await new Promise((r) => setTimeout(r, 500));
2808
2858
  }
2859
+ if (!rebound) await rebindTaskSession(task, key);
2809
2860
  if (isRunActive(key)) {
2810
2861
  requestStop(key);
2811
- throw new Error(`${engine} run timed out after 30m (session ${task.sessionId})`);
2862
+ throw new Error(`${engine} run timed out after ${RUN_DEADLINE_MS / 6e4}m (session ${task.sessionId})`);
2812
2863
  }
2813
2864
  const snap = getRunSnapshot(key);
2814
2865
  if (!snap || snap.status === "error") {
2815
2866
  throw new Error(`${engine} run failed (session ${task.sessionId})`);
2816
2867
  }
2817
- if (startFresh) {
2818
- const newSessionId = getRunSessionId(key);
2819
- if (newSessionId && newSessionId !== task.sessionId) {
2820
- console.warn(`[ScheduledTask] task ${task.id}: rebound session ${task.sessionId} \u2192 ${newSessionId}`);
2821
- task.sessionId = newSessionId;
2822
- }
2823
- }
2824
2868
  return true;
2825
2869
  },
2826
2870
  catch: (cause) => new AgentError({
@@ -3108,6 +3152,19 @@ var ScheduledTaskManager = class {
3108
3152
  this.firing.delete(id);
3109
3153
  }
3110
3154
  }
3155
+ /**
3156
+ * Persist a mid-run session rebind (see rebindTaskSession) without waiting for the run
3157
+ * to end. The in-memory entry and the `task` object the dispatcher mutated are the same
3158
+ * reference in the normal path; the assignment here is what makes this correct for any
3159
+ * other caller too.
3160
+ */
3161
+ async persistSessionRebind(id, sessionId) {
3162
+ const t = this.tasks.find((x) => x.id === id);
3163
+ if (!t) return;
3164
+ t.sessionId = sessionId;
3165
+ await this.saveToDisk();
3166
+ this.onTaskFired?.(t);
3167
+ }
3111
3168
  /**
3112
3169
  * Mark a task as read.
3113
3170
  *
package/dist/wsServer.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  resolvePendingRequest,
14
14
  unregisterBrowser,
15
15
  writeStdinToCommand
16
- } from "./chunk-QY2K7YIF.mjs";
16
+ } from "./chunk-5ZXPIG4Z.mjs";
17
17
  import {
18
18
  Effect_exports,
19
19
  FSError,
@@ -33,7 +33,7 @@ import {
33
33
  recoverStashedCodexRollouts,
34
34
  recoverStashedTranscripts,
35
35
  sanitizedSpawnEnv
36
- } from "./chunk-BCWVTDEZ.mjs";
36
+ } from "./chunk-SGVT4QFB.mjs";
37
37
  import {
38
38
  registerWatcherSubscriber,
39
39
  subscribeBuildProgress
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surething/cockpit",
3
- "version": "1.0.276",
3
+ "version": "1.0.277",
4
4
  "description": "OpenCockpit is the open-source Claude Code GUI — an IDE-like workbench for parallel AI coding. Drive Claude (default), Codex, DeepSeek, Kimi, or local Ollama in tabs. Terminal, browser & DB bubbles, code review. Self-host on a shared dev box — a seat for every teammate. Local-first, MIT.",
5
5
  "author": "Robert",
6
6
  "license": "MIT",
@@ -61,7 +61,6 @@
61
61
  ],
62
62
  "bin": {
63
63
  "cockpit": "./bin/cockpit.mjs",
64
- "cock": "./bin/cock.mjs",
65
64
  "cockpit-dev": "./bin/cockpit-dev.mjs"
66
65
  },
67
66
  "files": [
@@ -105,9 +104,9 @@
105
104
  },
106
105
  "dependencies": {
107
106
  "@ai-sdk/openai": "^3.0.52",
108
- "@anthropic-ai/claude-agent-sdk": "0.3.268",
107
+ "@anthropic-ai/claude-agent-sdk": "0.3.278",
109
108
  "@dagrejs/dagre": "^3.0.0",
110
- "@openai/codex": "0.154.0",
109
+ "@openai/codex": "0.155.1",
111
110
  "@tanstack/react-virtual": "^3.13.18",
112
111
  "@tiptap/extension-link": "^3.19.0",
113
112
  "@tiptap/extension-placeholder": "^3.19.0",
@@ -131,9 +131,9 @@ not have it, say so rather than inventing a protocol — especially the write lo
131
131
 
132
132
  ## Updating
133
133
 
134
- Only when the task explicitly asks to remember, update, correct or forget something (`bot-turn`
135
- §3–§4 covers the rest: metadata, what never gets recorded, the write lock). Where things go in
136
- this Bot:
134
+ Only when the task explicitly asks to remember, update, correct or forget something (`bot-turn`'s
135
+ `writing.md` covers the rest: entry metadata, what never gets recorded, the write lock). Where
136
+ things go in this Bot:
137
137
 
138
138
  - a confirmed fact or a correction → memory/facts.md (mark the old entry `status: superseded` or replace it; never leave a contradiction)
139
139
  - a decision and its reason → memory/facts.md under `## Decisions`, dated
@@ -7,12 +7,42 @@ hidden: true
7
7
  # Running an @bot line
8
8
 
9
9
  Every `[subagent·@name]` line in the message is that Bot's work, not yours. Hand it to a session of
10
- its own and wait for the answer — you are the dispatcher for these lines, not the executor.
10
+ its own and wait for the answer — you are the dispatcher for these lines, not the executor. The
11
+ turn is: write a brief (§1), POST it (§2), wait (`wait.md`), report (§3).
11
12
 
12
- Do **not** read the Bot's `BOT.md` or `bot-turn` yourself. They are listed at the end of the
13
- message under "pass the path along; do not open them yourself" — that is the only reason you have
14
- those paths. The child reads them and works from them; keeping them out of this session is the
15
- point.
13
+ Do **not** read the `BOT.md` or `bot-turn` of a Bot you are delegating to. They are listed at the
14
+ end of the message under "pass the path along; do not open them yourself" — that is the only
15
+ reason you have those paths. The child reads them and works from them; keeping them out of this
16
+ session is the point.
17
+
18
+ ## `[main session·@name]` is the opposite instruction
19
+
20
+ A line tagged `[main session·@name]` (`[主会话·@name]`) means that Bot's directory **is this
21
+ session's own working directory**. There is nothing to delegate — you are already sitting in the
22
+ files a child would have been started to reach. Read the `bot-turn` path, then that Bot's
23
+ `BOT.md` — both are in the "read these skill files first" list rather than the handoff list,
24
+ because you are their reader this time — and do the task yourself, in the voice its identity files
25
+ define. Nothing else in this file applies to such a line: no brief, no delegate call, no polling.
26
+
27
+ A message may carry both tags. When it does, the order matters: **POST every `[subagent·@name]`
28
+ brief first, then do your own `[main session·@name]` work, then poll.** The children run while you
29
+ work; doing your own part first only makes them start late. In that message `bot-turn` is listed
30
+ in both blocks on purpose — you read it for your own line and hand the same path over for theirs.
31
+
32
+ ## What else to open, and when
33
+
34
+ Two files live next to this one and are opened only when the turn reaches them — **check this
35
+ table before you act, not after**:
36
+
37
+ | Open | When | Why it is not here |
38
+ |---|---|---|
39
+ | `{{COCKPIT_DIR}}/skills/bot-run/wait.md` | **The moment a delegate POST has returned** — before any status call | The poll loop, the budget rule, and what each status means. Every delegation needs it and no `[main session·@name]` line does, so it stays one read away rather than in front of a session that never delegates |
40
+ | `{{COCKPIT_DIR}}/skills/bot-run/followup.md` | The Bot asked something back, or the user answers your report | Continuing a session that already exists. Usually a later turn, and the turn that delegates does not need it in hand |
41
+
42
+ **Never poll from memory of how this works.** If a POST has returned and you have not opened
43
+ `wait.md` this turn, stop and open it. Hand-rolled status checks fail in one direction only —
44
+ they exit at once and you report a result the child never produced — and that failure is invisible
45
+ from here, because a confident summary of a run that never finished reads exactly like a real one.
16
46
 
17
47
  ## 1. Write a self-contained brief
18
48
 
@@ -78,122 +108,23 @@ The body is `{ cwd, engine?, model?, title?, prompt? | briefPath? }`:
78
108
  session list — which is what happened when a session working inside a subdirectory delegated a
79
109
  child at the repository root instead. It is also not `pwd`: `pwd` follows any `cd` this turn has
80
110
  made, which is why the fallback is only there for a Cockpit too old to export the variable.
81
- - Leave `engine` and `model` unset. Bot manifests expose only `name` and `description`, and the
82
- dispatcher must not open `BOT.md` to invent an engine preference.
111
+ - **Leave `engine` unset unless the user named one.** Omitted, the child inherits the engine this
112
+ session is running on — the `x-cockpit-run-id` header is what tells the server which that is, so
113
+ send the header exactly as written above. Set it only when the `@name` line says which engine to
114
+ use ("用 codex 跑一下", "run this one on glm"); one of `claude`, `codex`, `deepseek`, `kimi`,
115
+ `glm`, `ollama`. Never open `BOT.md` to invent a preference — a Bot manifest has only `name` and
116
+ `description`, and it is not where this decision lives.
117
+ - Leave `model` unset. It is not inherited: the engine picks its own default, and a model chosen
118
+ for this conversation would otherwise be multiplied across every child you start.
83
119
  - `title` is optional but always worth setting — it is how the session is listed later.
84
120
  - For a one-line task you may send `"prompt": "..."` instead of `briefPath` (escape `"` and `\`).
85
121
  A Bot task rarely is one: the brief carries the accumulated context, which is the whole point.
86
122
  - The receipt comes back at once: `{ cwd, engine, model?, sessionId, link, title, createdAt,
87
- parent? }`. Post every Bot's brief first, then wait.
123
+ parent? }`. Post every Bot's brief first, **then open `wait.md`** — one wait covers them all.
88
124
  - A 400 names the problem — cwd missing, relative, or not a directory; a brief file that does not
89
125
  exist; too many delegated sessions already running. Report what it says; do not retry blindly.
90
126
 
91
- ## 3. Wait
92
-
93
- A Bot turn routinely outlasts a single bash call's tool timeout — a working-tree code review
94
- measured 11 minutes against a 10-minute ceiling — so the wait has to survive that. Two ways, in
95
- order of preference:
96
-
97
- **Run it in the background if your Bash tool can** (`run_in_background`, a job that notifies you
98
- on exit, or equivalent). Set `BUDGET` high (3600) and launch once: the tool timeout stops applying,
99
- you get woken when it finishes, and you are free in the meantime. This is what to reach for first.
100
-
101
- **Otherwise wait in chunks.** Foreground, `BUDGET` about 10% under your Bash timeout (600s max →
102
- `BUDGET=540`; can't raise it → assume 120s and use `BUDGET=100`). Each call prints where things
103
- stand and exits; if anything is still running, run the same block again with the remaining ids.
104
- That is the normal path, not a failure.
105
-
106
- ```bash
107
- CWD='<the receipt's cwd, verbatim>'
108
- SIDS='<sessionId>
109
- <sessionId>' # still-running ids, ONE PER LINE
110
- BUDGET=540 # seconds THIS call may spend
111
-
112
- started=$(date +%s)
113
- deadline=$(( started + BUDGET ))
114
- while :; do
115
- pending=''
116
- for sid in $(printf '%s\n' "$SIDS"); do
117
- body=$(curl -sS --fail-with-body --get "{{BASE_URL}}/api/sessions/status" \
118
- --data-urlencode "cwd=$CWD" --data-urlencode "sessionId=$sid") || body='{}'
119
- state=$(printf '%s' "$body" | python3 -c 'import json,sys
120
- try: print(json.load(sys.stdin).get("status","?"))
121
- except Exception: print("?")')
122
- echo "+$(( $(date +%s) - started ))s $sid -> $state"
123
- # `?` = the status call failed, NOT a terminal state. Keep it pending so a
124
- # blip retries and a real mistake shows up as a stall, never as "finished".
125
- if [ "$state" = running ] || [ "$state" = '?' ]; then pending="$pending
126
- $sid"; fi
127
- done
128
- SIDS=$(printf '%s\n' "$pending" | grep -v '^$')
129
- [ -z "$SIDS" ] && break
130
- [ "$(date +%s)" -ge "$deadline" ] && break
131
- if [ "$(( $(date +%s) - started ))" -lt 30 ]; then sleep 5; else sleep 15; fi
132
- done
133
- echo "still running: ${SIDS:-none}"
134
- ```
135
-
136
- - **`still running: <ids>`** → the budget ran out first. Run the block again with `SIDS` set to
137
- exactly those ids. Nothing is wrong.
138
- - **`still running: none`** → every Bot reached a terminal status. The last `+Ns <sid> -> <state>`
139
- line for each is that status; read it before writing the report.
140
- - **Any `-> ?` line** → that status call failed and the id stays pending. If it repeats, the call
141
- is wrong, not the session — see below.
142
- - One loop covers every Bot, so they run in parallel and each drops out as it finishes.
143
- - Keep the ids newline-separated and keep `$(printf '%s\n' "$SIDS")` — a plain `for sid in $SIDS`
144
- reads as a single id under zsh, which does not word-split parameters.
145
-
146
- **There is no fixed cap.** Keep waiting while the user is waiting on the answer. For scale: two
147
- measured working-tree code reviews took 7 and 11 minutes; a Bot review sweep reads a whole
148
- directory and takes longer. Once it has run past roughly half an hour, stop waiting silently — say
149
- it is still going, hand over the links, and let the user decide.
150
-
151
- **Never state an outcome you have not seen a non-`running` status for.** Hand-rolled variants of
152
- this check go wrong in one direction only: they exit immediately and you report a result the child
153
- never produced.
154
-
155
- `done` = the last turn finished normally; `failed` = the engine recorded an error;
156
- `incomplete` = stopped or interrupted, and the user can open it and carry on.
157
-
158
- **`?` is not a status.** It means the status call itself failed — wrong `cwd`, wrong id, server
159
- gone. The loop keeps such an id pending rather than counting it finished, so a transient blip
160
- just retries; an id stuck on `?` for a whole budget means the call is wrong. Re-run the bare curl
161
- without `|| body='{}'`, read the error body, and fix it. Never report `?` as an outcome.
162
-
163
- ## 4. Follow up in the same session — do not delegate twice
164
-
165
- A Bot's answer often needs one more exchange: it asks which of two directories you meant, or the
166
- user reads the result and wants a change. **That is a message to the session that already exists,
167
- not a new delegation.**
168
-
169
- ```bash
170
- curl -sS --fail-with-body -X POST "{{BASE_URL}}/api/chat" \
171
- -H "Content-Type: application/json" \
172
- --data-binary @- <<EOF_JSON
173
- {"cwd": "<the receipt's cwd, verbatim>", "sessionId": "<the receipt's sessionId>", "prompt": "<the follow-up>"}
174
- EOF_JSON
175
- ```
176
-
177
- - No `x-cockpit-run-id` here, unlike §2: only the delegate endpoint reads that header, to record
178
- which session started the child. This one continues a session that already has a parent.
179
- - **Match the route to the engine** the receipt reported: `/api/chat` is claude; codex, ollama,
180
- kimi, deepseek and glm each have `/api/chat/<engine>`. Sending to the wrong one starts a
181
- different engine on that transcript.
182
- - It returns `{ runKey, sessionId }` immediately, exactly like a delegation. **Wait for it the same
183
- way** — §3, with the same `cwd` and that `sessionId`.
184
- - **`409 session is already running`** means the child has not finished. That is not an error to
185
- route around; wait for a non-`running` status first and send it then.
186
- - Long or multi-part follow-ups go in a brief file exactly as in §1 — this body takes `prompt`
187
- only, so write the file and reference it in the text if it is too big to inline comfortably.
188
-
189
- Delegating again instead is the tempting mistake, and it is expensive in a way that does not look
190
- expensive: the new session starts from nothing, re-reads the Bot's files, and knows only what your
191
- brief happens to restate. Everything the last turn established — what it checked, what it ruled
192
- out, what the user already answered — is in *that* transcript, and a summary of it is not the same
193
- thing. It has happened: a dispatcher decided Cockpit had no way to continue a session, re-delegated
194
- with a paragraph of context, and paid for the whole task twice.
195
-
196
- ## 5. Report
127
+ ## 3. Report
197
128
 
198
129
  One short section per Bot: its conclusion in a few lines, then `[open session](<link>)`. The full
199
130
  answer lives in that session — do not paste it wholesale, and do not restate it as your own.
@@ -201,14 +132,20 @@ answer lives in that session — do not paste it wholesale, and do not restate i
201
132
  repeat the status call with `--data-urlencode "full=1"`. Use the receipt's `link` exactly as
202
133
  returned — it is the only record of the delegation, and tool output is not searchable later.
203
134
 
135
+ **A `[main session·@name]` line has no link**, because it happened here. Give it its own section
136
+ alongside the delegated ones and close it the way `bot-turn` §2 requires — the answer, then the
137
+ list of Bot files you read and changed. That list is the only record of what the answer stood on,
138
+ and this is the one line in the message that may have edited those files directly.
139
+
204
140
  **A numbered list is a special case.** Some Bot tasks (a review sweep, for instance) end in a list
205
141
  of findings the user picks from. Relay it whole with its numbering intact, and keep whatever path
206
142
  the child saved it to — the user answers either in that session or by naming that file in a new
207
143
  one, and dropping either detail strands the work.
208
144
 
209
145
  Pressing stop here does not stop a delegated session — it is a separate run. Say so if the user
210
- expects otherwise.
146
+ expects otherwise. A `[main session·@name]` line is the exception: it runs in this session, so
147
+ stop really does stop it.
211
148
 
212
149
  When the user answers your report — a correction, a pick from a numbered list, an answer to a
213
- question the Bot asked — that reply belongs in the session it came from. Go back to §4; do not
214
- start a second one.
150
+ question the Bot asked — that reply belongs in the session it came from. Open `followup.md`; do
151
+ not start a second one.
@@ -0,0 +1,38 @@
1
+ # Following up in a session that already exists
2
+
3
+ Opened from `bot-run` when a delegated Bot asked something back, or when the user answers your
4
+ report — a correction, a pick from a numbered list, an answer to the Bot's question.
5
+
6
+ **That is a message to the session that already exists, not a new delegation.**
7
+
8
+ ```bash
9
+ curl -sS --fail-with-body -X POST "{{BASE_URL}}/api/chat" \
10
+ -H "Content-Type: application/json" \
11
+ --data-binary @- <<EOF_JSON
12
+ {"cwd": "<the receipt's cwd, verbatim>", "sessionId": "<the receipt's sessionId>", "prompt": "<the follow-up>"}
13
+ EOF_JSON
14
+ ```
15
+
16
+ - No `x-cockpit-run-id` here, unlike the delegate call: only that endpoint reads the header, to
17
+ record which session started the child. This one continues a session that already has a parent.
18
+ - **Match the route to the engine** the receipt reported: `/api/chat` is claude; codex, ollama,
19
+ kimi, deepseek and glm each have `/api/chat/<engine>`. Sending to the wrong one starts a
20
+ different engine on that transcript.
21
+ - It returns `{ runKey, sessionId }` immediately, exactly like a delegation. **Wait for it the same
22
+ way** — `wait.md`, with the same `cwd` and that `sessionId`.
23
+ - **`409 session is already running`** means the child has not finished. That is not an error to
24
+ route around; wait for a non-`running` status first and send it then.
25
+ - Long or multi-part follow-ups go in a brief file exactly as a first brief does — this body takes
26
+ `prompt` only, so write the file and reference it in the text if it is too big to inline
27
+ comfortably.
28
+
29
+ Delegating again instead is the tempting mistake, and it is expensive in a way that does not look
30
+ expensive: the new session starts from nothing, re-reads the Bot's files, and knows only what your
31
+ brief happens to restate. Everything the last turn established — what it checked, what it ruled
32
+ out, what the user already answered — is in *that* transcript, and a summary of it is not the same
33
+ thing. It has happened: a dispatcher decided Cockpit had no way to continue a session, re-delegated
34
+ with a paragraph of context, and paid for the whole task twice.
35
+
36
+ **A `[main session·@name]` line is not this case.** It ran here, in this transcript, so its
37
+ follow-up is simply the next thing you do — no curl, no session id. Answering it through this
38
+ endpoint would start a second, parallel turn on a session that is already yours.
@@ -0,0 +1,76 @@
1
+ # Waiting for a delegated session
2
+
3
+ Opened from `bot-run` the moment a delegate POST has returned. Everything here is about sessions
4
+ you started; a `[main session·@name]` line has no session to wait for.
5
+
6
+ A Bot turn routinely outlasts a single bash call's tool timeout — a working-tree code review
7
+ measured 11 minutes against a 10-minute ceiling — so the wait has to survive that. Two ways, in
8
+ order of preference:
9
+
10
+ **Run it in the background if your Bash tool can** (`run_in_background`, a job that notifies you
11
+ on exit, or equivalent). Set `BUDGET` high (3600) and launch once: the tool timeout stops applying,
12
+ you get woken when it finishes, and you are free in the meantime. This is what to reach for first.
13
+
14
+ **Otherwise wait in chunks.** Foreground, `BUDGET` about 10% under your Bash timeout (600s max →
15
+ `BUDGET=540`; can't raise it → assume 120s and use `BUDGET=100`). Each call prints where things
16
+ stand and exits; if anything is still running, run the same block again with the remaining ids.
17
+ That is the normal path, not a failure.
18
+
19
+ ```bash
20
+ CWD='<the receipt's cwd, verbatim>'
21
+ SIDS='<sessionId>
22
+ <sessionId>' # still-running ids, ONE PER LINE
23
+ BUDGET=540 # seconds THIS call may spend
24
+
25
+ started=$(date +%s)
26
+ deadline=$(( started + BUDGET ))
27
+ while :; do
28
+ pending=''
29
+ for sid in $(printf '%s\n' "$SIDS"); do
30
+ body=$(curl -sS --fail-with-body --get "{{BASE_URL}}/api/sessions/status" \
31
+ --data-urlencode "cwd=$CWD" --data-urlencode "sessionId=$sid") || body='{}'
32
+ state=$(printf '%s' "$body" | python3 -c 'import json,sys
33
+ try: print(json.load(sys.stdin).get("status","?"))
34
+ except Exception: print("?")')
35
+ echo "+$(( $(date +%s) - started ))s $sid -> $state"
36
+ # `?` = the status call failed, NOT a terminal state. Keep it pending so a
37
+ # blip retries and a real mistake shows up as a stall, never as "finished".
38
+ if [ "$state" = running ] || [ "$state" = '?' ]; then pending="$pending
39
+ $sid"; fi
40
+ done
41
+ SIDS=$(printf '%s\n' "$pending" | grep -v '^$')
42
+ [ -z "$SIDS" ] && break
43
+ [ "$(date +%s)" -ge "$deadline" ] && break
44
+ if [ "$(( $(date +%s) - started ))" -lt 30 ]; then sleep 5; else sleep 15; fi
45
+ done
46
+ echo "still running: ${SIDS:-none}"
47
+ ```
48
+
49
+ - **`still running: <ids>`** → the budget ran out first. Run the block again with `SIDS` set to
50
+ exactly those ids. Nothing is wrong.
51
+ - **`still running: none`** → every Bot reached a terminal status. The last `+Ns <sid> -> <state>`
52
+ line for each is that status; read it before writing the report.
53
+ - **Any `-> ?` line** → that status call failed and the id stays pending. If it repeats, the call
54
+ is wrong, not the session — see below.
55
+ - One loop covers every Bot, so they run in parallel and each drops out as it finishes.
56
+ - Keep the ids newline-separated and keep `$(printf '%s\n' "$SIDS")` — a plain `for sid in $SIDS`
57
+ reads as a single id under zsh, which does not word-split parameters.
58
+
59
+ **There is no fixed cap.** Keep waiting while the user is waiting on the answer. For scale: two
60
+ measured working-tree code reviews took 7 and 11 minutes; a Bot review sweep reads a whole
61
+ directory and takes longer. Once it has run past roughly half an hour, stop waiting silently — say
62
+ it is still going, hand over the links, and let the user decide.
63
+
64
+ **Never state an outcome you have not seen a non-`running` status for.** Hand-rolled variants of
65
+ this check go wrong in one direction only: they exit immediately and you report a result the child
66
+ never produced.
67
+
68
+ `done` = the last turn finished normally; `failed` = the engine recorded an error;
69
+ `incomplete` = stopped or interrupted, and the user can open it and carry on.
70
+
71
+ **`?` is not a status.** It means the status call itself failed — wrong `cwd`, wrong id, server
72
+ gone. The loop keeps such an id pending rather than counting it finished, so a transient blip
73
+ just retries; an id stuck on `?` for a whole budget means the call is wrong. Re-run the bare curl
74
+ without `|| body='{}'`, read the error body, and fix it. Never report `?` as an outcome.
75
+
76
+ Every terminal status reached → go back to `bot-run` and write the report.
@@ -18,6 +18,13 @@ On a **review, an attach or an export** your working directory is the Bot's own,
18
18
  relative paths work there; on ordinary work it is the project instead. Either way the paths you
19
19
  were handed are absolute and remain the authority — check where you are rather than assuming.
20
20
 
21
+ **You may not be in a session of your own.** When the session that received the `@name` line was
22
+ already sitting in the Bot's directory, the turn runs there instead of being delegated: the
23
+ working directory is the Bot's whatever the task is, the transcript is shared with whatever else
24
+ that session was doing, and stopping the session really does stop this turn. Everything below
25
+ holds unchanged — the write lock most of all, since a session that was already in these files is
26
+ the one most likely to edit them without going through it.
27
+
21
28
  ## What else to open, and when
22
29
 
23
30
  Most turns need nothing beyond this file. Four things live next to it and are opened only when
@@ -13,7 +13,6 @@ CLI entry point selection (**default = prod**):
13
13
  - Switch to `cockpit-dev` (dev, port 3456) ONLY when the user explicitly signals dev mode, via one of:
14
14
  1. They write `cockpit-dev ...` directly in the task text.
15
15
  2. The first word after `/cc` is `dev` (e.g. `/cc dev terminal bmfb check the errors`).
16
- - `cock` is the prod-only short alias of `cockpit`; behaviour is identical. There is no short alias for dev.
17
16
 
18
17
  Examples below use `cockpit`; only swap in `cockpit-dev` when one of the two dev signals above is present.
19
18
 
@@ -26,7 +26,10 @@ curl -sS --fail-with-body -X POST "{{BASE_URL}}/api/sessions/delegate" \
26
26
  EOF_JSON
27
27
  ```
28
28
 
29
- - `engine` defaults to `claude`; `model` is optional
29
+ - `engine` is inherited from the session you are running in when omitted — that is what the
30
+ `x-cockpit-run-id` header above is for, so always send it. Spell `engine` out only when the
31
+ task should run somewhere else, which for `/dl` it often should. Claude when the calling
32
+ session's engine cannot be determined. `model` is optional and never inherited
30
33
  - For a one-liner you may send `"prompt": "..."` instead of `briefPath` (escape `"` and `\`)
31
34
  - Do not delete the brief file — the child reads it after you return
32
35
  - A 400 names the problem (missing directory, unconfigured engine, too many delegated sessions running) — report it, do not retry blindly