@surething/cockpit 1.0.186 → 1.0.188

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 (180) hide show
  1. package/.next-prod/BUILD_ID +1 -1
  2. package/.next-prod/app-path-routes-manifest.json +26 -26
  3. package/.next-prod/build-manifest.json +2 -2
  4. package/.next-prod/prerender-manifest.json +3 -3
  5. package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
  6. package/.next-prod/server/app/_global-error.html +2 -2
  7. package/.next-prod/server/app/_global-error.rsc +1 -1
  8. package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  10. package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  11. package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
  12. package/.next-prod/server/app/_global-error.segments/_index.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_client-reference-manifest.js +1 -1
  15. package/.next-prod/server/app/_not-found.html +2 -2
  16. package/.next-prod/server/app/_not-found.rsc +2 -2
  17. package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +2 -2
  18. package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
  19. package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +2 -2
  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/_not-found.segment.rsc +1 -1
  22. package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  23. package/.next-prod/server/app/api/bash/route_client-reference-manifest.js +1 -1
  24. package/.next-prod/server/app/api/chat/codex/route_client-reference-manifest.js +1 -1
  25. package/.next-prod/server/app/api/chat/kimi/route_client-reference-manifest.js +1 -1
  26. package/.next-prod/server/app/api/chat/ollama/route_client-reference-manifest.js +1 -1
  27. package/.next-prod/server/app/api/chat/route.js +3 -3
  28. package/.next-prod/server/app/api/chat/route_client-reference-manifest.js +1 -1
  29. package/.next-prod/server/app/api/claude-stats/route.js +1 -1
  30. package/.next-prod/server/app/api/claude-stats/route_client-reference-manifest.js +1 -1
  31. package/.next-prod/server/app/api/commands/route.js +1 -1
  32. package/.next-prod/server/app/api/commands/route_client-reference-manifest.js +1 -1
  33. package/.next-prod/server/app/api/comments/route.js +1 -1
  34. package/.next-prod/server/app/api/comments/route_client-reference-manifest.js +1 -1
  35. package/.next-prod/server/app/api/db/columns/route_client-reference-manifest.js +1 -1
  36. package/.next-prod/server/app/api/db/connect/route_client-reference-manifest.js +1 -1
  37. package/.next-prod/server/app/api/db/disconnect/route_client-reference-manifest.js +1 -1
  38. package/.next-prod/server/app/api/db/export/route_client-reference-manifest.js +1 -1
  39. package/.next-prod/server/app/api/db/query/route_client-reference-manifest.js +1 -1
  40. package/.next-prod/server/app/api/db/schemas/route_client-reference-manifest.js +1 -1
  41. package/.next-prod/server/app/api/extension/version/route_client-reference-manifest.js +1 -1
  42. package/.next-prod/server/app/api/file/route_client-reference-manifest.js +1 -1
  43. package/.next-prod/server/app/api/files/blame/route_client-reference-manifest.js +1 -1
  44. package/.next-prod/server/app/api/files/clipboard/route_client-reference-manifest.js +1 -1
  45. package/.next-prod/server/app/api/files/copy/route_client-reference-manifest.js +1 -1
  46. package/.next-prod/server/app/api/files/delete/route_client-reference-manifest.js +1 -1
  47. package/.next-prod/server/app/api/files/expanded/route.js +1 -1
  48. package/.next-prod/server/app/api/files/expanded/route_client-reference-manifest.js +1 -1
  49. package/.next-prod/server/app/api/files/index/route_client-reference-manifest.js +1 -1
  50. package/.next-prod/server/app/api/files/init/route.js +1 -1
  51. package/.next-prod/server/app/api/files/init/route_client-reference-manifest.js +1 -1
  52. package/.next-prod/server/app/api/files/paste/route_client-reference-manifest.js +1 -1
  53. package/.next-prod/server/app/api/files/read/route_client-reference-manifest.js +1 -1
  54. package/.next-prod/server/app/api/files/readdir/route_client-reference-manifest.js +1 -1
  55. package/.next-prod/server/app/api/files/recent/route.js +1 -1
  56. package/.next-prod/server/app/api/files/recent/route_client-reference-manifest.js +1 -1
  57. package/.next-prod/server/app/api/files/save/route_client-reference-manifest.js +1 -1
  58. package/.next-prod/server/app/api/files/search/route_client-reference-manifest.js +1 -1
  59. package/.next-prod/server/app/api/git/branch-diff/route_client-reference-manifest.js +1 -1
  60. package/.next-prod/server/app/api/git/branches/route_client-reference-manifest.js +1 -1
  61. package/.next-prod/server/app/api/git/commit-diff/route_client-reference-manifest.js +1 -1
  62. package/.next-prod/server/app/api/git/commits/route_client-reference-manifest.js +1 -1
  63. package/.next-prod/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
  64. package/.next-prod/server/app/api/git/discard/route_client-reference-manifest.js +1 -1
  65. package/.next-prod/server/app/api/git/stage/route_client-reference-manifest.js +1 -1
  66. package/.next-prod/server/app/api/git/status/route_client-reference-manifest.js +1 -1
  67. package/.next-prod/server/app/api/git/unstage/route_client-reference-manifest.js +1 -1
  68. package/.next-prod/server/app/api/git/worktree/route_client-reference-manifest.js +1 -1
  69. package/.next-prod/server/app/api/global-state/route_client-reference-manifest.js +1 -1
  70. package/.next-prod/server/app/api/jupyter/load/route_client-reference-manifest.js +1 -1
  71. package/.next-prod/server/app/api/jupyter/save/route_client-reference-manifest.js +1 -1
  72. package/.next-prod/server/app/api/jupyter/shutdown/route_client-reference-manifest.js +1 -1
  73. package/.next-prod/server/app/api/lsp/definition/route_client-reference-manifest.js +1 -1
  74. package/.next-prod/server/app/api/lsp/hover/route_client-reference-manifest.js +1 -1
  75. package/.next-prod/server/app/api/lsp/references/route_client-reference-manifest.js +1 -1
  76. package/.next-prod/server/app/api/lsp/status/route_client-reference-manifest.js +1 -1
  77. package/.next-prod/server/app/api/lsp/warmup/route_client-reference-manifest.js +1 -1
  78. package/.next-prod/server/app/api/mysql/columns/route_client-reference-manifest.js +1 -1
  79. package/.next-prod/server/app/api/mysql/connect/route_client-reference-manifest.js +1 -1
  80. package/.next-prod/server/app/api/mysql/disconnect/route_client-reference-manifest.js +1 -1
  81. package/.next-prod/server/app/api/mysql/export/route_client-reference-manifest.js +1 -1
  82. package/.next-prod/server/app/api/mysql/query/route_client-reference-manifest.js +1 -1
  83. package/.next-prod/server/app/api/mysql/schemas/route_client-reference-manifest.js +1 -1
  84. package/.next-prod/server/app/api/neo4j/connect/route_client-reference-manifest.js +1 -1
  85. package/.next-prod/server/app/api/neo4j/disconnect/route_client-reference-manifest.js +1 -1
  86. package/.next-prod/server/app/api/neo4j/query/route_client-reference-manifest.js +1 -1
  87. package/.next-prod/server/app/api/neo4j/schema/route_client-reference-manifest.js +1 -1
  88. package/.next-prod/server/app/api/note/route.js +1 -1
  89. package/.next-prod/server/app/api/note/route_client-reference-manifest.js +1 -1
  90. package/.next-prod/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
  91. package/.next-prod/server/app/api/ollama/start/route_client-reference-manifest.js +1 -1
  92. package/.next-prod/server/app/api/open-cursor/route_client-reference-manifest.js +1 -1
  93. package/.next-prod/server/app/api/open-vscode/route_client-reference-manifest.js +1 -1
  94. package/.next-prod/server/app/api/pick-folder/route_client-reference-manifest.js +1 -1
  95. package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
  96. package/.next-prod/server/app/api/pinned-sessions/route_client-reference-manifest.js +1 -1
  97. package/.next-prod/server/app/api/project-settings/route.js +1 -1
  98. package/.next-prod/server/app/api/project-settings/route_client-reference-manifest.js +1 -1
  99. package/.next-prod/server/app/api/project-state/route.js +1 -1
  100. package/.next-prod/server/app/api/project-state/route_client-reference-manifest.js +1 -1
  101. package/.next-prod/server/app/api/projects/route.js +1 -1
  102. package/.next-prod/server/app/api/projects/route_client-reference-manifest.js +1 -1
  103. package/.next-prod/server/app/api/redis/command/route_client-reference-manifest.js +1 -1
  104. package/.next-prod/server/app/api/redis/connect/route_client-reference-manifest.js +1 -1
  105. package/.next-prod/server/app/api/redis/delete/route_client-reference-manifest.js +1 -1
  106. package/.next-prod/server/app/api/redis/disconnect/route_client-reference-manifest.js +1 -1
  107. package/.next-prod/server/app/api/redis/get/route_client-reference-manifest.js +1 -1
  108. package/.next-prod/server/app/api/redis/keys/route_client-reference-manifest.js +1 -1
  109. package/.next-prod/server/app/api/redis/set/route_client-reference-manifest.js +1 -1
  110. package/.next-prod/server/app/api/review/[id]/comments/route_client-reference-manifest.js +1 -1
  111. package/.next-prod/server/app/api/review/[id]/replies/route_client-reference-manifest.js +1 -1
  112. package/.next-prod/server/app/api/review/[id]/route.js +1 -1
  113. package/.next-prod/server/app/api/review/[id]/route_client-reference-manifest.js +1 -1
  114. package/.next-prod/server/app/api/review/identify/route.js +1 -1
  115. package/.next-prod/server/app/api/review/identify/route_client-reference-manifest.js +1 -1
  116. package/.next-prod/server/app/api/review/order/route.js +1 -1
  117. package/.next-prod/server/app/api/review/order/route_client-reference-manifest.js +1 -1
  118. package/.next-prod/server/app/api/review/route_client-reference-manifest.js +1 -1
  119. package/.next-prod/server/app/api/review/share-info/route_client-reference-manifest.js +1 -1
  120. package/.next-prod/server/app/api/review/users/route.js +1 -1
  121. package/.next-prod/server/app/api/review/users/route_client-reference-manifest.js +1 -1
  122. package/.next-prod/server/app/api/scheduled-tasks/route.js +1 -1
  123. package/.next-prod/server/app/api/scheduled-tasks/route_client-reference-manifest.js +1 -1
  124. package/.next-prod/server/app/api/services/config/route.js +1 -1
  125. package/.next-prod/server/app/api/services/config/route_client-reference-manifest.js +1 -1
  126. package/.next-prod/server/app/api/services/scripts/route_client-reference-manifest.js +1 -1
  127. package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
  128. package/.next-prod/server/app/api/session/[sessionId]/fork/route_client-reference-manifest.js +1 -1
  129. package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
  130. package/.next-prod/server/app/api/session/[sessionId]/history/route_client-reference-manifest.js +1 -1
  131. package/.next-prod/server/app/api/session-by-path/route.js +1 -1
  132. package/.next-prod/server/app/api/session-by-path/route_client-reference-manifest.js +1 -1
  133. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
  134. package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route_client-reference-manifest.js +1 -1
  135. package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
  136. package/.next-prod/server/app/api/sessions/projects/route_client-reference-manifest.js +1 -1
  137. package/.next-prod/server/app/api/sessions/route.js +1 -1
  138. package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +1 -1
  139. package/.next-prod/server/app/api/settings/route.js +1 -1
  140. package/.next-prod/server/app/api/settings/route_client-reference-manifest.js +1 -1
  141. package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
  142. package/.next-prod/server/app/api/terminal/aliases/route_client-reference-manifest.js +1 -1
  143. package/.next-prod/server/app/api/terminal/autocomplete/route_client-reference-manifest.js +1 -1
  144. package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
  145. package/.next-prod/server/app/api/terminal/bubble-order/route_client-reference-manifest.js +1 -1
  146. package/.next-prod/server/app/api/terminal/env/route.js +1 -1
  147. package/.next-prod/server/app/api/terminal/env/route_client-reference-manifest.js +1 -1
  148. package/.next-prod/server/app/api/terminal/history/route.js +1 -1
  149. package/.next-prod/server/app/api/terminal/history/route_client-reference-manifest.js +1 -1
  150. package/.next-prod/server/app/api/version/route_client-reference-manifest.js +1 -1
  151. package/.next-prod/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  152. package/.next-prod/server/app/page.js +1 -1
  153. package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
  154. package/.next-prod/server/app/project/page.js +4 -4
  155. package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
  156. package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
  157. package/.next-prod/server/app-paths-manifest.json +26 -26
  158. package/.next-prod/server/chunks/4098.js +1 -1
  159. package/.next-prod/server/chunks/5394.js +1 -1
  160. package/.next-prod/server/chunks/6062.js +1 -1
  161. package/.next-prod/server/chunks/7284.js +1 -1
  162. package/.next-prod/server/pages/404.html +2 -2
  163. package/.next-prod/server/pages/500.html +2 -2
  164. package/.next-prod/server/server-reference-manifest.json +1 -1
  165. package/.next-prod/static/chunks/{1593-7902218f5b10761f.js → 1593-d845ec6e5c8de67e.js} +1 -1
  166. package/.next-prod/static/chunks/{5493-482fc2bbb049e7a4.js → 5493-83d6a5ec42d6cbb3.js} +1 -1
  167. package/.next-prod/static/chunks/app/page-cc2b332242bc2c93.js +1 -0
  168. package/.next-prod/static/chunks/app/project/page-b867dec5473dadac.js +25 -0
  169. package/.next-prod/static/css/bbd65867698c479b.css +3 -0
  170. package/.next-prod/trace +12 -12
  171. package/.next-prod/trace-build +1 -1
  172. package/dist/{chunk-VV5VMA4B.mjs → chunk-KLV3PBIZ.mjs} +17 -0
  173. package/dist/scheduledTasks.mjs +7 -2
  174. package/dist/wsServer.mjs +1 -1
  175. package/package.json +2 -2
  176. package/.next-prod/static/chunks/app/page-cc2bf3ca4c337090.js +0 -1
  177. package/.next-prod/static/chunks/app/project/page-62d5a8ed458279b8.js +0 -25
  178. package/.next-prod/static/css/1573b510894a4234.css +0 -3
  179. /package/.next-prod/static/{0mBqfZkcLM2Y1ikI9uxKG → _gYuZ_hBlVHw7RvEBSdgN}/_buildManifest.js +0 -0
  180. /package/.next-prod/static/{0mBqfZkcLM2Y1ikI9uxKG → _gYuZ_hBlVHw7RvEBSdgN}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/services/scripts/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/1573b510894a4234.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/services/scripts/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/services/scripts/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/bbd65867698c479b.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/services/scripts/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- (()=>{var a={};a.id=3347,a.ids=[3347],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},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")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{"use strict";a.exports=require("os")},23152:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>I,patchFetch:()=>H,routeModule:()=>D,serverHooks:()=>G,workAsyncStorage:()=>E,workUnitAsyncStorage:()=>F});var d={};c.r(d),c.d(d,{POST:()=>C,runtime:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(45592),w=c(29021),x=c(79748),y=c(4984),z=c(55511),A=c(25813);let B="nodejs";async function C(a,{params:b}){try{let{sessionId:c}=await b,{cwd:d,fromMessageUuid:e}=await a.json();if(!d)return v.NextResponse.json({error:"Missing cwd parameter"},{status:400});let f=(0,A.Kk)(d,c);if(!(0,w.existsSync)(f))return v.NextResponse.json({error:"Original session not found"},{status:404});let g=(0,z.randomUUID)(),h=[],i=(0,w.createReadStream)(f),j=(0,y.createInterface)({input:i,crlfDelay:1/0}),k="collecting";for await(let a of j){if("done"===k)break;if(a.trim())try{let b=JSON.parse(a);if("found_target"===k&&function(a){if("user"!==a.type)return!1;let b=a.message;if(!b)return!1;let c=b.content;return Array.isArray(c)?c.some(a=>"text"===a.type):"string"==typeof c}(b)){k="done";break}e&&b.uuid===e&&(k="found_target"),b.sessionId=g,h.push(JSON.stringify(b))}catch{let b=a.replace(RegExp(c,"g"),g);h.push(b)}}let l=(0,A.Kk)(d,g);return await (0,x.writeFile)(l,h.join("\n")+"\n","utf-8"),v.NextResponse.json({success:!0,originalSessionId:c,newSessionId:g,messageCount:h.length})}catch(a){return console.error("Fork session error:",a),v.NextResponse.json({error:"Failed to fork session"},{status:500})}}let D=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/session/[sessionId]/fork/route",pathname:"/api/session/[sessionId]/fork",filename:"route",bundlePath:"app/api/session/[sessionId]/fork/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/fork/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:E,workUnitAsyncStorage:F,serverHooks:G}=D;function H(){return(0,g.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:F})}async function I(a,b,c){D.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/session/[sessionId]/fork/route";"/index"===d&&(d="/");let e=await D.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(z.dynamicRoutes[H]||z.routes[E]),J=async()=>((null==A?void 0:A.render404)?await A.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!z.routes[E],b=z.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.experimental.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||D.isDev||y||(K="/index"===(K=E)?"/":K);let L=!0===D.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q={params:v,prerenderManifest:z,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>D.onRequestError(a,b,d,e,A)},sharedContext:{buildId:g}},R=new l.NodeNextRequest(a),S=new l.NodeNextResponse(b),T=m.NextRequestAdapter.fromNodeNextRequest(R,(0,m.signalFromNodeResponse)(b));try{let e=async a=>D.handle(T,Q).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void 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");if(e){let b=`${N} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b)}else a.updateName(`${N} ${d}`)}),g=!!(0,h.getRequestMeta)(a,"minimalMode"),j=async h=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!g&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await e(h);a.fetchMetrics=Q.renderOpts.fetchMetrics;let i=Q.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=Q.renderOpts.collectedTags;if(!I)return await (0,p.I)(R,S,d,Q.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);j&&(b[s.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==Q.renderOpts.collectedRevalidate&&!(Q.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&Q.renderOpts.collectedRevalidate,e=void 0===Q.renderOpts.collectedExpire||Q.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:Q.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await D.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),b}},l=await D.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil,isMinimalMode:g});if(!I)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});g||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,q.fromNodeOutgoingHttpHeaders)(l.value.headers);return g&&I||m.delete(s.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,r.getCacheControlHeader)(l.cacheControl)),await (0,p.I)(R,S,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};P?await j(P):await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},j))}catch(b){if(b instanceof t.NoFallbackError||await D.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),I)throw b;return await (0,p.I)(R,S,new Response(null,{status:500})),null}}},25813:(a,b,c)=>{"use strict";c.d(b,{$A:()=>G,A0:()=>P,An:()=>S,BF:()=>C,Ct:()=>K,Eu:()=>B,Ex:()=>s,JE:()=>R,JY:()=>F,Ki:()=>w,Kk:()=>L,Kv:()=>j,LN:()=>k,Mx:()=>x,O0:()=>v,Sr:()=>D,Tb:()=>q,Ux:()=>U,Wd:()=>Q,aO:()=>m,ec:()=>n,eg:()=>N,i4:()=>A,iK:()=>o,iy:()=>J,lq:()=>z,ls:()=>E,mT:()=>u,oK:()=>I,of:()=>y,po:()=>H,tP:()=>p,th:()=>t,v4:()=>l,vI:()=>O,yw:()=>M});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"note.md"),o=(0,e.join)(j,"scheduled-tasks.json"),p=(0,e.join)(j,"settings.json"),q=(0,e.join)(j,"review"),r=(0,e.join)(q,"_signal");function s(){try{(0,g.existsSync)(q)||(0,g.mkdirSync)(q,{recursive:!0}),(0,g.writeFileSync)(r,Date.now().toString())}catch{}}let t=(0,e.join)(i,".claude"),u=(0,e.join)(t,"projects");function v(a){return a.replace(/[/.]/g,"-")}function w(a){return(0,e.join)(k,v(a))}function x(a){return(0,e.join)(w(a),"session.json")}function y(a){return(0,e.join)(w(a),"recent-files.json")}function z(a){return(0,e.join)(w(a),"expanded-paths.json")}function A(a){return(0,e.join)(w(a),"comments.json")}function B(a){return(0,e.join)(w(a),"services.json")}function C(a){return(0,e.join)(w(a),"note.md")}function D(a,b){return(0,e.join)(w(a),`terminal-history-${b}.jsonl`)}function E(a,b){return(0,e.join)(w(a),`terminal-output-${b}.txt`)}function F(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(w(a),c)}function G(){return(0,e.join)(j,"terminal-aliases.json")}function H(){return(0,e.join)(j,"services.json")}function I(a){return(0,e.join)(w(a),"project-settings.json")}function J(a,b){return(0,e.join)(w(a),`terminal-bubble-order-${b}.json`)}function K(a){return(0,e.join)(q,`${a}.json`)}function L(a,b){return(0,e.join)((0,e.join)(u,v(a)),`${b}.jsonl`)}function M(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",v(a)),`${b}.jsonl`)}function N(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function O(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function P(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function Q(a){let b=(0,e.join)(a,"..");await P(b)}async function R(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function S(a,b){await Q(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let T=new Map;function U(a,b){let c=(T.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return T.set(a,d),d.then(()=>{T.get(a)===d&&T.delete(a)}),c}},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")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=23152));module.exports=c})();
1
+ (()=>{var a={};a.id=3347,a.ids=[3347],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},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")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{"use strict";a.exports=require("os")},23152:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>I,patchFetch:()=>H,routeModule:()=>D,serverHooks:()=>G,workAsyncStorage:()=>E,workUnitAsyncStorage:()=>F});var d={};c.r(d),c.d(d,{POST:()=>C,runtime:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(45592),w=c(29021),x=c(79748),y=c(4984),z=c(55511),A=c(25813);let B="nodejs";async function C(a,{params:b}){try{let{sessionId:c}=await b,{cwd:d,fromMessageUuid:e}=await a.json();if(!d)return v.NextResponse.json({error:"Missing cwd parameter"},{status:400});let f=(0,A.Kk)(d,c);if(!(0,w.existsSync)(f))return v.NextResponse.json({error:"Original session not found"},{status:404});let g=(0,z.randomUUID)(),h=[],i=(0,w.createReadStream)(f),j=(0,y.createInterface)({input:i,crlfDelay:1/0}),k="collecting";for await(let a of j){if("done"===k)break;if(a.trim())try{let b=JSON.parse(a);if("found_target"===k&&function(a){if("user"!==a.type)return!1;let b=a.message;if(!b)return!1;let c=b.content;return Array.isArray(c)?c.some(a=>"text"===a.type):"string"==typeof c}(b)){k="done";break}e&&b.uuid===e&&(k="found_target"),b.sessionId=g,h.push(JSON.stringify(b))}catch{let b=a.replace(RegExp(c,"g"),g);h.push(b)}}let l=(0,A.Kk)(d,g);return await (0,x.writeFile)(l,h.join("\n")+"\n","utf-8"),v.NextResponse.json({success:!0,originalSessionId:c,newSessionId:g,messageCount:h.length})}catch(a){return console.error("Fork session error:",a),v.NextResponse.json({error:"Failed to fork session"},{status:500})}}let D=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/session/[sessionId]/fork/route",pathname:"/api/session/[sessionId]/fork",filename:"route",bundlePath:"app/api/session/[sessionId]/fork/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/fork/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:E,workUnitAsyncStorage:F,serverHooks:G}=D;function H(){return(0,g.patchFetch)({workAsyncStorage:E,workUnitAsyncStorage:F})}async function I(a,b,c){D.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/session/[sessionId]/fork/route";"/index"===d&&(d="/");let e=await D.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(z.dynamicRoutes[H]||z.routes[E]),J=async()=>((null==A?void 0:A.render404)?await A.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!z.routes[E],b=z.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.experimental.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||D.isDev||y||(K="/index"===(K=E)?"/":K);let L=!0===D.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q={params:v,prerenderManifest:z,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>D.onRequestError(a,b,d,e,A)},sharedContext:{buildId:g}},R=new l.NodeNextRequest(a),S=new l.NodeNextResponse(b),T=m.NextRequestAdapter.fromNodeNextRequest(R,(0,m.signalFromNodeResponse)(b));try{let e=async a=>D.handle(T,Q).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void 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");if(e){let b=`${N} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b)}else a.updateName(`${N} ${d}`)}),g=!!(0,h.getRequestMeta)(a,"minimalMode"),j=async h=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!g&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await e(h);a.fetchMetrics=Q.renderOpts.fetchMetrics;let i=Q.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=Q.renderOpts.collectedTags;if(!I)return await (0,p.I)(R,S,d,Q.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);j&&(b[s.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==Q.renderOpts.collectedRevalidate&&!(Q.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&Q.renderOpts.collectedRevalidate,e=void 0===Q.renderOpts.collectedExpire||Q.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:Q.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await D.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),b}},l=await D.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil,isMinimalMode:g});if(!I)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});g||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,q.fromNodeOutgoingHttpHeaders)(l.value.headers);return g&&I||m.delete(s.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,r.getCacheControlHeader)(l.cacheControl)),await (0,p.I)(R,S,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};P?await j(P):await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},j))}catch(b){if(b instanceof t.NoFallbackError||await D.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),I)throw b;return await (0,p.I)(R,S,new Response(null,{status:500})),null}}},25813:(a,b,c)=>{"use strict";c.d(b,{$A:()=>I,A0:()=>S,An:()=>V,BF:()=>E,Ct:()=>M,Eu:()=>D,Ex:()=>s,JE:()=>U,JY:()=>H,Ki:()=>y,Kk:()=>N,Kv:()=>j,LN:()=>k,Mx:()=>z,O0:()=>x,Sr:()=>F,Tb:()=>q,Ux:()=>X,Wd:()=>T,aO:()=>m,at:()=>w,ec:()=>n,eg:()=>Q,h9:()=>v,i4:()=>C,iK:()=>o,iy:()=>L,lq:()=>B,ls:()=>G,mT:()=>u,oK:()=>K,oZ:()=>O,of:()=>A,po:()=>J,tP:()=>p,th:()=>t,v4:()=>l,vI:()=>R,yw:()=>P});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"note.md"),o=(0,e.join)(j,"scheduled-tasks.json"),p=(0,e.join)(j,"settings.json"),q=(0,e.join)(j,"review"),r=(0,e.join)(q,"_signal");function s(){try{(0,g.existsSync)(q)||(0,g.mkdirSync)(q,{recursive:!0}),(0,g.writeFileSync)(r,Date.now().toString())}catch{}}let t=(0,e.join)(i,".claude"),u=(0,e.join)(t,"projects"),v=(0,e.join)(i,".claude2"),w=(0,e.join)(v,"projects");function x(a){return a.replace(/[/.]/g,"-")}function y(a){return(0,e.join)(k,x(a))}function z(a){return(0,e.join)(y(a),"session.json")}function A(a){return(0,e.join)(y(a),"recent-files.json")}function B(a){return(0,e.join)(y(a),"expanded-paths.json")}function C(a){return(0,e.join)(y(a),"comments.json")}function D(a){return(0,e.join)(y(a),"services.json")}function E(a){return(0,e.join)(y(a),"note.md")}function F(a,b){return(0,e.join)(y(a),`terminal-history-${b}.jsonl`)}function G(a,b){return(0,e.join)(y(a),`terminal-output-${b}.txt`)}function H(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(y(a),c)}function I(){return(0,e.join)(j,"terminal-aliases.json")}function J(){return(0,e.join)(j,"services.json")}function K(a){return(0,e.join)(y(a),"project-settings.json")}function L(a,b){return(0,e.join)(y(a),`terminal-bubble-order-${b}.json`)}function M(a){return(0,e.join)(q,`${a}.json`)}function N(a,b){return(0,e.join)((0,e.join)(u,x(a)),`${b}.jsonl`)}function O(a,b){return(0,e.join)((0,e.join)(w,x(a)),`${b}.jsonl`)}function P(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",x(a)),`${b}.jsonl`)}function Q(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function R(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function S(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function T(a){let b=(0,e.join)(a,"..");await S(b)}async function U(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function V(a,b){await T(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let W=new Map;function X(a,b){let c=(W.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return W.set(a,d),d.then(()=>{W.get(a)===d&&W.delete(a)}),c}},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")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=23152));module.exports=c})();
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/session/[sessionId]/fork/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/1573b510894a4234.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/fork/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/session/[sessionId]/fork/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/bbd65867698c479b.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/fork/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- (()=>{var a={};a.id=5849,a.ids=[5849],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},4777:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{GET:()=>A,dynamic:()=>z,runtime:()=>y});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(29021),w=c(4984),x=c(25813);let y="nodejs",z="force-dynamic";async function A(a,{params:b}){try{let{sessionId:a}=await b;if(!a)return new Response(JSON.stringify({error:"Missing sessionId"}),{status:400,headers:{"Content-Type":"application/json"}});let c=process.cwd(),d=(0,x.Kk)(c,a);if(!v.existsSync(d))return new Response(JSON.stringify({error:"Session not found",messages:[]}),{status:404,headers:{"Content-Type":"application/json"}});let e=await B(d);return new Response(JSON.stringify({messages:e}),{status:200,headers:{"Content-Type":"application/json"}})}catch(a){return console.error("History API error:",a),new Response(JSON.stringify({error:"Internal server error"}),{status:500,headers:{"Content-Type":"application/json"}})}}async function B(a){let b=v.createReadStream(a),c=w.createInterface({input:b,crlfDelay:1/0}),d=[];for await(let a of c)try{let b=JSON.parse(a);("user"===b.type||"assistant"===b.type)&&d.push(b)}catch{}return function(a){let b=[],c=null,d=new Map;for(let b of a)if("user"===b.type&&b.message?.content&&Array.isArray(b.message.content))for(let a of b.message.content)"tool_result"===a.type&&a.tool_use_id&&d.set(a.tool_use_id,a.content||"");for(let e of a){if("user"===e.type&&e.message?.role==="user"&&e.message?.content){let a=e.message.content;if("string"==typeof a){c&&(b.push(c),c=null);let d={id:e.uuid||`user-${Date.now()}`,role:"user",content:a,timestamp:e.timestamp};b.push(d);continue}if(!Array.isArray(a))continue;let d=a.filter(a=>"text"===a.type),f=a.filter(a=>"image"===a.type&&a.source);if(d.length>0||f.length>0){c&&(b.push(c),c=null);let a={id:e.uuid||`user-${Date.now()}`,role:"user",content:d.map(a=>a.text||"").join("\n"),timestamp:e.timestamp};f.length>0&&(a.images=f.map(a=>({type:"base64",media_type:a.source?.media_type||"image/png",data:a.source?.data||""}))),b.push(a)}}if("assistant"===e.type&&e.message?.content){let a=e.message.content;if(!Array.isArray(a))continue;let b=a.filter(a=>"text"===a.type),f=a.filter(a=>"tool_use"===a.type);if(b.length>0&&(c?c.content+=b.map(a=>a.text||"").join("\n"):c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:b.map(a=>a.text||"").join("\n"),timestamp:e.timestamp,toolCalls:[]}),f.length>0)for(let a of(c||(c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:"",toolCalls:[]}),f))a.name&&a.id&&c.toolCalls.push({id:a.id,name:a.name,input:a.input||{},result:d.get(a.id),isLoading:!1})}}return c&&b.push(c),b}(d)}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/session/[sessionId]/history/route",pathname:"/api/session/[sessionId]/history",filename:"route",bundlePath:"app/api/session/[sessionId]/history/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/history/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/session/[sessionId]/history/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(z.dynamicRoutes[H]||z.routes[E]),J=async()=>((null==A?void 0:A.render404)?await A.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!z.routes[E],b=z.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.experimental.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||C.isDev||y||(K="/index"===(K=E)?"/":K);let L=!0===C.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q={params:v,prerenderManifest:z,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,A)},sharedContext:{buildId:g}},R=new l.NodeNextRequest(a),S=new l.NodeNextResponse(b),T=m.NextRequestAdapter.fromNodeNextRequest(R,(0,m.signalFromNodeResponse)(b));try{let e=async a=>C.handle(T,Q).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void 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");if(e){let b=`${N} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b)}else a.updateName(`${N} ${d}`)}),g=!!(0,h.getRequestMeta)(a,"minimalMode"),j=async h=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!g&&B&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await e(h);a.fetchMetrics=Q.renderOpts.fetchMetrics;let i=Q.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=Q.renderOpts.collectedTags;if(!I)return await (0,p.I)(R,S,d,Q.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);j&&(b[s.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==Q.renderOpts.collectedRevalidate&&!(Q.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&Q.renderOpts.collectedRevalidate,e=void 0===Q.renderOpts.collectedExpire||Q.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:Q.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),b}},l=await C.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:D,responseGenerator:k,waitUntil:c.waitUntil,isMinimalMode:g});if(!I)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});g||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,q.fromNodeOutgoingHttpHeaders)(l.value.headers);return g&&I||m.delete(s.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,r.getCacheControlHeader)(l.cacheControl)),await (0,p.I)(R,S,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};P?await j(P):await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},j))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),I)throw b;return await (0,p.I)(R,S,new Response(null,{status:500})),null}}},4984:a=>{"use strict";a.exports=require("readline")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},21820:a=>{"use strict";a.exports=require("os")},25813:(a,b,c)=>{"use strict";c.d(b,{$A:()=>G,A0:()=>P,An:()=>S,BF:()=>C,Ct:()=>K,Eu:()=>B,Ex:()=>s,JE:()=>R,JY:()=>F,Ki:()=>w,Kk:()=>L,Kv:()=>j,LN:()=>k,Mx:()=>x,O0:()=>v,Sr:()=>D,Tb:()=>q,Ux:()=>U,Wd:()=>Q,aO:()=>m,ec:()=>n,eg:()=>N,i4:()=>A,iK:()=>o,iy:()=>J,lq:()=>z,ls:()=>E,mT:()=>u,oK:()=>I,of:()=>y,po:()=>H,tP:()=>p,th:()=>t,v4:()=>l,vI:()=>O,yw:()=>M});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"note.md"),o=(0,e.join)(j,"scheduled-tasks.json"),p=(0,e.join)(j,"settings.json"),q=(0,e.join)(j,"review"),r=(0,e.join)(q,"_signal");function s(){try{(0,g.existsSync)(q)||(0,g.mkdirSync)(q,{recursive:!0}),(0,g.writeFileSync)(r,Date.now().toString())}catch{}}let t=(0,e.join)(i,".claude"),u=(0,e.join)(t,"projects");function v(a){return a.replace(/[/.]/g,"-")}function w(a){return(0,e.join)(k,v(a))}function x(a){return(0,e.join)(w(a),"session.json")}function y(a){return(0,e.join)(w(a),"recent-files.json")}function z(a){return(0,e.join)(w(a),"expanded-paths.json")}function A(a){return(0,e.join)(w(a),"comments.json")}function B(a){return(0,e.join)(w(a),"services.json")}function C(a){return(0,e.join)(w(a),"note.md")}function D(a,b){return(0,e.join)(w(a),`terminal-history-${b}.jsonl`)}function E(a,b){return(0,e.join)(w(a),`terminal-output-${b}.txt`)}function F(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(w(a),c)}function G(){return(0,e.join)(j,"terminal-aliases.json")}function H(){return(0,e.join)(j,"services.json")}function I(a){return(0,e.join)(w(a),"project-settings.json")}function J(a,b){return(0,e.join)(w(a),`terminal-bubble-order-${b}.json`)}function K(a){return(0,e.join)(q,`${a}.json`)}function L(a,b){return(0,e.join)((0,e.join)(u,v(a)),`${b}.jsonl`)}function M(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",v(a)),`${b}.jsonl`)}function N(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function O(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function P(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function Q(a){let b=(0,e.join)(a,"..");await P(b)}async function R(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function S(a,b){await Q(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let T=new Map;function U(a,b){let c=(T.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return T.set(a,d),d.then(()=>{T.get(a)===d&&T.delete(a)}),c}},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")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741],()=>b(b.s=4777));module.exports=c})();
1
+ (()=>{var a={};a.id=5849,a.ids=[5849],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},4777:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>H,patchFetch:()=>G,routeModule:()=>C,serverHooks:()=>F,workAsyncStorage:()=>D,workUnitAsyncStorage:()=>E});var d={};c.r(d),c.d(d,{GET:()=>A,dynamic:()=>z,runtime:()=>y});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(29021),w=c(4984),x=c(25813);let y="nodejs",z="force-dynamic";async function A(a,{params:b}){try{let{sessionId:a}=await b;if(!a)return new Response(JSON.stringify({error:"Missing sessionId"}),{status:400,headers:{"Content-Type":"application/json"}});let c=process.cwd(),d=(0,x.Kk)(c,a);if(!v.existsSync(d))return new Response(JSON.stringify({error:"Session not found",messages:[]}),{status:404,headers:{"Content-Type":"application/json"}});let e=await B(d);return new Response(JSON.stringify({messages:e}),{status:200,headers:{"Content-Type":"application/json"}})}catch(a){return console.error("History API error:",a),new Response(JSON.stringify({error:"Internal server error"}),{status:500,headers:{"Content-Type":"application/json"}})}}async function B(a){let b=v.createReadStream(a),c=w.createInterface({input:b,crlfDelay:1/0}),d=[];for await(let a of c)try{let b=JSON.parse(a);("user"===b.type||"assistant"===b.type)&&d.push(b)}catch{}return function(a){let b=[],c=null,d=new Map;for(let b of a)if("user"===b.type&&b.message?.content&&Array.isArray(b.message.content))for(let a of b.message.content)"tool_result"===a.type&&a.tool_use_id&&d.set(a.tool_use_id,a.content||"");for(let e of a){if("user"===e.type&&e.message?.role==="user"&&e.message?.content){let a=e.message.content;if("string"==typeof a){c&&(b.push(c),c=null);let d={id:e.uuid||`user-${Date.now()}`,role:"user",content:a,timestamp:e.timestamp};b.push(d);continue}if(!Array.isArray(a))continue;let d=a.filter(a=>"text"===a.type),f=a.filter(a=>"image"===a.type&&a.source);if(d.length>0||f.length>0){c&&(b.push(c),c=null);let a={id:e.uuid||`user-${Date.now()}`,role:"user",content:d.map(a=>a.text||"").join("\n"),timestamp:e.timestamp};f.length>0&&(a.images=f.map(a=>({type:"base64",media_type:a.source?.media_type||"image/png",data:a.source?.data||""}))),b.push(a)}}if("assistant"===e.type&&e.message?.content){let a=e.message.content;if(!Array.isArray(a))continue;let b=a.filter(a=>"text"===a.type),f=a.filter(a=>"tool_use"===a.type);if(b.length>0&&(c?c.content+=b.map(a=>a.text||"").join("\n"):c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:b.map(a=>a.text||"").join("\n"),timestamp:e.timestamp,toolCalls:[]}),f.length>0)for(let a of(c||(c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:"",toolCalls:[]}),f))a.name&&a.id&&c.toolCalls.push({id:a.id,name:a.name,input:a.input||{},result:d.get(a.id),isLoading:!1})}}return c&&b.push(c),b}(d)}let C=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/session/[sessionId]/history/route",pathname:"/api/session/[sessionId]/history",filename:"route",bundlePath:"app/api/session/[sessionId]/history/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/history/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:D,workUnitAsyncStorage:E,serverHooks:F}=C;function G(){return(0,g.patchFetch)({workAsyncStorage:D,workUnitAsyncStorage:E})}async function H(a,b,c){C.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/session/[sessionId]/history/route";"/index"===d&&(d="/");let e=await C.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(z.dynamicRoutes[H]||z.routes[E]),J=async()=>((null==A?void 0:A.render404)?await A.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!z.routes[E],b=z.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.experimental.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||C.isDev||y||(K="/index"===(K=E)?"/":K);let L=!0===C.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q={params:v,prerenderManifest:z,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>C.onRequestError(a,b,d,e,A)},sharedContext:{buildId:g}},R=new l.NodeNextRequest(a),S=new l.NodeNextResponse(b),T=m.NextRequestAdapter.fromNodeNextRequest(R,(0,m.signalFromNodeResponse)(b));try{let e=async a=>C.handle(T,Q).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void 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");if(e){let b=`${N} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b)}else a.updateName(`${N} ${d}`)}),g=!!(0,h.getRequestMeta)(a,"minimalMode"),j=async h=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!g&&B&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await e(h);a.fetchMetrics=Q.renderOpts.fetchMetrics;let i=Q.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=Q.renderOpts.collectedTags;if(!I)return await (0,p.I)(R,S,d,Q.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);j&&(b[s.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==Q.renderOpts.collectedRevalidate&&!(Q.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&Q.renderOpts.collectedRevalidate,e=void 0===Q.renderOpts.collectedExpire||Q.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:Q.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await C.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),b}},l=await C.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:D,responseGenerator:k,waitUntil:c.waitUntil,isMinimalMode:g});if(!I)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});g||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,q.fromNodeOutgoingHttpHeaders)(l.value.headers);return g&&I||m.delete(s.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,r.getCacheControlHeader)(l.cacheControl)),await (0,p.I)(R,S,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};P?await j(P):await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},j))}catch(b){if(b instanceof t.NoFallbackError||await C.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),I)throw b;return await (0,p.I)(R,S,new Response(null,{status:500})),null}}},4984:a=>{"use strict";a.exports=require("readline")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},21820:a=>{"use strict";a.exports=require("os")},25813:(a,b,c)=>{"use strict";c.d(b,{$A:()=>I,A0:()=>S,An:()=>V,BF:()=>E,Ct:()=>M,Eu:()=>D,Ex:()=>s,JE:()=>U,JY:()=>H,Ki:()=>y,Kk:()=>N,Kv:()=>j,LN:()=>k,Mx:()=>z,O0:()=>x,Sr:()=>F,Tb:()=>q,Ux:()=>X,Wd:()=>T,aO:()=>m,at:()=>w,ec:()=>n,eg:()=>Q,h9:()=>v,i4:()=>C,iK:()=>o,iy:()=>L,lq:()=>B,ls:()=>G,mT:()=>u,oK:()=>K,oZ:()=>O,of:()=>A,po:()=>J,tP:()=>p,th:()=>t,v4:()=>l,vI:()=>R,yw:()=>P});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"note.md"),o=(0,e.join)(j,"scheduled-tasks.json"),p=(0,e.join)(j,"settings.json"),q=(0,e.join)(j,"review"),r=(0,e.join)(q,"_signal");function s(){try{(0,g.existsSync)(q)||(0,g.mkdirSync)(q,{recursive:!0}),(0,g.writeFileSync)(r,Date.now().toString())}catch{}}let t=(0,e.join)(i,".claude"),u=(0,e.join)(t,"projects"),v=(0,e.join)(i,".claude2"),w=(0,e.join)(v,"projects");function x(a){return a.replace(/[/.]/g,"-")}function y(a){return(0,e.join)(k,x(a))}function z(a){return(0,e.join)(y(a),"session.json")}function A(a){return(0,e.join)(y(a),"recent-files.json")}function B(a){return(0,e.join)(y(a),"expanded-paths.json")}function C(a){return(0,e.join)(y(a),"comments.json")}function D(a){return(0,e.join)(y(a),"services.json")}function E(a){return(0,e.join)(y(a),"note.md")}function F(a,b){return(0,e.join)(y(a),`terminal-history-${b}.jsonl`)}function G(a,b){return(0,e.join)(y(a),`terminal-output-${b}.txt`)}function H(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(y(a),c)}function I(){return(0,e.join)(j,"terminal-aliases.json")}function J(){return(0,e.join)(j,"services.json")}function K(a){return(0,e.join)(y(a),"project-settings.json")}function L(a,b){return(0,e.join)(y(a),`terminal-bubble-order-${b}.json`)}function M(a){return(0,e.join)(q,`${a}.json`)}function N(a,b){return(0,e.join)((0,e.join)(u,x(a)),`${b}.jsonl`)}function O(a,b){return(0,e.join)((0,e.join)(w,x(a)),`${b}.jsonl`)}function P(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",x(a)),`${b}.jsonl`)}function Q(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function R(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function S(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function T(a){let b=(0,e.join)(a,"..");await S(b)}async function U(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function V(a,b){await T(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let W=new Map;function X(a,b){let c=(W.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return W.set(a,d),d.then(()=>{W.get(a)===d&&W.delete(a)}),c}},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")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741],()=>b(b.s=4777));module.exports=c})();
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/session/[sessionId]/history/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/1573b510894a4234.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/history/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/session/[sessionId]/history/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/bbd65867698c479b.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/session/[sessionId]/history/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- (()=>{var a={};a.id=3456,a.ids=[3456],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},4984:a=>{"use strict";a.exports=require("readline")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},21820:a=>{"use strict";a.exports=require("os")},25813:(a,b,c)=>{"use strict";c.d(b,{$A:()=>G,A0:()=>P,An:()=>S,BF:()=>C,Ct:()=>K,Eu:()=>B,Ex:()=>s,JE:()=>R,JY:()=>F,Ki:()=>w,Kk:()=>L,Kv:()=>j,LN:()=>k,Mx:()=>x,O0:()=>v,Sr:()=>D,Tb:()=>q,Ux:()=>U,Wd:()=>Q,aO:()=>m,ec:()=>n,eg:()=>N,i4:()=>A,iK:()=>o,iy:()=>J,lq:()=>z,ls:()=>E,mT:()=>u,oK:()=>I,of:()=>y,po:()=>H,tP:()=>p,th:()=>t,v4:()=>l,vI:()=>O,yw:()=>M});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"note.md"),o=(0,e.join)(j,"scheduled-tasks.json"),p=(0,e.join)(j,"settings.json"),q=(0,e.join)(j,"review"),r=(0,e.join)(q,"_signal");function s(){try{(0,g.existsSync)(q)||(0,g.mkdirSync)(q,{recursive:!0}),(0,g.writeFileSync)(r,Date.now().toString())}catch{}}let t=(0,e.join)(i,".claude"),u=(0,e.join)(t,"projects");function v(a){return a.replace(/[/.]/g,"-")}function w(a){return(0,e.join)(k,v(a))}function x(a){return(0,e.join)(w(a),"session.json")}function y(a){return(0,e.join)(w(a),"recent-files.json")}function z(a){return(0,e.join)(w(a),"expanded-paths.json")}function A(a){return(0,e.join)(w(a),"comments.json")}function B(a){return(0,e.join)(w(a),"services.json")}function C(a){return(0,e.join)(w(a),"note.md")}function D(a,b){return(0,e.join)(w(a),`terminal-history-${b}.jsonl`)}function E(a,b){return(0,e.join)(w(a),`terminal-output-${b}.txt`)}function F(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(w(a),c)}function G(){return(0,e.join)(j,"terminal-aliases.json")}function H(){return(0,e.join)(j,"services.json")}function I(a){return(0,e.join)(w(a),"project-settings.json")}function J(a,b){return(0,e.join)(w(a),`terminal-bubble-order-${b}.json`)}function K(a){return(0,e.join)(q,`${a}.json`)}function L(a,b){return(0,e.join)((0,e.join)(u,v(a)),`${b}.jsonl`)}function M(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",v(a)),`${b}.jsonl`)}function N(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function O(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function P(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function Q(a){let b=(0,e.join)(a,"..");await P(b)}async function R(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function S(a,b){await Q(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let T=new Map;function U(a,b){let c=(T.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return T.set(a,d),d.then(()=>{T.get(a)===d&&T.delete(a)}),c}},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")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86266:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>K,patchFetch:()=>J,routeModule:()=>F,serverHooks:()=>I,workAsyncStorage:()=>G,workUnitAsyncStorage:()=>H});var d={};c.r(d),c.d(d,{POST:()=>A,dynamic:()=>z,runtime:()=>y});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(29021),w=c(4984),x=c(25813);let y="nodejs",z="force-dynamic";async function A(a){try{var b;let c,d=await a.json(),e=d.cwd,f=d.sessionId,g=d.limit,h=d.beforeTurnIndex,i=d.ifFingerprint;if(!e||!f)return new Response(JSON.stringify({error:"Missing cwd or sessionId"}),{status:400,headers:{"Content-Type":"application/json"}});let j=(0,x.Kk)(e,f),k="claude";if(!v.existsSync(j)){let a=(0,x.eg)(f);if(a)j=a,k="codex";else{let a=(0,x.vI)(f);if(a)j=a,k="kimi";else{let a=(0,x.yw)(e,f);if(!v.existsSync(a))return new Response(JSON.stringify({error:"Session not found",messages:[]}),{status:404,headers:{"Content-Type":"application/json"}});j=a,k="ollama"}}}let l=(b=j,c=v.statSync(b),`${c.mtimeMs}-${c.size}`);if(i&&i===l)return new Response(JSON.stringify({notModified:!0,fingerprint:l}),{status:200,headers:{"Content-Type":"application/json"}});let m="codex"===k?await C(j):"kimi"===k?await D(j):"ollama"===k?await (async()=>{let a=await B(j,g,h);return 0===a.messages.length?await E(j):a})():await B(j,g,h),{messages:n,title:o,usage:p}=m,q="totalTurns"in m?m.totalTurns:0,r="hasMore"in m&&m.hasMore;return new Response(JSON.stringify({messages:n,sessionId:f,title:o,usage:p,totalTurns:q,hasMore:r,fingerprint:l}),{status:200,headers:{"Content-Type":"application/json"}})}catch(a){return console.error("Session by path API error:",a),new Response(JSON.stringify({error:"Internal server error"}),{status:500,headers:{"Content-Type":"application/json"}})}}async function B(a,b,c){let d,e=v.createReadStream(a),f=w.createInterface({input:e,crlfDelay:1/0}),g=[],h="",i=[];for await(let a of f)try{let b=JSON.parse(a);if("user"===b.type||"assistant"===b.type){if("user"===b.type&&g.length>0){let a=g[g.length-1];if("user"===a.type&&a.timestamp&&b.timestamp&&1e3>Math.abs(new Date(b.timestamp).getTime()-new Date(a.timestamp).getTime())&&JSON.stringify(a.message?.content)===JSON.stringify(b.message?.content))continue}if(g.push(b),"assistant"===b.type&&b.message?.usage&&(d=b.message.usage),"user"===b.type&&!b.isMeta&&b.message?.content){let a=b.message.content;if("string"==typeof a)i.push(a);else if(Array.isArray(a))for(let b of a.filter(a=>"text"===a.type))b.text&&i.push(b.text)}}"summary"===b.type&&b.summary&&(h=b.summary)}catch{}let j=function(a){let b=[],c=null,d=new Map;for(let b of a)if("user"===b.type&&b.message?.content&&Array.isArray(b.message.content))for(let a of b.message.content)"tool_result"===a.type&&a.tool_use_id&&d.set(a.tool_use_id,a.content||"");for(let e of a){if("user"===e.type&&e.message?.role==="user"&&e.message?.content){let a=e.message.content;if("string"==typeof a){c&&(b.push(c),c=null);let d={id:e.uuid||`user-${Date.now()}`,role:"user",content:a,timestamp:e.timestamp};b.push(d);continue}if(!Array.isArray(a))continue;let d=a.filter(a=>"text"===a.type),f=a.filter(a=>"image"===a.type&&a.source);if(d.length>0||f.length>0){c&&(b.push(c),c=null);let a={id:e.uuid||`user-${Date.now()}`,role:"user",content:d.map(a=>a.text||"").join("\n"),timestamp:e.timestamp};f.length>0&&(a.images=f.map(a=>({type:"base64",media_type:a.source?.media_type||"image/png",data:a.source?.data||""}))),b.push(a)}}if("assistant"===e.type&&e.message?.content){let a=e.message.content;if(!Array.isArray(a))continue;let b=a.filter(a=>"text"===a.type),f=a.filter(a=>"tool_use"===a.type);if(b.length>0&&(c?c.content+=b.map(a=>a.text||"").join("\n"):c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:b.map(a=>a.text||"").join("\n"),timestamp:e.timestamp,toolCalls:[]}),f.length>0)for(let a of(c||(c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:"",timestamp:e.timestamp,toolCalls:[]}),f))a.name&&a.id&&c.toolCalls.push({id:a.id,name:a.name,input:a.input||{},result:d.get(a.id),isLoading:!1})}}return c&&b.push(c),b}(g),k=function(a,b){if(a)return a;let c="";for(let a of b){let b=function(a){let b=a.match(/<command-args>([^<]*)<\/command-args>/);if(b&&b[1].trim())return b[1].trim();let c=a.match(/<command-name>([^<]*)<\/command-name>/);if(c&&c[1].trim())return c[1].trim();let d=a.replace(/<command-message>[^<]*<\/command-message>/g,"");return(d=(d=(d=(d=d.replace(/<command-name>[^<]*<\/command-name>/g,"")).replace(/<command-args>[^<]*<\/command-args>/g,"")).replace(/<local-command-stdout>[\s\S]*?<\/local-command-stdout>/g,"")).replace(/<local-command-caveat>[\s\S]*?<\/local-command-caveat>/g,"")).trim()}(a);if(b){if(b.startsWith("/")&&!c){c=b;continue}if(c)return`${c} ${b}`;return b}}return c||"Untitled Session"}(h,i),l=[],m=[];for(let a of j)"user"===a.role?(m.length>0&&l.push(m),m=[a]):m.push(a);m.length>0&&l.push(m);let n=l.length;if(void 0===b)return{messages:j,title:k,usage:d,totalTurns:n,hasMore:!1};let o=void 0!==c?c:n,p=Math.max(0,o-b),q=p>0;return{messages:l.slice(p,o).flat(),title:k,usage:d,totalTurns:n,hasMore:q}}async function C(a){let b,c=v.createReadStream(a),d=w.createInterface({input:c,crlfDelay:1/0}),e=[],f=null,g="Untitled Session",h=0,i=()=>{f&&(e.push(f),f=null)},j=a=>(f||(f={id:`codex-assistant-${h++}`,role:"assistant",content:"",toolCalls:[],timestamp:a}),f);for await(let a of d){let c;if(!a.trim())continue;try{c=JSON.parse(a)}catch{continue}let{type:d,payload:f,timestamp:k}=c;if(f){if("response_item"===d){if("message"===f.type&&"user"===f.role){let a=f.content?.filter(a=>"input_text"===a.type&&a.text).map(a=>a.text).join("")||"";if(!a||a.startsWith("<")||a.startsWith("#"))continue;i(),e.push({id:`codex-user-${h++}`,role:"user",content:a,timestamp:k}),"Untitled Session"===g&&(g=a.slice(0,80))}if("message"===f.type&&"assistant"===f.role){let a=f.content?.filter(a=>"output_text"===a.type&&a.text).map(a=>a.text).join("")||"";if(a){let b=j(k);b.content=(b.content||"")+a}}if(f.type,"function_call"===f.type&&f.name){let a=j(k),b={};try{b=JSON.parse(f.arguments||"{}")}catch{}a.toolCalls=a.toolCalls||[],a.toolCalls.push({id:f.call_id||`tool-${h++}`,name:"shell_command"===f.name?"Bash":f.name,input:b,isLoading:!1})}if("function_call_output"===f.type&&f.call_id){let a=j(k),b=a.toolCalls?.find(a=>a.id===f.call_id);b&&(b.result=f.output||"",b.isLoading=!1)}}if("response_completed"===d){let a=f.usage;a&&(b=a),i()}}}return i(),{messages:e,title:g,usage:b}}async function D(a){let b=v.createReadStream(a),c=w.createInterface({input:b,crlfDelay:1/0}),d=[],e="Untitled Session",f=0;for await(let a of c){let b;if(a.trim()){try{b=JSON.parse(a)}catch{continue}if(!(!b.role||b.role.startsWith("_"))){if("user"===b.role){let a="string"==typeof b.content?b.content:Array.isArray(b.content)?b.content.filter(a=>("input_text"===a.type||"text"===a.type)&&a.text).map(a=>a.text).join(""):"";if(!a||a.startsWith("<system")||a.startsWith("<environment")||a.startsWith("# AGENTS.md")||a.startsWith("<permissions"))continue;d.push({id:`kimi-user-${f++}`,role:"user",content:a}),"Untitled Session"===e&&(e=a.slice(0,80))}if("assistant"===b.role){let a="";if("string"==typeof b.content)a=b.content;else if(Array.isArray(b.content))for(let c of b.content)"text"===c.type&&c.text&&(a+=c.text);let c=[],e=b.tool_calls;if(e&&Array.isArray(e)){for(let a of e)if(a.function?.name){let b={};try{b=JSON.parse(a.function.arguments||"{}")}catch{}c.push({id:a.id||`tool-${f++}`,name:"Shell"===a.function.name?"Bash":a.function.name,input:b,isLoading:!1})}}let g=d.length>0?d[d.length-1]:null;g&&"assistant"===g.role&&g.toolCalls&&g.toolCalls.length>0?(c.length>0&&g.toolCalls.push(...c),a&&(g.content=(g.content||"")+a)):(a||c.length>0)&&d.push({id:`kimi-assistant-${f++}`,role:"assistant",content:a,...c.length>0?{toolCalls:c}:{}})}if("tool"===b.role){let a=b.tool_call_id;if(a&&d.length>0){let c=d[d.length-1];if("assistant"===c.role&&c.toolCalls){let d=c.toolCalls.find(b=>b.id===a);if(d){let a="";"string"==typeof b.content?a=b.content:Array.isArray(b.content)&&(a=b.content.filter(a=>"text"===a.type&&a.text).map(a=>a.text).join("\n")),d.result=a}}}}}}}return{messages:d,title:e}}async function E(a){let b=v.createReadStream(a),c=w.createInterface({input:b,crlfDelay:1/0}),d="Untitled Session",e=0,f=[],g=new Map;for await(let a of c)if(a.trim()){f.push(a);try{let b=JSON.parse(a);if("tool"===b.role&&Array.isArray(b.content))for(let a of b.content)"tool-result"===a.type&&a.toolCallId&&g.set(a.toolCallId,String(a.result??""))}catch{}}let h=[],i=null,j=()=>{i&&(h.push(i),i=null)};for(let a of f)try{let b=JSON.parse(a);if("user"===b.role){j();let a="";"string"==typeof b.content?a=b.content:Array.isArray(b.content)&&(a=b.content.filter(a=>"text"===a.type).map(a=>a.text||"").join("\n")),"Untitled Session"===d&&a&&(d=a.slice(0,80)),h.push({id:`ollama-user-${e++}`,role:"user",content:a})}else if("assistant"===b.role){let a="",c=[];if("string"==typeof b.content)a=b.content;else if(Array.isArray(b.content)){for(let d of b.content)if("text"===d.type&&"string"==typeof d.text)a+=(a?"\n":"")+d.text;else if("tool-call"===d.type){let a=String(d.toolCallId||""),b=String(d.toolName||""),e={};try{"string"==typeof d.args?e=JSON.parse(d.args):"object"==typeof d.args&&null!==d.args&&(e=d.args)}catch{}c.push({id:a,name:b,input:e,result:g.get(a),isLoading:!1})}}i?i.content+=(i.content&&a?"\n":"")+a:i={id:`ollama-assistant-${e++}`,role:"assistant",content:a,toolCalls:[]},c.length>0&&(i.toolCalls=i.toolCalls||[],i.toolCalls.push(...c))}}catch{}return j(),{messages:h,title:d}}let F=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/session-by-path/route",pathname:"/api/session-by-path",filename:"route",bundlePath:"app/api/session-by-path/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/session-by-path/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:G,workUnitAsyncStorage:H,serverHooks:I}=F;function J(){return(0,g.patchFetch)({workAsyncStorage:G,workUnitAsyncStorage:H})}async function K(a,b,c){F.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/session-by-path/route";"/index"===d&&(d="/");let e=await F.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D,clientReferenceManifest:E,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(z.dynamicRoutes[H]||z.routes[D]),J=async()=>((null==A?void 0:A.render404)?await A.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.experimental.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||F.isDev||y||(K="/index"===(K=D)?"/":K);let L=!0===F.isDev||!I,M=I&&!L;G&&E&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:E,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q={params:v,prerenderManifest:z,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>F.onRequestError(a,b,d,e,A)},sharedContext:{buildId:g}},R=new l.NodeNextRequest(a),S=new l.NodeNextResponse(b),T=m.NextRequestAdapter.fromNodeNextRequest(R,(0,m.signalFromNodeResponse)(b));try{let e=async a=>F.handle(T,Q).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void 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");if(e){let b=`${N} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b)}else a.updateName(`${N} ${d}`)}),g=!!(0,h.getRequestMeta)(a,"minimalMode"),j=async h=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!g&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await e(h);a.fetchMetrics=Q.renderOpts.fetchMetrics;let i=Q.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=Q.renderOpts.collectedTags;if(!I)return await (0,p.I)(R,S,d,Q.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);j&&(b[s.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==Q.renderOpts.collectedRevalidate&&!(Q.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&Q.renderOpts.collectedRevalidate,e=void 0===Q.renderOpts.collectedExpire||Q.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:Q.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await F.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),b}},l=await F.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil,isMinimalMode:g});if(!I)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});g||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,q.fromNodeOutgoingHttpHeaders)(l.value.headers);return g&&I||m.delete(s.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,r.getCacheControlHeader)(l.cacheControl)),await (0,p.I)(R,S,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};P?await j(P):await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},j))}catch(b){if(b instanceof t.NoFallbackError||await F.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),I)throw b;return await (0,p.I)(R,S,new Response(null,{status:500})),null}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741],()=>b(b.s=86266));module.exports=c})();
1
+ (()=>{var a={};a.id=3456,a.ids=[3456],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},4984:a=>{"use strict";a.exports=require("readline")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},21820:a=>{"use strict";a.exports=require("os")},25813:(a,b,c)=>{"use strict";c.d(b,{$A:()=>I,A0:()=>S,An:()=>V,BF:()=>E,Ct:()=>M,Eu:()=>D,Ex:()=>s,JE:()=>U,JY:()=>H,Ki:()=>y,Kk:()=>N,Kv:()=>j,LN:()=>k,Mx:()=>z,O0:()=>x,Sr:()=>F,Tb:()=>q,Ux:()=>X,Wd:()=>T,aO:()=>m,at:()=>w,ec:()=>n,eg:()=>Q,h9:()=>v,i4:()=>C,iK:()=>o,iy:()=>L,lq:()=>B,ls:()=>G,mT:()=>u,oK:()=>K,oZ:()=>O,of:()=>A,po:()=>J,tP:()=>p,th:()=>t,v4:()=>l,vI:()=>R,yw:()=>P});var d=c(21820),e=c(33873),f=c(79748),g=c(29021),h=c(79646);let i=(0,d.homedir)(),j=(0,e.join)(i,".cockpit"),k=(0,e.join)(j,"projects"),l=(0,e.join)(j,"state.json"),m=(0,e.join)(j,"pinned-sessions.json"),n=(0,e.join)(j,"note.md"),o=(0,e.join)(j,"scheduled-tasks.json"),p=(0,e.join)(j,"settings.json"),q=(0,e.join)(j,"review"),r=(0,e.join)(q,"_signal");function s(){try{(0,g.existsSync)(q)||(0,g.mkdirSync)(q,{recursive:!0}),(0,g.writeFileSync)(r,Date.now().toString())}catch{}}let t=(0,e.join)(i,".claude"),u=(0,e.join)(t,"projects"),v=(0,e.join)(i,".claude2"),w=(0,e.join)(v,"projects");function x(a){return a.replace(/[/.]/g,"-")}function y(a){return(0,e.join)(k,x(a))}function z(a){return(0,e.join)(y(a),"session.json")}function A(a){return(0,e.join)(y(a),"recent-files.json")}function B(a){return(0,e.join)(y(a),"expanded-paths.json")}function C(a){return(0,e.join)(y(a),"comments.json")}function D(a){return(0,e.join)(y(a),"services.json")}function E(a){return(0,e.join)(y(a),"note.md")}function F(a,b){return(0,e.join)(y(a),`terminal-history-${b}.jsonl`)}function G(a,b){return(0,e.join)(y(a),`terminal-output-${b}.txt`)}function H(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(y(a),c)}function I(){return(0,e.join)(j,"terminal-aliases.json")}function J(){return(0,e.join)(j,"services.json")}function K(a){return(0,e.join)(y(a),"project-settings.json")}function L(a,b){return(0,e.join)(y(a),`terminal-bubble-order-${b}.json`)}function M(a){return(0,e.join)(q,`${a}.json`)}function N(a,b){return(0,e.join)((0,e.join)(u,x(a)),`${b}.jsonl`)}function O(a,b){return(0,e.join)((0,e.join)(w,x(a)),`${b}.jsonl`)}function P(a,b){return(0,e.join)((0,e.join)(j,"ollama-sessions",x(a)),`${b}.jsonl`)}function Q(a){let b=(0,e.join)(i,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let c=(0,h.execSync)(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(c)return c.split("\n")[0]}catch{}return null}function R(a){let b=(0,e.join)(i,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{for(let c of(0,g.readdirSync)(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function S(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function T(a){let b=(0,e.join)(a,"..");await S(b)}async function U(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function V(a,b){await T(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let W=new Map;function X(a,b){let c=(W.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return W.set(a,d),d.then(()=>{W.get(a)===d&&W.delete(a)}),c}},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")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86266:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>K,patchFetch:()=>J,routeModule:()=>F,serverHooks:()=>I,workAsyncStorage:()=>G,workUnitAsyncStorage:()=>H});var d={};c.r(d),c.d(d,{POST:()=>A,dynamic:()=>z,runtime:()=>y});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(29021),w=c(4984),x=c(25813);let y="nodejs",z="force-dynamic";async function A(a){try{var b;let c,d=await a.json(),e=d.cwd,f=d.sessionId,g=d.limit,h=d.beforeTurnIndex,i=d.ifFingerprint;if(!e||!f)return new Response(JSON.stringify({error:"Missing cwd or sessionId"}),{status:400,headers:{"Content-Type":"application/json"}});let j=(0,x.Kk)(e,f),k="claude";if(!v.existsSync(j)){let a=(0,x.oZ)(e,f);if(v.existsSync(a))j=a,k="claude2";else{let a=(0,x.eg)(f);if(a)j=a,k="codex";else{let a=(0,x.vI)(f);if(a)j=a,k="kimi";else{let a=(0,x.yw)(e,f);if(!v.existsSync(a))return new Response(JSON.stringify({error:"Session not found",messages:[]}),{status:404,headers:{"Content-Type":"application/json"}});j=a,k="ollama"}}}}let l=(b=j,c=v.statSync(b),`${c.mtimeMs}-${c.size}`);if(i&&i===l)return new Response(JSON.stringify({notModified:!0,fingerprint:l}),{status:200,headers:{"Content-Type":"application/json"}});let m="codex"===k?await C(j):"kimi"===k?await D(j):"ollama"===k?await (async()=>{let a=await B(j,g,h);return 0===a.messages.length?await E(j):a})():await B(j,g,h),{messages:n,title:o,usage:p}=m,q="totalTurns"in m?m.totalTurns:0,r="hasMore"in m&&m.hasMore;return new Response(JSON.stringify({messages:n,sessionId:f,title:o,usage:p,totalTurns:q,hasMore:r,fingerprint:l}),{status:200,headers:{"Content-Type":"application/json"}})}catch(a){return console.error("Session by path API error:",a),new Response(JSON.stringify({error:"Internal server error"}),{status:500,headers:{"Content-Type":"application/json"}})}}async function B(a,b,c){let d,e=v.createReadStream(a),f=w.createInterface({input:e,crlfDelay:1/0}),g=[],h="",i=[];for await(let a of f)try{let b=JSON.parse(a);if("user"===b.type||"assistant"===b.type){if("user"===b.type&&g.length>0){let a=g[g.length-1];if("user"===a.type&&a.timestamp&&b.timestamp&&1e3>Math.abs(new Date(b.timestamp).getTime()-new Date(a.timestamp).getTime())&&JSON.stringify(a.message?.content)===JSON.stringify(b.message?.content))continue}if(g.push(b),"assistant"===b.type&&b.message?.usage&&(d=b.message.usage),"user"===b.type&&!b.isMeta&&b.message?.content){let a=b.message.content;if("string"==typeof a)i.push(a);else if(Array.isArray(a))for(let b of a.filter(a=>"text"===a.type))b.text&&i.push(b.text)}}"summary"===b.type&&b.summary&&(h=b.summary)}catch{}let j=function(a){let b=[],c=null,d=new Map;for(let b of a)if("user"===b.type&&b.message?.content&&Array.isArray(b.message.content))for(let a of b.message.content)"tool_result"===a.type&&a.tool_use_id&&d.set(a.tool_use_id,a.content||"");for(let e of a){if("user"===e.type&&e.message?.role==="user"&&e.message?.content){let a=e.message.content;if("string"==typeof a){c&&(b.push(c),c=null);let d={id:e.uuid||`user-${Date.now()}`,role:"user",content:a,timestamp:e.timestamp};b.push(d);continue}if(!Array.isArray(a))continue;let d=a.filter(a=>"text"===a.type),f=a.filter(a=>"image"===a.type&&a.source);if(d.length>0||f.length>0){c&&(b.push(c),c=null);let a={id:e.uuid||`user-${Date.now()}`,role:"user",content:d.map(a=>a.text||"").join("\n"),timestamp:e.timestamp};f.length>0&&(a.images=f.map(a=>({type:"base64",media_type:a.source?.media_type||"image/png",data:a.source?.data||""}))),b.push(a)}}if("assistant"===e.type&&e.message?.content){let a=e.message.content;if(!Array.isArray(a))continue;let b=a.filter(a=>"text"===a.type),f=a.filter(a=>"tool_use"===a.type);if(b.length>0&&(c?c.content+=b.map(a=>a.text||"").join("\n"):c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:b.map(a=>a.text||"").join("\n"),timestamp:e.timestamp,toolCalls:[]}),f.length>0)for(let a of(c||(c={id:e.uuid||`assistant-${Date.now()}`,role:"assistant",content:"",timestamp:e.timestamp,toolCalls:[]}),f))a.name&&a.id&&c.toolCalls.push({id:a.id,name:a.name,input:a.input||{},result:d.get(a.id),isLoading:!1})}}return c&&b.push(c),b}(g),k=function(a,b){if(a)return a;let c="";for(let a of b){let b=function(a){let b=a.match(/<command-args>([^<]*)<\/command-args>/);if(b&&b[1].trim())return b[1].trim();let c=a.match(/<command-name>([^<]*)<\/command-name>/);if(c&&c[1].trim())return c[1].trim();let d=a.replace(/<command-message>[^<]*<\/command-message>/g,"");return(d=(d=(d=(d=d.replace(/<command-name>[^<]*<\/command-name>/g,"")).replace(/<command-args>[^<]*<\/command-args>/g,"")).replace(/<local-command-stdout>[\s\S]*?<\/local-command-stdout>/g,"")).replace(/<local-command-caveat>[\s\S]*?<\/local-command-caveat>/g,"")).trim()}(a);if(b){if(b.startsWith("/")&&!c){c=b;continue}if(c)return`${c} ${b}`;return b}}return c||"Untitled Session"}(h,i),l=[],m=[];for(let a of j)"user"===a.role?(m.length>0&&l.push(m),m=[a]):m.push(a);m.length>0&&l.push(m);let n=l.length;if(void 0===b)return{messages:j,title:k,usage:d,totalTurns:n,hasMore:!1};let o=void 0!==c?c:n,p=Math.max(0,o-b),q=p>0;return{messages:l.slice(p,o).flat(),title:k,usage:d,totalTurns:n,hasMore:q}}async function C(a){let b,c=v.createReadStream(a),d=w.createInterface({input:c,crlfDelay:1/0}),e=[],f=null,g="Untitled Session",h=0,i=()=>{f&&(e.push(f),f=null)},j=a=>(f||(f={id:`codex-assistant-${h++}`,role:"assistant",content:"",toolCalls:[],timestamp:a}),f);for await(let a of d){let c;if(!a.trim())continue;try{c=JSON.parse(a)}catch{continue}let{type:d,payload:f,timestamp:k}=c;if(f){if("response_item"===d){if("message"===f.type&&"user"===f.role){let a=f.content?.filter(a=>"input_text"===a.type&&a.text).map(a=>a.text).join("")||"";if(!a||a.startsWith("<")||a.startsWith("#"))continue;i(),e.push({id:`codex-user-${h++}`,role:"user",content:a,timestamp:k}),"Untitled Session"===g&&(g=a.slice(0,80))}if("message"===f.type&&"assistant"===f.role){let a=f.content?.filter(a=>"output_text"===a.type&&a.text).map(a=>a.text).join("")||"";if(a){let b=j(k);b.content=(b.content||"")+a}}if(f.type,"function_call"===f.type&&f.name){let a=j(k),b={};try{b=JSON.parse(f.arguments||"{}")}catch{}a.toolCalls=a.toolCalls||[],a.toolCalls.push({id:f.call_id||`tool-${h++}`,name:"shell_command"===f.name?"Bash":f.name,input:b,isLoading:!1})}if("function_call_output"===f.type&&f.call_id){let a=j(k),b=a.toolCalls?.find(a=>a.id===f.call_id);b&&(b.result=f.output||"",b.isLoading=!1)}}if("response_completed"===d){let a=f.usage;a&&(b=a),i()}}}return i(),{messages:e,title:g,usage:b}}async function D(a){let b=v.createReadStream(a),c=w.createInterface({input:b,crlfDelay:1/0}),d=[],e="Untitled Session",f=0;for await(let a of c){let b;if(a.trim()){try{b=JSON.parse(a)}catch{continue}if(!(!b.role||b.role.startsWith("_"))){if("user"===b.role){let a="string"==typeof b.content?b.content:Array.isArray(b.content)?b.content.filter(a=>("input_text"===a.type||"text"===a.type)&&a.text).map(a=>a.text).join(""):"";if(!a||a.startsWith("<system")||a.startsWith("<environment")||a.startsWith("# AGENTS.md")||a.startsWith("<permissions"))continue;d.push({id:`kimi-user-${f++}`,role:"user",content:a}),"Untitled Session"===e&&(e=a.slice(0,80))}if("assistant"===b.role){let a="";if("string"==typeof b.content)a=b.content;else if(Array.isArray(b.content))for(let c of b.content)"text"===c.type&&c.text&&(a+=c.text);let c=[],e=b.tool_calls;if(e&&Array.isArray(e)){for(let a of e)if(a.function?.name){let b={};try{b=JSON.parse(a.function.arguments||"{}")}catch{}c.push({id:a.id||`tool-${f++}`,name:"Shell"===a.function.name?"Bash":a.function.name,input:b,isLoading:!1})}}let g=d.length>0?d[d.length-1]:null;g&&"assistant"===g.role&&g.toolCalls&&g.toolCalls.length>0?(c.length>0&&g.toolCalls.push(...c),a&&(g.content=(g.content||"")+a)):(a||c.length>0)&&d.push({id:`kimi-assistant-${f++}`,role:"assistant",content:a,...c.length>0?{toolCalls:c}:{}})}if("tool"===b.role){let a=b.tool_call_id;if(a&&d.length>0){let c=d[d.length-1];if("assistant"===c.role&&c.toolCalls){let d=c.toolCalls.find(b=>b.id===a);if(d){let a="";"string"==typeof b.content?a=b.content:Array.isArray(b.content)&&(a=b.content.filter(a=>"text"===a.type&&a.text).map(a=>a.text).join("\n")),d.result=a}}}}}}}return{messages:d,title:e}}async function E(a){let b=v.createReadStream(a),c=w.createInterface({input:b,crlfDelay:1/0}),d="Untitled Session",e=0,f=[],g=new Map;for await(let a of c)if(a.trim()){f.push(a);try{let b=JSON.parse(a);if("tool"===b.role&&Array.isArray(b.content))for(let a of b.content)"tool-result"===a.type&&a.toolCallId&&g.set(a.toolCallId,String(a.result??""))}catch{}}let h=[],i=null,j=()=>{i&&(h.push(i),i=null)};for(let a of f)try{let b=JSON.parse(a);if("user"===b.role){j();let a="";"string"==typeof b.content?a=b.content:Array.isArray(b.content)&&(a=b.content.filter(a=>"text"===a.type).map(a=>a.text||"").join("\n")),"Untitled Session"===d&&a&&(d=a.slice(0,80)),h.push({id:`ollama-user-${e++}`,role:"user",content:a})}else if("assistant"===b.role){let a="",c=[];if("string"==typeof b.content)a=b.content;else if(Array.isArray(b.content)){for(let d of b.content)if("text"===d.type&&"string"==typeof d.text)a+=(a?"\n":"")+d.text;else if("tool-call"===d.type){let a=String(d.toolCallId||""),b=String(d.toolName||""),e={};try{"string"==typeof d.args?e=JSON.parse(d.args):"object"==typeof d.args&&null!==d.args&&(e=d.args)}catch{}c.push({id:a,name:b,input:e,result:g.get(a),isLoading:!1})}}i?i.content+=(i.content&&a?"\n":"")+a:i={id:`ollama-assistant-${e++}`,role:"assistant",content:a,toolCalls:[]},c.length>0&&(i.toolCalls=i.toolCalls||[],i.toolCalls.push(...c))}}catch{}return j(),{messages:h,title:d}}let F=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/session-by-path/route",pathname:"/api/session-by-path",filename:"route",bundlePath:"app/api/session-by-path/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/session-by-path/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:G,workUnitAsyncStorage:H,serverHooks:I}=F;function J(){return(0,g.patchFetch)({workAsyncStorage:G,workUnitAsyncStorage:H})}async function K(a,b,c){F.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/session-by-path/route";"/index"===d&&(d="/");let e=await F.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D,clientReferenceManifest:E,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(z.dynamicRoutes[H]||z.routes[D]),J=async()=>((null==A?void 0:A.render404)?await A.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.experimental.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||F.isDev||y||(K="/index"===(K=D)?"/":K);let L=!0===F.isDev||!I,M=I&&!L;G&&E&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:E,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q={params:v,prerenderManifest:z,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>F.onRequestError(a,b,d,e,A)},sharedContext:{buildId:g}},R=new l.NodeNextRequest(a),S=new l.NodeNextResponse(b),T=m.NextRequestAdapter.fromNodeNextRequest(R,(0,m.signalFromNodeResponse)(b));try{let e=async a=>F.handle(T,Q).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void 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");if(e){let b=`${N} ${e}`;a.setAttributes({"next.route":e,"http.route":e,"next.span_name":b}),a.updateName(b)}else a.updateName(`${N} ${d}`)}),g=!!(0,h.getRequestMeta)(a,"minimalMode"),j=async h=>{var i,j;let k=async({previousCacheEntry:f})=>{try{if(!g&&B&&C&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await e(h);a.fetchMetrics=Q.renderOpts.fetchMetrics;let i=Q.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=Q.renderOpts.collectedTags;if(!I)return await (0,p.I)(R,S,d,Q.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);j&&(b[s.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==Q.renderOpts.collectedRevalidate&&!(Q.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&Q.renderOpts.collectedRevalidate,e=void 0===Q.renderOpts.collectedExpire||Q.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:Q.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await F.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),b}},l=await F.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil,isMinimalMode:g});if(!I)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});g||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let m=(0,q.fromNodeOutgoingHttpHeaders)(l.value.headers);return g&&I||m.delete(s.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||m.get("Cache-Control")||m.set("Cache-Control",(0,r.getCacheControlHeader)(l.cacheControl)),await (0,p.I)(R,S,new Response(l.value.body,{headers:m,status:l.value.status||200})),null};P?await j(P):await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},j))}catch(b){if(b instanceof t.NoFallbackError||await F.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),I)throw b;return await (0,p.I)(R,S,new Response(null,{status:500})),null}}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741],()=>b(b.s=86266));module.exports=c})();
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/session-by-path/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-482fc2bbb049e7a4.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/1573b510894a4234.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/session-by-path/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/session-by-path/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"89010","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"67045","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"35421","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"60440","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"82265","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"33932","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"61335","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"84342","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"14024","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"76646","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"74661","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"70664","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"54338","name":"*","chunks":[],"async":true}},"97899":{"*":{"id":"81729","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-page.js":{"id":61304,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/client-segment.js":{"id":78616,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":64777,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/layout-router.js":{"id":57121,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":74581,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":90484,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":86869,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/app/global-error.tsx":{"id":26719,"name":"*","chunks":["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"variable\":\"--font-inter\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":36791,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Lora\",\"arguments\":[{\"variable\":\"--font-lora\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"lora\"}":{"id":7815,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"variable\":\"--font-jetbrains-mono\",\"subsets\":[\"latin\"],\"display\":\"swap\"}],\"variableName\":\"jetbrainsMono\"}":{"id":66924,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/app/globals.css":{"id":51743,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/shared/Providers.tsx":{"id":83599,"name":"*","chunks":["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/EmptyState.tsx":{"id":1874,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectItem.tsx":{"id":65438,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/ProjectSidebar.tsx":{"id":80475,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/workspace/Workspace.tsx":{"id":4189,"name":"*","chunks":["5004","static/chunks/70e0d97a-6903b8594c742784.js","277","static/chunks/54a60aa6-f60235f3d6b54466.js","9114","static/chunks/9114-abef8471519b7dee.js","3695","static/chunks/3695-f14fb3e48483755c.js","3530","static/chunks/3530-6d8abfd0e950d439.js","5493","static/chunks/5493-83d6a5ec42d6cbb3.js","8974","static/chunks/app/page-cc2b332242bc2c93.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true}},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/":[],"/home/runner/work/cockpit/cockpit/src/app/global-error":[],"/home/runner/work/cockpit/cockpit/src/app/layout":[{"inlined":false,"path":"static/css/bbd65867698c479b.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/session-by-path/route":[]},"rscModuleMapping":{"1874":{"*":{"id":"41824","name":"*","chunks":[],"async":false}},"4189":{"*":{"id":"51675","name":"*","chunks":[],"async":false}},"26719":{"*":{"id":"81227","name":"*","chunks":[],"async":false}},"51743":{"*":{"id":"61135","name":"*","chunks":[],"async":false}},"57121":{"*":{"id":"98099","name":"*","chunks":[],"async":false}},"61304":{"*":{"id":"15098","name":"*","chunks":[],"async":false}},"64777":{"*":{"id":"33859","name":"*","chunks":[],"async":false}},"65438":{"*":{"id":"49090","name":"*","chunks":[],"async":false}},"74581":{"*":{"id":"16237","name":"*","chunks":[],"async":false}},"78616":{"*":{"id":"47644","name":"*","chunks":[],"async":false}},"80475":{"*":{"id":"43647","name":"*","chunks":[],"async":false}},"83599":{"*":{"id":"87020","name":"*","chunks":[],"async":false}},"86869":{"*":{"id":"36675","name":"*","chunks":[],"async":false}},"90484":{"*":{"id":"98562","name":"*","chunks":[],"async":false}},"97484":{"*":{"id":"38476","name":"*","chunks":[],"async":false}},"97899":{"*":{"id":"79436","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}