@sifxprime/krouter 0.5.146 → 0.5.148

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 (245) hide show
  1. package/app/.next-cli-build/BUILD_ID +1 -1
  2. package/app/.next-cli-build/app-path-routes-manifest.json +10 -10
  3. package/app/.next-cli-build/build-manifest.json +2 -2
  4. package/app/.next-cli-build/prerender-manifest.json +19 -19
  5. package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
  6. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
  7. package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
  8. package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
  9. package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
  10. package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
  11. package/app/.next-cli-build/server/app/(dashboard)/dashboard/environment/page_client-reference-manifest.js +1 -1
  12. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +1 -1
  13. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
  14. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
  15. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
  16. package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
  17. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
  18. package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
  19. package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  20. package/app/.next-cli-build/server/app/(dashboard)/dashboard/presidio/page_client-reference-manifest.js +1 -1
  21. package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
  22. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +2 -2
  23. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
  24. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
  25. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
  26. package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
  27. package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
  28. package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
  29. package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
  30. package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
  31. package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
  32. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
  33. package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
  34. package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
  35. package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
  36. package/app/.next-cli-build/server/app/_global-error.html +1 -1
  37. package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
  38. package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
  39. package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  40. package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  41. package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
  42. package/app/.next-cli-build/server/app/_not-found.html +1 -1
  43. package/app/.next-cli-build/server/app/_not-found.rsc +4 -4
  44. package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +4 -4
  45. package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +4 -4
  46. package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  47. package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +1 -1
  48. package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +1 -1
  49. package/app/.next-cli-build/server/app/api/import/route.js +1 -1
  50. package/app/.next-cli-build/server/app/api/models/route.js +1 -1
  51. package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
  52. package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
  53. package/app/.next-cli-build/server/app/api/pxpipe/health/route.js +2 -2
  54. package/app/.next-cli-build/server/app/api/pxpipe/install/route.js +2 -2
  55. package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js +2 -2
  56. package/app/.next-cli-build/server/app/api/pxpipe/start/route.js +2 -2
  57. package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js +2 -2
  58. package/app/.next-cli-build/server/app/api/pxpipe/status/route.js +2 -2
  59. package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js +2 -2
  60. package/app/.next-cli-build/server/app/api/settings/environment/route.js +1 -1
  61. package/app/.next-cli-build/server/app/api/settings/presidio/route.js +1 -1
  62. package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
  63. package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
  64. package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
  65. package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
  66. package/app/.next-cli-build/server/app/api/version/route.js +1 -1
  67. package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
  68. package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
  69. package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
  70. package/app/.next-cli-build/server/app/callback.html +1 -1
  71. package/app/.next-cli-build/server/app/callback.rsc +4 -4
  72. package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +4 -4
  73. package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +2 -2
  74. package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +4 -4
  75. package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
  76. package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +6 -6
  77. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +6 -6
  78. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +6 -6
  79. package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +2 -2
  80. package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
  81. package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
  82. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
  83. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
  84. package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +2 -2
  85. package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
  86. package/app/.next-cli-build/server/app/dashboard/combos.rsc +6 -6
  87. package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +6 -6
  88. package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +6 -6
  89. package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +2 -2
  90. package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
  91. package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +6 -6
  92. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +6 -6
  93. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +6 -6
  94. package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +2 -2
  95. package/app/.next-cli-build/server/app/dashboard/environment.html +1 -1
  96. package/app/.next-cli-build/server/app/dashboard/environment.rsc +6 -6
  97. package/app/.next-cli-build/server/app/dashboard/environment.segments/!KGRhc2hib2FyZCk/dashboard/environment/__PAGE__.segment.rsc +6 -6
  98. package/app/.next-cli-build/server/app/dashboard/environment.segments/_full.segment.rsc +6 -6
  99. package/app/.next-cli-build/server/app/dashboard/environment.segments/_tree.segment.rsc +2 -2
  100. package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
  101. package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +6 -6
  102. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +6 -6
  103. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +6 -6
  104. package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +2 -2
  105. package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
  106. package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
  107. package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
  108. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
  109. package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +2 -2
  110. package/app/.next-cli-build/server/app/dashboard/presidio.html +1 -1
  111. package/app/.next-cli-build/server/app/dashboard/presidio.rsc +6 -6
  112. package/app/.next-cli-build/server/app/dashboard/presidio.segments/!KGRhc2hib2FyZCk/dashboard/presidio/__PAGE__.segment.rsc +6 -6
  113. package/app/.next-cli-build/server/app/dashboard/presidio.segments/_full.segment.rsc +6 -6
  114. package/app/.next-cli-build/server/app/dashboard/presidio.segments/_tree.segment.rsc +2 -2
  115. package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
  116. package/app/.next-cli-build/server/app/dashboard/profile.rsc +6 -6
  117. package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +6 -6
  118. package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +6 -6
  119. package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +2 -2
  120. package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
  121. package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +6 -6
  122. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +6 -6
  123. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +6 -6
  124. package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +2 -2
  125. package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
  126. package/app/.next-cli-build/server/app/dashboard/providers.rsc +6 -6
  127. package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +6 -6
  128. package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +6 -6
  129. package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +2 -2
  130. package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
  131. package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +6 -6
  132. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +6 -6
  133. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +6 -6
  134. package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +2 -2
  135. package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
  136. package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +6 -6
  137. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +6 -6
  138. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +6 -6
  139. package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +2 -2
  140. package/app/.next-cli-build/server/app/dashboard/quota.html +2 -2
  141. package/app/.next-cli-build/server/app/dashboard/quota.rsc +7 -7
  142. package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +7 -7
  143. package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +7 -7
  144. package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +2 -2
  145. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
  146. package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
  147. package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
  148. package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +5 -5
  149. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +5 -5
  150. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +2 -2
  151. package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +5 -5
  152. package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
  153. package/app/.next-cli-build/server/app/dashboard/skills.rsc +6 -6
  154. package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +6 -6
  155. package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +6 -6
  156. package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +2 -2
  157. package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
  158. package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +6 -6
  159. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +6 -6
  160. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +6 -6
  161. package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +2 -2
  162. package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
  163. package/app/.next-cli-build/server/app/dashboard/translator.rsc +6 -6
  164. package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +6 -6
  165. package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +6 -6
  166. package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +2 -2
  167. package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
  168. package/app/.next-cli-build/server/app/dashboard/usage.rsc +6 -6
  169. package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +6 -6
  170. package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +6 -6
  171. package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +2 -2
  172. package/app/.next-cli-build/server/app/dashboard.html +1 -1
  173. package/app/.next-cli-build/server/app/dashboard.rsc +6 -6
  174. package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +6 -6
  175. package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +6 -6
  176. package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +2 -2
  177. package/app/.next-cli-build/server/app/index.html +1 -1
  178. package/app/.next-cli-build/server/app/index.rsc +4 -4
  179. package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  180. package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +4 -4
  181. package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +2 -2
  182. package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
  183. package/app/.next-cli-build/server/app/landing.html +1 -1
  184. package/app/.next-cli-build/server/app/landing.rsc +4 -4
  185. package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +4 -4
  186. package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +2 -2
  187. package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +4 -4
  188. package/app/.next-cli-build/server/app/login/page.js +1 -1
  189. package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
  190. package/app/.next-cli-build/server/app/login.html +1 -1
  191. package/app/.next-cli-build/server/app/login.rsc +5 -5
  192. package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +5 -5
  193. package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +2 -2
  194. package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +5 -5
  195. package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
  196. package/app/.next-cli-build/server/app-paths-manifest.json +10 -10
  197. package/app/.next-cli-build/server/chunks/192.js +9 -0
  198. package/app/.next-cli-build/server/chunks/2365.js +1 -1
  199. package/app/.next-cli-build/server/chunks/2722.js +1 -1
  200. package/app/.next-cli-build/server/chunks/412.js +2 -2
  201. package/app/.next-cli-build/server/chunks/4884.js +2 -2
  202. package/app/.next-cli-build/server/chunks/523.js +1 -0
  203. package/app/.next-cli-build/server/chunks/5718.js +1 -1
  204. package/app/.next-cli-build/server/chunks/6200.js +2 -2
  205. package/app/.next-cli-build/server/chunks/6298.js +1 -1
  206. package/app/.next-cli-build/server/chunks/706.js +4 -3
  207. package/app/.next-cli-build/server/chunks/7153.js +1 -1
  208. package/app/.next-cli-build/server/chunks/7276.js +1 -1
  209. package/app/.next-cli-build/server/chunks/7833.js +9 -0
  210. package/app/.next-cli-build/server/chunks/8238.js +1 -1
  211. package/app/.next-cli-build/server/chunks/8782.js +1 -0
  212. package/app/.next-cli-build/server/chunks/8895.js +1 -1
  213. package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
  214. package/app/.next-cli-build/server/middleware.js +2 -2
  215. package/app/.next-cli-build/server/pages/404.html +1 -1
  216. package/app/.next-cli-build/server/pages/500.html +1 -1
  217. package/app/.next-cli-build/static/chunks/{1321-6c49a954d60cdf8d.js → 1321-87af378bc3a6718a.js} +1 -1
  218. package/app/.next-cli-build/static/chunks/{3395-ee203e7ee50296be.js → 3395-be2d0ce6411ddbf0.js} +2 -2
  219. package/app/.next-cli-build/static/chunks/5497-d4a2fb8d25696366.js +7 -0
  220. package/app/.next-cli-build/static/chunks/{6069-dd3d88032deffd6b.js → 6069-db27e074bc47d5fe.js} +1 -1
  221. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-783b478197298c31.js → page-1c13f46a5c077d38.js} +1 -1
  222. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-81f0e1ae55f87925.js +1 -0
  223. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/presidio/{page-d99bb3a54c3dbb50.js → page-99353b884e6df533.js} +1 -1
  224. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/{page-f52892e5e4b5f25b.js → page-b92667a32e2aeffa.js} +2 -2
  225. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-69f5c1cd75191fc4.js +1 -0
  226. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/translator/{page-97596f6b0ed5c791.js → page-719a6bedc7b221df.js} +1 -1
  227. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-625fde09367a7c35.js +1 -0
  228. package/app/.next-cli-build/static/chunks/app/login/page-fd5112b2e7b69783.js +1 -0
  229. package/app/.next-cli-build/static/css/{ec08ba27b16d57e9.css → 8e737cade791a545.css} +1 -1
  230. package/app/cli/package.json +1 -1
  231. package/app/package.json +1 -1
  232. package/app/src/lib/db/backup.js +35 -0
  233. package/cli.js +211 -106
  234. package/package.json +1 -1
  235. package/src/cli/tray/tray.ps1 +38 -14
  236. package/src/cli/utils/input.js +13 -1
  237. package/app/.next-cli-build/server/chunks/4055.js +0 -9
  238. package/app/.next-cli-build/server/chunks/5217.js +0 -9
  239. package/app/.next-cli-build/static/chunks/5497-df084be192db340d.js +0 -7
  240. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/page-6c89f0a1ddd99c41.js +0 -1
  241. package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/page-b1182e42595e08ba.js +0 -1
  242. package/app/.next-cli-build/static/chunks/app/dashboard/settings/pricing/page-045957f92dd4e66b.js +0 -1
  243. package/app/.next-cli-build/static/chunks/app/login/page-aaf3ff5ba99cdda7.js +0 -1
  244. /package/app/.next-cli-build/static/{alT51K3CdFyFBv27IY7wb → 9-AyxnJk9NDhO4WOXHEPp}/_buildManifest.js +0 -0
  245. /package/app/.next-cli-build/static/{alT51K3CdFyFBv27IY7wb → 9-AyxnJk9NDhO4WOXHEPp}/_ssgManifest.js +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7370],{31474:(e,t,s)=>{"use strict";function r(...e){return e.filter(Boolean).join(" ").replace(/\s+/g," ").trim()}s.d(t,{cn:()=>r})},58299:(e,t,s)=>{Promise.resolve().then(s.bind(s,87304))},73321:(e,t,s)=>{"use strict";var r=s(74645);s.o(r,"notFound")&&s.d(t,{notFound:function(){return r.notFound}}),s.o(r,"useParams")&&s.d(t,{useParams:function(){return r.useParams}}),s.o(r,"usePathname")&&s.d(t,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(t,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(t,{useSearchParams:function(){return r.useSearchParams}})},84588:(e,t,s)=>{"use strict";s.d(t,{default:()=>n});var r=s(95155),a=s(31474);let i={primary:"bg-surface border border-border-subtle rounded-[16px] shadow-[var(--shadow-elev)]",default:"bg-surface border border-border-subtle rounded-[14px] shadow-[var(--shadow-soft)]",inline:"bg-bg border border-border-subtle rounded-[12px]"};function n({children:e,title:t,subtitle:s,icon:l,action:d,padding:c="md",hover:o=!1,elev:x=!1,variant:u,className:m,...h}){let p=i[u]||(x?i.primary:i.default);return(0,r.jsxs)("div",{className:(0,a.cn)(p,o&&"hover:shadow-[var(--shadow-warm)] hover:border-brand-500/30 transition-all cursor-pointer",{none:"",xs:"p-3",sm:"p-4",md:"p-6",lg:"p-8"}[c],m),...h,children:[(t||d)&&(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[l&&(0,r.jsx)("div",{className:"p-2 rounded-[10px] bg-bg text-text-muted",children:(0,r.jsx)("span",{className:"material-symbols-outlined text-[20px]",children:l})}),(0,r.jsxs)("div",{children:[t&&(0,r.jsx)("h3",{className:"text-[15px] leading-5 text-text-main font-semibold tracking-[-0.01em]",children:t}),s&&(0,r.jsx)("p",{className:"text-[13px] leading-5 text-text-muted mt-0.5",children:s})]})]}),d]}),e]})}n.Section=function({children:e,className:t,...s}){return(0,r.jsx)("div",{className:(0,a.cn)("p-4 rounded-[10px]","bg-bg border border-border-subtle",t),...s,children:e})},n.Row=function({children:e,className:t,...s}){return(0,r.jsx)("div",{className:(0,a.cn)("p-3 -mx-3 px-3 transition-colors","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50",t),...s,children:e})},n.ListItem=function({children:e,actions:t,className:s,...i}){return(0,r.jsxs)("div",{className:(0,a.cn)("group flex items-center justify-between p-3 -mx-3 px-3","border-b border-border-subtle last:border-b-0","hover:bg-surface-2/50 transition-colors",s),...i,children:[(0,r.jsx)("div",{className:"flex-1 min-w-0",children:e}),t&&(0,r.jsx)("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:t})]})}},87304:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>c});var r=s(95155),a=s(12115),i=s(73321),n=s(84588);let l={gh:{"gpt-5.3-codex":{input:1.75,output:14,cached:.175,reasoning:14,cache_creation:1.75}}};function d({isOpen:e,onClose:t,onSave:s}){let[i,n]=(0,a.useState)({}),[c,o]=(0,a.useState)(!0),[x,u]=(0,a.useState)(!1);(0,a.useEffect)(()=>{e&&m()},[e]);let m=async()=>{o(!0);try{let e=await fetch("/api/pricing");if(e.ok){let t=await e.json();n(t)}else n(l)}catch(e){console.error("Failed to load pricing:",e),n(l)}finally{o(!1)}},h=async()=>{u(!0);try{let e=await fetch("/api/pricing",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(e.ok)s?.(),t();else{let t=await e.json();alert(`Failed to save pricing: ${t.error}`)}}catch(e){console.error("Failed to save pricing:",e),alert("Failed to save pricing")}finally{u(!1)}},p=async()=>{if(confirm("Reset all pricing to defaults? This cannot be undone."))try{(await fetch("/api/pricing",{method:"DELETE"})).ok&&n(l)}catch(e){console.error("Failed to reset pricing:",e),alert("Failed to reset pricing")}};if(!e)return null;let b=Object.keys(i).sort(),j=["input","output","cached","reasoning","cache_creation"];return(0,r.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:(0,r.jsxs)("div",{className:"bg-bg-base border border-border rounded-lg shadow-xl max-w-6xl w-full max-h-[90vh] overflow-hidden flex flex-col",children:[(0,r.jsxs)("div",{className:"p-4 border-b border-border flex items-center justify-between",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold",children:"Pricing Configuration"}),(0,r.jsx)("button",{onClick:t,className:"text-text-muted hover:text-text text-2xl leading-none",children:"\xd7"})]}),(0,r.jsx)("div",{className:"flex-1 overflow-auto p-4",children:c?(0,r.jsx)("div",{className:"text-center py-8 text-text-muted",children:"Loading pricing data..."}):(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"bg-bg-subtle border border-border rounded-lg p-3 text-sm",children:[(0,r.jsx)("p",{className:"font-medium mb-1",children:"Pricing Rates Format"}),(0,r.jsxs)("p",{className:"text-text-muted",children:["All rates are in ",(0,r.jsx)("strong",{children:"dollars per million tokens"})," ($/1M tokens). Example: Input rate of 2.50 means $2.50 per 1,000,000 input tokens."]})]}),b.map(e=>{let t=Object.keys(i[e]).sort();return(0,r.jsxs)("div",{className:"border border-border rounded-lg overflow-hidden",children:[(0,r.jsx)("div",{className:"bg-bg-subtle px-4 py-2 font-semibold text-sm",children:e.toUpperCase()}),(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsxs)("table",{className:"w-full text-sm",children:[(0,r.jsx)("thead",{className:"bg-bg-hover text-text-muted uppercase text-xs",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{className:"px-3 py-2 text-left",children:"Model"}),(0,r.jsx)("th",{className:"px-3 py-2 text-right",children:"Input"}),(0,r.jsx)("th",{className:"px-3 py-2 text-right",children:"Output"}),(0,r.jsx)("th",{className:"px-3 py-2 text-right",children:"Cached"}),(0,r.jsx)("th",{className:"px-3 py-2 text-right",children:"Reasoning"}),(0,r.jsx)("th",{className:"px-3 py-2 text-right",children:"Cache Creation"})]})}),(0,r.jsx)("tbody",{className:"divide-y divide-border",children:t.map(t=>(0,r.jsxs)("tr",{className:"hover:bg-bg-subtle/50",children:[(0,r.jsx)("td",{className:"px-3 py-2 font-medium",children:t}),j.map(s=>(0,r.jsx)("td",{className:"px-3 py-2",children:(0,r.jsx)("input",{type:"number",step:"0.01",min:"0",value:i[e][t][s]||0,onChange:r=>{let a;!isNaN(a=parseFloat(r.target.value))&&!(a<0)&&n(r=>{let i={...r};return i[e]||(i[e]={}),i[e][t]||(i[e][t]={}),i[e][t][s]=a,i})},className:"w-20 px-2 py-1 text-right bg-bg-base border border-border rounded focus:outline-none focus:border-primary"})},s))]},t))})]})})]},e)}),0===b.length&&(0,r.jsx)("div",{className:"text-center py-8 text-text-muted",children:"No pricing data available"})]})}),(0,r.jsxs)("div",{className:"p-4 border-t border-border flex items-center justify-between gap-2",children:[(0,r.jsx)("button",{onClick:p,className:"px-4 py-2 text-sm text-red-500 hover:bg-red-500/10 rounded border border-red-500/20 transition-colors",disabled:x,children:"Reset to Defaults"}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("button",{onClick:t,className:"px-4 py-2 text-sm text-text-muted hover:text-text border border-border rounded transition-colors",disabled:x,children:"Cancel"}),(0,r.jsx)("button",{onClick:h,className:"px-4 py-2 text-sm bg-primary text-white rounded hover:bg-primary/90 transition-colors disabled:opacity-50",disabled:x,children:x?"Saving...":"Save Changes"})]})]})]})})}function c(){(0,i.useRouter)();let[e,t]=(0,a.useState)(!1),[s,l]=(0,a.useState)(null),[c,o]=(0,a.useState)(!0);(0,a.useEffect)(()=>{x()},[]);let x=async()=>{o(!0);try{let e=await fetch("/api/pricing");if(e.ok){let t=await e.json();l(t)}}catch(e){console.error("Failed to load pricing:",e)}finally{o(!1)}};return(0,r.jsxs)("div",{className:"max-w-6xl mx-auto p-6 space-y-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-3xl font-bold",children:"Pricing Settings"}),(0,r.jsx)("p",{className:"text-text-muted mt-1",children:"Configure pricing rates for cost tracking and calculations"})]}),(0,r.jsx)("button",{onClick:()=>t(!0),className:"px-4 py-2 bg-primary text-white rounded hover:bg-primary/90 transition-colors",children:"Edit Pricing"})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[(0,r.jsxs)(n.default,{className:"p-4",children:[(0,r.jsx)("div",{className:"text-text-muted text-sm uppercase font-semibold",children:"Total Models"}),(0,r.jsx)("div",{className:"text-2xl font-bold mt-1",children:c?"...":(()=>{if(!s)return 0;let e=0;for(let t in s)e+=Object.keys(s[t]).length;return e})()})]}),(0,r.jsxs)(n.default,{className:"p-4",children:[(0,r.jsx)("div",{className:"text-text-muted text-sm uppercase font-semibold",children:"Providers"}),(0,r.jsx)("div",{className:"text-2xl font-bold mt-1",children:c?"...":(!s?[]:Object.keys(s).sort()).length})]}),(0,r.jsxs)(n.default,{className:"p-4",children:[(0,r.jsx)("div",{className:"text-text-muted text-sm uppercase font-semibold",children:"Status"}),(0,r.jsx)("div",{className:"text-2xl font-bold mt-1 text-success",children:c?"...":"Active"})]})]}),(0,r.jsxs)(n.default,{className:"p-6",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold mb-4",children:"How Pricing Works"}),(0,r.jsxs)("div",{className:"space-y-3 text-sm text-text-muted",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Cost Calculation:"})," Costs are calculated based on token usage and pricing rates. Each request's cost is determined by: (input_tokens \xd7 input_rate) + (output_tokens \xd7 output_rate) + (cached_tokens \xd7 cached_rate)"]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Pricing Format:"})," All rates are in ",(0,r.jsx)("strong",{children:"dollars per million tokens"})," ($/1M tokens). Example: An input rate of 2.50 means $2.50 per 1,000,000 input tokens."]}),(0,r.jsx)("p",{children:(0,r.jsx)("strong",{children:"Token Types:"})}),(0,r.jsxs)("ul",{className:"list-disc list-inside ml-4 space-y-1",children:[(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Input:"})," Standard prompt tokens"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Output:"})," Completion/response tokens"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Cached:"})," Cached input tokens (typically 50% of input rate)"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Reasoning:"})," Special reasoning/thinking tokens (fallback to output rate)"]}),(0,r.jsxs)("li",{children:[(0,r.jsx)("strong",{children:"Cache Creation:"})," Tokens used to create cache entries (fallback to input rate)"]})]}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Custom Pricing:"})," You can override default pricing for specific models. Reset to defaults anytime to restore standard rates."]})]})]}),(0,r.jsxs)(n.default,{className:"p-6",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,r.jsx)("h2",{className:"text-xl font-semibold",children:"Current Pricing Overview"}),(0,r.jsx)("button",{onClick:()=>t(!0),className:"text-primary hover:underline text-sm",children:"View Full Details"})]}),c?(0,r.jsx)("div",{className:"text-center py-4 text-text-muted",children:"Loading pricing data..."}):s?(0,r.jsxs)("div",{className:"space-y-3",children:[Object.keys(s).slice(0,5).map(e=>(0,r.jsxs)("div",{className:"text-sm",children:[(0,r.jsxs)("span",{className:"font-semibold",children:[e.toUpperCase(),":"]})," ",(0,r.jsxs)("span",{className:"text-text-muted",children:[Object.keys(s[e]).length," models"]})]},e)),Object.keys(s).length>5&&(0,r.jsxs)("div",{className:"text-sm text-text-muted",children:["+ ",Object.keys(s).length-5," more providers"]})]}):(0,r.jsx)("div",{className:"text-text-muted",children:"No pricing data available"})]}),e&&(0,r.jsx)(d,{isOpen:e,onClose:()=>t(!1),onSave:()=>{x()}})]})}}},e=>{e.O(0,[8441,3794,7358],()=>e(e.s=58299)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{83016:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>l});var a=s(95155),r=s(12115),i=s(35497),n=s(73321);function l(){let[e,t]=(0,r.useState)(""),[s,l]=(0,r.useState)(""),[o,d]=(0,r.useState)(""),[c,x]=(0,r.useState)(0),[u,h]=(0,r.useState)(!1),[m,p]=(0,r.useState)(null),[f,b]=(0,r.useState)("password"),[j,g]=(0,r.useState)(!1),[w,N]=(0,r.useState)("Sign in with OIDC"),y=(0,n.useRouter)();(0,r.useEffect)(()=>{if(c<=0)return;let e=setInterval(()=>x(e=>e>0?e-1:0),1e3);return()=>clearInterval(e)},[c]),(0,r.useEffect)(()=>{!async function(){let e=new AbortController,t=setTimeout(()=>e.abort(),5e3),s=window.location.origin;try{let a=await fetch(`${s}/api/auth/status`,{signal:e.signal});if(clearTimeout(t),a.ok){let e=await a.json();if(!0===e.authenticated||!1===e.requireLogin){y.push("/dashboard"),y.refresh();return}p(!!e.hasPassword),b(e.authMode||"password"),g(!0===e.oidcConfigured),N(e.oidcLoginLabel||"Sign in with OIDC")}else p(!0)}catch(e){clearTimeout(t),p(!0)}}()},[y]);let v=async t=>{t.preventDefault(),h(!0),l(""),d("");try{let t=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:e})});if(t.ok)y.push("/dashboard"),y.refresh();else{let e=await t.json();l(e.error||"Invalid password"),e.resetHint&&d(e.resetHint),e.retryAfter&&x(Number(e.retryAfter))}}catch(e){l("An error occurred. Please try again.")}finally{h(!1)}},k=j&&["oidc","both"].includes(f),S="oidc"!==f||!j;return null===m?(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-bg p-4",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-primary"}),(0,a.jsx)("p",{className:"text-text-muted mt-4",children:"Loading..."})]})}):(0,a.jsxs)("div",{className:"min-h-screen flex items-center justify-center bg-bg p-4 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"landing-grid absolute inset-0 pointer-events-none","aria-hidden":"true"}),(0,a.jsxs)("div",{className:"relative z-10 w-full max-w-md",children:[(0,a.jsxs)("div",{className:"text-center mb-8",children:[(0,a.jsxs)("div",{className:"inline-flex items-center gap-3 mb-3",children:[(0,a.jsx)("div",{className:"flex items-center justify-center size-11 rounded-[12px] bg-gradient-to-br from-brand-500 to-brand-700 shadow-[var(--shadow-warm)]",children:(0,a.jsx)("svg",{viewBox:"0 0 400 400",className:"size-[26px]","aria-hidden":"true",children:(0,a.jsxs)("g",{fill:"none",stroke:"#ffffff",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("polyline",{points:"128,104 184,200 128,296",strokeWidth:"28",strokeOpacity:"0.25"}),(0,a.jsx)("polyline",{points:"172,100 260,200 172,300",strokeWidth:"52"})]})})}),(0,a.jsx)("h1",{className:"text-3xl font-bold text-text-main",style:{fontFamily:"var(--font-display)",letterSpacing:"-0.015em"},children:"kRouter"})]}),(0,a.jsx)("p",{className:"text-text-muted",children:"oidc"===f&&j?"Sign in with your OIDC provider to access the dashboard":"Enter your password to access the dashboard"})]}),(0,a.jsx)(i.Zp,{children:(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[k&&(0,a.jsx)(i.$n,{type:"button",variant:"primary",className:"w-full",onClick:()=>{window.location.href="/api/auth/oidc/start"},children:w}),k&&S&&(0,a.jsx)("div",{className:"h-px bg-border/60"}),S?(0,a.jsxs)("form",{onSubmit:v,className:"flex flex-col gap-4",children:[("oidc"===f&&!j||"both"===f&&!j)&&(0,a.jsx)("p",{className:"text-xs text-amber-600 dark:text-amber-400 text-center",children:"OIDC login is enabled, but the issuer/client fields are not configured yet. Password login is still available for recovery."}),"both"===f&&j&&(0,a.jsx)("p",{className:"text-xs text-text-muted text-center",children:"Password and OIDC login are both enabled."}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"Password"}),(0,a.jsx)(i.pd,{type:"password",placeholder:"Enter password",value:e,onChange:e=>t(e.target.value),required:!0,autoFocus:!k}),s&&(0,a.jsx)("p",{className:"text-xs text-red-500",children:s}),c>0&&(0,a.jsxs)("p",{className:"text-xs text-amber-600 dark:text-amber-400",children:["Locked. Retry in ",(0,a.jsxs)("span",{className:"font-mono",children:[c,"s"]}),"."]}),o&&(0,a.jsxs)("p",{className:"text-xs text-text-muted",children:["Forgot password? Open ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded",children:"krouter"})," CLI on the host → ",(0,a.jsx)("b",{children:"Settings"})," → ",(0,a.jsx)("b",{children:"Reset Password to Default"}),"."]})]}),(0,a.jsx)(i.$n,{type:"submit",variant:"primary",className:"w-full",loading:u,disabled:c>0,children:c>0?`Wait ${c}s`:"Login"}),(0,a.jsxs)("p",{className:"text-xs text-center text-text-muted mt-2",children:["Default password is ",(0,a.jsx)("code",{className:"bg-sidebar px-1 rounded",children:"123456"})]}),!1===m&&(0,a.jsx)("p",{className:"text-xs text-center text-amber-600 dark:text-amber-400",children:"Security risk: no password set. Remote logins are refused until you set one — sign in here, then open your profile from the sidebar to set a password."})]}):s&&(0,a.jsx)("p",{className:"text-xs text-red-500",children:s})]})})]})]})}},96399:(e,t,s)=>{Promise.resolve().then(s.bind(s,83016))}},e=>{e.O(0,[7504,1321,5497,8441,3794,7358],()=>e(e.s=96399)),_N_E=e.O()}]);