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