@rexvane/piweb 0.3.7 → 0.3.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 +28 -0
- package/.next/build-manifest.json +20 -0
- package/.next/export-marker.json +6 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/prerender-manifest.json +157 -0
- package/.next/react-loadable-manifest.json +36 -0
- package/.next/required-server-files.js +357 -0
- package/.next/required-server-files.json +357 -0
- package/.next/routes-manifest.json +212 -0
- 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.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/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/api/update/route.js +2 -2
- package/.next/server/app/api/version/route.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +1 -1
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +1 -1
- package/.next/server/app/index.segments/_full.segment.rsc +1 -1
- package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.html +1 -1
- package/.next/server/app/login.rsc +1 -1
- package/.next/server/app/login.segments/_full.segment.rsc +1 -1
- package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
- package/.next/server/app-paths-manifest.json +10 -10
- 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/package.json +3 -7
- package/scripts/build-output.mjs +19 -1
- package/scripts/install-build.mjs +41 -10
- package/scripts/verify-package.mjs +76 -0
- /package/.next/static/{l0QnWCSMdaKZ9Jf-JNOXz → HEI7XSH5vSn7KCIANvzFC}/_buildManifest.js +0 -0
- /package/.next/static/{l0QnWCSMdaKZ9Jf-JNOXz → HEI7XSH5vSn7KCIANvzFC}/_ssgManifest.js +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
a:I[484,[],"MetadataBoundary"]
|
|
8
8
|
c:I[7123,[],"default",1]
|
|
9
9
|
7:X
|
|
10
|
-
0:{"P":null,"c":["","_global-error"],"q":"","i":false,"f":[[["",{"children":["_global-error",{"children":["__PAGE__",{},"$undefined","$undefined",4624]},"$undefined","$undefined",4624]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","html",null,{"id":"__next_error__","children":[["$","head",null,{"children":[["$","title",null,{"children":"500: This page couldn’t load"}],["$","style",null,{"dangerouslySetInnerHTML":{"__html":":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }"}}]]}],["$","body",null,{"children":["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","display":"flex","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"style":{"marginTop":"-32px","maxWidth":"325px","padding":"32px 28px","textAlign":"left"},"children":[["$","svg",null,{"width":"32","height":"32","viewBox":"-0.2 -1.5 32 32","fill":"none","style":{"marginBottom":"24px"},"children":["$","path",null,{"d":"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z","fill":"var(--next-error-title)"}]}],["$","h1",null,{"style":{"fontSize":"24px","fontWeight":500,"letterSpacing":"-0.02em","lineHeight":"32px","margin":"0 0 12px 0","color":"var(--next-error-title)"},"children":"This page couldn’t load"}],["$","p",null,{"style":{"fontSize":"14px","fontWeight":400,"lineHeight":"21px","margin":"0 0 20px 0","color":"var(--next-error-message)"},"children":"A server error occurred. Reload to try again."}],["$","form",null,{"style":{"margin":0},"children":["$","button",null,{"type":"submit","style":{"display":"inline-flex","alignItems":"center","justifyContent":"center","height":"32px","padding":"0 12px","fontSize":"14px","fontWeight":500,"lineHeight":"20px","borderRadius":"6px","cursor":"pointer","color":"var(--next-error-btn-text)","background":"var(--next-error-btn-bg)","border":"var(--next-error-btn-border)"},"children":"Reload"}]}]]}]}]}]]}],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$7"]},null,false,"$7"],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"
|
|
10
|
+
0:{"P":null,"c":["","_global-error"],"q":"","i":false,"f":[[["",{"children":["_global-error",{"children":["__PAGE__",{},"$undefined","$undefined",4624]},"$undefined","$undefined",4624]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[["$","html",null,{"id":"__next_error__","children":[["$","head",null,{"children":[["$","title",null,{"children":"500: This page couldn’t load"}],["$","style",null,{"dangerouslySetInnerHTML":{"__html":":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }"}}]]}],["$","body",null,{"children":["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","display":"flex","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"style":{"marginTop":"-32px","maxWidth":"325px","padding":"32px 28px","textAlign":"left"},"children":[["$","svg",null,{"width":"32","height":"32","viewBox":"-0.2 -1.5 32 32","fill":"none","style":{"marginBottom":"24px"},"children":["$","path",null,{"d":"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z","fill":"var(--next-error-title)"}]}],["$","h1",null,{"style":{"fontSize":"24px","fontWeight":500,"letterSpacing":"-0.02em","lineHeight":"32px","margin":"0 0 12px 0","color":"var(--next-error-title)"},"children":"This page couldn’t load"}],["$","p",null,{"style":{"fontSize":"14px","fontWeight":400,"lineHeight":"21px","margin":"0 0 20px 0","color":"var(--next-error-message)"},"children":"A server error occurred. Reload to try again."}],["$","form",null,{"style":{"margin":0},"children":["$","button",null,{"type":"submit","style":{"display":"inline-flex","alignItems":"center","justifyContent":"center","height":"32px","padding":"0 12px","fontSize":"14px","fontWeight":500,"lineHeight":"20px","borderRadius":"6px","cursor":"pointer","color":"var(--next-error-btn-text)","background":"var(--next-error-btn-bg)","border":"var(--next-error-btn-border)"},"children":"Reload"}]}]]}]}]}]]}],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$7"]},null,false,"$7"],["$","$1","h",{"children":[null,["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"HEI7XSH5vSn7KCIANvzFC"}
|
|
11
11
|
7:C
|
|
12
12
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
13
13
|
6:null
|
|
@@ -8,7 +8,7 @@ b:I[4581,[],""]
|
|
|
8
8
|
6:X
|
|
9
9
|
d:X
|
|
10
10
|
d:C
|
|
11
|
-
0:{"buildId":"
|
|
11
|
+
0:{"buildId":"HEI7XSH5vSn7KCIANvzFC","data":[{"rsc":["$","$1","c",{"children":[["$","html",null,{"id":"__next_error__","children":[["$","head",null,{"children":[["$","title",null,{"children":"500: This page couldn’t load"}],["$","style",null,{"dangerouslySetInnerHTML":{"__html":":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }"}}]]}],["$","body",null,{"children":["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","display":"flex","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"style":{"marginTop":"-32px","maxWidth":"325px","padding":"32px 28px","textAlign":"left"},"children":[["$","svg",null,{"width":"32","height":"32","viewBox":"-0.2 -1.5 32 32","fill":"none","style":{"marginBottom":"24px"},"children":["$","path",null,{"d":"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z","fill":"var(--next-error-title)"}]}],["$","h1",null,{"style":{"fontSize":"24px","fontWeight":500,"letterSpacing":"-0.02em","lineHeight":"32px","margin":"0 0 12px 0","color":"var(--next-error-title)"},"children":"This page couldn’t load"}],["$","p",null,{"style":{"fontSize":"14px","fontWeight":400,"lineHeight":"21px","margin":"0 0 20px 0","color":"var(--next-error-message)"},"children":"A server error occurred. Reload to try again."}],["$","form",null,{"style":{"margin":0},"children":["$","button",null,{"type":"submit","style":{"display":"inline-flex","alignItems":"center","justifyContent":"center","height":"32px","padding":"0 12px","fontSize":"14px","fontWeight":500,"lineHeight":"20px","borderRadius":"6px","cursor":"pointer","color":"var(--next-error-btn-text)","background":"var(--next-error-btn-bg)","border":"var(--next-error-btn-border)"},"children":"Reload"}]}]]}]}]}]]}],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":"$@5","staleTime":"$6","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$L7",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L8",null,{"children":["$","$3",null,{"name":"Next.Metadata","children":[]}]}]}],null]}],"isPartial":"$@9","staleTime":"$6","varyParams":null},{"rsc":["$","$1","c",{"children":[null,["$","$La",null,{"parallelRouterKey":"children","template":["$","$Lb",null,{}]}]]}],"isPartial":"$@c","staleTime":"$6","varyParams":"$d"},{"rsc":["$","$1","c",{"children":[null,["$","$La",null,{"parallelRouterKey":"children","template":["$","$Lb",null,{}]}]]}],"isPartial":"$@e","staleTime":"$6","varyParams":"$d"}],"isUpgradeableISRFallback":false,"a":"$@f","rootVaryParams":null,"needsRuntimeRequest":"$@10"}
|
|
12
12
|
4:null
|
|
13
13
|
6:300
|
|
14
14
|
10:true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"_global-error","param":null,"prefetchHints":4208,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4272,"slots":null}}}}},"staleTime":300,"buildId":"
|
|
1
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"_global-error","param":null,"prefetchHints":4208,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4272,"slots":null}}}}},"staleTime":300,"buildId":"HEI7XSH5vSn7KCIANvzFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/459a9ed40847a72f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/6ba662805d17ffc2.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/080ec3dba8907e83.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-eb6e3e22d2f9faa2.js"/><script src="/_next/static/chunks/4bd1b696-92152b0f5947070d.js" async=""></script><script src="/_next/static/chunks/794-d1a40dcf24d651d9.js" async=""></script><script src="/_next/static/chunks/main-app-1a92e20ec190a32b.js" async=""></script><meta name="robots" content="noindex"/><meta name="theme-color" content="#fcfbf9" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#2e3440" media="(prefers-color-scheme: dark)"/><title>pi</title><meta name="description" content="Web UI for the pi coding agent"/><link rel="icon" href="/icon.svg?779ce17318f43f72" type="image/svg+xml" sizes="any"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-eb6e3e22d2f9faa2.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n4:I[484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[484,[],\"ViewportBoundary\"]\na:I[484,[],\"MetadataBoundary\"]\nc:I[7123,[],\"default\",1]\n:HL[\"/_next/static/css/459a9ed40847a72f.css\",\"style\"]\n:HL[\"/_next/static/css/6ba662805d17ffc2.css\",\"style\"]\n:HL[\"/_next/static/css/080ec3dba8907e83.css\",\"style\"]\n7:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/459a9ed40847a72f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/6ba662805d17ffc2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/080ec3dba8907e83.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"suppressHydrationWarning\":true,\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"
|
|
1
|
+
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/css/459a9ed40847a72f.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/6ba662805d17ffc2.css" data-precedence="next"/><link rel="stylesheet" href="/_next/static/css/080ec3dba8907e83.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-eb6e3e22d2f9faa2.js"/><script src="/_next/static/chunks/4bd1b696-92152b0f5947070d.js" async=""></script><script src="/_next/static/chunks/794-d1a40dcf24d651d9.js" async=""></script><script src="/_next/static/chunks/main-app-1a92e20ec190a32b.js" async=""></script><meta name="robots" content="noindex"/><meta name="theme-color" content="#fcfbf9" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#2e3440" media="(prefers-color-scheme: dark)"/><title>pi</title><meta name="description" content="Web UI for the pi coding agent"/><link rel="icon" href="/icon.svg?779ce17318f43f72" type="image/svg+xml" sizes="any"/><title>404: This page could not be found.</title><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-eb6e3e22d2f9faa2.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[7121,[],\"\"]\n3:I[4581,[],\"\"]\n4:I[484,[],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[484,[],\"ViewportBoundary\"]\na:I[484,[],\"MetadataBoundary\"]\nc:I[7123,[],\"default\",1]\n:HL[\"/_next/static/css/459a9ed40847a72f.css\",\"style\"]\n:HL[\"/_next/static/css/6ba662805d17ffc2.css\",\"style\"]\n:HL[\"/_next/static/css/080ec3dba8907e83.css\",\"style\"]\n7:X\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"_not-found\",{\"children\":[\"__PAGE__\",{},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4608]},\"$undefined\",\"$undefined\",4624],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/459a9ed40847a72f.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/6ba662805d17ffc2.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"link\",\"2\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/080ec3dba8907e83.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"zh-CN\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"suppressHydrationWarning\":true,\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"HEI7XSH5vSn7KCIANvzFC\"}\n7:C\n9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"2\",{\"name\":\"theme-color\",\"content\":\"#fcfbf9\",\"media\":\"(prefers-color-scheme: light)\"}],[\"$\",\"meta\",\"3\",{\"name\":\"theme-color\",\"content\":\"#2e3440\",\"media\":\"(prefers-color-scheme: dark)\"}]]\nd:I[6869,[],\"IconMark\"]\n6:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"pi\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Web UI for the pi coding agent\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?779ce17318f43f72\",\"type\":\"image/svg+xml\",\"sizes\":\"any\"}],[\"$\",\"$Ld\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -10,7 +10,7 @@ c:I[7123,[],"default",1]
|
|
|
10
10
|
:HL["/_next/static/css/6ba662805d17ffc2.css","style"]
|
|
11
11
|
:HL["/_next/static/css/080ec3dba8907e83.css","style"]
|
|
12
12
|
7:X
|
|
13
|
-
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/459a9ed40847a72f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/6ba662805d17ffc2.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/080ec3dba8907e83.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":["$","body",null,{"suppressHydrationWarning":true,"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"
|
|
13
|
+
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/459a9ed40847a72f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/6ba662805d17ffc2.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/080ec3dba8907e83.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":["$","body",null,{"suppressHydrationWarning":true,"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"HEI7XSH5vSn7KCIANvzFC"}
|
|
14
14
|
7:C
|
|
15
15
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#fcfbf9","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#2e3440","media":"(prefers-color-scheme: dark)"}]]
|
|
16
16
|
d:I[6869,[],"IconMark"]
|
|
@@ -10,7 +10,7 @@ c:I[7123,[],"default",1]
|
|
|
10
10
|
:HL["/_next/static/css/6ba662805d17ffc2.css","style"]
|
|
11
11
|
:HL["/_next/static/css/080ec3dba8907e83.css","style"]
|
|
12
12
|
7:X
|
|
13
|
-
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/459a9ed40847a72f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/6ba662805d17ffc2.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/080ec3dba8907e83.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":["$","body",null,{"suppressHydrationWarning":true,"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"
|
|
13
|
+
0:{"P":null,"c":["","_not-found"],"q":"","i":false,"f":[[["",{"children":["_not-found",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/459a9ed40847a72f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/6ba662805d17ffc2.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/080ec3dba8907e83.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":["$","body",null,{"suppressHydrationWarning":true,"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L4",null,{"children":["$","$5",null,{"name":"Next.MetadataOutlet","children":"$@6"}]}]]}],{},null,false,null]},null,false,"$7"]},null,false,null],["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L8",null,{"children":"$L9"}],["$","div",null,{"hidden":true,"children":["$","$La",null,{"children":["$","$5",null,{"name":"Next.Metadata","children":"$Lb"}]}]}],null]}],false]],"m":"$undefined","G":["$c",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"HEI7XSH5vSn7KCIANvzFC"}
|
|
14
14
|
7:C
|
|
15
15
|
9:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#fcfbf9","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#2e3440","media":"(prefers-color-scheme: dark)"}]]
|
|
16
16
|
d:I[6869,[],"IconMark"]
|
|
@@ -12,7 +12,7 @@ c:I[4581,[],""]
|
|
|
12
12
|
6:X
|
|
13
13
|
e:X
|
|
14
14
|
e:C
|
|
15
|
-
0:{"buildId":"
|
|
15
|
+
0:{"buildId":"HEI7XSH5vSn7KCIANvzFC","data":[{"rsc":["$","$1","c",{"children":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],null,["$","$L2",null,{"children":["$","$3",null,{"name":"Next.MetadataOutlet","children":"$@4"}]}]]}],"isPartial":"$@5","staleTime":"$6","varyParams":null},{"rsc":["$","$1","h",{"children":[["$","meta",null,{"name":"robots","content":"noindex"}],["$","$L7",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#fcfbf9","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#2e3440","media":"(prefers-color-scheme: dark)"}]]}],["$","div",null,{"hidden":true,"children":["$","$L8",null,{"children":["$","$3",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"pi"}],["$","meta","1",{"name":"description","content":"Web UI for the pi coding agent"}],["$","link","2",{"rel":"icon","href":"/icon.svg?779ce17318f43f72","type":"image/svg+xml","sizes":"any"}],["$","$L9","3",{}]]}]}]}],null]}],"isPartial":"$@a","staleTime":"$6","varyParams":null},{"rsc":["$","$1","c",{"children":[null,["$","$Lb",null,{"parallelRouterKey":"children","template":["$","$Lc",null,{}]}]]}],"isPartial":"$@d","staleTime":"$6","varyParams":"$e"},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/459a9ed40847a72f.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/6ba662805d17ffc2.css","precedence":"next"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/080ec3dba8907e83.css","precedence":"next"}]],["$","html",null,{"lang":"zh-CN","suppressHydrationWarning":true,"children":["$","body",null,{"suppressHydrationWarning":true,"children":["$","$Lb",null,{"parallelRouterKey":"children","template":["$","$Lc",null,{}]}]}]}]]}],"isPartial":"$@f","staleTime":"$6","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@10","rootVaryParams":null,"needsRuntimeRequest":"$@11"}
|
|
16
16
|
4:null
|
|
17
17
|
6:300
|
|
18
18
|
11:true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
:HL["/_next/static/css/459a9ed40847a72f.css","style"]
|
|
2
2
|
:HL["/_next/static/css/6ba662805d17ffc2.css","style"]
|
|
3
3
|
:HL["/_next/static/css/080ec3dba8907e83.css","style"]
|
|
4
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"_not-found","param":null,"prefetchHints":4192,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}}}},"staleTime":300,"buildId":"
|
|
4
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"_not-found","param":null,"prefetchHints":4192,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}}}},"staleTime":300,"buildId":"HEI7XSH5vSn7KCIANvzFC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{var a={};a.id=437,a.ids=[437],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7371:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>i,dynamic:()=>j});var e=c(23211),f=c(66562),g=c(28686),h=a([f,g]);[f,g]=h.then?(await h)():h;let j="force-dynamic";async function i(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({success:!1,error:"invalid JSON body"},{status:400})}if(!b||"object"!=typeof b||Array.isArray(b))return e.NextResponse.json({success:!1,error:"expected an object body"},{status:400});let{target:c,action:d}=b;if("piweb"!==c&&"pi"!==c)return e.NextResponse.json({success:!1,error:"unknown target"},{status:400});if("check"!==d&&"update"!==d)return e.NextResponse.json({success:!1,error:"unknown action"},{status:400});try{if("check"===d)return e.NextResponse.json({success:!0,data:await (0,f.lX)(c)});let a=async()=>{if(Object.values((0,g.Rq)()).some(a=>a.streaming))throw new f.TR("An agent session is running. Wait for it to finish and update in a maintenance window; do not start new sessions until the release is ready.")};return await a(),e.NextResponse.json({success:!0,data:await (0,f.PG)(c,{assertIdle:a})})}catch(a){return e.NextResponse.json({success:!1,error:a instanceof Error?a.message:String(a)},{status:a instanceof f.TR?409:500})}}d()}catch(a){d(a)}})},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{"use strict";a.exports=require("assert")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23617:(a,b,c)=>{"use strict";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/update/route",pathname:"/api/update",filename:"route",bundlePath:"app/api/update/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/PiWeb/PiWeb/src/app/api/update/route.ts",nextConfigOutput:"",userland:()=>c(7371),...{}}),{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/update/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)}}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},39006:a=>{"use strict";a.exports={rE:"0.3.7"}},41300:(a,b,c)=>{"use strict";c.d(b,{e:()=>f});var d=c(73024),e=c(73136);function f(a){if(!process.argv[1])return!1;try{return d.realpathSync(process.argv[1])===d.realpathSync((0,e.fileURLToPath)(a))}catch{return!1}}},41948:(a,b,c)=>{"use strict";c.d(b,{d:()=>f});var d=c(31421);async function e(a){if(!a.pid)return void a.kill();if("win32"!==process.platform){try{process.kill(-a.pid,"SIGKILL")}catch{a.kill("SIGKILL")}return}await new Promise(b=>{let c=(0,d.spawn)("taskkill",["/PID",String(a.pid),"/T","/F"],{stdio:"ignore",windowsHide:!0}),e=setTimeout(()=>{a.kill(),c.kill(),b()},1e4),f=()=>{clearTimeout(e),b()};c.once("error",()=>{a.kill(),f()}),c.once("close",f)})}function f(a,b,{cwd:c,env:g=process.env,timeoutMs:h=6e5,signal:i}){return new Promise((f,j)=>{if(i?.aborted)return void j(Error("release cancelled"));let k="win32"===process.platform&&"npm"===a,l=(0,d.spawn)(k?g.ComSpec||"cmd.exe":a,k?["/d","/c","npm",...b]:b,{cwd:c,env:g,windowsHide:!0,detached:"win32"!==process.platform,stdio:["ignore","pipe","pipe"]}),m="",n="",o=!1,p=!1,q=()=>{clearTimeout(u),i?.removeEventListener("abort",t)},r=a=>{p||(p=!0,q(),j(a))},s=a=>{p||o||(o=!0,e(l).then(()=>r(Error(a)),r))},t=()=>s("release cancelled; command process tree terminated"),u=setTimeout(()=>s(`timeout after ${Math.round(h/1e3)}s: ${a} ${b.join(" ")}`),h);i?.addEventListener("abort",t,{once:!0}),i?.aborted&&t(),l.stdout.on("data",a=>{m=(m+a).slice(-262144)}),l.stderr.on("data",a=>{n=(n+a).slice(-262144)}),l.once("error",a=>{o||r(a)}),l.once("close",a=>{if(!o&&!p){if(0!==a)return void r(Error((n||m||`exit code ${a}`).trim().slice(-1e3)));p=!0,q(),f(m)}})})}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48379:a=>{function b(a){return Promise.resolve().then(()=>{var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b})}b.keys=()=>[],b.resolve=b,b.id=48379,a.exports=b},51455:a=>{"use strict";a.exports=require("node:fs/promises")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66562:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{PG:()=>v,TR:()=>s,lX:()=>u});var e=c(51455),f=c.n(e),g=c(76760),h=c.n(g),i=c(72053),j=c(93340),k=c(41948),l=c(68293),m=c(62433),n=c(75717),o=c(92584),p=a([i,m,n]);[i,m,n]=p.then?(await p)():p;class s extends Error{}function q(a){if("piweb"!==a&&"pi"!==a)throw Error("unknown target")}async function r(a){let b=JSON.parse(await f().readFile(a,"utf8"));if("string"!=typeof b.version||!b.version)throw Error(`no version field in ${a}`);return b.version}let t=function({root:a=o.V,run:b=k.d,versions:c=n.Y,env:d=process.env}={}){let e=!1,g={...d};async function p(){return(0,j.f6)(a)}async function t(a,{assertIdle:c=async()=>{}}={}){if(q(a),e)throw new s("an update is already running");e=!0;try{let e=await p(),k="";return{...await (0,i.vn)({root:e,env:d,run:b,beforePrepare:async()=>{if(await c(),"piweb"===a){let a=a=>b("git",a,{cwd:e,env:g,timeoutMs:15e3}),c=(await a(["rev-parse","--show-toplevel"])).trim(),d=await f().realpath(c).catch(()=>h().resolve(c));if(!(0,m.Eb)(d,e))throw Error("refusing to update: PiWeb is not the Git installation root");if((await a(["status","--porcelain","--untracked-files=no"])).trim())throw Error("PiWeb has local tracked changes; preserve them before updating (no files were reset)")}await c()},prepare:async d=>{let{env:f,signal:g}=d,l=(a,c,d)=>b(a,c,{cwd:e,env:f,timeoutMs:d,signal:g});"pi"===a?k=await (0,i.eh)(d,c):(await c(),await l("git",["pull","--ff-only","origin","main"],12e4),(0,j.f6)(e),await c(),await l("npm",["install","--no-audit","--no-fund"],6e5),k=await r(h().join(e,"package.json")))}}),version:k,needsRestart:!0}}finally{e=!1}}return delete g.PI_WEB_PASSWORD,{checkForUpdate:async function(a){if(q(a),e)throw new s("an update is already running");let d=await p(),f=(a,c,e)=>b(a,c,{cwd:d,env:g,timeoutMs:e}),{piWeb:h,piEngine:j}=await c();if("pi"===a){let a=(await f("npm",["view",i.V0,"version"],3e4)).trim().split(/\r?\n/)[0];return{current:j,latest:a,canUpdate:(0,l.U)(a,j)}}await f("git",["fetch","origin","main","--tags"],3e4);let k=Number((await f("git",["rev-list","--count","HEAD..origin/main"],15e3)).trim());if(!Number.isSafeInteger(k)||k<0)throw Error("invalid upstream commit count");let m=JSON.parse(await f("git",["show","origin/main:package.json"],15e3));if(!["piweb","pi-web","@rexvane/piweb"].includes(String(m.name))||"string"!=typeof m.version||!m.version)throw Error("upstream is not a PiWeb package");return{current:h,latest:m.version,behind:k,canUpdate:(0,l.U)(m.version,h)||k>0}},runUpdate:t}}(),u=t.checkForUpdate,v=t.runUpdate;d()}catch(a){d(a)}})},68293:(a,b,c)=>{"use strict";function d(a){let b=a.trim().replace(/^v/i,"").match(/^(\d+)\.(\d+)(?:\.(\d+))?(?:-([0-9A-Za-z.-]+))?/);return b?{nums:[Number(b[1]),Number(b[2]),Number(b[3]??0)],pre:b[4]?b[4].split("."):[]}:null}function e(a,b){let c=d(a),e=d(b);if(!c||!e)return!1;for(let a=0;a<3;a+=1)if(c.nums[a]!==e.nums[a])return c.nums[a]>e.nums[a];if(!c.pre.length||!e.pre.length)return 0===c.pre.length&&e.pre.length>0;let f=Math.max(c.pre.length,e.pre.length);for(let a=0;a<f;a+=1){let b=c.pre[a],d=e.pre[a];if(void 0===b)break;if(void 0===d)return!0;let f=/^\d+$/.test(b),g=/^\d+$/.test(d);if(f&&g){if(Number(b)!==Number(d))return Number(b)>Number(d);continue}if(f!==g)return g;if(b!==d)return b>d}return!1}c.d(b,{U:()=>e})},72053:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{V0:()=>u,eh:()=>q,vn:()=>r});var e=c(51455),f=c(76760),g=c(77598),h=c(98995),i=c(73136),j=c(93340),k=c(41948),l=c(41300);let a=f.resolve(f.dirname((0,i.fileURLToPath)("file:///home/runner/work/PiWeb/PiWeb/scripts/release.mjs")),".."),s=`${j.Dy}/update.lock`,t=`${j.Dy}/tsconfig.json`;async function m(a,b,c){let d=(0,j.V6)(a,b),f=(0,j.V6)(a,`${b}.${(0,g.randomUUID)()}.tmp`),h=await e.open(f,"wx",384);try{try{await h.writeFile(`${JSON.stringify(c,null,2)}
|
|
2
|
-
`,"utf8"),await h.sync()}finally{await h.close()}await e.rename(f,d)}finally{await e.rm(f,{force:!0})}}async function n(a){let b,c=(0,j.V6)(a,s);try{b=await e.open(c,"wx",384)}catch(a){if("EEXIST"===a.code)throw Error(`an update/build is already running (${c}); after an interrupted build, confirm its process tree has stopped before removing this lock and retrying npm run build:release`);throw a}try{await b.writeFile(JSON.stringify({pid:process.pid,startedAt:new Date().toISOString()}))}catch(a){throw await b.close(),await e.unlink(c),a}return async()=>{await b.close(),await e.unlink(c)}}async function o(a,b){let c=b.slice(`${j.Dy}/`.length);await m(a,t,{extends:"../tsconfig.json",compilerOptions:{tsBuildInfoFile:`./${c}.tsbuildinfo`},include:["../next-env.d.ts","../*.ts","../*.mts","../src/**/*.ts","../src/**/*.tsx","../tests/**/*.ts","../tests/**/*.tsx",`./${c}/types/**/*.ts`,`./${c}/dev/types/**/*.ts`],exclude:["../node_modules","../pi","../dsh","../bin"]})}async function p(a=process.cwd(),b=process.env){let d=(0,j.f6)(a),e=(0,j.Qz)(d,b.PIWEB_BUILD_DIR);if(!e.startsWith(`${j.Dy}/`))throw Error("release requires an isolated build output");let g=(0,h.createRequire)(f.join(d,"package.json")),k=await c(48379)((0,i.pathToFileURL)(g.resolve("next/dist/server/config.js")).href),l="function"==typeof k.default?k.default:k.default.default,{PHASE_PRODUCTION_BUILD:m}=g("next/constants"),n=await l(m,d,{silent:!0});if(n.distDir!==e||n.typescript?.tsconfigPath!==t||n.typescript?.ignoreBuildErrors)throw Error("Next config does not honor the isolated release directory/typecheck; refusing to build over the serving output")}let u="@earendil-works/pi-coding-agent";async function q({root:a,env:b,run:c,signal:d},g=async()=>{}){await g(),await c("npm",["install","--save-exact",`${u}@latest`,"@earendil-works/pi-ai@latest","--no-audit","--no-fund"],{cwd:a,env:b,timeoutMs:6e5,signal:d}),await c("npm",["run","sync:provider-icons"],{cwd:a,env:b,timeoutMs:6e4,signal:d});let h=JSON.parse(await e.readFile(f.join(a,"node_modules",u,"package.json"),"utf8"));if("string"!=typeof h.version||!h.version)throw Error("Pi engine package version is missing");return h.version}async function r({root:b=a,env:c=process.env,run:d=k.d,beforePrepare:h,prepare:i,signal:l}={}){let p,q=(0,j.f6)(b),s=(0,j.V6)(q,j.Dy);await e.mkdir(s,{recursive:!0}),(0,j.V6)(q,j.Dy);let t=await n(q),u=!1;try{await h?.(),l?.throwIfAborted();let a=(0,j.Qz)(q,`${j.Dy}/${Date.now().toString(36)}-${(0,g.randomUUID)()}`);await e.mkdir((0,j.V6)(q,a)),p={schema:1,state:"building",buildDir:a,startedAt:new Date().toISOString()},await m(q,j.Op,p),u=!0;let b={...c,PI_WEB_ROOT:q,PIWEB_BUILD_DIR:a,PYTHONUTF8:c.PYTHONUTF8??"1",PYTHONIOENCODING:c.PYTHONIOENCODING??"utf-8"};delete b.PI_WEB_PASSWORD,delete b.PI_WEB_DEV,delete b.NODE_ENV,await i?.({root:q,buildDir:a,env:b,run:d,signal:l}),l?.throwIfAborted(),(0,j.f6)(q),await o(q,a),await d(process.execPath,[f.join(q,"scripts","release.mjs"),"--verify-config"],{cwd:q,env:b,timeoutMs:6e4,signal:l}),await d("npm",["run","check"],{cwd:q,env:b,timeoutMs:6e5,signal:l}),l?.throwIfAborted();let k=(0,j.kI)(q,a),n=JSON.parse(await e.readFile(f.join(q,"package.json"),"utf8")).version;if("string"!=typeof n||!n)throw Error("PiWeb package version is missing");return await m(q,j.Op,{...p,...k,state:"ready",version:n,finishedAt:new Date().toISOString()}),{...k,version:n,needsRestart:!0}}catch(a){if(u)try{await m(q,j.Op,{...p,state:"failed",finishedAt:new Date().toISOString()})}catch{}throw a}finally{await t()}}if((0,l.e)("file:///home/runner/work/PiWeb/PiWeb/scripts/release.mjs")){let a=new AbortController,b=()=>a.abort();process.once("SIGINT",b),process.once("SIGTERM",b);try{if(3===process.argv.length&&"--verify-config"===process.argv[2])await p();else{let b=3===process.argv.length&&"--update-pi"===process.argv[2];if(process.argv.length>2&&!b)throw Error("Usage: node scripts/release.mjs [--update-pi]");console.log("[piweb] Checking and building an isolated release; the existing server is not restarted."),b&&console.log("[piweb] Pi dependency update: use a maintenance window with no active sessions; node_modules is shared.");let c=await r({signal:a.signal,prepare:b?async a=>{await q(a)}:void 0});console.log(`[piweb] Release ready: ${c.buildDir} (${c.buildId}). Restart PiWeb manually when idle to use it.`)}}catch(a){console.error(`[piweb] Release failed: ${a instanceof Error?a.message:a}`),process.exitCode=1}finally{process.off("SIGINT",b),process.off("SIGTERM",b)}}d()}catch(a){d(a)}},1)},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},75717:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Y:()=>h});var e=c(75430),f=c(39006),g=a([e]);function h(){return Promise.resolve({piWeb:f.rE,piEngine:e.VERSION})}e=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},81115:a=>{"use strict";a.exports=require("constants")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92584:(a,b,c)=>{"use strict";c.d(b,{V:()=>e});var d=c(76760);let e=c.n(d)().resolve(process.env.PI_WEB_ROOT??process.cwd())},93340:(a,b,c)=>{"use strict";c.d(b,{Dy:()=>f,Op:()=>g,Qz:()=>i,V6:()=>j,f6:()=>k,kI:()=>m});var d=c(73024),e=c(76760);let f=".next-releases",g=`${f}/active.json`,h=/^\.next-releases\/[A-Za-z0-9_-]{1,100}$/;function i(a,b){let c=void 0===b?".next":b;if("string"!=typeof c||".next"!==c&&!h.test(c))throw Error("PIWEB_BUILD_DIR must be .next or .next-releases/<safe-id>");return j(a,c),c}function j(a,b){if("string"!=typeof b||!b||b.includes("\\")||b.includes(":"))throw Error("invalid project-relative path");let c=b.split("/");if(c.some(a=>!a||"."===a||".."===a))throw Error("invalid project-relative path");let f=d.realpathSync(a),g=f;for(let a of c){let c;g=e.join(g,a);try{c=d.lstatSync(g)}catch(a){if("ENOENT"===a.code)break;throw a}if(c.isSymbolicLink())throw Error(`refusing linked deployment path: ${b}`);let h=d.realpathSync(g),i=e.relative(f,h);if(".."===i||i.startsWith(`..${e.sep}`)||e.isAbsolute(i))throw Error(`deployment path escapes installation: ${b}`)}return e.join(f,...c)}function k(a){let b=d.realpathSync(a),c=j(b,"package.json"),e=JSON.parse(d.readFileSync(c,"utf8"));if(!["piweb","pi-web","@rexvane/piweb"].includes(e?.name))throw Error(`refusing to update outside the PiWeb installation: ${b}`);return b}function l(a,b,c=1048576){let e=j(a,b),f=d.statSync(e);if(!f.isFile()||f.size>c)throw Error(`invalid deployment file: ${b}`);return d.readFileSync(e,"utf8")}function m(a,b){let c=i(a,b),e=l(a,`${c}/BUILD_ID`,1024).trim();if(!e||/\s/.test(e))throw Error(`invalid BUILD_ID in ${c}`);let f=JSON.parse(l(a,`${
|
|
1
|
+
(()=>{var a={};a.id=437,a.ids=[437],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},7371:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{POST:()=>i,dynamic:()=>j});var e=c(23211),f=c(66562),g=c(28686),h=a([f,g]);[f,g]=h.then?(await h)():h;let j="force-dynamic";async function i(a){let b;try{b=await a.json()}catch{return e.NextResponse.json({success:!1,error:"invalid JSON body"},{status:400})}if(!b||"object"!=typeof b||Array.isArray(b))return e.NextResponse.json({success:!1,error:"expected an object body"},{status:400});let{target:c,action:d}=b;if("piweb"!==c&&"pi"!==c)return e.NextResponse.json({success:!1,error:"unknown target"},{status:400});if("check"!==d&&"update"!==d)return e.NextResponse.json({success:!1,error:"unknown action"},{status:400});try{if("check"===d)return e.NextResponse.json({success:!0,data:await (0,f.lX)(c)});let a=async()=>{if(Object.values((0,g.Rq)()).some(a=>a.streaming))throw new f.TR("An agent session is running. Wait for it to finish and update in a maintenance window; do not start new sessions until the release is ready.")};return await a(),e.NextResponse.json({success:!0,data:await (0,f.PG)(c,{assertIdle:a})})}catch(a){return e.NextResponse.json({success:!1,error:a instanceof Error?a.message:String(a)},{status:a instanceof f.TR?409:500})}}d()}catch(a){d(a)}})},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{"use strict";a.exports=require("assert")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},23617:(a,b,c)=>{"use strict";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/update/route",pathname:"/api/update",filename:"route",bundlePath:"app/api/update/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/PiWeb/PiWeb/src/app/api/update/route.ts",nextConfigOutput:"",userland:()=>c(7371),...{}}),{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/update/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)}}},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31421:a=>{"use strict";a.exports=require("node:child_process")},33873:a=>{"use strict";a.exports=require("path")},39006:a=>{"use strict";a.exports={rE:"0.3.8"}},41300:(a,b,c)=>{"use strict";c.d(b,{e:()=>f});var d=c(73024),e=c(73136);function f(a){if(!process.argv[1])return!1;try{return d.realpathSync(process.argv[1])===d.realpathSync((0,e.fileURLToPath)(a))}catch{return!1}}},41948:(a,b,c)=>{"use strict";c.d(b,{d:()=>f});var d=c(31421);async function e(a){if(!a.pid)return void a.kill();if("win32"!==process.platform){try{process.kill(-a.pid,"SIGKILL")}catch{a.kill("SIGKILL")}return}await new Promise(b=>{let c=(0,d.spawn)("taskkill",["/PID",String(a.pid),"/T","/F"],{stdio:"ignore",windowsHide:!0}),e=setTimeout(()=>{a.kill(),c.kill(),b()},1e4),f=()=>{clearTimeout(e),b()};c.once("error",()=>{a.kill(),f()}),c.once("close",f)})}function f(a,b,{cwd:c,env:g=process.env,timeoutMs:h=6e5,signal:i}){return new Promise((f,j)=>{if(i?.aborted)return void j(Error("release cancelled"));let k="win32"===process.platform&&"npm"===a,l=(0,d.spawn)(k?g.ComSpec||"cmd.exe":a,k?["/d","/c","npm",...b]:b,{cwd:c,env:g,windowsHide:!0,detached:"win32"!==process.platform,stdio:["ignore","pipe","pipe"]}),m="",n="",o=!1,p=!1,q=()=>{clearTimeout(u),i?.removeEventListener("abort",t)},r=a=>{p||(p=!0,q(),j(a))},s=a=>{p||o||(o=!0,e(l).then(()=>r(Error(a)),r))},t=()=>s("release cancelled; command process tree terminated"),u=setTimeout(()=>s(`timeout after ${Math.round(h/1e3)}s: ${a} ${b.join(" ")}`),h);i?.addEventListener("abort",t,{once:!0}),i?.aborted&&t(),l.stdout.on("data",a=>{m=(m+a).slice(-262144)}),l.stderr.on("data",a=>{n=(n+a).slice(-262144)}),l.once("error",a=>{o||r(a)}),l.once("close",a=>{if(!o&&!p){if(0!==a)return void r(Error((n||m||`exit code ${a}`).trim().slice(-1e3)));p=!0,q(),f(m)}})})}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48379:a=>{function b(a){return Promise.resolve().then(()=>{var b=Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b})}b.keys=()=>[],b.resolve=b,b.id=48379,a.exports=b},51455:a=>{"use strict";a.exports=require("node:fs/promises")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},66562:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{PG:()=>v,TR:()=>s,lX:()=>u});var e=c(51455),f=c.n(e),g=c(76760),h=c.n(g),i=c(72053),j=c(93340),k=c(41948),l=c(68293),m=c(62433),n=c(75717),o=c(92584),p=a([i,m,n]);[i,m,n]=p.then?(await p)():p;class s extends Error{}function q(a){if("piweb"!==a&&"pi"!==a)throw Error("unknown target")}async function r(a){let b=JSON.parse(await f().readFile(a,"utf8"));if("string"!=typeof b.version||!b.version)throw Error(`no version field in ${a}`);return b.version}let t=function({root:a=o.V,run:b=k.d,versions:c=n.Y,env:d=process.env}={}){let e=!1,g={...d};async function p(){return(0,j.f6)(a)}async function t(a,{assertIdle:c=async()=>{}}={}){if(q(a),e)throw new s("an update is already running");e=!0;try{let e=await p(),k="";return{...await (0,i.vn)({root:e,env:d,run:b,beforePrepare:async()=>{if(await c(),"piweb"===a){let a=a=>b("git",a,{cwd:e,env:g,timeoutMs:15e3}),c=(await a(["rev-parse","--show-toplevel"])).trim(),d=await f().realpath(c).catch(()=>h().resolve(c));if(!(0,m.Eb)(d,e))throw Error("refusing to update: PiWeb is not the Git installation root");if((await a(["status","--porcelain","--untracked-files=no"])).trim())throw Error("PiWeb has local tracked changes; preserve them before updating (no files were reset)")}await c()},prepare:async d=>{let{env:f,signal:g}=d,l=(a,c,d)=>b(a,c,{cwd:e,env:f,timeoutMs:d,signal:g});"pi"===a?k=await (0,i.eh)(d,c):(await c(),await l("git",["pull","--ff-only","origin","main"],12e4),(0,j.f6)(e),await c(),await l("npm",["install","--no-audit","--no-fund"],6e5),k=await r(h().join(e,"package.json")))}}),version:k,needsRestart:!0}}finally{e=!1}}return delete g.PI_WEB_PASSWORD,{checkForUpdate:async function(a){if(q(a),e)throw new s("an update is already running");let d=await p(),f=(a,c,e)=>b(a,c,{cwd:d,env:g,timeoutMs:e}),{piWeb:h,piEngine:j}=await c();if("pi"===a){let a=(await f("npm",["view",i.V0,"version"],3e4)).trim().split(/\r?\n/)[0];return{current:j,latest:a,canUpdate:(0,l.U)(a,j)}}await f("git",["fetch","origin","main","--tags"],3e4);let k=Number((await f("git",["rev-list","--count","HEAD..origin/main"],15e3)).trim());if(!Number.isSafeInteger(k)||k<0)throw Error("invalid upstream commit count");let m=JSON.parse(await f("git",["show","origin/main:package.json"],15e3));if(!["piweb","pi-web","@rexvane/piweb"].includes(String(m.name))||"string"!=typeof m.version||!m.version)throw Error("upstream is not a PiWeb package");return{current:h,latest:m.version,behind:k,canUpdate:(0,l.U)(m.version,h)||k>0}},runUpdate:t}}(),u=t.checkForUpdate,v=t.runUpdate;d()}catch(a){d(a)}})},68293:(a,b,c)=>{"use strict";function d(a){let b=a.trim().replace(/^v/i,"").match(/^(\d+)\.(\d+)(?:\.(\d+))?(?:-([0-9A-Za-z.-]+))?/);return b?{nums:[Number(b[1]),Number(b[2]),Number(b[3]??0)],pre:b[4]?b[4].split("."):[]}:null}function e(a,b){let c=d(a),e=d(b);if(!c||!e)return!1;for(let a=0;a<3;a+=1)if(c.nums[a]!==e.nums[a])return c.nums[a]>e.nums[a];if(!c.pre.length||!e.pre.length)return 0===c.pre.length&&e.pre.length>0;let f=Math.max(c.pre.length,e.pre.length);for(let a=0;a<f;a+=1){let b=c.pre[a],d=e.pre[a];if(void 0===b)break;if(void 0===d)return!0;let f=/^\d+$/.test(b),g=/^\d+$/.test(d);if(f&&g){if(Number(b)!==Number(d))return Number(b)>Number(d);continue}if(f!==g)return g;if(b!==d)return b>d}return!1}c.d(b,{U:()=>e})},72053:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{V0:()=>u,eh:()=>q,vn:()=>r});var e=c(51455),f=c(76760),g=c(77598),h=c(98995),i=c(73136),j=c(93340),k=c(41948),l=c(41300);let a=f.resolve(f.dirname((0,i.fileURLToPath)("file:///home/runner/work/PiWeb/PiWeb/scripts/release.mjs")),".."),s=`${j.Dy}/update.lock`,t=`${j.Dy}/tsconfig.json`;async function m(a,b,c){let d=(0,j.V6)(a,b),f=(0,j.V6)(a,`${b}.${(0,g.randomUUID)()}.tmp`),h=await e.open(f,"wx",384);try{try{await h.writeFile(`${JSON.stringify(c,null,2)}
|
|
2
|
+
`,"utf8"),await h.sync()}finally{await h.close()}await e.rename(f,d)}finally{await e.rm(f,{force:!0})}}async function n(a){let b,c=(0,j.V6)(a,s);try{b=await e.open(c,"wx",384)}catch(a){if("EEXIST"===a.code)throw Error(`an update/build is already running (${c}); after an interrupted build, confirm its process tree has stopped before removing this lock and retrying npm run build:release`);throw a}try{await b.writeFile(JSON.stringify({pid:process.pid,startedAt:new Date().toISOString()}))}catch(a){throw await b.close(),await e.unlink(c),a}return async()=>{await b.close(),await e.unlink(c)}}async function o(a,b){let c=b.slice(`${j.Dy}/`.length);await m(a,t,{extends:"../tsconfig.json",compilerOptions:{tsBuildInfoFile:`./${c}.tsbuildinfo`},include:["../next-env.d.ts","../*.ts","../*.mts","../src/**/*.ts","../src/**/*.tsx","../tests/**/*.ts","../tests/**/*.tsx",`./${c}/types/**/*.ts`,`./${c}/dev/types/**/*.ts`],exclude:["../node_modules","../pi","../dsh","../bin"]})}async function p(a=process.cwd(),b=process.env){let d=(0,j.f6)(a),e=(0,j.Qz)(d,b.PIWEB_BUILD_DIR);if(!e.startsWith(`${j.Dy}/`))throw Error("release requires an isolated build output");let g=(0,h.createRequire)(f.join(d,"package.json")),k=await c(48379)((0,i.pathToFileURL)(g.resolve("next/dist/server/config.js")).href),l="function"==typeof k.default?k.default:k.default.default,{PHASE_PRODUCTION_BUILD:m}=g("next/constants"),n=await l(m,d,{silent:!0});if(n.distDir!==e||n.typescript?.tsconfigPath!==t||n.typescript?.ignoreBuildErrors)throw Error("Next config does not honor the isolated release directory/typecheck; refusing to build over the serving output")}let u="@earendil-works/pi-coding-agent";async function q({root:a,env:b,run:c,signal:d},g=async()=>{}){await g(),await c("npm",["install","--save-exact",`${u}@latest`,"@earendil-works/pi-ai@latest","--no-audit","--no-fund"],{cwd:a,env:b,timeoutMs:6e5,signal:d}),await c("npm",["run","sync:provider-icons"],{cwd:a,env:b,timeoutMs:6e4,signal:d});let h=JSON.parse(await e.readFile(f.join(a,"node_modules",u,"package.json"),"utf8"));if("string"!=typeof h.version||!h.version)throw Error("Pi engine package version is missing");return h.version}async function r({root:b=a,env:c=process.env,run:d=k.d,beforePrepare:h,prepare:i,signal:l}={}){let p,q=(0,j.f6)(b),s=(0,j.V6)(q,j.Dy);await e.mkdir(s,{recursive:!0}),(0,j.V6)(q,j.Dy);let t=await n(q),u=!1;try{await h?.(),l?.throwIfAborted();let a=(0,j.Qz)(q,`${j.Dy}/${Date.now().toString(36)}-${(0,g.randomUUID)()}`);await e.mkdir((0,j.V6)(q,a)),p={schema:1,state:"building",buildDir:a,startedAt:new Date().toISOString()},await m(q,j.Op,p),u=!0;let b={...c,PI_WEB_ROOT:q,PIWEB_BUILD_DIR:a,PYTHONUTF8:c.PYTHONUTF8??"1",PYTHONIOENCODING:c.PYTHONIOENCODING??"utf-8"};delete b.PI_WEB_PASSWORD,delete b.PI_WEB_DEV,delete b.NODE_ENV,await i?.({root:q,buildDir:a,env:b,run:d,signal:l}),l?.throwIfAborted(),(0,j.f6)(q),await o(q,a),await d(process.execPath,[f.join(q,"scripts","release.mjs"),"--verify-config"],{cwd:q,env:b,timeoutMs:6e4,signal:l}),await d("npm",["run","check"],{cwd:q,env:b,timeoutMs:6e5,signal:l}),l?.throwIfAborted();let k=(0,j.kI)(q,a),n=JSON.parse(await e.readFile(f.join(q,"package.json"),"utf8")).version;if("string"!=typeof n||!n)throw Error("PiWeb package version is missing");return await m(q,j.Op,{...p,...k,state:"ready",version:n,finishedAt:new Date().toISOString()}),{...k,version:n,needsRestart:!0}}catch(a){if(u)try{await m(q,j.Op,{...p,state:"failed",finishedAt:new Date().toISOString()})}catch{}throw a}finally{await t()}}if((0,l.e)("file:///home/runner/work/PiWeb/PiWeb/scripts/release.mjs")){let a=new AbortController,b=()=>a.abort();process.once("SIGINT",b),process.once("SIGTERM",b);try{if(3===process.argv.length&&"--verify-config"===process.argv[2])await p();else{let b=3===process.argv.length&&"--update-pi"===process.argv[2];if(process.argv.length>2&&!b)throw Error("Usage: node scripts/release.mjs [--update-pi]");console.log("[piweb] Checking and building an isolated release; the existing server is not restarted."),b&&console.log("[piweb] Pi dependency update: use a maintenance window with no active sessions; node_modules is shared.");let c=await r({signal:a.signal,prepare:b?async a=>{await q(a)}:void 0});console.log(`[piweb] Release ready: ${c.buildDir} (${c.buildId}). Restart PiWeb manually when idle to use it.`)}}catch(a){console.error(`[piweb] Release failed: ${a instanceof Error?a.message:a}`),process.exitCode=1}finally{process.off("SIGINT",b),process.off("SIGTERM",b)}}d()}catch(a){d(a)}},1)},73024:a=>{"use strict";a.exports=require("node:fs")},73136:a=>{"use strict";a.exports=require("node:url")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},75717:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Y:()=>h});var e=c(75430),f=c(39006),g=a([e]);function h(){return Promise.resolve({piWeb:f.rE,piEngine:e.VERSION})}e=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},76760:a=>{"use strict";a.exports=require("node:path")},77598:a=>{"use strict";a.exports=require("node:crypto")},81115:a=>{"use strict";a.exports=require("constants")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92584:(a,b,c)=>{"use strict";c.d(b,{V:()=>e});var d=c(76760);let e=c.n(d)().resolve(process.env.PI_WEB_ROOT??process.cwd())},93340:(a,b,c)=>{"use strict";c.d(b,{Dy:()=>f,Op:()=>g,Qz:()=>i,V6:()=>j,f6:()=>k,kI:()=>m});var d=c(73024),e=c(76760);let f=".next-releases",g=`${f}/active.json`,h=/^\.next-releases\/[A-Za-z0-9_-]{1,100}$/;function i(a,b){let c=void 0===b?".next":b;if("string"!=typeof c||".next"!==c&&!h.test(c))throw Error("PIWEB_BUILD_DIR must be .next or .next-releases/<safe-id>");return j(a,c),c}function j(a,b){if("string"!=typeof b||!b||b.includes("\\")||b.includes(":"))throw Error("invalid project-relative path");let c=b.split("/");if(c.some(a=>!a||"."===a||".."===a))throw Error("invalid project-relative path");let f=d.realpathSync(a),g=f;for(let a of c){let c;g=e.join(g,a);try{c=d.lstatSync(g)}catch(a){if("ENOENT"===a.code)break;throw a}if(c.isSymbolicLink())throw Error(`refusing linked deployment path: ${b}`);let h=d.realpathSync(g),i=e.relative(f,h);if(".."===i||i.startsWith(`..${e.sep}`)||e.isAbsolute(i))throw Error(`deployment path escapes installation: ${b}`)}return e.join(f,...c)}function k(a){let b=d.realpathSync(a),c=j(b,"package.json"),e=JSON.parse(d.readFileSync(c,"utf8"));if(!["piweb","pi-web","@rexvane/piweb"].includes(e?.name))throw Error(`refusing to update outside the PiWeb installation: ${b}`);return b}function l(a,b,c=1048576){let e=j(a,b),f=d.statSync(e);if(!f.isFile()||f.size>c)throw Error(`invalid deployment file: ${b}`);return d.readFileSync(e,"utf8")}function m(a,b){let c=i(a,b),e=l(a,`${c}/BUILD_ID`,1024).trim();if(!e||/\s/.test(e))throw Error(`invalid BUILD_ID in ${c}`);let f=JSON.parse(function(a,b){try{return l(a,`${b}/required-server-files.json`)}catch(a){if("ENOENT"===a.code)throw Error(function(a,b="required-server-files.json"){return`incomplete production build in ${a}: ${b} is missing. Reinstall with \`npm install -g @rexvane/piweb@latest\`, or rebuild this installation with \`npm rebuild -g piweb\`.`}(b));throw a}}(a,c));if(f?.version!==1||f.config?.distDir?.replaceAll("\\","/")!==c)throw Error(`build output does not match ${c}`);if(!Array.isArray(f.files)||!f.files.length)throw Error(`incomplete build in ${c}`);let g=new Set(f.files.map(a=>"string"==typeof a?a.replaceAll("\\","/"):""));for(let a of["BUILD_ID","routes-manifest.json","build-manifest.json","prerender-manifest.json","server/app-paths-manifest.json"])g.add(`${c}/${a}`);for(let b of g){if(!b.startsWith(`${c}/`))throw Error(`invalid required build file: ${b}`);let e=j(a,b);if(!d.statSync(e).isFile())throw Error(`missing required build file: ${b}`)}return{buildDir:c,buildId:e}}},94735:a=>{"use strict";a.exports=require("events")},98995:a=>{"use strict";a.exports=require("node:module")}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[741,813,593,131,118,686],()=>b(b.s=23617));module.exports=c})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a={};a.id=922,a.ids=[922],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3376:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,dynamic:()=>i});var e=c(23211),f=c(75717),g=a([f]);f=(g.then?(await g)():g)[0];let i="force-dynamic";async function h(){return e.NextResponse.json({success:!0,data:{...await (0,f.Y)(),node:process.version}},{headers:{"Cache-Control":"no-store"}})}d()}catch(a){d(a)}})},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},39006:a=>{"use strict";a.exports={rE:"0.3.
|
|
1
|
+
(()=>{var a={};a.id=922,a.ids=[922],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3376:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>h,dynamic:()=>i});var e=c(23211),f=c(75717),g=a([f]);f=(g.then?(await g)():g)[0];let i="force-dynamic";async function h(){return e.NextResponse.json({success:!0,data:{...await (0,f.Y)(),node:process.version}},{headers:{"Cache-Control":"no-store"}})}d()}catch(a){d(a)}})},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},39006:a=>{"use strict";a.exports={rE:"0.3.8"}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46645:(a,b,c)=>{"use strict";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/version/route",pathname:"/api/version",filename:"route",bundlePath:"app/api/version/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/PiWeb/PiWeb/src/app/api/version/route.ts",nextConfigOutput:"",userland:()=>c(3376),...{}}),{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/version/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)}}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},75717:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Y:()=>h});var e=c(75430),f=c(39006),g=a([e]);function h(){return Promise.resolve({piWeb:f.rE,piEngine:e.VERSION})}e=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[741,813],()=>b(b.s=46645));module.exports=c})();
|