@neurouter/server 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1000) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +10 -0
  3. package/dist/.tsbuildinfo +1 -0
  4. package/dist/app.d.ts +29 -0
  5. package/dist/app.d.ts.map +1 -0
  6. package/dist/app.js +79 -0
  7. package/dist/app.js.map +1 -0
  8. package/dist/console.d.ts +16 -0
  9. package/dist/console.d.ts.map +1 -0
  10. package/dist/console.js +149 -0
  11. package/dist/console.js.map +1 -0
  12. package/dist/controlplane/api/context.d.ts +64 -0
  13. package/dist/controlplane/api/context.d.ts.map +1 -0
  14. package/dist/controlplane/api/context.js +7 -0
  15. package/dist/controlplane/api/context.js.map +1 -0
  16. package/dist/controlplane/api/plugin.d.ts +8 -0
  17. package/dist/controlplane/api/plugin.d.ts.map +1 -0
  18. package/dist/controlplane/api/plugin.js +36 -0
  19. package/dist/controlplane/api/plugin.js.map +1 -0
  20. package/dist/controlplane/api/ports.d.ts +40 -0
  21. package/dist/controlplane/api/ports.d.ts.map +1 -0
  22. package/dist/controlplane/api/ports.js +2 -0
  23. package/dist/controlplane/api/ports.js.map +1 -0
  24. package/dist/controlplane/api/problem.d.ts +15 -0
  25. package/dist/controlplane/api/problem.d.ts.map +1 -0
  26. package/dist/controlplane/api/problem.js +80 -0
  27. package/dist/controlplane/api/problem.js.map +1 -0
  28. package/dist/controlplane/api/routes/audit.d.ts +6 -0
  29. package/dist/controlplane/api/routes/audit.d.ts.map +1 -0
  30. package/dist/controlplane/api/routes/audit.js +139 -0
  31. package/dist/controlplane/api/routes/audit.js.map +1 -0
  32. package/dist/controlplane/api/routes/auth.d.ts +10 -0
  33. package/dist/controlplane/api/routes/auth.d.ts.map +1 -0
  34. package/dist/controlplane/api/routes/auth.js +125 -0
  35. package/dist/controlplane/api/routes/auth.js.map +1 -0
  36. package/dist/controlplane/api/routes/environments.d.ts +5 -0
  37. package/dist/controlplane/api/routes/environments.d.ts.map +1 -0
  38. package/dist/controlplane/api/routes/environments.js +118 -0
  39. package/dist/controlplane/api/routes/environments.js.map +1 -0
  40. package/dist/controlplane/api/routes/evals.d.ts +5 -0
  41. package/dist/controlplane/api/routes/evals.d.ts.map +1 -0
  42. package/dist/controlplane/api/routes/evals.js +348 -0
  43. package/dist/controlplane/api/routes/evals.js.map +1 -0
  44. package/dist/controlplane/api/routes/inbox.d.ts +5 -0
  45. package/dist/controlplane/api/routes/inbox.d.ts.map +1 -0
  46. package/dist/controlplane/api/routes/inbox.js +226 -0
  47. package/dist/controlplane/api/routes/inbox.js.map +1 -0
  48. package/dist/controlplane/api/routes/keys.d.ts +5 -0
  49. package/dist/controlplane/api/routes/keys.d.ts.map +1 -0
  50. package/dist/controlplane/api/routes/keys.js +176 -0
  51. package/dist/controlplane/api/routes/keys.js.map +1 -0
  52. package/dist/controlplane/api/routes/metrics.d.ts +5 -0
  53. package/dist/controlplane/api/routes/metrics.d.ts.map +1 -0
  54. package/dist/controlplane/api/routes/metrics.js +197 -0
  55. package/dist/controlplane/api/routes/metrics.js.map +1 -0
  56. package/dist/controlplane/api/routes/overlays.d.ts +36 -0
  57. package/dist/controlplane/api/routes/overlays.d.ts.map +1 -0
  58. package/dist/controlplane/api/routes/overlays.js +244 -0
  59. package/dist/controlplane/api/routes/overlays.js.map +1 -0
  60. package/dist/controlplane/api/routes/public.d.ts +7 -0
  61. package/dist/controlplane/api/routes/public.d.ts.map +1 -0
  62. package/dist/controlplane/api/routes/public.js +71 -0
  63. package/dist/controlplane/api/routes/public.js.map +1 -0
  64. package/dist/controlplane/api/routes/servers.d.ts +45 -0
  65. package/dist/controlplane/api/routes/servers.d.ts.map +1 -0
  66. package/dist/controlplane/api/routes/servers.js +423 -0
  67. package/dist/controlplane/api/routes/servers.js.map +1 -0
  68. package/dist/controlplane/api/routes/settings.d.ts +21 -0
  69. package/dist/controlplane/api/routes/settings.d.ts.map +1 -0
  70. package/dist/controlplane/api/routes/settings.js +408 -0
  71. package/dist/controlplane/api/routes/settings.js.map +1 -0
  72. package/dist/controlplane/api/routes/tasks.d.ts +12 -0
  73. package/dist/controlplane/api/routes/tasks.d.ts.map +1 -0
  74. package/dist/controlplane/api/routes/tasks.js +144 -0
  75. package/dist/controlplane/api/routes/tasks.js.map +1 -0
  76. package/dist/controlplane/api/routes/tools.d.ts +14 -0
  77. package/dist/controlplane/api/routes/tools.d.ts.map +1 -0
  78. package/dist/controlplane/api/routes/tools.js +174 -0
  79. package/dist/controlplane/api/routes/tools.js.map +1 -0
  80. package/dist/controlplane/api/routes.d.ts +25 -0
  81. package/dist/controlplane/api/routes.d.ts.map +1 -0
  82. package/dist/controlplane/api/routes.js +43 -0
  83. package/dist/controlplane/api/routes.js.map +1 -0
  84. package/dist/controlplane/api/views.d.ts +53 -0
  85. package/dist/controlplane/api/views.d.ts.map +1 -0
  86. package/dist/controlplane/api/views.js +290 -0
  87. package/dist/controlplane/api/views.js.map +1 -0
  88. package/dist/controlplane/auth/guards.d.ts +40 -0
  89. package/dist/controlplane/auth/guards.d.ts.map +1 -0
  90. package/dist/controlplane/auth/guards.js +87 -0
  91. package/dist/controlplane/auth/guards.js.map +1 -0
  92. package/dist/controlplane/auth/local-link.d.ts +28 -0
  93. package/dist/controlplane/auth/local-link.d.ts.map +1 -0
  94. package/dist/controlplane/auth/local-link.js +41 -0
  95. package/dist/controlplane/auth/local-link.js.map +1 -0
  96. package/dist/controlplane/auth/login.d.ts +51 -0
  97. package/dist/controlplane/auth/login.d.ts.map +1 -0
  98. package/dist/controlplane/auth/login.js +115 -0
  99. package/dist/controlplane/auth/login.js.map +1 -0
  100. package/dist/controlplane/auth/oidc.d.ts +63 -0
  101. package/dist/controlplane/auth/oidc.d.ts.map +1 -0
  102. package/dist/controlplane/auth/oidc.js +76 -0
  103. package/dist/controlplane/auth/oidc.js.map +1 -0
  104. package/dist/controlplane/auth/sessions.d.ts +46 -0
  105. package/dist/controlplane/auth/sessions.d.ts.map +1 -0
  106. package/dist/controlplane/auth/sessions.js +65 -0
  107. package/dist/controlplane/auth/sessions.js.map +1 -0
  108. package/dist/controlplane/config-sync/reconcile.d.ts +88 -0
  109. package/dist/controlplane/config-sync/reconcile.d.ts.map +1 -0
  110. package/dist/controlplane/config-sync/reconcile.js +287 -0
  111. package/dist/controlplane/config-sync/reconcile.js.map +1 -0
  112. package/dist/controlplane/environments/environments.service.d.ts +46 -0
  113. package/dist/controlplane/environments/environments.service.d.ts.map +1 -0
  114. package/dist/controlplane/environments/environments.service.js +209 -0
  115. package/dist/controlplane/environments/environments.service.js.map +1 -0
  116. package/dist/controlplane/evals/evals.service.d.ts +126 -0
  117. package/dist/controlplane/evals/evals.service.d.ts.map +1 -0
  118. package/dist/controlplane/evals/evals.service.js +551 -0
  119. package/dist/controlplane/evals/evals.service.js.map +1 -0
  120. package/dist/controlplane/evals/model-keys.d.ts +37 -0
  121. package/dist/controlplane/evals/model-keys.d.ts.map +1 -0
  122. package/dist/controlplane/evals/model-keys.js +43 -0
  123. package/dist/controlplane/evals/model-keys.js.map +1 -0
  124. package/dist/controlplane/keys/api-key-format.d.ts +19 -0
  125. package/dist/controlplane/keys/api-key-format.d.ts.map +1 -0
  126. package/dist/controlplane/keys/api-key-format.js +39 -0
  127. package/dist/controlplane/keys/api-key-format.js.map +1 -0
  128. package/dist/controlplane/keys/api-keys.service.d.ts +42 -0
  129. package/dist/controlplane/keys/api-keys.service.d.ts.map +1 -0
  130. package/dist/controlplane/keys/api-keys.service.js +91 -0
  131. package/dist/controlplane/keys/api-keys.service.js.map +1 -0
  132. package/dist/controlplane/oauth/authorize.d.ts +101 -0
  133. package/dist/controlplane/oauth/authorize.d.ts.map +1 -0
  134. package/dist/controlplane/oauth/authorize.js +172 -0
  135. package/dist/controlplane/oauth/authorize.js.map +1 -0
  136. package/dist/controlplane/oauth/cimd.d.ts +52 -0
  137. package/dist/controlplane/oauth/cimd.d.ts.map +1 -0
  138. package/dist/controlplane/oauth/cimd.js +173 -0
  139. package/dist/controlplane/oauth/cimd.js.map +1 -0
  140. package/dist/controlplane/oauth/clients.service.d.ts +101 -0
  141. package/dist/controlplane/oauth/clients.service.d.ts.map +1 -0
  142. package/dist/controlplane/oauth/clients.service.js +269 -0
  143. package/dist/controlplane/oauth/clients.service.js.map +1 -0
  144. package/dist/controlplane/oauth/metadata.d.ts +27 -0
  145. package/dist/controlplane/oauth/metadata.d.ts.map +1 -0
  146. package/dist/controlplane/oauth/metadata.js +35 -0
  147. package/dist/controlplane/oauth/metadata.js.map +1 -0
  148. package/dist/controlplane/oauth/pkce.d.ts +8 -0
  149. package/dist/controlplane/oauth/pkce.d.ts.map +1 -0
  150. package/dist/controlplane/oauth/pkce.js +16 -0
  151. package/dist/controlplane/oauth/pkce.js.map +1 -0
  152. package/dist/controlplane/oauth/redirect-uri.d.ts +15 -0
  153. package/dist/controlplane/oauth/redirect-uri.d.ts.map +1 -0
  154. package/dist/controlplane/oauth/redirect-uri.js +61 -0
  155. package/dist/controlplane/oauth/redirect-uri.js.map +1 -0
  156. package/dist/controlplane/oauth/resource.d.ts +28 -0
  157. package/dist/controlplane/oauth/resource.d.ts.map +1 -0
  158. package/dist/controlplane/oauth/resource.js +49 -0
  159. package/dist/controlplane/oauth/resource.js.map +1 -0
  160. package/dist/controlplane/oauth/routes.d.ts +28 -0
  161. package/dist/controlplane/oauth/routes.d.ts.map +1 -0
  162. package/dist/controlplane/oauth/routes.js +191 -0
  163. package/dist/controlplane/oauth/routes.js.map +1 -0
  164. package/dist/controlplane/oauth/session.d.ts +36 -0
  165. package/dist/controlplane/oauth/session.d.ts.map +1 -0
  166. package/dist/controlplane/oauth/session.js +38 -0
  167. package/dist/controlplane/oauth/session.js.map +1 -0
  168. package/dist/controlplane/oauth/tokens.service.d.ts +105 -0
  169. package/dist/controlplane/oauth/tokens.service.d.ts.map +1 -0
  170. package/dist/controlplane/oauth/tokens.service.js +209 -0
  171. package/dist/controlplane/oauth/tokens.service.js.map +1 -0
  172. package/dist/controlplane/servers/builds.service.d.ts +54 -0
  173. package/dist/controlplane/servers/builds.service.d.ts.map +1 -0
  174. package/dist/controlplane/servers/builds.service.js +173 -0
  175. package/dist/controlplane/servers/builds.service.js.map +1 -0
  176. package/dist/controlplane/servers/fetch-spec.d.ts +13 -0
  177. package/dist/controlplane/servers/fetch-spec.d.ts.map +1 -0
  178. package/dist/controlplane/servers/fetch-spec.js +30 -0
  179. package/dist/controlplane/servers/fetch-spec.js.map +1 -0
  180. package/dist/controlplane/servers/servers.service.d.ts +87 -0
  181. package/dist/controlplane/servers/servers.service.d.ts.map +1 -0
  182. package/dist/controlplane/servers/servers.service.js +168 -0
  183. package/dist/controlplane/servers/servers.service.js.map +1 -0
  184. package/dist/controlplane/traces/traces.service.d.ts +38 -0
  185. package/dist/controlplane/traces/traces.service.d.ts.map +1 -0
  186. package/dist/controlplane/traces/traces.service.js +189 -0
  187. package/dist/controlplane/traces/traces.service.js.map +1 -0
  188. package/dist/controlplane/upstream-oauth/upstream-oauth.service.d.ts +70 -0
  189. package/dist/controlplane/upstream-oauth/upstream-oauth.service.d.ts.map +1 -0
  190. package/dist/controlplane/upstream-oauth/upstream-oauth.service.js +208 -0
  191. package/dist/controlplane/upstream-oauth/upstream-oauth.service.js.map +1 -0
  192. package/dist/controlplane/users/users.service.d.ts +33 -0
  193. package/dist/controlplane/users/users.service.d.ts.map +1 -0
  194. package/dist/controlplane/users/users.service.js +68 -0
  195. package/dist/controlplane/users/users.service.js.map +1 -0
  196. package/dist/dataplane/auth/authenticate.d.ts +58 -0
  197. package/dist/dataplane/auth/authenticate.d.ts.map +1 -0
  198. package/dist/dataplane/auth/authenticate.js +152 -0
  199. package/dist/dataplane/auth/authenticate.js.map +1 -0
  200. package/dist/dataplane/auth/external-jwt.d.ts +30 -0
  201. package/dist/dataplane/auth/external-jwt.d.ts.map +1 -0
  202. package/dist/dataplane/auth/external-jwt.js +78 -0
  203. package/dist/dataplane/auth/external-jwt.js.map +1 -0
  204. package/dist/dataplane/code/executor-health.d.ts +24 -0
  205. package/dist/dataplane/code/executor-health.d.ts.map +1 -0
  206. package/dist/dataplane/code/executor-health.js +49 -0
  207. package/dist/dataplane/code/executor-health.js.map +1 -0
  208. package/dist/dataplane/code/run-script.d.ts +90 -0
  209. package/dist/dataplane/code/run-script.d.ts.map +1 -0
  210. package/dist/dataplane/code/run-script.js +320 -0
  211. package/dist/dataplane/code/run-script.js.map +1 -0
  212. package/dist/dataplane/code/tokenize.d.ts +44 -0
  213. package/dist/dataplane/code/tokenize.d.ts.map +1 -0
  214. package/dist/dataplane/code/tokenize.js +267 -0
  215. package/dist/dataplane/code/tokenize.js.map +1 -0
  216. package/dist/dataplane/code/validate.d.ts +30 -0
  217. package/dist/dataplane/code/validate.d.ts.map +1 -0
  218. package/dist/dataplane/code/validate.js +94 -0
  219. package/dist/dataplane/code/validate.js.map +1 -0
  220. package/dist/dataplane/code/wrap.d.ts +20 -0
  221. package/dist/dataplane/code/wrap.d.ts.map +1 -0
  222. package/dist/dataplane/code/wrap.js +108 -0
  223. package/dist/dataplane/code/wrap.js.map +1 -0
  224. package/dist/dataplane/http/circuit-breaker.d.ts +23 -0
  225. package/dist/dataplane/http/circuit-breaker.d.ts.map +1 -0
  226. package/dist/dataplane/http/circuit-breaker.js +53 -0
  227. package/dist/dataplane/http/circuit-breaker.js.map +1 -0
  228. package/dist/dataplane/http/credentials.d.ts +59 -0
  229. package/dist/dataplane/http/credentials.d.ts.map +1 -0
  230. package/dist/dataplane/http/credentials.js +93 -0
  231. package/dist/dataplane/http/credentials.js.map +1 -0
  232. package/dist/dataplane/http/errors.d.ts +16 -0
  233. package/dist/dataplane/http/errors.d.ts.map +1 -0
  234. package/dist/dataplane/http/errors.js +32 -0
  235. package/dist/dataplane/http/errors.js.map +1 -0
  236. package/dist/dataplane/http/invoker.d.ts +56 -0
  237. package/dist/dataplane/http/invoker.d.ts.map +1 -0
  238. package/dist/dataplane/http/invoker.js +114 -0
  239. package/dist/dataplane/http/invoker.js.map +1 -0
  240. package/dist/dataplane/http/request-builder.d.ts +39 -0
  241. package/dist/dataplane/http/request-builder.d.ts.map +1 -0
  242. package/dist/dataplane/http/request-builder.js +162 -0
  243. package/dist/dataplane/http/request-builder.js.map +1 -0
  244. package/dist/dataplane/mcp/challenge.d.ts +14 -0
  245. package/dist/dataplane/mcp/challenge.d.ts.map +1 -0
  246. package/dist/dataplane/mcp/challenge.js +25 -0
  247. package/dist/dataplane/mcp/challenge.js.map +1 -0
  248. package/dist/dataplane/mcp/dispatch.d.ts +64 -0
  249. package/dist/dataplane/mcp/dispatch.d.ts.map +1 -0
  250. package/dist/dataplane/mcp/dispatch.js +165 -0
  251. package/dist/dataplane/mcp/dispatch.js.map +1 -0
  252. package/dist/dataplane/mcp/event-bus.d.ts +19 -0
  253. package/dist/dataplane/mcp/event-bus.d.ts.map +1 -0
  254. package/dist/dataplane/mcp/event-bus.js +39 -0
  255. package/dist/dataplane/mcp/event-bus.js.map +1 -0
  256. package/dist/dataplane/mcp/inflight.d.ts +66 -0
  257. package/dist/dataplane/mcp/inflight.d.ts.map +1 -0
  258. package/dist/dataplane/mcp/inflight.js +135 -0
  259. package/dist/dataplane/mcp/inflight.js.map +1 -0
  260. package/dist/dataplane/mcp/origin.d.ts +7 -0
  261. package/dist/dataplane/mcp/origin.d.ts.map +1 -0
  262. package/dist/dataplane/mcp/origin.js +27 -0
  263. package/dist/dataplane/mcp/origin.js.map +1 -0
  264. package/dist/dataplane/mcp/route.d.ts +43 -0
  265. package/dist/dataplane/mcp/route.d.ts.map +1 -0
  266. package/dist/dataplane/mcp/route.js +280 -0
  267. package/dist/dataplane/mcp/route.js.map +1 -0
  268. package/dist/dataplane/mcp/surface.d.ts +43 -0
  269. package/dist/dataplane/mcp/surface.d.ts.map +1 -0
  270. package/dist/dataplane/mcp/surface.js +133 -0
  271. package/dist/dataplane/mcp/surface.js.map +1 -0
  272. package/dist/dataplane/mcp/translate.d.ts +16 -0
  273. package/dist/dataplane/mcp/translate.d.ts.map +1 -0
  274. package/dist/dataplane/mcp/translate.js +33 -0
  275. package/dist/dataplane/mcp/translate.js.map +1 -0
  276. package/dist/dataplane/mock/mock-upstream.d.ts +23 -0
  277. package/dist/dataplane/mock/mock-upstream.d.ts.map +1 -0
  278. package/dist/dataplane/mock/mock-upstream.js +26 -0
  279. package/dist/dataplane/mock/mock-upstream.js.map +1 -0
  280. package/dist/dataplane/ops/ops.d.ts +66 -0
  281. package/dist/dataplane/ops/ops.d.ts.map +1 -0
  282. package/dist/dataplane/ops/ops.js +315 -0
  283. package/dist/dataplane/ops/ops.js.map +1 -0
  284. package/dist/dataplane/pipeline/arg-validate.d.ts +19 -0
  285. package/dist/dataplane/pipeline/arg-validate.d.ts.map +1 -0
  286. package/dist/dataplane/pipeline/arg-validate.js +61 -0
  287. package/dist/dataplane/pipeline/arg-validate.js.map +1 -0
  288. package/dist/dataplane/pipeline/context.d.ts +78 -0
  289. package/dist/dataplane/pipeline/context.d.ts.map +1 -0
  290. package/dist/dataplane/pipeline/context.js +13 -0
  291. package/dist/dataplane/pipeline/context.js.map +1 -0
  292. package/dist/dataplane/pipeline/errors.d.ts +53 -0
  293. package/dist/dataplane/pipeline/errors.d.ts.map +1 -0
  294. package/dist/dataplane/pipeline/errors.js +61 -0
  295. package/dist/dataplane/pipeline/errors.js.map +1 -0
  296. package/dist/dataplane/pipeline/pipeline.d.ts +128 -0
  297. package/dist/dataplane/pipeline/pipeline.d.ts.map +1 -0
  298. package/dist/dataplane/pipeline/pipeline.js +443 -0
  299. package/dist/dataplane/pipeline/pipeline.js.map +1 -0
  300. package/dist/dataplane/pipeline/policy.d.ts +24 -0
  301. package/dist/dataplane/pipeline/policy.d.ts.map +1 -0
  302. package/dist/dataplane/pipeline/policy.js +93 -0
  303. package/dist/dataplane/pipeline/policy.js.map +1 -0
  304. package/dist/dataplane/rate-limit/limiter.d.ts +42 -0
  305. package/dist/dataplane/rate-limit/limiter.d.ts.map +1 -0
  306. package/dist/dataplane/rate-limit/limiter.js +34 -0
  307. package/dist/dataplane/rate-limit/limiter.js.map +1 -0
  308. package/dist/dataplane/rate-limit/stores.d.ts +56 -0
  309. package/dist/dataplane/rate-limit/stores.d.ts.map +1 -0
  310. package/dist/dataplane/rate-limit/stores.js +95 -0
  311. package/dist/dataplane/rate-limit/stores.js.map +1 -0
  312. package/dist/dataplane/rate-limit/token-bucket.d.ts +19 -0
  313. package/dist/dataplane/rate-limit/token-bucket.d.ts.map +1 -0
  314. package/dist/dataplane/rate-limit/token-bucket.js +16 -0
  315. package/dist/dataplane/rate-limit/token-bucket.js.map +1 -0
  316. package/dist/dataplane/search/document.d.ts +22 -0
  317. package/dist/dataplane/search/document.d.ts.map +1 -0
  318. package/dist/dataplane/search/document.js +45 -0
  319. package/dist/dataplane/search/document.js.map +1 -0
  320. package/dist/dataplane/search/embed-worker.d.ts +2 -0
  321. package/dist/dataplane/search/embed-worker.d.ts.map +1 -0
  322. package/dist/dataplane/search/embed-worker.js +55 -0
  323. package/dist/dataplane/search/embed-worker.js.map +1 -0
  324. package/dist/dataplane/search/embedder.d.ts +113 -0
  325. package/dist/dataplane/search/embedder.d.ts.map +1 -0
  326. package/dist/dataplane/search/embedder.js +216 -0
  327. package/dist/dataplane/search/embedder.js.map +1 -0
  328. package/dist/dataplane/search/hybrid.d.ts +28 -0
  329. package/dist/dataplane/search/hybrid.d.ts.map +1 -0
  330. package/dist/dataplane/search/hybrid.js +45 -0
  331. package/dist/dataplane/search/hybrid.js.map +1 -0
  332. package/dist/dataplane/search/indexer.d.ts +62 -0
  333. package/dist/dataplane/search/indexer.d.ts.map +1 -0
  334. package/dist/dataplane/search/indexer.js +105 -0
  335. package/dist/dataplane/search/indexer.js.map +1 -0
  336. package/dist/dataplane/search/keyword-index.d.ts +26 -0
  337. package/dist/dataplane/search/keyword-index.d.ts.map +1 -0
  338. package/dist/dataplane/search/keyword-index.js +60 -0
  339. package/dist/dataplane/search/keyword-index.js.map +1 -0
  340. package/dist/dataplane/search/model-profiles.d.ts +12 -0
  341. package/dist/dataplane/search/model-profiles.d.ts.map +1 -0
  342. package/dist/dataplane/search/model-profiles.js +12 -0
  343. package/dist/dataplane/search/model-profiles.js.map +1 -0
  344. package/dist/dataplane/search/search.service.d.ts +39 -0
  345. package/dist/dataplane/search/search.service.d.ts.map +1 -0
  346. package/dist/dataplane/search/search.service.js +69 -0
  347. package/dist/dataplane/search/search.service.js.map +1 -0
  348. package/dist/dataplane/search/suggest.d.ts +15 -0
  349. package/dist/dataplane/search/suggest.d.ts.map +1 -0
  350. package/dist/dataplane/search/suggest.js +76 -0
  351. package/dist/dataplane/search/suggest.js.map +1 -0
  352. package/dist/dataplane/search/vector-index.d.ts +49 -0
  353. package/dist/dataplane/search/vector-index.d.ts.map +1 -0
  354. package/dist/dataplane/search/vector-index.js +72 -0
  355. package/dist/dataplane/search/vector-index.js.map +1 -0
  356. package/dist/dataplane/shaping/result-pages.d.ts +19 -0
  357. package/dist/dataplane/shaping/result-pages.d.ts.map +1 -0
  358. package/dist/dataplane/shaping/result-pages.js +37 -0
  359. package/dist/dataplane/shaping/result-pages.js.map +1 -0
  360. package/dist/dataplane/shaping/sanitize.d.ts +6 -0
  361. package/dist/dataplane/shaping/sanitize.d.ts.map +1 -0
  362. package/dist/dataplane/shaping/sanitize.js +31 -0
  363. package/dist/dataplane/shaping/sanitize.js.map +1 -0
  364. package/dist/dataplane/tasks/tracker.d.ts +60 -0
  365. package/dist/dataplane/tasks/tracker.d.ts.map +1 -0
  366. package/dist/dataplane/tasks/tracker.js +178 -0
  367. package/dist/dataplane/tasks/tracker.js.map +1 -0
  368. package/dist/dataplane/tasks/usage.d.ts +8 -0
  369. package/dist/dataplane/tasks/usage.d.ts.map +1 -0
  370. package/dist/dataplane/tasks/usage.js +35 -0
  371. package/dist/dataplane/tasks/usage.js.map +1 -0
  372. package/dist/deps.d.ts +133 -0
  373. package/dist/deps.d.ts.map +1 -0
  374. package/dist/deps.js +356 -0
  375. package/dist/deps.js.map +1 -0
  376. package/dist/health/routes.d.ts +22 -0
  377. package/dist/health/routes.d.ts.map +1 -0
  378. package/dist/health/routes.js +40 -0
  379. package/dist/health/routes.js.map +1 -0
  380. package/dist/index.d.ts +8 -0
  381. package/dist/index.d.ts.map +1 -0
  382. package/dist/index.js +8 -0
  383. package/dist/index.js.map +1 -0
  384. package/dist/instrumentation.d.ts +10 -0
  385. package/dist/instrumentation.d.ts.map +1 -0
  386. package/dist/instrumentation.js +72 -0
  387. package/dist/instrumentation.js.map +1 -0
  388. package/dist/jobs.d.ts +5 -0
  389. package/dist/jobs.d.ts.map +1 -0
  390. package/dist/jobs.js +96 -0
  391. package/dist/jobs.js.map +1 -0
  392. package/dist/kernel/audit/archive/azure.d.ts +42 -0
  393. package/dist/kernel/audit/archive/azure.d.ts.map +1 -0
  394. package/dist/kernel/audit/archive/azure.js +80 -0
  395. package/dist/kernel/audit/archive/azure.js.map +1 -0
  396. package/dist/kernel/audit/archive/gcs.d.ts +27 -0
  397. package/dist/kernel/audit/archive/gcs.d.ts.map +1 -0
  398. package/dist/kernel/audit/archive/gcs.js +42 -0
  399. package/dist/kernel/audit/archive/gcs.js.map +1 -0
  400. package/dist/kernel/audit/archive/index.d.ts +20 -0
  401. package/dist/kernel/audit/archive/index.d.ts.map +1 -0
  402. package/dist/kernel/audit/archive/index.js +90 -0
  403. package/dist/kernel/audit/archive/index.js.map +1 -0
  404. package/dist/kernel/audit/archive/local-fs.d.ts +10 -0
  405. package/dist/kernel/audit/archive/local-fs.d.ts.map +1 -0
  406. package/dist/kernel/audit/archive/local-fs.js +24 -0
  407. package/dist/kernel/audit/archive/local-fs.js.map +1 -0
  408. package/dist/kernel/audit/archive/s3.d.ts +49 -0
  409. package/dist/kernel/audit/archive/s3.d.ts.map +1 -0
  410. package/dist/kernel/audit/archive/s3.js +85 -0
  411. package/dist/kernel/audit/archive/s3.js.map +1 -0
  412. package/dist/kernel/audit/archive/store.d.ts +34 -0
  413. package/dist/kernel/audit/archive/store.d.ts.map +1 -0
  414. package/dist/kernel/audit/archive/store.js +27 -0
  415. package/dist/kernel/audit/archive/store.js.map +1 -0
  416. package/dist/kernel/audit/chain.d.ts +33 -0
  417. package/dist/kernel/audit/chain.d.ts.map +1 -0
  418. package/dist/kernel/audit/chain.js +64 -0
  419. package/dist/kernel/audit/chain.js.map +1 -0
  420. package/dist/kernel/audit/checkpoints.d.ts +30 -0
  421. package/dist/kernel/audit/checkpoints.d.ts.map +1 -0
  422. package/dist/kernel/audit/checkpoints.js +33 -0
  423. package/dist/kernel/audit/checkpoints.js.map +1 -0
  424. package/dist/kernel/audit/export.d.ts +14 -0
  425. package/dist/kernel/audit/export.d.ts.map +1 -0
  426. package/dist/kernel/audit/export.js +88 -0
  427. package/dist/kernel/audit/export.js.map +1 -0
  428. package/dist/kernel/audit/partitions.d.ts +29 -0
  429. package/dist/kernel/audit/partitions.d.ts.map +1 -0
  430. package/dist/kernel/audit/partitions.js +58 -0
  431. package/dist/kernel/audit/partitions.js.map +1 -0
  432. package/dist/kernel/audit/query.d.ts +28 -0
  433. package/dist/kernel/audit/query.d.ts.map +1 -0
  434. package/dist/kernel/audit/query.js +114 -0
  435. package/dist/kernel/audit/query.js.map +1 -0
  436. package/dist/kernel/audit/recorder.d.ts +53 -0
  437. package/dist/kernel/audit/recorder.d.ts.map +1 -0
  438. package/dist/kernel/audit/recorder.js +71 -0
  439. package/dist/kernel/audit/recorder.js.map +1 -0
  440. package/dist/kernel/audit/redact.d.ts +69 -0
  441. package/dist/kernel/audit/redact.d.ts.map +1 -0
  442. package/dist/kernel/audit/redact.js +202 -0
  443. package/dist/kernel/audit/redact.js.map +1 -0
  444. package/dist/kernel/audit/redaction-rules.service.d.ts +34 -0
  445. package/dist/kernel/audit/redaction-rules.service.d.ts.map +1 -0
  446. package/dist/kernel/audit/redaction-rules.service.js +53 -0
  447. package/dist/kernel/audit/redaction-rules.service.js.map +1 -0
  448. package/dist/kernel/audit/retention.d.ts +54 -0
  449. package/dist/kernel/audit/retention.d.ts.map +1 -0
  450. package/dist/kernel/audit/retention.js +119 -0
  451. package/dist/kernel/audit/retention.js.map +1 -0
  452. package/dist/kernel/audit/sinks/dispatcher.d.ts +38 -0
  453. package/dist/kernel/audit/sinks/dispatcher.d.ts.map +1 -0
  454. package/dist/kernel/audit/sinks/dispatcher.js +68 -0
  455. package/dist/kernel/audit/sinks/dispatcher.js.map +1 -0
  456. package/dist/kernel/audit/sinks/otel-logs.d.ts +25 -0
  457. package/dist/kernel/audit/sinks/otel-logs.d.ts.map +1 -0
  458. package/dist/kernel/audit/sinks/otel-logs.js +51 -0
  459. package/dist/kernel/audit/sinks/otel-logs.js.map +1 -0
  460. package/dist/kernel/audit/sinks/sink.d.ts +14 -0
  461. package/dist/kernel/audit/sinks/sink.d.ts.map +1 -0
  462. package/dist/kernel/audit/sinks/sink.js +9 -0
  463. package/dist/kernel/audit/sinks/sink.js.map +1 -0
  464. package/dist/kernel/audit/sinks/webhook.d.ts +29 -0
  465. package/dist/kernel/audit/sinks/webhook.d.ts.map +1 -0
  466. package/dist/kernel/audit/sinks/webhook.js +49 -0
  467. package/dist/kernel/audit/sinks/webhook.js.map +1 -0
  468. package/dist/kernel/audit/store.d.ts +158 -0
  469. package/dist/kernel/audit/store.d.ts.map +1 -0
  470. package/dist/kernel/audit/store.js +155 -0
  471. package/dist/kernel/audit/store.js.map +1 -0
  472. package/dist/kernel/audit/types.d.ts +136 -0
  473. package/dist/kernel/audit/types.d.ts.map +1 -0
  474. package/dist/kernel/audit/types.js +2 -0
  475. package/dist/kernel/audit/types.js.map +1 -0
  476. package/dist/kernel/audit/verify.d.ts +22 -0
  477. package/dist/kernel/audit/verify.d.ts.map +1 -0
  478. package/dist/kernel/audit/verify.js +96 -0
  479. package/dist/kernel/audit/verify.js.map +1 -0
  480. package/dist/kernel/audit/writer.d.ts +85 -0
  481. package/dist/kernel/audit/writer.d.ts.map +1 -0
  482. package/dist/kernel/audit/writer.js +255 -0
  483. package/dist/kernel/audit/writer.js.map +1 -0
  484. package/dist/kernel/config/env.d.ts +119 -0
  485. package/dist/kernel/config/env.d.ts.map +1 -0
  486. package/dist/kernel/config/env.js +173 -0
  487. package/dist/kernel/config/env.js.map +1 -0
  488. package/dist/kernel/config/load.d.ts +51 -0
  489. package/dist/kernel/config/load.d.ts.map +1 -0
  490. package/dist/kernel/config/load.js +102 -0
  491. package/dist/kernel/config/load.js.map +1 -0
  492. package/dist/kernel/coordination/memory.d.ts +20 -0
  493. package/dist/kernel/coordination/memory.d.ts.map +1 -0
  494. package/dist/kernel/coordination/memory.js +92 -0
  495. package/dist/kernel/coordination/memory.js.map +1 -0
  496. package/dist/kernel/coordination/postgres.d.ts +47 -0
  497. package/dist/kernel/coordination/postgres.d.ts.map +1 -0
  498. package/dist/kernel/coordination/postgres.js +111 -0
  499. package/dist/kernel/coordination/postgres.js.map +1 -0
  500. package/dist/kernel/coordination/types.d.ts +37 -0
  501. package/dist/kernel/coordination/types.d.ts.map +1 -0
  502. package/dist/kernel/coordination/types.js +2 -0
  503. package/dist/kernel/coordination/types.js.map +1 -0
  504. package/dist/kernel/coordination/wait.d.ts +4 -0
  505. package/dist/kernel/coordination/wait.d.ts.map +1 -0
  506. package/dist/kernel/coordination/wait.js +38 -0
  507. package/dist/kernel/coordination/wait.js.map +1 -0
  508. package/dist/kernel/db/columns.d.ts +25 -0
  509. package/dist/kernel/db/columns.d.ts.map +1 -0
  510. package/dist/kernel/db/columns.js +32 -0
  511. package/dist/kernel/db/columns.js.map +1 -0
  512. package/dist/kernel/db/empty-in-plugin.d.ts +7 -0
  513. package/dist/kernel/db/empty-in-plugin.d.ts.map +1 -0
  514. package/dist/kernel/db/empty-in-plugin.js +28 -0
  515. package/dist/kernel/db/empty-in-plugin.js.map +1 -0
  516. package/dist/kernel/db/index.d.ts +67 -0
  517. package/dist/kernel/db/index.d.ts.map +1 -0
  518. package/dist/kernel/db/index.js +72 -0
  519. package/dist/kernel/db/index.js.map +1 -0
  520. package/dist/kernel/db/migrations/audit/0006_audit.d.ts +7 -0
  521. package/dist/kernel/db/migrations/audit/0006_audit.d.ts.map +1 -0
  522. package/dist/kernel/db/migrations/audit/0006_audit.js +125 -0
  523. package/dist/kernel/db/migrations/audit/0006_audit.js.map +1 -0
  524. package/dist/kernel/db/migrations/audit/0007_metrics.d.ts +6 -0
  525. package/dist/kernel/db/migrations/audit/0007_metrics.d.ts.map +1 -0
  526. package/dist/kernel/db/migrations/audit/0007_metrics.js +38 -0
  527. package/dist/kernel/db/migrations/audit/0007_metrics.js.map +1 -0
  528. package/dist/kernel/db/migrations/index.d.ts +10 -0
  529. package/dist/kernel/db/migrations/index.d.ts.map +1 -0
  530. package/dist/kernel/db/migrations/index.js +15 -0
  531. package/dist/kernel/db/migrations/index.js.map +1 -0
  532. package/dist/kernel/db/migrations/main/0001_core.d.ts +4 -0
  533. package/dist/kernel/db/migrations/main/0001_core.d.ts.map +1 -0
  534. package/dist/kernel/db/migrations/main/0001_core.js +178 -0
  535. package/dist/kernel/db/migrations/main/0001_core.js.map +1 -0
  536. package/dist/kernel/db/migrations/main/0002_servers.d.ts +4 -0
  537. package/dist/kernel/db/migrations/main/0002_servers.d.ts.map +1 -0
  538. package/dist/kernel/db/migrations/main/0002_servers.js +240 -0
  539. package/dist/kernel/db/migrations/main/0002_servers.js.map +1 -0
  540. package/dist/kernel/db/migrations/main/0003_auth.d.ts +4 -0
  541. package/dist/kernel/db/migrations/main/0003_auth.d.ts.map +1 -0
  542. package/dist/kernel/db/migrations/main/0003_auth.js +125 -0
  543. package/dist/kernel/db/migrations/main/0003_auth.js.map +1 -0
  544. package/dist/kernel/db/migrations/main/0004_ops.d.ts +4 -0
  545. package/dist/kernel/db/migrations/main/0004_ops.d.ts.map +1 -0
  546. package/dist/kernel/db/migrations/main/0004_ops.js +196 -0
  547. package/dist/kernel/db/migrations/main/0004_ops.js.map +1 -0
  548. package/dist/kernel/db/migrations/main/0005_evals.d.ts +4 -0
  549. package/dist/kernel/db/migrations/main/0005_evals.d.ts.map +1 -0
  550. package/dist/kernel/db/migrations/main/0005_evals.js +117 -0
  551. package/dist/kernel/db/migrations/main/0005_evals.js.map +1 -0
  552. package/dist/kernel/db/migrations/types.d.ts +17 -0
  553. package/dist/kernel/db/migrations/types.d.ts.map +1 -0
  554. package/dist/kernel/db/migrations/types.js +7 -0
  555. package/dist/kernel/db/migrations/types.js.map +1 -0
  556. package/dist/kernel/db/migrator.d.ts +29 -0
  557. package/dist/kernel/db/migrator.d.ts.map +1 -0
  558. package/dist/kernel/db/migrator.js +64 -0
  559. package/dist/kernel/db/migrator.js.map +1 -0
  560. package/dist/kernel/db/postgres.d.ts +35 -0
  561. package/dist/kernel/db/postgres.d.ts.map +1 -0
  562. package/dist/kernel/db/postgres.js +44 -0
  563. package/dist/kernel/db/postgres.js.map +1 -0
  564. package/dist/kernel/db/schema.d.ts +936 -0
  565. package/dist/kernel/db/schema.d.ts.map +1 -0
  566. package/dist/kernel/db/schema.js +61 -0
  567. package/dist/kernel/db/schema.js.map +1 -0
  568. package/dist/kernel/db/sqlite.d.ts +20 -0
  569. package/dist/kernel/db/sqlite.d.ts.map +1 -0
  570. package/dist/kernel/db/sqlite.js +31 -0
  571. package/dist/kernel/db/sqlite.js.map +1 -0
  572. package/dist/kernel/db/tools-fts.d.ts +11 -0
  573. package/dist/kernel/db/tools-fts.d.ts.map +1 -0
  574. package/dist/kernel/db/tools-fts.js +17 -0
  575. package/dist/kernel/db/tools-fts.js.map +1 -0
  576. package/dist/kernel/db/url.d.ts +17 -0
  577. package/dist/kernel/db/url.d.ts.map +1 -0
  578. package/dist/kernel/db/url.js +30 -0
  579. package/dist/kernel/db/url.js.map +1 -0
  580. package/dist/kernel/jobs/jobs.service.d.ts +24 -0
  581. package/dist/kernel/jobs/jobs.service.d.ts.map +1 -0
  582. package/dist/kernel/jobs/jobs.service.js +65 -0
  583. package/dist/kernel/jobs/jobs.service.js.map +1 -0
  584. package/dist/kernel/jobs/scheduler.d.ts +34 -0
  585. package/dist/kernel/jobs/scheduler.d.ts.map +1 -0
  586. package/dist/kernel/jobs/scheduler.js +70 -0
  587. package/dist/kernel/jobs/scheduler.js.map +1 -0
  588. package/dist/kernel/lib/clock.d.ts +11 -0
  589. package/dist/kernel/lib/clock.d.ts.map +1 -0
  590. package/dist/kernel/lib/clock.js +15 -0
  591. package/dist/kernel/lib/clock.js.map +1 -0
  592. package/dist/kernel/lib/crypto.d.ts +12 -0
  593. package/dist/kernel/lib/crypto.d.ts.map +1 -0
  594. package/dist/kernel/lib/crypto.js +48 -0
  595. package/dist/kernel/lib/crypto.js.map +1 -0
  596. package/dist/kernel/lib/errors.d.ts +29 -0
  597. package/dist/kernel/lib/errors.d.ts.map +1 -0
  598. package/dist/kernel/lib/errors.js +40 -0
  599. package/dist/kernel/lib/errors.js.map +1 -0
  600. package/dist/kernel/lib/histogram.d.ts +28 -0
  601. package/dist/kernel/lib/histogram.d.ts.map +1 -0
  602. package/dist/kernel/lib/histogram.js +70 -0
  603. package/dist/kernel/lib/histogram.js.map +1 -0
  604. package/dist/kernel/lib/ids.d.ts +3 -0
  605. package/dist/kernel/lib/ids.d.ts.map +1 -0
  606. package/dist/kernel/lib/ids.js +6 -0
  607. package/dist/kernel/lib/ids.js.map +1 -0
  608. package/dist/kernel/lib/jcs.d.ts +5 -0
  609. package/dist/kernel/lib/jcs.d.ts.map +1 -0
  610. package/dist/kernel/lib/jcs.js +14 -0
  611. package/dist/kernel/lib/jcs.js.map +1 -0
  612. package/dist/kernel/lib/json.d.ts +9 -0
  613. package/dist/kernel/lib/json.d.ts.map +1 -0
  614. package/dist/kernel/lib/json.js +21 -0
  615. package/dist/kernel/lib/json.js.map +1 -0
  616. package/dist/kernel/lib/keyset.d.ts +25 -0
  617. package/dist/kernel/lib/keyset.d.ts.map +1 -0
  618. package/dist/kernel/lib/keyset.js +36 -0
  619. package/dist/kernel/lib/keyset.js.map +1 -0
  620. package/dist/kernel/lib/logger.d.ts +12 -0
  621. package/dist/kernel/lib/logger.d.ts.map +1 -0
  622. package/dist/kernel/lib/logger.js +41 -0
  623. package/dist/kernel/lib/logger.js.map +1 -0
  624. package/dist/kernel/lib/net/safe-fetch.d.ts +36 -0
  625. package/dist/kernel/lib/net/safe-fetch.d.ts.map +1 -0
  626. package/dist/kernel/lib/net/safe-fetch.js +106 -0
  627. package/dist/kernel/lib/net/safe-fetch.js.map +1 -0
  628. package/dist/kernel/lib/net/ssrf-guard.d.ts +30 -0
  629. package/dist/kernel/lib/net/ssrf-guard.d.ts.map +1 -0
  630. package/dist/kernel/lib/net/ssrf-guard.js +78 -0
  631. package/dist/kernel/lib/net/ssrf-guard.js.map +1 -0
  632. package/dist/kernel/lib/pagination.d.ts +14 -0
  633. package/dist/kernel/lib/pagination.d.ts.map +1 -0
  634. package/dist/kernel/lib/pagination.js +40 -0
  635. package/dist/kernel/lib/pagination.js.map +1 -0
  636. package/dist/kernel/observability/metrics.d.ts +53 -0
  637. package/dist/kernel/observability/metrics.d.ts.map +1 -0
  638. package/dist/kernel/observability/metrics.js +95 -0
  639. package/dist/kernel/observability/metrics.js.map +1 -0
  640. package/dist/kernel/observability/tracing.d.ts +32 -0
  641. package/dist/kernel/observability/tracing.d.ts.map +1 -0
  642. package/dist/kernel/observability/tracing.js +116 -0
  643. package/dist/kernel/observability/tracing.js.map +1 -0
  644. package/dist/kernel/principal.d.ts +16 -0
  645. package/dist/kernel/principal.d.ts.map +1 -0
  646. package/dist/kernel/principal.js +9 -0
  647. package/dist/kernel/principal.js.map +1 -0
  648. package/dist/kernel/runtime-config.d.ts +194 -0
  649. package/dist/kernel/runtime-config.d.ts.map +1 -0
  650. package/dist/kernel/runtime-config.js +192 -0
  651. package/dist/kernel/runtime-config.js.map +1 -0
  652. package/dist/kernel/secrets/builtin.provider.d.ts +26 -0
  653. package/dist/kernel/secrets/builtin.provider.d.ts.map +1 -0
  654. package/dist/kernel/secrets/builtin.provider.js +65 -0
  655. package/dist/kernel/secrets/builtin.provider.js.map +1 -0
  656. package/dist/kernel/secrets/envelope.d.ts +16 -0
  657. package/dist/kernel/secrets/envelope.d.ts.map +1 -0
  658. package/dist/kernel/secrets/envelope.js +44 -0
  659. package/dist/kernel/secrets/envelope.js.map +1 -0
  660. package/dist/kernel/secrets/envelope.service.d.ts +38 -0
  661. package/dist/kernel/secrets/envelope.service.d.ts.map +1 -0
  662. package/dist/kernel/secrets/envelope.service.js +86 -0
  663. package/dist/kernel/secrets/envelope.service.js.map +1 -0
  664. package/dist/kernel/secrets/keyring.d.ts +30 -0
  665. package/dist/kernel/secrets/keyring.d.ts.map +1 -0
  666. package/dist/kernel/secrets/keyring.js +32 -0
  667. package/dist/kernel/secrets/keyring.js.map +1 -0
  668. package/dist/kernel/secrets/named-secrets.d.ts +33 -0
  669. package/dist/kernel/secrets/named-secrets.d.ts.map +1 -0
  670. package/dist/kernel/secrets/named-secrets.js +63 -0
  671. package/dist/kernel/secrets/named-secrets.js.map +1 -0
  672. package/dist/kernel/secrets/provider.d.ts +17 -0
  673. package/dist/kernel/secrets/provider.d.ts.map +1 -0
  674. package/dist/kernel/secrets/provider.js +2 -0
  675. package/dist/kernel/secrets/provider.js.map +1 -0
  676. package/dist/kernel/secrets/rotation.d.ts +25 -0
  677. package/dist/kernel/secrets/rotation.d.ts.map +1 -0
  678. package/dist/kernel/secrets/rotation.js +32 -0
  679. package/dist/kernel/secrets/rotation.js.map +1 -0
  680. package/dist/kernel/settings/settings.service.d.ts +98 -0
  681. package/dist/kernel/settings/settings.service.d.ts.map +1 -0
  682. package/dist/kernel/settings/settings.service.js +92 -0
  683. package/dist/kernel/settings/settings.service.js.map +1 -0
  684. package/dist/main.d.ts +2 -0
  685. package/dist/main.d.ts.map +1 -0
  686. package/dist/main.js +39 -0
  687. package/dist/main.js.map +1 -0
  688. package/dist/routes.d.ts +5 -0
  689. package/dist/routes.d.ts.map +1 -0
  690. package/dist/routes.js +58 -0
  691. package/dist/routes.js.map +1 -0
  692. package/dist/scripts/fetch-model.d.ts +2 -0
  693. package/dist/scripts/fetch-model.d.ts.map +1 -0
  694. package/dist/scripts/fetch-model.js +34 -0
  695. package/dist/scripts/fetch-model.js.map +1 -0
  696. package/dist/scripts/gen-schema.d.ts +2 -0
  697. package/dist/scripts/gen-schema.d.ts.map +1 -0
  698. package/dist/scripts/gen-schema.js +71 -0
  699. package/dist/scripts/gen-schema.js.map +1 -0
  700. package/dist/scripts/keys.d.ts +2 -0
  701. package/dist/scripts/keys.d.ts.map +1 -0
  702. package/dist/scripts/keys.js +24 -0
  703. package/dist/scripts/keys.js.map +1 -0
  704. package/dist/scripts/migrate.d.ts +2 -0
  705. package/dist/scripts/migrate.d.ts.map +1 -0
  706. package/dist/scripts/migrate.js +45 -0
  707. package/dist/scripts/migrate.js.map +1 -0
  708. package/dist/server.d.ts +30 -0
  709. package/dist/server.d.ts.map +1 -0
  710. package/dist/server.js +129 -0
  711. package/dist/server.js.map +1 -0
  712. package/dist/version.d.ts +3 -0
  713. package/dist/version.d.ts.map +1 -0
  714. package/dist/version.js +13 -0
  715. package/dist/version.js.map +1 -0
  716. package/dist/web/static.d.ts +30 -0
  717. package/dist/web/static.d.ts.map +1 -0
  718. package/dist/web/static.js +65 -0
  719. package/dist/web/static.js.map +1 -0
  720. package/package.json +106 -4
  721. package/web-dist/assets/CompositeItem-B2Bd2eM-.js +2 -0
  722. package/web-dist/assets/CompositeItem-B2Bd2eM-.js.map +1 -0
  723. package/web-dist/assets/DialogRoot-h0udFiba.js +2 -0
  724. package/web-dist/assets/DialogRoot-h0udFiba.js.map +1 -0
  725. package/web-dist/assets/DialogTitle-fTXvJGbH.js +2 -0
  726. package/web-dist/assets/DialogTitle-fTXvJGbH.js.map +1 -0
  727. package/web-dist/assets/DirectionContext-CRBE3EOa.js +2 -0
  728. package/web-dist/assets/DirectionContext-CRBE3EOa.js.map +1 -0
  729. package/web-dist/assets/FieldItemContext-B4r08RkZ.js +2 -0
  730. package/web-dist/assets/FieldItemContext-B4r08RkZ.js.map +1 -0
  731. package/web-dist/assets/FloatingPortal-D_eDEbvZ.js +2 -0
  732. package/web-dist/assets/FloatingPortal-D_eDEbvZ.js.map +1 -0
  733. package/web-dist/assets/FloatingPortalLite-DWlDzoqv.js +2 -0
  734. package/web-dist/assets/FloatingPortalLite-DWlDzoqv.js.map +1 -0
  735. package/web-dist/assets/Separator-DDDyVkeP.js +2 -0
  736. package/web-dist/assets/Separator-DDDyVkeP.js.map +1 -0
  737. package/web-dist/assets/_app-BY6-IpyI.js +2 -0
  738. package/web-dist/assets/_app-BY6-IpyI.js.map +1 -0
  739. package/web-dist/assets/_app-Ba10rJVa.js +2 -0
  740. package/web-dist/assets/_app-Ba10rJVa.js.map +1 -0
  741. package/web-dist/assets/_app-Bv2dBVot.js +2 -0
  742. package/web-dist/assets/_app-Bv2dBVot.js.map +1 -0
  743. package/web-dist/assets/_groupId-ENiG99V5.js +2 -0
  744. package/web-dist/assets/_groupId-ENiG99V5.js.map +1 -0
  745. package/web-dist/assets/_issueId-CAHjIiZ8.js +2 -0
  746. package/web-dist/assets/_issueId-CAHjIiZ8.js.map +1 -0
  747. package/web-dist/assets/_runId-XmmZmpWa.js +4 -0
  748. package/web-dist/assets/_runId-XmmZmpWa.js.map +1 -0
  749. package/web-dist/assets/_serverId-C9y6ztaL.js +2 -0
  750. package/web-dist/assets/_serverId-C9y6ztaL.js.map +1 -0
  751. package/web-dist/assets/_taskId-D8fVBV_H.js +2 -0
  752. package/web-dist/assets/_taskId-D8fVBV_H.js.map +1 -0
  753. package/web-dist/assets/_toolId-CnbF7zls.js +6 -0
  754. package/web-dist/assets/_toolId-CnbF7zls.js.map +1 -0
  755. package/web-dist/assets/alert-OPOFnW2X.js +2 -0
  756. package/web-dist/assets/alert-OPOFnW2X.js.map +1 -0
  757. package/web-dist/assets/api-client-CnTzbAbK.js +56 -0
  758. package/web-dist/assets/api-client-CnTzbAbK.js.map +1 -0
  759. package/web-dist/assets/appearance-D7nZLK7y.js +2 -0
  760. package/web-dist/assets/appearance-D7nZLK7y.js.map +1 -0
  761. package/web-dist/assets/arrow-up-Dop2Zfy9.js +2 -0
  762. package/web-dist/assets/arrow-up-Dop2Zfy9.js.map +1 -0
  763. package/web-dist/assets/audit-Cws4Sb1Z.js +2 -0
  764. package/web-dist/assets/audit-Cws4Sb1Z.js.map +1 -0
  765. package/web-dist/assets/button-0-kx6BS-.js +2 -0
  766. package/web-dist/assets/button-0-kx6BS-.js.map +1 -0
  767. package/web-dist/assets/card-bOMGzWND.js +2 -0
  768. package/web-dist/assets/card-bOMGzWND.js.map +1 -0
  769. package/web-dist/assets/chevron-right-jlmAjiMj.js +2 -0
  770. package/web-dist/assets/chevron-right-jlmAjiMj.js.map +1 -0
  771. package/web-dist/assets/client-snippet-DyzxqQDv.js +2 -0
  772. package/web-dist/assets/client-snippet-DyzxqQDv.js.map +1 -0
  773. package/web-dist/assets/code-view-Dp3S3g6k.js +4 -0
  774. package/web-dist/assets/code-view-Dp3S3g6k.js.map +1 -0
  775. package/web-dist/assets/compare-CHKwYuEP.js +2 -0
  776. package/web-dist/assets/compare-CHKwYuEP.js.map +1 -0
  777. package/web-dist/assets/components-CNkWqS3X.js +2 -0
  778. package/web-dist/assets/components-CNkWqS3X.js.map +1 -0
  779. package/web-dist/assets/components-DYbjYUzw.js +2 -0
  780. package/web-dist/assets/components-DYbjYUzw.js.map +1 -0
  781. package/web-dist/assets/composite-Bfwhy6qy.js +2 -0
  782. package/web-dist/assets/composite-Bfwhy6qy.js.map +1 -0
  783. package/web-dist/assets/confirm-dialog-BY5FJuQC.js +2 -0
  784. package/web-dist/assets/confirm-dialog-BY5FJuQC.js.map +1 -0
  785. package/web-dist/assets/connect-DEWuCUqH.js +2 -0
  786. package/web-dist/assets/connect-DEWuCUqH.js.map +1 -0
  787. package/web-dist/assets/core-CveQFPAO.js +13 -0
  788. package/web-dist/assets/core-CveQFPAO.js.map +1 -0
  789. package/web-dist/assets/create-key-dialog-DbtnDlv9.js +3 -0
  790. package/web-dist/assets/create-key-dialog-DbtnDlv9.js.map +1 -0
  791. package/web-dist/assets/createLucideIcon-4wkYGrAu.js +2 -0
  792. package/web-dist/assets/createLucideIcon-4wkYGrAu.js.map +1 -0
  793. package/web-dist/assets/crumbs-CFOzyevD.js +2 -0
  794. package/web-dist/assets/crumbs-CFOzyevD.js.map +1 -0
  795. package/web-dist/assets/data-table-DL8nsehq.js +2 -0
  796. package/web-dist/assets/data-table-DL8nsehq.js.map +1 -0
  797. package/web-dist/assets/download-BJL2mMMG.js +2 -0
  798. package/web-dist/assets/download-BJL2mMMG.js.map +1 -0
  799. package/web-dist/assets/download-Ct9K1Blk.js +2 -0
  800. package/web-dist/assets/download-Ct9K1Blk.js.map +1 -0
  801. package/web-dist/assets/draft-bar-DQo326FN.js +2 -0
  802. package/web-dist/assets/draft-bar-DQo326FN.js.map +1 -0
  803. package/web-dist/assets/engine-javascript-C30F4iNc.js +142 -0
  804. package/web-dist/assets/engine-javascript-C30F4iNc.js.map +1 -0
  805. package/web-dist/assets/env-summary-C8OSGAi1.js +2 -0
  806. package/web-dist/assets/env-summary-C8OSGAi1.js.map +1 -0
  807. package/web-dist/assets/environments-xDHrvcC0.js +2 -0
  808. package/web-dist/assets/environments-xDHrvcC0.js.map +1 -0
  809. package/web-dist/assets/evals-D103yj9M.js +2 -0
  810. package/web-dist/assets/evals-D103yj9M.js.map +1 -0
  811. package/web-dist/assets/file-drop-BUz7NVu0.js +2 -0
  812. package/web-dist/assets/file-drop-BUz7NVu0.js.map +1 -0
  813. package/web-dist/assets/file-text-BzSWwAXx.js +2 -0
  814. package/web-dist/assets/file-text-BzSWwAXx.js.map +1 -0
  815. package/web-dist/assets/file-up-DhxoycHf.js +2 -0
  816. package/web-dist/assets/file-up-DhxoycHf.js.map +1 -0
  817. package/web-dist/assets/gauge-DB20Sf_v.js +2 -0
  818. package/web-dist/assets/gauge-DB20Sf_v.js.map +1 -0
  819. package/web-dist/assets/github-dark-default-DXG-b-1a.js +2 -0
  820. package/web-dist/assets/github-dark-default-DXG-b-1a.js.map +1 -0
  821. package/web-dist/assets/github-light-default-BXViO-2h.js +2 -0
  822. package/web-dist/assets/github-light-default-BXViO-2h.js.map +1 -0
  823. package/web-dist/assets/graphql-CSsyTQ1B.js +2 -0
  824. package/web-dist/assets/graphql-CSsyTQ1B.js.map +1 -0
  825. package/web-dist/assets/inbox--axfoemS.js +2 -0
  826. package/web-dist/assets/inbox--axfoemS.js.map +1 -0
  827. package/web-dist/assets/inbox-Bg9XxN9I.js +2 -0
  828. package/web-dist/assets/inbox-Bg9XxN9I.js.map +1 -0
  829. package/web-dist/assets/index-CI-LmJP7.css +2 -0
  830. package/web-dist/assets/index-EqRZkjd6.js +17 -0
  831. package/web-dist/assets/index-EqRZkjd6.js.map +1 -0
  832. package/web-dist/assets/inertValue-BEKHztUQ.js +2 -0
  833. package/web-dist/assets/inertValue-BEKHztUQ.js.map +1 -0
  834. package/web-dist/assets/json-qhed-kSA.js +2 -0
  835. package/web-dist/assets/json-qhed-kSA.js.map +1 -0
  836. package/web-dist/assets/json-viewer-DFAY-JaC.js +2 -0
  837. package/web-dist/assets/json-viewer-DFAY-JaC.js.map +1 -0
  838. package/web-dist/assets/key-round-CPrc1zQr.js +2 -0
  839. package/web-dist/assets/key-round-CPrc1zQr.js.map +1 -0
  840. package/web-dist/assets/keys-D2H6bYnB.js +2 -0
  841. package/web-dist/assets/keys-D2H6bYnB.js.map +1 -0
  842. package/web-dist/assets/labels-B8sf8Hg_.js +2 -0
  843. package/web-dist/assets/labels-B8sf8Hg_.js.map +1 -0
  844. package/web-dist/assets/link-CByMaQfX.js +3 -0
  845. package/web-dist/assets/link-CByMaQfX.js.map +1 -0
  846. package/web-dist/assets/link-tabs-C06q3Y1p.js +2 -0
  847. package/web-dist/assets/link-tabs-C06q3Y1p.js.map +1 -0
  848. package/web-dist/assets/link-xDlPECzC.js +2 -0
  849. package/web-dist/assets/link-xDlPECzC.js.map +1 -0
  850. package/web-dist/assets/list-tree-Cq6aoA_B.js +2 -0
  851. package/web-dist/assets/list-tree-Cq6aoA_B.js.map +1 -0
  852. package/web-dist/assets/logged-out-Cia2QO9r.js +2 -0
  853. package/web-dist/assets/logged-out-Cia2QO9r.js.map +1 -0
  854. package/web-dist/assets/login-DgDPuB_V.js +2 -0
  855. package/web-dist/assets/login-DgDPuB_V.js.map +1 -0
  856. package/web-dist/assets/mode-recommendation-DoHGuZUm.js +2 -0
  857. package/web-dist/assets/mode-recommendation-DoHGuZUm.js.map +1 -0
  858. package/web-dist/assets/models-DPi2Bzvy.js +2 -0
  859. package/web-dist/assets/models-DPi2Bzvy.js.map +1 -0
  860. package/web-dist/assets/navigation-Crt8lW1m.js +2 -0
  861. package/web-dist/assets/navigation-Crt8lW1m.js.map +1 -0
  862. package/web-dist/assets/new-Ccw0Hlfl.js +5 -0
  863. package/web-dist/assets/new-Ccw0Hlfl.js.map +1 -0
  864. package/web-dist/assets/overlay-C_UeOJOw.js +2 -0
  865. package/web-dist/assets/overlay-C_UeOJOw.js.map +1 -0
  866. package/web-dist/assets/page-header-CHk7bso7.js +2 -0
  867. package/web-dist/assets/page-header-CHk7bso7.js.map +1 -0
  868. package/web-dist/assets/permissions-Bf3wb1Jv.js +2 -0
  869. package/web-dist/assets/permissions-Bf3wb1Jv.js.map +1 -0
  870. package/web-dist/assets/plug-CrM5MZO2.js +2 -0
  871. package/web-dist/assets/plug-CrM5MZO2.js.map +1 -0
  872. package/web-dist/assets/plus-C6_H380k.js +2 -0
  873. package/web-dist/assets/plus-C6_H380k.js.map +1 -0
  874. package/web-dist/assets/progress-DaZnZarb.js +2 -0
  875. package/web-dist/assets/progress-DaZnZarb.js.map +1 -0
  876. package/web-dist/assets/python-gzcpVVnB.js +2 -0
  877. package/web-dist/assets/python-gzcpVVnB.js.map +1 -0
  878. package/web-dist/assets/queries-3DiENdpp.js +2 -0
  879. package/web-dist/assets/queries-3DiENdpp.js.map +1 -0
  880. package/web-dist/assets/queries-CJD0QpGi.js +2 -0
  881. package/web-dist/assets/queries-CJD0QpGi.js.map +1 -0
  882. package/web-dist/assets/queries-CaU3gifI.js +2 -0
  883. package/web-dist/assets/queries-CaU3gifI.js.map +1 -0
  884. package/web-dist/assets/queries-DOMFJPBg.js +2 -0
  885. package/web-dist/assets/queries-DOMFJPBg.js.map +1 -0
  886. package/web-dist/assets/queries-DzYj_ZKK.js +2 -0
  887. package/web-dist/assets/queries-DzYj_ZKK.js.map +1 -0
  888. package/web-dist/assets/queries-O4X2594T.js +2 -0
  889. package/web-dist/assets/queries-O4X2594T.js.map +1 -0
  890. package/web-dist/assets/queries-iauKjcDt.js +2 -0
  891. package/web-dist/assets/queries-iauKjcDt.js.map +1 -0
  892. package/web-dist/assets/queries-yxFwGLDb.js +2 -0
  893. package/web-dist/assets/queries-yxFwGLDb.js.map +1 -0
  894. package/web-dist/assets/reason-parts-B6nt3n-F.js +2 -0
  895. package/web-dist/assets/reason-parts-B6nt3n-F.js.map +1 -0
  896. package/web-dist/assets/redirect-B4OxYbs2.js +2 -0
  897. package/web-dist/assets/redirect-B4OxYbs2.js.map +1 -0
  898. package/web-dist/assets/refresh-cw-Dk41furN.js +2 -0
  899. package/web-dist/assets/refresh-cw-Dk41furN.js.map +1 -0
  900. package/web-dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  901. package/web-dist/assets/route-Ba10rJVa.js +2 -0
  902. package/web-dist/assets/route-Ba10rJVa.js.map +1 -0
  903. package/web-dist/assets/route-DFvqBlRc.js +2 -0
  904. package/web-dist/assets/route-DFvqBlRc.js.map +1 -0
  905. package/web-dist/assets/score-ring-D3Ff8hXt.js +2 -0
  906. package/web-dist/assets/score-ring-D3Ff8hXt.js.map +1 -0
  907. package/web-dist/assets/section-Bq1blJ9c.js +2 -0
  908. package/web-dist/assets/section-Bq1blJ9c.js.map +1 -0
  909. package/web-dist/assets/segmented-RsFdV9xJ.js +2 -0
  910. package/web-dist/assets/segmented-RsFdV9xJ.js.map +1 -0
  911. package/web-dist/assets/separator-CcxDVEHH.js +2 -0
  912. package/web-dist/assets/separator-CcxDVEHH.js.map +1 -0
  913. package/web-dist/assets/server-BvD6BIlz.js +2 -0
  914. package/web-dist/assets/server-BvD6BIlz.js.map +1 -0
  915. package/web-dist/assets/server-switcher-hOm8Popx.js +2 -0
  916. package/web-dist/assets/server-switcher-hOm8Popx.js.map +1 -0
  917. package/web-dist/assets/servers-DBjU_qiZ.js +2 -0
  918. package/web-dist/assets/servers-DBjU_qiZ.js.map +1 -0
  919. package/web-dist/assets/settings-DCmODejD.js +2 -0
  920. package/web-dist/assets/settings-DCmODejD.js.map +1 -0
  921. package/web-dist/assets/settings-zp4uTZ2u.js +2 -0
  922. package/web-dist/assets/settings-zp4uTZ2u.js.map +1 -0
  923. package/web-dist/assets/sheet-CZ77BIgN.js +2 -0
  924. package/web-dist/assets/sheet-CZ77BIgN.js.map +1 -0
  925. package/web-dist/assets/skeleton-CuU6NqIG.js +2 -0
  926. package/web-dist/assets/skeleton-CuU6NqIG.js.map +1 -0
  927. package/web-dist/assets/sparkles-DMF5S9tx.js +2 -0
  928. package/web-dist/assets/sparkles-DMF5S9tx.js.map +1 -0
  929. package/web-dist/assets/spec-Bhk7L9IF.js +2 -0
  930. package/web-dist/assets/spec-Bhk7L9IF.js.map +1 -0
  931. package/web-dist/assets/spinner-BLf8_Ajk.js +2 -0
  932. package/web-dist/assets/spinner-BLf8_Ajk.js.map +1 -0
  933. package/web-dist/assets/states-Z2xH3pUB.js +2 -0
  934. package/web-dist/assets/states-Z2xH3pUB.js.map +1 -0
  935. package/web-dist/assets/storage-CuUK35fn.js +2 -0
  936. package/web-dist/assets/storage-CuUK35fn.js.map +1 -0
  937. package/web-dist/assets/store-SrwTVjPk.js +2 -0
  938. package/web-dist/assets/store-SrwTVjPk.js.map +1 -0
  939. package/web-dist/assets/switch-C_lbqEIt.js +2 -0
  940. package/web-dist/assets/switch-C_lbqEIt.js.map +1 -0
  941. package/web-dist/assets/tasks-CRKt_Suy.js +2 -0
  942. package/web-dist/assets/tasks-CRKt_Suy.js.map +1 -0
  943. package/web-dist/assets/timeline-Cye1s7g_.js +2 -0
  944. package/web-dist/assets/timeline-Cye1s7g_.js.map +1 -0
  945. package/web-dist/assets/tools-C5I1npEn.js +2 -0
  946. package/web-dist/assets/tools-C5I1npEn.js.map +1 -0
  947. package/web-dist/assets/tooltip--tDonqxM.js +2 -0
  948. package/web-dist/assets/tooltip--tDonqxM.js.map +1 -0
  949. package/web-dist/assets/use-cursor-stack-DIOApcfL.js +2 -0
  950. package/web-dist/assets/use-cursor-stack-DIOApcfL.js.map +1 -0
  951. package/web-dist/assets/use-debounced-value-CSowsQHr.js +2 -0
  952. package/web-dist/assets/use-debounced-value-CSowsQHr.js.map +1 -0
  953. package/web-dist/assets/use-min-width-b55txtG6.js +2 -0
  954. package/web-dist/assets/use-min-width-b55txtG6.js.map +1 -0
  955. package/web-dist/assets/use-mobile-R850ZQZG.js +2 -0
  956. package/web-dist/assets/use-mobile-R850ZQZG.js.map +1 -0
  957. package/web-dist/assets/useAriaLabelledBy-DjHYrmeF.js +2 -0
  958. package/web-dist/assets/useAriaLabelledBy-DjHYrmeF.js.map +1 -0
  959. package/web-dist/assets/useBaseQuery-BoQjiPOp.js +2 -0
  960. package/web-dist/assets/useBaseQuery-BoQjiPOp.js.map +1 -0
  961. package/web-dist/assets/useBaseUiId-BUBV7JiZ.js +2 -0
  962. package/web-dist/assets/useBaseUiId-BUBV7JiZ.js.map +1 -0
  963. package/web-dist/assets/useButton-DQ6Sgg7h.js +2 -0
  964. package/web-dist/assets/useButton-DQ6Sgg7h.js.map +1 -0
  965. package/web-dist/assets/useControlled-B9BFcdfh.js +2 -0
  966. package/web-dist/assets/useControlled-B9BFcdfh.js.map +1 -0
  967. package/web-dist/assets/useNavigate-CrwlTILa.js +2 -0
  968. package/web-dist/assets/useNavigate-CrwlTILa.js.map +1 -0
  969. package/web-dist/assets/useOpenChangeComplete-DUM-_E2z.js +2 -0
  970. package/web-dist/assets/useOpenChangeComplete-DUM-_E2z.js.map +1 -0
  971. package/web-dist/assets/usePositioner-BQnDdcQL.js +2 -0
  972. package/web-dist/assets/usePositioner-BQnDdcQL.js.map +1 -0
  973. package/web-dist/assets/useQuery-BkgWvtTa.js +2 -0
  974. package/web-dist/assets/useQuery-BkgWvtTa.js.map +1 -0
  975. package/web-dist/assets/useRegisterFieldControl-DuodOtnM.js +2 -0
  976. package/web-dist/assets/useRegisterFieldControl-DuodOtnM.js.map +1 -0
  977. package/web-dist/assets/useRouterState-DeGPqG1m.js +2 -0
  978. package/web-dist/assets/useRouterState-DeGPqG1m.js.map +1 -0
  979. package/web-dist/assets/useScrollLock-BWBVawYJ.js +2 -0
  980. package/web-dist/assets/useScrollLock-BWBVawYJ.js.map +1 -0
  981. package/web-dist/assets/useTimeout-SGSgaiy1.js +2 -0
  982. package/web-dist/assets/useTimeout-SGSgaiy1.js.map +1 -0
  983. package/web-dist/assets/useTransitionStatus-Dy_zd4z2.js +2 -0
  984. package/web-dist/assets/useTransitionStatus-Dy_zd4z2.js.map +1 -0
  985. package/web-dist/assets/useTriggerFocusGuards-9VjGYE1p.js +2 -0
  986. package/web-dist/assets/useTriggerFocusGuards-9VjGYE1p.js.map +1 -0
  987. package/web-dist/assets/useValueChanged-BqSvidps.js +2 -0
  988. package/web-dist/assets/useValueChanged-BqSvidps.js.map +1 -0
  989. package/web-dist/assets/utils-BFSetRo1.js +2 -0
  990. package/web-dist/assets/utils-BFSetRo1.js.map +1 -0
  991. package/web-dist/assets/wrench-CIdGHcvJ.js +2 -0
  992. package/web-dist/assets/wrench-CIdGHcvJ.js.map +1 -0
  993. package/web-dist/assets/x-5OcgPlDp.js +2 -0
  994. package/web-dist/assets/x-5OcgPlDp.js.map +1 -0
  995. package/web-dist/assets/yaml-rwi0_p6S.js +2 -0
  996. package/web-dist/assets/yaml-rwi0_p6S.js.map +1 -0
  997. package/web-dist/favicon.svg +1 -0
  998. package/web-dist/index.html +55 -0
  999. package/web-dist/theme-init.js +44 -0
  1000. package/README.md +0 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FloatingPortal-D_eDEbvZ.js","names":["useSyncExternalStore","useSyncExternalStoreWithSelector","popupOpen","CommonTriggerDataAttributes.popupOpen","TooltipTriggerDataAttributes.triggerDisabled","platform.env.jsdom","platform.screenReader.voiceOver","platform.engine.webkit","__toESM","require_react","require_jsx_runtime","require_react_dom","closest","activeElement","visuallyHidden","isElementVisible","contains","require_shim","require_with_selector","isReactVersionAtLeast","EMPTY_OBJECT","NOOP","useIsoLayoutEffect","useRefWithInit","useStableCallback","isNode","isHTMLElement","getComputedStyle","useRenderElement","getNodeName","isShadowRoot","isElement","createChangeEventDetails","useId","import_shim","import_with_selector","import_react","hooks","currentInstance","getInstance","register","hook","fastComponent","FastComponent","instance","createInstance","result","fn","props","forwardedRef","fastComponentRef","useStoreImplementation","useStoreFast","useStoreLegacy","useStore","store","selector","a1","a2","a3","useStoreR19","getSelection","didChange","i","value","stores","unsubscribes","onStoreChange","unsubscribe","index","state","Store","newState","currentTick","listener","key","changes","ReactStore","context","selectors","dependencies","statePart","isControlled","controlled","stableFunction","ref","selectFn","prevValue","nextValue","nextState","oldValue","import_react_dom","mergeCleanups","cleanups","cleanup","import_jsx_runtime","ownerDocument","node","addEventListener","target","type","options","readRawData","lowerUserAgent","userAgent","lowerPlatform","platform","ios","maxTouchPoints","ANDROID_STRING","android","mac","apple","webkit","voiceOver","jsdom","FOCUSABLE_ATTRIBUTE","TYPEABLE_SELECTOR","ARROW_LEFT","ARROW_RIGHT","ARROW_UP","ARROW_DOWN","popupOpen$1","pressed","triggerDisabled","isTargetInsideEnabledTrigger","targetElement","triggerElements","trigger","isEventTargetWithin","event","eventAgain","isRootElement","element","isTypeableElement","isInteractiveElement","isTypeableCombobox","matchesFocusVisible","getFloatingFocusElement","floatingElement","CANDIDATE_SELECTOR","getParentElement","assignedSlot","rootNode","getDetailsSummary","child","details","isWithinOpenDetailsSummary","summary","isFocusableCandidate","nodeName","isFocusableElement","current","isAncestor","isSlot","isVisibleInTabbableTree","styles","getTabIndex","tabIndex","getNamedRadioInput","input","isTabbableRadio","checkedRadio","candidates","radio","candidate","getComposedChildren","container","assignedElements","appendCandidates","list","appendMatchingElements","isTabbable","focusable","tabbable","getTabbableIn","len","active","dir","getNextTabbable","referenceElement","getPreviousTabbable","getTabbableNearElement","offset","direction","exclude","isOutsideEvent","containerElement","relatedTarget","disableFocusInside","enableFocusInside","elements","tabindex","FocusGuard","role","setRole","restProps","DISABLED_TRANSITIONS_STYLE","CLICK_TRIGGER_IDENTIFIER","BASE_UI_SWIPE_IGNORE_ATTRIBUTE","LEGACY_SWIPE_IGNORE_ATTRIBUTE","BASE_UI_SWIPE_IGNORE_SELECTOR","LEGACY_SWIPE_IGNORE_SELECTOR","DROPDOWN_COLLISION_AVOIDANCE","POPUP_COLLISION_AVOIDANCE","ownerVisuallyHidden","createAttribute","name","PortalContext","usePortalContext","attr","useFloatingPortalNode","containerProp","uniqueId","parentPortalNode","setContainerElement","portalNode","setPortalNode","setPortalNodeRef","containerRef","resolvedContainer","portalElement","componentProps","elementProps","portalSubtree","FloatingPortal","portalNodeId","beforeOutsideRef","afterOutsideRef","beforeInsideRef","afterInsideRef","focusManagerState","setFocusManagerState","focusInsideDisabledRef","modal","open","shouldRenderGuards","onFocus","portalContextValue","portalOwnerRole","children"],"sources":["../../../../node_modules/@base-ui/utils/fastHooks.mjs","../../../../node_modules/@base-ui/utils/store/useStore.mjs","../../../../node_modules/@base-ui/utils/store/Store.mjs","../../../../node_modules/@base-ui/utils/store/ReactStore.mjs","../../../../node_modules/@base-ui/utils/mergeCleanups.mjs","../../../../node_modules/@base-ui/utils/owner.mjs","../../../../node_modules/@base-ui/utils/addEventListener.mjs","../../../../node_modules/@base-ui/utils/platform/shared.mjs","../../../../node_modules/@base-ui/utils/platform/os.mjs","../../../../node_modules/@base-ui/utils/platform/engine.mjs","../../../../node_modules/@base-ui/utils/platform/screen-reader.mjs","../../../../node_modules/@base-ui/utils/platform/env.mjs","../../../../node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs","../../../../node_modules/@base-ui/react/utils/CommonTriggerDataAttributes.mjs","../../../../node_modules/@base-ui/react/tooltip/trigger/TooltipTriggerDataAttributes.mjs","../../../../node_modules/@base-ui/react/floating-ui-react/utils/element.mjs","../../../../node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs","../../../../node_modules/@base-ui/react/utils/FocusGuard.mjs","../../../../node_modules/@base-ui/react/internals/constants.mjs","../../../../node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs","../../../../node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs"],"sourcesContent":["import * as React from 'react';\nimport { useRefWithInit } from \"./useRefWithInit.mjs\";\nconst hooks = [];\nlet currentInstance = undefined;\nexport function getInstance() {\n return currentInstance;\n}\nexport function setInstance(instance) {\n currentInstance = instance;\n}\nexport function register(hook) {\n hooks.push(hook);\n}\n\n/**\n * Wraps a component function to enable performance optimizations for internal hooks.\n *\n * **Performance Optimization:**\n * Components wrapped with `fastComponent` have access to a shared \"instance\" context that enables\n * specialized hook implementations to batch operations and reduce overhead. The wrapper creates a\n * stable instance object that persists across renders, sets it as the current context, calls\n * registered hooks before and after rendering, then clears the context. The primary benefit is\n * with `useStore`, where multiple store subscriptions within the same component are collapsed into\n * a single `useSyncExternalStore` subscription per store, significantly reducing re-render overhead.\n * This optimization is only active on React 19+; on earlier versions `useStore` falls back to a\n * separate subscription per call.\n *\n * **Requirements:**\n * - The component function should follow standard React component patterns\n * - `useStore` calls must keep a stable order and count across renders, as batched hooks are\n * matched by call index\n * - Do not rely on the instance context outside of specialized hooks\n *\n * @param fn - The component function to wrap\n * @returns A wrapped component with the same signature as the input function\n *\n * @example\n * ```tsx\n * // Wrapping a component to enable optimized useStore batching\n * export const TooltipRoot = fastComponent(function TooltipRoot(props) {\n * // These useStore calls share a single subscription\n * const open = useStore(store, (state) => state.open);\n * const disabled = useStore(store, (state) => state.disabled);\n * const value = useStore(store, (state) => state.value);\n * // ...\n * });\n * ```\n */\nexport function fastComponent(fn) {\n const FastComponent = (props, forwardedRef) => {\n const instance = useRefWithInit(createInstance).current;\n let result;\n try {\n currentInstance = instance;\n for (const hook of hooks) {\n hook.before(instance);\n }\n result = fn(props, forwardedRef);\n for (const hook of hooks) {\n hook.after(instance);\n }\n instance.didInitialize = true;\n } finally {\n currentInstance = undefined;\n }\n return result;\n };\n FastComponent.displayName = fn.displayName || fn.name;\n return FastComponent;\n}\n\n/**\n * Wraps a component function with ref forwarding to enable performance optimizations for internal hooks.\n *\n * This is a convenience wrapper that combines `fastComponent` with `React.forwardRef`, enabling\n * both performance optimizations and proper ref forwarding. See `fastComponent` for details on\n * the performance benefits.\n *\n * @param fn - The component function that accepts props and a forwarded ref\n * @returns A wrapped component with ref forwarding enabled\n *\n * @example\n * ```tsx\n * // Wrapping a component with ref forwarding and optimized hooks\n * export const TooltipTrigger = fastComponentRef(function TooltipTrigger(\n * props,\n * forwardedRef\n * ) {\n * const store = useContext(TooltipContext);\n * const open = useStore(store, (state) => state.open);\n * // ... component logic with ref\n * return <button ref={forwardedRef} {...props} />;\n * });\n * ```\n */\nexport function fastComponentRef(fn) {\n return /*#__PURE__*/React.forwardRef(fastComponent(fn));\n}\nfunction createInstance() {\n return {\n didInitialize: false\n };\n}","import * as React from 'react';\n/* We need to import the shim because React 17 does not support the `useSyncExternalStore` API.\n * More info: https://github.com/mui/mui-x/issues/18303#issuecomment-2958392341 */\nimport { useSyncExternalStore } from 'use-sync-external-store/shim';\nimport { useSyncExternalStoreWithSelector } from 'use-sync-external-store/shim/with-selector';\nimport { isReactVersionAtLeast } from \"../reactVersion.mjs\";\nimport { register, getInstance } from \"../fastHooks.mjs\";\n/* Some tests fail in R18 with the raw useSyncExternalStore. It may be possible to make it work\n * but for now we only enable it for R19+. */\nconst canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);\nconst useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;\nexport function useStore(store, selector, a1, a2, a3) {\n return useStoreImplementation(store, selector, a1, a2, a3);\n}\nfunction useStoreR19(store, selector, a1, a2, a3) {\n const getSelection = React.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);\n return useSyncExternalStore(store.subscribe, getSelection, getSelection);\n}\nregister({\n before(instance) {\n instance.syncIndex = 0;\n if (!instance.didInitialize) {\n instance.syncTick = 1;\n instance.syncHooks = [];\n instance.didChangeStore = true;\n instance.getSnapshot = () => {\n let didChange = false;\n for (let i = 0; i < instance.syncHooks.length; i += 1) {\n const hook = instance.syncHooks[i];\n const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);\n if (!Object.is(hook.value, value)) {\n didChange = true;\n hook.value = value;\n }\n }\n if (didChange) {\n instance.syncTick += 1;\n }\n return instance.syncTick;\n };\n }\n },\n after(instance) {\n if (instance.syncHooks.length > 0) {\n if (instance.didChangeStore) {\n instance.didChangeStore = false;\n instance.subscribe = onStoreChange => {\n const stores = new Set();\n for (const hook of instance.syncHooks) {\n stores.add(hook.store);\n }\n const unsubscribes = [];\n for (const store of stores) {\n unsubscribes.push(store.subscribe(onStoreChange));\n }\n return () => {\n for (const unsubscribe of unsubscribes) {\n unsubscribe();\n }\n };\n };\n }\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useSyncExternalStore(instance.subscribe, instance.getSnapshot, instance.getSnapshot);\n }\n }\n});\nfunction useStoreFast(store, selector, a1, a2, a3) {\n const instance = getInstance();\n if (!instance) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStoreR19(store, selector, a1, a2, a3);\n }\n const index = instance.syncIndex;\n instance.syncIndex += 1;\n let hook;\n if (!instance.didInitialize) {\n hook = {\n store,\n selector,\n a1,\n a2,\n a3,\n value: selector(store.getSnapshot(), a1, a2, a3)\n };\n instance.syncHooks.push(hook);\n } else {\n hook = instance.syncHooks[index];\n if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {\n if (hook.store !== store) {\n instance.didChangeStore = true;\n }\n hook.store = store;\n hook.selector = selector;\n hook.a1 = a1;\n hook.a2 = a2;\n hook.a3 = a3;\n hook.value = selector(store.getSnapshot(), a1, a2, a3);\n }\n }\n return hook.value;\n}\nfunction useStoreLegacy(store, selector, a1, a2, a3) {\n return useSyncExternalStoreWithSelector(store.subscribe, store.getSnapshot, store.getSnapshot, state => selector(state, a1, a2, a3));\n}","import { useStore } from \"./useStore.mjs\";\n/**\n * A data store implementation that allows subscribing to state changes and updating the state.\n * It uses an observer pattern to notify subscribers when the state changes.\n */\nexport class Store {\n /**\n * Creates a store with the given initial state, constructing the class it is called on.\n * Calling it on a generic base class (e.g. `ReactStore.create(...)`) constructs that\n * class but degrades the inferred instance type to `Store`; use `new` there instead.\n */\n static create(state) {\n return new this(state);\n }\n\n /**\n * The current state of the store.\n * This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.\n * To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).\n * The values can be used directly (to avoid subscribing to the store) in effects or event handlers.\n *\n * Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.\n */\n\n // Internal state to handle recursive `setState()` calls\n\n constructor(state) {\n this.state = state;\n this.listeners = new Set();\n this.updateTick = 0;\n }\n\n /**\n * Registers a listener that will be called whenever the store's state changes.\n *\n * @param fn The listener function to be called on state changes.\n * @returns A function to unsubscribe the listener.\n */\n subscribe = fn => {\n this.listeners.add(fn);\n return () => {\n this.listeners.delete(fn);\n };\n };\n\n /**\n * Returns the current state of the store.\n */\n getSnapshot = () => {\n return this.state;\n };\n\n /**\n * Updates the entire store's state and notifies all registered listeners.\n *\n * @param newState The new state to set for the store.\n */\n setState(newState) {\n if (this.state === newState) {\n return;\n }\n this.state = newState;\n this.updateTick += 1;\n const currentTick = this.updateTick;\n for (const listener of this.listeners) {\n if (currentTick !== this.updateTick) {\n // If the tick has changed, a recursive `setState` call has been made,\n // and it has already notified all listeners.\n return;\n }\n listener(newState);\n }\n }\n\n /**\n * Merges the provided changes into the current state and notifies listeners if there are changes.\n * Each value must match its state key. Pass an exact known subset rather than a broad\n * `Partial<State>`, which may contain `undefined` for required state fields.\n *\n * @param changes An object containing the changes to apply to the current state.\n */\n update(changes) {\n for (const key in changes) {\n if (!Object.is(this.state[key], changes[key])) {\n this.setState({\n ...this.state,\n ...changes\n });\n return;\n }\n }\n }\n\n /**\n * Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.\n *\n * @param key The key in the store's state to update.\n * @param value The new value to set for the specified key.\n */\n set(key, value) {\n if (!Object.is(this.state[key], value)) {\n this.setState({\n ...this.state,\n [key]: value\n });\n }\n }\n\n /**\n * Gives the state a new reference and updates all registered listeners.\n */\n notifyAll() {\n const newState = {\n ...this.state\n };\n this.setState(newState);\n }\n use(selector, a1, a2, a3) {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n return useStore(this, selector, a1, a2, a3);\n }\n}","/* False positives - ESLint thinks we're calling a hook from a class component. */\n/* eslint-disable react-hooks/rules-of-hooks */\n'use client';\n\nimport * as React from 'react';\nimport { Store } from \"./Store.mjs\";\nimport { useStore } from \"./useStore.mjs\";\nimport { useStableCallback } from \"../useStableCallback.mjs\";\nimport { useIsoLayoutEffect } from \"../useIsoLayoutEffect.mjs\";\nimport { NOOP } from \"../empty.mjs\";\n\n/**\n * A Store that supports controlled state keys, non-reactive values and provides utility methods for React.\n */\nexport class ReactStore extends Store {\n /**\n * Creates a new ReactStore instance.\n *\n * @param state Initial state of the store.\n * @param context Non-reactive context values.\n * @param selectors Optional selectors for use with `useState`.\n */\n constructor(state, context = {}, selectors) {\n super(state);\n this.context = context;\n this.selectors = selectors;\n }\n\n /**\n * Non-reactive values such as refs, callbacks, etc.\n */\n\n /**\n * Synchronizes a single external value into the store.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValue(key, value) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes a single external value into the store and\n * cleans it up (sets to `undefined`) on unmount.\n *\n * Note that the while the value in `state` is updated immediately, the value returned\n * by `useState` is updated before the next render (similarly to React's `useState`).\n */\n useSyncedValueWithCleanup(key, value) {\n // eslint-disable-next-line consistent-this\n const store = this;\n useIsoLayoutEffect(() => {\n if (store.state[key] !== value) {\n store.set(key, value);\n }\n return () => {\n store.set(key, undefined);\n };\n }, [store, key, value]);\n }\n\n /**\n * Synchronizes multiple external values into the store.\n * Each value must match its state key. Pass an exact known subset rather than a broad\n * `Partial<State>`, which may contain `undefined` for required state fields.\n *\n * Note that the while the values in `state` are updated immediately, the values returned\n * by `useState` are updated before the next render (similarly to React's `useState`).\n *\n * @param statePart An exact subset of state fields to synchronize. Unknown keys are not accepted.\n */\n useSyncedValues(statePart) {\n // eslint-disable-next-line consistent-this\n const store = this;\n if (process.env.NODE_ENV !== 'production') {\n // Check that an object with the same shape is passed on every render\n React.useDebugValue(statePart, p => Object.keys(p));\n const keys = React.useRef(Object.keys(statePart)).current;\n const nextKeys = Object.keys(statePart);\n if (keys.length !== nextKeys.length || keys.some((key, index) => key !== nextKeys[index])) {\n console.error('ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.');\n }\n }\n const dependencies = Object.values(statePart);\n useIsoLayoutEffect(() => {\n store.update(statePart);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [store, ...dependencies]);\n }\n\n /**\n * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`\n * is non-undefined, the store's state at `key` is updated to match `controlled`.\n */\n useControlledProp(key, controlled) {\n React.useDebugValue(key);\n // eslint-disable-next-line consistent-this\n const store = this;\n const isControlled = controlled !== undefined;\n useIsoLayoutEffect(() => {\n if (isControlled && !Object.is(store.state[key], controlled)) {\n // Set the internal state to match the controlled value.\n store.setState({\n ...store.state,\n [key]: controlled\n });\n }\n }, [store, key, controlled, isControlled]);\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line\n const cache = this.controlledValues ??= new Map();\n if (!cache.has(key)) {\n cache.set(key, isControlled);\n }\n const previouslyControlled = cache.get(key);\n if (previouslyControlled !== undefined && previouslyControlled !== isControlled) {\n console.error(`A component is changing the ${previouslyControlled ? '' : 'un'}controlled state of ${key.toString()} to be ${previouslyControlled ? 'un' : ''}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);\n }\n }\n }\n\n /** Gets the current value from the store using a selector with the provided key.\n *\n * @param key Key of the selector to use.\n */\n\n select(key, a1, a2, a3) {\n const selector = this.selectors[key];\n return selector(this.state, a1, a2, a3);\n }\n\n /**\n * Returns a value from the store's state using a selector function.\n * Used to subscribe to specific parts of the state.\n * This methods causes a rerender whenever the selected state changes.\n *\n * @param key Key of the selector to use.\n */\n\n useState(key, a1, a2, a3) {\n React.useDebugValue(key);\n return useStore(this, this.selectors[key], a1, a2, a3);\n }\n\n /**\n * Wraps a function with `useStableCallback` to ensure it has a stable reference\n * and assigns it to the context.\n *\n * @param key Key of the event callback. Must be a function in the context.\n * @param fn Function to assign.\n */\n useContextCallback(key, fn) {\n React.useDebugValue(key);\n const stableFunction = useStableCallback(fn ?? NOOP);\n this.context[key] = stableFunction;\n }\n\n /**\n * Returns a stable setter function for a specific key in the store's state.\n * It's commonly used to pass as a ref callback to React elements.\n *\n * @param key Key of the state to set.\n */\n useStateSetter(key) {\n const ref = React.useRef(undefined);\n if (ref.current === undefined) {\n ref.current = value => {\n this.set(key, value);\n };\n }\n return ref.current;\n }\n\n /**\n * Observes changes derived from the store's selectors and calls the listener when the selected value changes.\n *\n * @param key Key of the selector to observe.\n * @param listener Listener function called when the selector result changes.\n */\n\n observe(selector, listener) {\n let selectFn;\n if (typeof selector === 'function') {\n selectFn = selector;\n } else {\n selectFn = this.selectors[selector];\n }\n let prevValue = selectFn(this.state);\n listener(prevValue, prevValue, this);\n return this.subscribe(nextState => {\n const nextValue = selectFn(nextState);\n if (!Object.is(prevValue, nextValue)) {\n const oldValue = prevValue;\n prevValue = nextValue;\n listener(nextValue, oldValue, this);\n }\n });\n }\n}","/**\n * Combines multiple cleanup functions into a single cleanup function.\n */\nexport function mergeCleanups(...cleanups) {\n return () => {\n for (let i = 0; i < cleanups.length; i += 1) {\n const cleanup = cleanups[i];\n if (cleanup) {\n cleanup();\n }\n }\n };\n}","export { getWindow as ownerWindow } from '@floating-ui/utils/dom';\nexport function ownerDocument(node) {\n return node?.ownerDocument || document;\n}","/**\n * Adds an event listener and returns a cleanup function to remove it.\n */\n\nexport function addEventListener(target, type, listener, options) {\n target.addEventListener(type, listener, options);\n return () => {\n target.removeEventListener(type, listener, options);\n };\n}","/**\n * Reads `navigator.userAgent` / `navigator.platform` (legacy but universally\n * supported) into a normalized shape. In development, prefers the modern\n * `navigator.userAgentData` API on Chromium to avoid DevTools warnings about\n * the deprecated reads; that branch is dead-code-eliminated in production\n * builds to keep the bundle small.\n *\n * Returns empty/zero values when `navigator` is undefined (SSR), so every\n * derived flag safely evaluates to `false`.\n */\nfunction readRawData() {\n if (typeof navigator === 'undefined') {\n return {\n userAgent: '',\n platform: '',\n maxTouchPoints: 0\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n const uaData = navigator.userAgentData;\n if (uaData && Array.isArray(uaData.brands)) {\n return {\n userAgent: uaData.brands.map(({\n brand,\n version\n }) => `${brand}/${version}`).join(' '),\n platform: uaData.platform ?? navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? 0\n };\n }\n }\n return {\n userAgent: navigator.userAgent,\n platform: navigator.platform ?? '',\n maxTouchPoints: navigator.maxTouchPoints ?? 0\n };\n}\nconst {\n userAgent,\n platform,\n maxTouchPoints\n} = readRawData();\nexport const lowerUserAgent = userAgent.toLowerCase();\nexport const lowerPlatform = platform.toLowerCase();\nexport { maxTouchPoints };","import { lowerUserAgent, lowerPlatform, maxTouchPoints } from \"./shared.mjs\";\n\n// iPadOS 13+ reports `MacIntel` for `navigator.platform`; disambiguated via\n// `maxTouchPoints` so iPad is classified as iOS, not macOS.\n// https://github.com/mui/base-ui/issues/1309\n/** iPhone, iPad (including iPadOS 13+ reporting as macOS), iPod. */\nexport const ios = /^i(os$|p)/.test(lowerPlatform) || lowerPlatform === 'macintel' && maxTouchPoints > 1;\n\n/** Android phones, tablets, and embedded Android browsers. */\nconst ANDROID_STRING = 'android';\nexport const android = lowerPlatform === ANDROID_STRING || lowerUserAgent.includes(ANDROID_STRING);\n\n/** macOS desktop. Excludes iPadOS, which reports as `MacIntel`. */\nexport const mac = !ios && lowerPlatform.startsWith('mac');\n\n/** Windows desktop. */\nexport const windows = lowerPlatform.startsWith('win');\n\n/** Linux desktop (including Chrome OS). */\nexport const linux = !android && /^(linux|chrome os)/.test(lowerPlatform);\n\n/** Any Apple OS (`mac || ios`). */\nexport const apple = mac || ios;","import { lowerUserAgent } from \"./shared.mjs\";\n\n// WebKit (Safari, all iOS browsers, GNOME Web). Distinguished from Blink by\n// the legacy `-webkit-backdrop-filter` name — Blink forked from WebKit in 2013\n// and only ships the unprefixed `backdrop-filter`.\n/** WebKit: Safari, all iOS browsers, GNOME Web. Excludes Blink. */\nexport const webkit = typeof CSS !== 'undefined' && !!CSS.supports?.('-webkit-backdrop-filter:none');\n\n// Anchored to `!webkit` so engines are mutually exclusive by construction.\n// Firefox-on-iOS uses WebKit (its UA marker is `FxiOS/`, not `Firefox/`); the\n// `!webkit` prefix also defends against future iOS-browser UA changes that\n// might inject `Firefox` into a WebKit-based UA.\n/** Gecko: Firefox. */\nexport const gecko = !webkit && lowerUserAgent.includes('firefox');\n\n// All Chromium-based browsers ship `Chrome/` or `Chromium/` in their UA — both\n// share the `chrom` prefix, so a single substring check covers Chrome, Edge,\n// Opera, Brave, etc. Chrome-on-iOS uses `CriOS/` and stays WebKit. The positive\n// UA check also makes this SSR-safe — an empty UA matches nothing.\n/** Blink: Chrome, Edge, Opera, Brave, and other Chromium-based browsers. */\nexport const blink = !webkit && lowerUserAgent.includes('chrom');","import { apple } from \"./os.mjs\";\n\n// Whether a screen reader is *actually* running cannot be detected. These flags\n// identify platforms where a specific screen reader could be active. VoiceOver\n// is the system screen reader on Apple platforms and works with every browser\n// there, so the flag is purely an OS check; engine-specific quirks (e.g. the\n// NSAccessibility virtual-cursor focus path) should be gated at the call site.\n/**\n * The user *may* be using VoiceOver — actual activation is not detectable.\n * True on any Apple platform (macOS, iOS, iPadOS).\n */\nexport const voiceOver = apple;","import { lowerUserAgent } from \"./shared.mjs\";\n\n/** Running in jsdom or HappyDOM (used by unit tests). */\nexport const jsdom = /jsdom|happydom/.test(lowerUserAgent);","export const FOCUSABLE_ATTRIBUTE = 'data-base-ui-focusable';\nexport const ACTIVE_KEY = 'active';\nexport const SELECTED_KEY = 'selected';\nexport const TYPEABLE_SELECTOR = \"input:not([type='hidden']):not([disabled]),\" + \"[contenteditable]:not([contenteditable='false']),textarea:not([disabled])\";\nexport const ARROW_LEFT = 'ArrowLeft';\nexport const ARROW_RIGHT = 'ArrowRight';\nexport const ARROW_UP = 'ArrowUp';\nexport const ARROW_DOWN = 'ArrowDown';","/**\n * Present when the popup is open.\n */\nexport const popupOpen = 'data-popup-open';\n\n/**\n * Present when a pressable trigger is pressed.\n */\nexport const pressed = 'data-pressed';","import { CommonTriggerDataAttributes } from \"../../utils/popupStateMapping.mjs\";\n\n/**\n * Present when the corresponding tooltip is open.\n */\nexport const popupOpen = CommonTriggerDataAttributes.popupOpen;\n/**\n * Present when the trigger is disabled, either by the `disabled` prop or by a parent `<Tooltip.Root>` component.\n */\nexport const triggerDisabled = 'data-trigger-disabled';","import { isElement, isHTMLElement } from '@floating-ui/utils/dom';\nimport { platform } from '@base-ui/utils/platform';\nimport { activeElement, closest, contains, getTarget } from '@base-ui/utils/shadowDom';\nimport { FOCUSABLE_ATTRIBUTE, TYPEABLE_SELECTOR } from \"./constants.mjs\";\nimport * as TooltipTriggerDataAttributes from \"../../tooltip/trigger/TooltipTriggerDataAttributes.mjs\";\nexport { activeElement, closest, contains, getTarget };\nexport function isTargetInsideEnabledTrigger(target, triggerElements) {\n if (!isElement(target)) {\n return false;\n }\n const targetElement = target;\n if (triggerElements.hasElement(targetElement)) {\n return !targetElement.hasAttribute(TooltipTriggerDataAttributes.triggerDisabled);\n }\n for (const [, trigger] of triggerElements.entries()) {\n if (contains(trigger, targetElement)) {\n return !trigger.hasAttribute(TooltipTriggerDataAttributes.triggerDisabled);\n }\n }\n return false;\n}\nexport function isEventTargetWithin(event, node) {\n if (node == null) {\n return false;\n }\n if ('composedPath' in event) {\n return event.composedPath().includes(node);\n }\n\n // TS thinks `event` is of type never as it assumes all browsers support composedPath, but browsers without shadow dom don't\n const eventAgain = event;\n return eventAgain.target != null && node.contains(eventAgain.target);\n}\nexport function isRootElement(element) {\n return element.matches('html,body');\n}\nexport function isTypeableElement(element) {\n return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);\n}\nexport function isInteractiveElement(element) {\n return closest(element, `button,a[href],[role=\"button\"],select,[tabindex]:not([tabindex=\"-1\"]),${TYPEABLE_SELECTOR}`) != null;\n}\nexport function isTypeableCombobox(element) {\n if (!element) {\n return false;\n }\n return element.getAttribute('role') === 'combobox' && isTypeableElement(element);\n}\nexport function matchesFocusVisible(element) {\n // We don't want to block focus from working with `visibleOnly`\n // (JSDOM doesn't match `:focus-visible` when the element has `:focus`)\n if (!element || platform.env.jsdom) {\n return true;\n }\n try {\n return element.matches(':focus-visible');\n } catch (_e) {\n return true;\n }\n}\nexport function getFloatingFocusElement(floatingElement) {\n if (!floatingElement) {\n return null;\n }\n // Try to find the element that has `{...getFloatingProps()}` spread on it.\n // This indicates the floating element is acting as a positioning wrapper, and\n // so focus should be managed on the child element with the event handlers and\n // aria props.\n return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[${FOCUSABLE_ATTRIBUTE}]`) || floatingElement;\n}","import { getComputedStyle, getNodeName, isHTMLElement, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nimport { activeElement, contains } from \"./element.mjs\";\nimport { isElementVisible } from \"./composite.mjs\";\nconst CANDIDATE_SELECTOR = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]';\nfunction getParentElement(element) {\n const assignedSlot = element.assignedSlot;\n if (assignedSlot) {\n return assignedSlot;\n }\n if (element.parentElement) {\n return element.parentElement;\n }\n const rootNode = element.getRootNode();\n return isShadowRoot(rootNode) ? rootNode.host : null;\n}\nfunction getDetailsSummary(details) {\n for (const child of Array.from(details.children)) {\n if (getNodeName(child) === 'summary') {\n return child;\n }\n }\n return null;\n}\nfunction isWithinOpenDetailsSummary(element, details) {\n const summary = getDetailsSummary(details);\n return !!summary && (element === summary || contains(summary, element));\n}\nfunction isFocusableCandidate(element) {\n const nodeName = element ? getNodeName(element) : '';\n return element != null && element.matches(CANDIDATE_SELECTOR) && (nodeName !== 'summary' || element.parentElement != null && getNodeName(element.parentElement) === 'details' && getDetailsSummary(element.parentElement) === element) && (nodeName !== 'details' || getDetailsSummary(element) == null) && (nodeName !== 'input' || element.type !== 'hidden');\n}\nfunction isFocusableElement(element) {\n if (!isFocusableCandidate(element) || !element.isConnected || element.matches(':disabled')) {\n return false;\n }\n for (let current = element; current; current = getParentElement(current)) {\n const isAncestor = current !== element;\n const isSlot = getNodeName(current) === 'slot';\n if (current.hasAttribute('inert')) {\n return false;\n }\n if (isAncestor && getNodeName(current) === 'details' && !current.open && !isWithinOpenDetailsSummary(element, current) || current.hasAttribute('hidden') || !isSlot && !isVisibleInTabbableTree(current, isAncestor)) {\n return false;\n }\n }\n return true;\n}\nfunction isVisibleInTabbableTree(element, isAncestor) {\n const styles = getComputedStyle(element);\n if (!isAncestor) {\n return isElementVisible(element, styles);\n }\n return styles.display !== 'none';\n}\nfunction getTabIndex(element) {\n const tabIndex = element.tabIndex;\n if (tabIndex < 0) {\n const nodeName = getNodeName(element);\n if (nodeName === 'details' || nodeName === 'audio' || nodeName === 'video' || isHTMLElement(element) && element.isContentEditable) {\n return 0;\n }\n }\n return tabIndex;\n}\nfunction getNamedRadioInput(element) {\n if (getNodeName(element) !== 'input') {\n return null;\n }\n const input = element;\n return input.type === 'radio' && input.name !== '' ? input : null;\n}\nfunction isTabbableRadio(element, candidates) {\n const input = getNamedRadioInput(element);\n if (!input) {\n return true;\n }\n const checkedRadio = candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form && radio.checked;\n });\n if (checkedRadio) {\n return checkedRadio === input;\n }\n return candidates.find(candidate => {\n const radio = getNamedRadioInput(candidate);\n return radio?.name === input.name && radio.form === input.form;\n }) === input;\n}\nfunction getComposedChildren(container) {\n if (isHTMLElement(container) && getNodeName(container) === 'slot') {\n const assignedElements = container.assignedElements({\n flatten: true\n });\n if (assignedElements.length > 0) {\n return assignedElements;\n }\n }\n if (isHTMLElement(container) && container.shadowRoot) {\n return Array.from(container.shadowRoot.children);\n }\n return Array.from(container.children);\n}\nfunction appendCandidates(container, list) {\n getComposedChildren(container).forEach(child => {\n if (isFocusableCandidate(child)) {\n list.push(child);\n }\n appendCandidates(child, list);\n });\n}\nfunction appendMatchingElements(container, selector, list) {\n getComposedChildren(container).forEach(child => {\n if (isHTMLElement(child) && child.matches(selector)) {\n list.push(child);\n }\n appendMatchingElements(child, selector, list);\n });\n}\nexport function isTabbable(element) {\n return isFocusableElement(element) && getTabIndex(element) >= 0;\n}\nexport function focusable(container) {\n const candidates = [];\n appendCandidates(container, candidates);\n return candidates.filter(isFocusableElement);\n}\nexport function tabbable(container) {\n const candidates = focusable(container);\n return candidates.filter(element => getTabIndex(element) >= 0 && isTabbableRadio(element, candidates));\n}\nfunction getTabbableIn(container, dir) {\n const list = tabbable(container);\n const len = list.length;\n if (len === 0) {\n return undefined;\n }\n const active = activeElement(ownerDocument(container));\n const index = list.indexOf(active);\n // eslint-disable-next-line no-nested-ternary\n const nextIndex = index === -1 ? dir === 1 ? 0 : len - 1 : index + dir;\n return list[nextIndex];\n}\nexport function getNextTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, 1) || referenceElement;\n}\nexport function getPreviousTabbable(referenceElement) {\n return getTabbableIn(ownerDocument(referenceElement).body, -1) || referenceElement;\n}\nexport function getTabbableNearElement(referenceElement, direction, exclude) {\n if (!referenceElement) {\n return null;\n }\n\n // Keep the anchor's composed-tree position separate from the focusable radio candidates.\n const list = [];\n appendCandidates(ownerDocument(referenceElement).body, list);\n const index = list.indexOf(referenceElement);\n if (index === -1) {\n return null;\n }\n const candidates = list.filter(isFocusableElement);\n for (let offset = 1; offset < list.length; offset += 1) {\n const element = list[(index + direction * offset + list.length) % list.length];\n if (!contains(exclude, element) && isTabbable(element) && isTabbableRadio(element, candidates)) {\n return element;\n }\n }\n return list[index];\n}\nexport function isOutsideEvent(event, container) {\n const containerElement = container || event.currentTarget;\n const relatedTarget = event.relatedTarget;\n return !relatedTarget || !contains(containerElement, relatedTarget);\n}\nexport function disableFocusInside(container) {\n const tabbableElements = tabbable(container);\n tabbableElements.forEach(element => {\n element.dataset.tabindex = element.getAttribute('tabindex') || '';\n element.setAttribute('tabindex', '-1');\n });\n}\nexport function enableFocusInside(container) {\n const elements = [];\n appendMatchingElements(container, '[data-tabindex]', elements);\n elements.forEach(element => {\n const tabindex = element.dataset.tabindex;\n delete element.dataset.tabindex;\n if (tabindex) {\n element.setAttribute('tabindex', tabindex);\n } else {\n element.removeAttribute('tabindex');\n }\n });\n}","'use client';\n\nimport * as React from 'react';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { platform } from '@base-ui/utils/platform';\nimport { visuallyHidden } from '@base-ui/utils/visuallyHidden';\n\n/**\n * @internal\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const FocusGuard = /*#__PURE__*/React.forwardRef(function FocusGuard(props, ref) {\n const [role, setRole] = React.useState();\n useIsoLayoutEffect(() => {\n // Unlike NVDA and JAWS, VoiceOver's virtual cursor triggers `onFocus` as\n // it moves — but only on focusable/role-button elements through WebKit's\n // NSAccessibility path. Setting `role=\"button\"` lets the focus trap catch\n // the cursor.\n if (platform.screenReader.voiceOver && platform.engine.webkit) {\n setRole('button');\n }\n }, []);\n const restProps = {\n tabIndex: 0,\n // Role is only for VoiceOver\n role\n };\n return /*#__PURE__*/_jsx(\"span\", {\n ...props,\n ref: ref,\n style: visuallyHidden,\n \"aria-hidden\": role ? undefined : true,\n ...restProps,\n \"data-base-ui-focus-guard\": \"\"\n });\n});\nif (process.env.NODE_ENV !== \"production\") FocusGuard.displayName = \"FocusGuard\";","export const TYPEAHEAD_RESET_MS = 500;\nexport const PATIENT_CLICK_THRESHOLD = 500;\nexport const DISABLED_TRANSITIONS_STYLE = {\n style: {\n transition: 'none'\n }\n};\nexport const CLICK_TRIGGER_IDENTIFIER = 'data-base-ui-click-trigger';\nexport const BASE_UI_SWIPE_IGNORE_ATTRIBUTE = 'data-base-ui-swipe-ignore';\nexport const LEGACY_SWIPE_IGNORE_ATTRIBUTE = 'data-swipe-ignore';\nexport const BASE_UI_SWIPE_IGNORE_SELECTOR = `[${BASE_UI_SWIPE_IGNORE_ATTRIBUTE}]`;\nexport const LEGACY_SWIPE_IGNORE_SELECTOR = `[${LEGACY_SWIPE_IGNORE_ATTRIBUTE}]`;\n\n/**\n * Used for dropdowns that usually strictly prefer top/bottom placements and\n * use `var(--available-height)` to limit their height.\n */\nexport const DROPDOWN_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'none'\n};\n\n/**\n * Used by regular popups that usually aren't scrollable and are allowed to\n * freely flip to any axis of placement.\n */\nexport const POPUP_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'end'\n};\n\n/**\n * Special visually hidden styles for the aria-owns owner element to ensure owned element\n * accessibility in iOS/Safari/VoiceControl.\n * The owner element is an empty span, so most of the common visually hidden styles are not needed.\n * @see https://github.com/floating-ui/floating-ui/issues/3403\n */\nexport const ownerVisuallyHidden = {\n clipPath: 'inset(50%)',\n position: 'fixed',\n top: 0,\n left: 0\n};","export function createAttribute(name) {\n return `data-base-ui-${name}`;\n}","'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { isNode } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { enableFocusInside, disableFocusInside, getPreviousTabbable, getNextTabbable, isOutsideEvent } from \"../utils/tabbable.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { ownerVisuallyHidden } from \"../../internals/constants.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PortalContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") PortalContext.displayName = \"PortalContext\";\nexport const usePortalContext = () => React.useContext(PortalContext);\nconst attr = createAttribute('portal');\nexport function useFloatingPortalNode(props = {}) {\n const {\n ref,\n container: containerProp,\n componentProps = EMPTY_OBJECT,\n elementProps\n } = props;\n const uniqueId = useId();\n const portalContext = usePortalContext();\n const parentPortalNode = portalContext?.portalNode;\n const [containerElement, setContainerElement] = React.useState(null);\n const [portalNode, setPortalNode] = React.useState(null);\n const setPortalNodeRef = useStableCallback(node => {\n if (node !== null) {\n // the useIsoLayoutEffect below watching containerProp / parentPortalNode\n // sets setPortalNode(null) when the container becomes null or changes.\n // So even though the ref callback now ignores null, the portal node still gets cleared.\n setPortalNode(node);\n }\n });\n const containerRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n // Wait for the container to be resolved if explicitly `null`.\n if (containerProp === null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n const resolvedContainer = (containerProp && (isNode(containerProp) ? containerProp : containerProp.current)) ?? parentPortalNode ?? document.body;\n if (resolvedContainer == null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n if (containerRef.current !== resolvedContainer) {\n containerRef.current = resolvedContainer;\n setPortalNode(null);\n setContainerElement(resolvedContainer);\n }\n }, [containerProp, parentPortalNode]);\n const portalElement = useRenderElement('div', componentProps, {\n ref: [ref, setPortalNodeRef],\n props: [{\n id: uniqueId,\n [attr]: ''\n }, elementProps]\n });\n\n // This `createPortal` call injects `portalElement` into the `container`.\n // Another call inside `FloatingPortal`/`FloatingPortalLite` then injects the children into `portalElement`.\n const portalSubtree = containerElement && portalElement ? /*#__PURE__*/ReactDOM.createPortal(portalElement, containerElement) : null;\n return {\n node: portalNode,\n // `id` and `render` props can override or remove the generated ID. Use the exact\n // rendered value so `aria-owns` never points at an ID absent from the DOM.\n nodeId: /*#__PURE__*/React.isValidElement(portalElement) ? portalElement.props.id : undefined,\n subtree: portalSubtree\n };\n}\n\n/**\n * Portals the floating element into a given container element — by default,\n * outside of the app root and into the body.\n * This is necessary to ensure the floating element can appear outside any\n * potential parent containers that cause clipping (such as `overflow: hidden`),\n * while retaining its location in the React tree.\n * @see https://floating-ui.com/docs/FloatingPortal\n * @internal\n */\nexport const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPortal(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n children,\n container,\n portalOwnerRole,\n ...elementProps\n } = componentProps;\n const {\n node: portalNode,\n nodeId: portalNodeId,\n subtree: portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n const beforeOutsideRef = React.useRef(null);\n const afterOutsideRef = React.useRef(null);\n const beforeInsideRef = React.useRef(null);\n const afterInsideRef = React.useRef(null);\n const [focusManagerState, setFocusManagerState] = React.useState(null);\n const focusInsideDisabledRef = React.useRef(false);\n const modal = focusManagerState?.modal;\n const open = focusManagerState?.open;\n const shouldRenderGuards = !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;\n\n // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx\n React.useEffect(() => {\n if (!portalNode || modal) {\n return undefined;\n }\n\n // Make sure elements inside the portal element are tabbable only when the\n // portal has already been focused, either by tabbing into a focus trap\n // element outside or using the mouse.\n function onFocus(event) {\n if (portalNode && event.relatedTarget && isOutsideEvent(event)) {\n if (event.type === 'focusin') {\n if (focusInsideDisabledRef.current) {\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }\n } else {\n disableFocusInside(portalNode);\n focusInsideDisabledRef.current = true;\n }\n }\n }\n\n // Listen to the event on the capture phase so they run before the focus\n // trap elements onFocus prop is called.\n return mergeCleanups(addEventListener(portalNode, 'focusin', onFocus, true), addEventListener(portalNode, 'focusout', onFocus, true));\n }, [portalNode, modal]);\n useIsoLayoutEffect(() => {\n if (!portalNode || open !== true || !focusInsideDisabledRef.current) {\n return;\n }\n\n // Restore tabbability before the focus manager's queued focus-on-open step runs.\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }, [open, portalNode]);\n const portalContextValue = React.useMemo(() => ({\n beforeOutsideRef,\n afterOutsideRef,\n beforeInsideRef,\n afterInsideRef,\n portalNode,\n setFocusManagerState\n }), [portalNode]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, /*#__PURE__*/_jsxs(PortalContext.Provider, {\n value: portalContextValue,\n children: [shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: beforeOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n beforeInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n }\n }\n }), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(\"span\", {\n role: portalOwnerRole,\n \"aria-owns\": portalNodeId,\n style: ownerVisuallyHidden\n }), portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: afterOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n afterInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n if (focusManagerState?.closeOnFocusOut) {\n focusManagerState?.onOpenChange(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent));\n }\n }\n }\n })]\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortal.displayName = \"FloatingPortal\";"],"ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"mappings":"A,ycAEMqC,EAAQ,CAAC,EACXC,EAAkB,IAAA,GACtB,SAAgBC,IAAc,CAC5B,OAAOD,CACT,CAIA,SAAgBE,GAAS,EAAM,CAC7BH,EAAM,KAAKI,CAAI,CACjB,CAoCA,SAAgBC,GAAc,EAAI,CAChC,IAAMC,GAAiB,EAAO,IAAiB,CAC7C,IAAMC,EAAWrB,EAAesB,EAAc,CAAC,CAAC,QAC5CC,EACJ,GAAI,CACF,EAAkBF,EAClB,IAAK,IAAMH,KAAQJ,EACjBI,EAAK,OAAOG,CAAQ,EAEtB,EAASG,EAAGC,EAAOC,CAAY,EAC/B,IAAK,IAAMR,KAAQJ,EACjBI,EAAK,MAAMG,CAA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import{i as t,r as n}from"./utils-BFSetRo1.js";import{S as r}from"./useOpenChangeComplete-DUM-_E2z.js";import{n as i}from"./FloatingPortal-D_eDEbvZ.js";var a=e(t(),1),o=e(r(),1),s=n(),c=a.forwardRef(function(e,t){let{children:n,container:r,className:c,render:l,style:u,...d}=e,{node:f,subtree:p}=i({container:r,ref:t,componentProps:e,elementProps:d});return!p&&!f?null:(0,s.jsxs)(a.Fragment,{children:[p,f&&o.createPortal(n,f)]})});export{c as t};
2
+ //# sourceMappingURL=FloatingPortalLite-DWlDzoqv.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FloatingPortalLite-DWlDzoqv.js","names":["__toESM","require_react","require_jsx_runtime","require_react_dom","useFloatingPortalNode","import_react","import_react_dom","import_jsx_runtime","FloatingPortalLite","elementProps","componentProps","portalNode","portalSubtree","forwardedRef","children"],"sources":["../../../../node_modules/@base-ui/react/utils/FloatingPortalLite.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { useFloatingPortalNode } from \"../floating-ui-react/components/FloatingPortal.mjs\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * `FloatingPortal` includes tabbable logic handling for focus management.\n * For components that don't need tabbable logic, use `FloatingPortalLite`.\n * @internal\n */\nexport const FloatingPortalLite = /*#__PURE__*/React.forwardRef(function FloatingPortalLite(componentProps, forwardedRef) {\n const {\n children,\n container,\n className,\n render,\n style,\n ...elementProps\n } = componentProps;\n const {\n node: portalNode,\n subtree: portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n if (!portalSubtree && !portalNode) {\n return null;\n }\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode)]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortalLite.displayName = \"FloatingPortalLite\";"],"ignoreList":[0],"mappings":"A,2OAWaQ,EAAkCH,EAAM,WAAW,SAA4B,EAAgB,EAAc,CACxH,GAAM,CACJ,WACA,YACA,YACA,SACA,QACA,GAAGI,GACDC,EACE,CACJ,KAAMC,EACN,QAASC,GACPR,EAAsB,CACxB,YACA,IAAKS,EACL,iBACA,cACF,CAAC,EAID,MAHI,CAACD,GAAiB,CAACD,EACd,MAEW,EAAAJ,EAAA,KAAA,CAAAF,EAAY,SAAU,CACxC,SAAU,CAACO,EAAeD,GAA2BL,EAAS,aAAaQ,EAAUH,CAAU,CAAC,CAClG,CAAC,CACH,CAAC,E"}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t}from"./utils-BFSetRo1.js";import{o as n}from"./useButton-DQ6Sgg7h.js";var r=e(t(),1).forwardRef(function(e,t){let{className:r,render:i,orientation:a=`horizontal`,style:o,...s}=e;return n(`div`,e,{state:{orientation:a},ref:t,props:[{role:`separator`,"aria-orientation":a},s]})});export{r as t};
2
+ //# sourceMappingURL=Separator-DDDyVkeP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator-DDDyVkeP.js","names":["__toESM","require_react","useRenderElement","Separator","elementProps","componentProps","forwardedRef","orientation"],"sources":["../../../../node_modules/@base-ui/react/separator/Separator.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useRenderElement } from \"../internals/useRenderElement.mjs\";\n\n/**\n * A separator element accessible to screen readers.\n * Renders a `<div>` element.\n *\n * Documentation: [Base UI Separator](https://base-ui.com/react/components/separator)\n */\nexport const Separator = /*#__PURE__*/React.forwardRef(function SeparatorComponent(componentProps, forwardedRef) {\n const {\n className,\n render,\n orientation = 'horizontal',\n style,\n ...elementProps\n } = componentProps;\n const state = {\n orientation\n };\n const element = useRenderElement('div', componentProps, {\n state,\n ref: forwardedRef,\n props: [{\n role: 'separator',\n 'aria-orientation': orientation\n }, elementProps]\n });\n return element;\n});\nif (process.env.NODE_ENV !== \"production\") Separator.displayName = \"Separator\";"],"ignoreList":[0],"mappings":"A,uIAWA,IAAaG,E,OAAyB,CAAA,CAAM,WAAW,SAA4B,EAAgB,EAAc,CAC/G,GAAM,CACJ,YACA,SACA,cAAc,aACd,QACA,GAAGC,GACDC,EAYJ,OARgBH,EAAiB,MAAOG,EAAgB,CACtD,MAAA,CAHA,aAGI,EACJ,IAAKC,EACL,MAAO,CAAC,CACN,KAAM,YACN,mBAAoBC,CACtB,EAAGH,CAAY,CACjB,CACa,CACf,CAAC,E"}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{i as t,r as n,t as r}from"./utils-BFSetRo1.js";import{t as i}from"./link-CByMaQfX.js";import{t as a}from"./useQuery-BkgWvtTa.js";import{t as o}from"./createLucideIcon-4wkYGrAu.js";import{t as s}from"./file-up-DhxoycHf.js";import{t as c}from"./sparkles-DMF5S9tx.js";import{B as l,M as u,N as d,P as f,S as p,U as m,b as h,g,m as _}from"./index-EqRZkjd6.js";import{i as v}from"./labels-B8sf8Hg_.js";import{n as y,t as b}from"./arrow-up-Dop2Zfy9.js";import{t as x}from"./skeleton-CuU6NqIG.js";import{i as S,n as C}from"./states-Z2xH3pUB.js";import{t as w}from"./page-header-CHk7bso7.js";import{r as T}from"./queries-yxFwGLDb.js";import{c as E,i as D,o as O}from"./queries-iauKjcDt.js";import{n as k}from"./queries-CJD0QpGi.js";import{t as A}from"./score-ring-D3Ff8hXt.js";import{s as j}from"./queries-CaU3gifI.js";import{t as M}from"./permissions-Bf3wb1Jv.js";var N={name:`clipboard-paste`,size:24,node:[[`path`,{d:`M11 14h10`,key:`1w8e9d`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v1.344`,key:`1e62lh`}],[`path`,{d:`m17 18 4-4-4-4`,key:`z2g111`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113`,key:`bjbb7m`}],[`rect`,{x:`8`,y:`2`,width:`8`,height:`4`,rx:`1`,key:`ublpy`}]]};N.node;var P=o(N),F={name:`link`,size:24,node:[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]};F.node;var I=o(F),L=e(t()),R=n();function z(e,t,n,r=`count`){if(e===null||t===null)return null;let i,a;if(r===`rate`)i=(e-t)*100,a=`${Math.abs(i).toFixed(1)} pt`;else{if(t===0)return e===0?{text:`0%`,direction:`flat`,tone:`neutral`}:null;i=(e-t)/t*100,a=`${Math.abs(i).toFixed(1)}%`}let o=Math.abs(i)<.05?`flat`:i>0?`up`:`down`,s=`neutral`;return o!==`flat`&&n!==`neutral`&&(s=(n===`higher-is-better`?o===`up`:o===`down`)?`good`:`bad`),{text:a,direction:o,tone:s}}var B={good:`text-success`,bad:`text-destructive`,neutral:`text-muted-foreground`};function V({delta:e,vs:t}){if(!e)return(0,R.jsx)(`span`,{className:`text-[12.5px] text-muted-foreground`,children:`No previous data`});let n=e.direction===`up`?b:e.direction===`down`?y:null,i=e.tone===`good`?`better`:e.tone===`bad`?`worse`:null;return(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[12.5px] tabular-nums`,children:[(0,R.jsxs)(`span`,{className:r(`inline-flex items-center gap-0.5 font-medium`,B[e.tone]),children:[n?(0,R.jsx)(n,{"aria-hidden":`true`,className:`size-3`}):null,e.direction===`down`?`−`:e.direction===`up`?`+`:``,e.text,i?(0,R.jsxs)(`span`,{className:`sr-only`,children:[` (`,i,`)`]}):null]}),t?(0,R.jsx)(`span`,{className:`text-muted-foreground`,children:t}):null]})}function H({label:e,value:t,delta:n,vs:i,loading:a,children:o,className:s}){return(0,R.jsxs)(`section`,{"aria-label":e,className:r(`flex min-w-0 flex-col gap-1.5 rounded-xl border bg-card p-4`,s),children:[(0,R.jsx)(`span`,{className:`text-[13px] text-muted-foreground`,children:e}),a?(0,R.jsx)(x,{className:`h-8 w-24`}):o||(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(`span`,{className:`text-2xl font-semibold tracking-tight tabular-nums`,children:t}),n===void 0?null:(0,R.jsx)(V,{delta:n,...i?{vs:i}:{}})]})]})}var U=6048e5;function W(){let e=a(j());return e.isPending?(0,R.jsx)(S,{}):e.isError?(0,R.jsx)(C,{error:e.error,onRetry:()=>void e.refetch()}):e.data.items.length?(0,R.jsx)(K,{}):(0,R.jsx)(G,{})}function G(){let e=m(),t=M(e,`servers:write`);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(w,{title:`Overview`}),(0,R.jsxs)(`section`,{"aria-labelledby":`hero-title`,className:`flex flex-col gap-5 rounded-xl border bg-brand-muted p-6 md:p-8`,children:[(0,R.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,R.jsx)(`h2`,{id:`hero-title`,className:`text-xl font-semibold`,children:`Import your first API`}),(0,R.jsx)(`p`,{className:`max-w-2xl text-muted-foreground`,children:`Point Neurouter at an OpenAPI 3.x or GraphQL spec. You get a governed MCP server and a readiness score in a few minutes.`})]}),t?(0,R.jsx)(`div`,{className:`grid gap-3 md:grid-cols-3`,children:[{icon:I,title:`Paste a URL`,text:`Fetch an openapi.yaml or a GraphQL endpoint.`,search:{tab:`url`}},{icon:s,title:`Upload a file`,text:`.yaml, .json, .graphql up to 10 MB.`,search:{tab:`upload`}},{icon:c,title:`Try the sample`,text:`Acme Orders API (fictional), 46 operations.`,search:{tab:`url`,sample:`1`}}].map(e=>(0,R.jsxs)(i,{to:`/servers/new`,search:e.search,className:`flex flex-col gap-1 rounded-xl border bg-card p-4 outline-none hover:border-primary focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,R.jsx)(e.icon,{"aria-hidden":`true`,className:`size-5 text-primary`}),(0,R.jsx)(`span`,{className:`font-semibold`,children:e.title}),(0,R.jsx)(`span`,{className:`text-[13px] text-muted-foreground`,children:e.text})]},e.title))}):(0,R.jsx)(`p`,{className:`text-[13.5px]`,children:`Ask an admin to import a spec.`})]}),(0,R.jsx)(`ol`,{className:`grid gap-3 md:grid-cols-3`,"aria-label":`How it works`,children:[[`1`,`Import`,`The spec becomes a curated set of MCP tools. Writes stay off until you enable them.`],[`2`,`Connect`,`Create a key for one environment and add the server to Claude Code, Cursor or VS Code.`],[`3`,`Measure`,`Run an eval: generated tasks × models × tool and code mode give a 0–100 score.`]].map(([e,t,n])=>(0,R.jsxs)(`li`,{className:`flex gap-3 rounded-xl border bg-card p-4`,children:[(0,R.jsx)(`span`,{"aria-hidden":`true`,className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-primary text-xs font-bold text-primary-foreground`,children:e}),(0,R.jsxs)(`span`,{className:`flex flex-col gap-0.5`,children:[(0,R.jsx)(`span`,{className:`font-semibold`,children:t}),(0,R.jsx)(`span`,{className:`text-[13px] text-muted-foreground`,children:n})]})]},e))})]})}function K(){let e=m(),[t]=(0,L.useState)(()=>Date.now()),n={from:new Date(t-U).toISOString(),to:new Date(t).toISOString()},r=a(k(n)),o=a(j()),c=a(E({status:void 0})),y=a(O({status:`open`})),b=a(D()),S=a(T()),M=r.data?.kpis,N=r.data?.previous;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(w,{title:`Overview`,description:`${e.instance.name} · last 7 days`,actions:(0,R.jsxs)(l,{cap:`servers:write`,demoOp:`specs.preview`,render:(0,R.jsx)(i,{to:`/servers/new`}),nativeButton:!1,children:[(0,R.jsx)(s,{}),` Import a spec`]})}),r.isError?(0,R.jsx)(C,{error:r.error,onRetry:()=>void r.refetch()}):(0,R.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 md:grid-cols-3 xl:grid-cols-5`,children:[(0,R.jsx)(H,{label:`Tasks`,loading:!M,value:u(M?.tasks),delta:M&&N?z(M.tasks,N.tasks,`neutral`):null,vs:`previous 7 days`}),(0,R.jsx)(H,{label:`Task success`,loading:!M,value:d(M?.taskSuccessRate,0),delta:M&&N?z(M.taskSuccessRate,N.taskSuccessRate,`higher-is-better`,`rate`):null,vs:`previous 7 days`}),(0,R.jsx)(H,{label:`Tool calls`,loading:!M,value:u(M?.calls),delta:M&&N?z(M.calls,N.calls,`neutral`):null,vs:`previous 7 days`}),(0,R.jsx)(H,{label:`Error rate`,loading:!M,value:d(M?.errorRate,1),delta:M&&N?z(M.errorRate,N.errorRate,`lower-is-better`,`rate`):null,vs:`previous 7 days`}),(0,R.jsx)(H,{label:`Open inbox items`,loading:!b.data,value:u(b.data?b.data.needs.open+b.data.issues.open:void 0),className:`col-span-2 md:col-span-1`})]}),(0,R.jsxs)(`section`,{"aria-labelledby":`servers-title`,className:`flex flex-col gap-3`,children:[(0,R.jsxs)(`div`,{className:`flex items-center`,children:[(0,R.jsx)(`h2`,{id:`servers-title`,className:`flex-1 text-base font-semibold`,children:`Servers`}),(0,R.jsx)(i,{to:`/servers`,className:`text-[13px] text-primary hover:underline`,children:`All servers`})]}),(0,R.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2 xl:grid-cols-3`,children:o.data?.items.map(e=>(0,R.jsxs)(i,{to:`/servers/$serverId`,params:{serverId:e.id},className:`flex flex-col gap-2.5 rounded-xl border bg-card p-4 outline-none hover:border-primary/60 focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,R.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,R.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,R.jsx)(`span`,{className:`truncate font-semibold`,children:e.name}),e.specFormat?(0,R.jsx)(p,{format:e.specFormat}):null]}),(0,R.jsx)(A,{score:e.readiness?.score,preliminary:e.readiness?.confidence===`preliminary`})]}),(0,R.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:e.environments.map(e=>(0,R.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,R.jsx)(g,{status:e.health}),(0,R.jsx)(_,{slug:e.slug,kind:e.isMock?`mock`:e.kind})]},e.id))}),(0,R.jsxs)(`span`,{className:`text-[12.5px] text-muted-foreground`,children:[e.visibleToolCount,` of `,e.toolCount,` tools exposed · `,e.writeToolCount,` write`]})]},e.id))})]}),(0,R.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-2 [&>*]:min-w-0`,children:[(0,R.jsxs)(`section`,{"aria-labelledby":`attention-title`,className:`flex flex-col gap-2.5 rounded-xl border bg-card p-4 md:p-5`,children:[(0,R.jsxs)(`div`,{className:`flex items-center`,children:[(0,R.jsx)(`h2`,{id:`attention-title`,className:`flex-1 text-base font-semibold`,children:`Needs attention`}),(0,R.jsx)(i,{to:`/inbox`,className:`text-[13px] text-primary hover:underline`,children:`Inbox`})]}),c.data?(0,R.jsxs)(`ul`,{className:`flex flex-col divide-y`,children:[c.data.items.filter(e=>e.status===`open`||e.status===`planned`).slice(0,3).map(e=>(0,R.jsxs)(`li`,{className:`flex items-center gap-2.5 py-2 text-[13.5px]`,children:[(0,R.jsx)(i,{to:`/inbox/needs/$groupId`,params:{groupId:e.id},className:`min-w-0 flex-1 truncate hover:underline`,children:e.label}),(0,R.jsx)(`span`,{className:`rounded-full bg-muted px-2 py-px font-semibold tabular-nums`,"aria-label":`${e.count} reports`,children:e.count})]},e.id)),y.data?.items.slice(0,2).map(e=>(0,R.jsxs)(`li`,{className:`flex items-center gap-2.5 py-2 text-[13.5px]`,children:[(0,R.jsx)(`span`,{className:`rounded-full bg-warning-muted px-2 py-px text-xs font-medium text-warning`,children:`Issue`}),(0,R.jsx)(i,{to:`/inbox/issues/$issueId`,params:{issueId:e.id},className:`min-w-0 flex-1 truncate hover:underline`,children:e.problem})]},e.id))]}):(0,R.jsx)(x,{className:`h-24`})]}),(0,R.jsxs)(`section`,{"aria-labelledby":`recent-title`,className:`flex flex-col gap-2.5 rounded-xl border bg-card p-4 md:p-5`,children:[(0,R.jsxs)(`div`,{className:`flex items-center`,children:[(0,R.jsx)(`h2`,{id:`recent-title`,className:`flex-1 text-base font-semibold`,children:`Recent tasks`}),(0,R.jsx)(i,{to:`/tasks`,className:`text-[13px] text-primary hover:underline`,children:`All tasks`})]}),r.data?(0,R.jsx)(`ul`,{className:`flex flex-col divide-y`,children:r.data.recentTasks.map(e=>(0,R.jsxs)(`li`,{className:`flex items-center gap-2.5 py-2 text-[13.5px]`,children:[(0,R.jsx)(i,{to:`/tasks/$taskId`,params:{taskId:e.id},className:`min-w-0 flex-1 truncate hover:underline ${e.goal?``:`text-muted-foreground italic`}`,children:e.goal??e.inferredLabel?.goal??`Inferred task`}),(0,R.jsx)(h,{outcome:e.outcome,status:e.status,framing:e.framing}),(0,R.jsx)(`span`,{className:`hidden text-xs text-muted-foreground sm:inline`,children:f(e.startedAt)})]},e.id))}):(0,R.jsx)(x,{className:`h-24`})]})]}),(0,R.jsxs)(`section`,{"aria-labelledby":`runs-title`,className:`flex flex-col gap-2.5 rounded-xl border bg-card p-4 md:p-5`,children:[(0,R.jsxs)(`div`,{className:`flex items-center`,children:[(0,R.jsx)(`h2`,{id:`runs-title`,className:`flex-1 text-base font-semibold`,children:`Latest eval runs`}),(0,R.jsx)(i,{to:`/evals`,className:`text-[13px] text-primary hover:underline`,children:`All runs`})]}),(0,R.jsx)(`ul`,{className:`flex flex-col divide-y`,children:S.data?.items.slice(0,3).map(e=>(0,R.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2.5 py-2 text-[13.5px]`,children:[(0,R.jsxs)(i,{to:`/evals/runs/$runId`,params:{runId:e.id},className:`font-medium hover:underline`,children:[`Run `,v(e)]}),(0,R.jsx)(`span`,{className:`text-muted-foreground`,children:e.server.name}),(0,R.jsx)(`span`,{className:`flex-1`}),e.status===`running`?(0,R.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`running `,Math.round(e.progress.done/Math.max(1,e.progress.total)*100),`%`]}):(0,R.jsx)(A,{score:e.headline}),(0,R.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:f(e.endedAt??e.createdAt)})]},e.id))})]}),(0,R.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[(0,R.jsx)(P,{"aria-hidden":`true`,className:`mr-1 inline size-3`}),`Counts cover the local retention window (30 days).`]})]})}export{W as component};
2
+ //# sourceMappingURL=_app-BY6-IpyI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_app-BY6-IpyI.js","names":["__iconData","ArrowUpIcon","ArrowDownIcon","_Fragment","useState","useQuery","FileUpIcon","LinkIcon","SparklesIcon","runLabel","computeDelta","runsQuery","inboxSummaryQuery","issuesQuery","needGroupsQuery","overviewQuery","serversQuery","useMe","formatNumber","formatPercent","formatRelative","can","WEEK","OverviewPage","servers","isPending","isError","error","refetch","data","items","length","EmptyOverview","me","admin","icon","title","text","search","tab","sample","map","t","n","Dashboard","now","Date","range","from","toISOString","to","overview","needs","status","undefined","issues","inbox","runs","k","kpis","prev","previous","instance","name","tasks","taskSuccessRate","calls","errorRate","open","s","id","serverId","specFormat","readiness","score","confidence","environments","e","health","slug","isMock","kind","visibleToolCount","toolCount","writeToolCount","filter","g","slice","groupId","label","count","i","issueId","problem","recentTasks","taskId","goal","inferredLabel","outcome","framing","startedAt","r","runId","server","Math","round","progress","done","max","total","headline","endedAt","createdAt","_Fragment","FileUpIcon","Link","ClipboardPasteIcon","__toESM","require_react","require_jsx_runtime","cn","Link$1","useQuery","createLucideIcon","FileUp","Sparkles","GatedButton","formatNumber","formatPercent","formatRelative","SpecKindBadge","useMe","OutcomeBadge","EnvBadge","runLabel","ArrowDown","ArrowUp","Skeleton","PageSkeleton","ErrorState","PageHeader","runsQuery","needGroupsQuery","inboxSummaryQuery","issuesQuery","overviewQuery","ScoreBadge","serversQuery","can","__iconData$1","ClipboardPaste","__iconData","Link","import_react","import_jsx_runtime","computeDelta","current","previous","value","text","kind","direction","tone","semantics","TONE","DeltaText","delta","Icon","words","vs","KpiCard","label","className","loading","children","WEEK","OverviewPage","servers","Dashboard","EmptyOverview","me","admin","t","n","title","now","range","overview","needs","issues","inbox","runs","k","prev","s","HealthDot","g","i","r"],"sources":["../../../../node_modules/lucide-react/dist/esm/icons/clipboard-paste.mjs","../../../../node_modules/lucide-react/dist/esm/icons/link.mjs","../../src/components/charts/kpi-card.tsx","../../src/routes/_app/index.tsx?tsr-split=component"],"sourcesContent":["/**\n * @license lucide-react v1.78.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"clipboard-paste\",\n size: 24,\n node: [\n [\"path\", { d: \"M11 14h10\", key: \"1w8e9d\" }],\n [\"path\", { d: \"M16 4h2a2 2 0 0 1 2 2v1.344\", key: \"1e62lh\" }],\n [\"path\", { d: \"m17 18 4-4-4-4\", key: \"z2g111\" }],\n [\n \"path\",\n { d: \"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 1.793-1.113\", key: \"bjbb7m\" }\n ],\n [\"rect\", { x: \"8\", y: \"2\", width: \"8\", height: \"4\", rx: \"1\", key: \"ublpy\" }]\n ]\n};\n__iconData.node;\nconst ClipboardPaste = createLucideIcon(__iconData);\n\nexport { __iconData, ClipboardPaste as default };\n//# sourceMappingURL=clipboard-paste.mjs.map\n","/**\n * @license lucide-react v1.78.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.mjs';\n\nconst __iconData = {\n name: \"link\",\n size: 24,\n node: [\n [\"path\", { d: \"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71\", key: \"1cjeqo\" }],\n [\"path\", { d: \"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71\", key: \"19qd67\" }]\n ]\n};\n__iconData.node;\nconst Link = createLucideIcon(__iconData);\n\nexport { __iconData, Link as default };\n//# sourceMappingURL=link.mjs.map\n","import type { ReactNode } from 'react';\nimport { ArrowDownIcon, ArrowUpIcon } from 'lucide-react';\nimport { Skeleton } from '@/components/ui/skeleton';\nimport { cn } from '@/lib/utils';\n\n/**\n * Whether a change is good or bad depends on the metric, not its direction (§5.4): more calls is\n * neutral, higher success is good, higher error rate / blocked / latency is bad.\n */\nexport type DeltaSemantics = 'neutral' | 'higher-is-better' | 'lower-is-better';\n\nexport interface KpiDelta {\n /** \"12.4%\" or \"0.3 pt\" */\n text: string;\n direction: 'up' | 'down' | 'flat';\n tone: 'good' | 'bad' | 'neutral';\n}\n\n/**\n * Delta of `current` vs `previous`. Rates (0..1) use percentage points; counts and latencies use\n * relative %. Returns null when there's no previous value to compare with.\n */\nexport function computeDelta(current: number | null, previous: number | null, semantics: DeltaSemantics, kind: 'count' | 'rate' = 'count'): KpiDelta | null {\n if (current === null || previous === null) return null;\n let value: number;\n let text: string;\n if (kind === 'rate') {\n value = (current - previous) * 100;\n text = `${Math.abs(value).toFixed(1)} pt`;\n } else {\n if (previous === 0) return current === 0 ? { text: '0%', direction: 'flat', tone: 'neutral' } : null;\n value = ((current - previous) / previous) * 100;\n text = `${Math.abs(value).toFixed(1)}%`;\n }\n const direction = Math.abs(value) < 0.05 ? 'flat' : value > 0 ? 'up' : 'down';\n let tone: KpiDelta['tone'] = 'neutral';\n if (direction !== 'flat' && semantics !== 'neutral') {\n const better = semantics === 'higher-is-better' ? direction === 'up' : direction === 'down';\n tone = better ? 'good' : 'bad';\n }\n return { text, direction, tone };\n}\n\nconst TONE = { good: 'text-success', bad: 'text-destructive', neutral: 'text-muted-foreground' } as const;\n\nexport function DeltaText({ delta, vs }: { delta: KpiDelta | null; vs?: string }) {\n if (!delta) return <span className=\"text-[12.5px] text-muted-foreground\">No previous data</span>;\n const Icon = delta.direction === 'up' ? ArrowUpIcon : delta.direction === 'down' ? ArrowDownIcon : null;\n const words = delta.tone === 'good' ? 'better' : delta.tone === 'bad' ? 'worse' : null;\n return (\n <span className=\"inline-flex items-center gap-1 text-[12.5px] tabular-nums\">\n <span className={cn('inline-flex items-center gap-0.5 font-medium', TONE[delta.tone])}>\n {Icon ? <Icon aria-hidden=\"true\" className=\"size-3\" /> : null}\n {delta.direction === 'down' ? '−' : delta.direction === 'up' ? '+' : ''}\n {delta.text}\n {words ? <span className=\"sr-only\"> ({words})</span> : null}\n </span>\n {vs ? <span className=\"text-muted-foreground\">{vs}</span> : null}\n </span>\n );\n}\n\nexport function KpiCard({ label, value, delta, vs, loading, children, className }: { label: string; value?: ReactNode; delta?: KpiDelta | null; vs?: string; loading?: boolean; children?: ReactNode; className?: string }) {\n return (\n <section aria-label={label} className={cn('flex min-w-0 flex-col gap-1.5 rounded-xl border bg-card p-4', className)}>\n <span className=\"text-[13px] text-muted-foreground\">{label}</span>\n {loading ? (\n <Skeleton className=\"h-8 w-24\" />\n ) : children ? (\n children\n ) : (\n <>\n <span className=\"text-2xl font-semibold tracking-tight tabular-nums\">{value}</span>\n {delta !== undefined ? <DeltaText delta={delta} {...(vs ? { vs } : {})} /> : null}\n </>\n )}\n </section>\n );\n}\n","import { useState } from 'react';\nimport { Link, createFileRoute } from '@tanstack/react-router';\nimport { useQuery } from '@tanstack/react-query';\nimport { ClipboardPasteIcon, FileUpIcon, LinkIcon, SparklesIcon } from 'lucide-react';\nimport { guard } from '@/app/route-guards';\nimport { GatedButton } from '@/components/app/gated';\nimport { runLabel } from '@/components/app/labels';\nimport { KpiCard, computeDelta } from '@/components/charts/kpi-card';\nimport { ErrorState, PageSkeleton } from '@/components/feedback/states';\nimport { PageHeader } from '@/components/layout/page-header';\nimport { EnvBadge, HealthDot, OutcomeBadge, SpecKindBadge } from '@/components/status/status';\nimport { Skeleton } from '@/components/ui/skeleton';\nimport { runsQuery } from '@/features/evals/queries';\nimport { inboxSummaryQuery, issuesQuery, needGroupsQuery } from '@/features/inbox/queries';\nimport { overviewQuery } from '@/features/overview/queries';\nimport { ScoreBadge } from '@/features/readiness/score-ring';\nimport { serversQuery } from '@/features/servers/queries';\nimport { useMe } from '@/hooks/use-me';\nimport { formatNumber, formatPercent, formatRelative } from '@/lib/format';\nimport { can } from '@/lib/permissions';\n\nexport const Route = createFileRoute('/_app/')({\n beforeLoad: guard(['servers:read']),\n staticData: { crumbs: ['Overview'] },\n component: OverviewPage,\n});\n\nconst WEEK = 7 * 86_400_000;\n\nfunction OverviewPage() {\n const servers = useQuery(serversQuery());\n if (servers.isPending) return <PageSkeleton />;\n if (servers.isError) return <ErrorState error={servers.error} onRetry={() => void servers.refetch()} />;\n if (!servers.data.items.length) return <EmptyOverview />;\n return <Dashboard />;\n}\n\n/** No servers: \"Import your first API\" hero (spec §9.1). */\nfunction EmptyOverview() {\n const me = useMe();\n const admin = can(me, 'servers:write');\n return (\n <>\n <PageHeader title=\"Overview\" />\n <section aria-labelledby=\"hero-title\" className=\"flex flex-col gap-5 rounded-xl border bg-brand-muted p-6 md:p-8\">\n <div className=\"flex flex-col gap-1\">\n <h2 id=\"hero-title\" className=\"text-xl font-semibold\">\n Import your first API\n </h2>\n <p className=\"max-w-2xl text-muted-foreground\">Point Neurouter at an OpenAPI 3.x or GraphQL spec. You get a governed MCP server and a readiness score in a few minutes.</p>\n </div>\n {admin ? (\n <div className=\"grid gap-3 md:grid-cols-3\">\n {[\n { icon: LinkIcon, title: 'Paste a URL', text: 'Fetch an openapi.yaml or a GraphQL endpoint.', search: { tab: 'url' as const } },\n { icon: FileUpIcon, title: 'Upload a file', text: '.yaml, .json, .graphql up to 10 MB.', search: { tab: 'upload' as const } },\n { icon: SparklesIcon, title: 'Try the sample', text: 'Acme Orders API (fictional), 46 operations.', search: { tab: 'url' as const, sample: '1' } },\n ].map((t) => (\n <Link key={t.title} to=\"/servers/new\" search={t.search} className=\"flex flex-col gap-1 rounded-xl border bg-card p-4 outline-none hover:border-primary focus-visible:ring-2 focus-visible:ring-ring\">\n <t.icon aria-hidden=\"true\" className=\"size-5 text-primary\" />\n <span className=\"font-semibold\">{t.title}</span>\n <span className=\"text-[13px] text-muted-foreground\">{t.text}</span>\n </Link>\n ))}\n </div>\n ) : (\n <p className=\"text-[13.5px]\">Ask an admin to import a spec.</p>\n )}\n </section>\n <ol className=\"grid gap-3 md:grid-cols-3\" aria-label=\"How it works\">\n {[\n ['1', 'Import', 'The spec becomes a curated set of MCP tools. Writes stay off until you enable them.'],\n ['2', 'Connect', 'Create a key for one environment and add the server to Claude Code, Cursor or VS Code.'],\n ['3', 'Measure', 'Run an eval: generated tasks × models × tool and code mode give a 0–100 score.'],\n ].map(([n, title, text]) => (\n <li key={n} className=\"flex gap-3 rounded-xl border bg-card p-4\">\n <span aria-hidden=\"true\" className=\"flex size-7 shrink-0 items-center justify-center rounded-full bg-primary text-xs font-bold text-primary-foreground\">\n {n}\n </span>\n <span className=\"flex flex-col gap-0.5\">\n <span className=\"font-semibold\">{title}</span>\n <span className=\"text-[13px] text-muted-foreground\">{text}</span>\n </span>\n </li>\n ))}\n </ol>\n </>\n );\n}\n\nfunction Dashboard() {\n const me = useMe();\n const [now] = useState(() => Date.now());\n const range = { from: new Date(now - WEEK).toISOString(), to: new Date(now).toISOString() };\n const overview = useQuery(overviewQuery(range));\n const servers = useQuery(serversQuery());\n const needs = useQuery(needGroupsQuery({ status: undefined }));\n const issues = useQuery(issuesQuery({ status: 'open' }));\n const inbox = useQuery(inboxSummaryQuery());\n const runs = useQuery(runsQuery());\n const k = overview.data?.kpis;\n const prev = overview.data?.previous;\n return (\n <>\n <PageHeader\n title=\"Overview\"\n description={`${me.instance.name} · last 7 days`}\n actions={\n <GatedButton cap=\"servers:write\" demoOp=\"specs.preview\" render={<Link to=\"/servers/new\" />} nativeButton={false}>\n <FileUpIcon /> Import a spec\n </GatedButton>\n }\n />\n {overview.isError ? (\n <ErrorState error={overview.error} onRetry={() => void overview.refetch()} />\n ) : (\n <div className=\"grid grid-cols-2 gap-3 md:grid-cols-3 xl:grid-cols-5\">\n <KpiCard label=\"Tasks\" loading={!k} value={formatNumber(k?.tasks)} delta={k && prev ? computeDelta(k.tasks, prev.tasks, 'neutral') : null} vs=\"previous 7 days\" />\n <KpiCard label=\"Task success\" loading={!k} value={formatPercent(k?.taskSuccessRate, 0)} delta={k && prev ? computeDelta(k.taskSuccessRate, prev.taskSuccessRate, 'higher-is-better', 'rate') : null} vs=\"previous 7 days\" />\n <KpiCard label=\"Tool calls\" loading={!k} value={formatNumber(k?.calls)} delta={k && prev ? computeDelta(k.calls, prev.calls, 'neutral') : null} vs=\"previous 7 days\" />\n <KpiCard label=\"Error rate\" loading={!k} value={formatPercent(k?.errorRate, 1)} delta={k && prev ? computeDelta(k.errorRate, prev.errorRate, 'lower-is-better', 'rate') : null} vs=\"previous 7 days\" />\n <KpiCard label=\"Open inbox items\" loading={!inbox.data} value={formatNumber(inbox.data ? inbox.data.needs.open + inbox.data.issues.open : undefined)} className=\"col-span-2 md:col-span-1\" />\n </div>\n )}\n\n <section aria-labelledby=\"servers-title\" className=\"flex flex-col gap-3\">\n <div className=\"flex items-center\">\n <h2 id=\"servers-title\" className=\"flex-1 text-base font-semibold\">\n Servers\n </h2>\n <Link to=\"/servers\" className=\"text-[13px] text-primary hover:underline\">\n All servers\n </Link>\n </div>\n <div className=\"grid gap-3 md:grid-cols-2 xl:grid-cols-3\">\n {servers.data?.items.map((s) => (\n <Link key={s.id} to=\"/servers/$serverId\" params={{ serverId: s.id }} className=\"flex flex-col gap-2.5 rounded-xl border bg-card p-4 outline-none hover:border-primary/60 focus-visible:ring-2 focus-visible:ring-ring\">\n <div className=\"flex items-start gap-2\">\n <div className=\"flex min-w-0 flex-1 flex-col gap-1\">\n <span className=\"truncate font-semibold\">{s.name}</span>\n {s.specFormat ? <SpecKindBadge format={s.specFormat} /> : null}\n </div>\n <ScoreBadge score={s.readiness?.score} preliminary={s.readiness?.confidence === 'preliminary'} />\n </div>\n <div className=\"flex flex-wrap gap-1.5\">\n {s.environments.map((e) => (\n <span key={e.id} className=\"inline-flex items-center gap-1\">\n <HealthDot status={e.health} />\n <EnvBadge slug={e.slug} kind={e.isMock ? 'mock' : e.kind} />\n </span>\n ))}\n </div>\n <span className=\"text-[12.5px] text-muted-foreground\">\n {s.visibleToolCount} of {s.toolCount} tools exposed · {s.writeToolCount} write\n </span>\n </Link>\n ))}\n </div>\n </section>\n\n <div className=\"grid gap-5 lg:grid-cols-2 [&>*]:min-w-0\">\n <section aria-labelledby=\"attention-title\" className=\"flex flex-col gap-2.5 rounded-xl border bg-card p-4 md:p-5\">\n <div className=\"flex items-center\">\n <h2 id=\"attention-title\" className=\"flex-1 text-base font-semibold\">\n Needs attention\n </h2>\n <Link to=\"/inbox\" className=\"text-[13px] text-primary hover:underline\">\n Inbox\n </Link>\n </div>\n {!needs.data ? (\n <Skeleton className=\"h-24\" />\n ) : (\n <ul className=\"flex flex-col divide-y\">\n {needs.data.items\n .filter((g) => g.status === 'open' || g.status === 'planned')\n .slice(0, 3)\n .map((g) => (\n <li key={g.id} className=\"flex items-center gap-2.5 py-2 text-[13.5px]\">\n <Link to=\"/inbox/needs/$groupId\" params={{ groupId: g.id }} className=\"min-w-0 flex-1 truncate hover:underline\">\n {g.label}\n </Link>\n <span className=\"rounded-full bg-muted px-2 py-px font-semibold tabular-nums\" aria-label={`${g.count} reports`}>\n {g.count}\n </span>\n </li>\n ))}\n {issues.data?.items.slice(0, 2).map((i) => (\n <li key={i.id} className=\"flex items-center gap-2.5 py-2 text-[13.5px]\">\n <span className=\"rounded-full bg-warning-muted px-2 py-px text-xs font-medium text-warning\">Issue</span>\n <Link to=\"/inbox/issues/$issueId\" params={{ issueId: i.id }} className=\"min-w-0 flex-1 truncate hover:underline\">\n {i.problem}\n </Link>\n </li>\n ))}\n </ul>\n )}\n </section>\n <section aria-labelledby=\"recent-title\" className=\"flex flex-col gap-2.5 rounded-xl border bg-card p-4 md:p-5\">\n <div className=\"flex items-center\">\n <h2 id=\"recent-title\" className=\"flex-1 text-base font-semibold\">\n Recent tasks\n </h2>\n <Link to=\"/tasks\" className=\"text-[13px] text-primary hover:underline\">\n All tasks\n </Link>\n </div>\n {!overview.data ? (\n <Skeleton className=\"h-24\" />\n ) : (\n <ul className=\"flex flex-col divide-y\">\n {overview.data.recentTasks.map((t) => (\n <li key={t.id} className=\"flex items-center gap-2.5 py-2 text-[13.5px]\">\n <Link to=\"/tasks/$taskId\" params={{ taskId: t.id }} className={`min-w-0 flex-1 truncate hover:underline ${t.goal ? '' : 'text-muted-foreground italic'}`}>\n {t.goal ?? t.inferredLabel?.goal ?? 'Inferred task'}\n </Link>\n <OutcomeBadge outcome={t.outcome} status={t.status} framing={t.framing} />\n <span className=\"hidden text-xs text-muted-foreground sm:inline\">{formatRelative(t.startedAt)}</span>\n </li>\n ))}\n </ul>\n )}\n </section>\n </div>\n\n <section aria-labelledby=\"runs-title\" className=\"flex flex-col gap-2.5 rounded-xl border bg-card p-4 md:p-5\">\n <div className=\"flex items-center\">\n <h2 id=\"runs-title\" className=\"flex-1 text-base font-semibold\">\n Latest eval runs\n </h2>\n <Link to=\"/evals\" className=\"text-[13px] text-primary hover:underline\">\n All runs\n </Link>\n </div>\n <ul className=\"flex flex-col divide-y\">\n {runs.data?.items.slice(0, 3).map((r) => (\n <li key={r.id} className=\"flex flex-wrap items-center gap-2.5 py-2 text-[13.5px]\">\n <Link to=\"/evals/runs/$runId\" params={{ runId: r.id }} className=\"font-medium hover:underline\">\n Run {runLabel(r)}\n </Link>\n <span className=\"text-muted-foreground\">{r.server.name}</span>\n <span className=\"flex-1\" />\n {r.status === 'running' ? <span className=\"text-xs text-muted-foreground\">running {Math.round((r.progress.done / Math.max(1, r.progress.total)) * 100)}%</span> : <ScoreBadge score={r.headline} />}\n <span className=\"text-xs text-muted-foreground\">{formatRelative(r.endedAt ?? r.createdAt)}</span>\n </li>\n ))}\n </ul>\n </section>\n <p className=\"text-xs text-muted-foreground\">\n <ClipboardPasteIcon aria-hidden=\"true\" className=\"mr-1 inline size-3\" />\n Counts cover the local retention window (30 days).\n </p>\n </>\n );\n}\n"],"ignoreList":[0,1],"mappings":"A,m5BASA,IAAMA,EAAa,CACjB,KAAM,kBACN,KAAM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KAAA,CAAC,KAAD,CAAe,UAAU,yDAAzB,SAAA,EACE,EAAAA,EAAA,KAAA,CAACvC,EAAD,CAAM,GAAG,qBAAqB,OAAQ,CAAEb,MAAOD,EAAE/B,EAAG,EAAG,UAAU,8BAAjE,SAAA,CAA8F,OACvF7D,EAAS4F,CAAC,CACX,C,IACN,EAAAqD,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,wBAAyBrD,SAAAA,EAAEE,OAAOxC,IAAW,CAAA,GAC7D,EAAA2F,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,QAAQ,CAAA,EACvBrD,EAAEhD,SAAW,WAAY,EAAAqG,EAAA,KAAA,CAAC,OAAD,CAAM,UAAU,gCAAhB,SAAA,CAAgD,WAASlD,KAAKC,MAAOJ,EAAEK,SAASC,KAAOH,KAAKI,IAAI,EAAGP,EAAEK,SAASG,KAAK,EAAK,GAAG,EAAE,GAAO,CAAI,CAAA,GAAA,EAAA6C,EAAA,IAAA,CAACR,EAAD,CAAY,MAAO7C,EAAES,QAAS,CAAA,GAChM,EAAA4C,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,gCAAiCtI,SAAAA,EAAeiF,EAAEU,SAAWV,EAAEW,SAAS,CAAQ,CAAA,CAC9F,CARKX,EAAAA,EAAE/B,EAQP,CACL,CACC,CAAA,CACG,C,IACT,EAAAoF,EAAA,KAAA,CAAC,IAAD,CAAG,UAAU,gCAAb,SAAA,EACE,EAAAA,EAAA,IAAA,CAACtC,EAAD,CAAoB,cAAY,OAAO,UAAU,oBAAoB,CAAA,EAAA,oDAEpE,C,EACL,CAAA,CAAA,CAEJ,C"}
@@ -0,0 +1,2 @@
1
+ import{xt as e}from"./index-EqRZkjd6.js";var t=e;export{t as errorComponent};
2
+ //# sourceMappingURL=_app-Ba10rJVa.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_app-Ba10rJVa.js","names":["AreaError","SplitErrorComponent","AreaError","SplitErrorComponent"],"sources":["../../src/routes/_app.tsx?tsr-split=errorComponent"],"sourcesContent":["import { Outlet, createFileRoute } from '@tanstack/react-router';\nimport { useSuspenseQuery } from '@tanstack/react-query';\nimport { AreaError } from '@/app/route-guards';\nimport { AppShell } from '@/components/layout/app-shell';\nimport { requireAuth } from '@/features/auth/guards';\nimport { meQueryOptions } from '@/features/auth/queries';\n\n/** Authenticated shell (pathless). Unauthenticated users are redirected to /auth/login?returnTo=… */\nexport const Route = createFileRoute('/_app')({\n beforeLoad: requireAuth,\n component: AppLayout,\n errorComponent: AreaError,\n});\n\nfunction AppLayout() {\n const { data: me } = useSuspenseQuery(meQueryOptions());\n return (\n <AppShell me={me}>\n <Outlet />\n </AppShell>\n );\n}\n"],"mappings":"A,yCAOA,IAAAC,EALSD,E"}
@@ -0,0 +1,2 @@
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{At as t,J as n,Ot as r,Q as i,Y as a,jt as o,kt as s,q as c}from"./index-EqRZkjd6.js";import{a as l,i as u,n as d,t as f}from"./tooltip--tDonqxM.js";import{i as p,r as m,t as h}from"./utils-BFSetRo1.js";import{o as g,s as _}from"./useButton-DQ6Sgg7h.js";import{n as v,t as y}from"./button-0-kx6BS-.js";import{t as b}from"./use-mobile-R850ZQZG.js";import{t as x}from"./separator-CcxDVEHH.js";import{a as S,i as C,n as w,r as ee,t as T}from"./sheet-CZ77BIgN.js";import"./skeleton-CuU6NqIG.js";import{t as E}from"./createLucideIcon-4wkYGrAu.js";import{n as te,t as ne}from"./storage-CuUK35fn.js";import{t as D}from"./link-CByMaQfX.js";import{t as re}from"./useRouterState-DeGPqG1m.js";import{t as O}from"./useQuery-BkgWvtTa.js";import{t as ie}from"./file-text-BzSWwAXx.js";import{t as ae}from"./file-up-DhxoycHf.js";import{t as oe}from"./gauge-DB20Sf_v.js";import{t as se}from"./inbox-Bg9XxN9I.js";import{t as ce}from"./key-round-CPrc1zQr.js";import{t as le}from"./list-tree-Cq6aoA_B.js";import{t as ue}from"./plug-CrM5MZO2.js";import{t as de}from"./server-BvD6BIlz.js";import{c as fe,i as pe,l as me,t as k}from"./permissions-Bf3wb1Jv.js";import{n as he,t as ge}from"./navigation-Crt8lW1m.js";import{n as _e,t as ve}from"./crumbs-CFOzyevD.js";import{n as A,t as ye}from"./use-debounced-value-CSowsQHr.js";import{t as be}from"./chevron-right-jlmAjiMj.js";import{a as j,c as xe,d as Se,i as Ce,l as M,o as N,r as P,s as F,t as we,u as I}from"./server-switcher-hOm8Popx.js";import{t as Te}from"./useNavigate-CrwlTILa.js";import{t as Ee}from"./wrench-CIdGHcvJ.js";import{t as De}from"./spinner-BLf8_Ajk.js";import{s as Oe}from"./queries-CaU3gifI.js";import{i as ke}from"./queries-O4X2594T.js";import{a as Ae}from"./queries-DOMFJPBg.js";import{w as je}from"./useBaseQuery-BoQjiPOp.js";import{o as Me,r as Ne}from"./api-client-CnTzbAbK.js";var L={name:`corner-down-left`,size:24,node:[[`path`,{d:`M20 4v7a4 4 0 0 1-4 4H4`,key:`6o5b7l`}],[`path`,{d:`m9 10-5 5 5 5`,key:`1kshq7`}]]};L.node;var Pe=E(L),R={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};R.node;var Fe=E(R),z={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};z.node;var Ie=E(z),B={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};B.node;var Le=E(B),V={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};V.node;var Re=E(V),H={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};H.node;var U=E(H),W={name:`palette`,size:24,node:[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]};W.node;var ze=E(W),G={name:`panel-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]],aliases:[`sidebar`]};G.node;var Be=E(G),K={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};K.node;var Ve=E(K),q={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};q.node;var J=E(q),He={name:`zap`,size:24,node:[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]};He.node;var Ue=E(He);function Y(e){return g(e.defaultTagName??`div`,e,e)}var X=e(p(),1),Z=m(),We=`sidebar_state`,Ge=604800,Ke=`16rem`,qe=`18rem`,Je=`3rem`,Ye=`b`,Xe=X.createContext(null);function Q(){let e=X.useContext(Xe);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Ze({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=b(),[c,l]=X.useState(!1),[u,d]=X.useState(e),f=t??u,p=X.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${We}=${t}; path=/; max-age=${Ge}`},[n,f]),m=X.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);X.useEffect(()=>{let e=e=>{e.key===Ye&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let g=f?`expanded`:`collapsed`,_=X.useMemo(()=>({state:g,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[g,f,p,s,c,l,m]);return(0,Z.jsx)(Xe.Provider,{value:_,children:(0,Z.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":Ke,"--sidebar-width-icon":Je,...i},className:h(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),...o,children:a})})}function Qe({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,dir:a,...o}){let{isMobile:s,state:c,openMobile:l,setOpenMobile:u}=Q();return n===`none`?(0,Z.jsx)(`div`,{"data-slot":`sidebar`,className:h(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...o,children:i}):s?(0,Z.jsx)(T,{open:l,onOpenChange:u,...o,children:(0,Z.jsxs)(w,{dir:a,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":qe},side:e,children:[(0,Z.jsxs)(C,{className:`sr-only`,children:[(0,Z.jsx)(S,{children:`Sidebar`}),(0,Z.jsx)(ee,{children:`Displays the mobile sidebar.`})]}),(0,Z.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,Z.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":c,"data-collapsible":c===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,Z.jsx)(`div`,{"data-slot":`sidebar-gap`,className:h(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,Z.jsx)(`div`,{"data-slot":`sidebar-container`,"data-side":e,className:h(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...o,children:(0,Z.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,children:i})})]})}function $e({className:e,onClick:t,...n}){let{toggleSidebar:r}=Q();return(0,Z.jsxs)(y,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:h(e),onClick:e=>{t?.(e),r()},...n,children:[(0,Z.jsx)(Be,{}),(0,Z.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function et({className:e,...t}){let{toggleSidebar:n}=Q();return(0,Z.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:h(`absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function tt({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`sidebar-inset`,className:h(`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...t})}function nt({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:h(`flex flex-col gap-2 p-2`,e),...t})}function rt({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:h(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function it({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:h(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function at({className:e,render:t,...n}){return Y({defaultTagName:`div`,props:_({className:h(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,e)},n),render:t,state:{slot:`sidebar-group-label`,sidebar:`group-label`}})}function ot({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:h(`w-full text-sm`,e),...t})}function st({className:e,...t}){return(0,Z.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:h(`flex w-full min-w-0 flex-col gap-0`,e),...t})}function ct({className:e,...t}){return(0,Z.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:h(`group/menu-item relative`,e),...t})}var lt=v(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function ut({render:e,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let{isMobile:s,state:c}=Q(),l=Y({defaultTagName:`button`,props:_({className:h(lt({variant:n,size:r}),a)},o),render:i?(0,Z.jsx)(u,{render:e}):e,state:{slot:`sidebar-menu-button`,sidebar:`menu-button`,size:r,active:t}});return i?(typeof i==`string`&&(i={children:i}),(0,Z.jsxs)(f,{children:[l,(0,Z.jsx)(d,{side:`right`,align:`center`,hidden:c!==`collapsed`||s,...i})]})):l}function dt({className:e,...t}){return(0,Z.jsx)(`div`,{"data-slot":`sidebar-menu-badge`,"data-sidebar":`menu-badge`,className:h(`pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground`,e),...t})}var ft=[{id:`build`,label:`Build`,note:e=>pe(e)?`read-only`:null,items:[{id:`overview`,title:`Overview`,to:`/`,icon:Ie,capability:`servers:read`},{id:`servers`,title:`Servers`,to:`/servers`,icon:de,capability:`servers:read`},{id:`import`,title:`Import a spec`,to:`/servers/new`,icon:ae,capability:`servers:write`}]},{id:`operate`,label:`Operate`,items:[{id:`tasks`,title:`Tasks`,to:`/tasks`,icon:le,capability:`tasks:read`},{id:`inbox`,title:`Inbox`,to:`/inbox`,icon:se,capability:`inbox:read`,badgeKey:`inboxOpen`,badgeLabel:`open`}]},{id:`evaluate`,label:`Evaluate`,items:[{id:`evals`,title:`Evals`,to:`/evals`,icon:oe,capability:`evals:read`,badgeKey:`evalsRunning`,badgeTone:`muted`,badgeLabel:`running`}]},{id:`govern`,label:`Govern`,items:[{id:`audit`,title:`Audit log`,to:`/audit`,icon:ie,capability:`audit:read`},{id:`keys`,title:`API keys`,to:`/keys`,icon:ce,capability:`keys:read`},{id:`connect`,title:`Connect a client`,to:`/connect`,icon:ue,capability:`keys:read`}]},{id:`settings`,label:`Settings`,items:[{id:`settings`,title:`Settings`,to:`/settings`,icon:Ve,capability:`settings:read`}]}];function pt(e,t,n=ft){let r=[];for(let i of n){let n=[];for(let r of i.items){if(!k(e,r.capability))continue;let i=r.badgeKey&&t?t[r.badgeKey]??0:0;n.push({id:r.id,title:r.title,to:r.to,icon:r.icon,badge:i>0?i:null,badgeTone:r.badgeTone??`default`,badgeLabel:r.badgeLabel??`pending`})}n.length&&r.push({id:i.id,label:i.label,note:i.note?.(e)??null,items:n})}return r}function mt(e,t){let n=null;for(let r of e)for(let e of r.items)(e.to===`/`?t===`/`:t===e.to||t.startsWith(`${e.to}/`))&&(!n||e.to.length>n.len)&&(n={id:e.id,len:e.to.length});return n?.id??null}var ht={default:`bg-primary text-primary-foreground peer-hover/menu-button:text-primary-foreground peer-data-active/menu-button:text-primary-foreground`,warning:`border border-warning/40 bg-warning-muted text-warning peer-hover/menu-button:text-warning peer-data-active/menu-button:text-warning`,muted:`bg-muted text-muted-foreground peer-hover/menu-button:text-muted-foreground peer-data-active/menu-button:text-muted-foreground`};function gt({me:e}){let{data:t}=O(fe()),n=re({select:e=>e.location.pathname}),{isMobile:r,setOpenMobile:i}=Q(),a=()=>{r&&i(!1)},o=pt(e,t??e.badges),s=mt(o,n);return(0,Z.jsxs)(Qe,{collapsible:`icon`,children:[(0,Z.jsxs)(`nav`,{"aria-label":`Main navigation`,className:`flex min-h-0 flex-1 flex-col`,children:[(0,Z.jsx)(nt,{className:`h-16 justify-center`,children:(0,Z.jsxs)(`div`,{className:`flex items-center gap-2.5 px-1 group-data-[collapsible=icon]:px-0`,children:[(0,Z.jsx)(he,{className:`group-data-[collapsible=icon]:size-8`}),(0,Z.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col leading-tight group-data-[collapsible=icon]:hidden`,children:[(0,Z.jsx)(`span`,{className:`text-sm font-semibold`,children:`Neurouter`}),(0,Z.jsx)(`span`,{className:`truncate text-[12.5px] text-muted-foreground`,children:e.instance.name})]}),(0,Z.jsxs)(`span`,{className:`rounded-full border px-1.5 py-px font-mono text-[11px] text-muted-foreground group-data-[collapsible=icon]:hidden`,children:[`v`,e.instance.version]})]})}),(0,Z.jsx)(rt,{children:o.map(e=>(0,Z.jsxs)(it,{role:`group`,"aria-label":e.label,children:[(0,Z.jsxs)(at,{className:`flex gap-1.5`,children:[(0,Z.jsx)(`span`,{className:`flex-1`,children:e.label}),e.note?(0,Z.jsx)(`span`,{className:`text-[11px] font-medium`,children:e.note}):null]}),(0,Z.jsx)(ot,{children:(0,Z.jsx)(st,{children:e.items.map(e=>(0,Z.jsxs)(ct,{children:[(0,Z.jsxs)(ut,{isActive:s===e.id,tooltip:e.title,className:`data-active:font-semibold`,render:(0,Z.jsx)(D,{to:e.to,onClick:a,activeOptions:{exact:!0,includeSearch:!1},"aria-current":s===e.id?`page`:void 0}),children:[(0,Z.jsx)(e.icon,{}),(0,Z.jsx)(`span`,{children:e.title})]}),e.badge===null?null:(0,Z.jsx)(dt,{className:h(`rounded-full px-1.5 text-[11px] font-semibold tabular-nums`,ht[e.badgeTone]),"aria-label":`${e.badge} ${e.badgeLabel}`,children:e.badge})]},e.id))})})]},e.id))})]}),(0,Z.jsx)(et,{})]})}function _t(){return null}function vt(){return null}function yt({className:e,...t}){return(0,Z.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,className:h(e),...t})}function bt({className:e,...t}){return(0,Z.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:h(`flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground`,e),...t})}function xt({className:e,...t}){return(0,Z.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:h(`inline-flex items-center gap-1`,e),...t})}function St({className:e,render:t,...n}){return Y({defaultTagName:`a`,props:_({className:h(`transition-colors hover:text-foreground`,e)},n),render:t,state:{slot:`breadcrumb-link`}})}function Ct({className:e,...t}){return(0,Z.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:h(`font-normal text-foreground`,e),...t})}function wt({children:e,className:t,...n}){return(0,Z.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:h(`[&>svg]:size-3.5`,t),...n,children:e??(0,Z.jsx)(be,{})})}function Tt({className:e,...t}){return(0,Z.jsx)(`kbd`,{"data-slot":`kbd`,className:h(`pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm bg-muted px-1 font-sans text-xs font-medium text-muted-foreground select-none in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 [&_svg:not([class*='size-'])]:size-3`,e),...t})}function Et(){let{theme:e,resolvedTheme:t,setTheme:n}=r(),i=`Theme: ${e===`system`?`system (${t})`:e}`;return(0,Z.jsxs)(P,{children:[(0,Z.jsx)(Se,{render:(0,Z.jsx)(y,{variant:`ghost`,size:`icon`,"aria-label":i,title:i}),children:t===`dark`?(0,Z.jsx)(J,{}):(0,Z.jsx)(U,{})}),(0,Z.jsx)(Ce,{align:`end`,className:`w-40`,children:(0,Z.jsxs)(j,{children:[(0,Z.jsx)(F,{children:`Theme`}),(0,Z.jsxs)(xe,{value:e,onValueChange:e=>n(s(String(e))),children:[(0,Z.jsxs)(M,{value:`light`,children:[(0,Z.jsx)(J,{}),` Light`]}),(0,Z.jsxs)(M,{value:`dark`,children:[(0,Z.jsx)(U,{}),` Dark`]}),(0,Z.jsxs)(M,{value:`system`,children:[(0,Z.jsx)(Re,{}),` System`]})]})]})})]})}var Dt=e=>e.toLowerCase().normalize(`NFKD`);function $(e,t){let n=Dt(t).split(/\s+/).filter(Boolean),r=Dt(e);return n.every(e=>r.includes(e))}function Ot(e,t,n=8){let r=[];for(let n of e)for(let e of n.items)$(`${e.title} ${n.label}`,t)&&r.push({kind:`page`,id:`page:${e.id}`,label:e.title,hint:n.label,to:e.to,icon:e.icon});return r.slice(0,n)}function kt(e,t){let n=[];return t.import&&n.push({kind:`action`,id:`action:import`,label:`Import a spec`,hint:`Action`,to:`/servers/new`}),t.evals&&n.push({kind:`action`,id:`action:eval`,label:`New eval run`,hint:`Action`,to:`/evals`,search:{new:`1`}}),t.keys&&n.push({kind:`action`,id:`action:key`,label:`Create API key`,hint:`Action`,to:`/keys`,search:{create:`1`}}),e.trim()?n.filter(t=>$(t.label,e)):n}function At(e,t,n){if(n===0)return-1;switch(t){case`ArrowDown`:return(e+1+n)%n;case`ArrowUp`:return e<=0?n-1:e-1;case`Home`:return 0;case`End`:return n-1;default:return Math.min(Math.max(e,0),n-1)}}function jt(e){return(e.metaKey||e.ctrlKey)&&!e.altKey&&!e.shiftKey&&e.key.toLowerCase()===`k`}function Mt(e){(0,X.useEffect)(()=>{let t=t=>{jt(t)&&(t.preventDefault(),e())};return window.addEventListener(`keydown`,t),()=>window.removeEventListener(`keydown`,t)},[e])}function Nt({me:e,open:t,onOpenChange:r}){let o=Te(),s=(0,X.useId)(),[l,u]=(0,X.useState)(``),[d,f]=(0,X.useState)(0),p=ye(l.trim(),200),m=t&&p.length>=2&&k(e,`tools:read`),g=O({...Ae(p),enabled:m}),_=O({...Oe(),enabled:t&&k(e,`servers:read`)}),v=O({...ke({limit:20}),enabled:t&&k(e,`tasks:read`)}),y=(0,X.useMemo)(()=>pt(e),[e]),b=(0,X.useMemo)(()=>{let t=l.trim(),n=Ot(y,t,t?5:8),r=kt(t,{import:k(e,`servers:write`),evals:k(e,`evals:run`),keys:k(e,`keys:manage`)}),i=t?(_.data?.items??[]).filter(e=>$(`${e.name} ${e.slug}`,t)).slice(0,4).map(e=>({kind:`server`,id:`server:${e.id}`,label:e.name,hint:`Server`,serverId:e.id})):[],a=m&&p===t?(g.data?.items??[]).map(e=>({kind:`tool`,id:`tool:${e.id}`,label:`${e.server.name} › ${e.name}`,hint:e.title,serverId:e.server.id,toolId:e.id})):[],o=t?(v.data?.items??[]).filter(e=>$(`${e.id} ${e.goal??e.inferredLabel?.goal??``}`,t)).slice(0,4).map(e=>({kind:`task`,id:`task:${e.id}`,label:e.goal??e.inferredLabel?.goal??e.id,hint:e.id,taskId:e.id})):[];return[...n,...i,...a,...o,...r]},[y,l,e,_.data,g.data,v.data,m,p]),x=At(d,``,b.length),S=b[x];(0,X.useEffect)(()=>{S&&document.getElementById(`${s}-${S.id}`)?.scrollIntoView({block:`nearest`})},[S,s]);function C(){r(!1),u(``),f(0)}function w(e){C(),e.kind===`page`?o({to:e.to}):e.kind===`server`?o({to:`/servers/$serverId`,params:{serverId:e.serverId}}):e.kind===`tool`?o({to:`/servers/$serverId/tools/$toolId`,params:{serverId:e.serverId,toolId:e.toolId}}):e.kind===`task`?o({to:`/tasks/$taskId`,params:{taskId:e.taskId}}):o({to:e.to,search:e.search})}function ee(e){e.key===`ArrowDown`||e.key===`ArrowUp`||(e.key===`Home`||e.key===`End`)&&e.ctrlKey?(e.preventDefault(),f(At(x,e.key,b.length))):e.key===`Enter`&&S&&(e.preventDefault(),w(S))}let T=[{title:`Pages`,kind:`page`},{title:`Servers`,kind:`server`},{title:`Tools`,kind:`tool`},{title:`Tasks`,kind:`task`},{title:`Actions`,kind:`action`}].map(e=>({...e,items:b.filter(t=>t.kind===e.kind)})).filter(e=>e.items.length),E=m&&(g.isFetching||p!==l.trim()),te={server:de,tool:Ee,task:le,action:Ue};return(0,Z.jsx)(c,{open:t,onOpenChange:e=>e?r(!0):C(),children:(0,Z.jsxs)(n,{showCloseButton:!1,className:`top-[12vh] translate-y-0 gap-0 overflow-hidden p-0 sm:max-w-xl`,children:[(0,Z.jsx)(i,{className:`sr-only`,children:`Search`}),(0,Z.jsx)(a,{className:`sr-only`,children:`Type to search pages, servers, tools and tasks. Use the arrow keys to move and Enter to open.`}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-3`,children:[(0,Z.jsx)(A,{"aria-hidden":`true`,className:`size-4 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`input`,{role:`combobox`,"aria-expanded":b.length>0,"aria-controls":`${s}-list`,"aria-activedescendant":S?`${s}-${S.id}`:void 0,"aria-autocomplete":`list`,"aria-label":`Search tools, tasks and pages`,autoFocus:!0,value:l,onChange:e=>{u(e.target.value),f(0)},onKeyDown:ee,placeholder:`Search tools, tasks…`,className:`h-12 min-w-0 flex-1 bg-transparent text-[15px] outline-none placeholder:text-muted-foreground`}),E?(0,Z.jsx)(De,{className:`text-muted-foreground`}):null,(0,Z.jsx)(Tt,{children:`Esc`})]}),(0,Z.jsxs)(`div`,{id:`${s}-list`,role:`listbox`,"aria-label":`Results`,className:`max-h-[min(60vh,420px)] overflow-y-auto p-1.5`,children:[T.map(e=>(0,Z.jsxs)(`div`,{role:`group`,"aria-labelledby":`${s}-g-${e.kind}`,className:`pb-1`,children:[(0,Z.jsx)(`div`,{id:`${s}-g-${e.kind}`,role:`presentation`,className:`px-2 pt-2 pb-1 text-xs font-medium text-muted-foreground`,children:e.title}),e.items.map(e=>{let t=S?.id===e.id,n=e.kind===`page`?e.icon:te[e.kind];return(0,Z.jsxs)(`div`,{id:`${s}-${e.id}`,role:`option`,"aria-selected":t,onMouseMove:()=>f(b.indexOf(e)),onMouseDown:e=>e.preventDefault(),onClick:()=>w(e),className:h(`flex cursor-pointer items-center gap-2.5 rounded-md px-2 py-2 text-[13.5px]`,t?`bg-accent text-accent-foreground`:``),children:[(0,Z.jsx)(n,{"aria-hidden":`true`,className:`size-4 shrink-0 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:h(`min-w-0 truncate`,e.kind===`tool`?`font-mono text-[12.5px]`:``),children:e.label}),(0,Z.jsx)(`span`,{className:`ml-auto min-w-0 truncate pl-2 text-xs text-muted-foreground`,children:e.hint}),t?(0,Z.jsx)(Pe,{"aria-hidden":`true`,className:`size-3.5 shrink-0 text-muted-foreground`}):null]},e.id)})]},e.title)),b.length?null:(0,Z.jsxs)(`p`,{role:`status`,className:`px-3 py-6 text-center text-[13px] text-muted-foreground`,children:[`Nothing matches “`,l.trim(),`”.`]})]})]})})}function Pt(e,t=``){let n=e.trim().split(/\s+/).filter(Boolean);return n.length>=2?(n[0][0]+n[n.length-1][0]).toUpperCase():n.length===1?n[0].slice(0,2).toUpperCase():(t[0]??`?`).toUpperCase()}var Ft={admin:`Admin`,viewer:`Viewer`};async function It(e,t=e=>ge.assign(e)){let n=`/auth/logged-out`;try{n=(await Ne(Me.auth.logout)).endSessionUrl??n}catch{}e.clear(),t(n)}function Lt({me:e}){let t=je();return(0,Z.jsxs)(P,{children:[(0,Z.jsx)(Se,{"aria-label":`User menu: ${e.user.name}`,className:`flex size-8 shrink-0 items-center justify-center rounded-full bg-primary text-xs font-semibold text-primary-foreground outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,children:Pt(e.user.name,e.user.email)}),(0,Z.jsxs)(Ce,{align:`end`,className:`w-64`,children:[(0,Z.jsx)(j,{children:(0,Z.jsxs)(F,{className:`flex flex-col gap-0.5 font-normal`,children:[(0,Z.jsx)(`span`,{className:`text-sm font-semibold text-foreground`,children:e.user.name||e.user.email}),(0,Z.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:e.user.email}),(0,Z.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.user.anonymous?`Demo visitor`:Ft[e.user.role]})]})}),(0,Z.jsx)(I,{}),(0,Z.jsx)(j,{children:(0,Z.jsxs)(N,{render:(0,Z.jsx)(D,{to:`/settings/appearance`}),children:[(0,Z.jsx)(ze,{}),` Appearance`]})}),e.user.anonymous?null:(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(I,{}),(0,Z.jsxs)(N,{onClick:()=>void It(t),children:[(0,Z.jsx)(Le,{}),` Sign out`]})]})]})]})}function Rt({me:e}){let n=t(),[r,i]=(0,X.useState)(!1);Mt((0,X.useCallback)(()=>i(!0),[]));let a=[...n].reverse().find(e=>e.staticData?.crumbs)?.staticData?.crumbs??[],o=_e()??a.map(e=>({label:e})),s=e.user.role===`viewer`&&!0;return(0,Z.jsxs)(`header`,{className:`sticky top-0 z-10 flex h-14 shrink-0 items-center gap-2 border-b bg-background px-3 md:px-5`,children:[(0,Z.jsx)($e,{className:`size-8 text-muted-foreground`,"aria-label":`Toggle sidebar (Ctrl+B)`}),(0,Z.jsx)(x,{orientation:`vertical`,className:`mx-1 hidden data-[orientation=vertical]:h-4 sm:block`}),(0,Z.jsx)(yt,{className:`min-w-0 flex-1`,children:(0,Z.jsx)(bt,{className:`flex-nowrap overflow-hidden whitespace-nowrap`,children:o.map((e,t)=>(0,Z.jsxs)(X.Fragment,{children:[(0,Z.jsx)(xt,{className:t<o.length-1?`hidden sm:inline-flex`:`min-w-0`,children:t===o.length-1?(0,Z.jsx)(Ct,{className:`truncate font-medium`,children:e.label}):e.to?(0,Z.jsx)(St,{render:(0,Z.jsx)(D,{to:e.to}),children:e.label}):(0,Z.jsx)(`span`,{children:e.label})}),t<o.length-1?(0,Z.jsx)(wt,{className:`hidden sm:inline-flex`}):null]},`${e.label}-${t}`))})}),(0,Z.jsx)(we,{}),(0,Z.jsx)(vt,{}),s?(0,Z.jsxs)(`span`,{title:`Viewer role: you can look at everything but not change it`,className:`inline-flex h-[22px] shrink-0 items-center gap-1 rounded-full border px-2 text-xs text-muted-foreground`,children:[(0,Z.jsx)(Fe,{"aria-hidden":`true`,className:`size-3`}),`Viewer · read-only`]}):null,(0,Z.jsxs)(`button`,{type:`button`,"aria-label":`Search tools, tasks and pages`,"aria-keyshortcuts":`Meta+K Control+K`,onClick:()=>i(!0),className:`hidden h-8 w-60 items-center gap-2 rounded-lg border bg-background pr-1.5 pl-2.5 text-[13px] text-muted-foreground hover:bg-accent lg:inline-flex`,children:[(0,Z.jsx)(A,{className:`size-4`,"aria-hidden":`true`}),(0,Z.jsx)(`span`,{className:`flex-1 text-left`,children:`Search tools, tasks…`}),(0,Z.jsx)(Tt,{children:`⌘K`})]}),(0,Z.jsx)(`button`,{type:`button`,"aria-label":`Search`,onClick:()=>i(!0),className:`inline-flex size-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-accent lg:hidden`,children:(0,Z.jsx)(A,{className:`size-[18px]`,"aria-hidden":`true`})}),(0,Z.jsx)(Nt,{me:e,open:r,onOpenChange:i}),(0,Z.jsx)(Et,{}),(0,Z.jsx)(Lt,{me:e})]})}var zt=`neurouter-console-sidebar-open`;function Bt(){let e=ne(zt);return e===`true`||e===`false`?e===`true`:typeof window.matchMedia!=`function`||window.matchMedia(`(min-width: 1280px)`).matches}function Vt({me:e,children:t}){let[n,r]=(0,X.useState)(Bt);return(0,Z.jsx)(ve,{children:(0,Z.jsxs)(Ze,{open:n,onOpenChange:e=>{r(e),te(zt,String(e))},children:[(0,Z.jsx)(`a`,{href:`#main`,className:`sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:rounded-md focus:bg-background focus:px-3 focus:py-2 focus:shadow`,children:`Skip to content`}),(0,Z.jsx)(gt,{me:e}),(0,Z.jsxs)(tt,{className:`min-w-0`,children:[(0,Z.jsx)(_t,{}),(0,Z.jsx)(Rt,{me:e}),(0,Z.jsx)(`main`,{id:`main`,className:`mx-auto flex w-full max-w-screen-2xl flex-1 flex-col gap-5 px-4 pt-6 pb-10 md:px-8`,children:t})]})]})})}function Ht(){let{data:e}=l(me());return(0,Z.jsx)(Vt,{me:e,children:(0,Z.jsx)(o,{})})}export{Ht as component};
2
+ //# sourceMappingURL=_app-Bv2dBVot.js.map