@surething/cockpit 1.0.245 → 1.0.247
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 -3
- package/.next-prod/build-manifest.json +3 -3
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/react-loadable-manifest.json +2 -2
- package/.next-prod/routes-manifest.json +8 -8
- package/.next-prod/server/app/_global-error/page.js +3 -3
- package/.next-prod/server/app/_global-error/page.js.nft.json +1 -1
- 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.js.nft.json +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 +1 -1
- package/.next-prod/server/app/api/agent/test/route.js +1 -1
- package/.next-prod/server/app/api/agent/test/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/bash/route.js +1 -1
- package/.next-prod/server/app/api/bash/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +2 -2
- package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +2 -2
- package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js +1 -1
- package/.next-prod/server/app/api/chat/pty-input/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/commands/route.js +1 -1
- package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/comments/route.js +1 -1
- package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/columns/route.js +2 -2
- package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/connect/route.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/export/route.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/query/route.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
- package/.next-prod/server/app/api/deepseek/credentials/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/extension/version/route.js +1 -1
- package/.next-prod/server/app/api/extension/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/file/route.js +1 -1
- package/.next-prod/server/app/api/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/blame/route.js +1 -1
- package/.next-prod/server/app/api/files/blame/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/copy/route.js +1 -1
- package/.next-prod/server/app/api/files/copy/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/delete/route.js +1 -1
- package/.next-prod/server/app/api/files/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/index/route.js +1 -1
- package/.next-prod/server/app/api/files/index/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/init/route.js +1 -1
- package/.next-prod/server/app/api/files/init/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/paste/route.js +1 -1
- package/.next-prod/server/app/api/files/paste/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/read/route.js +1 -1
- package/.next-prod/server/app/api/files/read/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/recent/route.js +1 -1
- package/.next-prod/server/app/api/files/recent/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/save/route.js +1 -1
- package/.next-prod/server/app/api/files/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/search/route.js +1 -1
- package/.next-prod/server/app/api/files/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/stat/route.js +1 -1
- package/.next-prod/server/app/api/files/stat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/files/text/route.js +1 -1
- package/.next-prod/server/app/api/files/text/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/branches/route.js +1 -1
- package/.next-prod/server/app/api/git/branches/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/commits/route.js +1 -1
- package/.next-prod/server/app/api/git/commits/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/diff/route.js +1 -1
- package/.next-prod/server/app/api/git/diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/discard/route.js +1 -1
- package/.next-prod/server/app/api/git/discard/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/stage/route.js +1 -1
- package/.next-prod/server/app/api/git/stage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/status/route.js +1 -1
- package/.next-prod/server/app/api/git/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/global-state/route.js +1 -1
- package/.next-prod/server/app/api/global-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/health/route.js +1 -1
- package/.next-prod/server/app/api/health/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -1
- package/.next-prod/server/app/api/html-apps/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/html-apps/route.js +1 -1
- package/.next-prod/server/app/api/html-apps/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/load/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/save/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js +1 -1
- package/.next-prod/server/app/api/jupyter/shutdown/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
- package/.next-prod/server/app/api/mysql/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/note/route.js +1 -1
- package/.next-prod/server/app/api/note/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/config/route.js +1 -1
- package/.next-prod/server/app/api/ollama/config/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-settings/route.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-state/route.js +1 -1
- package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projects/route.js +1 -1
- package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/command/route.js +1 -1
- package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/get/route.js +1 -1
- package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/set/route.js +1 -1
- package/.next-prod/server/app/api/redis/set/route.js.nft.json +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.js.nft.json +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.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js +1 -1
- package/.next-prod/server/app/api/review/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/identify/route.js +1 -1
- package/.next-prod/server/app/api/review/identify/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/order/route.js +1 -1
- package/.next-prod/server/app/api/review/order/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/route.js +1 -1
- package/.next-prod/server/app/api/review/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js +1 -1
- package/.next-prod/server/app/api/review/share-info/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/review/users/route.js +1 -1
- package/.next-prod/server/app/api/review/users/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
- package/.next-prod/server/app/api/scheduled-tasks/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/config/route.js +1 -1
- package/.next-prod/server/app/api/services/config/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js.nft.json +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.js.nft.json +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.js.nft.json +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.js.nft.json +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.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/route.js +1 -1
- package/.next-prod/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/settings/route.js +1 -1
- package/.next-prod/server/app/api/settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/content/route.js +1 -1
- package/.next-prod/server/app/api/skills/content/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/skills/route.js +1 -1
- package/.next-prod/server/app/api/skills/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/diff/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/snapshots/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js.nft.json +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.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/version/route.js +1 -1
- package/.next-prod/server/app/api/version/route.js.nft.json +1 -1
- package/.next-prod/server/app/apps/[...path]/route.js +1 -0
- package/.next-prod/server/app/apps/[...path]/route.js.nft.json +1 -0
- package/.next-prod/server/app/apps/[...path]/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/favicon.ico/route.js +1 -1
- package/.next-prod/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next-prod/server/app/m/page.js +2 -2
- package/.next-prod/server/app/m/page.js.nft.json +1 -1
- 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/manifest.webmanifest/route.js.nft.json +1 -1
- package/.next-prod/server/app/page.js +2 -2
- package/.next-prod/server/app/page.js.nft.json +1 -1
- 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.js.nft.json +1 -1
- 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.js.nft.json +1 -1
- package/.next-prod/server/app/review/[id]/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +3 -3
- package/.next-prod/server/chunks/1813.js +1 -1
- package/.next-prod/server/chunks/4848.js +10 -6
- package/.next-prod/server/chunks/4916.js +206 -15
- package/.next-prod/server/chunks/{3282.js → 6023.js} +2 -2
- package/.next-prod/server/chunks/6038.js +1 -1
- package/.next-prod/server/chunks/9658.js +217 -26
- 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/{PlTlBBOBl0rKPGTdXqONe → CQYkjM0s2vhvvRjWjJ865}/_buildManifest.js +1 -1
- package/.next-prod/static/chunks/{1332-5e141e2acf28015a.js → 1332-91582e67c3634f37.js} +1 -1
- package/.next-prod/static/chunks/{9779.7a4ff1aee2a02f63.js → 2160.e38d781fd5c4cde0.js} +1 -1
- package/.next-prod/static/chunks/{2443-e80dab81d8fc10ab.js → 4304-408f5bddd7583676.js} +2 -2
- package/.next-prod/static/chunks/{4523.aaab4b1bd81167d4.js → 4523.3f277a24fbcfde6d.js} +1 -1
- package/.next-prod/static/chunks/6784-59c6418d36cf5a13.js +0 -0
- package/.next-prod/static/chunks/8010-75928e3e1e85c88e.js +25 -0
- package/.next-prod/static/chunks/{9530-cb2a4490ee7128d8.js → 9530-7b59ce2b030911c6.js} +210 -19
- package/.next-prod/static/chunks/app/_global-error/page-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/agent/test/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/stop/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/dev/spans/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/current-branch/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/health/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/load/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/save/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/config/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/push/public-key/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/push/subscribe/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/apps/[...path]/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/{layout-f34cd2c3e09fc25f.js → layout-c33e42d8bc9d4b27.js} +1 -1
- package/.next-prod/static/chunks/app/m/page-03365a5db8980b50.js +1 -0
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/app/{page-a9db2a83c07440f4.js → page-972d36c0519a910e.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-a9db2a83c07440f4.js → page-972d36c0519a910e.js} +1 -1
- package/.next-prod/static/chunks/app/review/[id]/page-c9716ea0049cc328.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-51252a3b116b8135.js +1 -0
- package/.next-prod/static/chunks/webpack-fb9d282647d95d0a.js +1 -0
- package/.next-prod/trace +14 -14
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/{api/preview → apps}/[...path]/route.ts +3 -3
- package/.next-prod/types/routes.d.ts +2 -2
- package/.next-prod/types/validator.ts +9 -9
- package/apps/file-viewer/app.jsx +411 -0
- package/apps/file-viewer/index.html +76 -0
- package/dist/{chunk-GOOVG5NZ.mjs → chunk-7WPYQYA6.mjs} +43 -1
- package/dist/httpApi.mjs +1 -1
- package/dist/scheduledTasks.mjs +10 -6
- package/dist/{server-SVZ344NE.mjs → server-MCN5AIEU.mjs} +3 -1
- package/dist/wsServer.mjs +2 -2
- package/package.json +7 -3
- package/public/html-lib/fonts/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
- package/public/html-lib/fonts/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
- package/public/html-lib/fonts/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- package/public/html-lib/fonts/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
- package/public/html-lib/fonts/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
- package/public/html-lib/fonts/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- package/public/html-lib/json-viewer.js +91 -0
- package/public/html-lib/markdown.css +419 -0
- package/public/html-lib/markdown.js +415 -0
- package/public/html-lib/pdf-viewer.css +444 -0
- package/public/html-lib/pdf-viewer.js +123 -0
- package/public/html-lib/theme.css +2 -0
- package/.next-prod/server/app/api/preview/[...path]/route.js +0 -1
- package/.next-prod/server/app/api/preview/[...path]/route.js.nft.json +0 -1
- package/.next-prod/server/app/api/preview/[...path]/route_client-reference-manifest.js +0 -1
- package/.next-prod/static/chunks/6784-0122b1622ba5c509.js +0 -0
- package/.next-prod/static/chunks/8010-2f5cec4469580ed9.js +0 -25
- package/.next-prod/static/chunks/app/_global-error/page-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/load/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/save/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/config/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/preview/[...path]/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/m/page-4e8c9751c7ef8397.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/app/review/[id]/page-0c5d03d65758c7dc.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-e255a9d1bcc8de59.js +0 -1
- package/.next-prod/static/chunks/webpack-01274185cb710e57.js +0 -1
- /package/.next-prod/static/{PlTlBBOBl0rKPGTdXqONe → CQYkjM0s2vhvvRjWjJ865}/_ssgManifest.js +0 -0
package/.next-prod/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-webpack","duration":
|
|
1
|
+
[{"name":"run-webpack","duration":21481072,"timestamp":163274806,"id":14,"parentId":1,"tags":{},"startTime":1784658602865,"traceId":"f4da1684655164ba"},{"name":"run-typescript","duration":20707078,"timestamp":184767136,"id":1661,"parentId":1,"tags":{},"startTime":1784658624357,"traceId":"f4da1684655164ba"},{"name":"static-check","duration":1252461,"timestamp":205519706,"id":1664,"parentId":1,"tags":{},"startTime":1784658645110,"traceId":"f4da1684655164ba"},{"name":"static-generation","duration":7101681,"timestamp":206933698,"id":1950,"parentId":1,"tags":{},"startTime":1784658646524,"traceId":"f4da1684655164ba"},{"name":"collect-build-traces","duration":22011351,"timestamp":206775091,"id":1947,"parentId":1,"tags":{},"startTime":1784658646365,"traceId":"f4da1684655164ba"},{"name":"telemetry-flush","duration":61,"timestamp":228791317,"id":1959,"parentId":1,"tags":{},"startTime":1784658668382,"traceId":"f4da1684655164ba"},{"name":"next-build","duration":65709995,"timestamp":163081395,"id":1,"tags":{"buildMode":"default","version":"16.2.6","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1784658602672,"traceId":"f4da1684655164ba"}]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// File: /home/runner/work/cockpit/cockpit/src/app/
|
|
2
|
-
import * as entry from '
|
|
1
|
+
// File: /home/runner/work/cockpit/cockpit/src/app/apps/[...path]/route.ts
|
|
2
|
+
import * as entry from '../../../../../src/app/apps/[...path]/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
5
5
|
import type { InstantConfigForTypeCheckInternal } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
6
|
|
|
7
|
-
type TEntry = typeof import('
|
|
7
|
+
type TEntry = typeof import('../../../../../src/app/apps/[...path]/route.js')
|
|
8
8
|
|
|
9
9
|
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
10
|
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
@@ -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/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/html-apps" | "/api/html-apps/[id]" | "/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/config" | "/api/ollama/models" | "/api/ollama/start" | "/api/open-cursor" | "/api/open-vscode" | "/api/pick-folder" | "/api/pinned-sessions" | "/api/
|
|
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/html-apps" | "/api/html-apps/[id]" | "/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/config" | "/api/ollama/models" | "/api/ollama/start" | "/api/open-cursor" | "/api/open-vscode" | "/api/pick-folder" | "/api/pinned-sessions" | "/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" | "/apps/[...path]"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -90,7 +90,6 @@ interface ParamMap {
|
|
|
90
90
|
"/api/open-vscode": {}
|
|
91
91
|
"/api/pick-folder": {}
|
|
92
92
|
"/api/pinned-sessions": {}
|
|
93
|
-
"/api/preview/[...path]": { "path": string[]; }
|
|
94
93
|
"/api/project-settings": {}
|
|
95
94
|
"/api/project-state": {}
|
|
96
95
|
"/api/projectGraph/affected": {}
|
|
@@ -144,6 +143,7 @@ interface ParamMap {
|
|
|
144
143
|
"/api/terminal/env": {}
|
|
145
144
|
"/api/terminal/history": {}
|
|
146
145
|
"/api/version": {}
|
|
146
|
+
"/apps/[...path]": { "path": string[]; }
|
|
147
147
|
"/m": {}
|
|
148
148
|
"/project": {}
|
|
149
149
|
"/review/[id]": { "id": string; }
|
|
@@ -785,15 +785,6 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
785
785
|
type __Unused = __Check
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
-
// Validate ../../src/app/api/preview/[...path]/route.ts
|
|
789
|
-
{
|
|
790
|
-
type __IsExpected<Specific extends RouteHandlerConfig<"/api/preview/[...path]">> = Specific
|
|
791
|
-
const handler = {} as typeof import("../../src/app/api/preview/[...path]/route.js")
|
|
792
|
-
type __Check = __IsExpected<typeof handler>
|
|
793
|
-
// @ts-ignore
|
|
794
|
-
type __Unused = __Check
|
|
795
|
-
}
|
|
796
|
-
|
|
797
788
|
// Validate ../../src/app/api/project-settings/route.ts
|
|
798
789
|
{
|
|
799
790
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/project-settings">> = Specific
|
|
@@ -1271,6 +1262,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
1271
1262
|
type __Unused = __Check
|
|
1272
1263
|
}
|
|
1273
1264
|
|
|
1265
|
+
// Validate ../../src/app/apps/[...path]/route.ts
|
|
1266
|
+
{
|
|
1267
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/apps/[...path]">> = Specific
|
|
1268
|
+
const handler = {} as typeof import("../../src/app/apps/[...path]/route.js")
|
|
1269
|
+
type __Check = __IsExpected<typeof handler>
|
|
1270
|
+
// @ts-ignore
|
|
1271
|
+
type __Unused = __Check
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
1274
|
|
|
1275
1275
|
|
|
1276
1276
|
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* file-viewer — preview a local file (markdown / json / image / pdf).
|
|
3
|
+
*
|
|
4
|
+
* Built-in, but written against the PUBLIC contract only, so it doubles as the
|
|
5
|
+
* reference app (see ~/.cockpit/skills/html/SKILL.md):
|
|
6
|
+
* - all data goes through cockpit.bash — no privileged endpoints
|
|
7
|
+
* - libs come from /html-lib (same-origin, offline)
|
|
8
|
+
* - theming is the `cockpit-theme` meta, handled by the SDK
|
|
9
|
+
* Opened as /apps/builtin/file-viewer/index.html?file=<absolute path>.
|
|
10
|
+
*/
|
|
11
|
+
// React/ReactDOM come from the /html-lib script tags in index.html; `cockpit`
|
|
12
|
+
// is the SDK injected by the server.
|
|
13
|
+
/* global React, ReactDOM, cockpit */
|
|
14
|
+
const { useState, useEffect, useRef, useCallback } = React;
|
|
15
|
+
|
|
16
|
+
/** Inline an image up to this size as a data URL; refuse beyond it. */
|
|
17
|
+
const MAX_INLINE_BYTES = 8 * 1024 * 1024;
|
|
18
|
+
|
|
19
|
+
// ---------------------------------------------------------------- bash layer
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Single-quote a value for safe interpolation into a bash command string.
|
|
23
|
+
* Everything is literal inside '...', so only the quote itself needs escaping:
|
|
24
|
+
* close, insert an escaped quote, reopen.
|
|
25
|
+
*/
|
|
26
|
+
const sh = (v) => "'" + String(v).replace(/'/g, "'\\''") + "'";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Run one foreground command and return stdout, collapsing BOTH failure classes
|
|
30
|
+
* into a thrown Error:
|
|
31
|
+
* - cockpit.bash() throws -> spawn / infrastructure failure
|
|
32
|
+
* - resolves with exitCode !== 0 -> the command ran and failed; surface its
|
|
33
|
+
* stderr rather than a generic message
|
|
34
|
+
*/
|
|
35
|
+
async function bash(command) {
|
|
36
|
+
let res;
|
|
37
|
+
try {
|
|
38
|
+
res = await cockpit.bash(command);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
throw new Error('cannot run command: ' + ((e && e.message) || e));
|
|
41
|
+
}
|
|
42
|
+
if (res.exitCode !== 0) {
|
|
43
|
+
const detail = (res.stderr || res.stdout || '').trim();
|
|
44
|
+
throw new Error(detail || ('command exited with ' + res.exitCode));
|
|
45
|
+
}
|
|
46
|
+
return res.stdout;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const readText = (absPath) => bash('cat -- ' + sh(absPath));
|
|
50
|
+
|
|
51
|
+
const fileSize = async (absPath) => {
|
|
52
|
+
const n = parseInt((await bash('wc -c < ' + sh(absPath))).trim(), 10);
|
|
53
|
+
return Number.isFinite(n) ? n : 0;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const IMAGE_MIME = {
|
|
57
|
+
png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg',
|
|
58
|
+
gif: 'image/gif', webp: 'image/webp', svg: 'image/svg+xml',
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** Read a binary file as a data URL, guarding against oversized payloads. */
|
|
62
|
+
async function toDataUrl(absPath) {
|
|
63
|
+
const size = await fileSize(absPath);
|
|
64
|
+
if (size > MAX_INLINE_BYTES) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
'file is ' + (size / 1048576).toFixed(1) + ' MB, over the ' +
|
|
67
|
+
(MAX_INLINE_BYTES / 1048576) + ' MB inline limit'
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
const mime = IMAGE_MIME[extOf(absPath)] || 'application/octet-stream';
|
|
71
|
+
// base64 reads stdin on both macOS and GNU coreutils; the output is wrapped,
|
|
72
|
+
// so strip whitespace before building the URL.
|
|
73
|
+
const b64 = (await bash('base64 < ' + sh(absPath))).replace(/\s+/g, '');
|
|
74
|
+
return 'data:' + mime + ';base64,' + b64;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ------------------------------------------------------------------- helpers
|
|
78
|
+
|
|
79
|
+
const extOf = (p) => {
|
|
80
|
+
const m = /\.([a-z0-9]+)$/i.exec(p || '');
|
|
81
|
+
return m ? m[1].toLowerCase() : '';
|
|
82
|
+
};
|
|
83
|
+
const dirOf = (p) => p.replace(/\\/g, '/').replace(/\/[^/]*$/, '') || '/';
|
|
84
|
+
const baseOf = (p) => p.split(/[/\\]/).pop();
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Lazily load a script (+ optional css) once; resolves when ready.
|
|
88
|
+
* A rejected promise is evicted from the cache so a later attempt can retry —
|
|
89
|
+
* caching the rejection would make one transient failure permanent for the page.
|
|
90
|
+
*/
|
|
91
|
+
const loadedLibs = {};
|
|
92
|
+
function loadLib(src, cssHref) {
|
|
93
|
+
if (loadedLibs[src]) return loadedLibs[src];
|
|
94
|
+
loadedLibs[src] = new Promise((resolve, reject) => {
|
|
95
|
+
if (cssHref) {
|
|
96
|
+
const css = document.createElement('link');
|
|
97
|
+
css.rel = 'stylesheet';
|
|
98
|
+
css.href = cssHref;
|
|
99
|
+
document.head.appendChild(css);
|
|
100
|
+
}
|
|
101
|
+
const s = document.createElement('script');
|
|
102
|
+
s.src = src;
|
|
103
|
+
s.onload = resolve;
|
|
104
|
+
s.onerror = () => reject(new Error('failed to load ' + src));
|
|
105
|
+
document.head.appendChild(s);
|
|
106
|
+
}).catch((err) => {
|
|
107
|
+
delete loadedLibs[src];
|
|
108
|
+
throw err;
|
|
109
|
+
});
|
|
110
|
+
return loadedLibs[src];
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Run an async task on mount; expose {data, error, loading}. */
|
|
114
|
+
function useAsync(task, deps) {
|
|
115
|
+
const [state, setState] = useState({ loading: true, data: null, error: null });
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
let alive = true;
|
|
118
|
+
setState({ loading: true, data: null, error: null });
|
|
119
|
+
task()
|
|
120
|
+
.then((data) => { if (alive) setState({ loading: false, data, error: null }); })
|
|
121
|
+
.catch((err) => { if (alive) setState({ loading: false, data: null, error: err.message }); });
|
|
122
|
+
return () => { alive = false; };
|
|
123
|
+
}, deps);
|
|
124
|
+
return state;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// ------------------------------------------------------------------- widgets
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Mount one of the /html-lib widgets into a plain DOM node. They ship their own
|
|
131
|
+
* React copy, so they must own the node outright — hence the ref + imperative
|
|
132
|
+
* render/unmount instead of rendering them as children.
|
|
133
|
+
*
|
|
134
|
+
* mount() is guarded symmetrically with unmount(): a throw from inside a passive
|
|
135
|
+
* effect has no error boundary above it, so it would tear down the whole React
|
|
136
|
+
* root and blank the page. On mount failure no cleanup is registered — there is
|
|
137
|
+
* nothing mounted to tear down.
|
|
138
|
+
*/
|
|
139
|
+
function useWidget(ref, ready, mount, unmount, deps, onError) {
|
|
140
|
+
useEffect(() => {
|
|
141
|
+
if (!ready || !ref.current) return;
|
|
142
|
+
const el = ref.current;
|
|
143
|
+
try {
|
|
144
|
+
mount(el);
|
|
145
|
+
} catch (e) {
|
|
146
|
+
if (onError) onError(e.message || String(e));
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
return () => { try { unmount(el); } catch { /* already gone */ } };
|
|
150
|
+
}, deps);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// --------------------------------------------------------------------- views
|
|
154
|
+
|
|
155
|
+
function Status({ kind, children }) {
|
|
156
|
+
return <div className={'viewer-status ' + kind}>{children}</div>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Markdown. Relative image references are rewritten to their /apps/local/ URL
|
|
161
|
+
* BEFORE render: rewriting the source (rather than patching <img> afterwards)
|
|
162
|
+
* survives the widget's re-render on theme flips.
|
|
163
|
+
*
|
|
164
|
+
* URLs, not data: URLs. The markdown renderer runs every src through
|
|
165
|
+
* react-markdown's defaultUrlTransform, which drops any protocol outside
|
|
166
|
+
* http/https/mailto/xmpp — a `data:` image is silently stripped to no src at
|
|
167
|
+
* all, in BOTH the `` and raw-HTML `<img>` forms. Referencing the file's
|
|
168
|
+
* own address in the local namespace also avoids base64-ing every image through
|
|
169
|
+
* the WS bridge, so there is no size cap and no per-image shell spawn.
|
|
170
|
+
*/
|
|
171
|
+
const MD_IMAGE_RE = /!\[[^\]]*\]\(([^)\s]+)/g;
|
|
172
|
+
const HTML_IMAGE_RE = /<img\b[^>]*\bsrc=["']([^"']+)["']/gi;
|
|
173
|
+
|
|
174
|
+
/** Absolute local path → its /apps/local URL (per-segment encoded). */
|
|
175
|
+
const toLocalUrl = (absPath) =>
|
|
176
|
+
'/apps/local/' +
|
|
177
|
+
absPath
|
|
178
|
+
.replace(/\\/g, '/')
|
|
179
|
+
.split('/')
|
|
180
|
+
.map(encodeURIComponent)
|
|
181
|
+
.join('/')
|
|
182
|
+
.replace(/^\//, '');
|
|
183
|
+
|
|
184
|
+
function resolveRelativeImages(text, dir) {
|
|
185
|
+
const isRemote = (s) => /^(https?:|data:|\/)/i.test(s);
|
|
186
|
+
const found = [];
|
|
187
|
+
const collect = (re) => {
|
|
188
|
+
let m;
|
|
189
|
+
re.lastIndex = 0;
|
|
190
|
+
while ((m = re.exec(text)) !== null) {
|
|
191
|
+
const src = m[1];
|
|
192
|
+
if (src && !isRemote(src) && found.indexOf(src) < 0) found.push(src);
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
collect(MD_IMAGE_RE);
|
|
196
|
+
collect(HTML_IMAGE_RE);
|
|
197
|
+
if (!found.length) return text;
|
|
198
|
+
|
|
199
|
+
const urls = new Map(found.map((src) => {
|
|
200
|
+
let rel = src;
|
|
201
|
+
try { rel = decodeURIComponent(src); } catch { /* keep as written */ }
|
|
202
|
+
return [src, toLocalUrl(dir + '/' + rel.replace(/^\.\//, ''))];
|
|
203
|
+
}));
|
|
204
|
+
|
|
205
|
+
// Substitute INSIDE each image match only. A document-wide substring replace
|
|
206
|
+
// would corrupt any path that contains another as a substring (`img.png` is
|
|
207
|
+
// inside `sub/img.png`) and would also rewrite prose or code blocks that
|
|
208
|
+
// merely mention the filename.
|
|
209
|
+
const substitute = (match, src) =>
|
|
210
|
+
urls.has(src) ? match.replace(src, urls.get(src)) : match;
|
|
211
|
+
return text
|
|
212
|
+
.replace(MD_IMAGE_RE, substitute)
|
|
213
|
+
.replace(HTML_IMAGE_RE, substitute);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function MarkdownView({ file }) {
|
|
217
|
+
const ref = useRef(null);
|
|
218
|
+
const [mountError, setMountError] = useState(null);
|
|
219
|
+
const { loading, data, error } = useAsync(async () => {
|
|
220
|
+
await loadLib('/html-lib/markdown.js', '/html-lib/markdown.css');
|
|
221
|
+
return resolveRelativeImages(await readText(file), dirOf(file));
|
|
222
|
+
}, [file]);
|
|
223
|
+
|
|
224
|
+
useWidget(
|
|
225
|
+
ref, !loading && data != null,
|
|
226
|
+
(el) => window.CockpitMarkdown.render(el, data),
|
|
227
|
+
(el) => window.CockpitMarkdown.unmount(el),
|
|
228
|
+
[loading, data],
|
|
229
|
+
setMountError
|
|
230
|
+
);
|
|
231
|
+
|
|
232
|
+
if (loading) return <Status kind="loading">loading…</Status>;
|
|
233
|
+
const failure = error || mountError;
|
|
234
|
+
if (failure) return <Status kind="error">{'file-viewer: ' + file + '\n\n' + failure}</Status>;
|
|
235
|
+
return <div className="md-view" ref={ref} />;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* JSON. Default is the readable widget; the top-right button swaps to the raw
|
|
240
|
+
* pretty-printed source rendered as a markdown fence. The two widgets are
|
|
241
|
+
* separate React copies, so the inactive one is unmounted before the other
|
|
242
|
+
* takes the node.
|
|
243
|
+
*/
|
|
244
|
+
function JsonView({ file }) {
|
|
245
|
+
const ref = useRef(null);
|
|
246
|
+
const t = useLang();
|
|
247
|
+
const [mode, setMode] = useState('readable');
|
|
248
|
+
// WHICH mode's lib is loaded — deliberately not a bare `libReady` boolean.
|
|
249
|
+
// `setLibReady(false)` would only be *scheduled* by this effect, so the
|
|
250
|
+
// useWidget effect running later in the SAME commit would still observe the
|
|
251
|
+
// previous mode's `true` and mount a widget whose bundle is not loaded yet.
|
|
252
|
+
// Comparing `loadedMode === mode` cannot go stale that way: on a mode switch
|
|
253
|
+
// the two differ until the new bundle actually resolves.
|
|
254
|
+
const [loadedMode, setLoadedMode] = useState(null);
|
|
255
|
+
const [libError, setLibError] = useState(null);
|
|
256
|
+
const { loading, data, error } = useAsync(() => readText(file), [file]);
|
|
257
|
+
|
|
258
|
+
useEffect(() => {
|
|
259
|
+
const lib = mode === 'readable'
|
|
260
|
+
? loadLib('/html-lib/json-viewer.js')
|
|
261
|
+
: loadLib('/html-lib/markdown.js', '/html-lib/markdown.css');
|
|
262
|
+
let alive = true;
|
|
263
|
+
setLibError(null);
|
|
264
|
+
lib
|
|
265
|
+
.then(() => { if (alive) setLoadedMode(mode); })
|
|
266
|
+
.catch((e) => { if (alive) setLibError(e.message); });
|
|
267
|
+
return () => { alive = false; };
|
|
268
|
+
}, [mode]);
|
|
269
|
+
|
|
270
|
+
useWidget(
|
|
271
|
+
ref, loadedMode === mode && !loading && data != null,
|
|
272
|
+
(el) => {
|
|
273
|
+
if (mode === 'readable') window.CockpitJson.render(el, data);
|
|
274
|
+
else window.CockpitMarkdown.render(el, jsonToMarkdown(data), { toc: false });
|
|
275
|
+
},
|
|
276
|
+
(el) => {
|
|
277
|
+
if (mode === 'readable') window.CockpitJson.unmount(el);
|
|
278
|
+
else window.CockpitMarkdown.unmount(el);
|
|
279
|
+
},
|
|
280
|
+
[loadedMode, mode, loading, data],
|
|
281
|
+
setLibError
|
|
282
|
+
);
|
|
283
|
+
|
|
284
|
+
const toggle = useCallback(
|
|
285
|
+
() => setMode((m) => (m === 'readable' ? 'raw' : 'readable')),
|
|
286
|
+
[]
|
|
287
|
+
);
|
|
288
|
+
|
|
289
|
+
if (loading) return <Status kind="loading">loading…</Status>;
|
|
290
|
+
if (error) return <Status kind="error">{'file-viewer: ' + file + '\n\n' + error}</Status>;
|
|
291
|
+
if (libError) return <Status kind="error">{'file-viewer: ' + libError}</Status>;
|
|
292
|
+
return (
|
|
293
|
+
<>
|
|
294
|
+
<button type="button" className="json-toggle" onClick={toggle}>
|
|
295
|
+
{mode === 'readable' ? t('raw') : t('readable')}
|
|
296
|
+
</button>
|
|
297
|
+
<div className={mode === 'readable' ? 'json-view' : 'md-view'} ref={ref} />
|
|
298
|
+
</>
|
|
299
|
+
);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function jsonToMarkdown(text) {
|
|
303
|
+
let body = text;
|
|
304
|
+
try { body = JSON.stringify(JSON.parse(text), null, 2); } catch { /* show raw */ }
|
|
305
|
+
// The fence must be longer than any backtick run inside the content.
|
|
306
|
+
let fence = '```';
|
|
307
|
+
const runs = body.match(/`+/g);
|
|
308
|
+
if (runs) {
|
|
309
|
+
const longest = Math.max.apply(null, runs.map((s) => s.length));
|
|
310
|
+
while (fence.length <= longest) fence += '`';
|
|
311
|
+
}
|
|
312
|
+
return fence + 'json\n' + body + '\n' + fence;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function ImageView({ file }) {
|
|
316
|
+
const [natural, setNatural] = useState(false);
|
|
317
|
+
const { loading, data, error } = useAsync(() => toDataUrl(file), [file]);
|
|
318
|
+
|
|
319
|
+
if (loading) return <Status kind="loading">loading…</Status>;
|
|
320
|
+
if (error) return <Status kind="error">{'file-viewer: ' + file + '\n\n' + error}</Status>;
|
|
321
|
+
return (
|
|
322
|
+
<div
|
|
323
|
+
className={'img-view' + (natural ? ' natural' : '')}
|
|
324
|
+
onClick={() => setNatural((n) => !n)}
|
|
325
|
+
>
|
|
326
|
+
<img src={data} alt={baseOf(file)} />
|
|
327
|
+
</div>
|
|
328
|
+
);
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
function PdfView({ file }) {
|
|
332
|
+
const ref = useRef(null);
|
|
333
|
+
const [ready, setReady] = useState(false);
|
|
334
|
+
const [error, setError] = useState(null);
|
|
335
|
+
|
|
336
|
+
useEffect(() => {
|
|
337
|
+
let alive = true;
|
|
338
|
+
loadLib('/html-lib/pdf-viewer.js', '/html-lib/pdf-viewer.css')
|
|
339
|
+
.then(() => { if (alive) setReady(true); })
|
|
340
|
+
.catch((e) => { if (alive) setError(e.message); });
|
|
341
|
+
return () => { alive = false; };
|
|
342
|
+
}, []);
|
|
343
|
+
|
|
344
|
+
useWidget(
|
|
345
|
+
ref, ready,
|
|
346
|
+
(el) => window.CockpitPdf.render(el, { cwd: dirOf(file), path: baseOf(file) }),
|
|
347
|
+
(el) => window.CockpitPdf.unmount(el),
|
|
348
|
+
[ready, file],
|
|
349
|
+
setError
|
|
350
|
+
);
|
|
351
|
+
|
|
352
|
+
if (error) return <Status kind="error">{'file-viewer: ' + error}</Status>;
|
|
353
|
+
return <div className="pdf-view" ref={ref} />;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// ------------------------------------------------------------------ language
|
|
357
|
+
|
|
358
|
+
// App-local dictionary. The app only PERCEIVES the language, it does not import
|
|
359
|
+
// the host's i18n — same as any user app would.
|
|
360
|
+
const DICT = {
|
|
361
|
+
zh: { readable: '可读', raw: '原文' },
|
|
362
|
+
en: { readable: 'Readable', raw: 'Raw' },
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* `cockpit.lang` is the host's language, recorded on <html lang> by the SDK.
|
|
367
|
+
* Reading it (rather than listening for the one-shot broadcast) is what makes
|
|
368
|
+
* this correct regardless of when the app happens to start. Falls back to the
|
|
369
|
+
* browser's language outside Cockpit.
|
|
370
|
+
*/
|
|
371
|
+
const pickLang = () => {
|
|
372
|
+
const host = (typeof cockpit !== 'undefined' && cockpit.lang) || '';
|
|
373
|
+
const lang = host || navigator.language;
|
|
374
|
+
return lang.indexOf('zh') === 0 ? 'zh' : 'en';
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
/** Re-render on host language change; the broadcast still arrives live. */
|
|
378
|
+
function useLang() {
|
|
379
|
+
const [lang, setLang] = useState(pickLang);
|
|
380
|
+
useEffect(() => {
|
|
381
|
+
const onMessage = (e) => {
|
|
382
|
+
if (e.data?.type === 'cockpit:language-change') setLang(pickLang());
|
|
383
|
+
};
|
|
384
|
+
window.addEventListener('message', onMessage);
|
|
385
|
+
return () => window.removeEventListener('message', onMessage);
|
|
386
|
+
}, []);
|
|
387
|
+
return (key) => DICT[lang][key];
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// ----------------------------------------------------------------------- app
|
|
391
|
+
|
|
392
|
+
const IMAGE_EXTS = ['png', 'jpg', 'jpeg', 'gif', 'webp', 'svg'];
|
|
393
|
+
|
|
394
|
+
function App() {
|
|
395
|
+
const file = new URLSearchParams(location.search).get('file');
|
|
396
|
+
useEffect(() => {
|
|
397
|
+
if (file) document.title = baseOf(file) || 'File Viewer';
|
|
398
|
+
}, [file]);
|
|
399
|
+
|
|
400
|
+
if (!file) {
|
|
401
|
+
return <Status kind="error">file-viewer: missing ?file=<absolute path></Status>;
|
|
402
|
+
}
|
|
403
|
+
const ext = extOf(file);
|
|
404
|
+
if (ext === 'md') return <MarkdownView file={file} />;
|
|
405
|
+
if (ext === 'json') return <JsonView file={file} />;
|
|
406
|
+
if (ext === 'pdf') return <PdfView file={file} />;
|
|
407
|
+
if (IMAGE_EXTS.indexOf(ext) >= 0) return <ImageView file={file} />;
|
|
408
|
+
return <Status kind="error">{'file-viewer: unsupported file type .' + ext + '\n' + file}</Status>;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
ReactDOM.createRoot(document.getElementById('root')).render(<App />);
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>File Viewer</title>
|
|
7
|
+
<meta name="cockpit-name" content="file-viewer">
|
|
8
|
+
<meta name="description" content="Preview local files: markdown (with TOC), json, images, pdf">
|
|
9
|
+
<meta name="cockpit-icon" content="📄">
|
|
10
|
+
<!-- Opt into the SDK's theme handling: follows the Cockpit host, falls back to
|
|
11
|
+
the OS outside it, and mounts the top-right light/dark toggle. -->
|
|
12
|
+
<meta name="cockpit-theme" content="auto">
|
|
13
|
+
<link rel="stylesheet" href="/html-lib/theme.css">
|
|
14
|
+
<style>
|
|
15
|
+
/* ---- Markdown view: CockpitMarkdown widget (TocSidebar + scroll pane) owns
|
|
16
|
+
its own scroll container ---- */
|
|
17
|
+
.md-view { position: fixed; inset: 0; }
|
|
18
|
+
.md-view .cockpit-md { padding: 1.5rem; }
|
|
19
|
+
/* ---- JSON readable view (CockpitJson): pre-like themed container ---- */
|
|
20
|
+
.json-view {
|
|
21
|
+
position: fixed; inset: 0; overflow: auto;
|
|
22
|
+
padding: 1rem 1.5rem;
|
|
23
|
+
font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.5;
|
|
24
|
+
white-space: pre-wrap; word-break: break-word;
|
|
25
|
+
}
|
|
26
|
+
/* right: 48px clears the SDK's own theme toggle, which sits at right: 10px. */
|
|
27
|
+
.json-toggle {
|
|
28
|
+
position: fixed; top: 10px; right: 48px; z-index: 10;
|
|
29
|
+
padding: 3px 10px;
|
|
30
|
+
border: 1px solid var(--border); border-radius: 8px;
|
|
31
|
+
background: var(--card); color: var(--muted-foreground);
|
|
32
|
+
cursor: pointer; font-size: 12px; line-height: 1.5;
|
|
33
|
+
font-family: var(--font-sans);
|
|
34
|
+
}
|
|
35
|
+
.json-toggle:hover { color: var(--foreground); }
|
|
36
|
+
.viewer-status {
|
|
37
|
+
margin: 2rem auto; max-width: 640px; padding: 1rem 1.25rem;
|
|
38
|
+
border: 1px solid var(--border); border-radius: var(--radius);
|
|
39
|
+
background: var(--card); font-family: var(--font-mono);
|
|
40
|
+
white-space: pre-wrap; word-break: break-all;
|
|
41
|
+
}
|
|
42
|
+
.viewer-status.error { color: var(--destructive); }
|
|
43
|
+
.viewer-status.loading { color: var(--muted-foreground); }
|
|
44
|
+
/* ---- Image view: centered on the themed background, fit <-> 100% toggle ---- */
|
|
45
|
+
.img-view {
|
|
46
|
+
min-height: 100vh; display: flex; align-items: center; justify-content: center;
|
|
47
|
+
padding: 12px;
|
|
48
|
+
}
|
|
49
|
+
.img-view img {
|
|
50
|
+
max-width: 100%; max-height: calc(100vh - 24px);
|
|
51
|
+
cursor: zoom-in; border-radius: 2px;
|
|
52
|
+
box-shadow: 0 2px 12px hsl(var(--slate-12) / 0.15);
|
|
53
|
+
}
|
|
54
|
+
.img-view.natural { display: block; overflow: auto; }
|
|
55
|
+
.img-view.natural img { max-width: none; max-height: none; cursor: zoom-out; }
|
|
56
|
+
/* ---- PDF view: CockpitPdf widget, full viewport ---- */
|
|
57
|
+
.pdf-view { position: fixed; inset: 0; }
|
|
58
|
+
</style>
|
|
59
|
+
</head>
|
|
60
|
+
<body>
|
|
61
|
+
<div id="root"></div>
|
|
62
|
+
<script src="/html-lib/react.production.min.js"></script>
|
|
63
|
+
<script src="/html-lib/react-dom.production.min.js"></script>
|
|
64
|
+
<script src="/html-lib/babel.min.js"></script>
|
|
65
|
+
<script>
|
|
66
|
+
(async () => {
|
|
67
|
+
const src = await (await fetch('./app.jsx')).text();
|
|
68
|
+
// Must be the classic runtime: the default (automatic) injects an
|
|
69
|
+
// `import react/jsx-runtime`, which throws "Cannot use import statement
|
|
70
|
+
// outside a module" once this is appended as a plain script.
|
|
71
|
+
const { code } = Babel.transform(src, { presets: [['react', { runtime: 'classic' }]] });
|
|
72
|
+
const s = document.createElement('script'); s.textContent = code; document.body.appendChild(s);
|
|
73
|
+
})();
|
|
74
|
+
</script>
|
|
75
|
+
</body>
|
|
76
|
+
</html>
|
|
@@ -1313,6 +1313,47 @@ function mergeTitles(base, patch) {
|
|
|
1313
1313
|
return out;
|
|
1314
1314
|
}
|
|
1315
1315
|
|
|
1316
|
+
// packages/feature/console/src/server/api/services-config.ts
|
|
1317
|
+
var deriveCommandName = (command) => {
|
|
1318
|
+
const firstWord = command.trim().split(/\s+/)[0] ?? "";
|
|
1319
|
+
const url = firstWord.match(/^[a-z][a-z0-9+.-]*:\/\/([^/?#]+)/i);
|
|
1320
|
+
return sanitizeName(url ? url[1] : firstWord) || "command";
|
|
1321
|
+
};
|
|
1322
|
+
var sanitizeName = (name) => name.replace(/[^a-zA-Z0-9_-]/g, "").slice(0, 32);
|
|
1323
|
+
var normalizeCustomCommands = (raw) => {
|
|
1324
|
+
if (!Array.isArray(raw)) return [];
|
|
1325
|
+
const taken = /* @__PURE__ */ new Set();
|
|
1326
|
+
const uniqueName = (name) => {
|
|
1327
|
+
if (!taken.has(name)) {
|
|
1328
|
+
taken.add(name);
|
|
1329
|
+
return name;
|
|
1330
|
+
}
|
|
1331
|
+
let n = 2;
|
|
1332
|
+
while (taken.has(`${name}-${n}`)) n++;
|
|
1333
|
+
taken.add(`${name}-${n}`);
|
|
1334
|
+
return `${name}-${n}`;
|
|
1335
|
+
};
|
|
1336
|
+
const out = [];
|
|
1337
|
+
for (const entry of raw) {
|
|
1338
|
+
if (typeof entry === "string") {
|
|
1339
|
+
const command = entry.trim();
|
|
1340
|
+
if (!command) continue;
|
|
1341
|
+
out.push({ name: uniqueName(deriveCommandName(command)), command });
|
|
1342
|
+
continue;
|
|
1343
|
+
}
|
|
1344
|
+
if (entry && typeof entry === "object") {
|
|
1345
|
+
const { name, command } = entry;
|
|
1346
|
+
if (typeof command !== "string" || !command.trim()) continue;
|
|
1347
|
+
const cleaned = typeof name === "string" ? sanitizeName(name.trim()) : "";
|
|
1348
|
+
out.push({
|
|
1349
|
+
name: uniqueName(cleaned || deriveCommandName(command)),
|
|
1350
|
+
command
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
return out;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1316
1357
|
export {
|
|
1317
1358
|
registerBrowser,
|
|
1318
1359
|
unregisterBrowser,
|
|
@@ -1359,5 +1400,6 @@ export {
|
|
|
1359
1400
|
readHead,
|
|
1360
1401
|
readAround,
|
|
1361
1402
|
grepOutput,
|
|
1362
|
-
readBubbleTitles
|
|
1403
|
+
readBubbleTitles,
|
|
1404
|
+
normalizeCustomCommands
|
|
1363
1405
|
};
|