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

Function getAppState

src/utils/plugins/loadPluginCommands.ts:382–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

380 {
381 ...context,
382 getAppState() {
383 const appState = context.getAppState()
384 return {
385 ...appState,
386 toolPermissionContext: {
387 ...appState.toolPermissionContext,
388 alwaysAllowRules: {
389 ...appState.toolPermissionContext.alwaysAllowRules,
390 command: allowedTools,
391 },
392 },
393 }
394 },
395 },
396 `/${commandName}`,
397 shell,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected