Files
ui/pkgs/replay/tsconfig.json
zeekayandHanzo Dev df43e182b8 feat(replay): @hanzo/replay — rrweb session recorder on the shared privacy policy
Records the DOM with rrweb and POSTs raw eventWithTime batches to
POST /v1/replay, attributed by a publishable pk- key.

Masking happens at capture time, in the browser, and reuses @hanzo/observe's
RedactionPolicy rather than defining a second one: isPrivate() for subtree
exclusion (selector plus node-level, so a custom privateAttribute is honored),
sensitiveKey() for field identity. Password and cc-* fields are blocked outright;
URLs on Meta/snapshot/mutation events go through @hanzo/event's redactSecrets;
the recorder refuses to run on /callback and /login/oauth/device and stops if the
app routes onto one.

Orthogonal to @hanzo/observe: semantic capture there, DOM movie here.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-05 11:11:14 -07:00

27 lines
729 B
JSON

{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": false,
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"esModuleInterop": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"allowJs": false,
"types": ["node"]
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.*", "**/*.spec.*"]
}