@qt4798/pi-web 0.9.18-beta.1 → 0.9.18
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/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +14 -7
- package/.next/build-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +2 -2
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +44 -0
- package/.next/server/app/_global-error/page.js +2 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +2 -2
- package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/running/events/route.js +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/auth/all-providers/route.js +1 -1
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/combined/route.js +1 -1
- package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
- package/.next/server/app/api/auth/providers/route.js +1 -1
- package/.next/server/app/api/backup/export/route.js +1 -1
- package/.next/server/app/api/backup/import/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/validate/route.js +1 -1
- package/.next/server/app/api/deepseek/balance/route.js +1 -0
- package/.next/server/app/api/deepseek/balance/route.js.nft.json +1 -0
- package/.next/server/app/api/deepseek/balance/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/default-cwd/route.js +1 -1
- package/.next/server/app/api/events/route.js +2 -2
- package/.next/server/app/api/features/route.js +1 -1
- package/.next/server/app/api/file-index/route.js +1 -1
- package/.next/server/app/api/files/[...path]/route.js +1 -1
- package/.next/server/app/api/git/diff/route.js +1 -1
- package/.next/server/app/api/git/push/route.js +1 -1
- package/.next/server/app/api/git/stash/route.js +1 -1
- package/.next/server/app/api/git/status/route.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/import/discover/route.js +1 -1
- package/.next/server/app/api/import/execute/route.js +1 -1
- package/.next/server/app/api/import/status/route.js +1 -1
- package/.next/server/app/api/logs/route.js +1 -1
- package/.next/server/app/api/mcp/route.js +2 -0
- package/.next/server/app/api/mcp/route.js.nft.json +1 -0
- package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models/route.js +1 -1
- package/.next/server/app/api/models-config/builtin/route.js +1 -1
- package/.next/server/app/api/models-config/builtin/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/catalog/route.js +1 -1
- package/.next/server/app/api/models-config/discover/route.js +1 -1
- package/.next/server/app/api/models-config/route.js +1 -1
- package/.next/server/app/api/models-config/route.js.nft.json +1 -1
- package/.next/server/app/api/models-config/test/route.js +1 -1
- package/.next/server/app/api/modes/route.js +1 -1
- package/.next/server/app/api/opencode-zen/external/key/route.js +1 -0
- package/.next/server/app/api/opencode-zen/external/key/route.js.nft.json +1 -0
- package/.next/server/app/api/opencode-zen/external/key/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/opencode-zen/external/test/route.js +1 -0
- package/.next/server/app/api/opencode-zen/external/test/route.js.nft.json +1 -0
- package/.next/server/app/api/opencode-zen/external/test/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/opencode-zen/import/route.js +1 -1
- package/.next/server/app/api/opencode-zen/key/route.js +1 -1
- package/.next/server/app/api/opencode-zen/route.js +1 -1
- package/.next/server/app/api/opencode-zen/test/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/proxy/route.js +1 -1
- package/.next/server/app/api/proxy/test/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/queue-recovery/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/settings/title-model/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/install/route.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/snippets/[id]/route.js +1 -0
- package/.next/server/app/api/snippets/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/snippets/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/snippets/route.js +1 -0
- package/.next/server/app/api/snippets/route.js.nft.json +1 -0
- package/.next/server/app/api/snippets/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/subagents/route.js +2 -0
- package/.next/server/app/api/subagents/route.js.nft.json +1 -0
- package/.next/server/app/api/subagents/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/[action]/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/changed-files/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/diff/route.js +2 -2
- package/.next/server/app/api/tasks/[id]/events/route.js +1 -1
- package/.next/server/app/api/tasks/[id]/route.js +1 -1
- package/.next/server/app/api/tasks/batch/route.js +1 -1
- package/.next/server/app/api/tasks/events/route.js +2 -2
- package/.next/server/app/api/tasks/route.js +1 -1
- package/.next/server/app/api/tasks/settings/route.js +1 -1
- package/.next/server/app/api/tasks/templates/route.js +1 -1
- package/.next/server/app/api/themes/[name]/route.js +1 -1
- package/.next/server/app/api/themes/route.js +1 -1
- package/.next/server/app/api/usage/route.js +1 -1
- package/.next/server/app/api/vision-config/route.js +2 -2
- package/.next/server/app/api/worktrees/route.js +1 -1
- package/.next/server/app/icon.ico/route.js +1 -1
- package/.next/server/app/icon.png/route.js +1 -1
- package/.next/server/app/icon.svg/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +4 -4
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/page.js +17 -14
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +14 -7
- package/.next/server/chunks/1213.js +1 -1
- package/.next/server/chunks/1499.js +1 -1
- package/.next/server/chunks/2303.js +1 -1
- package/.next/server/chunks/2498.js +1 -0
- package/.next/server/chunks/4253.js +2 -2
- package/.next/server/chunks/440.js +1 -1
- package/.next/server/chunks/6429.js +1 -1
- package/.next/server/chunks/7915.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/middleware.js +3 -3
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/{3308.4b28a1cf1ba95ccb.js → 3308.d45be6730587846b.js} +1 -1
- package/.next/static/chunks/{7370-bb8f0d070d8d0508.js → 9103-7c410d401717ec38.js} +1 -1
- package/.next/static/chunks/99.280e10a836dfdb17.js +24 -0
- package/.next/static/chunks/app/_global-error/page-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/agent/running/events/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/auth/combined/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/backup/export/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/backup/import/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/deepseek/balance/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/events/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/features/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/git/push/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/git/stash/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/home/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/import/discover/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/import/execute/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/import/status/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/logs/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/models/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/models-config/builtin/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/modes/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/opencode-zen/external/key/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/opencode-zen/external/test/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/opencode-zen/import/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/opencode-zen/key/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/opencode-zen/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/opencode-zen/test/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/proxy/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/proxy/test/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/settings/title-model/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/skills/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/snippets/[id]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/snippets/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/subagents/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/events/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/batch/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/events/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/settings/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/tasks/templates/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/themes/[name]/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/themes/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/usage/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/vision-config/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/app/page-e338f2229748dfe6.js +53 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6bdd527b5ef202bf.js +1 -0
- package/.next/static/chunks/webpack-06a1a811cd141d40.js +1 -0
- package/.next/static/css/dda15933a7f70fbf.css +1 -0
- package/.next/static/dy7f924eC9cpK9w3AxudQ/_buildManifest.js +1 -0
- package/.next/trace +9 -10
- package/.next/trace-build +1 -1
- package/.next/types/app/api/deepseek/balance/route.ts +351 -0
- package/.next/types/app/api/mcp/route.ts +351 -0
- package/.next/types/app/api/opencode-zen/external/key/route.ts +351 -0
- package/.next/types/app/api/opencode-zen/external/test/route.ts +351 -0
- package/.next/types/app/api/snippets/[id]/route.ts +351 -0
- package/.next/types/app/api/snippets/route.ts +351 -0
- package/.next/types/app/api/subagents/route.ts +351 -0
- package/.next/types/routes.d.ts +8 -1
- package/.next/types/validator.ts +63 -0
- package/bin/pi-web-options.js +8 -2
- package/bin/pi-web.js +0 -0
- package/package.json +3 -3
- package/.next/static/chunks/2480.cf27ca02e5b19761.js +0 -24
- package/.next/static/chunks/app/_global-error/page-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/agent/running/events/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/auth/combined/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/backup/export/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/backup/import/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/events/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/features/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/git/push/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/git/stash/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/home/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/import/discover/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/import/execute/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/import/status/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/logs/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/models/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/models-config/builtin/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/modes/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/opencode-zen/import/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/opencode-zen/key/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/opencode-zen/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/opencode-zen/test/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/proxy/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/proxy/test/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/settings/title-model/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/skills/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/events/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/batch/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/events/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/settings/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/tasks/templates/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/themes/[name]/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/themes/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/usage/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/vision-config/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/app/page-8bcd937bdba8d19c.js +0 -50
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-05965789d7c1c4dc.js +0 -1
- package/.next/static/chunks/webpack-d878f0bb0b95ae97.js +0 -1
- package/.next/static/css/0a86c1753fca4340.css +0 -1
- package/.next/static/gaIw_JxiSjTlS_2wAVEa6/_buildManifest.js +0 -1
- /package/.next/static/{gaIw_JxiSjTlS_2wAVEa6 → dy7f924eC9cpK9w3AxudQ}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=8658,a.ids=[8658],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12773:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>m,dynamic:()=>n});var e=c(23211),f=c(29021),g=c(21820),h=c(33873),i=c(19821),j=c(75430),k=a([i,j]);[i,j]=k.then?(await k)():k;let n="force-dynamic";function l(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}async function m(a){let b;try{let c,d=await a.json(),k="string"==typeof d.providerName?d.providerName.trim():"";if(!k)return e.NextResponse.json({ok:!1,error:"providerName is required"},{status:400});if(!l(d.provider))return e.NextResponse.json({ok:!1,error:"provider is required"},{status:400});if(!l(d.model))return e.NextResponse.json({ok:!1,error:"model is required"},{status:400});let m="string"==typeof d.model.id?d.model.id.trim():"";if(!m)return e.NextResponse.json({ok:!1,error:"Model ID is required"},{status:400});b=(0,f.mkdtempSync)((0,h.join)((0,g.tmpdir)(),"pi-web-model-test-"));let n=(0,h.join)(b,"models.json");(0,f.writeFileSync)(n,JSON.stringify({providers:{[k]:{...d.provider,models:[{...d.model,id:m}]}}},null,2),"utf8");let o=await j.ModelRuntime.create({modelsPath:n}),p=o.getError();if(p)return e.NextResponse.json({ok:!1,error:p});let q=o.getModel(k,m);if(!q)return e.NextResponse.json({ok:!1,error:`Model not found: ${k}/${m}`});let r=await o.getAuth(q);if(!r?.auth.apiKey)return e.NextResponse.json({ok:!1,error:`No API key found for "${k}"`});let s=new AbortController,t=setTimeout(()=>s.abort(),2e4),u=Date.now();try{let a=await (0,i.completeSimple)(q,{messages:[{role:"user",content:"Reply with OK only.",timestamp:Date.now()}]},{apiKey:r.auth.apiKey,headers:r.auth.headers,maxTokens:16,timeoutMs:2e4,maxRetries:0,cacheRetention:"none",signal:s.signal,onResponse:a=>{c=a.status}}),b=Date.now()-u;if("error"===a.stopReason||"aborted"===a.stopReason)return e.NextResponse.json({ok:!1,error:a.errorMessage??(s.signal.aborted?"Test timed out":"Model returned an error"),latencyMs:b,status:c});return e.NextResponse.json({ok:!0,latencyMs:b,status:c,responseText:a.content.filter(a=>"text"===a.type).map(a=>a.text).join("").slice(0,300)})}finally{clearTimeout(t)}}catch(a){return e.NextResponse.json({ok:!1,error:a instanceof Error?a.message:String(a)},{status:500})}finally{b&&(0,f.rmSync)(b,{recursive:!0,force:!0})}}d()}catch(a){d(a)}})},19821:a=>{"use strict";a.exports=import("@earendil-works/pi-ai/compat")},21820:a=>{"use strict";a.exports=require("os")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},
|
|
1
|
+
(()=>{var a={};a.id=8658,a.ids=[8658],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12773:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>m,dynamic:()=>n});var e=c(23211),f=c(29021),g=c(21820),h=c(33873),i=c(19821),j=c(75430),k=a([i,j]);[i,j]=k.then?(await k)():k;let n="force-dynamic";function l(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}async function m(a){let b;try{let c,d=await a.json(),k="string"==typeof d.providerName?d.providerName.trim():"";if(!k)return e.NextResponse.json({ok:!1,error:"providerName is required"},{status:400});if(!l(d.provider))return e.NextResponse.json({ok:!1,error:"provider is required"},{status:400});if(!l(d.model))return e.NextResponse.json({ok:!1,error:"model is required"},{status:400});let m="string"==typeof d.model.id?d.model.id.trim():"";if(!m)return e.NextResponse.json({ok:!1,error:"Model ID is required"},{status:400});b=(0,f.mkdtempSync)((0,h.join)((0,g.tmpdir)(),"pi-web-model-test-"));let n=(0,h.join)(b,"models.json");(0,f.writeFileSync)(n,JSON.stringify({providers:{[k]:{...d.provider,models:[{...d.model,id:m}]}}},null,2),"utf8");let o=await j.ModelRuntime.create({modelsPath:n}),p=o.getError();if(p)return e.NextResponse.json({ok:!1,error:p});let q=o.getModel(k,m);if(!q)return e.NextResponse.json({ok:!1,error:`Model not found: ${k}/${m}`});let r=await o.getAuth(q);if(!r?.auth.apiKey)return e.NextResponse.json({ok:!1,error:`No API key found for "${k}"`});let s=new AbortController,t=setTimeout(()=>s.abort(),2e4),u=Date.now();try{let a=await (0,i.completeSimple)(q,{messages:[{role:"user",content:"Reply with OK only.",timestamp:Date.now()}]},{apiKey:r.auth.apiKey,headers:r.auth.headers,maxTokens:16,timeoutMs:2e4,maxRetries:0,cacheRetention:"none",signal:s.signal,onResponse:a=>{c=a.status}}),b=Date.now()-u;if("error"===a.stopReason||"aborted"===a.stopReason)return e.NextResponse.json({ok:!1,error:a.errorMessage??(s.signal.aborted?"Test timed out":"Model returned an error"),latencyMs:b,status:c});return e.NextResponse.json({ok:!0,latencyMs:b,status:c,responseText:a.content.filter(a=>"text"===a.type).map(a=>a.text).join("").slice(0,300)})}finally{clearTimeout(t)}}catch(a){return e.NextResponse.json({ok:!1,error:a instanceof Error?a.message:String(a)},{status:500})}finally{b&&(0,f.rmSync)(b,{recursive:!0,force:!0})}}d()}catch(a){d(a)}})},19821:a=>{"use strict";a.exports=import("@earendil-works/pi-ai/compat")},21820:a=>{"use strict";a.exports=require("os")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},59180:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(12773),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/models-config/test/route",pathname:"/api/models-config/test",filename:"route",bundlePath:"app/api/models-config/test/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/models-config/test/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models-config/test/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!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(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813],()=>b(b.s=59180));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=9502,a.ids=[9502],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8102:(a,b,c)=>{"use strict";c.d(b,{$:()=>g});var d=c(55511),e=c(29021),f=c(33873);function g(a,b){let c=(0,f.dirname)(a),g=(0,f.join)(c,`.${(0,f.basename)(a)}-${(0,d.randomUUID)()}.tmp`),h=!1;try{(0,e.writeFileSync)(g,b,{encoding:"utf8",flag:"wx",mode:384,flush:!0}),(0,e.renameSync)(g,a)}catch(a){throw h=!0,a}finally{try{(0,e.unlinkSync)(g)}catch(a){if("ENOENT"!==a.code&&!h)throw a}}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{"use strict";a.exports=require("assert")},22241:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,PUT:()=>i,dynamic:()=>j});var e=c(23211),f=c(64735),g=a([f]);f=(g.then?(await g)():g)[0];let j="force-dynamic";async function h(a){let b=new URL(a.url).searchParams.get("session");return e.NextResponse.json((0,f.lN)(b||null))}async function i(a){try{let b=new URL(a.url).searchParams.get("session"),c=await a.json(),d=(0,f.lN)(b||null),g=c.collaborationMode,h=c.tokenMode,i=c.toolApprovalMode,j=c.permissionRules,k={collaborationMode:"normal"===g||"plan"===g||"goal"===g?g:d.collaborationMode,tokenMode:"full"===h||"economy"===h||"delivery"===h?h:d.tokenMode,toolApprovalMode:"ask"===i||"auto"===i||"yolo"===i?i:d.toolApprovalMode,permissionRules:j&&"object"==typeof j&&!Array.isArray(j)?{allow:Array.isArray(j.allow)?j.allow:d.permissionRules.allow,ask:Array.isArray(j.ask)?j.ask:d.permissionRules.ask,deny:Array.isArray(j.deny)?j.deny:d.permissionRules.deny}:d.permissionRules};return await (0,f.S3)(k,b||null),e.NextResponse.json({success:!0,modes:k})}catch(b){let a=b instanceof Error?b.message:String(b);return e.NextResponse.json({error:a},{status:500})}}d()}catch(a){d(a)}})},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},
|
|
1
|
+
(()=>{var a={};a.id=9502,a.ids=[9502],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8102:(a,b,c)=>{"use strict";c.d(b,{$:()=>g});var d=c(55511),e=c(29021),f=c(33873);function g(a,b){let c=(0,f.dirname)(a),g=(0,f.join)(c,`.${(0,f.basename)(a)}-${(0,d.randomUUID)()}.tmp`),h=!1;try{(0,e.writeFileSync)(g,b,{encoding:"utf8",flag:"wx",mode:384,flush:!0}),(0,e.renameSync)(g,a)}catch(a){throw h=!0,a}finally{try{(0,e.unlinkSync)(g)}catch(a){if("ENOENT"!==a.code&&!h)throw a}}}},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{"use strict";a.exports=require("assert")},22241:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,PUT:()=>i,dynamic:()=>j});var e=c(23211),f=c(64735),g=a([f]);f=(g.then?(await g)():g)[0];let j="force-dynamic";async function h(a){let b=new URL(a.url).searchParams.get("session");return e.NextResponse.json((0,f.lN)(b||null))}async function i(a){try{let b=new URL(a.url).searchParams.get("session"),c=await a.json(),d=(0,f.lN)(b||null),g=c.collaborationMode,h=c.tokenMode,i=c.toolApprovalMode,j=c.permissionRules,k={collaborationMode:"normal"===g||"plan"===g||"goal"===g?g:d.collaborationMode,tokenMode:"full"===h||"economy"===h||"delivery"===h?h:d.tokenMode,toolApprovalMode:"ask"===i||"auto"===i||"yolo"===i?i:d.toolApprovalMode,permissionRules:j&&"object"==typeof j&&!Array.isArray(j)?{allow:Array.isArray(j.allow)?j.allow:d.permissionRules.allow,ask:Array.isArray(j.ask)?j.ask:d.permissionRules.ask,deny:Array.isArray(j.deny)?j.deny:d.permissionRules.deny}:d.permissionRules};return await (0,f.S3)(k,b||null),e.NextResponse.json({success:!0,modes:k})}catch(b){let a=b instanceof Error?b.message:String(b);return e.NextResponse.json({error:a},{status:500})}}d()}catch(a){d(a)}})},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47776:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(22241),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/modes/route",pathname:"/api/modes",filename:"route",bundlePath:"app/api/modes/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/modes/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/modes/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!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(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{"use strict";a.exports=require("node:fs")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{"use strict";a.exports=require("node:path")},78335:()=>{},81115:a=>{"use strict";a.exports=require("constants")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,974,4735],()=>b(b.s=47776));module.exports=c})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var a={};a.id=6377,a.ids=[6377],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},643:a=>{"use strict";a.exports=require("node:perf_hooks")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},4573:a=>{"use strict";a.exports=require("node:buffer")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16698:a=>{"use strict";a.exports=require("node:async_hooks")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32467:a=>{"use strict";a.exports=require("node:http2")},33873:a=>{"use strict";a.exports=require("path")},34589:a=>{"use strict";a.exports=require("node:assert")},37067:a=>{"use strict";a.exports=require("node:http")},37540:a=>{"use strict";a.exports=require("node:console")},37830:a=>{"use strict";a.exports=require("node:stream/web")},38522:a=>{"use strict";a.exports=require("node:zlib")},40610:a=>{"use strict";a.exports=require("node:dns")},41692:a=>{"use strict";a.exports=require("node:tls")},41792:a=>{"use strict";a.exports=require("node:querystring")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},51455:a=>{"use strict";a.exports=require("node:fs/promises")},53053:a=>{"use strict";a.exports=require("node:diagnostics_channel")},55511:a=>{"use strict";a.exports=require("crypto")},57075:a=>{"use strict";a.exports=require("node:stream")},57975:a=>{"use strict";a.exports=require("node:util")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66544:(a,b,c)=>{"use strict";c.d(b,{E2:()=>k,EN:()=>j});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(){return[process.env.PI_WEB_HOSTNAME,...process.env.PI_WEB_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function h(a){try{return new URL(a).origin}catch{return null}}let i=new Set(["POST","PUT","PATCH","DELETE"]);function j(a,b=g()){return!!function(a,b=g()){let c=a.headers.get("host"),h=c?f(c):null;return!!h&&(!!("localhost"===h||h.endsWith(".localhost")||(0,d.isIP)(h))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===h}))}(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||(a.headers.has("origin")||a.headers.has("sec-fetch-site")?function(a){let b,c;if("cross-site"===a.headers.get("sec-fetch-site"))return!1;let d=a.headers.get("origin");if(!d)return!0;let e=(b=new URL(a.url),(c=a.headers.get("host"))?h(`${b.protocol}//${c}`):null);return null!==e&&h(d)===e}(a):!i.has((a.method??"GET").toUpperCase())))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},66810:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(92860),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/opencode-zen/external/key/route",pathname:"/api/opencode-zen/external/key",filename:"route",bundlePath:"app/api/opencode-zen/external/key/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/opencode-zen/external/key/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/opencode-zen/external/key/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!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(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},73429:a=>{"use strict";a.exports=require("node:util/types")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},75919:a=>{"use strict";a.exports=require("node:worker_threads")},76760:a=>{"use strict";a.exports=require("node:path")},77030:a=>{"use strict";a.exports=require("node:net")},77598:a=>{"use strict";a.exports=require("node:crypto")},78335:()=>{},78474:a=>{"use strict";a.exports=require("node:events")},79868:a=>{"use strict";a.exports=require("node:sqlite")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87997:a=>{"use strict";a.exports=require("node:timers")},92860:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>i,dynamic:()=>j});var e=c(23211),f=c(62303),g=c(66544),h=a([f]);f=(h.then?(await h)():h)[0];let j="force-dynamic";async function i(a){if(!(0,g.EN)(a))return e.NextResponse.json({error:"Access denied"},{status:403});let b=(0,f.DW)().externalAccess.apiKey;return b?e.NextResponse.json({apiKey:b}):e.NextResponse.json({error:"尚未设置外部调用 API Key"},{status:404})}d()}catch(a){d(a)}})},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7774,2303],()=>b(b.s=66810));module.exports=c})();
|