(context: ValidationContext)
| 231 | } |
| 232 | |
| 233 | function validateEmpty(context: ValidationContext): PermissionResult { |
| 234 | if (!context.originalCommand.trim()) { |
| 235 | return { |
| 236 | behavior: 'allow', |
| 237 | updatedInput: { command: context.originalCommand }, |
| 238 | decisionReason: { type: 'other', reason: 'Empty command is safe' }, |
| 239 | } |
| 240 | } |
| 241 | return { behavior: 'passthrough', message: 'Command is not empty' } |
| 242 | } |
| 243 | |
| 244 | function validateIncompleteCommands( |
| 245 | context: ValidationContext, |
nothing calls this directly
no outgoing calls
no test coverage detected