{
  "schema_version": 1,
  "name": "Resume a multi-day warm-up",
  "version": 1,
  "description": "Remember which day of a warm-up schedule this profile is on across separate runs, do that day's browsing, then advance the counter. State persists between runs, so a crash or an overnight gap doesn't restart the schedule.",
  "tags": ["farming", "state", "multi-day"],
  "vars": { "feed_url": "https://example.com/feed" },
  "on_error": "screenshot_and_stop",
  "steps": [
    { "open": {} },
    { "state_get": { "key": "warmup_day", "into": "day", "default": "0" } },
    { "math": { "op": "add", "a": "{{day}}", "b": "1", "into": "next_day" } },
    { "goto": { "url": "{{feed_url}}" } },
    { "scroll": { "dy": 800 } },
    { "wait": { "seconds": 4 } },
    { "scroll": { "dy": 800 } },
    { "state_set": { "key": "warmup_day", "value": "{{next_day}}" } },
    { "close": {} }
  ]
}
