@mutaflow/devtools 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # @mutaflow/devtools
2
+
3
+ Devtools package for inspecting Mutaflow mutation timelines.
4
+
5
+ ## Current Components
6
+
7
+ - `MutationSummaryPanel`
8
+ - `MutationTimelinePanel`
9
+ - `MutationEventInspector`
10
+ - `MutationDevtoolsPanel`
11
+
12
+ ## Current Direction
13
+
14
+ The package now helps answer the practical debugging questions behind a mutation flow:
15
+ - what happened
16
+ - which flow ran
17
+ - which `flowId` grouped the lifecycle
18
+ - where retries happened
19
+ - where rollback happened
20
+ - which invalidations were emitted
21
+ - which consistency strategy was applied
22
+ - what `meta` was attached to the run
23
+
24
+ ## Highlights
25
+
26
+ - grouping by `flowId`
27
+ - filtering by `flowName`
28
+ - filtering by event type
29
+ - summary cards for success, errors, cancellations, and retries
30
+ - richer event inspection for `meta`, `consistency`, and merged invalidations
31
+
32
+ ## Example
33
+
34
+ ```tsx
35
+ import { MutationDevtoolsPanel } from "@mutaflow/devtools";
36
+
37
+ <MutationDevtoolsPanel
38
+ store={events}
39
+ initialFlowName="createTodo"
40
+ />
41
+ ```
@@ -0,0 +1,28 @@
1
+ import type { MutationEvent, MutationEventStore, MutationEventType } from "mutaflow";
2
+ type MutationTimelinePanelProps = {
3
+ store: MutationEventStore;
4
+ flowName?: string;
5
+ eventType?: MutationEventType | "all";
6
+ maxItems?: number;
7
+ groupByFlowId?: boolean;
8
+ showSummary?: boolean;
9
+ onSelectEvent?: (event: MutationEvent) => void;
10
+ };
11
+ type MutationSummaryPanelProps = {
12
+ events: MutationEvent[];
13
+ };
14
+ type MutationDevtoolsPanelProps = {
15
+ store: MutationEventStore;
16
+ initialFlowName?: string;
17
+ initialEventType?: MutationEventType | "all";
18
+ maxItems?: number;
19
+ groupByFlowId?: boolean;
20
+ };
21
+ export declare function MutationSummaryPanel({ events }: MutationSummaryPanelProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function MutationTimelinePanel({ store, flowName, eventType, maxItems, groupByFlowId, showSummary, onSelectEvent, }: MutationTimelinePanelProps): import("react/jsx-runtime").JSX.Element;
23
+ export declare function MutationEventInspector({ event }: {
24
+ event: MutationEvent | null;
25
+ }): import("react/jsx-runtime").JSX.Element;
26
+ export declare function MutationDevtoolsPanel({ store, initialFlowName, initialEventType, maxItems, groupByFlowId, }: MutationDevtoolsPanelProps): import("react/jsx-runtime").JSX.Element;
27
+ export {};
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAk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
3
+ import { useMutationEvents } from "mutaflow/react";
4
+ const eventTypes = [
5
+ "all",
6
+ "flow:start",
7
+ "flow:optimistic-applied",
8
+ "flow:retrying",
9
+ "flow:success",
10
+ "flow:error",
11
+ "flow:cancelled",
12
+ "flow:rolled-back",
13
+ "flow:reconciled",
14
+ ];
15
+ const panelStyle = {
16
+ border: "1px solid #d0d7de",
17
+ borderRadius: 12,
18
+ padding: 16,
19
+ background: "#ffffff",
20
+ fontFamily: "ui-sans-serif, system-ui, sans-serif",
21
+ };
22
+ const sectionTitleStyle = {
23
+ marginTop: 0,
24
+ marginBottom: 12,
25
+ };
26
+ const listStyle = {
27
+ display: "grid",
28
+ gap: 10,
29
+ margin: 0,
30
+ padding: 0,
31
+ listStyle: "none",
32
+ };
33
+ const itemStyle = {
34
+ border: "1px solid #e5e7eb",
35
+ borderRadius: 10,
36
+ padding: 12,
37
+ cursor: "pointer",
38
+ background: "#f8fafc",
39
+ };
40
+ const inlineMetaStyle = {
41
+ display: "flex",
42
+ flexWrap: "wrap",
43
+ gap: 8,
44
+ marginTop: 8,
45
+ };
46
+ const badgeStyle = {
47
+ borderRadius: 999,
48
+ padding: "4px 8px",
49
+ fontSize: 12,
50
+ background: "#e2e8f0",
51
+ };
52
+ const filterGridStyle = {
53
+ display: "grid",
54
+ gap: 12,
55
+ gridTemplateColumns: "repeat(auto-fit, minmax(220px, 1fr))",
56
+ marginBottom: 16,
57
+ };
58
+ const summaryGridStyle = {
59
+ display: "grid",
60
+ gap: 12,
61
+ gridTemplateColumns: "repeat(auto-fit, minmax(120px, 1fr))",
62
+ };
63
+ const summaryCardStyle = {
64
+ border: "1px solid #e5e7eb",
65
+ borderRadius: 10,
66
+ padding: 12,
67
+ background: "#f8fafc",
68
+ };
69
+ const groupHeaderStyle = {
70
+ display: "flex",
71
+ justifyContent: "space-between",
72
+ gap: 12,
73
+ alignItems: "flex-start",
74
+ };
75
+ function formatInvalidations(event) {
76
+ return event.invalidations?.map((entry) => `${entry.kind}:${entry.value}`).join(", ") ?? "none";
77
+ }
78
+ function formatMeta(event) {
79
+ return event.meta ? JSON.stringify(event.meta) : "none";
80
+ }
81
+ function filterEvents(events, flowName, eventType) {
82
+ const normalizedFlowName = flowName?.trim().toLowerCase();
83
+ return events.filter((event) => {
84
+ const matchesFlowName = normalizedFlowName
85
+ ? event.flowName.toLowerCase().includes(normalizedFlowName)
86
+ : true;
87
+ const matchesEventType = eventType && eventType !== "all"
88
+ ? event.type === eventType
89
+ : true;
90
+ return matchesFlowName && matchesEventType;
91
+ });
92
+ }
93
+ function groupEvents(events) {
94
+ const groups = new Map();
95
+ for (const event of events) {
96
+ const existing = groups.get(event.flowId);
97
+ if (existing) {
98
+ existing.events.push(event);
99
+ if (event.timestamp >= existing.latest.timestamp) {
100
+ existing.latest = event;
101
+ }
102
+ if (event.type === "flow:retrying") {
103
+ existing.retries += 1;
104
+ }
105
+ continue;
106
+ }
107
+ groups.set(event.flowId, {
108
+ flowId: event.flowId,
109
+ flowName: event.flowName,
110
+ latest: event,
111
+ events: [event],
112
+ retries: event.type === "flow:retrying" ? 1 : 0,
113
+ });
114
+ }
115
+ return [...groups.values()].sort((left, right) => right.latest.timestamp - left.latest.timestamp);
116
+ }
117
+ export function MutationSummaryPanel({ events }) {
118
+ const success = events.filter((event) => event.type === "flow:success").length;
119
+ const errors = events.filter((event) => event.type === "flow:error").length;
120
+ const cancelled = events.filter((event) => event.type === "flow:cancelled").length;
121
+ const retries = events.filter((event) => event.type === "flow:retrying").length;
122
+ return (_jsxs("section", { style: panelStyle, children: [_jsx("h3", { style: sectionTitleStyle, children: "Mutation Summary" }), _jsxs("div", { style: summaryGridStyle, children: [_jsxs("div", { style: summaryCardStyle, children: [_jsx("strong", { children: events.length }), _jsx("div", { children: "Total Events" })] }), _jsxs("div", { style: summaryCardStyle, children: [_jsx("strong", { children: success }), _jsx("div", { children: "Success" })] }), _jsxs("div", { style: summaryCardStyle, children: [_jsx("strong", { children: errors }), _jsx("div", { children: "Errors" })] }), _jsxs("div", { style: summaryCardStyle, children: [_jsx("strong", { children: cancelled }), _jsx("div", { children: "Cancelled" })] }), _jsxs("div", { style: summaryCardStyle, children: [_jsx("strong", { children: retries }), _jsx("div", { children: "Retries" })] })] })] }));
123
+ }
124
+ export function MutationTimelinePanel({ store, flowName, eventType = "all", maxItems = 20, groupByFlowId = true, showSummary = true, onSelectEvent, }) {
125
+ const events = useMutationEvents(store);
126
+ const filteredEvents = filterEvents(events, flowName, eventType);
127
+ const visibleEvents = filteredEvents.slice(-maxItems).reverse();
128
+ const groupedEvents = groupByFlowId ? groupEvents(visibleEvents) : [];
129
+ return (_jsxs("section", { style: { display: "grid", gap: 12 }, children: [showSummary ? _jsx(MutationSummaryPanel, { events: filteredEvents }) : null, _jsxs("section", { style: panelStyle, children: [_jsx("h3", { style: sectionTitleStyle, children: "Mutation Timeline" }), _jsx("ul", { style: listStyle, children: groupByFlowId
130
+ ? groupedEvents.map((group) => (_jsxs("li", { style: itemStyle, onClick: () => onSelectEvent?.(group.latest), children: [_jsxs("div", { style: groupHeaderStyle, children: [_jsxs("div", { children: [_jsx("strong", { children: group.latest.type }), _jsxs("div", { children: ["flow: ", group.flowName] }), _jsxs("div", { children: ["id: ", group.flowId] })] }), _jsxs("div", { style: { textAlign: "right" }, children: [_jsxs("div", { children: ["stage: ", group.latest.stage] }), _jsxs("div", { children: ["events: ", group.events.length] }), _jsxs("div", { children: ["retries: ", group.retries] })] })] }), _jsxs("div", { style: inlineMetaStyle, children: [_jsxs("span", { style: badgeStyle, children: ["consistency: ", group.latest.consistency?.strategy ?? "none"] }), _jsxs("span", { style: badgeStyle, children: ["read-your-own-writes: ", String(group.latest.consistency?.readYourOwnWrites ?? false)] }), _jsxs("span", { style: badgeStyle, children: ["target: ", group.latest.target ?? "none"] })] }), _jsxs("div", { style: { marginTop: 8 }, children: ["invalidations: ", formatInvalidations(group.latest)] }), _jsxs("div", { style: { marginTop: 4 }, children: ["meta: ", formatMeta(group.latest)] })] }, group.flowId)))
131
+ : visibleEvents.map((event) => (_jsxs("li", { style: itemStyle, onClick: () => onSelectEvent?.(event), children: [_jsx("strong", { children: event.type }), _jsxs("div", { children: ["flow: ", event.flowName] }), _jsxs("div", { children: ["id: ", event.flowId] }), _jsxs("div", { children: ["attempt: ", event.attempt] }), _jsxs("div", { children: ["stage: ", event.stage] }), _jsxs("div", { children: ["consistency: ", event.consistency?.strategy ?? "none"] }), _jsxs("div", { children: ["invalidations: ", formatInvalidations(event)] }), _jsxs("div", { children: ["meta: ", formatMeta(event)] }), event.target ? _jsxs("div", { children: ["target: ", event.target] }) : null] }, `${event.flowId}:${event.type}:${event.timestamp}`))) })] })] }));
132
+ }
133
+ export function MutationEventInspector({ event }) {
134
+ return (_jsxs("section", { style: panelStyle, children: [_jsx("h3", { style: sectionTitleStyle, children: "Event Inspector" }), event ? (_jsxs("div", { style: { display: "grid", gap: 10 }, children: [_jsxs("div", { children: [_jsx("strong", { children: "type:" }), " ", event.type] }), _jsxs("div", { children: [_jsx("strong", { children: "flow:" }), " ", event.flowName] }), _jsxs("div", { children: [_jsx("strong", { children: "flowId:" }), " ", event.flowId] }), _jsxs("div", { children: [_jsx("strong", { children: "attempt:" }), " ", event.attempt] }), _jsxs("div", { children: [_jsx("strong", { children: "stage:" }), " ", event.stage] }), _jsxs("div", { children: [_jsx("strong", { children: "target:" }), " ", event.target ?? "none"] }), _jsxs("div", { children: [_jsx("strong", { children: "consistency:" }), " ", event.consistency?.strategy ?? "none"] }), _jsxs("div", { children: [_jsx("strong", { children: "read-your-own-writes:" }), " ", String(event.consistency?.readYourOwnWrites ?? false)] }), _jsxs("div", { children: [_jsx("strong", { children: "invalidations:" }), " ", formatInvalidations(event)] }), _jsxs("div", { children: [_jsx("strong", { children: "meta:" }), " ", formatMeta(event)] }), _jsx("pre", { style: { margin: 0, whiteSpace: "pre-wrap", wordBreak: "break-word" }, children: JSON.stringify(event, null, 2) })] })) : (_jsx("pre", { style: { margin: 0, whiteSpace: "pre-wrap", wordBreak: "break-word" }, children: "Select a timeline event to inspect it." }))] }));
135
+ }
136
+ export function MutationDevtoolsPanel({ store, initialFlowName = "", initialEventType = "all", maxItems = 20, groupByFlowId = true, }) {
137
+ const [selectedEvent, setSelectedEvent] = useState(null);
138
+ const [flowNameFilter, setFlowNameFilter] = useState(initialFlowName);
139
+ const [eventTypeFilter, setEventTypeFilter] = useState(initialEventType);
140
+ return (_jsxs("section", { style: { display: "grid", gap: 12 }, children: [_jsxs("section", { style: panelStyle, children: [_jsx("h3", { style: sectionTitleStyle, children: "Devtools Filters" }), _jsxs("div", { style: filterGridStyle, children: [_jsxs("label", { style: { display: "grid", gap: 6 }, children: [_jsx("span", { children: "Flow Name" }), _jsx("input", { value: flowNameFilter, onChange: (event) => setFlowNameFilter(event.target.value), placeholder: "createTodo", style: { padding: 8, borderRadius: 8, border: "1px solid #cbd5e1" } })] }), _jsxs("label", { style: { display: "grid", gap: 6 }, children: [_jsx("span", { children: "Event Type" }), _jsx("select", { value: eventTypeFilter, onChange: (event) => setEventTypeFilter(event.target.value), style: { padding: 8, borderRadius: 8, border: "1px solid #cbd5e1" }, children: eventTypes.map((type) => (_jsx("option", { value: type, children: type }, type))) })] })] })] }), _jsx(MutationTimelinePanel, { store: store, flowName: flowNameFilter, eventType: eventTypeFilter, maxItems: maxItems, groupByFlowId: groupByFlowId, showSummary: true, onSelectEvent: setSelectedEvent }), _jsx(MutationEventInspector, { event: selectedEvent })] }));
141
+ }
142
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAiCnD,MAAM,UAAU,GAAqC;IACnD,KAAK;IACL,YAAY;IACZ,yBAAyB;IACzB,eAAe;IACf,cAAc;IACd,YAAY;IACZ,gBAAgB;IAChB,kBAA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E,IAAI,YAC3B,IAAI,IADM,IAAI,CAER,CACV,CAAC,GACK,IACH,IACJ,IACE,EACV,KAAC,qBAAqB,IACpB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,eAAe,EAC1B,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,aAAa,EAC5B,WAAW,QACX,aAAa,EAAE,gBAAgB,GAC/B,EACF,KAAC,sBAAsB,IAAC,KAAK,EAAE,aAAa,GAAI,IACxC,CACX,CAAC;AACJ,CAAC"}
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@mutaflow/devtools",
3
+ "version": "0.1.0",
4
+ "description": "Devtools prototype for Mutaflow mutation timelines",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/javaquasar/mutaflow.git",
9
+ "directory": "packages/devtools"
10
+ },
11
+ "homepage": "https://github.com/javaquasar/mutaflow#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/javaquasar/mutaflow/issues"
14
+ },
15
+ "type": "module",
16
+ "sideEffects": false,
17
+ "main": "./dist/index.js",
18
+ "module": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js"
24
+ }
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "README.md",
29
+ "LICENSE"
30
+ ],
31
+ "scripts": {
32
+ "build": "tsc -p tsconfig.json",
33
+ "typecheck": "tsc -p tsconfig.json --noEmit",
34
+ "prepublishOnly": "npm run build"
35
+ },
36
+ "peerDependencies": {
37
+ "mutaflow": "^0.1.0",
38
+ "react": ">=19.0.0"
39
+ },
40
+ "devDependencies": {
41
+ "mutaflow": "file:../mutaflow"
42
+ }
43
+ }