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

Function normalizeAutoRunTimerKind

background.js:382–394  ·  view source on GitHub ↗
(value = '')

Source from the content-addressed store, hash-verified

380}
381
382function normalizeAutoRunTimerKind(value = '') {
383 const normalized = String(value || '').trim().toLowerCase();
384 if (normalized === AUTO_RUN_TIMER_KIND_SCHEDULED_START) {
385 return AUTO_RUN_TIMER_KIND_SCHEDULED_START;
386 }
387 if (normalized === AUTO_RUN_TIMER_KIND_BETWEEN_ROUNDS) {
388 return AUTO_RUN_TIMER_KIND_BETWEEN_ROUNDS;
389 }
390 if (normalized === AUTO_RUN_TIMER_KIND_BEFORE_RETRY) {
391 return AUTO_RUN_TIMER_KIND_BEFORE_RETRY;
392 }
393 return '';
394}
395
396function normalizeAutoRunTimerPlan(plan) {
397 if (!plan || typeof plan !== 'object' || Array.isArray(plan)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected