adonisjs-server-stats 1.6.12 → 1.6.14

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 (422) hide show
  1. package/dist/configure.d.ts +0 -1
  2. package/dist/core/api-client.d.ts +0 -1
  3. package/dist/core/config-utils.d.ts +0 -1
  4. package/dist/core/constants.d.ts +0 -1
  5. package/dist/core/dashboard-api.d.ts +0 -1
  6. package/dist/core/dashboard-data-controller.d.ts +0 -1
  7. package/dist/core/debug-data-controller.d.ts +0 -1
  8. package/dist/core/feature-detect.d.ts +0 -1
  9. package/dist/core/formatters.d.ts +0 -1
  10. package/dist/core/history-buffer.d.ts +0 -1
  11. package/dist/core/icons.d.ts +0 -1
  12. package/dist/core/index.d.ts +0 -1
  13. package/dist/core/internals-utils.d.ts +0 -1
  14. package/dist/core/job-utils.d.ts +0 -1
  15. package/dist/core/log-utils.d.ts +0 -1
  16. package/dist/core/metrics.d.ts +0 -1
  17. package/dist/core/pagination.d.ts +0 -1
  18. package/dist/core/query-utils.d.ts +0 -1
  19. package/dist/core/resizable-columns.d.ts +0 -1
  20. package/dist/core/routes.d.ts +0 -1
  21. package/dist/core/server-stats-controller.d.ts +0 -1
  22. package/dist/core/sparkline.d.ts +0 -1
  23. package/dist/core/theme.d.ts +0 -1
  24. package/dist/core/trace-utils.d.ts +0 -1
  25. package/dist/core/transmit-adapter.d.ts +0 -1
  26. package/dist/core/types.d.ts +0 -1
  27. package/dist/react/react/components/Dashboard/DashboardPage.d.ts +0 -1
  28. package/dist/react/react/components/Dashboard/sections/CacheSection.d.ts +0 -1
  29. package/dist/react/react/components/Dashboard/sections/ConfigSection.d.ts +0 -1
  30. package/dist/react/react/components/Dashboard/sections/EmailsSection.d.ts +0 -1
  31. package/dist/react/react/components/Dashboard/sections/EventsSection.d.ts +0 -1
  32. package/dist/react/react/components/Dashboard/sections/InternalsSection.d.ts +0 -1
  33. package/dist/react/react/components/Dashboard/sections/JobsSection.d.ts +0 -1
  34. package/dist/react/react/components/Dashboard/sections/LogsSection.d.ts +0 -1
  35. package/dist/react/react/components/Dashboard/sections/OverviewSection.d.ts +0 -1
  36. package/dist/react/react/components/Dashboard/sections/QueriesSection.d.ts +0 -1
  37. package/dist/react/react/components/Dashboard/sections/RequestsSection.d.ts +0 -1
  38. package/dist/react/react/components/Dashboard/sections/RoutesSection.d.ts +0 -1
  39. package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts +0 -1
  40. package/dist/react/react/components/Dashboard/shared/DataTable.d.ts +0 -1
  41. package/dist/react/react/components/Dashboard/shared/FilterBar.d.ts +0 -1
  42. package/dist/react/react/components/Dashboard/shared/Pagination.d.ts +0 -1
  43. package/dist/react/react/components/Dashboard/shared/TimeRangeSelector.d.ts +0 -1
  44. package/dist/react/react/components/Dashboard/shared/WaterfallChart.d.ts +0 -1
  45. package/dist/react/react/components/DebugPanel/DebugPanel.d.ts +0 -1
  46. package/dist/react/react/components/DebugPanel/tabs/CacheTab.d.ts +0 -1
  47. package/dist/react/react/components/DebugPanel/tabs/ConfigTab.d.ts +0 -1
  48. package/dist/react/react/components/DebugPanel/tabs/CustomPaneTab.d.ts +0 -1
  49. package/dist/react/react/components/DebugPanel/tabs/EmailsTab.d.ts +0 -1
  50. package/dist/react/react/components/DebugPanel/tabs/EventsTab.d.ts +0 -1
  51. package/dist/react/react/components/DebugPanel/tabs/InternalsTab.d.ts +0 -1
  52. package/dist/react/react/components/DebugPanel/tabs/JobsTab.d.ts +0 -1
  53. package/dist/react/react/components/DebugPanel/tabs/LogsTab.d.ts +0 -1
  54. package/dist/react/react/components/DebugPanel/tabs/QueriesTab.d.ts +0 -1
  55. package/dist/react/react/components/DebugPanel/tabs/RoutesTab.d.ts +0 -1
  56. package/dist/react/react/components/DebugPanel/tabs/TimelineTab.d.ts +0 -1
  57. package/dist/react/react/components/StatsBar/MetricCard.d.ts +0 -1
  58. package/dist/react/react/components/StatsBar/Sparkline.d.ts +0 -1
  59. package/dist/react/react/components/StatsBar/StatsBar.d.ts +0 -1
  60. package/dist/react/react/components/shared/Badge.d.ts +0 -1
  61. package/dist/react/react/components/shared/ConfigContent.d.ts +0 -1
  62. package/dist/react/react/components/shared/InternalsContent.d.ts +0 -1
  63. package/dist/react/react/components/shared/JsonViewer.d.ts +0 -1
  64. package/dist/react/react/components/shared/ThemeToggle.d.ts +0 -1
  65. package/dist/react/react/components/shared/Tooltip.d.ts +0 -1
  66. package/dist/react/react/hooks/useApiClient.d.ts +0 -1
  67. package/dist/react/react/hooks/useDashboardApiBase.d.ts +0 -1
  68. package/dist/react/react/hooks/useDashboardData.d.ts +0 -1
  69. package/dist/react/react/hooks/useDebugData.d.ts +0 -1
  70. package/dist/react/react/hooks/useFeatures.d.ts +0 -1
  71. package/dist/react/react/hooks/useResizableTable.d.ts +0 -1
  72. package/dist/react/react/hooks/useServerStats.d.ts +0 -1
  73. package/dist/react/react/hooks/useTheme.d.ts +0 -1
  74. package/dist/react/react/index.d.ts +0 -1
  75. package/dist/src/collectors/app_collector.d.ts +0 -1
  76. package/dist/src/collectors/auto_detect.d.ts +0 -1
  77. package/dist/src/collectors/collector.d.ts +0 -1
  78. package/dist/src/collectors/db_pool_collector.d.ts +0 -1
  79. package/dist/src/collectors/http_collector.d.ts +0 -1
  80. package/dist/src/collectors/index.d.ts +0 -1
  81. package/dist/src/collectors/log_collector.d.ts +0 -1
  82. package/dist/src/collectors/process_collector.d.ts +0 -1
  83. package/dist/src/collectors/queue_collector.d.ts +0 -1
  84. package/dist/src/collectors/redis_collector.d.ts +0 -1
  85. package/dist/src/collectors/system_collector.d.ts +0 -1
  86. package/dist/src/controller/api_controller.d.ts +0 -1
  87. package/dist/src/controller/debug_controller.d.ts +0 -1
  88. package/dist/src/controller/server_stats_controller.d.ts +0 -1
  89. package/dist/src/core/theme.d.ts +0 -1
  90. package/dist/src/dashboard/chart_aggregator.d.ts +0 -1
  91. package/dist/src/dashboard/dashboard_controller.d.ts +0 -1
  92. package/dist/src/dashboard/dashboard_store.d.ts +0 -1
  93. package/dist/src/dashboard/integrations/cache_inspector.d.ts +0 -1
  94. package/dist/src/dashboard/integrations/config_inspector.d.ts +0 -1
  95. package/dist/src/dashboard/integrations/index.d.ts +0 -1
  96. package/dist/src/dashboard/integrations/queue_inspector.d.ts +0 -1
  97. package/dist/src/dashboard/migrator.d.ts +0 -1
  98. package/dist/src/dashboard/models/stats_email.d.ts +0 -1
  99. package/dist/src/dashboard/models/stats_event.d.ts +0 -1
  100. package/dist/src/dashboard/models/stats_log.d.ts +0 -1
  101. package/dist/src/dashboard/models/stats_metric.d.ts +0 -1
  102. package/dist/src/dashboard/models/stats_query.d.ts +0 -1
  103. package/dist/src/dashboard/models/stats_request.d.ts +0 -1
  104. package/dist/src/dashboard/models/stats_saved_filter.d.ts +0 -1
  105. package/dist/src/dashboard/models/stats_trace.d.ts +0 -1
  106. package/dist/src/data/data_access.d.ts +0 -1
  107. package/dist/src/data/data_access.js +2 -1
  108. package/dist/src/data/index.d.ts +0 -1
  109. package/dist/src/debug/debug_store.d.ts +0 -1
  110. package/dist/src/debug/email_collector.d.ts +0 -1
  111. package/dist/src/debug/email_collector.js +1 -1
  112. package/dist/src/debug/event_collector.d.ts +0 -1
  113. package/dist/src/debug/event_collector.js +1 -1
  114. package/dist/src/debug/query_collector.d.ts +0 -1
  115. package/dist/src/debug/query_collector.js +1 -1
  116. package/dist/src/debug/ring_buffer.d.ts +0 -1
  117. package/dist/src/debug/route_inspector.d.ts +0 -1
  118. package/dist/src/debug/trace_collector.d.ts +0 -1
  119. package/dist/src/debug/trace_collector.js +1 -1
  120. package/dist/src/debug/types.d.ts +0 -1
  121. package/dist/src/define_config.d.ts +0 -1
  122. package/dist/src/edge/bootstrap.d.ts +0 -1
  123. package/dist/src/edge/plugin.d.ts +0 -1
  124. package/dist/src/edge/types.d.ts +0 -1
  125. package/dist/src/engine/request_metrics.d.ts +0 -1
  126. package/dist/src/engine/stats_engine.d.ts +0 -1
  127. package/dist/src/index.d.ts +0 -1
  128. package/dist/src/log_stream/log_stream_provider.d.ts +0 -1
  129. package/dist/src/log_stream/log_stream_service.d.ts +0 -1
  130. package/dist/src/middleware/request_tracking_middleware.d.ts +0 -1
  131. package/dist/src/prometheus/prometheus_collector.d.ts +0 -1
  132. package/dist/src/provider/server_stats_provider.d.ts +0 -1
  133. package/dist/src/routes/access_middleware.d.ts +0 -1
  134. package/dist/src/routes/index.d.ts +0 -1
  135. package/dist/src/routes/register_routes.d.ts +0 -1
  136. package/dist/src/routes/router_types.d.ts +0 -1
  137. package/dist/src/stubs/main.d.ts +0 -1
  138. package/dist/src/types.d.ts +0 -1
  139. package/dist/src/utils/app_import.d.ts +0 -1
  140. package/dist/src/utils/json_helpers.d.ts +0 -1
  141. package/dist/src/utils/logger.d.ts +0 -1
  142. package/dist/src/utils/mail_helpers.d.ts +0 -1
  143. package/dist/src/utils/math_helpers.d.ts +0 -1
  144. package/dist/src/utils/time_helpers.d.ts +0 -1
  145. package/dist/src/utils/transmit_client.d.ts +0 -1
  146. package/dist/vue/components/Dashboard/DashboardPage.vue.d.ts +0 -1
  147. package/dist/vue/components/Dashboard/sections/CacheSection.vue.d.ts +0 -1
  148. package/dist/vue/components/Dashboard/sections/ConfigSection.vue.d.ts +0 -1
  149. package/dist/vue/components/Dashboard/sections/EmailsSection.vue.d.ts +0 -1
  150. package/dist/vue/components/Dashboard/sections/EventsSection.vue.d.ts +0 -1
  151. package/dist/vue/components/Dashboard/sections/InternalsSection.vue.d.ts +0 -1
  152. package/dist/vue/components/Dashboard/sections/JobsSection.vue.d.ts +0 -1
  153. package/dist/vue/components/Dashboard/sections/LogsSection.vue.d.ts +0 -1
  154. package/dist/vue/components/Dashboard/sections/OverviewSection.vue.d.ts +0 -1
  155. package/dist/vue/components/Dashboard/sections/QueriesSection.vue.d.ts +0 -1
  156. package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts +0 -1
  157. package/dist/vue/components/Dashboard/sections/RoutesSection.vue.d.ts +0 -1
  158. package/dist/vue/components/Dashboard/sections/TimelineSection.vue.d.ts +0 -1
  159. package/dist/vue/components/Dashboard/shared/FilterBar.vue.d.ts +0 -1
  160. package/dist/vue/components/Dashboard/shared/PaginationControls.vue.d.ts +0 -1
  161. package/dist/vue/components/Dashboard/shared/TimeRangeSelector.vue.d.ts +0 -1
  162. package/dist/vue/components/Dashboard/shared/WaterfallChart.vue.d.ts +0 -1
  163. package/dist/vue/components/DebugPanel/DebugPanel.vue.d.ts +0 -1
  164. package/dist/vue/components/DebugPanel/tabs/CacheTab.vue.d.ts +0 -1
  165. package/dist/vue/components/DebugPanel/tabs/ConfigTab.vue.d.ts +0 -1
  166. package/dist/vue/components/DebugPanel/tabs/CustomPaneTab.vue.d.ts +0 -1
  167. package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts +0 -1
  168. package/dist/vue/components/DebugPanel/tabs/EventsTab.vue.d.ts +0 -1
  169. package/dist/vue/components/DebugPanel/tabs/InternalsTab.vue.d.ts +0 -1
  170. package/dist/vue/components/DebugPanel/tabs/JobsTab.vue.d.ts +0 -1
  171. package/dist/vue/components/DebugPanel/tabs/LogsTab.vue.d.ts +0 -1
  172. package/dist/vue/components/DebugPanel/tabs/QueriesTab.vue.d.ts +0 -1
  173. package/dist/vue/components/DebugPanel/tabs/RoutesTab.vue.d.ts +0 -1
  174. package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts +0 -1
  175. package/dist/vue/components/StatsBar/MetricCard.vue.d.ts +0 -1
  176. package/dist/vue/components/StatsBar/Sparkline.vue.d.ts +0 -1
  177. package/dist/vue/components/StatsBar/StatsBar.vue.d.ts +0 -1
  178. package/dist/vue/components/shared/JsonViewer.vue.d.ts +0 -1
  179. package/dist/vue/components/shared/ThemeToggle.vue.d.ts +0 -1
  180. package/dist/vue/composables/useApiClient.d.ts +0 -1
  181. package/dist/vue/composables/useDashboardData.d.ts +0 -1
  182. package/dist/vue/composables/useDebugData.d.ts +0 -1
  183. package/dist/vue/composables/useFeatures.d.ts +0 -1
  184. package/dist/vue/composables/useResizableTable.d.ts +0 -1
  185. package/dist/vue/composables/useServerStats.d.ts +0 -1
  186. package/dist/vue/composables/useTheme.d.ts +0 -1
  187. package/dist/vue/index.d.ts +0 -1
  188. package/package.json +1 -1
  189. package/dist/configure.d.ts.map +0 -1
  190. package/dist/core/api-client.d.ts.map +0 -1
  191. package/dist/core/config-utils.d.ts.map +0 -1
  192. package/dist/core/constants.d.ts.map +0 -1
  193. package/dist/core/dashboard-api.d.ts.map +0 -1
  194. package/dist/core/dashboard-data-controller.d.ts.map +0 -1
  195. package/dist/core/debug-data-controller.d.ts.map +0 -1
  196. package/dist/core/feature-detect.d.ts.map +0 -1
  197. package/dist/core/formatters.d.ts.map +0 -1
  198. package/dist/core/history-buffer.d.ts.map +0 -1
  199. package/dist/core/icons.d.ts.map +0 -1
  200. package/dist/core/index.d.ts.map +0 -1
  201. package/dist/core/internals-utils.d.ts.map +0 -1
  202. package/dist/core/job-utils.d.ts.map +0 -1
  203. package/dist/core/log-utils.d.ts.map +0 -1
  204. package/dist/core/metrics.d.ts.map +0 -1
  205. package/dist/core/pagination.d.ts.map +0 -1
  206. package/dist/core/query-utils.d.ts.map +0 -1
  207. package/dist/core/resizable-columns.d.ts.map +0 -1
  208. package/dist/core/routes.d.ts.map +0 -1
  209. package/dist/core/server-stats-controller.d.ts.map +0 -1
  210. package/dist/core/sparkline.d.ts.map +0 -1
  211. package/dist/core/theme.d.ts.map +0 -1
  212. package/dist/core/trace-utils.d.ts.map +0 -1
  213. package/dist/core/transmit-adapter.d.ts.map +0 -1
  214. package/dist/core/types.d.ts.map +0 -1
  215. package/dist/react/core/api-client.d.ts +0 -73
  216. package/dist/react/core/api-client.d.ts.map +0 -1
  217. package/dist/react/core/config-utils.d.ts +0 -109
  218. package/dist/react/core/config-utils.d.ts.map +0 -1
  219. package/dist/react/core/constants.d.ts +0 -11
  220. package/dist/react/core/constants.d.ts.map +0 -1
  221. package/dist/react/core/dashboard-api.d.ts +0 -66
  222. package/dist/react/core/dashboard-api.d.ts.map +0 -1
  223. package/dist/react/core/dashboard-data-controller.d.ts +0 -159
  224. package/dist/react/core/dashboard-data-controller.d.ts.map +0 -1
  225. package/dist/react/core/debug-data-controller.d.ts +0 -90
  226. package/dist/react/core/debug-data-controller.d.ts.map +0 -1
  227. package/dist/react/core/feature-detect.d.ts +0 -67
  228. package/dist/react/core/feature-detect.d.ts.map +0 -1
  229. package/dist/react/core/formatters.d.ts +0 -189
  230. package/dist/react/core/formatters.d.ts.map +0 -1
  231. package/dist/react/core/history-buffer.d.ts +0 -23
  232. package/dist/react/core/history-buffer.d.ts.map +0 -1
  233. package/dist/react/core/icons.d.ts +0 -36
  234. package/dist/react/core/icons.d.ts.map +0 -1
  235. package/dist/react/core/index.d.ts +0 -39
  236. package/dist/react/core/index.d.ts.map +0 -1
  237. package/dist/react/core/internals-utils.d.ts +0 -71
  238. package/dist/react/core/internals-utils.d.ts.map +0 -1
  239. package/dist/react/core/job-utils.d.ts +0 -45
  240. package/dist/react/core/job-utils.d.ts.map +0 -1
  241. package/dist/react/core/log-utils.d.ts +0 -34
  242. package/dist/react/core/log-utils.d.ts.map +0 -1
  243. package/dist/react/core/metrics.d.ts +0 -41
  244. package/dist/react/core/metrics.d.ts.map +0 -1
  245. package/dist/react/core/pagination.d.ts +0 -128
  246. package/dist/react/core/pagination.d.ts.map +0 -1
  247. package/dist/react/core/query-utils.d.ts +0 -35
  248. package/dist/react/core/query-utils.d.ts.map +0 -1
  249. package/dist/react/core/resizable-columns.d.ts +0 -18
  250. package/dist/react/core/resizable-columns.d.ts.map +0 -1
  251. package/dist/react/core/routes.d.ts +0 -12
  252. package/dist/react/core/routes.d.ts.map +0 -1
  253. package/dist/react/core/server-stats-controller.d.ts +0 -107
  254. package/dist/react/core/server-stats-controller.d.ts.map +0 -1
  255. package/dist/react/core/sparkline.d.ts +0 -80
  256. package/dist/react/core/sparkline.d.ts.map +0 -1
  257. package/dist/react/core/theme.d.ts +0 -42
  258. package/dist/react/core/theme.d.ts.map +0 -1
  259. package/dist/react/core/trace-utils.d.ts +0 -62
  260. package/dist/react/core/trace-utils.d.ts.map +0 -1
  261. package/dist/react/core/transmit-adapter.d.ts +0 -59
  262. package/dist/react/core/transmit-adapter.d.ts.map +0 -1
  263. package/dist/react/core/types.d.ts +0 -619
  264. package/dist/react/core/types.d.ts.map +0 -1
  265. package/dist/react/react/components/Dashboard/DashboardPage.d.ts.map +0 -1
  266. package/dist/react/react/components/Dashboard/sections/CacheSection.d.ts.map +0 -1
  267. package/dist/react/react/components/Dashboard/sections/ConfigSection.d.ts.map +0 -1
  268. package/dist/react/react/components/Dashboard/sections/EmailsSection.d.ts.map +0 -1
  269. package/dist/react/react/components/Dashboard/sections/EventsSection.d.ts.map +0 -1
  270. package/dist/react/react/components/Dashboard/sections/InternalsSection.d.ts.map +0 -1
  271. package/dist/react/react/components/Dashboard/sections/JobsSection.d.ts.map +0 -1
  272. package/dist/react/react/components/Dashboard/sections/LogsSection.d.ts.map +0 -1
  273. package/dist/react/react/components/Dashboard/sections/OverviewSection.d.ts.map +0 -1
  274. package/dist/react/react/components/Dashboard/sections/QueriesSection.d.ts.map +0 -1
  275. package/dist/react/react/components/Dashboard/sections/RequestsSection.d.ts.map +0 -1
  276. package/dist/react/react/components/Dashboard/sections/RoutesSection.d.ts.map +0 -1
  277. package/dist/react/react/components/Dashboard/sections/TimelineSection.d.ts.map +0 -1
  278. package/dist/react/react/components/Dashboard/shared/DataTable.d.ts.map +0 -1
  279. package/dist/react/react/components/Dashboard/shared/FilterBar.d.ts.map +0 -1
  280. package/dist/react/react/components/Dashboard/shared/Pagination.d.ts.map +0 -1
  281. package/dist/react/react/components/Dashboard/shared/TimeRangeSelector.d.ts.map +0 -1
  282. package/dist/react/react/components/Dashboard/shared/WaterfallChart.d.ts.map +0 -1
  283. package/dist/react/react/components/DebugPanel/DebugPanel.d.ts.map +0 -1
  284. package/dist/react/react/components/DebugPanel/tabs/CacheTab.d.ts.map +0 -1
  285. package/dist/react/react/components/DebugPanel/tabs/ConfigTab.d.ts.map +0 -1
  286. package/dist/react/react/components/DebugPanel/tabs/CustomPaneTab.d.ts.map +0 -1
  287. package/dist/react/react/components/DebugPanel/tabs/EmailsTab.d.ts.map +0 -1
  288. package/dist/react/react/components/DebugPanel/tabs/EventsTab.d.ts.map +0 -1
  289. package/dist/react/react/components/DebugPanel/tabs/InternalsTab.d.ts.map +0 -1
  290. package/dist/react/react/components/DebugPanel/tabs/JobsTab.d.ts.map +0 -1
  291. package/dist/react/react/components/DebugPanel/tabs/LogsTab.d.ts.map +0 -1
  292. package/dist/react/react/components/DebugPanel/tabs/QueriesTab.d.ts.map +0 -1
  293. package/dist/react/react/components/DebugPanel/tabs/RoutesTab.d.ts.map +0 -1
  294. package/dist/react/react/components/DebugPanel/tabs/TimelineTab.d.ts.map +0 -1
  295. package/dist/react/react/components/StatsBar/MetricCard.d.ts.map +0 -1
  296. package/dist/react/react/components/StatsBar/Sparkline.d.ts.map +0 -1
  297. package/dist/react/react/components/StatsBar/StatsBar.d.ts.map +0 -1
  298. package/dist/react/react/components/shared/Badge.d.ts.map +0 -1
  299. package/dist/react/react/components/shared/ConfigContent.d.ts.map +0 -1
  300. package/dist/react/react/components/shared/InternalsContent.d.ts.map +0 -1
  301. package/dist/react/react/components/shared/JsonViewer.d.ts.map +0 -1
  302. package/dist/react/react/components/shared/ThemeToggle.d.ts.map +0 -1
  303. package/dist/react/react/components/shared/Tooltip.d.ts.map +0 -1
  304. package/dist/react/react/hooks/useApiClient.d.ts.map +0 -1
  305. package/dist/react/react/hooks/useDashboardApiBase.d.ts.map +0 -1
  306. package/dist/react/react/hooks/useDashboardData.d.ts.map +0 -1
  307. package/dist/react/react/hooks/useDebugData.d.ts.map +0 -1
  308. package/dist/react/react/hooks/useFeatures.d.ts.map +0 -1
  309. package/dist/react/react/hooks/useResizableTable.d.ts.map +0 -1
  310. package/dist/react/react/hooks/useServerStats.d.ts.map +0 -1
  311. package/dist/react/react/hooks/useTheme.d.ts.map +0 -1
  312. package/dist/react/react/index.d.ts.map +0 -1
  313. package/dist/src/collectors/app_collector.d.ts.map +0 -1
  314. package/dist/src/collectors/auto_detect.d.ts.map +0 -1
  315. package/dist/src/collectors/collector.d.ts.map +0 -1
  316. package/dist/src/collectors/db_pool_collector.d.ts.map +0 -1
  317. package/dist/src/collectors/http_collector.d.ts.map +0 -1
  318. package/dist/src/collectors/index.d.ts.map +0 -1
  319. package/dist/src/collectors/log_collector.d.ts.map +0 -1
  320. package/dist/src/collectors/process_collector.d.ts.map +0 -1
  321. package/dist/src/collectors/queue_collector.d.ts.map +0 -1
  322. package/dist/src/collectors/redis_collector.d.ts.map +0 -1
  323. package/dist/src/collectors/system_collector.d.ts.map +0 -1
  324. package/dist/src/controller/api_controller.d.ts.map +0 -1
  325. package/dist/src/controller/debug_controller.d.ts.map +0 -1
  326. package/dist/src/controller/server_stats_controller.d.ts.map +0 -1
  327. package/dist/src/core/theme.d.ts.map +0 -1
  328. package/dist/src/dashboard/chart_aggregator.d.ts.map +0 -1
  329. package/dist/src/dashboard/dashboard_controller.d.ts.map +0 -1
  330. package/dist/src/dashboard/dashboard_store.d.ts.map +0 -1
  331. package/dist/src/dashboard/integrations/cache_inspector.d.ts.map +0 -1
  332. package/dist/src/dashboard/integrations/config_inspector.d.ts.map +0 -1
  333. package/dist/src/dashboard/integrations/index.d.ts.map +0 -1
  334. package/dist/src/dashboard/integrations/queue_inspector.d.ts.map +0 -1
  335. package/dist/src/dashboard/migrator.d.ts.map +0 -1
  336. package/dist/src/dashboard/models/stats_email.d.ts.map +0 -1
  337. package/dist/src/dashboard/models/stats_event.d.ts.map +0 -1
  338. package/dist/src/dashboard/models/stats_log.d.ts.map +0 -1
  339. package/dist/src/dashboard/models/stats_metric.d.ts.map +0 -1
  340. package/dist/src/dashboard/models/stats_query.d.ts.map +0 -1
  341. package/dist/src/dashboard/models/stats_request.d.ts.map +0 -1
  342. package/dist/src/dashboard/models/stats_saved_filter.d.ts.map +0 -1
  343. package/dist/src/dashboard/models/stats_trace.d.ts.map +0 -1
  344. package/dist/src/data/data_access.d.ts.map +0 -1
  345. package/dist/src/data/index.d.ts.map +0 -1
  346. package/dist/src/debug/debug_store.d.ts.map +0 -1
  347. package/dist/src/debug/email_collector.d.ts.map +0 -1
  348. package/dist/src/debug/event_collector.d.ts.map +0 -1
  349. package/dist/src/debug/query_collector.d.ts.map +0 -1
  350. package/dist/src/debug/ring_buffer.d.ts.map +0 -1
  351. package/dist/src/debug/route_inspector.d.ts.map +0 -1
  352. package/dist/src/debug/trace_collector.d.ts.map +0 -1
  353. package/dist/src/debug/types.d.ts.map +0 -1
  354. package/dist/src/define_config.d.ts.map +0 -1
  355. package/dist/src/edge/bootstrap.d.ts.map +0 -1
  356. package/dist/src/edge/client/debug-panel.js +0 -1
  357. package/dist/src/edge/client-vue/debug-panel.js +0 -4
  358. package/dist/src/edge/plugin.d.ts.map +0 -1
  359. package/dist/src/edge/types.d.ts.map +0 -1
  360. package/dist/src/engine/request_metrics.d.ts.map +0 -1
  361. package/dist/src/engine/stats_engine.d.ts.map +0 -1
  362. package/dist/src/index.d.ts.map +0 -1
  363. package/dist/src/log_stream/log_stream_provider.d.ts.map +0 -1
  364. package/dist/src/log_stream/log_stream_service.d.ts.map +0 -1
  365. package/dist/src/middleware/request_tracking_middleware.d.ts.map +0 -1
  366. package/dist/src/prometheus/prometheus_collector.d.ts.map +0 -1
  367. package/dist/src/provider/server_stats_provider.d.ts.map +0 -1
  368. package/dist/src/routes/access_middleware.d.ts.map +0 -1
  369. package/dist/src/routes/index.d.ts.map +0 -1
  370. package/dist/src/routes/register_routes.d.ts.map +0 -1
  371. package/dist/src/routes/router_types.d.ts.map +0 -1
  372. package/dist/src/stubs/main.d.ts.map +0 -1
  373. package/dist/src/types.d.ts.map +0 -1
  374. package/dist/src/utils/app_import.d.ts.map +0 -1
  375. package/dist/src/utils/json_helpers.d.ts.map +0 -1
  376. package/dist/src/utils/logger.d.ts.map +0 -1
  377. package/dist/src/utils/mail_helpers.d.ts.map +0 -1
  378. package/dist/src/utils/math_helpers.d.ts.map +0 -1
  379. package/dist/src/utils/time_helpers.d.ts.map +0 -1
  380. package/dist/src/utils/transmit_client.d.ts.map +0 -1
  381. package/dist/vue/components/Dashboard/DashboardPage.vue.d.ts.map +0 -1
  382. package/dist/vue/components/Dashboard/sections/CacheSection.vue.d.ts.map +0 -1
  383. package/dist/vue/components/Dashboard/sections/ConfigSection.vue.d.ts.map +0 -1
  384. package/dist/vue/components/Dashboard/sections/EmailsSection.vue.d.ts.map +0 -1
  385. package/dist/vue/components/Dashboard/sections/EventsSection.vue.d.ts.map +0 -1
  386. package/dist/vue/components/Dashboard/sections/InternalsSection.vue.d.ts.map +0 -1
  387. package/dist/vue/components/Dashboard/sections/JobsSection.vue.d.ts.map +0 -1
  388. package/dist/vue/components/Dashboard/sections/LogsSection.vue.d.ts.map +0 -1
  389. package/dist/vue/components/Dashboard/sections/OverviewSection.vue.d.ts.map +0 -1
  390. package/dist/vue/components/Dashboard/sections/QueriesSection.vue.d.ts.map +0 -1
  391. package/dist/vue/components/Dashboard/sections/RequestsSection.vue.d.ts.map +0 -1
  392. package/dist/vue/components/Dashboard/sections/RoutesSection.vue.d.ts.map +0 -1
  393. package/dist/vue/components/Dashboard/sections/TimelineSection.vue.d.ts.map +0 -1
  394. package/dist/vue/components/Dashboard/shared/FilterBar.vue.d.ts.map +0 -1
  395. package/dist/vue/components/Dashboard/shared/PaginationControls.vue.d.ts.map +0 -1
  396. package/dist/vue/components/Dashboard/shared/TimeRangeSelector.vue.d.ts.map +0 -1
  397. package/dist/vue/components/Dashboard/shared/WaterfallChart.vue.d.ts.map +0 -1
  398. package/dist/vue/components/DebugPanel/DebugPanel.vue.d.ts.map +0 -1
  399. package/dist/vue/components/DebugPanel/tabs/CacheTab.vue.d.ts.map +0 -1
  400. package/dist/vue/components/DebugPanel/tabs/ConfigTab.vue.d.ts.map +0 -1
  401. package/dist/vue/components/DebugPanel/tabs/CustomPaneTab.vue.d.ts.map +0 -1
  402. package/dist/vue/components/DebugPanel/tabs/EmailsTab.vue.d.ts.map +0 -1
  403. package/dist/vue/components/DebugPanel/tabs/EventsTab.vue.d.ts.map +0 -1
  404. package/dist/vue/components/DebugPanel/tabs/InternalsTab.vue.d.ts.map +0 -1
  405. package/dist/vue/components/DebugPanel/tabs/JobsTab.vue.d.ts.map +0 -1
  406. package/dist/vue/components/DebugPanel/tabs/LogsTab.vue.d.ts.map +0 -1
  407. package/dist/vue/components/DebugPanel/tabs/QueriesTab.vue.d.ts.map +0 -1
  408. package/dist/vue/components/DebugPanel/tabs/RoutesTab.vue.d.ts.map +0 -1
  409. package/dist/vue/components/DebugPanel/tabs/TimelineTab.vue.d.ts.map +0 -1
  410. package/dist/vue/components/StatsBar/MetricCard.vue.d.ts.map +0 -1
  411. package/dist/vue/components/StatsBar/Sparkline.vue.d.ts.map +0 -1
  412. package/dist/vue/components/StatsBar/StatsBar.vue.d.ts.map +0 -1
  413. package/dist/vue/components/shared/JsonViewer.vue.d.ts.map +0 -1
  414. package/dist/vue/components/shared/ThemeToggle.vue.d.ts.map +0 -1
  415. package/dist/vue/composables/useApiClient.d.ts.map +0 -1
  416. package/dist/vue/composables/useDashboardData.d.ts.map +0 -1
  417. package/dist/vue/composables/useDebugData.d.ts.map +0 -1
  418. package/dist/vue/composables/useFeatures.d.ts.map +0 -1
  419. package/dist/vue/composables/useResizableTable.d.ts.map +0 -1
  420. package/dist/vue/composables/useServerStats.d.ts.map +0 -1
  421. package/dist/vue/composables/useTheme.d.ts.map +0 -1
  422. package/dist/vue/index.d.ts.map +0 -1
@@ -1,90 +0,0 @@
1
- import { UnauthorizedError } from './api-client.js';
2
- /**
3
- * Callback configuration for {@link DebugDataController}.
4
- *
5
- * The controller itself holds no UI state — it communicates every
6
- * state change through these callbacks so the framework wrapper
7
- * (React hook / Vue composable) can update its own reactive state.
8
- */
9
- export interface DebugDataControllerCallbacks<T = unknown> {
10
- /** Called with the parsed JSON payload after a successful fetch. */
11
- onData: (data: T) => void;
12
- /** Called whenever the loading flag changes. */
13
- onLoading: (loading: boolean) => void;
14
- /** Called with an `Error` (or `null` to clear) on fetch failure. */
15
- onError: (error: Error | null) => void;
16
- /** Called when the server responds with 401/403. */
17
- onUnauthorized: (error: UnauthorizedError) => void;
18
- }
19
- /**
20
- * Configuration for {@link DebugDataController}.
21
- */
22
- export interface DebugDataControllerConfig<T = unknown> extends DebugDataControllerCallbacks<T> {
23
- /** Base URL for API requests (e.g. `''` for same-origin). */
24
- baseUrl: string;
25
- /** Debug API endpoint base path (default `'/admin/api/debug'`). */
26
- endpoint?: string;
27
- /** Optional Bearer token. */
28
- authToken?: string;
29
- /** Auto-refresh interval in ms (default {@link DEBUG_REFRESH_MS}). */
30
- refreshInterval?: number;
31
- }
32
- /**
33
- * Framework-agnostic controller that owns the debug-tab data
34
- * fetching lifecycle: initial fetch, auto-refresh timer, fetchOnce
35
- * cache, and `UnauthorizedError` handling.
36
- *
37
- * Designed to be instantiated once per component mount and driven
38
- * by a thin framework wrapper that bridges the callbacks to the
39
- * framework's reactive primitives.
40
- */
41
- export declare class DebugDataController<T = unknown> {
42
- private client;
43
- private endpoint;
44
- private refreshInterval;
45
- private callbacks;
46
- private timer;
47
- private currentTab;
48
- private fetchOnceCache;
49
- private abortController;
50
- constructor(config: DebugDataControllerConfig<T>);
51
- /**
52
- * Begin fetching data for `tab` and start the auto-refresh timer.
53
- *
54
- * If a timer is already running it will be stopped first.
55
- */
56
- start(tab: string): void;
57
- /**
58
- * Stop the auto-refresh timer.
59
- */
60
- stop(): void;
61
- /**
62
- * Switch to a different tab.
63
- *
64
- * Stops the current timer, resets loading/error state, and starts
65
- * fetching for the new tab.
66
- */
67
- switchTab(tab: string): void;
68
- /**
69
- * Force an immediate re-fetch of the current tab (ignoring the
70
- * fetchOnce cache).
71
- */
72
- refresh(): void;
73
- /**
74
- * Fetch a custom pane endpoint. Optionally honours the fetchOnce
75
- * cache so a pane that has already been loaded is not re-requested.
76
- */
77
- fetchCustomPane(panePath: string, fetchOnce?: boolean): Promise<void>;
78
- /**
79
- * Store a value in the fetchOnce cache for a given tab name.
80
- * Subsequent `start()` / `switchTab()` calls for this tab will
81
- * serve the cached value instead of hitting the network.
82
- */
83
- cacheForTab(tabName: string, data: unknown): void;
84
- /**
85
- * Clear all cached fetchOnce data.
86
- */
87
- clearCache(): void;
88
- private fetchData;
89
- }
90
- //# sourceMappingURL=debug-data-controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-data-controller.d.ts","sourceRoot":"","sources":["../../../src/core/debug-data-controller.ts"],"names":[],"mappings":"AAUA,OAAO,EAAa,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAI9D;;;;;;GAMG;AACH,MAAM,WAAW,4BAA4B,CAAC,CAAC,GAAG,OAAO;IACvD,oEAAoE;IACpE,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAA;IACzB,gDAAgD;IAChD,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,oEAAoE;IACpE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAA;IACtC,oDAAoD;IACpD,cAAc,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAA;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,4BAA4B,CAAC,CAAC,CAAC;IAC7F,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,sEAAsE;IACtE,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAED;;;;;;;;GAQG;AACH,qBAAa,mBAAmB,CAAC,CAAC,GAAG,OAAO;IAC1C,OAAO,CAAC,MAAM,CAAW;IACzB,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,eAAe,CAAQ;IAC/B,OAAO,CAAC,SAAS,CAAiC;IAElD,OAAO,CAAC,KAAK,CAA8C;IAC3D,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,cAAc,CAA8B;IACpD,OAAO,CAAC,eAAe,CAA+B;gBAE1C,MAAM,EAAE,yBAAyB,CAAC,CAAC,CAAC;IAmBhD;;;;OAIG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IASxB;;OAEG;IACH,IAAI,IAAI,IAAI;IASZ;;;;;OAKG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI5B;;;OAGG;IACH,OAAO,IAAI,IAAI;IAMf;;;OAGG;IACG,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BlF;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAIjD;;OAEG;IACH,UAAU,IAAI,IAAI;YAQJ,SAAS;CAuCxB"}
@@ -1,67 +0,0 @@
1
- import { ApiClient } from './api-client.js';
2
- import { FeatureFlags, FeatureConfig } from './types.js';
3
- /**
4
- * Default flattened feature config used before the config endpoint responds.
5
- *
6
- * All features default to `false` so the UI starts in a minimal state
7
- * and progressively enables sections as the server confirms support.
8
- */
9
- export declare const DEFAULT_FEATURES: FeatureConfig;
10
- /**
11
- * Fetch feature flags and configuration from the server.
12
- *
13
- * Calls `GET {debugEndpoint}/config` and returns the full
14
- * {@link FeatureFlags} response, which tells the UI which
15
- * sections to render and where to find endpoints.
16
- *
17
- * @param apiClient - Configured {@link ApiClient} instance.
18
- * @param debugEndpoint - Base path for the debug API. Defaults to `'/admin/api/debug'`.
19
- * @returns The parsed feature flags.
20
- */
21
- export declare function fetchFeatures(apiClient: ApiClient, debugEndpoint?: string): Promise<FeatureFlags>;
22
- /**
23
- * Convenience wrapper around {@link fetchFeatures} that accepts flat options
24
- * instead of a pre-built {@link ApiClient}.
25
- *
26
- * Used by React / Vue hooks that pass simple option objects.
27
- * Returns a flattened {@link FeatureConfig} for easy property access.
28
- *
29
- * @param options - Connection options (baseUrl, debugEndpoint, authToken).
30
- * @returns The flattened feature config, or {@link DEFAULT_FEATURES} on error.
31
- */
32
- export declare function detectFeatures(options: {
33
- baseUrl?: string;
34
- debugEndpoint?: string;
35
- authToken?: string;
36
- }): Promise<FeatureConfig>;
37
- /**
38
- * Determine which metric groups should be visible based on feature flags.
39
- *
40
- * Returns a `Set` of group identifiers that the stats bar should display.
41
- * Groups include: `'process'`, `'memory'`, `'http'`, `'db'`, `'app'`, `'redis'`, `'queue'`, `'log'`.
42
- *
43
- * Accepts either a nested {@link FeatureFlags} or a flat {@link FeatureConfig}.
44
- *
45
- * @param features - The resolved feature flags (nested or flat).
46
- * @returns A set of visible metric group names.
47
- */
48
- export declare function getVisibleMetricGroups(features: FeatureFlags | FeatureConfig): Set<string>;
49
- /**
50
- * Detect which metric groups should be visible based on the actual stats
51
- * data received from the server.
52
- *
53
- * This is used as the primary mechanism for the stats bar to determine
54
- * which groups to show, mirroring the old vanilla JS behavior where
55
- * groups were displayed based on what data the server actually sends.
56
- *
57
- * Unlike {@link getVisibleMetricGroups} which relies on the debug config
58
- * endpoint, this function inspects the stats payload directly. This
59
- * ensures groups are shown even when the debug endpoint is unavailable
60
- * or not configured (e.g. when `showDebug` is false).
61
- *
62
- * @param stats - The server stats snapshot (partial, since not all fields
63
- * may be present depending on configured collectors).
64
- * @returns A set of visible metric group names.
65
- */
66
- export declare function detectMetricGroupsFromStats(stats: Record<string, unknown>): Set<string>;
67
- //# sourceMappingURL=feature-detect.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-detect.d.ts","sourceRoot":"","sources":["../../../src/core/feature-detect.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAO7D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAc9B,CAAA;AAuBD;;;;;;;;;;GAUG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,SAAS,EACpB,aAAa,GAAE,MAA+B,GAC7C,OAAO,CAAC,YAAY,CAAC,CAGvB;AAED;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,OAAO,CAAC,aAAa,CAAC,CASzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,YAAY,GAAG,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,CAsB1F;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,CAiEvF"}
@@ -1,189 +0,0 @@
1
- import { ThresholdColor } from './types.js';
2
- /**
3
- * Format a duration in seconds as a human-readable uptime string.
4
- *
5
- * Examples: `"2d 5h"`, `"3h 12m"`, `"7m 30s"`, `"45s"`, `"-"`.
6
- *
7
- * Returns `'-'` when the input is `undefined`, `null`, or falsy (except `0`).
8
- *
9
- * @param seconds - Uptime in seconds (optional).
10
- */
11
- export declare function formatUptime(seconds?: number | null): string;
12
- /**
13
- * Format a byte count as a compact memory string.
14
- *
15
- * Examples: `"128M"`, `"1.2G"`.
16
- *
17
- * @param bytes - Value in bytes.
18
- */
19
- export declare function formatBytes(bytes: number): string;
20
- /**
21
- * Format a megabyte value as a compact memory string.
22
- *
23
- * Examples: `"512.0M"`, `"1.2G"`.
24
- *
25
- * @param mb - Value in megabytes.
26
- */
27
- export declare function formatMb(mb: number): string;
28
- /**
29
- * Format a number with K/M suffixes.
30
- *
31
- * Examples: `"42"`, `"1.2K"`, `"3.4M"`.
32
- *
33
- * @param n - Numeric count.
34
- */
35
- export declare function formatCount(n: number): string;
36
- /**
37
- * Format a millisecond duration.
38
- *
39
- * - `>= 1000` → seconds with 2 decimals (`"1.23s"`)
40
- * - `>= 1` → integer milliseconds (`"12ms"`)
41
- * - `< 1` → sub-ms with 2 decimals (`"0.45ms"`)
42
- *
43
- * @param ms - Duration in milliseconds.
44
- */
45
- export declare function formatDuration(ms: number): string;
46
- /**
47
- * Format a Unix timestamp (ms) or ISO string as `HH:MM:SS.mmm`.
48
- *
49
- * Returns `'-'` if the input is falsy or produces an invalid date.
50
- *
51
- * @param ts - Unix timestamp in milliseconds, or an ISO date string.
52
- */
53
- export declare function formatTime(ts: number | string): string;
54
- /**
55
- * Format a Unix timestamp (ms) or ISO string as a relative time string.
56
- *
57
- * Examples: `"3s ago"`, `"2m ago"`, `"5h ago"`, `"1d ago"`, `"just now"`.
58
- *
59
- * Returns `'-'` if the input is falsy.
60
- *
61
- * @param ts - Unix timestamp in milliseconds, or an ISO date string.
62
- */
63
- export declare function timeAgo(ts: number | string): string;
64
- /**
65
- * Format a numeric value with the appropriate unit suffix.
66
- *
67
- * Used in tooltips to display min/max/avg with consistent formatting.
68
- *
69
- * @param value - The numeric value.
70
- * @param unit - Unit string (`'%'`, `'ms'`, `'MB'`, `'bytes'`, `'/s'`, `'/m'`).
71
- */
72
- export declare function formatStatNum(value: number, unit: string): string;
73
- /**
74
- * Determine threshold color for a metric where higher values are worse.
75
- *
76
- * - `value > critThreshold` -> `'red'`
77
- * - `value > warnThreshold` -> `'amber'`
78
- * - Otherwise -> `'green'`
79
- *
80
- * @param value - Current metric value.
81
- * @param warnThreshold - Threshold above which the value is "warning".
82
- * @param critThreshold - Threshold above which the value is "critical".
83
- */
84
- export declare function getThresholdColor(value: number, warnThreshold: number, critThreshold: number): ThresholdColor;
85
- /**
86
- * Determine threshold color for a metric where lower values are worse
87
- * (e.g. cache hit rate, free memory).
88
- *
89
- * - `value < critThreshold` -> `'red'`
90
- * - `value < warnThreshold` -> `'amber'`
91
- * - Otherwise -> `'green'`
92
- *
93
- * @param value - Current metric value.
94
- * @param warnThreshold - Threshold below which the value is "warning".
95
- * @param critThreshold - Threshold below which the value is "critical".
96
- */
97
- export declare function getThresholdColorInverse(value: number, warnThreshold: number, critThreshold: number): ThresholdColor;
98
- /**
99
- * Determine threshold color based on a used/max ratio.
100
- *
101
- * - `> 80%` utilized -> `'red'`
102
- * - `> 50%` utilized -> `'amber'`
103
- * - Otherwise -> `'green'`
104
- * - If `max` is 0, returns `'green'` (no pool configured).
105
- *
106
- * @param used - Number of items in use.
107
- * @param max - Maximum capacity.
108
- */
109
- export declare function getRatioColor(used: number, max: number): ThresholdColor;
110
- /**
111
- * Map from threshold color to the CSS class used in the Edge-based UI.
112
- * Components can use this to apply the same visual styling.
113
- */
114
- export declare const THRESHOLD_CSS_CLASS: Record<ThresholdColor, string>;
115
- /**
116
- * Fallback hex colors for each threshold level.
117
- * Used when CSS custom properties are not available.
118
- */
119
- export declare const THRESHOLD_HEX_FALLBACK: Record<ThresholdColor, string>;
120
- /**
121
- * CSS custom property names for each threshold color.
122
- * Components should read these from `getComputedStyle()` when available.
123
- */
124
- export declare const THRESHOLD_CSS_VAR: Record<ThresholdColor, string>;
125
- /**
126
- * Map an HTTP status code to a threshold color.
127
- *
128
- * - 2xx -> `'green'`
129
- * - 3xx -> `'green'`
130
- * - 4xx -> `'amber'`
131
- * - 5xx -> `'red'`
132
- * - Other -> `'green'`
133
- *
134
- * @param statusCode - HTTP status code.
135
- */
136
- export declare function statusColor(statusCode: number): ThresholdColor;
137
- /**
138
- * Classify a duration (ms) as normal, slow, or very-slow.
139
- *
140
- * - `> 500ms` -> `'very-slow'`
141
- * - `> 100ms` -> `'slow'`
142
- * - Otherwise -> `'normal'`
143
- *
144
- * @param ms - Duration in milliseconds.
145
- */
146
- export declare function durationSeverity(ms: number): 'normal' | 'slow' | 'very-slow';
147
- /**
148
- * Truncate a request ID to a short preview.
149
- *
150
- * Shows the first 8 characters followed by an ellipsis.
151
- *
152
- * @param reqId - Full request ID string.
153
- */
154
- export declare function shortReqId(reqId: string): string;
155
- /**
156
- * Create a compact string preview of a JSON value.
157
- *
158
- * Recursively abbreviates objects and arrays so the output is
159
- * human-readable at a glance. Strings are quoted and truncated,
160
- * arrays show the first 3 items, objects show the first 4 keys.
161
- * Falls back to a keys-only summary if the detailed preview
162
- * exceeds `maxLen`.
163
- *
164
- * Ported from `src/edge/client/dashboard.js` `compactPreview()`.
165
- *
166
- * @param value - Any JSON-serializable value.
167
- * @param maxLen - Maximum preview length (default 100).
168
- */
169
- export declare function compactPreview(value: unknown, maxLen?: number): string;
170
- /**
171
- * Format a TTL value in seconds as a compact human-readable string.
172
- *
173
- * Examples: `"no expiry"`, `"45s"`, `"5m"`, `"2h"`, `"3d"`.
174
- *
175
- * @param seconds - TTL in seconds. Negative values mean no expiry.
176
- */
177
- export declare function formatTtl(seconds: number): string;
178
- /**
179
- * Format a byte count as a compact cache-size string.
180
- *
181
- * Unlike {@link formatBytes} (which starts at MB), this handles small
182
- * byte counts typical of individual cache entries.
183
- *
184
- * Examples: `"128B"`, `"4.2KB"`, `"1.5MB"`.
185
- *
186
- * @param bytes - Value in bytes.
187
- */
188
- export declare function formatCacheSize(bytes: number): string;
189
- //# sourceMappingURL=formatters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../src/core/formatters.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAMhD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAU5D;AAMD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIjD;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAG3C;AAMD;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAI7C;AAMD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAIjD;AAMD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CActD;AAMD;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CASnD;AAMD;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAgBjE;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,cAAc,CAIhB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,cAAc,CAIhB;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc,CAMvE;AAMD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAI9D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAIjE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAI5D,CAAA;AAMD;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,CAI9D;AAMD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAI5E;AAMD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIhD;AAMD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,GAAE,MAAY,GAAG,MAAM,CA2B3E;AAMD;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMjD;AAMD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIrD"}
@@ -1,23 +0,0 @@
1
- import { ServerStats } from './types.js';
2
- /**
3
- * A rolling buffer that stores the last `maxLength` numeric values
4
- * for each metric defined in {@link METRIC_DEFINITIONS}.
5
- */
6
- export interface HistoryBuffer {
7
- /** Push a new stats snapshot, extracting all numeric metric values. */
8
- push(stats: ServerStats): void;
9
- /** Get the history array for a single key. Returns `[]` if not tracked. */
10
- get(key: string): number[];
11
- /** Get the entire history map (all keys). */
12
- getAll(): Record<string, number[]>;
13
- }
14
- /**
15
- * Create a new history buffer that tracks numeric metric values
16
- * from {@link METRIC_DEFINITIONS}.
17
- *
18
- * @param maxLength - Maximum number of data points to retain per metric.
19
- * Defaults to {@link MAX_HISTORY} (60).
20
- * @returns A {@link HistoryBuffer} instance.
21
- */
22
- export declare function createHistoryBuffer(maxLength?: number): HistoryBuffer;
23
- //# sourceMappingURL=history-buffer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"history-buffer.d.ts","sourceRoot":"","sources":["../../../src/core/history-buffer.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,uEAAuE;IACvE,IAAI,CAAC,KAAK,EAAE,WAAW,GAAG,IAAI,CAAA;IAC9B,2EAA2E;IAC3E,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,6CAA6C;IAC7C,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAA;CACnC;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,GAAE,MAAoB,GAAG,aAAa,CAiDlF"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Shared SVG icon definitions used across debug panel tabs, dashboard
3
- * sidebar navigation, stats bar, and other UI components.
4
- *
5
- * Framework-agnostic: stores raw SVG element strings that can be
6
- * rendered via `v-html` (Vue) or `dangerouslySetInnerHTML` (React).
7
- * All icons use a `0 0 24 24` viewBox.
8
- */
9
- export interface TabIconDef {
10
- /** The viewBox attribute value for the SVG element. */
11
- viewBox: string;
12
- /**
13
- * Array of SVG child-element strings (e.g. `<path d="..."/>`).
14
- * Join with `''` to get the full inner SVG markup.
15
- */
16
- elements: string[];
17
- }
18
- /**
19
- * SVG icon definitions keyed by id.
20
- *
21
- * Includes icons for debug-panel tabs, dashboard sidebar sections,
22
- * toolbar buttons, and other shared UI elements.
23
- *
24
- * Usage (Vue):
25
- * ```html
26
- * <svg :viewBox="icon.viewBox" v-html="icon.elements.join('')"></svg>
27
- * ```
28
- *
29
- * Usage (React):
30
- * ```tsx
31
- * <svg viewBox={icon.viewBox}
32
- * dangerouslySetInnerHTML={{ __html: icon.elements.join('') }} />
33
- * ```
34
- */
35
- export declare const TAB_ICONS: Record<string, TabIconDef>;
36
- //# sourceMappingURL=icons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/core/icons.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,UAAU;IACzB,uDAAuD;IACvD,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAgNhD,CAAA"}
@@ -1,39 +0,0 @@
1
- export { ApiClient, UnauthorizedError, ApiError } from './api-client.js';
2
- export type { ApiClientConfig } from './api-client.js';
3
- export { createTransmitSubscription, subscribeToChannel } from './transmit-adapter.js';
4
- export type { TransmitSubscriptionConfig, TransmitSubscriptionHandle, ChannelSubscriptionConfig, } from './transmit-adapter.js';
5
- export type { ServerStats, MetricValue, ServerStatsConfig, ResolvedServerStatsConfig, DevToolbarOptions, DebugPane, DebugPaneColumn, DebugPaneSearch, DebugPaneFormatType, BadgeColor, QueryRecord, EventRecord, EmailRecord, RouteRecord, TraceRecord, TraceSpan, StatsBarProps, DebugPanelProps, DashboardPageProps, StatsBarConfig, DebugPanelConfig, DashboardConfig, FeatureConfig, DashboardHookOptions, DebugTab, DashboardSection, TimeRange, PaginatedResponse, CacheStats, CacheEntry, JobsApiResponse, JobStats, JobRecord, OverviewMetrics, OverviewData, ChartDataPoint, GroupedQuery, Theme, FeatureFlags, MetricDefinition, ThresholdColor, SparklineOptions, PaginationState, FilterState, SortState, DiagnosticsResponse, DiagnosticsBufferInfo, DiagnosticsCollectorInfo, DiagnosticsTimerInfo, } from './types.js';
6
- export { getTheme, setTheme, toggleTheme, onThemeChange } from './theme.js';
7
- export { generateSparklinePoints, generateSparklinePath, generateGradientId, computeStats, buildSparklineData, } from './sparkline.js';
8
- export type { SparklineStats, SparklineData } from './sparkline.js';
9
- export { formatUptime, formatBytes, formatMb, formatCount, formatDuration, formatTime, timeAgo, formatStatNum, getThresholdColor, getThresholdColorInverse, getRatioColor, compactPreview, statusColor, durationSeverity, shortReqId, THRESHOLD_CSS_CLASS, THRESHOLD_HEX_FALLBACK, THRESHOLD_CSS_VAR, formatTtl, formatCacheSize, } from './formatters.js';
10
- export { DEFAULT_PER_PAGE, buildQueryString, buildQueryParams, computePagination, parsePaginatedResponse, createPaginationState, createFilterState, createSortState, getPageNumbers, } from './pagination.js';
11
- export type { RawPaginatedResponse } from './pagination.js';
12
- export { fetchFeatures, detectFeatures, DEFAULT_FEATURES, getVisibleMetricGroups, detectMetricGroupsFromStats, } from './feature-detect.js';
13
- export { METRIC_DEFINITIONS, getMetricById, getMetricsByGroup, MAX_HISTORY, STALE_MS, } from './metrics.js';
14
- export { getDebugTabPath, getDashboardSectionPath, DEBUG_TAB_PATHS, DASHBOARD_SECTION_PATHS, } from './routes.js';
15
- export { createHistoryBuffer } from './history-buffer.js';
16
- export type { HistoryBuffer } from './history-buffer.js';
17
- export { ServerStatsController } from './server-stats-controller.js';
18
- export type { ServerStatsControllerConfig, ConnectionMode } from './server-stats-controller.js';
19
- export { DashboardApi } from './dashboard-api.js';
20
- export { DashboardDataController } from './dashboard-data-controller.js';
21
- export type { DashboardDataControllerConfig, DashboardDataCallbacks, } from './dashboard-data-controller.js';
22
- export { OVERVIEW_REFRESH_MS, SECTION_REFRESH_MS, DEBUG_REFRESH_MS, SLOW_DURATION_MS, VERY_SLOW_DURATION_MS, } from './constants.js';
23
- export { TAB_ICONS } from './icons.js';
24
- export type { TabIconDef } from './icons.js';
25
- export { initResizableColumns } from './resizable-columns.js';
26
- export { DebugDataController } from './debug-data-controller.js';
27
- export type { DebugDataControllerConfig, DebugDataControllerCallbacks, } from './debug-data-controller.js';
28
- export { LOG_LEVELS, resolveLogLevel, resolveLogMessage, resolveLogTimestamp, resolveLogRequestId, getLogLevelCssClass, filterLogsByLevel, } from './log-utils.js';
29
- export type { LogEntry } from './log-utils.js';
30
- export { filterQueries, countDuplicateQueries, computeQuerySummary } from './query-utils.js';
31
- export type { QuerySummary } from './query-utils.js';
32
- export { JOB_STATUS_FILTERS, getJobStatusCssClass, getJobStatusBadgeColor, extractJobs, extractJobStats, } from './job-utils.js';
33
- export type { JobStatusFilter } from './job-utils.js';
34
- export { parseTraceSpans, parseTraceWarnings, resolveTraceField, normalizeTraceFields, } from './trace-utils.js';
35
- export type { TraceDetail, NormalizedTrace } from './trace-utils.js';
36
- export { isSecretKey, formatConfigVal, TIMER_LABELS, getTimerLabel, INTEGRATION_LABELS, getIntegrationLabel, getIntegrationStatus, getIntegrationDetails, formatCollectorConfig, fillPercent, OK_STATUSES, ERROR_STATUSES, classifyStatus, } from './internals-utils.js';
37
- export { isRedactedValue, flattenConfig, formatFlatValue, countLeaves, collectTopLevelObjectKeys, matchesConfigSearch, copyWithFeedback, REDACT_PATTERN, shouldRedact, } from './config-utils.js';
38
- export type { RedactedValue, ConfigValue, FlatEntry, FormattedValue } from './config-utils.js';
39
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"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"}
@@ -1,71 +0,0 @@
1
- /**
2
- * Check whether a configuration key name likely contains a secret value.
3
- *
4
- * Matches common patterns like `password`, `secret`, `token`, `key`,
5
- * `credential`, and `auth` (case-insensitive substring match).
6
- */
7
- export declare function isSecretKey(key: string): boolean;
8
- /**
9
- * Format a configuration value for display.
10
- *
11
- * - `null`/`undefined` -> `'-'`
12
- * - Primitives -> `String(value)`
13
- * - Arrays -> comma-joined or `'-'` if empty
14
- * - Objects -> JSON stringified
15
- */
16
- export declare function formatConfigVal(val: unknown): string;
17
- /**
18
- * Human-readable display names for internal timer keys.
19
- */
20
- export declare const TIMER_LABELS: Record<string, string>;
21
- /**
22
- * Get a human-readable label for a timer key.
23
- * Falls back to the raw key name if no label is defined.
24
- */
25
- export declare function getTimerLabel(name: string): string;
26
- /**
27
- * Human-readable display names for integration keys.
28
- */
29
- export declare const INTEGRATION_LABELS: Record<string, string>;
30
- /**
31
- * Get a human-readable label for an integration key.
32
- * Falls back to the raw key name if no label is defined.
33
- */
34
- export declare function getIntegrationLabel(name: string): string;
35
- /**
36
- * Determine the display status string for an integration entry.
37
- */
38
- export declare function getIntegrationStatus(info: {
39
- active?: boolean;
40
- available?: boolean;
41
- }): string;
42
- /**
43
- * Determine the detail description for an integration entry.
44
- */
45
- export declare function getIntegrationDetails(key: string, info: {
46
- active?: boolean;
47
- available?: boolean;
48
- mode?: string;
49
- }): string;
50
- /**
51
- * Format a collector's config object into a display-friendly array.
52
- */
53
- export declare function formatCollectorConfig(config: Record<string, unknown>): Array<{
54
- key: string;
55
- value: string;
56
- secret: boolean;
57
- }>;
58
- /**
59
- * Compute the fill percentage of a buffer (0-100, clamped).
60
- */
61
- export declare function fillPercent(current: number, max: number): number;
62
- /** Status strings that map to an "ok" visual indicator. */
63
- export declare const OK_STATUSES: string[];
64
- /** Status strings that map to an "error" visual indicator. */
65
- export declare const ERROR_STATUSES: string[];
66
- /**
67
- * Classify a status string as 'ok', 'err', or neutral.
68
- * Useful for mapping to CSS classes like `prefix-dot-ok` / `prefix-dot-err`.
69
- */
70
- export declare function classifyStatus(status: string): 'ok' | 'err' | '';
71
- //# sourceMappingURL=internals-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internals-utils.d.ts","sourceRoot":"","sources":["../../../src/core/internals-utils.ts"],"names":[],"mappings":"AAcA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAGhD;AAMD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAUpD;AAMD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAM/C,CAAA;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAMD;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMrD,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAExD;AAMD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAI5F;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAC7D,MAAM,CAQR;AAMD;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,KAAK,CAAC;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,CAAC,CAMxD;AAMD;;GAEG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGhE;AAMD,2DAA2D;AAC3D,eAAO,MAAM,WAAW,UAA2D,CAAA;AAEnF,8DAA8D;AAC9D,eAAO,MAAM,cAAc,UAA6B,CAAA;AAExD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE,CAIhE"}
@@ -1,45 +0,0 @@
1
- import { JobStats } from './types.js';
2
- /**
3
- * Available job status filter values (including the "show all" option).
4
- */
5
- export declare const JOB_STATUS_FILTERS: readonly ["all", "active", "waiting", "delayed", "completed", "failed"];
6
- /**
7
- * A single job status value (without the 'all' meta-filter).
8
- */
9
- export type JobStatusFilter = (typeof JOB_STATUS_FILTERS)[number];
10
- /**
11
- * Return the CSS class for a given job status in the debug panel.
12
- *
13
- * @param status The job status string (e.g. `'completed'`, `'failed'`).
14
- * @param prefix CSS class prefix. Defaults to `'ss-dbg-job-status'`.
15
- * @returns The full CSS class string, e.g. `'ss-dbg-job-status-completed'`.
16
- * Falls back to `'ss-dbg-badge-muted'` for unknown statuses.
17
- */
18
- export declare function getJobStatusCssClass(status: string, prefix?: string): string;
19
- /**
20
- * Map a job status to a badge color name used in the dashboard UI.
21
- *
22
- * @param status The job status string (e.g. `'active'`, `'failed'`).
23
- * @returns A color name string (e.g. `'blue'`, `'red'`, `'muted'`).
24
- */
25
- export declare function getJobStatusBadgeColor(status: string): string;
26
- /**
27
- * Extract the jobs array from a server response.
28
- *
29
- * Handles the following shapes:
30
- * - `{ jobs: [...] }` — standard shape
31
- * - `{ data: [...] }` — alternative shape
32
- * - `[...]` — bare array
33
- * - `null` / `undefined` — returns empty array
34
- */
35
- export declare function extractJobs(data: unknown): Record<string, unknown>[];
36
- /**
37
- * Extract the job stats (overview) from a server response.
38
- *
39
- * Handles the following shapes:
40
- * - `{ stats: { active, waiting, ... } }`
41
- * - `{ overview: { active, waiting, ... } }`
42
- * - Returns `null` when no stats are available.
43
- */
44
- export declare function extractJobStats(data: unknown): JobStats | null;
45
- //# sourceMappingURL=job-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"job-utils.d.ts","sourceRoot":"","sources":["../../../src/core/job-utils.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErD;;GAEG;AACH,eAAO,MAAM,kBAAkB,yEAOrB,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAMjE;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,SAAsB,GAAG,MAAM,CAWzF;AAMD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAe7D;AAqBD;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAKpE;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,CAI9D"}
@@ -1,34 +0,0 @@
1
- /**
2
- * Generic log entry – the resolver functions only rely on dynamic property
3
- * access, so a simple index-signature is sufficient.
4
- */
5
- export interface LogEntry {
6
- [key: string]: unknown;
7
- }
8
- /**
9
- * Available log level filter values (including the "show all" option).
10
- */
11
- export declare const LOG_LEVELS: readonly ["all", "error", "warn", "info", "debug"];
12
- /** Resolve the log level string from whichever field the backend provides. */
13
- export declare function resolveLogLevel(entry: LogEntry): string;
14
- /** Resolve the message from whichever field the backend provides. */
15
- export declare function resolveLogMessage(entry: LogEntry): string;
16
- /** Resolve the timestamp from whichever field the backend provides. */
17
- export declare function resolveLogTimestamp(entry: LogEntry): number | string;
18
- /** Resolve the request ID from whichever field the backend provides. */
19
- export declare function resolveLogRequestId(entry: LogEntry): string;
20
- /**
21
- * Return the CSS class for a given log level.
22
- *
23
- * @param level The resolved log level string (e.g. `'error'`, `'warn'`).
24
- * @param prefix CSS class prefix. Defaults to `'ss-dbg-log-level'`.
25
- */
26
- export declare function getLogLevelCssClass(level: string, prefix?: string): string;
27
- /**
28
- * Filter an array of log entries by level.
29
- *
30
- * When `level` is `'all'` the original array is returned as-is.
31
- * The `'error'` filter also includes `'fatal'` entries (matching React behaviour).
32
- */
33
- export declare function filterLogsByLevel(logs: LogEntry[], level: string): LogEntry[];
34
- //# sourceMappingURL=log-utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"log-utils.d.ts","sourceRoot":"","sources":["../../../src/core/log-utils.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,UAAU,oDAAqD,CAAA;AAM5E,8EAA8E;AAC9E,wBAAgB,eAAe,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAOvD;AAED,qEAAqE;AACrE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,uEAAuE;AACvE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,CAQpE;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,QAAQ,GAAG,MAAM,CAW3D;AAMD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,SAAqB,GAAG,MAAM,CAgBtF;AAMD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,CAO7E"}