const fs = require('fs'); const path = require('path'); const BUILD_TIMESTAMP = Date.now(); const ASSET_VERSION = "v=" + BUILD_TIMESTAMP; console.log('[CACHE-BUSTING] Build timestamp:', BUILD_TIMESTAMP); console.log('[CACHE-BUSTING] Scanning for HTML files...'); const htmlFiles = [ '/home/uroma/obsidian-web-interface/public/index.html', '/home/uroma/obsidian-web-interface/public/claude-ide/index.html', '/home/uroma/obsidian-web-interface/public/claude-landing.html', '/home/uroma/obsidian-web-interface/public/projects.html' ]; let updatedCount = 0; htmlFiles.forEach(filePath => { if (!fs.existsSync(filePath)) { console.log('[SKIP] File not found:', filePath); return; } try { let html = fs.readFileSync(filePath, 'utf8'); const originalLength = html.length; html = html.replace( //g, (match, quote, src) => { const separator = src.includes('?') ? '&' : '?'; const cacheBustedSrc = src + separator + ASSET_VERSION; return '