const fs = require('fs') const p = 'C:/Users/ASUS/Documents/deepseek-harness/default-workspace/desktop-pet/src/renderer/src/panel/Panel.tsx' let c = fs.readFileSync(p, 'utf8') function rep(from, to) { if (!c.includes(from)) { console.log('MISS:', from.slice(0, 60).replace(/\n/g, '\\n')) return } c = c.replace(from, to) } // 1. imports rep( " statusText,\n tickRates,", " statusText,\n tickRates,\n rewardMultiplier," ) // 2. initial tab / detail from query rep( " const [tab, setTab] = useState(() => ((new URLSearchParams(location.search).get('tab') as TabId) || 'panel'))", " const initial = new URLSearchParams(location.search)\n const initialTab = initial.get('tab') || 'panel'\n const initialArg = initial.get('arg') || ''\n const [tab, setTab] = useState(() =>\n initialTab === 'detail' ? 'panel' : ((initialTab as TabId) || 'panel')\n )\n const [detail, setDetail] = useState(initialTab === 'detail')" ) // 3. interact: sleep button rep( ` `, ` ` ) // 4. job rows show multiplier rep( ` {j.minutes} 分钟 · ◆{j.coin} · 经验 {j.exp} `, ` {j.minutes} 分钟 · ◆{Math.round(j.coin * mult)} · 经验 {Math.round(j.exp * mult)} ` ) rep( ` {j.minutes} 分钟 · 经验 {j.exp} · 电子 −{j.electron}`, ` {j.minutes} 分钟 · 经验 {Math.round(j.exp * mult)} · 电子 −{j.electron}` ) // 5. multiplier variable after level rep( " const exp = expProgress(state.exp)", " const exp = expProgress(state.exp)\n const mult = rewardMultiplier(exp.level)" ) // 6. scale slider max rep( ` min={0.7} max={1.5} step={0.05}`, ` min={0.7} max={3} step={0.05}` ) // 7. detail block inside panel tab rep( `
`, `
` ) // 8. settings: theme toggle + accent after scale field rep( `