(content)
| 44 | } |
| 45 | |
| 46 | function writeToolsConfig(content) { |
| 47 | try { |
| 48 | fs.writeFileSync(TOOLS_CONFIG_PATH, content, "utf8"); |
| 49 | console.log("✅ Tools config updated successfully"); |
| 50 | } catch (error) { |
| 51 | console.error("Error writing tools config:", error.message); |
| 52 | process.exit(1); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | function findToolInConfig(content, toolName) { |
| 57 | // Find the tool by name in the config |