@surething/cockpit 1.0.261 → 1.0.262

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 (525) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +7 -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 +4 -4
  6. package/.next-prod/routes-manifest.json +18 -0
  7. package/.next-prod/server/app/_global-error/page.js +2 -2
  8. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next-prod/server/app/_global-error.html +1 -1
  10. package/.next-prod/server/app/_global-error.rsc +1 -1
  11. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  14. package/.next-prod/server/app/_not-found/page.js +1 -1
  15. package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
  16. package/.next-prod/server/app/_not-found.html +2 -2
  17. package/.next-prod/server/app/_not-found.rsc +4 -4
  18. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +4 -4
  19. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +12 -11
  20. package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  21. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/.next-prod/server/app/api/agent/test/route.js +1 -1
  23. package/.next-prod/server/app/api/bash/route.js +1 -1
  24. package/.next-prod/server/app/api/chat/codex/route.js +1 -1
  25. package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
  26. package/.next-prod/server/app/api/chat/glm/route.js +1 -1
  27. package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
  28. package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
  29. package/.next-prod/server/app/api/chat/route.js +1 -1
  30. package/.next-prod/server/app/api/chat/stop/route.js +1 -1
  31. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  32. package/.next-prod/server/app/api/commands/route.js +1 -1
  33. package/.next-prod/server/app/api/comments/route.js +1 -1
  34. package/.next-prod/server/app/api/db/columns/route.js +1 -1
  35. package/.next-prod/server/app/api/db/connect/route.js +1 -1
  36. package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
  37. package/.next-prod/server/app/api/db/export/route.js +1 -1
  38. package/.next-prod/server/app/api/db/query/route.js +1 -1
  39. package/.next-prod/server/app/api/db/schemas/route.js +2 -2
  40. package/.next-prod/server/app/api/deepseek/balance/route.js +1 -1
  41. package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
  42. package/.next-prod/server/app/api/deepseek/models/route.js +1 -1
  43. package/.next-prod/server/app/api/dev/spans/route.js +1 -1
  44. package/.next-prod/server/app/api/extension/version/route.js +1 -1
  45. package/.next-prod/server/app/api/file/route.js +1 -1
  46. package/.next-prod/server/app/api/files/blame/route.js +1 -1
  47. package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
  48. package/.next-prod/server/app/api/files/copy/route.js +1 -1
  49. package/.next-prod/server/app/api/files/delete/route.js +1 -1
  50. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  51. package/.next-prod/server/app/api/files/index/route.js +1 -1
  52. package/.next-prod/server/app/api/files/init/route.js +1 -1
  53. package/.next-prod/server/app/api/files/paste/route.js +1 -1
  54. package/.next-prod/server/app/api/files/read/route.js +1 -1
  55. package/.next-prod/server/app/api/files/readdir/route.js +1 -1
  56. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  57. package/.next-prod/server/app/api/files/save/route.js +1 -1
  58. package/.next-prod/server/app/api/files/search/route.js +1 -1
  59. package/.next-prod/server/app/api/files/stat/route.js +1 -1
  60. package/.next-prod/server/app/api/files/text/route.js +1 -1
  61. package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
  62. package/.next-prod/server/app/api/git/branches/route.js +1 -1
  63. package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
  64. package/.next-prod/server/app/api/git/commits/route.js +1 -1
  65. package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
  66. package/.next-prod/server/app/api/git/diff/route.js +1 -1
  67. package/.next-prod/server/app/api/git/discard/route.js +1 -1
  68. package/.next-prod/server/app/api/git/stage/route.js +1 -1
  69. package/.next-prod/server/app/api/git/status/route.js +1 -1
  70. package/.next-prod/server/app/api/git/unstage/route.js +1 -1
  71. package/.next-prod/server/app/api/git/worktree/route.js +1 -1
  72. package/.next-prod/server/app/api/glm/credentials/route.js +1 -1
  73. package/.next-prod/server/app/api/glm/models/route.js +1 -1
  74. package/.next-prod/server/app/api/glm/usage/route.js +1 -1
  75. package/.next-prod/server/app/api/global-state/route.js +1 -1
  76. package/.next-prod/server/app/api/health/route.js +1 -1
  77. package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -1
  78. package/.next-prod/server/app/api/html-apps/route.js +1 -1
  79. package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
  80. package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
  81. package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
  82. package/.next-prod/server/app/api/kimi/credentials/route.js +1 -1
  83. package/.next-prod/server/app/api/kimi/models/route.js +1 -1
  84. package/.next-prod/server/app/api/kimi/usage/route.js +1 -1
  85. package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
  86. package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
  87. package/.next-prod/server/app/api/lsp/references/route.js +1 -1
  88. package/.next-prod/server/app/api/lsp/status/route.js +1 -1
  89. package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
  90. package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
  91. package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
  92. package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
  93. package/.next-prod/server/app/api/mysql/export/route.js +1 -1
  94. package/.next-prod/server/app/api/mysql/query/route.js +1 -1
  95. package/.next-prod/server/app/api/mysql/schemas/route.js +1 -1
  96. package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
  97. package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
  98. package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
  99. package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
  100. package/.next-prod/server/app/api/note/route.js +1 -1
  101. package/.next-prod/server/app/api/ollama/config/route.js +1 -1
  102. package/.next-prod/server/app/api/ollama/models/route.js +1 -1
  103. package/.next-prod/server/app/api/ollama/start/route.js +1 -1
  104. package/.next-prod/server/app/api/open-cursor/route.js +1 -1
  105. package/.next-prod/server/app/api/open-vscode/route.js +1 -1
  106. package/.next-prod/server/app/api/pick-folder/route.js +1 -1
  107. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  108. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  109. package/.next-prod/server/app/api/project-state/route.js +2 -2
  110. package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
  111. package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
  112. package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
  113. package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
  114. package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
  115. package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
  116. package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
  117. package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
  118. package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
  119. package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
  120. package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
  121. package/.next-prod/server/app/api/projects/route.js +1 -1
  122. package/.next-prod/server/app/api/prompts/config/route.js +1 -1
  123. package/.next-prod/server/app/api/push/public-key/route.js +1 -1
  124. package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
  125. package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
  126. package/.next-prod/server/app/api/redis/command/route.js +1 -1
  127. package/.next-prod/server/app/api/redis/connect/route.js +1 -1
  128. package/.next-prod/server/app/api/redis/delete/route.js +1 -1
  129. package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
  130. package/.next-prod/server/app/api/redis/get/route.js +1 -1
  131. package/.next-prod/server/app/api/redis/keys/route.js +1 -1
  132. package/.next-prod/server/app/api/redis/set/route.js +1 -1
  133. package/.next-prod/server/app/api/restart/route.js +1 -0
  134. package/.next-prod/server/app/api/restart/route.js.nft.json +1 -0
  135. package/.next-prod/server/app/api/restart/route_client-reference-manifest.js +1 -0
  136. package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
  137. package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
  138. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  139. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  140. package/.next-prod/server/app/api/review/order/route.js +1 -1
  141. package/.next-prod/server/app/api/review/route.js +1 -1
  142. package/.next-prod/server/app/api/review/share-info/route.js +1 -1
  143. package/.next-prod/server/app/api/review/users/route.js +1 -1
  144. package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
  145. package/.next-prod/server/app/api/services/config/route.js +1 -1
  146. package/.next-prod/server/app/api/services/scripts/route.js +1 -1
  147. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  148. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  149. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  150. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  151. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  152. package/.next-prod/server/app/api/sessions/route.js +1 -1
  153. package/.next-prod/server/app/api/settings/route.js +1 -1
  154. package/.next-prod/server/app/api/shutdown/route.js +1 -0
  155. package/.next-prod/server/app/api/shutdown/route.js.nft.json +1 -0
  156. package/.next-prod/server/app/api/shutdown/route_client-reference-manifest.js +1 -0
  157. package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
  158. package/.next-prod/server/app/api/skills/content/route.js +1 -1
  159. package/.next-prod/server/app/api/skills/route.js +1 -1
  160. package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
  161. package/.next-prod/server/app/api/snapshots/route.js +1 -1
  162. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  163. package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
  164. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  165. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  166. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  167. package/.next-prod/server/app/api/update/route.js +1 -0
  168. package/.next-prod/server/app/api/update/route.js.nft.json +1 -0
  169. package/.next-prod/server/app/api/update/route_client-reference-manifest.js +1 -0
  170. package/.next-prod/server/app/api/version/route.js +1 -1
  171. package/.next-prod/server/app/apps/[...path]/route.js +1 -1
  172. package/.next-prod/server/app/favicon.ico/route.js +1 -1
  173. package/.next-prod/server/app/m/page.js +1 -1
  174. package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
  175. package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
  176. package/.next-prod/server/app/page.js +1 -1
  177. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  178. package/.next-prod/server/app/project/page.js +1 -1
  179. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  180. package/.next-prod/server/app/review/[id]/page.js +1 -1
  181. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  182. package/.next-prod/server/app-paths-manifest.json +7 -4
  183. package/.next-prod/server/chunks/5750.js +16 -13
  184. package/.next-prod/server/chunks/6495.js +1 -1
  185. package/.next-prod/server/chunks/6548.js +1 -1
  186. package/.next-prod/server/chunks/7184.js +1 -1
  187. package/.next-prod/server/chunks/841.js +1 -1
  188. package/.next-prod/server/functions-config-manifest.json +3 -0
  189. package/.next-prod/server/middleware-build-manifest.js +1 -1
  190. package/.next-prod/server/pages/404.html +2 -2
  191. package/.next-prod/server/pages/500.html +1 -1
  192. package/.next-prod/server/server-reference-manifest.json +1 -1
  193. package/.next-prod/static/chunks/{1372-d16d68b1b03a345a.js → 1372-a26fa30d21bd1ecc.js} +1 -1
  194. package/.next-prod/static/chunks/5400-bf3fe22440a73161.js +36 -0
  195. package/.next-prod/static/chunks/6784-d51b98432358f755.js +381 -0
  196. package/.next-prod/static/chunks/app/_global-error/page-7c7e4c414aa6453c.js +1 -0
  197. package/.next-prod/static/chunks/app/api/agent/test/route-7c7e4c414aa6453c.js +1 -0
  198. package/.next-prod/static/chunks/app/api/bash/route-7c7e4c414aa6453c.js +1 -0
  199. package/.next-prod/static/chunks/app/api/chat/codex/route-7c7e4c414aa6453c.js +1 -0
  200. package/.next-prod/static/chunks/app/api/chat/deepseek/route-7c7e4c414aa6453c.js +1 -0
  201. package/.next-prod/static/chunks/app/api/chat/glm/route-7c7e4c414aa6453c.js +1 -0
  202. package/.next-prod/static/chunks/app/api/chat/kimi/route-7c7e4c414aa6453c.js +1 -0
  203. package/.next-prod/static/chunks/app/api/chat/ollama/route-7c7e4c414aa6453c.js +1 -0
  204. package/.next-prod/static/chunks/app/api/chat/route-7c7e4c414aa6453c.js +1 -0
  205. package/.next-prod/static/chunks/app/api/chat/stop/route-7c7e4c414aa6453c.js +1 -0
  206. package/.next-prod/static/chunks/app/api/claude-stats/route-7c7e4c414aa6453c.js +1 -0
  207. package/.next-prod/static/chunks/app/api/commands/route-7c7e4c414aa6453c.js +1 -0
  208. package/.next-prod/static/chunks/app/api/comments/route-7c7e4c414aa6453c.js +1 -0
  209. package/.next-prod/static/chunks/app/api/db/columns/route-7c7e4c414aa6453c.js +1 -0
  210. package/.next-prod/static/chunks/app/api/db/connect/route-7c7e4c414aa6453c.js +1 -0
  211. package/.next-prod/static/chunks/app/api/db/disconnect/route-7c7e4c414aa6453c.js +1 -0
  212. package/.next-prod/static/chunks/app/api/db/export/route-7c7e4c414aa6453c.js +1 -0
  213. package/.next-prod/static/chunks/app/api/db/query/route-7c7e4c414aa6453c.js +1 -0
  214. package/.next-prod/static/chunks/app/api/db/schemas/route-7c7e4c414aa6453c.js +1 -0
  215. package/.next-prod/static/chunks/app/api/deepseek/balance/route-7c7e4c414aa6453c.js +1 -0
  216. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-7c7e4c414aa6453c.js +1 -0
  217. package/.next-prod/static/chunks/app/api/deepseek/models/route-7c7e4c414aa6453c.js +1 -0
  218. package/.next-prod/static/chunks/app/api/dev/spans/route-7c7e4c414aa6453c.js +1 -0
  219. package/.next-prod/static/chunks/app/api/extension/version/route-7c7e4c414aa6453c.js +1 -0
  220. package/.next-prod/static/chunks/app/api/file/route-7c7e4c414aa6453c.js +1 -0
  221. package/.next-prod/static/chunks/app/api/files/blame/route-7c7e4c414aa6453c.js +1 -0
  222. package/.next-prod/static/chunks/app/api/files/clipboard/route-7c7e4c414aa6453c.js +1 -0
  223. package/.next-prod/static/chunks/app/api/files/copy/route-7c7e4c414aa6453c.js +1 -0
  224. package/.next-prod/static/chunks/app/api/files/delete/route-7c7e4c414aa6453c.js +1 -0
  225. package/.next-prod/static/chunks/app/api/files/expanded/route-7c7e4c414aa6453c.js +1 -0
  226. package/.next-prod/static/chunks/app/api/files/index/route-7c7e4c414aa6453c.js +1 -0
  227. package/.next-prod/static/chunks/app/api/files/init/route-7c7e4c414aa6453c.js +1 -0
  228. package/.next-prod/static/chunks/app/api/files/paste/route-7c7e4c414aa6453c.js +1 -0
  229. package/.next-prod/static/chunks/app/api/files/read/route-7c7e4c414aa6453c.js +1 -0
  230. package/.next-prod/static/chunks/app/api/files/readdir/route-7c7e4c414aa6453c.js +1 -0
  231. package/.next-prod/static/chunks/app/api/files/recent/route-7c7e4c414aa6453c.js +1 -0
  232. package/.next-prod/static/chunks/app/api/files/save/route-7c7e4c414aa6453c.js +1 -0
  233. package/.next-prod/static/chunks/app/api/files/search/route-7c7e4c414aa6453c.js +1 -0
  234. package/.next-prod/static/chunks/app/api/files/stat/route-7c7e4c414aa6453c.js +1 -0
  235. package/.next-prod/static/chunks/app/api/files/text/route-7c7e4c414aa6453c.js +1 -0
  236. package/.next-prod/static/chunks/app/api/git/branch-diff/route-7c7e4c414aa6453c.js +1 -0
  237. package/.next-prod/static/chunks/app/api/git/branches/route-7c7e4c414aa6453c.js +1 -0
  238. package/.next-prod/static/chunks/app/api/git/commit-diff/route-7c7e4c414aa6453c.js +1 -0
  239. package/.next-prod/static/chunks/app/api/git/commits/route-7c7e4c414aa6453c.js +1 -0
  240. package/.next-prod/static/chunks/app/api/git/current-branch/route-7c7e4c414aa6453c.js +1 -0
  241. package/.next-prod/static/chunks/app/api/git/diff/route-7c7e4c414aa6453c.js +1 -0
  242. package/.next-prod/static/chunks/app/api/git/discard/route-7c7e4c414aa6453c.js +1 -0
  243. package/.next-prod/static/chunks/app/api/git/stage/route-7c7e4c414aa6453c.js +1 -0
  244. package/.next-prod/static/chunks/app/api/git/status/route-7c7e4c414aa6453c.js +1 -0
  245. package/.next-prod/static/chunks/app/api/git/unstage/route-7c7e4c414aa6453c.js +1 -0
  246. package/.next-prod/static/chunks/app/api/git/worktree/route-7c7e4c414aa6453c.js +1 -0
  247. package/.next-prod/static/chunks/app/api/glm/credentials/route-7c7e4c414aa6453c.js +1 -0
  248. package/.next-prod/static/chunks/app/api/glm/models/route-7c7e4c414aa6453c.js +1 -0
  249. package/.next-prod/static/chunks/app/api/glm/usage/route-7c7e4c414aa6453c.js +1 -0
  250. package/.next-prod/static/chunks/app/api/global-state/route-7c7e4c414aa6453c.js +1 -0
  251. package/.next-prod/static/chunks/app/api/health/route-7c7e4c414aa6453c.js +1 -0
  252. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-7c7e4c414aa6453c.js +1 -0
  253. package/.next-prod/static/chunks/app/api/html-apps/route-7c7e4c414aa6453c.js +1 -0
  254. package/.next-prod/static/chunks/app/api/jupyter/load/route-7c7e4c414aa6453c.js +1 -0
  255. package/.next-prod/static/chunks/app/api/jupyter/save/route-7c7e4c414aa6453c.js +1 -0
  256. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-7c7e4c414aa6453c.js +1 -0
  257. package/.next-prod/static/chunks/app/api/kimi/credentials/route-7c7e4c414aa6453c.js +1 -0
  258. package/.next-prod/static/chunks/app/api/kimi/models/route-7c7e4c414aa6453c.js +1 -0
  259. package/.next-prod/static/chunks/app/api/kimi/usage/route-7c7e4c414aa6453c.js +1 -0
  260. package/.next-prod/static/chunks/app/api/lsp/definition/route-7c7e4c414aa6453c.js +1 -0
  261. package/.next-prod/static/chunks/app/api/lsp/hover/route-7c7e4c414aa6453c.js +1 -0
  262. package/.next-prod/static/chunks/app/api/lsp/references/route-7c7e4c414aa6453c.js +1 -0
  263. package/.next-prod/static/chunks/app/api/lsp/status/route-7c7e4c414aa6453c.js +1 -0
  264. package/.next-prod/static/chunks/app/api/lsp/warmup/route-7c7e4c414aa6453c.js +1 -0
  265. package/.next-prod/static/chunks/app/api/mysql/columns/route-7c7e4c414aa6453c.js +1 -0
  266. package/.next-prod/static/chunks/app/api/mysql/connect/route-7c7e4c414aa6453c.js +1 -0
  267. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-7c7e4c414aa6453c.js +1 -0
  268. package/.next-prod/static/chunks/app/api/mysql/export/route-7c7e4c414aa6453c.js +1 -0
  269. package/.next-prod/static/chunks/app/api/mysql/query/route-7c7e4c414aa6453c.js +1 -0
  270. package/.next-prod/static/chunks/app/api/mysql/schemas/route-7c7e4c414aa6453c.js +1 -0
  271. package/.next-prod/static/chunks/app/api/neo4j/connect/route-7c7e4c414aa6453c.js +1 -0
  272. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-7c7e4c414aa6453c.js +1 -0
  273. package/.next-prod/static/chunks/app/api/neo4j/query/route-7c7e4c414aa6453c.js +1 -0
  274. package/.next-prod/static/chunks/app/api/neo4j/schema/route-7c7e4c414aa6453c.js +1 -0
  275. package/.next-prod/static/chunks/app/api/note/route-7c7e4c414aa6453c.js +1 -0
  276. package/.next-prod/static/chunks/app/api/ollama/config/route-7c7e4c414aa6453c.js +1 -0
  277. package/.next-prod/static/chunks/app/api/ollama/models/route-7c7e4c414aa6453c.js +1 -0
  278. package/.next-prod/static/chunks/app/api/ollama/start/route-7c7e4c414aa6453c.js +1 -0
  279. package/.next-prod/static/chunks/app/api/open-cursor/route-7c7e4c414aa6453c.js +1 -0
  280. package/.next-prod/static/chunks/app/api/open-vscode/route-7c7e4c414aa6453c.js +1 -0
  281. package/.next-prod/static/chunks/app/api/pick-folder/route-7c7e4c414aa6453c.js +1 -0
  282. package/.next-prod/static/chunks/app/api/pinned-sessions/route-7c7e4c414aa6453c.js +1 -0
  283. package/.next-prod/static/chunks/app/api/project-settings/route-7c7e4c414aa6453c.js +1 -0
  284. package/.next-prod/static/chunks/app/api/project-state/route-7c7e4c414aa6453c.js +1 -0
  285. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-7c7e4c414aa6453c.js +1 -0
  286. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-7c7e4c414aa6453c.js +1 -0
  287. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-7c7e4c414aa6453c.js +1 -0
  288. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-7c7e4c414aa6453c.js +1 -0
  289. package/.next-prod/static/chunks/app/api/projectGraph/context/route-7c7e4c414aa6453c.js +1 -0
  290. package/.next-prod/static/chunks/app/api/projectGraph/file/route-7c7e4c414aa6453c.js +1 -0
  291. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-7c7e4c414aa6453c.js +1 -0
  292. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-7c7e4c414aa6453c.js +1 -0
  293. package/.next-prod/static/chunks/app/api/projectGraph/related/route-7c7e4c414aa6453c.js +1 -0
  294. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-7c7e4c414aa6453c.js +1 -0
  295. package/.next-prod/static/chunks/app/api/projectGraph/search/route-7c7e4c414aa6453c.js +1 -0
  296. package/.next-prod/static/chunks/app/api/projects/route-7c7e4c414aa6453c.js +1 -0
  297. package/.next-prod/static/chunks/app/api/prompts/config/route-7c7e4c414aa6453c.js +1 -0
  298. package/.next-prod/static/chunks/app/api/push/public-key/route-7c7e4c414aa6453c.js +1 -0
  299. package/.next-prod/static/chunks/app/api/push/subscribe/route-7c7e4c414aa6453c.js +1 -0
  300. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-7c7e4c414aa6453c.js +1 -0
  301. package/.next-prod/static/chunks/app/api/redis/command/route-7c7e4c414aa6453c.js +1 -0
  302. package/.next-prod/static/chunks/app/api/redis/connect/route-7c7e4c414aa6453c.js +1 -0
  303. package/.next-prod/static/chunks/app/api/redis/delete/route-7c7e4c414aa6453c.js +1 -0
  304. package/.next-prod/static/chunks/app/api/redis/disconnect/route-7c7e4c414aa6453c.js +1 -0
  305. package/.next-prod/static/chunks/app/api/redis/get/route-7c7e4c414aa6453c.js +1 -0
  306. package/.next-prod/static/chunks/app/api/redis/keys/route-7c7e4c414aa6453c.js +1 -0
  307. package/.next-prod/static/chunks/app/api/redis/set/route-7c7e4c414aa6453c.js +1 -0
  308. package/.next-prod/static/chunks/app/api/restart/route-7c7e4c414aa6453c.js +1 -0
  309. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-7c7e4c414aa6453c.js +1 -0
  310. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-7c7e4c414aa6453c.js +1 -0
  311. package/.next-prod/static/chunks/app/api/review/[id]/route-7c7e4c414aa6453c.js +1 -0
  312. package/.next-prod/static/chunks/app/api/review/identify/route-7c7e4c414aa6453c.js +1 -0
  313. package/.next-prod/static/chunks/app/api/review/order/route-7c7e4c414aa6453c.js +1 -0
  314. package/.next-prod/static/chunks/app/api/review/route-7c7e4c414aa6453c.js +1 -0
  315. package/.next-prod/static/chunks/app/api/review/share-info/route-7c7e4c414aa6453c.js +1 -0
  316. package/.next-prod/static/chunks/app/api/review/users/route-7c7e4c414aa6453c.js +1 -0
  317. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-7c7e4c414aa6453c.js +1 -0
  318. package/.next-prod/static/chunks/app/api/services/config/route-7c7e4c414aa6453c.js +1 -0
  319. package/.next-prod/static/chunks/app/api/services/scripts/route-7c7e4c414aa6453c.js +1 -0
  320. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-7c7e4c414aa6453c.js +1 -0
  321. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-7c7e4c414aa6453c.js +1 -0
  322. package/.next-prod/static/chunks/app/api/session-by-path/route-7c7e4c414aa6453c.js +1 -0
  323. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-7c7e4c414aa6453c.js +1 -0
  324. package/.next-prod/static/chunks/app/api/sessions/projects/route-7c7e4c414aa6453c.js +1 -0
  325. package/.next-prod/static/chunks/app/api/sessions/route-7c7e4c414aa6453c.js +1 -0
  326. package/.next-prod/static/chunks/app/api/settings/route-7c7e4c414aa6453c.js +1 -0
  327. package/.next-prod/static/chunks/app/api/shutdown/route-7c7e4c414aa6453c.js +1 -0
  328. package/.next-prod/static/chunks/app/api/skills/[id]/route-7c7e4c414aa6453c.js +1 -0
  329. package/.next-prod/static/chunks/app/api/skills/content/route-7c7e4c414aa6453c.js +1 -0
  330. package/.next-prod/static/chunks/app/api/skills/route-7c7e4c414aa6453c.js +1 -0
  331. package/.next-prod/static/chunks/app/api/snapshots/diff/route-7c7e4c414aa6453c.js +1 -0
  332. package/.next-prod/static/chunks/app/api/snapshots/route-7c7e4c414aa6453c.js +1 -0
  333. package/.next-prod/static/chunks/app/api/terminal/aliases/route-7c7e4c414aa6453c.js +1 -0
  334. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-7c7e4c414aa6453c.js +1 -0
  335. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-7c7e4c414aa6453c.js +1 -0
  336. package/.next-prod/static/chunks/app/api/terminal/env/route-7c7e4c414aa6453c.js +1 -0
  337. package/.next-prod/static/chunks/app/api/terminal/history/route-7c7e4c414aa6453c.js +1 -0
  338. package/.next-prod/static/chunks/app/api/update/route-7c7e4c414aa6453c.js +1 -0
  339. package/.next-prod/static/chunks/app/api/version/route-7c7e4c414aa6453c.js +1 -0
  340. package/.next-prod/static/chunks/app/apps/[...path]/route-7c7e4c414aa6453c.js +1 -0
  341. package/.next-prod/static/chunks/app/{layout-ab52fc1a83af968b.js → layout-7b31e254e348e208.js} +1 -1
  342. package/.next-prod/static/chunks/app/manifest.webmanifest/route-7c7e4c414aa6453c.js +1 -0
  343. package/.next-prod/static/chunks/app/{page-5de8b6584e328a6f.js → page-cb0d12250512641d.js} +1 -1
  344. package/.next-prod/static/chunks/app/project/{page-5de8b6584e328a6f.js → page-cb0d12250512641d.js} +1 -1
  345. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-7c7e4c414aa6453c.js +1 -0
  346. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-7c7e4c414aa6453c.js +1 -0
  347. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-7c7e4c414aa6453c.js +1 -0
  348. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-7c7e4c414aa6453c.js +1 -0
  349. package/.next-prod/static/css/38ad6f470b64a40f.css +1 -0
  350. package/.next-prod/static/noNfrQRJFchmZSWx_yn1K/_buildManifest.js +1 -0
  351. package/.next-prod/trace +14 -14
  352. package/.next-prod/trace-build +1 -1
  353. package/.next-prod/types/app/api/restart/route.ts +353 -0
  354. package/.next-prod/types/app/api/shutdown/route.ts +353 -0
  355. package/.next-prod/types/app/api/update/route.ts +353 -0
  356. package/.next-prod/types/routes.d.ts +4 -1
  357. package/.next-prod/types/validator.ts +27 -0
  358. package/README.md +75 -0
  359. package/README.zh.md +64 -0
  360. package/bin/cock-service.mjs +498 -0
  361. package/bin/cock.mjs +35 -27
  362. package/bin/cockpitHome.mjs +33 -0
  363. package/bin/rotateLog.mjs +52 -0
  364. package/bin/updater.mjs +231 -0
  365. package/dist/{chunk-CLPJYIFC.mjs → chunk-AI7T3EXM.mjs} +4 -3
  366. package/dist/{chunk-B5LXMESP.mjs → chunk-LC4LAEWJ.mjs} +1 -1
  367. package/dist/{chunk-TU3GL2HK.mjs → chunk-ZCMAJV2M.mjs} +15 -4
  368. package/dist/httpApi.mjs +2 -2
  369. package/dist/scheduledTasks.mjs +24 -4
  370. package/dist/{server-2UJDVZ32.mjs → server-CQXVJT3F.mjs} +2 -2
  371. package/dist/wsServer.mjs +144 -112
  372. package/package.json +1 -1
  373. package/server.mjs +127 -11
  374. package/.next-prod/static/chunks/1157-164bcf046a0a9b15.js +0 -32
  375. package/.next-prod/static/chunks/6784-09dffdb0e8ca7fb3.js +0 -381
  376. package/.next-prod/static/chunks/app/_global-error/page-3c1c06e2de280418.js +0 -1
  377. package/.next-prod/static/chunks/app/api/agent/test/route-3c1c06e2de280418.js +0 -1
  378. package/.next-prod/static/chunks/app/api/bash/route-3c1c06e2de280418.js +0 -1
  379. package/.next-prod/static/chunks/app/api/chat/codex/route-3c1c06e2de280418.js +0 -1
  380. package/.next-prod/static/chunks/app/api/chat/deepseek/route-3c1c06e2de280418.js +0 -1
  381. package/.next-prod/static/chunks/app/api/chat/glm/route-3c1c06e2de280418.js +0 -1
  382. package/.next-prod/static/chunks/app/api/chat/kimi/route-3c1c06e2de280418.js +0 -1
  383. package/.next-prod/static/chunks/app/api/chat/ollama/route-3c1c06e2de280418.js +0 -1
  384. package/.next-prod/static/chunks/app/api/chat/route-3c1c06e2de280418.js +0 -1
  385. package/.next-prod/static/chunks/app/api/chat/stop/route-3c1c06e2de280418.js +0 -1
  386. package/.next-prod/static/chunks/app/api/claude-stats/route-3c1c06e2de280418.js +0 -1
  387. package/.next-prod/static/chunks/app/api/commands/route-3c1c06e2de280418.js +0 -1
  388. package/.next-prod/static/chunks/app/api/comments/route-3c1c06e2de280418.js +0 -1
  389. package/.next-prod/static/chunks/app/api/db/columns/route-3c1c06e2de280418.js +0 -1
  390. package/.next-prod/static/chunks/app/api/db/connect/route-3c1c06e2de280418.js +0 -1
  391. package/.next-prod/static/chunks/app/api/db/disconnect/route-3c1c06e2de280418.js +0 -1
  392. package/.next-prod/static/chunks/app/api/db/export/route-3c1c06e2de280418.js +0 -1
  393. package/.next-prod/static/chunks/app/api/db/query/route-3c1c06e2de280418.js +0 -1
  394. package/.next-prod/static/chunks/app/api/db/schemas/route-3c1c06e2de280418.js +0 -1
  395. package/.next-prod/static/chunks/app/api/deepseek/balance/route-3c1c06e2de280418.js +0 -1
  396. package/.next-prod/static/chunks/app/api/deepseek/credentials/route-3c1c06e2de280418.js +0 -1
  397. package/.next-prod/static/chunks/app/api/deepseek/models/route-3c1c06e2de280418.js +0 -1
  398. package/.next-prod/static/chunks/app/api/dev/spans/route-3c1c06e2de280418.js +0 -1
  399. package/.next-prod/static/chunks/app/api/extension/version/route-3c1c06e2de280418.js +0 -1
  400. package/.next-prod/static/chunks/app/api/file/route-3c1c06e2de280418.js +0 -1
  401. package/.next-prod/static/chunks/app/api/files/blame/route-3c1c06e2de280418.js +0 -1
  402. package/.next-prod/static/chunks/app/api/files/clipboard/route-3c1c06e2de280418.js +0 -1
  403. package/.next-prod/static/chunks/app/api/files/copy/route-3c1c06e2de280418.js +0 -1
  404. package/.next-prod/static/chunks/app/api/files/delete/route-3c1c06e2de280418.js +0 -1
  405. package/.next-prod/static/chunks/app/api/files/expanded/route-3c1c06e2de280418.js +0 -1
  406. package/.next-prod/static/chunks/app/api/files/index/route-3c1c06e2de280418.js +0 -1
  407. package/.next-prod/static/chunks/app/api/files/init/route-3c1c06e2de280418.js +0 -1
  408. package/.next-prod/static/chunks/app/api/files/paste/route-3c1c06e2de280418.js +0 -1
  409. package/.next-prod/static/chunks/app/api/files/read/route-3c1c06e2de280418.js +0 -1
  410. package/.next-prod/static/chunks/app/api/files/readdir/route-3c1c06e2de280418.js +0 -1
  411. package/.next-prod/static/chunks/app/api/files/recent/route-3c1c06e2de280418.js +0 -1
  412. package/.next-prod/static/chunks/app/api/files/save/route-3c1c06e2de280418.js +0 -1
  413. package/.next-prod/static/chunks/app/api/files/search/route-3c1c06e2de280418.js +0 -1
  414. package/.next-prod/static/chunks/app/api/files/stat/route-3c1c06e2de280418.js +0 -1
  415. package/.next-prod/static/chunks/app/api/files/text/route-3c1c06e2de280418.js +0 -1
  416. package/.next-prod/static/chunks/app/api/git/branch-diff/route-3c1c06e2de280418.js +0 -1
  417. package/.next-prod/static/chunks/app/api/git/branches/route-3c1c06e2de280418.js +0 -1
  418. package/.next-prod/static/chunks/app/api/git/commit-diff/route-3c1c06e2de280418.js +0 -1
  419. package/.next-prod/static/chunks/app/api/git/commits/route-3c1c06e2de280418.js +0 -1
  420. package/.next-prod/static/chunks/app/api/git/current-branch/route-3c1c06e2de280418.js +0 -1
  421. package/.next-prod/static/chunks/app/api/git/diff/route-3c1c06e2de280418.js +0 -1
  422. package/.next-prod/static/chunks/app/api/git/discard/route-3c1c06e2de280418.js +0 -1
  423. package/.next-prod/static/chunks/app/api/git/stage/route-3c1c06e2de280418.js +0 -1
  424. package/.next-prod/static/chunks/app/api/git/status/route-3c1c06e2de280418.js +0 -1
  425. package/.next-prod/static/chunks/app/api/git/unstage/route-3c1c06e2de280418.js +0 -1
  426. package/.next-prod/static/chunks/app/api/git/worktree/route-3c1c06e2de280418.js +0 -1
  427. package/.next-prod/static/chunks/app/api/glm/credentials/route-3c1c06e2de280418.js +0 -1
  428. package/.next-prod/static/chunks/app/api/glm/models/route-3c1c06e2de280418.js +0 -1
  429. package/.next-prod/static/chunks/app/api/glm/usage/route-3c1c06e2de280418.js +0 -1
  430. package/.next-prod/static/chunks/app/api/global-state/route-3c1c06e2de280418.js +0 -1
  431. package/.next-prod/static/chunks/app/api/health/route-3c1c06e2de280418.js +0 -1
  432. package/.next-prod/static/chunks/app/api/html-apps/[id]/route-3c1c06e2de280418.js +0 -1
  433. package/.next-prod/static/chunks/app/api/html-apps/route-3c1c06e2de280418.js +0 -1
  434. package/.next-prod/static/chunks/app/api/jupyter/load/route-3c1c06e2de280418.js +0 -1
  435. package/.next-prod/static/chunks/app/api/jupyter/save/route-3c1c06e2de280418.js +0 -1
  436. package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-3c1c06e2de280418.js +0 -1
  437. package/.next-prod/static/chunks/app/api/kimi/credentials/route-3c1c06e2de280418.js +0 -1
  438. package/.next-prod/static/chunks/app/api/kimi/models/route-3c1c06e2de280418.js +0 -1
  439. package/.next-prod/static/chunks/app/api/kimi/usage/route-3c1c06e2de280418.js +0 -1
  440. package/.next-prod/static/chunks/app/api/lsp/definition/route-3c1c06e2de280418.js +0 -1
  441. package/.next-prod/static/chunks/app/api/lsp/hover/route-3c1c06e2de280418.js +0 -1
  442. package/.next-prod/static/chunks/app/api/lsp/references/route-3c1c06e2de280418.js +0 -1
  443. package/.next-prod/static/chunks/app/api/lsp/status/route-3c1c06e2de280418.js +0 -1
  444. package/.next-prod/static/chunks/app/api/lsp/warmup/route-3c1c06e2de280418.js +0 -1
  445. package/.next-prod/static/chunks/app/api/mysql/columns/route-3c1c06e2de280418.js +0 -1
  446. package/.next-prod/static/chunks/app/api/mysql/connect/route-3c1c06e2de280418.js +0 -1
  447. package/.next-prod/static/chunks/app/api/mysql/disconnect/route-3c1c06e2de280418.js +0 -1
  448. package/.next-prod/static/chunks/app/api/mysql/export/route-3c1c06e2de280418.js +0 -1
  449. package/.next-prod/static/chunks/app/api/mysql/query/route-3c1c06e2de280418.js +0 -1
  450. package/.next-prod/static/chunks/app/api/mysql/schemas/route-3c1c06e2de280418.js +0 -1
  451. package/.next-prod/static/chunks/app/api/neo4j/connect/route-3c1c06e2de280418.js +0 -1
  452. package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-3c1c06e2de280418.js +0 -1
  453. package/.next-prod/static/chunks/app/api/neo4j/query/route-3c1c06e2de280418.js +0 -1
  454. package/.next-prod/static/chunks/app/api/neo4j/schema/route-3c1c06e2de280418.js +0 -1
  455. package/.next-prod/static/chunks/app/api/note/route-3c1c06e2de280418.js +0 -1
  456. package/.next-prod/static/chunks/app/api/ollama/config/route-3c1c06e2de280418.js +0 -1
  457. package/.next-prod/static/chunks/app/api/ollama/models/route-3c1c06e2de280418.js +0 -1
  458. package/.next-prod/static/chunks/app/api/ollama/start/route-3c1c06e2de280418.js +0 -1
  459. package/.next-prod/static/chunks/app/api/open-cursor/route-3c1c06e2de280418.js +0 -1
  460. package/.next-prod/static/chunks/app/api/open-vscode/route-3c1c06e2de280418.js +0 -1
  461. package/.next-prod/static/chunks/app/api/pick-folder/route-3c1c06e2de280418.js +0 -1
  462. package/.next-prod/static/chunks/app/api/pinned-sessions/route-3c1c06e2de280418.js +0 -1
  463. package/.next-prod/static/chunks/app/api/project-settings/route-3c1c06e2de280418.js +0 -1
  464. package/.next-prod/static/chunks/app/api/project-state/route-3c1c06e2de280418.js +0 -1
  465. package/.next-prod/static/chunks/app/api/projectGraph/affected/route-3c1c06e2de280418.js +0 -1
  466. package/.next-prod/static/chunks/app/api/projectGraph/callees/route-3c1c06e2de280418.js +0 -1
  467. package/.next-prod/static/chunks/app/api/projectGraph/callers/route-3c1c06e2de280418.js +0 -1
  468. package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-3c1c06e2de280418.js +0 -1
  469. package/.next-prod/static/chunks/app/api/projectGraph/context/route-3c1c06e2de280418.js +0 -1
  470. package/.next-prod/static/chunks/app/api/projectGraph/file/route-3c1c06e2de280418.js +0 -1
  471. package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-3c1c06e2de280418.js +0 -1
  472. package/.next-prod/static/chunks/app/api/projectGraph/impact/route-3c1c06e2de280418.js +0 -1
  473. package/.next-prod/static/chunks/app/api/projectGraph/related/route-3c1c06e2de280418.js +0 -1
  474. package/.next-prod/static/chunks/app/api/projectGraph/risk/route-3c1c06e2de280418.js +0 -1
  475. package/.next-prod/static/chunks/app/api/projectGraph/search/route-3c1c06e2de280418.js +0 -1
  476. package/.next-prod/static/chunks/app/api/projects/route-3c1c06e2de280418.js +0 -1
  477. package/.next-prod/static/chunks/app/api/prompts/config/route-3c1c06e2de280418.js +0 -1
  478. package/.next-prod/static/chunks/app/api/push/public-key/route-3c1c06e2de280418.js +0 -1
  479. package/.next-prod/static/chunks/app/api/push/subscribe/route-3c1c06e2de280418.js +0 -1
  480. package/.next-prod/static/chunks/app/api/push/unsubscribe/route-3c1c06e2de280418.js +0 -1
  481. package/.next-prod/static/chunks/app/api/redis/command/route-3c1c06e2de280418.js +0 -1
  482. package/.next-prod/static/chunks/app/api/redis/connect/route-3c1c06e2de280418.js +0 -1
  483. package/.next-prod/static/chunks/app/api/redis/delete/route-3c1c06e2de280418.js +0 -1
  484. package/.next-prod/static/chunks/app/api/redis/disconnect/route-3c1c06e2de280418.js +0 -1
  485. package/.next-prod/static/chunks/app/api/redis/get/route-3c1c06e2de280418.js +0 -1
  486. package/.next-prod/static/chunks/app/api/redis/keys/route-3c1c06e2de280418.js +0 -1
  487. package/.next-prod/static/chunks/app/api/redis/set/route-3c1c06e2de280418.js +0 -1
  488. package/.next-prod/static/chunks/app/api/review/[id]/comments/route-3c1c06e2de280418.js +0 -1
  489. package/.next-prod/static/chunks/app/api/review/[id]/replies/route-3c1c06e2de280418.js +0 -1
  490. package/.next-prod/static/chunks/app/api/review/[id]/route-3c1c06e2de280418.js +0 -1
  491. package/.next-prod/static/chunks/app/api/review/identify/route-3c1c06e2de280418.js +0 -1
  492. package/.next-prod/static/chunks/app/api/review/order/route-3c1c06e2de280418.js +0 -1
  493. package/.next-prod/static/chunks/app/api/review/route-3c1c06e2de280418.js +0 -1
  494. package/.next-prod/static/chunks/app/api/review/share-info/route-3c1c06e2de280418.js +0 -1
  495. package/.next-prod/static/chunks/app/api/review/users/route-3c1c06e2de280418.js +0 -1
  496. package/.next-prod/static/chunks/app/api/scheduled-tasks/route-3c1c06e2de280418.js +0 -1
  497. package/.next-prod/static/chunks/app/api/services/config/route-3c1c06e2de280418.js +0 -1
  498. package/.next-prod/static/chunks/app/api/services/scripts/route-3c1c06e2de280418.js +0 -1
  499. package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-3c1c06e2de280418.js +0 -1
  500. package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-3c1c06e2de280418.js +0 -1
  501. package/.next-prod/static/chunks/app/api/session-by-path/route-3c1c06e2de280418.js +0 -1
  502. package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-3c1c06e2de280418.js +0 -1
  503. package/.next-prod/static/chunks/app/api/sessions/projects/route-3c1c06e2de280418.js +0 -1
  504. package/.next-prod/static/chunks/app/api/sessions/route-3c1c06e2de280418.js +0 -1
  505. package/.next-prod/static/chunks/app/api/settings/route-3c1c06e2de280418.js +0 -1
  506. package/.next-prod/static/chunks/app/api/skills/[id]/route-3c1c06e2de280418.js +0 -1
  507. package/.next-prod/static/chunks/app/api/skills/content/route-3c1c06e2de280418.js +0 -1
  508. package/.next-prod/static/chunks/app/api/skills/route-3c1c06e2de280418.js +0 -1
  509. package/.next-prod/static/chunks/app/api/snapshots/diff/route-3c1c06e2de280418.js +0 -1
  510. package/.next-prod/static/chunks/app/api/snapshots/route-3c1c06e2de280418.js +0 -1
  511. package/.next-prod/static/chunks/app/api/terminal/aliases/route-3c1c06e2de280418.js +0 -1
  512. package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-3c1c06e2de280418.js +0 -1
  513. package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-3c1c06e2de280418.js +0 -1
  514. package/.next-prod/static/chunks/app/api/terminal/env/route-3c1c06e2de280418.js +0 -1
  515. package/.next-prod/static/chunks/app/api/terminal/history/route-3c1c06e2de280418.js +0 -1
  516. package/.next-prod/static/chunks/app/api/version/route-3c1c06e2de280418.js +0 -1
  517. package/.next-prod/static/chunks/app/apps/[...path]/route-3c1c06e2de280418.js +0 -1
  518. package/.next-prod/static/chunks/app/manifest.webmanifest/route-3c1c06e2de280418.js +0 -1
  519. package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-3c1c06e2de280418.js +0 -1
  520. package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-3c1c06e2de280418.js +0 -1
  521. package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-3c1c06e2de280418.js +0 -1
  522. package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-3c1c06e2de280418.js +0 -1
  523. package/.next-prod/static/css/83c134c954630942.css +0 -1
  524. package/.next-prod/static/pgteRwI6FQcp683smeSNO/_buildManifest.js +0 -1
  525. /package/.next-prod/static/{pgteRwI6FQcp683smeSNO → noNfrQRJFchmZSWx_yn1K}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=6715,a.ids=[6715],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},35863:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/terminal/history/route",pathname:"/api/terminal/history",filename:"route",bundlePath:"app/api/terminal/history/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/terminal/history/route.ts",nextConfigOutput:"",userland:()=>c(76601),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/terminal/history/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49124:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{D9:()=>s,LO:()=>r,OR:()=>o,SJ:()=>q,fA:()=>n,fG:()=>p});var e=c(79748),f=c.n(e),g=c(89705),h=c(7939),i=c(72891),j=c(770),k=c(66274),l=c(56437),m=a([i]);i=(m.then?(await m)():m)[0];let n="nodejs",o="force-dynamic",p=(0,i.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("tabId"),e=parseInt(b.get("page")||"0",10),l=parseInt(b.get("pageSize")||"20",10);if(!c||!d)return yield*g.fJG(new j.yI({field:c?"tabId":"cwd",reason:"missing"}));let m=(0,h.Sr)(c,d);0===e&&(yield*g.$mh({try:()=>(0,k.Du)(c,d),catch:()=>null}).pipe(g.h9N(()=>g.rIH)));let n=yield*g.$mh({try:async()=>{let a;try{a=await f().readFile(m,"utf-8")}catch(a){if("ENOENT"===a.code)return{entries:[],total:0,page:0,pageSize:l,hasMore:!1};throw a}let b=a.trim().split("\n").filter(Boolean).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),c=e*l,d=c+l,g=b.slice(c,d);for(let a of g)if(a.outputFile){try{a.output=await f().readFile(a.outputFile,"utf-8")}catch{a.output="[Output file deleted]"}delete a.outputFile}return{entries:g,total:b.length,page:e,pageSize:l,hasMore:d<b.length}},catch:a=>new j.uU({path:m,op:"read",cause:a})});return(0,i.ok)(n)})),q=(0,i.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("tabId"),e=b.get("commandId"),m=b.get("sourceId")??void 0;if(!c||!d)return yield*g.fJG(new j.yI({field:c?"tabId":"cwd",reason:"missing"}));let n=(0,h.Sr)(c,d);return yield*g.$mh({try:async()=>{if(e)try{let a=(await f().readFile(n,"utf-8")).trim().split("\n").filter(Boolean),b=[];for(let c of a){try{let a=JSON.parse(c);if(a.id===e){(0,k.un)(e),a.outputFile&&await f().unlink(a.outputFile).catch(()=>{});continue}}catch{}b.push(c)}b.length>0?await f().writeFile(n,b.join("\n")+"\n","utf-8"):await f().unlink(n).catch(()=>{})}catch(a){if("ENOENT"!==a.code)throw a}else{for(let a of(0,k.uO)(c))a.tabId===d&&(0,k.un)(a.commandId);try{for(let a of(await f().readFile(n,"utf-8")).trim().split("\n").filter(Boolean))try{let b=JSON.parse(a);b.outputFile&&await f().unlink(b.outputFile).catch(()=>{})}catch{}}catch{}try{await f().unlink(n)}catch(a){if("ENOENT"!==a.code)throw a}}},catch:a=>new j.uU({path:n,op:"rm",cause:a})}),(0,l.f)(c,d,e?{op:"delete",id:e}:{op:"clear"},m),(0,i.ok)({success:!0})})),r=(0,i.RL)(a=>g.JkU(function*(){let b=yield*(0,i.k9)(a);if(!b.cwd||!b.tabId||!b.entry)return yield*g.fJG(new j.yI({field:"cwd|tabId|entry",reason:"missing"}));let{cwd:c,tabId:d,entry:e,sourceId:k}=b,m=(0,h.Sr)(c,d),n=yield*g.$mh({try:async()=>{await (0,h.Wd)(m);let a={...e};if(e.output&&e.output.length>4096){let b=(0,h.ls)(c,e.id);await f().writeFile(b,e.output,"utf-8"),a.output="",a.outputFile=b}let b=[];try{b=(await f().readFile(m,"utf-8")).trim().split("\n").filter(Boolean)}catch{}if(e.id&&b.some(a=>{try{return JSON.parse(a).id===e.id}catch{return!1}}))return{success:!0,skipped:!0};if(b.length>=100){for(let a of b.slice(0,b.length-99))try{let b=JSON.parse(a);b.outputFile&&await f().unlink(b.outputFile).catch(()=>{})}catch{}b=b.slice(-99)}return b.push(JSON.stringify(a)),await f().writeFile(m,b.join("\n")+"\n","utf-8"),{success:!0}},catch:a=>new j.uU({path:m,op:"write",cause:a})});return n.success&&!("skipped"in n&&n.skipped)&&(0,l.f)(c,d,{op:"add",entry:e},k),(0,i.ok)(n)})),s=(0,i.RL)(a=>g.JkU(function*(){let b=yield*(0,i.k9)(a);if(!b.cwd||!b.tabId||!b.id||!b.fields)return yield*g.fJG(new j.yI({field:"cwd|tabId|id|fields",reason:"missing"}));let{cwd:c,tabId:d,id:e,fields:k,sourceId:m}=b,n=(0,h.Sr)(c,d),o=yield*g.$mh({try:async()=>{try{let a=(await f().readFile(n,"utf-8")).trim().split("\n").filter(Boolean),b=!1,c=a.map(a=>{try{let c=JSON.parse(a);if(c.id===e)return b=!0,JSON.stringify({...c,...k})}catch{}return a});return b&&await f().writeFile(n,c.join("\n")+"\n","utf-8"),{success:!0,updated:b}}catch(a){if(a instanceof Error&&"code"in a&&"ENOENT"===a.code)return{success:!0,updated:!1};throw a}},catch:a=>new j.uU({path:n,op:"write",cause:a})});return o.updated&&(0,l.f)(c,d,{op:"update",id:e,fields:k},m),(0,i.ok)(o)}));d()}catch(a){d(a)}})},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},56437:(a,b,c)=>{c.d(b,{f:()=>e});let d=globalThis;function e(a,b,c,e){let f=d.__cockpitGlobalStateClients;if(!f||0===f.size)return;let g=JSON.stringify({type:"console-delta",cwd:a,tabId:b,sourceId:e,...c});for(let a of f)if(1===a.readyState)try{a.send(g)}catch{}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},66274:(a,b,c)=>{c.d(b,{Du:()=>m,uO:()=>k,un:()=>l});var d=c(79748),e=c.n(d);c(29021),c(33873);var f=c(7939);let g=Symbol.for("terminal_running_commands"),h=Symbol.for("terminal_server_id");function i(){let a=globalThis;return a[h]||(a[h]=`srv_${Date.now()}_${process.pid}`,console.log(`[registry] server started, id=${a[h]}, pid=${process.pid}`)),a[h]}function j(){let a=globalThis;return a[g]||(a[g]=new Map),a[g]}function k(a){let b=[];for(let c of j().values())c.projectCwd===a&&b.push({commandId:c.commandId,command:c.command,cwd:c.cwd,tabId:c.tabId,pid:c.pid,timestamp:c.timestamp,...c.usePty?{usePty:!0}:{}});return b}function l(a){let b=j().get(a);if(b)if(b.deleted=!0,console.log(`[registry] kill: id=${a}, pid=${b.pid}, pty=${!!b.ptyProcess}, server=${i()}`),b.ptyProcess)try{b.ptyProcess.kill()}catch{}else{let a=b.pid;try{process.kill(a,"SIGTERM")}catch{}setTimeout(()=>{try{process.kill(a,0),process.kill(a,"SIGKILL")}catch{}},1e3)}}async function m(a,b){let c,d=(0,f.Sr)(a,b);try{c=await e().readFile(d,"utf-8")}catch{return}let g=c.trim().split("\n").filter(Boolean);if(0===g.length)return;let h=new Map,i=!1;for(let a of g){let b;try{b=JSON.parse(a)}catch{i=!0;continue}let c=b.id;c&&(h.has(c)&&(i=!0),h.delete(c),h.set(c,b))}for(let b of h.values()){if(!0!==b.running)continue;let c=b.id;if(j().get(c))continue;delete b.running,b.exitCode=-1;let d=(0,f.ls)(a,c);try{(await e().stat(d)).size>0&&(b.outputFile=d)}catch{}i=!0}if(!i)return;let k=[...h.values()].map(a=>JSON.stringify(a)).join("\n")+"\n";await e().writeFile(d,k,"utf-8")}i()},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})},74075:a=>{a.exports=require("zlib")},76601:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>e.SJ,GET:()=>e.fG,PATCH:()=>e.D9,POST:()=>e.LO,dynamic:()=>e.OR,runtime:()=>e.fA});var e=c(49124),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7184,6495,1564],()=>b(b.s=35863));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=6715,a.ids=[6715],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},18337:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/terminal/history/route",pathname:"/api/terminal/history",filename:"route",bundlePath:"app/api/terminal/history/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/terminal/history/route.ts",nextConfigOutput:"",userland:()=>c(76601),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/terminal/history/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},49124:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{D9:()=>s,LO:()=>r,OR:()=>o,SJ:()=>q,fA:()=>n,fG:()=>p});var e=c(79748),f=c.n(e),g=c(89705),h=c(7939),i=c(72891),j=c(770),k=c(66274),l=c(56437),m=a([i]);i=(m.then?(await m)():m)[0];let n="nodejs",o="force-dynamic",p=(0,i.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("tabId"),e=parseInt(b.get("page")||"0",10),l=parseInt(b.get("pageSize")||"20",10);if(!c||!d)return yield*g.fJG(new j.yI({field:c?"tabId":"cwd",reason:"missing"}));let m=(0,h.Sr)(c,d);0===e&&(yield*g.$mh({try:()=>(0,k.Du)(c,d),catch:()=>null}).pipe(g.h9N(()=>g.rIH)));let n=yield*g.$mh({try:async()=>{let a;try{a=await f().readFile(m,"utf-8")}catch(a){if("ENOENT"===a.code)return{entries:[],total:0,page:0,pageSize:l,hasMore:!1};throw a}let b=a.trim().split("\n").filter(Boolean).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(Boolean),c=e*l,d=c+l,g=b.slice(c,d);for(let a of g)if(a.outputFile){try{a.output=await f().readFile(a.outputFile,"utf-8")}catch{a.output="[Output file deleted]"}delete a.outputFile}return{entries:g,total:b.length,page:e,pageSize:l,hasMore:d<b.length}},catch:a=>new j.uU({path:m,op:"read",cause:a})});return(0,i.ok)(n)})),q=(0,i.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("tabId"),e=b.get("commandId"),m=b.get("sourceId")??void 0;if(!c||!d)return yield*g.fJG(new j.yI({field:c?"tabId":"cwd",reason:"missing"}));let n=(0,h.Sr)(c,d);return yield*g.$mh({try:async()=>{if(e)try{let a=(await f().readFile(n,"utf-8")).trim().split("\n").filter(Boolean),b=[];for(let c of a){try{let a=JSON.parse(c);if(a.id===e){(0,k.un)(e),a.outputFile&&await f().unlink(a.outputFile).catch(()=>{});continue}}catch{}b.push(c)}b.length>0?await f().writeFile(n,b.join("\n")+"\n","utf-8"):await f().unlink(n).catch(()=>{})}catch(a){if("ENOENT"!==a.code)throw a}else{for(let a of(0,k.uO)(c))a.tabId===d&&(0,k.un)(a.commandId);try{for(let a of(await f().readFile(n,"utf-8")).trim().split("\n").filter(Boolean))try{let b=JSON.parse(a);b.outputFile&&await f().unlink(b.outputFile).catch(()=>{})}catch{}}catch{}try{await f().unlink(n)}catch(a){if("ENOENT"!==a.code)throw a}}},catch:a=>new j.uU({path:n,op:"rm",cause:a})}),(0,l.f)(c,d,e?{op:"delete",id:e}:{op:"clear"},m),(0,i.ok)({success:!0})})),r=(0,i.RL)(a=>g.JkU(function*(){let b=yield*(0,i.k9)(a);if(!b.cwd||!b.tabId||!b.entry)return yield*g.fJG(new j.yI({field:"cwd|tabId|entry",reason:"missing"}));let{cwd:c,tabId:d,entry:e,sourceId:k}=b,m=(0,h.Sr)(c,d),n=yield*g.$mh({try:async()=>{await (0,h.Wd)(m);let a={...e};if(e.output&&e.output.length>4096){let b=(0,h.ls)(c,e.id);await f().writeFile(b,e.output,"utf-8"),a.output="",a.outputFile=b}let b=[];try{b=(await f().readFile(m,"utf-8")).trim().split("\n").filter(Boolean)}catch{}if(e.id&&b.some(a=>{try{return JSON.parse(a).id===e.id}catch{return!1}}))return{success:!0,skipped:!0};if(b.length>=100){for(let a of b.slice(0,b.length-99))try{let b=JSON.parse(a);b.outputFile&&await f().unlink(b.outputFile).catch(()=>{})}catch{}b=b.slice(-99)}return b.push(JSON.stringify(a)),await f().writeFile(m,b.join("\n")+"\n","utf-8"),{success:!0}},catch:a=>new j.uU({path:m,op:"write",cause:a})});return n.success&&!("skipped"in n&&n.skipped)&&(0,l.f)(c,d,{op:"add",entry:e},k),(0,i.ok)(n)})),s=(0,i.RL)(a=>g.JkU(function*(){let b=yield*(0,i.k9)(a);if(!b.cwd||!b.tabId||!b.id||!b.fields)return yield*g.fJG(new j.yI({field:"cwd|tabId|id|fields",reason:"missing"}));let{cwd:c,tabId:d,id:e,fields:k,sourceId:m}=b,n=(0,h.Sr)(c,d),o=yield*g.$mh({try:async()=>{try{let a=(await f().readFile(n,"utf-8")).trim().split("\n").filter(Boolean),b=!1,c=a.map(a=>{try{let c=JSON.parse(a);if(c.id===e)return b=!0,JSON.stringify({...c,...k})}catch{}return a});return b&&await f().writeFile(n,c.join("\n")+"\n","utf-8"),{success:!0,updated:b}}catch(a){if(a instanceof Error&&"code"in a&&"ENOENT"===a.code)return{success:!0,updated:!1};throw a}},catch:a=>new j.uU({path:n,op:"write",cause:a})});return o.updated&&(0,l.f)(c,d,{op:"update",id:e,fields:k},m),(0,i.ok)(o)}));d()}catch(a){d(a)}})},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},56437:(a,b,c)=>{c.d(b,{f:()=>e});let d=globalThis;function e(a,b,c,e){let f=d.__cockpitGlobalStateClients;if(!f||0===f.size)return;let g=JSON.stringify({type:"console-delta",cwd:a,tabId:b,sourceId:e,...c});for(let a of f)if(1===a.readyState)try{a.send(g)}catch{}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},66274:(a,b,c)=>{c.d(b,{Du:()=>m,uO:()=>k,un:()=>l});var d=c(79748),e=c.n(d);c(29021),c(33873);var f=c(7939);let g=Symbol.for("terminal_running_commands"),h=Symbol.for("terminal_server_id");function i(){let a=globalThis;return a[h]||(a[h]=`srv_${Date.now()}_${process.pid}`,console.log(`[registry] server started, id=${a[h]}, pid=${process.pid}`)),a[h]}function j(){let a=globalThis;return a[g]||(a[g]=new Map),a[g]}function k(a){let b=[];for(let c of j().values())c.projectCwd===a&&b.push({commandId:c.commandId,command:c.command,cwd:c.cwd,tabId:c.tabId,pid:c.pid,timestamp:c.timestamp,...c.usePty?{usePty:!0}:{}});return b}function l(a){let b=j().get(a);if(b)if(b.deleted=!0,console.log(`[registry] kill: id=${a}, pid=${b.pid}, pty=${!!b.ptyProcess}, server=${i()}`),b.ptyProcess)try{b.ptyProcess.kill()}catch{}else{let a=b.pid;try{process.kill(a,"SIGTERM")}catch{}setTimeout(()=>{try{process.kill(a,0),process.kill(a,"SIGKILL")}catch{}},1e3)}}async function m(a,b){let c,d=(0,f.Sr)(a,b);try{c=await e().readFile(d,"utf-8")}catch{return}let g=c.trim().split("\n").filter(Boolean);if(0===g.length)return;let h=new Map,i=!1;for(let a of g){let b;try{b=JSON.parse(a)}catch{i=!0;continue}let c=b.id;c&&(h.has(c)&&(i=!0),h.delete(c),h.set(c,b))}for(let b of h.values()){if(!0!==b.running)continue;let c=b.id;if(j().get(c))continue;delete b.running,b.exitCode=-1;let d=(0,f.ls)(a,c);try{(await e().stat(d)).size>0&&(b.outputFile=d)}catch{}i=!0}if(!i)return;let k=[...h.values()].map(a=>JSON.stringify(a)).join("\n")+"\n";await e().writeFile(d,k,"utf-8")}i()},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})},74075:a=>{a.exports=require("zlib")},76601:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>e.SJ,GET:()=>e.fG,PATCH:()=>e.D9,POST:()=>e.LO,dynamic:()=>e.OR,runtime:()=>e.fA});var e=c(49124),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7184,6495,1564],()=>b(b.s=18337));module.exports=c})();
@@ -0,0 +1 @@
1
+ "use strict";(()=>{var a={};a.id=2437,a.ids=[2437],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},7371:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>n,dynamic:()=>m,runtime:()=>l});var e=c(89705),f=c(33873),g=c(72891),h=c(770),i=c(7939),j=c(27028),k=a([g]);g=(k.then?(await k)():k)[0];let l="nodejs",m="force-dynamic",n=(0,g.RL)(a=>e.JkU(function*(){if("1"!==a.headers.get("x-cockpit-local"))return yield*new h.i_({action:"update",resource:"server"});if("dev"===process.env.COCKPIT_ENV)return yield*new h.yI({field:"mode",reason:"self-update is not available in dev mode"});let b=process.env.COCKPIT_ROOT;if(!b)return yield*new h.yI({field:"COCKPIT_ROOT",reason:"install directory is unknown"});let c=process.env.COCKPIT_VERSION??"unknown";return yield*e.SvU({try:()=>(0,j.W)({installRoot:b,fromVersion:c,restartOnly:!1}),catch:a=>new h.yI({field:"handoff",reason:`could not stage the updater: ${String(a)}`})}),yield*e.LXu(e.yy4("300 millis").pipe(e.hgn(e.OH5(()=>{console.log("[update] handing over to the updater; shutting down"),process.exit(0)})))),(0,g.ok)({ok:!0,from:c,logPath:(0,f.join)(i.Kv,"logs","updater.log"),statePath:(0,f.join)(i.Kv,"update-state.json")})}));d()}catch(a){d(a)}})},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27028:(a,b,c)=>{c.d(b,{W:()=>i});var d=c(29021),e=c(33873),f=c(79646),g=c(7939),h=c(95169);function i(a){let{installRoot:b,fromVersion:c,restartOnly:i}=a,j=(0,e.join)(g.Kv,"updater"),k=(0,e.join)(j,"updater.mjs");(0,d.mkdirSync)(j,{recursive:!0}),(0,d.copyFileSync)((0,e.join)(b,"bin","updater.mjs"),k);let l=[k,"--pid",String(process.pid),"--root",b,"--home",g.Kv,"--from",c];i&&l.push("--restart-only");let m=(0,f.spawn)(process.execPath,l,{cwd:g.Kv,env:(0,h.u)(),detached:!0,windowsHide:!0,stdio:"ignore"});return m.unref(),globalThis.__cockpitHandedOffPid=m.pid,m.pid}},27910:a=>{a.exports=require("stream")},27925:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/update/route",pathname:"/api/update",filename:"route",bundlePath:"app/api/update/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/update/route.ts",nextConfigOutput:"",userland:()=>c(7371),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/update/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")},95169:(a,b,c)=>{c.d(b,{u:()=>e});let d=["NODE_ENV","NEXT_DEPLOYMENT_ID","TURBOPACK"];function e(a={},b=process.env){let c={};for(let[a,d]of Object.entries(b))void 0!==d&&(c[a]=d);for(let a of d)delete c[a];for(let[b,d]of Object.entries(a))void 0===d?delete c[b]:c[b]=d;return c}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7184,6495,1564],()=>b(b.s=27925));module.exports=c})();
@@ -0,0 +1 @@
1
+ {"version":1,"files":["../../../../../node_modules/@anthropic-ai/claude-agent-sdk/package.json","../../../../../node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs","../../../../../node_modules/@opentelemetry/api/build/src/api/context.js","../../../../../node_modules/@opentelemetry/api/build/src/api/diag.js","../../../../../node_modules/@opentelemetry/api/build/src/api/metrics.js","../../../../../node_modules/@opentelemetry/api/build/src/api/propagation.js","../../../../../node_modules/@opentelemetry/api/build/src/api/trace.js","../../../../../node_modules/@opentelemetry/api/build/src/baggage/context-helpers.js","../../../../../node_modules/@opentelemetry/api/build/src/baggage/internal/baggage-impl.js","../../../../../node_modules/@opentelemetry/api/build/src/baggage/internal/symbol.js","../../../../../node_modules/@opentelemetry/api/build/src/baggage/utils.js","../../../../../node_modules/@opentelemetry/api/build/src/context-api.js","../../../../../node_modules/@opentelemetry/api/build/src/context/NoopContextManager.js","../../../../../node_modules/@opentelemetry/api/build/src/context/context.js","../../../../../node_modules/@opentelemetry/api/build/src/diag-api.js","../../../../../node_modules/@opentelemetry/api/build/src/diag/ComponentLogger.js","../../../../../node_modules/@opentelemetry/api/build/src/diag/consoleLogger.js","../../../../../node_modules/@opentelemetry/api/build/src/diag/internal/logLevelLogger.js","../../../../../node_modules/@opentelemetry/api/build/src/diag/types.js","../../../../../node_modules/@opentelemetry/api/build/src/index.js","../../../../../node_modules/@opentelemetry/api/build/src/internal/global-utils.js","../../../../../node_modules/@opentelemetry/api/build/src/internal/semver.js","../../../../../node_modules/@opentelemetry/api/build/src/metrics-api.js","../../../../../node_modules/@opentelemetry/api/build/src/metrics/Metric.js","../../../../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeter.js","../../../../../node_modules/@opentelemetry/api/build/src/metrics/NoopMeterProvider.js","../../../../../node_modules/@opentelemetry/api/build/src/platform/index.js","../../../../../node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js","../../../../../node_modules/@opentelemetry/api/build/src/platform/node/index.js","../../../../../node_modules/@opentelemetry/api/build/src/propagation-api.js","../../../../../node_modules/@opentelemetry/api/build/src/propagation/NoopTextMapPropagator.js","../../../../../node_modules/@opentelemetry/api/build/src/propagation/TextMapPropagator.js","../../../../../node_modules/@opentelemetry/api/build/src/trace-api.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/NonRecordingSpan.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/NoopTracer.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/NoopTracerProvider.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracer.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/ProxyTracerProvider.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/SamplingResult.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/context-utils.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-impl.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/tracestate-validators.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/internal/utils.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/invalid-span-constants.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/span_kind.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/spancontext-utils.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/status.js","../../../../../node_modules/@opentelemetry/api/build/src/trace/trace_flags.js","../../../../../node_modules/@opentelemetry/api/build/src/version.js","../../../../../node_modules/@opentelemetry/api/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/next/dist/build/adapter/setup-node-env.external.js","../../../../../node_modules/next/dist/client/components/hooks-server-context.js","../../../../../node_modules/next/dist/client/components/static-generation-bailout.js","../../../../../node_modules/next/dist/client/lib/console.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../node_modules/next/dist/compiled/source-map/package.json","../../../../../node_modules/next/dist/compiled/source-map/source-map.js","../../../../../node_modules/next/dist/compiled/stacktrace-parser/package.json","../../../../../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../../../../../node_modules/next/dist/compiled/ws/index.js","../../../../../node_modules/next/dist/compiled/ws/package.json","../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../node_modules/next/dist/lib/constants.js","../../../../../node_modules/next/dist/lib/framework/boundary-constants.js","../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../node_modules/next/dist/lib/is-error.js","../../../../../node_modules/next/dist/lib/picocolors.js","../../../../../node_modules/next/dist/lib/scheduler.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../node_modules/next/dist/server/app-render/blocking-route-messages.js","../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/dynamic-rendering.js","../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-constants.js","../../../../../node_modules/next/dist/server/app-render/instant-validation/boundary-tracking.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../node_modules/next/dist/server/app-render/staged-rendering.js","../../../../../node_modules/next/dist/server/app-render/sync-io-messages.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../node_modules/next/dist/server/dev/browser-logs/file-logger.js","../../../../../node_modules/next/dist/server/dynamic-rendering-utils.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../node_modules/next/dist/server/lib/parse-stack.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../node_modules/next/dist/server/lib/source-maps.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../node_modules/next/dist/server/node-environment-baseline.js","../../../../../node_modules/next/dist/server/node-environment-extensions/console-dim.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/console-exit.js","../../../../../node_modules/next/dist/server/node-environment-extensions/console-file.js","../../../../../node_modules/next/dist/server/node-environment-extensions/date.js","../../../../../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/io-utils.js","../../../../../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../../../../../node_modules/next/dist/server/node-environment-extensions/random.js","../../../../../node_modules/next/dist/server/node-environment-extensions/unhandled-rejection.external.js","../../../../../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../../../../../node_modules/next/dist/server/node-environment.js","../../../../../node_modules/next/dist/server/node-polyfill-crypto.js","../../../../../node_modules/next/dist/server/patch-error-inspect.js","../../../../../node_modules/next/dist/server/require-hook.js","../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../node_modules/next/dist/shared/lib/instant-messages.js","../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../node_modules/next/dist/shared/lib/promise-with-resolvers.js","../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../node_modules/next/package.json","../../../../../node_modules/pg-cloudflare/dist/empty.js","../../../../../node_modules/pg-cloudflare/dist/index.js","../../../../../node_modules/pg-cloudflare/package.json","../../../../../node_modules/pg-connection-string/index.js","../../../../../node_modules/pg-connection-string/package.json","../../../../../node_modules/pg-int8/index.js","../../../../../node_modules/pg-int8/package.json","../../../../../node_modules/pg-pool/index.js","../../../../../node_modules/pg-pool/package.json","../../../../../node_modules/pg-protocol/dist/buffer-reader.js","../../../../../node_modules/pg-protocol/dist/buffer-writer.js","../../../../../node_modules/pg-protocol/dist/index.js","../../../../../node_modules/pg-protocol/dist/messages.js","../../../../../node_modules/pg-protocol/dist/parser.js","../../../../../node_modules/pg-protocol/dist/serializer.js","../../../../../node_modules/pg-protocol/package.json","../../../../../node_modules/pg-types/index.js","../../../../../node_modules/pg-types/lib/arrayParser.js","../../../../../node_modules/pg-types/lib/binaryParsers.js","../../../../../node_modules/pg-types/lib/builtins.js","../../../../../node_modules/pg-types/lib/textParsers.js","../../../../../node_modules/pg-types/package.json","../../../../../node_modules/pg/esm/index.mjs","../../../../../node_modules/pg/lib/client.js","../../../../../node_modules/pg/lib/connection-parameters.js","../../../../../node_modules/pg/lib/connection.js","../../../../../node_modules/pg/lib/crypto/cert-signatures.js","../../../../../node_modules/pg/lib/crypto/sasl.js","../../../../../node_modules/pg/lib/crypto/utils-legacy.js","../../../../../node_modules/pg/lib/crypto/utils-webcrypto.js","../../../../../node_modules/pg/lib/crypto/utils.js","../../../../../node_modules/pg/lib/defaults.js","../../../../../node_modules/pg/lib/index.js","../../../../../node_modules/pg/lib/native/client.js","../../../../../node_modules/pg/lib/native/index.js","../../../../../node_modules/pg/lib/native/query.js","../../../../../node_modules/pg/lib/query.js","../../../../../node_modules/pg/lib/result.js","../../../../../node_modules/pg/lib/stream.js","../../../../../node_modules/pg/lib/type-overrides.js","../../../../../node_modules/pg/lib/utils.js","../../../../../node_modules/pg/package.json","../../../../../node_modules/pgpass/lib/helper.js","../../../../../node_modules/pgpass/lib/index.js","../../../../../node_modules/pgpass/package.json","../../../../../node_modules/postgres-array/index.js","../../../../../node_modules/postgres-array/package.json","../../../../../node_modules/postgres-bytea/index.js","../../../../../node_modules/postgres-bytea/package.json","../../../../../node_modules/postgres-date/index.js","../../../../../node_modules/postgres-date/package.json","../../../../../node_modules/postgres-interval/index.js","../../../../../node_modules/postgres-interval/package.json","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/package.json","../../../../../node_modules/split2/index.js","../../../../../node_modules/split2/package.json","../../../../../node_modules/xtend/mutable.js","../../../../../node_modules/xtend/package.json","../../../../../package.json","../../../../../packages/feature/agent/package.json","../../../../../packages/feature/console/package.json","../../../../../packages/shared/effect-core/package.json","../../../../../packages/shared/effect-runtime/package.json","../../../../../packages/shared/effect-services/package.json","../../../../../packages/shared/utils/package.json","../../../../package.json","../../../chunks/1564.js","../../../chunks/1813.js","../../../chunks/2540.js","../../../chunks/2728.js","../../../chunks/2939.js","../../../chunks/3269.js","../../../chunks/3286.js","../../../chunks/3641.js","../../../chunks/3718.js","../../../chunks/3742.js","../../../chunks/3863.js","../../../chunks/4008.js","../../../chunks/4741.js","../../../chunks/4916.js","../../../chunks/516.js","../../../chunks/5292.js","../../../chunks/5750.js","../../../chunks/6495.js","../../../chunks/6548.js","../../../chunks/6644.js","../../../chunks/7184.js","../../../chunks/7270.js","../../../chunks/816.js","../../../chunks/841.js","../../../chunks/8764.js","../../../chunks/9312.js","../../../chunks/9352.js","../../../chunks/9830.js","../../../webpack-runtime.js","route_client-reference-manifest.js"]}
@@ -0,0 +1 @@
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/update/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/app/api/update/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=2922,a.ids=[2922],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},3376:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k,runtime:()=>j});var e=c(29021),f=c(33873),g=c(89705),h=c(72891),i=a([h]);h=(i.then?(await i)():i)[0];let j="nodejs",k=(0,h.RL)(()=>g.JkU(function*(){let a=process.env.COCKPIT_ROOT||process.cwd(),b=yield*g.SvU({try:()=>JSON.parse((0,e.readFileSync)((0,f.join)(a,"package.json"),"utf-8")).version??"",catch:()=>null}).pipe(g.DM4(()=>""));return(0,h.ok)({version:b})}));d()}catch(a){d(a)}})},4573:a=>{a.exports=require("node:buffer")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},90095:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/version/route",pathname:"/api/version",filename:"route",bundlePath:"app/api/version/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/version/route.ts",nextConfigOutput:"",userland:()=>c(3376),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/version/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7184,6495,1564],()=>b(b.s=90095));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=2922,a.ids=[2922],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},3376:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k,runtime:()=>j});var e=c(29021),f=c(33873),g=c(89705),h=c(72891),i=a([h]);h=(i.then?(await i)():i)[0];let j="nodejs",k=(0,h.RL)(()=>g.JkU(function*(){let a=process.env.COCKPIT_ROOT||process.cwd(),b=yield*g.SvU({try:()=>JSON.parse((0,e.readFileSync)((0,f.join)(a,"package.json"),"utf-8")).version??"",catch:()=>null}).pipe(g.DM4(()=>""));return(0,h.ok)({version:b})}));d()}catch(a){d(a)}})},4573:a=>{a.exports=require("node:buffer")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12553:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/version/route",pathname:"/api/version",filename:"route",bundlePath:"app/api/version/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/version/route.ts",nextConfigOutput:"",userland:()=>c(3376),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/version/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},72891:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OZ:()=>o,RL:()=>n,k9:()=>p,ok:()=>l});var e=c(37625),f=c(52693),g=c(18412),h=c(89705),i=c(94506),j=c(770),k=a([i]);i=(k.then?(await k)():k)[0];let l=(a,b=200)=>new Response(JSON.stringify(a),{status:b,headers:{"content-type":"application/json"}}),m=a=>{let b=e.od(a);if(f.Ru(b)){let a=b.value,c=(0,j.Sh)(a);return new Response(JSON.stringify({error:(a=>{let b=a.message;if("string"==typeof b&&b.length>0)return b;let c=a.cause;if(c instanceof Error&&c.message.length>0)return c.message;switch(a._tag){case"ValidationError":return`Invalid ${a.field}: ${a.reason}`;case"NotFoundError":return`${a.resource} not found: ${a.id}`;case"PermissionError":return`Permission denied: ${a.action} on ${a.resource}`;case"DBError":return`${a.db} ${a.op} failed`;case"FSError":return`${a.op} ${a.path} failed`;case"WSError":return`${a.proto} ${a.kind} failed`;case"AgentError":return`${a.provider} ${a.kind} failed`;default:return a._tag}})(a),tag:a._tag}),{status:c,headers:{"content-type":"application/json"}})}return console.error("[handler] uncaught defect:\n"+e.j9(a)),new Response(JSON.stringify({error:"Internal Server Error",tag:"InternalError"}),{status:500,headers:{"content-type":"application/json"}})},n=a=>async b=>{let c=await i.s9.runPromiseExit(a(b));return g.YW(c,{onFailure:a=>m(a),onSuccess:a=>a})},o=a=>async(b,c)=>{let d=await c.params,e=await i.s9.runPromiseExit(a(b,d));return g.YW(e,{onFailure:a=>m(a),onSuccess:a=>a})},p=a=>h.$mh({try:()=>a.json(),catch:()=>new j.yI({field:"body",reason:"invalid JSON"})});d()}catch(a){d(a)}})},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7184,6495,1564],()=>b(b.s=12553));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=519,a.ids=[519],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4253:(a,b,c)=>{c.d(b,{L8:()=>q,No:()=>h,Pe:()=>p,VA:()=>r,hC:()=>n,hH:()=>m,hn:()=>t,iF:()=>s,lU:()=>u,nw:()=>o,pZ:()=>g});var d=c(79748),e=c(33873),f=c.n(e);let g=0xa00000,h=0x3200000,i=new Set([".png",".jpg",".jpeg",".gif",".webp",".svg",".ico",".bmp",".avif"]),j=new Set([".pdf"]),k=new Set([".doc",".docx",".xls",".xlsx",".ppt",".pptx",".zip",".tar",".gz",".rar",".7z",".exe",".dll",".so",".dylib",".mp3",".mp4",".avi",".mov",".mkv",".wav",".flac",".ttf",".otf",".woff",".woff2",".eot",".db",".sqlite",".sqlite3",".pyc",".class",".o",".a"]),l={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".avif":"image/avif",".pdf":"application/pdf"};function m(a){return l[a.toLowerCase()]||"application/octet-stream"}function n(a,b){if("string"!=typeof b||0===b.length)return null;let c=f().resolve(a),d=f().resolve(c,b);return d===c||d.startsWith(c+f().sep)?d:null}async function o(a){let b;if("string"!=typeof a||0===a.length)return{ok:!1,reason:"Missing cwd parameter"};if(!f().isAbsolute(a))return{ok:!1,reason:"cwd must be an absolute path"};let c=f().resolve(a);try{b=await (0,d.stat)(c)}catch{return{ok:!1,reason:"cwd does not exist"}}return b.isDirectory()?{ok:!0,abs:c}:{ok:!1,reason:"cwd is not a directory"}}function p(a,b){return`"${a.toString(36)}-${Math.floor(b).toString(36)}"`}function q(a,b){let c=a.startsWith(".")?a.toLowerCase():f().extname(a).toLowerCase();return i.has(c)?b>h?"too-large":"image":j.has(c)?b>0x6400000?"too-large":"pdf":k.has(c)?"binary":b>g?"too-large":"text"}function r(a){let b=0,c=Math.min(a.length,1e3);for(let d=0;d<c;d++){let c=a.charCodeAt(d);if(0===c)return!0;c<32&&9!==c&&10!==c&&13!==c&&b++}return c>0&&b/c>.1}async function s(a){let b,c=!1;try{(await (0,d.lstat)(a)).isSymbolicLink()&&(c=!0,b=await (0,d.readlink)(a))}catch{}let e=await (0,d.stat)(a);return{size:e.size,mtimeMs:e.mtimeMs,isDirectory:e.isDirectory(),isSymlink:c,symlinkTarget:b}}function t(a,b){return{ETag:a,"Last-Modified":new Date(b).toUTCString(),"Cache-Control":"no-cache, must-revalidate"}}function u(a,b){return!!a&&a.split(",").map(a=>a.trim().replace(/^W\//,"")).includes(b)}},4573:a=>{a.exports=require("node:buffer")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},36281:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>r,fA:()=>q,fG:()=>z});var e=c(29021),f=c(79748),g=c(27910),h=c(33873),i=c.n(h),j=c(89705),k=c(72891),l=c(770),m=c(7939),n=c(66106),o=c(4253),p=a([k]);k=(p.then?(await p)():p)[0];let q="nodejs",r="force-dynamic",s="/apps/",t="builtin/",u={".html":"text/html; charset=utf-8",".htm":"text/html; charset=utf-8",".css":"text/css; charset=utf-8",".js":"text/javascript; charset=utf-8",".jsx":"text/javascript; charset=utf-8",".mjs":"text/javascript; charset=utf-8",".json":"application/json; charset=utf-8",".map":"application/json; charset=utf-8",".txt":"text/plain; charset=utf-8",".md":"text/markdown; charset=utf-8",".xml":"application/xml; charset=utf-8",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".wasm":"application/wasm"},v=a=>u[a]??(0,o.hH)(a),w=a=>".html"===a||".htm"===a,x={"Cache-Control":"no-store"},y=(a,b)=>new Response(a,{status:200,headers:{"Content-Type":b,"Content-Length":String(Buffer.byteLength(a)),...x}}),z=(0,k.RL)(a=>j.JkU(function*(){let b=new URL(a.url);if(!b.pathname.startsWith(s))return yield*j.fJG(new l.yI({field:"path",reason:"missing"}));let c=b.pathname.slice(s.length);if(c.startsWith(t)){let a=yield*j.SvU({try:()=>decodeURIComponent(c.slice(t.length)),catch:()=>new l.yI({field:"path",reason:"malformed encoding"})}),d=i().normalize(i().join(m.Hj,a)),e=i().extname(d)?d:i().join(d,"index.html");if(e!==m.Hj&&!e.startsWith(m.Hj+i().sep))return yield*j.fJG(new l.i_({action:"read",resource:b.pathname}));let g=yield*j.$mh({try:()=>(0,f.readFile)(e),catch:()=>new l.m_({resource:"app",id:b.pathname})}),h=i().extname(e).toLowerCase(),k=v(h);if(w(h)){let a=b.searchParams.get("file");if(a&&!(0,n.Z1)(a))return yield*j.fJG(new l.yI({field:"file",reason:"must be an absolute path"}));let c=a?(0,n.J4)(a):i().dirname(e);return y((0,n.OP)(g.toString("utf-8"),{cwd:c}),k)}return new Response(new Uint8Array(g),{status:200,headers:{"Content-Type":k,"Content-Length":String(g.byteLength),...x}})}if(!c.startsWith("local/"))return yield*j.fJG(new l.yI({field:"path",reason:"unknown app namespace"}));let d=(0,n.qI)(b.pathname);if(null===d)return yield*j.fJG(new l.i_({action:"read",resource:b.pathname}));let h=i().normalize(d),k=yield*j.$mh({try:()=>(0,o.iF)(h),catch:a=>{let b=a?.code;return"ENOENT"===b?new l.m_({resource:"file",id:h}):new l.yI({field:"path",reason:String(a)})}});if(k.isDirectory)return yield*j.fJG(new l.yI({field:"path",reason:"is a directory"}));let p=i().extname(h).toLowerCase(),q=v(p);if(w(p)&&k.size<=8388608){let a=yield*j.$mh({try:()=>(0,f.readFile)(h,"utf-8"),catch:a=>new l.yI({field:"path",reason:String(a)})});return y((0,n.OP)(a,{cwd:(0,n.J4)(h)}),q)}let r=(0,e.createReadStream)(h);return new Response(g.Readable.toWeb(r),{status:200,headers:{"Content-Type":q,"Content-Length":String(k.size),...x}})}));d()}catch(a){d(a)}})},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57523:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/apps/[...path]/route",pathname:"/apps/[...path]",filename:"route",bundlePath:"app/apps/[...path]/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/apps/[...path]/route.ts",nextConfigOutput:"",userland:()=>c(92613),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/apps/[...path]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},92613:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>e.fG,dynamic:()=>e.OR,runtime:()=>e.fA});var e=c(36281),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},94735:a=>{a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7184,6495,1564,4916],()=>b(b.s=57523));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=519,a.ids=[519],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4253:(a,b,c)=>{c.d(b,{L8:()=>q,No:()=>h,Pe:()=>p,VA:()=>r,hC:()=>n,hH:()=>m,hn:()=>t,iF:()=>s,lU:()=>u,nw:()=>o,pZ:()=>g});var d=c(79748),e=c(33873),f=c.n(e);let g=0xa00000,h=0x3200000,i=new Set([".png",".jpg",".jpeg",".gif",".webp",".svg",".ico",".bmp",".avif"]),j=new Set([".pdf"]),k=new Set([".doc",".docx",".xls",".xlsx",".ppt",".pptx",".zip",".tar",".gz",".rar",".7z",".exe",".dll",".so",".dylib",".mp3",".mp4",".avi",".mov",".mkv",".wav",".flac",".ttf",".otf",".woff",".woff2",".eot",".db",".sqlite",".sqlite3",".pyc",".class",".o",".a"]),l={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".svg":"image/svg+xml",".ico":"image/x-icon",".bmp":"image/bmp",".avif":"image/avif",".pdf":"application/pdf"};function m(a){return l[a.toLowerCase()]||"application/octet-stream"}function n(a,b){if("string"!=typeof b||0===b.length)return null;let c=f().resolve(a),d=f().resolve(c,b);return d===c||d.startsWith(c+f().sep)?d:null}async function o(a){let b;if("string"!=typeof a||0===a.length)return{ok:!1,reason:"Missing cwd parameter"};if(!f().isAbsolute(a))return{ok:!1,reason:"cwd must be an absolute path"};let c=f().resolve(a);try{b=await (0,d.stat)(c)}catch{return{ok:!1,reason:"cwd does not exist"}}return b.isDirectory()?{ok:!0,abs:c}:{ok:!1,reason:"cwd is not a directory"}}function p(a,b){return`"${a.toString(36)}-${Math.floor(b).toString(36)}"`}function q(a,b){let c=a.startsWith(".")?a.toLowerCase():f().extname(a).toLowerCase();return i.has(c)?b>h?"too-large":"image":j.has(c)?b>0x6400000?"too-large":"pdf":k.has(c)?"binary":b>g?"too-large":"text"}function r(a){let b=0,c=Math.min(a.length,1e3);for(let d=0;d<c;d++){let c=a.charCodeAt(d);if(0===c)return!0;c<32&&9!==c&&10!==c&&13!==c&&b++}return c>0&&b/c>.1}async function s(a){let b,c=!1;try{(await (0,d.lstat)(a)).isSymbolicLink()&&(c=!0,b=await (0,d.readlink)(a))}catch{}let e=await (0,d.stat)(a);return{size:e.size,mtimeMs:e.mtimeMs,isDirectory:e.isDirectory(),isSymlink:c,symlinkTarget:b}}function t(a,b){return{ETag:a,"Last-Modified":new Date(b).toUTCString(),"Cache-Control":"no-cache, must-revalidate"}}function u(a,b){return!!a&&a.split(",").map(a=>a.trim().replace(/^W\//,"")).includes(b)}},4573:a=>{a.exports=require("node:buffer")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14629:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/apps/[...path]/route",pathname:"/apps/[...path]",filename:"route",bundlePath:"app/apps/[...path]/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/apps/[...path]/route.ts",nextConfigOutput:"",userland:()=>c(92613),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/apps/[...path]/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},36281:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>r,fA:()=>q,fG:()=>z});var e=c(29021),f=c(79748),g=c(27910),h=c(33873),i=c.n(h),j=c(89705),k=c(72891),l=c(770),m=c(7939),n=c(66106),o=c(4253),p=a([k]);k=(p.then?(await p)():p)[0];let q="nodejs",r="force-dynamic",s="/apps/",t="builtin/",u={".html":"text/html; charset=utf-8",".htm":"text/html; charset=utf-8",".css":"text/css; charset=utf-8",".js":"text/javascript; charset=utf-8",".jsx":"text/javascript; charset=utf-8",".mjs":"text/javascript; charset=utf-8",".json":"application/json; charset=utf-8",".map":"application/json; charset=utf-8",".txt":"text/plain; charset=utf-8",".md":"text/markdown; charset=utf-8",".xml":"application/xml; charset=utf-8",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".wasm":"application/wasm"},v=a=>u[a]??(0,o.hH)(a),w=a=>".html"===a||".htm"===a,x={"Cache-Control":"no-store"},y=(a,b)=>new Response(a,{status:200,headers:{"Content-Type":b,"Content-Length":String(Buffer.byteLength(a)),...x}}),z=(0,k.RL)(a=>j.JkU(function*(){let b=new URL(a.url);if(!b.pathname.startsWith(s))return yield*j.fJG(new l.yI({field:"path",reason:"missing"}));let c=b.pathname.slice(s.length);if(c.startsWith(t)){let a=yield*j.SvU({try:()=>decodeURIComponent(c.slice(t.length)),catch:()=>new l.yI({field:"path",reason:"malformed encoding"})}),d=i().normalize(i().join(m.Hj,a)),e=i().extname(d)?d:i().join(d,"index.html");if(e!==m.Hj&&!e.startsWith(m.Hj+i().sep))return yield*j.fJG(new l.i_({action:"read",resource:b.pathname}));let g=yield*j.$mh({try:()=>(0,f.readFile)(e),catch:()=>new l.m_({resource:"app",id:b.pathname})}),h=i().extname(e).toLowerCase(),k=v(h);if(w(h)){let a=b.searchParams.get("file");if(a&&!(0,n.Z1)(a))return yield*j.fJG(new l.yI({field:"file",reason:"must be an absolute path"}));let c=a?(0,n.J4)(a):i().dirname(e);return y((0,n.OP)(g.toString("utf-8"),{cwd:c}),k)}return new Response(new Uint8Array(g),{status:200,headers:{"Content-Type":k,"Content-Length":String(g.byteLength),...x}})}if(!c.startsWith("local/"))return yield*j.fJG(new l.yI({field:"path",reason:"unknown app namespace"}));let d=(0,n.qI)(b.pathname);if(null===d)return yield*j.fJG(new l.i_({action:"read",resource:b.pathname}));let h=i().normalize(d),k=yield*j.$mh({try:()=>(0,o.iF)(h),catch:a=>{let b=a?.code;return"ENOENT"===b?new l.m_({resource:"file",id:h}):new l.yI({field:"path",reason:String(a)})}});if(k.isDirectory)return yield*j.fJG(new l.yI({field:"path",reason:"is a directory"}));let p=i().extname(h).toLowerCase(),q=v(p);if(w(p)&&k.size<=8388608){let a=yield*j.$mh({try:()=>(0,f.readFile)(h,"utf-8"),catch:a=>new l.yI({field:"path",reason:String(a)})});return y((0,n.OP)(a,{cwd:(0,n.J4)(h)}),q)}let r=(0,e.createReadStream)(h);return new Response(g.Readable.toWeb(r),{status:200,headers:{"Content-Type":q,"Content-Length":String(k.size),...x}})}));d()}catch(a){d(a)}})},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},74075:a=>{a.exports=require("zlib")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},92613:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>e.fG,dynamic:()=>e.OR,runtime:()=>e.fA});var e=c(36281),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},94735:a=>{a.exports=require("events")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,7184,6495,1564,4916],()=>b(b.s=14629));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=3230,a.ids=[3230],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67005:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>f,dynamic:()=>g});var d=c(23211);let e=Buffer.from("AAABAAMAEBAAAAEAIABwAQAANgAAACAgAAABACAArAIAAKYBAAAwMAAAAQAgACMEAABSBAAAiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAABIklEQVR4nJ2TQU7DMBBFR3AI20k2rRIFsa0oqjhGWvYtHKHiBA03abhD3JskUss2OcSgP8XgEoISIv2FZ+a/cWwP0fd3HQRBaoyZ/SXUoNbzESkV3isVvmsd8hApFZ6UiuZfndUIsw8hoivCln4ml8tHtvbATdOIytJylq06EPkdY8zMD+b5K1dVxev1E8dxyklyw5vNM9d1zbtdfgGAl3wAOsOcpredboghh5pegLUH6ezW02kicmvkUNMLaNtWtuzMRfEmmkxiiSGHmlGA/b4YDihLKwfm1jA6M4QcanoBWbaS03a78IUYcv51dgBah7zdvvBi8dABIIZc5xqDXx7SUH3OhTzl0z8AR3nK52GK5iMhR62ju4uJBG3EOJ87E9EH1dFLpPIf/0YAAAAASUVORK5CYIKJUE5HDQoaCgAAAA1JSERSAAAAIAAAACAIBgAAAHN6evQAAAAJcEhZcwAACxMAAAsTAQCanBgAAAJeSURBVHiczVfNbtNAEM4LwCEpzv6ESLQFHqGFQ6ueK8fQNHCpOLV9h4Y4PEVR7cA94VEaGsKtOcZ5ixhp0LehVpr4Z41t6EgjbeL5Zr7dmR2PS6WHKIyxJ4bBLc7lGefyPKOeGYZocM43EgOXy+XHjMmvjMlfjEnKWX3GRA8xYoKLnwUEXlExDiXBFjsvOHhAoreWc1bMsUemQwhRCQig4HSAnNeo2WyR6/bo+npInucpxdpxXPUMNjq+UJhLBGqnSQDLOqLR6Aclyc3NiEzzjQaB2mlAANclzti2P5Hv+yrA7e2EOh2b9vcPaHPzuVKsbbtLk8lE2cAWv+NPU55rEUBwyHw+p4uLjyTE00inUtap3e4oWwiwmQhY1pHaDRy2Wu+1iwy2wAALH39FgPNakHPsPG2lAwOBj7DCTCRwfPwuyDmONi0BYICFwFdqAq77RYFRcGEB6vVntLv7WinW4fXTVT5wbVMTGA6/K/De3kFo8JOTDzQYfFOKdRgJYCHwlZrAbDZTYFyz1WfYNQLfCdb4b9UOWAiaVWoCnucp8NbWi0QC/f6AdnZerdltb79Uz6fTaXEp6PcHxaTAcdw/zaSboQgXTezqyklPoNls5XYN4StTI2q3O6kJAJOpETEmqdF4G7Ri07S0g8P2rhXDR8aXUVft5PLyszYB2MbVTyoCjEk6PDRD+0GUwhaYOJt7BAyNgSRvvTeQGJojWb4ElkYyzvnGYm7/T0MpBKPyvyJQrQqnFPFhMi6egBhXKpVHawSWSPQKSoePnUcGLy0J8lOtCjOvj1P4Wsv5Q5HfkPsbOVjneVcAAAAASUVORK5CYIKJUE5HDQoaCgAAAA1JSERSAAAAMAAAADAIBgAAAFcC+YcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAPVSURBVHic7VpLTxNRFG7wN9B53KkkPNTEZwJRqLIzPEwAdckj4eEKVEyoPHRB2EC0tKxJoPwA8AdQDAi4BEpZ8dhCG/wDsPKYb+AOUyjT6fT2ofFLTjIhc8/9vjvn3HtOLy7XfxQ4iovZQ0VhHySJBSRJnc6NsYDbzfrdbvbAMXFZZi9kWY3KMqP8mroty1pDOtxvSBKbzD9xdtm+ulyuopTs8fkKgCxdY19shE3eSZKVKYpWbyGgEGKeWZoksUhS8qqqPso3Odmmud3a/SsCsFVm6riq6gkND3+ihYVvtL7+k/b29nTD8/z8Ag0NjVBl5WMBAli/sORVFI26u9/Qzs4O2UU0GqXOzh59rMMw8icRoE6n66i+vpEikW1yiq2tCNXVNToQoE5nLKCv7x2dnp4mEDo8PKTZ2RC1traT1/uMSksrdPN6a6mtrYNCoTk6OjpKGHNyckK9vW9zK8DvDySQiMViNDDwkTStJOVYj6eEfL5BfYwZ8JkTAVh5M8LhJaqouJN2GGDM0tL3BF/wnVUBiHlz2MzMhEhVPY4SEaaqHt0HB3xjjqwJ2NjYNCZbXl4hxm46Jm8WsbgYNvxub0dT7k6OBGCr5ED8Ogkbq3CKmXICcwkXYN7nkbCiyMvnBp8cmEuoAJyw5q3Szm6Trmlaie6bA3MKEzAy8jkhce3ENfb+5uZXuuHZTrLPzl4kNEoSYQJQ23DgkEpFvqXlNXV2dlMwOEWBwJT+jL+lEtHa2m7MgzmFCUAxxlFd7bUkgdXu6uqhg4MDY8z+/r4uAqez1diamqfGmLW1dXECQIADpYEVCYQMVv0yAoEgNTW9tBxbWlphvI8qVpgAOOMoK7uVNQHl5beN93d3BQrA5+RIFQYIIYSL+athAeyEkNdba4xZXV3LThKjqrSbxPgSWHm7SdzW1pGdJEYnxYGtzooEF4HVRsjA8GxnGw2F5ox5BgeHxQlAG8iBeh4lcSoy6ZrHU5LQK1i1no5KCbSBHKjnRQvw+QYN/5jL6l1HArC3c8TjceHFXDweN/xjLuECLpfTKys/hJXT4fCS4Rc9dlbKaRgacPSwHCgVMhUQDF6cGfBtp8kX1lKihs9UQMzUB2S9peQ2Pj5Bx8e/aHR0LGMBo6Njui/4zOnPKvk06R8VwArxUoMsLjvE/7ibuy/A3l8RgAu1v0eA564rGc4u1Ap+9TeTkj8ToDXkm6Bsbb/dbvX5tQLOk9lfAEQpuanjLhsoQpYX2srLsjph65qVQ1GUOlyo5Zu8JLGtlGFjBVyoYdvCOZHDfzWYPJtTu+eY+H+4coM/8chkfOIE8BAAAAAASUVORK5CYII=","base64");function f(){return new d.NextResponse(e,{headers:{"Content-Type":"image/x-icon","Cache-Control":"public, max-age=0, must-revalidate"}})}let g="force-static"},70280:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/favicon.ico/route",pathname:"/favicon.ico",filename:"favicon",bundlePath:"app/favicon.ico/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"next-metadata-route-loader?filePath=%2Fhome%2Frunner%2Fwork%2Fcockpit%2Fcockpit%2Fsrc%2Fapp%2Ffavicon.ico&isDynamicRouteExtension=0!?__next_metadata_route__",nextConfigOutput:"",userland:()=>c(67005),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/favicon.ico/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=70280));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=3230,a.ids=[3230],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},53716:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/favicon.ico/route",pathname:"/favicon.ico",filename:"favicon",bundlePath:"app/favicon.ico/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"next-metadata-route-loader?filePath=%2Fhome%2Frunner%2Fwork%2Fcockpit%2Fcockpit%2Fsrc%2Fapp%2Ffavicon.ico&isDynamicRouteExtension=0!?__next_metadata_route__",nextConfigOutput:"",userland:()=>c(67005),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/favicon.ico/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},67005:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>f,dynamic:()=>g});var d=c(23211);let e=Buffer.from("AAABAAMAEBAAAAEAIABwAQAANgAAACAgAAABACAArAIAAKYBAAAwMAAAAQAgACMEAABSBAAAiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAABIklEQVR4nJ2TQU7DMBBFR3AI20k2rRIFsa0oqjhGWvYtHKHiBA03abhD3JskUss2OcSgP8XgEoISIv2FZ+a/cWwP0fd3HQRBaoyZ/SXUoNbzESkV3isVvmsd8hApFZ6UiuZfndUIsw8hoivCln4ml8tHtvbATdOIytJylq06EPkdY8zMD+b5K1dVxev1E8dxyklyw5vNM9d1zbtdfgGAl3wAOsOcpredboghh5pegLUH6ezW02kicmvkUNMLaNtWtuzMRfEmmkxiiSGHmlGA/b4YDihLKwfm1jA6M4QcanoBWbaS03a78IUYcv51dgBah7zdvvBi8dABIIZc5xqDXx7SUH3OhTzl0z8AR3nK52GK5iMhR62ju4uJBG3EOJ87E9EH1dFLpPIf/0YAAAAASUVORK5CYIKJUE5HDQoaCgAAAA1JSERSAAAAIAAAACAIBgAAAHN6evQAAAAJcEhZcwAACxMAAAsTAQCanBgAAAJeSURBVHiczVfNbtNAEM4LwCEpzv6ESLQFHqGFQ6ueK8fQNHCpOLV9h4Y4PEVR7cA94VEaGsKtOcZ5ixhp0LehVpr4Z41t6EgjbeL5Zr7dmR2PS6WHKIyxJ4bBLc7lGefyPKOeGYZocM43EgOXy+XHjMmvjMlfjEnKWX3GRA8xYoKLnwUEXlExDiXBFjsvOHhAoreWc1bMsUemQwhRCQig4HSAnNeo2WyR6/bo+npInucpxdpxXPUMNjq+UJhLBGqnSQDLOqLR6Aclyc3NiEzzjQaB2mlAANclzti2P5Hv+yrA7e2EOh2b9vcPaHPzuVKsbbtLk8lE2cAWv+NPU55rEUBwyHw+p4uLjyTE00inUtap3e4oWwiwmQhY1pHaDRy2Wu+1iwy2wAALH39FgPNakHPsPG2lAwOBj7DCTCRwfPwuyDmONi0BYICFwFdqAq77RYFRcGEB6vVntLv7WinW4fXTVT5wbVMTGA6/K/De3kFo8JOTDzQYfFOKdRgJYCHwlZrAbDZTYFyz1WfYNQLfCdb4b9UOWAiaVWoCnucp8NbWi0QC/f6AdnZerdltb79Uz6fTaXEp6PcHxaTAcdw/zaSboQgXTezqyklPoNls5XYN4StTI2q3O6kJAJOpETEmqdF4G7Ri07S0g8P2rhXDR8aXUVft5PLyszYB2MbVTyoCjEk6PDRD+0GUwhaYOJt7BAyNgSRvvTeQGJojWb4ElkYyzvnGYm7/T0MpBKPyvyJQrQqnFPFhMi6egBhXKpVHawSWSPQKSoePnUcGLy0J8lOtCjOvj1P4Wsv5Q5HfkPsbOVjneVcAAAAASUVORK5CYIKJUE5HDQoaCgAAAA1JSERSAAAAMAAAADAIBgAAAFcC+YcAAAAJcEhZcwAACxMAAAsTAQCanBgAAAPVSURBVHic7VpLTxNRFG7wN9B53KkkPNTEZwJRqLIzPEwAdckj4eEKVEyoPHRB2EC0tKxJoPwA8AdQDAi4BEpZ8dhCG/wDsPKYb+AOUyjT6fT2ofFLTjIhc8/9vjvn3HtOLy7XfxQ4iovZQ0VhHySJBSRJnc6NsYDbzfrdbvbAMXFZZi9kWY3KMqP8mroty1pDOtxvSBKbzD9xdtm+ulyuopTs8fkKgCxdY19shE3eSZKVKYpWbyGgEGKeWZoksUhS8qqqPso3Odmmud3a/SsCsFVm6riq6gkND3+ihYVvtL7+k/b29nTD8/z8Ag0NjVBl5WMBAli/sORVFI26u9/Qzs4O2UU0GqXOzh59rMMw8icRoE6n66i+vpEikW1yiq2tCNXVNToQoE5nLKCv7x2dnp4mEDo8PKTZ2RC1traT1/uMSksrdPN6a6mtrYNCoTk6OjpKGHNyckK9vW9zK8DvDySQiMViNDDwkTStJOVYj6eEfL5BfYwZ8JkTAVh5M8LhJaqouJN2GGDM0tL3BF/wnVUBiHlz2MzMhEhVPY4SEaaqHt0HB3xjjqwJ2NjYNCZbXl4hxm46Jm8WsbgYNvxub0dT7k6OBGCr5ED8Ogkbq3CKmXICcwkXYN7nkbCiyMvnBp8cmEuoAJyw5q3Szm6Trmlaie6bA3MKEzAy8jkhce3ENfb+5uZXuuHZTrLPzl4kNEoSYQJQ23DgkEpFvqXlNXV2dlMwOEWBwJT+jL+lEtHa2m7MgzmFCUAxxlFd7bUkgdXu6uqhg4MDY8z+/r4uAqez1diamqfGmLW1dXECQIADpYEVCYQMVv0yAoEgNTW9tBxbWlphvI8qVpgAOOMoK7uVNQHl5beN93d3BQrA5+RIFQYIIYSL+athAeyEkNdba4xZXV3LThKjqrSbxPgSWHm7SdzW1pGdJEYnxYGtzooEF4HVRsjA8GxnGw2F5ox5BgeHxQlAG8iBeh4lcSoy6ZrHU5LQK1i1no5KCbSBHKjnRQvw+QYN/5jL6l1HArC3c8TjceHFXDweN/xjLuECLpfTKys/hJXT4fCS4Rc9dlbKaRgacPSwHCgVMhUQDF6cGfBtp8kX1lKihs9UQMzUB2S9peQ2Pj5Bx8e/aHR0LGMBo6Njui/4zOnPKvk06R8VwArxUoMsLjvE/7ibuy/A3l8RgAu1v0eA564rGc4u1Ap+9TeTkj8ToDXkm6Bsbb/dbvX5tQLOk9lfAEQpuanjLhsoQpYX2srLsjph65qVQ1GUOlyo5Zu8JLGtlGFjBVyoYdvCOZHDfzWYPJtTu+eY+H+4coM/8chkfOIE8BAAAAAASUVORK5CYII=","base64");function f(){return new d.NextResponse(e,{headers:{"Content-Type":"image/x-icon","Cache-Control":"public, max-age=0, must-revalidate"}})}let g="force-static"},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=53716));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=4302,a.ids=[4302],a.modules={1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4984:a=>{"use strict";a.exports=require("readline")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},8366:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{default:()=>h});var e=c(48249),f=c(50392),g=a([f]);function h(a){return(0,e.jsx)(f.U,{...a})}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12629:a=>{"use strict";a.exports=import("web-tree-sitter")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},23862:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>i,dynamic:()=>g,metadata:()=>h});var d=c(5735),e=c(79830),f=c(75300);let g="force-dynamic",h={title:"Cockpit"};async function i({searchParams:a}){let{cwd:b,sessionId:c}=await a,g=await (0,e.Ru)().catch(()=>void 0);return(0,d.jsx)(f.default,{initialCwd:b,initialSessionId:c,initialSessions:g})}},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29731:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>q,handler:()=>s,routeModule:()=>r});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.bind(c,81227))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,81227))),o={children:["",{children:["m",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,23862))),"/home/runner/work/cockpit/cockpit/src/app/m/page.tsx"]}]},{"global-error":[n,"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/runner/work/cockpit/cockpit/src/app/layout.tsx"],"global-error":[j,"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,p=(0,e.H)({tree:o,page:"/m/page",pathname:"/m",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),q=p.__next_app__,r=p.routeModule,s=p.handler},33873:a=>{"use strict";a.exports=require("path")},37210:(a,b,c)=>{Promise.resolve().then(c.bind(c,8366))},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},50392:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{U:()=>j});var e=c(48249),f=c(67484),g=c(77729),h=c(76323),i=a([h]);h=(i.then?(await i)():i)[0];let k="cockpitMobileChat";function j({initialCwd:a,initialSessionId:b,initialSessions:c}){let[d,i]=(0,f.useState)(a&&b?{cwd:a,sessionId:b}:null),[l,m]=(0,f.useState)(!!(a&&b)),[n,o]=(0,f.useState)(0),[p,q]=(0,f.useState)(!1),[r,s]=(0,f.useState)(0),t=(0,f.useRef)(!1),u=(0,f.useRef)(null);(0,f.useRef)(l).current=l;let v=(0,f.useRef)(d);v.current=d,(0,f.useRef)(r).current=r,(0,f.useCallback)(()=>{v.current&&(m(!0),t.current||(window.history.pushState({[k]:v.current},""),t.current=!0))},[]);let w=(0,f.useCallback)(()=>{m(!1),t.current&&(t.current=!1,window.history.back())},[]),x=(0,f.useCallback)(a=>{let b={cwd:a.cwd,sessionId:a.sessionId,title:a.title};i(b),m(!0),window.history.pushState({[k]:b},""),t.current=!0},[]),y=(0,f.useCallback)(()=>{try{localStorage.setItem("cockpit-force-desktop","1")}catch{}window.location.href="/"},[]),z=l?-r:0;return(0,e.jsx)("div",{ref:u,className:"relative h-[100dvh] w-full overflow-clip",style:{overscrollBehaviorX:"none",touchAction:"pan-y"},children:(0,e.jsxs)("div",{className:"flex h-full",style:{width:"200%",transform:r?`translateX(${z+n}px)`:l?"translateX(-50%)":"translateX(0)",transition:p?"none":"transform 220ms ease-out",willChange:"transform"},children:[(0,e.jsx)("div",{className:"h-full w-1/2 overflow-hidden",children:(0,e.jsx)(g.X,{onOpen:x,onUseDesktop:y,initialSessions:c})}),(0,e.jsx)("div",{className:"h-full w-1/2 overflow-hidden",children:d&&(0,e.jsx)(h.H,{cwd:d.cwd,initialSessionId:d.sessionId,initialTitle:d.title,onBack:w,isActive:l},`${d.cwd}-${d.sessionId}`)})]})})}d()}catch(a){d(a)}})},51181:a=>{"use strict";a.exports=require("web-push")},59495:(a,b,c)=>{"use strict";c.d(b,{j:()=>i});var d=c(48249),e=c(67484),f=c(44643),g=c(74118),h=c(44384);function i({onSend:a,onStop:b,isRunning:c,disabled:j}){let{t:k}=(0,h.Bd)(),[l,m]=(0,e.useState)(""),n=(0,e.useRef)(null),o=(0,e.useCallback)(()=>{let b=l.trim();b&&!j&&(a(b),m(""))},[l,j,a]),p=(0,e.useCallback)(a=>{"Enter"===a.key&&(a.metaKey||a.ctrlKey)&&!a.nativeEvent.isComposing&&(a.preventDefault(),o())},[o]);return(0,d.jsxs)("div",{className:"flex items-end gap-2 border-t border-border bg-card px-3 py-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",children:[(0,d.jsx)("textarea",{ref:n,value:l,onChange:a=>m(a.target.value),onKeyDown:p,rows:1,placeholder:k("mobile.messagePlaceholder"),className:"flex-1 resize-none rounded-2xl border border-border bg-background px-4 py-2.5 text-base leading-snug outline-none focus:border-brand"}),c?(0,d.jsx)("button",{type:"button",onClick:b,"aria-label":k("mobile.stop"),className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full bg-red-500 text-white active:scale-95",children:(0,d.jsx)(f.A,{className:"h-5 w-5",fill:"currentColor"})}):(0,d.jsx)("button",{type:"button",onClick:o,disabled:j||!l.trim(),"aria-label":k("mobile.send"),className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full bg-brand text-white active:scale-95 disabled:opacity-40",children:(0,d.jsx)(g.A,{className:"h-5 w-5"})})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},72987:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(47408).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},73136:a=>{"use strict";a.exports=require("node:url")},75300:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/cockpit/cockpit/src/app/m/MobileClient.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/cockpit/cockpit/src/app/m/MobileClient.tsx","default")},76323:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{H:()=>n});var e=c(48249),f=c(67484),g=c(72987);c(79606),c(33281),c(71192);var h=c(81206),i=c(97951),j=c(40699),k=c(99843),l=c(59495),m=a([k]);function n({cwd:a,initialSessionId:b,initialTitle:c,onBack:d,isActive:m=!0}){let[o,p]=(0,f.useState)([]),[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)(c??""),[u,v]=(0,f.useState)({}),w=(0,f.useRef)(null),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(null),[B,C]=(0,f.useState)(null),D=(0,f.useRef)(!1),{isLoadingHistory:E,isLoadingMore:F,hasMoreHistory:G,loadMoreHistory:H,loadHistoryByCwdAndSessionId:I,loadedSessionId:J,loadedEngine:K}=(0,h.m)(o,p,q,{cwd:a,initialSessionId:b,onSessionId:r,onTitleChange:t,liveRunningRef:D}),L=K??u.engine??void 0,M=(0,f.useCallback)(()=>{},[]),N=(0,f.useRef)(null),{isLoading:O,liveOutputTokens:P,runningStartedAt:Q,apiRetryInfo:R,handleSend:S,handleStop:T}=(0,i.e)(o,p,{sessionId:q,cwd:a,engine:L,planMode:!1,ollamaModel:u.ollamaModel,engineModel:"kimi"===L?u.kimiModel:"glm"===L?u.glmModel:u.deepseekModel,onSessionId:r,onFetchTitle:M,onRunComplete:()=>N.current?.()}),U=J||q,V=!O&&!!U;(0,j.u)(U,p,V,L,{onRunningChange:a=>{D.current=a,y(a)},onLiveOutputTokens:A,onRunStartedAt:C,onComplete:()=>{U&&I(a,U,!0)}});let W=O||x,X=O?P:x?z:null,Y=O?Q:x?B:null,Z=(0,f.useCallback)(a=>{S(a)},[S]);return(0,e.jsxs)("div",{className:"flex h-[100dvh] flex-col bg-card",children:[(0,e.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1 border-b border-border bg-card px-2 py-2 pt-[max(0.5rem,env(safe-area-inset-top))]",children:[(0,e.jsx)("button",{type:"button",onClick:d,"aria-label":"Back",className:"flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground active:bg-accent",children:(0,e.jsx)(g.A,{className:"h-6 w-6"})}),(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,e.jsx)("div",{className:"truncate text-sm font-medium",children:s||"…"}),(0,e.jsx)("div",{className:"truncate text-xs text-muted-foreground",children:a.split("/").pop()})]})]}),E?(0,e.jsx)("div",{className:"flex flex-1 items-center justify-center text-muted-foreground",children:"…"}):(0,e.jsx)(k.M,{ref:w,messages:o,isLoading:W,liveOutputTokens:X,runningStartedAt:Y,cwd:a,sessionId:q,engine:L,apiRetryInfo:R,hasMoreHistory:G,isLoadingMore:F,onLoadMore:H,isActive:m}),(0,e.jsx)(l.j,{onSend:Z,onStop:T,isRunning:W,disabled:W})]})}k=(m.then?(await m)():m)[0],d()}catch(a){d(a)}})},76760:a=>{"use strict";a.exports=require("node:path")},77729:(a,b,c)=>{"use strict";c.d(b,{X:()=>s});var d=c(48249),e=c(67484),f=c(44384),g=c(47408);let h=(0,g.A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),i=(0,g.A)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]),j=(0,g.A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),k=(0,g.A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),l=(0,g.A)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);var m=c(83768),n=c(29939),o=c(98982),p=c(7833),q=c(208);let r="/push-sw.js";function s({onOpen:a,onUseDesktop:b,initialSessions:c}){let{t:g}=(0,f.Bd)(),[u,v]=(0,e.useState)("recent"),[w,x]=(0,e.useState)(()=>c??[]),[y,z]=(0,e.useState)(()=>Date.now()),{pinnedSessions:A}=(0,o.P)(),{supported:B,isSubscribed:C,busy:D,subscribe:E,unsubscribe:F}=function(){let[a,b]=(0,e.useState)(!1),[c,d]=(0,e.useState)("default"),[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(!1),j=(0,e.useCallback)(async()=>{if(a&&!h){i(!0);try{let a=await Notification.requestPermission();if(d(a),"granted"!==a)return;let b=await navigator.serviceWorker.register(r);await navigator.serviceWorker.ready;let c=await fetch("/api/push/public-key");if(!c.ok)throw Error(`public-key HTTP ${c.status}`);let{publicKey:e}=await c.json();if(!e)throw Error("missing VAPID public key");let f=await b.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(a){let b="=".repeat((4-a.length%4)%4),c=atob((a+b).replace(/-/g,"+").replace(/_/g,"/")),d=new Uint8Array(c.length);for(let a=0;a<c.length;a++)d[a]=c.charCodeAt(a);return d}(e)}),h=await fetch("/api/push/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscription:f})});if(!h.ok)throw Error(`subscribe HTTP ${h.status}`);g(!0)}catch(a){console.error("push subscribe failed",a),(0,p.oR)(q.A.t("mobile.notifyError",{defaultValue:"Could not enable notifications"}),"error")}finally{i(!1)}}},[a,h]),k=(0,e.useCallback)(async()=>{if(a&&!h){i(!0);try{let a=await navigator.serviceWorker.getRegistration(r),b=await a?.pushManager.getSubscription();b&&(await fetch("/api/push/unsubscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:b.endpoint})}),await b.unsubscribe()),g(!1)}catch(a){console.error("push unsubscribe failed",a)}finally{i(!1)}}},[a,h]);return{supported:a,permission:c,isSubscribed:f,busy:h,subscribe:j,unsubscribe:k}}(),{resolvedTheme:G,setTheme:H}=(0,m.DP)(),I=(0,e.useCallback)(a=>{"task-fired"===a.type||a.data&&(x(a.data.sessions||[]),z(Date.now()))},[]);(0,n.h)({url:"/ws/global-state",onMessage:I});let J=(0,e.useCallback)(a=>{let b=Math.floor((y-a)/6e4);if(b<1)return g("common.justNow");if(b<60)return g("common.minutesAgo",{count:b});let c=Math.floor(b/60);return c<24?g("common.hoursAgo",{count:c}):g("common.daysAgo",{count:Math.floor(c/24)})},[y,g]),K=a=>a.split("/").pop()||a,L=w.filter(a=>"loading"===a.status).length,M=(a,b)=>(0,d.jsx)("button",{type:"button",onClick:()=>v(a),className:`flex-1 border-b-2 pb-2 pt-1 text-sm font-medium transition-colors ${u===a?"border-brand text-brand":"border-transparent text-muted-foreground"}`,children:b});return(0,d.jsxs)("div",{className:"flex h-[100dvh] flex-col bg-card",children:[(0,d.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-3 border-b border-border px-3 py-2.5 pt-[max(0.625rem,env(safe-area-inset-top))]",children:[(0,d.jsxs)("div",{className:"flex flex-1 items-center gap-2",children:[M("recent",g("sessions.recentSessions")),M("pinned",g("sessions.pinnedSessions"))]}),B&&(0,d.jsx)("button",{type:"button",onClick:C?F:E,disabled:D,"aria-label":C?g("mobile.disableNotifications",{defaultValue:"Disable notifications"}):g("mobile.enableNotifications",{defaultValue:"Enable notifications"}),className:`flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg active:bg-accent disabled:opacity-40 ${C?"text-brand":"text-muted-foreground"}`,children:C?(0,d.jsx)(h,{className:"h-4 w-4"}):(0,d.jsx)(i,{className:"h-4 w-4"})}),(0,d.jsx)("button",{type:"button",onClick:()=>H("dark"===G?"light":"dark"),"aria-label":g("mobile.toggleTheme",{defaultValue:"Toggle theme"}),className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg text-muted-foreground active:bg-accent",children:"dark"===G?(0,d.jsx)(j,{className:"h-4 w-4"}):(0,d.jsx)(k,{className:"h-4 w-4"})}),(0,d.jsx)("button",{type:"button",onClick:b,className:"flex-shrink-0 rounded-lg px-2 py-1 text-xs text-muted-foreground active:bg-accent",children:g("mobile.useDesktop")})]}),"recent"===u&&L>0&&(0,d.jsx)("div",{className:"flex-shrink-0 border-b border-border/50 px-4 py-1.5 text-xs text-orange-11",children:g("sessions.runningCount",{count:L})}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:"recent"===u?0===w.length?(0,d.jsx)(t,{text:g("sessions.noSessions")}):w.map(b=>(0,d.jsxs)("button",{onClick:()=>a({cwd:b.cwd,sessionId:b.sessionId,title:b.title}),className:"flex w-full items-start gap-3 border-b border-border/50 px-4 py-3.5 text-left active:bg-accent",children:[(0,d.jsx)("span",{className:`mt-1.5 h-2.5 w-2.5 flex-shrink-0 rounded-full ${"loading"===b.status?"animate-pulse bg-orange-9":"unread"===b.status?"bg-red-500":"bg-muted-foreground/30"}`}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"truncate text-sm font-medium",children:K(b.cwd)}),"loading"===b.status&&(0,d.jsx)("span",{className:"flex-shrink-0 text-xs text-orange-11",children:g("sessions.running")}),"unread"===b.status&&(0,d.jsx)("span",{className:"flex-shrink-0 text-xs text-red-500",children:g("sessions.done")}),(0,d.jsx)("span",{className:"ml-auto flex-shrink-0 text-xs text-muted-foreground",children:J(b.lastActive)})]}),(b.lastUserMessage||b.title)&&(0,d.jsx)("div",{className:"mt-0.5 truncate text-xs text-foreground/70",children:b.lastUserMessage||b.title})]})]},`${b.cwd}-${b.sessionId}`)):0===A.length?(0,d.jsx)(t,{text:g("sessions.noPinnedSessions")}):A.map(b=>(0,d.jsxs)("button",{onClick:()=>a({cwd:b.cwd,sessionId:b.sessionId,title:b.customTitle}),className:"flex w-full items-start gap-3 border-b border-border/50 px-4 py-3.5 text-left active:bg-accent",children:[(0,d.jsx)(l,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-brand"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("div",{className:"truncate text-sm font-medium",children:b.customTitle||K(b.cwd)}),(0,d.jsx)("div",{className:"truncate text-xs text-muted-foreground",children:K(b.cwd)})]})]},`${b.cwd}-${b.sessionId}`))})]})}function t({text:a}){return(0,d.jsx)("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:a})}},78908:a=>{"use strict";a.exports=import("shiki")},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},90354:(a,b,c)=>{Promise.resolve().then(c.bind(c,75300))}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,6644,3641,6495,9830,5750],()=>b(b.s=29731));module.exports=c})();
1
+ (()=>{var a={};a.id=4302,a.ids=[4302],a.modules={1708:a=>{"use strict";a.exports=require("node:process")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4984:a=>{"use strict";a.exports=require("readline")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},8366:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{default:()=>h});var e=c(48249),f=c(50392),g=a([f]);function h(a){return(0,e.jsx)(f.U,{...a})}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12629:a=>{"use strict";a.exports=import("web-tree-sitter")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},23862:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>i,dynamic:()=>g,metadata:()=>h});var d=c(5735),e=c(79830),f=c(75300);let g="force-dynamic",h={title:"Cockpit"};async function i({searchParams:a}){let{cwd:b,sessionId:c}=await a,g=await (0,e.Ru)().catch(()=>void 0);return(0,d.jsx)(f.default,{initialCwd:b,initialSessionId:c,initialSessions:g})}},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},34741:(a,b,c)=>{"use strict";c.r(b),c.d(b,{__next_app__:()=>q,handler:()=>s,routeModule:()=>r});var d=c(21635),e=c(86315),f=c(1020),g=c(61287),h={};for(let a in g)0>["default","__next_app__","routeModule","handler"].indexOf(a)&&(h[a]=()=>g[a]);c.d(b,h);let i=(0,d.p)(()=>Promise.resolve().then(c.bind(c,76537))),j=(0,d.p)(()=>Promise.resolve().then(c.bind(c,81227))),k=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,55091,23))),l=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,45270,23))),m=(0,d.p)(()=>Promise.resolve().then(c.t.bind(c,28193,23))),n=(0,d.p)(()=>Promise.resolve().then(c.bind(c,81227))),o={children:["",{children:["m",{children:["__PAGE__",{},{page:[(0,d.p)(()=>Promise.resolve().then(c.bind(c,23862))),"/home/runner/work/cockpit/cockpit/src/app/m/page.tsx"]}]},{"global-error":[n,"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]},{layout:[i,"/home/runner/work/cockpit/cockpit/src/app/layout.tsx"],"global-error":[j,"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx"],"not-found":[k,"next/dist/client/components/builtin/not-found.js"],forbidden:[l,"next/dist/client/components/builtin/forbidden.js"],unauthorized:[m,"next/dist/client/components/builtin/unauthorized.js"],metadata:{icon:[async a=>(await (0,d.p)(()=>Promise.resolve().then(c.bind(c,70440)))()).default(a)],apple:[],openGraph:[],twitter:[],manifest:"/manifest.webmanifest"}},[]]}.children,p=(0,e.H)({tree:o,page:"/m/page",pathname:"/m",require:c,loadChunk:()=>Promise.resolve(),interopDefault:f.T}),q=p.__next_app__,r=p.routeModule,s=p.handler},37210:(a,b,c)=>{Promise.resolve().then(c.bind(c,8366))},38522:a=>{"use strict";a.exports=require("node:zlib")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},46060:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external.js")},50392:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{U:()=>j});var e=c(48249),f=c(67484),g=c(77729),h=c(76323),i=a([h]);h=(i.then?(await i)():i)[0];let k="cockpitMobileChat";function j({initialCwd:a,initialSessionId:b,initialSessions:c}){let[d,i]=(0,f.useState)(a&&b?{cwd:a,sessionId:b}:null),[l,m]=(0,f.useState)(!!(a&&b)),[n,o]=(0,f.useState)(0),[p,q]=(0,f.useState)(!1),[r,s]=(0,f.useState)(0),t=(0,f.useRef)(!1),u=(0,f.useRef)(null);(0,f.useRef)(l).current=l;let v=(0,f.useRef)(d);v.current=d,(0,f.useRef)(r).current=r,(0,f.useCallback)(()=>{v.current&&(m(!0),t.current||(window.history.pushState({[k]:v.current},""),t.current=!0))},[]);let w=(0,f.useCallback)(()=>{m(!1),t.current&&(t.current=!1,window.history.back())},[]),x=(0,f.useCallback)(a=>{let b={cwd:a.cwd,sessionId:a.sessionId,title:a.title};i(b),m(!0),window.history.pushState({[k]:b},""),t.current=!0},[]),y=(0,f.useCallback)(()=>{try{localStorage.setItem("cockpit-force-desktop","1")}catch{}window.location.href="/"},[]),z=l?-r:0;return(0,e.jsx)("div",{ref:u,className:"relative h-[100dvh] w-full overflow-clip",style:{overscrollBehaviorX:"none",touchAction:"pan-y"},children:(0,e.jsxs)("div",{className:"flex h-full",style:{width:"200%",transform:r?`translateX(${z+n}px)`:l?"translateX(-50%)":"translateX(0)",transition:p?"none":"transform 220ms ease-out",willChange:"transform"},children:[(0,e.jsx)("div",{className:"h-full w-1/2 overflow-hidden",children:(0,e.jsx)(g.X,{onOpen:x,onUseDesktop:y,initialSessions:c})}),(0,e.jsx)("div",{className:"h-full w-1/2 overflow-hidden",children:d&&(0,e.jsx)(h.H,{cwd:d.cwd,initialSessionId:d.sessionId,initialTitle:d.title,onBack:w,isActive:l},`${d.cwd}-${d.sessionId}`)})]})})}d()}catch(a){d(a)}})},51181:a=>{"use strict";a.exports=require("web-push")},59495:(a,b,c)=>{"use strict";c.d(b,{j:()=>i});var d=c(48249),e=c(67484),f=c(44643),g=c(74118),h=c(44384);function i({onSend:a,onStop:b,isRunning:c,disabled:j}){let{t:k}=(0,h.Bd)(),[l,m]=(0,e.useState)(""),n=(0,e.useRef)(null),o=(0,e.useCallback)(()=>{let b=l.trim();b&&!j&&(a(b),m(""))},[l,j,a]),p=(0,e.useCallback)(a=>{"Enter"===a.key&&(a.metaKey||a.ctrlKey)&&!a.nativeEvent.isComposing&&(a.preventDefault(),o())},[o]);return(0,d.jsxs)("div",{className:"flex items-end gap-2 border-t border-border bg-card px-3 py-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",children:[(0,d.jsx)("textarea",{ref:n,value:l,onChange:a=>m(a.target.value),onKeyDown:p,rows:1,placeholder:k("mobile.messagePlaceholder"),className:"flex-1 resize-none rounded-2xl border border-border bg-background px-4 py-2.5 text-base leading-snug outline-none focus:border-brand"}),c?(0,d.jsx)("button",{type:"button",onClick:b,"aria-label":k("mobile.stop"),className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full bg-red-500 text-white active:scale-95",children:(0,d.jsx)(f.A,{className:"h-5 w-5",fill:"currentColor"})}):(0,d.jsx)("button",{type:"button",onClick:o,disabled:j||!l.trim(),"aria-label":k("mobile.send"),className:"flex h-11 w-11 flex-shrink-0 items-center justify-center rounded-full bg-brand text-white active:scale-95 disabled:opacity-40",children:(0,d.jsx)(g.A,{className:"h-5 w-5"})})]})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},72987:(a,b,c)=>{"use strict";c.d(b,{A:()=>d});let d=(0,c(47408).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},73136:a=>{"use strict";a.exports=require("node:url")},75300:(a,b,c)=>{"use strict";c.d(b,{default:()=>d});let d=(0,c(77943).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/home/runner/work/cockpit/cockpit/src/app/m/MobileClient.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/home/runner/work/cockpit/cockpit/src/app/m/MobileClient.tsx","default")},76323:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{H:()=>n});var e=c(48249),f=c(67484),g=c(72987);c(79606),c(33281),c(71192);var h=c(81206),i=c(97951),j=c(40699),k=c(99843),l=c(59495),m=a([k]);function n({cwd:a,initialSessionId:b,initialTitle:c,onBack:d,isActive:m=!0}){let[o,p]=(0,f.useState)([]),[q,r]=(0,f.useState)(null),[s,t]=(0,f.useState)(c??""),[u,v]=(0,f.useState)({}),w=(0,f.useRef)(null),[x,y]=(0,f.useState)(!1),[z,A]=(0,f.useState)(null),[B,C]=(0,f.useState)(null),D=(0,f.useRef)(!1),{isLoadingHistory:E,isLoadingMore:F,hasMoreHistory:G,loadMoreHistory:H,loadHistoryByCwdAndSessionId:I,loadedSessionId:J,loadedEngine:K}=(0,h.m)(o,p,q,{cwd:a,initialSessionId:b,onSessionId:r,onTitleChange:t,liveRunningRef:D}),L=K??u.engine??void 0,M=(0,f.useCallback)(()=>{},[]),N=(0,f.useRef)(null),{isLoading:O,liveOutputTokens:P,runningStartedAt:Q,apiRetryInfo:R,handleSend:S,handleStop:T}=(0,i.e)(o,p,{sessionId:q,cwd:a,engine:L,planMode:!1,ollamaModel:u.ollamaModel,engineModel:"kimi"===L?u.kimiModel:"glm"===L?u.glmModel:u.deepseekModel,onSessionId:r,onFetchTitle:M,onRunComplete:()=>N.current?.()}),U=J||q,V=!O&&!!U;(0,j.u)(U,p,V,L,{onRunningChange:a=>{D.current=a,y(a)},onLiveOutputTokens:A,onRunStartedAt:C,onComplete:()=>{U&&I(a,U,!0)}});let W=O||x,X=O?P:x?z:null,Y=O?Q:x?B:null,Z=(0,f.useCallback)(a=>{S(a)},[S]);return(0,e.jsxs)("div",{className:"flex h-[100dvh] flex-col bg-card",children:[(0,e.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-1 border-b border-border bg-card px-2 py-2 pt-[max(0.5rem,env(safe-area-inset-top))]",children:[(0,e.jsx)("button",{type:"button",onClick:d,"aria-label":"Back",className:"flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground active:bg-accent",children:(0,e.jsx)(g.A,{className:"h-6 w-6"})}),(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,e.jsx)("div",{className:"truncate text-sm font-medium",children:s||"…"}),(0,e.jsx)("div",{className:"truncate text-xs text-muted-foreground",children:a.split("/").pop()})]})]}),E?(0,e.jsx)("div",{className:"flex flex-1 items-center justify-center text-muted-foreground",children:"…"}):(0,e.jsx)(k.M,{ref:w,messages:o,isLoading:W,liveOutputTokens:X,runningStartedAt:Y,cwd:a,sessionId:q,engine:L,apiRetryInfo:R,hasMoreHistory:G,isLoadingMore:F,onLoadMore:H,isActive:m}),(0,e.jsx)(l.j,{onSend:Z,onStop:T,isRunning:W,disabled:W})]})}k=(m.then?(await m)():m)[0],d()}catch(a){d(a)}})},76760:a=>{"use strict";a.exports=require("node:path")},77729:(a,b,c)=>{"use strict";c.d(b,{X:()=>s});var d=c(48249),e=c(67484),f=c(44384),g=c(47408);let h=(0,g.A)("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]),i=(0,g.A)("bell-off",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]),j=(0,g.A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),k=(0,g.A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]),l=(0,g.A)("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);var m=c(83768),n=c(29939),o=c(98982),p=c(7833),q=c(208);let r="/push-sw.js";function s({onOpen:a,onUseDesktop:b,initialSessions:c}){let{t:g}=(0,f.Bd)(),[u,v]=(0,e.useState)("recent"),[w,x]=(0,e.useState)(()=>c??[]),[y,z]=(0,e.useState)(()=>Date.now()),{pinnedSessions:A}=(0,o.P)(),{supported:B,isSubscribed:C,busy:D,subscribe:E,unsubscribe:F}=function(){let[a,b]=(0,e.useState)(!1),[c,d]=(0,e.useState)("default"),[f,g]=(0,e.useState)(!1),[h,i]=(0,e.useState)(!1),j=(0,e.useCallback)(async()=>{if(a&&!h){i(!0);try{let a=await Notification.requestPermission();if(d(a),"granted"!==a)return;let b=await navigator.serviceWorker.register(r);await navigator.serviceWorker.ready;let c=await fetch("/api/push/public-key");if(!c.ok)throw Error(`public-key HTTP ${c.status}`);let{publicKey:e}=await c.json();if(!e)throw Error("missing VAPID public key");let f=await b.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(a){let b="=".repeat((4-a.length%4)%4),c=atob((a+b).replace(/-/g,"+").replace(/_/g,"/")),d=new Uint8Array(c.length);for(let a=0;a<c.length;a++)d[a]=c.charCodeAt(a);return d}(e)}),h=await fetch("/api/push/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({subscription:f})});if(!h.ok)throw Error(`subscribe HTTP ${h.status}`);g(!0)}catch(a){console.error("push subscribe failed",a),(0,p.oR)(q.A.t("mobile.notifyError",{defaultValue:"Could not enable notifications"}),"error")}finally{i(!1)}}},[a,h]),k=(0,e.useCallback)(async()=>{if(a&&!h){i(!0);try{let a=await navigator.serviceWorker.getRegistration(r),b=await a?.pushManager.getSubscription();b&&(await fetch("/api/push/unsubscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({endpoint:b.endpoint})}),await b.unsubscribe()),g(!1)}catch(a){console.error("push unsubscribe failed",a)}finally{i(!1)}}},[a,h]);return{supported:a,permission:c,isSubscribed:f,busy:h,subscribe:j,unsubscribe:k}}(),{resolvedTheme:G,setTheme:H}=(0,m.DP)(),I=(0,e.useCallback)(a=>{"task-fired"===a.type||a.data&&(x(a.data.sessions||[]),z(Date.now()))},[]);(0,n.h)({url:"/ws/global-state",onMessage:I});let J=(0,e.useCallback)(a=>{let b=Math.floor((y-a)/6e4);if(b<1)return g("common.justNow");if(b<60)return g("common.minutesAgo",{count:b});let c=Math.floor(b/60);return c<24?g("common.hoursAgo",{count:c}):g("common.daysAgo",{count:Math.floor(c/24)})},[y,g]),K=a=>a.split("/").pop()||a,L=w.filter(a=>"loading"===a.status).length,M=(a,b)=>(0,d.jsx)("button",{type:"button",onClick:()=>v(a),className:`flex-1 border-b-2 pb-2 pt-1 text-sm font-medium transition-colors ${u===a?"border-brand text-brand":"border-transparent text-muted-foreground"}`,children:b});return(0,d.jsxs)("div",{className:"flex h-[100dvh] flex-col bg-card",children:[(0,d.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-3 border-b border-border px-3 py-2.5 pt-[max(0.625rem,env(safe-area-inset-top))]",children:[(0,d.jsxs)("div",{className:"flex flex-1 items-center gap-2",children:[M("recent",g("sessions.recentSessions")),M("pinned",g("sessions.pinnedSessions"))]}),B&&(0,d.jsx)("button",{type:"button",onClick:C?F:E,disabled:D,"aria-label":C?g("mobile.disableNotifications",{defaultValue:"Disable notifications"}):g("mobile.enableNotifications",{defaultValue:"Enable notifications"}),className:`flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg active:bg-accent disabled:opacity-40 ${C?"text-brand":"text-muted-foreground"}`,children:C?(0,d.jsx)(h,{className:"h-4 w-4"}):(0,d.jsx)(i,{className:"h-4 w-4"})}),(0,d.jsx)("button",{type:"button",onClick:()=>H("dark"===G?"light":"dark"),"aria-label":g("mobile.toggleTheme",{defaultValue:"Toggle theme"}),className:"flex h-8 w-8 flex-shrink-0 items-center justify-center rounded-lg text-muted-foreground active:bg-accent",children:"dark"===G?(0,d.jsx)(j,{className:"h-4 w-4"}):(0,d.jsx)(k,{className:"h-4 w-4"})}),(0,d.jsx)("button",{type:"button",onClick:b,className:"flex-shrink-0 rounded-lg px-2 py-1 text-xs text-muted-foreground active:bg-accent",children:g("mobile.useDesktop")})]}),"recent"===u&&L>0&&(0,d.jsx)("div",{className:"flex-shrink-0 border-b border-border/50 px-4 py-1.5 text-xs text-orange-11",children:g("sessions.runningCount",{count:L})}),(0,d.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:"recent"===u?0===w.length?(0,d.jsx)(t,{text:g("sessions.noSessions")}):w.map(b=>(0,d.jsxs)("button",{onClick:()=>a({cwd:b.cwd,sessionId:b.sessionId,title:b.title}),className:"flex w-full items-start gap-3 border-b border-border/50 px-4 py-3.5 text-left active:bg-accent",children:[(0,d.jsx)("span",{className:`mt-1.5 h-2.5 w-2.5 flex-shrink-0 rounded-full ${"loading"===b.status?"animate-pulse bg-orange-9":"unread"===b.status?"bg-red-500":"bg-muted-foreground/30"}`}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"truncate text-sm font-medium",children:K(b.cwd)}),"loading"===b.status&&(0,d.jsx)("span",{className:"flex-shrink-0 text-xs text-orange-11",children:g("sessions.running")}),"unread"===b.status&&(0,d.jsx)("span",{className:"flex-shrink-0 text-xs text-red-500",children:g("sessions.done")}),(0,d.jsx)("span",{className:"ml-auto flex-shrink-0 text-xs text-muted-foreground",children:J(b.lastActive)})]}),(b.lastUserMessage||b.title)&&(0,d.jsx)("div",{className:"mt-0.5 truncate text-xs text-foreground/70",children:b.lastUserMessage||b.title})]})]},`${b.cwd}-${b.sessionId}`)):0===A.length?(0,d.jsx)(t,{text:g("sessions.noPinnedSessions")}):A.map(b=>(0,d.jsxs)("button",{onClick:()=>a({cwd:b.cwd,sessionId:b.sessionId,title:b.customTitle}),className:"flex w-full items-start gap-3 border-b border-border/50 px-4 py-3.5 text-left active:bg-accent",children:[(0,d.jsx)(l,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-brand"}),(0,d.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,d.jsx)("div",{className:"truncate text-sm font-medium",children:b.customTitle||K(b.cwd)}),(0,d.jsx)("div",{className:"truncate text-xs text-muted-foreground",children:K(b.cwd)})]})]},`${b.cwd}-${b.sessionId}`))})]})}function t({text:a}){return(0,d.jsx)("div",{className:"px-4 py-8 text-center text-sm text-muted-foreground",children:a})}},78908:a=>{"use strict";a.exports=import("shiki")},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},90354:(a,b,c)=>{Promise.resolve().then(c.bind(c,75300))}};var b=require("../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,6644,3641,6495,9830,5750],()=>b(b.s=34741));module.exports=c})();