@colinxu/pi-web-classic 0.0.0-stage → 0.12.3

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.
Files changed (691) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +75 -0
  3. package/.next/build-manifest.json +20 -0
  4. package/.next/diagnostics/build-diagnostics.json +6 -0
  5. package/.next/diagnostics/framework.json +1 -0
  6. package/.next/export-marker.json +6 -0
  7. package/.next/images-manifest.json +68 -0
  8. package/.next/next-minimal-server.js.nft.json +1 -0
  9. package/.next/next-server.js.nft.json +1 -0
  10. package/.next/package.json +1 -0
  11. package/.next/prerender-manifest.json +157 -0
  12. package/.next/react-loadable-manifest.json +401 -0
  13. package/.next/required-server-files.js +398 -0
  14. package/.next/required-server-files.json +398 -0
  15. package/.next/routes-manifest.json +561 -0
  16. package/.next/server/app/_global-error/page.js +31 -0
  17. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  18. package/.next/server/app/_global-error.html +1 -0
  19. package/.next/server/app/_global-error.meta +35 -0
  20. package/.next/server/app/_global-error.rsc +14 -0
  21. package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  22. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -0
  23. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  24. package/.next/server/app/_not-found/page.js +1 -0
  25. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  26. package/.next/server/app/_not-found.html +1 -0
  27. package/.next/server/app/_not-found.meta +35 -0
  28. package/.next/server/app/_not-found.rsc +22 -0
  29. package/.next/server/app/_not-found.segments/_full.segment.rsc +22 -0
  30. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +28 -0
  31. package/.next/server/app/_not-found.segments/_tree.segment.rsc +7 -0
  32. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -0
  33. package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -0
  34. package/.next/server/app/api/agent/[id]/events/route.js +3 -0
  35. package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
  36. package/.next/server/app/api/agent/[id]/lease/route.js +1 -0
  37. package/.next/server/app/api/agent/[id]/lease/route_client-reference-manifest.js +1 -0
  38. package/.next/server/app/api/agent/[id]/route.js +1 -0
  39. package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
  40. package/.next/server/app/api/agent/new/route.js +1 -0
  41. package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
  42. package/.next/server/app/api/agent/running/route.js +1 -0
  43. package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -0
  44. package/.next/server/app/api/app-update/route.js +1 -0
  45. package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -0
  46. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -0
  47. package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
  48. package/.next/server/app/api/auth/login/[provider]/route.js +3 -0
  49. package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
  50. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -0
  51. package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
  52. package/.next/server/app/api/auth/providers/route.js +1 -0
  53. package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
  54. package/.next/server/app/api/cache-miss-notices/route.js +1 -0
  55. package/.next/server/app/api/cache-miss-notices/route_client-reference-manifest.js +1 -0
  56. package/.next/server/app/api/cwd/browse/route.js +1 -0
  57. package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -0
  58. package/.next/server/app/api/cwd/validate/route.js +1 -0
  59. package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -0
  60. package/.next/server/app/api/default-cwd/route.js +1 -0
  61. package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
  62. package/.next/server/app/api/file-index/route.js +1 -0
  63. package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/files/[...path]/route.js +49 -0
  65. package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
  66. package/.next/server/app/api/git/diff/route.js +6 -0
  67. package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -0
  68. package/.next/server/app/api/git/status/route.js +6 -0
  69. package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -0
  70. package/.next/server/app/api/home/route.js +1 -0
  71. package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
  72. package/.next/server/app/api/mcp/route.js +2 -0
  73. package/.next/server/app/api/mcp/route_client-reference-manifest.js +1 -0
  74. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -0
  75. package/.next/server/app/api/mcp/sign-in/[flowId]/route_client-reference-manifest.js +1 -0
  76. package/.next/server/app/api/mcp/sign-in/route.js +1 -0
  77. package/.next/server/app/api/mcp/sign-in/route_client-reference-manifest.js +1 -0
  78. package/.next/server/app/api/mcp/test/route.js +1 -0
  79. package/.next/server/app/api/mcp/test/route_client-reference-manifest.js +1 -0
  80. package/.next/server/app/api/models/default/route.js +1 -0
  81. package/.next/server/app/api/models/default/route_client-reference-manifest.js +1 -0
  82. package/.next/server/app/api/models/enabled/route.js +1 -0
  83. package/.next/server/app/api/models/enabled/route_client-reference-manifest.js +1 -0
  84. package/.next/server/app/api/models/refresh/route.js +1 -0
  85. package/.next/server/app/api/models/refresh/route_client-reference-manifest.js +1 -0
  86. package/.next/server/app/api/models/route.js +1 -0
  87. package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/models-config/catalog/route.js +1 -0
  89. package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -0
  90. package/.next/server/app/api/models-config/discover/route.js +1 -0
  91. package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -0
  92. package/.next/server/app/api/models-config/route.js +1 -0
  93. package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/models-config/test/route.js +1 -0
  95. package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
  96. package/.next/server/app/api/open-in-explorer/route.js +1 -0
  97. package/.next/server/app/api/open-in-explorer/route_client-reference-manifest.js +1 -0
  98. package/.next/server/app/api/plugins/check/route.js +1 -0
  99. package/.next/server/app/api/plugins/check/route_client-reference-manifest.js +1 -0
  100. package/.next/server/app/api/plugins/route.js +1 -0
  101. package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
  102. package/.next/server/app/api/project-trust/route.js +1 -0
  103. package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -0
  104. package/.next/server/app/api/provider-usage/query/route.js +1 -0
  105. package/.next/server/app/api/provider-usage/query/route_client-reference-manifest.js +1 -0
  106. package/.next/server/app/api/push/config/route.js +1 -0
  107. package/.next/server/app/api/push/config/route_client-reference-manifest.js +1 -0
  108. package/.next/server/app/api/push/subscribe/route.js +1 -0
  109. package/.next/server/app/api/push/subscribe/route_client-reference-manifest.js +1 -0
  110. package/.next/server/app/api/sessions/[id]/auto-name/route.js +11 -0
  111. package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -0
  112. package/.next/server/app/api/sessions/[id]/context/route.js +1 -0
  113. package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
  114. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -0
  115. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -0
  116. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -0
  117. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route_client-reference-manifest.js +1 -0
  118. package/.next/server/app/api/sessions/[id]/export/route.js +54 -0
  119. package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
  120. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -0
  121. package/.next/server/app/api/sessions/[id]/fork/route_client-reference-manifest.js +1 -0
  122. package/.next/server/app/api/sessions/[id]/route.js +1 -0
  123. package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
  124. package/.next/server/app/api/sessions/[id]/state/route.js +1 -0
  125. package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -0
  126. package/.next/server/app/api/sessions/delete/route.js +1 -0
  127. package/.next/server/app/api/sessions/delete/route_client-reference-manifest.js +1 -0
  128. package/.next/server/app/api/sessions/route.js +1 -0
  129. package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
  130. package/.next/server/app/api/sessions/search/route.js +1 -0
  131. package/.next/server/app/api/sessions/search/route_client-reference-manifest.js +1 -0
  132. package/.next/server/app/api/sessions/stats/route.js +1 -0
  133. package/.next/server/app/api/sessions/stats/route_client-reference-manifest.js +1 -0
  134. package/.next/server/app/api/sessions/ui-state/route.js +1 -0
  135. package/.next/server/app/api/sessions/ui-state/route_client-reference-manifest.js +1 -0
  136. package/.next/server/app/api/skills/check/route.js +1 -0
  137. package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
  138. package/.next/server/app/api/skills/content/route.js +1 -0
  139. package/.next/server/app/api/skills/content/route_client-reference-manifest.js +1 -0
  140. package/.next/server/app/api/skills/install/route.js +1 -0
  141. package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
  142. package/.next/server/app/api/skills/route.js +4 -0
  143. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
  144. package/.next/server/app/api/skills/search/route.js +1 -0
  145. package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
  146. package/.next/server/app/api/skills/update/route.js +1 -0
  147. package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
  148. package/.next/server/app/api/subagents/[id]/route.js +1 -0
  149. package/.next/server/app/api/subagents/[id]/route_client-reference-manifest.js +1 -0
  150. package/.next/server/app/api/subagents/profiles/route.js +1 -0
  151. package/.next/server/app/api/subagents/profiles/route_client-reference-manifest.js +1 -0
  152. package/.next/server/app/api/subagents/settings/route.js +1 -0
  153. package/.next/server/app/api/subagents/settings/route_client-reference-manifest.js +1 -0
  154. package/.next/server/app/api/terminal/[id]/events/route.js +4 -0
  155. package/.next/server/app/api/terminal/[id]/events/route_client-reference-manifest.js +1 -0
  156. package/.next/server/app/api/terminal/[id]/route.js +1 -0
  157. package/.next/server/app/api/terminal/[id]/route_client-reference-manifest.js +1 -0
  158. package/.next/server/app/api/terminal/route.js +1 -0
  159. package/.next/server/app/api/terminal/route_client-reference-manifest.js +1 -0
  160. package/.next/server/app/api/tools/settings/route.js +1 -0
  161. package/.next/server/app/api/tools/settings/route_client-reference-manifest.js +1 -0
  162. package/.next/server/app/api/web-auth/route.js +1 -0
  163. package/.next/server/app/api/web-auth/route_client-reference-manifest.js +1 -0
  164. package/.next/server/app/api/worktrees/route.js +1 -0
  165. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -0
  166. package/.next/server/app/favicon.ico/route.js +1 -0
  167. package/.next/server/app/favicon.ico.body +0 -0
  168. package/.next/server/app/favicon.ico.meta +1 -0
  169. package/.next/server/app/index.html +1 -0
  170. package/.next/server/app/index.meta +29 -0
  171. package/.next/server/app/index.rsc +23 -0
  172. package/.next/server/app/index.segments/__PAGE__.segment.rsc +27 -0
  173. package/.next/server/app/index.segments/_full.segment.rsc +23 -0
  174. package/.next/server/app/index.segments/_tree.segment.rsc +8 -0
  175. package/.next/server/app/login/page.js +1 -0
  176. package/.next/server/app/login/page_client-reference-manifest.js +1 -0
  177. package/.next/server/app/login.html +1 -0
  178. package/.next/server/app/login.meta +34 -0
  179. package/.next/server/app/login.rsc +26 -0
  180. package/.next/server/app/login.segments/_full.segment.rsc +26 -0
  181. package/.next/server/app/login.segments/_tree.segment.rsc +7 -0
  182. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +32 -0
  183. package/.next/server/app/manifest.webmanifest/route.js +17 -0
  184. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -0
  185. package/.next/server/app/page.js +309 -0
  186. package/.next/server/app/page_client-reference-manifest.js +1 -0
  187. package/.next/server/app-paths-manifest.json +75 -0
  188. package/.next/server/chunks/11.js +1 -0
  189. package/.next/server/chunks/1207.js +1 -0
  190. package/.next/server/chunks/1286.js +1 -0
  191. package/.next/server/chunks/1412.js +38 -0
  192. package/.next/server/chunks/1605.js +1 -0
  193. package/.next/server/chunks/169.js +1 -0
  194. package/.next/server/chunks/18.js +86 -0
  195. package/.next/server/chunks/1813.js +1 -0
  196. package/.next/server/chunks/1906.js +1 -0
  197. package/.next/server/chunks/2022.js +1 -0
  198. package/.next/server/chunks/2069.js +1 -0
  199. package/.next/server/chunks/2156.js +1 -0
  200. package/.next/server/chunks/2157.js +1 -0
  201. package/.next/server/chunks/2243.js +1 -0
  202. package/.next/server/chunks/2325.js +82 -0
  203. package/.next/server/chunks/2430.js +193 -0
  204. package/.next/server/chunks/2498.js +1 -0
  205. package/.next/server/chunks/27.js +1 -0
  206. package/.next/server/chunks/2838.js +1 -0
  207. package/.next/server/chunks/2897.js +79 -0
  208. package/.next/server/chunks/2970.js +165 -0
  209. package/.next/server/chunks/3227.js +1 -0
  210. package/.next/server/chunks/3266.js +1 -0
  211. package/.next/server/chunks/3379.js +1 -0
  212. package/.next/server/chunks/3428.js +32 -0
  213. package/.next/server/chunks/3479.js +1 -0
  214. package/.next/server/chunks/3618.js +1 -0
  215. package/.next/server/chunks/367.js +115 -0
  216. package/.next/server/chunks/3698.js +93 -0
  217. package/.next/server/chunks/3709.js +148 -0
  218. package/.next/server/chunks/3757.js +1 -0
  219. package/.next/server/chunks/3824.js +1 -0
  220. package/.next/server/chunks/4107.js +62 -0
  221. package/.next/server/chunks/426.js +14 -0
  222. package/.next/server/chunks/4569.js +34 -0
  223. package/.next/server/chunks/4698.js +1 -0
  224. package/.next/server/chunks/4755.js +153 -0
  225. package/.next/server/chunks/4815.js +3 -0
  226. package/.next/server/chunks/5002.js +1 -0
  227. package/.next/server/chunks/5112.js +1 -0
  228. package/.next/server/chunks/5289.js +8 -0
  229. package/.next/server/chunks/5318.js +1 -0
  230. package/.next/server/chunks/5452.js +23 -0
  231. package/.next/server/chunks/5453.js +1 -0
  232. package/.next/server/chunks/5582.js +8 -0
  233. package/.next/server/chunks/5749.js +27 -0
  234. package/.next/server/chunks/5782.js +36 -0
  235. package/.next/server/chunks/6163.js +104 -0
  236. package/.next/server/chunks/6169.js +64 -0
  237. package/.next/server/chunks/6208.js +172 -0
  238. package/.next/server/chunks/6399.js +24 -0
  239. package/.next/server/chunks/6429.js +32 -0
  240. package/.next/server/chunks/6496.js +1 -0
  241. package/.next/server/chunks/6686.js +1 -0
  242. package/.next/server/chunks/6823.js +215 -0
  243. package/.next/server/chunks/6888.js +1 -0
  244. package/.next/server/chunks/6953.js +1 -0
  245. package/.next/server/chunks/7245.js +77 -0
  246. package/.next/server/chunks/7307.js +1 -0
  247. package/.next/server/chunks/7372.js +287 -0
  248. package/.next/server/chunks/7384.js +226 -0
  249. package/.next/server/chunks/7492.js +1 -0
  250. package/.next/server/chunks/7516.js +1 -0
  251. package/.next/server/chunks/7531.js +24 -0
  252. package/.next/server/chunks/7591.js +1 -0
  253. package/.next/server/chunks/7755.js +138 -0
  254. package/.next/server/chunks/7916.js +1 -0
  255. package/.next/server/chunks/8078.js +94 -0
  256. package/.next/server/chunks/8253.js +41 -0
  257. package/.next/server/chunks/8635.js +1 -0
  258. package/.next/server/chunks/8637.js +1 -0
  259. package/.next/server/chunks/8688.js +1 -0
  260. package/.next/server/chunks/8872.js +1 -0
  261. package/.next/server/chunks/9006.js +1 -0
  262. package/.next/server/chunks/9018.js +1 -0
  263. package/.next/server/chunks/9047.js +1 -0
  264. package/.next/server/chunks/9108.js +1 -0
  265. package/.next/server/chunks/9165.js +1 -0
  266. package/.next/server/chunks/9280.js +256 -0
  267. package/.next/server/chunks/9419.js +1 -0
  268. package/.next/server/chunks/9430.js +1 -0
  269. package/.next/server/chunks/9586.js +1 -0
  270. package/.next/server/chunks/9690.js +90 -0
  271. package/.next/server/chunks/974.js +1 -0
  272. package/.next/server/chunks/9775.js +1 -0
  273. package/.next/server/chunks/992.js +1 -0
  274. package/.next/server/chunks/9926.js +1 -0
  275. package/.next/server/functions-config-manifest.json +27 -0
  276. package/.next/server/instrumentation.js +1 -0
  277. package/.next/server/instrumentation.js.nft.json +1 -0
  278. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  279. package/.next/server/middleware-build-manifest.js +1 -0
  280. package/.next/server/middleware-manifest.json +6 -0
  281. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  282. package/.next/server/middleware.js +163 -0
  283. package/.next/server/middleware.js.nft.json +1 -0
  284. package/.next/server/next-font-manifest.js +1 -0
  285. package/.next/server/next-font-manifest.json +1 -0
  286. package/.next/server/pages/404.html +1 -0
  287. package/.next/server/pages/500.html +1 -0
  288. package/.next/server/pages-manifest.json +4 -0
  289. package/.next/server/prefetch-hints.json +53 -0
  290. package/.next/server/server-reference-manifest.js +1 -0
  291. package/.next/server/server-reference-manifest.json +1 -0
  292. package/.next/server/webpack-runtime.js +1 -0
  293. package/.next/static/2ftfKxA2Tk6WrtjeFq3pC/_buildManifest.js +1 -0
  294. package/.next/static/2ftfKxA2Tk6WrtjeFq3pC/_ssgManifest.js +1 -0
  295. package/.next/static/chunks/1213.4848a5579bece837.js +24 -0
  296. package/.next/static/chunks/1278-902e48c12cf60065.js +1 -0
  297. package/.next/static/chunks/1326.72decfb808c97abe.js +1 -0
  298. package/.next/static/chunks/1519.2f596e5f5af9ef57.js +62 -0
  299. package/.next/static/chunks/2280.e03ab3748922284c.js +1 -0
  300. package/.next/static/chunks/2521.2ba812532f472610.js +77 -0
  301. package/.next/static/chunks/2585.4d6aa847c780c666.js +1 -0
  302. package/.next/static/chunks/2589.e456c324416f9615.js +1 -0
  303. package/.next/static/chunks/2600.45ba17a0f756fc31.js +1 -0
  304. package/.next/static/chunks/2619.9431a3f48da8eef4.js +1 -0
  305. package/.next/static/chunks/26d302b2.cd19dc0940cb3e75.js +122 -0
  306. package/.next/static/chunks/2768.1a75ba9e2be767cf.js +1 -0
  307. package/.next/static/chunks/2931.c5527c92f7264e9a.js +41 -0
  308. package/.next/static/chunks/3016.406e568aa95ff867.js +1 -0
  309. package/.next/static/chunks/3052.5da5bde6a131930a.js +90 -0
  310. package/.next/static/chunks/3064.3a2a1e7cd4fdca5f.js +1 -0
  311. package/.next/static/chunks/3174.03fbed7b7d7a8256.js +1 -0
  312. package/.next/static/chunks/3189.b048866768087750.js +1 -0
  313. package/.next/static/chunks/3217.457eee26edea225c.js +24 -0
  314. package/.next/static/chunks/3308.935f7625e681e15a.js +74 -0
  315. package/.next/static/chunks/331.fc5d78e1e91daf43.js +1 -0
  316. package/.next/static/chunks/3510.5d4d1c79533e080c.js +1 -0
  317. package/.next/static/chunks/364.ce5400a9dd70b9dc.js +1 -0
  318. package/.next/static/chunks/370.a485dd5092c76362.js +1 -0
  319. package/.next/static/chunks/3789.c418b69121761983.js +1 -0
  320. package/.next/static/chunks/3794-6f271a1eb27dfa20.js +52 -0
  321. package/.next/static/chunks/3831.25ae62d10dccc27a.js +1 -0
  322. package/.next/static/chunks/3a7aa434.9780f397da64eb81.js +82 -0
  323. package/.next/static/chunks/4020.3cc19c463c49f969.js +23 -0
  324. package/.next/static/chunks/4035.f5bcc2e4f0beee2b.js +1 -0
  325. package/.next/static/chunks/405.7027b68fbb48582a.js +215 -0
  326. package/.next/static/chunks/4159.8f53338a07b26845.js +138 -0
  327. package/.next/static/chunks/4208.e3c7f2d5c26dcf2e.js +287 -0
  328. package/.next/static/chunks/4263.ffa8d9bd8a0faaae.js +1 -0
  329. package/.next/static/chunks/4561.70303588b0cd3621.js +34 -0
  330. package/.next/static/chunks/4592.507c41f345e21bee.js +93 -0
  331. package/.next/static/chunks/4799.1d3f2e30954503b8.js +1 -0
  332. package/.next/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js +1 -0
  333. package/.next/static/chunks/514.b804c51b26f5e126.js +1 -0
  334. package/.next/static/chunks/5270.2b9a21b6ce8fd8d2.js +1 -0
  335. package/.next/static/chunks/52733464.74fafefbfa340fc8.js +1 -0
  336. package/.next/static/chunks/5354.b559c717a607dc5c.js +1 -0
  337. package/.next/static/chunks/5448.23a76c3983fec0f6.js +38 -0
  338. package/.next/static/chunks/5772-c8175d2fabf63b95.js +3 -0
  339. package/.next/static/chunks/587.d52737d7288c11b4.js +1 -0
  340. package/.next/static/chunks/5909.172aa3edf289b590.js +115 -0
  341. package/.next/static/chunks/5949.54e8a766895688d7.js +104 -0
  342. package/.next/static/chunks/60c48509.2ba44b5cbe52c6e7.js +158 -0
  343. package/.next/static/chunks/6361.4b1fa56fca9b6356.js +148 -0
  344. package/.next/static/chunks/6774.07517a60a602aadd.js +86 -0
  345. package/.next/static/chunks/6968.b80277c724dbc96e.js +1 -0
  346. package/.next/static/chunks/7236.55a9728d35f5b8a6.js +1 -0
  347. package/.next/static/chunks/7390.bc7f4ed9f76fe9e1.js +1 -0
  348. package/.next/static/chunks/7806.a903780fcfa3a30e.js +1 -0
  349. package/.next/static/chunks/790.45f73b5eb2e089eb.js +1 -0
  350. package/.next/static/chunks/8216.64a72d4d35ea7be0.js +1 -0
  351. package/.next/static/chunks/830.a6da04c322e3204a.js +1 -0
  352. package/.next/static/chunks/8378.6acf715f56997572.js +226 -0
  353. package/.next/static/chunks/8501.3b0a97ac3e782a0f.js +79 -0
  354. package/.next/static/chunks/8663.7deb45d41d190483.js +27 -0
  355. package/.next/static/chunks/872.96937e758ddce860.js +1 -0
  356. package/.next/static/chunks/8803.75bde095fe3613f5.js +1 -0
  357. package/.next/static/chunks/8863.582d77dad0e1cc29.js +1 -0
  358. package/.next/static/chunks/90542734.90283a0c0c838d51.js +1 -0
  359. package/.next/static/chunks/9379.979bec4531e0611a.js +64 -0
  360. package/.next/static/chunks/9389.906fe7aa9cd6a170.js +1 -0
  361. package/.next/static/chunks/9472.08db7006e4a030a4.js +94 -0
  362. package/.next/static/chunks/9647.29c5a9819b36fcda.js +15 -0
  363. package/.next/static/chunks/966.7ab226a15142fae2.js +1 -0
  364. package/.next/static/chunks/975.710b5962d34d4598.js +22 -0
  365. package/.next/static/chunks/9884.fca67f18c0fb2808.js +36 -0
  366. package/.next/static/chunks/9932-60e21347ba9f8664.js +7 -0
  367. package/.next/static/chunks/a339c874.7657a67d1b0d46c1.js +32 -0
  368. package/.next/static/chunks/app/_global-error/page-cbe4231fb889bdce.js +1 -0
  369. package/.next/static/chunks/app/_not-found/page-1e1cf8cba5576cd4.js +1 -0
  370. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-cbe4231fb889bdce.js +1 -0
  371. package/.next/static/chunks/app/api/agent/[id]/events/route-cbe4231fb889bdce.js +1 -0
  372. package/.next/static/chunks/app/api/agent/[id]/lease/route-cbe4231fb889bdce.js +1 -0
  373. package/.next/static/chunks/app/api/agent/[id]/route-cbe4231fb889bdce.js +1 -0
  374. package/.next/static/chunks/app/api/agent/new/route-cbe4231fb889bdce.js +1 -0
  375. package/.next/static/chunks/app/api/agent/running/route-cbe4231fb889bdce.js +1 -0
  376. package/.next/static/chunks/app/api/app-update/route-cbe4231fb889bdce.js +1 -0
  377. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-cbe4231fb889bdce.js +1 -0
  378. package/.next/static/chunks/app/api/auth/login/[provider]/route-cbe4231fb889bdce.js +1 -0
  379. package/.next/static/chunks/app/api/auth/logout/[provider]/route-cbe4231fb889bdce.js +1 -0
  380. package/.next/static/chunks/app/api/auth/providers/route-cbe4231fb889bdce.js +1 -0
  381. package/.next/static/chunks/app/api/cache-miss-notices/route-cbe4231fb889bdce.js +1 -0
  382. package/.next/static/chunks/app/api/cwd/browse/route-cbe4231fb889bdce.js +1 -0
  383. package/.next/static/chunks/app/api/cwd/validate/route-cbe4231fb889bdce.js +1 -0
  384. package/.next/static/chunks/app/api/default-cwd/route-cbe4231fb889bdce.js +1 -0
  385. package/.next/static/chunks/app/api/file-index/route-cbe4231fb889bdce.js +1 -0
  386. package/.next/static/chunks/app/api/files/[...path]/route-cbe4231fb889bdce.js +1 -0
  387. package/.next/static/chunks/app/api/git/diff/route-cbe4231fb889bdce.js +1 -0
  388. package/.next/static/chunks/app/api/git/status/route-cbe4231fb889bdce.js +1 -0
  389. package/.next/static/chunks/app/api/home/route-cbe4231fb889bdce.js +1 -0
  390. package/.next/static/chunks/app/api/mcp/route-cbe4231fb889bdce.js +1 -0
  391. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-cbe4231fb889bdce.js +1 -0
  392. package/.next/static/chunks/app/api/mcp/sign-in/route-cbe4231fb889bdce.js +1 -0
  393. package/.next/static/chunks/app/api/mcp/test/route-cbe4231fb889bdce.js +1 -0
  394. package/.next/static/chunks/app/api/models/default/route-cbe4231fb889bdce.js +1 -0
  395. package/.next/static/chunks/app/api/models/enabled/route-cbe4231fb889bdce.js +1 -0
  396. package/.next/static/chunks/app/api/models/refresh/route-cbe4231fb889bdce.js +1 -0
  397. package/.next/static/chunks/app/api/models/route-cbe4231fb889bdce.js +1 -0
  398. package/.next/static/chunks/app/api/models-config/catalog/route-cbe4231fb889bdce.js +1 -0
  399. package/.next/static/chunks/app/api/models-config/discover/route-cbe4231fb889bdce.js +1 -0
  400. package/.next/static/chunks/app/api/models-config/route-cbe4231fb889bdce.js +1 -0
  401. package/.next/static/chunks/app/api/models-config/test/route-cbe4231fb889bdce.js +1 -0
  402. package/.next/static/chunks/app/api/open-in-explorer/route-cbe4231fb889bdce.js +1 -0
  403. package/.next/static/chunks/app/api/plugins/check/route-cbe4231fb889bdce.js +1 -0
  404. package/.next/static/chunks/app/api/plugins/route-cbe4231fb889bdce.js +1 -0
  405. package/.next/static/chunks/app/api/project-trust/route-cbe4231fb889bdce.js +1 -0
  406. package/.next/static/chunks/app/api/provider-usage/query/route-cbe4231fb889bdce.js +1 -0
  407. package/.next/static/chunks/app/api/push/config/route-cbe4231fb889bdce.js +1 -0
  408. package/.next/static/chunks/app/api/push/subscribe/route-cbe4231fb889bdce.js +1 -0
  409. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-cbe4231fb889bdce.js +1 -0
  410. package/.next/static/chunks/app/api/sessions/[id]/context/route-cbe4231fb889bdce.js +1 -0
  411. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-cbe4231fb889bdce.js +1 -0
  412. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-cbe4231fb889bdce.js +1 -0
  413. package/.next/static/chunks/app/api/sessions/[id]/export/route-cbe4231fb889bdce.js +1 -0
  414. package/.next/static/chunks/app/api/sessions/[id]/fork/route-cbe4231fb889bdce.js +1 -0
  415. package/.next/static/chunks/app/api/sessions/[id]/route-cbe4231fb889bdce.js +1 -0
  416. package/.next/static/chunks/app/api/sessions/[id]/state/route-cbe4231fb889bdce.js +1 -0
  417. package/.next/static/chunks/app/api/sessions/delete/route-cbe4231fb889bdce.js +1 -0
  418. package/.next/static/chunks/app/api/sessions/route-cbe4231fb889bdce.js +1 -0
  419. package/.next/static/chunks/app/api/sessions/search/route-cbe4231fb889bdce.js +1 -0
  420. package/.next/static/chunks/app/api/sessions/stats/route-cbe4231fb889bdce.js +1 -0
  421. package/.next/static/chunks/app/api/sessions/ui-state/route-cbe4231fb889bdce.js +1 -0
  422. package/.next/static/chunks/app/api/skills/check/route-cbe4231fb889bdce.js +1 -0
  423. package/.next/static/chunks/app/api/skills/content/route-cbe4231fb889bdce.js +1 -0
  424. package/.next/static/chunks/app/api/skills/install/route-cbe4231fb889bdce.js +1 -0
  425. package/.next/static/chunks/app/api/skills/route-cbe4231fb889bdce.js +1 -0
  426. package/.next/static/chunks/app/api/skills/search/route-cbe4231fb889bdce.js +1 -0
  427. package/.next/static/chunks/app/api/skills/update/route-cbe4231fb889bdce.js +1 -0
  428. package/.next/static/chunks/app/api/subagents/[id]/route-cbe4231fb889bdce.js +1 -0
  429. package/.next/static/chunks/app/api/subagents/profiles/route-cbe4231fb889bdce.js +1 -0
  430. package/.next/static/chunks/app/api/subagents/settings/route-cbe4231fb889bdce.js +1 -0
  431. package/.next/static/chunks/app/api/terminal/[id]/events/route-cbe4231fb889bdce.js +1 -0
  432. package/.next/static/chunks/app/api/terminal/[id]/route-cbe4231fb889bdce.js +1 -0
  433. package/.next/static/chunks/app/api/terminal/route-cbe4231fb889bdce.js +1 -0
  434. package/.next/static/chunks/app/api/tools/settings/route-cbe4231fb889bdce.js +1 -0
  435. package/.next/static/chunks/app/api/web-auth/route-cbe4231fb889bdce.js +1 -0
  436. package/.next/static/chunks/app/api/worktrees/route-cbe4231fb889bdce.js +1 -0
  437. package/.next/static/chunks/app/layout-3339966738755d72.js +1 -0
  438. package/.next/static/chunks/app/login/page-3a355df23c47aa56.js +1 -0
  439. package/.next/static/chunks/app/manifest.webmanifest/route-cbe4231fb889bdce.js +1 -0
  440. package/.next/static/chunks/app/page-c6eefaf480702550.js +287 -0
  441. package/.next/static/chunks/d3ac728e-7964f816a1ca64e5.js +1 -0
  442. package/.next/static/chunks/e413bedd.1332b3d1558778d6.js +153 -0
  443. package/.next/static/chunks/e868780c-1584512c612787d7.js +18 -0
  444. package/.next/static/chunks/ea233666.528d9a11a2c6fe2f.js +62 -0
  445. package/.next/static/chunks/framework-b33a8f5d57cd8d87.js +1 -0
  446. package/.next/static/chunks/main-63ddef04e98b28f4.js +5 -0
  447. package/.next/static/chunks/main-app-a98576891fdd8f60.js +1 -0
  448. package/.next/static/chunks/next/dist/client/components/builtin/app-error-cbe4231fb889bdce.js +1 -0
  449. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-cbe4231fb889bdce.js +1 -0
  450. package/.next/static/chunks/next/dist/client/components/builtin/global-error-30078bc26a2476fc.js +1 -0
  451. package/.next/static/chunks/next/dist/client/components/builtin/not-found-cbe4231fb889bdce.js +1 -0
  452. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-cbe4231fb889bdce.js +1 -0
  453. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  454. package/.next/static/chunks/webpack-b6c37de25f933bc6.js +1 -0
  455. package/.next/static/css/49692dbfa6f26eeb.css +1 -0
  456. package/.next/static/css/6d897e2692233627.css +1 -0
  457. package/.next/static/css/9bcd6051db4f8890.css +1 -0
  458. package/.next/static/css/b944d46e6fd6c54d.css +1 -0
  459. package/.next/static/css/c82f0c18392f486f.css +1 -0
  460. package/.next/static/media/15605e25b523335c-s.woff2 +0 -0
  461. package/.next/static/media/1a3dce5cfb5f7760-s.woff2 +0 -0
  462. package/.next/static/media/1cdd02902f937a18-s.woff2 +0 -0
  463. package/.next/static/media/4c4b3b30b6bcb2be-s.woff2 +0 -0
  464. package/.next/static/media/641a7b8a5800ee0e-s.woff2 +0 -0
  465. package/.next/static/media/7deddc85b7ffd1dc-s.p.woff2 +0 -0
  466. package/.next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  467. package/.next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  468. package/.next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  469. package/.next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  470. package/.next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  471. package/.next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  472. package/.next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  473. package/.next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  474. package/.next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  475. package/.next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  476. package/.next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  477. package/.next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  478. package/.next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  479. package/.next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  480. package/.next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  481. package/.next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  482. package/.next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  483. package/.next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
  484. package/.next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  485. package/.next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  486. package/.next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  487. package/.next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  488. package/.next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  489. package/.next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
  490. package/.next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  491. package/.next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  492. package/.next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  493. package/.next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  494. package/.next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  495. package/.next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  496. package/.next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
  497. package/.next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
  498. package/.next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  499. package/.next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  500. package/.next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  501. package/.next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  502. package/.next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  503. package/.next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  504. package/.next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  505. package/.next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  506. package/.next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  507. package/.next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  508. package/.next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  509. package/.next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
  510. package/.next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  511. package/.next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  512. package/.next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  513. package/.next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  514. package/.next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
  515. package/.next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  516. package/.next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  517. package/.next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  518. package/.next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  519. package/.next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  520. package/.next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  521. package/.next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  522. package/.next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  523. package/.next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  524. package/.next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  525. package/.next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  526. package/.next/static/media/ec14413c594b3356-s.p.woff2 +0 -0
  527. package/.next/trace +83 -0
  528. package/.next/trace-build +1 -0
  529. package/.next/types/app/api/agent/[id]/bash-output/route.ts +353 -0
  530. package/.next/types/app/api/agent/[id]/events/route.ts +353 -0
  531. package/.next/types/app/api/agent/[id]/lease/route.ts +353 -0
  532. package/.next/types/app/api/agent/[id]/route.ts +353 -0
  533. package/.next/types/app/api/agent/new/route.ts +353 -0
  534. package/.next/types/app/api/agent/running/route.ts +353 -0
  535. package/.next/types/app/api/app-update/route.ts +353 -0
  536. package/.next/types/app/api/auth/api-key/[provider]/route.ts +353 -0
  537. package/.next/types/app/api/auth/login/[provider]/route.ts +353 -0
  538. package/.next/types/app/api/auth/logout/[provider]/route.ts +353 -0
  539. package/.next/types/app/api/auth/providers/route.ts +353 -0
  540. package/.next/types/app/api/cache-miss-notices/route.ts +353 -0
  541. package/.next/types/app/api/cwd/browse/route.ts +353 -0
  542. package/.next/types/app/api/cwd/validate/route.ts +353 -0
  543. package/.next/types/app/api/default-cwd/route.ts +353 -0
  544. package/.next/types/app/api/file-index/route.ts +353 -0
  545. package/.next/types/app/api/files/[...path]/route.ts +353 -0
  546. package/.next/types/app/api/git/diff/route.ts +353 -0
  547. package/.next/types/app/api/git/status/route.ts +353 -0
  548. package/.next/types/app/api/home/route.ts +353 -0
  549. package/.next/types/app/api/mcp/route.ts +353 -0
  550. package/.next/types/app/api/mcp/sign-in/[flowId]/route.ts +353 -0
  551. package/.next/types/app/api/mcp/sign-in/route.ts +353 -0
  552. package/.next/types/app/api/mcp/test/route.ts +353 -0
  553. package/.next/types/app/api/models/default/route.ts +353 -0
  554. package/.next/types/app/api/models/enabled/route.ts +353 -0
  555. package/.next/types/app/api/models/refresh/route.ts +353 -0
  556. package/.next/types/app/api/models/route.ts +353 -0
  557. package/.next/types/app/api/models-config/catalog/route.ts +353 -0
  558. package/.next/types/app/api/models-config/discover/route.ts +353 -0
  559. package/.next/types/app/api/models-config/route.ts +353 -0
  560. package/.next/types/app/api/models-config/test/route.ts +353 -0
  561. package/.next/types/app/api/open-in-explorer/route.ts +353 -0
  562. package/.next/types/app/api/plugins/check/route.ts +353 -0
  563. package/.next/types/app/api/plugins/route.ts +353 -0
  564. package/.next/types/app/api/project-trust/route.ts +353 -0
  565. package/.next/types/app/api/provider-usage/query/route.ts +353 -0
  566. package/.next/types/app/api/push/config/route.ts +353 -0
  567. package/.next/types/app/api/push/subscribe/route.ts +353 -0
  568. package/.next/types/app/api/sessions/[id]/auto-name/route.ts +353 -0
  569. package/.next/types/app/api/sessions/[id]/context/route.ts +353 -0
  570. package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +353 -0
  571. package/.next/types/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.ts +353 -0
  572. package/.next/types/app/api/sessions/[id]/export/route.ts +353 -0
  573. package/.next/types/app/api/sessions/[id]/fork/route.ts +353 -0
  574. package/.next/types/app/api/sessions/[id]/route.ts +353 -0
  575. package/.next/types/app/api/sessions/[id]/state/route.ts +353 -0
  576. package/.next/types/app/api/sessions/delete/route.ts +353 -0
  577. package/.next/types/app/api/sessions/route.ts +353 -0
  578. package/.next/types/app/api/sessions/search/route.ts +353 -0
  579. package/.next/types/app/api/sessions/stats/route.ts +353 -0
  580. package/.next/types/app/api/sessions/ui-state/route.ts +353 -0
  581. package/.next/types/app/api/skills/check/route.ts +353 -0
  582. package/.next/types/app/api/skills/content/route.ts +353 -0
  583. package/.next/types/app/api/skills/install/route.ts +353 -0
  584. package/.next/types/app/api/skills/route.ts +353 -0
  585. package/.next/types/app/api/skills/search/route.ts +353 -0
  586. package/.next/types/app/api/skills/update/route.ts +353 -0
  587. package/.next/types/app/api/subagents/[id]/route.ts +353 -0
  588. package/.next/types/app/api/subagents/profiles/route.ts +353 -0
  589. package/.next/types/app/api/subagents/settings/route.ts +353 -0
  590. package/.next/types/app/api/terminal/[id]/events/route.ts +353 -0
  591. package/.next/types/app/api/terminal/[id]/route.ts +353 -0
  592. package/.next/types/app/api/terminal/route.ts +353 -0
  593. package/.next/types/app/api/tools/settings/route.ts +353 -0
  594. package/.next/types/app/api/web-auth/route.ts +353 -0
  595. package/.next/types/app/api/worktrees/route.ts +353 -0
  596. package/.next/types/app/layout.ts +89 -0
  597. package/.next/types/app/login/page.ts +89 -0
  598. package/.next/types/app/page.ts +89 -0
  599. package/.next/types/cache-life.d.ts +146 -0
  600. package/.next/types/package.json +1 -0
  601. package/.next/types/root-params.d.ts +3 -0
  602. package/.next/types/routes.d.ts +140 -0
  603. package/.next/types/validator.ts +682 -0
  604. package/LICENSE +22 -0
  605. package/README.md +208 -2
  606. package/bin/browser-opener.js +34 -0
  607. package/bin/node-version.js +35 -0
  608. package/bin/pi-web-commands.js +118 -0
  609. package/bin/pi-web-node-args.js +11 -0
  610. package/bin/pi-web-options.js +141 -0
  611. package/bin/pi-web-update.js +148 -0
  612. package/bin/pi-web.js +157 -0
  613. package/bin/prepare-terminal.js +14 -0
  614. package/bin/process-lifecycle.js +81 -0
  615. package/bin/rotate-preview-secrets.js +105 -0
  616. package/bin/run-records.js +212 -0
  617. package/next.config.ts +110 -0
  618. package/package.json +105 -4
  619. package/public/icons/apple-touch-icon.png +0 -0
  620. package/public/icons/catppuccin/LICENSE +22 -0
  621. package/public/icons/catppuccin/README.md +10 -0
  622. package/public/icons/catppuccin/latte/_file.svg +3 -0
  623. package/public/icons/catppuccin/latte/_folder.svg +3 -0
  624. package/public/icons/catppuccin/latte/_folder_open.svg +3 -0
  625. package/public/icons/catppuccin/latte/bash.svg +7 -0
  626. package/public/icons/catppuccin/latte/bun-lock.svg +8 -0
  627. package/public/icons/catppuccin/latte/config.svg +3 -0
  628. package/public/icons/catppuccin/latte/css.svg +6 -0
  629. package/public/icons/catppuccin/latte/database.svg +3 -0
  630. package/public/icons/catppuccin/latte/docker.svg +3 -0
  631. package/public/icons/catppuccin/latte/env.svg +3 -0
  632. package/public/icons/catppuccin/latte/eslint.svg +6 -0
  633. package/public/icons/catppuccin/latte/git.svg +6 -0
  634. package/public/icons/catppuccin/latte/go.svg +3 -0
  635. package/public/icons/catppuccin/latte/graphql.svg +3 -0
  636. package/public/icons/catppuccin/latte/html.svg +6 -0
  637. package/public/icons/catppuccin/latte/javascript-react.svg +8 -0
  638. package/public/icons/catppuccin/latte/javascript.svg +6 -0
  639. package/public/icons/catppuccin/latte/json.svg +3 -0
  640. package/public/icons/catppuccin/latte/lock.svg +3 -0
  641. package/public/icons/catppuccin/latte/markdown.svg +3 -0
  642. package/public/icons/catppuccin/latte/ms-word.svg +6 -0
  643. package/public/icons/catppuccin/latte/next.svg +6 -0
  644. package/public/icons/catppuccin/latte/npm-lock.svg +7 -0
  645. package/public/icons/catppuccin/latte/pdf.svg +3 -0
  646. package/public/icons/catppuccin/latte/python.svg +8 -0
  647. package/public/icons/catppuccin/latte/rust.svg +6 -0
  648. package/public/icons/catppuccin/latte/sass.svg +3 -0
  649. package/public/icons/catppuccin/latte/terraform.svg +3 -0
  650. package/public/icons/catppuccin/latte/toml.svg +3 -0
  651. package/public/icons/catppuccin/latte/typescript-react.svg +8 -0
  652. package/public/icons/catppuccin/latte/typescript.svg +6 -0
  653. package/public/icons/catppuccin/latte/yaml.svg +3 -0
  654. package/public/icons/catppuccin/mocha/_file.svg +3 -0
  655. package/public/icons/catppuccin/mocha/_folder.svg +3 -0
  656. package/public/icons/catppuccin/mocha/_folder_open.svg +3 -0
  657. package/public/icons/catppuccin/mocha/bash.svg +7 -0
  658. package/public/icons/catppuccin/mocha/bun-lock.svg +8 -0
  659. package/public/icons/catppuccin/mocha/config.svg +3 -0
  660. package/public/icons/catppuccin/mocha/css.svg +6 -0
  661. package/public/icons/catppuccin/mocha/database.svg +3 -0
  662. package/public/icons/catppuccin/mocha/docker.svg +3 -0
  663. package/public/icons/catppuccin/mocha/env.svg +3 -0
  664. package/public/icons/catppuccin/mocha/eslint.svg +6 -0
  665. package/public/icons/catppuccin/mocha/git.svg +6 -0
  666. package/public/icons/catppuccin/mocha/go.svg +3 -0
  667. package/public/icons/catppuccin/mocha/graphql.svg +3 -0
  668. package/public/icons/catppuccin/mocha/html.svg +6 -0
  669. package/public/icons/catppuccin/mocha/javascript-react.svg +8 -0
  670. package/public/icons/catppuccin/mocha/javascript.svg +6 -0
  671. package/public/icons/catppuccin/mocha/json.svg +3 -0
  672. package/public/icons/catppuccin/mocha/lock.svg +3 -0
  673. package/public/icons/catppuccin/mocha/markdown.svg +3 -0
  674. package/public/icons/catppuccin/mocha/ms-word.svg +6 -0
  675. package/public/icons/catppuccin/mocha/next.svg +6 -0
  676. package/public/icons/catppuccin/mocha/npm-lock.svg +7 -0
  677. package/public/icons/catppuccin/mocha/pdf.svg +3 -0
  678. package/public/icons/catppuccin/mocha/python.svg +8 -0
  679. package/public/icons/catppuccin/mocha/rust.svg +6 -0
  680. package/public/icons/catppuccin/mocha/sass.svg +3 -0
  681. package/public/icons/catppuccin/mocha/terraform.svg +3 -0
  682. package/public/icons/catppuccin/mocha/toml.svg +3 -0
  683. package/public/icons/catppuccin/mocha/typescript-react.svg +8 -0
  684. package/public/icons/catppuccin/mocha/typescript.svg +6 -0
  685. package/public/icons/catppuccin/mocha/yaml.svg +3 -0
  686. package/public/icons/icon-192.png +0 -0
  687. package/public/icons/icon-512.png +0 -0
  688. package/public/offline.html +83 -0
  689. package/public/provider-icons.svg +54 -0
  690. package/public/sw.js +183 -0
  691. package/public/sw.test.mjs +339 -0
package/public/sw.js ADDED
@@ -0,0 +1,183 @@
1
+ const CACHE_PREFIX = "pi-web";
2
+ const CACHE_VERSION = new URL(self.location.href).searchParams.get("v") || "dev";
3
+ const STATIC_CACHE = `${CACHE_PREFIX}-static-${CACHE_VERSION}`;
4
+ const OFFLINE_URL = "/offline.html";
5
+ const PRECACHE_URLS = [
6
+ OFFLINE_URL,
7
+ "/icons/icon-192.png",
8
+ "/icons/icon-512.png",
9
+ "/icons/apple-touch-icon.png",
10
+ ];
11
+ // A reachable port backed by a dead upstream accepts the connection and then
12
+ // never answers: fetch() neither resolves nor rejects, so the navigation hangs
13
+ // forever instead of falling back to offline.html. Bound every network wait.
14
+ const NAVIGATION_TIMEOUT_MS = 8000;
15
+ const ASSET_TIMEOUT_MS = 8000;
16
+
17
+ self.addEventListener("install", (event) => {
18
+ event.waitUntil(
19
+ caches
20
+ .open(STATIC_CACHE)
21
+ .then((cache) => cache.addAll(PRECACHE_URLS))
22
+ .then(() => self.skipWaiting()),
23
+ );
24
+ });
25
+
26
+ self.addEventListener("activate", (event) => {
27
+ event.waitUntil(
28
+ caches
29
+ .keys()
30
+ .then((keys) =>
31
+ Promise.all(
32
+ keys
33
+ .filter((key) => key.startsWith(`${CACHE_PREFIX}-`) && key !== STATIC_CACHE)
34
+ .map((key) => caches.delete(key)),
35
+ ),
36
+ )
37
+ .then(() => self.clients.claim()),
38
+ );
39
+ });
40
+
41
+ self.addEventListener("fetch", (event) => {
42
+ const { request } = event;
43
+ if (request.method !== "GET") return;
44
+
45
+ const url = new URL(request.url);
46
+ if (url.origin !== self.location.origin) return;
47
+
48
+ // Session data and live agent traffic must always come from the local server.
49
+ if (url.pathname.startsWith("/api/") || url.pathname === "/sw.js") return;
50
+
51
+ // The manifest is runtime configuration. Bypass even entries left in an old
52
+ // cache, including requests with a query string or navigation mode.
53
+ if (url.pathname === "/manifest.webmanifest") return;
54
+
55
+ if (request.mode === "navigate") {
56
+ event.respondWith(
57
+ fetchWithTimeout(request, NAVIGATION_TIMEOUT_MS).catch(async () => {
58
+ const fallback = await caches.match(OFFLINE_URL);
59
+ return fallback ?? Response.error();
60
+ }),
61
+ );
62
+ return;
63
+ }
64
+
65
+ const isStaticAsset =
66
+ url.pathname.startsWith("/_next/static/") ||
67
+ PRECACHE_URLS.includes(url.pathname);
68
+
69
+ if (isStaticAsset) {
70
+ event.respondWith(cacheFirst(request, event));
71
+ }
72
+ });
73
+
74
+ self.addEventListener("push", (event) => {
75
+ let payload = {};
76
+ try {
77
+ payload = event.data ? event.data.json() : {};
78
+ } catch {
79
+ // Ignore malformed or missing push payloads.
80
+ }
81
+ const { title, body, url, tag } = payload;
82
+ if (typeof title !== "string" || !title || typeof body !== "string" || !body) return;
83
+
84
+ // Always surface a system notification. iOS revokes the push subscription
85
+ // when a service worker handles a push without showing a notification, so
86
+ // suppressing the notification while a window is visible poisons the
87
+ // subscription in the background-delivery case. Notifications sharing a tag
88
+ // replace each other instead of stacking, so a visible window merely sees
89
+ // the completion notification re-appear.
90
+ event.waitUntil(
91
+ self.registration.showNotification(title, {
92
+ body,
93
+ data: { url: typeof url === "string" && url ? url : "/" },
94
+ ...(typeof tag === "string" && tag ? { tag, renotify: true } : {}),
95
+ }),
96
+ );
97
+ });
98
+
99
+ self.addEventListener("notificationclick", (event) => {
100
+ event.notification.close();
101
+
102
+ const requestedUrl = typeof event.notification.data?.url === "string"
103
+ ? event.notification.data.url
104
+ : "/";
105
+ let targetUrl = new URL("/", self.location.origin);
106
+ try {
107
+ const candidate = new URL(requestedUrl, self.location.origin);
108
+ if (candidate.origin === self.location.origin) targetUrl = candidate;
109
+ } catch {
110
+ // Keep the root URL when notification data is malformed.
111
+ }
112
+
113
+ event.waitUntil(focusOrOpenWindow(targetUrl.href));
114
+ });
115
+
116
+ async function focusOrOpenWindow(targetUrl) {
117
+ const windowClients = await self.clients.matchAll({
118
+ type: "window",
119
+ includeUncontrolled: true,
120
+ });
121
+ const exactClient = windowClients.find((client) => client.url === targetUrl);
122
+ const candidates = exactClient
123
+ ? [exactClient, ...windowClients.filter((client) => client !== exactClient)]
124
+ : windowClients;
125
+
126
+ for (const client of candidates) {
127
+ try {
128
+ const targetClient = client.url === targetUrl
129
+ ? client
130
+ : (await client.navigate(targetUrl)) ?? client;
131
+ await targetClient.focus();
132
+ return;
133
+ } catch {
134
+ // The window may have closed between matchAll and focus; try the next one.
135
+ }
136
+ }
137
+
138
+ await self.clients.openWindow(targetUrl);
139
+ }
140
+
141
+ /**
142
+ * Fetch with a ceiling on the wait for the response headers (time to first
143
+ * byte). The timer is cleared as soon as they arrive, so a response that
144
+ * streams a long body — Next.js streams SSR output — is never cut off
145
+ * mid-stream.
146
+ */
147
+ async function fetchWithTimeout(request, timeoutMs) {
148
+ const controller = new AbortController();
149
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
150
+ try {
151
+ return await fetch(request, { signal: controller.signal });
152
+ } finally {
153
+ clearTimeout(timer);
154
+ }
155
+ }
156
+
157
+ async function cacheFirst(request, event) {
158
+ const cached = await caches.match(request);
159
+ if (cached) return cached;
160
+
161
+ const response = await fetchWithTimeout(request, ASSET_TIMEOUT_MS);
162
+ if (response.ok && response.type === "basic") {
163
+ // Deliberately NOT awaited before returning the response.
164
+ //
165
+ // The SW script URL is versioned (?v=<app version>), so every upgrade
166
+ // starts a fresh cache: the first load after an upgrade misses on every
167
+ // chunk and writes them all at once. Awaiting each write here held every
168
+ // response behind Cache Storage I/O, which stalled navigations past
169
+ // NAVIGATION_TIMEOUT_MS — the browser showed the offline page while the
170
+ // local server was perfectly healthy. waitUntil keeps this worker alive
171
+ // until the write finishes without blocking the response.
172
+ const copy = response.clone();
173
+ event.waitUntil(
174
+ caches
175
+ .open(STATIC_CACHE)
176
+ .then((cache) => cache.put(request, copy))
177
+ .catch(() => {
178
+ // A failed write only costs one network re-fetch next time.
179
+ }),
180
+ );
181
+ }
182
+ return response;
183
+ }
@@ -0,0 +1,339 @@
1
+ import assert from "node:assert/strict";
2
+ import test, { mock } from "node:test";
3
+
4
+ const listeners = new Map();
5
+ globalThis.self = {
6
+ location: {
7
+ href: "https://pi.test/sw.js?v=test",
8
+ origin: "https://pi.test",
9
+ },
10
+ addEventListener: (type, listener) => listeners.set(type, listener),
11
+ clients: null,
12
+ };
13
+
14
+ await import("./sw.js");
15
+
16
+ function dispatchNotificationClick(data) {
17
+ let pending;
18
+ let closed = false;
19
+ listeners.get("notificationclick")({
20
+ notification: {
21
+ data,
22
+ close: () => { closed = true; },
23
+ },
24
+ waitUntil: (promise) => { pending = promise; },
25
+ });
26
+ return { pending, wasClosed: () => closed };
27
+ }
28
+
29
+ function dispatchPush(payload, clients) {
30
+ let pending;
31
+ const shown = [];
32
+ self.clients = {
33
+ matchAll: async () => clients,
34
+ openWindow: async () => assert.fail("push must not open windows"),
35
+ };
36
+ self.registration = {
37
+ showNotification: async (title, options) => { shown.push({ title, options }); },
38
+ };
39
+ listeners.get("push")({
40
+ data: { json: () => payload },
41
+ waitUntil: (promise) => { pending = promise; },
42
+ });
43
+ return { pending, shown };
44
+ }
45
+
46
+ test("push always shows a notification, even when a window is visible", async () => {
47
+ const event = dispatchPush(
48
+ {
49
+ title: "Session complete",
50
+ body: "Task finished.",
51
+ url: "/?session=session-1",
52
+ tag: "pi-session-complete:session-1",
53
+ },
54
+ [
55
+ { url: "https://pi.test/?session=other", visibilityState: "hidden" },
56
+ { url: "https://pi.test/?session=session-1", visibilityState: "visible" },
57
+ ],
58
+ );
59
+ await event.pending;
60
+
61
+ // iOS revokes the push subscription when a push is handled without a
62
+ // notification, so the notification must never be suppressed.
63
+ assert.deepEqual(event.shown, [{
64
+ title: "Session complete",
65
+ options: {
66
+ body: "Task finished.",
67
+ data: { url: "/?session=session-1" },
68
+ tag: "pi-session-complete:session-1",
69
+ renotify: true,
70
+ },
71
+ }]);
72
+ });
73
+
74
+ test("push ignores malformed payloads", async () => {
75
+ const event = dispatchPush(
76
+ { title: "", body: 42 },
77
+ [],
78
+ );
79
+ await event.pending;
80
+
81
+ assert.deepEqual(event.shown, []);
82
+ });
83
+
84
+ test("notification click focuses an existing client at the session URL", async () => {
85
+ const calls = [];
86
+ const focusedClient = {
87
+ url: "https://pi.test/?session=session-1",
88
+ focus: async () => { calls.push("focus"); },
89
+ navigate: async () => assert.fail("exact client should not navigate"),
90
+ };
91
+ self.clients = {
92
+ matchAll: async () => [focusedClient],
93
+ openWindow: async () => assert.fail("existing client should be reused"),
94
+ };
95
+
96
+ const event = dispatchNotificationClick({ url: "/?session=session-1" });
97
+ await event.pending;
98
+
99
+ assert.equal(event.wasClosed(), true);
100
+ assert.deepEqual(calls, ["focus"]);
101
+ });
102
+
103
+ test("notification click navigates an existing client to the session", async () => {
104
+ const calls = [];
105
+ const navigatedClient = {
106
+ focus: async () => { calls.push("focus"); },
107
+ };
108
+ const existingClient = {
109
+ url: "https://pi.test/?session=other-session",
110
+ navigate: async (url) => {
111
+ calls.push(["navigate", url]);
112
+ return navigatedClient;
113
+ },
114
+ focus: async () => assert.fail("the navigated client should be focused"),
115
+ };
116
+ self.clients = {
117
+ matchAll: async () => [existingClient],
118
+ openWindow: async () => assert.fail("existing client should be reused"),
119
+ };
120
+
121
+ const event = dispatchNotificationClick({ url: "/?session=session-1" });
122
+ await event.pending;
123
+
124
+ assert.deepEqual(calls, [
125
+ ["navigate", "https://pi.test/?session=session-1"],
126
+ "focus",
127
+ ]);
128
+ });
129
+
130
+ test("notification click opens a window and rejects cross-origin targets", async () => {
131
+ const opened = [];
132
+ self.clients = {
133
+ matchAll: async () => [],
134
+ openWindow: async (url) => { opened.push(url); },
135
+ };
136
+
137
+ const event = dispatchNotificationClick({ url: "https://example.com/redirect" });
138
+ await event.pending;
139
+
140
+ assert.deepEqual(opened, ["https://pi.test/"]);
141
+ });
142
+
143
+ // A reachable port backed by a dead upstream answers nothing at all, so these
144
+ // tests drive fetch() with a stub that only settles once the worker aborts it.
145
+ function installOfflineStub() {
146
+ const offline = new Response("<!doctype html><title>Pi Web is offline</title>", {
147
+ status: 200,
148
+ headers: { "Content-Type": "text/html" },
149
+ });
150
+ globalThis.caches = {
151
+ match: async (request) => ((typeof request === "string" ? request : request.url).endsWith("/offline.html")
152
+ ? offline
153
+ : undefined),
154
+ open: async () => ({ put: async () => {} }),
155
+ };
156
+ }
157
+
158
+ function dispatchFetch(url, { mode = "cors", method = "GET" } = {}) {
159
+ let pending;
160
+ const background = [];
161
+ const request = new Request(url, { method });
162
+ Object.defineProperty(request, "mode", { value: mode });
163
+ listeners.get("fetch")({
164
+ request,
165
+ respondWith: (promise) => { pending = promise; },
166
+ waitUntil: (promise) => { background.push(promise); },
167
+ });
168
+ return { pending, background };
169
+ }
170
+
171
+ test("install precaches offline assets but not the runtime manifest", async () => {
172
+ let pending;
173
+ let precached;
174
+ let skipped = false;
175
+ globalThis.caches = {
176
+ open: async () => ({ addAll: async (urls) => { precached = urls; } }),
177
+ };
178
+ self.skipWaiting = async () => { skipped = true; };
179
+ listeners.get("install")({ waitUntil: (promise) => { pending = promise; } });
180
+ await pending;
181
+
182
+ assert.deepEqual(precached, [
183
+ "/offline.html",
184
+ "/icons/icon-192.png",
185
+ "/icons/icon-512.png",
186
+ "/icons/apple-touch-icon.png",
187
+ ]);
188
+ assert.equal(skipped, true);
189
+ });
190
+
191
+ test("manifest requests bypass the worker even with query strings and old cached entries", async () => {
192
+ const stale = new Response('{"name":"Old Pi"}');
193
+ let cacheReads = 0;
194
+ globalThis.caches = {
195
+ match: async () => { cacheReads++; return stale.clone(); },
196
+ open: async () => assert.fail("manifest must not be cached"),
197
+ };
198
+ const networkRequests = [];
199
+ globalThis.fetch = async (request) => {
200
+ networkRequests.push(request.url);
201
+ return new Response('{"name":"New Pi"}');
202
+ };
203
+
204
+ for (const path of ["/manifest.webmanifest", "/manifest.webmanifest?v=old"]) {
205
+ for (const mode of ["cors", "navigate"]) {
206
+ const url = `https://pi.test${path}`;
207
+ const { pending, background } = dispatchFetch(url, { mode });
208
+ assert.equal(pending, undefined, "no respondWith: leave the request to the browser");
209
+ assert.deepEqual(background, []);
210
+ // Model the browser's normal network fallback when respondWith is absent.
211
+ const response = await fetch(new Request(url));
212
+ assert.deepEqual(await response.json(), { name: "New Pi" });
213
+ }
214
+ }
215
+ assert.equal(cacheReads, 0, "old cached manifests must never be read");
216
+ assert.equal(networkRequests.length, 4);
217
+ });
218
+
219
+ /** fetch() that never settles until the signal it was handed is aborted. */
220
+ function installHungNetwork() {
221
+ let aborted = false;
222
+ globalThis.fetch = (_request, init) =>
223
+ new Promise((_resolve, reject) => {
224
+ init.signal.addEventListener("abort", () => {
225
+ aborted = true;
226
+ reject(new DOMException("The operation was aborted.", "AbortError"));
227
+ });
228
+ });
229
+ return () => aborted;
230
+ }
231
+
232
+ /**
233
+ * Let a handler's await chain reach its fetch (and schedule its timer) before
234
+ * the fake clock is ticked. setImmediate is not faked, unlike setTimeout.
235
+ */
236
+ const flushMicrotasks = () => new Promise((resolve) => setImmediate(resolve));
237
+
238
+ test("a stalled navigation falls back to offline.html", async () => {
239
+ installOfflineStub();
240
+ const wasAborted = installHungNetwork();
241
+
242
+ mock.timers.enable({ apis: ["setTimeout"] });
243
+ try {
244
+ const { pending } = dispatchFetch("https://pi.test/", { mode: "navigate" });
245
+ await flushMicrotasks();
246
+ mock.timers.tick(8000);
247
+ const response = await pending;
248
+
249
+ assert.equal(wasAborted(), true, "a hung upstream must be aborted, not awaited forever");
250
+ assert.match(await response.text(), /Pi Web is offline/);
251
+ } finally {
252
+ mock.timers.reset();
253
+ }
254
+ });
255
+
256
+ test("a stalled static asset request is bounded as well", async () => {
257
+ installOfflineStub();
258
+ const wasAborted = installHungNetwork();
259
+
260
+ mock.timers.enable({ apis: ["setTimeout"] });
261
+ try {
262
+ const { pending } = dispatchFetch("https://pi.test/_next/static/chunks/app.js");
263
+ // cacheFirst awaits the cache lookup before it reaches the network.
264
+ await flushMicrotasks();
265
+ mock.timers.tick(8000);
266
+
267
+ assert.equal(wasAborted(), true);
268
+ await assert.rejects(pending, /abort/i);
269
+ } finally {
270
+ mock.timers.reset();
271
+ }
272
+ });
273
+
274
+ test("a cache miss responds before the cache write finishes", async () => {
275
+ let releaseWrite;
276
+ let writeStarted = false;
277
+ globalThis.caches = {
278
+ match: async () => undefined,
279
+ open: async () => ({
280
+ put: () => {
281
+ writeStarted = true;
282
+ return new Promise((resolve) => { releaseWrite = resolve; });
283
+ },
284
+ }),
285
+ };
286
+ // fetch() to a same-origin URL yields type "basic"; a constructed Response
287
+ // defaults to "default", which cacheFirst deliberately skips.
288
+ globalThis.fetch = async () => {
289
+ const response = new Response("chunk", {
290
+ status: 200,
291
+ headers: { "Content-Type": "text/javascript" },
292
+ });
293
+ Object.defineProperty(response, "type", { value: "basic" });
294
+ return response;
295
+ };
296
+
297
+ const { pending, background } = dispatchFetch("https://pi.test/_next/static/chunks/app.js");
298
+ const response = await pending;
299
+
300
+ // The regression this guards: the SW script URL is versioned, so a version
301
+ // bump leaves the cache cold and every chunk misses at once. Awaiting each
302
+ // write held the responses behind Cache Storage I/O, which pushed
303
+ // navigations past the offline-fallback budget even though the server was
304
+ // healthy. The response must never wait for the write.
305
+ assert.equal(await response.text(), "chunk");
306
+
307
+ await flushMicrotasks();
308
+ assert.equal(writeStarted, true, "the write must still happen");
309
+ assert.equal(background.length, 1, "the write must be kept alive with waitUntil");
310
+
311
+ releaseWrite();
312
+ await background[0];
313
+ });
314
+
315
+ test("a response that arrives in time is not cut off mid-stream", async () => {
316
+ installOfflineStub();
317
+ let signal;
318
+ globalThis.fetch = async (_request, init) => {
319
+ signal = init.signal;
320
+ return new Response("<!doctype html><title>Pi Web</title>", {
321
+ status: 200,
322
+ headers: { "Content-Type": "text/html" },
323
+ });
324
+ };
325
+
326
+ mock.timers.enable({ apis: ["setTimeout"] });
327
+ try {
328
+ const { pending } = dispatchFetch("https://pi.test/", { mode: "navigate" });
329
+ const response = await pending;
330
+ // The budget only covers time to first byte: a long-lived body keeps
331
+ // streaming past it (Next.js streams its SSR payload).
332
+ mock.timers.tick(60000);
333
+
334
+ assert.equal(signal.aborted, false);
335
+ assert.match(await response.text(), /<title>Pi Web<\/title>/);
336
+ } finally {
337
+ mock.timers.reset();
338
+ }
339
+ });