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

未关闭
#76 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
56/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript
领域
devtools, security

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
JavaScript
星标
652
派生
88
平均合并
6 分钟
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Shopify/Shopify-AI-Toolkit 的其他 Issue

查看 Shopify/Shopify-AI-Toolkit 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。