veryfront/schedule

Import

ts
import {
  discoverSchedules,
  isScheduleDefinition,
  legacyScheduleTargetDiagnostic,
  schedule,
} from "veryfront/schedule";

Examples

Run a workflow every weekday morning

ts
import { schedule } from "veryfront/schedule";

export default schedule({
  id: "daily-support-triage",
  schedule: "0 9 * * 1-5",
  timezone: "Europe/Stockholm",
  target: { kind: "workflow", id: "escalate-ticket" },
  input: { severity: "high" },
  health: { maxStalenessSeconds: 1800 },
});

Exports

Functions

NameDescriptionSource
discoverSchedulesDiscover and validate canonical schedule definitions from a project directory.source
isScheduleDefinitionReturn true only when every schedule field and nested invariant is valid.source
legacyScheduleTargetDiagnosticDescribe why the legacy input._schedule_target channel is invalid, or return null.source
scheduleValidate and normalize a source-defined schedule configuration.source

Types

NameDescriptionSource
AgentScheduleConfigConfigures an agent schedule with an optional prompt.source
ScheduleAgentMessageContains the prompt that a schedule sends to an agent target.source
ScheduleConcurrencyPolicyBehavior when a scheduled occurrence overlaps an active run.source
ScheduleConfigAuthor-facing recurring schedule configuration.source
ScheduleDefinitionValidated, canonical source definition for one recurring schedule.source
ScheduleDiscoveryOptionsInputs for deterministic source schedule discovery.source
ScheduleDiscoveryResultValid schedules and bounded per-file discovery diagnostics.source
ScheduleHealthMarks a schedule unhealthy when it has not succeeded within the given budget.source
ScheduleIntegrationRequirementCanonical integration access required before a scheduled run can start.source
ScheduleIntegrationRequirementConfigAuthor-facing integration requirement; omitted collections default to empty.source
ScheduleIntegrationResourceIntegration resource optionally scoped beneath a parent resource.source
ScheduleIntegrationResourceIdentityStable integration resource key used for source-owned access requirements.source