@qt4798/pi-web 0.9.14 → 0.9.16-beta.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 +17 -7
- package/.next/build-manifest.json +2 -2
- package/.next/react-loadable-manifest.json +4 -0
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +71 -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 +1 -1
- package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- 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 +1 -1
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.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/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/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/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 +6 -1
- package/.next/server/app/api/git/diff/route.js.nft.json +1 -1
- package/.next/server/app/api/git/status/route.js +6 -1
- package/.next/server/app/api/git/status/route.js.nft.json +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/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/plugins/route.js +1 -1
- package/.next/server/app/api/project-trust/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 +1 -1
- 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 +2 -2
- 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/tasks/[id]/[action]/route.js +1 -0
- package/.next/server/app/api/tasks/[id]/[action]/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/[id]/[action]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/changed-files/route.js +6 -0
- package/.next/server/app/api/tasks/[id]/changed-files/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/[id]/changed-files/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/diff/route.js +6 -0
- package/.next/server/app/api/tasks/[id]/diff/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/[id]/diff/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/events/route.js +1 -0
- package/.next/server/app/api/tasks/[id]/events/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/[id]/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/[id]/route.js +1 -0
- package/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/batch/route.js +1 -0
- package/.next/server/app/api/tasks/batch/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/batch/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/events/route.js +3 -0
- package/.next/server/app/api/tasks/events/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/route.js +1 -0
- package/.next/server/app/api/tasks/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/settings/route.js +1 -0
- package/.next/server/app/api/tasks/settings/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/settings/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/tasks/templates/route.js +1 -0
- package/.next/server/app/api/tasks/templates/route.js.nft.json +1 -0
- package/.next/server/app/api/tasks/templates/route_client-reference-manifest.js +1 -0
- 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/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 +3 -3
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/page.js +4 -4
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +17 -7
- package/.next/server/chunks/1499.js +19 -0
- package/.next/server/chunks/4253.js +13 -0
- package/.next/server/chunks/4367.js +1 -1
- package/.next/server/chunks/4980.js +1 -1
- package/.next/server/chunks/6337.js +1 -1
- package/.next/server/chunks/6429.js +1 -1
- 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-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/static/chunks/7160-15bb6d6d6b8f98ef.js +1 -0
- package/.next/static/chunks/app/_global-error/page-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/backup/export/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/backup/import/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/home/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/import/discover/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/import/execute/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/import/status/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/models/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/models-config/builtin/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/settings/title-model/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/skills/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/[action]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/diff/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/events/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/[id]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/batch/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/events/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/settings/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/tasks/templates/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/themes/[name]/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/themes/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/app/page-82d7450b08727b16.js +15 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-b6fdcd4bc49766d5.js +1 -0
- package/.next/static/epdOjhSfv16VGNZsEm8XB/_buildManifest.js +1 -0
- package/.next/trace +9 -176
- package/.next/trace-build +1 -1
- package/.next/types/app/api/tasks/[id]/[action]/route.ts +351 -0
- package/.next/types/app/api/tasks/[id]/changed-files/route.ts +351 -0
- package/.next/types/app/api/tasks/[id]/diff/route.ts +351 -0
- package/.next/types/app/api/tasks/[id]/events/route.ts +351 -0
- package/.next/types/app/api/tasks/[id]/route.ts +351 -0
- package/.next/types/app/api/tasks/batch/route.ts +351 -0
- package/.next/types/app/api/tasks/events/route.ts +351 -0
- package/.next/types/app/api/tasks/route.ts +351 -0
- package/.next/types/app/api/tasks/settings/route.ts +351 -0
- package/.next/types/app/api/tasks/templates/route.ts +351 -0
- package/.next/types/routes.d.ts +11 -1
- package/.next/types/validator.ts +90 -0
- package/README.en.md +52 -0
- package/README.md +53 -1
- package/package.json +1 -1
- package/.next/server/chunks/3961.js +0 -6
- package/.next/static/EC22Ron2C7Gr6n-zSzsop/_buildManifest.js +0 -1
- package/.next/static/chunks/7253-7943c800c2fd7b70.js +0 -1
- package/.next/static/chunks/app/_global-error/page-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/auth/all-providers/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/backup/export/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/backup/import/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/home/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/import/discover/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/import/execute/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/import/status/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/models/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/models-config/builtin/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/settings/title-model/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/skills/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/themes/[name]/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/themes/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/app/page-8b1b1a66c33c44e4.js +0 -15
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-bc5f4c047207b363.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-bc5f4c047207b363.js +0 -1
- /package/.next/static/{EC22Ron2C7Gr6n-zSzsop → epdOjhSfv16VGNZsEm8XB}/_ssgManifest.js +0 -0
|
@@ -1 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=3507,a.ids=[3507],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48034:(a,b,c)=>{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(83518),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/git/status/route",pathname:"/api/git/status",filename:"route",bundlePath:"app/api/git/status/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/git/status/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/git/status/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=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},77030:a=>{a.exports=require("node:net")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},83518:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>m,dynamic:()=>n});var e=c(79748),f=c(33873),g=c.n(f),h=c(23211),i=c(80547),j=c(33012),k=c(66544),l=a([i]);i=(l.then?(await l)():l)[0];let n="force-dynamic";async function m(a){if(!(0,k.EN)(a))return h.NextResponse.json({error:"Untrusted API request"},{status:403});try{let b=new URL(a.url).searchParams.get("cwd")?.trim()??"";if(!(b.startsWith("/")||(0,i.uK)(b)))return h.NextResponse.json({error:"cwd must be an absolute path"},{status:400});let c=g().resolve(b),d=await (0,i.mc)();if(!(0,i.A$)(c,d))return h.NextResponse.json({error:"Access denied"},{status:403});try{if(!(await (0,e.stat)(c)).isDirectory())return h.NextResponse.json({error:"Not a directory"},{status:400})}catch{return h.NextResponse.json({error:"Directory not found"},{status:404})}return h.NextResponse.json(await (0,j.$)(c))}catch(a){return h.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5582,3961],()=>b(b.s=48034));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=3507,a.ids=[3507],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1060:(a,b,c)=>{c.d(b,{Ac:()=>n,GO:()=>j,X:()=>l,_4:()=>d,cV:()=>k,jL:()=>f,kv:()=>e,oC:()=>m});let d=262144,e=0xa00000,f=0xa00000,g={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",bmp:"image/bmp",ico:"image/x-icon",avif:"image/avif"},h={mp3:"audio/mpeg",wav:"audio/wav",ogg:"audio/ogg",oga:"audio/ogg",opus:"audio/ogg",m4a:"audio/mp4",aac:"audio/aac",flac:"audio/flac",weba:"audio/webm",webm:"audio/webm"},i={pdf:"application/pdf",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};function j(a){return(a.replace(/\\/g,"/").split("/").pop()??"").toLowerCase().split(".").pop()??""}function k(a){return g[j(a)]??null}function l(a){return h[j(a)]??null}function m(a){return i[j(a)]??null}function n(a){let b=j(a);return"pdf"===b||"docx"===b?b:null}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},18167:(a,b,c)=>{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(83518),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/git/status/route",pathname:"/api/git/status",filename:"route",bundlePath:"app/api/git/status/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/git/status/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/git/status/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)}})},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33012:(a,b,c)=>{c.d(b,{S:()=>A,$:()=>x});var d=c(79646),e=c(29021),f=c(33873),g=c.n(f),h=c(28354),i=c(1060);let j=new Set(["DD","AU","UD","UA","DU","AA","UU"]);function k(a){let b=`${a.indexStatus}${a.worktreeStatus}`;return"??"===b?{status:"untracked",code:"U"}:j.has(b)||b.includes("U")?{status:"conflict",code:"C"}:b.includes("D")?{status:"deleted",code:"D"}:b.includes("R")||b.includes("C")?{status:"renamed",code:"R"}:b.includes("A")?{status:"added",code:"A"}:{status:"modified",code:"M"}}let l=(0,h.promisify)(d.execFile);async function m(a,b,c=8388608){let{stdout:d}=await l("git",["-C",a,...b],{timeout:1e4,maxBuffer:c,env:{...process.env,LC_ALL:"C"}});return d}async function n(a){try{return(await m(a,["rev-parse","--show-toplevel"])).trim()||null}catch{return null}}function o(a,b){let c=g().relative(g().resolve(a),g().resolve(b));return""===c||!c.startsWith(`..${g().sep}`)&&".."!==c&&!g().isAbsolute(c)}function p(a){try{return(0,e.realpathSync)(a)}catch{return g().resolve(a)}}function q(a){return a.split(g().sep).join("/")}async function r(a){return function(a){let b=a.split("\0"),c=[];for(let a=0;a<b.length;a+=1){var d,e;let f=b[a];if(!f||f.length<4||" "!==f[2])continue;let g={path:f.slice(3),indexStatus:f[0],worktreeStatus:f[1]};d=g.indexStatus,e=g.worktreeStatus,("R"===d||"C"===d||"R"===e||"C"===e)&&(g.originalPath=b[a+1]||void 0,a+=1),c.push(g)}return c}(await m(a,["status","--porcelain=v1","-z","--untracked-files=all"]))}async function s(a,b){let c=q(g().relative(a,b));try{let b=await m(a,["diff","--no-color","--no-ext-diff","--numstat","HEAD","--",c||"."]),d=0,e=0;for(let a of b.split(/\r?\n/)){if(!a)continue;let[b,c]=a.split(" ",2),f=Number(b),g=Number(c);Number.isInteger(f)&&(d+=f),Number.isInteger(g)&&(e+=g)}return{additions:d,deletions:e}}catch{return{additions:0,deletions:0}}}function t(a){return a.includes(0)}function u(a){return a.split("\0").filter(Boolean)}async function v(a,b){return 0===b.length?[]:new Promise(c=>{let e=(0,d.spawn)("git",["-C",a,"check-ignore","--no-index","--stdin","-z"],{env:{...process.env,LC_ALL:"C"},stdio:["pipe","pipe","ignore"]}),f="",g=!1,h=a=>{g||(g=!0,clearTimeout(i),c(a))},i=setTimeout(()=>{e.kill(),h([])},1e4);e.stdout.on("data",a=>{f+=a.toString()}),e.once("error",()=>h([])),e.once("close",()=>h(u(f))),e.stdin.end(`${b.join("\0")}\0`)})}async function w(a){try{let[b,c]=await Promise.all([m(a,["ls-files","--cached","-z"]),m(a,["ls-files","--others","--ignored","--exclude-standard","--directory","-z"])]),d=u(b),e=new Set([...d,...function(a){let b=new Set;for(let c of a){let a=g().posix.dirname(c);for(;a&&"."!==a;)b.add(a),a=g().posix.dirname(a)}return[...b]}(d),...u(c).map(a=>a.replace(/\/+$/,""))]);return(await v(a,[...e])).map(b=>g().resolve(a,b))}catch{return[]}}async function x(a){let b=p(a),c=await n(b);if(!c)return{isGitRepository:!1,repositoryRoot:null,files:[],additions:0,deletions:0,ignoredPaths:[]};let[d,f,h]=await Promise.all([r(c),s(c,b),w(c)]),j=d.flatMap(a=>{let d=g().resolve(c,a.path);return o(b,d)?[{filePath:d,...k(a),indexStatus:a.indexStatus,worktreeStatus:a.worktreeStatus}]:[]}),l=j.reduce((a,b)=>a+("untracked"===b.status?function(a){try{let b=(0,e.lstatSync)(a);if(!b.isFile()||b.size>i._4)return 0;let c=(0,e.readFileSync)(a);if(t(c)||0===c.length)return 0;let d=c.toString("utf8");return d.endsWith("\n")?d.split("\n").length-1:d.split("\n").length}catch{return 0}}(b.filePath):0),0);return{isGitRepository:!0,repositoryRoot:c,files:j,additions:f.additions+l,deletions:f.deletions,ignoredPaths:h.filter(a=>o(b,a))}}function y(a,b){let c=b.endsWith("\n"),d=b.split("\n");c&&d.pop();let e=d.map(a=>`+${a}`).join("\n"),f=!c&&d.length>0?"\n\":"";return`diff --git a/${a} b/${a}
|
|
2
|
+
new file mode 100644
|
|
3
|
+
--- /dev/null
|
|
4
|
+
+++ b/${a}
|
|
5
|
+
@@ -0,0 +1,${d.length} @@
|
|
6
|
+
${e}${f}`}async function z(a,b,c){try{return await m(a,["diff","--no-color","--no-ext-diff","--unified=3","HEAD","--",...c&&c!==b?[c,b]:[b]],4*i._4)}catch{return null}}async function A(a,b){let c,d=p(a),f=await n(d),h=g().resolve(d,g().relative(g().resolve(a),g().resolve(b)));if(!f||!o(f,h))return{supported:!1};let j=q(g().relative(f,h)),l=(await r(f)).find(a=>a.path===j);if(!l)return{supported:!1};let{status:m}=k(l);if("deleted"===m){let a=await z(f,j,l.originalPath);return a?.includes("\n@@ ")?{supported:!0,status:m,patch:a}:{supported:!1}}try{c=(0,e.lstatSync)(h)}catch{return{supported:!1}}if(!c.isFile()||c.size>i._4)return{supported:!1};let s=(0,e.readFileSync)(h);if(t(s))return{supported:!1};let u=s.toString("utf8"),v="untracked"===m?y(j,u):await z(f,j,l.originalPath)??("added"===m?y(j,u):null);return v?.includes("\n@@ ")?{supported:!0,status:m,patch:v}:{supported:!1}}},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66544:(a,b,c)=>{c.d(b,{E2:()=>j,EN:()=>i});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}}function i(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))}function j(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},77030:a=>{a.exports=require("node:net")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80547:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A$:()=>n,Nw:()=>i.Nw,mc:()=>m,uK:()=>l,wz:()=>i.wz});var e=c(29021),f=c(21820),g=c(33873),h=c.n(g),i=c(25252),j=c(40402),k=a([j]);j=(k.then?(await k)():k)[0];let o=/^[a-zA-Z]:[\\/]/;function l(a){return o.test(a)||a.startsWith("\\\\")||a.startsWith("//")}async function m(){let a=Date.now(),b=globalThis.__piAllowedRootsCache;if(b&&b.expiresAt>a)return b.roots;let c=await (0,j.dQ)(),d=new Set;for(let a of c)a.cwd&&d.add((0,i.Nw)(a.cwd)),a.projectRoot&&d.add((0,i.Nw)(a.projectRoot));try{for(let a of(0,e.readdirSync)((0,f.homedir)()))/^pi-cwd-\d{8}$/.test(a)&&d.add((0,i.Nw)(h().join((0,f.homedir)(),a)))}catch{}for(let a of(0,i.HM)())d.add(a);return globalThis.__piAllowedRootsCache={roots:d,expiresAt:a+5e3},d}function n(a,b){for(let c of b){let b=l(a)||l(c),d=b?h().win32:h(),e=b?"\\":h().sep,f=d.resolve(a),g=d.resolve(c),i=b?f.toLowerCase():f,j=b?g.toLowerCase():g,k=j.endsWith(e)?j:j+e;if(i===j||i.startsWith(k))return!0}return!1}d()}catch(a){d(a)}})},83518:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>m,dynamic:()=>n});var e=c(79748),f=c(33873),g=c.n(f),h=c(23211),i=c(80547),j=c(33012),k=c(66544),l=a([i]);i=(l.then?(await l)():l)[0];let n="force-dynamic";async function m(a){if(!(0,k.EN)(a))return h.NextResponse.json({error:"Untrusted API request"},{status:403});try{let b=new URL(a.url).searchParams.get("cwd")?.trim()??"";if(!(b.startsWith("/")||(0,i.uK)(b)))return h.NextResponse.json({error:"cwd must be an absolute path"},{status:400});let c=g().resolve(b),d=await (0,i.mc)();if(!(0,i.A$)(c,d))return h.NextResponse.json({error:"Access denied"},{status:403});try{if(!(await (0,e.stat)(c)).isDirectory())return h.NextResponse.json({error:"Not a directory"},{status:400})}catch{return h.NextResponse.json({error:"Directory not found"},{status:404})}return h.NextResponse.json(await (0,j.$)(c))}catch(a){return h.NextResponse.json({error:a instanceof Error?a.message:String(a)},{status:500})}}d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,5582],()=>b(b.s=18167));module.exports=c})();
|