@tasselx/pi-web 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-path-routes-manifest.json +14 -12
- package/.next/build-manifest.json +3 -3
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +2 -2
- package/.next/required-server-files.js +1 -1
- package/.next/required-server-files.json +1 -1
- package/.next/routes-manifest.json +12 -0
- package/.next/server/app/_global-error/page.js +1 -1
- 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 +4 -4
- package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
- package/.next/server/app/api/agent/[id]/lease/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/[id]/route.js +1 -1
- package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/new/route.js +1 -1
- package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
- package/.next/server/app/api/agent/running/route.js +1 -1
- package/.next/server/app/api/agent/running/route.js.nft.json +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/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/cache-miss-notices/route.js +1 -1
- package/.next/server/app/api/cwd/browse/route.js +1 -1
- package/.next/server/app/api/cwd/pick/route.js +1 -0
- package/.next/server/app/api/cwd/pick/route.js.nft.json +1 -0
- package/.next/server/app/api/cwd/pick/route_client-reference-manifest.js +1 -0
- 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 +2 -2
- package/.next/server/app/api/git/status/route.js +1 -1
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/mcp/route.js +2 -2
- package/.next/server/app/api/mcp/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
- package/.next/server/app/api/mcp/sign-in/route.js +1 -1
- package/.next/server/app/api/mcp/sign-in/route.js.nft.json +1 -1
- package/.next/server/app/api/mcp/test/route.js +1 -1
- package/.next/server/app/api/mcp/test/route.js.nft.json +1 -1
- package/.next/server/app/api/models/default/route.js +1 -1
- package/.next/server/app/api/models/enabled/route.js +1 -1
- package/.next/server/app/api/models/refresh/route.js +1 -1
- package/.next/server/app/api/models/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/open-in-explorer/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/plugins/route.js.nft.json +1 -1
- package/.next/server/app/api/project-trust/route.js +1 -1
- package/.next/server/app/api/project-trust/route.js.nft.json +1 -1
- package/.next/server/app/api/provider-usage/query/route.js +1 -1
- package/.next/server/app/api/push/config/route.js +1 -1
- package/.next/server/app/api/push/subscribe/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
- package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +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]/fork/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/fork/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/delete/route.js +1 -1
- package/.next/server/app/api/sessions/delete/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/search/route.js +1 -1
- package/.next/server/app/api/sessions/stats/route.js +1 -1
- package/.next/server/app/api/sessions/stats/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/ui-state/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/content/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/sleep-inhibit/route.js +1 -0
- package/.next/server/app/api/sleep-inhibit/route.js.nft.json +1 -0
- package/.next/server/app/api/sleep-inhibit/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/subagents/[id]/route.js +1 -1
- package/.next/server/app/api/subagents/[id]/route.js.nft.json +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/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/tools/settings/route.js +1 -1
- package/.next/server/app/api/web-auth/route.js +1 -1
- package/.next/server/app/api/worktrees/route.js +1 -1
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +9 -9
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +9 -9
- package/.next/server/app/index.segments/_full.segment.rsc +9 -9
- package/.next/server/app/index.segments/_tree.segment.rsc +4 -4
- package/.next/server/app/login/page.js +1 -1
- package/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +5 -5
- package/.next/server/app/login.segments/_full.segment.rsc +5 -5
- package/.next/server/app/login.segments/_tree.segment.rsc +3 -3
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/page.js +134 -82
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +14 -12
- package/.next/server/chunks/2243.js +1 -1
- package/.next/server/chunks/2650.js +1 -0
- package/.next/server/chunks/4315.js +2 -2
- package/.next/server/chunks/6216.js +6 -0
- package/.next/server/chunks/6429.js +2 -2
- package/.next/server/chunks/7979.js +1 -1
- package/.next/server/chunks/9165.js +1 -1
- package/.next/server/functions-config-manifest.json +1 -0
- 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/1278-acbd0cb712f7f8f0.js +1 -0
- package/.next/static/chunks/7379.f16ffe41e8afa0ef.js +3 -0
- package/.next/static/chunks/app/_global-error/page-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/lease/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/cache-miss-notices/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/cwd/pick/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/home/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/mcp/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/mcp/sign-in/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/mcp/test/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models/default/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models/enabled/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models/refresh/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/open-in-explorer/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/plugins/check/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/provider-usage/query/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/push/config/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/push/subscribe/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/fork/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/delete/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/stats/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sessions/ui-state/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/skills/content/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/skills/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/sleep-inhibit/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/tools/settings/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/web-auth/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/{layout-4fac0a406b05e28e.js → layout-fba9ec844c19ded5.js} +1 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/app/page-020b7792f47e61a6.js +338 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-a509ce75fed6d8b0.js +1 -0
- package/.next/static/chunks/{webpack-b3e6fd1801874f85.js → webpack-10ae3428600991e0.js} +1 -1
- package/.next/static/css/{ad96e794a9954323.css → bf4305e2891fcef1.css} +1 -1
- package/.next/static/css/{2c3ed27b408ff881.css → dac4513c1f26d498.css} +1 -1
- package/.next/static/css/dc78b381ecea7676.css +1 -0
- package/.next/static/css/e423cf64c3a31a65.css +1 -0
- package/.next/static/d8QChh2wYaULqtNavrBMx/_buildManifest.js +1 -0
- package/.next/trace +59 -178
- package/.next/trace-build +1 -1
- package/.next/types/app/api/cwd/pick/route.ts +355 -0
- package/.next/types/app/api/sleep-inhibit/route.ts +355 -0
- package/.next/types/routes.d.ts +3 -1
- package/.next/types/validator.ts +20 -0
- package/README.md +1 -0
- package/package.json +1 -1
- package/.next/server/chunks/4698.js +0 -1
- package/.next/static/chunks/1278-04df33c86a8cedbb.js +0 -1
- package/.next/static/chunks/7379.49eae68e886f95ce.js +0 -3
- package/.next/static/chunks/app/_global-error/page-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/lease/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/cache-miss-notices/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/home/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/mcp/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/mcp/sign-in/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/mcp/test/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models/default/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models/enabled/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models/refresh/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/open-in-explorer/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/plugins/check/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/provider-usage/query/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/push/config/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/push/subscribe/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/fork/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/delete/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/search/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/stats/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/sessions/ui-state/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/skills/content/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/skills/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/subagents/[id]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/subagents/profiles/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/subagents/settings/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/tools/settings/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/web-auth/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/app/page-55d6c63b3fad59ba.js +0 -286
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-cbe4231fb889bdce.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-cbe4231fb889bdce.js +0 -1
- package/.next/static/css/2e00ddf94db0ac93.css +0 -1
- package/.next/static/css/992381f1f993c50d.css +0 -1
- package/.next/static/kGHKpcRcJUSY2DuTSILsx/_buildManifest.js +0 -1
- /package/.next/static/{kGHKpcRcJUSY2DuTSILsx → d8QChh2wYaULqtNavrBMx}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=6849,a.ids=[6849],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14858:(a,b,c)=>{c.d(b,{eW:()=>e,yP:()=>i});var d=c(85963);function e(a){let b=[],c=[];for(let d=a.length-1;d>=0;d--)c.push({input:a[d],into:b});for(;c.length>0;){let a=c.pop(),{input:b}=a,d={entry:{id:b.entry.id,parentId:b.entry.parentId??null,type:b.entry.type,timestamp:b.entry.timestamp??""},children:[],...b.compressedEntryIds?.length?{compressedEntryIds:b.compressedEntryIds}:{},...b.branchPreview?{branchPreview:b.branchPreview}:{}};a.into.push(d);for(let a=b.children.length-1;a>=0;a--)c.push({input:b.children[a],into:d.children})}return b}function f(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function g(a,b){if("string"!=typeof b||a.length>40)return a;let c=b.replace(/\s+/g," ").trim();if(!c)return a;let d=a?" ":"",e=a+d;if(e.length>=41)return e.slice(0,41);let f=41-e.length;return e+c.slice(0,f)}function h(a){if("message"!==a.type||!f(a.message)||"string"!=typeof a.message.role||"system"===a.message.role)return;let b=a.message.content,c="",d=!1;if("string"==typeof b)c=g(c,b);else if(Array.isArray(b)){for(let a of b)if(f(a)&&("image"===a.type&&(d=!0),"text"===a.type&&(c=g(c,a.text)),c.length>40))break}c.length>40?c=c.slice(0,40)+"…":c||(c=d?"[image]":"assistant"===a.message.role?"[assistant]":"message");let e="user"===a.message.role||"assistant"===a.message.role?a.message.role:void 0;return{...e?{role:e}:{},text:c}}function i(a){let b=new Set,c=new Set(a),e=new Set,f=[...a];for(;f.length>0;){let a=f.pop();if(!e.has(a))for(let d of(e.add(a),(c.has(a)||1!==a.children.length)&&b.add(a),a.children))f.push(d)}let g=(a,b,c)=>{let e="message"===a.entry.type?(0,d.r)(a.entry.message):a.entry.message;return{...a,entry:e===a.entry.message?a.entry:{...a.entry,message:e},children:[],...b?.length?{compressedEntryIds:b}:{},...c?{branchPreview:c}:{}}},i=a.map(a=>g(a,void 0,h(a.entry))),j=a.map((a,b)=>({source:a,projected:i[b],depth:1})),k=(a,c)=>{let d=[{node:a,compressedEntryIds:[],branchPreview:void 0}],e=new Set;for(;d.length>0;){let{node:a,compressedEntryIds:f,branchPreview:i}=d.pop();if(e.has(a))continue;e.add(a);let j=i??h(a.entry);b.has(a)&&c.children.push(g(a,f,j));for(let c=a.children.length-1;c>=0;c--)d.push({node:a.children[c],compressedEntryIds:b.has(a)?[]:[...f,a.entry.id],branchPreview:b.has(a)?void 0:j})}};for(;j.length>0;){let{source:a,projected:c,depth:d}=j.pop();for(let e of a.children){let a=e;if(d>=200){k(a,c);continue}let f=[],i=h(a.entry);for(;!b.has(a)&&1===a.children.length;)f.push(a.entry.id),a=a.children[0],i??=h(a.entry);if(!b.has(a))continue;let l=g(a,f,i);c.children.push(l),j.push({source:a,projected:l,depth:d+1})}}return i}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29665:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/route",pathname:"/api/sessions/[id]",filename:"route",bundlePath:"app/api/sessions/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/tassel/pi-web/app/api/sessions/[id]/route.ts",nextConfigOutput:"",userland:()=>c(98192),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=T.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},29862:a=>{a.exports=import("@earendil-works/pi-tui")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45648:(a,b,c)=>{c.d(b,{T:()=>f});var d=c(55511),e=c(29021);function f(a){try{return(0,d.createHash)("sha1").update(JSON.stringify({fp:function(a){try{let b=(0,e.statSync)(a);return`${b.size}:${b.mtimeMs}:${b.ctimeMs}`}catch{return"missing"}}(a.filePath),source:a.sourceId,entries:a.entryCount,latest:a.latestEntryId,leaf:a.leafId})).digest("base64url").slice(0,22)}catch{return null}}},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},77850:(a,b,c)=>{c.d(b,{Y:()=>d});function d(a,b,c={}){var e;let f,g=JSON.stringify(b),h=Buffer.byteLength(g)>=1024,i=new Headers(c.headers);return i.set("Content-Type","application/json; charset=utf-8"),(h&&(e="Accept-Encoding",(f=i.get("Vary"))?f.split(",").some(a=>a.trim().toLowerCase()===e.toLowerCase())||i.set("Vary",`${f}, ${e}`):i.set("Vary",e)),h&&function(a,b){let c;for(let d of a.split(",")){let[a,...e]=d.trim().split(";"),f=a.trim().toLowerCase(),g=1;for(let a of e){let b=/^\s*q\s*=\s*(.*?)\s*$/i.exec(a);if(!b)continue;let c=b[1];g=/^(?:0(?:\.\d{0,3})?|1(?:\.0{0,3})?)$/.test(c)?Number(c):0}if(f===b)return g;"*"===f&&(c=g)}return c??0}(a.headers.get("Accept-Encoding")??"","gzip")>0)?(i.set("Content-Encoding","gzip"),new Response(new Blob([g]).stream().pipeThrough(new CompressionStream("gzip")),{...c,headers:i})):new Response(g,{...c,headers:i})}},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81115:a=>{a.exports=require("constants")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88914:(a,b,c)=>{function d(a,b){b&&(a.tokens.input+=b.input??0,a.tokens.output+=b.output??0,a.tokens.cacheRead+=b.cacheRead??0,a.tokens.cacheWrite+=b.cacheWrite??0,a.cost+=b.cost?.total??0)}function e(a){var b;let c={userMessages:0,assistantMessages:0,toolCalls:0,toolResults:0,totalMessages:0,tokens:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0},cost:0};for(let e of a){if("compaction"===e.type||"branch_summary"===e.type||"usage"===e.type){d(c,e.usage);continue}"message"===e.type&&(b=e.message,c.totalMessages+=1,"user"===b.role?c.userMessages+=1:"toolResult"===b.role?(c.toolResults+=1,d(c,b.usage)):"assistant"===b.role&&(c.assistantMessages+=1,Array.isArray(b.content)&&(c.toolCalls+=b.content.filter(a=>"toolCall"===a.type).length),d(c,b.usage)))}return c.tokens.total=c.tokens.input+c.tokens.output+c.tokens.cacheRead+c.tokens.cacheWrite,c}c.d(b,{P:()=>e})},94735:a=>{a.exports=require("events")},95337:(a,b,c)=>{c.d(b,{h:()=>e});let d="1"===process.env.PI_WEB_PERF;function e(a){if(!d)return;let b=crypto.randomUUID().slice(0,8),c=performance.now(),e=c,f=new Map;return{span(a){let b=performance.now();f.set(a,(f.get(a)??0)+(b-e)),e=b},totalMs:()=>performance.now()-c,attach(d){let e=performance.now()-c,g=[...f.entries()].map(([a,b])=>`${a};dur=${b.toFixed(1)}`).join(", ");d.headers.set("Server-Timing",g?`${g}, total;dur=${e.toFixed(1)}`:`total;dur=${e.toFixed(1)}`);let h={};for(let[a,b]of f)h[a]=Number(b.toFixed(1));return console.log(JSON.stringify({perf:!0,route:a,requestId:b,totalMs:Number(e.toFixed(1)),phases:h})),d}}}},98192:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>v,GET:()=>t,PATCH:()=>u});var e=c(23211),f=c(29021),g=c(40402),h=c(56429),i=c(14858),j=c(89691),k=c(88914),l=c(95337),m=c(45648),n=c(7048),o=c(21560),p=c(77850),q=c(21906),r=c(59506),s=a([g,h,n,q,r]);async function t(a,{params:b}){let{id:c}=await b,d=(0,l.h)("GET /api/sessions/[id]");try{let b;d?.span("resolve");let l=(0,h.A4)(c),q=new URL(a.url).searchParams,s="1"===q.get("force"),t=l?.isAlive()?l:void 0,u=!1;s&&t?.evictIfDiskAhead()&&(u=!0,t=void 0);let v=t,w=v?null:await (0,g.os)(c);if(!v&&!w)return e.NextResponse.json({error:"Session not found"},{status:404});let x=v?.inner.sessionManager??(0,g.G1)(w);d?.span("open");let y=v?.sessionFile||x.getSessionFile()||w||"",z=x.getEntries(),A=x.getLeafId(),B="summary"===q.get("tree"),C=B?(0,i.eW)((0,i.yP)(x.getTree())):(0,i.yP)(x.getTree());d?.span("tree");let D=q.has("deferThinking"),E=q.has("deferMedia"),F=Number(q.get("tail")),G=Number.isFinite(F)&&F>0?Math.min(F,1e3):50,H=(0,r.Kp)({entries:z,cwd:x.getHeader()?.cwd??"",leafId:A,models:v?.inner.modelRuntime}),I=(0,r.dt)((0,g.Uv)(z,A,{deferThinking:D,deferToolResultImages:E,tail:G,sessionId:c}),H);d?.span("context");let J=(0,j.c)(z),K=(0,k.P)(z);d?.span("stats");let L=z[z.length-1],M=(0,m.T)({filePath:y,sourceId:`${v?`runtime:${String(v.inner.sessionId)}`:"disk"}${H?"+notices":""}`,entryCount:z.length,latestEntryId:"string"==typeof L?.id?L.id:null,leafId:A??null}),N=x.getSessionName(),O=z.find(a=>"message"===a.type&&"user"===a.message.role),P=O?.type==="message"?O.message:void 0,Q=x.getHeader(),R=Q?.timestamp??new Date().toISOString();try{R=(0,f.statSync)(y).mtime.toISOString()}catch{}let S=Q?.parentSession?await (0,g.u1)(Q.parentSession):void 0,T=Q?(0,n.$u)(z,Q.id,y):null,U=(0,n.ph)(z)?.tools??(0,o.dS)(z),V=Q?(await (0,g.zH)([{path:y,id:Q.id,cwd:Q.cwd??"",name:N,created:Q.timestamp,modified:R,messageCount:K.totalMessages,firstMessage:P?(b=P.content,"string"==typeof b?b:(Array.isArray(b)?b.find(a=>"text"===a.type)?.text??"":"")||"(no messages)"):"(no messages)",parentSessionId:S,...T?{relation:{kind:"subagent",parentSessionId:T.parentSessionId,profile:T.profile,description:T.description,status:v?.isRunning()?"running":T.status}}:Q.parentSession?{relation:{kind:"fork",...S?{originSessionId:S}:{}}}:{},transient:!y||!(0,f.existsSync)(y)}]))[0]:null;return d?.attach((0,p.Y)(a,{sessionId:c,filePath:y,info:V,leafId:A,tree:C,...B?{treeFormat:"summary"}:{},snapshotRevision:M,context:I,stats:K,totalActiveMs:J,...void 0!==U?{toolNames:U}:{},...u?{wrapperRebuilt:!0}:{}}))??(0,p.Y)(a,{sessionId:c,filePath:y,info:V,leafId:A,tree:C,...B?{treeFormat:"summary"}:{},snapshotRevision:M,context:I,stats:K,totalActiveMs:J,...void 0!==U?{toolNames:U}:{},...u?{wrapperRebuilt:!0}:{}})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}async function u(a,{params:b}){let{id:c}=await b;try{let{name:b}=await a.json();if("string"!=typeof b)return e.NextResponse.json({error:"name is required"},{status:400});let d=await (0,g.os)(c);if(!d)return e.NextResponse.json({error:"Session not found"},{status:404});return(0,g.G1)(d,{mutable:!0}).appendSessionInfo(b.trim()),(0,g.j6)(d),(0,g.mD)(),e.NextResponse.json({ok:!0})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}async function v(a,{params:b}){let{id:c}=await b;try{let{missing:a}=await (0,q.j)([c]);if(a.length>0)return e.NextResponse.json({error:"Session not found"},{status:404});return e.NextResponse.json({ok:!0})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}[g,h,n,q,r]=s.then?(await s)():s,d()}catch(a){d(a)}})},98995:a=>{a.exports=require("node:module")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,426,974,5582,2498,3757,4698,2243,6429,2069,1906],()=>b(b.s=29665));module.exports=c})();
|
|
1
|
+
"use strict";(()=>{var a={};a.id=6849,a.ids=[6849],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},14858:(a,b,c)=>{c.d(b,{eW:()=>e,yP:()=>i});var d=c(85963);function e(a){let b=[],c=[];for(let d=a.length-1;d>=0;d--)c.push({input:a[d],into:b});for(;c.length>0;){let a=c.pop(),{input:b}=a,d={entry:{id:b.entry.id,parentId:b.entry.parentId??null,type:b.entry.type,timestamp:b.entry.timestamp??""},children:[],...b.compressedEntryIds?.length?{compressedEntryIds:b.compressedEntryIds}:{},...b.branchPreview?{branchPreview:b.branchPreview}:{}};a.into.push(d);for(let a=b.children.length-1;a>=0;a--)c.push({input:b.children[a],into:d.children})}return b}function f(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function g(a,b){if("string"!=typeof b||a.length>40)return a;let c=b.replace(/\s+/g," ").trim();if(!c)return a;let d=a?" ":"",e=a+d;if(e.length>=41)return e.slice(0,41);let f=41-e.length;return e+c.slice(0,f)}function h(a){if("message"!==a.type||!f(a.message)||"string"!=typeof a.message.role||"system"===a.message.role)return;let b=a.message.content,c="",d=!1;if("string"==typeof b)c=g(c,b);else if(Array.isArray(b)){for(let a of b)if(f(a)&&("image"===a.type&&(d=!0),"text"===a.type&&(c=g(c,a.text)),c.length>40))break}c.length>40?c=c.slice(0,40)+"…":c||(c=d?"[image]":"assistant"===a.message.role?"[assistant]":"message");let e="user"===a.message.role||"assistant"===a.message.role?a.message.role:void 0;return{...e?{role:e}:{},text:c}}function i(a){let b=new Set,c=new Set(a),e=new Set,f=[...a];for(;f.length>0;){let a=f.pop();if(!e.has(a))for(let d of(e.add(a),(c.has(a)||1!==a.children.length)&&b.add(a),a.children))f.push(d)}let g=(a,b,c)=>{let e="message"===a.entry.type?(0,d.r)(a.entry.message):a.entry.message;return{...a,entry:e===a.entry.message?a.entry:{...a.entry,message:e},children:[],...b?.length?{compressedEntryIds:b}:{},...c?{branchPreview:c}:{}}},i=a.map(a=>g(a,void 0,h(a.entry))),j=a.map((a,b)=>({source:a,projected:i[b],depth:1})),k=(a,c)=>{let d=[{node:a,compressedEntryIds:[],branchPreview:void 0}],e=new Set;for(;d.length>0;){let{node:a,compressedEntryIds:f,branchPreview:i}=d.pop();if(e.has(a))continue;e.add(a);let j=i??h(a.entry);b.has(a)&&c.children.push(g(a,f,j));for(let c=a.children.length-1;c>=0;c--)d.push({node:a.children[c],compressedEntryIds:b.has(a)?[]:[...f,a.entry.id],branchPreview:b.has(a)?void 0:j})}};for(;j.length>0;){let{source:a,projected:c,depth:d}=j.pop();for(let e of a.children){let a=e;if(d>=200){k(a,c);continue}let f=[],i=h(a.entry);for(;!b.has(a)&&1===a.children.length;)f.push(a.entry.id),a=a.children[0],i??=h(a.entry);if(!b.has(a))continue;let l=g(a,f,i);c.children.push(l),j.push({source:a,projected:l,depth:d+1})}}return i}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29862:a=>{a.exports=import("@earendil-works/pi-tui")},31421:a=>{a.exports=require("node:child_process")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},45648:(a,b,c)=>{c.d(b,{T:()=>f});var d=c(55511),e=c(29021);function f(a){try{return(0,d.createHash)("sha1").update(JSON.stringify({fp:function(a){try{let b=(0,e.statSync)(a);return`${b.size}:${b.mtimeMs}:${b.ctimeMs}`}catch{return"missing"}}(a.filePath),source:a.sourceId,entries:a.entryCount,latest:a.latestEntryId,leaf:a.leafId})).digest("base64url").slice(0,22)}catch{return null}}},48161:a=>{a.exports=require("node:os")},51181:a=>{a.exports=require("web-push")},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},73136:a=>{a.exports=require("node:url")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77074:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/route",pathname:"/api/sessions/[id]",filename:"route",bundlePath:"app/api/sessions/[id]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/tassel/pi-web/app/api/sessions/[id]/route.ts",nextConfigOutput:"",userland:()=>c(98192),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.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==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=T.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},77598:a=>{a.exports=require("node:crypto")},77850:(a,b,c)=>{c.d(b,{Y:()=>d});function d(a,b,c={}){var e;let f,g=JSON.stringify(b),h=Buffer.byteLength(g)>=1024,i=new Headers(c.headers);return i.set("Content-Type","application/json; charset=utf-8"),(h&&(e="Accept-Encoding",(f=i.get("Vary"))?f.split(",").some(a=>a.trim().toLowerCase()===e.toLowerCase())||i.set("Vary",`${f}, ${e}`):i.set("Vary",e)),h&&function(a,b){let c;for(let d of a.split(",")){let[a,...e]=d.trim().split(";"),f=a.trim().toLowerCase(),g=1;for(let a of e){let b=/^\s*q\s*=\s*(.*?)\s*$/i.exec(a);if(!b)continue;let c=b[1];g=/^(?:0(?:\.\d{0,3})?|1(?:\.0{0,3})?)$/.test(c)?Number(c):0}if(f===b)return g;"*"===f&&(c=g)}return c??0}(a.headers.get("Accept-Encoding")??"","gzip")>0)?(i.set("Content-Encoding","gzip"),new Response(new Blob([g]).stream().pipeThrough(new CompressionStream("gzip")),{...c,headers:i})):new Response(g,{...c,headers:i})}},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},81115:a=>{a.exports=require("constants")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},88914:(a,b,c)=>{function d(a,b){b&&(a.tokens.input+=b.input??0,a.tokens.output+=b.output??0,a.tokens.cacheRead+=b.cacheRead??0,a.tokens.cacheWrite+=b.cacheWrite??0,a.cost+=b.cost?.total??0)}function e(a){var b;let c={userMessages:0,assistantMessages:0,toolCalls:0,toolResults:0,totalMessages:0,tokens:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0},cost:0};for(let e of a){if("compaction"===e.type||"branch_summary"===e.type||"usage"===e.type){d(c,e.usage);continue}"message"===e.type&&(b=e.message,c.totalMessages+=1,"user"===b.role?c.userMessages+=1:"toolResult"===b.role?(c.toolResults+=1,d(c,b.usage)):"assistant"===b.role&&(c.assistantMessages+=1,Array.isArray(b.content)&&(c.toolCalls+=b.content.filter(a=>"toolCall"===a.type).length),d(c,b.usage)))}return c.tokens.total=c.tokens.input+c.tokens.output+c.tokens.cacheRead+c.tokens.cacheWrite,c}c.d(b,{P:()=>e})},94735:a=>{a.exports=require("events")},95337:(a,b,c)=>{c.d(b,{h:()=>e});let d="1"===process.env.PI_WEB_PERF;function e(a){if(!d)return;let b=crypto.randomUUID().slice(0,8),c=performance.now(),e=c,f=new Map;return{span(a){let b=performance.now();f.set(a,(f.get(a)??0)+(b-e)),e=b},totalMs:()=>performance.now()-c,attach(d){let e=performance.now()-c,g=[...f.entries()].map(([a,b])=>`${a};dur=${b.toFixed(1)}`).join(", ");d.headers.set("Server-Timing",g?`${g}, total;dur=${e.toFixed(1)}`:`total;dur=${e.toFixed(1)}`);let h={};for(let[a,b]of f)h[a]=Number(b.toFixed(1));return console.log(JSON.stringify({perf:!0,route:a,requestId:b,totalMs:Number(e.toFixed(1)),phases:h})),d}}}},98192:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>v,GET:()=>t,PATCH:()=>u});var e=c(23211),f=c(29021),g=c(40402),h=c(56429),i=c(14858),j=c(89691),k=c(88914),l=c(95337),m=c(45648),n=c(7048),o=c(21560),p=c(77850),q=c(21906),r=c(59506),s=a([g,h,n,q,r]);async function t(a,{params:b}){let{id:c}=await b,d=(0,l.h)("GET /api/sessions/[id]");try{let b;d?.span("resolve");let l=(0,h.A4)(c),q=new URL(a.url).searchParams,s="1"===q.get("force"),t=l?.isAlive()?l:void 0,u=!1;s&&t?.evictIfDiskAhead()&&(u=!0,t=void 0);let v=t,w=v?null:await (0,g.os)(c);if(!v&&!w)return e.NextResponse.json({error:"Session not found"},{status:404});let x=v?.inner.sessionManager??(0,g.G1)(w);d?.span("open");let y=v?.sessionFile||x.getSessionFile()||w||"",z=x.getEntries(),A=x.getLeafId(),B="summary"===q.get("tree"),C=B?(0,i.eW)((0,i.yP)(x.getTree())):(0,i.yP)(x.getTree());d?.span("tree");let D=q.has("deferThinking"),E=q.has("deferMedia"),F=Number(q.get("tail")),G=Number.isFinite(F)&&F>0?Math.min(F,1e3):50,H=(0,r.Kp)({entries:z,cwd:x.getHeader()?.cwd??"",leafId:A,models:v?.inner.modelRuntime}),I=(0,r.dt)((0,g.Uv)(z,A,{deferThinking:D,deferToolResultImages:E,tail:G,sessionId:c}),H);d?.span("context");let J=(0,j.c)(z),K=(0,k.P)(z);d?.span("stats");let L=z[z.length-1],M=(0,m.T)({filePath:y,sourceId:`${v?`runtime:${String(v.inner.sessionId)}`:"disk"}${H?"+notices":""}`,entryCount:z.length,latestEntryId:"string"==typeof L?.id?L.id:null,leafId:A??null}),N=x.getSessionName(),O=z.find(a=>"message"===a.type&&"user"===a.message.role),P=O?.type==="message"?O.message:void 0,Q=x.getHeader(),R=Q?.timestamp??new Date().toISOString();try{R=(0,f.statSync)(y).mtime.toISOString()}catch{}let S=Q?.parentSession?await (0,g.u1)(Q.parentSession):void 0,T=Q?(0,n.$u)(z,Q.id,y):null,U=(0,n.ph)(z)?.tools??(0,o.dS)(z),V=Q?(await (0,g.zH)([{path:y,id:Q.id,cwd:Q.cwd??"",name:N,created:Q.timestamp,modified:R,messageCount:K.totalMessages,firstMessage:P?(b=P.content,"string"==typeof b?b:(Array.isArray(b)?b.find(a=>"text"===a.type)?.text??"":"")||"(no messages)"):"(no messages)",parentSessionId:S,...T?{relation:{kind:"subagent",parentSessionId:T.parentSessionId,profile:T.profile,description:T.description,status:v?.isRunning()?"running":T.status}}:Q.parentSession?{relation:{kind:"fork",...S?{originSessionId:S}:{}}}:{},transient:!y||!(0,f.existsSync)(y)}]))[0]:null;return d?.attach((0,p.Y)(a,{sessionId:c,filePath:y,info:V,leafId:A,tree:C,...B?{treeFormat:"summary"}:{},snapshotRevision:M,context:I,stats:K,totalActiveMs:J,...void 0!==U?{toolNames:U}:{},...u?{wrapperRebuilt:!0}:{}}))??(0,p.Y)(a,{sessionId:c,filePath:y,info:V,leafId:A,tree:C,...B?{treeFormat:"summary"}:{},snapshotRevision:M,context:I,stats:K,totalActiveMs:J,...void 0!==U?{toolNames:U}:{},...u?{wrapperRebuilt:!0}:{}})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}async function u(a,{params:b}){let{id:c}=await b;try{let{name:b}=await a.json();if("string"!=typeof b)return e.NextResponse.json({error:"name is required"},{status:400});let d=await (0,g.os)(c);if(!d)return e.NextResponse.json({error:"Session not found"},{status:404});return(0,g.G1)(d,{mutable:!0}).appendSessionInfo(b.trim()),(0,g.j6)(d),(0,g.mD)(),e.NextResponse.json({ok:!0})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}async function v(a,{params:b}){let{id:c}=await b;try{let{missing:a}=await (0,q.j)([c]);if(a.length>0)return e.NextResponse.json({error:"Session not found"},{status:404});return e.NextResponse.json({ok:!0})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}[g,h,n,q,r]=s.then?(await s)():s,d()}catch(a){d(a)}})},98995:a=>{a.exports=require("node:module")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,426,974,5582,2498,3757,2650,2243,6216,6429,2069,1906],()=>b(b.s=77074));module.exports=c})();
|