@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
@@ -7299,8 +7299,8 @@ var fromFlatLoop = (flat, prefix, config3, split3) => {
7299
7299
  }
7300
7300
  if (isRight2(left3) && isRight2(right3)) {
7301
7301
  const path5 = pipe(prefix, join("."));
7302
- const fail20 = fromFlatLoopFail(prefix, path5);
7303
- const [lefts, rights] = extend(fail20, fail20, pipe(left3.right, map3(right2)), pipe(right3.right, map3(right2)));
7302
+ const fail21 = fromFlatLoopFail(prefix, path5);
7303
+ const [lefts, rights] = extend(fail21, fail21, pipe(left3.right, map3(right2)), pipe(right3.right, map3(right2)));
7304
7304
  return pipe(lefts, zip(rights), forEachSequential(([left4, right4]) => pipe(zip2(left4, right4), map10(([left5, right5]) => op.zip(left5, right5)))));
7305
7305
  }
7306
7306
  throw new Error("BUG: ConfigProvider.fromFlatLoop - please report an issue at https://github.com/Effect-TS/effect/issues");
@@ -9625,21 +9625,21 @@ var tryPromise = (arg) => {
9625
9625
  evaluate3 = arg.try;
9626
9626
  catcher = arg.catch;
9627
9627
  }
9628
- const fail20 = (e) => catcher ? failSync(() => catcher(e)) : fail2(new UnknownException(e, "An unknown error occurred in Effect.tryPromise"));
9628
+ const fail21 = (e) => catcher ? failSync(() => catcher(e)) : fail2(new UnknownException(e, "An unknown error occurred in Effect.tryPromise"));
9629
9629
  if (evaluate3.length >= 1) {
9630
9630
  return async_((resolve3, signal) => {
9631
9631
  try {
9632
- evaluate3(signal).then((a) => resolve3(succeed(a)), (e) => resolve3(fail20(e)));
9632
+ evaluate3(signal).then((a) => resolve3(succeed(a)), (e) => resolve3(fail21(e)));
9633
9633
  } catch (e) {
9634
- resolve3(fail20(e));
9634
+ resolve3(fail21(e));
9635
9635
  }
9636
9636
  });
9637
9637
  }
9638
9638
  return async_((resolve3) => {
9639
9639
  try {
9640
- evaluate3().then((a) => resolve3(succeed(a)), (e) => resolve3(fail20(e)));
9640
+ evaluate3().then((a) => resolve3(succeed(a)), (e) => resolve3(fail21(e)));
9641
9641
  } catch (e) {
9642
- resolve3(fail20(e));
9642
+ resolve3(fail21(e));
9643
9643
  }
9644
9644
  });
9645
9645
  };
@@ -27344,11 +27344,11 @@ var date = (name) => {
27344
27344
  return name === void 0 ? config3 : nested2(config3, name);
27345
27345
  };
27346
27346
  var fail17 = (message) => {
27347
- const fail20 = Object.create(proto13);
27348
- fail20._tag = OP_FAIL2;
27349
- fail20.message = message;
27350
- fail20.parse = () => left2(Unsupported([], message));
27351
- return fail20;
27347
+ const fail21 = Object.create(proto13);
27348
+ fail21._tag = OP_FAIL2;
27349
+ fail21.message = message;
27350
+ fail21.parse = () => left2(Unsupported([], message));
27351
+ return fail21;
27352
27352
  };
27353
27353
  var number4 = (name) => {
27354
27354
  const config3 = primitive("a number property", (text) => {
@@ -29018,7 +29018,7 @@ function getUsageUpdateOutputTokens(message) {
29018
29018
  const outputTokens = message.output_tokens;
29019
29019
  return typeof outputTokens === "number" && Number.isFinite(outputTokens) ? Math.max(0, Math.round(outputTokens)) : null;
29020
29020
  }
29021
- function startRun(key, cwd, promptText, runId) {
29021
+ function startRun(key, cwd, promptText, runId, engine) {
29022
29022
  const prev = registry.get(key);
29023
29023
  if (prev?.status === "running") return false;
29024
29024
  const prevSeq = prev?.seq ?? seqByKey.get(key) ?? 0;
@@ -29035,6 +29035,7 @@ function startRun(key, cwd, promptText, runId) {
29035
29035
  events: [],
29036
29036
  startedAt,
29037
29037
  ...runId ? { runId } : {},
29038
+ ...engine ? { engine } : {},
29038
29039
  updatedAt: startedAt
29039
29040
  });
29040
29041
  if (promptText) {
@@ -29105,7 +29106,7 @@ function getRunSessionId(key) {
29105
29106
  function getRunInfo(key) {
29106
29107
  const r = registry.get(key);
29107
29108
  if (!r) return null;
29108
- return { cwd: r.cwd, sessionId: r.sessionId ?? null };
29109
+ return { cwd: r.cwd, sessionId: r.sessionId ?? null, engine: r.engine ?? null };
29109
29110
  }
29110
29111
  function setRunAbort(key, abort) {
29111
29112
  const r = registry.get(key);
@@ -29144,6 +29145,41 @@ function normalizeBase(raw) {
29144
29145
  async function readOllamaStoredConfig() {
29145
29146
  return readJsonFile(OLLAMA_CONFIG_FILE, {});
29146
29147
  }
29148
+ async function writeOllamaStoredConfig(patch9) {
29149
+ return mutateJsonFile(OLLAMA_CONFIG_FILE, {}, (cur) => {
29150
+ const next4 = { ...cur };
29151
+ if (patch9.baseUrl !== void 0) {
29152
+ const v = patch9.baseUrl.trim();
29153
+ if (v) next4.baseUrl = v;
29154
+ else delete next4.baseUrl;
29155
+ }
29156
+ if (patch9.apiKey !== void 0) {
29157
+ const v = patch9.apiKey.trim();
29158
+ if (v) next4.apiKey = v;
29159
+ else delete next4.apiKey;
29160
+ }
29161
+ if (patch9.lastModel !== void 0) {
29162
+ const v = patch9.lastModel.trim();
29163
+ if (v) next4.lastModel = v;
29164
+ else delete next4.lastModel;
29165
+ }
29166
+ return next4;
29167
+ });
29168
+ }
29169
+ async function readOllamaLastModel() {
29170
+ return (await readOllamaStoredConfig()).lastModel?.trim() || void 0;
29171
+ }
29172
+ async function rememberOllamaLastModel(model) {
29173
+ const v = model.trim();
29174
+ if (!v) return;
29175
+ if ((await readOllamaStoredConfig()).lastModel === v) return;
29176
+ await writeOllamaStoredConfig({ lastModel: v });
29177
+ }
29178
+ async function resolveOllamaBaseURL() {
29179
+ const cfg = await readOllamaStoredConfig();
29180
+ const raw = cfg.baseUrl?.trim() || process.env.OLLAMA_BASE_URL || DEFAULT_BASE;
29181
+ return normalizeBase(raw);
29182
+ }
29147
29183
  async function resolveOllamaConnection() {
29148
29184
  const cfg = await readOllamaStoredConfig();
29149
29185
  const baseUrl = normalizeBase(
@@ -29192,6 +29228,14 @@ function estimateOutputUnits(text) {
29192
29228
  return Math.max(1, Math.ceil(cjk + other / 4));
29193
29229
  }
29194
29230
 
29231
+ // packages/feature/agent/src/shared/botSession.ts
29232
+ var BOT_TASK_LINE = /^Task:\s*@([a-z0-9][a-z0-9-]{0,63})(?=[\s:]|$)/;
29233
+ var detectBotName = (firstUserMessage) => {
29234
+ if (!firstUserMessage) return void 0;
29235
+ const firstLine = firstUserMessage.trimStart().split("\n", 1)[0];
29236
+ return BOT_TASK_LINE.exec(firstLine)?.[1];
29237
+ };
29238
+
29195
29239
  // packages/feature/agent/src/server/state/globalState.ts
29196
29240
  import { createReadStream, existsSync as existsSync2, statSync as statSync2 } from "fs";
29197
29241
  import { createInterface } from "readline";
@@ -29388,7 +29432,13 @@ async function updateGlobalState(cwd, sessionId, status3, title, lastUserMessage
29388
29432
  lastUserMessage: truncate(lastUserMessage || existing?.lastUserMessage),
29389
29433
  // Carried like title/lastUserMessage: status-only updates (the client's
29390
29434
  // /api/global-state PATCH) pass no engine and must not erase it.
29391
- engine: engine || existing?.engine
29435
+ engine: engine || existing?.engine,
29436
+ // A Bot names itself in the session's FIRST message, so only the first
29437
+ // write of a session can see it — by the second, `lastUserMessage` has
29438
+ // moved on. Hence: derive on insert, carry forward on every update. A
29439
+ // session that predates this field stays unmarked here and is marked from
29440
+ // disk by getSessionPreview instead, which is the slower but complete path.
29441
+ bot: existed ? existing?.bot : detectBotName(lastUserMessage)
29392
29442
  };
29393
29443
  if (existingIndex >= 0) {
29394
29444
  state.sessions[existingIndex] = newSession;
@@ -29488,13 +29538,15 @@ async function getSessionContent(cwd, sessionId) {
29488
29538
  async function getSessionPreview(cwd, sessionId, opts) {
29489
29539
  const { aiTitle, summary: summary5, messages } = await getSessionContent(cwd, sessionId);
29490
29540
  const title = generateTitle(aiTitle, summary5, messages);
29541
+ const bot = detectBotName(messages[0]);
29491
29542
  const lastUserMessage = messages[messages.length - 1];
29492
29543
  const searchText = opts?.includeSearchText ? [summary5, ...messages].join("\n").toLowerCase() : "";
29493
29544
  if (messages.length <= SUMMARY_THRESHOLD) {
29494
- return { title, lastUserMessage, firstMessages: messages.map((m) => truncate(m)), lastMessages: [], searchText };
29545
+ return { title, bot, lastUserMessage, firstMessages: messages.map((m) => truncate(m)), lastMessages: [], searchText };
29495
29546
  }
29496
29547
  return {
29497
29548
  title,
29549
+ bot,
29498
29550
  lastUserMessage,
29499
29551
  firstMessages: messages.slice(0, SUMMARY_HEAD).map((m) => truncate(m)),
29500
29552
  lastMessages: messages.slice(-SUMMARY_TAIL).map((m) => truncate(m)),
@@ -29537,6 +29589,9 @@ async function getGlobalSessionsSnapshot(limit = 15) {
29537
29589
  // (preview degrades to UNTITLED_SESSION). Mirrors /api/global-state.
29538
29590
  title: preview.title !== UNTITLED_SESSION ? preview.title : session.title ?? preview.title,
29539
29591
  lastUserMessage: preview.lastUserMessage ?? session.lastUserMessage,
29592
+ // Disk wins: it reads the true first message, while the persisted value
29593
+ // is only there for sessions this snapshot never opens (the running ones).
29594
+ bot: preview.bot ?? session.bot,
29540
29595
  firstMessages: preview.firstMessages,
29541
29596
  lastMessages: preview.lastMessages
29542
29597
  };
@@ -31458,29 +31513,7 @@ var blobImpl = (snapshotsRoot, cwd, rev, file2) => Effect_exports.gen(function*
31458
31513
  const bytes = yield* gitShowBytes(repoDir, cwd, rev, file2);
31459
31514
  return new Uint8Array(bytes);
31460
31515
  }).pipe(Effect_exports.withSpan("snapshot.blob", { attributes: { cwd, rev } }));
31461
- var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function* () {
31462
- if (!/^[0-9a-f]{6,40}$/i.test(commitHash)) {
31463
- return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "invalid commit hash" }));
31464
- }
31465
- const repoDir = yield* resolveRepoDir(snapshotsRoot, cwd);
31466
- const repoExists = yield* fsTry(
31467
- "stat HEAD",
31468
- () => stat(join5(repoDir, "HEAD")).then(() => true)
31469
- ).pipe(Effect_exports.orElseSucceed(() => false));
31470
- if (!repoExists) {
31471
- return yield* Effect_exports.fail(new NotFoundError({ resource: "snapshot-repo", id: cwd }));
31472
- }
31473
- const log3 = yield* runGitOk(repoDir, cwd, [
31474
- "log",
31475
- "-1",
31476
- "--format=%x1e%H%x1f%P%x1f%ct%x1f%B",
31477
- commitHash
31478
- ]);
31479
- const commit3 = commitFromLogRecord(log3.stdout.split("").filter(Boolean)[0] ?? "");
31480
- if (!commit3) {
31481
- return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "commit not found" }));
31482
- }
31483
- const base = commit3.parent ?? EMPTY_TREE;
31516
+ var collectRangeFiles = (repoDir, cwd, base, head6) => Effect_exports.gen(function* () {
31484
31517
  const nameStatus = yield* runGitOk(repoDir, cwd, [
31485
31518
  "diff-tree",
31486
31519
  "-r",
@@ -31488,7 +31521,7 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
31488
31521
  "--no-renames",
31489
31522
  "--name-status",
31490
31523
  base,
31491
- commit3.hash
31524
+ head6
31492
31525
  ]);
31493
31526
  const numstat = yield* runGitOk(repoDir, cwd, [
31494
31527
  "diff-tree",
@@ -31497,7 +31530,7 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
31497
31530
  "--no-renames",
31498
31531
  "--numstat",
31499
31532
  base,
31500
- commit3.hash
31533
+ head6
31501
31534
  ]);
31502
31535
  const binarySet = /* @__PURE__ */ new Set();
31503
31536
  const lineStats = /* @__PURE__ */ new Map();
@@ -31521,7 +31554,7 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
31521
31554
  let newContent = null;
31522
31555
  if (!binary) {
31523
31556
  if (status3 !== "added") oldContent = yield* showFile(repoDir, cwd, base, path5);
31524
- if (status3 !== "deleted") newContent = yield* showFile(repoDir, cwd, commit3.hash, path5);
31557
+ if (status3 !== "deleted") newContent = yield* showFile(repoDir, cwd, head6, path5);
31525
31558
  if ((oldContent?.length ?? 0) > MAX_DIFF_CONTENT_BYTES || (newContent?.length ?? 0) > MAX_DIFF_CONTENT_BYTES) {
31526
31559
  oldContent = null;
31527
31560
  newContent = null;
@@ -31539,17 +31572,75 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
31539
31572
  newContent,
31540
31573
  ...isImage ? {
31541
31574
  isImage: true,
31542
- // A parentless day-root commit diffs against the empty tree, so
31543
- // every path comes back "added" — `base` is never handed out as
31544
- // a revision the client could ask for.
31575
+ // A range rooted at the empty tree reports every path as
31576
+ // "added", so EMPTY_TREE is never handed out as a revision the
31577
+ // client could ask for.
31545
31578
  oldRev: status3 === "added" ? null : base,
31546
- newRev: status3 === "deleted" ? null : commit3.hash
31579
+ newRev: status3 === "deleted" ? null : head6
31547
31580
  } : {}
31548
31581
  });
31549
31582
  }
31550
- const truncated = tokens.length / 2 > files.length;
31583
+ return { files, truncated: tokens.length / 2 > files.length };
31584
+ });
31585
+ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function* () {
31586
+ if (!/^[0-9a-f]{6,40}$/i.test(commitHash)) {
31587
+ return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "invalid commit hash" }));
31588
+ }
31589
+ const repoDir = yield* resolveRepoDir(snapshotsRoot, cwd);
31590
+ const repoExists = yield* fsTry(
31591
+ "stat HEAD",
31592
+ () => stat(join5(repoDir, "HEAD")).then(() => true)
31593
+ ).pipe(Effect_exports.orElseSucceed(() => false));
31594
+ if (!repoExists) {
31595
+ return yield* Effect_exports.fail(new NotFoundError({ resource: "snapshot-repo", id: cwd }));
31596
+ }
31597
+ const log3 = yield* runGitOk(repoDir, cwd, [
31598
+ "log",
31599
+ "-1",
31600
+ "--format=%x1e%H%x1f%P%x1f%ct%x1f%B",
31601
+ commitHash
31602
+ ]);
31603
+ const commit3 = commitFromLogRecord(log3.stdout.split("").filter(Boolean)[0] ?? "");
31604
+ if (!commit3) {
31605
+ return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "commit not found" }));
31606
+ }
31607
+ const base = commit3.parent ?? EMPTY_TREE;
31608
+ const { files, truncated } = yield* collectRangeFiles(repoDir, cwd, base, commit3.hash);
31551
31609
  return { commit: commit3, files, truncated };
31552
31610
  }).pipe(Effect_exports.withSpan("snapshot.diff", { attributes: { cwd, commit: commitHash } }));
31611
+ var rangeDiffImpl = (snapshotsRoot, cwd, base, head6) => Effect_exports.gen(function* () {
31612
+ if (base !== null && !/^[0-9a-f]{6,40}$/i.test(base)) {
31613
+ return yield* Effect_exports.fail(new ValidationError({ field: "base", reason: "invalid commit hash" }));
31614
+ }
31615
+ if (!/^[0-9a-f]{6,40}$/i.test(head6)) {
31616
+ return yield* Effect_exports.fail(new ValidationError({ field: "head", reason: "invalid commit hash" }));
31617
+ }
31618
+ const repoDir = yield* resolveRepoDir(snapshotsRoot, cwd);
31619
+ const repoExists = yield* fsTry(
31620
+ "stat HEAD",
31621
+ () => stat(join5(repoDir, "HEAD")).then(() => true)
31622
+ ).pipe(Effect_exports.orElseSucceed(() => false));
31623
+ if (!repoExists) {
31624
+ return yield* Effect_exports.fail(new NotFoundError({ resource: "snapshot-repo", id: cwd }));
31625
+ }
31626
+ const log3 = yield* runGitOk(repoDir, cwd, [
31627
+ "log",
31628
+ "-1",
31629
+ "--format=%x1e%H%x1f%P%x1f%ct%x1f%B",
31630
+ head6
31631
+ ]);
31632
+ const headCommit = commitFromLogRecord(log3.stdout.split("").filter(Boolean)[0] ?? "");
31633
+ if (!headCommit) {
31634
+ return yield* Effect_exports.fail(new ValidationError({ field: "head", reason: "commit not found" }));
31635
+ }
31636
+ const { files, truncated } = yield* collectRangeFiles(
31637
+ repoDir,
31638
+ cwd,
31639
+ base ?? EMPTY_TREE,
31640
+ headCommit.hash
31641
+ );
31642
+ return { base, head: headCommit, files, truncated };
31643
+ }).pipe(Effect_exports.withSpan("snapshot.rangeDiff", { attributes: { cwd, base: base ?? "empty-tree", head: head6 } }));
31553
31644
  var cleanupImpl = (snapshotsRoot, keepDays, repoTtlDays) => Effect_exports.gen(function* () {
31554
31645
  const dirs = yield* fsTry("readdir", () => readdir(snapshotsRoot)).pipe(
31555
31646
  Effect_exports.orElseSucceed(() => [])
@@ -31673,6 +31764,7 @@ var SnapshotServiceLive = Layer_exports.scoped(
31673
31764
  baseline: (cwd, sessionKey, provider) => snapshotOnce(snapshotsRoot, maxFileBytes, { cwd, sessionKey, provider }, "baseline"),
31674
31765
  listByToolIds: (cwd, toolIds, sessionKey) => listByToolIdsImpl(snapshotsRoot, cwd, toolIds, sessionKey),
31675
31766
  diff: (cwd, commitHash) => diffImpl(snapshotsRoot, cwd, commitHash),
31767
+ rangeDiff: (cwd, base, head6) => rangeDiffImpl(snapshotsRoot, cwd, base, head6),
31676
31768
  blob: (cwd, rev, file2) => blobImpl(snapshotsRoot, cwd, rev, file2),
31677
31769
  cleanup
31678
31770
  });
@@ -32566,12 +32658,14 @@ async function parseTranscriptFile(filePath, page = {}) {
32566
32658
  }
32567
32659
  const allMessages = convertToChatMessages(rawMessages);
32568
32660
  const title = generateTitle(aiTitle, summary5, userTextMessages);
32661
+ const bot = detectBotName(userTextMessages[0]);
32569
32662
  const turns = splitTurns(allMessages);
32570
32663
  const totalTurns = turns.length;
32571
32664
  if (limit === void 0 && fromTurnIndex === void 0) {
32572
32665
  return {
32573
32666
  messages: allMessages,
32574
32667
  title,
32668
+ bot,
32575
32669
  usage: lastUsage,
32576
32670
  totalTurns,
32577
32671
  hasMore: false,
@@ -32583,7 +32677,7 @@ async function parseTranscriptFile(filePath, page = {}) {
32583
32677
  const hasMore = startIndex > 0;
32584
32678
  const selectedTurns = turns.slice(startIndex, endIndex);
32585
32679
  const messages = selectedTurns.flat();
32586
- return { messages, title, usage: lastUsage, totalTurns, hasMore, startTurnIndex: startIndex };
32680
+ return { messages, title, bot, usage: lastUsage, totalTurns, hasMore, startTurnIndex: startIndex };
32587
32681
  }
32588
32682
  function splitTurns(allMessages) {
32589
32683
  const turns = [];
@@ -32778,6 +32872,7 @@ async function parseCodexTranscriptFile(filePath) {
32778
32872
  const messages = [];
32779
32873
  let currentAssistant = null;
32780
32874
  let title = "Untitled Session";
32875
+ let firstUserText = null;
32781
32876
  let lastUsage;
32782
32877
  let msgCounter = 0;
32783
32878
  let toolSinceText = false;
@@ -32831,6 +32926,7 @@ async function parseCodexTranscriptFile(filePath) {
32831
32926
  });
32832
32927
  if (title === "Untitled Session") {
32833
32928
  title = (text || CODEX_IMAGE_ONLY_TEXT).slice(0, 80);
32929
+ firstUserText = text;
32834
32930
  }
32835
32931
  }
32836
32932
  if (payload.type === "message" && payload.role === "assistant") {
@@ -33008,7 +33104,7 @@ async function parseCodexTranscriptFile(filePath) {
33008
33104
  }
33009
33105
  }
33010
33106
  flushAssistant();
33011
- return { messages, title, usage: lastUsage };
33107
+ return { messages, title, bot: detectBotName(firstUserText), usage: lastUsage };
33012
33108
  }
33013
33109
 
33014
33110
  // packages/feature/agent/src/effect/sessionSearchLive.ts
@@ -48000,6 +48096,43 @@ ${summary5}`;
48000
48096
  };
48001
48097
  }
48002
48098
 
48099
+ // packages/feature/agent/src/server/engines/sessionModel.ts
48100
+ var MODEL_MAP_KEY = {
48101
+ ollama: "ollamaModels",
48102
+ deepseek: "deepseekModels",
48103
+ kimi: "kimiModels",
48104
+ glm: "glmModels",
48105
+ claude: "claudeModels",
48106
+ codex: "codexModels"
48107
+ };
48108
+ var EMPTY = { sessions: [] };
48109
+ function mapOf(state, key) {
48110
+ const raw = state[key];
48111
+ return raw && typeof raw === "object" ? raw : {};
48112
+ }
48113
+ async function readSessionModel(engine, cwd, sessionId) {
48114
+ const key = MODEL_MAP_KEY[engine];
48115
+ if (!key || !cwd || !sessionId) return void 0;
48116
+ const state = await readJsonFile(getSessionFilePath(cwd), EMPTY);
48117
+ return mapOf(state, key)[sessionId]?.trim() || void 0;
48118
+ }
48119
+ async function recordSessionModel(engine, cwd, sessionId, model) {
48120
+ const key = MODEL_MAP_KEY[engine];
48121
+ if (!key || !cwd || !sessionId || !model.trim()) return;
48122
+ const value = model.trim();
48123
+ const filePath = getSessionFilePath(cwd);
48124
+ try {
48125
+ const before2 = await readJsonFile(filePath, EMPTY);
48126
+ if (mapOf(before2, key)[sessionId] === value) return;
48127
+ await mutateJsonFile(filePath, EMPTY, (cur) => ({
48128
+ ...cur,
48129
+ [key]: { ...mapOf(cur, key), [sessionId]: value }
48130
+ }));
48131
+ } catch (error48) {
48132
+ console.error(`[engine:${engine}] failed to record session model for ${sessionId}:`, error48);
48133
+ }
48134
+ }
48135
+
48003
48136
  // packages/feature/agent/src/server/engines/shared/providerError.ts
48004
48137
  function extractBodyMessage(body) {
48005
48138
  if (typeof body !== "string" || !body.trim()) return void 0;
@@ -48203,7 +48336,9 @@ async function runBuiltinAgent(ctx, config3) {
48203
48336
  const sid = ctx.currentKey();
48204
48337
  ctx.rekey(sid);
48205
48338
  const model = typeof ctx.params.model === "string" && ctx.params.model || config3.defaultModel;
48339
+ if (!model) throw new Error(`No model resolved for this ${config3.engine} run`);
48206
48340
  const prompt = ctx.prompt;
48341
+ void recordSessionModel(config3.engine, cwd, sid, model);
48207
48342
  const emit2 = (data) => {
48208
48343
  if (data.startsWith("data: [DONE]")) return;
48209
48344
  try {
@@ -48348,13 +48483,15 @@ function resolveEndpoints(p, saved, language) {
48348
48483
  const id3 = saved.region || p.regions.defaultFor(language);
48349
48484
  return p.regions.byId[id3] ?? p.endpoints;
48350
48485
  }
48351
- function resolveModel(requested, saved, fallback) {
48486
+ function resolveModel(requested, session, saved, fallback) {
48352
48487
  if (typeof requested === "string" && requested.trim()) return requested.trim();
48488
+ if (session && session.trim()) return session.trim();
48353
48489
  if (saved && saved.trim()) return saved.trim();
48354
48490
  return fallback;
48355
48491
  }
48356
48492
  function buildConfig(p, apiKey, endpoints) {
48357
48493
  return {
48494
+ engine: p.name,
48358
48495
  sessionsRoot: getBuiltinSessionsRoot(p.name),
48359
48496
  defaultModel: p.defaultModel,
48360
48497
  createModel: async (modelName) => createOpenAiCompatModel({ baseURL: endpoints.openAiBaseUrl, apiKey, modelName }),
@@ -48380,6 +48517,7 @@ function makeAnthropicCompatSpec(p) {
48380
48517
  if (!textCheck.ok) return textCheck;
48381
48518
  params.model = resolveModel(
48382
48519
  typeof params.model === "string" ? params.model : void 0,
48520
+ await readSessionModel(p.name, params.cwd, params.sessionId),
48383
48521
  saved.builtinModel,
48384
48522
  p.defaultModel
48385
48523
  );
@@ -48410,17 +48548,126 @@ var deepseekProvider = {
48410
48548
  };
48411
48549
  var deepseekSpec = makeAnthropicCompatSpec(deepseekProvider);
48412
48550
 
48551
+ // packages/feature/agent/src/server/engines/ollamaCatalog.ts
48552
+ var LIST_TIMEOUT_MS = 3e3;
48553
+ function describeFailure(baseUrl, cause3) {
48554
+ const msg = cause3 instanceof Error ? cause3.message : String(cause3);
48555
+ if (/abort|timeout/i.test(msg)) {
48556
+ return `The Ollama server at ${baseUrl} did not answer within ${LIST_TIMEOUT_MS}ms.`;
48557
+ }
48558
+ if (/ECONNREFUSED|fetch failed|ENOTFOUND|EHOSTUNREACH/i.test(msg)) {
48559
+ return `Cannot reach the Ollama server at ${baseUrl} (${msg}). Start it with \`ollama serve\`, or set another URL in the Ollama picker.`;
48560
+ }
48561
+ return `Failed to list models from the Ollama server at ${baseUrl}: ${msg}`;
48562
+ }
48563
+ async function listOllamaModels() {
48564
+ const baseUrl = await resolveOllamaBaseURL();
48565
+ try {
48566
+ const res = await fetch(`${baseUrl}/api/tags`, { signal: AbortSignal.timeout(LIST_TIMEOUT_MS) });
48567
+ if (res.ok) {
48568
+ const data = await res.json();
48569
+ const models = Array.isArray(data.models) ? data.models : [];
48570
+ if (models.length > 0) {
48571
+ return {
48572
+ ok: true,
48573
+ baseUrl,
48574
+ models: models.map((m) => ({
48575
+ name: m.name,
48576
+ size: m.size,
48577
+ modified_at: m.modified_at,
48578
+ family: m.details?.family,
48579
+ parameter_size: m.details?.parameter_size
48580
+ }))
48581
+ };
48582
+ }
48583
+ }
48584
+ } catch {
48585
+ }
48586
+ try {
48587
+ const res = await fetch(`${baseUrl}/v1/models`, { signal: AbortSignal.timeout(LIST_TIMEOUT_MS) });
48588
+ if (!res.ok) {
48589
+ return {
48590
+ ok: false,
48591
+ baseUrl,
48592
+ reason: `The Ollama server at ${baseUrl} returned HTTP ${res.status} for its model list.`
48593
+ };
48594
+ }
48595
+ const data = await res.json();
48596
+ const models = Array.isArray(data.data) ? data.data : [];
48597
+ return {
48598
+ ok: true,
48599
+ baseUrl,
48600
+ models: models.map((m) => ({
48601
+ name: m.id,
48602
+ size: 0,
48603
+ modified_at: m.created ? new Date(m.created * 1e3).toISOString() : "",
48604
+ family: m.owned_by || void 0
48605
+ }))
48606
+ };
48607
+ } catch (cause3) {
48608
+ return { ok: false, baseUrl, reason: describeFailure(baseUrl, cause3) };
48609
+ }
48610
+ }
48611
+
48413
48612
  // packages/feature/agent/src/server/engines/ollama.ts
48414
- var DEFAULT_MODEL2 = "qwen3.5:35b-a3b-coding-nvfp4";
48415
48613
  var OLLAMA_CONFIG = {
48614
+ engine: "ollama",
48416
48615
  sessionsRoot: getBuiltinSessionsRoot("ollama"),
48417
- defaultModel: DEFAULT_MODEL2,
48418
48616
  createModel: (model) => createOllamaModel(model)
48419
48617
  };
48618
+ var fail20 = (error48) => ({ ok: false, status: 400, error: error48 });
48619
+ function matchInstalled(requested, models) {
48620
+ const exact = models.find((m) => m.name === requested);
48621
+ if (exact) return exact.name;
48622
+ const byTag = models.filter((m) => m.name.startsWith(`${requested}:`));
48623
+ return byTag.length === 1 ? byTag[0].name : void 0;
48624
+ }
48625
+ var nameList = (models) => models.map((m) => m.name).join(", ");
48626
+ async function resolveDefaultOllamaModel() {
48627
+ const catalog = await listOllamaModels();
48628
+ if (!catalog.ok) {
48629
+ return { ok: false, reason: `${catalog.reason} Cockpit picks the model from that list.` };
48630
+ }
48631
+ if (catalog.models.length === 0) {
48632
+ return {
48633
+ ok: false,
48634
+ reason: `The Ollama server at ${catalog.baseUrl} has no models installed. Pull one with \`ollama pull <model>\` (e.g. \`ollama pull qwen3\`), then try again.`
48635
+ };
48636
+ }
48637
+ const last5 = await readOllamaLastModel();
48638
+ return { ok: true, model: last5 && matchInstalled(last5, catalog.models) || catalog.models[0].name };
48639
+ }
48640
+ async function resolveOllamaModel(params) {
48641
+ const requested = typeof params.model === "string" ? params.model.trim() : "";
48642
+ if (!requested) {
48643
+ const recorded = await readSessionModel("ollama", params.cwd, params.sessionId);
48644
+ const choice2 = recorded ? { ok: true, model: recorded } : await resolveDefaultOllamaModel();
48645
+ if (!choice2.ok) return fail20(choice2.reason);
48646
+ params.model = choice2.model;
48647
+ await rememberOllamaLastModel(choice2.model);
48648
+ return { ok: true };
48649
+ }
48650
+ const catalog = await listOllamaModels();
48651
+ if (!catalog.ok) {
48652
+ params.model = requested;
48653
+ return { ok: true };
48654
+ }
48655
+ const installed = matchInstalled(requested, catalog.models);
48656
+ if (!installed) {
48657
+ return fail20(
48658
+ catalog.models.length === 0 ? `The Ollama server at ${catalog.baseUrl} has no models installed, so '${requested}' cannot run. Pull it with \`ollama pull ${requested}\`.` : `Model '${requested}' is not installed on the Ollama server at ${catalog.baseUrl}. Available: ${nameList(catalog.models)}.`
48659
+ );
48660
+ }
48661
+ params.model = installed;
48662
+ await rememberOllamaLastModel(installed);
48663
+ return { ok: true };
48664
+ }
48420
48665
  var ollamaSpec = {
48421
48666
  name: "ollama",
48422
48667
  async preflight(params) {
48423
- return requireTextPrompt(params);
48668
+ const textCheck = requireTextPrompt(params);
48669
+ if (!textCheck.ok) return textCheck;
48670
+ return resolveOllamaModel(params);
48424
48671
  },
48425
48672
  runner: {
48426
48673
  run: (ctx) => runBuiltinAgent(ctx, OLLAMA_CONFIG)
@@ -48430,12 +48677,12 @@ var ollamaSpec = {
48430
48677
 
48431
48678
  // packages/feature/agent/src/server/engines/kimi.ts
48432
48679
  var KIMI_OPENAI_BASE_URL = "https://api.kimi.com/coding/v1";
48433
- var DEFAULT_MODEL3 = "k3";
48680
+ var DEFAULT_MODEL2 = "k3";
48434
48681
  var kimiProvider = {
48435
48682
  name: "kimi",
48436
48683
  label: "Kimi",
48437
48684
  endpoints: { openAiBaseUrl: KIMI_OPENAI_BASE_URL },
48438
- defaultModel: DEFAULT_MODEL3,
48685
+ defaultModel: DEFAULT_MODEL2,
48439
48686
  apiKey: kimiApiKey,
48440
48687
  // Kimi's coding models are thinking-only and reject any temperature but 1 with
48441
48688
  // `invalid temperature: only 1 is allowed for this model`, which fails the turn before a
@@ -48450,7 +48697,7 @@ var GLM_REGIONS = {
48450
48697
  global: { openAiBaseUrl: "https://api.z.ai/api/coding/paas/v4" }
48451
48698
  };
48452
48699
  var GLM_REGION_IDS = Object.keys(GLM_REGIONS);
48453
- var DEFAULT_MODEL4 = "glm-5.3";
48700
+ var DEFAULT_MODEL3 = "glm-5.3";
48454
48701
  var glmProvider = {
48455
48702
  name: "glm",
48456
48703
  label: "GLM",
@@ -48460,7 +48707,7 @@ var glmProvider = {
48460
48707
  // Shared with the picker so the UI cannot claim one host while runs go to another.
48461
48708
  defaultFor: defaultRegionForLanguage
48462
48709
  },
48463
- defaultModel: DEFAULT_MODEL4,
48710
+ defaultModel: DEFAULT_MODEL3,
48464
48711
  apiKey: glmApiKey
48465
48712
  // No builtinTemperature override: temperature 0 with tools is accepted here (verified),
48466
48713
  // unlike Kimi's thinking-only models.
@@ -49602,11 +49849,15 @@ var fileExists = (p) => Effect_exports.tryPromise(() => stat5(p)).pipe(
49602
49849
  Effect_exports.map((s) => s.isFile()),
49603
49850
  Effect_exports.orElseSucceed(() => false)
49604
49851
  );
49605
- var validateRequest = (body) => Effect_exports.gen(function* () {
49852
+ var inheritedEngine = (parentRunId) => {
49853
+ const parent = parentRunId ? getRunInfo(parentRunId)?.engine : null;
49854
+ return parent && DELEGATION_ENGINES.includes(parent) ? parent : "claude";
49855
+ };
49856
+ var validateRequest = (body, parentRunId) => Effect_exports.gen(function* () {
49606
49857
  const cwd = str(body.cwd);
49607
49858
  if (!cwd || !isAbsolute3(cwd)) return yield* Effect_exports.fail(invalid("cwd", "must be an absolute path"));
49608
49859
  if (!(yield* isDirectory2(cwd))) return yield* Effect_exports.fail(invalid("cwd", "directory does not exist"));
49609
- const engine = str(body.engine) ?? "claude";
49860
+ const engine = str(body.engine) ?? inheritedEngine(parentRunId);
49610
49861
  if (!DELEGATION_ENGINES.includes(engine)) {
49611
49862
  return yield* Effect_exports.fail(invalid("engine", `expected one of ${DELEGATION_ENGINES.join(", ")}`));
49612
49863
  }
@@ -49807,18 +50058,19 @@ var DelegationServiceLive = Layer_exports.effect(
49807
50058
  if (!spec) return yield* Effect_exports.fail(invalid("engine", `no engine spec for ${request2.engine}`));
49808
50059
  const parent = yield* resolveParent(parentRunId);
49809
50060
  const presetId = randomUUID4();
50061
+ const dispatchParams = {
50062
+ prompt: buildChildPrompt(request2, parent),
50063
+ cwd: request2.cwd,
50064
+ engine: request2.engine,
50065
+ runId: presetId,
50066
+ ...request2.engine === "claude" && { newSessionId: presetId },
50067
+ ...request2.model && { model: request2.model }
50068
+ };
49810
50069
  const runKey = yield* Effect_exports.acquireUseRelease(
49811
50070
  reserve,
49812
50071
  () => Effect_exports.gen(function* () {
49813
50072
  const outcome = yield* Effect_exports.tryPromise({
49814
- try: () => dispatchChat2(spec, {
49815
- prompt: buildChildPrompt(request2, parent),
49816
- cwd: request2.cwd,
49817
- engine: request2.engine,
49818
- runId: presetId,
49819
- ...request2.engine === "claude" && { newSessionId: presetId },
49820
- ...request2.model && { model: request2.model }
49821
- }),
50073
+ try: () => dispatchChat2(spec, dispatchParams),
49822
50074
  catch: (cause3) => new AgentError({ provider: request2.engine, kind: "unknown", cause: cause3 })
49823
50075
  });
49824
50076
  if (!outcome.ok) return yield* Effect_exports.fail(invalid("engine", outcome.error));
@@ -49830,10 +50082,11 @@ var DelegationServiceLive = Layer_exports.effect(
49830
50082
  const sessionId = request2.engine === "codex" ? yield* waitForSessionId(runKey, SESSION_ID_TIMEOUT).pipe(
49831
50083
  Effect_exports.tapError(() => Effect_exports.sync(() => requestStop(runKey)))
49832
50084
  ) : presetId;
50085
+ const model = dispatchParams.model ?? request2.model;
49833
50086
  return {
49834
50087
  cwd: request2.cwd,
49835
50088
  engine: request2.engine,
49836
- ...request2.model && { model: request2.model },
50089
+ ...model && { model },
49837
50090
  sessionId,
49838
50091
  link: buildSessionLink(request2.cwd, sessionId),
49839
50092
  title: request2.title,
@@ -50432,7 +50685,7 @@ function deriveBaseUrl() {
50432
50685
  return `http://localhost:${port3}`;
50433
50686
  }
50434
50687
  var COMMAND_LINE_RE = /^\s*(\/@|\/|@)(\S+?)(?:\s+|$)/;
50435
- function resolveCommandPrompt(prompt, language = "en", _req) {
50688
+ function resolveCommandPrompt(prompt, language = "en", _req, cwd) {
50436
50689
  const lang = language.startsWith("zh") ? "zh" : "en";
50437
50690
  const userSkills = listUserSkills();
50438
50691
  const builtins = new Set(listBuiltinSkillNames());
@@ -50446,7 +50699,8 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
50446
50699
  if (!m) return;
50447
50700
  const marker = m[1];
50448
50701
  if (isKnown(marker, m[2])) {
50449
- cmds.push({ i, marker, cmd: m[2], rest: line.slice(m[0].length).trim() });
50702
+ const local = marker === "@" && isLocalBotDir(cwd, bots.get(m[2]));
50703
+ cmds.push({ i, marker, cmd: m[2], rest: line.slice(m[0].length).trim(), local });
50450
50704
  return;
50451
50705
  }
50452
50706
  if (marker !== "@") return;
@@ -50464,6 +50718,7 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
50464
50718
  const consumed = /* @__PURE__ */ new Set();
50465
50719
  const listed = [];
50466
50720
  const seen = /* @__PURE__ */ new Set();
50721
+ const key = (kind, name) => `${kind}:${name}`;
50467
50722
  cmds.forEach((c, k) => {
50468
50723
  const nextCmd = k + 1 < cmds.length ? cmds[k + 1].i : lines.length;
50469
50724
  const bodyLines = [];
@@ -50474,26 +50729,41 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
50474
50729
  consumed.add(j);
50475
50730
  }
50476
50731
  const ref = c.marker === "@" ? { name: `@${c.cmd}`, path: bots.get(c.cmd), content: null } : resolveSkillRef(c.cmd, baseUrl, userSkills);
50477
- rendered.set(c.i, renderCommandLine(c.marker, ref, bodyLines.join("\n"), lang, showLocus));
50478
- if (ref.path && !seen.has(ref.name)) {
50479
- seen.add(ref.name);
50480
- listed.push({ name: ref.name, path: ref.path, kind: c.marker === "@" ? "handoff" : "read" });
50732
+ const mainSession = c.marker === "/" || c.local;
50733
+ rendered.set(c.i, renderCommandLine(mainSession, ref, bodyLines.join("\n"), lang, showLocus));
50734
+ const kind = c.marker === "@" && !c.local ? "handoff" : "read";
50735
+ if (ref.path && !seen.has(key(kind, ref.name))) {
50736
+ seen.add(key(kind, ref.name));
50737
+ listed.push({ name: ref.name, path: ref.path, kind });
50481
50738
  }
50482
50739
  });
50483
50740
  let botRunInline = null;
50484
- if (cmds.some((c) => c.marker === "@")) {
50485
- const run6 = resolveSkillRef("bot-run", baseUrl, userSkills);
50486
- if (run6.path && !seen.has(run6.name)) {
50487
- seen.add(run6.name);
50488
- listed.push({ name: run6.name, path: run6.path, kind: "read" });
50489
- } else if (!run6.path) {
50490
- botRunInline = run6.content;
50491
- }
50741
+ let botTurnInline = null;
50742
+ const delegates = cmds.some((c) => c.marker === "@" && !c.local);
50743
+ const runsHere = cmds.some((c) => c.marker === "@" && c.local);
50744
+ if (delegates || runsHere) {
50492
50745
  const turn = resolveSkillRef("bot-turn", baseUrl, userSkills);
50493
- if (turn.path && !seen.has(turn.name)) {
50494
- seen.add(turn.name);
50746
+ if (delegates && turn.path && !seen.has(key("handoff", turn.name))) {
50747
+ seen.add(key("handoff", turn.name));
50495
50748
  listed.unshift({ name: turn.name, path: turn.path, kind: "handoff" });
50496
50749
  }
50750
+ if (runsHere) {
50751
+ if (turn.path && !seen.has(key("read", turn.name))) {
50752
+ seen.add(key("read", turn.name));
50753
+ listed.unshift({ name: turn.name, path: turn.path, kind: "read" });
50754
+ } else if (!turn.path) {
50755
+ botTurnInline = turn.content;
50756
+ }
50757
+ }
50758
+ if (delegates) {
50759
+ const run6 = resolveSkillRef("bot-run", baseUrl, userSkills);
50760
+ if (run6.path && !seen.has(key("read", run6.name))) {
50761
+ seen.add(key("read", run6.name));
50762
+ listed.unshift({ name: run6.name, path: run6.path, kind: "read" });
50763
+ } else if (!run6.path) {
50764
+ botRunInline = run6.content;
50765
+ }
50766
+ }
50497
50767
  }
50498
50768
  const out = [];
50499
50769
  for (let i = 0; i < lines.length; i++) {
@@ -50508,10 +50778,12 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
50508
50778
  return `${header}
50509
50779
  ${items.map((s) => `- ${s.name}${sep2}${s.path}`).join("\n")}`;
50510
50780
  };
50781
+ const handoffHeader = runsHere ? lang === "zh" ? "\u4EE5\u4E0B\u8DEF\u5F84\u539F\u6837\u8F6C\u4EA4\u7ED9\u4F60\u6D3E\u53D1\u7684\u5B50\u4F1A\u8BDD\uFF1B\u9664\u4E0A\u9762\u8BFB\u53D6\u5217\u8868\u5DF2\u5217\u51FA\u7684\u4EE5\u5916\uFF0C\u4E0D\u8981\u81EA\u5DF1\u6253\u5F00\uFF1A" : "Pass these paths verbatim to the session you delegate to; do not open any that the read list above does not already list:" : lang === "zh" ? "\u4EE5\u4E0B\u6587\u4EF6\u4EA4\u7ED9\u4F60\u6D3E\u53D1\u7684\u5B50\u4F1A\u8BDD\u53BB\u8BFB\uFF0C\u4F60\u53EA\u8F6C\u4EA4\u8DEF\u5F84\uFF0C\u4E0D\u8981\u81EA\u5DF1\u6253\u5F00\uFF1A" : "These files are for the session you delegate to. Pass the paths along; do not open them yourself:";
50511
50782
  const blocks = [
50512
50783
  block("read", lang === "zh" ? "\u8BF7\u5148\u8BFB\u53D6\u4EE5\u4E0B skill \u6587\u4EF6\uFF0C\u518D\u636E\u6B64\u6267\u884C\uFF1A" : "Read these skill files first, then act accordingly:"),
50513
- block("handoff", lang === "zh" ? "\u4EE5\u4E0B\u6587\u4EF6\u4EA4\u7ED9\u4F60\u6D3E\u53D1\u7684\u5B50\u4F1A\u8BDD\u53BB\u8BFB\uFF0C\u4F60\u53EA\u8F6C\u4EA4\u8DEF\u5F84\uFF0C\u4E0D\u8981\u81EA\u5DF1\u6253\u5F00\uFF1A" : "These files are for the session you delegate to. Pass the paths along; do not open them yourself:"),
50514
- botRunInline
50784
+ block("handoff", handoffHeader),
50785
+ botRunInline,
50786
+ botTurnInline
50515
50787
  ].filter((b) => b !== null);
50516
50788
  if (blocks.length > 0) result = `${result}
50517
50789
 
@@ -50526,19 +50798,24 @@ function appendUnresolvedNote(result, unresolved, lang) {
50526
50798
  ${header}
50527
50799
  ${unresolved.map((u) => `- ${u}`).join("\n")}`;
50528
50800
  }
50529
- function renderCommandLine(marker, ref, body, lang, showLocus) {
50801
+ function renderCommandLine(mainSession, ref, body, lang, showLocus) {
50530
50802
  if (ref.path) {
50531
- const tag = showLocus ? `[${locusWord(marker, lang)}\xB7${ref.name}]` : `[${ref.name}]`;
50803
+ const tag = showLocus ? `[${locusWord(mainSession, lang)}\xB7${ref.name}]` : `[${ref.name}]`;
50532
50804
  return body ? `${tag} ${body}` : tag;
50533
50805
  }
50534
- const locus = showLocus ? `[${locusWord(marker, lang)}] ` : "";
50806
+ const locus = showLocus ? `[${locusWord(mainSession, lang)}] ` : "";
50535
50807
  const then = body ? lang === "zh" ? `\uFF0C\u7136\u540E\uFF1A${body}` : `, then: ${body}` : "";
50536
50808
  return `${locus}${ref.content ?? ""}${then}`;
50537
50809
  }
50538
- function locusWord(marker, lang) {
50539
- if (marker !== "/") return "subagent";
50810
+ function locusWord(mainSession, lang) {
50811
+ if (!mainSession) return "subagent";
50540
50812
  return lang === "zh" ? "\u4E3B\u4F1A\u8BDD" : "main session";
50541
50813
  }
50814
+ function isLocalBotDir(cwd, manifestPath) {
50815
+ if (!cwd || !path4.isAbsolute(cwd)) return false;
50816
+ const norm = (p) => realpathOr(p.replace(/[\\/]+$/, ""));
50817
+ return norm(cwd) === norm(path4.dirname(manifestPath));
50818
+ }
50542
50819
  function resolveSkillRef(cmd, baseUrl, userSkills) {
50543
50820
  const skill = userSkills.find((s) => s.name === cmd);
50544
50821
  if (skill) return { name: cmd, path: skill.path, content: null };
@@ -50622,7 +50899,7 @@ async function dispatchChat2(spec, body, request2) {
50622
50899
  return { ok: false, status: 409, error: "session is already running" };
50623
50900
  }
50624
50901
  const rawPrompt = body.prompt;
50625
- const prompt = typeof rawPrompt === "string" ? resolveCommandPrompt(rawPrompt, language, request2) : rawPrompt;
50902
+ const prompt = typeof rawPrompt === "string" ? resolveCommandPrompt(rawPrompt, language, request2, cwd) : rawPrompt;
50626
50903
  const hasContent = prompt && typeof prompt === "string" || images && images.length > 0;
50627
50904
  if (!hasContent) {
50628
50905
  return { ok: false, status: 400, error: "Missing prompt or images" };
@@ -50637,7 +50914,7 @@ async function dispatchChat2(spec, body, request2) {
50637
50914
  let currentKey = sessionId || runId;
50638
50915
  let actualSessionId = sessionId;
50639
50916
  let isClosed = false;
50640
- if (!startRun(currentKey, cwd || "", promptText, runId)) {
50917
+ if (!startRun(currentKey, cwd || "", promptText, runId, spec.name)) {
50641
50918
  return { ok: false, status: 409, error: "run already active" };
50642
50919
  }
50643
50920
  setRunAbort(currentKey, () => {