← back to Daily Overnight Skus
initial scaffold: Daily Overnight SKUs nightly report (Mon-Fri 11:30pm PT)
86aec3b582bb1abb432be71ff4e5fbbb6b4295bf · 2026-05-11 10:05:29 -0700 · SteveStudio2
Wrapper around /weekend-csv-products skill with --label override.
Window: today 00:00 PT -> today 23:59:59 PT (per-run).
Recipients: info@designerwallcoverings.com (cc george@).
Launchd: com.steve.daily-overnight-skus (Weekday 1-5, 23:30).
Files touched
Diff
commit 86aec3b582bb1abb432be71ff4e5fbbb6b4295bf
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date: Mon May 11 10:05:29 2026 -0700
initial scaffold: Daily Overnight SKUs nightly report (Mon-Fri 11:30pm PT)
Wrapper around /weekend-csv-products skill with --label override.
Window: today 00:00 PT -> today 23:59:59 PT (per-run).
Recipients: info@designerwallcoverings.com (cc george@).
Launchd: com.steve.daily-overnight-skus (Weekday 1-5, 23:30).
---
.gitignore | 5 +++++
run.sh | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bcab47a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.log
+launchd.*.log
+node_modules/
+.env*
+.DS_Store
diff --git a/run.sh b/run.sh
new file mode 100755
index 0000000..cda0c5e
--- /dev/null
+++ b/run.sh
@@ -0,0 +1,35 @@
+#!/usr/bin/env bash
+# Daily Overnight SKUs — runs at 11:30 PM PT Mon-Fri, emails the day's
+# orders (00:00 PT → 23:59:59 PT) to info@designerwallcoverings.com.
+#
+# Window covers the calendar day this run kicks off in (so Mon 11:30 PM
+# captures all of Monday's orders).
+set -u
+LOG=/Users/stevestudio2/Projects/daily-overnight-skus/run.log
+exec >>"$LOG" 2>&1
+echo "=== $(date) ==="
+
+# Load env (Shopify orders token + George creds)
+set -a
+. /Users/stevestudio2/Projects/secrets-manager/.env 2>/dev/null
+set +a
+export GMAIL_AGENT='http://100.107.67.67:9850'
+# George basic-auth — pulled from ~/.claude.json MCP env block (rotates;
+# update both here and ~/.claude.json if George rotates the password).
+export GMAIL_BASIC_AUTH_B64='YWRtaW46STNZdXNpc2RFU1VOZHh0cm1sYjNRSmV1OXE4T0RLSk8='
+
+# Today's date in America/Los_Angeles (e.g. "2026-05-11")
+TODAY_PT=$(TZ=America/Los_Angeles date +%Y-%m-%d)
+START="${TODAY_PT}T00:00:00-07:00" # PDT — script normalizes anyway
+END="${TODAY_PT}T23:59:59-07:00"
+
+echo "[run] window: $START -> $END"
+
+/usr/local/bin/node /Users/stevestudio2/.claude/skills/weekend-csv-products/generate-weekend-csv.js \
+ --start "$START" \
+ --end "$END" \
+ --label "Daily Overnight SKUs"
+
+EXIT=$?
+echo "[run] exit=$EXIT"
+exit $EXIT
(oldest)
·
back to Daily Overnight Skus
·
switch to true overnight window: yesterday 5pm PT -> today 6 fbe9e7a →