MCPcopy
hub / github.com/openai/codex-plugin-cc / updateState

Function updateState

plugins/codex/scripts/lib/state.mjs:118–122  ·  view source on GitHub ↗
(cwd, mutate)

Source from the content-addressed store, hash-verified

116}
117
118export function updateState(cwd, mutate) {
119 const state = loadState(cwd);
120 mutate(state);
121 return saveState(cwd, state);
122}
123
124export function generateJobId(prefix = "job") {
125 const random = Math.random().toString(36).slice(2, 8);

Callers 2

upsertJobFunction · 0.85
setConfigFunction · 0.85

Calls 2

loadStateFunction · 0.85
saveStateFunction · 0.85

Tested by

no test coverage detected