@qt4798/pi-web 0.17.14 → 0.18.0
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 +21 -19
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +29 -1
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +26 -12
- 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/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- 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 +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- 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 +3 -3
- package/.next/server/app/api/agent/[id]/lease/route.js +1 -0
- package/.next/server/app/api/agent/[id]/lease/route.js.nft.json +1 -0
- package/.next/server/app/api/{deepseek/balance → agent/[id]/lease}/route_client-reference-manifest.js +1 -1
- 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 +2 -2
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/app-update/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/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 +3 -3
- package/.next/server/app/api/git/diff/route.js +2 -2
- 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 +2 -2
- 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/restart/route.js +1 -1
- package/.next/server/app/api/mcp/route.js +2 -2
- 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/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/test/route.js +1 -1
- package/.next/server/app/api/modes/route.js +1 -1
- package/.next/server/app/api/plugins/check/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/project-aliases/route.js +1 -1
- package/.next/server/app/api/project-state/route.js +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/projects/visibility/route.js +1 -1
- package/.next/server/app/api/provider-usage/query/route.js +1 -0
- package/.next/server/app/api/{deepseek/balance → provider-usage/query}/route.js.nft.json +1 -1
- package/.next/server/app/api/provider-usage/query/route_client-reference-manifest.js +1 -0
- 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]/details/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]/entries/[entryId]/tool-result-image/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/sessions/search/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 -1
- package/.next/server/app/api/snippets/route.js +1 -1
- package/.next/server/app/api/subagents/[id]/route.js +1 -1
- package/.next/server/app/api/subagents/profiles/route.js +1 -1
- package/.next/server/app/api/subagents/settings/route.js +1 -1
- 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 +1 -1
- 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/terminal/[id]/events/route.js +2 -2
- package/.next/server/app/api/terminal/[id]/route.js +1 -1
- package/.next/server/app/api/terminal/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/tools/extension-tools/route.js +1 -1
- package/.next/server/app/api/tools/settings/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/web-auth/route.js +1 -0
- package/.next/server/app/api/web-auth/route_client-reference-manifest.js +1 -0
- 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 +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page.js +3 -0
- package/.next/server/app/login/page.js.nft.json +1 -0
- package/.next/server/app/login/page_client-reference-manifest.js +1 -0
- package/.next/server/app/login.html +1 -0
- package/.next/server/app/login.meta +26 -0
- package/.next/server/app/login.rsc +23 -0
- package/.next/server/app/login.segments/_full.segment.rsc +23 -0
- package/.next/server/app/login.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +29 -0
- package/.next/server/app/page.js +13 -13
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +21 -19
- package/.next/server/chunks/1352.js +1 -0
- package/.next/server/chunks/4253.js +7 -7
- package/.next/server/chunks/5582.js +5 -5
- package/.next/server/chunks/6429.js +7 -7
- package/.next/server/chunks/7915.js +1 -1
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/instrumentation.js.nft.json +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/prefetch-hints.json +14 -0
- package/.next/static/SG1lpxg7rrh2GYecN7CkV/_buildManifest.js +1 -0
- package/.next/static/chunks/5772-ddd18c0d4b7715e5.js +3 -0
- package/.next/static/chunks/7650-4f948821e59fd720.js +1 -0
- package/.next/static/chunks/9247-7890abc5e443c0b9.js +1 -0
- package/.next/static/chunks/app/_global-error/page-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/lease/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/agent/running/events/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/auth/combined/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/backup/export/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/backup/import/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/events/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/features/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/git/push/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/git/stash/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/home/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/import/discover/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/import/execute/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/import/status/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/logs/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/mcp/restart/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/models/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/models-config/builtin/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/modes/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/plugins/check/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/project-aliases/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/project-state/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/projects/visibility/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/provider-usage/query/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/proxy/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/proxy/test/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/details/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/settings/title-model/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/skills/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/snippets/[id]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/snippets/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/events/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/batch/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/events/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/settings/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tasks/templates/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/themes/[name]/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/themes/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tools/extension-tools/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/tools/settings/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/usage/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/vision-config/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/web-auth/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/app/{layout-4d62e08c230b8ea9.js → layout-9aea218f73c7fe87.js} +1 -1
- package/.next/static/chunks/app/login/page-0e84371f9eaa744e.js +1 -0
- package/.next/static/chunks/app/page-afdc9bc1943a7acf.js +206 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-442ef8efc99801fc.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-442ef8efc99801fc.js +1 -0
- package/.next/static/css/452ea33c857da08e.css +1 -0
- package/.next/trace +10 -8
- package/.next/trace-build +1 -1
- package/.next/types/app/api/{deepseek/balance → agent/[id]/lease}/route.ts +3 -3
- package/.next/types/app/api/provider-usage/query/route.ts +353 -0
- package/.next/types/app/api/{pair → web-auth}/route.ts +3 -3
- package/.next/types/app/login/page.ts +89 -0
- package/.next/types/routes.d.ts +6 -4
- package/.next/types/validator.ts +36 -18
- package/package.json +1 -1
- package/.next/server/app/api/deepseek/balance/route.js +0 -1
- package/.next/server/app/api/pair/route.js +0 -2
- package/.next/server/app/api/pair/route_client-reference-manifest.js +0 -1
- package/.next/server/chunks/4154.js +0 -1
- package/.next/static/chunks/9660-8945dc0e772329fb.js +0 -1
- package/.next/static/chunks/app/_global-error/page-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/agent/running/events/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/auth/combined/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/backup/export/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/backup/import/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/deepseek/balance/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/events/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/features/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/git/push/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/git/stash/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/home/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/import/discover/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/import/execute/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/import/status/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/logs/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/mcp/restart/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/mcp/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/models/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/models-config/builtin/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/modes/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/pair/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/plugins/check/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/project-aliases/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/project-state/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/projects/visibility/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/proxy/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/proxy/test/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/details/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/sessions/search/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/settings/title-model/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/skills/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/snippets/[id]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/snippets/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/subagents/[id]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/subagents/profiles/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/subagents/settings/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/events/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/[id]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/batch/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/events/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/settings/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tasks/templates/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/themes/[name]/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/themes/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tools/extension-tools/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/tools/settings/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/usage/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/vision-config/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/app/page-8395b621a827f00d.js +0 -206
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1f18a3ac6ad460ce.js +0 -1
- package/.next/static/css/cec93cc3229def39.css +0 -1
- package/.next/static/fwxgxkq48MSClqkLjyFF9/_buildManifest.js +0 -1
- /package/.next/server/app/api/{pair → web-auth}/route.js.nft.json +0 -0
- /package/.next/static/{fwxgxkq48MSClqkLjyFF9 → SG1lpxg7rrh2GYecN7CkV}/_ssgManifest.js +0 -0
package/.next/trace-build
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"name":"run-webpack","duration":
|
|
1
|
+
[{"name":"run-webpack","duration":17130611,"timestamp":383014496749,"id":14,"parentId":1,"tags":{},"startTime":1789228258343,"traceId":"91ebc1c40ef0b6f8"},{"name":"run-typescript","duration":8156827,"timestamp":383031629256,"id":1204,"parentId":1,"tags":{},"startTime":1789228275475,"traceId":"91ebc1c40ef0b6f8"},{"name":"static-check","duration":1610656,"timestamp":383039794423,"id":1207,"parentId":1,"tags":{},"startTime":1789228283641,"traceId":"91ebc1c40ef0b6f8"},{"name":"static-generation","duration":2080932,"timestamp":383041508780,"id":1411,"parentId":1,"tags":{},"startTime":1789228285355,"traceId":"91ebc1c40ef0b6f8"},{"name":"collect-build-traces","duration":15904783,"timestamp":383041406371,"id":1408,"parentId":1,"tags":{},"startTime":1789228285253,"traceId":"91ebc1c40ef0b6f8"},{"name":"output-standalone","duration":1608776,"timestamp":383057313046,"id":1419,"parentId":1,"tags":{},"startTime":1789228301159,"traceId":"91ebc1c40ef0b6f8"},{"name":"telemetry-flush","duration":14,"timestamp":383058923629,"id":1422,"parentId":1,"tags":{},"startTime":1789228302770,"traceId":"91ebc1c40ef0b6f8"},{"name":"next-build","duration":44961555,"timestamp":383013962091,"id":1,"tags":{"buildMode":"default","version":"16.3.1","bundler":"webpack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1789228257808,"traceId":"91ebc1c40ef0b6f8"}]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/
|
|
2
|
-
import * as entry from '
|
|
1
|
+
// File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/agent/[id]/lease/route.ts
|
|
2
|
+
import * as entry from '../../../../../../../app/api/agent/[id]/lease/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
5
5
|
import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
6
|
|
|
7
|
-
type TEntry = typeof import('
|
|
7
|
+
type TEntry = typeof import('../../../../../../../app/api/agent/[id]/lease/route.js')
|
|
8
8
|
|
|
9
9
|
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
10
|
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
// File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/provider-usage/query/route.ts
|
|
2
|
+
import * as entry from '../../../../../../app/api/provider-usage/query/route.js'
|
|
3
|
+
import type { NextRequest } from 'next/server.js'
|
|
4
|
+
|
|
5
|
+
import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
+
|
|
7
|
+
type TEntry = typeof import('../../../../../../app/api/provider-usage/query/route.js')
|
|
8
|
+
|
|
9
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
11
|
+
: T
|
|
12
|
+
|
|
13
|
+
// Check that the entry is a valid entry
|
|
14
|
+
checkFields<Diff<{
|
|
15
|
+
GET?: Function
|
|
16
|
+
HEAD?: Function
|
|
17
|
+
OPTIONS?: Function
|
|
18
|
+
POST?: Function
|
|
19
|
+
PUT?: Function
|
|
20
|
+
DELETE?: Function
|
|
21
|
+
PATCH?: Function
|
|
22
|
+
config?: {}
|
|
23
|
+
generateStaticParams?: Function
|
|
24
|
+
instant?: InstantConfigForTypeCheckInternal
|
|
25
|
+
prefetch?: Prefetch
|
|
26
|
+
unstable_dynamicStaleTime?: number
|
|
27
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
28
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
29
|
+
dynamicParams?: boolean
|
|
30
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
31
|
+
/** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
|
|
32
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
33
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
34
|
+
maxDuration?: number
|
|
35
|
+
|
|
36
|
+
}, TEntry, ''>>()
|
|
37
|
+
|
|
38
|
+
type RouteContext = { params: Promise<SegmentParams> }
|
|
39
|
+
// Check the prop type of the entry function
|
|
40
|
+
if ('GET' in entry) {
|
|
41
|
+
checkFields<
|
|
42
|
+
Diff<
|
|
43
|
+
ParamCheck<Request | NextRequest>,
|
|
44
|
+
{
|
|
45
|
+
__tag__: 'GET'
|
|
46
|
+
__param_position__: 'first'
|
|
47
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
|
|
48
|
+
},
|
|
49
|
+
'GET'
|
|
50
|
+
>
|
|
51
|
+
>()
|
|
52
|
+
checkFields<
|
|
53
|
+
Diff<
|
|
54
|
+
ParamCheck<RouteContext>,
|
|
55
|
+
{
|
|
56
|
+
__tag__: 'GET'
|
|
57
|
+
__param_position__: 'second'
|
|
58
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
|
|
59
|
+
},
|
|
60
|
+
'GET'
|
|
61
|
+
>
|
|
62
|
+
>()
|
|
63
|
+
|
|
64
|
+
checkFields<
|
|
65
|
+
Diff<
|
|
66
|
+
{
|
|
67
|
+
__tag__: 'GET',
|
|
68
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
__tag__: 'GET',
|
|
72
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
|
|
73
|
+
},
|
|
74
|
+
'GET'
|
|
75
|
+
>
|
|
76
|
+
>()
|
|
77
|
+
}
|
|
78
|
+
// Check the prop type of the entry function
|
|
79
|
+
if ('HEAD' in entry) {
|
|
80
|
+
checkFields<
|
|
81
|
+
Diff<
|
|
82
|
+
ParamCheck<Request | NextRequest>,
|
|
83
|
+
{
|
|
84
|
+
__tag__: 'HEAD'
|
|
85
|
+
__param_position__: 'first'
|
|
86
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
|
|
87
|
+
},
|
|
88
|
+
'HEAD'
|
|
89
|
+
>
|
|
90
|
+
>()
|
|
91
|
+
checkFields<
|
|
92
|
+
Diff<
|
|
93
|
+
ParamCheck<RouteContext>,
|
|
94
|
+
{
|
|
95
|
+
__tag__: 'HEAD'
|
|
96
|
+
__param_position__: 'second'
|
|
97
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
|
|
98
|
+
},
|
|
99
|
+
'HEAD'
|
|
100
|
+
>
|
|
101
|
+
>()
|
|
102
|
+
|
|
103
|
+
checkFields<
|
|
104
|
+
Diff<
|
|
105
|
+
{
|
|
106
|
+
__tag__: 'HEAD',
|
|
107
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
__tag__: 'HEAD',
|
|
111
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
|
|
112
|
+
},
|
|
113
|
+
'HEAD'
|
|
114
|
+
>
|
|
115
|
+
>()
|
|
116
|
+
}
|
|
117
|
+
// Check the prop type of the entry function
|
|
118
|
+
if ('OPTIONS' in entry) {
|
|
119
|
+
checkFields<
|
|
120
|
+
Diff<
|
|
121
|
+
ParamCheck<Request | NextRequest>,
|
|
122
|
+
{
|
|
123
|
+
__tag__: 'OPTIONS'
|
|
124
|
+
__param_position__: 'first'
|
|
125
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
126
|
+
},
|
|
127
|
+
'OPTIONS'
|
|
128
|
+
>
|
|
129
|
+
>()
|
|
130
|
+
checkFields<
|
|
131
|
+
Diff<
|
|
132
|
+
ParamCheck<RouteContext>,
|
|
133
|
+
{
|
|
134
|
+
__tag__: 'OPTIONS'
|
|
135
|
+
__param_position__: 'second'
|
|
136
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
|
|
137
|
+
},
|
|
138
|
+
'OPTIONS'
|
|
139
|
+
>
|
|
140
|
+
>()
|
|
141
|
+
|
|
142
|
+
checkFields<
|
|
143
|
+
Diff<
|
|
144
|
+
{
|
|
145
|
+
__tag__: 'OPTIONS',
|
|
146
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
__tag__: 'OPTIONS',
|
|
150
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
|
|
151
|
+
},
|
|
152
|
+
'OPTIONS'
|
|
153
|
+
>
|
|
154
|
+
>()
|
|
155
|
+
}
|
|
156
|
+
// Check the prop type of the entry function
|
|
157
|
+
if ('POST' in entry) {
|
|
158
|
+
checkFields<
|
|
159
|
+
Diff<
|
|
160
|
+
ParamCheck<Request | NextRequest>,
|
|
161
|
+
{
|
|
162
|
+
__tag__: 'POST'
|
|
163
|
+
__param_position__: 'first'
|
|
164
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
|
|
165
|
+
},
|
|
166
|
+
'POST'
|
|
167
|
+
>
|
|
168
|
+
>()
|
|
169
|
+
checkFields<
|
|
170
|
+
Diff<
|
|
171
|
+
ParamCheck<RouteContext>,
|
|
172
|
+
{
|
|
173
|
+
__tag__: 'POST'
|
|
174
|
+
__param_position__: 'second'
|
|
175
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
|
|
176
|
+
},
|
|
177
|
+
'POST'
|
|
178
|
+
>
|
|
179
|
+
>()
|
|
180
|
+
|
|
181
|
+
checkFields<
|
|
182
|
+
Diff<
|
|
183
|
+
{
|
|
184
|
+
__tag__: 'POST',
|
|
185
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
__tag__: 'POST',
|
|
189
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
|
|
190
|
+
},
|
|
191
|
+
'POST'
|
|
192
|
+
>
|
|
193
|
+
>()
|
|
194
|
+
}
|
|
195
|
+
// Check the prop type of the entry function
|
|
196
|
+
if ('PUT' in entry) {
|
|
197
|
+
checkFields<
|
|
198
|
+
Diff<
|
|
199
|
+
ParamCheck<Request | NextRequest>,
|
|
200
|
+
{
|
|
201
|
+
__tag__: 'PUT'
|
|
202
|
+
__param_position__: 'first'
|
|
203
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
|
|
204
|
+
},
|
|
205
|
+
'PUT'
|
|
206
|
+
>
|
|
207
|
+
>()
|
|
208
|
+
checkFields<
|
|
209
|
+
Diff<
|
|
210
|
+
ParamCheck<RouteContext>,
|
|
211
|
+
{
|
|
212
|
+
__tag__: 'PUT'
|
|
213
|
+
__param_position__: 'second'
|
|
214
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
|
|
215
|
+
},
|
|
216
|
+
'PUT'
|
|
217
|
+
>
|
|
218
|
+
>()
|
|
219
|
+
|
|
220
|
+
checkFields<
|
|
221
|
+
Diff<
|
|
222
|
+
{
|
|
223
|
+
__tag__: 'PUT',
|
|
224
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
__tag__: 'PUT',
|
|
228
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
|
|
229
|
+
},
|
|
230
|
+
'PUT'
|
|
231
|
+
>
|
|
232
|
+
>()
|
|
233
|
+
}
|
|
234
|
+
// Check the prop type of the entry function
|
|
235
|
+
if ('DELETE' in entry) {
|
|
236
|
+
checkFields<
|
|
237
|
+
Diff<
|
|
238
|
+
ParamCheck<Request | NextRequest>,
|
|
239
|
+
{
|
|
240
|
+
__tag__: 'DELETE'
|
|
241
|
+
__param_position__: 'first'
|
|
242
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
|
|
243
|
+
},
|
|
244
|
+
'DELETE'
|
|
245
|
+
>
|
|
246
|
+
>()
|
|
247
|
+
checkFields<
|
|
248
|
+
Diff<
|
|
249
|
+
ParamCheck<RouteContext>,
|
|
250
|
+
{
|
|
251
|
+
__tag__: 'DELETE'
|
|
252
|
+
__param_position__: 'second'
|
|
253
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
|
|
254
|
+
},
|
|
255
|
+
'DELETE'
|
|
256
|
+
>
|
|
257
|
+
>()
|
|
258
|
+
|
|
259
|
+
checkFields<
|
|
260
|
+
Diff<
|
|
261
|
+
{
|
|
262
|
+
__tag__: 'DELETE',
|
|
263
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
__tag__: 'DELETE',
|
|
267
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
|
|
268
|
+
},
|
|
269
|
+
'DELETE'
|
|
270
|
+
>
|
|
271
|
+
>()
|
|
272
|
+
}
|
|
273
|
+
// Check the prop type of the entry function
|
|
274
|
+
if ('PATCH' in entry) {
|
|
275
|
+
checkFields<
|
|
276
|
+
Diff<
|
|
277
|
+
ParamCheck<Request | NextRequest>,
|
|
278
|
+
{
|
|
279
|
+
__tag__: 'PATCH'
|
|
280
|
+
__param_position__: 'first'
|
|
281
|
+
__param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
|
|
282
|
+
},
|
|
283
|
+
'PATCH'
|
|
284
|
+
>
|
|
285
|
+
>()
|
|
286
|
+
checkFields<
|
|
287
|
+
Diff<
|
|
288
|
+
ParamCheck<RouteContext>,
|
|
289
|
+
{
|
|
290
|
+
__tag__: 'PATCH'
|
|
291
|
+
__param_position__: 'second'
|
|
292
|
+
__param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
|
|
293
|
+
},
|
|
294
|
+
'PATCH'
|
|
295
|
+
>
|
|
296
|
+
>()
|
|
297
|
+
|
|
298
|
+
checkFields<
|
|
299
|
+
Diff<
|
|
300
|
+
{
|
|
301
|
+
__tag__: 'PATCH',
|
|
302
|
+
__return_type__: Response | void | never | Promise<Response | void | never>
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
__tag__: 'PATCH',
|
|
306
|
+
__return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
|
|
307
|
+
},
|
|
308
|
+
'PATCH'
|
|
309
|
+
>
|
|
310
|
+
>()
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
314
|
+
if ('generateStaticParams' in entry) {
|
|
315
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
316
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export interface PageProps {
|
|
320
|
+
params?: Promise<SegmentParams>
|
|
321
|
+
searchParams?: Promise<any>
|
|
322
|
+
}
|
|
323
|
+
export interface LayoutProps {
|
|
324
|
+
children?: React.ReactNode
|
|
325
|
+
|
|
326
|
+
params?: Promise<SegmentParams>
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// =============
|
|
330
|
+
// Utility types
|
|
331
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
332
|
+
|
|
333
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
334
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
335
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
336
|
+
|
|
337
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
338
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
339
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
340
|
+
|
|
341
|
+
type ParamCheck<T> = {
|
|
342
|
+
__tag__: string
|
|
343
|
+
__param_position__: string
|
|
344
|
+
__param_type__: T
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
348
|
+
|
|
349
|
+
// https://github.com/sindresorhus/type-fest
|
|
350
|
+
type Numeric = number | bigint
|
|
351
|
+
type Zero = 0 | 0n
|
|
352
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
353
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/
|
|
2
|
-
import * as entry from '../../../../../app/api/
|
|
1
|
+
// File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/web-auth/route.ts
|
|
2
|
+
import * as entry from '../../../../../app/api/web-auth/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
5
5
|
import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
6
|
|
|
7
|
-
type TEntry = typeof import('../../../../../app/api/
|
|
7
|
+
type TEntry = typeof import('../../../../../app/api/web-auth/route.js')
|
|
8
8
|
|
|
9
9
|
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
10
|
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// File: /Volumes/1T 原装/项目研发/pi-web-QT/app/login/page.tsx
|
|
2
|
+
import * as entry from '../../../../app/login/page.js'
|
|
3
|
+
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
|
|
4
|
+
|
|
5
|
+
import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
|
|
6
|
+
|
|
7
|
+
type TEntry = typeof import('../../../../app/login/page.js')
|
|
8
|
+
|
|
9
|
+
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
10
|
+
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
|
11
|
+
: T
|
|
12
|
+
|
|
13
|
+
// Check that the entry is a valid entry
|
|
14
|
+
checkFields<Diff<{
|
|
15
|
+
default: Function
|
|
16
|
+
config?: {}
|
|
17
|
+
generateStaticParams?: Function
|
|
18
|
+
instant?: InstantConfigForTypeCheckInternal
|
|
19
|
+
prefetch?: Prefetch
|
|
20
|
+
unstable_dynamicStaleTime?: number
|
|
21
|
+
revalidate?: RevalidateRange<TEntry> | false
|
|
22
|
+
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
|
|
23
|
+
dynamicParams?: boolean
|
|
24
|
+
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
|
|
25
|
+
/** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
|
|
26
|
+
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
|
|
27
|
+
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
|
|
28
|
+
maxDuration?: number
|
|
29
|
+
|
|
30
|
+
metadata?: any
|
|
31
|
+
generateMetadata?: Function
|
|
32
|
+
viewport?: any
|
|
33
|
+
generateViewport?: Function
|
|
34
|
+
|
|
35
|
+
}, TEntry, ''>>()
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// Check the prop type of the entry function
|
|
39
|
+
checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
|
|
40
|
+
|
|
41
|
+
// Check the arguments and return type of the generateMetadata function
|
|
42
|
+
if ('generateMetadata' in entry) {
|
|
43
|
+
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
44
|
+
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Check the arguments and return type of the generateViewport function
|
|
48
|
+
if ('generateViewport' in entry) {
|
|
49
|
+
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
50
|
+
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Check the arguments and return type of the generateStaticParams function
|
|
54
|
+
if ('generateStaticParams' in entry) {
|
|
55
|
+
checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
|
|
56
|
+
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface PageProps {
|
|
60
|
+
params?: Promise<SegmentParams>
|
|
61
|
+
searchParams?: Promise<any>
|
|
62
|
+
}
|
|
63
|
+
export interface LayoutProps {
|
|
64
|
+
children?: React.ReactNode
|
|
65
|
+
|
|
66
|
+
params?: Promise<SegmentParams>
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// =============
|
|
70
|
+
// Utility types
|
|
71
|
+
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
|
|
72
|
+
|
|
73
|
+
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
|
|
74
|
+
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
|
|
75
|
+
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
|
|
76
|
+
|
|
77
|
+
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
|
|
78
|
+
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
|
|
79
|
+
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
function checkFields<_ extends { [k in keyof any]: never }>() {}
|
|
84
|
+
|
|
85
|
+
// https://github.com/sindresorhus/type-fest
|
|
86
|
+
type Numeric = number | bigint
|
|
87
|
+
type Zero = 0 | 0n
|
|
88
|
+
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
|
|
89
|
+
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
|
package/.next/types/routes.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// This file is generated automatically by Next.js
|
|
2
2
|
// Do not edit this file manually
|
|
3
3
|
|
|
4
|
-
type AppRoutes = "/"
|
|
5
|
-
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/new" | "/api/agent/running" | "/api/agent/running/events" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/combined" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/backup/export" | "/api/backup/import" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/
|
|
4
|
+
type AppRoutes = "/" | "/login"
|
|
5
|
+
type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/new" | "/api/agent/running" | "/api/agent/running/events" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/combined" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/backup/export" | "/api/backup/import" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/events" | "/api/features" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/push" | "/api/git/stash" | "/api/git/status" | "/api/home" | "/api/import/discover" | "/api/import/execute" | "/api/import/status" | "/api/logs" | "/api/mcp" | "/api/mcp/restart" | "/api/models" | "/api/models-config" | "/api/models-config/builtin" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/modes" | "/api/plugins" | "/api/plugins/check" | "/api/project-aliases" | "/api/project-state" | "/api/project-trust" | "/api/projects/visibility" | "/api/provider-usage/query" | "/api/proxy" | "/api/proxy/test" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/details" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/queue-recovery" | "/api/sessions/[id]/state" | "/api/sessions/search" | "/api/settings/title-model" | "/api/skills" | "/api/skills/check" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/snippets" | "/api/snippets/[id]" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/tasks" | "/api/tasks/[id]" | "/api/tasks/[id]/[action]" | "/api/tasks/[id]/changed-files" | "/api/tasks/[id]/diff" | "/api/tasks/[id]/events" | "/api/tasks/batch" | "/api/tasks/events" | "/api/tasks/settings" | "/api/tasks/templates" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/themes" | "/api/themes/[name]" | "/api/tools/extension-tools" | "/api/tools/settings" | "/api/usage" | "/api/vision-config" | "/api/web-auth" | "/api/worktrees"
|
|
6
6
|
type PageRoutes = never
|
|
7
7
|
type LayoutRoutes = "/"
|
|
8
8
|
type RedirectRoutes = never
|
|
@@ -15,6 +15,7 @@ interface ParamMap {
|
|
|
15
15
|
"/api/agent/[id]": { "id": string; }
|
|
16
16
|
"/api/agent/[id]/bash-output": { "id": string; }
|
|
17
17
|
"/api/agent/[id]/events": { "id": string; }
|
|
18
|
+
"/api/agent/[id]/lease": { "id": string; }
|
|
18
19
|
"/api/agent/new": {}
|
|
19
20
|
"/api/agent/running": {}
|
|
20
21
|
"/api/agent/running/events": {}
|
|
@@ -28,7 +29,6 @@ interface ParamMap {
|
|
|
28
29
|
"/api/backup/import": {}
|
|
29
30
|
"/api/cwd/browse": {}
|
|
30
31
|
"/api/cwd/validate": {}
|
|
31
|
-
"/api/deepseek/balance": {}
|
|
32
32
|
"/api/default-cwd": {}
|
|
33
33
|
"/api/events": {}
|
|
34
34
|
"/api/features": {}
|
|
@@ -52,13 +52,13 @@ interface ParamMap {
|
|
|
52
52
|
"/api/models-config/discover": {}
|
|
53
53
|
"/api/models-config/test": {}
|
|
54
54
|
"/api/modes": {}
|
|
55
|
-
"/api/pair": {}
|
|
56
55
|
"/api/plugins": {}
|
|
57
56
|
"/api/plugins/check": {}
|
|
58
57
|
"/api/project-aliases": {}
|
|
59
58
|
"/api/project-state": {}
|
|
60
59
|
"/api/project-trust": {}
|
|
61
60
|
"/api/projects/visibility": {}
|
|
61
|
+
"/api/provider-usage/query": {}
|
|
62
62
|
"/api/proxy": {}
|
|
63
63
|
"/api/proxy/test": {}
|
|
64
64
|
"/api/sessions": {}
|
|
@@ -102,7 +102,9 @@ interface ParamMap {
|
|
|
102
102
|
"/api/tools/settings": {}
|
|
103
103
|
"/api/usage": {}
|
|
104
104
|
"/api/vision-config": {}
|
|
105
|
+
"/api/web-auth": {}
|
|
105
106
|
"/api/worktrees": {}
|
|
107
|
+
"/login": {}
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
|
package/.next/types/validator.ts
CHANGED
|
@@ -47,6 +47,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
|
|
50
|
+
// Validate ../../app/login/page.tsx
|
|
51
|
+
{
|
|
52
|
+
type __IsExpected<Specific extends AppPageConfig<"/login">> = Specific
|
|
53
|
+
const handler = {} as typeof import("../../app/login/page.js")
|
|
54
|
+
type __Check = __IsExpected<typeof handler>
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
type __Unused = __Check
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
// Validate ../../app/page.tsx
|
|
51
60
|
{
|
|
52
61
|
type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
|
|
@@ -74,6 +83,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
74
83
|
type __Unused = __Check
|
|
75
84
|
}
|
|
76
85
|
|
|
86
|
+
// Validate ../../app/api/agent/[id]/lease/route.ts
|
|
87
|
+
{
|
|
88
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/agent/[id]/lease">> = Specific
|
|
89
|
+
const handler = {} as typeof import("../../app/api/agent/[id]/lease/route.js")
|
|
90
|
+
type __Check = __IsExpected<typeof handler>
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
type __Unused = __Check
|
|
93
|
+
}
|
|
94
|
+
|
|
77
95
|
// Validate ../../app/api/agent/[id]/route.ts
|
|
78
96
|
{
|
|
79
97
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/agent/[id]">> = Specific
|
|
@@ -200,15 +218,6 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
200
218
|
type __Unused = __Check
|
|
201
219
|
}
|
|
202
220
|
|
|
203
|
-
// Validate ../../app/api/deepseek/balance/route.ts
|
|
204
|
-
{
|
|
205
|
-
type __IsExpected<Specific extends RouteHandlerConfig<"/api/deepseek/balance">> = Specific
|
|
206
|
-
const handler = {} as typeof import("../../app/api/deepseek/balance/route.js")
|
|
207
|
-
type __Check = __IsExpected<typeof handler>
|
|
208
|
-
// @ts-ignore
|
|
209
|
-
type __Unused = __Check
|
|
210
|
-
}
|
|
211
|
-
|
|
212
221
|
// Validate ../../app/api/default-cwd/route.ts
|
|
213
222
|
{
|
|
214
223
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/default-cwd">> = Specific
|
|
@@ -416,15 +425,6 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
416
425
|
type __Unused = __Check
|
|
417
426
|
}
|
|
418
427
|
|
|
419
|
-
// Validate ../../app/api/pair/route.ts
|
|
420
|
-
{
|
|
421
|
-
type __IsExpected<Specific extends RouteHandlerConfig<"/api/pair">> = Specific
|
|
422
|
-
const handler = {} as typeof import("../../app/api/pair/route.js")
|
|
423
|
-
type __Check = __IsExpected<typeof handler>
|
|
424
|
-
// @ts-ignore
|
|
425
|
-
type __Unused = __Check
|
|
426
|
-
}
|
|
427
|
-
|
|
428
428
|
// Validate ../../app/api/plugins/check/route.ts
|
|
429
429
|
{
|
|
430
430
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/plugins/check">> = Specific
|
|
@@ -479,6 +479,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
479
479
|
type __Unused = __Check
|
|
480
480
|
}
|
|
481
481
|
|
|
482
|
+
// Validate ../../app/api/provider-usage/query/route.ts
|
|
483
|
+
{
|
|
484
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/provider-usage/query">> = Specific
|
|
485
|
+
const handler = {} as typeof import("../../app/api/provider-usage/query/route.js")
|
|
486
|
+
type __Check = __IsExpected<typeof handler>
|
|
487
|
+
// @ts-ignore
|
|
488
|
+
type __Unused = __Check
|
|
489
|
+
}
|
|
490
|
+
|
|
482
491
|
// Validate ../../app/api/proxy/route.ts
|
|
483
492
|
{
|
|
484
493
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/proxy">> = Specific
|
|
@@ -866,6 +875,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
|
|
|
866
875
|
type __Unused = __Check
|
|
867
876
|
}
|
|
868
877
|
|
|
878
|
+
// Validate ../../app/api/web-auth/route.ts
|
|
879
|
+
{
|
|
880
|
+
type __IsExpected<Specific extends RouteHandlerConfig<"/api/web-auth">> = Specific
|
|
881
|
+
const handler = {} as typeof import("../../app/api/web-auth/route.js")
|
|
882
|
+
type __Check = __IsExpected<typeof handler>
|
|
883
|
+
// @ts-ignore
|
|
884
|
+
type __Unused = __Check
|
|
885
|
+
}
|
|
886
|
+
|
|
869
887
|
// Validate ../../app/api/worktrees/route.ts
|
|
870
888
|
{
|
|
871
889
|
type __IsExpected<Specific extends RouteHandlerConfig<"/api/worktrees">> = Specific
|