@surething/cockpit 1.0.241 → 1.0.243
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 +3 -2
- package/.next-prod/build-manifest.json +3 -3
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/react-loadable-manifest.json +11 -11
- package/.next-prod/routes-manifest.json +6 -0
- package/.next-prod/server/app/_global-error/page.js +2 -2
- package/.next-prod/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/_global-error.html +1 -1
- 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.js +2 -2
- 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 +1 -1
- package/.next-prod/server/app/api/agent/test/route.js +1 -1
- package/.next-prod/server/app/api/bash/route.js +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +2 -2
- package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +2 -2
- package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js +1 -1
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js +1 -1
- package/.next-prod/server/app/api/commands/route.js +1 -1
- package/.next-prod/server/app/api/comments/route.js +1 -1
- package/.next-prod/server/app/api/db/columns/route.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js +2 -2
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js +2 -2
- package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -0
- package/.next-prod/server/app/api/deepseek/credentials/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/deepseek/credentials/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/dev/spans/route.js +1 -1
- package/.next-prod/server/app/api/extension/version/route.js +1 -1
- package/.next-prod/server/app/api/file/route.js +1 -1
- package/.next-prod/server/app/api/files/blame/route.js +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
- package/.next-prod/server/app/api/files/copy/route.js +1 -1
- package/.next-prod/server/app/api/files/delete/route.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js +1 -1
- package/.next-prod/server/app/api/files/index/route.js +1 -1
- package/.next-prod/server/app/api/files/init/route.js +1 -1
- package/.next-prod/server/app/api/files/paste/route.js +1 -1
- package/.next-prod/server/app/api/files/read/route.js +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js +1 -1
- package/.next-prod/server/app/api/files/recent/route.js +1 -1
- package/.next-prod/server/app/api/files/save/route.js +1 -1
- package/.next-prod/server/app/api/files/search/route.js +1 -1
- package/.next-prod/server/app/api/files/stat/route.js +1 -1
- package/.next-prod/server/app/api/files/text/route.js +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/branches/route.js +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/commits/route.js +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
- package/.next-prod/server/app/api/git/diff/route.js +1 -1
- package/.next-prod/server/app/api/git/discard/route.js +1 -1
- package/.next-prod/server/app/api/git/stage/route.js +1 -1
- package/.next-prod/server/app/api/git/status/route.js +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js +1 -1
- package/.next-prod/server/app/api/global-state/route.js +2 -2
- package/.next-prod/server/app/api/health/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
- package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
- package/.next-prod/server/app/api/note/route.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
- package/.next-prod/server/app/api/preview/[...path]/route.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js +1 -1
- package/.next-prod/server/app/api/project-state/route.js +2 -2
- package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
- package/.next-prod/server/app/api/projects/route.js +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
- package/.next-prod/server/app/api/redis/command/route.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/redis/get/route.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js +1 -1
- package/.next-prod/server/app/api/redis/set/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/comments/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/replies/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js +1 -1
- package/.next-prod/server/app/api/review/identify/route.js +1 -1
- package/.next-prod/server/app/api/review/order/route.js +1 -1
- package/.next-prod/server/app/api/review/route.js +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js +1 -1
- package/.next-prod/server/app/api/review/users/route.js +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js +3 -3
- package/.next-prod/server/app/api/services/config/route.js +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
- package/.next-prod/server/app/api/sessions/route.js +1 -1
- package/.next-prod/server/app/api/settings/route.js +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
- package/.next-prod/server/app/api/skills/content/route.js +1 -1
- package/.next-prod/server/app/api/skills/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/route.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js +1 -1
- package/.next-prod/server/app/api/version/route.js +1 -1
- package/.next-prod/server/app/favicon.ico/route.js +1 -1
- package/.next-prod/server/app/m/page.js +2 -2
- package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/manifest.webmanifest/route.js +2 -2
- package/.next-prod/server/app/page.js +2 -2
- package/.next-prod/server/app/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/project/page.js +2 -2
- package/.next-prod/server/app/project/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/review/[id]/page.js +2 -2
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +3 -2
- package/.next-prod/server/chunks/2939.js +1 -1
- package/.next-prod/server/chunks/304.js +3 -3
- package/.next-prod/server/chunks/6955.js +1 -1
- package/.next-prod/server/chunks/8916.js +1 -1
- package/.next-prod/server/chunks/9658.js +16 -16
- package/.next-prod/server/chunks/9830.js +1 -1
- package/.next-prod/server/chunks/9989.js +1 -1
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/middleware-react-loadable-manifest.js +1 -1
- package/.next-prod/server/pages/404.html +2 -2
- package/.next-prod/server/pages/500.html +1 -1
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/chunks/1871-560f59face6cdf95.js +25 -0
- package/.next-prod/static/chunks/{2501.8a795c737a86ac2f.js → 2501.4e65b56602faa956.js} +1 -1
- package/.next-prod/static/chunks/{3304.540e84c28c47b48b.js → 3304.16305e84f4ff6598.js} +1 -1
- package/.next-prod/static/chunks/{4523.a6c0a4fb0a46d0bb.js → 4523.aaab4b1bd81167d4.js} +1 -1
- package/.next-prod/static/chunks/{4678.9870fc2e3d7d1e5d.js → 4678.867dfae26694be02.js} +1 -1
- package/.next-prod/static/chunks/{6729.582a7ca4e74b0aea.js → 6729.77a5381ac8f5c9ae.js} +1 -1
- package/.next-prod/static/chunks/{7799.ada4812ac0884dcc.js → 7799.40b047a634f96a24.js} +1 -1
- package/.next-prod/static/chunks/9530-60801ba514d5c607.js +15 -0
- package/.next-prod/static/chunks/app/_global-error/page-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/agent/test/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/stop/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/dev/spans/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/current-branch/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/health/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/load/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/save/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/preview/[...path]/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/push/public-key/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/push/subscribe/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/{layout-fdd40a9f4769a9d2.js → layout-392444ad665c7748.js} +1 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/app/{page-7e283c0e1ba7bf80.js → page-a32d8344284e99cb.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-7e283c0e1ba7bf80.js → page-a32d8344284e99cb.js} +1 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-382e54b2d4e69c9e.js +1 -0
- package/.next-prod/static/chunks/{webpack-798abcb0f340ce75.js → webpack-01274185cb710e57.js} +1 -1
- package/.next-prod/static/uVjxkHKsDvtbJB0cgsKxl/_buildManifest.js +1 -0
- package/.next-prod/trace +13 -13
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/deepseek/credentials/route.ts +351 -0
- package/.next-prod/types/routes.d.ts +2 -1
- package/.next-prod/types/validator.ts +9 -0
- package/dist/{chunk-JDX7Z54G.mjs → chunk-4S76JXBU.mjs} +73 -11
- package/dist/{chunk-44DBCDDK.mjs → chunk-NW4I3U26.mjs} +48 -14
- package/dist/{chunk-TRQ4S2LT.mjs → chunk-V2ZASC2X.mjs} +1 -1
- package/dist/httpApi.mjs +2 -2
- package/dist/scheduledTasks.mjs +11 -5
- package/dist/{server-UDKNFSZE.mjs → server-YK62AFE6.mjs} +2 -2
- package/dist/wsServer.mjs +4 -4
- package/package.json +1 -1
- package/server.mjs +24 -0
- package/.next-prod/static/chunks/5408-e785cb62df051a22.js +0 -25
- package/.next-prod/static/chunks/9530-44f82b2151a66f3c.js +0 -15
- package/.next-prod/static/chunks/app/_global-error/page-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/load/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/save/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/preview/[...path]/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-f265b8a7128b7a1a.js +0 -1
- package/.next-prod/static/x_Nlb9WAVX__4ygoUBUWt/_buildManifest.js +0 -1
- /package/.next-prod/static/{x_Nlb9WAVX__4ygoUBUWt → uVjxkHKsDvtbJB0cgsKxl}/_ssgManifest.js +0 -0
package/.next-prod/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-webpack","duration":
|
|
1
|
+
[{"name":"run-webpack","duration":20511427,"timestamp":570958377,"id":14,"parentId":1,"tags":{},"startTime":1784102547589,"traceId":"3f192422ac08102e"},{"name":"run-typescript","duration":19153285,"timestamp":591480334,"id":1638,"parentId":1,"tags":{},"startTime":1784102568111,"traceId":"3f192422ac08102e"},{"name":"static-check","duration":1221145,"timestamp":610676151,"id":1641,"parentId":1,"tags":{},"startTime":1784102587307,"traceId":"3f192422ac08102e"},{"name":"static-generation","duration":6823093,"timestamp":612037470,"id":1921,"parentId":1,"tags":{},"startTime":1784102588668,"traceId":"3f192422ac08102e"},{"name":"collect-build-traces","duration":21059576,"timestamp":611897879,"id":1918,"parentId":1,"tags":{},"startTime":1784102588529,"traceId":"3f192422ac08102e"},{"name":"telemetry-flush","duration":54,"timestamp":632961945,"id":1930,"parentId":1,"tags":{},"startTime":1784102609593,"traceId":"3f192422ac08102e"},{"name":"next-build","duration":62176828,"timestamp":570785209,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1784102547416,"traceId":"3f192422ac08102e"}]
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
// File: /home/runner/work/cockpit/cockpit/src/app/api/deepseek/credentials/route.ts
|
|
2
|
+
import * as entry from '../../../../../../src/app/api/deepseek/credentials/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
import type { InstantConfigForTypeCheckInternal } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
+
|
|
7
|
+
type TEntry = typeof import('../../../../../../src/app/api/deepseek/credentials/route.js')
|
|
8
|
+
|
|
9
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
11
|
+
: T
|
|
12
|
+
|
|
13
|
+
// Check that the entry is a valid entry
|
|
14
|
+
checkFields<Diff<{
|
|
15
|
+
GET?: Function
|
|
16
|
+
HEAD?: Function
|
|
17
|
+
OPTIONS?: Function
|
|
18
|
+
POST?: Function
|
|
19
|
+
PUT?: Function
|
|
20
|
+
DELETE?: Function
|
|
21
|
+
PATCH?: Function
|
|
22
|
+
config?: {}
|
|
23
|
+
generateStaticParams?: Function
|
|
24
|
+
unstable_instant?: InstantConfigForTypeCheckInternal
|
|
25
|
+
unstable_dynamicStaleTime?: number
|
|
26
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
27
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
28
|
+
dynamicParams?: boolean
|
|
29
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
30
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
31
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
32
|
+
maxDuration?: number
|
|
33
|
+
|
|
34
|
+
}, TEntry, ''>>()
|
|
35
|
+
|
|
36
|
+
type RouteContext = { params: Promise<SegmentParams> }
|
|
37
|
+
// Check the prop type of the entry function
|
|
38
|
+
if ('GET' in entry) {
|
|
39
|
+
checkFields<
|
|
40
|
+
Diff<
|
|
41
|
+
ParamCheck<Request | NextRequest>,
|
|
42
|
+
{
|
|
43
|
+
__tag__: 'GET'
|
|
44
|
+
__param_position__: 'first'
|
|
45
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
46
|
+
},
|
|
47
|
+
'GET'
|
|
48
|
+
>
|
|
49
|
+
>()
|
|
50
|
+
checkFields<
|
|
51
|
+
Diff<
|
|
52
|
+
ParamCheck<RouteContext>,
|
|
53
|
+
{
|
|
54
|
+
__tag__: 'GET'
|
|
55
|
+
__param_position__: 'second'
|
|
56
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
57
|
+
},
|
|
58
|
+
'GET'
|
|
59
|
+
>
|
|
60
|
+
>()
|
|
61
|
+
|
|
62
|
+
checkFields<
|
|
63
|
+
Diff<
|
|
64
|
+
{
|
|
65
|
+
__tag__: 'GET',
|
|
66
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
__tag__: 'GET',
|
|
70
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
71
|
+
},
|
|
72
|
+
'GET'
|
|
73
|
+
>
|
|
74
|
+
>()
|
|
75
|
+
}
|
|
76
|
+
// Check the prop type of the entry function
|
|
77
|
+
if ('HEAD' in entry) {
|
|
78
|
+
checkFields<
|
|
79
|
+
Diff<
|
|
80
|
+
ParamCheck<Request | NextRequest>,
|
|
81
|
+
{
|
|
82
|
+
__tag__: 'HEAD'
|
|
83
|
+
__param_position__: 'first'
|
|
84
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
85
|
+
},
|
|
86
|
+
'HEAD'
|
|
87
|
+
>
|
|
88
|
+
>()
|
|
89
|
+
checkFields<
|
|
90
|
+
Diff<
|
|
91
|
+
ParamCheck<RouteContext>,
|
|
92
|
+
{
|
|
93
|
+
__tag__: 'HEAD'
|
|
94
|
+
__param_position__: 'second'
|
|
95
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
96
|
+
},
|
|
97
|
+
'HEAD'
|
|
98
|
+
>
|
|
99
|
+
>()
|
|
100
|
+
|
|
101
|
+
checkFields<
|
|
102
|
+
Diff<
|
|
103
|
+
{
|
|
104
|
+
__tag__: 'HEAD',
|
|
105
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
__tag__: 'HEAD',
|
|
109
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
110
|
+
},
|
|
111
|
+
'HEAD'
|
|
112
|
+
>
|
|
113
|
+
>()
|
|
114
|
+
}
|
|
115
|
+
// Check the prop type of the entry function
|
|
116
|
+
if ('OPTIONS' in entry) {
|
|
117
|
+
checkFields<
|
|
118
|
+
Diff<
|
|
119
|
+
ParamCheck<Request | NextRequest>,
|
|
120
|
+
{
|
|
121
|
+
__tag__: 'OPTIONS'
|
|
122
|
+
__param_position__: 'first'
|
|
123
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
124
|
+
},
|
|
125
|
+
'OPTIONS'
|
|
126
|
+
>
|
|
127
|
+
>()
|
|
128
|
+
checkFields<
|
|
129
|
+
Diff<
|
|
130
|
+
ParamCheck<RouteContext>,
|
|
131
|
+
{
|
|
132
|
+
__tag__: 'OPTIONS'
|
|
133
|
+
__param_position__: 'second'
|
|
134
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
135
|
+
},
|
|
136
|
+
'OPTIONS'
|
|
137
|
+
>
|
|
138
|
+
>()
|
|
139
|
+
|
|
140
|
+
checkFields<
|
|
141
|
+
Diff<
|
|
142
|
+
{
|
|
143
|
+
__tag__: 'OPTIONS',
|
|
144
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
__tag__: 'OPTIONS',
|
|
148
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
149
|
+
},
|
|
150
|
+
'OPTIONS'
|
|
151
|
+
>
|
|
152
|
+
>()
|
|
153
|
+
}
|
|
154
|
+
// Check the prop type of the entry function
|
|
155
|
+
if ('POST' in entry) {
|
|
156
|
+
checkFields<
|
|
157
|
+
Diff<
|
|
158
|
+
ParamCheck<Request | NextRequest>,
|
|
159
|
+
{
|
|
160
|
+
__tag__: 'POST'
|
|
161
|
+
__param_position__: 'first'
|
|
162
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
163
|
+
},
|
|
164
|
+
'POST'
|
|
165
|
+
>
|
|
166
|
+
>()
|
|
167
|
+
checkFields<
|
|
168
|
+
Diff<
|
|
169
|
+
ParamCheck<RouteContext>,
|
|
170
|
+
{
|
|
171
|
+
__tag__: 'POST'
|
|
172
|
+
__param_position__: 'second'
|
|
173
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
174
|
+
},
|
|
175
|
+
'POST'
|
|
176
|
+
>
|
|
177
|
+
>()
|
|
178
|
+
|
|
179
|
+
checkFields<
|
|
180
|
+
Diff<
|
|
181
|
+
{
|
|
182
|
+
__tag__: 'POST',
|
|
183
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
__tag__: 'POST',
|
|
187
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
188
|
+
},
|
|
189
|
+
'POST'
|
|
190
|
+
>
|
|
191
|
+
>()
|
|
192
|
+
}
|
|
193
|
+
// Check the prop type of the entry function
|
|
194
|
+
if ('PUT' in entry) {
|
|
195
|
+
checkFields<
|
|
196
|
+
Diff<
|
|
197
|
+
ParamCheck<Request | NextRequest>,
|
|
198
|
+
{
|
|
199
|
+
__tag__: 'PUT'
|
|
200
|
+
__param_position__: 'first'
|
|
201
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
202
|
+
},
|
|
203
|
+
'PUT'
|
|
204
|
+
>
|
|
205
|
+
>()
|
|
206
|
+
checkFields<
|
|
207
|
+
Diff<
|
|
208
|
+
ParamCheck<RouteContext>,
|
|
209
|
+
{
|
|
210
|
+
__tag__: 'PUT'
|
|
211
|
+
__param_position__: 'second'
|
|
212
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
213
|
+
},
|
|
214
|
+
'PUT'
|
|
215
|
+
>
|
|
216
|
+
>()
|
|
217
|
+
|
|
218
|
+
checkFields<
|
|
219
|
+
Diff<
|
|
220
|
+
{
|
|
221
|
+
__tag__: 'PUT',
|
|
222
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
__tag__: 'PUT',
|
|
226
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
227
|
+
},
|
|
228
|
+
'PUT'
|
|
229
|
+
>
|
|
230
|
+
>()
|
|
231
|
+
}
|
|
232
|
+
// Check the prop type of the entry function
|
|
233
|
+
if ('DELETE' in entry) {
|
|
234
|
+
checkFields<
|
|
235
|
+
Diff<
|
|
236
|
+
ParamCheck<Request | NextRequest>,
|
|
237
|
+
{
|
|
238
|
+
__tag__: 'DELETE'
|
|
239
|
+
__param_position__: 'first'
|
|
240
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
241
|
+
},
|
|
242
|
+
'DELETE'
|
|
243
|
+
>
|
|
244
|
+
>()
|
|
245
|
+
checkFields<
|
|
246
|
+
Diff<
|
|
247
|
+
ParamCheck<RouteContext>,
|
|
248
|
+
{
|
|
249
|
+
__tag__: 'DELETE'
|
|
250
|
+
__param_position__: 'second'
|
|
251
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
252
|
+
},
|
|
253
|
+
'DELETE'
|
|
254
|
+
>
|
|
255
|
+
>()
|
|
256
|
+
|
|
257
|
+
checkFields<
|
|
258
|
+
Diff<
|
|
259
|
+
{
|
|
260
|
+
__tag__: 'DELETE',
|
|
261
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
__tag__: 'DELETE',
|
|
265
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
266
|
+
},
|
|
267
|
+
'DELETE'
|
|
268
|
+
>
|
|
269
|
+
>()
|
|
270
|
+
}
|
|
271
|
+
// Check the prop type of the entry function
|
|
272
|
+
if ('PATCH' in entry) {
|
|
273
|
+
checkFields<
|
|
274
|
+
Diff<
|
|
275
|
+
ParamCheck<Request | NextRequest>,
|
|
276
|
+
{
|
|
277
|
+
__tag__: 'PATCH'
|
|
278
|
+
__param_position__: 'first'
|
|
279
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
280
|
+
},
|
|
281
|
+
'PATCH'
|
|
282
|
+
>
|
|
283
|
+
>()
|
|
284
|
+
checkFields<
|
|
285
|
+
Diff<
|
|
286
|
+
ParamCheck<RouteContext>,
|
|
287
|
+
{
|
|
288
|
+
__tag__: 'PATCH'
|
|
289
|
+
__param_position__: 'second'
|
|
290
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
291
|
+
},
|
|
292
|
+
'PATCH'
|
|
293
|
+
>
|
|
294
|
+
>()
|
|
295
|
+
|
|
296
|
+
checkFields<
|
|
297
|
+
Diff<
|
|
298
|
+
{
|
|
299
|
+
__tag__: 'PATCH',
|
|
300
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
__tag__: 'PATCH',
|
|
304
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
305
|
+
},
|
|
306
|
+
'PATCH'
|
|
307
|
+
>
|
|
308
|
+
>()
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
312
|
+
if ('generateStaticParams' in entry) {
|
|
313
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
314
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export interface PageProps {
|
|
318
|
+
params?: Promise<SegmentParams>
|
|
319
|
+
searchParams?: Promise<any>
|
|
320
|
+
}
|
|
321
|
+
export interface LayoutProps {
|
|
322
|
+
children?: React.ReactNode
|
|
323
|
+
|
|
324
|
+
params?: Promise<SegmentParams>
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// =============
|
|
328
|
+
// Utility types
|
|
329
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
330
|
+
|
|
331
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
332
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
333
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
334
|
+
|
|
335
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
336
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
337
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
338
|
+
|
|
339
|
+
type ParamCheck<T> = {
|
|
340
|
+
__tag__: string
|
|
341
|
+
__param_position__: string
|
|
342
|
+
__param_type__: T
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
346
|
+
|
|
347
|
+
// https://github.com/sindresorhus/type-fest
|
|
348
|
+
type Numeric = number | bigint
|
|
349
|
+
type Zero = 0 | 0n
|
|
350
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
351
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Do not edit this file manually
|
|
3
3
|
|
|
4
4
|
type AppRoutes = "/" | "/m" | "/project" | "/review/[id]"
|
|
5
|
-
type AppRouteHandlerRoutes = "/api/agent/test" | "/api/bash" | "/api/chat" | "/api/chat/codex" | "/api/chat/deepseek" | "/api/chat/kimi" | "/api/chat/ollama" | "/api/chat/pty-input" | "/api/chat/stop" | "/api/claude-stats" | "/api/commands" | "/api/comments" | "/api/db/columns" | "/api/db/connect" | "/api/db/disconnect" | "/api/db/export" | "/api/db/query" | "/api/db/schemas" | "/api/dev/spans" | "/api/extension/version" | "/api/file" | "/api/files/blame" | "/api/files/clipboard" | "/api/files/copy" | "/api/files/delete" | "/api/files/expanded" | "/api/files/index" | "/api/files/init" | "/api/files/paste" | "/api/files/read" | "/api/files/readdir" | "/api/files/recent" | "/api/files/save" | "/api/files/search" | "/api/files/stat" | "/api/files/text" | "/api/git/branch-diff" | "/api/git/branches" | "/api/git/commit-diff" | "/api/git/commits" | "/api/git/current-branch" | "/api/git/diff" | "/api/git/discard" | "/api/git/stage" | "/api/git/status" | "/api/git/unstage" | "/api/git/worktree" | "/api/global-state" | "/api/health" | "/api/jupyter/load" | "/api/jupyter/save" | "/api/jupyter/shutdown" | "/api/lsp/definition" | "/api/lsp/hover" | "/api/lsp/references" | "/api/lsp/status" | "/api/lsp/warmup" | "/api/mysql/columns" | "/api/mysql/connect" | "/api/mysql/disconnect" | "/api/mysql/export" | "/api/mysql/query" | "/api/mysql/schemas" | "/api/neo4j/connect" | "/api/neo4j/disconnect" | "/api/neo4j/query" | "/api/neo4j/schema" | "/api/note" | "/api/ollama/models" | "/api/ollama/start" | "/api/open-cursor" | "/api/open-vscode" | "/api/pick-folder" | "/api/pinned-sessions" | "/api/preview/[...path]" | "/api/project-settings" | "/api/project-state" | "/api/projectGraph/affected" | "/api/projectGraph/callees" | "/api/projectGraph/callers" | "/api/projectGraph/coedit" | "/api/projectGraph/context" | "/api/projectGraph/file" | "/api/projectGraph/file-functions" | "/api/projectGraph/impact" | "/api/projectGraph/related" | "/api/projectGraph/risk" | "/api/projectGraph/search" | "/api/projects" | "/api/push/public-key" | "/api/push/subscribe" | "/api/push/unsubscribe" | "/api/redis/command" | "/api/redis/connect" | "/api/redis/delete" | "/api/redis/disconnect" | "/api/redis/get" | "/api/redis/keys" | "/api/redis/set" | "/api/review" | "/api/review/[id]" | "/api/review/[id]/comments" | "/api/review/[id]/replies" | "/api/review/identify" | "/api/review/order" | "/api/review/share-info" | "/api/review/users" | "/api/scheduled-tasks" | "/api/services/config" | "/api/services/scripts" | "/api/session-by-path" | "/api/session/[sessionId]/fork" | "/api/session/[sessionId]/history" | "/api/sessions" | "/api/sessions/projects" | "/api/sessions/projects/[encodedPath]" | "/api/settings" | "/api/skills" | "/api/skills/[id]" | "/api/skills/content" | "/api/snapshots" | "/api/snapshots/diff" | "/api/terminal/aliases" | "/api/terminal/autocomplete" | "/api/terminal/bubble-order" | "/api/terminal/env" | "/api/terminal/history" | "/api/version"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/agent/test" | "/api/bash" | "/api/chat" | "/api/chat/codex" | "/api/chat/deepseek" | "/api/chat/kimi" | "/api/chat/ollama" | "/api/chat/pty-input" | "/api/chat/stop" | "/api/claude-stats" | "/api/commands" | "/api/comments" | "/api/db/columns" | "/api/db/connect" | "/api/db/disconnect" | "/api/db/export" | "/api/db/query" | "/api/db/schemas" | "/api/deepseek/credentials" | "/api/dev/spans" | "/api/extension/version" | "/api/file" | "/api/files/blame" | "/api/files/clipboard" | "/api/files/copy" | "/api/files/delete" | "/api/files/expanded" | "/api/files/index" | "/api/files/init" | "/api/files/paste" | "/api/files/read" | "/api/files/readdir" | "/api/files/recent" | "/api/files/save" | "/api/files/search" | "/api/files/stat" | "/api/files/text" | "/api/git/branch-diff" | "/api/git/branches" | "/api/git/commit-diff" | "/api/git/commits" | "/api/git/current-branch" | "/api/git/diff" | "/api/git/discard" | "/api/git/stage" | "/api/git/status" | "/api/git/unstage" | "/api/git/worktree" | "/api/global-state" | "/api/health" | "/api/jupyter/load" | "/api/jupyter/save" | "/api/jupyter/shutdown" | "/api/lsp/definition" | "/api/lsp/hover" | "/api/lsp/references" | "/api/lsp/status" | "/api/lsp/warmup" | "/api/mysql/columns" | "/api/mysql/connect" | "/api/mysql/disconnect" | "/api/mysql/export" | "/api/mysql/query" | "/api/mysql/schemas" | "/api/neo4j/connect" | "/api/neo4j/disconnect" | "/api/neo4j/query" | "/api/neo4j/schema" | "/api/note" | "/api/ollama/models" | "/api/ollama/start" | "/api/open-cursor" | "/api/open-vscode" | "/api/pick-folder" | "/api/pinned-sessions" | "/api/preview/[...path]" | "/api/project-settings" | "/api/project-state" | "/api/projectGraph/affected" | "/api/projectGraph/callees" | "/api/projectGraph/callers" | "/api/projectGraph/coedit" | "/api/projectGraph/context" | "/api/projectGraph/file" | "/api/projectGraph/file-functions" | "/api/projectGraph/impact" | "/api/projectGraph/related" | "/api/projectGraph/risk" | "/api/projectGraph/search" | "/api/projects" | "/api/push/public-key" | "/api/push/subscribe" | "/api/push/unsubscribe" | "/api/redis/command" | "/api/redis/connect" | "/api/redis/delete" | "/api/redis/disconnect" | "/api/redis/get" | "/api/redis/keys" | "/api/redis/set" | "/api/review" | "/api/review/[id]" | "/api/review/[id]/comments" | "/api/review/[id]/replies" | "/api/review/identify" | "/api/review/order" | "/api/review/share-info" | "/api/review/users" | "/api/scheduled-tasks" | "/api/services/config" | "/api/services/scripts" | "/api/session-by-path" | "/api/session/[sessionId]/fork" | "/api/session/[sessionId]/history" | "/api/sessions" | "/api/sessions/projects" | "/api/sessions/projects/[encodedPath]" | "/api/settings" | "/api/skills" | "/api/skills/[id]" | "/api/skills/content" | "/api/snapshots" | "/api/snapshots/diff" | "/api/terminal/aliases" | "/api/terminal/autocomplete" | "/api/terminal/bubble-order" | "/api/terminal/env" | "/api/terminal/history" | "/api/version"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -30,6 +30,7 @@ interface ParamMap {
|
|
|
30
30
|
"/api/db/export": {}
|
|
31
31
|
"/api/db/query": {}
|
|
32
32
|
"/api/db/schemas": {}
|
|
33
|
+
"/api/deepseek/credentials": {}
|
|
33
34
|
"/api/dev/spans": {}
|
|
34
35
|
"/api/extension/version": {}
|
|
35
36
|
"/api/file": {}
|
|
@@ -245,6 +245,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
245
245
|
type __Unused = __Check
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
+
// Validate ../../src/app/api/deepseek/credentials/route.ts
|
|
249
|
+
{
|
|
250
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/deepseek/credentials">> = Specific
|
|
251
|
+
const handler = {} as typeof import("../../src/app/api/deepseek/credentials/route.js")
|
|
252
|
+
type __Check = __IsExpected<typeof handler>
|
|
253
|
+
// @ts-ignore
|
|
254
|
+
type __Unused = __Check
|
|
255
|
+
}
|
|
256
|
+
|
|
248
257
|
// Validate ../../src/app/api/dev/spans/route.ts
|
|
249
258
|
{
|
|
250
259
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/dev/spans">> = Specific
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
readJsonFile,
|
|
11
11
|
withFileLock,
|
|
12
12
|
writeJsonFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NW4I3U26.mjs";
|
|
14
14
|
|
|
15
15
|
// packages/feature/agent/src/server/state/globalState.ts
|
|
16
|
-
import { createReadStream, existsSync } from "fs";
|
|
16
|
+
import { createReadStream, existsSync, statSync } from "fs";
|
|
17
17
|
import { createInterface } from "readline";
|
|
18
18
|
import { basename } from "path";
|
|
19
19
|
|
|
@@ -254,28 +254,66 @@ async function getLastUserMessage(cwd, sessionId) {
|
|
|
254
254
|
var SUMMARY_THRESHOLD = 10;
|
|
255
255
|
var SUMMARY_HEAD = 5;
|
|
256
256
|
var SUMMARY_TAIL = 5;
|
|
257
|
-
|
|
257
|
+
var UNTITLED_SESSION = "Untitled Session";
|
|
258
|
+
function resolveSessionFile(cwd, sessionId) {
|
|
258
259
|
const claudePath = getClaudeSessionPath(cwd, sessionId);
|
|
259
|
-
if (existsSync(claudePath)) return getClaudeStyleContent
|
|
260
|
+
if (existsSync(claudePath)) return { path: claudePath, read: getClaudeStyleContent };
|
|
260
261
|
const claude2Path = getClaude2SessionPath(cwd, sessionId);
|
|
261
|
-
if (existsSync(claude2Path)) return getClaudeStyleContent
|
|
262
|
+
if (existsSync(claude2Path)) return { path: claude2Path, read: getClaudeStyleContent };
|
|
262
263
|
const ollamaPath = getOllamaSessionPath(cwd, sessionId);
|
|
263
|
-
if (existsSync(ollamaPath)) return getClaudeStyleContent
|
|
264
|
+
if (existsSync(ollamaPath)) return { path: ollamaPath, read: getClaudeStyleContent };
|
|
264
265
|
const codexPath = findCodexSessionPath(sessionId);
|
|
265
266
|
if (codexPath && existsSync(codexPath)) {
|
|
266
|
-
return {
|
|
267
|
+
return {
|
|
268
|
+
path: codexPath,
|
|
269
|
+
read: async (p) => ({ aiTitle: "", summary: "", messages: await getCodexUserMessages(p) })
|
|
270
|
+
};
|
|
267
271
|
}
|
|
268
272
|
const kimiPath = findKimiSessionPath(sessionId);
|
|
269
273
|
if (kimiPath && existsSync(kimiPath)) {
|
|
270
|
-
return {
|
|
274
|
+
return {
|
|
275
|
+
path: kimiPath,
|
|
276
|
+
read: async (p) => ({ aiTitle: "", summary: "", messages: await getKimiUserMessages(p) })
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
return null;
|
|
280
|
+
}
|
|
281
|
+
var CONTENT_CACHE_MAX = 40;
|
|
282
|
+
var contentCache = /* @__PURE__ */ new Map();
|
|
283
|
+
function fileFingerprint(filePath) {
|
|
284
|
+
const st = statSync(filePath);
|
|
285
|
+
return `${st.mtimeMs}-${st.size}`;
|
|
286
|
+
}
|
|
287
|
+
async function getSessionContent(cwd, sessionId) {
|
|
288
|
+
const resolved = resolveSessionFile(cwd, sessionId);
|
|
289
|
+
if (!resolved) return { aiTitle: "", summary: "", messages: [] };
|
|
290
|
+
let fingerprint = "";
|
|
291
|
+
try {
|
|
292
|
+
fingerprint = fileFingerprint(resolved.path);
|
|
293
|
+
const cached = contentCache.get(resolved.path);
|
|
294
|
+
if (cached && cached.fingerprint === fingerprint) {
|
|
295
|
+
contentCache.delete(resolved.path);
|
|
296
|
+
contentCache.set(resolved.path, cached);
|
|
297
|
+
return cached.content;
|
|
298
|
+
}
|
|
299
|
+
} catch {
|
|
271
300
|
}
|
|
272
|
-
|
|
301
|
+
const content = await resolved.read(resolved.path);
|
|
302
|
+
if (fingerprint) {
|
|
303
|
+
contentCache.delete(resolved.path);
|
|
304
|
+
contentCache.set(resolved.path, { fingerprint, content });
|
|
305
|
+
if (contentCache.size > CONTENT_CACHE_MAX) {
|
|
306
|
+
const oldest = contentCache.keys().next().value;
|
|
307
|
+
if (oldest !== void 0) contentCache.delete(oldest);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
return content;
|
|
273
311
|
}
|
|
274
|
-
async function getSessionPreview(cwd, sessionId) {
|
|
312
|
+
async function getSessionPreview(cwd, sessionId, opts) {
|
|
275
313
|
const { aiTitle, summary, messages } = await getSessionContent(cwd, sessionId);
|
|
276
314
|
const title = generateTitle(aiTitle, summary, messages);
|
|
277
315
|
const lastUserMessage = messages[messages.length - 1];
|
|
278
|
-
const searchText = [summary, ...messages].join("\n").toLowerCase();
|
|
316
|
+
const searchText = opts?.includeSearchText ? [summary, ...messages].join("\n").toLowerCase() : "";
|
|
279
317
|
if (messages.length <= SUMMARY_THRESHOLD) {
|
|
280
318
|
return { title, lastUserMessage, firstMessages: messages.map((m) => truncate(m)), lastMessages: [], searchText };
|
|
281
319
|
}
|
|
@@ -304,6 +342,13 @@ async function getGlobalSessionsSnapshot(limit = 15) {
|
|
|
304
342
|
const preview = await getSessionPreview(session.cwd, session.sessionId);
|
|
305
343
|
return {
|
|
306
344
|
...session,
|
|
345
|
+
// Re-derive the title from disk on every read (aiTitle > summary >
|
|
346
|
+
// first message) instead of trusting the value persisted in
|
|
347
|
+
// state.json — that snapshot is only refreshed when a run finishes,
|
|
348
|
+
// so it goes stale whenever the aiTitle lands after completion.
|
|
349
|
+
// Fall back to the persisted title only when the transcript is gone
|
|
350
|
+
// (preview degrades to UNTITLED_SESSION). Mirrors /api/global-state.
|
|
351
|
+
title: preview.title !== UNTITLED_SESSION ? preview.title : session.title ?? preview.title,
|
|
307
352
|
lastUserMessage: preview.lastUserMessage ?? session.lastUserMessage,
|
|
308
353
|
firstMessages: preview.firstMessages,
|
|
309
354
|
lastMessages: preview.lastMessages
|
|
@@ -326,6 +371,20 @@ function isValidUserMessage(text) {
|
|
|
326
371
|
if (!text.trim()) return false;
|
|
327
372
|
return true;
|
|
328
373
|
}
|
|
374
|
+
var SNAPSHOT_TYPE_MARKERS = [
|
|
375
|
+
'"type":"user"',
|
|
376
|
+
'"type": "user"',
|
|
377
|
+
'"type":"summary"',
|
|
378
|
+
'"type": "summary"',
|
|
379
|
+
'"type":"ai-title"',
|
|
380
|
+
'"type": "ai-title"'
|
|
381
|
+
];
|
|
382
|
+
function isSnapshotRelevantLine(line) {
|
|
383
|
+
for (const marker of SNAPSHOT_TYPE_MARKERS) {
|
|
384
|
+
if (line.includes(marker)) return true;
|
|
385
|
+
}
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
329
388
|
async function getClaudeStyleTitle(filePath) {
|
|
330
389
|
try {
|
|
331
390
|
const fileStream = createReadStream(filePath);
|
|
@@ -335,6 +394,7 @@ async function getClaudeStyleTitle(filePath) {
|
|
|
335
394
|
const userMessages = [];
|
|
336
395
|
for await (const line of rl) {
|
|
337
396
|
if (!line.trim()) continue;
|
|
397
|
+
if (!isSnapshotRelevantLine(line)) continue;
|
|
338
398
|
try {
|
|
339
399
|
const entry = JSON.parse(line);
|
|
340
400
|
if (entry.type === "ai-title" && entry.aiTitle) {
|
|
@@ -369,6 +429,7 @@ async function getClaudeStyleUserMessages(filePath) {
|
|
|
369
429
|
const rl = createInterface({ input: fileStream, crlfDelay: Infinity });
|
|
370
430
|
for await (const line of rl) {
|
|
371
431
|
if (!line.trim()) continue;
|
|
432
|
+
if (!isSnapshotRelevantLine(line)) continue;
|
|
372
433
|
try {
|
|
373
434
|
const entry = JSON.parse(line);
|
|
374
435
|
if (entry.type !== "user") continue;
|
|
@@ -406,6 +467,7 @@ async function getClaudeStyleContent(filePath) {
|
|
|
406
467
|
const rl = createInterface({ input: fileStream, crlfDelay: Infinity });
|
|
407
468
|
for await (const line of rl) {
|
|
408
469
|
if (!line.trim()) continue;
|
|
470
|
+
if (!isSnapshotRelevantLine(line)) continue;
|
|
409
471
|
try {
|
|
410
472
|
const entry = JSON.parse(line);
|
|
411
473
|
if (entry.type === "ai-title" && entry.aiTitle) {
|
|
@@ -28644,6 +28644,7 @@ var CLAUDE2_DIR = join4(HOME_DIR, ".claude2");
|
|
|
28644
28644
|
var CLAUDE2_PROJECTS_DIR = join4(CLAUDE2_DIR, "projects");
|
|
28645
28645
|
var DEEPSEEK_DIR = join4(COCKPIT_DIR, "deepseek");
|
|
28646
28646
|
var DEEPSEEK_PROJECTS_DIR = join4(DEEPSEEK_DIR, "projects");
|
|
28647
|
+
var DEEPSEEK_CREDENTIALS_FILE = join4(DEEPSEEK_DIR, "credentials.json");
|
|
28647
28648
|
function encodePath(path) {
|
|
28648
28649
|
return path.replace(/[/.]/g, "-");
|
|
28649
28650
|
}
|
|
@@ -30009,6 +30010,27 @@ var runGitOk = (repoDir, workTree, args2, input) => runGit(repoDir, workTree, ar
|
|
|
30009
30010
|
})
|
|
30010
30011
|
)
|
|
30011
30012
|
);
|
|
30013
|
+
var SYMLINK_PATHSPEC_RE = /beyond a symbolic link/;
|
|
30014
|
+
var stageAdds = (repoDir, cwd, paths) => Effect_exports.gen(function* () {
|
|
30015
|
+
const addArgs = ["add", "-A", "--pathspec-from-file=-", "--pathspec-file-nul"];
|
|
30016
|
+
const batch = yield* runGit(repoDir, cwd, addArgs, paths.map((p) => `:(literal)${p}`).join("\0"));
|
|
30017
|
+
if (batch.code === 0) return;
|
|
30018
|
+
if (!SYMLINK_PATHSPEC_RE.test(batch.stderr)) {
|
|
30019
|
+
return yield* Effect_exports.fail(
|
|
30020
|
+
new AppError({ message: `git add exited ${batch.code}: ${batch.stderr.slice(0, 400)}` })
|
|
30021
|
+
);
|
|
30022
|
+
}
|
|
30023
|
+
for (const p of paths) {
|
|
30024
|
+
const one = yield* runGit(repoDir, cwd, addArgs, `:(literal)${p}`);
|
|
30025
|
+
if (one.code === 0) continue;
|
|
30026
|
+
if (!SYMLINK_PATHSPEC_RE.test(one.stderr)) {
|
|
30027
|
+
return yield* Effect_exports.fail(
|
|
30028
|
+
new AppError({ message: `git add ${p} exited ${one.code}: ${one.stderr.slice(0, 400)}` })
|
|
30029
|
+
);
|
|
30030
|
+
}
|
|
30031
|
+
yield* runGitOk(repoDir, cwd, ["rm", "--cached", "--quiet", "--ignore-unmatch", "--", `:(literal)${p}`]);
|
|
30032
|
+
}
|
|
30033
|
+
});
|
|
30012
30034
|
var gSem = globalThis;
|
|
30013
30035
|
var semaphores = gSem.__cockpitSnapshotSemaphores ?? (gSem.__cockpitSnapshotSemaphores = /* @__PURE__ */ new Map());
|
|
30014
30036
|
var withRepoLock = (repoDir, effect4) => {
|
|
@@ -30164,35 +30186,46 @@ var snapshotOnce = (snapshotsRoot, maxFileBytes, trigger, kind) => Effect_export
|
|
|
30164
30186
|
yield* tripGuard(`${entries2.length} changed files exceeds ${MAX_CHANGED_FILES}`);
|
|
30165
30187
|
return { staged: false };
|
|
30166
30188
|
}
|
|
30167
|
-
const
|
|
30189
|
+
const addPaths = [];
|
|
30190
|
+
const rmPaths = [];
|
|
30191
|
+
for (const e of entries2) {
|
|
30192
|
+
const path = e.slice(3);
|
|
30193
|
+
if (!path) continue;
|
|
30194
|
+
if (e[1] === "D") rmPaths.push(path);
|
|
30195
|
+
else addPaths.push(path);
|
|
30196
|
+
}
|
|
30168
30197
|
const sizes = yield* Effect_exports.all(
|
|
30169
|
-
|
|
30198
|
+
addPaths.map(
|
|
30170
30199
|
(p) => fsTry("stat", () => stat(join5(cwd, p)).then((s) => s.isFile() ? s.size : 0)).pipe(
|
|
30171
|
-
//
|
|
30200
|
+
// Untracked path vanishing between status and stat → size 0.
|
|
30172
30201
|
Effect_exports.orElseSucceed(() => 0)
|
|
30173
30202
|
)
|
|
30174
30203
|
),
|
|
30175
30204
|
{ concurrency: 16 }
|
|
30176
30205
|
);
|
|
30177
|
-
const
|
|
30206
|
+
const includedAdds = [];
|
|
30178
30207
|
let totalBytes = 0;
|
|
30179
|
-
for (let i = 0; i <
|
|
30208
|
+
for (let i = 0; i < addPaths.length; i++) {
|
|
30180
30209
|
if (sizes[i] > maxFileBytes) continue;
|
|
30181
|
-
|
|
30210
|
+
includedAdds.push(addPaths[i]);
|
|
30182
30211
|
totalBytes += sizes[i];
|
|
30183
30212
|
}
|
|
30184
30213
|
if (totalBytes > MAX_TOTAL_BYTES) {
|
|
30185
30214
|
yield* tripGuard(`${Math.round(totalBytes / 1048576)}MB of changes exceeds ${Math.round(MAX_TOTAL_BYTES / 1048576)}MB`);
|
|
30186
30215
|
return { staged: false };
|
|
30187
30216
|
}
|
|
30188
|
-
if (
|
|
30189
|
-
|
|
30190
|
-
|
|
30191
|
-
|
|
30192
|
-
|
|
30193
|
-
|
|
30194
|
-
|
|
30195
|
-
|
|
30217
|
+
if (includedAdds.length === 0 && rmPaths.length === 0) return { staged: false };
|
|
30218
|
+
if (rmPaths.length > 0) {
|
|
30219
|
+
yield* runGitOk(
|
|
30220
|
+
repoDir,
|
|
30221
|
+
cwd,
|
|
30222
|
+
["rm", "--cached", "--quiet", "--ignore-unmatch", "--pathspec-from-file=-", "--pathspec-file-nul"],
|
|
30223
|
+
rmPaths.map((p) => `:(literal)${p}`).join("\0")
|
|
30224
|
+
);
|
|
30225
|
+
}
|
|
30226
|
+
if (includedAdds.length > 0) {
|
|
30227
|
+
yield* stageAdds(repoDir, cwd, includedAdds);
|
|
30228
|
+
}
|
|
30196
30229
|
return { staged: true };
|
|
30197
30230
|
});
|
|
30198
30231
|
return yield* withRepoLock(
|
|
@@ -30527,6 +30560,7 @@ export {
|
|
|
30527
30560
|
REVIEW_SIGNAL_FILE,
|
|
30528
30561
|
CLAUDE2_DIR,
|
|
30529
30562
|
DEEPSEEK_DIR,
|
|
30563
|
+
DEEPSEEK_CREDENTIALS_FILE,
|
|
30530
30564
|
encodePath,
|
|
30531
30565
|
getTerminalHistoryPath,
|
|
30532
30566
|
getTerminalOutputPath,
|