(agent?: Agent.Info)
| 26 | } |
| 27 | |
| 28 | function hasTaskTool(agent?: Agent.Info) { |
| 29 | if (!agent?.permission) return false |
| 30 | return evaluate("task", "*", agent.permission).action !== "deny" |
| 31 | } |
| 32 | |
| 33 | export interface Interface { |
| 34 | readonly cleanup: () => Effect.Effect<void> |