MCPcopy
hub / github.com/claude-code-best/claude-code / setAppState

Function setAppState

src/workflow/__tests__/ports.test.ts:58–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 // real setAppState: use a local AppState object to hold tasks, registerTask goes through the real code path.
57 const state = { tasks: {} } as unknown as AppState
58 const setAppState: SetAppState = f => {
59 Object.assign(state, f(state))
60 }
61
62 const hostCtx = ports.hostFactory({
63 context: {

Callers 15

callFunction · 0.50
callFunction · 0.50
callFunction · 0.50
submitMessageMethod · 0.50
StatusLineInnerFunction · 0.50
handleSelectFunction · 0.50
BridgeDialogFunction · 0.50
ThemePickerFunction · 0.50
handleRejectFunction · 0.50
PermissionPromptFunction · 0.50
autoNameSessionFromPlanFunction · 0.50

Calls 1

fFunction · 0.85

Tested by

no test coverage detected