main
John Lauer
Add corrected fan guard, lifted mount clearance study and reviewed process clip
51efa39
import fs from 'node:fs';
const {default:puppeteer}=await import('/home/adom/project/adom-video-brand/node_modules/puppeteer-core/lib/esm/puppeteer/puppeteer-core.js');
const b=await puppeteer.launch({executablePath:'/home/adom/.cache/ms-playwright/chromium-1243/chrome-linux64/chrome',headless:true,args:['--no-sandbox']});
try{const p=await b.newPage();await p.setViewport({width:1600,height:1000});await p.goto('https://wiki.adom.inc/adom/adom-custom-electronic-load/files/docs/build-clips.md',{waitUntil:'networkidle2'});await p.evaluate(()=>{window.clip=[...document.querySelectorAll('video')].find(v=>v.src.includes('fan-guard'));if(!clip)throw Error('Missing published clip');clip.scrollIntoView({block:'center'});clip.muted=true;clip.load();});await p.waitForFunction(()=>clip.readyState>=2);await p.evaluate(()=>clip.play());await p.waitForFunction(()=>clip.currentTime>1);const playback=await p.evaluate(()=>{clip.pause();return {duration:clip.duration,width:clip.videoWidth,height:clip.videoHeight,currentTime:clip.currentTime,src:clip.src}});await p.evaluate(()=>clip.scrollIntoView({block:'center'}));await new Promise(r=>setTimeout(r,400));await p.screenshot({path:'videos/fan-guard/wiki-review.png'});fs.writeFileSync('videos/fan-guard/published-review.json',JSON.stringify({method:'Isolated headless browser; no user tab opened',playback,storyboardClipPresent:false,narrationPending:true,humanApproval:'pending'},null,2)+'\n');}finally{await b.close();}