@qt4798/pi-web 0.9.24 → 0.9.26-fix

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 (332) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +6 -5
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/required-server-files.js +1 -1
  5. package/.next/required-server-files.json +1 -1
  6. package/.next/routes-manifest.json +6 -0
  7. package/.next/server/app/_global-error/page.js +2 -2
  8. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  9. package/.next/server/app/_global-error.html +1 -1
  10. package/.next/server/app/_global-error.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  12. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  17. package/.next/server/app/_not-found/page.js +2 -2
  18. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  19. package/.next/server/app/_not-found.html +1 -1
  20. package/.next/server/app/_not-found.rsc +1 -1
  21. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  22. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  23. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  24. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  26. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  27. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -1
  28. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  29. package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -1
  30. package/.next/server/app/api/agent/[id]/route.js +1 -1
  31. package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -1
  32. package/.next/server/app/api/agent/new/route.js +1 -1
  33. package/.next/server/app/api/agent/new/route.js.nft.json +1 -1
  34. package/.next/server/app/api/agent/running/events/route.js +1 -1
  35. package/.next/server/app/api/agent/running/events/route.js.nft.json +1 -1
  36. package/.next/server/app/api/agent/running/route.js +1 -1
  37. package/.next/server/app/api/agent/running/route.js.nft.json +1 -1
  38. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  39. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  40. package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -1
  41. package/.next/server/app/api/auth/combined/route.js +1 -1
  42. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  43. package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -1
  44. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  45. package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -1
  46. package/.next/server/app/api/auth/providers/route.js +1 -1
  47. package/.next/server/app/api/backup/export/route.js +1 -1
  48. package/.next/server/app/api/backup/import/route.js +1 -1
  49. package/.next/server/app/api/cwd/browse/route.js +1 -1
  50. package/.next/server/app/api/cwd/validate/route.js +1 -1
  51. package/.next/server/app/api/deepseek/balance/route.js +1 -1
  52. package/.next/server/app/api/default-cwd/route.js +1 -1
  53. package/.next/server/app/api/events/route.js +2 -2
  54. package/.next/server/app/api/events/route.js.nft.json +1 -1
  55. package/.next/server/app/api/features/route.js +1 -1
  56. package/.next/server/app/api/file-index/route.js +1 -1
  57. package/.next/server/app/api/files/[...path]/route.js +1 -1
  58. package/.next/server/app/api/git/diff/route.js +1 -1
  59. package/.next/server/app/api/git/push/route.js +1 -1
  60. package/.next/server/app/api/git/stash/route.js +1 -1
  61. package/.next/server/app/api/git/status/route.js +2 -2
  62. package/.next/server/app/api/home/route.js +1 -1
  63. package/.next/server/app/api/import/discover/route.js +1 -1
  64. package/.next/server/app/api/import/execute/route.js +1 -1
  65. package/.next/server/app/api/import/status/route.js +1 -1
  66. package/.next/server/app/api/logs/route.js +1 -1
  67. package/.next/server/app/api/mcp/restart/route.js +1 -1
  68. package/.next/server/app/api/mcp/restart/route.js.nft.json +1 -1
  69. package/.next/server/app/api/mcp/route.js +2 -2
  70. package/.next/server/app/api/models/route.js +1 -1
  71. package/.next/server/app/api/models-config/builtin/route.js +1 -1
  72. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  73. package/.next/server/app/api/models-config/discover/route.js +1 -1
  74. package/.next/server/app/api/models-config/route.js +1 -1
  75. package/.next/server/app/api/models-config/test/route.js +1 -1
  76. package/.next/server/app/api/modes/route.js +1 -1
  77. package/.next/server/app/api/plugins/route.js +1 -1
  78. package/.next/server/app/api/project-aliases/route.js +1 -1
  79. package/.next/server/app/api/project-aliases/route.js.nft.json +1 -1
  80. package/.next/server/app/api/project-state/route.js +1 -0
  81. package/.next/server/app/api/project-state/route.js.nft.json +1 -0
  82. package/.next/server/app/api/project-state/route_client-reference-manifest.js +1 -0
  83. package/.next/server/app/api/project-trust/route.js +1 -1
  84. package/.next/server/app/api/project-trust/route.js.nft.json +1 -1
  85. package/.next/server/app/api/proxy/route.js +1 -1
  86. package/.next/server/app/api/proxy/test/route.js +1 -1
  87. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  88. package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -1
  89. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  90. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  91. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  92. package/.next/server/app/api/sessions/[id]/queue-recovery/route.js +1 -1
  93. package/.next/server/app/api/sessions/[id]/queue-recovery/route.js.nft.json +1 -1
  94. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  95. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -1
  96. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  97. package/.next/server/app/api/sessions/[id]/state/route.js.nft.json +1 -1
  98. package/.next/server/app/api/sessions/route.js +1 -1
  99. package/.next/server/app/api/sessions/route.js.nft.json +1 -1
  100. package/.next/server/app/api/settings/title-model/route.js +1 -1
  101. package/.next/server/app/api/skills/check/route.js +1 -1
  102. package/.next/server/app/api/skills/install/route.js +1 -1
  103. package/.next/server/app/api/skills/route.js +2 -2
  104. package/.next/server/app/api/skills/search/route.js +1 -1
  105. package/.next/server/app/api/skills/update/route.js +1 -1
  106. package/.next/server/app/api/snippets/[id]/route.js +1 -1
  107. package/.next/server/app/api/snippets/route.js +1 -1
  108. package/.next/server/app/api/subagents/agents/[name]/route.js +2 -2
  109. package/.next/server/app/api/subagents/route.js +2 -2
  110. package/.next/server/app/api/subagents/transcript/route.js +1 -1
  111. package/.next/server/app/api/tasks/[id]/[action]/route.js +1 -1
  112. package/.next/server/app/api/tasks/[id]/[action]/route.js.nft.json +1 -1
  113. package/.next/server/app/api/tasks/[id]/changed-files/route.js +2 -2
  114. package/.next/server/app/api/tasks/[id]/diff/route.js +2 -2
  115. package/.next/server/app/api/tasks/[id]/events/route.js +1 -1
  116. package/.next/server/app/api/tasks/[id]/route.js +1 -1
  117. package/.next/server/app/api/tasks/[id]/route.js.nft.json +1 -1
  118. package/.next/server/app/api/tasks/batch/route.js +1 -1
  119. package/.next/server/app/api/tasks/batch/route.js.nft.json +1 -1
  120. package/.next/server/app/api/tasks/events/route.js +2 -2
  121. package/.next/server/app/api/tasks/events/route.js.nft.json +1 -1
  122. package/.next/server/app/api/tasks/route.js +1 -1
  123. package/.next/server/app/api/tasks/route.js.nft.json +1 -1
  124. package/.next/server/app/api/tasks/settings/route.js +1 -1
  125. package/.next/server/app/api/tasks/settings/route.js.nft.json +1 -1
  126. package/.next/server/app/api/tasks/templates/route.js +1 -1
  127. package/.next/server/app/api/themes/[name]/route.js +1 -1
  128. package/.next/server/app/api/themes/route.js +1 -1
  129. package/.next/server/app/api/usage/route.js +1 -1
  130. package/.next/server/app/api/vision-config/route.js +2 -2
  131. package/.next/server/app/api/worktrees/route.js +1 -1
  132. package/.next/server/app/icon.ico/route.js +1 -1
  133. package/.next/server/app/icon.png/route.js +1 -1
  134. package/.next/server/app/icon.svg/route.js +1 -1
  135. package/.next/server/app/index.html +1 -1
  136. package/.next/server/app/index.rsc +3 -3
  137. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  138. package/.next/server/app/index.segments/_full.segment.rsc +3 -3
  139. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  140. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  141. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  142. package/.next/server/app/page.js +9 -12
  143. package/.next/server/app/page_client-reference-manifest.js +1 -1
  144. package/.next/server/app-paths-manifest.json +6 -5
  145. package/.next/server/chunks/4229.js +1 -0
  146. package/.next/server/chunks/4253.js +11 -2
  147. package/.next/server/chunks/4564.js +1 -0
  148. package/.next/server/chunks/6429.js +10 -1
  149. package/.next/server/chunks/7915.js +1 -1
  150. package/.next/server/instrumentation.js +1 -1
  151. package/.next/server/middleware-build-manifest.js +1 -1
  152. package/.next/server/pages/404.html +1 -1
  153. package/.next/server/pages/500.html +1 -1
  154. package/.next/static/1qey_1awoTMsTqORIbBD0/_buildManifest.js +1 -0
  155. package/.next/static/chunks/app/_global-error/page-aec7cf234e39d3fc.js +1 -0
  156. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-aec7cf234e39d3fc.js +1 -0
  157. package/.next/static/chunks/app/api/agent/[id]/events/route-aec7cf234e39d3fc.js +1 -0
  158. package/.next/static/chunks/app/api/agent/[id]/route-aec7cf234e39d3fc.js +1 -0
  159. package/.next/static/chunks/app/api/agent/new/route-aec7cf234e39d3fc.js +1 -0
  160. package/.next/static/chunks/app/api/agent/running/events/route-aec7cf234e39d3fc.js +1 -0
  161. package/.next/static/chunks/app/api/agent/running/route-aec7cf234e39d3fc.js +1 -0
  162. package/.next/static/chunks/app/api/auth/all-providers/route-aec7cf234e39d3fc.js +1 -0
  163. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-aec7cf234e39d3fc.js +1 -0
  164. package/.next/static/chunks/app/api/auth/combined/route-aec7cf234e39d3fc.js +1 -0
  165. package/.next/static/chunks/app/api/auth/login/[provider]/route-aec7cf234e39d3fc.js +1 -0
  166. package/.next/static/chunks/app/api/auth/logout/[provider]/route-aec7cf234e39d3fc.js +1 -0
  167. package/.next/static/chunks/app/api/auth/providers/route-aec7cf234e39d3fc.js +1 -0
  168. package/.next/static/chunks/app/api/backup/export/route-aec7cf234e39d3fc.js +1 -0
  169. package/.next/static/chunks/app/api/backup/import/route-aec7cf234e39d3fc.js +1 -0
  170. package/.next/static/chunks/app/api/cwd/browse/route-aec7cf234e39d3fc.js +1 -0
  171. package/.next/static/chunks/app/api/cwd/validate/route-aec7cf234e39d3fc.js +1 -0
  172. package/.next/static/chunks/app/api/deepseek/balance/route-aec7cf234e39d3fc.js +1 -0
  173. package/.next/static/chunks/app/api/default-cwd/route-aec7cf234e39d3fc.js +1 -0
  174. package/.next/static/chunks/app/api/events/route-aec7cf234e39d3fc.js +1 -0
  175. package/.next/static/chunks/app/api/features/route-aec7cf234e39d3fc.js +1 -0
  176. package/.next/static/chunks/app/api/file-index/route-aec7cf234e39d3fc.js +1 -0
  177. package/.next/static/chunks/app/api/files/[...path]/route-aec7cf234e39d3fc.js +1 -0
  178. package/.next/static/chunks/app/api/git/diff/route-aec7cf234e39d3fc.js +1 -0
  179. package/.next/static/chunks/app/api/git/push/route-aec7cf234e39d3fc.js +1 -0
  180. package/.next/static/chunks/app/api/git/stash/route-aec7cf234e39d3fc.js +1 -0
  181. package/.next/static/chunks/app/api/git/status/route-aec7cf234e39d3fc.js +1 -0
  182. package/.next/static/chunks/app/api/home/route-aec7cf234e39d3fc.js +1 -0
  183. package/.next/static/chunks/app/api/import/discover/route-aec7cf234e39d3fc.js +1 -0
  184. package/.next/static/chunks/app/api/import/execute/route-aec7cf234e39d3fc.js +1 -0
  185. package/.next/static/chunks/app/api/import/status/route-aec7cf234e39d3fc.js +1 -0
  186. package/.next/static/chunks/app/api/logs/route-aec7cf234e39d3fc.js +1 -0
  187. package/.next/static/chunks/app/api/mcp/restart/route-aec7cf234e39d3fc.js +1 -0
  188. package/.next/static/chunks/app/api/mcp/route-aec7cf234e39d3fc.js +1 -0
  189. package/.next/static/chunks/app/api/models/route-aec7cf234e39d3fc.js +1 -0
  190. package/.next/static/chunks/app/api/models-config/builtin/route-aec7cf234e39d3fc.js +1 -0
  191. package/.next/static/chunks/app/api/models-config/catalog/route-aec7cf234e39d3fc.js +1 -0
  192. package/.next/static/chunks/app/api/models-config/discover/route-aec7cf234e39d3fc.js +1 -0
  193. package/.next/static/chunks/app/api/models-config/route-aec7cf234e39d3fc.js +1 -0
  194. package/.next/static/chunks/app/api/models-config/test/route-aec7cf234e39d3fc.js +1 -0
  195. package/.next/static/chunks/app/api/modes/route-aec7cf234e39d3fc.js +1 -0
  196. package/.next/static/chunks/app/api/plugins/route-aec7cf234e39d3fc.js +1 -0
  197. package/.next/static/chunks/app/api/project-aliases/route-aec7cf234e39d3fc.js +1 -0
  198. package/.next/static/chunks/app/api/project-state/route-aec7cf234e39d3fc.js +1 -0
  199. package/.next/static/chunks/app/api/project-trust/route-aec7cf234e39d3fc.js +1 -0
  200. package/.next/static/chunks/app/api/proxy/route-aec7cf234e39d3fc.js +1 -0
  201. package/.next/static/chunks/app/api/proxy/test/route-aec7cf234e39d3fc.js +1 -0
  202. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-aec7cf234e39d3fc.js +1 -0
  203. package/.next/static/chunks/app/api/sessions/[id]/context/route-aec7cf234e39d3fc.js +1 -0
  204. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-aec7cf234e39d3fc.js +1 -0
  205. package/.next/static/chunks/app/api/sessions/[id]/export/route-aec7cf234e39d3fc.js +1 -0
  206. package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-aec7cf234e39d3fc.js +1 -0
  207. package/.next/static/chunks/app/api/sessions/[id]/route-aec7cf234e39d3fc.js +1 -0
  208. package/.next/static/chunks/app/api/sessions/[id]/state/route-aec7cf234e39d3fc.js +1 -0
  209. package/.next/static/chunks/app/api/sessions/route-aec7cf234e39d3fc.js +1 -0
  210. package/.next/static/chunks/app/api/settings/title-model/route-aec7cf234e39d3fc.js +1 -0
  211. package/.next/static/chunks/app/api/skills/check/route-aec7cf234e39d3fc.js +1 -0
  212. package/.next/static/chunks/app/api/skills/install/route-aec7cf234e39d3fc.js +1 -0
  213. package/.next/static/chunks/app/api/skills/route-aec7cf234e39d3fc.js +1 -0
  214. package/.next/static/chunks/app/api/skills/search/route-aec7cf234e39d3fc.js +1 -0
  215. package/.next/static/chunks/app/api/skills/update/route-aec7cf234e39d3fc.js +1 -0
  216. package/.next/static/chunks/app/api/snippets/[id]/route-aec7cf234e39d3fc.js +1 -0
  217. package/.next/static/chunks/app/api/snippets/route-aec7cf234e39d3fc.js +1 -0
  218. package/.next/static/chunks/app/api/subagents/agents/[name]/route-aec7cf234e39d3fc.js +1 -0
  219. package/.next/static/chunks/app/api/subagents/route-aec7cf234e39d3fc.js +1 -0
  220. package/.next/static/chunks/app/api/subagents/transcript/route-aec7cf234e39d3fc.js +1 -0
  221. package/.next/static/chunks/app/api/tasks/[id]/[action]/route-aec7cf234e39d3fc.js +1 -0
  222. package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-aec7cf234e39d3fc.js +1 -0
  223. package/.next/static/chunks/app/api/tasks/[id]/diff/route-aec7cf234e39d3fc.js +1 -0
  224. package/.next/static/chunks/app/api/tasks/[id]/events/route-aec7cf234e39d3fc.js +1 -0
  225. package/.next/static/chunks/app/api/tasks/[id]/route-aec7cf234e39d3fc.js +1 -0
  226. package/.next/static/chunks/app/api/tasks/batch/route-aec7cf234e39d3fc.js +1 -0
  227. package/.next/static/chunks/app/api/tasks/events/route-aec7cf234e39d3fc.js +1 -0
  228. package/.next/static/chunks/app/api/tasks/route-aec7cf234e39d3fc.js +1 -0
  229. package/.next/static/chunks/app/api/tasks/settings/route-aec7cf234e39d3fc.js +1 -0
  230. package/.next/static/chunks/app/api/tasks/templates/route-aec7cf234e39d3fc.js +1 -0
  231. package/.next/static/chunks/app/api/themes/[name]/route-aec7cf234e39d3fc.js +1 -0
  232. package/.next/static/chunks/app/api/themes/route-aec7cf234e39d3fc.js +1 -0
  233. package/.next/static/chunks/app/api/usage/route-aec7cf234e39d3fc.js +1 -0
  234. package/.next/static/chunks/app/api/vision-config/route-aec7cf234e39d3fc.js +1 -0
  235. package/.next/static/chunks/app/api/worktrees/route-aec7cf234e39d3fc.js +1 -0
  236. package/.next/static/chunks/app/{page-2f893cab26ad0f25.js → page-2fa9b3ea0569832e.js} +9 -12
  237. package/.next/static/chunks/next/dist/client/components/builtin/app-error-aec7cf234e39d3fc.js +1 -0
  238. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-aec7cf234e39d3fc.js +1 -0
  239. package/.next/static/chunks/next/dist/client/components/builtin/not-found-aec7cf234e39d3fc.js +1 -0
  240. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-aec7cf234e39d3fc.js +1 -0
  241. package/.next/trace +9 -10
  242. package/.next/trace-build +1 -1
  243. package/.next/types/app/api/project-state/route.ts +351 -0
  244. package/.next/types/routes.d.ts +2 -1
  245. package/.next/types/validator.ts +9 -0
  246. package/package.json +1 -1
  247. package/.next/static/chunks/app/_global-error/page-598d211f381122d6.js +0 -1
  248. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-598d211f381122d6.js +0 -1
  249. package/.next/static/chunks/app/api/agent/[id]/events/route-598d211f381122d6.js +0 -1
  250. package/.next/static/chunks/app/api/agent/[id]/route-598d211f381122d6.js +0 -1
  251. package/.next/static/chunks/app/api/agent/new/route-598d211f381122d6.js +0 -1
  252. package/.next/static/chunks/app/api/agent/running/events/route-598d211f381122d6.js +0 -1
  253. package/.next/static/chunks/app/api/agent/running/route-598d211f381122d6.js +0 -1
  254. package/.next/static/chunks/app/api/auth/all-providers/route-598d211f381122d6.js +0 -1
  255. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-598d211f381122d6.js +0 -1
  256. package/.next/static/chunks/app/api/auth/combined/route-598d211f381122d6.js +0 -1
  257. package/.next/static/chunks/app/api/auth/login/[provider]/route-598d211f381122d6.js +0 -1
  258. package/.next/static/chunks/app/api/auth/logout/[provider]/route-598d211f381122d6.js +0 -1
  259. package/.next/static/chunks/app/api/auth/providers/route-598d211f381122d6.js +0 -1
  260. package/.next/static/chunks/app/api/backup/export/route-598d211f381122d6.js +0 -1
  261. package/.next/static/chunks/app/api/backup/import/route-598d211f381122d6.js +0 -1
  262. package/.next/static/chunks/app/api/cwd/browse/route-598d211f381122d6.js +0 -1
  263. package/.next/static/chunks/app/api/cwd/validate/route-598d211f381122d6.js +0 -1
  264. package/.next/static/chunks/app/api/deepseek/balance/route-598d211f381122d6.js +0 -1
  265. package/.next/static/chunks/app/api/default-cwd/route-598d211f381122d6.js +0 -1
  266. package/.next/static/chunks/app/api/events/route-598d211f381122d6.js +0 -1
  267. package/.next/static/chunks/app/api/features/route-598d211f381122d6.js +0 -1
  268. package/.next/static/chunks/app/api/file-index/route-598d211f381122d6.js +0 -1
  269. package/.next/static/chunks/app/api/files/[...path]/route-598d211f381122d6.js +0 -1
  270. package/.next/static/chunks/app/api/git/diff/route-598d211f381122d6.js +0 -1
  271. package/.next/static/chunks/app/api/git/push/route-598d211f381122d6.js +0 -1
  272. package/.next/static/chunks/app/api/git/stash/route-598d211f381122d6.js +0 -1
  273. package/.next/static/chunks/app/api/git/status/route-598d211f381122d6.js +0 -1
  274. package/.next/static/chunks/app/api/home/route-598d211f381122d6.js +0 -1
  275. package/.next/static/chunks/app/api/import/discover/route-598d211f381122d6.js +0 -1
  276. package/.next/static/chunks/app/api/import/execute/route-598d211f381122d6.js +0 -1
  277. package/.next/static/chunks/app/api/import/status/route-598d211f381122d6.js +0 -1
  278. package/.next/static/chunks/app/api/logs/route-598d211f381122d6.js +0 -1
  279. package/.next/static/chunks/app/api/mcp/restart/route-598d211f381122d6.js +0 -1
  280. package/.next/static/chunks/app/api/mcp/route-598d211f381122d6.js +0 -1
  281. package/.next/static/chunks/app/api/models/route-598d211f381122d6.js +0 -1
  282. package/.next/static/chunks/app/api/models-config/builtin/route-598d211f381122d6.js +0 -1
  283. package/.next/static/chunks/app/api/models-config/catalog/route-598d211f381122d6.js +0 -1
  284. package/.next/static/chunks/app/api/models-config/discover/route-598d211f381122d6.js +0 -1
  285. package/.next/static/chunks/app/api/models-config/route-598d211f381122d6.js +0 -1
  286. package/.next/static/chunks/app/api/models-config/test/route-598d211f381122d6.js +0 -1
  287. package/.next/static/chunks/app/api/modes/route-598d211f381122d6.js +0 -1
  288. package/.next/static/chunks/app/api/plugins/route-598d211f381122d6.js +0 -1
  289. package/.next/static/chunks/app/api/project-aliases/route-598d211f381122d6.js +0 -1
  290. package/.next/static/chunks/app/api/project-trust/route-598d211f381122d6.js +0 -1
  291. package/.next/static/chunks/app/api/proxy/route-598d211f381122d6.js +0 -1
  292. package/.next/static/chunks/app/api/proxy/test/route-598d211f381122d6.js +0 -1
  293. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-598d211f381122d6.js +0 -1
  294. package/.next/static/chunks/app/api/sessions/[id]/context/route-598d211f381122d6.js +0 -1
  295. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-598d211f381122d6.js +0 -1
  296. package/.next/static/chunks/app/api/sessions/[id]/export/route-598d211f381122d6.js +0 -1
  297. package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-598d211f381122d6.js +0 -1
  298. package/.next/static/chunks/app/api/sessions/[id]/route-598d211f381122d6.js +0 -1
  299. package/.next/static/chunks/app/api/sessions/[id]/state/route-598d211f381122d6.js +0 -1
  300. package/.next/static/chunks/app/api/sessions/route-598d211f381122d6.js +0 -1
  301. package/.next/static/chunks/app/api/settings/title-model/route-598d211f381122d6.js +0 -1
  302. package/.next/static/chunks/app/api/skills/check/route-598d211f381122d6.js +0 -1
  303. package/.next/static/chunks/app/api/skills/install/route-598d211f381122d6.js +0 -1
  304. package/.next/static/chunks/app/api/skills/route-598d211f381122d6.js +0 -1
  305. package/.next/static/chunks/app/api/skills/search/route-598d211f381122d6.js +0 -1
  306. package/.next/static/chunks/app/api/skills/update/route-598d211f381122d6.js +0 -1
  307. package/.next/static/chunks/app/api/snippets/[id]/route-598d211f381122d6.js +0 -1
  308. package/.next/static/chunks/app/api/snippets/route-598d211f381122d6.js +0 -1
  309. package/.next/static/chunks/app/api/subagents/agents/[name]/route-598d211f381122d6.js +0 -1
  310. package/.next/static/chunks/app/api/subagents/route-598d211f381122d6.js +0 -1
  311. package/.next/static/chunks/app/api/subagents/transcript/route-598d211f381122d6.js +0 -1
  312. package/.next/static/chunks/app/api/tasks/[id]/[action]/route-598d211f381122d6.js +0 -1
  313. package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-598d211f381122d6.js +0 -1
  314. package/.next/static/chunks/app/api/tasks/[id]/diff/route-598d211f381122d6.js +0 -1
  315. package/.next/static/chunks/app/api/tasks/[id]/events/route-598d211f381122d6.js +0 -1
  316. package/.next/static/chunks/app/api/tasks/[id]/route-598d211f381122d6.js +0 -1
  317. package/.next/static/chunks/app/api/tasks/batch/route-598d211f381122d6.js +0 -1
  318. package/.next/static/chunks/app/api/tasks/events/route-598d211f381122d6.js +0 -1
  319. package/.next/static/chunks/app/api/tasks/route-598d211f381122d6.js +0 -1
  320. package/.next/static/chunks/app/api/tasks/settings/route-598d211f381122d6.js +0 -1
  321. package/.next/static/chunks/app/api/tasks/templates/route-598d211f381122d6.js +0 -1
  322. package/.next/static/chunks/app/api/themes/[name]/route-598d211f381122d6.js +0 -1
  323. package/.next/static/chunks/app/api/themes/route-598d211f381122d6.js +0 -1
  324. package/.next/static/chunks/app/api/usage/route-598d211f381122d6.js +0 -1
  325. package/.next/static/chunks/app/api/vision-config/route-598d211f381122d6.js +0 -1
  326. package/.next/static/chunks/app/api/worktrees/route-598d211f381122d6.js +0 -1
  327. package/.next/static/chunks/next/dist/client/components/builtin/app-error-598d211f381122d6.js +0 -1
  328. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-598d211f381122d6.js +0 -1
  329. package/.next/static/chunks/next/dist/client/components/builtin/not-found-598d211f381122d6.js +0 -1
  330. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-598d211f381122d6.js +0 -1
  331. package/.next/static/eSK4TP4AB-BVe--a0MDcL/_buildManifest.js +0 -1
  332. /package/.next/static/{eSK4TP4AB-BVe--a0MDcL → 1qey_1awoTMsTqORIbBD0}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- (()=>{var a={};a.id=1541,a.ids=[1541],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13760:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,dynamic:()=>j});var e=c(75430),f=c(89950),g=c(28247),h=a([e]);e=(h.then?(await h)():h)[0];let j="force-dynamic";async function i(){let a=await e.ModelRuntime.create();return Response.json({providers:(0,f.z)(await (0,g.z)(a))})}d()}catch(a){d(a)}})},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},28247:(a,b,c)=>{"use strict";async function d(a){let b=a.getModels(),c=new Map;try{for(let b of(await a.listCredentials()))("api_key"===b.type||"oauth"===b.type)&&c.set(b.providerId,b.type)}catch{}return a.getProviders().map(d=>({id:d.id,name:d.name,hasApiKeyLogin:!!d.auth.apiKey?.login,hasOAuth:!!d.auth.oauth,...d.auth.oauth?.name?{oauthName:d.auth.oauth.name}:{},status:a.getProviderAuthStatus(d.id),...c.has(d.id)?{credentialType:c.get(d.id)}:{},modelCount:b.filter(a=>a.provider===d.id).length}))}c.d(b,{z:()=>d})},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},75814:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(13760),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/auth/all-providers/route",pathname:"/api/auth/all-providers",filename:"route",bundlePath:"app/api/auth/all-providers/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/auth/all-providers/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/auth/all-providers/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.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==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},89950:(a,b,c)=>{"use strict";c.d(b,{l:()=>h,z:()=>g});let d=new Set(["models_json_key","models_json_command"]),e={"openai-codex":"ChatGPT Plus/Pro","github-copilot":"GitHub Copilot"};function f(a){let b=new Set;return a.filter(a=>!b.has(a.id)&&(b.add(a.id),!0))}function g(a){return f(a).flatMap(a=>{if(!a.hasApiKeyLogin||a.status.source&&d.has(a.status.source))return[];let b=a.status.configured&&"oauth"!==a.credentialType;return[{id:a.id,displayName:a.name,configured:b,...b&&a.status.source?{source:a.status.source}:{},modelCount:a.modelCount,supportsOAuth:a.hasOAuth}]})}function h(a){return f(a).flatMap(a=>a.hasOAuth?[{id:a.id,name:e[a.id]??a.oauthName??a.name,usesCallbackServer:!1,loggedIn:"oauth"===a.credentialType,supportsApiKey:a.hasApiKeyLogin}]:[])}},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741],()=>b(b.s=75814));module.exports=c})();
1
+ (()=>{var a={};a.id=1541,a.ids=[1541],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13760:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>i,dynamic:()=>j});var e=c(75430),f=c(89950),g=c(28247),h=a([e]);e=(h.then?(await h)():h)[0];let j="force-dynamic";async function i(){let a=await e.ModelRuntime.create();return Response.json({providers:(0,f.z)(await (0,g.z)(a))})}d()}catch(a){d(a)}})},19225:(a,b,c)=>{"use strict";a.exports=c(44870)},28247:(a,b,c)=>{"use strict";async function d(a){let b=a.getModels(),c=new Map;try{for(let b of(await a.listCredentials()))("api_key"===b.type||"oauth"===b.type)&&c.set(b.providerId,b.type)}catch{}return a.getProviders().map(d=>({id:d.id,name:d.name,hasApiKeyLogin:!!d.auth.apiKey?.login,hasOAuth:!!d.auth.oauth,...d.auth.oauth?.name?{oauthName:d.auth.oauth.name}:{},status:a.getProviderAuthStatus(d.id),...c.has(d.id)?{credentialType:c.get(d.id)}:{},modelCount:b.filter(a=>a.provider===d.id).length}))}c.d(b,{z:()=>d})},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},78335:()=>{},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},89950:(a,b,c)=>{"use strict";c.d(b,{l:()=>h,z:()=>g});let d=new Set(["models_json_key","models_json_command"]),e={"openai-codex":"ChatGPT Plus/Pro","github-copilot":"GitHub Copilot"};function f(a){let b=new Set;return a.filter(a=>!b.has(a.id)&&(b.add(a.id),!0))}function g(a){return f(a).flatMap(a=>{if(!a.hasApiKeyLogin||a.status.source&&d.has(a.status.source))return[];let b=a.status.configured&&"oauth"!==a.credentialType;return[{id:a.id,displayName:a.name,configured:b,...b&&a.status.source?{source:a.status.source}:{},modelCount:a.modelCount,supportsOAuth:a.hasOAuth}]})}function h(a){return f(a).flatMap(a=>a.hasOAuth?[{id:a.id,name:e[a.id]??a.oauthName??a.name,usesCallbackServer:!1,loggedIn:"oauth"===a.credentialType,supportsApiKey:a.hasApiKeyLogin}]:[])}},92280:(a,b,c)=>{"use strict";Object.defineProperty(b,"I",{enumerable:!0,get:function(){return g}});let d=c(28208),e=c(47617),f=c(62018);async function g(a,b,c,g){if((0,d.isNodeNextResponse)(b)){var h;b.statusCode=c.status,b.statusMessage=c.statusText;let d=["set-cookie","www-authenticate","proxy-authenticate","vary"];null==(h=c.headers)||h.forEach((a,c)=>{if("x-middleware-set-cookie"!==c.toLowerCase())if("set-cookie"===c.toLowerCase())for(let d of(0,f.splitCookiesString)(a))b.appendHeader(c,d);else{let e=void 0!==b.getHeader(c);(d.includes(c.toLowerCase())||!e)&&b.appendHeader(c,a)}});let{originalResponse:i}=b;c.body&&"HEAD"!==a.method?await (0,e.pipeToNodeResponse)(c.body,i,g):i.end()}}},95197:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(13760),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/auth/all-providers/route",pathname:"/api/auth/all-providers",filename:"route",bundlePath:"app/api/auth/all-providers/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/auth/all-providers/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/auth/all-providers/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.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==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},96487:()=>{}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741],()=>b(b.s=95197));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=8743,a.ids=[8743],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{"use strict";a.exports=require("assert")},18470:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>l,GET:()=>j,POST:()=>k,dynamic:()=>m});var e=c(75430),f=c(23211),g=c(28967),h=c(69429),i=a([e,h]);[e,h]=i.then?(await i)():i;let m="force-dynamic";async function j(a,{params:b}){let{provider:c}=await b,d=await e.ModelRuntime.create(),g=d.getProviderAuthStatus(c),h=d.getProvider(c)?.name??c,i=d.getModels(c).length;return f.NextResponse.json({provider:c,displayName:h,configured:g.configured,source:g.source,models:i})}async function k(a,{params:b}){let{provider:c}=await b;try{let{apiKey:b}=await a.json();if(!b||"string"!=typeof b||!b.trim())return f.NextResponse.json({error:"apiKey is required"},{status:400});let d=await e.ModelRuntime.create(),i=d.getProvider(c)?.auth.apiKey;if(!i?.login)throw Error(`${c} does not support API key login`);let j=!1,k=await i.login({signal:a.signal,notify:()=>{},prompt:async a=>{if("select"===a.type){let b=a.options.find(a=>"api-key"===a.id||"bearer-token"===a.id);if(b)return b.id;throw Error(`${c} requires interactive authentication setup`)}if(!j&&"secret"===a.type)return j=!0,b.trim();throw Error(`${c} requires additional authentication settings`)}});return await (0,h.Q)(c,k),(0,g.k)(),f.NextResponse.json({success:!0})}catch(a){return f.NextResponse.json({error:String(a)},{status:500})}}async function l(a,{params:b}){let{provider:c}=await b;try{let a=await (0,h.C)(c,"api_key");if("type_mismatch"===a.status)return f.NextResponse.json({error:`${c} is authenticated with OAuth, not an API key`},{status:409});return(0,g.k)(),f.NextResponse.json({success:!0})}catch(a){return f.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},27910:a=>{"use strict";a.exports=require("stream")},28354:a=>{"use strict";a.exports=require("util")},28967:(a,b,c)=>{"use strict";function d(){return globalThis.__piModelsCacheState||(globalThis.__piModelsCacheState={entries:new Map,inFlight:new Map,generation:0}),globalThis.__piModelsCacheState}function e(){let a=d();a.generation+=1,a.entries.clear(),a.inFlight.clear()}function f(a,b){let c=d(),e=c.entries.get(a);if(e&&e.expiresAt>Date.now())return Promise.resolve(e.data);if(e)return c.inFlight.has(a)||g(c,a,b).catch(()=>{}),Promise.resolve(e.data);let f=c.inFlight.get(a);return f||g(c,a,b)}function g(a,b,c){let d=a.inFlight.get(b);if(d)return d;let e=a.generation,f=Promise.resolve().then(c).then(c=>{if(a.generation===e&&a.inFlight.get(b)===f){let d=Date.now();for(let[b,c]of a.entries)c.expiresAt<=d&&a.entries.delete(b);for(;a.entries.size>=32;){let b=a.entries.keys().next().value;if(void 0===b)break;a.entries.delete(b)}a.entries.set(b,{data:c,expiresAt:d+6e4})}return c}).finally(()=>{a.inFlight.get(b)===f&&a.inFlight.delete(b)});return a.inFlight.set(b,f),f}c.d(b,{k:()=>e,r:()=>f})},29021:a=>{"use strict";a.exports=require("fs")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},32094:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(18470),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/auth/api-key/[provider]/route",pathname:"/api/auth/api-key/[provider]",filename:"route",bundlePath:"app/api/auth/api-key/[provider]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/auth/api-key/[provider]/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/auth/api-key/[provider]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.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==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},33873:a=>{"use strict";a.exports=require("path")},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},69429:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{C:()=>n,Q:()=>m});var e=c(73024),f=c(76760),g=c(75430),h=c(80974),i=c.n(h),j=a([g]);g=(j.then?(await j)():j)[0];let o={encoding:"utf-8",mode:384};function k(a){return"object"==typeof a&&null!==a&&!Array.isArray(a)}async function l(a,b){let c,d=(0,f.dirname)(a);if((0,e.existsSync)(d)||(0,e.mkdirSync)(d,{recursive:!0,mode:448}),!(0,e.existsSync)(a)){(0,e.writeFileSync)(a,"{}",o);try{(0,e.chmodSync)(a,384)}catch{}}let g=await i().lock(a,{retries:{retries:10,factor:2,minTimeout:100,maxTimeout:1e4,randomize:!0},stale:3e4,onCompromised:a=>{c=a}}),h=()=>{if(c)throw c};try{h();let c=JSON.parse((0,e.readFileSync)(a,"utf-8"));if(!k(c))throw Error("Invalid auth.json: expected an object");let{result:d,changed:f}=b(c);if(f){h(),(0,e.writeFileSync)(a,JSON.stringify(c,null,2),o);try{(0,e.chmodSync)(a,384)}catch{}h()}return d}finally{try{await g()}catch{}}}function m(a,b,c=(0,f.join)((0,g.getAgentDir)(),"auth.json")){return l(c,c=>(c[a]=b,{result:void 0,changed:!0}))}function n(a,b,c=(0,f.join)((0,g.getAgentDir)(),"auth.json")){return l(c,c=>{if(!Object.hasOwn(c,a))return{result:{status:"not_found"},changed:!1};let d=c[a],e=k(d)&&"string"==typeof d.type?d.type:"unknown";return e!==b?{result:{status:"type_mismatch",storedType:e},changed:!1}:(delete c[a],{result:{status:"removed"},changed:!0})})}d()}catch(a){d(a)}})},73024:a=>{"use strict";a.exports=require("node:fs")},75430:a=>{"use strict";a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{"use strict";a.exports=require("node:path")},78335:()=>{},81115:a=>{"use strict";a.exports=require("constants")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{"use strict";a.exports=require("events")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,974],()=>b(b.s=32094));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=8743,a.ids=[8743],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},12412:a=>{a.exports=require("assert")},18470:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{DELETE:()=>m,GET:()=>k,POST:()=>l,dynamic:()=>n});var e=c(75430),f=c(23211),g=c(28967),h=c(18904),i=c(69429),j=a([e,h,i]);[e,h,i]=j.then?(await j)():j;let n="force-dynamic";async function k(a,{params:b}){let{provider:c}=await b,d=await e.ModelRuntime.create(),g=d.getProviderAuthStatus(c),h=d.getProvider(c)?.name??c,i=d.getModels(c).length;return f.NextResponse.json({provider:c,displayName:h,configured:g.configured,source:g.source,models:i})}async function l(a,{params:b}){let{provider:c}=await b;try{let{apiKey:b}=await a.json();if(!b||"string"!=typeof b||!b.trim())return f.NextResponse.json({error:"apiKey is required"},{status:400});let d=await e.ModelRuntime.create(),j=d.getProvider(c)?.auth.apiKey;if(!j?.login)throw Error(`${c} does not support API key login`);let k=!1,l=await j.login({signal:a.signal,notify:()=>{},prompt:async a=>{if("select"===a.type){let b=a.options.find(a=>"api-key"===a.id||"bearer-token"===a.id);if(b)return b.id;throw Error(`${c} requires interactive authentication setup`)}if(!k&&"secret"===a.type)return k=!0,b.trim();throw Error(`${c} requires additional authentication settings`)}});return await (0,i.Q)(c,l),(0,g.k)(),(0,h.Ln)(),f.NextResponse.json({success:!0})}catch(a){return f.NextResponse.json({error:String(a)},{status:500})}}async function m(a,{params:b}){let{provider:c}=await b;try{let a=await (0,i.C)(c,"api_key");if("type_mismatch"===a.status)return f.NextResponse.json({error:`${c} is authenticated with OAuth, not an API key`},{status:409});return(0,g.k)(),(0,h.Ln)(),f.NextResponse.json({success:!0})}catch(a){return f.NextResponse.json({error:String(a)},{status:500})}}d()}catch(a){d(a)}})},24933:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(18470),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/auth/api-key/[provider]/route",pathname:"/api/auth/api-key/[provider]",filename:"route",bundlePath:"app/api/auth/api-key/[provider]/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/Volumes/1T 原装/项目研发/pi-web-QT/app/api/auth/api-key/[provider]/route.ts",nextConfigOutput:"",userland:v,...{}}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/auth/api-key/[provider]/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,deploymentId:v,params:w,nextConfig:x,parsedUrl:y,isDraftMode:A,prerenderManifest:B,routerServerContext:C,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,resolvedPathname:F,clientReferenceManifest:G,serverActionsManifest:H}=e,I=(0,k.normalizeAppPath)(d),J=!!(B.dynamicRoutes[I]||B.routes[F]),K=async()=>((null==C?void 0:C.render404)?await C.render404(a,b,y,!1):b.end("This page could not be found"),null);if(J&&!A){let a=!!B.routes[F],b=B.dynamicRoutes[I];if(b&&!1===b.fallback&&!a){if(x.adapterPath)return await K();throw new t.NoFallbackError}}let L=null;!J||z.isDev||A||(L=F,L="/index"===L?"/":L);let M=!0===z.isDev||!J,N=J&&!M;H&&G&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:G,serverActionsManifest:H});let O=a.method||"GET",P=(0,i.getTracer)(),Q=P.getActiveScopeSpan(),R=!!(null==C?void 0:C.isWrappedByNextServer),S=!!(0,h.getRequestMeta)(a,"minimalMode"),T=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,x,B,S);null==T||T.resetRequestCache(),globalThis.__incrementalCache=T;let U={params:w,previewProps:B.preview,renderOpts:{experimental:{authInterrupts:!!x.experimental.authInterrupts},cacheComponents:!!x.cacheComponents,supportsDynamicResponse:M,incrementalCache:T,cacheLifeProfiles:x.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,C)},sharedContext:{buildId:g,deploymentId:v}},V=new l.NodeNextRequest(a),W=new l.NodeNextResponse(b),X=m.NextRequestAdapter.fromNodeNextRequest(V,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(X,U).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=P.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${O} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${O} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!S&&D&&E&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=U.renderOpts.fetchMetrics;let h=U.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=U.renderOpts.collectedTags;if(!J)return await (0,p.I)(V,W,d,U.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==U.renderOpts.collectedRevalidate&&!(U.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&U.renderOpts.collectedRevalidate,e=void 0===U.renderOpts.collectedExpire||U.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:U.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==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),b}},k=await z.handleResponse({req:a,nextConfig:x,cacheKey:L,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:B,isRoutePPREnabled:!1,isOnDemandRevalidate:D,revalidateOnlyGenerated:E,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:S});if(!J)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});S||b.setHeader("x-nextjs-cache",D?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),A&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return S&&J||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(V,W,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};R&&Q?await h(Q):(e=P.getActiveScopeSpan(),await P.withPropagatedContext(a.headers,()=>P.trace(n.BaseServerSpan.handleRequest,{spanName:`${O} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":O,"http.target":a.url}},h),void 0,!R))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:I,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:N,isOnDemandRevalidate:D})},!1,C),J)throw b;return await (0,p.I)(V,W,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},27910:a=>{a.exports=require("stream")},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")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},73024:a=>{a.exports=require("node:fs")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},76760:a=>{a.exports=require("node:path")},81115:a=>{a.exports=require("constants")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},94735:a=>{a.exports=require("events")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,974,4564],()=>b(b.s=24933));module.exports=c})();