MCPcopy
hub / github.com/ValueCell-ai/ClawX / set

Function set

tests/unit/chat-history-actions.test.ts:203–206  ·  view source on GitHub ↗
(partial: Partial<ChatLikeState> | ((s: ChatLikeState) => Partial<ChatLikeState>))

Source from the content-addressed store, hash-verified

201 };
202
203 const set = (partial: Partial<ChatLikeState> | ((s: ChatLikeState) => Partial<ChatLikeState>)) => {
204 const patch = typeof partial === 'function' ? partial(state) : partial;
205 state = { ...state, ...patch };
206 };
207 const get = () => state;
208 return { set, get, read: () => state };
209}

Callers 15

skills.tsFile · 0.50
agents.tsFile · 0.50
update.tsFile · 0.50
cron.tsFile · 0.50
gateway.tsFile · 0.50
channels.tsFile · 0.50
chat.tsFile · 0.50
applyLoadFailureFunction · 0.50
applyLoadedMessagesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected