const fs = require('fs'); let content = fs.readFileSync('/home/node/.openclaw/workspace/projects/dev-intel-v2/sysdoc.js', 'utf8'); const oldStr = ` // Name-to-file lookup for agent navigation helmIndexContent += '## Quick Lookup (by chart name)\\n\\n';`; const newStr = ` helmIndexContent += '## Helm Sync Waves (Bootstrapping Order)\\n\\n| Wave | Count | Resources |\\n|---|---|---|\\n'; helmIndexContent += patterns.syncWaves.map(w => \`| \${w.wave} | \${w.resources.length} | \${w.resources.slice(0, 5).map(r => \\\`\\\${r.kind}:\\\${r.name}\\\`).join(', ')}\${w.resources.length > 5 ? '...' : ''} |\`).join('\\n') + '\\n\\n'; // Name-to-file lookup for agent navigation helmIndexContent += '## Quick Lookup (by chart name)\\n\\n';`; content = content.replace(oldStr, newStr); fs.writeFileSync('/home/node/.openclaw/workspace/projects/dev-intel-v2/sysdoc.js', content);