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

Function createContext

src/utils/processUserInput/processBashCommand.test.ts:12–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10let originalBashCall: BashCall
11
12function createContext() {
13 return {
14 abortController: new AbortController(),
15 readFileState: {} as never,
16 getAppState: () => ({
17 toolPermissionContext: getEmptyToolPermissionContext(),
18 }),
19 setAppState: () => {},
20 options: {
21 verbose: false,
22 },
23 setMessages: () => {},
24 onChangeAPIKey: () => {},
25 } as never
26}
27
28beforeEach(() => {
29 originalBashCall = BashTool.call

Callers 1

Calls 1

Tested by

no test coverage detected