@qt4798/pi-web 0.17.14 → 0.18.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 (371) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +21 -19
  3. package/.next/build-manifest.json +2 -2
  4. package/.next/prerender-manifest.json +29 -1
  5. package/.next/required-server-files.js +1 -1
  6. package/.next/required-server-files.json +1 -1
  7. package/.next/routes-manifest.json +26 -12
  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 +3 -3
  19. package/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
  20. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  21. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  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 +3 -3
  24. package/.next/server/app/api/agent/[id]/lease/route.js +1 -0
  25. package/.next/server/app/api/agent/[id]/lease/route.js.nft.json +1 -0
  26. package/.next/server/app/api/{deepseek/balance → agent/[id]/lease}/route_client-reference-manifest.js +1 -1
  27. package/.next/server/app/api/agent/[id]/route.js +1 -1
  28. package/.next/server/app/api/agent/new/route.js +1 -1
  29. package/.next/server/app/api/agent/running/events/route.js +2 -2
  30. package/.next/server/app/api/agent/running/route.js +1 -1
  31. package/.next/server/app/api/app-update/route.js +1 -1
  32. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  33. package/.next/server/app/api/auth/combined/route.js +1 -1
  34. package/.next/server/app/api/auth/login/[provider]/route.js +1 -1
  35. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  36. package/.next/server/app/api/auth/providers/route.js +1 -1
  37. package/.next/server/app/api/backup/export/route.js +1 -1
  38. package/.next/server/app/api/backup/import/route.js +1 -1
  39. package/.next/server/app/api/cwd/browse/route.js +1 -1
  40. package/.next/server/app/api/cwd/validate/route.js +1 -1
  41. package/.next/server/app/api/default-cwd/route.js +1 -1
  42. package/.next/server/app/api/events/route.js +2 -2
  43. package/.next/server/app/api/features/route.js +1 -1
  44. package/.next/server/app/api/file-index/route.js +1 -1
  45. package/.next/server/app/api/files/[...path]/route.js +3 -3
  46. package/.next/server/app/api/git/diff/route.js +2 -2
  47. package/.next/server/app/api/git/push/route.js +1 -1
  48. package/.next/server/app/api/git/stash/route.js +1 -1
  49. package/.next/server/app/api/git/status/route.js +2 -2
  50. package/.next/server/app/api/home/route.js +1 -1
  51. package/.next/server/app/api/import/discover/route.js +1 -1
  52. package/.next/server/app/api/import/execute/route.js +1 -1
  53. package/.next/server/app/api/import/status/route.js +1 -1
  54. package/.next/server/app/api/logs/route.js +1 -1
  55. package/.next/server/app/api/mcp/restart/route.js +1 -1
  56. package/.next/server/app/api/mcp/route.js +2 -2
  57. package/.next/server/app/api/models/route.js +1 -1
  58. package/.next/server/app/api/models-config/builtin/route.js +1 -1
  59. package/.next/server/app/api/models-config/catalog/route.js +1 -1
  60. package/.next/server/app/api/models-config/discover/route.js +1 -1
  61. package/.next/server/app/api/models-config/route.js +1 -1
  62. package/.next/server/app/api/models-config/test/route.js +1 -1
  63. package/.next/server/app/api/modes/route.js +1 -1
  64. package/.next/server/app/api/plugins/check/route.js +1 -1
  65. package/.next/server/app/api/plugins/route.js +1 -1
  66. package/.next/server/app/api/project-aliases/route.js +1 -1
  67. package/.next/server/app/api/project-state/route.js +1 -1
  68. package/.next/server/app/api/project-trust/route.js +1 -1
  69. package/.next/server/app/api/projects/visibility/route.js +1 -1
  70. package/.next/server/app/api/provider-usage/query/route.js +1 -0
  71. package/.next/server/app/api/{deepseek/balance → provider-usage/query}/route.js.nft.json +1 -1
  72. package/.next/server/app/api/provider-usage/query/route_client-reference-manifest.js +1 -0
  73. package/.next/server/app/api/proxy/route.js +1 -1
  74. package/.next/server/app/api/proxy/test/route.js +1 -1
  75. package/.next/server/app/api/sessions/[id]/auto-name/route.js +2 -2
  76. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  77. package/.next/server/app/api/sessions/[id]/details/route.js +1 -1
  78. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -1
  79. package/.next/server/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route.js +1 -1
  80. package/.next/server/app/api/sessions/[id]/export/route.js +2 -2
  81. package/.next/server/app/api/sessions/[id]/queue-recovery/route.js +1 -1
  82. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  83. package/.next/server/app/api/sessions/[id]/state/route.js +1 -1
  84. package/.next/server/app/api/sessions/route.js +1 -1
  85. package/.next/server/app/api/sessions/search/route.js +1 -1
  86. package/.next/server/app/api/settings/title-model/route.js +1 -1
  87. package/.next/server/app/api/skills/check/route.js +1 -1
  88. package/.next/server/app/api/skills/install/route.js +1 -1
  89. package/.next/server/app/api/skills/route.js +1 -1
  90. package/.next/server/app/api/skills/search/route.js +1 -1
  91. package/.next/server/app/api/skills/update/route.js +1 -1
  92. package/.next/server/app/api/snippets/[id]/route.js +1 -1
  93. package/.next/server/app/api/snippets/route.js +1 -1
  94. package/.next/server/app/api/subagents/[id]/route.js +1 -1
  95. package/.next/server/app/api/subagents/profiles/route.js +1 -1
  96. package/.next/server/app/api/subagents/settings/route.js +1 -1
  97. package/.next/server/app/api/tasks/[id]/[action]/route.js +1 -1
  98. package/.next/server/app/api/tasks/[id]/changed-files/route.js +1 -1
  99. package/.next/server/app/api/tasks/[id]/diff/route.js +2 -2
  100. package/.next/server/app/api/tasks/[id]/events/route.js +1 -1
  101. package/.next/server/app/api/tasks/[id]/route.js +1 -1
  102. package/.next/server/app/api/tasks/batch/route.js +1 -1
  103. package/.next/server/app/api/tasks/events/route.js +1 -1
  104. package/.next/server/app/api/tasks/route.js +1 -1
  105. package/.next/server/app/api/tasks/settings/route.js +1 -1
  106. package/.next/server/app/api/tasks/templates/route.js +1 -1
  107. package/.next/server/app/api/terminal/[id]/events/route.js +2 -2
  108. package/.next/server/app/api/terminal/[id]/route.js +1 -1
  109. package/.next/server/app/api/terminal/route.js +1 -1
  110. package/.next/server/app/api/themes/[name]/route.js +1 -1
  111. package/.next/server/app/api/themes/route.js +1 -1
  112. package/.next/server/app/api/tools/extension-tools/route.js +1 -1
  113. package/.next/server/app/api/tools/settings/route.js +1 -1
  114. package/.next/server/app/api/usage/route.js +1 -1
  115. package/.next/server/app/api/vision-config/route.js +2 -2
  116. package/.next/server/app/api/web-auth/route.js +1 -0
  117. package/.next/server/app/api/web-auth/route_client-reference-manifest.js +1 -0
  118. package/.next/server/app/api/worktrees/route.js +1 -1
  119. package/.next/server/app/icon.ico/route.js +1 -1
  120. package/.next/server/app/icon.png/route.js +1 -1
  121. package/.next/server/app/icon.svg/route.js +1 -1
  122. package/.next/server/app/index.html +1 -1
  123. package/.next/server/app/index.rsc +5 -5
  124. package/.next/server/app/index.segments/__PAGE__.segment.rsc +5 -5
  125. package/.next/server/app/index.segments/_full.segment.rsc +5 -5
  126. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  127. package/.next/server/app/login/page.js +3 -0
  128. package/.next/server/app/login/page.js.nft.json +1 -0
  129. package/.next/server/app/login/page_client-reference-manifest.js +1 -0
  130. package/.next/server/app/login.html +1 -0
  131. package/.next/server/app/login.meta +26 -0
  132. package/.next/server/app/login.rsc +23 -0
  133. package/.next/server/app/login.segments/_full.segment.rsc +23 -0
  134. package/.next/server/app/login.segments/_tree.segment.rsc +4 -0
  135. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +29 -0
  136. package/.next/server/app/page.js +13 -13
  137. package/.next/server/app/page.js.nft.json +1 -1
  138. package/.next/server/app/page_client-reference-manifest.js +1 -1
  139. package/.next/server/app-paths-manifest.json +21 -19
  140. package/.next/server/chunks/1352.js +1 -0
  141. package/.next/server/chunks/4253.js +7 -7
  142. package/.next/server/chunks/5582.js +5 -5
  143. package/.next/server/chunks/6429.js +7 -7
  144. package/.next/server/chunks/7915.js +1 -1
  145. package/.next/server/instrumentation.js +1 -1
  146. package/.next/server/instrumentation.js.nft.json +1 -1
  147. package/.next/server/middleware-build-manifest.js +1 -1
  148. package/.next/server/middleware.js +1 -1
  149. package/.next/server/pages/404.html +1 -1
  150. package/.next/server/pages/500.html +1 -1
  151. package/.next/server/prefetch-hints.json +14 -0
  152. package/.next/static/SG1lpxg7rrh2GYecN7CkV/_buildManifest.js +1 -0
  153. package/.next/static/chunks/5772-ddd18c0d4b7715e5.js +3 -0
  154. package/.next/static/chunks/7650-4f948821e59fd720.js +1 -0
  155. package/.next/static/chunks/9247-7890abc5e443c0b9.js +1 -0
  156. package/.next/static/chunks/app/_global-error/page-442ef8efc99801fc.js +1 -0
  157. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-442ef8efc99801fc.js +1 -0
  158. package/.next/static/chunks/app/api/agent/[id]/events/route-442ef8efc99801fc.js +1 -0
  159. package/.next/static/chunks/app/api/agent/[id]/lease/route-442ef8efc99801fc.js +1 -0
  160. package/.next/static/chunks/app/api/agent/[id]/route-442ef8efc99801fc.js +1 -0
  161. package/.next/static/chunks/app/api/agent/new/route-442ef8efc99801fc.js +1 -0
  162. package/.next/static/chunks/app/api/agent/running/events/route-442ef8efc99801fc.js +1 -0
  163. package/.next/static/chunks/app/api/agent/running/route-442ef8efc99801fc.js +1 -0
  164. package/.next/static/chunks/app/api/app-update/route-442ef8efc99801fc.js +1 -0
  165. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-442ef8efc99801fc.js +1 -0
  166. package/.next/static/chunks/app/api/auth/combined/route-442ef8efc99801fc.js +1 -0
  167. package/.next/static/chunks/app/api/auth/login/[provider]/route-442ef8efc99801fc.js +1 -0
  168. package/.next/static/chunks/app/api/auth/logout/[provider]/route-442ef8efc99801fc.js +1 -0
  169. package/.next/static/chunks/app/api/auth/providers/route-442ef8efc99801fc.js +1 -0
  170. package/.next/static/chunks/app/api/backup/export/route-442ef8efc99801fc.js +1 -0
  171. package/.next/static/chunks/app/api/backup/import/route-442ef8efc99801fc.js +1 -0
  172. package/.next/static/chunks/app/api/cwd/browse/route-442ef8efc99801fc.js +1 -0
  173. package/.next/static/chunks/app/api/cwd/validate/route-442ef8efc99801fc.js +1 -0
  174. package/.next/static/chunks/app/api/default-cwd/route-442ef8efc99801fc.js +1 -0
  175. package/.next/static/chunks/app/api/events/route-442ef8efc99801fc.js +1 -0
  176. package/.next/static/chunks/app/api/features/route-442ef8efc99801fc.js +1 -0
  177. package/.next/static/chunks/app/api/file-index/route-442ef8efc99801fc.js +1 -0
  178. package/.next/static/chunks/app/api/files/[...path]/route-442ef8efc99801fc.js +1 -0
  179. package/.next/static/chunks/app/api/git/diff/route-442ef8efc99801fc.js +1 -0
  180. package/.next/static/chunks/app/api/git/push/route-442ef8efc99801fc.js +1 -0
  181. package/.next/static/chunks/app/api/git/stash/route-442ef8efc99801fc.js +1 -0
  182. package/.next/static/chunks/app/api/git/status/route-442ef8efc99801fc.js +1 -0
  183. package/.next/static/chunks/app/api/home/route-442ef8efc99801fc.js +1 -0
  184. package/.next/static/chunks/app/api/import/discover/route-442ef8efc99801fc.js +1 -0
  185. package/.next/static/chunks/app/api/import/execute/route-442ef8efc99801fc.js +1 -0
  186. package/.next/static/chunks/app/api/import/status/route-442ef8efc99801fc.js +1 -0
  187. package/.next/static/chunks/app/api/logs/route-442ef8efc99801fc.js +1 -0
  188. package/.next/static/chunks/app/api/mcp/restart/route-442ef8efc99801fc.js +1 -0
  189. package/.next/static/chunks/app/api/mcp/route-442ef8efc99801fc.js +1 -0
  190. package/.next/static/chunks/app/api/models/route-442ef8efc99801fc.js +1 -0
  191. package/.next/static/chunks/app/api/models-config/builtin/route-442ef8efc99801fc.js +1 -0
  192. package/.next/static/chunks/app/api/models-config/catalog/route-442ef8efc99801fc.js +1 -0
  193. package/.next/static/chunks/app/api/models-config/discover/route-442ef8efc99801fc.js +1 -0
  194. package/.next/static/chunks/app/api/models-config/route-442ef8efc99801fc.js +1 -0
  195. package/.next/static/chunks/app/api/models-config/test/route-442ef8efc99801fc.js +1 -0
  196. package/.next/static/chunks/app/api/modes/route-442ef8efc99801fc.js +1 -0
  197. package/.next/static/chunks/app/api/plugins/check/route-442ef8efc99801fc.js +1 -0
  198. package/.next/static/chunks/app/api/plugins/route-442ef8efc99801fc.js +1 -0
  199. package/.next/static/chunks/app/api/project-aliases/route-442ef8efc99801fc.js +1 -0
  200. package/.next/static/chunks/app/api/project-state/route-442ef8efc99801fc.js +1 -0
  201. package/.next/static/chunks/app/api/project-trust/route-442ef8efc99801fc.js +1 -0
  202. package/.next/static/chunks/app/api/projects/visibility/route-442ef8efc99801fc.js +1 -0
  203. package/.next/static/chunks/app/api/provider-usage/query/route-442ef8efc99801fc.js +1 -0
  204. package/.next/static/chunks/app/api/proxy/route-442ef8efc99801fc.js +1 -0
  205. package/.next/static/chunks/app/api/proxy/test/route-442ef8efc99801fc.js +1 -0
  206. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-442ef8efc99801fc.js +1 -0
  207. package/.next/static/chunks/app/api/sessions/[id]/context/route-442ef8efc99801fc.js +1 -0
  208. package/.next/static/chunks/app/api/sessions/[id]/details/route-442ef8efc99801fc.js +1 -0
  209. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-442ef8efc99801fc.js +1 -0
  210. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-442ef8efc99801fc.js +1 -0
  211. package/.next/static/chunks/app/api/sessions/[id]/export/route-442ef8efc99801fc.js +1 -0
  212. package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-442ef8efc99801fc.js +1 -0
  213. package/.next/static/chunks/app/api/sessions/[id]/route-442ef8efc99801fc.js +1 -0
  214. package/.next/static/chunks/app/api/sessions/[id]/state/route-442ef8efc99801fc.js +1 -0
  215. package/.next/static/chunks/app/api/sessions/route-442ef8efc99801fc.js +1 -0
  216. package/.next/static/chunks/app/api/sessions/search/route-442ef8efc99801fc.js +1 -0
  217. package/.next/static/chunks/app/api/settings/title-model/route-442ef8efc99801fc.js +1 -0
  218. package/.next/static/chunks/app/api/skills/check/route-442ef8efc99801fc.js +1 -0
  219. package/.next/static/chunks/app/api/skills/install/route-442ef8efc99801fc.js +1 -0
  220. package/.next/static/chunks/app/api/skills/route-442ef8efc99801fc.js +1 -0
  221. package/.next/static/chunks/app/api/skills/search/route-442ef8efc99801fc.js +1 -0
  222. package/.next/static/chunks/app/api/skills/update/route-442ef8efc99801fc.js +1 -0
  223. package/.next/static/chunks/app/api/snippets/[id]/route-442ef8efc99801fc.js +1 -0
  224. package/.next/static/chunks/app/api/snippets/route-442ef8efc99801fc.js +1 -0
  225. package/.next/static/chunks/app/api/subagents/[id]/route-442ef8efc99801fc.js +1 -0
  226. package/.next/static/chunks/app/api/subagents/profiles/route-442ef8efc99801fc.js +1 -0
  227. package/.next/static/chunks/app/api/subagents/settings/route-442ef8efc99801fc.js +1 -0
  228. package/.next/static/chunks/app/api/tasks/[id]/[action]/route-442ef8efc99801fc.js +1 -0
  229. package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-442ef8efc99801fc.js +1 -0
  230. package/.next/static/chunks/app/api/tasks/[id]/diff/route-442ef8efc99801fc.js +1 -0
  231. package/.next/static/chunks/app/api/tasks/[id]/events/route-442ef8efc99801fc.js +1 -0
  232. package/.next/static/chunks/app/api/tasks/[id]/route-442ef8efc99801fc.js +1 -0
  233. package/.next/static/chunks/app/api/tasks/batch/route-442ef8efc99801fc.js +1 -0
  234. package/.next/static/chunks/app/api/tasks/events/route-442ef8efc99801fc.js +1 -0
  235. package/.next/static/chunks/app/api/tasks/route-442ef8efc99801fc.js +1 -0
  236. package/.next/static/chunks/app/api/tasks/settings/route-442ef8efc99801fc.js +1 -0
  237. package/.next/static/chunks/app/api/tasks/templates/route-442ef8efc99801fc.js +1 -0
  238. package/.next/static/chunks/app/api/terminal/[id]/events/route-442ef8efc99801fc.js +1 -0
  239. package/.next/static/chunks/app/api/terminal/[id]/route-442ef8efc99801fc.js +1 -0
  240. package/.next/static/chunks/app/api/terminal/route-442ef8efc99801fc.js +1 -0
  241. package/.next/static/chunks/app/api/themes/[name]/route-442ef8efc99801fc.js +1 -0
  242. package/.next/static/chunks/app/api/themes/route-442ef8efc99801fc.js +1 -0
  243. package/.next/static/chunks/app/api/tools/extension-tools/route-442ef8efc99801fc.js +1 -0
  244. package/.next/static/chunks/app/api/tools/settings/route-442ef8efc99801fc.js +1 -0
  245. package/.next/static/chunks/app/api/usage/route-442ef8efc99801fc.js +1 -0
  246. package/.next/static/chunks/app/api/vision-config/route-442ef8efc99801fc.js +1 -0
  247. package/.next/static/chunks/app/api/web-auth/route-442ef8efc99801fc.js +1 -0
  248. package/.next/static/chunks/app/api/worktrees/route-442ef8efc99801fc.js +1 -0
  249. package/.next/static/chunks/app/{layout-4d62e08c230b8ea9.js → layout-9aea218f73c7fe87.js} +1 -1
  250. package/.next/static/chunks/app/login/page-0e84371f9eaa744e.js +1 -0
  251. package/.next/static/chunks/app/page-afdc9bc1943a7acf.js +206 -0
  252. package/.next/static/chunks/next/dist/client/components/builtin/app-error-442ef8efc99801fc.js +1 -0
  253. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-442ef8efc99801fc.js +1 -0
  254. package/.next/static/chunks/next/dist/client/components/builtin/not-found-442ef8efc99801fc.js +1 -0
  255. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-442ef8efc99801fc.js +1 -0
  256. package/.next/static/css/452ea33c857da08e.css +1 -0
  257. package/.next/trace +10 -8
  258. package/.next/trace-build +1 -1
  259. package/.next/types/app/api/{deepseek/balance → agent/[id]/lease}/route.ts +3 -3
  260. package/.next/types/app/api/provider-usage/query/route.ts +353 -0
  261. package/.next/types/app/api/{pair → web-auth}/route.ts +3 -3
  262. package/.next/types/app/login/page.ts +89 -0
  263. package/.next/types/routes.d.ts +6 -4
  264. package/.next/types/validator.ts +36 -18
  265. package/package.json +1 -1
  266. package/.next/server/app/api/deepseek/balance/route.js +0 -1
  267. package/.next/server/app/api/pair/route.js +0 -2
  268. package/.next/server/app/api/pair/route_client-reference-manifest.js +0 -1
  269. package/.next/server/chunks/4154.js +0 -1
  270. package/.next/static/chunks/9660-8945dc0e772329fb.js +0 -1
  271. package/.next/static/chunks/app/_global-error/page-1f18a3ac6ad460ce.js +0 -1
  272. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-1f18a3ac6ad460ce.js +0 -1
  273. package/.next/static/chunks/app/api/agent/[id]/events/route-1f18a3ac6ad460ce.js +0 -1
  274. package/.next/static/chunks/app/api/agent/[id]/route-1f18a3ac6ad460ce.js +0 -1
  275. package/.next/static/chunks/app/api/agent/new/route-1f18a3ac6ad460ce.js +0 -1
  276. package/.next/static/chunks/app/api/agent/running/events/route-1f18a3ac6ad460ce.js +0 -1
  277. package/.next/static/chunks/app/api/agent/running/route-1f18a3ac6ad460ce.js +0 -1
  278. package/.next/static/chunks/app/api/app-update/route-1f18a3ac6ad460ce.js +0 -1
  279. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-1f18a3ac6ad460ce.js +0 -1
  280. package/.next/static/chunks/app/api/auth/combined/route-1f18a3ac6ad460ce.js +0 -1
  281. package/.next/static/chunks/app/api/auth/login/[provider]/route-1f18a3ac6ad460ce.js +0 -1
  282. package/.next/static/chunks/app/api/auth/logout/[provider]/route-1f18a3ac6ad460ce.js +0 -1
  283. package/.next/static/chunks/app/api/auth/providers/route-1f18a3ac6ad460ce.js +0 -1
  284. package/.next/static/chunks/app/api/backup/export/route-1f18a3ac6ad460ce.js +0 -1
  285. package/.next/static/chunks/app/api/backup/import/route-1f18a3ac6ad460ce.js +0 -1
  286. package/.next/static/chunks/app/api/cwd/browse/route-1f18a3ac6ad460ce.js +0 -1
  287. package/.next/static/chunks/app/api/cwd/validate/route-1f18a3ac6ad460ce.js +0 -1
  288. package/.next/static/chunks/app/api/deepseek/balance/route-1f18a3ac6ad460ce.js +0 -1
  289. package/.next/static/chunks/app/api/default-cwd/route-1f18a3ac6ad460ce.js +0 -1
  290. package/.next/static/chunks/app/api/events/route-1f18a3ac6ad460ce.js +0 -1
  291. package/.next/static/chunks/app/api/features/route-1f18a3ac6ad460ce.js +0 -1
  292. package/.next/static/chunks/app/api/file-index/route-1f18a3ac6ad460ce.js +0 -1
  293. package/.next/static/chunks/app/api/files/[...path]/route-1f18a3ac6ad460ce.js +0 -1
  294. package/.next/static/chunks/app/api/git/diff/route-1f18a3ac6ad460ce.js +0 -1
  295. package/.next/static/chunks/app/api/git/push/route-1f18a3ac6ad460ce.js +0 -1
  296. package/.next/static/chunks/app/api/git/stash/route-1f18a3ac6ad460ce.js +0 -1
  297. package/.next/static/chunks/app/api/git/status/route-1f18a3ac6ad460ce.js +0 -1
  298. package/.next/static/chunks/app/api/home/route-1f18a3ac6ad460ce.js +0 -1
  299. package/.next/static/chunks/app/api/import/discover/route-1f18a3ac6ad460ce.js +0 -1
  300. package/.next/static/chunks/app/api/import/execute/route-1f18a3ac6ad460ce.js +0 -1
  301. package/.next/static/chunks/app/api/import/status/route-1f18a3ac6ad460ce.js +0 -1
  302. package/.next/static/chunks/app/api/logs/route-1f18a3ac6ad460ce.js +0 -1
  303. package/.next/static/chunks/app/api/mcp/restart/route-1f18a3ac6ad460ce.js +0 -1
  304. package/.next/static/chunks/app/api/mcp/route-1f18a3ac6ad460ce.js +0 -1
  305. package/.next/static/chunks/app/api/models/route-1f18a3ac6ad460ce.js +0 -1
  306. package/.next/static/chunks/app/api/models-config/builtin/route-1f18a3ac6ad460ce.js +0 -1
  307. package/.next/static/chunks/app/api/models-config/catalog/route-1f18a3ac6ad460ce.js +0 -1
  308. package/.next/static/chunks/app/api/models-config/discover/route-1f18a3ac6ad460ce.js +0 -1
  309. package/.next/static/chunks/app/api/models-config/route-1f18a3ac6ad460ce.js +0 -1
  310. package/.next/static/chunks/app/api/models-config/test/route-1f18a3ac6ad460ce.js +0 -1
  311. package/.next/static/chunks/app/api/modes/route-1f18a3ac6ad460ce.js +0 -1
  312. package/.next/static/chunks/app/api/pair/route-1f18a3ac6ad460ce.js +0 -1
  313. package/.next/static/chunks/app/api/plugins/check/route-1f18a3ac6ad460ce.js +0 -1
  314. package/.next/static/chunks/app/api/plugins/route-1f18a3ac6ad460ce.js +0 -1
  315. package/.next/static/chunks/app/api/project-aliases/route-1f18a3ac6ad460ce.js +0 -1
  316. package/.next/static/chunks/app/api/project-state/route-1f18a3ac6ad460ce.js +0 -1
  317. package/.next/static/chunks/app/api/project-trust/route-1f18a3ac6ad460ce.js +0 -1
  318. package/.next/static/chunks/app/api/projects/visibility/route-1f18a3ac6ad460ce.js +0 -1
  319. package/.next/static/chunks/app/api/proxy/route-1f18a3ac6ad460ce.js +0 -1
  320. package/.next/static/chunks/app/api/proxy/test/route-1f18a3ac6ad460ce.js +0 -1
  321. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-1f18a3ac6ad460ce.js +0 -1
  322. package/.next/static/chunks/app/api/sessions/[id]/context/route-1f18a3ac6ad460ce.js +0 -1
  323. package/.next/static/chunks/app/api/sessions/[id]/details/route-1f18a3ac6ad460ce.js +0 -1
  324. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-1f18a3ac6ad460ce.js +0 -1
  325. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/tool-result-image/route-1f18a3ac6ad460ce.js +0 -1
  326. package/.next/static/chunks/app/api/sessions/[id]/export/route-1f18a3ac6ad460ce.js +0 -1
  327. package/.next/static/chunks/app/api/sessions/[id]/queue-recovery/route-1f18a3ac6ad460ce.js +0 -1
  328. package/.next/static/chunks/app/api/sessions/[id]/route-1f18a3ac6ad460ce.js +0 -1
  329. package/.next/static/chunks/app/api/sessions/[id]/state/route-1f18a3ac6ad460ce.js +0 -1
  330. package/.next/static/chunks/app/api/sessions/route-1f18a3ac6ad460ce.js +0 -1
  331. package/.next/static/chunks/app/api/sessions/search/route-1f18a3ac6ad460ce.js +0 -1
  332. package/.next/static/chunks/app/api/settings/title-model/route-1f18a3ac6ad460ce.js +0 -1
  333. package/.next/static/chunks/app/api/skills/check/route-1f18a3ac6ad460ce.js +0 -1
  334. package/.next/static/chunks/app/api/skills/install/route-1f18a3ac6ad460ce.js +0 -1
  335. package/.next/static/chunks/app/api/skills/route-1f18a3ac6ad460ce.js +0 -1
  336. package/.next/static/chunks/app/api/skills/search/route-1f18a3ac6ad460ce.js +0 -1
  337. package/.next/static/chunks/app/api/skills/update/route-1f18a3ac6ad460ce.js +0 -1
  338. package/.next/static/chunks/app/api/snippets/[id]/route-1f18a3ac6ad460ce.js +0 -1
  339. package/.next/static/chunks/app/api/snippets/route-1f18a3ac6ad460ce.js +0 -1
  340. package/.next/static/chunks/app/api/subagents/[id]/route-1f18a3ac6ad460ce.js +0 -1
  341. package/.next/static/chunks/app/api/subagents/profiles/route-1f18a3ac6ad460ce.js +0 -1
  342. package/.next/static/chunks/app/api/subagents/settings/route-1f18a3ac6ad460ce.js +0 -1
  343. package/.next/static/chunks/app/api/tasks/[id]/[action]/route-1f18a3ac6ad460ce.js +0 -1
  344. package/.next/static/chunks/app/api/tasks/[id]/changed-files/route-1f18a3ac6ad460ce.js +0 -1
  345. package/.next/static/chunks/app/api/tasks/[id]/diff/route-1f18a3ac6ad460ce.js +0 -1
  346. package/.next/static/chunks/app/api/tasks/[id]/events/route-1f18a3ac6ad460ce.js +0 -1
  347. package/.next/static/chunks/app/api/tasks/[id]/route-1f18a3ac6ad460ce.js +0 -1
  348. package/.next/static/chunks/app/api/tasks/batch/route-1f18a3ac6ad460ce.js +0 -1
  349. package/.next/static/chunks/app/api/tasks/events/route-1f18a3ac6ad460ce.js +0 -1
  350. package/.next/static/chunks/app/api/tasks/route-1f18a3ac6ad460ce.js +0 -1
  351. package/.next/static/chunks/app/api/tasks/settings/route-1f18a3ac6ad460ce.js +0 -1
  352. package/.next/static/chunks/app/api/tasks/templates/route-1f18a3ac6ad460ce.js +0 -1
  353. package/.next/static/chunks/app/api/terminal/[id]/events/route-1f18a3ac6ad460ce.js +0 -1
  354. package/.next/static/chunks/app/api/terminal/[id]/route-1f18a3ac6ad460ce.js +0 -1
  355. package/.next/static/chunks/app/api/terminal/route-1f18a3ac6ad460ce.js +0 -1
  356. package/.next/static/chunks/app/api/themes/[name]/route-1f18a3ac6ad460ce.js +0 -1
  357. package/.next/static/chunks/app/api/themes/route-1f18a3ac6ad460ce.js +0 -1
  358. package/.next/static/chunks/app/api/tools/extension-tools/route-1f18a3ac6ad460ce.js +0 -1
  359. package/.next/static/chunks/app/api/tools/settings/route-1f18a3ac6ad460ce.js +0 -1
  360. package/.next/static/chunks/app/api/usage/route-1f18a3ac6ad460ce.js +0 -1
  361. package/.next/static/chunks/app/api/vision-config/route-1f18a3ac6ad460ce.js +0 -1
  362. package/.next/static/chunks/app/api/worktrees/route-1f18a3ac6ad460ce.js +0 -1
  363. package/.next/static/chunks/app/page-8395b621a827f00d.js +0 -206
  364. package/.next/static/chunks/next/dist/client/components/builtin/app-error-1f18a3ac6ad460ce.js +0 -1
  365. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-1f18a3ac6ad460ce.js +0 -1
  366. package/.next/static/chunks/next/dist/client/components/builtin/not-found-1f18a3ac6ad460ce.js +0 -1
  367. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-1f18a3ac6ad460ce.js +0 -1
  368. package/.next/static/css/cec93cc3229def39.css +0 -1
  369. package/.next/static/fwxgxkq48MSClqkLjyFF9/_buildManifest.js +0 -1
  370. /package/.next/server/app/api/{pair → web-auth}/route.js.nft.json +0 -0
  371. /package/.next/static/{fwxgxkq48MSClqkLjyFF9 → SG1lpxg7rrh2GYecN7CkV}/_ssgManifest.js +0 -0
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-webpack","duration":14224070,"timestamp":341010374325,"id":14,"parentId":1,"tags":{},"startTime":1789186254221,"traceId":"15a732a14c169ef0"},{"name":"run-typescript","duration":2896421,"timestamp":341024600808,"id":916,"parentId":1,"tags":{},"startTime":1789186268447,"traceId":"15a732a14c169ef0"},{"name":"static-check","duration":1517242,"timestamp":341027504688,"id":919,"parentId":1,"tags":{},"startTime":1789186271351,"traceId":"15a732a14c169ef0"},{"name":"static-generation","duration":2126140,"timestamp":341029124133,"id":1119,"parentId":1,"tags":{},"startTime":1789186272971,"traceId":"15a732a14c169ef0"},{"name":"collect-build-traces","duration":15386176,"timestamp":341029023068,"id":1116,"parentId":1,"tags":{},"startTime":1789186272870,"traceId":"15a732a14c169ef0"},{"name":"output-standalone","duration":1534014,"timestamp":341044412543,"id":1127,"parentId":1,"tags":{},"startTime":1789186288259,"traceId":"15a732a14c169ef0"},{"name":"telemetry-flush","duration":13,"timestamp":341045948085,"id":1130,"parentId":1,"tags":{},"startTime":1789186289795,"traceId":"15a732a14c169ef0"},{"name":"next-build","duration":36243669,"timestamp":341009704432,"id":1,"tags":{"buildMode":"default","version":"16.3.1","bundler":"webpack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1789186253551,"traceId":"15a732a14c169ef0"}]
1
+ [{"name":"run-webpack","duration":17130611,"timestamp":383014496749,"id":14,"parentId":1,"tags":{},"startTime":1789228258343,"traceId":"91ebc1c40ef0b6f8"},{"name":"run-typescript","duration":8156827,"timestamp":383031629256,"id":1204,"parentId":1,"tags":{},"startTime":1789228275475,"traceId":"91ebc1c40ef0b6f8"},{"name":"static-check","duration":1610656,"timestamp":383039794423,"id":1207,"parentId":1,"tags":{},"startTime":1789228283641,"traceId":"91ebc1c40ef0b6f8"},{"name":"static-generation","duration":2080932,"timestamp":383041508780,"id":1411,"parentId":1,"tags":{},"startTime":1789228285355,"traceId":"91ebc1c40ef0b6f8"},{"name":"collect-build-traces","duration":15904783,"timestamp":383041406371,"id":1408,"parentId":1,"tags":{},"startTime":1789228285253,"traceId":"91ebc1c40ef0b6f8"},{"name":"output-standalone","duration":1608776,"timestamp":383057313046,"id":1419,"parentId":1,"tags":{},"startTime":1789228301159,"traceId":"91ebc1c40ef0b6f8"},{"name":"telemetry-flush","duration":14,"timestamp":383058923629,"id":1422,"parentId":1,"tags":{},"startTime":1789228302770,"traceId":"91ebc1c40ef0b6f8"},{"name":"next-build","duration":44961555,"timestamp":383013962091,"id":1,"tags":{"buildMode":"default","version":"16.3.1","bundler":"webpack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1789228257808,"traceId":"91ebc1c40ef0b6f8"}]
@@ -1,10 +1,10 @@
1
- // File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/deepseek/balance/route.ts
2
- import * as entry from '../../../../../../app/api/deepseek/balance/route.js'
1
+ // File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/agent/[id]/lease/route.ts
2
+ import * as entry from '../../../../../../../app/api/agent/[id]/lease/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
5
  import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
- type TEntry = typeof import('../../../../../../app/api/deepseek/balance/route.js')
7
+ type TEntry = typeof import('../../../../../../../app/api/agent/[id]/lease/route.js')
8
8
 
9
9
  type SegmentParams<T extends Object = any> = T extends Record<string, any>
10
10
  ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
@@ -0,0 +1,353 @@
1
+ // File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/provider-usage/query/route.ts
2
+ import * as entry from '../../../../../../app/api/provider-usage/query/route.js'
3
+ import type { NextRequest } from 'next/server.js'
4
+
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
+
7
+ type TEntry = typeof import('../../../../../../app/api/provider-usage/query/route.js')
8
+
9
+ type SegmentParams<T extends Object = any> = T extends Record<string, any>
10
+ ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
11
+ : T
12
+
13
+ // Check that the entry is a valid entry
14
+ checkFields<Diff<{
15
+ GET?: Function
16
+ HEAD?: Function
17
+ OPTIONS?: Function
18
+ POST?: Function
19
+ PUT?: Function
20
+ DELETE?: Function
21
+ PATCH?: Function
22
+ config?: {}
23
+ generateStaticParams?: Function
24
+ instant?: InstantConfigForTypeCheckInternal
25
+ prefetch?: Prefetch
26
+ unstable_dynamicStaleTime?: number
27
+ revalidate?: RevalidateRange<TEntry> | false
28
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
29
+ dynamicParams?: boolean
30
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
31
+ /** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
32
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
33
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
34
+ maxDuration?: number
35
+
36
+ }, TEntry, ''>>()
37
+
38
+ type RouteContext = { params: Promise<SegmentParams> }
39
+ // Check the prop type of the entry function
40
+ if ('GET' in entry) {
41
+ checkFields<
42
+ Diff<
43
+ ParamCheck<Request | NextRequest>,
44
+ {
45
+ __tag__: 'GET'
46
+ __param_position__: 'first'
47
+ __param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
48
+ },
49
+ 'GET'
50
+ >
51
+ >()
52
+ checkFields<
53
+ Diff<
54
+ ParamCheck<RouteContext>,
55
+ {
56
+ __tag__: 'GET'
57
+ __param_position__: 'second'
58
+ __param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
59
+ },
60
+ 'GET'
61
+ >
62
+ >()
63
+
64
+ checkFields<
65
+ Diff<
66
+ {
67
+ __tag__: 'GET',
68
+ __return_type__: Response | void | never | Promise<Response | void | never>
69
+ },
70
+ {
71
+ __tag__: 'GET',
72
+ __return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
73
+ },
74
+ 'GET'
75
+ >
76
+ >()
77
+ }
78
+ // Check the prop type of the entry function
79
+ if ('HEAD' in entry) {
80
+ checkFields<
81
+ Diff<
82
+ ParamCheck<Request | NextRequest>,
83
+ {
84
+ __tag__: 'HEAD'
85
+ __param_position__: 'first'
86
+ __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
87
+ },
88
+ 'HEAD'
89
+ >
90
+ >()
91
+ checkFields<
92
+ Diff<
93
+ ParamCheck<RouteContext>,
94
+ {
95
+ __tag__: 'HEAD'
96
+ __param_position__: 'second'
97
+ __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
98
+ },
99
+ 'HEAD'
100
+ >
101
+ >()
102
+
103
+ checkFields<
104
+ Diff<
105
+ {
106
+ __tag__: 'HEAD',
107
+ __return_type__: Response | void | never | Promise<Response | void | never>
108
+ },
109
+ {
110
+ __tag__: 'HEAD',
111
+ __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
112
+ },
113
+ 'HEAD'
114
+ >
115
+ >()
116
+ }
117
+ // Check the prop type of the entry function
118
+ if ('OPTIONS' in entry) {
119
+ checkFields<
120
+ Diff<
121
+ ParamCheck<Request | NextRequest>,
122
+ {
123
+ __tag__: 'OPTIONS'
124
+ __param_position__: 'first'
125
+ __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
126
+ },
127
+ 'OPTIONS'
128
+ >
129
+ >()
130
+ checkFields<
131
+ Diff<
132
+ ParamCheck<RouteContext>,
133
+ {
134
+ __tag__: 'OPTIONS'
135
+ __param_position__: 'second'
136
+ __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
137
+ },
138
+ 'OPTIONS'
139
+ >
140
+ >()
141
+
142
+ checkFields<
143
+ Diff<
144
+ {
145
+ __tag__: 'OPTIONS',
146
+ __return_type__: Response | void | never | Promise<Response | void | never>
147
+ },
148
+ {
149
+ __tag__: 'OPTIONS',
150
+ __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
151
+ },
152
+ 'OPTIONS'
153
+ >
154
+ >()
155
+ }
156
+ // Check the prop type of the entry function
157
+ if ('POST' in entry) {
158
+ checkFields<
159
+ Diff<
160
+ ParamCheck<Request | NextRequest>,
161
+ {
162
+ __tag__: 'POST'
163
+ __param_position__: 'first'
164
+ __param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
165
+ },
166
+ 'POST'
167
+ >
168
+ >()
169
+ checkFields<
170
+ Diff<
171
+ ParamCheck<RouteContext>,
172
+ {
173
+ __tag__: 'POST'
174
+ __param_position__: 'second'
175
+ __param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
176
+ },
177
+ 'POST'
178
+ >
179
+ >()
180
+
181
+ checkFields<
182
+ Diff<
183
+ {
184
+ __tag__: 'POST',
185
+ __return_type__: Response | void | never | Promise<Response | void | never>
186
+ },
187
+ {
188
+ __tag__: 'POST',
189
+ __return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
190
+ },
191
+ 'POST'
192
+ >
193
+ >()
194
+ }
195
+ // Check the prop type of the entry function
196
+ if ('PUT' in entry) {
197
+ checkFields<
198
+ Diff<
199
+ ParamCheck<Request | NextRequest>,
200
+ {
201
+ __tag__: 'PUT'
202
+ __param_position__: 'first'
203
+ __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
204
+ },
205
+ 'PUT'
206
+ >
207
+ >()
208
+ checkFields<
209
+ Diff<
210
+ ParamCheck<RouteContext>,
211
+ {
212
+ __tag__: 'PUT'
213
+ __param_position__: 'second'
214
+ __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
215
+ },
216
+ 'PUT'
217
+ >
218
+ >()
219
+
220
+ checkFields<
221
+ Diff<
222
+ {
223
+ __tag__: 'PUT',
224
+ __return_type__: Response | void | never | Promise<Response | void | never>
225
+ },
226
+ {
227
+ __tag__: 'PUT',
228
+ __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
229
+ },
230
+ 'PUT'
231
+ >
232
+ >()
233
+ }
234
+ // Check the prop type of the entry function
235
+ if ('DELETE' in entry) {
236
+ checkFields<
237
+ Diff<
238
+ ParamCheck<Request | NextRequest>,
239
+ {
240
+ __tag__: 'DELETE'
241
+ __param_position__: 'first'
242
+ __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
243
+ },
244
+ 'DELETE'
245
+ >
246
+ >()
247
+ checkFields<
248
+ Diff<
249
+ ParamCheck<RouteContext>,
250
+ {
251
+ __tag__: 'DELETE'
252
+ __param_position__: 'second'
253
+ __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
254
+ },
255
+ 'DELETE'
256
+ >
257
+ >()
258
+
259
+ checkFields<
260
+ Diff<
261
+ {
262
+ __tag__: 'DELETE',
263
+ __return_type__: Response | void | never | Promise<Response | void | never>
264
+ },
265
+ {
266
+ __tag__: 'DELETE',
267
+ __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
268
+ },
269
+ 'DELETE'
270
+ >
271
+ >()
272
+ }
273
+ // Check the prop type of the entry function
274
+ if ('PATCH' in entry) {
275
+ checkFields<
276
+ Diff<
277
+ ParamCheck<Request | NextRequest>,
278
+ {
279
+ __tag__: 'PATCH'
280
+ __param_position__: 'first'
281
+ __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
282
+ },
283
+ 'PATCH'
284
+ >
285
+ >()
286
+ checkFields<
287
+ Diff<
288
+ ParamCheck<RouteContext>,
289
+ {
290
+ __tag__: 'PATCH'
291
+ __param_position__: 'second'
292
+ __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
293
+ },
294
+ 'PATCH'
295
+ >
296
+ >()
297
+
298
+ checkFields<
299
+ Diff<
300
+ {
301
+ __tag__: 'PATCH',
302
+ __return_type__: Response | void | never | Promise<Response | void | never>
303
+ },
304
+ {
305
+ __tag__: 'PATCH',
306
+ __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
307
+ },
308
+ 'PATCH'
309
+ >
310
+ >()
311
+ }
312
+
313
+ // Check the arguments and return type of the generateStaticParams function
314
+ if ('generateStaticParams' in entry) {
315
+ checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
316
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
317
+ }
318
+
319
+ export interface PageProps {
320
+ params?: Promise<SegmentParams>
321
+ searchParams?: Promise<any>
322
+ }
323
+ export interface LayoutProps {
324
+ children?: React.ReactNode
325
+
326
+ params?: Promise<SegmentParams>
327
+ }
328
+
329
+ // =============
330
+ // Utility types
331
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
332
+
333
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
334
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
335
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
336
+
337
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
338
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
339
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
340
+
341
+ type ParamCheck<T> = {
342
+ __tag__: string
343
+ __param_position__: string
344
+ __param_type__: T
345
+ }
346
+
347
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
348
+
349
+ // https://github.com/sindresorhus/type-fest
350
+ type Numeric = number | bigint
351
+ type Zero = 0 | 0n
352
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
353
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
@@ -1,10 +1,10 @@
1
- // File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/pair/route.ts
2
- import * as entry from '../../../../../app/api/pair/route.js'
1
+ // File: /Volumes/1T 原装/项目研发/pi-web-QT/app/api/web-auth/route.ts
2
+ import * as entry from '../../../../../app/api/web-auth/route.js'
3
3
  import type { NextRequest } from 'next/server.js'
4
4
 
5
5
  import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
6
 
7
- type TEntry = typeof import('../../../../../app/api/pair/route.js')
7
+ type TEntry = typeof import('../../../../../app/api/web-auth/route.js')
8
8
 
9
9
  type SegmentParams<T extends Object = any> = T extends Record<string, any>
10
10
  ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
@@ -0,0 +1,89 @@
1
+ // File: /Volumes/1T 原装/项目研发/pi-web-QT/app/login/page.tsx
2
+ import * as entry from '../../../../app/login/page.js'
3
+ import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
4
+
5
+ import type { InstantConfigForTypeCheckInternal, Prefetch } from 'next/dist/build/segment-config/app/app-segment-config.js'
6
+
7
+ type TEntry = typeof import('../../../../app/login/page.js')
8
+
9
+ type SegmentParams<T extends Object = any> = T extends Record<string, any>
10
+ ? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
11
+ : T
12
+
13
+ // Check that the entry is a valid entry
14
+ checkFields<Diff<{
15
+ default: Function
16
+ config?: {}
17
+ generateStaticParams?: Function
18
+ instant?: InstantConfigForTypeCheckInternal
19
+ prefetch?: Prefetch
20
+ unstable_dynamicStaleTime?: number
21
+ revalidate?: RevalidateRange<TEntry> | false
22
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
23
+ dynamicParams?: boolean
24
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
25
+ /** @deprecated The `preferredRegion` config is deprecated. Remove this export. */
26
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
27
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
28
+ maxDuration?: number
29
+
30
+ metadata?: any
31
+ generateMetadata?: Function
32
+ viewport?: any
33
+ generateViewport?: Function
34
+
35
+ }, TEntry, ''>>()
36
+
37
+
38
+ // Check the prop type of the entry function
39
+ checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
40
+
41
+ // Check the arguments and return type of the generateMetadata function
42
+ if ('generateMetadata' in entry) {
43
+ checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
44
+ checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
45
+ }
46
+
47
+ // Check the arguments and return type of the generateViewport function
48
+ if ('generateViewport' in entry) {
49
+ checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
50
+ checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
51
+ }
52
+
53
+ // Check the arguments and return type of the generateStaticParams function
54
+ if ('generateStaticParams' in entry) {
55
+ checkFields<Diff<{ params: SegmentParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
56
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
57
+ }
58
+
59
+ export interface PageProps {
60
+ params?: Promise<SegmentParams>
61
+ searchParams?: Promise<any>
62
+ }
63
+ export interface LayoutProps {
64
+ children?: React.ReactNode
65
+
66
+ params?: Promise<SegmentParams>
67
+ }
68
+
69
+ // =============
70
+ // Utility types
71
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
72
+
73
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
74
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
75
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
76
+
77
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
78
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
79
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
80
+
81
+
82
+
83
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
84
+
85
+ // https://github.com/sindresorhus/type-fest
86
+ type Numeric = number | bigint
87
+ type Zero = 0 | 0n
88
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
89
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
@@ -1,8 +1,8 @@
1
1
  // This file is generated automatically by Next.js
2
2
  // Do not edit this file manually
3
3
 
4
- type AppRoutes = "/"
5
- type AppRouteHandlerRoutes = "/api/agent/[id]" | "/api/agent/[id]/bash-output" | "/api/agent/[id]/events" | "/api/agent/new" | "/api/agent/running" | "/api/agent/running/events" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/combined" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/backup/export" | "/api/backup/import" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/deepseek/balance" | "/api/default-cwd" | "/api/events" | "/api/features" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/push" | "/api/git/stash" | "/api/git/status" | "/api/home" | "/api/import/discover" | "/api/import/execute" | "/api/import/status" | "/api/logs" | "/api/mcp" | "/api/mcp/restart" | "/api/models" | "/api/models-config" | "/api/models-config/builtin" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/modes" | "/api/pair" | "/api/plugins" | "/api/plugins/check" | "/api/project-aliases" | "/api/project-state" | "/api/project-trust" | "/api/projects/visibility" | "/api/proxy" | "/api/proxy/test" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/details" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/queue-recovery" | "/api/sessions/[id]/state" | "/api/sessions/search" | "/api/settings/title-model" | "/api/skills" | "/api/skills/check" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/snippets" | "/api/snippets/[id]" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/tasks" | "/api/tasks/[id]" | "/api/tasks/[id]/[action]" | "/api/tasks/[id]/changed-files" | "/api/tasks/[id]/diff" | "/api/tasks/[id]/events" | "/api/tasks/batch" | "/api/tasks/events" | "/api/tasks/settings" | "/api/tasks/templates" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/themes" | "/api/themes/[name]" | "/api/tools/extension-tools" | "/api/tools/settings" | "/api/usage" | "/api/vision-config" | "/api/worktrees"
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/new" | "/api/agent/running" | "/api/agent/running/events" | "/api/app-update" | "/api/auth/api-key/[provider]" | "/api/auth/combined" | "/api/auth/login/[provider]" | "/api/auth/logout/[provider]" | "/api/auth/providers" | "/api/backup/export" | "/api/backup/import" | "/api/cwd/browse" | "/api/cwd/validate" | "/api/default-cwd" | "/api/events" | "/api/features" | "/api/file-index" | "/api/files/[...path]" | "/api/git/diff" | "/api/git/push" | "/api/git/stash" | "/api/git/status" | "/api/home" | "/api/import/discover" | "/api/import/execute" | "/api/import/status" | "/api/logs" | "/api/mcp" | "/api/mcp/restart" | "/api/models" | "/api/models-config" | "/api/models-config/builtin" | "/api/models-config/catalog" | "/api/models-config/discover" | "/api/models-config/test" | "/api/modes" | "/api/plugins" | "/api/plugins/check" | "/api/project-aliases" | "/api/project-state" | "/api/project-trust" | "/api/projects/visibility" | "/api/provider-usage/query" | "/api/proxy" | "/api/proxy/test" | "/api/sessions" | "/api/sessions/[id]" | "/api/sessions/[id]/auto-name" | "/api/sessions/[id]/context" | "/api/sessions/[id]/details" | "/api/sessions/[id]/entries/[entryId]/thinking" | "/api/sessions/[id]/entries/[entryId]/tool-result-image" | "/api/sessions/[id]/export" | "/api/sessions/[id]/queue-recovery" | "/api/sessions/[id]/state" | "/api/sessions/search" | "/api/settings/title-model" | "/api/skills" | "/api/skills/check" | "/api/skills/install" | "/api/skills/search" | "/api/skills/update" | "/api/snippets" | "/api/snippets/[id]" | "/api/subagents/[id]" | "/api/subagents/profiles" | "/api/subagents/settings" | "/api/tasks" | "/api/tasks/[id]" | "/api/tasks/[id]/[action]" | "/api/tasks/[id]/changed-files" | "/api/tasks/[id]/diff" | "/api/tasks/[id]/events" | "/api/tasks/batch" | "/api/tasks/events" | "/api/tasks/settings" | "/api/tasks/templates" | "/api/terminal" | "/api/terminal/[id]" | "/api/terminal/[id]/events" | "/api/themes" | "/api/themes/[name]" | "/api/tools/extension-tools" | "/api/tools/settings" | "/api/usage" | "/api/vision-config" | "/api/web-auth" | "/api/worktrees"
6
6
  type PageRoutes = never
7
7
  type LayoutRoutes = "/"
8
8
  type RedirectRoutes = never
@@ -15,6 +15,7 @@ interface ParamMap {
15
15
  "/api/agent/[id]": { "id": string; }
16
16
  "/api/agent/[id]/bash-output": { "id": string; }
17
17
  "/api/agent/[id]/events": { "id": string; }
18
+ "/api/agent/[id]/lease": { "id": string; }
18
19
  "/api/agent/new": {}
19
20
  "/api/agent/running": {}
20
21
  "/api/agent/running/events": {}
@@ -28,7 +29,6 @@ interface ParamMap {
28
29
  "/api/backup/import": {}
29
30
  "/api/cwd/browse": {}
30
31
  "/api/cwd/validate": {}
31
- "/api/deepseek/balance": {}
32
32
  "/api/default-cwd": {}
33
33
  "/api/events": {}
34
34
  "/api/features": {}
@@ -52,13 +52,13 @@ interface ParamMap {
52
52
  "/api/models-config/discover": {}
53
53
  "/api/models-config/test": {}
54
54
  "/api/modes": {}
55
- "/api/pair": {}
56
55
  "/api/plugins": {}
57
56
  "/api/plugins/check": {}
58
57
  "/api/project-aliases": {}
59
58
  "/api/project-state": {}
60
59
  "/api/project-trust": {}
61
60
  "/api/projects/visibility": {}
61
+ "/api/provider-usage/query": {}
62
62
  "/api/proxy": {}
63
63
  "/api/proxy/test": {}
64
64
  "/api/sessions": {}
@@ -102,7 +102,9 @@ interface ParamMap {
102
102
  "/api/tools/settings": {}
103
103
  "/api/usage": {}
104
104
  "/api/vision-config": {}
105
+ "/api/web-auth": {}
105
106
  "/api/worktrees": {}
107
+ "/login": {}
106
108
  }
107
109
 
108
110
 
@@ -47,6 +47,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
47
47
  }
48
48
 
49
49
 
50
+ // Validate ../../app/login/page.tsx
51
+ {
52
+ type __IsExpected<Specific extends AppPageConfig<"/login">> = Specific
53
+ const handler = {} as typeof import("../../app/login/page.js")
54
+ type __Check = __IsExpected<typeof handler>
55
+ // @ts-ignore
56
+ type __Unused = __Check
57
+ }
58
+
50
59
  // Validate ../../app/page.tsx
51
60
  {
52
61
  type __IsExpected<Specific extends AppPageConfig<"/">> = Specific
@@ -74,6 +83,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
74
83
  type __Unused = __Check
75
84
  }
76
85
 
86
+ // Validate ../../app/api/agent/[id]/lease/route.ts
87
+ {
88
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/agent/[id]/lease">> = Specific
89
+ const handler = {} as typeof import("../../app/api/agent/[id]/lease/route.js")
90
+ type __Check = __IsExpected<typeof handler>
91
+ // @ts-ignore
92
+ type __Unused = __Check
93
+ }
94
+
77
95
  // Validate ../../app/api/agent/[id]/route.ts
78
96
  {
79
97
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/agent/[id]">> = Specific
@@ -200,15 +218,6 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
200
218
  type __Unused = __Check
201
219
  }
202
220
 
203
- // Validate ../../app/api/deepseek/balance/route.ts
204
- {
205
- type __IsExpected<Specific extends RouteHandlerConfig<"/api/deepseek/balance">> = Specific
206
- const handler = {} as typeof import("../../app/api/deepseek/balance/route.js")
207
- type __Check = __IsExpected<typeof handler>
208
- // @ts-ignore
209
- type __Unused = __Check
210
- }
211
-
212
221
  // Validate ../../app/api/default-cwd/route.ts
213
222
  {
214
223
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/default-cwd">> = Specific
@@ -416,15 +425,6 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
416
425
  type __Unused = __Check
417
426
  }
418
427
 
419
- // Validate ../../app/api/pair/route.ts
420
- {
421
- type __IsExpected<Specific extends RouteHandlerConfig<"/api/pair">> = Specific
422
- const handler = {} as typeof import("../../app/api/pair/route.js")
423
- type __Check = __IsExpected<typeof handler>
424
- // @ts-ignore
425
- type __Unused = __Check
426
- }
427
-
428
428
  // Validate ../../app/api/plugins/check/route.ts
429
429
  {
430
430
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/plugins/check">> = Specific
@@ -479,6 +479,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
479
479
  type __Unused = __Check
480
480
  }
481
481
 
482
+ // Validate ../../app/api/provider-usage/query/route.ts
483
+ {
484
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/provider-usage/query">> = Specific
485
+ const handler = {} as typeof import("../../app/api/provider-usage/query/route.js")
486
+ type __Check = __IsExpected<typeof handler>
487
+ // @ts-ignore
488
+ type __Unused = __Check
489
+ }
490
+
482
491
  // Validate ../../app/api/proxy/route.ts
483
492
  {
484
493
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/proxy">> = Specific
@@ -866,6 +875,15 @@ type RouteHandlerConfig<Route extends AppRouteHandlerRoutes = AppRouteHandlerRou
866
875
  type __Unused = __Check
867
876
  }
868
877
 
878
+ // Validate ../../app/api/web-auth/route.ts
879
+ {
880
+ type __IsExpected<Specific extends RouteHandlerConfig<"/api/web-auth">> = Specific
881
+ const handler = {} as typeof import("../../app/api/web-auth/route.js")
882
+ type __Check = __IsExpected<typeof handler>
883
+ // @ts-ignore
884
+ type __Unused = __Check
885
+ }
886
+
869
887
  // Validate ../../app/api/worktrees/route.ts
870
888
  {
871
889
  type __IsExpected<Specific extends RouteHandlerConfig<"/api/worktrees">> = Specific
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qt4798/pi-web",
3
- "version": "0.17.14",
3
+ "version": "0.18.0",
4
4
  "description": "Web workspace for the pi coding agent",
5
5
  "homepage": "https://github.com/t479842598/pi-web-QT#readme",
6
6
  "repository": {