MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / buildStateRequestPayload

Function buildStateRequestPayload

webui/index.js:312–321  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

310let lastSpokenNo = 0;
311
312export function buildStateRequestPayload(options = {}) {
313 const { forceFull = false } = options || {};
314 const timezone = getUserTimezone();
315 return {
316 context: context || null,
317 log_from: forceFull ? 0 : lastLogVersion,
318 notifications_from: forceFull ? 0 : notificationStore.lastNotificationVersion || 0,
319 timezone,
320 };
321}
322
323export async function applySnapshot(snapshot, options = {}) {
324 const { touchConnectionStatus = false, onLogGuidReset = null } = options || {};

Callers 1

sendStateRequestFunction · 0.90

Calls 1

getUserTimezoneFunction · 0.90

Tested by

no test coverage detected