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

Method updateGlobalState

src/core/config/ContextProxy.ts:363–370  ·  view source on GitHub ↗
(key: K, value: GlobalState[K])

Source from the content-addressed store, hash-verified

361 }
362
363 updateGlobalState<K extends GlobalStateKey>(key: K, value: GlobalState[K]) {
364 if (isPassThroughStateKey(key)) {
365 return this.originalContext.globalState.update(key, value)
366 }
367
368 this.stateCache[key] = value
369 return this.originalContext.globalState.update(key, value)
370 }
371
372 private getAllGlobalState(): GlobalState {
373 return Object.fromEntries(GLOBAL_STATE_KEYS.map((key) => [key, this.getGlobalState(key)]))

Callers 2

setValueMethod · 0.95

Calls 2

isPassThroughStateKeyFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected