@surething/cockpit 1.0.276 → 1.0.277
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 +5 -4
- 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 +1 -1
- package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/connect/route.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/export/route.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/query/route.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/deepseek/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/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 +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route.js +1 -1
- 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 -0
- package/.next-prod/server/app/api/ollama/default-model/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/ollama/default-model/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/ollama/models/route.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js +1 -1
- package/.next-prod/server/app/api/pick-folder/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-settings/route.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/project-state/route.js +2 -2
- package/.next-prod/server/app/api/project-state/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/affected/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/coedit/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/context/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/risk/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/projects/route.js +1 -1
- package/.next-prod/server/app/api/projects/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/command/route.js +1 -1
- package/.next-prod/server/app/api/redis/command/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/get/route.js +1 -1
- package/.next-prod/server/app/api/redis/get/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/redis/set/route.js +1 -1
- package/.next-prod/server/app/api/redis/set/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/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 -0
- package/.next-prod/server/app/api/snapshots/range-diff/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/snapshots/range-diff/route_client-reference-manifest.js +1 -0
- 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/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 +5 -4
- package/.next-prod/server/chunks/2493.js +20 -20
- package/.next-prod/server/chunks/6548.js +1 -1
- package/.next-prod/server/chunks/7438.js +14 -14
- package/.next-prod/server/chunks/{3354.js → 8131.js} +2 -2
- package/.next-prod/server/chunks/9830.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/chunks/{88707-2ab6211efb1fae85.js → 15546-54f06dcff501835d.js} +2 -2
- package/.next-prod/static/chunks/89656-1b5bae337f6b6892.js +34 -0
- package/.next-prod/static/chunks/95313-96a541e7ce6f76c4.js +17 -0
- package/.next-prod/static/chunks/99092-7b5fa4560a398020.js +716 -0
- package/.next-prod/static/chunks/{50015-b81552adf20a6a33.js → 99365-c697e983b9728d08.js} +2 -2
- package/.next-prod/static/chunks/app/_global-error/page-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/agent/test/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/bash/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/bots/[id]/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/bots/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/glm/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/stop/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/balance/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/models/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/dev/spans/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/blob/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/current-branch/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/credentials/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/models/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/usage/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/health/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/instructions/config/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/credentials/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/models/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/usage/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/config/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/default-model/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/pick-folder/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/push/public-key/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/push/subscribe/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/restart/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/[id]/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/identify/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/order/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/share-info/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/review/users/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/session/user-messages/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/delegate/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/search/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/status/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/shutdown/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/blob/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/update/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/update-state/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/apps/[...path]/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/{layout-347ca1b3228d5b23.js → layout-f3f9426dccb507b2.js} +1 -1
- package/.next-prod/static/chunks/app/m/page-ba0be89e67f08b6d.js +1 -0
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/app/{page-2ade7ecd21636624.js → page-d97e5df9486f39cb.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-2ade7ecd21636624.js → page-d97e5df9486f39cb.js} +1 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6ac899b2cd280c12.js +1 -0
- package/.next-prod/static/css/e6181fb6c73884b4.css +1 -0
- package/.next-prod/static/yEJ9Z5Bjv9ti4WeYINfCs/_buildManifest.js +1 -0
- package/.next-prod/trace +15 -15
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/{sessions → ollama/default-model}/route.ts +3 -3
- package/.next-prod/types/app/api/snapshots/range-diff/route.ts +353 -0
- package/.next-prod/types/routes.d.ts +3 -2
- package/.next-prod/types/validator.ts +18 -9
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/bin/cock-codegraph.mjs +58 -58
- package/bin/cock-connection.mjs +1 -1
- package/bin/cock-terminal.mjs +17 -17
- package/bin/cockpit-dev.mjs +3 -4
- package/bin/cockpit.mjs +243 -9
- package/bin/setup-dev.mjs +3 -4
- package/dist/{chunk-QY2K7YIF.mjs → chunk-5ZXPIG4Z.mjs} +1 -1
- package/dist/{chunk-BCWVTDEZ.mjs → chunk-SGVT4QFB.mjs} +370 -93
- package/dist/httpApi.mjs +2 -2
- package/dist/scheduledTasks.mjs +71 -14
- package/dist/wsServer.mjs +2 -2
- package/package.json +3 -4
- package/skills/bot/SKILL.md +3 -3
- package/skills/bot-run/SKILL.md +54 -117
- package/skills/bot-run/followup.md +38 -0
- package/skills/bot-run/wait.md +76 -0
- package/skills/bot-turn/SKILL.md +7 -0
- package/skills/cc/SKILL.md +0 -1
- package/skills/dl/SKILL.md +4 -1
- package/.next-prod/server/app/api/sessions/route.js +0 -1
- package/.next-prod/server/app/api/sessions/route.js.nft.json +0 -1
- package/.next-prod/server/app/api/sessions/route_client-reference-manifest.js +0 -1
- package/.next-prod/static/O8neHUIr3dQhe1jcOUsQ8/_buildManifest.js +0 -1
- package/.next-prod/static/chunks/72539-049ac78fc767d177.js +0 -17
- package/.next-prod/static/chunks/89656-d9dd3a8559041236.js +0 -34
- package/.next-prod/static/chunks/99092-5b836813f4b1d4b3.js +0 -716
- package/.next-prod/static/chunks/app/_global-error/page-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/bots/[id]/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/bots/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/glm/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/balance/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/models/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/blob/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/credentials/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/models/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/usage/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/instructions/config/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/credentials/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/models/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/usage/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/config/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/restart/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/session/user-messages/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/delegate/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/search/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/status/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/shutdown/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/blob/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/update/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/update-state/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/apps/[...path]/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/app/m/page-8f4f88b0d67c4181.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-e2f146f38bb4df42.js +0 -1
- package/.next-prod/static/css/7a02a222d1299650.css +0 -1
- package/bin/cock.mjs +0 -239
- /package/.next-prod/static/{O8neHUIr3dQhe1jcOUsQ8 → yEJ9Z5Bjv9ti4WeYINfCs}/_ssgManifest.js +0 -0
|
@@ -7299,8 +7299,8 @@ var fromFlatLoop = (flat, prefix, config3, split3) => {
|
|
|
7299
7299
|
}
|
|
7300
7300
|
if (isRight2(left3) && isRight2(right3)) {
|
|
7301
7301
|
const path5 = pipe(prefix, join("."));
|
|
7302
|
-
const
|
|
7303
|
-
const [lefts, rights] = extend(
|
|
7302
|
+
const fail21 = fromFlatLoopFail(prefix, path5);
|
|
7303
|
+
const [lefts, rights] = extend(fail21, fail21, pipe(left3.right, map3(right2)), pipe(right3.right, map3(right2)));
|
|
7304
7304
|
return pipe(lefts, zip(rights), forEachSequential(([left4, right4]) => pipe(zip2(left4, right4), map10(([left5, right5]) => op.zip(left5, right5)))));
|
|
7305
7305
|
}
|
|
7306
7306
|
throw new Error("BUG: ConfigProvider.fromFlatLoop - please report an issue at https://github.com/Effect-TS/effect/issues");
|
|
@@ -9625,21 +9625,21 @@ var tryPromise = (arg) => {
|
|
|
9625
9625
|
evaluate3 = arg.try;
|
|
9626
9626
|
catcher = arg.catch;
|
|
9627
9627
|
}
|
|
9628
|
-
const
|
|
9628
|
+
const fail21 = (e) => catcher ? failSync(() => catcher(e)) : fail2(new UnknownException(e, "An unknown error occurred in Effect.tryPromise"));
|
|
9629
9629
|
if (evaluate3.length >= 1) {
|
|
9630
9630
|
return async_((resolve3, signal) => {
|
|
9631
9631
|
try {
|
|
9632
|
-
evaluate3(signal).then((a) => resolve3(succeed(a)), (e) => resolve3(
|
|
9632
|
+
evaluate3(signal).then((a) => resolve3(succeed(a)), (e) => resolve3(fail21(e)));
|
|
9633
9633
|
} catch (e) {
|
|
9634
|
-
resolve3(
|
|
9634
|
+
resolve3(fail21(e));
|
|
9635
9635
|
}
|
|
9636
9636
|
});
|
|
9637
9637
|
}
|
|
9638
9638
|
return async_((resolve3) => {
|
|
9639
9639
|
try {
|
|
9640
|
-
evaluate3().then((a) => resolve3(succeed(a)), (e) => resolve3(
|
|
9640
|
+
evaluate3().then((a) => resolve3(succeed(a)), (e) => resolve3(fail21(e)));
|
|
9641
9641
|
} catch (e) {
|
|
9642
|
-
resolve3(
|
|
9642
|
+
resolve3(fail21(e));
|
|
9643
9643
|
}
|
|
9644
9644
|
});
|
|
9645
9645
|
};
|
|
@@ -27344,11 +27344,11 @@ var date = (name) => {
|
|
|
27344
27344
|
return name === void 0 ? config3 : nested2(config3, name);
|
|
27345
27345
|
};
|
|
27346
27346
|
var fail17 = (message) => {
|
|
27347
|
-
const
|
|
27348
|
-
|
|
27349
|
-
|
|
27350
|
-
|
|
27351
|
-
return
|
|
27347
|
+
const fail21 = Object.create(proto13);
|
|
27348
|
+
fail21._tag = OP_FAIL2;
|
|
27349
|
+
fail21.message = message;
|
|
27350
|
+
fail21.parse = () => left2(Unsupported([], message));
|
|
27351
|
+
return fail21;
|
|
27352
27352
|
};
|
|
27353
27353
|
var number4 = (name) => {
|
|
27354
27354
|
const config3 = primitive("a number property", (text) => {
|
|
@@ -29018,7 +29018,7 @@ function getUsageUpdateOutputTokens(message) {
|
|
|
29018
29018
|
const outputTokens = message.output_tokens;
|
|
29019
29019
|
return typeof outputTokens === "number" && Number.isFinite(outputTokens) ? Math.max(0, Math.round(outputTokens)) : null;
|
|
29020
29020
|
}
|
|
29021
|
-
function startRun(key, cwd, promptText, runId) {
|
|
29021
|
+
function startRun(key, cwd, promptText, runId, engine) {
|
|
29022
29022
|
const prev = registry.get(key);
|
|
29023
29023
|
if (prev?.status === "running") return false;
|
|
29024
29024
|
const prevSeq = prev?.seq ?? seqByKey.get(key) ?? 0;
|
|
@@ -29035,6 +29035,7 @@ function startRun(key, cwd, promptText, runId) {
|
|
|
29035
29035
|
events: [],
|
|
29036
29036
|
startedAt,
|
|
29037
29037
|
...runId ? { runId } : {},
|
|
29038
|
+
...engine ? { engine } : {},
|
|
29038
29039
|
updatedAt: startedAt
|
|
29039
29040
|
});
|
|
29040
29041
|
if (promptText) {
|
|
@@ -29105,7 +29106,7 @@ function getRunSessionId(key) {
|
|
|
29105
29106
|
function getRunInfo(key) {
|
|
29106
29107
|
const r = registry.get(key);
|
|
29107
29108
|
if (!r) return null;
|
|
29108
|
-
return { cwd: r.cwd, sessionId: r.sessionId ?? null };
|
|
29109
|
+
return { cwd: r.cwd, sessionId: r.sessionId ?? null, engine: r.engine ?? null };
|
|
29109
29110
|
}
|
|
29110
29111
|
function setRunAbort(key, abort) {
|
|
29111
29112
|
const r = registry.get(key);
|
|
@@ -29144,6 +29145,41 @@ function normalizeBase(raw) {
|
|
|
29144
29145
|
async function readOllamaStoredConfig() {
|
|
29145
29146
|
return readJsonFile(OLLAMA_CONFIG_FILE, {});
|
|
29146
29147
|
}
|
|
29148
|
+
async function writeOllamaStoredConfig(patch9) {
|
|
29149
|
+
return mutateJsonFile(OLLAMA_CONFIG_FILE, {}, (cur) => {
|
|
29150
|
+
const next4 = { ...cur };
|
|
29151
|
+
if (patch9.baseUrl !== void 0) {
|
|
29152
|
+
const v = patch9.baseUrl.trim();
|
|
29153
|
+
if (v) next4.baseUrl = v;
|
|
29154
|
+
else delete next4.baseUrl;
|
|
29155
|
+
}
|
|
29156
|
+
if (patch9.apiKey !== void 0) {
|
|
29157
|
+
const v = patch9.apiKey.trim();
|
|
29158
|
+
if (v) next4.apiKey = v;
|
|
29159
|
+
else delete next4.apiKey;
|
|
29160
|
+
}
|
|
29161
|
+
if (patch9.lastModel !== void 0) {
|
|
29162
|
+
const v = patch9.lastModel.trim();
|
|
29163
|
+
if (v) next4.lastModel = v;
|
|
29164
|
+
else delete next4.lastModel;
|
|
29165
|
+
}
|
|
29166
|
+
return next4;
|
|
29167
|
+
});
|
|
29168
|
+
}
|
|
29169
|
+
async function readOllamaLastModel() {
|
|
29170
|
+
return (await readOllamaStoredConfig()).lastModel?.trim() || void 0;
|
|
29171
|
+
}
|
|
29172
|
+
async function rememberOllamaLastModel(model) {
|
|
29173
|
+
const v = model.trim();
|
|
29174
|
+
if (!v) return;
|
|
29175
|
+
if ((await readOllamaStoredConfig()).lastModel === v) return;
|
|
29176
|
+
await writeOllamaStoredConfig({ lastModel: v });
|
|
29177
|
+
}
|
|
29178
|
+
async function resolveOllamaBaseURL() {
|
|
29179
|
+
const cfg = await readOllamaStoredConfig();
|
|
29180
|
+
const raw = cfg.baseUrl?.trim() || process.env.OLLAMA_BASE_URL || DEFAULT_BASE;
|
|
29181
|
+
return normalizeBase(raw);
|
|
29182
|
+
}
|
|
29147
29183
|
async function resolveOllamaConnection() {
|
|
29148
29184
|
const cfg = await readOllamaStoredConfig();
|
|
29149
29185
|
const baseUrl = normalizeBase(
|
|
@@ -29192,6 +29228,14 @@ function estimateOutputUnits(text) {
|
|
|
29192
29228
|
return Math.max(1, Math.ceil(cjk + other / 4));
|
|
29193
29229
|
}
|
|
29194
29230
|
|
|
29231
|
+
// packages/feature/agent/src/shared/botSession.ts
|
|
29232
|
+
var BOT_TASK_LINE = /^Task:\s*@([a-z0-9][a-z0-9-]{0,63})(?=[\s:]|$)/;
|
|
29233
|
+
var detectBotName = (firstUserMessage) => {
|
|
29234
|
+
if (!firstUserMessage) return void 0;
|
|
29235
|
+
const firstLine = firstUserMessage.trimStart().split("\n", 1)[0];
|
|
29236
|
+
return BOT_TASK_LINE.exec(firstLine)?.[1];
|
|
29237
|
+
};
|
|
29238
|
+
|
|
29195
29239
|
// packages/feature/agent/src/server/state/globalState.ts
|
|
29196
29240
|
import { createReadStream, existsSync as existsSync2, statSync as statSync2 } from "fs";
|
|
29197
29241
|
import { createInterface } from "readline";
|
|
@@ -29388,7 +29432,13 @@ async function updateGlobalState(cwd, sessionId, status3, title, lastUserMessage
|
|
|
29388
29432
|
lastUserMessage: truncate(lastUserMessage || existing?.lastUserMessage),
|
|
29389
29433
|
// Carried like title/lastUserMessage: status-only updates (the client's
|
|
29390
29434
|
// /api/global-state PATCH) pass no engine and must not erase it.
|
|
29391
|
-
engine: engine || existing?.engine
|
|
29435
|
+
engine: engine || existing?.engine,
|
|
29436
|
+
// A Bot names itself in the session's FIRST message, so only the first
|
|
29437
|
+
// write of a session can see it — by the second, `lastUserMessage` has
|
|
29438
|
+
// moved on. Hence: derive on insert, carry forward on every update. A
|
|
29439
|
+
// session that predates this field stays unmarked here and is marked from
|
|
29440
|
+
// disk by getSessionPreview instead, which is the slower but complete path.
|
|
29441
|
+
bot: existed ? existing?.bot : detectBotName(lastUserMessage)
|
|
29392
29442
|
};
|
|
29393
29443
|
if (existingIndex >= 0) {
|
|
29394
29444
|
state.sessions[existingIndex] = newSession;
|
|
@@ -29488,13 +29538,15 @@ async function getSessionContent(cwd, sessionId) {
|
|
|
29488
29538
|
async function getSessionPreview(cwd, sessionId, opts) {
|
|
29489
29539
|
const { aiTitle, summary: summary5, messages } = await getSessionContent(cwd, sessionId);
|
|
29490
29540
|
const title = generateTitle(aiTitle, summary5, messages);
|
|
29541
|
+
const bot = detectBotName(messages[0]);
|
|
29491
29542
|
const lastUserMessage = messages[messages.length - 1];
|
|
29492
29543
|
const searchText = opts?.includeSearchText ? [summary5, ...messages].join("\n").toLowerCase() : "";
|
|
29493
29544
|
if (messages.length <= SUMMARY_THRESHOLD) {
|
|
29494
|
-
return { title, lastUserMessage, firstMessages: messages.map((m) => truncate(m)), lastMessages: [], searchText };
|
|
29545
|
+
return { title, bot, lastUserMessage, firstMessages: messages.map((m) => truncate(m)), lastMessages: [], searchText };
|
|
29495
29546
|
}
|
|
29496
29547
|
return {
|
|
29497
29548
|
title,
|
|
29549
|
+
bot,
|
|
29498
29550
|
lastUserMessage,
|
|
29499
29551
|
firstMessages: messages.slice(0, SUMMARY_HEAD).map((m) => truncate(m)),
|
|
29500
29552
|
lastMessages: messages.slice(-SUMMARY_TAIL).map((m) => truncate(m)),
|
|
@@ -29537,6 +29589,9 @@ async function getGlobalSessionsSnapshot(limit = 15) {
|
|
|
29537
29589
|
// (preview degrades to UNTITLED_SESSION). Mirrors /api/global-state.
|
|
29538
29590
|
title: preview.title !== UNTITLED_SESSION ? preview.title : session.title ?? preview.title,
|
|
29539
29591
|
lastUserMessage: preview.lastUserMessage ?? session.lastUserMessage,
|
|
29592
|
+
// Disk wins: it reads the true first message, while the persisted value
|
|
29593
|
+
// is only there for sessions this snapshot never opens (the running ones).
|
|
29594
|
+
bot: preview.bot ?? session.bot,
|
|
29540
29595
|
firstMessages: preview.firstMessages,
|
|
29541
29596
|
lastMessages: preview.lastMessages
|
|
29542
29597
|
};
|
|
@@ -31458,29 +31513,7 @@ var blobImpl = (snapshotsRoot, cwd, rev, file2) => Effect_exports.gen(function*
|
|
|
31458
31513
|
const bytes = yield* gitShowBytes(repoDir, cwd, rev, file2);
|
|
31459
31514
|
return new Uint8Array(bytes);
|
|
31460
31515
|
}).pipe(Effect_exports.withSpan("snapshot.blob", { attributes: { cwd, rev } }));
|
|
31461
|
-
var
|
|
31462
|
-
if (!/^[0-9a-f]{6,40}$/i.test(commitHash)) {
|
|
31463
|
-
return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "invalid commit hash" }));
|
|
31464
|
-
}
|
|
31465
|
-
const repoDir = yield* resolveRepoDir(snapshotsRoot, cwd);
|
|
31466
|
-
const repoExists = yield* fsTry(
|
|
31467
|
-
"stat HEAD",
|
|
31468
|
-
() => stat(join5(repoDir, "HEAD")).then(() => true)
|
|
31469
|
-
).pipe(Effect_exports.orElseSucceed(() => false));
|
|
31470
|
-
if (!repoExists) {
|
|
31471
|
-
return yield* Effect_exports.fail(new NotFoundError({ resource: "snapshot-repo", id: cwd }));
|
|
31472
|
-
}
|
|
31473
|
-
const log3 = yield* runGitOk(repoDir, cwd, [
|
|
31474
|
-
"log",
|
|
31475
|
-
"-1",
|
|
31476
|
-
"--format=%x1e%H%x1f%P%x1f%ct%x1f%B",
|
|
31477
|
-
commitHash
|
|
31478
|
-
]);
|
|
31479
|
-
const commit3 = commitFromLogRecord(log3.stdout.split("").filter(Boolean)[0] ?? "");
|
|
31480
|
-
if (!commit3) {
|
|
31481
|
-
return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "commit not found" }));
|
|
31482
|
-
}
|
|
31483
|
-
const base = commit3.parent ?? EMPTY_TREE;
|
|
31516
|
+
var collectRangeFiles = (repoDir, cwd, base, head6) => Effect_exports.gen(function* () {
|
|
31484
31517
|
const nameStatus = yield* runGitOk(repoDir, cwd, [
|
|
31485
31518
|
"diff-tree",
|
|
31486
31519
|
"-r",
|
|
@@ -31488,7 +31521,7 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
|
|
|
31488
31521
|
"--no-renames",
|
|
31489
31522
|
"--name-status",
|
|
31490
31523
|
base,
|
|
31491
|
-
|
|
31524
|
+
head6
|
|
31492
31525
|
]);
|
|
31493
31526
|
const numstat = yield* runGitOk(repoDir, cwd, [
|
|
31494
31527
|
"diff-tree",
|
|
@@ -31497,7 +31530,7 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
|
|
|
31497
31530
|
"--no-renames",
|
|
31498
31531
|
"--numstat",
|
|
31499
31532
|
base,
|
|
31500
|
-
|
|
31533
|
+
head6
|
|
31501
31534
|
]);
|
|
31502
31535
|
const binarySet = /* @__PURE__ */ new Set();
|
|
31503
31536
|
const lineStats = /* @__PURE__ */ new Map();
|
|
@@ -31521,7 +31554,7 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
|
|
|
31521
31554
|
let newContent = null;
|
|
31522
31555
|
if (!binary) {
|
|
31523
31556
|
if (status3 !== "added") oldContent = yield* showFile(repoDir, cwd, base, path5);
|
|
31524
|
-
if (status3 !== "deleted") newContent = yield* showFile(repoDir, cwd,
|
|
31557
|
+
if (status3 !== "deleted") newContent = yield* showFile(repoDir, cwd, head6, path5);
|
|
31525
31558
|
if ((oldContent?.length ?? 0) > MAX_DIFF_CONTENT_BYTES || (newContent?.length ?? 0) > MAX_DIFF_CONTENT_BYTES) {
|
|
31526
31559
|
oldContent = null;
|
|
31527
31560
|
newContent = null;
|
|
@@ -31539,17 +31572,75 @@ var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function*
|
|
|
31539
31572
|
newContent,
|
|
31540
31573
|
...isImage ? {
|
|
31541
31574
|
isImage: true,
|
|
31542
|
-
// A
|
|
31543
|
-
//
|
|
31544
|
-
//
|
|
31575
|
+
// A range rooted at the empty tree reports every path as
|
|
31576
|
+
// "added", so EMPTY_TREE is never handed out as a revision the
|
|
31577
|
+
// client could ask for.
|
|
31545
31578
|
oldRev: status3 === "added" ? null : base,
|
|
31546
|
-
newRev: status3 === "deleted" ? null :
|
|
31579
|
+
newRev: status3 === "deleted" ? null : head6
|
|
31547
31580
|
} : {}
|
|
31548
31581
|
});
|
|
31549
31582
|
}
|
|
31550
|
-
|
|
31583
|
+
return { files, truncated: tokens.length / 2 > files.length };
|
|
31584
|
+
});
|
|
31585
|
+
var diffImpl = (snapshotsRoot, cwd, commitHash) => Effect_exports.gen(function* () {
|
|
31586
|
+
if (!/^[0-9a-f]{6,40}$/i.test(commitHash)) {
|
|
31587
|
+
return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "invalid commit hash" }));
|
|
31588
|
+
}
|
|
31589
|
+
const repoDir = yield* resolveRepoDir(snapshotsRoot, cwd);
|
|
31590
|
+
const repoExists = yield* fsTry(
|
|
31591
|
+
"stat HEAD",
|
|
31592
|
+
() => stat(join5(repoDir, "HEAD")).then(() => true)
|
|
31593
|
+
).pipe(Effect_exports.orElseSucceed(() => false));
|
|
31594
|
+
if (!repoExists) {
|
|
31595
|
+
return yield* Effect_exports.fail(new NotFoundError({ resource: "snapshot-repo", id: cwd }));
|
|
31596
|
+
}
|
|
31597
|
+
const log3 = yield* runGitOk(repoDir, cwd, [
|
|
31598
|
+
"log",
|
|
31599
|
+
"-1",
|
|
31600
|
+
"--format=%x1e%H%x1f%P%x1f%ct%x1f%B",
|
|
31601
|
+
commitHash
|
|
31602
|
+
]);
|
|
31603
|
+
const commit3 = commitFromLogRecord(log3.stdout.split("").filter(Boolean)[0] ?? "");
|
|
31604
|
+
if (!commit3) {
|
|
31605
|
+
return yield* Effect_exports.fail(new ValidationError({ field: "commit", reason: "commit not found" }));
|
|
31606
|
+
}
|
|
31607
|
+
const base = commit3.parent ?? EMPTY_TREE;
|
|
31608
|
+
const { files, truncated } = yield* collectRangeFiles(repoDir, cwd, base, commit3.hash);
|
|
31551
31609
|
return { commit: commit3, files, truncated };
|
|
31552
31610
|
}).pipe(Effect_exports.withSpan("snapshot.diff", { attributes: { cwd, commit: commitHash } }));
|
|
31611
|
+
var rangeDiffImpl = (snapshotsRoot, cwd, base, head6) => Effect_exports.gen(function* () {
|
|
31612
|
+
if (base !== null && !/^[0-9a-f]{6,40}$/i.test(base)) {
|
|
31613
|
+
return yield* Effect_exports.fail(new ValidationError({ field: "base", reason: "invalid commit hash" }));
|
|
31614
|
+
}
|
|
31615
|
+
if (!/^[0-9a-f]{6,40}$/i.test(head6)) {
|
|
31616
|
+
return yield* Effect_exports.fail(new ValidationError({ field: "head", reason: "invalid commit hash" }));
|
|
31617
|
+
}
|
|
31618
|
+
const repoDir = yield* resolveRepoDir(snapshotsRoot, cwd);
|
|
31619
|
+
const repoExists = yield* fsTry(
|
|
31620
|
+
"stat HEAD",
|
|
31621
|
+
() => stat(join5(repoDir, "HEAD")).then(() => true)
|
|
31622
|
+
).pipe(Effect_exports.orElseSucceed(() => false));
|
|
31623
|
+
if (!repoExists) {
|
|
31624
|
+
return yield* Effect_exports.fail(new NotFoundError({ resource: "snapshot-repo", id: cwd }));
|
|
31625
|
+
}
|
|
31626
|
+
const log3 = yield* runGitOk(repoDir, cwd, [
|
|
31627
|
+
"log",
|
|
31628
|
+
"-1",
|
|
31629
|
+
"--format=%x1e%H%x1f%P%x1f%ct%x1f%B",
|
|
31630
|
+
head6
|
|
31631
|
+
]);
|
|
31632
|
+
const headCommit = commitFromLogRecord(log3.stdout.split("").filter(Boolean)[0] ?? "");
|
|
31633
|
+
if (!headCommit) {
|
|
31634
|
+
return yield* Effect_exports.fail(new ValidationError({ field: "head", reason: "commit not found" }));
|
|
31635
|
+
}
|
|
31636
|
+
const { files, truncated } = yield* collectRangeFiles(
|
|
31637
|
+
repoDir,
|
|
31638
|
+
cwd,
|
|
31639
|
+
base ?? EMPTY_TREE,
|
|
31640
|
+
headCommit.hash
|
|
31641
|
+
);
|
|
31642
|
+
return { base, head: headCommit, files, truncated };
|
|
31643
|
+
}).pipe(Effect_exports.withSpan("snapshot.rangeDiff", { attributes: { cwd, base: base ?? "empty-tree", head: head6 } }));
|
|
31553
31644
|
var cleanupImpl = (snapshotsRoot, keepDays, repoTtlDays) => Effect_exports.gen(function* () {
|
|
31554
31645
|
const dirs = yield* fsTry("readdir", () => readdir(snapshotsRoot)).pipe(
|
|
31555
31646
|
Effect_exports.orElseSucceed(() => [])
|
|
@@ -31673,6 +31764,7 @@ var SnapshotServiceLive = Layer_exports.scoped(
|
|
|
31673
31764
|
baseline: (cwd, sessionKey, provider) => snapshotOnce(snapshotsRoot, maxFileBytes, { cwd, sessionKey, provider }, "baseline"),
|
|
31674
31765
|
listByToolIds: (cwd, toolIds, sessionKey) => listByToolIdsImpl(snapshotsRoot, cwd, toolIds, sessionKey),
|
|
31675
31766
|
diff: (cwd, commitHash) => diffImpl(snapshotsRoot, cwd, commitHash),
|
|
31767
|
+
rangeDiff: (cwd, base, head6) => rangeDiffImpl(snapshotsRoot, cwd, base, head6),
|
|
31676
31768
|
blob: (cwd, rev, file2) => blobImpl(snapshotsRoot, cwd, rev, file2),
|
|
31677
31769
|
cleanup
|
|
31678
31770
|
});
|
|
@@ -32566,12 +32658,14 @@ async function parseTranscriptFile(filePath, page = {}) {
|
|
|
32566
32658
|
}
|
|
32567
32659
|
const allMessages = convertToChatMessages(rawMessages);
|
|
32568
32660
|
const title = generateTitle(aiTitle, summary5, userTextMessages);
|
|
32661
|
+
const bot = detectBotName(userTextMessages[0]);
|
|
32569
32662
|
const turns = splitTurns(allMessages);
|
|
32570
32663
|
const totalTurns = turns.length;
|
|
32571
32664
|
if (limit === void 0 && fromTurnIndex === void 0) {
|
|
32572
32665
|
return {
|
|
32573
32666
|
messages: allMessages,
|
|
32574
32667
|
title,
|
|
32668
|
+
bot,
|
|
32575
32669
|
usage: lastUsage,
|
|
32576
32670
|
totalTurns,
|
|
32577
32671
|
hasMore: false,
|
|
@@ -32583,7 +32677,7 @@ async function parseTranscriptFile(filePath, page = {}) {
|
|
|
32583
32677
|
const hasMore = startIndex > 0;
|
|
32584
32678
|
const selectedTurns = turns.slice(startIndex, endIndex);
|
|
32585
32679
|
const messages = selectedTurns.flat();
|
|
32586
|
-
return { messages, title, usage: lastUsage, totalTurns, hasMore, startTurnIndex: startIndex };
|
|
32680
|
+
return { messages, title, bot, usage: lastUsage, totalTurns, hasMore, startTurnIndex: startIndex };
|
|
32587
32681
|
}
|
|
32588
32682
|
function splitTurns(allMessages) {
|
|
32589
32683
|
const turns = [];
|
|
@@ -32778,6 +32872,7 @@ async function parseCodexTranscriptFile(filePath) {
|
|
|
32778
32872
|
const messages = [];
|
|
32779
32873
|
let currentAssistant = null;
|
|
32780
32874
|
let title = "Untitled Session";
|
|
32875
|
+
let firstUserText = null;
|
|
32781
32876
|
let lastUsage;
|
|
32782
32877
|
let msgCounter = 0;
|
|
32783
32878
|
let toolSinceText = false;
|
|
@@ -32831,6 +32926,7 @@ async function parseCodexTranscriptFile(filePath) {
|
|
|
32831
32926
|
});
|
|
32832
32927
|
if (title === "Untitled Session") {
|
|
32833
32928
|
title = (text || CODEX_IMAGE_ONLY_TEXT).slice(0, 80);
|
|
32929
|
+
firstUserText = text;
|
|
32834
32930
|
}
|
|
32835
32931
|
}
|
|
32836
32932
|
if (payload.type === "message" && payload.role === "assistant") {
|
|
@@ -33008,7 +33104,7 @@ async function parseCodexTranscriptFile(filePath) {
|
|
|
33008
33104
|
}
|
|
33009
33105
|
}
|
|
33010
33106
|
flushAssistant();
|
|
33011
|
-
return { messages, title, usage: lastUsage };
|
|
33107
|
+
return { messages, title, bot: detectBotName(firstUserText), usage: lastUsage };
|
|
33012
33108
|
}
|
|
33013
33109
|
|
|
33014
33110
|
// packages/feature/agent/src/effect/sessionSearchLive.ts
|
|
@@ -48000,6 +48096,43 @@ ${summary5}`;
|
|
|
48000
48096
|
};
|
|
48001
48097
|
}
|
|
48002
48098
|
|
|
48099
|
+
// packages/feature/agent/src/server/engines/sessionModel.ts
|
|
48100
|
+
var MODEL_MAP_KEY = {
|
|
48101
|
+
ollama: "ollamaModels",
|
|
48102
|
+
deepseek: "deepseekModels",
|
|
48103
|
+
kimi: "kimiModels",
|
|
48104
|
+
glm: "glmModels",
|
|
48105
|
+
claude: "claudeModels",
|
|
48106
|
+
codex: "codexModels"
|
|
48107
|
+
};
|
|
48108
|
+
var EMPTY = { sessions: [] };
|
|
48109
|
+
function mapOf(state, key) {
|
|
48110
|
+
const raw = state[key];
|
|
48111
|
+
return raw && typeof raw === "object" ? raw : {};
|
|
48112
|
+
}
|
|
48113
|
+
async function readSessionModel(engine, cwd, sessionId) {
|
|
48114
|
+
const key = MODEL_MAP_KEY[engine];
|
|
48115
|
+
if (!key || !cwd || !sessionId) return void 0;
|
|
48116
|
+
const state = await readJsonFile(getSessionFilePath(cwd), EMPTY);
|
|
48117
|
+
return mapOf(state, key)[sessionId]?.trim() || void 0;
|
|
48118
|
+
}
|
|
48119
|
+
async function recordSessionModel(engine, cwd, sessionId, model) {
|
|
48120
|
+
const key = MODEL_MAP_KEY[engine];
|
|
48121
|
+
if (!key || !cwd || !sessionId || !model.trim()) return;
|
|
48122
|
+
const value = model.trim();
|
|
48123
|
+
const filePath = getSessionFilePath(cwd);
|
|
48124
|
+
try {
|
|
48125
|
+
const before2 = await readJsonFile(filePath, EMPTY);
|
|
48126
|
+
if (mapOf(before2, key)[sessionId] === value) return;
|
|
48127
|
+
await mutateJsonFile(filePath, EMPTY, (cur) => ({
|
|
48128
|
+
...cur,
|
|
48129
|
+
[key]: { ...mapOf(cur, key), [sessionId]: value }
|
|
48130
|
+
}));
|
|
48131
|
+
} catch (error48) {
|
|
48132
|
+
console.error(`[engine:${engine}] failed to record session model for ${sessionId}:`, error48);
|
|
48133
|
+
}
|
|
48134
|
+
}
|
|
48135
|
+
|
|
48003
48136
|
// packages/feature/agent/src/server/engines/shared/providerError.ts
|
|
48004
48137
|
function extractBodyMessage(body) {
|
|
48005
48138
|
if (typeof body !== "string" || !body.trim()) return void 0;
|
|
@@ -48203,7 +48336,9 @@ async function runBuiltinAgent(ctx, config3) {
|
|
|
48203
48336
|
const sid = ctx.currentKey();
|
|
48204
48337
|
ctx.rekey(sid);
|
|
48205
48338
|
const model = typeof ctx.params.model === "string" && ctx.params.model || config3.defaultModel;
|
|
48339
|
+
if (!model) throw new Error(`No model resolved for this ${config3.engine} run`);
|
|
48206
48340
|
const prompt = ctx.prompt;
|
|
48341
|
+
void recordSessionModel(config3.engine, cwd, sid, model);
|
|
48207
48342
|
const emit2 = (data) => {
|
|
48208
48343
|
if (data.startsWith("data: [DONE]")) return;
|
|
48209
48344
|
try {
|
|
@@ -48348,13 +48483,15 @@ function resolveEndpoints(p, saved, language) {
|
|
|
48348
48483
|
const id3 = saved.region || p.regions.defaultFor(language);
|
|
48349
48484
|
return p.regions.byId[id3] ?? p.endpoints;
|
|
48350
48485
|
}
|
|
48351
|
-
function resolveModel(requested, saved, fallback) {
|
|
48486
|
+
function resolveModel(requested, session, saved, fallback) {
|
|
48352
48487
|
if (typeof requested === "string" && requested.trim()) return requested.trim();
|
|
48488
|
+
if (session && session.trim()) return session.trim();
|
|
48353
48489
|
if (saved && saved.trim()) return saved.trim();
|
|
48354
48490
|
return fallback;
|
|
48355
48491
|
}
|
|
48356
48492
|
function buildConfig(p, apiKey, endpoints) {
|
|
48357
48493
|
return {
|
|
48494
|
+
engine: p.name,
|
|
48358
48495
|
sessionsRoot: getBuiltinSessionsRoot(p.name),
|
|
48359
48496
|
defaultModel: p.defaultModel,
|
|
48360
48497
|
createModel: async (modelName) => createOpenAiCompatModel({ baseURL: endpoints.openAiBaseUrl, apiKey, modelName }),
|
|
@@ -48380,6 +48517,7 @@ function makeAnthropicCompatSpec(p) {
|
|
|
48380
48517
|
if (!textCheck.ok) return textCheck;
|
|
48381
48518
|
params.model = resolveModel(
|
|
48382
48519
|
typeof params.model === "string" ? params.model : void 0,
|
|
48520
|
+
await readSessionModel(p.name, params.cwd, params.sessionId),
|
|
48383
48521
|
saved.builtinModel,
|
|
48384
48522
|
p.defaultModel
|
|
48385
48523
|
);
|
|
@@ -48410,17 +48548,126 @@ var deepseekProvider = {
|
|
|
48410
48548
|
};
|
|
48411
48549
|
var deepseekSpec = makeAnthropicCompatSpec(deepseekProvider);
|
|
48412
48550
|
|
|
48551
|
+
// packages/feature/agent/src/server/engines/ollamaCatalog.ts
|
|
48552
|
+
var LIST_TIMEOUT_MS = 3e3;
|
|
48553
|
+
function describeFailure(baseUrl, cause3) {
|
|
48554
|
+
const msg = cause3 instanceof Error ? cause3.message : String(cause3);
|
|
48555
|
+
if (/abort|timeout/i.test(msg)) {
|
|
48556
|
+
return `The Ollama server at ${baseUrl} did not answer within ${LIST_TIMEOUT_MS}ms.`;
|
|
48557
|
+
}
|
|
48558
|
+
if (/ECONNREFUSED|fetch failed|ENOTFOUND|EHOSTUNREACH/i.test(msg)) {
|
|
48559
|
+
return `Cannot reach the Ollama server at ${baseUrl} (${msg}). Start it with \`ollama serve\`, or set another URL in the Ollama picker.`;
|
|
48560
|
+
}
|
|
48561
|
+
return `Failed to list models from the Ollama server at ${baseUrl}: ${msg}`;
|
|
48562
|
+
}
|
|
48563
|
+
async function listOllamaModels() {
|
|
48564
|
+
const baseUrl = await resolveOllamaBaseURL();
|
|
48565
|
+
try {
|
|
48566
|
+
const res = await fetch(`${baseUrl}/api/tags`, { signal: AbortSignal.timeout(LIST_TIMEOUT_MS) });
|
|
48567
|
+
if (res.ok) {
|
|
48568
|
+
const data = await res.json();
|
|
48569
|
+
const models = Array.isArray(data.models) ? data.models : [];
|
|
48570
|
+
if (models.length > 0) {
|
|
48571
|
+
return {
|
|
48572
|
+
ok: true,
|
|
48573
|
+
baseUrl,
|
|
48574
|
+
models: models.map((m) => ({
|
|
48575
|
+
name: m.name,
|
|
48576
|
+
size: m.size,
|
|
48577
|
+
modified_at: m.modified_at,
|
|
48578
|
+
family: m.details?.family,
|
|
48579
|
+
parameter_size: m.details?.parameter_size
|
|
48580
|
+
}))
|
|
48581
|
+
};
|
|
48582
|
+
}
|
|
48583
|
+
}
|
|
48584
|
+
} catch {
|
|
48585
|
+
}
|
|
48586
|
+
try {
|
|
48587
|
+
const res = await fetch(`${baseUrl}/v1/models`, { signal: AbortSignal.timeout(LIST_TIMEOUT_MS) });
|
|
48588
|
+
if (!res.ok) {
|
|
48589
|
+
return {
|
|
48590
|
+
ok: false,
|
|
48591
|
+
baseUrl,
|
|
48592
|
+
reason: `The Ollama server at ${baseUrl} returned HTTP ${res.status} for its model list.`
|
|
48593
|
+
};
|
|
48594
|
+
}
|
|
48595
|
+
const data = await res.json();
|
|
48596
|
+
const models = Array.isArray(data.data) ? data.data : [];
|
|
48597
|
+
return {
|
|
48598
|
+
ok: true,
|
|
48599
|
+
baseUrl,
|
|
48600
|
+
models: models.map((m) => ({
|
|
48601
|
+
name: m.id,
|
|
48602
|
+
size: 0,
|
|
48603
|
+
modified_at: m.created ? new Date(m.created * 1e3).toISOString() : "",
|
|
48604
|
+
family: m.owned_by || void 0
|
|
48605
|
+
}))
|
|
48606
|
+
};
|
|
48607
|
+
} catch (cause3) {
|
|
48608
|
+
return { ok: false, baseUrl, reason: describeFailure(baseUrl, cause3) };
|
|
48609
|
+
}
|
|
48610
|
+
}
|
|
48611
|
+
|
|
48413
48612
|
// packages/feature/agent/src/server/engines/ollama.ts
|
|
48414
|
-
var DEFAULT_MODEL2 = "qwen3.5:35b-a3b-coding-nvfp4";
|
|
48415
48613
|
var OLLAMA_CONFIG = {
|
|
48614
|
+
engine: "ollama",
|
|
48416
48615
|
sessionsRoot: getBuiltinSessionsRoot("ollama"),
|
|
48417
|
-
defaultModel: DEFAULT_MODEL2,
|
|
48418
48616
|
createModel: (model) => createOllamaModel(model)
|
|
48419
48617
|
};
|
|
48618
|
+
var fail20 = (error48) => ({ ok: false, status: 400, error: error48 });
|
|
48619
|
+
function matchInstalled(requested, models) {
|
|
48620
|
+
const exact = models.find((m) => m.name === requested);
|
|
48621
|
+
if (exact) return exact.name;
|
|
48622
|
+
const byTag = models.filter((m) => m.name.startsWith(`${requested}:`));
|
|
48623
|
+
return byTag.length === 1 ? byTag[0].name : void 0;
|
|
48624
|
+
}
|
|
48625
|
+
var nameList = (models) => models.map((m) => m.name).join(", ");
|
|
48626
|
+
async function resolveDefaultOllamaModel() {
|
|
48627
|
+
const catalog = await listOllamaModels();
|
|
48628
|
+
if (!catalog.ok) {
|
|
48629
|
+
return { ok: false, reason: `${catalog.reason} Cockpit picks the model from that list.` };
|
|
48630
|
+
}
|
|
48631
|
+
if (catalog.models.length === 0) {
|
|
48632
|
+
return {
|
|
48633
|
+
ok: false,
|
|
48634
|
+
reason: `The Ollama server at ${catalog.baseUrl} has no models installed. Pull one with \`ollama pull <model>\` (e.g. \`ollama pull qwen3\`), then try again.`
|
|
48635
|
+
};
|
|
48636
|
+
}
|
|
48637
|
+
const last5 = await readOllamaLastModel();
|
|
48638
|
+
return { ok: true, model: last5 && matchInstalled(last5, catalog.models) || catalog.models[0].name };
|
|
48639
|
+
}
|
|
48640
|
+
async function resolveOllamaModel(params) {
|
|
48641
|
+
const requested = typeof params.model === "string" ? params.model.trim() : "";
|
|
48642
|
+
if (!requested) {
|
|
48643
|
+
const recorded = await readSessionModel("ollama", params.cwd, params.sessionId);
|
|
48644
|
+
const choice2 = recorded ? { ok: true, model: recorded } : await resolveDefaultOllamaModel();
|
|
48645
|
+
if (!choice2.ok) return fail20(choice2.reason);
|
|
48646
|
+
params.model = choice2.model;
|
|
48647
|
+
await rememberOllamaLastModel(choice2.model);
|
|
48648
|
+
return { ok: true };
|
|
48649
|
+
}
|
|
48650
|
+
const catalog = await listOllamaModels();
|
|
48651
|
+
if (!catalog.ok) {
|
|
48652
|
+
params.model = requested;
|
|
48653
|
+
return { ok: true };
|
|
48654
|
+
}
|
|
48655
|
+
const installed = matchInstalled(requested, catalog.models);
|
|
48656
|
+
if (!installed) {
|
|
48657
|
+
return fail20(
|
|
48658
|
+
catalog.models.length === 0 ? `The Ollama server at ${catalog.baseUrl} has no models installed, so '${requested}' cannot run. Pull it with \`ollama pull ${requested}\`.` : `Model '${requested}' is not installed on the Ollama server at ${catalog.baseUrl}. Available: ${nameList(catalog.models)}.`
|
|
48659
|
+
);
|
|
48660
|
+
}
|
|
48661
|
+
params.model = installed;
|
|
48662
|
+
await rememberOllamaLastModel(installed);
|
|
48663
|
+
return { ok: true };
|
|
48664
|
+
}
|
|
48420
48665
|
var ollamaSpec = {
|
|
48421
48666
|
name: "ollama",
|
|
48422
48667
|
async preflight(params) {
|
|
48423
|
-
|
|
48668
|
+
const textCheck = requireTextPrompt(params);
|
|
48669
|
+
if (!textCheck.ok) return textCheck;
|
|
48670
|
+
return resolveOllamaModel(params);
|
|
48424
48671
|
},
|
|
48425
48672
|
runner: {
|
|
48426
48673
|
run: (ctx) => runBuiltinAgent(ctx, OLLAMA_CONFIG)
|
|
@@ -48430,12 +48677,12 @@ var ollamaSpec = {
|
|
|
48430
48677
|
|
|
48431
48678
|
// packages/feature/agent/src/server/engines/kimi.ts
|
|
48432
48679
|
var KIMI_OPENAI_BASE_URL = "https://api.kimi.com/coding/v1";
|
|
48433
|
-
var
|
|
48680
|
+
var DEFAULT_MODEL2 = "k3";
|
|
48434
48681
|
var kimiProvider = {
|
|
48435
48682
|
name: "kimi",
|
|
48436
48683
|
label: "Kimi",
|
|
48437
48684
|
endpoints: { openAiBaseUrl: KIMI_OPENAI_BASE_URL },
|
|
48438
|
-
defaultModel:
|
|
48685
|
+
defaultModel: DEFAULT_MODEL2,
|
|
48439
48686
|
apiKey: kimiApiKey,
|
|
48440
48687
|
// Kimi's coding models are thinking-only and reject any temperature but 1 with
|
|
48441
48688
|
// `invalid temperature: only 1 is allowed for this model`, which fails the turn before a
|
|
@@ -48450,7 +48697,7 @@ var GLM_REGIONS = {
|
|
|
48450
48697
|
global: { openAiBaseUrl: "https://api.z.ai/api/coding/paas/v4" }
|
|
48451
48698
|
};
|
|
48452
48699
|
var GLM_REGION_IDS = Object.keys(GLM_REGIONS);
|
|
48453
|
-
var
|
|
48700
|
+
var DEFAULT_MODEL3 = "glm-5.3";
|
|
48454
48701
|
var glmProvider = {
|
|
48455
48702
|
name: "glm",
|
|
48456
48703
|
label: "GLM",
|
|
@@ -48460,7 +48707,7 @@ var glmProvider = {
|
|
|
48460
48707
|
// Shared with the picker so the UI cannot claim one host while runs go to another.
|
|
48461
48708
|
defaultFor: defaultRegionForLanguage
|
|
48462
48709
|
},
|
|
48463
|
-
defaultModel:
|
|
48710
|
+
defaultModel: DEFAULT_MODEL3,
|
|
48464
48711
|
apiKey: glmApiKey
|
|
48465
48712
|
// No builtinTemperature override: temperature 0 with tools is accepted here (verified),
|
|
48466
48713
|
// unlike Kimi's thinking-only models.
|
|
@@ -49602,11 +49849,15 @@ var fileExists = (p) => Effect_exports.tryPromise(() => stat5(p)).pipe(
|
|
|
49602
49849
|
Effect_exports.map((s) => s.isFile()),
|
|
49603
49850
|
Effect_exports.orElseSucceed(() => false)
|
|
49604
49851
|
);
|
|
49605
|
-
var
|
|
49852
|
+
var inheritedEngine = (parentRunId) => {
|
|
49853
|
+
const parent = parentRunId ? getRunInfo(parentRunId)?.engine : null;
|
|
49854
|
+
return parent && DELEGATION_ENGINES.includes(parent) ? parent : "claude";
|
|
49855
|
+
};
|
|
49856
|
+
var validateRequest = (body, parentRunId) => Effect_exports.gen(function* () {
|
|
49606
49857
|
const cwd = str(body.cwd);
|
|
49607
49858
|
if (!cwd || !isAbsolute3(cwd)) return yield* Effect_exports.fail(invalid("cwd", "must be an absolute path"));
|
|
49608
49859
|
if (!(yield* isDirectory2(cwd))) return yield* Effect_exports.fail(invalid("cwd", "directory does not exist"));
|
|
49609
|
-
const engine = str(body.engine) ??
|
|
49860
|
+
const engine = str(body.engine) ?? inheritedEngine(parentRunId);
|
|
49610
49861
|
if (!DELEGATION_ENGINES.includes(engine)) {
|
|
49611
49862
|
return yield* Effect_exports.fail(invalid("engine", `expected one of ${DELEGATION_ENGINES.join(", ")}`));
|
|
49612
49863
|
}
|
|
@@ -49807,18 +50058,19 @@ var DelegationServiceLive = Layer_exports.effect(
|
|
|
49807
50058
|
if (!spec) return yield* Effect_exports.fail(invalid("engine", `no engine spec for ${request2.engine}`));
|
|
49808
50059
|
const parent = yield* resolveParent(parentRunId);
|
|
49809
50060
|
const presetId = randomUUID4();
|
|
50061
|
+
const dispatchParams = {
|
|
50062
|
+
prompt: buildChildPrompt(request2, parent),
|
|
50063
|
+
cwd: request2.cwd,
|
|
50064
|
+
engine: request2.engine,
|
|
50065
|
+
runId: presetId,
|
|
50066
|
+
...request2.engine === "claude" && { newSessionId: presetId },
|
|
50067
|
+
...request2.model && { model: request2.model }
|
|
50068
|
+
};
|
|
49810
50069
|
const runKey = yield* Effect_exports.acquireUseRelease(
|
|
49811
50070
|
reserve,
|
|
49812
50071
|
() => Effect_exports.gen(function* () {
|
|
49813
50072
|
const outcome = yield* Effect_exports.tryPromise({
|
|
49814
|
-
try: () => dispatchChat2(spec,
|
|
49815
|
-
prompt: buildChildPrompt(request2, parent),
|
|
49816
|
-
cwd: request2.cwd,
|
|
49817
|
-
engine: request2.engine,
|
|
49818
|
-
runId: presetId,
|
|
49819
|
-
...request2.engine === "claude" && { newSessionId: presetId },
|
|
49820
|
-
...request2.model && { model: request2.model }
|
|
49821
|
-
}),
|
|
50073
|
+
try: () => dispatchChat2(spec, dispatchParams),
|
|
49822
50074
|
catch: (cause3) => new AgentError({ provider: request2.engine, kind: "unknown", cause: cause3 })
|
|
49823
50075
|
});
|
|
49824
50076
|
if (!outcome.ok) return yield* Effect_exports.fail(invalid("engine", outcome.error));
|
|
@@ -49830,10 +50082,11 @@ var DelegationServiceLive = Layer_exports.effect(
|
|
|
49830
50082
|
const sessionId = request2.engine === "codex" ? yield* waitForSessionId(runKey, SESSION_ID_TIMEOUT).pipe(
|
|
49831
50083
|
Effect_exports.tapError(() => Effect_exports.sync(() => requestStop(runKey)))
|
|
49832
50084
|
) : presetId;
|
|
50085
|
+
const model = dispatchParams.model ?? request2.model;
|
|
49833
50086
|
return {
|
|
49834
50087
|
cwd: request2.cwd,
|
|
49835
50088
|
engine: request2.engine,
|
|
49836
|
-
...
|
|
50089
|
+
...model && { model },
|
|
49837
50090
|
sessionId,
|
|
49838
50091
|
link: buildSessionLink(request2.cwd, sessionId),
|
|
49839
50092
|
title: request2.title,
|
|
@@ -50432,7 +50685,7 @@ function deriveBaseUrl() {
|
|
|
50432
50685
|
return `http://localhost:${port3}`;
|
|
50433
50686
|
}
|
|
50434
50687
|
var COMMAND_LINE_RE = /^\s*(\/@|\/|@)(\S+?)(?:\s+|$)/;
|
|
50435
|
-
function resolveCommandPrompt(prompt, language = "en", _req) {
|
|
50688
|
+
function resolveCommandPrompt(prompt, language = "en", _req, cwd) {
|
|
50436
50689
|
const lang = language.startsWith("zh") ? "zh" : "en";
|
|
50437
50690
|
const userSkills = listUserSkills();
|
|
50438
50691
|
const builtins = new Set(listBuiltinSkillNames());
|
|
@@ -50446,7 +50699,8 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
|
|
|
50446
50699
|
if (!m) return;
|
|
50447
50700
|
const marker = m[1];
|
|
50448
50701
|
if (isKnown(marker, m[2])) {
|
|
50449
|
-
|
|
50702
|
+
const local = marker === "@" && isLocalBotDir(cwd, bots.get(m[2]));
|
|
50703
|
+
cmds.push({ i, marker, cmd: m[2], rest: line.slice(m[0].length).trim(), local });
|
|
50450
50704
|
return;
|
|
50451
50705
|
}
|
|
50452
50706
|
if (marker !== "@") return;
|
|
@@ -50464,6 +50718,7 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
|
|
|
50464
50718
|
const consumed = /* @__PURE__ */ new Set();
|
|
50465
50719
|
const listed = [];
|
|
50466
50720
|
const seen = /* @__PURE__ */ new Set();
|
|
50721
|
+
const key = (kind, name) => `${kind}:${name}`;
|
|
50467
50722
|
cmds.forEach((c, k) => {
|
|
50468
50723
|
const nextCmd = k + 1 < cmds.length ? cmds[k + 1].i : lines.length;
|
|
50469
50724
|
const bodyLines = [];
|
|
@@ -50474,26 +50729,41 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
|
|
|
50474
50729
|
consumed.add(j);
|
|
50475
50730
|
}
|
|
50476
50731
|
const ref = c.marker === "@" ? { name: `@${c.cmd}`, path: bots.get(c.cmd), content: null } : resolveSkillRef(c.cmd, baseUrl, userSkills);
|
|
50477
|
-
|
|
50478
|
-
|
|
50479
|
-
|
|
50480
|
-
|
|
50732
|
+
const mainSession = c.marker === "/" || c.local;
|
|
50733
|
+
rendered.set(c.i, renderCommandLine(mainSession, ref, bodyLines.join("\n"), lang, showLocus));
|
|
50734
|
+
const kind = c.marker === "@" && !c.local ? "handoff" : "read";
|
|
50735
|
+
if (ref.path && !seen.has(key(kind, ref.name))) {
|
|
50736
|
+
seen.add(key(kind, ref.name));
|
|
50737
|
+
listed.push({ name: ref.name, path: ref.path, kind });
|
|
50481
50738
|
}
|
|
50482
50739
|
});
|
|
50483
50740
|
let botRunInline = null;
|
|
50484
|
-
|
|
50485
|
-
|
|
50486
|
-
|
|
50487
|
-
|
|
50488
|
-
listed.push({ name: run6.name, path: run6.path, kind: "read" });
|
|
50489
|
-
} else if (!run6.path) {
|
|
50490
|
-
botRunInline = run6.content;
|
|
50491
|
-
}
|
|
50741
|
+
let botTurnInline = null;
|
|
50742
|
+
const delegates = cmds.some((c) => c.marker === "@" && !c.local);
|
|
50743
|
+
const runsHere = cmds.some((c) => c.marker === "@" && c.local);
|
|
50744
|
+
if (delegates || runsHere) {
|
|
50492
50745
|
const turn = resolveSkillRef("bot-turn", baseUrl, userSkills);
|
|
50493
|
-
if (turn.path && !seen.has(turn.name)) {
|
|
50494
|
-
seen.add(turn.name);
|
|
50746
|
+
if (delegates && turn.path && !seen.has(key("handoff", turn.name))) {
|
|
50747
|
+
seen.add(key("handoff", turn.name));
|
|
50495
50748
|
listed.unshift({ name: turn.name, path: turn.path, kind: "handoff" });
|
|
50496
50749
|
}
|
|
50750
|
+
if (runsHere) {
|
|
50751
|
+
if (turn.path && !seen.has(key("read", turn.name))) {
|
|
50752
|
+
seen.add(key("read", turn.name));
|
|
50753
|
+
listed.unshift({ name: turn.name, path: turn.path, kind: "read" });
|
|
50754
|
+
} else if (!turn.path) {
|
|
50755
|
+
botTurnInline = turn.content;
|
|
50756
|
+
}
|
|
50757
|
+
}
|
|
50758
|
+
if (delegates) {
|
|
50759
|
+
const run6 = resolveSkillRef("bot-run", baseUrl, userSkills);
|
|
50760
|
+
if (run6.path && !seen.has(key("read", run6.name))) {
|
|
50761
|
+
seen.add(key("read", run6.name));
|
|
50762
|
+
listed.unshift({ name: run6.name, path: run6.path, kind: "read" });
|
|
50763
|
+
} else if (!run6.path) {
|
|
50764
|
+
botRunInline = run6.content;
|
|
50765
|
+
}
|
|
50766
|
+
}
|
|
50497
50767
|
}
|
|
50498
50768
|
const out = [];
|
|
50499
50769
|
for (let i = 0; i < lines.length; i++) {
|
|
@@ -50508,10 +50778,12 @@ function resolveCommandPrompt(prompt, language = "en", _req) {
|
|
|
50508
50778
|
return `${header}
|
|
50509
50779
|
${items.map((s) => `- ${s.name}${sep2}${s.path}`).join("\n")}`;
|
|
50510
50780
|
};
|
|
50781
|
+
const handoffHeader = runsHere ? lang === "zh" ? "\u4EE5\u4E0B\u8DEF\u5F84\u539F\u6837\u8F6C\u4EA4\u7ED9\u4F60\u6D3E\u53D1\u7684\u5B50\u4F1A\u8BDD\uFF1B\u9664\u4E0A\u9762\u8BFB\u53D6\u5217\u8868\u5DF2\u5217\u51FA\u7684\u4EE5\u5916\uFF0C\u4E0D\u8981\u81EA\u5DF1\u6253\u5F00\uFF1A" : "Pass these paths verbatim to the session you delegate to; do not open any that the read list above does not already list:" : lang === "zh" ? "\u4EE5\u4E0B\u6587\u4EF6\u4EA4\u7ED9\u4F60\u6D3E\u53D1\u7684\u5B50\u4F1A\u8BDD\u53BB\u8BFB\uFF0C\u4F60\u53EA\u8F6C\u4EA4\u8DEF\u5F84\uFF0C\u4E0D\u8981\u81EA\u5DF1\u6253\u5F00\uFF1A" : "These files are for the session you delegate to. Pass the paths along; do not open them yourself:";
|
|
50511
50782
|
const blocks = [
|
|
50512
50783
|
block("read", lang === "zh" ? "\u8BF7\u5148\u8BFB\u53D6\u4EE5\u4E0B skill \u6587\u4EF6\uFF0C\u518D\u636E\u6B64\u6267\u884C\uFF1A" : "Read these skill files first, then act accordingly:"),
|
|
50513
|
-
block("handoff",
|
|
50514
|
-
botRunInline
|
|
50784
|
+
block("handoff", handoffHeader),
|
|
50785
|
+
botRunInline,
|
|
50786
|
+
botTurnInline
|
|
50515
50787
|
].filter((b) => b !== null);
|
|
50516
50788
|
if (blocks.length > 0) result = `${result}
|
|
50517
50789
|
|
|
@@ -50526,19 +50798,24 @@ function appendUnresolvedNote(result, unresolved, lang) {
|
|
|
50526
50798
|
${header}
|
|
50527
50799
|
${unresolved.map((u) => `- ${u}`).join("\n")}`;
|
|
50528
50800
|
}
|
|
50529
|
-
function renderCommandLine(
|
|
50801
|
+
function renderCommandLine(mainSession, ref, body, lang, showLocus) {
|
|
50530
50802
|
if (ref.path) {
|
|
50531
|
-
const tag = showLocus ? `[${locusWord(
|
|
50803
|
+
const tag = showLocus ? `[${locusWord(mainSession, lang)}\xB7${ref.name}]` : `[${ref.name}]`;
|
|
50532
50804
|
return body ? `${tag} ${body}` : tag;
|
|
50533
50805
|
}
|
|
50534
|
-
const locus = showLocus ? `[${locusWord(
|
|
50806
|
+
const locus = showLocus ? `[${locusWord(mainSession, lang)}] ` : "";
|
|
50535
50807
|
const then = body ? lang === "zh" ? `\uFF0C\u7136\u540E\uFF1A${body}` : `, then: ${body}` : "";
|
|
50536
50808
|
return `${locus}${ref.content ?? ""}${then}`;
|
|
50537
50809
|
}
|
|
50538
|
-
function locusWord(
|
|
50539
|
-
if (
|
|
50810
|
+
function locusWord(mainSession, lang) {
|
|
50811
|
+
if (!mainSession) return "subagent";
|
|
50540
50812
|
return lang === "zh" ? "\u4E3B\u4F1A\u8BDD" : "main session";
|
|
50541
50813
|
}
|
|
50814
|
+
function isLocalBotDir(cwd, manifestPath) {
|
|
50815
|
+
if (!cwd || !path4.isAbsolute(cwd)) return false;
|
|
50816
|
+
const norm = (p) => realpathOr(p.replace(/[\\/]+$/, ""));
|
|
50817
|
+
return norm(cwd) === norm(path4.dirname(manifestPath));
|
|
50818
|
+
}
|
|
50542
50819
|
function resolveSkillRef(cmd, baseUrl, userSkills) {
|
|
50543
50820
|
const skill = userSkills.find((s) => s.name === cmd);
|
|
50544
50821
|
if (skill) return { name: cmd, path: skill.path, content: null };
|
|
@@ -50622,7 +50899,7 @@ async function dispatchChat2(spec, body, request2) {
|
|
|
50622
50899
|
return { ok: false, status: 409, error: "session is already running" };
|
|
50623
50900
|
}
|
|
50624
50901
|
const rawPrompt = body.prompt;
|
|
50625
|
-
const prompt = typeof rawPrompt === "string" ? resolveCommandPrompt(rawPrompt, language, request2) : rawPrompt;
|
|
50902
|
+
const prompt = typeof rawPrompt === "string" ? resolveCommandPrompt(rawPrompt, language, request2, cwd) : rawPrompt;
|
|
50626
50903
|
const hasContent = prompt && typeof prompt === "string" || images && images.length > 0;
|
|
50627
50904
|
if (!hasContent) {
|
|
50628
50905
|
return { ok: false, status: 400, error: "Missing prompt or images" };
|
|
@@ -50637,7 +50914,7 @@ async function dispatchChat2(spec, body, request2) {
|
|
|
50637
50914
|
let currentKey = sessionId || runId;
|
|
50638
50915
|
let actualSessionId = sessionId;
|
|
50639
50916
|
let isClosed = false;
|
|
50640
|
-
if (!startRun(currentKey, cwd || "", promptText, runId)) {
|
|
50917
|
+
if (!startRun(currentKey, cwd || "", promptText, runId, spec.name)) {
|
|
50641
50918
|
return { ok: false, status: 409, error: "run already active" };
|
|
50642
50919
|
}
|
|
50643
50920
|
setRunAbort(currentKey, () => {
|