@hilbras/omnihilbras 2.9.17 → 2.9.18

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 (802) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +26 -25
  3. package/app/.next-cli-build/build-manifest.json +3 -3
  4. package/app/.next-cli-build/prerender-manifest.json +1 -1
  5. package/app/.next-cli-build/react-loadable-manifest.json +1 -1
  6. package/app/.next-cli-build/routes-manifest.json +6 -0
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/observability/page.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/observability/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  36. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  37. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
  38. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  39. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  40. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  41. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +2 -2
  42. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  43. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
  44. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  45. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
  46. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  47. package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/workspaces/page.js +1 -1
  48. package/app/.next-cli-build/server/app/(dashboard)/dashboard/settings/workspaces/page_client-reference-manifest.js +1 -1
  49. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
  50. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  51. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
  52. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  53. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  54. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  55. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
  56. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  57. package/app/.next-cli-build/server/app/_global-error/page.js +2 -2
  58. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  59. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  60. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  61. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  62. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  63. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  64. package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
  65. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  66. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  67. package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
  68. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
  69. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  70. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  71. package/app/.next-cli-build/server/app/api/auth/login/route.js +1 -1
  72. package/app/.next-cli-build/server/app/api/auth/logout/route.js +1 -1
  73. package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js +1 -1
  74. package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js +1 -1
  75. package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js +1 -1
  76. package/app/.next-cli-build/server/app/api/auth/reset-password/route.js +1 -1
  77. package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js +1 -1
  78. package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js +1 -1
  79. package/app/.next-cli-build/server/app/api/auth/saml/start/route.js +1 -1
  80. package/app/.next-cli-build/server/app/api/auth/saml/test/route.js +1 -1
  81. package/app/.next-cli-build/server/app/api/auth/status/route.js +1 -1
  82. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +2 -2
  83. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
  84. package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js +1 -1
  85. package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +1 -1
  86. package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +1 -1
  87. package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +1 -1
  88. package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js +1 -1
  89. package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js +1 -1
  90. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +2 -2
  91. package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
  92. package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
  93. package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
  94. package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +1 -1
  95. package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +2 -2
  96. package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +2 -2
  97. package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
  98. package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +1 -1
  99. package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js +2 -2
  100. package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
  101. package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
  102. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  103. package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
  104. package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +1 -1
  105. package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
  106. package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
  107. package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +2 -2
  108. package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
  109. package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
  110. package/app/.next-cli-build/server/app/api/combos/route.js +1 -1
  111. package/app/.next-cli-build/server/app/api/headroom/extras/route.js +1 -1
  112. package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js +1 -1
  113. package/app/.next-cli-build/server/app/api/headroom/restart/route.js +1 -1
  114. package/app/.next-cli-build/server/app/api/headroom/start/route.js +1 -1
  115. package/app/.next-cli-build/server/app/api/headroom/status/route.js +1 -1
  116. package/app/.next-cli-build/server/app/api/headroom/stop/route.js +1 -1
  117. package/app/.next-cli-build/server/app/api/health/route.js +1 -1
  118. package/app/.next-cli-build/server/app/api/init/route.js +1 -1
  119. package/app/.next-cli-build/server/app/api/keys/[id]/route.js +1 -1
  120. package/app/.next-cli-build/server/app/api/keys/route.js +1 -1
  121. package/app/.next-cli-build/server/app/api/locale/route.js +1 -1
  122. package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js +2 -2
  123. package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js +2 -2
  124. package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js +1 -1
  125. package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
  126. package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js +1 -1
  127. package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js +1 -1
  128. package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
  129. package/app/.next-cli-build/server/app/api/models/alias/route.js +1 -1
  130. package/app/.next-cli-build/server/app/api/models/chat/route.js +1 -1
  131. package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
  132. package/app/.next-cli-build/server/app/api/models/disabled/route.js +1 -1
  133. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  134. package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
  135. package/app/.next-cli-build/server/app/api/models/test-batch/route.js +2 -2
  136. package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
  137. package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
  138. package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js +1 -1
  139. package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
  140. package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js +1 -1
  141. package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js +1 -1
  142. package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js +1 -1
  143. package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
  144. package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js +1 -1
  145. package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
  146. package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js +1 -1
  147. package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
  148. package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
  149. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js +1 -1
  150. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
  151. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js +1 -1
  152. package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js +1 -1
  153. package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js +2 -2
  154. package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
  155. package/app/.next-cli-build/server/app/api/observability/export/route.js +1 -1
  156. package/app/.next-cli-build/server/app/api/observability/log/[id]/route.js +1 -1
  157. package/app/.next-cli-build/server/app/api/observability/logs/route.js +1 -1
  158. package/app/.next-cli-build/server/app/api/observability/settings/route.js +1 -1
  159. package/app/.next-cli-build/server/app/api/observability/stats/route.js +1 -1
  160. package/app/.next-cli-build/server/app/api/pricing/route.js +1 -1
  161. package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js +1 -1
  162. package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
  163. package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js +1 -1
  164. package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
  165. package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
  166. package/app/.next-cli-build/server/app/api/providers/[id]/refresh/route.js +1 -1
  167. package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
  168. package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
  169. package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
  170. package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
  171. package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js +1 -1
  172. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  173. package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js +1 -1
  174. package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
  175. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  176. package/app/.next-cli-build/server/app/api/providers/web-session/[id]/route.js +1 -1
  177. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js +1 -1
  178. package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js +1 -1
  179. package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js +2 -2
  180. package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js +2 -2
  181. package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js +2 -2
  182. package/app/.next-cli-build/server/app/api/proxy-pools/route.js +1 -1
  183. package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js +2 -2
  184. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  185. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  186. package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js +2 -2
  187. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  188. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  189. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  190. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  191. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  192. package/app/.next-cli-build/server/app/api/settings/database/route.js +1 -1
  193. package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js +1 -1
  194. package/app/.next-cli-build/server/app/api/settings/require-login/route.js +1 -1
  195. package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
  196. package/app/.next-cli-build/server/app/api/shutdown/route.js +1 -1
  197. package/app/.next-cli-build/server/app/api/skills/[id]/route.js +1 -1
  198. package/app/.next-cli-build/server/app/api/skills/install/route.js +1 -1
  199. package/app/.next-cli-build/server/app/api/skills/mine/route.js +1 -1
  200. package/app/.next-cli-build/server/app/api/skills/route.js +1 -1
  201. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js +1 -0
  202. package/app/.next-cli-build/server/app/api/token-saver/stats/route.js.nft.json +1 -0
  203. package/app/.next-cli-build/server/app/api/token-saver/stats/route_client-reference-manifest.js +1 -0
  204. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  205. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +2 -2
  206. package/app/.next-cli-build/server/app/api/translator/load/route.js +1 -1
  207. package/app/.next-cli-build/server/app/api/translator/save/route.js +1 -1
  208. package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
  209. package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
  210. package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
  211. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  212. package/app/.next-cli-build/server/app/api/tunnel/status/route.js +1 -1
  213. package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js +1 -1
  214. package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
  215. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  216. package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +1 -1
  217. package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
  218. package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
  219. package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
  220. package/app/.next-cli-build/server/app/api/usage/chart/route.js +1 -1
  221. package/app/.next-cli-build/server/app/api/usage/logs/route.js +1 -1
  222. package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
  223. package/app/.next-cli-build/server/app/api/usage/rate-limit/route.js +1 -1
  224. package/app/.next-cli-build/server/app/api/usage/request-details/route.js +1 -1
  225. package/app/.next-cli-build/server/app/api/usage/request-logs/route.js +1 -1
  226. package/app/.next-cli-build/server/app/api/usage/stats/route.js +1 -1
  227. package/app/.next-cli-build/server/app/api/usage/stream/route.js +1 -1
  228. package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
  229. package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
  230. package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +1 -1
  231. package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
  232. package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
  233. package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
  234. package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +1 -1
  235. package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js +1 -1
  236. package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
  237. package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
  238. package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
  239. package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
  240. package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
  241. package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
  242. package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
  243. package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
  244. package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
  245. package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
  246. package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
  247. package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
  248. package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
  249. package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
  250. package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
  251. package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
  252. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  253. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  254. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  255. package/app/.next-cli-build/server/app/api/workspaces/[id]/route.js +1 -1
  256. package/app/.next-cli-build/server/app/api/workspaces/route.js +1 -1
  257. package/app/.next-cli-build/server/app/callback/page.js +1 -1
  258. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  259. package/app/.next-cli-build/server/app/callback.html +1 -1
  260. package/app/.next-cli-build/server/app/callback.rsc +3 -3
  261. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
  262. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  263. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
  264. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +2 -2
  265. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
  266. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
  267. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
  268. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  269. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +2 -2
  270. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +3 -3
  271. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +3 -3
  272. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +3 -3
  273. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  274. package/app/.next-cli-build/server/app/dashboard/combos.html +2 -2
  275. package/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
  276. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
  277. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
  278. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  279. package/app/.next-cli-build/server/app/dashboard/endpoint.html +2 -2
  280. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
  281. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
  282. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
  283. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  284. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +2 -2
  285. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
  286. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
  287. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
  288. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  289. package/app/.next-cli-build/server/app/dashboard/mitm.html +2 -2
  290. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +3 -3
  291. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +3 -3
  292. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +3 -3
  293. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  294. package/app/.next-cli-build/server/app/dashboard/observability.html +1 -1
  295. package/app/.next-cli-build/server/app/dashboard/observability.rsc +3 -3
  296. package/app/.next-cli-build/server/app/dashboard/observability.segments/!KGRhc2hib2FyZCk/dashboard/observability/__PAGE__.segment.rsc +3 -3
  297. package/app/.next-cli-build/server/app/dashboard/observability.segments/_full.segment.rsc +3 -3
  298. package/app/.next-cli-build/server/app/dashboard/observability.segments/_tree.segment.rsc +2 -2
  299. package/app/.next-cli-build/server/app/dashboard/profile.html +2 -2
  300. package/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
  301. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
  302. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
  303. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  304. package/app/.next-cli-build/server/app/dashboard/providers/new.html +2 -2
  305. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
  306. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
  307. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
  308. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  309. package/app/.next-cli-build/server/app/dashboard/providers.html +2 -2
  310. package/app/.next-cli-build/server/app/dashboard/providers.rsc +3 -3
  311. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +3 -3
  312. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +3 -3
  313. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  314. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +2 -2
  315. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +3 -3
  316. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +3 -3
  317. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +3 -3
  318. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  319. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +2 -2
  320. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
  321. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
  322. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
  323. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  324. package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
  325. package/app/.next-cli-build/server/app/dashboard/quota.rsc +3 -3
  326. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +3 -3
  327. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +3 -3
  328. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  329. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  330. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  331. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  332. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
  333. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
  334. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  335. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
  336. package/app/.next-cli-build/server/app/dashboard/settings/workspaces.html +2 -2
  337. package/app/.next-cli-build/server/app/dashboard/settings/workspaces.rsc +3 -3
  338. package/app/.next-cli-build/server/app/dashboard/settings/workspaces.segments/!KGRhc2hib2FyZCk/dashboard/settings/workspaces/__PAGE__.segment.rsc +3 -3
  339. package/app/.next-cli-build/server/app/dashboard/settings/workspaces.segments/_full.segment.rsc +3 -3
  340. package/app/.next-cli-build/server/app/dashboard/settings/workspaces.segments/_tree.segment.rsc +2 -2
  341. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  342. package/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
  343. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
  344. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
  345. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  346. package/app/.next-cli-build/server/app/dashboard/token-saver.html +2 -2
  347. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +4 -4
  348. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +4 -4
  349. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +4 -4
  350. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  351. package/app/.next-cli-build/server/app/dashboard/translator.html +2 -2
  352. package/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
  353. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
  354. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
  355. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  356. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  357. package/app/.next-cli-build/server/app/dashboard/usage.rsc +3 -3
  358. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +3 -3
  359. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +3 -3
  360. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  361. package/app/.next-cli-build/server/app/dashboard.html +2 -2
  362. package/app/.next-cli-build/server/app/dashboard.rsc +3 -3
  363. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
  364. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
  365. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  366. package/app/.next-cli-build/server/app/favicon.ico/route.js +1 -1
  367. package/app/.next-cli-build/server/app/index.html +1 -1
  368. package/app/.next-cli-build/server/app/index.rsc +3 -3
  369. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  370. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
  371. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  372. package/app/.next-cli-build/server/app/landing/page.js +2 -2
  373. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  374. package/app/.next-cli-build/server/app/landing.html +1 -1
  375. package/app/.next-cli-build/server/app/landing.rsc +3 -3
  376. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
  377. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  378. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
  379. package/app/.next-cli-build/server/app/login/page.js +1 -1
  380. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  381. package/app/.next-cli-build/server/app/login.html +1 -1
  382. package/app/.next-cli-build/server/app/login.rsc +3 -3
  383. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
  384. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  385. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
  386. package/app/.next-cli-build/server/app/manifest.webmanifest/route.js +2 -2
  387. package/app/.next-cli-build/server/app/page.js +1 -1
  388. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  389. package/app/.next-cli-build/server/app-paths-manifest.json +26 -25
  390. package/app/.next-cli-build/server/chunks/2220.js +1 -1
  391. package/app/.next-cli-build/server/chunks/2617.js +1 -1
  392. package/app/.next-cli-build/server/chunks/3449.js +1 -1
  393. package/app/.next-cli-build/server/chunks/412.js +1 -1
  394. package/app/.next-cli-build/server/chunks/436.js +1 -1
  395. package/app/.next-cli-build/server/chunks/5961.js +1 -1
  396. package/app/.next-cli-build/server/chunks/6500.js +1 -1
  397. package/app/.next-cli-build/server/chunks/6651.js +1 -1
  398. package/app/.next-cli-build/server/chunks/6708.js +1 -1
  399. package/app/.next-cli-build/server/chunks/6717.js +4 -4
  400. package/app/.next-cli-build/server/chunks/6723.js +1 -1
  401. package/app/.next-cli-build/server/chunks/7121.js +1 -1
  402. package/app/.next-cli-build/server/chunks/7803.js +1 -1
  403. package/app/.next-cli-build/server/chunks/7955.js +1 -1
  404. package/app/.next-cli-build/server/chunks/7995.js +3 -3
  405. package/app/.next-cli-build/server/chunks/820.js +1 -1
  406. package/app/.next-cli-build/server/chunks/8287.js +1 -1
  407. package/app/.next-cli-build/server/chunks/8525.js +1 -1
  408. package/app/.next-cli-build/server/chunks/8895.js +8 -8
  409. package/app/.next-cli-build/server/chunks/8932.js +3 -3
  410. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  411. package/app/.next-cli-build/server/middleware-react-loadable-manifest.js +1 -1
  412. package/app/.next-cli-build/server/middleware.js +5 -5
  413. package/app/.next-cli-build/server/pages/404.html +1 -1
  414. package/app/.next-cli-build/server/pages/500.html +1 -1
  415. package/app/.next-cli-build/static/9kVgf54H8v8zuxRTWW3ii/_buildManifest.js +1 -0
  416. package/app/.next-cli-build/static/chunks/{2723-980ec665a3b2b3c8.js → 2723-ec17a63c7dc8f8a1.js} +1 -1
  417. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-586a8a6d92e35094.js +1 -0
  418. package/app/.next-cli-build/static/chunks/app/_global-error/{page-71c46ee5f58adc36.js → page-42d07bf3f8296a6b.js} +1 -1
  419. package/app/.next-cli-build/static/chunks/app/api/auth/login/{route-71c46ee5f58adc36.js → route-42d07bf3f8296a6b.js} +1 -1
  420. package/app/.next-cli-build/static/chunks/app/api/auth/logout/{route-71c46ee5f58adc36.js → route-42d07bf3f8296a6b.js} +1 -1
  421. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/callback/{route-71c46ee5f58adc36.js → route-42d07bf3f8296a6b.js} +1 -1
  422. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-42d07bf3f8296a6b.js +1 -0
  423. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-42d07bf3f8296a6b.js +1 -0
  424. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-42d07bf3f8296a6b.js +1 -0
  425. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-42d07bf3f8296a6b.js +1 -0
  426. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-42d07bf3f8296a6b.js +1 -0
  427. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-42d07bf3f8296a6b.js +1 -0
  428. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-42d07bf3f8296a6b.js +1 -0
  429. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-42d07bf3f8296a6b.js +1 -0
  430. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-42d07bf3f8296a6b.js +1 -0
  431. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-42d07bf3f8296a6b.js +1 -0
  432. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-42d07bf3f8296a6b.js +1 -0
  433. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-42d07bf3f8296a6b.js +1 -0
  434. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-42d07bf3f8296a6b.js +1 -0
  435. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-42d07bf3f8296a6b.js +1 -0
  436. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-42d07bf3f8296a6b.js +1 -0
  437. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-42d07bf3f8296a6b.js +1 -0
  438. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-42d07bf3f8296a6b.js +1 -0
  439. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-42d07bf3f8296a6b.js +1 -0
  440. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-42d07bf3f8296a6b.js +1 -0
  441. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-42d07bf3f8296a6b.js +1 -0
  442. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-42d07bf3f8296a6b.js +1 -0
  443. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-42d07bf3f8296a6b.js +1 -0
  444. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-42d07bf3f8296a6b.js +1 -0
  445. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-42d07bf3f8296a6b.js +1 -0
  446. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-42d07bf3f8296a6b.js +1 -0
  447. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-42d07bf3f8296a6b.js +1 -0
  448. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-42d07bf3f8296a6b.js +1 -0
  449. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-42d07bf3f8296a6b.js +1 -0
  450. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-42d07bf3f8296a6b.js +1 -0
  451. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-42d07bf3f8296a6b.js +1 -0
  452. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-42d07bf3f8296a6b.js +1 -0
  453. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-42d07bf3f8296a6b.js +1 -0
  454. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-42d07bf3f8296a6b.js +1 -0
  455. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-42d07bf3f8296a6b.js +1 -0
  456. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-42d07bf3f8296a6b.js +1 -0
  457. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-42d07bf3f8296a6b.js +1 -0
  458. package/app/.next-cli-build/static/chunks/app/api/combos/route-42d07bf3f8296a6b.js +1 -0
  459. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-42d07bf3f8296a6b.js +1 -0
  460. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-42d07bf3f8296a6b.js +1 -0
  461. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-42d07bf3f8296a6b.js +1 -0
  462. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-42d07bf3f8296a6b.js +1 -0
  463. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-42d07bf3f8296a6b.js +1 -0
  464. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-42d07bf3f8296a6b.js +1 -0
  465. package/app/.next-cli-build/static/chunks/app/api/health/route-42d07bf3f8296a6b.js +1 -0
  466. package/app/.next-cli-build/static/chunks/app/api/init/route-42d07bf3f8296a6b.js +1 -0
  467. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-42d07bf3f8296a6b.js +1 -0
  468. package/app/.next-cli-build/static/chunks/app/api/keys/route-42d07bf3f8296a6b.js +1 -0
  469. package/app/.next-cli-build/static/chunks/app/api/locale/route-42d07bf3f8296a6b.js +1 -0
  470. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-42d07bf3f8296a6b.js +1 -0
  471. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-42d07bf3f8296a6b.js +1 -0
  472. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-42d07bf3f8296a6b.js +1 -0
  473. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-42d07bf3f8296a6b.js +1 -0
  474. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-42d07bf3f8296a6b.js +1 -0
  475. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-42d07bf3f8296a6b.js +1 -0
  476. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-42d07bf3f8296a6b.js +1 -0
  477. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-42d07bf3f8296a6b.js +1 -0
  478. package/app/.next-cli-build/static/chunks/app/api/models/chat/route-42d07bf3f8296a6b.js +1 -0
  479. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-42d07bf3f8296a6b.js +1 -0
  480. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-42d07bf3f8296a6b.js +1 -0
  481. package/app/.next-cli-build/static/chunks/app/api/models/route-42d07bf3f8296a6b.js +1 -0
  482. package/app/.next-cli-build/static/chunks/app/api/models/test/route-42d07bf3f8296a6b.js +1 -0
  483. package/app/.next-cli-build/static/chunks/app/api/models/test-batch/route-42d07bf3f8296a6b.js +1 -0
  484. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-42d07bf3f8296a6b.js +1 -0
  485. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-42d07bf3f8296a6b.js +1 -0
  486. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-42d07bf3f8296a6b.js +1 -0
  487. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-42d07bf3f8296a6b.js +1 -0
  488. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-42d07bf3f8296a6b.js +1 -0
  489. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-42d07bf3f8296a6b.js +1 -0
  490. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-42d07bf3f8296a6b.js +1 -0
  491. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-42d07bf3f8296a6b.js +1 -0
  492. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-42d07bf3f8296a6b.js +1 -0
  493. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-42d07bf3f8296a6b.js +1 -0
  494. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-42d07bf3f8296a6b.js +1 -0
  495. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-42d07bf3f8296a6b.js +1 -0
  496. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-42d07bf3f8296a6b.js +1 -0
  497. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-42d07bf3f8296a6b.js +1 -0
  498. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-42d07bf3f8296a6b.js +1 -0
  499. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-42d07bf3f8296a6b.js +1 -0
  500. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-42d07bf3f8296a6b.js +1 -0
  501. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-42d07bf3f8296a6b.js +1 -0
  502. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-42d07bf3f8296a6b.js +1 -0
  503. package/app/.next-cli-build/static/chunks/app/api/observability/export/route-42d07bf3f8296a6b.js +1 -0
  504. package/app/.next-cli-build/static/chunks/app/api/observability/log/[id]/route-42d07bf3f8296a6b.js +1 -0
  505. package/app/.next-cli-build/static/chunks/app/api/observability/logs/route-42d07bf3f8296a6b.js +1 -0
  506. package/app/.next-cli-build/static/chunks/app/api/observability/settings/route-42d07bf3f8296a6b.js +1 -0
  507. package/app/.next-cli-build/static/chunks/app/api/observability/stats/route-42d07bf3f8296a6b.js +1 -0
  508. package/app/.next-cli-build/static/chunks/app/api/pricing/route-42d07bf3f8296a6b.js +1 -0
  509. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-42d07bf3f8296a6b.js +1 -0
  510. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-42d07bf3f8296a6b.js +1 -0
  511. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-42d07bf3f8296a6b.js +1 -0
  512. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-42d07bf3f8296a6b.js +1 -0
  513. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-42d07bf3f8296a6b.js +1 -0
  514. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh/route-42d07bf3f8296a6b.js +1 -0
  515. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-42d07bf3f8296a6b.js +1 -0
  516. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-42d07bf3f8296a6b.js +1 -0
  517. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-42d07bf3f8296a6b.js +1 -0
  518. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-42d07bf3f8296a6b.js +1 -0
  519. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-42d07bf3f8296a6b.js +1 -0
  520. package/app/.next-cli-build/static/chunks/app/api/providers/route-42d07bf3f8296a6b.js +1 -0
  521. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-42d07bf3f8296a6b.js +1 -0
  522. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-42d07bf3f8296a6b.js +1 -0
  523. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-42d07bf3f8296a6b.js +1 -0
  524. package/app/.next-cli-build/static/chunks/app/api/providers/web-session/[id]/route-42d07bf3f8296a6b.js +1 -0
  525. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-42d07bf3f8296a6b.js +1 -0
  526. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-42d07bf3f8296a6b.js +1 -0
  527. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-42d07bf3f8296a6b.js +1 -0
  528. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-42d07bf3f8296a6b.js +1 -0
  529. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-42d07bf3f8296a6b.js +1 -0
  530. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-42d07bf3f8296a6b.js +1 -0
  531. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-42d07bf3f8296a6b.js +1 -0
  532. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-42d07bf3f8296a6b.js +1 -0
  533. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-42d07bf3f8296a6b.js +1 -0
  534. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-42d07bf3f8296a6b.js +1 -0
  535. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-42d07bf3f8296a6b.js +1 -0
  536. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-42d07bf3f8296a6b.js +1 -0
  537. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-42d07bf3f8296a6b.js +1 -0
  538. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-42d07bf3f8296a6b.js +1 -0
  539. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-42d07bf3f8296a6b.js +1 -0
  540. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-42d07bf3f8296a6b.js +1 -0
  541. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-42d07bf3f8296a6b.js +1 -0
  542. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-42d07bf3f8296a6b.js +1 -0
  543. package/app/.next-cli-build/static/chunks/app/api/settings/route-42d07bf3f8296a6b.js +1 -0
  544. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-42d07bf3f8296a6b.js +1 -0
  545. package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-42d07bf3f8296a6b.js +1 -0
  546. package/app/.next-cli-build/static/chunks/app/api/skills/install/route-42d07bf3f8296a6b.js +1 -0
  547. package/app/.next-cli-build/static/chunks/app/api/skills/mine/route-42d07bf3f8296a6b.js +1 -0
  548. package/app/.next-cli-build/static/chunks/app/api/skills/route-42d07bf3f8296a6b.js +1 -0
  549. package/app/.next-cli-build/static/chunks/app/api/token-saver/stats/route-42d07bf3f8296a6b.js +1 -0
  550. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-42d07bf3f8296a6b.js +1 -0
  551. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-42d07bf3f8296a6b.js +1 -0
  552. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-42d07bf3f8296a6b.js +1 -0
  553. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-42d07bf3f8296a6b.js +1 -0
  554. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-42d07bf3f8296a6b.js +1 -0
  555. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-42d07bf3f8296a6b.js +1 -0
  556. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-42d07bf3f8296a6b.js +1 -0
  557. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-42d07bf3f8296a6b.js +1 -0
  558. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-42d07bf3f8296a6b.js +1 -0
  559. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-42d07bf3f8296a6b.js +1 -0
  560. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-42d07bf3f8296a6b.js +1 -0
  561. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-42d07bf3f8296a6b.js +1 -0
  562. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-42d07bf3f8296a6b.js +1 -0
  563. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-42d07bf3f8296a6b.js +1 -0
  564. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-42d07bf3f8296a6b.js +1 -0
  565. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-42d07bf3f8296a6b.js +1 -0
  566. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-42d07bf3f8296a6b.js +1 -0
  567. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-42d07bf3f8296a6b.js +1 -0
  568. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-42d07bf3f8296a6b.js +1 -0
  569. package/app/.next-cli-build/static/chunks/app/api/usage/rate-limit/route-42d07bf3f8296a6b.js +1 -0
  570. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-42d07bf3f8296a6b.js +1 -0
  571. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-42d07bf3f8296a6b.js +1 -0
  572. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-42d07bf3f8296a6b.js +1 -0
  573. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-42d07bf3f8296a6b.js +1 -0
  574. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-42d07bf3f8296a6b.js +1 -0
  575. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-42d07bf3f8296a6b.js +1 -0
  576. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-42d07bf3f8296a6b.js +1 -0
  577. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-42d07bf3f8296a6b.js +1 -0
  578. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-42d07bf3f8296a6b.js +1 -0
  579. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-42d07bf3f8296a6b.js +1 -0
  580. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-42d07bf3f8296a6b.js +1 -0
  581. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-42d07bf3f8296a6b.js +1 -0
  582. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-42d07bf3f8296a6b.js +1 -0
  583. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-42d07bf3f8296a6b.js +1 -0
  584. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-42d07bf3f8296a6b.js +1 -0
  585. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-42d07bf3f8296a6b.js +1 -0
  586. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-42d07bf3f8296a6b.js +1 -0
  587. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-42d07bf3f8296a6b.js +1 -0
  588. package/app/.next-cli-build/static/chunks/app/api/v1/route-42d07bf3f8296a6b.js +1 -0
  589. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-42d07bf3f8296a6b.js +1 -0
  590. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-42d07bf3f8296a6b.js +1 -0
  591. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-42d07bf3f8296a6b.js +1 -0
  592. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-42d07bf3f8296a6b.js +1 -0
  593. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-42d07bf3f8296a6b.js +1 -0
  594. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-42d07bf3f8296a6b.js +1 -0
  595. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-42d07bf3f8296a6b.js +1 -0
  596. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-42d07bf3f8296a6b.js +1 -0
  597. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-42d07bf3f8296a6b.js +1 -0
  598. package/app/.next-cli-build/static/chunks/app/api/version/route-42d07bf3f8296a6b.js +1 -0
  599. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-42d07bf3f8296a6b.js +1 -0
  600. package/app/.next-cli-build/static/chunks/app/api/version/update/route-42d07bf3f8296a6b.js +1 -0
  601. package/app/.next-cli-build/static/chunks/app/api/workspaces/[id]/route-42d07bf3f8296a6b.js +1 -0
  602. package/app/.next-cli-build/static/chunks/app/api/workspaces/route-42d07bf3f8296a6b.js +1 -0
  603. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-42d07bf3f8296a6b.js +1 -0
  604. package/app/.next-cli-build/static/chunks/app/page-42d07bf3f8296a6b.js +1 -0
  605. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-42d07bf3f8296a6b.js +1 -0
  606. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-42d07bf3f8296a6b.js +1 -0
  607. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-42d07bf3f8296a6b.js +1 -0
  608. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-42d07bf3f8296a6b.js +1 -0
  609. package/app/.next-cli-build/static/chunks/{webpack-315c670ea50ab5f5.js → webpack-63a1ee96e77f5614.js} +1 -1
  610. package/app/.next-cli-build/static/css/64ed2322a01084a6.css +1 -0
  611. package/app/package.json +1 -1
  612. package/package.json +1 -1
  613. package/app/.next-cli-build/static/T_fU1zddh_BOaSHScvc4v/_buildManifest.js +0 -1
  614. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/token-saver/page-b2441cbfb9cb0ea2.js +0 -1
  615. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/start/route-71c46ee5f58adc36.js +0 -1
  616. package/app/.next-cli-build/static/chunks/app/api/auth/oidc/test/route-71c46ee5f58adc36.js +0 -1
  617. package/app/.next-cli-build/static/chunks/app/api/auth/reset-password/route-71c46ee5f58adc36.js +0 -1
  618. package/app/.next-cli-build/static/chunks/app/api/auth/saml/acs/route-71c46ee5f58adc36.js +0 -1
  619. package/app/.next-cli-build/static/chunks/app/api/auth/saml/metadata/route-71c46ee5f58adc36.js +0 -1
  620. package/app/.next-cli-build/static/chunks/app/api/auth/saml/start/route-71c46ee5f58adc36.js +0 -1
  621. package/app/.next-cli-build/static/chunks/app/api/auth/saml/test/route-71c46ee5f58adc36.js +0 -1
  622. package/app/.next-cli-build/static/chunks/app/api/auth/status/route-71c46ee5f58adc36.js +0 -1
  623. package/app/.next-cli-build/static/chunks/app/api/cli-tools/all-statuses/route-71c46ee5f58adc36.js +0 -1
  624. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/alias/route-71c46ee5f58adc36.js +0 -1
  625. package/app/.next-cli-build/static/chunks/app/api/cli-tools/antigravity-mitm/route-71c46ee5f58adc36.js +0 -1
  626. package/app/.next-cli-build/static/chunks/app/api/cli-tools/claude-settings/route-71c46ee5f58adc36.js +0 -1
  627. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cline-settings/route-71c46ee5f58adc36.js +0 -1
  628. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codewhale-settings/route-71c46ee5f58adc36.js +0 -1
  629. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-profiles/route-71c46ee5f58adc36.js +0 -1
  630. package/app/.next-cli-build/static/chunks/app/api/cli-tools/codex-settings/route-71c46ee5f58adc36.js +0 -1
  631. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-registry/route-71c46ee5f58adc36.js +0 -1
  632. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-mcp-tools/route-71c46ee5f58adc36.js +0 -1
  633. package/app/.next-cli-build/static/chunks/app/api/cli-tools/cowork-settings/route-71c46ee5f58adc36.js +0 -1
  634. package/app/.next-cli-build/static/chunks/app/api/cli-tools/crush-settings/route-71c46ee5f58adc36.js +0 -1
  635. package/app/.next-cli-build/static/chunks/app/api/cli-tools/deepseek-tui-settings/route-71c46ee5f58adc36.js +0 -1
  636. package/app/.next-cli-build/static/chunks/app/api/cli-tools/devin-settings/route-71c46ee5f58adc36.js +0 -1
  637. package/app/.next-cli-build/static/chunks/app/api/cli-tools/droid-settings/route-71c46ee5f58adc36.js +0 -1
  638. package/app/.next-cli-build/static/chunks/app/api/cli-tools/forge-settings/route-71c46ee5f58adc36.js +0 -1
  639. package/app/.next-cli-build/static/chunks/app/api/cli-tools/grok-build-settings/route-71c46ee5f58adc36.js +0 -1
  640. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-profiles/route-71c46ee5f58adc36.js +0 -1
  641. package/app/.next-cli-build/static/chunks/app/api/cli-tools/hermes-settings/route-71c46ee5f58adc36.js +0 -1
  642. package/app/.next-cli-build/static/chunks/app/api/cli-tools/jcode-settings/route-71c46ee5f58adc36.js +0 -1
  643. package/app/.next-cli-build/static/chunks/app/api/cli-tools/kilo-settings/route-71c46ee5f58adc36.js +0 -1
  644. package/app/.next-cli-build/static/chunks/app/api/cli-tools/omp-settings/route-71c46ee5f58adc36.js +0 -1
  645. package/app/.next-cli-build/static/chunks/app/api/cli-tools/openclaw-settings/route-71c46ee5f58adc36.js +0 -1
  646. package/app/.next-cli-build/static/chunks/app/api/cli-tools/opencode-settings/route-71c46ee5f58adc36.js +0 -1
  647. package/app/.next-cli-build/static/chunks/app/api/cli-tools/pi-settings/route-71c46ee5f58adc36.js +0 -1
  648. package/app/.next-cli-build/static/chunks/app/api/cli-tools/smelt-settings/route-71c46ee5f58adc36.js +0 -1
  649. package/app/.next-cli-build/static/chunks/app/api/combos/[id]/route-71c46ee5f58adc36.js +0 -1
  650. package/app/.next-cli-build/static/chunks/app/api/combos/presets/route-71c46ee5f58adc36.js +0 -1
  651. package/app/.next-cli-build/static/chunks/app/api/combos/route-71c46ee5f58adc36.js +0 -1
  652. package/app/.next-cli-build/static/chunks/app/api/headroom/extras/route-71c46ee5f58adc36.js +0 -1
  653. package/app/.next-cli-build/static/chunks/app/api/headroom/proxy/[...path]/route-71c46ee5f58adc36.js +0 -1
  654. package/app/.next-cli-build/static/chunks/app/api/headroom/restart/route-71c46ee5f58adc36.js +0 -1
  655. package/app/.next-cli-build/static/chunks/app/api/headroom/start/route-71c46ee5f58adc36.js +0 -1
  656. package/app/.next-cli-build/static/chunks/app/api/headroom/status/route-71c46ee5f58adc36.js +0 -1
  657. package/app/.next-cli-build/static/chunks/app/api/headroom/stop/route-71c46ee5f58adc36.js +0 -1
  658. package/app/.next-cli-build/static/chunks/app/api/health/route-71c46ee5f58adc36.js +0 -1
  659. package/app/.next-cli-build/static/chunks/app/api/init/route-71c46ee5f58adc36.js +0 -1
  660. package/app/.next-cli-build/static/chunks/app/api/keys/[id]/route-71c46ee5f58adc36.js +0 -1
  661. package/app/.next-cli-build/static/chunks/app/api/keys/route-71c46ee5f58adc36.js +0 -1
  662. package/app/.next-cli-build/static/chunks/app/api/locale/route-71c46ee5f58adc36.js +0 -1
  663. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/message/route-71c46ee5f58adc36.js +0 -1
  664. package/app/.next-cli-build/static/chunks/app/api/mcp/[plugin]/sse/route-71c46ee5f58adc36.js +0 -1
  665. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/deepgram/voices/route-71c46ee5f58adc36.js +0 -1
  666. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/elevenlabs/voices/route-71c46ee5f58adc36.js +0 -1
  667. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/inworld/voices/route-71c46ee5f58adc36.js +0 -1
  668. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/minimax/voices/route-71c46ee5f58adc36.js +0 -1
  669. package/app/.next-cli-build/static/chunks/app/api/media-providers/tts/voices/route-71c46ee5f58adc36.js +0 -1
  670. package/app/.next-cli-build/static/chunks/app/api/models/alias/route-71c46ee5f58adc36.js +0 -1
  671. package/app/.next-cli-build/static/chunks/app/api/models/chat/route-71c46ee5f58adc36.js +0 -1
  672. package/app/.next-cli-build/static/chunks/app/api/models/custom/route-71c46ee5f58adc36.js +0 -1
  673. package/app/.next-cli-build/static/chunks/app/api/models/disabled/route-71c46ee5f58adc36.js +0 -1
  674. package/app/.next-cli-build/static/chunks/app/api/models/route-71c46ee5f58adc36.js +0 -1
  675. package/app/.next-cli-build/static/chunks/app/api/models/test/route-71c46ee5f58adc36.js +0 -1
  676. package/app/.next-cli-build/static/chunks/app/api/models/test-batch/route-71c46ee5f58adc36.js +0 -1
  677. package/app/.next-cli-build/static/chunks/app/api/oauth/[provider]/[action]/route-71c46ee5f58adc36.js +0 -1
  678. package/app/.next-cli-build/static/chunks/app/api/oauth/codex/bulk-import/route-71c46ee5f58adc36.js +0 -1
  679. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/auto-import/route-71c46ee5f58adc36.js +0 -1
  680. package/app/.next-cli-build/static/chunks/app/api/oauth/cursor/import/route-71c46ee5f58adc36.js +0 -1
  681. package/app/.next-cli-build/static/chunks/app/api/oauth/gitlab/pat/route-71c46ee5f58adc36.js +0 -1
  682. package/app/.next-cli-build/static/chunks/app/api/oauth/grok-cli/bulk-import/route-71c46ee5f58adc36.js +0 -1
  683. package/app/.next-cli-build/static/chunks/app/api/oauth/iflow/cookie/route-71c46ee5f58adc36.js +0 -1
  684. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/api-key/route-71c46ee5f58adc36.js +0 -1
  685. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/auto-import/route-71c46ee5f58adc36.js +0 -1
  686. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import/route-71c46ee5f58adc36.js +0 -1
  687. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/import-cli-proxy/route-71c46ee5f58adc36.js +0 -1
  688. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-authorize/route-71c46ee5f58adc36.js +0 -1
  689. package/app/.next-cli-build/static/chunks/app/api/oauth/kiro/social-exchange/route-71c46ee5f58adc36.js +0 -1
  690. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/api-key/route-71c46ee5f58adc36.js +0 -1
  691. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/auto-import/route-71c46ee5f58adc36.js +0 -1
  692. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/start/route-71c46ee5f58adc36.js +0 -1
  693. package/app/.next-cli-build/static/chunks/app/api/oauth/xiaomi-mimo/login/status/route-71c46ee5f58adc36.js +0 -1
  694. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/auto-import/route-71c46ee5f58adc36.js +0 -1
  695. package/app/.next-cli-build/static/chunks/app/api/oauth/zed/import/route-71c46ee5f58adc36.js +0 -1
  696. package/app/.next-cli-build/static/chunks/app/api/observability/export/route-71c46ee5f58adc36.js +0 -1
  697. package/app/.next-cli-build/static/chunks/app/api/observability/log/[id]/route-71c46ee5f58adc36.js +0 -1
  698. package/app/.next-cli-build/static/chunks/app/api/observability/logs/route-71c46ee5f58adc36.js +0 -1
  699. package/app/.next-cli-build/static/chunks/app/api/observability/settings/route-71c46ee5f58adc36.js +0 -1
  700. package/app/.next-cli-build/static/chunks/app/api/observability/stats/route-71c46ee5f58adc36.js +0 -1
  701. package/app/.next-cli-build/static/chunks/app/api/pricing/route-71c46ee5f58adc36.js +0 -1
  702. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/[id]/route-71c46ee5f58adc36.js +0 -1
  703. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/route-71c46ee5f58adc36.js +0 -1
  704. package/app/.next-cli-build/static/chunks/app/api/provider-nodes/validate/route-71c46ee5f58adc36.js +0 -1
  705. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/models/route-71c46ee5f58adc36.js +0 -1
  706. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/overrides/route-71c46ee5f58adc36.js +0 -1
  707. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/refresh/route-71c46ee5f58adc36.js +0 -1
  708. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/route-71c46ee5f58adc36.js +0 -1
  709. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test/route-71c46ee5f58adc36.js +0 -1
  710. package/app/.next-cli-build/static/chunks/app/api/providers/[id]/test-models/route-71c46ee5f58adc36.js +0 -1
  711. package/app/.next-cli-build/static/chunks/app/api/providers/client/route-71c46ee5f58adc36.js +0 -1
  712. package/app/.next-cli-build/static/chunks/app/api/providers/kilo/free-models/route-71c46ee5f58adc36.js +0 -1
  713. package/app/.next-cli-build/static/chunks/app/api/providers/route-71c46ee5f58adc36.js +0 -1
  714. package/app/.next-cli-build/static/chunks/app/api/providers/suggested-models/route-71c46ee5f58adc36.js +0 -1
  715. package/app/.next-cli-build/static/chunks/app/api/providers/test-batch/route-71c46ee5f58adc36.js +0 -1
  716. package/app/.next-cli-build/static/chunks/app/api/providers/validate/route-71c46ee5f58adc36.js +0 -1
  717. package/app/.next-cli-build/static/chunks/app/api/providers/web-session/[id]/route-71c46ee5f58adc36.js +0 -1
  718. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/route-71c46ee5f58adc36.js +0 -1
  719. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/[id]/test/route-71c46ee5f58adc36.js +0 -1
  720. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/cloudflare-deploy/route-71c46ee5f58adc36.js +0 -1
  721. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/deno-deploy/route-71c46ee5f58adc36.js +0 -1
  722. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/netlify-deploy/route-71c46ee5f58adc36.js +0 -1
  723. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/route-71c46ee5f58adc36.js +0 -1
  724. package/app/.next-cli-build/static/chunks/app/api/proxy-pools/vercel-deploy/route-71c46ee5f58adc36.js +0 -1
  725. package/app/.next-cli-build/static/chunks/app/api/pxpipe/health/route-71c46ee5f58adc36.js +0 -1
  726. package/app/.next-cli-build/static/chunks/app/api/pxpipe/install/route-71c46ee5f58adc36.js +0 -1
  727. package/app/.next-cli-build/static/chunks/app/api/pxpipe/logs/route-71c46ee5f58adc36.js +0 -1
  728. package/app/.next-cli-build/static/chunks/app/api/pxpipe/restart/route-71c46ee5f58adc36.js +0 -1
  729. package/app/.next-cli-build/static/chunks/app/api/pxpipe/start/route-71c46ee5f58adc36.js +0 -1
  730. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stats/route-71c46ee5f58adc36.js +0 -1
  731. package/app/.next-cli-build/static/chunks/app/api/pxpipe/status/route-71c46ee5f58adc36.js +0 -1
  732. package/app/.next-cli-build/static/chunks/app/api/pxpipe/stop/route-71c46ee5f58adc36.js +0 -1
  733. package/app/.next-cli-build/static/chunks/app/api/settings/database/route-71c46ee5f58adc36.js +0 -1
  734. package/app/.next-cli-build/static/chunks/app/api/settings/proxy-test/route-71c46ee5f58adc36.js +0 -1
  735. package/app/.next-cli-build/static/chunks/app/api/settings/require-login/route-71c46ee5f58adc36.js +0 -1
  736. package/app/.next-cli-build/static/chunks/app/api/settings/route-71c46ee5f58adc36.js +0 -1
  737. package/app/.next-cli-build/static/chunks/app/api/shutdown/route-71c46ee5f58adc36.js +0 -1
  738. package/app/.next-cli-build/static/chunks/app/api/skills/[id]/route-71c46ee5f58adc36.js +0 -1
  739. package/app/.next-cli-build/static/chunks/app/api/skills/install/route-71c46ee5f58adc36.js +0 -1
  740. package/app/.next-cli-build/static/chunks/app/api/skills/mine/route-71c46ee5f58adc36.js +0 -1
  741. package/app/.next-cli-build/static/chunks/app/api/skills/route-71c46ee5f58adc36.js +0 -1
  742. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/route-71c46ee5f58adc36.js +0 -1
  743. package/app/.next-cli-build/static/chunks/app/api/translator/console-logs/stream/route-71c46ee5f58adc36.js +0 -1
  744. package/app/.next-cli-build/static/chunks/app/api/translator/load/route-71c46ee5f58adc36.js +0 -1
  745. package/app/.next-cli-build/static/chunks/app/api/translator/save/route-71c46ee5f58adc36.js +0 -1
  746. package/app/.next-cli-build/static/chunks/app/api/translator/send/route-71c46ee5f58adc36.js +0 -1
  747. package/app/.next-cli-build/static/chunks/app/api/translator/translate/route-71c46ee5f58adc36.js +0 -1
  748. package/app/.next-cli-build/static/chunks/app/api/tunnel/disable/route-71c46ee5f58adc36.js +0 -1
  749. package/app/.next-cli-build/static/chunks/app/api/tunnel/enable/route-71c46ee5f58adc36.js +0 -1
  750. package/app/.next-cli-build/static/chunks/app/api/tunnel/status/route-71c46ee5f58adc36.js +0 -1
  751. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-check/route-71c46ee5f58adc36.js +0 -1
  752. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-disable/route-71c46ee5f58adc36.js +0 -1
  753. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-enable/route-71c46ee5f58adc36.js +0 -1
  754. package/app/.next-cli-build/static/chunks/app/api/tunnel/tailscale-install/route-71c46ee5f58adc36.js +0 -1
  755. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/claude-reset/route-71c46ee5f58adc36.js +0 -1
  756. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/codex-reset-credits/route-71c46ee5f58adc36.js +0 -1
  757. package/app/.next-cli-build/static/chunks/app/api/usage/[connectionId]/route-71c46ee5f58adc36.js +0 -1
  758. package/app/.next-cli-build/static/chunks/app/api/usage/chart/route-71c46ee5f58adc36.js +0 -1
  759. package/app/.next-cli-build/static/chunks/app/api/usage/logs/route-71c46ee5f58adc36.js +0 -1
  760. package/app/.next-cli-build/static/chunks/app/api/usage/providers/route-71c46ee5f58adc36.js +0 -1
  761. package/app/.next-cli-build/static/chunks/app/api/usage/rate-limit/route-71c46ee5f58adc36.js +0 -1
  762. package/app/.next-cli-build/static/chunks/app/api/usage/request-details/route-71c46ee5f58adc36.js +0 -1
  763. package/app/.next-cli-build/static/chunks/app/api/usage/request-logs/route-71c46ee5f58adc36.js +0 -1
  764. package/app/.next-cli-build/static/chunks/app/api/usage/stats/route-71c46ee5f58adc36.js +0 -1
  765. package/app/.next-cli-build/static/chunks/app/api/usage/stream/route-71c46ee5f58adc36.js +0 -1
  766. package/app/.next-cli-build/static/chunks/app/api/v1/api/chat/route-71c46ee5f58adc36.js +0 -1
  767. package/app/.next-cli-build/static/chunks/app/api/v1/audio/speech/route-71c46ee5f58adc36.js +0 -1
  768. package/app/.next-cli-build/static/chunks/app/api/v1/audio/transcriptions/route-71c46ee5f58adc36.js +0 -1
  769. package/app/.next-cli-build/static/chunks/app/api/v1/audio/voices/route-71c46ee5f58adc36.js +0 -1
  770. package/app/.next-cli-build/static/chunks/app/api/v1/chat/completions/route-71c46ee5f58adc36.js +0 -1
  771. package/app/.next-cli-build/static/chunks/app/api/v1/embeddings/route-71c46ee5f58adc36.js +0 -1
  772. package/app/.next-cli-build/static/chunks/app/api/v1/images/generations/route-71c46ee5f58adc36.js +0 -1
  773. package/app/.next-cli-build/static/chunks/app/api/v1/messages/count_tokens/route-71c46ee5f58adc36.js +0 -1
  774. package/app/.next-cli-build/static/chunks/app/api/v1/messages/route-71c46ee5f58adc36.js +0 -1
  775. package/app/.next-cli-build/static/chunks/app/api/v1/models/[...model]/route-71c46ee5f58adc36.js +0 -1
  776. package/app/.next-cli-build/static/chunks/app/api/v1/models/info/route-71c46ee5f58adc36.js +0 -1
  777. package/app/.next-cli-build/static/chunks/app/api/v1/models/route-71c46ee5f58adc36.js +0 -1
  778. package/app/.next-cli-build/static/chunks/app/api/v1/responses/compact/route-71c46ee5f58adc36.js +0 -1
  779. package/app/.next-cli-build/static/chunks/app/api/v1/responses/route-71c46ee5f58adc36.js +0 -1
  780. package/app/.next-cli-build/static/chunks/app/api/v1/route-71c46ee5f58adc36.js +0 -1
  781. package/app/.next-cli-build/static/chunks/app/api/v1/search/route-71c46ee5f58adc36.js +0 -1
  782. package/app/.next-cli-build/static/chunks/app/api/v1/systemone/route-71c46ee5f58adc36.js +0 -1
  783. package/app/.next-cli-build/static/chunks/app/api/v1/videos/[id]/route-71c46ee5f58adc36.js +0 -1
  784. package/app/.next-cli-build/static/chunks/app/api/v1/videos/edits/route-71c46ee5f58adc36.js +0 -1
  785. package/app/.next-cli-build/static/chunks/app/api/v1/videos/extensions/route-71c46ee5f58adc36.js +0 -1
  786. package/app/.next-cli-build/static/chunks/app/api/v1/videos/generations/route-71c46ee5f58adc36.js +0 -1
  787. package/app/.next-cli-build/static/chunks/app/api/v1/web/fetch/route-71c46ee5f58adc36.js +0 -1
  788. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/[...path]/route-71c46ee5f58adc36.js +0 -1
  789. package/app/.next-cli-build/static/chunks/app/api/v1beta/models/route-71c46ee5f58adc36.js +0 -1
  790. package/app/.next-cli-build/static/chunks/app/api/version/route-71c46ee5f58adc36.js +0 -1
  791. package/app/.next-cli-build/static/chunks/app/api/version/shutdown/route-71c46ee5f58adc36.js +0 -1
  792. package/app/.next-cli-build/static/chunks/app/api/version/update/route-71c46ee5f58adc36.js +0 -1
  793. package/app/.next-cli-build/static/chunks/app/api/workspaces/[id]/route-71c46ee5f58adc36.js +0 -1
  794. package/app/.next-cli-build/static/chunks/app/api/workspaces/route-71c46ee5f58adc36.js +0 -1
  795. package/app/.next-cli-build/static/chunks/app/manifest.webmanifest/route-71c46ee5f58adc36.js +0 -1
  796. package/app/.next-cli-build/static/chunks/app/page-71c46ee5f58adc36.js +0 -1
  797. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/app-error-71c46ee5f58adc36.js +0 -1
  798. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/forbidden-71c46ee5f58adc36.js +0 -1
  799. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/not-found-71c46ee5f58adc36.js +0 -1
  800. package/app/.next-cli-build/static/chunks/next/dist/client/components/builtin/unauthorized-71c46ee5f58adc36.js +0 -1
  801. package/app/.next-cli-build/static/css/9f8aedd7a6be48de.css +0 -1
  802. /package/app/.next-cli-build/static/{T_fU1zddh_BOaSHScvc4v → 9kVgf54H8v8zuxRTWW3ii}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
1
  (()=>{var a={};a.id=7520,a.ids=[7520],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")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},13514:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>m});var d=c(23211),e=c(79748),f=c(21820),g=c(33873),h=c(79646);let i=(0,c(28354).promisify)(h.execFile),j=["cursorAuth/accessToken","cursorAuth/token"],k=["storage.serviceMachineId","storage.machineId","telemetry.machineId"];async function l(a){let b=a=>{let b=a.trim();try{let a=JSON.parse(b);return"string"==typeof a?a:b}catch{return b}},c=async b=>{let{stdout:c}=await i("sqlite3",[a,b],{timeout:1e4});return c.trim()},d=null;for(let a of j)try{let e=await c(`SELECT value FROM itemTable WHERE key='${a}' LIMIT 1`);if(e){d=b(e);break}}catch{}let e=null;for(let a of k)try{let d=await c(`SELECT value FROM itemTable WHERE key='${a}' LIMIT 1`);if(d){e=b(d);break}}catch{}return{accessToken:d,machineId:e}}async function m(){try{let a=process.platform,b=function(a){let b=(0,f.homedir)();if("darwin"===a)return[(0,g.join)(b,"Library/Application Support/Cursor/User/globalStorage/state.vscdb"),(0,g.join)(b,"Library/Application Support/Cursor - Insiders/User/globalStorage/state.vscdb")];if("win32"===a){let a=process.env.APPDATA||(0,g.join)(b,"AppData","Roaming"),c=process.env.LOCALAPPDATA||(0,g.join)(b,"AppData","Local");return[(0,g.join)(a,"Cursor","User","globalStorage","state.vscdb"),(0,g.join)(a,"Cursor - Insiders","User","globalStorage","state.vscdb"),(0,g.join)(c,"Cursor","User","globalStorage","state.vscdb"),(0,g.join)(c,"Programs","Cursor","User","globalStorage","state.vscdb")]}return[(0,g.join)(b,".config/Cursor/User/globalStorage/state.vscdb"),(0,g.join)(b,".config/cursor/User/globalStorage/state.vscdb")]}(a),h=null;for(let a of b)try{await (0,e.access)(a,e.constants.R_OK),h=a;break}catch{}if(!h)return d.NextResponse.json({found:!1,error:`Cursor database not found. Checked locations:
2
2
  ${b.join("\n")}
3
3
 
4
- Make sure Cursor IDE is installed and opened at least once.`});if("linux"===a){let a=!1;try{await i("which",["cursor"],{timeout:5e3}),a=!0}catch{try{let b=(0,g.join)((0,f.homedir)(),".local/share/applications/cursor.desktop");await (0,e.access)(b,e.constants.R_OK),a=!0}catch{}}if(!a)return d.NextResponse.json({found:!1,error:"Cursor config files found but Cursor IDE does not appear to be installed. Skipping auto-import."})}try{let a=function(a){if(process.versions.bun)return{accessToken:null,machineId:null};let[b]=process.versions.node.split(".").map(Number);if(b>=24)return{accessToken:null,machineId:null};let d=new(c(87550))(a,{readonly:!0,fileMustExist:!0}),e=a=>{let b=d.prepare("SELECT value FROM itemTable WHERE key=? LIMIT 1").get(a);return b?.value||null},f=a=>{if("string"!=typeof a)return a;try{let b=JSON.parse(a);return"string"==typeof b?b:a}catch{return a}},g=null;for(let a of j){let b=e(a);if(b){g=f(b);break}}let h=null;for(let a of k){let b=e(a);if(b){h=f(b);break}}return d.close(),{accessToken:g,machineId:h}}(h);if(a.accessToken&&a.machineId)return d.NextResponse.json({found:!0,accessToken:a.accessToken,machineId:a.machineId})}catch{}try{let a=await l(h);if(a.accessToken&&a.machineId)return d.NextResponse.json({found:!0,accessToken:a.accessToken,machineId:a.machineId})}catch{}return d.NextResponse.json({found:!1,windowsManual:!0,dbPath:h})}catch(a){return console.log("Cursor auto-import error:",a),d.NextResponse.json({found:!1,error:a.message},{status:500})}}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30254:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/cursor/auto-import/route",pathname:"/api/oauth/cursor/auto-import",filename:"route",bundlePath:"app/api/oauth/cursor/auto-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/cursor/auto-import/route.js",nextConfigOutput:"standalone",userland:()=>c(13514),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/cursor/auto-import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},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")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813],()=>b(b.s=30254));module.exports=c})();
4
+ Make sure Cursor IDE is installed and opened at least once.`});if("linux"===a){let a=!1;try{await i("which",["cursor"],{timeout:5e3}),a=!0}catch{try{let b=(0,g.join)((0,f.homedir)(),".local/share/applications/cursor.desktop");await (0,e.access)(b,e.constants.R_OK),a=!0}catch{}}if(!a)return d.NextResponse.json({found:!1,error:"Cursor config files found but Cursor IDE does not appear to be installed. Skipping auto-import."})}try{let a=function(a){if(process.versions.bun)return{accessToken:null,machineId:null};let[b]=process.versions.node.split(".").map(Number);if(b>=24)return{accessToken:null,machineId:null};let d=new(c(87550))(a,{readonly:!0,fileMustExist:!0}),e=a=>{let b=d.prepare("SELECT value FROM itemTable WHERE key=? LIMIT 1").get(a);return b?.value||null},f=a=>{if("string"!=typeof a)return a;try{let b=JSON.parse(a);return"string"==typeof b?b:a}catch{return a}},g=null;for(let a of j){let b=e(a);if(b){g=f(b);break}}let h=null;for(let a of k){let b=e(a);if(b){h=f(b);break}}return d.close(),{accessToken:g,machineId:h}}(h);if(a.accessToken&&a.machineId)return d.NextResponse.json({found:!0,accessToken:a.accessToken,machineId:a.machineId})}catch{}try{let a=await l(h);if(a.accessToken&&a.machineId)return d.NextResponse.json({found:!0,accessToken:a.accessToken,machineId:a.machineId})}catch{}return d.NextResponse.json({found:!1,windowsManual:!0,dbPath:h})}catch(a){return console.log("Cursor auto-import error:",a),d.NextResponse.json({found:!1,error:a.message},{status:500})}}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31401:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/cursor/auto-import/route",pathname:"/api/oauth/cursor/auto-import",filename:"route",bundlePath:"app/api/oauth/cursor/auto-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/cursor/auto-import/route.js",nextConfigOutput:"standalone",userland:()=>c(13514),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/cursor/auto-import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},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")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79646:a=>{"use strict";a.exports=require("child_process")},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{"use strict";a.exports=require("better-sqlite3")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813],()=>b(b.s=31401));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=204,a.ids=[204,1998],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")},3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=[{provider:"codex",text:"model is not supported when using codex with a chatgpt account",cooldownMs:18e5},{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"insufficient_quota",backoff:!0},{text:"insufficient quota",backoff:!0},{text:"exceeded your current quota",backoff:!0},{text:"exceeded your quota",backoff:!0},{text:"credit balance",cooldownMs:12e4},{text:"insufficient credit",cooldownMs:12e4},{text:"insufficient balance",cooldownMs:12e4},{text:"insufficient_balance",cooldownMs:12e4},{text:"billing",cooldownMs:12e4},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}]},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},39726:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/cursor/import/route",pathname:"/api/oauth/cursor/import",filename:"route",bundlePath:"app/api/oauth/cursor/import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/cursor/import/route.js",nextConfigOutput:"standalone",userland:()=>c(94611),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/cursor/import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},41004:(a,b,c)=>{c.d(b,{C8:()=>s,DR:()=>r,Ey:()=>k,IK:()=>m,Kv:()=>j,Ps:()=>g,SA:()=>p,Uc:()=>n,Z1:()=>i,ZL:()=>t,cI:()=>q,eo:()=>o,gx:()=>d,jk:()=>u,pH:()=>l,v1:()=>e,xM:()=>h}),c(3662);let d={BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,NOT_ACCEPTABLE:406,REQUEST_TIMEOUT:408,RATE_LIMITED:429,SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},e={sessionTtlMs:72e5,sessionCleanupIntervalMs:18e5,dnsCacheTtlMs:3e5,proxyDispatchersMaxSize:20};function f(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=parseInt(c,10);return Number.isFinite(d)&&d>0?d:b}let g=process.env.SEARXNG_URL?.trim()||"http://localhost:8888/search",h=f("STREAM_STALL_TIMEOUT_MS",36e4),i=f("STREAM_FIRST_CHUNK_TIMEOUT_MS",2e5),j=f("UPSTREAM_MAX_BODY_BYTES",0x2000000),k=f("UPSTREAM_TOTAL_TIMEOUT_MS",18e5),l=f("FETCH_CONNECT_TIMEOUT_MS",6e4),m=f("GEMINI_NATIVE_TTS_FETCH_TIMEOUT_MS",45e3),n=64e3,o=32e3,p="x-omnihilbras-token-saver",q={429:{attempts:0,delayMs:0},502:{attempts:3,delayMs:3e3},503:{attempts:3,delayMs:2e3},504:{attempts:2,delayMs:3e3}};function r(a){return null==a?{attempts:0,delayMs:2e3}:"number"==typeof a?{attempts:a,delayMs:2e3}:{attempts:a.attempts||0,delayMs:null!=a.delayMs?a.delayMs:2e3}}let s=["Please write a 5-10 word title for the following conversation:"],t={candidates:[{flavor:"openai-billing",path:"/dashboard/billing/subscription"},{flavor:"openai-billing",path:"/dashboard/billing/usage"},{flavor:"new-api",path:"/api/user/self"}],usageWindowDays:30,unsupportedTtlMs:f("AGGREGATOR_UNSUPPORTED_TTL_MS",6e5),newApiQuotaPerUnit:5e5,fetchTimeoutMs:1e4},u={supabaseUrl:process.env.AGGREGATOR_WALLET_SUPABASE_URL,anonKey:process.env.AGGREGATOR_WALLET_ANON_KEY,authBaseUrl:process.env.AGGREGATOR_WALLET_AUTH_BASE_URL,walletTable:"wallets",walletColumns:["balance_paid","balance_trial","balance_bonus","balance_bonus_locked"],lockedColumn:"balance_bonus_locked"}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>A,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>B,Tx:()=>q,WN:()=>t,Ww:()=>K,YT:()=>n,Z2:()=>J,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>C,sA:()=>D,t3:()=>l,w1:()=>x});var d=c(21820),e=c(74129),f=c(3689);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qoder},l={...f.sr["qoder-cn"]},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr["codebuddy-intl"]},B={...f.sr.kimchi},C={...f.sr["grok-cli"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={clientId:"hermes-cli",portalBaseUrl:"https://portal.nousresearch.com",deviceCodeUrl:"https://portal.nousresearch.com/api/oauth/device/code",tokenUrl:"https://portal.nousresearch.com/api/oauth/token",agentKeyUrl:"https://portal.nousresearch.com/api/oauth/agent-key",inferenceBaseUrl:"https://inference-api.nousresearch.com/v1",scope:"inference:invoke inference:mint_agent_key"},K=3e5},94611:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>i,POST:()=>h});var d=c(23211),e=c(92990);class f{constructor(){this.config=e.WN}generateChecksum(a){let b=Math.floor(Date.now()/1e3).toString(),c=165,d=[];for(let a=0;a<b.length;a++){let e=b.charCodeAt(a);d.push(e^c),c=c+e&255}let e=Buffer.from(d).toString("base64");return`${e},${a}`}buildHeaders(a,b,c=!1){let d=this.generateChecksum(b);return{Authorization:`Bearer ${a}`,"Content-Type":"application/connect+proto","Connect-Protocol-Version":"1","x-cursor-client-version":this.config.clientVersion,"x-cursor-client-type":this.config.clientType,"x-cursor-client-os":this.detectOS(),"x-cursor-client-arch":this.detectArch(),"x-cursor-client-device-type":"desktop","x-cursor-checksum":d,"x-ghost-mode":c?"true":"false"}}detectOS(){if("u">typeof process){let a=process.platform;if("win32"===a)return"windows";if("darwin"===a)return"macos"}return"linux"}detectArch(){if("u">typeof process){let a=process.arch;return"x64"===a?"x86_64":"arm64"===a?"aarch64":a}return"x86_64"}async validateImportToken(a,b){if(!a||"string"!=typeof a)throw Error("Access token is required");if(!b||"string"!=typeof b)throw Error("Machine ID is required");if(a.length<50)throw Error("Invalid token format. Token appears too short.");if(!/^[a-f0-9-]{32,}$/i.test(b.replace(/-/g,"")))throw Error("Invalid machine ID format. Expected UUID format.");return{accessToken:a,machineId:b,expiresIn:86400,authMethod:"imported"}}extractUserInfo(a){try{let b=a.split(".");if(3===b.length){let a=b[1];for(;a.length%4;)a+="=";let c=JSON.parse(Buffer.from(a.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString());return{email:c.email||c.sub,userId:c.sub||c.user_id}}}catch{}return null}getTokenStorageInstructions(){return{title:"How to get your Cursor token",steps:["1. Open Cursor IDE and make sure you're logged in","2. Find the state.vscdb file:",` - Linux: ${this.config.tokenStoragePaths.linux}`,` - macOS: ${this.config.tokenStoragePaths.macos}`,` - Windows: ${this.config.tokenStoragePaths.windows}`,"3. Open the database with SQLite browser or CLI:"," sqlite3 state.vscdb \"SELECT value FROM itemTable WHERE key='cursorAuth/accessToken'\"","4. Also get the machine ID:"," sqlite3 state.vscdb \"SELECT value FROM itemTable WHERE key='storage.serviceMachineId'\"","5. Paste both values in the form below"],alternativeMethod:["Or use this one-liner to get both values:","sqlite3 state.vscdb \"SELECT key, value FROM itemTable WHERE key IN ('cursorAuth/accessToken', 'storage.serviceMachineId')\""]}}}var g=c(71998);async function h(a){try{let{accessToken:b,machineId:c}=await a.json();if(!b||"string"!=typeof b)return d.NextResponse.json({error:"Access token is required"},{status:400});if(!c||"string"!=typeof c)return d.NextResponse.json({error:"Machine ID is required"},{status:400});let e=new f,h=await e.validateImportToken(b.trim(),c.trim()),i=e.extractUserInfo(h.accessToken),j=await (0,g.createProviderConnection)({provider:"cursor",authType:"oauth",accessToken:h.accessToken,refreshToken:null,expiresAt:new Date(Date.now()+1e3*h.expiresIn).toISOString(),email:i?.email||null,providerSpecificData:{machineId:h.machineId,authMethod:"imported",provider:"Imported",userId:i?.userId},testStatus:"active"});return d.NextResponse.json({success:!0,connection:{id:j.id,provider:j.provider,email:j.email}})}catch(a){return console.log("Cursor import token error:",a),d.NextResponse.json({error:a.message},{status:500})}}async function i(){let a=new f().getTokenStorageInstructions();return d.NextResponse.json({provider:"cursor",method:"import_token",instructions:a,requiredFields:[{name:"accessToken",label:"Access Token",description:"From cursorAuth/accessToken in state.vscdb",type:"textarea"},{name:"machineId",label:"Machine ID",description:"From storage.serviceMachineId in state.vscdb",type:"text"}]})}},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717,3750,6070],()=>b(b.s=39726));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=204,a.ids=[204,1998],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")},3662:(a,b,c)=>{c.d(b,{EQ:()=>f,LY:()=>d,O:()=>e,fh:()=>h,t2:()=>i,wf:()=>g});let d={400:{type:"invalid_request_error",code:"bad_request"},401:{type:"authentication_error",code:"invalid_api_key"},402:{type:"billing_error",code:"payment_required"},403:{type:"permission_error",code:"insufficient_quota"},404:{type:"invalid_request_error",code:"model_not_found"},406:{type:"invalid_request_error",code:"model_not_supported"},429:{type:"rate_limit_error",code:"rate_limit_exceeded"},500:{type:"server_error",code:"internal_server_error"},502:{type:"server_error",code:"bad_gateway"},503:{type:"server_error",code:"service_unavailable"},504:{type:"server_error",code:"gateway_timeout"}},e={400:"Bad request",401:"Invalid API key provided",402:"Payment required",403:"You exceeded your current quota",404:"Model not found",406:"Model not supported",429:"Rate limit exceeded",500:"Internal server error",502:"Bad gateway - upstream provider error",503:"Service temporarily unavailable",504:"Gateway timeout"},f={base:2e3,max:3e5,maxLevel:15},g=3e4,h=18e5,i=[{provider:"codex",text:"model is not supported when using codex with a chatgpt account",cooldownMs:18e5},{text:"no credentials",cooldownMs:12e4},{text:"request not allowed",cooldownMs:5e3},{text:"improperly formed request",cooldownMs:12e4},{text:"rate limit",backoff:!0},{text:"too many requests",backoff:!0},{text:"quota exceeded",backoff:!0},{text:"insufficient_quota",backoff:!0},{text:"insufficient quota",backoff:!0},{text:"exceeded your current quota",backoff:!0},{text:"exceeded your quota",backoff:!0},{text:"credit balance",cooldownMs:12e4},{text:"insufficient credit",cooldownMs:12e4},{text:"insufficient balance",cooldownMs:12e4},{text:"insufficient_balance",cooldownMs:12e4},{text:"billing",cooldownMs:12e4},{text:"capacity",backoff:!0},{text:"overloaded",backoff:!0},{status:401,cooldownMs:12e4},{status:402,cooldownMs:12e4},{status:403,cooldownMs:12e4},{status:404,cooldownMs:12e4},{status:429,backoff:!0}]},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},41004:(a,b,c)=>{c.d(b,{C8:()=>s,DR:()=>r,Ey:()=>k,IK:()=>m,Kv:()=>j,Ps:()=>g,SA:()=>p,Uc:()=>n,Z1:()=>i,ZL:()=>t,cI:()=>q,eo:()=>o,gx:()=>d,jk:()=>u,pH:()=>l,v1:()=>e,xM:()=>h}),c(3662);let d={BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,NOT_ACCEPTABLE:406,REQUEST_TIMEOUT:408,RATE_LIMITED:429,SERVER_ERROR:500,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504},e={sessionTtlMs:72e5,sessionCleanupIntervalMs:18e5,dnsCacheTtlMs:3e5,proxyDispatchersMaxSize:20};function f(a,b){let c=process.env[a];if(null==c||""===c)return b;let d=parseInt(c,10);return Number.isFinite(d)&&d>0?d:b}let g=process.env.SEARXNG_URL?.trim()||"http://localhost:8888/search",h=f("STREAM_STALL_TIMEOUT_MS",36e4),i=f("STREAM_FIRST_CHUNK_TIMEOUT_MS",2e5),j=f("UPSTREAM_MAX_BODY_BYTES",0x2000000),k=f("UPSTREAM_TOTAL_TIMEOUT_MS",18e5),l=f("FETCH_CONNECT_TIMEOUT_MS",6e4),m=f("GEMINI_NATIVE_TTS_FETCH_TIMEOUT_MS",45e3),n=64e3,o=32e3,p="x-omnihilbras-token-saver",q={429:{attempts:0,delayMs:0},502:{attempts:3,delayMs:3e3},503:{attempts:3,delayMs:2e3},504:{attempts:2,delayMs:3e3}};function r(a){return null==a?{attempts:0,delayMs:2e3}:"number"==typeof a?{attempts:a,delayMs:2e3}:{attempts:a.attempts||0,delayMs:null!=a.delayMs?a.delayMs:2e3}}let s=["Please write a 5-10 word title for the following conversation:"],t={candidates:[{flavor:"openai-billing",path:"/dashboard/billing/subscription"},{flavor:"openai-billing",path:"/dashboard/billing/usage"},{flavor:"new-api",path:"/api/user/self"}],usageWindowDays:30,unsupportedTtlMs:f("AGGREGATOR_UNSUPPORTED_TTL_MS",6e5),newApiQuotaPerUnit:5e5,fetchTimeoutMs:1e4},u={supabaseUrl:process.env.AGGREGATOR_WALLET_SUPABASE_URL,anonKey:process.env.AGGREGATOR_WALLET_ANON_KEY,authBaseUrl:process.env.AGGREGATOR_WALLET_AUTH_BASE_URL,walletTable:"wallets",walletColumns:["balance_paid","balance_trial","balance_bonus","balance_bonus_locked"],lockedColumn:"balance_bonus_locked"}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},75606:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/cursor/import/route",pathname:"/api/oauth/cursor/import",filename:"route",bundlePath:"app/api/oauth/cursor/import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/cursor/import/route.js",nextConfigOutput:"standalone",userland:()=>c(94611),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/cursor/import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},92990:(a,b,c)=>{c.d(b,{DI:()=>i,DV:()=>A,LT:()=>j,MZ:()=>v,Nl:()=>z,Nu:()=>p,OV:()=>h,RY:()=>I,S6:()=>s,SK:()=>F,Td:()=>B,Tx:()=>q,WN:()=>t,Ww:()=>K,YT:()=>n,Z2:()=>J,ZL:()=>m,_0:()=>H,aV:()=>u,cD:()=>o,eD:()=>G,f7:()=>y,hF:()=>k,lB:()=>w,oe:()=>E,qp:()=>C,sA:()=>D,t3:()=>l,w1:()=>x});var d=c(21820),e=c(74129),f=c(3689);function g(){let a=(0,d.platform)(),b=(0,d.arch)();return"darwin"===a?"arm64"===b?2:1:"linux"===a?"arm64"===b?4:3:5*("win32"===a)}let h={...f.sr.claude},i={...f.sr.codex},j={...e.dG,...f.sr["gemini-cli"]},k={...f.sr.qoder},l={...f.sr["qoder-cn"]},m={...f.sr.iflow},n={...e.XP,...f.sr.antigravity,loadCodeAssistClientMetadata:JSON.stringify({ideType:9,platform:g(),pluginType:2})};function o(){return{ideType:9,platform:g(),pluginType:2}}({...f.sr.openai});let p={...f.sr.github},q={...f.sr.kiro},r=/^[a-z]{2}-[a-z]+-\d{1,2}$/;function s(a){if("string"!=typeof a||!r.test(a))throw Error("Invalid region");return a}let t={...f.sr.cursor,tokenStoragePaths:{linux:"~/.config/Cursor/User/globalStorage/state.vscdb",macos:"/Users/<user>/Library/Application Support/Cursor/User/globalStorage/state.vscdb",windows:"%APPDATA%\\Cursor\\User\\globalStorage\\state.vscdb"}},u={...f.sr.kimi,clientId:process.env.KIMI_CODING_OAUTH_CLIENT_ID||process.env.KIMI_OAUTH_CLIENT_ID||f.xq.kimi?.clientId||f.sr.kimi?.clientId},v={...f.sr.kilocode},w={...f.sr.cline},x={...f.sr.clinepass},y={...f.sr.gitlab},z={...f.sr["codebuddy-cn"]},A={...f.sr["codebuddy-intl"]},B={...f.sr.kimchi},C={...f.sr["grok-cli"]},D={...f.sr.muse},E={platformUrl:process.env.MIMO_PLATFORM_URL||"https://platform.xiaomimimo.com",defaultBaseUrl:"https://api.xiaomimimo.com/v1",kn:"mimocode",callbackPath:"/",timeoutMs:3e5},F={clientId:"ono9krqynydwx5",clientSecret:"-",loginGuidanceUrls:["https://api.marscode.com/cloudide/api/v3/trae/GetLoginGuidance","https://api.trae.ai/cloudide/api/v3/trae/GetLoginGuidance","https://www.trae.ai/cloudide/api/v3/trae/GetLoginGuidance"],apiOrigins:["https://api.marscode.com","https://api.trae.ai","https://www.trae.ai","https://www.marscode.com"],exchangeTokenPath:"/cloudide/api/v3/trae/oauth/ExchangeToken",getUserInfoPath:"/cloudide/api/v3/trae/GetUserInfo",authorizationPath:"/authorization",callbackPath:"/callback",minAppVersion:"3.5.54",defaultAppVersion:"3.5.54",defaultAppType:"stable",defaultPluginVersion:"local",defaultDeviceId:"0",userAgent:"Trae/1.0.0 antigravity-cockpit-tools",webUrl:"https://www.trae.ai",authScheme:"Cloud-IDE-JWT",tokenLifetimeDays:14,oauthTimeoutMs:6e5},G={clientId:"3GUryQ7ldAeKEuD2obYnppsnmj58eP5u",authBaseUrl:"https://www.windsurf.com",signInPath:"/windsurf/signin",registerApiBaseUrl:"https://register.windsurf.com",registerPath:"/exa.seat_management_pb.SeatManagementService/RegisterUser",oneTimeAuthPath:"/exa.seat_management_pb.SeatManagementService/GetOneTimeAuthToken",currentUserPath:"/exa.seat_management_pb.SeatManagementService/GetCurrentUser",planStatusPath:"/exa.seat_management_pb.SeatManagementService/GetPlanStatus",userStatusPath:"/exa.seat_management_pb.SeatManagementService/GetUserStatus",defaultApiServerUrl:"https://server.codeium.com",firebaseApiKey:"AIzaSyDsOl-1XpT5err0Tcn0TFFod1H8gVGIycY",callbackPath:"/windsurf-auth-callback",userAgent:"antigravity-cockpit-tools",oauthTimeoutMs:6e5},H={...f.sr.glm},I={webBaseUrl:"https://zed.dev",cloudBaseUrl:"https://cloud.zed.dev",llmBaseUrl:"https://cloud.zed.dev",defaultNativeAppPort:58443,oauthTimeoutMs:6e5},J={clientId:"hermes-cli",portalBaseUrl:"https://portal.nousresearch.com",deviceCodeUrl:"https://portal.nousresearch.com/api/oauth/device/code",tokenUrl:"https://portal.nousresearch.com/api/oauth/token",agentKeyUrl:"https://portal.nousresearch.com/api/oauth/agent-key",inferenceBaseUrl:"https://inference-api.nousresearch.com/v1",scope:"inference:invoke inference:mint_agent_key"},K=3e5},94611:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>i,POST:()=>h});var d=c(23211),e=c(92990);class f{constructor(){this.config=e.WN}generateChecksum(a){let b=Math.floor(Date.now()/1e3).toString(),c=165,d=[];for(let a=0;a<b.length;a++){let e=b.charCodeAt(a);d.push(e^c),c=c+e&255}let e=Buffer.from(d).toString("base64");return`${e},${a}`}buildHeaders(a,b,c=!1){let d=this.generateChecksum(b);return{Authorization:`Bearer ${a}`,"Content-Type":"application/connect+proto","Connect-Protocol-Version":"1","x-cursor-client-version":this.config.clientVersion,"x-cursor-client-type":this.config.clientType,"x-cursor-client-os":this.detectOS(),"x-cursor-client-arch":this.detectArch(),"x-cursor-client-device-type":"desktop","x-cursor-checksum":d,"x-ghost-mode":c?"true":"false"}}detectOS(){if("u">typeof process){let a=process.platform;if("win32"===a)return"windows";if("darwin"===a)return"macos"}return"linux"}detectArch(){if("u">typeof process){let a=process.arch;return"x64"===a?"x86_64":"arm64"===a?"aarch64":a}return"x86_64"}async validateImportToken(a,b){if(!a||"string"!=typeof a)throw Error("Access token is required");if(!b||"string"!=typeof b)throw Error("Machine ID is required");if(a.length<50)throw Error("Invalid token format. Token appears too short.");if(!/^[a-f0-9-]{32,}$/i.test(b.replace(/-/g,"")))throw Error("Invalid machine ID format. Expected UUID format.");return{accessToken:a,machineId:b,expiresIn:86400,authMethod:"imported"}}extractUserInfo(a){try{let b=a.split(".");if(3===b.length){let a=b[1];for(;a.length%4;)a+="=";let c=JSON.parse(Buffer.from(a.replace(/-/g,"+").replace(/_/g,"/"),"base64").toString());return{email:c.email||c.sub,userId:c.sub||c.user_id}}}catch{}return null}getTokenStorageInstructions(){return{title:"How to get your Cursor token",steps:["1. Open Cursor IDE and make sure you're logged in","2. Find the state.vscdb file:",` - Linux: ${this.config.tokenStoragePaths.linux}`,` - macOS: ${this.config.tokenStoragePaths.macos}`,` - Windows: ${this.config.tokenStoragePaths.windows}`,"3. Open the database with SQLite browser or CLI:"," sqlite3 state.vscdb \"SELECT value FROM itemTable WHERE key='cursorAuth/accessToken'\"","4. Also get the machine ID:"," sqlite3 state.vscdb \"SELECT value FROM itemTable WHERE key='storage.serviceMachineId'\"","5. Paste both values in the form below"],alternativeMethod:["Or use this one-liner to get both values:","sqlite3 state.vscdb \"SELECT key, value FROM itemTable WHERE key IN ('cursorAuth/accessToken', 'storage.serviceMachineId')\""]}}}var g=c(71998);async function h(a){try{let{accessToken:b,machineId:c}=await a.json();if(!b||"string"!=typeof b)return d.NextResponse.json({error:"Access token is required"},{status:400});if(!c||"string"!=typeof c)return d.NextResponse.json({error:"Machine ID is required"},{status:400});let e=new f,h=await e.validateImportToken(b.trim(),c.trim()),i=e.extractUserInfo(h.accessToken),j=await (0,g.createProviderConnection)({provider:"cursor",authType:"oauth",accessToken:h.accessToken,refreshToken:null,expiresAt:new Date(Date.now()+1e3*h.expiresIn).toISOString(),email:i?.email||null,providerSpecificData:{machineId:h.machineId,authMethod:"imported",provider:"Imported",userId:i?.userId},testStatus:"active"});return d.NextResponse.json({success:!0,connection:{id:j.id,provider:j.provider,email:j.email}})}catch(a){return console.log("Cursor import token error:",a),d.NextResponse.json({error:a.message},{status:500})}}async function i(){let a=new f().getTokenStorageInstructions();return d.NextResponse.json({provider:"cursor",method:"import_token",instructions:a,requiredFields:[{name:"accessToken",label:"Access Token",description:"From cursorAuth/accessToken in state.vscdb",type:"textarea"},{name:"machineId",label:"Machine ID",description:"From storage.serviceMachineId in state.vscdb",type:"text"}]})}},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717,3750,6070],()=>b(b.s=75606));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=4993,a.ids=[1998,4993],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},72013:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(71998);async function f(a){try{let b;try{b=await a.json()}catch{return d.NextResponse.json({error:"Invalid request body"},{status:400})}let{token:c,baseUrl:f}=b;if(!c?.trim())return d.NextResponse.json({error:"Personal Access Token is required"},{status:400});let g=(f?.trim()||"https://gitlab.com").replace(/\/$/,""),h=await fetch(`${g}/api/v4/user`,{headers:{"Private-Token":c.trim(),Accept:"application/json"}});if(!h.ok){let a=await h.text();return d.NextResponse.json({error:`GitLab token verification failed: ${a}`},{status:401})}let i=await h.json(),j=i.email||i.public_email||"";return await (0,e.createProviderConnection)({provider:"gitlab",authType:"oauth",accessToken:c.trim(),refreshToken:null,expiresAt:null,email:j,displayName:i.name||i.username||j,testStatus:"active",providerSpecificData:{username:i.username||"",email:j,name:i.name||"",baseUrl:g,authKind:"personal_access_token"}}),d.NextResponse.json({success:!0})}catch(a){return console.error("GitLab PAT auth error:",a),d.NextResponse.json({error:a.message},{status:500})}}},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},88534:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/gitlab/pat/route",pathname:"/api/oauth/gitlab/pat",filename:"route",bundlePath:"app/api/oauth/gitlab/pat/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/gitlab/pat/route.js",nextConfigOutput:"standalone",userland:()=>c(72013),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/gitlab/pat/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717],()=>b(b.s=88534));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=4993,a.ids=[1998,4993],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},72013:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(71998);async function f(a){try{let b;try{b=await a.json()}catch{return d.NextResponse.json({error:"Invalid request body"},{status:400})}let{token:c,baseUrl:f}=b;if(!c?.trim())return d.NextResponse.json({error:"Personal Access Token is required"},{status:400});let g=(f?.trim()||"https://gitlab.com").replace(/\/$/,""),h=await fetch(`${g}/api/v4/user`,{headers:{"Private-Token":c.trim(),Accept:"application/json"}});if(!h.ok){let a=await h.text();return d.NextResponse.json({error:`GitLab token verification failed: ${a}`},{status:401})}let i=await h.json(),j=i.email||i.public_email||"";return await (0,e.createProviderConnection)({provider:"gitlab",authType:"oauth",accessToken:c.trim(),refreshToken:null,expiresAt:null,email:j,displayName:i.name||i.username||j,testStatus:"active",providerSpecificData:{username:i.username||"",email:j,name:i.name||"",baseUrl:g,authKind:"personal_access_token"}}),d.NextResponse.json({success:!0})}catch(a){return console.error("GitLab PAT auth error:",a),d.NextResponse.json({error:a.message},{status:500})}}},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},94929:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/gitlab/pat/route",pathname:"/api/oauth/gitlab/pat",filename:"route",bundlePath:"app/api/oauth/gitlab/pat/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/gitlab/pat/route.js",nextConfigOutput:"standalone",userland:()=>c(72013),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/gitlab/pat/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717],()=>b(b.s=94929));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=6089,a.ids=[1998,6089],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},8161:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>g});var d=c(23211),e=c(71998),f=c(53129);async function g(a){let b,c;try{b=await a.json()}catch(a){return d.NextResponse.json({error:`Invalid JSON body: ${a.message}`},{status:400})}if(!Array.isArray(c=Array.isArray(b)?b:b&&"object"==typeof b&&Array.isArray(b.accounts)?b.accounts:b&&"object"==typeof b?[b]:null)||0===c.length)return d.NextResponse.json({error:"No accounts provided"},{status:400});let g=[],h=0,i=0;for(let a=0;a<c.length;a++){let b=c[a];try{if(!b||"object"!=typeof b||Array.isArray(b))throw Error("Item is not an object");let c=b.access_token||b.accessToken,d=b.refresh_token||b.refreshToken||null,i=b.id_token||b.idToken||null,j=b.email||null;if(!c||"string"!=typeof c)throw Error("Missing access_token / accessToken");j||(j=(0,f.pG)(i)||(0,f.J_)(c)||null);let k=b.expires_at||b.expiresAt||null,l=b.expires_in||b.expiresIn;!k&&"number"==typeof l&&l>0&&(k=new Date(Date.now()+1e3*l).toISOString());let m={authMethod:"device_code",...i?{idToken:i}:{},...j?{email:j}:{},...b.providerSpecificData||{}},n=await (0,e.createProviderConnection)({provider:"grok-cli",authType:"oauth",accessToken:c,refreshToken:d,expiresAt:k,email:j,displayName:b.displayName||b.name||void 0,providerSpecificData:m,testStatus:"active"});h++,g.push({index:a,ok:!0,id:n.id,email:n.email})}catch(b){i++,g.push({index:a,ok:!1,error:b.message})}}return d.NextResponse.json({total:c.length,success:h,failed:i,results:g})}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21258:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/grok-cli/bulk-import/route",pathname:"/api/oauth/grok-cli/bulk-import",filename:"route",bundlePath:"app/api/oauth/grok-cli/bulk-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/grok-cli/bulk-import/route.js",nextConfigOutput:"standalone",userland:()=>c(8161),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/grok-cli/bulk-import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},21820:a=>{a.exports=require("os")},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},53129:(a,b,c)=>{function d(a,b){let c,d=String(a||"").trim();if(!d)throw Error(`xai discovery ${b} is empty`);try{c=new URL(d)}catch(a){throw Error(`xai discovery ${b} is invalid: ${a.message}`)}if("https:"!==c.protocol)throw Error(`xai discovery ${b} must use https: ${d}`);let e=c.hostname.toLowerCase().trim();if("x.ai"!==e&&!e.endsWith(".x.ai"))throw Error(`xai discovery ${b} host ${e} is not on x.ai`);return d}function e(a){if(!a||"string"!=typeof a)return;let b=a.split(".");if(3===b.length)try{let a=b[1].replace(/-/g,"+").replace(/_/g,"/"),c=(4-a.length%4)%4,d=Buffer.from(a+"=".repeat(c),"base64").toString("utf8"),e=JSON.parse(d);return e.email||e.preferred_username||e.sub||void 0}catch{return}}function f(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=(4-c.length%4)%4,e=c+"=".repeat(d);return JSON.parse(Buffer.from(e,"base64").toString("utf8"))}catch{return null}}function g(a){let b=f(a);if(b)return b.email||b.preferred_username||b.sub||void 0}async function h(a){if(!a)return null;try{let b=await fetch("https://codewhisperer.us-east-1.amazonaws.com/ListAvailableProfiles",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({maxResults:10})});if(!b.ok)return null;let c=await b.json();return c.profiles?.find(a=>a.arn?.trim())?.arn?.trim()||null}catch{return null}}function i(a){let b=f(a);if(!b)return{};let c=b["https://api.openai.com/auth"]||{};return{email:b.email,chatgptAccountId:c.chatgpt_account_id||b.account_id,chatgptPlanType:c.chatgpt_plan_type||b.plan_type}}c.d(b,{J_:()=>g,YR:()=>i,gR:()=>h,js:()=>d,pG:()=>e})},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717],()=>b(b.s=21258));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=6089,a.ids=[1998,6089],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3101:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/grok-cli/bulk-import/route",pathname:"/api/oauth/grok-cli/bulk-import",filename:"route",bundlePath:"app/api/oauth/grok-cli/bulk-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/grok-cli/bulk-import/route.js",nextConfigOutput:"standalone",userland:()=>c(8161),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/grok-cli/bulk-import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},8161:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>g});var d=c(23211),e=c(71998),f=c(53129);async function g(a){let b,c;try{b=await a.json()}catch(a){return d.NextResponse.json({error:`Invalid JSON body: ${a.message}`},{status:400})}if(!Array.isArray(c=Array.isArray(b)?b:b&&"object"==typeof b&&Array.isArray(b.accounts)?b.accounts:b&&"object"==typeof b?[b]:null)||0===c.length)return d.NextResponse.json({error:"No accounts provided"},{status:400});let g=[],h=0,i=0;for(let a=0;a<c.length;a++){let b=c[a];try{if(!b||"object"!=typeof b||Array.isArray(b))throw Error("Item is not an object");let c=b.access_token||b.accessToken,d=b.refresh_token||b.refreshToken||null,i=b.id_token||b.idToken||null,j=b.email||null;if(!c||"string"!=typeof c)throw Error("Missing access_token / accessToken");j||(j=(0,f.pG)(i)||(0,f.J_)(c)||null);let k=b.expires_at||b.expiresAt||null,l=b.expires_in||b.expiresIn;!k&&"number"==typeof l&&l>0&&(k=new Date(Date.now()+1e3*l).toISOString());let m={authMethod:"device_code",...i?{idToken:i}:{},...j?{email:j}:{},...b.providerSpecificData||{}},n=await (0,e.createProviderConnection)({provider:"grok-cli",authType:"oauth",accessToken:c,refreshToken:d,expiresAt:k,email:j,displayName:b.displayName||b.name||void 0,providerSpecificData:m,testStatus:"active"});h++,g.push({index:a,ok:!0,id:n.id,email:n.email})}catch(b){i++,g.push({index:a,ok:!1,error:b.message})}}return d.NextResponse.json({total:c.length,success:h,failed:i,results:g})}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},53129:(a,b,c)=>{function d(a,b){let c,d=String(a||"").trim();if(!d)throw Error(`xai discovery ${b} is empty`);try{c=new URL(d)}catch(a){throw Error(`xai discovery ${b} is invalid: ${a.message}`)}if("https:"!==c.protocol)throw Error(`xai discovery ${b} must use https: ${d}`);let e=c.hostname.toLowerCase().trim();if("x.ai"!==e&&!e.endsWith(".x.ai"))throw Error(`xai discovery ${b} host ${e} is not on x.ai`);return d}function e(a){if(!a||"string"!=typeof a)return;let b=a.split(".");if(3===b.length)try{let a=b[1].replace(/-/g,"+").replace(/_/g,"/"),c=(4-a.length%4)%4,d=Buffer.from(a+"=".repeat(c),"base64").toString("utf8"),e=JSON.parse(d);return e.email||e.preferred_username||e.sub||void 0}catch{return}}function f(a){try{if(!a||"string"!=typeof a)return null;let b=a.split(".");if(3!==b.length)return null;let c=b[1].replace(/-/g,"+").replace(/_/g,"/"),d=(4-c.length%4)%4,e=c+"=".repeat(d);return JSON.parse(Buffer.from(e,"base64").toString("utf8"))}catch{return null}}function g(a){let b=f(a);if(b)return b.email||b.preferred_username||b.sub||void 0}async function h(a){if(!a)return null;try{let b=await fetch("https://codewhisperer.us-east-1.amazonaws.com/ListAvailableProfiles",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${a}`},body:JSON.stringify({maxResults:10})});if(!b.ok)return null;let c=await b.json();return c.profiles?.find(a=>a.arn?.trim())?.arn?.trim()||null}catch{return null}}function i(a){let b=f(a);if(!b)return{};let c=b["https://api.openai.com/auth"]||{};return{email:b.email,chatgptAccountId:c.chatgpt_account_id||b.account_id,chatgptPlanType:c.chatgpt_plan_type||b.plan_type}}c.d(b,{J_:()=>g,YR:()=>i,gR:()=>h,js:()=>d,pG:()=>e})},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717],()=>b(b.s=3101));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=2284,a.ids=[1998,2284],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},42370:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(71998);async function f(a){try{let{cookie:b}=await a.json();if(!b||"string"!=typeof b)return d.NextResponse.json({error:"Cookie is required"},{status:400});let c=b.trim();if(!c.includes("BXAuth="))return d.NextResponse.json({error:"Cookie must contain BXAuth field"},{status:400});let f=c;f.endsWith(";")||(f+=";");let g=await fetch("https://platform.iflow.cn/api/openapi/apikey",{method:"GET",headers:{Cookie:f,Accept:"application/json, text/plain, */*","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8","Accept-Encoding":"gzip, deflate, br",Connection:"keep-alive","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-origin"}});if(!g.ok){let a=await g.text();return d.NextResponse.json({error:`Failed to fetch API key info: ${a}`},{status:g.status})}let h=await g.json();if(!h.success)return d.NextResponse.json({error:`API key fetch failed: ${h.message}`},{status:400});let i=h.data;if(!i.name)return d.NextResponse.json({error:"Missing name in API key info"},{status:400});let j=await fetch("https://platform.iflow.cn/api/openapi/apikey",{method:"POST",headers:{Cookie:f,"Content-Type":"application/json",Accept:"application/json, text/plain, */*","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8","Accept-Encoding":"gzip, deflate, br",Connection:"keep-alive",Origin:"https://platform.iflow.cn",Referer:"https://platform.iflow.cn/"},body:JSON.stringify({name:i.name})});if(!j.ok){let a=await j.text();return d.NextResponse.json({error:`Failed to refresh API key: ${a}`},{status:j.status})}let k=await j.json();if(!k.success)return d.NextResponse.json({error:`API key refresh failed: ${k.message}`},{status:400});let l=k.data;if(!l.apiKey)return d.NextResponse.json({error:"Missing API key in response"},{status:400});let m=f.match(/BXAuth=([^;]+)/),n=m?m[1]:"",o=n?`BXAuth=${n};`:"",p=await (0,e.createProviderConnection)({provider:"iflow",authType:"cookie",name:l.name||i.name,email:l.name||i.name,apiKey:l.apiKey,providerSpecificData:{cookie:o,expireTime:l.expireTime},testStatus:"active",isActive:!0});return d.NextResponse.json({success:!0,connection:{id:p.id,provider:p.provider,email:p.email,apiKey:l.apiKey.substring(0,10)+"...",expireTime:l.expireTime}})}catch(a){return console.error("iFlow cookie auth error:",a),d.NextResponse.json({error:a.message},{status:500})}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},77914:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/iflow/cookie/route",pathname:"/api/oauth/iflow/cookie",filename:"route",bundlePath:"app/api/oauth/iflow/cookie/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/iflow/cookie/route.js",nextConfigOutput:"standalone",userland:()=>c(42370),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/iflow/cookie/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717],()=>b(b.s=77914));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=2284,a.ids=[1998,2284],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},9581:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/iflow/cookie/route",pathname:"/api/oauth/iflow/cookie",filename:"route",bundlePath:"app/api/oauth/iflow/cookie/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/iflow/cookie/route.js",nextConfigOutput:"standalone",userland:()=>c(42370),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/iflow/cookie/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},42370:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>f});var d=c(23211),e=c(71998);async function f(a){try{let{cookie:b}=await a.json();if(!b||"string"!=typeof b)return d.NextResponse.json({error:"Cookie is required"},{status:400});let c=b.trim();if(!c.includes("BXAuth="))return d.NextResponse.json({error:"Cookie must contain BXAuth field"},{status:400});let f=c;f.endsWith(";")||(f+=";");let g=await fetch("https://platform.iflow.cn/api/openapi/apikey",{method:"GET",headers:{Cookie:f,Accept:"application/json, text/plain, */*","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8","Accept-Encoding":"gzip, deflate, br",Connection:"keep-alive","Sec-Fetch-Dest":"empty","Sec-Fetch-Mode":"cors","Sec-Fetch-Site":"same-origin"}});if(!g.ok){let a=await g.text();return d.NextResponse.json({error:`Failed to fetch API key info: ${a}`},{status:g.status})}let h=await g.json();if(!h.success)return d.NextResponse.json({error:`API key fetch failed: ${h.message}`},{status:400});let i=h.data;if(!i.name)return d.NextResponse.json({error:"Missing name in API key info"},{status:400});let j=await fetch("https://platform.iflow.cn/api/openapi/apikey",{method:"POST",headers:{Cookie:f,"Content-Type":"application/json",Accept:"application/json, text/plain, */*","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36","Accept-Language":"zh-CN,zh;q=0.9,en;q=0.8","Accept-Encoding":"gzip, deflate, br",Connection:"keep-alive",Origin:"https://platform.iflow.cn",Referer:"https://platform.iflow.cn/"},body:JSON.stringify({name:i.name})});if(!j.ok){let a=await j.text();return d.NextResponse.json({error:`Failed to refresh API key: ${a}`},{status:j.status})}let k=await j.json();if(!k.success)return d.NextResponse.json({error:`API key refresh failed: ${k.message}`},{status:400});let l=k.data;if(!l.apiKey)return d.NextResponse.json({error:"Missing API key in response"},{status:400});let m=f.match(/BXAuth=([^;]+)/),n=m?m[1]:"",o=n?`BXAuth=${n};`:"",p=await (0,e.createProviderConnection)({provider:"iflow",authType:"cookie",name:l.name||i.name,email:l.name||i.name,apiKey:l.apiKey,providerSpecificData:{cookie:o,expireTime:l.expireTime},testStatus:"active",isActive:!0});return d.NextResponse.json({success:!0,connection:{id:p.id,provider:p.provider,email:p.email,apiKey:l.apiKey.substring(0,10)+"...",expireTime:l.expireTime}})}catch(a){return console.error("iFlow cookie auth error:",a),d.NextResponse.json({error:a.message},{status:500})}}},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717],()=>b(b.s=9581));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=1704,a.ids=[1704,1998],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},65454:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/kiro/api-key/route",pathname:"/api/oauth/kiro/api-key",filename:"route",bundlePath:"app/api/oauth/kiro/api-key/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/kiro/api-key/route.js",nextConfigOutput:"standalone",userland:()=>c(95062),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/kiro/api-key/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},95062:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>g});var d=c(23211),e=c(62409),f=c(71998);async function g(a){try{let{apiKey:b,region:c}=await a.json();if(!b||"string"!=typeof b||!b.trim())return d.NextResponse.json({error:"API key is required"},{status:400});let g=new e.v,h=await g.validateApiKey(b,c||"us-east-1"),i=g.extractEmailFromJWT(h.accessToken),j=await (0,f.createProviderConnection)({provider:"kiro",authType:"api_key",accessToken:h.accessToken,refreshToken:null,expiresAt:new Date(Date.now()+31536e6).toISOString(),email:i||null,providerSpecificData:{...h.profileArn?{profileArn:h.profileArn}:{},region:h.region,authMethod:"api_key",provider:"API Key"},testStatus:"active"});return d.NextResponse.json({success:!0,connection:{id:j.id,provider:j.provider,email:j.email}})}catch(a){return console.log("Kiro API key import error:",a),d.NextResponse.json({error:"API key validation failed"},{status:500})}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717,3750,6070,5908],()=>b(b.s=65454));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=1704,a.ids=[1704,1998],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},17897:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/kiro/api-key/route",pathname:"/api/oauth/kiro/api-key",filename:"route",bundlePath:"app/api/oauth/kiro/api-key/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/kiro/api-key/route.js",nextConfigOutput:"standalone",userland:()=>c(95062),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/kiro/api-key/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}},95062:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>g});var d=c(23211),e=c(62409),f=c(71998);async function g(a){try{let{apiKey:b,region:c}=await a.json();if(!b||"string"!=typeof b||!b.trim())return d.NextResponse.json({error:"API key is required"},{status:400});let g=new e.v,h=await g.validateApiKey(b,c||"us-east-1"),i=g.extractEmailFromJWT(h.accessToken),j=await (0,f.createProviderConnection)({provider:"kiro",authType:"api_key",accessToken:h.accessToken,refreshToken:null,expiresAt:new Date(Date.now()+31536e6).toISOString(),email:i||null,providerSpecificData:{...h.profileArn?{profileArn:h.profileArn}:{},region:h.region,authMethod:"api_key",provider:"API Key"},testStatus:"active"});return d.NextResponse.json({success:!0,connection:{id:j.id,provider:j.provider,email:j.email}})}catch(a){return console.log("Kiro API key import error:",a),d.NextResponse.json({error:"API key validation failed"},{status:500})}}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717,3750,6070,5908],()=>b(b.s=17897));module.exports=c})();
@@ -1 +1 @@
1
- (()=>{var a={};a.id=5107,a.ids=[5107],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")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16859:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>h});var d=c(23211),e=c(79748),f=c(21820),g=c(33873);async function h(){try{let a,b=(0,g.join)((0,f.homedir)(),".aws/sso/cache");try{a=await (0,e.readdir)(b)}catch(a){return d.NextResponse.json({found:!1,error:"AWS SSO cache not found. Please login to Kiro IDE first."})}let c=null,h=null,i=null,j="kiro-auth-token.json";if(a.includes(j))try{let a=await (0,e.readFile)((0,g.join)(b,j),"utf-8"),d=JSON.parse(a);d.refreshToken&&d.refreshToken.startsWith("aorAAAAAG")&&(c=d.refreshToken,h=j,i=d)}catch(a){}if(!c){for(let d of a)if(d.endsWith(".json"))try{let a=await (0,e.readFile)((0,g.join)(b,d),"utf-8"),f=JSON.parse(a);if(f.refreshToken&&f.refreshToken.startsWith("aorAAAAAG")){c=f.refreshToken,h=d,i=f;break}}catch(a){continue}}if(!c)return d.NextResponse.json({found:!1,error:"Kiro token not found in AWS SSO cache. Please login to Kiro IDE first."});let k=null,l=null,m=i?.region||null,n=i?.authMethod||null;if(i?.clientIdHash){let a=`${i.clientIdHash}.json`;try{let c=await (0,e.readFile)((0,g.join)(b,a),"utf-8"),d=JSON.parse(c);d.clientId&&d.clientSecret&&(k=d.clientId,l=d.clientSecret)}catch(a){}}let o=null;for(let a of[(0,g.join)(process.env.APPDATA||(0,g.join)((0,f.homedir)(),"AppData","Roaming"),"Kiro","User","globalStorage","kiro.kiroagent","profile.json"),(0,g.join)((0,f.homedir)(),".config","Kiro","User","globalStorage","kiro.kiroagent","profile.json")])try{let b=await (0,e.readFile)(a,"utf-8"),c=JSON.parse(b);if(c.arn){o=c.arn.replace(/arn:aws:codewhisperer:[^:]+:/,"arn:aws:codewhisperer:us-east-1:");break}}catch(a){continue}return d.NextResponse.json({found:!0,refreshToken:c,source:h,clientId:k,clientSecret:l,region:m,authMethod:n,profileArn:o})}catch(a){return console.log("Kiro auto-import error:",a),d.NextResponse.json({found:!1,error:a.message},{status:500})}}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},31466:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/kiro/auto-import/route",pathname:"/api/oauth/kiro/auto-import",filename:"route",bundlePath:"app/api/oauth/kiro/auto-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/kiro/auto-import/route.js",nextConfigOutput:"standalone",userland:()=>c(16859),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/kiro/auto-import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},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")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813],()=>b(b.s=31466));module.exports=c})();
1
+ (()=>{var a={};a.id=5107,a.ids=[5107],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")},8128:a=>{"use strict";a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},16859:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>h});var d=c(23211),e=c(79748),f=c(21820),g=c(33873);async function h(){try{let a,b=(0,g.join)((0,f.homedir)(),".aws/sso/cache");try{a=await (0,e.readdir)(b)}catch(a){return d.NextResponse.json({found:!1,error:"AWS SSO cache not found. Please login to Kiro IDE first."})}let c=null,h=null,i=null,j="kiro-auth-token.json";if(a.includes(j))try{let a=await (0,e.readFile)((0,g.join)(b,j),"utf-8"),d=JSON.parse(a);d.refreshToken&&d.refreshToken.startsWith("aorAAAAAG")&&(c=d.refreshToken,h=j,i=d)}catch(a){}if(!c){for(let d of a)if(d.endsWith(".json"))try{let a=await (0,e.readFile)((0,g.join)(b,d),"utf-8"),f=JSON.parse(a);if(f.refreshToken&&f.refreshToken.startsWith("aorAAAAAG")){c=f.refreshToken,h=d,i=f;break}}catch(a){continue}}if(!c)return d.NextResponse.json({found:!1,error:"Kiro token not found in AWS SSO cache. Please login to Kiro IDE first."});let k=null,l=null,m=i?.region||null,n=i?.authMethod||null;if(i?.clientIdHash){let a=`${i.clientIdHash}.json`;try{let c=await (0,e.readFile)((0,g.join)(b,a),"utf-8"),d=JSON.parse(c);d.clientId&&d.clientSecret&&(k=d.clientId,l=d.clientSecret)}catch(a){}}let o=null;for(let a of[(0,g.join)(process.env.APPDATA||(0,g.join)((0,f.homedir)(),"AppData","Roaming"),"Kiro","User","globalStorage","kiro.kiroagent","profile.json"),(0,g.join)((0,f.homedir)(),".config","Kiro","User","globalStorage","kiro.kiroagent","profile.json")])try{let b=await (0,e.readFile)(a,"utf-8"),c=JSON.parse(b);if(c.arn){o=c.arn.replace(/arn:aws:codewhisperer:[^:]+:/,"arn:aws:codewhisperer:us-east-1:");break}}catch(a){continue}return d.NextResponse.json({found:!0,refreshToken:c,source:h,clientId:k,clientSecret:l,region:m,authMethod:n,profileArn:o})}catch(a){return console.log("Kiro auto-import error:",a),d.NextResponse.json({found:!1,error:a.message},{status:500})}}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{"use strict";a.exports=require("os")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},37245:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/kiro/auto-import/route",pathname:"/api/oauth/kiro/auto-import",filename:"route",bundlePath:"app/api/oauth/kiro/auto-import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/kiro/auto-import/route.js",nextConfigOutput:"standalone",userland:()=>c(16859),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/kiro/auto-import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},44870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{"use strict";a.exports=require("crypto")},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},78335:()=>{},79748:a=>{"use strict";a.exports=require("fs/promises")},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},96487:()=>{}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813],()=>b(b.s=37245));module.exports=c})();
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=7429,a.ids=[1998,7429],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11319:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>g});var d=c(23211),e=c(62409),f=c(71998);async function g(a){try{let{refreshToken:b,clientId:c,clientSecret:g,region:h,authMethod:i,profileArn:j}=await a.json();if(!b||"string"!=typeof b)return d.NextResponse.json({error:"Refresh token is required"},{status:400});let k=new e.v,l=!!(c&&g),m=await k.refreshToken(b.trim(),l?{clientId:c,clientSecret:g,region:h||"us-east-1",authMethod:"idc"}:{}),n=k.extractEmailFromJWT(m.accessToken),o=j||m.profileArn||null,p=await (0,f.createProviderConnection)({provider:"kiro",authType:"oauth",accessToken:m.accessToken,refreshToken:m.refreshToken||b.trim(),expiresAt:new Date(Date.now()+1e3*(m.expiresIn||3600)).toISOString(),email:n||null,providerSpecificData:{profileArn:o,authMethod:l?"idc":"imported",provider:l?"Enterprise":"Imported",...l?{clientId:c,clientSecret:g,region:h||"us-east-1"}:{}},testStatus:"active"});return d.NextResponse.json({success:!0,connection:{id:p.id,provider:p.provider,email:p.email}})}catch(a){return console.log("Kiro import token error:",a),d.NextResponse.json({error:a.message},{status:500})}}},16582:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/kiro/import/route",pathname:"/api/oauth/kiro/import",filename:"route",bundlePath:"app/api/oauth/kiro/import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/kiro/import/route.js",nextConfigOutput:"standalone",userland:()=>c(11319),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/kiro/import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717,3750,6070,5908],()=>b(b.s=16582));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=7429,a.ids=[1998,7429],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")},8128:a=>{a.exports=require("next/dist/server/runtime-reacts.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11319:(a,b,c)=>{c.r(b),c.d(b,{POST:()=>g});var d=c(23211),e=c(62409),f=c(71998);async function g(a){try{let{refreshToken:b,clientId:c,clientSecret:g,region:h,authMethod:i,profileArn:j}=await a.json();if(!b||"string"!=typeof b)return d.NextResponse.json({error:"Refresh token is required"},{status:400});let k=new e.v,l=!!(c&&g),m=await k.refreshToken(b.trim(),l?{clientId:c,clientSecret:g,region:h||"us-east-1",authMethod:"idc"}:{}),n=k.extractEmailFromJWT(m.accessToken),o=j||m.profileArn||null,p=await (0,f.createProviderConnection)({provider:"kiro",authType:"oauth",accessToken:m.accessToken,refreshToken:m.refreshToken||b.trim(),expiresAt:new Date(Date.now()+1e3*(m.expiresIn||3600)).toISOString(),email:n||null,providerSpecificData:{profileArn:o,authMethod:l?"idc":"imported",provider:l?"Enterprise":"Imported",...l?{clientId:c,clientSecret:g,region:h||"us-east-1"}:{}},testStatus:"active"});return d.NextResponse.json({success:!0,connection:{id:p.id,provider:p.provider,email:p.email}})}catch(a){return console.log("Kiro import token error:",a),d.NextResponse.json({error:a.message},{status:500})}}},19121:a=>{a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},21820:a=>{a.exports=require("os")},27393:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>A,patchFetch:()=>z,routeModule:()=>v,serverHooks:()=>y,workAsyncStorage:()=>w,workUnitAsyncStorage:()=>x});var d=c(19225),e=c(84006),f=c(8317),g=c(99373),h=c(34775),i=c(24235),j=c(261),k=c(54365),l=c(90771),m=c(73461),n=c(67798),o=c(92280),p=c(62018),q=c(45696),r=c(47929),s=c(86439),t=c(10246),u=c(37527);let v=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/oauth/kiro/import/route",pathname:"/api/oauth/kiro/import",filename:"route",bundlePath:"app/api/oauth/kiro/import/route"},distDir:".next-cli-build",relativeProjectDir:"",resolvedPagePath:"/home/gin/work/Hilbras/OmniHilbras/src/app/api/oauth/kiro/import/route.js",nextConfigOutput:"standalone",userland:()=>c(11319),...{}}),{workAsyncStorage:w,workUnitAsyncStorage:x,serverHooks:y}=v;function z(){return(0,f.patchFetch)({workAsyncStorage:w,workUnitAsyncStorage:x})}async function A(a,b,c){c.requestMeta&&(0,g.setRequestMeta)(a,c.requestMeta),v.isDev&&(0,g.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/oauth/kiro/import/route";"/index"===d&&(d="/");let f=await v.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!f)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:w,deploymentId:x,params:y,nextConfig:z,parsedUrl:A,isDraftMode:B,prerenderManifest:C,routerServerContext:D,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,resolvedPathname:G,clientReferenceManifest:H,serverActionsManifest:I,previewProps:J}=f,K=(0,j.normalizeAppPath)(d),L=!!C.routes[G]&&(v.isDev||(0,t.isRouteCacheOwner)(G,v.cacheOwner,C.routes[G])),M=!!(C.dynamicRoutes[K]||L),N=async()=>((null==D?void 0:D.render404)?await D.render404(a,b,A,!1):b.end("This page could not be found"),null);if(M&&!B){let a=C.dynamicRoutes[K];if(a&&!1===a.fallback&&!L){if(z.adapterPath)return await N();throw new s.NoFallbackError}}let O=null;!M||v.isDev||B||(O="/index"===(O=G)?"/":O),I&&H&&(0,i.setManifestsSingleton)({page:d,clientReferenceManifest:H,serverActionsManifest:I});let P=a.method||"GET",Q=(0,h.getTracer)(),R=Q.getActiveScopeSpan(),S=!!(null==D?void 0:D.isWrappedByNextServer),T=!!(0,g.getRequestMeta)(a,"minimalMode"),U=(0,g.getRequestMeta)(a,"incrementalCache")||await v.getIncrementalCache(a,z,J,C,T);null==U||U.resetRequestCache(),globalThis.__incrementalCache=U;let V={params:y,previewProps:J,renderOpts:{experimental:{authInterrupts:!!z.experimental.authInterrupts,useCacheTimeout:z.experimental.useCacheTimeout,durableUseCacheEntries:!!z.experimental.durableUseCacheEntries},cacheComponents:!!z.cacheComponents,validationLevel:z.experimental.instantInsights.validationLevel,isDraftMode:B,incrementalCache:U,hmrRefreshHash:(0,g.getRequestMeta)(a,"hmrRefreshHash"),cacheLifeProfiles:z.cacheLife,staticPageGenerationTimeout:z.staticPageGenerationTimeout,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0},sharedContext:{buildId:w,deploymentId:x}},W=new k.NodeNextRequest(a),X=new k.NodeNextResponse(b),Y=l.NextRequestAdapter.fromNodeNextRequest(W,(0,l.signalFromNodeResponse)(b)),Z=async({previousCacheEntry:e})=>{try{if(!T&&E&&F&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=null===O?await v.handle(Y,V):await v.prerender(Y,V);a.fetchMetrics=V.renderOpts.fetchMetrics;let f=V.renderOpts.pendingWaitUntil;f&&c.waitUntil&&(c.waitUntil(f),f=void 0);let g=V.renderOpts.collectedTags;if(!M)return await (0,o.I)(W,X,d,f),null;{let a=await d.blob(),b=(0,p.toNodeOutgoingHttpHeaders)(d.headers);g&&(b[r.NEXT_CACHE_TAGS_HEADER]=g),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==V.renderOpts.collectedRevalidate&&!(V.renderOpts.collectedRevalidate>=r.INFINITE_CACHE)&&V.renderOpts.collectedRevalidate,e=void 0===V.renderOpts.collectedExpire||V.renderOpts.collectedExpire>=r.INFINITE_CACHE?!1!==c&&c>0?z.expireTime:void 0:V.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==e?void 0:e.isStale)&&await v.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),b}},$=async(d,f)=>{try{var g,i;let d=await v.handleResponse({req:a,nextConfig:z,cacheKey:O,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,previewProps:J,prerenderManifest:C,isRoutePPREnabled:!1,isOnDemandRevalidate:E,revalidateOnlyGenerated:F,responseGenerator:Z,waitUntil:c.waitUntil,isMinimalMode:T});if(null!==d&&"error"in d)throw d.error;if(!M)return;if((null==d||null==(g=d.value)?void 0:g.kind)!==u.CachedRouteKind.APP_ROUTE)throw Error(`Invariant: app-route received invalid cache entry ${null==d||null==(i=d.value)?void 0:i.kind}`);T||b.setHeader("x-nextjs-cache",E?"REVALIDATED":d.isMiss?"MISS":d.isStale?"STALE":"HIT"),B&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let f=(0,p.fromNodeOutgoingHttpHeaders)(d.value.headers);T&&M||f.delete(r.NEXT_CACHE_TAGS_HEADER),!d.cacheControl||b.getHeader("Cache-Control")||f.get("Cache-Control")||f.set("Cache-Control",(0,q.getCacheControlHeader)(d.cacheControl)),await (0,o.I)(W,X,new Response(d.value.body,{headers:f,status:d.value.status||200}));return}catch(c){if(c instanceof s.NoFallbackError||await v.onRequestError(a,c,{routerKind:"App Router",routePath:K,routeType:"route",revalidateReason:(0,n.getRevalidateReason)({isStaticGeneration:null!==O,isOnDemandRevalidate:E})},!1,D),M)throw c;if(b.headersSent){if(d){let a=c instanceof Error?c:Error("Unknown app route error");d.recordException(a),d.setStatus({code:h.SpanStatusCode.ERROR,message:a.message}),d.setAttribute("error.type",a.name)}b.writableEnded||b.destroyed||b.end()}else await (0,o.I)(W,X,new Response(null,{status:500}));return}finally{(()=>{if(!d)return;let a=b.statusCode;d.setAttributes({"http.status_code":a,"next.rsc":!1}),a&&a>=500&&(d.setStatus({code:h.SpanStatusCode.ERROR}),d.setAttribute("error.type",a.toString()));let c=Q.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==m.BaseServerSpan.handleRequest)return console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=c.get("next.route")||K,g=`${P} ${e}`;d.setAttributes({"next.route":e,"http.route":e,"next.span_name":g}),d.updateName(g),f&&f!==d&&(f.setAttribute("http.route",e),f.updateName(g))})()}};if(S&&R)await $(R,void 0);else{let b=Q.getActiveScopeSpan();await Q.withPropagatedContext(a.headers,()=>Q.trace(m.BaseServerSpan.handleRequest,{spanName:`${P} ${d}`,kind:h.SpanKind.SERVER,attributes:{"http.method":P,"http.target":a.url}},a=>$(a,b)),void 0,!S)}}},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")},46293:a=>{a.exports=require("sql.js")},50122:(a,b,c)=>{c.d(b,{k:()=>e});let d=[];for(let a=0;a<256;++a)d.push((a+256).toString(16).slice(1));function e(a,b=0){return(d[a[b+0]]+d[a[b+1]]+d[a[b+2]]+d[a[b+3]]+"-"+d[a[b+4]]+d[a[b+5]]+"-"+d[a[b+6]]+d[a[b+7]]+"-"+d[a[b+8]]+d[a[b+9]]+"-"+d[a[b+10]]+d[a[b+11]]+d[a[b+12]]+d[a[b+13]]+d[a[b+14]]+d[a[b+15]]).toLowerCase()}},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},71998:(a,b,c)=>{c.d(b,{Fh:()=>d.Fh,L9:()=>d.L9,Mc:()=>d.getProviderConnectionById,OM:()=>d.OM,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Yd:()=>d.Yd,ZO:()=>d.ZO,c:()=>d.c,createProviderConnection:()=>d.iE,fK:()=>d.fK,fv:()=>d.fv,getProviderConnections:()=>d.getProviderConnections,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,o5:()=>d.o5,op:()=>d.op,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.updateProviderConnection,uv:()=>d.uv});var d=c(89718)},73024:a=>{a.exports=require("node:fs")},76760:a=>{a.exports=require("node:path")},77598:a=>{a.exports=require("node:crypto")},79868:a=>{a.exports=require("node:sqlite")},81787:a=>{a.exports=require("bun:sqlite")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},87550:a=>{a.exports=require("better-sqlite3")},89718:(a,b,c)=>{c.d(b,{CG:()=>d.CG,Dj:()=>d.Dj,Fh:()=>d.Fh,Iq:()=>d.Iq,K1:()=>d.K1,KJ:()=>d.KJ,L:()=>d.L,L9:()=>d.L9,Lh:()=>d.Lh,OM:()=>d.OM,PX:()=>d.PX,Pc:()=>d.Pc,Q_:()=>d.Q_,Qu:()=>d.Qu,S8:()=>d.S8,Uv:()=>d.Uv,VT:()=>d.VT,XW:()=>d.XW,Xx:()=>d.Xx,Yd:()=>d.Yd,ZO:()=>d.ZO,bI:()=>d.bI,c:()=>d.c,ek:()=>d.ek,fK:()=>d.fK,fv:()=>d.fv,getProviderConnectionById:()=>d.Mc,getProviderConnections:()=>d.P,ho:()=>d.ho,hr:()=>d.hr,i0:()=>d.i0,iE:()=>d.iE,jd:()=>d.jd,mt:()=>d.mt,o5:()=>d.o5,oG:()=>d.oG,op:()=>d.op,r4:()=>d.r4,uL:()=>d.uL,ui:()=>d.ui,updateProviderConnection:()=>d.rj,uv:()=>d.uv,yF:()=>d.yF,yg:()=>d.yg,zP:()=>d.zP,zw:()=>d.zw});var d=c(73129)},94735:a=>{a.exports=require("events")},94755:(a,b,c)=>{c.d(b,{A:()=>i});var d=c(77598);let e={randomUUID:d.randomUUID},f=new Uint8Array(256),g=f.length;var h=c(50122);let i=function(a,b,c){if(e.randomUUID&&!b&&!a)return e.randomUUID();var i=a,j=c;let k=(i=i||{}).random??i.rng?.()??(g>f.length-16&&((0,d.randomFillSync)(f),g=0),f.slice(g,g+=16));if(k.length<16)throw Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,b){if((j=j||0)<0||j+16>b.length)throw RangeError(`UUID byte range ${j}:${j+15} is out of buffer bounds`);for(let a=0;a<16;++a)b[j+a]=k[a];return b}return(0,h.k)(k)}}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[2970,1813,6717,3750,6070,5908],()=>b(b.s=27393));module.exports=c})();