@lunora/studio 1.0.0-alpha.2 → 1.0.0-alpha.200

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 (334) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +1 -1
  3. package/__assets__/package-og.svg +1 -1
  4. package/dist/index.d.mts +1566 -0
  5. package/dist/index.d.ts +967 -803
  6. package/dist/index.mjs +1 -0
  7. package/dist/mount.d.mts +22 -0
  8. package/dist/mount.d.ts +11 -10
  9. package/dist/mount.mjs +1 -0
  10. package/dist/packem_chunks/AdvisorHealthPanel.mjs +1 -0
  11. package/dist/packem_chunks/ApiTab.mjs +1 -0
  12. package/dist/packem_chunks/AuditPanel.mjs +1 -0
  13. package/dist/packem_chunks/DeploymentHealthPanel.mjs +1 -0
  14. package/dist/packem_chunks/ExportImportPanel.mjs +3 -0
  15. package/dist/packem_chunks/FileBrowser.mjs +4 -0
  16. package/dist/packem_chunks/FunctionRunner.mjs +1 -0
  17. package/dist/packem_chunks/FunctionStatsPanel.mjs +1 -0
  18. package/dist/packem_chunks/HealthPanel.mjs +1 -0
  19. package/dist/packem_chunks/InsightsPanel.mjs +1 -0
  20. package/dist/packem_chunks/LogsPanel.mjs +1 -0
  21. package/dist/packem_chunks/MailPanel.mjs +2 -0
  22. package/dist/packem_chunks/MetricsPanel.mjs +1 -0
  23. package/dist/packem_chunks/NotificationsPanel.mjs +1 -0
  24. package/dist/packem_chunks/PitrPanel.mjs +1 -0
  25. package/dist/packem_chunks/SchemaViewer.mjs +1 -0
  26. package/dist/packem_chunks/SecurityAdvisorPanel.mjs +1 -0
  27. package/dist/packem_chunks/SettingsPanel.mjs +1 -0
  28. package/dist/packem_chunks/SqlEditorPanel.mjs +8 -0
  29. package/dist/packem_chunks/TableEditor.mjs +1 -0
  30. package/dist/packem_chunks/agents-panel.mjs +1 -0
  31. package/dist/packem_chunks/analytics-panel.mjs +1 -0
  32. package/dist/packem_chunks/auth-audit-panel.mjs +1 -0
  33. package/dist/packem_chunks/auth-config-panel.mjs +1 -0
  34. package/dist/packem_chunks/auth-sessions-panel.mjs +1 -0
  35. package/dist/packem_chunks/containers-panel.mjs +1 -0
  36. package/dist/packem_chunks/dashboards-panel.mjs +1 -0
  37. package/dist/packem_chunks/evals-panel.mjs +1 -0
  38. package/dist/packem_chunks/fanout-panel.mjs +1 -0
  39. package/dist/packem_chunks/flags-panel.mjs +1 -0
  40. package/dist/packem_chunks/issues-panel.mjs +1 -0
  41. package/dist/packem_chunks/kv-browser.mjs +1 -0
  42. package/dist/packem_chunks/log-drains-panel.mjs +4 -0
  43. package/dist/packem_chunks/migrations-route.mjs +1 -0
  44. package/dist/packem_chunks/organizations-panel.mjs +1 -0
  45. package/dist/packem_chunks/payments-panel.mjs +1 -0
  46. package/dist/packem_chunks/permissions-panel.mjs +1 -0
  47. package/dist/packem_chunks/queues-panel.mjs +1 -0
  48. package/dist/packem_chunks/reactors-panel.mjs +1 -0
  49. package/dist/packem_chunks/rls-panel.mjs +1 -0
  50. package/dist/packem_chunks/schedule-panel.mjs +1 -0
  51. package/dist/packem_chunks/sparkline.mjs +1 -0
  52. package/dist/packem_chunks/storage-rules-panel.mjs +1 -0
  53. package/dist/packem_chunks/subscriptions-panel.mjs +1 -0
  54. package/dist/packem_chunks/sync-client-panel.mjs +1 -0
  55. package/dist/packem_chunks/traces-panel.mjs +1 -0
  56. package/dist/packem_chunks/users-panel.mjs +1 -0
  57. package/dist/packem_chunks/vector-browser.mjs +1 -0
  58. package/dist/packem_chunks/workflows-panel.mjs +1 -0
  59. package/dist/packem_shared/ADMIN_FUNCTIONS-B8yyk5BX.mjs +1 -0
  60. package/dist/packem_shared/ApiDocsPanel-BImfQhyJ.mjs +2 -0
  61. package/dist/packem_shared/ApiReferencePanel-CigvHhCa.mjs +1 -0
  62. package/dist/packem_shared/CommandPalette-CSdz9zax.mjs +1 -0
  63. package/dist/packem_shared/ConfirmButton-DU4p72Er.mjs +1 -0
  64. package/dist/packem_shared/ConnectionBadge-B8Hj5DaE.mjs +1 -0
  65. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-DuULO4XM.mjs +1 -0
  66. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-D5YMT0gM.mjs +1 -0
  67. package/dist/packem_shared/DEFAULT_LOCALE-A1Yg5ORA.mjs +1 -0
  68. package/dist/packem_shared/DataBrowser-DLRa1EYq.mjs +4 -0
  69. package/dist/packem_shared/DataFilters-Cocu-WWE.mjs +1 -0
  70. package/dist/packem_shared/ErrorBoundary-BWNF98VF.mjs +1 -0
  71. package/dist/packem_shared/GlobalDataBrowser-BTbqR6Wc.mjs +1 -0
  72. package/dist/packem_shared/HomePanel-_BwLI4TQ.mjs +1 -0
  73. package/dist/packem_shared/MigrationsPanel-BPWzFdxC.mjs +1 -0
  74. package/dist/packem_shared/OpenRpcReferencePanel-C6CM791D.mjs +1 -0
  75. package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.mjs +1 -0
  76. package/dist/packem_shared/ScheduledJobs-B4DPADwk.mjs +1 -0
  77. package/dist/packem_shared/ShardInput-C6mjgAh4.mjs +1 -0
  78. package/dist/packem_shared/Studio-CcWQdYrV.mjs +1 -0
  79. package/dist/packem_shared/StudioApp-fYFz6zZQ.mjs +1 -0
  80. package/dist/packem_shared/StudioI18nProvider-fVsCSs5L.mjs +1 -0
  81. package/dist/packem_shared/advisor-view-CPgOok_h.mjs +1 -0
  82. package/dist/packem_shared/aggregateMetrics-CY05xrYU.mjs +1 -0
  83. package/dist/packem_shared/alert-PB5W11MM.mjs +1 -0
  84. package/dist/packem_shared/app.d-BbmO2HA2.d.mts +301 -0
  85. package/dist/packem_shared/app.d-BbmO2HA2.d.ts +301 -0
  86. package/dist/packem_shared/badge-r_5B4LHP.mjs +1 -0
  87. package/dist/packem_shared/bar-chart-BCsEIQoQ.mjs +6 -0
  88. package/dist/packem_shared/browser-storage-BH1MxLZs.mjs +1 -0
  89. package/dist/packem_shared/button-q0UYSmrn.mjs +1 -0
  90. package/dist/packem_shared/card--2hKx4L2.mjs +1 -0
  91. package/dist/packem_shared/cf-links-CBJ5SywP.mjs +1 -0
  92. package/dist/packem_shared/checkbox-CnS9cyCz.mjs +1 -0
  93. package/dist/packem_shared/control-button-BOZ5K-FC.mjs +1 -0
  94. package/dist/packem_shared/data-grid-DTBAKZlm.mjs +1 -0
  95. package/dist/packem_shared/data-view-params-qoSTqjAj.mjs +1 -0
  96. package/dist/packem_shared/dropdown-menu-jLZenfWH.mjs +2 -0
  97. package/dist/packem_shared/empty-state-D7jEML_T.mjs +1 -0
  98. package/dist/packem_shared/error-alert-tf5zvSLV.mjs +1 -0
  99. package/dist/packem_shared/grid-features-Dm80ngyR.mjs +6 -0
  100. package/dist/packem_shared/home-panel-DCUKd8Uk.mjs +3 -0
  101. package/dist/packem_shared/input-CXhxesPC.mjs +1 -0
  102. package/dist/packem_shared/internal-B6haJbiP.mjs +2 -0
  103. package/dist/packem_shared/label-DKFzyHq6.mjs +1 -0
  104. package/dist/packem_shared/live-status-BuJdUZFU.mjs +1 -0
  105. package/dist/packem_shared/log-fields-SBxKyBug.mjs +1 -0
  106. package/dist/packem_shared/log-line-BoObzuue.mjs +1 -0
  107. package/dist/packem_shared/modal-shell-CDztwLnv.mjs +1 -0
  108. package/dist/packem_shared/operation-console-provider-DoloEvon.mjs +1 -0
  109. package/dist/packem_shared/recording-client-BXUIyBL4.mjs +1 -0
  110. package/dist/packem_shared/reference-view-DiikOols.mjs +13 -0
  111. package/dist/packem_shared/schema-diagram-CDj_69jF.mjs +2 -0
  112. package/dist/packem_shared/scroll-area-CXCQH7VT.mjs +2 -0
  113. package/dist/packem_shared/select-DPyS18Vy.mjs +2 -0
  114. package/dist/packem_shared/shard-history-CaO3C4KQ.mjs +1 -0
  115. package/dist/packem_shared/shortcuts-B9gDaXmw.mjs +1 -0
  116. package/dist/packem_shared/skeleton-DX1gfixl.mjs +1 -0
  117. package/dist/packem_shared/sparkline-B_sPPO_8.mjs +1 -0
  118. package/dist/packem_shared/sql-result-table-C5y0jwaK.mjs +1 -0
  119. package/dist/packem_shared/stat-card-D0Fe04cX.mjs +1 -0
  120. package/dist/packem_shared/storage-tier-C2mKwYRj.mjs +1 -0
  121. package/dist/packem_shared/studio-OqNyRY1N.mjs +2 -0
  122. package/dist/packem_shared/table-D0SBiDu-.mjs +2 -0
  123. package/dist/packem_shared/table-list-sidebar-DHG1UJC4.mjs +1 -0
  124. package/dist/packem_shared/textarea--40GKAyz.mjs +1 -0
  125. package/dist/packem_shared/trace-handoff-BV3EWqy_.mjs +1 -0
  126. package/dist/packem_shared/use-admin-query-BKXiqLci.mjs +1 -0
  127. package/dist/packem_shared/use-async-submit-BTr3w2-K.mjs +1 -0
  128. package/dist/packem_shared/use-auth-config-CuM3eJZz.mjs +1 -0
  129. package/dist/packem_shared/use-open-trace-BCW0c9qq.mjs +1 -0
  130. package/dist/packem_shared/use-shard-key-BsP3o5wT.mjs +1 -0
  131. package/dist/packem_shared/use-sql-assistant-BhIMDQHV.mjs +1 -0
  132. package/dist/packem_shared/useDebounced-DVeQ5-oW.mjs +1 -0
  133. package/dist/packem_shared/utils-bhneXptQ.mjs +1 -0
  134. package/dist/packem_shared/virtual-rect-D_j7aLxX.mjs +1 -0
  135. package/dist/packem_shared/wire-codec-Bk4XZGE4.mjs +1 -0
  136. package/dist/standalone/chunk-225VJ77I.js +1 -0
  137. package/dist/standalone/chunk-23C2QL7Z.js +8 -0
  138. package/dist/standalone/chunk-2DX5MROH.js +1 -0
  139. package/dist/standalone/chunk-2HFEYNGZ.js +1 -0
  140. package/dist/standalone/chunk-2URQKGWU.js +1 -0
  141. package/dist/standalone/chunk-35DM4JJG.js +1 -0
  142. package/dist/standalone/chunk-3CCIROFZ.js +1 -0
  143. package/dist/standalone/chunk-3FBLWUXD.js +1 -0
  144. package/dist/standalone/chunk-3NWLVUAS.js +1 -0
  145. package/dist/standalone/chunk-3Q2P62UR.js +1 -0
  146. package/dist/standalone/chunk-4ATHFUMH.js +1 -0
  147. package/dist/standalone/chunk-4C3MG76K.js +1 -0
  148. package/dist/standalone/chunk-4G53FSGN.js +1 -0
  149. package/dist/standalone/chunk-4GTO7FL5.js +1 -0
  150. package/dist/standalone/chunk-4JJEP7LF.js +1 -0
  151. package/dist/standalone/chunk-4JLGLPWV.js +1 -0
  152. package/dist/standalone/chunk-4KXVY5LG.js +1 -0
  153. package/dist/standalone/chunk-4L4WTGN5.js +1 -0
  154. package/dist/standalone/chunk-4ZEL6BYL.js +1 -0
  155. package/dist/standalone/chunk-54BDTYMC.js +1 -0
  156. package/dist/standalone/chunk-54S5V7YR.js +3 -0
  157. package/dist/standalone/chunk-55754F6H.js +1 -0
  158. package/dist/standalone/chunk-5JDWLCSH.js +1 -0
  159. package/dist/standalone/chunk-5R7DNF7C.js +4 -0
  160. package/dist/standalone/chunk-5WJXVZMZ.js +1 -0
  161. package/dist/standalone/chunk-5YNR3G3E.js +1 -0
  162. package/dist/standalone/chunk-5ZMBICI6.js +1 -0
  163. package/dist/standalone/chunk-66UGPQVC.js +1 -0
  164. package/dist/standalone/chunk-6D6Z2KXU.js +1 -0
  165. package/dist/standalone/chunk-6P3POBSU.js +1 -0
  166. package/dist/standalone/chunk-74LPCD76.js +1 -0
  167. package/dist/standalone/chunk-7NRK3UZ3.js +1 -0
  168. package/dist/standalone/chunk-A3JCPBOZ.js +1 -0
  169. package/dist/standalone/chunk-AAVLPU5Q.js +1 -0
  170. package/dist/standalone/chunk-AWHXPIXU.js +1 -0
  171. package/dist/standalone/chunk-BDO4YYBB.js +6 -0
  172. package/dist/standalone/chunk-BOTGXX4H.js +1 -0
  173. package/dist/standalone/chunk-C6T7K5XP.js +1 -0
  174. package/dist/standalone/chunk-CAHVOTZA.js +1 -0
  175. package/dist/standalone/chunk-CMA4PTV7.js +1 -0
  176. package/dist/standalone/chunk-COXVHN6E.js +1 -0
  177. package/dist/standalone/chunk-CSUROWL2.js +1 -0
  178. package/dist/standalone/chunk-CSZUHTON.js +1 -0
  179. package/dist/standalone/chunk-DNNWYXLD.js +1 -0
  180. package/dist/standalone/chunk-DTVF7X3F.js +1 -0
  181. package/dist/standalone/chunk-DX6FAHR2.js +1 -0
  182. package/dist/standalone/chunk-E7TOMONS.js +4 -0
  183. package/dist/standalone/chunk-EA2JKR5D.js +1 -0
  184. package/dist/standalone/chunk-EHADDOX7.js +1 -0
  185. package/dist/standalone/chunk-EVTM6Q43.js +1 -0
  186. package/dist/standalone/chunk-F7UC63UN.js +1 -0
  187. package/dist/standalone/chunk-FEWMAPNI.js +1 -0
  188. package/dist/standalone/chunk-FKVZRPV5.js +1 -0
  189. package/dist/standalone/chunk-FODLDLE2.js +19 -0
  190. package/dist/standalone/chunk-FPG5ZRPW.js +1 -0
  191. package/dist/standalone/chunk-FSRSK4LY.js +1 -0
  192. package/dist/standalone/chunk-FTOTZ5ZX.js +1 -0
  193. package/dist/standalone/chunk-G4PC65C6.js +1 -0
  194. package/dist/standalone/chunk-GGPSI4ZR.js +1 -0
  195. package/dist/standalone/chunk-GK2VTVJQ.js +1 -0
  196. package/dist/standalone/chunk-GMS77BZD.js +1 -0
  197. package/dist/standalone/chunk-GWFZ7WCP.js +1 -0
  198. package/dist/standalone/chunk-GZ3EDDP7.js +1 -0
  199. package/dist/standalone/chunk-HEAQVSNS.js +1 -0
  200. package/dist/standalone/chunk-HOIVU2H7.js +1 -0
  201. package/dist/standalone/chunk-HXXKZOZO.js +1 -0
  202. package/dist/standalone/chunk-IHMGCHAA.js +1 -0
  203. package/dist/standalone/chunk-IMOHEGMV.js +1 -0
  204. package/dist/standalone/chunk-IS6LVJ6L.js +1 -0
  205. package/dist/standalone/chunk-IWOLH2P2.js +1 -0
  206. package/dist/standalone/chunk-JBLAVREZ.js +1 -0
  207. package/dist/standalone/chunk-JWO4CGLV.js +5 -0
  208. package/dist/standalone/chunk-K7AJEMKE.js +1 -0
  209. package/dist/standalone/chunk-LBMSRD6N.js +1 -0
  210. package/dist/standalone/chunk-LG52A5TG.js +1 -0
  211. package/dist/standalone/chunk-LIEKK2VL.js +11 -0
  212. package/dist/standalone/chunk-LWT6QDJ3.js +1 -0
  213. package/dist/standalone/chunk-LYDV7Y4R.js +8 -0
  214. package/dist/standalone/chunk-MCTFHKVC.js +1 -0
  215. package/dist/standalone/chunk-MKL7VDTL.js +15 -0
  216. package/dist/standalone/chunk-MU3P2FI7.js +1 -0
  217. package/dist/standalone/chunk-MXLAOCAN.js +1 -0
  218. package/dist/standalone/chunk-OGUKYRFM.js +1 -0
  219. package/dist/standalone/chunk-OKG3HWSJ.js +1 -0
  220. package/dist/standalone/chunk-OMNXRJSM.js +1 -0
  221. package/dist/standalone/chunk-OZ5VOVBO.js +2 -0
  222. package/dist/standalone/chunk-P5RUFDVX.js +59 -0
  223. package/dist/standalone/chunk-PD6WIDY6.js +1 -0
  224. package/dist/standalone/chunk-PLHA3OWK.js +3 -0
  225. package/dist/standalone/chunk-Q4CAKBWN.js +1 -0
  226. package/dist/standalone/chunk-QBV3C2HK.js +1 -0
  227. package/dist/standalone/chunk-QKEJLVC5.js +1 -0
  228. package/dist/standalone/chunk-QUNKRCBP.js +1 -0
  229. package/dist/standalone/chunk-RDA5NLFX.js +1 -0
  230. package/dist/standalone/chunk-RFNGDE33.js +1 -0
  231. package/dist/standalone/chunk-RLLKECZT.js +1 -0
  232. package/dist/standalone/chunk-RPQL45FL.js +1 -0
  233. package/dist/standalone/chunk-S3CRZLGS.js +1 -0
  234. package/dist/standalone/chunk-SU5NQREA.js +1 -0
  235. package/dist/standalone/chunk-SUDJTC4S.js +1 -0
  236. package/dist/standalone/chunk-SV5XEZUN.js +1 -0
  237. package/dist/standalone/chunk-TIUMFAN2.js +1 -0
  238. package/dist/standalone/chunk-UCG3QPFD.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-V32I7IJL.js +3 -0
  243. package/dist/standalone/chunk-V3CZW3JB.js +1 -0
  244. package/dist/standalone/chunk-V3VJAA4D.js +1 -0
  245. package/dist/standalone/chunk-VMVIL7J7.js +1 -0
  246. package/dist/standalone/chunk-VOZRZLXT.js +1 -0
  247. package/dist/standalone/chunk-W3SCOCGB.js +1 -0
  248. package/dist/standalone/chunk-WBNKZBWC.js +1 -0
  249. package/dist/standalone/chunk-WUWBZPUK.js +1 -0
  250. package/dist/standalone/chunk-X7GEIRBP.js +1 -0
  251. package/dist/standalone/chunk-XT5WRPP2.js +1 -0
  252. package/dist/standalone/chunk-XZMOZFE6.js +1 -0
  253. package/dist/standalone/chunk-Y6CXU7T4.js +1 -0
  254. package/dist/standalone/chunk-YHLDMYGP.js +14 -0
  255. package/dist/standalone/chunk-YKXDMIHQ.js +1 -0
  256. package/dist/standalone/chunk-YOB2X3FZ.js +1 -0
  257. package/dist/standalone/chunk-YPRQLCKF.js +1 -0
  258. package/dist/standalone/chunk-YVVP4DRM.js +1 -0
  259. package/dist/standalone/chunk-ZOBUTUUF.js +1 -0
  260. package/dist/standalone/studio.js +9 -356
  261. package/dist/styles.css +2 -2
  262. package/package.json +24 -20
  263. package/dist/index.js +0 -41
  264. package/dist/mount.js +0 -26
  265. package/dist/packem_shared/ADMIN_FUNCTION_PREFIX-DmBqMZ-z.js +0 -45
  266. package/dist/packem_shared/ApiDocsPanel-DpRjJhG5.js +0 -842
  267. package/dist/packem_shared/ApiReferencePanel-DMIUp-kK.js +0 -229
  268. package/dist/packem_shared/ApiTab-DURGU15e.js +0 -251
  269. package/dist/packem_shared/AuditPanel-BC59Nhst.js +0 -212
  270. package/dist/packem_shared/CommandPalette-Dx_CoB9i.js +0 -373
  271. package/dist/packem_shared/ConfirmButton-WQVUoGFb.js +0 -59
  272. package/dist/packem_shared/ConnectionBadge-Bxagrip8.js +0 -111
  273. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
  274. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
  275. package/dist/packem_shared/DataBrowser-Coz6jJE6.js +0 -4542
  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-WO34fJxy.js +0 -193
  279. package/dist/packem_shared/FileBrowser-Zcr-Qgxo.js +0 -2932
  280. package/dist/packem_shared/FunctionRunner-j0Rd5m9t.js +0 -343
  281. package/dist/packem_shared/FunctionStatsPanel-DboBl-XL.js +0 -432
  282. package/dist/packem_shared/GlobalDataBrowser-9MhPEfgN.js +0 -318
  283. package/dist/packem_shared/HealthPanel-DOIgbUtx.js +0 -640
  284. package/dist/packem_shared/HomePanel-bdOCNA-p.js +0 -1273
  285. package/dist/packem_shared/InsightsPanel-DaZPnSgt.js +0 -423
  286. package/dist/packem_shared/LogsPanel-CWdqAGpQ.js +0 -839
  287. package/dist/packem_shared/MailPanel-D_EGtDnS.js +0 -447
  288. package/dist/packem_shared/MetricsPanel-E4Gv6wTO.js +0 -1625
  289. package/dist/packem_shared/MigrationsPanel-DQdPY9io.js +0 -246
  290. package/dist/packem_shared/OpenRpcReferencePanel-j2p3HB0s.js +0 -191
  291. package/dist/packem_shared/PitrPanel-BbBkQR6t.js +0 -252
  292. package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
  293. package/dist/packem_shared/ScheduledJobs-Ok1CYYwI.js +0 -159
  294. package/dist/packem_shared/SchemaViewer-D8XGnp-X.js +0 -2512
  295. package/dist/packem_shared/SecurityAdvisorPanel-Cdm2IxLW.js +0 -79
  296. package/dist/packem_shared/SettingsPanel-D3WF2mBU.js +0 -176
  297. package/dist/packem_shared/ShardInput-DNCsT1KW.js +0 -107
  298. package/dist/packem_shared/SqlEditorPanel-BuQ7f2Hs.js +0 -13
  299. package/dist/packem_shared/Studio-D36od9Oz.js +0 -33
  300. package/dist/packem_shared/StudioApp-dvywkJ8I.js +0 -383
  301. package/dist/packem_shared/StudioI18nProvider-Dcajsznk.js +0 -48
  302. package/dist/packem_shared/TableEditor-DIVDk3vT.js +0 -371
  303. package/dist/packem_shared/advisor-view-DBlzJi6C.js +0 -159
  304. package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
  305. package/dist/packem_shared/app.d-CCmwDEVs.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-BZfRdxSE.js +0 -8
  311. package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
  312. package/dist/packem_shared/createStudioI18n-CgvlmDkN.js +0 -27
  313. package/dist/packem_shared/data-grid-CCh2Couo.js +0 -183
  314. package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
  315. package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
  316. package/dist/packem_shared/grid-features-DTjG6Sex.js +0 -840
  317. package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
  318. package/dist/packem_shared/internal-BBZYexre.js +0 -68
  319. package/dist/packem_shared/label-D8ykjn5J.js +0 -46
  320. package/dist/packem_shared/live-status-bPff1O7Y.js +0 -44
  321. package/dist/packem_shared/reference-view-BCKIoai7.js +0 -2180
  322. package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
  323. package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
  324. package/dist/packem_shared/sql-editor-panel-CW2y2x9h.js +0 -2562
  325. package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
  326. package/dist/packem_shared/studio-BDVd7rIV.js +0 -10303
  327. package/dist/packem_shared/table-_RzNvy3R.js +0 -246
  328. package/dist/packem_shared/table-list-sidebar-aZHLq70w.js +0 -832
  329. package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
  330. package/dist/packem_shared/use-live-admin-D1h1Fzsd.js +0 -73
  331. package/dist/packem_shared/use-live-shard-seed-B74RYcOy.js +0 -76
  332. package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
  333. package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
  334. package/dist/packem_shared/virtual-rect-CVMUskSm.js +0 -10
@@ -1,432 +0,0 @@
1
- import { c } from 'react/compiler-runtime';
2
- import { useLunora } from '@lunora/react';
3
- import { useState, useRef, useEffect } from 'react';
4
- import { L as LiveError } from './live-status-bPff1O7Y.js';
5
- import { ShardInput } from './ShardInput-DNCsT1KW.js';
6
- import { B as Badge } from './badge-B2PKA1-5.js';
7
- import { B as Button } from './button-BhsN2uZH.js';
8
- import { C as Card, a as CardContent } from './card-DURq3ElK.js';
9
- import { E as EmptyState } from './empty-state-DY_oe0k6.js';
10
- import { T as Table, a as TableHeader, b as TableRow, c as TableHead, d as TableBody, e as TableCell } from './table-_RzNvy3R.js';
11
- import { u as useLiveAdmin } from './use-live-admin-D1h1Fzsd.js';
12
- import { useT } from './createStudioI18n-CgvlmDkN.js';
13
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTION_PREFIX-DmBqMZ-z.js';
14
- import { d as formatTimestamp, c as callOptions, e as errorMessage, a as adminRef } from './internal-BBZYexre.js';
15
- import { c as cn } from './utils-B05Dmz_H.js';
16
- import { u as useLiveShardSeed } from './use-live-shard-seed-B74RYcOy.js';
17
- import { jsxDEV } from 'react/jsx-dev-runtime';
18
-
19
- const GET_FUNCTION_STATS = adminRef(ADMIN_FUNCTIONS.getFunctionStats);
20
- const KIND_VARIANT = {
21
- action: "outline",
22
- mutation: "default",
23
- query: "secondary"
24
- };
25
- const formatMs = (ms) => {
26
- if (ms < 1e3) {
27
- return `${ms < 10 ? ms.toFixed(1) : Math.round(ms).toString()}ms`;
28
- }
29
- return `${(ms / 1e3).toFixed(2)}s`;
30
- };
31
- const errorCell = (stat) => {
32
- if (stat.calls === 0) {
33
- return "—";
34
- }
35
- if (stat.errors === 0) {
36
- return "0";
37
- }
38
- return `${stat.errors.toString()} (${(stat.errors / stat.calls * 100).toFixed(1)}%)`;
39
- };
40
- const conflictCell = (stat) => {
41
- const conflicts = stat.conflicts ?? 0;
42
- if (stat.calls === 0) {
43
- return "—";
44
- }
45
- if (conflicts === 0) {
46
- return "0";
47
- }
48
- return `${conflicts.toString()} (${(conflicts / stat.calls * 100).toFixed(1)}%)`;
49
- };
50
- const SORTERS = {
51
- calls: (a, b) => b.calls - a.calls,
52
- recent: (a, b) => b.lastCalledAt - a.lastCalledAt,
53
- slowest: (a, b) => b.maxDurationMs - a.maxDurationMs
54
- };
55
- const FunctionStatsPanel = (t0) => {
56
- const $ = c(48);
57
- const {
58
- functions,
59
- initialShardKey
60
- } = t0;
61
- const client = useLunora();
62
- const t = useT();
63
- const [shardKey, setShardKey] = useState(initialShardKey ?? "");
64
- const [stats, setStats] = useState(null);
65
- const [error, setError] = useState(null);
66
- const [sortKey, setSortKey] = useState("recent");
67
- const [liveError, setLiveError] = useState(void 0);
68
- const mountedRef = useRef(true);
69
- let t1;
70
- let t2;
71
- if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
72
- t1 = () => {
73
- mountedRef.current = true;
74
- return () => {
75
- mountedRef.current = false;
76
- };
77
- };
78
- t2 = [];
79
- $[0] = t1;
80
- $[1] = t2;
81
- } else {
82
- t1 = $[0];
83
- t2 = $[1];
84
- }
85
- useEffect(t1, t2);
86
- let t3;
87
- if ($[2] !== functions) {
88
- t3 = new Map((functions ?? []).map(_temp));
89
- $[2] = functions;
90
- $[3] = t3;
91
- } else {
92
- t3 = $[3];
93
- }
94
- const kindByPath = t3;
95
- let t4;
96
- if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
97
- t4 = (result) => {
98
- setError(null);
99
- setLiveError(void 0);
100
- setStats(result.functions);
101
- };
102
- $[4] = t4;
103
- } else {
104
- t4 = $[4];
105
- }
106
- const applyResult = t4;
107
- let t5;
108
- if ($[5] !== client) {
109
- t5 = async (shard) => {
110
- try {
111
- const next = await client.query(GET_FUNCTION_STATS, {}, callOptions(shard));
112
- if (mountedRef.current) {
113
- applyResult(next);
114
- }
115
- } catch (t62) {
116
- const error_ = t62;
117
- if (mountedRef.current) {
118
- setStats(null);
119
- setError(errorMessage(error_));
120
- }
121
- throw error_;
122
- }
123
- };
124
- $[5] = client;
125
- $[6] = t5;
126
- } else {
127
- t5 = $[6];
128
- }
129
- const refresh = t5;
130
- const committedShard = useLiveShardSeed(shardKey, refresh);
131
- let t6;
132
- if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
133
- t6 = {};
134
- $[7] = t6;
135
- } else {
136
- t6 = $[7];
137
- }
138
- let t7;
139
- if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
140
- t7 = (next_0) => {
141
- if (mountedRef.current) {
142
- applyResult(next_0);
143
- }
144
- };
145
- $[8] = t7;
146
- } else {
147
- t7 = $[8];
148
- }
149
- let t8;
150
- if ($[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
151
- t8 = (message) => {
152
- if (mountedRef.current) {
153
- setLiveError(message);
154
- }
155
- };
156
- $[9] = t8;
157
- } else {
158
- t8 = $[9];
159
- }
160
- useLiveAdmin(ADMIN_FUNCTIONS.getFunctionStats, t6, committedShard ?? "", t7, committedShard !== void 0, t8);
161
- let t9;
162
- if ($[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
163
- t9 = (event) => {
164
- setSortKey(event.currentTarget.dataset.sort);
165
- };
166
- $[10] = t9;
167
- } else {
168
- t9 = $[10];
169
- }
170
- const selectSort = t9;
171
- let t10;
172
- if ($[11] !== error || $[12] !== kindByPath || $[13] !== liveError || $[14] !== shardKey || $[15] !== sortKey || $[16] !== stats || $[17] !== t) {
173
- const sorted = stats === null ? [] : stats.toSorted(SORTERS[sortKey]);
174
- let t11;
175
- if ($[19] !== t) {
176
- t11 = t("Recent");
177
- $[19] = t;
178
- $[20] = t11;
179
- } else {
180
- t11 = $[20];
181
- }
182
- let t12;
183
- if ($[21] !== t11) {
184
- t12 = {
185
- key: "recent",
186
- label: t11
187
- };
188
- $[21] = t11;
189
- $[22] = t12;
190
- } else {
191
- t12 = $[22];
192
- }
193
- let t13;
194
- if ($[23] !== t) {
195
- t13 = t("Most called");
196
- $[23] = t;
197
- $[24] = t13;
198
- } else {
199
- t13 = $[24];
200
- }
201
- let t14;
202
- if ($[25] !== t13) {
203
- t14 = {
204
- key: "calls",
205
- label: t13
206
- };
207
- $[25] = t13;
208
- $[26] = t14;
209
- } else {
210
- t14 = $[26];
211
- }
212
- let t15;
213
- if ($[27] !== t) {
214
- t15 = t("Slowest");
215
- $[27] = t;
216
- $[28] = t15;
217
- } else {
218
- t15 = $[28];
219
- }
220
- let t16;
221
- if ($[29] !== t15) {
222
- t16 = {
223
- key: "slowest",
224
- label: t15
225
- };
226
- $[29] = t15;
227
- $[30] = t16;
228
- } else {
229
- t16 = $[30];
230
- }
231
- let t17;
232
- if ($[31] !== t12 || $[32] !== t14 || $[33] !== t16) {
233
- t17 = [t12, t14, t16];
234
- $[31] = t12;
235
- $[32] = t14;
236
- $[33] = t16;
237
- $[34] = t17;
238
- } else {
239
- t17 = $[34];
240
- }
241
- const sortButtons = t17;
242
- let t18;
243
- if ($[35] !== shardKey) {
244
- t18 = /* @__PURE__ */ jsxDEV(ShardInput, {
245
- onChange: setShardKey,
246
- testId: "fs-shard-input",
247
- value: shardKey
248
- }, void 0, false);
249
- $[35] = shardKey;
250
- $[36] = t18;
251
- } else {
252
- t18 = $[36];
253
- }
254
- let t19;
255
- if ($[37] !== liveError) {
256
- t19 = /* @__PURE__ */ jsxDEV(LiveError, {
257
- message: liveError,
258
- prefix: "fs"
259
- }, void 0, false);
260
- $[37] = liveError;
261
- $[38] = t19;
262
- } else {
263
- t19 = $[38];
264
- }
265
- let t20;
266
- if ($[39] !== sortButtons || $[40] !== sortKey) {
267
- t20 = /* @__PURE__ */ jsxDEV("div", {
268
- className: "ml-auto flex items-center gap-1",
269
- role: "group",
270
- children: sortButtons.map((option) => /* @__PURE__ */ jsxDEV(Button, {
271
- "data-sort": option.key,
272
- "data-testid": `fs-sort-${option.key}`,
273
- onClick: selectSort,
274
- size: "sm",
275
- type: "button",
276
- variant: sortKey === option.key ? "secondary" : "ghost",
277
- children: option.label
278
- }, option.key, false))
279
- }, void 0, false);
280
- $[39] = sortButtons;
281
- $[40] = sortKey;
282
- $[41] = t20;
283
- } else {
284
- t20 = $[41];
285
- }
286
- let t21;
287
- if ($[42] !== t18 || $[43] !== t19 || $[44] !== t20) {
288
- t21 = /* @__PURE__ */ jsxDEV("div", {
289
- className: "flex flex-wrap items-center gap-2",
290
- children: [t18, t19, t20]
291
- }, void 0, true);
292
- $[42] = t18;
293
- $[43] = t19;
294
- $[44] = t20;
295
- $[45] = t21;
296
- } else {
297
- t21 = $[45];
298
- }
299
- let t22;
300
- if ($[46] !== error) {
301
- t22 = error !== null && /* @__PURE__ */ jsxDEV("p", {
302
- className: "text-sm text-destructive",
303
- "data-testid": "fs-error",
304
- role: "alert",
305
- children: error
306
- }, void 0, false);
307
- $[46] = error;
308
- $[47] = t22;
309
- } else {
310
- t22 = $[47];
311
- }
312
- t10 = /* @__PURE__ */ jsxDEV("div", {
313
- className: "flex flex-col gap-4",
314
- "data-testid": "lunora-function-stats",
315
- children: [t21, t22, stats !== null && sorted.length === 0 && error === null && /* @__PURE__ */ jsxDEV(EmptyState, {
316
- description: t("Per-function call counts, error rates, and latency land here after your first request."),
317
- icon: /* @__PURE__ */ jsxDEV("svg", {
318
- "aria-hidden": "true",
319
- fill: "none",
320
- stroke: "currentColor",
321
- strokeLinecap: "round",
322
- strokeLinejoin: "round",
323
- strokeWidth: 1.6,
324
- viewBox: "0 0 24 24",
325
- children: [/* @__PURE__ */ jsxDEV("path", {
326
- d: "M3 3v18h18"
327
- }, void 0, false), /* @__PURE__ */ jsxDEV("path", {
328
- d: "M7 14l4-4 3 3 5-6"
329
- }, void 0, false)]
330
- }, void 0, true),
331
- testId: "fs-empty",
332
- title: t("No functions have run on this shard yet.")
333
- }, void 0, false), sorted.length > 0 && /* @__PURE__ */ jsxDEV(Card, {
334
- className: "overflow-hidden py-0",
335
- children: /* @__PURE__ */ jsxDEV(CardContent, {
336
- className: "px-0",
337
- children: /* @__PURE__ */ jsxDEV(Table, {
338
- "data-testid": "fs-table",
339
- children: [/* @__PURE__ */ jsxDEV(TableHeader, {
340
- children: /* @__PURE__ */ jsxDEV(TableRow, {
341
- children: [/* @__PURE__ */ jsxDEV(TableHead, {
342
- children: t("function")
343
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
344
- children: t("kind")
345
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
346
- className: "text-right",
347
- children: t("calls")
348
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
349
- className: "text-right",
350
- children: t("errors")
351
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
352
- className: "text-right",
353
- children: t("conflicts")
354
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
355
- className: "text-right",
356
- children: t("avg")
357
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
358
- className: "text-right",
359
- children: t("max")
360
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
361
- children: t("last run")
362
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableHead, {
363
- children: t("last error")
364
- }, void 0, false)]
365
- }, void 0, true)
366
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableBody, {
367
- children: sorted.map((stat) => {
368
- const kind = kindByPath.get(stat.path);
369
- return /* @__PURE__ */ jsxDEV(TableRow, {
370
- "data-testid": `fs-row-${stat.path}`,
371
- children: [/* @__PURE__ */ jsxDEV(TableCell, {
372
- className: "font-medium",
373
- children: stat.path
374
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
375
- children: kind === void 0 ? /* @__PURE__ */ jsxDEV("span", {
376
- className: "text-muted-foreground",
377
- children: "—"
378
- }, void 0, false) : /* @__PURE__ */ jsxDEV(Badge, {
379
- variant: KIND_VARIANT[kind],
380
- children: kind
381
- }, void 0, false)
382
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
383
- className: "text-right tabular-nums",
384
- children: stat.calls
385
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
386
- className: cn("text-right tabular-nums", stat.errors > 0 && "text-destructive"),
387
- children: errorCell(stat)
388
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
389
- className: cn("text-right tabular-nums", (stat.conflicts ?? 0) > 0 && "text-warning"),
390
- children: conflictCell(stat)
391
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
392
- className: "text-right tabular-nums",
393
- children: stat.calls === 0 ? "—" : formatMs(stat.totalDurationMs / stat.calls)
394
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
395
- className: "text-right tabular-nums",
396
- children: stat.calls === 0 ? "—" : formatMs(stat.maxDurationMs)
397
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
398
- className: "text-muted-foreground",
399
- children: formatTimestamp(stat.lastCalledAt, "—")
400
- }, void 0, false), /* @__PURE__ */ jsxDEV(TableCell, {
401
- className: "max-w-[24ch] truncate text-destructive",
402
- title: stat.lastErrorMessage ?? void 0,
403
- children: stat.lastErrorMessage ?? /* @__PURE__ */ jsxDEV("span", {
404
- className: "text-muted-foreground",
405
- children: "—"
406
- }, void 0, false)
407
- }, void 0, false)]
408
- }, stat.path, true);
409
- })
410
- }, void 0, false)]
411
- }, void 0, true)
412
- }, void 0, false)
413
- }, void 0, false)]
414
- }, void 0, true);
415
- $[11] = error;
416
- $[12] = kindByPath;
417
- $[13] = liveError;
418
- $[14] = shardKey;
419
- $[15] = sortKey;
420
- $[16] = stats;
421
- $[17] = t;
422
- $[18] = t10;
423
- } else {
424
- t10 = $[18];
425
- }
426
- return t10;
427
- };
428
- function _temp(descriptor) {
429
- return [descriptor.path, descriptor.kind];
430
- }
431
-
432
- export { FunctionStatsPanel };