(msg, options = {})
| 634 | |
| 635 | return { |
| 636 | ...summary, |
| 637 | threads: [...summary.threads], |
| 638 | turns: [...summary.turns], |
| 639 | usefulForDashboard: summary.messageCount > 0 && (summary.threads.size > 0 || Object.keys(summary.methods).length > 0), |
| 640 | }; |
| 641 | } |
| 642 | |
| 643 | function isAppServerApprovalRequest(msg) { |
| 644 | return Boolean( |
| 645 | msg |
| 646 | && msg.id !== undefined |
| 647 | && ( |
| 648 | msg.method === 'item/commandExecution/requestApproval' |
| 649 | || msg.method === 'item/fileChange/requestApproval' |
| 650 | ), |
| 651 | ); |
| 652 | } |
no test coverage detected