Files
zeekay 1b367e2b62 chore: rebase the tree onto upstream master
The tree was a debranded snapshot of upstream taken around 2026-02-20, and
upstream has moved about five months since. This replaces it with upstream
master, mechanically re-derived: bin/debrand does the rename, and the
pipeline and squashed migrations are restored from the shipped tree.

Not a merge. The previous import replaced the tree wholesale in a single
commit, so there is no shared content history to merge against. Reproducing
the rename on the new tree is what actually converges.

What survives: .hanzo/workflows, the Dockerfiles and bin/docker* entrypoints,
compose files, LLM.md, and insights/migrations. The squashed initial
migration is load-bearing — the live database records it by name, so
upstream's ~918 individual migrations cannot come back.

Nine products are dropped as unreferenced. Twenty-one more that we do not run
are kept anyway because the core app still imports them; unpicking those is a
refactor and does not belong in a rebase.

This base does not build yet, and the reasons are not in the rename:
upstream now wants Python 3.13.13 against our 3.12.12 and Django 5.2 against
our 4.2, and the dependency manifests still name upstream packages that we
republish under our own names. Those are decisions, not renames.
2026-08-01 15:44:40 -07:00

410 lines
8.8 KiB
Plaintext

// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`Session Recording Consumer Integration end-to-end message processing click and keypress events 1`] = `
{
"outcome": "written",
"sessionCount": 1,
"sessions": [
{
"blockUrlCount": 1,
"clickCount": 3,
"consoleErrorCount": 0,
"consoleLogCount": 0,
"consoleWarnCount": 0,
"eventCount": 6,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 2,
"mouseActivityCount": 3,
"urlCount": 1,
"windowIds": [
"window-1",
],
},
],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing console log events 1`] = `
{
"outcome": "written",
"sessionCount": 1,
"sessions": [
{
"blockUrlCount": 1,
"clickCount": 0,
"consoleErrorCount": 2,
"consoleLogCount": 2,
"consoleWarnCount": 1,
"eventCount": 6,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 6,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 6,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 6,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 6,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 6,
"windowId": "window-1",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 0,
"mouseActivityCount": 0,
"urlCount": 1,
"windowIds": [
"window-1",
],
},
],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing empty events array 1`] = `
{
"outcome": "dropped",
"sessionCount": 0,
"sessions": [],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing invalid team token 1`] = `
{
"outcome": "dropped",
"sessionCount": 0,
"sessions": [],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing multiple sessions in same batch 1`] = `
{
"outcome": "written",
"sessionCount": 2,
"sessions": [
{
"blockUrlCount": 1,
"clickCount": 0,
"consoleErrorCount": 0,
"consoleLogCount": 0,
"consoleWarnCount": 0,
"eventCount": 2,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 2,
"windowId": "window-1",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 0,
"mouseActivityCount": 0,
"urlCount": 1,
"windowIds": [
"window-1",
],
},
{
"blockUrlCount": 1,
"clickCount": 0,
"consoleErrorCount": 0,
"consoleLogCount": 0,
"consoleWarnCount": 0,
"eventCount": 2,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 2,
"windowId": "window-1",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 0,
"mouseActivityCount": 0,
"urlCount": 1,
"windowIds": [
"window-1",
],
},
],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing multiple windows in same session 1`] = `
{
"outcome": "written",
"sessionCount": 1,
"sessions": [
{
"blockUrlCount": 1,
"clickCount": 0,
"consoleErrorCount": 0,
"consoleLogCount": 0,
"consoleWarnCount": 0,
"eventCount": 2,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-main",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-popup",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 0,
"mouseActivityCount": 0,
"urlCount": 2,
"windowIds": [
"window-main",
"window-popup",
],
},
],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing out of order events 1`] = `
{
"outcome": "written",
"sessionCount": 1,
"sessions": [
{
"blockUrlCount": 1,
"clickCount": 0,
"consoleErrorCount": 0,
"consoleLogCount": 0,
"consoleWarnCount": 0,
"eventCount": 3,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 2,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 0,
"mouseActivityCount": 1,
"urlCount": 1,
"windowIds": [
"window-1",
],
},
],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing session continuity across batches 1`] = `
{
"outcome": "written",
"sessionCount": 1,
"sessions": [
{
"blockUrlCount": 1,
"clickCount": 0,
"consoleErrorCount": 0,
"consoleLogCount": 0,
"consoleWarnCount": 0,
"eventCount": 4,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 2,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 0,
"mouseActivityCount": 2,
"urlCount": 1,
"windowIds": [
"window-1",
],
},
],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing single session with multiple event types 1`] = `
{
"outcome": "written",
"sessionCount": 1,
"sessions": [
{
"blockUrlCount": 1,
"clickCount": 0,
"consoleErrorCount": 0,
"consoleLogCount": 0,
"consoleWarnCount": 0,
"eventCount": 3,
"events": [
{
"hasData": true,
"hasTimestamp": true,
"type": 4,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 2,
"windowId": "window-1",
},
{
"hasData": true,
"hasTimestamp": true,
"type": 3,
"windowId": "window-1",
},
],
"hasDistinctId": true,
"hasFirstUrl": true,
"hasSessionId": true,
"keypressCount": 0,
"mouseActivityCount": 1,
"urlCount": 1,
"windowIds": [
"window-1",
],
},
],
}
`;
exports[`Session Recording Consumer Integration end-to-end message processing token with DROP_EVENT restriction 1`] = `
{
"outcome": "dropped",
"sessionCount": 0,
"sessions": [],
}
`;