Milestone v1 (v2.0.0): Mokosh — Session Capture #1

Merged
strategy155 merged 297 commits from gsd/phase-04-harden-clean-up-optional into main 2026-05-31 15:34:17 +00:00
Showing only changes of commit 6286957f53 - Show all commits

View File

@@ -361,11 +361,17 @@ async function createArchive(
logger.log('✓ Added screenshot');
// Добавляем метаданные
// IN-01 fix: read version from manifest at runtime instead of the
// hardcoded '1.0.0'. Previously the metadata would silently lie about
// the running version once manifest.json bumps to 1.0.1+. The Chrome
// runtime API is always available in the SW context, so no fallback
// is needed.
const manifest = chrome.runtime.getManifest();
const metadata: SessionMetadata = {
timestamp: new Date().toISOString(),
url: new URL(chrome.runtime.getURL('')).origin,
userAgent: navigator.userAgent,
extensionVersion: '1.0.0',
extensionVersion: manifest.version,
videoBufferSeconds: 30,
logDurationMinutes: 10,
totalEvents: rrwebEvents.length + userEvents.length