onboarding-merchant: live theme push with --allow-live and the catalog importer run without per-action confirmation

Ouverte
#76 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
56/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
javascript
Domaine
devtools, security

Piste de recherche

Start with skills/shopify/references/onboarding-merchant.md lines 57, 66–70, and 185–186, then inspect scripts/import_mock_shop_catalog.mjs and how shopify store info --json identifies preview stores. Define how confirmation of the store domain and theme id is tracked, and how the importer rejects non-preview stores unless explicitly overridden. Done means live pushes require the described confirmation and the importer enforces the preview-store check.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

At a3d20f8, the merchant-onboarding design loop writes to a live theme and runs a bulk store import without a per-action confirmation.

Live theme push. skills/shopify/references/onboarding-merchant.md:185 applies every edit with:

shopify theme push --store <store-domain> --live --allow-live --path <theme-dir> --nodelete --strict

Line 186 then reloads the preview automatically after each push. --allow-live is the CLI's own gate for writing to a live theme ("Required in non-interactive environments when targeting the live theme"), and here the agent supplies it itself. The only safeguard is the agent's belief that the domain is the preview store created in this conversation. If the agent has the wrong domain in context (a second store, a store from earlier in the session, or a claimed store that is now selling), the same command overwrites a real storefront's live theme.

Catalog import. onboarding-merchant.md:66-70 runs scripts/import_mock_shop_catalog.mjs, a minified script that calls shopify store execute --allow-mutations for product imports, collection creation, publishing every product and collection, file uploads, menus, pages, blog articles and theme file upserts. The only confirmation is the catalog choice at line 57.

Suggested fix.

  1. Before the first live push in a session, confirm the exact store domain and theme id with the user, and confirm again if either changes.
  2. Have import_mock_shop_catalog.mjs check that the target is a preview store (for example from shopify store info --json) and refuse otherwise, unless an explicit flag is passed.
  3. State in the skill that --allow-live is passed only after that confirmation.
Langage dominant
JavaScript
Étoiles
652
Forks
88
Merge moyen
6 min
PR mergées (30 j)
2

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Shopify/Shopify-AI-Toolkit

Toutes les issues de Shopify/Shopify-AI-Toolkit

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.