@voltro/devtools 0.86.0 → 0.88.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 +5484 -0
  2. package/THIRD-PARTY-NOTICES.md +6 -230
  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
@@ -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.86.0",
3
+ "version": "0.88.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.86.0",
38
- "@voltro/logger": "0.86.0",
39
- "@voltro/web": "0.86.0"
37
+ "@voltro/client": "0.88.0",
38
+ "@voltro/logger": "0.88.0",
39
+ "@voltro/web": "0.88.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": "^19.0.0",