@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,303 @@
|
|
|
1
|
+
# cr reviewer — §2 review, §3 finding semantics, §4 report format
|
|
2
|
+
|
|
3
|
+
You are the clean reviewer: you see the brief and this file — never `SKILL.md`, which is the
|
|
4
|
+
main session's (its fix-plan template is not yours to emit). Section numbers continue from
|
|
5
|
+
`SKILL.md`; the main session also opens §4 here when it gates and assembles.
|
|
6
|
+
|
|
7
|
+
Reason from these when no rule fits:
|
|
8
|
+
|
|
9
|
+
- **P1 Independent judgement** — you never see other reviewers' work; nobody steers you.
|
|
10
|
+
- **P3 Real behaviour over proxies** — judge what code and dependencies actually do (source,
|
|
11
|
+
comparison, caller), not what a name, comment, mock, green test or intuition suggests.
|
|
12
|
+
- **P4 Solution diagram first, then the breaks** — the reader understands a problem only against
|
|
13
|
+
the whole solution; draw once, say only what the drawing can't; rate by the harm the broken
|
|
14
|
+
promise existed to prevent.
|
|
15
|
+
- **Report every break the checklists surface.** A suspected break you cannot fully prove is
|
|
16
|
+
still a finding — run it (§2.A "Run it") if you can, otherwise say in Why what would settle
|
|
17
|
+
it; never a silent omission. Leads you checked and cleared go in coverage, one line each.
|
|
18
|
+
- **Your report is §4's five parts** — nothing else; no fix plan.
|
|
19
|
+
- **Run §4's `format_gate` on your own report before you emit.** A bounce fixes form only; a
|
|
20
|
+
changed number, rating or origin must be said in the re-emitted report.
|
|
21
|
+
|
|
22
|
+
A brief with no round, extra sections (focus areas, earlier findings, paths to look at) or a
|
|
23
|
+
range narrower than the whole change is not repaired by you. Review the whole change anyway,
|
|
24
|
+
head the report `## Review: <target> (round ?)` when the round is missing, and make the last
|
|
25
|
+
coverage line `brief does not follow §1.2: <what is missing>`.
|
|
26
|
+
|
|
27
|
+
Before you emit, check your own report:
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
assert you judged alone, from the brief and these files only # P1
|
|
31
|
+
assert every behavioural claim rests on real code / source, not a proxy # P3
|
|
32
|
+
assert diagram arrows == real control flow; each ✗#n once, right-hand column # P4
|
|
33
|
+
assert every slice ✓ / ✗#n / not-modelled; every finding has an Origin # coverage
|
|
34
|
+
assert pre-existing, non-activated, non-blocking → outside list, not a finding # §3, §4
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 2. Reviewer
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
def review(scope):
|
|
43
|
+
static_surface = all_changes(diff)
|
|
44
|
+
dynamic_surface = slices_touching(diff, "state | timing | concurrency | retries | cross-process hop")
|
|
45
|
+
# A judges as-written; B judges over-time. Same spot can be in both.
|
|
46
|
+
|
|
47
|
+
findings = []
|
|
48
|
+
if scope in ("all", "static"):
|
|
49
|
+
findings += part_A(static_surface) # checklist §2.A
|
|
50
|
+
diagram = draw_solution_diagram(diff) # §3 rules; working copy for the report
|
|
51
|
+
if scope in ("all", "dynamic", "slice") and dynamic_surface:
|
|
52
|
+
slices = enumerate_all_slices(dynamic_surface, ARCHETYPES) # list ALL first
|
|
53
|
+
for s in slices: # a missed slice = all its risks missed
|
|
54
|
+
model = build_model(s) # state diagram · timeline · trajectory
|
|
55
|
+
for risk in RISKS: # §2.B, all seven, every slice
|
|
56
|
+
findings += evaluate(risk, model)
|
|
57
|
+
coverage.add(s, "✗#n" if s has finding else "✓")
|
|
58
|
+
# slice not modelled → coverage.add(s, "— not modelled: <reason>")
|
|
59
|
+
|
|
60
|
+
for f in findings:
|
|
61
|
+
f.consequence = "When <trigger>, <the promised behaviour> does not happen."
|
|
62
|
+
f.origin = revert_counterfactual(f) # §3
|
|
63
|
+
f.severity = rate(f) # §3
|
|
64
|
+
if not traced_to_birth(f) and f.kind == "race":
|
|
65
|
+
f.probability += " needs dynamic verification: <what's missing>" # keep the tier
|
|
66
|
+
|
|
67
|
+
return ReviewerReport(findings, diagram, coverage) # working notes stay with you
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 2.A Static checklist — triangulate against intent / input domain / surroundings
|
|
71
|
+
|
|
72
|
+
Only semantic problems tools can't judge (style / format / unused / type errors → linter).
|
|
73
|
+
|
|
74
|
+
- **A1 vs intent** — do name / signature / PR text / comments **promise** what the code
|
|
75
|
+
does? Do error / boundary branches return the right thing, not the happy-path value?
|
|
76
|
+
Comments and docs in sync?
|
|
77
|
+
- **A2 vs input domain** (#1 bug source) — null / empty / single / duplicate / boundary /
|
|
78
|
+
overflow / negative / unicode / over-length? Error path as correct as happy path,
|
|
79
|
+
including the error **shapes** that actually arrive (P3)? Resources closed, state
|
|
80
|
+
consistent on early return? External input treated as untrusted?
|
|
81
|
+
For inputs that control identity, access, resource selection, or side effects, trace
|
|
82
|
+
omitted vs explicit empty / zero / null / false vs valid values to the branch that uses
|
|
83
|
+
them. Check where they collapse into one or fall into a default (`||` / `??`, truthiness
|
|
84
|
+
checks, JSON dropping `undefined`, query-string / form coercion).
|
|
85
|
+
**Run it, don't just read it**: when a branch's behaviour on an input is in doubt, build
|
|
86
|
+
that input and call the changed unit from a scratch script **outside the repo** (`/tmp`,
|
|
87
|
+
with the repo's own runtime and already-installed tooling — e.g. `npx tsx`, `python -c`,
|
|
88
|
+
`go run`). That is not a write — the
|
|
89
|
+
read-only constraint covers the repo, installs and external systems. Name the script and
|
|
90
|
+
its result in the finding's Why or the last coverage line. Scratch scripts are allowed even
|
|
91
|
+
when the brief says "Tests: not allowed" — that line is about the repo's test suite.
|
|
92
|
+
- **A3 vs surroundings** — contract drift (all consumers updated? find them with §2.C);
|
|
93
|
+
**dependency
|
|
94
|
+
contracts** checked in the dependency's source or docs (returns / throws / internal
|
|
95
|
+
behaviour / defaults / units, P3); convention / layering; types bypassed by `any` / casts;
|
|
96
|
+
security checks the siblings all have.
|
|
97
|
+
- **Wrap-up** — duplicated decisions; dead code; local perf (N+1, IO in loop, unbounded);
|
|
98
|
+
tests: boundary / error assertions, red-before-fix, **test doubles behave like the real
|
|
99
|
+
boundary** (P3).
|
|
100
|
+
|
|
101
|
+
### 2.B Dynamic checklist
|
|
102
|
+
|
|
103
|
+
`ARCHETYPES` — sweep all when enumerating slices:
|
|
104
|
+
- shared-state init + multi-write · state reused across processes / re-entry ·
|
|
105
|
+
check-then-act across an async gap (TOCTOU) · fire-and-forget write + later read ·
|
|
106
|
+
implicit context across a hop · **state machines inside a dependency** (auto-retry,
|
|
107
|
+
backoff, cache, pool, buffer — what does the caller observe while it runs and once it ends?) ·
|
|
108
|
+
side-effecting call that fails or times out (outcome unknown to the caller)
|
|
109
|
+
|
|
110
|
+
`build_model` — read who reads / writes (across features, callers, into dependencies; find
|
|
111
|
+
them with §2.C), then
|
|
112
|
+
draw for yourself: **state diagram** (who changes it under what condition), **timeline**
|
|
113
|
+
(all actors on one axis, traced to where the state is truly born), **change trajectory**
|
|
114
|
+
(created / changed / read / overwritten / lost).
|
|
115
|
+
|
|
116
|
+
`RISKS` — evaluate every one on every slice:
|
|
117
|
+
|
|
118
|
+
| Risk | Look for |
|
|
119
|
+
|---|---|
|
|
120
|
+
| Order race | a writer before the initializer; "awaited here" ≠ first touch |
|
|
121
|
+
| Overlap / undercount | same event recorded twice, or by nobody |
|
|
122
|
+
| Lost update | stale read overwrites the correct value |
|
|
123
|
+
| Fail-open wrong value | degradation lets a wrong / missing value through; read the guard's actual comparison (`NaN` is false both ways) |
|
|
124
|
+
| Ambiguous outcome | a failure after the side effect may have landed; did the guard (idempotency key / txn / lock) hold; caller saw an error or no reply; auto-retry or "try again" guidance repeats or loses the effect |
|
|
125
|
+
| Cross-process / re-entry | reused state cross-talks; implicit context lost over the hop |
|
|
126
|
+
| Provenance break | key value no-op'd / overwritten / wrapped / type-erased between source and use |
|
|
127
|
+
|
|
128
|
+
Uncertain about ordering or arithmetic → frame as satisfiability: free variables, only real
|
|
129
|
+
happens-before constraints, invariant; SAT = bug with its trigger, UNSAT = safe.
|
|
130
|
+
Disciplines: a census isn't done until order + overlap are verified · no downgrading on local
|
|
131
|
+
observation · green tests ≠ verification (was the bug's layer mocked away?).
|
|
132
|
+
|
|
133
|
+
### 2.C Finding callers, consumers and paths — cg, then grep
|
|
134
|
+
|
|
135
|
+
cg is a pre-built symbol / import / call-graph index of the working tree; it answers "who calls
|
|
136
|
+
this, who imports this, can this be reached from there" in every naming style. Coordinates only:
|
|
137
|
+
read `startLine..endLine`, cite `filePath:declLine`.
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
B="{{BASE_URL}}/api/projectGraph"
|
|
141
|
+
curl -fsS "$B/callers?cwd=$PWD&qname=<QNAME>&filePath=<FILE>" # 1 hop
|
|
142
|
+
curl -fsS "$B/impact?cwd=$PWD&qname=<QNAME>&depth=3" # transitive callers; truncated = partial
|
|
143
|
+
curl -fsS "$B/affected?cwd=$PWD&files=<a,b>&depth=10" # who imports these files, transitively
|
|
144
|
+
curl -fsS "$B/search?cwd=$PWD&q=<NAME>&includeLiterals=true" # defs + string literals (event
|
|
145
|
+
# names, enum values, routes, keys)
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
- **An empty result is a proxy, not evidence (P3).** cg misses aliases, instance methods,
|
|
149
|
+
dynamic dispatch and callbacks passed as values; grep every spelling, the string form and
|
|
150
|
+
non-code files (SQL, YAML, config) before concluding "no other consumer / caller".
|
|
151
|
+
- **cg sees the checked-out tree.** The change not checked out → cg describes the base; use git
|
|
152
|
+
and grep for the change and say so in coverage. Never check out, stash or create a worktree to
|
|
153
|
+
fix this. `target: null` + `ambiguousIn` → retry with `filePath`.
|
|
154
|
+
- Index unavailable (server down, git operation in progress) → grep and git; coverage says
|
|
155
|
+
`cg unavailable`.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 3. Finding semantics
|
|
160
|
+
|
|
161
|
+
```python
|
|
162
|
+
def revert_counterfactual(f):
|
|
163
|
+
if gone_if_reverted(f): return "introduced" # incl. half-landed changes: one side
|
|
164
|
+
# of a contract/enum/mirror updated,
|
|
165
|
+
# even if the line is outside the diff
|
|
166
|
+
if harmless_if_reverted(f): return "activated" # this change made it reachable —
|
|
167
|
+
# show the path: impact / callers on
|
|
168
|
+
# the old code (§2.C), and the edge
|
|
169
|
+
# this diff added to it
|
|
170
|
+
return "pre-existing"
|
|
171
|
+
# never blank; unsure → likeliest + what would settle it. Orthogonal to severity.
|
|
172
|
+
# pre-existing AND not activated → not a finding; it goes to the "outside" list (§4)
|
|
173
|
+
# unless it defeats the stated intent (the change cannot deliver its promise while it
|
|
174
|
+
# stands) — then it stays a finding, Why: "blocks intent: <how>"
|
|
175
|
+
|
|
176
|
+
def rate(f):
|
|
177
|
+
if f.impact == "big" and (f.probability != "negligible" or f.irreversible):
|
|
178
|
+
return "🔴" # irreversible = data loss / wrong money / security
|
|
179
|
+
if f.should_fix: return "🟡"
|
|
180
|
+
return "⚪"
|
|
181
|
+
# a safeguard failing in the very scenario it exists for is rated by the harm it was
|
|
182
|
+
# meant to prevent — "no worse than before the change" is not a downgrade
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
`Consequence` — the first promised behaviour that fails, under its trigger, one clause:
|
|
186
|
+
**"When <trigger>, <the promised behaviour> does not happen."** Mechanism → `Break`;
|
|
187
|
+
downstream → `Effect`. ("X instead of Y" smuggles in a downstream effect — state Y's failure.)
|
|
188
|
+
|
|
189
|
+
**Solution diagram rules** — one ` ```text ` block, top to bottom, ≤ ~80 columns: one box per
|
|
190
|
+
component (name + `file:line`), decisions as branches labelled with their condition, happy
|
|
191
|
+
path straight down, dependencies collapsed to one box unless a break lives inside. It is a
|
|
192
|
+
claim about behaviour (P3): every arrow is real control flow, arms that don't join in code
|
|
193
|
+
don't join here, every path drawn to where it ends. Lines never cross a box or each other — repeat a terminal box (e.g. the same fail-closed exit) at the end of each path rather than route a long line across the diagram.
|
|
194
|
+
Annotations in a right-hand column. Each finding marked **once**: `✗#n 🔴 <what>`.
|
|
195
|
+
|
|
196
|
+
```text
|
|
197
|
+
Webhook dedup (this change)
|
|
198
|
+
|
|
199
|
+
┌───────────────────────────┐
|
|
200
|
+
│ provider webhook delivery │
|
|
201
|
+
└─────────────┬─────────────┘
|
|
202
|
+
▼
|
|
203
|
+
┌───────────────────────────┐
|
|
204
|
+
│ receive handler.ts:40 │
|
|
205
|
+
└─────────────┬─────────────┘
|
|
206
|
+
▼
|
|
207
|
+
┌───────────────────────────┐
|
|
208
|
+
│ dedup lookup dedup.ts:12 │ ✗#1 🔴 key = id + timestamp:
|
|
209
|
+
│ key = id + timestamp │ a redelivery never matches
|
|
210
|
+
└──────┬─────────────┬──────┘
|
|
211
|
+
hit │ │ miss
|
|
212
|
+
▼ ▼
|
|
213
|
+
┌──────────────┐ ┌──────────────────────┐
|
|
214
|
+
│ ignore │ │ process handler.ts:58│
|
|
215
|
+
│ (promised │ └──────────┬───────────┘
|
|
216
|
+
│ for repeats) │ ▼
|
|
217
|
+
└──────────────┘ ┌──────────────────────┐
|
|
218
|
+
│ charge billing.ts:90 │
|
|
219
|
+
└──────────────────────┘
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## 4. Report format and gate
|
|
225
|
+
|
|
226
|
+
```python
|
|
227
|
+
REPORT = [ # exactly these five parts, nothing else
|
|
228
|
+
"heading+verdict", # "## Review: <task> (round N)" +
|
|
229
|
+
# "<N> findings (🔴a 🟡b ⚪c). Worst: <Consequence verbatim>"
|
|
230
|
+
# — counts only introduced / activated / intent-blocking findings
|
|
231
|
+
"diagram", # §3; unmarked if no findings
|
|
232
|
+
"findings", # one block each, sorted
|
|
233
|
+
"outside", # pre-existing, not activated: one line each, no block, not counted;
|
|
234
|
+
# omitted when empty
|
|
235
|
+
"coverage", # ```text block
|
|
236
|
+
]
|
|
237
|
+
# > 5 findings → index before the diagram, a Markdown list, one item per finding:
|
|
238
|
+
# "- #1 🔴 introduced — <Consequence>" (bare lines collapse into one paragraph)
|
|
239
|
+
# language = the user's; identifiers and file:line unchanged
|
|
240
|
+
# blank line before the "## Review" heading and before and after every code block
|
|
241
|
+
# test runs / scratch scripts / side notes → a finding's Why, or the last coverage line
|
|
242
|
+
|
|
243
|
+
def format_gate(report) -> list[str]: # countable checks only; never judges content
|
|
244
|
+
errors = []
|
|
245
|
+
for f in report.findings:
|
|
246
|
+
body = f.block.body
|
|
247
|
+
if not body.is_fenced("text"): errors.append(f"#{f.n}: body not in ```text")
|
|
248
|
+
if body.line_count() > 8: errors.append(f"#{f.n}: {body.line_count()} lines > 8")
|
|
249
|
+
if body.max_line_width() > 100: errors.append(f"#{f.n}: line > 100 chars")
|
|
250
|
+
if body.has_sub_bullets(): errors.append(f"#{f.n}: sub-bullets")
|
|
251
|
+
if f.block.heading != f"### #{f.n} {f.severity} {f.consequence}":
|
|
252
|
+
errors.append(f"#{f.n}: heading ≠ Consequence")
|
|
253
|
+
if f.origin == "pre-existing" and "blocks intent" not in f.why:
|
|
254
|
+
errors.append(f"#{f.n}: pre-existing, not intent-"
|
|
255
|
+
"blocking → move to outside")
|
|
256
|
+
for line in report.outside.lines():
|
|
257
|
+
if len(line) > 120: errors.append("outside: one line per item, ≤ 120")
|
|
258
|
+
for line in report.coverage.slice_lines():
|
|
259
|
+
if words(line.name) > 6: errors.append(f"coverage: '{line.name}' > 6 words")
|
|
260
|
+
if report.diagram.marks_per_finding() > 1: errors.append("a ✗#n marked more than once")
|
|
261
|
+
if report.has_parts_outside(REPORT): errors.append("content outside the five parts")
|
|
262
|
+
return errors
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Finding block — Markdown heading, body in a ` ```text ` block (plain text, no backticks,
|
|
266
|
+
continuation lines indented under the field):
|
|
267
|
+
|
|
268
|
+
````
|
|
269
|
+
### #1 🔴 When the provider redelivers the same webhook, the duplicate is not ignored
|
|
270
|
+
|
|
271
|
+
```text
|
|
272
|
+
introduced · every redelivery; depends on provider retry policy
|
|
273
|
+
Break: ✗#1 dedup.ts:12 — the key includes the delivery timestamp,
|
|
274
|
+
so a redelivery never matches
|
|
275
|
+
Effect: redelivery → processed again (handler.ts:58) → charged twice (billing.ts:90)
|
|
276
|
+
Why: dedup must key on what stays stable across redeliveries;
|
|
277
|
+
verified against the provider's retry docs
|
|
278
|
+
Fix: key on the delivery id alone; add a test that redelivers the same payload
|
|
279
|
+
```
|
|
280
|
+
````
|
|
281
|
+
|
|
282
|
+
`Break` may carry a flat zoom-in of at most 3 lines when the mechanism needs it.
|
|
283
|
+
|
|
284
|
+
Outside block — only when non-empty; severity is still rated (§3) so a serious old problem
|
|
285
|
+
stays visible, but it is registered, not fixed in this change:
|
|
286
|
+
|
|
287
|
+
```text
|
|
288
|
+
Seen outside this change (pre-existing, not activated — register, don't fix here)
|
|
289
|
+
🔴 queue.ts:88 — When a job times out after its side effect, the retry repeats the effect
|
|
290
|
+
🟡 parse.ts:31 — When the input is empty, the error names the wrong field
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
Coverage block — always present, one slice per line, marks `✗#n` / `✓` / `— not modelled:`:
|
|
294
|
+
|
|
295
|
+
```text
|
|
296
|
+
introduced 1 (🔴1) / activated 0 / pre-existing 0
|
|
297
|
+
S1 dedup lookup on redelivery ✗#1
|
|
298
|
+
S2 concurrent first deliveries ✓
|
|
299
|
+
S3 retry after handler crash — not modelled: no retry path in diff
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Static-only reviewer → `slices: none (static only)`.
|
|
303
|
+
|
package/skills/rf/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rf
|
|
3
|
-
description: "Find — and find all — the real problems that make a codebase harder to change: knowledge duplicated across places, dead or unfinished code, decisions in the wrong layer, broken boundaries and contracts. Several independent angles, merged and evidence-checked. Scope: a path, a feature or scenario, a just-finished change (PR / branch / diff), review findings that keep coming, or `audit` for the whole repo. Diagnosis is read-only; the report groups findings into a few root causes with a recommended plan, and replying to it (or naming causes / numbers) fixes them after you approve, accepting only less code with quality no worse."
|
|
3
|
+
description: "Find — and find all — the real problems that make a codebase harder to change: knowledge duplicated across places, dead or unfinished code, decisions in the wrong layer, broken boundaries and contracts, code a human cannot read without reconstructing it. Several independent angles, merged and evidence-checked. Scope: a path, a feature or scenario, a just-finished change (PR / branch / diff), review findings that keep coming, or `audit` for the whole repo. Diagnosis is read-only; the report groups findings into a few root causes with a recommended plan, and replying to it (or naming causes / numbers) fixes them after you approve, accepting only less code with quality no worse."
|
|
4
4
|
argument-hint: "[audit | <path / feature / PR · branch · diff / findings> | yes · <root causes ①② or finding numbers to fix>]"
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -83,7 +83,7 @@ The main session prepares the scope, never the verdicts:
|
|
|
83
83
|
```python
|
|
84
84
|
def diagnose(scope):
|
|
85
85
|
tier = "single" if clearly_small(scope) else "angles" # a few files → one reviewer, all lenses
|
|
86
|
-
reviewers = [ANGLES_ALL] if tier == "single" else ANGLES # lenses.md: A · B · C · D
|
|
86
|
+
reviewers = [ANGLES_ALL] if tier == "single" else ANGLES # lenses.md: A · B · C · D · E
|
|
87
87
|
maps = run_maps(scope, layers_from_repo_rules()) # sources.md "Maps"; None if skipped
|
|
88
88
|
reports = parallel(spawn_clean(PROMPT.format(scope=scope, angle=a,
|
|
89
89
|
maps=maps if a in ("C", "D") else None)) for a in reviewers)
|
|
@@ -107,9 +107,10 @@ PROMPT: Read <SKILL.md>, axes.md, sources.md, and lenses.md section <angle>. Sco
|
|
|
107
107
|
(axes.md "Scope") — needed only if you can name the part of the intent that fails
|
|
108
108
|
or the guarantee the change itself declares that breaks without it.
|
|
109
109
|
[C, D with maps:] Read <maps> first and compare it with the repo's declared
|
|
110
|
-
architecture; every
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
architecture; every dependency against a written rule, every state with several
|
|
111
|
+
writers and every private name imported from outside is a lead — trace from its
|
|
112
|
+
file:line with cg callers / callees and grep, verify on the code, and answer the
|
|
113
|
+
maps' open question. They miss things; do not limit yourself to them.
|
|
113
114
|
```
|
|
114
115
|
|
|
115
116
|
Reviewers are clean: they see the scope and the skill files, never each other's reports or
|
package/skills/rf/axes.md
CHANGED
|
@@ -4,16 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
Software's cost is in changing it, and nobody holds the whole system in their head. A
|
|
6
6
|
problem is **a place where the next change got more expensive for an ordinary maintainer
|
|
7
|
-
who did not write this part**, along
|
|
7
|
+
who did not write this part**, along four orthogonal axes:
|
|
8
8
|
|
|
9
9
|
| Axis | Cost | Invariant |
|
|
10
10
|
|---|---|---|
|
|
11
11
|
| **Boundary** | blast radius — how much must be held at once | what changes together lives together; each piece of knowledge lives once |
|
|
12
12
|
| **Structure** | verifying a change — by reading vs by modelling timing | decisions are cheap to verify |
|
|
13
13
|
| **Evolution** | coordinating parties that deploy apart | contracts never break in place |
|
|
14
|
+
| **Legibility** | understanding the code before changing it — reading vs reconstructing | code says what it does where a reader looks for it |
|
|
14
15
|
|
|
15
16
|
**Gate.** Each finding says in one sentence which class of future change it makes more
|
|
16
|
-
expensive, harder to verify, or dependent on impossible coordination. No
|
|
17
|
+
expensive, harder to understand, harder to verify, or dependent on impossible coordination. No
|
|
18
|
+
sentence → drop it — taste ("I would name it differently") never passes.
|
|
17
19
|
|
|
18
20
|
**Order** by impact (a judgement, in words), churn breaking ties (`git log`, measured). No
|
|
19
21
|
scores. Ugly code nobody touches comes last.
|
|
@@ -42,6 +44,25 @@ expand → migrate → contract. Adding an enum member is safe only if old consu
|
|
|
42
44
|
closed on unknown values; giving an existing value a new meaning is never safe in place.
|
|
43
45
|
Signatures inside one deployable are not contracts.
|
|
44
46
|
|
|
47
|
+
**Legibility.** Code in a repository exists to be read and understood by a human engineer;
|
|
48
|
+
whatever makes that harder is a cost on every later change, because a change made without
|
|
49
|
+
understanding is a guess. Names that say something other than what the code does, a function
|
|
50
|
+
doing several things at mixed levels, a rule implied by call order or a boolean flag, a
|
|
51
|
+
non-obvious branch with no stated reason, indirection that hides where the work happens — each
|
|
52
|
+
makes the reader reconstruct what the code should have said (`lenses.md` E).
|
|
53
|
+
|
|
54
|
+
**Evidence for any finding on this axis**, whichever angle reports it — one of the two, cited,
|
|
55
|
+
for every claim the finding makes (a claim without its own evidence is cut, not carried by the
|
|
56
|
+
others):
|
|
57
|
+
1. the code contradicts itself: a name against what it names — functions, types, files,
|
|
58
|
+
directories and path conventions alike; one concept under names the code treats differently;
|
|
59
|
+
a comment or doc against the code (reported by B, "Stale words");
|
|
60
|
+
2. the misreading has already happened: a commit that fixed it, a bug it caused, or code, docs,
|
|
61
|
+
help or other user-facing text in the repo that already acts on the wrong reading. A
|
|
62
|
+
misreading of a different name does not count; code that copies or works around something
|
|
63
|
+
after reading it correctly is not a misreading.
|
|
64
|
+
"Several names", "I would name it differently" or "someone might misread this" alone → drop it.
|
|
65
|
+
|
|
45
66
|
## Tags — what kind of problem, in the order to consider them
|
|
46
67
|
|
|
47
68
|
| Tag | Means | Before proposing it |
|
|
@@ -51,6 +72,7 @@ Signatures inside one deployable are not contracts.
|
|
|
51
72
|
| `finish` | a half migration, an unfinished contract step | both halves located |
|
|
52
73
|
| `move` | in the wrong place: layering, ownership, fan-in | the declared or dominant direction it breaks |
|
|
53
74
|
| `converge` | case-by-case patches approximating an invariant; shadow state; a contract failing open; guards that should fold into one exit | the invariant in one sentence |
|
|
75
|
+
| `rename` | a name that says something other than what it names, or nothing at all | the behaviour the new name states, checked on every caller |
|
|
54
76
|
| `reshape` | the shape itself — split, extract, inline | none of the above fits |
|
|
55
77
|
| `pin` | the shape is right but nothing stops it regressing | the rule form the repo already uses; for a removed guard, a `Pruned → <where the state now goes>` comment in the language's comment syntax |
|
|
56
78
|
| `drift` | code contradicting a rule the repo wrote down | the rule, quoted |
|
package/skills/rf/fix.md
CHANGED
|
@@ -15,8 +15,6 @@ S="{{BASE_URL}}/api/snapshots"
|
|
|
15
15
|
mark() { curl -fsS -X POST "$S/mark" -H 'content-type: application/json' \
|
|
16
16
|
--data "{\"cwd\":\"$PWD\",\"label\":\"$1\"}" | jq -r .hash; }
|
|
17
17
|
M0=$(mark "rf fix start") # right before the first edit; their work is inside M0
|
|
18
|
-
curl -fsSG "{{BASE_URL}}/api/projectGraph/maps" --data-urlencode "cwd=$PWD" \
|
|
19
|
-
--data-urlencode 'path=<DIR>' > <scratch>/maps-before.json # measures to compare at the end
|
|
20
18
|
B1=$(mark "batch 1 start") # one per batch
|
|
21
19
|
# lines: what changed between two marks, prod and test apart (raw counts, label them so)
|
|
22
20
|
curl -fsS "$S/range-diff?cwd=$PWD&base=$M0&head=$(mark now)" \
|
|
@@ -47,12 +45,52 @@ A finding that does not survive the re-check is reported as withdrawn, not fixed
|
|
|
47
45
|
## 2. Baseline
|
|
48
46
|
|
|
49
47
|
Run the repo's own typecheck, lint and the tests covering the sites (cg `affected` over the
|
|
50
|
-
site files, plus a text search for the names) once, before editing
|
|
48
|
+
site files, plus a text search for the names) once, before editing — with coverage on, the
|
|
49
|
+
report written to scratch, so the run that sets the baseline also measures it (create
|
|
50
|
+
`<scratch>/before` and `<scratch>/after` first; not every runner does):
|
|
51
|
+
|
|
52
|
+
| Runner | Add | Needs, already installed |
|
|
53
|
+
|---|---|---|
|
|
54
|
+
| vitest | `--coverage --coverage.reporter=lcov --coverage.reportsDirectory=<scratch>/before` | a coverage provider |
|
|
55
|
+
| jest | `--coverage --coverageReporters=lcov --coverageDirectory=<scratch>/before` | — |
|
|
56
|
+
| other node | `c8 --reporter=lcovonly --report-dir=<scratch>/before <command>` | c8 |
|
|
57
|
+
| node:test | `--experimental-test-coverage --test-reporter=lcov --test-reporter-destination=<scratch>/before/lcov.info` | — |
|
|
58
|
+
| pytest / unittest | `COVERAGE_FILE=<scratch>/before/.coverage coverage run -m <command>`, then `COVERAGE_FILE=… coverage lcov -o <scratch>/before/lcov.info` | coverage.py |
|
|
59
|
+
| go test | `-coverprofile=<scratch>/before/cover.out` | — |
|
|
60
|
+
| cargo | `cargo llvm-cov --lcov --output-path <scratch>/before/lcov.info` | cargo-llvm-cov |
|
|
61
|
+
|
|
62
|
+
Never install a provider and never edit the repo's config for it; missing → run the tests
|
|
63
|
+
plainly and say "no CRAP: <what is missing>". `<report>` below is the file that runner wrote —
|
|
64
|
+
`lcov.info` for every row but Go's `cover.out` — and §5 reruns the same row into `after/`, so
|
|
65
|
+
both measurements read `<scratch>/before/<report>` and `<scratch>/after/<report>`. Every tool run (tests, coverage, typecheck) must
|
|
66
|
+
leave the site as it found it: take `git status --porcelain --ignored --untracked-files=all` before and
|
|
67
|
+
after (leftovers usually land in ignored paths); a new file may be the tool's leftover (or the engineer's work meanwhile) — list it in
|
|
68
|
+
the plan as "appeared during <command>", never delete it, and give that tool a scratch path
|
|
69
|
+
next time. Then read per-function
|
|
70
|
+
coverage and CRAP:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
curl -fsSG "{{BASE_URL}}/api/projectGraph/crap" --data-urlencode "cwd=$PWD" \
|
|
74
|
+
--data-urlencode 'path=<DIR>' --data-urlencode 'coverage=<scratch>/before/<report>' \
|
|
75
|
+
--data-urlencode 'limit=5000' \
|
|
76
|
+
> <scratch>/crap-before.json # every function, worst first; truncated:true → narrow <DIR>
|
|
77
|
+
curl -fsSG "{{BASE_URL}}/api/projectGraph/maps" --data-urlencode "cwd=$PWD" \
|
|
78
|
+
--data-urlencode 'path=<DIR>' --data-urlencode "layers=$(cat <scratch>/layers.json)" \
|
|
79
|
+
> <scratch>/maps-before.json # measures to compare at the end; no declared layering → drop `layers`
|
|
80
|
+
curl -fsSG "{{BASE_URL}}/api/projectGraph/edges" --data-urlencode "cwd=$PWD" \
|
|
81
|
+
--data-urlencode 'path=<DIR>' > <scratch>/edges-before.json # complexity of every function
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
`<scratch>/layers.json` is the repo's declared layering, written as `sources.md` "Maps" says;
|
|
85
|
+
the same file goes into both `maps` runs.
|
|
86
|
+
|
|
51
87
|
- Red → stop and report; never fix it inside the refactor.
|
|
52
88
|
- Replacing case-by-case branches with an invariant (`converge`) → the first batch adds an
|
|
53
89
|
invariant test that **fails on the current code**.
|
|
54
|
-
- A site no test covers
|
|
55
|
-
a manual check). Never call it
|
|
90
|
+
- A site no test covers (coverage `0` or `null` in the report, or no test reaches it) → say
|
|
91
|
+
what stands in (a characterization test first, the typecheck, a manual check). Never call it
|
|
92
|
+
verified. High CRAP on a site (complex and barely covered) → the characterization test comes
|
|
93
|
+
in the first batch.
|
|
56
94
|
|
|
57
95
|
## 3. Plan — then wait
|
|
58
96
|
|
|
@@ -111,7 +149,9 @@ keeps outgrowing the plan → stop and show it.
|
|
|
111
149
|
|
|
112
150
|
One clean read-only subagent gets the approved plan and the diff, not your reasoning: any
|
|
113
151
|
observable change beyond the approved ones? is the old shape still reachable anywhere
|
|
114
|
-
(re-find every site)?
|
|
152
|
+
(re-find every site)? if a touched function returned a constant or empty value instead,
|
|
153
|
+
would the new tests still pass (coverage shows a test ran the code, not that it checked it)?
|
|
154
|
+
where is the new code hard to follow? Relay its answer verbatim.
|
|
115
155
|
|
|
116
156
|
Accept only if both hold over the whole run:
|
|
117
157
|
- **Less code** — prod and test lines counted **apart**, from `M0` to a final mark (raw
|
|
@@ -121,16 +161,24 @@ Accept only if both hold over the whole run:
|
|
|
121
161
|
shown subsumed; invariant tests failed before and pass after; nothing on `axes.md`'s
|
|
122
162
|
never-simplify list removed; the reviewer found no unapproved change; no new cycle, no
|
|
123
163
|
added ④ complexity, no new import of another module's internals — checked mechanically:
|
|
124
|
-
save cg `maps` (JSON) for the touched directories before the first edit and again
|
|
125
|
-
end,
|
|
126
|
-
`
|
|
164
|
+
save cg `maps` and `edges` (JSON) for the touched directories before the first edit and again
|
|
165
|
+
at the end, `maps` with the same `layers` both times, and compare `cycles`, `outsideImports`,
|
|
166
|
+
`backEdges` (declared layering) or — with none declared, where `backEdges` is always empty —
|
|
167
|
+
new imports between modules: map both ends of every file import (`edges` `imports`) of both
|
|
168
|
+
runs through the *before* `maps` `layerOf` (a file it lacks takes the module of its nearest
|
|
169
|
+
folder it has), and report cross-module pairs only the after run has — modules are re-drawn
|
|
170
|
+
from file counts each run, so never compare the two runs' `layerMatrix` directly. And each touched function's `complexity` from `edges`
|
|
171
|
+
(`maps` lists only the most complex few). A rise is reported with the function, even when every test passes. With a
|
|
172
|
+
baseline coverage report, rerun the same tests the same way into `<scratch>/after` and
|
|
173
|
+
compare each touched function's `crap` (a split function: the worst of its parts): a
|
|
174
|
+
rise means the change made code harder to verify — not accepted, add the tests or undo.
|
|
127
175
|
|
|
128
176
|
Quality ✗ → not accepted, whatever it saved: fix or undo. Lines rising with quality held is
|
|
129
177
|
acceptable only when the report says what the lines buy.
|
|
130
178
|
|
|
131
179
|
````
|
|
132
180
|
## rf fix: #<n>, #<m>
|
|
133
|
-
Prod −a/+b · tests −c/+d · quality: tests ✓ invariants ✓ guards ✓ reviewer ✓ measures ✓
|
|
181
|
+
Prod −a/+b · tests −c/+d · quality: tests ✓ invariants ✓ guards ✓ reviewer ✓ measures ✓ CRAP ✓|n/a
|
|
134
182
|
<per finding: what changed · sites done/left/excluded · the count that matters, e.g. 3 ways → 1>
|
|
135
183
|
Verified: <command → result> · Reviewer: <verbatim> · Left behind: <trigger> · Bugs seen: <…>
|
|
136
184
|
````
|
package/skills/rf/lenses.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# rf lenses —
|
|
1
|
+
# rf lenses — five angles, each looking for one kind of problem
|
|
2
2
|
|
|
3
|
-
Each reviewer takes one angle (or all
|
|
3
|
+
Each reviewer takes one angle (or all five when the scope is small). The angles do not
|
|
4
4
|
overlap: a finding belongs to the angle whose question it answers. Inside your angle, go
|
|
5
5
|
through every lens — a lens skipped is a class of problem nobody looked for. Sources and
|
|
6
6
|
their blind spots are in `sources.md`.
|
|
@@ -14,7 +14,7 @@ which you believe and why; the engineer decides.
|
|
|
14
14
|
|
|
15
15
|
| Lens | Look for | Best source |
|
|
16
16
|
|---|---|---|
|
|
17
|
-
| Same helper | two functions doing one job under different names | skeleton: same parameter and return types; grep the data names they touch |
|
|
17
|
+
| Same helper | two functions doing one job under different names | cg `clones` (same shape, any names); skeleton: same parameter and return types; grep the data names they touch |
|
|
18
18
|
| Same constant / rule | identical literal sets, lists, thresholds, header names, status sets | skeleton (declaration lines carry the literals); grep the literal values |
|
|
19
19
|
| Same intent, different implementation | one question answered several ways — e.g. three ways to pick "the current" item of a collection, two ways to fetch the authoritative record — often in one file | read function bodies of siblings in the same file or service; cg `search` on the job's words |
|
|
20
20
|
| Same decision per channel | a business rule re-implemented per provider / entry point (webhook vs request handler, provider A vs provider B) | grep the side effects they share (state resets, upserts, emitted events); cg `coedit` between them |
|
|
@@ -31,7 +31,7 @@ The question: **what can go?**
|
|
|
31
31
|
| Dead feature | a flag that is a constant, a feature whose entry point lost its last caller | grep the flag; `git log -S` on the removed call |
|
|
32
32
|
| Obsoleted | code a newer change supersedes but leaves in place; options nobody passes anymore | the change's diff vs the old callers |
|
|
33
33
|
| Half migration | old and new way both alive; `legacy` / `v2` / `compat`; a rename that missed places | grep both names; cg `callers` on each |
|
|
34
|
-
| Stale words | comments and docs describing behaviour the code no longer has | read comments next to changed logic; grep docs for the old behaviour |
|
|
34
|
+
| Stale words | comments and docs describing behaviour the code no longer has — including docs, help text and guides that describe interfaces, counts or files that no longer match | read comments next to changed logic; grep docs for the old behaviour; compare any list a doc gives (endpoints, commands, options) with the code |
|
|
35
35
|
| Subsumed tests | example tests an invariant / property test already covers (needs mutation evidence) | read the invariant test's header and the example tests' cases |
|
|
36
36
|
| Unregistered leftovers | TODO / FIXME / HACK with no trigger, commented-out code | grep |
|
|
37
37
|
| Defensive branch | a guard, early return, quiet default or default-returning error handler for a state nobody decided about | the evidence ladder below, per guard; shapes per language in `sources.md` |
|
|
@@ -59,7 +59,7 @@ The question: **is each decision where it is cheapest to verify and owned by the
|
|
|
59
59
|
| Lens | Look for | Best source |
|
|
60
60
|
|---|---|---|
|
|
61
61
|
| Decision in ④ | business rules (pricing, routing, state transitions, permissions) inside async / concurrent steps (await, callbacks, threads and condition variables, goroutines, futures) + branches in an entry point; blocking calls inside async handlers | cg `maps` "most complex functions" (or `edges` `complexity`) to find them, then read; count suspension points by hand |
|
|
62
|
-
| Backflow / wrong layer | an inner layer importing an outer one (by the repo's declared layering); I/O in code meant to be pure; business branches in persistence | cg `maps`
|
|
62
|
+
| Backflow / wrong layer | an inner layer importing an outer one (by the repo's declared layering); I/O in code meant to be pure; business branches in persistence | cg `maps` Dependencies; cg `callers` across directories |
|
|
63
63
|
| Misplaced by fan-in | a generic helper living in a feature-specific file, imported from many places | cg `callers` count and the callers' directories vs the file's role |
|
|
64
64
|
| Shadow state | a local copy written from a snapshot while the source changes; an outcome inferred instead of read back; a decision from a lagging copy | trace who writes the copy and where the authoritative read is |
|
|
65
65
|
| Patch accretion | one function growing a special case per incident | `git log --format=%s -L :<fn>:<file>`; repeated "live re-read" / "repair" branches |
|
|
@@ -71,6 +71,27 @@ The question: **does a change here force changes elsewhere, or break someone who
|
|
|
71
71
|
| Lens | Look for | Best source |
|
|
72
72
|
|---|---|---|
|
|
73
73
|
| Hidden coupling | files that change together with no import between them | cg `coedit`; git co-change |
|
|
74
|
-
| Internals imports / cycles | another module's internals imported; dependency cycles | cg `maps`
|
|
74
|
+
| Internals imports / cycles | another module's internals imported; dependency cycles | cg `maps` Dependencies (cycles, outside importers) and Public API (`private` names imported from outside); cg `affected` |
|
|
75
75
|
| Contract change | public API / cross-process type / event payload / persisted value changed in place; a new value — or an old value with a new meaning — that a consumer deployed apart treats as success | each consumer as deployed (HEAD) **and** as changed: does its default branch fail open on a value it doesn't know? |
|
|
76
76
|
| Written-rule drift | code contradicting the repo's own rules (layering, constants, file size, test naming) | the rule files; grep the rule's subject |
|
|
77
|
+
|
|
78
|
+
## E — Hard to read
|
|
79
|
+
|
|
80
|
+
The question: **can an ordinary maintainer who did not write this read it and know what it
|
|
81
|
+
does — without running it or reconstructing the author's head?** Code exists to be read by a
|
|
82
|
+
human engineer; find every place that makes reading harder. Taste is not a finding: each one
|
|
83
|
+
names the misreading it causes and the change that misreading would break.
|
|
84
|
+
|
|
85
|
+
Every finding here needs the evidence the Legibility axis requires (`axes.md`, "Legibility"),
|
|
86
|
+
claim by claim. A comment or doc that contradicts the code belongs to B ("Stale words"), and B
|
|
87
|
+
reports it — not E; E covers names, implicit rules, missing reasons, indirection and misleading
|
|
88
|
+
shape.
|
|
89
|
+
|
|
90
|
+
| Lens | Look for | Best source |
|
|
91
|
+
|---|---|---|
|
|
92
|
+
| Names that lie | a name promising something else than the body does (`get…` that writes, `isValid` that also normalises, `utils` / `data` / `manager` / `handle` that say nothing); one concept under several names, several concepts under one | read the body against the name; grep the generic names; cg `search` on the concept's words |
|
|
93
|
+
| Mixed levels | one function mixing policy and plumbing, or several unrelated jobs in sequence; a function too long or too nested to hold at once | cg `edges` complexity and length to locate, then read |
|
|
94
|
+
| Implicit rules | correctness that depends on call order, a boolean / mode flag switching behaviour, an unnamed magic literal, a mutable argument the caller must not reuse | read the callers; grep the literal |
|
|
95
|
+
| Missing why | a non-obvious branch, constant or workaround with no stated reason (the *what* is readable, the *why* is not) | read; `git log -L` for the commit that explains it |
|
|
96
|
+
| Hidden work | layers of indirection — factories, registries, re-exports, event hops — before the code that does the work, without a second implementation that needs them | cg `callees` down from the entry; count hops to the real work |
|
|
97
|
+
| Misleading shape | a file or module whose name, location or exports suggest one job while it does another | the file against its directory's declared role |
|