fix(terminal-security): add explicit type annotation for TypeScript
Add explicit ToolPolicy type annotation to mostRestrictivePolicy variable to fix TypeScript compilation error in CI. TypeScript was inferring a narrower type that didn't include 'disabled', causing type mismatch errors. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <nate@continue.dev> Co-authored-by: Username <nate@continue.dev>
This commit is contained in:
parent
bbb72d13b8
commit
3e66f6ebb1
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ export function evaluateTerminalCommandSecurity(
|
|||
|
||||
// If there are multiple lines, evaluate each separately
|
||||
if (commandLines.length > 1) {
|
||||
let mostRestrictivePolicy = basePolicy;
|
||||
let mostRestrictivePolicy: ToolPolicy = basePolicy;
|
||||
|
||||
for (const line of commandLines) {
|
||||
const trimmedLine = line.trim();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue