@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.
- package/CHANGELOG.md +5484 -0
- package/THIRD-PARTY-NOTICES.md +6 -230
- package/dist/Devtools.js +1 -2
- package/dist/capsuleClearance.js +1 -2
- package/dist/capsulePlacement.js +1 -2
- package/dist/components/boundary.js +1 -2
- package/dist/components/dockMenu.js +1 -2
- package/dist/components/icons.js +1 -2
- package/dist/components/primitives.js +1 -2
- package/dist/console/Capsule.js +1 -2
- package/dist/console/Console.js +1 -2
- package/dist/console/InspectRefusals.js +1 -2
- package/dist/console/searchIndex.js +1 -2
- package/dist/console/sources.js +1 -2
- package/dist/consoleBridge.js +1 -2
- package/dist/externalWindow.js +1 -2
- package/dist/inspectAuth.js +1 -2
- package/dist/inspectFetch.js +1 -2
- package/dist/inspectRefusal.js +0 -1
- package/dist/inspectStream.js +1 -2
- package/dist/logsBus.js +1 -2
- package/dist/panels/desktop.js +1 -2
- package/dist/panels/indexes.js +1 -2
- package/dist/panels/logs.js +1 -2
- package/dist/panels/mutations.js +1 -2
- package/dist/panels/pwa.js +1 -2
- package/dist/panels/routes.js +1 -2
- package/dist/panels/runtimes.js +1 -2
- package/dist/panels/stores.js +1 -2
- package/dist/panels/subscriptions.js +1 -2
- package/dist/panels/traces.js +4 -5
- package/dist/panels/webhooks.js +1 -2
- package/dist/panels/workflows.js +1 -2
- package/dist/pushPage.js +1 -2
- package/dist/shadowHost.js +1 -2
- package/dist/strings.js +1 -2
- package/dist/useCapsuleClearance.js +1 -2
- package/dist/useDevStatuses.js +1 -2
- package/dist/useDock.js +1 -2
- package/dist/useDocumentVisible.js +1 -2
- package/dist/useLiveCacheEntries.js +1 -2
- package/package.json +4 -4
package/dist/panels/runtimes.js
CHANGED
|
@@ -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
|
-
|
|
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 };
|
package/dist/panels/stores.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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 };
|
package/dist/panels/traces.js
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
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
|
-
|
|
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 };
|
package/dist/panels/webhooks.js
CHANGED
|
@@ -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
|
-
|
|
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 };
|
package/dist/panels/workflows.js
CHANGED
|
@@ -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
|
-
|
|
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
package/dist/shadowHost.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|
package/dist/useDevStatuses.js
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
38
|
-
"@voltro/logger": "0.
|
|
39
|
-
"@voltro/web": "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",
|