@surething/cockpit 1.0.244 → 1.0.246
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 +7 -5
- 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 +18 -4
- 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 +4 -4
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/.next-prod/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next-prod/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next-prod/server/app/api/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 +1 -1
- 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 +2 -2
- 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 -0
- package/.next-prod/server/app/api/{preview/[...path] → html-apps/[id]}/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/html-apps/[id]/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/html-apps/route.js +1 -0
- package/.next-prod/server/app/api/html-apps/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/html-apps/route_client-reference-manifest.js +1 -0
- 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 +2 -2
- 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/favicon.ico.body +0 -0
- 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 +7 -5
- package/.next-prod/server/chunks/304.js +1 -1
- package/.next-prod/server/chunks/4848.js +291 -3
- package/.next-prod/server/chunks/4916.js +368 -0
- package/.next-prod/server/chunks/{5674.js → 6023.js} +5 -5
- package/.next-prod/server/chunks/6038.js +1 -1
- package/.next-prod/server/chunks/9658.js +379 -12
- 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/D0hP0hbht20IrPe7xUl96/_buildManifest.js +1 -0
- package/.next-prod/static/chunks/{9779.7a4ff1aee2a02f63.js → 2160.e38d781fd5c4cde0.js} +1 -1
- package/.next-prod/static/chunks/{1973-5ba02ae354968836.js → 4304-408f5bddd7583676.js} +3 -3
- package/.next-prod/static/chunks/{7849-7c580c908fe21e9d.js → 4473-6877df387a4a05a5.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-9a02795e0607577c.js +382 -0
- 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-392444ad665c7748.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-a32d8344284e99cb.js → page-972d36c0519a910e.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-a32d8344284e99cb.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/static/css/546386ec7f3b9978.css +1 -0
- package/.next-prod/trace +14 -13
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/{preview/[...path] → html-apps/[id]}/route.ts +3 -3
- package/.next-prod/types/app/api/html-apps/route.ts +351 -0
- package/.next-prod/types/app/apps/[...path]/route.ts +351 -0
- package/.next-prod/types/routes.d.ts +4 -2
- package/.next-prod/types/validator.ts +27 -9
- package/apps/file-viewer/app.jsx +411 -0
- package/apps/file-viewer/index.html +76 -0
- package/dist/{chunk-FMJUH423.mjs → chunk-7WPYQYA6.mjs} +44 -2
- package/dist/{chunk-BFESJMNO.mjs → chunk-BRW4ZEIC.mjs} +1 -0
- package/dist/{chunk-3X4GQZL4.mjs → chunk-RUNUGDPP.mjs} +1 -1
- package/dist/httpApi.mjs +2 -2
- package/dist/scheduledTasks.mjs +295 -2
- package/dist/{server-HKW65PHP.mjs → server-MCN5AIEU.mjs} +4 -2
- package/dist/wsServer.mjs +200 -7
- package/package.json +6 -3
- package/public/html-lib/babel.min.js +2 -0
- 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 +418 -0
- package/public/html-lib/pdf-viewer.css +444 -0
- package/public/html-lib/pdf-viewer.js +123 -0
- package/public/html-lib/react-dom.production.min.js +267 -0
- package/public/html-lib/react.production.min.js +31 -0
- package/public/html-lib/theme.css +101 -0
- package/.next-prod/server/app/api/preview/[...path]/route.js +0 -1
- package/.next-prod/server/app/api/preview/[...path]/route_client-reference-manifest.js +0 -1
- package/.next-prod/static/chunks/1871-4468d75ec99d71fc.js +0 -25
- package/.next-prod/static/chunks/6784-53d80dc3b480cf9a.js +0 -0
- package/.next-prod/static/chunks/9530-08419cb81f88a0e6.js +0 -15
- package/.next-prod/static/chunks/app/_global-error/page-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/pty-input/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/load/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/save/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/jupyter/shutdown/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/config/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/preview/[...path]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/app/m/page-54053828af79704f.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-6d7aa508d9d8bcc3.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-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6d7aa508d9d8bcc3.js +0 -1
- package/.next-prod/static/chunks/webpack-01274185cb710e57.js +0 -1
- package/.next-prod/static/css/1d52d90207f3b441.css +0 -1
- package/.next-prod/static/sMb_F5kg6en8USwL7FYkb/_buildManifest.js +0 -1
- /package/.next-prod/static/{sMb_F5kg6en8USwL7FYkb → D0hP0hbht20IrPe7xUl96}/_ssgManifest.js +0 -0
package/dist/scheduledTasks.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
setRunAbort,
|
|
11
11
|
startRun,
|
|
12
12
|
updateGlobalState
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RUNUGDPP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
AgentError,
|
|
16
16
|
AppRuntime,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
settlePendingRecord,
|
|
38
38
|
withFileLock,
|
|
39
39
|
writeJsonFile
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BRW4ZEIC.mjs";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./chunk-7P6ASYW6.mjs";
|
|
@@ -1152,6 +1152,298 @@ Finally emit [Overall recap: end-to-end interaction verification + total deliver
|
|
|
1152
1152
|
- **Recap over interruption**: one final review > mid-flow breaks
|
|
1153
1153
|
`;
|
|
1154
1154
|
|
|
1155
|
+
// packages/feature/agent/src/server/lib/htmlPrompt.ts
|
|
1156
|
+
var HTML_PROMPT_ZH = `---
|
|
1157
|
+
name: html
|
|
1158
|
+
description: "\u751F\u6210\u53EF\u4EA4\u4E92\u7684\u5C0F\u5E94\u7528\uFF1A\u5185\u7F6E cockpit bash SDK\uFF0C\u6267\u884C\u547D\u4EE4\u53D6/\u6539\u6570\u636E"
|
|
1159
|
+
argument-hint: "\u63CF\u8FF0\u4F60\u60F3\u8981\u7684\u5C0F\u5E94\u7528"
|
|
1160
|
+
---
|
|
1161
|
+
|
|
1162
|
+
# \u751F\u6210 Cockpit \u5C0F\u5E94\u7528
|
|
1163
|
+
|
|
1164
|
+
\u4E00\u4E2A\u80FD\u53D6/\u6539\u6570\u636E\u7684\u5C0F\u5E94\u7528\uFF1A\u9884\u89C8\u65F6\u6CE8\u5165\u4E86\u5168\u5C40 \`window.cockpit\` SDK \u2014\u2014 \u672C\u8D28\u5C31\u662F Bash
|
|
1165
|
+
\u5DE5\u5177\u66B4\u9732\u7ED9\u9875\u9762\uFF0C\u9875\u9762\u6309\u94AE\u80FD \`curl\`\u3001\u8BFB\u5199\u6587\u4EF6\u3001\u8DD1\u811A\u672C\u3002\u7528 \`Write\` \u751F\u6210\u6587\u4EF6\u3002
|
|
1166
|
+
|
|
1167
|
+
**\u9ED8\u8BA4\u7528 React \u5199**\uFF08\u4E0B\u9762\u7684\u672C\u5730\u96F6\u6784\u5EFA\u6808\uFF0Cproductized\u3001AI \u6700\u719F\uFF0C\u9002\u5408\u6709\u72B6\u6001 / \u591A\u89C6\u56FE /
|
|
1168
|
+
\u8868\u5355\uFF09\uFF1B\u53EA\u6709**\u6781\u7B80\u5355\u7684\u5355\u89C6\u56FE\u3001\u6216\u7EAF\u9759\u6001\u4E00\u6B21\u6027\u9875**\u624D\u9000\u56DE\u5355\u6587\u4EF6\u5185\u8054 HTML\u3002\u4E24\u79CD\u6A21\u5F0F\u5171\u7528\u4E0B\u9762
|
|
1169
|
+
\u8FD9\u5957\u5951\u7EA6\u3002
|
|
1170
|
+
|
|
1171
|
+
## \u5951\u7EA6\uFF1Awindow.cockpit\uFF08\u4E24\u6A21\u5F0F\u5171\u7528\uFF0C\u53EA\u6B64\u4E00\u5904\uFF09
|
|
1172
|
+
|
|
1173
|
+
\u9875\u9762\u52A0\u8F7D\u65F6 SDK \u5DF2\u5C31\u7EEA\uFF0C\u65E0\u9700\u5F15\u5165\u4EFB\u4F55\u5E93\uFF1A
|
|
1174
|
+
|
|
1175
|
+
- \`cockpit.cwd: string\` \u2014\u2014 \u5F53\u524D\u6587\u4EF6\u6240\u5728\u76EE\u5F55\uFF0C\u76F8\u5BF9\u8DEF\u5F84\u547D\u4EE4\u9ED8\u8BA4\u5728\u6B64\u6267\u884C\u3002
|
|
1176
|
+
- \`cockpit.bash(command, opts?)\` \u2014\u2014 \u6267\u884C\u4E00\u6761 bash \u547D\u4EE4\uFF08\`command\` \u662F\u6574\u6761 shell \u4E32\uFF09\uFF1A
|
|
1177
|
+
- **\u524D\u53F0**\uFF08\u9ED8\u8BA4\uFF0C\u77ED/\u79BB\u6563\u547D\u4EE4\uFF09\u2192 \`Promise<{ stdout, stderr, exitCode }>\`\uFF0C\`await\` \u540E\u4E00\u6B21\u6027\u62FF\u5168\u90E8\u8F93\u51FA\u3002
|
|
1178
|
+
- **\u540E\u53F0**\uFF08\`opts.background: true\`\uFF0C\u957F/\u5B9E\u65F6\u547D\u4EE4\uFF09\u2192 \`{ kill() }\`\uFF0C\u7ECF\u56DE\u8C03\u6D41\u5F0F\u8F93\u51FA\uFF1A
|
|
1179
|
+
\`opts = { background:true, cwd?, onOutput?, onStderr?, onExit?, onError? }\`\u3002\u5927/\u6301\u7EED\u8F93\u51FA\u5FC5\u987B\u7528\u540E\u53F0\uFF08\u524D\u53F0\u5168\u7F13\u5B58\u5728\u5185\u5B58\uFF09\u3002
|
|
1180
|
+
|
|
1181
|
+
\u5199\u8FD9\u7C7B\u9875\u9762\u5FC5\u987B\u5B88\u7684\u51E0\u6761\uFF1A
|
|
1182
|
+
|
|
1183
|
+
1. **\u6570\u636E\u53EA\u8D70 \`cockpit.bash\`**\uFF08\`curl\` \u53D6\u3001\`curl -X POST\` \u6539\u3001\u6216\u8BFB\u5199\u6587\u4EF6\uFF09\uFF0C**\u7EDD\u4E0D\u7528
|
|
1184
|
+
\`fetch(\u5916\u90E8URL)\`** \u2014\u2014 \u540C\u6E90\u6C99\u7BB1\u4F1A CORS \u62E6\u622A\u3002
|
|
1185
|
+
2. **\u4E24\u7C7B\u5931\u8D25\u90FD\u8981\u5904\u7406**\uFF08\u524D\u53F0\uFF09\uFF1A\`try/catch\` \u6293\u5230\u7684**\u629B\u5F02\u5E38 = spawn/\u57FA\u5EFA\u5931\u8D25**\uFF08\u574F\u8DEF\u5F84\u3001
|
|
1186
|
+
\u8FDE\u63A5\u65AD\uFF09\uFF1B\u6CA1\u629B\u4F46 **\`exitCode !== 0\` = \u547D\u4EE4\u8DD1\u4E86\u4F46\u5931\u8D25**\uFF0C\u5C55\u793A \`stderr\` \u6216 stdout \u91CC\u7684\u9519\u8BEF
|
|
1187
|
+
\u4F53\uFF0C\u522B\u53EA\u5199"\u5931\u8D25"\u3002\u540E\u53F0\u5BF9\u5E94 \`onError\`\uFF08\u57FA\u5EFA\uFF09+ \`onExit\` \u975E\u96F6 \`code\`\uFF08\u547D\u4EE4\uFF09\u3002
|
|
1188
|
+
3. **\`command\` \u662F shell \u4E32**\uFF1A\u52A8\u6001\u503C/\u7528\u6237\u8F93\u5165\u62FC\u8FDB\u53BB\u524D\u5FC5\u987B\u6821\u9A8C\u6216\u8F6C\u4E49\uFF08shell \u5143\u5B57\u7B26\u4F1A\u6CE8\u5165\uFF09\uFF1B
|
|
1189
|
+
\u80FD\u7528\u56FA\u5B9A\u547D\u4EE4\u5C31\u522B\u88F8\u62FC\u3002
|
|
1190
|
+
4. **\u8D44\u6E90\u5F15\u7528**\uFF1A\u540C\u7EA7\u76F8\u5BF9\uFF08\`./app.jsx\`\u3001\`./style.css\`\u3001\u56FE\u7247\uFF09\u548C CDN \u7EDD\u5BF9 URL \u90FD\u80FD\u52A0\u8F7D\uFF1B\u6839
|
|
1191
|
+
\u76F8\u5BF9\uFF08\`/assets/x.css\`\uFF09\u4F1A 404\u3002
|
|
1192
|
+
|
|
1193
|
+
meta \u5934\uFF08\u52A1\u5FC5\u5199\u4E0A\uFF0C\u4F9B HTML \u9762\u677F\u505A\u5361\u7247\u3001console \`/name\` \u6253\u5F00\uFF09\uFF1A
|
|
1194
|
+
|
|
1195
|
+
\`\`\`html
|
|
1196
|
+
<title>\u9875\u9762\u6807\u9898</title>
|
|
1197
|
+
<meta name="cockpit-name" content="short-name"> <!-- /name \u77ED\u540D\uFF0C\u552F\u4E00\u3001\u53EA\u7528\u5B57\u6BCD\u6570\u5B57-_ -->
|
|
1198
|
+
<meta name="description" content="\u4E00\u53E5\u8BDD\u8BF4\u660E">
|
|
1199
|
+
<meta name="cockpit-icon" content="\u{1F50D}"> <!-- emoji \u6216\u56FE\u6807 url\uFF0C\u53EF\u9009 -->
|
|
1200
|
+
<meta name="cockpit-theme" content="auto"> <!-- \u542F\u7528\u53EF\u62D6\u52A8\u7684\u4EAE/\u6697\u5207\u6362\u6309\u94AE\uFF1Bauto=\u9996\u6B21\u8DDF\u968F\u7CFB\u7EDF\uFF0C\u53EF\u586B light/dark -->
|
|
1201
|
+
\`\`\`
|
|
1202
|
+
|
|
1203
|
+
## \u9ED8\u8BA4\uFF1AReact\uFF08\u672C\u5730\u96F6\u6784\u5EFA\u6808\uFF09
|
|
1204
|
+
|
|
1205
|
+
\u5916\u58F3\u56FA\u5B9A\u8FD9\u6837\u5199\uFF0C\u903B\u8F91\u62C6\u5230\u540C\u7EA7 \`./app.jsx\`\uFF1A
|
|
1206
|
+
|
|
1207
|
+
\`\`\`html
|
|
1208
|
+
<div id="root"></div>
|
|
1209
|
+
<script src="/html-lib/react.production.min.js"></script>
|
|
1210
|
+
<script src="/html-lib/react-dom.production.min.js"></script>
|
|
1211
|
+
<script src="/html-lib/babel.min.js"></script>
|
|
1212
|
+
<script>
|
|
1213
|
+
(async () => {
|
|
1214
|
+
const src = await (await fetch('./app.jsx')).text();
|
|
1215
|
+
// \u5FC5\u987B classic runtime\uFF1A\u9ED8\u8BA4 automatic \u4F1A\u6CE8\u5165 import react/jsx-runtime\uFF0C
|
|
1216
|
+
// \u4F5C\u4E3A\u666E\u901A\u811A\u672C\u6CE8\u5165\u4F1A\u62A5 "Cannot use import statement outside a module"
|
|
1217
|
+
const { code } = Babel.transform(src, { presets: [['react', { runtime: 'classic' }]] });
|
|
1218
|
+
const s = document.createElement('script'); s.textContent = code; document.body.appendChild(s);
|
|
1219
|
+
})();
|
|
1220
|
+
</script>
|
|
1221
|
+
\`\`\`
|
|
1222
|
+
|
|
1223
|
+
- \`/html-lib\` \u662F Cockpit \u672C\u5730\u6258\u7BA1\uFF08\u540C\u6E90\u3001\u79BB\u7EBF\u53EF\u7528\uFF0C\u65E0\u9700 CDN\uFF09\u3002
|
|
1224
|
+
- \`app.jsx\` \u7528\u5168\u5C40 \`React\`\uFF08\`const { useState } = React;\`\uFF09\uFF0C\u672B\u5C3E
|
|
1225
|
+
\`ReactDOM.createRoot(document.getElementById('root')).render(<App/>)\`\u3002
|
|
1226
|
+
- \u6837\u5F0F\u9ED8\u8BA4\u5957 **Cockpit \u4E3B\u9898**\uFF1A\`<link rel="stylesheet" href="/html-lib/theme.css">\`\uFF0C\u76F4\u63A5\u7528
|
|
1227
|
+
\u8BED\u4E49\u53D8\u91CF\uFF08\`var(--background)\` / \`--foreground\` / \`--card\` / \`--brand\` / \`--muted-foreground\` /
|
|
1228
|
+
\`--border\` / \`--destructive\`\uFF1B\u534A\u900F\u660E\u7528 \`hsl(var(--green-9) / .12)\`\uFF09\u3002\u4E0A\u9762 meta \u5934\u91CC\u7684
|
|
1229
|
+
\`cockpit-theme\` \u8BA9\u9884\u89C8\u5E26\u4E0A\u4E00\u4E2A\u6D6E\u52A8\u4EAE/\u6697\u5207\u6362\u6309\u94AE\uFF08\u9ED8\u8BA4\u53F3\u4E0A\u89D2\uFF0C\u7528\u6237\u53EF\u62D6\u52A8\u5438\u9644\u5230\u4EFB\u610F\u4E00\u89D2\uFF0C
|
|
1230
|
+
\u6240\u4EE5\u4E0D\u5FC5\u4E3A\u5B83\u5728\u53F3\u4E0A\u89D2\u7559\u7A7A\u4F4D\uFF09\uFF1B**\u9ED8\u8BA4\u8DDF\u968F Cockpit \u5BBF\u4E3B\u4E3B\u9898**\uFF08Cockpit \u5916\u6253\u5F00\u65F6\u6309
|
|
1231
|
+
meta \u7684 auto/light/dark\uFF09\uFF0C\u624B\u52A8\u5207\u6362\u540E**\u6309 app \u8BB0\u4F4F\u9009\u62E9\uFF08\u8DE8\u5237\u65B0\uFF0C\u4F18\u5148\u4E8E\u8DDF\u968F\uFF09**\uFF0C\u4E5F\u53EF\u8C03
|
|
1232
|
+
\`cockpit.toggleTheme()\`\u3002**\u522B\u81EA\u62CD\u8C03\u8272\u677F\u3001\u522B\u4E0A Tailwind**\uFF1Bapp \u7279\u6709\u7EC6\u8282\u518D\u8865\u4E00\u5C0F\u6BB5 \`<style>\`\u3002
|
|
1233
|
+
|
|
1234
|
+
React \u91CC\u53D6\u6570\u540C\u6837\u8D70 \`cockpit.bash\`\uFF1A
|
|
1235
|
+
|
|
1236
|
+
\`\`\`jsx
|
|
1237
|
+
function App() {
|
|
1238
|
+
const [stars, setStars] = React.useState(null);
|
|
1239
|
+
const load = async () => {
|
|
1240
|
+
const { stdout, exitCode } = await cockpit.bash("curl -s https://api.github.com/repos/Surething-io/cockpit");
|
|
1241
|
+
setStars(exitCode === 0 ? JSON.parse(stdout).stargazers_count : '\u51FA\u9519');
|
|
1242
|
+
};
|
|
1243
|
+
return <button onClick={load}>\u2B50 {stars ?? '\u52A0\u8F7D'}</button>;
|
|
1244
|
+
}
|
|
1245
|
+
\`\`\`
|
|
1246
|
+
|
|
1247
|
+
## \u540E\u7AEF\uFF1A\u590D\u6742\u903B\u8F91\u5199\u6210\u811A\u672C\uFF08CGI \u98CE\u683C\uFF0C\u4E24\u6A21\u5F0F\u901A\u7528\uFF09
|
|
1248
|
+
|
|
1249
|
+
\u547D\u4EE4\u5F88\u77ED\u5C31\u5185\u8054\u5728 \`cockpit.bash("...")\`\uFF1B\u903B\u8F91\u590D\u6742\uFF08\u591A\u6B65\u3001\u89E3\u6790\u3001\u5FAA\u73AF\u3001\u8981\u5E93\u3001\u5199\u5E93\uFF09\u65F6\uFF0C\u628A\u540E\u7AEF
|
|
1250
|
+
\u5199\u6210\u540C\u76EE\u5F55**\u811A\u672C\u6587\u4EF6**\uFF0C\`cockpit.bash\` \u8C03\u5B83\u2014\u2014HTML/JSX \u7BA1\u5C55\u793A\uFF0C\u811A\u672C\u5F53\u540E\u7AEF\u5904\u7406\u5668\u3002
|
|
1251
|
+
|
|
1252
|
+
- **\u663E\u5F0F\u89E3\u91CA\u5668**\uFF1A\`cockpit.bash("node ./api.mjs")\` / \`python3 ./api.py\` / \`bash ./api.sh\`
|
|
1253
|
+
\uFF08\u514D \`chmod +x\`\uFF09\uFF1B\`node\`/\`python3\` \u62FF\u4E0D\u51C6\u5C31\u5148 \`command -v\` \u63A2\u6D4B\uFF0C\u9000\u56DE shell\u3002
|
|
1254
|
+
- **\u4F20\u53C2\u9632\u6CE8\u5165**\uFF1A\u7ED3\u6784\u5316\u5165\u53C2\u7528 **base64** \u4F20\uFF08\u524D\u7AEF \`btoa(...)\`\u3001\u811A\u672C
|
|
1255
|
+
\`Buffer.from(arg,'base64')\`\uFF09\uFF0C\u522B\u62FC\u5B57\u7B26\u4E32\uFF1B\u5199\u5E93\u7528**\u53C2\u6570\u5316**\u8BED\u53E5\u3002
|
|
1256
|
+
- \u811A\u672C\u7528 stdout \u8FD4\u56DE JSON\uFF0C\u524D\u7AEF \`JSON.parse\`\u3002\u5148 \`Write\` \u51FA\u811A\u672C\uFF0C\u518D\u5728\u9875\u9762\u8C03\u5B83\u3002
|
|
1257
|
+
|
|
1258
|
+
## \u9000\u56DE\uFF1A\u5355\u6587\u4EF6 HTML\uFF08\u6781\u7B80 / \u7EAF\u9759\u6001\u4E00\u6B21\u6027\u9875\uFF09
|
|
1259
|
+
|
|
1260
|
+
\u4E0D\u9700\u8981\u72B6\u6001\u5C31\u522B\u4E0A React\uFF0C\u76F4\u63A5\u5185\u8054\uFF1B\u53D6\u6570\u4E0E\u9519\u8BEF\u5904\u7406\u540C\u4E0A\u3002
|
|
1261
|
+
|
|
1262
|
+
\u524D\u53F0\uFF08\u70B9\u6309\u94AE\u62C9\u6570\u636E\uFF09\uFF1A
|
|
1263
|
+
|
|
1264
|
+
\`\`\`html
|
|
1265
|
+
<button id="load">\u52A0\u8F7D</button>
|
|
1266
|
+
<pre id="out"></pre>
|
|
1267
|
+
<script>
|
|
1268
|
+
document.getElementById('load').onclick = async () => {
|
|
1269
|
+
try {
|
|
1270
|
+
const { stdout, stderr, exitCode } = await cockpit.bash("curl -s https://api.github.com/repos/Surething-io/cockpit");
|
|
1271
|
+
if (exitCode !== 0) { out.textContent = '\u547D\u4EE4\u5931\u8D25: ' + stderr; return; }
|
|
1272
|
+
out.textContent = '\u2B50 ' + JSON.parse(stdout).stargazers_count;
|
|
1273
|
+
} catch (e) {
|
|
1274
|
+
out.textContent = '\u6267\u884C\u51FA\u9519: ' + e.message; // spawn / \u57FA\u5EFA\u5931\u8D25
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
</script>
|
|
1278
|
+
\`\`\`
|
|
1279
|
+
|
|
1280
|
+
\u540E\u53F0\uFF08\u5B9E\u65F6\u65E5\u5FD7\uFF09\uFF1A
|
|
1281
|
+
|
|
1282
|
+
\`\`\`html
|
|
1283
|
+
<pre id="log"></pre>
|
|
1284
|
+
<script>
|
|
1285
|
+
const box = document.getElementById('log');
|
|
1286
|
+
const h = cockpit.bash("tail -f ./build.log", {
|
|
1287
|
+
background: true,
|
|
1288
|
+
onOutput: c => { box.textContent += c; },
|
|
1289
|
+
onExit: code => { box.textContent += '\\n[\u9000\u51FA ' + code + ']'; },
|
|
1290
|
+
onError: msg => { box.textContent += '\\n[\u9519\u8BEF ' + msg + ']'; },
|
|
1291
|
+
});
|
|
1292
|
+
// \u9700\u8981\u65F6 h.kill()
|
|
1293
|
+
</script>
|
|
1294
|
+
\`\`\`
|
|
1295
|
+
|
|
1296
|
+
\u751F\u6210\u540E\u7528 \`Write\` \u5199\u6210 \`.html\`\uFF0C\u7528\u6237\u70B9\u51FB\u5373\u53EF\u9884\u89C8\u5E76\u4EA4\u4E92\u3002`;
|
|
1297
|
+
var HTML_PROMPT_EN = `---
|
|
1298
|
+
name: html
|
|
1299
|
+
description: "Generate an interactive small app with the built-in cockpit bash SDK to fetch/update data"
|
|
1300
|
+
argument-hint: "describe the small app you want"
|
|
1301
|
+
---
|
|
1302
|
+
|
|
1303
|
+
# Build a Cockpit small app
|
|
1304
|
+
|
|
1305
|
+
A small app that can fetch/update data: the preview injects a global
|
|
1306
|
+
\`window.cockpit\` SDK \u2014 essentially the Bash tool exposed to the page, so buttons can
|
|
1307
|
+
\`curl\`, read/write files, and run scripts. Use \`Write\` to create the file.
|
|
1308
|
+
|
|
1309
|
+
**Default to React** (the local zero-build stack below \u2014 productized, most AI-familiar,
|
|
1310
|
+
ideal for stateful / multi-view / form apps); fall back to single-file inline HTML only
|
|
1311
|
+
for a **trivial single view or a purely static one-off**. Both modes share the one
|
|
1312
|
+
contract below.
|
|
1313
|
+
|
|
1314
|
+
## Contract: window.cockpit (shared by both modes, stated once)
|
|
1315
|
+
|
|
1316
|
+
The SDK is ready on load \u2014 no library to import:
|
|
1317
|
+
|
|
1318
|
+
- \`cockpit.cwd: string\` \u2014 directory of the current file; relative-path commands run here.
|
|
1319
|
+
- \`cockpit.bash(command, opts?)\` \u2014 run one bash command (\`command\` is a raw shell string):
|
|
1320
|
+
- **Foreground** (default, short/discrete) \u2192 \`Promise<{ stdout, stderr, exitCode }>\`; \`await\` for the full output at once.
|
|
1321
|
+
- **Background** (\`opts.background: true\`, long/live) \u2192 \`{ kill() }\`, streaming via callbacks:
|
|
1322
|
+
\`opts = { background:true, cwd?, onOutput?, onStderr?, onExit?, onError? }\`. Use background for large/continuous output (foreground buffers it all in memory).
|
|
1323
|
+
|
|
1324
|
+
Rules every such page must follow:
|
|
1325
|
+
|
|
1326
|
+
1. **Data only through \`cockpit.bash\`** (\`curl\` to read, \`curl -X POST\` to write, or
|
|
1327
|
+
read/write files) \u2014 **never \`fetch(externalURL)\`**: the same-origin sandbox blocks it via CORS.
|
|
1328
|
+
2. **Handle both failure modes** (foreground): a **throw** caught by \`try/catch\` = spawn/infra
|
|
1329
|
+
failure (bad path, dropped connection); no throw but **\`exitCode !== 0\` = the command ran
|
|
1330
|
+
and failed** \u2014 show \`stderr\` or the error body in stdout, don't just say "failed". Background:
|
|
1331
|
+
\`onError\` (infra) + a non-zero \`code\` in \`onExit\` (command).
|
|
1332
|
+
3. **\`command\` is a shell string**: validate or escape any dynamic/user input before
|
|
1333
|
+
interpolating it (shell metacharacters inject); prefer a fixed command.
|
|
1334
|
+
4. **Resource refs**: relative siblings (\`./app.jsx\`, \`./style.css\`, images) and absolute
|
|
1335
|
+
CDN URLs load; root-relative (\`/assets/x.css\`) 404s.
|
|
1336
|
+
|
|
1337
|
+
Meta head (always include \u2014 the HTML panel renders cards from it, the console opens it via \`/name\`):
|
|
1338
|
+
|
|
1339
|
+
\`\`\`html
|
|
1340
|
+
<title>Page title</title>
|
|
1341
|
+
<meta name="cockpit-name" content="short-name"> <!-- unique short name for /name; letters/digits/-_ only -->
|
|
1342
|
+
<meta name="description" content="one line about the page">
|
|
1343
|
+
<meta name="cockpit-icon" content="\u{1F50D}"> <!-- emoji or icon url, optional -->
|
|
1344
|
+
<meta name="cockpit-theme" content="auto"> <!-- enable the draggable light/dark toggle; auto = first load follows the OS, or light/dark -->
|
|
1345
|
+
\`\`\`
|
|
1346
|
+
|
|
1347
|
+
## Default: React (local zero-build stack)
|
|
1348
|
+
|
|
1349
|
+
Use this fixed shell, with the logic in a sibling \`./app.jsx\`:
|
|
1350
|
+
|
|
1351
|
+
\`\`\`html
|
|
1352
|
+
<div id="root"></div>
|
|
1353
|
+
<script src="/html-lib/react.production.min.js"></script>
|
|
1354
|
+
<script src="/html-lib/react-dom.production.min.js"></script>
|
|
1355
|
+
<script src="/html-lib/babel.min.js"></script>
|
|
1356
|
+
<script>
|
|
1357
|
+
(async () => {
|
|
1358
|
+
const src = await (await fetch('./app.jsx')).text();
|
|
1359
|
+
// MUST use classic runtime: the default automatic runtime injects an import of
|
|
1360
|
+
// react/jsx-runtime, which \u2014 appended as a plain script \u2014 throws
|
|
1361
|
+
// "Cannot use import statement outside a module".
|
|
1362
|
+
const { code } = Babel.transform(src, { presets: [['react', { runtime: 'classic' }]] });
|
|
1363
|
+
const s = document.createElement('script'); s.textContent = code; document.body.appendChild(s);
|
|
1364
|
+
})();
|
|
1365
|
+
</script>
|
|
1366
|
+
\`\`\`
|
|
1367
|
+
|
|
1368
|
+
- \`/html-lib\` is hosted locally by Cockpit (same-origin, offline, no CDN).
|
|
1369
|
+
- \`app.jsx\` uses the global \`React\` (\`const { useState } = React;\`) and ends with
|
|
1370
|
+
\`ReactDOM.createRoot(document.getElementById('root')).render(<App/>)\`.
|
|
1371
|
+
- Style with the **Cockpit theme** by default: \`<link rel="stylesheet" href="/html-lib/theme.css">\`,
|
|
1372
|
+
then use the semantic vars (\`var(--background)\` / \`--foreground\` / \`--card\` / \`--brand\` /
|
|
1373
|
+
\`--muted-foreground\` / \`--border\` / \`--destructive\`; translucency via \`hsl(var(--green-9) / .12)\`).
|
|
1374
|
+
The \`cockpit-theme\` meta above gives the preview a floating light/dark toggle (top-right by
|
|
1375
|
+
default, draggable to any corner \u2014 so don't reserve top-right space for it); it **follows the
|
|
1376
|
+
Cockpit host theme by default** (outside Cockpit, the meta's auto/light/dark decides), and a manual
|
|
1377
|
+
toggle is **remembered per app across reloads and overrides the host**, or call \`cockpit.toggleTheme()\`
|
|
1378
|
+
from your own UI. Don't invent a palette or add Tailwind; add a small \`<style>\` for app-specific bits.
|
|
1379
|
+
|
|
1380
|
+
Fetch data from React the same way, via \`cockpit.bash\`:
|
|
1381
|
+
|
|
1382
|
+
\`\`\`jsx
|
|
1383
|
+
function App() {
|
|
1384
|
+
const [stars, setStars] = React.useState(null);
|
|
1385
|
+
const load = async () => {
|
|
1386
|
+
const { stdout, exitCode } = await cockpit.bash("curl -s https://api.github.com/repos/Surething-io/cockpit");
|
|
1387
|
+
setStars(exitCode === 0 ? JSON.parse(stdout).stargazers_count : 'error');
|
|
1388
|
+
};
|
|
1389
|
+
return <button onClick={load}>\u2B50 {stars ?? 'load'}</button>;
|
|
1390
|
+
}
|
|
1391
|
+
\`\`\`
|
|
1392
|
+
|
|
1393
|
+
## Backend: write complex logic as a script (CGI-style, both modes)
|
|
1394
|
+
|
|
1395
|
+
Inline short commands in \`cockpit.bash("...")\`. For complex logic (multi-step, parsing,
|
|
1396
|
+
loops, a library, DB writes), write the backend as a **script file** next to the page and
|
|
1397
|
+
call it \u2014 the HTML/JSX is the frontend, the script is the backend handler.
|
|
1398
|
+
|
|
1399
|
+
- **Explicit interpreter**: \`cockpit.bash("node ./api.mjs")\` / \`python3 ./api.py\` /
|
|
1400
|
+
\`bash ./api.sh\` (avoids \`chmod +x\`); probe \`node\`/\`python3\` with \`command -v\` if unsure,
|
|
1401
|
+
and fall back to shell.
|
|
1402
|
+
- **Pass args safely**: send structured input as **base64** (\`btoa(...)\` on the page,
|
|
1403
|
+
\`Buffer.from(arg,'base64')\` in the script) rather than string-building; use **parameterized**
|
|
1404
|
+
statements for DB writes.
|
|
1405
|
+
- The script returns JSON on stdout; the frontend does \`JSON.parse\`. \`Write\` the script first, then call it.
|
|
1406
|
+
|
|
1407
|
+
## Fallback: single-file HTML (trivial / static one-off)
|
|
1408
|
+
|
|
1409
|
+
No state? Skip React and inline it. Same data/error handling as above.
|
|
1410
|
+
|
|
1411
|
+
Foreground (button fetches data):
|
|
1412
|
+
|
|
1413
|
+
\`\`\`html
|
|
1414
|
+
<button id="load">Load</button>
|
|
1415
|
+
<pre id="out"></pre>
|
|
1416
|
+
<script>
|
|
1417
|
+
document.getElementById('load').onclick = async () => {
|
|
1418
|
+
try {
|
|
1419
|
+
const { stdout, stderr, exitCode } = await cockpit.bash("curl -s https://api.github.com/repos/Surething-io/cockpit");
|
|
1420
|
+
if (exitCode !== 0) { out.textContent = 'command failed: ' + stderr; return; }
|
|
1421
|
+
out.textContent = '\u2B50 ' + JSON.parse(stdout).stargazers_count;
|
|
1422
|
+
} catch (e) {
|
|
1423
|
+
out.textContent = 'exec error: ' + e.message; // spawn / infra failure
|
|
1424
|
+
}
|
|
1425
|
+
};
|
|
1426
|
+
</script>
|
|
1427
|
+
\`\`\`
|
|
1428
|
+
|
|
1429
|
+
Background (live log):
|
|
1430
|
+
|
|
1431
|
+
\`\`\`html
|
|
1432
|
+
<pre id="log"></pre>
|
|
1433
|
+
<script>
|
|
1434
|
+
const box = document.getElementById('log');
|
|
1435
|
+
const h = cockpit.bash("tail -f ./build.log", {
|
|
1436
|
+
background: true,
|
|
1437
|
+
onOutput: c => { box.textContent += c; },
|
|
1438
|
+
onExit: code => { box.textContent += '\\n[exit ' + code + ']'; },
|
|
1439
|
+
onError: msg => { box.textContent += '\\n[error ' + msg + ']'; },
|
|
1440
|
+
});
|
|
1441
|
+
// h.kill() when done
|
|
1442
|
+
</script>
|
|
1443
|
+
\`\`\`
|
|
1444
|
+
|
|
1445
|
+
Write the result to a \`.html\` file with \`Write\`; the user clicks it to preview and interact.`;
|
|
1446
|
+
|
|
1155
1447
|
// packages/feature/agent/src/server/lib/newBranchPrompt.ts
|
|
1156
1448
|
var NEW_BRANCH_LABEL_ZH = "\u9700\u6C42\uFF1A";
|
|
1157
1449
|
var NEW_BRANCH_LABEL_EN = "Intent: ";
|
|
@@ -1689,6 +1981,7 @@ var COMMAND_CONTENT = {
|
|
|
1689
1981
|
fx: { zh: FX_PROMPT_ZH, en: FX_PROMPT_EN },
|
|
1690
1982
|
ex: { zh: EX_PROMPT_ZH, en: EX_PROMPT_EN },
|
|
1691
1983
|
go: { zh: GO_PROMPT_ZH, en: GO_PROMPT_EN },
|
|
1984
|
+
html: { zh: HTML_PROMPT_ZH, en: HTML_PROMPT_EN },
|
|
1692
1985
|
cg: { zh: CG_PROMPT_ZH, en: CG_PROMPT_EN, labelZh: CG_LABEL_ZH, labelEn: CG_LABEL_EN },
|
|
1693
1986
|
cc: { zh: CC_PROMPT_ZH, en: CC_PROMPT_EN, labelZh: CC_LABEL_ZH, labelEn: CC_LABEL_EN },
|
|
1694
1987
|
cr: { zh: CR_PROMPT_ZH, en: CR_PROMPT_EN },
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
killCommand,
|
|
27
27
|
listBrowsers,
|
|
28
28
|
listTerminals,
|
|
29
|
+
normalizeCustomCommands,
|
|
29
30
|
notifyExitListeners,
|
|
30
31
|
notifyOutputListeners,
|
|
31
32
|
readAround,
|
|
@@ -45,12 +46,12 @@ import {
|
|
|
45
46
|
unregisterTerminal,
|
|
46
47
|
updateBrowserWs,
|
|
47
48
|
writeStdinToCommand
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-7WPYQYA6.mjs";
|
|
49
50
|
import {
|
|
50
51
|
createNeo4jDriver,
|
|
51
52
|
runCypherWithDriver,
|
|
52
53
|
serializeValue
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-BRW4ZEIC.mjs";
|
|
54
55
|
import "./chunk-7P6ASYW6.mjs";
|
|
55
56
|
export {
|
|
56
57
|
INTERRUPTED_EXIT_CODE,
|
|
@@ -81,6 +82,7 @@ export {
|
|
|
81
82
|
killCommand,
|
|
82
83
|
listBrowsers,
|
|
83
84
|
listTerminals,
|
|
85
|
+
normalizeCustomCommands,
|
|
84
86
|
notifyExitListeners,
|
|
85
87
|
notifyOutputListeners,
|
|
86
88
|
readAround,
|
package/dist/wsServer.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addRunListener,
|
|
3
3
|
getGlobalSessionsSnapshot,
|
|
4
4
|
getRunSnapshot
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RUNUGDPP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
addExitListener,
|
|
8
8
|
addOutputListener,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
resolvePendingRequest,
|
|
19
19
|
unregisterBrowser,
|
|
20
20
|
writeStdinToCommand
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-7WPYQYA6.mjs";
|
|
22
22
|
import {
|
|
23
23
|
AppError,
|
|
24
24
|
Effect_exports,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
Stream_exports,
|
|
34
34
|
ValidationError,
|
|
35
35
|
WSError
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BRW4ZEIC.mjs";
|
|
37
37
|
import "./chunk-7P6ASYW6.mjs";
|
|
38
38
|
|
|
39
39
|
// src/lib/wsServer.ts
|
|
@@ -665,7 +665,7 @@ var handleJupyter = (conn, bubbleId, cwd) => Effect_exports.gen(function* () {
|
|
|
665
665
|
Effect_exports.annotateLogs("cwd", cwd)
|
|
666
666
|
);
|
|
667
667
|
const { kernelManager } = yield* Effect_exports.tryPromise({
|
|
668
|
-
try: () => import("./server-
|
|
668
|
+
try: () => import("./server-MCN5AIEU.mjs"),
|
|
669
669
|
catch: (cause) => new AppError({
|
|
670
670
|
message: "failed to import kernel manager",
|
|
671
671
|
cause
|
|
@@ -1162,8 +1162,182 @@ var runTerminalHandler = (ws, projectCwd) => {
|
|
|
1162
1162
|
});
|
|
1163
1163
|
};
|
|
1164
1164
|
|
|
1165
|
-
// src/lib/effect/
|
|
1165
|
+
// src/lib/effect/bashStreamHandler.ts
|
|
1166
|
+
import { spawn as spawn4 } from "child_process";
|
|
1167
|
+
|
|
1168
|
+
// src/lib/shell.ts
|
|
1169
|
+
import { existsSync as existsSync3 } from "fs";
|
|
1170
|
+
import { execSync as execSync2, spawn as spawn3 } from "child_process";
|
|
1171
|
+
var bashCache;
|
|
1172
|
+
function resolveBashShell() {
|
|
1173
|
+
if (!isWindows) return getDefaultShell();
|
|
1174
|
+
if (bashCache !== void 0) return bashCache;
|
|
1175
|
+
const envShell = process.env.SHELL;
|
|
1176
|
+
const candidates = [
|
|
1177
|
+
...envShell && /bash(\.exe)?$/i.test(envShell) ? [envShell] : [],
|
|
1178
|
+
"C:\\Program Files\\Git\\bin\\bash.exe",
|
|
1179
|
+
"C:\\Program Files (x86)\\Git\\bin\\bash.exe",
|
|
1180
|
+
...process.env.ProgramFiles ? [`${process.env.ProgramFiles}\\Git\\bin\\bash.exe`] : []
|
|
1181
|
+
];
|
|
1182
|
+
for (const c of candidates) {
|
|
1183
|
+
if (existsSync3(c)) return bashCache = c;
|
|
1184
|
+
}
|
|
1185
|
+
try {
|
|
1186
|
+
const found = execSync2("where bash", { encoding: "utf-8", timeout: 3e3 }).trim().split(/\r?\n/)[0];
|
|
1187
|
+
if (found && existsSync3(found)) return bashCache = found;
|
|
1188
|
+
} catch {
|
|
1189
|
+
}
|
|
1190
|
+
return null;
|
|
1191
|
+
}
|
|
1192
|
+
function killProcessTree(child) {
|
|
1193
|
+
const pid = child.pid;
|
|
1194
|
+
if (!pid) return;
|
|
1195
|
+
if (isWindows) {
|
|
1196
|
+
try {
|
|
1197
|
+
spawn3("taskkill", ["/PID", String(pid), "/T", "/F"], { stdio: "ignore" });
|
|
1198
|
+
} catch {
|
|
1199
|
+
}
|
|
1200
|
+
return;
|
|
1201
|
+
}
|
|
1202
|
+
const signal = (sig) => {
|
|
1203
|
+
try {
|
|
1204
|
+
process.kill(-pid, sig);
|
|
1205
|
+
} catch {
|
|
1206
|
+
try {
|
|
1207
|
+
process.kill(pid, sig);
|
|
1208
|
+
} catch {
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
signal("SIGTERM");
|
|
1213
|
+
const timer = setTimeout(() => {
|
|
1214
|
+
if (child.exitCode === null && child.signalCode === null) signal("SIGKILL");
|
|
1215
|
+
}, 1e3);
|
|
1216
|
+
if (typeof timer.unref === "function") timer.unref();
|
|
1217
|
+
child.once("exit", () => clearTimeout(timer));
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
// src/lib/effect/bashStreamHandler.ts
|
|
1166
1221
|
var HEARTBEAT6 = Schedule_exports.spaced("30 seconds");
|
|
1222
|
+
function killChild(child) {
|
|
1223
|
+
killProcessTree(child);
|
|
1224
|
+
}
|
|
1225
|
+
var handleBash = (conn, defaultCwd) => Effect_exports.gen(function* () {
|
|
1226
|
+
yield* Effect_exports.logInfo("ws/bash start").pipe(
|
|
1227
|
+
Effect_exports.annotateLogs("cwd", defaultCwd ?? "")
|
|
1228
|
+
);
|
|
1229
|
+
const children = /* @__PURE__ */ new Map();
|
|
1230
|
+
yield* Effect_exports.addFinalizer(
|
|
1231
|
+
() => Effect_exports.sync(() => {
|
|
1232
|
+
for (const child of children.values()) killChild(child);
|
|
1233
|
+
children.clear();
|
|
1234
|
+
})
|
|
1235
|
+
);
|
|
1236
|
+
const shell = resolveBashShell();
|
|
1237
|
+
const startExec = (msg) => {
|
|
1238
|
+
const id = msg.id;
|
|
1239
|
+
const command = msg.command;
|
|
1240
|
+
const cwd = msg.cwd || defaultCwd || process.cwd();
|
|
1241
|
+
if (!id || typeof id !== "string") return;
|
|
1242
|
+
if (!shell) {
|
|
1243
|
+
Effect_exports.runFork(
|
|
1244
|
+
conn.send({
|
|
1245
|
+
type: "error",
|
|
1246
|
+
id: id || "",
|
|
1247
|
+
message: "bash not found \u2014 install Git Bash or WSL on Windows"
|
|
1248
|
+
})
|
|
1249
|
+
);
|
|
1250
|
+
return;
|
|
1251
|
+
}
|
|
1252
|
+
if (!command || typeof command !== "string") {
|
|
1253
|
+
Effect_exports.runFork(
|
|
1254
|
+
conn.send({ type: "error", id: id || "", message: "missing command" })
|
|
1255
|
+
);
|
|
1256
|
+
return;
|
|
1257
|
+
}
|
|
1258
|
+
if (children.has(id)) {
|
|
1259
|
+
Effect_exports.runFork(
|
|
1260
|
+
conn.send({ type: "error", id, message: "duplicate command id" })
|
|
1261
|
+
);
|
|
1262
|
+
return;
|
|
1263
|
+
}
|
|
1264
|
+
let child;
|
|
1265
|
+
try {
|
|
1266
|
+
child = spawn4(shell, ["--login", "-c", command], {
|
|
1267
|
+
cwd,
|
|
1268
|
+
env: { ...process.env, FORCE_COLOR: "0" },
|
|
1269
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
1270
|
+
detached: true
|
|
1271
|
+
});
|
|
1272
|
+
} catch (e) {
|
|
1273
|
+
Effect_exports.runFork(
|
|
1274
|
+
conn.send({ type: "error", id, message: e.message })
|
|
1275
|
+
);
|
|
1276
|
+
return;
|
|
1277
|
+
}
|
|
1278
|
+
children.set(id, child);
|
|
1279
|
+
child.stdout?.on("data", (d) => {
|
|
1280
|
+
Effect_exports.runFork(conn.send({ type: "stdout", id, data: d.toString() }));
|
|
1281
|
+
});
|
|
1282
|
+
child.stderr?.on("data", (d) => {
|
|
1283
|
+
Effect_exports.runFork(conn.send({ type: "stderr", id, data: d.toString() }));
|
|
1284
|
+
});
|
|
1285
|
+
child.on("close", (code) => {
|
|
1286
|
+
if (children.get(id) === child) children.delete(id);
|
|
1287
|
+
Effect_exports.runFork(conn.send({ type: "exit", id, code: code ?? 0 }));
|
|
1288
|
+
});
|
|
1289
|
+
child.on("error", (err) => {
|
|
1290
|
+
if (children.get(id) === child) children.delete(id);
|
|
1291
|
+
Effect_exports.runFork(conn.send({ type: "error", id, message: err.message }));
|
|
1292
|
+
});
|
|
1293
|
+
};
|
|
1294
|
+
const dispatch = (raw) => Effect_exports.sync(() => {
|
|
1295
|
+
const msg = raw;
|
|
1296
|
+
const type = msg.type;
|
|
1297
|
+
if (type === "exec") {
|
|
1298
|
+
startExec(msg);
|
|
1299
|
+
} else if (type === "kill") {
|
|
1300
|
+
const id = msg.id;
|
|
1301
|
+
const child = children.get(id);
|
|
1302
|
+
if (child) {
|
|
1303
|
+
children.delete(id);
|
|
1304
|
+
killChild(child);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
1308
|
+
yield* Effect_exports.forkScoped(
|
|
1309
|
+
Effect_exports.repeat(conn.send({ type: "ping" }), HEARTBEAT6)
|
|
1310
|
+
);
|
|
1311
|
+
yield* conn.messages.pipe(
|
|
1312
|
+
Stream_exports.mapEffect(dispatch),
|
|
1313
|
+
Stream_exports.runDrain
|
|
1314
|
+
);
|
|
1315
|
+
}).pipe(Effect_exports.withSpan("ws.handleBash", { attributes: { cwd: defaultCwd ?? "" } }));
|
|
1316
|
+
var runBashHandler = (ws, cwd) => {
|
|
1317
|
+
const program = Effect_exports.scoped(
|
|
1318
|
+
Effect_exports.gen(function* () {
|
|
1319
|
+
const conn = yield* fromWebSocket(ws, "bash");
|
|
1320
|
+
yield* handleBash(conn, cwd);
|
|
1321
|
+
})
|
|
1322
|
+
).pipe(
|
|
1323
|
+
Effect_exports.catchTag(
|
|
1324
|
+
"ValidationError",
|
|
1325
|
+
(e) => Effect_exports.sync(() => ws.close(4400, e.reason))
|
|
1326
|
+
),
|
|
1327
|
+
Effect_exports.catchAll(
|
|
1328
|
+
(e) => Effect_exports.logError("[ws/bash]").pipe(
|
|
1329
|
+
Effect_exports.annotateLogs("error", JSON.stringify(e))
|
|
1330
|
+
)
|
|
1331
|
+
)
|
|
1332
|
+
);
|
|
1333
|
+
const fiber = Effect_exports.runFork(program);
|
|
1334
|
+
ws.on("close", () => {
|
|
1335
|
+
Effect_exports.runFork(fiber.interruptAsFork(fiber.id()));
|
|
1336
|
+
});
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
// src/lib/effect/sessionStreamHandler.ts
|
|
1340
|
+
var HEARTBEAT7 = Schedule_exports.spaced("30 seconds");
|
|
1167
1341
|
var handleSessionStream = (conn, sessionId) => Effect_exports.gen(function* () {
|
|
1168
1342
|
if (!sessionId) {
|
|
1169
1343
|
return yield* Effect_exports.fail(
|
|
@@ -1195,7 +1369,7 @@ var handleSessionStream = (conn, sessionId) => Effect_exports.gen(function* () {
|
|
|
1195
1369
|
yield* conn.send({ type: "run-idle" });
|
|
1196
1370
|
}
|
|
1197
1371
|
yield* Effect_exports.forkScoped(
|
|
1198
|
-
Effect_exports.repeat(conn.send({ type: "ping" }),
|
|
1372
|
+
Effect_exports.repeat(conn.send({ type: "ping" }), HEARTBEAT7)
|
|
1199
1373
|
);
|
|
1200
1374
|
yield* Stream_exports.fromQueue(queue).pipe(
|
|
1201
1375
|
Stream_exports.filter((ev) => ev.seq > snapshotSeq),
|
|
@@ -3971,6 +4145,16 @@ function broadcastToGlobalState(msg) {
|
|
|
3971
4145
|
|
|
3972
4146
|
// src/lib/wsServer.ts
|
|
3973
4147
|
wireCodeIndexToFileWatcher();
|
|
4148
|
+
function isSameOriginWs(req) {
|
|
4149
|
+
const origin = req.headers.origin;
|
|
4150
|
+
const host = req.headers.host;
|
|
4151
|
+
if (!origin || !host) return false;
|
|
4152
|
+
try {
|
|
4153
|
+
return new URL(origin).host === host;
|
|
4154
|
+
} catch {
|
|
4155
|
+
return false;
|
|
4156
|
+
}
|
|
4157
|
+
}
|
|
3974
4158
|
var g_ws = globalThis;
|
|
3975
4159
|
var wss = g_ws.__cockpitWss ?? (() => {
|
|
3976
4160
|
const server = new WebSocketServer({ noServer: true });
|
|
@@ -3985,6 +4169,15 @@ var wss = g_ws.__cockpitWss ?? (() => {
|
|
|
3985
4169
|
runGlobalStateHandler(ws);
|
|
3986
4170
|
} else if (pathname === "/ws/terminal") {
|
|
3987
4171
|
runTerminalHandler(ws, query.projectCwd);
|
|
4172
|
+
} else if (pathname === "/ws/bash") {
|
|
4173
|
+
if (!isSameOriginWs(req)) {
|
|
4174
|
+
try {
|
|
4175
|
+
ws.close(4403, "forbidden origin");
|
|
4176
|
+
} catch {
|
|
4177
|
+
}
|
|
4178
|
+
} else {
|
|
4179
|
+
runBashHandler(ws, query.cwd);
|
|
4180
|
+
}
|
|
3988
4181
|
} else if (pathname === "/ws/browser") {
|
|
3989
4182
|
runBrowserHandler(
|
|
3990
4183
|
ws,
|
|
@@ -4004,7 +4197,7 @@ var wss = g_ws.__cockpitWss ?? (() => {
|
|
|
4004
4197
|
})();
|
|
4005
4198
|
function handleUpgrade(req, socket, head) {
|
|
4006
4199
|
const { pathname } = parse(req.url || "", true);
|
|
4007
|
-
if (pathname === "/ws/watch" || pathname === "/ws/global-state" || pathname === "/ws/terminal" || pathname === "/ws/browser" || pathname === "/ws/terminal-follow" || pathname === "/ws/jupyter" || pathname === "/ws/session-stream") {
|
|
4200
|
+
if (pathname === "/ws/watch" || pathname === "/ws/global-state" || pathname === "/ws/terminal" || pathname === "/ws/bash" || pathname === "/ws/browser" || pathname === "/ws/terminal-follow" || pathname === "/ws/jupyter" || pathname === "/ws/session-stream") {
|
|
4008
4201
|
wss.handleUpgrade(req, socket, head, (ws) => {
|
|
4009
4202
|
wss.emit("connection", ws, req);
|
|
4010
4203
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@surething/cockpit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.246",
|
|
4
4
|
"description": "The open-source Claude Code GUI — an IDE-like workbench for parallel AI coding. Drive Claude (default), Codex, DeepSeek, Kimi, or local Ollama in tabs. Terminal, browser & DB bubbles, code review. Self-host on a shared dev box — a seat for every teammate. Local-first, MIT.",
|
|
5
5
|
"author": "Robert",
|
|
6
6
|
"license": "MIT",
|
|
@@ -67,6 +67,9 @@
|
|
|
67
67
|
"files": [
|
|
68
68
|
"bin",
|
|
69
69
|
"chrome-extension",
|
|
70
|
+
"apps",
|
|
71
|
+
"!**/*.test.*",
|
|
72
|
+
"!**/*.spec.*",
|
|
70
73
|
"public",
|
|
71
74
|
"server.mjs",
|
|
72
75
|
"dist",
|
|
@@ -80,10 +83,10 @@
|
|
|
80
83
|
"README.md"
|
|
81
84
|
],
|
|
82
85
|
"scripts": {
|
|
83
|
-
"predev": "node scripts/copy-tree-sitter-wasms.mjs && node scripts/copy-pdfjs-worker.mjs",
|
|
86
|
+
"predev": "node scripts/copy-tree-sitter-wasms.mjs && node scripts/copy-pdfjs-worker.mjs && node scripts/build-html-lib.mjs",
|
|
84
87
|
"dev": "COCKPIT_ENV=dev node --import tsx server.mjs",
|
|
85
88
|
"prepublishOnly": "npm run build && npm run build:server && rm -rf .next-prod/cache",
|
|
86
|
-
"prebuild": "node scripts/copy-tree-sitter-wasms.mjs && node scripts/copy-pdfjs-worker.mjs",
|
|
89
|
+
"prebuild": "node scripts/copy-tree-sitter-wasms.mjs && node scripts/copy-pdfjs-worker.mjs && node scripts/build-html-lib.mjs",
|
|
87
90
|
"build": "next build --webpack",
|
|
88
91
|
"build:server": "tsup --config tsup.server.ts",
|
|
89
92
|
"setup": "npm run build && npm run build:server && npm link",
|