(input)
| 618 | }, |
| 619 | |
| 620 | toAutoClassifierInput(input) { |
| 621 | if (typeof input.message === 'string') { |
| 622 | return `to ${input.to}: ${input.message}` |
| 623 | } |
| 624 | switch (input.message.type) { |
| 625 | case 'shutdown_request': |
| 626 | return `shutdown_request to ${input.to}` |
| 627 | case 'shutdown_response': |
| 628 | return `shutdown_response ${input.message.approve ? 'approve' : 'reject'} ${input.message.request_id}` |
| 629 | case 'plan_approval_response': |
| 630 | return `plan_approval ${input.message.approve ? 'approve' : 'reject'} to ${input.to}` |
| 631 | } |
| 632 | }, |
| 633 | |
| 634 | async checkPermissions(input, _context) { |
| 635 | if (feature('UDS_INBOX') && parseAddress(input.to).scheme === 'bridge') { |
nothing calls this directly
no outgoing calls
no test coverage detected