(req dto.AgentIDReq)
| 1279 | } |
| 1280 | |
| 1281 | func (a AgentService) GetSecurityConfig(req dto.AgentIDReq) (*dto.AgentSecurityConfig, error) { |
| 1282 | agent, _, err := a.loadOpenclawAgentAndInstall(req.AgentID) |
| 1283 | if err != nil { |
| 1284 | return nil, err |
| 1285 | } |
| 1286 | conf, err := readOpenclawConfig(agent.ConfigPath) |
| 1287 | if err != nil { |
| 1288 | return nil, err |
| 1289 | } |
| 1290 | result := extractSecurityConfig(conf) |
| 1291 | return &result, nil |
| 1292 | } |
| 1293 | |
| 1294 | func (a AgentService) UpdateSecurityConfig(req dto.AgentSecurityConfigUpdateReq) error { |
| 1295 | agent, install, err := a.loadOpenclawAgentAndInstall(req.AgentID) |
nothing calls this directly
no test coverage detected