@surething/cockpit 1.0.183 → 1.0.184
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.
- package/.next-prod/BUILD_ID +1 -1
- package/.next-prod/app-path-routes-manifest.json +27 -22
- package/.next-prod/build-manifest.json +2 -2
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/routes-manifest.json +30 -0
- package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_global-error.html +2 -2
- package/.next-prod/server/app/_global-error.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next-prod/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_not-found.html +2 -2
- package/.next-prod/server/app/_not-found.rsc +2 -2
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next-prod/server/app/api/bash/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +23 -0
- package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/chat/codex/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/chat/kimi/route.js +23 -0
- package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/chat/kimi/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/chat/ollama/route.js +11 -0
- package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/chat/ollama/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/commands/route.js +1 -1
- package/.next-prod/server/app/api/commands/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/comments/route.js +1 -1
- package/.next-prod/server/app/api/comments/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/columns/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/export/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/query/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/db/schemas/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/extension/version/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/file/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/blame/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/clipboard/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/copy/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/delete/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/index/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/init/route.js +1 -1
- package/.next-prod/server/app/api/files/init/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/paste/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/read/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/readdir/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/recent/route.js +1 -1
- package/.next-prod/server/app/api/files/recent/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/save/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/files/search/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/branches/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/commits/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/diff/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/discard/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/stage/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/status/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/unstage/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/git/worktree/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/global-state/route.js +1 -1
- package/.next-prod/server/app/api/global-state/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/jupyter/load/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/jupyter/save/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/definition/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/hover/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/references/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/status/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/columns/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/query/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/note/route.js +1 -1
- package/.next-prod/server/app/api/note/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js +1 -0
- package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/ollama/models/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/ollama/start/route.js +1 -0
- package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/ollama/start/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/open-cursor/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/pick-folder/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js +1 -1
- package/.next-prod/server/app/api/project-settings/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/project-state/route.js +1 -1
- package/.next-prod/server/app/api/project-state/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/projects/route.js +1 -1
- package/.next-prod/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/command/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/get/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/redis/set/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/identify/route.js +1 -1
- package/.next-prod/server/app/api/review/identify/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/order/route.js +1 -1
- package/.next-prod/server/app/api/review/order/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/route.js +1 -1
- package/.next-prod/server/app/api/review/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/share-info/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/review/users/route.js +1 -1
- package/.next-prod/server/app/api/review/users/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/services/config/route.js +1 -1
- package/.next-prod/server/app/api/services/config/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/services/scripts/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/sessions/route.js +1 -1
- package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/settings/route.js +1 -1
- package/.next-prod/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/version/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/project/page.js +4 -4
- package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +27 -22
- package/.next-prod/server/chunks/4098.js +1 -1
- package/.next-prod/server/functions-config-manifest.json +5 -0
- package/.next-prod/server/pages/404.html +2 -2
- package/.next-prod/server/pages/500.html +2 -2
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/Jd-PD9ePjHrv17OUyoAFo/_buildManifest.js +1 -0
- package/.next-prod/static/chunks/app/_global-error/page-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/load/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/save/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/app/project/page-94e2a1e77495f17f.js +25 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6f58f82d7dc6888f.js +1 -0
- package/.next-prod/static/css/786ec7ade22e6269.css +3 -0
- package/.next-prod/trace +12 -12
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/chat/codex/route.ts +350 -0
- package/.next-prod/types/app/api/chat/kimi/route.ts +350 -0
- package/.next-prod/types/app/api/chat/ollama/route.ts +350 -0
- package/.next-prod/types/app/api/ollama/models/route.ts +350 -0
- package/.next-prod/types/app/api/ollama/start/route.ts +350 -0
- package/.next-prod/types/routes.d.ts +6 -1
- package/.next-prod/types/validator.ts +45 -0
- package/dist/scheduledTasks.mjs +1 -1
- package/dist/wsServer.mjs +4 -5
- package/package.json +1 -1
- package/.next-prod/static/TAHqVv82H6wf2IMhpr8kw/_buildManifest.js +0 -1
- package/.next-prod/static/chunks/app/_global-error/page-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/load/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/save/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/app/project/page-d51072aa54463d31.js +0 -25
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-cdd67d428d9e0c3f.js +0 -1
- package/.next-prod/static/css/81b599e4fb160b4a.css +0 -3
- /package/.next-prod/static/{TAHqVv82H6wf2IMhpr8kw → Jd-PD9ePjHrv17OUyoAFo}/_ssgManifest.js +0 -0
- /package/dist/{chunk-OER3N6H7.mjs → chunk-YNAZMVAD.mjs} +0 -0
|
@@ -10,8 +10,8 @@ c:I[26719,["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"default
|
|
|
10
10
|
:HL["/_next/static/media/5c0c2bcbaa4149ca-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
11
11
|
:HL["/_next/static/media/bb3ef058b751a6ad-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
12
12
|
:HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
13
|
-
:HL["/_next/static/css/
|
|
14
|
-
0:{"P":null,"b":"
|
|
13
|
+
:HL["/_next/static/css/786ec7ade22e6269.css","style"]
|
|
14
|
+
0:{"P":null,"b":"Jd-PD9ePjHrv17OUyoAFo","c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/786ec7ade22e6269.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"overflow-hidden","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n try {\n var theme = localStorage.getItem('theme') || 'dark';\n var resolved = theme;\n if (theme === 'system') {\n resolved = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n document.documentElement.classList.add(resolved);\n } catch (e) {}\n // Unregister any leftover Service Workers (PWA has been removed)\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.getRegistrations().then(function(regs) {\n regs.forEach(function(r) { r.unregister(); });\n });\n }\n })();\n "}}]}],["$","body",null,{"className":"__variable_f367f3 __variable_c1a059 __variable_3c557b antialiased overflow-hidden","children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[]],"S":true}
|
|
15
15
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#f9f9fb"}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#111113"}]]
|
|
16
16
|
d:I[86869,[],"IconMark"]
|
|
17
17
|
7:null
|
|
@@ -10,8 +10,8 @@ c:I[26719,["4219","static/chunks/app/global-error-3c48d7d42c672863.js"],"default
|
|
|
10
10
|
:HL["/_next/static/media/5c0c2bcbaa4149ca-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
11
11
|
:HL["/_next/static/media/bb3ef058b751a6ad-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
12
12
|
:HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
13
|
-
:HL["/_next/static/css/
|
|
14
|
-
0:{"P":null,"b":"
|
|
13
|
+
:HL["/_next/static/css/786ec7ade22e6269.css","style"]
|
|
14
|
+
0:{"P":null,"b":"Jd-PD9ePjHrv17OUyoAFo","c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/786ec7ade22e6269.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"overflow-hidden","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n try {\n var theme = localStorage.getItem('theme') || 'dark';\n var resolved = theme;\n if (theme === 'system') {\n resolved = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n document.documentElement.classList.add(resolved);\n } catch (e) {}\n // Unregister any leftover Service Workers (PWA has been removed)\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.getRegistrations().then(function(regs) {\n regs.forEach(function(r) { r.unregister(); });\n });\n }\n })();\n "}}]}],["$","body",null,{"className":"__variable_f367f3 __variable_c1a059 __variable_3c557b antialiased overflow-hidden","children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L5",null,{"children":["$","$6",null,{"name":"Next.MetadataOutlet","children":"$@7"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$6",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$c",[]],"S":true}
|
|
15
15
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#f9f9fb"}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#111113"}]]
|
|
16
16
|
d:I[86869,[],"IconMark"]
|
|
17
17
|
7:null
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
3:I[90484,[],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
5
|
5:I[86869,[],"IconMark"]
|
|
6
|
-
0:{"buildId":"
|
|
6
|
+
0:{"buildId":"Jd-PD9ePjHrv17OUyoAFo","rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","media":"(prefers-color-scheme: light)","content":"#f9f9fb"}],["$","meta","3",{"name":"theme-color","media":"(prefers-color-scheme: dark)","content":"#111113"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Cockpit"}],["$","meta","1",{"name":"description","content":"One seat. One AI. Everything under control."}],["$","link","2",{"rel":"manifest","href":"/manifest.webmanifest"}],["$","meta","3",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","4",{"name":"apple-mobile-web-app-title","content":"Cockpit"}],["$","meta","5",{"name":"apple-mobile-web-app-status-bar-style","content":"default"}],["$","link","6",{"rel":"icon","href":"/favicon.ico?603d046c9a6fdfbb","type":"image/x-icon","sizes":"16x16"}],["$","link","7",{"rel":"icon","href":"/icons/icon-192x192.png"}],["$","link","8",{"rel":"apple-touch-icon","href":"/icons/icon-192x192.png"}],["$","$L5","9",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"loading":null,"isPartial":false}
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
2:I[83599,["9114","static/chunks/9114-abef8471519b7dee.js","3530","static/chunks/3530-6d8abfd0e950d439.js","7177","static/chunks/app/layout-44210aade5d56585.js"],"Providers"]
|
|
3
3
|
3:I[57121,[],""]
|
|
4
4
|
4:I[74581,[],""]
|
|
5
|
-
:HL["/_next/static/css/
|
|
6
|
-
0:{"buildId":"
|
|
5
|
+
:HL["/_next/static/css/786ec7ade22e6269.css","style"]
|
|
6
|
+
0:{"buildId":"Jd-PD9ePjHrv17OUyoAFo","rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/786ec7ade22e6269.css","precedence":"next"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"className":"overflow-hidden","children":[["$","head",null,{"children":["$","script",null,{"dangerouslySetInnerHTML":{"__html":"\n (function() {\n try {\n var theme = localStorage.getItem('theme') || 'dark';\n var resolved = theme;\n if (theme === 'system') {\n resolved = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n }\n document.documentElement.classList.add(resolved);\n } catch (e) {}\n // Unregister any leftover Service Workers (PWA has been removed)\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.getRegistrations().then(function(regs) {\n regs.forEach(function(r) { r.unregister(); });\n });\n }\n })();\n "}}]}],["$","body",null,{"className":"__variable_f367f3 __variable_c1a059 __variable_3c557b antialiased overflow-hidden","children":["$","$L2",null,{"children":["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}]}]}]}]]}]]}],"loading":null,"isPartial":false}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[90484,[],"OutletBoundary"]
|
|
3
3
|
3:"$Sreact.suspense"
|
|
4
|
-
0:{"buildId":"
|
|
4
|
+
0:{"buildId":"Jd-PD9ePjHrv17OUyoAFo","rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"loading":null,"isPartial":false}
|
|
5
5
|
4:null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[57121,[],""]
|
|
3
3
|
3:I[74581,[],""]
|
|
4
|
-
0:{"buildId":"
|
|
4
|
+
0:{"buildId":"Jd-PD9ePjHrv17OUyoAFo","rsc":["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",null,{}]}]]}],"loading":null,"isPartial":false}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
:HL["/_next/static/media/5c0c2bcbaa4149ca-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
2
2
|
:HL["/_next/static/media/bb3ef058b751a6ad-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
3
3
|
:HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
4
|
-
:HL["/_next/static/css/
|
|
5
|
-
0:{"buildId":"
|
|
4
|
+
:HL["/_next/static/css/786ec7ade22e6269.css","style"]
|
|
5
|
+
0:{"buildId":"Jd-PD9ePjHrv17OUyoAFo","tree":{"name":"","paramType":null,"paramKey":"","hasRuntimePrefetch":false,"slots":{"children":{"name":"_not-found","paramType":null,"paramKey":"_not-found","hasRuntimePrefetch":false,"slots":{"children":{"name":"__PAGE__","paramType":null,"paramKey":"__PAGE__","hasRuntimePrefetch":false,"slots":null,"isRootLayout":false}},"isRootLayout":false}},"isRootLayout":true},"staleTime":300}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/bash/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"1874":{"*":{"id":"1482","name":"*","chunks":[],"async":false}},"
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/bash/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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false}},"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/786ec7ade22e6269.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/bash/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":{}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(()=>{var a={};a.id=1180,a.ids=[1180],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},4877:(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:()=>E,dynamic:()=>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(79646),w=c(4984),x=c(29021),y=c(33873),z=c(21820),A=c(91878);let B="nodejs",C="force-dynamic",D={"image/png":".png","image/jpeg":".jpg","image/webp":".webp","image/gif":".gif"};async function E(a){try{let b,{prompt:c,sessionId:d,images:e,cwd:f}=await a.json();if(!c||"string"!=typeof c)return new Response(JSON.stringify({error:"Missing prompt"}),{status:400,headers:{"Content-Type":"application/json"}});let g=[];e&&Array.isArray(e)&&e.length>0&&g.push(...(b=(0,y.join)((0,z.tmpdir)(),"cockpit-codex-images"),(0,x.existsSync)(b)||(0,x.mkdirSync)(b,{recursive:!0}),e.map((a,c)=>{let d=D[a.media_type]||".png",e=(0,y.join)(b,`img-${Date.now()}-${c}${d}`);return(0,x.writeFileSync)(e,Buffer.from(a.data,"base64")),e})));let h=new TextEncoder,i=!1,j=d||"",k="string"==typeof c?c.slice(0,50):"",l=null,m=new ReadableStream({async start(a){let b=b=>{if(!i)try{a.enqueue(h.encode(b))}catch{i=!0}},e=()=>{if(!i){i=!0;try{a.close()}catch{}}};try{let a=["exec"];if(d){for(let b of(a.push("resume",d,"--json","--full-auto"),g))a.push("--image",b);a.push(c)}else{for(let b of(a.push("--json","--full-auto"),f&&a.push("-C",f),g))a.push("--image",b);a.push(c)}l=(0,v.spawn)("codex",a,{stdio:["ignore","pipe","pipe"],cwd:f||void 0,env:{...process.env}});let h=new Map;(0,w.createInterface)({input:l.stdout}).on("line",a=>{let c;if(!i){try{c=JSON.parse(a)}catch{return}switch(c.type){case"thread.started":j=c.thread_id||`codex-${Date.now()}`,b(`data: ${JSON.stringify({type:"system",subtype:"init",session_id:j})}
|
|
2
|
+
|
|
3
|
+
`),f&&(0,A.CS)(f,j,"loading",void 0,k).catch(()=>{});break;case"item.completed":{let a=c.item;if(!a)break;if("agent_message"===a.type&&a.text&&b(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"text",text:a.text}]}})}
|
|
4
|
+
|
|
5
|
+
`),"reasoning"===a.type&&a.text&&b(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"text",text:`<details><summary>Reasoning</summary>
|
|
6
|
+
|
|
7
|
+
${a.text}
|
|
8
|
+
|
|
9
|
+
</details>`}]}})}
|
|
10
|
+
|
|
11
|
+
`),"command_execution"===a.type){let c=a.id||`tool-${Date.now()}`;h.has(c)||b(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"tool_use",id:c,name:"Bash",input:{command:a.command||""}}]}})}
|
|
12
|
+
|
|
13
|
+
`),b(`data: ${JSON.stringify({type:"user",message:{content:[{tool_use_id:c,content:a.aggregated_output||`(exit code: ${a.exit_code??"unknown"})`}]}})}
|
|
14
|
+
|
|
15
|
+
`),h.delete(c)}break}case"item.started":{let a=c.item;if(!a)break;if("command_execution"===a.type&&a.command){let c=a.id||`tool-${Date.now()}`;h.set(c,c),b(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"tool_use",id:c,name:"Bash",input:{command:a.command}}]}})}
|
|
16
|
+
|
|
17
|
+
`)}break}case"turn.completed":{let a=c.usage||{};b(`data: ${JSON.stringify({type:"result",subtype:"success",usage:{input_tokens:a.input_tokens||0,output_tokens:a.output_tokens||0,cache_creation_input_tokens:0,cache_read_input_tokens:a.cached_input_tokens||0},total_cost_usd:0})}
|
|
18
|
+
|
|
19
|
+
`)}}}}),l.on("close",async()=>{for(let a of g)try{(0,x.unlinkSync)(a)}catch{}f&&j&&await (0,A.CS)(f,j,"unread",void 0).catch(()=>{}),b("data: [DONE]\n\n"),e()});let m="";l.stderr?.on("data",a=>{m+=a.toString()}),l.on("error",a=>{console.error("[Codex] spawn error:",a.message),b(`data: ${JSON.stringify({type:"error",error:a.message})}
|
|
20
|
+
|
|
21
|
+
`),e()}),l.on("close",a=>{0!==a&&m.trim()&&console.error(`[Codex] exited with code ${a}: ${m.trim()}`)})}catch(a){b(`data: ${JSON.stringify({type:"error",error:String(a)})}
|
|
22
|
+
|
|
23
|
+
`),e()}},cancel(){i=!0,l&&l.kill("SIGTERM")}});return new Response(m,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}catch(a){return new Response(JSON.stringify({error:String(a)}),{status:500,headers:{"Content-Type":"application/json"}})}}let F=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/chat/codex/route",pathname:"/api/chat/codex",filename:"route",bundlePath:"app/api/chat/codex/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/chat/codex/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/chat/codex/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}}},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:()=>F,A0:()=>N,An:()=>Q,BF:()=>B,Ct:()=>J,Eu:()=>A,Ex:()=>r,JE:()=>P,JY:()=>E,Ki:()=>v,Kk:()=>K,Kv:()=>i,Mx:()=>w,Sr:()=>C,Tb:()=>p,Ux:()=>S,Wd:()=>O,aO:()=>l,ec:()=>m,eg:()=>L,i4:()=>z,iK:()=>n,iy:()=>I,lq:()=>y,ls:()=>D,mT:()=>t,oK:()=>H,of:()=>x,po:()=>G,tP:()=>o,th:()=>s,v4:()=>k,vI:()=>M});var d=c(21820),e=c(33873),f=c(79748),g=c(29021);let h=(0,d.homedir)(),i=(0,e.join)(h,".cockpit"),j=(0,e.join)(i,"projects"),k=(0,e.join)(i,"state.json"),l=(0,e.join)(i,"pinned-sessions.json"),m=(0,e.join)(i,"note.md"),n=(0,e.join)(i,"scheduled-tasks.json"),o=(0,e.join)(i,"settings.json"),p=(0,e.join)(i,"review"),q=(0,e.join)(p,"_signal");function r(){try{(0,g.existsSync)(p)||(0,g.mkdirSync)(p,{recursive:!0}),(0,g.writeFileSync)(q,Date.now().toString())}catch{}}let s=(0,e.join)(h,".claude"),t=(0,e.join)(s,"projects");function u(a){return a.replace(/[/.]/g,"-")}function v(a){return(0,e.join)(j,u(a))}function w(a){return(0,e.join)(v(a),"session.json")}function x(a){return(0,e.join)(v(a),"recent-files.json")}function y(a){return(0,e.join)(v(a),"expanded-paths.json")}function z(a){return(0,e.join)(v(a),"comments.json")}function A(a){return(0,e.join)(v(a),"services.json")}function B(a){return(0,e.join)(v(a),"note.md")}function C(a,b){return(0,e.join)(v(a),`terminal-history-${b}.jsonl`)}function D(a,b){return(0,e.join)(v(a),`terminal-output-${b}.txt`)}function E(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(v(a),c)}function F(){return(0,e.join)(i,"terminal-aliases.json")}function G(){return(0,e.join)(i,"services.json")}function H(a){return(0,e.join)(v(a),"project-settings.json")}function I(a,b){return(0,e.join)(v(a),`terminal-bubble-order-${b}.json`)}function J(a){return(0,e.join)(p,`${a}.json`)}function K(a,b){return(0,e.join)((0,e.join)(t,u(a)),`${b}.jsonl`)}function L(a){let b=(0,e.join)(h,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let{execSync:d}=c(79646),e=d(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(e)return e.split("\n")[0]}catch{}return null}function M(a){let b=(0,e.join)(h,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{let{readdirSync:d}=c(29021);for(let c of d(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function N(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function O(a){let b=(0,e.join)(a,"..");await N(b)}async function P(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function Q(a,b){await O(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let R=new Map;function S(a,b){let c=(R.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return R.set(a,d),d.then(()=>{R.get(a)===d&&R.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")},91878:(a,b,c)=>{"use strict";c.d(b,{CS:()=>h,Pn:()=>i,r8:()=>j});var d=c(25813),e=c(29021),f=c(4984);function g(a){if(!a)return a;let b=[...a];return b.length<=50?a:b.slice(0,50).join("")+"…"}async function h(a,b,c,f,h){if((0,e.existsSync)(a))return(0,d.Ux)(d.v4,async()=>{let e=await (0,d.JE)(d.v4,{sessions:[]});for(let a of e.sessions)a.status||(a.status=a.isLoading?"loading":"normal",delete a.isLoading);let i=e.sessions.findIndex(c=>c.cwd===a&&c.sessionId===b),j=i>=0?e.sessions[i]:void 0,k={cwd:a,sessionId:b,lastActive:Date.now(),status:c,title:g(f||j?.title),lastUserMessage:g(h||j?.lastUserMessage)};i>=0?e.sessions[i]=k:e.sessions.push(k),e.sessions.sort((a,b)=>b.lastActive-a.lastActive),e.sessions=e.sessions.slice(0,15),await (0,d.An)(d.v4,e)})}async function i(a,b){let c=(0,d.Kk)(a,b);if(!(0,e.existsSync)(c))return"Untitled Session";try{let a=(0,e.createReadStream)(c),b=(0,f.createInterface)({input:a,crlfDelay:1/0}),d="",i=[];for await(let a of b)if(a.trim())try{let b=JSON.parse(a);if("summary"===b.type&&b.summary&&(d=b.summary),"user"===b.type){let a=b.message;if(a?.content){if("string"==typeof a.content)i.push(a.content);else if(Array.isArray(a.content))for(let b of a.content)"text"===b.type&&b.text&&i.push(b.text)}}}catch{}var g=d,h=i;if(g)return g;let j="";for(let a of h){let b=k(a);if(b){if(b.startsWith("/")&&!j){j=b;continue}if(j)return`${j} ${b}`;return b}}return j||"Untitled Session"}catch{return"Untitled Session"}}async function j(a,b){let c=(0,d.Kk)(a,b);if((0,e.existsSync)(c))try{let a,b=(0,e.createReadStream)(c);for await(let c of(0,f.createInterface)({input:b,crlfDelay:1/0}))if(c.trim())try{let b=JSON.parse(c);if("user"===b.type){let c=b.message;if(c?.content){let b="";if("string"==typeof c.content)b=c.content;else if(Array.isArray(c.content)){for(let a of c.content)if("text"===a.type&&a.text){b=a.text;break}}if(b){var g;let c=k(b);c&&!((g=c).startsWith("This session is being continued")||g.startsWith("Caveat: The messages below"))&&g.trim()&&(a=c)}}}}catch{}return a}catch{return}}function k(a){let b=a.replace(/<command-[^>]*>[\s\S]*?<\/command-[^>]*>/g,"");return(b=b.replace(/<local-command-[^>]*>[\s\S]*?<\/local-command-[^>]*>/g,"")).trim()}},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=4877));module.exports=c})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1639.js","../../../../chunks/1667.js","../../../../chunks/1813.js","../../../../chunks/1912.js","../../../../chunks/2325.js","../../../../chunks/2376.js","../../../../chunks/2816.js","../../../../chunks/2840.js","../../../../chunks/3434.js","../../../../chunks/3441.js","../../../../chunks/3503.js","../../../../chunks/3863.js","../../../../chunks/3932.js","../../../../chunks/4042.js","../../../../chunks/4073.js","../../../../chunks/4097.js","../../../../chunks/4098.js","../../../../chunks/4268.js","../../../../chunks/4272.js","../../../../chunks/4309.js","../../../../chunks/4345.js","../../../../chunks/4367.js","../../../../chunks/4388.js","../../../../chunks/4442.js","../../../../chunks/4490.js","../../../../chunks/4741.js","../../../../chunks/4793.js","../../../../chunks/5147.js","../../../../chunks/5152.js","../../../../chunks/5460.js","../../../../chunks/5481.js","../../../../chunks/5536.js","../../../../chunks/5733.js","../../../../chunks/582.js","../../../../chunks/5958.js","../../../../chunks/6062.js","../../../../chunks/6117.js","../../../../chunks/6142.js","../../../../chunks/6346.js","../../../../chunks/6443.js","../../../../chunks/6804.js","../../../../chunks/7265.js","../../../../chunks/7284.js","../../../../chunks/7307.js","../../../../chunks/7483.js","../../../../chunks/7484.js","../../../../chunks/7514.js","../../../../chunks/7800.js","../../../../chunks/8068.js","../../../../chunks/8351.js","../../../../chunks/8491.js","../../../../chunks/8585.js","../../../../chunks/887.js","../../../../chunks/911.js","../../../../chunks/9116.js","../../../../chunks/925.js","../../../../chunks/9298.js","../../../../chunks/9401.js","../../../../chunks/9408.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/chat/codex/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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false}},"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/786ec7ade22e6269.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/chat/route":[],"/home/runner/work/cockpit/cockpit/src/app/api/chat/codex/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":{}}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(()=>{var a={};a.id=8405,a.ids=[8405],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:()=>F,A0:()=>N,An:()=>Q,BF:()=>B,Ct:()=>J,Eu:()=>A,Ex:()=>r,JE:()=>P,JY:()=>E,Ki:()=>v,Kk:()=>K,Kv:()=>i,Mx:()=>w,Sr:()=>C,Tb:()=>p,Ux:()=>S,Wd:()=>O,aO:()=>l,ec:()=>m,eg:()=>L,i4:()=>z,iK:()=>n,iy:()=>I,lq:()=>y,ls:()=>D,mT:()=>t,oK:()=>H,of:()=>x,po:()=>G,tP:()=>o,th:()=>s,v4:()=>k,vI:()=>M});var d=c(21820),e=c(33873),f=c(79748),g=c(29021);let h=(0,d.homedir)(),i=(0,e.join)(h,".cockpit"),j=(0,e.join)(i,"projects"),k=(0,e.join)(i,"state.json"),l=(0,e.join)(i,"pinned-sessions.json"),m=(0,e.join)(i,"note.md"),n=(0,e.join)(i,"scheduled-tasks.json"),o=(0,e.join)(i,"settings.json"),p=(0,e.join)(i,"review"),q=(0,e.join)(p,"_signal");function r(){try{(0,g.existsSync)(p)||(0,g.mkdirSync)(p,{recursive:!0}),(0,g.writeFileSync)(q,Date.now().toString())}catch{}}let s=(0,e.join)(h,".claude"),t=(0,e.join)(s,"projects");function u(a){return a.replace(/[/.]/g,"-")}function v(a){return(0,e.join)(j,u(a))}function w(a){return(0,e.join)(v(a),"session.json")}function x(a){return(0,e.join)(v(a),"recent-files.json")}function y(a){return(0,e.join)(v(a),"expanded-paths.json")}function z(a){return(0,e.join)(v(a),"comments.json")}function A(a){return(0,e.join)(v(a),"services.json")}function B(a){return(0,e.join)(v(a),"note.md")}function C(a,b){return(0,e.join)(v(a),`terminal-history-${b}.jsonl`)}function D(a,b){return(0,e.join)(v(a),`terminal-output-${b}.txt`)}function E(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(v(a),c)}function F(){return(0,e.join)(i,"terminal-aliases.json")}function G(){return(0,e.join)(i,"services.json")}function H(a){return(0,e.join)(v(a),"project-settings.json")}function I(a,b){return(0,e.join)(v(a),`terminal-bubble-order-${b}.json`)}function J(a){return(0,e.join)(p,`${a}.json`)}function K(a,b){return(0,e.join)((0,e.join)(t,u(a)),`${b}.jsonl`)}function L(a){let b=(0,e.join)(h,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let{execSync:d}=c(79646),e=d(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(e)return e.split("\n")[0]}catch{}return null}function M(a){let b=(0,e.join)(h,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{let{readdirSync:d}=c(29021);for(let c of d(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function N(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function O(a){let b=(0,e.join)(a,"..");await N(b)}async function P(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function Q(a,b){await O(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let R=new Map;function S(a,b){let c=(R.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return R.set(a,d),d.then(()=>{R.get(a)===d&&R.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")},60176:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>J,patchFetch:()=>I,routeModule:()=>E,serverHooks:()=>H,workAsyncStorage:()=>F,workUnitAsyncStorage:()=>G});var d={};c.r(d),c.d(d,{POST:()=>D,dynamic:()=>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(79646),w=c(4984),x=c(29021),y=c(33873),z=c(21820),A=c(91878);let B="nodejs",C="force-dynamic";async function D(a){try{let{prompt:b,sessionId:c,cwd:d}=await a.json();if(!b||"string"!=typeof b)return new Response(JSON.stringify({error:"Missing prompt"}),{status:400,headers:{"Content-Type":"application/json"}});let e=new TextEncoder,f=!1,g=c||"",h="string"==typeof b?b.slice(0,50):"",i=null,j=new ReadableStream({async start(a){let j=b=>{if(!f)try{a.enqueue(e.encode(b))}catch{f=!0}},k=()=>{if(!f){f=!0;try{a.close()}catch{}}};try{let a=["--print","--output-format","stream-json"];c&&a.push("-S",c),d&&a.push("-w",d),a.push("-p",b);let e=c?new Set:function(){let a=new Set,b=(0,y.join)((0,z.homedir)(),".kimi","sessions");try{for(let c of(0,x.readdirSync)(b)){let d=(0,y.join)(b,c);try{for(let b of(0,x.readdirSync)(d))a.add(b)}catch{}}}catch{}return a}();i=(0,v.spawn)("kimi",a,{stdio:["ignore","pipe","pipe"],cwd:d||void 0,env:{...process.env}}),g&&(j(`data: ${JSON.stringify({type:"system",subtype:"init",session_id:g})}
|
|
2
|
+
|
|
3
|
+
`),d&&(0,A.CS)(d,g,"loading",void 0,h).catch(()=>{})),(0,w.createInterface)({input:i.stdout}).on("line",a=>{let b;if(!f){try{b=JSON.parse(a)}catch{return}if("assistant"===b.role){if(b.content)for(let a of b.content)"text"===a.type&&a.text&&j(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"text",text:a.text}]}})}
|
|
4
|
+
|
|
5
|
+
`),"think"===a.type&&a.think&&j(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"text",text:`<details><summary>Thinking</summary>
|
|
6
|
+
|
|
7
|
+
${a.think}
|
|
8
|
+
|
|
9
|
+
</details>`}]}})}
|
|
10
|
+
|
|
11
|
+
`);if(b.tool_calls){for(let a of b.tool_calls)if(a.function?.name){let b=a.id||`tool-${Date.now()}`,c={};try{c=JSON.parse(a.function.arguments||"{}")}catch{}let d="Shell"===a.function.name?"Bash":a.function.name;j(`data: ${JSON.stringify({type:"assistant",message:{content:[{type:"tool_use",id:b,name:d,input:c}]}})}
|
|
12
|
+
|
|
13
|
+
`)}}}if("tool"===b.role){let a=b.tool_call_id;if(a&&b.content){let c=b.content.filter(a=>"text"===a.type&&a.text).map(a=>a.text).join("\n");j(`data: ${JSON.stringify({type:"user",message:{content:[{tool_use_id:a,content:c}]}})}
|
|
14
|
+
|
|
15
|
+
`)}}}}),i.on("close",async()=>{if(!g){let a=function(a){let b=(0,y.join)((0,z.homedir)(),".kimi","sessions");try{for(let c of(0,x.readdirSync)(b)){let d=(0,y.join)(b,c);try{for(let b of(0,x.readdirSync)(d))if(!a.has(b))return b}catch{}}}catch{}return null}(e);a&&(g=a,j(`data: ${JSON.stringify({type:"system",subtype:"init",session_id:g})}
|
|
16
|
+
|
|
17
|
+
`),d&&(0,A.CS)(d,g,"loading",void 0,h).catch(()=>{}))}j(`data: ${JSON.stringify({type:"result",subtype:"success",usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0},total_cost_usd:0})}
|
|
18
|
+
|
|
19
|
+
`),d&&g&&await (0,A.CS)(d,g,"unread",void 0).catch(()=>{}),j("data: [DONE]\n\n"),k()}),i.stderr?.on("data",()=>{}),i.on("error",a=>{console.error("[Kimi] spawn error:",a.message),j(`data: ${JSON.stringify({type:"error",error:a.message})}
|
|
20
|
+
|
|
21
|
+
`),k()})}catch(a){j(`data: ${JSON.stringify({type:"error",error:String(a)})}
|
|
22
|
+
|
|
23
|
+
`),k()}},cancel(){f=!0,i&&i.kill("SIGTERM")}});return new Response(j,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}catch(a){return new Response(JSON.stringify({error:String(a)}),{status:500,headers:{"Content-Type":"application/json"}})}}let E=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/chat/kimi/route",pathname:"/api/chat/kimi",filename:"route",bundlePath:"app/api/chat/kimi/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/chat/kimi/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:F,workUnitAsyncStorage:G,serverHooks:H}=E;function I(){return(0,g.patchFetch)({workAsyncStorage:F,workUnitAsyncStorage:G})}async function J(a,b,c){E.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/chat/kimi/route";"/index"===d&&(d="/");let e=await E.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:F,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||E.isDev||y||(K="/index"===(K=D)?"/":K);let L=!0===E.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)=>E.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=>E.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 E.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:B})},!1,A),b}},l=await E.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 E.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}}},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")},91878:(a,b,c)=>{"use strict";c.d(b,{CS:()=>h,Pn:()=>i,r8:()=>j});var d=c(25813),e=c(29021),f=c(4984);function g(a){if(!a)return a;let b=[...a];return b.length<=50?a:b.slice(0,50).join("")+"…"}async function h(a,b,c,f,h){if((0,e.existsSync)(a))return(0,d.Ux)(d.v4,async()=>{let e=await (0,d.JE)(d.v4,{sessions:[]});for(let a of e.sessions)a.status||(a.status=a.isLoading?"loading":"normal",delete a.isLoading);let i=e.sessions.findIndex(c=>c.cwd===a&&c.sessionId===b),j=i>=0?e.sessions[i]:void 0,k={cwd:a,sessionId:b,lastActive:Date.now(),status:c,title:g(f||j?.title),lastUserMessage:g(h||j?.lastUserMessage)};i>=0?e.sessions[i]=k:e.sessions.push(k),e.sessions.sort((a,b)=>b.lastActive-a.lastActive),e.sessions=e.sessions.slice(0,15),await (0,d.An)(d.v4,e)})}async function i(a,b){let c=(0,d.Kk)(a,b);if(!(0,e.existsSync)(c))return"Untitled Session";try{let a=(0,e.createReadStream)(c),b=(0,f.createInterface)({input:a,crlfDelay:1/0}),d="",i=[];for await(let a of b)if(a.trim())try{let b=JSON.parse(a);if("summary"===b.type&&b.summary&&(d=b.summary),"user"===b.type){let a=b.message;if(a?.content){if("string"==typeof a.content)i.push(a.content);else if(Array.isArray(a.content))for(let b of a.content)"text"===b.type&&b.text&&i.push(b.text)}}}catch{}var g=d,h=i;if(g)return g;let j="";for(let a of h){let b=k(a);if(b){if(b.startsWith("/")&&!j){j=b;continue}if(j)return`${j} ${b}`;return b}}return j||"Untitled Session"}catch{return"Untitled Session"}}async function j(a,b){let c=(0,d.Kk)(a,b);if((0,e.existsSync)(c))try{let a,b=(0,e.createReadStream)(c);for await(let c of(0,f.createInterface)({input:b,crlfDelay:1/0}))if(c.trim())try{let b=JSON.parse(c);if("user"===b.type){let c=b.message;if(c?.content){let b="";if("string"==typeof c.content)b=c.content;else if(Array.isArray(c.content)){for(let a of c.content)if("text"===a.type&&a.text){b=a.text;break}}if(b){var g;let c=k(b);c&&!((g=c).startsWith("This session is being continued")||g.startsWith("Caveat: The messages below"))&&g.trim()&&(a=c)}}}}catch{}return a}catch{return}}function k(a){let b=a.replace(/<command-[^>]*>[\s\S]*?<\/command-[^>]*>/g,"");return(b=b.replace(/<local-command-[^>]*>[\s\S]*?<\/local-command-[^>]*>/g,"")).trim()}},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=60176));module.exports=c})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":1,"files":["../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/client-and-server-references.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/console-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-node-extensions.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/node-environment-extensions/fast-set-immediate.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/server/runtime-reacts.external.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/dist/shared/lib/server-reference-info.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1639.js","../../../../chunks/1667.js","../../../../chunks/1813.js","../../../../chunks/1912.js","../../../../chunks/2325.js","../../../../chunks/2376.js","../../../../chunks/2816.js","../../../../chunks/2840.js","../../../../chunks/3434.js","../../../../chunks/3441.js","../../../../chunks/3503.js","../../../../chunks/3863.js","../../../../chunks/3932.js","../../../../chunks/4042.js","../../../../chunks/4073.js","../../../../chunks/4097.js","../../../../chunks/4098.js","../../../../chunks/4268.js","../../../../chunks/4272.js","../../../../chunks/4309.js","../../../../chunks/4345.js","../../../../chunks/4367.js","../../../../chunks/4388.js","../../../../chunks/4442.js","../../../../chunks/4490.js","../../../../chunks/4741.js","../../../../chunks/4793.js","../../../../chunks/5147.js","../../../../chunks/5152.js","../../../../chunks/5460.js","../../../../chunks/5481.js","../../../../chunks/5536.js","../../../../chunks/5733.js","../../../../chunks/582.js","../../../../chunks/5958.js","../../../../chunks/6062.js","../../../../chunks/6117.js","../../../../chunks/6142.js","../../../../chunks/6346.js","../../../../chunks/6443.js","../../../../chunks/6804.js","../../../../chunks/7265.js","../../../../chunks/7284.js","../../../../chunks/7307.js","../../../../chunks/7483.js","../../../../chunks/7484.js","../../../../chunks/7514.js","../../../../chunks/7800.js","../../../../chunks/8068.js","../../../../chunks/8351.js","../../../../chunks/8491.js","../../../../chunks/8585.js","../../../../chunks/887.js","../../../../chunks/911.js","../../../../chunks/9116.js","../../../../chunks/925.js","../../../../chunks/9298.js","../../../../chunks/9401.js","../../../../chunks/9408.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/chat/kimi/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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.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-9f80ad2c7c9cf840.js","8974","static/chunks/app/page-cc2bf3ca4c337090.js"],"async":false},"/home/runner/work/cockpit/cockpit/src/components/project/TabManager.tsx":{"id":97484,"name":"*","chunks":[],"async":true},"/home/runner/work/cockpit/cockpit/src/components/review/ReviewPage.tsx":{"id":97899,"name":"*","chunks":[],"async":false}},"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/786ec7ade22e6269.css"}],"/home/runner/work/cockpit/cockpit/src/app/page":[],"/home/runner/work/cockpit/cockpit/src/app/api/chat/route":[],"/home/runner/work/cockpit/cockpit/src/app/api/chat/kimi/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":{}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(()=>{var a={};a.id=2769,a.ids=[2769],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")},22709:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>G,patchFetch:()=>F,routeModule:()=>B,serverHooks:()=>E,workAsyncStorage:()=>C,workUnitAsyncStorage:()=>D});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(79646),w=c(4984),x=c(91878);let y="nodejs",z="force-dynamic";async function A(a){try{let{prompt:b,sessionId:c,cwd:d,model:e}=await a.json();if(!e)return new Response(JSON.stringify({error:"Missing model. Select an Ollama model first."}),{status:400,headers:{"Content-Type":"application/json"}});if(!b||"string"!=typeof b)return new Response(JSON.stringify({error:"Missing prompt"}),{status:400,headers:{"Content-Type":"application/json"}});let f=new TextEncoder,g=!1,h=c||"",i=b.slice(0,50),j=null,k=new ReadableStream({async start(a){let k=b=>{if(!g)try{a.enqueue(f.encode(b))}catch{g=!0}},l=()=>{if(!g){g=!0;try{a.close()}catch{}}};try{let a=["-p","--output-format","stream-json","--verbose","--model",e,"--permission-mode","bypassPermissions"];c&&a.push("--resume",c);let f={...process.env,ANTHROPIC_BASE_URL:"http://127.0.0.1:11434",ANTHROPIC_API_KEY:"sk-ant-ollama",ANTHROPIC_AUTH_TOKEN:"ollama",ANTHROPIC_DEFAULT_SONNET_MODEL:e,ANTHROPIC_DEFAULT_OPUS_MODEL:e,ANTHROPIC_DEFAULT_HAIKU_MODEL:e,CLAUDE_CODE_SUBAGENT_MODEL:e,CLAUDE_CODE_ATTRIBUTION_HEADER:"0",CLAUDECODE:"1"};j=(0,v.spawn)("claude",a,{stdio:["pipe","pipe","pipe"],cwd:d||void 0,env:f}),j.stdin?.write(b),j.stdin?.end();let m=!1;(0,w.createInterface)({input:j.stdout}).on("line",a=>{let b;if(g)return;try{b=JSON.parse(a)}catch{return}let c=b.type;"system"===c&&"init"===b.subtype&&b.session_id&&(h=b.session_id,m=!0,d&&(0,x.CS)(d,h,"loading",void 0,i).catch(()=>{})),m||h||"assistant"!==c&&"stream_event"!==c||(h=`ollama-${Date.now()}`,m=!0,k(`data: ${JSON.stringify({type:"system",subtype:"init",session_id:h})}
|
|
2
|
+
|
|
3
|
+
`),d&&(0,x.CS)(d,h,"loading",void 0,i).catch(()=>{})),k(`data: ${JSON.stringify(b)}
|
|
4
|
+
|
|
5
|
+
`)}),j.on("close",async a=>{d&&h&&await (0,x.CS)(d,h,"unread",void 0).catch(()=>{}),0!==a&&n.trim()&&k(`data: ${JSON.stringify({type:"error",error:n.trim().slice(0,500)})}
|
|
6
|
+
|
|
7
|
+
`),k("data: [DONE]\n\n"),l()});let n="";j.stderr?.on("data",a=>{n+=a.toString()}),j.on("error",a=>{console.error("[Ollama] spawn error:",a.message),k(`data: ${JSON.stringify({type:"error",error:a.message})}
|
|
8
|
+
|
|
9
|
+
`),l()})}catch(a){k(`data: ${JSON.stringify({type:"error",error:String(a)})}
|
|
10
|
+
|
|
11
|
+
`),l()}},cancel(){g=!0,j&&j.kill("SIGTERM")}});return new Response(k,{headers:{"Content-Type":"text/event-stream","Cache-Control":"no-cache",Connection:"keep-alive"}})}catch(a){return new Response(JSON.stringify({error:String(a)}),{status:500,headers:{"Content-Type":"application/json"}})}}let B=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/chat/ollama/route",pathname:"/api/chat/ollama",filename:"route",bundlePath:"app/api/chat/ollama/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/chat/ollama/route.ts",nextConfigOutput:"",userland:d}),{workAsyncStorage:C,workUnitAsyncStorage:D,serverHooks:E}=B;function F(){return(0,g.patchFetch)({workAsyncStorage:C,workUnitAsyncStorage:D})}async function G(a,b,c){B.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/chat/ollama/route";"/index"===d&&(d="/");let e=await B.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:C,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||B.isDev||y||(K="/index"===(K=E)?"/":K);let L=!0===B.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)=>B.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=>B.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&&C&&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 B.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,A),b}},l=await B.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:C,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",C?"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 B.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!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:()=>F,A0:()=>N,An:()=>Q,BF:()=>B,Ct:()=>J,Eu:()=>A,Ex:()=>r,JE:()=>P,JY:()=>E,Ki:()=>v,Kk:()=>K,Kv:()=>i,Mx:()=>w,Sr:()=>C,Tb:()=>p,Ux:()=>S,Wd:()=>O,aO:()=>l,ec:()=>m,eg:()=>L,i4:()=>z,iK:()=>n,iy:()=>I,lq:()=>y,ls:()=>D,mT:()=>t,oK:()=>H,of:()=>x,po:()=>G,tP:()=>o,th:()=>s,v4:()=>k,vI:()=>M});var d=c(21820),e=c(33873),f=c(79748),g=c(29021);let h=(0,d.homedir)(),i=(0,e.join)(h,".cockpit"),j=(0,e.join)(i,"projects"),k=(0,e.join)(i,"state.json"),l=(0,e.join)(i,"pinned-sessions.json"),m=(0,e.join)(i,"note.md"),n=(0,e.join)(i,"scheduled-tasks.json"),o=(0,e.join)(i,"settings.json"),p=(0,e.join)(i,"review"),q=(0,e.join)(p,"_signal");function r(){try{(0,g.existsSync)(p)||(0,g.mkdirSync)(p,{recursive:!0}),(0,g.writeFileSync)(q,Date.now().toString())}catch{}}let s=(0,e.join)(h,".claude"),t=(0,e.join)(s,"projects");function u(a){return a.replace(/[/.]/g,"-")}function v(a){return(0,e.join)(j,u(a))}function w(a){return(0,e.join)(v(a),"session.json")}function x(a){return(0,e.join)(v(a),"recent-files.json")}function y(a){return(0,e.join)(v(a),"expanded-paths.json")}function z(a){return(0,e.join)(v(a),"comments.json")}function A(a){return(0,e.join)(v(a),"services.json")}function B(a){return(0,e.join)(v(a),"note.md")}function C(a,b){return(0,e.join)(v(a),`terminal-history-${b}.jsonl`)}function D(a,b){return(0,e.join)(v(a),`terminal-output-${b}.txt`)}function E(a,b){let c=b?`terminal-env-${b}.json`:"terminal-env-global.json";return(0,e.join)(v(a),c)}function F(){return(0,e.join)(i,"terminal-aliases.json")}function G(){return(0,e.join)(i,"services.json")}function H(a){return(0,e.join)(v(a),"project-settings.json")}function I(a,b){return(0,e.join)(v(a),`terminal-bubble-order-${b}.json`)}function J(a){return(0,e.join)(p,`${a}.json`)}function K(a,b){return(0,e.join)((0,e.join)(t,u(a)),`${b}.jsonl`)}function L(a){let b=(0,e.join)(h,".codex","sessions");if(!(0,g.existsSync)(b))return null;try{let{execSync:d}=c(79646),e=d(`find ${JSON.stringify(b)} -name "*${a}.jsonl" -type f 2>/dev/null`,{encoding:"utf8",timeout:3e3}).trim();if(e)return e.split("\n")[0]}catch{}return null}function M(a){let b=(0,e.join)(h,".kimi","sessions");if(!(0,g.existsSync)(b))return null;try{let{readdirSync:d}=c(29021);for(let c of d(b)){let d=(0,e.join)(b,c,a,"context.jsonl");if((0,g.existsSync)(d))return d}}catch{}return null}async function N(a){(0,g.existsSync)(a)||await (0,f.mkdir)(a,{recursive:!0})}async function O(a){let b=(0,e.join)(a,"..");await N(b)}async function P(a,b){try{let b=await (0,f.readFile)(a,"utf-8");return JSON.parse(b)}catch{return b}}async function Q(a,b){await O(a),await (0,f.writeFile)(a,JSON.stringify(b,null,2),"utf-8")}let R=new Map;function S(a,b){let c=(R.get(a)??Promise.resolve()).then(b),d=c.then(()=>{},()=>{});return R.set(a,d),d.then(()=>{R.get(a)===d&&R.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")},91878:(a,b,c)=>{"use strict";c.d(b,{CS:()=>h,Pn:()=>i,r8:()=>j});var d=c(25813),e=c(29021),f=c(4984);function g(a){if(!a)return a;let b=[...a];return b.length<=50?a:b.slice(0,50).join("")+"…"}async function h(a,b,c,f,h){if((0,e.existsSync)(a))return(0,d.Ux)(d.v4,async()=>{let e=await (0,d.JE)(d.v4,{sessions:[]});for(let a of e.sessions)a.status||(a.status=a.isLoading?"loading":"normal",delete a.isLoading);let i=e.sessions.findIndex(c=>c.cwd===a&&c.sessionId===b),j=i>=0?e.sessions[i]:void 0,k={cwd:a,sessionId:b,lastActive:Date.now(),status:c,title:g(f||j?.title),lastUserMessage:g(h||j?.lastUserMessage)};i>=0?e.sessions[i]=k:e.sessions.push(k),e.sessions.sort((a,b)=>b.lastActive-a.lastActive),e.sessions=e.sessions.slice(0,15),await (0,d.An)(d.v4,e)})}async function i(a,b){let c=(0,d.Kk)(a,b);if(!(0,e.existsSync)(c))return"Untitled Session";try{let a=(0,e.createReadStream)(c),b=(0,f.createInterface)({input:a,crlfDelay:1/0}),d="",i=[];for await(let a of b)if(a.trim())try{let b=JSON.parse(a);if("summary"===b.type&&b.summary&&(d=b.summary),"user"===b.type){let a=b.message;if(a?.content){if("string"==typeof a.content)i.push(a.content);else if(Array.isArray(a.content))for(let b of a.content)"text"===b.type&&b.text&&i.push(b.text)}}}catch{}var g=d,h=i;if(g)return g;let j="";for(let a of h){let b=k(a);if(b){if(b.startsWith("/")&&!j){j=b;continue}if(j)return`${j} ${b}`;return b}}return j||"Untitled Session"}catch{return"Untitled Session"}}async function j(a,b){let c=(0,d.Kk)(a,b);if((0,e.existsSync)(c))try{let a,b=(0,e.createReadStream)(c);for await(let c of(0,f.createInterface)({input:b,crlfDelay:1/0}))if(c.trim())try{let b=JSON.parse(c);if("user"===b.type){let c=b.message;if(c?.content){let b="";if("string"==typeof c.content)b=c.content;else if(Array.isArray(c.content)){for(let a of c.content)if("text"===a.type&&a.text){b=a.text;break}}if(b){var g;let c=k(b);c&&!((g=c).startsWith("This session is being continued")||g.startsWith("Caveat: The messages below"))&&g.trim()&&(a=c)}}}}catch{}return a}catch{return}}function k(a){let b=a.replace(/<command-[^>]*>[\s\S]*?<\/command-[^>]*>/g,"");return(b=b.replace(/<local-command-[^>]*>[\s\S]*?<\/local-command-[^>]*>/g,"")).trim()}},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=22709));module.exports=c})();
|