chore(lint): burn down remaining warnings to zero
This commit is contained in:
+6
-4
@@ -288,11 +288,13 @@ export class ToolPolicy {
|
||||
*/
|
||||
getEffectiveProfile(context?: ToolPolicyContext): ToolProfile {
|
||||
// Check agent override first, then provider, then global
|
||||
if (context?.agent && this.config.agents[context.agent]?.profile) {
|
||||
return this.config.agents[context.agent].profile!;
|
||||
const agentProfile = context?.agent ? this.config.agents[context.agent]?.profile : undefined;
|
||||
if (agentProfile) {
|
||||
return agentProfile;
|
||||
}
|
||||
if (context?.provider && this.config.providers[context.provider]?.profile) {
|
||||
return this.config.providers[context.provider].profile!;
|
||||
const providerProfile = context?.provider ? this.config.providers[context.provider]?.profile : undefined;
|
||||
if (providerProfile) {
|
||||
return providerProfile;
|
||||
}
|
||||
return this.config.profile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user