Setup auto-sync infrastructure for product propagation

#27
by bep40 - opened

Auto-Sync Infrastructure

This PR sets up automatic product synchronization between:

  • bep40/V.AISTUDIO (main catalog)
  • bep40/vai-avatar2 (avatar integration space)
  • bep40/grob-products-updated (source dataset)

Files Added:

  1. sync_products.py - Python script that:

    • Downloads full dataset from bep40/grob-products-updated
    • Compares slugs with both spaces
    • Uploads missing products and triggers rebuilds
  2. .github/workflows/auto-sync.yml - GitHub Actions workflow that:

    • Runs daily at midnight UTC (cron schedule)
    • Can be triggered manually via workflow_dispatch
    • Automatically syncs new/updated products to both spaces

Root Cause Fix:

Previously, vai-avatar2 had a hardcoded slice(0, 1000) limit in index.ts that prevented loading products beyond index 999. This was fixed in PR #22 of bep40/vai-avatar2.

Now both spaces will automatically stay in sync whenever new products are added to the dataset.

bep40 changed pull request status to open
Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment