()
| 782 | modifiedContext = { |
| 783 | ...modifiedContext, |
| 784 | getAppState() { |
| 785 | // Use the previous getAppState, not the closure's context.getAppState, |
| 786 | // to properly chain context modifications |
| 787 | const appState = previousGetAppState() |
| 788 | return { |
| 789 | ...appState, |
| 790 | toolPermissionContext: { |
| 791 | ...appState.toolPermissionContext, |
| 792 | alwaysAllowRules: { |
| 793 | ...appState.toolPermissionContext.alwaysAllowRules, |
| 794 | command: [ |
| 795 | ...new Set([ |
| 796 | ...(appState.toolPermissionContext.alwaysAllowRules |
| 797 | .command || []), |
| 798 | ...allowedTools, |
| 799 | ]), |
| 800 | ], |
| 801 | }, |
| 802 | }, |
| 803 | } |
| 804 | }, |
| 805 | } |
| 806 | } |
| 807 |
no outgoing calls
no test coverage detected