browsertrack 0.1.2 → 0.2.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/AGENTS.md +4 -2
- package/dist/{chunk-ILRYKMME.js → chunk-3HOXPTM2.js} +97 -3
- package/dist/chunk-3HOXPTM2.js.map +1 -0
- package/dist/{chunk-SPCIROIU.js → chunk-7OCOQGDN.js} +24 -5
- package/dist/chunk-7OCOQGDN.js.map +1 -0
- package/dist/{chunk-G2Y3CXCY.js → chunk-UP5JKCFY.js} +84 -2
- package/dist/chunk-UP5JKCFY.js.map +1 -0
- package/dist/{chunk-SKCMT2DE.js → chunk-WB7ZKWK7.js} +453 -152
- package/dist/chunk-WB7ZKWK7.js.map +1 -0
- package/dist/cli/index.js +200 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/client/index.cjs +452 -151
- package/dist/client/index.d.ts +28 -9
- package/dist/client/index.js +1 -1
- package/dist/client.iife.js +185 -29
- package/dist/core/index.d.ts +2 -2
- package/dist/daemon/index.d.ts +3 -3
- package/dist/daemon/index.js +2 -2
- package/dist/{engine-CeT9URuN.d.ts → engine-B43IohQY.d.ts} +13 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/mcp/index.d.ts +4 -4
- package/dist/mcp/index.js +2 -2
- package/dist/{notes-CBvN91Wf.d.ts → notes-BMnonq46.d.ts} +24 -1
- package/dist/{projects-CY8ungMt.d.ts → projects-D5J-egVN.d.ts} +1 -1
- package/dist/{server-Dd8NX2Mk.d.ts → server-BztYp1Zc.d.ts} +1 -1
- package/docs/index.md +2 -1
- package/docs/mcp-reference.md +14 -1
- package/docs/scenarios-flows.md +86 -0
- package/package.json +1 -1
- package/packages/client/src/notes/inspector.ts +533 -161
- package/packages/core/src/types/notes.ts +25 -0
- package/packages/daemon/src/notes/engine.ts +6 -0
- package/packages/daemon/src/server/ws.ts +23 -1
- package/packages/daemon/src/storage/db.ts +106 -3
- package/packages/mcp/src/handlers.ts +58 -0
- package/packages/mcp/src/tools.ts +28 -0
- package/test/client/interceptors.test.ts +64 -0
- package/test/daemon/scenario-storage.test.ts +158 -0
- package/dist/chunk-G2Y3CXCY.js.map +0 -1
- package/dist/chunk-ILRYKMME.js.map +0 -1
- package/dist/chunk-SKCMT2DE.js.map +0 -1
- package/dist/chunk-SPCIROIU.js.map +0 -1
package/dist/core/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as Breadcrumb, C as CaptureElementParams, a as CaptureElementResult, b as ClientCommand, c as ClientEventMessage, d as CommandResponse, e as CommandType, f as ConsoleEvent, g as ConsoleLevel, D as DOMRectJson, E as ElementContext, h as ElementStyleResult, i as ElementSummary, j as EventType, H as HelloMessage, N as NavigateParams, k as NavigationEvent, l as NetworkEvent, m as NoteStatus, n as NoteTarget, o as NoteType, p as NoteVerificationResult, O as OverflowCheckResult, P as PageStateResult, Q as QueryElementParams, q as QueryElementResult, R as RegionContext, r as ReloadParams, s as RuntimeErrorEvent, S as ScrollContext, V as ViewportContext,
|
|
2
|
-
export { I as Incident, a as IncidentOccurrence, b as IncidentSeverity, c as IncidentSource, d as IncidentStatus, P as ProbeResult, e as ProbeType, f as Project, S as Session, V as VerificationProbe, g as VerificationRecipe, h as VerificationResult } from '../projects-
|
|
1
|
+
export { B as Breadcrumb, C as CaptureElementParams, a as CaptureElementResult, b as ClientCommand, c as ClientEventMessage, d as CommandResponse, e as CommandType, f as ConsoleEvent, g as ConsoleLevel, D as DOMRectJson, E as ElementContext, h as ElementStyleResult, i as ElementSummary, j as EventType, H as HelloMessage, N as NavigateParams, k as NavigationEvent, l as NetworkEvent, m as NoteStatus, n as NoteTarget, o as NoteType, p as NoteVerificationResult, O as OverflowCheckResult, P as PageStateResult, Q as QueryElementParams, q as QueryElementResult, R as RegionContext, r as ReloadParams, s as RuntimeErrorEvent, S as ScenarioDetail, t as ScenarioOverview, u as ScrollContext, V as ViewportContext, v as VisualNote } from '../notes-BMnonq46.js';
|
|
2
|
+
export { I as Incident, a as IncidentOccurrence, b as IncidentSeverity, c as IncidentSource, d as IncidentStatus, P as ProbeResult, e as ProbeType, f as Project, S as Session, V as VerificationProbe, g as VerificationRecipe, h as VerificationResult } from '../projects-D5J-egVN.js';
|
|
3
3
|
import { Rules } from '@visulima/redact';
|
|
4
4
|
export { Rules, standardRules, redact as visulimaRedact } from '@visulima/redact';
|
|
5
5
|
|
package/dist/daemon/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as StorageDB, b as ScreenshotStore, a as SessionManager, c as NotesEngine, V as VerificationEngine, N as NoteVerificationEngine } from '../engine-
|
|
2
|
-
import { c as ClientEventMessage } from '../notes-
|
|
3
|
-
import { I as Incident } from '../projects-
|
|
1
|
+
import { S as StorageDB, b as ScreenshotStore, a as SessionManager, c as NotesEngine, V as VerificationEngine, N as NoteVerificationEngine } from '../engine-B43IohQY.js';
|
|
2
|
+
import { c as ClientEventMessage } from '../notes-BMnonq46.js';
|
|
3
|
+
import { I as Incident } from '../projects-D5J-egVN.js';
|
|
4
4
|
import http from 'node:http';
|
|
5
5
|
import { WebSocketServer } from 'ws';
|
|
6
6
|
|
package/dist/daemon/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
createDaemon,
|
|
5
5
|
createHttpHandler,
|
|
6
6
|
setupWebSocketServer
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-7OCOQGDN.js";
|
|
8
8
|
import "../chunk-6VA7GBAO.js";
|
|
9
9
|
import {
|
|
10
10
|
NoteVerificationEngine,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
StorageDB,
|
|
15
15
|
VerificationEngine,
|
|
16
16
|
getDaemonConfig
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-3HOXPTM2.js";
|
|
18
18
|
export {
|
|
19
19
|
BrowserTrackDaemon,
|
|
20
20
|
IncidentEngine,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as Breadcrumb, i as ElementSummary,
|
|
2
|
-
import { f as Project, S as Session, I as Incident, d as IncidentStatus, b as IncidentSeverity, a as IncidentOccurrence, h as VerificationResult, g as VerificationRecipe } from './projects-
|
|
1
|
+
import { B as Breadcrumb, i as ElementSummary, v as VisualNote, m as NoteStatus, t as ScenarioOverview, S as ScenarioDetail, p as NoteVerificationResult, d as CommandResponse, b as ClientCommand } from './notes-BMnonq46.js';
|
|
2
|
+
import { f as Project, S as Session, I as Incident, d as IncidentStatus, b as IncidentSeverity, a as IncidentOccurrence, h as VerificationResult, g as VerificationRecipe } from './projects-D5J-egVN.js';
|
|
3
3
|
import { WebSocket } from 'ws';
|
|
4
4
|
|
|
5
5
|
declare class StorageDB {
|
|
@@ -71,9 +71,17 @@ declare class StorageDB {
|
|
|
71
71
|
projectId?: string;
|
|
72
72
|
status?: NoteStatus;
|
|
73
73
|
route?: string;
|
|
74
|
+
scenarioId?: string;
|
|
74
75
|
limit?: number;
|
|
75
76
|
}): VisualNote[];
|
|
76
77
|
deleteNote(id: string): void;
|
|
78
|
+
listScenarios(options?: {
|
|
79
|
+
projectId?: string;
|
|
80
|
+
status?: NoteStatus;
|
|
81
|
+
limit?: number;
|
|
82
|
+
}): ScenarioOverview[];
|
|
83
|
+
getScenario(scenarioId: string): ScenarioDetail | null;
|
|
84
|
+
deleteScenario(scenarioId: string): void;
|
|
77
85
|
updateNoteStatus(id: string, status: NoteStatus): void;
|
|
78
86
|
updateNote(id: string, updates: Partial<VisualNote>): void;
|
|
79
87
|
insertNoteVerification(v: NoteVerificationResult): void;
|
|
@@ -133,6 +141,9 @@ declare class NotesEngine {
|
|
|
133
141
|
region?: any;
|
|
134
142
|
screenshot?: string;
|
|
135
143
|
incidentId?: string;
|
|
144
|
+
scenarioId?: string;
|
|
145
|
+
stepNumber?: number;
|
|
146
|
+
scenarioTitle?: string;
|
|
136
147
|
}): VisualNote;
|
|
137
148
|
saveNoteScreenshot(projectId: string, noteId: string, name: string, dataUrl: string): string | null;
|
|
138
149
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { B as Breadcrumb, C as CaptureElementParams, a as CaptureElementResult, b as ClientCommand, c as ClientEventMessage, d as CommandResponse, e as CommandType, f as ConsoleEvent, g as ConsoleLevel, D as DOMRectJson, E as ElementContext, h as ElementStyleResult, i as ElementSummary, j as EventType, H as HelloMessage, N as NavigateParams, k as NavigationEvent, l as NetworkEvent, m as NoteStatus, n as NoteTarget, o as NoteType, p as NoteVerificationResult, O as OverflowCheckResult, P as PageStateResult, Q as QueryElementParams, q as QueryElementResult, R as RegionContext, r as ReloadParams, s as RuntimeErrorEvent, S as ScrollContext, V as ViewportContext,
|
|
2
|
-
export { I as Incident, a as IncidentOccurrence, b as IncidentSeverity, c as IncidentSource, d as IncidentStatus, P as ProbeResult, e as ProbeType, f as Project, S as Session, V as VerificationProbe, g as VerificationRecipe, h as VerificationResult } from './projects-
|
|
1
|
+
export { B as Breadcrumb, C as CaptureElementParams, a as CaptureElementResult, b as ClientCommand, c as ClientEventMessage, d as CommandResponse, e as CommandType, f as ConsoleEvent, g as ConsoleLevel, D as DOMRectJson, E as ElementContext, h as ElementStyleResult, i as ElementSummary, j as EventType, H as HelloMessage, N as NavigateParams, k as NavigationEvent, l as NetworkEvent, m as NoteStatus, n as NoteTarget, o as NoteType, p as NoteVerificationResult, O as OverflowCheckResult, P as PageStateResult, Q as QueryElementParams, q as QueryElementResult, R as RegionContext, r as ReloadParams, s as RuntimeErrorEvent, S as ScenarioDetail, t as ScenarioOverview, u as ScrollContext, V as ViewportContext, v as VisualNote } from './notes-BMnonq46.js';
|
|
2
|
+
export { I as Incident, a as IncidentOccurrence, b as IncidentSeverity, c as IncidentSource, d as IncidentStatus, P as ProbeResult, e as ProbeType, f as Project, S as Session, V as VerificationProbe, g as VerificationRecipe, h as VerificationResult } from './projects-D5J-egVN.js';
|
|
3
3
|
export { BROWSER_SECURITY_RULES, FingerprintInput, REDACTED_PLACEHOLDER, SENSITIVE_KEY_PATTERNS, SENSITIVE_QUERY_PARAMS, SelectorOptions, computeFingerprint, extractSourceFromStack, getSemanticSelector, isSensitiveKey, normalizeErrorMessage, normalizeSourceFile, redactHeaders, redactSensitiveData, redactUrl, truncate } from './core/index.js';
|
|
4
4
|
export { BrowserTrackClient, getClient, init as initClient } from './client/index.js';
|
|
5
5
|
export { BrowserTrackDaemon, createDaemon } from './daemon/index.js';
|
|
6
|
-
export { c as createMcpServer } from './server-
|
|
6
|
+
export { c as createMcpServer } from './server-BztYp1Zc.js';
|
|
7
7
|
export { Rules, standardRules, redact as visulimaRedact } from '@visulima/redact';
|
|
8
|
-
import './engine-
|
|
8
|
+
import './engine-B43IohQY.js';
|
|
9
9
|
import 'ws';
|
|
10
10
|
import 'node:http';
|
|
11
11
|
import '@modelcontextprotocol/sdk/server/index.js';
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
BrowserTrackClient,
|
|
3
3
|
getClient,
|
|
4
4
|
init
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WB7ZKWK7.js";
|
|
6
6
|
import {
|
|
7
7
|
BrowserTrackDaemon,
|
|
8
8
|
createDaemon
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7OCOQGDN.js";
|
|
10
10
|
import {
|
|
11
11
|
BROWSER_SECURITY_RULES,
|
|
12
12
|
REDACTED_PLACEHOLDER,
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
} from "./chunk-6VA7GBAO.js";
|
|
28
28
|
import {
|
|
29
29
|
createMcpServer
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-UP5JKCFY.js";
|
|
31
|
+
import "./chunk-3HOXPTM2.js";
|
|
32
32
|
export {
|
|
33
33
|
BROWSER_SECURITY_RULES,
|
|
34
34
|
BrowserTrackClient,
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
-
export { M as McpContext, a as McpServerOptions, c as createMcpServer, h as handleToolCall } from '../server-
|
|
2
|
+
export { M as McpContext, a as McpServerOptions, c as createMcpServer, h as handleToolCall } from '../server-BztYp1Zc.js';
|
|
3
3
|
import '@modelcontextprotocol/sdk/server/index.js';
|
|
4
|
-
import '../engine-
|
|
5
|
-
import '../notes-
|
|
6
|
-
import '../projects-
|
|
4
|
+
import '../engine-B43IohQY.js';
|
|
5
|
+
import '../notes-BMnonq46.js';
|
|
6
|
+
import '../projects-D5J-egVN.js';
|
|
7
7
|
import 'ws';
|
|
8
8
|
|
|
9
9
|
declare const TOOLS: Tool[];
|
package/dist/mcp/index.js
CHANGED
|
@@ -226,6 +226,9 @@ interface VisualNote {
|
|
|
226
226
|
region?: RegionContext;
|
|
227
227
|
status: NoteStatus;
|
|
228
228
|
incidentId?: string;
|
|
229
|
+
scenarioId?: string;
|
|
230
|
+
stepNumber?: number;
|
|
231
|
+
scenarioTitle?: string;
|
|
229
232
|
screenshots?: {
|
|
230
233
|
original?: string;
|
|
231
234
|
after?: string;
|
|
@@ -234,6 +237,26 @@ interface VisualNote {
|
|
|
234
237
|
updatedAt: string;
|
|
235
238
|
resolvedAt?: string;
|
|
236
239
|
}
|
|
240
|
+
interface ScenarioOverview {
|
|
241
|
+
id: string;
|
|
242
|
+
projectId: string;
|
|
243
|
+
title: string;
|
|
244
|
+
stepsCount: number;
|
|
245
|
+
status: NoteStatus;
|
|
246
|
+
route: string;
|
|
247
|
+
firstStepAt: string;
|
|
248
|
+
lastStepAt: string;
|
|
249
|
+
}
|
|
250
|
+
interface ScenarioDetail {
|
|
251
|
+
id: string;
|
|
252
|
+
projectId: string;
|
|
253
|
+
title: string;
|
|
254
|
+
stepsCount: number;
|
|
255
|
+
status: NoteStatus;
|
|
256
|
+
steps: VisualNote[];
|
|
257
|
+
createdAt: string;
|
|
258
|
+
updatedAt: string;
|
|
259
|
+
}
|
|
237
260
|
interface NoteVerificationResult {
|
|
238
261
|
noteId: string;
|
|
239
262
|
status: NoteStatus;
|
|
@@ -257,4 +280,4 @@ interface NoteVerificationResult {
|
|
|
257
280
|
message?: string;
|
|
258
281
|
}
|
|
259
282
|
|
|
260
|
-
export type { Breadcrumb as B, CaptureElementParams as C, DOMRectJson as D, ElementContext as E, HelloMessage as H, NavigateParams as N, OverflowCheckResult as O, PageStateResult as P, QueryElementParams as Q, RegionContext as R,
|
|
283
|
+
export type { Breadcrumb as B, CaptureElementParams as C, DOMRectJson as D, ElementContext as E, HelloMessage as H, NavigateParams as N, OverflowCheckResult as O, PageStateResult as P, QueryElementParams as Q, RegionContext as R, ScenarioDetail as S, ViewportContext as V, CaptureElementResult as a, ClientCommand as b, ClientEventMessage as c, CommandResponse as d, CommandType as e, ConsoleEvent as f, ConsoleLevel as g, ElementStyleResult as h, ElementSummary as i, EventType as j, NavigationEvent as k, NetworkEvent as l, NoteStatus as m, NoteTarget as n, NoteType as o, NoteVerificationResult as p, QueryElementResult as q, ReloadParams as r, RuntimeErrorEvent as s, ScenarioOverview as t, ScrollContext as u, VisualNote as v };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as Breadcrumb, l as NetworkEvent, i as ElementSummary } from './notes-
|
|
1
|
+
import { B as Breadcrumb, l as NetworkEvent, i as ElementSummary } from './notes-BMnonq46.js';
|
|
2
2
|
|
|
3
3
|
type IncidentStatus = 'OPEN' | 'FIX_ATTEMPTED' | 'VERIFYING' | 'VERIFIED' | 'FAILED' | 'INCONCLUSIVE';
|
|
4
4
|
type IncidentSeverity = 'error' | 'warn' | 'fatal';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
2
|
-
import { S as StorageDB, a as SessionManager, V as VerificationEngine, N as NoteVerificationEngine } from './engine-
|
|
2
|
+
import { S as StorageDB, a as SessionManager, V as VerificationEngine, N as NoteVerificationEngine } from './engine-B43IohQY.js';
|
|
3
3
|
|
|
4
4
|
interface McpContext {
|
|
5
5
|
db: StorageDB;
|
package/docs/index.md
CHANGED
|
@@ -39,8 +39,9 @@ graph TD
|
|
|
39
39
|
|
|
40
40
|
- [Getting Started](./getting-started.md) — Quick installation and setup in under 2 minutes.
|
|
41
41
|
- [Visual Notes & Annotations](./visual-notes.md) — Screen notes, region selection, and persistent markers.
|
|
42
|
+
- [Multi-Step Scenarios & Flows](./scenarios-flows.md) — Sequential reproduction flows, Save & Next Step, and stepper walk-throughs.
|
|
42
43
|
- [Incidents & Error Diagnostics](./incidents-diagnostics.md) — Ingest runtime errors, stack traces, and breadcrumbs.
|
|
43
44
|
- [Closed-Loop Verification](./closed-loop-verification.md) — Automated bug-fix and layout verification.
|
|
44
|
-
- [MCP Tool Reference](./mcp-reference.md) — Complete guide to all
|
|
45
|
+
- [MCP Tool Reference](./mcp-reference.md) — Complete guide to all MCP tools.
|
|
45
46
|
- [Security & Redaction](./security-privacy.md) — Privacy architecture and `@visulima/redact` integration.
|
|
46
47
|
- [CLI Reference](./cli.md) — Command-line interface usage.
|
package/docs/mcp-reference.md
CHANGED
|
@@ -65,13 +65,26 @@ Lists visual annotations left on elements, regions, or pages during development.
|
|
|
65
65
|
- **Arguments**:
|
|
66
66
|
- `status` (`string`): `OPEN`, `IN_PROGRESS`, `VERIFYING`, `RESOLVED`, `FAILED`, `INCONCLUSIVE` (default: `OPEN`).
|
|
67
67
|
- `projectId` (`string`): Filter by project ID or name.
|
|
68
|
+
- `scenarioId` (`string`): Filter notes by scenario / flow ID.
|
|
68
69
|
- `limit` (`number`): Max notes (default: 20).
|
|
69
70
|
|
|
71
|
+
### `list_scenarios`
|
|
72
|
+
Lists multi-step user reproduction scenarios and sequential interaction flows.
|
|
73
|
+
- **Arguments**:
|
|
74
|
+
- `projectId` (`string`): Filter scenarios by project ID or name.
|
|
75
|
+
- `status` (`string`): Filter by `OPEN` or `RESOLVED`.
|
|
76
|
+
- `limit` (`number`): Max scenarios (default: 20).
|
|
77
|
+
|
|
78
|
+
### `get_scenario`
|
|
79
|
+
Retrieves full chronological step-by-step reproduction flow with selectors, route, screenshots, and action details.
|
|
80
|
+
- **Arguments**:
|
|
81
|
+
- `scenarioId` (`string`, *required*): The unique ID of the scenario / flow (e.g. `scen_checkout_123`).
|
|
82
|
+
|
|
70
83
|
### `get_note`
|
|
71
84
|
Retrieves full debugging context for a visual note.
|
|
72
85
|
- **Arguments**:
|
|
73
86
|
- `noteId` (`string`, *required*): The unique ID of the visual note (e.g. `note_30a89599`).
|
|
74
|
-
- **Returns**: Note message, route, viewport dimensions, target element selector, DOM context, screenshot file path.
|
|
87
|
+
- **Returns**: Note message, route, viewport dimensions, target element selector, DOM context, screenshot file path, scenario metadata.
|
|
75
88
|
|
|
76
89
|
### `capture_note_context`
|
|
77
90
|
Inspects live DOM context, bounding box, overflow, and computed styles for a target element.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Multi-Step Scenarios & Flows
|
|
3
|
+
description: Record sequential user flows, multi-step bug reproduction journeys, on-screen step pins, and MCP flow retrieval
|
|
4
|
+
order: 4
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Multi-Step Scenarios & Flows 🎬
|
|
8
|
+
|
|
9
|
+
BrowserTrack allows developers, testers, and designers to record sequential multi-step user reproduction scenarios (e.g., *"First I clicked this, then I entered this promo code, and here is where the price overflow occurred"*).
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## ⚡ Continuous Recording Workflow (Save & Next Step)
|
|
14
|
+
|
|
15
|
+
Instead of manually reopening tools for each step, BrowserTrack provides a continuous capture loop:
|
|
16
|
+
|
|
17
|
+
```mermaid
|
|
18
|
+
graph LR
|
|
19
|
+
A[🎬 Start Flow] -->|Click Element 1| B[Step 1 Modal]
|
|
20
|
+
B -->|➡️ Save & Next Step| C[Hover Element 2]
|
|
21
|
+
C -->|Click Element 2| D[Step 2 Modal]
|
|
22
|
+
D -->|➡️ Save & Next Step| E[Drag Region 3]
|
|
23
|
+
E -->|✓ Save & Finish Flow| F[Complete Multi-Step Scenario]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
1. **Start Recording**: Click **`🎬 Flow`** in the floating bottom-right dock (or click **`➡️ Save as Step 1 (Flow)`** from any note).
|
|
27
|
+
2. **Step Progression**:
|
|
28
|
+
- Hover and click the first target element (or drag a region).
|
|
29
|
+
- Enter your description/action.
|
|
30
|
+
- Click **`➡️ Save & Next Step`** (or press <kbd>⌘+Enter</kbd> / <kbd>Ctrl+Enter</kbd>).
|
|
31
|
+
- The step is saved instantly, the counter increments to Step 2, and the inspector automatically reactivates element inspection mode so you can immediately click the next element without touching the toolbar!
|
|
32
|
+
3. **Finish Recording**: On the final step, click **`✓ Save & Finish Flow`** or click the active **`🎬 Step N (Finish)`** button in the dock.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## 📌 Numbered Step Markers on Screen
|
|
37
|
+
|
|
38
|
+
When notes belong to a scenario:
|
|
39
|
+
- **Glowing Amber/Cyan Step Pins**: Displayed on target elements with **`🎬 Step 1`**, **`🎬 Step 2`**, **`🎬 Step 3`** badges.
|
|
40
|
+
- **Dynamic Anchoring**: Pins remain attached to elements during scrolling, viewport resizing, or SPA route transitions.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 🔍 Interactive Stepper Walk-Through
|
|
45
|
+
|
|
46
|
+
Clicking any step pin opens the Note & Scenario Card:
|
|
47
|
+
|
|
48
|
+
- **Header**: Shows the scenario title and current step (e.g. `🎬 Step 2 of 4: Checkout Promo Flow`).
|
|
49
|
+
- **Sequential Stepper Bar**:
|
|
50
|
+
- Click **`◀ Step 1`** to inspect the previous action.
|
|
51
|
+
- Click **`Step 3 ▶`** to advance to the next action.
|
|
52
|
+
- **Actions**:
|
|
53
|
+
- **`✅ Resolve Note`**: Mark individual steps as resolved.
|
|
54
|
+
- **`🗑️ Delete`**: Delete single step.
|
|
55
|
+
- **`🗑️ Delete Flow`**: Wipe the entire multi-step scenario from the database.
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## 🤖 AI Coding Agent MCP Integration
|
|
60
|
+
|
|
61
|
+
AI agents can retrieve the full step-by-step reproduction journey using MCP tools:
|
|
62
|
+
|
|
63
|
+
### 1. `list_scenarios`
|
|
64
|
+
Lists all recorded scenarios for a project with total step counts and statuses.
|
|
65
|
+
|
|
66
|
+
### 2. `get_scenario`
|
|
67
|
+
Retrieves all ordered steps in chronological sequence with selectors, bounding boxes, routes, and screenshots.
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
// Example agent query
|
|
71
|
+
const scenario = await client.callTool("get_scenario", {
|
|
72
|
+
scenarioId: "scen_checkout_123"
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
// Returns:
|
|
76
|
+
// {
|
|
77
|
+
// id: "scen_checkout_123",
|
|
78
|
+
// title: "Checkout Promo Flow",
|
|
79
|
+
// stepsCount: 3,
|
|
80
|
+
// steps: [
|
|
81
|
+
// { stepNumber: 1, type: "element", message: "Click Cart button", targetSelector: "#btn-cart", route: "/shop" },
|
|
82
|
+
// { stepNumber: 2, type: "element", message: "Enter coupon PROMO", targetSelector: "#input-coupon", route: "/cart" },
|
|
83
|
+
// { stepNumber: 3, type: "region", message: "Price overflow", route: "/cart", screenshot: "..." }
|
|
84
|
+
// ]
|
|
85
|
+
// }
|
|
86
|
+
```
|