← back to Designer Wallcoverings
cadence: add Maharam launch drip script (import+activate, metered; enabled only via MAHARAM_DRIP + its launchd job)
41e292c12719149fc75ba89043c376ce23f17837 · 2026-07-22 08:15:03 -0700 · Steve
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
A shopify/scripts/cadence/maharam-activate-drip.sh
Diff
commit 41e292c12719149fc75ba89043c376ce23f17837
Author: Steve <steve@designerwallcoverings.com>
Date: Wed Jul 22 08:15:03 2026 -0700
cadence: add Maharam launch drip script (import+activate, metered; enabled only via MAHARAM_DRIP + its launchd job)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
shopify/scripts/cadence/maharam-activate-drip.sh | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/shopify/scripts/cadence/maharam-activate-drip.sh b/shopify/scripts/cadence/maharam-activate-drip.sh
new file mode 100755
index 00000000..6177dbb0
--- /dev/null
+++ b/shopify/scripts/cadence/maharam-activate-drip.sh
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+# Maharam quote-only wallcovering LAUNCH drip (Steve "push all on the std daily cadence" 2026-07-22).
+# Maharam has NO drafts on Shopify yet, so unlike Pierre Frey this drip does BOTH steps per tick:
+# 1) IMPORT up to $LIMIT net-new Maharam wallcoverings as DRAFT (MAHARAM_DRIP=1 arms the scoped
+# gate; --only Maharam; dedup_skip holds the 164 fabric + 8 no-desc rows out; PG-logged first).
+# 2) ACTIVATE gate-passing Maharam DRAFTs → ACTIVE via the shared activate-gated.js gate
+# (specs + real description + image + $4.25 Sample variant; quote-only bypasses the price req).
+# Metered: $LIMIT/tick (default 60). Un-ready rows stay DRAFT and retry next tick. Only the 1,429
+# import-eligible wallcoverings flow; vendor=Maharam auto-joins smart collection maharam-wallcoverings.
+set -u
+# launchd runs with a minimal PATH — node (/usr/local/bin) + psql (homebrew) aren't on it.
+export PATH="/usr/local/bin:/opt/homebrew/bin:/opt/homebrew/opt/postgresql@14/bin:$PATH"
+SHOP="$HOME/Projects/Designer-Wallcoverings/shopify"
+cd "$SHOP" || exit 1
+LOG="/tmp/dw-maharam-activate.log"
+LIMIT="${MAHARAM_ACTIVATE_LIMIT:-60}"
+echo "=== $(date) maharam launch drip (limit $LIMIT) ===" >> "$LOG"
+echo "--- step 1: import net-new DRAFTs ---" >> "$LOG"
+MAHARAM_DRIP=1 node scripts/cadence/cadence-import.js --only Maharam --skus "$LIMIT" --commit >> "$LOG" 2>&1
+echo "import exit $? at $(date)" >> "$LOG"
+echo "--- step 2: activate gate-passing DRAFTs ---" >> "$LOG"
+node scripts/cadence/activate-gated.js --vendor Maharam --limit "$LIMIT" --commit >> "$LOG" 2>&1
+echo "activate exit $? at $(date)" >> "$LOG"
← 7d362d07 auto-save: 2026-07-22T08:12:31 (2 files) — shopify/scripts/c
·
back to Designer Wallcoverings
·
Anthology import: UOM resolver + ready-to-push DRAFT creator 2a58e23b →