browsertrack 0.0.1 → 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.
Files changed (101) hide show
  1. package/README.md +143 -0
  2. package/dist/chunk-6A7FFDIB.js +221 -0
  3. package/dist/chunk-6A7FFDIB.js.map +1 -0
  4. package/dist/chunk-ANMR5WBH.js +659 -0
  5. package/dist/chunk-ANMR5WBH.js.map +1 -0
  6. package/dist/chunk-BSKNG4V7.js +1199 -0
  7. package/dist/chunk-BSKNG4V7.js.map +1 -0
  8. package/dist/chunk-X7C5CHBO.js +2080 -0
  9. package/dist/chunk-X7C5CHBO.js.map +1 -0
  10. package/dist/chunk-ZLNGOOH2.js +554 -0
  11. package/dist/chunk-ZLNGOOH2.js.map +1 -0
  12. package/dist/cli/index.js +2829 -0
  13. package/dist/cli/index.js.map +1 -0
  14. package/dist/client/index.cjs +2218 -0
  15. package/dist/client/index.d.ts +197 -0
  16. package/dist/client/index.js +20 -0
  17. package/dist/client/index.js.map +1 -0
  18. package/dist/client.iife.js +309 -0
  19. package/dist/core/index.d.ts +78 -0
  20. package/dist/core/index.js +31 -0
  21. package/dist/core/index.js.map +1 -0
  22. package/dist/daemon/index.d.ts +58 -0
  23. package/dist/daemon/index.js +32 -0
  24. package/dist/daemon/index.js.map +1 -0
  25. package/dist/engine-DKloFjvs.d.ts +157 -0
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.js +50 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/mcp/index.d.ts +11 -0
  30. package/dist/mcp/index.js +12 -0
  31. package/dist/mcp/index.js.map +1 -0
  32. package/dist/notes-CBvN91Wf.d.ts +260 -0
  33. package/dist/projects-CY8ungMt.d.ts +99 -0
  34. package/dist/server-CN-se8td.d.ts +55 -0
  35. package/examples/test-app/index.html +299 -0
  36. package/package.json +52 -7
  37. package/packages/cli/src/index.ts +413 -0
  38. package/packages/client/package.json +28 -0
  39. package/packages/client/src/breadcrumbs.ts +30 -0
  40. package/packages/client/src/client.ts +278 -0
  41. package/packages/client/src/commands/handler.ts +301 -0
  42. package/packages/client/src/config.ts +37 -0
  43. package/packages/client/src/index.ts +50 -0
  44. package/packages/client/src/interceptors/console.ts +68 -0
  45. package/packages/client/src/interceptors/interaction.ts +119 -0
  46. package/packages/client/src/interceptors/navigation.ts +93 -0
  47. package/packages/client/src/interceptors/network.ts +165 -0
  48. package/packages/client/src/interceptors/runtime.ts +65 -0
  49. package/packages/client/src/notes/inspector.ts +943 -0
  50. package/packages/client/src/screenshot/browser-script-driver.ts +192 -0
  51. package/packages/client/src/screenshot/driver.ts +14 -0
  52. package/packages/client/src/transport/websocket.ts +179 -0
  53. package/packages/client/tsconfig.json +8 -0
  54. package/packages/core/dist/index.d.ts +317 -0
  55. package/packages/core/dist/index.js +221 -0
  56. package/packages/core/package.json +23 -0
  57. package/packages/core/src/fingerprint.ts +120 -0
  58. package/packages/core/src/index.ts +9 -0
  59. package/packages/core/src/redaction.ts +139 -0
  60. package/packages/core/src/selector.ts +77 -0
  61. package/packages/core/src/types/commands.ts +101 -0
  62. package/packages/core/src/types/events.ts +108 -0
  63. package/packages/core/src/types/incidents.ts +54 -0
  64. package/packages/core/src/types/notes.ts +106 -0
  65. package/packages/core/src/types/probes.ts +44 -0
  66. package/packages/core/src/types/projects.ts +20 -0
  67. package/packages/core/tsconfig.json +8 -0
  68. package/packages/daemon/src/config.ts +29 -0
  69. package/packages/daemon/src/incidents/engine.ts +211 -0
  70. package/packages/daemon/src/index.ts +18 -0
  71. package/packages/daemon/src/notes/engine.ts +92 -0
  72. package/packages/daemon/src/notes/verification.ts +191 -0
  73. package/packages/daemon/src/server/daemon.ts +112 -0
  74. package/packages/daemon/src/server/http.ts +165 -0
  75. package/packages/daemon/src/server/ws.ts +175 -0
  76. package/packages/daemon/src/session/manager.ts +126 -0
  77. package/packages/daemon/src/storage/db.ts +733 -0
  78. package/packages/daemon/src/storage/screenshot-store.ts +49 -0
  79. package/packages/daemon/src/verification/engine.ts +264 -0
  80. package/packages/mcp/src/handlers.ts +398 -0
  81. package/packages/mcp/src/index.ts +3 -0
  82. package/packages/mcp/src/server.ts +86 -0
  83. package/packages/mcp/src/tools.ts +236 -0
  84. package/src/index.ts +4 -0
  85. package/test/client/interceptors.test.ts +69 -0
  86. package/test/core/fingerprint.test.ts +53 -0
  87. package/test/core/notes.test.ts +66 -0
  88. package/test/core/redaction.test.ts +48 -0
  89. package/test/daemon/incident-engine.test.ts +98 -0
  90. package/test/daemon/notes-storage.test.ts +130 -0
  91. package/test/daemon/notes-verification.test.ts +135 -0
  92. package/test/daemon/storage.test.ts +123 -0
  93. package/test/daemon/verification-engine.test.ts +88 -0
  94. package/test/e2e/daemon-mcp-e2e.test.ts +153 -0
  95. package/test/e2e/visual-notes-e2e.test.ts +205 -0
  96. package/test/mcp/handlers.test.ts +116 -0
  97. package/test/mcp/notes.test.ts +107 -0
  98. package/tsconfig.base.json +17 -0
  99. package/tsconfig.json +26 -0
  100. package/tsup.config.ts +54 -0
  101. package/vitest.config.ts +9 -0
@@ -0,0 +1,78 @@
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, t as VisualNote } from '../notes-CBvN91Wf.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-CY8ungMt.js';
3
+
4
+ /**
5
+ * Error fingerprinting and normalization utilities
6
+ */
7
+ interface FingerprintInput {
8
+ type: string;
9
+ message: string;
10
+ sourceFile?: string;
11
+ line?: number;
12
+ column?: number;
13
+ stack?: string;
14
+ }
15
+ /**
16
+ * Normalizes error messages by stripping dynamic content like UUIDs, timestamps,
17
+ * hex addresses, and file timestamps.
18
+ */
19
+ declare function normalizeErrorMessage(message: string): string;
20
+ /**
21
+ * Normalizes source filenames by removing origin and cache-busting query strings.
22
+ */
23
+ declare function normalizeSourceFile(filename?: string): string;
24
+ /**
25
+ * Extracts source location from stack if not explicitly provided
26
+ */
27
+ declare function extractSourceFromStack(stack?: string): {
28
+ file: string;
29
+ line: number;
30
+ column?: number;
31
+ } | null;
32
+ /**
33
+ * Computes a deterministic fingerprint for an error
34
+ */
35
+ declare function computeFingerprint(input: FingerprintInput): string;
36
+
37
+ /**
38
+ * Security and Redaction Utilities
39
+ */
40
+ declare const SENSITIVE_KEY_PATTERNS: RegExp[];
41
+ declare const SENSITIVE_QUERY_PARAMS: string[];
42
+ declare const REDACTED_PLACEHOLDER = "[REDACTED]";
43
+ /**
44
+ * Checks if a property name matches any sensitive pattern
45
+ */
46
+ declare function isSensitiveKey(key: string): boolean;
47
+ /**
48
+ * Redacts sensitive query parameters from a URL string
49
+ */
50
+ declare function redactUrl(rawUrl: string): string;
51
+ /**
52
+ * Redacts sensitive HTTP headers
53
+ */
54
+ declare function redactHeaders(headers: Record<string, string>): Record<string, string>;
55
+ /**
56
+ * Deeply redacts sensitive keys from an object or array
57
+ */
58
+ declare function redactSensitiveData<T = any>(data: T, maxDepth?: number, currentDepth?: number): T;
59
+
60
+ /**
61
+ * Semantic element selector generation and inspection
62
+ */
63
+ interface SelectorOptions {
64
+ maxClasses?: number;
65
+ maxOuterHTMLLength?: number;
66
+ maxInnerTextLength?: number;
67
+ }
68
+ /**
69
+ * Builds a clean, human-readable semantic selector for a DOM element.
70
+ * Prioritizes data-testid/data-test, id, semantic tag + specific class, or concise parent path.
71
+ */
72
+ declare function getSemanticSelector(element: HTMLElement | Element, options?: SelectorOptions): string;
73
+ /**
74
+ * Truncates string to specified max length with ellipsis
75
+ */
76
+ declare function truncate(str: string | undefined | null, maxLength?: number): string;
77
+
78
+ export { type FingerprintInput, REDACTED_PLACEHOLDER, SENSITIVE_KEY_PATTERNS, SENSITIVE_QUERY_PARAMS, type SelectorOptions, computeFingerprint, extractSourceFromStack, getSemanticSelector, isSensitiveKey, normalizeErrorMessage, normalizeSourceFile, redactHeaders, redactSensitiveData, redactUrl, truncate };
@@ -0,0 +1,31 @@
1
+ import {
2
+ REDACTED_PLACEHOLDER,
3
+ SENSITIVE_KEY_PATTERNS,
4
+ SENSITIVE_QUERY_PARAMS,
5
+ computeFingerprint,
6
+ extractSourceFromStack,
7
+ getSemanticSelector,
8
+ isSensitiveKey,
9
+ normalizeErrorMessage,
10
+ normalizeSourceFile,
11
+ redactHeaders,
12
+ redactSensitiveData,
13
+ redactUrl,
14
+ truncate
15
+ } from "../chunk-6A7FFDIB.js";
16
+ export {
17
+ REDACTED_PLACEHOLDER,
18
+ SENSITIVE_KEY_PATTERNS,
19
+ SENSITIVE_QUERY_PARAMS,
20
+ computeFingerprint,
21
+ extractSourceFromStack,
22
+ getSemanticSelector,
23
+ isSensitiveKey,
24
+ normalizeErrorMessage,
25
+ normalizeSourceFile,
26
+ redactHeaders,
27
+ redactSensitiveData,
28
+ redactUrl,
29
+ truncate
30
+ };
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,58 @@
1
+ import { S as StorageDB, b as ScreenshotStore, a as SessionManager, c as NotesEngine, V as VerificationEngine, N as NoteVerificationEngine } from '../engine-DKloFjvs.js';
2
+ import { c as ClientEventMessage } from '../notes-CBvN91Wf.js';
3
+ import { I as Incident } from '../projects-CY8ungMt.js';
4
+ import http from 'node:http';
5
+ import { WebSocketServer } from 'ws';
6
+
7
+ interface DaemonConfig {
8
+ host: string;
9
+ port: number;
10
+ dataDir: string;
11
+ dbPath: string;
12
+ screenshotsDir: string;
13
+ maxEventsPerSession: number;
14
+ verbose: boolean;
15
+ }
16
+ declare function getDaemonConfig(overrides?: Partial<DaemonConfig>): DaemonConfig;
17
+
18
+ declare class IncidentEngine {
19
+ private db;
20
+ private screenshotStore;
21
+ constructor(db: StorageDB, screenshotStore: ScreenshotStore);
22
+ processClientEvent(message: ClientEventMessage & {
23
+ screenshot?: string;
24
+ }): Incident | null;
25
+ private handleErrorEvent;
26
+ }
27
+
28
+ declare function createHttpHandler(db: StorageDB, sessionManager: SessionManager, baseScreenshotsDir: string): (req: http.IncomingMessage, res: http.ServerResponse) => void;
29
+
30
+ declare function setupWebSocketServer(wss: WebSocketServer, db: StorageDB, sessionManager: SessionManager, incidentEngine: IncidentEngine, notesEngine?: NotesEngine, maxEventsPerSession?: number, verbose?: boolean): void;
31
+
32
+ declare class BrowserTrackDaemon {
33
+ config: DaemonConfig;
34
+ db: StorageDB;
35
+ screenshotStore: ScreenshotStore;
36
+ sessionManager: SessionManager;
37
+ incidentEngine: IncidentEngine;
38
+ notesEngine: NotesEngine;
39
+ verificationEngine: VerificationEngine;
40
+ noteVerificationEngine: NoteVerificationEngine;
41
+ private httpServer;
42
+ private wss;
43
+ private isRunning;
44
+ constructor(config?: Partial<DaemonConfig>);
45
+ start(): Promise<void>;
46
+ stop(): Promise<void>;
47
+ getStatus(): {
48
+ isRunning: boolean;
49
+ host: string;
50
+ port: number;
51
+ activeSessions: number;
52
+ dbPath: string;
53
+ };
54
+ }
55
+
56
+ declare function createDaemon(config?: Partial<DaemonConfig>): BrowserTrackDaemon;
57
+
58
+ export { BrowserTrackDaemon, type DaemonConfig, IncidentEngine, NoteVerificationEngine, NotesEngine, ScreenshotStore, SessionManager, StorageDB, VerificationEngine, createDaemon, createHttpHandler, getDaemonConfig, setupWebSocketServer };
@@ -0,0 +1,32 @@
1
+ import {
2
+ BrowserTrackDaemon,
3
+ IncidentEngine,
4
+ createDaemon,
5
+ createHttpHandler,
6
+ setupWebSocketServer
7
+ } from "../chunk-ZLNGOOH2.js";
8
+ import "../chunk-6A7FFDIB.js";
9
+ import {
10
+ NoteVerificationEngine,
11
+ NotesEngine,
12
+ ScreenshotStore,
13
+ SessionManager,
14
+ StorageDB,
15
+ VerificationEngine,
16
+ getDaemonConfig
17
+ } from "../chunk-BSKNG4V7.js";
18
+ export {
19
+ BrowserTrackDaemon,
20
+ IncidentEngine,
21
+ NoteVerificationEngine,
22
+ NotesEngine,
23
+ ScreenshotStore,
24
+ SessionManager,
25
+ StorageDB,
26
+ VerificationEngine,
27
+ createDaemon,
28
+ createHttpHandler,
29
+ getDaemonConfig,
30
+ setupWebSocketServer
31
+ };
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,157 @@
1
+ import { B as Breadcrumb, i as ElementSummary, t as VisualNote, m as NoteStatus, p as NoteVerificationResult, d as CommandResponse, b as ClientCommand } from './notes-CBvN91Wf.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-CY8ungMt.js';
3
+ import { WebSocket } from 'ws';
4
+
5
+ declare class StorageDB {
6
+ private db;
7
+ constructor(dbPath: string);
8
+ private initTables;
9
+ upsertProject(project: {
10
+ id: string;
11
+ name: string;
12
+ origin: string;
13
+ path?: string;
14
+ }): Project;
15
+ getProject(idOrName: string): Project | null;
16
+ getProjectByOrigin(origin: string): Project | null;
17
+ listProjects(): Project[];
18
+ upsertSession(session: Session): void;
19
+ getSession(id: string): Session | null;
20
+ listSessions(projectId?: string, activeOnly?: boolean): Session[];
21
+ deactivateSession(id: string): void;
22
+ insertEvent(event: {
23
+ id: string;
24
+ sessionId: string;
25
+ eventType: string;
26
+ payload: any;
27
+ timestamp: number;
28
+ route?: string;
29
+ url?: string;
30
+ }): void;
31
+ pruneSessionEvents(sessionId: string, maxEvents?: number): void;
32
+ getEvents(options: {
33
+ sessionId?: string;
34
+ eventType?: string;
35
+ limit?: number;
36
+ }): any[];
37
+ findIncidentByFingerprint(fingerprint: string): Incident | null;
38
+ getIncident(id: string): Incident | null;
39
+ listIncidents(options?: {
40
+ projectId?: string;
41
+ status?: IncidentStatus;
42
+ severity?: IncidentSeverity;
43
+ limit?: number;
44
+ }): Incident[];
45
+ insertIncident(incident: Incident): void;
46
+ updateIncidentOccurrence(incidentId: string, update: {
47
+ sessionId: string;
48
+ lastSeen: string;
49
+ occurrences: number;
50
+ route: string;
51
+ breadcrumbs: Breadcrumb[];
52
+ lastElement?: ElementSummary;
53
+ stack?: string;
54
+ }): void;
55
+ updateIncidentStatus(id: string, status: IncidentStatus): void;
56
+ insertIncidentOccurrence(occurrence: IncidentOccurrence): void;
57
+ insertVerification(v: {
58
+ id: string;
59
+ incidentId: string;
60
+ status: IncidentStatus;
61
+ checks: any[];
62
+ beforeScreenshot?: string;
63
+ afterScreenshot?: string;
64
+ message?: string;
65
+ createdAt: string;
66
+ }): void;
67
+ getLatestVerification(incidentId: string): VerificationResult | null;
68
+ insertNote(note: VisualNote): void;
69
+ getNote(id: string): VisualNote | null;
70
+ listNotes(options?: {
71
+ projectId?: string;
72
+ status?: NoteStatus;
73
+ limit?: number;
74
+ }): VisualNote[];
75
+ updateNoteStatus(id: string, status: NoteStatus): void;
76
+ updateNote(id: string, updates: Partial<VisualNote>): void;
77
+ insertNoteVerification(v: NoteVerificationResult): void;
78
+ getLatestNoteVerification(noteId: string): NoteVerificationResult | null;
79
+ clearAll(): void;
80
+ private mapIncidentRow;
81
+ private mapNoteRow;
82
+ close(): void;
83
+ }
84
+
85
+ declare class ScreenshotStore {
86
+ private baseDir;
87
+ constructor(baseDir: string);
88
+ saveScreenshot(projectId: string, incidentId: string, name: string, dataUrl: string): {
89
+ filePath: string;
90
+ format: string;
91
+ } | null;
92
+ getScreenshotPath(projectId: string, incidentId: string, name: string): string | null;
93
+ }
94
+
95
+ declare class SessionManager {
96
+ private activeSockets;
97
+ private db;
98
+ constructor(db: StorageDB);
99
+ registerSocket(sessionId: string, ws: WebSocket, origin: string, projectId: string): void;
100
+ unregisterSocket(sessionId: string): void;
101
+ handleCommandResponse(sessionId: string, response: CommandResponse): void;
102
+ sendCommand<T = any>(sessionId: string, command: ClientCommand<T>, timeoutMs?: number): Promise<CommandResponse>;
103
+ getActiveSessionForProject(projectId: string): Session | null;
104
+ getAnyActiveSession(): Session | null;
105
+ getActiveCount(): number;
106
+ }
107
+
108
+ declare class NotesEngine {
109
+ private db;
110
+ private screenshotStore;
111
+ constructor(db: StorageDB, screenshotStore: ScreenshotStore);
112
+ createNoteFromClient(payload: {
113
+ sessionId: string;
114
+ noteType?: 'element' | 'region' | 'page';
115
+ message: string;
116
+ route?: string;
117
+ url?: string;
118
+ viewport?: {
119
+ width: number;
120
+ height: number;
121
+ devicePixelRatio: number;
122
+ };
123
+ scroll?: {
124
+ scrollX: number;
125
+ scrollY: number;
126
+ };
127
+ target?: any;
128
+ elementContext?: any;
129
+ region?: any;
130
+ screenshot?: string;
131
+ incidentId?: string;
132
+ }): VisualNote;
133
+ saveNoteScreenshot(projectId: string, noteId: string, name: string, dataUrl: string): string | null;
134
+ }
135
+
136
+ declare class NoteVerificationEngine {
137
+ private db;
138
+ private sessionManager;
139
+ private notesEngine;
140
+ constructor(db: StorageDB, sessionManager: SessionManager, notesEngine: NotesEngine);
141
+ verifyNote(noteId: string, options?: {
142
+ observationWindowMs?: number;
143
+ }): Promise<NoteVerificationResult>;
144
+ private recordNoteVerification;
145
+ }
146
+
147
+ declare class VerificationEngine {
148
+ private db;
149
+ private sessionManager;
150
+ private screenshotStore;
151
+ constructor(db: StorageDB, sessionManager: SessionManager, screenshotStore: ScreenshotStore);
152
+ verifyIncident(incidentId: string, recipe?: VerificationRecipe): Promise<VerificationResult>;
153
+ private evaluateProbe;
154
+ private recordVerification;
155
+ }
156
+
157
+ export { NoteVerificationEngine as N, StorageDB as S, VerificationEngine as V, SessionManager as a, ScreenshotStore as b, NotesEngine as c };
@@ -0,0 +1,10 @@
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, t as VisualNote } from './notes-CBvN91Wf.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-CY8ungMt.js';
3
+ export { 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
+ export { BrowserTrackClient, getClient, init as initClient } from './client/index.js';
5
+ export { BrowserTrackDaemon, createDaemon } from './daemon/index.js';
6
+ export { c as createMcpServer } from './server-CN-se8td.js';
7
+ import './engine-DKloFjvs.js';
8
+ import 'ws';
9
+ import 'node:http';
10
+ import '@modelcontextprotocol/sdk/server/index.js';
package/dist/index.js ADDED
@@ -0,0 +1,50 @@
1
+ import {
2
+ BrowserTrackClient,
3
+ getClient,
4
+ init
5
+ } from "./chunk-X7C5CHBO.js";
6
+ import {
7
+ BrowserTrackDaemon,
8
+ createDaemon
9
+ } from "./chunk-ZLNGOOH2.js";
10
+ import {
11
+ REDACTED_PLACEHOLDER,
12
+ SENSITIVE_KEY_PATTERNS,
13
+ SENSITIVE_QUERY_PARAMS,
14
+ computeFingerprint,
15
+ extractSourceFromStack,
16
+ getSemanticSelector,
17
+ isSensitiveKey,
18
+ normalizeErrorMessage,
19
+ normalizeSourceFile,
20
+ redactHeaders,
21
+ redactSensitiveData,
22
+ redactUrl,
23
+ truncate
24
+ } from "./chunk-6A7FFDIB.js";
25
+ import {
26
+ createMcpServer
27
+ } from "./chunk-ANMR5WBH.js";
28
+ import "./chunk-BSKNG4V7.js";
29
+ export {
30
+ BrowserTrackClient,
31
+ BrowserTrackDaemon,
32
+ REDACTED_PLACEHOLDER,
33
+ SENSITIVE_KEY_PATTERNS,
34
+ SENSITIVE_QUERY_PARAMS,
35
+ computeFingerprint,
36
+ createDaemon,
37
+ createMcpServer,
38
+ extractSourceFromStack,
39
+ getClient,
40
+ getSemanticSelector,
41
+ init as initClient,
42
+ isSensitiveKey,
43
+ normalizeErrorMessage,
44
+ normalizeSourceFile,
45
+ redactHeaders,
46
+ redactSensitiveData,
47
+ redactUrl,
48
+ truncate
49
+ };
50
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,11 @@
1
+ import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
+ export { M as McpContext, a as McpServerOptions, c as createMcpServer, h as handleToolCall } from '../server-CN-se8td.js';
3
+ import '@modelcontextprotocol/sdk/server/index.js';
4
+ import '../engine-DKloFjvs.js';
5
+ import '../notes-CBvN91Wf.js';
6
+ import '../projects-CY8ungMt.js';
7
+ import 'ws';
8
+
9
+ declare const TOOLS: Tool[];
10
+
11
+ export { TOOLS };
@@ -0,0 +1,12 @@
1
+ import {
2
+ TOOLS,
3
+ createMcpServer,
4
+ handleToolCall
5
+ } from "../chunk-ANMR5WBH.js";
6
+ import "../chunk-BSKNG4V7.js";
7
+ export {
8
+ TOOLS,
9
+ createMcpServer,
10
+ handleToolCall
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}