(input)
| 569 | }, |
| 570 | |
| 571 | toAutoClassifierInput(input) { |
| 572 | if (typeof input.message === 'string') { |
| 573 | return `to ${input.to}: ${input.message}` |
| 574 | } |
| 575 | switch (input.message.type) { |
| 576 | case 'shutdown_request': |
| 577 | return `shutdown_request to ${input.to}` |
| 578 | case 'shutdown_response': |
| 579 | return `shutdown_response ${input.message.approve ? 'approve' : 'reject'} ${input.message.request_id}` |
| 580 | case 'plan_approval_response': |
| 581 | return `plan_approval ${input.message.approve ? 'approve' : 'reject'} to ${input.to}` |
| 582 | } |
| 583 | }, |
| 584 | |
| 585 | async checkPermissions(input, _context) { |
| 586 | if (feature('UDS_INBOX') && parseAddress(input.to).scheme === 'bridge') { |
nothing calls this directly
no outgoing calls
no test coverage detected