MCPcopy
hub / github.com/codeaashu/claude-code / getAppState

Function getAppState

src/tools/SkillTool/SkillTool.ts:784–804  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 15

callFunction · 0.50
callFunction · 0.50
getPendingServerNamesFunction · 0.50
waitForTaskCompletionFunction · 0.50
validateInputFunction · 0.50
handleSpawnSplitPaneFunction · 0.50
handleSpawnInProcessFunction · 0.50
callFunction · 0.50
validateInputFunction · 0.50
callFunction · 0.50
callFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected