MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / getAutoRunTimerStatusPayload

Function getAutoRunTimerStatusPayload

background.js:499–516  ·  view source on GitHub ↗
(plan)

Source from the content-addressed store, hash-verified

497}
498
499function getAutoRunTimerStatusPayload(plan) {
500 const normalizedPlan = normalizeAutoRunTimerPlan(plan);
501 if (!normalizedPlan) {
502 return null;
503 }
504
505 const phase = getAutoRunTimerPlanPhase(normalizedPlan.kind);
506 return {
507 phase,
508 currentRun: normalizedPlan.currentRun,
509 totalRuns: normalizedPlan.totalRuns,
510 attemptRun: normalizedPlan.attemptRun,
511 scheduledAt: phase === 'scheduled' ? normalizedPlan.fireAt : null,
512 countdownAt: normalizedPlan.fireAt,
513 countdownTitle: normalizedPlan.countdownTitle,
514 countdownNote: normalizedPlan.countdownNote,
515 };
516}
517
518function normalizeEmailGenerator(value = '') {
519 const normalized = String(value || '').trim().toLowerCase();

Callers 2

persistAutoRunTimerPlanFunction · 0.85

Calls 2

getAutoRunTimerPlanPhaseFunction · 0.85

Tested by

no test coverage detected