@voltro/devtools 0.87.0 → 0.89.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 (42) hide show
  1. package/CHANGELOG.md +272 -6
  2. package/THIRD-PARTY-NOTICES.md +6 -1349
  3. package/dist/Devtools.js +1 -2
  4. package/dist/capsuleClearance.js +1 -2
  5. package/dist/capsulePlacement.js +1 -2
  6. package/dist/components/boundary.js +1 -2
  7. package/dist/components/dockMenu.js +1 -2
  8. package/dist/components/icons.js +1 -2
  9. package/dist/components/primitives.js +1 -2
  10. package/dist/console/Capsule.js +1 -2
  11. package/dist/console/Console.js +1 -2
  12. package/dist/console/InspectRefusals.js +1 -2
  13. package/dist/console/searchIndex.js +1 -2
  14. package/dist/console/sources.js +1 -2
  15. package/dist/consoleBridge.js +1 -2
  16. package/dist/externalWindow.js +1 -2
  17. package/dist/inspectAuth.js +1 -2
  18. package/dist/inspectFetch.js +1 -2
  19. package/dist/inspectRefusal.js +0 -1
  20. package/dist/inspectStream.js +1 -2
  21. package/dist/logsBus.js +1 -2
  22. package/dist/panels/desktop.js +1 -2
  23. package/dist/panels/indexes.js +1 -2
  24. package/dist/panels/logs.js +1 -2
  25. package/dist/panels/mutations.js +1 -2
  26. package/dist/panels/pwa.js +1 -2
  27. package/dist/panels/routes.js +1 -2
  28. package/dist/panels/runtimes.js +1 -2
  29. package/dist/panels/stores.js +1 -2
  30. package/dist/panels/subscriptions.js +1 -2
  31. package/dist/panels/traces.js +4 -5
  32. package/dist/panels/webhooks.js +1 -2
  33. package/dist/panels/workflows.js +1 -2
  34. package/dist/pushPage.js +1 -2
  35. package/dist/shadowHost.js +1 -2
  36. package/dist/strings.js +1 -2
  37. package/dist/useCapsuleClearance.js +1 -2
  38. package/dist/useDevStatuses.js +1 -2
  39. package/dist/useDock.js +1 -2
  40. package/dist/useDocumentVisible.js +1 -2
  41. package/dist/useLiveCacheEntries.js +1 -2
  42. package/package.json +4 -4
package/dist/Devtools.js CHANGED
@@ -13,7 +13,7 @@ import { openExternalWindow as se } from "./externalWindow.js";
13
13
  import { useCallback as m, useEffect as h, useMemo as ce, useRef as g, useState as _ } from "react";
14
14
  import { selectDevStatus as le } from "@voltro/web";
15
15
  import { Fragment as ue, jsx as v, jsxs as y } from "react/jsx-runtime";
16
- //#region src/Devtools.tsx
16
+ // src/Devtools.tsx
17
17
  var b = "voltro:devtools:open", x = (e) => {
18
18
  if (typeof window > "u") return e;
19
19
  try {
@@ -323,5 +323,4 @@ var b = "voltro:devtools:open", x = (e) => {
323
323
  })
324
324
  }) : null] });
325
325
  };
326
- //#endregion
327
326
  export { S as VoltroDevtools, w as capsuleStyle, C as consoleStyle, T as edgeSizeFromDrag, x as readStoredOpen };
@@ -1,5 +1,5 @@
1
1
  import { CAPSULE_SNAP_POINTS as e, isSamePlacement as t } from "./capsulePlacement.js";
2
- //#region src/capsuleClearance.ts
2
+ // src/capsuleClearance.ts
3
3
  var n = 8, r = (e, t, r, i) => {
4
4
  let a = 18 + e.x * Math.max(0, r.width - 36 - t.w), o = 18 + e.y * Math.max(0, r.height - 36 - t.h);
5
5
  return i.filter((e) => a < e.right + n && a + t.w > e.left - n && o < e.bottom + n && o + t.h > e.top - n);
@@ -38,5 +38,4 @@ var n = 8, r = (e, t, r, i) => {
38
38
  }
39
39
  return [...e].sort((e, t) => h(e) - h(t)).find((e) => d(e).length === 0) ?? i;
40
40
  };
41
- //#endregion
42
41
  export { a as clearCapsulePlacement, i as hasCapsuleClearance };
@@ -1,4 +1,4 @@
1
- //#region src/capsulePlacement.ts
1
+ // src/capsulePlacement.ts
2
2
  var e = {
3
3
  x: .5,
4
4
  y: 1
@@ -62,5 +62,4 @@ var e = {
62
62
  y: s(r.y) ? n(r.y) : e.y
63
63
  };
64
64
  };
65
- //#endregion
66
65
  export { t as CAPSULE_SNAP_POINTS, e as DEFAULT_CAPSULE_PLACEMENT, o as capsulePlacementFromDrag, c as decodeCapsulePlacement, i as isSamePlacement, a as snapCapsulePlacement };
@@ -1,7 +1,7 @@
1
1
  import { useDevtoolsStrings as e } from "../strings.js";
2
2
  import { Component as t } from "react";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- //#region src/components/boundary.tsx
4
+ // src/components/boundary.tsx
5
5
  var i = ({ error: t, onReset: i }) => {
6
6
  let a = e().shell;
7
7
  return /* @__PURE__ */ r("div", {
@@ -43,5 +43,4 @@ var i = ({ error: t, onReset: i }) => {
43
43
  });
44
44
  }
45
45
  };
46
- //#endregion
47
46
  export { a as OverlayBoundary };
@@ -3,7 +3,7 @@ import { useDevtoolsStrings as o } from "../strings.js";
3
3
  import { ALL_DOCKS as s, isEdgeDock as c } from "../useDock.js";
4
4
  import { useEffect as l, useRef as u, useState as d } from "react";
5
5
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
6
- //#region src/components/dockMenu.tsx
6
+ // src/components/dockMenu.tsx
7
7
  var m = {
8
8
  bottom: e,
9
9
  top: i,
@@ -117,5 +117,4 @@ var m = {
117
117
  }) : null]
118
118
  });
119
119
  };
120
- //#endregion
121
120
  export { h as DockMenu };
@@ -1,6 +1,6 @@
1
1
  import { useId as e } from "react";
2
2
  import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
- //#region src/components/icons.tsx
3
+ // src/components/icons.tsx
4
4
  var i = (e) => ({ className: t }) => /* @__PURE__ */ n("svg", {
5
5
  viewBox: "0 0 24 24",
6
6
  fill: "none",
@@ -232,5 +232,4 @@ var i = (e) => ({ className: t }) => /* @__PURE__ */ n("svg", {
232
232
  strokeLinecap: "round"
233
233
  })]
234
234
  });
235
- //#endregion
236
235
  export { c as Activity, f as ArrowUpDown, o as ChevronDown, u as Compass, l as Database, C as DockBottom, D as DockExternal, T as DockLeft, E as DockRight, w as DockTop, O as DockWindow, k as Grip, b as Indexes, x as Logs, S as Monitor, y as Mutation, d as Plug, v as Search, A as Spinner, g as Trace, p as Trash, a as VoltroMark, m as Webhook, h as Workflow, s as X, _ as Zap };
@@ -1,6 +1,6 @@
1
1
  import "react";
2
2
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
- //#region src/components/primitives.tsx
3
+ // src/components/primitives.tsx
4
4
  var n = {
5
5
  default: "vdt:bg-muted vdt:text-foreground vdt:hover:bg-muted/80",
6
6
  ghost: "vdt:bg-transparent vdt:text-foreground vdt:hover:bg-muted/50",
@@ -71,5 +71,4 @@ var n = {
71
71
  children: t
72
72
  })
73
73
  });
74
- //#endregion
75
74
  export { o as Badge, i as Button, s as Card, c as CardBody, d as Empty, u as KeyValue, l as SectionTitle };
@@ -7,7 +7,7 @@ import { useCapsuleClearance as s } from "../useCapsuleClearance.js";
7
7
  import { useCallback as c, useEffect as l, useLayoutEffect as u, useRef as d, useSyncExternalStore as f } from "react";
8
8
  import { getMutations as p, subscribeMutations as m, useConnectionStatus as h, useFrameworkRuntimes as g } from "@voltro/client";
9
9
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
10
- //#region src/console/Capsule.tsx
10
+ // src/console/Capsule.tsx
11
11
  var y = (e) => e === "compiling" || e === "loading" || e === "reconnecting", b = () => f(t, e, e), x = ({ name: e }) => {
12
12
  let t = h(e).status;
13
13
  return /* @__PURE__ */ v("span", {
@@ -165,5 +165,4 @@ var y = (e) => e === "compiling" || e === "loading" || e === "reconnecting", b =
165
165
  ]
166
166
  });
167
167
  };
168
- //#endregion
169
168
  export { E as Capsule };
@@ -20,7 +20,7 @@ import { useEffect as C, useMemo as w, useRef as T, useState as E, useSyncExtern
20
20
  import { getRouteSnapshot as O, subscribeRouteSnapshot as k } from "@voltro/web";
21
21
  import { useConnectionStatus as A, useFrameworkRuntimes as ve } from "@voltro/client";
22
22
  import { Fragment as ye, jsx as j, jsxs as M } from "react/jsx-runtime";
23
- //#region src/console/Console.tsx
23
+ // src/console/Console.tsx
24
24
  var N = {
25
25
  all: null,
26
26
  subscription: e,
@@ -504,5 +504,4 @@ var N = {
504
504
  })
505
505
  ] });
506
506
  };
507
- //#endregion
508
507
  export { R as Console, P as KEY_LABELS };
@@ -3,7 +3,7 @@ import { clearInspectRefusals as t, useInspectRefusals as n } from "../inspectRe
3
3
  import { useState as r } from "react";
4
4
  import { useFrameworkRuntimes as i } from "@voltro/client";
5
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
- //#region src/console/InspectRefusals.tsx
6
+ // src/console/InspectRefusals.tsx
7
7
  var s = (e) => {
8
8
  if (e.login !== void 0) try {
9
9
  return new URL(e.login, new URL(e.baseUrl, window.location.href)).href;
@@ -85,5 +85,4 @@ var s = (e) => {
85
85
  })
86
86
  });
87
87
  };
88
- //#endregion
89
88
  export { l as InspectRefusals };
@@ -1,4 +1,4 @@
1
- //#region src/console/searchIndex.ts
1
+ // src/console/searchIndex.ts
2
2
  var e = [
3
3
  "all",
4
4
  "subscription",
@@ -59,5 +59,4 @@ var e = [
59
59
  let r = t === null ? -1 : e.indexOf(t);
60
60
  return r === -1 ? n === 1 ? e[0] : e[e.length - 1] : e[(r + n + e.length) % e.length];
61
61
  };
62
- //#endregion
63
62
  export { n as ALL_SCOPES, t as PANEL_SCOPES, e as SEARCHABLE_SCOPES, u as compactJson, l as countBySource, c as filterConsoleItems, s as isPendingInvocation, r as isSearchableScope, a as matchesQuery, d as stepSelection, i as tokenize };
@@ -5,7 +5,7 @@ import { fmtDuration as o, useTracesAcrossApis as s } from "../panels/traces.js"
5
5
  import { compactJson as c } from "./searchIndex.js";
6
6
  import { useMemo as l, useSyncExternalStore as u } from "react";
7
7
  import { getMutations as d, subscribeMutations as f } from "@voltro/client";
8
- //#region src/console/sources.ts
8
+ // src/console/sources.ts
9
9
  var p = (e) => e.recovery.phase === "stuck" || e.snapshot.error ? "err" : e.recovery.phase !== "steady" || e.snapshot.pendingPatches > 0 ? "warn" : e.snapshot.revision >= 0 ? "ok" : e.hasFiber ? "info" : "idle", m = (e, t) => {
10
10
  let n = i(t.key), r = [];
11
11
  t.subscriberCount > 0 && r.push(`${t.subscriberCount} sub${t.subscriberCount === 1 ? "" : "s"}`), t.snapshot.revision >= 0 && r.push(`r${t.snapshot.revision}`), t.snapshot.pendingPatches > 0 && r.push(`+${t.snapshot.pendingPatches} pending`), t.evicting && r.push("evicting");
@@ -102,5 +102,4 @@ var p = (e) => e.recovery.phase === "stuck" || e.snapshot.error ? "err" : e.reco
102
102
  n
103
103
  ]);
104
104
  };
105
- //#endregion
106
105
  export { y as logItem, _ as mutationItem, m as subscriptionItem, b as traceItem, C as useConsoleItems };
@@ -1,5 +1,5 @@
1
1
  import { subscribeConsoleCalls as e } from "@voltro/web";
2
- //#region src/consoleBridge.ts
2
+ // src/consoleBridge.ts
3
3
  var t = (e) => e === "warn" || e === "error", n = (e) => {
4
4
  if (typeof e == "string") return e;
5
5
  if (e instanceof Error) return `${e.name}: ${e.message}`;
@@ -72,5 +72,4 @@ var t = (e) => e === "warn" || e === "error", n = (e) => {
72
72
  };
73
73
  return s[a] = v, v;
74
74
  };
75
- //#endregion
76
75
  export { r as consoleRecord, o as installConsoleBridge, i as uncaughtRecord };
@@ -1,9 +1,8 @@
1
- //#region src/externalWindow.ts
1
+ // src/externalWindow.ts
2
2
  var e = (e, t) => {
3
3
  let n = window.open("", `voltro-devtools-${Date.now().toString(36)}`, `popup,width=${Math.round(e.w)},height=${Math.round(e.h)}`);
4
4
  if (n === null) return null;
5
5
  let r = n.document;
6
6
  return r.title = t, r.documentElement.style.setProperty("color-scheme", "dark"), r.documentElement.style.setProperty("background", "#100c19"), r.body.style.setProperty("margin", "0"), n;
7
7
  };
8
- //#endregion
9
8
  export { e as openExternalWindow };
@@ -1,6 +1,6 @@
1
1
  import { createContext as e, useContext as t } from "react";
2
2
  import { jsx as n } from "react/jsx-runtime";
3
- //#region src/inspectAuth.tsx
3
+ // src/inspectAuth.tsx
4
4
  var r = e(null);
5
5
  function i(e) {
6
6
  return /* @__PURE__ */ n(r.Provider, {
@@ -12,5 +12,4 @@ var a = () => t(r), o = (e, t) => {
12
12
  let n = { ...t ?? {} };
13
13
  return e !== null && e !== "" && (n.authorization = `Bearer ${e}`), n;
14
14
  }, s = (e) => e !== void 0 && e !== "" ? e : null;
15
- //#endregion
16
15
  export { i as InspectTokenProvider, o as inspectHeaders, s as resolveInspectToken, a as useInspectToken };
@@ -1,6 +1,6 @@
1
1
  import { inspectBaseOf as e, isRefusalStatus as t, mayAskInspect as n, noteInspectFailure as r, noteInspectRefusal as i, noteInspectSuccess as a, readInspectRefusal as o } from "./inspectRefusal.js";
2
2
  import { inspectHeaders as s } from "./inspectAuth.js";
3
- //#region src/inspectFetch.ts
3
+ // src/inspectFetch.ts
4
4
  var c = (e) => typeof e == "object" && !!e && "data" in e, l = (e) => c(e) ? e.data : null, u = async (e, t, n) => {
5
5
  let r = await fetch(e, {
6
6
  method: "POST",
@@ -42,5 +42,4 @@ var c = (e) => typeof e == "object" && !!e && "data" in e, l = (e) => c(e) ? e.d
42
42
  return null;
43
43
  }
44
44
  };
45
- //#endregion
46
45
  export { d as fetchInspect, u as postInspect, l as readInspectData };
@@ -41,5 +41,4 @@ var t = 2e3, n = 6e4, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map
41
41
  }, _ = (e) => (a.add(e), () => {
42
42
  a.delete(e);
43
43
  }), v = () => e(_, () => o, () => o);
44
- //#endregion
45
44
  export { m as clearInspectRefusals, c as inspectBaseOf, l as inspectRefusalFor, h as isRefusalStatus, u as mayAskInspect, f as noteInspectFailure, d as noteInspectRefusal, p as noteInspectSuccess, g as readInspectRefusal, v as useInspectRefusals };
@@ -1,7 +1,7 @@
1
1
  import { inspectRefusalFor as e, isRefusalStatus as t, noteInspectRefusal as n, readInspectRefusal as r } from "./inspectRefusal.js";
2
2
  import { inspectHeaders as i } from "./inspectAuth.js";
3
3
  import { useEffect as a, useState as o } from "react";
4
- //#region src/inspectStream.ts
4
+ // src/inspectStream.ts
5
5
  var s = (a, o) => {
6
6
  let s = `${a}/_voltro/inspect/stream?channels=${encodeURIComponent(o.channels.join(","))}`, c = !1, l = !1, u = 0, d, f, p = async () => {
7
7
  if (c) return;
@@ -84,5 +84,4 @@ var s = (a, o) => {
84
84
  r
85
85
  ]), i;
86
86
  };
87
- //#endregion
88
87
  export { s as openInspectStream, c as useInspectChangeEpoch };
package/dist/logsBus.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { installConsoleBridge as e } from "./consoleBridge.js";
2
2
  import { addSink as t } from "@voltro/logger";
3
- //#region src/logsBus.ts
3
+ // src/logsBus.ts
4
4
  var n = 500, r = [], i = /* @__PURE__ */ new Set(), a = [], o = () => {
5
5
  a = r.slice();
6
6
  }, s = () => {
@@ -18,5 +18,4 @@ function l(e) {
18
18
  var u = () => a, d = (e) => (i.add(e), () => {
19
19
  i.delete(e);
20
20
  });
21
- //#endregion
22
21
  export { u as getLogs, l as pushLog, d as subscribeLogs };
@@ -4,7 +4,7 @@ import { Badge as n, Button as r, Card as i, Empty as a, KeyValue as o, SectionT
4
4
  import { useCallback as c, useEffect as l, useState as u } from "react";
5
5
  import { readPairing as d, usePlatform as f, useShellExtension as p } from "@voltro/client";
6
6
  import { jsx as m, jsxs as h } from "react/jsx-runtime";
7
- //#region src/panels/desktop.tsx
7
+ // src/panels/desktop.tsx
8
8
  var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) => e).sort(), _ = (e) => [e.fullscreen ? "fullscreen" : e.maximized ? "maximized" : "windowed", e.focused ? "focused" : "unfocused"].join(", "), v = () => {
9
9
  let v = t().desktop, y = f(), b = p("desktop"), [x, S] = u(0), [C, w] = u(null), [T, E] = u(null), D = c(() => S((e) => e + 1), []);
10
10
  if (l(() => {
@@ -97,5 +97,4 @@ var g = (e) => Object.entries(e ?? {}).filter(([, e]) => e === !0).map(([e]) =>
97
97
  ]
98
98
  });
99
99
  };
100
- //#endregion
101
100
  export { v as DesktopPanel, _ as describeWindow, g as enabledCapabilities };
@@ -8,7 +8,7 @@ import { useDocumentVisible as u } from "../useDocumentVisible.js";
8
8
  import { useEffect as d, useState as f } from "react";
9
9
  import { useFrameworkRuntimes as p } from "@voltro/client";
10
10
  import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
11
- //#region src/panels/indexes.tsx
11
+ // src/panels/indexes.tsx
12
12
  var _ = 5e3, v = async (e, t) => {
13
13
  if (e === "") return null;
14
14
  let n = await l(`${e}/_voltro/inspect/subscriptions`, t);
@@ -229,5 +229,4 @@ var _ = 5e3, v = async (e, t) => {
229
229
  for (let e of t) n += e.response?.subscriptions.length ?? 0;
230
230
  return n;
231
231
  };
232
- //#endregion
233
232
  export { O as IndexesPanel, j as useIndexesCount };
@@ -1,6 +1,6 @@
1
1
  import "react";
2
2
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
- //#region src/panels/logs.tsx
3
+ // src/panels/logs.tsx
4
4
  var n = {
5
5
  trace: "vdt:text-foreground-subtle",
6
6
  debug: "vdt:text-info",
@@ -51,5 +51,4 @@ var n = {
51
51
  ]
52
52
  });
53
53
  };
54
- //#endregion
55
54
  export { a as LogDetail };
@@ -2,7 +2,7 @@ import { KeyValue as e } from "../components/primitives.js";
2
2
  import "react";
3
3
  import "@voltro/client";
4
4
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
5
- //#region src/panels/mutations.tsx
5
+ // src/panels/mutations.tsx
6
6
  var r = (e) => typeof e == "number" ? e < 1 ? "<1ms" : e < 1e3 ? `${Math.round(e)}ms` : `${(e / 1e3).toFixed(1)}s` : "—", i = (e) => {
7
7
  try {
8
8
  return JSON.stringify(e, null, 2);
@@ -77,5 +77,4 @@ var r = (e) => typeof e == "number" ? e < 1 ? "<1ms" : e < 1e3 ? `${Math.round(e
77
77
  }) : null
78
78
  ]
79
79
  });
80
- //#endregion
81
80
  export { a as MutationDetail };
@@ -5,7 +5,7 @@ import { useCallback as c, useEffect as l, useState as u } from "react";
5
5
  import { useAppUpdate as d, useInstallPrompt as f, useOfflineStatus as p } from "@voltro/web";
6
6
  import { usePlatform as m } from "@voltro/client";
7
7
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
8
- //#region src/panels/pwa.tsx
8
+ // src/panels/pwa.tsx
9
9
  var v = (e, t) => ({
10
10
  supported: t,
11
11
  scope: e?.scope ?? null,
@@ -167,5 +167,4 @@ var v = (e, t) => ({
167
167
  ]
168
168
  });
169
169
  };
170
- //#endregion
171
170
  export { C as PwaPanel, v as describeRegistration, b as pushEndpointHost, y as voltroCacheNames };
@@ -4,7 +4,7 @@ import { Card as n, Empty as r, KeyValue as i, SectionTitle as a } from "../comp
4
4
  import { useEffect as o, useState as s, useSyncExternalStore as c } from "react";
5
5
  import { getRouteSnapshot as l, subscribeRouteSnapshot as u } from "@voltro/web";
6
6
  import { jsx as d, jsxs as f } from "react/jsx-runtime";
7
- //#region src/panels/routes.tsx
7
+ // src/panels/routes.tsx
8
8
  var p = (e) => {
9
9
  try {
10
10
  return JSON.stringify(e, null, 2);
@@ -65,5 +65,4 @@ var p = (e) => {
65
65
  ] })]
66
66
  });
67
67
  };
68
- //#endregion
69
68
  export { g as RoutesPanel };
@@ -3,7 +3,7 @@ import { useDevtoolsStrings as t } from "../strings.js";
3
3
  import { Badge as n, Card as r, Empty as i, KeyValue as a, SectionTitle as o } from "../components/primitives.js";
4
4
  import { useFrameworkRuntimes as s } from "@voltro/client";
5
5
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
6
- //#region src/panels/runtimes.tsx
6
+ // src/panels/runtimes.tsx
7
7
  var u = (e) => {
8
8
  let t = 0, n = 0, r = 0, i = 0, a = 0;
9
9
  for (let o of Object.values(e)) o.kind === "query" && (t += 1), o.kind === "mutation" && (n += 1), o.kind === "action" && (r += 1), o.kind === "stream" && (i += 1), o.kind === "workflow" && (a += 1);
@@ -63,5 +63,4 @@ var u = (e) => {
63
63
  })
64
64
  });
65
65
  };
66
- //#endregion
67
66
  export { d as RuntimesPanel };
@@ -3,7 +3,7 @@ import { Badge as r, Button as i, Card as a, Empty as o, KeyValue as s, SectionT
3
3
  import { useState as l, useSyncExternalStore as u } from "react";
4
4
  import { clearStoreHistory as d, definedStores as f, storeHistory as p, subscribeStoreHistory as m, travelToStoreState as h } from "@voltro/client";
5
5
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
6
- //#region src/panels/stores.tsx
6
+ // src/panels/stores.tsx
7
7
  var y = () => u(m, p, p), b = (e, t = 90) => {
8
8
  let n;
9
9
  try {
@@ -121,5 +121,4 @@ var y = () => u(m, p, p), b = (e, t = 90) => {
121
121
  })
122
122
  ] });
123
123
  };
124
- //#endregion
125
124
  export { C as StoresPanel };
@@ -3,7 +3,7 @@ import { useLiveCacheEntries as t } from "../useLiveCacheEntries.js";
3
3
  import "react";
4
4
  import { useFrameworkRuntimes as n } from "@voltro/client";
5
5
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
6
- //#region src/panels/subscriptions.tsx
6
+ // src/panels/subscriptions.tsx
7
7
  var a = () => {
8
8
  let e = n();
9
9
  return e.names.map((t) => ({
@@ -113,5 +113,4 @@ var a = () => {
113
113
  })]
114
114
  })]
115
115
  }), u = () => o().reduce((e, t) => e + t.entries.length, 0);
116
- //#endregion
117
116
  export { l as SubscriptionDetail, s as describeSubscriptionError, c as formatCacheKey, o as useLiveApiSections, u as useSubscriptionsCount };
@@ -6,7 +6,7 @@ import { useDocumentVisible as i } from "../useDocumentVisible.js";
6
6
  import { useEffect as a, useState as o } from "react";
7
7
  import { useFrameworkRuntimes as s } from "@voltro/client";
8
8
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
- //#region src/panels/traces.tsx
9
+ // src/panels/traces.tsx
10
10
  var d = 4e3, f = async (e, t, n = !1) => {
11
11
  if (e === "") return null;
12
12
  let i = await r(`${e}/_voltro/inspect/traces${n ? "?includeBackground=1" : ""}`, t);
@@ -65,8 +65,8 @@ var d = 4e3, f = async (e, t, n = !1) => {
65
65
  } catch {
66
66
  return String(e);
67
67
  }
68
- }, v = ({ trace: n }) => {
69
- let r = t().traces, i = g(n.spans), a = new Set(n.spans.map((e) => e.spanId)), o = n.spans.some((e) => e.parentSpanId !== null && !a.has(e.parentSpanId)), s = n.spans.length > 0 && n.spans.every((e) => e.name.startsWith("sql.")), d = n.durationMs > 0 ? n.durationMs : 1;
68
+ }, v = (e) => typeof e.attributes["db.query.text"] == "string" || e.name.startsWith("sql."), y = ({ trace: n }) => {
69
+ let r = t().traces, i = g(n.spans), a = new Set(n.spans.map((e) => e.spanId)), o = n.spans.some((e) => e.parentSpanId !== null && !a.has(e.parentSpanId)), s = n.spans.length > 0 && n.spans.every(v), d = n.durationMs > 0 ? n.durationMs : 1;
70
70
  return /* @__PURE__ */ u("div", {
71
71
  className: "vdt-trace-detail",
72
72
  children: [
@@ -156,5 +156,4 @@ var d = 4e3, f = async (e, t, n = !1) => {
156
156
  ]
157
157
  });
158
158
  };
159
- //#endregion
160
- export { v as TraceDetail, g as computeDepths, h as fmtDuration, m as useTracesAcrossApis };
159
+ export { y as TraceDetail, g as computeDepths, h as fmtDuration, m as useTracesAcrossApis };
@@ -7,7 +7,7 @@ import { useDocumentVisible as l } from "../useDocumentVisible.js";
7
7
  import { useEffect as u, useState as d } from "react";
8
8
  import { useFrameworkRuntimes as f } from "@voltro/client";
9
9
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
10
- //#region src/panels/webhooks.tsx
10
+ // src/panels/webhooks.tsx
11
11
  var h = {
12
12
  outgoing: [],
13
13
  incoming: [],
@@ -244,5 +244,4 @@ var h = {
244
244
  })
245
245
  });
246
246
  };
247
- //#endregion
248
247
  export { C as WebhooksPanel, x as useWebhooksCount };
@@ -8,7 +8,7 @@ import { useInspectChangeEpoch as d } from "../inspectStream.js";
8
8
  import { useEffect as f, useMemo as p, useState as m } from "react";
9
9
  import { useFrameworkRuntimes as h, useWorkflow as g } from "@voltro/client";
10
10
  import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
11
- //#region src/panels/workflows.tsx
11
+ // src/panels/workflows.tsx
12
12
  var b = {
13
13
  queued: "neutral",
14
14
  running: "info",
@@ -474,5 +474,4 @@ var b = {
474
474
  children: E(t)
475
475
  })]
476
476
  });
477
- //#endregion
478
477
  export { P as WorkflowsPanel, k as awaitedSignals, w as fmtDuration, N as useWorkflowsCount };
package/dist/pushPage.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/pushPage.ts
1
+ // src/pushPage.ts
2
2
  var e = ["overflow"], t = [
3
3
  "position",
4
4
  "top",
@@ -32,5 +32,4 @@ var e = ["overflow"], t = [
32
32
  }
33
33
  };
34
34
  };
35
- //#endregion
36
35
  export { i as engagePush };
@@ -1,6 +1,6 @@
1
1
  import { useLayoutEffect as e, useState as t } from "react";
2
2
  import { createPortal as n } from "react-dom";
3
- //#region src/shadowHost.tsx
3
+ // src/shadowHost.tsx
4
4
  var r = /vdt/, i = (e, t) => {
5
5
  for (let n of Array.from(e)) if (n instanceof CSSStyleRule) (r.test(n.selectorText) || Array.from(n.style).some((e) => e.startsWith("--vdt-"))) && t.push(n.cssText);
6
6
  else if (n instanceof CSSKeyframesRule) n.name.startsWith("vdt-") && t.push(n.cssText);
@@ -73,5 +73,4 @@ var r = /vdt/, i = (e, t) => {
73
73
  };
74
74
  }, [i]), c === null ? null : n(r, c);
75
75
  };
76
- //#endregion
77
76
  export { c as ShadowHost, o as collectOverlayCss, a as collectPropertyRegistrations };
package/dist/strings.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createContext as e, useContext as t, useMemo as n } from "react";
2
2
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
3
- //#region src/strings.tsx
3
+ // src/strings.tsx
4
4
  var o = {
5
5
  shell: {
6
6
  brand: "Voltro Devtools",
@@ -328,5 +328,4 @@ var u = (e) => {
328
328
  let r = t(s);
329
329
  return n(() => e ? c(r, e) : r, [r, e]);
330
330
  };
331
- //#endregion
332
331
  export { l as DevtoolsStringsProvider, o as defaultDevtoolsStrings, u as useDevtoolsStrings };
@@ -1,7 +1,7 @@
1
1
  import { isSamePlacement as e } from "./capsulePlacement.js";
2
2
  import { clearCapsulePlacement as t, hasCapsuleClearance as n } from "./capsuleClearance.js";
3
3
  import { useLayoutEffect as r, useRef as i, useState as a } from "react";
4
- //#region src/useCapsuleClearance.ts
4
+ // src/useCapsuleClearance.ts
5
5
  var o = "a[href],button,input,select,textarea,label,legend,summary,th,td,[role=\"button\"],[role=\"link\"],[role=\"checkbox\"],[role=\"switch\"],[role=\"tab\"],[role=\"alert\"],[role=\"status\"],[role=\"cell\"],[role=\"gridcell\"],[role=\"columnheader\"],[role=\"rowheader\"],[aria-live]:not([aria-live=\"off\"]),[contenteditable=\"true\"],[tabindex]:not([tabindex=\"-1\"]),h1,h2,h3,h4,h5,h6,p", s = (s, c, l) => {
6
6
  let [u, d] = a({
7
7
  preferred: c,
@@ -81,5 +81,4 @@ var o = "a[href],button,input,select,textarea,label,legend,summary,th,td,[role=\
81
81
  compact: u.compact
82
82
  };
83
83
  };
84
- //#endregion
85
84
  export { s as useCapsuleClearance };
@@ -1,6 +1,5 @@
1
1
  import { useSyncExternalStore as e } from "react";
2
2
  import { getStatuses as t, subscribeStatuses as n } from "@voltro/web";
3
- //#region src/useDevStatuses.ts
3
+ // src/useDevStatuses.ts
4
4
  var r = () => e(n, t, t);
5
- //#endregion
6
5
  export { r as useDevStatuses };
package/dist/useDock.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { DEFAULT_CAPSULE_PLACEMENT as e, decodeCapsulePlacement as t, isSamePlacement as n } from "./capsulePlacement.js";
2
2
  import { useCallback as r, useEffect as i, useState as a, useSyncExternalStore as o } from "react";
3
- //#region src/useDock.ts
3
+ // src/useDock.ts
4
4
  var s = [
5
5
  "bottom",
6
6
  "top",
@@ -177,5 +177,4 @@ var s = [
177
177
  default: return null;
178
178
  }
179
179
  };
180
- //#endregion
181
180
  export { s as ALL_DOCKS, m as DEFAULT_DOCK_STATE, c as EDGE_DOCKS, d as MIN_EDGE_SIZE, f as MIN_WINDOW, C as clampDockState, x as clampEdgeSize, S as clampWindow, _ as decodeDockState, j as dockForArrow, l as isDock, u as isEdgeDock, v as readStoredDock, A as useDockState, k as useViewport };
@@ -1,5 +1,4 @@
1
1
  import { useSyncExternalStore as e } from "react";
2
- //#region src/useDocumentVisible.ts
2
+ // src/useDocumentVisible.ts
3
3
  var t = (e) => typeof document > "u" ? () => {} : (document.addEventListener("visibilitychange", e), () => document.removeEventListener("visibilitychange", e)), n = () => typeof document > "u" || !document.hidden, r = () => !0, i = () => e(t, n, r);
4
- //#endregion
5
4
  export { i as useDocumentVisible };
@@ -1,5 +1,5 @@
1
1
  import { useEffect as e, useRef as t, useState as n } from "react";
2
- //#region src/useLiveCacheEntries.ts
2
+ // src/useLiveCacheEntries.ts
3
3
  var r = 500, i = (e) => {
4
4
  let t = "";
5
5
  for (let n of e) t += `${n.key}|${n.subscriberCount}|${n.snapshot.revision}|${n.snapshot.pendingPatches}|${n.snapshot.error === void 0 ? "0" : "1"}|${n.hasFiber ? "1" : "0"}|${n.evicting ? "1" : "0"};`;
@@ -15,5 +15,4 @@ var r = 500, i = (e) => {
15
15
  return e(), () => clearInterval(t);
16
16
  }, [a]), o;
17
17
  };
18
- //#endregion
19
18
  export { i as snapshotSignature, a as useLiveCacheEntries };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/devtools",
3
- "version": "0.87.0",
3
+ "version": "0.89.0",
4
4
  "description": "Local admin / devtools surface over a running app's /_voltro/inspect/* — routes, RPC, workflows, schedules, cache, logs, and traces.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -34,9 +34,9 @@
34
34
  "node": ">=24.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@voltro/client": "0.87.0",
38
- "@voltro/logger": "0.87.0",
39
- "@voltro/web": "0.87.0"
37
+ "@voltro/client": "0.89.0",
38
+ "@voltro/logger": "0.89.0",
39
+ "@voltro/web": "0.89.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^19.0.0",