@lunora/studio 1.0.0-alpha.9 → 1.0.0-alpha.91

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 (314) hide show
  1. package/LICENSE.md +6 -0
  2. package/dist/index.d.ts +822 -781
  3. package/dist/index.js +1 -41
  4. package/dist/mount.d.ts +10 -10
  5. package/dist/mount.js +1 -26
  6. package/dist/packem_chunks/AdvisorHealthPanel.js +1 -0
  7. package/dist/packem_chunks/ApiTab.js +1 -0
  8. package/dist/packem_chunks/AuditPanel.js +1 -0
  9. package/dist/packem_chunks/DeploymentHealthPanel.js +1 -0
  10. package/dist/packem_chunks/ExportImportPanel.js +3 -0
  11. package/dist/packem_chunks/FileBrowser.js +4 -0
  12. package/dist/packem_chunks/FunctionRunner.js +1 -0
  13. package/dist/packem_chunks/FunctionStatsPanel.js +1 -0
  14. package/dist/packem_chunks/HealthPanel.js +1 -0
  15. package/dist/packem_chunks/InsightsPanel.js +1 -0
  16. package/dist/packem_chunks/LogsPanel.js +1 -0
  17. package/dist/packem_chunks/MailPanel.js +2 -0
  18. package/dist/packem_chunks/MetricsPanel.js +1 -0
  19. package/dist/packem_chunks/NotificationsPanel.js +1 -0
  20. package/dist/packem_chunks/PitrPanel.js +1 -0
  21. package/dist/packem_chunks/SchemaViewer.js +1 -0
  22. package/dist/packem_chunks/SecurityAdvisorPanel.js +1 -0
  23. package/dist/packem_chunks/SettingsPanel.js +1 -0
  24. package/dist/packem_chunks/SqlEditorPanel.js +6 -0
  25. package/dist/packem_chunks/TableEditor.js +1 -0
  26. package/dist/packem_chunks/agents-panel.js +1 -0
  27. package/dist/packem_chunks/analytics-panel.js +1 -0
  28. package/dist/packem_chunks/auth-audit-panel.js +1 -0
  29. package/dist/packem_chunks/auth-config-panel.js +1 -0
  30. package/dist/packem_chunks/auth-sessions-panel.js +1 -0
  31. package/dist/packem_chunks/containers-panel.js +1 -0
  32. package/dist/packem_chunks/dashboards-panel.js +1 -0
  33. package/dist/packem_chunks/fanout-panel.js +1 -0
  34. package/dist/packem_chunks/flags-panel.js +1 -0
  35. package/dist/packem_chunks/issues-panel.js +1 -0
  36. package/dist/packem_chunks/kv-browser.js +1 -0
  37. package/dist/packem_chunks/log-drains-panel.js +4 -0
  38. package/dist/packem_chunks/migrations-route.js +1 -0
  39. package/dist/packem_chunks/organizations-panel.js +1 -0
  40. package/dist/packem_chunks/payments-panel.js +1 -0
  41. package/dist/packem_chunks/permissions-panel.js +1 -0
  42. package/dist/packem_chunks/queues-panel.js +1 -0
  43. package/dist/packem_chunks/rls-panel.js +1 -0
  44. package/dist/packem_chunks/schedule-panel.js +1 -0
  45. package/dist/packem_chunks/sparkline.js +1 -0
  46. package/dist/packem_chunks/storage-rules-panel.js +1 -0
  47. package/dist/packem_chunks/subscriptions-panel.js +1 -0
  48. package/dist/packem_chunks/sync-client-panel.js +1 -0
  49. package/dist/packem_chunks/traces-panel.js +1 -0
  50. package/dist/packem_chunks/users-panel.js +1 -0
  51. package/dist/packem_chunks/vector-browser.js +1 -0
  52. package/dist/packem_chunks/workflows-panel.js +1 -0
  53. package/dist/packem_shared/ADMIN_FUNCTIONS-4aE59aDq.js +1 -0
  54. package/dist/packem_shared/ApiDocsPanel-Cu_QmzO0.js +2 -0
  55. package/dist/packem_shared/ApiReferencePanel-DuIU1P8B.js +1 -0
  56. package/dist/packem_shared/CommandPalette-mPR8-vIm.js +1 -0
  57. package/dist/packem_shared/ConfirmButton-CTL3f3kr.js +1 -0
  58. package/dist/packem_shared/ConnectionBadge-DOk0CQWo.js +1 -0
  59. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-BCC8_4BQ.js +1 -0
  60. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-B-hcFVoi.js +1 -0
  61. package/dist/packem_shared/DEFAULT_LOCALE-BZ4NojpD.js +1 -0
  62. package/dist/packem_shared/DataBrowser-BPRDaOHx.js +1 -0
  63. package/dist/packem_shared/DataFilters-B26ZeqBZ.js +1 -0
  64. package/dist/packem_shared/ErrorBoundary-DvzYskH7.js +1 -0
  65. package/dist/packem_shared/GlobalDataBrowser-CeA8bDjX.js +1 -0
  66. package/dist/packem_shared/HomePanel-DLP1nQdC.js +1 -0
  67. package/dist/packem_shared/MigrationsPanel-dm_M75mR.js +1 -0
  68. package/dist/packem_shared/OpenRpcReferencePanel-DXeffPFr.js +1 -0
  69. package/dist/packem_shared/STUDIO_ROOT_CLASS-C6MccdVk.js +1 -0
  70. package/dist/packem_shared/ScheduledJobs-DDJG9Je7.js +1 -0
  71. package/dist/packem_shared/ShardInput-BVn2iCU0.js +1 -0
  72. package/dist/packem_shared/Studio-BYg65qWq.js +1 -0
  73. package/dist/packem_shared/StudioApp-D0UOg0a_.js +1 -0
  74. package/dist/packem_shared/StudioI18nProvider-CZ5h4nrV.js +1 -0
  75. package/dist/packem_shared/advisor-view-Coipc04R.js +1 -0
  76. package/dist/packem_shared/aggregateMetrics-BNfajLa2.js +1 -0
  77. package/dist/packem_shared/alert-CVcOFuDR.js +1 -0
  78. package/dist/packem_shared/app.d-DW7yZsfu.d.ts +252 -0
  79. package/dist/packem_shared/badge-BbuuAio7.js +1 -0
  80. package/dist/packem_shared/bar-chart-DraN_srt.js +9 -0
  81. package/dist/packem_shared/browser-storage-xjTyMKY0.js +1 -0
  82. package/dist/packem_shared/button-BkCrNcAs.js +1 -0
  83. package/dist/packem_shared/card-CIDGUN6K.js +1 -0
  84. package/dist/packem_shared/cf-links-Dmg86v1D.js +1 -0
  85. package/dist/packem_shared/checkbox-StT4Gob6.js +1 -0
  86. package/dist/packem_shared/data-grid-Ci4-tZkk.js +1 -0
  87. package/dist/packem_shared/data-view-params-ClrV7XgF.js +1 -0
  88. package/dist/packem_shared/dropdown-menu-C3RQ_HlW.js +2 -0
  89. package/dist/packem_shared/empty-state-Cg7t_8qu.js +1 -0
  90. package/dist/packem_shared/error-alert--Ie7ofJ0.js +1 -0
  91. package/dist/packem_shared/grid-features-Db_BNYRo.js +6 -0
  92. package/dist/packem_shared/home-panel-BtxdqXDe.js +3 -0
  93. package/dist/packem_shared/input-JHu63lTv.js +1 -0
  94. package/dist/packem_shared/internal-zkEvTqy8.js +2 -0
  95. package/dist/packem_shared/label-6uP1obNF.js +1 -0
  96. package/dist/packem_shared/live-status-CmuRLFKf.js +1 -0
  97. package/dist/packem_shared/log-fields-CoL3hsIQ.js +1 -0
  98. package/dist/packem_shared/modal-shell-CUwwWC2o.js +1 -0
  99. package/dist/packem_shared/operation-console-provider-BMJNtiyB.js +1 -0
  100. package/dist/packem_shared/recording-client-DtUxwVNY.js +1 -0
  101. package/dist/packem_shared/reference-view-DncEStdm.js +12 -0
  102. package/dist/packem_shared/result-chart-Gywg9DOk.js +1 -0
  103. package/dist/packem_shared/schema-diagram-DTRaCp6Y.js +2 -0
  104. package/dist/packem_shared/scroll-area-DTEq6Jec.js +2 -0
  105. package/dist/packem_shared/select-Bul-DeII.js +2 -0
  106. package/dist/packem_shared/shard-history-DMEW5VBE.js +1 -0
  107. package/dist/packem_shared/skeleton-C1wQ9M5t.js +1 -0
  108. package/dist/packem_shared/sparkline-CgjeUU2I.js +1 -0
  109. package/dist/packem_shared/stat-card-fm_TF1mo.js +1 -0
  110. package/dist/packem_shared/storage-tier-DznqOf-q.js +1 -0
  111. package/dist/packem_shared/studio-Drf4en3j.js +2 -0
  112. package/dist/packem_shared/table-DdJBrClo.js +2 -0
  113. package/dist/packem_shared/table-list-sidebar-fz0m_4I4.js +1 -0
  114. package/dist/packem_shared/textarea-Bu2-jKAs.js +1 -0
  115. package/dist/packem_shared/trace-handoff-Dw7mwjxu.js +1 -0
  116. package/dist/packem_shared/use-admin-query-CnnyWJXM.js +1 -0
  117. package/dist/packem_shared/use-async-submit-BFIMhRqh.js +1 -0
  118. package/dist/packem_shared/use-auth-config-0EnNCdLu.js +1 -0
  119. package/dist/packem_shared/use-shard-key-B2JtNa5m.js +1 -0
  120. package/dist/packem_shared/use-sql-assistant-Dtw55kKM.js +1 -0
  121. package/dist/packem_shared/useDebounced-CU-uftxO.js +1 -0
  122. package/dist/packem_shared/utils-bhneXptQ.js +1 -0
  123. package/dist/packem_shared/virtual-rect-1o1veP7R.js +1 -0
  124. package/dist/packem_shared/wire-codec-BUrWLklj.js +1 -0
  125. package/dist/standalone/chunk-2NX5QU44.js +1 -0
  126. package/dist/standalone/chunk-2OUPA2WJ.js +1 -0
  127. package/dist/standalone/chunk-2PJNAWB3.js +1 -0
  128. package/dist/standalone/chunk-2QSHLBCO.js +1 -0
  129. package/dist/standalone/chunk-2QWHVQ6P.js +1 -0
  130. package/dist/standalone/chunk-3C3CG7ZK.js +1 -0
  131. package/dist/standalone/chunk-3CWGJYBB.js +1 -0
  132. package/dist/standalone/chunk-3FIN5PH4.js +6 -0
  133. package/dist/standalone/chunk-3XIESWL4.js +1 -0
  134. package/dist/standalone/chunk-3XQMTTW2.js +1 -0
  135. package/dist/standalone/chunk-4D7XIQ5Q.js +1 -0
  136. package/dist/standalone/chunk-4LCY5XUR.js +1 -0
  137. package/dist/standalone/chunk-4PLB4ZNI.js +1 -0
  138. package/dist/standalone/chunk-4UOFSGUS.js +1 -0
  139. package/dist/standalone/chunk-4VEAVSAZ.js +1 -0
  140. package/dist/standalone/chunk-54MMVNPT.js +1 -0
  141. package/dist/standalone/chunk-5Y3QLNWX.js +1 -0
  142. package/dist/standalone/chunk-6QKJ6JPJ.js +1 -0
  143. package/dist/standalone/chunk-6ST5ECQA.js +1 -0
  144. package/dist/standalone/chunk-6WWX4FJB.js +1 -0
  145. package/dist/standalone/chunk-6XKVQES4.js +1 -0
  146. package/dist/standalone/chunk-7H7LZRLP.js +1 -0
  147. package/dist/standalone/chunk-7QIFDWQV.js +1 -0
  148. package/dist/standalone/chunk-7QMX3D4D.js +3 -0
  149. package/dist/standalone/chunk-7T7UOTYK.js +1 -0
  150. package/dist/standalone/chunk-7YXDJXNL.js +1 -0
  151. package/dist/standalone/chunk-A7647FJE.js +1 -0
  152. package/dist/standalone/chunk-AQT6EPZT.js +1 -0
  153. package/dist/standalone/chunk-AREBQI6D.js +1 -0
  154. package/dist/standalone/chunk-AVAC26HJ.js +1 -0
  155. package/dist/standalone/chunk-BCGEI67L.js +2 -0
  156. package/dist/standalone/chunk-BENJFRZL.js +1 -0
  157. package/dist/standalone/chunk-BGBLQ563.js +1 -0
  158. package/dist/standalone/chunk-BYIS2KWZ.js +1 -0
  159. package/dist/standalone/chunk-C6GLTSPO.js +4 -0
  160. package/dist/standalone/chunk-CFPZYHPY.js +2 -0
  161. package/dist/standalone/chunk-CMP33R3N.js +1 -0
  162. package/dist/standalone/chunk-CRHCAN4W.js +13 -0
  163. package/dist/standalone/chunk-CUAGAM2B.js +1 -0
  164. package/dist/standalone/chunk-DBWOWJYT.js +11 -0
  165. package/dist/standalone/chunk-EQZTSISX.js +1 -0
  166. package/dist/standalone/chunk-ESEEVSPC.js +1 -0
  167. package/dist/standalone/chunk-ESVP44Y3.js +1 -0
  168. package/dist/standalone/chunk-F3TP5L34.js +1 -0
  169. package/dist/standalone/chunk-FBNRATNR.js +1 -0
  170. package/dist/standalone/chunk-FURI47Z2.js +1 -0
  171. package/dist/standalone/chunk-FW75RYZU.js +1 -0
  172. package/dist/standalone/chunk-FXCBF4XT.js +1 -0
  173. package/dist/standalone/chunk-GMR677FL.js +1 -0
  174. package/dist/standalone/chunk-GRL5MG3Z.js +1 -0
  175. package/dist/standalone/chunk-HKG5I64M.js +1 -0
  176. package/dist/standalone/chunk-HPFLBYRI.js +1 -0
  177. package/dist/standalone/chunk-HWOD25QD.js +1 -0
  178. package/dist/standalone/chunk-I6A5C46N.js +1 -0
  179. package/dist/standalone/chunk-IBVBIKUI.js +1 -0
  180. package/dist/standalone/chunk-IC4L6G56.js +1 -0
  181. package/dist/standalone/chunk-IGCNMZSB.js +1 -0
  182. package/dist/standalone/chunk-ILNELDFC.js +1 -0
  183. package/dist/standalone/chunk-IUUSMC2R.js +8 -0
  184. package/dist/standalone/chunk-IUYFXK4X.js +19 -0
  185. package/dist/standalone/chunk-IVFHIQOT.js +1 -0
  186. package/dist/standalone/chunk-IZ3ISXSM.js +1 -0
  187. package/dist/standalone/chunk-J3FR2XBV.js +1 -0
  188. package/dist/standalone/chunk-JN2Y24PY.js +1 -0
  189. package/dist/standalone/chunk-JWXKUXYA.js +1 -0
  190. package/dist/standalone/chunk-KUFAOKU3.js +1 -0
  191. package/dist/standalone/chunk-KUVMORDQ.js +1 -0
  192. package/dist/standalone/chunk-LDYOCGEG.js +1 -0
  193. package/dist/standalone/chunk-LEDWUPXM.js +1 -0
  194. package/dist/standalone/chunk-LUU4SDHW.js +1 -0
  195. package/dist/standalone/chunk-LYQY7L72.js +4 -0
  196. package/dist/standalone/chunk-LZH7RDRV.js +1 -0
  197. package/dist/standalone/chunk-MIQTKZAR.js +1 -0
  198. package/dist/standalone/chunk-ML5IJMH6.js +1 -0
  199. package/dist/standalone/chunk-MV4A2PAK.js +1 -0
  200. package/dist/standalone/chunk-N233NOIN.js +1 -0
  201. package/dist/standalone/chunk-NH3VWHCL.js +1 -0
  202. package/dist/standalone/chunk-NNRFDPSD.js +1 -0
  203. package/dist/standalone/chunk-O2QUUHGF.js +1 -0
  204. package/dist/standalone/chunk-Q2Q7FR3R.js +1 -0
  205. package/dist/standalone/chunk-Q4AI6JRP.js +1 -0
  206. package/dist/standalone/chunk-QBWRC5YX.js +1 -0
  207. package/dist/standalone/chunk-QGA2HITH.js +1 -0
  208. package/dist/standalone/chunk-QLQADHFE.js +1 -0
  209. package/dist/standalone/chunk-QWGT25SE.js +1 -0
  210. package/dist/standalone/chunk-QWJ4HKPY.js +1 -0
  211. package/dist/standalone/chunk-QZGTDXV5.js +1 -0
  212. package/dist/standalone/chunk-RHPP74O4.js +1 -0
  213. package/dist/standalone/chunk-RKGCSNAW.js +1 -0
  214. package/dist/standalone/chunk-RMN2JN4S.js +1 -0
  215. package/dist/standalone/chunk-RNOSWEMO.js +4 -0
  216. package/dist/standalone/chunk-S3DWUXGY.js +62 -0
  217. package/dist/standalone/chunk-SD4BERSA.js +1 -0
  218. package/dist/standalone/chunk-SFDOII3B.js +1 -0
  219. package/dist/standalone/chunk-SMIESS7P.js +1 -0
  220. package/dist/standalone/chunk-T6VMSOBB.js +1 -0
  221. package/dist/standalone/chunk-THIXMMZD.js +1 -0
  222. package/dist/standalone/chunk-ULYM26IH.js +1 -0
  223. package/dist/standalone/chunk-UU2QJMGJ.js +1 -0
  224. package/dist/standalone/chunk-UZERI5YC.js +1 -0
  225. package/dist/standalone/chunk-V53KNYRN.js +1 -0
  226. package/dist/standalone/chunk-VDW32UET.js +1 -0
  227. package/dist/standalone/chunk-WOEGO5M6.js +1 -0
  228. package/dist/standalone/chunk-XBDKZZ67.js +1 -0
  229. package/dist/standalone/chunk-XDEDCAYN.js +1 -0
  230. package/dist/standalone/chunk-XF2B7P5A.js +1 -0
  231. package/dist/standalone/chunk-XGMZESWC.js +1 -0
  232. package/dist/standalone/chunk-XKKP2VFZ.js +1 -0
  233. package/dist/standalone/chunk-XNGYYOLS.js +14 -0
  234. package/dist/standalone/chunk-XQCVZAGU.js +1 -0
  235. package/dist/standalone/chunk-XTEWLG3J.js +3 -0
  236. package/dist/standalone/chunk-XXQUMVWH.js +1 -0
  237. package/dist/standalone/chunk-XXXMUP6L.js +1 -0
  238. package/dist/standalone/chunk-ZJGP6EKR.js +1 -0
  239. package/dist/standalone/chunk-ZKTWHB7Q.js +1 -0
  240. package/dist/standalone/chunk-ZNMZQXWN.js +1 -0
  241. package/dist/standalone/chunk-ZWSTXAG3.js +6 -0
  242. package/dist/standalone/studio.js +9 -356
  243. package/dist/styles.css +2 -2
  244. package/package.json +16 -14
  245. package/dist/packem_shared/ADMIN_FUNCTIONS-DjXgvJb6.js +0 -46
  246. package/dist/packem_shared/ApiDocsPanel-yVSGHK3H.js +0 -842
  247. package/dist/packem_shared/ApiReferencePanel-1vubqG5s.js +0 -229
  248. package/dist/packem_shared/ApiTab-rwttyQ1-.js +0 -251
  249. package/dist/packem_shared/AuditPanel-BqXZAsu_.js +0 -212
  250. package/dist/packem_shared/CommandPalette-BtgkBzZI.js +0 -373
  251. package/dist/packem_shared/ConfirmButton-C2eVi2Qv.js +0 -59
  252. package/dist/packem_shared/ConnectionBadge-B2DDM2Tn.js +0 -111
  253. package/dist/packem_shared/DEFAULT_AUTO_REFRESH_MS-Vxwaxx51.js +0 -50
  254. package/dist/packem_shared/DEFAULT_INSIGHT_THRESHOLDS-DjF0h-gA.js +0 -89
  255. package/dist/packem_shared/DEFAULT_LOCALE-CiX4W7Kr.js +0 -27
  256. package/dist/packem_shared/DataBrowser-BtT2NYcR.js +0 -4542
  257. package/dist/packem_shared/DataFilters-FNquMaiu.js +0 -249
  258. package/dist/packem_shared/ErrorBoundary-BzAApI7J.js +0 -66
  259. package/dist/packem_shared/ExportImportPanel-Dq6rj0tI.js +0 -193
  260. package/dist/packem_shared/FileBrowser-0pCpdKPE.js +0 -2932
  261. package/dist/packem_shared/FunctionRunner-7NH3KcTg.js +0 -343
  262. package/dist/packem_shared/FunctionStatsPanel-Cn_EBpDy.js +0 -432
  263. package/dist/packem_shared/GlobalDataBrowser-BTEmGrph.js +0 -318
  264. package/dist/packem_shared/HealthPanel-CQ4LzVET.js +0 -640
  265. package/dist/packem_shared/HomePanel-CP0lN1eF.js +0 -1273
  266. package/dist/packem_shared/InsightsPanel-B1BaHaPL.js +0 -431
  267. package/dist/packem_shared/LogsPanel-C3W0mabf.js +0 -839
  268. package/dist/packem_shared/MailPanel-DozizrvV.js +0 -447
  269. package/dist/packem_shared/MetricsPanel-CujtUfpl.js +0 -1625
  270. package/dist/packem_shared/MigrationsPanel-RX5qIFSr.js +0 -246
  271. package/dist/packem_shared/OpenRpcReferencePanel-vbcYbv3V.js +0 -191
  272. package/dist/packem_shared/PitrPanel-LJGNP_IX.js +0 -252
  273. package/dist/packem_shared/STUDIO_ROOT_CLASS-D12gX2dV.js +0 -3
  274. package/dist/packem_shared/ScheduledJobs-CabfKbyM.js +0 -159
  275. package/dist/packem_shared/SchemaViewer-Bam6ylvw.js +0 -2512
  276. package/dist/packem_shared/SecurityAdvisorPanel-Bn2yq05G.js +0 -79
  277. package/dist/packem_shared/SettingsPanel-CBXQpYQA.js +0 -176
  278. package/dist/packem_shared/ShardInput-gx_DZXXn.js +0 -107
  279. package/dist/packem_shared/SqlEditorPanel-D5wMIxcg.js +0 -13
  280. package/dist/packem_shared/Studio-CccqZ-J1.js +0 -33
  281. package/dist/packem_shared/StudioApp-CQbULfaH.js +0 -657
  282. package/dist/packem_shared/StudioI18nProvider-B-tDCZIi.js +0 -48
  283. package/dist/packem_shared/TableEditor-Df_5NPaF.js +0 -371
  284. package/dist/packem_shared/advisor-view-CGcfMiPq.js +0 -159
  285. package/dist/packem_shared/aggregateMetrics-D4nUHEKU.js +0 -108
  286. package/dist/packem_shared/app.d-Nbhpihxv.d.ts +0 -300
  287. package/dist/packem_shared/badge-B2PKA1-5.js +0 -49
  288. package/dist/packem_shared/bar-chart-CzJAgqkp.js +0 -3245
  289. package/dist/packem_shared/button-BhsN2uZH.js +0 -49
  290. package/dist/packem_shared/card-DURq3ElK.js +0 -175
  291. package/dist/packem_shared/cf-links-2cktDedA.js +0 -8
  292. package/dist/packem_shared/checkbox-UNkzAxl-.js +0 -63
  293. package/dist/packem_shared/data-grid-B5CaV3wS.js +0 -183
  294. package/dist/packem_shared/dropdown-menu-WY4B_eJO.js +0 -280
  295. package/dist/packem_shared/empty-state-DY_oe0k6.js +0 -98
  296. package/dist/packem_shared/grid-features-CzUfqgsM.js +0 -840
  297. package/dist/packem_shared/input-XH4r1Pt1.js +0 -53
  298. package/dist/packem_shared/internal-rXJEAhXS.js +0 -68
  299. package/dist/packem_shared/label-D8ykjn5J.js +0 -46
  300. package/dist/packem_shared/live-status-FZ0psC1z.js +0 -44
  301. package/dist/packem_shared/reference-view-B4E49Lip.js +0 -2180
  302. package/dist/packem_shared/shard-history-DyebH1R5.js +0 -38
  303. package/dist/packem_shared/sparkline-10dG-_f0.js +0 -93
  304. package/dist/packem_shared/sql-editor-panel-Smfl_FDF.js +0 -2562
  305. package/dist/packem_shared/storage-tier-CL98eOvn.js +0 -85
  306. package/dist/packem_shared/studio-D93XGB-i.js +0 -10413
  307. package/dist/packem_shared/table-_RzNvy3R.js +0 -246
  308. package/dist/packem_shared/table-list-sidebar-Bg7uzbvC.js +0 -832
  309. package/dist/packem_shared/textarea-D3gaCU_-.js +0 -46
  310. package/dist/packem_shared/use-live-admin-Dq6g3daN.js +0 -73
  311. package/dist/packem_shared/use-live-shard-seed-Cuk3dnH0.js +0 -76
  312. package/dist/packem_shared/useDebounced-Dxncpg6z.js +0 -32
  313. package/dist/packem_shared/utils-B05Dmz_H.js +0 -8
  314. 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-FZ0psC1z.js';
5
- import { ShardInput } from './ShardInput-gx_DZXXn.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-Dq6g3daN.js';
12
- import { useT } from './DEFAULT_LOCALE-CiX4W7Kr.js';
13
- import { ADMIN_FUNCTIONS } from './ADMIN_FUNCTIONS-DjXgvJb6.js';
14
- import { b as formatTimestamp, c as callOptions, e as errorMessage, a as adminRef } from './internal-rXJEAhXS.js';
15
- import { c as cn } from './utils-B05Dmz_H.js';
16
- import { u as useLiveShardSeed } from './use-live-shard-seed-Cuk3dnH0.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 };