()
| 284 | * @returns true if hook should be skipped, false if it should execute |
| 285 | */ |
| 286 | export function shouldSkipHookDueToTrust(): boolean { |
| 287 | // In non-interactive mode (SDK), trust is implicit - always execute |
| 288 | const isInteractive = !getIsNonInteractiveSession() |
| 289 | if (!isInteractive) { |
| 290 | return false |
| 291 | } |
| 292 | |
| 293 | // In interactive mode, ALL hooks require trust |
| 294 | const hasTrust = checkHasTrustDialogAccepted() |
| 295 | return !hasTrust |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Creates the base hook input that's common to all hook types |
no test coverage detected