@pricening/pi-web 0.9.6 → 0.9.8
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 +10 -8
- package/.next/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- 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 +2 -2
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_global-error.html +1 -1
- package/.next/server/app/_global-error.rsc +1 -1
- package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +3 -3
- package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
- package/.next/server/app/api/agent/[id]/events/route.js +2 -2
- package/.next/server/app/api/agent/[id]/lease/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/app-update/route.js +1 -1
- package/.next/server/app/api/archives/route.js +1 -0
- package/.next/server/app/api/archives/route.js.nft.json +1 -0
- package/.next/server/app/api/archives/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/archives/sessions/route.js +1 -0
- package/.next/server/app/api/archives/sessions/route.js.nft.json +1 -0
- package/.next/server/app/api/archives/sessions/route_client-reference-manifest.js +1 -0
- 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/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 +2 -2
- package/.next/server/app/api/git/status/route.js +2 -2
- package/.next/server/app/api/home/route.js +1 -1
- package/.next/server/app/api/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/pins/route.js +1 -1
- package/.next/server/app/api/plugins/check/route.js +1 -1
- package/.next/server/app/api/plugins/route.js +1 -1
- package/.next/server/app/api/project-trust/route.js +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]/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]/entries/[entryId]/tool-result-image/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/export/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/route.js +1 -1
- package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
- package/.next/server/app/api/sessions/route.js +1 -1
- package/.next/server/app/api/sessions/route.js.nft.json +1 -1
- package/.next/server/app/api/sessions/search/route.js +1 -1
- package/.next/server/app/api/skills/check/route.js +1 -1
- package/.next/server/app/api/skills/install/route.js +1 -1
- package/.next/server/app/api/skills/route.js +1 -1
- package/.next/server/app/api/skills/search/route.js +1 -1
- package/.next/server/app/api/skills/update/route.js +1 -1
- package/.next/server/app/api/subagents/[id]/route.js +1 -1
- package/.next/server/app/api/subagents/profiles/route.js +1 -1
- package/.next/server/app/api/subagents/settings/route.js +1 -1
- package/.next/server/app/api/terminal/[id]/events/route.js +1 -1
- 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 +5 -5
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
- package/.next/server/app/index.segments/_full.segment.rsc +5 -5
- package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login/page.js +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 +3 -3
- package/.next/server/app/login.segments/_full.segment.rsc +3 -3
- package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
- package/.next/server/app/manifest.webmanifest/route.js +2 -2
- package/.next/server/app/page.js +20 -20
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +10 -8
- package/.next/server/chunks/2349.js +1 -1
- package/.next/server/chunks/5582.js +1 -1
- package/.next/server/chunks/8410.js +1 -0
- package/.next/server/instrumentation.js +1 -1
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/app/_global-error/page-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/lease/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/agent/running/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/app-update/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/archives/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/archives/sessions/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/cwd/browse/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/cwd/validate/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/file-index/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/git/diff/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/git/status/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/home/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/catalog/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/pins/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/plugins/check/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/plugins/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/project-trust/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/provider-usage/query/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/push/config/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/push/subscribe/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/export/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/state/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/sessions/search/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/check/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/skills/update/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/subagents/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/subagents/profiles/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/subagents/settings/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/events/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/terminal/[id]/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/terminal/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/tools/settings/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/web-auth/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/api/worktrees/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/{layout-4a9ccf8e6ed4d4ce.js → layout-defc84c8112fb814.js} +1 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/app/page-89f22c7c0fc4ff07.js +283 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-0d0785de797ec9c7.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-0d0785de797ec9c7.js +1 -0
- package/.next/static/css/{f7e132c0ed6e9cf3.css → f4a799a04a7a8a76.css} +1 -1
- package/.next/static/v2ujhGjLkjIUa9TUL8cVR/_buildManifest.js +1 -0
- package/.next/trace +39 -41
- package/.next/trace-build +1 -1
- package/.next/types/app/api/archives/route.ts +353 -0
- package/.next/types/app/api/archives/sessions/route.ts +353 -0
- package/.next/types/routes.d.ts +3 -1
- package/.next/types/validator.ts +18 -0
- package/package.json +3 -3
- package/.next/static/chunks/app/_global-error/page-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/bash-output/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/events/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/lease/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/new/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/agent/running/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/app-update/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/login/[provider]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/auth/providers/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/cwd/browse/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/cwd/validate/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/default-cwd/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/file-index/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/files/[...path]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/git/diff/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/git/status/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/home/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/catalog/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/discover/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/models-config/test/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/pins/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/plugins/check/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/plugins/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/project-trust/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/provider-usage/query/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/push/config/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/push/subscribe/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/context/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/export/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/[id]/state/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/sessions/search/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/check/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/install/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/search/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/skills/update/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/subagents/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/subagents/profiles/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/subagents/settings/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/events/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/terminal/[id]/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/terminal/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/tools/settings/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/web-auth/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/api/worktrees/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/manifest.webmanifest/route-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/app/page-9b7a4a26fd124ddf.js +0 -283
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-6f128c132ee86731.js +0 -1
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6f128c132ee86731.js +0 -1
- package/.next/static/xpVBzC7CZ79459fapf4qT/_buildManifest.js +0 -1
- /package/.next/static/{xpVBzC7CZ79459fapf4qT → v2ujhGjLkjIUa9TUL8cVR}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/archives/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/home/runner/work/pi-web/pi-web/app/api/archives/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(()=>{var a={};a.id=2913,a.ids=[2913],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")},13022:(a,b,c)=>{c.d(b,{_k:()=>e});var d=c(90237);function e(a,b){return a.filter(a=>(0,d._A)(a)===b)}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21906:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{A:()=>m,S:()=>l});var e=c(29021),f=c(33873),g=c(40402),h=c(45902),i=c(56429),j=c(7048),k=a([g,i,j]);[g,i,j]=k.then?(await k)():k;class m extends Error{constructor(a){super("Session not found"),this.sessionId=a,this.name="SessionNotFoundError"}}async function l(a){let b,c,d=await (0,g.os)(a);if(!d)throw new m(a);try{b=(0,g.eP)(d)?.parentSession}catch(a){if("ENOENT"!==a.code)throw a}if(b)try{c=(0,g.eP)(b)?.id}catch{c=void 0}let k=(0,h.$)(d),l=(0,f.dirname)(d),n=(0,g.O5)(await (0,g.dQ)({force:!0}),(0,i.Bp)({includeTransient:!0})),o=new Map;for(let a of n){if(a.relation?.kind!=="subagent")continue;let b=o.get(a.relation.parentSessionId)??[];b.push(a.id),o.set(a.relation.parentSessionId,b)}let p=new Map(n.map(a=>[a.id,a.path]));try{for(let a of(0,e.readdirSync)(l).filter(a=>a.endsWith(".jsonl"))){let b=(0,f.join)(l,a);if((0,h.$)(b)!==k)try{let a=(0,e.readFileSync)(b,"utf8").split("\n"),c=JSON.parse(a[0]);if("session"!==c.type||"string"!=typeof c.id)continue;let d=a.slice(1).flatMap(a=>{try{return[JSON.parse(a)]}catch{return[]}}),f=(0,j.$u)(d,c.id,b);if(!f)continue;let g=o.get(f.parentSessionId)??[];g.push(c.id),o.set(f.parentSessionId,g),p.set(c.id,b)}catch{}}}catch{}let q=new Set([a]),r=[a];for(;r.length>0;){let a=r.pop();for(let b of o.get(a)??[])q.has(b)||(q.add(b),r.push(b))}let s=new Map([[a,d]]);for(let a of q){let b=p.get(a);b&&s.set(a,b)}for(let a of q){if(s.has(a))continue;let b=(0,i.A4)(a)?.sessionFile;if(b)s.set(a,b);else{let b=await (0,g.os)(a);b&&s.set(a,b)}}let t=new Set([...s.values()].map(a=>(0,h.$)(a)));try{for(let a of(0,e.readdirSync)(l).filter(a=>a.endsWith(".jsonl")&&(0,h.$)((0,f.join)(l,a))!==k)){let d=(0,f.join)(l,a);if(!t.has((0,h.$)(d)))try{let a=(0,e.readFileSync)(d,"utf8").split("\n"),f=JSON.parse(a[0]);if("session"===f.type&&f.parentSession&&(0,h.$)(f.parentSession)===k){if(f.parentSession=b,a[0]=JSON.stringify(f),b&&c)for(let d=1;d<a.length;d+=1){let e;try{e=JSON.parse(a[d])}catch{continue}if(!("custom"!==e.type||e.customType!==j.tP||"object"!=typeof e.data||null===e.data||Array.isArray(e.data))){e.data={...e.data,parentSessionId:c,parentSessionPath:b},a[d]=JSON.stringify(e);break}}(0,e.writeFileSync)(d,a.join("\n"))}}catch{}}}catch{}for(let b of[...q].reverse())if(b!==a){try{await (0,i.wW)(b)}catch{}await (0,i.A4)(b)?.shutdown()}try{await (0,i.wW)(a)}catch{}for(let[b,c]of(await (0,i.A4)(a)?.shutdown(),s)){try{(0,e.unlinkSync)(c)}catch(a){if("ENOENT"!==a.code)throw a}(0,g.BR)(b)}return(0,g.mD)(),{deletedSessionIds:[...q]}}d()}catch(a){d(a)}})},27910:a=>{a.exports=require("stream")},28354:a=>{a.exports=require("util")},28802:a=>{a.exports=import("@earendil-works/pi-ai")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},29862:a=>{a.exports=import("@earendil-works/pi-tui")},29900:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>n,dynamic:()=>o});var e=c(23211),f=c(48067),g=c(79874),h=c(61815),i=c(40402),j=c(56429),k=c(13022),l=c(21906),m=a([g,h,i,j,l]);[g,h,i,j,l]=m.then?(await m)():m;let o="force-dynamic";async function n(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({error:"Invalid JSON body"},{status:400})}let c=b,d=(0,f.f5)(c.projectKey);if(!d)return e.NextResponse.json({error:"projectKey must be a non-empty string"},{status:400});let[m,n]=await Promise.all([(0,i.dQ)({force:!0}),(0,i.zH)((0,j.Bp)({includeTransient:!0}))]),o=(0,i.O5)(m,n),p=(0,k._k)(o,d),q=p.filter(a=>a.relation?.kind!=="subagent");if(0===q.length)return e.NextResponse.json({error:"No sessions found for this project"},{status:404});let r=new Set((0,j.HG)()),s=p.filter(a=>r.has(a.id));if(s.length>0)return e.NextResponse.json({error:"Cannot delete sessions while the project has a running agent",runningSessionIds:s.map(a=>a.id)},{status:409});if(!function(a){if("string"!=typeof a)return!1;let b=a.trim().toLowerCase();return"confirm"===b||"确认"===b||"確認"===b}(c.confirm))return e.NextResponse.json({error:"confirm must be confirm or 确认",sessionCount:q.length},{status:400});let t=[],u=[],v=new Set(q.map(a=>a.id));for(let a of q)if(v.has(a.id))try{for(let b of(await (0,l.S)(a.id)).deletedSessionIds)t.push(b),v.delete(b)}catch(b){if(b instanceof l.A){v.delete(a.id);continue}u.push({id:a.id,error:b instanceof Error?b.message:String(b)})}if(0===u.length){try{await (0,h.oW)({kind:"project",key:d,pinned:!1})}catch{}try{await (0,g._X)({key:d,archived:!1})}catch{}}return e.NextResponse.json({ok:0===u.length,deletedSessionIds:t,failed:u},{status:0===u.length?200:207,headers:{"Cache-Control":"no-store"}})}d()}catch(a){d(a)}})},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},47223:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(37527);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/archives/sessions/route",pathname:"/api/archives/sessions",filename:"route",bundlePath:"app/api/archives/sessions/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/pi-web/pi-web/app/api/archives/sessions/route.ts",nextConfigOutput:"",userland:()=>c(29900),...{}}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),u.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/archives/sessions/route";"/index"===d&&(d="/");let f=await u.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,deploymentId:w,params:x,nextConfig:y,parsedUrl:z,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=f,I=(0,j.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,z,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(y.adapterPath)return await K();throw new s.NoFallbackError}}let L=null;!J||u.isDev||A||(L="/index"===(L=F)?"/":L);let M=!0===u.isDev||!J,N=J&&!M;H&&G&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,h.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,g.getRequestMeta)(a,"minimalMode"),T=(0,g.getRequestMeta)(a,"incrementalCache")||await u.getIncrementalCache(a,y,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:x,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!y.experimental.authInterrupts,useCacheTimeout:y.experimental.useCacheTimeout},cacheComponents:!!y.cacheComponents,validationLevel:y.experimental.instantInsights.validationLevel,supportsDynamicResponse:M,incrementalCache:T,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:y.cacheLife,staticPageGenerationTimeout:y.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>u.onRequestError(a,b,d,e,C)},sharedContext:{buildId:v,deploymentId:w}},V=new k.NodeNextRequest(a),W=new k.NodeNextResponse(b),X=l.NextRequestAdapter.fromNodeNextRequest(V,(0,l.signalFromNodeResponse)(b)),Y=async({previousCacheEntry:e})=>{try{if(!S&&D&&E&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await u.handle(X,U);a.fetchMetrics=U.renderOpts.fetchMetrics;let f=U.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=U.renderOpts.collectedTags;if(!J)return await (0,o.I)(V,W,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?y.expireTime:void 0:U.renderOpts.collectedExpire;return{value:{kind:t.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},Z=async(d,f)=>{try{var g,i;let d=await u.handleResponse({req:a,nextConfig:y,cacheKey:L,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:Y,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==t.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);S&&J||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(V,W,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(b){if(b instanceof s.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;await (0,o.I)(V,W,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||I,g=`${O} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(R&&Q)await Z(Q,void 0);else{let b=P.getActiveScopeSpan();await P.withPropagatedContext(a.headers,()=>P.trace(m.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},a=>Z(a,b)),void 0,!R)}}},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")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},80481:a=>{a.exports=require("node:readline")},81115:a=>{a.exports=require("constants")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{a.exports=require("events")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,426,974,5582,2243,6429,8410],()=>b(b.s=47223));module.exports=c})();
|