(requiresApproval: boolean | undefined)
| 126 | }; |
| 127 | |
| 128 | const pluginDefaultPolicy = (requiresApproval: boolean | undefined): EffectivePolicy => |
| 129 | requiresApproval |
| 130 | ? { action: "require_approval", source: "plugin-default" } |
| 131 | : { action: "approve", source: "plugin-default" }; |
| 132 | |
| 133 | const isLegacyConnectionPolicy = (policy: ToolkitPolicyResponse): boolean => { |
| 134 | if (policy.action !== "approve") return false; |
no outgoing calls
no test coverage detected