@lunora/studio 1.0.0-alpha.19 → 1.0.0-alpha.190

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 (333) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/index.d.mts +1566 -0
  4. package/dist/index.d.ts +962 -803
  5. package/dist/index.mjs +1 -0
  6. package/dist/mount.d.mts +22 -0
  7. package/dist/mount.d.ts +11 -10
  8. package/dist/mount.mjs +1 -0
  9. package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
  10. package/dist/packem_chunks/ApiTab.mjs +1 -0
  11. package/dist/packem_chunks/AuditPanel.mjs +1 -0
  12. package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
  13. package/dist/packem_chunks/ExportImportPanel.mjs +3 -0
  14. package/dist/packem_chunks/FileBrowser.mjs +4 -0
  15. package/dist/packem_chunks/FunctionRunner.mjs +1 -0
  16. package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
  17. package/dist/packem_chunks/HealthPanel.mjs +1 -0
  18. package/dist/packem_chunks/InsightsPanel.mjs +1 -0
  19. package/dist/packem_chunks/LogsPanel.mjs +1 -0
  20. package/dist/packem_chunks/MailPanel.mjs +2 -0
  21. package/dist/packem_chunks/MetricsPanel.mjs +1 -0
  22. package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
  23. package/dist/packem_chunks/PitrPanel.mjs +1 -0
  24. package/dist/packem_chunks/SchemaViewer.mjs +1 -0
  25. package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
  26. package/dist/packem_chunks/SettingsPanel.mjs +1 -0
  27. package/dist/packem_chunks/SqlEditorPanel.mjs +8 -0
  28. package/dist/packem_chunks/TableEditor.mjs +1 -0
  29. package/dist/packem_chunks/agents-panel.mjs +1 -0
  30. package/dist/packem_chunks/analytics-panel.mjs +1 -0
  31. package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
  32. package/dist/packem_chunks/auth-config-panel.mjs +1 -0
  33. package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
  34. package/dist/packem_chunks/containers-panel.mjs +1 -0
  35. package/dist/packem_chunks/dashboards-panel.mjs +1 -0
  36. package/dist/packem_chunks/evals-panel.mjs +1 -0
  37. package/dist/packem_chunks/fanout-panel.mjs +1 -0
  38. package/dist/packem_chunks/flags-panel.mjs +1 -0
  39. package/dist/packem_chunks/issues-panel.mjs +1 -0
  40. package/dist/packem_chunks/kv-browser.mjs +1 -0
  41. package/dist/packem_chunks/log-drains-panel.mjs +4 -0
  42. package/dist/packem_chunks/migrations-route.mjs +1 -0
  43. package/dist/packem_chunks/organizations-panel.mjs +1 -0
  44. package/dist/packem_chunks/payments-panel.mjs +1 -0
  45. package/dist/packem_chunks/permissions-panel.mjs +1 -0
  46. package/dist/packem_chunks/queues-panel.mjs +1 -0
  47. package/dist/packem_chunks/reactors-panel.mjs +1 -0
  48. package/dist/packem_chunks/rls-panel.mjs +1 -0
  49. package/dist/packem_chunks/schedule-panel.mjs +1 -0
  50. package/dist/packem_chunks/sparkline.mjs +1 -0
  51. package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
  52. package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
  53. package/dist/packem_chunks/sync-client-panel.mjs +1 -0
  54. package/dist/packem_chunks/traces-panel.mjs +1 -0
  55. package/dist/packem_chunks/users-panel.mjs +1 -0
  56. package/dist/packem_chunks/vector-browser.mjs +1 -0
  57. package/dist/packem_chunks/workflows-panel.mjs +1 -0
  58. package/dist/packem_shared/ADMIN_FUNCTIONS-B8yyk5BX.mjs +1 -0
  59. package/dist/packem_shared/ApiDocsPanel-BImfQhyJ.mjs +2 -0
  60. package/dist/packem_shared/ApiReferencePanel-CigvHhCa.mjs +1 -0
  61. package/dist/packem_shared/CommandPalette-CSdz9zax.mjs +1 -0
  62. package/dist/packem_shared/ConfirmButton-DU4p72Er.mjs +1 -0
  63. package/dist/packem_shared/ConnectionBadge-B8Hj5DaE.mjs +1 -0
  64. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-DuULO4XM.mjs +1 -0
  65. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
  66. package/dist/packem_shared/DEFAULT_LOCALE-A1Yg5ORA.mjs +1 -0
  67. package/dist/packem_shared/DataBrowser-zqK4s0IE.mjs +4 -0
  68. package/dist/packem_shared/DataFilters-Cocu-WWE.mjs +1 -0
  69. package/dist/packem_shared/ErrorBoundary-BWNF98VF.mjs +1 -0
  70. package/dist/packem_shared/GlobalDataBrowser-BTbqR6Wc.mjs +1 -0
  71. package/dist/packem_shared/HomePanel-_BwLI4TQ.mjs +1 -0
  72. package/dist/packem_shared/MigrationsPanel-BPWzFdxC.mjs +1 -0
  73. package/dist/packem_shared/OpenRpcReferencePanel-C6CM791D.mjs +1 -0
  74. package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.mjs +1 -0
  75. package/dist/packem_shared/ScheduledJobs-B4DPADwk.mjs +1 -0
  76. package/dist/packem_shared/ShardInput-C6mjgAh4.mjs +1 -0
  77. package/dist/packem_shared/Studio-CcWQdYrV.mjs +1 -0
  78. package/dist/packem_shared/StudioApp-fYFz6zZQ.mjs +1 -0
  79. package/dist/packem_shared/StudioI18nProvider-fVsCSs5L.mjs +1 -0
  80. package/dist/packem_shared/advisor-view-CPgOok_h.mjs +1 -0
  81. package/dist/packem_shared/aggregateMetrics-CY05xrYU.mjs +1 -0
  82. package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
  83. package/dist/packem_shared/app.d-BbmO2HA2.d.mts +301 -0
  84. package/dist/packem_shared/app.d-BbmO2HA2.d.ts +301 -0
  85. package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
  86. package/dist/packem_shared/bar-chart-BCsEIQoQ.mjs +6 -0
  87. package/dist/packem_shared/browser-storage-BH1MxLZs.mjs +1 -0
  88. package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
  89. package/dist/packem_shared/card--2hKx4L2.mjs +1 -0
  90. package/dist/packem_shared/cf-links-CBJ5SywP.mjs +1 -0
  91. package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
  92. package/dist/packem_shared/control-button-BOZ5K-FC.mjs +1 -0
  93. package/dist/packem_shared/data-grid-DTBAKZlm.mjs +1 -0
  94. package/dist/packem_shared/data-view-params-qoSTqjAj.mjs +1 -0
  95. package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
  96. package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
  97. package/dist/packem_shared/error-alert-tf5zvSLV.mjs +1 -0
  98. package/dist/packem_shared/grid-features-Dm80ngyR.mjs +6 -0
  99. package/dist/packem_shared/home-panel-DCUKd8Uk.mjs +3 -0
  100. package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
  101. package/dist/packem_shared/internal-B6haJbiP.mjs +2 -0
  102. package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
  103. package/dist/packem_shared/live-status-BuJdUZFU.mjs +1 -0
  104. package/dist/packem_shared/log-fields-SBxKyBug.mjs +1 -0
  105. package/dist/packem_shared/log-line-BoObzuue.mjs +1 -0
  106. package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
  107. package/dist/packem_shared/operation-console-provider-DoloEvon.mjs +1 -0
  108. package/dist/packem_shared/recording-client-BXUIyBL4.mjs +1 -0
  109. package/dist/packem_shared/reference-view-DiikOols.mjs +13 -0
  110. package/dist/packem_shared/schema-diagram-CDj_69jF.mjs +2 -0
  111. package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
  112. package/dist/packem_shared/select-DPyS18Vy.mjs +2 -0
  113. package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
  114. package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
  115. package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
  116. package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
  117. package/dist/packem_shared/sql-result-table-C5y0jwaK.mjs +1 -0
  118. package/dist/packem_shared/stat-card-D0Fe04cX.mjs +1 -0
  119. package/dist/packem_shared/storage-tier-C2mKwYRj.mjs +1 -0
  120. package/dist/packem_shared/studio-OqNyRY1N.mjs +2 -0
  121. package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
  122. package/dist/packem_shared/table-list-sidebar-DHG1UJC4.mjs +1 -0
  123. package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
  124. package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
  125. package/dist/packem_shared/use-admin-query-BKXiqLci.mjs +1 -0
  126. package/dist/packem_shared/use-async-submit-BTr3w2-K.mjs +1 -0
  127. package/dist/packem_shared/use-auth-config-CuM3eJZz.mjs +1 -0
  128. package/dist/packem_shared/use-open-trace-BCW0c9qq.mjs +1 -0
  129. package/dist/packem_shared/use-shard-key-BsP3o5wT.mjs +1 -0
  130. package/dist/packem_shared/use-sql-assistant-BhIMDQHV.mjs +1 -0
  131. package/dist/packem_shared/useDebounced-DVeQ5-oW.mjs +1 -0
  132. package/dist/packem_shared/utils-bhneXptQ.mjs +1 -0
  133. package/dist/packem_shared/virtual-rect-D_j7aLxX.mjs +1 -0
  134. package/dist/packem_shared/wire-codec-Bk4XZGE4.mjs +1 -0
  135. package/dist/standalone/chunk-225VJ77I.js +1 -0
  136. package/dist/standalone/chunk-23C2QL7Z.js +8 -0
  137. package/dist/standalone/chunk-2DX5MROH.js +1 -0
  138. package/dist/standalone/chunk-2H24GTUC.js +1 -0
  139. package/dist/standalone/chunk-2URQKGWU.js +1 -0
  140. package/dist/standalone/chunk-35DM4JJG.js +1 -0
  141. package/dist/standalone/chunk-3FBLWUXD.js +1 -0
  142. package/dist/standalone/chunk-3GNAY2MJ.js +1 -0
  143. package/dist/standalone/chunk-3Q2P62UR.js +1 -0
  144. package/dist/standalone/chunk-46CZEK2Q.js +1 -0
  145. package/dist/standalone/chunk-4GTO7FL5.js +1 -0
  146. package/dist/standalone/chunk-4IUB2OTN.js +3 -0
  147. package/dist/standalone/chunk-4JLGLPWV.js +1 -0
  148. package/dist/standalone/chunk-4L4WTGN5.js +1 -0
  149. package/dist/standalone/chunk-4NRXTCX2.js +1 -0
  150. package/dist/standalone/chunk-4ZEL6BYL.js +1 -0
  151. package/dist/standalone/chunk-55754F6H.js +1 -0
  152. package/dist/standalone/chunk-5IHQJLV7.js +1 -0
  153. package/dist/standalone/chunk-5JDWLCSH.js +1 -0
  154. package/dist/standalone/chunk-5WJXVZMZ.js +1 -0
  155. package/dist/standalone/chunk-5WUSR5UW.js +1 -0
  156. package/dist/standalone/chunk-66UGPQVC.js +1 -0
  157. package/dist/standalone/chunk-6D6Z2KXU.js +1 -0
  158. package/dist/standalone/chunk-6UWFARCM.js +1 -0
  159. package/dist/standalone/chunk-6XL3S5RE.js +1 -0
  160. package/dist/standalone/chunk-746WMHVP.js +1 -0
  161. package/dist/standalone/chunk-AALNIR3V.js +14 -0
  162. package/dist/standalone/chunk-AAVLPU5Q.js +1 -0
  163. package/dist/standalone/chunk-AWHXPIXU.js +1 -0
  164. package/dist/standalone/chunk-B5N47BXE.js +4 -0
  165. package/dist/standalone/chunk-BDO4YYBB.js +6 -0
  166. package/dist/standalone/chunk-BLQN7VBN.js +1 -0
  167. package/dist/standalone/chunk-BOTGXX4H.js +1 -0
  168. package/dist/standalone/chunk-BXSJ3MOM.js +5 -0
  169. package/dist/standalone/chunk-CCRIC2PX.js +1 -0
  170. package/dist/standalone/chunk-CEQOKOTY.js +1 -0
  171. package/dist/standalone/chunk-CMA4PTV7.js +1 -0
  172. package/dist/standalone/chunk-CSUROWL2.js +1 -0
  173. package/dist/standalone/chunk-DDHH7VHP.js +1 -0
  174. package/dist/standalone/chunk-DX6FAHR2.js +1 -0
  175. package/dist/standalone/chunk-E2YWM2QN.js +1 -0
  176. package/dist/standalone/chunk-E7TOMONS.js +4 -0
  177. package/dist/standalone/chunk-EA2JKR5D.js +1 -0
  178. package/dist/standalone/chunk-EJYDHEAO.js +11 -0
  179. package/dist/standalone/chunk-EVTM6Q43.js +1 -0
  180. package/dist/standalone/chunk-EY7RT4YO.js +1 -0
  181. package/dist/standalone/chunk-F7UC63UN.js +1 -0
  182. package/dist/standalone/chunk-FEWMAPNI.js +1 -0
  183. package/dist/standalone/chunk-FKVZRPV5.js +1 -0
  184. package/dist/standalone/chunk-FODLDLE2.js +19 -0
  185. package/dist/standalone/chunk-FSRSK4LY.js +1 -0
  186. package/dist/standalone/chunk-GG2N7OO3.js +1 -0
  187. package/dist/standalone/chunk-GGPSI4ZR.js +1 -0
  188. package/dist/standalone/chunk-GMS77BZD.js +1 -0
  189. package/dist/standalone/chunk-GSVZDPHS.js +1 -0
  190. package/dist/standalone/chunk-H6Y5JYSG.js +1 -0
  191. package/dist/standalone/chunk-HEAQVSNS.js +1 -0
  192. package/dist/standalone/chunk-HKALXRQ5.js +1 -0
  193. package/dist/standalone/chunk-IHMGCHAA.js +1 -0
  194. package/dist/standalone/chunk-IMKTN66X.js +1 -0
  195. package/dist/standalone/chunk-IMOHEGMV.js +1 -0
  196. package/dist/standalone/chunk-IPCE6QOA.js +1 -0
  197. package/dist/standalone/chunk-IS6LVJ6L.js +1 -0
  198. package/dist/standalone/chunk-IWRLEQ72.js +1 -0
  199. package/dist/standalone/chunk-JTDNWSOY.js +1 -0
  200. package/dist/standalone/chunk-JXIPB43K.js +1 -0
  201. package/dist/standalone/chunk-K7AJEMKE.js +1 -0
  202. package/dist/standalone/chunk-KEBHEIFH.js +8 -0
  203. package/dist/standalone/chunk-LAT7MUQV.js +1 -0
  204. package/dist/standalone/chunk-LBMSRD6N.js +1 -0
  205. package/dist/standalone/chunk-LV2OBCJS.js +1 -0
  206. package/dist/standalone/chunk-LV6N3H5U.js +1 -0
  207. package/dist/standalone/chunk-M4XQHWSJ.js +1 -0
  208. package/dist/standalone/chunk-MKL7VDTL.js +15 -0
  209. package/dist/standalone/chunk-MRZ7CD3T.js +1 -0
  210. package/dist/standalone/chunk-MU3P2FI7.js +1 -0
  211. package/dist/standalone/chunk-MXLAOCAN.js +1 -0
  212. package/dist/standalone/chunk-NID5AZAR.js +1 -0
  213. package/dist/standalone/chunk-NZCQC5YS.js +1 -0
  214. package/dist/standalone/chunk-OGUKYRFM.js +1 -0
  215. package/dist/standalone/chunk-OKG3HWSJ.js +1 -0
  216. package/dist/standalone/chunk-OUDWIUT7.js +1 -0
  217. package/dist/standalone/chunk-P5RUFDVX.js +59 -0
  218. package/dist/standalone/chunk-P62LO76E.js +3 -0
  219. package/dist/standalone/chunk-PD6WIDY6.js +1 -0
  220. package/dist/standalone/chunk-PHCXSS6I.js +1 -0
  221. package/dist/standalone/chunk-PLHA3OWK.js +3 -0
  222. package/dist/standalone/chunk-Q4CAKBWN.js +1 -0
  223. package/dist/standalone/chunk-Q5U22R2E.js +2 -0
  224. package/dist/standalone/chunk-QBXHU32E.js +1 -0
  225. package/dist/standalone/chunk-QJNVJU5I.js +1 -0
  226. package/dist/standalone/chunk-QKEJLVC5.js +1 -0
  227. package/dist/standalone/chunk-QY766ZKO.js +1 -0
  228. package/dist/standalone/chunk-RFNGDE33.js +1 -0
  229. package/dist/standalone/chunk-RLLKECZT.js +1 -0
  230. package/dist/standalone/chunk-RPQL45FL.js +1 -0
  231. package/dist/standalone/chunk-RSDM6WG5.js +1 -0
  232. package/dist/standalone/chunk-S3CRZLGS.js +1 -0
  233. package/dist/standalone/chunk-SS2SI65S.js +1 -0
  234. package/dist/standalone/chunk-SSERHMYQ.js +1 -0
  235. package/dist/standalone/chunk-SUDJTC4S.js +1 -0
  236. package/dist/standalone/chunk-TACXQS76.js +1 -0
  237. package/dist/standalone/chunk-TIUMFAN2.js +1 -0
  238. package/dist/standalone/chunk-UAMGVADC.js +1 -0
  239. package/dist/standalone/chunk-ULIQFBZU.js +1 -0
  240. package/dist/standalone/chunk-USCV7TYG.js +1 -0
  241. package/dist/standalone/chunk-UYEZR3BI.js +1 -0
  242. package/dist/standalone/chunk-V3CZW3JB.js +1 -0
  243. package/dist/standalone/chunk-V3VJAA4D.js +1 -0
  244. package/dist/standalone/chunk-VTPGX4ZT.js +1 -0
  245. package/dist/standalone/chunk-WE3N45LG.js +1 -0
  246. package/dist/standalone/chunk-WQLNHY3B.js +1 -0
  247. package/dist/standalone/chunk-WUWBZPUK.js +1 -0
  248. package/dist/standalone/chunk-X74DHIA3.js +1 -0
  249. package/dist/standalone/chunk-XZMOZFE6.js +1 -0
  250. package/dist/standalone/chunk-Y6CXU7T4.js +1 -0
  251. package/dist/standalone/chunk-YBQUFWZB.js +1 -0
  252. package/dist/standalone/chunk-YHFTNPS2.js +1 -0
  253. package/dist/standalone/chunk-YKXDMIHQ.js +1 -0
  254. package/dist/standalone/chunk-YOB2X3FZ.js +1 -0
  255. package/dist/standalone/chunk-YPRQLCKF.js +1 -0
  256. package/dist/standalone/chunk-YVVP4DRM.js +1 -0
  257. package/dist/standalone/chunk-YWROJNX3.js +1 -0
  258. package/dist/standalone/chunk-ZJ4U2EWG.js +1 -0
  259. package/dist/standalone/studio.js +9 -378
  260. package/dist/styles.css +2 -2
  261. package/package.json +23 -20
  262. package/dist/index.js +0 -41
  263. package/dist/mount.js +0 -26
  264. package/dist/packem_shared/ADMIN_FUNCTIONS-CZJCZ4c7.js +0 -47
  265. package/dist/packem_shared/ApiDocsPanel-yEz0fiof.js +0 -842
  266. package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
  267. package/dist/packem_shared/ApiTab-DdubReQI.js +0 -251
  268. package/dist/packem_shared/AuditPanel-CE5ofjCc.js +0 -200
  269. package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
  270. package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
  271. package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
  272. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
  273. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
  274. package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
  275. package/dist/packem_shared/DataBrowser-DpL8U-Nf.js +0 -4475
  276. package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
  277. package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
  278. package/dist/packem_shared/ExportImportPanel-ChsSUCYZ.js +0 -197
  279. package/dist/packem_shared/FileBrowser-DsRBnVhZ.js +0 -2932
  280. package/dist/packem_shared/FunctionRunner-D4cZ6fuA.js +0 -343
  281. package/dist/packem_shared/FunctionStatsPanel-BVelWgNv.js +0 -375
  282. package/dist/packem_shared/GlobalDataBrowser-3X9uRfdO.js +0 -289
  283. package/dist/packem_shared/HealthPanel-CxUVKfvo.js +0 -648
  284. package/dist/packem_shared/HomePanel-tfqpZxuu.js +0 -1334
  285. package/dist/packem_shared/InsightsPanel-DNg3K9XN.js +0 -461
  286. package/dist/packem_shared/LogsPanel-B4LoSRj0.js +0 -827
  287. package/dist/packem_shared/MailPanel-CcpdyWYs.js +0 -440
  288. package/dist/packem_shared/MetricsPanel-CxoyWbNb.js +0 -1611
  289. package/dist/packem_shared/MigrationsPanel-DGwJGWDA.js +0 -239
  290. package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
  291. package/dist/packem_shared/PitrPanel-CKUzyyHi.js +0 -252
  292. package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
  293. package/dist/packem_shared/ScheduledJobs-BWNwIN3I.js +0 -262
  294. package/dist/packem_shared/SchemaViewer-RclXFo9Q.js +0 -2512
  295. package/dist/packem_shared/SecurityAdvisorPanel-Dqql1Z5O.js +0 -92
  296. package/dist/packem_shared/SettingsPanel-D5iTY0YE.js +0 -390
  297. package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
  298. package/dist/packem_shared/SqlEditorPanel-Dj-In-B3.js +0 -13
  299. package/dist/packem_shared/Studio-VWvKNOw4.js +0 -33
  300. package/dist/packem_shared/StudioApp-BhQ6T2pn.js +0 -657
  301. package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
  302. package/dist/packem_shared/TableEditor-BY8bTpCl.js +0 -11
  303. package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
  304. package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
  305. package/dist/packem_shared/app.d-BVJFkXyj.d.ts +0 -300
  306. package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
  307. package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
  308. package/dist/packem_shared/button-BhsN2uZH.js +0 -49
  309. package/dist/packem_shared/card-DURq3ElK.js +0 -175
  310. package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
  311. package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
  312. package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
  313. package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
  314. package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
  315. package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
  316. package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
  317. package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
  318. package/dist/packem_shared/label-D8ykjn5J.js +0 -46
  319. package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
  320. package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
  321. package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
  322. package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
  323. package/dist/packem_shared/sql-editor-panel-CMdxstu5.js +0 -2562
  324. package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
  325. package/dist/packem_shared/studio-D8ry3tJR.js +0 -11043
  326. package/dist/packem_shared/table-_RzNvy3R.js +0 -246
  327. package/dist/packem_shared/table-editor-CWx68ZCg.js +0 -407
  328. package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
  329. package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
  330. package/dist/packem_shared/use-admin-query-BkbdNFNz.js +0 -105
  331. package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
  332. package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
  333. package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
package/dist/index.d.ts CHANGED
@@ -1,18 +1,52 @@
1
- import { F as FunctionDescriptor } from "./packem_shared/app.d-BVJFkXyj.js";
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, type g as StudioTab } from "./packem_shared/app.d-BVJFkXyj.js";
1
+ import { F as FunctionDescriptor } from "./packem_shared/app.d-BbmO2HA2.js";
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-BbmO2HA2.js";
3
3
  import { ReactElement, ReactNode, ErrorInfo, Component, ChangeEvent } from 'react';
4
4
  import { CapturedMail } from '@lunora/mail';
5
- export type { 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';
6
21
  import { Messages, I18n } from '@lingui/core';
7
22
  export type { LunoraClient, ScheduleRecord, StorageObject } from '@lunora/client';
8
- /** A navigable destination shown in the palette. */
23
+ import '@lunora/bindings/analytics';
24
+ /**
25
+ * The studio's navigation taxonomy: which pages exist and which domain each one
26
+ * belongs to.
27
+ *
28
+ * Its own module so the label maps (`nav-labels.ts`) can name these types without
29
+ * importing `studio.tsx`, which pulls in every lazy panel behind it.
30
+ */
31
+ /** Identifier for each built-in studio tab. */
32
+ 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";
33
+ /**
34
+ * One palette entry: a navigable destination, or an action to run.
35
+ *
36
+ * `run` exists because not everything the palette should reach is a page. The
37
+ * operation console has no route and no button — the keyboard chord was the only
38
+ * way in, which makes it undiscoverable, and unreachable at all once an operator
39
+ * rebinds the key and forgets what to.
40
+ */
9
41
  interface CommandItem {
10
42
  /** Localised domain label, shown as a muted suffix to disambiguate. */
11
43
  readonly group: string;
12
44
  /** Localised sub-page label, the primary search target. */
13
45
  readonly label: string;
14
- /** Router path to navigate to on select (e.g. `/logs`). */
15
- readonly to: string;
46
+ /** Run on select. Mutually exclusive with `to`. */
47
+ readonly run?: () => void;
48
+ /** Router path to navigate to on select (e.g. `/logs`). Mutually exclusive with `run`. */
49
+ readonly to?: string;
16
50
  }
17
51
  interface CommandPaletteProps {
18
52
  /** Every navigable destination, in rail order. */
@@ -21,17 +55,15 @@ interface CommandPaletteProps {
21
55
  /** Open the command palette from anywhere (e.g. the top-bar Search button). */
22
56
  declare const openCommandPalette: () => void;
23
57
  /**
24
- * Command palette (⌘K / Ctrl-K) — Supabase-style global search. Rendered inside
25
- * the studio shell so its selection can drive the router's `useNavigate`. Opens
26
- * on the keyboard shortcut or the {@link OPEN_EVENT} the top-bar Search button
27
- * dispatches, filters the navigable destinations by a case-insensitive substring
28
- * over their label and domain, and navigates to the chosen one. Built on the
29
- * studio's Base UI dialog primitive — no `cmdk`/extra dependency — with a small
30
- * arrow-key + Enter affordance over the filtered list.
31
- */
32
- declare const CommandPalette: ({
33
- items
34
- }: CommandPaletteProps) => ReactElement;
58
+ * Command palette (⌘K / Ctrl-K) — Supabase-style global search. Rendered inside
59
+ * the studio shell so its selection can drive the router's `useNavigate`. Opens
60
+ * on the keyboard shortcut or the {@link OPEN_EVENT} the top-bar Search button
61
+ * dispatches, filters the navigable destinations by a case-insensitive substring
62
+ * over their label and domain, and navigates to the chosen one. Built on the
63
+ * studio's Base UI dialog primitive — no `cmdk`/extra dependency — with a small
64
+ * arrow-key + Enter affordance over the filtered list.
65
+ */
66
+ declare const CommandPalette: ({ items }: CommandPaletteProps) => ReactElement;
35
67
  interface ConfirmButtonProps {
36
68
  /** Label for the initial trigger (e.g. `Delete`). */
37
69
  readonly children: string;
@@ -45,33 +77,27 @@ interface ConfirmButtonProps {
45
77
  readonly testId: string;
46
78
  }
47
79
  /**
48
- * A destructive-action button that requires a second click to fire. The first
49
- * click swaps the trigger for an inline `Confirm` / `Cancel` pair rather than a
50
- * blocking `window.confirm`, so the guard is testable and non-modal. The
51
- * trigger keeps its `testId` (so existing tests that click it still reach the
52
- * first step); the actual action only runs on the `${testId}-confirm` click.
53
- */
54
- declare const ConfirmButton: ({
55
- children,
56
- confirmLabel,
57
- disabled,
58
- onConfirm,
59
- testId
60
- }: ConfirmButtonProps) => ReactElement;
61
- /**
62
- * Live-socket status indicator. Reflects the client's aggregate WebSocket health
63
- * so an operator can tell a healthy live channel from a silently-dropped socket
64
- * (a panel showing "Live: on" while the socket is down would otherwise look
65
- * identical to one that's simply idle).
66
- */
80
+ * A destructive-action button that requires a second click to fire. The first
81
+ * click swaps the trigger for an inline `Confirm` / `Cancel` pair rather than a
82
+ * blocking `window.confirm`, so the guard is testable and non-modal. The
83
+ * trigger keeps its `testId` (so existing tests that click it still reach the
84
+ * first step); the actual action only runs on the `${testId}-confirm` click.
85
+ */
86
+ declare const ConfirmButton: ({ children, confirmLabel, disabled, onConfirm, testId }: ConfirmButtonProps) => ReactElement;
87
+ /**
88
+ * Live-socket status indicator. Reflects the client's aggregate WebSocket health
89
+ * so an operator can tell a healthy live channel from a silently-dropped socket
90
+ * (a panel showing "Live: on" while the socket is down would otherwise look
91
+ * identical to one that's simply idle).
92
+ */
67
93
  declare const ConnectionBadge: () => ReactElement;
68
94
  interface ErrorBoundaryProps {
69
95
  readonly children: ReactNode;
70
96
  /**
71
- * Localised fallback heading. When omitted, falls back to `${label} failed`
72
- * (or `Something went wrong` with no label). A class component can't use the
73
- * `useT` hook, so localised text is passed in by its parents.
74
- */
97
+ * Localised fallback heading. When omitted, falls back to `${label} failed`
98
+ * (or `Something went wrong` with no label). A class component can't use the
99
+ * `useT` hook, so localised text is passed in by its parents.
100
+ */
75
101
  readonly fallbackTitle?: string;
76
102
  /** Optional label naming the boundary's region, shown in the fallback. */
77
103
  readonly label?: string;
@@ -82,10 +108,10 @@ interface ErrorBoundaryState {
82
108
  readonly error: Error | null;
83
109
  }
84
110
  /**
85
- * Catches render/lifecycle errors in a panel so one throwing component doesn't
86
- * blank the whole studio shell. Shows the error message with a "Try again"
87
- * button that clears the boundary and re-renders its children.
88
- */
111
+ * Catches render/lifecycle errors in a panel so one throwing component doesn't
112
+ * blank the whole studio shell. Shows the error message with a "Try again"
113
+ * button that clears the boundary and re-renders its children.
114
+ */
89
115
  declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
90
116
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
91
117
  override state: ErrorBoundaryState;
@@ -102,64 +128,106 @@ interface ShardInputProps {
102
128
  readonly value: string;
103
129
  }
104
130
  /**
105
- * Shard-key text field shared by every shard-scoped panel. Backed by a
106
- * `&lt;datalist>` of recently-used shard keys (see {@link loadRecentShards}) so an
107
- * operator can pick a shard they've visited instead of retyping it — the closest
108
- * to a shard picker possible without server-side shard enumeration, which
109
- * Durable Objects don't support. Panels remain responsible for recording a shard
110
- * as used (via `recordShard`) when they actually query it.
111
- */
112
- declare const ShardInput: ({
113
- id,
114
- onChange,
115
- testId,
116
- value
117
- }: ShardInputProps) => ReactElement;
131
+ * Shard-key text field shared by every shard-scoped panel. Backed by a
132
+ * `<datalist>` of recently-used shard keys (see {@link loadRecentShards}) so an
133
+ * operator can pick a shard they've visited instead of retyping it — the closest
134
+ * to a shard picker possible without server-side shard enumeration, which
135
+ * Durable Objects don't support. Panels remain responsible for recording a shard
136
+ * as used (via `recordShard`) when they actually query it.
137
+ */
138
+ declare const ShardInput: ({ id, onChange, testId, value }: ShardInputProps) => ReactElement;
139
+ interface AdvisorHealthPanelProps {
140
+ /** Scopes the `data-testid`s. */
141
+ readonly testId?: string;
142
+ }
143
+ /**
144
+ * The Advisors **Health** tab: one score for the deployment, the coverage split, and
145
+ * every procedure ranked worst-first.
146
+ *
147
+ * Scoring runs client-side over the two admin reads rather than being baked into
148
+ * the worker: `scoreAdvisor` is a pure function, so the panel reuses the exact
149
+ * arithmetic the CLI gate uses — one implementation, no chance of the dashboard
150
+ * and CI disagreeing about the same deployment.
151
+ *
152
+ * Both reads are needed. The advisories are the numerator and the procedures the
153
+ * denominator; without the latter there is no way to tell one failing handler
154
+ * out of two from one out of two hundred.
155
+ */
156
+ declare const AdvisorHealthPanel: ({ testId }: AdvisorHealthPanelProps) => ReactElement;
118
157
  declare const ADMIN_FUNCTION_PREFIX = "__lunora_admin__:";
119
158
  /**
120
- * Fully-qualified reserved paths the studio invokes via the client. The
121
- * `__lunora_admin__:` prefix is spelled out inline rather than interpolated so
122
- * the values stay emittable under `--isolatedDeclarations`. Every path is
123
- * intercepted by `ShardDO` before user dispatch and gated by the server's
124
- * `LUNORA_ADMIN_TOKEN`.
125
- */
159
+ * Fully-qualified reserved paths the studio invokes via the client. The
160
+ * `__lunora_admin__:` prefix is spelled out inline rather than interpolated so
161
+ * the values stay emittable under `--isolatedDeclarations`. Every path is
162
+ * intercepted by `ShardDO` before user dispatch and gated by the server's
163
+ * `LUNORA_ADMIN_TOKEN`.
164
+ */
126
165
  declare const ADMIN_FUNCTIONS: {
166
+ readonly aiAvailable: "__lunora_admin__:aiAvailable";
167
+ readonly aiChartConfig: "__lunora_admin__:aiChartConfig";
168
+ readonly aiGenerateSql: "__lunora_admin__:aiGenerateSql";
169
+ readonly aiTableFilter: "__lunora_admin__:aiTableFilter";
170
+ readonly assignIssue: "__lunora_admin__:assignIssue";
171
+ readonly backRelationCounts: "__lunora_admin__:backRelationCounts";
127
172
  readonly clearCapturedMail: "__lunora_admin__:clearCapturedMail";
173
+ readonly clearQueueMessages: "__lunora_admin__:clearQueueMessages";
128
174
  readonly clearTable: "__lunora_admin__:clearTable";
129
175
  readonly createWorkflowInstance: "__lunora_admin__:createWorkflowInstance";
130
176
  readonly deleteRows: "__lunora_admin__:deleteRows";
131
177
  readonly describeTable: "__lunora_admin__:describeTable";
132
178
  readonly describeTables: "__lunora_admin__:describeTables";
179
+ readonly explainIssue: "__lunora_admin__:explainIssue";
133
180
  readonly exportShard: "__lunora_admin__:exportShard";
134
181
  readonly facetColumn: "__lunora_admin__:facetColumn";
135
182
  readonly getAdvisories: "__lunora_admin__:getAdvisories";
183
+ readonly getAdvisorProcedures: "__lunora_admin__:getAdvisorProcedures";
136
184
  readonly getAuditLog: "__lunora_admin__:getAuditLog";
185
+ readonly getAuthAuditLog: "__lunora_admin__:getAuthAuditLog";
137
186
  readonly getAuthMetrics: "__lunora_admin__:getAuthMetrics";
138
187
  readonly getCapturedMail: "__lunora_admin__:getCapturedMail";
188
+ readonly getFanoutMetrics: "__lunora_admin__:getFanoutMetrics";
139
189
  readonly getFunctionStats: "__lunora_admin__:getFunctionStats";
190
+ readonly getIssues: "__lunora_admin__:getIssues";
191
+ readonly lintSql: "__lunora_admin__:lintSql";
140
192
  readonly listFlags: "__lunora_admin__:listFlags";
193
+ readonly listReactors: "__lunora_admin__:listReactors";
194
+ readonly listPushSubscriptions: "__lunora_admin__:listPushSubscriptions";
141
195
  readonly listQueues: "__lunora_admin__:listQueues";
142
196
  readonly listSubscriptions: "__lunora_admin__:listSubscriptions";
143
197
  readonly listTableIndexes: "__lunora_admin__:listTableIndexes";
198
+ readonly listTablesIndexes: "__lunora_admin__:listTablesIndexes";
144
199
  readonly listWorkflows: "__lunora_admin__:listWorkflows";
145
200
  readonly getLogs: "__lunora_admin__:getLogs";
201
+ readonly getMetricHistory: "__lunora_admin__:getMetricHistory";
202
+ readonly getMetricSeries: "__lunora_admin__:getMetricSeries";
146
203
  readonly getMetrics: "__lunora_admin__:getMetrics";
147
204
  readonly getPitrBookmark: "__lunora_admin__:getPitrBookmark";
205
+ readonly getQueryInsights: "__lunora_admin__:getQueryInsights";
206
+ readonly getQueueMessages: "__lunora_admin__:getQueueMessages";
148
207
  readonly getRequestLog: "__lunora_admin__:getRequestLog";
149
208
  readonly getSecurityAudit: "__lunora_admin__:getSecurityAudit";
150
209
  readonly getSettings: "__lunora_admin__:getSettings";
210
+ readonly getTraces: "__lunora_admin__:getTraces";
151
211
  readonly getWorkflowInstanceStatus: "__lunora_admin__:getWorkflowInstanceStatus";
212
+ readonly ignoreIssue: "__lunora_admin__:ignoreIssue";
152
213
  readonly importShard: "__lunora_admin__:importShard";
153
214
  readonly listTables: "__lunora_admin__:listTables";
154
215
  readonly maskPolicies: "__lunora_admin__:maskPolicies";
155
216
  readonly migrationStatus: "__lunora_admin__:migrationStatus";
217
+ readonly patchRows: "__lunora_admin__:patchRows";
156
218
  readonly pitrRestore: "__lunora_admin__:pitrRestore";
157
219
  readonly readTablePage: "__lunora_admin__:readTablePage";
220
+ readonly replayQueueMessage: "__lunora_admin__:replayQueueMessage";
221
+ readonly resolveIssue: "__lunora_admin__:resolveIssue";
158
222
  readonly rlsPolicies: "__lunora_admin__:rlsPolicies";
223
+ readonly schemaHistory: "__lunora_admin__:schemaHistory";
224
+ readonly schemaVersion: "__lunora_admin__:schemaVersion";
159
225
  readonly runAs: "__lunora_admin__:runAs";
160
226
  readonly runMigration: "__lunora_admin__:runMigration";
161
227
  readonly runSql: "__lunora_admin__:runSql";
228
+ readonly sendQueueMessage: "__lunora_admin__:sendQueueMessage";
162
229
  readonly sendTestMail: "__lunora_admin__:sendTestMail";
230
+ readonly setIssueSeverity: "__lunora_admin__:setIssueSeverity";
163
231
  readonly storageOrphans: "__lunora_admin__:storageOrphans";
164
232
  readonly storageReferences: "__lunora_admin__:storageReferences";
165
233
  readonly storageRules: "__lunora_admin__:storageRules";
@@ -169,10 +237,10 @@ declare const ADMIN_FUNCTIONS: {
169
237
  /** Comparison a {@link FilterClause} applies, mirroring `@lunora/do`'s `FilterOperator`. `contains` is a substring (LIKE). */
170
238
  type FilterOperator = "contains" | "eq" | "gt" | "gte" | "lt" | "lte" | "ne";
171
239
  /**
172
- * One structured column filter passed to `readTablePage`, mirroring `@lunora/do`'s
173
- * `FilterClause`. AND-combined with the substring search and the other clauses.
174
- * `value` is sent as-is and bound server-side, so it never injects SQL.
175
- */
240
+ * One structured column filter passed to `readTablePage`, mirroring `@lunora/do`'s
241
+ * `FilterClause`. AND-combined with the substring search and the other clauses.
242
+ * `value` is sent as-is and bound server-side, so it never injects SQL.
243
+ */
176
244
  interface FilterClause {
177
245
  column: string;
178
246
  operator: FilterOperator;
@@ -208,7 +276,17 @@ interface CacheStats {
208
276
  }
209
277
  /** Health snapshot returned by `__lunora_admin__:getMetrics` for one shard. */
210
278
  interface ShardMetrics {
211
- cache: CacheStats | null;
279
+ /**
280
+ * Reactive-cache stats. `null` is the shard saying "no cache configured";
281
+ * **absent** is a payload that carries no `cache` key at all — an older shard,
282
+ * or any response shaped before the field existed.
283
+ *
284
+ * Optional on purpose: this arrives as untrusted JSON off the admin wire and
285
+ * `useAdminQuery` casts it straight to this type, so declaring it required
286
+ * made the type lie and let consumers write `cache === null` and then
287
+ * dereference `undefined`. Optional makes the compiler reject that.
288
+ */
289
+ cache?: CacheStats | null;
212
290
  databaseSize: null | number;
213
291
  errors: number;
214
292
  requests: number;
@@ -217,26 +295,26 @@ interface ShardMetrics {
217
295
  uptimeMs: number;
218
296
  }
219
297
  /**
220
- * One full-scan attribution entry on a {@link FunctionCallStat}, mirroring
221
- * `@lunora/do`'s `FunctionScanAttribution`: how many times the function
222
- * full-scanned `table`. The causal evidence behind the "missing index" insight.
223
- */
298
+ * One full-scan attribution entry on a {@link FunctionCallStat}, mirroring
299
+ * `@lunora/do`'s `FunctionScanAttribution`: how many times the function
300
+ * full-scanned `table`. The causal evidence behind the "missing index" insight.
301
+ */
224
302
  interface FunctionScanAttribution {
225
303
  scans: number;
226
304
  table: string;
227
305
  }
228
306
  /**
229
- * Per-function execution counters returned by `__lunora_admin__:getFunctionStats`
230
- * for one shard. Mirrors `@lunora/do`'s `FunctionCallStat`. Counters are
231
- * per-DO-instance and reset on hibernation/restart — a "since this instance
232
- * woke" readout. Durations are handler wall-clock milliseconds.
233
- *
234
- * `scans` / `scannedTables` carry the causal full-scan attribution (PLAN3 1.2).
235
- * They're additive — a worker predating the feature reports `scans: 0` and
236
- * `scannedTables: []`, so the fields are optional on the wire and the consumer
237
- * defaults them. `conflicts` (OCC write-contention count, a subset of `errors`)
238
- * is likewise additive and optional for the same back-compat reason.
239
- */
307
+ * Per-function execution counters returned by `__lunora_admin__:getFunctionStats`
308
+ * for one shard. Mirrors `@lunora/do`'s `FunctionCallStat`. Counters are
309
+ * per-DO-instance and reset on hibernation/restart — a "since this instance
310
+ * woke" readout. Durations are handler wall-clock milliseconds.
311
+ *
312
+ * `scans` / `scannedTables` carry the causal full-scan attribution (PLAN3 1.2).
313
+ * They're additive — a worker predating the feature reports `scans: 0` and
314
+ * `scannedTables: []`, so the fields are optional on the wire and the consumer
315
+ * defaults them. `conflicts` (OCC write-contention count, a subset of `errors`)
316
+ * is likewise additive and optional for the same back-compat reason.
317
+ */
240
318
  interface FunctionCallStat {
241
319
  calls: number;
242
320
  /** OCC write-conflict count — a subset of `errors`; absent on a pre-conflict-tracking worker. */
@@ -259,11 +337,11 @@ interface FunctionStatsResult {
259
337
  sinceMs: number;
260
338
  }
261
339
  /**
262
- * One declared index on a table, mirroring `@lunora/do`'s `TableIndexInfo`.
263
- * `type` is the index kind; `fields` the indexed columns (sort fields for rank,
264
- * text + filter fields for search, source field for vector); `unique` is set
265
- * only for unique secondary indexes.
266
- */
340
+ * One declared index on a table, mirroring `@lunora/do`'s `TableIndexInfo`.
341
+ * `type` is the index kind; `fields` the indexed columns (sort fields for rank,
342
+ * text + filter fields for search, source field for vector); `unique` is set
343
+ * only for unique secondary indexes.
344
+ */
267
345
  interface TableIndexInfo {
268
346
  fields: string[];
269
347
  name: string;
@@ -274,31 +352,43 @@ interface TableIndexInfo {
274
352
  interface TableIndexesResult {
275
353
  indexes: TableIndexInfo[];
276
354
  }
277
- /** Severity of a buffered log entry, mirroring `@lunora/do`'s `LogLevel`. */
278
- type LogLevel = "debug" | "error" | "info" | "warn";
279
355
  /**
280
- * One buffered log line returned by `__lunora_admin__:getLogs`. `functionPath`
281
- * is the RPC that produced it (when known); `timestamp` is epoch-ms. Mirrors
282
- * `@lunora/do`'s `LogEntry`.
283
- */
356
+ * Severity of a buffered log entry, mirroring `@lunora/do`'s `LogLevel` — the
357
+ * full seven-tier `ctx.log` ramp (`trace`→`fatal`). A worker predating the
358
+ * un-folded buffer only ever sends the four console tiers, which are a subset.
359
+ */
360
+ type LogLevel = "debug" | "error" | "fatal" | "info" | "log" | "trace" | "warn";
361
+ /**
362
+ * One buffered log line returned by `__lunora_admin__:getLogs`. `functionPath`
363
+ * is the RPC that produced it (when known); `timestamp` is epoch-ms.
364
+ * `instance`/`exitCode` are populated for container lifecycle entries
365
+ * (`instance` = the per-instance Durable Object id, `exitCode` = the process
366
+ * exit code parsed out of a `stop` event). Mirrors `@lunora/do`'s `LogEntry`.
367
+ */
284
368
  interface LogEntry {
369
+ exitCode?: number;
370
+ /** Structured fields from a `ctx.log.<level>(message, fields)` / `ctx.log.with(fields)` call, when present. */
371
+ fields?: Record<string, unknown>;
285
372
  functionPath?: string;
373
+ instance?: string;
286
374
  level: LogLevel;
287
375
  message: string;
288
376
  timestamp: number;
377
+ /** 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. */
378
+ traceId?: string;
289
379
  }
290
380
  /** Payload of a `__lunora_admin__:getLogs` call: the buffered entries, newest first. */
291
381
  interface LogsResult {
292
382
  entries: LogEntry[];
293
383
  }
294
384
  /**
295
- * One recorded admin operation returned by `__lunora_admin__:getAuditLog`,
296
- * mirroring `@lunora/do`'s `AuditEntry`. Unlike the in-memory logs, the audit
297
- * log is durable and survives hibernation/restart. `seq` is a monotonic
298
- * per-shard cursor; `op` the short op name (`writeRow`, `runMigration`,
299
- * `importShard`, `applyCdc`); `table`/`id` are present when the op targets one;
300
- * `detail` carries op-specific context (notably the acting `userId`).
301
- */
385
+ * One recorded admin operation returned by `__lunora_admin__:getAuditLog`,
386
+ * mirroring `@lunora/do`'s `AuditEntry`. Unlike the in-memory logs, the audit
387
+ * log is durable and survives hibernation/restart. `seq` is a monotonic
388
+ * per-shard cursor; `op` the short op name (`writeRow`, `runMigration`,
389
+ * `importShard`, `applyCdc`); `table`/`id` are present when the op targets one;
390
+ * `detail` carries op-specific context (notably the acting `userId`).
391
+ */
302
392
  interface AuditEntry {
303
393
  detail?: Record<string, unknown>;
304
394
  id?: string;
@@ -312,17 +402,17 @@ interface AuditLogResult {
312
402
  entries: AuditEntry[];
313
403
  }
314
404
  /**
315
- * How a deployment binding/var classifies, mirroring `@lunora/do`'s `SettingKind`.
316
- * `var` is a plain Worker var, `secret` a sensitive string (always masked), and
317
- * `binding` a non-string binding object (R2/KV/DO/D1/queue/service).
318
- */
405
+ * How a deployment binding/var classifies, mirroring `@lunora/do`'s `SettingKind`.
406
+ * `var` is a plain Worker var, `secret` a sensitive string (always masked), and
407
+ * `binding` a non-string binding object (R2/KV/DO/D1/queue/service).
408
+ */
319
409
  type SettingKind = "binding" | "secret" | "var";
320
410
  /**
321
- * One row of the read-only deployment-settings view, mirroring `@lunora/do`'s
322
- * `SettingEntry`. `value` is a masked preview for `var`/`secret` strings (never
323
- * the raw secret) and `null` for `binding` entries. The server masks every
324
- * string value, so the studio only ever renders the masked text.
325
- */
411
+ * One row of the read-only deployment-settings view, mirroring `@lunora/do`'s
412
+ * `SettingEntry`. `value` is a masked preview for `var`/`secret` strings (never
413
+ * the raw secret) and `null` for `binding` entries. The server masks every
414
+ * string value, so the studio only ever renders the masked text.
415
+ */
326
416
  interface SettingEntry {
327
417
  /** Coarse runtime class for `binding` entries (`r2`, `kv`, `durable-object`, …). */
328
418
  bindingType?: string;
@@ -331,10 +421,10 @@ interface SettingEntry {
331
421
  value: null | string;
332
422
  }
333
423
  /**
334
- * Best-effort deploy metadata, mirroring `@lunora/do`'s `DeployInfo`. Every
335
- * field is optional: the server reads only what the Worker `env` exposes and
336
- * omits the rest.
337
- */
424
+ * Best-effort deploy metadata, mirroring `@lunora/do`'s `DeployInfo`. Every
425
+ * field is optional: the server reads only what the Worker `env` exposes and
426
+ * omits the rest.
427
+ */
338
428
  interface DeployInfo {
339
429
  deploymentId?: string;
340
430
  environment?: string;
@@ -347,24 +437,24 @@ interface SettingsResult {
347
437
  settings: SettingEntry[];
348
438
  }
349
439
  /**
350
- * Ordering/visual weight of a {@link SecurityFinding}, mirroring `@lunora/do`'s
351
- * `SecurityFindingLevel`. Shares the studio's insight-severity vocabulary so the
352
- * Security and Performance advisors render with one badge palette.
353
- */
440
+ * Ordering/visual weight of a {@link SecurityFinding}, mirroring `@lunora/do`'s
441
+ * `SecurityFindingLevel`. Shares the studio's insight-severity vocabulary so the
442
+ * Security and Performance advisors render with one badge palette.
443
+ */
354
444
  type SecurityFindingLevel = "error" | "info" | "warning";
355
445
  /**
356
- * Which deployment-level security heuristic fired, mirroring `@lunora/do`'s
357
- * `SecurityFindingKind`. The studio maps each kind to a localized title,
358
- * explanation, and remediation hint; the wire payload carries only the kind,
359
- * level, and optional `detail`.
360
- */
446
+ * Which deployment-level security heuristic fired, mirroring `@lunora/do`'s
447
+ * `SecurityFindingKind`. The studio maps each kind to a localized title,
448
+ * explanation, and remediation hint; the wire payload carries only the kind,
449
+ * level, and optional `detail`.
450
+ */
361
451
  type SecurityFindingKind = "admin-token-weak" | "auth-secret-weak" | "cookies-insecure" | "cors-wildcard-credentials" | "csrf-disabled" | "dev-args-unredacted" | "security-headers-disabled" | "ws-gate-open";
362
452
  /**
363
- * One detected security issue from `__lunora_admin__:getSecurityAudit`, mirroring
364
- * `@lunora/do`'s `SecurityFinding`. `detail` carries kind-specific context the
365
- * studio interpolates into the localized copy (e.g. `{ length, min }` for a weak
366
- * admin token); absent when the kind needs none.
367
- */
453
+ * One detected security issue from `__lunora_admin__:getSecurityAudit`, mirroring
454
+ * `@lunora/do`'s `SecurityFinding`. `detail` carries kind-specific context the
455
+ * studio interpolates into the localized copy (e.g. `{ length, min }` for a weak
456
+ * admin token); absent when the kind needs none.
457
+ */
368
458
  interface SecurityFinding {
369
459
  detail?: Record<string, unknown>;
370
460
  kind: SecurityFindingKind;
@@ -385,16 +475,33 @@ interface TablePage {
385
475
  /** Foreign-key columns (column → target table) for `v.id("target")` fields, so the UI can link those cells. */
386
476
  refs?: Record<string, string>;
387
477
  rows: Record<string, unknown>[];
388
- total: number;
478
+ /**
479
+ * The table's PHYSICAL column names (`id`, `_creationTime`, `__doc__` for a
480
+ * canonical shard table), mirroring `@lunora/do`'s `TablePage.sqlColumns`.
481
+ *
482
+ * `columns` is the DISPLAY list, with every `__doc__` field lifted to a
483
+ * top-level column — names no SQL statement can reference. A surface that
484
+ * feeds columns to something SQL-shaped wants this list, not that one.
485
+ *
486
+ * Optional on the client mirror because a shard running an older `@lunora/do`
487
+ * omits it; a caller must treat its absence as "unknown", never as "none".
488
+ */
489
+ sqlColumns?: string[];
490
+ /**
491
+ * Total rows matching the predicate. Absent when the read passed
492
+ * `skipCount: true` — the data browser sources the count from a separate,
493
+ * predicate-keyed read so paging never re-runs the COUNT.
494
+ */
495
+ total?: number;
389
496
  }
390
497
  /** Direction a data migration is run in. Mirrors `@lunora/do`. */
391
498
  type MigrationDirection = "down" | "up";
392
499
  /** Lifecycle of a data-migration run. Mirrors `@lunora/do`. */
393
500
  type MigrationStatus = "completed" | "failed" | "in_progress";
394
501
  /**
395
- * One persisted migration run-state row, as returned by the
396
- * `__lunora_admin__:migrationStatus` RPC (`{ migrations: MigrationStatusRow[] }`).
397
- */
502
+ * One persisted migration run-state row, as returned by the
503
+ * `__lunora_admin__:migrationStatus` RPC (`{ migrations: MigrationStatusRow[] }`).
504
+ */
398
505
  interface MigrationStatusRow {
399
506
  changed: number;
400
507
  cursor: null | string;
@@ -443,23 +550,23 @@ interface ImportShardResult {
443
550
  inserted: Record<string, number>;
444
551
  }
445
552
  /**
446
- * One shard's request total from the worker's `POST /_lunora/admin/shard-traffic`
447
- * endpoint, mirroring `@lunora/runtime`'s `ShardTrafficEntry`. `requests` is the
448
- * shard's lifetime dispatch count (`0` for a shard that failed/timed out);
449
- * `shardKey` is the DO id name (`""` for the root shard). The cross-shard feed
450
- * the `hot_shard` runtime advisor consumes to compute skew.
451
- */
553
+ * One shard's request total from the worker's `POST /_lunora/admin/shard-traffic`
554
+ * endpoint, mirroring `@lunora/runtime`'s `ShardTrafficEntry`. `requests` is the
555
+ * shard's lifetime dispatch count (`0` for a shard that failed/timed out);
556
+ * `shardKey` is the DO id name (`""` for the root shard). The cross-shard feed
557
+ * the `hot_shard` runtime advisor consumes to compute skew.
558
+ */
452
559
  interface ShardTrafficEntry {
453
560
  requests: number;
454
561
  shardKey: string;
455
562
  }
456
563
  /**
457
- * Payload of a `POST /_lunora/admin/shard-traffic` call, mirroring the runtime
458
- * coordinator's shard-traffic fan-out result: one `{ shardKey, requests }` entry
459
- * per live shard plus the ok / failed counts. Fanned out on demand (not on the
460
- * metrics hot path) so the panel can feed `hot_shard` the whole shard set's
461
- * request volumes.
462
- */
564
+ * Payload of a `POST /_lunora/admin/shard-traffic` call, mirroring the runtime
565
+ * coordinator's shard-traffic fan-out result: one `{ shardKey, requests }` entry
566
+ * per live shard plus the ok / failed counts. Fanned out on demand (not on the
567
+ * metrics hot path) so the panel can feed `hot_shard` the whole shard set's
568
+ * request volumes.
569
+ */
463
570
  interface ShardTrafficResult {
464
571
  failed: number;
465
572
  ok: number;
@@ -468,25 +575,26 @@ interface ShardTrafficResult {
468
575
  /** Visual + ordering weight of a detected issue. */
469
576
  type InsightSeverity = "error" | "info" | "warning";
470
577
  /**
471
- * Which heuristic fired. The panel maps each kind to a localized title/detail,
472
- * so the detection stays free of presentation strings (and trivially testable).
473
- *
474
- * `missing-index` is the causal upgrade of `slow-function`: a slow function
475
- * whose latency is explained by a full-table scan. When the scan attribution
476
- * pins the cause, the insight names the scanned table(s) (`tables`) and deep-
477
- * links to the Schema/Indexes tab to add the index, rather than leaving the
478
- * slowness an unattributed symptom.
479
- */
480
- type InsightKind = "high-error-rate" | "high-evictions" | "high-write-contention" | "low-cache-hit-rate" | "missing-index" | "slow-function";
481
- /**
482
- * One detected issue. `value` is the headline number whose meaning depends on
483
- * `kind`: a 0–1 rate for cache-hit / error-rate, a millisecond figure for
484
- * slow-function / missing-index, an entry count for evictions. `fn` is set only
485
- * for per-function insights; `message` carries the last error for
486
- * high-error-rate; `tables` carries the full-scanned tables (busiest first) for
487
- * the causal `missing-index` kind. For `high-write-contention` it is the OCC
488
- * conflict ratio (conflicts / calls).
489
- */
578
+ * Which heuristic fired. The panel maps each kind to a localized title/detail,
579
+ * so the detection stays free of presentation strings (and trivially testable).
580
+ *
581
+ * `missing-index` is the causal upgrade of `slow-function`: a slow function
582
+ * whose latency is explained by a full-table scan. When the scan attribution
583
+ * pins the cause, the insight names the scanned table(s) (`tables`) and deep-
584
+ * links to the Schema/Indexes tab to add the index, rather than leaving the
585
+ * slowness an unattributed symptom.
586
+ */
587
+ type InsightKind = "high-error-rate" | "high-evictions" | "high-write-contention" | "low-cache-hit-rate" | "missing-index" | "slow-function" | "storage-headroom";
588
+ /**
589
+ * One detected issue. `value` is the headline number whose meaning depends on
590
+ * `kind`: a 0–1 rate for cache-hit / error-rate, a millisecond figure for
591
+ * slow-function / missing-index, an entry count for evictions. `fn` is set only
592
+ * for per-function insights; `message` carries the last error for
593
+ * high-error-rate; `tables` carries the full-scanned tables (busiest first) for
594
+ * the causal `missing-index` kind. For `high-write-contention` it is the OCC
595
+ * conflict ratio (conflicts / calls). For `storage-headroom` it is the shard's
596
+ * SQLite size in bytes.
597
+ */
490
598
  interface Insight {
491
599
  fn?: string;
492
600
  kind: InsightKind;
@@ -511,184 +619,180 @@ interface InsightThresholds {
511
619
  minErrorCalls: number;
512
620
  /** Flag functions whose slowest call is at or above this many milliseconds. */
513
621
  slowFunctionMs: number;
622
+ /** Escalate the storage insight to `error` at or above this many bytes. */
623
+ storageCriticalBytes: number;
624
+ /** Flag a shard whose SQLite is at or above this many bytes. */
625
+ storageWarnBytes: number;
514
626
  }
515
627
  declare const DEFAULT_INSIGHT_THRESHOLDS: InsightThresholds;
516
628
  /**
517
- * Derive a prioritised list of issues from the two snapshots the studio
518
- * already pulls — the `getMetrics` health snapshot and the `getFunctionStats`
519
- * per-function table. Pure and side-effect-free: same inputs, same output, so
520
- * the heuristics can be unit-tested without rendering.
521
- *
522
- * Heuristics: low-cache-hit-rate (cache below the threshold once enough samples
523
- * exist — a cold cache isn't a problem); high-evictions (more evictions than
524
- * hits, so the cache is too small or churning on invalidation); missing-index (a
525
- * slow function whose latency is *explained* by a full-table scan — the causal
526
- * upgrade of slow-function, naming the scanned table(s)); slow-function (a
527
- * function whose slowest call crosses the threshold with no scan attribution to
528
- * blame); high-error-rate (a function failing over a meaningful count);
529
- * high-write-contention (a function whose OCC write conflicts make up a
530
- * meaningful share of calls — a sharding candidate).
531
- *
532
- * A slow function with full-scan attribution emits `missing-index` (causal, with
533
- * `tables`) instead of the bare `slow-function`, so the panel can link straight
534
- * to the fix rather than restating the symptom.
535
- */
629
+ * Derive a prioritised list of issues from the two snapshots the studio
630
+ * already pulls — the `getMetrics` health snapshot and the `getFunctionStats`
631
+ * per-function table. Pure and side-effect-free: same inputs, same output, so
632
+ * the heuristics can be unit-tested without rendering.
633
+ *
634
+ * Heuristics: low-cache-hit-rate (cache below the threshold once enough samples
635
+ * exist — a cold cache isn't a problem); high-evictions (more evictions than
636
+ * hits, so the cache is too small or churning on invalidation); missing-index (a
637
+ * slow function whose latency is *explained* by a full-table scan — the causal
638
+ * upgrade of slow-function, naming the scanned table(s)); slow-function (a
639
+ * function whose slowest call crosses the threshold with no scan attribution to
640
+ * blame); high-error-rate (a function failing over a meaningful count);
641
+ * high-write-contention (a function whose OCC write conflicts make up a
642
+ * meaningful share of calls — a sharding candidate); storage-headroom (a shard
643
+ * whose SQLite is closing on the 10 GiB per-DO ceiling).
644
+ *
645
+ * A slow function with full-scan attribution emits `missing-index` (causal, with
646
+ * `tables`) instead of the bare `slow-function`, so the panel can link straight
647
+ * to the fix rather than restating the symptom.
648
+ *
649
+ * `storage-headroom` exists because the runtime's own signal is a one-shot
650
+ * `console.warn` inside the Durable Object — it fires once per DO instance, into
651
+ * a log nobody is tailing at 3am months before the wall. The size is already on
652
+ * the `getMetrics` snapshot the studio pulls, so surfacing it as a finding costs
653
+ * one comparison and puts the warning where someone will actually meet it.
654
+ */
536
655
  declare const deriveInsights: (metrics: ShardMetrics | null, functions: FunctionCallStat[] | null, thresholds?: InsightThresholds) => Insight[];
537
656
  interface InsightsPanelProps {
538
657
  /** Shard key the snapshots target on first load. Defaults to the root shard. */
539
658
  readonly initialShardKey?: string;
540
659
  /**
541
- * Fan the cross-shard traffic feed out for `table`, returning each shard's
542
- * `{ shardKey, requests }` total — the input the `hot_shard` advisor lint
543
- * needs. Defaults to `client.shardTraffic(table)` (the admin-gated
544
- * `POST /_lunora/admin/shard-traffic` fan-out). Best-effort: a rejection
545
- * leaves `hot_shard` dormant rather than blanking the panel. Injectable so
546
- * tests can drive the skew without a worker.
547
- */
660
+ * Fan the cross-shard traffic feed out for `table`, returning each shard's
661
+ * `{ shardKey, requests }` total — the input the `hot_shard` advisor lint
662
+ * needs. Defaults to `client.shardTraffic(table)` (the admin-gated
663
+ * `POST /_lunora/admin/shard-traffic` fan-out). Best-effort: a rejection
664
+ * leaves `hot_shard` dormant rather than blanking the panel. Injectable so
665
+ * tests can drive the skew without a worker.
666
+ */
548
667
  readonly loadShardTraffic?: (table: string) => Promise<ShardTrafficResult>;
549
668
  }
550
669
  /**
551
- * The Performance Advisor — a 1-to-1 of Supabase's Performance Advisor: severity
552
- * tabs over a findings table (via {@link AdvisorView}). It pulls the `getMetrics`
553
- * health snapshot and `getFunctionStats` per-function table for one shard, then
554
- * maps the issues {@link deriveInsights} detects (low cache hit rate, high
555
- * eviction, slow functions, missing indexes, error spikes) into rows. A
556
- * `missing-index` row carries an inline "add the index" jump to the Schema tab.
557
- * Both reads are best-effort — one failing still yields the other's insights.
558
- */
559
- declare const InsightsPanel: ({
560
- initialShardKey,
561
- loadShardTraffic
562
- }: InsightsPanelProps) => ReactElement;
563
- /**
564
- * The Security Advisor a 1-to-1 of Supabase's Security Advisor: severity tabs
565
- * (Errors / Warnings / Info) over a findings table. It pulls `getSecurityAudit`
566
- * (deployment-wide, so it targets the root shard and needs no shard selector) and
567
- * maps each finding the server derived from the Worker `env` weak admin token,
568
- * an open WebSocket gate, a dev-mode request log keeping un-redacted args — into a
569
- * row. These are signals only lunora can surface: Cloudflare's dashboard can't
570
- * reason about lunora's admin/WS gates or its log-redaction policy.
571
- */
670
+ * The Performance Advisor — a 1-to-1 of Supabase's Performance Advisor: severity
671
+ * tabs over a findings table (via {@link AdvisorView}). It pulls the `getMetrics`
672
+ * health snapshot and `getFunctionStats` per-function table for one shard, then
673
+ * maps the issues {@link deriveInsights} detects (low cache hit rate, high
674
+ * eviction, slow functions, missing indexes, error spikes, storage headroom)
675
+ * into rows. A `missing-index` row carries an inline "add the index" jump to the
676
+ * Schema tab. Both reads are best-effort — one failing still yields the other's
677
+ * insights.
678
+ */
679
+ declare const InsightsPanel: ({ initialShardKey, loadShardTraffic }: InsightsPanelProps) => ReactElement;
680
+ /**
681
+ * The Security Advisor — a 1-to-1 of Supabase's Security Advisor: severity tabs
682
+ * (Errors / Warnings / Info) over a findings table. It pulls `getSecurityAudit`
683
+ * (deployment-wide, so it targets the root shard and needs no shard selector) and
684
+ * maps each finding the server derived from the Worker `env` weak admin token,
685
+ * an open WebSocket gate for user subscriptions, a dev-mode request log keeping
686
+ * un-redacted args into a row. These are signals only lunora can surface: Cloudflare's dashboard can't
687
+ * reason about lunora's admin/WS gates or its log-redaction policy.
688
+ */
572
689
  declare const SecurityAdvisorPanel: () => ReactElement;
573
690
  interface ApiDocsPanelProps {
574
691
  /**
575
- * Registered functions to document. Mirrors the list the Functions tab's
576
- * runner and stats panels receive — a query/mutation/action's `kind` is
577
- * compile-time-only, so it must be named here. When omitted the panel still
578
- * renders (tables come from the admin RPC) and shows an empty functions list.
579
- */
692
+ * Registered functions to document. Mirrors the list the Functions tab's
693
+ * runner and stats panels receive — a query/mutation/action's `kind` is
694
+ * compile-time-only, so it must be named here. When omitted the panel still
695
+ * renders (tables come from the admin RPC) and shows an empty functions list.
696
+ */
580
697
  readonly functions?: FunctionDescriptor[];
581
698
  /** Shard key the table list is read from. Defaults to the root shard. */
582
699
  readonly initialShardKey?: string;
583
700
  }
584
- /** Inputs every function snippet builder closes over — the split path plus its `kind`. */
585
- /**
586
- * Per-resource "how to call this from your app" browser, generated from the
587
- * registered functions and tables the studio already has no new endpoints.
588
- * The left rail lists functions grouped by file plus a Tables section; the right
589
- * pane shows copy-paste snippets (React / Client / CLI for functions; the typed
590
- * data-model usage for tables).
591
- *
592
- * Args are a placeholder: the real argument shape lives in the codegen'd `api`
593
- * types this browser never loads, the same way Supabase's usage snippets show
594
- * placeholders.
595
- */
596
- declare const ApiDocsPanel: ({
597
- functions,
598
- initialShardKey
599
- }: ApiDocsPanelProps) => ReactElement;
701
+ /**
702
+ * Per-resource "how to call this from your app" browser, generated from the
703
+ * registered functions and tables the studio already has no new endpoints.
704
+ * The left rail lists functions grouped by file plus a Tables section; the right
705
+ * pane shows copy-paste snippets (React / Client / CLI for functions; the typed
706
+ * data-model usage for tables).
707
+ *
708
+ * Args are a placeholder: the real argument shape lives in the codegen'd `api`
709
+ * types this browser never loads, the same way Supabase's usage snippets show
710
+ * placeholders.
711
+ */
712
+ declare const ApiDocsPanel: ({ functions, initialShardKey }: ApiDocsPanelProps) => ReactElement;
600
713
  interface ApiReferencePanelProps {
601
714
  /**
602
- * Inline OpenAPI document. When supplied the panel renders it directly and
603
- * skips the fetch — used by the mock harness and by hosts that already hold
604
- * the generated spec. When omitted the panel fetches the worker's
605
- * admin-gated `GET /_lunora/admin/openapi` endpoint via the client.
606
- */
715
+ * Inline OpenAPI document. When supplied the panel renders it directly and
716
+ * skips the fetch — used by the mock harness and by hosts that already hold
717
+ * the generated spec. When omitted the panel fetches the worker's
718
+ * admin-gated `GET /_lunora/admin/openapi` endpoint via the client.
719
+ */
607
720
  readonly spec?: unknown;
608
721
  }
609
722
  /**
610
- * In-studio OpenAPI reference: renders the generated OpenAPI 3.1 document with
611
- * the studio-native {@link ReferenceView} — a tag-grouped operation browser,
612
- * schema tables, a live "try it" console, and copy-paste request samples, all
613
- * themed to the studio. The spec comes from an inline
614
- * {@link ApiReferencePanelProps.spec} prop, or — by default — the worker's
615
- * admin-gated `GET /_lunora/admin/openapi` endpoint fetched through the client.
616
- *
617
- * This replaced the embedded Scalar reference (a Vue app in React): Scalar's
618
- * portal/overlay layers repeatedly intercepted clicks and froze the tab, and it
619
- * shipped a multi-megabyte bundle. The native view is overlay-free and reuses
620
- * the studio's own primitives.
621
- */
622
- declare const ApiReferencePanel: ({
623
- spec: inlineSpec
624
- }: ApiReferencePanelProps) => ReactElement;
723
+ * In-studio OpenAPI reference: renders the generated OpenAPI 3.1 document with
724
+ * the studio-native {@link ReferenceView} — a tag-grouped operation browser,
725
+ * schema tables, a live "try it" console, and copy-paste request samples, all
726
+ * themed to the studio. The spec comes from an inline
727
+ * {@link ApiReferencePanelProps.spec} prop, or — by default — the worker's
728
+ * admin-gated `GET /_lunora/admin/openapi` endpoint fetched through the client.
729
+ *
730
+ * This replaced the embedded Scalar reference (a Vue app in React): Scalar's
731
+ * portal/overlay layers repeatedly intercepted clicks and froze the tab, and it
732
+ * shipped a multi-megabyte bundle. The native view is overlay-free and reuses
733
+ * the studio's own primitives.
734
+ */
735
+ declare const ApiReferencePanel: ({ spec: inlineSpec }: ApiReferencePanelProps) => ReactElement;
625
736
  interface ApiTabProps {
626
737
  /** Registered functions documented by the snippets sub-view. Threaded host → studio. */
627
738
  readonly functions?: FunctionDescriptor[];
628
739
  /** Shard key the snippets view reads its table list from. */
629
740
  readonly initialShardKey?: string;
630
741
  /**
631
- * Inline OpenAPI document for the reference sub-view. When omitted the
632
- * reference fetches the worker's `GET /_lunora/admin/openapi` endpoint.
633
- */
742
+ * Inline OpenAPI document for the reference sub-view. When omitted the
743
+ * reference fetches the worker's `GET /_lunora/admin/openapi` endpoint.
744
+ */
634
745
  readonly openApiSpec?: unknown;
635
746
  /**
636
- * Inline OpenRPC document for the reference sub-view's OpenRPC format. When
637
- * omitted the OpenRPC view fetches the worker's `GET /_lunora/admin/openrpc`
638
- * endpoint. OpenRPC is the RPC-native spec (RPC functions only); OpenAPI
639
- * additionally covers `httpRouter()` REST routes.
640
- */
747
+ * Inline OpenRPC document for the reference sub-view's OpenRPC format. When
748
+ * omitted the OpenRPC view fetches the worker's `GET /_lunora/admin/openrpc`
749
+ * endpoint. OpenRPC is the RPC-native spec (RPC functions only); OpenAPI
750
+ * additionally covers `httpRouter()` REST routes.
751
+ */
641
752
  readonly openRpcSpec?: unknown;
642
753
  }
643
754
  /**
644
- * The studio's API tab. Hosts two complementary surfaces behind a segmented
645
- * toggle. The Reference view renders a machine-readable spec — the OpenAPI 3.1
646
- * document or the RPC-native OpenRPC document — through the studio-native
647
- * reference UI (operation browser, schema tables, a live "try it" console, and a
648
- * request-sample rail), with a small format switch between them. The Snippets
649
- * view is the per-function React / Client / CLI copy-paste browser
650
- * (`api-docs-panel`), the lightweight "how do I call this" DX.
651
- *
652
- * Reference is the default; OpenAPI is the default format (the richer,
653
- * spec-driven view that also covers REST). Each format degrades to a clear
654
- * empty state when its spec isn't wired.
655
- */
656
- declare const ApiTab: ({
657
- functions,
658
- initialShardKey,
659
- openApiSpec,
660
- openRpcSpec
661
- }: ApiTabProps) => ReactElement;
755
+ * The studio's API tab. Hosts two complementary surfaces behind a segmented
756
+ * toggle. The Reference view renders a machine-readable spec — the OpenAPI 3.1
757
+ * document or the RPC-native OpenRPC document — through the studio-native
758
+ * reference UI (operation browser, schema tables, a live "try it" console, and a
759
+ * request-sample rail), with a small format switch between them. The Snippets
760
+ * view is the per-function React / Client / CLI copy-paste browser
761
+ * (`api-docs-panel`), the lightweight "how do I call this" DX.
762
+ *
763
+ * Reference is the default; OpenAPI is the default format (the richer,
764
+ * spec-driven view that also covers REST). Each format degrades to a clear
765
+ * empty state when its spec isn't wired.
766
+ */
767
+ declare const ApiTab: ({ functions, initialShardKey, openApiSpec, openRpcSpec }: ApiTabProps) => ReactElement;
662
768
  interface OpenRpcReferencePanelProps {
663
769
  /**
664
- * Inline OpenRPC document. When supplied the panel renders it directly and
665
- * skips the fetch — used by the mock harness and by hosts that already hold
666
- * the generated spec. When omitted the panel fetches the worker's
667
- * admin-gated `GET /_lunora/admin/openrpc` endpoint via the client.
668
- */
770
+ * Inline OpenRPC document. When supplied the panel renders it directly and
771
+ * skips the fetch — used by the mock harness and by hosts that already hold
772
+ * the generated spec. When omitted the panel fetches the worker's
773
+ * admin-gated `GET /_lunora/admin/openrpc` endpoint via the client.
774
+ */
669
775
  readonly spec?: unknown;
670
776
  }
671
777
  /**
672
- * In-studio OpenRPC reference. OpenRPC is the RPC-native spec (a `methods` array
673
- * over the JSON-RPC-shaped `POST /_lunora/rpc` transport), documenting the RPC
674
- * functions only. It is parsed into the shared `ApiModel` and rendered by the
675
- * same studio-native {@link ReferenceView} the OpenAPI panel uses, so both
676
- * formats share one operation browser, schema view, try-it console, and sample
677
- * rail.
678
- *
679
- * The spec comes from an inline {@link OpenRpcReferencePanelProps.spec} prop, or
680
- * — by default — the worker's admin-gated `GET /_lunora/admin/openrpc` endpoint.
681
- */
682
- declare const OpenRpcReferencePanel: ({
683
- spec: inlineSpec
684
- }: OpenRpcReferencePanelProps) => ReactElement;
685
- /**
686
- * A shareable data-browser view: the table, storage tier, shard, structured
687
- * filters, substring search, and sort that together reproduce exactly what the
688
- * grid is showing. This is the unit that is serialized into the URL (so the link
689
- * IS the query) and persisted by name in {@link loadSavedQueries}. Every field is
690
- * optional so a partial/legacy URL still hydrates into a sensible default view.
691
- */
778
+ * In-studio OpenRPC reference. OpenRPC is the RPC-native spec (a `methods` array
779
+ * over the JSON-RPC-shaped `POST /_lunora/rpc` transport), documenting the RPC
780
+ * functions only. It is parsed into the shared `ApiModel` and rendered by the
781
+ * same studio-native {@link ReferenceView} the OpenAPI panel uses, so both
782
+ * formats share one operation browser, schema view, try-it console, and sample
783
+ * rail.
784
+ *
785
+ * The spec comes from an inline {@link OpenRpcReferencePanelProps.spec} prop, or
786
+ * — by default — the worker's admin-gated `GET /_lunora/admin/openrpc` endpoint.
787
+ */
788
+ declare const OpenRpcReferencePanel: ({ spec: inlineSpec }: OpenRpcReferencePanelProps) => ReactElement;
789
+ /**
790
+ * A shareable data-browser view: the table, storage tier, shard, structured
791
+ * filters, substring search, and sort that together reproduce exactly what the
792
+ * grid is showing. This is the unit that is serialized into the URL (so the link
793
+ * IS the query) and persisted by name in {@link loadSavedQueries}. Every field is
794
+ * optional so a partial/legacy URL still hydrates into a sensible default view.
795
+ */
692
796
  interface DataView {
693
797
  /** Structured `column operator value` clauses, AND-combined with the search. */
694
798
  filters?: FilterClause[];
@@ -711,57 +815,58 @@ interface SavedQuery {
711
815
  name: string;
712
816
  view: DataView;
713
817
  }
714
- /** Saved queries, most-recently-saved first. Empty when storage is unavailable or empty. */
715
818
  interface DataBrowserProps {
716
819
  /**
717
- * Allow editing: surfaces insert/edit/delete actions that issue
718
- * `__lunora_admin__:writeRow` ops through the schema-aware writer. Off by
719
- * default — the browser is read-only unless the host opts in.
720
- */
820
+ * Allow editing: surfaces insert/edit/delete actions that issue
821
+ * `__lunora_admin__:writeRow` ops through the schema-aware writer. Off by
822
+ * default — the browser is read-only unless the host opts in.
823
+ */
721
824
  readonly editable?: boolean;
722
825
  /**
723
- * Names of the `.global()` (D1-backed) tables. A `v.id` ref cell whose target
724
- * is one of these is followed cross-tier via `onNavigateToGlobal` instead of
725
- * being read from this shard (where it doesn't exist). Supplied by the Table
726
- * editor; defaults to none when the browser is used standalone.
727
- */
826
+ * Names of the `.global()` (D1-backed) tables. A `v.id` ref cell whose target
827
+ * is one of these is followed cross-tier via `onNavigateToGlobal` instead of
828
+ * being read from this shard (where it doesn't exist). Supplied by the Table
829
+ * editor; defaults to none when the browser is used standalone.
830
+ */
728
831
  readonly globalTableNames?: ReadonlySet<string>;
729
832
  /** Structured filters to hydrate from a shared link / saved query. */
730
833
  readonly initialFilters?: FilterClause[];
731
834
  /** Sort to hydrate from a shared link / saved query. */
732
835
  readonly initialOrderBy?: DataView["orderBy"];
836
+ /** Comma-separated pinned columns from the URL; wins over the per-browser default. */
837
+ readonly initialPins?: string;
733
838
  /** Substring search to hydrate from a shared link / saved query. */
734
839
  readonly initialSearch?: string;
735
840
  /** Shard key the browser targets on first load. Defaults to the root shard. */
736
841
  readonly initialShardKey?: string;
737
842
  /**
738
- * Follow a `v.id` ref whose target is a global table — the Table editor switches
739
- * to the global tier and opens that table. When omitted (standalone use), a ref
740
- * to a global table falls through to the in-shard read (and surfaces its error).
741
- */
843
+ * Follow a `v.id` ref whose target is a global table — the Table editor switches
844
+ * to the global tier and opens that table. When omitted (standalone use), a ref
845
+ * to a global table falls through to the in-shard read (and surfaces its error).
846
+ */
742
847
  readonly onNavigateToGlobal?: (table: string, id: string) => void;
743
848
  /**
744
- * Navigate the URL to a table (the Table editor pushes `?table=…`), opening it
745
- * clean; `options.search` pre-fills the search for an FK-cell traversal.
746
- * Omitted in standalone use.
747
- */
849
+ * Navigate the URL to a table (the Table editor pushes `?table=…`), opening it
850
+ * clean; `options.search` pre-fills the search for an FK-cell traversal.
851
+ * Omitted in standalone use.
852
+ */
748
853
  readonly onSelectTable?: (table: string, options?: {
749
854
  search?: string;
750
855
  }) => void;
751
856
  /**
752
- * Called whenever the loaded view (shard / search / filters / sort) changes, so
753
- * the host can mirror it to the URL — making every view a shareable link.
754
- * Omitted in standalone use (view state stays in-component).
755
- */
857
+ * Called whenever the loaded view (shard / search / filters / sort) changes, so
858
+ * the host can mirror it to the URL — making every view a shareable link.
859
+ * Omitted in standalone use (view state stays in-component).
860
+ */
756
861
  readonly onViewChange?: (view: Pick<DataView, "filters" | "orderBy" | "search" | "shard">) => void;
757
862
  /** Rows requested per page. Clamped server-side to `[1, 500]`. */
758
863
  readonly pageSize?: number;
759
864
  /**
760
- * The canned-query toolbar's handlers + saved list. Supplied by the Table editor
761
- * (it owns the router and the `saved-queries` localStorage helper); omitted in
762
- * standalone use, which hides the toolbar entirely. `onSaveQuery` receives the
763
- * name plus the current view to persist.
764
- */
865
+ * The canned-query toolbar's handlers + saved list. Supplied by the Table editor
866
+ * (it owns the router and the `saved-queries` localStorage helper); omitted in
867
+ * standalone use, which hides the toolbar entirely. `onSaveQuery` receives the
868
+ * name plus the current view to persist.
869
+ */
765
870
  readonly queryBar?: {
766
871
  readonly onApplyQuery: (query: SavedQuery) => void;
767
872
  readonly onCopyLink: () => void;
@@ -770,235 +875,274 @@ interface DataBrowserProps {
770
875
  readonly saved: ReadonlyArray<SavedQuery>;
771
876
  };
772
877
  /**
773
- * The schema/source selector rendered at the top of the table-list sidebar —
774
- * the Table editor's `schema public ▾` switch. Supplied when this browser is
775
- * composed into the Table editor; omitted when it's used alone.
776
- */
878
+ * The schema/source selector rendered at the top of the table-list sidebar —
879
+ * the Table editor's `schema public ▾` switch. Supplied when this browser is
880
+ * composed into the Table editor; omitted when it's used alone.
881
+ */
777
882
  readonly schemaSwitch?: ReactNode;
778
883
  /**
779
- * The table named in the URL. Drives the selection — a deep link or browser
780
- * back/forward to a different `?table=…` re-opens that table. Supplied by the
781
- * Table editor; omitted in standalone use (selection stays purely in-component).
782
- */
884
+ * The table named in the URL. Drives the selection — a deep link or browser
885
+ * back/forward to a different `?table=…` re-opens that table. Supplied by the
886
+ * Table editor; omitted in standalone use (selection stays purely in-component).
887
+ */
783
888
  readonly tableParam?: string;
784
889
  }
785
890
  /**
786
- * Read-only data browser for a single shard's SQLite database. Lists the user
787
- * tables (via the `__lunora_admin__:listTables` RPC), then pages through the
788
- * rows of whichever table is selected (`__lunora_admin__:readTablePage`).
789
- *
790
- * Both calls travel over the ordinary `useLunora` client transport; the
791
- * admin RPCs are intercepted inside the Durable Object and are gated by the
792
- * server's `LUNORA_ADMIN_TOKEN`. The host is responsible for configuring the
793
- * client's auth token — this component issues no credentials of its own.
794
- *
795
- * The table view is built on a headless `@tanstack/react-table` model: column
796
- * defs derive from `page.columns`, sorting and (global) filtering run
797
- * page-locally over the loaded rows, and the rendered rows are virtualized with
798
- * `@tanstack/react-virtual` so a large page never inflates the DOM. None of this
799
- * touches the server — pagination still flows through `readTablePage`. All of
800
- * that state lives in {@link useDataBrowser}; this component is just the markup.
801
- */
802
- declare const DataBrowser: ({
803
- editable,
804
- globalTableNames,
805
- initialFilters,
806
- initialOrderBy,
807
- initialSearch,
808
- initialShardKey,
809
- onNavigateToGlobal,
810
- onSelectTable,
811
- onViewChange,
812
- pageSize: initialPageSize,
813
- queryBar,
814
- schemaSwitch,
815
- tableParam
816
- }: DataBrowserProps) => ReactElement;
891
+ * Read-only data browser for a single shard's SQLite database. Lists the user
892
+ * tables (via the `__lunora_admin__:listTables` RPC), then pages through the
893
+ * rows of whichever table is selected (`__lunora_admin__:readTablePage`).
894
+ *
895
+ * Both calls travel over the ordinary `useLunora` client transport; the
896
+ * admin RPCs are intercepted inside the Durable Object and are gated by the
897
+ * server's `LUNORA_ADMIN_TOKEN`. The host is responsible for configuring the
898
+ * client's auth token — this component issues no credentials of its own.
899
+ *
900
+ * The table view is built on a headless `@tanstack/react-table` model: column
901
+ * defs derive from `page.columns`, sorting and (global) filtering run
902
+ * page-locally over the loaded rows, and the rendered rows are virtualized with
903
+ * `@tanstack/react-virtual` so a large page never inflates the DOM. None of this
904
+ * touches the server — pagination still flows through `readTablePage`. All of
905
+ * that state lives in {@link useDataBrowser}; this component is just the markup.
906
+ */
907
+ declare const DataBrowser: ({ editable, globalTableNames, initialFilters, initialOrderBy, initialPins, initialSearch, initialShardKey, onNavigateToGlobal, onSelectTable, onViewChange, pageSize: initialPageSize, queryBar, schemaSwitch, tableParam }: DataBrowserProps) => ReactElement;
817
908
  /** A filter row as edited in the UI — the value is always a string until coerced for the wire. */
818
909
  interface EditableFilter {
819
910
  column: string;
911
+ /**
912
+ * The exact wire value this row carries, when the row did NOT come from the
913
+ * operator typing into the box: a facet-value click, or hydration from a URL
914
+ * / saved query. Present as a one-element tuple so `null` — itself a
915
+ * meaningful filter value — is distinguishable from "no literal".
916
+ *
917
+ * `value` still holds that value's display text (the box has to show
918
+ * something), but {@link toFilterClauses} sends the literal instead of
919
+ * re-deriving a value from the text. Re-deriving is what made a facet
920
+ * disagree with the rows it summarises: a TEXT column faceted as `12345 (2)`
921
+ * round-tripped through {@link coerceFilterValue} as the NUMBER `12345`, and
922
+ * the server compares it against `json_extract(__doc__, …)`, which has no
923
+ * type affinity — so `12345 = '12345'` is false and the grid came back
924
+ * empty under a sidebar still reading "2". A NULL group fared the same way,
925
+ * flattening to `""`.
926
+ *
927
+ * Cleared the moment the operator edits the column or the value, because
928
+ * from then on the text IS the source of truth and must be coerced like any
929
+ * typed value (`age > 18` has to compare numerically).
930
+ */
931
+ literal?: [unknown];
820
932
  operator: FilterOperator;
821
933
  value: string;
822
934
  }
823
935
  /**
824
- * Convert the UI's string-valued filter rows into wire {@link FilterClause}s:
825
- * drops rows with no column, and coerces a numeric string to a number for the
826
- * comparison operators (so `age > 18` compares numerically, not lexically).
827
- * `contains` always stays a string.
828
- */
936
+ * Convert the UI's string-valued filter rows into wire {@link FilterClause}s:
937
+ * drops rows with no column, and coerces a canonical numeric string to a number for
938
+ * every comparison operator (so `age > 18` compares numerically, not lexically, and
939
+ * an `eq` on a numeric column still matches — see {@link coerceFilterValue} for why a
940
+ * numeric-looking but non-canonical string like a zip code stays text). `contains`
941
+ * always stays a string.
942
+ *
943
+ * A row carrying a {@link EditableFilter.literal} skips coercion entirely and
944
+ * sends that value verbatim: it was produced by a facet or a saved view, not
945
+ * typed, so its type is already known and guessing one from its text can only
946
+ * lose. `contains` is the exception — it is a substring test over text, so it
947
+ * takes the text either way.
948
+ */
829
949
  declare const toFilterClauses: (filters: ReadonlyArray<EditableFilter>) => FilterClause[];
830
950
  /**
831
- * The data browser's filtering controls: the substring search box plus a stack
832
- * of structured `column operator value` rows. All state is owned by the parent
833
- * (the data-browser model); this is the control markup, emitting the full
834
- * filter array up on every edit. Raw strings (no i18n) to match the surrounding
835
- * data-browser controls.
836
- */
837
- declare const DataFilters: ({
838
- columns,
839
- filters,
840
- onFiltersChange,
841
- onSearchChange,
842
- search
843
- }: {
951
+ * The data browser's filtering controls: the substring search box plus a stack
952
+ * of structured `column operator value` rows. All state is owned by the parent
953
+ * (the data-browser model); this is the control markup, emitting the full
954
+ * filter array up on every edit. Raw strings (no i18n) to match the surrounding
955
+ * data-browser controls.
956
+ *
957
+ * ## Why these rows are NOT run through the mask preview
958
+ *
959
+ * Every other read surface in the shard browser honours the "Mask sensitive
960
+ * columns" toggle — grid cells, the transposed and JSON views, the row-detail
961
+ * drawer, all three exports, the facet sidebar — and the `.global()` browser
962
+ * masks its drill-down chips too. This bar deliberately does not, and the
963
+ * question has been raised twice, so here is the enumeration it rests on.
964
+ *
965
+ * Two of the ways a value reaches these rows are DATA-DERIVED — the operator did
966
+ * not type it — and those are the ones that could have leaked.
967
+ *
968
+ * A FACET-VALUE CLICK (`facetFilter` in `use-data-browser`) is closed at the
969
+ * source: `DataFacets` withholds both the toggle and any open section for a
970
+ * mask-covered column while the preview is on, so this can only reach a covered
971
+ * column after the operator switched the preview OFF — a deliberate reveal of the
972
+ * same value, from the same screen.
973
+ *
974
+ * HYDRATION FROM THE URL or a saved query (`initialFilters` → `toEditableFilters`)
975
+ * is the shared-link case, and the one that looks like the `.global()` drill-down
976
+ * chips — but it is not, because of the invariant below.
977
+ *
978
+ * (The AI "describe a filter" affordance sends column names and the prompt, never
979
+ * a row, so it cannot lift a stored secret into a clause. That is enforced by
980
+ * `@lunora/do`'s `sql-assistant.test.ts` — "sends the caller's columns and prompt
981
+ * and nothing else" — rather than asserted here, because a claim about another
982
+ * package that nothing checks is how a comment goes stale.)
983
+ *
984
+ * The invariant that makes both harmless: **a filter clause rendered here is
985
+ * always simultaneously rendered verbatim in the address bar.** `useDataBrowser`
986
+ * mirrors the loaded view through `onViewChange`, and `table-editor.tsx` writes
987
+ * it straight into `?filters=<json>` on every change. So masking a row would
988
+ * blank a value that is legible, unmasked, three inches above the input — while
989
+ * making the filter impossible to edit. It would cost usability and buy nothing.
990
+ *
991
+ * That is exactly what separates this bar from the `.global()` browser's
992
+ * drill-down chips, which ARE masked: those are read-only (nothing to edit),
993
+ * they are fed ONLY by a facet click, and `global-data-browser` keeps them in
994
+ * local state that never reaches the URL — so masking them genuinely removes a
995
+ * value from the screen.
996
+ *
997
+ * **If either half of that stops being true — a filter row that is not mirrored
998
+ * to `?filters=`, or a read-only filter display — revisit this.** Both halves are
999
+ * pinned by `__tests__/features/data/data-browser-mask.test.tsx`'s
1000
+ * "dataBrowser masking — filters" block.
1001
+ */
1002
+ declare const DataFilters: ({ columns, filters, onAskAi, onFiltersChange, onSearchChange, search }: {
844
1003
  columns: ReadonlyArray<string>;
845
1004
  filters: ReadonlyArray<EditableFilter>;
1005
+ /** Ask the model for structured clauses. Omitted when no AI binding is available. */
1006
+ onAskAi?: (prompt: string) => void;
846
1007
  onFiltersChange: (filters: EditableFilter[]) => void;
847
1008
  onSearchChange: (event: ChangeEvent<HTMLInputElement>) => void;
848
1009
  search: string;
849
1010
  }) => ReactElement;
850
1011
  interface GlobalDataBrowserProps {
851
1012
  /**
852
- * Table to open automatically on mount (and whenever it changes). Used by the
853
- * Table editor when a `v.id` reference in a shard row points at a `.global()`
854
- * table: clicking it switches to the global tier and lands here with that table
855
- * pre-selected. Each distinct value is applied once, so the operator can still
856
- * navigate away afterwards.
857
- */
1013
+ * Table to open automatically on mount (and whenever it changes). Used by the
1014
+ * Table editor when a `v.id` reference in a shard row points at a `.global()`
1015
+ * table: clicking it switches to the global tier and lands here with that table
1016
+ * pre-selected. Each distinct value is applied once, so the operator can still
1017
+ * navigate away afterwards.
1018
+ */
858
1019
  readonly initialTable?: string;
859
1020
  /**
860
- * Called whenever the open table changes, so the host can mirror it to the URL
861
- * (the Table editor pushes `?table=…`). Omitted in standalone use.
862
- */
1021
+ * Called whenever the open table changes, so the host can mirror it to the URL
1022
+ * (the Table editor pushes `?table=…`). Omitted in standalone use.
1023
+ */
863
1024
  readonly onSelectTable?: (table: string) => void;
864
1025
  /** Rows requested per page. Clamped server-side to `[1, 500]`. */
865
1026
  readonly pageSize?: number;
866
1027
  /**
867
- * The schema/source selector rendered at the top of the table-list sidebar —
868
- * the Table editor's `schema public ▾` switch. Supplied when this browser is
869
- * composed into the Table editor; omitted when it's used alone.
870
- */
1028
+ * The schema/source selector rendered at the top of the table-list sidebar —
1029
+ * the Table editor's `schema public ▾` switch. Supplied when this browser is
1030
+ * composed into the Table editor; omitted when it's used alone.
1031
+ */
871
1032
  readonly schemaSwitch?: ReactNode;
872
1033
  }
873
1034
  /**
874
- * Read-only browser for `.global()` (D1-backed) tables. Twin of `DataBrowser`,
875
- * but not shard-scoped: it lists tables via `listGlobalTables()` and pages rows
876
- * via `readGlobalTablePage()`. Laid out like Supabase's Table Editor — a left
877
- * table sidebar + a bordered grid with a paginated footer — and gated by the
878
- * server's `LUNORA_ADMIN_TOKEN`.
879
- */
880
- declare const GlobalDataBrowser: ({
881
- initialTable,
882
- onSelectTable,
883
- pageSize: initialPageSize,
884
- schemaSwitch
885
- }?: GlobalDataBrowserProps) => ReactElement;
1035
+ * Read-only browser for `.global()` (D1-backed) tables. Twin of `DataBrowser`,
1036
+ * but not shard-scoped: it lists tables via `listGlobalTables()` and pages rows
1037
+ * via `readGlobalTablePage()`. Laid out like Supabase's Table Editor — a left
1038
+ * table sidebar + a bordered grid with a paginated footer — and gated by the
1039
+ * server's `LUNORA_ADMIN_TOKEN`.
1040
+ */
1041
+ declare const GlobalDataBrowser: ({ initialTable, onSelectTable, pageSize: initialPageSize, schemaSwitch }?: GlobalDataBrowserProps) => ReactElement;
886
1042
  interface TableEditorProps {
887
1043
  /**
888
- * Allow editing the shard-local tables (insert/edit/delete). Forwarded to the
889
- * shard {@link DataBrowser}; the global D1 browser is always read-only. Off by
890
- * default — see {@link DataBrowser}.
891
- */
1044
+ * Allow editing the shard-local tables (insert/edit/delete). Forwarded to the
1045
+ * shard {@link DataBrowser}; the global D1 browser is always read-only. Off by
1046
+ * default — see {@link DataBrowser}.
1047
+ */
892
1048
  readonly editable?: boolean;
893
1049
  /** Shard key the shard browser targets on first load. Defaults to the root shard. */
894
1050
  readonly initialShardKey?: string;
895
1051
  }
896
1052
  /**
897
- * The Table editor: browses your application's tables across both storage tiers
898
- * from one section. A schema switch in the sidebar header (Supabase's
899
- * `schema public ▾`) toggles between the per-shard SQLite browser
900
- * (`.shardBy(...)`, editable when the host opts in) and the read-only global D1
901
- * browser (`.global()`) — folding what used to be a separate "Global Tables" tab
902
- * into a single editor (`STUDIO-REDESIGN-PLAN.md` §2).
903
- *
904
- * The active tier and open table live in the URL search params (`?schema=global`,
905
- * `?table=…`) rather than component state, so every selection is a real, shareable
906
- * URL and browser back/forward moves between tables and tiers. The browsers push on
907
- * selection and re-open whatever the URL names.
908
- */
909
- declare const TableEditor: ({
910
- editable,
911
- initialShardKey
912
- }: TableEditorProps) => ReactElement;
1053
+ * The Table editor: browses your application's tables across both storage tiers
1054
+ * from one section. A schema switch in the sidebar header (Supabase's
1055
+ * `schema public ▾`) toggles between the per-shard SQLite browser
1056
+ * (`.shardBy(...)`, editable when the host opts in) and the read-only global D1
1057
+ * browser (`.global()`) — folding what used to be a separate "Global Tables" tab
1058
+ * into a single editor (`STUDIO-REDESIGN-PLAN.md` §2).
1059
+ *
1060
+ * The active tier and open table live in the URL search params (`?schema=global`,
1061
+ * `?table=…`) rather than component state, so every selection is a real, shareable
1062
+ * URL and browser back/forward moves between tables and tiers. The browsers push on
1063
+ * selection and re-open whatever the URL names.
1064
+ */
1065
+ declare const TableEditor: ({ editable, initialShardKey }: TableEditorProps) => ReactElement;
913
1066
  interface ExportImportPanelProps {
914
1067
  /** Shard key the panel targets. Defaults to the root shard. */
915
1068
  readonly initialShardKey?: string;
916
1069
  }
917
1070
  /**
918
- * Snapshot and restore a single shard's data as NDJSON.
919
- *
920
- * "Export" reads every shard-local row via `__lunora_admin__:exportShard` and
921
- * renders it as NDJSON for download/copy. "Import" parses NDJSON the operator
922
- * pastes in and replays it through `__lunora_admin__:importShard`, reporting
923
- * inserted counts, id conflicts and per-row errors. Globally-scoped (`.global()`)
924
- * tables live in D1 and are intentionally out of scope here.
925
- *
926
- * Both calls travel over the {@link useLunora} client transport and are gated by
927
- * the server's `LUNORA_ADMIN_TOKEN`.
928
- */
929
- declare const ExportImportPanel: ({
930
- initialShardKey
931
- }: ExportImportPanelProps) => ReactElement;
1071
+ * Snapshot and restore a single shard's data as NDJSON.
1072
+ *
1073
+ * "Export" reads every shard-local row via `__lunora_admin__:exportShard` and
1074
+ * renders it as NDJSON for download/copy. "Import" parses NDJSON the operator
1075
+ * pastes in and replays it through `__lunora_admin__:importShard`, reporting
1076
+ * inserted counts, id conflicts and per-row errors. Globally-scoped (`.global()`)
1077
+ * tables live in D1 and are intentionally out of scope here.
1078
+ *
1079
+ * Both calls travel over the {@link useLunora} client transport and are gated by
1080
+ * the server's `LUNORA_ADMIN_TOKEN`.
1081
+ */
1082
+ declare const ExportImportPanel: ({ initialShardKey }: ExportImportPanelProps) => ReactElement;
932
1083
  interface MigrationsPanelProps {
933
1084
  /** Shard key the panel targets. Defaults to the root shard. */
934
1085
  readonly initialShardKey?: string;
935
1086
  }
936
1087
  /**
937
- * Inspect and drive data migrations on a single shard.
938
- *
939
- * Reads the persisted run-state via the `__lunora_admin__:migrationStatus` RPC
940
- * and lets an operator kick off a migration by id (`__lunora_admin__:runMigration`)
941
- * with a direction, an optional batch cap and a dry-run toggle. Both calls
942
- * travel over the ordinary {@link useLunora} client transport and are gated by
943
- * the server's `LUNORA_ADMIN_TOKEN` — this component issues no credentials of
944
- * its own.
945
- */
946
- declare const MigrationsPanel: ({
947
- initialShardKey
948
- }: MigrationsPanelProps) => ReactElement;
1088
+ * Inspect and drive data migrations on a single shard.
1089
+ *
1090
+ * Reads the persisted run-state via the `__lunora_admin__:migrationStatus` RPC
1091
+ * and lets an operator kick off a migration by id (`__lunora_admin__:runMigration`)
1092
+ * with a direction, an optional batch cap and a dry-run toggle. Both calls
1093
+ * travel over the ordinary {@link useLunora} client transport and are gated by
1094
+ * the server's `LUNORA_ADMIN_TOKEN` — this component issues no credentials of
1095
+ * its own.
1096
+ */
1097
+ declare const MigrationsPanel: ({ initialShardKey }: MigrationsPanelProps) => ReactElement;
949
1098
  interface PitrPanelProps {
950
1099
  /** Shard key the PITR ops target. Defaults to the root shard. */
951
1100
  readonly initialShardKey?: string;
952
1101
  }
953
1102
  /**
954
- * Native Durable-Object point-in-time recovery for one shard — the **Time
955
- * Travel** view.
956
- *
957
- * Reads the shard's current bookmark, previews the bookmark nearest a chosen
958
- * time, and (behind a confirm step) restores the shard to a time or an explicit
959
- * bookmark via the `__lunora_admin__:pitrRestore` RPC, surfacing the returned
960
- * undo bookmark so the restore can be reversed. All ops run over the
961
- * {@link useLunora} client and are gated by the server's `LUNORA_ADMIN_TOKEN`.
962
- *
963
- * In-place recovery covers the last 30 days; for older or off-platform recovery
964
- * use the snapshot tier (`lunora backup` / the backup registry item).
965
- */
966
- declare const PitrPanel: ({
967
- initialShardKey
968
- }: PitrPanelProps) => ReactElement;
1103
+ * Native Durable-Object point-in-time recovery for one shard — the **Time
1104
+ * Travel** view.
1105
+ *
1106
+ * Reads the shard's current bookmark, previews the bookmark nearest a chosen
1107
+ * time, and (behind a confirm step) restores the shard to a time or an explicit
1108
+ * bookmark via the `__lunora_admin__:pitrRestore` RPC, surfacing the returned
1109
+ * undo bookmark so the restore can be reversed. All ops run over the
1110
+ * {@link useLunora} client and are gated by the server's `LUNORA_ADMIN_TOKEN`.
1111
+ *
1112
+ * In-place recovery covers the last 30 days; for older or off-platform recovery
1113
+ * use the snapshot tier (`lunora backup` / the backup registry item).
1114
+ */
1115
+ declare const PitrPanel: ({ initialShardKey }: PitrPanelProps) => ReactElement;
969
1116
  interface FunctionRunnerProps {
970
1117
  /**
971
- * Functions to expose. When omitted, the runner auto-discovers them via the
972
- * client's `listFunctions()` (the admin-gated `/_lunora/admin/functions`
973
- * endpoint), so it works with no wiring when the worker is built with a
974
- * `functions` registry. Supply the list to override discovery.
975
- */
1118
+ * Functions to expose. When omitted, the runner auto-discovers them via the
1119
+ * client's `listFunctions()` (the admin-gated `/_lunora/admin/functions`
1120
+ * endpoint), so it works with no wiring when the worker is built with a
1121
+ * `functions` registry. Supply the list to override discovery.
1122
+ */
976
1123
  readonly functions?: FunctionDescriptor[];
977
1124
  /**
978
- * Expose the "Run as identity" control — execute the selected function AS a
979
- * chosen authenticated user so an operator can test auth + RLS behavior.
980
- * Security-sensitive: the run is forwarded over the admin-gated
981
- * `__lunora_admin__:runAs` RPC, which forges the per-request identity. The
982
- * host sets this only on a trusted loopback-dev gate (the `Studio` component's
983
- * `runAsIdentity` prop); off by default, the runner always runs with the
984
- * caller's own (admin) identity.
985
- */
1125
+ * Expose the "Run as identity" control — execute the selected function AS a
1126
+ * chosen authenticated user so an operator can test auth + RLS behavior.
1127
+ * Security-sensitive: the run is forwarded over the admin-gated
1128
+ * `__lunora_admin__:runAs` RPC, which forges the per-request identity. The
1129
+ * host sets this only on a trusted loopback-dev gate (the `Studio` component's
1130
+ * `runAsIdentity` prop); off by default, the runner always runs with the
1131
+ * caller's own (admin) identity.
1132
+ */
986
1133
  readonly runAsIdentity?: boolean;
987
1134
  }
988
1135
  /**
989
- * Interactive runner for the registered functions: pick one, edit its JSON
990
- * arguments, optionally target a shard, then invoke it against the live
991
- * {@link useLunora} client and inspect the result or error.
992
- *
993
- * By default the function list is auto-discovered from the worker's
994
- * `/_lunora/admin/functions` endpoint; pass an explicit `functions` array to
995
- * skip discovery (a query/mutation/action's `kind` is compile-time-only, so it
996
- * must be named).
997
- */
998
- declare const FunctionRunner: ({
999
- functions: functionsProp,
1000
- runAsIdentity
1001
- }?: FunctionRunnerProps) => ReactElement;
1136
+ * Interactive runner for the registered functions: pick one, edit its JSON
1137
+ * arguments, optionally target a shard, then invoke it against the live
1138
+ * {@link useLunora} client and inspect the result or error.
1139
+ *
1140
+ * By default the function list is auto-discovered from the worker's
1141
+ * `/_lunora/admin/functions` endpoint; pass an explicit `functions` array to
1142
+ * skip discovery (a query/mutation/action's `kind` is compile-time-only, so it
1143
+ * must be named).
1144
+ */
1145
+ declare const FunctionRunner: ({ functions: functionsProp, runAsIdentity }?: FunctionRunnerProps) => ReactElement;
1002
1146
  interface FunctionStatsPanelProps {
1003
1147
  /** Descriptors from codegen, used to annotate each row with the function's `kind`. */
1004
1148
  readonly functions?: FunctionDescriptor[];
@@ -1006,127 +1150,232 @@ interface FunctionStatsPanelProps {
1006
1150
  readonly initialShardKey?: string;
1007
1151
  }
1008
1152
  /**
1009
- * Per-function execution metrics for one shard: call count, error count/rate,
1010
- * mean and slowest handler latency, last-run time, and the most recent error
1011
- * message. Reads via the `__lunora_admin__:getFunctionStats` RPC through
1012
- * `useAdminQuery`; gated by the server's `LUNORA_ADMIN_TOKEN`.
1013
- *
1014
- * Counters are per-DO-instance and reset on hibernation/restart — this is a
1015
- * "since this instance woke" readout, mirroring the metrics panel. The panel is
1016
- * always live: `useAdminQuery`'s `live` subscription re-pushes on every server
1017
- * write-flush so the table updates as mutations land.
1018
- */
1019
- declare const FunctionStatsPanel: ({
1020
- functions,
1021
- initialShardKey
1022
- }: FunctionStatsPanelProps) => ReactElement;
1153
+ * Per-function execution metrics for one shard: call count, error count/rate,
1154
+ * mean and slowest handler latency, last-run time, and the most recent error
1155
+ * message. Reads via the `__lunora_admin__:getFunctionStats` RPC through
1156
+ * `useAdminQuery`; gated by the server's `LUNORA_ADMIN_TOKEN`.
1157
+ *
1158
+ * Counters are per-DO-instance and reset on hibernation/restart — this is a
1159
+ * "since this instance woke" readout, mirroring the metrics panel. The panel is
1160
+ * always live: `useAdminQuery`'s `live` subscription re-pushes on every server
1161
+ * write-flush so the table updates as mutations land.
1162
+ */
1163
+ declare const FunctionStatsPanel: ({ functions, initialShardKey }: FunctionStatsPanelProps) => ReactElement;
1164
+ /** Which of the two endpoints a probe targets. */
1165
+ type ProbeKind = "live" | "ready";
1166
+ /** The result of one probe fetch — the HTTP status, the parsed body (or `null`), and any transport error. */
1167
+ interface ProbeSnapshot {
1168
+ /** The parsed health body, or `null` when the response wasn't JSON (e.g. an auth-gate rejection). */
1169
+ body: HealthBody | null;
1170
+ /** A transport/gate error message (network failure, or a non-JSON body), else `undefined`. */
1171
+ error?: string;
1172
+ /** Whether the HTTP status was 2xx. */
1173
+ ok: boolean;
1174
+ /** The HTTP status code (`0` when the request never completed). */
1175
+ status: number;
1176
+ }
1177
+ /** Fetch one probe. Injected in tests; the default (see {@link useDefaultProbe}) hits the live deployment. */
1178
+ type DeploymentHealthProbe = (kind: ProbeKind) => Promise<ProbeSnapshot>;
1179
+ interface DeploymentHealthPanelProps {
1180
+ /**
1181
+ * Injectable probe, used by tests to feed a canned response. When omitted the
1182
+ * panel fetches the connected deployment's `/_lunora/health` (and
1183
+ * `/health/ready`) directly — this is a plain HTTP route, not an admin RPC, so
1184
+ * it doesn't ride the `useAdminQuery` machinery. The admin bearer (when the
1185
+ * studio holds one) is attached so an `"admin"`-posture endpoint still answers.
1186
+ */
1187
+ readonly probe?: DeploymentHealthProbe;
1188
+ }
1189
+ /**
1190
+ * Deployment-health panel: renders the live liveness/readiness verdict and the
1191
+ * per-binding/subsystem checks from the deployment's `/_lunora/health` and
1192
+ * `/_lunora/health/ready` endpoints (plan 177). This is the operator's at-a-glance
1193
+ * "are the bindings up?" view — distinct from the app-level SLO panel (error
1194
+ * rate, auth failures, scheduler backlog) that shares the "Health" name.
1195
+ *
1196
+ * The endpoints are plain HTTP routes (not admin RPCs), so the panel fetches them
1197
+ * directly rather than through `useAdminQuery`. The body is deliberately
1198
+ * secret-free — only a check name, an up/down status, whether it's critical, and
1199
+ * a runtime-authored message (present only in the `"admin"` posture) — so nothing
1200
+ * rendered here can leak an env value, connection string, or binding secret.
1201
+ */
1202
+ declare const DeploymentHealthPanel: ({ probe }: DeploymentHealthPanelProps) => ReactElement;
1203
+ /**
1204
+ * The registry of every English source string a call site may pass to `t(...)`.
1205
+ *
1206
+ * English is the source locale, so each id doubles as the rendered text: Lingui
1207
+ * compiles an id verbatim when a catalog has no entry for it. This list is the
1208
+ * single source of known strings — {@link MessageId} is derived from it and
1209
+ * `TFunction` is typed against that union, so `t("Dat")` (or any string absent
1210
+ * here) is a compile error rather than a silently-rendered typo.
1211
+ *
1212
+ * Add a string here the moment a new call site needs it. To translate, create a
1213
+ * sibling catalog (for example `de.ts`) mapping each id to its translation and
1214
+ * register it via `createStudioI18n(locale, { en: enMessages, de: deMessages })`.
1215
+ */
1216
+ declare const MESSAGE_IDS: readonly ["Send this link to the invitee. It is shown once and cannot be recovered.", "Only invited addresses can create an account. Nothing is emailed — send the invitee the one-time link yourself.", "Showing the most recent invitations. Query the signUpInvitation table directly to see the rest.", "Sign-up invitations", "Only invited addresses can create an account. Nothing is emailed — send the invitee the sign-up link yourself.", "Email address to invite", "ada@example.com", "Invite", "Nobody has been invited yet.", "Email", "Expires", "Invited by", "Accepted", "Expired", "Pending", "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…", "Polling", "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", "Required — the identity to probe as", "Not run", "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", "Errored", "The call failed for a reason that is not an access verdict, so it says nothing about the policy.", "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 and everything that cascades?", "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", "User 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.", "Copy index declaration for {table}", "Copy?", "Index declaration copied — add it to {table} in lunora/schema.ts.", "Could not reach the clipboard — add this to {table} in lunora/schema.ts:", "LUNORA_WS_BEARER is unset, so the WebSocket upgrade gate is open: anyone who can reach the worker can open a socket and run ordinary user subscriptions. Admin subscriptions are unaffected — they need the admin token. Set it if subscribers should present a shared credential.", "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} — seed it first", "→ {ref}", "No rows generated — all columns were skipped.", "Cannot generate rows: these columns reference tables with no rows: {cols}. Seed those tables first.", "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", "Restore {shard} to {target}?", "the given bookmark", "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.", "The bucket is larger than the scan's key limit, so dangling references could not be checked.", "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", "cache not enabled", "no cache traffic yet", "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 usage panels are not wired up.", "Hot shards", "Latency p50 / p95 per function", "No data points yet.", "Request volume per function", "Analytics Engine reads need an account-scoped Cloudflare API token, which cannot be shipped to a browser. The host must pass studio.analyticsQuery — a runner that proxies the SQL through your worker — to enable these 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 the whole message log?", "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", "Set a column on matching rows", "Writes {total} rows of {table} through the schema-aware writer — validators and indexes apply, exactly like a mutation.", "Column", "Enter a JSON value — for example true, 0, null, or \"done\".", "Set on {total} rows", "Set column on {total} matching", "Delete {total} matching rows and everything that cascades?", "Delete all matching rows and everything that cascades?", "Delete {total} matching", "Delete matching", "Clear all {total} rows and everything that cascades?", "Clear every row and everything that cascades?", "Clear table ({total})", "Clear table", "Shard: root", "Shard: {shardKey} — rows in other shards are not touched.", "{column} has a unique index — the same value cannot be set on {total} rows."];
1217
+ /** A known studio message id — one of the entries in {@link MESSAGE_IDS}. */
1218
+ type MessageId = (typeof MESSAGE_IDS)[number];
1219
+ /** The locale the studio ships with and falls back to. */
1220
+ declare const DEFAULT_LOCALE = "en";
1221
+ /**
1222
+ * Locale code to catalog. Each catalog maps an English source string (which
1223
+ * doubles as the message id) to its translation. English ships empty: Lingui
1224
+ * compiles the id verbatim when a translation is missing, so the source strings
1225
+ * render as-is. To add a language, register `{ "Some English text": "…" }`.
1226
+ */
1227
+ type StudioCatalogs = Readonly<Record<string, Messages>>;
1228
+ /**
1229
+ * Translate function: `t("Clear")` or `t("{title} failed", { title })`.
1230
+ *
1231
+ * `id` is constrained to a known {@link MessageId}, so a typo is a compile error.
1232
+ * The interpolation `values` stay loosely typed: mapping each id to its exact
1233
+ * placeholder set isn't worth the machinery for the handful of interpolated
1234
+ * strings, so a wrong or missing value key isn't caught at this boundary.
1235
+ */
1236
+ type TFunction = (id: MessageId, values?: Record<string, unknown>) => string;
1237
+ /**
1238
+ * Build a studio-scoped Lingui instance. We deliberately use `@lingui/core`'s
1239
+ * `setupI18n` (a fresh instance) rather than the global singleton so the
1240
+ * studio can never clobber — or be clobbered by — a host app that also uses
1241
+ * Lingui.
1242
+ *
1243
+ * The message compiler is installed explicitly. `@lingui/core` only auto-installs
1244
+ * it when `NODE_ENV !== "production"`, but the studio ships as a library and
1245
+ * relies on the compiler at runtime to interpolate uncompiled source strings
1246
+ * (e.g. `t("{title} failed", { title })`). Without this, a consumer's production
1247
+ * build would render `{title}` literally and `console.warn` on every `t(...)`.
1248
+ *
1249
+ * Pass extra `catalogs` to ship more locales; unknown `locale` codes fall back
1250
+ * to `DEFAULT_LOCALE`.
1251
+ */
1252
+ declare const createStudioI18n: (locale?: string, catalogs?: StudioCatalogs) => I18n;
1253
+ /**
1254
+ * Shared default instance. Backs the i18n context's default value so the
1255
+ * composable studio and individual exported panels resolve their strings even
1256
+ * when rendered without `StudioI18nProvider` (e.g. in tests, or a host's own
1257
+ * admin UI). English-only, so it renders source strings as-is.
1258
+ */
1259
+ declare const studioI18n: I18n;
1260
+ /**
1261
+ * Hook returning a `t` bound to the nearest `StudioI18nProvider` (or the
1262
+ * shared instance when there's none). This is the runtime stand-in for Lingui's
1263
+ * `t` macro — the studio builds with esbuild and tests under Vite 8/Rolldown,
1264
+ * neither of which runs Lingui's Babel macro transform, so call sites pass the
1265
+ * English string as the id directly.
1266
+ */
1267
+ declare const useT: () => TFunction;
1023
1268
  interface HomePanelProps {
1024
1269
  /** Shard key the health digest targets on first load. Defaults to the root shard. */
1025
1270
  readonly initialShardKey?: string;
1026
1271
  }
1027
1272
  /**
1028
- * The Home overview — the studio's landing page. It pulls the root shard's
1029
- * health snapshot, the function stats, the two advisor signals, the live
1030
- * subscription pulse, and the recent admin audit log, then presents an
1031
- * at-a-glance digest: a KPI row (requests, errors, latency, database size), a
1032
- * busiest-functions leaderboard, live connections, recent activity, the advisor
1033
- * summary, and connect/quick-link shortcuts. Every read is best-effort — a
1034
- * missing admin token or a cold instance leaves a card showing a muted
1035
- * placeholder rather than blanking the page.
1036
- */
1037
- declare const HomePanel: ({
1038
- initialShardKey
1039
- }: HomePanelProps) => ReactElement;
1273
+ * The Home overview — the studio's landing page. It pulls the root shard's
1274
+ * health snapshot, the function stats, the two advisor signals, the live
1275
+ * subscription pulse, and the recent admin audit log, then presents an
1276
+ * at-a-glance digest: a KPI row (requests, errors, latency, database size), a
1277
+ * busiest-functions leaderboard, live connections, recent activity, the advisor
1278
+ * summary, and connect/quick-link shortcuts. Every read is best-effort — a
1279
+ * missing admin token or a cold instance leaves a card showing a muted
1280
+ * placeholder rather than blanking the page.
1281
+ */
1282
+ declare const HomePanel: ({ initialShardKey }: HomePanelProps) => ReactElement;
1040
1283
  interface AuditPanelProps {
1041
1284
  /** Shard key the panel reports on. Defaults to the root shard. */
1042
1285
  readonly initialShardKey?: string;
1043
1286
  }
1044
1287
  /**
1045
- * Durable audit log for one shard: the admin state-changing operations
1046
- * (`writeRow`, `runMigration`, `importShard`, `applyCdc`) recorded to the
1047
- * reserved `__lunora_audit__` table, newest first. Reads via the
1048
- * `__lunora_admin__:getAuditLog` RPC through `useAdminQuery`; gated by the
1049
- * server's `LUNORA_ADMIN_TOKEN`.
1050
- *
1051
- * Unlike the logs panel (an in-memory ring that resets on hibernation), the
1052
- * audit log is durable and bounded only by a retention cap. The panel is always
1053
- * live: `useAdminQuery`'s `live` subscription re-pushes on every server
1054
- * write-flush so new entries appear without a manual refresh. The op filter is
1055
- * client-side over the already-fetched buffer — it never triggers a refetch.
1056
- */
1057
- declare const AuditPanel: ({
1058
- initialShardKey
1059
- }: AuditPanelProps) => ReactElement;
1288
+ * Durable audit log for one shard: the admin state-changing operations
1289
+ * (`writeRow`, `runMigration`, `importShard`, `applyCdc`) recorded to the
1290
+ * reserved `__lunora_audit__` table, newest first. Reads via the
1291
+ * `__lunora_admin__:getAuditLog` RPC through `useAdminQuery`; gated by the
1292
+ * server's `LUNORA_ADMIN_TOKEN`.
1293
+ *
1294
+ * Unlike the logs panel (an in-memory ring that resets on hibernation), the
1295
+ * audit log is durable and bounded only by a retention cap. The panel is always
1296
+ * live: `useAdminQuery`'s `live` subscription re-pushes on every server
1297
+ * write-flush so new entries appear without a manual refresh. The op filter is
1298
+ * client-side over the already-fetched buffer — it never triggers a refetch.
1299
+ */
1300
+ declare const AuditPanel: ({ initialShardKey }: AuditPanelProps) => ReactElement;
1060
1301
  interface LogsPanelProps {
1061
1302
  /** Shard key the panel reports on. Defaults to the root shard. */
1062
1303
  readonly initialShardKey?: string;
1063
1304
  }
1064
- /** A relative time-range window over the Errors buffer, or `all` (no bound). */
1065
- /**
1066
- * The shard's log feed, newest first, over the gated `__lunora_admin__:*` RPC
1067
- * layer (gated by the server's `LUNORA_ADMIN_TOKEN`). Two views.
1068
- *
1069
- * The Requests view (`getRequestLog`) is the durable, structured per-request log
1070
- * `@lunora/do` writes once per `/rpc` dispatch (PLAN3 §1.1): function path,
1071
- * shard, acting user/identity, redacted args, outcome, duration, and tables
1072
- * read/written. It survives hibernation/restart (bounded retention) and is
1073
- * filtered/correlated SERVER-side on function-path prefix, userId, shard,
1074
- * outcome, and a touched table.
1075
- *
1076
- * The Errors view (`getLogs`) is the legacy in-memory RPC-error buffer, which
1077
- * only captures dispatch failures (path + message) and resets on hibernation
1078
- * kept for the "what's failing on this instance right now" view, filtered
1079
- * client-side.
1080
- *
1081
- * For the raw, un-attributed request firehose (which Lunora deliberately does
1082
- * NOT re-stream), a deep-link to Cloudflare Workers Observability is provided.
1083
- */
1084
- declare const LogsPanel: ({
1085
- initialShardKey
1086
- }: LogsPanelProps) => ReactElement;
1305
+ /**
1306
+ * The shard's log feed, newest first, over the gated `__lunora_admin__:*` RPC
1307
+ * layer (gated by the server's `LUNORA_ADMIN_TOKEN`). Two views.
1308
+ *
1309
+ * The Requests view (`getRequestLog`) is the durable, structured per-request log
1310
+ * `@lunora/do` writes once per `/rpc` dispatch (PLAN3 §1.1): function path,
1311
+ * shard, acting user/identity, redacted args, outcome, duration, and tables
1312
+ * read/written. It survives hibernation/restart (bounded retention) and is
1313
+ * filtered/correlated SERVER-side on function-path prefix, userId, shard,
1314
+ * outcome, and a touched table.
1315
+ *
1316
+ * The Errors view (`getLogs`) is the legacy in-memory RPC-error buffer, which
1317
+ * only captures dispatch failures (path + message) and resets on hibernation
1318
+ * kept for the "what's failing on this instance right now" view, filtered
1319
+ * client-side.
1320
+ *
1321
+ * For the raw, un-attributed request firehose (which Lunora deliberately does
1322
+ * NOT re-stream), a deep-link to Cloudflare Workers Observability is provided.
1323
+ */
1324
+ declare const LogsPanel: ({ initialShardKey }: LogsPanelProps) => ReactElement;
1087
1325
  interface MailPanelProps {
1088
1326
  /** Newest-N to load (default 100). */
1089
1327
  readonly limit?: number;
1090
1328
  }
1091
1329
  /**
1092
- * Dev mail catcher — a unified inbox of every email the app sent. `@lunora/mail`'s
1093
- * capture transport (wired in dev) intercepts each send and persists it to the
1094
- * root-shard mailbox instead of delivering, so verification / forgot-password and
1095
- * any app mail show up here with nothing leaving the machine. Reads the
1096
- * `__lunora_admin__:getCapturedMail` RPC over the {@link useLunora} client;
1097
- * gated by the server's `LUNORA_ADMIN_TOKEN`.
1098
- *
1099
- * The inbox is a single root-shard table with no write-flush to subscribe to, so
1100
- * it polls on a fixed interval (paused while the tab is hidden) new captured
1101
- * mail appears without a manual refresh. The HTML body is rendered in a fully
1102
- * sandboxed iframe (no script execution) so captured markup can't run in the studio.
1103
- */
1104
- declare const MailPanel: ({
1105
- limit
1106
- }: MailPanelProps) => ReactElement;
1330
+ * Dev mail catcher — a unified inbox of every email the app sent. `@lunora/mail`'s
1331
+ * capture transport (wired in dev) intercepts each send and persists it to the
1332
+ * root-shard mailbox instead of delivering, so verification / forgot-password and
1333
+ * any app mail show up here with nothing leaving the machine. The inbox model —
1334
+ * the `__lunora_admin__:getCapturedMail` read, its poll, the clear / send-test
1335
+ * actions, and the selection state — lives in {@link useMailCapture}; this
1336
+ * component is markup and copy.
1337
+ *
1338
+ * The inbox is a single root-shard table with no write-flush to subscribe to, so
1339
+ * it polls on a fixed interval (paused while the tab is hidden) new captured
1340
+ * mail appears without a manual refresh. The HTML body is rendered in a fully
1341
+ * sandboxed iframe (no script execution) so captured markup can't run in the studio.
1342
+ */
1343
+ declare const MailPanel: ({ limit }: MailPanelProps) => ReactElement;
1344
+ /**
1345
+ * The Notifications inspector — the app's registered `@lunora/notify` push
1346
+ * devices, read through the gated `__lunora_admin__:listPushSubscriptions` admin
1347
+ * RPC (`useAdminQuery`; gated by the server's `LUNORA_ADMIN_TOKEN`). Each row is
1348
+ * one registered device: its delivery kind, target endpoint, owning user, last
1349
+ * register/send touch, and the last-send status + any delivery error.
1350
+ *
1351
+ * The subscription store is a WORKER option (built from `env` via
1352
+ * `defineNotify({ store })`), not shard state, so this is a one-shot read with a
1353
+ * manual Refresh — there is no DO write-flush to subscribe to. When the app wires
1354
+ * no `@lunora/notify` store (or none yet registered), the RPC returns an empty
1355
+ * device list and the panel shows an empty state rather than erroring.
1356
+ */
1357
+ declare const NotificationsPanel: () => ReactElement;
1107
1358
  interface HealthPanelProps {
1108
1359
  /** Shard key the metric/log reads target on first load. Defaults to the root shard. */
1109
1360
  readonly initialShardKey?: string;
1110
1361
  }
1111
1362
  /**
1112
- * App-level health & SLO overview. On top of the original single-shard snapshot
1113
- * (recent errors, request/error counts, shards seen) it composes the
1114
- * lunora-attributed SLO signals the studio can already reach — app error
1115
- * rate, auth-failure rate, scheduler backlog, and migration status — each with a
1116
- * status badge, plus durable request/error and auth sparklines, and a
1117
- * worst-first per-function error-rate list. None of this is CF's per-Worker
1118
- * charting: it is attributed to lunora functions, the auth flow, and the
1119
- * scheduler/migration subsystems.
1120
- *
1121
- * Every read is independent and best-effort (via `Promise.allSettled`): a
1122
- * missing `LUNORA_ADMIN_TOKEN`, an unconfigured scheduler, or a cold instance
1123
- * degrades that one tile to `—` without blanking the rest. The overview is always
1124
- * live: a root-shard `getMetrics` subscription drives a full cross-shard re-pull
1125
- * on every write-flush (coalesced so a burst yields at most one in-flight pull).
1126
- */
1127
- declare const HealthPanel: ({
1128
- initialShardKey
1129
- }: HealthPanelProps) => ReactElement;
1363
+ * App-level health & SLO overview. On top of the original single-shard snapshot
1364
+ * (recent errors, request/error counts, shards seen) it composes the
1365
+ * lunora-attributed SLO signals the studio can already reach — app error
1366
+ * rate, auth-failure rate, scheduler backlog, and migration status — each with a
1367
+ * status badge, plus durable request/error and auth sparklines, and a
1368
+ * worst-first per-function error-rate list. None of this is CF's per-Worker
1369
+ * charting: it is attributed to lunora functions, the auth flow, and the
1370
+ * scheduler/migration subsystems.
1371
+ *
1372
+ * Every read is independent and best-effort (via `Promise.allSettled`): a
1373
+ * missing `LUNORA_ADMIN_TOKEN`, an unconfigured scheduler, or a cold instance
1374
+ * degrades that one tile to `—` without blanking the rest. The overview is always
1375
+ * live: a root-shard `getMetrics` subscription drives a full cross-shard re-pull
1376
+ * on every write-flush (coalesced so a burst yields at most one in-flight pull).
1377
+ */
1378
+ declare const HealthPanel: ({ initialShardKey }: HealthPanelProps) => ReactElement;
1130
1379
  /** One shard's metrics fetch outcome: the snapshot, or the error that shard returned. */
1131
1380
  interface ShardMetricsResult {
1132
1381
  error: null | string;
@@ -1147,120 +1396,98 @@ interface AggregateMetrics {
1147
1396
  totalRequests: number;
1148
1397
  }
1149
1398
  /**
1150
- * Roll up per-shard metrics into repo-wide totals. Errors-per-shard are kept as
1151
- * `failed` (a shard that's down is data, not a hard failure), and counters are
1152
- * summed only over reachable shards. The combined cache hit-rate weights by each
1153
- * shard's hits+misses so a busy shard dominates a quiet one.
1154
- */
1399
+ * Roll up per-shard metrics into repo-wide totals. Errors-per-shard are kept as
1400
+ * `failed` (a shard that's down is data, not a hard failure), and counters are
1401
+ * summed only over reachable shards. The combined cache hit-rate weights by each
1402
+ * shard's hits+misses so a busy shard dominates a quiet one.
1403
+ */
1155
1404
  declare const aggregateMetrics: (results: ReadonlyArray<ShardMetricsResult>) => AggregateMetrics;
1156
1405
  /**
1157
- * The shard keys to aggregate over. Durable Objects aren't enumerable, so this
1158
- * is the union of the root shard (`""`), an explicit current shard, and the
1159
- * recently-visited shards — de-duplicated, order-stable (root first). It's a
1160
- * best-effort "shards we know about", not every shard that exists.
1161
- */
1406
+ * The shard keys to aggregate over. Durable Objects aren't enumerable, so this
1407
+ * is the union of the root shard (`""`), an explicit current shard, and the
1408
+ * recently-visited shards — de-duplicated, order-stable (root first). It's a
1409
+ * best-effort "shards we know about", not every shard that exists.
1410
+ */
1162
1411
  declare const shardsToAggregate: (current: string, recents: ReadonlyArray<string>) => string[];
1163
1412
  interface MetricsPanelProps {
1164
1413
  /** Shard key the panel reports on. Defaults to the root shard. */
1165
1414
  readonly initialShardKey?: string;
1166
1415
  }
1167
1416
  /**
1168
- * Health snapshot for a single shard: request / error counts (since the DO last
1169
- * woke), its live SQLite size, and reactive-cache hit/miss stats when a cache is
1170
- * configured. Reads via the `__lunora_admin__:getMetrics` RPC over the
1171
- * {@link useLunora} client; gated by the server's `LUNORA_ADMIN_TOKEN`.
1172
- *
1173
- * Counters are per-DO-instance and reset on hibernation/restart — this is a
1174
- * "since this instance woke" readout, not a durable time series.
1175
- *
1176
- * The panel is always live: a `getMetrics` WebSocket subscription opens once the
1177
- * first one-shot seed commits a shard and re-pushes on every server write-flush,
1178
- * accumulating a client-side, in-memory series of requests-per-sample (the delta
1179
- * of `requests` between consecutive samples), rendered as an inline-SVG
1180
- * sparkline. The series is capped at {@link MAX_HISTORY} points and is lost on
1181
- * remount.
1182
- */
1183
- declare const MetricsPanel: ({
1184
- initialShardKey
1185
- }: MetricsPanelProps) => ReactElement;
1417
+ * Health snapshot for a single shard: request / error counts (since the DO last
1418
+ * woke), its live SQLite size, and reactive-cache hit/miss stats when a cache is
1419
+ * configured. Reads via the `__lunora_admin__:getMetrics` RPC over the
1420
+ * {@link useLunora} client; gated by the server's `LUNORA_ADMIN_TOKEN`.
1421
+ *
1422
+ * Counters are per-DO-instance and reset on hibernation/restart — this is a
1423
+ * "since this instance woke" readout, not a durable time series.
1424
+ *
1425
+ * The panel is always live: a `getMetrics` WebSocket subscription opens once the
1426
+ * first one-shot seed commits a shard and re-pushes on every server write-flush,
1427
+ * accumulating a client-side, in-memory series of requests-per-sample (the delta
1428
+ * of `requests` between consecutive samples), rendered as an inline-SVG
1429
+ * sparkline. The series is capped at {@link MAX_HISTORY} points and is lost on
1430
+ * remount.
1431
+ */
1432
+ declare const MetricsPanel: ({ initialShardKey }: MetricsPanelProps) => ReactElement;
1186
1433
  interface SchemaViewerProps {
1187
1434
  /** Shard key the viewer targets. Defaults to the root shard. */
1188
1435
  readonly initialShardKey?: string;
1189
1436
  /**
1190
- * Table to auto-expand once the shard's tables load. Set by the Insights
1191
- * "add the index" deep-link (`/schema?table=&lt;name>`) so the operator lands
1192
- * directly on the scanned table's index list instead of hunting for it.
1193
- * Re-applied whenever the value changes, so following the link a second time
1194
- * (same tab already open) re-expands the target.
1195
- */
1437
+ * Table to auto-expand once the shard's tables load. Set by the Insights
1438
+ * "add the index" deep-link (`/schema?table=<name>`) so the operator lands
1439
+ * directly on the scanned table's index list instead of hunting for it.
1440
+ * Re-applied whenever the value changes, so following the link a second time
1441
+ * (same tab already open) re-expands the target.
1442
+ */
1196
1443
  readonly initialTable?: string;
1197
1444
  /**
1198
- * Enable the visual schema-editor overlay (add table / column / index). Off by
1199
- * default so the diagram stays read-only. Set only by the loopback dev hosts
1200
- * (see `StudioProps.schemaEditable`); when true, the authoring overlay
1201
- * (plan 024 Item 4) renders above the table lists and applies additive edits
1202
- * through the dev host's local schema-edit endpoint.
1203
- */
1445
+ * Enable the visual schema-editor overlay (add table / column / index). Off by
1446
+ * default so the diagram stays read-only. Set only by the loopback dev hosts
1447
+ * (see `StudioProps.schemaEditable`); when true, the authoring overlay
1448
+ * (plan 024 Item 4) renders above the table lists and applies additive edits
1449
+ * through the dev host's local schema-edit endpoint.
1450
+ */
1204
1451
  readonly schemaEditable?: boolean;
1205
1452
  }
1206
1453
  /**
1207
- * Schema overview that shows both storage tiers so the distinction is never a
1208
- * mystery. The shard section lists every user table in the selected Durable
1209
- * Object with row counts, and probes a table's columns on expand via a one-row
1210
- * `__lunora_admin__:readTablePage` (`PRAGMA table_info`). The global section
1211
- * lists every `.global()` table — including the auth tables (`user`, `session`,
1212
- * …) — via the client's `listGlobalTables()`, reading columns from a one-row
1213
- * `readGlobalTablePage` on expand.
1214
- *
1215
- * Two presentations: a **Table list** (searchable, expandable cards per tier)
1216
- * and a **Graph** — a single React Flow relationship diagram showing both tiers
1217
- * on one canvas, with cross-tier FK edges and its own in-canvas find-table box,
1218
- * tier filter, and legend.
1219
- *
1220
- * Read-only and gated by the server's `LUNORA_ADMIN_TOKEN`, like the rest of the
1221
- * studio's admin surface. Global discovery is best-effort: if D1 isn't
1222
- * configured the global section simply reports it, and the shard section still
1223
- * works.
1224
- */
1225
- declare const SchemaViewer: ({
1226
- initialShardKey,
1227
- initialTable,
1228
- schemaEditable
1229
- }: SchemaViewerProps) => ReactElement;
1454
+ * Schema overview that shows both storage tiers so the distinction is never a
1455
+ * mystery. The shard section lists every user table in the selected Durable
1456
+ * Object with row counts, and probes a table's columns on expand via a one-row
1457
+ * `__lunora_admin__:readTablePage` (`PRAGMA table_info`). The global section
1458
+ * lists every `.global()` table — including the auth tables (`user`, `session`,
1459
+ * …) — via the client's `listGlobalTables()`, reading columns from a one-row
1460
+ * `readGlobalTablePage` on expand.
1461
+ *
1462
+ * Two presentations: a **Table list** (searchable, expandable cards per tier)
1463
+ * and a **Graph** — a single React Flow relationship diagram showing both tiers
1464
+ * on one canvas, with cross-tier FK edges and its own in-canvas find-table box,
1465
+ * tier filter, and legend.
1466
+ *
1467
+ * Read-only and gated by the server's `LUNORA_ADMIN_TOKEN`, like the rest of the
1468
+ * studio's admin surface. Global discovery is best-effort: if D1 isn't
1469
+ * configured the global section simply reports it, and the shard section still
1470
+ * works.
1471
+ */
1472
+ declare const SchemaViewer: ({ initialShardKey, initialTable, schemaEditable }: SchemaViewerProps) => ReactElement;
1230
1473
  interface SettingsPanelProps {
1231
1474
  /** Shard key the settings read targets on first load. Defaults to the root shard. */
1232
1475
  readonly initialShardKey?: string;
1233
1476
  }
1234
- /**
1235
- * Read-only **Settings** view of the deployment's config: the Worker vars,
1236
- * secrets, and bindings exposed via `env`, plus best-effort deploy metadata.
1237
- * Reads the `__lunora_admin__:getSettings` RPC via {@link useAdminQuery} (gated
1238
- * by the server's `LUNORA_ADMIN_TOKEN`).
1239
- *
1240
- * Strictly view-only: secret values are masked server-side and never returned
1241
- * raw, and there is no editing here. The infrastructure plane lives in
1242
- * Cloudflare/wrangler — a deep-link to the Cloudflare dashboard is provided so
1243
- * you can edit there. Deployment config is static at runtime (it only changes on
1244
- * redeploy), so this loads once on mount — there is no live channel or poll.
1245
- */
1246
- declare const SettingsPanel: ({
1247
- initialShardKey
1248
- }: SettingsPanelProps) => ReactElement;
1477
+ declare const SettingsPanel: ({ initialShardKey }: SettingsPanelProps) => ReactElement;
1249
1478
  interface SqlEditorPanelProps {
1250
1479
  /** Shard key the query runs against on first load. Defaults to the root shard. */
1251
1480
  readonly initialShardKey?: string;
1252
1481
  }
1253
1482
  /**
1254
- * A full-height, Supabase-style SQL editor: a left query sidebar (search + new,
1255
- * a browser-persisted PRIVATE list, and REFERENCE templates), a line-numbered
1256
- * editor pane, and a Results / Explain pane with a Run control + shard selector.
1257
- * Read-only — the `__lunora_admin__:runSql` RPC rejects everything but
1258
- * SELECT / WITH / EXPLAIN, so raw writes can't desync the doc-store's shadow
1259
- * tables (use the Data grid's inline edit for mutations).
1260
- */
1261
- declare const SqlEditorPanel: ({
1262
- initialShardKey
1263
- }: SqlEditorPanelProps) => ReactElement;
1483
+ * A full-height, Supabase-style SQL editor: a left query sidebar (search + new,
1484
+ * a browser-persisted PRIVATE list, and REFERENCE templates), a line-numbered
1485
+ * editor pane, and a Results / Explain pane with a Run control + shard selector.
1486
+ * Read-only — the `__lunora_admin__:runSql` RPC rejects everything but
1487
+ * SELECT / WITH / EXPLAIN, so raw writes can't desync the doc-store's shadow
1488
+ * tables (use the Data grid's inline edit for mutations).
1489
+ */
1490
+ declare const SqlEditorPanel: ({ initialShardKey }: SqlEditorPanelProps) => ReactElement;
1264
1491
  interface FileBrowserProps {
1265
1492
  /** Object-key prefix the browser filters by on first load. */
1266
1493
  readonly initialPrefix?: string;
@@ -1268,121 +1495,58 @@ interface FileBrowserProps {
1268
1495
  readonly pageSize?: number;
1269
1496
  }
1270
1497
  /**
1271
- * Browse — and mutate — objects in the storage (R2) bucket. Lists keys under an
1272
- * optional prefix via the client's `listStorageObjects`, which hits the worker's
1273
- * admin-gated `GET /_lunora/admin/storage` endpoint — so the worker must be built
1274
- * with a `storageList` function and `adminToken`. Paginates forward by cursor.
1275
- *
1276
- * Each row offers a "Copy URL" (signed/public URL via `signedStorageUrl`) and a
1277
- * confirm-gated "Delete" (`deleteStorageObject`); the toolbar offers an upload
1278
- * (`uploadStorageObject`) into the current prefix. Those write paths require the
1279
- * worker to be built with `storageSignedUrl` / `storageDelete` / `storageUpload`
1280
- * respectively — when absent, the worker responds with a clear `*_NOT_CONFIGURED`
1281
- * error that surfaces inline rather than crashing the panel.
1282
- *
1283
- * All state + behavior lives in {@link useFileBrowser}; this shell only wires the
1284
- * view-model into the toolbar, breadcrumbs, selection bar, list/gallery and the
1285
- * load-more / error / empty affordances.
1286
- */
1287
- declare const FileBrowser: ({
1288
- initialPrefix,
1289
- pageSize
1290
- }: FileBrowserProps) => ReactElement;
1498
+ * Browse — and mutate — objects in the storage (R2) bucket. Lists keys under an
1499
+ * optional prefix via the client's `listStorageObjects`, which hits the worker's
1500
+ * admin-gated `GET /_lunora/admin/storage` endpoint — so the worker must be built
1501
+ * with a `storageList` function and `adminToken`. Paginates forward by cursor.
1502
+ *
1503
+ * Each row offers a "Copy URL" (signed/public URL via `signedStorageUrl`) and a
1504
+ * confirm-gated "Delete" (`deleteStorageObject`); the toolbar offers an upload
1505
+ * (`uploadStorageObject`) into the current prefix. Those write paths require the
1506
+ * worker to be built with `storageSignedUrl` / `storageDelete` / `storageUpload`
1507
+ * respectively — when absent, the worker responds with a clear `*_NOT_CONFIGURED`
1508
+ * error that surfaces inline rather than crashing the panel.
1509
+ *
1510
+ * All state + behavior lives in {@link useFileBrowser}; this shell only wires the
1511
+ * view-model into the toolbar, breadcrumbs, selection bar, list/gallery and the
1512
+ * load-more / error / empty affordances.
1513
+ */
1514
+ declare const FileBrowser: ({ initialPrefix, pageSize }: FileBrowserProps) => ReactElement;
1291
1515
  /** Default polling cadence for auto-refresh, in milliseconds. */
1292
1516
  declare const DEFAULT_AUTO_REFRESH_MS = 5e3;
1293
1517
  /**
1294
- * Call `onTick` on a fixed interval while `enabled`, for panels whose backend
1295
- * has no live subscription channel (the scheduler, R2, D1, the SessionDO — all
1296
- * HTTP-only). Polling is the honest "live" here: a timer-driven scheduler has no
1297
- * client-observable write event to push on, so the UI watches jobs count down
1298
- * and disappear by re-asking.
1299
- *
1300
- * Ticks are skipped while the tab is hidden (`document.hidden`) so a backgrounded
1301
- * studio doesn't keep hammering the worker. `onTick` is held in a ref so a
1302
- * fresh closure each render doesn't reset the interval; only `enabled`/`intervalMs`
1303
- * do. The interval is cleared on disable and unmount.
1304
- */
1518
+ * Call `onTick` on a fixed interval while `enabled`, for panels whose backend
1519
+ * has no live subscription channel (the scheduler, R2, D1, the SessionDO — all
1520
+ * HTTP-only). Polling is the honest "live" here: a timer-driven scheduler has no
1521
+ * client-observable write event to push on, so the UI watches jobs count down
1522
+ * and disappear by re-asking.
1523
+ *
1524
+ * Ticks are skipped while the tab is hidden (`document.hidden`) so a backgrounded
1525
+ * studio doesn't keep hammering the worker. `onTick` is held in a ref so a
1526
+ * fresh closure each render doesn't reset the interval; only `enabled`/`intervalMs`
1527
+ * do. The interval is cleared on disable and unmount.
1528
+ */
1305
1529
  declare const useAutoRefresh: (onTick: () => void, enabled: boolean, intervalMs?: number) => void;
1306
1530
  /**
1307
- * Debounced mirror of `value`: returns the latest value only after it has been
1308
- * stable for `delayMs`. Used so a per-keystroke search box drives at most one
1309
- * server round-trip per pause, instead of one request per character.
1310
- */
1311
- declare const useDebounced: <T>(value: T, delayMs?: number) => T;
1312
- /**
1313
- * The registry of every English source string a call site may pass to `t(...)`.
1314
- *
1315
- * English is the source locale, so each id doubles as the rendered text: Lingui
1316
- * compiles an id verbatim when a catalog has no entry for it. This list is the
1317
- * single source of known strings {@link MessageId} is derived from it and
1318
- * `TFunction` is typed against that union, so `t("Dat")` (or any string absent
1319
- * here) is a compile error rather than a silently-rendered typo.
1320
- *
1321
- * Add a string here the moment a new call site needs it. To translate, create a
1322
- * sibling catalog (for example `de.ts`) mapping each id to its translation and
1323
- * register it via `createStudioI18n(locale, { en: enMessages, de: deMessages })`.
1324
- */
1325
- declare const MESSAGE_IDS: readonly ["Lunora AI rules aren't installed.", "lets your coding agent use Lunora correctly.", "Dismiss", ", changed", "(no subject)", "(root)", "{count} active", "{count} calls", "{count} failed", "{total} total", "No subscriptions yet", "Payments", "Plan", "Provider", "Recent webhook events", "Renews", "State", "Subscriptions", "Synced customers, subscriptions, and webhook events.", "{count} messages", "{count} pending changes", "{count} running", "{name} ({rowCount})", "{rangeStart}-{rangeEnd} of {total}", "{rate} ({count} entries)", "{reachable} reachable", "{reachable} reachable, {failed} unreachable", "{status} — processed", "{title} failed", "Actions", "Actions have no React hook — call them through the client.", "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", "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.", "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.", "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", "{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.", "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", "{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", "History", "Format", "Clear history", "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", "{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", "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.", "time", "op", "table", "detail", "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.", "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", "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", "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", "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.", "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.", "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"];
1326
- /** A known studio message id — one of the entries in {@link MESSAGE_IDS}. */
1327
- type MessageId = (typeof MESSAGE_IDS)[number];
1328
- /**
1329
- * English message catalog.
1330
- *
1331
- * English is the source locale: every call site passes its English string as the
1332
- * message id (e.g. `t("Save")`), and Lingui compiles the id verbatim when a
1333
- * catalog has no entry for it. So English needs no translations — this stays
1334
- * empty and the source strings render as-is. The known ids live in
1335
- * {@link MESSAGE_IDS}, which types the `t` function.
1336
- */
1337
- /** The locale the studio ships with and falls back to. */
1338
- declare const DEFAULT_LOCALE = "en";
1339
- /**
1340
- * Locale code to catalog. Each catalog maps an English source string (which
1341
- * doubles as the message id) to its translation. English ships empty: Lingui
1342
- * compiles the id verbatim when a translation is missing, so the source strings
1343
- * render as-is. To add a language, register `{ "Some English text": "…" }`.
1344
- */
1345
- type StudioCatalogs = Readonly<Record<string, Messages>>;
1346
- /**
1347
- * Translate function: `t("Clear")` or `t("{title} failed", { title })`.
1348
- *
1349
- * `id` is constrained to a known {@link MessageId}, so a typo is a compile error.
1350
- * The interpolation `values` stay loosely typed: mapping each id to its exact
1351
- * placeholder set isn't worth the machinery for the handful of interpolated
1352
- * strings, so a wrong or missing value key isn't caught at this boundary.
1353
- */
1354
- type TFunction = (id: MessageId, values?: Record<string, unknown>) => string;
1355
- /**
1356
- * Build a studio-scoped Lingui instance. We deliberately use `@lingui/core`'s
1357
- * `setupI18n` (a fresh instance) rather than the global singleton so the
1358
- * studio can never clobber — or be clobbered by — a host app that also uses
1359
- * Lingui.
1360
- *
1361
- * The message compiler is installed explicitly. `@lingui/core` only auto-installs
1362
- * it when `NODE_ENV !== "production"`, but the studio ships as a library and
1363
- * relies on the compiler at runtime to interpolate uncompiled source strings
1364
- * (e.g. `t("{title} failed", { title })`). Without this, a consumer's production
1365
- * build would render `{title}` literally and `console.warn` on every `t(...)`.
1366
- *
1367
- * Pass extra `catalogs` to ship more locales; unknown `locale` codes fall back
1368
- * to `DEFAULT_LOCALE`.
1369
- */
1370
- declare const createStudioI18n: (locale?: string, catalogs?: StudioCatalogs) => I18n;
1371
- /**
1372
- * Shared default instance. Backs the i18n context's default value so the
1373
- * composable studio and individual exported panels resolve their strings even
1374
- * when rendered without `StudioI18nProvider` (e.g. in tests, or a host's own
1375
- * admin UI). English-only, so it renders source strings as-is.
1376
- */
1377
- declare const studioI18n: I18n;
1378
- /**
1379
- * Hook returning a `t` bound to the nearest `StudioI18nProvider` (or the
1380
- * shared instance when there's none). This is the runtime stand-in for Lingui's
1381
- * `t` macro — the studio builds with esbuild and tests under Vite 8/Rolldown,
1382
- * neither of which runs Lingui's Babel macro transform, so call sites pass the
1383
- * English string as the id directly.
1384
- */
1385
- declare const useT: () => TFunction;
1531
+ * Debounced mirror of `value`: returns the latest value only after it has been
1532
+ * stable for `delayMs`. Used so a per-keystroke search box drives at most one
1533
+ * server round-trip per pause, instead of one request per character.
1534
+ *
1535
+ * `resetKey` is an optional escape hatch from the trailing delay: when it
1536
+ * changes relative to the PREVIOUS call, the mirror snaps to `value`
1537
+ * immediately no `delayMs` window at all. It exists for callers that key a
1538
+ * debounced input (a search box, a shard key) to a coarser identity (e.g. the
1539
+ * open table): on that identity's change the caller usually re-seeds `value`
1540
+ * itself in the same render, and without `resetKey` the debounced mirror would
1541
+ * still trail the OLD value behind its own timer for up to `delayMs`, ignoring
1542
+ * the reseed. The snap happens render-time (the "adjusting state when a prop
1543
+ * changes" pattern): calling the setters below makes React discard this render
1544
+ * and retry synchronously with the caught-up state, so the returned value is
1545
+ * already correct on the render that reads it no extra commit, no trailing
1546
+ * window. Omit `resetKey` (the default) to keep the original always-debounced
1547
+ * behavior; every other caller in the codebase does this.
1548
+ */
1549
+ declare const useDebounced: <T>(value: T, delayMs?: number, resetKey?: unknown) => T;
1386
1550
  interface StudioI18nProviderProps {
1387
1551
  /** Catalogs to register in addition to the built-in English one. */
1388
1552
  readonly catalogs?: StudioCatalogs;
@@ -1393,15 +1557,10 @@ interface StudioI18nProviderProps {
1393
1557
  readonly locale?: string;
1394
1558
  }
1395
1559
  /**
1396
- * Provides a studio-scoped Lingui instance to `useT`. Nesting is safe:
1397
- * providers sharing the same instance resolve to the same context value.
1398
- */
1399
- declare const StudioI18nProvider: ({
1400
- catalogs,
1401
- children,
1402
- i18n,
1403
- locale
1404
- }: StudioI18nProviderProps) => ReactElement;
1560
+ * Provides a studio-scoped Lingui instance to `useT`. Nesting is safe:
1561
+ * providers sharing the same instance resolve to the same context value.
1562
+ */
1563
+ declare const StudioI18nProvider: ({ catalogs, children, i18n, locale }: StudioI18nProviderProps) => ReactElement;
1405
1564
  /** Root class the batteries-included app sets so the studio styles stay scoped. */
1406
1565
  declare const STUDIO_ROOT_CLASS = "lunora-studio-root";
1407
- export { ADMIN_FUNCTIONS, ADMIN_FUNCTION_PREFIX, 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, 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, OpenRpcReferencePanel, type OpenRpcReferencePanelProps, PitrPanel, type PitrPanelProps, 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 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 };
1566
+ 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 };