(agent ConfigurableAgent)
| 96 | } |
| 97 | |
| 98 | func configureAgent(agent ConfigurableAgent) error { |
| 99 | fmt.Printf("Configuring %s...\n", agent.name()) |
| 100 | |
| 101 | // Save MCP config |
| 102 | err := agent.editMcpConfig() |
| 103 | if err != nil { |
| 104 | return err |
| 105 | } |
| 106 | fmt.Printf("✓ Configured %s MCP configuration\n", agent.name()) |
| 107 | |
| 108 | // Save rules |
| 109 | err = agent.editRules() |
| 110 | if err != nil { |
| 111 | return err |
| 112 | } |
| 113 | fmt.Printf("✓ Saved %s container-use rules\n", agent.name()) |
| 114 | |
| 115 | fmt.Printf("\n%s configuration complete!\n", agent.name()) |
| 116 | return nil |
| 117 | } |
| 118 | |
| 119 | // Helper functions |
| 120 | func saveRulesFile(rulesFile, content string) error { |
no test coverage detected