@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 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/projectGraph/crap/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/crap/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=8952,a.ids=[8952],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},20055:(a,b,c)=>{c.d(b,{e:()=>g});var d=c(76760),e=c.n(d),f=c(770);function g(a,b){let c=e().posix.normalize(a.replaceAll("\\","/"));if(c.includes("\0")||e().posix.isAbsolute(c)||/^[a-z]:/i.test(c)||".."===c||c.startsWith("../"))throw new f.yI({field:b,reason:"Must be a project-relative path within cwd"});return"."===c?"":c.replace(/\/$/,"")}},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},40967:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>o,fA:()=>n,fG:()=>p});var e=c(89705),f=c(770),g=c(72891),h=c(4253),i=c(33265),j=c(75775),k=c(84916),l=c(52598),m=a([g,i]);[g,i]=m.then?(await m)():m;let n="nodejs",o="force-dynamic",p=(0,g.RL)(a=>e.JkU(function*(){let b=new URL(a.url).searchParams,c=yield*e.ivC(()=>(0,h.nw)(b.get("cwd")));if(!c.ok)return yield*e.fJG(new f.yI({field:"cwd",reason:c.reason}));let d=yield*e.SvU({try:()=>(0,k.s)(b),catch:a=>(0,j.xq)(a,"Invalid edges filters")});return yield*e.$mh({try:async()=>{let a=await (0,i.u$)(c.abs);return(0,l.I)(a,(0,k.$)(a,d))},catch:a=>(0,j.xq)(a,"Edges export failed")})}));d()}catch(a){d(a)}})},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46968:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(40967),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},84916:(a,b,c)=>{c.d(b,{$:()=>g,s:()=>f});var d=c(20055),e=c(53809);function f(a){return{directory:(0,d.e)(a.get("path")??".","path"),excludeTests:"false"!==a.get("excludeTests")}}function g(a,b){let c=a=>!b.directory||a===b.directory||a.startsWith(`${b.directory}/`),d=[];for(let[f,g]of a.files)c(f)&&(b.excludeTests&&(0,e.h)(f)||d.push({path:f,language:g.language,imports:[...g.importedFiles].sort(),importedFromOutside:[...g.importedBy].filter(a=>!c(a)&&!(b.excludeTests&&(0,e.h)(a))).sort(),functions:g.flatSymbols.filter(a=>"function"===a.kind||"method"===a.kind||"class"===a.kind).map(a=>({qualifiedName:a.qualifiedName,kind:a.kind,declLine:a.declLine,startLine:a.startLine,endLine:a.endLine,...void 0!==a.complexity?{complexity:a.complexity}:{}})),calls:[...g.intraCalls.map(a=>({from:a.from,toFile:f,to:a.to,lines:a.lines})),...g.outgoingCalls.map(a=>({from:a.from,toFile:a.to.filePath,to:a.to.qualifiedName,lines:a.lines}))]}));return d.sort((a,b)=>a.path.localeCompare(b.path)),{directory:b.directory||".",files:d}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},89424:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/edges/route",pathname:"/api/projectGraph/edges",filename:"route",bundlePath:"app/api/projectGraph/edges/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/edges/route.ts",nextConfigOutput:"",userland:()=>c(46968),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/edges/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=89424));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=8952,a.ids=[8952],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},20055:(a,b,c)=>{c.d(b,{e:()=>g});var d=c(76760),e=c.n(d),f=c(770);function g(a,b){let c=e().posix.normalize(a.replaceAll("\\","/"));if(c.includes("\0")||e().posix.isAbsolute(c)||/^[a-z]:/i.test(c)||".."===c||c.startsWith("../"))throw new f.yI({field:b,reason:"Must be a project-relative path within cwd"});return"."===c?"":c.replace(/\/$/,"")}},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},37102:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/edges/route",pathname:"/api/projectGraph/edges",filename:"route",bundlePath:"app/api/projectGraph/edges/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/edges/route.ts",nextConfigOutput:"",userland:()=>c(46968),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/edges/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},40967:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>o,fA:()=>n,fG:()=>p});var e=c(89705),f=c(770),g=c(72891),h=c(4253),i=c(33265),j=c(75775),k=c(84916),l=c(52598),m=a([g,i]);[g,i]=m.then?(await m)():m;let n="nodejs",o="force-dynamic",p=(0,g.RL)(a=>e.JkU(function*(){let b=new URL(a.url).searchParams,c=yield*e.ivC(()=>(0,h.nw)(b.get("cwd")));if(!c.ok)return yield*e.fJG(new f.yI({field:"cwd",reason:c.reason}));let d=yield*e.SvU({try:()=>(0,k.sX)(b),catch:a=>(0,j.xq)(a,"Invalid edges filters")});return yield*e.$mh({try:async()=>{let a=await (0,i.u$)(c.abs);return(0,l.I)(a,(0,k.$2)(a,d))},catch:a=>(0,j.xq)(a,"Edges export failed")})}));d()}catch(a){d(a)}})},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46968:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(40967),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},48161:a=>{a.exports=require("node:os")},49822:(a,b,c)=>{c.d(b,{H9:()=>k,Rn:()=>q,X8:()=>p,fJ:()=>m,hy:()=>o,tJ:()=>r,tU:()=>j,uG:()=>n});var d=c(76760),e=c.n(d),f=c(770),g=c(20055),h=c(53809);let i={excludeTests:!0,explainTests:!1,test:[],notTest:[]};function j(a,b,c){if(void 0===a)return c;if(!0===a||1===a||"true"===a||"1"===a)return!0;if(!1===a||0===a||"false"===a||"0"===a)return!1;throw new f.yI({field:b,reason:"Expected true, false, 1 or 0"})}function k(a,b,c){return j(a.get(b)??void 0,b,c)}function l(a,b){return a.map(a=>{if("string"!=typeof a||!a||a.startsWith("!"))throw new f.yI({field:b,reason:"Expected a non-empty positive project-relative glob"});return(0,g.e)(a,b)})}function m(a){return{test:l(a.getAll("test"),"test"),notTest:l(a.getAll("notTest"),"notTest")}}function n(a){return{excludeTests:k(a,"excludeTests",!0),explainTests:k(a,"explainTests",!1),...m(a)}}function o(a){let b=b=>{let c=a[b];if(void 0===c)return[];if(!Array.isArray(c))throw new f.yI({field:b,reason:"Expected an array of globs"});return l(c,b)};return{test:b("test"),notTest:b("notTest")}}function p(a,b){if(b.notTest.some(b=>e().posix.matchesGlob(a,b)))return null;let c=b.test.find(b=>e().posix.matchesGlob(a,b));return c?`test ${c}`:(0,h.r)(a)}function q(a=i){let b=new Map;return{isTest:b=>null!==p(b,a),skip(c){if(!a.excludeTests)return!1;if(b.has(c))return!0;let d=p(c,a);return null!==d&&b.set(c,d),null!==d},filtered(){let c={tests:b.size};return a.explainTests&&(c.testFiles=[...b].map(([a,b])=>({filePath:a,rule:b})).sort((a,b)=>a.filePath.localeCompare(b.filePath))),c}}}function r(a){return a.tests?`${a.tests} test file${1===a.tests?"":"s"} left out (excludeTests=false keeps them, explainTests=true lists them, notTest=<glob> reclassifies).`:null}},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},53809:(a,b,c)=>{c.d(b,{h:()=>h,r:()=>g});let d=/(^|\/)(__tests__|tests?)\//i,e=/^((?:.*?\/)?app\/)(?:[^/]+\/)*(?:route|page|layout|template|loading|error|global-error|not-found|default)\.[cm]?[jt]sx?$/i,f=[[/\.(test|spec|e2e)\.[^/]+$/i,"name *.test|spec|e2e.*"],[/(^|\/)test_[^/]+\.pyi?$/i,"name test_*.py"],[/[^/]+_test\.go$/i,"name *_test.go"]];function g(a){let b,c;return((c=((b=a.match(e))&&!/(^|\/)__tests__\//i.test(a)?b[1]:a).match(d))?`directory ${c[2]}/`:null)??f.find(([b])=>b.test(a))?.[1]??null}function h(a){return null!==g(a)}},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},84916:(a,b,c)=>{c.d(b,{$2:()=>g,br:()=>i,sX:()=>f});var d=c(20055),e=c(49822);function f(a){return{directory:(0,d.e)(a.get("path")??".","path"),tests:(0,e.uG)(a)}}function g(a,b){let c=a=>!b.directory||a===b.directory||a.startsWith(`${b.directory}/`),d=[],f=(0,e.Rn)(b.tests),g=a=>!(b.tests.excludeTests&&f.isTest(a));for(let b of a.files.keys())c(b)&&(f.skip(b)||d.push(function(a,b,c,d){let e=a.files.get(b);return{path:b,language:e.language,imports:[...e.importedFiles].filter(c).sort(),importedFromOutside:[...e.importedBy].filter(a=>d(a)&&c(a)).sort(),functions:e.flatSymbols.filter(a=>"function"===a.kind||"method"===a.kind||"class"===a.kind).map(a=>({qualifiedName:a.qualifiedName,kind:a.kind,declLine:a.declLine,startLine:a.startLine,endLine:a.endLine,...void 0!==a.complexity?{complexity:a.complexity}:{}})),calls:[...e.intraCalls.map(a=>({from:a.from,toFile:b,to:a.to,lines:a.lines,...h(a)})),...e.outgoingCalls.filter(a=>c(a.to.filePath)).map(a=>({from:a.from,toFile:a.to.filePath,to:a.to.qualifiedName,lines:a.lines,...h(a)}))]}}(a,b,g,a=>!c(a))));return d.sort((a,b)=>a.path.localeCompare(b.path)),{directory:b.directory||".",files:d,filtered:f.filtered()}}let h=a=>a.byName?{byName:!0}:{};function i(a,b){let c=b.indexOf("#"),d=a.files.get(b.slice(0,c));if(!d)return[];let e=b.slice(c+1);return[...d.outgoingCalls.filter(a=>a.from===e).map(a=>({to:`${a.to.filePath}#${a.to.qualifiedName}`,...h(a)})),...d.intraCalls.filter(a=>a.from===e).map(a=>({to:`${d.path}#${a.to}`,...h(a)}))]}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=37102));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=1756,a.ids=[1756],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10515:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>n,fA:()=>m,fG:()=>o});var e=c(52598),f=c(75775),g=c(89705),h=c(33265),i=c(4253),j=c(72891),k=c(770),l=a([j,h]);[j,h]=l.then?(await l)():l;let m="nodejs",n="force-dynamic",o=(0,j.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("path"),j=yield*g.ivC(()=>(0,i.nw)(c));if(!j.ok)return yield*g.fJG(new k.yI({field:"cwd",reason:j.reason}));let l=j.abs;if(!d)return yield*g.fJG(new k.yI({field:"path",reason:"missing"}));let m=yield*g.$mh({try:async()=>{let a=await (0,h.u$)(l);return{index:a,payload:(0,h.E)(a,d)}},catch:a=>(0,f.xq)(a,"Failed to load file detail")});return m.payload?(0,e.I)(m.index,m.payload):yield*g.fJG(new k.m_({resource:"projectGraph.file",id:d}))}));d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55702:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(10515),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},59706:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/file/route",pathname:"/api/projectGraph/file",filename:"route",bundlePath:"app/api/projectGraph/file/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/file/route.ts",nextConfigOutput:"",userland:()=>c(55702),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/file/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=59706));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=1756,a.ids=[1756],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10515:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>o,fA:()=>n,fG:()=>p});var e=c(52598),f=c(75775),g=c(89705),h=c(92287),i=c(33265),j=c(4253),k=c(72891),l=c(770),m=a([k,i]);[k,i]=m.then?(await m)():m;let n="nodejs",o="force-dynamic",p=(0,k.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("path"),k=yield*g.ivC(()=>(0,j.nw)(c));if(!k.ok)return yield*g.fJG(new l.yI({field:"cwd",reason:k.reason}));let m=k.abs;if(!d)return yield*g.fJG(new l.yI({field:"path",reason:"missing"}));let n=yield*g.$mh({try:async()=>{let a=await (0,i.u$)(m);return{index:a,payload:(0,h.E)(a,d)}},catch:a=>(0,f.xq)(a,"Failed to load file detail")});return n.payload?(0,e.I)(n.index,n.payload):yield*g.fJG(new l.m_({resource:"projectGraph.file",id:d}))}));d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},15816:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/file/route",pathname:"/api/projectGraph/file",filename:"route",bundlePath:"app/api/projectGraph/file/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/file/route.ts",nextConfigOutput:"",userland:()=>c(55702),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/file/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},55702:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(10515),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=15816));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=4528,a.ids=[4528],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},9434:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/file-functions/route",pathname:"/api/projectGraph/file-functions",filename:"route",bundlePath:"app/api/projectGraph/file-functions/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/file-functions/route.ts",nextConfigOutput:"",userland:()=>c(65842),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/file-functions/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},65842:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(70551),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},66136:a=>{a.exports=require("timers")},70551:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>p,fA:()=>o,fG:()=>q});var e=c(75775),f=c(51455),g=c(76760),h=c.n(g),i=c(89705),j=c(33265),k=c(4253),l=c(72891),m=c(770),n=a([l,j]);[l,j]=n.then?(await n)():n;let o="nodejs",p="force-dynamic",q=(0,l.RL)(a=>i.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("path"),g="1"===b.get("refresh"),l="1"===b.get("relations"),n=yield*i.ivC(()=>(0,k.nw)(c));if(!n.ok)return yield*i.fJG(new m.yI({field:"cwd",reason:n.reason}));let o=n.abs;if(!d)return yield*i.fJG(new m.yI({field:"path",reason:"missing"}));let p=h().posix.normalize(d).replace(/^\.\//,"");if(p.startsWith("../")||p.startsWith("/")||""===p||"."===p)return yield*i.fJG(new m.yI({field:"path",reason:"must be a project-relative path"}));let q=yield*i.$mh({try:async()=>{l&&(0,e.SD)(p)?await (0,j.u$)(o,{forceRefresh:g}):g&&(0,j.uV)(o,{forceRefresh:!0});let a=(0,j.lG)(o),b=(0,j.KE)(o),c=await (0,j.tI)(o,p);if(c)return{kind:"indexed",payload:c};let d=a?.files.size??0,h=(0,k.hC)(o,p);if(!h)return{kind:"not-found"};let i=await (0,f.stat)(h).catch(()=>null);if(!i?.isFile())return{kind:"not-found"};if(/\.mdx?$/i.test(p)){let a=await (0,f.readFile)(h,"utf-8").catch(()=>null);if(a)return{kind:"markdown",payload:{filePath:p,language:"markdown",fileCount:d,mtimeMs:i.mtimeMs,functions:function(a,b){let c=b.split("\n"),d=[],e=!1;for(let a=0;a<c.length;a++){let b=c[a];if(b.startsWith("```")){e=!e;continue}if(e)continue;let f=/^(#{1,6})\s*(.+?)\s*#*\s*$/.exec(b);f&&d.push({line:a+1,name:f[2].trim()})}if(0===d.length){var f;let b;return[{filePath:a,qualifiedName:"__file__",name:(b=(f=a).lastIndexOf("/"))>=0?f.slice(b+1):f,kind:"unknown",startLine:1,endLine:Math.max(1,c.length),declLine:1}]}let g=[];d[0].line>1&&g.push({filePath:a,qualifiedName:"__preamble__",name:"preamble",kind:"unknown",startLine:1,endLine:d[0].line-1,declLine:1});for(let b=0;b<d.length;b++){let e=d[b],f=d[b+1],h=f?f.line-1:c.length;g.push({filePath:a,qualifiedName:`__heading_${e.line}__`,name:e.name,kind:"unknown",startLine:e.line,endLine:Math.max(e.line,h),declLine:e.line})}return g}(p,a),intraCalls:[],externalCalls:[],methodCalls:[],upstreamCalls:[],downstreamCalls:[]}}}return{kind:"fallback",payload:{filePath:p,language:"text",fileCount:d,mtimeMs:i.mtimeMs,functions:[],intraCalls:[],externalCalls:[],methodCalls:[],upstreamCalls:[],downstreamCalls:[],notIndexed:!b,crossFilePending:b}}},catch:a=>(0,e.xq)(a,"Failed to load file functions")});return"not-found"===q.kind?yield*i.fJG(new m.m_({resource:"file",id:p})):((a,b=!0)=>new Response(JSON.stringify(a),{status:200,headers:{"Content-Type":"application/json",...b?{"Cache-Control":"no-cache"}:{}}}))(q.payload)}));d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=9434));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=4528,a.ids=[4528],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},65842:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(70551),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},66136:a=>{a.exports=require("timers")},70551:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>p,fA:()=>o,fG:()=>q});var e=c(75775),f=c(51455),g=c(76760),h=c.n(g),i=c(89705),j=c(33265),k=c(4253),l=c(72891),m=c(770),n=a([l,j]);[l,j]=n.then?(await n)():n;let o="nodejs",p="force-dynamic",q=(0,l.RL)(a=>i.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("path"),g="1"===b.get("refresh"),l="1"===b.get("relations"),n=yield*i.ivC(()=>(0,k.nw)(c));if(!n.ok)return yield*i.fJG(new m.yI({field:"cwd",reason:n.reason}));let o=n.abs;if(!d)return yield*i.fJG(new m.yI({field:"path",reason:"missing"}));let p=h().posix.normalize(d).replace(/^\.\//,"");if(p.startsWith("../")||p.startsWith("/")||""===p||"."===p)return yield*i.fJG(new m.yI({field:"path",reason:"must be a project-relative path"}));let q=yield*i.$mh({try:async()=>{l&&(0,e.SD)(p)?await (0,j.u$)(o,{forceRefresh:g}):g&&(0,j.uV)(o,{forceRefresh:!0});let a=(0,j.lG)(o),b=(0,j.KE)(o),c=await (0,j.tI)(o,p);if(c)return{kind:"indexed",payload:c};let d=a?.files.size??0,h=(0,k.hC)(o,p);if(!h)return{kind:"not-found"};let i=await (0,f.stat)(h).catch(()=>null);if(!i?.isFile())return{kind:"not-found"};if(/\.mdx?$/i.test(p)){let a=await (0,f.readFile)(h,"utf-8").catch(()=>null);if(a)return{kind:"markdown",payload:{filePath:p,language:"markdown",fileCount:d,mtimeMs:i.mtimeMs,functions:function(a,b){let c=b.split("\n"),d=[],e=!1;for(let a=0;a<c.length;a++){let b=c[a];if(b.startsWith("```")){e=!e;continue}if(e)continue;let f=/^(#{1,6})\s*(.+?)\s*#*\s*$/.exec(b);f&&d.push({line:a+1,name:f[2].trim()})}if(0===d.length){var f;let b;return[{filePath:a,qualifiedName:"__file__",name:(b=(f=a).lastIndexOf("/"))>=0?f.slice(b+1):f,kind:"unknown",startLine:1,endLine:Math.max(1,c.length),declLine:1}]}let g=[];d[0].line>1&&g.push({filePath:a,qualifiedName:"__preamble__",name:"preamble",kind:"unknown",startLine:1,endLine:d[0].line-1,declLine:1});for(let b=0;b<d.length;b++){let e=d[b],f=d[b+1],h=f?f.line-1:c.length;g.push({filePath:a,qualifiedName:`__heading_${e.line}__`,name:e.name,kind:"unknown",startLine:e.line,endLine:Math.max(e.line,h),declLine:e.line})}return g}(p,a),intraCalls:[],externalCalls:[],methodCalls:[],upstreamCalls:[],downstreamCalls:[]}}}return{kind:"fallback",payload:{filePath:p,language:"text",fileCount:d,mtimeMs:i.mtimeMs,functions:[],intraCalls:[],externalCalls:[],methodCalls:[],upstreamCalls:[],downstreamCalls:[],notIndexed:!b,crossFilePending:b}}},catch:a=>(0,e.xq)(a,"Failed to load file functions")});return"not-found"===q.kind?yield*i.fJG(new m.m_({resource:"file",id:p})):((a,b=!0)=>new Response(JSON.stringify(a),{status:200,headers:{"Content-Type":"application/json",...b?{"Cache-Control":"no-cache"}:{}}}))(q.payload)}));d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},77768:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/file-functions/route",pathname:"/api/projectGraph/file-functions",filename:"route",bundlePath:"app/api/projectGraph/file-functions/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/file-functions/route.ts",nextConfigOutput:"",userland:()=>c(65842),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/file-functions/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=77768));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=7856,a.ids=[7856],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},7431:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>n,fA:()=>m,fG:()=>o});var e=c(52598),f=c(75775),g=c(89705),h=c(33265),i=c(4253),j=c(72891),k=c(770),l=a([j,h]);[j,h]=l.then?(await l)():l;let m="nodejs",n="force-dynamic",o=(0,j.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("qname")??"",j=b.get("filePath")??void 0,l=Math.min(Math.max(parseInt(b.get("depth")??"2",10)||2,1),5),m=yield*g.ivC(()=>(0,i.nw)(c));if(!m.ok)return yield*g.fJG(new k.yI({field:"cwd",reason:m.reason}));if(d.trim().length<1)return yield*g.fJG(new k.yI({field:"qname",reason:"missing"}));let n=m.abs;return yield*g.$mh({try:async()=>{let a=await (0,h.u$)(n);return(0,e.I)(a,(0,h.J)(a,d,l,j))},catch:a=>(0,f.xq)(a,"Impact lookup failed")})}));d()}catch(a){d(a)}})},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},36762:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/impact/route",pathname:"/api/projectGraph/impact",filename:"route",bundlePath:"app/api/projectGraph/impact/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/impact/route.ts",nextConfigOutput:"",userland:()=>c(59258),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/impact/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},59258:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(7431),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=36762));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=7856,a.ids=[7856],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},7431:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>o,fA:()=>n,fG:()=>p});var e=c(52598),f=c(75775),g=c(89705),h=c(92287),i=c(33265),j=c(4253),k=c(72891),l=c(770),m=a([k,i]);[k,i]=m.then?(await m)():m;let n="nodejs",o="force-dynamic",p=(0,k.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("qname")??"",k=b.get("filePath")??void 0,m=Math.min(Math.max(parseInt(b.get("depth")??"2",10)||2,1),5),n=yield*g.ivC(()=>(0,j.nw)(c));if(!n.ok)return yield*g.fJG(new l.yI({field:"cwd",reason:n.reason}));if(d.trim().length<1)return yield*g.fJG(new l.yI({field:"qname",reason:"missing"}));let o=n.abs;return yield*g.$mh({try:async()=>{let a=await (0,i.u$)(o);return(0,e.I)(a,(0,h.J)(a,d,m,k))},catch:a=>(0,f.xq)(a,"Impact lookup failed")})}));d()}catch(a){d(a)}})},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},59258:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(7431),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79400:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/impact/route",pathname:"/api/projectGraph/impact",filename:"route",bundlePath:"app/api/projectGraph/impact/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/impact/route.ts",nextConfigOutput:"",userland:()=>c(59258),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/impact/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=79400));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=3547,a.ids=[3547],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},20055:(a,b,c)=>{c.d(b,{e:()=>g});var d=c(76760),e=c.n(d),f=c(770);function g(a,b){let c=e().posix.normalize(a.replaceAll("\\","/"));if(c.includes("\0")||e().posix.isAbsolute(c)||/^[a-z]:/i.test(c)||".."===c||c.startsWith("../"))throw new f.yI({field:b,reason:"Must be a project-relative path within cwd"});return"."===c?"":c.replace(/\/$/,"")}},21820:a=>{a.exports=require("os")},24823:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(80738),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},42332:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/maps/route",pathname:"/api/projectGraph/maps",filename:"route",bundlePath:"app/api/projectGraph/maps/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/maps/route.ts",nextConfigOutput:"",userland:()=>c(24823),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/maps/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},80738:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>s,fA:()=>r,fG:()=>t});var e=c(89705),f=c(51455),g=c(76760),h=c.n(g),i=c(770),j=c(72891),k=c(4253),l=c(33265),m=c(75775),n=c(84916),o=c(90439),p=c(52598),q=a([j,l]);[j,l]=q.then?(await q)():q;let r="nodejs",s="force-dynamic",t=(0,j.RL)(a=>e.JkU(function*(){let b=new URL(a.url).searchParams,c=yield*e.ivC(()=>(0,k.nw)(b.get("cwd")));if(!c.ok)return yield*e.fJG(new i.yI({field:"cwd",reason:c.reason}));let{options:d,layers:g}=yield*e.SvU({try:()=>({options:(0,n.s)(b),layers:function(a){let b;if(!a)return;try{b=JSON.parse(a)}catch{throw new i.yI({field:"layers",reason:"not JSON"})}let c=b,d=a=>Array.isArray(a)&&a.every(a=>"string"==typeof a);if(!c||!d(c.order)||"object"!=typeof c.layers||null===c.layers||!Object.values(c.layers).every(d)||void 0!==c.pure&&!d(c.pure))throw new i.yI({field:"layers",reason:"expected {order: string[], layers: {name: string[]}, pure?: string[]}"});return c}(b.get("layers"))}),catch:a=>(0,m.xq)(a,"Invalid maps parameters")}),j="markdown"===b.get("format"),q=yield*e.$mh({try:()=>(0,l.u$)(c.abs),catch:a=>(0,m.xq)(a,"Maps export failed")}),{files:r}=(0,n.$)(q,d),s=new Map((yield*e.Q7R(r.map(a=>e.$mh(()=>(0,f.readFile)(h().join(c.abs,a.path),"utf8")).pipe(e.DM4(()=>null),e.TjK(b=>[a.path,b]))),{concurrency:16}))),t=(0,o.bI)({directory:d.directory,files:r,layers:g,readSource:a=>s.get(a)??null});return j?(0,p.F)(q,new Response((0,o.Hv)(t),{status:200,headers:{"Content-Type":"text/markdown; charset=utf-8"}})):(0,p.I)(q,t)}));d()}catch(a){d(a)}})},83997:a=>{a.exports=require("tty")},84916:(a,b,c)=>{c.d(b,{$:()=>g,s:()=>f});var d=c(20055),e=c(53809);function f(a){return{directory:(0,d.e)(a.get("path")??".","path"),excludeTests:"false"!==a.get("excludeTests")}}function g(a,b){let c=a=>!b.directory||a===b.directory||a.startsWith(`${b.directory}/`),d=[];for(let[f,g]of a.files)c(f)&&(b.excludeTests&&(0,e.h)(f)||d.push({path:f,language:g.language,imports:[...g.importedFiles].sort(),importedFromOutside:[...g.importedBy].filter(a=>!c(a)&&!(b.excludeTests&&(0,e.h)(a))).sort(),functions:g.flatSymbols.filter(a=>"function"===a.kind||"method"===a.kind||"class"===a.kind).map(a=>({qualifiedName:a.qualifiedName,kind:a.kind,declLine:a.declLine,startLine:a.startLine,endLine:a.endLine,...void 0!==a.complexity?{complexity:a.complexity}:{}})),calls:[...g.intraCalls.map(a=>({from:a.from,toFile:f,to:a.to,lines:a.lines})),...g.outgoingCalls.map(a=>({from:a.from,toFile:a.to.filePath,to:a.to.qualifiedName,lines:a.lines}))]}));return d.sort((a,b)=>a.path.localeCompare(b.path)),{directory:b.directory||".",files:d}}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},90439:(a,b,c)=>{c.d(b,{Hv:()=>k,bI:()=>j});let d=[[/\b(?:INSERT\s+(?:OR\s+\w+\s+)?INTO|REPLACE\s+INTO|UPDATE|DELETE\s+FROM)\s+["'`]?([A-Za-z_][\w.]{2,})/g,a=>/^(only|the|set|all|and|for|with|from|when|then|this|that|row|rows|each|any)$/i.test(a[1])?null:"table "+a[1]],[/\bSELECT\s+\*\s+FROM\s+([a-z_]\w*)\s*\(/gi,a=>"rpc "+a[1]],[/\b(?:\w*db|\w*Db|tx|trx|conn|knex|qb|em|prisma\.\w+|supabase\.from\([^)]*\))\s*\.(insert|update|delete|upsert)\(\s*([A-Za-z_]\w*)?/g,a=>"table "+(a[2]??a[1])],[/\b(?:session|db|tx|conn|cursor)\.(add|add_all|merge|delete|commit|bulk_save_objects)\(/g,a=>"db "+a[1]],[/\.(to_parquet|to_csv|to_sql|to_pickle|to_feather|write_text|write_bytes)\(/g,a=>"file "+a[1]],[/\bopen\([^)]*["'][wa]b?\+?["']/g,()=>"file open-for-write"],[/\b(?:json|pickle|yaml|toml)\.dump\(/g,()=>"file dump"],[/\b(?:requests|httpx|session|client|axios)\.(post|put|patch|delete)\(/g,a=>"remote http."+a[1]],[/\.(\w+)\.(create|update|cancel|del|voidInvoice|pay|release|finalizeInvoice|send|publish)\(/g,a=>/^(prototype|Object|Array|JSON|Promise|console|logger|log|res|req|router|app|map|set|self|os|path|_\w*)$/.test(a[1])?null:"remote "+a[1]+"."+a[2]],[/\b(?:os\.(?:remove|rename|replace|unlink|makedirs)|shutil\.(?:move|rmtree|copy\w*)|fs\.(?:writeFile\w*|rm\w*|rename\w*|unlink\w*))\(/g,()=>"file fs-op"]],e=/^\s*@\s*([\w.]+)\.(get|post|put|patch|delete|route|websocket|command|task|scheduled_job|job|on_event|callback)\(\s*["']?([^"',)]*)/,f=/\b(?:router|app|r|e|mux|group|api|srv)\.(get|post|put|patch|delete|GET|POST|PUT|PATCH|DELETE|HandleFunc|Handle)\(\s*["'`]([^"'`]+)["'`][^\n;]*?([A-Za-z_]\w*)\s*\)/,g=/((?:case\s+["'][^"']+["']\s*:\s*)+)(?:\/\/[^\n]*\n\s*)*(?:return\s+)?(?:await\s+)?([A-Za-z_]\w*)\(/g,h=/if\s+__name__\s*==\s*["']__main__["']|^func\s+main\(\)/m,i=[["entry",/(^|\/)(routes?|controllers?|handlers?|views?|api|cli|commands?|cmd)(\/|\.|_|$)|(^|\/)(main|__main__|app|server|web)\.\w+$/],["persistence",/(^|\/)(repositor(y|ies)|db|database|dal|persistence|storage|store|models?)(\/|\.|_|$)|repo\.\w+$/],["util",/(^|\/)(utils?|helpers?|lib|common)(\/|\.|_|$)/],["service",/(^|\/)(services?|use_?cases?|domain|application|core)(\/|\.|_|$)/]];function j(a){let{files:b,readSource:c}=a,j=a.directory.replace(/\/$/,""),k=new Map(b.map(a=>[a.path,a])),l=a.layers,m=l?.order??["entry","service","persistence","util"],n=new Set(l?.pure??["util"]),o=l?Object.entries(l.layers).flatMap(([a,b])=>b.map(b=>{let c;return[a,(c=a=>a.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),RegExp("^"+b.split("**").map(a=>a.split("*").map(c).join("[^/]*")).join(".*")+"$"))]})):i,p=new Map,q=a=>{let b=p.get(a);return void 0===b&&(b=o.find(([,b])=>b.test(l?a:j&&a.startsWith(j+"/")?a.slice(j.length+1):a.replace(/^.*\bsrc\//,"")))?.[0]??"other",p.set(a,b)),b},r=a=>{let b=m.indexOf(a);return b<0?null:b},s=new Map,t=a=>{let b=s.get(a);return b||(b=(c(a)??"").split("\n"),s.set(a,b)),b},u=(a,b)=>`${a}#${b}`,v=new Map;for(let a of b)for(let b of a.functions)v.set(u(a.path,b.qualifiedName),{file:a.path,...b});let w=new Map;for(let a of b)for(let b of a.calls){let c=u(a.path,b.from),d=w.get(c);d||(d=new Set,w.set(c,d)),d.add(u(b.toFile,b.to))}let x=new Map;for(let[a,b]of v){if("class"===b.kind)continue;let c=t(b.file).slice(b.startLine-1,b.endLine).join("\n"),e=new Set;for(let[a,b]of d)for(let d of c.matchAll(a)){let a=b(d);a&&e.add(a)}e.size&&x.set(a,[...e])}let y=[],z=(a,b,c)=>{if(a.functions.some(a=>a.qualifiedName===b))return u(a.path,b);let d=a.imports.map(a=>k.get(a)).find(a=>a?.functions.some(a=>a.qualifiedName===b));if(d)return u(d.path,b);if(void 0===c)return null;let e=((a,b)=>{let c=null;for(let d of a.functions)"class"!==d.kind&&d.startLine<=b&&b<=d.endLine&&(!c||d.startLine>=c.startLine)&&(c=d);return c})(a,c);return e?[...w.get(u(a.path,e.qualifiedName))??[]].find(a=>a.endsWith("#"+b))??null:null};for(let a of b){let b=t(a.path);b.forEach((b,c)=>{let d=b.match(e);if(d){let b=a.functions.find(a=>"class"!==a.kind&&a.startLine<=c+1&&c+1<=a.declLine);b&&y.push({id:`${d[2].toUpperCase()} ${d[3]||b.qualifiedName}`,fn:u(a.path,b.qualifiedName)})}let g=b.match(f);if(g){let b=z(a,g[3],c+1);b&&y.push({id:`${g[1].toUpperCase()} ${g[2]}`,fn:b})}});let c=b.join("\n");for(let b of c.matchAll(g)){let c=[...b[1].matchAll(/["']([^"']+)["']/g)].map(a=>a[1]);if(!c.some(a=>a.includes(".")||/^[A-Z][A-Z0-9_]+$/.test(a)))continue;let d=z(a,b[2]);d&&y.push({id:`event ${c.join(" | ")}`,fn:d})}if(h.test(c)){let b=a.functions.find(a=>/^(main|cli|run)$/.test(a.qualifiedName));b&&y.push({id:`program ${a.path}`,fn:u(a.path,b.qualifiedName)})}}let A=y.map(a=>{let b=[];for(let[c,d]of((a,b=14)=>{let c=new Map([[a,[a]]]),d=[a];for(;d.length;){let a=d.shift(),e=c.get(a);if(!(e.length>b))for(let b of w.get(a)??[])c.has(b)||(c.set(b,[...e,b]),d.push(b))}return c})(a.fn)){let a=x.get(c);a&&b.push({sink:c,writes:a,via:d})}return{...a,writes:b}}),B=b.flatMap(a=>a.imports.map(b=>({from:a.path,to:b}))),C={};for(let a of B){let b=q(a.from),c=q(a.to);C[b]??={},C[b][c]=(C[b][c]??0)+1}let D=B.flatMap(a=>{let b=q(a.from),c=q(a.to),d=r(b),e=r(c);return null!==d&&null!==e&&e<d?[{...a,fromLayer:b,toLayer:c}]:[]}),E=b.filter(a=>n.has(q(a.path))).flatMap(a=>[...a.imports.filter(a=>!n.has(q(a))&&null!==r(q(a))).map(b=>`${a.path} imports ${b}`),...a.functions.flatMap(b=>{let c=x.get(u(a.path,b.qualifiedName));return c?[`${a.path}:${b.declLine} ${b.qualifiedName} writes ${c.join(", ")}`]:[]})]),F=new Map;for(let a of B)k.has(a.to)&&F.set(a.to,(F.get(a.to)??0)+1);let G=new Map;for(let[a,b]of x)for(let c of b){let b=G.get(c);b||(b={fns:new Set,entries:new Set},G.set(c,b)),b.fns.add(a)}for(let a of A)for(let b of a.writes)for(let c of b.writes)G.get(c)?.entries.add(a.id);return{directory:j||".",languages:[...new Set(b.map(a=>a.language))].sort(),layersSource:l?"declared":"guessed",order:m,pure:[...n],layerOf:Object.fromEntries(b.map(a=>[a.path,q(a.path)])),layerMatrix:C,backEdges:D,impure:E,cycles:(function(a,b){let c=0,d=new Map,e=new Map,f=new Set,g=[],h=[],i=a=>b.get(a).imports.filter(a=>b.has(a));for(let b of a.map(a=>a.path)){if(d.has(b))continue;let a=[{v:b,i:0}];for(d.set(b,c),e.set(b,c),c++,g.push(b),f.add(b);a.length;){let b=a[a.length-1],j=i(b.v);if(b.i<j.length){let h=j[b.i++];d.has(h)?f.has(h)&&e.set(b.v,Math.min(e.get(b.v),d.get(h))):(d.set(h,c),e.set(h,c),c++,g.push(h),f.add(h),a.push({v:h,i:0}));continue}if(a.pop(),a.length){let c=a[a.length-1].v;e.set(c,Math.min(e.get(c),e.get(b.v)))}if(e.get(b.v)===d.get(b.v)){let a,c=[];do a=g.pop(),f.delete(a),c.push(a);while(a!==b.v);c.length>1&&h.push(c)}}}return h})(b,k).map(a=>a.sort()),fanIn:[...F].sort((a,b)=>b[1]-a[1]).slice(0,10),fanOut:b.map(a=>[a.path,a.imports.length]).sort((a,b)=>b[1]-a[1]).slice(0,10),complexity:b.flatMap(a=>a.functions.flatMap(b=>void 0===b.complexity?[]:[{fn:u(a.path,b.qualifiedName),declLine:b.declLine,complexity:b.complexity,lines:b.endLine-b.startLine+1}])).sort((a,b)=>b.complexity-a.complexity||b.lines-a.lines).slice(0,15),outsideImports:b.flatMap(a=>a.importedFromOutside.map(b=>({from:b,to:a.path,layer:q(a.path)}))),entries:A,states:[...G].map(([a,b])=>({state:a,writers:[...b.fns].sort().map(a=>({fn:a,declLine:v.get(a).declLine})),entries:[...b.entries].sort()})).sort((a,b)=>b.writers.length-a.writers.length||b.entries.length-a.entries.length)}}function k(a){let b=[],c=(a="")=>b.push(a),d=a=>a.split("#")[1];c(`# Architecture maps — ${a.directory}`),c(`${Object.keys(a.layerOf).length} indexed files (${a.languages.join(", ")}). Layers: ${"declared"===a.layersSource?"from the declared layering passed in":"GUESSED from directory names — pass the repo’s declared layering as `layers`"}.`),c("Leads, not evidence."),c(),c("## Map 1 — imports between layers"),c();let e=[...a.order,"other"];for(let b of(c("```"),c("from \\ to "+e.map(a=>a.slice(0,11).padStart(12)).join("")),e))c(b.slice(0,11).padEnd(12)+e.map(c=>String(a.layerMatrix[b]?.[c]??"").padStart(12)).join(""));for(let b of(c("```"),c(),c(`Imports pointing back up the order ${a.order.join(" → ")}:`),a.backEdges.slice(0,40)))c(`- ${b.fromLayer} → ${b.toLayer}: ${b.from} → ${b.to}`);for(let b of(a.backEdges.length||c("- none"),c(),c(`Pure layers (${a.pure.join(", ")}) importing others or writing:`),a.impure.slice(0,30)))c("- "+b);for(let b of(a.impure.length||c("- none"),c(),c(`Import cycles inside the scope: ${a.cycles.length||"none"}`),a.cycles))c(`- {${b.join(", ")}} — ${b.length} files reaching each other (a set, not a path)`);if(c(),c("Fan-in: "+a.fanIn.map(([a,b])=>`${a} ${b}`).join(" \xb7 ")),c("Fan-out: "+a.fanOut.map(([a,b])=>`${a} ${b}`).join(" \xb7 ")),a.complexity.length)for(let b of(c(),c("Most complex functions (cyclomatic, lines) — where decisions pile up:"),a.complexity))c(`- ${b.fn.replace("#",":")}:${b.declLine} ${b.complexity} \xb7 ${b.lines} lines`);let f=a.outsideImports.filter(b=>{let c;return 0!==(c=b.layer,a.order.indexOf(c))}).sort((b,c)=>{let d,e;return d=c.layer,a.order.indexOf(d)-(e=b.layer,a.order.indexOf(e))});for(let b of(c(),c(`Imported from outside the scope: ${a.outsideImports.length} edges. Into layers other than the outermost:`),f.slice(0,30)))c(`- ${b.from} → ${b.to} (${b.layer})`);c(),c("## Map 2 — what each entry point ends up writing"),c(),c(`${a.entries.length} entry points found (decorated handlers, router registrations, event \`case\` dispatch, program main).`),c();let g=new Map;for(let b of a.entries)for(let a of b.writes){let c=g.get(a.sink);c||(c={writes:a.writes,entries:new Set},g.set(a.sink,c)),c.entries.add(b.id)}for(let[a,b]of(c("Writes reached from more than one entry point:"),c("```"),[...g].sort((a,b)=>b[1].entries.size-a[1].entries.size)))b.entries.size<2||(c(`${a} [${b.writes.join(", ")}] ← ${b.entries.size} entries`),c(" "+[...b.entries].sort().join(" \xb7 ")));c("```");let h=a.entries.filter(a=>/^(GET|WEBSOCKET) /.test(a.id)&&a.writes.length);if(h.length)for(let a of(c(),c("Read-only verbs that reach a write:"),h)){let b=a.writes.reduce((a,b)=>a.via.length<=b.via.length?a:b);c(`- ${a.id} → ${b.via.map(d).join(" → ")} [${b.writes.join(", ")}]`)}for(let b of(c(),c(`Entry points reaching no write: ${a.entries.filter(a=>!a.writes.length).map(a=>a.id).join(" \xb7 ")||"none"}`),c(),c("## Map 3 — state ← writers (states with two or more writers or entry points)"),c(),c("```"),a.states))if(!(b.writers.length<2)||!(b.entries.length<2))for(let a of(c(`${b.state} ← ${b.writers.length} writer fns, ${b.entries.length} entry points`),b.writers))c(` ${a.fn.replace("#",":")}:${a.declLine}`);return c("```"),c(),c("Open question for the reviewer: for each state with several writers, which write a fresh read of the"),c("source and which write a stale copy (an event payload, an earlier response, a cache)? Not mechanical."),c(),c("Not seen: calls the index cannot resolve by name (methods on unknown receivers, dynamic dispatch, callbacks"),c("passed as values, Python imports inside function bodies and module-alias calls), writes outside the pattern"),c("table, entry points registered outside the scope."),b.join("\n")}},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=42332));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=3547,a.ids=[3547],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11220:(a,b,c)=>{c.d(b,{O:()=>h});var d=c(82038),e=c(30733);let f=(a,b)=>a<b?-1:+(a>b),g=a=>(0,d.B)(a.language);function h(a,b,c){let d=new Map;for(let f of a.files.values()){if(c(f.path))continue;let j=b.get(f.path);for(let k of f.importBindings){var h,i;let l=f.resolvedImports.get(k.specifier),m=k.importedName,n=l?a.files.get(l):void 0,o=n&&"*"!==m?(h=n,i=m,g(h).exportedDefinition(h,i,a.files)):null;o&&c(o.filePath)&&(o=null);let p=o||"*"===m?null:g(f).submoduleSpecifier(k.specifier,m);if(null!==p){let b=f.resolvedImports.get(p);b&&(l=b,n=a.files.get(b),m="*")}if(!l||!n||c(l))continue;let q=b.get(l);if(void 0===q||q===j)continue;let r=(0,e.W)(l,m),s=d.get(r);if(!s){let a=/^_(?!_.*__$)/.test(m);s={module:q,symbol:{name:m,file:l,kind:"*"===m?"module":o?.kind??"unknown",...o?{fn:`${o.filePath}#${o.qualifiedName}`,declLine:o.declLine}:{},...a?{private:!0}:{}},importers:new Set},d.set(r,s)}s.importers.add(f.path)}}let j=new Map;for(let{module:a,symbol:b,importers:c}of d.values()){let d=j.get(a);d||(d=[],j.set(a,d)),d.push({...b,importers:c.size})}return[...j].map(([a,b])=>({module:a,total:b.length,symbols:b.sort((a,b)=>b.importers-a.importers||f(a.file,b.file)||f(a.name,b.name)),weight:b.reduce((a,b)=>a+b.importers,0)})).sort((a,b)=>b.weight-a.weight||f(a.module,b.module)).map(({weight:a,...b})=>b)}},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},20055:(a,b,c)=>{c.d(b,{e:()=>g});var d=c(76760),e=c.n(d),f=c(770);function g(a,b){let c=e().posix.normalize(a.replaceAll("\\","/"));if(c.includes("\0")||e().posix.isAbsolute(c)||/^[a-z]:/i.test(c)||".."===c||c.startsWith("../"))throw new f.yI({field:b,reason:"Must be a project-relative path within cwd"});return"."===c?"":c.replace(/\/$/,"")}},21820:a=>{a.exports=require("os")},24823:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(80738),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},49822:(a,b,c)=>{c.d(b,{H9:()=>k,Rn:()=>q,X8:()=>p,fJ:()=>m,hy:()=>o,tJ:()=>r,tU:()=>j,uG:()=>n});var d=c(76760),e=c.n(d),f=c(770),g=c(20055),h=c(53809);let i={excludeTests:!0,explainTests:!1,test:[],notTest:[]};function j(a,b,c){if(void 0===a)return c;if(!0===a||1===a||"true"===a||"1"===a)return!0;if(!1===a||0===a||"false"===a||"0"===a)return!1;throw new f.yI({field:b,reason:"Expected true, false, 1 or 0"})}function k(a,b,c){return j(a.get(b)??void 0,b,c)}function l(a,b){return a.map(a=>{if("string"!=typeof a||!a||a.startsWith("!"))throw new f.yI({field:b,reason:"Expected a non-empty positive project-relative glob"});return(0,g.e)(a,b)})}function m(a){return{test:l(a.getAll("test"),"test"),notTest:l(a.getAll("notTest"),"notTest")}}function n(a){return{excludeTests:k(a,"excludeTests",!0),explainTests:k(a,"explainTests",!1),...m(a)}}function o(a){let b=b=>{let c=a[b];if(void 0===c)return[];if(!Array.isArray(c))throw new f.yI({field:b,reason:"Expected an array of globs"});return l(c,b)};return{test:b("test"),notTest:b("notTest")}}function p(a,b){if(b.notTest.some(b=>e().posix.matchesGlob(a,b)))return null;let c=b.test.find(b=>e().posix.matchesGlob(a,b));return c?`test ${c}`:(0,h.r)(a)}function q(a=i){let b=new Map;return{isTest:b=>null!==p(b,a),skip(c){if(!a.excludeTests)return!1;if(b.has(c))return!0;let d=p(c,a);return null!==d&&b.set(c,d),null!==d},filtered(){let c={tests:b.size};return a.explainTests&&(c.testFiles=[...b].map(([a,b])=>({filePath:a,rule:b})).sort((a,b)=>a.filePath.localeCompare(b.filePath))),c}}}function r(a){return a.tests?`${a.tests} test file${1===a.tests?"":"s"} left out (excludeTests=false keeps them, explainTests=true lists them, notTest=<glob> reclassifies).`:null}},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},53809:(a,b,c)=>{c.d(b,{h:()=>h,r:()=>g});let d=/(^|\/)(__tests__|tests?)\//i,e=/^((?:.*?\/)?app\/)(?:[^/]+\/)*(?:route|page|layout|template|loading|error|global-error|not-found|default)\.[cm]?[jt]sx?$/i,f=[[/\.(test|spec|e2e)\.[^/]+$/i,"name *.test|spec|e2e.*"],[/(^|\/)test_[^/]+\.pyi?$/i,"name test_*.py"],[/[^/]+_test\.go$/i,"name *_test.go"]];function g(a){let b,c;return((c=((b=a.match(e))&&!/(^|\/)__tests__\//i.test(a)?b[1]:a).match(d))?`directory ${c[2]}/`:null)??f.find(([b])=>b.test(a))?.[1]??null}function h(a){return null!==g(a)}},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},62312:(a,b,c)=>{c.d(b,{nA:()=>h});var d=c(82038);let e=["GET","HEAD","POST","PUT","PATCH","DELETE","OPTIONS"],f=[/(?:^|\/)src\/app\/(?:(.*)\/)?route\.[cm]?[jt]sx?$/,/^(?:.*?\/)?app\/(?:(.*)\/)?route\.[cm]?[jt]sx?$/],g=new Set(["function","method","const"]);function h(a,b=()=>!1){let c=[];for(let[h,i]of a.files){let j=function(a){for(let b of f){let c=a.match(b);if(c)return"/"+(c[1]??"").split("/").filter(a=>a&&!/^\(.*\)$/.test(a)&&!a.startsWith("@")).join("/")}return null}(h);if(null===j||b(h))continue;let k=(0,d.B)(i.language);for(let d of e){let e=k.exportedDefinition(i,d,a.files);!e||!g.has(e.kind)||b(e.filePath)||c.push({method:d,url:j,fn:`${e.filePath}#${e.qualifiedName}`})}}return c.sort((a,b)=>a.url.localeCompare(b.url)||a.method.localeCompare(b.method)||a.fn.localeCompare(b.fn))}},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},70158:(a,b,c)=>{c.d(b,{R_:()=>f,V4:()=>d,Z3:()=>e});let d=["package.json","pyproject.toml","setup.py","go.mod","Cargo.toml"],e=.4;function f(a,b,c=new Set){let d="."===b?"":b.replace(/\/$/,""),g=d||".",h=new Map,i=(a,b)=>{let c=b===g?d?d+"/":"":b+"/",e=a.slice(c.length),f=e.indexOf("/");return f<0?null:c+e.slice(0,f)},j=a=>{for(let b=a.lastIndexOf("/");b>0;b=a.lastIndexOf("/",b-1)){let e=a.slice(0,b);if(e===d)break;if(c.has(e))return e}return null};for(let b of a)h.set(b,j(b)??i(b,g)??g);for(;;){let b=new Map;for(let[a,c]of h){let d=b.get(c);d||(d=[],b.set(c,d)),d.push(a)}let c=[...b].filter(([b,c])=>b!==g&&c.length>e*a.length&&c.some(a=>i(a,b))).sort((a,b)=>b[1].length-a[1].length||a[0].localeCompare(b[0]))[0];if(!c)return h;let[d,f]=c;for(let a of f)h.set(a,i(a,d)??d)}}},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80026:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/maps/route",pathname:"/api/projectGraph/maps",filename:"route",bundlePath:"app/api/projectGraph/maps/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/maps/route.ts",nextConfigOutput:"",userland:()=>c(24823),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/maps/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},80481:a=>{a.exports=require("node:readline")},80738:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>x,fA:()=>w,fG:()=>y});var e=c(89705),f=c(51455),g=c(76760),h=c.n(g),i=c(770),j=c(72891),k=c(4253),l=c(33265),m=c(58994),n=c(75775),o=c(84916),p=c(90439),q=c(62312),r=c(70158),s=c(11220),t=c(49822),u=c(52598),v=a([j,l]);[j,l]=v.then?(await v)():v;let w="nodejs",x="force-dynamic",y=(0,j.RL)(a=>e.JkU(function*(){let b=new URL(a.url).searchParams,c=yield*e.ivC(()=>(0,k.nw)(b.get("cwd")));if(!c.ok)return yield*e.fJG(new i.yI({field:"cwd",reason:c.reason}));let{options:d,layers:g,reach:j}=yield*e.SvU({try:()=>({options:(0,o.sX)(b),layers:function(a){let b;if(!a)return;try{b=JSON.parse(a)}catch{throw new i.yI({field:"layers",reason:"not JSON"})}let c=b,d=a=>Array.isArray(a)&&a.every(a=>"string"==typeof a);if(!c||!d(c.order)||"object"!=typeof c.layers||null===c.layers||!Object.values(c.layers).every(d)||void 0!==c.pure&&!d(c.pure))throw new i.yI({field:"layers",reason:"expected {order: string[], layers: {name: string[]}, pure?: string[]}"});return c}(b.get("layers")),reach:(0,t.H9)(b,"reach",!1)}),catch:a=>(0,n.xq)(a,"Invalid maps parameters")}),v="markdown"===b.get("format"),w=yield*e.$mh({try:()=>(0,l.u$)(c.abs),catch:a=>(0,n.xq)(a,"Maps export failed")}),{files:x,filtered:y}=(0,o.$2)(w,d),z=new Map((yield*e.Q7R(x.map(a=>a.path).map(a=>e.$mh(()=>(0,n.ax)(c.abs,a)).pipe(e.DM4(()=>null),e.qIB(b=>{let c;return b?(c=w.files.get(a),c?.sourceHash===b.hash?e.PyW((0,m.f)(b.source,c.comments)):e.$mh(()=>(0,l.hM)(a,b,({root:a})=>(0,m.Q)(a))).pipe(e.DM4(()=>null),e.TjK(a=>a?(0,m.f)(b.source,a):b.source))):e.PyW(null)}),e.TjK(b=>[a,b]))),{concurrency:16}))),A=new Set;for(let a of x)for(let b=a.path.lastIndexOf("/");b>0;b=a.path.lastIndexOf("/",b-1))A.add(a.path.slice(0,b));let B=new Set((yield*e.Q7R([...A].map(a=>e.Q7R(r.V4.map(b=>{let d;return d=h().join(c.abs,a,b),e.$mh(()=>(0,f.access)(d)).pipe(e.as(!0),e.DM4(()=>!1))}),{concurrency:"unbounded"}).pipe(e.TjK(a=>a.some(Boolean))).pipe(e.TjK(b=>b?a:null))),{concurrency:32})).filter(a=>null!==a)),C=(0,t.Rn)(d.tests),D=a=>d.tests.excludeTests&&C.isTest(a),E=(0,p.bI)({directory:d.directory,files:x,layers:g,readSource:a=>z.get(a)??null,routes:(0,q.nA)(w,D),outsideCalls:a=>(0,o.br)(w,a),excluded:D,reach:j,packages:B,moduleConstants:a=>new Map((w.files.get(a)?.flatSymbols??[]).filter(a=>"const"===a.kind&&!a.qualifiedName.includes(">")).map(a=>[a.qualifiedName,a.declLine])),locate:a=>{let b=a.indexOf("#");return w.files.get(a.slice(0,b))?.symbolsByQname.get(a.slice(b+1))?.declLine}});if(E.publicApi=(0,s.O)(w,(0,r.R_)(x.map(a=>a.path),d.directory,B),D),!v)return(0,u.I)(w,{...E,filtered:y});let F=[(0,t.tJ)(y),...(y.testFiles??[]).map(a=>`- ${a.filePath} ← ${a.rule}`)];return(0,u.F)(w,new Response((0,p.Hv)(E,F.filter(a=>null!==a)),{status:200,headers:{"Content-Type":"text/markdown; charset=utf-8"}}))}));d()}catch(a){d(a)}})},83997:a=>{a.exports=require("tty")},84916:(a,b,c)=>{c.d(b,{$2:()=>g,br:()=>i,sX:()=>f});var d=c(20055),e=c(49822);function f(a){return{directory:(0,d.e)(a.get("path")??".","path"),tests:(0,e.uG)(a)}}function g(a,b){let c=a=>!b.directory||a===b.directory||a.startsWith(`${b.directory}/`),d=[],f=(0,e.Rn)(b.tests),g=a=>!(b.tests.excludeTests&&f.isTest(a));for(let b of a.files.keys())c(b)&&(f.skip(b)||d.push(function(a,b,c,d){let e=a.files.get(b);return{path:b,language:e.language,imports:[...e.importedFiles].filter(c).sort(),importedFromOutside:[...e.importedBy].filter(a=>d(a)&&c(a)).sort(),functions:e.flatSymbols.filter(a=>"function"===a.kind||"method"===a.kind||"class"===a.kind).map(a=>({qualifiedName:a.qualifiedName,kind:a.kind,declLine:a.declLine,startLine:a.startLine,endLine:a.endLine,...void 0!==a.complexity?{complexity:a.complexity}:{}})),calls:[...e.intraCalls.map(a=>({from:a.from,toFile:b,to:a.to,lines:a.lines,...h(a)})),...e.outgoingCalls.filter(a=>c(a.to.filePath)).map(a=>({from:a.from,toFile:a.to.filePath,to:a.to.qualifiedName,lines:a.lines,...h(a)}))]}}(a,b,g,a=>!c(a))));return d.sort((a,b)=>a.path.localeCompare(b.path)),{directory:b.directory||".",files:d,filtered:f.filtered()}}let h=a=>a.byName?{byName:!0}:{};function i(a,b){let c=b.indexOf("#"),d=a.files.get(b.slice(0,c));if(!d)return[];let e=b.slice(c+1);return[...d.outgoingCalls.filter(a=>a.from===e).map(a=>({to:`${a.to.filePath}#${a.to.qualifiedName}`,...h(a)})),...d.intraCalls.filter(a=>a.from===e).map(a=>({to:`${d.path}#${a.to}`,...h(a)}))]}},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},90439:(a,b,c)=>{c.d(b,{Hv:()=>n,bI:()=>m});var d=c(31181),e=c(82038),f=c(70158),g=c(30733);let h=[[/\b(?:INSERT\s+(?:OR\s+\w+\s+)?INTO|REPLACE\s+INTO|UPDATE|DELETE\s+FROM)\s+["'`]?([A-Za-z_][\w.]{2,})/g,a=>/^(only|the|set|all|and|for|with|from|when|then|this|that|row|rows|each|any)$/i.test(a[1])?null:"table "+a[1]],[/\bSELECT\s+\*\s+FROM\s+([a-z_]\w*)\s*\(/gi,a=>"rpc "+a[1]],[/\b(?:\w*db|\w*Db|tx|trx|conn|knex|qb|em)\s*\.(?:insert|update|delete|upsert)\(\s*([A-Za-z_][\w.]*)?/g,a=>a[1]?"table "+a[1].split(".").pop():null],[/\b(?:prisma|tx)\.([A-Za-z_]\w*)\s*\.(?:create|createMany|update|updateMany|delete|deleteMany|upsert)\(/g,a=>"table "+a[1]],[/\.from\(\s*["'`]([A-Za-z_][\w.]*)["'`]\s*\)\s*\.(?:insert|update|delete|upsert)\(/g,a=>"table "+a[1]],[/\b(?:session|db|tx|conn|cursor)\.(add|add_all|merge|delete|commit|bulk_save_objects)\(/g,a=>"db "+a[1]],[/\.(to_parquet|to_csv|to_sql|to_pickle|to_feather|write_text|write_bytes)\(/g,a=>"file "+a[1]],[/\bopen\([^)]*["'][wa]b?\+?["']/g,()=>"file open-for-write"],[/\b(?:json|pickle|yaml|toml)\.dump\(/g,()=>"file dump"],[/\b(?:requests|httpx|session|client|axios)\.(post|put|patch|delete)\(/g,a=>"remote http."+a[1]],[/\.(\w+)\.(create|update|cancel|del|voidInvoice|pay|release|finalizeInvoice|send|publish)\(/g,a=>/^(prototype|Object|Array|JSON|Promise|console|logger|log|res|req|router|app|map|set|self|os|path|_\w*)$/.test(a[1])?null:"remote "+a[1]+"."+a[2]],[/\b(?:os\.(?:remove|rename|replace|unlink|makedirs)|shutil\.(?:move|rmtree|copy\w*)|fs\.(?:writeFile\w*|rm\w*|rename\w*|unlink\w*))\(/g,()=>"file fs-op"]],i=/^\s*@\s*([\w.]+)\.(get|post|put|patch|delete|route|websocket|command|task|scheduled_job|job|on_event|callback)\(/,j=/\b(?:router|app|r|e|mux|group|api|srv)\.(get|post|put|patch|delete|GET|POST|PUT|PATCH|DELETE|HandleFunc|Handle)\(\s*["'`]([^"'`]+)["'`][^\n;]*?([A-Za-z_]\w*)\s*\)/,k=/((?:case\s+["'][^"']+["']\s*:\s*)+)(?:\/\/[^\n]*\n\s*)*(?:return\s+)?(?:await\s+)?([A-Za-z_]\w*)\(/g,l=/if\s+__name__\s*==\s*["']__main__["']|^func\s+main\(\)/m;function m(a){let{files:b,readSource:c}=a,m=a.directory.replace(/\/$/,""),n=new Map(b.map(a=>[a.path,a])),o=(0,f.R_)(b.map(a=>a.path),m||".",a.packages),p=a.layers,q=new Map;for(let a of o.values())q.set(a,(q.get(a)??0)+1);let r=[...q.keys()].sort((a,b)=>q.get(b)-q.get(a)||a.localeCompare(b)),s=p?.order??[],t=new Set(p?.pure??[]),u=p?Object.entries(p.layers).flatMap(([a,b])=>b.map(b=>{let c;return[a,(c=a=>a.replace(/[.+?^${}()|[\]\\]/g,"\\$&"),RegExp("^"+b.split("**").map(a=>a.split("*").map(c).join("[^/]*")).join(".*")+"$"))]})):[],v=new Map,w=a=>{let b=v.get(a);return void 0===b&&(b=p?u.find(([,b])=>b.test(a))?.[0]??"other":o.get(a)??"outside",v.set(a,b)),b},x=a=>{let b=s.indexOf(a);return b<0?null:b},y=new Map,z=a=>{let b=y.get(a);return b||(b=(c(a)??"").split("\n"),y.set(a,b)),b},A=(a,b)=>`${a}#${b}`,B=new Map;for(let a of b)for(let b of a.functions)B.set(A(a.path,b.qualifiedName),{file:a.path,...b});let C=new Map,D=new Set;for(let a of b)for(let b of a.calls){let c=A(a.path,b.from),d=C.get(c);d||(d=new Set,C.set(c,d)),d.add(A(b.toFile,b.to)),b.byName&&D.add((0,g.W)(c,A(b.toFile,b.to)))}let E=new Map;for(let[a,b]of B){if("class"===b.kind)continue;let c=z(b.file).slice(b.startLine-1,b.endLine).join("\n"),d=new Set;for(let[a,b]of h)for(let e of c.matchAll(a)){let a=b(e);a&&d.add(a)}d.size&&E.set(a,[...d])}let F=[],G=(a,b,c)=>{if(a.functions.some(a=>a.qualifiedName===b))return A(a.path,b);let d=a.imports.map(a=>n.get(a)).find(a=>a?.functions.some(a=>a.qualifiedName===b));if(d)return A(d.path,b);if(void 0===c)return null;let e=((a,b)=>{let c=null;for(let d of a.functions)"class"!==d.kind&&d.startLine<=b&&b<=d.endLine&&(!c||d.startLine>=c.startLine)&&(c=d);return c})(a,c);return e?[...C.get(A(a.path,e.qualifiedName))??[]].find(a=>a.endsWith("#"+b))??null:null};for(let c of b){let b,f=z(c.path);f.forEach((g,h)=>{let k=g.match(i);if(k){let i=c.functions.find(a=>"class"!==a.kind&&a.startLine<=h+1&&h+1<=a.declLine);b??=(0,e.i)(c.language)?.moduleStringConstants(f.join("\n"),a.moduleConstants?.(c.path)??new Map)??new Map;let j=[g.slice(k[0].length),...f.slice(h+1,h+40)].join("\n").slice(0,2e3);i&&F.push({id:function(a,b,c,e){let f=(0,d.Sx)(b),g=a.toUpperCase();if(""===f||null===f&&!b.trim())return`${g} ${c}`;let h=null===f?null:(0,d.wU)(f,e);if(""===h)return`${g} ${c}`;if(null!==h)return`${g} ${h}`;let i=(f??b).replace(/\s+/g," ").trim();return`${g} ${c} (path: ${i.length>60?i.slice(0,57)+"...":i})`}(k[2],j,i.qualifiedName,b),fn:A(c.path,i.qualifiedName)})}let l=g.match(j);if(l){let a=G(c,l[3],h+1);a&&F.push({id:`${l[1].toUpperCase()} ${l[2]}`,fn:a})}});let g=f.join("\n");for(let a of g.matchAll(k)){let b=[...a[1].matchAll(/["']([^"']+)["']/g)].map(a=>a[1]);if(!b.some(a=>a.includes(".")||/^[A-Z][A-Z0-9_]+$/.test(a)))continue;let d=G(c,a[2]);d&&F.push({id:`event ${b.join(" | ")}`,fn:d})}if(l.test(g)){let a=c.functions.find(a=>/^(main|cli|run)$/.test(a.qualifiedName));a&&F.push({id:`program ${c.path}`,fn:A(c.path,a.qualifiedName)})}}let H=a=>a.slice(0,a.indexOf("#")),I=a=>n.has(H(a)),J=b=>!a.excluded?.(H(b)),K=b=>I(b)?[...C.get(b)??[]].map(a=>[a,D.has((0,g.W)(b,a))]):(a.outsideCalls?.(b)??[]).map(a=>(a.byName&&D.add((0,g.W)(b,a.to)),[a.to,!!a.byName])),L=a=>a.slice(1).flatMap((b,c)=>D.has((0,g.W)(a[c],b))?[c]:[]),M=(a,b=14)=>{let c=new Map(J(a)?[[a,[a]]]:[]),d=(a,d)=>{for(;a.length;){let e=a.shift(),f=c.get(e);if(!(f.length>b))for(let[b,g]of K(e))(d||!g)&&!c.has(b)&&J(b)&&(c.set(b,[...f,b]),a.push(b))}};return d([...c.keys()],!1),d([...c.keys()],!0),c};for(let b of a.routes??[])[...M(b.fn).keys()].some(I)&&F.push({id:`${b.method} ${b.url}`,fn:b.fn});let N=b=>{let c=B.get(b)?.declLine??a.locate?.(b);return void 0===c?{fn:b}:{fn:b,declLine:c}},O=F.map(b=>{let c=K(b.fn).filter(([a,b])=>!b&&J(a)).map(([a])=>N(a)),d={...N(b.fn),id:b.id,calls:c};if(!a.reach)return d;let e=[];for(let[a,c]of M(b.fn)){let b=E.get(a);if(!b)continue;let d=L(c);e.push({sink:a,writes:b,via:c,...d.length?{byNameHops:d}:{}})}return{...d,writes:e}}),P=b.flatMap(a=>a.imports.map(b=>({from:a.path,to:b}))),Q={};for(let a of P){let b=w(a.from),c=w(a.to);Q[b]??={},Q[b][c]=(Q[b][c]??0)+1}let R=P.flatMap(a=>{let b=w(a.from),c=w(a.to),d=x(b),e=x(c);return null!==d&&null!==e&&e<d?[{...a,fromLayer:b,toLayer:c}]:[]}),S=b.filter(a=>t.has(w(a.path))).flatMap(a=>[...a.imports.filter(a=>!t.has(w(a))&&null!==x(w(a))).map(b=>`${a.path} imports ${b}`),...a.functions.flatMap(b=>{let c=E.get(A(a.path,b.qualifiedName));return c?[`${a.path}:${b.declLine} ${b.qualifiedName} writes ${c.join(", ")}`]:[]})]),T=new Map;for(let a of P)n.has(a.to)&&T.set(a.to,(T.get(a.to)??0)+1);let U=new Map;for(let[a,b]of E)for(let c of b){let b=U.get(c);b||(b={fns:new Set,entries:new Set,exact:new Set},U.set(c,b)),b.fns.add(a)}for(let a of O)for(let b of a.writes??[])for(let c of b.writes){let d=U.get(c);d?.entries.add(a.id),b.byNameHops||d?.exact.add(a.id)}return{directory:m||".",languages:[...new Set(b.map(a=>a.language))].sort(),modules:r.map(a=>{let c=b.filter(b=>o.get(b.path)===a),d=b=>o.get(H(b))===a;return{module:a,files:c.length,languages:[...new Set(c.map(a=>a.language))].sort(),entries:O.filter(a=>d(a.fn)).length,writers:[...E.keys()].filter(d).length}}),layersSource:p?"declared":"folders",order:s,pure:[...t],layerOf:Object.fromEntries(b.map(a=>[a.path,w(a.path)])),layerMatrix:Q,backEdges:R,impure:S,cycles:(function(a,b){let c=0,d=new Map,e=new Map,f=new Set,g=[],h=[],i=a=>b.get(a).imports.filter(a=>b.has(a));for(let b of a.map(a=>a.path)){if(d.has(b))continue;let a=[{v:b,i:0}];for(d.set(b,c),e.set(b,c),c++,g.push(b),f.add(b);a.length;){let b=a[a.length-1],j=i(b.v);if(b.i<j.length){let h=j[b.i++];d.has(h)?f.has(h)&&e.set(b.v,Math.min(e.get(b.v),d.get(h))):(d.set(h,c),e.set(h,c),c++,g.push(h),f.add(h),a.push({v:h,i:0}));continue}if(a.pop(),a.length){let c=a[a.length-1].v;e.set(c,Math.min(e.get(c),e.get(b.v)))}if(e.get(b.v)===d.get(b.v)){let a,c=[];do a=g.pop(),f.delete(a),c.push(a);while(a!==b.v);c.length>1&&h.push(c)}}}return h})(b,n).map(a=>a.sort()),fanIn:[...T].sort((a,b)=>b[1]-a[1]).slice(0,10),fanOut:b.map(a=>[a.path,a.imports.length]).sort((a,b)=>b[1]-a[1]).slice(0,10),complexity:b.flatMap(a=>a.functions.flatMap(b=>void 0===b.complexity?[]:[{fn:A(a.path,b.qualifiedName),declLine:b.declLine,complexity:b.complexity,lines:b.endLine-b.startLine+1}])).sort((a,b)=>b.complexity-a.complexity||b.lines-a.lines).slice(0,15),outsideImports:b.flatMap(a=>a.importedFromOutside.map(b=>({from:b,to:a.path,layer:w(a.path)}))),entries:O,states:[...U].map(([b,c])=>({state:b,writers:[...c.fns].sort().map(a=>({fn:a,declLine:B.get(a).declLine})),...a.reach?{entries:[...c.entries].sort()}:{},...c.entries.size>c.exact.size?{entriesByName:[...c.entries].filter(a=>!c.exact.has(a)).sort()}:{}})).sort((a,b)=>b.writers.length-a.writers.length||a.state.localeCompare(b.state)),reach:!!a.reach}}function n(a,b=[]){let c=[],d=(a="")=>c.push(a),e=a=>a.slice(a.indexOf("#")+1).replace(/\s+/g," "),g=a=>`${a.fn.slice(0,a.fn.indexOf("#"))}${void 0===a.declLine?"":":"+a.declLine}`,h=a=>a.via.map(e).reduce((b,c,d)=>0===d?c:`${b} ${a.byNameHops?.includes(d-1)?"~>":"→"} ${c}`,"");for(let c of(d(`# Architecture maps — ${a.directory}`),d(`${Object.keys(a.layerOf).length} files in scope (${a.languages.join(", ")}). Outside in: modules → entry points → dependencies → public API → hotspots.`),d("Only what syntax settles; each item gives its definition site — go deeper with cg callers / callees or grep."),b))d(c);d(),d("## Modules"),d(),d(`Packages (folders with a manifest) and folders; one holding more than ${Math.round(100*f.Z3)}% of the files is split into its sub-folders.`);let i=Math.max(6,...a.modules.map(a=>a.module.length));for(let b of(d("```"),d(`${"module".padEnd(i)} ${"files".padStart(6)} ${"entries".padStart(7)} ${"writers".padStart(7)} languages`),a.modules))d(`${b.module.padEnd(i)} ${String(b.files).padStart(6)} ${String(b.entries).padStart(7)} ${String(b.writers).padStart(7)} ${b.languages.join(", ")}`);for(let b of(d("```"),d(),d("## Entry points"),d(),d(`${a.entries.length} entry points found (decorated handlers, router registrations, Next.js route exports, event \`case\` dispatch, program main).`),d("Each: the handler's definition, then the functions it calls directly (exact calls, one hop). Go deeper from"),d("those definitions with cg callees or grep — maps does not follow calls further."),[...a.entries].sort((a,b)=>a.id.localeCompare(b.id)))){let a=b.calls.slice(0,5).map(a=>`${e(a.fn)} (${g(a)})`),c=b.calls.length>5?` (+${b.calls.length-5})`:"";d(`- ${b.id} ${g(b)} ${e(b.fn)}${a.length?" → "+a.join(" \xb7 ")+c:""}`)}if(d(),d("## Dependencies"),d(),"declared"===a.layersSource){d("Imports between the declared layers:");let b=[...a.order,"other"];for(let c of(d("```"),d("from \\ to "+b.map(a=>a.slice(0,11).padStart(12)).join("")),b))d(c.slice(0,11).padEnd(12)+b.map(b=>String(a.layerMatrix[c]?.[b]??"").padStart(12)).join(""));for(let b of(d("```"),d(),d(`Imports pointing back up the order ${a.order.join(" → ")}:`),a.backEdges.slice(0,40)))d(`- ${b.fromLayer} → ${b.toLayer}: ${b.from} → ${b.to}`);for(let b of(a.backEdges.length||d("- none"),d(),d(`Pure layers (${a.pure.join(", ")||"none declared"}) importing others or writing:`),a.impure.slice(0,30)))d("- "+b);a.impure.length||d("- none")}else{d("Imports between modules (import statements, file to file; no layering was passed — `layers` checks an order):");let b=Object.entries(a.layerMatrix).flatMap(([a,b])=>Object.entries(b).filter(([b])=>b!==a).map(([b,c])=>[a,b,c])).sort((a,b)=>b[2]-a[2]||a[0].localeCompare(b[0])||a[1].localeCompare(b[1]));for(let[a,c,e]of b.slice(0,40))d(`- ${a} → ${c} ${e}`);b.length>40&&d(`- … ${b.length-40} more pairs (JSON \`layerMatrix\`)`),b.length||d("- none")}for(let b of(d(),d(`Import cycles inside the scope: ${a.cycles.length||"none"}`),a.cycles))d(`- {${b.join(", ")}} — ${b.length} files reaching each other (a set, not a path)`);if(d(),d("Fan-in: "+a.fanIn.map(([a,b])=>`${a} ${b}`).join(" \xb7 ")),d("Fan-out: "+a.fanOut.map(([a,b])=>`${a} ${b}`).join(" \xb7 ")),d(),"declared"===a.layersSource){let b=a.outsideImports.filter(b=>{let c;return 0!==(c=b.layer,a.order.indexOf(c))}).sort((b,c)=>{let d,e;return d=c.layer,a.order.indexOf(d)-(e=b.layer,a.order.indexOf(e))});for(let c of(d(`Imported from outside the scope: ${a.outsideImports.length} edges. Into layers other than the outermost:`),b.slice(0,30)))d(`- ${c.from} → ${c.to} (${c.layer})`)}else{for(let b of(d(`Imported from outside the scope: ${a.outsideImports.length} edges.`),a.outsideImports.slice(0,30)))d(`- ${b.from} → ${b.to}`);a.outsideImports.length>30&&d(`- … ${a.outsideImports.length-30} more (JSON \`outsideImports\`)`)}if(d(),a.publicApi){for(let b of(d("## Public API"),d(),d("Per module, the names other modules import or re-export from it (import statements), most imported first, with"),d("where each is defined. `private` = named private (`_name`) yet imported from outside."),a.publicApi)){for(let a of(d(),d(`${b.module} — ${b.total} name${1===b.total?"":"s"} imported from outside`),b.symbols.slice(0,10))){let b=a.fn?`${a.fn.slice(0,a.fn.indexOf("#"))}${void 0===a.declLine?"":":"+a.declLine}`:a.file;d(`- ${"*"===a.name?`${a.file} (whole module)`:a.name} ${a.kind} ${b} ← ${a.importers}${a.private?" private":""}`)}b.total>10&&d(`- … ${b.total-10} more (JSON \`publicApi\`)`)}a.publicApi.length||d("Nothing in the scope is imported from another module."),d()}if(d("## Hotspots"),d(),a.complexity.length){for(let b of(d("Most complex functions (cyclomatic, lines) — where decisions pile up:"),a.complexity))d(`- ${b.fn.replace("#",":")}:${b.declLine} ${b.complexity} \xb7 ${b.lines} lines`);d()}d("States and the functions that write them (a pattern table over function bodies: SQL, query builders, ORM"),d("sessions, files, HTTP):");let j=!1,k=a=>a?` (${a} by name only)`:"",l=a=>a.entries?(a.entriesByName?.length&&(j=!0),`, ${a.entries.length} entry points${k(a.entriesByName?.length??0)}`):"",m=a.states.filter(a=>a.writers.length>1),o=a.states.filter(a=>1===a.writers.length);for(let a of(d("```"),m.slice(0,40))){for(let b of(d(`${a.state} ← ${a.writers.length} writer fns${l(a)}`),a.writers.slice(0,10)))d(` ${b.fn.replace("#",":")}:${b.declLine}`);a.writers.length>10&&d(` … ${a.writers.length-10} more`)}for(let a of(m.length>40&&d(`… ${m.length-40} more states with several writers`),o.slice(0,40)))d(`${a.state} ← ${a.writers[0].fn.replace("#",":")}:${a.writers[0].declLine}${l(a)}`);if(o.length>40&&d(`… ${o.length-40} more states with one writer`),d("```"),(m.length>40||o.length>40||m.some(a=>a.writers.length>10))&&d("Full lists: JSON `states`."),d(),d("Open question for the reviewer: for each state with several writers, which write a fresh read of the"),d("source and which write a stale copy (an event payload, an earlier response, a cache)? Not mechanical."),a.reach){d(),d("## Entry → write paths (reach=true)"),d(),d("Multi-hop paths through the call graph. A lead, never complete: calls on receivers of unknown type are"),d("not followed, so a missing path proves nothing.");let b=new Map;for(let c of a.entries)for(let a of c.writes??[]){let d=b.get(a.sink);d||(d={writes:a.writes,entries:new Map},b.set(a.sink,d)),d.entries.set(c.id,!!a.byNameHops)}for(let[a,c]of(d(),d("Writes reached from more than one entry point:"),d("```"),[...b].sort((a,b)=>b[1].entries.size-a[1].entries.size))){if(c.entries.size<2)continue;let b=[...c.entries.values()].filter(Boolean).length;b&&(j=!0),d(`${a} [${c.writes.join(", ")}] ← ${c.entries.size} entries${k(b)}`),d(" "+[...c.entries].sort((a,b)=>a[0].localeCompare(b[0])).map(([a,b])=>b?`${a} ~`:a).join(" \xb7 "))}d("```");let c=a.entries.filter(a=>/^(GET|WEBSOCKET) /.test(a.id)&&a.writes?.length);if(c.length)for(let a of(d(),d("Read-only verbs that reach a write:"),c)){let b=a.writes.reduce((a,b)=>0>=(Number(!!a.byNameHops)-Number(!!b.byNameHops)||a.via.length-b.via.length)?a:b);b.byNameHops&&(j=!0),d(`- ${a.id} → ${h(b)} [${b.writes.join(", ")}]`)}}return j&&d("(`~>` = a call matched by name only, its receiver's type unknown: check that hop before trusting the path. `~` after an entry: it reaches that write only through such a call.)"),d(),d("Not seen: writes outside the pattern table, entry points registered outside the scope or by a pattern the"),d("table lacks. Calls beyond one hop are not followed (reach=true walks them, incompletely)."),c.join("\n")}},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=80026));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=5311,a.ids=[5311],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},9197:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A:()=>j});var e=c(89705),f=c(770),g=c(33265),h=c(13278),i=a([g]);function j(a,b){return e.JkU(function*(){let c=Math.min(Math.max(b.topK??10,1),30),d=b.include??"all",i=(0,g._7)(a,b.qname,b.filePath);if(i.length>1)return{target:null,ambiguousIn:i.map(a=>a.path).sort(),results:[],coedit:[],degraded:a.truncated,degradedReason:a.truncated?"truncated":void 0};let j=i[0];if(!j)return{target:null,results:[],coedit:[],degraded:a.truncated,degradedReason:a.truncated?"truncated":void 0};let k=new Map,l=(a,c,d)=>{if("unknown"===a.kind||a.filePath===j.path&&a.qualifiedName===b.qname)return;let e=`${a.filePath}::${a.qualifiedName}`,f=k.get(e);f||(f={...a,score:0,relations:[]},k.set(e,f)),f.score+=d,f.relations.push(c)};if("coedit"!==d){for(let{caller:c,callLines:d}of(0,g.Xn)(a,b.qname,j.path).callers)l(c,{type:"caller",callLines:d},.4);for(let{callee:c,callLines:d}of(0,g.Mv)(a,b.qname,j.path).callees)l(c,{type:"callee",callLines:d},.4)}let m=[],n=!1;if("structural"!==d){let b=yield*e.gPK(e.$mh({try:()=>(0,h.c)(a.cwd,j.path,100),catch:a=>new f.uV({message:"Coedit lookup failed",cause:a})}));if("Left"===b._tag)n=!0;else{let{history:c,totalCommits:d}=b.right;for(let a of c.slice(0,30))m.push({...a,totalCommits:d});if(d>0)for(let b of c.slice(0,8)){let c=b.cooccurrence/d;if(c<.2)continue;let e=a.files.get(b.filePath),f=e?.flatSymbols.find(a=>"unknown"!==a.kind);f&&l(f,{type:"frequent-coedit",cooccurrence:b.cooccurrence,totalCommits:d},.3*c)}}}let o=[...k.values()].sort((a,b)=>b.score-a.score||a.filePath.localeCompare(b.filePath)||a.qualifiedName.localeCompare(b.qualifiedName)||a.startLine-b.startLine).slice(0,c),p=a.truncated?"truncated":n?"coedit-unavailable":void 0;return{target:{filePath:j.path,qualifiedName:b.qname},results:o,coedit:m,degraded:void 0!==p,degradedReason:p}})}g=(i.then?(await i)():i)[0],d()}catch(a){d(a)}})},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},13278:(a,b,c)=>{c.d(b,{c:()=>q,j:()=>p});var d=c(31421),e=c(57975),f=c(89705),g=c(69181),h=c(770);let i=(0,e.promisify)(d.execFile);async function j(a,b,c,d=!1){let e=f.$mh({try:()=>i("git",b,{cwd:a,maxBuffer:c}).then(a=>a.stdout),catch:a=>new h.uV({message:"Co-edit Git command failed",cause:a})}),k=await f.pR5(f.gPK(e.pipe(f.h9N(b=>d?f.$mh({try:()=>i("git",["rev-parse","--verify","--quiet","HEAD"],{cwd:a}),catch:a=>a}).pipe(f.tvg({onSuccess:()=>f.fJG(b),onFailure:a=>1===a.code?f.PyW(""):f.fJG(b)})):f.fJG(b)))));if(g.OC(k))throw k.left;return k.right}let k="---SEP---",l=`--pretty=format:${k}%H|%cI`;async function m(a,b,c,d){if("merge"===d)return j(a,["log","-n",String(c),"--merges","--first-parent","--full-diff","--name-only",l,"--",b],0x3200000,!0);let e=(await j(a,["log","-n",String(c),"--follow","--format=%H","--",b],0x3200000,!0)).split("\n").map(a=>a.trim()).filter(Boolean),f="";for(let b=0;b<e.length;b+=100)f+=await j(a,["log","--no-walk=unsorted","--name-only",l,...e.slice(b,b+100)],0x3200000),f+="\n";return f}async function n(a,b,c,d="commit"){let e=await m(a,b,c,d),f=[];for(let a of e.split(k).slice(1)){let b=a.split("\n"),c=b[0],d=c.indexOf("|");if(d<0)continue;let e=c.slice(0,d),g=c.slice(d+1),h=b.slice(1).map(a=>a.trim()).filter(Boolean);e&&f.push({hash:e,date:g,files:h})}let g=new Map;for(let a of f)if(0!==a.files.length&&!(a.files.length>30))for(let c of a.files){if(c===b)continue;let d=g.get(c);d?(d.cooccurrence+=1,a.date>d.lastCoEdit&&(d.lastCoEdit=a.date)):g.set(c,{filePath:c,cooccurrence:1,lastCoEdit:a.date,probability:0})}let h=f.length;for(let a of g.values())a.probability=h>0?a.cooccurrence/h:0;return{history:Array.from(g.values()).sort((a,b)=>b.cooccurrence-a.cooccurrence||b.lastCoEdit.localeCompare(a.lastCoEdit)||a.filePath.localeCompare(b.filePath)),totalCommits:h}}async function o(a,b){let c=await j(a,["-c","core.quotePath=false","status","--porcelain"],0xa00000),d=[];for(let a of c.split("\n")){if(a.length<4)continue;let b=a[0],c=a[1];if("?"===b&&"?"===c)continue;let e=a.slice(3).trim(),f=e.indexOf(" -> ");f>=0&&(e=e.slice(f+4).trim()),e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1)),d.push(e)}return d.includes(b)?d.filter(a=>a!==b).sort((a,b)=>a.localeCompare(b)):[]}async function p(a,b,c=100,d="commit"){let e=Math.min(Math.max(c,1),1e3),[f,g]=await Promise.allSettled([n(a,b,e,d),o(a,b)]);if("rejected"===f.status)throw f.reason;if("rejected"===g.status)throw g.reason;let{history:h,totalCommits:i}=f.value;return{target:b,totalCommits:i,history:h,uncommitted:g.value}}async function q(a,b,c=100){let d=await p(a,b,c,"commit");return d.history.length>0?d:await p(a,b,c,"merge")}},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},20770:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/related/route",pathname:"/api/projectGraph/related",filename:"route",bundlePath:"app/api/projectGraph/related/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/related/route.ts",nextConfigOutput:"",userland:()=>c(98677),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/related/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},69622:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>o,fA:()=>n,fG:()=>p});var e=c(52598),f=c(75775),g=c(89705),h=c(33265),i=c(9197),j=c(4253),k=c(72891),l=c(770),m=a([k,h,i]);[k,h,i]=m.then?(await m)():m;let n="nodejs",o="force-dynamic",p=(0,k.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("qname")??"",k=b.get("filePath")??void 0,m=Math.min(Math.max(parseInt(b.get("topK")??"10",10)||10,1),30),n=(b.get("include")??"all").toLowerCase(),o=yield*g.ivC(()=>(0,j.nw)(c));if(!o.ok)return yield*g.fJG(new l.yI({field:"cwd",reason:o.reason}));if(d.trim().length<1)return yield*g.fJG(new l.yI({field:"qname",reason:"missing"}));let p=o.abs,q=yield*g.$mh({try:()=>(0,h.u$)(p),catch:a=>(0,f.xq)(a,"Related lookup failed")}),r=yield*(0,i.A)(q,{qname:d,filePath:k,topK:m,include:"structural"===n||"coedit"===n?n:"all"});return(0,e.I)(q,r)}));d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")},98677:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(69622),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=20770));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=5311,a.ids=[5311],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},9197:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(89705),e=c(770),f=c(92287),g=c(13278),h=c(30733);function i(a,b){return d.JkU(function*(){let c=Math.min(Math.max(b.topK??10,1),30),i=b.include??"all",j=(0,f._7)(a,b.qname,b.filePath);if(j.length>1)return{target:null,ambiguousIn:j.map(a=>a.path).sort(),results:[],coedit:[],degraded:a.truncated,degradedReason:a.truncated?"truncated":void 0};let k=j[0];if(!k)return{target:null,results:[],coedit:[],degraded:a.truncated,degradedReason:a.truncated?"truncated":void 0};let l=new Map,m=(a,c,d)=>{if("unknown"===a.kind||a.filePath===k.path&&a.qualifiedName===b.qname)return;let e=(0,h.W)(a.filePath,a.qualifiedName),f=l.get(e);f||(f={...a,score:0,relations:[]},l.set(e,f)),f.score+=d,f.relations.push(c)};if("coedit"!==i){for(let{caller:c,callLines:d}of(0,f.Xn)(a,b.qname,k.path).callers)m(c,{type:"caller",callLines:d},.4);for(let{callee:c,callLines:d}of(0,f.Mv)(a,b.qname,k.path).callees)m(c,{type:"callee",callLines:d},.4)}let n=[],o=!1;if("structural"!==i){let b=yield*d.gPK(d.$mh({try:()=>(0,g.c)(a.cwd,k.path,100),catch:a=>new e.uV({message:"Coedit lookup failed",cause:a})}));if("Left"===b._tag)o=!0;else{let{history:c,totalCommits:d}=b.right;for(let a of c.slice(0,30))n.push({...a,totalCommits:d});if(d>0)for(let b of c.slice(0,8)){let c=b.cooccurrence/d;if(c<.2)continue;let e=a.files.get(b.filePath),f=e?.flatSymbols.find(a=>"unknown"!==a.kind);f&&m(f,{type:"frequent-coedit",cooccurrence:b.cooccurrence,totalCommits:d},.3*c)}}}let p=[...l.values()].sort((a,b)=>b.score-a.score||a.filePath.localeCompare(b.filePath)||a.qualifiedName.localeCompare(b.qualifiedName)||a.startLine-b.startLine).slice(0,c),q=a.truncated?"truncated":o?"coedit-unavailable":void 0;return{target:{filePath:k.path,qualifiedName:b.qname},results:p,coedit:n,degraded:void 0!==q,degradedReason:q}})}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},13278:(a,b,c)=>{c.d(b,{c:()=>q,j:()=>p});var d=c(31421),e=c(57975),f=c(89705),g=c(69181),h=c(770);let i=(0,e.promisify)(d.execFile);async function j(a,b,c,d=!1){let e=f.$mh({try:()=>i("git",b,{cwd:a,maxBuffer:c}).then(a=>a.stdout),catch:a=>new h.uV({message:"Co-edit Git command failed",cause:a})}),k=await f.pR5(f.gPK(e.pipe(f.h9N(b=>d?f.$mh({try:()=>i("git",["rev-parse","--verify","--quiet","HEAD"],{cwd:a}),catch:a=>a}).pipe(f.tvg({onSuccess:()=>f.fJG(b),onFailure:a=>1===a.code?f.PyW(""):f.fJG(b)})):f.fJG(b)))));if(g.OC(k))throw k.left;return k.right}let k="---SEP---",l=`--pretty=format:${k}%H|%cI`;async function m(a,b,c,d){if("merge"===d)return j(a,["log","-n",String(c),"--merges","--first-parent","--full-diff","--name-only",l,"--",b],0x3200000,!0);let e=(await j(a,["log","-n",String(c),"--follow","--format=%H","--",b],0x3200000,!0)).split("\n").map(a=>a.trim()).filter(Boolean),f="";for(let b=0;b<e.length;b+=100)f+=await j(a,["log","--no-walk=unsorted","--name-only",l,...e.slice(b,b+100)],0x3200000),f+="\n";return f}async function n(a,b,c,d="commit"){let e=await m(a,b,c,d),f=[];for(let a of e.split(k).slice(1)){let b=a.split("\n"),c=b[0],d=c.indexOf("|");if(d<0)continue;let e=c.slice(0,d),g=c.slice(d+1),h=b.slice(1).map(a=>a.trim()).filter(Boolean);e&&f.push({hash:e,date:g,files:h})}let g=new Map;for(let a of f)if(0!==a.files.length&&!(a.files.length>30))for(let c of a.files){if(c===b)continue;let d=g.get(c);d?(d.cooccurrence+=1,a.date>d.lastCoEdit&&(d.lastCoEdit=a.date)):g.set(c,{filePath:c,cooccurrence:1,lastCoEdit:a.date,probability:0})}let h=f.length;for(let a of g.values())a.probability=h>0?a.cooccurrence/h:0;return{history:Array.from(g.values()).sort((a,b)=>b.cooccurrence-a.cooccurrence||b.lastCoEdit.localeCompare(a.lastCoEdit)||a.filePath.localeCompare(b.filePath)),totalCommits:h}}async function o(a,b){let c=await j(a,["-c","core.quotePath=false","status","--porcelain"],0xa00000),d=[];for(let a of c.split("\n")){if(a.length<4)continue;let b=a[0],c=a[1];if("?"===b&&"?"===c)continue;let e=a.slice(3).trim(),f=e.indexOf(" -> ");f>=0&&(e=e.slice(f+4).trim()),e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1)),d.push(e)}return d.includes(b)?d.filter(a=>a!==b).sort((a,b)=>a.localeCompare(b)):[]}async function p(a,b,c=100,d="commit"){let e=Math.min(Math.max(c,1),1e3),[f,g]=await Promise.allSettled([n(a,b,e,d),o(a,b)]);if("rejected"===f.status)throw f.reason;if("rejected"===g.status)throw g.reason;let{history:h,totalCommits:i}=f.value;return{target:b,totalCommits:i,history:h,uncommitted:g.value}}async function q(a,b,c=100){let d=await p(a,b,c,"commit");return d.history.length>0?d:await p(a,b,c,"merge")}},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},69622:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>o,fA:()=>n,fG:()=>p});var e=c(52598),f=c(75775),g=c(89705),h=c(33265),i=c(9197),j=c(4253),k=c(72891),l=c(770),m=a([k,h]);[k,h]=m.then?(await m)():m;let n="nodejs",o="force-dynamic",p=(0,k.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("qname")??"",k=b.get("filePath")??void 0,m=Math.min(Math.max(parseInt(b.get("topK")??"10",10)||10,1),30),n=(b.get("include")??"all").toLowerCase(),o=yield*g.ivC(()=>(0,j.nw)(c));if(!o.ok)return yield*g.fJG(new l.yI({field:"cwd",reason:o.reason}));if(d.trim().length<1)return yield*g.fJG(new l.yI({field:"qname",reason:"missing"}));let p=o.abs,q=yield*g.$mh({try:()=>(0,h.u$)(p),catch:a=>(0,f.xq)(a,"Related lookup failed")}),r=yield*(0,i.A)(q,{qname:d,filePath:k,topK:m,include:"structural"===n||"coedit"===n?n:"all"});return(0,e.I)(q,r)}));d()}catch(a){d(a)}})},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},73984:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/related/route",pathname:"/api/projectGraph/related",filename:"route",bundlePath:"app/api/projectGraph/related/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/related/route.ts",nextConfigOutput:"",userland:()=>c(98677),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/related/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},94735:a=>{a.exports=require("events")},98677:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(69622),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=73984));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=2578,a.ids=[2578],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},20055:(a,b,c)=>{c.d(b,{e:()=>g});var d=c(76760),e=c.n(d),f=c(770);function g(a,b){let c=e().posix.normalize(a.replaceAll("\\","/"));if(c.includes("\0")||e().posix.isAbsolute(c)||/^[a-z]:/i.test(c)||".."===c||c.startsWith("../"))throw new f.yI({field:b,reason:"Must be a project-relative path within cwd"});return"."===c?"":c.replace(/\/$/,"")}},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30989:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>o,fA:()=>n,fG:()=>p});var e=c(52598),f=c(75775),g=c(89705),h=c(33265),i=c(4253),j=c(72891),k=c(770),l=c(20055),m=a([j,h]);[j,h]=m.then?(await m)():m;let n="nodejs",o="force-dynamic",p=(0,j.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("q")??"",m=Math.min(Math.max(parseInt(b.get("limit")??"50",10)||50,1),500),n=function(a){if(!a)return!1;let b=a.toLowerCase();return"true"===b||"1"===b||"yes"===b}(b.get("includeLiterals")),o=yield*g.SvU({try:()=>{let a=(0,l.e)(b.get("path")??".","path"),c=b.get("excludeTests")??"false";if(!["true","false","1","0"].includes(c))throw new k.yI({field:"excludeTests",reason:"Expected true, false, 1 or 0"});return{directory:a,excludeTests:"true"===c||"1"===c}},catch:a=>(0,f.xq)(a,"Invalid search filters")}),p=yield*g.ivC(()=>(0,i.nw)(c));if(!p.ok)return yield*g.fJG(new k.yI({field:"cwd",reason:p.reason}));let q=p.abs;return d.trim().length<1?(0,j.ok)(n?{files:[],symbols:[],literals:[]}:{files:[],symbols:[]}):yield*g.$mh({try:async()=>{let a=await (0,h.u$)(q);return(0,e.I)(a,(0,h.bQ)(a,d,m,{includeLiterals:n,...o}))},catch:a=>(0,f.xq)(a,"Search failed")})}));d()}catch(a){d(a)}})},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77438:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/search/route",pathname:"/api/projectGraph/search",filename:"route",bundlePath:"app/api/projectGraph/search/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/search/route.ts",nextConfigOutput:"",userland:()=>c(92316),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/search/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},92316:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(30989),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=77438));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=2578,a.ids=[2578],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1932:a=>{a.exports=require("url")},4573:a=>{a.exports=require("node:buffer")},4984:a=>{a.exports=require("readline")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},12629:a=>{a.exports=import("web-tree-sitter")},14985:a=>{a.exports=require("dns")},19771:a=>{a.exports=require("process")},19879:a=>{a.exports=import("@anthropic-ai/claude-agent-sdk")},20055:(a,b,c)=>{c.d(b,{e:()=>g});var d=c(76760),e=c.n(d),f=c(770);function g(a,b){let c=e().posix.normalize(a.replaceAll("\\","/"));if(c.includes("\0")||e().posix.isAbsolute(c)||/^[a-z]:/i.test(c)||".."===c||c.startsWith("../"))throw new f.yI({field:b,reason:"Must be a project-relative path within cwd"});return"."===c?"":c.replace(/\/$/,"")}},20684:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/projectGraph/search/route",pathname:"/api/projectGraph/search",filename:"route",bundlePath:"app/api/projectGraph/search/route"},distDir:".next-prod",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/cockpit/cockpit/src/app/api/projectGraph/search/route.ts",nextConfigOutput:"",userland:()=>c(92316),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/projectGraph/search/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},21820:a=>{a.exports=require("os")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30989:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{OR:()=>q,fA:()=>p,fG:()=>r});var e=c(52598),f=c(75775),g=c(89705),h=c(92287),i=c(33265),j=c(4253),k=c(72891),l=c(770),m=c(20055),n=c(49822),o=a([k,i]);[k,i]=o.then?(await o)():o;let p="nodejs",q="force-dynamic",r=(0,k.RL)(a=>g.JkU(function*(){let b=new URL(a.url).searchParams,c=b.get("cwd"),d=b.get("q")??"",o=Math.min(Math.max(parseInt(b.get("limit")??"50",10)||50,1),500),p=yield*g.SvU({try:()=>({directory:(0,m.e)(b.get("path")??".","path"),tests:(0,n.uG)(b),includeLiterals:(0,n.H9)(b,"includeLiterals",!1)}),catch:a=>(0,f.xq)(a,"Invalid search filters")}),q=yield*g.ivC(()=>(0,j.nw)(c));if(!q.ok)return yield*g.fJG(new l.yI({field:"cwd",reason:q.reason}));let r=q.abs,{includeLiterals:s}=p;return d.trim().length<1?(0,k.ok)(s?{files:[],symbols:[],literals:[],filtered:{tests:0}}:{files:[],symbols:[],filtered:{tests:0}}):yield*g.$mh({try:async()=>{let a=await (0,i.u$)(r),b=(0,n.Rn)(p.tests),c=(0,h.bQ)(a,d,o,{includeLiterals:s,directory:p.directory,tests:b});return(0,e.I)(a,{...c,filtered:b.filtered()})},catch:a=>(0,f.xq)(a,"Search failed")})}));d()}catch(a){d(a)}})},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},34631:a=>{a.exports=require("tls")},41204:a=>{a.exports=require("string_decoder")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},49822:(a,b,c)=>{c.d(b,{H9:()=>k,Rn:()=>q,X8:()=>p,fJ:()=>m,hy:()=>o,tJ:()=>r,tU:()=>j,uG:()=>n});var d=c(76760),e=c.n(d),f=c(770),g=c(20055),h=c(53809);let i={excludeTests:!0,explainTests:!1,test:[],notTest:[]};function j(a,b,c){if(void 0===a)return c;if(!0===a||1===a||"true"===a||"1"===a)return!0;if(!1===a||0===a||"false"===a||"0"===a)return!1;throw new f.yI({field:b,reason:"Expected true, false, 1 or 0"})}function k(a,b,c){return j(a.get(b)??void 0,b,c)}function l(a,b){return a.map(a=>{if("string"!=typeof a||!a||a.startsWith("!"))throw new f.yI({field:b,reason:"Expected a non-empty positive project-relative glob"});return(0,g.e)(a,b)})}function m(a){return{test:l(a.getAll("test"),"test"),notTest:l(a.getAll("notTest"),"notTest")}}function n(a){return{excludeTests:k(a,"excludeTests",!0),explainTests:k(a,"explainTests",!1),...m(a)}}function o(a){let b=b=>{let c=a[b];if(void 0===c)return[];if(!Array.isArray(c))throw new f.yI({field:b,reason:"Expected an array of globs"});return l(c,b)};return{test:b("test"),notTest:b("notTest")}}function p(a,b){if(b.notTest.some(b=>e().posix.matchesGlob(a,b)))return null;let c=b.test.find(b=>e().posix.matchesGlob(a,b));return c?`test ${c}`:(0,h.r)(a)}function q(a=i){let b=new Map;return{isTest:b=>null!==p(b,a),skip(c){if(!a.excludeTests)return!1;if(b.has(c))return!0;let d=p(c,a);return null!==d&&b.set(c,d),null!==d},filtered(){let c={tests:b.size};return a.explainTests&&(c.testFiles=[...b].map(([a,b])=>({filePath:a,rule:b})).sort((a,b)=>a.filePath.localeCompare(b.filePath))),c}}}function r(a){return a.tests?`${a.tests} test file${1===a.tests?"":"s"} left out (excludeTests=false keeps them, explainTests=true lists them, notTest=<glob> reclassifies).`:null}},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},52598:(a,b,c)=>{function d(a,b){return b.headers.set("X-Code-Index-Revision",String(a.revision??0)),b.headers.set("X-Code-Index-Incomplete",a.truncated?"1":"0"),b}function e(a,b){return d(a,new Response(JSON.stringify(b),{headers:{"content-type":"application/json"}}))}c.d(b,{F:()=>d,I:()=>e})},53053:a=>{a.exports=require("node:diagnostics_channel")},53809:(a,b,c)=>{c.d(b,{h:()=>h,r:()=>g});let d=/(^|\/)(__tests__|tests?)\//i,e=/^((?:.*?\/)?app\/)(?:[^/]+\/)*(?:route|page|layout|template|loading|error|global-error|not-found|default)\.[cm]?[jt]sx?$/i,f=[[/\.(test|spec|e2e)\.[^/]+$/i,"name *.test|spec|e2e.*"],[/(^|\/)test_[^/]+\.pyi?$/i,"name test_*.py"],[/[^/]+_test\.go$/i,"name *_test.go"]];function g(a){let b,c;return((c=((b=a.match(e))&&!/(^|\/)__tests__\//i.test(a)?b[1]:a).match(d))?`directory ${c[2]}/`:null)??f.find(([b])=>b.test(a))?.[1]??null}function h(a){return null!==g(a)}},55511:a=>{a.exports=require("crypto")},57975:a=>{a.exports=require("node:util")},58500:a=>{a.exports=require("node:timers/promises")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64939:a=>{a.exports=import("pg")},66136:a=>{a.exports=require("timers")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},74075:a=>{a.exports=require("zlib")},75342:a=>{a.exports=require("@vscode/ripgrep")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},78877:a=>{a.exports=require("node:v8")},79428:a=>{a.exports=require("buffer")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},83997:a=>{a.exports=require("tty")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},91645:a=>{a.exports=require("net")},92316:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>f.fG,dynamic:()=>f.OR,runtime:()=>f.fA});var e=c(64949),f=c(30989),g=a([e,f]);[e,f]=g.then?(await g)():g,(0,e.g)(),d()}catch(a){d(a)}})},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,9705,2679,7347,6495,9830,2493,4949],()=>b(b.s=20684));module.exports=c})();
|