adonisjs-server-stats 1.17.0 → 1.18.0

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 (66) hide show
  1. package/README.md +11 -6
  2. package/dist/core/core/define-config-helpers.d.ts +1 -0
  3. package/dist/core/core/types-diagnostics.d.ts +2 -0
  4. package/dist/core/debug/types.d.ts +2 -0
  5. package/dist/core/types.d.ts +31 -3
  6. package/dist/react/{CacheSection-C-X2Tnca.js → CacheSection-B-lSIN8Q.js} +1 -1
  7. package/dist/react/{CacheTab-D55mfmeE.js → CacheTab-BN0QgPXz.js} +1 -1
  8. package/dist/react/{ConfigSection-C-HGnZfd.js → ConfigSection-u_TSfb9f.js} +1 -1
  9. package/dist/react/{ConfigTab-CNnsOXBh.js → ConfigTab-au26s-ON.js} +1 -1
  10. package/dist/react/{CustomPaneTab-D-267UVd.js → CustomPaneTab-qvMnh8ss.js} +1 -1
  11. package/dist/react/{EmailsSection-Bqw4DI4r.js → EmailsSection-HfEMeRex.js} +1 -1
  12. package/dist/react/{EmailsTab-CkHOhj2F.js → EmailsTab-BWwq-CxB.js} +1 -1
  13. package/dist/react/{EventsSection-CMeyjzVC.js → EventsSection-CA9b15dJ.js} +1 -1
  14. package/dist/react/{EventsTab-DgS2v1HX.js → EventsTab-CgSdHbKU.js} +1 -1
  15. package/dist/react/{InternalsContent-C9lIA92C.js → InternalsContent-CI7HvBtH.js} +51 -47
  16. package/dist/react/{InternalsSection-lOv_UcSV.js → InternalsSection-IEeWXJqP.js} +1 -1
  17. package/dist/react/{InternalsTab-BygoSorC.js → InternalsTab-CoVLHQbF.js} +1 -1
  18. package/dist/react/{JobsSection-oWH6pbrG.js → JobsSection-DgsS_VwU.js} +1 -1
  19. package/dist/react/{JobsTab-zdxX_as-.js → JobsTab-CzwLSRUC.js} +1 -1
  20. package/dist/react/{LogEntryRow-Cn8Ee_X0.js → LogEntryRow-VCCzwD1H.js} +1 -1
  21. package/dist/react/{LogsSection-XmiI2MMs.js → LogsSection-BujNn_cO.js} +2 -2
  22. package/dist/react/{LogsTab-ixusY4v7.js → LogsTab-BtD1h7DM.js} +2 -2
  23. package/dist/react/{OverviewSection-CvhObTLP.js → OverviewSection-B28em0gQ.js} +1 -1
  24. package/dist/react/{QueriesSection-BvledwBI.js → QueriesSection-B0tFn_Dc.js} +1 -1
  25. package/dist/react/{QueriesTab-smQQJvJa.js → QueriesTab-DJY7aavR.js} +1 -1
  26. package/dist/react/{RequestsSection-DKuYpViv.js → RequestsSection-DPmYM7tq.js} +2 -2
  27. package/dist/react/{RoutesSection-5RNVurQ6.js → RoutesSection-Ck-RcFVS.js} +1 -1
  28. package/dist/react/{RoutesTab-CpXNO-Rx.js → RoutesTab-Ch3PDLzo.js} +1 -1
  29. package/dist/react/{SplitPaneWrapper-DQvJnsuk.js → SplitPaneWrapper-BZ6VrBr-.js} +1 -1
  30. package/dist/react/{TimelineTab-LHQHHKkO.js → TimelineTab-_byxh2mJ.js} +2 -2
  31. package/dist/react/{index-LlFvooUN.js → index-De7nsWBN.js} +2 -2
  32. package/dist/react/index.js +1 -1
  33. package/dist/src/dashboard/dashboard_store.js +4 -12
  34. package/dist/src/dashboard/knex_factory.js +8 -0
  35. package/dist/src/dashboard/migrator.d.ts +7 -2
  36. package/dist/src/dashboard/migrator.js +140 -6
  37. package/dist/src/dashboard/migrator_tables.js +4 -0
  38. package/dist/src/dashboard/storage_stats.d.ts +5 -0
  39. package/dist/src/dashboard/storage_stats.js +15 -1
  40. package/dist/src/debug/types.d.ts +2 -0
  41. package/dist/src/define_config.js +2 -0
  42. package/dist/src/edge/client/dashboard.js +2 -2
  43. package/dist/src/edge/client/debug-panel-deferred.js +1 -1
  44. package/dist/src/edge/client-vue/dashboard.js +3 -3
  45. package/dist/src/edge/client-vue/debug-panel-deferred.js +2 -2
  46. package/dist/src/provider/dashboard_setup.js +14 -0
  47. package/dist/src/provider/diagnostics.d.ts +2 -0
  48. package/dist/src/provider/diagnostics.js +1 -0
  49. package/dist/src/provider/server_stats_provider.d.ts +1 -0
  50. package/dist/src/stubs/config.stub +4 -0
  51. package/dist/src/types.d.ts +31 -3
  52. package/dist/vue/{CacheSection-Bm0goqX6.js → CacheSection-z2TQRez9.js} +1 -1
  53. package/dist/vue/{ConfigSection-BrYslIMN.js → ConfigSection-CFEaig69.js} +1 -1
  54. package/dist/vue/{EmailsSection-B8N5vaWA.js → EmailsSection-CYohBo62.js} +1 -1
  55. package/dist/vue/{EventsSection-D2Y_xt0m.js → EventsSection-B_TuVrGj.js} +1 -1
  56. package/dist/vue/{InternalsSection-jhTCuK3j.js → InternalsSection-B1P2kNT-.js} +92 -84
  57. package/dist/vue/{InternalsTab-Z3c82glB.js → InternalsTab-CRI-IFTo.js} +155 -147
  58. package/dist/vue/{JobsSection-cEKqELLC.js → JobsSection-AjkEzyiv.js} +1 -1
  59. package/dist/vue/{LogsSection-C3H2c0S3.js → LogsSection-DZD0CCDi.js} +1 -1
  60. package/dist/vue/{OverviewSection-I2swuHDa.js → OverviewSection-BEc4Gktf.js} +1 -1
  61. package/dist/vue/{QueriesSection-CF1IE3SN.js → QueriesSection-BMImGXTn.js} +1 -1
  62. package/dist/vue/{RequestsSection-CuwgXzmU.js → RequestsSection-DOI2MUFX.js} +1 -1
  63. package/dist/vue/{RoutesSection-BhJCF7Rn.js → RoutesSection-C1sxt-AW.js} +1 -1
  64. package/dist/vue/{index-DUsImuIN.js → index-BfPAAjL5.js} +2 -2
  65. package/dist/vue/index.js +1 -1
  66. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as V, ref as T, onMounted as B, onBeforeUnmount as R, computed as k, openBlock as a, createElementBlock as o, toDisplayString as s, Fragment as u, createElementVNode as l, createTextVNode as d, createCommentVNode as c, renderList as v, unref as C, normalizeClass as m, normalizeStyle as F } from "vue";
2
- import { fillPercent as U, getTimerLabel as j, getIntegrationDetails as Q, getIntegrationStatus as H, getIntegrationLabel as O, formatUptime as q, timeAgo as M, formatCollectorConfig as J, UnauthorizedError as K, classifyStatus as W, formatDuration as w } from "adonisjs-server-stats/core";
1
+ import { defineComponent as B, ref as T, onMounted as V, onBeforeUnmount as R, computed as k, openBlock as a, createElementBlock as o, toDisplayString as s, Fragment as u, createElementVNode as l, createTextVNode as d, createCommentVNode as c, renderList as v, unref as S, normalizeClass as m, normalizeStyle as F } from "vue";
2
+ import { fillPercent as U, getTimerLabel as j, getIntegrationDetails as Q, getIntegrationStatus as H, getIntegrationLabel as O, formatUptime as q, timeAgo as I, formatCollectorConfig as J, UnauthorizedError as K, classifyStatus as W, formatDuration as w } from "adonisjs-server-stats/core";
3
3
  import { u as G } from "./useApiClient-BQQ9CF-q.js";
4
4
  const X = {
5
5
  key: 0,
@@ -52,11 +52,11 @@ const X = {
52
52
  }, xl = {
53
53
  key: 8,
54
54
  class: "ss-dbg-table"
55
- }, Tl = { class: "ss-dbg-c-dim" }, Cl = { class: "ss-dbg-table" }, Sl = { style: { "font-family": "monospace", "font-size": "11px" } }, El = {
55
+ }, Tl = { class: "ss-dbg-c-dim" }, Sl = { class: "ss-dbg-table" }, Cl = { style: { "font-family": "monospace", "font-size": "11px" } }, El = {
56
56
  key: 0,
57
57
  class: "ss-dbg-table",
58
58
  style: { "margin-top": "8px" }
59
- }, zl = { style: { "font-family": "monospace", "font-size": "11px" } }, hl = { class: "ss-dbg-table" }, Dl = { class: "ss-dbg-table" }, Il = { style: { "font-family": "monospace", "font-size": "11px" } }, $l = { style: { "font-family": "monospace", "font-size": "11px" } }, Ml = { style: { "font-family": "monospace", "font-size": "11px" } }, wl = { style: { "font-size": "11px" } }, Ll = 3e3, Vl = /* @__PURE__ */ V({
59
+ }, zl = { style: { "font-family": "monospace", "font-size": "11px" } }, Dl = { class: "ss-dbg-table" }, Ml = { class: "ss-dbg-table" }, hl = { style: { "font-family": "monospace", "font-size": "11px" } }, $l = { style: { "font-family": "monospace", "font-size": "11px" } }, Il = { style: { "font-family": "monospace", "font-size": "11px" } }, wl = { style: { "font-size": "11px" } }, Ll = 3e3, Bl = /* @__PURE__ */ B({
60
60
  __name: "InternalsTab",
61
61
  props: {
62
62
  data: {},
@@ -65,14 +65,14 @@ const X = {
65
65
  authToken: {}
66
66
  },
67
67
  setup(L) {
68
- const S = L, z = T(null), y = T(!0), g = T(null);
68
+ const C = L, z = T(null), y = T(!0), g = T(null);
69
69
  let b = null;
70
- const P = G(S.baseUrl || "", S.authToken);
71
- async function h() {
72
- const r = S.debugEndpoint || "/admin/api/debug";
70
+ const P = G(C.baseUrl || "", C.authToken);
71
+ async function D() {
72
+ const r = C.debugEndpoint || "/admin/api/debug";
73
73
  try {
74
- const e = await P().get(`${r}/diagnostics`);
75
- z.value = e, g.value = null, y.value = !1;
74
+ const n = await P().get(`${r}/diagnostics`);
75
+ z.value = n, g.value = null, y.value = !1;
76
76
  } catch (t) {
77
77
  if (t instanceof K) {
78
78
  g.value = t, y.value = !1, b && (clearInterval(b), b = null);
@@ -81,8 +81,8 @@ const X = {
81
81
  g.value = t instanceof Error ? t : new Error(String(t)), y.value = !1;
82
82
  }
83
83
  }
84
- B(() => {
85
- y.value = !0, g.value = null, h(), b = setInterval(h, Ll);
84
+ V(() => {
85
+ y.value = !0, g.value = null, D(), b = setInterval(D, Ll);
86
86
  }), R(() => {
87
87
  b && (clearInterval(b), b = null);
88
88
  });
@@ -97,36 +97,36 @@ const X = {
97
97
  function N(r) {
98
98
  return r.debounceMs !== void 0 ? `${w(r.debounceMs)} (debounce)` : r.intervalMs !== void 0 ? w(r.intervalMs) : "-";
99
99
  }
100
- const E = k(() => z.value || null), n = k(() => E.value || {}), D = k(() => n.value.buffers ? Object.entries(n.value.buffers).map(([r, t]) => ({
100
+ const E = k(() => z.value || null), e = k(() => E.value || {}), M = k(() => e.value.buffers ? Object.entries(e.value.buffers).map(([r, t]) => ({
101
101
  name: r.charAt(0).toUpperCase() + r.slice(1),
102
102
  ...t,
103
103
  percent: U(t.current, t.max)
104
- })) : []), I = k(() => n.value.timers ? Object.entries(n.value.timers).map(([r, t]) => ({
104
+ })) : []), h = k(() => e.value.timers ? Object.entries(e.value.timers).map(([r, t]) => ({
105
105
  key: r,
106
106
  label: j(r),
107
107
  ...t,
108
108
  interval: N(t)
109
109
  })) : []), $ = k(() => {
110
- if (!n.value) return [];
110
+ if (!e.value) return [];
111
111
  const r = [];
112
- if (n.value.transmit && r.push({
112
+ if (e.value.transmit && r.push({
113
113
  key: "transmit",
114
114
  label: "Transmit (SSE)",
115
- status: n.value.transmit.available ? "connected" : "unavailable",
116
- details: n.value.transmit.available ? `Channels: ${n.value.transmit.channels.join(", ")}` : "Not installed"
117
- }), n.value.integrations)
118
- for (const [t, e] of Object.entries(n.value.integrations))
115
+ status: e.value.transmit.available ? "connected" : "unavailable",
116
+ details: e.value.transmit.available ? `Channels: ${e.value.transmit.channels.join(", ")}` : "Not installed"
117
+ }), e.value.integrations)
118
+ for (const [t, n] of Object.entries(e.value.integrations))
119
119
  r.push({
120
120
  key: t,
121
121
  label: O(t),
122
- status: H(e),
123
- details: Q(t, e)
122
+ status: H(n),
123
+ details: Q(t, n)
124
124
  });
125
125
  return r;
126
126
  });
127
127
  return (r, t) => (a(), o("div", null, [
128
128
  y.value && !E.value ? (a(), o("div", X, "Loading diagnostics...")) : g.value ? (a(), o("div", Y, "Error: " + s(g.value.message), 1)) : E.value ? (a(), o(u, { key: 3 }, [
129
- n.value.collectors?.some((e) => e.name === "db_pool" || e.name === "app") && Array.isArray(n.value.lucidDebugConnections) && n.value.lucidDebugConnections.length === 0 ? (a(), o("div", _, [...t[4] || (t[4] = [
129
+ e.value.collectors?.some((n) => n.name === "db_pool" || n.name === "app") && Array.isArray(e.value.lucidDebugConnections) && e.value.lucidDebugConnections.length === 0 ? (a(), o("div", _, [...t[4] || (t[4] = [
130
130
  l("strong", null, "Query capture disabled", -1),
131
131
  d(" — no Lucid connections have ", -1),
132
132
  l("code", { style: { "font-size": "11px" } }, "debug: true", -1),
@@ -134,24 +134,24 @@ const X = {
134
134
  l("code", { style: { "font-size": "11px" } }, "config/database.ts", -1),
135
135
  d(" to see queries in the Queries panel. ", -1)
136
136
  ])])) : c("", !0),
137
- t[42] || (t[42] = l("div", { class: "ss-dbg-internals-title" }, "Package Info", -1)),
137
+ t[44] || (t[44] = l("div", { class: "ss-dbg-internals-title" }, "Package Info", -1)),
138
138
  l("div", ll, [
139
139
  (a(!0), o(u, null, v([
140
- { label: "Version", value: n.value.package?.version || "-" },
141
- { label: "Node.js", value: n.value.package?.nodeVersion || "-" },
142
- { label: "AdonisJS", value: n.value.package?.adonisVersion || "-" },
143
- { label: "Uptime", value: C(q)(n.value.package?.uptime) },
144
- { label: "Renderer", value: n.value.devToolbar?.renderer || "preact" }
145
- ], (e) => (a(), o("div", {
146
- key: e.label,
140
+ { label: "Version", value: e.value.package?.version || "-" },
141
+ { label: "Node.js", value: e.value.package?.nodeVersion || "-" },
142
+ { label: "AdonisJS", value: e.value.package?.adonisVersion || "-" },
143
+ { label: "Uptime", value: S(q)(e.value.package?.uptime) },
144
+ { label: "Renderer", value: e.value.devToolbar?.renderer || "preact" }
145
+ ], (n) => (a(), o("div", {
146
+ key: n.label,
147
147
  class: "ss-dbg-info-card"
148
148
  }, [
149
- l("span", tl, s(e.label), 1),
150
- l("span", el, s(e.value), 1)
149
+ l("span", tl, s(n.label), 1),
150
+ l("span", el, s(n.value), 1)
151
151
  ]))), 128))
152
152
  ]),
153
- t[43] || (t[43] = l("div", { class: "ss-dbg-internals-title" }, "Collectors", -1)),
154
- n.value.collectors?.length ? (a(), o("table", sl, [
153
+ t[45] || (t[45] = l("div", { class: "ss-dbg-internals-title" }, "Collectors", -1)),
154
+ e.value.collectors?.length ? (a(), o("table", sl, [
155
155
  t[5] || (t[5] = l("thead", null, [
156
156
  l("tr", null, [
157
157
  l("th", null, "Collector"),
@@ -161,44 +161,44 @@ const X = {
161
161
  ])
162
162
  ], -1)),
163
163
  l("tbody", null, [
164
- (a(!0), o(u, null, v(n.value.collectors, (e) => (a(), o("tr", {
165
- key: e.name
164
+ (a(!0), o(u, null, v(e.value.collectors, (n) => (a(), o("tr", {
165
+ key: n.name
166
166
  }, [
167
167
  l("td", null, [
168
- l("span", al, s(e.name), 1),
169
- e.label && e.label !== e.name ? (a(), o("span", ol, s(e.label), 1)) : c("", !0)
168
+ l("span", al, s(n.name), 1),
169
+ n.label && n.label !== n.name ? (a(), o("span", ol, s(n.label), 1)) : c("", !0)
170
170
  ]),
171
171
  l("td", null, [
172
172
  l("span", {
173
- class: m(["ss-dbg-dot", x(e.status)])
173
+ class: m(["ss-dbg-dot", x(n.status)])
174
174
  }, null, 2),
175
- d(" " + s(e.status), 1)
175
+ d(" " + s(n.status), 1)
176
176
  ]),
177
177
  l("td", rl, [
178
- e.lastError ? (a(), o(u, { key: 0 }, [
179
- d(s(e.lastError) + " ", 1),
180
- l("span", ul, s(C(M)(e.lastErrorAt ?? 0)), 1)
178
+ n.lastError ? (a(), o(u, { key: 0 }, [
179
+ d(s(n.lastError) + " ", 1),
180
+ l("span", ul, s(S(I)(n.lastErrorAt ?? 0)), 1)
181
181
  ], 64)) : (a(), o(u, { key: 1 }, [
182
182
  d("-")
183
183
  ], 64))
184
184
  ]),
185
185
  l("td", dl, [
186
- Object.keys(e.config || {}).length ? (a(!0), o(u, { key: 0 }, v(C(J)(e.config), (i) => (a(), o("span", {
186
+ Object.keys(n.config || {}).length ? (a(!0), o(u, { key: 0 }, v(S(J)(n.config), (i) => (a(), o("span", {
187
187
  key: i.key,
188
188
  style: { "margin-right": "8px" }
189
189
  }, [
190
190
  d(s(i.key) + "=", 1),
191
- i.secret && !p.value.has(`collector-${e.name}-${i.key}`) ? (a(), o("span", {
191
+ i.secret && !p.value.has(`collector-${n.name}-${i.key}`) ? (a(), o("span", {
192
192
  key: 0,
193
193
  class: "ss-dbg-c-muted",
194
194
  style: { cursor: "pointer" },
195
- onClick: (A) => f(`collector-${e.name}-${i.key}`)
195
+ onClick: (A) => f(`collector-${n.name}-${i.key}`)
196
196
  }, "••••••••", 8, il)) : (a(), o(u, { key: 1 }, [
197
197
  l("span", null, s(i.value), 1),
198
198
  i.secret ? (a(), o("button", {
199
199
  key: 0,
200
200
  style: { background: "none", border: "none", color: "var(--ss-link-color, #3b82f6)", cursor: "pointer", "font-size": "10px", "margin-left": "4px", padding: "0" },
201
- onClick: (A) => f(`collector-${e.name}-${i.key}`)
201
+ onClick: (A) => f(`collector-${n.name}-${i.key}`)
202
202
  }, " Hide ", 8, bl)) : c("", !0)
203
203
  ], 64))
204
204
  ]))), 128)) : (a(), o(u, { key: 1 }, [
@@ -208,8 +208,8 @@ const X = {
208
208
  ]))), 128))
209
209
  ])
210
210
  ])) : (a(), o("div", nl, "No collectors")),
211
- t[44] || (t[44] = l("div", { class: "ss-dbg-internals-title" }, "Buffers", -1)),
212
- D.value.length ? (a(), o("table", gl, [
211
+ t[46] || (t[46] = l("div", { class: "ss-dbg-internals-title" }, "Buffers", -1)),
212
+ M.value.length ? (a(), o("table", gl, [
213
213
  t[6] || (t[6] = l("thead", null, [
214
214
  l("tr", null, [
215
215
  l("th", null, "Buffer"),
@@ -218,29 +218,29 @@ const X = {
218
218
  ])
219
219
  ], -1)),
220
220
  l("tbody", null, [
221
- (a(!0), o(u, null, v(D.value, (e) => (a(), o("tr", {
222
- key: e.name
221
+ (a(!0), o(u, null, v(M.value, (n) => (a(), o("tr", {
222
+ key: n.name
223
223
  }, [
224
- l("td", null, s(e.name), 1),
225
- l("td", null, s(e.current.toLocaleString()) + " / " + s(e.max.toLocaleString()), 1),
224
+ l("td", null, s(n.name), 1),
225
+ l("td", null, s(n.current.toLocaleString()) + " / " + s(n.max.toLocaleString()), 1),
226
226
  l("td", null, [
227
227
  l("div", pl, [
228
228
  l("div", fl, [
229
229
  l("div", {
230
- class: m(["ss-dbg-bar-fill", e.percent >= 100 ? "ss-dbg-bar-fill-warn" : ""]),
231
- style: F({ width: e.percent + "%" })
230
+ class: m(["ss-dbg-bar-fill", n.percent >= 100 ? "ss-dbg-bar-fill-warn" : ""]),
231
+ style: F({ width: n.percent + "%" })
232
232
  }, null, 6)
233
233
  ]),
234
234
  l("span", {
235
- class: m(["ss-dbg-bar-pct", e.percent >= 100 ? "ss-dbg-bar-pct-warn" : ""])
236
- }, s(e.percent) + "%", 3)
235
+ class: m(["ss-dbg-bar-pct", n.percent >= 100 ? "ss-dbg-bar-pct-warn" : ""])
236
+ }, s(n.percent) + "%", 3)
237
237
  ])
238
238
  ])
239
239
  ]))), 128))
240
240
  ])
241
241
  ])) : (a(), o("div", vl, "No buffer data")),
242
- t[45] || (t[45] = l("div", { class: "ss-dbg-internals-title" }, "Timers", -1)),
243
- I.value.length ? (a(), o("table", yl, [
242
+ t[47] || (t[47] = l("div", { class: "ss-dbg-internals-title" }, "Timers", -1)),
243
+ h.value.length ? (a(), o("table", yl, [
244
244
  t[7] || (t[7] = l("thead", null, [
245
245
  l("tr", null, [
246
246
  l("th", null, "Timer"),
@@ -249,21 +249,21 @@ const X = {
249
249
  ])
250
250
  ], -1)),
251
251
  l("tbody", null, [
252
- (a(!0), o(u, null, v(I.value, (e) => (a(), o("tr", {
253
- key: e.key
252
+ (a(!0), o(u, null, v(h.value, (n) => (a(), o("tr", {
253
+ key: n.key
254
254
  }, [
255
- l("td", null, s(e.label), 1),
255
+ l("td", null, s(n.label), 1),
256
256
  l("td", null, [
257
257
  l("span", {
258
- class: m(["ss-dbg-dot", x(e.active ? "active" : "inactive")])
258
+ class: m(["ss-dbg-dot", x(n.active ? "active" : "inactive")])
259
259
  }, null, 2),
260
- d(" " + s(e.active ? "active" : "inactive"), 1)
260
+ d(" " + s(n.active ? "active" : "inactive"), 1)
261
261
  ]),
262
- l("td", kl, s(e.interval), 1)
262
+ l("td", kl, s(n.interval), 1)
263
263
  ]))), 128))
264
264
  ])
265
265
  ])) : (a(), o("div", ml, "No timer data")),
266
- t[46] || (t[46] = l("div", { class: "ss-dbg-internals-title" }, "Integrations", -1)),
266
+ t[48] || (t[48] = l("div", { class: "ss-dbg-internals-title" }, "Integrations", -1)),
267
267
  $.value.length ? (a(), o("table", xl, [
268
268
  t[8] || (t[8] = l("thead", null, [
269
269
  l("tr", null, [
@@ -273,24 +273,24 @@ const X = {
273
273
  ])
274
274
  ], -1)),
275
275
  l("tbody", null, [
276
- (a(!0), o(u, null, v($.value, (e) => (a(), o("tr", {
277
- key: e.key
276
+ (a(!0), o(u, null, v($.value, (n) => (a(), o("tr", {
277
+ key: n.key
278
278
  }, [
279
- l("td", null, s(e.label), 1),
279
+ l("td", null, s(n.label), 1),
280
280
  l("td", null, [
281
281
  l("span", {
282
- class: m(["ss-dbg-dot", x(e.status)])
282
+ class: m(["ss-dbg-dot", x(n.status)])
283
283
  }, null, 2),
284
- d(" " + s(e.status), 1)
284
+ d(" " + s(n.status), 1)
285
285
  ]),
286
- l("td", Tl, s(e.details), 1)
286
+ l("td", Tl, s(n.details), 1)
287
287
  ]))), 128))
288
288
  ])
289
289
  ])) : (a(), o("div", cl, "No integration data")),
290
- n.value.storage ? (a(), o(u, { key: 9 }, [
291
- t[17] || (t[17] = l("div", { class: "ss-dbg-internals-title" }, "Storage", -1)),
292
- l("table", Cl, [
293
- t[15] || (t[15] = l("thead", null, [
290
+ e.value.storage ? (a(), o(u, { key: 9 }, [
291
+ t[18] || (t[18] = l("div", { class: "ss-dbg-internals-title" }, "Storage", -1)),
292
+ l("table", Sl, [
293
+ t[16] || (t[16] = l("thead", null, [
294
294
  l("tr", null, [
295
295
  l("th", null, "Metric"),
296
296
  l("th", null, "Value")
@@ -301,53 +301,57 @@ const X = {
301
301
  t[9] || (t[9] = l("td", null, "Status", -1)),
302
302
  l("td", null, [
303
303
  l("span", {
304
- class: m(["ss-dbg-dot", x(n.value.storage.ready ? "ready" : "unavailable")])
304
+ class: m(["ss-dbg-dot", x(e.value.storage.ready ? "ready" : "unavailable")])
305
305
  }, null, 2),
306
- d(" " + s(n.value.storage.ready ? "ready" : "not ready"), 1)
306
+ d(" " + s(e.value.storage.ready ? "ready" : "not ready"), 1)
307
307
  ])
308
308
  ]),
309
309
  l("tr", null, [
310
310
  t[10] || (t[10] = l("td", null, "DB Path", -1)),
311
- l("td", Sl, s(n.value.storage.dbPath), 1)
311
+ l("td", Cl, s(e.value.storage.dbPath), 1)
312
312
  ]),
313
313
  l("tr", null, [
314
314
  t[11] || (t[11] = l("td", null, "File Size", -1)),
315
- l("td", null, s(n.value.storage.fileSizeMb.toFixed(1)) + " MB", 1)
315
+ l("td", null, s(e.value.storage.fileSizeMb.toFixed(1)) + " MB", 1)
316
316
  ]),
317
317
  l("tr", null, [
318
318
  t[12] || (t[12] = l("td", null, "WAL Size", -1)),
319
- l("td", null, s(n.value.storage.walSizeMb.toFixed(1)) + " MB", 1)
319
+ l("td", null, s(e.value.storage.walSizeMb.toFixed(1)) + " MB", 1)
320
320
  ]),
321
321
  l("tr", null, [
322
322
  t[13] || (t[13] = l("td", null, "Retention", -1)),
323
- l("td", null, s(n.value.storage.retentionDays) + " days", 1)
323
+ l("td", null, s(e.value.storage.retentionDays) + " days", 1)
324
+ ]),
325
+ l("tr", null, [
326
+ t[14] || (t[14] = l("td", null, "Size Cap", -1)),
327
+ l("td", null, s(e.value.storage.maxDbSizeMb > 0 ? `${e.value.storage.maxDbSizeMb} MB` : "off"), 1)
324
328
  ]),
325
329
  l("tr", null, [
326
- t[14] || (t[14] = l("td", null, "Last Cleanup", -1)),
327
- l("td", null, s(C(M)(n.value.storage.lastCleanupAt ?? 0)), 1)
330
+ t[15] || (t[15] = l("td", null, "Last Cleanup", -1)),
331
+ l("td", null, s(S(I)(e.value.storage.lastCleanupAt ?? 0)), 1)
328
332
  ])
329
333
  ])
330
334
  ]),
331
- n.value.storage.tables?.length ? (a(), o("table", El, [
332
- t[16] || (t[16] = l("thead", null, [
335
+ e.value.storage.tables?.length ? (a(), o("table", El, [
336
+ t[17] || (t[17] = l("thead", null, [
333
337
  l("tr", null, [
334
338
  l("th", null, "Table"),
335
339
  l("th", null, "Rows")
336
340
  ])
337
341
  ], -1)),
338
342
  l("tbody", null, [
339
- (a(!0), o(u, null, v(n.value.storage.tables, (e) => (a(), o("tr", {
340
- key: e.name
343
+ (a(!0), o(u, null, v(e.value.storage.tables, (n) => (a(), o("tr", {
344
+ key: n.name
341
345
  }, [
342
- l("td", zl, s(e.name), 1),
343
- l("td", null, s(e.rowCount.toLocaleString()), 1)
346
+ l("td", zl, s(n.name), 1),
347
+ l("td", null, s(n.rowCount.toLocaleString()), 1)
344
348
  ]))), 128))
345
349
  ])
346
350
  ])) : c("", !0)
347
351
  ], 64)) : c("", !0),
348
- t[47] || (t[47] = l("div", { class: "ss-dbg-internals-title" }, "Resolved Config", -1)),
349
- l("table", hl, [
350
- t[25] || (t[25] = l("thead", null, [
352
+ t[49] || (t[49] = l("div", { class: "ss-dbg-internals-title" }, "Resolved Config", -1)),
353
+ l("table", Dl, [
354
+ t[26] || (t[26] = l("thead", null, [
351
355
  l("tr", null, [
352
356
  l("th", null, "Setting"),
353
357
  l("th", null, "Value")
@@ -355,38 +359,38 @@ const X = {
355
359
  ], -1)),
356
360
  l("tbody", null, [
357
361
  l("tr", null, [
358
- t[18] || (t[18] = l("td", null, "intervalMs", -1)),
359
- l("td", null, s(n.value.config?.intervalMs), 1)
362
+ t[19] || (t[19] = l("td", null, "intervalMs", -1)),
363
+ l("td", null, s(e.value.config?.intervalMs), 1)
360
364
  ]),
361
365
  l("tr", null, [
362
- t[19] || (t[19] = l("td", null, "transport", -1)),
363
- l("td", null, s(n.value.config?.transport), 1)
366
+ t[20] || (t[20] = l("td", null, "transport", -1)),
367
+ l("td", null, s(e.value.config?.transport), 1)
364
368
  ]),
365
369
  l("tr", null, [
366
- t[20] || (t[20] = l("td", null, "channelName", -1)),
367
- l("td", null, s(n.value.config?.channelName), 1)
370
+ t[21] || (t[21] = l("td", null, "channelName", -1)),
371
+ l("td", null, s(e.value.config?.channelName), 1)
368
372
  ]),
369
373
  l("tr", null, [
370
- t[21] || (t[21] = l("td", null, "endpoint", -1)),
371
- l("td", null, s(n.value.config?.endpoint === !1 ? "false" : n.value.config?.endpoint), 1)
374
+ t[22] || (t[22] = l("td", null, "endpoint", -1)),
375
+ l("td", null, s(e.value.config?.endpoint === !1 ? "false" : e.value.config?.endpoint), 1)
372
376
  ]),
373
377
  l("tr", null, [
374
- t[22] || (t[22] = l("td", null, "skipInTest", -1)),
375
- l("td", null, s(n.value.config?.skipInTest), 1)
378
+ t[23] || (t[23] = l("td", null, "skipInTest", -1)),
379
+ l("td", null, s(e.value.config?.skipInTest), 1)
376
380
  ]),
377
381
  l("tr", null, [
378
- t[23] || (t[23] = l("td", null, "onStats callback", -1)),
379
- l("td", null, s(n.value.config?.hasOnStatsCallback ? "defined" : "not defined"), 1)
382
+ t[24] || (t[24] = l("td", null, "onStats callback", -1)),
383
+ l("td", null, s(e.value.config?.hasOnStatsCallback ? "defined" : "not defined"), 1)
380
384
  ]),
381
385
  l("tr", null, [
382
- t[24] || (t[24] = l("td", null, "shouldShow callback", -1)),
383
- l("td", null, s(n.value.config?.hasShouldShowCallback ? "defined" : "not defined"), 1)
386
+ t[25] || (t[25] = l("td", null, "shouldShow callback", -1)),
387
+ l("td", null, s(e.value.config?.hasShouldShowCallback ? "defined" : "not defined"), 1)
384
388
  ])
385
389
  ])
386
390
  ]),
387
- t[48] || (t[48] = l("div", { class: "ss-dbg-internals-title" }, "DevToolbar", -1)),
388
- l("table", Dl, [
389
- t[41] || (t[41] = l("thead", null, [
391
+ t[50] || (t[50] = l("div", { class: "ss-dbg-internals-title" }, "DevToolbar", -1)),
392
+ l("table", Ml, [
393
+ t[43] || (t[43] = l("thead", null, [
390
394
  l("tr", null, [
391
395
  l("th", null, "Setting"),
392
396
  l("th", null, "Value")
@@ -394,90 +398,94 @@ const X = {
394
398
  ], -1)),
395
399
  l("tbody", null, [
396
400
  l("tr", null, [
397
- t[26] || (t[26] = l("td", null, "enabled", -1)),
398
- l("td", null, s(n.value.devToolbar?.enabled), 1)
401
+ t[27] || (t[27] = l("td", null, "enabled", -1)),
402
+ l("td", null, s(e.value.devToolbar?.enabled), 1)
399
403
  ]),
400
404
  l("tr", null, [
401
- t[27] || (t[27] = l("td", null, "tracing", -1)),
402
- l("td", null, s(n.value.devToolbar?.tracing), 1)
405
+ t[28] || (t[28] = l("td", null, "tracing", -1)),
406
+ l("td", null, s(e.value.devToolbar?.tracing), 1)
403
407
  ]),
404
408
  l("tr", null, [
405
- t[28] || (t[28] = l("td", null, "dashboard", -1)),
406
- l("td", null, s(n.value.devToolbar?.dashboard), 1)
409
+ t[29] || (t[29] = l("td", null, "dashboard", -1)),
410
+ l("td", null, s(e.value.devToolbar?.dashboard), 1)
407
411
  ]),
408
412
  l("tr", null, [
409
- t[29] || (t[29] = l("td", null, "dashboardPath", -1)),
410
- l("td", Il, s(n.value.devToolbar?.dashboardPath), 1)
413
+ t[30] || (t[30] = l("td", null, "dashboardPath", -1)),
414
+ l("td", hl, s(e.value.devToolbar?.dashboardPath), 1)
411
415
  ]),
412
416
  l("tr", null, [
413
- t[30] || (t[30] = l("td", null, "debugEndpoint", -1)),
417
+ t[31] || (t[31] = l("td", null, "debugEndpoint", -1)),
414
418
  l("td", $l, [
415
419
  p.value.has("cfg-debugEndpoint") ? (a(), o(u, { key: 1 }, [
416
- d(s(n.value.devToolbar?.debugEndpoint) + " ", 1),
420
+ d(s(e.value.devToolbar?.debugEndpoint) + " ", 1),
417
421
  l("button", {
418
422
  style: { background: "none", border: "none", color: "var(--ss-link-color, #3b82f6)", cursor: "pointer", "font-size": "10px", "margin-left": "4px", padding: "0" },
419
- onClick: t[1] || (t[1] = (e) => f("cfg-debugEndpoint"))
423
+ onClick: t[1] || (t[1] = (n) => f("cfg-debugEndpoint"))
420
424
  }, " Hide ")
421
425
  ], 64)) : (a(), o("span", {
422
426
  key: 0,
423
427
  class: "ss-dbg-c-muted",
424
428
  style: { cursor: "pointer" },
425
- onClick: t[0] || (t[0] = (e) => f("cfg-debugEndpoint"))
429
+ onClick: t[0] || (t[0] = (n) => f("cfg-debugEndpoint"))
426
430
  }, "••••••••"))
427
431
  ])
428
432
  ]),
429
433
  l("tr", null, [
430
- t[31] || (t[31] = l("td", null, "maxQueries", -1)),
431
- l("td", null, s(n.value.devToolbar?.maxQueries), 1)
434
+ t[32] || (t[32] = l("td", null, "maxQueries", -1)),
435
+ l("td", null, s(e.value.devToolbar?.maxQueries), 1)
436
+ ]),
437
+ l("tr", null, [
438
+ t[33] || (t[33] = l("td", null, "maxEvents", -1)),
439
+ l("td", null, s(e.value.devToolbar?.maxEvents), 1)
432
440
  ]),
433
441
  l("tr", null, [
434
- t[32] || (t[32] = l("td", null, "maxEvents", -1)),
435
- l("td", null, s(n.value.devToolbar?.maxEvents), 1)
442
+ t[34] || (t[34] = l("td", null, "maxEmails", -1)),
443
+ l("td", null, s(e.value.devToolbar?.maxEmails), 1)
436
444
  ]),
437
445
  l("tr", null, [
438
- t[33] || (t[33] = l("td", null, "maxEmails", -1)),
439
- l("td", null, s(n.value.devToolbar?.maxEmails), 1)
446
+ t[35] || (t[35] = l("td", null, "maxTraces", -1)),
447
+ l("td", null, s(e.value.devToolbar?.maxTraces), 1)
440
448
  ]),
441
449
  l("tr", null, [
442
- t[34] || (t[34] = l("td", null, "maxTraces", -1)),
443
- l("td", null, s(n.value.devToolbar?.maxTraces), 1)
450
+ t[36] || (t[36] = l("td", null, "slowQueryThresholdMs", -1)),
451
+ l("td", null, s(e.value.devToolbar?.slowQueryThresholdMs), 1)
444
452
  ]),
445
453
  l("tr", null, [
446
- t[35] || (t[35] = l("td", null, "slowQueryThresholdMs", -1)),
447
- l("td", null, s(n.value.devToolbar?.slowQueryThresholdMs), 1)
454
+ t[37] || (t[37] = l("td", null, "retentionDays", -1)),
455
+ l("td", null, s(e.value.devToolbar?.retentionDays), 1)
448
456
  ]),
449
457
  l("tr", null, [
450
- t[36] || (t[36] = l("td", null, "retentionDays", -1)),
451
- l("td", null, s(n.value.devToolbar?.retentionDays), 1)
458
+ t[38] || (t[38] = l("td", null, "maxDbSizeMb", -1)),
459
+ l("td", null, s(e.value.devToolbar?.maxDbSizeMb), 1)
452
460
  ]),
453
461
  l("tr", null, [
454
- t[37] || (t[37] = l("td", null, "dbPath", -1)),
455
- l("td", Ml, [
462
+ t[39] || (t[39] = l("td", null, "dbPath", -1)),
463
+ l("td", Il, [
456
464
  p.value.has("cfg-dbPath") ? (a(), o(u, { key: 1 }, [
457
- d(s(n.value.devToolbar?.dbPath) + " ", 1),
465
+ d(s(e.value.devToolbar?.dbPath) + " ", 1),
458
466
  l("button", {
459
467
  style: { background: "none", border: "none", color: "var(--ss-link-color, #3b82f6)", cursor: "pointer", "font-size": "10px", "margin-left": "4px", padding: "0" },
460
- onClick: t[3] || (t[3] = (e) => f("cfg-dbPath"))
468
+ onClick: t[3] || (t[3] = (n) => f("cfg-dbPath"))
461
469
  }, " Hide ")
462
470
  ], 64)) : (a(), o("span", {
463
471
  key: 0,
464
472
  class: "ss-dbg-c-muted",
465
473
  style: { cursor: "pointer" },
466
- onClick: t[2] || (t[2] = (e) => f("cfg-dbPath"))
474
+ onClick: t[2] || (t[2] = (n) => f("cfg-dbPath"))
467
475
  }, "••••••••"))
468
476
  ])
469
477
  ]),
470
478
  l("tr", null, [
471
- t[38] || (t[38] = l("td", null, "persistDebugData", -1)),
472
- l("td", null, s(n.value.devToolbar?.persistDebugData), 1)
479
+ t[40] || (t[40] = l("td", null, "persistDebugData", -1)),
480
+ l("td", null, s(e.value.devToolbar?.persistDebugData), 1)
473
481
  ]),
474
482
  l("tr", null, [
475
- t[39] || (t[39] = l("td", null, "excludeFromTracing", -1)),
476
- l("td", wl, s(n.value.devToolbar?.excludeFromTracing?.join(", ") || "-"), 1)
483
+ t[41] || (t[41] = l("td", null, "excludeFromTracing", -1)),
484
+ l("td", wl, s(e.value.devToolbar?.excludeFromTracing?.join(", ") || "-"), 1)
477
485
  ]),
478
486
  l("tr", null, [
479
- t[40] || (t[40] = l("td", null, "customPanes", -1)),
480
- l("td", null, s(n.value.devToolbar?.customPaneCount ?? 0) + " registered", 1)
487
+ t[42] || (t[42] = l("td", null, "customPanes", -1)),
488
+ l("td", null, s(e.value.devToolbar?.customPaneCount ?? 0) + " registered", 1)
481
489
  ])
482
490
  ])
483
491
  ])
@@ -486,5 +494,5 @@ const X = {
486
494
  }
487
495
  });
488
496
  export {
489
- Vl as default
497
+ Bl as default
490
498
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as L, inject as h, ref as p, computed as g, openBlock as o, createElementBlock as d, createElementVNode as s, toDisplayString as n, createCommentVNode as v, createVNode as k, unref as a, withCtx as z, Fragment as _, renderList as x, normalizeClass as w, withModifiers as K, createBlock as M } from "vue";
2
2
  import { extractJobs as O, extractJobStats as Q, JOB_STATUS_FILTERS as W, getJobStatusBadgeColor as q, formatDuration as G, formatTime as H, timeAgo as X } from "adonisjs-server-stats/core";
3
- import { u as Y } from "./index-DUsImuIN.js";
3
+ import { u as Y } from "./index-BfPAAjL5.js";
4
4
  import { u as Z } from "./useResizableTable-BoivAevK.js";
5
5
  import { _ as I } from "./JsonViewer.vue_vue_type_script_setup_true_lang-Bid05zpm.js";
6
6
  import { _ as j } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as ne, inject as b, ref as r, computed as U, openBlock as a, createElementBlock as o, createVNode as M, unref as s, withCtx as ue, createElementVNode as n, Fragment as q, renderList as x, normalizeClass as $, toDisplayString as u, withKeys as V, createCommentVNode as _, createStaticVNode as ie, createTextVNode as w, withModifiers as O, createBlock as re } from "vue";
2
2
  import { LOG_LEVELS as de, getStructuredData as m, getLogLevelCssClass as ce, resolveLogLevel as j, resolveLogTimestamp as F, formatTime as ve, timeAgo as pe, resolveLogRequestId as g, resolveLogMessage as he } from "adonisjs-server-stats/core";
3
3
  import { _ as _e } from "./JsonViewer.vue_vue_type_script_setup_true_lang-Bid05zpm.js";
4
- import { u as fe } from "./index-DUsImuIN.js";
4
+ import { u as fe } from "./index-BfPAAjL5.js";
5
5
  import { _ as me } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
6
6
  import { _ as ge } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";
7
7
  const ye = { class: "ss-dash-log-filters" }, ke = ["onClick"], Ce = ["value"], be = { class: "ss-dash-structured-search" }, qe = ["value"], $e = ["value"], Fe = ["value"], Le = {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as Rs, openBlock as o, createElementBlock as n, Fragment as _, renderList as k, createElementVNode as s, normalizeClass as b, toDisplayString as r, inject as S, ref as N, watch as ks, computed as d, onUnmounted as Hs, unref as x, createVNode as F, createCommentVNode as v, normalizeStyle as ns, createTextVNode as ws } from "vue";
2
2
  import { formatDuration as Q, formatTime as Ks, timeAgo as Gs, durationClassName as Xs } from "adonisjs-server-stats/core";
3
- import { u as bs, _ as O } from "./index-DUsImuIN.js";
3
+ import { u as bs, _ as O } from "./index-BfPAAjL5.js";
4
4
  const Ys = { class: "ss-dash-btn-group" }, Zs = ["onClick"], Js = /* @__PURE__ */ Rs({
5
5
  __name: "TimeRangeSelector",
6
6
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as he, inject as z, ref as T, computed as p, openBlock as a, createElementBlock as l, createVNode as me, withCtx as ve, createElementVNode as s, normalizeClass as f, unref as c, Fragment as d, renderList as x, createTextVNode as v, toDisplayString as o, createCommentVNode as h, withKeys as G, withModifiers as F, normalizeStyle as H, createBlock as ye } from "vue";
2
2
  import { QueriesController as fe, getDashboardListColumns as _e, getDashboardGroupedColumns as xe, resolveField as b, normalizeDashboardQuery as ge, buildSqlCounts as be, computeDashboardQuerySummary as ke, formatTime as we, timeAgo as Ce, formatCellValue as $e, flattenPlanTree as De, getExplainColumns as Ee, hasNestedPlan as Se, durationClassName as Ne } from "adonisjs-server-stats/core";
3
- import { u as ze } from "./index-DUsImuIN.js";
3
+ import { u as ze } from "./index-BfPAAjL5.js";
4
4
  import { u as Pe } from "./useResizableTable-BoivAevK.js";
5
5
  import { _ as Te } from "./FilterBar.vue_vue_type_script_setup_true_lang-ClJ37hhT.js";
6
6
  import { _ as Fe } from "./PaginationControls.vue_vue_type_script_setup_true_lang-CuN7g_8Z.js";