pi-yun 0.2.3 → 0.2.4

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 (317) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +18 -17
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +1 -1
  5. package/.next/required-server-files.js +1 -1
  6. package/.next/required-server-files.json +1 -1
  7. package/.next/routes-manifest.json +6 -0
  8. package/.next/server/app/_global-error/page.js +2 -2
  9. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/_global-error.html +1 -1
  11. package/.next/server/app/_global-error.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  15. package/.next/server/app/_not-found/page.js +1 -1
  16. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  17. package/.next/server/app/_not-found.html +1 -1
  18. package/.next/server/app/_not-found.rsc +5 -5
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +5 -5
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -5
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -4
  22. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  23. package/.next/server/app/api/agent/[id]/events/route.js +1 -3
  24. package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
  25. package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
  26. package/.next/server/app/api/agent/[id]/lease/route.js.nft.json +1 -1
  27. package/.next/server/app/api/agent/[id]/route.js +1 -1
  28. package/.next/server/app/api/agent/debug/route.js +1 -0
  29. package/.next/server/app/api/agent/debug/route.js.nft.json +1 -0
  30. package/.next/server/app/api/agent/debug/route_client-reference-manifest.js +1 -0
  31. package/.next/server/app/api/agent/new/route.js +1 -1
  32. package/.next/server/app/api/agent/running/route.js +1 -1
  33. package/.next/server/app/api/app-update/route.js +1 -1
  34. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  35. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  36. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  37. package/.next/server/app/api/auth/providers/route.js +1 -1
  38. package/.next/server/app/api/cache-miss-notices/route.js +1 -1
  39. package/.next/server/app/api/cwd/browse/route.js +1 -1
  40. package/.next/server/app/api/cwd/browse/route.js.nft.json +2 -2
  41. package/.next/server/app/api/cwd/validate/route.js +1 -1
  42. package/.next/server/app/api/cwd/validate/route.js.nft.json +2 -2
  43. package/.next/server/app/api/default-cwd/route.js +1 -1
  44. package/.next/server/app/api/file-index/route.js +1 -1
  45. package/.next/server/app/api/files/[...path]/route.js +3 -3
  46. package/.next/server/app/api/git/diff/route.js +1 -1
  47. package/.next/server/app/api/git/status/route.js +1 -1
  48. package/.next/server/app/api/home/route.js +1 -1
  49. package/.next/server/app/api/mcp/route.js +2 -2
  50. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
  51. package/.next/server/app/api/mcp/sign-in/route.js +1 -1
  52. package/.next/server/app/api/mcp/test/route.js +1 -1
  53. package/.next/server/app/api/models/default/route.js +1 -1
  54. package/.next/server/app/api/models/default/route.js.nft.json +2 -2
  55. package/.next/server/app/api/models/enabled/route.js +1 -1
  56. package/.next/server/app/api/models/enabled/route.js.nft.json +2 -2
  57. package/.next/server/app/api/models/refresh/route.js +1 -1
  58. package/.next/server/app/api/models/route.js +1 -1
  59. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  60. package/.next/server/app/api/models-config/discover/route.js +1 -1
  61. package/.next/server/app/api/models-config/route.js +1 -1
  62. package/.next/server/app/api/models-config/test/route.js +1 -1
  63. package/.next/server/app/api/open-in-explorer/route.js +1 -1
  64. package/.next/server/app/api/plugins/check/route.js +1 -1
  65. package/.next/server/app/api/plugins/route.js +1 -1
  66. package/.next/server/app/api/project-trust/route.js +1 -1
  67. package/.next/server/app/api/provider-usage/query/route.js +1 -1
  68. package/.next/server/app/api/push/config/route.js +1 -1
  69. package/.next/server/app/api/push/subscribe/route.js +1 -1
  70. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  71. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  72. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  73. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  74. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  75. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  76. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  77. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  78. package/.next/server/app/api/sessions/delete/route.js +1 -1
  79. package/.next/server/app/api/sessions/route.js +1 -1
  80. package/.next/server/app/api/sessions/search/route.js +1 -1
  81. package/.next/server/app/api/sessions/stats/route.js +1 -1
  82. package/.next/server/app/api/sessions/ui-state/route.js +1 -1
  83. package/.next/server/app/api/skills/check/route.js +1 -1
  84. package/.next/server/app/api/skills/content/route.js +1 -1
  85. package/.next/server/app/api/skills/install/route.js +1 -1
  86. package/.next/server/app/api/skills/route.js +1 -1
  87. package/.next/server/app/api/skills/search/route.js +1 -1
  88. package/.next/server/app/api/skills/update/route.js +1 -1
  89. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  90. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  91. package/.next/server/app/api/subagents/settings/route.js +1 -1
  92. package/.next/server/app/api/terminal/[id]/events/route.js +3 -3
  93. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  94. package/.next/server/app/api/terminal/route.js +1 -1
  95. package/.next/server/app/api/tools/settings/route.js +1 -1
  96. package/.next/server/app/api/web-auth/route.js +1 -1
  97. package/.next/server/app/api/worktrees/route.js +1 -1
  98. package/.next/server/app/favicon.ico/route.js +1 -1
  99. package/.next/server/app/index.html +1 -1
  100. package/.next/server/app/index.rsc +7 -7
  101. package/.next/server/app/index.segments/__PAGE__.segment.rsc +7 -7
  102. package/.next/server/app/index.segments/_full.segment.rsc +7 -7
  103. package/.next/server/app/index.segments/_tree.segment.rsc +4 -4
  104. package/.next/server/app/login/page.js +3 -3
  105. package/.next/server/app/login/page.js.nft.json +1 -1
  106. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  107. package/.next/server/app/login.html +1 -1
  108. package/.next/server/app/login.rsc +6 -6
  109. package/.next/server/app/login.segments/_full.segment.rsc +6 -6
  110. package/.next/server/app/login.segments/_tree.segment.rsc +4 -4
  111. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +6 -6
  112. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  113. package/.next/server/app/page.js +852 -59
  114. package/.next/server/app/page.js.nft.json +1 -1
  115. package/.next/server/app/page_client-reference-manifest.js +1 -1
  116. package/.next/server/app/pet-preview/page.js +1 -1
  117. package/.next/server/app/pet-preview/page.js.nft.json +1 -1
  118. package/.next/server/app/pet-preview/page_client-reference-manifest.js +1 -1
  119. package/.next/server/app/pet-preview.html +1 -1
  120. package/.next/server/app/pet-preview.rsc +6 -6
  121. package/.next/server/app/pet-preview.segments/_full.segment.rsc +6 -6
  122. package/.next/server/app/pet-preview.segments/_tree.segment.rsc +4 -4
  123. package/.next/server/app/pet-preview.segments/pet-preview/__PAGE__.segment.rsc +6 -6
  124. package/.next/server/app-paths-manifest.json +18 -17
  125. package/.next/server/chunks/1207.js +1 -1
  126. package/.next/server/chunks/1906.js +1 -1
  127. package/.next/server/chunks/2243.js +1 -1
  128. package/.next/server/chunks/27.js +1 -1
  129. package/.next/server/chunks/3371.js +1 -0
  130. package/.next/server/chunks/3374.js +2 -2
  131. package/.next/server/chunks/3757.js +1 -1
  132. package/.next/server/chunks/3824.js +1 -1
  133. package/.next/server/chunks/4698.js +1 -1
  134. package/.next/server/chunks/5582.js +3 -3
  135. package/.next/server/chunks/6429.js +9 -9
  136. package/.next/server/chunks/7365.js +1 -1
  137. package/.next/server/chunks/8177.js +1 -0
  138. package/.next/server/chunks/8781.js +3 -0
  139. package/.next/server/functions-config-manifest.json +1 -0
  140. package/.next/server/instrumentation.js +1 -1
  141. package/.next/server/instrumentation.js.nft.json +1 -1
  142. package/.next/server/middleware-build-manifest.js +1 -1
  143. package/.next/server/middleware.js +1 -1
  144. package/.next/server/pages/404.html +1 -1
  145. package/.next/server/pages/500.html +1 -1
  146. package/.next/static/chunks/1278-924fb78593d04d55.js +1 -0
  147. package/.next/static/chunks/{9932-60e21347ba9f8664.js → 4908-bc77348603c9c216.js} +2 -2
  148. package/.next/static/chunks/app/_global-error/{page-cbe4231fb889bdce.js → page-aea014bebc656830.js} +1 -1
  149. package/.next/static/chunks/app/api/agent/[id]/bash-output/{route-cbe4231fb889bdce.js → route-aea014bebc656830.js} +1 -1
  150. package/.next/static/chunks/app/api/agent/[id]/events/{route-cbe4231fb889bdce.js → route-aea014bebc656830.js} +1 -1
  151. package/.next/static/chunks/app/api/agent/[id]/lease/{route-cbe4231fb889bdce.js → route-aea014bebc656830.js} +1 -1
  152. package/.next/static/chunks/app/api/agent/[id]/route-aea014bebc656830.js +1 -0
  153. package/.next/static/chunks/app/api/agent/debug/route-aea014bebc656830.js +1 -0
  154. package/.next/static/chunks/app/api/agent/new/route-aea014bebc656830.js +1 -0
  155. package/.next/static/chunks/app/api/agent/running/route-aea014bebc656830.js +1 -0
  156. package/.next/static/chunks/app/api/app-update/route-aea014bebc656830.js +1 -0
  157. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-aea014bebc656830.js +1 -0
  158. package/.next/static/chunks/app/api/auth/login/[provider]/route-aea014bebc656830.js +1 -0
  159. package/.next/static/chunks/app/api/auth/logout/[provider]/route-aea014bebc656830.js +1 -0
  160. package/.next/static/chunks/app/api/auth/providers/route-aea014bebc656830.js +1 -0
  161. package/.next/static/chunks/app/api/cache-miss-notices/route-aea014bebc656830.js +1 -0
  162. package/.next/static/chunks/app/api/cwd/browse/route-aea014bebc656830.js +1 -0
  163. package/.next/static/chunks/app/api/cwd/validate/route-aea014bebc656830.js +1 -0
  164. package/.next/static/chunks/app/api/default-cwd/route-aea014bebc656830.js +1 -0
  165. package/.next/static/chunks/app/api/file-index/route-aea014bebc656830.js +1 -0
  166. package/.next/static/chunks/app/api/files/[...path]/route-aea014bebc656830.js +1 -0
  167. package/.next/static/chunks/app/api/git/diff/route-aea014bebc656830.js +1 -0
  168. package/.next/static/chunks/app/api/git/status/route-aea014bebc656830.js +1 -0
  169. package/.next/static/chunks/app/api/home/route-aea014bebc656830.js +1 -0
  170. package/.next/static/chunks/app/api/mcp/route-aea014bebc656830.js +1 -0
  171. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-aea014bebc656830.js +1 -0
  172. package/.next/static/chunks/app/api/mcp/sign-in/route-aea014bebc656830.js +1 -0
  173. package/.next/static/chunks/app/api/mcp/test/route-aea014bebc656830.js +1 -0
  174. package/.next/static/chunks/app/api/models/default/route-aea014bebc656830.js +1 -0
  175. package/.next/static/chunks/app/api/models/enabled/route-aea014bebc656830.js +1 -0
  176. package/.next/static/chunks/app/api/models/refresh/route-aea014bebc656830.js +1 -0
  177. package/.next/static/chunks/app/api/models/route-aea014bebc656830.js +1 -0
  178. package/.next/static/chunks/app/api/models-config/catalog/route-aea014bebc656830.js +1 -0
  179. package/.next/static/chunks/app/api/models-config/discover/route-aea014bebc656830.js +1 -0
  180. package/.next/static/chunks/app/api/models-config/route-aea014bebc656830.js +1 -0
  181. package/.next/static/chunks/app/api/models-config/test/route-aea014bebc656830.js +1 -0
  182. package/.next/static/chunks/app/api/open-in-explorer/route-aea014bebc656830.js +1 -0
  183. package/.next/static/chunks/app/api/plugins/check/route-aea014bebc656830.js +1 -0
  184. package/.next/static/chunks/app/api/plugins/route-aea014bebc656830.js +1 -0
  185. package/.next/static/chunks/app/api/project-trust/route-aea014bebc656830.js +1 -0
  186. package/.next/static/chunks/app/api/provider-usage/query/route-aea014bebc656830.js +1 -0
  187. package/.next/static/chunks/app/api/push/config/route-aea014bebc656830.js +1 -0
  188. package/.next/static/chunks/app/api/push/subscribe/route-aea014bebc656830.js +1 -0
  189. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-aea014bebc656830.js +1 -0
  190. package/.next/static/chunks/app/api/sessions/[id]/context/route-aea014bebc656830.js +1 -0
  191. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-aea014bebc656830.js +1 -0
  192. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-aea014bebc656830.js +1 -0
  193. package/.next/static/chunks/app/api/sessions/[id]/export/route-aea014bebc656830.js +1 -0
  194. package/.next/static/chunks/app/api/sessions/[id]/fork/route-aea014bebc656830.js +1 -0
  195. package/.next/static/chunks/app/api/sessions/[id]/route-aea014bebc656830.js +1 -0
  196. package/.next/static/chunks/app/api/sessions/[id]/state/route-aea014bebc656830.js +1 -0
  197. package/.next/static/chunks/app/api/sessions/delete/route-aea014bebc656830.js +1 -0
  198. package/.next/static/chunks/app/api/sessions/route-aea014bebc656830.js +1 -0
  199. package/.next/static/chunks/app/api/sessions/search/route-aea014bebc656830.js +1 -0
  200. package/.next/static/chunks/app/api/sessions/stats/route-aea014bebc656830.js +1 -0
  201. package/.next/static/chunks/app/api/sessions/ui-state/route-aea014bebc656830.js +1 -0
  202. package/.next/static/chunks/app/api/skills/check/route-aea014bebc656830.js +1 -0
  203. package/.next/static/chunks/app/api/skills/content/route-aea014bebc656830.js +1 -0
  204. package/.next/static/chunks/app/api/skills/install/route-aea014bebc656830.js +1 -0
  205. package/.next/static/chunks/app/api/skills/route-aea014bebc656830.js +1 -0
  206. package/.next/static/chunks/app/api/skills/search/route-aea014bebc656830.js +1 -0
  207. package/.next/static/chunks/app/api/skills/update/route-aea014bebc656830.js +1 -0
  208. package/.next/static/chunks/app/api/subagents/[id]/route-aea014bebc656830.js +1 -0
  209. package/.next/static/chunks/app/api/subagents/profiles/route-aea014bebc656830.js +1 -0
  210. package/.next/static/chunks/app/api/subagents/settings/route-aea014bebc656830.js +1 -0
  211. package/.next/static/chunks/app/api/terminal/[id]/events/route-aea014bebc656830.js +1 -0
  212. package/.next/static/chunks/app/api/terminal/[id]/route-aea014bebc656830.js +1 -0
  213. package/.next/static/chunks/app/api/terminal/route-aea014bebc656830.js +1 -0
  214. package/.next/static/chunks/app/api/tools/settings/route-aea014bebc656830.js +1 -0
  215. package/.next/static/chunks/app/api/web-auth/route-aea014bebc656830.js +1 -0
  216. package/.next/static/chunks/app/api/worktrees/route-aea014bebc656830.js +1 -0
  217. package/.next/static/chunks/app/layout-fd458f024053777b.js +1 -0
  218. package/.next/static/chunks/app/manifest.webmanifest/route-aea014bebc656830.js +1 -0
  219. package/.next/static/chunks/app/page-d2c786f63d634b03.js +1022 -0
  220. package/.next/static/chunks/next/dist/client/components/builtin/app-error-aea014bebc656830.js +1 -0
  221. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-aea014bebc656830.js +1 -0
  222. package/.next/static/chunks/next/dist/client/components/builtin/not-found-aea014bebc656830.js +1 -0
  223. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-aea014bebc656830.js +1 -0
  224. package/.next/static/chunks/{webpack-03add08f717df51e.js → webpack-98cb88af9c517ce2.js} +1 -1
  225. package/.next/static/css/0e52953f40c91a8b.css +1 -0
  226. package/.next/static/css/11d43ff6e42cbb72.css +1 -0
  227. package/.next/static/css/bb657b16840154d3.css +1 -0
  228. package/.next/static/vJWDpddtTSWk_gKxyuTL7/_buildManifest.js +1 -0
  229. package/.next/trace +8 -85
  230. package/.next/trace-build +1 -1
  231. package/.next/types/app/api/agent/debug/route.ts +353 -0
  232. package/.next/types/routes.d.ts +2 -1
  233. package/.next/types/validator.ts +9 -0
  234. package/README.md +2 -1
  235. package/bin/browser-opener.js +44 -1
  236. package/bin/network-addresses.js +62 -0
  237. package/bin/pi-web.js +10 -2
  238. package/package.json +1 -1
  239. package/.next/server/chunks/5787.js +0 -1
  240. package/.next/server/chunks/7492.js +0 -1
  241. package/.next/static/chunks/1278-93326582f35e0b95.js +0 -1
  242. package/.next/static/chunks/app/api/agent/[id]/route-cbe4231fb889bdce.js +0 -1
  243. package/.next/static/chunks/app/api/agent/new/route-cbe4231fb889bdce.js +0 -1
  244. package/.next/static/chunks/app/api/agent/running/route-cbe4231fb889bdce.js +0 -1
  245. package/.next/static/chunks/app/api/app-update/route-cbe4231fb889bdce.js +0 -1
  246. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-cbe4231fb889bdce.js +0 -1
  247. package/.next/static/chunks/app/api/auth/login/[provider]/route-cbe4231fb889bdce.js +0 -1
  248. package/.next/static/chunks/app/api/auth/logout/[provider]/route-cbe4231fb889bdce.js +0 -1
  249. package/.next/static/chunks/app/api/auth/providers/route-cbe4231fb889bdce.js +0 -1
  250. package/.next/static/chunks/app/api/cache-miss-notices/route-cbe4231fb889bdce.js +0 -1
  251. package/.next/static/chunks/app/api/cwd/browse/route-cbe4231fb889bdce.js +0 -1
  252. package/.next/static/chunks/app/api/cwd/validate/route-cbe4231fb889bdce.js +0 -1
  253. package/.next/static/chunks/app/api/default-cwd/route-cbe4231fb889bdce.js +0 -1
  254. package/.next/static/chunks/app/api/file-index/route-cbe4231fb889bdce.js +0 -1
  255. package/.next/static/chunks/app/api/files/[...path]/route-cbe4231fb889bdce.js +0 -1
  256. package/.next/static/chunks/app/api/git/diff/route-cbe4231fb889bdce.js +0 -1
  257. package/.next/static/chunks/app/api/git/status/route-cbe4231fb889bdce.js +0 -1
  258. package/.next/static/chunks/app/api/home/route-cbe4231fb889bdce.js +0 -1
  259. package/.next/static/chunks/app/api/mcp/route-cbe4231fb889bdce.js +0 -1
  260. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-cbe4231fb889bdce.js +0 -1
  261. package/.next/static/chunks/app/api/mcp/sign-in/route-cbe4231fb889bdce.js +0 -1
  262. package/.next/static/chunks/app/api/mcp/test/route-cbe4231fb889bdce.js +0 -1
  263. package/.next/static/chunks/app/api/models/default/route-cbe4231fb889bdce.js +0 -1
  264. package/.next/static/chunks/app/api/models/enabled/route-cbe4231fb889bdce.js +0 -1
  265. package/.next/static/chunks/app/api/models/refresh/route-cbe4231fb889bdce.js +0 -1
  266. package/.next/static/chunks/app/api/models/route-cbe4231fb889bdce.js +0 -1
  267. package/.next/static/chunks/app/api/models-config/catalog/route-cbe4231fb889bdce.js +0 -1
  268. package/.next/static/chunks/app/api/models-config/discover/route-cbe4231fb889bdce.js +0 -1
  269. package/.next/static/chunks/app/api/models-config/route-cbe4231fb889bdce.js +0 -1
  270. package/.next/static/chunks/app/api/models-config/test/route-cbe4231fb889bdce.js +0 -1
  271. package/.next/static/chunks/app/api/open-in-explorer/route-cbe4231fb889bdce.js +0 -1
  272. package/.next/static/chunks/app/api/plugins/check/route-cbe4231fb889bdce.js +0 -1
  273. package/.next/static/chunks/app/api/plugins/route-cbe4231fb889bdce.js +0 -1
  274. package/.next/static/chunks/app/api/project-trust/route-cbe4231fb889bdce.js +0 -1
  275. package/.next/static/chunks/app/api/provider-usage/query/route-cbe4231fb889bdce.js +0 -1
  276. package/.next/static/chunks/app/api/push/config/route-cbe4231fb889bdce.js +0 -1
  277. package/.next/static/chunks/app/api/push/subscribe/route-cbe4231fb889bdce.js +0 -1
  278. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-cbe4231fb889bdce.js +0 -1
  279. package/.next/static/chunks/app/api/sessions/[id]/context/route-cbe4231fb889bdce.js +0 -1
  280. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-cbe4231fb889bdce.js +0 -1
  281. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-cbe4231fb889bdce.js +0 -1
  282. package/.next/static/chunks/app/api/sessions/[id]/export/route-cbe4231fb889bdce.js +0 -1
  283. package/.next/static/chunks/app/api/sessions/[id]/fork/route-cbe4231fb889bdce.js +0 -1
  284. package/.next/static/chunks/app/api/sessions/[id]/route-cbe4231fb889bdce.js +0 -1
  285. package/.next/static/chunks/app/api/sessions/[id]/state/route-cbe4231fb889bdce.js +0 -1
  286. package/.next/static/chunks/app/api/sessions/delete/route-cbe4231fb889bdce.js +0 -1
  287. package/.next/static/chunks/app/api/sessions/route-cbe4231fb889bdce.js +0 -1
  288. package/.next/static/chunks/app/api/sessions/search/route-cbe4231fb889bdce.js +0 -1
  289. package/.next/static/chunks/app/api/sessions/stats/route-cbe4231fb889bdce.js +0 -1
  290. package/.next/static/chunks/app/api/sessions/ui-state/route-cbe4231fb889bdce.js +0 -1
  291. package/.next/static/chunks/app/api/skills/check/route-cbe4231fb889bdce.js +0 -1
  292. package/.next/static/chunks/app/api/skills/content/route-cbe4231fb889bdce.js +0 -1
  293. package/.next/static/chunks/app/api/skills/install/route-cbe4231fb889bdce.js +0 -1
  294. package/.next/static/chunks/app/api/skills/route-cbe4231fb889bdce.js +0 -1
  295. package/.next/static/chunks/app/api/skills/search/route-cbe4231fb889bdce.js +0 -1
  296. package/.next/static/chunks/app/api/skills/update/route-cbe4231fb889bdce.js +0 -1
  297. package/.next/static/chunks/app/api/subagents/[id]/route-cbe4231fb889bdce.js +0 -1
  298. package/.next/static/chunks/app/api/subagents/profiles/route-cbe4231fb889bdce.js +0 -1
  299. package/.next/static/chunks/app/api/subagents/settings/route-cbe4231fb889bdce.js +0 -1
  300. package/.next/static/chunks/app/api/terminal/[id]/events/route-cbe4231fb889bdce.js +0 -1
  301. package/.next/static/chunks/app/api/terminal/[id]/route-cbe4231fb889bdce.js +0 -1
  302. package/.next/static/chunks/app/api/terminal/route-cbe4231fb889bdce.js +0 -1
  303. package/.next/static/chunks/app/api/tools/settings/route-cbe4231fb889bdce.js +0 -1
  304. package/.next/static/chunks/app/api/web-auth/route-cbe4231fb889bdce.js +0 -1
  305. package/.next/static/chunks/app/api/worktrees/route-cbe4231fb889bdce.js +0 -1
  306. package/.next/static/chunks/app/layout-b1ce6552c10e045b.js +0 -1
  307. package/.next/static/chunks/app/manifest.webmanifest/route-cbe4231fb889bdce.js +0 -1
  308. package/.next/static/chunks/app/page-3d87202e7f491be4.js +0 -229
  309. package/.next/static/chunks/next/dist/client/components/builtin/app-error-cbe4231fb889bdce.js +0 -1
  310. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-cbe4231fb889bdce.js +0 -1
  311. package/.next/static/chunks/next/dist/client/components/builtin/not-found-cbe4231fb889bdce.js +0 -1
  312. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-cbe4231fb889bdce.js +0 -1
  313. package/.next/static/css/0ba51581376fe049.css +0 -1
  314. package/.next/static/css/d986dbac15b9ebaa.css +0 -1
  315. package/.next/static/css/e678fb57b00f0bb2.css +0 -1
  316. package/.next/static/pmfOa9kKCLb5t2FbVpaNk/_buildManifest.js +0 -1
  317. /package/.next/static/{pmfOa9kKCLb5t2FbVpaNk → vJWDpddtTSWk_gKxyuTL7}/_ssgManifest.js +0 -0
@@ -1,21 +1,21 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[57121,[],""]
3
3
  3:I[74581,[],""]
4
- 4:I[57788,["7177","static/chunks/app/layout-b1ce6552c10e045b.js"],"PwaRegistration"]
4
+ 4:I[57788,["7177","static/chunks/app/layout-fd458f024053777b.js"],"PwaRegistration"]
5
5
  5:I[61304,[],"ClientPageRoot"]
6
- 6:I[79748,["8500","static/chunks/8500-64219bdee300ed74.js","1278","static/chunks/1278-93326582f35e0b95.js","9833","static/chunks/app/pet-preview/page-5216552d4984389a.js"],"default"]
6
+ 6:I[79748,["8500","static/chunks/8500-64219bdee300ed74.js","1278","static/chunks/1278-924fb78593d04d55.js","9833","static/chunks/app/pet-preview/page-5216552d4984389a.js"],"default"]
7
7
  9:I[90484,[],"OutletBoundary"]
8
8
  a:"$Sreact.suspense"
9
9
  d:I[90484,[],"ViewportBoundary"]
10
10
  f:I[90484,[],"MetadataBoundary"]
11
11
  11:I[27123,[],"default",1]
12
12
  :HL["/_next/static/css/9bcd6051db4f8890.css","style"]
13
- :HL["/_next/static/css/0ba51581376fe049.css","style"]
14
- :HL["/_next/static/css/d986dbac15b9ebaa.css","style"]
15
- :HL["/_next/static/css/e678fb57b00f0bb2.css","style"]
13
+ :HL["/_next/static/css/0e52953f40c91a8b.css","style"]
14
+ :HL["/_next/static/css/bb657b16840154d3.css","style"]
15
+ :HL["/_next/static/css/11d43ff6e42cbb72.css","style"]
16
16
  :HL["/_next/static/css/2668168560922b0f.css","style"]
17
17
  c:X
18
- 0:{"P":null,"c":["","pet-preview"],"q":"","i":false,"f":[[["",{"children":["pet-preview",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9bcd6051db4f8890.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/0ba51581376fe049.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/d986dbac15b9ebaa.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/e678fb57b00f0bb2.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_9e44ca notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){var t=\"auto\";try{var s=localStorage.getItem(\"pi-theme\");if([\"auto\",\"light\",\"mist\",\"lilac\",\"sand\",\"rose\",\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-light\",\"contrast-dark\",\"zenburn\"].includes(s))t=s}catch(e){}if(t===\"auto\")t=window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\";var r=document.documentElement;r.dataset.theme=t;r.classList.toggle(\"dark\",[\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-dark\",\"zenburn\"].includes(t))})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","suppressHydrationWarning":true,"children":[["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L4",null,{}],false]}]]}]]}],{"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":[["$","$L5",null,{"Component":"$6","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@7","$@8"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2668168560922b0f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L9",null,{"children":["$","$a",null,{"name":"Next.MetadataOutlet","children":"$@b"}]}]]}],{},null,false,null]},null,false,"$c"]},null,false,null],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$a",null,{"name":"Next.Metadata","children":"$L10"}]}]}],null]}],false]],"m":"$undefined","G":["$11",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"pmfOa9kKCLb5t2FbVpaNk"}
18
+ 0:{"P":null,"c":["","pet-preview"],"q":"","i":false,"f":[[["",{"children":["pet-preview",{"children":["__PAGE__",{},"$undefined","$undefined",4608]},"$undefined","$undefined",4608]},"$undefined","$undefined",4624],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9bcd6051db4f8890.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/0e52953f40c91a8b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/bb657b16840154d3.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/11d43ff6e42cbb72.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_9e44ca notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){var t=\"auto\";try{var s=localStorage.getItem(\"pi-theme\");if([\"auto\",\"light\",\"mist\",\"lilac\",\"sand\",\"rose\",\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-light\",\"contrast-dark\",\"zenburn\"].includes(s))t=s}catch(e){}if(t===\"auto\")t=window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\";var r=document.documentElement;r.dataset.theme=t;r.classList.toggle(\"dark\",[\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-dark\",\"zenburn\"].includes(t))})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","suppressHydrationWarning":true,"children":[["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","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."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}],["$","$L4",null,{}],false]}]]}]]}],{"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":[["$","$L5",null,{"Component":"$6","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@7","$@8"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2668168560922b0f.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L9",null,{"children":["$","$a",null,{"name":"Next.MetadataOutlet","children":"$@b"}]}]]}],{},null,false,null]},null,false,"$c"]},null,false,null],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$a",null,{"name":"Next.Metadata","children":"$L10"}]}]}],null]}],false]],"m":"$undefined","G":["$11",[]],"S":true,"h":null,"r":"$undefined","s":"$undefined","a":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"vJWDpddtTSWk_gKxyuTL7"}
19
19
  c:C
20
20
  7:{}
21
21
  8:"$0:f:0:1:1:children:1:children:0:props:children:0:props:serverProvidedParams:params"
@@ -1,6 +1,6 @@
1
1
  :HL["/_next/static/css/9bcd6051db4f8890.css","style"]
2
- :HL["/_next/static/css/0ba51581376fe049.css","style"]
3
- :HL["/_next/static/css/d986dbac15b9ebaa.css","style"]
4
- :HL["/_next/static/css/e678fb57b00f0bb2.css","style"]
2
+ :HL["/_next/static/css/0e52953f40c91a8b.css","style"]
3
+ :HL["/_next/static/css/bb657b16840154d3.css","style"]
4
+ :HL["/_next/static/css/11d43ff6e42cbb72.css","style"]
5
5
  :HL["/_next/static/css/2668168560922b0f.css","style"]
6
- 0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"pet-preview","param":null,"prefetchHints":4192,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}}}},"staleTime":300,"buildId":"pmfOa9kKCLb5t2FbVpaNk"}
6
+ 0:{"tree":{"name":"","param":null,"prefetchHints":4176,"slots":{"children":{"name":"pet-preview","param":null,"prefetchHints":4192,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":4256,"slots":null}}}}},"staleTime":300,"buildId":"vJWDpddtTSWk_gKxyuTL7"}
@@ -1,6 +1,6 @@
1
1
  1:"$Sreact.fragment"
2
2
  2:I[61304,[],"ClientPageRoot"]
3
- 3:I[79748,["8500","static/chunks/8500-64219bdee300ed74.js","1278","static/chunks/1278-93326582f35e0b95.js","9833","static/chunks/app/pet-preview/page-5216552d4984389a.js"],"default"]
3
+ 3:I[79748,["8500","static/chunks/8500-64219bdee300ed74.js","1278","static/chunks/1278-924fb78593d04d55.js","9833","static/chunks/app/pet-preview/page-5216552d4984389a.js"],"default"]
4
4
  6:I[90484,[],"OutletBoundary"]
5
5
  7:"$Sreact.suspense"
6
6
  b:I[90484,[],"ViewportBoundary"]
@@ -10,14 +10,14 @@ f:I[57121,[],""]
10
10
  10:I[74581,[],""]
11
11
  :HL["/_next/static/css/2668168560922b0f.css","style"]
12
12
  :HL["/_next/static/css/9bcd6051db4f8890.css","style"]
13
- :HL["/_next/static/css/0ba51581376fe049.css","style"]
14
- :HL["/_next/static/css/d986dbac15b9ebaa.css","style"]
15
- :HL["/_next/static/css/e678fb57b00f0bb2.css","style"]
13
+ :HL["/_next/static/css/0e52953f40c91a8b.css","style"]
14
+ :HL["/_next/static/css/bb657b16840154d3.css","style"]
15
+ :HL["/_next/static/css/11d43ff6e42cbb72.css","style"]
16
16
  a:X
17
17
  12:X
18
18
  12:C
19
- 0:{"buildId":"pmfOa9kKCLb5t2FbVpaNk","data":[{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2668168560922b0f.css","precedence":"next"}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":"$@9","staleTime":"$a","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$Lb",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#ffffff","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#1a1a1a","media":"(prefers-color-scheme: dark)"}]]}],["$","div",null,{"hidden":true,"children":["$","$Lc",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"PI-YUN"}],["$","meta","1",{"name":"description","content":"PI-YUN interface for the pi coding agent"}],["$","meta","2",{"name":"application-name","content":"PI-YUN"}],["$","link","3",{"rel":"manifest","href":"/manifest.webmanifest"}],["$","meta","4",{"name":"format-detection","content":"telephone=no"}],["$","meta","5",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"PI-YUN"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"black-translucent"}],["$","link","8",{"rel":"icon","href":"/favicon.ico?49f1942df4a62dcc","type":"image/x-icon","sizes":"16x16"}],["$","link","9",{"rel":"icon","href":"/icons/yun-mark-192.png","sizes":"192x192","type":"image/png"}],["$","link","10",{"rel":"apple-touch-icon","href":"/icons/yun-mark-apple-touch.png","sizes":"180x180","type":"image/png"}],["$","$Ld","11",{}]]}]}]}],null]}],"isPartial":"$@e","staleTime":"$a","varyParams":null},{"rsc":["$","$1","c",{"children":[null,["$","$Lf",null,{"parallelRouterKey":"children","template":["$","$L10",null,{}]}]]}],"isPartial":"$@11","staleTime":"$a","varyParams":"$12"},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9bcd6051db4f8890.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/0ba51581376fe049.css","precedence":"next"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/d986dbac15b9ebaa.css","precedence":"next"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/e678fb57b00f0bb2.css","precedence":"next"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_9e44ca notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){var t=\"auto\";try{var s=localStorage.getItem(\"pi-theme\");if([\"auto\",\"light\",\"mist\",\"lilac\",\"sand\",\"rose\",\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-light\",\"contrast-dark\",\"zenburn\"].includes(s))t=s}catch(e){}if(t===\"auto\")t=window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\";var r=document.documentElement;r.dataset.theme=t;r.classList.toggle(\"dark\",[\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-dark\",\"zenburn\"].includes(t))})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","suppressHydrationWarning":true,"children":[["$","$Lf",null,{"parallelRouterKey":"children","template":["$","$L10",null,{}],"notFound":[[["$","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}],"$L13"]}]}]],[]]}],"$L14",false]}]]}]]}],"isPartial":"$@15","staleTime":"$a","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@16","rootVaryParams":null,"needsRuntimeRequest":"$@17"}
20
- 18:I[57788,["7177","static/chunks/app/layout-b1ce6552c10e045b.js"],"PwaRegistration"]
19
+ 0:{"buildId":"vJWDpddtTSWk_gKxyuTL7","data":[{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/2668168560922b0f.css","precedence":"next"}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":"$@9","staleTime":"$a","varyParams":null},{"rsc":["$","$1","h",{"children":[null,["$","$Lb",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1, viewport-fit=cover, interactive-widget=resizes-content"}],["$","meta","2",{"name":"theme-color","content":"#ffffff","media":"(prefers-color-scheme: light)"}],["$","meta","3",{"name":"theme-color","content":"#1a1a1a","media":"(prefers-color-scheme: dark)"}]]}],["$","div",null,{"hidden":true,"children":["$","$Lc",null,{"children":["$","$7",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"PI-YUN"}],["$","meta","1",{"name":"description","content":"PI-YUN interface for the pi coding agent"}],["$","meta","2",{"name":"application-name","content":"PI-YUN"}],["$","link","3",{"rel":"manifest","href":"/manifest.webmanifest"}],["$","meta","4",{"name":"format-detection","content":"telephone=no"}],["$","meta","5",{"name":"mobile-web-app-capable","content":"yes"}],["$","meta","6",{"name":"apple-mobile-web-app-title","content":"PI-YUN"}],["$","meta","7",{"name":"apple-mobile-web-app-status-bar-style","content":"black-translucent"}],["$","link","8",{"rel":"icon","href":"/favicon.ico?49f1942df4a62dcc","type":"image/x-icon","sizes":"16x16"}],["$","link","9",{"rel":"icon","href":"/icons/yun-mark-192.png","sizes":"192x192","type":"image/png"}],["$","link","10",{"rel":"apple-touch-icon","href":"/icons/yun-mark-apple-touch.png","sizes":"180x180","type":"image/png"}],["$","$Ld","11",{}]]}]}]}],null]}],"isPartial":"$@e","staleTime":"$a","varyParams":null},{"rsc":["$","$1","c",{"children":[null,["$","$Lf",null,{"parallelRouterKey":"children","template":["$","$L10",null,{}]}]]}],"isPartial":"$@11","staleTime":"$a","varyParams":"$12"},{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9bcd6051db4f8890.css","precedence":"next"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/0e52953f40c91a8b.css","precedence":"next"}],["$","link","2",{"rel":"stylesheet","href":"/_next/static/css/bb657b16840154d3.css","precedence":"next"}],["$","link","3",{"rel":"stylesheet","href":"/_next/static/css/11d43ff6e42cbb72.css","precedence":"next"}]],["$","html",null,{"lang":"en","translate":"no","className":"__variable_9e44ca notranslate","suppressHydrationWarning":true,"children":[["$","head",null,{"children":[["$","meta",null,{"name":"google","content":"notranslate"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"(function(){var t=\"auto\";try{var s=localStorage.getItem(\"pi-theme\");if([\"auto\",\"light\",\"mist\",\"lilac\",\"sand\",\"rose\",\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-light\",\"contrast-dark\",\"zenburn\"].includes(s))t=s}catch(e){}if(t===\"auto\")t=window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\";var r=document.documentElement;r.dataset.theme=t;r.classList.toggle(\"dark\",[\"dark\",\"pine\",\"dusk\",\"ember\",\"slate\",\"contrast-dark\",\"zenburn\"].includes(t))})();"}}]]}],["$","body",null,{"translate":"no","className":"notranslate","suppressHydrationWarning":true,"children":[["$","$Lf",null,{"parallelRouterKey":"children","template":["$","$L10",null,{}],"notFound":[[["$","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}],"$L13"]}]}]],[]]}],"$L14",false]}]]}]]}],"isPartial":"$@15","staleTime":"$a","varyParams":null}],"isUpgradeableISRFallback":false,"a":"$@16","rootVaryParams":null,"needsRuntimeRequest":"$@17"}
20
+ 18:I[57788,["7177","static/chunks/app/layout-fd458f024053777b.js"],"PwaRegistration"]
21
21
  4:{}
22
22
  5:"$0:data:0:rsc:props:children:0:props:serverProvidedParams:params"
23
23
  8:null
@@ -2,7 +2,6 @@
2
2
  "/_not-found/page": "app/_not-found/page.js",
3
3
  "/_global-error/page": "app/_global-error/page.js",
4
4
  "/api/agent/[id]/bash-output/route": "app/api/agent/[id]/bash-output/route.js",
5
- "/api/agent/[id]/lease/route": "app/api/agent/[id]/lease/route.js",
6
5
  "/api/agent/[id]/route": "app/api/agent/[id]/route.js",
7
6
  "/api/cwd/browse/route": "app/api/cwd/browse/route.js",
8
7
  "/api/cwd/validate/route": "app/api/cwd/validate/route.js",
@@ -20,57 +19,59 @@
20
19
  "/api/worktrees/route": "app/api/worktrees/route.js",
21
20
  "/favicon.ico/route": "app/favicon.ico/route.js",
22
21
  "/manifest.webmanifest/route": "app/manifest.webmanifest/route.js",
23
- "/api/agent/[id]/events/route": "app/api/agent/[id]/events/route.js",
24
- "/api/agent/new/route": "app/api/agent/new/route.js",
22
+ "/api/agent/debug/route": "app/api/agent/debug/route.js",
25
23
  "/api/agent/running/route": "app/api/agent/running/route.js",
24
+ "/api/agent/[id]/events/route": "app/api/agent/[id]/events/route.js",
25
+ "/api/agent/[id]/lease/route": "app/api/agent/[id]/lease/route.js",
26
26
  "/api/app-update/route": "app/api/app-update/route.js",
27
27
  "/api/auth/api-key/[provider]/route": "app/api/auth/api-key/[provider]/route.js",
28
- "/api/auth/logout/[provider]/route": "app/api/auth/logout/[provider]/route.js",
29
- "/api/auth/login/[provider]/route": "app/api/auth/login/[provider]/route.js",
28
+ "/api/agent/new/route": "app/api/agent/new/route.js",
30
29
  "/api/auth/providers/route": "app/api/auth/providers/route.js",
30
+ "/api/auth/logout/[provider]/route": "app/api/auth/logout/[provider]/route.js",
31
31
  "/api/cache-miss-notices/route": "app/api/cache-miss-notices/route.js",
32
32
  "/api/mcp/sign-in/[flowId]/route": "app/api/mcp/sign-in/[flowId]/route.js",
33
33
  "/api/mcp/sign-in/route": "app/api/mcp/sign-in/route.js",
34
34
  "/api/mcp/test/route": "app/api/mcp/test/route.js",
35
+ "/api/auth/login/[provider]/route": "app/api/auth/login/[provider]/route.js",
35
36
  "/api/models-config/catalog/route": "app/api/models-config/catalog/route.js",
36
37
  "/api/models-config/route": "app/api/models-config/route.js",
37
38
  "/api/models-config/discover/route": "app/api/models-config/discover/route.js",
38
39
  "/api/models-config/test/route": "app/api/models-config/test/route.js",
39
- "/api/models/default/route": "app/api/models/default/route.js",
40
40
  "/api/models/refresh/route": "app/api/models/refresh/route.js",
41
- "/api/models/enabled/route": "app/api/models/enabled/route.js",
42
- "/api/mcp/route": "app/api/mcp/route.js",
43
- "/api/plugins/check/route": "app/api/plugins/check/route.js",
41
+ "/api/models/default/route": "app/api/models/default/route.js",
44
42
  "/api/models/route": "app/api/models/route.js",
45
43
  "/api/open-in-explorer/route": "app/api/open-in-explorer/route.js",
44
+ "/api/plugins/check/route": "app/api/plugins/check/route.js",
45
+ "/api/project-trust/route": "app/api/project-trust/route.js",
46
46
  "/api/provider-usage/query/route": "app/api/provider-usage/query/route.js",
47
47
  "/api/push/config/route": "app/api/push/config/route.js",
48
- "/api/project-trust/route": "app/api/project-trust/route.js",
49
48
  "/api/push/subscribe/route": "app/api/push/subscribe/route.js",
50
- "/api/plugins/route": "app/api/plugins/route.js",
51
- "/api/sessions/[id]/fork/route": "app/api/sessions/[id]/fork/route.js",
52
49
  "/api/sessions/[id]/export/route": "app/api/sessions/[id]/export/route.js",
53
- "/api/sessions/[id]/route": "app/api/sessions/[id]/route.js",
50
+ "/api/sessions/[id]/fork/route": "app/api/sessions/[id]/fork/route.js",
51
+ "/api/mcp/route": "app/api/mcp/route.js",
54
52
  "/api/sessions/delete/route": "app/api/sessions/delete/route.js",
53
+ "/api/plugins/route": "app/api/plugins/route.js",
55
54
  "/api/sessions/route": "app/api/sessions/route.js",
56
55
  "/api/sessions/search/route": "app/api/sessions/search/route.js",
57
- "/api/sessions/stats/route": "app/api/sessions/stats/route.js",
56
+ "/api/sessions/[id]/route": "app/api/sessions/[id]/route.js",
58
57
  "/api/sessions/ui-state/route": "app/api/sessions/ui-state/route.js",
58
+ "/api/sessions/stats/route": "app/api/sessions/stats/route.js",
59
59
  "/api/skills/check/route": "app/api/skills/check/route.js",
60
60
  "/api/skills/content/route": "app/api/skills/content/route.js",
61
61
  "/api/skills/install/route": "app/api/skills/install/route.js",
62
62
  "/api/skills/route": "app/api/skills/route.js",
63
+ "/api/subagents/[id]/route": "app/api/subagents/[id]/route.js",
63
64
  "/api/skills/update/route": "app/api/skills/update/route.js",
64
65
  "/api/skills/search/route": "app/api/skills/search/route.js",
65
- "/api/subagents/[id]/route": "app/api/subagents/[id]/route.js",
66
66
  "/api/subagents/settings/route": "app/api/subagents/settings/route.js",
67
+ "/api/terminal/[id]/route": "app/api/terminal/[id]/route.js",
67
68
  "/api/subagents/profiles/route": "app/api/subagents/profiles/route.js",
68
69
  "/api/terminal/[id]/events/route": "app/api/terminal/[id]/events/route.js",
69
- "/api/terminal/[id]/route": "app/api/terminal/[id]/route.js",
70
70
  "/api/terminal/route": "app/api/terminal/route.js",
71
71
  "/api/tools/settings/route": "app/api/tools/settings/route.js",
72
72
  "/api/web-auth/route": "app/api/web-auth/route.js",
73
73
  "/login/page": "app/login/page.js",
74
74
  "/page": "app/page.js",
75
- "/pet-preview/page": "app/pet-preview/page.js"
75
+ "/pet-preview/page": "app/pet-preview/page.js",
76
+ "/api/models/enabled/route": "app/api/models/enabled/route.js"
76
77
  }
@@ -1 +1 @@
1
- "use strict";exports.id=1207,exports.ids=[1207],exports.modules={41228:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Gc:()=>s,Rt:()=>E,Te:()=>F,Uf:()=>I,ZZ:()=>o,cY:()=>k,hy:()=>D,i7:()=>H,lU:()=>N,mz:()=>O,wS:()=>n,yH:()=>x,yK:()=>B});var e=c(76760),f=c(75430),g=c(10674),h=c(305),i=c(37431),j=a([f,g,h]);[f,g,h]=j.then?(await j)():j;let J=["automatic","always"],K="codemode";function k(a){return"string"==typeof a&&J.includes(a)}function l(a){return a.startsWith("+")||a.startsWith("-")}function m(a){return void 0!==a&&(0,h.e5)(a).includes(K)?"always":"automatic"}async function n(a=(0,g.WD)()){return(0,g.lz)(a,a=>m((0,g.cj)(a)))}async function o(a,b=(0,g.WD)()){return await n(b)===a?a:(0,g.AC)(b,b=>{var c;let d,e=(c=(0,g.cj)(b),d=(c??[]).filter(a=>(l(a)?a.slice(1):a)!==K),"always"===a?[...d,`+${K}`]:d.length>0?d:void 0!==c&&c.some(a=>!l(a))?[]:void 0);return void 0===e?delete b.defaultTools:b.defaultTools=e,m(e)})}let L={automatic:void 0,always:JSON.stringify({defaultTools:[`+${K}`]})};function p(a,b){let c={global:a,project:b};return f.SettingsManager.fromStorage({withLock:(a,b)=>{b(c[a])}},{projectTrusted:!0})}function q(a,b){return p(a,b).getDefaultTools()?.includes(K)===!0}function r(a){return(0,e.join)(a,f.CONFIG_DIR_NAME,"settings.json")}function s(a){let b=r(a),c=function(a){if(void 0===a)return;let b=q(L.automatic,a);if(b===q(L.always,a))return b?"always":"automatic"}(t(b));return c?{settingsPath:b,preference:c}:void 0}function t(a){try{return(0,i.y)(a,i.T)}catch{return}}function u(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function v(a,b){return u(a.codemode)?a.codemode[b]:void 0}function w(a){let b=JSON.stringify(a)??String(a);return b.length>60?`${b.slice(0,59)}…`:b}async function x(a=(0,g.WD)()){return(0,g.lz)(a,a=>{var b,c;return{mode:(b=a,C(v(b,"mode"))),inlineBudget:(c=a,G(v(c,"inlineBudget")))}})}async function y(a,b,c,d,e=a=>a===c){let f=await (0,g.lz)(a,a=>v(a,b));return e(f)?d(f):(0,g.AC)(a,a=>{let e=a.codemode;if(void 0!==e&&!u(e))throw Error("Invalid settings.json: codemode must be an object");return void 0!==c?e?e[b]=c:a.codemode={[b]:c}:e&&(delete e[b],0===Object.keys(e).length&&delete a.codemode),d(v(a,b))})}function z(a,b,c){let d=JSON.stringify({codemode:{[a]:b}});return v({codemode:p(d,c).getSettings().codemode},a)}function A(a,b,c){if(void 0===c)return;let d=z(a,b[0],c);if(JSON.stringify(d)===JSON.stringify(z(a,b[1],c)))return{raw:d}}let M=["on","only"];function B(a){return"string"==typeof a&&M.includes(a)}function C(a){return"only"===a?{value:"only"}:void 0===a||"on"===a?{value:"on"}:{value:"on",invalid:w(a)}}async function D(a,b=(0,g.WD)()){return y(b,"mode","only"===a?"only":void 0,C,b=>"only"===a?"only"===b:void 0===b||"on"===b)}function E(a){var b;let c,d=r(a),e=(b=t(d),(c=A("mode",["on","only"],b))&&C(c.raw));return e?{settingsPath:d,...e}:void 0}let N=3e3,O=1e6;function F(a){return"number"==typeof a&&Number.isSafeInteger(a)&&a>=0&&a<=O}function G(a){return void 0===a?{}:"number"==typeof a&&Number.isFinite(a)&&a>=0?{value:a}:{invalid:w(a)}}async function H(a,b=(0,g.WD)()){return y(b,"inlineBudget",a,G)}function I(a){var b;let c,d=r(a),e=(b=t(d),(c=A("inlineBudget",[1,2],b))&&G(c.raw));return e?{settingsPath:d,...e}:void 0}d()}catch(a){d(a)}})},66544:(a,b,c)=>{c.d(b,{E2:()=>k,EN:()=>j});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;let c=e(b.hostname);return b.port?`${c}:${b.port}`:c}catch{return null}}function h(){return[process.env.PI_WEB_HOSTNAME,...process.env.PI_WEB_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function i(a){try{return new URL(a).origin}catch{return null}}function j(a,b=h()){return!!function(a,b=h()){let c=a.headers.get("host"),g=c?f(c):null;return!!g&&(!!("localhost"===g||g.endsWith(".localhost")||(0,d.isIP)(g))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===g}))}(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{return/^\/api\/sessions\/[^/]+\/export$/.test(new URL(a.url).pathname)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d,e=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!e)return!0;let f=(b=new URL(a.url),(c=a.headers.get("host"))?i(`${b.protocol}//${c}`):null);if(null!==f&&i(e)===f)return!0;if("same-origin"!==a.headers.get("sec-fetch-site")||!a.headers.get("x-forwarded-proto"))return!1;let h=a.headers.get("host");if(!h)return!1;try{d=new URL(e).host}catch{return!1}let j=g(d);return null!==j&&j===g(h)}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}}};
1
+ "use strict";exports.id=1207,exports.ids=[1207],exports.modules={41228:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{Gc:()=>s,Rt:()=>E,Te:()=>F,Uf:()=>I,ZZ:()=>o,cY:()=>k,hy:()=>D,i7:()=>H,lU:()=>N,mz:()=>O,wS:()=>n,yH:()=>x,yK:()=>B});var e=c(76760),f=c(75430),g=c(10674),h=c(305),i=c(37431),j=a([f,g,h]);[f,g,h]=j.then?(await j)():j;let J=["automatic","always"],K="codemode";function k(a){return"string"==typeof a&&J.includes(a)}function l(a){return a.startsWith("+")||a.startsWith("-")}function m(a){return void 0!==a&&(0,h.e5)(a).includes(K)?"always":"automatic"}async function n(a=(0,g.WD)()){return(0,g.lz)(a,a=>m((0,g.cj)(a)))}async function o(a,b=(0,g.WD)()){return await n(b)===a?a:(0,g.AC)(b,b=>{var c;let d,e=(c=(0,g.cj)(b),d=(c??[]).filter(a=>(l(a)?a.slice(1):a)!==K),"always"===a?[...d,`+${K}`]:d.length>0?d:void 0!==c&&c.some(a=>!l(a))?[]:void 0);return void 0===e?delete b.defaultTools:b.defaultTools=e,m(e)})}let L={automatic:void 0,always:JSON.stringify({defaultTools:[`+${K}`]})};function p(a,b){let c={global:a,project:b};return f.SettingsManager.fromStorage({withLock:(a,b)=>{b(c[a])}},{projectTrusted:!0})}function q(a,b){return p(a,b).getDefaultTools()?.includes(K)===!0}function r(a){return(0,e.join)(a,f.CONFIG_DIR_NAME,"settings.json")}function s(a){let b=r(a),c=function(a){if(void 0===a)return;let b=q(L.automatic,a);if(b===q(L.always,a))return b?"always":"automatic"}(t(b));return c?{settingsPath:b,preference:c}:void 0}function t(a){try{return(0,i.y)(a,i.T)}catch{return}}function u(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}function v(a,b){return u(a.codemode)?a.codemode[b]:void 0}function w(a){let b=JSON.stringify(a)??String(a);return b.length>60?`${b.slice(0,59)}…`:b}async function x(a=(0,g.WD)()){return(0,g.lz)(a,a=>{var b,c;return{mode:(b=a,C(v(b,"mode"))),inlineBudget:(c=a,G(v(c,"inlineBudget")))}})}async function y(a,b,c,d,e=a=>a===c){let f=await (0,g.lz)(a,a=>v(a,b));return e(f)?d(f):(0,g.AC)(a,a=>{let e=a.codemode;if(void 0!==e&&!u(e))throw Error("Invalid settings.json: codemode must be an object");return void 0!==c?e?e[b]=c:a.codemode={[b]:c}:e&&(delete e[b],0===Object.keys(e).length&&delete a.codemode),d(v(a,b))})}function z(a,b,c){let d=JSON.stringify({codemode:{[a]:b}});return v({codemode:p(d,c).getSettings().codemode},a)}function A(a,b,c){if(void 0===c)return;let d=z(a,b[0],c);if(JSON.stringify(d)===JSON.stringify(z(a,b[1],c)))return{raw:d}}let M=["on","only"];function B(a){return"string"==typeof a&&M.includes(a)}function C(a){return"only"===a?{value:"only"}:void 0===a||"on"===a?{value:"on"}:{value:"on",invalid:w(a)}}async function D(a,b=(0,g.WD)()){return y(b,"mode","only"===a?"only":void 0,C,b=>"only"===a?"only"===b:void 0===b||"on"===b)}function E(a){var b;let c,d=r(a),e=(b=t(d),(c=A("mode",["on","only"],b))&&C(c.raw));return e?{settingsPath:d,...e}:void 0}let N=3e3,O=1e6;function F(a){return"number"==typeof a&&Number.isSafeInteger(a)&&a>=0&&a<=O}function G(a){return void 0===a?{}:"number"==typeof a&&Number.isFinite(a)&&a>=0?{value:a}:{invalid:w(a)}}async function H(a,b=(0,g.WD)()){return y(b,"inlineBudget",a,G)}function I(a){var b;let c,d=r(a),e=(b=t(d),(c=A("inlineBudget",[1,2],b))&&G(c.raw));return e?{settingsPath:d,...e}:void 0}d()}catch(a){d(a)}})},66544:(a,b,c)=>{c.d(b,{E2:()=>k,EN:()=>j});var d=c(77030);function e(a){return(a.startsWith("[")&&a.endsWith("]")?a.slice(1,-1):a).toLowerCase().replace(/\.$/,"")}function f(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;return e(b.hostname)}catch{return null}}function g(a){if(!a||/[\s/@\\]/.test(a))return null;try{let b=new URL(`http://${a}`);if(b.username||b.password||"/"!==b.pathname||b.search||b.hash)return null;let c=e(b.hostname);return b.port?`${c}:${b.port}`:c}catch{return null}}function h(){return[process.env.PI_WEB_HOSTNAME,...process.env.PI_WEB_ALLOWED_HOSTS?.split(",")??[]].filter(a=>!!a?.trim())}function i(a){try{return new URL(a).origin}catch{return null}}function j(a,b=h()){return!!function(a,b=h()){let c=a.headers.get("host"),g=c?f(c):null;return!!g&&(!!("localhost"===g||g.endsWith(".localhost")||(0,d.isIP)(g))||b.some(a=>{let b;return((b=a?.trim())?(0,d.isIP)(b)?e(b):f(b):null)===g}))}(a,b)&&(!!function(a){if("GET"!==a.method||"navigate"!==a.headers.get("sec-fetch-mode")||"document"!==a.headers.get("sec-fetch-dest")||"?1"!==a.headers.get("sec-fetch-user"))return!1;try{let b=new URL(a.url);return/^\/api\/sessions\/[^/]+\/export$/.test(b.pathname)||function(a){if(!a.pathname.startsWith("/api/files/")||"read"!==a.searchParams.get("type"))return!1;let b=a.pathname.slice(a.pathname.lastIndexOf("/")+1);try{return decodeURIComponent(b).toLowerCase().endsWith(".pdf")}catch{return!1}}(b)}catch{return!1}}(a)||!(a.headers.has("origin")||a.headers.has("sec-fetch-site"))||function(a){let b,c,d,e=a.headers.get("origin");if("cross-site"===a.headers.get("sec-fetch-site"))return!1;if(!e)return!0;let f=(b=new URL(a.url),(c=a.headers.get("host"))?i(`${b.protocol}//${c}`):null);if(null!==f&&i(e)===f)return!0;if("same-origin"!==a.headers.get("sec-fetch-site")||!a.headers.get("x-forwarded-proto"))return!1;let h=a.headers.get("host");if(!h)return!1;try{d=new URL(e).host}catch{return!1}let j=g(d);return null!==j&&j===g(h)}(a))}function k(a){let b=a.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase();return"application/json"===b||!!(b?.startsWith("application/")&&b.endsWith("+json"))}}};
@@ -1 +1 @@
1
- "use strict";exports.id=1906,exports.ids=[1906],exports.modules={10879:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{$q:()=>x,Vy:()=>v,bA:()=>y,ej:()=>u,yh:()=>C});var e=c(73024),f=c(76760),g=c(75430),h=c(80974),i=c.n(h),j=c(8102),k=c(63108),l=c(37431),m=c(12069),n=a([g]);g=(n.then?(await n)():n)[0];let z=new Set(["version","revision","sessions","projects","removedProjects","projectOrder","projectNames","__proto__"]),A=Symbol.for("pi-web:session-ui-state-write-queue"),B={realpath:!1,stale:1e4,retries:{retries:10,factor:2,minTimeout:25,maxTimeout:500},onCompromised:a=>{console.warn(`[pi-web] the session UI state lock was compromised: ${a.message}`)}};class C extends Error{constructor(a="Another process holds the session UI state lock"){super(a),this.name="SessionUiStateLockedError"}}function o(){return globalThis.__piWebSessionUiStateCache??={reads:new Map,revisions:new Map}}function p(a,b){let c=o().revisions;b>(c.get(a)??-1)&&c.set(a,b)}function q(a){return structuredClone(a)}function r(a=(0,g.getAgentDir)()){return(0,f.join)(a,"pi-web-session-state.json")}function s(a){let b;try{b=JSON.parse(a)}catch{return{ok:!1}}let c=(0,m.Jx)(b);return c?{ok:!0,state:c,raw:b}:{ok:!1}}function t(a){let b,c;try{b=(0,e.statSync)(a)}catch(c){let b=c?.code;if("ENOENT"===b||"ENOTDIR"===b)return o().reads.delete(a),(0,m.ly)();throw c}let d=o().reads.get(a);if(d&&d.mtimeMs===b.mtimeMs&&d.size===b.size&&d.ino===b.ino)return d.state;let f=(0,l.y)(a,4194304);if(void 0===f)return o().reads.delete(a),(0,m.ly)();let g=s(f);return g.ok?(c=g.state,p(a,c.revision)):(console.warn(`[pi-web] ${a} is not valid session UI state; reading it as empty until the next change sets it aside`),c=(0,m.ly)()),o().reads.set(a,{mtimeMs:b.mtimeMs,size:b.size,ino:b.ino,state:c}),c}function u(a){try{return q(t(a??r()))}catch(a){return console.warn(`[pi-web] could not read the session UI state: ${a instanceof Error?a.message:String(a)}`),(0,m.ly)()}}function v(a){try{return t(a??r()).revision}catch{return null}}function w(a,b){return(0,k.T)(A,a,async()=>{let c;(0,e.mkdirSync)((0,f.dirname)(a),{recursive:!0});try{c=await i().lock(a,B)}catch(a){if("ELOCKED"===a?.code)throw new C;throw a}try{let c,d=o().revisions.get(a)??0,f=(0,l.y)(a,4194304),g={},h=!1;if(void 0===f)c={...(0,m.ly)(),revision:d};else{let b=s(f);if(b.ok)for(let[a,d]of(c=b.state,Object.entries(b.raw)))z.has(a)||(g[a]=d);else{let b=`${a}.corrupt-${Date.now()}`;try{(0,e.renameSync)(a,b),console.warn(`[pi-web] ${a} could not be parsed; moved it to ${b} and started from an empty session UI state`)}catch(b){console.warn(`[pi-web] ${a} could not be parsed and could not be moved aside (${b instanceof Error?b.message:String(b)}); starting from an empty session UI state`)}c={...(0,m.ly)(),revision:d+1},h=!0}}let i=b(c);if(!i.changed&&!h)return q(c);let k={...i.state,version:m.fS,revision:c.revision+ +!!i.changed},n={version:k.version,revision:k.revision,sessions:k.sessions,projects:k.projects,...k.removedProjects&&Object.keys(k.removedProjects).length>0?{removedProjects:k.removedProjects}:{},...k.projectOrder?.length?{projectOrder:k.projectOrder}:{},...k.projectNames&&Object.keys(k.projectNames).length>0?{projectNames:k.projectNames}:{},...g};(0,j.$)(a,JSON.stringify(n,null,2)+"\n"),p(a,k.revision);try{let b=(0,e.statSync)(a);o().reads.set(a,{mtimeMs:b.mtimeMs,size:b.size,ino:b.ino,state:q(k)})}catch{o().reads.delete(a)}return q(k)}finally{try{await c()}catch{}}})}function x(a,b){let c;try{c=b??r()}catch(a){return Promise.reject(a)}return w(c,b=>(0,m.D7)(b,a,Date.now()))}async function y(a,b){let c=b??r(),d=[...new Set(a)];if(0===d.length)return;let e=a=>d.some(b=>Object.prototype.hasOwnProperty.call(a.sessions,b));e(t(c))&&await w(c,a=>{if(!e(a))return{state:a,changed:!1};let b={...a.sessions};for(let a of d)delete b[a];return{state:{...a,sessions:b},changed:!0}})}d()}catch(a){d(a)}})},21906:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{L:()=>o,j:()=>n});var e=c(29021),f=c(33873),g=c(56429),h=c(40402),i=c(45902),j=c(10879),k=c(7048),l=a([g,h,j,k]);[g,h,j,k]=l.then?(await l)():l;let o=500;function m(a,b,c){let d=a.get(b)??[];d.push(c),a.set(b,d)}async function n(a,b={}){let c=new Map,d=[];for(let b of new Set(a)){let a=await (0,h.os)(b);a?c.set(b,a):d.push(b)}if(0===c.size)return{deleted:[],missing:d,running:[]};let l=new Map;for(let a of c.values()){let b;try{b=(0,h.eP)(a)?.parentSession}catch(a){if("ENOENT"!==a.code)throw a}l.set((0,i.$)(a),b)}let o=new Set([...c.values()].map(a=>(0,i.$)(a))),p=new Set([...c.values()].map(a=>(0,f.dirname)(a))),q=(0,h.O5)(await (0,h.dQ)({force:!0}),(0,g.Bp)({includeTransient:!0})),r=new Map;for(let a of q)a.relation?.kind==="subagent"&&m(r,a.relation.parentSessionId,a.id);let s=new Map(q.map(a=>[a.id,a.path]));for(let a of p)try{for(let b of(0,e.readdirSync)(a).filter(a=>a.endsWith(".jsonl"))){let c=(0,f.join)(a,b);if(!o.has((0,i.$)(c)))try{let a=(0,e.readFileSync)(c,"utf8").split("\n"),b=JSON.parse(a[0]);if("session"!==b.type||"string"!=typeof b.id)continue;let d=a.slice(1).flatMap(a=>{try{return[JSON.parse(a)]}catch{return[]}}),f=(0,k.$u)(d,b.id,c);if(!f)continue;m(r,f.parentSessionId,b.id),s.set(b.id,c)}catch{}}}catch{}let t=b.keepRunning?new Set((0,g.HG)()):new Set,u=new Set,v=[];for(let a of c.keys()){if(u.has(a))continue;let b=[],c=new Set,d=a=>{if(!(c.has(a)||u.has(a))){for(let b of(c.add(a),r.get(a)??[]))d(b);b.push(a)}};if(d(a),b.some(a=>t.has(a))){v.push(a);continue}for(let a of b)u.add(a)}let w=new Map;for(let a of u){let b=c.get(a)??s.get(a)??(0,g.A4)(a)?.sessionFile??await (0,h.os)(a);b&&w.set(a,b)}let x=new Map([...w.values()].map(a=>[(0,i.$)(a),a])),y=a=>{let b=new Set,c=a;for(;c;){let a=(0,i.$)(c),d=x.get(a);if(void 0===d)return c;if(b.has(a))break;if(b.add(a),!l.has(a)){let b;try{b=(0,h.eP)(d)?.parentSession}catch{b=void 0}l.set(a,b)}c=l.get(a)}};if(w.size>0)for(let a of new Set([...w.values()].map(a=>(0,f.dirname)(a))))try{for(let b of(0,e.readdirSync)(a).filter(b=>b.endsWith(".jsonl")&&!x.has((0,i.$)((0,f.join)(a,b))))){let c=(0,f.join)(a,b);try{let a,b=(0,h.eP)(c)?.parentSession;if(!b||!x.has((0,i.$)(b)))continue;let d=y(b);if(d)try{a=(0,h.eP)(d)?.id}catch{a=void 0}let f=(0,e.readFileSync)(c,"utf8").split("\n"),g=JSON.parse(f[0]);if("session"!==g.type)continue;if(g.parentSession=d,f[0]=JSON.stringify(g),d&&a)for(let b=1;b<f.length;b+=1){let c;try{c=JSON.parse(f[b])}catch{continue}if(!("custom"!==c.type||c.customType!==k.tP||"object"!=typeof c.data||null===c.data||Array.isArray(c.data))){c.data={...c.data,parentSessionId:a,parentSessionPath:d},f[b]=JSON.stringify(c);break}}(0,e.writeFileSync)(c,f.join("\n"))}catch{}}}catch{}for(let a of u){try{await (0,g.wW)(a)}catch{}await (0,g.A4)(a)?.shutdown()}for(let[a,b]of w){try{(0,e.unlinkSync)(b)}catch(a){if("ENOENT"!==a.code)throw a}(0,h.BR)(a),(0,h.j6)(b)}try{await (0,j.bA)(u)}catch(a){console.warn(`[pi-web] could not clear the sidebar state of deleted sessions: ${a instanceof Error?a.message:String(a)}`)}return(0,h.mD)(),{deleted:[...u],missing:d,running:v}}d()}catch(a){d(a)}})}};
1
+ "use strict";exports.id=1906,exports.ids=[1906],exports.modules={10879:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{$q:()=>x,Vy:()=>v,bA:()=>y,ej:()=>u,yh:()=>C});var e=c(73024),f=c(76760),g=c(75430),h=c(80974),i=c.n(h),j=c(8102),k=c(63108),l=c(37431),m=c(12069),n=a([g]);g=(n.then?(await n)():n)[0];let z=new Set(["version","revision","sessions","projects","removedProjects","projectOrder","projectNames","__proto__"]),A=Symbol.for("pi-web:session-ui-state-write-queue"),B={realpath:!1,stale:1e4,retries:{retries:10,factor:2,minTimeout:25,maxTimeout:500},onCompromised:a=>{console.warn(`[pi-web] the session UI state lock was compromised: ${a.message}`)}};class C extends Error{constructor(a="Another process holds the session UI state lock"){super(a),this.name="SessionUiStateLockedError"}}function o(){return globalThis.__piWebSessionUiStateCache??={reads:new Map,revisions:new Map}}function p(a,b){let c=o().revisions;b>(c.get(a)??-1)&&c.set(a,b)}function q(a){return structuredClone(a)}function r(a=(0,g.getAgentDir)()){return(0,f.join)(a,"pi-web-session-state.json")}function s(a){let b;try{b=JSON.parse(a)}catch{return{ok:!1}}let c=(0,m.Jx)(b);return c?{ok:!0,state:c,raw:b}:{ok:!1}}function t(a){let b,c;try{b=(0,e.statSync)(a)}catch(c){let b=c?.code;if("ENOENT"===b||"ENOTDIR"===b)return o().reads.delete(a),(0,m.ly)();throw c}let d=o().reads.get(a);if(d&&d.mtimeMs===b.mtimeMs&&d.size===b.size&&d.ino===b.ino)return d.state;let f=(0,l.y)(a,4194304);if(void 0===f)return o().reads.delete(a),(0,m.ly)();let g=s(f);return g.ok?(c=g.state,p(a,c.revision)):(console.warn(`[pi-web] ${a} is not valid session UI state; reading it as empty until the next change sets it aside`),c=(0,m.ly)()),o().reads.set(a,{mtimeMs:b.mtimeMs,size:b.size,ino:b.ino,state:c}),c}function u(a){try{return q(t(a??r()))}catch(a){return console.warn(`[pi-web] could not read the session UI state: ${a instanceof Error?a.message:String(a)}`),(0,m.ly)()}}function v(a){try{return t(a??r()).revision}catch{return null}}function w(a,b){return(0,k.T)(A,a,async()=>{let c;(0,e.mkdirSync)((0,f.dirname)(a),{recursive:!0});try{c=await i().lock(a,B)}catch(a){if("ELOCKED"===a?.code)throw new C;throw a}try{let c,d=o().revisions.get(a)??0,f=(0,l.y)(a,4194304),g={},h=!1;if(void 0===f)c={...(0,m.ly)(),revision:d};else{let b=s(f);if(b.ok)for(let[a,d]of(c=b.state,Object.entries(b.raw)))z.has(a)||(g[a]=d);else{let b=`${a}.corrupt-${Date.now()}`;try{(0,e.renameSync)(a,b),console.warn(`[pi-web] ${a} could not be parsed; moved it to ${b} and started from an empty session UI state`)}catch(b){console.warn(`[pi-web] ${a} could not be parsed and could not be moved aside (${b instanceof Error?b.message:String(b)}); starting from an empty session UI state`)}c={...(0,m.ly)(),revision:d+1},h=!0}}let i=b(c);if(!i.changed&&!h)return q(c);let k={...i.state,version:m.fS,revision:c.revision+ +!!i.changed},n={version:k.version,revision:k.revision,sessions:k.sessions,projects:k.projects,...k.removedProjects&&Object.keys(k.removedProjects).length>0?{removedProjects:k.removedProjects}:{},...k.projectOrder?.length?{projectOrder:k.projectOrder}:{},...k.projectNames&&Object.keys(k.projectNames).length>0?{projectNames:k.projectNames}:{},...g};(0,j.$)(a,JSON.stringify(n,null,2)+"\n"),p(a,k.revision);try{let b=(0,e.statSync)(a);o().reads.set(a,{mtimeMs:b.mtimeMs,size:b.size,ino:b.ino,state:q(k)})}catch{o().reads.delete(a)}return q(k)}finally{try{await c()}catch{}}})}function x(a,b){let c;try{c=b??r()}catch(a){return Promise.reject(a)}return w(c,b=>(0,m.D7)(b,a,Date.now()))}async function y(a,b){let c=b??r(),d=[...new Set(a)];if(0===d.length)return;let e=a=>d.some(b=>Object.prototype.hasOwnProperty.call(a.sessions,b));e(t(c))&&await w(c,a=>{if(!e(a))return{state:a,changed:!1};let b={...a.sessions};for(let a of d)delete b[a];return{state:{...a,sessions:b},changed:!0}})}d()}catch(a){d(a)}})},21906:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{L:()=>o,j:()=>n});var e=c(29021),f=c(33873),g=c(56429),h=c(40402),i=c(45902),j=c(10879),k=c(7048),l=a([g,h,j,k]);[g,h,j,k]=l.then?(await l)():l;let o=500;function m(a,b,c){let d=a.get(b)??[];d.push(c),a.set(b,d)}async function n(a,b={}){let c=new Map,d=[];for(let b of new Set(a)){let a=await (0,h.os)(b);a?c.set(b,a):d.push(b)}if(0===c.size)return{deleted:[],missing:d,running:[]};let l=new Map;for(let a of c.values()){let b;try{b=(0,h.eP)(a)?.parentSession}catch(a){if("ENOENT"!==a.code)throw a}l.set((0,i.$)(a),b)}let o=new Set([...c.values()].map(a=>(0,i.$)(a))),p=new Set([...c.values()].map(a=>(0,f.dirname)(a))),q=(0,h.O5)(await (0,h.dQ)({force:!0}),(0,g.Bp)({includeTransient:!0})),r=new Map;for(let a of q)a.relation?.kind==="subagent"&&m(r,a.relation.parentSessionId,a.id);let s=new Map(q.map(a=>[a.id,a.path]));for(let a of p)try{for(let b of(0,e.readdirSync)(a).filter(a=>a.endsWith(".jsonl"))){let c=(0,f.join)(a,b);if(!o.has((0,i.$)(c)))try{let a=(0,e.readFileSync)(c,"utf8").split("\n"),b=JSON.parse(a[0]);if("session"!==b.type||"string"!=typeof b.id)continue;let d=a.slice(1).flatMap(a=>{try{return[JSON.parse(a)]}catch{return[]}}),f=(0,k.$u)(d,b.id,c);if(!f)continue;m(r,f.parentSessionId,b.id),s.set(b.id,c)}catch{}}}catch{}let t=b.keepRunning?new Set((0,g.HG)()):new Set,u=new Set,v=[];for(let a of c.keys()){if(u.has(a))continue;let b=[],c=new Set,d=a=>{if(!(c.has(a)||u.has(a))){for(let b of(c.add(a),r.get(a)??[]))d(b);b.push(a)}};if(d(a),b.some(a=>t.has(a))){v.push(a);continue}for(let a of b)u.add(a)}let w=new Map;for(let a of u){let b=c.get(a)??s.get(a)??(0,g.hH)(a)?.sessionFile??await (0,h.os)(a);b&&w.set(a,b)}let x=new Map([...w.values()].map(a=>[(0,i.$)(a),a])),y=a=>{let b=new Set,c=a;for(;c;){let a=(0,i.$)(c),d=x.get(a);if(void 0===d)return c;if(b.has(a))break;if(b.add(a),!l.has(a)){let b;try{b=(0,h.eP)(d)?.parentSession}catch{b=void 0}l.set(a,b)}c=l.get(a)}};if(w.size>0)for(let a of new Set([...w.values()].map(a=>(0,f.dirname)(a))))try{for(let b of(0,e.readdirSync)(a).filter(b=>b.endsWith(".jsonl")&&!x.has((0,i.$)((0,f.join)(a,b))))){let c=(0,f.join)(a,b);try{let a,b=(0,h.eP)(c)?.parentSession;if(!b||!x.has((0,i.$)(b)))continue;let d=y(b);if(d)try{a=(0,h.eP)(d)?.id}catch{a=void 0}let f=(0,e.readFileSync)(c,"utf8").split("\n"),g=JSON.parse(f[0]);if("session"!==g.type)continue;if(g.parentSession=d,f[0]=JSON.stringify(g),d&&a)for(let b=1;b<f.length;b+=1){let c;try{c=JSON.parse(f[b])}catch{continue}if(!("custom"!==c.type||c.customType!==k.tP||"object"!=typeof c.data||null===c.data||Array.isArray(c.data))){c.data={...c.data,parentSessionId:a,parentSessionPath:d},f[b]=JSON.stringify(c);break}}(0,e.writeFileSync)(c,f.join("\n"))}catch{}}}catch{}for(let a of u){try{await (0,g.wW)(a)}catch{}await (0,g.hH)(a)?.shutdown()}for(let[a,b]of w){try{(0,e.unlinkSync)(b)}catch(a){if("ENOENT"!==a.code)throw a}(0,h.BR)(a),(0,h.j6)(b)}try{await (0,j.bA)(u)}catch(a){console.warn(`[pi-web] could not clear the sidebar state of deleted sessions: ${a instanceof Error?a.message:String(a)}`)}return(0,h.mD)(),{deleted:[...u],missing:d,running:v}}d()}catch(a){d(a)}})}};