()
| 206 | // ============ Helper Functions ============ |
| 207 | |
| 208 | function getExecConfig(): ExecConfig { |
| 209 | const prefs = getPreferences(); |
| 210 | // Use gateway slots config for exec allow/deny patterns |
| 211 | const slotsExec = prefs.gateway?.slots?.exec; |
| 212 | if (slotsExec) { |
| 213 | return { |
| 214 | allow: slotsExec.allow, |
| 215 | deny: slotsExec.deny, |
| 216 | allowUnsafe: slotsExec.allowUnsafe, |
| 217 | defaultDir: prefs.exec?.defaultDir, |
| 218 | }; |
| 219 | } |
| 220 | return prefs.exec || {}; |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Parse a Bash pattern like "Bash(npm run *)" and extract the glob pattern |
no test coverage detected