@surething/cockpit 1.0.278 → 1.0.280
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 +6 -5
- package/.next-prod/build-manifest.json +2 -2
- package/.next-prod/cockpit-build.json +1 -1
- package/.next-prod/prerender-manifest.json +3 -3
- package/.next-prod/routes-manifest.json +12 -6
- package/.next-prod/server/app/_global-error/page.js +2 -2
- 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/_tree.segment.rsc +1 -1
- package/.next-prod/server/app/_not-found/page.js +1 -1
- 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 +3 -3
- package/.next-prod/server/app/_not-found.segments/_full.segment.rsc +3 -3
- 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/_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/bots/[id]/route.js +1 -1
- package/.next-prod/server/app/api/bots/[id]/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/bots/route.js +1 -1
- package/.next-prod/server/app/api/bots/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +1 -1
- 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/glm/route.js +1 -1
- package/.next-prod/server/app/api/chat/glm/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
- 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/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 +2 -2
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/deepseek/balance/route.js +1 -1
- package/.next-prod/server/app/api/deepseek/balance/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/deepseek/models/route.js +1 -1
- package/.next-prod/server/app/api/deepseek/models/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/fs/dirs/route.js +1 -0
- package/.next-prod/server/app/api/fs/dirs/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/fs/dirs/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/git/blob/route.js +1 -1
- package/.next-prod/server/app/api/git/blob/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/glm/credentials/route.js +1 -1
- package/.next-prod/server/app/api/glm/credentials/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/glm/models/route.js +1 -1
- package/.next-prod/server/app/api/glm/models/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/glm/usage/route.js +1 -1
- package/.next-prod/server/app/api/glm/usage/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 -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/instructions/config/route.js +1 -1
- package/.next-prod/server/app/api/instructions/config/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/kimi/credentials/route.js +1 -1
- package/.next-prod/server/app/api/kimi/credentials/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/kimi/models/route.js +1 -1
- package/.next-prod/server/app/api/kimi/models/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/kimi/usage/route.js +1 -1
- package/.next-prod/server/app/api/kimi/usage/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 +2 -2
- 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/default-model/route.js +1 -1
- package/.next-prod/server/app/api/ollama/default-model/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/output-styles/config/route.js +1 -1
- package/.next-prod/server/app/api/output-styles/config/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/restart/route.js +1 -1
- package/.next-prod/server/app/api/restart/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/[sessionId]/turn/route.js +2 -2
- package/.next-prod/server/app/api/session/[sessionId]/turn/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/session/user-messages/route.js +1 -1
- package/.next-prod/server/app/api/session/user-messages/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/delegate/route.js +1 -1
- package/.next-prod/server/app/api/sessions/delegate/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/search/route.js +1 -1
- package/.next-prod/server/app/api/sessions/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/sessions/status/route.js +1 -1
- package/.next-prod/server/app/api/sessions/status/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/shutdown/route.js +1 -1
- package/.next-prod/server/app/api/shutdown/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/blob/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/blob/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/range-diff/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/range-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/terminal/running/route.js +1 -0
- package/.next-prod/server/app/api/terminal/running/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/terminal/running/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/update/route.js +1 -1
- package/.next-prod/server/app/api/update/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/update-state/route.js +1 -1
- package/.next-prod/server/app/api/update-state/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 -1
- package/.next-prod/server/app/apps/[...path]/route.js.nft.json +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +6 -5
- package/.next-prod/server/chunks/1863.js +1 -0
- package/.next-prod/server/chunks/2493.js +9 -9
- package/.next-prod/server/chunks/411.js +1 -0
- package/.next-prod/server/chunks/5591.js +2 -2
- package/.next-prod/server/chunks/7438.js +18 -17
- package/.next-prod/server/chunks/7918.js +1 -0
- package/.next-prod/server/chunks/8022.js +1 -1
- package/.next-prod/server/middleware-build-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/_195_hPNVuma2vZS7bpTW/_buildManifest.js +1 -0
- package/.next-prod/static/chunks/81016-71999ca5bd6a6b2f.js +36 -0
- package/.next-prod/static/chunks/{95313-eb607273c688b022.js → 95313-af5cc33125d6c0ff.js} +3 -3
- package/.next-prod/static/chunks/99092-d9525c22b942b051.js +716 -0
- package/.next-prod/static/chunks/app/_global-error/page-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/agent/test/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/bots/[id]/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/bots/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/glm/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/stop/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/balance/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/models/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/dev/spans/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/fs/dirs/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/blob/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/current-branch/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/credentials/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/models/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/usage/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/health/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/instructions/config/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/credentials/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/models/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/usage/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/config/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/default-model/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/output-styles/config/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/push/public-key/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/push/subscribe/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/restart/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/session/user-messages/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/delegate/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/search/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/status/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/shutdown/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/blob/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/running/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/update/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/update-state/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/apps/[...path]/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/{layout-589122feb9071556.js → layout-0c3dcac0764d9e97.js} +1 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/app/page-b472e7f948959009.js +1 -0
- package/.next-prod/static/chunks/app/project/page-b472e7f948959009.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-4e18b53a1ed48d45.js +1 -0
- package/.next-prod/static/css/e70d0cefe04f0619.css +1 -0
- package/.next-prod/trace +15 -15
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/{pick-folder → fs/dirs}/route.ts +3 -3
- package/.next-prod/types/app/api/terminal/running/route.ts +353 -0
- package/.next-prod/types/routes.d.ts +3 -2
- package/.next-prod/types/validator.ts +18 -9
- package/bin/pty-host.mjs +423 -0
- package/dist/{chunk-LPZXJPD6.mjs → chunk-3LSLUAN6.mjs} +143 -95
- package/dist/{chunk-W5MB7DIM.mjs → chunk-N6CFCP2N.mjs} +655 -9
- package/dist/httpApi.mjs +7 -3
- package/dist/scheduledTasks.mjs +67 -11
- package/dist/wsServer.mjs +118 -141
- package/package.json +3 -3
- package/server.mjs +12 -0
- package/skills/cr/SKILL.md +306 -126
- package/skills/ex/SKILL.md +39 -59
- package/skills/fx/SKILL.md +46 -4
- package/skills/go/SKILL.md +26 -87
- package/skills/qa/SKILL.md +46 -36
- package/.next-prod/server/app/api/pick-folder/route.js +0 -1
- package/.next-prod/server/app/api/pick-folder/route.js.nft.json +0 -1
- package/.next-prod/server/app/api/pick-folder/route_client-reference-manifest.js +0 -1
- package/.next-prod/server/chunks/6548.js +0 -1
- package/.next-prod/static/I8gbcTQRiRdMF09goE7WI/_buildManifest.js +0 -1
- package/.next-prod/static/chunks/60875-acaae14dd7ddcd91.js +0 -35
- package/.next-prod/static/chunks/99092-f94ee242866d22b9.js +0 -716
- package/.next-prod/static/chunks/app/_global-error/page-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/bots/[id]/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/bots/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/glm/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/balance/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/models/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/blob/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/credentials/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/models/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/usage/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/instructions/config/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/credentials/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/models/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/usage/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/config/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/default-model/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/output-styles/config/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/restart/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/session/user-messages/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/delegate/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/search/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/status/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/shutdown/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/blob/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/update/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/update-state/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/apps/[...path]/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/app/page-a69072e6dbd4a059.js +0 -1
- package/.next-prod/static/chunks/app/project/page-a69072e6dbd4a059.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-b3c86dd8f06140fe.js +0 -1
- package/.next-prod/static/css/2abfec9d3e93011f.css +0 -1
- package/skills/ap/SKILL.md +0 -18
- /package/.next-prod/static/{I8gbcTQRiRdMF09goE7WI → _195_hPNVuma2vZS7bpTW}/_ssgManifest.js +0 -0
|
@@ -31894,11 +31894,51 @@ var SessionCleanupLive = Layer_exports.scoped(
|
|
|
31894
31894
|
})
|
|
31895
31895
|
);
|
|
31896
31896
|
|
|
31897
|
+
// packages/feature/agent/src/effect/goNotesCleanupLive.ts
|
|
31898
|
+
import { readdir as readdir3, rm as rm3, stat as stat3 } from "fs/promises";
|
|
31899
|
+
import { join as join7 } from "path";
|
|
31900
|
+
var KEEP_DAYS = 30;
|
|
31901
|
+
var DAY_MS2 = 24 * 3600 * 1e3;
|
|
31902
|
+
var fsTry3 = (op, fn2) => Effect_exports.tryPromise({
|
|
31903
|
+
try: fn2,
|
|
31904
|
+
catch: (cause3) => new AppError({ message: `go-notes cleanup fs ${op} failed`, cause: cause3 })
|
|
31905
|
+
});
|
|
31906
|
+
var goNotesDir = (cockpitDir) => join7(cockpitDir, "skills", "go", "notes");
|
|
31907
|
+
var cleanupGoNotes = (notesDir, keepDays, now = Date.now()) => Effect_exports.gen(function* () {
|
|
31908
|
+
const cutoff = now - keepDays * DAY_MS2;
|
|
31909
|
+
const files = yield* fsTry3("readdir", () => readdir3(notesDir)).pipe(
|
|
31910
|
+
Effect_exports.orElseSucceed(() => [])
|
|
31911
|
+
);
|
|
31912
|
+
for (const name of files) {
|
|
31913
|
+
if (!name.endsWith(".md")) continue;
|
|
31914
|
+
const file2 = join7(notesDir, name);
|
|
31915
|
+
const mtime = yield* fsTry3("stat", () => stat3(file2).then((s) => s.mtimeMs)).pipe(
|
|
31916
|
+
Effect_exports.orElseSucceed(() => Number.POSITIVE_INFINITY)
|
|
31917
|
+
// stat fail -> keep
|
|
31918
|
+
);
|
|
31919
|
+
if (mtime >= cutoff) continue;
|
|
31920
|
+
yield* fsTry3("rm", () => rm3(file2, { force: true })).pipe(Effect_exports.orElseSucceed(() => void 0));
|
|
31921
|
+
yield* Effect_exports.logInfo(`go-notes cleanup: removed ${name} (older than ${keepDays}d)`);
|
|
31922
|
+
}
|
|
31923
|
+
}).pipe(Effect_exports.withSpan("goNotes.cleanup"));
|
|
31924
|
+
var GoNotesCleanupService = Context_exports.GenericTag(
|
|
31925
|
+
"@cockpit/GoNotesCleanupService"
|
|
31926
|
+
);
|
|
31927
|
+
var GoNotesCleanupLive = Layer_exports.scoped(
|
|
31928
|
+
GoNotesCleanupService,
|
|
31929
|
+
Effect_exports.gen(function* () {
|
|
31930
|
+
const cfg = yield* CockpitConfig;
|
|
31931
|
+
const cleanup = Effect_exports.suspend(() => cleanupGoNotes(goNotesDir(cfg.cockpitDir), KEEP_DAYS));
|
|
31932
|
+
yield* Effect_exports.forkScoped(cleanup.pipe(Effect_exports.repeat(Schedule_exports.spaced("24 hours"))));
|
|
31933
|
+
return GoNotesCleanupService.of({ cleanup });
|
|
31934
|
+
})
|
|
31935
|
+
);
|
|
31936
|
+
|
|
31897
31937
|
// packages/feature/agent/src/effect/sessionSearchLive.ts
|
|
31898
31938
|
import { execFile as execFile2 } from "child_process";
|
|
31899
31939
|
import { randomUUID } from "crypto";
|
|
31900
|
-
import { mkdir as mkdir3, open, readdir as
|
|
31901
|
-
import { dirname as dirname2, join as
|
|
31940
|
+
import { mkdir as mkdir3, open, readdir as readdir4, readFile as readFile4, rename as rename2, rm as rm4, stat as stat4, writeFile as writeFile3 } from "fs/promises";
|
|
31941
|
+
import { dirname as dirname2, join as join8, resolve as resolve2 } from "path";
|
|
31902
31942
|
import { rgPath } from "@vscode/ripgrep";
|
|
31903
31943
|
|
|
31904
31944
|
// packages/shared/utils/src/sessionLink.ts
|
|
@@ -31909,6 +31949,7 @@ function buildSessionLink(cwd, sessionId) {
|
|
|
31909
31949
|
// packages/feature/agent/src/server/api/session/transcriptParsers.ts
|
|
31910
31950
|
import * as fs from "fs";
|
|
31911
31951
|
import * as readline from "readline";
|
|
31952
|
+
import { Readable } from "stream";
|
|
31912
31953
|
|
|
31913
31954
|
// packages/feature/agent/src/shared/transcriptTurns.ts
|
|
31914
31955
|
function injectionKind(msg) {
|
|
@@ -32612,13 +32653,13 @@ function codexItemBubble(item) {
|
|
|
32612
32653
|
}
|
|
32613
32654
|
|
|
32614
32655
|
// packages/feature/agent/src/server/api/session/transcriptParsers.ts
|
|
32656
|
+
function openTranscriptLines(source) {
|
|
32657
|
+
const input = typeof source === "string" ? fs.createReadStream(source) : Readable.from([source.text]);
|
|
32658
|
+
return readline.createInterface({ input, crlfDelay: Infinity });
|
|
32659
|
+
}
|
|
32615
32660
|
async function parseTranscriptFile(filePath, page = {}) {
|
|
32616
32661
|
const { limit, beforeTurnIndex, fromTurnIndex } = page;
|
|
32617
|
-
const
|
|
32618
|
-
const rl = readline.createInterface({
|
|
32619
|
-
input: fileStream,
|
|
32620
|
-
crlfDelay: Infinity
|
|
32621
|
-
});
|
|
32662
|
+
const rl = openTranscriptLines(filePath);
|
|
32622
32663
|
const rawMessages = [];
|
|
32623
32664
|
let aiTitle = "";
|
|
32624
32665
|
let summary5 = "";
|
|
@@ -32870,8 +32911,7 @@ function convertToChatMessages(rawMessages) {
|
|
|
32870
32911
|
return chatMessages;
|
|
32871
32912
|
}
|
|
32872
32913
|
async function parseCodexTranscriptFile(filePath) {
|
|
32873
|
-
const
|
|
32874
|
-
const rl = readline.createInterface({ input: fileStream, crlfDelay: Infinity });
|
|
32914
|
+
const rl = openTranscriptLines(filePath);
|
|
32875
32915
|
const messages = [];
|
|
32876
32916
|
let currentAssistant = null;
|
|
32877
32917
|
let title = "Untitled Session";
|
|
@@ -33191,21 +33231,21 @@ var groupMatches = (matches, terms) => {
|
|
|
33191
33231
|
}
|
|
33192
33232
|
return byFile;
|
|
33193
33233
|
};
|
|
33194
|
-
var
|
|
33195
|
-
var readJsonOr = (file2, fallback) =>
|
|
33234
|
+
var fsTry4 = (path5, op, fn2) => Effect_exports.tryPromise({ try: fn2, catch: (cause3) => new FSError({ path: path5, op, cause: cause3 }) });
|
|
33235
|
+
var readJsonOr = (file2, fallback) => fsTry4(file2, "read", () => readFile4(file2, "utf8")).pipe(
|
|
33196
33236
|
Effect_exports.flatMap((raw) => Effect_exports.try(() => JSON.parse(raw))),
|
|
33197
33237
|
Effect_exports.orElseSucceed(() => fallback)
|
|
33198
33238
|
);
|
|
33199
33239
|
var readHead = (file2, bytes) => Effect_exports.acquireUseRelease(
|
|
33200
|
-
|
|
33201
|
-
(fh) =>
|
|
33240
|
+
fsTry4(file2, "read", () => open(file2, "r")),
|
|
33241
|
+
(fh) => fsTry4(file2, "read", async () => {
|
|
33202
33242
|
const buf = Buffer.alloc(bytes);
|
|
33203
33243
|
const { bytesRead } = await fh.read(buf, 0, bytes, 0);
|
|
33204
33244
|
return buf.subarray(0, bytesRead).toString("utf-8");
|
|
33205
33245
|
}),
|
|
33206
33246
|
(fh) => Effect_exports.tryPromise(() => fh.close()).pipe(Effect_exports.ignore)
|
|
33207
33247
|
);
|
|
33208
|
-
var nodeAtomicWriteOps = { mkdir: mkdir3, writeFile: writeFile3, rename: rename2, rm:
|
|
33248
|
+
var nodeAtomicWriteOps = { mkdir: mkdir3, writeFile: writeFile3, rename: rename2, rm: rm4 };
|
|
33209
33249
|
var writeAtomically = async (file2, text, ops = nodeAtomicWriteOps) => {
|
|
33210
33250
|
await ops.mkdir(dirname2(file2), { recursive: true });
|
|
33211
33251
|
const tmp = `${file2}.${randomUUID()}.tmp`;
|
|
@@ -33214,11 +33254,11 @@ var writeAtomically = async (file2, text, ops = nodeAtomicWriteOps) => {
|
|
|
33214
33254
|
throw err;
|
|
33215
33255
|
});
|
|
33216
33256
|
};
|
|
33217
|
-
var listSubdirs = (root) =>
|
|
33257
|
+
var listSubdirs = (root) => fsTry4(root, "read", () => readdir4(root, { withFileTypes: true })).pipe(
|
|
33218
33258
|
Effect_exports.map((entries2) => entries2.filter((d) => d.isDirectory()).map((d) => d.name)),
|
|
33219
33259
|
Effect_exports.orElseSucceed(() => [])
|
|
33220
33260
|
);
|
|
33221
|
-
var listTopLevelTranscripts = (dir) =>
|
|
33261
|
+
var listTopLevelTranscripts = (dir) => fsTry4(dir, "read", () => readdir4(dir)).pipe(
|
|
33222
33262
|
Effect_exports.map((files) => files.filter((f) => f.endsWith(".jsonl") && !f.startsWith("agent-"))),
|
|
33223
33263
|
Effect_exports.orElseSucceed(() => [])
|
|
33224
33264
|
);
|
|
@@ -33226,11 +33266,11 @@ var listCorpusSources = Effect_exports.gen(function* () {
|
|
|
33226
33266
|
const out = [];
|
|
33227
33267
|
const fromShardedStore = (engine, root) => Effect_exports.gen(function* () {
|
|
33228
33268
|
for (const encodedDir of yield* listSubdirs(root)) {
|
|
33229
|
-
for (const file2 of yield* listTopLevelTranscripts(
|
|
33269
|
+
for (const file2 of yield* listTopLevelTranscripts(join8(root, encodedDir))) {
|
|
33230
33270
|
out.push({
|
|
33231
33271
|
engine,
|
|
33232
33272
|
sessionId: file2.slice(0, -".jsonl".length),
|
|
33233
|
-
sourcePath:
|
|
33273
|
+
sourcePath: join8(root, encodedDir, file2),
|
|
33234
33274
|
cwd: null,
|
|
33235
33275
|
encodedDir
|
|
33236
33276
|
});
|
|
@@ -33265,7 +33305,7 @@ var buildCwdLookup = (cockpitDir, knownCwds) => Effect_exports.gen(function* ()
|
|
|
33265
33305
|
const add7 = (cwd) => {
|
|
33266
33306
|
if (typeof cwd === "string" && cwd) lookup.set(encodePath(cwd), cwd);
|
|
33267
33307
|
};
|
|
33268
|
-
const projects = yield* readJsonOr(
|
|
33308
|
+
const projects = yield* readJsonOr(join8(cockpitDir, "projects.json"), {});
|
|
33269
33309
|
const state = yield* readJsonOr(GLOBAL_STATE_FILE, {});
|
|
33270
33310
|
for (const p of projects.projects ?? []) add7(p.cwd);
|
|
33271
33311
|
for (const s of state.sessions ?? []) add7(s.cwd);
|
|
@@ -33284,9 +33324,9 @@ var resolveCwd = (source, lookup) => Effect_exports.gen(function* () {
|
|
|
33284
33324
|
}
|
|
33285
33325
|
const known = knownCwd(source, lookup);
|
|
33286
33326
|
if (known || !source.encodedDir) return known;
|
|
33287
|
-
const claudeDir =
|
|
33327
|
+
const claudeDir = join8(CLAUDE_PROJECTS_DIR, source.encodedDir);
|
|
33288
33328
|
for (const file2 of yield* listTopLevelTranscripts(claudeDir)) {
|
|
33289
|
-
const cwd = yield* firstCwdInTranscript(
|
|
33329
|
+
const cwd = yield* firstCwdInTranscript(join8(claudeDir, file2));
|
|
33290
33330
|
if (cwd) {
|
|
33291
33331
|
lookup.set(source.encodedDir, cwd);
|
|
33292
33332
|
return cwd;
|
|
@@ -33304,8 +33344,8 @@ var extractText = (source, cwd, updatedAt) => Effect_exports.tryPromise({
|
|
|
33304
33344
|
})
|
|
33305
33345
|
);
|
|
33306
33346
|
var syncImpl = (cockpitDir, corpusDir) => Effect_exports.gen(function* () {
|
|
33307
|
-
const manifestFile =
|
|
33308
|
-
yield*
|
|
33347
|
+
const manifestFile = join8(corpusDir, "manifest.json");
|
|
33348
|
+
yield* fsTry4(corpusDir, "mkdir", () => mkdir3(corpusDir, { recursive: true }));
|
|
33309
33349
|
const previous2 = yield* readJsonOr(manifestFile, {});
|
|
33310
33350
|
const sources = yield* listCorpusSources;
|
|
33311
33351
|
const lookup = yield* buildCwdLookup(
|
|
@@ -33315,13 +33355,13 @@ var syncImpl = (cockpitDir, corpusDir) => Effect_exports.gen(function* () {
|
|
|
33315
33355
|
const next4 = {};
|
|
33316
33356
|
const planned = [];
|
|
33317
33357
|
for (const source of sources) {
|
|
33318
|
-
const st = yield*
|
|
33358
|
+
const st = yield* fsTry4(source.sourcePath, "stat", () => stat4(source.sourcePath)).pipe(Effect_exports.option);
|
|
33319
33359
|
if (st._tag === "None") continue;
|
|
33320
33360
|
const fingerprint = `${Math.floor(st.value.mtimeMs)}-${st.value.size}`;
|
|
33321
|
-
const corpusPath =
|
|
33361
|
+
const corpusPath = join8(corpusDir, source.engine, `${source.sessionId}.txt`);
|
|
33322
33362
|
const prev = previous2[source.sourcePath];
|
|
33323
33363
|
const unchanged = prev !== void 0 && prev.fingerprint === fingerprint;
|
|
33324
|
-
const corpusPresent = prev !== void 0 && (prev.corpusPath === "" || (yield*
|
|
33364
|
+
const corpusPresent = prev !== void 0 && (prev.corpusPath === "" || (yield* fsTry4(prev.corpusPath, "stat", () => stat4(prev.corpusPath)).pipe(Effect_exports.option))._tag === "Some");
|
|
33325
33365
|
if (unchanged && corpusPresent) {
|
|
33326
33366
|
const prevCwd = prev.cwd ?? null;
|
|
33327
33367
|
const resolved = prevCwd === null ? yield* resolveCwd(source, lookup) : prevCwd;
|
|
@@ -33347,9 +33387,9 @@ var syncImpl = (cockpitDir, corpusDir) => Effect_exports.gen(function* () {
|
|
|
33347
33387
|
return kept;
|
|
33348
33388
|
}
|
|
33349
33389
|
const text = extracted.right;
|
|
33350
|
-
const written = text ?
|
|
33390
|
+
const written = text ? fsTry4(corpusPath, "write", () => writeAtomically(corpusPath, text)).pipe(
|
|
33351
33391
|
Effect_exports.as({ fingerprint, corpusPath, cwd })
|
|
33352
|
-
) :
|
|
33392
|
+
) : fsTry4(corpusPath, "rm", () => rm4(corpusPath, { force: true })).pipe(
|
|
33353
33393
|
Effect_exports.as({ fingerprint, corpusPath: "", cwd })
|
|
33354
33394
|
);
|
|
33355
33395
|
const entry = yield* written.pipe(
|
|
@@ -33372,11 +33412,11 @@ var syncImpl = (cockpitDir, corpusDir) => Effect_exports.gen(function* () {
|
|
|
33372
33412
|
for (const [sourcePath, entry] of Object.entries(previous2)) {
|
|
33373
33413
|
if (next4[sourcePath] !== void 0 || rebuilt.some(([p]) => p === sourcePath)) continue;
|
|
33374
33414
|
if (entry.corpusPath) {
|
|
33375
|
-
yield*
|
|
33415
|
+
yield* fsTry4(entry.corpusPath, "rm", () => rm4(entry.corpusPath, { force: true })).pipe(Effect_exports.ignore);
|
|
33376
33416
|
}
|
|
33377
33417
|
removed++;
|
|
33378
33418
|
}
|
|
33379
|
-
yield*
|
|
33419
|
+
yield* fsTry4(manifestFile, "write", () => writeAtomically(manifestFile, JSON.stringify(next4)));
|
|
33380
33420
|
return {
|
|
33381
33421
|
sources: sources.length,
|
|
33382
33422
|
indexed: Object.values(next4).filter((e) => e.corpusPath).length,
|
|
@@ -33437,7 +33477,7 @@ var SessionSearchServiceLive = Layer_exports.effect(
|
|
|
33437
33477
|
SessionSearchService,
|
|
33438
33478
|
Effect_exports.gen(function* () {
|
|
33439
33479
|
const cfg = yield* CockpitConfig;
|
|
33440
|
-
const corpusDir =
|
|
33480
|
+
const corpusDir = join8(cfg.cockpitDir, "search-corpus");
|
|
33441
33481
|
const corpusLock = yield* Effect_exports.makeSemaphore(CORPUS_LOCK_PERMITS);
|
|
33442
33482
|
return SessionSearchService.of({
|
|
33443
33483
|
sync: corpusLock.withPermits(CORPUS_LOCK_PERMITS)(syncImpl(cfg.cockpitDir, corpusDir)).pipe(Effect_exports.withSpan("sessionSearch.sync")),
|
|
@@ -33447,7 +33487,7 @@ var SessionSearchServiceLive = Layer_exports.effect(
|
|
|
33447
33487
|
);
|
|
33448
33488
|
|
|
33449
33489
|
// packages/feature/agent/src/effect/delegationLive.ts
|
|
33450
|
-
import { open as open2, stat as
|
|
33490
|
+
import { open as open2, stat as stat6 } from "fs/promises";
|
|
33451
33491
|
import { basename as basename4, isAbsolute as isAbsolute3 } from "path";
|
|
33452
33492
|
import { randomUUID as randomUUID4 } from "crypto";
|
|
33453
33493
|
|
|
@@ -33547,9 +33587,9 @@ async function runSdkLoop(ctx, buildOptions2) {
|
|
|
33547
33587
|
|
|
33548
33588
|
// packages/feature/agent/src/server/engines/shared/noHistoryTranscript.ts
|
|
33549
33589
|
import * as fs2 from "fs";
|
|
33550
|
-
import { join as
|
|
33590
|
+
import { join as join9, basename as basename3 } from "path";
|
|
33551
33591
|
function noHistoryStashPath(sessionPath) {
|
|
33552
|
-
return
|
|
33592
|
+
return join9(sessionPath.replace(/\.jsonl$/, ""), "nohistory-backup.jsonl");
|
|
33553
33593
|
}
|
|
33554
33594
|
function readLines(filePath) {
|
|
33555
33595
|
return fs2.readFileSync(filePath, "utf-8").split("\n").filter((line) => line.trim().length > 0);
|
|
@@ -33596,7 +33636,7 @@ function stashTranscript(sessionPath) {
|
|
|
33596
33636
|
if (fs2.existsSync(stash)) {
|
|
33597
33637
|
mergeStashedTranscript(sessionPath);
|
|
33598
33638
|
}
|
|
33599
|
-
fs2.mkdirSync(
|
|
33639
|
+
fs2.mkdirSync(join9(stash, ".."), { recursive: true });
|
|
33600
33640
|
fs2.renameSync(sessionPath, stash);
|
|
33601
33641
|
return true;
|
|
33602
33642
|
}
|
|
@@ -33613,13 +33653,15 @@ function mergeStashedTranscript(sessionPath) {
|
|
|
33613
33653
|
replaceWithStash(stash, sessionPath);
|
|
33614
33654
|
return "restored";
|
|
33615
33655
|
}
|
|
33616
|
-
|
|
33617
|
-
const seam = tailUuid(history);
|
|
33618
|
-
const merged = [...history, ...turn.map((line) => relinkAndRestamp(line, seam, sessionId))];
|
|
33619
|
-
fs2.writeFileSync(sessionPath, merged.join("\n") + "\n", "utf-8");
|
|
33656
|
+
fs2.writeFileSync(sessionPath, spliceTurn(history, turn, sessionPath).join("\n") + "\n", "utf-8");
|
|
33620
33657
|
fs2.unlinkSync(stash);
|
|
33621
33658
|
return "merged";
|
|
33622
33659
|
}
|
|
33660
|
+
function spliceTurn(history, turn, sessionPath) {
|
|
33661
|
+
const sessionId = basename3(sessionPath).replace(/\.jsonl$/, "");
|
|
33662
|
+
const seam = tailUuid(history);
|
|
33663
|
+
return [...history, ...turn.map((line) => relinkAndRestamp(line, seam, sessionId))];
|
|
33664
|
+
}
|
|
33623
33665
|
function recoverStashedTranscripts(roots3 = [CLAUDE_PROJECTS_DIR]) {
|
|
33624
33666
|
let repaired = 0;
|
|
33625
33667
|
for (const root of roots3) {
|
|
@@ -33631,7 +33673,7 @@ function recoverStashedTranscripts(roots3 = [CLAUDE_PROJECTS_DIR]) {
|
|
|
33631
33673
|
continue;
|
|
33632
33674
|
}
|
|
33633
33675
|
for (const project3 of projectDirs) {
|
|
33634
|
-
const projectPath =
|
|
33676
|
+
const projectPath = join9(root, project3);
|
|
33635
33677
|
let sessionDirs;
|
|
33636
33678
|
try {
|
|
33637
33679
|
sessionDirs = fs2.readdirSync(projectPath, { withFileTypes: true }).filter((e) => e.isDirectory()).map((e) => e.name);
|
|
@@ -33639,7 +33681,7 @@ function recoverStashedTranscripts(roots3 = [CLAUDE_PROJECTS_DIR]) {
|
|
|
33639
33681
|
continue;
|
|
33640
33682
|
}
|
|
33641
33683
|
for (const sid of sessionDirs) {
|
|
33642
|
-
const sessionPath =
|
|
33684
|
+
const sessionPath = join9(projectPath, `${sid}.jsonl`);
|
|
33643
33685
|
try {
|
|
33644
33686
|
if (mergeStashedTranscript(sessionPath) !== "none") repaired++;
|
|
33645
33687
|
} catch {
|
|
@@ -33654,8 +33696,8 @@ function recoverStashedTranscripts(roots3 = [CLAUDE_PROJECTS_DIR]) {
|
|
|
33654
33696
|
var PLAN_EDIT_TOOLS = /* @__PURE__ */ new Set(["Write", "Edit", "MultiEdit", "NotebookEdit"]);
|
|
33655
33697
|
var isPlanFilePath = (p) => /(^|\/)\.claude\/plans\//.test(p);
|
|
33656
33698
|
var CLAUDE_SDK_EFFORTS = /* @__PURE__ */ new Set(["low", "medium", "high", "xhigh", "max"]);
|
|
33657
|
-
var CLAUDE_ULTRACODE_MODELS = /* @__PURE__ */ new Set(["claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8"]);
|
|
33658
|
-
var CLAUDE_XHIGH_MODELS = /* @__PURE__ */ new Set(["claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-sonnet-5"]);
|
|
33699
|
+
var CLAUDE_ULTRACODE_MODELS = /* @__PURE__ */ new Set(["claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-sonnet-5-5"]);
|
|
33700
|
+
var CLAUDE_XHIGH_MODELS = /* @__PURE__ */ new Set(["claude-fable-5-1", "claude-fable-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-sonnet-5-5", "claude-sonnet-5"]);
|
|
33659
33701
|
function resolveClaudeModel(ctx) {
|
|
33660
33702
|
const model = typeof ctx.params.model === "string" && ctx.params.model.trim() ? ctx.params.model.trim() : void 0;
|
|
33661
33703
|
return model || void 0;
|
|
@@ -33880,12 +33922,12 @@ Accuracy:
|
|
|
33880
33922
|
|
|
33881
33923
|
// packages/feature/agent/src/server/engines/builtinAgent/session.ts
|
|
33882
33924
|
import { readFileSync as readFileSync3, existsSync as existsSync4, mkdirSync as mkdirSync3, appendFileSync } from "fs";
|
|
33883
|
-
import { join as
|
|
33925
|
+
import { join as join10 } from "path";
|
|
33884
33926
|
function getSessionDir(root, cwd) {
|
|
33885
|
-
return
|
|
33927
|
+
return join10(root, encodePath(cwd));
|
|
33886
33928
|
}
|
|
33887
33929
|
function getSessionPath(root, cwd, sessionId) {
|
|
33888
|
-
return
|
|
33930
|
+
return join10(getSessionDir(root, cwd), `${sessionId}.jsonl`);
|
|
33889
33931
|
}
|
|
33890
33932
|
function readSessionMessages(root, cwd, sessionId) {
|
|
33891
33933
|
const path5 = getSessionPath(root, cwd, sessionId);
|
|
@@ -47803,8 +47845,8 @@ config2(en_default());
|
|
|
47803
47845
|
|
|
47804
47846
|
// packages/feature/agent/src/server/engines/builtinAgent/tools.ts
|
|
47805
47847
|
import { readFileSync as readFileSync4, writeFileSync as writeFileSync3 } from "fs";
|
|
47806
|
-
import { writeFile as writeFile4, mkdir as mkdir4, readdir as
|
|
47807
|
-
import { isAbsolute as isAbsolute2, join as
|
|
47848
|
+
import { writeFile as writeFile4, mkdir as mkdir4, readdir as readdir5, stat as stat5, unlink } from "fs/promises";
|
|
47849
|
+
import { isAbsolute as isAbsolute2, join as join11 } from "path";
|
|
47808
47850
|
import { tmpdir } from "os";
|
|
47809
47851
|
import { exec, execFile as execFile3 } from "child_process";
|
|
47810
47852
|
import { promisify } from "util";
|
|
@@ -47812,19 +47854,19 @@ import fg from "fast-glob";
|
|
|
47812
47854
|
import { rgPath as RG_PATH } from "@vscode/ripgrep";
|
|
47813
47855
|
var execAsync = promisify(exec);
|
|
47814
47856
|
var execFileAsync = promisify(execFile3);
|
|
47815
|
-
var SPILL_DIR =
|
|
47857
|
+
var SPILL_DIR = join11(tmpdir(), "cockpit-tool-outputs");
|
|
47816
47858
|
var SPILL_MAX_FILES = 200;
|
|
47817
47859
|
async function spillToFile(text, kind) {
|
|
47818
47860
|
try {
|
|
47819
47861
|
await mkdir4(SPILL_DIR, { recursive: true });
|
|
47820
47862
|
try {
|
|
47821
|
-
const entries2 = await
|
|
47863
|
+
const entries2 = await readdir5(SPILL_DIR);
|
|
47822
47864
|
if (entries2.length >= SPILL_MAX_FILES) {
|
|
47823
47865
|
const statted = await Promise.all(
|
|
47824
47866
|
entries2.map(async (name) => {
|
|
47825
|
-
const p =
|
|
47867
|
+
const p = join11(SPILL_DIR, name);
|
|
47826
47868
|
try {
|
|
47827
|
-
return { p, mtime: (await
|
|
47869
|
+
return { p, mtime: (await stat5(p)).mtimeMs };
|
|
47828
47870
|
} catch {
|
|
47829
47871
|
return null;
|
|
47830
47872
|
}
|
|
@@ -47839,7 +47881,7 @@ async function spillToFile(text, kind) {
|
|
|
47839
47881
|
}
|
|
47840
47882
|
const stamp = Date.now().toString(36);
|
|
47841
47883
|
const rand = Math.random().toString(36).slice(2, 8);
|
|
47842
|
-
const file2 =
|
|
47884
|
+
const file2 = join11(SPILL_DIR, `${kind}-${stamp}-${rand}.log`);
|
|
47843
47885
|
await writeFile4(file2, text, "utf-8");
|
|
47844
47886
|
return file2;
|
|
47845
47887
|
} catch {
|
|
@@ -48750,7 +48792,7 @@ import { StringDecoder } from "string_decoder";
|
|
|
48750
48792
|
|
|
48751
48793
|
// packages/feature/agent/src/server/engines/codexAppServer/binary.ts
|
|
48752
48794
|
import { statSync as statSync3 } from "fs";
|
|
48753
|
-
import { join as
|
|
48795
|
+
import { join as join12, delimiter } from "path";
|
|
48754
48796
|
var CODEX_NPM_NAME = "@openai/codex";
|
|
48755
48797
|
var PLATFORM_PACKAGE_BY_TARGET = {
|
|
48756
48798
|
"x86_64-unknown-linux-musl": "@openai/codex-linux-x64",
|
|
@@ -48790,8 +48832,8 @@ var isFile = (p) => {
|
|
|
48790
48832
|
function platformPackageRoots(cockpitRoot, platformPackage) {
|
|
48791
48833
|
const parts2 = platformPackage.split("/");
|
|
48792
48834
|
return [
|
|
48793
|
-
|
|
48794
|
-
|
|
48835
|
+
join12(cockpitRoot, "node_modules", ...parts2),
|
|
48836
|
+
join12(cockpitRoot, "node_modules", CODEX_NPM_NAME, "node_modules", ...parts2)
|
|
48795
48837
|
];
|
|
48796
48838
|
}
|
|
48797
48839
|
function resolveCodexBinary() {
|
|
@@ -48803,14 +48845,14 @@ function resolveCodexBinary() {
|
|
|
48803
48845
|
const cockpitRoot = process.env.COCKPIT_ROOT || process.cwd();
|
|
48804
48846
|
const binaryName = process.platform === "win32" ? "codex.exe" : "codex";
|
|
48805
48847
|
for (const packageRootBase of platformPackageRoots(cockpitRoot, platformPackage)) {
|
|
48806
|
-
const packageRoot =
|
|
48807
|
-
const current2 =
|
|
48808
|
-
if (isFile(current2) && isFile(
|
|
48809
|
-
return { executablePath: current2, pathDirs: existingDirs(
|
|
48848
|
+
const packageRoot = join12(packageRootBase, "vendor", triple);
|
|
48849
|
+
const current2 = join12(packageRoot, "bin", binaryName);
|
|
48850
|
+
if (isFile(current2) && isFile(join12(packageRoot, "codex-package.json"))) {
|
|
48851
|
+
return { executablePath: current2, pathDirs: existingDirs(join12(packageRoot, "codex-path")) };
|
|
48810
48852
|
}
|
|
48811
|
-
const legacy =
|
|
48853
|
+
const legacy = join12(packageRoot, "codex", binaryName);
|
|
48812
48854
|
if (isFile(legacy)) {
|
|
48813
|
-
return { executablePath: legacy, pathDirs: existingDirs(
|
|
48855
|
+
return { executablePath: legacy, pathDirs: existingDirs(join12(packageRoot, "path")) };
|
|
48814
48856
|
}
|
|
48815
48857
|
}
|
|
48816
48858
|
throw new Error(
|
|
@@ -49191,12 +49233,12 @@ var CodexEventShim = class {
|
|
|
49191
49233
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
49192
49234
|
import { writeFileSync as writeFileSync6, unlinkSync as unlinkSync4, mkdirSync as mkdirSync5, existsSync as existsSync6, statSync as statSync4, openSync as openSync2, readSync as readSync2, closeSync as closeSync2 } from "fs";
|
|
49193
49235
|
import { StringDecoder as StringDecoder2 } from "string_decoder";
|
|
49194
|
-
import { join as
|
|
49236
|
+
import { join as join14 } from "path";
|
|
49195
49237
|
import { tmpdir as tmpdir2 } from "os";
|
|
49196
49238
|
|
|
49197
49239
|
// packages/feature/agent/src/server/engines/shared/noHistoryRollout.ts
|
|
49198
49240
|
import * as fs3 from "fs";
|
|
49199
|
-
import { dirname as dirname3, join as
|
|
49241
|
+
import { dirname as dirname3, join as join13 } from "path";
|
|
49200
49242
|
var STASH_SUFFIX = ".nohistory-backup";
|
|
49201
49243
|
function codexNoHistoryStashPath(sessionPath) {
|
|
49202
49244
|
return `${sessionPath}${STASH_SUFFIX}`;
|
|
@@ -49254,8 +49296,7 @@ function mergeStashedCodexRollout(sessionPath) {
|
|
|
49254
49296
|
const stash = codexNoHistoryStashPath(sessionPath);
|
|
49255
49297
|
if (!fs3.existsSync(stash)) return "none";
|
|
49256
49298
|
const history = readLines3(stash);
|
|
49257
|
-
const
|
|
49258
|
-
const turnLines = turn[0] && isSessionMeta(turn[0]) ? turn.slice(1) : turn;
|
|
49299
|
+
const turnLines = withoutStubMeta(fs3.existsSync(sessionPath) ? readLines3(sessionPath) : []);
|
|
49259
49300
|
if (turnLines.length === 0) {
|
|
49260
49301
|
replaceWithStash2(stash, sessionPath);
|
|
49261
49302
|
return "restored";
|
|
@@ -49268,6 +49309,9 @@ function mergeStashedCodexRollout(sessionPath) {
|
|
|
49268
49309
|
fs3.unlinkSync(stash);
|
|
49269
49310
|
return "merged";
|
|
49270
49311
|
}
|
|
49312
|
+
function withoutStubMeta(turn) {
|
|
49313
|
+
return turn[0] && isSessionMeta(turn[0]) ? turn.slice(1) : turn;
|
|
49314
|
+
}
|
|
49271
49315
|
function recoverStashedCodexRollouts(root = CODEX_SESSIONS_DIR) {
|
|
49272
49316
|
if (!fs3.existsSync(root)) return 0;
|
|
49273
49317
|
let repaired = 0;
|
|
@@ -49281,7 +49325,7 @@ function recoverStashedCodexRollouts(root = CODEX_SESSIONS_DIR) {
|
|
|
49281
49325
|
continue;
|
|
49282
49326
|
}
|
|
49283
49327
|
for (const entry of entries2) {
|
|
49284
|
-
const full =
|
|
49328
|
+
const full = join13(dir, entry.name);
|
|
49285
49329
|
if (entry.isDirectory()) {
|
|
49286
49330
|
stack.push(full);
|
|
49287
49331
|
} else if (entry.isFile() && full.endsWith(STASH_SUFFIX)) {
|
|
@@ -49400,11 +49444,11 @@ var MEDIA_EXT = {
|
|
|
49400
49444
|
"image/gif": ".gif"
|
|
49401
49445
|
};
|
|
49402
49446
|
function writeImagesToTemp(images) {
|
|
49403
|
-
const dir =
|
|
49447
|
+
const dir = join14(tmpdir2(), "cockpit-codex-images");
|
|
49404
49448
|
if (!existsSync6(dir)) mkdirSync5(dir, { recursive: true });
|
|
49405
49449
|
return images.map((img, i) => {
|
|
49406
49450
|
const ext = MEDIA_EXT[img.media_type] || ".png";
|
|
49407
|
-
const filePath =
|
|
49451
|
+
const filePath = join14(dir, `img-${Date.now()}-${i}${ext}`);
|
|
49408
49452
|
writeFileSync6(filePath, Buffer.from(img.data, "base64"));
|
|
49409
49453
|
return filePath;
|
|
49410
49454
|
});
|
|
@@ -49979,11 +50023,11 @@ var SESSION_ID_TIMEOUT = Duration_exports.seconds(60);
|
|
|
49979
50023
|
var TAIL_BYTES = 1024 * 1024;
|
|
49980
50024
|
var str = (v) => typeof v === "string" && v.trim() ? v.trim() : void 0;
|
|
49981
50025
|
var invalid = (field, reason) => new ValidationError({ field, reason });
|
|
49982
|
-
var isDirectory2 = (p) => Effect_exports.tryPromise(() =>
|
|
50026
|
+
var isDirectory2 = (p) => Effect_exports.tryPromise(() => stat6(p)).pipe(
|
|
49983
50027
|
Effect_exports.map((s) => s.isDirectory()),
|
|
49984
50028
|
Effect_exports.orElseSucceed(() => false)
|
|
49985
50029
|
);
|
|
49986
|
-
var fileExists = (p) => Effect_exports.tryPromise(() =>
|
|
50030
|
+
var fileExists = (p) => Effect_exports.tryPromise(() => stat6(p)).pipe(
|
|
49987
50031
|
Effect_exports.map((s) => s.isFile()),
|
|
49988
50032
|
Effect_exports.orElseSucceed(() => false)
|
|
49989
50033
|
);
|
|
@@ -50304,20 +50348,20 @@ import {
|
|
|
50304
50348
|
statSync as statSync5,
|
|
50305
50349
|
writeFileSync as writeFileSync7
|
|
50306
50350
|
} from "fs";
|
|
50307
|
-
import path2, { join as
|
|
50351
|
+
import path2, { join as join15 } from "path";
|
|
50308
50352
|
var BUILTIN_BOT_ID_PREFIX = "builtin:";
|
|
50309
50353
|
var isBuiltinBotId = (id3) => id3.startsWith(BUILTIN_BOT_ID_PREFIX);
|
|
50310
50354
|
var builtinBotNameFromId = (id3) => isBuiltinBotId(id3) ? id3.slice(BUILTIN_BOT_ID_PREFIX.length) : "";
|
|
50311
|
-
var builtinBotSeedDir = (name) =>
|
|
50312
|
-
var builtinBotUserDir = (name) =>
|
|
50355
|
+
var builtinBotSeedDir = (name) => join15(BUILTIN_BOTS_SRC_DIR, name);
|
|
50356
|
+
var builtinBotUserDir = (name) => join15(BOTS_DIR, name);
|
|
50313
50357
|
var hasManifest = (dir) => {
|
|
50314
50358
|
try {
|
|
50315
|
-
return statSync5(
|
|
50359
|
+
return statSync5(join15(dir, BOT_MANIFEST_FILE)).isFile();
|
|
50316
50360
|
} catch {
|
|
50317
50361
|
return false;
|
|
50318
50362
|
}
|
|
50319
50363
|
};
|
|
50320
|
-
var INSTALL_STATE_FILE =
|
|
50364
|
+
var INSTALL_STATE_FILE = join15(BOTS_DIR, ".builtin-installs.json");
|
|
50321
50365
|
var readInstallState = () => {
|
|
50322
50366
|
try {
|
|
50323
50367
|
const raw = JSON.parse(readFileSync7(INSTALL_STATE_FILE, "utf-8"));
|
|
@@ -50341,10 +50385,10 @@ var hashFile = (file2) => createHash2("sha256").update(readFileSync7(file2)).dig
|
|
|
50341
50385
|
function fileHashes(dir) {
|
|
50342
50386
|
const out = /* @__PURE__ */ new Map();
|
|
50343
50387
|
const walk = (rel) => {
|
|
50344
|
-
for (const entry of readdirSync4(
|
|
50388
|
+
for (const entry of readdirSync4(join15(dir, rel), { withFileTypes: true })) {
|
|
50345
50389
|
const child = rel ? `${rel}/${entry.name}` : entry.name;
|
|
50346
50390
|
if (entry.isDirectory()) walk(child);
|
|
50347
|
-
else if (entry.isFile()) out.set(child, hashFile(
|
|
50391
|
+
else if (entry.isFile()) out.set(child, hashFile(join15(dir, child)));
|
|
50348
50392
|
}
|
|
50349
50393
|
};
|
|
50350
50394
|
walk("");
|
|
@@ -50375,17 +50419,17 @@ function swapIn(staging, dest) {
|
|
|
50375
50419
|
}
|
|
50376
50420
|
}
|
|
50377
50421
|
var stagingDir = (label) => {
|
|
50378
|
-
const staging =
|
|
50422
|
+
const staging = join15(BOTS_DIR, `.${label}.installing-${process.pid}-${Date.now()}`);
|
|
50379
50423
|
mkdirSync6(BOTS_DIR, { recursive: true });
|
|
50380
50424
|
rmSync(staging, { recursive: true, force: true });
|
|
50381
50425
|
return staging;
|
|
50382
50426
|
};
|
|
50383
50427
|
function removeAndPrune(root, rel) {
|
|
50384
|
-
rmSync(
|
|
50428
|
+
rmSync(join15(root, rel), { force: true });
|
|
50385
50429
|
for (let dir = path2.dirname(rel); dir && dir !== "."; dir = path2.dirname(dir)) {
|
|
50386
50430
|
try {
|
|
50387
|
-
if (readdirSync4(
|
|
50388
|
-
rmdirSync(
|
|
50431
|
+
if (readdirSync4(join15(root, dir)).length > 0) return;
|
|
50432
|
+
rmdirSync(join15(root, dir));
|
|
50389
50433
|
} catch {
|
|
50390
50434
|
return;
|
|
50391
50435
|
}
|
|
@@ -50424,8 +50468,8 @@ function refreshInstalled(name, dest, installed) {
|
|
|
50424
50468
|
cpSync(dest, staging, { recursive: true });
|
|
50425
50469
|
for (const rel of deletes) removeAndPrune(staging, rel);
|
|
50426
50470
|
for (const rel of writes) {
|
|
50427
|
-
mkdirSync6(
|
|
50428
|
-
cpSync(
|
|
50471
|
+
mkdirSync6(join15(staging, path2.dirname(rel)), { recursive: true });
|
|
50472
|
+
cpSync(join15(seed, rel), join15(staging, rel));
|
|
50429
50473
|
}
|
|
50430
50474
|
swapIn(staging, dest);
|
|
50431
50475
|
} catch (err) {
|
|
@@ -50455,14 +50499,14 @@ function syncBuiltinBot(name, state) {
|
|
|
50455
50499
|
if (!record2?.files) return { dir: dest, changed: false };
|
|
50456
50500
|
const seedHash = treeHash(fileHashes(seed));
|
|
50457
50501
|
if (record2.seed === seedHash) return { dir: dest, changed: false };
|
|
50458
|
-
if (existsSync8(
|
|
50502
|
+
if (existsSync8(join15(dest, ".locks", "write"))) return { dir: dest, changed: false };
|
|
50459
50503
|
state[name] = { seed: seedHash, files: refreshInstalled(name, dest, record2.files) };
|
|
50460
50504
|
return { dir: dest, changed: true };
|
|
50461
50505
|
}
|
|
50462
50506
|
var messageOf2 = (cause3) => cause3 instanceof Error ? cause3.message : String(cause3);
|
|
50463
50507
|
function parseManifestIn(dir) {
|
|
50464
50508
|
try {
|
|
50465
|
-
const content = readFileSync7(
|
|
50509
|
+
const content = readFileSync7(join15(dir, BOT_MANIFEST_FILE), "utf-8");
|
|
50466
50510
|
return { ok: true, ...parseBotDocument(path2, content, dir) };
|
|
50467
50511
|
} catch (err) {
|
|
50468
50512
|
return { ok: false, error: messageOf2(err) };
|
|
@@ -50648,6 +50692,8 @@ var AppLayer = Layer_exports.mergeAll(
|
|
|
50648
50692
|
SnapshotServiceLive,
|
|
50649
50693
|
// Ollama session transcript retention (daily sweep)
|
|
50650
50694
|
SessionCleanupLive,
|
|
50695
|
+
// /go decision notes retention (daily sweep, 30 days)
|
|
50696
|
+
GoNotesCleanupLive,
|
|
50651
50697
|
// Cross-project session search (/api/sessions/search)
|
|
50652
50698
|
SessionSearchServiceLive,
|
|
50653
50699
|
// Fire-and-forget sub-task sessions + session status (/api/sessions/delegate, /status)
|
|
@@ -50761,11 +50807,11 @@ function snapshotOnRunEvent(cwd, sessionKey, provider, event) {
|
|
|
50761
50807
|
|
|
50762
50808
|
// packages/feature/agent/src/server/lib/slashCommands.ts
|
|
50763
50809
|
import { mkdirSync as mkdirSync7, writeFileSync as writeFileSync8, readFileSync as readFileSync10 } from "fs";
|
|
50764
|
-
import path4, { join as
|
|
50810
|
+
import path4, { join as join17 } from "path";
|
|
50765
50811
|
|
|
50766
50812
|
// packages/feature/agent/src/server/lib/builtinSkills.ts
|
|
50767
50813
|
import { readFileSync as readFileSync9, readdirSync as readdirSync5, statSync as statSync6 } from "fs";
|
|
50768
|
-
import { join as
|
|
50814
|
+
import { join as join16 } from "path";
|
|
50769
50815
|
function listBuiltinSkillNames() {
|
|
50770
50816
|
let entries2;
|
|
50771
50817
|
try {
|
|
@@ -50786,18 +50832,18 @@ function listBuiltinSkillNames() {
|
|
|
50786
50832
|
}).sort();
|
|
50787
50833
|
}
|
|
50788
50834
|
function builtinSkillPath(name) {
|
|
50789
|
-
return
|
|
50835
|
+
return join16(BUILTIN_SKILLS_SRC_DIR, name, "SKILL.md");
|
|
50790
50836
|
}
|
|
50791
50837
|
function listBuiltinSkillExtras(name) {
|
|
50792
50838
|
try {
|
|
50793
|
-
return readdirSync5(
|
|
50839
|
+
return readdirSync5(join16(BUILTIN_SKILLS_SRC_DIR, name), { withFileTypes: true }).filter((e) => e.isFile() && e.name.endsWith(".md") && e.name !== "SKILL.md").map((e) => e.name).sort();
|
|
50794
50840
|
} catch {
|
|
50795
50841
|
return [];
|
|
50796
50842
|
}
|
|
50797
50843
|
}
|
|
50798
50844
|
function readBuiltinSkillExtra(name, file2) {
|
|
50799
50845
|
try {
|
|
50800
|
-
return readFileSync9(
|
|
50846
|
+
return readFileSync9(join16(BUILTIN_SKILLS_SRC_DIR, name, file2), "utf-8");
|
|
50801
50847
|
} catch {
|
|
50802
50848
|
return null;
|
|
50803
50849
|
}
|
|
@@ -50817,7 +50863,7 @@ function readFrontmatterField(text, field) {
|
|
|
50817
50863
|
}
|
|
50818
50864
|
|
|
50819
50865
|
// packages/feature/agent/src/server/lib/slashCommands.ts
|
|
50820
|
-
var BUILTIN_SKILLS_OUT_DIR =
|
|
50866
|
+
var BUILTIN_SKILLS_OUT_DIR = join17(COCKPIT_DIR, "skills");
|
|
50821
50867
|
function deriveBaseUrl() {
|
|
50822
50868
|
const port3 = process.env.COCKPIT_PORT || process.env.PORT || "3457";
|
|
50823
50869
|
return `http://localhost:${port3}`;
|
|
@@ -51005,16 +51051,16 @@ function readSkillName(path5) {
|
|
|
51005
51051
|
}
|
|
51006
51052
|
function writeBuiltinSkill(cmd, content, baseUrl) {
|
|
51007
51053
|
try {
|
|
51008
|
-
const dir =
|
|
51054
|
+
const dir = join17(BUILTIN_SKILLS_OUT_DIR, cmd);
|
|
51009
51055
|
mkdirSync7(dir, { recursive: true });
|
|
51010
|
-
const filePath =
|
|
51056
|
+
const filePath = join17(dir, "SKILL.md");
|
|
51011
51057
|
writeFileSync8(filePath, content.endsWith("\n") ? content : `${content}
|
|
51012
51058
|
`, "utf-8");
|
|
51013
51059
|
for (const file2 of listBuiltinSkillExtras(cmd)) {
|
|
51014
51060
|
const extra = readBuiltinSkillExtra(cmd, file2);
|
|
51015
51061
|
if (extra === null) continue;
|
|
51016
51062
|
try {
|
|
51017
|
-
writeFileSync8(
|
|
51063
|
+
writeFileSync8(join17(dir, file2), substitute(extra, baseUrl), "utf-8");
|
|
51018
51064
|
} catch (err) {
|
|
51019
51065
|
console.error(`[skills] builtin "${cmd}": cannot write reference file ${file2}:`, err);
|
|
51020
51066
|
}
|
|
@@ -51176,6 +51222,8 @@ export {
|
|
|
51176
51222
|
ValidationError,
|
|
51177
51223
|
NotFoundError,
|
|
51178
51224
|
errorToStatus,
|
|
51225
|
+
COCKPIT_DIR,
|
|
51226
|
+
COCKPIT_PROJECTS_DIR,
|
|
51179
51227
|
GLOBAL_STATE_FILE,
|
|
51180
51228
|
SCHEDULED_TASKS_FILE,
|
|
51181
51229
|
REVIEW_DIR,
|