@surething/cockpit 1.0.275 → 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 +8 -5
- package/.next-prod/build-manifest.json +2 -2
- package/.next-prod/cockpit-build.json +1 -1
- package/.next-prod/prerender-manifest.json +4 -4
- package/.next-prod/routes-manifest.json +26 -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 -0
- package/.next-prod/server/app/api/bots/[id]/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/bots/[id]/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/bots/route.js +1 -0
- package/.next-prod/server/app/api/{sessions → bots}/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/bots/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/chat/codex/route.js +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/glm/route.js +1 -1
- package/.next-prod/server/app/api/chat/glm/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/commands/route.js +1 -1
- package/.next-prod/server/app/api/commands/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/comments/route.js +1 -1
- package/.next-prod/server/app/api/comments/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/columns/route.js +2 -2
- package/.next-prod/server/app/api/db/columns/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/connect/route.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/export/route.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/query/route.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js.nft.json +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js +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 +8 -5
- package/.next-prod/server/chunks/2493.js +27 -23
- package/.next-prod/server/chunks/6495.js +1 -1
- package/.next-prod/server/chunks/6548.js +1 -1
- package/.next-prod/server/chunks/7438.js +764 -0
- package/.next-prod/server/chunks/{1653.js → 8022.js} +2 -2
- package/.next-prod/server/chunks/{7956.js → 8131.js} +3 -3
- 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/{103-1f50be74a00f89af.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-f3f9426dccb507b2.js +1 -0
- 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-d97e5df9486f39cb.js +1 -0
- package/.next-prod/static/chunks/app/project/page-d97e5df9486f39cb.js +1 -0
- 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/bots/[id]/route.ts +353 -0
- package/.next-prod/types/app/api/{sessions → bots}/route.ts +3 -3
- package/.next-prod/types/app/api/ollama/default-model/route.ts +353 -0
- package/.next-prod/types/app/api/snapshots/range-diff/route.ts +353 -0
- package/.next-prod/types/routes.d.ts +5 -2
- package/.next-prod/types/validator.ts +36 -9
- package/README.md +15 -2
- package/README.zh.md +15 -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/bots/README.md +86 -0
- package/bots/cockpit-helper/BOT.md +95 -0
- package/bots/cockpit-helper/commitments/active.md +3 -0
- package/bots/cockpit-helper/evidence/refs.md +3 -0
- package/bots/cockpit-helper/identity/persona.md +25 -0
- package/bots/cockpit-helper/identity/principles.md +49 -0
- package/bots/cockpit-helper/memory/facts.md +3 -0
- package/bots/cockpit-helper/relationships/user.md +3 -0
- package/dist/{chunk-6R4AHIIV.mjs → chunk-5ZXPIG4Z.mjs} +1 -1
- package/dist/{chunk-JJWVBF6H.mjs → chunk-SGVT4QFB.mjs} +1001 -216
- package/dist/httpApi.mjs +2 -2
- package/dist/scheduledTasks.mjs +150 -27
- package/dist/wsServer.mjs +2 -2
- package/package.json +4 -4
- package/skills/README.md +18 -2
- package/skills/bot/SKILL.md +155 -0
- package/skills/bot-run/SKILL.md +151 -0
- package/skills/bot-run/followup.md +38 -0
- package/skills/bot-run/wait.md +76 -0
- package/skills/bot-turn/SKILL.md +106 -0
- package/skills/bot-turn/attach.md +45 -0
- package/skills/bot-turn/export.md +113 -0
- package/skills/bot-turn/review.md +101 -0
- package/skills/bot-turn/writing.md +110 -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_client-reference-manifest.js +0 -1
- package/.next-prod/server/chunks/5750.js +0 -762
- package/.next-prod/static/chunks/72539-7e4ca2de5c9f3f90.js +0 -17
- package/.next-prod/static/chunks/89656-bc48af1f9ee9c312.js +0 -32
- package/.next-prod/static/chunks/99092-36ee2c49e4c4c059.js +0 -716
- package/.next-prod/static/chunks/app/_global-error/page-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/agent/test/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/bash/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/glm/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/balance/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/models/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/blob/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/credentials/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/models/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/usage/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/instructions/config/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/credentials/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/models/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/usage/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/config/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/pick-folder/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/context/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/risk/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/restart/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/comments/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/replies/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/[id]/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/identify/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/order/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/share-info/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/review/users/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/session/user-messages/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/delegate/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/search/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/status/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/shutdown/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/blob/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/update/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/update-state/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/apps/[...path]/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/layout-5e8ca15dabb4d8c2.js +0 -1
- package/.next-prod/static/chunks/app/m/page-8f4f88b0d67c4181.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/app/page-eb7a11e6dd6a9e94.js +0 -1
- package/.next-prod/static/chunks/app/project/page-eb7a11e6dd6a9e94.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-b56c0b18a3b4d026.js +0 -1
- package/.next-prod/static/css/08c892de6d5e2335.css +0 -1
- package/.next-prod/static/mTTTlFslhC7zzHMDXGNOW/_buildManifest.js +0 -1
- package/bin/cock.mjs +0 -239
- /package/.next-prod/static/{mTTTlFslhC7zzHMDXGNOW → yEJ9Z5Bjv9ti4WeYINfCs}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Exporting a Bot as a template
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Export — "导出 / export / 生成模版 / clone 一份 / 分享给别人"
|
|
6
|
+
|
|
7
|
+
Make a **new Bot directory somewhere else**, derived from this one and fit to hand to someone
|
|
8
|
+
else. The source Bot is read and never changed.
|
|
9
|
+
|
|
10
|
+
What makes this worth a mode of its own is that a Bot's working directory is the wrong thing to
|
|
11
|
+
share: it holds the write lock, review reports, this user's memory, and paths that only exist on
|
|
12
|
+
this machine. Copying it wholesale hands all four to a stranger — usually into a public
|
|
13
|
+
repository, where the mistake cannot be taken back.
|
|
14
|
+
|
|
15
|
+
Two neighbouring requests are different jobs — if that is what the user meant, say so and stop:
|
|
16
|
+
|
|
17
|
+
- *"back this Bot up" / "sync it to my other machine"* → that is `cp -r` or a repository of the
|
|
18
|
+
directory as it stands. Export deliberately **drops the memory**, which is the opposite of a
|
|
19
|
+
backup.
|
|
20
|
+
- *"rename this Bot"* → edit `BOT.md`'s frontmatter `name` and re-register it. One Bot, not two.
|
|
21
|
+
|
|
22
|
+
## 1. Resolve the target
|
|
23
|
+
|
|
24
|
+
- **The target path is required.** If the user did not give one, ask; never pick a directory for
|
|
25
|
+
them. An export usually belongs in their own repository, not under `~/.cockpit`.
|
|
26
|
+
- A relative target resolves against your working directory, which on an export is the Bot's own
|
|
27
|
+
directory — so `../shared-bot` means a sibling of the Bot, not of the project. Resolve it, then
|
|
28
|
+
say the absolute path back before writing anything.
|
|
29
|
+
- **The target's directory name becomes the new Bot's `name`** and must match
|
|
30
|
+
`^[a-z0-9][a-z0-9-]{0,63}$`. If it does not, stop and ask for another path.
|
|
31
|
+
- **The target must not exist, or must be empty. Never overwrite.**
|
|
32
|
+
|
|
33
|
+
## 2. What comes across — a whitelist
|
|
34
|
+
|
|
35
|
+
| Copied | Left behind |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `BOT.md`, rewritten per §3 | `memory/` `relationships/` `commitments/` `evidence/` `projects/` — recreated as empty scaffolding |
|
|
38
|
+
| `identity/` — all of it | `.locks/` `.reviews/` — work products, never part of a Bot |
|
|
39
|
+
| `skills/` — all of it | `secrets/`, `.env*`, any credential file — never opened, never copied |
|
|
40
|
+
| | anything else at all — by default, it stays |
|
|
41
|
+
|
|
42
|
+
**A whitelist, not a blacklist**, for one reason: a Bot directory grows. A list of things *not*
|
|
43
|
+
to copy is correct the day it is written and wrong the day the Bot grows a `notes/`, which then
|
|
44
|
+
travels into a public repository unnoticed. Deny by default, then report what was denied and let
|
|
45
|
+
the user name exceptions (§5) — that is the only direction that does not rot.
|
|
46
|
+
|
|
47
|
+
The scaffolding you recreate is what `/bot` creates for a new Bot: each file is a heading plus a
|
|
48
|
+
one-line HTML comment stating its purpose. **Never invent facts, preferences or history** to fill
|
|
49
|
+
them; an empty Bot with an honest `memory/facts.md` is the point.
|
|
50
|
+
|
|
51
|
+
## 3. Rewrite BOT.md
|
|
52
|
+
|
|
53
|
+
- **`name` → the target directory name.** Leaving the source's name means the recipient's
|
|
54
|
+
registration is refused outright as a clash the first time they try to add it — and if they
|
|
55
|
+
are the same person, it clashes with the Bot they exported from.
|
|
56
|
+
- `description` stays, unless the user gives a new one.
|
|
57
|
+
- `## Before working` and `## Updating` stay **verbatim**. They are this Bot's operating manual,
|
|
58
|
+
which is exactly the thing being shared.
|
|
59
|
+
- `## Skills` — rewrite row by row:
|
|
60
|
+
|
|
61
|
+
| The last column holds | Do |
|
|
62
|
+
|---|---|
|
|
63
|
+
| a registered skill's name (no `/`) | nothing — a name is already portable, and carrying it over is what lets the recipient supply the tool themselves |
|
|
64
|
+
| a path inside the source Bot (`skills/…`) | nothing — it travelled with `skills/` and stays relative |
|
|
65
|
+
| an absolute path | look it up in `curl -s {{BASE_URL}}/api/skills`; if a registered skill has that path, replace the cell with its **name**. If not, leave the path and list the row in the report as "works only on the author's machine" |
|
|
66
|
+
|
|
67
|
+
Names are the whole reason a shared Bot's Skills table survives the trip: the recipient registers
|
|
68
|
+
a skill under that name — their own copy, their own location — and the row resolves for them
|
|
69
|
+
exactly as it did for the author. A path could never do that, because the only paths that exist on
|
|
70
|
+
both machines are the ones neither of them chose.
|
|
71
|
+
|
|
72
|
+
An absolute path that no registered skill matches cannot be fixed here: that tool is not in the
|
|
73
|
+
registry, so there is no name to hand over. Leave it, report it, and let the author decide whether
|
|
74
|
+
to register the skill and export again.
|
|
75
|
+
|
|
76
|
+
## 4. Read what you are copying
|
|
77
|
+
|
|
78
|
+
`identity/` and `skills/` are copied whole, and they are written by hand, so they are where local
|
|
79
|
+
traces hide. Read every file that goes across and **report — do not silently edit** (the wording
|
|
80
|
+
is the author's):
|
|
81
|
+
|
|
82
|
+
- absolute paths carrying a username or machine name (`/Users/<name>/…`, `/home/<name>/…`)
|
|
83
|
+
- company names, project code names, people's names — in a public repository these are things the
|
|
84
|
+
author may never have meant to publish
|
|
85
|
+
- anything that looks like a credential (a token, a key, a URL with a password in it). **Stop
|
|
86
|
+
here**: do not write that file into the export, and say which file and which line.
|
|
87
|
+
|
|
88
|
+
## 5. Report
|
|
89
|
+
|
|
90
|
+
Export writes only to the new directory and changes nothing under the source Bot, so it takes
|
|
91
|
+
**no write lock** — the same reasoning that exempts `.reviews/`: a work product is not memory. The
|
|
92
|
+
one thing to avoid is recording "I exported this" back into the source Bot; that would be a write,
|
|
93
|
+
and `writing.md` applies in full.
|
|
94
|
+
|
|
95
|
+
The report has four parts:
|
|
96
|
+
|
|
97
|
+
1. **The path**, and what now stands there: a registrable Bot with no memory in it.
|
|
98
|
+
2. **What came across** — the file list.
|
|
99
|
+
3. **What stayed behind** — per file, with counts (`memory/facts.md` 12 entries,
|
|
100
|
+
`commitments/active.md` 3 open). Then ask, once: *are any of these general enough to belong in
|
|
101
|
+
the new Bot?* If the user names some, copy those entries across with their metadata intact.
|
|
102
|
+
This is the only moment an export touches remembered content, and it happens on their say-so.
|
|
103
|
+
4. **What the recipient has to supply** — every skill name the exported `## Skills` table now
|
|
104
|
+
references. That list is the Bot's whole installation requirement: register a skill under each
|
|
105
|
+
of those names and the table resolves. Follow it with what will *not* resolve — the rows left as
|
|
106
|
+
absolute paths — plus everything §4 found.
|
|
107
|
+
|
|
108
|
+
## 6. Do not register it
|
|
109
|
+
|
|
110
|
+
Say the directory path and the two ways to register it — the **Bots** panel → **Add bot** with
|
|
111
|
+
that path, or opening its `BOT.md` in the file explorer and clicking **Add as Bot** — and stop
|
|
112
|
+
there. An export is usually on its way into a repository and then to someone else; registering it
|
|
113
|
+
here would decide, on the user's behalf, that it belongs to this machine.
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Reviewing a Bot
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Review — "复盘 / review / 体检 / 整理记忆 / 有没有过期的"
|
|
6
|
+
|
|
7
|
+
A Bot only ever grows. Facts go stale, preferences start contradicting each other, finished
|
|
8
|
+
commitments stay open. A normal `@name` turn never notices — it reads for the task at hand. This
|
|
9
|
+
mode is the sweep that does, and it is the one time the whole directory is read.
|
|
10
|
+
|
|
11
|
+
The Bot is the one whose `BOT.md` you were handed; there is nothing to resolve.
|
|
12
|
+
|
|
13
|
+
**Read everything** in its directory — except `.env*`, `secrets/` and any other credential file,
|
|
14
|
+
which are skipped unopened — then check eleven things:
|
|
15
|
+
|
|
16
|
+
| Check | What to look for |
|
|
17
|
+
|---|---|
|
|
18
|
+
| Stale | `expires` passed, or a time-bound entry (numbers, versions, roles, status) whose `confirmed` date is old |
|
|
19
|
+
| Contradiction | Two entries claiming different things about one subject — classify it, see below |
|
|
20
|
+
| Dangling | An `active` commitment whose `next-check` has passed, whose `done-when` already holds, or that has had no movement and no dates at all |
|
|
21
|
+
| Unsourced | An entry with no `source`, or a `source` pointing at nothing in `evidence/refs.md` |
|
|
22
|
+
| Duplicate | The same information written in two files |
|
|
23
|
+
| Placeholder | A scaffolded file still holding only its heading and comment |
|
|
24
|
+
| Broken skill | A row in the Skills table that no longer resolves: a name absent from `curl -s {{BASE_URL}}/api/skills`, a relative path missing from this Bot, or an absolute path that is gone. A name absent on *this* machine is a missing install, not a broken Bot — say which |
|
|
25
|
+
| Orphaned | An `active` conclusion whose basis was superseded or disputed — judge it by reading, no field records this |
|
|
26
|
+
| Oversized | The directory outgrew its read rules — see "Growing up" below |
|
|
27
|
+
| Frozen machinery | `BOT.md` restates something that now lives in the `bot-turn` skill — the write lock, the entry format, the non-recording list, the reading or reporting rules. Its copy can no longer be improved; propose replacing it with the per-Bot content only |
|
|
28
|
+
| Fake entry | A realistic-looking `## title` + metadata block sitting inside a fenced example in `BOT.md` — it will be read back as a fact. Propose turning it into placeholders |
|
|
29
|
+
|
|
30
|
+
Not every apparent contradiction is one. Classify before proposing anything:
|
|
31
|
+
|
|
32
|
+
| Class | Example | Handling |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| Temporal | an address changed from A to B | the newer one supersedes the older; keep the old as history |
|
|
35
|
+
| Scope | CNY domestically, USD overseas | **not a conflict** — split into two scoped entries, never pick one |
|
|
36
|
+
| Authority | an `inferred` entry contradicts a `user-confirmed` one | the inferred side loses |
|
|
37
|
+
| Normative | two rules forbid each other | stop and ask the user; never resolve it yourself |
|
|
38
|
+
| Factual | two credible sources disagree | keep both, mark them disputed, ask — never silently take the newer |
|
|
39
|
+
|
|
40
|
+
"Last write wins" is never the rule for preferences, commitments or user-confirmed facts.
|
|
41
|
+
|
|
42
|
+
**Orphaned** is the one check nothing on the page marks for you. Entries do not record what they
|
|
43
|
+
were derived from, so read for it: a decision that rests on a fact, a procedure that assumes a tool
|
|
44
|
+
or a version, a project plan built on a constraint. When that basis is now `superseded`, `expired`
|
|
45
|
+
or disputed, the conclusion on top of it is suspect even though it still says `active`. Report it;
|
|
46
|
+
do not decide it — the conclusion may well survive its original reason.
|
|
47
|
+
|
|
48
|
+
**Growing up.** A Bot outgrows its own read rules, and the review is when that gets noticed and
|
|
49
|
+
fixed. Flag `Oversized` when a single memory file passes roughly 200 lines, or when what `BOT.md`
|
|
50
|
+
reads "always" no longer fits comfortably in a turn. The fix, once the user agrees, is yours to
|
|
51
|
+
carry out:
|
|
52
|
+
|
|
53
|
+
- split the oversized file by subject into several files under the same directory;
|
|
54
|
+
- add an `INDEX.md` per split directory: one line per entry — title, one clause, file name;
|
|
55
|
+
- rewrite that Bot's `## Before working` so it reads the indexes first and opens individual
|
|
56
|
+
entries on demand, keeping commitments and the current project as "always".
|
|
57
|
+
|
|
58
|
+
That is the whole of it: no budget arithmetic, no retrieval layer. Do it when the size says so,
|
|
59
|
+
not before.
|
|
60
|
+
|
|
61
|
+
**Write the list to a uniquely named `.reviews/<YYYY-MM-DD>-<HHMMSS>.md` and change nothing
|
|
62
|
+
else.** If that name already exists, add a short unique suffix rather than overwriting it. This is
|
|
63
|
+
the sole Bot-directory write that does not take the memory write lock: the report is a work
|
|
64
|
+
product, not memory, and is never read back as fact. The next review opens it only to see what was
|
|
65
|
+
already looked at. This turn ends when you answer, so that path is what lets the work be picked up
|
|
66
|
+
later.
|
|
67
|
+
|
|
68
|
+
**Report the same numbered list and change nothing in the Bot.** One row per finding: type, file and entry, what is
|
|
69
|
+
wrong, and the suggested action. Mark the rows you cannot decide alone — whether a number changed
|
|
70
|
+
or a promise was kept is the user's knowledge, not yours. End with: reply with the numbers to
|
|
71
|
+
apply, or "all".
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
@robert review — 12 entries, 5 findings
|
|
75
|
+
|
|
76
|
+
# Type Entry Problem Suggestion
|
|
77
|
+
1 Stale memory/facts.md#q3-budget confirmed 2026-03, holds figures ask the user for the current figure
|
|
78
|
+
2 Contradiction relationships/user.md "use tables" vs "keep it short" keep the newer one, supersede the older
|
|
79
|
+
3 Dangling commitments/active.md#list no movement in 6 months confirm; mark done if finished
|
|
80
|
+
4 Unsourced memory/facts.md#npm-stats figures with no source add a refs.md link, or downgrade to an observation
|
|
81
|
+
5 Placeholder identity/persona.md still the scaffold ask the user for two or three lines
|
|
82
|
+
6 Orphaned memory/facts.md#npm-metric rests on #npm-stats, now superseded re-check whether the decision still holds
|
|
83
|
+
7 Oversized memory/facts.md 310 lines, read every turn split by subject + INDEX.md, update Before working
|
|
84
|
+
|
|
85
|
+
1, 3 and 6 need your answer first. Reply with numbers ("1 3") or "all".
|
|
86
|
+
Saved to .reviews/2026-09-18-143012.md
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Offer both ways to carry on: reply **in this session** with the numbers, or say
|
|
90
|
+
`@<name> apply .reviews/<review-file>.md rows 1 3` in any chat — a fresh session reads the file and has
|
|
91
|
+
the whole list back.
|
|
92
|
+
|
|
93
|
+
**Apply only the picked rows**, routing by `BOT.md`'s `## Updating`. Read
|
|
94
|
+
`{{COCKPIT_DIR}}/skills/bot-turn/writing.md` first if you have not already — the sweep itself is
|
|
95
|
+
read-only, but applying rows is a write and needs the lock and the metadata rules. Prefer `status: superseded` (plus `supersedes`
|
|
96
|
+
on the replacement) over deleting when the old entry explains how the current one came to be. Then
|
|
97
|
+
report which files you read and which you changed, and tick the applied rows in
|
|
98
|
+
`.reviews/<date>.md` so a later pass does not raise them again.
|
|
99
|
+
|
|
100
|
+
If the directory is too large to read in one pass, review one check at a time and say so — a
|
|
101
|
+
partial sweep that is honest about its scope beats a shallow one over everything.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Changing a Bot's files
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Changing a Bot's files
|
|
6
|
+
|
|
7
|
+
Read this before you create, edit or delete anything under a Bot directory. Reading its files
|
|
8
|
+
needs nothing from here; changing them needs all of it — the metadata every entry carries, the
|
|
9
|
+
bar a change has to clear, and the lock that keeps two sessions from writing at once.
|
|
10
|
+
|
|
11
|
+
## 1. Entry format
|
|
12
|
+
|
|
13
|
+
Every recorded entry is a `## <short title>` section followed by one metadata comment. Without it
|
|
14
|
+
an entry cannot be aged, traced, or closed later. This block is a shape, not a record — when you
|
|
15
|
+
copy it anywhere, keep it as placeholders:
|
|
16
|
+
|
|
17
|
+
```markdown
|
|
18
|
+
## <short title>
|
|
19
|
+
<!-- confirmed: <YYYY-MM-DD> · source: <user | session:id | evidence key> · authority: <user-confirmed | observed | inferred> · status: active -->
|
|
20
|
+
|
|
21
|
+
<What was established, as prose.>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
- `confirmed` — the date it was last verified. `source` — `user`, `session:<id>`, or a key in
|
|
25
|
+
`evidence/refs.md`.
|
|
26
|
+
- `authority` — `user-confirmed` (the user stated or approved it) > `observed` (a tool run or a
|
|
27
|
+
file proved it) > `inferred` (you concluded it). **An `inferred` entry never overrides a
|
|
28
|
+
`user-confirmed` one** — on a clash the inferred side loses, however new it is.
|
|
29
|
+
- `status` — `active` (default), `superseded`, `done`, `cancelled`. Add `supersedes: <title>` on
|
|
30
|
+
the entry that replaces another, and `expires: <YYYY-MM-DD>` when the information is time-bound.
|
|
31
|
+
- A commitment carries a second comment line — without it "is this still open?" is guesswork:
|
|
32
|
+
`waiting-on` (who or what it is blocked on, `nobody` when it is your move) · `next-check` (the
|
|
33
|
+
date worth looking again) · `done-when` (the observable condition that closes it, not "when it
|
|
34
|
+
feels finished").
|
|
35
|
+
|
|
36
|
+
Keep the body prose. This is metadata for aging entries, not a schema — never split an entry into
|
|
37
|
+
fields the reader has to reassemble.
|
|
38
|
+
|
|
39
|
+
## 2. Only when asked
|
|
40
|
+
|
|
41
|
+
You should be here only because the task explicitly asked to remember, update, correct or forget
|
|
42
|
+
something. If it did not, go back and end with a "Could be recorded" list instead.
|
|
43
|
+
|
|
44
|
+
`BOT.md`'s "Updating" section says where each kind of thing goes in *this* Bot. Regardless of
|
|
45
|
+
that routing:
|
|
46
|
+
|
|
47
|
+
- Every entry you write or update carries the metadata comment from §1.
|
|
48
|
+
- Never let an `inferred` entry overwrite a `user-confirmed` one — record the disagreement and ask.
|
|
49
|
+
- Editing `identity/persona.md` or `identity/principles.md` changes how every future turn behaves:
|
|
50
|
+
quote the exact wording you intend to write and wait for approval. Everything else follows the
|
|
51
|
+
normal rule — asked for, then written.
|
|
52
|
+
- **Never record**: chit-chat; guesses presented as fact; secrets (keys, tokens, passwords); full
|
|
53
|
+
conversation transcripts or third-party material you were not asked to keep; anything re-readable
|
|
54
|
+
from the source system (code, database rows, file contents); caches, logs, generated indexes.
|
|
55
|
+
|
|
56
|
+
## 3. The write lock
|
|
57
|
+
|
|
58
|
+
Other sessions may be reading or writing this Bot at the same time. Reads never block. Hold the
|
|
59
|
+
lock only around the edits, and release it even when an edit fails.
|
|
60
|
+
|
|
61
|
+
**1. Acquire.** `mkdir` is atomic, so exactly one session wins. The `cwd` recorded below must be
|
|
62
|
+
**this session's own working directory**, which Cockpit exports as `COCKPIT_CWD` — never a path
|
|
63
|
+
you worked out, and never the Bot's own directory unless that is genuinely where the session
|
|
64
|
+
started. Step 3 looks the owner up by that exact string; a wrong one answers "no such session",
|
|
65
|
+
which reads as "the lock is stale" for a session that is very much alive.
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
BOT='<the Bot directory>'
|
|
69
|
+
SESSION_CWD="${COCKPIT_CWD:-$PWD}" # this session's own cwd; `pwd` has moved if anything cd'd
|
|
70
|
+
|
|
71
|
+
mkdir -p "$BOT/.locks"
|
|
72
|
+
if mkdir "$BOT/.locks/write" 2>/dev/null; then
|
|
73
|
+
printf 'run: %s\ncwd: %s\nsince: %s\ntask: %s\n' \
|
|
74
|
+
"${COCKPIT_RUN_ID:-unknown}" "$SESSION_CWD" "$(date -u +%FT%TZ)" '<short task label>' \
|
|
75
|
+
> "$BOT/.locks/write/owner"
|
|
76
|
+
echo acquired
|
|
77
|
+
else
|
|
78
|
+
# `mkdir` and the owner write are two steps, so a lock taken a moment ago may
|
|
79
|
+
# have no owner file yet. Absent is not the same as unowned.
|
|
80
|
+
cat "$BOT/.locks/write/owner" 2>/dev/null || echo 'held; owner not written yet'
|
|
81
|
+
fi
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**2. Failed?** Another session holds it. Retry every 10s for about 2 minutes.
|
|
85
|
+
|
|
86
|
+
**3. Still locked?** Decide from `owner`, never from the clock — a three-hour-old timestamp is as
|
|
87
|
+
likely to be a slow task as a crash.
|
|
88
|
+
|
|
89
|
+
- `run:` is your own `$COCKPIT_RUN_ID` → your own lock, from a turn of this session that died
|
|
90
|
+
holding it (a session keeps the same run id across turns). Clearing it is safe.
|
|
91
|
+
- Otherwise ask whether that run is still alive, using the two lines the file records:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
curl -sS --get "{{BASE_URL}}/api/sessions/status" \
|
|
95
|
+
--data-urlencode "cwd=<the cwd line>" --data-urlencode "sessionId=<the run line>"
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
`status: running` → **it is working. Wait, or stop and tell the user. Do not clear it.**
|
|
99
|
+
Any other status, or a 404 → that run has ended and left the lock behind.
|
|
100
|
+
|
|
101
|
+
- No `owner` file at all → either the holder is mid-acquire, or it crashed between the two steps.
|
|
102
|
+
Keep retrying; after the window it is decided the same way as any other foreign lock.
|
|
103
|
+
- Even then, **clearing someone else's lock is the user's call**, not yours: quote the `owner`
|
|
104
|
+
file and the status you got, and let them run `rm -rf <bot>/.locks/write`. Never delete another
|
|
105
|
+
session's lock on a timer.
|
|
106
|
+
|
|
107
|
+
**4. Holding it:** re-read every file you are about to change — what you read before the lock may
|
|
108
|
+
be stale. Then edit.
|
|
109
|
+
|
|
110
|
+
**5. Release:** `rm -rf "$BOT/.locks/write"`. Do this even when an edit failed halfway.
|
package/skills/cc/SKILL.md
CHANGED
|
@@ -13,7 +13,6 @@ CLI entry point selection (**default = prod**):
|
|
|
13
13
|
- Switch to `cockpit-dev` (dev, port 3456) ONLY when the user explicitly signals dev mode, via one of:
|
|
14
14
|
1. They write `cockpit-dev ...` directly in the task text.
|
|
15
15
|
2. The first word after `/cc` is `dev` (e.g. `/cc dev terminal bmfb check the errors`).
|
|
16
|
-
- `cock` is the prod-only short alias of `cockpit`; behaviour is identical. There is no short alias for dev.
|
|
17
16
|
|
|
18
17
|
Examples below use `cockpit`; only swap in `cockpit-dev` when one of the two dev signals above is present.
|
|
19
18
|
|
package/skills/dl/SKILL.md
CHANGED
|
@@ -26,7 +26,10 @@ curl -sS --fail-with-body -X POST "{{BASE_URL}}/api/sessions/delegate" \
|
|
|
26
26
|
EOF_JSON
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
- `engine`
|
|
29
|
+
- `engine` is inherited from the session you are running in when omitted — that is what the
|
|
30
|
+
`x-cockpit-run-id` header above is for, so always send it. Spell `engine` out only when the
|
|
31
|
+
task should run somewhere else, which for `/dl` it often should. Claude when the calling
|
|
32
|
+
session's engine cannot be determined. `model` is optional and never inherited
|
|
30
33
|
- For a one-liner you may send `"prompt": "..."` instead of `briefPath` (escape `"` and `\`)
|
|
31
34
|
- Do not delete the brief file — the child reads it after you return
|
|
32
35
|
- A 400 names the problem (missing directory, unconfigured engine, too many delegated sessions running) — report it, do not retry blindly
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=1097,a.ids=[1097],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14985:a=>{a.exports=require("dns")},19446:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/sessions/route",pathname:"/api/sessions",filename:"route",bundlePath:"app/api/sessions/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/sessions/route.ts",nextConfigOutput:"",userland:()=>c(63595),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},63595:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>e.fG,dynamic:()=>e.OR,runtime:()=>e.fA});var e=c(99326),f=a([e]);e=(f.then?(await f)():f)[0],d()}catch(a){d(a)}})},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")},99326:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>r,fA:()=>q,fG:()=>s});var e=c(29021),f=c(33873),g=c(4984),h=c(89705),i=c(7939),j=c(72891),k=c(770),l=c(89812),m=a([j]);j=(m.then?(await m)():m)[0];let q="nodejs",r="force-dynamic";function n(a,b=50){return a.length<=b?a:a.slice(0,b)+"..."}async function o(a){let b=e.createReadStream(a),c=g.createInterface({input:b,crlfDelay:1/0}),d="",f="",h=[];for await(let a of c)try{let b=JSON.parse(a);"ai-title"===b.type&&b.aiTitle&&(d=b.aiTitle),"summary"===b.type&&b.summary&&(f=b.summary);let c=function(a){if("user"!==a.type||a.isMeta)return null;let b=a.message?.content;if(!b)return null;if("string"==typeof b)return b;if(Array.isArray(b)){let a=b.filter(a=>"text"===a.type);if(a.length>0)return a.map(a=>a.text||"").join(" ")}return null}(b);c&&h.push(c)}catch{}return{aiTitle:d,summary:f,userMessages:h}}let s=(0,j.RL)(()=>h.JkU(function*(){let a=yield*h.$mh({try:()=>p(),catch:a=>new k.uV({message:"Failed to load sessions",cause:a})});return new Response(JSON.stringify(a),{status:200,headers:{"Content-Type":"application/json"}})}));async function p(){let a=i.mT;if(!e.existsSync(a))return[];let b=e.readdirSync(a,{withFileTypes:!0}).filter(a=>a.isDirectory()).map(a=>a.name),c=[];for(let d of b){let b=f.join(a,d),g=d.split("-").filter(Boolean),h=g[g.length-1]||d,i="/"+d.slice(1).replace(/-/g,"/"),j=e.readdirSync(b).filter(a=>a.endsWith(".jsonl")&&!a.startsWith("agent-")).map(a=>{var c;return{name:a,path:f.join(b,a),modifiedAt:(c=f.join(b,a),e.statSync(c).mtime)}}).sort((a,b)=>b.modifiedAt.getTime()-a.modifiedAt.getTime()),k=[];for(let a of j)try{let{aiTitle:b,summary:c,userMessages:d}=await o(a.path);if(0===d.length)continue;let e=[],f=[];d.length<=10?e=d.map(a=>n(a)):(e=d.slice(0,5).map(a=>n(a)),f=d.slice(-5).map(a=>n(a))),k.push({path:a.path,title:(0,l.K)(b,c,d),modifiedAt:a.modifiedAt.toISOString(),firstMessages:e,lastMessages:f})}catch(b){console.error(`Error parsing session file ${a.path}:`,b)}k.length>0&&c.push({name:h,fullPath:i,sessions:k})}return c.sort((a,b)=>a.name.localeCompare(b.name)),c}d()}catch(a){d(a)}})}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1653,6495,9830,2493],()=>b(b.s=19446));module.exports=c})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sessions/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/app/api/sessions/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
|