@tasselx/pi-web 1.3.1 → 1.4.0

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 (285) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +16 -17
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/required-server-files.js +1 -1
  6. package/.next/required-server-files.json +1 -1
  7. package/.next/routes-manifest.json +0 -6
  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 +2 -2
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  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 +2 -2
  24. package/.next/server/app/api/agent/[id]/lease/route.js +1 -1
  25. package/.next/server/app/api/agent/[id]/route.js +1 -1
  26. package/.next/server/app/api/agent/debug/route.js +2 -2
  27. package/.next/server/app/api/agent/new/route.js +1 -1
  28. package/.next/server/app/api/agent/running/route.js +1 -1
  29. package/.next/server/app/api/app-update/route.js +1 -1
  30. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  31. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  32. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  33. package/.next/server/app/api/auth/providers/route.js +1 -1
  34. package/.next/server/app/api/cache-miss-notices/route.js +1 -1
  35. package/.next/server/app/api/cwd/browse/route.js +1 -1
  36. package/.next/server/app/api/cwd/pick/route.js +1 -1
  37. package/.next/server/app/api/cwd/validate/route.js +1 -1
  38. package/.next/server/app/api/default-cwd/route.js +1 -1
  39. package/.next/server/app/api/file-index/route.js +1 -1
  40. package/.next/server/app/api/files/[...path]/route.js +1 -1
  41. package/.next/server/app/api/git/diff/route.js +1 -1
  42. package/.next/server/app/api/git/status/route.js +2 -2
  43. package/.next/server/app/api/home/route.js +1 -1
  44. package/.next/server/app/api/mcp/route.js +2 -2
  45. package/.next/server/app/api/mcp/sign-in/[flowId]/route.js +1 -1
  46. package/.next/server/app/api/mcp/sign-in/route.js +1 -1
  47. package/.next/server/app/api/mcp/test/route.js +1 -1
  48. package/.next/server/app/api/models/enabled/route.js +1 -1
  49. package/.next/server/app/api/models/enabled/route.js.nft.json +1 -1
  50. package/.next/server/app/api/models/refresh/route.js +1 -1
  51. package/.next/server/app/api/models/route.js +1 -1
  52. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  53. package/.next/server/app/api/models-config/discover/route.js +1 -1
  54. package/.next/server/app/api/models-config/route.js +1 -1
  55. package/.next/server/app/api/models-config/test/route.js +1 -1
  56. package/.next/server/app/api/open-in-explorer/route.js +1 -1
  57. package/.next/server/app/api/plugins/check/route.js +1 -1
  58. package/.next/server/app/api/plugins/route.js +1 -1
  59. package/.next/server/app/api/project-trust/route.js +1 -1
  60. package/.next/server/app/api/provider-usage/query/route.js +1 -1
  61. package/.next/server/app/api/push/config/route.js +1 -1
  62. package/.next/server/app/api/push/subscribe/route.js +1 -1
  63. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  64. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  65. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  66. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  67. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  68. package/.next/server/app/api/sessions/[id]/fork/route.js +1 -1
  69. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  70. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  71. package/.next/server/app/api/sessions/delete/route.js +1 -1
  72. package/.next/server/app/api/sessions/route.js +1 -1
  73. package/.next/server/app/api/sessions/search/route.js +1 -1
  74. package/.next/server/app/api/sessions/stats/route.js +1 -1
  75. package/.next/server/app/api/sessions/ui-state/route.js +1 -1
  76. package/.next/server/app/api/skills/check/route.js +1 -1
  77. package/.next/server/app/api/skills/content/route.js +1 -1
  78. package/.next/server/app/api/skills/install/route.js +1 -1
  79. package/.next/server/app/api/skills/route.js +1 -1
  80. package/.next/server/app/api/skills/search/route.js +1 -1
  81. package/.next/server/app/api/skills/update/route.js +1 -1
  82. package/.next/server/app/api/sleep-inhibit/route.js +1 -1
  83. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  84. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  85. package/.next/server/app/api/subagents/settings/route.js +1 -1
  86. package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
  87. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  88. package/.next/server/app/api/terminal/route.js +1 -1
  89. package/.next/server/app/api/tools/settings/route.js +1 -1
  90. package/.next/server/app/api/web-auth/route.js +1 -1
  91. package/.next/server/app/api/worktrees/route.js +1 -1
  92. package/.next/server/app/favicon.ico/route.js +1 -1
  93. package/.next/server/app/index.html +1 -1
  94. package/.next/server/app/index.rsc +5 -5
  95. package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  96. package/.next/server/app/index.segments/_full.segment.rsc +5 -5
  97. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  98. package/.next/server/app/login/page.js +1 -1
  99. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  100. package/.next/server/app/login.html +1 -1
  101. package/.next/server/app/login.rsc +3 -3
  102. package/.next/server/app/login.segments/_full.segment.rsc +3 -3
  103. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  104. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  105. package/.next/server/app/manifest.webmanifest/route.js +2 -2
  106. package/.next/server/app/page.js +9 -11
  107. package/.next/server/app/page_client-reference-manifest.js +1 -1
  108. package/.next/server/app-paths-manifest.json +16 -17
  109. package/.next/server/chunks/2243.js +1 -1
  110. package/.next/server/chunks/7979.js +1 -1
  111. package/.next/server/instrumentation.js.nft.json +1 -1
  112. package/.next/server/middleware-build-manifest.js +1 -1
  113. package/.next/server/pages/404.html +1 -1
  114. package/.next/server/pages/500.html +1 -1
  115. package/.next/server/preview-props.json +3 -3
  116. package/.next/server/server-reference-manifest.json +1 -1
  117. package/.next/static/2rpFMJiXXP8Ssip42zwjf/_buildManifest.js +1 -0
  118. package/.next/static/chunks/1278-2513dd213d905b76.js +1 -0
  119. package/.next/static/chunks/app/_global-error/page-285cf907c3ba74a9.js +1 -0
  120. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-285cf907c3ba74a9.js +1 -0
  121. package/.next/static/chunks/app/api/agent/[id]/events/route-285cf907c3ba74a9.js +1 -0
  122. package/.next/static/chunks/app/api/agent/[id]/lease/route-285cf907c3ba74a9.js +1 -0
  123. package/.next/static/chunks/app/api/agent/[id]/route-285cf907c3ba74a9.js +1 -0
  124. package/.next/static/chunks/app/api/agent/debug/route-285cf907c3ba74a9.js +1 -0
  125. package/.next/static/chunks/app/api/agent/new/route-285cf907c3ba74a9.js +1 -0
  126. package/.next/static/chunks/app/api/agent/running/route-285cf907c3ba74a9.js +1 -0
  127. package/.next/static/chunks/app/api/app-update/route-285cf907c3ba74a9.js +1 -0
  128. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-285cf907c3ba74a9.js +1 -0
  129. package/.next/static/chunks/app/api/auth/login/[provider]/route-285cf907c3ba74a9.js +1 -0
  130. package/.next/static/chunks/app/api/auth/logout/[provider]/route-285cf907c3ba74a9.js +1 -0
  131. package/.next/static/chunks/app/api/auth/providers/route-285cf907c3ba74a9.js +1 -0
  132. package/.next/static/chunks/app/api/cache-miss-notices/route-285cf907c3ba74a9.js +1 -0
  133. package/.next/static/chunks/app/api/cwd/browse/route-285cf907c3ba74a9.js +1 -0
  134. package/.next/static/chunks/app/api/cwd/pick/route-285cf907c3ba74a9.js +1 -0
  135. package/.next/static/chunks/app/api/cwd/validate/route-285cf907c3ba74a9.js +1 -0
  136. package/.next/static/chunks/app/api/default-cwd/route-285cf907c3ba74a9.js +1 -0
  137. package/.next/static/chunks/app/api/file-index/route-285cf907c3ba74a9.js +1 -0
  138. package/.next/static/chunks/app/api/files/[...path]/route-285cf907c3ba74a9.js +1 -0
  139. package/.next/static/chunks/app/api/git/diff/route-285cf907c3ba74a9.js +1 -0
  140. package/.next/static/chunks/app/api/git/status/route-285cf907c3ba74a9.js +1 -0
  141. package/.next/static/chunks/app/api/home/route-285cf907c3ba74a9.js +1 -0
  142. package/.next/static/chunks/app/api/mcp/route-285cf907c3ba74a9.js +1 -0
  143. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-285cf907c3ba74a9.js +1 -0
  144. package/.next/static/chunks/app/api/mcp/sign-in/route-285cf907c3ba74a9.js +1 -0
  145. package/.next/static/chunks/app/api/mcp/test/route-285cf907c3ba74a9.js +1 -0
  146. package/.next/static/chunks/app/api/models/enabled/route-285cf907c3ba74a9.js +1 -0
  147. package/.next/static/chunks/app/api/models/refresh/route-285cf907c3ba74a9.js +1 -0
  148. package/.next/static/chunks/app/api/models/route-285cf907c3ba74a9.js +1 -0
  149. package/.next/static/chunks/app/api/models-config/catalog/route-285cf907c3ba74a9.js +1 -0
  150. package/.next/static/chunks/app/api/models-config/discover/route-285cf907c3ba74a9.js +1 -0
  151. package/.next/static/chunks/app/api/models-config/route-285cf907c3ba74a9.js +1 -0
  152. package/.next/static/chunks/app/api/models-config/test/route-285cf907c3ba74a9.js +1 -0
  153. package/.next/static/chunks/app/api/open-in-explorer/route-285cf907c3ba74a9.js +1 -0
  154. package/.next/static/chunks/app/api/plugins/check/route-285cf907c3ba74a9.js +1 -0
  155. package/.next/static/chunks/app/api/plugins/route-285cf907c3ba74a9.js +1 -0
  156. package/.next/static/chunks/app/api/project-trust/route-285cf907c3ba74a9.js +1 -0
  157. package/.next/static/chunks/app/api/provider-usage/query/route-285cf907c3ba74a9.js +1 -0
  158. package/.next/static/chunks/app/api/push/config/route-285cf907c3ba74a9.js +1 -0
  159. package/.next/static/chunks/app/api/push/subscribe/route-285cf907c3ba74a9.js +1 -0
  160. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-285cf907c3ba74a9.js +1 -0
  161. package/.next/static/chunks/app/api/sessions/[id]/context/route-285cf907c3ba74a9.js +1 -0
  162. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-285cf907c3ba74a9.js +1 -0
  163. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-285cf907c3ba74a9.js +1 -0
  164. package/.next/static/chunks/app/api/sessions/[id]/export/route-285cf907c3ba74a9.js +1 -0
  165. package/.next/static/chunks/app/api/sessions/[id]/fork/route-285cf907c3ba74a9.js +1 -0
  166. package/.next/static/chunks/app/api/sessions/[id]/route-285cf907c3ba74a9.js +1 -0
  167. package/.next/static/chunks/app/api/sessions/[id]/state/route-285cf907c3ba74a9.js +1 -0
  168. package/.next/static/chunks/app/api/sessions/delete/route-285cf907c3ba74a9.js +1 -0
  169. package/.next/static/chunks/app/api/sessions/route-285cf907c3ba74a9.js +1 -0
  170. package/.next/static/chunks/app/api/sessions/search/route-285cf907c3ba74a9.js +1 -0
  171. package/.next/static/chunks/app/api/sessions/stats/route-285cf907c3ba74a9.js +1 -0
  172. package/.next/static/chunks/app/api/sessions/ui-state/route-285cf907c3ba74a9.js +1 -0
  173. package/.next/static/chunks/app/api/skills/check/route-285cf907c3ba74a9.js +1 -0
  174. package/.next/static/chunks/app/api/skills/content/route-285cf907c3ba74a9.js +1 -0
  175. package/.next/static/chunks/app/api/skills/install/route-285cf907c3ba74a9.js +1 -0
  176. package/.next/static/chunks/app/api/skills/route-285cf907c3ba74a9.js +1 -0
  177. package/.next/static/chunks/app/api/skills/search/route-285cf907c3ba74a9.js +1 -0
  178. package/.next/static/chunks/app/api/skills/update/route-285cf907c3ba74a9.js +1 -0
  179. package/.next/static/chunks/app/api/sleep-inhibit/route-285cf907c3ba74a9.js +1 -0
  180. package/.next/static/chunks/app/api/subagents/[id]/route-285cf907c3ba74a9.js +1 -0
  181. package/.next/static/chunks/app/api/subagents/profiles/route-285cf907c3ba74a9.js +1 -0
  182. package/.next/static/chunks/app/api/subagents/settings/route-285cf907c3ba74a9.js +1 -0
  183. package/.next/static/chunks/app/api/terminal/[id]/events/route-285cf907c3ba74a9.js +1 -0
  184. package/.next/static/chunks/app/api/terminal/[id]/route-285cf907c3ba74a9.js +1 -0
  185. package/.next/static/chunks/app/api/terminal/route-285cf907c3ba74a9.js +1 -0
  186. package/.next/static/chunks/app/api/tools/settings/route-285cf907c3ba74a9.js +1 -0
  187. package/.next/static/chunks/app/api/web-auth/route-285cf907c3ba74a9.js +1 -0
  188. package/.next/static/chunks/app/api/worktrees/route-285cf907c3ba74a9.js +1 -0
  189. package/.next/static/chunks/app/{layout-e6046f8c0bc1768d.js → layout-8fe0f5be5c8c818b.js} +1 -1
  190. package/.next/static/chunks/app/manifest.webmanifest/route-285cf907c3ba74a9.js +1 -0
  191. package/.next/static/chunks/app/page-fbf3ea7b22a83370.js +1129 -0
  192. package/.next/static/chunks/next/dist/client/components/builtin/app-error-285cf907c3ba74a9.js +1 -0
  193. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-285cf907c3ba74a9.js +1 -0
  194. package/.next/static/chunks/next/dist/client/components/builtin/not-found-285cf907c3ba74a9.js +1 -0
  195. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-285cf907c3ba74a9.js +1 -0
  196. package/.next/trace +180 -61
  197. package/.next/trace-build +1 -1
  198. package/.next/types/routes.d.ts +1 -2
  199. package/.next/types/validator.ts +0 -10
  200. package/package.json +2 -2
  201. package/.next/server/app/api/models/default/route.js +0 -1
  202. package/.next/server/app/api/models/default/route.js.nft.json +0 -1
  203. package/.next/server/app/api/models/default/route_client-reference-manifest.js +0 -1
  204. package/.next/server/chunks/27.js +0 -1
  205. package/.next/static/3au4SIYjchaubI1HowdKE/_buildManifest.js +0 -1
  206. package/.next/static/chunks/1278-7900e52add02a581.js +0 -1
  207. package/.next/static/chunks/app/_global-error/page-ff5f37ea6085322e.js +0 -1
  208. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-ff5f37ea6085322e.js +0 -1
  209. package/.next/static/chunks/app/api/agent/[id]/events/route-ff5f37ea6085322e.js +0 -1
  210. package/.next/static/chunks/app/api/agent/[id]/lease/route-ff5f37ea6085322e.js +0 -1
  211. package/.next/static/chunks/app/api/agent/[id]/route-ff5f37ea6085322e.js +0 -1
  212. package/.next/static/chunks/app/api/agent/debug/route-ff5f37ea6085322e.js +0 -1
  213. package/.next/static/chunks/app/api/agent/new/route-ff5f37ea6085322e.js +0 -1
  214. package/.next/static/chunks/app/api/agent/running/route-ff5f37ea6085322e.js +0 -1
  215. package/.next/static/chunks/app/api/app-update/route-ff5f37ea6085322e.js +0 -1
  216. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-ff5f37ea6085322e.js +0 -1
  217. package/.next/static/chunks/app/api/auth/login/[provider]/route-ff5f37ea6085322e.js +0 -1
  218. package/.next/static/chunks/app/api/auth/logout/[provider]/route-ff5f37ea6085322e.js +0 -1
  219. package/.next/static/chunks/app/api/auth/providers/route-ff5f37ea6085322e.js +0 -1
  220. package/.next/static/chunks/app/api/cache-miss-notices/route-ff5f37ea6085322e.js +0 -1
  221. package/.next/static/chunks/app/api/cwd/browse/route-ff5f37ea6085322e.js +0 -1
  222. package/.next/static/chunks/app/api/cwd/pick/route-ff5f37ea6085322e.js +0 -1
  223. package/.next/static/chunks/app/api/cwd/validate/route-ff5f37ea6085322e.js +0 -1
  224. package/.next/static/chunks/app/api/default-cwd/route-ff5f37ea6085322e.js +0 -1
  225. package/.next/static/chunks/app/api/file-index/route-ff5f37ea6085322e.js +0 -1
  226. package/.next/static/chunks/app/api/files/[...path]/route-ff5f37ea6085322e.js +0 -1
  227. package/.next/static/chunks/app/api/git/diff/route-ff5f37ea6085322e.js +0 -1
  228. package/.next/static/chunks/app/api/git/status/route-ff5f37ea6085322e.js +0 -1
  229. package/.next/static/chunks/app/api/home/route-ff5f37ea6085322e.js +0 -1
  230. package/.next/static/chunks/app/api/mcp/route-ff5f37ea6085322e.js +0 -1
  231. package/.next/static/chunks/app/api/mcp/sign-in/[flowId]/route-ff5f37ea6085322e.js +0 -1
  232. package/.next/static/chunks/app/api/mcp/sign-in/route-ff5f37ea6085322e.js +0 -1
  233. package/.next/static/chunks/app/api/mcp/test/route-ff5f37ea6085322e.js +0 -1
  234. package/.next/static/chunks/app/api/models/default/route-ff5f37ea6085322e.js +0 -1
  235. package/.next/static/chunks/app/api/models/enabled/route-ff5f37ea6085322e.js +0 -1
  236. package/.next/static/chunks/app/api/models/refresh/route-ff5f37ea6085322e.js +0 -1
  237. package/.next/static/chunks/app/api/models/route-ff5f37ea6085322e.js +0 -1
  238. package/.next/static/chunks/app/api/models-config/catalog/route-ff5f37ea6085322e.js +0 -1
  239. package/.next/static/chunks/app/api/models-config/discover/route-ff5f37ea6085322e.js +0 -1
  240. package/.next/static/chunks/app/api/models-config/route-ff5f37ea6085322e.js +0 -1
  241. package/.next/static/chunks/app/api/models-config/test/route-ff5f37ea6085322e.js +0 -1
  242. package/.next/static/chunks/app/api/open-in-explorer/route-ff5f37ea6085322e.js +0 -1
  243. package/.next/static/chunks/app/api/plugins/check/route-ff5f37ea6085322e.js +0 -1
  244. package/.next/static/chunks/app/api/plugins/route-ff5f37ea6085322e.js +0 -1
  245. package/.next/static/chunks/app/api/project-trust/route-ff5f37ea6085322e.js +0 -1
  246. package/.next/static/chunks/app/api/provider-usage/query/route-ff5f37ea6085322e.js +0 -1
  247. package/.next/static/chunks/app/api/push/config/route-ff5f37ea6085322e.js +0 -1
  248. package/.next/static/chunks/app/api/push/subscribe/route-ff5f37ea6085322e.js +0 -1
  249. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-ff5f37ea6085322e.js +0 -1
  250. package/.next/static/chunks/app/api/sessions/[id]/context/route-ff5f37ea6085322e.js +0 -1
  251. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-ff5f37ea6085322e.js +0 -1
  252. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-ff5f37ea6085322e.js +0 -1
  253. package/.next/static/chunks/app/api/sessions/[id]/export/route-ff5f37ea6085322e.js +0 -1
  254. package/.next/static/chunks/app/api/sessions/[id]/fork/route-ff5f37ea6085322e.js +0 -1
  255. package/.next/static/chunks/app/api/sessions/[id]/route-ff5f37ea6085322e.js +0 -1
  256. package/.next/static/chunks/app/api/sessions/[id]/state/route-ff5f37ea6085322e.js +0 -1
  257. package/.next/static/chunks/app/api/sessions/delete/route-ff5f37ea6085322e.js +0 -1
  258. package/.next/static/chunks/app/api/sessions/route-ff5f37ea6085322e.js +0 -1
  259. package/.next/static/chunks/app/api/sessions/search/route-ff5f37ea6085322e.js +0 -1
  260. package/.next/static/chunks/app/api/sessions/stats/route-ff5f37ea6085322e.js +0 -1
  261. package/.next/static/chunks/app/api/sessions/ui-state/route-ff5f37ea6085322e.js +0 -1
  262. package/.next/static/chunks/app/api/skills/check/route-ff5f37ea6085322e.js +0 -1
  263. package/.next/static/chunks/app/api/skills/content/route-ff5f37ea6085322e.js +0 -1
  264. package/.next/static/chunks/app/api/skills/install/route-ff5f37ea6085322e.js +0 -1
  265. package/.next/static/chunks/app/api/skills/route-ff5f37ea6085322e.js +0 -1
  266. package/.next/static/chunks/app/api/skills/search/route-ff5f37ea6085322e.js +0 -1
  267. package/.next/static/chunks/app/api/skills/update/route-ff5f37ea6085322e.js +0 -1
  268. package/.next/static/chunks/app/api/sleep-inhibit/route-ff5f37ea6085322e.js +0 -1
  269. package/.next/static/chunks/app/api/subagents/[id]/route-ff5f37ea6085322e.js +0 -1
  270. package/.next/static/chunks/app/api/subagents/profiles/route-ff5f37ea6085322e.js +0 -1
  271. package/.next/static/chunks/app/api/subagents/settings/route-ff5f37ea6085322e.js +0 -1
  272. package/.next/static/chunks/app/api/terminal/[id]/events/route-ff5f37ea6085322e.js +0 -1
  273. package/.next/static/chunks/app/api/terminal/[id]/route-ff5f37ea6085322e.js +0 -1
  274. package/.next/static/chunks/app/api/terminal/route-ff5f37ea6085322e.js +0 -1
  275. package/.next/static/chunks/app/api/tools/settings/route-ff5f37ea6085322e.js +0 -1
  276. package/.next/static/chunks/app/api/web-auth/route-ff5f37ea6085322e.js +0 -1
  277. package/.next/static/chunks/app/api/worktrees/route-ff5f37ea6085322e.js +0 -1
  278. package/.next/static/chunks/app/manifest.webmanifest/route-ff5f37ea6085322e.js +0 -1
  279. package/.next/static/chunks/app/page-203e16d5e1138523.js +0 -1131
  280. package/.next/static/chunks/next/dist/client/components/builtin/app-error-ff5f37ea6085322e.js +0 -1
  281. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-ff5f37ea6085322e.js +0 -1
  282. package/.next/static/chunks/next/dist/client/components/builtin/not-found-ff5f37ea6085322e.js +0 -1
  283. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-ff5f37ea6085322e.js +0 -1
  284. package/.next/types/app/api/models/default/route.ts +0 -355
  285. /package/.next/static/{3au4SIYjchaubI1HowdKE → 2rpFMJiXXP8Ssip42zwjf}/_ssgManifest.js +0 -0
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-webpack","duration":11286692,"timestamp":21424872771,"id":14,"parentId":1,"tags":{},"startTime":1793289750120,"traceId":"253f2574c2b729a5"},{"name":"run-typescript","duration":9343032,"timestamp":21436162162,"id":1025,"parentId":1,"tags":{},"startTime":1793289761411,"traceId":"253f2574c2b729a5"},{"name":"static-check","duration":1579628,"timestamp":21445519891,"id":1028,"parentId":1,"tags":{},"startTime":1793289770769,"traceId":"253f2574c2b729a5"},{"name":"static-generation","duration":2328832,"timestamp":21447123236,"id":1186,"parentId":1,"tags":{},"startTime":1793289772373,"traceId":"253f2574c2b729a5"},{"name":"collect-build-traces","duration":10776596,"timestamp":21447100880,"id":1183,"parentId":1,"tags":{},"startTime":1793289772350,"traceId":"253f2574c2b729a5"},{"name":"telemetry-flush","duration":19,"timestamp":21457879239,"id":1195,"parentId":1,"tags":{},"startTime":1793289783129,"traceId":"253f2574c2b729a5"},{"name":"next-build","duration":33222610,"timestamp":21424656654,"id":1,"tags":{"buildMode":"default","version":"16.4.3","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1793289749904,"traceId":"253f2574c2b729a5"}]
1
+ [{"name":"run-webpack","duration":18495010,"timestamp":20604602609,"id":14,"parentId":1,"tags":{},"startTime":1793348649395,"traceId":"0b7b8636b4e89ef7"},{"name":"run-typescript","duration":7308944,"timestamp":20623101079,"id":8617,"parentId":1,"tags":{},"startTime":1793348667893,"traceId":"0b7b8636b4e89ef7"},{"name":"static-check","duration":1418482,"timestamp":20630425489,"id":8620,"parentId":1,"tags":{},"startTime":1793348675218,"traceId":"0b7b8636b4e89ef7"},{"name":"static-generation","duration":2628587,"timestamp":20631871341,"id":8776,"parentId":1,"tags":{},"startTime":1793348676664,"traceId":"0b7b8636b4e89ef7"},{"name":"collect-build-traces","duration":10842094,"timestamp":20631846255,"id":8773,"parentId":1,"tags":{},"startTime":1793348676639,"traceId":"0b7b8636b4e89ef7"},{"name":"telemetry-flush","duration":17,"timestamp":20642690005,"id":8785,"parentId":1,"tags":{},"startTime":1793348687482,"traceId":"0b7b8636b4e89ef7"},{"name":"next-build","duration":38210361,"timestamp":20604479667,"id":1,"tags":{"buildMode":"default","version":"16.4.3","bundler":"webpack","has-custom-webpack-config":"true","use-build-worker":"false"},"startTime":1793348649272,"traceId":"0b7b8636b4e89ef7"}]
@@ -2,7 +2,7 @@
2
2
  // Do not edit this file manually
3
3
 
4
4
  type AppRoutes = "/" | "/login"
5
- type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/debug" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cache-miss-notices" | "/api/cwd/browse" | "/api/cwd/pick" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/mcp" | "/api/mcp/sign-in" | "/api/mcp/sign-in/[flowId]" | "/api/mcp/test" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/models/default" | "/api/models/enabled" | "/api/models/refresh" | "/api/open-in-explorer" | "/api/plugins" | "/api/plugins/check" | "/api/project-trust" | "/api/provider-usage/query" | "/api/push/config" | "/api/push/subscribe" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/fork" | "/api/sessions/[id]/state" | "/api/sessions/delete" | "/api/sessions/search" | "/api/sessions/stats" | "/api/sessions/ui-state" | "/api/skills" | "/api/skills/check" | "/api/skills/content" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/sleep-inhibit" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/tools/settings" | "/api/web-auth" | "/api/worktrees"
5
+ type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/[id]/lease" | "/api/agent/debug" | "/api/agent/new" | "/api/agent/running" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/cache-miss-notices" | "/api/cwd/browse" | "/api/cwd/pick" | "/api/cwd/validate" | "/api/default-cwd" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/status" | "/api/home" | "/api/mcp" | "/api/mcp/sign-in" | "/api/mcp/sign-in/[flowId]" | "/api/mcp/test" | "/api/models" | "/api/models-config" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/models/enabled" | "/api/models/refresh" | "/api/open-in-explorer" | "/api/plugins" | "/api/plugins/check" | "/api/project-trust" | "/api/provider-usage/query" | "/api/push/config" | "/api/push/subscribe" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/fork" | "/api/sessions/[id]/state" | "/api/sessions/delete" | "/api/sessions/search" | "/api/sessions/stats" | "/api/sessions/ui-state" | "/api/skills" | "/api/skills/check" | "/api/skills/content" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/sleep-inhibit" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/tools/settings" | "/api/web-auth" | "/api/worktrees"
6
6
  type PageRoutes = never
7
7
  type LayoutRoutes = "/"
8
8
  type RedirectRoutes = never
@@ -43,7 +43,6 @@ interface ParamMap {
43
43
  "/api/models-config/catalog": {}
44
44
  "/api/models-config/discover": {}
45
45
  "/api/models-config/test": {}
46
- "/api/models/default": {}
47
46
  "/api/models/enabled": {}
48
47
  "/api/models/refresh": {}
49
48
  "/api/open-in-explorer": {}
@@ -386,16 +386,6 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
386
386
  type __Unused = __Check
387
387
  }
388
388
 
389
- // Validate ../../app/api/models/default/route.ts
390
- {
391
- type __IsExpected<Specific extends RouteHandlerConfig<"/api/models/default">> = Specific
392
- const handler = {} as typeof import("../../app/api/models/default/route.js")
393
- type __Check = __IsExpected<typeof handler>
394
-
395
- // @ts-ignore
396
- type __Unused = __Check
397
- }
398
-
399
389
  // Validate ../../app/api/models/enabled/route.ts
400
390
  {
401
391
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/models/enabled">> = Specific
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tasselx/pi-web",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Web UI for the pi coding agent",
5
5
  "homepage": "https://github.com/tasselx/pi-web#readme",
6
6
  "repository": {
@@ -64,7 +64,7 @@
64
64
  "react": "^19.2.4",
65
65
  "react-dom": "^19.2.4",
66
66
  "semver": "7.8.5",
67
- "undici": "8.11.0",
67
+ "undici": "8.12.3",
68
68
  "web-push": "^3.6.7"
69
69
  },
70
70
  "devDependencies": {
@@ -1 +0,0 @@
1
- "use strict";(()=>{var a={};a.id=5870,a.ids=[5870],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},21820:a=>{a.exports=require("os")},28354:a=>{a.exports=require("util")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44166:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{YH:()=>i,bR:()=>k,qo:()=>j,rf:()=>h});var e=c(33873),f=c(11881),g=a([f]);f=(g.then?(await g)():g)[0];let l=new Set(["off","minimal","low","medium","high","xhigh","max"]);function h(a){return"string"==typeof a&&l.has(a)}function i(a,b){let c=a.getProjectSettings(),d=[];return b.model&&(void 0!==c.defaultProvider&&d.push("defaultProvider"),void 0!==c.defaultModel&&d.push("defaultModel")),b.thinkingLevel&&void 0!==c.defaultThinkingLevel&&d.push("defaultThinkingLevel"),d}function j(a){return(0,f.PM)((0,e.join)(a,".pi","settings.json"))}async function k(a,b){let c=a.drainErrors().find(a=>"global"===a.scope);if(c)throw c.error;b.model&&a.setDefaultModelAndProvider(b.model.provider,b.model.modelId),b.thinkingLevel&&a.setDefaultThinkingLevel(b.thinkingLevel),await a.flush();let d=a.drainErrors();if(d.length>0)throw d[0].error}d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},48161:a=>{a.exports=require("node:os")},48457:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/models/default/route",pathname:"/api/models/default",filename:"route",bundlePath:"app/api/models/default/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Users/tassel/pi-web/app/api/models/default/route.ts",nextConfigOutput:"",userland:()=>c(59221),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/models/default/route";"/index"===d&&(d="/");let{instrumentation:e}=await v.ensureInstrumentation(a,{deferSpans:!0});return v.traceRequest(a,{tracer:(0,h.getTracer)(),spanName:`${a.method||"GET"} ${d}`,httpTarget:a.url,instrumentation:e},(e,f)=>B(a,b,c,d,!1,e,f))}async function B(a,b,c,d,f,w,x){let y=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:f});if(!y)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:z,deploymentId:A,params:B,nextConfig:C,parsedUrl:D,isDraftMode:E,prerenderManifest:F,routerServerContext:G,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,resolvedPathname:J,clientReferenceManifest:K,serverActionsManifest:L,previewProps:M}=y,N=(0,j.normalizeAppPath)(d),O=!!F.routes[J]&&(v.isDev||(0,t.isRouteCacheOwner)(J,v.cacheOwner,F.routes[J])),P=!!(F.dynamicRoutes[N]||O),Q=async()=>((null==G?void 0:G.render404)?await G.render404(a,b,D,!1):b.end("This page could not be found"),null);if(P&&!E){let a=F.dynamicRoutes[N];if(a&&!1===a.fallback&&!O){if(C.adapterPath)return await Q();throw new s.NoFallbackError}}let R=null;!P||v.isDev||E||(R="/index"===(R=J)?"/":R),L&&K&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:K,serverActionsManifest:L});let S=a.method||"GET",T=(0,h.getTracer)(),U=!!(null==G?void 0:G.isWrappedByNextServer),V=!!(0,g.getRequestMeta)(a,"minimalMode"),W=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,C,M,F,V);null==W||W.resetRequestCache(),globalThis.__incrementalCache=W;let X={params:B,previewProps:M,renderOpts:{experimental:{authInterrupts:!!C.experimental.authInterrupts,useCacheTimeout:C.experimental.useCacheTimeout,durableUseCacheEntries:!!C.experimental.durableUseCacheEntries},cacheComponents:!!C.cacheComponents,validationLevel:C.experimental.instantInsights.validationLevel,isDraftMode:E,incrementalCache:W,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:C.cacheLife,staticPageGenerationTimeout:C.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:z,deploymentId:A}},Y=new k.NodeNextRequest(a),Z=new k.NodeNextResponse(b),$=l.NextRequestAdapter.fromNodeNextRequest(Y,(0,l.signalFromNodeResponse)(b)),_=async({previousCacheEntry:e})=>{try{if(!V&&H&&I&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===R?await v.handle($,X):await v.prerender($,X);a.fetchMetrics=X.renderOpts.fetchMetrics;let f=X.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=X.renderOpts.collectedTags;if(!P)return await (0,o.I)(Y,Z,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==X.renderOpts.collectedRevalidate&&!(X.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&X.renderOpts.collectedRevalidate,e=void 0===X.renderOpts.collectedExpire||X.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?C.expireTime:void 0:X.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),b}},aa=async d=>{try{var f,g;let d=await v.handleResponse({req:a,nextConfig:C,cacheKey:R,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:M,prerenderManifest:F,isRoutePPREnabled:!1,isOnDemandRevalidate:H,revalidateOnlyGenerated:I,responseGenerator:_,waitUntil:c.waitUntil,isMinimalMode:V});if(null!==d&&"error"in d)throw d.error;if(!P)return;if((null==d||null==(f=d.value)?void 0:f.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(g=d.value)?void 0:g.kind}`);V||b.setHeader("x-nextjs-cache",H?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),E&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let h=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);V&&P||h.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||h.get("Cache-Control")||h.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(Y,Z,new Response(d.value.body,{headers:h,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:N,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==R,isOnDemandRevalidate:H})},!1,G),P)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(Y,Z,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=T.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||N,f=`${S} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":f}),d.updateName(f),x&&x!==d&&(x.setAttribute("http.route",e),x.updateName(f))})()}};U||void 0===a.url||null==w||w.setAttribute("http.target",a.url),await aa(w)}},51455:a=>{a.exports=require("node:fs/promises")},55511:a=>{a.exports=require("crypto")},55831:a=>{a.exports=import("@earendil-works/pi-ai/providers/all")},59221:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{PUT:()=>o,dynamic:()=>p});var e=c(79748),f=c(33873),g=c(75430),h=c(44166),i=c(80547),j=c(18904),k=c(28994),l=c(28967),m=c(72498),n=a([g,h,i,j,k,m]);[g,h,i,j,k,m]=n.then?(await n)():n;let p="force-dynamic";async function o(a){let b,c;try{b=await a.json()}catch{return Response.json({error:"Invalid JSON body"},{status:400})}let d=function(a){let b={};if(void 0!==a.provider||void 0!==a.modelId){if("string"!=typeof a.provider||!a.provider||"string"!=typeof a.modelId||!a.modelId)return null;b.model={provider:a.provider,modelId:a.modelId}}if(void 0!==a.thinkingLevel){if(!(0,h.rf)(a.thinkingLevel))return null;b.thinkingLevel=a.thinkingLevel}return b.model||b.thinkingLevel?b:null}(b);if(!d)return Response.json({error:"Expected provider and modelId, or a valid thinkingLevel"},{status:400});let n=(0,f.resolve)("string"==typeof b.cwd&&b.cwd?b.cwd:process.cwd());try{c=await (0,e.stat)(n)}catch{return Response.json({error:`Directory does not exist: ${n}`},{status:400})}if(!c.isDirectory())return Response.json({error:`Not a directory: ${n}`},{status:400});let o=await (0,i.mc)();if(!(0,i.B7)(n,o))return Response.json({error:"Access denied"},{status:403});try{let a=(0,g.getAgentDir)(),b=(0,m.Fk)(n,a),c=await (0,g.createAgentSessionServices)({cwd:n,agentDir:a,...b?{resourceLoaderReloadOptions:b}:{}}),{settingsManager:e}=c,f=(0,h.YH)(e,d);if(f.length>0){let a=(0,h.qo)(n);return Response.json({error:`${a} sets ${f.join(", ")} for this project, so a global default would not apply here.`,reason:"project-scope",settingsPath:a,keys:f},{status:409})}if(d.model){let a=await (0,j.py)((0,k.TH)(c.modelRuntime),e.getEnabledModels()),{provider:b,modelId:f}=d.model;if(!a.visible.some(a=>a.provider===b&&a.id===f))return Response.json({error:`Model not available: ${b}/${f}`},{status:404})}return await (0,h.bR)(e,d),(0,l.kn)(),Response.json({ok:!0,...d.model?{defaultModel:d.model}:{},...d.thinkingLevel?{defaultThinkingLevel:d.thinkingLevel}:{}})}catch(a){return Response.json({error:a instanceof Error?a.message:String(a)},{status:500})}}d()}catch(a){d(a)}})},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79646:a=>{a.exports=require("child_process")},79748:a=>{a.exports=require("fs/promises")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,426,5582,2498,27],()=>b(b.s=48457));module.exports=c})();