MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAppState

Function getAppState

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

Source from the content-addressed store, hash-verified

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

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

Calls

no outgoing calls

Tested by

no test coverage detected