@lunora/studio 1.0.0-alpha.136 → 1.0.0-alpha.137

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 (361) hide show
  1. package/dist/index.d.mts +1515 -0
  2. package/dist/index.d.ts +20 -7
  3. package/dist/index.mjs +1 -0
  4. package/dist/mount.d.mts +21 -0
  5. package/dist/mount.mjs +1 -0
  6. package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
  7. package/dist/packem_chunks/ApiTab.mjs +1 -0
  8. package/dist/packem_chunks/AuditPanel.mjs +1 -0
  9. package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
  10. package/dist/packem_chunks/{ExportImportPanel.js → ExportImportPanel.mjs} +1 -1
  11. package/dist/packem_chunks/{FileBrowser.js → FileBrowser.mjs} +1 -1
  12. package/dist/packem_chunks/FunctionRunner.mjs +1 -0
  13. package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
  14. package/dist/packem_chunks/HealthPanel.mjs +1 -0
  15. package/dist/packem_chunks/InsightsPanel.mjs +1 -0
  16. package/dist/packem_chunks/LogsPanel.mjs +1 -0
  17. package/dist/packem_chunks/MailPanel.mjs +2 -0
  18. package/dist/packem_chunks/MetricsPanel.mjs +1 -0
  19. package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
  20. package/dist/packem_chunks/PitrPanel.mjs +1 -0
  21. package/dist/packem_chunks/SchemaViewer.mjs +1 -0
  22. package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
  23. package/dist/packem_chunks/SettingsPanel.mjs +1 -0
  24. package/dist/packem_chunks/{SqlEditorPanel.js → SqlEditorPanel.mjs} +1 -1
  25. package/dist/packem_chunks/TableEditor.mjs +1 -0
  26. package/dist/packem_chunks/agents-panel.mjs +1 -0
  27. package/dist/packem_chunks/analytics-panel.mjs +1 -0
  28. package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
  29. package/dist/packem_chunks/auth-config-panel.mjs +1 -0
  30. package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
  31. package/dist/packem_chunks/containers-panel.mjs +1 -0
  32. package/dist/packem_chunks/dashboards-panel.mjs +1 -0
  33. package/dist/packem_chunks/evals-panel.mjs +1 -0
  34. package/dist/packem_chunks/fanout-panel.mjs +1 -0
  35. package/dist/packem_chunks/flags-panel.mjs +1 -0
  36. package/dist/packem_chunks/issues-panel.mjs +1 -0
  37. package/dist/packem_chunks/kv-browser.mjs +1 -0
  38. package/dist/packem_chunks/{log-drains-panel.js → log-drains-panel.mjs} +1 -1
  39. package/dist/packem_chunks/migrations-route.mjs +1 -0
  40. package/dist/packem_chunks/organizations-panel.mjs +1 -0
  41. package/dist/packem_chunks/payments-panel.mjs +1 -0
  42. package/dist/packem_chunks/permissions-panel.mjs +1 -0
  43. package/dist/packem_chunks/queues-panel.mjs +1 -0
  44. package/dist/packem_chunks/reactors-panel.mjs +1 -0
  45. package/dist/packem_chunks/rls-panel.mjs +1 -0
  46. package/dist/packem_chunks/schedule-panel.mjs +1 -0
  47. package/dist/packem_chunks/sparkline.mjs +1 -0
  48. package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
  49. package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
  50. package/dist/packem_chunks/sync-client-panel.mjs +1 -0
  51. package/dist/packem_chunks/traces-panel.mjs +1 -0
  52. package/dist/packem_chunks/users-panel.mjs +1 -0
  53. package/dist/packem_chunks/vector-browser.mjs +1 -0
  54. package/dist/packem_chunks/workflows-panel.mjs +1 -0
  55. package/dist/packem_shared/{ApiDocsPanel-Du1L7Ysj.js → ApiDocsPanel-BOxViKDM.mjs} +1 -1
  56. package/dist/packem_shared/ApiReferencePanel--YThTzHb.mjs +1 -0
  57. package/dist/packem_shared/CommandPalette-C4UrhLxv.mjs +1 -0
  58. package/dist/packem_shared/ConfirmButton-DU4p72Er.mjs +1 -0
  59. package/dist/packem_shared/ConnectionBadge-B_8fcft2.mjs +1 -0
  60. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
  61. package/dist/packem_shared/{DataBrowser-W5TxvLB8.js → DataBrowser-CDzwqq4b.mjs} +1 -1
  62. package/dist/packem_shared/GlobalDataBrowser-BKm77TNC.mjs +1 -0
  63. package/dist/packem_shared/HomePanel-T_fBZTEM.mjs +1 -0
  64. package/dist/packem_shared/MigrationsPanel-CYe0ygT8.mjs +1 -0
  65. package/dist/packem_shared/OpenRpcReferencePanel-Bn5UVD7s.mjs +1 -0
  66. package/dist/packem_shared/ScheduledJobs-DN0yQoo6.mjs +1 -0
  67. package/dist/packem_shared/ShardInput-C6mjgAh4.mjs +1 -0
  68. package/dist/packem_shared/Studio-CHCAslfi.mjs +1 -0
  69. package/dist/packem_shared/StudioApp-DVl_E-VZ.mjs +1 -0
  70. package/dist/packem_shared/StudioI18nProvider-fVsCSs5L.mjs +1 -0
  71. package/dist/packem_shared/advisor-view-5mZH6453.mjs +1 -0
  72. package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
  73. package/dist/packem_shared/app.d-D1bPR8FO.d.mts +252 -0
  74. package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
  75. package/dist/packem_shared/{bar-chart-B6gzp_f9.js → bar-chart-BCsEIQoQ.mjs} +1 -1
  76. package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
  77. package/dist/packem_shared/card--2hKx4L2.mjs +1 -0
  78. package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
  79. package/dist/packem_shared/data-grid-BqNXJ9PF.mjs +1 -0
  80. package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
  81. package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
  82. package/dist/packem_shared/error-alert-CczbAfst.mjs +1 -0
  83. package/dist/packem_shared/{grid-features-jBzZGauv.js → grid-features-D8w5isjt.mjs} +1 -1
  84. package/dist/packem_shared/home-panel-CSENDmoB.mjs +3 -0
  85. package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
  86. package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
  87. package/dist/packem_shared/live-status-BuJdUZFU.mjs +1 -0
  88. package/dist/packem_shared/log-line-Dzg4YZ-K.mjs +1 -0
  89. package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
  90. package/dist/packem_shared/recording-client-BEZ6tVgo.mjs +1 -0
  91. package/dist/packem_shared/{reference-view-BU2dNK9Z.js → reference-view-CZxBZSRo.mjs} +1 -1
  92. package/dist/packem_shared/schema-diagram-DU83ObYH.mjs +2 -0
  93. package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
  94. package/dist/packem_shared/select-Cx8-CokP.mjs +2 -0
  95. package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
  96. package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
  97. package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
  98. package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
  99. package/dist/packem_shared/sql-result-table-DysT8h5P.mjs +1 -0
  100. package/dist/packem_shared/stat-card-D0Fe04cX.mjs +1 -0
  101. package/dist/packem_shared/studio-DRHuKwbt.mjs +2 -0
  102. package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
  103. package/dist/packem_shared/table-list-sidebar-BxZm3sBJ.mjs +1 -0
  104. package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
  105. package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
  106. package/dist/packem_shared/use-admin-query-Cbj2GuHu.mjs +1 -0
  107. package/dist/packem_shared/use-async-submit-DAKymxcP.mjs +1 -0
  108. package/dist/packem_shared/use-auth-config-gxJL0E1r.mjs +1 -0
  109. package/dist/packem_shared/use-open-trace-B5LJ96_0.mjs +1 -0
  110. package/dist/packem_shared/use-sql-assistant-CFRzdA9E.mjs +1 -0
  111. package/dist/standalone/{chunk-7PIHTTND.js → chunk-25NFR6EB.js} +1 -1
  112. package/dist/standalone/{chunk-R7S3ICRW.js → chunk-2AFIMJPZ.js} +1 -1
  113. package/dist/standalone/{chunk-ENLQ6CZE.js → chunk-2DO5EQCU.js} +1 -1
  114. package/dist/standalone/{chunk-XZBLPJZN.js → chunk-2QSOSRNW.js} +1 -1
  115. package/dist/standalone/{chunk-F7JOSNAT.js → chunk-35DM4JJG.js} +1 -1
  116. package/dist/standalone/{chunk-EHQU74ST.js → chunk-3FFEVZUV.js} +1 -1
  117. package/dist/standalone/{chunk-OE4KGVJW.js → chunk-3ILVYCWG.js} +1 -1
  118. package/dist/standalone/{chunk-TRS5ABTX.js → chunk-3PKWDMXA.js} +1 -1
  119. package/dist/standalone/{chunk-2KR32476.js → chunk-3ZKYTFKY.js} +1 -1
  120. package/dist/standalone/{chunk-XLU6W4LI.js → chunk-43Y54D7O.js} +1 -1
  121. package/dist/standalone/{chunk-AOAJGSYZ.js → chunk-46ZJ3TM4.js} +1 -1
  122. package/dist/standalone/{chunk-2SFSTQS4.js → chunk-4GTO7FL5.js} +1 -1
  123. package/dist/standalone/{chunk-TFMQSCGC.js → chunk-4L4WTGN5.js} +1 -1
  124. package/dist/standalone/{chunk-HOQ2PFO6.js → chunk-56AFJWER.js} +1 -1
  125. package/dist/standalone/chunk-5AUOM7FK.js +1 -0
  126. package/dist/standalone/{chunk-XQS7KSHL.js → chunk-5GFSKIB2.js} +1 -1
  127. package/dist/standalone/{chunk-JV7KTJPY.js → chunk-5JDWLCSH.js} +1 -1
  128. package/dist/standalone/{chunk-WSNONR2E.js → chunk-5PCGB55O.js} +1 -1
  129. package/dist/standalone/{chunk-MCLM2QJI.js → chunk-5WJXVZMZ.js} +1 -1
  130. package/dist/standalone/{chunk-WUW4ZHRL.js → chunk-66UGPQVC.js} +1 -1
  131. package/dist/standalone/{chunk-QHQTOESO.js → chunk-7EYQVAUQ.js} +1 -1
  132. package/dist/standalone/{chunk-AVBOVXQK.js → chunk-7QMV55PO.js} +1 -1
  133. package/dist/standalone/{chunk-JURAVSE7.js → chunk-7QRRR3K6.js} +1 -1
  134. package/dist/standalone/{chunk-EDHW2EEG.js → chunk-7RIRJD2P.js} +1 -1
  135. package/dist/standalone/{chunk-ITNXWR5K.js → chunk-B5FXTB7H.js} +1 -1
  136. package/dist/standalone/{chunk-NNJW6LZK.js → chunk-BFXBBUU6.js} +1 -1
  137. package/dist/standalone/{chunk-DBMUPDVJ.js → chunk-BX3F7MXP.js} +1 -1
  138. package/dist/standalone/{chunk-ZSOLGJFC.js → chunk-C3TOZ4LG.js} +1 -1
  139. package/dist/standalone/{chunk-54TELYX4.js → chunk-C5L4BSYY.js} +1 -1
  140. package/dist/standalone/{chunk-U5D3ABAW.js → chunk-CKZQXAZE.js} +1 -1
  141. package/dist/standalone/{chunk-7SROZWKL.js → chunk-CSUROWL2.js} +1 -1
  142. package/dist/standalone/{chunk-DUDQV6XJ.js → chunk-D27D4UUI.js} +1 -1
  143. package/dist/standalone/chunk-DEJLINCJ.js +1 -0
  144. package/dist/standalone/{chunk-KZ5V7F4W.js → chunk-DQHYNFE4.js} +1 -1
  145. package/dist/standalone/{chunk-METRMDIQ.js → chunk-EA2JKR5D.js} +1 -1
  146. package/dist/standalone/{chunk-BWEXJENB.js → chunk-EBWXFG4H.js} +1 -1
  147. package/dist/standalone/{chunk-4U5PYZLE.js → chunk-ECQTVV2J.js} +1 -1
  148. package/dist/standalone/{chunk-JUWOEHDD.js → chunk-EG6XHY7N.js} +1 -1
  149. package/dist/standalone/{chunk-MOVUB3HI.js → chunk-EIKBBMM4.js} +1 -1
  150. package/dist/standalone/{chunk-5BEXGGHV.js → chunk-EILTQDXX.js} +1 -1
  151. package/dist/standalone/{chunk-XYD65F6K.js → chunk-ERWZGAOA.js} +1 -1
  152. package/dist/standalone/{chunk-ZPGNTTQ3.js → chunk-F7UC63UN.js} +1 -1
  153. package/dist/standalone/{chunk-UANVABQG.js → chunk-FKVZRPV5.js} +1 -1
  154. package/dist/standalone/{chunk-DKSLOJDQ.js → chunk-FO26ZU7E.js} +1 -1
  155. package/dist/standalone/{chunk-RCZTUWG3.js → chunk-FSRSK4LY.js} +1 -1
  156. package/dist/standalone/{chunk-IS2BTYON.js → chunk-GD3ZRVZH.js} +1 -1
  157. package/dist/standalone/{chunk-L4EZAHCD.js → chunk-HEAQVSNS.js} +1 -1
  158. package/dist/standalone/{chunk-GD4GUF75.js → chunk-HODZXHVK.js} +1 -1
  159. package/dist/standalone/chunk-HPUOZHDA.js +1 -0
  160. package/dist/standalone/{chunk-AFKLFS74.js → chunk-I52I2DJG.js} +1 -1
  161. package/dist/standalone/{chunk-OG57FC7W.js → chunk-I5OKDKON.js} +1 -1
  162. package/dist/standalone/{chunk-TB5N24CM.js → chunk-IFLTA2OD.js} +1 -1
  163. package/dist/standalone/{chunk-NXXGISFB.js → chunk-IMOHEGMV.js} +1 -1
  164. package/dist/standalone/{chunk-5U6757U7.js → chunk-JAZCU2PP.js} +1 -1
  165. package/dist/standalone/{chunk-CG5OTGTR.js → chunk-JBIN7W2B.js} +1 -1
  166. package/dist/standalone/{chunk-BA6TK2PS.js → chunk-JHEUUNXM.js} +1 -1
  167. package/dist/standalone/chunk-JJA7KHJK.js +1 -0
  168. package/dist/standalone/{chunk-4YTSKL4R.js → chunk-JVUZEYKQ.js} +1 -1
  169. package/dist/standalone/{chunk-INFALEU6.js → chunk-JYMXJUJ2.js} +1 -1
  170. package/dist/standalone/chunk-K7AJEMKE.js +1 -0
  171. package/dist/standalone/{chunk-ZZBE7O77.js → chunk-KDWJAKFX.js} +1 -1
  172. package/dist/standalone/{chunk-EQFBG7TB.js → chunk-KEZZGUYY.js} +1 -1
  173. package/dist/standalone/{chunk-6DAH3SMG.js → chunk-KTTYWH6A.js} +1 -1
  174. package/dist/standalone/{chunk-LVZKEWNM.js → chunk-LC3XGRNU.js} +1 -1
  175. package/dist/standalone/{chunk-LJFIXPDF.js → chunk-LJC5BM3X.js} +1 -1
  176. package/dist/standalone/{chunk-6XME7G3Q.js → chunk-LWYAZ2H7.js} +1 -1
  177. package/dist/standalone/{chunk-B3QSXX4O.js → chunk-M6MCQSPI.js} +1 -1
  178. package/dist/standalone/{chunk-AFH3KSFW.js → chunk-MIVYBFY3.js} +1 -1
  179. package/dist/standalone/{chunk-BQK2C2Z4.js → chunk-MNAASONZ.js} +1 -1
  180. package/dist/standalone/{chunk-BGOEMFLU.js → chunk-MRJNT4OH.js} +1 -1
  181. package/dist/standalone/{chunk-OQOBY6X3.js → chunk-N6KHKQJH.js} +1 -1
  182. package/dist/standalone/{chunk-V6QPVFDL.js → chunk-NBC6NJFJ.js} +1 -1
  183. package/dist/standalone/{chunk-SPDZUX4P.js → chunk-NCCAMFB6.js} +1 -1
  184. package/dist/standalone/{chunk-NGQTRDBQ.js → chunk-NE7AR3N3.js} +1 -1
  185. package/dist/standalone/chunk-NPERN4YF.js +1 -0
  186. package/dist/standalone/{chunk-YNZQSHFG.js → chunk-O2FV34ZD.js} +1 -1
  187. package/dist/standalone/{chunk-KVSQKUWD.js → chunk-OGUKYRFM.js} +1 -1
  188. package/dist/standalone/{chunk-ZHPDAJBM.js → chunk-OKG3HWSJ.js} +1 -1
  189. package/dist/standalone/{chunk-FUVCG23X.js → chunk-OOESPRIZ.js} +1 -1
  190. package/dist/standalone/{chunk-443UDYWL.js → chunk-OOKV3V3X.js} +1 -1
  191. package/dist/standalone/{chunk-ATES7QMQ.js → chunk-PAUQAU23.js} +1 -1
  192. package/dist/standalone/{chunk-Q7ZPWO67.js → chunk-PKCC4J5W.js} +1 -1
  193. package/dist/standalone/{chunk-DPNEFSEC.js → chunk-PYT4RZJH.js} +1 -1
  194. package/dist/standalone/{chunk-W7ETXRN4.js → chunk-Q3HF6P2M.js} +1 -1
  195. package/dist/standalone/{chunk-TPAZM36C.js → chunk-Q4CAKBWN.js} +1 -1
  196. package/dist/standalone/{chunk-M3NNNOD5.js → chunk-QKEJLVC5.js} +1 -1
  197. package/dist/standalone/{chunk-U6RNLNVU.js → chunk-QSOJFV42.js} +1 -1
  198. package/dist/standalone/{chunk-K6O3UDLX.js → chunk-RK3WWWTT.js} +1 -1
  199. package/dist/standalone/{chunk-XJSWM47N.js → chunk-RLLKECZT.js} +1 -1
  200. package/dist/standalone/{chunk-CAOUXOL7.js → chunk-RPQL45FL.js} +1 -1
  201. package/dist/standalone/{chunk-CKTKI4IY.js → chunk-S3CRZLGS.js} +1 -1
  202. package/dist/standalone/{chunk-L6DNHL3L.js → chunk-S63ID2FC.js} +1 -1
  203. package/dist/standalone/{chunk-VZCS5GXZ.js → chunk-SB35BJ7A.js} +1 -1
  204. package/dist/standalone/{chunk-26VREVWU.js → chunk-SSNHCN4D.js} +1 -1
  205. package/dist/standalone/{chunk-3KLX63D7.js → chunk-T2IE5GKA.js} +1 -1
  206. package/dist/standalone/{chunk-74ASA4WU.js → chunk-TGHH7ZFA.js} +1 -1
  207. package/dist/standalone/{chunk-FJ6G6FNE.js → chunk-TJRQUJFS.js} +1 -1
  208. package/dist/standalone/{chunk-EYGF6TQS.js → chunk-TQCXJX4I.js} +1 -1
  209. package/dist/standalone/{chunk-EYENA7HZ.js → chunk-TRL7AHZK.js} +1 -1
  210. package/dist/standalone/{chunk-CP4ZFBVW.js → chunk-TWTNWOJU.js} +1 -1
  211. package/dist/standalone/{chunk-UUO257GV.js → chunk-TZI3JW3Q.js} +1 -1
  212. package/dist/standalone/{chunk-M3PFFLSD.js → chunk-UBVWMMQG.js} +1 -1
  213. package/dist/standalone/{chunk-CYX3OHJ3.js → chunk-UDCVU3Z5.js} +1 -1
  214. package/dist/standalone/{chunk-BNNRPK47.js → chunk-UKL4FSKP.js} +1 -1
  215. package/dist/standalone/{chunk-PZ4QDWTI.js → chunk-ULIQFBZU.js} +1 -1
  216. package/dist/standalone/{chunk-XVJIEJ5R.js → chunk-USC5APTS.js} +1 -1
  217. package/dist/standalone/{chunk-QO645HJU.js → chunk-UWDFH35E.js} +1 -1
  218. package/dist/standalone/{chunk-YN4VXWMW.js → chunk-VPPKG2IW.js} +1 -1
  219. package/dist/standalone/{chunk-NIX2QSSN.js → chunk-VVOVVU53.js} +1 -1
  220. package/dist/standalone/{chunk-BSACLUQK.js → chunk-WLGZOFKE.js} +2 -2
  221. package/dist/standalone/{chunk-CN2AINNY.js → chunk-WQYWA7U6.js} +1 -1
  222. package/dist/standalone/{chunk-ZJK2XCP3.js → chunk-WR675JUF.js} +1 -1
  223. package/dist/standalone/{chunk-IYWVSMAY.js → chunk-WUWBZPUK.js} +1 -1
  224. package/dist/standalone/{chunk-K76OQSTQ.js → chunk-X43AA6RX.js} +1 -1
  225. package/dist/standalone/{chunk-EGSG64TS.js → chunk-XSLMHPP2.js} +1 -1
  226. package/dist/standalone/{chunk-5JLIP2HH.js → chunk-XZMOZFE6.js} +1 -1
  227. package/dist/standalone/{chunk-6ZPTNC34.js → chunk-Y4Q25F6X.js} +1 -1
  228. package/dist/standalone/{chunk-INQICZYC.js → chunk-Y6CXU7T4.js} +1 -1
  229. package/dist/standalone/{chunk-VR3UJA7B.js → chunk-YEBHHIAY.js} +1 -1
  230. package/dist/standalone/{chunk-MSXT3KG5.js → chunk-YFLOZILV.js} +1 -1
  231. package/dist/standalone/{chunk-MIGH67EO.js → chunk-YFPU55K4.js} +1 -1
  232. package/dist/standalone/{chunk-2I2F6IEF.js → chunk-ZE2Q22OK.js} +1 -1
  233. package/dist/standalone/studio.js +1 -1
  234. package/package.json +11 -9
  235. package/dist/index.js +0 -1
  236. package/dist/mount.js +0 -1
  237. package/dist/packem_chunks/AdvisorHealthPanel.js +0 -1
  238. package/dist/packem_chunks/ApiTab.js +0 -1
  239. package/dist/packem_chunks/AuditPanel.js +0 -1
  240. package/dist/packem_chunks/DeploymentHealthPanel.js +0 -1
  241. package/dist/packem_chunks/FunctionRunner.js +0 -1
  242. package/dist/packem_chunks/FunctionStatsPanel.js +0 -1
  243. package/dist/packem_chunks/HealthPanel.js +0 -1
  244. package/dist/packem_chunks/InsightsPanel.js +0 -1
  245. package/dist/packem_chunks/LogsPanel.js +0 -1
  246. package/dist/packem_chunks/MailPanel.js +0 -2
  247. package/dist/packem_chunks/MetricsPanel.js +0 -1
  248. package/dist/packem_chunks/NotificationsPanel.js +0 -1
  249. package/dist/packem_chunks/PitrPanel.js +0 -1
  250. package/dist/packem_chunks/SchemaViewer.js +0 -1
  251. package/dist/packem_chunks/SecurityAdvisorPanel.js +0 -1
  252. package/dist/packem_chunks/SettingsPanel.js +0 -1
  253. package/dist/packem_chunks/TableEditor.js +0 -1
  254. package/dist/packem_chunks/agents-panel.js +0 -1
  255. package/dist/packem_chunks/analytics-panel.js +0 -1
  256. package/dist/packem_chunks/auth-audit-panel.js +0 -1
  257. package/dist/packem_chunks/auth-config-panel.js +0 -1
  258. package/dist/packem_chunks/auth-sessions-panel.js +0 -1
  259. package/dist/packem_chunks/containers-panel.js +0 -1
  260. package/dist/packem_chunks/dashboards-panel.js +0 -1
  261. package/dist/packem_chunks/evals-panel.js +0 -1
  262. package/dist/packem_chunks/fanout-panel.js +0 -1
  263. package/dist/packem_chunks/flags-panel.js +0 -1
  264. package/dist/packem_chunks/issues-panel.js +0 -1
  265. package/dist/packem_chunks/kv-browser.js +0 -1
  266. package/dist/packem_chunks/migrations-route.js +0 -1
  267. package/dist/packem_chunks/organizations-panel.js +0 -1
  268. package/dist/packem_chunks/payments-panel.js +0 -1
  269. package/dist/packem_chunks/permissions-panel.js +0 -1
  270. package/dist/packem_chunks/queues-panel.js +0 -1
  271. package/dist/packem_chunks/reactors-panel.js +0 -1
  272. package/dist/packem_chunks/rls-panel.js +0 -1
  273. package/dist/packem_chunks/schedule-panel.js +0 -1
  274. package/dist/packem_chunks/sparkline.js +0 -1
  275. package/dist/packem_chunks/storage-rules-panel.js +0 -1
  276. package/dist/packem_chunks/subscriptions-panel.js +0 -1
  277. package/dist/packem_chunks/sync-client-panel.js +0 -1
  278. package/dist/packem_chunks/traces-panel.js +0 -1
  279. package/dist/packem_chunks/users-panel.js +0 -1
  280. package/dist/packem_chunks/vector-browser.js +0 -1
  281. package/dist/packem_chunks/workflows-panel.js +0 -1
  282. package/dist/packem_shared/ApiReferencePanel-uGgGOBYj.js +0 -1
  283. package/dist/packem_shared/CommandPalette-HqiXrWIm.js +0 -1
  284. package/dist/packem_shared/ConfirmButton-Cj2SOapE.js +0 -1
  285. package/dist/packem_shared/ConnectionBadge-Bh16X9-u.js +0 -1
  286. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-1Lrg55IV.js +0 -1
  287. package/dist/packem_shared/GlobalDataBrowser-LFznuyGe.js +0 -1
  288. package/dist/packem_shared/HomePanel-DmB0EKjl.js +0 -1
  289. package/dist/packem_shared/MigrationsPanel-BDNt136v.js +0 -1
  290. package/dist/packem_shared/OpenRpcReferencePanel-DgrpASYD.js +0 -1
  291. package/dist/packem_shared/ScheduledJobs-CiO3eXgI.js +0 -1
  292. package/dist/packem_shared/ShardInput-CdawpUiS.js +0 -1
  293. package/dist/packem_shared/Studio-CkNE_tEy.js +0 -1
  294. package/dist/packem_shared/StudioApp-BZP_0E2n.js +0 -1
  295. package/dist/packem_shared/StudioI18nProvider-Bl547evf.js +0 -1
  296. package/dist/packem_shared/advisor-view-C1KFTXSH.js +0 -1
  297. package/dist/packem_shared/alert-C2SEhYS9.js +0 -1
  298. package/dist/packem_shared/badge-cAk9Di1Q.js +0 -1
  299. package/dist/packem_shared/button-BOPLD1un.js +0 -1
  300. package/dist/packem_shared/card-BGlQzQY-.js +0 -1
  301. package/dist/packem_shared/checkbox-C5w53W-E.js +0 -1
  302. package/dist/packem_shared/data-grid-BFTQnkXq.js +0 -1
  303. package/dist/packem_shared/dropdown-menu-U7Tjg1Nb.js +0 -2
  304. package/dist/packem_shared/empty-state-B939z6K2.js +0 -1
  305. package/dist/packem_shared/error-alert-TYdKetJd.js +0 -1
  306. package/dist/packem_shared/home-panel-DHOa3sxt.js +0 -3
  307. package/dist/packem_shared/input-CY5W3wzv.js +0 -1
  308. package/dist/packem_shared/label-BOUo-DP0.js +0 -1
  309. package/dist/packem_shared/live-status-Bf7rR8o8.js +0 -1
  310. package/dist/packem_shared/log-line-UnE93Ovi.js +0 -1
  311. package/dist/packem_shared/modal-shell-wGW4CKEW.js +0 -1
  312. package/dist/packem_shared/recording-client-CKn4-vUx.js +0 -1
  313. package/dist/packem_shared/schema-diagram-DOaIh1y6.js +0 -2
  314. package/dist/packem_shared/scroll-area-DSJftwu_.js +0 -2
  315. package/dist/packem_shared/select-BPISLTcv.js +0 -2
  316. package/dist/packem_shared/shard-history-DU5b3QDI.js +0 -1
  317. package/dist/packem_shared/shortcuts-lH4Vaqjc.js +0 -1
  318. package/dist/packem_shared/skeleton-DFBBaJU6.js +0 -1
  319. package/dist/packem_shared/sparkline-CYbJzfA1.js +0 -1
  320. package/dist/packem_shared/sql-result-table-CqlZo2QN.js +0 -1
  321. package/dist/packem_shared/stat-card-B9uIvAHg.js +0 -1
  322. package/dist/packem_shared/studio-CXai1O2K.js +0 -2
  323. package/dist/packem_shared/table-BMsuYFhk.js +0 -2
  324. package/dist/packem_shared/table-list-sidebar-BWq_-gtu.js +0 -1
  325. package/dist/packem_shared/textarea-DpO3i-Qo.js +0 -1
  326. package/dist/packem_shared/trace-handoff-z9sy89Ci.js +0 -1
  327. package/dist/packem_shared/use-admin-query-P0RJrjsD.js +0 -1
  328. package/dist/packem_shared/use-async-submit-DdLd0MdK.js +0 -1
  329. package/dist/packem_shared/use-auth-config-z3KRWAqD.js +0 -1
  330. package/dist/packem_shared/use-open-trace-4mqqFWrn.js +0 -1
  331. package/dist/packem_shared/use-sql-assistant-D1K2LqpO.js +0 -1
  332. package/dist/standalone/chunk-35O3VETX.js +0 -1
  333. package/dist/standalone/chunk-57VX76PR.js +0 -1
  334. package/dist/standalone/chunk-76YLMHR3.js +0 -1
  335. package/dist/standalone/chunk-N5OS5NUG.js +0 -1
  336. package/dist/standalone/chunk-O5MAFDY2.js +0 -1
  337. package/dist/standalone/chunk-TNKECJW4.js +0 -1
  338. /package/dist/packem_shared/{ADMIN_FUNCTIONS-B6z7VLYt.js → ADMIN_FUNCTIONS-B6z7VLYt.mjs} +0 -0
  339. /package/dist/packem_shared/{DEFAULT_AUTO_REFRESH_MS-DuULO4XM.js → DEFAULT_AUTO_REFRESH_MS-DuULO4XM.mjs} +0 -0
  340. /package/dist/packem_shared/{DEFAULT_LOCALE-A1Yg5ORA.js → DEFAULT_LOCALE-A1Yg5ORA.mjs} +0 -0
  341. /package/dist/packem_shared/{DataFilters-3nbW0uax.js → DataFilters-3nbW0uax.mjs} +0 -0
  342. /package/dist/packem_shared/{ErrorBoundary-BWNF98VF.js → ErrorBoundary-BWNF98VF.mjs} +0 -0
  343. /package/dist/packem_shared/{STUDIO_ROOT_CLASS-C6MccdVk.js → STUDIO_ROOT_CLASS-C6MccdVk.mjs} +0 -0
  344. /package/dist/packem_shared/{aggregateMetrics-A-Y7OH6R.js → aggregateMetrics-A-Y7OH6R.mjs} +0 -0
  345. /package/dist/packem_shared/{browser-storage-BH1MxLZs.js → browser-storage-BH1MxLZs.mjs} +0 -0
  346. /package/dist/packem_shared/{cf-links-CBJ5SywP.js → cf-links-CBJ5SywP.mjs} +0 -0
  347. /package/dist/packem_shared/{control-button-BOZ5K-FC.js → control-button-BOZ5K-FC.mjs} +0 -0
  348. /package/dist/packem_shared/{data-view-params-qoSTqjAj.js → data-view-params-qoSTqjAj.mjs} +0 -0
  349. /package/dist/packem_shared/{internal-CwaF9YNk.js → internal-CwaF9YNk.mjs} +0 -0
  350. /package/dist/packem_shared/{log-fields-SBxKyBug.js → log-fields-SBxKyBug.mjs} +0 -0
  351. /package/dist/packem_shared/{operation-console-provider-DoloEvon.js → operation-console-provider-DoloEvon.mjs} +0 -0
  352. /package/dist/packem_shared/{quote-identifier-CGiYFBvY.js → quote-identifier-CGiYFBvY.mjs} +0 -0
  353. /package/dist/packem_shared/{storage-tier-C2mKwYRj.js → storage-tier-C2mKwYRj.mjs} +0 -0
  354. /package/dist/packem_shared/{use-shard-key-BsP3o5wT.js → use-shard-key-BsP3o5wT.mjs} +0 -0
  355. /package/dist/packem_shared/{useDebounced-DVeQ5-oW.js → useDebounced-DVeQ5-oW.mjs} +0 -0
  356. /package/dist/packem_shared/{utils-bhneXptQ.js → utils-bhneXptQ.mjs} +0 -0
  357. /package/dist/packem_shared/{virtual-rect-D_j7aLxX.js → virtual-rect-D_j7aLxX.mjs} +0 -0
  358. /package/dist/packem_shared/{wire-codec-Dl3VeNrd.js → wire-codec-Dl3VeNrd.mjs} +0 -0
  359. /package/dist/standalone/{chunk-DZGOHOOE.js → chunk-CXNZVJ3S.js} +0 -0
  360. /package/dist/standalone/{chunk-W2JBKQNU.js → chunk-UYEZR3BI.js} +0 -0
  361. /package/dist/standalone/{chunk-R5ZTCHCE.js → chunk-YKXDMIHQ.js} +0 -0
@@ -0,0 +1,1515 @@
1
+ import { F as FunctionDescriptor } from "./packem_shared/app.d-D1bPR8FO.mjs";
2
+ export { type a as FunctionKind, type R as RunStatus, b as ScheduledJobs, type c as ScheduledJobsProps, d as Studio, e as StudioApp, type S as StudioAppProps, type f as StudioProps } from "./packem_shared/app.d-D1bPR8FO.mjs";
3
+ import { ReactElement, ReactNode, ErrorInfo, Component, ChangeEvent } from 'react';
4
+ import { CapturedMail } from '@lunora/mail';
5
+ export type {
6
+ /**
7
+ * One captured outbound email as served by `__lunora_admin__:getCapturedMail`.
8
+ * Persisted by `@lunora/mail`'s dev capture transport into the root-shard
9
+ * mailbox and rendered by the studio Mail inbox. `html`/`text` are the rendered
10
+ * bodies; `to`/`cc`/`bcc` are the original recipient lists; `capturedAt` is
11
+ * epoch-ms.
12
+ *
13
+ * Re-exported verbatim from `@lunora/mail`, the canonical owner of the
14
+ * captured-mail wire type (also imported at the top of this file for local use
15
+ * in {@link CapturedMailResult}). This is NOT one of the hand-mirrored
16
+ * `@lunora/do` shapes below — it shares the real source of truth, so a field
17
+ * added in `@lunora/mail` flows here automatically.
18
+ */
19
+ CapturedMail } from '@lunora/mail';
20
+ import { HealthBody } from '@lunora/runtime';
21
+ import { Messages, I18n } from '@lingui/core';
22
+ export type { LunoraClient, ScheduleRecord, StorageObject } from '@lunora/client';
23
+ /**
24
+ * The studio's navigation taxonomy: which pages exist and which domain each one
25
+ * belongs to.
26
+ *
27
+ * Its own module so the label maps (`nav-labels.ts`) can name these types without
28
+ * importing `studio.tsx`, which pulls in every lazy panel behind it.
29
+ */
30
+ /** Identifier for each built-in studio tab. */
31
+ type StudioTab = "agents" | "analytics" | "api" | "audit" | "authAudit" | "authConfig" | "authSessions" | "containers" | "dashboards" | "data" | "deploymentHealth" | "drains" | "export" | "fanout" | "files" | "flags" | "functions" | "health" | "home" | "insights" | "issues" | "kv" | "logs" | "mail" | "metrics" | "migrations" | "notifications" | "organizations" | "payments" | "permissions" | "pitr" | "queues" | "reactors" | "realtime" | "rls" | "schedule" | "schema" | "advisorHealth" | "evals" | "security" | "settings" | "sql" | "storageRules" | "traces" | "users" | "vectors" | "workflows";
32
+ /**
33
+ * One palette entry: a navigable destination, or an action to run.
34
+ *
35
+ * `run` exists because not everything the palette should reach is a page. The
36
+ * operation console has no route and no button — the keyboard chord was the only
37
+ * way in, which makes it undiscoverable, and unreachable at all once an operator
38
+ * rebinds the key and forgets what to.
39
+ */
40
+ interface CommandItem {
41
+ /** Localised domain label, shown as a muted suffix to disambiguate. */
42
+ readonly group: string;
43
+ /** Localised sub-page label, the primary search target. */
44
+ readonly label: string;
45
+ /** Run on select. Mutually exclusive with `to`. */
46
+ readonly run?: () => void;
47
+ /** Router path to navigate to on select (e.g. `/logs`). Mutually exclusive with `run`. */
48
+ readonly to?: string;
49
+ }
50
+ interface CommandPaletteProps {
51
+ /** Every navigable destination, in rail order. */
52
+ readonly items: ReadonlyArray<CommandItem>;
53
+ }
54
+ /** Open the command palette from anywhere (e.g. the top-bar Search button). */
55
+ declare const openCommandPalette: () => void;
56
+ /**
57
+ * Command palette (⌘K / Ctrl-K) — Supabase-style global search. Rendered inside
58
+ * the studio shell so its selection can drive the router's `useNavigate`. Opens
59
+ * on the keyboard shortcut or the {@link OPEN_EVENT} the top-bar Search button
60
+ * dispatches, filters the navigable destinations by a case-insensitive substring
61
+ * over their label and domain, and navigates to the chosen one. Built on the
62
+ * studio's Base UI dialog primitive — no `cmdk`/extra dependency — with a small
63
+ * arrow-key + Enter affordance over the filtered list.
64
+ */
65
+ declare const CommandPalette: ({ items }: CommandPaletteProps) => ReactElement;
66
+ interface ConfirmButtonProps {
67
+ /** Label for the initial trigger (e.g. `Delete`). */
68
+ readonly children: string;
69
+ /** Label for the confirm step; defaults to a localised `Confirm`. */
70
+ readonly confirmLabel?: string;
71
+ /** Disable the trigger (e.g. while a write is in flight). */
72
+ readonly disabled?: boolean;
73
+ /** Action run only after the operator confirms. */
74
+ readonly onConfirm: () => void;
75
+ /** `data-testid` for the initial trigger; the confirm/cancel steps derive `${testId}-confirm` / `${testId}-cancel`. */
76
+ readonly testId: string;
77
+ }
78
+ /**
79
+ * A destructive-action button that requires a second click to fire. The first
80
+ * click swaps the trigger for an inline `Confirm` / `Cancel` pair rather than a
81
+ * blocking `window.confirm`, so the guard is testable and non-modal. The
82
+ * trigger keeps its `testId` (so existing tests that click it still reach the
83
+ * first step); the actual action only runs on the `${testId}-confirm` click.
84
+ */
85
+ declare const ConfirmButton: ({ children, confirmLabel, disabled, onConfirm, testId }: ConfirmButtonProps) => ReactElement;
86
+ /**
87
+ * Live-socket status indicator. Reflects the client's aggregate WebSocket health
88
+ * so an operator can tell a healthy live channel from a silently-dropped socket
89
+ * (a panel showing "Live: on" while the socket is down would otherwise look
90
+ * identical to one that's simply idle).
91
+ */
92
+ declare const ConnectionBadge: () => ReactElement;
93
+ interface ErrorBoundaryProps {
94
+ readonly children: ReactNode;
95
+ /**
96
+ * Localised fallback heading. When omitted, falls back to `${label} failed`
97
+ * (or `Something went wrong` with no label). A class component can't use the
98
+ * `useT` hook, so localised text is passed in by its parents.
99
+ */
100
+ readonly fallbackTitle?: string;
101
+ /** Optional label naming the boundary's region, shown in the fallback. */
102
+ readonly label?: string;
103
+ /** Localised label for the retry button; defaults to `Try again`. */
104
+ readonly retryLabel?: string;
105
+ }
106
+ interface ErrorBoundaryState {
107
+ readonly error: Error | null;
108
+ }
109
+ /**
110
+ * Catches render/lifecycle errors in a panel so one throwing component doesn't
111
+ * blank the whole studio shell. Shows the error message with a "Try again"
112
+ * button that clears the boundary and re-renders its children.
113
+ */
114
+ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
115
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
116
+ override state: ErrorBoundaryState;
117
+ override componentDidCatch(error: Error, info: ErrorInfo): void;
118
+ readonly reset: () => void;
119
+ override render(): ReactNode;
120
+ }
121
+ interface ShardInputProps {
122
+ /** DOM `id` for the input, so an external label's `htmlFor` can target it. Optional. */
123
+ readonly id?: string;
124
+ readonly onChange: (value: string) => void;
125
+ /** `data-testid` for the input (panels keep their existing id, e.g. `mt-shard-input`). */
126
+ readonly testId: string;
127
+ readonly value: string;
128
+ }
129
+ /**
130
+ * Shard-key text field shared by every shard-scoped panel. Backed by a
131
+ * `<datalist>` of recently-used shard keys (see {@link loadRecentShards}) so an
132
+ * operator can pick a shard they've visited instead of retyping it — the closest
133
+ * to a shard picker possible without server-side shard enumeration, which
134
+ * Durable Objects don't support. Panels remain responsible for recording a shard
135
+ * as used (via `recordShard`) when they actually query it.
136
+ */
137
+ declare const ShardInput: ({ id, onChange, testId, value }: ShardInputProps) => ReactElement;
138
+ interface AdvisorHealthPanelProps {
139
+ /** Scopes the `data-testid`s. */
140
+ readonly testId?: string;
141
+ }
142
+ /**
143
+ * The Advisors **Health** tab: one score for the deployment, the coverage split, and
144
+ * every procedure ranked worst-first.
145
+ *
146
+ * Scoring runs client-side over the two admin reads rather than being baked into
147
+ * the worker: `scoreAdvisor` is a pure function, so the panel reuses the exact
148
+ * arithmetic the CLI gate uses — one implementation, no chance of the dashboard
149
+ * and CI disagreeing about the same deployment.
150
+ *
151
+ * Both reads are needed. The advisories are the numerator and the procedures the
152
+ * denominator; without the latter there is no way to tell one failing handler
153
+ * out of two from one out of two hundred.
154
+ */
155
+ declare const AdvisorHealthPanel: ({ testId }: AdvisorHealthPanelProps) => ReactElement;
156
+ declare const ADMIN_FUNCTION_PREFIX = "__lunora_admin__:";
157
+ /**
158
+ * Fully-qualified reserved paths the studio invokes via the client. The
159
+ * `__lunora_admin__:` prefix is spelled out inline rather than interpolated so
160
+ * the values stay emittable under `--isolatedDeclarations`. Every path is
161
+ * intercepted by `ShardDO` before user dispatch and gated by the server's
162
+ * `LUNORA_ADMIN_TOKEN`.
163
+ */
164
+ declare const ADMIN_FUNCTIONS: {
165
+ readonly aiAvailable: "__lunora_admin__:aiAvailable";
166
+ readonly aiChartConfig: "__lunora_admin__:aiChartConfig";
167
+ readonly aiGenerateSql: "__lunora_admin__:aiGenerateSql";
168
+ readonly aiTableFilter: "__lunora_admin__:aiTableFilter";
169
+ readonly assignIssue: "__lunora_admin__:assignIssue";
170
+ readonly backRelationCounts: "__lunora_admin__:backRelationCounts";
171
+ readonly clearCapturedMail: "__lunora_admin__:clearCapturedMail";
172
+ readonly clearQueueMessages: "__lunora_admin__:clearQueueMessages";
173
+ readonly clearTable: "__lunora_admin__:clearTable";
174
+ readonly createWorkflowInstance: "__lunora_admin__:createWorkflowInstance";
175
+ readonly deleteRows: "__lunora_admin__:deleteRows";
176
+ readonly describeTable: "__lunora_admin__:describeTable";
177
+ readonly describeTables: "__lunora_admin__:describeTables";
178
+ readonly explainIssue: "__lunora_admin__:explainIssue";
179
+ readonly exportShard: "__lunora_admin__:exportShard";
180
+ readonly facetColumn: "__lunora_admin__:facetColumn";
181
+ readonly getAdvisories: "__lunora_admin__:getAdvisories";
182
+ readonly getAdvisorProcedures: "__lunora_admin__:getAdvisorProcedures";
183
+ readonly getAuditLog: "__lunora_admin__:getAuditLog";
184
+ readonly getAuthAuditLog: "__lunora_admin__:getAuthAuditLog";
185
+ readonly getAuthMetrics: "__lunora_admin__:getAuthMetrics";
186
+ readonly getCapturedMail: "__lunora_admin__:getCapturedMail";
187
+ readonly getFanoutMetrics: "__lunora_admin__:getFanoutMetrics";
188
+ readonly getFunctionStats: "__lunora_admin__:getFunctionStats";
189
+ readonly getIssues: "__lunora_admin__:getIssues";
190
+ readonly lintSql: "__lunora_admin__:lintSql";
191
+ readonly listFlags: "__lunora_admin__:listFlags";
192
+ readonly listReactors: "__lunora_admin__:listReactors";
193
+ readonly listPushSubscriptions: "__lunora_admin__:listPushSubscriptions";
194
+ readonly listQueues: "__lunora_admin__:listQueues";
195
+ readonly listSubscriptions: "__lunora_admin__:listSubscriptions";
196
+ readonly listTableIndexes: "__lunora_admin__:listTableIndexes";
197
+ readonly listTablesIndexes: "__lunora_admin__:listTablesIndexes";
198
+ readonly listWorkflows: "__lunora_admin__:listWorkflows";
199
+ readonly getLogs: "__lunora_admin__:getLogs";
200
+ readonly getMetricHistory: "__lunora_admin__:getMetricHistory";
201
+ readonly getMetricSeries: "__lunora_admin__:getMetricSeries";
202
+ readonly getMetrics: "__lunora_admin__:getMetrics";
203
+ readonly getPitrBookmark: "__lunora_admin__:getPitrBookmark";
204
+ readonly getQueryInsights: "__lunora_admin__:getQueryInsights";
205
+ readonly getQueueMessages: "__lunora_admin__:getQueueMessages";
206
+ readonly getRequestLog: "__lunora_admin__:getRequestLog";
207
+ readonly getSecurityAudit: "__lunora_admin__:getSecurityAudit";
208
+ readonly getSettings: "__lunora_admin__:getSettings";
209
+ readonly getTraces: "__lunora_admin__:getTraces";
210
+ readonly getWorkflowInstanceStatus: "__lunora_admin__:getWorkflowInstanceStatus";
211
+ readonly ignoreIssue: "__lunora_admin__:ignoreIssue";
212
+ readonly importShard: "__lunora_admin__:importShard";
213
+ readonly listTables: "__lunora_admin__:listTables";
214
+ readonly maskPolicies: "__lunora_admin__:maskPolicies";
215
+ readonly migrationStatus: "__lunora_admin__:migrationStatus";
216
+ readonly pitrRestore: "__lunora_admin__:pitrRestore";
217
+ readonly readTablePage: "__lunora_admin__:readTablePage";
218
+ readonly replayQueueMessage: "__lunora_admin__:replayQueueMessage";
219
+ readonly resolveIssue: "__lunora_admin__:resolveIssue";
220
+ readonly rlsPolicies: "__lunora_admin__:rlsPolicies";
221
+ readonly schemaHistory: "__lunora_admin__:schemaHistory";
222
+ readonly schemaVersion: "__lunora_admin__:schemaVersion";
223
+ readonly runAs: "__lunora_admin__:runAs";
224
+ readonly runMigration: "__lunora_admin__:runMigration";
225
+ readonly runSql: "__lunora_admin__:runSql";
226
+ readonly sendQueueMessage: "__lunora_admin__:sendQueueMessage";
227
+ readonly sendTestMail: "__lunora_admin__:sendTestMail";
228
+ readonly setIssueSeverity: "__lunora_admin__:setIssueSeverity";
229
+ readonly storageOrphans: "__lunora_admin__:storageOrphans";
230
+ readonly storageReferences: "__lunora_admin__:storageReferences";
231
+ readonly storageRules: "__lunora_admin__:storageRules";
232
+ readonly studioFeatures: "__lunora_admin__:studioFeatures";
233
+ readonly writeRow: "__lunora_admin__:writeRow";
234
+ };
235
+ /** Comparison a {@link FilterClause} applies, mirroring `@lunora/do`'s `FilterOperator`. `contains` is a substring (LIKE). */
236
+ type FilterOperator = "contains" | "eq" | "gt" | "gte" | "lt" | "lte" | "ne";
237
+ /**
238
+ * One structured column filter passed to `readTablePage`, mirroring `@lunora/do`'s
239
+ * `FilterClause`. AND-combined with the substring search and the other clauses.
240
+ * `value` is sent as-is and bound server-side, so it never injects SQL.
241
+ */
242
+ interface FilterClause {
243
+ column: string;
244
+ operator: FilterOperator;
245
+ value?: unknown;
246
+ }
247
+ /** Which single-row mutation a {@link WriteRowArgs} performs. */
248
+ type WriteRowOp = "delete" | "insert" | "patch" | "replace";
249
+ /** Arguments for the `__lunora_admin__:writeRow` admin op. */
250
+ interface WriteRowArgs {
251
+ /** The row's fields. Required for insert/patch/replace; omitted for delete. */
252
+ doc?: Record<string, unknown>;
253
+ /** Primary key of the target row. Required for patch/replace/delete. */
254
+ id?: string;
255
+ op: WriteRowOp;
256
+ table: string;
257
+ }
258
+ /** Result of a {@link WriteRowArgs} op — the affected row's primary key. */
259
+ interface WriteRowResult {
260
+ id: null | string;
261
+ op: WriteRowOp;
262
+ }
263
+ /** Result of `__lunora_admin__:getCapturedMail` — the dev mail-catcher inbox, newest first. */
264
+ interface CapturedMailResult {
265
+ entries: CapturedMail[];
266
+ }
267
+ /** Reactive-cache hit/miss/eviction stats, present when a cache is configured. */
268
+ interface CacheStats {
269
+ bytes: number;
270
+ entries: number;
271
+ evictions: number;
272
+ hits: number;
273
+ misses: number;
274
+ }
275
+ /** Health snapshot returned by `__lunora_admin__:getMetrics` for one shard. */
276
+ interface ShardMetrics {
277
+ cache: CacheStats | null;
278
+ databaseSize: null | number;
279
+ errors: number;
280
+ requests: number;
281
+ shard: string;
282
+ sinceMs: number;
283
+ uptimeMs: number;
284
+ }
285
+ /**
286
+ * One full-scan attribution entry on a {@link FunctionCallStat}, mirroring
287
+ * `@lunora/do`'s `FunctionScanAttribution`: how many times the function
288
+ * full-scanned `table`. The causal evidence behind the "missing index" insight.
289
+ */
290
+ interface FunctionScanAttribution {
291
+ scans: number;
292
+ table: string;
293
+ }
294
+ /**
295
+ * Per-function execution counters returned by `__lunora_admin__:getFunctionStats`
296
+ * for one shard. Mirrors `@lunora/do`'s `FunctionCallStat`. Counters are
297
+ * per-DO-instance and reset on hibernation/restart — a "since this instance
298
+ * woke" readout. Durations are handler wall-clock milliseconds.
299
+ *
300
+ * `scans` / `scannedTables` carry the causal full-scan attribution (PLAN3 1.2).
301
+ * They're additive — a worker predating the feature reports `scans: 0` and
302
+ * `scannedTables: []`, so the fields are optional on the wire and the consumer
303
+ * defaults them. `conflicts` (OCC write-contention count, a subset of `errors`)
304
+ * is likewise additive and optional for the same back-compat reason.
305
+ */
306
+ interface FunctionCallStat {
307
+ calls: number;
308
+ /** OCC write-conflict count — a subset of `errors`; absent on a pre-conflict-tracking worker. */
309
+ conflicts?: number;
310
+ errors: number;
311
+ lastCalledAt: number;
312
+ lastErrorAt: null | number;
313
+ lastErrorMessage: null | string;
314
+ maxDurationMs: number;
315
+ path: string;
316
+ /** Per-table full-scan attribution, busiest scan first; absent on a pre-1.2 worker. */
317
+ scannedTables?: FunctionScanAttribution[];
318
+ /** Total full-table scans across every dispatch; absent on a pre-1.2 worker. */
319
+ scans?: number;
320
+ totalDurationMs: number;
321
+ }
322
+ /** Payload of a `__lunora_admin__:getFunctionStats` call, mirroring `@lunora/do`'s `FunctionStatsResult`. */
323
+ interface FunctionStatsResult {
324
+ functions: FunctionCallStat[];
325
+ sinceMs: number;
326
+ }
327
+ /**
328
+ * One declared index on a table, mirroring `@lunora/do`'s `TableIndexInfo`.
329
+ * `type` is the index kind; `fields` the indexed columns (sort fields for rank,
330
+ * text + filter fields for search, source field for vector); `unique` is set
331
+ * only for unique secondary indexes.
332
+ */
333
+ interface TableIndexInfo {
334
+ fields: string[];
335
+ name: string;
336
+ type: "index" | "rank" | "search" | "vector";
337
+ unique?: boolean;
338
+ }
339
+ /** Payload of a `__lunora_admin__:listTableIndexes` call, mirroring `@lunora/do`'s `TableIndexesResult`. */
340
+ interface TableIndexesResult {
341
+ indexes: TableIndexInfo[];
342
+ }
343
+ /**
344
+ * Severity of a buffered log entry, mirroring `@lunora/do`'s `LogLevel` — the
345
+ * full seven-tier `ctx.log` ramp (`trace`→`fatal`). A worker predating the
346
+ * un-folded buffer only ever sends the four console tiers, which are a subset.
347
+ */
348
+ type LogLevel = "debug" | "error" | "fatal" | "info" | "log" | "trace" | "warn";
349
+ /**
350
+ * One buffered log line returned by `__lunora_admin__:getLogs`. `functionPath`
351
+ * is the RPC that produced it (when known); `timestamp` is epoch-ms.
352
+ * `instance`/`exitCode` are populated for container lifecycle entries
353
+ * (`instance` = the per-instance Durable Object id, `exitCode` = the process
354
+ * exit code parsed out of a `stop` event). Mirrors `@lunora/do`'s `LogEntry`.
355
+ */
356
+ interface LogEntry {
357
+ exitCode?: number;
358
+ /** Structured fields from a `ctx.log.<level>(message, fields)` / `ctx.log.with(fields)` call, when present. */
359
+ fields?: Record<string, unknown>;
360
+ functionPath?: string;
361
+ instance?: string;
362
+ level: LogLevel;
363
+ message: string;
364
+ timestamp: number;
365
+ /** Trace the line was emitted under; absent outside a dispatch (container lifecycle, hibernation-path errors) and on any worker predating the field. The key the Logs panel's Trace link and the Traces panel's correlated logs both join on. */
366
+ traceId?: string;
367
+ }
368
+ /** Payload of a `__lunora_admin__:getLogs` call: the buffered entries, newest first. */
369
+ interface LogsResult {
370
+ entries: LogEntry[];
371
+ }
372
+ /**
373
+ * One recorded admin operation returned by `__lunora_admin__:getAuditLog`,
374
+ * mirroring `@lunora/do`'s `AuditEntry`. Unlike the in-memory logs, the audit
375
+ * log is durable and survives hibernation/restart. `seq` is a monotonic
376
+ * per-shard cursor; `op` the short op name (`writeRow`, `runMigration`,
377
+ * `importShard`, `applyCdc`); `table`/`id` are present when the op targets one;
378
+ * `detail` carries op-specific context (notably the acting `userId`).
379
+ */
380
+ interface AuditEntry {
381
+ detail?: Record<string, unknown>;
382
+ id?: string;
383
+ op: string;
384
+ seq: number;
385
+ table?: string;
386
+ ts: number;
387
+ }
388
+ /** Payload of a `__lunora_admin__:getAuditLog` call: the recorded entries, newest first. */
389
+ interface AuditLogResult {
390
+ entries: AuditEntry[];
391
+ }
392
+ /**
393
+ * How a deployment binding/var classifies, mirroring `@lunora/do`'s `SettingKind`.
394
+ * `var` is a plain Worker var, `secret` a sensitive string (always masked), and
395
+ * `binding` a non-string binding object (R2/KV/DO/D1/queue/service).
396
+ */
397
+ type SettingKind = "binding" | "secret" | "var";
398
+ /**
399
+ * One row of the read-only deployment-settings view, mirroring `@lunora/do`'s
400
+ * `SettingEntry`. `value` is a masked preview for `var`/`secret` strings (never
401
+ * the raw secret) and `null` for `binding` entries. The server masks every
402
+ * string value, so the studio only ever renders the masked text.
403
+ */
404
+ interface SettingEntry {
405
+ /** Coarse runtime class for `binding` entries (`r2`, `kv`, `durable-object`, …). */
406
+ bindingType?: string;
407
+ kind: SettingKind;
408
+ name: string;
409
+ value: null | string;
410
+ }
411
+ /**
412
+ * Best-effort deploy metadata, mirroring `@lunora/do`'s `DeployInfo`. Every
413
+ * field is optional: the server reads only what the Worker `env` exposes and
414
+ * omits the rest.
415
+ */
416
+ interface DeployInfo {
417
+ deploymentId?: string;
418
+ environment?: string;
419
+ versionTag?: string;
420
+ workerUrl?: string;
421
+ }
422
+ /** Payload of a `__lunora_admin__:getSettings` call, mirroring `@lunora/do`'s `SettingsResult`. */
423
+ interface SettingsResult {
424
+ deploy: DeployInfo;
425
+ settings: SettingEntry[];
426
+ }
427
+ /**
428
+ * Ordering/visual weight of a {@link SecurityFinding}, mirroring `@lunora/do`'s
429
+ * `SecurityFindingLevel`. Shares the studio's insight-severity vocabulary so the
430
+ * Security and Performance advisors render with one badge palette.
431
+ */
432
+ type SecurityFindingLevel = "error" | "info" | "warning";
433
+ /**
434
+ * Which deployment-level security heuristic fired, mirroring `@lunora/do`'s
435
+ * `SecurityFindingKind`. The studio maps each kind to a localized title,
436
+ * explanation, and remediation hint; the wire payload carries only the kind,
437
+ * level, and optional `detail`.
438
+ */
439
+ type SecurityFindingKind = "admin-token-weak" | "auth-secret-weak" | "cookies-insecure" | "cors-wildcard-credentials" | "csrf-disabled" | "dev-args-unredacted" | "security-headers-disabled" | "ws-gate-open";
440
+ /**
441
+ * One detected security issue from `__lunora_admin__:getSecurityAudit`, mirroring
442
+ * `@lunora/do`'s `SecurityFinding`. `detail` carries kind-specific context the
443
+ * studio interpolates into the localized copy (e.g. `{ length, min }` for a weak
444
+ * admin token); absent when the kind needs none.
445
+ */
446
+ interface SecurityFinding {
447
+ detail?: Record<string, unknown>;
448
+ kind: SecurityFindingKind;
449
+ level: SecurityFindingLevel;
450
+ }
451
+ /** Payload of a `__lunora_admin__:getSecurityAudit` call, mirroring `@lunora/do`'s `SecurityAuditResult`: every finding, worst-first. */
452
+ interface SecurityAuditResult {
453
+ findings: SecurityFinding[];
454
+ }
455
+ /** A user table plus its current row count. */
456
+ interface TableInfo {
457
+ name: string;
458
+ rowCount: number;
459
+ }
460
+ /** A window of rows from one table, plus the column list and total size. */
461
+ interface TablePage {
462
+ columns: string[];
463
+ /** Foreign-key columns (column → target table) for `v.id("target")` fields, so the UI can link those cells. */
464
+ refs?: Record<string, string>;
465
+ rows: Record<string, unknown>[];
466
+ /**
467
+ * Total rows matching the predicate. Absent when the read passed
468
+ * `skipCount: true` — the data browser sources the count from a separate,
469
+ * predicate-keyed read so paging never re-runs the COUNT.
470
+ */
471
+ total?: number;
472
+ }
473
+ /** Direction a data migration is run in. Mirrors `@lunora/do`. */
474
+ type MigrationDirection = "down" | "up";
475
+ /** Lifecycle of a data-migration run. Mirrors `@lunora/do`. */
476
+ type MigrationStatus = "completed" | "failed" | "in_progress";
477
+ /**
478
+ * One persisted migration run-state row, as returned by the
479
+ * `__lunora_admin__:migrationStatus` RPC (`{ migrations: MigrationStatusRow[] }`).
480
+ */
481
+ interface MigrationStatusRow {
482
+ changed: number;
483
+ cursor: null | string;
484
+ direction: MigrationDirection;
485
+ error: null | string;
486
+ id: string;
487
+ processed: number;
488
+ startedAt: null | number;
489
+ status: MigrationStatus;
490
+ updatedAt: null | number;
491
+ }
492
+ /** Result of a single `__lunora_admin__:runMigration` invocation against one shard. */
493
+ interface MigrationRunResult {
494
+ changed: number;
495
+ cursor: null | string;
496
+ direction: MigrationDirection;
497
+ dryRun: boolean;
498
+ id: string;
499
+ processed: number;
500
+ status: MigrationStatus;
501
+ }
502
+ /** Arguments accepted by the `__lunora_admin__:runMigration` RPC. */
503
+ interface RunMigrationArgs {
504
+ batchSize?: number;
505
+ direction?: MigrationDirection;
506
+ dryRun?: boolean;
507
+ id: string;
508
+ maxBatches?: number;
509
+ }
510
+ /** One NDJSON line: a row from `table`, shaped per its schema. */
511
+ interface ExportRow {
512
+ doc: Record<string, unknown>;
513
+ table: string;
514
+ }
515
+ /** A row that could not be inserted during an import. */
516
+ interface ImportError {
517
+ code: string;
518
+ line: number;
519
+ message: string;
520
+ table: string;
521
+ }
522
+ /** Result of a single `__lunora_admin__:importShard` invocation against one shard. */
523
+ interface ImportShardResult {
524
+ conflicts: number;
525
+ errors: ImportError[];
526
+ inserted: Record<string, number>;
527
+ }
528
+ /**
529
+ * One shard's request total from the worker's `POST /_lunora/admin/shard-traffic`
530
+ * endpoint, mirroring `@lunora/runtime`'s `ShardTrafficEntry`. `requests` is the
531
+ * shard's lifetime dispatch count (`0` for a shard that failed/timed out);
532
+ * `shardKey` is the DO id name (`""` for the root shard). The cross-shard feed
533
+ * the `hot_shard` runtime advisor consumes to compute skew.
534
+ */
535
+ interface ShardTrafficEntry {
536
+ requests: number;
537
+ shardKey: string;
538
+ }
539
+ /**
540
+ * Payload of a `POST /_lunora/admin/shard-traffic` call, mirroring the runtime
541
+ * coordinator's shard-traffic fan-out result: one `{ shardKey, requests }` entry
542
+ * per live shard plus the ok / failed counts. Fanned out on demand (not on the
543
+ * metrics hot path) so the panel can feed `hot_shard` the whole shard set's
544
+ * request volumes.
545
+ */
546
+ interface ShardTrafficResult {
547
+ failed: number;
548
+ ok: number;
549
+ shards: ShardTrafficEntry[];
550
+ }
551
+ /** Visual + ordering weight of a detected issue. */
552
+ type InsightSeverity = "error" | "info" | "warning";
553
+ /**
554
+ * Which heuristic fired. The panel maps each kind to a localized title/detail,
555
+ * so the detection stays free of presentation strings (and trivially testable).
556
+ *
557
+ * `missing-index` is the causal upgrade of `slow-function`: a slow function
558
+ * whose latency is explained by a full-table scan. When the scan attribution
559
+ * pins the cause, the insight names the scanned table(s) (`tables`) and deep-
560
+ * links to the Schema/Indexes tab to add the index, rather than leaving the
561
+ * slowness an unattributed symptom.
562
+ */
563
+ type InsightKind = "high-error-rate" | "high-evictions" | "high-write-contention" | "low-cache-hit-rate" | "missing-index" | "slow-function" | "storage-headroom";
564
+ /**
565
+ * One detected issue. `value` is the headline number whose meaning depends on
566
+ * `kind`: a 0–1 rate for cache-hit / error-rate, a millisecond figure for
567
+ * slow-function / missing-index, an entry count for evictions. `fn` is set only
568
+ * for per-function insights; `message` carries the last error for
569
+ * high-error-rate; `tables` carries the full-scanned tables (busiest first) for
570
+ * the causal `missing-index` kind. For `high-write-contention` it is the OCC
571
+ * conflict ratio (conflicts / calls). For `storage-headroom` it is the shard's
572
+ * SQLite size in bytes.
573
+ */
574
+ interface Insight {
575
+ fn?: string;
576
+ kind: InsightKind;
577
+ message?: string;
578
+ severity: InsightSeverity;
579
+ tables?: string[];
580
+ value: number;
581
+ }
582
+ /** Tunable cut-offs for {@link deriveInsights}. Exposed so a host (or a test) can tighten/loosen them. */
583
+ interface InsightThresholds {
584
+ /** Flag functions whose error ratio is at or above this (0–1). */
585
+ highErrorRate: number;
586
+ /** Flag functions whose OCC write-conflict ratio is at or above this (0–1). */
587
+ highWriteContention: number;
588
+ /** Flag a cache whose hit rate is below this (0–1). */
589
+ lowCacheHitRate: number;
590
+ /** Require this many cache samples (hits + misses) before judging hit rate, to avoid cold-start noise. */
591
+ minCacheSamples: number;
592
+ /** Require this many calls before judging a function's conflict ratio. */
593
+ minConflictCalls: number;
594
+ /** Require this many calls before judging a function's error ratio. */
595
+ minErrorCalls: number;
596
+ /** Flag functions whose slowest call is at or above this many milliseconds. */
597
+ slowFunctionMs: number;
598
+ /** Escalate the storage insight to `error` at or above this many bytes. */
599
+ storageCriticalBytes: number;
600
+ /** Flag a shard whose SQLite is at or above this many bytes. */
601
+ storageWarnBytes: number;
602
+ }
603
+ declare const DEFAULT_INSIGHT_THRESHOLDS: InsightThresholds;
604
+ /**
605
+ * Derive a prioritised list of issues from the two snapshots the studio
606
+ * already pulls — the `getMetrics` health snapshot and the `getFunctionStats`
607
+ * per-function table. Pure and side-effect-free: same inputs, same output, so
608
+ * the heuristics can be unit-tested without rendering.
609
+ *
610
+ * Heuristics: low-cache-hit-rate (cache below the threshold once enough samples
611
+ * exist — a cold cache isn't a problem); high-evictions (more evictions than
612
+ * hits, so the cache is too small or churning on invalidation); missing-index (a
613
+ * slow function whose latency is *explained* by a full-table scan — the causal
614
+ * upgrade of slow-function, naming the scanned table(s)); slow-function (a
615
+ * function whose slowest call crosses the threshold with no scan attribution to
616
+ * blame); high-error-rate (a function failing over a meaningful count);
617
+ * high-write-contention (a function whose OCC write conflicts make up a
618
+ * meaningful share of calls — a sharding candidate); storage-headroom (a shard
619
+ * whose SQLite is closing on the 10 GiB per-DO ceiling).
620
+ *
621
+ * A slow function with full-scan attribution emits `missing-index` (causal, with
622
+ * `tables`) instead of the bare `slow-function`, so the panel can link straight
623
+ * to the fix rather than restating the symptom.
624
+ *
625
+ * `storage-headroom` exists because the runtime's own signal is a one-shot
626
+ * `console.warn` inside the Durable Object — it fires once per DO instance, into
627
+ * a log nobody is tailing at 3am months before the wall. The size is already on
628
+ * the `getMetrics` snapshot the studio pulls, so surfacing it as a finding costs
629
+ * one comparison and puts the warning where someone will actually meet it.
630
+ */
631
+ declare const deriveInsights: (metrics: ShardMetrics | null, functions: FunctionCallStat[] | null, thresholds?: InsightThresholds) => Insight[];
632
+ interface InsightsPanelProps {
633
+ /** Shard key the snapshots target on first load. Defaults to the root shard. */
634
+ readonly initialShardKey?: string;
635
+ /**
636
+ * Fan the cross-shard traffic feed out for `table`, returning each shard's
637
+ * `{ shardKey, requests }` total — the input the `hot_shard` advisor lint
638
+ * needs. Defaults to `client.shardTraffic(table)` (the admin-gated
639
+ * `POST /_lunora/admin/shard-traffic` fan-out). Best-effort: a rejection
640
+ * leaves `hot_shard` dormant rather than blanking the panel. Injectable so
641
+ * tests can drive the skew without a worker.
642
+ */
643
+ readonly loadShardTraffic?: (table: string) => Promise<ShardTrafficResult>;
644
+ }
645
+ /**
646
+ * The Performance Advisor — a 1-to-1 of Supabase's Performance Advisor: severity
647
+ * tabs over a findings table (via {@link AdvisorView}). It pulls the `getMetrics`
648
+ * health snapshot and `getFunctionStats` per-function table for one shard, then
649
+ * maps the issues {@link deriveInsights} detects (low cache hit rate, high
650
+ * eviction, slow functions, missing indexes, error spikes, storage headroom)
651
+ * into rows. A `missing-index` row carries an inline "add the index" jump to the
652
+ * Schema tab. Both reads are best-effort — one failing still yields the other's
653
+ * insights.
654
+ */
655
+ declare const InsightsPanel: ({ initialShardKey, loadShardTraffic }: InsightsPanelProps) => ReactElement;
656
+ /**
657
+ * The Security Advisor — a 1-to-1 of Supabase's Security Advisor: severity tabs
658
+ * (Errors / Warnings / Info) over a findings table. It pulls `getSecurityAudit`
659
+ * (deployment-wide, so it targets the root shard and needs no shard selector) and
660
+ * maps each finding the server derived from the Worker `env` — weak admin token,
661
+ * an open WebSocket gate, a dev-mode request log keeping un-redacted args — into a
662
+ * row. These are signals only lunora can surface: Cloudflare's dashboard can't
663
+ * reason about lunora's admin/WS gates or its log-redaction policy.
664
+ */
665
+ declare const SecurityAdvisorPanel: () => ReactElement;
666
+ interface ApiDocsPanelProps {
667
+ /**
668
+ * Registered functions to document. Mirrors the list the Functions tab's
669
+ * runner and stats panels receive — a query/mutation/action's `kind` is
670
+ * compile-time-only, so it must be named here. When omitted the panel still
671
+ * renders (tables come from the admin RPC) and shows an empty functions list.
672
+ */
673
+ readonly functions?: FunctionDescriptor[];
674
+ /** Shard key the table list is read from. Defaults to the root shard. */
675
+ readonly initialShardKey?: string;
676
+ }
677
+ /**
678
+ * Per-resource "how to call this from your app" browser, generated from the
679
+ * registered functions and tables the studio already has — no new endpoints.
680
+ * The left rail lists functions grouped by file plus a Tables section; the right
681
+ * pane shows copy-paste snippets (React / Client / CLI for functions; the typed
682
+ * data-model usage for tables).
683
+ *
684
+ * Args are a placeholder: the real argument shape lives in the codegen'd `api`
685
+ * types this browser never loads, the same way Supabase's usage snippets show
686
+ * placeholders.
687
+ */
688
+ declare const ApiDocsPanel: ({ functions, initialShardKey }: ApiDocsPanelProps) => ReactElement;
689
+ interface ApiReferencePanelProps {
690
+ /**
691
+ * Inline OpenAPI document. When supplied the panel renders it directly and
692
+ * skips the fetch — used by the mock harness and by hosts that already hold
693
+ * the generated spec. When omitted the panel fetches the worker's
694
+ * admin-gated `GET /_lunora/admin/openapi` endpoint via the client.
695
+ */
696
+ readonly spec?: unknown;
697
+ }
698
+ /**
699
+ * In-studio OpenAPI reference: renders the generated OpenAPI 3.1 document with
700
+ * the studio-native {@link ReferenceView} — a tag-grouped operation browser,
701
+ * schema tables, a live "try it" console, and copy-paste request samples, all
702
+ * themed to the studio. The spec comes from an inline
703
+ * {@link ApiReferencePanelProps.spec} prop, or — by default — the worker's
704
+ * admin-gated `GET /_lunora/admin/openapi` endpoint fetched through the client.
705
+ *
706
+ * This replaced the embedded Scalar reference (a Vue app in React): Scalar's
707
+ * portal/overlay layers repeatedly intercepted clicks and froze the tab, and it
708
+ * shipped a multi-megabyte bundle. The native view is overlay-free and reuses
709
+ * the studio's own primitives.
710
+ */
711
+ declare const ApiReferencePanel: ({ spec: inlineSpec }: ApiReferencePanelProps) => ReactElement;
712
+ interface ApiTabProps {
713
+ /** Registered functions documented by the snippets sub-view. Threaded host → studio. */
714
+ readonly functions?: FunctionDescriptor[];
715
+ /** Shard key the snippets view reads its table list from. */
716
+ readonly initialShardKey?: string;
717
+ /**
718
+ * Inline OpenAPI document for the reference sub-view. When omitted the
719
+ * reference fetches the worker's `GET /_lunora/admin/openapi` endpoint.
720
+ */
721
+ readonly openApiSpec?: unknown;
722
+ /**
723
+ * Inline OpenRPC document for the reference sub-view's OpenRPC format. When
724
+ * omitted the OpenRPC view fetches the worker's `GET /_lunora/admin/openrpc`
725
+ * endpoint. OpenRPC is the RPC-native spec (RPC functions only); OpenAPI
726
+ * additionally covers `httpRouter()` REST routes.
727
+ */
728
+ readonly openRpcSpec?: unknown;
729
+ }
730
+ /**
731
+ * The studio's API tab. Hosts two complementary surfaces behind a segmented
732
+ * toggle. The Reference view renders a machine-readable spec — the OpenAPI 3.1
733
+ * document or the RPC-native OpenRPC document — through the studio-native
734
+ * reference UI (operation browser, schema tables, a live "try it" console, and a
735
+ * request-sample rail), with a small format switch between them. The Snippets
736
+ * view is the per-function React / Client / CLI copy-paste browser
737
+ * (`api-docs-panel`), the lightweight "how do I call this" DX.
738
+ *
739
+ * Reference is the default; OpenAPI is the default format (the richer,
740
+ * spec-driven view that also covers REST). Each format degrades to a clear
741
+ * empty state when its spec isn't wired.
742
+ */
743
+ declare const ApiTab: ({ functions, initialShardKey, openApiSpec, openRpcSpec }: ApiTabProps) => ReactElement;
744
+ interface OpenRpcReferencePanelProps {
745
+ /**
746
+ * Inline OpenRPC document. When supplied the panel renders it directly and
747
+ * skips the fetch — used by the mock harness and by hosts that already hold
748
+ * the generated spec. When omitted the panel fetches the worker's
749
+ * admin-gated `GET /_lunora/admin/openrpc` endpoint via the client.
750
+ */
751
+ readonly spec?: unknown;
752
+ }
753
+ /**
754
+ * In-studio OpenRPC reference. OpenRPC is the RPC-native spec (a `methods` array
755
+ * over the JSON-RPC-shaped `POST /_lunora/rpc` transport), documenting the RPC
756
+ * functions only. It is parsed into the shared `ApiModel` and rendered by the
757
+ * same studio-native {@link ReferenceView} the OpenAPI panel uses, so both
758
+ * formats share one operation browser, schema view, try-it console, and sample
759
+ * rail.
760
+ *
761
+ * The spec comes from an inline {@link OpenRpcReferencePanelProps.spec} prop, or
762
+ * — by default — the worker's admin-gated `GET /_lunora/admin/openrpc` endpoint.
763
+ */
764
+ declare const OpenRpcReferencePanel: ({ spec: inlineSpec }: OpenRpcReferencePanelProps) => ReactElement;
765
+ /**
766
+ * A shareable data-browser view: the table, storage tier, shard, structured
767
+ * filters, substring search, and sort that together reproduce exactly what the
768
+ * grid is showing. This is the unit that is serialized into the URL (so the link
769
+ * IS the query) and persisted by name in {@link loadSavedQueries}. Every field is
770
+ * optional so a partial/legacy URL still hydrates into a sensible default view.
771
+ */
772
+ interface DataView {
773
+ /** Structured `column operator value` clauses, AND-combined with the search. */
774
+ filters?: FilterClause[];
775
+ /** Single-column sort, server-side; absent → the table's natural order. */
776
+ orderBy?: {
777
+ column: string;
778
+ direction: "asc" | "desc";
779
+ };
780
+ /** Substring search across all columns. */
781
+ search?: string;
782
+ /** Shard key the view targets; absent/empty → the root shard. */
783
+ shard?: string;
784
+ /** The open table. */
785
+ table?: string;
786
+ /** Storage tier the table lives in; absent → the shard (SQLite) tier. */
787
+ tier?: "global" | "shard";
788
+ }
789
+ /** A user-named, persisted {@link DataView} — the "canned query" the saved-queries panel lists. */
790
+ interface SavedQuery {
791
+ name: string;
792
+ view: DataView;
793
+ }
794
+ interface DataBrowserProps {
795
+ /**
796
+ * Allow editing: surfaces insert/edit/delete actions that issue
797
+ * `__lunora_admin__:writeRow` ops through the schema-aware writer. Off by
798
+ * default — the browser is read-only unless the host opts in.
799
+ */
800
+ readonly editable?: boolean;
801
+ /**
802
+ * Names of the `.global()` (D1-backed) tables. A `v.id` ref cell whose target
803
+ * is one of these is followed cross-tier via `onNavigateToGlobal` instead of
804
+ * being read from this shard (where it doesn't exist). Supplied by the Table
805
+ * editor; defaults to none when the browser is used standalone.
806
+ */
807
+ readonly globalTableNames?: ReadonlySet<string>;
808
+ /** Structured filters to hydrate from a shared link / saved query. */
809
+ readonly initialFilters?: FilterClause[];
810
+ /** Sort to hydrate from a shared link / saved query. */
811
+ readonly initialOrderBy?: DataView["orderBy"];
812
+ /** Comma-separated pinned columns from the URL; wins over the per-browser default. */
813
+ readonly initialPins?: string;
814
+ /** Substring search to hydrate from a shared link / saved query. */
815
+ readonly initialSearch?: string;
816
+ /** Shard key the browser targets on first load. Defaults to the root shard. */
817
+ readonly initialShardKey?: string;
818
+ /**
819
+ * Follow a `v.id` ref whose target is a global table — the Table editor switches
820
+ * to the global tier and opens that table. When omitted (standalone use), a ref
821
+ * to a global table falls through to the in-shard read (and surfaces its error).
822
+ */
823
+ readonly onNavigateToGlobal?: (table: string, id: string) => void;
824
+ /**
825
+ * Navigate the URL to a table (the Table editor pushes `?table=…`), opening it
826
+ * clean; `options.search` pre-fills the search for an FK-cell traversal.
827
+ * Omitted in standalone use.
828
+ */
829
+ readonly onSelectTable?: (table: string, options?: {
830
+ search?: string;
831
+ }) => void;
832
+ /**
833
+ * Called whenever the loaded view (shard / search / filters / sort) changes, so
834
+ * the host can mirror it to the URL — making every view a shareable link.
835
+ * Omitted in standalone use (view state stays in-component).
836
+ */
837
+ readonly onViewChange?: (view: Pick<DataView, "filters" | "orderBy" | "search" | "shard">) => void;
838
+ /** Rows requested per page. Clamped server-side to `[1, 500]`. */
839
+ readonly pageSize?: number;
840
+ /**
841
+ * The canned-query toolbar's handlers + saved list. Supplied by the Table editor
842
+ * (it owns the router and the `saved-queries` localStorage helper); omitted in
843
+ * standalone use, which hides the toolbar entirely. `onSaveQuery` receives the
844
+ * name plus the current view to persist.
845
+ */
846
+ readonly queryBar?: {
847
+ readonly onApplyQuery: (query: SavedQuery) => void;
848
+ readonly onCopyLink: () => void;
849
+ readonly onDeleteQuery: (name: string) => void;
850
+ readonly onSaveQuery: (name: string, view: DataView) => void;
851
+ readonly saved: ReadonlyArray<SavedQuery>;
852
+ };
853
+ /**
854
+ * The schema/source selector rendered at the top of the table-list sidebar —
855
+ * the Table editor's `schema public ▾` switch. Supplied when this browser is
856
+ * composed into the Table editor; omitted when it's used alone.
857
+ */
858
+ readonly schemaSwitch?: ReactNode;
859
+ /**
860
+ * The table named in the URL. Drives the selection — a deep link or browser
861
+ * back/forward to a different `?table=…` re-opens that table. Supplied by the
862
+ * Table editor; omitted in standalone use (selection stays purely in-component).
863
+ */
864
+ readonly tableParam?: string;
865
+ }
866
+ /**
867
+ * Read-only data browser for a single shard's SQLite database. Lists the user
868
+ * tables (via the `__lunora_admin__:listTables` RPC), then pages through the
869
+ * rows of whichever table is selected (`__lunora_admin__:readTablePage`).
870
+ *
871
+ * Both calls travel over the ordinary `useLunora` client transport; the
872
+ * admin RPCs are intercepted inside the Durable Object and are gated by the
873
+ * server's `LUNORA_ADMIN_TOKEN`. The host is responsible for configuring the
874
+ * client's auth token — this component issues no credentials of its own.
875
+ *
876
+ * The table view is built on a headless `@tanstack/react-table` model: column
877
+ * defs derive from `page.columns`, sorting and (global) filtering run
878
+ * page-locally over the loaded rows, and the rendered rows are virtualized with
879
+ * `@tanstack/react-virtual` so a large page never inflates the DOM. None of this
880
+ * touches the server — pagination still flows through `readTablePage`. All of
881
+ * that state lives in {@link useDataBrowser}; this component is just the markup.
882
+ */
883
+ declare const DataBrowser: ({ editable, globalTableNames, initialFilters, initialOrderBy, initialPins, initialSearch, initialShardKey, onNavigateToGlobal, onSelectTable, onViewChange, pageSize: initialPageSize, queryBar, schemaSwitch, tableParam }: DataBrowserProps) => ReactElement;
884
+ /** A filter row as edited in the UI — the value is always a string until coerced for the wire. */
885
+ interface EditableFilter {
886
+ column: string;
887
+ operator: FilterOperator;
888
+ value: string;
889
+ }
890
+ /**
891
+ * Convert the UI's string-valued filter rows into wire {@link FilterClause}s:
892
+ * drops rows with no column, and coerces a canonical numeric string to a number for
893
+ * every comparison operator (so `age > 18` compares numerically, not lexically, and
894
+ * an `eq` on a numeric column still matches — see {@link coerceFilterValue} for why a
895
+ * numeric-looking but non-canonical string like a zip code stays text). `contains`
896
+ * always stays a string.
897
+ */
898
+ declare const toFilterClauses: (filters: ReadonlyArray<EditableFilter>) => FilterClause[];
899
+ /**
900
+ * The data browser's filtering controls: the substring search box plus a stack
901
+ * of structured `column operator value` rows. All state is owned by the parent
902
+ * (the data-browser model); this is the control markup, emitting the full
903
+ * filter array up on every edit. Raw strings (no i18n) to match the surrounding
904
+ * data-browser controls.
905
+ *
906
+ * ## Why these rows are NOT run through the mask preview
907
+ *
908
+ * Every other read surface in the shard browser honours the "Mask sensitive
909
+ * columns" toggle — grid cells, the transposed and JSON views, the row-detail
910
+ * drawer, all three exports, the facet sidebar — and the `.global()` browser
911
+ * masks its drill-down chips too. This bar deliberately does not, and the
912
+ * question has been raised twice, so here is the enumeration it rests on.
913
+ *
914
+ * Two of the ways a value reaches these rows are DATA-DERIVED — the operator did
915
+ * not type it — and those are the ones that could have leaked.
916
+ *
917
+ * A FACET-VALUE CLICK (`facetFilter` in `use-data-browser`) is closed at the
918
+ * source: `DataFacets` withholds both the toggle and any open section for a
919
+ * mask-covered column while the preview is on, so this can only reach a covered
920
+ * column after the operator switched the preview OFF — a deliberate reveal of the
921
+ * same value, from the same screen.
922
+ *
923
+ * HYDRATION FROM THE URL or a saved query (`initialFilters` → `toEditableFilters`)
924
+ * is the shared-link case, and the one that looks like the `.global()` drill-down
925
+ * chips — but it is not, because of the invariant below.
926
+ *
927
+ * (The AI "describe a filter" affordance sends column names and the prompt, never
928
+ * a row, so it cannot lift a stored secret into a clause. That is enforced by
929
+ * `@lunora/do`'s `sql-assistant.test.ts` — "sends the caller's columns and prompt
930
+ * and nothing else" — rather than asserted here, because a claim about another
931
+ * package that nothing checks is how a comment goes stale.)
932
+ *
933
+ * The invariant that makes both harmless: **a filter clause rendered here is
934
+ * always simultaneously rendered verbatim in the address bar.** `useDataBrowser`
935
+ * mirrors the loaded view through `onViewChange`, and `table-editor.tsx` writes
936
+ * it straight into `?filters=<json>` on every change. So masking a row would
937
+ * blank a value that is legible, unmasked, three inches above the input — while
938
+ * making the filter impossible to edit. It would cost usability and buy nothing.
939
+ *
940
+ * That is exactly what separates this bar from the `.global()` browser's
941
+ * drill-down chips, which ARE masked: those are read-only (nothing to edit),
942
+ * they are fed ONLY by a facet click, and `global-data-browser` keeps them in
943
+ * local state that never reaches the URL — so masking them genuinely removes a
944
+ * value from the screen.
945
+ *
946
+ * **If either half of that stops being true — a filter row that is not mirrored
947
+ * to `?filters=`, or a read-only filter display — revisit this.** Both halves are
948
+ * pinned by `__tests__/features/data/data-browser-mask.test.tsx`'s
949
+ * "dataBrowser masking — filters" block.
950
+ */
951
+ declare const DataFilters: ({ columns, filters, onAskAi, onFiltersChange, onSearchChange, search }: {
952
+ columns: ReadonlyArray<string>;
953
+ filters: ReadonlyArray<EditableFilter>;
954
+ /** Ask the model for structured clauses. Omitted when no AI binding is available. */
955
+ onAskAi?: (prompt: string) => void;
956
+ onFiltersChange: (filters: EditableFilter[]) => void;
957
+ onSearchChange: (event: ChangeEvent<HTMLInputElement>) => void;
958
+ search: string;
959
+ }) => ReactElement;
960
+ interface GlobalDataBrowserProps {
961
+ /**
962
+ * Table to open automatically on mount (and whenever it changes). Used by the
963
+ * Table editor when a `v.id` reference in a shard row points at a `.global()`
964
+ * table: clicking it switches to the global tier and lands here with that table
965
+ * pre-selected. Each distinct value is applied once, so the operator can still
966
+ * navigate away afterwards.
967
+ */
968
+ readonly initialTable?: string;
969
+ /**
970
+ * Called whenever the open table changes, so the host can mirror it to the URL
971
+ * (the Table editor pushes `?table=…`). Omitted in standalone use.
972
+ */
973
+ readonly onSelectTable?: (table: string) => void;
974
+ /** Rows requested per page. Clamped server-side to `[1, 500]`. */
975
+ readonly pageSize?: number;
976
+ /**
977
+ * The schema/source selector rendered at the top of the table-list sidebar —
978
+ * the Table editor's `schema public ▾` switch. Supplied when this browser is
979
+ * composed into the Table editor; omitted when it's used alone.
980
+ */
981
+ readonly schemaSwitch?: ReactNode;
982
+ }
983
+ /**
984
+ * Read-only browser for `.global()` (D1-backed) tables. Twin of `DataBrowser`,
985
+ * but not shard-scoped: it lists tables via `listGlobalTables()` and pages rows
986
+ * via `readGlobalTablePage()`. Laid out like Supabase's Table Editor — a left
987
+ * table sidebar + a bordered grid with a paginated footer — and gated by the
988
+ * server's `LUNORA_ADMIN_TOKEN`.
989
+ */
990
+ declare const GlobalDataBrowser: ({ initialTable, onSelectTable, pageSize: initialPageSize, schemaSwitch }?: GlobalDataBrowserProps) => ReactElement;
991
+ interface TableEditorProps {
992
+ /**
993
+ * Allow editing the shard-local tables (insert/edit/delete). Forwarded to the
994
+ * shard {@link DataBrowser}; the global D1 browser is always read-only. Off by
995
+ * default — see {@link DataBrowser}.
996
+ */
997
+ readonly editable?: boolean;
998
+ /** Shard key the shard browser targets on first load. Defaults to the root shard. */
999
+ readonly initialShardKey?: string;
1000
+ }
1001
+ /**
1002
+ * The Table editor: browses your application's tables across both storage tiers
1003
+ * from one section. A schema switch in the sidebar header (Supabase's
1004
+ * `schema public ▾`) toggles between the per-shard SQLite browser
1005
+ * (`.shardBy(...)`, editable when the host opts in) and the read-only global D1
1006
+ * browser (`.global()`) — folding what used to be a separate "Global Tables" tab
1007
+ * into a single editor (`STUDIO-REDESIGN-PLAN.md` §2).
1008
+ *
1009
+ * The active tier and open table live in the URL search params (`?schema=global`,
1010
+ * `?table=…`) rather than component state, so every selection is a real, shareable
1011
+ * URL and browser back/forward moves between tables and tiers. The browsers push on
1012
+ * selection and re-open whatever the URL names.
1013
+ */
1014
+ declare const TableEditor: ({ editable, initialShardKey }: TableEditorProps) => ReactElement;
1015
+ interface ExportImportPanelProps {
1016
+ /** Shard key the panel targets. Defaults to the root shard. */
1017
+ readonly initialShardKey?: string;
1018
+ }
1019
+ /**
1020
+ * Snapshot and restore a single shard's data as NDJSON.
1021
+ *
1022
+ * "Export" reads every shard-local row via `__lunora_admin__:exportShard` and
1023
+ * renders it as NDJSON for download/copy. "Import" parses NDJSON the operator
1024
+ * pastes in and replays it through `__lunora_admin__:importShard`, reporting
1025
+ * inserted counts, id conflicts and per-row errors. Globally-scoped (`.global()`)
1026
+ * tables live in D1 and are intentionally out of scope here.
1027
+ *
1028
+ * Both calls travel over the {@link useLunora} client transport and are gated by
1029
+ * the server's `LUNORA_ADMIN_TOKEN`.
1030
+ */
1031
+ declare const ExportImportPanel: ({ initialShardKey }: ExportImportPanelProps) => ReactElement;
1032
+ interface MigrationsPanelProps {
1033
+ /** Shard key the panel targets. Defaults to the root shard. */
1034
+ readonly initialShardKey?: string;
1035
+ }
1036
+ /**
1037
+ * Inspect and drive data migrations on a single shard.
1038
+ *
1039
+ * Reads the persisted run-state via the `__lunora_admin__:migrationStatus` RPC
1040
+ * and lets an operator kick off a migration by id (`__lunora_admin__:runMigration`)
1041
+ * with a direction, an optional batch cap and a dry-run toggle. Both calls
1042
+ * travel over the ordinary {@link useLunora} client transport and are gated by
1043
+ * the server's `LUNORA_ADMIN_TOKEN` — this component issues no credentials of
1044
+ * its own.
1045
+ */
1046
+ declare const MigrationsPanel: ({ initialShardKey }: MigrationsPanelProps) => ReactElement;
1047
+ interface PitrPanelProps {
1048
+ /** Shard key the PITR ops target. Defaults to the root shard. */
1049
+ readonly initialShardKey?: string;
1050
+ }
1051
+ /**
1052
+ * Native Durable-Object point-in-time recovery for one shard — the **Time
1053
+ * Travel** view.
1054
+ *
1055
+ * Reads the shard's current bookmark, previews the bookmark nearest a chosen
1056
+ * time, and (behind a confirm step) restores the shard to a time or an explicit
1057
+ * bookmark via the `__lunora_admin__:pitrRestore` RPC, surfacing the returned
1058
+ * undo bookmark so the restore can be reversed. All ops run over the
1059
+ * {@link useLunora} client and are gated by the server's `LUNORA_ADMIN_TOKEN`.
1060
+ *
1061
+ * In-place recovery covers the last 30 days; for older or off-platform recovery
1062
+ * use the snapshot tier (`lunora backup` / the backup registry item).
1063
+ */
1064
+ declare const PitrPanel: ({ initialShardKey }: PitrPanelProps) => ReactElement;
1065
+ interface FunctionRunnerProps {
1066
+ /**
1067
+ * Functions to expose. When omitted, the runner auto-discovers them via the
1068
+ * client's `listFunctions()` (the admin-gated `/_lunora/admin/functions`
1069
+ * endpoint), so it works with no wiring when the worker is built with a
1070
+ * `functions` registry. Supply the list to override discovery.
1071
+ */
1072
+ readonly functions?: FunctionDescriptor[];
1073
+ /**
1074
+ * Expose the "Run as identity" control — execute the selected function AS a
1075
+ * chosen authenticated user so an operator can test auth + RLS behavior.
1076
+ * Security-sensitive: the run is forwarded over the admin-gated
1077
+ * `__lunora_admin__:runAs` RPC, which forges the per-request identity. The
1078
+ * host sets this only on a trusted loopback-dev gate (the `Studio` component's
1079
+ * `runAsIdentity` prop); off by default, the runner always runs with the
1080
+ * caller's own (admin) identity.
1081
+ */
1082
+ readonly runAsIdentity?: boolean;
1083
+ }
1084
+ /**
1085
+ * Interactive runner for the registered functions: pick one, edit its JSON
1086
+ * arguments, optionally target a shard, then invoke it against the live
1087
+ * {@link useLunora} client and inspect the result or error.
1088
+ *
1089
+ * By default the function list is auto-discovered from the worker's
1090
+ * `/_lunora/admin/functions` endpoint; pass an explicit `functions` array to
1091
+ * skip discovery (a query/mutation/action's `kind` is compile-time-only, so it
1092
+ * must be named).
1093
+ */
1094
+ declare const FunctionRunner: ({ functions: functionsProp, runAsIdentity }?: FunctionRunnerProps) => ReactElement;
1095
+ interface FunctionStatsPanelProps {
1096
+ /** Descriptors from codegen, used to annotate each row with the function's `kind`. */
1097
+ readonly functions?: FunctionDescriptor[];
1098
+ /** Shard key the panel reports on. Defaults to the root shard. */
1099
+ readonly initialShardKey?: string;
1100
+ }
1101
+ /**
1102
+ * Per-function execution metrics for one shard: call count, error count/rate,
1103
+ * mean and slowest handler latency, last-run time, and the most recent error
1104
+ * message. Reads via the `__lunora_admin__:getFunctionStats` RPC through
1105
+ * `useAdminQuery`; gated by the server's `LUNORA_ADMIN_TOKEN`.
1106
+ *
1107
+ * Counters are per-DO-instance and reset on hibernation/restart — this is a
1108
+ * "since this instance woke" readout, mirroring the metrics panel. The panel is
1109
+ * always live: `useAdminQuery`'s `live` subscription re-pushes on every server
1110
+ * write-flush so the table updates as mutations land.
1111
+ */
1112
+ declare const FunctionStatsPanel: ({ functions, initialShardKey }: FunctionStatsPanelProps) => ReactElement;
1113
+ /** Which of the two endpoints a probe targets. */
1114
+ type ProbeKind = "live" | "ready";
1115
+ /** The result of one probe fetch — the HTTP status, the parsed body (or `null`), and any transport error. */
1116
+ interface ProbeSnapshot {
1117
+ /** The parsed health body, or `null` when the response wasn't JSON (e.g. an auth-gate rejection). */
1118
+ body: HealthBody | null;
1119
+ /** A transport/gate error message (network failure, or a non-JSON body), else `undefined`. */
1120
+ error?: string;
1121
+ /** Whether the HTTP status was 2xx. */
1122
+ ok: boolean;
1123
+ /** The HTTP status code (`0` when the request never completed). */
1124
+ status: number;
1125
+ }
1126
+ /** Fetch one probe. Injected in tests; the default (see {@link useDefaultProbe}) hits the live deployment. */
1127
+ type DeploymentHealthProbe = (kind: ProbeKind) => Promise<ProbeSnapshot>;
1128
+ interface DeploymentHealthPanelProps {
1129
+ /**
1130
+ * Injectable probe, used by tests to feed a canned response. When omitted the
1131
+ * panel fetches the connected deployment's `/_lunora/health` (and
1132
+ * `/health/ready`) directly — this is a plain HTTP route, not an admin RPC, so
1133
+ * it doesn't ride the `useAdminQuery` machinery. The admin bearer (when the
1134
+ * studio holds one) is attached so an `"admin"`-posture endpoint still answers.
1135
+ */
1136
+ readonly probe?: DeploymentHealthProbe;
1137
+ }
1138
+ /**
1139
+ * Deployment-health panel: renders the live liveness/readiness verdict and the
1140
+ * per-binding/subsystem checks from the deployment's `/_lunora/health` and
1141
+ * `/_lunora/health/ready` endpoints (plan 177). This is the operator's at-a-glance
1142
+ * "are the bindings up?" view — distinct from the app-level SLO panel (error
1143
+ * rate, auth failures, scheduler backlog) that shares the "Health" name.
1144
+ *
1145
+ * The endpoints are plain HTTP routes (not admin RPCs), so the panel fetches them
1146
+ * directly rather than through `useAdminQuery`. The body is deliberately
1147
+ * secret-free — only a check name, an up/down status, whether it's critical, and
1148
+ * a runtime-authored message (present only in the `"admin"` posture) — so nothing
1149
+ * rendered here can leak an env value, connection string, or binding secret.
1150
+ */
1151
+ declare const DeploymentHealthPanel: ({ probe }: DeploymentHealthPanelProps) => ReactElement;
1152
+ interface HomePanelProps {
1153
+ /** Shard key the health digest targets on first load. Defaults to the root shard. */
1154
+ readonly initialShardKey?: string;
1155
+ }
1156
+ /**
1157
+ * The Home overview — the studio's landing page. It pulls the root shard's
1158
+ * health snapshot, the function stats, the two advisor signals, the live
1159
+ * subscription pulse, and the recent admin audit log, then presents an
1160
+ * at-a-glance digest: a KPI row (requests, errors, latency, database size), a
1161
+ * busiest-functions leaderboard, live connections, recent activity, the advisor
1162
+ * summary, and connect/quick-link shortcuts. Every read is best-effort — a
1163
+ * missing admin token or a cold instance leaves a card showing a muted
1164
+ * placeholder rather than blanking the page.
1165
+ */
1166
+ declare const HomePanel: ({ initialShardKey }: HomePanelProps) => ReactElement;
1167
+ interface AuditPanelProps {
1168
+ /** Shard key the panel reports on. Defaults to the root shard. */
1169
+ readonly initialShardKey?: string;
1170
+ }
1171
+ /**
1172
+ * Durable audit log for one shard: the admin state-changing operations
1173
+ * (`writeRow`, `runMigration`, `importShard`, `applyCdc`) recorded to the
1174
+ * reserved `__lunora_audit__` table, newest first. Reads via the
1175
+ * `__lunora_admin__:getAuditLog` RPC through `useAdminQuery`; gated by the
1176
+ * server's `LUNORA_ADMIN_TOKEN`.
1177
+ *
1178
+ * Unlike the logs panel (an in-memory ring that resets on hibernation), the
1179
+ * audit log is durable and bounded only by a retention cap. The panel is always
1180
+ * live: `useAdminQuery`'s `live` subscription re-pushes on every server
1181
+ * write-flush so new entries appear without a manual refresh. The op filter is
1182
+ * client-side over the already-fetched buffer — it never triggers a refetch.
1183
+ */
1184
+ declare const AuditPanel: ({ initialShardKey }: AuditPanelProps) => ReactElement;
1185
+ interface LogsPanelProps {
1186
+ /** Shard key the panel reports on. Defaults to the root shard. */
1187
+ readonly initialShardKey?: string;
1188
+ }
1189
+ /**
1190
+ * The shard's log feed, newest first, over the gated `__lunora_admin__:*` RPC
1191
+ * layer (gated by the server's `LUNORA_ADMIN_TOKEN`). Two views.
1192
+ *
1193
+ * The Requests view (`getRequestLog`) is the durable, structured per-request log
1194
+ * `@lunora/do` writes once per `/rpc` dispatch (PLAN3 §1.1): function path,
1195
+ * shard, acting user/identity, redacted args, outcome, duration, and tables
1196
+ * read/written. It survives hibernation/restart (bounded retention) and is
1197
+ * filtered/correlated SERVER-side on function-path prefix, userId, shard,
1198
+ * outcome, and a touched table.
1199
+ *
1200
+ * The Errors view (`getLogs`) is the legacy in-memory RPC-error buffer, which
1201
+ * only captures dispatch failures (path + message) and resets on hibernation —
1202
+ * kept for the "what's failing on this instance right now" view, filtered
1203
+ * client-side.
1204
+ *
1205
+ * For the raw, un-attributed request firehose (which Lunora deliberately does
1206
+ * NOT re-stream), a deep-link to Cloudflare Workers Observability is provided.
1207
+ */
1208
+ declare const LogsPanel: ({ initialShardKey }: LogsPanelProps) => ReactElement;
1209
+ interface MailPanelProps {
1210
+ /** Newest-N to load (default 100). */
1211
+ readonly limit?: number;
1212
+ }
1213
+ /**
1214
+ * Dev mail catcher — a unified inbox of every email the app sent. `@lunora/mail`'s
1215
+ * capture transport (wired in dev) intercepts each send and persists it to the
1216
+ * root-shard mailbox instead of delivering, so verification / forgot-password and
1217
+ * any app mail show up here with nothing leaving the machine. The inbox model —
1218
+ * the `__lunora_admin__:getCapturedMail` read, its poll, the clear / send-test
1219
+ * actions, and the selection state — lives in {@link useMailCapture}; this
1220
+ * component is markup and copy.
1221
+ *
1222
+ * The inbox is a single root-shard table with no write-flush to subscribe to, so
1223
+ * it polls on a fixed interval (paused while the tab is hidden) — new captured
1224
+ * mail appears without a manual refresh. The HTML body is rendered in a fully
1225
+ * sandboxed iframe (no script execution) so captured markup can't run in the studio.
1226
+ */
1227
+ declare const MailPanel: ({ limit }: MailPanelProps) => ReactElement;
1228
+ /**
1229
+ * The Notifications inspector — the app's registered `@lunora/notify` push
1230
+ * devices, read through the gated `__lunora_admin__:listPushSubscriptions` admin
1231
+ * RPC (`useAdminQuery`; gated by the server's `LUNORA_ADMIN_TOKEN`). Each row is
1232
+ * one registered device: its delivery kind, target endpoint, owning user, last
1233
+ * register/send touch, and the last-send status + any delivery error.
1234
+ *
1235
+ * The subscription store is a WORKER option (built from `env` via
1236
+ * `defineNotify({ store })`), not shard state, so this is a one-shot read with a
1237
+ * manual Refresh — there is no DO write-flush to subscribe to. When the app wires
1238
+ * no `@lunora/notify` store (or none yet registered), the RPC returns an empty
1239
+ * device list and the panel shows an empty state rather than erroring.
1240
+ */
1241
+ declare const NotificationsPanel: () => ReactElement;
1242
+ interface HealthPanelProps {
1243
+ /** Shard key the metric/log reads target on first load. Defaults to the root shard. */
1244
+ readonly initialShardKey?: string;
1245
+ }
1246
+ /**
1247
+ * App-level health & SLO overview. On top of the original single-shard snapshot
1248
+ * (recent errors, request/error counts, shards seen) it composes the
1249
+ * lunora-attributed SLO signals the studio can already reach — app error
1250
+ * rate, auth-failure rate, scheduler backlog, and migration status — each with a
1251
+ * status badge, plus durable request/error and auth sparklines, and a
1252
+ * worst-first per-function error-rate list. None of this is CF's per-Worker
1253
+ * charting: it is attributed to lunora functions, the auth flow, and the
1254
+ * scheduler/migration subsystems.
1255
+ *
1256
+ * Every read is independent and best-effort (via `Promise.allSettled`): a
1257
+ * missing `LUNORA_ADMIN_TOKEN`, an unconfigured scheduler, or a cold instance
1258
+ * degrades that one tile to `—` without blanking the rest. The overview is always
1259
+ * live: a root-shard `getMetrics` subscription drives a full cross-shard re-pull
1260
+ * on every write-flush (coalesced so a burst yields at most one in-flight pull).
1261
+ */
1262
+ declare const HealthPanel: ({ initialShardKey }: HealthPanelProps) => ReactElement;
1263
+ /** One shard's metrics fetch outcome: the snapshot, or the error that shard returned. */
1264
+ interface ShardMetricsResult {
1265
+ error: null | string;
1266
+ metrics: null | ShardMetrics;
1267
+ shard: string;
1268
+ }
1269
+ /** Totals rolled up across every successfully-fetched shard. */
1270
+ interface AggregateMetrics {
1271
+ /** Shards that returned an error (couldn't be reached / unauthorized). */
1272
+ failed: number;
1273
+ /** Combined reactive-cache hit rate across shards with a cache, or `null` when none has one. */
1274
+ hitRate: null | number;
1275
+ /** Shards that returned a snapshot. */
1276
+ reachable: number;
1277
+ /** Sum of `databaseSize` across reachable shards (skips shards reporting `null`). */
1278
+ totalDatabaseSize: number;
1279
+ totalErrors: number;
1280
+ totalRequests: number;
1281
+ }
1282
+ /**
1283
+ * Roll up per-shard metrics into repo-wide totals. Errors-per-shard are kept as
1284
+ * `failed` (a shard that's down is data, not a hard failure), and counters are
1285
+ * summed only over reachable shards. The combined cache hit-rate weights by each
1286
+ * shard's hits+misses so a busy shard dominates a quiet one.
1287
+ */
1288
+ declare const aggregateMetrics: (results: ReadonlyArray<ShardMetricsResult>) => AggregateMetrics;
1289
+ /**
1290
+ * The shard keys to aggregate over. Durable Objects aren't enumerable, so this
1291
+ * is the union of the root shard (`""`), an explicit current shard, and the
1292
+ * recently-visited shards — de-duplicated, order-stable (root first). It's a
1293
+ * best-effort "shards we know about", not every shard that exists.
1294
+ */
1295
+ declare const shardsToAggregate: (current: string, recents: ReadonlyArray<string>) => string[];
1296
+ interface MetricsPanelProps {
1297
+ /** Shard key the panel reports on. Defaults to the root shard. */
1298
+ readonly initialShardKey?: string;
1299
+ }
1300
+ /**
1301
+ * Health snapshot for a single shard: request / error counts (since the DO last
1302
+ * woke), its live SQLite size, and reactive-cache hit/miss stats when a cache is
1303
+ * configured. Reads via the `__lunora_admin__:getMetrics` RPC over the
1304
+ * {@link useLunora} client; gated by the server's `LUNORA_ADMIN_TOKEN`.
1305
+ *
1306
+ * Counters are per-DO-instance and reset on hibernation/restart — this is a
1307
+ * "since this instance woke" readout, not a durable time series.
1308
+ *
1309
+ * The panel is always live: a `getMetrics` WebSocket subscription opens once the
1310
+ * first one-shot seed commits a shard and re-pushes on every server write-flush,
1311
+ * accumulating a client-side, in-memory series of requests-per-sample (the delta
1312
+ * of `requests` between consecutive samples), rendered as an inline-SVG
1313
+ * sparkline. The series is capped at {@link MAX_HISTORY} points and is lost on
1314
+ * remount.
1315
+ */
1316
+ declare const MetricsPanel: ({ initialShardKey }: MetricsPanelProps) => ReactElement;
1317
+ interface SchemaViewerProps {
1318
+ /** Shard key the viewer targets. Defaults to the root shard. */
1319
+ readonly initialShardKey?: string;
1320
+ /**
1321
+ * Table to auto-expand once the shard's tables load. Set by the Insights
1322
+ * "add the index" deep-link (`/schema?table=<name>`) so the operator lands
1323
+ * directly on the scanned table's index list instead of hunting for it.
1324
+ * Re-applied whenever the value changes, so following the link a second time
1325
+ * (same tab already open) re-expands the target.
1326
+ */
1327
+ readonly initialTable?: string;
1328
+ /**
1329
+ * Enable the visual schema-editor overlay (add table / column / index). Off by
1330
+ * default so the diagram stays read-only. Set only by the loopback dev hosts
1331
+ * (see `StudioProps.schemaEditable`); when true, the authoring overlay
1332
+ * (plan 024 Item 4) renders above the table lists and applies additive edits
1333
+ * through the dev host's local schema-edit endpoint.
1334
+ */
1335
+ readonly schemaEditable?: boolean;
1336
+ }
1337
+ /**
1338
+ * Schema overview that shows both storage tiers so the distinction is never a
1339
+ * mystery. The shard section lists every user table in the selected Durable
1340
+ * Object with row counts, and probes a table's columns on expand via a one-row
1341
+ * `__lunora_admin__:readTablePage` (`PRAGMA table_info`). The global section
1342
+ * lists every `.global()` table — including the auth tables (`user`, `session`,
1343
+ * …) — via the client's `listGlobalTables()`, reading columns from a one-row
1344
+ * `readGlobalTablePage` on expand.
1345
+ *
1346
+ * Two presentations: a **Table list** (searchable, expandable cards per tier)
1347
+ * and a **Graph** — a single React Flow relationship diagram showing both tiers
1348
+ * on one canvas, with cross-tier FK edges and its own in-canvas find-table box,
1349
+ * tier filter, and legend.
1350
+ *
1351
+ * Read-only and gated by the server's `LUNORA_ADMIN_TOKEN`, like the rest of the
1352
+ * studio's admin surface. Global discovery is best-effort: if D1 isn't
1353
+ * configured the global section simply reports it, and the shard section still
1354
+ * works.
1355
+ */
1356
+ declare const SchemaViewer: ({ initialShardKey, initialTable, schemaEditable }: SchemaViewerProps) => ReactElement;
1357
+ interface SettingsPanelProps {
1358
+ /** Shard key the settings read targets on first load. Defaults to the root shard. */
1359
+ readonly initialShardKey?: string;
1360
+ }
1361
+ declare const SettingsPanel: ({ initialShardKey }: SettingsPanelProps) => ReactElement;
1362
+ interface SqlEditorPanelProps {
1363
+ /** Shard key the query runs against on first load. Defaults to the root shard. */
1364
+ readonly initialShardKey?: string;
1365
+ }
1366
+ /**
1367
+ * A full-height, Supabase-style SQL editor: a left query sidebar (search + new,
1368
+ * a browser-persisted PRIVATE list, and REFERENCE templates), a line-numbered
1369
+ * editor pane, and a Results / Explain pane with a Run control + shard selector.
1370
+ * Read-only — the `__lunora_admin__:runSql` RPC rejects everything but
1371
+ * SELECT / WITH / EXPLAIN, so raw writes can't desync the doc-store's shadow
1372
+ * tables (use the Data grid's inline edit for mutations).
1373
+ */
1374
+ declare const SqlEditorPanel: ({ initialShardKey }: SqlEditorPanelProps) => ReactElement;
1375
+ interface FileBrowserProps {
1376
+ /** Object-key prefix the browser filters by on first load. */
1377
+ readonly initialPrefix?: string;
1378
+ /** Objects requested per page. Forwarded to the storage `list` limit. */
1379
+ readonly pageSize?: number;
1380
+ }
1381
+ /**
1382
+ * Browse — and mutate — objects in the storage (R2) bucket. Lists keys under an
1383
+ * optional prefix via the client's `listStorageObjects`, which hits the worker's
1384
+ * admin-gated `GET /_lunora/admin/storage` endpoint — so the worker must be built
1385
+ * with a `storageList` function and `adminToken`. Paginates forward by cursor.
1386
+ *
1387
+ * Each row offers a "Copy URL" (signed/public URL via `signedStorageUrl`) and a
1388
+ * confirm-gated "Delete" (`deleteStorageObject`); the toolbar offers an upload
1389
+ * (`uploadStorageObject`) into the current prefix. Those write paths require the
1390
+ * worker to be built with `storageSignedUrl` / `storageDelete` / `storageUpload`
1391
+ * respectively — when absent, the worker responds with a clear `*_NOT_CONFIGURED`
1392
+ * error that surfaces inline rather than crashing the panel.
1393
+ *
1394
+ * All state + behavior lives in {@link useFileBrowser}; this shell only wires the
1395
+ * view-model into the toolbar, breadcrumbs, selection bar, list/gallery and the
1396
+ * load-more / error / empty affordances.
1397
+ */
1398
+ declare const FileBrowser: ({ initialPrefix, pageSize }: FileBrowserProps) => ReactElement;
1399
+ /** Default polling cadence for auto-refresh, in milliseconds. */
1400
+ declare const DEFAULT_AUTO_REFRESH_MS = 5e3;
1401
+ /**
1402
+ * Call `onTick` on a fixed interval while `enabled`, for panels whose backend
1403
+ * has no live subscription channel (the scheduler, R2, D1, the SessionDO — all
1404
+ * HTTP-only). Polling is the honest "live" here: a timer-driven scheduler has no
1405
+ * client-observable write event to push on, so the UI watches jobs count down
1406
+ * and disappear by re-asking.
1407
+ *
1408
+ * Ticks are skipped while the tab is hidden (`document.hidden`) so a backgrounded
1409
+ * studio doesn't keep hammering the worker. `onTick` is held in a ref so a
1410
+ * fresh closure each render doesn't reset the interval; only `enabled`/`intervalMs`
1411
+ * do. The interval is cleared on disable and unmount.
1412
+ */
1413
+ declare const useAutoRefresh: (onTick: () => void, enabled: boolean, intervalMs?: number) => void;
1414
+ /**
1415
+ * Debounced mirror of `value`: returns the latest value only after it has been
1416
+ * stable for `delayMs`. Used so a per-keystroke search box drives at most one
1417
+ * server round-trip per pause, instead of one request per character.
1418
+ *
1419
+ * `resetKey` is an optional escape hatch from the trailing delay: when it
1420
+ * changes relative to the PREVIOUS call, the mirror snaps to `value`
1421
+ * immediately — no `delayMs` window at all. It exists for callers that key a
1422
+ * debounced input (a search box, a shard key) to a coarser identity (e.g. the
1423
+ * open table): on that identity's change the caller usually re-seeds `value`
1424
+ * itself in the same render, and without `resetKey` the debounced mirror would
1425
+ * still trail the OLD value behind its own timer for up to `delayMs`, ignoring
1426
+ * the reseed. The snap happens render-time (the "adjusting state when a prop
1427
+ * changes" pattern): calling the setters below makes React discard this render
1428
+ * and retry synchronously with the caught-up state, so the returned value is
1429
+ * already correct on the render that reads it — no extra commit, no trailing
1430
+ * window. Omit `resetKey` (the default) to keep the original always-debounced
1431
+ * behavior; every other caller in the codebase does this.
1432
+ */
1433
+ declare const useDebounced: <T>(value: T, delayMs?: number, resetKey?: unknown) => T;
1434
+ /**
1435
+ * The registry of every English source string a call site may pass to `t(...)`.
1436
+ *
1437
+ * English is the source locale, so each id doubles as the rendered text: Lingui
1438
+ * compiles an id verbatim when a catalog has no entry for it. This list is the
1439
+ * single source of known strings — {@link MessageId} is derived from it and
1440
+ * `TFunction` is typed against that union, so `t("Dat")` (or any string absent
1441
+ * here) is a compile error rather than a silently-rendered typo.
1442
+ *
1443
+ * Add a string here the moment a new call site needs it. To translate, create a
1444
+ * sibling catalog (for example `de.ts`) mapping each id to its translation and
1445
+ * register it via `createStudioI18n(locale, { en: enMessages, de: deMessages })`.
1446
+ */
1447
+ declare const MESSAGE_IDS: readonly ["Reactors", "Server-side onQueryChange reactors: what has run, what was suppressed, and what is failing.", "Reactor", "State", "Ran", "Suppressed", "Errors", "Watches", "Last dispatch", "No reactors declared", "No reactor is declared in this deployment. Export an onQueryChange(select, handler) from lunora/ to run server-side logic when a query's result changes.", "A reactor runs after a write flush, but only when the result of the query it watches actually changed — a trigger fires on a row write, a reactor fires on a result changing. Suppressed dispatches are the ones where the read re-ran and nothing had moved.", "last dispatch failed", "Live updates unavailable; showing the last reading.", "Agents", "Agent", "Threads", "Timeline", "Messages", "Tokens", "Updated", "Content", "Tool", "Usage", "Approval", "Score your app's advisor findings: a grade, the coverage split, and every procedure ranked worst-first.", "Health score", "Rules fired", "Procedure", "Score", "Kind", "clean", "warned", "failing", "exempt", "sensitive", "no reason given", "Schema & config", "Inspect agent threads, message timelines, tool calls, and token usage.", "Agents run as durable workflows. Each run persists a thread of assistant and tool messages; select a thread to inspect its timeline, tool calls, approvals, and token usage.", "No @lunora/agent tables found in this deployment. Add lunora/agents.ts with defineAgent(...) and merge the agent schema extension to run durable AI agents.", "No agents configured", "No agent has run yet. Start a run with ctx.agents.<name>.run(...) and its thread appears here.", "No agent threads yet", "This thread has no messages yet.", "Bindings", "KV Namespaces", "R2 Buckets", "Vectorize Indexes", "{count} bindings", "1 binding", "Lunora AI rules aren't installed.", "lets your coding agent use Lunora correctly.", "Dismiss", ", changed", "(no subject)", "(root)", "(none)", "{count} active", "{count} calls", "{count} failed", "{total} total", "No subscriptions yet", "No payments configured", "No @lunora/payment tables found in this deployment. Declare the store tables (subscriptions, events, …) in lunora/schema.ts and wire `payment` on createShardDO() to sync customers and subscriptions.", "Payments", "Plan", "Provider", "Recent webhook events", "Renews", "State", "Subscriptions", "Synced customers, subscriptions, and webhook events.", "{count} messages", "{count} pending changes", "{count} pasted cells were skipped", "{count} running", "{name} ({rowCount})", "{rangeStart}-{rangeEnd} of {total}", "{rate} ({count} entries)", "{reachable} reachable", "{reachable} reachable, {failed} unreachable", "{status} — processed", "{title} failed", "Actions", "Add a widget to chart a saved SQL query on this browser.", "Add index on {table}", "Add row", "Add widget", "admin token", "Aggregating…", "all", "All shards", "API", "API reference unavailable", "API resources", "API usage snippets", "API view", "Arguments", "Auth", "Auth failures", "Auth failures over time", "Cache hit rate", "Call this {kind} from your app.", "Cancel", "Cancel job?", "Cc", "changed", "Chart widgets backed by saved read-only SQL queries.", "Lunora surfaces slow functions, error spikes, and cache problems here.", "Clear", "Clear inbox", "Columns unavailable", "CLI", "Client", "collecting samples…", "Combined cache hit rate", "Commit", "Committing…", "Breadcrumb", "Confirm", "Connect", "Connect to Lunora Studio", "Connected", "Connecting…", "Enter your admin token to access the studio.", "From your worker's LUNORA_ADMIN_TOKEN — your project's .dev.vars in dev, or a deployment secret in production.", "Local", "Not connected", "content-type", "Copy", "Copy link", "Copy-paste snippets for calling your functions and tables.", "created", "Cron triggers", "Dashboards", "Data", "Data migrations you run against this shard will be tracked here.", "Data model", "Database", "Database size", "db size", "Instruments", "Instruments unavailable: {error}", "Counter", "Gauge", "Histogram", "count", "range", "trend", "trace", "{name} trend", "Open the exemplar trace {trace}", "Delete", "Delete saved query {name}", "Delete?", "direction", "Direction", "Discard", "down", "Dry run", "Dry run: ", "Edit", "Edit widget", "email", "Email preview", "Email your app sends in dev is captured here — nothing is delivered.", "Email your app sent, captured in dev.", "Enter a migration id", "error", "Error rate", "errors", "Errors", "Errors over time", "expires", "Export", "PNG", "SVG", "Export / Import", "Exported {count} rows.", "Facets", "file:function", "Files", "Filter messages", "Filter tables", "Find table…", "Foreign key", "From", "function", "Function", "Function path", "Functions", "Functions by error rate", "Graph", "Headers", "Health", "Indexes", "Hide", "HTML", "id", "Idle", "Import", "Import (writes rows)?", "Inserted {inserted}, {conflicts} conflicts, {errors} errors.", "Interactive OpenAPI reference and copy-paste snippets for your functions.", "Invalid JSON args: {message}", "Invalid JSON: {message}", "Invalid NDJSON: {message}", "ip", "Jobs queued with runAfter / runAt will appear here.", "JSON", "key", "Key prefix", "key prefix (optional)", "Level filter", "line {line} ({table}): {message}", "List", "Live", "Live — changes stream in automatically", "Live unavailable", "Live unavailable: {liveError}", "Live: on", "Load", "Load more", "Load tables", "Logic", "Logs", "Mail", "Mask sensitive columns", "Metrics", "migration id", "Migration id", "Migrations", "Missing index", "name", "Next", "no", "No active sessions.", "no cache configured", "No captured email.", "No cron triggers.", "No function activity yet.", "No functions or tables to document yet.", "No global tables.", "No headers.", "No HTML body.", "No logs.", "Archive", "Log archive not configured", "Wire pipelineLogSink to a Cloudflare Pipeline → R2 Data Catalog table and set R2_SQL_ACCOUNT_ID, R2_SQL_TOKEN, R2_SQL_BUCKET to browse the durable log archive here.", "No archived logs.", "No archived logs match these filters. The durable archive fills as pipelineLogSink flushes records to R2.", "Function path prefix", "function path…", "user id…", "Minimum level", "min level", "Time", "Level", "Trace", "User", "No migrations have run on this shard.", "No objects.", "No recent errors.", "No scheduled jobs.", "No tables to graph.", "No tables match your filter.", "No text body.", "No users.", "No widgets yet", "Objects you upload to your R2 buckets will appear here.", "Observability", "of {pages}", "off", "Offline", "ok", "OK", "on", "Open {target} {id}", "Open in new tab", "Outcome filter", "Page", "Plain text", "Prefill", "Previous", "Primary key", "processed", "React", "Read and write this table through the typed data model.", "Move widget down", "Move widget up", "Recent errors", "Recent logs", "Recently visited shards — click to switch", "Refresh", "Reload tables", "Remove widget", "RLS Policies", "Policies", "No policies defined", "No `definePolicy` is wired through `.use(rls(...))` in this deployment. Add one to guard a table's rows.", "Read", "Insert", "Update", "Guarded by", "Guarded", "Roles", "No roles defined", "No `defineRole` is registered via `rls(policies, { roles })`. Roles back `ctx.auth.can(...)` permission checks.", "Permissions", "Run as identity (userId)", "Leave empty to run as admin", "Dev only: runs the function as this user so you can test auth and RLS. Forged over the admin gate.", "as {userId}", "No policy", "Covered by {procedure}", "Uncovered — reachable without a policy", "Masked columns", "No tables in this deployment's schema.", "Add a `definePolicy` and wire it through `.use(rls(...))` to populate this matrix.", "Pick a function and an identity, then run it to see the access outcome.", "Probe", "Probe this", "Run as (userId)", "Identity (userId) to run as", "Run probe", "Allowed", "Denied", "Probing…", "Set `runAsIdentity` to forge an identity and probe access.", "Dev only: runs the selected function as this user over the admin gate so you can test auth and RLS.", "Inspect access policies per table, and probe a function as any identity.", "Scaffold access rules", "Writes a new deny-by-default policy file under lunora/, or wires one into a procedure, then reruns codegen. Local dev only.", "New policy file", "Wire into a procedure", "Policy name", "Create policy file", "Procedure file path", "Exported procedure", "Policy set identifier", "Wire RLS", "Creating…", "Wiring…", "Scaffolded {label} and reran codegen. Fill in the `when` predicates before relying on it.", "This change must be made by hand — the scaffolder only adds new, deny-by-default rules.", "requests", "Requests", "Requests / interval", "Requests over time", "Requests per interval over time", "Row actions", "Row document JSON", "Rows per page", "Run", "Run migration", "Run migration?", "Running…", "Query name", "Save", "Save query", "Save widget", "Saved", "schedule", "target", "workflow", "Run now", "Run now?", "Running…", "ran", "attempts", "backlog", "Dead letter", "Drop", "Drop job?", "in flight", "Jobs that exhaust their retry budget are parked here instead of being dropped.", "last tried", "max concurrency", "No dead-letter jobs.", "No workpools.", "pool", "Pools", "pools", "Pools created with createWorkpool appear here once they have activity.", "queued", "Retry", "Schedule view", "Scheduled", "scheduled for", "Scheduled jobs", "Scheduler backlog", "Schema", "Schema graph", "Schema view", "search message", "Search messages", "Search rows", "search table…", "Search…", "Select a function or table to see how to call it from your app.", "Select all rows", "Select row", "Send test", "Sent", "Service level", "Sessions", "Sessions for {userId}", "shard", "Shard", "Shard key", "shard key (optional)", "Shard key (optional)", "Shards", "Shards seen", "Signature", "size", "Snippet flavour", "State-changing admin operations are recorded here.", "status", "Storage", "Storage tier", "Storage tiers", "Studio", "Studio areas", "Studio failed", "Switch to dark theme", "Switch to light theme", "Table", "Table list", "Table touched", "Tables", "To", "Token rides the WebSocket URL — it can surface in browser DevTools and server logs. Use a dev-only token.", "Total database size", "Total errors", "Total requests", "Triggers declared with the cronJobs() builder appear here.", "Try again", "unreachable", "up", "updated", "Uptime", "user agent", "User id", "userId", "Users", "Users who sign up to your app will appear here.", "verified", "Widget title", "yes", "A live stream of recent function logs.", "Browse and edit rows across your shard and global tables.", "Browse auth users and their active sessions.", "Browse objects in your R2 storage buckets.", "Export a shard to NDJSON, or import rows from it.", "At-a-glance connection, error, and shard signals.", "Inspect and cancel scheduled jobs.", "Inspect each table and its columns.", "Inspect row-level-security policies and roles, per table.", "Per-shard health and aggregate metrics.", "Review migration status and run them.", "Run registered queries, mutations, and actions.", "Global tables (D1)", "Shard tables", "{shard} tables", "Tables marked .global() (D1-backed, region-replicated) will appear here.", "Select a table to browse its rows.", "Shared across every tenant, stored once in D1. Includes auth tables.", "Partitioned per shard key into separate Durable Objects — scoped to the shard above.", "avg", "calls", "conflicts", "kind", "last error", "last run", "max", "Most called", "No functions have run on this shard yet.", "Recent", "Slowest", "Insights", "Surface slow functions, error spikes, and cache problems.", "No issues detected.", "Low cache hit rate", "High cache eviction rate", "Slow function", "High error rate", "High write contention", "Storage headroom", "{rate} hit rate over recent traffic.", "{count} entries evicted recently.", "Slowest call took {duration}.", "Slowest call took {duration} — it full-scanned {tables} with no index.", "{rate} of calls failed.", "{rate} of calls hit a write conflict — consider sharding to cut contention.", "{size} of the 10 GiB per-shard ceiling — plan a .shardBy() migration while it still has runway.", "Home", "Reports", "SQL / Functions", "Table editor", "Connection, health, and advisor summary for your deployment.", "Collapse sidebar", "Expand sidebar", "SQL editor", "Run read-only SQL against a shard.", "Run", "SQL query", "SQL problems", "Operation console", "Suggest chart", "Chart type", "Widget type", "Could not suggest a chart for that result.", "Add a chart, a single value, a table, or a note. Everything is saved on this browser.", "Keyboard shortcuts", "Command palette", "Reset", "Stored in this browser. Focus a box and press a key to rebind it.", "Single value", "Text", "Notes for whoever reads this dashboard.", "Charts, values, tables, and notes. Drag a tile to reorder.", "—", "Bar", "Line", "Area", "Suggesting…", "Describe the query you want", "Draft SQL", "Thinking…", "Fix this", "Related", "p50", "p95", "showing a capped set", "Statements executed in the selected window appear here, with throughput and latency over time.", "No queries in this window.", "Throughput", "Mean latency (ms)", "Schema versions", "Data migrations", "{count} pushes", "live", "Show in console", "Every admin call this studio makes is recorded here.", "{count} rows", "Filter", "Each distinct schema shape this shard runs is recorded here, so you can see what changed and when.", "No schema versions recorded yet.", "First recorded version — every table is new.", "{count} change(s)", "change", "Diagram", "Changes", "added", "changed", "removed", "schema", "{count} columns", "changes", "tables", "{count} breaking", "breaking", "safe", "{count} rows", "Showing the first {max} of {count} rows.", "Showing the {n} most common values.", "No rows returned.", "Private", "Reference", "Search queries…", "New query", "Untitled query", "Delete query", "No saved queries yet — they save to this browser as you type.", "Results", "Explain", "Chart", "Split editor and results", "History", "Format", "Clear history", "Keep history on this browser", "No numeric column to chart.", "Click Run to execute your query.", "Untitled", "New tab", "Close tab", "Tab title", "Double-click to rename", "Discard?", "Discard changes", "Keep editing", "Close other tabs", "Close tabs to the right", "Close all tabs", "Discard unsaved tabs?", "column", "keyword", "Columns", "Show all", "Hide all", "Transpose", "Swap rows and columns", "Field", "Row {n}", "Loading…", "No matching row.", "CSV", "SQL", "{count} selected", "Delete {count}", "Delete {count} rows?", "Copy", "Copied", "Cell value", "Close", "Form", "Invalid JSON", "Command palette", "No results.", "Quick links", "Security findings", "Performance issues", "View", "All clear", "No data yet", "Get connected", "No issues found", "No security or performance issues detected.", "Client SDK", "React", "CLI", "Connect an AI agent", "Drive this deployment from an AI agent over the Model Context Protocol — it can list functions and tables, read schemas, and run read-only queries. Writes stay off unless you opt in.", "Copy MCP config", "Copy agent prompt", "Advisors", "Security", "Performance", "Warnings", "Info", "Issue type", "Entity/item", "Description", "{count} errors", "{count} warnings", "{count} suggestions", "No errors detected", "No warnings detected", "No suggestions", "Nothing to report for this deployment.", "Security and performance findings for your deployment.", "Review admin gates, credentials, and log redaction.", "Lunora checks admin-token strength, the live-subscription gate, and request-log redaction here.", "No security issues detected.", "Weak admin token", "Weak auth secret", "Session cookies are not Secure", "Wildcard CORS with credentials", "CSRF/origin guard is off", "Security headers are off", "Live admin subscriptions are ungated", "Request log keeps un-redacted args", "Unknown security finding", "Update your worker to a version of Lunora that describes this finding.", "Your admin token is {length} characters — use at least {min} for a brute-force-resistant secret.", "Your auth secret is {length} characters — use at least {min} (e.g. `openssl rand -hex 32`) to sign sessions safely.", "BETTER_AUTH_URL is a plaintext http:// origin, so session cookies cannot be Secure and ride in cleartext. Serve auth over https:// in production.", "LUNORA_ALLOWED_ORIGINS includes a wildcard while credentials are allowed — browsers reject this and it defeats the allowlist. Name explicit origins instead of *.", "LUNORA_SECURITY_CSRF is off, so cross-origin state-changing cookie requests are not blocked. Re-enable it in production to keep mutations un-forgeable.", "LUNORA_SECURITY_HEADERS is off, so HSTS, CSP, nosniff, and frame-options are not applied. Re-enable the baseline headers in production.", "Apply index", "Apply index on {table}", "Apply?", "CREATE INDEX SQL copied to clipboard.", "LUNORA_WS_BEARER is unset, so the WebSocket upgrade gate is open: live admin subscriptions need no credential. Set it to gate them like the HTTP admin RPCs.", "This worker reports a development environment, so the request log stores raw args and identity. Confirm it isn't a mislabeled production deploy.", "Audit", "A durable log of admin state-changing operations.", "Filter audit log", "filter op, table, id", "No audit entries.", "Notifications", "Registered push devices — endpoint, kind, last-send status, and delivery errors.", "Registered Web Push / FCM devices appear here. Configure lunora/notify.ts with defineNotify({ store }) and register a device with ctx.push.register(...).", "No registered devices.", "Filter devices", "filter endpoint, user", "{count} devices", "endpoint", "last seen", "n/a", "time", "op", "table", "detail", "Auth audit", "Authentication and security events — sign-ins, MFA, and session changes.", "Filter security events", "filter event, actor, IP", "Authentication and security events are recorded here.", "No security events.", "event", "actor", "ip / user agent", "outcome", "success", "failure", "Settings", "Deployment", "Read-only deployment config — vars, secrets, and bindings.", "Environment & bindings", "No environment variables or bindings.", "Open in Cloudflare", "Remove filter", "View-only — values are masked. Edit vars, secrets, and bindings in wrangler or the Cloudflare dashboard.", "URL", "Environment", "Version", "value", "Cascade impact", "Delete preview — rows that would cascade or be blocked", "No related rows found.", "Restrict relations will block this delete.", "Generate rows", "Generate dummy rows", "Seed {table} with Faker-generated rows. Existing rows are not affected.", "Row count", "(max {max})", "Columns to seed", "FK: no rows in {ref} — will skip", "→ {ref}", "No rows generated — all columns were skipped.", "Inserted {count} rows. Skipped FK columns: {cols}", "Inserted {count} rows successfully.", "Inserted {inserted} of {total} rows — {conflicts} skipped as id conflicts.", "Generate & insert", "Inserting…", "Time Travel", "Restore a shard to a point in the last 30 days.", "root", "In-place recovery to any moment in the last 30 days. For older or portable recovery, use the snapshot backup tier.", "Current bookmark", "Restore", "Time (ISO or epoch-ms, last 30 days)", "Preview", "Bookmark for that time", "Or an explicit bookmark (wins over time)", "bookmark string", "Restart the shard now so recovery applies immediately", "Confirm restore", "restarted now", "on next restart", "Restore armed", "Restored to", "Undo bookmark", "Confirm undo", "Undo restore", "role", "Role", "Role (optional)", "Active", "Banned", "unverified", "Manage", "New user", "Create", "Create user", "Creating…", "Password (optional)", "Search users", "Search by email or name…", "Filter by role", "Set role", "Ban user", "Ban reason (optional)", "Days", "Unban", "New password", "Set password", "Impersonate", "Impersonation token", "Revoke", "Revoke all sessions", "Delete user", "Confirm delete", "User details", "Fields", "Linked accounts", "No linked accounts.", "provider", "Unlink", "Security", "Disable two-factor", "No passkeys.", "Operations", "Toggle operation console", "Organizations", "slug", "Members", "Invitations", "Remove", "No organizations.", "Select an organization to view its members and invitations.", "Organizations are not enabled.", "Enable the organization() plugin in your auth config to manage organizations here.", "Browse and manage organizations, members, and invitations.", "Reload", "Manage auth users — roles, bans, sessions, and identity.", "Auth config", "Configuration", "Enabled plugins and session config (read-only).", "Enabled capabilities", "Loading auth configuration…", "Accounts", "Admin", "Passkeys", "Two-factor", "Enabled", "Disabled", "OAuth providers, email templates, and rate limits are configured at deploy time in the better-auth setup and aren't editable here. See the Mail tab for email output.", "Sessions", "Browse and revoke active sessions across all users.", "user", "impersonated by", "Log drains", "Forward logs to Logpush, Tail Workers, or a webhook collector.", "Cloudflare destinations", "Lunora does not ship logs itself — forwarding is handled by Cloudflare. Configure a destination below, then test your collector.", "Logpush", "Stream every request log to R2, a SIEM, or a third-party log service.", "Tail Workers", "Send logs programmatically to a Worker for custom capture and forwarding.", "Workers Logs", "Retain and query recent request logs directly in Cloudflare's dashboard.", "Webhook test", "POST a sample Lunora request-log envelope to your collector to confirm it is reachable.", "https://example.com/logs", "Send test event", "Delivered — status {status} in {latency}ms", "Failed: {message}", "fetch is unavailable in this environment.", "Realtime", "Active WebSocket subscriptions on this shard.", "{count} connections", "{count} subscriptions", "This Studio session's sync client", "Reading the sync client's state…", "Sync client", "{count} pending writes", "Reads client.debug() for the client running in this page — not your application's client. Call client.debug() in your app to diagnose a specific stuck overlay there.", "No shard connection has been opened yet.", "No shards", "Shard", "Socket", "Confirmed watermark", "(default)", "This client holds no live queries or shapes.", "No subscriptions", "Subscription", "Kind", "Acked", "Cursor", "Pending overlays", "No active subscriptions.", "Connection", "admin", "Folder path", "Grid", "Sort", "Name", "Type", "Modified", "Toggle sort direction", "Thumbnail size", "Link expiry", "15m", "1h", "24h", "7d", "Upload", "Uploading…", "Copy URL", "Download", "Delete object?", "Uploaded {key}", "Deleted {key}", "Summary", "Time range", "All time", "Last 5m", "Last 15m", "Last hour", "filter path", "By level", "By function", "Count", "{count} entries", "Snippets", "Couldn't load the OpenAPI spec: {message}", "No OpenAPI spec configured", "Run `lunora codegen` and wire `_generated/openapi.json` to the worker to render the API reference here.", "API operations", "Filter operations", "No operations match your filter.", "Try it", "Request arguments", "Response body", "Response", "application/json", "Arguments (JSON)", "Send", "Sending…", "Send a request to see the response.", "No example for this response.", "Error", "{ms} ms", "Range", "Value in", "relation", "API spec format", "OpenAPI", "OpenRPC", "Params", "Result", "Field", "Required", "JSON-RPC request", "Couldn't load the OpenRPC spec: {message}", "No OpenRPC spec configured", "Run `lunora codegen --api-spec openrpc` and wire `_generated/openrpc.json` to the worker to render the OpenRPC reference here.", "used by", "Orphan", "1 record", "{count} records", "References shard", "Which shard's records are checked for references to these files. Empty = root shard.", "Orphaned objects", "Find records whose file reference points at an object the bucket no longer has.", "Check for orphans", "Checking…", "No dangling references.", "Every record's file reference points at an object that exists in the bucket.", "Missing object", "→", "Showing the first {count} dangling references — the scan was truncated.", "Per-function call counts, error rates, and latency land here after your first request.", "Function and request logs for this shard show up here as your app handles traffic.", "No tables in this shard.", "Browse Vectorize indexes and run similarity searches.", "dimensions", "field", "Indexes declared with .vectorize() or defineVectorIndex() appear here.", "metadata", "metric", "No matches.", "No vector indexes.", "score", "Search", "Search by similarity…", "Searching…", "vectors", "Vectors", "Add a kv_namespaces binding to wrangler.jsonc — it appears here automatically, no wiring needed.", "Browse and edit key-value pairs in your Workers KV namespaces.", "Deleting…", "Expiration", "Filter", "Filter by prefix…", "Filter keys by prefix", "Key is absent or has no value.", "KV", "KV value", "Copy key", "Copy value", "Create key", "Failed to delete {count} keys.", "Format JSON", "Key name", "Expires after", "TTL unit", "TTL must be at least 60 seconds.", "seconds", "minutes", "hours", "days", "Leave blank to keep the current expiration.", "Metadata (JSON)", "Metadata must be valid JSON.", "New key", "No expiration", "Select all", "Select {name}", "Metadata", "Namespace", "No keys.", "No KV namespaces.", "Saving…", "vs. prev.", "Top functions", "No functions called yet.", "Calls", "Avg", "Err", "Avg latency", "cache hit", "Live connections", "sockets", "active subscriptions", "Recent activity", "No recent activity.", "last interval", "{rate} error rate", "cache entries", "Critical", "Degraded", "All systems healthy", "One or more service levels are breached.", "Some service levels need attention.", "All service levels are within target.", "Showing a partial request/error history — one or more shards have more data than the trend chart can display.", "Analytics", "Analytics is not configured.", "Hot shards", "Latency p50 / p95 per function", "No data points yet.", "Request volume per function", "Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN (Analytics Read) in your .dev.vars to enable usage panels.", "Usage and latency from Analytics Engine — request volume, p50/p95, and hot shards.", "(whole bucket)", "Access Rules", "Bucket", "Inspect storage access rules — per bucket, operation, and key prefix.", "No defineStorageRule is wired through .use(storageRules(...)) in this deployment. Add one to gate object access by key prefix.", "No storage rules defined", "Operation", "Storage rules are declared in code with defineStorageRule and gate ctx.storage access per bucket. This view is read-only.", "Write", "Queues", "Queue", "Mode", "Dead-letter", "No queues defined", "Inspect declared Cloudflare Queues — their producer bindings, consumer mode, and dead-letter queue.", "No defineQueue is declared in lunora/queues.ts in this deployment. Add one to offload async work to a Cloudflare Queue.", "Queues are declared in code with defineQueue. Enqueue from a mutation or action with ctx.queues.<name>.send(...); push consumers process batches in the worker.", "No dead-letter queue on {queues}.", "Exhausted messages are dropped after retries. Add a deadLetterQueue to capture them.", "1 message was recently dead-lettered.", "{count} messages were recently dead-lettered.", "Batch mode needs a JSON array body — each element is enqueued as one message.", "Body", "Body must be valid JSON.", "Captured", "Clear log", "Clear {count} messages?", "Cloudflare Queues have no peek API, so this is what push consumers actually processed — not pending depth.", "Consumed messages appear here once a push consumer processes a batch in dev. Send one from the Send tab to see it captured.", "Declare a queue with defineQueue in lunora/queues.ts to enqueue a test message.", "Declared", "Delay must be a non-negative number of seconds.", "Delay (s)", "Delay (seconds)", "DLQ", "Enqueue a JSON message to a declared producer to exercise its consumer. Nothing is captured until the consumer processes it.", "Message", "Message body (JSON)", "Messages", "No consumed messages yet.", "No queues to send to", "Outcome", "Replay", "Replaying…", "Send as batch (JSON array)", "Send message", "Flags", "Inspect feature flags and their live evaluation under a targeting context.", "Feature flags are read in code with ctx.flags.<type>(\"key\", default). They evaluate through the OpenFeature provider configured in lunora/flags.ts; edit the targeting context below to see how each flag resolves for a given audience.", "Targeting context (JSON)", "Targeting context must be a JSON object.", "Targeting context is not valid JSON.", "Live updates unavailable; showing the last evaluation.", "No @lunora/flags provider is wired in this deployment. Add lunora/flags.ts with defineFlags({ provider }) to gate code paths on feature flags.", "No flags provider configured", "A flags provider is configured, but no handler reads a flag yet. Call ctx.flags.boolean(\"key\", false) in a query, mutation, or action.", "No flags read", "Key", "Value", "Reason", "Variant", "Workflows", "Inspect declared Cloudflare Workflows and their bindings.", "Binding", "Class", "No workflows defined", "No defineWorkflow is declared in lunora/workflows.ts in this deployment. Add one to run a durable, multi-step workflow.", "Workflows are declared in code with defineWorkflow and run as durable Cloudflare Workflows. This view is read-only.", "Workflows are declared in code with defineWorkflow and run as durable Cloudflare Workflows. Start an instance and observe its status below.", "Start instance", "Starting…", "Workflow", "Instance id", "Instance id (optional)", "Params (JSON)", "Params (JSON, optional)", "Params must be valid JSON", "Instances", "Status", "Output", "Refresh", "Refreshing…", "Instance history", "Filter by status", "All statuses", "Workflow inspection not configured", "Set CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN in your .dev.vars to enable workflow instance history.", "No instances", "No instances match this filter for the selected workflow.", "Created", "Ended", "Steps", "Step", "Attempts", "Started", "This instance has no recorded steps yet.", "pause", "resume", "terminate", ">100ms avg execution", "50–100ms avg execution", "<50ms avg execution", "{count} tracked statements", "Avg time", "avg", "avg time", "avgTime", "Critical queries", "Exec count", "exec count", "execCount", "Execution count", "Fast queries", "Full statement", "Moderate queries", "No query insights yet", "Overview", "P90 latency", "P95 latency", "Query insights", "Query insights appear once statements are executed against this shard.", "Query leaderboard", "Rows read", "Rows written", "rowsRead", "Slow queries sorted by {sortField}", "Sort by", "Sort queries by", "Statements", "total", "Total time", "total time", "totalTime", "Edit schema", "Add table", "Add column", "Add index", "Rename / drop / change type…", "Table name", "Column name", "Column type", "Index name", "Index fields (comma-separated)", "Optional", "Unique", "Cancel", "Apply", "Applying…", "This edit changes stored data and must go through a migration. Review the migration before applying.", "Open Migrations", "Schema updated.", "Codegen reported diagnostics:", "Editing the schema is only available in local dev.", "Adds a table, column, or index to lunora/schema.ts and reruns codegen.", "Theme", "Dark theme", "Light theme", "System theme", "Integrity", "Fan-out", "auto-scaled: {relayCount}/{maxRelays} relays", "auto-scaled: {relayCount}/{maxRelays} relays (at ceiling)", "Realtime fan-out cost and per-topic subscriber counts for this shard.", "No fan-out activity yet.", "peak {count} subscribers", "Hot topics", "Topic", "Kind", "Subscribers", "Fan-out cost since this instance woke", "Shape pokes", "Whisper broadcasts", "Passes", "Sockets iterated", "Delivered", "Peak width", "Max time", "Membership probes", "Queries run", "Shared from cache", "Global shape polls", "Global reads", "Pairs skipped", "Containers", "Container", "Instance", "Last event", "Detail", "Exit", "When", "No container activity", "Live Cloudflare Containers — current lifecycle state per instance from the log stream.", "Cloudflare Containers are observed from their lifecycle log stream. This shows the current state per instance — ports and health checks aren't carried in that stream.", "No container lifecycle activity yet. Instances declared with defineContainer show up here once they start, sleep, stop, or error.", "Traces", "Recent ctx.trace waterfalls for this shard — the drill-down from a log line.", "Evals", "Queued", "Scores recorded by recordEvaluation — the latest verdict per eval, its trend, and the graded runs behind it.", "min {min} · mean {mean} · max {max}", "Score trend for {name}", "No durable history yet — pass ctx.metrics to recordEvaluation to chart a trend.", "Open the trace {trace}", "No evals recorded", "Call recordEvaluation from a graded run and its score shows up here.", "Search traces", "search trace, span, or function", "Errors only", "Recent traces", "Trace waterfall", "{count} spans", "{name}, {duration}, starts {offset} in{failure}", ", failed: {message}", "Showing the {shown} most recent of {total} traces in the buffer.", "No traces", "Span ID", "Parent span ID", "— (trace root)", "Started at", "+{offset}", "Duration", "Attributes", "Logs ({count})", "Traces recorded with ctx.trace show up here as your app handles traffic. The span buffer resets when the shard hibernates.", "Issues", "Issue", "Source", "Events", "First seen", "Last seen", "No issues", "Grouped error triage — Worker throws and container crashes folded by fingerprint.", "No grouped errors yet. When a function throws or a container crashes, matching errors fold into a single issue here.", "Severity", "Assignee", "Set severity", "Unassigned", "Resolve", "Ignore", "Reopen", "All", "Open", "Resolved", "Ignored", "—", "Toggle issue details", "Suggested fix", "No known fix for this error yet.", "Explain in plain language", "Explaining…", "AI explanation", "Generated by {model}", "No AI binding is configured. Wire an AI binding to enable plain-language explanations — the suggested fix above is always available.", "The AI model could not explain this error right now. The suggested fix above still applies.", "No catalog fix matched this error, so this explanation is the model's own reading of the message. Verify before acting on it.", "optional", "required", "unique", "Plugin fields", "New organization", "Edit organization", "Delete organization", "Delete this organization? Its members, invitations, teams, and custom roles are removed. This cannot be undone.", "Slug (optional — derived from name)", "Logo URL (optional)", "Owner user id (optional)", "Metadata (JSON, optional)", "Add member", "Invite member", "Send invitation", "Change member role", "Change role", "New team", "Rename team", "Rename", "Delete team", "Delete this team and its memberships? This cannot be undone.", "Add team member", "Team members", "No members.", "No teams.", "No team members.", "Teams", "New role", "Edit role", "Delete role", "Delete this custom role? Members keeping it will lose its grants.", "No custom roles.", "Role name", "Permission", "Permission (JSON, e.g. {\"project\":[\"create\",\"update\"]})", "Plugins", "No plugins enabled.", "Sign-in methods", "Email & password", "Social providers", "None", "Custom roles", "Session policy", "Expires in", "Refresh after", "Fresh window", "Cookie cache", "Rate limit", "Max requests", "Window", "Plugin user fields", "Deployment health", "Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint.", "Live liveness, readiness, and per-binding health from the deployment's /_lunora/health endpoint — wire an uptime monitor or a Cloudflare Health Check at it.", "Liveness", "Readiness", "Ready", "Not ready", "Healthy", "Unhealthy", "Checked", "Subsystem checks", "No checks reported.", "Up", "Down", "Health endpoint unavailable", "The health endpoint is in the admin posture. Paste a valid admin token in the connect popover, or set its auth to public.", "Couldn't reach the health endpoint: {message}", "no response"];
1448
+ /** A known studio message id — one of the entries in {@link MESSAGE_IDS}. */
1449
+ type MessageId = (typeof MESSAGE_IDS)[number];
1450
+ /** The locale the studio ships with and falls back to. */
1451
+ declare const DEFAULT_LOCALE = "en";
1452
+ /**
1453
+ * Locale code to catalog. Each catalog maps an English source string (which
1454
+ * doubles as the message id) to its translation. English ships empty: Lingui
1455
+ * compiles the id verbatim when a translation is missing, so the source strings
1456
+ * render as-is. To add a language, register `{ "Some English text": "…" }`.
1457
+ */
1458
+ type StudioCatalogs = Readonly<Record<string, Messages>>;
1459
+ /**
1460
+ * Translate function: `t("Clear")` or `t("{title} failed", { title })`.
1461
+ *
1462
+ * `id` is constrained to a known {@link MessageId}, so a typo is a compile error.
1463
+ * The interpolation `values` stay loosely typed: mapping each id to its exact
1464
+ * placeholder set isn't worth the machinery for the handful of interpolated
1465
+ * strings, so a wrong or missing value key isn't caught at this boundary.
1466
+ */
1467
+ type TFunction = (id: MessageId, values?: Record<string, unknown>) => string;
1468
+ /**
1469
+ * Build a studio-scoped Lingui instance. We deliberately use `@lingui/core`'s
1470
+ * `setupI18n` (a fresh instance) rather than the global singleton so the
1471
+ * studio can never clobber — or be clobbered by — a host app that also uses
1472
+ * Lingui.
1473
+ *
1474
+ * The message compiler is installed explicitly. `@lingui/core` only auto-installs
1475
+ * it when `NODE_ENV !== "production"`, but the studio ships as a library and
1476
+ * relies on the compiler at runtime to interpolate uncompiled source strings
1477
+ * (e.g. `t("{title} failed", { title })`). Without this, a consumer's production
1478
+ * build would render `{title}` literally and `console.warn` on every `t(...)`.
1479
+ *
1480
+ * Pass extra `catalogs` to ship more locales; unknown `locale` codes fall back
1481
+ * to `DEFAULT_LOCALE`.
1482
+ */
1483
+ declare const createStudioI18n: (locale?: string, catalogs?: StudioCatalogs) => I18n;
1484
+ /**
1485
+ * Shared default instance. Backs the i18n context's default value so the
1486
+ * composable studio and individual exported panels resolve their strings even
1487
+ * when rendered without `StudioI18nProvider` (e.g. in tests, or a host's own
1488
+ * admin UI). English-only, so it renders source strings as-is.
1489
+ */
1490
+ declare const studioI18n: I18n;
1491
+ /**
1492
+ * Hook returning a `t` bound to the nearest `StudioI18nProvider` (or the
1493
+ * shared instance when there's none). This is the runtime stand-in for Lingui's
1494
+ * `t` macro — the studio builds with esbuild and tests under Vite 8/Rolldown,
1495
+ * neither of which runs Lingui's Babel macro transform, so call sites pass the
1496
+ * English string as the id directly.
1497
+ */
1498
+ declare const useT: () => TFunction;
1499
+ interface StudioI18nProviderProps {
1500
+ /** Catalogs to register in addition to the built-in English one. */
1501
+ readonly catalogs?: StudioCatalogs;
1502
+ readonly children: ReactNode;
1503
+ /** Reuse an existing instance (wins over `locale`/`catalogs`). */
1504
+ readonly i18n?: I18n;
1505
+ /** Active locale; ignored when `i18n` is supplied. Defaults to `en`. */
1506
+ readonly locale?: string;
1507
+ }
1508
+ /**
1509
+ * Provides a studio-scoped Lingui instance to `useT`. Nesting is safe:
1510
+ * providers sharing the same instance resolve to the same context value.
1511
+ */
1512
+ declare const StudioI18nProvider: ({ catalogs, children, i18n, locale }: StudioI18nProviderProps) => ReactElement;
1513
+ /** Root class the batteries-included app sets so the studio styles stay scoped. */
1514
+ declare const STUDIO_ROOT_CLASS = "lunora-studio-root";
1515
+ export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, AdvisorHealthPanel, type AggregateMetrics, ApiDocsPanel, type ApiDocsPanelProps, ApiReferencePanel, type ApiReferencePanelProps, ApiTab, type ApiTabProps, type AuditEntry, type AuditLogResult, AuditPanel, type AuditPanelProps, type CacheStats, type CapturedMailResult, type CommandItem, CommandPalette, type CommandPaletteProps, ConfirmButton, type ConfirmButtonProps, ConnectionBadge, DEFAULT_AUTO_REFRESH_MS, DEFAULT_INSIGHT_THRESHOLDS, DEFAULT_LOCALE, DataBrowser, type DataBrowserProps, DataFilters, type DeployInfo, DeploymentHealthPanel, type DeploymentHealthPanelProps, type DeploymentHealthProbe, type EditableFilter, ErrorBoundary, type ErrorBoundaryProps, ExportImportPanel, type ExportImportPanelProps, type ExportRow, FileBrowser, type FileBrowserProps, type FilterClause, type FilterOperator, type FunctionCallStat, type FunctionDescriptor, FunctionRunner, type FunctionRunnerProps, FunctionStatsPanel, type FunctionStatsPanelProps, type FunctionStatsResult, GlobalDataBrowser, type GlobalDataBrowserProps, HealthPanel, type HealthPanelProps, HomePanel, type HomePanelProps, type ImportError, type ImportShardResult, type Insight, type InsightKind, type InsightSeverity, type InsightThresholds, InsightsPanel, type InsightsPanelProps, type LogEntry, type LogLevel, LogsPanel, type LogsPanelProps, type LogsResult, MailPanel, type MailPanelProps, type MessageId, MetricsPanel, type MetricsPanelProps, type MigrationDirection, type MigrationRunResult, type MigrationStatus, type MigrationStatusRow, MigrationsPanel, type MigrationsPanelProps, NotificationsPanel, OpenRpcReferencePanel, type OpenRpcReferencePanelProps, PitrPanel, type PitrPanelProps, type ProbeSnapshot, type RunMigrationArgs, STUDIO_ROOT_CLASS, SchemaViewer, type SchemaViewerProps, SecurityAdvisorPanel, type SecurityAuditResult, type SecurityFinding, type SecurityFindingKind, type SecurityFindingLevel, type SettingEntry, type SettingKind, SettingsPanel, type SettingsPanelProps, type SettingsResult, ShardInput, type ShardInputProps, type ShardMetrics, type ShardMetricsResult, SqlEditorPanel, type SqlEditorPanelProps, type StudioCatalogs, StudioI18nProvider, type StudioI18nProviderProps, type StudioTab, type TFunction, TableEditor, type TableEditorProps, type TableIndexInfo, type TableIndexesResult, type TableInfo, type TablePage, type WriteRowArgs, type WriteRowOp, type WriteRowResult, aggregateMetrics, createStudioI18n, deriveInsights, openCommandPalette, shardsToAggregate, studioI18n, toFilterClauses, useAutoRefresh, useDebounced, useT };