(agent: Agent.Info)
| 131 | } |
| 132 | |
| 133 | export async function enabled(agent: Agent.Info): Promise<Record<string, boolean>> { |
| 134 | const result: Record<string, boolean> = {} |
| 135 | |
| 136 | if (agent.permission.edit === "deny") { |
| 137 | result["edit"] = false |
| 138 | result["write"] = false |
| 139 | } |
| 140 | if (agent.permission.bash["*"] === "deny" && Object.keys(agent.permission.bash).length === 1) { |
| 141 | result["bash"] = false |
| 142 | } |
| 143 | if (agent.permission.webfetch === "deny") { |
| 144 | result["webfetch"] = false |
| 145 | result["codesearch"] = false |
| 146 | result["websearch"] = false |
| 147 | } |
| 148 | |
| 149 | return result |
| 150 | } |
| 151 | } |
nothing calls this directly
no outgoing calls
no test coverage detected