@surething/cockpit 1.1.10 → 1.1.11
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 +4 -2
- 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 -0
- package/.next-prod/server/app/_global-error/page.js +2 -2
- 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_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/api/agent/test/route.js +1 -1
- package/.next-prod/server/app/api/bash/route.js +1 -1
- package/.next-prod/server/app/api/bots/[id]/route.js +1 -1
- package/.next-prod/server/app/api/bots/files/route.js +1 -1
- package/.next-prod/server/app/api/bots/route.js +1 -1
- package/.next-prod/server/app/api/chat/codex/route.js +1 -1
- package/.next-prod/server/app/api/chat/deepseek/route.js +1 -1
- package/.next-prod/server/app/api/chat/glm/route.js +1 -1
- package/.next-prod/server/app/api/chat/grok/route.js +1 -1
- package/.next-prod/server/app/api/chat/kimi/route.js +1 -1
- package/.next-prod/server/app/api/chat/ollama/route.js +1 -1
- package/.next-prod/server/app/api/chat/route.js +1 -1
- package/.next-prod/server/app/api/chat/stop/route.js +1 -1
- package/.next-prod/server/app/api/claude-stats/route.js +1 -1
- package/.next-prod/server/app/api/commands/route.js +1 -1
- package/.next-prod/server/app/api/comments/route.js +1 -1
- package/.next-prod/server/app/api/db/columns/route.js +1 -1
- package/.next-prod/server/app/api/db/connect/route.js +1 -1
- package/.next-prod/server/app/api/db/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/db/export/route.js +1 -1
- package/.next-prod/server/app/api/db/query/route.js +1 -1
- package/.next-prod/server/app/api/db/schemas/route.js +2 -2
- package/.next-prod/server/app/api/deepseek/balance/route.js +1 -1
- package/.next-prod/server/app/api/deepseek/credentials/route.js +1 -1
- package/.next-prod/server/app/api/deepseek/models/route.js +1 -1
- package/.next-prod/server/app/api/dev/spans/route.js +1 -1
- package/.next-prod/server/app/api/extension/version/route.js +1 -1
- package/.next-prod/server/app/api/file/route.js +1 -1
- package/.next-prod/server/app/api/files/blame/route.js +1 -1
- package/.next-prod/server/app/api/files/clipboard/route.js +1 -1
- package/.next-prod/server/app/api/files/copy/route.js +1 -1
- package/.next-prod/server/app/api/files/delete/route.js +1 -1
- package/.next-prod/server/app/api/files/expanded/route.js +1 -1
- package/.next-prod/server/app/api/files/index/route.js +1 -1
- package/.next-prod/server/app/api/files/init/route.js +1 -1
- package/.next-prod/server/app/api/files/paste/route.js +1 -1
- package/.next-prod/server/app/api/files/read/route.js +1 -1
- package/.next-prod/server/app/api/files/readdir/route.js +1 -1
- package/.next-prod/server/app/api/files/recent/route.js +1 -1
- package/.next-prod/server/app/api/files/save/route.js +1 -1
- package/.next-prod/server/app/api/files/search/route.js +1 -1
- package/.next-prod/server/app/api/files/stat/route.js +1 -1
- package/.next-prod/server/app/api/files/text/route.js +1 -1
- package/.next-prod/server/app/api/fs/dirs/route.js +1 -1
- package/.next-prod/server/app/api/git/blob/route.js +1 -1
- package/.next-prod/server/app/api/git/branch-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/branches/route.js +1 -1
- package/.next-prod/server/app/api/git/commit-diff/route.js +1 -1
- package/.next-prod/server/app/api/git/commits/route.js +1 -1
- package/.next-prod/server/app/api/git/current-branch/route.js +1 -1
- package/.next-prod/server/app/api/git/diff/route.js +1 -1
- package/.next-prod/server/app/api/git/discard/route.js +1 -1
- package/.next-prod/server/app/api/git/stage/route.js +1 -1
- package/.next-prod/server/app/api/git/status/route.js +1 -1
- package/.next-prod/server/app/api/git/unstage/route.js +1 -1
- package/.next-prod/server/app/api/git/worktree/route.js +1 -1
- package/.next-prod/server/app/api/glm/credentials/route.js +1 -1
- package/.next-prod/server/app/api/glm/models/route.js +1 -1
- package/.next-prod/server/app/api/glm/usage/route.js +1 -1
- package/.next-prod/server/app/api/global-state/route.js +2 -2
- package/.next-prod/server/app/api/grok/models/route.js +1 -1
- package/.next-prod/server/app/api/health/route.js +1 -1
- package/.next-prod/server/app/api/html-apps/[id]/route.js +1 -1
- package/.next-prod/server/app/api/html-apps/files/route.js +1 -1
- package/.next-prod/server/app/api/html-apps/route.js +1 -1
- package/.next-prod/server/app/api/instructions/config/route.js +1 -1
- package/.next-prod/server/app/api/kimi/credentials/route.js +1 -1
- package/.next-prod/server/app/api/kimi/models/route.js +1 -1
- package/.next-prod/server/app/api/kimi/usage/route.js +1 -1
- package/.next-prod/server/app/api/lsp/definition/route.js +1 -1
- package/.next-prod/server/app/api/lsp/hover/route.js +1 -1
- package/.next-prod/server/app/api/lsp/references/route.js +1 -1
- package/.next-prod/server/app/api/lsp/status/route.js +1 -1
- package/.next-prod/server/app/api/lsp/warmup/route.js +1 -1
- package/.next-prod/server/app/api/mobile-link/route.js +1 -1
- package/.next-prod/server/app/api/mysql/columns/route.js +2 -2
- package/.next-prod/server/app/api/mysql/connect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/mysql/export/route.js +1 -1
- package/.next-prod/server/app/api/mysql/query/route.js +1 -1
- package/.next-prod/server/app/api/mysql/schemas/route.js +2 -2
- package/.next-prod/server/app/api/neo4j/connect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/query/route.js +1 -1
- package/.next-prod/server/app/api/neo4j/schema/route.js +1 -1
- package/.next-prod/server/app/api/note/list/route.js +1 -1
- package/.next-prod/server/app/api/note/route.js +1 -1
- package/.next-prod/server/app/api/ollama/config/route.js +1 -1
- package/.next-prod/server/app/api/ollama/default-model/route.js +1 -1
- package/.next-prod/server/app/api/ollama/models/route.js +1 -1
- package/.next-prod/server/app/api/ollama/start/route.js +1 -1
- package/.next-prod/server/app/api/open-cursor/route.js +1 -1
- package/.next-prod/server/app/api/open-vscode/route.js +1 -1
- package/.next-prod/server/app/api/pi/thinking/route.js +1 -1
- package/.next-prod/server/app/api/pinned-sessions/route.js +1 -1
- package/.next-prod/server/app/api/project-settings/route.js +1 -1
- package/.next-prod/server/app/api/project-state/route.js +2 -2
- package/.next-prod/server/app/api/projectGraph/affected/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callees/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/callers/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/clones/route.js +1 -0
- package/.next-prod/server/app/api/projectGraph/clones/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/projectGraph/clones/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/projectGraph/coedit/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/crap/route.js +1 -0
- package/.next-prod/server/app/api/projectGraph/crap/route.js.nft.json +1 -0
- package/.next-prod/server/app/api/projectGraph/crap/route_client-reference-manifest.js +1 -0
- package/.next-prod/server/app/api/projectGraph/edges/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/file-functions/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/impact/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/maps/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/related/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/search/route.js +1 -1
- package/.next-prod/server/app/api/projectGraph/symbols/route.js +1 -1
- package/.next-prod/server/app/api/projects/route.js +1 -1
- package/.next-prod/server/app/api/push/public-key/route.js +1 -1
- package/.next-prod/server/app/api/push/subscribe/route.js +1 -1
- package/.next-prod/server/app/api/push/unsubscribe/route.js +1 -1
- package/.next-prod/server/app/api/redis/command/route.js +1 -1
- package/.next-prod/server/app/api/redis/connect/route.js +1 -1
- package/.next-prod/server/app/api/redis/delete/route.js +1 -1
- package/.next-prod/server/app/api/redis/disconnect/route.js +1 -1
- package/.next-prod/server/app/api/redis/get/route.js +1 -1
- package/.next-prod/server/app/api/redis/keys/route.js +1 -1
- package/.next-prod/server/app/api/redis/set/route.js +1 -1
- package/.next-prod/server/app/api/restart/route.js +1 -1
- package/.next-prod/server/app/api/scheduled-tasks/route.js +2 -2
- package/.next-prod/server/app/api/services/config/route.js +1 -1
- package/.next-prod/server/app/api/services/scripts/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/fork/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/history/route.js +1 -1
- package/.next-prod/server/app/api/session/[sessionId]/turn/route.js +2 -2
- package/.next-prod/server/app/api/session/image/route.js +1 -1
- package/.next-prod/server/app/api/session/user-messages/route.js +1 -1
- package/.next-prod/server/app/api/session-bots/route.js +1 -1
- package/.next-prod/server/app/api/session-by-path/route.js +1 -1
- package/.next-prod/server/app/api/session-context/route.js +2 -2
- package/.next-prod/server/app/api/session-title/route.js +1 -1
- package/.next-prod/server/app/api/session-title/suggest/route.js +1 -1
- package/.next-prod/server/app/api/sessions/delegate/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/[encodedPath]/route.js +1 -1
- package/.next-prod/server/app/api/sessions/projects/route.js +1 -1
- package/.next-prod/server/app/api/sessions/search/route.js +1 -1
- package/.next-prod/server/app/api/sessions/status/route.js +1 -1
- package/.next-prod/server/app/api/settings/route.js +1 -1
- package/.next-prod/server/app/api/shutdown/route.js +1 -1
- package/.next-prod/server/app/api/skills/[id]/route.js +1 -1
- package/.next-prod/server/app/api/skills/builtin/route.js +1 -1
- package/.next-prod/server/app/api/skills/content/route.js +1 -1
- package/.next-prod/server/app/api/skills/files/route.js +1 -1
- package/.next-prod/server/app/api/skills/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/blob/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/diff/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/mark/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/range-diff/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/restore/route.js +1 -1
- package/.next-prod/server/app/api/snapshots/route.js +1 -1
- package/.next-prod/server/app/api/terminal/aliases/route.js +1 -1
- package/.next-prod/server/app/api/terminal/autocomplete/route.js +1 -1
- package/.next-prod/server/app/api/terminal/bubble-order/route.js +1 -1
- package/.next-prod/server/app/api/terminal/env/route.js +1 -1
- package/.next-prod/server/app/api/terminal/history/route.js +1 -1
- package/.next-prod/server/app/api/terminal/running/route.js +1 -1
- package/.next-prod/server/app/api/update/route.js +1 -1
- package/.next-prod/server/app/api/update-state/route.js +1 -1
- package/.next-prod/server/app/api/version/route.js +1 -1
- package/.next-prod/server/app/apps/[...path]/route.js +1 -1
- package/.next-prod/server/app/favicon.ico/route.js +1 -1
- package/.next-prod/server/app/m/page.js +1 -1
- package/.next-prod/server/app/m/page_client-reference-manifest.js +1 -1
- package/.next-prod/server/app/manifest.webmanifest/route.js +1 -1
- package/.next-prod/server/app/page.js +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_client-reference-manifest.js +1 -1
- package/.next-prod/server/app-paths-manifest.json +4 -2
- package/.next-prod/server/chunks/4949.js +1 -1
- package/.next-prod/server/chunks/6610.js +11 -11
- package/.next-prod/server/middleware-build-manifest.js +1 -1
- package/.next-prod/server/pages/500.html +1 -1
- package/.next-prod/server/server-reference-manifest.json +1 -1
- package/.next-prod/static/Dj5ykXLzxdIQZcSyjppsm/_buildManifest.js +1 -0
- package/.next-prod/static/chunks/{92000-31efb4d63c10446f.js → 60169-2e401ccea5e39a00.js} +21 -21
- package/.next-prod/static/chunks/{98596-ffbe0304646a9336.js → 98596-43e9fe35436097c6.js} +6 -6
- package/.next-prod/static/chunks/app/_global-error/{page-6af5bc188af96106.js → page-b40b02f6a2592427.js} +1 -1
- package/.next-prod/static/chunks/app/api/agent/test/{route-6af5bc188af96106.js → route-b40b02f6a2592427.js} +1 -1
- package/.next-prod/static/chunks/app/api/bash/{route-6af5bc188af96106.js → route-b40b02f6a2592427.js} +1 -1
- package/.next-prod/static/chunks/app/api/bots/[id]/{route-6af5bc188af96106.js → route-b40b02f6a2592427.js} +1 -1
- package/.next-prod/static/chunks/app/api/bots/files/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/bots/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/codex/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/glm/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/grok/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/kimi/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/ollama/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/chat/stop/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/claude-stats/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/commands/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/comments/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/db/columns/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/db/connect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/db/disconnect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/db/export/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/db/query/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/db/schemas/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/balance/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/deepseek/models/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/dev/spans/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/extension/version/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/file/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/blame/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/clipboard/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/copy/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/delete/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/expanded/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/index/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/init/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/paste/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/read/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/readdir/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/recent/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/save/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/search/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/stat/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/files/text/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/fs/dirs/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/blob/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/branches/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/commits/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/current-branch/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/diff/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/discard/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/stage/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/status/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/unstage/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/git/worktree/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/credentials/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/models/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/glm/usage/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/global-state/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/grok/models/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/health/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/files/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/html-apps/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/instructions/config/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/credentials/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/models/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/kimi/usage/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/definition/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/hover/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/references/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/status/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/mobile-link/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/columns/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/connect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/export/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/query/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/query/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/note/list/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/note/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/config/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/default-model/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/models/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/ollama/start/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/open-cursor/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/open-vscode/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/pi/thinking/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/project-settings/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/project-state/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/clones/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/crap/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/edges/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/maps/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projectGraph/symbols/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/projects/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/push/public-key/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/push/subscribe/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/command/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/connect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/delete/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/get/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/keys/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/redis/set/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/restart/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/services/config/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/services/scripts/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session/image/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session/user-messages/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session-bots/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session-by-path/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session-context/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session-title/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/session-title/suggest/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/delegate/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/projects/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/search/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/sessions/status/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/settings/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/shutdown/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/[id]/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/builtin/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/content/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/files/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/skills/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/blob/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/mark/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/restore/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/snapshots/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/env/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/history/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/terminal/running/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/update/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/update-state/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/api/version/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/apps/[...path]/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/{layout-7107ed4eeac1f693.js → layout-a568d04e8d2707c3.js} +1 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/app/{page-338a2c84319778b1.js → page-6675d44ff6c5ebc6.js} +1 -1
- package/.next-prod/static/chunks/app/project/{page-338a2c84319778b1.js → page-6675d44ff6c5ebc6.js} +1 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-b40b02f6a2592427.js +1 -0
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-b40b02f6a2592427.js +1 -0
- package/.next-prod/trace +86 -86
- package/.next-prod/trace-build +1 -1
- package/.next-prod/types/app/api/projectGraph/clones/route.ts +353 -0
- package/.next-prod/types/app/api/projectGraph/crap/route.ts +353 -0
- package/.next-prod/types/routes.d.ts +3 -1
- package/.next-prod/types/validator.ts +18 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/bin/cock-codegraph.mjs +111 -27
- package/bin/cockpit.mjs +1 -1
- package/bin/managed-npm-updater.mjs +0 -1
- package/desktop-checksums.json +4 -4
- package/dist/scheduledTasks.mjs +22 -10
- package/dist/wsServer.mjs +899 -160
- package/package.json +1 -1
- package/scripts/copy-tree-sitter-wasms.mjs +2 -2
- package/skills/ar/SKILL.md +293 -0
- package/skills/ar/boundary.md +48 -0
- package/skills/ar/evolution.md +38 -0
- package/skills/ar/legibility.md +52 -0
- package/skills/ar/reviewer.md +261 -0
- package/skills/ar/structure.md +38 -0
- package/skills/cg/SKILL.md +85 -14
- package/skills/cr/SKILL.md +62 -293
- package/skills/cr/reviewer.md +303 -0
- package/skills/rf/SKILL.md +6 -5
- package/skills/rf/axes.md +24 -2
- package/skills/rf/fix.md +58 -10
- package/skills/rf/lenses.md +27 -6
- package/skills/rf/sources.md +86 -24
- package/.next-prod/static/IlC_BH61CJ0hFaOu_akE9/_buildManifest.js +0 -1
- package/.next-prod/static/chunks/app/api/bots/files/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/bots/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/codex/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/deepseek/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/glm/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/grok/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/kimi/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/ollama/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/chat/stop/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/claude-stats/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/commands/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/comments/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/db/columns/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/db/connect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/db/disconnect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/db/export/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/db/query/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/db/schemas/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/balance/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/credentials/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/deepseek/models/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/dev/spans/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/extension/version/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/file/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/blame/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/clipboard/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/copy/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/delete/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/expanded/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/index/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/init/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/paste/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/read/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/readdir/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/recent/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/save/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/search/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/stat/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/files/text/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/fs/dirs/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/blob/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branch-diff/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/branches/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commit-diff/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/commits/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/current-branch/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/diff/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/discard/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/stage/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/status/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/unstage/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/git/worktree/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/credentials/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/models/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/glm/usage/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/global-state/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/grok/models/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/health/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/[id]/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/files/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/html-apps/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/instructions/config/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/credentials/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/models/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/kimi/usage/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/definition/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/hover/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/references/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/status/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/lsp/warmup/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/mobile-link/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/columns/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/connect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/disconnect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/export/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/query/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/mysql/schemas/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/connect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/disconnect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/query/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/neo4j/schema/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/note/list/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/note/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/config/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/default-model/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/models/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/ollama/start/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/open-cursor/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/open-vscode/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/pi/thinking/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/pinned-sessions/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/project-settings/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/project-state/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/affected/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callees/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/callers/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/coedit/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/edges/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/file-functions/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/impact/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/maps/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/related/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/search/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projectGraph/symbols/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/projects/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/push/public-key/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/push/subscribe/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/push/unsubscribe/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/command/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/connect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/delete/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/disconnect/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/get/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/keys/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/redis/set/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/restart/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/scheduled-tasks/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/services/config/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/services/scripts/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/fork/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/history/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session/[sessionId]/turn/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session/image/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session/user-messages/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session-bots/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session-by-path/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session-context/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session-title/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/session-title/suggest/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/delegate/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/[encodedPath]/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/projects/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/search/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/sessions/status/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/settings/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/shutdown/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/[id]/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/builtin/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/content/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/files/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/skills/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/blob/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/diff/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/mark/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/range-diff/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/restore/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/snapshots/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/aliases/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/autocomplete/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/bubble-order/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/env/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/history/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/terminal/running/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/update/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/update-state/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/api/version/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/apps/[...path]/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/app/manifest.webmanifest/route-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/app-error-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/forbidden-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/not-found-6af5bc188af96106.js +0 -1
- package/.next-prod/static/chunks/next/dist/client/components/builtin/unauthorized-6af5bc188af96106.js +0 -1
- /package/.next-prod/static/{IlC_BH61CJ0hFaOu_akE9 → Dj5ykXLzxdIQZcSyjppsm}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# ar reviewer — what every reviewer does
|
|
2
|
+
|
|
3
|
+
You are the clean reviewer: you see the brief, this file and your dimension file(s) — never
|
|
4
|
+
`SKILL.md`, which is the main session's (its fix-plan template is not yours to emit). The brief's
|
|
5
|
+
**Mode** line carries everything mode-specific: origin values, the outside list, the co-change
|
|
6
|
+
method, the map's shape.
|
|
7
|
+
|
|
8
|
+
## First principle (derive everything from here)
|
|
9
|
+
|
|
10
|
+
Software's cost is in changing it, and nobody holds the whole system in their head. Good
|
|
11
|
+
architecture lets **an ordinary maintainer who did not write this part, with bounded working
|
|
12
|
+
memory**, safely make the next change. Code exists to be read by such a person: what they
|
|
13
|
+
cannot understand they can only change by guessing. ar finds where the next change got more
|
|
14
|
+
expensive, along four orthogonal axes of change cost:
|
|
15
|
+
|
|
16
|
+
| Dimension | Axis | Cost | Invariant |
|
|
17
|
+
|---|---|---|---|
|
|
18
|
+
| **Boundary** | space | blast radius — how much must be held at once | one business change lands in one module; a module changes for one kind of reason |
|
|
19
|
+
| **Structure** | verification | read it vs model its timing | decisions in a pure core, effects in a thin shell; dependencies flow effect → pure, dynamic → static |
|
|
20
|
+
| **Evolution** | coordination | parties that deploy or persist apart cannot be coordinated | contracts across deploy / persistence boundaries evolve only by expand → migrate → contract |
|
|
21
|
+
| **Legibility** | understanding | finding and reading before changing — read vs reconstruct | the structure says where each thing lives and what it does: names, places, entries and docs match the code |
|
|
22
|
+
|
|
23
|
+
The axes are orthogonal, so the dimensions don't overlap: boundary draws lines between
|
|
24
|
+
modules, structure orders code inside one, evolution governs time, legibility is whether a
|
|
25
|
+
reader can see all of that from the structure itself. One spot failing on several
|
|
26
|
+
axes is several views of one finding.
|
|
27
|
+
|
|
28
|
+
**Admission gate.** Every finding says in one sentence which class of future change it makes
|
|
29
|
+
more expensive, harder to understand, harder to verify, or dependent on coordination nobody can
|
|
30
|
+
do — for an ordinary maintainer. No sentence → drop it. This keeps out taste.
|
|
31
|
+
|
|
32
|
+
## Your stance
|
|
33
|
+
|
|
34
|
+
- **You are the ordinary maintainer.** Where you struggle to read, the real maintainer will be
|
|
35
|
+
bitten. "This place is special, so it may break the rule" is how debt gets waved through —
|
|
36
|
+
any defence that holds only for "someone smart enough to keep it all in mind" is a finding.
|
|
37
|
+
- **Evidence over intuition.** Boundaries on co-change and the import graph, contracts on
|
|
38
|
+
consumers actually found, probability on measured churn. "Looks coupled", "nobody uses that",
|
|
39
|
+
"changes often" are leads.
|
|
40
|
+
- **Health only.** A correctness bug noticed in passing is one line in coverage, never a finding.
|
|
41
|
+
- **Find every problem your dimension covers in the scope.** Drop only what fails the
|
|
42
|
+
admission gate; a problem you cannot fully prove is a finding whose Impact says what would
|
|
43
|
+
settle it — never a silent omission. Leads you checked and set aside go in coverage.
|
|
44
|
+
- **Your last message is the report itself** — map (only if the brief says you draw it),
|
|
45
|
+
findings, outside, coverage. No preamble, no closing summary, no "result:" line; anything else
|
|
46
|
+
fails the gate.
|
|
47
|
+
- **Number findings with your dimension's letter** — `B1, B2…` boundary, `S1…` structure,
|
|
48
|
+
`E1…` evolution, `L1…` legibility, in severity order; an `all` reviewer numbers each dimension
|
|
49
|
+
separately and starts each with a line `== boundary` / `== structure` / `== evolution` /
|
|
50
|
+
`== legibility`. The report relays
|
|
51
|
+
these ids unchanged, so use them everywhere: headings, map marks, coverage.
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
def review(scope, mode):
|
|
55
|
+
rules = instantiate() # below — before any judgement
|
|
56
|
+
findings = []
|
|
57
|
+
map_ = draw_map(scope) if brief.draws_map else None # "Map"; one reviewer draws it
|
|
58
|
+
for dim in scope.dimensions: # boundary.md / structure.md / evolution.md / legibility.md
|
|
59
|
+
findings += method(dim)(scope, rules, mode)
|
|
60
|
+
coverage.add(dim, checked, unverifiable)
|
|
61
|
+
for f in findings:
|
|
62
|
+
if not passes_admission_gate(f): drop(f) # "First principle" above
|
|
63
|
+
f.consequence = "When <likely future change>, <what it now costs the maintainer>."
|
|
64
|
+
f.origin = origin(f, mode) # "Finding semantics"
|
|
65
|
+
f.churn, f.churn_tier = churn(f.location) # measured, never estimated
|
|
66
|
+
f.severity = rate(f)
|
|
67
|
+
return Report(findings, map_, coverage) # "Output"; working notes stay with you
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Instantiate to this repository (first)
|
|
71
|
+
|
|
72
|
+
Read the repo's declared architecture — `CLAUDE.md` / `AGENTS.md`, architecture and module docs,
|
|
73
|
+
directory conventions, lint or dependency rules — and extract its **layer stack, module roots,
|
|
74
|
+
boundary rules and contract surfaces**. Every placeholder in the dimension files (`<MODROOT>`,
|
|
75
|
+
`<core glob>`, `<contract paths>`) becomes the repo's real path, and findings cite the repo's
|
|
76
|
+
own rule: "breaks your declared X". Read declared intent, never the author's rationale for this
|
|
77
|
+
change. A written rule that endorses a costly pattern is a conflict for the user, not a licence.
|
|
78
|
+
|
|
79
|
+
## Sources — cg first, git and grep to confirm
|
|
80
|
+
|
|
81
|
+
| Source | Sees | Blind to |
|
|
82
|
+
|---|---|---|
|
|
83
|
+
| **cg** | imports between layers, cycles, fan-in / fan-out, outside importers, reverse-import closure, callers, per-function complexity, entry points and their direct calls, states with several writers, the names each module exports to others, co-edited files, same-shape functions, string literals | aliases, methods on instances of unknown class, dynamic dispatch, callbacks passed as values — **an empty result is not absence** |
|
|
84
|
+
| **git** | churn, co-change, when and why something appeared (`log -S`, `log -L`) | what the code does now |
|
|
85
|
+
| **grep / rg** | every spelling and file type (SQL, YAML, docs), untracked files | names built at runtime |
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
B="{{BASE_URL}}/api/projectGraph" # coordinates only; read startLine..endLine, cite filePath:declLine
|
|
89
|
+
curl -fsSG "$B/maps" --data-urlencode "cwd=$PWD" --data-urlencode 'path=<DIR>' \
|
|
90
|
+
--data-urlencode "layers=$(cat <scratch>/layers.json)" --data-urlencode 'format=markdown'
|
|
91
|
+
curl -fsS "$B/affected?cwd=$PWD&files=<a,b>&depth=10" # who imports these, transitively
|
|
92
|
+
curl -fsS "$B/coedit?cwd=$PWD&filePath=<FILE>" # co-changed files; compare `probability`
|
|
93
|
+
curl -fsSG "$B/edges" --data-urlencode "cwd=$PWD" --data-urlencode 'path=<DIR>' # imports, calls, complexity
|
|
94
|
+
curl -fsSG "$B/clones" --data-urlencode "cwd=$PWD" --data-urlencode 'path=<DIR>' # same-shape functions
|
|
95
|
+
curl -fsS "$B/search?cwd=$PWD&q=<NAME>&includeLiterals=true" # definitions + string literals
|
|
96
|
+
curl -fsS "$B/callers?cwd=$PWD&qname=<QNAME>&filePath=<FILE>" # 1 hop; `impact` for transitive
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`layers.json` is the declared layer stack, outermost first, globs per layer, pure layers named:
|
|
100
|
+
`{"order":["entry","service","persistence"],"layers":{"entry":["src/routes/**"]},"pure":["util"]}`.
|
|
101
|
+
Without it `maps` draws imports between modules (folders) with no order — no back edges, every
|
|
102
|
+
dependency a lead, not a finding. `maps` prints, outside in: **Modules**; **Entry points** with
|
|
103
|
+
their handler and direct calls; **Dependencies** (layer or module imports, back edges, cycles as
|
|
104
|
+
file sets, fan-in / fan-out, outside importers); **Public API** (names other modules import or re-export,
|
|
105
|
+
`private` ones flagged); **Hotspots** (most complex functions, state ← its writers). Every item
|
|
106
|
+
carries `file:line` — trace further with `callers` / `callees` and grep.
|
|
107
|
+
|
|
108
|
+
- **cg sees the checked-out tree.** Change checked out → cg is the *after*; the *before* is
|
|
109
|
+
`git show <base>:<file>`. Not checked out → cg is the base: say so, use git and grep. Never
|
|
110
|
+
check out, stash or create a worktree to fix this.
|
|
111
|
+
- `target: null` + `ambiguousIn` → retry with `filePath`; `truncated: true` → partial. `maps`
|
|
112
|
+
follows calls one hop only; `reach=true` paths are thin in object-heavy code: never read a
|
|
113
|
+
missing path as "no writes". `coedit` history may name
|
|
114
|
+
pre-rename paths.
|
|
115
|
+
- Index unavailable → git and grep; coverage says `cg unavailable`. Name the source of every
|
|
116
|
+
piece of evidence; cross-check an empty result with another source.
|
|
117
|
+
|
|
118
|
+
## Finding semantics
|
|
119
|
+
|
|
120
|
+
```python
|
|
121
|
+
def origin(f, mode):
|
|
122
|
+
if mode != "change": return "audit" # the brief's Mode line
|
|
123
|
+
if gone_if_reverted(f): return "introduced" # a new cross-module import, a new ④
|
|
124
|
+
# decision, a contract broken in place,
|
|
125
|
+
# a new copy of a concept
|
|
126
|
+
if smaller_if_reverted(f): return "worsened" # existing debt made bigger: one more
|
|
127
|
+
# site, importer or ④ branch, or made
|
|
128
|
+
# load-bearing
|
|
129
|
+
return "pre-existing" # → outside, unless it blocks the stated intent
|
|
130
|
+
# (Why: "blocks intent: <how>"). Unsure → likeliest + what
|
|
131
|
+
# would settle it.
|
|
132
|
+
|
|
133
|
+
def churn(path):
|
|
134
|
+
n = commits_6mo(path) # git log --since="6 months ago" --oneline -- <path> | wc -l
|
|
135
|
+
dist = commits_6mo_per_file(repo) # git log --since="6 months ago" --format= --name-only
|
|
136
|
+
# | sort | uniq -c
|
|
137
|
+
tier = "high" if n >= p90(dist) else "mid" if n >= p50(dist) else "low"
|
|
138
|
+
return n, tier # new file → "new"; no history → say so
|
|
139
|
+
|
|
140
|
+
def rate(f):
|
|
141
|
+
# impact = what a maintainer must hold to change it safely: blast radius × verification
|
|
142
|
+
# cost × coordination; probability = churn tier
|
|
143
|
+
if f.impact == "big" and f.churn_tier == "high": return "🔴" # the next change hits it
|
|
144
|
+
if f.impact == "big" and f.irreversible: return "🔴" # persisted / released
|
|
145
|
+
return "🟡" if f.should_fix else "⚪" # a cold area stays here
|
|
146
|
+
# rate on what you verified; an unverified factor that would change the rating goes in
|
|
147
|
+
# Impact as "if <condition> → <rating>", never into the rating itself
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`Consequence` — the first future change that gets more expensive, one clause, about the
|
|
151
|
+
maintainer: **"When <likely future change>, <what it now costs>."** Mechanism → `Evidence`,
|
|
152
|
+
target shape → `Fix`.
|
|
153
|
+
|
|
154
|
+
## Map
|
|
155
|
+
|
|
156
|
+
One ` ```text ` block, ≤ ~80 display columns (CJK counts 2, box drawing 1), the shape the brief's Mode line names: one box per module
|
|
157
|
+
(name + root path), arrows = real imports or calls (`- ->` dynamic import / runtime hook),
|
|
158
|
+
contract surfaces as their own boxes (`[schema]` `[event]` `[api]`), new boxes and arrows `+`,
|
|
159
|
+
co-change without import `~~~` with its count. Lines never cross a box. Each finding marked
|
|
160
|
+
**once** in a right-hand column: `✗<id> 🔴 <what>`. Only the reviewer the brief names as the
|
|
161
|
+
mapper draws a map; it marks its own findings, and the other dimensions' findings are not on it.
|
|
162
|
+
|
|
163
|
+
```text
|
|
164
|
+
┌──────────────────────┐ ┌──────────────────────┐
|
|
165
|
+
│ checkout │+──────►│ billing │ ✗B2 🔴 imports the ledger
|
|
166
|
+
│ refund.ts │ │ ledger (internal) │ directly (0 → 3 sites)
|
|
167
|
+
└──────────────────────┘ └──────────────────────┘
|
|
168
|
+
~~~ 6 co-changes, no import ~~~ orders, tax, emails … ✗B1 🔴
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Output
|
|
172
|
+
|
|
173
|
+
The format rules are the **Format gate** at the end of this file — that function is the only
|
|
174
|
+
list; what this section says and the examples show must agree with it, and a rule the gate does
|
|
175
|
+
not check is not a rule. In short: map (mapper only), findings, outside, coverage, with no
|
|
176
|
+
headings of your own; each finding a `### <id> <sev> <Consequence>` heading over one text block
|
|
177
|
+
of ≤ 8 lines whose first line is `<dimensions> · <origin> · churn: <n> / 6 mo (<tier>, <file>)`
|
|
178
|
+
and whose Evidence starts with a `file:start-end` range.
|
|
179
|
+
|
|
180
|
+
````
|
|
181
|
+
### B1 🔴 When the next payment provider is added, it must be copied into six modules
|
|
182
|
+
|
|
183
|
+
```text
|
|
184
|
+
boundary · introduced · churn: 34 / 6 mo (high, providers.ts)
|
|
185
|
+
Evidence: providers.ts:20-48 — "which provider supports refunds" decided in 6 modules
|
|
186
|
+
(cg search); they co-changed 6× with no shared import (cg coedit, affected)
|
|
187
|
+
Impact: whoever adds the next provider must find all six; a miss refunds through
|
|
188
|
+
the wrong path or not at all, silently
|
|
189
|
+
Why: breaks your declared rule "providers register through one descriptor"
|
|
190
|
+
Fix: one provider descriptor table, read by all six
|
|
191
|
+
```
|
|
192
|
+
````
|
|
193
|
+
|
|
194
|
+
Outside — only when the brief's Mode line gives one and you have an item; otherwise omit the part
|
|
195
|
+
entirely (no "none" line). One rated line each, `<sev> <file:line> — <Consequence>`, in the
|
|
196
|
+
report's language:
|
|
197
|
+
|
|
198
|
+
```text
|
|
199
|
+
Seen outside the scope (register, don't fix here)
|
|
200
|
+
🟡 accounts.ts:81 — When account ownership rules change, the repository layer must be edited
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Coverage — always:
|
|
204
|
+
|
|
205
|
+
```text
|
|
206
|
+
introduced 2 (🔴1 🟡1) / worsened 0 / outside 1 (audit: "audit 2 (🔴1 🟡1)")
|
|
207
|
+
sources: cg (maps, affected, coedit), git, rg
|
|
208
|
+
boundary checked: module span, new imports, co-change of 6 files ✗B1 ✗B2
|
|
209
|
+
unverifiable: co-change of the new module (no history)
|
|
210
|
+
correctness in passing: <one line each, or omit>
|
|
211
|
+
removed: <debt this change took away, or omit>
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Format gate
|
|
215
|
+
|
|
216
|
+
Run it on your own report before you emit; the main session runs the same function on every
|
|
217
|
+
report and bounces failures back to you. Fix form only — a changed number or rating must be
|
|
218
|
+
said in the re-emitted report. Adding a format rule means adding a line here; prose elsewhere
|
|
219
|
+
that this function does not check binds nobody.
|
|
220
|
+
|
|
221
|
+
```python
|
|
222
|
+
def format_gate(report) -> list[str]: # countable checks only; never judges content
|
|
223
|
+
errors = []
|
|
224
|
+
for f in report.findings:
|
|
225
|
+
if not f.body.is_fenced("text"): errors.append(f"{f.id}: body not in a text block")
|
|
226
|
+
if f.body.line_count() > 8: errors.append(f"{f.id}: {f.body.line_count()} lines > 8")
|
|
227
|
+
if f.body.max_display_width() > 100: errors.append(f"{f.id}: line > 100 columns")
|
|
228
|
+
# display columns: CJK and emoji count 2; East Asian
|
|
229
|
+
# "ambiguous" (box drawing ─│┌, “” quotes) count 1
|
|
230
|
+
if not f.id.matches(r"[BSEL][0-9]+") or f.id[0] != dim_letter(f):
|
|
231
|
+
errors.append(f"{f.id}: id must be B/S/E/L + number, by dimension")
|
|
232
|
+
if f.heading != f"### {f.id} {f.severity} {f.consequence}":
|
|
233
|
+
errors.append(f"{f.id}: heading ≠ Consequence")
|
|
234
|
+
if not f.evidence.starts_with_range(): # "<file>:<start>-<end>" — the cross-reference keys on it
|
|
235
|
+
errors.append(f"{f.id}: Evidence must start with file:start-end")
|
|
236
|
+
elif f.evidence.first_range_lines() > 60: # a function or block, never a whole file: a
|
|
237
|
+
# file-wide problem names its most telling spot
|
|
238
|
+
errors.append(f"{f.id}: first Evidence range > 60 lines")
|
|
239
|
+
if not (f.churn and f.churn_tier and f.churn_file):
|
|
240
|
+
errors.append(f"{f.id}: churn not measured (n, tier, file)")
|
|
241
|
+
if f.churn_values() != 1: errors.append(f"{f.id}: one churn value (hottest file)")
|
|
242
|
+
if f.origin not in brief.mode.origins:
|
|
243
|
+
errors.append(f"{f.id}: origin not allowed by the brief's Mode")
|
|
244
|
+
if f.origin == "pre-existing" and "blocks intent" not in f.why:
|
|
245
|
+
errors.append(f"{f.id}: pre-existing → outside")
|
|
246
|
+
if report.outside.present() and not report.outside.items():
|
|
247
|
+
errors.append("outside: omit the part when it has no item")
|
|
248
|
+
for line in report.outside.lines():
|
|
249
|
+
if line.display_width() > 120: errors.append("outside: one line per item, ≤ 120 columns")
|
|
250
|
+
if bool(report.map) != brief.draws_map: errors.append("map: draw it only when the brief says you are the mapper")
|
|
251
|
+
if report.map and report.map.marks_per_finding() > 1:
|
|
252
|
+
errors.append("a ✗<id> marked more than once")
|
|
253
|
+
if report.map and report.map.max_display_width() > 80:
|
|
254
|
+
errors.append("map wider than 80 columns")
|
|
255
|
+
if report.has_parts_outside(["map", "findings", "outside", "coverage"]):
|
|
256
|
+
# includes any preamble or closing summary
|
|
257
|
+
errors.append("content outside the four parts")
|
|
258
|
+
if report.headings() - {f.heading for f in report.findings}: # "== <dim>" lines are not headings
|
|
259
|
+
errors.append("headings of your own (only finding headings)")
|
|
260
|
+
return errors
|
|
261
|
+
```
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# ar structure — four quadrants (decisions cheap to verify)
|
|
2
|
+
|
|
3
|
+
Place every piece of code in scope on two axes; verification cost explodes along the diagonal:
|
|
4
|
+
|
|
5
|
+
| | static (verify by reading) | dynamic (verify by modelling) |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| **pure** | ① value transform | ② reducer: (state, event) → state |
|
|
8
|
+
| **effectful** | ③ single I/O (shell) | ④ orchestration / concurrency / retry (★ bugs live here) |
|
|
9
|
+
|
|
10
|
+
Three decidable violations:
|
|
11
|
+
- **Decision stuck in ④** — a rule that should be pure (routing, billing, state transition,
|
|
12
|
+
permission, policy, "who delivers this") written between suspension points (`await`,
|
|
13
|
+
callbacks, threads, futures) with branches → extract a pure core.
|
|
14
|
+
- **Backflow** — the pure core does I/O or imports persistence / clients; persistence carries
|
|
15
|
+
business branches; orchestration *computes* what belongs in the core.
|
|
16
|
+
- **④ growth** — change mode: does it add more "suspension point + branch" than it removes?
|
|
17
|
+
Audit: how much decision logic lives in ④ that could be pure?
|
|
18
|
+
|
|
19
|
+
## Look
|
|
20
|
+
|
|
21
|
+
| Question | cg (reviewer.md "Sources") | git / grep fallback |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| Where ④ lives | `maps` Hotspots most complex functions, `edges` `complexity` — then count suspension points by reading. Complexity is the current tree only; growth is judged against `git show <base>:<file>` | `rg -n 'await\|then\(\|setTimeout'` in scope |
|
|
24
|
+
| Backflow | `maps` Dependencies: pure layers importing others or writing | `rg '^\+.*(await\|import.*(repository\|client\|db))'` in `<core glob>`; `rg '^\+\s*(if\|switch\|case)\b'` in `<persistence glob>` |
|
|
25
|
+
| Decision spread over ④ | `maps` Hotspots: a state with several writers; Entry points: handlers and their direct calls | trace writers to entries with `callers` and by reading |
|
|
26
|
+
| Patch accretion | — | `git log --format=%s -L :<fn>:<file>`: one special case per incident |
|
|
27
|
+
|
|
28
|
+
Other signs of a decision spread across ④: the same decision re-derived in several async steps;
|
|
29
|
+
a record written to remember an outcome another step infers.
|
|
30
|
+
|
|
31
|
+
A stateful object touched by concurrency, retries or several processes should become a reducer
|
|
32
|
+
(② is statically verifiable, ④ is not); one that isn't needs no ceremony.
|
|
33
|
+
|
|
34
|
+
## Disciplines
|
|
35
|
+
|
|
36
|
+
Trivial CRUD and pure coordinators (sagas, gateways) genuinely live in ④ — say so and ask for
|
|
37
|
+
adversarial-order tests (reorder / retry / concurrent) as the guard instead of forcing a pure
|
|
38
|
+
core. Quadrants are judged *inside* a module; module lines are the boundary reviewer's.
|
package/skills/cg/SKILL.md
CHANGED
|
@@ -5,21 +5,30 @@ description: "Trace code and assess change impact via the pre-built symbol, call
|
|
|
5
5
|
|
|
6
6
|
Enter project graph exploration mode (CodeGraph).
|
|
7
7
|
|
|
8
|
-
CodeGraph = pre-built symbol + call-graph index + git co-edit view.
|
|
8
|
+
CodeGraph = pre-built symbol + call-graph index + git co-edit view. One endpoint per class of question:
|
|
9
9
|
|
|
10
10
|
| Question | Endpoint |
|
|
11
11
|
|---|---|
|
|
12
12
|
| Where is X defined / which files share the name? | search?q=X |
|
|
13
|
-
| Export every function/method, optionally within a directory? | symbols?path=src
|
|
13
|
+
| Export every function/method, optionally within a directory? | symbols?path=src |
|
|
14
14
|
| Who calls X? | callers?qname=X |
|
|
15
15
|
| What does X call? | callees?qname=X |
|
|
16
16
|
| Changing X affects which symbols? | impact?qname=X&depth=2 |
|
|
17
17
|
| What symbols does file F contain? | file?path=F |
|
|
18
18
|
| Which files are commonly edited alongside F? (conventional coupling / parallel registries) | coedit?filePath=F |
|
|
19
|
+
| What is near X — callers, callees and frequent co-edits, ranked? | related?qname=X |
|
|
20
|
+
| Which tests reach these files through imports? | affected?files=a,b |
|
|
21
|
+
| Imports, cross-file calls and per-function complexity under a directory? | edges?path=D |
|
|
22
|
+
| A directory's architecture, outside in — modules, entries, dependencies, public API, hotspots? | maps?path=D |
|
|
23
|
+
| Functions under a directory with nearly the same syntax shape? | clones?path=D |
|
|
24
|
+
| Complex and untested functions (complexity × coverage from an existing report)? | crap?path=D |
|
|
25
|
+
|
|
26
|
+
Test files are left out of search / symbols results by default, and every such response says how many in
|
|
27
|
+
`filtered.tests` — see **Test files** below before trusting an absence.
|
|
19
28
|
|
|
20
29
|
All responses are coordinates / file paths — never source bodies. (One exception: `search&includeLiterals=true` echoes each matched literal's own text in `value`.) More precise than grep's textual match, cheaper in tokens than Reading whole files.
|
|
21
30
|
|
|
22
|
-
##
|
|
31
|
+
## Graph endpoints ({{BASE_URL}})
|
|
23
32
|
|
|
24
33
|
```bash
|
|
25
34
|
# search: find symbols by name → hits carry the same node shape as every other
|
|
@@ -28,8 +37,8 @@ All responses are coordinates / file paths — never source bodies. (One excepti
|
|
|
28
37
|
# limit defaults to 50 per category and is capped at 500; use symbols for a full export.
|
|
29
38
|
# All eligible candidates are scanned. Ranking: raw exact name > normalized exact
|
|
30
39
|
# > normalized prefix > normalized substring; ties use path, qualifiedName, then line.
|
|
31
|
-
# path limits the directory (including descendants)
|
|
32
|
-
#
|
|
40
|
+
# path limits the directory (including descendants). Test files are left out of every category
|
|
41
|
+
# (excludeTests=false keeps them; see "Test files"). Small limits still find exact definitions after many fuzzy matches.
|
|
33
42
|
# Pass includeLiterals=true to also search identifier-shaped string literals (tool names, event names,
|
|
34
43
|
# config keys, route paths — the "looks like a name but isn't an identifier" strings). The response
|
|
35
44
|
# then carries an extra literals[] array with value / filePath / line / enclosingSymbol per hit.
|
|
@@ -37,7 +46,7 @@ curl -fsS "{{BASE_URL}}/api/projectGraph/search?cwd=$PWD&q=<NAME>"
|
|
|
37
46
|
curl -fsS "{{BASE_URL}}/api/projectGraph/search?cwd=$PWD&q=<NAME>&includeLiterals=true"
|
|
38
47
|
curl -fsSG "{{BASE_URL}}/api/projectGraph/search" --data-urlencode "cwd=$PWD" \
|
|
39
48
|
--data-urlencode 'q=<NAME>' --data-urlencode 'path=apps/api/src/features' \
|
|
40
|
-
--data-urlencode '
|
|
49
|
+
--data-urlencode 'limit=5'
|
|
41
50
|
|
|
42
51
|
# Full export: defaults to function + method, including indexed nested symbols.
|
|
43
52
|
# path is a project-relative directory including descendants. Omit it for the whole project.
|
|
@@ -46,12 +55,12 @@ curl -fsSG "{{BASE_URL}}/api/projectGraph/search" --data-urlencode "cwd=$PWD" \
|
|
|
46
55
|
# Repeat exclude for POSIX globs rooted at cwd. Quote globs; dot paths require explicit dots.
|
|
47
56
|
# Start broad exploration with a summary; no result-count cap or export cache.
|
|
48
57
|
curl -fsSG "{{BASE_URL}}/api/projectGraph/symbols" --data-urlencode "cwd=$PWD" \
|
|
49
|
-
--data-urlencode 'path=packages/feature'
|
|
58
|
+
--data-urlencode 'path=packages/feature' \
|
|
50
59
|
--data-urlencode 'kind=all' --data-urlencode 'format=summary'
|
|
51
60
|
|
|
52
61
|
# Save full exports to disk, then print only a bounded selection of candidates.
|
|
53
62
|
curl -fsSG "{{BASE_URL}}/api/projectGraph/symbols" --data-urlencode "cwd=$PWD" \
|
|
54
|
-
--data-urlencode 'path=src'
|
|
63
|
+
--data-urlencode 'path=src' \
|
|
55
64
|
--data-urlencode 'exclude=**/generated/**' --data-urlencode 'exclude=**/*.spec.ts' \
|
|
56
65
|
-o /tmp/cg-symbols.json
|
|
57
66
|
|
|
@@ -96,8 +105,10 @@ search { files[], symbols[], literals?[] } # literals only with includeL
|
|
|
96
105
|
symbols[] = { type:'symbol', label, hint?, target: NODE }
|
|
97
106
|
literals[] = { type:'literal', value, filePath, line, enclosingSymbol? }
|
|
98
107
|
# narrow on the outer `type`
|
|
99
|
-
|
|
108
|
+
# filtered = { tests, testFiles? } — tests that WOULD have matched
|
|
109
|
+
symbols { revision, incomplete, total, symbols[]: NODE, excludedFiles[], filtered }
|
|
100
110
|
# excludedFiles[] = { filePath, reason:"source-too-large", sizeBytes, limitBytes }
|
|
111
|
+
# | { filePath, reason:"minified", sizeBytes }
|
|
101
112
|
# exclusions cover the entire revision, before export filters
|
|
102
113
|
# flat output; default kind=function,method; kind=all includes all real kinds
|
|
103
114
|
# unknown display blocks require includeSynthetic=true
|
|
@@ -130,8 +141,52 @@ project-index query verifies Git membership and source content hashes, then
|
|
|
130
141
|
reuses unchanged parse facts and atomically publishes consistent relations.
|
|
131
142
|
Watcher events only record changes; they never trigger parsing by themselves.
|
|
132
143
|
Tracked `node_modules` files are excluded too. Tests remain indexed.
|
|
133
|
-
|
|
134
|
-
|
|
144
|
+
|
|
145
|
+
## Analysis endpoints — one directory at a time
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
B="{{BASE_URL}}/api/projectGraph"
|
|
149
|
+
# imports, cross-file calls (calls[].byName marks guesses), outside importers, complexity per function
|
|
150
|
+
curl -fsSG "$B/edges" --data-urlencode "cwd=$PWD" --data-urlencode 'path=<DIR>'
|
|
151
|
+
# architecture, outside in; layers = the repo's declared layering (JSON), reach=true adds
|
|
152
|
+
# multi-hop entry → write paths (a lead: the call graph is incomplete)
|
|
153
|
+
curl -fsSG "$B/maps" --data-urlencode "cwd=$PWD" --data-urlencode 'path=<DIR>' \
|
|
154
|
+
[--data-urlencode 'layers=<json>'] --data-urlencode 'format=markdown'
|
|
155
|
+
# same-shape function groups (threshold=0.82, minLines=4, minNodes=20, limit=100) — leads, not merges
|
|
156
|
+
curl -fsSG "$B/clones" --data-urlencode "cwd=$PWD" --data-urlencode 'path=<DIR>'
|
|
157
|
+
# CRAP = CC² × (1 − coverage)³ + CC from reports that already exist (coverage=<file>, repeatable);
|
|
158
|
+
# never runs tests — no report → complexity only
|
|
159
|
+
curl -fsSG "$B/crap" --data-urlencode "cwd=$PWD" --data-urlencode 'path=<DIR>'
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
These four are HTTP only: `cockpit codegraph` has no subcommand for them.
|
|
163
|
+
|
|
164
|
+
## Test files
|
|
165
|
+
|
|
166
|
+
One policy for every endpoint that filters (search, symbols, and the analysis endpoints
|
|
167
|
+
edges / maps / clones / crap) and for `affected`, which uses it to pick tests:
|
|
168
|
+
|
|
169
|
+
- **Convention** (heuristic): `*.test.*` / `*.spec.*` / `*.e2e.*` names, `test/` `tests/`
|
|
170
|
+
`__tests__/` directories, Python `test_*.py`, Go `*_test.go`. A Next.js route / page under
|
|
171
|
+
`app/**/test/` is a URL, not a test.
|
|
172
|
+
- **Default `excludeTests=true`**: filtering endpoints leave tests out and return
|
|
173
|
+
`filtered: { tests: N }` (markdown outputs print one line). N counts files under `path`; for
|
|
174
|
+
search, only tests that would have matched.
|
|
175
|
+
- **Look before trusting an absence**: `explainTests=true` adds
|
|
176
|
+
`filtered.testFiles: [{ filePath, rule }]`, the rule being what matched
|
|
177
|
+
(`directory tests/`, `name *.test|spec|e2e.*`, `test <glob>` …).
|
|
178
|
+
- **Correct it** per query with repeatable POSIX globs rooted at cwd: `notTest=<glob>` (never a
|
|
179
|
+
test; wins) and `test=<glob>` (also a test, e.g. `e2e/**`). `affected` takes the same two, as
|
|
180
|
+
query params or JSON arrays in the POST body. `excludeTests=false` keeps every test.
|
|
181
|
+
- `excludeTests`, `explainTests`, `includeLiterals`, `includeSynthetic` and `affected`'s
|
|
182
|
+
`includeAll` accept `true` / `false` / `1` / `0` (in a POST body also as JSON booleans or
|
|
183
|
+
numbers). Only an absent parameter or field takes the default; anything else, an empty value
|
|
184
|
+
or JSON `null` included, is a 400.
|
|
185
|
+
- A left-out file is listed nowhere in a response — not as a result, not as the other end of an
|
|
186
|
+
import or call (`edges` `imports` / `calls[].toFile`), not in counts derived from them — and
|
|
187
|
+
`maps` never walks through one (route files, handler definitions, any function on a call chain,
|
|
188
|
+
inside `path` or out). Files outside `path` are left out uncounted. Not query output, so still
|
|
189
|
+
listed: `excludedFiles` (files the index itself skipped) and `crap` `reports`.
|
|
135
190
|
|
|
136
191
|
Worktrees sharing a canonical Git common directory reuse identical per-path
|
|
137
192
|
parse facts and lookup maps. Relations are resolved independently, then equal
|
|
@@ -148,9 +203,11 @@ Manual force rebuild reparses all admitted sources. Symbol-only file previews
|
|
|
148
203
|
stay local. Opening the function call graph queries the project index on demand
|
|
149
204
|
and waits for its relations (`file-functions&relations=1`). Source/file caps are reported as incomplete
|
|
150
205
|
coverage (`X-Code-Index-Incomplete: 1` on project queries). Sources exceeding
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
206
|
+
512 KiB (524,288 actual input bytes) are excluded; exactly 512 KiB is admitted.
|
|
207
|
+
Minified bundles (`*.min.js` and the like, or 4 KiB+ sources averaging over
|
|
208
|
+
250 characters per line) are excluded too, but as policy, not as incomplete
|
|
209
|
+
coverage. The symbols response lists every excluded path, its reason and byte
|
|
210
|
+
size in `excludedFiles`, even when outside the export directory. Responses also
|
|
154
211
|
include `X-Code-Index-Revision`. Fingerprints do not make heuristic call
|
|
155
212
|
resolution exact.
|
|
156
213
|
|
|
@@ -197,6 +254,20 @@ to each history row. Reuse it rather than calling `/coedit` again.
|
|
|
197
254
|
lack incoming edges. Empty callers or impact is not evidence of safety.
|
|
198
255
|
Cross-check source/text search; `affected` offers a broader file-import view
|
|
199
256
|
within the imports the index can resolve.
|
|
257
|
+
- TS/JS call edges are exact only when the source proves them: a plain or
|
|
258
|
+
imported call no local binding shadows, `this.m()` where `this` belongs to a
|
|
259
|
+
top-level class or object that has its own `m`, `imp.m()` on an unshadowed
|
|
260
|
+
import. Every other call is matched to same-named methods in its file and is a
|
|
261
|
+
guess, labelled `byName`: `this.x.m()`, `make().m()`, `super.m()`, `this.m()`
|
|
262
|
+
whose class has no own `m` (it may be inherited — so a same-named method of an
|
|
263
|
+
unrelated class can appear), and calls under `with` / `eval`. The label shows
|
|
264
|
+
as `edges` `calls[].byName: true`. `maps` lists an entry's direct calls from
|
|
265
|
+
exact edges only; its opt-in `reach=true` paths mark byName hops as
|
|
266
|
+
`byNameHops` (JSON) / `~>`, walk exact calls first (a byName hop only when no
|
|
267
|
+
exact path reaches that write), and mark such reaches where they are counted —
|
|
268
|
+
`states[].entriesByName`, `~` after an entry, `(N by name only)`. Read a byName hop before relying on it. `callers`, `callees`,
|
|
269
|
+
`impact` and `related` do not carry the label yet, so a TS/JS method edge there
|
|
270
|
+
may be such a guess.
|
|
200
271
|
- `related.degradedReason` is `coedit-unavailable` when Git lookup fails, or
|
|
201
272
|
`truncated` when the source index is capped. Empty successful Git history is
|
|
202
273
|
a valid result. `degraded: false` does not establish complete call resolution.
|