MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / updateGlobalState

Function updateGlobalState

src/core/webview/webviewMessageHandler.ts:111–112  ·  view source on GitHub ↗
(key: K, value: GlobalState[K])

Source from the content-addressed store, hash-verified

109 // Utility functions provided for concise get/update of global state via contextProxy API.
110 const getGlobalState = <K extends keyof GlobalState>(key: K) => provider.contextProxy.getValue(key)
111 const updateGlobalState = async <K extends keyof GlobalState>(key: K, value: GlobalState[K]) =>
112 await provider.contextProxy.setValue(key, value)
113
114 const getCurrentCwd = () => {
115 return provider.getCurrentTask()?.cwd || provider.cwd

Callers 1

webviewMessageHandlerFunction · 0.85

Calls 1

setValueMethod · 0.65

Tested by

no test coverage detected